From 478c471c20db8cbe7dfc30f3d97af16630407907 Mon Sep 17 00:00:00 2001 From: Bjarke Madsen <bjarke@nordu.net> Date: Tue, 11 Feb 2025 15:05:39 +0100 Subject: [PATCH] update packages --- compendium-frontend/bun.lock | 138 ++++++++---------- compendium-frontend/package.json | 28 ++-- .../static/{Bx5HfHBo.css => Du0IQ9wh.css} | 2 +- ...s => SurveyContainerComponent-D2pyP2dn.js} | 10 +- ... => SurveyManagementComponent-CNBvtq4g.js} | 2 +- compendium_v2/static/index.js | 42 +++--- compendium_v2/static/survey.core-D1mOb2z9.js | 36 +++++ compendium_v2/static/survey.core-ohqmCpQR.js | 36 ----- compendium_v2/static/third-party-licenses.txt | 10 +- 9 files changed, 146 insertions(+), 158 deletions(-) rename compendium_v2/static/{Bx5HfHBo.css => Du0IQ9wh.css} (99%) rename compendium_v2/static/{SurveyContainerComponent-BjjhIoXr.js => SurveyContainerComponent-D2pyP2dn.js} (80%) rename compendium_v2/static/{SurveyManagementComponent-DG2o_CsZ.js => SurveyManagementComponent-CNBvtq4g.js} (99%) create mode 100644 compendium_v2/static/survey.core-D1mOb2z9.js delete mode 100644 compendium_v2/static/survey.core-ohqmCpQR.js diff --git a/compendium-frontend/bun.lock b/compendium-frontend/bun.lock index 818aeaf9..0a7cb2b6 100644 --- a/compendium-frontend/bun.lock +++ b/compendium-frontend/bun.lock @@ -4,43 +4,43 @@ "": { "name": "compendium-v2", "dependencies": { - "bootstrap": "~5.3.3", - "bun-types": "~1.2.0", - "cartesian-product-multiple-arrays": "~1.0.9", - "chart.js": "~4.4.7", - "chartjs-plugin-datalabels": "~2.2.0", - "html-to-image": "~1.11.11", - "lodash": "~4.17.21", - "react": "~19.0.0", - "react-bootstrap": "~2.10.8", - "react-chartjs-2": "~5.3.0", - "react-dom": "~19.0.0", - "react-hot-toast": "~2.5.1", - "react-icons": "~5.4.0", - "react-router-dom": "~7.1.3", - "survey-core": "~1.12.20", - "survey-react-ui": "~1.12.20", - "xlsx": "~0.18.5", + "bootstrap": "latest", + "bun-types": "latest", + "cartesian-product-multiple-arrays": "latest", + "chart.js": "latest", + "chartjs-plugin-datalabels": "latest", + "html-to-image": "latest", + "lodash": "latest", + "react": "latest", + "react-bootstrap": "latest", + "react-chartjs-2": "latest", + "react-dom": "latest", + "react-hot-toast": "latest", + "react-icons": "latest", + "react-router-dom": "latest", + "survey-core": "latest", + "survey-react-ui": "latest", + "xlsx": "latest", }, "devDependencies": { - "@eslint/compat": "~1.2.5", - "@eslint/eslintrc": "~3.2.0", - "@eslint/js": "~9.18.0", - "@types/react": "~19.0.8", - "@types/react-dom": "~19.0.3", - "@types/react-router-dom": "~5.3.3", - "@typescript-eslint/eslint-plugin": "~8.21.0", - "@typescript-eslint/parser": "~8.21.0", - "@vitejs/plugin-react": "~4.3.4", - "babel-plugin-react-compiler": "~19.0.0-beta-27714ef-20250124", - "eslint": "^9.19.0", - "eslint-plugin-react": "~7.37.4", - "eslint-plugin-react-compiler": "^19.0.0-beta-27714ef-20250124", - "eslint-plugin-react-hooks": "~5.1.0", - "rollup-plugin-license": "~3.5.3", - "sass": "~1.83.4", - "typescript": "~5.7.3", - "vite": "~6.0.11", + "@eslint/compat": "latest", + "@eslint/eslintrc": "latest", + "@eslint/js": "latest", + "@types/react": "latest", + "@types/react-dom": "latest", + "@types/react-router-dom": "latest", + "@typescript-eslint/eslint-plugin": "latest", + "@typescript-eslint/parser": "latest", + "@vitejs/plugin-react": "latest", + "babel-plugin-react-compiler": "latest", + "eslint": "latest", + "eslint-plugin-react": "latest", + "eslint-plugin-react-compiler": "latest", + "eslint-plugin-react-hooks": "latest", + "rollup-plugin-license": "latest", + "sass": "latest", + "typescript": "latest", + "vite": "latest", }, }, }, @@ -153,17 +153,17 @@ "@eslint-community/regexpp": ["@eslint-community/regexpp@4.12.1", "", {}, "sha512-CCZCDJuduB9OUkFkY2IgppNZMi2lBQgD2qzwXkEia16cge2pijY/aXi96CJMquDMn3nJdlPV1A5KrJEXwfLNzQ=="], - "@eslint/compat": ["@eslint/compat@1.2.5", "", { "peerDependencies": { "eslint": "^9.10.0" }, "optionalPeers": ["eslint"] }, "sha512-5iuG/StT+7OfvhoBHPlmxkPA9om6aDUFgmD4+mWKAGsYt4vCe8rypneG03AuseyRHBmcCLXQtIH5S26tIoggLg=="], + "@eslint/compat": ["@eslint/compat@1.2.6", "", { "peerDependencies": { "eslint": "^9.10.0" }, "optionalPeers": ["eslint"] }, "sha512-k7HNCqApoDHM6XzT30zGoETj+D+uUcZUb+IVAJmar3u6bvHf7hhHJcWx09QHj4/a2qrKZMWU0E16tvkiAdv06Q=="], - "@eslint/config-array": ["@eslint/config-array@0.19.1", "", { "dependencies": { "@eslint/object-schema": "^2.1.5", "debug": "^4.3.1", "minimatch": "^3.1.2" } }, "sha512-fo6Mtm5mWyKjA/Chy1BYTdn5mGJoDNjC7C64ug20ADsRDGrA85bN3uK3MaKbeRkRuuIEAR5N33Jr1pbm411/PA=="], + "@eslint/config-array": ["@eslint/config-array@0.19.2", "", { "dependencies": { "@eslint/object-schema": "^2.1.6", "debug": "^4.3.1", "minimatch": "^3.1.2" } }, "sha512-GNKqxfHG2ySmJOBSHg7LxeUx4xpuCoFjacmlCoYWEbaPXLwvfIjixRI12xCQZeULksQb23uiA8F40w5TojpV7w=="], - "@eslint/core": ["@eslint/core@0.10.0", "", { "dependencies": { "@types/json-schema": "^7.0.15" } }, "sha512-gFHJ+xBOo4G3WRlR1e/3G8A6/KZAH6zcE/hkLRCZTi/B9avAG365QhFA8uOGzTMqgTghpn7/fSnscW++dpMSAw=="], + "@eslint/core": ["@eslint/core@0.11.0", "", { "dependencies": { "@types/json-schema": "^7.0.15" } }, "sha512-DWUB2pksgNEb6Bz2fggIy1wh6fGgZP4Xyy/Mt0QZPiloKKXerbqq9D3SBQTlCRYOrcRPu4vuz+CGjwdfqxnoWA=="], "@eslint/eslintrc": ["@eslint/eslintrc@3.2.0", "", { "dependencies": { "ajv": "^6.12.4", "debug": "^4.3.2", "espree": "^10.0.1", "globals": "^14.0.0", "ignore": "^5.2.0", "import-fresh": "^3.2.1", "js-yaml": "^4.1.0", "minimatch": "^3.1.2", "strip-json-comments": "^3.1.1" } }, "sha512-grOjVNN8P3hjJn/eIETF1wwd12DdnwFDoyceUJLYYdkpbwq3nLi+4fqrTAONx7XDALqlL220wC/RHSC/QTI/0w=="], - "@eslint/js": ["@eslint/js@9.18.0", "", {}, "sha512-fK6L7rxcq6/z+AaQMtiFTkvbHkBLNlwyRxHpKawP0x3u9+NC6MQTnFW+AdpwC6gfHTW0051cokQgtTN2FqlxQA=="], + "@eslint/js": ["@eslint/js@9.20.0", "", {}, "sha512-iZA07H9io9Wn836aVTytRaNqh00Sad+EamwOVJT12GTLw1VGMFV/4JaME+JjLtr9fiGaoWgYnS54wrfWsSs4oQ=="], - "@eslint/object-schema": ["@eslint/object-schema@2.1.5", "", {}, "sha512-o0bhxnL89h5Bae5T318nFoFzGy+YE5i/gGkoPAgkmTVdRKTiv3p8JHevPiPaMwoloKfEiiaHlawCqaZMqRm+XQ=="], + "@eslint/object-schema": ["@eslint/object-schema@2.1.6", "", {}, "sha512-RBMg5FRL0I0gs51M/guSAj5/e14VQ4tpZnQNWwuDT66P14I43ItmPfIZRhO9fUVIPOAQXU47atlywZ/czoqFPA=="], "@eslint/plugin-kit": ["@eslint/plugin-kit@0.2.5", "", { "dependencies": { "@eslint/core": "^0.10.0", "levn": "^0.4.1" } }, "sha512-lB05FkqEdUg2AA0xEbUz0SnkXT1LcCTa438W4IWTUh4hdOnVbQyOJ81OrDXsJk/LSiJHubgGEFoR5EHq1NsH1A=="], @@ -181,8 +181,6 @@ "@jridgewell/set-array": ["@jridgewell/set-array@1.2.1", "", {}, "sha512-R8gLRTZeyp03ymzP/6Lil/28tGeGEzhx1q2k703KGWRAI1VdvPIXdG70VJc2pAMw3NA6JKL5hhFu1sJX0Mnn/A=="], - "@jridgewell/source-map": ["@jridgewell/source-map@0.3.6", "", { "dependencies": { "@jridgewell/gen-mapping": "^0.3.5", "@jridgewell/trace-mapping": "^0.3.25" } }, "sha512-1ZJTZebgqllO79ue2bm3rIGud/bOe0pP5BjSRCRxxYkEZS8STV7zN84UBbiYu7jy+eCKSnVIUgoWWE/tt+shMQ=="], - "@jridgewell/sourcemap-codec": ["@jridgewell/sourcemap-codec@1.5.0", "", {}, "sha512-gv3ZRaISU3fjPAgNsriBRqGWQL6quFx04YMPW/zD8XMLsU32mhCCbfbO6KZFLjvYpCZ8zyDEgqsgf+PwPaM7GQ=="], "@jridgewell/trace-mapping": ["@jridgewell/trace-mapping@0.3.25", "", { "dependencies": { "@jridgewell/resolve-uri": "^3.1.0", "@jridgewell/sourcemap-codec": "^1.4.14" } }, "sha512-vNk6aEwybGtawWmy/PzwnGDOjCkLWSD2wqvjGGAgOAwCGWySYXfYoxt00IJkTF+8Lb57DwOb3Aa0o9CApepiYQ=="], @@ -229,7 +227,7 @@ "@restart/hooks": ["@restart/hooks@0.4.16", "", { "dependencies": { "dequal": "^2.0.3" }, "peerDependencies": { "react": ">=16.8.0" } }, "sha512-f7aCv7c+nU/3mF7NWLtVVr0Ra80RqsO89hO72r+Y/nvQr5+q0UFGkocElTH6MJApvReVh6JHUFYn2cw1WdHF3w=="], - "@restart/ui": ["@restart/ui@1.9.3", "", { "dependencies": { "@babel/runtime": "^7.26.0", "@popperjs/core": "^2.11.8", "@react-aria/ssr": "^3.5.0", "@restart/hooks": "^0.5.0", "@types/warning": "^3.0.3", "dequal": "^2.0.3", "dom-helpers": "^5.2.0", "uncontrollable": "^8.0.4", "warning": "^4.0.3" }, "peerDependencies": { "react": ">=16.14.0", "react-dom": ">=16.14.0" } }, "sha512-2QwCC42ISRAu7nafKeO4khG1F65Xfu2n+cwQT30Ck5bxszKDXuT2AZMDIX2auXxHRednG2ynr8ffSA1fRrkOGg=="], + "@restart/ui": ["@restart/ui@1.9.4", "", { "dependencies": { "@babel/runtime": "^7.26.0", "@popperjs/core": "^2.11.8", "@react-aria/ssr": "^3.5.0", "@restart/hooks": "^0.5.0", "@types/warning": "^3.0.3", "dequal": "^2.0.3", "dom-helpers": "^5.2.0", "uncontrollable": "^8.0.4", "warning": "^4.0.3" }, "peerDependencies": { "react": ">=16.14.0", "react-dom": ">=16.14.0" } }, "sha512-N4C7haUc3vn4LTwVUPlkJN8Ach/+yIMvRuTVIhjilNHqegY60SGLrzud6errOMNJwSnmYFnt1J0H/k8FE3A4KA=="], "@rollup/rollup-android-arm-eabi": ["@rollup/rollup-android-arm-eabi@4.31.0", "", { "os": "android", "cpu": "arm" }, "sha512-9NrR4033uCbUBRgvLcBrJofa2KY9DzxL2UKZ1/4xA/mnTNyhZCWBuD8X3tPm1n4KxcgaraOYgrFKSgwjASfmlA=="], @@ -305,21 +303,21 @@ "@types/ws": ["@types/ws@8.5.10", "", { "dependencies": { "@types/node": "*" } }, "sha512-vmQSUcfalpIq0R9q7uTo2lXs6eGIpt9wtnLdMv9LVpIjCA/+ufZRozlVoVelIYixx1ugCBKDhn89vnsEGOCx9A=="], - "@typescript-eslint/eslint-plugin": ["@typescript-eslint/eslint-plugin@8.21.0", "", { "dependencies": { "@eslint-community/regexpp": "^4.10.0", "@typescript-eslint/scope-manager": "8.21.0", "@typescript-eslint/type-utils": "8.21.0", "@typescript-eslint/utils": "8.21.0", "@typescript-eslint/visitor-keys": "8.21.0", "graphemer": "^1.4.0", "ignore": "^5.3.1", "natural-compare": "^1.4.0", "ts-api-utils": "^2.0.0" }, "peerDependencies": { "@typescript-eslint/parser": "^8.0.0 || ^8.0.0-alpha.0", "eslint": "^8.57.0 || ^9.0.0", "typescript": ">=4.8.4 <5.8.0" } }, "sha512-eTH+UOR4I7WbdQnG4Z48ebIA6Bgi7WO8HvFEneeYBxG8qCOYgTOFPSg6ek9ITIDvGjDQzWHcoWHCDO2biByNzA=="], + "@typescript-eslint/eslint-plugin": ["@typescript-eslint/eslint-plugin@8.24.0", "", { "dependencies": { "@eslint-community/regexpp": "^4.10.0", "@typescript-eslint/scope-manager": "8.24.0", "@typescript-eslint/type-utils": "8.24.0", "@typescript-eslint/utils": "8.24.0", "@typescript-eslint/visitor-keys": "8.24.0", "graphemer": "^1.4.0", "ignore": "^5.3.1", "natural-compare": "^1.4.0", "ts-api-utils": "^2.0.1" }, "peerDependencies": { "@typescript-eslint/parser": "^8.0.0 || ^8.0.0-alpha.0", "eslint": "^8.57.0 || ^9.0.0", "typescript": ">=4.8.4 <5.8.0" } }, "sha512-aFcXEJJCI4gUdXgoo/j9udUYIHgF23MFkg09LFz2dzEmU0+1Plk4rQWv/IYKvPHAtlkkGoB3m5e6oUp+JPsNaQ=="], - "@typescript-eslint/parser": ["@typescript-eslint/parser@8.21.0", "", { "dependencies": { "@typescript-eslint/scope-manager": "8.21.0", "@typescript-eslint/types": "8.21.0", "@typescript-eslint/typescript-estree": "8.21.0", "@typescript-eslint/visitor-keys": "8.21.0", "debug": "^4.3.4" }, "peerDependencies": { "eslint": "^8.57.0 || ^9.0.0", "typescript": ">=4.8.4 <5.8.0" } }, "sha512-Wy+/sdEH9kI3w9civgACwabHbKl+qIOu0uFZ9IMKzX3Jpv9og0ZBJrZExGrPpFAY7rWsXuxs5e7CPPP17A4eYA=="], + "@typescript-eslint/parser": ["@typescript-eslint/parser@8.24.0", "", { "dependencies": { "@typescript-eslint/scope-manager": "8.24.0", "@typescript-eslint/types": "8.24.0", "@typescript-eslint/typescript-estree": "8.24.0", "@typescript-eslint/visitor-keys": "8.24.0", "debug": "^4.3.4" }, "peerDependencies": { "eslint": "^8.57.0 || ^9.0.0", "typescript": ">=4.8.4 <5.8.0" } }, "sha512-MFDaO9CYiard9j9VepMNa9MTcqVvSny2N4hkY6roquzj8pdCBRENhErrteaQuu7Yjn1ppk0v1/ZF9CG3KIlrTA=="], - "@typescript-eslint/scope-manager": ["@typescript-eslint/scope-manager@8.21.0", "", { "dependencies": { "@typescript-eslint/types": "8.21.0", "@typescript-eslint/visitor-keys": "8.21.0" } }, "sha512-G3IBKz0/0IPfdeGRMbp+4rbjfSSdnGkXsM/pFZA8zM9t9klXDnB/YnKOBQ0GoPmoROa4bCq2NeHgJa5ydsQ4mA=="], + "@typescript-eslint/scope-manager": ["@typescript-eslint/scope-manager@8.24.0", "", { "dependencies": { "@typescript-eslint/types": "8.24.0", "@typescript-eslint/visitor-keys": "8.24.0" } }, "sha512-HZIX0UByphEtdVBKaQBgTDdn9z16l4aTUz8e8zPQnyxwHBtf5vtl1L+OhH+m1FGV9DrRmoDuYKqzVrvWDcDozw=="], - "@typescript-eslint/type-utils": ["@typescript-eslint/type-utils@8.21.0", "", { "dependencies": { "@typescript-eslint/typescript-estree": "8.21.0", "@typescript-eslint/utils": "8.21.0", "debug": "^4.3.4", "ts-api-utils": "^2.0.0" }, "peerDependencies": { "eslint": "^8.57.0 || ^9.0.0", "typescript": ">=4.8.4 <5.8.0" } }, "sha512-95OsL6J2BtzoBxHicoXHxgk3z+9P3BEcQTpBKriqiYzLKnM2DeSqs+sndMKdamU8FosiadQFT3D+BSL9EKnAJQ=="], + "@typescript-eslint/type-utils": ["@typescript-eslint/type-utils@8.24.0", "", { "dependencies": { "@typescript-eslint/typescript-estree": "8.24.0", "@typescript-eslint/utils": "8.24.0", "debug": "^4.3.4", "ts-api-utils": "^2.0.1" }, "peerDependencies": { "eslint": "^8.57.0 || ^9.0.0", "typescript": ">=4.8.4 <5.8.0" } }, "sha512-8fitJudrnY8aq0F1wMiPM1UUgiXQRJ5i8tFjq9kGfRajU+dbPyOuHbl0qRopLEidy0MwqgTHDt6CnSeXanNIwA=="], - "@typescript-eslint/types": ["@typescript-eslint/types@8.21.0", "", {}, "sha512-PAL6LUuQwotLW2a8VsySDBwYMm129vFm4tMVlylzdoTybTHaAi0oBp7Ac6LhSrHHOdLM3efH+nAR6hAWoMF89A=="], + "@typescript-eslint/types": ["@typescript-eslint/types@8.24.0", "", {}, "sha512-VacJCBTyje7HGAw7xp11q439A+zeGG0p0/p2zsZwpnMzjPB5WteaWqt4g2iysgGFafrqvyLWqq6ZPZAOCoefCw=="], - "@typescript-eslint/typescript-estree": ["@typescript-eslint/typescript-estree@8.21.0", "", { "dependencies": { "@typescript-eslint/types": "8.21.0", "@typescript-eslint/visitor-keys": "8.21.0", "debug": "^4.3.4", "fast-glob": "^3.3.2", "is-glob": "^4.0.3", "minimatch": "^9.0.4", "semver": "^7.6.0", "ts-api-utils": "^2.0.0" }, "peerDependencies": { "typescript": ">=4.8.4 <5.8.0" } }, "sha512-x+aeKh/AjAArSauz0GiQZsjT8ciadNMHdkUSwBB9Z6PrKc/4knM4g3UfHml6oDJmKC88a6//cdxnO/+P2LkMcg=="], + "@typescript-eslint/typescript-estree": ["@typescript-eslint/typescript-estree@8.24.0", "", { "dependencies": { "@typescript-eslint/types": "8.24.0", "@typescript-eslint/visitor-keys": "8.24.0", "debug": "^4.3.4", "fast-glob": "^3.3.2", "is-glob": "^4.0.3", "minimatch": "^9.0.4", "semver": "^7.6.0", "ts-api-utils": "^2.0.1" }, "peerDependencies": { "typescript": ">=4.8.4 <5.8.0" } }, "sha512-ITjYcP0+8kbsvT9bysygfIfb+hBj6koDsu37JZG7xrCiy3fPJyNmfVtaGsgTUSEuTzcvME5YI5uyL5LD1EV5ZQ=="], - "@typescript-eslint/utils": ["@typescript-eslint/utils@8.21.0", "", { "dependencies": { "@eslint-community/eslint-utils": "^4.4.0", "@typescript-eslint/scope-manager": "8.21.0", "@typescript-eslint/types": "8.21.0", "@typescript-eslint/typescript-estree": "8.21.0" }, "peerDependencies": { "eslint": "^8.57.0 || ^9.0.0", "typescript": ">=4.8.4 <5.8.0" } }, "sha512-xcXBfcq0Kaxgj7dwejMbFyq7IOHgpNMtVuDveK7w3ZGwG9owKzhALVwKpTF2yrZmEwl9SWdetf3fxNzJQaVuxw=="], + "@typescript-eslint/utils": ["@typescript-eslint/utils@8.24.0", "", { "dependencies": { "@eslint-community/eslint-utils": "^4.4.0", "@typescript-eslint/scope-manager": "8.24.0", "@typescript-eslint/types": "8.24.0", "@typescript-eslint/typescript-estree": "8.24.0" }, "peerDependencies": { "eslint": "^8.57.0 || ^9.0.0", "typescript": ">=4.8.4 <5.8.0" } }, "sha512-07rLuUBElvvEb1ICnafYWr4hk8/U7X9RDCOqd9JcAMtjh/9oRmcfN4yGzbPVirgMR0+HLVHehmu19CWeh7fsmQ=="], - "@typescript-eslint/visitor-keys": ["@typescript-eslint/visitor-keys@8.21.0", "", { "dependencies": { "@typescript-eslint/types": "8.21.0", "eslint-visitor-keys": "^4.2.0" } }, "sha512-BkLMNpdV6prozk8LlyK/SOoWLmUFi+ZD+pcqti9ILCbVvHGk1ui1g4jJOc2WDLaeExz2qWwojxlPce5PljcT3w=="], + "@typescript-eslint/visitor-keys": ["@typescript-eslint/visitor-keys@8.24.0", "", { "dependencies": { "@typescript-eslint/types": "8.24.0", "eslint-visitor-keys": "^4.2.0" } }, "sha512-kArLq83QxGLbuHrTMoOEWO+l2MwsNS2TGISEdx8xgqpkbytB07XmlQyQdNDrCc1ecSqx0cnmhGvpX+VBwqqSkg=="], "@vitejs/plugin-react": ["@vitejs/plugin-react@4.3.4", "", { "dependencies": { "@babel/core": "^7.26.0", "@babel/plugin-transform-react-jsx-self": "^7.25.9", "@babel/plugin-transform-react-jsx-source": "^7.25.9", "@types/babel__core": "^7.20.5", "react-refresh": "^0.14.2" }, "peerDependencies": { "vite": "^4.2.0 || ^5.0.0 || ^6.0.0" } }, "sha512-SCCPBJtYLdE8PX/7ZQAs1QAZ8Jqwih+0VBLum1EGqmCCQal+MIUqLCzj3ZUy8ufbC0cAM4LRlSTm7IQJwWT4ug=="], @@ -353,7 +351,7 @@ "available-typed-arrays": ["available-typed-arrays@1.0.7", "", { "dependencies": { "possible-typed-array-names": "^1.0.0" } }, "sha512-wvUjBtSGN7+7SjNpq/9M2Tg350UZD3q62IFZLbRAR1bSMlCo1ZaeW+BJ+D090e4hIIZLBcTDWe4Mh4jvUDajzQ=="], - "babel-plugin-react-compiler": ["babel-plugin-react-compiler@19.0.0-beta-27714ef-20250124", "", { "dependencies": { "@babel/types": "^7.19.0" } }, "sha512-1AnF/dlvbIJzAjw5jEbDx7csHx772VP9AtrEg2CgUUD6MIu24j5ShxmBZ0tpfdb2pZtLVwcsoGylfZTzUoCr9w=="], + "babel-plugin-react-compiler": ["babel-plugin-react-compiler@19.0.0-beta-30d8a17-20250209", "", { "dependencies": { "@babel/types": "^7.19.0" } }, "sha512-0pQHlz5nmBiEQ8ZWWVLeaBzz/FkToAdXEXBBnd21uSrDtIzhSe+s3VMvqMsv6vYHNTr+0KmsvVfEqXQp0W0kzg=="], "balanced-match": ["balanced-match@1.0.2", "", {}, "sha512-3oSeUO0TMV67hN1AmbXsK4yaqU7tjiHlbxRDZOpH0KW9+CeX4bRAaX0Anxt0tx2MrpRpWwQaPwIlISEJhYU5Pw=="], @@ -365,9 +363,7 @@ "browserslist": ["browserslist@4.24.4", "", { "dependencies": { "caniuse-lite": "^1.0.30001688", "electron-to-chromium": "^1.5.73", "node-releases": "^2.0.19", "update-browserslist-db": "^1.1.1" }, "bin": "cli.js" }, "sha512-KDi1Ny1gSePi1vm0q4oxSF8b4DR44GF4BbmS2YdhPLOEqd8pDviZOGH/GsmRwoWJ2+5Lr085X7naowMwKHDG1A=="], - "buffer-from": ["buffer-from@1.1.2", "", {}, "sha512-E+XQCRwSbaaiChtv6k6Dwgc+bx+Bs6vuKJHHl5kox/BaKbhiXzqQOwK4cO22yElGp2OCmjwVhT3HmxgyPGnJfQ=="], - - "bun-types": ["bun-types@1.2.0", "", { "dependencies": { "@types/node": "*", "@types/ws": "~8.5.10" } }, "sha512-KEaJxyZfbV/c4eyG0vyehDpYmBGreNiQbZIqvVHJwZ4BmeuWlNZ7EAzMN2Zcd7ailmS/tGVW0BgYbGf+lGEpWw=="], + "bun-types": ["bun-types@1.2.2", "", { "dependencies": { "@types/node": "*", "@types/ws": "~8.5.10" } }, "sha512-RCbMH5elr9gjgDGDhkTTugA21XtJAy/9jkKe/G3WR2q17VPGhcquf9Sir6uay9iW+7P/BV0CAHA1XlHXMAVKHg=="], "call-bind": ["call-bind@1.0.8", "", { "dependencies": { "call-bind-apply-helpers": "^1.0.0", "es-define-property": "^1.0.0", "get-intrinsic": "^1.2.4", "set-function-length": "^1.2.2" } }, "sha512-oKlSFMcMwpUg2ednkhQ454wfWiU/ul3CkJe/PEHcTKuiX6RpbehUiFMXu13HalGZxfUwCQzZG747YXBn1im9ww=="], @@ -399,8 +395,6 @@ "color-name": ["color-name@1.1.4", "", {}, "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA=="], - "commander": ["commander@2.20.3", "", {}, "sha512-GpVkmM8vF2vQUkj2LvZmD35JxeJOLCwJ9cUkugyk2nuhbv3+mJvpLYYt+0+USMxE+oj+ey/lJEnhZw75x/OMcQ=="], - "commenting": ["commenting@1.1.0", "", {}, "sha512-YeNK4tavZwtH7jEgK1ZINXzLKm6DZdEMfsaaieOsCAN0S8vsY7UeuO3Q7d/M018EFgE+IeUAuBOKkFccBZsUZA=="], "concat-map": ["concat-map@0.0.1", "", {}, "sha512-/Srv4dswyQNBfohGpz9o6Yb3Gz3SrUDqBH5rTuhGR7ahtlbYKnVxw2bCFMRljaA7EXHaXZ8wsHdodFvbkhKmqg=="], @@ -463,11 +457,11 @@ "escape-string-regexp": ["escape-string-regexp@4.0.0", "", {}, "sha512-TtpcNJ3XAzx3Gq8sWRzJaVajRs0uVxA2YAkdb1jm2YkPz4G6egUFAyA3n5vtEIZefPk5Wa4UXbKuS5fKkJWdgA=="], - "eslint": ["eslint@9.19.0", "", { "dependencies": { "@eslint-community/eslint-utils": "^4.2.0", "@eslint-community/regexpp": "^4.12.1", "@eslint/config-array": "^0.19.0", "@eslint/core": "^0.10.0", "@eslint/eslintrc": "^3.2.0", "@eslint/js": "9.19.0", "@eslint/plugin-kit": "^0.2.5", "@humanfs/node": "^0.16.6", "@humanwhocodes/module-importer": "^1.0.1", "@humanwhocodes/retry": "^0.4.1", "@types/estree": "^1.0.6", "@types/json-schema": "^7.0.15", "ajv": "^6.12.4", "chalk": "^4.0.0", "cross-spawn": "^7.0.6", "debug": "^4.3.2", "escape-string-regexp": "^4.0.0", "eslint-scope": "^8.2.0", "eslint-visitor-keys": "^4.2.0", "espree": "^10.3.0", "esquery": "^1.5.0", "esutils": "^2.0.2", "fast-deep-equal": "^3.1.3", "file-entry-cache": "^8.0.0", "find-up": "^5.0.0", "glob-parent": "^6.0.2", "ignore": "^5.2.0", "imurmurhash": "^0.1.4", "is-glob": "^4.0.0", "json-stable-stringify-without-jsonify": "^1.0.1", "lodash.merge": "^4.6.2", "minimatch": "^3.1.2", "natural-compare": "^1.4.0", "optionator": "^0.9.3" }, "peerDependencies": { "jiti": "*" }, "optionalPeers": ["jiti"], "bin": { "eslint": "bin/eslint.js" } }, "sha512-ug92j0LepKlbbEv6hD911THhoRHmbdXt2gX+VDABAW/Ir7D3nqKdv5Pf5vtlyY6HQMTEP2skXY43ueqTCWssEA=="], + "eslint": ["eslint@9.20.0", "", { "dependencies": { "@eslint-community/eslint-utils": "^4.2.0", "@eslint-community/regexpp": "^4.12.1", "@eslint/config-array": "^0.19.0", "@eslint/core": "^0.11.0", "@eslint/eslintrc": "^3.2.0", "@eslint/js": "9.20.0", "@eslint/plugin-kit": "^0.2.5", "@humanfs/node": "^0.16.6", "@humanwhocodes/module-importer": "^1.0.1", "@humanwhocodes/retry": "^0.4.1", "@types/estree": "^1.0.6", "@types/json-schema": "^7.0.15", "ajv": "^6.12.4", "chalk": "^4.0.0", "cross-spawn": "^7.0.6", "debug": "^4.3.2", "escape-string-regexp": "^4.0.0", "eslint-scope": "^8.2.0", "eslint-visitor-keys": "^4.2.0", "espree": "^10.3.0", "esquery": "^1.5.0", "esutils": "^2.0.2", "fast-deep-equal": "^3.1.3", "file-entry-cache": "^8.0.0", "find-up": "^5.0.0", "glob-parent": "^6.0.2", "ignore": "^5.2.0", "imurmurhash": "^0.1.4", "is-glob": "^4.0.0", "json-stable-stringify-without-jsonify": "^1.0.1", "lodash.merge": "^4.6.2", "minimatch": "^3.1.2", "natural-compare": "^1.4.0", "optionator": "^0.9.3" }, "peerDependencies": { "jiti": "*" }, "optionalPeers": ["jiti"], "bin": { "eslint": "bin/eslint.js" } }, "sha512-aL4F8167Hg4IvsW89ejnpTwx+B/UQRzJPGgbIOl+4XqffWsahVVsLEWoZvnrVuwpWmnRd7XeXmQI1zlKcFDteA=="], "eslint-plugin-react": ["eslint-plugin-react@7.37.4", "", { "dependencies": { "array-includes": "^3.1.8", "array.prototype.findlast": "^1.2.5", "array.prototype.flatmap": "^1.3.3", "array.prototype.tosorted": "^1.1.4", "doctrine": "^2.1.0", "es-iterator-helpers": "^1.2.1", "estraverse": "^5.3.0", "hasown": "^2.0.2", "jsx-ast-utils": "^2.4.1 || ^3.0.0", "minimatch": "^3.1.2", "object.entries": "^1.1.8", "object.fromentries": "^2.0.8", "object.values": "^1.2.1", "prop-types": "^15.8.1", "resolve": "^2.0.0-next.5", "semver": "^6.3.1", "string.prototype.matchall": "^4.0.12", "string.prototype.repeat": "^1.0.0" }, "peerDependencies": { "eslint": "^3 || ^4 || ^5 || ^6 || ^7 || ^8 || ^9.7" } }, "sha512-BGP0jRmfYyvOyvMoRX/uoUeW+GqNj9y16bPQzqAHf3AYII/tDs+jMN0dBVkl88/OZwNGwrVFxE7riHsXVfy/LQ=="], - "eslint-plugin-react-compiler": ["eslint-plugin-react-compiler@19.0.0-beta-27714ef-20250124", "", { "dependencies": { "@babel/core": "^7.24.4", "@babel/parser": "^7.24.4", "@babel/plugin-proposal-private-methods": "^7.18.6", "hermes-parser": "^0.25.1", "zod": "^3.22.4", "zod-validation-error": "^3.0.3" }, "peerDependencies": { "eslint": ">=7" } }, "sha512-8/NaV8E+eQ+BiKGeWg5wIizuKwEXLo+n/lgiyTLmJnZj8eoFW3G7NGJf3Nke4ji3Rndy34LK5Qi5TF6BPiZlSQ=="], + "eslint-plugin-react-compiler": ["eslint-plugin-react-compiler@19.0.0-beta-30d8a17-20250209", "", { "dependencies": { "@babel/core": "^7.24.4", "@babel/parser": "^7.24.4", "@babel/plugin-proposal-private-methods": "^7.18.6", "hermes-parser": "^0.25.1", "zod": "^3.22.4", "zod-validation-error": "^3.0.3" }, "peerDependencies": { "eslint": ">=7" } }, "sha512-D2wohyvsW27KSQV8IhyjL9UhYKs4f7Y8WPIuNOeiYylOaredvb2vW/AAE2m36BWLsn3Q9xRYz1UZj2AXR15w/g=="], "eslint-plugin-react-hooks": ["eslint-plugin-react-hooks@5.1.0", "", { "peerDependencies": { "eslint": "^3.0.0 || ^4.0.0 || ^5.0.0 || ^6.0.0 || ^7.0.0 || ^8.0.0-0 || ^9.0.0" } }, "sha512-mpJRtPgHN2tNAvZ35AMfqeB3Xqeo273QxrHJsbBEPWODRM4r0yB6jfoROqKEYrOn27UtRPpcpHc2UqyBSuUNTw=="], @@ -729,7 +723,7 @@ "react": ["react@19.0.0", "", {}, "sha512-V8AVnmPIICiWpGfm6GLzCR/W5FXLchHop40W4nXBmdlEceh16rCN8O8LNWm5bh5XUX91fh7KpA+W0TgMKmgTpQ=="], - "react-bootstrap": ["react-bootstrap@2.10.8", "", { "dependencies": { "@babel/runtime": "^7.24.7", "@restart/hooks": "^0.4.9", "@restart/ui": "^1.9.3", "@types/prop-types": "^15.7.12", "@types/react-transition-group": "^4.4.6", "classnames": "^2.3.2", "dom-helpers": "^5.2.1", "invariant": "^2.2.4", "prop-types": "^15.8.1", "prop-types-extra": "^1.1.0", "react-transition-group": "^4.4.5", "uncontrollable": "^7.2.1", "warning": "^4.0.3" }, "peerDependencies": { "@types/react": ">=16.14.8", "react": ">=16.14.0", "react-dom": ">=16.14.0" } }, "sha512-Vw1B2QfGGsrcBge0HQt8rjhnw2syFbtlPQXl/50k/bAnA4Jwi9+Bd4aYYTa68oyBB2KXMtDbGy2oMGl7eSet9A=="], + "react-bootstrap": ["react-bootstrap@2.10.9", "", { "dependencies": { "@babel/runtime": "^7.24.7", "@restart/hooks": "^0.4.9", "@restart/ui": "^1.9.4", "@types/prop-types": "^15.7.12", "@types/react-transition-group": "^4.4.6", "classnames": "^2.3.2", "dom-helpers": "^5.2.1", "invariant": "^2.2.4", "prop-types": "^15.8.1", "prop-types-extra": "^1.1.0", "react-transition-group": "^4.4.5", "uncontrollable": "^7.2.1", "warning": "^4.0.3" }, "peerDependencies": { "@types/react": ">=16.14.8", "react": ">=16.14.0", "react-dom": ">=16.14.0" }, "optionalPeers": ["@types/react"] }, "sha512-TJUCuHcxdgYpOqeWmRApM/Dy0+hVsxNRFvq2aRFQuxhNi/+ivOxC5OdWIeHS3agxvzJ4Ev4nDw2ZdBl9ymd/JQ=="], "react-chartjs-2": ["react-chartjs-2@5.3.0", "", { "peerDependencies": { "chart.js": "^4.1.1", "react": "^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0" } }, "sha512-UfZZFnDsERI3c3CZGxzvNJd02SHjaSJ8kgW1djn65H1KK8rehwTjyrRKOG3VTMG8wtHZ5rgAO5oTHtHi9GCCmw=="], @@ -745,9 +739,9 @@ "react-refresh": ["react-refresh@0.14.2", "", {}, "sha512-jCvmsr+1IUSMUyzOkRcvnVbX3ZYC6g9TDrDbFuFmRDq7PD4yaGbLKNQL6k2jnArV8hjYxh7hVhAZB6s9HDGpZA=="], - "react-router": ["react-router@7.1.3", "", { "dependencies": { "@types/cookie": "^0.6.0", "cookie": "^1.0.1", "set-cookie-parser": "^2.6.0", "turbo-stream": "2.4.0" }, "peerDependencies": { "react": ">=18", "react-dom": ">=18" } }, "sha512-EezYymLY6Guk/zLQ2vRA8WvdUhWFEj5fcE3RfWihhxXBW7+cd1LsIiA3lmx+KCmneAGQuyBv820o44L2+TtkSA=="], + "react-router": ["react-router@7.1.5", "", { "dependencies": { "@types/cookie": "^0.6.0", "cookie": "^1.0.1", "set-cookie-parser": "^2.6.0", "turbo-stream": "2.4.0" }, "peerDependencies": { "react": ">=18", "react-dom": ">=18" }, "optionalPeers": ["react-dom"] }, "sha512-8BUF+hZEU4/z/JD201yK6S+UYhsf58bzYIDq2NS1iGpwxSXDu7F+DeGSkIXMFBuHZB21FSiCzEcUb18cQNdRkA=="], - "react-router-dom": ["react-router-dom@7.1.3", "", { "dependencies": { "react-router": "7.1.3" }, "peerDependencies": { "react": ">=18", "react-dom": ">=18" } }, "sha512-qQGTE+77hleBzv9SIUIkGRvuFBQGagW+TQKy53UTZAO/3+YFNBYvRsNIZ1GT17yHbc63FylMOdS+m3oUriF1GA=="], + "react-router-dom": ["react-router-dom@7.1.5", "", { "dependencies": { "react-router": "7.1.5" }, "peerDependencies": { "react": ">=18", "react-dom": ">=18" } }, "sha512-/4f9+up0Qv92D3bB8iN5P1s3oHAepSGa9h5k6tpTFlixTTskJZwKGhJ6vRJ277tLD1zuaZTt95hyGWV1Z37csQ=="], "react-transition-group": ["react-transition-group@4.4.5", "", { "dependencies": { "@babel/runtime": "^7.5.5", "dom-helpers": "^5.0.1", "loose-envify": "^1.4.0", "prop-types": "^15.6.2" }, "peerDependencies": { "react": ">=16.6.0", "react-dom": ">=16.6.0" } }, "sha512-pZcd1MCJoiKiBR2NRxeCRg13uCXbydPnmB4EOeRrY7480qNWO8IIgQG6zlDkm6uRMsURXPuKq0GWtiM59a5Q6g=="], @@ -777,7 +771,7 @@ "safe-regex-test": ["safe-regex-test@1.1.0", "", { "dependencies": { "call-bound": "^1.0.2", "es-errors": "^1.3.0", "is-regex": "^1.2.1" } }, "sha512-x/+Cz4YrimQxQccJf5mKEbIa1NzeCRNI5Ecl/ekmlYaampdNLPalVyIcCZNNH3MvmqBugV5TMYZXv0ljslUlaw=="], - "sass": ["sass@1.83.4", "", { "dependencies": { "chokidar": "^4.0.0", "immutable": "^5.0.2", "source-map-js": ">=0.6.2 <2.0.0" }, "optionalDependencies": { "@parcel/watcher": "^2.4.1" }, "bin": "sass.js" }, "sha512-B1bozCeNQiOgDcLd33e2Cs2U60wZwjUUXzh900ZyQF5qUasvMdDZYbQ566LJu7cqR+sAHlAfO6RMkaID5s6qpA=="], + "sass": ["sass@1.84.0", "", { "dependencies": { "chokidar": "^4.0.0", "immutable": "^5.0.2", "source-map-js": ">=0.6.2 <2.0.0" }, "optionalDependencies": { "@parcel/watcher": "^2.4.1" }, "bin": { "sass": "sass.js" } }, "sha512-XDAbhEPJRxi7H0SxrnOpiXFQoUJHwkR2u3Zc4el+fK/Tt5Hpzw5kkQ59qVDfvdaUq6gCrEZIbySFBM2T9DNKHg=="], "scheduler": ["scheduler@0.25.0", "", {}, "sha512-xFVuu11jh+xcO7JOAGJNOXld8/TcEHK/4CituBUeUb5hqxJLj9YuemAEuvm9gQ/+pgXYfbQuqAkiYu+u7YEsNA=="], @@ -803,12 +797,8 @@ "side-channel-weakmap": ["side-channel-weakmap@1.0.2", "", { "dependencies": { "call-bound": "^1.0.2", "es-errors": "^1.3.0", "get-intrinsic": "^1.2.5", "object-inspect": "^1.13.3", "side-channel-map": "^1.0.1" } }, "sha512-WPS/HvHQTYnHisLo9McqBHOJk2FkHO/tlpvldyrnem4aeQp4hai3gythswg6p01oSoTl58rcpiFAjF2br2Ak2A=="], - "source-map": ["source-map@0.6.1", "", {}, "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g=="], - "source-map-js": ["source-map-js@1.2.1", "", {}, "sha512-UXWMKhLOwVKb728IUtQPXxfYU+usdybtUrK/8uGE8CQMvrhOpwvzDBwj0QhSL7MQc7vIsISBG8VQ8+IDQxpfQA=="], - "source-map-support": ["source-map-support@0.5.21", "", { "dependencies": { "buffer-from": "^1.0.0", "source-map": "^0.6.0" } }, "sha512-uBHU3L3czsIyYXKX88fdrGovxdSCoTGDRZ6SYXtSRxLZUzHg5P/66Ht6uoUlHu9EZod+inXhKo3qQgwXUT/y1w=="], - "spdx-compare": ["spdx-compare@1.0.0", "", { "dependencies": { "array-find-index": "^1.0.2", "spdx-expression-parse": "^3.0.0", "spdx-ranges": "^2.0.0" } }, "sha512-C1mDZOX0hnu0ep9dfmuoi03+eOdDoz2yvK79RxbcrVEG1NO1Ph35yW102DHWKN4pk80nwCgeMmSY5L25VE4D9A=="], "spdx-exceptions": ["spdx-exceptions@2.5.0", "", {}, "sha512-PiU42r+xO4UbUS1buo3LPJkjlO7430Xn5SVAhdpzzsPHsjbYVflnnFdATgabnLude+Cqu25p6N+g2lw/PFsa4w=="], @@ -841,15 +831,13 @@ "supports-preserve-symlinks-flag": ["supports-preserve-symlinks-flag@1.0.0", "", {}, "sha512-ot0WnXS9fgdkgIcePe6RHNk1WA8+muPa6cSjeR3V8K27q9BB1rTE3R1p7Hv0z1ZyAc8s6Vvv8DIyWf681MAt0w=="], - "survey-core": ["survey-core@1.12.20", "", {}, "sha512-0r3LT0o1IUy+rQEYMYZleWTiN3eVRB8cMmc6FasD20/aIjPprl/HrigVVtgGyQyU6G8Nm3FI+V8sAENpqYcf2g=="], - - "survey-react-ui": ["survey-react-ui@1.12.20", "", { "peerDependencies": { "react": "^16.5.0 || ^17.0.1 || ^18.2.0 || ^19.0.0", "react-dom": "^16.5.0 || ^17.0.1 || ^18.2.0 || ^19.0.0", "survey-core": "1.12.20" } }, "sha512-vGdgzLiD0VpCo4gKXjL4GbcihJ8DWCPvcivUns1hKgKYExiVo12GWmYadRra6jtlNFEl4GkHh3mIZym1c7Bmjw=="], + "survey-core": ["survey-core@1.12.23", "", {}, "sha512-/ZKLF+6xlVLyna4c4N3xWyrYRIlfT43C3ZjScrU/36QY5abpvLyEalHGMxu2rKcBNj1vyw5BwGccYf5DWs5RhQ=="], - "terser": ["terser@5.31.1", "", { "dependencies": { "@jridgewell/source-map": "^0.3.3", "acorn": "^8.8.2", "commander": "^2.20.0", "source-map-support": "~0.5.20" }, "bin": "bin/terser" }, "sha512-37upzU1+viGvuFtBo9NPufCb9dwM0+l9hMxYyWfBA+fbwrPqNJAhbZ6W47bBFnZHKHTUBnMvi87434qq+qnxOg=="], + "survey-react-ui": ["survey-react-ui@1.12.23", "", { "peerDependencies": { "react": "^16.5.0 || ^17.0.1 || ^18.2.0 || ^19.0.0", "react-dom": "^16.5.0 || ^17.0.1 || ^18.2.0 || ^19.0.0", "survey-core": "1.12.23" } }, "sha512-6J9SSFFlYp6N/IX8h5IB6uRhIBERCFiqtVNK2ItZdkRE9zep5ANbsIUlRbJD89pEFyn+6o3zqrgs8AXBIEPB3A=="], "to-regex-range": ["to-regex-range@5.0.1", "", { "dependencies": { "is-number": "^7.0.0" } }, "sha512-65P7iz6X5yEr1cwcgvQxbbIw7Uk3gOy5dIdtZ4rDveLqhrdJP+Li/Hx6tyK0NEb+2GCyneCMJiGqrADCSNk8sQ=="], - "ts-api-utils": ["ts-api-utils@2.0.0", "", { "peerDependencies": { "typescript": ">=4.8.4" } }, "sha512-xCt/TOAc+EOHS1XPnijD3/yzpH6qg2xppZO1YDqGoVsNXfQfzHpOdNuXwrwOU8u4ITXJyDCTyt8w5g1sZv9ynQ=="], + "ts-api-utils": ["ts-api-utils@2.0.1", "", { "peerDependencies": { "typescript": ">=4.8.4" } }, "sha512-dnlgjFSVetynI8nzgJ+qF62efpglpWRk8isUEWZGWlJYySCTD6aKvbUDu+zbPeDakk3bg5H4XpitHukgfL1m9w=="], "tslib": ["tslib@2.8.1", "", {}, "sha512-oJFu94HQb+KVduSUQL7wnpmqnfmLsOA/nAh6b6EH0wCEoK0/mPeXU6c3wKDV83MkOuHPRHtSXKKU99IBazS/2w=="], @@ -877,7 +865,7 @@ "uri-js": ["uri-js@4.4.1", "", { "dependencies": { "punycode": "^2.1.0" } }, "sha512-7rKUyy33Q1yc98pQ1DAmLtwX109F7TIfWlW1Ydo8Wl1ii1SeHieeh0HHfPeL2fMXK6z0s8ecKs9frCuLJvndBg=="], - "vite": ["vite@6.0.11", "", { "dependencies": { "esbuild": "^0.24.2", "postcss": "^8.4.49", "rollup": "^4.23.0" }, "optionalDependencies": { "fsevents": "~2.3.3" }, "peerDependencies": { "@types/node": "^18.0.0 || ^20.0.0 || >=22.0.0", "jiti": ">=1.21.0", "less": "*", "lightningcss": "^1.21.0", "sass": "*", "sass-embedded": "*", "stylus": "*", "sugarss": "*", "terser": "^5.16.0", "tsx": "^4.8.1", "yaml": "^2.4.2" }, "optionalPeers": ["jiti", "less", "lightningcss", "sass-embedded", "stylus", "sugarss", "tsx", "yaml"], "bin": "bin/vite.js" }, "sha512-4VL9mQPKoHy4+FE0NnRE/kbY51TOfaknxAjt3fJbGJxhIpBZiqVzlZDEesWWsuREXHwNdAoOFZ9MkPEVXczHwg=="], + "vite": ["vite@6.1.0", "", { "dependencies": { "esbuild": "^0.24.2", "postcss": "^8.5.1", "rollup": "^4.30.1" }, "optionalDependencies": { "fsevents": "~2.3.3" }, "peerDependencies": { "@types/node": "^18.0.0 || ^20.0.0 || >=22.0.0", "jiti": ">=1.21.0", "less": "*", "lightningcss": "^1.21.0", "sass": "*", "sass-embedded": "*", "stylus": "*", "sugarss": "*", "terser": "^5.16.0", "tsx": "^4.8.1", "yaml": "^2.4.2" }, "optionalPeers": ["@types/node", "jiti", "less", "lightningcss", "sass", "sass-embedded", "stylus", "sugarss", "terser", "tsx", "yaml"], "bin": { "vite": "bin/vite.js" } }, "sha512-RjjMipCKVoR4hVfPY6GQTgveinjNuyLw+qruksLDvA5ktI1150VmcMBKmQaEWJhg/j6Uaf6dNCNA0AfdzUb/hQ=="], "warning": ["warning@4.0.3", "", { "dependencies": { "loose-envify": "^1.0.0" } }, "sha512-rpJyN222KWIvHJ/F53XSZv0Zl/accqHR8et1kpaMTD/fLCRxtV8iX8czMzY7sVZupTI3zcUTg8eycS2kNF9l6w=="], @@ -911,6 +899,8 @@ "@eslint-community/eslint-utils/eslint-visitor-keys": ["eslint-visitor-keys@3.4.3", "", {}, "sha512-wpc+LXeiyiisxPlEkUzU6svyS1frIO3Mgxj1fdy7Pm8Ygzguax2N3Fa/D/ag1WqbOprdI+uY6wMUl8/a2G+iag=="], + "@eslint/plugin-kit/@eslint/core": ["@eslint/core@0.10.0", "", { "dependencies": { "@types/json-schema": "^7.0.15" } }, "sha512-gFHJ+xBOo4G3WRlR1e/3G8A6/KZAH6zcE/hkLRCZTi/B9avAG365QhFA8uOGzTMqgTghpn7/fSnscW++dpMSAw=="], + "@humanfs/node/@humanwhocodes/retry": ["@humanwhocodes/retry@0.3.1", "", {}, "sha512-JBxkERygn7Bv/GbN5Rv8Ul6LVknS+5Bp6RgDC/O8gEBU/yeH5Ui5C/OlWrTb6qct7LjjfT6Re2NxB0ln0yYybA=="], "@jridgewell/gen-mapping/@jridgewell/sourcemap-codec": ["@jridgewell/sourcemap-codec@1.4.15", "", {}, "sha512-eF2rxCRulEKXHTRiDrDy6erMYWqNw4LPdQ8UQA4huuxaQsVeRPFl2oM8oDGxMFhJUWZf9McpLtJasDDZb/Bpeg=="], @@ -925,8 +915,6 @@ "@typescript-eslint/typescript-estree/semver": ["semver@7.6.3", "", { "bin": "bin/semver.js" }, "sha512-oVekP1cKtI+CTDvHWYFUcMtsK/00wmAEfyqKfNdARm8u1wNVhSgaX7A8d4UuIlUI5e84iEwOhs7ZPYRmzU9U6A=="], - "eslint/@eslint/js": ["@eslint/js@9.19.0", "", {}, "sha512-rbq9/g38qjfqFLOVPvwjIvFFdNziEC5S65jmjPw5r6A//QH+W91akh9irMwjDN8zKUTak6W9EsAv4m/7Wnw0UQ=="], - "fast-glob/glob-parent": ["glob-parent@5.1.2", "", { "dependencies": { "is-glob": "^4.0.1" } }, "sha512-AOIgSQCepiJYwP3ARnGx+5VnTu2HBYdzbGP45eLw1vr3zB3vZLeyed1sC9hnbcOc9/SrMyM5RPQrkGz4aS9Zow=="], "@typescript-eslint/typescript-estree/minimatch/brace-expansion": ["brace-expansion@2.0.1", "", { "dependencies": { "balanced-match": "^1.0.0" } }, "sha512-XnAIvQ8eM+kC6aULx6wuQiwVsnzsi9d3WxzV3FpWTGA19F621kwdbsAcFKXgKUHZWsy+mY6iL1sHTxWEFCytDA=="], diff --git a/compendium-frontend/package.json b/compendium-frontend/package.json index 9c5d982a..1cd315d2 100644 --- a/compendium-frontend/package.json +++ b/compendium-frontend/package.json @@ -2,24 +2,24 @@ "name": "compendium-v2", "version": "1.0.0", "devDependencies": { - "@eslint/compat": "~1.2.5", + "@eslint/compat": "~1.2.6", "@eslint/eslintrc": "~3.2.0", - "@eslint/js": "~9.18.0", + "@eslint/js": "~9.20.0", "@types/react": "~19.0.8", "@types/react-dom": "~19.0.3", "@types/react-router-dom": "~5.3.3", - "@typescript-eslint/eslint-plugin": "~8.21.0", - "@typescript-eslint/parser": "~8.21.0", + "@typescript-eslint/eslint-plugin": "~8.24.0", + "@typescript-eslint/parser": "~8.24.0", "@vitejs/plugin-react": "~4.3.4", - "babel-plugin-react-compiler": "~19.0.0-beta-27714ef-20250124", - "eslint": "^9.19.0", + "babel-plugin-react-compiler": "~19.0.0-beta-30d8a17-20250209", + "eslint": "~9.20.0", "eslint-plugin-react": "~7.37.4", - "eslint-plugin-react-compiler": "^19.0.0-beta-27714ef-20250124", + "eslint-plugin-react-compiler": "^19.0.0-beta-30d8a17-20250209", "eslint-plugin-react-hooks": "~5.1.0", "rollup-plugin-license": "~3.5.3", - "sass": "~1.83.4", + "sass": "~1.84.0", "typescript": "~5.7.3", - "vite": "~6.0.11" + "vite": "~6.1.0" }, "scripts": { "start": "vite", @@ -29,21 +29,21 @@ }, "dependencies": { "bootstrap": "~5.3.3", - "bun-types": "~1.2.0", + "bun-types": "~1.2.2", "cartesian-product-multiple-arrays": "~1.0.9", "chart.js": "~4.4.7", "chartjs-plugin-datalabels": "~2.2.0", "html-to-image": "~1.11.11", "lodash": "~4.17.21", "react": "~19.0.0", - "react-bootstrap": "~2.10.8", + "react-bootstrap": "~2.10.9", "react-chartjs-2": "~5.3.0", "react-dom": "~19.0.0", "react-hot-toast": "~2.5.1", "react-icons": "~5.4.0", - "react-router-dom": "~7.1.3", - "survey-core": "~1.12.20", - "survey-react-ui": "~1.12.20", + "react-router-dom": "~7.1.5", + "survey-core": "~1.12.23", + "survey-react-ui": "~1.12.23", "xlsx": "~0.18.5" }, "description": "## development environment", diff --git a/compendium_v2/static/Bx5HfHBo.css b/compendium_v2/static/Du0IQ9wh.css similarity index 99% rename from compendium_v2/static/Bx5HfHBo.css rename to compendium_v2/static/Du0IQ9wh.css index f7c3cae3..a2c0ce50 100644 --- a/compendium_v2/static/Bx5HfHBo.css +++ b/compendium_v2/static/Du0IQ9wh.css @@ -1,5 +1,5 @@ @charset "UTF-8";/*! -* surveyjs - Survey JavaScript library v1.12.20 +* surveyjs - Survey JavaScript library v1.12.23 * Copyright (c) 2015-2025 Devsoft Baltic OÜ - http://surveyjs.io/ * License: MIT (http://www.opensource.org/licenses/mit-license.php) */@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")}.sv-dragdrop-movedown{transform:translate(0);animation:svdragdropmovedown .1s;animation-timing-function:ease-in-out}@keyframes svdragdropmovedown{0%{transform:translateY(-50px)}to{transform:translate(0)}}.sv-dragdrop-moveup{transform:translate(0);animation:svdragdropmoveup .1s;animation-timing-function:ease-in-out}@keyframes svdragdropmoveup{0%{transform:translateY(50px)}to{transform:translate(0)}}.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(.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(.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(.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;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:700}.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}.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:#19b3941a;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 use{fill:var(--sjs-general-forecolor-light, var(--foreground-light, #909090))}.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{color:var(--main-color, #1ab394);padding-left:.55em;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,.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 0 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 .44em .1em;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='1.0' encoding='utf-8'%3F%3E%3C!-- Generator: Adobe Illustrator 21.1.0, SVG Export Plug-In . SVG Version: 6.00 Build 0) --%3E%3Csvg version='1.1' id='Layer_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' style='enable-background:new 0 0 10 10;' xml:space='preserve'%3E%3Cstyle type='text/css'%3E .st0%7Bfill:%23404040;%7D%0A%3C/style%3E%3Cpolygon class='st0' points='2,2 0,4 5,9 10,4 8,2 5,5 '/%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='1.0' encoding='utf-8'%3F%3E%3C!-- Generator: Adobe Illustrator 21.1.0, SVG Export Plug-In . SVG Version: 6.00 Build 0) --%3E%3Csvg version='1.1' id='Layer_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' style='enable-background:new 0 0 10 10;' xml:space='preserve'%3E%3Cstyle type='text/css'%3E .st0%7Bfill:%23404040;%7D%0A%3C/style%3E%3Cpolygon class='st0' points='2,2 0,4 5,9 10,4 8,2 5,5 '/%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, .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:-.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:700;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:700}.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, .2))}.sv-question__title--error{background-color:var(--error-background-color, rgba(213, 41, 1, .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,.sv-question__form-group{margin-top:.5em}.sv-question--disabled .sv-question__header{color:var(--disabled-text-color, rgba(64, 64, 64, .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='1.0' encoding='utf-8'%3F%3E%3C!-- Generator: Adobe Illustrator 21.1.0, SVG Export Plug-In . SVG Version: 6.00 Build 0) --%3E%3Csvg version='1.1' id='Layer_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' style='enable-background:new 0 0 10 10;' xml:space='preserve'%3E%3Cstyle type='text/css'%3E .st0%7Bfill:%23404040;%7D%0A%3C/style%3E%3Cpolygon class='st0' points='2,2 0,4 5,9 10,4 8,2 5,5 '/%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='1.0' encoding='utf-8'%3F%3E%3C!-- Generator: Adobe Illustrator 21.1.0, SVG Export Plug-In . SVG Version: 6.00 Build 0) --%3E%3Csvg version='1.1' id='Layer_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' style='enable-background:new 0 0 10 10;' xml:space='preserve'%3E%3Cstyle type='text/css'%3E .st0%7Bfill:%23404040;%7D%0A%3C/style%3E%3Cpolygon class='st0' points='2,2 0,4 5,9 10,4 8,2 5,5 '/%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:700;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,.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, .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, .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='1.0' encoding='utf-8'%3F%3E%3C!-- Generator: Adobe Illustrator 21.1.0, SVG Export Plug-In . SVG Version: 6.00 Build 0) --%3E%3Csvg version='1.1' id='Layer_1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' x='0px' y='0px' viewBox='0 0 20 20' style='enable-background:new 0 0 20 20;' xml:space='preserve'%3E%3Cstyle type='text/css'%3E .st0%7Bfill:%239A9A9A;%7D%0A%3C/style%3E%3Cpolygon class='st0' points='19,6 17,4 10,11 3,4 1,6 10,15 '/%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),.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:700;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{-webkit-appearance:none;-moz-appearance:none;appearance:none;position:relative;border:3px solid var(--border-color, rgba(64, 64, 64, .5));border-radius:50px;text-align:center;vertical-align:middle;width:32px;height:32px;padding:0;margin:0;outline:none;cursor:pointer;background:#0000}.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;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,[dir=rtl] .sv-footer__complete-btn,[style*="direction:rtl"] .sv-footer__complete-btn,[style*="direction: rtl"] .sv-footer__complete-btn,[dir=rtl] .sv-footer__preview-btn,[style*="direction:rtl"] .sv-footer__preview-btn,[style*="direction: rtl"] .sv-footer__preview-btn,[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,[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:700;outline:none;padding:.5em 2.786em .6em;text-align:start}.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, .5));border-radius:2px;fill:#0000}.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, .5));border-radius:100%;fill:#0000}.sv-radio--allowhover:hover .sv-radio__svg{fill:var(--border-color, rgba(64, 64, 64, .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 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, .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:#0000;background-image:url("data:image/svg+xml,%3C%3Fxml version='1.0' encoding='utf-8'%3F%3E%3C!-- Generator: Adobe Illustrator 21.1.0, SVG Export Plug-In . SVG Version: 6.00 Build 0) --%3E%3Csvg version='1.1' id='Layer_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' style='enable-background:new 0 0 10 10;' xml:space='preserve'%3E%3Cstyle type='text/css'%3E .st0%7Bfill:%23404040;%7D%0A%3C/style%3E%3Cpolygon class='st0' points='2,2 0,4 5,9 10,4 8,2 5,5 '/%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='1.0' encoding='utf-8'%3F%3E%3C!-- Generator: Adobe Illustrator 21.1.0, SVG Export Plug-In . SVG Version: 6.00 Build 0) --%3E%3Csvg version='1.1' id='Layer_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' style='enable-background:new 0 0 10 10;' xml:space='preserve'%3E%3Cstyle type='text/css'%3E .st0%7Bfill:%231AB394;%7D%0A%3C/style%3E%3Cpolygon class='st0' points='2,2 0,4 5,9 10,4 8,2 5,5 '/%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:#0000;width:100%;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;display:inline-block;-webkit-appearance:none;-moz-appearance:none;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, .5));font-size:inherit;width:100%;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;display:inline-block;-webkit-appearance:none;-moz-appearance:none;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:start;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:#0000;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='1.0' encoding='utf-8'%3F%3E%3C!-- Generator: Adobe Illustrator 21.1.0, SVG Export Plug-In . SVG Version: 6.00 Build 0) --%3E%3Csvg version='1.1' id='Layer_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' style='enable-background:new 0 0 10 10;' xml:space='preserve'%3E%3Cstyle type='text/css'%3E .st0%7Bfill:%23404040;%7D%0A%3C/style%3E%3Cpolygon class='st0' points='2,2 0,4 5,9 10,4 8,2 5,5 '/%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='1.0' encoding='utf-8'%3F%3E%3C!-- Generator: Adobe Illustrator 21.1.0, SVG Export Plug-In . SVG Version: 6.00 Build 0) --%3E%3Csvg version='1.1' id='Layer_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' style='enable-background:new 0 0 10 10;' xml:space='preserve'%3E%3Cstyle type='text/css'%3E .st0%7Bfill:%231AB394;%7D%0A%3C/style%3E%3Cpolygon class='st0' points='2,2 0,4 5,9 10,4 8,2 5,5 '/%3E%3C/svg%3E ")}.sv-text[type=date]::-webkit-calendar-picker-indicator{color:#0000;background:#0000}.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:700;line-height:1.13;cursor:pointer;margin:3px .26em 3px 0;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{fill:var(--text-color, #404040);height:32px;width:32px;display:inline-block;vertical-align:middle;border:1px solid rgba(0,0,0,0)}.sv-rating__item-star>svg:hover{border:1px solid var(--main-hover-color, #9f9f9f)}.sv-rating__item-star>svg.sv-star-2{display:none}.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, .5));margin:3px .26em 3px 0;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:#0000}.sv-question--disabled .sv-rating--disabled .sv-rating__item-text:hover .sv-rating__item--selected .sv-rating__item-text,.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,.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 0 0 50%;transform:translate(-50%);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:700;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='1.0' encoding='utf-8'%3F%3E%3C!-- Generator: Adobe Illustrator 23.0.6, SVG Export Plug-In . SVG Version: 6.00 Build 0) --%3E%3Csvg version='1.1' id='Layer_1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' x='0px' y='0px' viewBox='0 0 72 72' style='enable-background:new 0 0 72 72;' xml:space='preserve'%3E%3Cstyle type='text/css'%3E .st0%7Bfill:%239A9A9A;%7D%0A%3C/style%3E%3Cg%3E%3Cpath class='st0' d='M11.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'/%3E%3Cpath class='st0' d='M35.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'/%3E%3C/g%3E%3C/svg%3E%0A");width:72px;height:72px;margin-left:calc(50% - 36px);padding:36px 0;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,.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)))}.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(.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(.5*(var(--sjs-corner-radius, 4px)));background-color:#0000;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(.75*(var(--sjs-font-size, 16px)));line-height:var(--sjs-font-size, 16px);margin:0 calc(.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(.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(.5*(var(--sjs-corner-radius, 4px)));background-color:#0000;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='1.0' encoding='utf-8'%3F%3E%3C!-- Generator: Adobe Illustrator 21.1.0, SVG Export Plug-In . SVG Version: 6.00 Build 0) --%3E%3Csvg version='1.1' id='Layer_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' style='enable-background:new 0 0 10 10;' xml:space='preserve'%3E%3Cstyle type='text/css'%3E .st0%7Bfill:%23404040;%7D%0A%3C/style%3E%3Cpolygon class='st0' points='2,2 0,4 5,9 10,4 8,2 5,5 '/%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%}.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:0 8px 16px #0000001a;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(.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-matrixdynamic-dragged-row{cursor:grabbing;position:absolute;z-index:10000;font-family:var(--sjs-font-family, var(--font-family, var(--sjs-default-font-family)))}.sv-matrixdynamic-dragged-row .sd-table__row{box-shadow:var(--sjs-shadow-large, 0px 8px 16px 0px rgba(0, 0, 0, .1)),var(--sjs-shadow-medium, 0px 2px 6px 0px rgba(0, 0, 0, .1));background-color:var(--sjs-general-backcolor, var(--background, #fff));display:flex;flex-grow:0;flex-shrink:0;align-items:center;line-height:0}.sv-matrixdynamic-dragged-row .sd-table__cell.sd-table__cell--drag>div{background-color:var(--sjs-questionpanel-backcolor, var(--sjs-question-background, var(--sjs-general-backcolor, var(--background, #fff))));min-height:calc(6*(var(--sjs-base-unit, var(--base-unit, 8px))))}.sd-table__cell--header.sd-table__cell--drag,.sd-table__cell.sd-table__cell--drag{padding-right:0;padding-left:0}.sd-question--mobile .sd-table__cell--header.sd-table__cell--drag,.sd-question--mobile .sd-table__cell.sd-table__cell--drag{display:none}.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)));min-width:100px;max-width:400px}.sv-drag-drop-choices-shortcut .sv-ranking-item{height:calc(6*(var(--sjs-base-unit, var(--base-unit, 8px))))}.sv-drag-drop-choices-shortcut .sv-ranking-item .sv-ranking-item__text .sv-string-viewer,.sv-drag-drop-choices-shortcut .sv-ranking-item .sv-ranking-item__text .sv-string-editor{overflow:hidden;white-space:nowrap}.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, .1)),var(--sjs-shadow-medium, 0px 2px 6px 0px rgba(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}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,.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(-.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-medium, 0px 2px 6px 0px rgba(0, 0, 0, .1)),var(--sjs-shadow-large, 0px 8px 16px 0px rgba(0, 0, 0, .1));border-radius:var(--sjs-corner-radius, 4px);position:absolute;padding:0}.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, .5));padding:calc(4*(var(--sjs-base-unit, var(--base-unit, 8px)))) calc(15*(var(--sjs-base-unit, var(--base-unit, 8px)))) calc(8*(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__body-content{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;gap:calc(4*(var(--sjs-base-unit, var(--base-unit, 8px))))}.sv-popup--modal .sv-popup__body-footer .sv-footer-action-bar{overflow:visible}.sv-popup--confirm .sv-popup__container{border-radius:var(--sjs-base-unit, var(--base-unit, 8px))}.sv-popup--confirm .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 .sv-popup__body-header{color:var(--sjs-font-editorfont-color, var(--sjs-general-forecolor, rgba(0, 0, 0, .91)));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 .sv-popup__scrolling-content{display:none}.sv-popup--confirm .sv-popup__body-footer{max-width:max-content}.sv-popup--confirm .sv-popup__body-footer .sv-action-bar{gap:calc(2*(var(--sjs-base-unit, var(--base-unit, 8px))))}.sd-root-modern--mobile .sv-popup--confirm .sv-popup__body-content{min-width:auto}.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, .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;box-shadow:unset;box-sizing:content-box}.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));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 .sv-action-bar,.sv-popup--overlay .sv-popup__body-footer-item{width:100%}.sv-popup--overlay .sv-popup__body-footer .sv-action{flex:1 0 0}.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--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, .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;color:var(--sjs-general-forecolor, var(--foreground, #161616))}.sv-popup__body-footer{display:flex}.sv-popup__body-footer .sv-action-bar{gap:calc(1.5*(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__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__body-content .sv-list{background-color:#0000}.sv-dropdown-popup .sv-popup__body-content{padding:calc(.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));gap:calc(2*(var(--sjs-base-unit, var(--base-unit, 8px))))}.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:#0000;color:var(--sjs-primary-backcolor, var(--primary, #19b394));border:none;box-shadow:none;padding:calc(.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))))}.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));gap:0}.sv-popup--dropdown-overlay .sv-popup__body-footer{background-color:var(--sjs-general-backcolor-dim, var(--background-dim, #f3f3f3));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(.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(.5*(var(--sjs-base-unit, var(--base-unit, 8px))));-webkit-appearance:none;-moz-appearance:none;appearance:none;border:none;border-radius:100%;background-color:#0000}.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(.5*(var(--sjs-base-unit, var(--base-unit, 8px)))) 0 calc(.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(.5*(var(--sjs-base-unit, var(--base-unit, 8px)))) var(--sjs-base-unit, var(--base-unit, 8px)) calc(.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(.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(.5*(var(--sjs-base-unit, var(--base-unit, 8px))));padding-bottom:calc(.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(.5*(var(--sjs-base-unit, var(--base-unit, 8px)))) 0 calc(.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, .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;box-shadow:var(--sjs-shadow-medium, 0px 2px 6px 0px rgba(0, 0, 0, .1)),var(--sjs-shadow-large, 0px 8px 16px 0px rgba(0, 0, 0, .1))}.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--enter{animation-name:fadeIn;animation-fill-mode:forwards;animation-duration:.15s}.sv-popup--modal.sv-popup--enter{animation-timing-function:cubic-bezier(0,0,.58,1);animation-duration:.25s}.sv-popup--leave{animation-direction:reverse;animation-name:fadeIn;animation-fill-mode:forwards;animation-duration:.15s}.sv-popup--modal.sv-popup--leave{animation-timing-function:cubic-bezier(.42,0,1,1);animation-duration:.25s}.sv-popup--hidden{opacity:0}@keyframes modalMoveUp{0%{transform:translateY(64px)}to{transform:translateY(0)}}.sv-popup--modal.sv-popup--leave .sv-popup__container,.sv-popup--modal.sv-popup--enter .sv-popup__container{animation-name:modalMoveUp;animation-timing-function:cubic-bezier(0,0,.58,1);animation-fill-mode:forwards;animation-duration:.25s}.sv-popup--modal.sv-popup--leave .sv-popup__container{animation-direction:reverse;animation-timing-function:cubic-bezier(.42,0,1,1)}.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__item{display:flex;box-sizing:border-box;flex-direction:row;justify-content:center;align-items:center;-webkit-appearance:none;-moz-appearance:none;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:400}.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}.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, .16)));box-shadow:var(--sjs-shadow-large, 0px 8px 16px 0px rgba(0, 0, 0, .1)),var(--sjs-shadow-medium, 0px 2px 6px 0px rgba(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:#0000}.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:#0000}.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));box-sizing:content-box}.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, .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, .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(.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, .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, .45))}sv-brand-info,.sv-brand-info{z-index:1;position:relative;margin-top:1px}.sv-brand-info{font-family:var(--sjs-font-family, var(--font-family, var(--sjs-default-font-family)));text-align:right;color:#161616;padding:24px 40px}.sv-brand-info a{color:#161616;text-decoration-line:underline}.sd-body--static .sv-brand-info{padding-top:0;margin-top:16px}.sd-body--responsive .sv-brand-info{padding-top:16px;margin-top:-8px}.sd-root-modern--mobile .sv-brand-info{padding:48px 24px 8px;margin-top:0;text-align:center}.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(.75*(var(--sjs-font-size, 16px)));line-height:var(--sjs-font-size, 16px);padding-top:4px}.sv-brand-info__terms a{color:#909090}.sd-body--responsive .sv-brand-info{padding-right:0;padding-left:0}.sv-ranking{outline:none;user-select:none;-webkit-user-select:none}.sv-ranking-item{cursor:pointer;position:relative;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(.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(.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(.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;bottom:0;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))));align-self:flex-start;padding-left:var(--sjs-base-unit, var(--base-unit, 8px));padding-right:var(--sjs-base-unit, var(--base-unit, 8px));margin-left:calc(-2*(var(--sjs-base-unit, var(--base-unit, 8px))));box-sizing:content-box}.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(3*(var(--sjs-base-unit, var(--base-unit, 8px))));height:calc(3*(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, .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(.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, .15s),background var(--sjs-transition-duration, .15s);outline:calc(.25*(var(--sjs-base-unit, var(--base-unit, 8px)))) solid rgba(0,0,0,0);align-self:self-start}.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))));overflow-wrap:break-word;word-break:normal;align-self:self-start;padding-top:var(--sjs-base-unit, var(--base-unit, 8px));padding-bottom:var(--sjs-base-unit, var(--base-unit, 8px))}.sv-ranking-item__text .sv-string-viewer,.sv-ranking-item__text .sv-string-editor{overflow:initial;white-space:pre-line}.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, .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:#0000;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(.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{height:calc(6*(var(--sjs-base-unit, var(--base-unit, 8px))))}.sv-ranking-item--ghost .sv-ranking-item__text .sv-string-viewer,.sv-ranking-item--ghost .sv-ranking-item__text .sv-string-editor{white-space:unset}.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, .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,.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(3*(var(--sjs-base-unit, var(--base-unit, 8px))));height:calc(3*(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(.5*(var(--sjs-base-unit, var(--base-unit, 8px))))}.sv-ranking-shortcut .sv-ranking-item__icon-container{margin-left:calc(0*(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, .1)),var(--sjs-shadow-large, 0px 8px 16px 0px rgba(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-shortcut .sv-ranking-item{height:calc(6*(var(--sjs-base-unit, var(--base-unit, 8px))))}.sv-ranking-shortcut .sv-ranking-item .sv-ranking-item__text .sv-string-viewer,.sv-ranking-shortcut .sv-ranking-item .sv-ranking-item__text .sv-string-editor{overflow:hidden;white-space:nowrap}.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-name:moveIn,fadeIn;animation-direction:reverse;animation-fill-mode:forwards;animation-timing-function:linear;animation-duration:var(--sjs-ranking-move-out-duration, .15s),var(--sjs-ranking-fade-out-duration, .1s);animation-delay:var(--sjs-ranking-move-out-delay, 0ms),0s}.sv-ranking-item--animate-item-adding{animation-name:moveIn,fadeIn;opacity:0;animation-fill-mode:forwards;animation-timing-function:linear;animation-duration:var(--sjs-ranking-move-in-duration, .15s),var(--sjs-ranking-fade-in-duration, .1s);animation-delay:0s,var(--sjs-ranking-fade-in-delay, .15s)}.sv-ranking-item--animate-item-adding-empty{animation-name:fadeIn;opacity:0;animation-timing-function:linear;animation-duration:var(--sjs-ranking-fade-in-duration, .1s);animation-delay:0}.sv-ranking-item--animate-item-removing-empty{animation-name:fadeIn;animation-direction:reverse;animation-timing-function:linear;animation-duration:var(--sjs-ranking-fade-out-duration, .1s);animation-delay:0}@keyframes sv-animate-item-opacity-reverse-keyframes{0%{opacity:0}to{opacity:1}}@keyframes sv-animate-item-opacity-keyframes{0%{opacity:1}to{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, .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(.5*(var(--sjs-base-unit, var(--base-unit, 8px))));padding-bottom:calc(.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, .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}.sv-ranking--select-to-rank-swap-areas{flex-direction:row-reverse}.sv-ranking--select-to-rank-swap-areas .sv-ranking__container--to .sv-ranking-item{padding-left:0;left:-24px!important}.sv-ranking--select-to-rank-swap-areas .sv-ranking__container--from .sv-ranking-item{padding-left:calc(2*(var(--sjs-base-unit, var(--base-unit, 8px))));left:0}.sv-ranking--select-to-rank-swap-areas .sv-ranking__container--from .sv-ranking-item__ghost.sv-ranking-item__ghost{left:calc(2*(var(--sjs-base-unit, var(--base-unit, 8px))))}.sv-ranking--select-to-rank-swap-areas .sv-ranking__container--empty.sv-ranking__container--to .sv-ranking__container-placeholder{padding-right:calc(5*(var(--sjs-base-unit, var(--base-unit, 8px))));padding-left:0}.sv-ranking--select-to-rank-swap-areas .sv-ranking__container--empty.sv-ranking__container--to .sv-ranking-item__ghost.sv-ranking-item__ghost{right:calc(2*(var(--sjs-base-unit, var(--base-unit, 8px))))}.sv-ranking--select-to-rank-swap-areas .sv-ranking__container--empty.sv-ranking__container--from .sv-ranking__container-placeholder{padding-left:calc(5*(var(--sjs-base-unit, var(--base-unit, 8px))));padding-right:0}.sd-question--mobile .sv-ranking-item__icon-container,.sd-root-modern.sd-root-modern--mobile .sv-ranking-item__icon-container{margin-left:calc(-2*(var(--sjs-base-unit, var(--base-unit, 8px))));display:flex;justify-content:flex-end;padding:0;width:calc(5*(var(--sjs-base-unit, var(--base-unit, 8px))))}.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{--sjs-list-item-padding-left-default: calc(2 * var(--sjs-base-unit, var(--base-unit, 8px)));--sjs-list-item-padding-left: calc(var(--sjs-list-item-level) * var(--sjs-list-item-padding-left-default));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:var(--sjs-list-item-padding-left, 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:400;font-size:var(--sjs-font-size, 16px);line-height:calc(1.5*(var(--sjs-font-size, 16px)));cursor:pointer;overflow:hidden;text-align:start;text-overflow:ellipsis;white-space:nowrap;transition:background-color var(--sjs-transition-duration, .15s),color var(--sjs-transition-duration, .15s)}.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(.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(.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(-.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));width:calc(2*(var(--sjs-base-unit, var(--base-unit, 8px))));height:calc(2*(var(--sjs-base-unit, var(--base-unit, 8px))));flex-shrink:0;padding:calc(.5*(var(--sjs-base-unit, var(--base-unit, 8px))));box-sizing:content-box}.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, .1)));color:var(--sjs-font-questiontitle-color, var(--sjs-general-forecolor, var(--foreground, #161616)));font-weight:400}.sv-list__item--group-selected>.sv-list__item-body{background-color:var(--sjs-primary-backcolor-light, var(--primary-light, rgba(25, 179, 148, .1)));color:var(--sjs-font-questiontitle-color, var(--sjs-general-forecolor, var(--foreground, #161616)));font-weight:400}.sv-list__item--group-selected>.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;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, .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:#0000}:root{--sjs-transition-duration: .15s}.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, .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:translate(-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:translate(-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(.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{-webkit-user-select:none;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;-webkit-user-select:none;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,.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,.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,.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,.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,.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, .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:400}.bold-20pt{font-family:Open Sans,sans-serif;font-size:20pt;font-weight:700}.bold-caps-16pt,.toggle-btn,.toggle-btn-survey,.toggle-btn-matrix,.toggle-btn-table{font-family:Open Sans,sans-serif;font-size:16pt;font-weight:700;text-transform:uppercase}.bold-caps-17pt{font-family:Open Sans,sans-serif;font-size:17pt;font-weight:700;text-transform:uppercase}.bold-caps-20pt,.geant-header{font-family:Open Sans,sans-serif;font-size:20pt;font-weight:700;text-transform:uppercase}.bold-caps-30pt{font-family:Open Sans,sans-serif;font-size:30pt;font-weight:700;text-transform:uppercase}.dark-teal,.geant-header{color:#003f5f}.bold-grey-12pt{font-family:Open Sans,sans-serif;font-size:12pt;font-weight:700;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 #00000040;border:rgb(247,158,59) 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}.sidebar-wrapper>nav.survey{border:rgb(0,63,95) 2px solid}.sidebar-wrapper>nav.survey a:hover{color:#53bbb4}nav.no-sidebar{margin-left:-80%;visibility:hidden;opacity:0}.toggle-btn,.toggle-btn-survey{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-survey{background-color:#003f5f}.toggle-btn-wrapper{padding:.7rem .5rem .5rem}.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:.7rem .5rem .5rem}.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 rgb(247,158,59)}.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 rgb(247,158,59)}:root{--muted-alpha: .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 rgb(185,190,197)}.card{--bs-card-border-color: ""}.grow,.grey-container{display:flex;flex-direction:column;flex:1}.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:25px 5px 5px}.collapsible-box,.collapsible-box-table,.collapsible-box-matrix{margin:1rem;border:2px solid rgb(247,158,59);padding:10px;width:80rem;max-width:97%}.collapsible-box-matrix{border:2px solid lightblue}.collapsible-box-table{border:unset;border-bottom:2px solid lightblue}.collapsible-content{display:flex;flex-direction:column;opacity:1;padding:1rem}.collapsible-content.collapsed{opacity:0;max-height:0;visibility:hidden;overflow: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:#00000040}.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, .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, .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 #000c}.bg-color-of-the-year-blank{background-color:#0000}.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;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;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:700;text-align:center;white-space:nowrap}.colored-table tbody td{background:none;padding:10px;border:unset;border-left:2px solid white;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(2n) 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(2n){background-color:#66798b2d}.table-bg-highlighted tr:hover{background-color:#66798b85}.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:#9d2872}.color-of-badge-1{background-color:#f1e04f}.color-of-badge-2{background-color:#db2a4c}.color-of-badge-3{background-color:#ed8d18}.color-of-badge-4{background-color:#89a679}.color-of-badge-blank{background-color:#0000}.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,#fff);padding:1.5rem;margin:10px}.color-of-the-service-0{color:transparent;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:transparent;stroke:#0069b0;stroke-width:1px;height:2em;width:2em;position:relative}.color-of-the-service-header-1{background:#fcdbd5;background:linear-gradient(180deg,#fcdbd5,#fff);padding:1.5rem;margin:10px}.color-of-the-service-1{color:transparent;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:transparent;stroke:#d80052;stroke-width:1px;height:2em;width:2em;position:relative}.color-of-the-service-header-2{background:#d4f0d9;background:linear-gradient(180deg,#d4f0d9,#fff);padding:1.5rem;margin:10px}.color-of-the-service-2{color:transparent;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:transparent;stroke:#00883d;stroke-width:1px;height:2em;width:2em;position:relative}.color-of-the-service-header-3{background:#fee8d0;background:linear-gradient(180deg,#fee8d0,#fff);padding:1.5rem;margin:10px}.color-of-the-service-3{color:transparent;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:transparent;stroke:#f8831f;stroke-width:1px;height:2em;width:2em;position:relative}.color-of-the-service-header-4{background:#d0e5f2;background:linear-gradient(180deg,#d0e5f2,#fff);padding:1.5rem;margin:10px}.color-of-the-service-4{color:transparent;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:transparent;stroke:#0097be;stroke-width:1px;height:2em;width:2em;position:relative}.color-of-the-service-header-5{background:#d2f0e2;background:linear-gradient(180deg,#d2f0e2,#fff);padding:1.5rem;margin:10px}.color-of-the-service-5{color:transparent;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:transparent;stroke:#1faa42;stroke-width:1px;height:2em;width:2em;position:relative}.color-of-the-service-header-6{background:#f3cfd3;background:linear-gradient(180deg,#f3cfd3,#fff);padding:1.5rem;margin:10px}.color-of-the-service-6{color:transparent;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:transparent;stroke:#d80052;stroke-width:1px;height:2em;width:2em;position:relative}.color-of-the-service-header-7{background:#c7ece9;background:linear-gradient(180deg,#c7ece9,#fff);padding:1.5rem;margin:10px}.color-of-the-service-7{color:transparent;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:transparent;stroke:#009c8f;stroke-width:1px;height:2em;width:2em;position:relative}.color-of-the-service-header-8{background:#fdcfd1;background:linear-gradient(180deg,#fdcfd1,#fff);padding:1.5rem;margin:10px}.color-of-the-service-8{color:transparent;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:transparent;stroke:#d80052;stroke-width:1px;height:2em;width:2em;position:relative}.color-of-the-service-header-9{background:#e9e4e3;background:linear-gradient(180deg,#e9e4e3,#fff);padding:1.5rem;margin:10px}.color-of-the-service-9{color:transparent;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:transparent;stroke:#8f766e;stroke-width:1px;height:2em;width:2em;position:relative}.color-of-the-service-header-10{background:#fdc9e7;background:linear-gradient(180deg,#fdc9e7,#fff);padding:1.5rem;margin:10px}.color-of-the-service-10{color:transparent;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:transparent;stroke:#ee0c70;stroke-width:1px;height:2em;width:2em;position:relative}.color-of-the-service-header-11{background:#e5e5e5;background:linear-gradient(180deg,#e5e5e5,#fff);padding:1.5rem;margin:10px}.color-of-the-service-11{color:transparent;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:transparent;stroke:#85878a;stroke-width:1px;height:2em;width:2em;position:relative}.color-of-the-service-header-12{background:#cddcec;background:linear-gradient(180deg,#cddcec,#fff);padding:1.5rem;margin:10px}.color-of-the-service-12{color:transparent;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:transparent;stroke:#262983;stroke-width:1px;height:2em;width:2em;position:relative}.bold-text{font-weight:700}.user-management-table{width:100%;table-layout:fixed;max-height:max(50vh,30rem)}@media (max-width: 1920px){.user-management-table{max-width:100vw}}.user-management-table>* th,.user-management-table>* td{word-wrap:break-word}.user-management-table thead th{position:sticky;top:-.1rem;background-color:#fff;z-index:1}.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:700;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:deepskyblue 1px solid;z-index:10}.imageoption{padding:.5rem;cursor:pointer;color:#003f5f;font-weight:700}.imageoption>span{margin-left:.25rem}.imageoption:after{content:"";display:block;border-bottom:grey 1px solid}.downloadcontainer{margin-bottom:2rem}.downloadcontainer>*{margin-right:.75rem}.no-list-style-type{list-style-type:none}.sd-element__title-expandable-svg{height:1.5rem;width:1.5rem;margin-right:.5rem}.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:700;padding-left:1rem!important;background-color:var(--answer-background-color, rgba(26, 179, 148, .2))}.sv-error-color-fix{background-color:var(--error-background-color, rgba(26, 179, 148, .2))}.sv-container-modern__title{display:none}.sv-title.sv-page__title{font-size:1.5rem;font-weight:700;color:#2db394;margin-bottom:.25rem}.sv-title.sv-panel__title{color:#262261}.sv-description{font-weight:700;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:700;text-transform:uppercase;background-color:#fff}.verification-ok{color:#fff;font-size:.85rem;font-weight:700;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:700;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} diff --git a/compendium_v2/static/SurveyContainerComponent-BjjhIoXr.js b/compendium_v2/static/SurveyContainerComponent-D2pyP2dn.js similarity index 80% rename from compendium_v2/static/SurveyContainerComponent-BjjhIoXr.js rename to compendium_v2/static/SurveyContainerComponent-D2pyP2dn.js index aedddce3..5d5ad65e 100644 --- a/compendium_v2/static/SurveyContainerComponent-BjjhIoXr.js +++ b/compendium_v2/static/SurveyContainerComponent-D2pyP2dn.js @@ -1,13 +1,13 @@ -import{X as uo,Y as lo,c as Re,r as F,j as L,C as co,D as ot,R as fe,W as Bn,Z as po,$ as ho,H as fo}from"./index.js";import{D as mo,k as A}from"./index-BGZcCZJE.js";import{r as vo,a as ue}from"./survey.core-ohqmCpQR.js";import{V as we,v as yo,o as go}from"./validation-COFmylEH.js";import{S as Co}from"./SurveySidebar-NbXpjOVQ.js";import"./SideBar-Bzc5cONd.js";var be={exports:{}};/*! - * surveyjs - Survey JavaScript library v1.12.20 +import{X as uo,Y as lo,c as Re,r as F,j as L,C as co,D as ot,R as fe,W as Bn,Z as po,$ as ho,H as fo}from"./index.js";import{D as mo,k as A}from"./index-BGZcCZJE.js";import{r as vo,a as ue}from"./survey.core-D1mOb2z9.js";import{V as we,v as yo,o as go}from"./validation-COFmylEH.js";import{S as Co}from"./SurveySidebar-NbXpjOVQ.js";import"./SideBar-Bzc5cONd.js";var be={exports:{}};/*! + * surveyjs - Survey JavaScript library v1.12.23 * Copyright (c) 2015-2025 Devsoft Baltic OÜ - http://surveyjs.io/ * License: MIT (http://www.opensource.org/licenses/mit-license.php) */var xo=be.exports,Pn;function wo(){return Pn||(Pn=1,function(I,l){(function(x,C){I.exports=C(uo(),lo(),vo())})(xo,function(m,x,C){return function(S){var h={};function d(a){if(h[a])return h[a].exports;var s=h[a]={i:a,l:!1,exports:{}};return S[a].call(s.exports,s,s.exports,d),s.l=!0,s.exports}return d.m=S,d.c=h,d.d=function(a,s,u){d.o(a,s)||Object.defineProperty(a,s,{enumerable:!0,get:u})},d.r=function(a){typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(a,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(a,"__esModule",{value:!0})},d.t=function(a,s){if(s&1&&(a=d(a)),s&8||s&4&&typeof a=="object"&&a&&a.__esModule)return a;var u=Object.create(null);if(d.r(u),Object.defineProperty(u,"default",{enumerable:!0,value:a}),s&2&&typeof a!="string")for(var c in a)d.d(u,c,(function(y){return a[y]}).bind(null,c));return u},d.n=function(a){var s=a&&a.__esModule?function(){return a.default}:function(){return a};return d.d(s,"a",s),s},d.o=function(a,s){return Object.prototype.hasOwnProperty.call(a,s)},d.p="",d(d.s="./src/entries/react-ui.ts")}({"./build/survey-core/icons/iconsV1.js":function(S,h,d){/*! - * surveyjs - Survey JavaScript library v1.12.20 + * surveyjs - Survey JavaScript library v1.12.23 * Copyright (c) 2015-2025 Devsoft Baltic OÜ - http://surveyjs.io/ * License: MIT (http://www.opensource.org/licenses/mit-license.php) */(function(s,u){S.exports=u()})(this,function(){return function(a){var s={};function u(c){if(s[c])return s[c].exports;var y=s[c]={i:c,l:!1,exports:{}};return a[c].call(y.exports,y,y.exports,u),y.l=!0,y.exports}return u.m=a,u.c=s,u.d=function(c,y,E){u.o(c,y)||Object.defineProperty(c,y,{enumerable:!0,get:E})},u.r=function(c){typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(c,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(c,"__esModule",{value:!0})},u.t=function(c,y){if(y&1&&(c=u(c)),y&8||y&4&&typeof c=="object"&&c&&c.__esModule)return c;var E=Object.create(null);if(u.r(E),Object.defineProperty(E,"default",{enumerable:!0,value:c}),y&2&&typeof c!="string")for(var g in c)u.d(E,g,(function(w){return c[w]}).bind(null,g));return E},u.n=function(c){var y=c&&c.__esModule?function(){return c.default}:function(){return c};return u.d(y,"a",y),y},u.o=function(c,y){return Object.prototype.hasOwnProperty.call(c,y)},u.p="",u(u.s="./packages/survey-core/src/iconsV1.ts")}({"./packages/survey-core/src/iconsV1.ts":function(a,s,u){u.r(s),u.d(s,"icons",function(){return y});var c=u("./packages/survey-core/src/images-v1 sync recursive \\.svg$"),y={};c.keys().forEach(function(E){y[E.substring(2,E.length-4).toLowerCase()]=c(E)})},"./packages/survey-core/src/images-v1 sync recursive \\.svg$":function(a,s,u){var c={"./ModernBooleanCheckChecked.svg":"./packages/survey-core/src/images-v1/ModernBooleanCheckChecked.svg","./ModernBooleanCheckInd.svg":"./packages/survey-core/src/images-v1/ModernBooleanCheckInd.svg","./ModernBooleanCheckUnchecked.svg":"./packages/survey-core/src/images-v1/ModernBooleanCheckUnchecked.svg","./ModernCheck.svg":"./packages/survey-core/src/images-v1/ModernCheck.svg","./ModernRadio.svg":"./packages/survey-core/src/images-v1/ModernRadio.svg","./ProgressButton.svg":"./packages/survey-core/src/images-v1/ProgressButton.svg","./RemoveFile.svg":"./packages/survey-core/src/images-v1/RemoveFile.svg","./TimerCircle.svg":"./packages/survey-core/src/images-v1/TimerCircle.svg","./add-24x24.svg":"./packages/survey-core/src/images-v1/add-24x24.svg","./arrowleft-16x16.svg":"./packages/survey-core/src/images-v1/arrowleft-16x16.svg","./arrowright-16x16.svg":"./packages/survey-core/src/images-v1/arrowright-16x16.svg","./camera-24x24.svg":"./packages/survey-core/src/images-v1/camera-24x24.svg","./camera-32x32.svg":"./packages/survey-core/src/images-v1/camera-32x32.svg","./cancel-24x24.svg":"./packages/survey-core/src/images-v1/cancel-24x24.svg","./check-16x16.svg":"./packages/survey-core/src/images-v1/check-16x16.svg","./check-24x24.svg":"./packages/survey-core/src/images-v1/check-24x24.svg","./chevrondown-24x24.svg":"./packages/survey-core/src/images-v1/chevrondown-24x24.svg","./chevronright-16x16.svg":"./packages/survey-core/src/images-v1/chevronright-16x16.svg","./clear-16x16.svg":"./packages/survey-core/src/images-v1/clear-16x16.svg","./clear-24x24.svg":"./packages/survey-core/src/images-v1/clear-24x24.svg","./close-16x16.svg":"./packages/survey-core/src/images-v1/close-16x16.svg","./close-24x24.svg":"./packages/survey-core/src/images-v1/close-24x24.svg","./collapse-16x16.svg":"./packages/survey-core/src/images-v1/collapse-16x16.svg","./collapsedetails-16x16.svg":"./packages/survey-core/src/images-v1/collapsedetails-16x16.svg","./delete-24x24.svg":"./packages/survey-core/src/images-v1/delete-24x24.svg","./drag-24x24.svg":"./packages/survey-core/src/images-v1/drag-24x24.svg","./draghorizontal-24x16.svg":"./packages/survey-core/src/images-v1/draghorizontal-24x16.svg","./expand-16x16.svg":"./packages/survey-core/src/images-v1/expand-16x16.svg","./expanddetails-16x16.svg":"./packages/survey-core/src/images-v1/expanddetails-16x16.svg","./file-72x72.svg":"./packages/survey-core/src/images-v1/file-72x72.svg","./flip-24x24.svg":"./packages/survey-core/src/images-v1/flip-24x24.svg","./folder-24x24.svg":"./packages/survey-core/src/images-v1/folder-24x24.svg","./fullsize-16x16.svg":"./packages/survey-core/src/images-v1/fullsize-16x16.svg","./image-48x48.svg":"./packages/survey-core/src/images-v1/image-48x48.svg","./loading-48x48.svg":"./packages/survey-core/src/images-v1/loading-48x48.svg","./maximize-16x16.svg":"./packages/survey-core/src/images-v1/maximize-16x16.svg","./minimize-16x16.svg":"./packages/survey-core/src/images-v1/minimize-16x16.svg","./more-24x24.svg":"./packages/survey-core/src/images-v1/more-24x24.svg","./navmenu-24x24.svg":"./packages/survey-core/src/images-v1/navmenu-24x24.svg","./noimage-48x48.svg":"./packages/survey-core/src/images-v1/noimage-48x48.svg","./ranking-arrows.svg":"./packages/survey-core/src/images-v1/ranking-arrows.svg","./rankingundefined-16x16.svg":"./packages/survey-core/src/images-v1/rankingundefined-16x16.svg","./rating-star-2.svg":"./packages/survey-core/src/images-v1/rating-star-2.svg","./rating-star-small-2.svg":"./packages/survey-core/src/images-v1/rating-star-small-2.svg","./rating-star-small.svg":"./packages/survey-core/src/images-v1/rating-star-small.svg","./rating-star.svg":"./packages/survey-core/src/images-v1/rating-star.svg","./reorder-24x24.svg":"./packages/survey-core/src/images-v1/reorder-24x24.svg","./restoredown-16x16.svg":"./packages/survey-core/src/images-v1/restoredown-16x16.svg","./search-24x24.svg":"./packages/survey-core/src/images-v1/search-24x24.svg","./smiley-rate1-24x24.svg":"./packages/survey-core/src/images-v1/smiley-rate1-24x24.svg","./smiley-rate10-24x24.svg":"./packages/survey-core/src/images-v1/smiley-rate10-24x24.svg","./smiley-rate2-24x24.svg":"./packages/survey-core/src/images-v1/smiley-rate2-24x24.svg","./smiley-rate3-24x24.svg":"./packages/survey-core/src/images-v1/smiley-rate3-24x24.svg","./smiley-rate4-24x24.svg":"./packages/survey-core/src/images-v1/smiley-rate4-24x24.svg","./smiley-rate5-24x24.svg":"./packages/survey-core/src/images-v1/smiley-rate5-24x24.svg","./smiley-rate6-24x24.svg":"./packages/survey-core/src/images-v1/smiley-rate6-24x24.svg","./smiley-rate7-24x24.svg":"./packages/survey-core/src/images-v1/smiley-rate7-24x24.svg","./smiley-rate8-24x24.svg":"./packages/survey-core/src/images-v1/smiley-rate8-24x24.svg","./smiley-rate9-24x24.svg":"./packages/survey-core/src/images-v1/smiley-rate9-24x24.svg"};function y(g){var w=E(g);return u(w)}function E(g){if(!u.o(c,g)){var w=new Error("Cannot find module '"+g+"'");throw w.code="MODULE_NOT_FOUND",w}return c[g]}y.keys=function(){return Object.keys(c)},y.resolve=E,a.exports=y,y.id="./packages/survey-core/src/images-v1 sync recursive \\.svg$"},"./packages/survey-core/src/images-v1/ModernBooleanCheckChecked.svg":function(a,s){a.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>'},"./packages/survey-core/src/images-v1/ModernBooleanCheckInd.svg":function(a,s){a.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>'},"./packages/survey-core/src/images-v1/ModernBooleanCheckUnchecked.svg":function(a,s){a.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>'},"./packages/survey-core/src/images-v1/ModernCheck.svg":function(a,s){a.exports='<svg viewBox="0 0 24 24"><path d="M5,13l2-2l3,3l7-7l2,2l-9,9L5,13z"></path></svg>'},"./packages/survey-core/src/images-v1/ModernRadio.svg":function(a,s){a.exports='<svg viewBox="-12 -12 24 24"><circle r="6" cx="0" cy="0"></circle></svg>'},"./packages/survey-core/src/images-v1/ProgressButton.svg":function(a,s){a.exports='<svg viewBox="0 0 10 10"><polygon points="2,2 0,4 5,9 10,4 8,2 5,5 "></polygon></svg>'},"./packages/survey-core/src/images-v1/RemoveFile.svg":function(a,s){a.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>'},"./packages/survey-core/src/images-v1/TimerCircle.svg":function(a,s){a.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>'},"./packages/survey-core/src/images-v1/add-24x24.svg":function(a,s){a.exports='<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path d="M13 11H17V13H13V17H11V13H7V11H11V7H13V11ZM23 12C23 18.1 18.1 23 12 23C5.9 23 1 18.1 1 12C1 5.9 5.9 1 12 1C18.1 1 23 5.9 23 12ZM21 12C21 7 17 3 12 3C7 3 3 7 3 12C3 17 7 21 12 21C17 21 21 17 21 12Z"></path></svg>'},"./packages/survey-core/src/images-v1/arrowleft-16x16.svg":function(a,s){a.exports='<svg viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg"><path d="M15 8.99999H4.4L8.7 13.3L7.3 14.7L0.599998 7.99999L7.3 1.29999L8.7 2.69999L4.4 6.99999H15V8.99999Z"></path></svg>'},"./packages/survey-core/src/images-v1/arrowright-16x16.svg":function(a,s){a.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>'},"./packages/survey-core/src/images-v1/camera-24x24.svg":function(a,s){a.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>'},"./packages/survey-core/src/images-v1/camera-32x32.svg":function(a,s){a.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>'},"./packages/survey-core/src/images-v1/cancel-24x24.svg":function(a,s){a.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.40005 14.6C0.600049 15.4 0.600049 16.6 1.40005 17.4L6.00005 22H12L22.6 11.4C23.3 10.6 23.3 9.3 22.6 8.6ZM11.1 20H6.80005L2.80005 16L6.20005 12.6L12.4 18.8L11.1 20ZM13.8 17.4L7.60005 11.2L15 3.8L21.2 10L13.8 17.4ZM16 20H23V22H14L16 20Z"></path></svg>'},"./packages/survey-core/src/images-v1/check-16x16.svg":function(a,s){a.exports='<svg viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg"><path d="M5.003 14.413L0.292999 9.70303L1.703 8.29303L5.003 11.583L14.293 2.29303L15.703 3.70303L5.003 14.413Z"></path></svg>'},"./packages/survey-core/src/images-v1/check-24x24.svg":function(a,s){a.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>'},"./packages/survey-core/src/images-v1/chevrondown-24x24.svg":function(a,s){a.exports='<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path d="M12 15L17 10H7L12 15Z"></path></svg>'},"./packages/survey-core/src/images-v1/chevronright-16x16.svg":function(a,s){a.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>'},"./packages/survey-core/src/images-v1/clear-16x16.svg":function(a,s){a.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>'},"./packages/survey-core/src/images-v1/clear-24x24.svg":function(a,s){a.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.40005 14.6C0.600049 15.4 0.600049 16.6 1.40005 17.4L6.00005 22H12L22.6 11.4C23.3 10.6 23.3 9.3 22.6 8.6ZM11.1 20H6.80005L2.80005 16L6.20005 12.6L12.4 18.8L11.1 20ZM13.8 17.4L7.60005 11.2L15 3.8L21.2 10L13.8 17.4ZM16 20H23V22H14L16 20Z"></path></svg>'},"./packages/survey-core/src/images-v1/close-16x16.svg":function(a,s){a.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>'},"./packages/survey-core/src/images-v1/close-24x24.svg":function(a,s){a.exports='<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path d="M13.4101 12L20.7001 4.71C21.0901 4.32 21.0901 3.69 20.7001 3.3C20.3101 2.91 19.6801 2.91 19.2901 3.3L12.0001 10.59L4.71006 3.29C4.32006 2.9 3.68006 2.9 3.29006 3.29C2.90006 3.68 2.90006 4.32 3.29006 4.71L10.5801 12L3.29006 19.29C2.90006 19.68 2.90006 20.31 3.29006 20.7C3.49006 20.9 3.74006 20.99 4.00006 20.99C4.26006 20.99 4.51006 20.89 4.71006 20.7L12.0001 13.41L19.2901 20.7C19.4901 20.9 19.7401 20.99 20.0001 20.99C20.2601 20.99 20.5101 20.89 20.7101 20.7C21.1001 20.31 21.1001 19.68 20.7101 19.29L13.4201 12H13.4101Z"></path></svg>'},"./packages/survey-core/src/images-v1/collapse-16x16.svg":function(a,s){a.exports='<svg viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg"><path d="M2 6L3 5L8 10L13 5L14 6L8 12L2 6Z"></path></svg>'},"./packages/survey-core/src/images-v1/collapsedetails-16x16.svg":function(a,s){a.exports='<svg viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg"><path d="M13 7H3V9H13V7Z"></path></svg>'},"./packages/survey-core/src/images-v1/delete-24x24.svg":function(a,s){a.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>'},"./packages/survey-core/src/images-v1/drag-24x24.svg":function(a,s){a.exports='<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path d="M13 6C13 4.9 13.9 4 15 4C16.1 4 17 4.9 17 6C17 7.1 16.1 8 15 8C13.9 8 13 7.1 13 6ZM9 4C7.9 4 7 4.9 7 6C7 7.1 7.9 8 9 8C10.1 8 11 7.1 11 6C11 4.9 10.1 4 9 4ZM15 10C13.9 10 13 10.9 13 12C13 13.1 13.9 14 15 14C16.1 14 17 13.1 17 12C17 10.9 16.1 10 15 10ZM9 10C7.9 10 7 10.9 7 12C7 13.1 7.9 14 9 14C10.1 14 11 13.1 11 12C11 10.9 10.1 10 9 10ZM15 16C13.9 16 13 16.9 13 18C13 19.1 13.9 20 15 20C16.1 20 17 19.1 17 18C17 16.9 16.1 16 15 16ZM9 16C7.9 16 7 16.9 7 18C7 19.1 7.9 20 9 20C10.1 20 11 19.1 11 18C11 16.9 10.1 16 9 16Z"></path></svg>'},"./packages/survey-core/src/images-v1/draghorizontal-24x16.svg":function(a,s){a.exports='<svg viewBox="0 0 24 16" xmlns="http://www.w3.org/2000/svg"><path d="M18 9C19.1 9 20 9.9 20 11C20 12.1 19.1 13 18 13C16.9 13 16 12.1 16 11C16 9.9 16.9 9 18 9ZM20 5C20 3.9 19.1 3 18 3C16.9 3 16 3.9 16 5C16 6.1 16.9 7 18 7C19.1 7 20 6.1 20 5ZM14 11C14 9.9 13.1 9 12 9C10.9 9 10 9.9 10 11C10 12.1 10.9 13 12 13C13.1 13 14 12.1 14 11ZM14 5C14 3.9 13.1 3 12 3C10.9 3 10 3.9 10 5C10 6.1 10.9 7 12 7C13.1 7 14 6.1 14 5ZM8 11C8 9.9 7.1 9 6 9C4.9 9 4 9.9 4 11C4 12.1 4.9 13 6 13C7.1 13 8 12.1 8 11ZM8 5C8 3.9 7.1 3 6 3C4.9 3 4 3.9 4 5C4 6.1 4.9 7 6 7C7.1 7 8 6.1 8 5Z"></path></svg>'},"./packages/survey-core/src/images-v1/expand-16x16.svg":function(a,s){a.exports='<svg viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg"><path d="M6 14L5 13L10 8L5 3L6 2L12 8L6 14Z"></path></svg>'},"./packages/survey-core/src/images-v1/expanddetails-16x16.svg":function(a,s){a.exports='<svg viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg"><path d="M13 7H9V3H7V7H3V9H7V13H9V9H13V7Z"></path></svg>'},"./packages/survey-core/src/images-v1/file-72x72.svg":function(a,s){a.exports='<svg viewBox="0 0 72 72" xmlns="http://www.w3.org/2000/svg"><path d="M62.83 12.83L53.17 3.17C52.7982 2.79866 52.357 2.50421 51.8714 2.30346C51.3858 2.1027 50.8654 1.99959 50.34 2H14C12.4087 2 10.8826 2.63214 9.75735 3.75736C8.63214 4.88258 8 6.4087 8 8V64C8 65.5913 8.63214 67.1174 9.75735 68.2426C10.8826 69.3679 12.4087 70 14 70H58C59.5913 70 61.1174 69.3679 62.2426 68.2426C63.3679 67.1174 64 65.5913 64 64V15.66C64.0004 15.1346 63.8973 14.6142 63.6965 14.1286C63.4958 13.643 63.2013 13.2018 62.83 12.83ZM52 4.83L61.17 14H56C54.9391 14 53.9217 13.5786 53.1716 12.8284C52.4214 12.0783 52 11.0609 52 10V4.83ZM62 64C62 65.0609 61.5786 66.0783 60.8284 66.8284C60.0783 67.5786 59.0609 68 58 68H14C12.9391 68 11.9217 67.5786 11.1716 66.8284C10.4214 66.0783 10 65.0609 10 64V8C10 6.93914 10.4214 5.92172 11.1716 5.17157C11.9217 4.42143 12.9391 4 14 4H50V10C50 11.5913 50.6321 13.1174 51.7574 14.2426C52.8826 15.3679 54.4087 16 56 16H62V64ZM22 26H50V28H22V26ZM22 32H50V34H22V32ZM22 38H50V40H22V38ZM22 44H50V46H22V44Z"></path></svg>'},"./packages/survey-core/src/images-v1/flip-24x24.svg":function(a,s){a.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>'},"./packages/survey-core/src/images-v1/folder-24x24.svg":function(a,s){a.exports='<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path d="M21.93 9H21V7C21 6.46957 20.7893 5.96086 20.4142 5.58579C20.0391 5.21071 19.5304 5 19 5H10L8 3H4C3.46957 3 2.96086 3.21071 2.58579 3.58579C2.21071 3.96086 2 4.46957 2 5L2 21H21L23.89 11.63C23.9916 11.3244 24.0179 10.9988 23.9667 10.6809C23.9155 10.363 23.7882 10.0621 23.5958 9.80392C23.4034 9.54571 23.1514 9.33779 22.8614 9.19782C22.5714 9.05786 22.2519 8.99 21.93 9ZM4 5H7.17L8.59 6.41L9.17 7H19V9H6L4 15V5ZM22 11L19.54 19H4.77L7.44 11H22Z"></path></svg>'},"./packages/survey-core/src/images-v1/fullsize-16x16.svg":function(a,s){a.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>'},"./packages/survey-core/src/images-v1/image-48x48.svg":function(a,s){a.exports='<svg viewBox="0 0 48 48" xmlns="http://www.w3.org/2000/svg"><path d="M36 8H12C9.79 8 8 9.79 8 12V36C8 38.21 9.79 40 12 40H36C38.21 40 40 38.21 40 36V12C40 9.79 38.21 8 36 8ZM38 36C38 37.1 37.1 38 36 38H12C10.9 38 10 37.1 10 36V12C10 10.9 10.9 10 12 10H36C37.1 10 38 10.9 38 12V36ZM14 17C14 15.34 15.34 14 17 14C18.66 14 20 15.34 20 17C20 18.66 18.66 20 17 20C15.34 20 14 18.66 14 17ZM27 24L36 36H12L19 27L23 29L27 24Z"></path></svg>'},"./packages/survey-core/src/images-v1/loading-48x48.svg":function(a,s){a.exports='<svg viewBox="0 0 48 48" fill="none" xmlns="http://www.w3.org/2000/svg"><g clip-path="url(#clip0_19679_369428)"><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_19679_369428"><rect width="32" height="32" fill="white" transform="translate(8 8)"></rect></clipPath></defs></svg>'},"./packages/survey-core/src/images-v1/maximize-16x16.svg":function(a,s){a.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>'},"./packages/survey-core/src/images-v1/minimize-16x16.svg":function(a,s){a.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>'},"./packages/survey-core/src/images-v1/more-24x24.svg":function(a,s){a.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>'},"./packages/survey-core/src/images-v1/navmenu-24x24.svg":function(a,s){a.exports='<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path d="M16 7H2V5H16V7ZM2 11V13H22V11H2ZM2 19H10V17H2V19Z"></path></svg>'},"./packages/survey-core/src/images-v1/noimage-48x48.svg":function(a,s){a.exports='<svg viewBox="0 0 48 48" xmlns="http://www.w3.org/2000/svg"><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></svg>'},"./packages/survey-core/src/images-v1/ranking-arrows.svg":function(a,s){a.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>'},"./packages/survey-core/src/images-v1/rankingundefined-16x16.svg":function(a,s){a.exports='<svg viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg"><path d="M13 7H3V9H13V7Z"></path></svg>'},"./packages/survey-core/src/images-v1/rating-star-2.svg":function(a,s){a.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>'},"./packages/survey-core/src/images-v1/rating-star-small-2.svg":function(a,s){a.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>'},"./packages/survey-core/src/images-v1/rating-star-small.svg":function(a,s){a.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>'},"./packages/survey-core/src/images-v1/rating-star.svg":function(a,s){a.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>'},"./packages/survey-core/src/images-v1/reorder-24x24.svg":function(a,s){a.exports='<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path d="M17 5L12 0L7 5H11V9H13V5H17Z"></path><path d="M13 19V15H11V19H7L12 24L17 19H13Z"></path></svg>'},"./packages/survey-core/src/images-v1/restoredown-16x16.svg":function(a,s){a.exports='<svg viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg"><path d="M15 6C15 6.55 14.55 7 14 7H10C9.45 7 9 6.55 9 6V2C9 1.45 9.45 1 10 1C10.55 1 11 1.45 11 2V3.59L13.29 1.29C13.49 1.09 13.74 1 14 1C14.26 1 14.51 1.1 14.71 1.29C15.1 1.68 15.1 2.31 14.71 2.7L12.42 4.99H14.01C14.56 4.99 15.01 5.44 15.01 5.99L15 6ZM6 9H2C1.45 9 0.999998 9.45 0.999998 10C0.999998 10.55 1.45 11 2 11H3.59L1.29 13.29C0.899998 13.68 0.899998 14.31 1.29 14.7C1.68 15.09 2.31 15.09 2.7 14.7L4.99 12.41V14C4.99 14.55 5.44 15 5.99 15C6.54 15 6.99 14.55 6.99 14V10C6.99 9.45 6.54 9 5.99 9H6Z"></path></svg>'},"./packages/survey-core/src/images-v1/search-24x24.svg":function(a,s){a.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>'},"./packages/survey-core/src/images-v1/smiley-rate1-24x24.svg":function(a,s){a.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>'},"./packages/survey-core/src/images-v1/smiley-rate10-24x24.svg":function(a,s){a.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>'},"./packages/survey-core/src/images-v1/smiley-rate2-24x24.svg":function(a,s){a.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.51001C4.47291 4.51001 4.08291 4.25001 3.94291 3.84001C3.76291 3.32001 4.03291 2.75001 4.55291 2.57001L8.32291 1.25001C8.84291 1.06001 9.41291 1.34001 9.59291 1.86001C9.77291 2.38001 9.50291 2.95001 8.98291 3.13001L5.20291 4.45001C5.09291 4.49001 4.98291 4.51001 4.87291 4.51001H4.88291ZM19.8129 3.89001C20.0229 3.38001 19.7729 2.79001 19.2629 2.59001L15.5529 1.07001C15.0429 0.860007 14.4529 1.11001 14.2529 1.62001C14.0429 2.13001 14.2929 2.72001 14.8029 2.92001L18.5029 4.43001C18.6229 4.48001 18.7529 4.50001 18.8829 4.50001C19.2729 4.50001 19.6529 4.27001 19.8129 3.88001V3.89001ZM3.50291 6.00001C2.64291 6.37001 1.79291 6.88001 1.00291 7.48001C0.79291 7.64001 0.64291 7.87001 0.59291 8.14001C0.48291 8.73001 0.87291 9.29001 1.45291 9.40001C2.04291 9.51001 2.60291 9.12001 2.71291 8.54001C2.87291 7.69001 3.12291 6.83001 3.50291 5.99001V6.00001ZM21.0429 8.55001C21.6029 10.48 24.2429 8.84001 22.7529 7.48001C21.9629 6.88001 21.1129 6.37001 20.2529 6.00001C20.6329 6.84001 20.8829 7.70001 21.0429 8.55001ZM21.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 10 11.8829 10C7.47291 10 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>'},"./packages/survey-core/src/images-v1/smiley-rate3-24x24.svg":function(a,s){a.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>'},"./packages/survey-core/src/images-v1/smiley-rate4-24x24.svg":function(a,s){a.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>'},"./packages/survey-core/src/images-v1/smiley-rate5-24x24.svg":function(a,s){a.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>'},"./packages/survey-core/src/images-v1/smiley-rate6-24x24.svg":function(a,s){a.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>'},"./packages/survey-core/src/images-v1/smiley-rate7-24x24.svg":function(a,s){a.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>'},"./packages/survey-core/src/images-v1/smiley-rate8-24x24.svg":function(a,s){a.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>'},"./packages/survey-core/src/images-v1/smiley-rate9-24x24.svg":function(a,s){a.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>'}})})},"./build/survey-core/icons/iconsV2.js":function(S,h,d){/*! - * surveyjs - Survey JavaScript library v1.12.20 + * surveyjs - Survey JavaScript library v1.12.23 * Copyright (c) 2015-2025 Devsoft Baltic OÜ - http://surveyjs.io/ * License: MIT (http://www.opensource.org/licenses/mit-license.php) - */(function(s,u){S.exports=u()})(this,function(){return function(a){var s={};function u(c){if(s[c])return s[c].exports;var y=s[c]={i:c,l:!1,exports:{}};return a[c].call(y.exports,y,y.exports,u),y.l=!0,y.exports}return u.m=a,u.c=s,u.d=function(c,y,E){u.o(c,y)||Object.defineProperty(c,y,{enumerable:!0,get:E})},u.r=function(c){typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(c,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(c,"__esModule",{value:!0})},u.t=function(c,y){if(y&1&&(c=u(c)),y&8||y&4&&typeof c=="object"&&c&&c.__esModule)return c;var E=Object.create(null);if(u.r(E),Object.defineProperty(E,"default",{enumerable:!0,value:c}),y&2&&typeof c!="string")for(var g in c)u.d(E,g,(function(w){return c[w]}).bind(null,g));return E},u.n=function(c){var y=c&&c.__esModule?function(){return c.default}:function(){return c};return u.d(y,"a",y),y},u.o=function(c,y){return Object.prototype.hasOwnProperty.call(c,y)},u.p="",u(u.s="./packages/survey-core/src/iconsV2.ts")}({"./packages/survey-core/src/iconsV2.ts":function(a,s,u){u.r(s),u.d(s,"icons",function(){return y});var c=u("./packages/survey-core/src/images-v2 sync recursive \\.svg$"),y={};c.keys().forEach(function(E){y[E.substring(2,E.length-4).toLowerCase()]=c(E)})},"./packages/survey-core/src/images-v2 sync recursive \\.svg$":function(a,s,u){var c={"./ModernBooleanCheckChecked.svg":"./packages/survey-core/src/images-v2/ModernBooleanCheckChecked.svg","./ModernBooleanCheckInd.svg":"./packages/survey-core/src/images-v2/ModernBooleanCheckInd.svg","./ModernBooleanCheckUnchecked.svg":"./packages/survey-core/src/images-v2/ModernBooleanCheckUnchecked.svg","./ModernCheck.svg":"./packages/survey-core/src/images-v2/ModernCheck.svg","./ModernRadio.svg":"./packages/survey-core/src/images-v2/ModernRadio.svg","./ProgressButton.svg":"./packages/survey-core/src/images-v2/ProgressButton.svg","./RemoveFile.svg":"./packages/survey-core/src/images-v2/RemoveFile.svg","./TimerCircle.svg":"./packages/survey-core/src/images-v2/TimerCircle.svg","./add-24x24.svg":"./packages/survey-core/src/images-v2/add-24x24.svg","./arrowleft-16x16.svg":"./packages/survey-core/src/images-v2/arrowleft-16x16.svg","./arrowright-16x16.svg":"./packages/survey-core/src/images-v2/arrowright-16x16.svg","./camera-24x24.svg":"./packages/survey-core/src/images-v2/camera-24x24.svg","./camera-32x32.svg":"./packages/survey-core/src/images-v2/camera-32x32.svg","./cancel-24x24.svg":"./packages/survey-core/src/images-v2/cancel-24x24.svg","./check-16x16.svg":"./packages/survey-core/src/images-v2/check-16x16.svg","./check-24x24.svg":"./packages/survey-core/src/images-v2/check-24x24.svg","./chevrondown-24x24.svg":"./packages/survey-core/src/images-v2/chevrondown-24x24.svg","./chevronright-16x16.svg":"./packages/survey-core/src/images-v2/chevronright-16x16.svg","./clear-16x16.svg":"./packages/survey-core/src/images-v2/clear-16x16.svg","./clear-24x24.svg":"./packages/survey-core/src/images-v2/clear-24x24.svg","./close-16x16.svg":"./packages/survey-core/src/images-v2/close-16x16.svg","./close-24x24.svg":"./packages/survey-core/src/images-v2/close-24x24.svg","./collapse-16x16.svg":"./packages/survey-core/src/images-v2/collapse-16x16.svg","./collapsedetails-16x16.svg":"./packages/survey-core/src/images-v2/collapsedetails-16x16.svg","./delete-24x24.svg":"./packages/survey-core/src/images-v2/delete-24x24.svg","./drag-24x24.svg":"./packages/survey-core/src/images-v2/drag-24x24.svg","./draghorizontal-24x16.svg":"./packages/survey-core/src/images-v2/draghorizontal-24x16.svg","./expand-16x16.svg":"./packages/survey-core/src/images-v2/expand-16x16.svg","./expanddetails-16x16.svg":"./packages/survey-core/src/images-v2/expanddetails-16x16.svg","./file-72x72.svg":"./packages/survey-core/src/images-v2/file-72x72.svg","./flip-24x24.svg":"./packages/survey-core/src/images-v2/flip-24x24.svg","./folder-24x24.svg":"./packages/survey-core/src/images-v2/folder-24x24.svg","./fullsize-16x16.svg":"./packages/survey-core/src/images-v2/fullsize-16x16.svg","./image-48x48.svg":"./packages/survey-core/src/images-v2/image-48x48.svg","./loading-48x48.svg":"./packages/survey-core/src/images-v2/loading-48x48.svg","./maximize-16x16.svg":"./packages/survey-core/src/images-v2/maximize-16x16.svg","./minimize-16x16.svg":"./packages/survey-core/src/images-v2/minimize-16x16.svg","./more-24x24.svg":"./packages/survey-core/src/images-v2/more-24x24.svg","./navmenu-24x24.svg":"./packages/survey-core/src/images-v2/navmenu-24x24.svg","./noimage-48x48.svg":"./packages/survey-core/src/images-v2/noimage-48x48.svg","./ranking-arrows.svg":"./packages/survey-core/src/images-v2/ranking-arrows.svg","./rankingundefined-16x16.svg":"./packages/survey-core/src/images-v2/rankingundefined-16x16.svg","./rating-star-2.svg":"./packages/survey-core/src/images-v2/rating-star-2.svg","./rating-star-small-2.svg":"./packages/survey-core/src/images-v2/rating-star-small-2.svg","./rating-star-small.svg":"./packages/survey-core/src/images-v2/rating-star-small.svg","./rating-star.svg":"./packages/survey-core/src/images-v2/rating-star.svg","./reorder-24x24.svg":"./packages/survey-core/src/images-v2/reorder-24x24.svg","./restoredown-16x16.svg":"./packages/survey-core/src/images-v2/restoredown-16x16.svg","./search-24x24.svg":"./packages/survey-core/src/images-v2/search-24x24.svg","./smiley-rate1-24x24.svg":"./packages/survey-core/src/images-v2/smiley-rate1-24x24.svg","./smiley-rate10-24x24.svg":"./packages/survey-core/src/images-v2/smiley-rate10-24x24.svg","./smiley-rate2-24x24.svg":"./packages/survey-core/src/images-v2/smiley-rate2-24x24.svg","./smiley-rate3-24x24.svg":"./packages/survey-core/src/images-v2/smiley-rate3-24x24.svg","./smiley-rate4-24x24.svg":"./packages/survey-core/src/images-v2/smiley-rate4-24x24.svg","./smiley-rate5-24x24.svg":"./packages/survey-core/src/images-v2/smiley-rate5-24x24.svg","./smiley-rate6-24x24.svg":"./packages/survey-core/src/images-v2/smiley-rate6-24x24.svg","./smiley-rate7-24x24.svg":"./packages/survey-core/src/images-v2/smiley-rate7-24x24.svg","./smiley-rate8-24x24.svg":"./packages/survey-core/src/images-v2/smiley-rate8-24x24.svg","./smiley-rate9-24x24.svg":"./packages/survey-core/src/images-v2/smiley-rate9-24x24.svg"};function y(g){var w=E(g);return u(w)}function E(g){if(!u.o(c,g)){var w=new Error("Cannot find module '"+g+"'");throw w.code="MODULE_NOT_FOUND",w}return c[g]}y.keys=function(){return Object.keys(c)},y.resolve=E,a.exports=y,y.id="./packages/survey-core/src/images-v2 sync recursive \\.svg$"},"./packages/survey-core/src/images-v2/ModernBooleanCheckChecked.svg":function(a,s){a.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>'},"./packages/survey-core/src/images-v2/ModernBooleanCheckInd.svg":function(a,s){a.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>'},"./packages/survey-core/src/images-v2/ModernBooleanCheckUnchecked.svg":function(a,s){a.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>'},"./packages/survey-core/src/images-v2/ModernCheck.svg":function(a,s){a.exports='<svg viewBox="0 0 24 24"><path d="M5,13l2-2l3,3l7-7l2,2l-9,9L5,13z"></path></svg>'},"./packages/survey-core/src/images-v2/ModernRadio.svg":function(a,s){a.exports='<svg viewBox="-12 -12 24 24"><circle r="6" cx="0" cy="0"></circle></svg>'},"./packages/survey-core/src/images-v2/ProgressButton.svg":function(a,s){a.exports='<svg viewBox="0 0 10 10"><polygon points="2,2 0,4 5,9 10,4 8,2 5,5 "></polygon></svg>'},"./packages/survey-core/src/images-v2/RemoveFile.svg":function(a,s){a.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>'},"./packages/survey-core/src/images-v2/TimerCircle.svg":function(a,s){a.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>'},"./packages/survey-core/src/images-v2/add-24x24.svg":function(a,s){a.exports='<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path d="M15.75 12C15.75 12.41 15.41 12.75 15 12.75H12.75V15C12.75 15.41 12.41 15.75 12 15.75C11.59 15.75 11.25 15.41 11.25 15V12.75H9C8.59 12.75 8.25 12.41 8.25 12C8.25 11.59 8.59 11.25 9 11.25H11.25V9C11.25 8.59 11.59 8.25 12 8.25C12.41 8.25 12.75 8.59 12.75 9V11.25H15C15.41 11.25 15.75 11.59 15.75 12ZM21.75 12C21.75 17.38 17.38 21.75 12 21.75C6.62 21.75 2.25 17.38 2.25 12C2.25 6.62 6.62 2.25 12 2.25C17.38 2.25 21.75 6.62 21.75 12ZM20.25 12C20.25 7.45 16.55 3.75 12 3.75C7.45 3.75 3.75 7.45 3.75 12C3.75 16.55 7.45 20.25 12 20.25C16.55 20.25 20.25 16.55 20.25 12Z"></path></svg>'},"./packages/survey-core/src/images-v2/arrowleft-16x16.svg":function(a,s){a.exports='<svg viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg"><path d="M14.7475 7.9975C14.7475 8.4075 14.4075 8.7475 13.9975 8.7475H3.8075L7.5275 12.4675C7.8175 12.7575 7.8175 13.2375 7.5275 13.5275C7.3775 13.6775 7.1875 13.7475 6.9975 13.7475C6.8075 13.7475 6.6175 13.6775 6.4675 13.5275L1.4675 8.5275C1.1775 8.2375 1.1775 7.7575 1.4675 7.4675L6.4675 2.4675C6.7575 2.1775 7.2375 2.1775 7.5275 2.4675C7.8175 2.7575 7.8175 3.2375 7.5275 3.5275L3.8075 7.2475H13.9975C14.4075 7.2475 14.7475 7.5875 14.7475 7.9975Z"></path></svg>'},"./packages/survey-core/src/images-v2/arrowright-16x16.svg":function(a,s){a.exports='<svg viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg"><path d="M14.53 8.5275L9.53 13.5275C9.38 13.6775 9.19 13.7475 9 13.7475C8.81 13.7475 8.62 13.6775 8.47 13.5275C8.18 13.2375 8.18 12.7575 8.47 12.4675L12.19 8.7475H2C1.59 8.7475 1.25 8.4075 1.25 7.9975C1.25 7.5875 1.59 7.2475 2 7.2475H12.19L8.47 3.5275C8.18 3.2375 8.18 2.7575 8.47 2.4675C8.76 2.1775 9.24 2.1775 9.53 2.4675L14.53 7.4675C14.82 7.7575 14.82 8.2375 14.53 8.5275Z"></path></svg>'},"./packages/survey-core/src/images-v2/camera-24x24.svg":function(a,s){a.exports='<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path d="M19.19 4.25H17.12C16.72 4.25 16.35 4.03 16.17 3.67C15.73 2.8 14.86 2.25 13.88 2.25H10.12C9.14 2.25 8.27 2.79 7.83 3.67C7.65 4.03 7.29 4.25 6.88 4.25H4.81C3.4 4.25 2.25 5.4 2.25 6.81V18.19C2.25 19.6 3.4 20.75 4.81 20.75H19.19C20.6 20.75 21.75 19.6 21.75 18.19V6.81C21.75 5.4 20.6 4.25 19.19 4.25ZM20.25 18.19C20.25 18.77 19.78 19.25 19.19 19.25H4.81C4.23 19.25 3.75 18.78 3.75 18.19V6.81C3.75 6.23 4.22 5.75 4.81 5.75H6.88C7.86 5.75 8.73 5.21 9.17 4.33C9.35 3.97 9.71 3.75 10.12 3.75H13.88C14.28 3.75 14.65 3.97 14.83 4.33C15.27 5.2 16.14 5.75 17.12 5.75H19.19C19.77 5.75 20.25 6.22 20.25 6.81V18.19ZM12 6.25C8.83 6.25 6.25 8.83 6.25 12C6.25 15.17 8.83 17.75 12 17.75C15.17 17.75 17.75 15.17 17.75 12C17.75 8.83 15.17 6.25 12 6.25ZM12 16.25C9.66 16.25 7.75 14.34 7.75 12C7.75 9.66 9.66 7.75 12 7.75C14.34 7.75 16.25 9.66 16.25 12C16.25 14.34 14.34 16.25 12 16.25ZM14.75 12C14.75 13.52 13.52 14.75 12 14.75C11.59 14.75 11.25 14.41 11.25 14C11.25 13.59 11.59 13.25 12 13.25C12.69 13.25 13.25 12.69 13.25 12C13.25 11.59 13.59 11.25 14 11.25C14.41 11.25 14.75 11.59 14.75 12Z"></path></svg>'},"./packages/survey-core/src/images-v2/camera-32x32.svg":function(a,s){a.exports='<svg viewBox="0 0 32 32" xmlns="http://www.w3.org/2000/svg"><path d="M25 7.25H22.19C21.73 7.25 21.31 7 21.09 6.59L20.89 6.22C20.23 5.01 18.97 4.25 17.59 4.25H14.41C13.03 4.25 11.77 5 11.11 6.22L10.91 6.6C10.69 7 10.27 7.26 9.81 7.26H7C4.93 7.26 3.25 8.94 3.25 11.01V24.01C3.25 26.08 4.93 27.76 7 27.76H25C27.07 27.76 28.75 26.08 28.75 24.01V11C28.75 8.93 27.07 7.25 25 7.25ZM27.25 24C27.25 25.24 26.24 26.25 25 26.25H7C5.76 26.25 4.75 25.24 4.75 24V11C4.75 9.76 5.76 8.75 7 8.75H9.81C10.82 8.75 11.75 8.2 12.23 7.31L12.43 6.94C12.82 6.21 13.58 5.76 14.41 5.76H17.59C18.42 5.76 19.18 6.21 19.57 6.94L19.77 7.31C20.25 8.2 21.18 8.76 22.19 8.76H25C26.24 8.76 27.25 9.77 27.25 11.01V24.01V24ZM16 10.25C12.28 10.25 9.25 13.28 9.25 17C9.25 20.72 12.28 23.75 16 23.75C19.72 23.75 22.75 20.72 22.75 17C22.75 13.28 19.72 10.25 16 10.25ZM16 22.25C13.11 22.25 10.75 19.89 10.75 17C10.75 14.11 13.11 11.75 16 11.75C18.89 11.75 21.25 14.11 21.25 17C21.25 19.89 18.89 22.25 16 22.25ZM19.75 17C19.75 19.07 18.07 20.75 16 20.75C15.59 20.75 15.25 20.41 15.25 20C15.25 19.59 15.59 19.25 16 19.25C17.24 19.25 18.25 18.24 18.25 17C18.25 16.59 18.59 16.25 19 16.25C19.41 16.25 19.75 16.59 19.75 17Z"></path></svg>'},"./packages/survey-core/src/images-v2/cancel-24x24.svg":function(a,s){a.exports='<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path d="M12.8099 11.75L15.2799 9.28C15.5699 8.99 15.5699 8.51 15.2799 8.22C14.9899 7.93 14.5099 7.93 14.2199 8.22L11.7499 10.69L9.27994 8.22C8.98994 7.93 8.50994 7.93 8.21994 8.22C7.92994 8.51 7.92994 8.99 8.21994 9.28L10.6899 11.75L8.21994 14.22C7.92994 14.51 7.92994 14.99 8.21994 15.28C8.36994 15.43 8.55994 15.5 8.74994 15.5C8.93994 15.5 9.12994 15.43 9.27994 15.28L11.7499 12.81L14.2199 15.28C14.3699 15.43 14.5599 15.5 14.7499 15.5C14.9399 15.5 15.1299 15.43 15.2799 15.28C15.5699 14.99 15.5699 14.51 15.2799 14.22L12.8099 11.75Z"></path></svg>'},"./packages/survey-core/src/images-v2/check-16x16.svg":function(a,s){a.exports='<svg viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg"><path d="M14.0275 5.0275L6.5275 12.5275C6.3775 12.6775 6.1875 12.7475 5.9975 12.7475C5.8075 12.7475 5.6175 12.6775 5.4675 12.5275L2.4675 9.5275C2.1775 9.2375 2.1775 8.7575 2.4675 8.4675C2.7575 8.1775 3.2375 8.1775 3.5275 8.4675L5.9975 10.9375L12.9675 3.9675C13.2575 3.6775 13.7375 3.6775 14.0275 3.9675C14.3175 4.2575 14.3175 4.7375 14.0275 5.0275Z"></path></svg>'},"./packages/survey-core/src/images-v2/check-24x24.svg":function(a,s){a.exports='<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path d="M19.5275 7.5275L9.5275 17.5275C9.3775 17.6775 9.1875 17.7475 8.9975 17.7475C8.8075 17.7475 8.6175 17.6775 8.4675 17.5275L4.4675 13.5275C4.1775 13.2375 4.1775 12.7575 4.4675 12.4675C4.7575 12.1775 5.2375 12.1775 5.5275 12.4675L8.9975 15.9375L18.4675 6.4675C18.7575 6.1775 19.2375 6.1775 19.5275 6.4675C19.8175 6.7575 19.8175 7.2375 19.5275 7.5275Z"></path></svg>'},"./packages/survey-core/src/images-v2/chevrondown-24x24.svg":function(a,s){a.exports='<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path d="M16.5275 10.5275L12.5275 14.5275C12.3775 14.6775 12.1875 14.7475 11.9975 14.7475C11.8075 14.7475 11.6175 14.6775 11.4675 14.5275L7.4675 10.5275C7.1775 10.2375 7.1775 9.7575 7.4675 9.4675C7.7575 9.1775 8.2375 9.1775 8.5275 9.4675L11.9975 12.9375L15.4675 9.4675C15.7575 9.1775 16.2375 9.1775 16.5275 9.4675C16.8175 9.7575 16.8175 10.2375 16.5275 10.5275Z"></path></svg>'},"./packages/survey-core/src/images-v2/chevronright-16x16.svg":function(a,s){a.exports='<svg viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg"><path d="M11.35 8.34627L7.35 12.3463C7.25 12.4463 7.12 12.4963 7 12.4963C6.88 12.4963 6.74 12.4463 6.65 12.3463C6.45 12.1463 6.45 11.8363 6.65 11.6363L10.3 7.98627L6.65 4.34627C6.45 4.15627 6.45 3.83627 6.65 3.64627C6.85 3.45627 7.16 3.44627 7.35 3.64627L11.35 7.64627C11.55 7.84627 11.55 8.15627 11.35 8.35627V8.34627Z"></path></svg>'},"./packages/survey-core/src/images-v2/clear-16x16.svg":function(a,s){a.exports='<svg viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg"><path d="M12.35 11.65C12.55 11.85 12.55 12.16 12.35 12.36C12.25 12.46 12.12 12.51 12 12.51C11.88 12.51 11.74 12.46 11.65 12.36L8 8.71L4.35 12.36C4.25 12.46 4.12 12.51 4 12.51C3.88 12.51 3.74 12.46 3.65 12.36C3.45 12.16 3.45 11.85 3.65 11.65L7.3 8L3.65 4.35C3.45 4.16 3.45 3.84 3.65 3.65C3.85 3.46 4.16 3.45 4.35 3.65L8 7.3L11.65 3.65C11.85 3.45 12.16 3.45 12.36 3.65C12.56 3.85 12.56 4.16 12.36 4.36L8.71 8.01L12.36 11.66L12.35 11.65Z"></path></svg>'},"./packages/survey-core/src/images-v2/clear-24x24.svg":function(a,s){a.exports='<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path d="M20.12 10.9325C20.64 10.4125 20.93 9.7225 20.93 8.9925C20.93 8.2625 20.64 7.5725 20.12 7.0525L16.95 3.8825C15.88 2.8125 14.13 2.8125 13.06 3.8825L3.88 13.0525C3.36 13.5725 3.07 14.2625 3.07 14.9925C3.07 15.7225 3.36 16.4125 3.88 16.9325L5.64 18.6925C6.57 19.6225 7.78 20.0825 9 20.0825C10.22 20.0825 11.43 19.6225 12.36 18.6925L20.12 10.9325ZM14.12 4.9325C14.36 4.6925 14.67 4.5625 15 4.5625C15.33 4.5625 15.65 4.6925 15.88 4.9325L19.05 8.1025C19.54 8.5925 19.54 9.3825 19.05 9.8725L12.99 15.9325L8.05 10.9925L14.12 4.9325ZM6.7 17.6325L4.94 15.8725C4.45 15.3825 4.45 14.5925 4.94 14.1025L7 12.0425L11.94 16.9825L11.3 17.6225C10.07 18.8525 7.93 18.8525 6.7 17.6225V17.6325ZM22.75 20.9925C22.75 21.4025 22.41 21.7425 22 21.7425H14C13.59 21.7425 13.25 21.4025 13.25 20.9925C13.25 20.5825 13.59 20.2425 14 20.2425H22C22.41 20.2425 22.75 20.5825 22.75 20.9925ZM4.75 20.9925C4.75 21.4025 4.41 21.7425 4 21.7425H2C1.59 21.7425 1.25 21.4025 1.25 20.9925C1.25 20.5825 1.59 20.2425 2 20.2425H4C4.41 20.2425 4.75 20.5825 4.75 20.9925Z"></path></svg>'},"./packages/survey-core/src/images-v2/close-16x16.svg":function(a,s){a.exports='<svg viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg"><path d="M13.5275 12.4675C13.8175 12.7575 13.8175 13.2375 13.5275 13.5275C13.3775 13.6775 13.1875 13.7475 12.9975 13.7475C12.8075 13.7475 12.6175 13.6775 12.4675 13.5275L7.9975 9.0575L3.5275 13.5275C3.3775 13.6775 3.1875 13.7475 2.9975 13.7475C2.8075 13.7475 2.6175 13.6775 2.4675 13.5275C2.1775 13.2375 2.1775 12.7575 2.4675 12.4675L6.9375 7.9975L2.4675 3.5275C2.1775 3.2375 2.1775 2.7575 2.4675 2.4675C2.7575 2.1775 3.2375 2.1775 3.5275 2.4675L7.9975 6.9375L12.4675 2.4675C12.7575 2.1775 13.2375 2.1775 13.5275 2.4675C13.8175 2.7575 13.8175 3.2375 13.5275 3.5275L9.0575 7.9975L13.5275 12.4675Z"></path></svg>'},"./packages/survey-core/src/images-v2/close-24x24.svg":function(a,s){a.exports='<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path d="M19.5275 18.4675C19.8175 18.7575 19.8175 19.2375 19.5275 19.5275C19.3775 19.6775 19.1875 19.7475 18.9975 19.7475C18.8075 19.7475 18.6175 19.6775 18.4675 19.5275L11.9975 13.0575L5.5275 19.5275C5.3775 19.6775 5.1875 19.7475 4.9975 19.7475C4.8075 19.7475 4.6175 19.6775 4.4675 19.5275C4.1775 19.2375 4.1775 18.7575 4.4675 18.4675L10.9375 11.9975L4.4675 5.5275C4.1775 5.2375 4.1775 4.7575 4.4675 4.4675C4.7575 4.1775 5.2375 4.1775 5.5275 4.4675L11.9975 10.9375L18.4675 4.4675C18.7575 4.1775 19.2375 4.1775 19.5275 4.4675C19.8175 4.7575 19.8175 5.2375 19.5275 5.5275L13.0575 11.9975L19.5275 18.4675Z"></path></svg>'},"./packages/survey-core/src/images-v2/collapse-16x16.svg":function(a,s){a.exports='<svg viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg"><path d="M11.75 8C11.75 8.41 11.41 8.75 11 8.75H5C4.59 8.75 4.25 8.41 4.25 8C4.25 7.59 4.59 7.25 5 7.25H11C11.41 7.25 11.75 7.59 11.75 8Z"></path></svg>'},"./packages/survey-core/src/images-v2/collapsedetails-16x16.svg":function(a,s){a.exports='<svg viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg"><path d="M11.75 8C11.75 8.41 11.41 8.75 11 8.75H5C4.59 8.75 4.25 8.41 4.25 8C4.25 7.59 4.59 7.25 5 7.25H11C11.41 7.25 11.75 7.59 11.75 8Z"></path></svg>'},"./packages/survey-core/src/images-v2/delete-24x24.svg":function(a,s){a.exports='<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path d="M12.75 9V17C12.75 17.41 12.41 17.75 12 17.75C11.59 17.75 11.25 17.41 11.25 17V9C11.25 8.59 11.59 8.25 12 8.25C12.41 8.25 12.75 8.59 12.75 9ZM14.25 9V17C14.25 17.41 14.59 17.75 15 17.75C15.41 17.75 15.75 17.41 15.75 17V9C15.75 8.59 15.41 8.25 15 8.25C14.59 8.25 14.25 8.59 14.25 9ZM9 8.25C8.59 8.25 8.25 8.59 8.25 9V17C8.25 17.41 8.59 17.75 9 17.75C9.41 17.75 9.75 17.41 9.75 17V9C9.75 8.59 9.41 8.25 9 8.25ZM20.75 6C20.75 6.41 20.41 6.75 20 6.75H18.75V18C18.75 19.52 17.52 20.75 16 20.75H8C6.48 20.75 5.25 19.52 5.25 18V6.75H4C3.59 6.75 3.25 6.41 3.25 6C3.25 5.59 3.59 5.25 4 5.25H8.25V4C8.25 3.04 9.04 2.25 10 2.25H14C14.96 2.25 15.75 3.04 15.75 4V5.25H20C20.41 5.25 20.75 5.59 20.75 6ZM9.75 5.25H14.25V4C14.25 3.86 14.14 3.75 14 3.75H10C9.86 3.75 9.75 3.86 9.75 4V5.25ZM17.25 6.75H6.75V18C6.75 18.69 7.31 19.25 8 19.25H16C16.69 19.25 17.25 18.69 17.25 18V6.75Z"></path></svg>'},"./packages/survey-core/src/images-v2/drag-24x24.svg":function(a,s){a.exports='<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path d="M14.5 8.75C15.19 8.75 15.75 8.19 15.75 7.5C15.75 6.81 15.19 6.25 14.5 6.25C13.81 6.25 13.25 6.81 13.25 7.5C13.25 8.19 13.81 8.75 14.5 8.75ZM14.5 7.25C14.64 7.25 14.75 7.36 14.75 7.5C14.75 7.78 14.25 7.78 14.25 7.5C14.25 7.36 14.36 7.25 14.5 7.25ZM9.5 6.25C8.81 6.25 8.25 6.81 8.25 7.5C8.25 8.19 8.81 8.75 9.5 8.75C10.19 8.75 10.75 8.19 10.75 7.5C10.75 6.81 10.19 6.25 9.5 6.25ZM9.25 7.5C9.25 7.36 9.36 7.25 9.5 7.25C9.64 7.25 9.75 7.36 9.75 7.5C9.75 7.78 9.25 7.78 9.25 7.5ZM14.5 11.25C13.81 11.25 13.25 11.81 13.25 12.5C13.25 13.19 13.81 13.75 14.5 13.75C15.19 13.75 15.75 13.19 15.75 12.5C15.75 11.81 15.19 11.25 14.5 11.25ZM14.25 12.5C14.25 12.36 14.36 12.25 14.5 12.25C14.64 12.25 14.75 12.36 14.75 12.5C14.75 12.78 14.25 12.78 14.25 12.5ZM9.5 11.25C8.81 11.25 8.25 11.81 8.25 12.5C8.25 13.19 8.81 13.75 9.5 13.75C10.19 13.75 10.75 13.19 10.75 12.5C10.75 11.81 10.19 11.25 9.5 11.25ZM9.25 12.5C9.25 12.36 9.36 12.25 9.5 12.25C9.64 12.25 9.75 12.36 9.75 12.5C9.75 12.78 9.25 12.78 9.25 12.5ZM14.5 16.25C13.81 16.25 13.25 16.81 13.25 17.5C13.25 18.19 13.81 18.75 14.5 18.75C15.19 18.75 15.75 18.19 15.75 17.5C15.75 16.81 15.19 16.25 14.5 16.25ZM14.25 17.5C14.25 17.36 14.36 17.25 14.5 17.25C14.64 17.25 14.75 17.36 14.75 17.5C14.75 17.78 14.25 17.78 14.25 17.5ZM9.5 16.25C8.81 16.25 8.25 16.81 8.25 17.5C8.25 18.19 8.81 18.75 9.5 18.75C10.19 18.75 10.75 18.19 10.75 17.5C10.75 16.81 10.19 16.25 9.5 16.25ZM9.25 17.5C9.25 17.36 9.36 17.25 9.5 17.25C9.64 17.25 9.75 17.36 9.75 17.5C9.75 17.78 9.25 17.78 9.25 17.5Z"></path></svg>'},"./packages/survey-core/src/images-v2/draghorizontal-24x16.svg":function(a,s){a.exports='<svg viewBox="0 0 24 16" xmlns="http://www.w3.org/2000/svg"><path d="M17.5 9.25C16.81 9.25 16.25 9.81 16.25 10.5C16.25 11.19 16.81 11.75 17.5 11.75C18.19 11.75 18.75 11.19 18.75 10.5C18.75 9.81 18.19 9.25 17.5 9.25ZM17.25 10.5C17.25 10.36 17.36 10.25 17.5 10.25C17.64 10.25 17.75 10.36 17.75 10.5C17.75 10.78 17.25 10.78 17.25 10.5ZM17.5 6.75C18.19 6.75 18.75 6.19 18.75 5.5C18.75 4.81 18.19 4.25 17.5 4.25C16.81 4.25 16.25 4.81 16.25 5.5C16.25 6.19 16.81 6.75 17.5 6.75ZM17.5 5.25C17.64 5.25 17.75 5.36 17.75 5.5C17.75 5.78 17.25 5.78 17.25 5.5C17.25 5.36 17.36 5.25 17.5 5.25ZM12.5 9.25C11.81 9.25 11.25 9.81 11.25 10.5C11.25 11.19 11.81 11.75 12.5 11.75C13.19 11.75 13.75 11.19 13.75 10.5C13.75 9.81 13.19 9.25 12.5 9.25ZM12.25 10.5C12.25 10.36 12.36 10.25 12.5 10.25C12.64 10.25 12.75 10.36 12.75 10.5C12.75 10.78 12.25 10.78 12.25 10.5ZM12.5 4.25C11.81 4.25 11.25 4.81 11.25 5.5C11.25 6.19 11.81 6.75 12.5 6.75C13.19 6.75 13.75 6.19 13.75 5.5C13.75 4.81 13.19 4.25 12.5 4.25ZM12.25 5.5C12.25 5.36 12.36 5.25 12.5 5.25C12.64 5.25 12.75 5.36 12.75 5.5C12.75 5.78 12.25 5.78 12.25 5.5ZM7.5 9.25C6.81 9.25 6.25 9.81 6.25 10.5C6.25 11.19 6.81 11.75 7.5 11.75C8.19 11.75 8.75 11.19 8.75 10.5C8.75 9.81 8.19 9.25 7.5 9.25ZM7.25 10.5C7.25 10.36 7.36 10.25 7.5 10.25C7.64 10.25 7.75 10.36 7.75 10.5C7.75 10.78 7.25 10.78 7.25 10.5ZM7.5 4.25C6.81 4.25 6.25 4.81 6.25 5.5C6.25 6.19 6.81 6.75 7.5 6.75C8.19 6.75 8.75 6.19 8.75 5.5C8.75 4.81 8.19 4.25 7.5 4.25ZM7.25 5.5C7.25 5.36 7.36 5.25 7.5 5.25C7.64 5.25 7.75 5.36 7.75 5.5C7.75 5.78 7.25 5.78 7.25 5.5Z"></path></svg>'},"./packages/survey-core/src/images-v2/expand-16x16.svg":function(a,s){a.exports='<svg viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg"><path d="M11.75 8C11.75 8.41 11.41 8.75 11 8.75H8.75V11C8.75 11.41 8.41 11.75 8 11.75C7.59 11.75 7.25 11.41 7.25 11V8.75H5C4.59 8.75 4.25 8.41 4.25 8C4.25 7.59 4.59 7.25 5 7.25H7.25V5C7.25 4.59 7.59 4.25 8 4.25C8.41 4.25 8.75 4.59 8.75 5V7.25H11C11.41 7.25 11.75 7.59 11.75 8Z"></path></svg>'},"./packages/survey-core/src/images-v2/expanddetails-16x16.svg":function(a,s){a.exports='<svg viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg"><path d="M11.75 8C11.75 8.41 11.41 8.75 11 8.75H8.75V11C8.75 11.41 8.41 11.75 8 11.75C7.59 11.75 7.25 11.41 7.25 11V8.75H5C4.59 8.75 4.25 8.41 4.25 8C4.25 7.59 4.59 7.25 5 7.25H7.25V5C7.25 4.59 7.59 4.25 8 4.25C8.41 4.25 8.75 4.59 8.75 5V7.25H11C11.41 7.25 11.75 7.59 11.75 8Z"></path></svg>'},"./packages/survey-core/src/images-v2/file-72x72.svg":function(a,s){a.exports='<svg viewBox="0 0 72 72" xmlns="http://www.w3.org/2000/svg"><path d="M62.83 12.83L53.17 3.17C52.7982 2.79866 52.357 2.50421 51.8714 2.30346C51.3858 2.1027 50.8654 1.99959 50.34 2H14C12.4087 2 10.8826 2.63214 9.75735 3.75736C8.63214 4.88258 8 6.4087 8 8V64C8 65.5913 8.63214 67.1174 9.75735 68.2426C10.8826 69.3679 12.4087 70 14 70H58C59.5913 70 61.1174 69.3679 62.2426 68.2426C63.3679 67.1174 64 65.5913 64 64V15.66C64.0004 15.1346 63.8973 14.6142 63.6965 14.1286C63.4958 13.643 63.2013 13.2018 62.83 12.83ZM52 4.83L61.17 14H56C54.9391 14 53.9217 13.5786 53.1716 12.8284C52.4214 12.0783 52 11.0609 52 10V4.83ZM62 64C62 65.0609 61.5786 66.0783 60.8284 66.8284C60.0783 67.5786 59.0609 68 58 68H14C12.9391 68 11.9217 67.5786 11.1716 66.8284C10.4214 66.0783 10 65.0609 10 64V8C10 6.93914 10.4214 5.92172 11.1716 5.17157C11.9217 4.42143 12.9391 4 14 4H50V10C50 11.5913 50.6321 13.1174 51.7574 14.2426C52.8826 15.3679 54.4087 16 56 16H62V64ZM22 26H50V28H22V26ZM22 32H50V34H22V32ZM22 38H50V40H22V38ZM22 44H50V46H22V44Z"></path></svg>'},"./packages/survey-core/src/images-v2/flip-24x24.svg":function(a,s){a.exports='<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path d="M14.53 17.4775C14.82 17.7675 14.82 18.2475 14.53 18.5375L11.53 21.5375C11.38 21.6875 11.19 21.7575 11 21.7575C10.81 21.7575 10.62 21.6875 10.47 21.5375C10.18 21.2475 10.18 20.7675 10.47 20.4775L12.2 18.7475C12.13 18.7475 12.07 18.7475 12 18.7475C6.62 18.7475 2.25 15.7475 2.25 12.0575C2.25 10.2975 3.22 8.6375 4.99 7.3875C5.33 7.1475 5.8 7.2275 6.03 7.5675C6.27 7.9075 6.19 8.3775 5.85 8.6075C4.49 9.5675 3.74 10.7875 3.74 12.0575C3.74 14.9175 7.44 17.2475 11.99 17.2475C12.05 17.2475 12.11 17.2475 12.17 17.2475L10.46 15.5375C10.17 15.2475 10.17 14.7675 10.46 14.4775C10.75 14.1875 11.23 14.1875 11.52 14.4775L14.52 17.4775H14.53ZM12 5.2575C11.93 5.2575 11.87 5.2575 11.8 5.2575L13.53 3.5275C13.82 3.2375 13.82 2.7575 13.53 2.4675C13.24 2.1775 12.76 2.1775 12.47 2.4675L9.47 5.4675C9.18 5.7575 9.18 6.2375 9.47 6.5275L12.47 9.5275C12.62 9.6775 12.81 9.7475 13 9.7475C13.19 9.7475 13.38 9.6775 13.53 9.5275C13.82 9.2375 13.82 8.7575 13.53 8.4675L11.82 6.7575C11.88 6.7575 11.94 6.7575 12 6.7575C16.55 6.7575 20.25 9.0875 20.25 11.9475C20.25 13.2075 19.5 14.4375 18.14 15.3975C17.8 15.6375 17.72 16.1075 17.96 16.4475C18.11 16.6575 18.34 16.7675 18.57 16.7675C18.72 16.7675 18.87 16.7275 19 16.6275C20.77 15.3775 21.75 13.7175 21.75 11.9575C21.75 8.2675 17.38 5.2675 12 5.2675V5.2575Z"></path></svg>'},"./packages/survey-core/src/images-v2/folder-24x24.svg":function(a,s){a.exports='<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path d="M21.72 9.24C21.45 8.92 21.12 8.67 20.75 8.5V8C20.75 6.48 19.52 5.25 18 5.25H10.65C10.32 4.1 9.26 3.25 8 3.25H6C4.48 3.25 3.25 4.48 3.25 6V18C3.25 19.52 4.48 20.75 6 20.75H18.33C19.66 20.75 20.8 19.8 21.04 18.49L22.31 11.49C22.46 10.69 22.24 9.86 21.72 9.24ZM4.75 18V6C4.75 5.31 5.31 4.75 6 4.75H8C8.69 4.75 9.25 5.31 9.25 6C9.25 6.41 9.59 6.75 10 6.75H18C18.69 6.75 19.25 7.31 19.25 8V8.25H9.27C7.94 8.25 6.8 9.2 6.56 10.51L5.29 17.51C5.19 18.07 5.27 18.64 5.51 19.15C5.06 18.96 4.75 18.52 4.75 18ZM20.83 11.22L19.56 18.22C19.45 18.81 18.94 19.25 18.33 19.25H8C7.63 19.25 7.28 19.09 7.04 18.8C6.8 18.51 6.7 18.14 6.77 17.78L8.04 10.78C8.15 10.19 8.66 9.75 9.27 9.75H19.6C19.97 9.75 20.32 9.91 20.56 10.2C20.8 10.49 20.9 10.86 20.83 11.22Z"></path></svg>'},"./packages/survey-core/src/images-v2/fullsize-16x16.svg":function(a,s){a.exports='<svg viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg"><path d="M12 3.25H4C3.04 3.25 2.25 4.04 2.25 5V11C2.25 11.96 3.04 12.75 4 12.75H12C12.96 12.75 13.75 11.96 13.75 11V5C13.75 4.04 12.96 3.25 12 3.25ZM12.25 11C12.25 11.14 12.14 11.25 12 11.25H4C3.86 11.25 3.75 11.14 3.75 11V5C3.75 4.86 3.86 4.75 4 4.75H12C12.14 4.75 12.25 4.86 12.25 5V11Z"></path></svg>'},"./packages/survey-core/src/images-v2/image-48x48.svg":function(a,s){a.exports='<svg viewBox="0 0 48 48" xmlns="http://www.w3.org/2000/svg"><path d="M33 10.25H15C12.38 10.25 10.25 12.38 10.25 15V33C10.25 35.62 12.38 37.75 15 37.75H33C35.62 37.75 37.75 35.62 37.75 33V15C37.75 12.38 35.62 10.25 33 10.25ZM36.25 33C36.25 34.79 34.79 36.25 33 36.25H15C13.21 36.25 11.75 34.79 11.75 33V15C11.75 13.21 13.21 11.75 15 11.75H33C34.79 11.75 36.25 13.21 36.25 15V33ZM30.5 14.25C28.71 14.25 27.25 15.71 27.25 17.5C27.25 19.29 28.71 20.75 30.5 20.75C32.29 20.75 33.75 19.29 33.75 17.5C33.75 15.71 32.29 14.25 30.5 14.25ZM30.5 19.25C29.54 19.25 28.75 18.46 28.75 17.5C28.75 16.54 29.54 15.75 30.5 15.75C31.46 15.75 32.25 16.54 32.25 17.5C32.25 18.46 31.46 19.25 30.5 19.25ZM29.26 26.28C28.94 25.92 28.49 25.71 28.01 25.7C27.54 25.68 27.07 25.87 26.73 26.2L24.95 27.94L22.28 25.23C21.94 24.89 21.5 24.71 21 24.71C20.52 24.71 20.06 24.93 19.74 25.28L14.74 30.78C14.25 31.3 14.12 32.06 14.41 32.72C14.69 33.36 15.28 33.75 15.95 33.75H32.07C32.74 33.75 33.33 33.35 33.61 32.72C33.89 32.06 33.77 31.31 33.29 30.79L29.27 26.29L29.26 26.28ZM32.22 32.12C32.18 32.2 32.13 32.25 32.06 32.25H15.94C15.87 32.25 15.81 32.21 15.78 32.12C15.77 32.09 15.71 31.93 15.83 31.8L20.84 26.29C20.9 26.22 20.99 26.21 21.02 26.21C21.06 26.21 21.14 26.22 21.2 26.29L24.4 29.54C24.69 29.83 25.16 29.84 25.46 29.54L27.77 27.27C27.83 27.21 27.9 27.2 27.94 27.2C28.01 27.2 28.06 27.21 28.13 27.28L32.16 31.79C32.16 31.79 32.16 31.79 32.17 31.8C32.29 31.93 32.23 32.09 32.22 32.12Z"></path></svg>'},"./packages/survey-core/src/images-v2/loading-48x48.svg":function(a,s){a.exports='<svg viewBox="0 0 48 48" fill="none" xmlns="http://www.w3.org/2000/svg"><g clip-path="url(#clip0_19679_369428)"><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_19679_369428"><rect width="32" height="32" fill="white" transform="translate(8 8)"></rect></clipPath></defs></svg>'},"./packages/survey-core/src/images-v2/maximize-16x16.svg":function(a,s){a.exports='<svg viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg"><path d="M13.75 3V7C13.75 7.41 13.41 7.75 13 7.75C12.59 7.75 12.25 7.41 12.25 7V4.81L9.53 7.53C9.38 7.68 9.19 7.75 9 7.75C8.81 7.75 8.62 7.68 8.47 7.53C8.18 7.24 8.18 6.76 8.47 6.47L11.19 3.75H9C8.59 3.75 8.25 3.41 8.25 3C8.25 2.59 8.59 2.25 9 2.25H13C13.1 2.25 13.19 2.27 13.29 2.31C13.47 2.39 13.62 2.53 13.7 2.72C13.74 2.81 13.76 2.91 13.76 3.01L13.75 3ZM7.53 8.47C7.24 8.18 6.76 8.18 6.47 8.47L3.75 11.19V9C3.75 8.59 3.41 8.25 3 8.25C2.59 8.25 2.25 8.59 2.25 9V13C2.25 13.1 2.27 13.19 2.31 13.29C2.39 13.47 2.53 13.62 2.72 13.7C2.81 13.74 2.91 13.76 3.01 13.76H7.01C7.42 13.76 7.76 13.42 7.76 13.01C7.76 12.6 7.42 12.26 7.01 12.26H4.82L7.54 9.54C7.83 9.25 7.83 8.77 7.54 8.48L7.53 8.47Z"></path></svg>'},"./packages/survey-core/src/images-v2/minimize-16x16.svg":function(a,s){a.exports='<svg viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg"><path d="M13.75 8C13.75 8.41 13.41 8.75 13 8.75H3C2.59 8.75 2.25 8.41 2.25 8C2.25 7.59 2.59 7.25 3 7.25H13C13.41 7.25 13.75 7.59 13.75 8Z"></path></svg>'},"./packages/survey-core/src/images-v2/more-24x24.svg":function(a,s){a.exports='<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path d="M12 10.25C11.04 10.25 10.25 11.04 10.25 12C10.25 12.96 11.04 13.75 12 13.75C12.96 13.75 13.75 12.96 13.75 12C13.75 11.04 12.96 10.25 12 10.25ZM11.75 12C11.75 11.86 11.86 11.75 12 11.75C12.14 11.75 12.25 11.86 12.25 12C12.25 12.28 11.75 12.28 11.75 12ZM19 10.25C18.04 10.25 17.25 11.04 17.25 12C17.25 12.96 18.04 13.75 19 13.75C19.96 13.75 20.75 12.96 20.75 12C20.75 11.04 19.96 10.25 19 10.25ZM18.75 12C18.75 11.86 18.86 11.75 19 11.75C19.14 11.75 19.25 11.86 19.25 12C19.25 12.28 18.75 12.28 18.75 12ZM5 10.25C4.04 10.25 3.25 11.04 3.25 12C3.25 12.96 4.04 13.75 5 13.75C5.96 13.75 6.75 12.96 6.75 12C6.75 11.04 5.96 10.25 5 10.25ZM4.75 12C4.75 11.86 4.86 11.75 5 11.75C5.14 11.75 5.25 11.86 5.25 12C5.25 12.28 4.75 12.28 4.75 12Z"></path></svg>'},"./packages/survey-core/src/images-v2/navmenu-24x24.svg":function(a,s){a.exports='<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path d="M3.25 7C3.25 6.59 3.59 6.25 4 6.25H15C15.41 6.25 15.75 6.59 15.75 7C15.75 7.41 15.41 7.75 15 7.75H4C3.59 7.75 3.25 7.41 3.25 7ZM20 11.25H4C3.59 11.25 3.25 11.59 3.25 12C3.25 12.41 3.59 12.75 4 12.75H20C20.41 12.75 20.75 12.41 20.75 12C20.75 11.59 20.41 11.25 20 11.25ZM9 16.25H4C3.59 16.25 3.25 16.59 3.25 17C3.25 17.41 3.59 17.75 4 17.75H9C9.41 17.75 9.75 17.41 9.75 17C9.75 16.59 9.41 16.25 9 16.25Z"></path></svg>'},"./packages/survey-core/src/images-v2/noimage-48x48.svg":function(a,s){a.exports='<svg viewBox="0 0 48 48" xmlns="http://www.w3.org/2000/svg"><path d="M30.4975 14.2475C28.7075 14.2475 27.2475 15.7075 27.2475 17.4975C27.2475 19.2875 28.7075 20.7475 30.4975 20.7475C32.2875 20.7475 33.7475 19.2875 33.7475 17.4975C33.7475 15.7075 32.2875 14.2475 30.4975 14.2475ZM30.4975 19.2475C29.5375 19.2475 28.7475 18.4575 28.7475 17.4975C28.7475 16.5375 29.5375 15.7475 30.4975 15.7475C31.4575 15.7475 32.2475 16.5375 32.2475 17.4975C32.2475 18.4575 31.4575 19.2475 30.4975 19.2475ZM13.5175 11.2175C13.4375 10.8075 13.7075 10.4175 14.1175 10.3375C14.4275 10.2775 14.7175 10.2475 14.9975 10.2475H32.9975C35.6175 10.2475 37.7475 12.3775 37.7475 14.9975V32.9975C37.7475 33.2775 37.7175 33.5675 37.6575 33.8775C37.5875 34.2375 37.2775 34.4875 36.9175 34.4875C36.8675 34.4875 36.8275 34.4875 36.7775 34.4775C36.3675 34.3975 36.1075 34.0075 36.1775 33.5975C36.2175 33.3775 36.2375 33.1775 36.2375 32.9975V14.9975C36.2375 13.2075 34.7775 11.7475 32.9875 11.7475H14.9975C14.8075 11.7475 14.6175 11.7675 14.3975 11.8075C13.9875 11.8875 13.5975 11.6175 13.5175 11.2075V11.2175ZM34.4775 36.7775C34.5575 37.1875 34.2875 37.5775 33.8775 37.6575C33.5675 37.7175 33.2775 37.7475 32.9975 37.7475H14.9975C12.3775 37.7475 10.2475 35.6175 10.2475 32.9975V14.9975C10.2475 14.7175 10.2775 14.4275 10.3375 14.1175C10.4175 13.7075 10.8075 13.4375 11.2175 13.5175C11.6275 13.5975 11.8875 13.9875 11.8175 14.3975C11.7775 14.6175 11.7575 14.8175 11.7575 14.9975V32.9975C11.7575 34.7875 13.2175 36.2475 15.0075 36.2475H33.0075C33.1975 36.2475 33.3875 36.2275 33.6075 36.1875C34.0075 36.1075 34.4075 36.3775 34.4875 36.7875L34.4775 36.7775ZM15.8275 31.7975C15.6975 31.9375 15.7575 32.0875 15.7775 32.1175C15.8175 32.1975 15.8675 32.2475 15.9375 32.2475H29.8175C30.2275 32.2475 30.5675 32.5875 30.5675 32.9975C30.5675 33.4075 30.2275 33.7475 29.8175 33.7475H15.9375C15.2675 33.7475 14.6775 33.3475 14.3975 32.7175C14.1075 32.0575 14.2375 31.2975 14.7275 30.7775L19.7275 25.2775C20.0475 24.9275 20.5075 24.7175 20.9875 24.7075C21.4875 24.7275 21.9375 24.8875 22.2675 25.2275L25.4675 28.4775C25.7575 28.7675 25.7575 29.2475 25.4675 29.5375C25.1675 29.8275 24.6975 29.8275 24.4075 29.5375L21.2075 26.2875C21.1475 26.2175 21.0675 26.1875 21.0275 26.2075C20.9875 26.2075 20.9075 26.2175 20.8475 26.2875L15.8375 31.7975H15.8275ZM38.5275 38.5275C38.3775 38.6775 38.1875 38.7475 37.9975 38.7475C37.8075 38.7475 37.6175 38.6775 37.4675 38.5275L9.4675 10.5275C9.1775 10.2375 9.1775 9.7575 9.4675 9.4675C9.7575 9.1775 10.2375 9.1775 10.5275 9.4675L38.5275 37.4675C38.8175 37.7575 38.8175 38.2375 38.5275 38.5275Z"></path></svg>'},"./packages/survey-core/src/images-v2/ranking-arrows.svg":function(a,s){a.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>'},"./packages/survey-core/src/images-v2/rankingundefined-16x16.svg":function(a,s){a.exports='<svg viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg"><path d="M11.75 8C11.75 8.41 11.41 8.75 11 8.75H5C4.59 8.75 4.25 8.41 4.25 8C4.25 7.59 4.59 7.25 5 7.25H11C11.41 7.25 11.75 7.59 11.75 8Z"></path></svg>'},"./packages/survey-core/src/images-v2/rating-star-2.svg":function(a,s){a.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>'},"./packages/survey-core/src/images-v2/rating-star-small-2.svg":function(a,s){a.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>'},"./packages/survey-core/src/images-v2/rating-star-small.svg":function(a,s){a.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>'},"./packages/survey-core/src/images-v2/rating-star.svg":function(a,s){a.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>'},"./packages/survey-core/src/images-v2/reorder-24x24.svg":function(a,s){a.exports='<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path d="M8.9444 10.75H15.0544C15.7144 10.75 16.3144 10.39 16.6144 9.80002C16.9144 9.22002 16.8644 8.52002 16.4844 7.98002L13.4244 3.71002C12.7644 2.79002 11.2344 2.79002 10.5744 3.71002L7.5244 7.99002C7.1444 8.53002 7.0944 9.22002 7.3944 9.81002C7.6944 10.4 8.2944 10.76 8.9544 10.76L8.9444 10.75ZM8.7444 8.86002L11.7944 4.58002C11.8644 4.49002 11.9544 4.48002 11.9944 4.48002C12.0344 4.48002 12.1344 4.49002 12.1944 4.58002L15.2544 8.86002C15.3344 8.97002 15.3044 9.07002 15.2744 9.12002C15.2444 9.17002 15.1844 9.26002 15.0544 9.26002H8.9444C8.8144 9.26002 8.7444 9.18002 8.7244 9.12002C8.7044 9.06002 8.6644 8.97002 8.7444 8.86002ZM15.0544 13.25H8.9444C8.2844 13.25 7.6844 13.61 7.3844 14.2C7.0844 14.78 7.1344 15.48 7.5144 16.02L10.5744 20.3C10.9044 20.76 11.4344 21.03 11.9944 21.03C12.5544 21.03 13.0944 20.76 13.4144 20.3L16.4744 16.02C16.8544 15.48 16.9044 14.79 16.6044 14.2C16.3044 13.61 15.7044 13.25 15.0444 13.25H15.0544ZM15.2644 15.15L12.2044 19.43C12.0744 19.61 11.9244 19.61 11.7944 19.43L8.7344 15.15C8.6544 15.04 8.6844 14.94 8.7144 14.89C8.7444 14.84 8.8044 14.75 8.9344 14.75H15.0444C15.1744 14.75 15.2444 14.83 15.2644 14.89C15.2844 14.95 15.3244 15.04 15.2444 15.15H15.2644Z"></path></svg>'},"./packages/survey-core/src/images-v2/restoredown-16x16.svg":function(a,s){a.exports='<svg viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg"><path d="M7.69 8.71C7.73 8.8 7.75 8.9 7.75 9V13C7.75 13.41 7.41 13.75 7 13.75C6.59 13.75 6.25 13.41 6.25 13V10.81L3.53 13.53C3.38 13.68 3.19 13.75 3 13.75C2.81 13.75 2.62 13.68 2.47 13.53C2.18 13.24 2.18 12.76 2.47 12.47L5.19 9.75H3C2.59 9.75 2.25 9.41 2.25 9C2.25 8.59 2.59 8.25 3 8.25H7C7.1 8.25 7.19 8.27 7.29 8.31C7.47 8.39 7.62 8.53 7.7 8.72L7.69 8.71ZM13 6.25H10.81L13.53 3.53C13.82 3.24 13.82 2.76 13.53 2.47C13.24 2.18 12.76 2.18 12.47 2.47L9.75 5.19V3C9.75 2.59 9.41 2.25 9 2.25C8.59 2.25 8.25 2.59 8.25 3V7C8.25 7.1 8.27 7.19 8.31 7.29C8.39 7.47 8.53 7.62 8.72 7.7C8.81 7.74 8.91 7.76 9.01 7.76H13.01C13.42 7.76 13.76 7.42 13.76 7.01C13.76 6.6 13.42 6.26 13.01 6.26L13 6.25Z"></path></svg>'},"./packages/survey-core/src/images-v2/search-24x24.svg":function(a,s){a.exports='<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path d="M13.9975 2.25C9.7275 2.25 6.2475 5.73 6.2475 10C6.2475 11.87 6.9075 13.58 8.0175 14.92L2.4675 20.47C2.1775 20.76 2.1775 21.24 2.4675 21.53C2.6175 21.68 2.8075 21.75 2.9975 21.75C3.1875 21.75 3.3775 21.68 3.5275 21.53L9.0775 15.98C10.4175 17.08 12.1275 17.75 13.9975 17.75C18.2675 17.75 21.7475 14.27 21.7475 10C21.7475 5.73 18.2675 2.25 13.9975 2.25ZM13.9975 16.25C10.5475 16.25 7.7475 13.45 7.7475 10C7.7475 6.55 10.5475 3.75 13.9975 3.75C17.4475 3.75 20.2475 6.55 20.2475 10C20.2475 13.45 17.4475 16.25 13.9975 16.25Z"></path></svg>'},"./packages/survey-core/src/images-v2/smiley-rate1-24x24.svg":function(a,s){a.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>'},"./packages/survey-core/src/images-v2/smiley-rate10-24x24.svg":function(a,s){a.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>'},"./packages/survey-core/src/images-v2/smiley-rate2-24x24.svg":function(a,s){a.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.51001C4.47291 4.51001 4.08291 4.25001 3.94291 3.84001C3.76291 3.32001 4.03291 2.75001 4.55291 2.57001L8.32291 1.25001C8.84291 1.06001 9.41291 1.34001 9.59291 1.86001C9.77291 2.38001 9.50291 2.95001 8.98291 3.13001L5.20291 4.45001C5.09291 4.49001 4.98291 4.51001 4.87291 4.51001H4.88291ZM19.8129 3.89001C20.0229 3.38001 19.7729 2.79001 19.2629 2.59001L15.5529 1.07001C15.0429 0.860007 14.4529 1.11001 14.2529 1.62001C14.0429 2.13001 14.2929 2.72001 14.8029 2.92001L18.5029 4.43001C18.6229 4.48001 18.7529 4.50001 18.8829 4.50001C19.2729 4.50001 19.6529 4.27001 19.8129 3.88001V3.89001ZM3.50291 6.00001C2.64291 6.37001 1.79291 6.88001 1.00291 7.48001C0.79291 7.64001 0.64291 7.87001 0.59291 8.14001C0.48291 8.73001 0.87291 9.29001 1.45291 9.40001C2.04291 9.51001 2.60291 9.12001 2.71291 8.54001C2.87291 7.69001 3.12291 6.83001 3.50291 5.99001V6.00001ZM21.0429 8.55001C21.6029 10.48 24.2429 8.84001 22.7529 7.48001C21.9629 6.88001 21.1129 6.37001 20.2529 6.00001C20.6329 6.84001 20.8829 7.70001 21.0429 8.55001ZM21.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 10 11.8829 10C7.47291 10 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>'},"./packages/survey-core/src/images-v2/smiley-rate3-24x24.svg":function(a,s){a.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>'},"./packages/survey-core/src/images-v2/smiley-rate4-24x24.svg":function(a,s){a.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>'},"./packages/survey-core/src/images-v2/smiley-rate5-24x24.svg":function(a,s){a.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>'},"./packages/survey-core/src/images-v2/smiley-rate6-24x24.svg":function(a,s){a.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>'},"./packages/survey-core/src/images-v2/smiley-rate7-24x24.svg":function(a,s){a.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>'},"./packages/survey-core/src/images-v2/smiley-rate8-24x24.svg":function(a,s){a.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>'},"./packages/survey-core/src/images-v2/smiley-rate9-24x24.svg":function(a,s){a.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/entries/react-ui.ts":function(S,h,d){d.r(h),d.d(h,"Survey",function(){return Te}),d.d(h,"attachKey2click",function(){return Se}),d.d(h,"ReactSurveyElementsWrapper",function(){return y}),d.d(h,"SurveyNavigationBase",function(){return Oe}),d.d(h,"SurveyTimerPanel",function(){return ft}),d.d(h,"SurveyPage",function(){return ct}),d.d(h,"SurveyRow",function(){return R}),d.d(h,"SurveyPanel",function(){return pe}),d.d(h,"SurveyFlowPanel",function(){return mt}),d.d(h,"SurveyQuestion",function(){return ce}),d.d(h,"SurveyElementErrors",function(){return ye}),d.d(h,"SurveyQuestionAndErrorsCell",function(){return ut}),d.d(h,"ReactSurveyElement",function(){return w}),d.d(h,"SurveyElementBase",function(){return g}),d.d(h,"SurveyQuestionElementBase",function(){return P}),d.d(h,"SurveyQuestionCommentItem",function(){return ke}),d.d(h,"SurveyQuestionComment",function(){return st}),d.d(h,"SurveyQuestionCheckbox",function(){return yt}),d.d(h,"SurveyQuestionCheckboxItem",function(){return De}),d.d(h,"SurveyQuestionRanking",function(){return gt}),d.d(h,"SurveyQuestionRankingItem",function(){return Ct}),d.d(h,"SurveyQuestionRankingItemContent",function(){return xt}),d.d(h,"RatingItem",function(){return Et}),d.d(h,"RatingItemStar",function(){return qt}),d.d(h,"RatingItemSmiley",function(){return St}),d.d(h,"RatingDropdownItem",function(){return Ot}),d.d(h,"TagboxFilterString",function(){return Ae}),d.d(h,"SurveyQuestionOptionItem",function(){return Lt}),d.d(h,"SurveyQuestionDropdownBase",function(){return Le}),d.d(h,"SurveyQuestionDropdown",function(){return Ze}),d.d(h,"SurveyQuestionTagboxItem",function(){return Mt}),d.d(h,"SurveyQuestionTagbox",function(){return It}),d.d(h,"SurveyQuestionDropdownSelect",function(){return bt}),d.d(h,"SurveyQuestionMatrix",function(){return Rt}),d.d(h,"SurveyQuestionMatrixRow",function(){return Pt}),d.d(h,"SurveyQuestionMatrixCell",function(){return Nt}),d.d(h,"SurveyQuestionHtml",function(){return kt}),d.d(h,"SurveyQuestionFile",function(){return jt}),d.d(h,"SurveyFileChooseButton",function(){return We}),d.d(h,"SurveyFilePreview",function(){return Ht}),d.d(h,"SurveyQuestionMultipleText",function(){return Tt}),d.d(h,"SurveyQuestionRadiogroup",function(){return Vt}),d.d(h,"SurveyQuestionRadioItem",function(){return ze}),d.d(h,"SurveyQuestionText",function(){return _t}),d.d(h,"SurveyQuestionBoolean",function(){return Me}),d.d(h,"SurveyQuestionBooleanCheckbox",function(){return At}),d.d(h,"SurveyQuestionBooleanRadio",function(){return Zt}),d.d(h,"SurveyQuestionEmpty",function(){return Qt}),d.d(h,"SurveyQuestionMatrixDropdownCell",function(){return Wt}),d.d(h,"SurveyQuestionMatrixDropdownBase",function(){return Je}),d.d(h,"SurveyQuestionMatrixDropdown",function(){return Ut}),d.d(h,"SurveyQuestionMatrixDynamic",function(){return Kt}),d.d(h,"SurveyQuestionMatrixDynamicAddButton",function(){return $t}),d.d(h,"SurveyQuestionPanelDynamic",function(){return Xt}),d.d(h,"SurveyProgress",function(){return Ce}),d.d(h,"SurveyProgressButtons",function(){return en}),d.d(h,"SurveyProgressToc",function(){return nn}),d.d(h,"SurveyQuestionRating",function(){return rn}),d.d(h,"SurveyQuestionRatingDropdown",function(){return on}),d.d(h,"SurveyQuestionExpression",function(){return sn}),d.d(h,"PopupSurvey",function(){return un}),d.d(h,"SurveyWindow",function(){return Wr}),d.d(h,"ReactQuestionFactory",function(){return k}),d.d(h,"ReactElementFactory",function(){return c}),d.d(h,"SurveyQuestionImagePicker",function(){return cn}),d.d(h,"SurveyQuestionImage",function(){return pn}),d.d(h,"SurveyQuestionSignaturePad",function(){return dn}),d.d(h,"SurveyQuestionButtonGroup",function(){return $r}),d.d(h,"SurveyQuestionCustom",function(){return mn}),d.d(h,"SurveyQuestionComposite",function(){return vn}),d.d(h,"Popup",function(){return Q}),d.d(h,"ListItemContent",function(){return yn}),d.d(h,"ListItemGroup",function(){return gn}),d.d(h,"List",function(){return et}),d.d(h,"TitleActions",function(){return G}),d.d(h,"TitleElement",function(){return Y}),d.d(h,"SurveyActionBar",function(){return D}),d.d(h,"LogoImage",function(){return Cn}),d.d(h,"SurveyHeader",function(){return je}),d.d(h,"SvgIcon",function(){return M}),d.d(h,"SurveyQuestionMatrixDynamicRemoveButton",function(){return xn}),d.d(h,"SurveyQuestionMatrixDetailButton",function(){return wn}),d.d(h,"SurveyQuestionMatrixDynamicDragDropIcon",function(){return $e}),d.d(h,"SurveyQuestionPanelDynamicAddButton",function(){return Gt}),d.d(h,"SurveyQuestionPanelDynamicRemoveButton",function(){return En}),d.d(h,"SurveyQuestionPanelDynamicPrevButton",function(){return Ye}),d.d(h,"SurveyQuestionPanelDynamicNextButton",function(){return Ge}),d.d(h,"SurveyQuestionPanelDynamicProgressText",function(){return Xe}),d.d(h,"SurveyNavigationButton",function(){return qn}),d.d(h,"QuestionErrorComponent",function(){return Sn}),d.d(h,"MatrixRow",function(){return Ke}),d.d(h,"Skeleton",function(){return On}),d.d(h,"NotifierComponent",function(){return Be}),d.d(h,"ComponentsContainer",function(){return z}),d.d(h,"CharacterCounterComponent",function(){return Ee}),d.d(h,"HeaderMobile",function(){return Ln}),d.d(h,"HeaderCell",function(){return Mn}),d.d(h,"Header",function(){return In}),d.d(h,"SurveyLocStringViewer",function(){return tt}),d.d(h,"SurveyLocStringEditor",function(){return bn}),d.d(h,"LoadingIndicatorComponent",function(){return Fe}),d.d(h,"SvgBundleComponent",function(){return pt}),d.d(h,"PopupModal",function(){return dt}),d.d(h,"SurveyModel",function(){return a.SurveyModel}),d.d(h,"SurveyWindowModel",function(){return a.SurveyWindowModel}),d.d(h,"Model",function(){return a.SurveyModel}),d.d(h,"settings",function(){return a.settings}),d.d(h,"surveyLocalization",function(){return a.surveyLocalization}),d.d(h,"surveyStrings",function(){return a.surveyStrings});var a=d("survey-core"),s=d("react"),u=d.n(s),c=function(){function r(){this.creatorHash={}}return r.prototype.registerElement=function(t,e){this.creatorHash[t]=e},r.prototype.getAllTypes=function(){var t=new Array;for(var e in this.creatorHash)t.push(e);return t.sort()},r.prototype.isElementRegistered=function(t){return!!this.creatorHash[t]},r.prototype.createElement=function(t,e){var n=this.creatorHash[t];return n==null?null:n(e)},r.Instance=new r,r}(),y=function(){function r(){}return r.wrapRow=function(t,e,n){var o=t.getRowWrapperComponentName(n),i=t.getRowWrapperComponentData(n);return c.Instance.createElement(o,{element:e,row:n,componentData:i})},r.wrapElement=function(t,e,n){var o=t.getElementWrapperComponentName(n),i=t.getElementWrapperComponentData(n);return c.Instance.createElement(o,{element:e,question:n,componentData:i})},r.wrapQuestionContent=function(t,e,n){var o=t.getQuestionContentWrapperComponentName(n),i=t.getElementWrapperComponentData(n);return c.Instance.createElement(o,{element:e,question:n,componentData:i})},r.wrapItemValue=function(t,e,n,o){var i=t.getItemValueWrapperComponentName(o,n),p=t.getItemValueWrapperComponentData(o,n);return c.Instance.createElement(i,{key:e==null?void 0:e.key,element:e,question:n,item:o,componentData:p})},r.wrapMatrixCell=function(t,e,n,o){o===void 0&&(o="cell");var i=t.getElementWrapperComponentName(n,o),p=t.getElementWrapperComponentData(n,o);return c.Instance.createElement(i,{element:e,cell:n,componentData:p})},r}();a.SurveyModel.platform="react";var E=function(){var r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,o){n.__proto__=o}||function(n,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(n[i]=o[i])},r(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");r(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),g=function(r){E(t,r);function t(e){var n=r.call(this,e)||this;return n._allowComponentUpdate=!0,n.prevStateElements=[],n}return t.renderLocString=function(e,n,o){return n===void 0&&(n=null),c.Instance.createElement(e.renderAs,{locStr:e.renderAsData,style:n,key:o})},t.renderQuestionDescription=function(e){var n=t.renderLocString(e.locDescription);return s.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(),this.disableStateElementsRerenderEvent(this.getStateElements())},t.prototype.componentDidUpdate=function(e,n){var o;this.makeBaseElementsReact();var i=this.getStateElements();this.disableStateElementsRerenderEvent(((o=this.prevStateElements)!==null&&o!==void 0?o:[]).filter(function(p){return!i.includes(p)})),this.prevStateElements=[],this.getStateElements().forEach(function(p){p.afterRerender()})},t.prototype.allowComponentUpdate=function(){this._allowComponentUpdate=!0,this.forceUpdate()},t.prototype.denyComponentUpdate=function(){this._allowComponentUpdate=!1},t.prototype.shouldComponentUpdate=function(e,n){return this._allowComponentUpdate&&(this.unMakeBaseElementsReact(),this.prevStateElements=this.getStateElements()),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=this.getRenderedElements(),n=0,o=e;n<o.length;n++){var i=o[n];if(i.reactRendering>0)return!0}return!1},enumerable:!1,configurable:!0}),t.prototype.getRenderedElements=function(){return this.getStateElements()},t.prototype.startEndRendering=function(e){for(var n=this.getRenderedElements(),o=0,i=n;o<i.length;o++){var p=i[o];p.reactRendering||(p.reactRendering=0),p.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(),n=0;n<e.length;n++)e[n].enableOnElementRerenderedEvent(),this.makeBaseElementReact(e[n])},t.prototype.unMakeBaseElementsReact=function(){for(var e=this.getStateElements(),n=0;n<e.length;n++)this.unMakeBaseElementReact(e[n])},t.prototype.disableStateElementsRerenderEvent=function(e){e.forEach(function(n){n.disableOnElementRerenderedEvent()})},t.prototype.getStateElements=function(){var e=this.getStateElement();return e?[e]:[]},t.prototype.getStateElement=function(){return null},Object.defineProperty(t.prototype,"isDisplayMode",{get:function(){var e=this.props;return e.isDisplayMode||!1},enumerable:!1,configurable:!0}),t.prototype.renderLocString=function(e,n,o){return n===void 0&&(n=null),t.renderLocString(e,n,o)},t.prototype.canMakeReact=function(e){return!!e&&!!e.iteratePropertiesHash},t.prototype.makeBaseElementReact=function(e){var n=this;this.canMakeReact(e)&&(e.iteratePropertiesHash(function(o,i){if(n.canUsePropInState(i)){var p=o[i];if(Array.isArray(p)){var p=p;p.onArrayChanged=function(v){n.isRendering||(n.changedStatePropNameValue=i,n.setState(function(b){var q={};return q[i]=p,q}))}}}}),e.setPropertyValueCoreHandler=function(o,i,p){if(o[i]!==p){if(o[i]=p,!n.canUsePropInState(i)||n.isRendering)return;n.changedStatePropNameValue=i,n.setState(function(f){var v={};return v[i]=p,v})}})},t.prototype.canUsePropInState=function(e){return!0},t.prototype.unMakeBaseElementReact=function(e){this.canMakeReact(e)&&(e.setPropertyValueCoreHandler=void 0,e.iteratePropertiesHash(function(n,o){var i=n[o];if(Array.isArray(i)){var i=i;i.onArrayChanged=function(){}}}))},t}(s.Component),w=function(r){E(t,r);function t(e){return r.call(this,e)||this}return Object.defineProperty(t.prototype,"cssClasses",{get:function(){return this.props.cssClasses},enumerable:!1,configurable:!0}),t}(g),P=function(r){E(t,r);function t(e){return r.call(this,e)||this}return t.prototype.componentDidUpdate=function(e,n){r.prototype.componentDidUpdate.call(this,e,n),this.updateDomElement()},t.prototype.componentDidMount=function(){r.prototype.componentDidMount.call(this),this.updateDomElement()},t.prototype.componentWillUnmount=function(){if(r.prototype.componentWillUnmount.call(this),this.questionBase){var e=this.content||this.control;this.questionBase.beforeDestroyQuestionElement(e),e&&e.removeAttribute("data-rendered")}},t.prototype.updateDomElement=function(){var e=this.content||this.control;e&&e.getAttribute("data-rendered")!=="r"&&(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(e,n){return r.prototype.shouldComponentUpdate.call(this,e,n)?!this.questionBase.customWidget||!!this.questionBase.customWidgetData.isNeedRender||!!this.questionBase.customWidget.widgetJson.isDefaultRender||!!this.questionBase.customWidget.widgetJson.render:!1},Object.defineProperty(t.prototype,"isDisplayMode",{get:function(){var e=this.props;return e.isDisplayMode||!!this.questionBase&&this.questionBase.isInputReadOnly||!1},enumerable:!1,configurable:!0}),t.prototype.wrapCell=function(e,n,o){if(!o)return n;var i=this.questionBase.survey,p=null;return i&&(p=y.wrapMatrixCell(i,n,e,o)),p??n},t.prototype.setControl=function(e){e&&(this.control=e)},t.prototype.setContent=function(e){e&&(this.content=e)},t}(g),T=function(r){E(t,r);function t(e){var n=r.call(this,e)||this;return n.updateValueOnEvent=function(o){a.Helpers.isTwoValueEquals(n.questionBase.value,o.target.value,!1,!0,!1)||n.setValueCore(o.target.value)},n.updateValueOnEvent=n.updateValueOnEvent.bind(n),n}return 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 e=this.control,n=this.getValueCore();a.Helpers.isTwoValueEquals(n,e.value,!1,!0,!1)||(e.value=this.getValue(n))}r.prototype.updateDomElement.call(this)},t.prototype.getValue=function(e){return a.Helpers.isValueEmpty(e)?"":e},t}(P),N=function(){var r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,o){n.__proto__=o}||function(n,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(n[i]=o[i])},r(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");r(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),O=function(r){N(t,r);function t(e){var n=r.call(this,e)||this;return n.element.cssClasses,n.rootRef=s.createRef(),n}return 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(){r.prototype.componentDidMount.call(this),this.rootRef.current&&this.element.setWrapperElement(this.rootRef.current)},t.prototype.componentWillUnmount=function(){r.prototype.componentWillUnmount.call(this),this.element.setWrapperElement(void 0)},t.prototype.shouldComponentUpdate=function(e,n){return r.prototype.shouldComponentUpdate.call(this,e,n)?(e.element!==this.element&&(e.element&&e.element.setWrapperElement(this.rootRef.current),this.element&&this.element.setWrapperElement(void 0)),this.element.cssClasses,!0):!1},t.prototype.renderElement=function(){var e=this.element,n=this.createElement(e,this.index),o=e.cssClassesValue,i=function(){var p=e;p&&p.isQuestion&&p.focusIn()};return s.createElement("div",{className:o.questionWrapper,style:e.rootStyle,"data-key":n.key,key:n.key,onFocus:i,ref:this.rootRef},n)},t.prototype.createElement=function(e,n){var o=n?"-"+n:0;if(!this.row.isNeedRender)return c.Instance.createElement(e.skeletonComponentName,{key:e.name+o,element:e,css:this.css});var i=e.getTemplate();return c.Instance.isElementRegistered(i)||(i="question"),c.Instance.createElement(i,{key:e.name+o,element:e,creator:this.creator,survey:this.survey,css:this.css})},t}(g),B=function(){var r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,o){n.__proto__=o}||function(n,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(n[i]=o[i])},r(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");r(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),R=function(r){B(t,r);function t(e){var n=r.call(this,e)||this;return n.rootRef=s.createRef(),n.recalculateCss(),n}return 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,n=this.row.visibleElements.map(function(o,i){var p=i?"-"+i:0,f=o.name+p;return s.createElement(O,{element:o,index:i,row:e.row,survey:e.survey,creator:e.creator,css:e.css,key:f})});return s.createElement("div",{ref:this.rootRef,className:this.row.getRowCss()},n)},t.prototype.renderElement=function(){var e=this.survey,n=this.renderElementContent(),o=y.wrapRow(e,n,this.row);return o||n},t.prototype.componentDidMount=function(){var e=this;r.prototype.componentDidMount.call(this);var n=this.rootRef.current;if(this.rootRef.current&&this.row.setRootElement(this.rootRef.current),n&&!this.row.isNeedRender){var o=n;setTimeout(function(){e.row.startLazyRendering(o)},10)}},t.prototype.shouldComponentUpdate=function(e,n){return r.prototype.shouldComponentUpdate.call(this,e,n)?(e.row!==this.row&&(e.row.isNeedRender=this.row.isNeedRender,e.row.setRootElement(this.rootRef.current),this.row.setRootElement(void 0),this.stopLazyRendering()),this.recalculateCss(),!0):!1},t.prototype.stopLazyRendering=function(){this.row.stopLazyRendering(),this.row.isNeedRender=!this.row.isLazyRendering()},t.prototype.componentWillUnmount=function(){r.prototype.componentWillUnmount.call(this),this.row.setRootElement(void 0),this.stopLazyRendering()},t.prototype.createElement=function(e,n){var o=n?"-"+n:0,i=e.getType();return c.Instance.isElementRegistered(i)||(i="question"),c.Instance.createElement(i,{key:e.name+o,element:e,creator:this.creator,survey:this.survey,css:this.css})},t}(g),H=function(){var r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,o){n.__proto__=o}||function(n,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(n[i]=o[i])},r(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");r(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),_=function(r){H(t,r);function t(e){var n=r.call(this,e)||this;return n.rootRef=s.createRef(),n}return t.prototype.getStateElement=function(){return this.panelBase},t.prototype.canUsePropInState=function(e){return e!=="elements"&&r.prototype.canUsePropInState.call(this,e)},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(){r.prototype.componentDidMount.call(this),this.doAfterRender()},t.prototype.componentWillUnmount=function(){r.prototype.componentWillUnmount.call(this);var e=this.rootRef.current;e&&e.removeAttribute("data-rendered")},t.prototype.componentDidUpdate=function(e,n){r.prototype.componentDidUpdate.call(this,e,n),!(e.page&&this.survey&&this.survey.activePage&&e.page.id===this.survey.activePage.id)&&this.doAfterRender()},t.prototype.doAfterRender=function(){var e=this.rootRef.current;e&&this.survey&&(this.panelBase.isPanel?this.panelBase.afterRender(e):this.survey.afterRenderPage(e))},t.prototype.getIsVisible=function(){return this.panelBase.isVisible},t.prototype.canRender=function(){return r.prototype.canRender.call(this)&&!!this.survey&&!!this.panelBase&&!!this.panelBase.survey&&this.getIsVisible()},t.prototype.renderRows=function(e){var n=this;return this.panelBase.visibleRows.map(function(o){return n.createRow(o,e)})},t.prototype.createRow=function(e,n){return s.createElement(R,{key:e.id,row:e,survey:this.survey,creator:this.creator,css:n})},t}(g),Z=function(){var r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,o){n.__proto__=o}||function(n,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(n[i]=o[i])},r(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");r(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),M=function(r){Z(t,r);function t(e){var n=r.call(this,e)||this;return n.svgIconRef=u.a.createRef(),n}return 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?u.a.createElement("svg",{className:e,style:this.props.style,onClick:this.props.onClick,ref:this.svgIconRef,role:"img"},u.a.createElement("use",null)):null},t.prototype.componentDidMount=function(){this.updateSvg()},t}(u.a.Component);c.Instance.registerElement("sv-svg-icon",function(r){return u.a.createElement(M,r)});var le=function(){var r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,o){n.__proto__=o}||function(n,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(n[i]=o[i])},r(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");r(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),ie=function(r){le(t,r);function t(e){return r.call(this,e)||this}return t.prototype.render=function(){var e="sv-action-bar-separator "+this.props.cssClasses;return u.a.createElement("div",{className:e})},t}(u.a.Component);c.Instance.registerElement("sv-action-bar-separator",function(r){return u.a.createElement(ie,r)});var K=function(){var r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,o){n.__proto__=o}||function(n,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(n[i]=o[i])},r(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");r(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),$=function(r){K(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return 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(),n=this.item.needSeparator?u.a.createElement(ie,null):null,o=c.Instance.createElement(this.item.component||"sv-action-bar-item",{item:this.item});return u.a.createElement("div",{className:e,id:this.item.id},u.a.createElement("div",{className:"sv-action__content"},n,o))},t}(g),ae=function(r){K(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return 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 u.a.createElement(u.a.Fragment,null,this.renderInnerButton())},t.prototype.renderText=function(){if(!this.item.hasTitle)return null;var e=this.item.getActionBarItemTitleCss();return u.a.createElement("span",{className:e},this.item.title)},t.prototype.renderButtonContent=function(){var e=this.renderText(),n=this.item.iconName?u.a.createElement(M,{className:this.item.cssClasses.itemIcon,size:this.item.iconSize,iconName:this.item.iconName,title:this.item.tooltip||this.item.title}):null;return u.a.createElement(u.a.Fragment,null,n,e)},t.prototype.renderInnerButton=function(){var e=this,n=this.item.getActionBarItemCss(),o=this.item.tooltip||this.item.title,i=this.renderButtonContent(),p=this.item.disableTabStop?-1:void 0,f=Se(u.a.createElement("button",{className:n,type:"button",disabled:this.item.disabled,onMouseDown:function(v){return e.item.doMouseDown(v)},onFocus:function(v){return e.item.doFocus(v)},onClick:function(v){return e.item.doAction(v)},title:o,tabIndex:p,"aria-checked":this.item.ariaChecked,"aria-expanded":this.item.ariaExpanded,role:this.item.ariaRole},i),this.item,{processEsc:!1});return f},t}(g);c.Instance.registerElement("sv-action-bar-item",function(r){return u.a.createElement(ae,r)});var W=function(){var r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,o){n.__proto__=o}||function(n,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(n[i]=o[i])},r(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");r(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),Q=function(r){W(t,r);function t(e){var n=r.call(this,e)||this;return n.containerRef=u.a.createRef(),n.createModel(),n}return 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(a.createPopupViewModel)(this.props.model)},t.prototype.setTargetElement=function(){var e=this.containerRef.current;this.popup.setComponentElement(e)},t.prototype.componentDidMount=function(){r.prototype.componentDidMount.call(this),this.setTargetElement()},t.prototype.componentDidUpdate=function(e,n){r.prototype.componentDidUpdate.call(this,e,n),this.setTargetElement()},t.prototype.componentWillUnmount=function(){r.prototype.componentWillUnmount.call(this),this.popup.resetComponentElement()},t.prototype.shouldComponentUpdate=function(e,n){var o;if(!r.prototype.shouldComponentUpdate.call(this,e,n))return!1;var i=e.model!==this.popup.model;return i&&((o=this.popup)===null||o===void 0||o.dispose(),this.createModel()),i},t.prototype.render=function(){this.popup.model=this.model;var e;return this.model.isModal?e=u.a.createElement(U,{model:this.popup}):e=u.a.createElement(ee,{model:this.popup}),u.a.createElement("div",{ref:this.containerRef},e)},t}(g);c.Instance.registerElement("sv-popup",function(r){return u.a.createElement(Q,r)});var U=function(r){W(t,r);function t(e){var n=r.call(this,e)||this;return n.handleKeydown=function(o){n.model.onKeyDown(o)},n.clickInside=function(o){o.stopPropagation()},n}return 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(e,n){r.prototype.componentDidUpdate.call(this,e,n),!this.model.isPositionSet&&this.model.isVisible&&this.model.updateOnShowing()},t.prototype.renderContainer=function(e){var n=this,o=e.showHeader?this.renderHeaderPopup(e):null,i=e.title?this.renderHeaderContent():null,p=this.renderContent(),f=e.showFooter?this.renderFooter(this.model):null;return u.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(v){n.clickInside(v)}},o,u.a.createElement("div",{className:"sv-popup__body-content"},i,u.a.createElement("div",{className:"sv-popup__scrolling-content"},p),f))},t.prototype.renderHeaderContent=function(){return u.a.createElement("div",{className:"sv-popup__body-header"},this.model.title)},t.prototype.renderContent=function(){var e=c.Instance.createElement(this.model.contentComponentName,this.model.contentComponentData);return u.a.createElement("div",{className:"sv-popup__content"},e)},t.prototype.renderHeaderPopup=function(e){return null},t.prototype.renderFooter=function(e){return u.a.createElement("div",{className:"sv-popup__body-footer"},u.a.createElement(D,{model:e.footerToolbar}))},t.prototype.render=function(){var e=this,n=this.renderContainer(this.model),o=new a.CssClassBuilder().append("sv-popup").append(this.model.styleClass).toString(),i={display:this.model.isVisible?"":"none"};return u.a.createElement("div",{tabIndex:-1,className:o,style:i,onClick:function(p){e.model.clickOutside(p)},onKeyDown:this.handleKeydown},n)},t.prototype.componentDidMount=function(){r.prototype.componentDidMount.call(this),this.model.isVisible&&this.model.updateOnShowing()},t}(g),ee=function(r){W(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.renderHeaderPopup=function(e){var n=e;return n?u.a.createElement("span",{style:{left:n.pointerTarget.left,top:n.pointerTarget.top},className:"sv-popup__pointer"}):null},t}(U),te=function(){var r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,o){n.__proto__=o}||function(n,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(n[i]=o[i])},r(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");r(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),ne=function(r){te(t,r);function t(e){return r.call(this,e)||this}return t.prototype.renderInnerButton=function(){var e=r.prototype.renderInnerButton.call(this);return u.a.createElement(u.a.Fragment,null,e,u.a.createElement(Q,{model:this.item.popupModel}))},t.prototype.componentDidMount=function(){this.viewModel=new a.ActionDropdownViewModel(this.item)},t.prototype.componentWillUnmount=function(){r.prototype.componentWillUnmount.call(this),this.viewModel.dispose()},t}(ae);c.Instance.registerElement("sv-action-bar-item-dropdown",function(r){return u.a.createElement(ne,r)});var re=function(){var r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,o){n.__proto__=o}||function(n,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(n[i]=o[i])},r(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");r(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),D=function(r){re(t,r);function t(e){var n=r.call(this,e)||this;return n.rootRef=u.a.createRef(),n}return Object.defineProperty(t.prototype,"handleClick",{get:function(){return this.props.handleClick!==void 0?this.props.handleClick:!0},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"model",{get:function(){return this.props.model},enumerable:!1,configurable:!0}),t.prototype.componentDidMount=function(){if(r.prototype.componentDidMount.call(this),!!this.model.hasActions){var e=this.rootRef.current;e&&this.model.initResponsivityManager(e,function(n){setTimeout(n,100)})}},t.prototype.componentWillUnmount=function(){r.prototype.componentWillUnmount.call(this),this.model.resetResponsivityManager()},t.prototype.componentDidUpdate=function(e,n){if(r.prototype.componentDidUpdate.call(this,e,n),e.model!=this.props.model&&e.model.resetResponsivityManager(),this.model.hasActions){var o=this.rootRef.current;o&&this.model.initResponsivityManager(o,function(i){setTimeout(i,100)})}},t.prototype.getStateElement=function(){return this.model},t.prototype.renderElement=function(){if(!this.model.hasActions)return null;var e=this.renderItems();return u.a.createElement("div",{ref:this.rootRef,className:this.model.getRootCss(),onClick:this.handleClick?function(n){n.stopPropagation()}:void 0},e)},t.prototype.renderItems=function(){return this.model.renderedActions.map(function(e,n){return u.a.createElement($,{item:e,key:"item"+n})})},t}(g);c.Instance.registerElement("sv-action-bar",function(r){return u.a.createElement(D,r)});var oe=function(){var r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,o){n.__proto__=o}||function(n,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(n[i]=o[i])},r(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");r(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),J=function(r){oe(t,r);function t(e){return r.call(this,e)||this}return 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 g.renderLocString(this.element.locTitle);var e=this.renderTitleSpans(this.element.getTitleOwner(),this.cssClasses);return u.a.createElement(u.a.Fragment,null,e)},t.prototype.renderTitleSpans=function(e,n){var o=function(f){return u.a.createElement("span",{"data-key":f,key:f}," ")},i=[];e.isRequireTextOnStart&&(i.push(this.renderRequireText(e)),i.push(o("req-sp")));var p=e.no;return p&&(i.push(u.a.createElement("span",{"data-key":"q_num",key:"q_num",className:e.cssTitleNumber,style:{position:"static"},"aria-hidden":!0},p)),i.push(o("num-sp"))),e.isRequireTextBeforeTitle&&(i.push(this.renderRequireText(e)),i.push(o("req-sp"))),i.push(g.renderLocString(e.locTitle,null,"q_title")),e.isRequireTextAfterTitle&&(i.push(o("req-sp")),i.push(this.renderRequireText(e))),i},t.prototype.renderRequireText=function(e){return u.a.createElement("span",{"data-key":"req-text",key:"req-text",className:e.cssRequiredText,"aria-hidden":!0},e.requiredText)},t}(u.a.Component),se=function(){var r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,o){n.__proto__=o}||function(n,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(n[i]=o[i])},r(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");r(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),G=function(r){se(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return 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=u.a.createElement(J,{element:this.element,cssClasses:this.cssClasses});return this.element.hasTitleActions?u.a.createElement("div",{className:"sv-title-actions"},u.a.createElement("span",{className:"sv-title-actions__title"},e),u.a.createElement(D,{model:this.element.getTitleToolbar()})):e},t}(u.a.Component);a.RendererFactory.Instance.registerRenderer("element","title-actions","sv-title-actions"),c.Instance.registerElement("sv-title-actions",function(r){return u.a.createElement(G,r)});var me=function(){var r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,o){n.__proto__=o}||function(n,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(n[i]=o[i])},r(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");r(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),Y=function(r){me(t,r);function t(e){return r.call(this,e)||this}return Object.defineProperty(t.prototype,"element",{get:function(){return this.props.element},enumerable:!1,configurable:!0}),t.prototype.renderTitleExpandableSvg=function(){if(!this.element.getCssTitleExpandableSvg())return null;var e=this.element.isExpanded?"icon-collapse-16x16":"icon-expand-16x16";return u.a.createElement(M,{className:this.element.getCssTitleExpandableSvg(),iconName:e,size:"auto"})},t.prototype.render=function(){var e=this.element;if(!e||!e.hasTitle)return null;var n=e.titleAriaLabel||void 0,o=this.renderTitleExpandableSvg(),i=u.a.createElement(G,{element:e,cssClasses:e.cssClasses}),p=void 0,f=void 0;e.hasTitleEvents&&(f=function(b){Object(a.doKey2ClickUp)(b.nativeEvent)});var v=e.titleTagName;return u.a.createElement(v,{className:e.cssTitle,id:e.ariaTitleId,"aria-label":n,tabIndex:e.titleTabIndex,"aria-expanded":e.titleAriaExpanded,role:e.titleAriaRole,onClick:p,onKeyUp:f},o,i)},t}(u.a.Component),k=function(){function r(){this.creatorHash={}}return r.prototype.registerQuestion=function(t,e){this.creatorHash[t]=e},r.prototype.getAllTypes=function(){var t=new Array;for(var e in this.creatorHash)t.push(e);return t.sort()},r.prototype.createQuestion=function(t,e){var n=this.creatorHash[t];return n==null?null:n(e)},r.Instance=new r,r}(),Hn=function(){var r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,o){n.__proto__=o}||function(n,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(n[i]=o[i])},r(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");r(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),Ee=function(r){Hn(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.getStateElement=function(){return this.props.counter},t.prototype.renderElement=function(){return u.a.createElement("div",{className:this.props.remainingCharacterCounter},this.props.counter.remainingCharacterCounter)},t}(g);c.Instance.registerElement("sv-character-counter",function(r){return u.a.createElement(Ee,r)});var Tn=function(){var r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,o){n.__proto__=o}||function(n,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(n[i]=o[i])},r(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");r(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),Pe=function(r){Tn(t,r);function t(e){var n=r.call(this,e)||this;return n.initialValue=n.viewModel.getTextValue()||"",n.textareaRef=u.a.createRef(),n}return Object.defineProperty(t.prototype,"viewModel",{get:function(){return this.props.viewModel},enumerable:!1,configurable:!0}),t.prototype.canRender=function(){return!!this.viewModel.question},t.prototype.componentDidMount=function(){r.prototype.componentDidMount.call(this);var e=this.textareaRef.current;e&&this.viewModel.setElement(e)},t.prototype.componentWillUnmount=function(){r.prototype.componentWillUnmount.call(this),this.viewModel.resetElement()},t.prototype.renderElement=function(){var e=this;return u.a.createElement("textarea",{id:this.viewModel.id,className:this.viewModel.className,ref:this.textareaRef,disabled:this.viewModel.isDisabledAttr,readOnly:this.viewModel.isReadOnlyAttr,rows:this.viewModel.rows,cols:this.viewModel.cols,placeholder:this.viewModel.placeholder,maxLength:this.viewModel.maxLength,defaultValue:this.initialValue,onChange:function(n){e.viewModel.onTextAreaInput(n)},onFocus:function(n){e.viewModel.onTextAreaFocus(n)},onBlur:function(n){e.viewModel.onTextAreaBlur(n)},onKeyDown:function(n){e.viewModel.onTextAreaKeyDown(n)},"aria-required":this.viewModel.ariaRequired,"aria-label":this.viewModel.ariaLabel,"aria-labelledby":this.viewModel.ariaLabelledBy,"aria-describedby":this.viewModel.ariaDescribedBy,"aria-invalid":this.viewModel.ariaInvalid,"aria-errormessage":this.viewModel.ariaErrormessage,style:{resize:this.viewModel.question.resizeStyle}})},t}(g);c.Instance.registerElement("sv-text-area",function(r){return u.a.createElement(Pe,r)});var Ne=function(){var r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,o){n.__proto__=o}||function(n,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(n[i]=o[i])},r(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");r(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),st=function(r){Ne(t,r);function t(e){return r.call(this,e)||this}return t.prototype.renderCharacterCounter=function(){var e=null;return this.question.getMaxLength()&&(e=s.createElement(Ee,{counter:this.question.characterCounter,remainingCharacterCounter:this.question.cssClasses.remainingCharacterCounter})),e},t.prototype.renderElement=function(){if(this.question.isReadOnlyRenderDiv())return s.createElement("div",null,this.question.value);var e=this.renderCharacterCounter(),n=this.props.question.textAreaModel;return s.createElement(s.Fragment,null,s.createElement(Pe,{viewModel:n}),e)},t}(T),ke=function(r){Ne(t,r);function t(e){var n=r.call(this,e)||this;return n.textAreaModel=n.getTextAreaModel(),n}return t.prototype.canRender=function(){return!!this.props.question},t.prototype.getTextAreaModel=function(){return this.props.question.commentTextAreaModel},t.prototype.renderElement=function(){var e=this.props.question;if(e.isReadOnlyRenderDiv()){var n=this.textAreaModel.getTextValue()||"";return s.createElement("div",null,n)}return s.createElement(Pe,{viewModel:this.textAreaModel})},t}(w),qe=function(r){Ne(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.getTextAreaModel=function(){return this.props.question.otherTextAreaModel},t}(ke);k.Instance.registerQuestion("comment",function(r){return s.createElement(st,r)});var Dn=function(){var r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,o){n.__proto__=o}||function(n,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(n[i]=o[i])},r(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");r(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),Vn=function(r){Dn(t,r);function t(e){var n=r.call(this,e)||this;return n.widgetRef=s.createRef(),n}return 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(){r.prototype.componentDidMount.call(this),this.questionBase&&this._afterRender()},t.prototype.componentDidUpdate=function(e,n){r.prototype.componentDidUpdate.call(this,e,n);var o=!!this.questionBase.customWidget&&this.questionBase.customWidget.isDefaultRender;this.questionBase&&!o&&this._afterRender()},t.prototype.componentWillUnmount=function(){if(r.prototype.componentWillUnmount.call(this),this.questionBase.customWidget){var e=this.widgetRef.current;e&&this.questionBase.customWidget.willUnmount(this.questionBase,e)}},t.prototype.canRender=function(){return r.prototype.canRender.call(this)&&this.questionBase.visible},t.prototype.renderElement=function(){var e=this.questionBase.customWidget;if(e.isDefaultRender)return s.createElement("div",{ref:this.widgetRef},this.creator.createQuestionElement(this.questionBase));var n=null;if(e.widgetJson.render)n=e.widgetJson.render(this.questionBase);else if(e.htmlTemplate){var o={__html:e.htmlTemplate};return s.createElement("div",{ref:this.widgetRef,dangerouslySetInnerHTML:o})}return s.createElement("div",{ref:this.widgetRef},n)},t}(P),_n=function(){var r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,o){n.__proto__=o}||function(n,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(n[i]=o[i])},r(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");r(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),it=function(r){_n(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return Object.defineProperty(t.prototype,"element",{get:function(){return this.props.element},enumerable:!1,configurable:!0}),t.prototype.render=function(){var e=this.element,n=e.hasTitle?u.a.createElement(Y,{element:e}):null,o=e.hasDescriptionUnderTitle?g.renderQuestionDescription(this.element):null,i=e.hasAdditionalTitleToolbar?u.a.createElement(D,{model:e.additionalTitleToolbar}):null,p={width:void 0};return e instanceof a.Question&&(p.width=e.titleWidth),u.a.createElement("div",{className:e.cssHeader,onClick:function(f){return e.clickTitleFunction&&e.clickTitleFunction(f.nativeEvent)},style:p},n,o,i)},t}(u.a.Component),ve=function(){var r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,o){n.__proto__=o}||function(n,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(n[i]=o[i])},r(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");r(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),ce=function(r){ve(t,r);function t(e){var n=r.call(this,e)||this;return n.isNeedFocus=!1,n.rootRef=s.createRef(),n}return t.renderQuestionBody=function(e,n){var o=n.customWidget;return o?s.createElement(Vn,{creator:e,question:n}):e.createQuestionElement(n)},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(){r.prototype.componentDidMount.call(this),this.question&&(this.question.react=this),this.doAfterRender()},t.prototype.componentWillUnmount=function(){r.prototype.componentWillUnmount.call(this),this.question&&(this.question.react=null);var e=this.rootRef.current;e&&e.removeAttribute("data-rendered")},t.prototype.componentDidUpdate=function(e,n){r.prototype.componentDidUpdate.call(this,e,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&&e.getAttribute("data-rendered")!=="r"&&(e.setAttribute("data-rendered","r"),e.setAttribute("data-name",this.question.name),this.question.afterRender&&this.question.afterRender(e))}},t.prototype.canRender=function(){return r.prototype.canRender.call(this)&&!!this.question&&!!this.creator},t.prototype.renderQuestionContent=function(){var e=this.question,n={display:this.question.renderedIsExpanded?"":"none"},o=e.cssClasses,i=this.renderQuestion(),p=this.question.showErrorOnTop?this.renderErrors(o,"top"):null,f=this.question.showErrorOnBottom?this.renderErrors(o,"bottom"):null,v=e&&e.hasComment?this.renderComment(o):null,b=e.hasDescriptionUnderInput?this.renderDescription():null;return s.createElement("div",{className:e.cssContent||void 0,style:n,role:"presentation"},p,i,v,f,b)},t.prototype.renderElement=function(){var e=this.question,n=e.cssClasses,o=this.renderHeader(e),i=e.hasTitleOnLeftTop?o:null,p=e.hasTitleOnBottom?o:null,f=this.question.showErrorsAboveQuestion?this.renderErrors(n,""):null,v=this.question.showErrorsBelowQuestion?this.renderErrors(n,""):null,b=e.getRootStyle(),q=this.wrapQuestionContent(this.renderQuestionContent());return s.createElement(s.Fragment,null,s.createElement("div",{ref:this.rootRef,id:e.id,className:e.getRootCss(),style:b,role:e.ariaRole,"aria-required":this.question.ariaRequired,"aria-invalid":this.question.ariaInvalid,"aria-labelledby":e.ariaLabelledBy,"aria-describedby":e.ariaDescribedBy,"aria-expanded":e.ariaExpanded},f,i,q,p,v))},t.prototype.wrapElement=function(e){var n=this.question.survey,o=null;return n&&(o=y.wrapElement(n,e,this.question)),o??e},t.prototype.wrapQuestionContent=function(e){var n=this.question.survey,o=null;return n&&(o=y.wrapQuestionContent(n,e,this.question)),o??e},t.prototype.renderQuestion=function(){return t.renderQuestionBody(this.creator,this.question)},t.prototype.renderDescription=function(){return g.renderQuestionDescription(this.question)},t.prototype.renderComment=function(e){var n=g.renderLocString(this.question.locCommentText);return s.createElement("div",{className:this.question.getCommentAreaCss()},s.createElement("div",null,n),s.createElement(ke,{question:this.question,cssClasses:e,otherCss:e.other,isDisplayMode:this.question.isInputReadOnly}))},t.prototype.renderHeader=function(e){return s.createElement(it,{element:e})},t.prototype.renderErrors=function(e,n){return s.createElement(ye,{element:this.question,cssClasses:e,creator:this.creator,location:n,id:this.question.id+"_errors"})},t}(g);c.Instance.registerElement("question",function(r){return s.createElement(ce,r)});var ye=function(r){ve(t,r);function t(e){var n=r.call(this,e)||this;return n.state=n.getState(),n}return 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 e===void 0&&(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=[],n=0;n<this.element.errors.length;n++){var o="error"+n;e.push(this.creator.renderError(o,this.element.errors[n],this.cssClasses,this.element))}return s.createElement("div",{role:"alert","aria-live":"polite",className:this.element.cssError,id:this.id},e)},t}(w),at=function(r){ve(t,r);function t(e){return r.call(this,e)||this}return 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(){r.prototype.componentDidMount.call(this),this.doAfterRender()},t.prototype.componentDidUpdate=function(e,n){r.prototype.componentDidUpdate.call(this,e,n),this.doAfterRender()},t.prototype.doAfterRender=function(){},t.prototype.canRender=function(){return!!this.question},t.prototype.renderContent=function(){var e=this.renderQuestion();return s.createElement(s.Fragment,null,e)},t.prototype.getShowErrors=function(){return this.question.isVisible},t.prototype.renderQuestion=function(){return ce.renderQuestionBody(this.creator,this.question)},t}(w),ut=function(r){ve(t,r);function t(e){var n=r.call(this,e)||this;return n.cellRef=s.createRef(),n}return t.prototype.componentWillUnmount=function(){if(r.prototype.componentWillUnmount.call(this),this.question){var e=this.cellRef.current;e&&e.removeAttribute("data-rendered")}},t.prototype.renderCellContent=function(){return s.createElement("div",{className:this.props.cell.cellQuestionWrapperClassName},this.renderQuestion())},t.prototype.renderElement=function(){var e=this.getCellStyle(),n=this.props.cell,o=function(){n.focusIn()};return s.createElement("td",{ref:this.cellRef,className:this.itemCss,colSpan:n.colSpans,title:n.getTitle(),style:e,onFocus:o},this.wrapCell(this.props.cell,this.renderCellContent()))},t.prototype.getCellStyle=function(){return null},t.prototype.getHeaderText=function(){return""},t.prototype.wrapCell=function(e,n){if(!e)return n;var o=this.question.survey,i=null;return o&&(i=y.wrapMatrixCell(o,n,e,this.props.reason)),i??n},t}(at),lt=function(r){ve(t,r);function t(e){var n=r.call(this,e)||this;return n.state={changed:0},n.question&&n.registerCallback(n.question),n}return 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.getQuestionPropertiesToTrack=function(){return["errors"]},t.prototype.registerCallback=function(e){var n=this;e.registerFunctionOnPropertiesValueChanged(this.getQuestionPropertiesToTrack(),function(){n.update()},"__reactSubscription")},t.prototype.unRegisterCallback=function(e){e.unRegisterFunctionOnPropertiesValueChanged(this.getQuestionPropertiesToTrack(),"__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 s.createElement(ye,{element:this.question,creator:this.props.creator,cssClasses:this.question.cssClasses})},t}(s.Component),An=function(){var r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,o){n.__proto__=o}||function(n,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(n[i]=o[i])},r(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");r(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),ct=function(r){An(t,r);function t(e){return r.call(this,e)||this}return 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(),n=this.renderDescription(),o=this.renderRows(this.panelBase.cssClasses),i=s.createElement(ye,{element:this.panelBase,cssClasses:this.panelBase.cssClasses,creator:this.creator});return s.createElement("div",{ref:this.rootRef,className:this.page.cssRoot},e,n,i,o)},t.prototype.renderTitle=function(){return s.createElement(Y,{element:this.page})},t.prototype.renderDescription=function(){if(!this.page._showDescription)return null;var e=g.renderLocString(this.page.locDescription);return s.createElement("div",{className:this.panelBase.cssClasses.page.description},e)},t}(_),Zn=function(){var r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,o){n.__proto__=o}||function(n,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(n[i]=o[i])},r(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");r(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),je=function(r){Zn(t,r);function t(e){var n=r.call(this,e)||this;return n.state={changed:0},n.rootRef=u.a.createRef(),n}return 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=g.renderLocString(this.survey.locDescription);return u.a.createElement("div",{className:this.css.headerText,style:{maxWidth:this.survey.titleMaxWidth}},u.a.createElement(Y,{element:this.survey}),this.survey.renderedHasDescription?u.a.createElement("div",{className:this.css.description},e):null)},t.prototype.renderLogoImage=function(e){if(!e)return null;var n=this.survey.getElementWrapperComponentName(this.survey,"logo-image"),o=this.survey.getElementWrapperComponentData(this.survey,"logo-image");return c.Instance.createElement(n,{data:o})},t.prototype.render=function(){return this.survey.renderedHasHeader?u.a.createElement("div",{className:this.css.header,ref:this.rootRef},this.renderLogoImage(this.survey.isLogoBefore),this.renderTitle(),this.renderLogoImage(this.survey.isLogoAfter),u.a.createElement("div",{className:this.css.headerClose})):null},t}(u.a.Component);c.Instance.registerElement("survey-header",function(r){return u.a.createElement(je,r)});var Qn=function(){var r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,o){n.__proto__=o}||function(n,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(n[i]=o[i])},r(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");r(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),Fn=function(r){Qn(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.render=function(){return u.a.createElement("div",{className:"sv-brand-info"},u.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"},u.a.createElement("img",{src:"https://surveyjs.io/Content/Images/poweredby.svg"})),u.a.createElement("div",{className:"sv-brand-info__text"},"Try and see how easy it is to ",u.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")),u.a.createElement("div",{className:"sv-brand-info__terms"},u.a.createElement("a",{href:"https://surveyjs.io/TermsOfUse"},"Terms of Use & Privacy Statement")))},t}(u.a.Component),Wn=function(){var r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,o){n.__proto__=o}||function(n,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(n[i]=o[i])},r(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");r(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),Be=function(r){Wn(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return 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 u.a.createElement("div",{className:this.notifier.css,style:e,role:"alert","aria-live":"polite"},u.a.createElement("span",null,this.notifier.message),u.a.createElement(D,{model:this.notifier.actionBar}))},t}(g);c.Instance.registerElement("sv-notifier",function(r){return u.a.createElement(Be,r)});var Un=function(){var r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,o){n.__proto__=o}||function(n,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(n[i]=o[i])},r(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");r(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),z=function(r){Un(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.render=function(){var e=this,n=this.props.survey.getContainerContent(this.props.container),o=this.props.needRenderWrapper!==!1;return n.length==0?null:o?u.a.createElement("div",{className:"sv-components-column sv-components-container-"+this.props.container},n.map(function(i){return c.Instance.createElement(i.component,{survey:e.props.survey,model:i.data,container:e.props.container,key:i.id})})):u.a.createElement(u.a.Fragment,null,n.map(function(i){return c.Instance.createElement(i.component,{survey:e.props.survey,model:i.data,container:e.props.container,key:i.id})}))},t}(u.a.Component);c.Instance.registerElement("sv-components-container",function(r){return u.a.createElement(z,r)});var zn=function(){var r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,o){n.__proto__=o}||function(n,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(n[i]=o[i])},r(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");r(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),pt=function(r){zn(t,r);function t(e){var n=r.call(this,e)||this;return n.onIconsChanged=function(){n.containerRef.current&&(n.containerRef.current.innerHTML=a.SvgRegistry.iconsRenderedHtml())},n.containerRef=u.a.createRef(),n}return t.prototype.componentDidMount=function(){this.onIconsChanged(),a.SvgRegistry.onIconsChanged.add(this.onIconsChanged)},t.prototype.componentWillUnmount=function(){a.SvgRegistry.onIconsChanged.remove(this.onIconsChanged)},t.prototype.render=function(){var e={display:"none"};return u.a.createElement("svg",{style:e,id:"sv-icon-holder-global-container",ref:this.containerRef})},t}(u.a.Component),Kn=d("react-dom"),$n=function(){var r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,o){n.__proto__=o}||function(n,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(n[i]=o[i])},r(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");r(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),dt=function(r){$n(t,r);function t(e){var n=r.call(this,e)||this;return n.isInitialized=!1,n.init=function(){n.isInitialized||(a.settings.showModal=function(o,i,p,f,v,b,q){q===void 0&&(q="popup");var j=Object(a.createDialogOptions)(o,i,p,f,void 0,void 0,v,b,q);return n.showDialog(j)},a.settings.showDialog=function(o,i){return n.showDialog(o,i)},n.isInitialized=!0)},n.clean=function(){n.isInitialized&&(a.settings.showModal=void 0,a.settings.showDialog=void 0,n.isInitialized=!1)},n.state={changed:0},n.descriptor={init:n.init,clean:n.clean},n}return t.addModalDescriptor=function(e){a.settings.showModal||e.init(),this.modalDescriptors.push(e)},t.removeModalDescriptor=function(e){e.clean(),this.modalDescriptors.splice(this.modalDescriptors.indexOf(e),1),!a.settings.showModal&&this.modalDescriptors[0]&&this.modalDescriptors[0].init()},t.prototype.renderElement=function(){return this.model?Object(Kn.createPortal)(u.a.createElement(U,{model:this.model}),this.model.container):null},t.prototype.showDialog=function(e,n){var o=this;this.model=Object(a.createPopupModalViewModel)(e,n);var i=function(p,f){f.isVisible||(o.model.dispose(),o.model=void 0,o.setState({changed:o.state.changed+1}))};return this.model.onVisibilityChanged.add(i),this.model.model.isVisible=!0,this.setState({changed:this.state.changed+1}),this.model},t.prototype.componentDidMount=function(){t.addModalDescriptor(this.descriptor)},t.prototype.componentWillUnmount=function(){this.model&&(this.model.dispose(),this.model=void 0),t.removeModalDescriptor(this.descriptor)},t.modalDescriptors=[],t}(g),ht=d("./build/survey-core/icons/iconsV1.js"),Jn=d("./build/survey-core/icons/iconsV2.js"),Gn=function(){var r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,o){n.__proto__=o}||function(n,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(n[i]=o[i])},r(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");r(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),He=function(){return He=Object.assign||function(r){for(var t,e=1,n=arguments.length;e<n;e++){t=arguments[e];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(r[o]=t[o])}return r},He.apply(this,arguments)};Object(a.addIconsToThemeSet)("v1",ht.icons),Object(a.addIconsToThemeSet)("v2",Jn.icons),a.SvgRegistry.registerIcons(ht.icons);var Te=function(r){Gn(t,r);function t(e){var n=r.call(this,e)||this;return n.previousJSON={},n.isSurveyUpdated=!1,n.createSurvey(e),n.updateSurvey(e,{}),n.rootRef=s.createRef(),n.rootNodeId=e.id||null,n.rootNodeClassName=e.className||"",n}return Object.defineProperty(t,"cssType",{get:function(){return a.surveyCss.currentType},set:function(e){a.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(),this.setSurveyEvents()}},t.prototype.shouldComponentUpdate=function(e,n){return r.prototype.shouldComponentUpdate.call(this,e,n)?(this.isModelJSONChanged(e)&&(this.destroySurvey(),this.createSurvey(e),this.updateSurvey(e,{}),this.isSurveyUpdated=!0),!0):!1},t.prototype.componentDidUpdate=function(e,n){r.prototype.componentDidUpdate.call(this,e,n),this.updateSurvey(this.props,e),this.isSurveyUpdated&&(this.onSurveyUpdated(),this.isSurveyUpdated=!1)},t.prototype.componentDidMount=function(){r.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(){r.prototype.componentWillUnmount.call(this),this.destroySurvey()},t.prototype.doRender=function(){var e;this.survey.state=="completed"?e=this.renderCompleted():this.survey.state=="completedbefore"?e=this.renderCompletedBefore():this.survey.state=="loading"?e=this.renderLoading():this.survey.state=="empty"?e=this.renderEmptySurvey():e=this.renderSurvey();var n=this.survey.backgroundImage?s.createElement("div",{className:this.css.rootBackgroundImage,style:this.survey.backgroundImageStyle}):null,o=this.survey.headerView==="basic"?s.createElement(je,{survey:this.survey}):null,i=function(b){b.preventDefault()},p=s.createElement("div",{className:"sv_custom_header"});this.survey.hasLogo&&(p=null);var f=this.survey.getRootCss(),v=this.rootNodeClassName?this.rootNodeClassName+" "+f:f;return s.createElement("div",{id:this.rootNodeId,ref:this.rootRef,className:v,style:this.survey.themeVariables,lang:this.survey.locale||"en",dir:this.survey.localeDir},this.survey.needRenderIcons?s.createElement(pt,null):null,s.createElement(dt,null),s.createElement("div",{className:this.survey.wrapperFormCss},n,s.createElement("form",{onSubmit:i},p,s.createElement("div",{className:this.css.container},o,s.createElement(z,{survey:this.survey,container:"header",needRenderWrapper:!1}),e,s.createElement(z,{survey:this.survey,container:"footer",needRenderWrapper:!1}))),s.createElement(Be,{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 s.createElement(s.Fragment,null,s.createElement("div",{dangerouslySetInnerHTML:e,className:this.survey.completedCss}),s.createElement(z,{survey:this.survey,container:"completePage",needRenderWrapper:!1}))},t.prototype.renderCompletedBefore=function(){var e={__html:this.survey.processedCompletedBeforeHtml};return s.createElement("div",{dangerouslySetInnerHTML:e,className:this.survey.completedBeforeCss})},t.prototype.renderLoading=function(){var e={__html:this.survey.processedLoadingHtml};return s.createElement("div",{dangerouslySetInnerHTML:e,className:this.survey.loadingBodyCss})},t.prototype.renderSurvey=function(){var e=this.survey.activePage?this.renderPage(this.survey.activePage):null;this.survey.isShowStartingPage;var n=this.survey.activePage?this.survey.activePage.id:"",o=this.survey.bodyCss,i={};return this.survey.renderedWidth&&(i.maxWidth=this.survey.renderedWidth),s.createElement("div",{className:this.survey.bodyContainerCss},s.createElement(z,{survey:this.survey,container:"left"}),s.createElement("div",{className:"sv-components-column sv-components-column--expandable"},s.createElement(z,{survey:this.survey,container:"center"}),s.createElement("div",{id:n,className:o,style:i},s.createElement(z,{survey:this.survey,container:"contentTop"}),e,s.createElement(z,{survey:this.survey,container:"contentBottom"}),this.survey.showBrandInfo?s.createElement(Fn,null):null)),s.createElement(z,{survey:this.survey,container:"right"}))},t.prototype.renderPage=function(e){return s.createElement(ct,{survey:this.survey,page:e,css:this.css,creator:this})},t.prototype.renderEmptySurvey=function(){return s.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 a.SurveyModel(e.json)):this.survey=new a.SurveyModel,e.css&&(this.survey.css=this.css)},t.prototype.isModelJSONChanged=function(e){return e.model?this.survey!==e.model:e.json?!a.Helpers.isTwoValueEquals(e.json,this.previousJSON):!1},t.prototype.updateSurvey=function(e,n){if(e){n=n||{};for(var o in e)if(!(o=="model"||o=="children"||o=="json")){if(o=="css"){this.survey.mergeValues(e.css,this.survey.getCss()),this.survey.updateNavigationCss(),this.survey.updateElementCss();continue}e[o]!==n[o]&&(o.indexOf("on")==0&&this.survey[o]&&this.survey[o].add?(n[o]&&this.survey[o].remove(n[o]),this.survey[o].add(e[o])):this.survey[o]=e[o])}}},t.prototype.setSurveyEvents=function(){var e=this;this.survey.renderCallback=function(){var n=e.state&&e.state.modelChanged?e.state.modelChanged:0;e.setState({modelChanged:n+1})},this.survey.onPartialSend.add(function(n){e.state&&e.setState(e.state)})},t.prototype.createQuestionElement=function(e){return k.Instance.createQuestion(e.isDefaultRendering()?e.getTemplate():e.getComponentName(),{question:e,isDisplayMode:e.isInputReadOnly,creator:this})},t.prototype.renderError=function(e,n,o,i){return c.Instance.createElement(this.survey.questionErrorComponent,{key:e,error:n,cssClasses:o,element:i})},t.prototype.questionTitleLocation=function(){return this.survey.questionTitleLocation},t.prototype.questionErrorLocation=function(){return this.survey.questionErrorLocation},t}(g);c.Instance.registerElement("survey",function(r){return s.createElement(Te,r)});function Se(r,t,e){return e===void 0&&(e={processEsc:!0,disableTabStop:!1}),t&&t.disableTabStop||e&&e.disableTabStop?s.cloneElement(r,{tabIndex:-1}):(e=He({},e),s.cloneElement(r,{tabIndex:0,onKeyUp:function(n){return n.preventDefault(),n.stopPropagation(),Object(a.doKey2ClickUp)(n,e),!1},onKeyDown:function(n){return Object(a.doKey2ClickDown)(n,e)},onBlur:function(n){return Object(a.doKey2ClickBlur)(n)}}))}var Yn=function(){var r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,o){n.__proto__=o}||function(n,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(n[i]=o[i])},r(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");r(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),Oe=function(r){Yn(t,r);function t(e){var n=r.call(this,e)||this;return n.updateStateFunction=null,n.state={update:0},n}return 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}(s.Component),Xn=function(){var r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,o){n.__proto__=o}||function(n,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(n[i]=o[i])},r(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");r(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),ft=function(r){Xn(t,r);function t(e){var n=r.call(this,e)||this;return n.circleLength=440,n}return 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=s.createElement("div",{className:this.timerModel.survey.getCss().timerRoot},this.timerModel.text);if(this.timerModel.showTimerAsClock){var n={strokeDasharray:this.circleLength,strokeDashoffset:this.progress},o=this.timerModel.showProgress?s.createElement(M,{className:this.timerModel.getProgressCss(),style:n,iconName:"icon-timercircle",size:"auto"}):null;e=s.createElement("div",{className:this.timerModel.rootCss},o,s.createElement("div",{className:this.timerModel.textContainerCss},s.createElement("span",{className:this.timerModel.majorTextCss},this.timerModel.clockMajorText),this.timerModel.clockMinorText?s.createElement("span",{className:this.timerModel.minorTextCss},this.timerModel.clockMinorText):null))}return e},t}(w);c.Instance.registerElement("sv-timerpanel",function(r){return s.createElement(ft,r)});var er=function(){var r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,o){n.__proto__=o}||function(n,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(n[i]=o[i])},r(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");r(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),pe=function(r){er(t,r);function t(e){var n=r.call(this,e)||this;return n.hasBeenExpanded=!1,n}return Object.defineProperty(t.prototype,"panel",{get:function(){return this.panelBase},enumerable:!1,configurable:!0}),t.prototype.renderElement=function(){var e=this,n=this.renderHeader(),o=s.createElement(ye,{element:this.panelBase,cssClasses:this.panelBase.cssClasses,creator:this.creator}),i={paddingLeft:this.panel.innerPaddingLeft,display:this.panel.renderedIsExpanded?void 0:"none"},p=null;if(this.panel.renderedIsExpanded){var f=this.renderRows(this.panelBase.cssClasses),v=this.panelBase.cssClasses.panel.content;p=this.renderContent(i,f,v)}var b=function(){e.panelBase&&e.panelBase.focusIn()};return s.createElement("div",{ref:this.rootRef,className:this.panelBase.getContainerCss(),onFocus:b,id:this.panelBase.id},this.panel.showErrorsAbovePanel?o:null,n,this.panel.showErrorsAbovePanel?null:o,p)},t.prototype.renderHeader=function(){return!this.panel.hasTitle&&!this.panel.hasDescription?null:s.createElement(it,{element:this.panel})},t.prototype.wrapElement=function(e){var n=this.panel.survey,o=null;return n&&(o=y.wrapElement(n,e,this.panel)),o??e},t.prototype.renderContent=function(e,n,o){var i=this.renderBottom();return s.createElement("div",{style:e,className:o,id:this.panel.contentId},n,i)},t.prototype.renderTitle=function(){return this.panelBase.title?s.createElement(Y,{element:this.panelBase}):null},t.prototype.renderDescription=function(){if(!this.panelBase.description)return null;var e=g.renderLocString(this.panelBase.locDescription);return s.createElement("div",{className:this.panel.cssClasses.panel.description},e)},t.prototype.renderBottom=function(){var e=this.panel.getFooterToolbar();return e.hasActions?s.createElement(D,{model:e}):null},t.prototype.getIsVisible=function(){return this.panelBase.getIsContentVisible()},t}(_);c.Instance.registerElement("panel",function(r){return s.createElement(pe,r)});var tr=function(){var r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,o){n.__proto__=o}||function(n,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(n[i]=o[i])},r(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");r(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),mt=function(r){tr(t,r);function t(e){return r.call(this,e)||this}return Object.defineProperty(t.prototype,"flowPanel",{get:function(){return this.panel},enumerable:!1,configurable:!0}),t.prototype.componentDidMount=function(){r.prototype.componentDidMount.call(this),this.flowPanel&&(this.flowPanel.onCustomHtmlProducing=function(){return""},this.flowPanel.onGetHtmlForQuestion=this.renderQuestion)},t.prototype.componentWillUnmount=function(){r.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 n={__html:e};return s.createElement("div",{dangerouslySetInnerHTML:n})}var o=new DOMParser().parseFromString(e,"text/xml");return this.renderedIndex=0,this.renderParentNode(o)},t.prototype.renderNodes=function(e){for(var n=[],o=0;o<e.length;o++){var i=this.renderNode(e[o]);i&&n.push(i)}return n},t.prototype.getStyle=function(e){var n={};return e.toLowerCase()==="b"&&(n.fontWeight="bold"),e.toLowerCase()==="i"&&(n.fontStyle="italic"),e.toLowerCase()==="u"&&(n.textDecoration="underline"),n},t.prototype.renderParentNode=function(e){var n=e.nodeName.toLowerCase(),o=this.renderNodes(this.getChildDomNodes(e));return n==="div"?s.createElement("div",{key:this.getNodeIndex()},o):s.createElement("span",{key:this.getNodeIndex(),style:this.getStyle(n)},o)},t.prototype.renderNode=function(e){if(!this.hasTextChildNodesOnly(e))return this.renderParentNode(e);var n=e.nodeName.toLowerCase();if(n==="question"){var o=this.flowPanel.getQuestionByName(e.textContent);if(!o)return null;var i=s.createElement(ce,{key:o.name,element:o,creator:this.creator,css:this.css});return s.createElement("span",{key:this.getNodeIndex()},i)}return n==="div"?s.createElement("div",{key:this.getNodeIndex()},e.textContent):s.createElement("span",{key:this.getNodeIndex(),style:this.getStyle(n)},e.textContent)},t.prototype.getChildDomNodes=function(e){for(var n=[],o=0;o<e.childNodes.length;o++)n.push(e.childNodes[o]);return n},t.prototype.hasTextChildNodesOnly=function(e){for(var n=e.childNodes,o=0;o<n.length;o++)if(n[o].nodeName.toLowerCase()!=="#text")return!1;return!0},t.prototype.renderContent=function(e,n){return s.createElement("f-panel",{style:e},n)},t}(pe);c.Instance.registerElement("flowpanel",function(r){return s.createElement(mt,r)});var vt=function(){var r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,o){n.__proto__=o}||function(n,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(n[i]=o[i])},r(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");r(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),yt=function(r){vt(t,r);function t(e){return r.call(this,e)||this}return Object.defineProperty(t.prototype,"question",{get:function(){return this.questionBase},enumerable:!1,configurable:!0}),t.prototype.renderElement=function(){var e=this,n=this.question.cssClasses;return s.createElement("fieldset",{className:this.question.getSelectBaseRootCss(),ref:function(o){return e.setControl(o)},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},s.createElement("legend",{className:"sv-hidden"},this.question.locTitle.renderedHtml),this.getHeader(),this.question.hasColumns?this.getColumnedBody(n):this.getBody(n),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(n,o){return e.renderItem(n,!1,e.question.cssClasses)})},t.prototype.getFooter=function(){var e=this;if(this.question.hasFootItems)return this.question.footItems.map(function(n,o){return e.renderItem(n,!1,e.question.cssClasses)})},t.prototype.getColumnedBody=function(e){return s.createElement("div",{className:e.rootMultiColumn},this.getColumns(e))},t.prototype.getColumns=function(e){var n=this;return this.question.columns.map(function(o,i){var p=o.map(function(f,v){return n.renderItem(f,i===0&&v===0,e,""+i+v)});return s.createElement("div",{key:"column"+i+n.question.getItemsColumnKey(o),className:n.question.getColumnClass(),role:"presentation"},p)})},t.prototype.getBody=function(e){return this.question.blockedRow?s.createElement("div",{className:e.rootRow},this.getItems(e,this.question.dataChoices)):s.createElement(s.Fragment,null,this.getItems(e,this.question.bodyItems))},t.prototype.getItems=function(e,n){for(var o=[],i=0;i<n.length;i++){var p=n[i];""+p.value;var f=this.renderItem(p,i==0,e,""+i);f&&o.push(f)}return o},Object.defineProperty(t.prototype,"textStyle",{get:function(){return null},enumerable:!1,configurable:!0}),t.prototype.renderOther=function(){var e=this.question.cssClasses;return s.createElement("div",{className:this.question.getCommentAreaCss(!0)},s.createElement(qe,{question:this.question,otherCss:e.other,cssClasses:e,isDisplayMode:this.isDisplayMode}))},t.prototype.renderItem=function(e,n,o,i){var p=c.Instance.createElement(this.question.itemComponent,{key:e.value,question:this.question,cssClasses:o,isDisplayMode:this.isDisplayMode,item:e,textStyle:this.textStyle,index:i,isFirst:n}),f=this.question.survey,v=null;return f&&p&&(v=y.wrapItemValue(f,p,this.question,e)),v??p},t}(P),De=function(r){vt(t,r);function t(e){var n=r.call(this,e)||this;return n.handleOnChange=function(o){n.question.clickItemHandler(n.item,o.target.checked)},n.rootRef=s.createRef(),n}return 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 this.props.hideCaption===!0},enumerable:!1,configurable:!0}),t.prototype.componentDidUpdate=function(e,n){r.prototype.componentDidUpdate.call(this,e,n),e.item!==this.props.item&&!this.question.isDesignMode&&(this.props.item&&this.props.item.setRootElement(this.rootRef.current),e.item&&e.item.setRootElement(void 0))},t.prototype.shouldComponentUpdate=function(e,n){return r.prototype.shouldComponentUpdate.call(this,e,n)?!this.question.customWidget||!!this.question.customWidgetData.isNeedRender||!!this.question.customWidget.widgetJson.isDefaultRender||!!this.question.customWidget.widgetJson.render:!1},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,n){var o=this.question.getItemId(this.item),i=this.question.getItemClass(this.item),p=this.question.getLabelClass(this.item),f=this.hideCaption?null:s.createElement("span",{className:this.cssClasses.controlLabel},this.renderLocString(this.item.locText,this.textStyle));return s.createElement("div",{className:i,role:"presentation",ref:this.rootRef},s.createElement("label",{className:p},s.createElement("input",{className:this.cssClasses.itemControl,type:"checkbox",name:this.question.name+this.item.id,value:this.item.value,id:o,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?s.createElement("span",{className:this.cssClasses.materialDecorator},this.question.itemSvgIcon?s.createElement("svg",{className:this.cssClasses.itemDecorator},s.createElement("use",{xlinkHref:this.question.itemSvgIcon})):null):null,f),n)},t.prototype.componentDidMount=function(){r.prototype.componentDidMount.call(this),this.question.isDesignMode||this.item.setRootElement(this.rootRef.current)},t.prototype.componentWillUnmount=function(){r.prototype.componentWillUnmount.call(this),this.question.isDesignMode||this.item.setRootElement(void 0)},t}(w);c.Instance.registerElement("survey-checkbox-item",function(r){return s.createElement(De,r)}),k.Instance.registerQuestion("checkbox",function(r){return s.createElement(yt,r)});var Ve=function(){var r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,o){n.__proto__=o}||function(n,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(n[i]=o[i])},r(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");r(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),gt=function(r){Ve(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return Object.defineProperty(t.prototype,"question",{get:function(){return this.questionBase},enumerable:!1,configurable:!0}),t.prototype.renderElement=function(){var e=this;if(this.question.selectToRankEnabled){var n=!0;return s.createElement("div",{className:this.question.rootClass,ref:function(o){return e.setControl(o)}},s.createElement("div",{className:this.question.getContainerClasses("from"),"data-ranking":"from-container"},this.getItems(this.question.renderedUnRankingChoices,n),this.question.renderedUnRankingChoices.length===0?s.createElement("div",{className:this.question.cssClasses.containerPlaceholder}," ",this.renderLocString(this.question.locSelectToRankEmptyRankedAreaText)," "):null),s.createElement("div",{className:this.question.cssClasses.containersDivider}),s.createElement("div",{className:this.question.getContainerClasses("to"),"data-ranking":"to-container"},this.getItems(),this.question.renderedRankingChoices.length===0?s.createElement("div",{className:this.question.cssClasses.containerPlaceholder}," ",this.renderLocString(this.question.locSelectToRankEmptyUnrankedAreaText)," "):null))}else return s.createElement("div",{className:this.question.rootClass,ref:function(o){return e.setControl(o)}},this.getItems())},t.prototype.getItems=function(e,n){var o=this;e===void 0&&(e=this.question.renderedRankingChoices);for(var i=[],p=function(b){var q=e[b];i.push(f.renderItem(q,b,function(j){o.question.handleKeydown.call(o.question,j,q)},function(j){j.persist(),o.question.handlePointerDown.call(o.question,j,q,j.currentTarget)},function(j){j.persist(),o.question.handlePointerUp.call(o.question,j,q,j.currentTarget)},f.question.cssClasses,f.question.getItemClass(q),f.question,n))},f=this,v=0;v<e.length;v++)p(v);return i},t.prototype.renderItem=function(e,n,o,i,p,f,v,b,q){""+e.renderedId;var j=this.renderLocString(e.locText),X=n,V=this.question.getNumberByIndex(X),xe=this.question.getItemTabIndex(e),he=s.createElement(Ct,{key:e.value,text:j,index:X,indexText:V,itemTabIndex:xe,handleKeydown:o,handlePointerDown:i,handlePointerUp:p,cssClasses:f,itemClass:v,question:b,unrankedItem:q,item:e}),Rn=this.question.survey,Ie=null;return Rn&&(Ie=y.wrapItemValue(Rn,he,this.question,e)),Ie??he},t}(P),Ct=function(r){Ve(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return 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 s.createElement("svg",null,s.createElement("use",{xlinkHref:this.question.dashSvgIcon}))},t.prototype.renderElement=function(){var e=c.Instance.createElement(this.question.itemComponent,{item:this.item,cssClasses:this.cssClasses});return s.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},s.createElement("div",{tabIndex:-1,style:{outline:"none"}},s.createElement("div",{className:this.cssClasses.itemGhostNode}),s.createElement("div",{className:this.cssClasses.itemContent},s.createElement("div",{className:this.cssClasses.itemIconContainer},s.createElement("svg",{className:this.question.getIconHoverCss()},s.createElement("use",{xlinkHref:this.question.dragDropSvgIcon})),s.createElement("svg",{className:this.question.getIconFocusCss()},s.createElement("use",{xlinkHref:this.question.arrowsSvgIcon}))),s.createElement("div",{className:this.question.getItemIndexClasses(this.item)},!this.unrankedItem&&this.indexText?this.indexText:this.renderEmptyIcon()),e)))},t}(w),xt=function(r){Ve(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return 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 s.createElement("div",{className:this.cssClasses.controlLabel},g.renderLocString(this.item.locText))},t}(w);c.Instance.registerElement("sv-ranking-item",function(r){return s.createElement(xt,r)}),k.Instance.registerQuestion("ranking",function(r){return s.createElement(gt,r)});var wt=function(){var r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,o){n.__proto__=o}||function(n,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(n[i]=o[i])},r(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");r(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),_e=function(r){wt(t,r);function t(e){var n=r.call(this,e)||this;return n.handleOnMouseDown=n.handleOnMouseDown.bind(n),n}return 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}(g),Et=function(r){wt(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.render=function(){var e=this.renderLocString(this.item.locText);return u.a.createElement("label",{onMouseDown:this.handleOnMouseDown,className:this.question.getItemClassByText(this.item.itemValue,this.item.text)},u.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}),u.a.createElement("span",{className:this.question.cssClasses.itemText,"data-text":this.item.text},e))},t.prototype.componentDidMount=function(){r.prototype.componentDidMount.call(this)},t}(_e);c.Instance.registerElement("sv-rating-item",function(r){return u.a.createElement(Et,r)});var nr=function(){var r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,o){n.__proto__=o}||function(n,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(n[i]=o[i])},r(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");r(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),qt=function(r){nr(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.render=function(){var e=this;return u.a.createElement("label",{onMouseDown:this.handleOnMouseDown,className:this.question.getItemClass(this.item.itemValue),onMouseOver:function(n){return e.question.onItemMouseIn(e.item)},onMouseOut:function(n){return e.question.onItemMouseOut(e.item)}},u.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}),u.a.createElement(M,{className:"sv-star",size:"auto",iconName:this.question.itemStarIcon,title:this.item.text}),u.a.createElement(M,{className:"sv-star-2",size:"auto",iconName:this.question.itemStarIconAlt,title:this.item.text}))},t}(_e);c.Instance.registerElement("sv-rating-item-star",function(r){return u.a.createElement(qt,r)});var rr=function(){var r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,o){n.__proto__=o}||function(n,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(n[i]=o[i])},r(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");r(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),St=function(r){rr(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.render=function(){var e=this;return u.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(n){return e.question.onItemMouseIn(e.item)},onMouseOut:function(n){return e.question.onItemMouseOut(e.item)}},u.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}),u.a.createElement(M,{size:"auto",iconName:this.question.getItemSmileyIconName(this.item.itemValue),title:this.item.text}))},t}(_e);c.Instance.registerElement("sv-rating-item-smiley",function(r){return u.a.createElement(St,r)});var or=function(){var r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,o){n.__proto__=o}||function(n,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(n[i]=o[i])},r(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");r(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),Ot=function(r){or(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return 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,n=this.renderDescription(e);return u.a.createElement("div",{className:"sd-rating-dropdown-item"},u.a.createElement("span",{className:"sd-rating-dropdown-item_text"},e.title),n)},t.prototype.renderDescription=function(e){return e.description?u.a.createElement("div",{className:"sd-rating-dropdown-item_description"},this.renderLocString(e.description,void 0,"locString")):null},t}(g);c.Instance.registerElement("sv-rating-dropdown-item",function(r){return u.a.createElement(Ot,r)});var sr=function(){var r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,o){n.__proto__=o}||function(n,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(n[i]=o[i])},r(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");r(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),Ae=function(r){sr(t,r);function t(e){return r.call(this,e)||this}return 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(e,n){r.prototype.componentDidUpdate.call(this,e,n),this.updateDomElement()},t.prototype.componentDidMount=function(){r.prototype.componentDidMount.call(this),this.updateDomElement()},t.prototype.updateDomElement=function(){if(this.inputElement){var e=this.inputElement,n=this.model.inputStringRendered;a.Helpers.isTwoValueEquals(n,e.value,!1,!0,!1)||(e.value=this.model.inputStringRendered)}},t.prototype.onChange=function(e){var n=a.settings.environment.root;e.target===n.activeElement&&(this.model.inputStringRendered=e.target.value)},t.prototype.keyhandler=function(e){this.model.inputKeyHandler(e)},t.prototype.onBlur=function(e){this.question.onBlur(e)},t.prototype.onFocus=function(e){this.question.onFocus(e)},t.prototype.getStateElement=function(){return this.model},t.prototype.render=function(){var e=this;return s.createElement("div",{className:this.question.cssClasses.hint},this.model.showHintPrefix?s.createElement("div",{className:this.question.cssClasses.hintPrefix},s.createElement("span",null,this.model.hintStringPrefix)):null,s.createElement("div",{className:this.question.cssClasses.hintSuffixWrapper},this.model.showHintString?s.createElement("div",{className:this.question.cssClasses.hintSuffix},s.createElement("span",{style:{visibility:"hidden"},"data-bind":"text: model.filterString"},this.model.inputStringRendered),s.createElement("span",null,this.model.hintStringSuffix)):null,s.createElement("input",{type:"text",autoComplete:"off",id:this.question.getInputId(),inputMode:this.model.inputMode,ref:function(n){return e.inputElement=n},className:this.question.cssClasses.filterStringInput,disabled:this.question.isInputReadOnly,readOnly:this.model.filterReadOnly?!0:void 0,size:this.model.inputStringRendered?void 0:1,role:this.model.filterStringEnabled?this.question.ariaRole:void 0,"aria-expanded":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(n){e.keyhandler(n)},onChange:function(n){e.onChange(n)},onBlur:function(n){e.onBlur(n)},onFocus:function(n){e.onFocus(n)}})))},t}(g);k.Instance.registerQuestion("sv-tagbox-filter",function(r){return s.createElement(Ae,r)});var ir=function(){var r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,o){n.__proto__=o}||function(n,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(n[i]=o[i])},r(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");r(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),Lt=function(r){ir(t,r);function t(e){var n=r.call(this,e)||this;return n.state={changed:0},n.setupModel(),n}return t.prototype.componentDidUpdate=function(e,n){r.prototype.componentDidUpdate.call(this,e,n),this.setupModel()},t.prototype.componentDidMount=function(){r.prototype.componentDidMount.call(this),this.setupModel()},t.prototype.componentWillUnmount=function(){r.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 s.createElement("option",{value:this.item.value,disabled:!this.item.isEnabled},this.item.text)},t}(w),ar=function(){var r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,o){n.__proto__=o}||function(n,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(n[i]=o[i])},r(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");r(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),Le=function(r){ar(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.click=function(n){var o;(o=e.question.dropdownListModel)===null||o===void 0||o.onClick(n)},e.chevronPointerDown=function(n){var o;(o=e.question.dropdownListModel)===null||o===void 0||o.chevronPointerDown(n)},e.clear=function(n){var o;(o=e.question.dropdownListModel)===null||o===void 0||o.onClear(n)},e.keyhandler=function(n){var o;(o=e.question.dropdownListModel)===null||o===void 0||o.keyHandler(n)},e.blur=function(n){e.updateInputDomElement(),e.question.onBlur(n)},e.focus=function(n){e.question.onFocus(n)},e}return 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 s.createElement("div",null,this.question.readOnlyText)},t.prototype.renderSelect=function(e){var n=this,o,i,p=null;if(this.question.isReadOnly){var f=this.question.selectedItemLocText?this.renderLocString(this.question.selectedItemLocText):"";p=s.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(),ref:function(v){return n.setControl(v)}},f,this.renderReadOnlyElement())}else p=s.createElement(s.Fragment,null,this.renderInput(this.question.dropdownListModel),s.createElement(Q,{model:(i=(o=this.question)===null||o===void 0?void 0:o.dropdownListModel)===null||i===void 0?void 0:i.popupModel}));return s.createElement("div",{className:e.selectWrapper,onClick:this.click},p,this.createChevronButton())},t.prototype.renderValueElement=function(e){return this.question.showInputFieldComponent?c.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 n=this,o=this.renderValueElement(e),i=a.settings.environment.root,p=function(f){f.target===i.activeElement&&(e.inputStringRendered=f.target.value)};return s.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,onFocus:this.focus,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":this.question.ariaExpanded,"aria-controls":e.listElementId,"aria-activedescendant":e.ariaActivedescendant,ref:function(f){return n.setControl(f)}},e.showHintPrefix?s.createElement("div",{className:this.question.cssClasses.hintPrefix},s.createElement("span",null,e.hintStringPrefix)):null,s.createElement("div",{className:this.question.cssClasses.controlValue},e.showHintString?s.createElement("div",{className:this.question.cssClasses.hintSuffix},s.createElement("span",{style:{visibility:"hidden"},"data-bind":"text: model.filterString"},e.inputStringRendered),s.createElement("span",null,e.hintStringSuffix)):null,o,s.createElement("input",{type:"text",autoComplete:"off",id:this.question.getInputId(),ref:function(f){return n.inputElement=f},className:this.question.cssClasses.filterStringInput,role:e.filterStringEnabled?this.question.ariaRole:void 0,"aria-expanded":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?!0:void 0,tabIndex:e.noTabIndex?void 0:-1,disabled:this.question.isDisabledAttr,inputMode:e.inputMode,onChange:function(f){p(f)},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 s.createElement("div",{className:this.question.cssClasses.cleanButton,style:e,onClick:this.clear,"aria-hidden":"true"},s.createElement(M,{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?s.createElement("div",{className:this.question.cssClasses.chevronButton,"aria-hidden":"true",onPointerDown:this.chevronPointerDown},s.createElement(M,{className:this.question.cssClasses.chevronButtonSvg,iconName:this.question.cssClasses.chevronButtonIconId,size:"auto"})):null},t.prototype.renderOther=function(e){return s.createElement("div",{className:this.question.getCommentAreaCss(!0)},s.createElement(qe,{question:this.question,otherCss:e.other,cssClasses:e,isDisplayMode:this.isDisplayMode,isOther:!0}))},t.prototype.componentDidUpdate=function(e,n){r.prototype.componentDidUpdate.call(this,e,n),this.updateInputDomElement()},t.prototype.componentDidMount=function(){r.prototype.componentDidMount.call(this),this.updateInputDomElement()},t.prototype.componentWillUnmount=function(){r.prototype.componentWillUnmount.call(this),this.question.dropdownListModel&&(this.question.dropdownListModel.focused=!1)},t.prototype.updateInputDomElement=function(){if(this.inputElement){var e=this.inputElement,n=this.question.dropdownListModel.inputStringRendered;a.Helpers.isTwoValueEquals(n,e.value,!1,!0,!1)||(e.value=this.question.dropdownListModel.inputStringRendered)}},t}(T),ur=function(){var r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,o){n.__proto__=o}||function(n,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(n[i]=o[i])},r(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");r(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),Ze=function(r){ur(t,r);function t(e){return r.call(this,e)||this}return t.prototype.renderElement=function(){var e=this.question.cssClasses,n=this.question.isOtherSelected?this.renderOther(e):null,o=this.renderSelect(e);return s.createElement("div",{className:this.question.renderCssRoot},o,n)},t}(Le);k.Instance.registerQuestion("dropdown",function(r){return s.createElement(Ze,r)});var lr=function(){var r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,o){n.__proto__=o}||function(n,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(n[i]=o[i])},r(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");r(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),Mt=function(r){lr(t,r);function t(e){return r.call(this,e)||this}return 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,n=this.renderLocString(this.item.locText),o=function(i){e.question.dropdownListModel.deselectItem(e.item.value),i.stopPropagation()};return s.createElement("div",{className:"sv-tagbox__item"},s.createElement("div",{className:"sv-tagbox__item-text"},n),s.createElement("div",{className:this.question.cssClasses.cleanItemButton,onClick:o},s.createElement(M,{className:this.question.cssClasses.cleanItemButtonSvg,iconName:this.question.cssClasses.cleanItemButtonIconId,size:"auto"})))},t}(w),cr=function(){var r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,o){n.__proto__=o}||function(n,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(n[i]=o[i])},r(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");r(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),It=function(r){cr(t,r);function t(e){return r.call(this,e)||this}return t.prototype.renderItem=function(e,n){var o=s.createElement(Mt,{key:e,question:this.question,item:n});return o},t.prototype.renderInput=function(e){var n=this,o=e,i=this.question.selectedChoices.map(function(p,f){return n.renderItem("item"+f,p)});return s.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":this.question.ariaExpanded,"aria-controls":e.listElementId,"aria-activedescendant":e.ariaActivedescendant,ref:function(p){return n.setControl(p)}},s.createElement("div",{className:this.question.cssClasses.controlValue},i,s.createElement(Ae,{model:o,question:this.question})),this.createClearButton())},t.prototype.renderElement=function(){var e=this.question.cssClasses,n=this.question.isOtherSelected?this.renderOther(e):null,o=this.renderSelect(e);return s.createElement("div",{className:this.question.renderCssRoot},o,n)},t.prototype.renderReadOnlyElement=function(){return this.question.locReadOnlyText?this.renderLocString(this.question.locReadOnlyText):null},t}(Le);k.Instance.registerQuestion("tagbox",function(r){return s.createElement(It,r)});var pr=function(){var r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,o){n.__proto__=o}||function(n,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(n[i]=o[i])},r(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");r(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),bt=function(r){pr(t,r);function t(e){return r.call(this,e)||this}return t.prototype.renderSelect=function(e){var n=this,o=function(f){n.question.onClick(f)},i=function(f){n.question.onKeyUp(f)},p=this.isDisplayMode?s.createElement("div",{id:this.question.inputId,className:this.question.getControlClass(),disabled:!0},this.question.readOnlyText):s.createElement("select",{id:this.question.inputId,className:this.question.getControlClass(),ref:function(f){return n.setControl(f)},autoComplete:this.question.autocomplete,onChange:this.updateValueOnEvent,onInput:this.updateValueOnEvent,onClick:o,onKeyUp:i,"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?s.createElement("option",{value:""},this.question.placeholder):null,this.question.visibleChoices.map(function(f,v){return s.createElement(Lt,{key:"item"+v,item:f})}));return s.createElement("div",{className:e.selectWrapper},p,this.createChevronButton())},t}(Ze);k.Instance.registerQuestion("sv-dropdown-select",function(r){return s.createElement(bt,r)}),a.RendererFactory.Instance.registerRenderer("dropdown","select","sv-dropdown-select");var Qe=function(){var r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,o){n.__proto__=o}||function(n,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(n[i]=o[i])},r(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");r(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),Rt=function(r){Qe(t,r);function t(e){var n=r.call(this,e)||this;return n.state={rowsChanged:0},n}return Object.defineProperty(t.prototype,"question",{get:function(){return this.questionBase},enumerable:!1,configurable:!0}),t.prototype.componentDidMount=function(){if(r.prototype.componentDidMount.call(this),this.question){var e=this;this.question.visibleRowsChangedCallback=function(){e.setState({rowsChanged:e.state.rowsChanged+1})}}},t.prototype.componentWillUnmount=function(){r.prototype.componentWillUnmount.call(this),this.question&&(this.question.visibleRowsChangedCallback=null)},t.prototype.renderElement=function(){for(var e=this,n=this.question.cssClasses,o=this.question.hasRows?s.createElement("td",null):null,i=[],p=0;p<this.question.visibleColumns.length;p++){var f=this.question.visibleColumns[p],v="column"+p,b=this.renderLocString(f.locText),q={};this.question.columnMinWidth&&(q.minWidth=this.question.columnMinWidth,q.width=this.question.columnMinWidth),i.push(s.createElement("th",{className:this.question.cssClasses.headerCell,style:q,key:v},this.wrapCell({column:f},b,"column-header")))}for(var j=[],X=this.question.visibleRows,p=0;p<X.length;p++){var V=X[p],v="row-"+V.name+"-"+p;j.push(s.createElement(Pt,{key:v,question:this.question,cssClasses:n,row:V,isFirst:p==0}))}var xe=this.question.showHeader?s.createElement("thead",null,s.createElement("tr",null,o,i)):null;return s.createElement("div",{className:n.tableWrapper,ref:function(he){return e.setControl(he)}},s.createElement("fieldset",null,s.createElement("legend",{className:"sv-hidden"},this.question.locTitle.renderedHtml),s.createElement("table",{className:this.question.getTableCss()},xe,s.createElement("tbody",null,j))))},t}(P),Pt=function(r){Qe(t,r);function t(e){return r.call(this,e)||this}return t.prototype.getStateElement=function(){return this.row?this.row.item:r.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,n,o){if(!o)return n;var i=this.question.survey,p=null;return i&&(p=y.wrapMatrixCell(i,n,e,o)),p??n},t.prototype.canRender=function(){return!!this.row},t.prototype.renderElement=function(){var e=null;if(this.question.hasRows){var n=this.renderLocString(this.row.locText),o={};this.question.rowTitleWidth&&(o.minWidth=this.question.rowTitleWidth,o.width=this.question.rowTitleWidth),e=s.createElement("td",{style:o,className:this.row.rowTextClasses},this.wrapCell({row:this.row},n,"row-header"))}var i=this.generateTds();return s.createElement("tr",{className:this.row.rowClasses||void 0},e,i)},t.prototype.generateTds=function(){for(var e=this,n=[],o=this.row,i=this.question.cellComponent,p=function(){var b=null,q=f.question.visibleColumns[v],j="value"+v,X=f.question.getItemClass(o,q);if(f.question.hasCellText){var V=function(he){return function(){return e.cellClick(o,he)}};b=s.createElement("td",{key:j,className:X,onClick:V?V(q):function(){}},f.renderLocString(f.question.getCellDisplayLocText(o.name,q)))}else{var xe=c.Instance.createElement(i,{question:f.question,row:f.row,column:q,columnIndex:v,cssClasses:f.cssClasses,cellChanged:function(){e.cellClick(e.row,q)}});b=s.createElement("td",{key:j,"data-responsive-title":q.locText.renderedHtml,className:f.question.cssClasses.cell},xe)}n.push(b)},f=this,v=0;v<this.question.visibleColumns.length;v++)p();return n},t.prototype.cellClick=function(e,n){e.value=n.value,this.setState({value:this.row.value})},t}(w),Nt=function(r){Qe(t,r);function t(e){var n=r.call(this,e)||this;return n.handleOnMouseDown=n.handleOnMouseDown.bind(n),n.handleOnChange=n.handleOnChange.bind(n),n}return 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,n=this.question.inputId+"_"+this.row.name+"_"+this.columnIndex,o=this.question.getItemClass(this.row,this.column),i=this.question.isMobile?s.createElement("span",{className:this.question.cssClasses.cellResponsiveTitle},this.renderLocString(this.column.locText)):void 0;return s.createElement("label",{onMouseDown:this.handleOnMouseDown,className:o},this.renderInput(n,e),s.createElement("span",{className:this.question.cssClasses.materialDecorator},this.question.itemSvgIcon?s.createElement("svg",{className:this.cssClasses.itemDecorator},s.createElement("use",{xlinkHref:this.question.itemSvgIcon})):null),i)},t.prototype.renderInput=function(e,n){return s.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:n,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}(w);c.Instance.registerElement("survey-matrix-cell",function(r){return s.createElement(Nt,r)}),k.Instance.registerQuestion("matrix",function(r){return s.createElement(Rt,r)});var dr=function(){var r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,o){n.__proto__=o}||function(n,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(n[i]=o[i])},r(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");r(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),kt=function(r){dr(t,r);function t(e){return r.call(this,e)||this}return 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,n){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 r.prototype.canRender.call(this)&&!!this.question.html},t.prototype.renderElement=function(){var e={__html:this.question.locHtml.renderedHtml};return s.createElement("div",{className:this.question.renderCssRoot,dangerouslySetInnerHTML:e})},t}(P);k.Instance.registerQuestion("html",function(r){return s.createElement(kt,r)});var hr=function(){var r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,o){n.__proto__=o}||function(n,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(n[i]=o[i])},r(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");r(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),Fe=function(r){hr(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.render=function(){return s.createElement("div",{className:"sd-loading-indicator"},s.createElement(M,{iconName:"icon-loading",size:"auto"}))},t}(s.Component),fr=function(){var r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,o){n.__proto__=o}||function(n,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(n[i]=o[i])},r(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");r(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),We=function(r){fr(t,r);function t(e){return r.call(this,e)||this}return 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 Se(u.a.createElement("label",{tabIndex:0,className:this.question.getChooseFileCss(),htmlFor:this.question.inputId,"aria-label":this.question.chooseButtonText,onClick:function(n){return e.question.chooseFile(n.nativeEvent)}},this.question.cssClasses.chooseFileIconId?u.a.createElement(M,{title:this.question.chooseButtonText,iconName:this.question.cssClasses.chooseFileIconId,size:"auto"}):null,u.a.createElement("span",null,this.question.chooseButtonText)))},t}(w);c.Instance.registerElement("sv-file-choose-btn",function(r){return u.a.createElement(We,r)});var mr=function(){var r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,o){n.__proto__=o}||function(n,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(n[i]=o[i])},r(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");r(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),jt=function(r){mr(t,r);function t(e){return r.call(this,e)||this}return Object.defineProperty(t.prototype,"question",{get:function(){return this.questionBase},enumerable:!1,configurable:!0}),t.prototype.renderElement=function(){var e=this,n=this.question.allowShowPreview?this.renderPreview():null,o=this.question.showLoadingIndicator?this.renderLoadingIndicator():null,i=this.question.isPlayingVideo?this.renderVideo():null,p=this.question.showFileDecorator?this.renderFileDecorator():null,f=this.question.showRemoveButton?this.renderClearButton(this.question.cssClasses.removeButton):null,v=this.question.showRemoveButtonBottom?this.renderClearButton(this.question.cssClasses.removeButtonBottom):null,b=this.question.fileNavigatorVisible?s.createElement(D,{model:this.question.fileNavigator}):null,q;return this.question.isReadOnlyAttr?q=s.createElement("input",{readOnly:!0,type:"file",className:this.isDisplayMode?this.question.getReadOnlyFileCss():this.question.cssClasses.fileInput,id:this.question.inputId,ref:function(j){return e.setControl(j)},style:this.isDisplayMode?{color:"transparent"}:{},multiple:this.question.allowMultiple,placeholder:this.question.title,accept:this.question.acceptedTypes}):this.question.isDisabledAttr?q=s.createElement("input",{disabled:!0,type:"file",className:this.isDisplayMode?this.question.getReadOnlyFileCss():this.question.cssClasses.fileInput,id:this.question.inputId,ref:function(j){return e.setControl(j)},style:this.isDisplayMode?{color:"transparent"}:{},multiple:this.question.allowMultiple,placeholder:this.question.title,accept:this.question.acceptedTypes}):this.question.hasFileUI?q=s.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(j){return e.setControl(j)},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}):q=null,s.createElement("div",{className:this.question.fileRootCss,ref:function(j){return e.setContent(j)}},q,s.createElement("div",{className:this.question.cssClasses.dragArea,onDrop:this.question.onDrop,onDragOver:this.question.onDragOver,onDragLeave:this.question.onDragLeave,onDragEnter:this.question.onDragEnter},p,o,i,f,n,v,b))},t.prototype.renderFileDecorator=function(){var e=this.question.showChooseButton?this.renderChooseButton():null,n=this.question.actionsContainerVisible?s.createElement(D,{model:this.question.actionsContainer}):null,o=this.question.isEmpty()?s.createElement("span",{className:this.question.cssClasses.noFileChosen},this.question.noFileChosenCaption):null;return s.createElement("div",{className:this.question.getFileDecoratorCss()},s.createElement("span",{className:this.question.cssClasses.dragAreaPlaceholder},this.renderLocString(this.question.locRenderedPlaceholder)),s.createElement("div",{className:this.question.cssClasses.wrapper},e,n,o))},t.prototype.renderChooseButton=function(){return s.createElement(We,{data:{question:this.question}})},t.prototype.renderClearButton=function(e){return this.question.isUploading?null:s.createElement("button",{type:"button",onClick:this.question.doClean,className:e},s.createElement("span",null,this.question.clearButtonCaption),this.question.cssClasses.removeButtonIconId?s.createElement(M,{iconName:this.question.cssClasses.removeButtonIconId,size:"auto",title:this.question.clearButtonCaption}):null)},t.prototype.renderPreview=function(){return c.Instance.createElement("sv-file-preview",{question:this.question})},t.prototype.renderLoadingIndicator=function(){return s.createElement("div",{className:this.question.cssClasses.loadingIndicator},s.createElement(Fe,null))},t.prototype.renderVideo=function(){return s.createElement("div",{className:this.question.cssClasses.videoContainer},s.createElement($,{item:this.question.changeCameraAction}),s.createElement($,{item:this.question.closeCameraAction}),s.createElement("video",{autoPlay:!0,playsInline:!0,id:this.question.videoId,className:this.question.cssClasses.video}),s.createElement($,{item:this.question.takePictureAction}))},t}(P);k.Instance.registerQuestion("file",function(r){return s.createElement(jt,r)});var vr=function(){var r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,o){n.__proto__=o}||function(n,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(n[i]=o[i])},r(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");r(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),Bt=function(r){vr(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return 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.renderFileSign=function(e,n){var o=this;return!e||!n.name?null:u.a.createElement("div",{className:e},u.a.createElement("a",{href:n.content,onClick:function(i){o.question.doDownloadFile(i,n)},title:n.name,download:n.name,style:{width:this.question.imageWidth}},n.name))},t.prototype.renderElement=function(){var e=this,n=this.item;return u.a.createElement("span",{className:this.question.cssClasses.previewItem,onClick:function(o){return e.question.doDownloadFileFromContainer(o)}},this.renderFileSign(this.question.cssClasses.fileSign,n),u.a.createElement("div",{className:this.question.getImageWrapperCss(n)},this.question.canPreviewImage(n)?u.a.createElement("img",{src:n.content,style:{height:this.question.imageHeight,width:this.question.imageWidth},alt:"File preview"}):this.question.cssClasses.defaultImage?u.a.createElement(M,{iconName:this.question.cssClasses.defaultImageIconId,size:"auto",className:this.question.cssClasses.defaultImage}):null,n.name&&!this.question.isReadOnly?u.a.createElement("div",{className:this.question.getRemoveButtonCss(),onClick:function(o){return e.question.doRemoveFile(n,o)}},u.a.createElement("span",{className:this.question.cssClasses.removeFile},this.question.removeFileCaption),this.question.cssClasses.removeFileSvgIconId?u.a.createElement(M,{title:this.question.removeFileCaption,iconName:this.question.cssClasses.removeFileSvgIconId,size:"auto",className:this.question.cssClasses.removeFileSvg}):null):null),this.renderFileSign(this.question.cssClasses.fileSignBottom,n))},t.prototype.canRender=function(){return this.question.showPreviewContainer},t}(g),yr=function(){var r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,o){n.__proto__=o}||function(n,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(n[i]=o[i])},r(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");r(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),gr=function(r){yr(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return Object.defineProperty(t.prototype,"question",{get:function(){return this.props.question},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"page",{get:function(){return this.props.page},enumerable:!1,configurable:!0}),t.prototype.renderElement=function(){var e=this,n=this.page.items.map(function(o,i){return u.a.createElement(Bt,{item:o,question:e.question,key:i})});return u.a.createElement("div",{className:this.page.css,id:this.page.id},n)},t}(g),Cr=function(){var r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,o){n.__proto__=o}||function(n,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(n[i]=o[i])},r(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");r(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),Ht=function(r){Cr(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return Object.defineProperty(t.prototype,"question",{get:function(){return this.props.question},enumerable:!1,configurable:!0}),t.prototype.renderFileSign=function(e,n){var o=this;return!e||!n.name?null:u.a.createElement("div",{className:e},u.a.createElement("a",{href:n.content,onClick:function(i){o.question.doDownloadFile(i,n)},title:n.name,download:n.name,style:{width:this.question.imageWidth}},n.name))},t.prototype.renderElement=function(){var e=this,n=this.question.supportFileNavigator?this.question.renderedPages.map(function(o,i){return u.a.createElement(gr,{page:o,question:e.question,key:o.id})}):this.question.previewValue.map(function(o,i){return u.a.createElement(Bt,{item:o,question:e.question,key:i})});return u.a.createElement("div",{className:this.question.cssClasses.fileList||void 0},n)},t.prototype.canRender=function(){return this.question.showPreviewContainer},t}(g);c.Instance.registerElement("sv-file-preview",function(r){return u.a.createElement(Ht,r)});var Ue=function(){var r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,o){n.__proto__=o}||function(n,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(n[i]=o[i])},r(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");r(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),Tt=function(r){Ue(t,r);function t(e){return r.call(this,e)||this}return Object.defineProperty(t.prototype,"question",{get:function(){return this.questionBase},enumerable:!1,configurable:!0}),t.prototype.renderElement=function(){for(var e=this.question.cssClasses,n=this.question.getRows(),o=[],i=0;i<n.length;i++)n[i].isVisible&&o.push(this.renderRow(i,n[i].cells,e));return s.createElement("table",{className:this.question.getQuestionRootCss()},s.createElement("tbody",null,o))},t.prototype.renderCell=function(e,n,o){var i,p=function(){e.item.focusIn()};return e.isErrorsCell?i=s.createElement(lt,{question:e.item.editor,creator:this.creator}):i=s.createElement(xr,{question:this.question,item:e.item,creator:this.creator,cssClasses:n}),s.createElement("td",{key:"item"+o,className:e.className,onFocus:p},i)},t.prototype.renderRow=function(e,n,o){for(var i="item"+e,p=[],f=0;f<n.length;f++){var v=n[f];p.push(this.renderCell(v,o,f))}return s.createElement("tr",{key:i,className:o.row},p)},t}(P),xr=function(r){Ue(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return 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,n=this.cssClasses,o={};return this.question.itemTitleWidth&&(o.minWidth=this.question.itemTitleWidth,o.width=this.question.itemTitleWidth),s.createElement("label",{className:this.question.getItemLabelCss(e)},s.createElement("span",{className:n.itemTitle,style:o},s.createElement(J,{element:e.editor,cssClasses:e.editor.cssClasses})),s.createElement(wr,{cssClasses:n,itemCss:this.question.getItemCss(),question:e.editor,creator:this.creator}))},t}(w),wr=function(r){Ue(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.renderElement=function(){return s.createElement("div",{className:this.itemCss},this.renderContent())},t}(at);k.Instance.registerQuestion("multipletext",function(r){return s.createElement(Tt,r)});var Dt=function(){var r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,o){n.__proto__=o}||function(n,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(n[i]=o[i])},r(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");r(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),Vt=function(r){Dt(t,r);function t(e){return r.call(this,e)||this}return Object.defineProperty(t.prototype,"question",{get:function(){return this.questionBase},enumerable:!1,configurable:!0}),t.prototype.renderElement=function(){var e=this,n=this.question.cssClasses,o=null;return this.question.showClearButtonInContent&&(o=s.createElement("div",null,s.createElement("input",{type:"button",className:this.question.cssClasses.clearButton,onClick:function(){return e.question.clearValue(!0)},value:this.question.clearButtonCaption}))),s.createElement("fieldset",{className:this.question.getSelectBaseRootCss(),ref:function(i){return e.setControl(i)},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(n):this.getBody(n),this.getFooter(),this.question.isOtherSelected?this.renderOther(n):null,o)},t.prototype.getFooter=function(){var e=this;if(this.question.hasFootItems)return this.question.footItems.map(function(n,o){return e.renderItem(n,!1,e.question.cssClasses)})},t.prototype.getColumnedBody=function(e){return s.createElement("div",{className:e.rootMultiColumn},this.getColumns(e))},t.prototype.getColumns=function(e){var n=this,o=this.getStateValue();return this.question.columns.map(function(i,p){var f=i.map(function(v,b){return n.renderItem(v,o,e,""+p+b)});return s.createElement("div",{key:"column"+p+n.question.getItemsColumnKey(i),className:n.question.getColumnClass(),role:"presentation"},f)})},t.prototype.getBody=function(e){return this.question.blockedRow?s.createElement("div",{className:e.rootRow},this.getItems(e,this.question.dataChoices)):s.createElement(s.Fragment,null,this.getItems(e,this.question.bodyItems))},t.prototype.getItems=function(e,n){for(var o=[],i=this.getStateValue(),p=0;p<n.length;p++){var f=n[p],v=this.renderItem(f,i,e,""+p);o.push(v)}return o},Object.defineProperty(t.prototype,"textStyle",{get:function(){return null},enumerable:!1,configurable:!0}),t.prototype.renderOther=function(e){return s.createElement("div",{className:this.question.getCommentAreaCss(!0)},s.createElement(qe,{question:this.question,otherCss:e.other,cssClasses:e,isDisplayMode:this.isDisplayMode}))},t.prototype.renderItem=function(e,n,o,i){var p=c.Instance.createElement(this.question.itemComponent,{key:e.value,question:this.question,cssClasses:o,isDisplayMode:this.isDisplayMode,item:e,textStyle:this.textStyle,index:i,isChecked:n===e.value}),f=this.question.survey,v=null;return f&&(v=y.wrapItemValue(f,p,this.question,e)),v??p},t.prototype.getStateValue=function(){return this.question.isEmpty()?"":this.question.renderedValue},t}(P),ze=function(r){Dt(t,r);function t(e){var n=r.call(this,e)||this;return n.rootRef=s.createRef(),n.handleOnChange=n.handleOnChange.bind(n),n.handleOnMouseDown=n.handleOnMouseDown.bind(n),n}return 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 this.props.hideCaption===!0},enumerable:!1,configurable:!0}),t.prototype.shouldComponentUpdate=function(e,n){return!r.prototype.shouldComponentUpdate.call(this,e,n)||!this.question?!1:!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.componentDidUpdate=function(e,n){r.prototype.componentDidUpdate.call(this,e,n),e.item!==this.props.item&&!this.question.isDesignMode&&(this.props.item&&this.props.item.setRootElement(this.rootRef.current),e.item&&e.item.setRootElement(void 0))},t.prototype.renderElement=function(){var e=this.question.getItemClass(this.item),n=this.question.getLabelClass(this.item),o=this.question.getControlLabelClass(this.item),i=this.hideCaption?null:s.createElement("span",{className:o},this.renderLocString(this.item.locText,this.textStyle));return s.createElement("div",{className:e,role:"presentation",ref:this.rootRef},s.createElement("label",{onMouseDown:this.handleOnMouseDown,className:n},s.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?s.createElement("span",{className:this.cssClasses.materialDecorator},this.question.itemSvgIcon?s.createElement("svg",{className:this.cssClasses.itemDecorator},s.createElement("use",{xlinkHref:this.question.itemSvgIcon})):null):null,i))},t.prototype.componentDidMount=function(){r.prototype.componentDidMount.call(this),this.question.isDesignMode||this.item.setRootElement(this.rootRef.current)},t.prototype.componentWillUnmount=function(){r.prototype.componentWillUnmount.call(this),this.question.isDesignMode||this.item.setRootElement(void 0)},t}(w);c.Instance.registerElement("survey-radiogroup-item",function(r){return s.createElement(ze,r)}),k.Instance.registerQuestion("radiogroup",function(r){return s.createElement(Vt,r)});var Er=function(){var r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,o){n.__proto__=o}||function(n,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(n[i]=o[i])},r(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");r(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),_t=function(r){Er(t,r);function t(e){return r.call(this,e)||this}return t.prototype.renderInput=function(){var e=this,n=this.question.getControlClass(),o=this.question.renderedPlaceholder;if(this.question.isReadOnlyRenderDiv())return s.createElement("div",null,this.question.inputValue);var i=this.question.getMaxLength()?s.createElement(Ee,{counter:this.question.characterCounter,remainingCharacterCounter:this.question.cssClasses.remainingCharacterCounter}):null;return s.createElement(s.Fragment,null,s.createElement("input",{id:this.question.inputId,disabled:this.question.isDisabledAttr,readOnly:this.question.isReadOnlyAttr,className:n,type:this.question.inputType,ref:function(p){return e.setControl(p)},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:o,list:this.question.dataListId,autoComplete:this.question.autocomplete,onBlur:function(p){e.question.onBlur(p)},onFocus:function(p){e.question.onFocus(p)},onChange:this.question.onChange,onKeyUp:this.question.onKeyUp,onKeyDown:this.question.onKeyDown,onCompositionUpdate:function(p){return e.question.onCompositionUpdate(p.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}),i)},t.prototype.renderElement=function(){return this.question.dataListId?s.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(e.length==0)return null;for(var n=[],o=0;o<e.length;o++)n.push(s.createElement("option",{key:"item"+o,value:e[o]}));return s.createElement("datalist",{id:this.question.dataListId},n)},t}(T);k.Instance.registerQuestion("text",function(r){return s.createElement(_t,r)});var qr=function(){var r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,o){n.__proto__=o}||function(n,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(n[i]=o[i])},r(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");r(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),Me=function(r){qr(t,r);function t(e){var n=r.call(this,e)||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=s.createRef(),n}return 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,n){this.question.onLabelClick(e,n)},t.prototype.handleOnKeyDown=function(e){this.question.onKeyDownCore(e)},t.prototype.updateDomElement=function(){if(this.question){var e=this.checkRef.current;e&&(e.indeterminate=this.question.isIndeterminate),this.setControl(e),r.prototype.updateDomElement.call(this)}},t.prototype.renderElement=function(){var e=this,n=this.question.cssClasses,o=this.question.getItemCss();return s.createElement("div",{className:n.root,onKeyDown:this.handleOnKeyDown},s.createElement("label",{className:o,onClick:this.handleOnClick},s.createElement("input",{ref:this.checkRef,type:"checkbox",name:this.question.name,value:this.question.booleanValue===null?"":this.question.booleanValue,id:this.question.inputId,className:n.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}),s.createElement("div",{className:n.sliderGhost,onClick:function(i){return e.handleOnLabelClick(i,e.question.swapOrder)}},s.createElement("span",{className:this.question.getLabelCss(this.question.swapOrder)},this.renderLocString(this.question.locLabelLeft))),s.createElement("div",{className:n.switch,onClick:this.handleOnSwitchClick},s.createElement("span",{className:n.slider},this.question.isDeterminated&&n.sliderText?s.createElement("span",{className:n.sliderText},this.renderLocString(this.question.getCheckedLabel())):null)),s.createElement("div",{className:n.sliderGhost,onClick:function(i){return e.handleOnLabelClick(i,!e.question.swapOrder)}},s.createElement("span",{className:this.question.getLabelCss(!this.question.swapOrder)},this.renderLocString(this.question.locLabelRight)))))},t}(P);k.Instance.registerQuestion("boolean",function(r){return s.createElement(Me,r)});var Sr=function(){var r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,o){n.__proto__=o}||function(n,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(n[i]=o[i])},r(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");r(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),At=function(r){Sr(t,r);function t(e){return r.call(this,e)||this}return t.prototype.renderElement=function(){var e=this.question.cssClasses,n=this.question.getCheckboxItemCss(),o=this.question.canRenderLabelDescription?g.renderQuestionDescription(this.question):null;return s.createElement("div",{className:e.rootCheckbox},s.createElement("div",{className:n},s.createElement("label",{className:e.checkboxLabel},s.createElement("input",{ref:this.checkRef,type:"checkbox",name:this.question.name,value:this.question.booleanValue===null?"":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}),s.createElement("span",{className:e.checkboxMaterialDecorator},this.question.svgIcon?s.createElement("svg",{className:e.checkboxItemDecorator},s.createElement("use",{xlinkHref:this.question.svgIcon})):null,s.createElement("span",{className:"check"})),this.question.isLabelRendered&&s.createElement("span",{className:e.checkboxControlLabel,id:this.question.labelRenderedAriaID},s.createElement(G,{element:this.question,cssClasses:this.question.cssClasses}))),o))},t}(Me);k.Instance.registerQuestion("sv-boolean-checkbox",function(r){return s.createElement(At,r)}),a.RendererFactory.Instance.registerRenderer("boolean","checkbox","sv-boolean-checkbox");var Or=function(){var r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,o){n.__proto__=o}||function(n,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(n[i]=o[i])},r(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");r(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),Zt=function(r){Or(t,r);function t(e){var n=r.call(this,e)||this;return n.handleOnChange=function(o){n.question.booleanValue=o.nativeEvent.target.value=="true"},n}return t.prototype.renderRadioItem=function(e,n){var o=this.question.cssClasses;return s.createElement("div",{role:"presentation",className:this.question.getRadioItemClass(o,e)},s.createElement("label",{className:o.radioLabel},s.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:o.itemRadioControl,onChange:this.handleOnChange}),this.question.cssClasses.materialRadioDecorator?s.createElement("span",{className:o.materialRadioDecorator},this.question.itemSvgIcon?s.createElement("svg",{className:o.itemRadioDecorator},s.createElement("use",{xlinkHref:this.question.itemSvgIcon})):null):null,s.createElement("span",{className:o.radioControlLabel},this.renderLocString(n))))},t.prototype.renderElement=function(){var e=this.question.cssClasses;return s.createElement("div",{className:e.rootRadio},s.createElement("fieldset",{role:"presentation",className:e.radioFieldset},this.question.swapOrder?s.createElement(s.Fragment,null,this.renderRadioItem(!0,this.question.locLabelTrue),this.renderRadioItem(!1,this.question.locLabelFalse)):s.createElement(s.Fragment,null,this.renderRadioItem(!1,this.question.locLabelFalse),this.renderRadioItem(!0,this.question.locLabelTrue))))},t}(Me);k.Instance.registerQuestion("sv-boolean-radio",function(r){return s.createElement(Zt,r)}),a.RendererFactory.Instance.registerRenderer("boolean","radio","sv-boolean-radio");var Lr=function(){var r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,o){n.__proto__=o}||function(n,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(n[i]=o[i])},r(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");r(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),Qt=function(r){Lr(t,r);function t(e){var n=r.call(this,e)||this;return n.state={value:n.question.value},n}return Object.defineProperty(t.prototype,"question",{get:function(){return this.questionBase},enumerable:!1,configurable:!0}),t.prototype.renderElement=function(){return s.createElement("div",null)},t}(P);k.Instance.registerQuestion("empty",function(r){return s.createElement(Qt,r)});var Mr=function(){var r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,o){n.__proto__=o}||function(n,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(n[i]=o[i])},r(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");r(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),Ke=function(r){Mr(t,r);function t(e){var n=r.call(this,e)||this;return n.root=u.a.createRef(),n.onPointerDownHandler=function(o){n.parentMatrix.onPointerDown(o.nativeEvent,n.model.row)},n}return 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(){r.prototype.componentDidMount.call(this),this.root.current&&this.model.setRootElement(this.root.current)},t.prototype.componentWillUnmount=function(){r.prototype.componentWillUnmount.call(this),this.model.setRootElement(void 0)},t.prototype.shouldComponentUpdate=function(e,n){return r.prototype.shouldComponentUpdate.call(this,e,n)?(e.model!==this.model&&(e.element&&e.element.setRootElement(this.root.current),this.model&&this.model.setRootElement(void 0)),!0):!1},t.prototype.render=function(){var e=this,n=this.model;return n.visible?u.a.createElement("tr",{ref:this.root,className:n.className,"data-sv-drop-target-matrix-row":n.row&&n.row.id,onPointerDown:function(o){return e.onPointerDownHandler(o)}},this.props.children):null},t}(g);c.Instance.registerElement("sv-matrix-row",function(r){return u.a.createElement(Ke,r)});var Ir=function(){var r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,o){n.__proto__=o}||function(n,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(n[i]=o[i])},r(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");r(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),$e=function(r){Ir(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return Object.defineProperty(t.prototype,"question",{get:function(){return this.props.item.data.question},enumerable:!1,configurable:!0}),t.prototype.renderElement=function(){return u.a.createElement("div",null,this.renderIcon())},t.prototype.renderIcon=function(){return this.question.iconDragElement?u.a.createElement("svg",{className:this.question.cssClasses.dragElementDecorator},u.a.createElement("use",{xlinkHref:this.question.iconDragElement})):u.a.createElement("span",{className:this.question.cssClasses.iconDrag})},t}(w);c.Instance.registerElement("sv-matrix-drag-drop-icon",function(r){return u.a.createElement($e,r)});var de=function(){var r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,o){n.__proto__=o}||function(n,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(n[i]=o[i])},r(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");r(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),br=function(r){de(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return 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,n,o){return this.props.wrapCell(e,n,o)},t.prototype.renderHeader=function(){var e=this.question.renderedTable;if(!e.showHeader)return null;for(var n=[],o=e.headerRow.cells,i=0;i<o.length;i++){var p=o[i],f="column"+i,v={};p.width&&(v.width=p.width),p.minWidth&&(v.minWidth=p.minWidth);var b=this.renderCellContent(p,"column-header",{}),q=p.hasTitle?s.createElement("th",{className:p.className,key:f,style:v}," ",b," "):s.createElement("td",{className:p.className,key:f,style:v});n.push(q)}return s.createElement("thead",null,s.createElement("tr",null,n))},t.prototype.renderFooter=function(){var e=this.question.renderedTable;if(!e.showFooter)return null;var n=this.renderRow("footer",e.footerRow,this.question.cssClasses,"row-footer");return s.createElement("tfoot",null,n)},t.prototype.renderRows=function(){for(var e=this.question.cssClasses,n=[],o=this.question.renderedTable.renderedRows,i=0;i<o.length;i++)n.push(this.renderRow(o[i].id,o[i],e));return s.createElement("tbody",null,n)},t.prototype.renderRow=function(e,n,o,i){for(var p=[],f=n.cells,v=0;v<f.length;v++)p.push(this.renderCell(f[v],o,i));var b="row"+e;return s.createElement(s.Fragment,{key:b},i=="row-footer"?s.createElement("tr",null,p):s.createElement(Ke,{model:n,parentMatrix:this.question},p))},t.prototype.renderCell=function(e,n,o){var i="cell"+e.id;if(e.hasQuestion)return s.createElement(Wt,{key:i,cssClasses:n,cell:e,creator:this.creator,reason:o});if(e.isErrorsCell&&e.isErrorsCell)return s.createElement(Pr,{cell:e,key:i,keyValue:i,question:e.question,creator:this.creator});var p=o;p||(p=e.hasTitle?"row-header":"");var f=this.renderCellContent(e,p,n),v=null;return(e.width||e.minWidth)&&(v={},e.width&&(v.width=e.width),e.minWidth&&(v.minWidth=e.minWidth)),s.createElement("td",{className:e.className,key:i,style:v,colSpan:e.colSpans,title:e.getTitle()},f)},t.prototype.renderCellContent=function(e,n,o){var i=null,p=null;if((e.width||e.minWidth)&&(p={},e.width&&(p.width=e.width),e.minWidth&&(p.minWidth=e.minWidth)),e.hasTitle){n="row-header";var f=this.renderLocString(e.locTitle),v=e.column?s.createElement(Ft,{column:e.column,question:this.question}):null;i=s.createElement(s.Fragment,null,f,v)}if(e.isDragHandlerCell&&(i=s.createElement(s.Fragment,null,s.createElement($e,{item:{data:{row:e.row,question:this.question}}}))),e.isActionsCell&&(i=c.Instance.createElement("sv-matrixdynamic-actions-cell",{question:this.question,cssClasses:o,cell:e,model:e.item.getData()})),e.hasPanel&&(i=s.createElement(pe,{key:e.panel.id,element:e.panel,survey:this.question.survey,cssClasses:o,isDisplayMode:this.isDisplayMode,creator:this.creator})),!i)return null;var b=s.createElement(s.Fragment,null,i);return this.wrapCell(e,b,n)},t.prototype.renderElement=function(){var e=this.renderHeader(),n=this.renderFooter(),o=this.renderRows();return s.createElement("table",{className:this.question.getTableCss()},e,o,n)},t}(g),Je=function(r){de(t,r);function t(e){var n=r.call(this,e)||this;return n.question.renderedTable,n.state=n.getState(),n}return Object.defineProperty(t.prototype,"question",{get:function(){return this.questionBase},enumerable:!1,configurable:!0}),t.prototype.getState=function(e){return e===void 0&&(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 e=this;r.prototype.componentDidMount.call(this),this.question.onRenderedTableResetCallback=function(){e.updateStateOnCallback()}},t.prototype.componentWillUnmount=function(){r.prototype.componentWillUnmount.call(this),this.question.onRenderedTableResetCallback=function(){}},t.prototype.renderElement=function(){return this.renderTableDiv()},t.prototype.renderTableDiv=function(){var e=this,n=this.question.showHorizontalScroll?{overflowX:"scroll"}:{};return s.createElement("div",{style:n,className:this.question.cssClasses.tableWrapper,ref:function(o){return e.setControl(o)}},s.createElement(br,{question:this.question,creator:this.creator,wrapCell:function(o,i,p){return e.wrapCell(o,i,p)}}))},t}(P),Rr=function(r){de(t,r);function t(e){return r.call(this,e)||this}return Object.defineProperty(t.prototype,"model",{get:function(){return this.props.model},enumerable:!1,configurable:!0}),t.prototype.renderElement=function(){return s.createElement(D,{model:this.model,handleClick:!1})},t}(w),Pr=function(r){de(t,r);function t(e){return r.call(this,e)||this}return Object.defineProperty(t.prototype,"key",{get:function(){return this.props.keyValue},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"cell",{get:function(){return this.props.cell},enumerable:!1,configurable:!0}),t.prototype.render=function(){return this.cell.isVisible?s.createElement("td",{className:this.cell.className,key:this.key,colSpan:this.cell.colSpans,title:this.cell.getTitle()},r.prototype.render.call(this)):null},t.prototype.getQuestionPropertiesToTrack=function(){return r.prototype.getQuestionPropertiesToTrack.call(this).concat(["visible"])},t}(lt);c.Instance.registerElement("sv-matrixdynamic-actions-cell",function(r){return s.createElement(Rr,r)});var Ft=function(r){de(t,r);function t(e){return r.call(this,e)||this}return 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?s.createElement(s.Fragment,null,s.createElement("span",null," "),s.createElement("span",{className:this.question.cssClasses.cellRequiredText},this.column.requiredText)):null},t}(w),Wt=function(r){de(t,r);function t(e){return r.call(this,e)||this}return 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(){var e=r.prototype.getQuestion.call(this);return e||(this.cell?this.cell.question:null)},t.prototype.doAfterRender=function(){var e=this.cellRef.current;if(e&&this.cell&&this.question&&this.question.survey&&e.getAttribute("data-rendered")!=="r"){e.setAttribute("data-rendered","r");var n={cell:this.cell,cellQuestion:this.question,htmlElement:e,row:this.cell.row,column:this.cell.cell.column};this.question.survey.matrixAfterCellRender(this.question,n),this.question.afterRenderCore(e)}},t.prototype.getShowErrors=function(){return this.question.isVisible&&(!this.cell.isChoice||this.cell.isFirstChoice)},t.prototype.getCellStyle=function(){var e=r.prototype.getCellStyle.call(this);return(this.cell.width||this.cell.minWidth)&&(e||(e={}),this.cell.width&&(e.width=this.cell.width),this.cell.minWidth&&(e.minWidth=this.cell.minWidth)),e},t.prototype.getHeaderText=function(){return this.cell.headers},t.prototype.renderElement=function(){return this.cell.isVisible?r.prototype.renderElement.call(this):null},t.prototype.renderCellContent=function(){var e=r.prototype.renderCellContent.call(this),n=this.cell.showResponsiveTitle?s.createElement("span",{className:this.cell.responsiveTitleCss},this.renderLocString(this.cell.responsiveLocTitle),s.createElement(Ft,{column:this.cell.column,question:this.cell.matrix})):null;return s.createElement(s.Fragment,null,n,e)},t.prototype.renderQuestion=function(){return this.question.isVisible?this.cell.isChoice?this.cell.isOtherChoice?this.renderOtherComment():this.cell.isCheckbox?this.renderCellCheckboxButton():this.renderCellRadiogroupButton():ce.renderQuestionBody(this.creator,this.question):s.createElement(s.Fragment,null)},t.prototype.renderOtherComment=function(){var e=this.cell.question,n=e.cssClasses||{};return s.createElement(qe,{question:e,cssClasses:n,otherCss:n.other,isDisplayMode:e.isInputReadOnly})},t.prototype.renderCellCheckboxButton=function(){var e=this.cell.question.id+"item"+this.cell.choiceIndex;return s.createElement(De,{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 s.createElement(ze,{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}(ut),Nr=function(){var r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,o){n.__proto__=o}||function(n,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(n[i]=o[i])},r(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");r(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),Ut=function(r){Nr(t,r);function t(e){return r.call(this,e)||this}return t}(Je);k.Instance.registerQuestion("matrixdropdown",function(r){return s.createElement(Ut,r)});var zt=function(){var r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,o){n.__proto__=o}||function(n,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(n[i]=o[i])},r(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");r(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),Kt=function(r){zt(t,r);function t(e){var n=r.call(this,e)||this;return n.handleOnRowAddClick=n.handleOnRowAddClick.bind(n),n}return 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,n=this.question.renderedTable.showTable,o=n?this.renderTableDiv():this.renderNoRowsContent(e);return s.createElement("div",null,this.renderAddRowButtonOnTop(e),o,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 n=this.renderLocString(this.matrix.locEmptyRowsText),o=s.createElement("div",{className:e.emptyRowsText},n),i=this.matrix.renderedTable.showAddRow?this.renderAddRowButton(e,!0):void 0;return s.createElement("div",{className:e.emptyRowsSection},o,i)},t.prototype.renderAddRowButton=function(e,n){return n===void 0&&(n=!1),c.Instance.createElement("sv-matrixdynamic-add-btn",{question:this.question,cssClasses:e,isEmptySection:n})},t}(Je);k.Instance.registerQuestion("matrixdynamic",function(r){return s.createElement(Kt,r)});var $t=function(r){zt(t,r);function t(e){var n=r.call(this,e)||this;return n.handleOnRowAddClick=n.handleOnRowAddClick.bind(n),n}return 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),n=s.createElement("button",{className:this.matrix.getAddRowButtonCss(this.props.isEmptySection),type:"button",disabled:this.matrix.isInputReadOnly,onClick:this.matrix.isDesignMode?void 0:this.handleOnRowAddClick},e,s.createElement("span",{className:this.props.cssClasses.iconAdd}));return this.props.isEmptySection?n:s.createElement("div",{className:this.props.cssClasses.footer},n)},t}(w);c.Instance.registerElement("sv-matrixdynamic-add-btn",function(r){return s.createElement($t,r)});var Jt=function(){var r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,o){n.__proto__=o}||function(n,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(n[i]=o[i])},r(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");r(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),ge=function(r){Jt(t,r);function t(e){return r.call(this,e)||this}return 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}(w),Gt=function(r){Jt(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.handleClick=function(n){e.question.addPanelUI()},e}return t.prototype.renderElement=function(){if(!this.question.canAddPanel)return null;var e=this.renderLocString(this.question.locPanelAddText);return u.a.createElement("button",{type:"button",id:this.question.addButtonId,className:this.question.getAddButtonCss(),onClick:this.handleClick},u.a.createElement("span",{className:this.question.cssClasses.buttonAddText},e))},t}(ge);c.Instance.registerElement("sv-paneldynamic-add-btn",function(r){return u.a.createElement(Gt,r)});var kr=function(){var r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,o){n.__proto__=o}||function(n,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(n[i]=o[i])},r(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");r(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),Ge=function(r){kr(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.handleClick=function(n){e.question.goToNextPanel()},e}return t.prototype.renderElement=function(){return u.a.createElement("div",{title:this.question.panelNextText,onClick:this.handleClick,className:this.question.getNextButtonCss()},u.a.createElement(M,{iconName:this.question.cssClasses.progressBtnIcon,size:"auto"}))},t}(ge);c.Instance.registerElement("sv-paneldynamic-next-btn",function(r){return u.a.createElement(Ge,r)});var jr=function(){var r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,o){n.__proto__=o}||function(n,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(n[i]=o[i])},r(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");r(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),Ye=function(r){jr(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.handleClick=function(n){e.question.goToPrevPanel()},e}return t.prototype.renderElement=function(){return u.a.createElement("div",{title:this.question.panelPrevText,onClick:this.handleClick,className:this.question.getPrevButtonCss()},u.a.createElement(M,{iconName:this.question.cssClasses.progressBtnIcon,size:"auto"}))},t}(ge);c.Instance.registerElement("sv-paneldynamic-prev-btn",function(r){return u.a.createElement(Ye,r)});var Br=function(){var r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,o){n.__proto__=o}||function(n,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(n[i]=o[i])},r(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");r(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),Xe=function(r){Br(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.renderElement=function(){return u.a.createElement("div",{className:this.question.cssClasses.progressText},this.question.progressText)},t}(ge);c.Instance.registerElement("sv-paneldynamic-progress-text",function(r){return u.a.createElement(Xe,r)});var Yt=function(){var r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,o){n.__proto__=o}||function(n,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(n[i]=o[i])},r(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");r(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),Xt=function(r){Yt(t,r);function t(e){return r.call(this,e)||this}return Object.defineProperty(t.prototype,"question",{get:function(){return this.questionBase},enumerable:!1,configurable:!0}),t.prototype.componentDidMount=function(){r.prototype.componentDidMount.call(this),this.setState({panelCounter:0});var e=this;this.question.panelCountChangedCallback=function(){e.updateQuestionRendering()},this.question.currentIndexChangedCallback=function(){e.updateQuestionRendering()},this.question.renderModeChangedCallback=function(){e.updateQuestionRendering()}},t.prototype.componentWillUnmount=function(){r.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,n=[];this.question.renderedPanels.forEach(function(b,q){n.push(s.createElement(Hr,{key:b.id,element:b,question:e.question,index:q,cssClasses:e.question.cssClasses,isDisplayMode:e.isDisplayMode,creator:e.creator}))});var o=this.question.isRenderModeList&&this.question.showLegacyNavigation?this.renderAddRowButton():null,i=this.question.isProgressTopShowing?this.renderNavigator():null,p=this.question.isProgressBottomShowing?this.renderNavigator():null,f=this.renderNavigatorV2(),v=this.renderPlaceholder();return s.createElement("div",{className:this.question.cssClasses.root},v,i,s.createElement("div",{className:this.question.cssClasses.panelsContainer},n),p,o,f)},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,n=this.rendrerPrevButton(),o=this.rendrerNextButton(),i=this.renderAddRowButton(),p=this.question.isProgressTopShowing?this.question.cssClasses.progressTop:this.question.cssClasses.progressBottom;return s.createElement("div",{className:p},s.createElement("div",{style:{clear:"both"}},s.createElement("div",{className:this.question.cssClasses.progressContainer},n,e,o),i,this.renderProgressText()))},t.prototype.renderProgressText=function(){return s.createElement(Xe,{data:{question:this.question}})},t.prototype.rendrerPrevButton=function(){return s.createElement(Ye,{data:{question:this.question}})},t.prototype.rendrerNextButton=function(){return s.createElement(Ge,{data:{question:this.question}})},t.prototype.renderRange=function(){return s.createElement("div",{className:this.question.cssClasses.progress},s.createElement("div",{className:this.question.cssClasses.progressBar,style:{width:this.question.progress},role:"progressbar"}))},t.prototype.renderAddRowButton=function(){return c.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 s.createElement("div",{className:this.question.cssClasses.footer},s.createElement("hr",{className:this.question.cssClasses.separator}),e,this.question.footerToolbar.visibleActions.length?s.createElement("div",{className:this.question.cssClasses.footerButtonsContainer},s.createElement(D,{model:this.question.footerToolbar})):null)},t.prototype.renderPlaceholder=function(){return this.question.getShowNoEntriesPlaceholder()?s.createElement("div",{className:this.question.cssClasses.noEntriesPlaceholder},s.createElement("span",null,this.renderLocString(this.question.locNoEntriesText)),this.renderAddRowButton()):null},t}(P),Hr=function(r){Yt(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return 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 e=r.prototype.render.call(this),n=this.renderButton(),o=this.question.showSeparator(this.index)?s.createElement("hr",{className:this.question.cssClasses.separator}):null;return s.createElement(s.Fragment,null,s.createElement("div",{className:this.question.getPanelWrapperCss(this.panel)},e,n),o)},t.prototype.renderButton=function(){return this.question.panelRemoveButtonLocation!=="right"||!this.question.canRemovePanel||this.question.isRenderModeList&&this.panel.isCollapsed?null:c.Instance.createElement("sv-paneldynamic-remove-btn",{data:{question:this.question,panel:this.panel}})},t}(pe);k.Instance.registerQuestion("paneldynamic",function(r){return s.createElement(Xt,r)});var Tr=function(){var r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,o){n.__proto__=o}||function(n,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(n[i]=o[i])},r(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");r(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),Ce=function(r){Tr(t,r);function t(e){return r.call(this,e)||this}return 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 s.createElement("div",{className:this.survey.getProgressCssClasses(this.props.container)},s.createElement("div",{style:e,className:this.css.progressBar,role:"progressbar","aria-valuemin":0,"aria-valuemax":100,"aria-label":"progress"},s.createElement("span",{className:a.SurveyProgressModel.getProgressTextInBarCss(this.css)},this.progressText)),s.createElement("span",{className:a.SurveyProgressModel.getProgressTextUnderBarCss(this.css)},this.progressText))},t}(Oe);c.Instance.registerElement("sv-progress-pages",function(r){return s.createElement(Ce,r)}),c.Instance.registerElement("sv-progress-questions",function(r){return s.createElement(Ce,r)}),c.Instance.registerElement("sv-progress-correctquestions",function(r){return s.createElement(Ce,r)}),c.Instance.registerElement("sv-progress-requiredquestions",function(r){return s.createElement(Ce,r)});var Dr=function(){var r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,o){n.__proto__=o}||function(n,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(n[i]=o[i])},r(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");r(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),en=function(r){Dr(t,r);function t(e){var n=r.call(this,e)||this;return n.listContainerRef=s.createRef(),n}return 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 s.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?s.createElement("div",{className:this.css.progressButtonsHeader},s.createElement("div",{className:this.css.progressButtonsPageTitle,title:this.model.headerText},this.model.headerText)):null,s.createElement("div",{className:this.css.progressButtonsContainer},s.createElement("div",{className:this.model.getScrollButtonCss(this.state.hasScroller,!0),role:"button",onClick:function(){return e.clickScrollButton(e.listContainerRef.current,!0)}}),s.createElement("div",{className:this.css.progressButtonsListContainer,ref:this.listContainerRef},s.createElement("ul",{className:this.css.progressButtonsList},this.getListElements())),s.createElement("div",{className:this.model.getScrollButtonCss(this.state.hasScroller,!1),role:"button",onClick:function(){return e.clickScrollButton(e.listContainerRef.current,!1)}})),this.state.canShowFooter?s.createElement("div",{className:this.css.progressButtonsFooter},s.createElement("div",{className:this.css.progressButtonsPageTitle,title:this.model.footerText},this.model.footerText)):null)},t.prototype.getListElements=function(){var e=this,n=[];return this.survey.visiblePages.forEach(function(o,i){n.push(e.renderListElement(o,i))}),n},t.prototype.renderListElement=function(e,n){var o=this,i=g.renderLocString(e.locNavigationTitle);return s.createElement("li",{key:"listelement"+n,className:this.model.getListElementCss(n),onClick:this.model.isListElementClickable(n)?function(){return o.model.clickListElement(e)}:void 0,"data-page-number":this.model.getItemNumber(e)},s.createElement("div",{className:this.css.progressButtonsConnector}),this.state.canShowItemTitles?s.createElement(s.Fragment,null,s.createElement("div",{className:this.css.progressButtonsPageTitle,title:e.renderedNavigationTitle},i),s.createElement("div",{className:this.css.progressButtonsPageDescription,title:e.navigationDescription},e.navigationDescription)):null,s.createElement("div",{className:this.css.progressButtonsButton},s.createElement("div",{className:this.css.progressButtonsButtonBackground}),s.createElement("div",{className:this.css.progressButtonsButtonContent}),s.createElement("span",null,this.model.getItemNumber(e))))},t.prototype.clickScrollButton=function(e,n){e&&(e.scrollLeft+=(n?-1:1)*70)},t.prototype.componentDidMount=function(){var e=this;r.prototype.componentDidMount.call(this),setTimeout(function(){e.respManager=new a.ProgressButtonsResponsivityManager(e.model,e.listContainerRef.current,e)},10)},t.prototype.componentWillUnmount=function(){this.respManager&&this.respManager.dispose(),r.prototype.componentWillUnmount.call(this)},t}(Oe);c.Instance.registerElement("sv-progress-buttons",function(r){return s.createElement(en,r)});var Vr=function(){var r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,o){n.__proto__=o}||function(n,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(n[i]=o[i])},r(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");r(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),tn=function(r){Vr(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.handleKeydown=function(n){e.model.onKeyDown(n)},e}return 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 n=this.model.getItemClass(this.item),o=this.item.component||this.model.itemComponent,i=c.Instance.createElement(o,{item:this.item,key:this.item.id,model:this.model}),p=u.a.createElement("div",{style:this.model.getItemStyle(this.item),className:this.model.cssClasses.itemBody,title:this.item.getTooltip(),onMouseOver:function(q){e.model.onItemHover(e.item)},onMouseLeave:function(q){e.model.onItemLeave(e.item)}},i),f=this.item.needSeparator?u.a.createElement("div",{className:this.model.cssClasses.itemSeparator}):null,v=this.model.isItemVisible(this.item),b={display:v?null:"none"};return Se(u.a.createElement("li",{className:n,role:"option",style:b,id:this.item.elementId,"aria-selected":this.model.isItemSelected(this.item),onClick:function(q){e.model.onItemClick(e.item),q.stopPropagation()},onPointerDown:function(q){return e.model.onPointerDown(q,e.item)}},f,p),this.item)},t.prototype.componentDidMount=function(){r.prototype.componentDidMount.call(this),this.model.onLastItemRended(this.item)},t}(g);c.Instance.registerElement("sv-list-item",function(r){return u.a.createElement(tn,r)});var _r=function(){var r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,o){n.__proto__=o}||function(n,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(n[i]=o[i])},r(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");r(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),et=function(r){_r(t,r);function t(e){var n=r.call(this,e)||this;return n.handleKeydown=function(o){n.model.onKeyDown(o)},n.handleMouseMove=function(o){n.model.onMouseMove(o)},n.state={filterString:n.model.filterString||""},n.listContainerRef=u.a.createRef(),n}return 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(){r.prototype.componentDidMount.call(this),this.listContainerRef&&this.listContainerRef.current&&this.model.initListContainerHtmlElement(this.listContainerRef.current)},t.prototype.componentDidUpdate=function(e,n){var o;r.prototype.componentDidUpdate.call(this,e,n),this.model!==e.model&&(this.model&&(!((o=this.listContainerRef)===null||o===void 0)&&o.current)&&this.model.initListContainerHtmlElement(this.listContainerRef.current),e.model&&e.model.initListContainerHtmlElement(void 0))},t.prototype.componentWillUnmount=function(){r.prototype.componentWillUnmount.call(this),this.model&&this.model.initListContainerHtmlElement(void 0)},t.prototype.renderElement=function(){return u.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(),n={display:this.model.isEmpty?"none":null};return u.a.createElement("ul",{className:this.model.getListClass(),style:n,role:"listbox",id:this.model.elementId,onMouseDown:function(o){o.preventDefault()},onKeyDown:this.handleKeydown,onMouseMove:this.handleMouseMove},e)},t.prototype.renderItems=function(){var e=this;if(!this.model)return null;var n=this.model.renderedActions;return n?n.map(function(o,i){return u.a.createElement(tn,{model:e.model,item:o,key:"item"+i})}):null},t.prototype.searchElementContent=function(){var e=this;if(this.model.showFilter){var n=function(p){var f=a.settings.environment.root;p.target===f.activeElement&&(e.model.filterString=p.target.value)},o=function(p){e.model.goToItems(p)},i=this.model.showSearchClearButton&&this.model.filterString?u.a.createElement("button",{className:this.model.cssClasses.searchClearButtonIcon,onClick:function(p){e.model.onClickSearchClearButton(p)}},u.a.createElement(M,{iconName:"icon-searchclear",size:"auto"})):null;return u.a.createElement("div",{className:this.model.cssClasses.filter},u.a.createElement("div",{className:this.model.cssClasses.filterIcon},u.a.createElement(M,{iconName:"icon-search",size:"auto"})),u.a.createElement("input",{type:"text",className:this.model.cssClasses.filterInput,"aria-label":this.model.filterStringPlaceholder,placeholder:this.model.filterStringPlaceholder,value:this.state.filterString,onKeyUp:o,onChange:n}),i)}else return null},t.prototype.emptyContent=function(){var e={display:this.model.isEmpty?null:"none"};return u.a.createElement("div",{className:this.model.cssClasses.emptyContainer,style:e},u.a.createElement("div",{className:this.model.cssClasses.emptyText,"aria-label":this.model.emptyMessage},this.model.emptyMessage))},t}(g);c.Instance.registerElement("sv-list",function(r){return u.a.createElement(et,r)});var Ar=function(){var r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,o){n.__proto__=o}||function(n,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(n[i]=o[i])},r(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");r(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),nn=function(r){Ar(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.render=function(){var e=this.props.model,n;return e.isMobile?n=s.createElement("div",{onClick:e.togglePopup},s.createElement(M,{iconName:e.icon,size:24}),s.createElement(Q,{model:e.popupModel})):n=s.createElement(et,{model:e.listModel}),s.createElement("div",{className:e.containerCss},n)},t}(Oe);c.Instance.registerElement("sv-navigation-toc",function(r){return s.createElement(nn,r)});var Zr=function(){var r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,o){n.__proto__=o}||function(n,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(n[i]=o[i])},r(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");r(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),rn=function(r){Zr(t,r);function t(e){var n=r.call(this,e)||this;return n.handleOnClick=n.handleOnClick.bind(n),n}return 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,n){var o=c.Instance.createElement(this.question.itemComponent,{question:this.question,item:e,index:n,key:"value"+n,handleOnClick:this.handleOnClick,isDisplayMode:this.isDisplayMode});return o},t.prototype.renderElement=function(){var e=this,n=this.question.cssClasses,o=this.question.minRateDescription?this.renderLocString(this.question.locMinRateDescription):null,i=this.question.maxRateDescription?this.renderLocString(this.question.locMaxRateDescription):null;return s.createElement("div",{className:this.question.ratingRootCss,ref:function(p){return e.setControl(p)}},s.createElement("fieldset",{role:"radiogroup"},s.createElement("legend",{role:"presentation",className:"sv-hidden"}),this.question.hasMinLabel?s.createElement("span",{className:n.minText},o):null,this.question.renderedRateItems.map(function(p,f){return e.renderItem(p,f)}),this.question.hasMaxLabel?s.createElement("span",{className:n.maxText},i):null))},t}(P);k.Instance.registerQuestion("rating",function(r){return s.createElement(rn,r)});var Qr=function(){var r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,o){n.__proto__=o}||function(n,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(n[i]=o[i])},r(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");r(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),on=function(r){Qr(t,r);function t(e){return r.call(this,e)||this}return t.prototype.renderElement=function(){var e=this.question.cssClasses,n=this.renderSelect(e);return s.createElement("div",{className:this.question.cssClasses.rootDropdown},n)},t}(Le);k.Instance.registerQuestion("sv-rating-dropdown",function(r){return s.createElement(on,r)}),a.RendererFactory.Instance.registerRenderer("rating","dropdown","sv-rating-dropdown");var Fr=function(){var r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,o){n.__proto__=o}||function(n,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(n[i]=o[i])},r(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");r(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),sn=function(r){Fr(t,r);function t(e){return r.call(this,e)||this}return Object.defineProperty(t.prototype,"question",{get:function(){return this.questionBase},enumerable:!1,configurable:!0}),t.prototype.renderElement=function(){var e=this,n=this.question.cssClasses;return s.createElement("div",{id:this.question.inputId,className:n.root,ref:function(o){return e.setControl(o)}},this.question.formatedValue)},t}(P);k.Instance.registerQuestion("expression",function(r){return s.createElement(sn,r)});var an=function(){var r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,o){n.__proto__=o}||function(n,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(n[i]=o[i])},r(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");r(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),un=function(r){an(t,r);function t(e){var n=r.call(this,e)||this;return n.handleOnExpanded=n.handleOnExpanded.bind(n),n}return t.prototype.getStateElements=function(){return[this.popup,this.popup.survey]},t.prototype.handleOnExpanded=function(e){this.popup.changeExpandCollapse()},t.prototype.canRender=function(){return r.prototype.canRender.call(this)&&this.popup.isShowing},t.prototype.renderElement=function(){var e=this,n=this.renderWindowHeader(),o=this.renderBody(),i={};return this.popup.renderedWidth&&(i.width=this.popup.renderedWidth,i.maxWidth=this.popup.renderedWidth),s.createElement("div",{className:this.popup.cssRoot,style:i,onScroll:function(){return e.popup.onScroll()}},s.createElement("div",{className:this.popup.cssRootContent},n,o))},t.prototype.renderWindowHeader=function(){var e=this.popup,n=e.cssHeaderRoot,o=null,i,p=null,f=null;return e.isCollapsed?(n+=" "+e.cssRootCollapsedMod,o=this.renderTitleCollapsed(e),i=this.renderExpandIcon()):i=this.renderCollapseIcon(),e.allowClose&&(p=this.renderCloseButton(this.popup)),e.allowFullScreen&&(f=this.renderAllowFullScreenButon(this.popup)),s.createElement("div",{className:e.cssHeaderRoot},o,s.createElement("div",{className:e.cssHeaderButtonsContainer},f,s.createElement("div",{className:e.cssHeaderCollapseButton,onClick:this.handleOnExpanded},i),p))},t.prototype.renderTitleCollapsed=function(e){return e.locTitle?s.createElement("div",{className:e.cssHeaderTitleCollapsed},e.locTitle.renderedHtml):null},t.prototype.renderExpandIcon=function(){return s.createElement(M,{iconName:"icon-restore_16x16",size:16})},t.prototype.renderCollapseIcon=function(){return s.createElement(M,{iconName:"icon-minimize_16x16",size:16})},t.prototype.renderCloseButton=function(e){var n=this;return s.createElement("div",{className:e.cssHeaderCloseButton,onClick:function(){e.hide(),typeof n.props.onClose=="function"&&n.props.onClose()}},s.createElement(M,{iconName:"icon-close_16x16",size:16}))},t.prototype.renderAllowFullScreenButon=function(e){var n;return e.isFullScreen?n=s.createElement(M,{iconName:"icon-back-to-panel_16x16",size:16}):n=s.createElement(M,{iconName:"icon-full-screen_16x16",size:16}),s.createElement("div",{className:e.cssHeaderFullScreenButton,onClick:function(){e.toggleFullScreen()}},n)},t.prototype.renderBody=function(){return s.createElement("div",{className:this.popup.cssBody},this.doRender())},t.prototype.createSurvey=function(e){e||(e={}),r.prototype.createSurvey.call(this,e),this.popup=new a.PopupSurveyModel(null,this.survey),e.closeOnCompleteTimeout&&(this.popup.closeOnCompleteTimeout=e.closeOnCompleteTimeout),this.popup.allowClose=e.allowClose,this.popup.allowFullScreen=e.allowFullScreen,this.popup.isShowing=!0,!this.popup.isExpanded&&(e.expanded||e.isExpanded)&&this.popup.expand()},t}(Te),Wr=function(r){an(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t}(un),ln=function(){var r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,o){n.__proto__=o}||function(n,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(n[i]=o[i])},r(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");r(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),cn=function(r){ln(t,r);function t(e){return r.call(this,e)||this}return Object.defineProperty(t.prototype,"question",{get:function(){return this.questionBase},enumerable:!1,configurable:!0}),t.prototype.renderElement=function(){var e=this.question.cssClasses;return s.createElement("fieldset",{className:this.question.getSelectBaseRootCss()},s.createElement("legend",{className:"sv-hidden"},this.question.locTitle.renderedHtml),this.question.hasColumns?this.getColumns(e):this.getItems(e))},t.prototype.getColumns=function(e){var n=this;return this.question.columns.map(function(o,i){var p=o.map(function(f,v){return n.renderItem("item"+v,f,e)});return s.createElement("div",{key:"column"+i+n.question.getItemsColumnKey(o),className:n.question.getColumnClass(),role:"presentation"},p)})},t.prototype.getItems=function(e){for(var n=[],o=0;o<this.question.visibleChoices.length;o++){var i=this.question.visibleChoices[o],p="item"+o;n.push(this.renderItem(p,i,e))}return n},Object.defineProperty(t.prototype,"textStyle",{get:function(){return{marginLeft:"3px",display:"inline",position:"static"}},enumerable:!1,configurable:!0}),t.prototype.renderItem=function(e,n,o){var i=s.createElement(Ur,{key:e,question:this.question,item:n,cssClasses:o}),p=this.question.survey,f=null;return p&&(f=y.wrapItemValue(p,i,this.question,n)),f??i},t}(P),Ur=function(r){ln(t,r);function t(e){var n=r.call(this,e)||this;return n.handleOnChange=n.handleOnChange.bind(n),n}return t.prototype.getStateElement=function(){return this.item},t.prototype.componentDidMount=function(){r.prototype.componentDidMount.call(this),this.reactOnStrChanged()},t.prototype.componentWillUnmount=function(){r.prototype.componentWillUnmount.call(this),this.item.locImageLink.onChanged=function(){}},t.prototype.componentDidUpdate=function(e,n){r.prototype.componentDidUpdate.call(this,e,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 n=this.question.value;n.splice(this.question.value.indexOf(e.target.value),1),this.question.value=n}else this.question.value=e.target.value;this.setState({value:this.question.value})}},t.prototype.renderElement=function(){var e=this,n=this.item,o=this.question,i=this.cssClasses,p=o.isItemSelected(n),f=o.getItemClass(n),v=null;o.showLabel&&(v=s.createElement("span",{className:o.cssClasses.itemText},n.text?g.renderLocString(n.locText):n.value));var b={objectFit:this.question.imageFit},q=null;if(n.locImageLink.renderedHtml&&this.question.contentMode==="image"&&(q=s.createElement("img",{className:i.image,src:n.locImageLink.renderedHtml,width:this.question.renderedImageWidth,height:this.question.renderedImageHeight,alt:n.locText.renderedHtml,style:b,onLoad:function(V){e.question.onContentLoaded(n,V.nativeEvent)},onError:function(V){n.onErrorHandler(n,V.nativeEvent)}})),n.locImageLink.renderedHtml&&this.question.contentMode==="video"&&(q=s.createElement("video",{controls:!0,className:i.image,src:n.locImageLink.renderedHtml,width:this.question.renderedImageWidth,height:this.question.renderedImageHeight,style:b,onLoadedMetadata:function(V){e.question.onContentLoaded(n,V.nativeEvent)},onError:function(V){n.onErrorHandler(n,V.nativeEvent)}})),!n.locImageLink.renderedHtml||n.contentNotLoaded){var j={width:this.question.renderedImageWidth,height:this.question.renderedImageHeight,objectFit:this.question.imageFit};q=s.createElement("div",{className:i.itemNoImage,style:j},i.itemNoImageSvgIcon?s.createElement(M,{className:i.itemNoImageSvgIcon,iconName:this.question.cssClasses.itemNoImageSvgIconId,size:48}):null)}var X=s.createElement("div",{className:f},s.createElement("label",{className:i.label},s.createElement("input",{className:i.itemControl,id:this.question.getItemId(n),type:this.question.inputType,name:this.question.questionName,checked:p,value:n.value,disabled:!this.question.getItemEnabled(n),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}),s.createElement("div",{className:this.question.cssClasses.itemDecorator},s.createElement("div",{className:this.question.cssClasses.imageContainer},this.question.cssClasses.checkedItemDecorator?s.createElement("span",{className:this.question.cssClasses.checkedItemDecorator,"aria-hidden":"true"},this.question.cssClasses.checkedItemSvgIconId?s.createElement(M,{size:"auto",className:this.question.cssClasses.checkedItemSvgIcon,iconName:this.question.cssClasses.checkedItemSvgIconId}):null):null,q),v)));return X},t}(w);k.Instance.registerQuestion("imagepicker",function(r){return s.createElement(cn,r)});var zr=function(){var r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,o){n.__proto__=o}||function(n,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(n[i]=o[i])},r(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");r(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),pn=function(r){zr(t,r);function t(e){return r.call(this,e)||this}return t.prototype.componentDidMount=function(){var e=this;r.prototype.componentDidMount.call(this),this.question.locImageLink.onChanged=function(){e.forceUpdate()}},t.prototype.componentWillUnmount=function(){r.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,n=this.question.getImageCss(),o={objectFit:this.question.imageFit,width:this.question.renderedStyleWidth,height:this.question.renderedStyleHeight};(!this.question.imageLink||this.question.contentNotLoaded)&&(o.display="none");var i=null;this.question.renderedMode==="image"&&(i=s.createElement("img",{className:n,src:this.question.locImageLink.renderedHtml||null,alt:this.question.altText||this.question.title,width:this.question.renderedWidth,height:this.question.renderedHeight,style:o,onLoad:function(f){e.question.onLoadHandler()},onError:function(f){e.question.onErrorHandler()}})),this.question.renderedMode==="video"&&(i=s.createElement("video",{controls:!0,className:n,src:this.question.locImageLink.renderedHtml,width:this.question.renderedWidth,height:this.question.renderedHeight,style:o,onLoadedMetadata:function(f){e.question.onLoadHandler()},onError:function(f){e.question.onErrorHandler()}})),this.question.renderedMode==="youtube"&&(i=s.createElement("iframe",{className:n,src:this.question.locImageLink.renderedHtml,width:this.question.renderedWidth,height:this.question.renderedHeight,style:o}));var p=null;return(!this.question.imageLink||this.question.contentNotLoaded)&&(p=s.createElement("div",{className:this.question.cssClasses.noImage},s.createElement(M,{iconName:this.question.cssClasses.noImageSvgIconId,size:48}))),s.createElement("div",{className:this.question.cssClasses.root},i,p)},t}(P);k.Instance.registerQuestion("image",function(r){return s.createElement(pn,r)});var Kr=function(){var r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,o){n.__proto__=o}||function(n,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(n[i]=o[i])},r(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");r(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),dn=function(r){Kr(t,r);function t(e){var n=r.call(this,e)||this;return n.state={value:n.question.value},n}return Object.defineProperty(t.prototype,"question",{get:function(){return this.questionBase},enumerable:!1,configurable:!0}),t.prototype.renderElement=function(){var e=this,n=this.question.cssClasses,o=this.question.showLoadingIndicator?this.renderLoadingIndicator():null,i=this.renderCleanButton();return s.createElement("div",{className:n.root,ref:function(p){return e.setControl(p)},style:{width:this.question.renderedCanvasWidth}},s.createElement("div",{className:n.placeholder,style:{display:this.question.needShowPlaceholder()?"":"none"}},this.renderLocString(this.question.locRenderedPlaceholder)),s.createElement("div",null,this.renderBackgroundImage(),s.createElement("canvas",{tabIndex:-1,className:this.question.cssClasses.canvas,onBlur:function(p){e.question.onBlur(p)}})),i,o)},t.prototype.renderBackgroundImage=function(){return this.question.backgroundImage?s.createElement("img",{className:this.question.cssClasses.backgroundImage,src:this.question.backgroundImage,style:{width:this.question.renderedCanvasWidth}}):null},t.prototype.renderLoadingIndicator=function(){return s.createElement("div",{className:this.question.cssClasses.loadingIndicator},s.createElement(Fe,null))},t.prototype.renderCleanButton=function(){var e=this;if(!this.question.canShowClearButton)return null;var n=this.question.cssClasses;return s.createElement("div",{className:n.controls},s.createElement("button",{type:"button",className:n.clearButton,title:this.question.clearButtonCaption,onClick:function(){return e.question.clearValue(!0)}},this.question.cssClasses.clearButtonIconId?s.createElement(M,{iconName:this.question.cssClasses.clearButtonIconId,size:"auto"}):s.createElement("span",null,"✖")))},t}(P);k.Instance.registerQuestion("signaturepad",function(r){return s.createElement(dn,r)});var hn=function(){var r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,o){n.__proto__=o}||function(n,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(n[i]=o[i])},r(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");r(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),$r=function(r){hn(t,r);function t(e){return r.call(this,e)||this}return 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 u.a.createElement("div",{className:this.question.cssClasses.root},e)},t.prototype.renderItems=function(){var e=this;return this.question.visibleChoices.map(function(n,o){return u.a.createElement(Jr,{key:e.question.inputId+"_"+o,item:n,question:e.question,index:o})})},t}(P),Jr=function(r){hn(t,r);function t(e){return r.call(this,e)||this}return 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 a.ButtonGroupItemModel(this.question,this.item,this.index);var e=this.renderIcon(),n=this.renderInput(),o=this.renderCaption();return u.a.createElement("label",{role:"radio",className:this.model.css.label,title:this.model.caption.renderedHtml},n,u.a.createElement("div",{className:this.model.css.decorator},e,o))},t.prototype.renderIcon=function(){return this.model.iconName?u.a.createElement(M,{className:this.model.css.icon,iconName:this.model.iconName,size:this.model.iconSize||24}):null},t.prototype.renderInput=function(){var e=this;return u.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 u.a.createElement("span",{className:this.model.css.caption,title:this.model.caption.renderedHtml},e)},t}(g),fn=function(){var r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,o){n.__proto__=o}||function(n,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(n[i]=o[i])},r(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");r(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),mn=function(r){fn(t,r);function t(e){return r.call(this,e)||this}return t.prototype.getStateElements=function(){var e=r.prototype.getStateElements.call(this);return this.question.contentQuestion&&e.push(this.question.contentQuestion),e},t.prototype.renderElement=function(){return ce.renderQuestionBody(this.creator,this.question.contentQuestion)},t}(T),vn=function(r){fn(t,r);function t(e){return r.call(this,e)||this}return t.prototype.canRender=function(){return!!this.question.contentPanel},t.prototype.renderElement=function(){return s.createElement(pe,{element:this.question.contentPanel,creator:this.creator,survey:this.question.survey})},t}(T);k.Instance.registerQuestion("custom",function(r){return s.createElement(mn,r)}),k.Instance.registerQuestion("composite",function(r){return s.createElement(vn,r)});var Gr=function(){var r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,o){n.__proto__=o}||function(n,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(n[i]=o[i])},r(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");r(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),yn=function(r){Gr(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return 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=this.renderLocString(this.item.locTitle,void 0,"locString"),n=this.item.iconName?u.a.createElement(M,{className:this.model.cssClasses.itemIcon,iconName:this.item.iconName,size:this.item.iconSize,"aria-label":this.item.title}):null,o=this.item.markerIconName?u.a.createElement(M,{className:this.item.cssClasses.itemMarkerIcon,iconName:this.item.markerIconName,size:"auto"}):null;return u.a.createElement(u.a.Fragment,null,n,e,o)},t}(g);c.Instance.registerElement("sv-list-item-content",function(r){return u.a.createElement(yn,r)});var Yr=function(){var r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,o){n.__proto__=o}||function(n,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(n[i]=o[i])},r(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");r(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),gn=function(r){Yr(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return 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 n=c.Instance.createElement("sv-list-item-content",{item:this.item,key:"content"+this.item.id,model:this.model});return u.a.createElement(u.a.Fragment,null,n,u.a.createElement(Q,{model:(e=this.item)===null||e===void 0?void 0:e.popupModel}))},t}(g);c.Instance.registerElement("sv-list-item-group",function(r){return u.a.createElement(gn,r)});var Xr=function(){var r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,o){n.__proto__=o}||function(n,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(n[i]=o[i])},r(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");r(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),Cn=function(r){Xr(t,r);function t(e){return r.call(this,e)||this}return Object.defineProperty(t.prototype,"survey",{get:function(){return this.props.data},enumerable:!1,configurable:!0}),t.prototype.render=function(){var e=[];return e.push(u.a.createElement("div",{key:"logo-image",className:this.survey.logoClassNames},u.a.createElement("img",{className:this.survey.css.logoImage,src:this.survey.locLogo.renderedHtml||null,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}}))),u.a.createElement(u.a.Fragment,null,e)},t}(u.a.Component);c.Instance.registerElement("sv-logo-image",function(r){return u.a.createElement(Cn,r)});var eo=function(){var r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,o){n.__proto__=o}||function(n,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(n[i]=o[i])},r(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");r(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),xn=function(r){eo(t,r);function t(e){var n=r.call(this,e)||this;return n.handleOnRowRemoveClick=n.handleOnRowRemoveClick.bind(n),n}return 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 u.a.createElement("button",{className:this.question.getRemoveRowButtonCss(),type:"button",onClick:this.handleOnRowRemoveClick,disabled:this.question.isInputReadOnly},e,u.a.createElement("span",{className:this.question.cssClasses.iconRemove}))},t}(w);c.Instance.registerElement("sv-matrix-remove-button",function(r){return u.a.createElement(xn,r)});var to=function(){var r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,o){n.__proto__=o}||function(n,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(n[i]=o[i])},r(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");r(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),wn=function(r){to(t,r);function t(e){var n=r.call(this,e)||this;return n.handleOnShowHideClick=n.handleOnShowHideClick.bind(n),n}return 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,n=e,o=e?this.row.detailPanelId:void 0;return u.a.createElement("button",{type:"button",onClick:this.handleOnShowHideClick,className:this.question.getDetailPanelButtonCss(this.row),"aria-expanded":n,"aria-controls":o},u.a.createElement(M,{className:this.question.getDetailPanelIconCss(this.row),iconName:this.question.getDetailPanelIconId(this.row),size:"auto"}))},t}(w);c.Instance.registerElement("sv-matrix-detail-button",function(r){return u.a.createElement(wn,r)});var no=function(){var r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,o){n.__proto__=o}||function(n,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(n[i]=o[i])},r(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");r(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),En=function(r){no(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.handleClick=function(n){e.question.removePanelUI(e.data.panel)},e}return t.prototype.renderElement=function(){var e=this.renderLocString(this.question.locPanelRemoveText),n=this.question.getPanelRemoveButtonId(this.data.panel);return u.a.createElement("button",{id:n,className:this.question.getPanelRemoveButtonCss(),onClick:this.handleClick,type:"button"},u.a.createElement("span",{className:this.question.cssClasses.buttonRemoveText},e),u.a.createElement("span",{className:this.question.cssClasses.iconRemove}))},t}(ge);c.Instance.registerElement("sv-paneldynamic-remove-btn",function(r){return u.a.createElement(En,r)});var ro=function(){var r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,o){n.__proto__=o}||function(n,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(n[i]=o[i])},r(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");r(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),qn=function(r){ro(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return 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 u.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}(w);c.Instance.registerElement("sv-nav-btn",function(r){return u.a.createElement(qn,r)});var oo=function(){var r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,o){n.__proto__=o}||function(n,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(n[i]=o[i])},r(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");r(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),tt=function(r){oo(t,r);function t(e){var n=r.call(this,e)||this;return n.onChangedHandler=function(o,i){n.isRendering||n.setState({changed:n.state&&n.state.changed?n.state.changed+1:1})},n.rootRef=u.a.createRef(),n}return 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,n){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 n={__html:this.locStr.renderedHtml};return u.a.createElement("span",{ref:this.rootRef,className:e,style:this.style,dangerouslySetInnerHTML:n})}return u.a.createElement("span",{ref:this.rootRef,className:e,style:this.style},this.locStr.renderedHtml)},t}(u.a.Component);c.Instance.registerElement(a.LocalizableString.defaultRenderer,function(r){return u.a.createElement(tt,r)});var so=function(){var r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,o){n.__proto__=o}||function(n,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(n[i]=o[i])},r(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");r(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),Sn=function(r){so(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.render=function(){return u.a.createElement("div",null,u.a.createElement("span",{className:this.props.cssClasses.error.icon||void 0,"aria-hidden":"true"}),u.a.createElement("span",{className:this.props.cssClasses.error.item||void 0},u.a.createElement(tt,{locStr:this.props.error.locText})))},t}(u.a.Component);c.Instance.registerElement("sv-question-error",function(r){return u.a.createElement(Sn,r)});var io=function(){var r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,o){n.__proto__=o}||function(n,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(n[i]=o[i])},r(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");r(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),On=function(r){io(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.render=function(){var e,n;return u.a.createElement("div",{className:"sv-skeleton-element",id:(e=this.props.element)===null||e===void 0?void 0:e.id,style:{height:(n=this.props.element)===null||n===void 0?void 0:n.skeletonHeight}})},t}(u.a.Component);c.Instance.registerElement("sv-skeleton",function(r){return u.a.createElement(On,r)});var nt=function(){var r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,o){n.__proto__=o}||function(n,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(n[i]=o[i])},r(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");r(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),Ln=function(r){nt(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return 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"),n=this.model.survey.getElementWrapperComponentData(this.model.survey,"logo-image");return c.Instance.createElement(e,{data:n})},t.prototype.render=function(){return u.a.createElement("div",{className:"sv-header--mobile"},this.model.survey.hasLogo?u.a.createElement("div",{className:"sv-header__logo"},this.renderLogoImage()):null,this.model.survey.hasTitle?u.a.createElement("div",{className:"sv-header__title",style:{maxWidth:this.model.textAreaWidth}},u.a.createElement(Y,{element:this.model.survey})):null,this.model.survey.renderedHasDescription?u.a.createElement("div",{className:"sv-header__description",style:{maxWidth:this.model.textAreaWidth}},u.a.createElement("div",{className:this.model.survey.css.description},g.renderLocString(this.model.survey.locDescription))):null)},t}(u.a.Component),Mn=function(r){nt(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return 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"),n=this.model.survey.getElementWrapperComponentData(this.model.survey,"logo-image");return c.Instance.createElement(e,{data:n})},t.prototype.render=function(){return u.a.createElement("div",{className:this.model.css,style:this.model.style},u.a.createElement("div",{className:"sv-header__cell-content",style:this.model.contentStyle},this.model.showLogo?u.a.createElement("div",{className:"sv-header__logo"},this.renderLogoImage()):null,this.model.showTitle?u.a.createElement("div",{className:"sv-header__title",style:{maxWidth:this.model.textAreaWidth}},u.a.createElement(Y,{element:this.model.survey})):null,this.model.showDescription?u.a.createElement("div",{className:"sv-header__description",style:{maxWidth:this.model.textAreaWidth}},u.a.createElement("div",{className:this.model.survey.css.description},g.renderLocString(this.model.survey.locDescription))):null))},t}(u.a.Component),In=function(r){nt(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return 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,this.props.survey.headerView!=="advanced")return null;var e=null;return this.props.survey.isMobile?e=u.a.createElement(Ln,{model:this.model}):e=u.a.createElement("div",{className:this.model.contentClasses,style:{maxWidth:this.model.maxWidth}},this.model.cells.map(function(n,o){return u.a.createElement(Mn,{key:o,model:n})})),u.a.createElement("div",{className:this.model.headerClasses,style:{height:this.model.renderedHeight}},this.model.backgroundImage?u.a.createElement("div",{style:this.model.backgroundImageStyle,className:this.model.backgroundImageClasses}):null,e)},t}(g);c.Instance.registerElement("sv-header",function(r){return u.a.createElement(In,r)});var ao=function(){var r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,o){n.__proto__=o}||function(n,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(n[i]=o[i])},r(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");r(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),bn=function(r){ao(t,r);function t(e){var n=r.call(this,e)||this;return n.onInput=function(o){n.locStr.text=o.target.innerText},n.onClick=function(o){o.preventDefault(),o.stopPropagation()},n.state={changed:0},n}return 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 u.a.createElement("span",{className:"sv-string-editor",contentEditable:"true",suppressContentEditableWarning:!0,style:this.style,dangerouslySetInnerHTML:e,onBlur:this.onInput,onClick:this.onClick})}return u.a.createElement("span",{className:"sv-string-editor",contentEditable:"true",suppressContentEditableWarning:!0,style:this.style,onBlur:this.onInput,onClick:this.onClick},this.locStr.renderedHtml)},t}(u.a.Component);c.Instance.registerElement(a.LocalizableString.editableRenderer,function(r){return u.a.createElement(bn,r)}),Object(a.checkLibraryVersion)("1.12.20","survey-react-ui")},react:function(S,h){S.exports=m},"react-dom":function(S,h){S.exports=x},"survey-core":function(S,h){S.exports=C}})})}(be)),be.exports}var Eo=wo();function Nn(I,l){var m,x;if(l.column.indexValue==0&&"item"in l.row){const C=l.row.item;C.customDescription!==void 0&&((m=l.htmlElement.parentElement)==null||m.children[0].children[0].setAttribute("description",C.customDescription),(x=l.htmlElement.parentElement)==null||x.children[0].children[0].classList.add("survey-tooltip"))}}function kn(I,l){if(l.question.hideCheckboxLabels){const m=l.cssClasses;m.root+=" hidden-checkbox-labels"}}function qo(I,l){var C;const m='[data-name="'+l.question.name+'"]',x=(C=document.querySelector(m))==null?void 0:C.querySelector("h5");x&&!x.classList.contains("sv-header-flex")&&l.question.updateElementCss()}function jn(I,l){if(l.name!=="description")return;let m=l.text;if(!m.length)return;const x=["e.g.","i.e.","etc.","vs."];for(const d of x)m.includes(d)&&(m=m.replace(d,d.slice(0,-1)));const C=m.split(". ");for(let d=0;d<C.length;d++)if(C[d].length!=0)for(const a of x)C[d].includes(a.slice(0,-1))&&(C[d]=C[d].replace(a.slice(0,-1),a));const S=d=>d.includes("*")?d.split("*").map((a,s)=>s==0?a:s==1?`<ul><li>${a}</li>`:`<li>${a}</li>`).join("")+"</ul>":d.endsWith(".")?d:d+".",h=C.map(d=>d.length?`<p>${S(d)}</p>`:null).join("");l.html=h}function So(I){var h;const l=!!I.visibleIf,m='[data-name="'+I.name+'"]',x=document.querySelector(m),C=x==null?void 0:x.querySelector("h5");if(l){x.style.display="none";return}C&&(C.style.textDecoration="line-through");const S=(h=document.querySelector(m))==null?void 0:h.querySelector(".sv-question__content");S&&(S.style.display="none")}function rt(I,l,m){var d;m.verificationStatus.set(I.name,l);const x=document.createElement("button");x.type="button",x.className="sv-action-bar-item verification",x.innerHTML=l,l==we.Unverified?(x.innerHTML="No change from previous year",x.className+=" verification-required",x.onclick=function(){m.mode!="display"&&(I.validate(),rt(I,we.Verified,m))}):(x.innerHTML="Answer updated",x.className+=" verification-ok");const C='[data-name="'+I.name+'"]',S=(d=document.querySelector(C))==null?void 0:d.querySelector("h5"),h=S==null?void 0:S.querySelector(".verification");h?h.replaceWith(x):S==null||S.appendChild(x)}function Oo(I){const l=Re.c(5),{surveyModel:m}=I;let x,C;l[0]!==m?(x=()=>{const h=(a,s)=>{m.verificationStatus.get(s.question.name)==we.Unverified&&rt(s.question,we.Edited,m)},d=(a,s)=>{var y;const u=m.verificationStatus.get(s.question.name),c=(y=s.question)==null?void 0:y.readOnly;u&&!c?rt(s.question,u,m):c&&So(s.question)};m.onAfterRenderQuestion.hasFunc(d)||(m.onAfterRenderQuestion.add(d),m.onAfterRenderQuestion.add(qo)),m.onValueChanged.hasFunc(h)||m.onValueChanged.add(h),m.onUpdateQuestionCssClasses.hasFunc(kn)||m.onUpdateQuestionCssClasses.add(kn),m.onMatrixAfterCellRender.hasFunc(Nn)||m.onMatrixAfterCellRender.add(Nn),m.onTextMarkdown.hasFunc(jn)||m.onTextMarkdown.add(jn)},C=[m],l[0]=m,l[1]=x,l[2]=C):(x=l[1],C=l[2]),F.useEffect(x,C);let S;return l[3]!==m?(S=L.jsx(Eo.Survey,{model:m}),l[3]=m,l[4]=S):S=l[4],S}function Lo(I){const l=Re.c(14),{surveyModel:m,pageNoSetter:x,pageNo:C}=I;let S;l[0]===Symbol.for("react.memo_cache_sentinel")?(S=[],l[0]=S):S=l[0];const[h,d]=F.useState(S),a=Io;let s,u;l[1]!==m?(s=()=>{const w=P=>{if(P&&P.pages){const T=[];P.pages.forEach(N=>{const O=N.questions.filter(Mo),B=O.length,R=O.filter(a).length,H=B-R,_=R/B;T.push({completionPercentage:_*100,unansweredPercentage:H/B*100,totalPages:P.pages.length,pageTitle:N.title})}),d(T)}};m.onValueChanged.add(P=>{w(P)}),w(m)},u=[m],l[1]=m,l[2]=s,l[3]=u):(s=l[2],u=l[3]),F.useEffect(s,u);let c;l[4]===Symbol.for("react.memo_cache_sentinel")?(c={height:"0.5rem",transition:"width 0.3s ease"},l[4]=c):c=l[4];const y=c;let E;if(l[5]!==C||l[6]!==x||l[7]!==h){let w;l[9]!==C||l[10]!==x?(w=(P,T)=>L.jsx(co,{xs:12,md:!0,onClick:()=>x(T),style:{cursor:"pointer",margin:"0.5rem"},children:L.jsxs("div",{children:[L.jsx("span",{style:{whiteSpace:"nowrap",fontSize:"1.5rem",marginRight:"0.25rem",fontWeight:"bold",color:"#2db394"},children:T+1}),L.jsx("span",{style:{whiteSpace:"nowrap",...C==T&&{fontWeight:"bold"}},children:P.pageTitle}),L.jsxs("div",{style:{display:"flex",flexWrap:"wrap"},children:[L.jsx("div",{style:{...y,width:`${P.completionPercentage}%`,backgroundColor:"#262261"}}),L.jsx("div",{style:{...y,width:`${P.unansweredPercentage}%`,backgroundColor:"#cdcdcd"}})]})]})},T),l[9]=C,l[10]=x,l[11]=w):w=l[11],E=h.map(w),l[5]=C,l[6]=x,l[7]=h,l[8]=E}else E=l[8];let g;return l[12]!==E?(g=L.jsx(ot,{className:"survey-progress",children:L.jsx(fe,{children:E})}),l[12]=E,l[13]=g):g=l[13],g}function Mo(I){return I.startWithNewLine}function Io(I){return!(I.value===null||I.value===void 0||I.value===""||I.getType()==="checkbox"&&I.value.length==0||I.getType()==="multipletext"&&(Object.keys(I.value).length===1&&Object.values(I.value)[0]===void 0||Object.keys(I.value).length===0))}function bo(I){const l=Re.c(70),{surveyModel:m,surveyActions:x,year:C,nren:S,children:h,onPageChange:d}=I,{user:a}=F.useContext(Bn),s=(m==null?void 0:m.currentPageNo)??0,u=(m==null?void 0:m.mode)==="edit",c=(m==null?void 0:m.lockedBy)??"",y=(m==null?void 0:m.status)??"";let E;l[0]!==d||l[1]!==m.currentPageNo?(E=()=>{d(m.currentPageNo+1)},l[0]=d,l[1]=m.currentPageNo,l[2]=E):E=l[2];const g=E;let w;l[3]!==d||l[4]!==x||l[5]!==m.currentPageNo?(w=async me=>{await x[me](),d(m.currentPageNo)},l[3]=d,l[4]=x,l[5]=m.currentPageNo,l[6]=w):w=l[6];const P=w,T=Ro;let N;l[7]!==P?(N=(me,Y)=>T(me,()=>P(Y)),l[7]=P,l[8]=N):N=l[8];const O=N;let B;l[9]!==u||l[10]!==g||l[11]!==c||l[12]!==a||l[13]!==s||l[14]!==O||l[15]!==m.editAllowed||l[16]!==m.visiblePages.length?(B=()=>L.jsxs("div",{className:"survey-edit-buttons-block",children:[!u&&!c&&m.editAllowed&&O("Start editing","startEdit"),!u&&c&&c==a.name&&O("Discard any unsaved changes and release your lock","releaseLock"),u&&O("Save progress","save"),u&&O("Save and stop editing","saveAndStopEdit"),u&&O("Complete Survey","complete"),s!==m.visiblePages.length-1&&T("Next Section",g)]}),l[9]=u,l[10]=g,l[11]=c,l[12]=a,l[13]=s,l[14]=O,l[15]=m.editAllowed,l[16]=m.visiblePages.length,l[17]=B):B=l[17];const R=B;let H;l[18]!==C?(H=L.jsxs("span",{className:"survey-title",children:[C," Compendium Survey "]}),l[18]=C,l[19]=H):H=l[19];let _;l[20]!==S?(_=L.jsxs("span",{className:"survey-title-nren",children:[" ",S," "]}),l[20]=S,l[21]=_):_=l[21];let Z;l[22]!==y?(Z=L.jsxs("span",{children:[" - ",y]}),l[22]=y,l[23]=Z):Z=l[23];let M;l[24]!==H||l[25]!==_||l[26]!==Z?(M=L.jsxs("h2",{children:[H,_,Z]}),l[24]=H,l[25]=_,l[26]=Z,l[27]=M):M=l[27];let le,ie;l[28]===Symbol.for("react.memo_cache_sentinel")?(ie={marginTop:"1rem",textAlign:"justify"},le=L.jsxs("p",{children:["To get started, click “","Start editing","” 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."]}),l[28]=le,l[29]=ie):(le=l[28],ie=l[29]);let K;l[30]!==C?(K=L.jsxs("p",{children:[L.jsxs("b",{children:["In a small change, the survey now asks about this calendar year, i.e. ",C]})," (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."]}),l[30]=C,l[31]=K):K=l[31];let $,ae;l[32]===Symbol.for("react.memo_cache_sentinel")?($=L.jsxs("p",{children:["Press the “","Save progress","“ or “","Save and stop editing","“ button to save all answers in the survey. When you reach the last section of the survey (Services), you will find a “","Complete Survey","“ 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 “","Complete Survey","“ button."]}),ae=L.jsx("p",{children:"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."}),l[32]=$,l[33]=ae):($=l[32],ae=l[33]);let W;l[34]!==K?(W=L.jsxs("div",{style:ie,children:[le,K,$,ae]}),l[34]=K,l[35]=W):W=l[35];let Q;l[36]===Symbol.for("react.memo_cache_sentinel")?(Q=L.jsx("a",{href:"mailto:Partner-Relations@geant.org",children:L.jsx("span",{children:"Partner-Relations@geant.org"})}),l[36]=Q):Q=l[36];let U;l[37]!==C?(U=L.jsxs("p",{children:["Thank you for taking the time to fill in the ",C," Compendium Survey. Any questions or requests can be sent to ",Q]}),l[37]=C,l[38]=U):U=l[38];let ee;l[39]!==u?(ee=u&&L.jsxs(L.Fragment,{children:[L.jsx("br",{}),L.jsxs("b",{children:["Remember to click “","Save and stop editing","” before leaving the page."]})]}),l[39]=u,l[40]=ee):ee=l[40];let te;l[41]!==W||l[42]!==U||l[43]!==ee||l[44]!==M?(te=L.jsxs(fe,{className:"survey-content",children:[M,W,U,ee]}),l[41]=W,l[42]=U,l[43]=ee,l[44]=M,l[45]=te):te=l[45];let ne;l[46]!==R?(ne=L.jsx(fe,{children:R()}),l[46]=R,l[47]=ne):ne=l[47];let re;l[48]!==u||l[49]!==c||l[50]!==a||l[51]!==m.editAllowed?(re=!u&&L.jsxs("div",{className:"survey-edit-explainer",children:[!c&&m.editAllowed&&"The survey is in read-only mode; click the “Start editing“ button to begin editing the answers.",!c&&!m.editAllowed&&"The survey is in read-only mode and can not be edited by you.",c&&c!=a.name&&"The survey is in read-only mode and currently being edited by: "+c+". To start editing the survey, ask them to complete their edits.",c&&c==a.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.']}),l[48]=u,l[49]=c,l[50]=a,l[51]=m.editAllowed,l[52]=re):re=l[52];let D;l[53]!==re?(D=L.jsx(fe,{className:"survey-content",children:re}),l[53]=re,l[54]=D):D=l[54];let oe;l[55]!==d||l[56]!==s||l[57]!==m?(oe=L.jsx(Lo,{surveyModel:m,pageNoSetter:d,pageNo:s}),l[55]=d,l[56]=s,l[57]=m,l[58]=oe):oe=l[58];let J;l[59]!==h||l[60]!==oe?(J=L.jsxs(fe,{children:[oe,h]}),l[59]=h,l[60]=oe,l[61]=J):J=l[61];let se;l[62]!==R?(se=L.jsx(fe,{children:R()}),l[62]=R,l[63]=se):se=l[63];let G;return l[64]!==te||l[65]!==ne||l[66]!==D||l[67]!==J||l[68]!==se?(G=L.jsxs(ot,{children:[te,ne,D,J,se]}),l[64]=te,l[65]=ne,l[66]=D,l[67]=J,l[68]=se,l[69]=G):G=l[69],G}function Ro(I,l){return L.jsx("button",{className:"sv-btn sv-btn--navigation",onClick:l,children:I})}function Po(I){const l=Re.c(5),m=I.when,x=I.onPageExit;let C;l[0]!==m||l[1]!==x||l[2]!==I.message?(C=()=>{if(m()){const h=window.confirm(I.message);return h&&x(),!h}return!1},l[0]=m,l[1]=x,l[2]=I.message,l[3]=C):C=l[3],po(C);let S;return l[4]===Symbol.for("react.memo_cache_sentinel")?(S=L.jsx("div",{}),l[4]=S):S=l[4],S}ue.Serializer.addProperty("itemvalue","customDescription:text");ue.Serializer.addProperty("question","hideCheckboxLabels:boolean");function Do({loadFrom:I}){const[l,m]=F.useState(),{year:x,nren:C}=ho(),[S,h]=F.useState("loading survey..."),{user:d}=F.useContext(Bn),s=!!d.id?d.permissions.admin:!1;ue.FunctionFactory.Instance.hasFunction("validateQuestion")||ue.FunctionFactory.Instance.register("validateQuestion",yo),ue.FunctionFactory.Instance.hasFunction("validateWebsiteUrl")||ue.FunctionFactory.Instance.register("validateWebsiteUrl",go);const{trackPageView:u}=fo(),c=F.useCallback(N=>(N.preventDefault(),N.returnValue=""),[]),y=F.useCallback(()=>{window.navigator.sendBeacon("/api/response/unlock/"+x+"/"+C)},[]),E=F.useCallback(()=>{window.navigator.sendBeacon("/api/response/unlock/"+x+"/"+C),removeEventListener("beforeunload",c,{capture:!0}),removeEventListener("pagehide",y)},[]);if(F.useEffect(()=>{async function N(){const O=await fetch(I+x+(C?"/"+C:"")),B=await O.json();if(!O.ok)throw"message"in B?new Error(B.message):new Error(`Request failed with status ${O.status}`);const R=new ue.Model(B.model);R.setVariable("surveyyear",x),R.setVariable("previousyear",parseInt(x)-1),R.showNavigationButtons=!1,R.requiredText="",R.verificationStatus=new Map;for(const H in B.verification_status)R.verificationStatus.set(H,B.verification_status[H]);R.data=B.data,R.clearIncorrectValues(!0),R.currentPageNo=B.page,R.mode=B.mode,R.lockedBy=B.locked_by,R.status=B.status,R.editAllowed=B.edit_allowed,m(R)}N().catch(O=>h("Error when loading survey: "+O.message)).then(()=>{u({documentTitle:`Survey for ${C} (${x})`})})},[]),!l)return S;const g=async(N,O)=>{if(!C)return"Saving not available in inpect/try mode";const B={lock_uuid:N.lockUUID,new_state:O,data:N.data,page:N.currentPageNo,verification_status:Object.fromEntries(N.verificationStatus)};try{const R=await fetch("/api/response/save/"+x+"/"+C,{method:"POST",headers:{"Content-Type":"application/json; charset=utf-8"},body:JSON.stringify(B)}),H=await R.json();if(!R.ok)return H.message;l.mode=H.mode,l.lockedBy=H.locked_by,l.status=H.status}catch(R){return"Unknown Error: "+R.message}},w=(N,O=!0)=>{let B="";const R=(_,Z)=>{_.verificationStatus.get(Z.name)==we.Unverified&&(B==""&&(B=Z.name),Z.error='Please verify that last years data is correct by editing the answer or pressing the "No change from previous year" button!')};O&&l.onValidateQuestion.add(R);const H=N();return O&&l.onValidateQuestion.remove(R),H||A("Validation failed!"),H},P={save:async()=>{if(!w(l.validate.bind(l,!0,!0),!1)){A("Please correct the invalid fields before saving!");return}const O=await g(l,"editing");O?A("Failed saving survey: "+O):A("Survey saved!")},complete:async()=>{if(w(l.validate.bind(l,!0,!0))){const O=await g(l,"completed");O?A("Failed completing survey: "+O):(A("Survey completed!"),removeEventListener("beforeunload",c,{capture:!0}),removeEventListener("pagehide",y))}},saveAndStopEdit:async()=>{if(!w(l.validate.bind(l,!0,!0),!1)){A("Please correct the invalid fields before saving.");return}const O=await g(l,"readonly");O?A("Failed saving survey: "+O):(A("Survey saved!"),removeEventListener("beforeunload",c,{capture:!0}),removeEventListener("pagehide",y))},startEdit:async()=>{const N=await fetch("/api/response/lock/"+x+"/"+C,{method:"POST"}),O=await N.json();if(!N.ok){A("Failed starting edit: "+O.message);return}addEventListener("pagehide",y),addEventListener("beforeunload",c,{capture:!0});for(const R in O.verification_status)l.verificationStatus.set(R,O.verification_status[R]);if(l.data=O.data,l.clearIncorrectValues(!0),l.mode=O.mode,l.lockedBy=O.locked_by,l.lockUUID=O.lock_uuid,l.status=O.status,!w(l.validate.bind(l,!0,!0),!1)){A("Some fields are invalid, please correct them.");return}},releaseLock:async()=>{const N=await fetch("/api/response/unlock/"+x+"/"+C,{method:"POST"}),O=await N.json();if(!N.ok){A("Failed releasing lock: "+O.message);return}l.mode=O.mode,l.lockedBy=O.locked_by,l.status=O.status},validatePage:()=>{w(l.validatePage.bind(l))&&A("Page validation successful!")}};l.css.question.title.includes("sv-header-flex")||(l.css.question.title="sv-title sv-question__title sv-header-flex",l.css.question.titleOnError="sv-question__title--error sv-error-color-fix");const T=N=>{l&&(l.currentPageNo=N,m(Object.create(l)))};return L.jsxs(L.Fragment,{children:[s?L.jsx(Co,{}):null,L.jsxs(ot,{className:"survey-container",children:[L.jsx(mo,{}),L.jsx(Po,{message:"Are you sure you want to leave this page? Information you've entered may not be saved.",when:()=>l.mode=="edit"&&!!C,onPageExit:E}),L.jsx(bo,{surveyModel:l,surveyActions:P,year:x,nren:C,onPageChange:T,children:L.jsx(Oo,{surveyModel:l})})]})]})}export{Do as default}; + */(function(s,u){S.exports=u()})(this,function(){return function(a){var s={};function u(c){if(s[c])return s[c].exports;var y=s[c]={i:c,l:!1,exports:{}};return a[c].call(y.exports,y,y.exports,u),y.l=!0,y.exports}return u.m=a,u.c=s,u.d=function(c,y,E){u.o(c,y)||Object.defineProperty(c,y,{enumerable:!0,get:E})},u.r=function(c){typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(c,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(c,"__esModule",{value:!0})},u.t=function(c,y){if(y&1&&(c=u(c)),y&8||y&4&&typeof c=="object"&&c&&c.__esModule)return c;var E=Object.create(null);if(u.r(E),Object.defineProperty(E,"default",{enumerable:!0,value:c}),y&2&&typeof c!="string")for(var g in c)u.d(E,g,(function(w){return c[w]}).bind(null,g));return E},u.n=function(c){var y=c&&c.__esModule?function(){return c.default}:function(){return c};return u.d(y,"a",y),y},u.o=function(c,y){return Object.prototype.hasOwnProperty.call(c,y)},u.p="",u(u.s="./packages/survey-core/src/iconsV2.ts")}({"./packages/survey-core/src/iconsV2.ts":function(a,s,u){u.r(s),u.d(s,"icons",function(){return y});var c=u("./packages/survey-core/src/images-v2 sync recursive \\.svg$"),y={};c.keys().forEach(function(E){y[E.substring(2,E.length-4).toLowerCase()]=c(E)})},"./packages/survey-core/src/images-v2 sync recursive \\.svg$":function(a,s,u){var c={"./ModernBooleanCheckChecked.svg":"./packages/survey-core/src/images-v2/ModernBooleanCheckChecked.svg","./ModernBooleanCheckInd.svg":"./packages/survey-core/src/images-v2/ModernBooleanCheckInd.svg","./ModernBooleanCheckUnchecked.svg":"./packages/survey-core/src/images-v2/ModernBooleanCheckUnchecked.svg","./ModernCheck.svg":"./packages/survey-core/src/images-v2/ModernCheck.svg","./ModernRadio.svg":"./packages/survey-core/src/images-v2/ModernRadio.svg","./ProgressButton.svg":"./packages/survey-core/src/images-v2/ProgressButton.svg","./RemoveFile.svg":"./packages/survey-core/src/images-v2/RemoveFile.svg","./TimerCircle.svg":"./packages/survey-core/src/images-v2/TimerCircle.svg","./add-24x24.svg":"./packages/survey-core/src/images-v2/add-24x24.svg","./arrowleft-16x16.svg":"./packages/survey-core/src/images-v2/arrowleft-16x16.svg","./arrowright-16x16.svg":"./packages/survey-core/src/images-v2/arrowright-16x16.svg","./camera-24x24.svg":"./packages/survey-core/src/images-v2/camera-24x24.svg","./camera-32x32.svg":"./packages/survey-core/src/images-v2/camera-32x32.svg","./cancel-24x24.svg":"./packages/survey-core/src/images-v2/cancel-24x24.svg","./check-16x16.svg":"./packages/survey-core/src/images-v2/check-16x16.svg","./check-24x24.svg":"./packages/survey-core/src/images-v2/check-24x24.svg","./chevrondown-24x24.svg":"./packages/survey-core/src/images-v2/chevrondown-24x24.svg","./chevronright-16x16.svg":"./packages/survey-core/src/images-v2/chevronright-16x16.svg","./clear-16x16.svg":"./packages/survey-core/src/images-v2/clear-16x16.svg","./clear-24x24.svg":"./packages/survey-core/src/images-v2/clear-24x24.svg","./close-16x16.svg":"./packages/survey-core/src/images-v2/close-16x16.svg","./close-24x24.svg":"./packages/survey-core/src/images-v2/close-24x24.svg","./collapse-16x16.svg":"./packages/survey-core/src/images-v2/collapse-16x16.svg","./collapsedetails-16x16.svg":"./packages/survey-core/src/images-v2/collapsedetails-16x16.svg","./delete-24x24.svg":"./packages/survey-core/src/images-v2/delete-24x24.svg","./drag-24x24.svg":"./packages/survey-core/src/images-v2/drag-24x24.svg","./draghorizontal-24x16.svg":"./packages/survey-core/src/images-v2/draghorizontal-24x16.svg","./expand-16x16.svg":"./packages/survey-core/src/images-v2/expand-16x16.svg","./expanddetails-16x16.svg":"./packages/survey-core/src/images-v2/expanddetails-16x16.svg","./file-72x72.svg":"./packages/survey-core/src/images-v2/file-72x72.svg","./flip-24x24.svg":"./packages/survey-core/src/images-v2/flip-24x24.svg","./folder-24x24.svg":"./packages/survey-core/src/images-v2/folder-24x24.svg","./fullsize-16x16.svg":"./packages/survey-core/src/images-v2/fullsize-16x16.svg","./image-48x48.svg":"./packages/survey-core/src/images-v2/image-48x48.svg","./loading-48x48.svg":"./packages/survey-core/src/images-v2/loading-48x48.svg","./maximize-16x16.svg":"./packages/survey-core/src/images-v2/maximize-16x16.svg","./minimize-16x16.svg":"./packages/survey-core/src/images-v2/minimize-16x16.svg","./more-24x24.svg":"./packages/survey-core/src/images-v2/more-24x24.svg","./navmenu-24x24.svg":"./packages/survey-core/src/images-v2/navmenu-24x24.svg","./noimage-48x48.svg":"./packages/survey-core/src/images-v2/noimage-48x48.svg","./ranking-arrows.svg":"./packages/survey-core/src/images-v2/ranking-arrows.svg","./rankingundefined-16x16.svg":"./packages/survey-core/src/images-v2/rankingundefined-16x16.svg","./rating-star-2.svg":"./packages/survey-core/src/images-v2/rating-star-2.svg","./rating-star-small-2.svg":"./packages/survey-core/src/images-v2/rating-star-small-2.svg","./rating-star-small.svg":"./packages/survey-core/src/images-v2/rating-star-small.svg","./rating-star.svg":"./packages/survey-core/src/images-v2/rating-star.svg","./reorder-24x24.svg":"./packages/survey-core/src/images-v2/reorder-24x24.svg","./restoredown-16x16.svg":"./packages/survey-core/src/images-v2/restoredown-16x16.svg","./search-24x24.svg":"./packages/survey-core/src/images-v2/search-24x24.svg","./smiley-rate1-24x24.svg":"./packages/survey-core/src/images-v2/smiley-rate1-24x24.svg","./smiley-rate10-24x24.svg":"./packages/survey-core/src/images-v2/smiley-rate10-24x24.svg","./smiley-rate2-24x24.svg":"./packages/survey-core/src/images-v2/smiley-rate2-24x24.svg","./smiley-rate3-24x24.svg":"./packages/survey-core/src/images-v2/smiley-rate3-24x24.svg","./smiley-rate4-24x24.svg":"./packages/survey-core/src/images-v2/smiley-rate4-24x24.svg","./smiley-rate5-24x24.svg":"./packages/survey-core/src/images-v2/smiley-rate5-24x24.svg","./smiley-rate6-24x24.svg":"./packages/survey-core/src/images-v2/smiley-rate6-24x24.svg","./smiley-rate7-24x24.svg":"./packages/survey-core/src/images-v2/smiley-rate7-24x24.svg","./smiley-rate8-24x24.svg":"./packages/survey-core/src/images-v2/smiley-rate8-24x24.svg","./smiley-rate9-24x24.svg":"./packages/survey-core/src/images-v2/smiley-rate9-24x24.svg"};function y(g){var w=E(g);return u(w)}function E(g){if(!u.o(c,g)){var w=new Error("Cannot find module '"+g+"'");throw w.code="MODULE_NOT_FOUND",w}return c[g]}y.keys=function(){return Object.keys(c)},y.resolve=E,a.exports=y,y.id="./packages/survey-core/src/images-v2 sync recursive \\.svg$"},"./packages/survey-core/src/images-v2/ModernBooleanCheckChecked.svg":function(a,s){a.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>'},"./packages/survey-core/src/images-v2/ModernBooleanCheckInd.svg":function(a,s){a.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>'},"./packages/survey-core/src/images-v2/ModernBooleanCheckUnchecked.svg":function(a,s){a.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>'},"./packages/survey-core/src/images-v2/ModernCheck.svg":function(a,s){a.exports='<svg viewBox="0 0 24 24"><path d="M5,13l2-2l3,3l7-7l2,2l-9,9L5,13z"></path></svg>'},"./packages/survey-core/src/images-v2/ModernRadio.svg":function(a,s){a.exports='<svg viewBox="-12 -12 24 24"><circle r="6" cx="0" cy="0"></circle></svg>'},"./packages/survey-core/src/images-v2/ProgressButton.svg":function(a,s){a.exports='<svg viewBox="0 0 10 10"><polygon points="2,2 0,4 5,9 10,4 8,2 5,5 "></polygon></svg>'},"./packages/survey-core/src/images-v2/RemoveFile.svg":function(a,s){a.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>'},"./packages/survey-core/src/images-v2/TimerCircle.svg":function(a,s){a.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>'},"./packages/survey-core/src/images-v2/add-24x24.svg":function(a,s){a.exports='<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path d="M15.75 12C15.75 12.41 15.41 12.75 15 12.75H12.75V15C12.75 15.41 12.41 15.75 12 15.75C11.59 15.75 11.25 15.41 11.25 15V12.75H9C8.59 12.75 8.25 12.41 8.25 12C8.25 11.59 8.59 11.25 9 11.25H11.25V9C11.25 8.59 11.59 8.25 12 8.25C12.41 8.25 12.75 8.59 12.75 9V11.25H15C15.41 11.25 15.75 11.59 15.75 12ZM21.75 12C21.75 17.38 17.38 21.75 12 21.75C6.62 21.75 2.25 17.38 2.25 12C2.25 6.62 6.62 2.25 12 2.25C17.38 2.25 21.75 6.62 21.75 12ZM20.25 12C20.25 7.45 16.55 3.75 12 3.75C7.45 3.75 3.75 7.45 3.75 12C3.75 16.55 7.45 20.25 12 20.25C16.55 20.25 20.25 16.55 20.25 12Z"></path></svg>'},"./packages/survey-core/src/images-v2/arrowleft-16x16.svg":function(a,s){a.exports='<svg viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg"><path d="M14.7475 7.9975C14.7475 8.4075 14.4075 8.7475 13.9975 8.7475H3.8075L7.5275 12.4675C7.8175 12.7575 7.8175 13.2375 7.5275 13.5275C7.3775 13.6775 7.1875 13.7475 6.9975 13.7475C6.8075 13.7475 6.6175 13.6775 6.4675 13.5275L1.4675 8.5275C1.1775 8.2375 1.1775 7.7575 1.4675 7.4675L6.4675 2.4675C6.7575 2.1775 7.2375 2.1775 7.5275 2.4675C7.8175 2.7575 7.8175 3.2375 7.5275 3.5275L3.8075 7.2475H13.9975C14.4075 7.2475 14.7475 7.5875 14.7475 7.9975Z"></path></svg>'},"./packages/survey-core/src/images-v2/arrowright-16x16.svg":function(a,s){a.exports='<svg viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg"><path d="M14.53 8.5275L9.53 13.5275C9.38 13.6775 9.19 13.7475 9 13.7475C8.81 13.7475 8.62 13.6775 8.47 13.5275C8.18 13.2375 8.18 12.7575 8.47 12.4675L12.19 8.7475H2C1.59 8.7475 1.25 8.4075 1.25 7.9975C1.25 7.5875 1.59 7.2475 2 7.2475H12.19L8.47 3.5275C8.18 3.2375 8.18 2.7575 8.47 2.4675C8.76 2.1775 9.24 2.1775 9.53 2.4675L14.53 7.4675C14.82 7.7575 14.82 8.2375 14.53 8.5275Z"></path></svg>'},"./packages/survey-core/src/images-v2/camera-24x24.svg":function(a,s){a.exports='<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path d="M19.19 4.25H17.12C16.72 4.25 16.35 4.03 16.17 3.67C15.73 2.8 14.86 2.25 13.88 2.25H10.12C9.14 2.25 8.27 2.79 7.83 3.67C7.65 4.03 7.29 4.25 6.88 4.25H4.81C3.4 4.25 2.25 5.4 2.25 6.81V18.19C2.25 19.6 3.4 20.75 4.81 20.75H19.19C20.6 20.75 21.75 19.6 21.75 18.19V6.81C21.75 5.4 20.6 4.25 19.19 4.25ZM20.25 18.19C20.25 18.77 19.78 19.25 19.19 19.25H4.81C4.23 19.25 3.75 18.78 3.75 18.19V6.81C3.75 6.23 4.22 5.75 4.81 5.75H6.88C7.86 5.75 8.73 5.21 9.17 4.33C9.35 3.97 9.71 3.75 10.12 3.75H13.88C14.28 3.75 14.65 3.97 14.83 4.33C15.27 5.2 16.14 5.75 17.12 5.75H19.19C19.77 5.75 20.25 6.22 20.25 6.81V18.19ZM12 6.25C8.83 6.25 6.25 8.83 6.25 12C6.25 15.17 8.83 17.75 12 17.75C15.17 17.75 17.75 15.17 17.75 12C17.75 8.83 15.17 6.25 12 6.25ZM12 16.25C9.66 16.25 7.75 14.34 7.75 12C7.75 9.66 9.66 7.75 12 7.75C14.34 7.75 16.25 9.66 16.25 12C16.25 14.34 14.34 16.25 12 16.25ZM14.75 12C14.75 13.52 13.52 14.75 12 14.75C11.59 14.75 11.25 14.41 11.25 14C11.25 13.59 11.59 13.25 12 13.25C12.69 13.25 13.25 12.69 13.25 12C13.25 11.59 13.59 11.25 14 11.25C14.41 11.25 14.75 11.59 14.75 12Z"></path></svg>'},"./packages/survey-core/src/images-v2/camera-32x32.svg":function(a,s){a.exports='<svg viewBox="0 0 32 32" xmlns="http://www.w3.org/2000/svg"><path d="M25 7.25H22.19C21.73 7.25 21.31 7 21.09 6.59L20.89 6.22C20.23 5.01 18.97 4.25 17.59 4.25H14.41C13.03 4.25 11.77 5 11.11 6.22L10.91 6.6C10.69 7 10.27 7.26 9.81 7.26H7C4.93 7.26 3.25 8.94 3.25 11.01V24.01C3.25 26.08 4.93 27.76 7 27.76H25C27.07 27.76 28.75 26.08 28.75 24.01V11C28.75 8.93 27.07 7.25 25 7.25ZM27.25 24C27.25 25.24 26.24 26.25 25 26.25H7C5.76 26.25 4.75 25.24 4.75 24V11C4.75 9.76 5.76 8.75 7 8.75H9.81C10.82 8.75 11.75 8.2 12.23 7.31L12.43 6.94C12.82 6.21 13.58 5.76 14.41 5.76H17.59C18.42 5.76 19.18 6.21 19.57 6.94L19.77 7.31C20.25 8.2 21.18 8.76 22.19 8.76H25C26.24 8.76 27.25 9.77 27.25 11.01V24.01V24ZM16 10.25C12.28 10.25 9.25 13.28 9.25 17C9.25 20.72 12.28 23.75 16 23.75C19.72 23.75 22.75 20.72 22.75 17C22.75 13.28 19.72 10.25 16 10.25ZM16 22.25C13.11 22.25 10.75 19.89 10.75 17C10.75 14.11 13.11 11.75 16 11.75C18.89 11.75 21.25 14.11 21.25 17C21.25 19.89 18.89 22.25 16 22.25ZM19.75 17C19.75 19.07 18.07 20.75 16 20.75C15.59 20.75 15.25 20.41 15.25 20C15.25 19.59 15.59 19.25 16 19.25C17.24 19.25 18.25 18.24 18.25 17C18.25 16.59 18.59 16.25 19 16.25C19.41 16.25 19.75 16.59 19.75 17Z"></path></svg>'},"./packages/survey-core/src/images-v2/cancel-24x24.svg":function(a,s){a.exports='<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path d="M12.8099 11.75L15.2799 9.28C15.5699 8.99 15.5699 8.51 15.2799 8.22C14.9899 7.93 14.5099 7.93 14.2199 8.22L11.7499 10.69L9.27994 8.22C8.98994 7.93 8.50994 7.93 8.21994 8.22C7.92994 8.51 7.92994 8.99 8.21994 9.28L10.6899 11.75L8.21994 14.22C7.92994 14.51 7.92994 14.99 8.21994 15.28C8.36994 15.43 8.55994 15.5 8.74994 15.5C8.93994 15.5 9.12994 15.43 9.27994 15.28L11.7499 12.81L14.2199 15.28C14.3699 15.43 14.5599 15.5 14.7499 15.5C14.9399 15.5 15.1299 15.43 15.2799 15.28C15.5699 14.99 15.5699 14.51 15.2799 14.22L12.8099 11.75Z"></path></svg>'},"./packages/survey-core/src/images-v2/check-16x16.svg":function(a,s){a.exports='<svg viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg"><path d="M14.0275 5.0275L6.5275 12.5275C6.3775 12.6775 6.1875 12.7475 5.9975 12.7475C5.8075 12.7475 5.6175 12.6775 5.4675 12.5275L2.4675 9.5275C2.1775 9.2375 2.1775 8.7575 2.4675 8.4675C2.7575 8.1775 3.2375 8.1775 3.5275 8.4675L5.9975 10.9375L12.9675 3.9675C13.2575 3.6775 13.7375 3.6775 14.0275 3.9675C14.3175 4.2575 14.3175 4.7375 14.0275 5.0275Z"></path></svg>'},"./packages/survey-core/src/images-v2/check-24x24.svg":function(a,s){a.exports='<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path d="M19.5275 7.5275L9.5275 17.5275C9.3775 17.6775 9.1875 17.7475 8.9975 17.7475C8.8075 17.7475 8.6175 17.6775 8.4675 17.5275L4.4675 13.5275C4.1775 13.2375 4.1775 12.7575 4.4675 12.4675C4.7575 12.1775 5.2375 12.1775 5.5275 12.4675L8.9975 15.9375L18.4675 6.4675C18.7575 6.1775 19.2375 6.1775 19.5275 6.4675C19.8175 6.7575 19.8175 7.2375 19.5275 7.5275Z"></path></svg>'},"./packages/survey-core/src/images-v2/chevrondown-24x24.svg":function(a,s){a.exports='<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path d="M16.5275 10.5275L12.5275 14.5275C12.3775 14.6775 12.1875 14.7475 11.9975 14.7475C11.8075 14.7475 11.6175 14.6775 11.4675 14.5275L7.4675 10.5275C7.1775 10.2375 7.1775 9.7575 7.4675 9.4675C7.7575 9.1775 8.2375 9.1775 8.5275 9.4675L11.9975 12.9375L15.4675 9.4675C15.7575 9.1775 16.2375 9.1775 16.5275 9.4675C16.8175 9.7575 16.8175 10.2375 16.5275 10.5275Z"></path></svg>'},"./packages/survey-core/src/images-v2/chevronright-16x16.svg":function(a,s){a.exports='<svg viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg"><path d="M11.35 8.34627L7.35 12.3463C7.25 12.4463 7.12 12.4963 7 12.4963C6.88 12.4963 6.74 12.4463 6.65 12.3463C6.45 12.1463 6.45 11.8363 6.65 11.6363L10.3 7.98627L6.65 4.34627C6.45 4.15627 6.45 3.83627 6.65 3.64627C6.85 3.45627 7.16 3.44627 7.35 3.64627L11.35 7.64627C11.55 7.84627 11.55 8.15627 11.35 8.35627V8.34627Z"></path></svg>'},"./packages/survey-core/src/images-v2/clear-16x16.svg":function(a,s){a.exports='<svg viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg"><path d="M12.35 11.65C12.55 11.85 12.55 12.16 12.35 12.36C12.25 12.46 12.12 12.51 12 12.51C11.88 12.51 11.74 12.46 11.65 12.36L8 8.71L4.35 12.36C4.25 12.46 4.12 12.51 4 12.51C3.88 12.51 3.74 12.46 3.65 12.36C3.45 12.16 3.45 11.85 3.65 11.65L7.3 8L3.65 4.35C3.45 4.16 3.45 3.84 3.65 3.65C3.85 3.46 4.16 3.45 4.35 3.65L8 7.3L11.65 3.65C11.85 3.45 12.16 3.45 12.36 3.65C12.56 3.85 12.56 4.16 12.36 4.36L8.71 8.01L12.36 11.66L12.35 11.65Z"></path></svg>'},"./packages/survey-core/src/images-v2/clear-24x24.svg":function(a,s){a.exports='<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path d="M20.12 10.9325C20.64 10.4125 20.93 9.7225 20.93 8.9925C20.93 8.2625 20.64 7.5725 20.12 7.0525L16.95 3.8825C15.88 2.8125 14.13 2.8125 13.06 3.8825L3.88 13.0525C3.36 13.5725 3.07 14.2625 3.07 14.9925C3.07 15.7225 3.36 16.4125 3.88 16.9325L5.64 18.6925C6.57 19.6225 7.78 20.0825 9 20.0825C10.22 20.0825 11.43 19.6225 12.36 18.6925L20.12 10.9325ZM14.12 4.9325C14.36 4.6925 14.67 4.5625 15 4.5625C15.33 4.5625 15.65 4.6925 15.88 4.9325L19.05 8.1025C19.54 8.5925 19.54 9.3825 19.05 9.8725L12.99 15.9325L8.05 10.9925L14.12 4.9325ZM6.7 17.6325L4.94 15.8725C4.45 15.3825 4.45 14.5925 4.94 14.1025L7 12.0425L11.94 16.9825L11.3 17.6225C10.07 18.8525 7.93 18.8525 6.7 17.6225V17.6325ZM22.75 20.9925C22.75 21.4025 22.41 21.7425 22 21.7425H14C13.59 21.7425 13.25 21.4025 13.25 20.9925C13.25 20.5825 13.59 20.2425 14 20.2425H22C22.41 20.2425 22.75 20.5825 22.75 20.9925ZM4.75 20.9925C4.75 21.4025 4.41 21.7425 4 21.7425H2C1.59 21.7425 1.25 21.4025 1.25 20.9925C1.25 20.5825 1.59 20.2425 2 20.2425H4C4.41 20.2425 4.75 20.5825 4.75 20.9925Z"></path></svg>'},"./packages/survey-core/src/images-v2/close-16x16.svg":function(a,s){a.exports='<svg viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg"><path d="M13.5275 12.4675C13.8175 12.7575 13.8175 13.2375 13.5275 13.5275C13.3775 13.6775 13.1875 13.7475 12.9975 13.7475C12.8075 13.7475 12.6175 13.6775 12.4675 13.5275L7.9975 9.0575L3.5275 13.5275C3.3775 13.6775 3.1875 13.7475 2.9975 13.7475C2.8075 13.7475 2.6175 13.6775 2.4675 13.5275C2.1775 13.2375 2.1775 12.7575 2.4675 12.4675L6.9375 7.9975L2.4675 3.5275C2.1775 3.2375 2.1775 2.7575 2.4675 2.4675C2.7575 2.1775 3.2375 2.1775 3.5275 2.4675L7.9975 6.9375L12.4675 2.4675C12.7575 2.1775 13.2375 2.1775 13.5275 2.4675C13.8175 2.7575 13.8175 3.2375 13.5275 3.5275L9.0575 7.9975L13.5275 12.4675Z"></path></svg>'},"./packages/survey-core/src/images-v2/close-24x24.svg":function(a,s){a.exports='<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path d="M19.5275 18.4675C19.8175 18.7575 19.8175 19.2375 19.5275 19.5275C19.3775 19.6775 19.1875 19.7475 18.9975 19.7475C18.8075 19.7475 18.6175 19.6775 18.4675 19.5275L11.9975 13.0575L5.5275 19.5275C5.3775 19.6775 5.1875 19.7475 4.9975 19.7475C4.8075 19.7475 4.6175 19.6775 4.4675 19.5275C4.1775 19.2375 4.1775 18.7575 4.4675 18.4675L10.9375 11.9975L4.4675 5.5275C4.1775 5.2375 4.1775 4.7575 4.4675 4.4675C4.7575 4.1775 5.2375 4.1775 5.5275 4.4675L11.9975 10.9375L18.4675 4.4675C18.7575 4.1775 19.2375 4.1775 19.5275 4.4675C19.8175 4.7575 19.8175 5.2375 19.5275 5.5275L13.0575 11.9975L19.5275 18.4675Z"></path></svg>'},"./packages/survey-core/src/images-v2/collapse-16x16.svg":function(a,s){a.exports='<svg viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg"><path d="M11.75 8C11.75 8.41 11.41 8.75 11 8.75H5C4.59 8.75 4.25 8.41 4.25 8C4.25 7.59 4.59 7.25 5 7.25H11C11.41 7.25 11.75 7.59 11.75 8Z"></path></svg>'},"./packages/survey-core/src/images-v2/collapsedetails-16x16.svg":function(a,s){a.exports='<svg viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg"><path d="M11.75 8C11.75 8.41 11.41 8.75 11 8.75H5C4.59 8.75 4.25 8.41 4.25 8C4.25 7.59 4.59 7.25 5 7.25H11C11.41 7.25 11.75 7.59 11.75 8Z"></path></svg>'},"./packages/survey-core/src/images-v2/delete-24x24.svg":function(a,s){a.exports='<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path d="M12.75 9V17C12.75 17.41 12.41 17.75 12 17.75C11.59 17.75 11.25 17.41 11.25 17V9C11.25 8.59 11.59 8.25 12 8.25C12.41 8.25 12.75 8.59 12.75 9ZM14.25 9V17C14.25 17.41 14.59 17.75 15 17.75C15.41 17.75 15.75 17.41 15.75 17V9C15.75 8.59 15.41 8.25 15 8.25C14.59 8.25 14.25 8.59 14.25 9ZM9 8.25C8.59 8.25 8.25 8.59 8.25 9V17C8.25 17.41 8.59 17.75 9 17.75C9.41 17.75 9.75 17.41 9.75 17V9C9.75 8.59 9.41 8.25 9 8.25ZM20.75 6C20.75 6.41 20.41 6.75 20 6.75H18.75V18C18.75 19.52 17.52 20.75 16 20.75H8C6.48 20.75 5.25 19.52 5.25 18V6.75H4C3.59 6.75 3.25 6.41 3.25 6C3.25 5.59 3.59 5.25 4 5.25H8.25V4C8.25 3.04 9.04 2.25 10 2.25H14C14.96 2.25 15.75 3.04 15.75 4V5.25H20C20.41 5.25 20.75 5.59 20.75 6ZM9.75 5.25H14.25V4C14.25 3.86 14.14 3.75 14 3.75H10C9.86 3.75 9.75 3.86 9.75 4V5.25ZM17.25 6.75H6.75V18C6.75 18.69 7.31 19.25 8 19.25H16C16.69 19.25 17.25 18.69 17.25 18V6.75Z"></path></svg>'},"./packages/survey-core/src/images-v2/drag-24x24.svg":function(a,s){a.exports='<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path d="M14.5 8.75C15.19 8.75 15.75 8.19 15.75 7.5C15.75 6.81 15.19 6.25 14.5 6.25C13.81 6.25 13.25 6.81 13.25 7.5C13.25 8.19 13.81 8.75 14.5 8.75ZM14.5 7.25C14.64 7.25 14.75 7.36 14.75 7.5C14.75 7.78 14.25 7.78 14.25 7.5C14.25 7.36 14.36 7.25 14.5 7.25ZM9.5 6.25C8.81 6.25 8.25 6.81 8.25 7.5C8.25 8.19 8.81 8.75 9.5 8.75C10.19 8.75 10.75 8.19 10.75 7.5C10.75 6.81 10.19 6.25 9.5 6.25ZM9.25 7.5C9.25 7.36 9.36 7.25 9.5 7.25C9.64 7.25 9.75 7.36 9.75 7.5C9.75 7.78 9.25 7.78 9.25 7.5ZM14.5 11.25C13.81 11.25 13.25 11.81 13.25 12.5C13.25 13.19 13.81 13.75 14.5 13.75C15.19 13.75 15.75 13.19 15.75 12.5C15.75 11.81 15.19 11.25 14.5 11.25ZM14.25 12.5C14.25 12.36 14.36 12.25 14.5 12.25C14.64 12.25 14.75 12.36 14.75 12.5C14.75 12.78 14.25 12.78 14.25 12.5ZM9.5 11.25C8.81 11.25 8.25 11.81 8.25 12.5C8.25 13.19 8.81 13.75 9.5 13.75C10.19 13.75 10.75 13.19 10.75 12.5C10.75 11.81 10.19 11.25 9.5 11.25ZM9.25 12.5C9.25 12.36 9.36 12.25 9.5 12.25C9.64 12.25 9.75 12.36 9.75 12.5C9.75 12.78 9.25 12.78 9.25 12.5ZM14.5 16.25C13.81 16.25 13.25 16.81 13.25 17.5C13.25 18.19 13.81 18.75 14.5 18.75C15.19 18.75 15.75 18.19 15.75 17.5C15.75 16.81 15.19 16.25 14.5 16.25ZM14.25 17.5C14.25 17.36 14.36 17.25 14.5 17.25C14.64 17.25 14.75 17.36 14.75 17.5C14.75 17.78 14.25 17.78 14.25 17.5ZM9.5 16.25C8.81 16.25 8.25 16.81 8.25 17.5C8.25 18.19 8.81 18.75 9.5 18.75C10.19 18.75 10.75 18.19 10.75 17.5C10.75 16.81 10.19 16.25 9.5 16.25ZM9.25 17.5C9.25 17.36 9.36 17.25 9.5 17.25C9.64 17.25 9.75 17.36 9.75 17.5C9.75 17.78 9.25 17.78 9.25 17.5Z"></path></svg>'},"./packages/survey-core/src/images-v2/draghorizontal-24x16.svg":function(a,s){a.exports='<svg viewBox="0 0 24 16" xmlns="http://www.w3.org/2000/svg"><path d="M17.5 9.25C16.81 9.25 16.25 9.81 16.25 10.5C16.25 11.19 16.81 11.75 17.5 11.75C18.19 11.75 18.75 11.19 18.75 10.5C18.75 9.81 18.19 9.25 17.5 9.25ZM17.25 10.5C17.25 10.36 17.36 10.25 17.5 10.25C17.64 10.25 17.75 10.36 17.75 10.5C17.75 10.78 17.25 10.78 17.25 10.5ZM17.5 6.75C18.19 6.75 18.75 6.19 18.75 5.5C18.75 4.81 18.19 4.25 17.5 4.25C16.81 4.25 16.25 4.81 16.25 5.5C16.25 6.19 16.81 6.75 17.5 6.75ZM17.5 5.25C17.64 5.25 17.75 5.36 17.75 5.5C17.75 5.78 17.25 5.78 17.25 5.5C17.25 5.36 17.36 5.25 17.5 5.25ZM12.5 9.25C11.81 9.25 11.25 9.81 11.25 10.5C11.25 11.19 11.81 11.75 12.5 11.75C13.19 11.75 13.75 11.19 13.75 10.5C13.75 9.81 13.19 9.25 12.5 9.25ZM12.25 10.5C12.25 10.36 12.36 10.25 12.5 10.25C12.64 10.25 12.75 10.36 12.75 10.5C12.75 10.78 12.25 10.78 12.25 10.5ZM12.5 4.25C11.81 4.25 11.25 4.81 11.25 5.5C11.25 6.19 11.81 6.75 12.5 6.75C13.19 6.75 13.75 6.19 13.75 5.5C13.75 4.81 13.19 4.25 12.5 4.25ZM12.25 5.5C12.25 5.36 12.36 5.25 12.5 5.25C12.64 5.25 12.75 5.36 12.75 5.5C12.75 5.78 12.25 5.78 12.25 5.5ZM7.5 9.25C6.81 9.25 6.25 9.81 6.25 10.5C6.25 11.19 6.81 11.75 7.5 11.75C8.19 11.75 8.75 11.19 8.75 10.5C8.75 9.81 8.19 9.25 7.5 9.25ZM7.25 10.5C7.25 10.36 7.36 10.25 7.5 10.25C7.64 10.25 7.75 10.36 7.75 10.5C7.75 10.78 7.25 10.78 7.25 10.5ZM7.5 4.25C6.81 4.25 6.25 4.81 6.25 5.5C6.25 6.19 6.81 6.75 7.5 6.75C8.19 6.75 8.75 6.19 8.75 5.5C8.75 4.81 8.19 4.25 7.5 4.25ZM7.25 5.5C7.25 5.36 7.36 5.25 7.5 5.25C7.64 5.25 7.75 5.36 7.75 5.5C7.75 5.78 7.25 5.78 7.25 5.5Z"></path></svg>'},"./packages/survey-core/src/images-v2/expand-16x16.svg":function(a,s){a.exports='<svg viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg"><path d="M11.75 8C11.75 8.41 11.41 8.75 11 8.75H8.75V11C8.75 11.41 8.41 11.75 8 11.75C7.59 11.75 7.25 11.41 7.25 11V8.75H5C4.59 8.75 4.25 8.41 4.25 8C4.25 7.59 4.59 7.25 5 7.25H7.25V5C7.25 4.59 7.59 4.25 8 4.25C8.41 4.25 8.75 4.59 8.75 5V7.25H11C11.41 7.25 11.75 7.59 11.75 8Z"></path></svg>'},"./packages/survey-core/src/images-v2/expanddetails-16x16.svg":function(a,s){a.exports='<svg viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg"><path d="M11.75 8C11.75 8.41 11.41 8.75 11 8.75H8.75V11C8.75 11.41 8.41 11.75 8 11.75C7.59 11.75 7.25 11.41 7.25 11V8.75H5C4.59 8.75 4.25 8.41 4.25 8C4.25 7.59 4.59 7.25 5 7.25H7.25V5C7.25 4.59 7.59 4.25 8 4.25C8.41 4.25 8.75 4.59 8.75 5V7.25H11C11.41 7.25 11.75 7.59 11.75 8Z"></path></svg>'},"./packages/survey-core/src/images-v2/file-72x72.svg":function(a,s){a.exports='<svg viewBox="0 0 72 72" xmlns="http://www.w3.org/2000/svg"><path d="M62.83 12.83L53.17 3.17C52.7982 2.79866 52.357 2.50421 51.8714 2.30346C51.3858 2.1027 50.8654 1.99959 50.34 2H14C12.4087 2 10.8826 2.63214 9.75735 3.75736C8.63214 4.88258 8 6.4087 8 8V64C8 65.5913 8.63214 67.1174 9.75735 68.2426C10.8826 69.3679 12.4087 70 14 70H58C59.5913 70 61.1174 69.3679 62.2426 68.2426C63.3679 67.1174 64 65.5913 64 64V15.66C64.0004 15.1346 63.8973 14.6142 63.6965 14.1286C63.4958 13.643 63.2013 13.2018 62.83 12.83ZM52 4.83L61.17 14H56C54.9391 14 53.9217 13.5786 53.1716 12.8284C52.4214 12.0783 52 11.0609 52 10V4.83ZM62 64C62 65.0609 61.5786 66.0783 60.8284 66.8284C60.0783 67.5786 59.0609 68 58 68H14C12.9391 68 11.9217 67.5786 11.1716 66.8284C10.4214 66.0783 10 65.0609 10 64V8C10 6.93914 10.4214 5.92172 11.1716 5.17157C11.9217 4.42143 12.9391 4 14 4H50V10C50 11.5913 50.6321 13.1174 51.7574 14.2426C52.8826 15.3679 54.4087 16 56 16H62V64ZM22 26H50V28H22V26ZM22 32H50V34H22V32ZM22 38H50V40H22V38ZM22 44H50V46H22V44Z"></path></svg>'},"./packages/survey-core/src/images-v2/flip-24x24.svg":function(a,s){a.exports='<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path d="M14.53 17.4775C14.82 17.7675 14.82 18.2475 14.53 18.5375L11.53 21.5375C11.38 21.6875 11.19 21.7575 11 21.7575C10.81 21.7575 10.62 21.6875 10.47 21.5375C10.18 21.2475 10.18 20.7675 10.47 20.4775L12.2 18.7475C12.13 18.7475 12.07 18.7475 12 18.7475C6.62 18.7475 2.25 15.7475 2.25 12.0575C2.25 10.2975 3.22 8.6375 4.99 7.3875C5.33 7.1475 5.8 7.2275 6.03 7.5675C6.27 7.9075 6.19 8.3775 5.85 8.6075C4.49 9.5675 3.74 10.7875 3.74 12.0575C3.74 14.9175 7.44 17.2475 11.99 17.2475C12.05 17.2475 12.11 17.2475 12.17 17.2475L10.46 15.5375C10.17 15.2475 10.17 14.7675 10.46 14.4775C10.75 14.1875 11.23 14.1875 11.52 14.4775L14.52 17.4775H14.53ZM12 5.2575C11.93 5.2575 11.87 5.2575 11.8 5.2575L13.53 3.5275C13.82 3.2375 13.82 2.7575 13.53 2.4675C13.24 2.1775 12.76 2.1775 12.47 2.4675L9.47 5.4675C9.18 5.7575 9.18 6.2375 9.47 6.5275L12.47 9.5275C12.62 9.6775 12.81 9.7475 13 9.7475C13.19 9.7475 13.38 9.6775 13.53 9.5275C13.82 9.2375 13.82 8.7575 13.53 8.4675L11.82 6.7575C11.88 6.7575 11.94 6.7575 12 6.7575C16.55 6.7575 20.25 9.0875 20.25 11.9475C20.25 13.2075 19.5 14.4375 18.14 15.3975C17.8 15.6375 17.72 16.1075 17.96 16.4475C18.11 16.6575 18.34 16.7675 18.57 16.7675C18.72 16.7675 18.87 16.7275 19 16.6275C20.77 15.3775 21.75 13.7175 21.75 11.9575C21.75 8.2675 17.38 5.2675 12 5.2675V5.2575Z"></path></svg>'},"./packages/survey-core/src/images-v2/folder-24x24.svg":function(a,s){a.exports='<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path d="M21.72 9.24C21.45 8.92 21.12 8.67 20.75 8.5V8C20.75 6.48 19.52 5.25 18 5.25H10.65C10.32 4.1 9.26 3.25 8 3.25H6C4.48 3.25 3.25 4.48 3.25 6V18C3.25 19.52 4.48 20.75 6 20.75H18.33C19.66 20.75 20.8 19.8 21.04 18.49L22.31 11.49C22.46 10.69 22.24 9.86 21.72 9.24ZM4.75 18V6C4.75 5.31 5.31 4.75 6 4.75H8C8.69 4.75 9.25 5.31 9.25 6C9.25 6.41 9.59 6.75 10 6.75H18C18.69 6.75 19.25 7.31 19.25 8V8.25H9.27C7.94 8.25 6.8 9.2 6.56 10.51L5.29 17.51C5.19 18.07 5.27 18.64 5.51 19.15C5.06 18.96 4.75 18.52 4.75 18ZM20.83 11.22L19.56 18.22C19.45 18.81 18.94 19.25 18.33 19.25H8C7.63 19.25 7.28 19.09 7.04 18.8C6.8 18.51 6.7 18.14 6.77 17.78L8.04 10.78C8.15 10.19 8.66 9.75 9.27 9.75H19.6C19.97 9.75 20.32 9.91 20.56 10.2C20.8 10.49 20.9 10.86 20.83 11.22Z"></path></svg>'},"./packages/survey-core/src/images-v2/fullsize-16x16.svg":function(a,s){a.exports='<svg viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg"><path d="M12 3.25H4C3.04 3.25 2.25 4.04 2.25 5V11C2.25 11.96 3.04 12.75 4 12.75H12C12.96 12.75 13.75 11.96 13.75 11V5C13.75 4.04 12.96 3.25 12 3.25ZM12.25 11C12.25 11.14 12.14 11.25 12 11.25H4C3.86 11.25 3.75 11.14 3.75 11V5C3.75 4.86 3.86 4.75 4 4.75H12C12.14 4.75 12.25 4.86 12.25 5V11Z"></path></svg>'},"./packages/survey-core/src/images-v2/image-48x48.svg":function(a,s){a.exports='<svg viewBox="0 0 48 48" xmlns="http://www.w3.org/2000/svg"><path d="M33 10.25H15C12.38 10.25 10.25 12.38 10.25 15V33C10.25 35.62 12.38 37.75 15 37.75H33C35.62 37.75 37.75 35.62 37.75 33V15C37.75 12.38 35.62 10.25 33 10.25ZM36.25 33C36.25 34.79 34.79 36.25 33 36.25H15C13.21 36.25 11.75 34.79 11.75 33V15C11.75 13.21 13.21 11.75 15 11.75H33C34.79 11.75 36.25 13.21 36.25 15V33ZM30.5 14.25C28.71 14.25 27.25 15.71 27.25 17.5C27.25 19.29 28.71 20.75 30.5 20.75C32.29 20.75 33.75 19.29 33.75 17.5C33.75 15.71 32.29 14.25 30.5 14.25ZM30.5 19.25C29.54 19.25 28.75 18.46 28.75 17.5C28.75 16.54 29.54 15.75 30.5 15.75C31.46 15.75 32.25 16.54 32.25 17.5C32.25 18.46 31.46 19.25 30.5 19.25ZM29.26 26.28C28.94 25.92 28.49 25.71 28.01 25.7C27.54 25.68 27.07 25.87 26.73 26.2L24.95 27.94L22.28 25.23C21.94 24.89 21.5 24.71 21 24.71C20.52 24.71 20.06 24.93 19.74 25.28L14.74 30.78C14.25 31.3 14.12 32.06 14.41 32.72C14.69 33.36 15.28 33.75 15.95 33.75H32.07C32.74 33.75 33.33 33.35 33.61 32.72C33.89 32.06 33.77 31.31 33.29 30.79L29.27 26.29L29.26 26.28ZM32.22 32.12C32.18 32.2 32.13 32.25 32.06 32.25H15.94C15.87 32.25 15.81 32.21 15.78 32.12C15.77 32.09 15.71 31.93 15.83 31.8L20.84 26.29C20.9 26.22 20.99 26.21 21.02 26.21C21.06 26.21 21.14 26.22 21.2 26.29L24.4 29.54C24.69 29.83 25.16 29.84 25.46 29.54L27.77 27.27C27.83 27.21 27.9 27.2 27.94 27.2C28.01 27.2 28.06 27.21 28.13 27.28L32.16 31.79C32.16 31.79 32.16 31.79 32.17 31.8C32.29 31.93 32.23 32.09 32.22 32.12Z"></path></svg>'},"./packages/survey-core/src/images-v2/loading-48x48.svg":function(a,s){a.exports='<svg viewBox="0 0 48 48" fill="none" xmlns="http://www.w3.org/2000/svg"><g clip-path="url(#clip0_19679_369428)"><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_19679_369428"><rect width="32" height="32" fill="white" transform="translate(8 8)"></rect></clipPath></defs></svg>'},"./packages/survey-core/src/images-v2/maximize-16x16.svg":function(a,s){a.exports='<svg viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg"><path d="M13.75 3V7C13.75 7.41 13.41 7.75 13 7.75C12.59 7.75 12.25 7.41 12.25 7V4.81L9.53 7.53C9.38 7.68 9.19 7.75 9 7.75C8.81 7.75 8.62 7.68 8.47 7.53C8.18 7.24 8.18 6.76 8.47 6.47L11.19 3.75H9C8.59 3.75 8.25 3.41 8.25 3C8.25 2.59 8.59 2.25 9 2.25H13C13.1 2.25 13.19 2.27 13.29 2.31C13.47 2.39 13.62 2.53 13.7 2.72C13.74 2.81 13.76 2.91 13.76 3.01L13.75 3ZM7.53 8.47C7.24 8.18 6.76 8.18 6.47 8.47L3.75 11.19V9C3.75 8.59 3.41 8.25 3 8.25C2.59 8.25 2.25 8.59 2.25 9V13C2.25 13.1 2.27 13.19 2.31 13.29C2.39 13.47 2.53 13.62 2.72 13.7C2.81 13.74 2.91 13.76 3.01 13.76H7.01C7.42 13.76 7.76 13.42 7.76 13.01C7.76 12.6 7.42 12.26 7.01 12.26H4.82L7.54 9.54C7.83 9.25 7.83 8.77 7.54 8.48L7.53 8.47Z"></path></svg>'},"./packages/survey-core/src/images-v2/minimize-16x16.svg":function(a,s){a.exports='<svg viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg"><path d="M13.75 8C13.75 8.41 13.41 8.75 13 8.75H3C2.59 8.75 2.25 8.41 2.25 8C2.25 7.59 2.59 7.25 3 7.25H13C13.41 7.25 13.75 7.59 13.75 8Z"></path></svg>'},"./packages/survey-core/src/images-v2/more-24x24.svg":function(a,s){a.exports='<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path d="M12 10.25C11.04 10.25 10.25 11.04 10.25 12C10.25 12.96 11.04 13.75 12 13.75C12.96 13.75 13.75 12.96 13.75 12C13.75 11.04 12.96 10.25 12 10.25ZM11.75 12C11.75 11.86 11.86 11.75 12 11.75C12.14 11.75 12.25 11.86 12.25 12C12.25 12.28 11.75 12.28 11.75 12ZM19 10.25C18.04 10.25 17.25 11.04 17.25 12C17.25 12.96 18.04 13.75 19 13.75C19.96 13.75 20.75 12.96 20.75 12C20.75 11.04 19.96 10.25 19 10.25ZM18.75 12C18.75 11.86 18.86 11.75 19 11.75C19.14 11.75 19.25 11.86 19.25 12C19.25 12.28 18.75 12.28 18.75 12ZM5 10.25C4.04 10.25 3.25 11.04 3.25 12C3.25 12.96 4.04 13.75 5 13.75C5.96 13.75 6.75 12.96 6.75 12C6.75 11.04 5.96 10.25 5 10.25ZM4.75 12C4.75 11.86 4.86 11.75 5 11.75C5.14 11.75 5.25 11.86 5.25 12C5.25 12.28 4.75 12.28 4.75 12Z"></path></svg>'},"./packages/survey-core/src/images-v2/navmenu-24x24.svg":function(a,s){a.exports='<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path d="M3.25 7C3.25 6.59 3.59 6.25 4 6.25H15C15.41 6.25 15.75 6.59 15.75 7C15.75 7.41 15.41 7.75 15 7.75H4C3.59 7.75 3.25 7.41 3.25 7ZM20 11.25H4C3.59 11.25 3.25 11.59 3.25 12C3.25 12.41 3.59 12.75 4 12.75H20C20.41 12.75 20.75 12.41 20.75 12C20.75 11.59 20.41 11.25 20 11.25ZM9 16.25H4C3.59 16.25 3.25 16.59 3.25 17C3.25 17.41 3.59 17.75 4 17.75H9C9.41 17.75 9.75 17.41 9.75 17C9.75 16.59 9.41 16.25 9 16.25Z"></path></svg>'},"./packages/survey-core/src/images-v2/noimage-48x48.svg":function(a,s){a.exports='<svg viewBox="0 0 48 48" xmlns="http://www.w3.org/2000/svg"><path d="M30.4975 14.2475C28.7075 14.2475 27.2475 15.7075 27.2475 17.4975C27.2475 19.2875 28.7075 20.7475 30.4975 20.7475C32.2875 20.7475 33.7475 19.2875 33.7475 17.4975C33.7475 15.7075 32.2875 14.2475 30.4975 14.2475ZM30.4975 19.2475C29.5375 19.2475 28.7475 18.4575 28.7475 17.4975C28.7475 16.5375 29.5375 15.7475 30.4975 15.7475C31.4575 15.7475 32.2475 16.5375 32.2475 17.4975C32.2475 18.4575 31.4575 19.2475 30.4975 19.2475ZM13.5175 11.2175C13.4375 10.8075 13.7075 10.4175 14.1175 10.3375C14.4275 10.2775 14.7175 10.2475 14.9975 10.2475H32.9975C35.6175 10.2475 37.7475 12.3775 37.7475 14.9975V32.9975C37.7475 33.2775 37.7175 33.5675 37.6575 33.8775C37.5875 34.2375 37.2775 34.4875 36.9175 34.4875C36.8675 34.4875 36.8275 34.4875 36.7775 34.4775C36.3675 34.3975 36.1075 34.0075 36.1775 33.5975C36.2175 33.3775 36.2375 33.1775 36.2375 32.9975V14.9975C36.2375 13.2075 34.7775 11.7475 32.9875 11.7475H14.9975C14.8075 11.7475 14.6175 11.7675 14.3975 11.8075C13.9875 11.8875 13.5975 11.6175 13.5175 11.2075V11.2175ZM34.4775 36.7775C34.5575 37.1875 34.2875 37.5775 33.8775 37.6575C33.5675 37.7175 33.2775 37.7475 32.9975 37.7475H14.9975C12.3775 37.7475 10.2475 35.6175 10.2475 32.9975V14.9975C10.2475 14.7175 10.2775 14.4275 10.3375 14.1175C10.4175 13.7075 10.8075 13.4375 11.2175 13.5175C11.6275 13.5975 11.8875 13.9875 11.8175 14.3975C11.7775 14.6175 11.7575 14.8175 11.7575 14.9975V32.9975C11.7575 34.7875 13.2175 36.2475 15.0075 36.2475H33.0075C33.1975 36.2475 33.3875 36.2275 33.6075 36.1875C34.0075 36.1075 34.4075 36.3775 34.4875 36.7875L34.4775 36.7775ZM15.8275 31.7975C15.6975 31.9375 15.7575 32.0875 15.7775 32.1175C15.8175 32.1975 15.8675 32.2475 15.9375 32.2475H29.8175C30.2275 32.2475 30.5675 32.5875 30.5675 32.9975C30.5675 33.4075 30.2275 33.7475 29.8175 33.7475H15.9375C15.2675 33.7475 14.6775 33.3475 14.3975 32.7175C14.1075 32.0575 14.2375 31.2975 14.7275 30.7775L19.7275 25.2775C20.0475 24.9275 20.5075 24.7175 20.9875 24.7075C21.4875 24.7275 21.9375 24.8875 22.2675 25.2275L25.4675 28.4775C25.7575 28.7675 25.7575 29.2475 25.4675 29.5375C25.1675 29.8275 24.6975 29.8275 24.4075 29.5375L21.2075 26.2875C21.1475 26.2175 21.0675 26.1875 21.0275 26.2075C20.9875 26.2075 20.9075 26.2175 20.8475 26.2875L15.8375 31.7975H15.8275ZM38.5275 38.5275C38.3775 38.6775 38.1875 38.7475 37.9975 38.7475C37.8075 38.7475 37.6175 38.6775 37.4675 38.5275L9.4675 10.5275C9.1775 10.2375 9.1775 9.7575 9.4675 9.4675C9.7575 9.1775 10.2375 9.1775 10.5275 9.4675L38.5275 37.4675C38.8175 37.7575 38.8175 38.2375 38.5275 38.5275Z"></path></svg>'},"./packages/survey-core/src/images-v2/ranking-arrows.svg":function(a,s){a.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>'},"./packages/survey-core/src/images-v2/rankingundefined-16x16.svg":function(a,s){a.exports='<svg viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg"><path d="M11.75 8C11.75 8.41 11.41 8.75 11 8.75H5C4.59 8.75 4.25 8.41 4.25 8C4.25 7.59 4.59 7.25 5 7.25H11C11.41 7.25 11.75 7.59 11.75 8Z"></path></svg>'},"./packages/survey-core/src/images-v2/rating-star-2.svg":function(a,s){a.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>'},"./packages/survey-core/src/images-v2/rating-star-small-2.svg":function(a,s){a.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>'},"./packages/survey-core/src/images-v2/rating-star-small.svg":function(a,s){a.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>'},"./packages/survey-core/src/images-v2/rating-star.svg":function(a,s){a.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>'},"./packages/survey-core/src/images-v2/reorder-24x24.svg":function(a,s){a.exports='<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path d="M8.9444 10.75H15.0544C15.7144 10.75 16.3144 10.39 16.6144 9.80002C16.9144 9.22002 16.8644 8.52002 16.4844 7.98002L13.4244 3.71002C12.7644 2.79002 11.2344 2.79002 10.5744 3.71002L7.5244 7.99002C7.1444 8.53002 7.0944 9.22002 7.3944 9.81002C7.6944 10.4 8.2944 10.76 8.9544 10.76L8.9444 10.75ZM8.7444 8.86002L11.7944 4.58002C11.8644 4.49002 11.9544 4.48002 11.9944 4.48002C12.0344 4.48002 12.1344 4.49002 12.1944 4.58002L15.2544 8.86002C15.3344 8.97002 15.3044 9.07002 15.2744 9.12002C15.2444 9.17002 15.1844 9.26002 15.0544 9.26002H8.9444C8.8144 9.26002 8.7444 9.18002 8.7244 9.12002C8.7044 9.06002 8.6644 8.97002 8.7444 8.86002ZM15.0544 13.25H8.9444C8.2844 13.25 7.6844 13.61 7.3844 14.2C7.0844 14.78 7.1344 15.48 7.5144 16.02L10.5744 20.3C10.9044 20.76 11.4344 21.03 11.9944 21.03C12.5544 21.03 13.0944 20.76 13.4144 20.3L16.4744 16.02C16.8544 15.48 16.9044 14.79 16.6044 14.2C16.3044 13.61 15.7044 13.25 15.0444 13.25H15.0544ZM15.2644 15.15L12.2044 19.43C12.0744 19.61 11.9244 19.61 11.7944 19.43L8.7344 15.15C8.6544 15.04 8.6844 14.94 8.7144 14.89C8.7444 14.84 8.8044 14.75 8.9344 14.75H15.0444C15.1744 14.75 15.2444 14.83 15.2644 14.89C15.2844 14.95 15.3244 15.04 15.2444 15.15H15.2644Z"></path></svg>'},"./packages/survey-core/src/images-v2/restoredown-16x16.svg":function(a,s){a.exports='<svg viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg"><path d="M7.69 8.71C7.73 8.8 7.75 8.9 7.75 9V13C7.75 13.41 7.41 13.75 7 13.75C6.59 13.75 6.25 13.41 6.25 13V10.81L3.53 13.53C3.38 13.68 3.19 13.75 3 13.75C2.81 13.75 2.62 13.68 2.47 13.53C2.18 13.24 2.18 12.76 2.47 12.47L5.19 9.75H3C2.59 9.75 2.25 9.41 2.25 9C2.25 8.59 2.59 8.25 3 8.25H7C7.1 8.25 7.19 8.27 7.29 8.31C7.47 8.39 7.62 8.53 7.7 8.72L7.69 8.71ZM13 6.25H10.81L13.53 3.53C13.82 3.24 13.82 2.76 13.53 2.47C13.24 2.18 12.76 2.18 12.47 2.47L9.75 5.19V3C9.75 2.59 9.41 2.25 9 2.25C8.59 2.25 8.25 2.59 8.25 3V7C8.25 7.1 8.27 7.19 8.31 7.29C8.39 7.47 8.53 7.62 8.72 7.7C8.81 7.74 8.91 7.76 9.01 7.76H13.01C13.42 7.76 13.76 7.42 13.76 7.01C13.76 6.6 13.42 6.26 13.01 6.26L13 6.25Z"></path></svg>'},"./packages/survey-core/src/images-v2/search-24x24.svg":function(a,s){a.exports='<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path d="M13.9975 2.25C9.7275 2.25 6.2475 5.73 6.2475 10C6.2475 11.87 6.9075 13.58 8.0175 14.92L2.4675 20.47C2.1775 20.76 2.1775 21.24 2.4675 21.53C2.6175 21.68 2.8075 21.75 2.9975 21.75C3.1875 21.75 3.3775 21.68 3.5275 21.53L9.0775 15.98C10.4175 17.08 12.1275 17.75 13.9975 17.75C18.2675 17.75 21.7475 14.27 21.7475 10C21.7475 5.73 18.2675 2.25 13.9975 2.25ZM13.9975 16.25C10.5475 16.25 7.7475 13.45 7.7475 10C7.7475 6.55 10.5475 3.75 13.9975 3.75C17.4475 3.75 20.2475 6.55 20.2475 10C20.2475 13.45 17.4475 16.25 13.9975 16.25Z"></path></svg>'},"./packages/survey-core/src/images-v2/smiley-rate1-24x24.svg":function(a,s){a.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>'},"./packages/survey-core/src/images-v2/smiley-rate10-24x24.svg":function(a,s){a.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>'},"./packages/survey-core/src/images-v2/smiley-rate2-24x24.svg":function(a,s){a.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.51001C4.47291 4.51001 4.08291 4.25001 3.94291 3.84001C3.76291 3.32001 4.03291 2.75001 4.55291 2.57001L8.32291 1.25001C8.84291 1.06001 9.41291 1.34001 9.59291 1.86001C9.77291 2.38001 9.50291 2.95001 8.98291 3.13001L5.20291 4.45001C5.09291 4.49001 4.98291 4.51001 4.87291 4.51001H4.88291ZM19.8129 3.89001C20.0229 3.38001 19.7729 2.79001 19.2629 2.59001L15.5529 1.07001C15.0429 0.860007 14.4529 1.11001 14.2529 1.62001C14.0429 2.13001 14.2929 2.72001 14.8029 2.92001L18.5029 4.43001C18.6229 4.48001 18.7529 4.50001 18.8829 4.50001C19.2729 4.50001 19.6529 4.27001 19.8129 3.88001V3.89001ZM3.50291 6.00001C2.64291 6.37001 1.79291 6.88001 1.00291 7.48001C0.79291 7.64001 0.64291 7.87001 0.59291 8.14001C0.48291 8.73001 0.87291 9.29001 1.45291 9.40001C2.04291 9.51001 2.60291 9.12001 2.71291 8.54001C2.87291 7.69001 3.12291 6.83001 3.50291 5.99001V6.00001ZM21.0429 8.55001C21.6029 10.48 24.2429 8.84001 22.7529 7.48001C21.9629 6.88001 21.1129 6.37001 20.2529 6.00001C20.6329 6.84001 20.8829 7.70001 21.0429 8.55001ZM21.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 10 11.8829 10C7.47291 10 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>'},"./packages/survey-core/src/images-v2/smiley-rate3-24x24.svg":function(a,s){a.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>'},"./packages/survey-core/src/images-v2/smiley-rate4-24x24.svg":function(a,s){a.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>'},"./packages/survey-core/src/images-v2/smiley-rate5-24x24.svg":function(a,s){a.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>'},"./packages/survey-core/src/images-v2/smiley-rate6-24x24.svg":function(a,s){a.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>'},"./packages/survey-core/src/images-v2/smiley-rate7-24x24.svg":function(a,s){a.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>'},"./packages/survey-core/src/images-v2/smiley-rate8-24x24.svg":function(a,s){a.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>'},"./packages/survey-core/src/images-v2/smiley-rate9-24x24.svg":function(a,s){a.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/entries/react-ui.ts":function(S,h,d){d.r(h),d.d(h,"Survey",function(){return Te}),d.d(h,"attachKey2click",function(){return Se}),d.d(h,"ReactSurveyElementsWrapper",function(){return y}),d.d(h,"SurveyNavigationBase",function(){return Oe}),d.d(h,"SurveyTimerPanel",function(){return ft}),d.d(h,"SurveyPage",function(){return ct}),d.d(h,"SurveyRow",function(){return R}),d.d(h,"SurveyPanel",function(){return pe}),d.d(h,"SurveyFlowPanel",function(){return mt}),d.d(h,"SurveyQuestion",function(){return ce}),d.d(h,"SurveyElementErrors",function(){return ye}),d.d(h,"SurveyQuestionAndErrorsCell",function(){return ut}),d.d(h,"ReactSurveyElement",function(){return w}),d.d(h,"SurveyElementBase",function(){return g}),d.d(h,"SurveyQuestionElementBase",function(){return P}),d.d(h,"SurveyQuestionCommentItem",function(){return ke}),d.d(h,"SurveyQuestionComment",function(){return st}),d.d(h,"SurveyQuestionCheckbox",function(){return yt}),d.d(h,"SurveyQuestionCheckboxItem",function(){return De}),d.d(h,"SurveyQuestionRanking",function(){return gt}),d.d(h,"SurveyQuestionRankingItem",function(){return Ct}),d.d(h,"SurveyQuestionRankingItemContent",function(){return xt}),d.d(h,"RatingItem",function(){return Et}),d.d(h,"RatingItemStar",function(){return qt}),d.d(h,"RatingItemSmiley",function(){return St}),d.d(h,"RatingDropdownItem",function(){return Ot}),d.d(h,"TagboxFilterString",function(){return Ae}),d.d(h,"SurveyQuestionOptionItem",function(){return Lt}),d.d(h,"SurveyQuestionDropdownBase",function(){return Le}),d.d(h,"SurveyQuestionDropdown",function(){return Ze}),d.d(h,"SurveyQuestionTagboxItem",function(){return Mt}),d.d(h,"SurveyQuestionTagbox",function(){return It}),d.d(h,"SurveyQuestionDropdownSelect",function(){return bt}),d.d(h,"SurveyQuestionMatrix",function(){return Rt}),d.d(h,"SurveyQuestionMatrixRow",function(){return Pt}),d.d(h,"SurveyQuestionMatrixCell",function(){return Nt}),d.d(h,"SurveyQuestionHtml",function(){return kt}),d.d(h,"SurveyQuestionFile",function(){return jt}),d.d(h,"SurveyFileChooseButton",function(){return We}),d.d(h,"SurveyFilePreview",function(){return Ht}),d.d(h,"SurveyQuestionMultipleText",function(){return Tt}),d.d(h,"SurveyQuestionRadiogroup",function(){return Vt}),d.d(h,"SurveyQuestionRadioItem",function(){return ze}),d.d(h,"SurveyQuestionText",function(){return _t}),d.d(h,"SurveyQuestionBoolean",function(){return Me}),d.d(h,"SurveyQuestionBooleanCheckbox",function(){return At}),d.d(h,"SurveyQuestionBooleanRadio",function(){return Zt}),d.d(h,"SurveyQuestionEmpty",function(){return Qt}),d.d(h,"SurveyQuestionMatrixDropdownCell",function(){return Wt}),d.d(h,"SurveyQuestionMatrixDropdownBase",function(){return Je}),d.d(h,"SurveyQuestionMatrixDropdown",function(){return Ut}),d.d(h,"SurveyQuestionMatrixDynamic",function(){return Kt}),d.d(h,"SurveyQuestionMatrixDynamicAddButton",function(){return $t}),d.d(h,"SurveyQuestionPanelDynamic",function(){return Xt}),d.d(h,"SurveyProgress",function(){return Ce}),d.d(h,"SurveyProgressButtons",function(){return en}),d.d(h,"SurveyProgressToc",function(){return nn}),d.d(h,"SurveyQuestionRating",function(){return rn}),d.d(h,"SurveyQuestionRatingDropdown",function(){return on}),d.d(h,"SurveyQuestionExpression",function(){return sn}),d.d(h,"PopupSurvey",function(){return un}),d.d(h,"SurveyWindow",function(){return Wr}),d.d(h,"ReactQuestionFactory",function(){return k}),d.d(h,"ReactElementFactory",function(){return c}),d.d(h,"SurveyQuestionImagePicker",function(){return cn}),d.d(h,"SurveyQuestionImage",function(){return pn}),d.d(h,"SurveyQuestionSignaturePad",function(){return dn}),d.d(h,"SurveyQuestionButtonGroup",function(){return $r}),d.d(h,"SurveyQuestionCustom",function(){return mn}),d.d(h,"SurveyQuestionComposite",function(){return vn}),d.d(h,"Popup",function(){return Q}),d.d(h,"ListItemContent",function(){return yn}),d.d(h,"ListItemGroup",function(){return gn}),d.d(h,"List",function(){return et}),d.d(h,"TitleActions",function(){return G}),d.d(h,"TitleElement",function(){return Y}),d.d(h,"SurveyActionBar",function(){return T}),d.d(h,"LogoImage",function(){return Cn}),d.d(h,"SurveyHeader",function(){return je}),d.d(h,"SvgIcon",function(){return M}),d.d(h,"SurveyQuestionMatrixDynamicRemoveButton",function(){return xn}),d.d(h,"SurveyQuestionMatrixDetailButton",function(){return wn}),d.d(h,"SurveyQuestionMatrixDynamicDragDropIcon",function(){return $e}),d.d(h,"SurveyQuestionPanelDynamicAddButton",function(){return Gt}),d.d(h,"SurveyQuestionPanelDynamicRemoveButton",function(){return En}),d.d(h,"SurveyQuestionPanelDynamicPrevButton",function(){return Ye}),d.d(h,"SurveyQuestionPanelDynamicNextButton",function(){return Ge}),d.d(h,"SurveyQuestionPanelDynamicProgressText",function(){return Xe}),d.d(h,"SurveyNavigationButton",function(){return qn}),d.d(h,"QuestionErrorComponent",function(){return Sn}),d.d(h,"MatrixRow",function(){return Ke}),d.d(h,"Skeleton",function(){return On}),d.d(h,"NotifierComponent",function(){return Be}),d.d(h,"ComponentsContainer",function(){return z}),d.d(h,"CharacterCounterComponent",function(){return Ee}),d.d(h,"HeaderMobile",function(){return Ln}),d.d(h,"HeaderCell",function(){return Mn}),d.d(h,"Header",function(){return In}),d.d(h,"SurveyLocStringViewer",function(){return tt}),d.d(h,"SurveyLocStringEditor",function(){return bn}),d.d(h,"LoadingIndicatorComponent",function(){return Fe}),d.d(h,"SvgBundleComponent",function(){return pt}),d.d(h,"PopupModal",function(){return dt}),d.d(h,"SurveyModel",function(){return a.SurveyModel}),d.d(h,"SurveyWindowModel",function(){return a.SurveyWindowModel}),d.d(h,"Model",function(){return a.SurveyModel}),d.d(h,"settings",function(){return a.settings}),d.d(h,"surveyLocalization",function(){return a.surveyLocalization}),d.d(h,"surveyStrings",function(){return a.surveyStrings});var a=d("survey-core"),s=d("react"),u=d.n(s),c=function(){function r(){this.creatorHash={}}return r.prototype.registerElement=function(t,e){this.creatorHash[t]=e},r.prototype.getAllTypes=function(){var t=new Array;for(var e in this.creatorHash)t.push(e);return t.sort()},r.prototype.isElementRegistered=function(t){return!!this.creatorHash[t]},r.prototype.createElement=function(t,e){var n=this.creatorHash[t];return n==null?null:n(e)},r.Instance=new r,r}(),y=function(){function r(){}return r.wrapRow=function(t,e,n){var o=t.getRowWrapperComponentName(n),i=t.getRowWrapperComponentData(n);return c.Instance.createElement(o,{element:e,row:n,componentData:i})},r.wrapElement=function(t,e,n){var o=t.getElementWrapperComponentName(n),i=t.getElementWrapperComponentData(n);return c.Instance.createElement(o,{element:e,question:n,componentData:i})},r.wrapQuestionContent=function(t,e,n){var o=t.getQuestionContentWrapperComponentName(n),i=t.getElementWrapperComponentData(n);return c.Instance.createElement(o,{element:e,question:n,componentData:i})},r.wrapItemValue=function(t,e,n,o){var i=t.getItemValueWrapperComponentName(o,n),p=t.getItemValueWrapperComponentData(o,n);return c.Instance.createElement(i,{key:e==null?void 0:e.key,element:e,question:n,item:o,componentData:p})},r.wrapMatrixCell=function(t,e,n,o){o===void 0&&(o="cell");var i=t.getElementWrapperComponentName(n,o),p=t.getElementWrapperComponentData(n,o);return c.Instance.createElement(i,{element:e,cell:n,componentData:p})},r}();a.SurveyModel.platform="react";var E=function(){var r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,o){n.__proto__=o}||function(n,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(n[i]=o[i])},r(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");r(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),g=function(r){E(t,r);function t(e){var n=r.call(this,e)||this;return n._allowComponentUpdate=!0,n.prevStateElements=[],n}return t.renderLocString=function(e,n,o){return n===void 0&&(n=null),c.Instance.createElement(e.renderAs,{locStr:e.renderAsData,style:n,key:o})},t.renderQuestionDescription=function(e){var n=t.renderLocString(e.locDescription);return s.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(),this.disableStateElementsRerenderEvent(this.getStateElements())},t.prototype.componentDidUpdate=function(e,n){var o;this.makeBaseElementsReact();var i=this.getStateElements();this.disableStateElementsRerenderEvent(((o=this.prevStateElements)!==null&&o!==void 0?o:[]).filter(function(p){return!i.includes(p)})),this.prevStateElements=[],this.getStateElements().forEach(function(p){p.afterRerender()})},t.prototype.allowComponentUpdate=function(){this._allowComponentUpdate=!0,this.forceUpdate()},t.prototype.denyComponentUpdate=function(){this._allowComponentUpdate=!1},t.prototype.shouldComponentUpdate=function(e,n){return this._allowComponentUpdate&&(this.unMakeBaseElementsReact(),this.prevStateElements=this.getStateElements()),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=this.getRenderedElements(),n=0,o=e;n<o.length;n++){var i=o[n];if(i.reactRendering>0)return!0}return!1},enumerable:!1,configurable:!0}),t.prototype.getRenderedElements=function(){return this.getStateElements()},t.prototype.startEndRendering=function(e){for(var n=this.getRenderedElements(),o=0,i=n;o<i.length;o++){var p=i[o];p.reactRendering||(p.reactRendering=0),p.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(),n=0;n<e.length;n++)e[n].enableOnElementRerenderedEvent(),this.makeBaseElementReact(e[n])},t.prototype.unMakeBaseElementsReact=function(){for(var e=this.getStateElements(),n=0;n<e.length;n++)this.unMakeBaseElementReact(e[n])},t.prototype.disableStateElementsRerenderEvent=function(e){e.forEach(function(n){n.disableOnElementRerenderedEvent()})},t.prototype.getStateElements=function(){var e=this.getStateElement();return e?[e]:[]},t.prototype.getStateElement=function(){return null},Object.defineProperty(t.prototype,"isDisplayMode",{get:function(){var e=this.props;return e.isDisplayMode||!1},enumerable:!1,configurable:!0}),t.prototype.renderLocString=function(e,n,o){return n===void 0&&(n=null),t.renderLocString(e,n,o)},t.prototype.canMakeReact=function(e){return!!e&&!!e.iteratePropertiesHash},t.prototype.makeBaseElementReact=function(e){var n=this;this.canMakeReact(e)&&(e.iteratePropertiesHash(function(o,i){if(n.canUsePropInState(i)){var p=o[i];if(Array.isArray(p)){var p=p;p.onArrayChanged=function(v){n.isRendering||(n.changedStatePropNameValue=i,n.setState(function(b){var q={};return q[i]=p,q}))}}}}),e.setPropertyValueCoreHandler=function(o,i,p){if(o[i]!==p){if(o[i]=p,!n.canUsePropInState(i)||n.isRendering)return;n.changedStatePropNameValue=i,n.setState(function(f){var v={};return v[i]=p,v})}})},t.prototype.canUsePropInState=function(e){return!0},t.prototype.unMakeBaseElementReact=function(e){this.canMakeReact(e)&&(e.setPropertyValueCoreHandler=void 0,e.iteratePropertiesHash(function(n,o){var i=n[o];if(Array.isArray(i)){var i=i;i.onArrayChanged=function(){}}}))},t}(s.Component),w=function(r){E(t,r);function t(e){return r.call(this,e)||this}return Object.defineProperty(t.prototype,"cssClasses",{get:function(){return this.props.cssClasses},enumerable:!1,configurable:!0}),t}(g),P=function(r){E(t,r);function t(e){return r.call(this,e)||this}return t.prototype.componentDidUpdate=function(e,n){r.prototype.componentDidUpdate.call(this,e,n),this.updateDomElement()},t.prototype.componentDidMount=function(){r.prototype.componentDidMount.call(this),this.updateDomElement()},t.prototype.componentWillUnmount=function(){if(r.prototype.componentWillUnmount.call(this),this.questionBase){var e=this.content||this.control;this.questionBase.beforeDestroyQuestionElement(e),e&&e.removeAttribute("data-rendered")}},t.prototype.updateDomElement=function(){var e=this.content||this.control;e&&e.getAttribute("data-rendered")!=="r"&&(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(e,n){return r.prototype.shouldComponentUpdate.call(this,e,n)?!this.questionBase.customWidget||!!this.questionBase.customWidgetData.isNeedRender||!!this.questionBase.customWidget.widgetJson.isDefaultRender||!!this.questionBase.customWidget.widgetJson.render:!1},Object.defineProperty(t.prototype,"isDisplayMode",{get:function(){var e=this.props;return e.isDisplayMode||!!this.questionBase&&this.questionBase.isInputReadOnly||!1},enumerable:!1,configurable:!0}),t.prototype.wrapCell=function(e,n,o){if(!o)return n;var i=this.questionBase.survey,p=null;return i&&(p=y.wrapMatrixCell(i,n,e,o)),p??n},t.prototype.setControl=function(e){e&&(this.control=e)},t.prototype.setContent=function(e){e&&(this.content=e)},t}(g),D=function(r){E(t,r);function t(e){var n=r.call(this,e)||this;return n.updateValueOnEvent=function(o){a.Helpers.isTwoValueEquals(n.questionBase.value,o.target.value,!1,!0,!1)||n.setValueCore(o.target.value)},n.updateValueOnEvent=n.updateValueOnEvent.bind(n),n}return 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 e=this.control,n=this.getValueCore();a.Helpers.isTwoValueEquals(n,e.value,!1,!0,!1)||(e.value=this.getValue(n))}r.prototype.updateDomElement.call(this)},t.prototype.getValue=function(e){return a.Helpers.isValueEmpty(e)?"":e},t}(P),N=function(){var r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,o){n.__proto__=o}||function(n,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(n[i]=o[i])},r(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");r(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),O=function(r){N(t,r);function t(e){var n=r.call(this,e)||this;return n.element.cssClasses,n.rootRef=s.createRef(),n}return 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(){r.prototype.componentDidMount.call(this),this.rootRef.current&&this.element.setWrapperElement(this.rootRef.current)},t.prototype.componentWillUnmount=function(){r.prototype.componentWillUnmount.call(this),this.element.setWrapperElement(void 0)},t.prototype.shouldComponentUpdate=function(e,n){return r.prototype.shouldComponentUpdate.call(this,e,n)?(e.element!==this.element&&(e.element&&e.element.setWrapperElement(this.rootRef.current),this.element&&this.element.setWrapperElement(void 0)),this.element.cssClasses,!0):!1},t.prototype.renderElement=function(){var e=this.element,n=this.createElement(e,this.index),o=e.cssClassesValue,i=function(){var p=e;p&&p.isQuestion&&p.focusIn()};return s.createElement("div",{className:o.questionWrapper,style:e.rootStyle,"data-key":n.key,key:n.key,onFocus:i,ref:this.rootRef},n)},t.prototype.createElement=function(e,n){var o=n?"-"+n:0;if(!this.row.isNeedRender)return c.Instance.createElement(e.skeletonComponentName,{key:e.name+o,element:e,css:this.css});var i=e.getTemplate();return c.Instance.isElementRegistered(i)||(i="question"),c.Instance.createElement(i,{key:e.name+o,element:e,creator:this.creator,survey:this.survey,css:this.css})},t}(g),B=function(){var r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,o){n.__proto__=o}||function(n,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(n[i]=o[i])},r(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");r(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),R=function(r){B(t,r);function t(e){var n=r.call(this,e)||this;return n.rootRef=s.createRef(),n.recalculateCss(),n}return 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,n=this.row.visibleElements.map(function(o,i){var p=i?"-"+i:0,f=o.name+p;return s.createElement(O,{element:o,index:i,row:e.row,survey:e.survey,creator:e.creator,css:e.css,key:f})});return s.createElement("div",{ref:this.rootRef,className:this.row.getRowCss()},n)},t.prototype.renderElement=function(){var e=this.survey,n=this.renderElementContent(),o=y.wrapRow(e,n,this.row);return o||n},t.prototype.componentDidMount=function(){var e=this;r.prototype.componentDidMount.call(this);var n=this.rootRef.current;if(this.rootRef.current&&this.row.setRootElement(this.rootRef.current),n&&!this.row.isNeedRender){var o=n;setTimeout(function(){e.row.startLazyRendering(o)},10)}},t.prototype.shouldComponentUpdate=function(e,n){return r.prototype.shouldComponentUpdate.call(this,e,n)?(e.row!==this.row&&(e.row.isNeedRender=this.row.isNeedRender,e.row.setRootElement(this.rootRef.current),this.row.setRootElement(void 0),this.stopLazyRendering()),this.recalculateCss(),!0):!1},t.prototype.stopLazyRendering=function(){this.row.stopLazyRendering(),this.row.isNeedRender=!this.row.isLazyRendering()},t.prototype.componentWillUnmount=function(){r.prototype.componentWillUnmount.call(this),this.row.setRootElement(void 0),this.stopLazyRendering()},t.prototype.createElement=function(e,n){var o=n?"-"+n:0,i=e.getType();return c.Instance.isElementRegistered(i)||(i="question"),c.Instance.createElement(i,{key:e.name+o,element:e,creator:this.creator,survey:this.survey,css:this.css})},t}(g),H=function(){var r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,o){n.__proto__=o}||function(n,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(n[i]=o[i])},r(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");r(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),_=function(r){H(t,r);function t(e){var n=r.call(this,e)||this;return n.rootRef=s.createRef(),n}return t.prototype.getStateElement=function(){return this.panelBase},t.prototype.canUsePropInState=function(e){return e!=="elements"&&r.prototype.canUsePropInState.call(this,e)},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(){r.prototype.componentDidMount.call(this),this.doAfterRender()},t.prototype.componentWillUnmount=function(){r.prototype.componentWillUnmount.call(this);var e=this.rootRef.current;e&&e.removeAttribute("data-rendered")},t.prototype.componentDidUpdate=function(e,n){r.prototype.componentDidUpdate.call(this,e,n),!(e.page&&this.survey&&this.survey.activePage&&e.page.id===this.survey.activePage.id)&&this.doAfterRender()},t.prototype.doAfterRender=function(){var e=this.rootRef.current;e&&this.survey&&(this.panelBase.isPanel?this.panelBase.afterRender(e):this.survey.afterRenderPage(e))},t.prototype.getIsVisible=function(){return this.panelBase.isVisible},t.prototype.canRender=function(){return r.prototype.canRender.call(this)&&!!this.survey&&!!this.panelBase&&!!this.panelBase.survey&&this.getIsVisible()},t.prototype.renderRows=function(e){var n=this;return this.panelBase.visibleRows.map(function(o){return n.createRow(o,e)})},t.prototype.createRow=function(e,n){return s.createElement(R,{key:e.id,row:e,survey:this.survey,creator:this.creator,css:n})},t}(g),Z=function(){var r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,o){n.__proto__=o}||function(n,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(n[i]=o[i])},r(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");r(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),M=function(r){Z(t,r);function t(e){var n=r.call(this,e)||this;return n.svgIconRef=u.a.createRef(),n}return 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?u.a.createElement("svg",{className:e,style:this.props.style,onClick:this.props.onClick,ref:this.svgIconRef,role:"img"},u.a.createElement("use",null)):null},t.prototype.componentDidMount=function(){this.updateSvg()},t}(u.a.Component);c.Instance.registerElement("sv-svg-icon",function(r){return u.a.createElement(M,r)});var le=function(){var r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,o){n.__proto__=o}||function(n,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(n[i]=o[i])},r(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");r(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),ie=function(r){le(t,r);function t(e){return r.call(this,e)||this}return t.prototype.render=function(){var e="sv-action-bar-separator "+this.props.cssClasses;return u.a.createElement("div",{className:e})},t}(u.a.Component);c.Instance.registerElement("sv-action-bar-separator",function(r){return u.a.createElement(ie,r)});var K=function(){var r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,o){n.__proto__=o}||function(n,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(n[i]=o[i])},r(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");r(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),$=function(r){K(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return 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(),n=this.item.needSeparator?u.a.createElement(ie,null):null,o=c.Instance.createElement(this.item.component||"sv-action-bar-item",{item:this.item});return u.a.createElement("div",{className:e,id:this.item.id},u.a.createElement("div",{className:"sv-action__content"},n,o))},t}(g),ae=function(r){K(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return 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 u.a.createElement(u.a.Fragment,null,this.renderInnerButton())},t.prototype.renderText=function(){if(!this.item.hasTitle)return null;var e=this.item.getActionBarItemTitleCss();return u.a.createElement("span",{className:e},this.item.title)},t.prototype.renderButtonContent=function(){var e=this.renderText(),n=this.item.iconName?u.a.createElement(M,{className:this.item.cssClasses.itemIcon,size:this.item.iconSize,iconName:this.item.iconName,title:this.item.tooltip||this.item.title}):null;return u.a.createElement(u.a.Fragment,null,n,e)},t.prototype.renderInnerButton=function(){var e=this,n=this.item.getActionBarItemCss(),o=this.item.tooltip||this.item.title,i=this.renderButtonContent(),p=this.item.disableTabStop?-1:void 0,f=Se(u.a.createElement("button",{className:n,type:"button",disabled:this.item.disabled,onMouseDown:function(v){return e.item.doMouseDown(v)},onFocus:function(v){return e.item.doFocus(v)},onClick:function(v){return e.item.doAction(v)},title:o,tabIndex:p,"aria-checked":this.item.ariaChecked,"aria-expanded":this.item.ariaExpanded,role:this.item.ariaRole},i),this.item,{processEsc:!1});return f},t}(g);c.Instance.registerElement("sv-action-bar-item",function(r){return u.a.createElement(ae,r)});var W=function(){var r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,o){n.__proto__=o}||function(n,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(n[i]=o[i])},r(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");r(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),Q=function(r){W(t,r);function t(e){var n=r.call(this,e)||this;return n.containerRef=u.a.createRef(),n.createModel(),n}return 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(a.createPopupViewModel)(this.props.model)},t.prototype.setTargetElement=function(){var e=this.containerRef.current;this.popup.setComponentElement(e)},t.prototype.componentDidMount=function(){r.prototype.componentDidMount.call(this),this.setTargetElement()},t.prototype.componentDidUpdate=function(e,n){r.prototype.componentDidUpdate.call(this,e,n),this.setTargetElement()},t.prototype.componentWillUnmount=function(){r.prototype.componentWillUnmount.call(this),this.popup.resetComponentElement()},t.prototype.shouldComponentUpdate=function(e,n){var o;if(!r.prototype.shouldComponentUpdate.call(this,e,n))return!1;var i=e.model!==this.popup.model;return i&&((o=this.popup)===null||o===void 0||o.dispose(),this.createModel()),i},t.prototype.render=function(){this.popup.model=this.model;var e;return this.model.isModal?e=u.a.createElement(U,{model:this.popup}):e=u.a.createElement(ee,{model:this.popup}),u.a.createElement("div",{ref:this.containerRef},e)},t}(g);c.Instance.registerElement("sv-popup",function(r){return u.a.createElement(Q,r)});var U=function(r){W(t,r);function t(e){var n=r.call(this,e)||this;return n.handleKeydown=function(o){n.model.onKeyDown(o)},n.clickInside=function(o){o.stopPropagation()},n}return 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(e,n){r.prototype.componentDidUpdate.call(this,e,n),!this.model.isPositionSet&&this.model.isVisible&&this.model.updateOnShowing()},t.prototype.renderContainer=function(e){var n=this,o=e.showHeader?this.renderHeaderPopup(e):null,i=e.title?this.renderHeaderContent():null,p=this.renderContent(),f=e.showFooter?this.renderFooter(this.model):null;return u.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(v){n.clickInside(v)}},o,u.a.createElement("div",{className:"sv-popup__body-content"},i,u.a.createElement("div",{className:"sv-popup__scrolling-content"},p),f))},t.prototype.renderHeaderContent=function(){return u.a.createElement("div",{className:"sv-popup__body-header"},this.model.title)},t.prototype.renderContent=function(){var e=c.Instance.createElement(this.model.contentComponentName,this.model.contentComponentData);return u.a.createElement("div",{className:"sv-popup__content"},e)},t.prototype.renderHeaderPopup=function(e){return null},t.prototype.renderFooter=function(e){return u.a.createElement("div",{className:"sv-popup__body-footer"},u.a.createElement(T,{model:e.footerToolbar}))},t.prototype.render=function(){var e=this,n=this.renderContainer(this.model),o=new a.CssClassBuilder().append("sv-popup").append(this.model.styleClass).toString(),i={display:this.model.isVisible?"":"none"};return u.a.createElement("div",{tabIndex:-1,className:o,style:i,onClick:function(p){e.model.clickOutside(p)},onKeyDown:this.handleKeydown},n)},t.prototype.componentDidMount=function(){r.prototype.componentDidMount.call(this),this.model.isVisible&&this.model.updateOnShowing()},t}(g),ee=function(r){W(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.renderHeaderPopup=function(e){var n=e;return n?u.a.createElement("span",{style:{left:n.pointerTarget.left,top:n.pointerTarget.top},className:"sv-popup__pointer"}):null},t}(U),te=function(){var r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,o){n.__proto__=o}||function(n,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(n[i]=o[i])},r(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");r(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),ne=function(r){te(t,r);function t(e){return r.call(this,e)||this}return t.prototype.renderInnerButton=function(){var e=r.prototype.renderInnerButton.call(this);return u.a.createElement(u.a.Fragment,null,e,u.a.createElement(Q,{model:this.item.popupModel}))},t.prototype.componentDidMount=function(){this.viewModel=new a.ActionDropdownViewModel(this.item)},t.prototype.componentWillUnmount=function(){r.prototype.componentWillUnmount.call(this),this.viewModel.dispose()},t}(ae);c.Instance.registerElement("sv-action-bar-item-dropdown",function(r){return u.a.createElement(ne,r)});var re=function(){var r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,o){n.__proto__=o}||function(n,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(n[i]=o[i])},r(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");r(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),T=function(r){re(t,r);function t(e){var n=r.call(this,e)||this;return n.rootRef=u.a.createRef(),n}return Object.defineProperty(t.prototype,"handleClick",{get:function(){return this.props.handleClick!==void 0?this.props.handleClick:!0},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"model",{get:function(){return this.props.model},enumerable:!1,configurable:!0}),t.prototype.componentDidMount=function(){if(r.prototype.componentDidMount.call(this),!!this.model.hasActions){var e=this.rootRef.current;e&&this.model.initResponsivityManager(e,function(n){setTimeout(n,100)})}},t.prototype.componentWillUnmount=function(){r.prototype.componentWillUnmount.call(this),this.model.resetResponsivityManager()},t.prototype.componentDidUpdate=function(e,n){if(r.prototype.componentDidUpdate.call(this,e,n),e.model!=this.props.model&&e.model.resetResponsivityManager(),this.model.hasActions){var o=this.rootRef.current;o&&this.model.initResponsivityManager(o,function(i){setTimeout(i,100)})}},t.prototype.getStateElement=function(){return this.model},t.prototype.renderElement=function(){if(!this.model.hasActions)return null;var e=this.renderItems();return u.a.createElement("div",{ref:this.rootRef,className:this.model.getRootCss(),onClick:this.handleClick?function(n){n.stopPropagation()}:void 0},e)},t.prototype.renderItems=function(){return this.model.renderedActions.map(function(e,n){return u.a.createElement($,{item:e,key:"item"+n})})},t}(g);c.Instance.registerElement("sv-action-bar",function(r){return u.a.createElement(T,r)});var oe=function(){var r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,o){n.__proto__=o}||function(n,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(n[i]=o[i])},r(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");r(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),J=function(r){oe(t,r);function t(e){return r.call(this,e)||this}return 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 g.renderLocString(this.element.locTitle);var e=this.renderTitleSpans(this.element.getTitleOwner(),this.cssClasses);return u.a.createElement(u.a.Fragment,null,e)},t.prototype.renderTitleSpans=function(e,n){var o=function(f){return u.a.createElement("span",{"data-key":f,key:f}," ")},i=[];e.isRequireTextOnStart&&(i.push(this.renderRequireText(e)),i.push(o("req-sp")));var p=e.no;return p&&(i.push(u.a.createElement("span",{"data-key":"q_num",key:"q_num",className:e.cssTitleNumber,style:{position:"static"},"aria-hidden":!0},p)),i.push(o("num-sp"))),e.isRequireTextBeforeTitle&&(i.push(this.renderRequireText(e)),i.push(o("req-sp"))),i.push(g.renderLocString(e.locTitle,null,"q_title")),e.isRequireTextAfterTitle&&(i.push(o("req-sp")),i.push(this.renderRequireText(e))),i},t.prototype.renderRequireText=function(e){return u.a.createElement("span",{"data-key":"req-text",key:"req-text",className:e.cssRequiredText,"aria-hidden":!0},e.requiredText)},t}(u.a.Component),se=function(){var r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,o){n.__proto__=o}||function(n,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(n[i]=o[i])},r(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");r(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),G=function(r){se(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return 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=u.a.createElement(J,{element:this.element,cssClasses:this.cssClasses});return this.element.hasTitleActions?u.a.createElement("div",{className:"sv-title-actions"},u.a.createElement("span",{className:"sv-title-actions__title"},e),u.a.createElement(T,{model:this.element.getTitleToolbar()})):e},t}(u.a.Component);a.RendererFactory.Instance.registerRenderer("element","title-actions","sv-title-actions"),c.Instance.registerElement("sv-title-actions",function(r){return u.a.createElement(G,r)});var me=function(){var r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,o){n.__proto__=o}||function(n,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(n[i]=o[i])},r(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");r(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),Y=function(r){me(t,r);function t(e){return r.call(this,e)||this}return Object.defineProperty(t.prototype,"element",{get:function(){return this.props.element},enumerable:!1,configurable:!0}),t.prototype.renderTitleExpandableSvg=function(){if(!this.element.getCssTitleExpandableSvg())return null;var e=this.element.isExpanded?"icon-collapse-16x16":"icon-expand-16x16";return u.a.createElement(M,{className:this.element.getCssTitleExpandableSvg(),iconName:e,size:"auto"})},t.prototype.render=function(){var e=this.element;if(!e||!e.hasTitle)return null;var n=e.titleAriaLabel||void 0,o=this.renderTitleExpandableSvg(),i=u.a.createElement(G,{element:e,cssClasses:e.cssClasses}),p=void 0,f=void 0;e.hasTitleEvents&&(f=function(b){Object(a.doKey2ClickUp)(b.nativeEvent)});var v=e.titleTagName;return u.a.createElement(v,{className:e.cssTitle,id:e.ariaTitleId,"aria-label":n,tabIndex:e.titleTabIndex,"aria-expanded":e.titleAriaExpanded,role:e.titleAriaRole,onClick:p,onKeyUp:f},o,i)},t}(u.a.Component),k=function(){function r(){this.creatorHash={}}return r.prototype.registerQuestion=function(t,e){this.creatorHash[t]=e},r.prototype.getAllTypes=function(){var t=new Array;for(var e in this.creatorHash)t.push(e);return t.sort()},r.prototype.createQuestion=function(t,e){var n=this.creatorHash[t];return n==null?null:n(e)},r.Instance=new r,r}(),Hn=function(){var r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,o){n.__proto__=o}||function(n,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(n[i]=o[i])},r(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");r(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),Ee=function(r){Hn(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.getStateElement=function(){return this.props.counter},t.prototype.renderElement=function(){return u.a.createElement("div",{className:this.props.remainingCharacterCounter},this.props.counter.remainingCharacterCounter)},t}(g);c.Instance.registerElement("sv-character-counter",function(r){return u.a.createElement(Ee,r)});var Tn=function(){var r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,o){n.__proto__=o}||function(n,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(n[i]=o[i])},r(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");r(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),Pe=function(r){Tn(t,r);function t(e){var n=r.call(this,e)||this;return n.initialValue=n.viewModel.getTextValue()||"",n.textareaRef=u.a.createRef(),n}return Object.defineProperty(t.prototype,"viewModel",{get:function(){return this.props.viewModel},enumerable:!1,configurable:!0}),t.prototype.canRender=function(){return!!this.viewModel.question},t.prototype.componentDidMount=function(){r.prototype.componentDidMount.call(this);var e=this.textareaRef.current;e&&this.viewModel.setElement(e)},t.prototype.componentWillUnmount=function(){r.prototype.componentWillUnmount.call(this),this.viewModel.resetElement()},t.prototype.renderElement=function(){var e=this;return u.a.createElement("textarea",{id:this.viewModel.id,className:this.viewModel.className,ref:this.textareaRef,disabled:this.viewModel.isDisabledAttr,readOnly:this.viewModel.isReadOnlyAttr,rows:this.viewModel.rows,cols:this.viewModel.cols,placeholder:this.viewModel.placeholder,maxLength:this.viewModel.maxLength,defaultValue:this.initialValue,onChange:function(n){e.viewModel.onTextAreaInput(n)},onFocus:function(n){e.viewModel.onTextAreaFocus(n)},onBlur:function(n){e.viewModel.onTextAreaBlur(n)},onKeyDown:function(n){e.viewModel.onTextAreaKeyDown(n)},"aria-required":this.viewModel.ariaRequired,"aria-label":this.viewModel.ariaLabel,"aria-labelledby":this.viewModel.ariaLabelledBy,"aria-describedby":this.viewModel.ariaDescribedBy,"aria-invalid":this.viewModel.ariaInvalid,"aria-errormessage":this.viewModel.ariaErrormessage,style:{resize:this.viewModel.question.resizeStyle}})},t}(g);c.Instance.registerElement("sv-text-area",function(r){return u.a.createElement(Pe,r)});var Ne=function(){var r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,o){n.__proto__=o}||function(n,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(n[i]=o[i])},r(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");r(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),st=function(r){Ne(t,r);function t(e){return r.call(this,e)||this}return t.prototype.renderCharacterCounter=function(){var e=null;return this.question.getMaxLength()&&(e=s.createElement(Ee,{counter:this.question.characterCounter,remainingCharacterCounter:this.question.cssClasses.remainingCharacterCounter})),e},t.prototype.renderElement=function(){if(this.question.isReadOnlyRenderDiv())return s.createElement("div",null,this.question.value);var e=this.renderCharacterCounter(),n=this.props.question.textAreaModel;return s.createElement(s.Fragment,null,s.createElement(Pe,{viewModel:n}),e)},t}(D),ke=function(r){Ne(t,r);function t(e){var n=r.call(this,e)||this;return n.textAreaModel=n.getTextAreaModel(),n}return t.prototype.canRender=function(){return!!this.props.question},t.prototype.getTextAreaModel=function(){return this.props.question.commentTextAreaModel},t.prototype.renderElement=function(){var e=this.props.question;if(e.isReadOnlyRenderDiv()){var n=this.textAreaModel.getTextValue()||"";return s.createElement("div",null,n)}return s.createElement(Pe,{viewModel:this.textAreaModel})},t}(w),qe=function(r){Ne(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.getTextAreaModel=function(){return this.props.question.otherTextAreaModel},t}(ke);k.Instance.registerQuestion("comment",function(r){return s.createElement(st,r)});var Dn=function(){var r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,o){n.__proto__=o}||function(n,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(n[i]=o[i])},r(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");r(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),Vn=function(r){Dn(t,r);function t(e){var n=r.call(this,e)||this;return n.widgetRef=s.createRef(),n}return 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(){r.prototype.componentDidMount.call(this),this.questionBase&&this._afterRender()},t.prototype.componentDidUpdate=function(e,n){r.prototype.componentDidUpdate.call(this,e,n);var o=!!this.questionBase.customWidget&&this.questionBase.customWidget.isDefaultRender;this.questionBase&&!o&&this._afterRender()},t.prototype.componentWillUnmount=function(){if(r.prototype.componentWillUnmount.call(this),this.questionBase.customWidget){var e=this.widgetRef.current;e&&this.questionBase.customWidget.willUnmount(this.questionBase,e)}},t.prototype.canRender=function(){return r.prototype.canRender.call(this)&&this.questionBase.visible},t.prototype.renderElement=function(){var e=this.questionBase.customWidget;if(e.isDefaultRender)return s.createElement("div",{ref:this.widgetRef},this.creator.createQuestionElement(this.questionBase));var n=null;if(e.widgetJson.render)n=e.widgetJson.render(this.questionBase);else if(e.htmlTemplate){var o={__html:e.htmlTemplate};return s.createElement("div",{ref:this.widgetRef,dangerouslySetInnerHTML:o})}return s.createElement("div",{ref:this.widgetRef},n)},t}(P),_n=function(){var r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,o){n.__proto__=o}||function(n,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(n[i]=o[i])},r(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");r(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),it=function(r){_n(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return Object.defineProperty(t.prototype,"element",{get:function(){return this.props.element},enumerable:!1,configurable:!0}),t.prototype.render=function(){var e=this.element,n=e.hasTitle?u.a.createElement(Y,{element:e}):null,o=e.hasDescriptionUnderTitle?g.renderQuestionDescription(this.element):null,i=e.hasAdditionalTitleToolbar?u.a.createElement(T,{model:e.additionalTitleToolbar}):null,p={width:void 0};return e instanceof a.Question&&(p.width=e.titleWidth),u.a.createElement("div",{className:e.cssHeader,onClick:function(f){return e.clickTitleFunction&&e.clickTitleFunction(f.nativeEvent)},style:p},n,o,i)},t}(u.a.Component),ve=function(){var r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,o){n.__proto__=o}||function(n,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(n[i]=o[i])},r(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");r(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),ce=function(r){ve(t,r);function t(e){var n=r.call(this,e)||this;return n.isNeedFocus=!1,n.rootRef=s.createRef(),n}return t.renderQuestionBody=function(e,n){var o=n.customWidget;return o?s.createElement(Vn,{creator:e,question:n}):e.createQuestionElement(n)},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(){r.prototype.componentDidMount.call(this),this.question&&(this.question.react=this),this.doAfterRender()},t.prototype.componentWillUnmount=function(){r.prototype.componentWillUnmount.call(this),this.question&&(this.question.react=null);var e=this.rootRef.current;e&&e.removeAttribute("data-rendered")},t.prototype.componentDidUpdate=function(e,n){r.prototype.componentDidUpdate.call(this,e,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&&e.getAttribute("data-rendered")!=="r"&&(e.setAttribute("data-rendered","r"),e.setAttribute("data-name",this.question.name),this.question.afterRender&&this.question.afterRender(e))}},t.prototype.canRender=function(){return r.prototype.canRender.call(this)&&!!this.question&&!!this.creator},t.prototype.renderQuestionContent=function(){var e=this.question,n={display:this.question.renderedIsExpanded?"":"none"},o=e.cssClasses,i=this.renderQuestion(),p=this.question.showErrorOnTop?this.renderErrors(o,"top"):null,f=this.question.showErrorOnBottom?this.renderErrors(o,"bottom"):null,v=e&&e.hasComment?this.renderComment(o):null,b=e.hasDescriptionUnderInput?this.renderDescription():null;return s.createElement("div",{className:e.cssContent||void 0,style:n,role:"presentation"},p,i,v,f,b)},t.prototype.renderElement=function(){var e=this.question,n=e.cssClasses,o=this.renderHeader(e),i=e.hasTitleOnLeftTop?o:null,p=e.hasTitleOnBottom?o:null,f=this.question.showErrorsAboveQuestion?this.renderErrors(n,""):null,v=this.question.showErrorsBelowQuestion?this.renderErrors(n,""):null,b=e.getRootStyle(),q=this.wrapQuestionContent(this.renderQuestionContent());return s.createElement(s.Fragment,null,s.createElement("div",{ref:this.rootRef,id:e.id,className:e.getRootCss(),style:b,role:e.ariaRole,"aria-required":this.question.ariaRequired,"aria-invalid":this.question.ariaInvalid,"aria-labelledby":e.ariaLabelledBy,"aria-describedby":e.ariaDescribedBy,"aria-expanded":e.ariaExpanded},f,i,q,p,v))},t.prototype.wrapElement=function(e){var n=this.question.survey,o=null;return n&&(o=y.wrapElement(n,e,this.question)),o??e},t.prototype.wrapQuestionContent=function(e){var n=this.question.survey,o=null;return n&&(o=y.wrapQuestionContent(n,e,this.question)),o??e},t.prototype.renderQuestion=function(){return t.renderQuestionBody(this.creator,this.question)},t.prototype.renderDescription=function(){return g.renderQuestionDescription(this.question)},t.prototype.renderComment=function(e){var n=g.renderLocString(this.question.locCommentText);return s.createElement("div",{className:this.question.getCommentAreaCss()},s.createElement("div",null,n),s.createElement(ke,{question:this.question,cssClasses:e,otherCss:e.other,isDisplayMode:this.question.isInputReadOnly}))},t.prototype.renderHeader=function(e){return s.createElement(it,{element:e})},t.prototype.renderErrors=function(e,n){return s.createElement(ye,{element:this.question,cssClasses:e,creator:this.creator,location:n,id:this.question.id+"_errors"})},t}(g);c.Instance.registerElement("question",function(r){return s.createElement(ce,r)});var ye=function(r){ve(t,r);function t(e){var n=r.call(this,e)||this;return n.state=n.getState(),n}return 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 e===void 0&&(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=[],n=0;n<this.element.errors.length;n++){var o="error"+n;e.push(this.creator.renderError(o,this.element.errors[n],this.cssClasses,this.element))}return s.createElement("div",{role:"alert","aria-live":"polite",className:this.element.cssError,id:this.id},e)},t}(w),at=function(r){ve(t,r);function t(e){return r.call(this,e)||this}return 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(){r.prototype.componentDidMount.call(this),this.doAfterRender()},t.prototype.componentDidUpdate=function(e,n){r.prototype.componentDidUpdate.call(this,e,n),this.doAfterRender()},t.prototype.doAfterRender=function(){},t.prototype.canRender=function(){return!!this.question},t.prototype.renderContent=function(){var e=this.renderQuestion();return s.createElement(s.Fragment,null,e)},t.prototype.getShowErrors=function(){return this.question.isVisible},t.prototype.renderQuestion=function(){return ce.renderQuestionBody(this.creator,this.question)},t}(w),ut=function(r){ve(t,r);function t(e){var n=r.call(this,e)||this;return n.cellRef=s.createRef(),n}return t.prototype.componentWillUnmount=function(){if(r.prototype.componentWillUnmount.call(this),this.question){var e=this.cellRef.current;e&&e.removeAttribute("data-rendered")}},t.prototype.renderCellContent=function(){return s.createElement("div",{className:this.props.cell.cellQuestionWrapperClassName},this.renderQuestion())},t.prototype.renderElement=function(){var e=this.getCellStyle(),n=this.props.cell,o=function(){n.focusIn()};return s.createElement("td",{ref:this.cellRef,className:this.itemCss,colSpan:n.colSpans,title:n.getTitle(),style:e,onFocus:o},this.wrapCell(this.props.cell,this.renderCellContent()))},t.prototype.getCellStyle=function(){return null},t.prototype.getHeaderText=function(){return""},t.prototype.wrapCell=function(e,n){if(!e)return n;var o=this.question.survey,i=null;return o&&(i=y.wrapMatrixCell(o,n,e,this.props.reason)),i??n},t}(at),lt=function(r){ve(t,r);function t(e){var n=r.call(this,e)||this;return n.state={changed:0},n.question&&n.registerCallback(n.question),n}return 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.getQuestionPropertiesToTrack=function(){return["errors"]},t.prototype.registerCallback=function(e){var n=this;e.registerFunctionOnPropertiesValueChanged(this.getQuestionPropertiesToTrack(),function(){n.update()},"__reactSubscription")},t.prototype.unRegisterCallback=function(e){e.unRegisterFunctionOnPropertiesValueChanged(this.getQuestionPropertiesToTrack(),"__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 s.createElement(ye,{element:this.question,creator:this.props.creator,cssClasses:this.question.cssClasses})},t}(s.Component),An=function(){var r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,o){n.__proto__=o}||function(n,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(n[i]=o[i])},r(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");r(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),ct=function(r){An(t,r);function t(e){return r.call(this,e)||this}return 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(),n=this.renderDescription(),o=this.renderRows(this.panelBase.cssClasses),i=s.createElement(ye,{element:this.panelBase,cssClasses:this.panelBase.cssClasses,creator:this.creator});return s.createElement("div",{ref:this.rootRef,className:this.page.cssRoot},e,n,i,o)},t.prototype.renderTitle=function(){return s.createElement(Y,{element:this.page})},t.prototype.renderDescription=function(){if(!this.page._showDescription)return null;var e=g.renderLocString(this.page.locDescription);return s.createElement("div",{className:this.panelBase.cssClasses.page.description},e)},t}(_),Zn=function(){var r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,o){n.__proto__=o}||function(n,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(n[i]=o[i])},r(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");r(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),je=function(r){Zn(t,r);function t(e){var n=r.call(this,e)||this;return n.state={changed:0},n.rootRef=u.a.createRef(),n}return 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=g.renderLocString(this.survey.locDescription);return u.a.createElement("div",{className:this.css.headerText,style:{maxWidth:this.survey.titleMaxWidth}},u.a.createElement(Y,{element:this.survey}),this.survey.renderedHasDescription?u.a.createElement("div",{className:this.css.description},e):null)},t.prototype.renderLogoImage=function(e){if(!e)return null;var n=this.survey.getElementWrapperComponentName(this.survey,"logo-image"),o=this.survey.getElementWrapperComponentData(this.survey,"logo-image");return c.Instance.createElement(n,{data:o})},t.prototype.render=function(){return this.survey.renderedHasHeader?u.a.createElement("div",{className:this.css.header,ref:this.rootRef},this.renderLogoImage(this.survey.isLogoBefore),this.renderTitle(),this.renderLogoImage(this.survey.isLogoAfter),u.a.createElement("div",{className:this.css.headerClose})):null},t}(u.a.Component);c.Instance.registerElement("survey-header",function(r){return u.a.createElement(je,r)});var Qn=function(){var r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,o){n.__proto__=o}||function(n,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(n[i]=o[i])},r(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");r(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),Fn=function(r){Qn(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.render=function(){return u.a.createElement("div",{className:"sv-brand-info"},u.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"},u.a.createElement("img",{src:"https://surveyjs.io/Content/Images/poweredby.svg"})),u.a.createElement("div",{className:"sv-brand-info__text"},"Try and see how easy it is to ",u.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")),u.a.createElement("div",{className:"sv-brand-info__terms"},u.a.createElement("a",{href:"https://surveyjs.io/TermsOfUse"},"Terms of Use & Privacy Statement")))},t}(u.a.Component),Wn=function(){var r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,o){n.__proto__=o}||function(n,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(n[i]=o[i])},r(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");r(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),Be=function(r){Wn(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return 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 u.a.createElement("div",{className:this.notifier.css,style:e,role:"alert","aria-live":"polite"},u.a.createElement("span",null,this.notifier.message),u.a.createElement(T,{model:this.notifier.actionBar}))},t}(g);c.Instance.registerElement("sv-notifier",function(r){return u.a.createElement(Be,r)});var Un=function(){var r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,o){n.__proto__=o}||function(n,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(n[i]=o[i])},r(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");r(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),z=function(r){Un(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.render=function(){var e=this,n=this.props.survey.getContainerContent(this.props.container),o=this.props.needRenderWrapper!==!1;return n.length==0?null:o?u.a.createElement("div",{className:"sv-components-column sv-components-container-"+this.props.container},n.map(function(i){return c.Instance.createElement(i.component,{survey:e.props.survey,model:i.data,container:e.props.container,key:i.id})})):u.a.createElement(u.a.Fragment,null,n.map(function(i){return c.Instance.createElement(i.component,{survey:e.props.survey,model:i.data,container:e.props.container,key:i.id})}))},t}(u.a.Component);c.Instance.registerElement("sv-components-container",function(r){return u.a.createElement(z,r)});var zn=function(){var r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,o){n.__proto__=o}||function(n,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(n[i]=o[i])},r(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");r(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),pt=function(r){zn(t,r);function t(e){var n=r.call(this,e)||this;return n.onIconsChanged=function(){n.containerRef.current&&(n.containerRef.current.innerHTML=a.SvgRegistry.iconsRenderedHtml())},n.containerRef=u.a.createRef(),n}return t.prototype.componentDidMount=function(){this.onIconsChanged(),a.SvgRegistry.onIconsChanged.add(this.onIconsChanged)},t.prototype.componentWillUnmount=function(){a.SvgRegistry.onIconsChanged.remove(this.onIconsChanged)},t.prototype.render=function(){var e={display:"none"};return u.a.createElement("svg",{style:e,id:"sv-icon-holder-global-container",ref:this.containerRef})},t}(u.a.Component),Kn=d("react-dom"),$n=function(){var r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,o){n.__proto__=o}||function(n,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(n[i]=o[i])},r(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");r(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),dt=function(r){$n(t,r);function t(e){var n=r.call(this,e)||this;return n.isInitialized=!1,n.init=function(){n.isInitialized||(a.settings.showModal=function(o,i,p,f,v,b,q){q===void 0&&(q="popup");var j=Object(a.createDialogOptions)(o,i,p,f,void 0,void 0,v,b,q);return n.showDialog(j)},a.settings.showDialog=function(o,i){return n.showDialog(o,i)},n.isInitialized=!0)},n.clean=function(){n.isInitialized&&(a.settings.showModal=void 0,a.settings.showDialog=void 0,n.isInitialized=!1)},n.state={changed:0},n.descriptor={init:n.init,clean:n.clean},n}return t.addModalDescriptor=function(e){a.settings.showModal||e.init(),this.modalDescriptors.push(e)},t.removeModalDescriptor=function(e){e.clean(),this.modalDescriptors.splice(this.modalDescriptors.indexOf(e),1),!a.settings.showModal&&this.modalDescriptors[0]&&this.modalDescriptors[0].init()},t.prototype.renderElement=function(){return this.model?Object(Kn.createPortal)(u.a.createElement(U,{model:this.model}),this.model.container):null},t.prototype.showDialog=function(e,n){var o=this;this.model=Object(a.createPopupModalViewModel)(e,n);var i=function(p,f){f.isVisible||(o.model.dispose(),o.model=void 0,o.setState({changed:o.state.changed+1}))};return this.model.onVisibilityChanged.add(i),this.model.model.isVisible=!0,this.setState({changed:this.state.changed+1}),this.model},t.prototype.componentDidMount=function(){t.addModalDescriptor(this.descriptor)},t.prototype.componentWillUnmount=function(){this.model&&(this.model.dispose(),this.model=void 0),t.removeModalDescriptor(this.descriptor)},t.modalDescriptors=[],t}(g),ht=d("./build/survey-core/icons/iconsV1.js"),Jn=d("./build/survey-core/icons/iconsV2.js"),Gn=function(){var r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,o){n.__proto__=o}||function(n,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(n[i]=o[i])},r(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");r(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),He=function(){return He=Object.assign||function(r){for(var t,e=1,n=arguments.length;e<n;e++){t=arguments[e];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(r[o]=t[o])}return r},He.apply(this,arguments)};Object(a.addIconsToThemeSet)("v1",ht.icons),Object(a.addIconsToThemeSet)("v2",Jn.icons),a.SvgRegistry.registerIcons(ht.icons);var Te=function(r){Gn(t,r);function t(e){var n=r.call(this,e)||this;return n.previousJSON={},n.isSurveyUpdated=!1,n.createSurvey(e),n.updateSurvey(e,{}),n.rootRef=s.createRef(),n.rootNodeId=e.id||null,n.rootNodeClassName=e.className||"",n}return Object.defineProperty(t,"cssType",{get:function(){return a.surveyCss.currentType},set:function(e){a.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(),this.setSurveyEvents()}},t.prototype.shouldComponentUpdate=function(e,n){return r.prototype.shouldComponentUpdate.call(this,e,n)?(this.isModelJSONChanged(e)&&(this.destroySurvey(),this.createSurvey(e),this.updateSurvey(e,{}),this.isSurveyUpdated=!0),!0):!1},t.prototype.componentDidUpdate=function(e,n){r.prototype.componentDidUpdate.call(this,e,n),this.updateSurvey(this.props,e),this.isSurveyUpdated&&(this.onSurveyUpdated(),this.isSurveyUpdated=!1)},t.prototype.componentDidMount=function(){r.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(){r.prototype.componentWillUnmount.call(this),this.destroySurvey()},t.prototype.doRender=function(){var e;this.survey.state=="completed"?e=this.renderCompleted():this.survey.state=="completedbefore"?e=this.renderCompletedBefore():this.survey.state=="loading"?e=this.renderLoading():this.survey.state=="empty"?e=this.renderEmptySurvey():e=this.renderSurvey();var n=this.survey.backgroundImage?s.createElement("div",{className:this.css.rootBackgroundImage,style:this.survey.backgroundImageStyle}):null,o=this.survey.headerView==="basic"?s.createElement(je,{survey:this.survey}):null,i=function(b){b.preventDefault()},p=s.createElement("div",{className:"sv_custom_header"});this.survey.hasLogo&&(p=null);var f=this.survey.getRootCss(),v=this.rootNodeClassName?this.rootNodeClassName+" "+f:f;return s.createElement("div",{id:this.rootNodeId,ref:this.rootRef,className:v,style:this.survey.themeVariables,lang:this.survey.locale||"en",dir:this.survey.localeDir},this.survey.needRenderIcons?s.createElement(pt,null):null,s.createElement(dt,null),s.createElement("div",{className:this.survey.wrapperFormCss},n,s.createElement("form",{onSubmit:i},p,s.createElement("div",{className:this.css.container},o,s.createElement(z,{survey:this.survey,container:"header",needRenderWrapper:!1}),e,s.createElement(z,{survey:this.survey,container:"footer",needRenderWrapper:!1}))),s.createElement(Be,{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 s.createElement(s.Fragment,null,s.createElement("div",{dangerouslySetInnerHTML:e,className:this.survey.completedCss}),s.createElement(z,{survey:this.survey,container:"completePage",needRenderWrapper:!1}))},t.prototype.renderCompletedBefore=function(){var e={__html:this.survey.processedCompletedBeforeHtml};return s.createElement("div",{dangerouslySetInnerHTML:e,className:this.survey.completedBeforeCss})},t.prototype.renderLoading=function(){var e={__html:this.survey.processedLoadingHtml};return s.createElement("div",{dangerouslySetInnerHTML:e,className:this.survey.loadingBodyCss})},t.prototype.renderSurvey=function(){var e=this.survey.activePage?this.renderPage(this.survey.activePage):null;this.survey.isShowStartingPage;var n=this.survey.activePage?this.survey.activePage.id:"",o=this.survey.bodyCss,i={};return this.survey.renderedWidth&&(i.maxWidth=this.survey.renderedWidth),s.createElement("div",{className:this.survey.bodyContainerCss},s.createElement(z,{survey:this.survey,container:"left"}),s.createElement("div",{className:"sv-components-column sv-components-column--expandable"},s.createElement(z,{survey:this.survey,container:"center"}),s.createElement("div",{id:n,className:o,style:i},s.createElement(z,{survey:this.survey,container:"contentTop"}),e,s.createElement(z,{survey:this.survey,container:"contentBottom"}),this.survey.showBrandInfo?s.createElement(Fn,null):null)),s.createElement(z,{survey:this.survey,container:"right"}))},t.prototype.renderPage=function(e){return s.createElement(ct,{survey:this.survey,page:e,css:this.css,creator:this})},t.prototype.renderEmptySurvey=function(){return s.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 a.SurveyModel(e.json)):this.survey=new a.SurveyModel,e.css&&(this.survey.css=this.css)},t.prototype.isModelJSONChanged=function(e){return e.model?this.survey!==e.model:e.json?!a.Helpers.isTwoValueEquals(e.json,this.previousJSON):!1},t.prototype.updateSurvey=function(e,n){if(e){n=n||{};for(var o in e)if(!(o=="model"||o=="children"||o=="json")){if(o=="css"){this.survey.mergeValues(e.css,this.survey.getCss()),this.survey.updateNavigationCss(),this.survey.updateElementCss();continue}e[o]!==n[o]&&(o.indexOf("on")==0&&this.survey[o]&&this.survey[o].add?(n[o]&&this.survey[o].remove(n[o]),this.survey[o].add(e[o])):this.survey[o]=e[o])}}},t.prototype.setSurveyEvents=function(){var e=this;this.survey.renderCallback=function(){var n=e.state&&e.state.modelChanged?e.state.modelChanged:0;e.setState({modelChanged:n+1})},this.survey.onPartialSend.add(function(n){e.state&&e.setState(e.state)})},t.prototype.createQuestionElement=function(e){return k.Instance.createQuestion(e.isDefaultRendering()?e.getTemplate():e.getComponentName(),{question:e,isDisplayMode:e.isInputReadOnly,creator:this})},t.prototype.renderError=function(e,n,o,i){return c.Instance.createElement(this.survey.questionErrorComponent,{key:e,error:n,cssClasses:o,element:i})},t.prototype.questionTitleLocation=function(){return this.survey.questionTitleLocation},t.prototype.questionErrorLocation=function(){return this.survey.questionErrorLocation},t}(g);c.Instance.registerElement("survey",function(r){return s.createElement(Te,r)});function Se(r,t,e){return e===void 0&&(e={processEsc:!0,disableTabStop:!1}),t&&t.disableTabStop||e&&e.disableTabStop?s.cloneElement(r,{tabIndex:-1}):(e=He({},e),s.cloneElement(r,{tabIndex:0,onKeyUp:function(n){return n.preventDefault(),n.stopPropagation(),Object(a.doKey2ClickUp)(n,e),!1},onKeyDown:function(n){return Object(a.doKey2ClickDown)(n,e)},onBlur:function(n){return Object(a.doKey2ClickBlur)(n)}}))}var Yn=function(){var r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,o){n.__proto__=o}||function(n,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(n[i]=o[i])},r(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");r(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),Oe=function(r){Yn(t,r);function t(e){var n=r.call(this,e)||this;return n.updateStateFunction=null,n.state={update:0},n}return 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}(s.Component),Xn=function(){var r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,o){n.__proto__=o}||function(n,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(n[i]=o[i])},r(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");r(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),ft=function(r){Xn(t,r);function t(e){var n=r.call(this,e)||this;return n.circleLength=440,n}return 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=s.createElement("div",{className:this.timerModel.survey.getCss().timerRoot},this.timerModel.text);if(this.timerModel.showTimerAsClock){var n={strokeDasharray:this.circleLength,strokeDashoffset:this.progress},o=this.timerModel.showProgress?s.createElement(M,{className:this.timerModel.getProgressCss(),style:n,iconName:"icon-timercircle",size:"auto"}):null;e=s.createElement("div",{className:this.timerModel.rootCss},o,s.createElement("div",{className:this.timerModel.textContainerCss},s.createElement("span",{className:this.timerModel.majorTextCss},this.timerModel.clockMajorText),this.timerModel.clockMinorText?s.createElement("span",{className:this.timerModel.minorTextCss},this.timerModel.clockMinorText):null))}return e},t}(w);c.Instance.registerElement("sv-timerpanel",function(r){return s.createElement(ft,r)});var er=function(){var r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,o){n.__proto__=o}||function(n,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(n[i]=o[i])},r(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");r(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),pe=function(r){er(t,r);function t(e){var n=r.call(this,e)||this;return n.hasBeenExpanded=!1,n}return Object.defineProperty(t.prototype,"panel",{get:function(){return this.panelBase},enumerable:!1,configurable:!0}),t.prototype.renderElement=function(){var e=this,n=this.renderHeader(),o=s.createElement(ye,{element:this.panelBase,cssClasses:this.panelBase.cssClasses,creator:this.creator}),i={paddingLeft:this.panel.innerPaddingLeft,display:this.panel.renderedIsExpanded?void 0:"none"},p=null;if(this.panel.renderedIsExpanded){var f=this.renderRows(this.panelBase.cssClasses),v=this.panelBase.cssClasses.panel.content;p=this.renderContent(i,f,v)}var b=function(){e.panelBase&&e.panelBase.focusIn()};return s.createElement("div",{ref:this.rootRef,className:this.panelBase.getContainerCss(),onFocus:b,id:this.panelBase.id},this.panel.showErrorsAbovePanel?o:null,n,this.panel.showErrorsAbovePanel?null:o,p)},t.prototype.renderHeader=function(){return!this.panel.hasTitle&&!this.panel.hasDescription?null:s.createElement(it,{element:this.panel})},t.prototype.wrapElement=function(e){var n=this.panel.survey,o=null;return n&&(o=y.wrapElement(n,e,this.panel)),o??e},t.prototype.renderContent=function(e,n,o){var i=this.renderBottom();return s.createElement("div",{style:e,className:o,id:this.panel.contentId},n,i)},t.prototype.renderTitle=function(){return this.panelBase.title?s.createElement(Y,{element:this.panelBase}):null},t.prototype.renderDescription=function(){if(!this.panelBase.description)return null;var e=g.renderLocString(this.panelBase.locDescription);return s.createElement("div",{className:this.panel.cssClasses.panel.description},e)},t.prototype.renderBottom=function(){var e=this.panel.getFooterToolbar();return e.hasActions?s.createElement(T,{model:e}):null},t.prototype.getIsVisible=function(){return this.panelBase.getIsContentVisible()},t}(_);c.Instance.registerElement("panel",function(r){return s.createElement(pe,r)});var tr=function(){var r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,o){n.__proto__=o}||function(n,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(n[i]=o[i])},r(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");r(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),mt=function(r){tr(t,r);function t(e){return r.call(this,e)||this}return Object.defineProperty(t.prototype,"flowPanel",{get:function(){return this.panel},enumerable:!1,configurable:!0}),t.prototype.componentDidMount=function(){r.prototype.componentDidMount.call(this),this.flowPanel&&(this.flowPanel.onCustomHtmlProducing=function(){return""},this.flowPanel.onGetHtmlForQuestion=this.renderQuestion)},t.prototype.componentWillUnmount=function(){r.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 n={__html:e};return s.createElement("div",{dangerouslySetInnerHTML:n})}var o=new DOMParser().parseFromString(e,"text/xml");return this.renderedIndex=0,this.renderParentNode(o)},t.prototype.renderNodes=function(e){for(var n=[],o=0;o<e.length;o++){var i=this.renderNode(e[o]);i&&n.push(i)}return n},t.prototype.getStyle=function(e){var n={};return e.toLowerCase()==="b"&&(n.fontWeight="bold"),e.toLowerCase()==="i"&&(n.fontStyle="italic"),e.toLowerCase()==="u"&&(n.textDecoration="underline"),n},t.prototype.renderParentNode=function(e){var n=e.nodeName.toLowerCase(),o=this.renderNodes(this.getChildDomNodes(e));return n==="div"?s.createElement("div",{key:this.getNodeIndex()},o):s.createElement("span",{key:this.getNodeIndex(),style:this.getStyle(n)},o)},t.prototype.renderNode=function(e){if(!this.hasTextChildNodesOnly(e))return this.renderParentNode(e);var n=e.nodeName.toLowerCase();if(n==="question"){var o=this.flowPanel.getQuestionByName(e.textContent);if(!o)return null;var i=s.createElement(ce,{key:o.name,element:o,creator:this.creator,css:this.css});return s.createElement("span",{key:this.getNodeIndex()},i)}return n==="div"?s.createElement("div",{key:this.getNodeIndex()},e.textContent):s.createElement("span",{key:this.getNodeIndex(),style:this.getStyle(n)},e.textContent)},t.prototype.getChildDomNodes=function(e){for(var n=[],o=0;o<e.childNodes.length;o++)n.push(e.childNodes[o]);return n},t.prototype.hasTextChildNodesOnly=function(e){for(var n=e.childNodes,o=0;o<n.length;o++)if(n[o].nodeName.toLowerCase()!=="#text")return!1;return!0},t.prototype.renderContent=function(e,n){return s.createElement("f-panel",{style:e},n)},t}(pe);c.Instance.registerElement("flowpanel",function(r){return s.createElement(mt,r)});var vt=function(){var r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,o){n.__proto__=o}||function(n,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(n[i]=o[i])},r(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");r(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),yt=function(r){vt(t,r);function t(e){return r.call(this,e)||this}return Object.defineProperty(t.prototype,"question",{get:function(){return this.questionBase},enumerable:!1,configurable:!0}),t.prototype.renderElement=function(){var e=this,n=this.question.cssClasses;return s.createElement("fieldset",{className:this.question.getSelectBaseRootCss(),ref:function(o){return e.setControl(o)},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},s.createElement("legend",{className:"sv-hidden"},this.question.locTitle.renderedHtml),this.getHeader(),this.question.hasColumns?this.getColumnedBody(n):this.getBody(n),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(n,o){return e.renderItem(n,!1,e.question.cssClasses)})},t.prototype.getFooter=function(){var e=this;if(this.question.hasFootItems)return this.question.footItems.map(function(n,o){return e.renderItem(n,!1,e.question.cssClasses)})},t.prototype.getColumnedBody=function(e){return s.createElement("div",{className:e.rootMultiColumn},this.getColumns(e))},t.prototype.getColumns=function(e){var n=this;return this.question.columns.map(function(o,i){var p=o.map(function(f,v){return n.renderItem(f,i===0&&v===0,e,""+i+v)});return s.createElement("div",{key:"column"+i+n.question.getItemsColumnKey(o),className:n.question.getColumnClass(),role:"presentation"},p)})},t.prototype.getBody=function(e){return this.question.blockedRow?s.createElement("div",{className:e.rootRow},this.getItems(e,this.question.dataChoices)):s.createElement(s.Fragment,null,this.getItems(e,this.question.bodyItems))},t.prototype.getItems=function(e,n){for(var o=[],i=0;i<n.length;i++){var p=n[i];""+p.value;var f=this.renderItem(p,i==0,e,""+i);f&&o.push(f)}return o},Object.defineProperty(t.prototype,"textStyle",{get:function(){return null},enumerable:!1,configurable:!0}),t.prototype.renderOther=function(){var e=this.question.cssClasses;return s.createElement("div",{className:this.question.getCommentAreaCss(!0)},s.createElement(qe,{question:this.question,otherCss:e.other,cssClasses:e,isDisplayMode:this.isDisplayMode}))},t.prototype.renderItem=function(e,n,o,i){var p=c.Instance.createElement(this.question.itemComponent,{key:e.value,question:this.question,cssClasses:o,isDisplayMode:this.isDisplayMode,item:e,textStyle:this.textStyle,index:i,isFirst:n}),f=this.question.survey,v=null;return f&&p&&(v=y.wrapItemValue(f,p,this.question,e)),v??p},t}(P),De=function(r){vt(t,r);function t(e){var n=r.call(this,e)||this;return n.handleOnChange=function(o){n.question.clickItemHandler(n.item,o.target.checked)},n.rootRef=s.createRef(),n}return 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 this.props.hideCaption===!0},enumerable:!1,configurable:!0}),t.prototype.componentDidUpdate=function(e,n){r.prototype.componentDidUpdate.call(this,e,n),e.item!==this.props.item&&!this.question.isDesignMode&&(this.props.item&&this.props.item.setRootElement(this.rootRef.current),e.item&&e.item.setRootElement(void 0))},t.prototype.shouldComponentUpdate=function(e,n){return r.prototype.shouldComponentUpdate.call(this,e,n)?!this.question.customWidget||!!this.question.customWidgetData.isNeedRender||!!this.question.customWidget.widgetJson.isDefaultRender||!!this.question.customWidget.widgetJson.render:!1},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,n){var o=this.question.getItemId(this.item),i=this.question.getItemClass(this.item),p=this.question.getLabelClass(this.item),f=this.hideCaption?null:s.createElement("span",{className:this.cssClasses.controlLabel},this.renderLocString(this.item.locText,this.textStyle));return s.createElement("div",{className:i,role:"presentation",ref:this.rootRef},s.createElement("label",{className:p},s.createElement("input",{className:this.cssClasses.itemControl,type:"checkbox",name:this.question.name+this.item.id,value:this.item.value,id:o,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?s.createElement("span",{className:this.cssClasses.materialDecorator},this.question.itemSvgIcon?s.createElement("svg",{className:this.cssClasses.itemDecorator},s.createElement("use",{xlinkHref:this.question.itemSvgIcon})):null):null,f),n)},t.prototype.componentDidMount=function(){r.prototype.componentDidMount.call(this),this.question.isDesignMode||this.item.setRootElement(this.rootRef.current)},t.prototype.componentWillUnmount=function(){r.prototype.componentWillUnmount.call(this),this.question.isDesignMode||this.item.setRootElement(void 0)},t}(w);c.Instance.registerElement("survey-checkbox-item",function(r){return s.createElement(De,r)}),k.Instance.registerQuestion("checkbox",function(r){return s.createElement(yt,r)});var Ve=function(){var r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,o){n.__proto__=o}||function(n,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(n[i]=o[i])},r(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");r(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),gt=function(r){Ve(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return Object.defineProperty(t.prototype,"question",{get:function(){return this.questionBase},enumerable:!1,configurable:!0}),t.prototype.renderElement=function(){var e=this;if(this.question.selectToRankEnabled){var n=!0;return s.createElement("div",{className:this.question.rootClass,ref:function(o){return e.setControl(o)}},s.createElement("div",{className:this.question.getContainerClasses("from"),"data-ranking":"from-container"},this.getItems(this.question.renderedUnRankingChoices,n),this.question.renderedUnRankingChoices.length===0?s.createElement("div",{className:this.question.cssClasses.containerPlaceholder}," ",this.renderLocString(this.question.locSelectToRankEmptyRankedAreaText)," "):null),s.createElement("div",{className:this.question.cssClasses.containersDivider}),s.createElement("div",{className:this.question.getContainerClasses("to"),"data-ranking":"to-container"},this.getItems(),this.question.renderedRankingChoices.length===0?s.createElement("div",{className:this.question.cssClasses.containerPlaceholder}," ",this.renderLocString(this.question.locSelectToRankEmptyUnrankedAreaText)," "):null))}else return s.createElement("div",{className:this.question.rootClass,ref:function(o){return e.setControl(o)}},this.getItems())},t.prototype.getItems=function(e,n){var o=this;e===void 0&&(e=this.question.renderedRankingChoices);for(var i=[],p=function(b){var q=e[b];i.push(f.renderItem(q,b,function(j){o.question.handleKeydown.call(o.question,j,q)},function(j){j.persist(),o.question.handlePointerDown.call(o.question,j,q,j.currentTarget)},function(j){j.persist(),o.question.handlePointerUp.call(o.question,j,q,j.currentTarget)},f.question.cssClasses,f.question.getItemClass(q),f.question,n))},f=this,v=0;v<e.length;v++)p(v);return i},t.prototype.renderItem=function(e,n,o,i,p,f,v,b,q){""+e.renderedId;var j=this.renderLocString(e.locText),X=n,V=this.question.getNumberByIndex(X),xe=this.question.getItemTabIndex(e),he=s.createElement(Ct,{key:e.value,text:j,index:X,indexText:V,itemTabIndex:xe,handleKeydown:o,handlePointerDown:i,handlePointerUp:p,cssClasses:f,itemClass:v,question:b,unrankedItem:q,item:e}),Rn=this.question.survey,Ie=null;return Rn&&(Ie=y.wrapItemValue(Rn,he,this.question,e)),Ie??he},t}(P),Ct=function(r){Ve(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return 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 s.createElement("svg",null,s.createElement("use",{xlinkHref:this.question.dashSvgIcon}))},t.prototype.renderElement=function(){var e=c.Instance.createElement(this.question.itemComponent,{item:this.item,cssClasses:this.cssClasses});return s.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},s.createElement("div",{tabIndex:-1,style:{outline:"none"}},s.createElement("div",{className:this.cssClasses.itemGhostNode}),s.createElement("div",{className:this.cssClasses.itemContent},s.createElement("div",{className:this.cssClasses.itemIconContainer},s.createElement("svg",{className:this.question.getIconHoverCss()},s.createElement("use",{xlinkHref:this.question.dragDropSvgIcon})),s.createElement("svg",{className:this.question.getIconFocusCss()},s.createElement("use",{xlinkHref:this.question.arrowsSvgIcon}))),s.createElement("div",{className:this.question.getItemIndexClasses(this.item)},!this.unrankedItem&&this.indexText?this.indexText:this.renderEmptyIcon()),e)))},t}(w),xt=function(r){Ve(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return 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 s.createElement("div",{className:this.cssClasses.controlLabel},g.renderLocString(this.item.locText))},t}(w);c.Instance.registerElement("sv-ranking-item",function(r){return s.createElement(xt,r)}),k.Instance.registerQuestion("ranking",function(r){return s.createElement(gt,r)});var wt=function(){var r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,o){n.__proto__=o}||function(n,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(n[i]=o[i])},r(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");r(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),_e=function(r){wt(t,r);function t(e){var n=r.call(this,e)||this;return n.handleOnMouseDown=n.handleOnMouseDown.bind(n),n}return 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}(g),Et=function(r){wt(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.render=function(){var e=this.renderLocString(this.item.locText);return u.a.createElement("label",{onMouseDown:this.handleOnMouseDown,className:this.question.getItemClassByText(this.item.itemValue,this.item.text)},u.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}),u.a.createElement("span",{className:this.question.cssClasses.itemText,"data-text":this.item.text},e))},t.prototype.componentDidMount=function(){r.prototype.componentDidMount.call(this)},t}(_e);c.Instance.registerElement("sv-rating-item",function(r){return u.a.createElement(Et,r)});var nr=function(){var r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,o){n.__proto__=o}||function(n,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(n[i]=o[i])},r(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");r(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),qt=function(r){nr(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.render=function(){var e=this;return u.a.createElement("label",{onMouseDown:this.handleOnMouseDown,className:this.question.getItemClass(this.item.itemValue),onMouseOver:function(n){return e.question.onItemMouseIn(e.item)},onMouseOut:function(n){return e.question.onItemMouseOut(e.item)}},u.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}),u.a.createElement(M,{className:"sv-star",size:"auto",iconName:this.question.itemStarIcon,title:this.item.text}),u.a.createElement(M,{className:"sv-star-2",size:"auto",iconName:this.question.itemStarIconAlt,title:this.item.text}))},t}(_e);c.Instance.registerElement("sv-rating-item-star",function(r){return u.a.createElement(qt,r)});var rr=function(){var r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,o){n.__proto__=o}||function(n,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(n[i]=o[i])},r(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");r(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),St=function(r){rr(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.render=function(){var e=this;return u.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(n){return e.question.onItemMouseIn(e.item)},onMouseOut:function(n){return e.question.onItemMouseOut(e.item)}},u.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}),u.a.createElement(M,{size:"auto",iconName:this.question.getItemSmileyIconName(this.item.itemValue),title:this.item.text}))},t}(_e);c.Instance.registerElement("sv-rating-item-smiley",function(r){return u.a.createElement(St,r)});var or=function(){var r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,o){n.__proto__=o}||function(n,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(n[i]=o[i])},r(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");r(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),Ot=function(r){or(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return 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,n=this.renderDescription(e);return u.a.createElement("div",{className:"sd-rating-dropdown-item"},u.a.createElement("span",{className:"sd-rating-dropdown-item_text"},e.title),n)},t.prototype.renderDescription=function(e){return e.description?u.a.createElement("div",{className:"sd-rating-dropdown-item_description"},this.renderLocString(e.description,void 0,"locString")):null},t}(g);c.Instance.registerElement("sv-rating-dropdown-item",function(r){return u.a.createElement(Ot,r)});var sr=function(){var r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,o){n.__proto__=o}||function(n,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(n[i]=o[i])},r(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");r(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),Ae=function(r){sr(t,r);function t(e){return r.call(this,e)||this}return 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(e,n){r.prototype.componentDidUpdate.call(this,e,n),this.updateDomElement()},t.prototype.componentDidMount=function(){r.prototype.componentDidMount.call(this),this.updateDomElement()},t.prototype.updateDomElement=function(){if(this.inputElement){var e=this.inputElement,n=this.model.inputStringRendered;a.Helpers.isTwoValueEquals(n,e.value,!1,!0,!1)||(e.value=this.model.inputStringRendered)}},t.prototype.onChange=function(e){var n=a.settings.environment.root;e.target===n.activeElement&&(this.model.inputStringRendered=e.target.value)},t.prototype.keyhandler=function(e){this.model.inputKeyHandler(e)},t.prototype.onBlur=function(e){this.question.onBlur(e)},t.prototype.onFocus=function(e){this.question.onFocus(e)},t.prototype.getStateElement=function(){return this.model},t.prototype.render=function(){var e=this;return s.createElement("div",{className:this.question.cssClasses.hint},this.model.showHintPrefix?s.createElement("div",{className:this.question.cssClasses.hintPrefix},s.createElement("span",null,this.model.hintStringPrefix)):null,s.createElement("div",{className:this.question.cssClasses.hintSuffixWrapper},this.model.showHintString?s.createElement("div",{className:this.question.cssClasses.hintSuffix},s.createElement("span",{style:{visibility:"hidden"},"data-bind":"text: model.filterString"},this.model.inputStringRendered),s.createElement("span",null,this.model.hintStringSuffix)):null,s.createElement("input",{type:"text",autoComplete:"off",id:this.question.getInputId(),inputMode:this.model.inputMode,ref:function(n){return e.inputElement=n},className:this.question.cssClasses.filterStringInput,disabled:this.question.isInputReadOnly,readOnly:this.model.filterReadOnly?!0:void 0,size:this.model.inputStringRendered?void 0:1,role:this.model.filterStringEnabled?this.question.ariaRole:void 0,"aria-expanded":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(n){e.keyhandler(n)},onChange:function(n){e.onChange(n)},onBlur:function(n){e.onBlur(n)},onFocus:function(n){e.onFocus(n)}})))},t}(g);k.Instance.registerQuestion("sv-tagbox-filter",function(r){return s.createElement(Ae,r)});var ir=function(){var r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,o){n.__proto__=o}||function(n,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(n[i]=o[i])},r(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");r(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),Lt=function(r){ir(t,r);function t(e){var n=r.call(this,e)||this;return n.state={changed:0},n.setupModel(),n}return t.prototype.componentDidUpdate=function(e,n){r.prototype.componentDidUpdate.call(this,e,n),this.setupModel()},t.prototype.componentDidMount=function(){r.prototype.componentDidMount.call(this),this.setupModel()},t.prototype.componentWillUnmount=function(){r.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 s.createElement("option",{value:this.item.value,disabled:!this.item.isEnabled},this.item.text)},t}(w),ar=function(){var r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,o){n.__proto__=o}||function(n,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(n[i]=o[i])},r(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");r(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),Le=function(r){ar(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.click=function(n){var o;(o=e.question.dropdownListModel)===null||o===void 0||o.onClick(n)},e.chevronPointerDown=function(n){var o;(o=e.question.dropdownListModel)===null||o===void 0||o.chevronPointerDown(n)},e.clear=function(n){var o;(o=e.question.dropdownListModel)===null||o===void 0||o.onClear(n)},e.keyhandler=function(n){var o;(o=e.question.dropdownListModel)===null||o===void 0||o.keyHandler(n)},e.blur=function(n){e.updateInputDomElement(),e.question.onBlur(n)},e.focus=function(n){e.question.onFocus(n)},e}return 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 s.createElement("div",null,this.question.readOnlyText)},t.prototype.renderSelect=function(e){var n=this,o,i,p=null;if(this.question.isReadOnly){var f=this.question.selectedItemLocText?this.renderLocString(this.question.selectedItemLocText):"";p=s.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(),ref:function(v){return n.setControl(v)}},f,this.renderReadOnlyElement())}else p=s.createElement(s.Fragment,null,this.renderInput(this.question.dropdownListModel),s.createElement(Q,{model:(i=(o=this.question)===null||o===void 0?void 0:o.dropdownListModel)===null||i===void 0?void 0:i.popupModel}));return s.createElement("div",{className:e.selectWrapper,onClick:this.click},p,this.createChevronButton())},t.prototype.renderValueElement=function(e){return this.question.showInputFieldComponent?c.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 n=this,o=this.renderValueElement(e),i=a.settings.environment.root,p=function(f){f.target===i.activeElement&&(e.inputStringRendered=f.target.value)};return s.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,onFocus:this.focus,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":this.question.ariaExpanded,"aria-controls":e.listElementId,"aria-activedescendant":e.ariaActivedescendant,ref:function(f){return n.setControl(f)}},e.showHintPrefix?s.createElement("div",{className:this.question.cssClasses.hintPrefix},s.createElement("span",null,e.hintStringPrefix)):null,s.createElement("div",{className:this.question.cssClasses.controlValue},e.showHintString?s.createElement("div",{className:this.question.cssClasses.hintSuffix},s.createElement("span",{style:{visibility:"hidden"},"data-bind":"text: model.filterString"},e.inputStringRendered),s.createElement("span",null,e.hintStringSuffix)):null,o,s.createElement("input",{type:"text",autoComplete:"off",id:this.question.getInputId(),ref:function(f){return n.inputElement=f},className:this.question.cssClasses.filterStringInput,role:e.filterStringEnabled?this.question.ariaRole:void 0,"aria-expanded":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?!0:void 0,tabIndex:e.noTabIndex?void 0:-1,disabled:this.question.isDisabledAttr,inputMode:e.inputMode,onChange:function(f){p(f)},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 s.createElement("div",{className:this.question.cssClasses.cleanButton,style:e,onClick:this.clear,"aria-hidden":"true"},s.createElement(M,{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?s.createElement("div",{className:this.question.cssClasses.chevronButton,"aria-hidden":"true",onPointerDown:this.chevronPointerDown},s.createElement(M,{className:this.question.cssClasses.chevronButtonSvg,iconName:this.question.cssClasses.chevronButtonIconId,size:"auto"})):null},t.prototype.renderOther=function(e){return s.createElement("div",{className:this.question.getCommentAreaCss(!0)},s.createElement(qe,{question:this.question,otherCss:e.other,cssClasses:e,isDisplayMode:this.isDisplayMode,isOther:!0}))},t.prototype.componentDidUpdate=function(e,n){r.prototype.componentDidUpdate.call(this,e,n),this.updateInputDomElement()},t.prototype.componentDidMount=function(){r.prototype.componentDidMount.call(this),this.updateInputDomElement()},t.prototype.componentWillUnmount=function(){r.prototype.componentWillUnmount.call(this),this.question.dropdownListModel&&(this.question.dropdownListModel.focused=!1)},t.prototype.updateInputDomElement=function(){if(this.inputElement){var e=this.inputElement,n=this.question.dropdownListModel.inputStringRendered;a.Helpers.isTwoValueEquals(n,e.value,!1,!0,!1)||(e.value=this.question.dropdownListModel.inputStringRendered)}},t}(D),ur=function(){var r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,o){n.__proto__=o}||function(n,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(n[i]=o[i])},r(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");r(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),Ze=function(r){ur(t,r);function t(e){return r.call(this,e)||this}return t.prototype.renderElement=function(){var e=this.question.cssClasses,n=this.question.isOtherSelected?this.renderOther(e):null,o=this.renderSelect(e);return s.createElement("div",{className:this.question.renderCssRoot},o,n)},t}(Le);k.Instance.registerQuestion("dropdown",function(r){return s.createElement(Ze,r)});var lr=function(){var r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,o){n.__proto__=o}||function(n,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(n[i]=o[i])},r(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");r(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),Mt=function(r){lr(t,r);function t(e){return r.call(this,e)||this}return 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,n=this.renderLocString(this.item.locText),o=function(i){e.question.dropdownListModel.deselectItem(e.item.value),i.stopPropagation()};return s.createElement("div",{className:"sv-tagbox__item"},s.createElement("div",{className:"sv-tagbox__item-text"},n),s.createElement("div",{className:this.question.cssClasses.cleanItemButton,onClick:o},s.createElement(M,{className:this.question.cssClasses.cleanItemButtonSvg,iconName:this.question.cssClasses.cleanItemButtonIconId,size:"auto"})))},t}(w),cr=function(){var r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,o){n.__proto__=o}||function(n,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(n[i]=o[i])},r(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");r(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),It=function(r){cr(t,r);function t(e){return r.call(this,e)||this}return t.prototype.renderItem=function(e,n){var o=s.createElement(Mt,{key:e,question:this.question,item:n});return o},t.prototype.renderInput=function(e){var n=this,o=e,i=this.question.selectedChoices.map(function(p,f){return n.renderItem("item"+f,p)});return s.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":this.question.ariaExpanded,"aria-controls":e.listElementId,"aria-activedescendant":e.ariaActivedescendant,ref:function(p){return n.setControl(p)}},s.createElement("div",{className:this.question.cssClasses.controlValue},i,s.createElement(Ae,{model:o,question:this.question})),this.createClearButton())},t.prototype.renderElement=function(){var e=this.question.cssClasses,n=this.question.isOtherSelected?this.renderOther(e):null,o=this.renderSelect(e);return s.createElement("div",{className:this.question.renderCssRoot},o,n)},t.prototype.renderReadOnlyElement=function(){return this.question.locReadOnlyText?this.renderLocString(this.question.locReadOnlyText):null},t}(Le);k.Instance.registerQuestion("tagbox",function(r){return s.createElement(It,r)});var pr=function(){var r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,o){n.__proto__=o}||function(n,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(n[i]=o[i])},r(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");r(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),bt=function(r){pr(t,r);function t(e){return r.call(this,e)||this}return t.prototype.renderSelect=function(e){var n=this,o=function(f){n.question.onClick(f)},i=function(f){n.question.onKeyUp(f)},p=this.isDisplayMode?s.createElement("div",{id:this.question.inputId,className:this.question.getControlClass(),disabled:!0},this.question.readOnlyText):s.createElement("select",{id:this.question.inputId,className:this.question.getControlClass(),ref:function(f){return n.setControl(f)},autoComplete:this.question.autocomplete,onChange:this.updateValueOnEvent,onInput:this.updateValueOnEvent,onClick:o,onKeyUp:i,"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?s.createElement("option",{value:""},this.question.placeholder):null,this.question.visibleChoices.map(function(f,v){return s.createElement(Lt,{key:"item"+v,item:f})}));return s.createElement("div",{className:e.selectWrapper},p,this.createChevronButton())},t}(Ze);k.Instance.registerQuestion("sv-dropdown-select",function(r){return s.createElement(bt,r)}),a.RendererFactory.Instance.registerRenderer("dropdown","select","sv-dropdown-select");var Qe=function(){var r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,o){n.__proto__=o}||function(n,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(n[i]=o[i])},r(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");r(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),Rt=function(r){Qe(t,r);function t(e){var n=r.call(this,e)||this;return n.state={rowsChanged:0},n}return Object.defineProperty(t.prototype,"question",{get:function(){return this.questionBase},enumerable:!1,configurable:!0}),t.prototype.componentDidMount=function(){if(r.prototype.componentDidMount.call(this),this.question){var e=this;this.question.visibleRowsChangedCallback=function(){e.setState({rowsChanged:e.state.rowsChanged+1})}}},t.prototype.componentWillUnmount=function(){r.prototype.componentWillUnmount.call(this),this.question&&(this.question.visibleRowsChangedCallback=null)},t.prototype.renderElement=function(){for(var e=this,n=this.question.cssClasses,o=this.question.hasRows?s.createElement("td",null):null,i=[],p=0;p<this.question.visibleColumns.length;p++){var f=this.question.visibleColumns[p],v="column"+p,b=this.renderLocString(f.locText),q={};this.question.columnMinWidth&&(q.minWidth=this.question.columnMinWidth,q.width=this.question.columnMinWidth),i.push(s.createElement("th",{className:this.question.cssClasses.headerCell,style:q,key:v},this.wrapCell({column:f},b,"column-header")))}for(var j=[],X=this.question.visibleRows,p=0;p<X.length;p++){var V=X[p],v="row-"+V.name+"-"+p;j.push(s.createElement(Pt,{key:v,question:this.question,cssClasses:n,row:V,isFirst:p==0}))}var xe=this.question.showHeader?s.createElement("thead",null,s.createElement("tr",null,o,i)):null;return s.createElement("div",{className:n.tableWrapper,ref:function(he){return e.setControl(he)}},s.createElement("fieldset",null,s.createElement("legend",{className:"sv-hidden"},this.question.locTitle.renderedHtml),s.createElement("table",{className:this.question.getTableCss()},xe,s.createElement("tbody",null,j))))},t}(P),Pt=function(r){Qe(t,r);function t(e){return r.call(this,e)||this}return t.prototype.getStateElement=function(){return this.row?this.row.item:r.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,n,o){if(!o)return n;var i=this.question.survey,p=null;return i&&(p=y.wrapMatrixCell(i,n,e,o)),p??n},t.prototype.canRender=function(){return!!this.row},t.prototype.renderElement=function(){var e=null;if(this.question.hasRows){var n=this.renderLocString(this.row.locText),o={};this.question.rowTitleWidth&&(o.minWidth=this.question.rowTitleWidth,o.width=this.question.rowTitleWidth),e=s.createElement("td",{style:o,className:this.row.rowTextClasses},this.wrapCell({row:this.row},n,"row-header"))}var i=this.generateTds();return s.createElement("tr",{className:this.row.rowClasses||void 0},e,i)},t.prototype.generateTds=function(){for(var e=this,n=[],o=this.row,i=this.question.cellComponent,p=function(){var b=null,q=f.question.visibleColumns[v],j="value"+v,X=f.question.getItemClass(o,q);if(f.question.hasCellText){var V=function(he){return function(){return e.cellClick(o,he)}};b=s.createElement("td",{key:j,className:X,onClick:V?V(q):function(){}},f.renderLocString(f.question.getCellDisplayLocText(o.name,q)))}else{var xe=c.Instance.createElement(i,{question:f.question,row:f.row,column:q,columnIndex:v,cssClasses:f.cssClasses,cellChanged:function(){e.cellClick(e.row,q)}});b=s.createElement("td",{key:j,"data-responsive-title":q.locText.renderedHtml,className:f.question.cssClasses.cell},xe)}n.push(b)},f=this,v=0;v<this.question.visibleColumns.length;v++)p();return n},t.prototype.cellClick=function(e,n){e.value=n.value,this.setState({value:this.row.value})},t}(w),Nt=function(r){Qe(t,r);function t(e){var n=r.call(this,e)||this;return n.handleOnMouseDown=n.handleOnMouseDown.bind(n),n.handleOnChange=n.handleOnChange.bind(n),n}return 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,n=this.question.inputId+"_"+this.row.name+"_"+this.columnIndex,o=this.question.getItemClass(this.row,this.column),i=this.question.isMobile?s.createElement("span",{className:this.question.cssClasses.cellResponsiveTitle},this.renderLocString(this.column.locText)):void 0;return s.createElement("label",{onMouseDown:this.handleOnMouseDown,className:o},this.renderInput(n,e),s.createElement("span",{className:this.question.cssClasses.materialDecorator},this.question.itemSvgIcon?s.createElement("svg",{className:this.cssClasses.itemDecorator},s.createElement("use",{xlinkHref:this.question.itemSvgIcon})):null),i)},t.prototype.renderInput=function(e,n){return s.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:n,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}(w);c.Instance.registerElement("survey-matrix-cell",function(r){return s.createElement(Nt,r)}),k.Instance.registerQuestion("matrix",function(r){return s.createElement(Rt,r)});var dr=function(){var r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,o){n.__proto__=o}||function(n,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(n[i]=o[i])},r(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");r(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),kt=function(r){dr(t,r);function t(e){return r.call(this,e)||this}return 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,n){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 r.prototype.canRender.call(this)&&!!this.question.html},t.prototype.renderElement=function(){var e={__html:this.question.locHtml.renderedHtml};return s.createElement("div",{className:this.question.renderCssRoot,dangerouslySetInnerHTML:e})},t}(P);k.Instance.registerQuestion("html",function(r){return s.createElement(kt,r)});var hr=function(){var r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,o){n.__proto__=o}||function(n,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(n[i]=o[i])},r(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");r(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),Fe=function(r){hr(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.render=function(){return s.createElement("div",{className:"sd-loading-indicator"},s.createElement(M,{iconName:"icon-loading",size:"auto"}))},t}(s.Component),fr=function(){var r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,o){n.__proto__=o}||function(n,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(n[i]=o[i])},r(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");r(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),We=function(r){fr(t,r);function t(e){return r.call(this,e)||this}return 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 Se(u.a.createElement("label",{tabIndex:0,className:this.question.getChooseFileCss(),htmlFor:this.question.inputId,"aria-label":this.question.chooseButtonText,onClick:function(n){return e.question.chooseFile(n.nativeEvent)}},this.question.cssClasses.chooseFileIconId?u.a.createElement(M,{title:this.question.chooseButtonText,iconName:this.question.cssClasses.chooseFileIconId,size:"auto"}):null,u.a.createElement("span",null,this.question.chooseButtonText)))},t}(w);c.Instance.registerElement("sv-file-choose-btn",function(r){return u.a.createElement(We,r)});var mr=function(){var r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,o){n.__proto__=o}||function(n,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(n[i]=o[i])},r(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");r(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),jt=function(r){mr(t,r);function t(e){return r.call(this,e)||this}return Object.defineProperty(t.prototype,"question",{get:function(){return this.questionBase},enumerable:!1,configurable:!0}),t.prototype.renderElement=function(){var e=this,n=this.question.allowShowPreview?this.renderPreview():null,o=this.question.showLoadingIndicator?this.renderLoadingIndicator():null,i=this.question.isPlayingVideo?this.renderVideo():null,p=this.question.showFileDecorator?this.renderFileDecorator():null,f=this.question.showRemoveButton?this.renderClearButton(this.question.cssClasses.removeButton):null,v=this.question.showRemoveButtonBottom?this.renderClearButton(this.question.cssClasses.removeButtonBottom):null,b=this.question.fileNavigatorVisible?s.createElement(T,{model:this.question.fileNavigator}):null,q;return this.question.isReadOnlyAttr?q=s.createElement("input",{readOnly:!0,type:"file",className:this.isDisplayMode?this.question.getReadOnlyFileCss():this.question.cssClasses.fileInput,id:this.question.inputId,ref:function(j){return e.setControl(j)},style:this.isDisplayMode?{color:"transparent"}:{},multiple:this.question.allowMultiple,placeholder:this.question.title,accept:this.question.acceptedTypes}):this.question.isDisabledAttr?q=s.createElement("input",{disabled:!0,type:"file",className:this.isDisplayMode?this.question.getReadOnlyFileCss():this.question.cssClasses.fileInput,id:this.question.inputId,ref:function(j){return e.setControl(j)},style:this.isDisplayMode?{color:"transparent"}:{},multiple:this.question.allowMultiple,placeholder:this.question.title,accept:this.question.acceptedTypes}):this.question.hasFileUI?q=s.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(j){return e.setControl(j)},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}):q=null,s.createElement("div",{className:this.question.fileRootCss,ref:function(j){return e.setContent(j)}},q,s.createElement("div",{className:this.question.cssClasses.dragArea,onDrop:this.question.onDrop,onDragOver:this.question.onDragOver,onDragLeave:this.question.onDragLeave,onDragEnter:this.question.onDragEnter},p,o,i,f,n,v,b))},t.prototype.renderFileDecorator=function(){var e=this.question.showChooseButton?this.renderChooseButton():null,n=this.question.actionsContainerVisible?s.createElement(T,{model:this.question.actionsContainer}):null,o=this.question.isEmpty()?s.createElement("span",{className:this.question.cssClasses.noFileChosen},this.question.noFileChosenCaption):null;return s.createElement("div",{className:this.question.getFileDecoratorCss()},s.createElement("span",{className:this.question.cssClasses.dragAreaPlaceholder},this.renderLocString(this.question.locRenderedPlaceholder)),s.createElement("div",{className:this.question.cssClasses.wrapper},e,n,o))},t.prototype.renderChooseButton=function(){return s.createElement(We,{data:{question:this.question}})},t.prototype.renderClearButton=function(e){return this.question.isUploading?null:s.createElement("button",{type:"button",onClick:this.question.doClean,className:e},s.createElement("span",null,this.question.clearButtonCaption),this.question.cssClasses.removeButtonIconId?s.createElement(M,{iconName:this.question.cssClasses.removeButtonIconId,size:"auto",title:this.question.clearButtonCaption}):null)},t.prototype.renderPreview=function(){return c.Instance.createElement("sv-file-preview",{question:this.question})},t.prototype.renderLoadingIndicator=function(){return s.createElement("div",{className:this.question.cssClasses.loadingIndicator},s.createElement(Fe,null))},t.prototype.renderVideo=function(){return s.createElement("div",{className:this.question.cssClasses.videoContainer},s.createElement($,{item:this.question.changeCameraAction}),s.createElement($,{item:this.question.closeCameraAction}),s.createElement("video",{autoPlay:!0,playsInline:!0,id:this.question.videoId,className:this.question.cssClasses.video}),s.createElement($,{item:this.question.takePictureAction}))},t}(P);k.Instance.registerQuestion("file",function(r){return s.createElement(jt,r)});var vr=function(){var r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,o){n.__proto__=o}||function(n,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(n[i]=o[i])},r(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");r(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),Bt=function(r){vr(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return 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.renderFileSign=function(e,n){var o=this;return!e||!n.name?null:u.a.createElement("div",{className:e},u.a.createElement("a",{href:n.content,onClick:function(i){o.question.doDownloadFile(i,n)},title:n.name,download:n.name,style:{width:this.question.imageWidth}},n.name))},t.prototype.renderElement=function(){var e=this,n=this.item;return u.a.createElement("span",{className:this.question.cssClasses.previewItem,onClick:function(o){return e.question.doDownloadFileFromContainer(o)}},this.renderFileSign(this.question.cssClasses.fileSign,n),u.a.createElement("div",{className:this.question.getImageWrapperCss(n)},this.question.canPreviewImage(n)?u.a.createElement("img",{src:n.content,style:{height:this.question.imageHeight,width:this.question.imageWidth},alt:"File preview"}):this.question.cssClasses.defaultImage?u.a.createElement(M,{iconName:this.question.cssClasses.defaultImageIconId,size:"auto",className:this.question.cssClasses.defaultImage}):null,n.name&&!this.question.isReadOnly?u.a.createElement("div",{className:this.question.getRemoveButtonCss(),onClick:function(o){return e.question.doRemoveFile(n,o)}},u.a.createElement("span",{className:this.question.cssClasses.removeFile},this.question.removeFileCaption),this.question.cssClasses.removeFileSvgIconId?u.a.createElement(M,{title:this.question.removeFileCaption,iconName:this.question.cssClasses.removeFileSvgIconId,size:"auto",className:this.question.cssClasses.removeFileSvg}):null):null),this.renderFileSign(this.question.cssClasses.fileSignBottom,n))},t.prototype.canRender=function(){return this.question.showPreviewContainer},t}(g),yr=function(){var r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,o){n.__proto__=o}||function(n,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(n[i]=o[i])},r(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");r(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),gr=function(r){yr(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return Object.defineProperty(t.prototype,"question",{get:function(){return this.props.question},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"page",{get:function(){return this.props.page},enumerable:!1,configurable:!0}),t.prototype.renderElement=function(){var e=this,n=this.page.items.map(function(o,i){return u.a.createElement(Bt,{item:o,question:e.question,key:i})});return u.a.createElement("div",{className:this.page.css,id:this.page.id},n)},t}(g),Cr=function(){var r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,o){n.__proto__=o}||function(n,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(n[i]=o[i])},r(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");r(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),Ht=function(r){Cr(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return Object.defineProperty(t.prototype,"question",{get:function(){return this.props.question},enumerable:!1,configurable:!0}),t.prototype.renderFileSign=function(e,n){var o=this;return!e||!n.name?null:u.a.createElement("div",{className:e},u.a.createElement("a",{href:n.content,onClick:function(i){o.question.doDownloadFile(i,n)},title:n.name,download:n.name,style:{width:this.question.imageWidth}},n.name))},t.prototype.renderElement=function(){var e=this,n=this.question.supportFileNavigator?this.question.renderedPages.map(function(o,i){return u.a.createElement(gr,{page:o,question:e.question,key:o.id})}):this.question.previewValue.map(function(o,i){return u.a.createElement(Bt,{item:o,question:e.question,key:i})});return u.a.createElement("div",{className:this.question.cssClasses.fileList||void 0},n)},t.prototype.canRender=function(){return this.question.showPreviewContainer},t}(g);c.Instance.registerElement("sv-file-preview",function(r){return u.a.createElement(Ht,r)});var Ue=function(){var r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,o){n.__proto__=o}||function(n,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(n[i]=o[i])},r(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");r(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),Tt=function(r){Ue(t,r);function t(e){return r.call(this,e)||this}return Object.defineProperty(t.prototype,"question",{get:function(){return this.questionBase},enumerable:!1,configurable:!0}),t.prototype.renderElement=function(){for(var e=this.question.cssClasses,n=this.question.getRows(),o=[],i=0;i<n.length;i++)n[i].isVisible&&o.push(this.renderRow(i,n[i].cells,e));return s.createElement("table",{className:this.question.getQuestionRootCss()},s.createElement("tbody",null,o))},t.prototype.renderCell=function(e,n,o){var i,p=function(){e.item.focusIn()};return e.isErrorsCell?i=s.createElement(lt,{question:e.item.editor,creator:this.creator}):i=s.createElement(xr,{question:this.question,item:e.item,creator:this.creator,cssClasses:n}),s.createElement("td",{key:"item"+o,className:e.className,onFocus:p},i)},t.prototype.renderRow=function(e,n,o){for(var i="item"+e,p=[],f=0;f<n.length;f++){var v=n[f];p.push(this.renderCell(v,o,f))}return s.createElement("tr",{key:i,className:o.row},p)},t}(P),xr=function(r){Ue(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return 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,n=this.cssClasses,o={};return this.question.itemTitleWidth&&(o.minWidth=this.question.itemTitleWidth,o.width=this.question.itemTitleWidth),s.createElement("label",{className:this.question.getItemLabelCss(e)},s.createElement("span",{className:n.itemTitle,style:o},s.createElement(J,{element:e.editor,cssClasses:e.editor.cssClasses})),s.createElement(wr,{cssClasses:n,itemCss:this.question.getItemCss(),question:e.editor,creator:this.creator}))},t}(w),wr=function(r){Ue(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.renderElement=function(){return s.createElement("div",{className:this.itemCss},this.renderContent())},t}(at);k.Instance.registerQuestion("multipletext",function(r){return s.createElement(Tt,r)});var Dt=function(){var r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,o){n.__proto__=o}||function(n,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(n[i]=o[i])},r(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");r(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),Vt=function(r){Dt(t,r);function t(e){return r.call(this,e)||this}return Object.defineProperty(t.prototype,"question",{get:function(){return this.questionBase},enumerable:!1,configurable:!0}),t.prototype.renderElement=function(){var e=this,n=this.question.cssClasses,o=null;return this.question.showClearButtonInContent&&(o=s.createElement("div",null,s.createElement("input",{type:"button",className:this.question.cssClasses.clearButton,onClick:function(){return e.question.clearValue(!0)},value:this.question.clearButtonCaption}))),s.createElement("fieldset",{className:this.question.getSelectBaseRootCss(),ref:function(i){return e.setControl(i)},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(n):this.getBody(n),this.getFooter(),this.question.isOtherSelected?this.renderOther(n):null,o)},t.prototype.getFooter=function(){var e=this;if(this.question.hasFootItems)return this.question.footItems.map(function(n,o){return e.renderItem(n,!1,e.question.cssClasses)})},t.prototype.getColumnedBody=function(e){return s.createElement("div",{className:e.rootMultiColumn},this.getColumns(e))},t.prototype.getColumns=function(e){var n=this,o=this.getStateValue();return this.question.columns.map(function(i,p){var f=i.map(function(v,b){return n.renderItem(v,o,e,""+p+b)});return s.createElement("div",{key:"column"+p+n.question.getItemsColumnKey(i),className:n.question.getColumnClass(),role:"presentation"},f)})},t.prototype.getBody=function(e){return this.question.blockedRow?s.createElement("div",{className:e.rootRow},this.getItems(e,this.question.dataChoices)):s.createElement(s.Fragment,null,this.getItems(e,this.question.bodyItems))},t.prototype.getItems=function(e,n){for(var o=[],i=this.getStateValue(),p=0;p<n.length;p++){var f=n[p],v=this.renderItem(f,i,e,""+p);o.push(v)}return o},Object.defineProperty(t.prototype,"textStyle",{get:function(){return null},enumerable:!1,configurable:!0}),t.prototype.renderOther=function(e){return s.createElement("div",{className:this.question.getCommentAreaCss(!0)},s.createElement(qe,{question:this.question,otherCss:e.other,cssClasses:e,isDisplayMode:this.isDisplayMode}))},t.prototype.renderItem=function(e,n,o,i){var p=c.Instance.createElement(this.question.itemComponent,{key:e.value,question:this.question,cssClasses:o,isDisplayMode:this.isDisplayMode,item:e,textStyle:this.textStyle,index:i,isChecked:n===e.value}),f=this.question.survey,v=null;return f&&(v=y.wrapItemValue(f,p,this.question,e)),v??p},t.prototype.getStateValue=function(){return this.question.isEmpty()?"":this.question.renderedValue},t}(P),ze=function(r){Dt(t,r);function t(e){var n=r.call(this,e)||this;return n.rootRef=s.createRef(),n.handleOnChange=n.handleOnChange.bind(n),n.handleOnMouseDown=n.handleOnMouseDown.bind(n),n}return 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 this.props.hideCaption===!0},enumerable:!1,configurable:!0}),t.prototype.shouldComponentUpdate=function(e,n){return!r.prototype.shouldComponentUpdate.call(this,e,n)||!this.question?!1:!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.componentDidUpdate=function(e,n){r.prototype.componentDidUpdate.call(this,e,n),e.item!==this.props.item&&!this.question.isDesignMode&&(this.props.item&&this.props.item.setRootElement(this.rootRef.current),e.item&&e.item.setRootElement(void 0))},t.prototype.renderElement=function(){var e=this.question.getItemClass(this.item),n=this.question.getLabelClass(this.item),o=this.question.getControlLabelClass(this.item),i=this.hideCaption?null:s.createElement("span",{className:o},this.renderLocString(this.item.locText,this.textStyle));return s.createElement("div",{className:e,role:"presentation",ref:this.rootRef},s.createElement("label",{onMouseDown:this.handleOnMouseDown,className:n},s.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?s.createElement("span",{className:this.cssClasses.materialDecorator},this.question.itemSvgIcon?s.createElement("svg",{className:this.cssClasses.itemDecorator},s.createElement("use",{xlinkHref:this.question.itemSvgIcon})):null):null,i))},t.prototype.componentDidMount=function(){r.prototype.componentDidMount.call(this),this.question.isDesignMode||this.item.setRootElement(this.rootRef.current)},t.prototype.componentWillUnmount=function(){r.prototype.componentWillUnmount.call(this),this.question.isDesignMode||this.item.setRootElement(void 0)},t}(w);c.Instance.registerElement("survey-radiogroup-item",function(r){return s.createElement(ze,r)}),k.Instance.registerQuestion("radiogroup",function(r){return s.createElement(Vt,r)});var Er=function(){var r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,o){n.__proto__=o}||function(n,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(n[i]=o[i])},r(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");r(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),_t=function(r){Er(t,r);function t(e){return r.call(this,e)||this}return t.prototype.renderInput=function(){var e=this,n=this.question.getControlClass(),o=this.question.renderedPlaceholder;if(this.question.isReadOnlyRenderDiv())return s.createElement("div",null,this.question.inputValue);var i=this.question.getMaxLength()?s.createElement(Ee,{counter:this.question.characterCounter,remainingCharacterCounter:this.question.cssClasses.remainingCharacterCounter}):null;return s.createElement(s.Fragment,null,s.createElement("input",{id:this.question.inputId,disabled:this.question.isDisabledAttr,readOnly:this.question.isReadOnlyAttr,className:n,type:this.question.inputType,ref:function(p){return e.setControl(p)},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:o,list:this.question.dataListId,autoComplete:this.question.autocomplete,onBlur:function(p){e.question.onBlur(p)},onFocus:function(p){e.question.onFocus(p)},onChange:this.question.onChange,onKeyUp:this.question.onKeyUp,onKeyDown:this.question.onKeyDown,onCompositionUpdate:function(p){return e.question.onCompositionUpdate(p.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}),i)},t.prototype.renderElement=function(){return this.question.dataListId?s.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(e.length==0)return null;for(var n=[],o=0;o<e.length;o++)n.push(s.createElement("option",{key:"item"+o,value:e[o]}));return s.createElement("datalist",{id:this.question.dataListId},n)},t}(D);k.Instance.registerQuestion("text",function(r){return s.createElement(_t,r)});var qr=function(){var r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,o){n.__proto__=o}||function(n,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(n[i]=o[i])},r(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");r(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),Me=function(r){qr(t,r);function t(e){var n=r.call(this,e)||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=s.createRef(),n}return 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,n){this.question.onLabelClick(e,n)},t.prototype.handleOnKeyDown=function(e){this.question.onKeyDownCore(e)},t.prototype.updateDomElement=function(){if(this.question){var e=this.checkRef.current;e&&(e.indeterminate=this.question.isIndeterminate),this.setControl(e),r.prototype.updateDomElement.call(this)}},t.prototype.renderElement=function(){var e=this,n=this.question.cssClasses,o=this.question.getItemCss();return s.createElement("div",{className:n.root,onKeyDown:this.handleOnKeyDown},s.createElement("label",{className:o,onClick:this.handleOnClick},s.createElement("input",{ref:this.checkRef,type:"checkbox",name:this.question.name,value:this.question.booleanValue===null?"":this.question.booleanValue,id:this.question.inputId,className:n.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}),s.createElement("div",{className:n.sliderGhost,onClick:function(i){return e.handleOnLabelClick(i,e.question.swapOrder)}},s.createElement("span",{className:this.question.getLabelCss(this.question.swapOrder)},this.renderLocString(this.question.locLabelLeft))),s.createElement("div",{className:n.switch,onClick:this.handleOnSwitchClick},s.createElement("span",{className:n.slider},this.question.isDeterminated&&n.sliderText?s.createElement("span",{className:n.sliderText},this.renderLocString(this.question.getCheckedLabel())):null)),s.createElement("div",{className:n.sliderGhost,onClick:function(i){return e.handleOnLabelClick(i,!e.question.swapOrder)}},s.createElement("span",{className:this.question.getLabelCss(!this.question.swapOrder)},this.renderLocString(this.question.locLabelRight)))))},t}(P);k.Instance.registerQuestion("boolean",function(r){return s.createElement(Me,r)});var Sr=function(){var r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,o){n.__proto__=o}||function(n,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(n[i]=o[i])},r(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");r(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),At=function(r){Sr(t,r);function t(e){return r.call(this,e)||this}return t.prototype.renderElement=function(){var e=this.question.cssClasses,n=this.question.getCheckboxItemCss(),o=this.question.canRenderLabelDescription?g.renderQuestionDescription(this.question):null;return s.createElement("div",{className:e.rootCheckbox},s.createElement("div",{className:n},s.createElement("label",{className:e.checkboxLabel},s.createElement("input",{ref:this.checkRef,type:"checkbox",name:this.question.name,value:this.question.booleanValue===null?"":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}),s.createElement("span",{className:e.checkboxMaterialDecorator},this.question.svgIcon?s.createElement("svg",{className:e.checkboxItemDecorator},s.createElement("use",{xlinkHref:this.question.svgIcon})):null,s.createElement("span",{className:"check"})),this.question.isLabelRendered&&s.createElement("span",{className:e.checkboxControlLabel,id:this.question.labelRenderedAriaID},s.createElement(G,{element:this.question,cssClasses:this.question.cssClasses}))),o))},t}(Me);k.Instance.registerQuestion("sv-boolean-checkbox",function(r){return s.createElement(At,r)}),a.RendererFactory.Instance.registerRenderer("boolean","checkbox","sv-boolean-checkbox");var Or=function(){var r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,o){n.__proto__=o}||function(n,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(n[i]=o[i])},r(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");r(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),Zt=function(r){Or(t,r);function t(e){var n=r.call(this,e)||this;return n.handleOnChange=function(o){n.question.booleanValue=o.nativeEvent.target.value=="true"},n}return t.prototype.renderRadioItem=function(e,n){var o=this.question.cssClasses;return s.createElement("div",{role:"presentation",className:this.question.getRadioItemClass(o,e)},s.createElement("label",{className:o.radioLabel},s.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:o.itemRadioControl,onChange:this.handleOnChange}),this.question.cssClasses.materialRadioDecorator?s.createElement("span",{className:o.materialRadioDecorator},this.question.itemSvgIcon?s.createElement("svg",{className:o.itemRadioDecorator},s.createElement("use",{xlinkHref:this.question.itemSvgIcon})):null):null,s.createElement("span",{className:o.radioControlLabel},this.renderLocString(n))))},t.prototype.renderElement=function(){var e=this.question.cssClasses;return s.createElement("div",{className:e.rootRadio},s.createElement("fieldset",{role:"presentation",className:e.radioFieldset},this.question.swapOrder?s.createElement(s.Fragment,null,this.renderRadioItem(!0,this.question.locLabelTrue),this.renderRadioItem(!1,this.question.locLabelFalse)):s.createElement(s.Fragment,null,this.renderRadioItem(!1,this.question.locLabelFalse),this.renderRadioItem(!0,this.question.locLabelTrue))))},t}(Me);k.Instance.registerQuestion("sv-boolean-radio",function(r){return s.createElement(Zt,r)}),a.RendererFactory.Instance.registerRenderer("boolean","radio","sv-boolean-radio");var Lr=function(){var r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,o){n.__proto__=o}||function(n,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(n[i]=o[i])},r(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");r(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),Qt=function(r){Lr(t,r);function t(e){var n=r.call(this,e)||this;return n.state={value:n.question.value},n}return Object.defineProperty(t.prototype,"question",{get:function(){return this.questionBase},enumerable:!1,configurable:!0}),t.prototype.renderElement=function(){return s.createElement("div",null)},t}(P);k.Instance.registerQuestion("empty",function(r){return s.createElement(Qt,r)});var Mr=function(){var r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,o){n.__proto__=o}||function(n,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(n[i]=o[i])},r(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");r(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),Ke=function(r){Mr(t,r);function t(e){var n=r.call(this,e)||this;return n.root=u.a.createRef(),n.onPointerDownHandler=function(o){n.parentMatrix.onPointerDown(o.nativeEvent,n.model.row)},n}return 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(){r.prototype.componentDidMount.call(this),this.root.current&&this.model.setRootElement(this.root.current)},t.prototype.componentWillUnmount=function(){r.prototype.componentWillUnmount.call(this),this.model.setRootElement(void 0)},t.prototype.shouldComponentUpdate=function(e,n){return r.prototype.shouldComponentUpdate.call(this,e,n)?(e.model!==this.model&&(e.element&&e.element.setRootElement(this.root.current),this.model&&this.model.setRootElement(void 0)),!0):!1},t.prototype.render=function(){var e=this,n=this.model;return n.visible?u.a.createElement("tr",{ref:this.root,className:n.className,"data-sv-drop-target-matrix-row":n.row&&n.row.id,onPointerDown:function(o){return e.onPointerDownHandler(o)}},this.props.children):null},t}(g);c.Instance.registerElement("sv-matrix-row",function(r){return u.a.createElement(Ke,r)});var Ir=function(){var r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,o){n.__proto__=o}||function(n,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(n[i]=o[i])},r(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");r(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),$e=function(r){Ir(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return Object.defineProperty(t.prototype,"question",{get:function(){return this.props.item.data.question},enumerable:!1,configurable:!0}),t.prototype.renderElement=function(){return u.a.createElement("div",null,this.renderIcon())},t.prototype.renderIcon=function(){return this.question.iconDragElement?u.a.createElement("svg",{className:this.question.cssClasses.dragElementDecorator},u.a.createElement("use",{xlinkHref:this.question.iconDragElement})):u.a.createElement("span",{className:this.question.cssClasses.iconDrag})},t}(w);c.Instance.registerElement("sv-matrix-drag-drop-icon",function(r){return u.a.createElement($e,r)});var de=function(){var r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,o){n.__proto__=o}||function(n,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(n[i]=o[i])},r(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");r(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),br=function(r){de(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return 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,n,o){return this.props.wrapCell(e,n,o)},t.prototype.renderHeader=function(){var e=this.question.renderedTable;if(!e.showHeader)return null;for(var n=[],o=e.headerRow.cells,i=0;i<o.length;i++){var p=o[i],f="column"+i,v={};p.width&&(v.width=p.width),p.minWidth&&(v.minWidth=p.minWidth);var b=this.renderCellContent(p,"column-header",{}),q=p.hasTitle?s.createElement("th",{className:p.className,key:f,style:v}," ",b," "):s.createElement("td",{className:p.className,key:f,style:v});n.push(q)}return s.createElement("thead",null,s.createElement("tr",null,n))},t.prototype.renderFooter=function(){var e=this.question.renderedTable;if(!e.showFooter)return null;var n=this.renderRow("footer",e.footerRow,this.question.cssClasses,"row-footer");return s.createElement("tfoot",null,n)},t.prototype.renderRows=function(){for(var e=this.question.cssClasses,n=[],o=this.question.renderedTable.renderedRows,i=0;i<o.length;i++)n.push(this.renderRow(o[i].id,o[i],e));return s.createElement("tbody",null,n)},t.prototype.renderRow=function(e,n,o,i){for(var p=[],f=n.cells,v=0;v<f.length;v++)p.push(this.renderCell(f[v],o,i));var b="row"+e;return s.createElement(s.Fragment,{key:b},i=="row-footer"?s.createElement("tr",null,p):s.createElement(Ke,{model:n,parentMatrix:this.question},p))},t.prototype.renderCell=function(e,n,o){var i="cell"+e.id;if(e.hasQuestion)return s.createElement(Wt,{key:i,cssClasses:n,cell:e,creator:this.creator,reason:o});if(e.isErrorsCell&&e.isErrorsCell)return s.createElement(Pr,{cell:e,key:i,keyValue:i,question:e.question,creator:this.creator});var p=o;p||(p=e.hasTitle?"row-header":"");var f=this.renderCellContent(e,p,n),v=null;return(e.width||e.minWidth)&&(v={},e.width&&(v.width=e.width),e.minWidth&&(v.minWidth=e.minWidth)),s.createElement("td",{className:e.className,key:i,style:v,colSpan:e.colSpans,title:e.getTitle()},f)},t.prototype.renderCellContent=function(e,n,o){var i=null,p=null;if((e.width||e.minWidth)&&(p={},e.width&&(p.width=e.width),e.minWidth&&(p.minWidth=e.minWidth)),e.hasTitle){n="row-header";var f=this.renderLocString(e.locTitle),v=e.column?s.createElement(Ft,{column:e.column,question:this.question}):null;i=s.createElement(s.Fragment,null,f,v)}if(e.isDragHandlerCell&&(i=s.createElement(s.Fragment,null,s.createElement($e,{item:{data:{row:e.row,question:this.question}}}))),e.isActionsCell&&(i=c.Instance.createElement("sv-matrixdynamic-actions-cell",{question:this.question,cssClasses:o,cell:e,model:e.item.getData()})),e.hasPanel&&(i=s.createElement(pe,{key:e.panel.id,element:e.panel,survey:this.question.survey,cssClasses:o,isDisplayMode:this.isDisplayMode,creator:this.creator})),!i)return null;var b=s.createElement(s.Fragment,null,i);return this.wrapCell(e,b,n)},t.prototype.renderElement=function(){var e=this.renderHeader(),n=this.renderFooter(),o=this.renderRows();return s.createElement("table",{className:this.question.getTableCss()},e,o,n)},t}(g),Je=function(r){de(t,r);function t(e){var n=r.call(this,e)||this;return n.question.renderedTable,n.state=n.getState(),n}return Object.defineProperty(t.prototype,"question",{get:function(){return this.questionBase},enumerable:!1,configurable:!0}),t.prototype.getState=function(e){return e===void 0&&(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 e=this;r.prototype.componentDidMount.call(this),this.question.onRenderedTableResetCallback=function(){e.updateStateOnCallback()}},t.prototype.componentWillUnmount=function(){r.prototype.componentWillUnmount.call(this),this.question.onRenderedTableResetCallback=function(){}},t.prototype.renderElement=function(){return this.renderTableDiv()},t.prototype.renderTableDiv=function(){var e=this,n=this.question.showHorizontalScroll?{overflowX:"scroll"}:{};return s.createElement("div",{style:n,className:this.question.cssClasses.tableWrapper,ref:function(o){return e.setControl(o)}},s.createElement(br,{question:this.question,creator:this.creator,wrapCell:function(o,i,p){return e.wrapCell(o,i,p)}}))},t}(P),Rr=function(r){de(t,r);function t(e){return r.call(this,e)||this}return Object.defineProperty(t.prototype,"model",{get:function(){return this.props.model},enumerable:!1,configurable:!0}),t.prototype.renderElement=function(){return s.createElement(T,{model:this.model,handleClick:!1})},t}(w),Pr=function(r){de(t,r);function t(e){return r.call(this,e)||this}return Object.defineProperty(t.prototype,"key",{get:function(){return this.props.keyValue},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"cell",{get:function(){return this.props.cell},enumerable:!1,configurable:!0}),t.prototype.render=function(){return this.cell.isVisible?s.createElement("td",{className:this.cell.className,key:this.key,colSpan:this.cell.colSpans,title:this.cell.getTitle()},r.prototype.render.call(this)):null},t.prototype.getQuestionPropertiesToTrack=function(){return r.prototype.getQuestionPropertiesToTrack.call(this).concat(["visible"])},t}(lt);c.Instance.registerElement("sv-matrixdynamic-actions-cell",function(r){return s.createElement(Rr,r)});var Ft=function(r){de(t,r);function t(e){return r.call(this,e)||this}return 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?s.createElement(s.Fragment,null,s.createElement("span",null," "),s.createElement("span",{className:this.question.cssClasses.cellRequiredText},this.column.requiredText)):null},t}(w),Wt=function(r){de(t,r);function t(e){return r.call(this,e)||this}return 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(){var e=r.prototype.getQuestion.call(this);return e||(this.cell?this.cell.question:null)},t.prototype.doAfterRender=function(){var e=this.cellRef.current;if(e&&this.cell&&this.question&&this.question.survey&&e.getAttribute("data-rendered")!=="r"){e.setAttribute("data-rendered","r");var n={cell:this.cell,cellQuestion:this.question,htmlElement:e,row:this.cell.row,column:this.cell.cell.column};this.question.survey.matrixAfterCellRender(this.question,n),this.question.afterRenderCore(e)}},t.prototype.getShowErrors=function(){return this.question.isVisible&&(!this.cell.isChoice||this.cell.isFirstChoice)},t.prototype.getCellStyle=function(){var e=r.prototype.getCellStyle.call(this);return(this.cell.width||this.cell.minWidth)&&(e||(e={}),this.cell.width&&(e.width=this.cell.width),this.cell.minWidth&&(e.minWidth=this.cell.minWidth)),e},t.prototype.getHeaderText=function(){return this.cell.headers},t.prototype.renderElement=function(){return this.cell.isVisible?r.prototype.renderElement.call(this):null},t.prototype.renderCellContent=function(){var e=r.prototype.renderCellContent.call(this),n=this.cell.showResponsiveTitle?s.createElement("span",{className:this.cell.responsiveTitleCss},this.renderLocString(this.cell.responsiveLocTitle),s.createElement(Ft,{column:this.cell.column,question:this.cell.matrix})):null;return s.createElement(s.Fragment,null,n,e)},t.prototype.renderQuestion=function(){return this.question.isVisible?this.cell.isChoice?this.cell.isOtherChoice?this.renderOtherComment():this.cell.isCheckbox?this.renderCellCheckboxButton():this.renderCellRadiogroupButton():ce.renderQuestionBody(this.creator,this.question):s.createElement(s.Fragment,null)},t.prototype.renderOtherComment=function(){var e=this.cell.question,n=e.cssClasses||{};return s.createElement(qe,{question:e,cssClasses:n,otherCss:n.other,isDisplayMode:e.isInputReadOnly})},t.prototype.renderCellCheckboxButton=function(){var e=this.cell.question.id+"item"+this.cell.choiceIndex;return s.createElement(De,{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 s.createElement(ze,{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}(ut),Nr=function(){var r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,o){n.__proto__=o}||function(n,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(n[i]=o[i])},r(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");r(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),Ut=function(r){Nr(t,r);function t(e){return r.call(this,e)||this}return t}(Je);k.Instance.registerQuestion("matrixdropdown",function(r){return s.createElement(Ut,r)});var zt=function(){var r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,o){n.__proto__=o}||function(n,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(n[i]=o[i])},r(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");r(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),Kt=function(r){zt(t,r);function t(e){var n=r.call(this,e)||this;return n.handleOnRowAddClick=n.handleOnRowAddClick.bind(n),n}return 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,n=this.question.renderedTable.showTable,o=n?this.renderTableDiv():this.renderNoRowsContent(e);return s.createElement("div",null,this.renderAddRowButtonOnTop(e),o,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 n=this.renderLocString(this.matrix.locEmptyRowsText),o=s.createElement("div",{className:e.emptyRowsText},n),i=this.matrix.renderedTable.showAddRow?this.renderAddRowButton(e,!0):void 0;return s.createElement("div",{className:e.emptyRowsSection},o,i)},t.prototype.renderAddRowButton=function(e,n){return n===void 0&&(n=!1),c.Instance.createElement("sv-matrixdynamic-add-btn",{question:this.question,cssClasses:e,isEmptySection:n})},t}(Je);k.Instance.registerQuestion("matrixdynamic",function(r){return s.createElement(Kt,r)});var $t=function(r){zt(t,r);function t(e){var n=r.call(this,e)||this;return n.handleOnRowAddClick=n.handleOnRowAddClick.bind(n),n}return 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),n=s.createElement("button",{className:this.matrix.getAddRowButtonCss(this.props.isEmptySection),type:"button",disabled:this.matrix.isInputReadOnly,onClick:this.matrix.isDesignMode?void 0:this.handleOnRowAddClick},e,s.createElement("span",{className:this.props.cssClasses.iconAdd}));return this.props.isEmptySection?n:s.createElement("div",{className:this.props.cssClasses.footer},n)},t}(w);c.Instance.registerElement("sv-matrixdynamic-add-btn",function(r){return s.createElement($t,r)});var Jt=function(){var r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,o){n.__proto__=o}||function(n,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(n[i]=o[i])},r(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");r(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),ge=function(r){Jt(t,r);function t(e){return r.call(this,e)||this}return 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}(w),Gt=function(r){Jt(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.handleClick=function(n){e.question.addPanelUI()},e}return t.prototype.renderElement=function(){if(!this.question.canAddPanel)return null;var e=this.renderLocString(this.question.locPanelAddText);return u.a.createElement("button",{type:"button",id:this.question.addButtonId,className:this.question.getAddButtonCss(),onClick:this.handleClick},u.a.createElement("span",{className:this.question.cssClasses.buttonAddText},e))},t}(ge);c.Instance.registerElement("sv-paneldynamic-add-btn",function(r){return u.a.createElement(Gt,r)});var kr=function(){var r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,o){n.__proto__=o}||function(n,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(n[i]=o[i])},r(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");r(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),Ge=function(r){kr(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.handleClick=function(n){e.question.goToNextPanel()},e}return t.prototype.renderElement=function(){return u.a.createElement("div",{title:this.question.panelNextText,onClick:this.handleClick,className:this.question.getNextButtonCss()},u.a.createElement(M,{iconName:this.question.cssClasses.progressBtnIcon,size:"auto"}))},t}(ge);c.Instance.registerElement("sv-paneldynamic-next-btn",function(r){return u.a.createElement(Ge,r)});var jr=function(){var r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,o){n.__proto__=o}||function(n,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(n[i]=o[i])},r(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");r(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),Ye=function(r){jr(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.handleClick=function(n){e.question.goToPrevPanel()},e}return t.prototype.renderElement=function(){return u.a.createElement("div",{title:this.question.panelPrevText,onClick:this.handleClick,className:this.question.getPrevButtonCss()},u.a.createElement(M,{iconName:this.question.cssClasses.progressBtnIcon,size:"auto"}))},t}(ge);c.Instance.registerElement("sv-paneldynamic-prev-btn",function(r){return u.a.createElement(Ye,r)});var Br=function(){var r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,o){n.__proto__=o}||function(n,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(n[i]=o[i])},r(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");r(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),Xe=function(r){Br(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.renderElement=function(){return u.a.createElement("div",{className:this.question.cssClasses.progressText},this.question.progressText)},t}(ge);c.Instance.registerElement("sv-paneldynamic-progress-text",function(r){return u.a.createElement(Xe,r)});var Yt=function(){var r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,o){n.__proto__=o}||function(n,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(n[i]=o[i])},r(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");r(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),Xt=function(r){Yt(t,r);function t(e){return r.call(this,e)||this}return Object.defineProperty(t.prototype,"question",{get:function(){return this.questionBase},enumerable:!1,configurable:!0}),t.prototype.componentDidMount=function(){r.prototype.componentDidMount.call(this),this.setState({panelCounter:0});var e=this;this.question.panelCountChangedCallback=function(){e.updateQuestionRendering()},this.question.currentIndexChangedCallback=function(){e.updateQuestionRendering()},this.question.renderModeChangedCallback=function(){e.updateQuestionRendering()}},t.prototype.componentWillUnmount=function(){r.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,n=[];this.question.renderedPanels.forEach(function(b,q){n.push(s.createElement(Hr,{key:b.id,element:b,question:e.question,index:q,cssClasses:e.question.cssClasses,isDisplayMode:e.isDisplayMode,creator:e.creator}))});var o=this.question.isRenderModeList&&this.question.showLegacyNavigation?this.renderAddRowButton():null,i=this.question.isProgressTopShowing?this.renderNavigator():null,p=this.question.isProgressBottomShowing?this.renderNavigator():null,f=this.renderNavigatorV2(),v=this.renderPlaceholder();return s.createElement("div",{className:this.question.cssClasses.root},this.question.hasTabbedMenu?s.createElement("div",{className:this.question.getTabsContainerCss()},s.createElement(T,{model:this.question.tabbedMenu})):null,v,i,s.createElement("div",{className:this.question.cssClasses.panelsContainer},n),p,o,f)},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,n=this.rendrerPrevButton(),o=this.rendrerNextButton(),i=this.renderAddRowButton(),p=this.question.isProgressTopShowing?this.question.cssClasses.progressTop:this.question.cssClasses.progressBottom;return s.createElement("div",{className:p},s.createElement("div",{style:{clear:"both"}},s.createElement("div",{className:this.question.cssClasses.progressContainer},n,e,o),i,this.renderProgressText()))},t.prototype.renderProgressText=function(){return s.createElement(Xe,{data:{question:this.question}})},t.prototype.rendrerPrevButton=function(){return s.createElement(Ye,{data:{question:this.question}})},t.prototype.rendrerNextButton=function(){return s.createElement(Ge,{data:{question:this.question}})},t.prototype.renderRange=function(){return s.createElement("div",{className:this.question.cssClasses.progress},s.createElement("div",{className:this.question.cssClasses.progressBar,style:{width:this.question.progress},role:"progressbar"}))},t.prototype.renderAddRowButton=function(){return c.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 s.createElement("div",{className:this.question.cssClasses.footer},s.createElement("hr",{className:this.question.cssClasses.separator}),e,this.question.footerToolbar.visibleActions.length?s.createElement("div",{className:this.question.cssClasses.footerButtonsContainer},s.createElement(T,{model:this.question.footerToolbar})):null)},t.prototype.renderPlaceholder=function(){return this.question.getShowNoEntriesPlaceholder()?s.createElement("div",{className:this.question.cssClasses.noEntriesPlaceholder},s.createElement("span",null,this.renderLocString(this.question.locNoEntriesText)),this.renderAddRowButton()):null},t}(P),Hr=function(r){Yt(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return 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 e=r.prototype.render.call(this),n=this.renderButton(),o=this.question.showSeparator(this.index)?s.createElement("hr",{className:this.question.cssClasses.separator}):null;return s.createElement(s.Fragment,null,s.createElement("div",{className:this.question.getPanelWrapperCss(this.panel)},e,n),o)},t.prototype.renderButton=function(){return this.question.panelRemoveButtonLocation!=="right"||!this.question.canRemovePanel||this.question.isRenderModeList&&this.panel.isCollapsed?null:c.Instance.createElement("sv-paneldynamic-remove-btn",{data:{question:this.question,panel:this.panel}})},t}(pe);k.Instance.registerQuestion("paneldynamic",function(r){return s.createElement(Xt,r)});var Tr=function(){var r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,o){n.__proto__=o}||function(n,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(n[i]=o[i])},r(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");r(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),Ce=function(r){Tr(t,r);function t(e){return r.call(this,e)||this}return 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 s.createElement("div",{className:this.survey.getProgressCssClasses(this.props.container)},s.createElement("div",{style:e,className:this.css.progressBar,role:"progressbar","aria-valuemin":0,"aria-valuemax":100,"aria-label":"progress"},s.createElement("span",{className:a.SurveyProgressModel.getProgressTextInBarCss(this.css)},this.progressText)),s.createElement("span",{className:a.SurveyProgressModel.getProgressTextUnderBarCss(this.css)},this.progressText))},t}(Oe);c.Instance.registerElement("sv-progress-pages",function(r){return s.createElement(Ce,r)}),c.Instance.registerElement("sv-progress-questions",function(r){return s.createElement(Ce,r)}),c.Instance.registerElement("sv-progress-correctquestions",function(r){return s.createElement(Ce,r)}),c.Instance.registerElement("sv-progress-requiredquestions",function(r){return s.createElement(Ce,r)});var Dr=function(){var r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,o){n.__proto__=o}||function(n,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(n[i]=o[i])},r(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");r(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),en=function(r){Dr(t,r);function t(e){var n=r.call(this,e)||this;return n.listContainerRef=s.createRef(),n}return 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 s.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?s.createElement("div",{className:this.css.progressButtonsHeader},s.createElement("div",{className:this.css.progressButtonsPageTitle,title:this.model.headerText},this.model.headerText)):null,s.createElement("div",{className:this.css.progressButtonsContainer},s.createElement("div",{className:this.model.getScrollButtonCss(this.state.hasScroller,!0),role:"button",onClick:function(){return e.clickScrollButton(e.listContainerRef.current,!0)}}),s.createElement("div",{className:this.css.progressButtonsListContainer,ref:this.listContainerRef},s.createElement("ul",{className:this.css.progressButtonsList},this.getListElements())),s.createElement("div",{className:this.model.getScrollButtonCss(this.state.hasScroller,!1),role:"button",onClick:function(){return e.clickScrollButton(e.listContainerRef.current,!1)}})),this.state.canShowFooter?s.createElement("div",{className:this.css.progressButtonsFooter},s.createElement("div",{className:this.css.progressButtonsPageTitle,title:this.model.footerText},this.model.footerText)):null)},t.prototype.getListElements=function(){var e=this,n=[];return this.survey.visiblePages.forEach(function(o,i){n.push(e.renderListElement(o,i))}),n},t.prototype.renderListElement=function(e,n){var o=this,i=g.renderLocString(e.locNavigationTitle);return s.createElement("li",{key:"listelement"+n,className:this.model.getListElementCss(n),onClick:this.model.isListElementClickable(n)?function(){return o.model.clickListElement(e)}:void 0,"data-page-number":this.model.getItemNumber(e)},s.createElement("div",{className:this.css.progressButtonsConnector}),this.state.canShowItemTitles?s.createElement(s.Fragment,null,s.createElement("div",{className:this.css.progressButtonsPageTitle,title:e.renderedNavigationTitle},i),s.createElement("div",{className:this.css.progressButtonsPageDescription,title:e.navigationDescription},e.navigationDescription)):null,s.createElement("div",{className:this.css.progressButtonsButton},s.createElement("div",{className:this.css.progressButtonsButtonBackground}),s.createElement("div",{className:this.css.progressButtonsButtonContent}),s.createElement("span",null,this.model.getItemNumber(e))))},t.prototype.clickScrollButton=function(e,n){e&&(e.scrollLeft+=(n?-1:1)*70)},t.prototype.componentDidMount=function(){var e=this;r.prototype.componentDidMount.call(this),setTimeout(function(){e.respManager=new a.ProgressButtonsResponsivityManager(e.model,e.listContainerRef.current,e)},10)},t.prototype.componentWillUnmount=function(){this.respManager&&this.respManager.dispose(),r.prototype.componentWillUnmount.call(this)},t}(Oe);c.Instance.registerElement("sv-progress-buttons",function(r){return s.createElement(en,r)});var Vr=function(){var r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,o){n.__proto__=o}||function(n,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(n[i]=o[i])},r(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");r(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),tn=function(r){Vr(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.handleKeydown=function(n){e.model.onKeyDown(n)},e}return 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 n=this.model.getItemClass(this.item),o=this.item.component||this.model.itemComponent,i=c.Instance.createElement(o,{item:this.item,key:this.item.id,model:this.model}),p=u.a.createElement("div",{style:this.model.getItemStyle(this.item),className:this.model.cssClasses.itemBody,title:this.item.getTooltip(),onMouseOver:function(q){e.model.onItemHover(e.item)},onMouseLeave:function(q){e.model.onItemLeave(e.item)}},i),f=this.item.needSeparator?u.a.createElement("div",{className:this.model.cssClasses.itemSeparator}):null,v=this.model.isItemVisible(this.item),b={display:v?null:"none"};return Se(u.a.createElement("li",{className:n,role:"option",style:b,id:this.item.elementId,"aria-selected":this.model.isItemSelected(this.item),onClick:function(q){e.model.onItemClick(e.item),q.stopPropagation()},onPointerDown:function(q){return e.model.onPointerDown(q,e.item)}},f,p),this.item)},t.prototype.componentDidMount=function(){r.prototype.componentDidMount.call(this),this.model.onLastItemRended(this.item)},t}(g);c.Instance.registerElement("sv-list-item",function(r){return u.a.createElement(tn,r)});var _r=function(){var r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,o){n.__proto__=o}||function(n,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(n[i]=o[i])},r(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");r(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),et=function(r){_r(t,r);function t(e){var n=r.call(this,e)||this;return n.handleKeydown=function(o){n.model.onKeyDown(o)},n.handleMouseMove=function(o){n.model.onMouseMove(o)},n.state={filterString:n.model.filterString||""},n.listContainerRef=u.a.createRef(),n}return 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(){r.prototype.componentDidMount.call(this),this.listContainerRef&&this.listContainerRef.current&&this.model.initListContainerHtmlElement(this.listContainerRef.current)},t.prototype.componentDidUpdate=function(e,n){var o;r.prototype.componentDidUpdate.call(this,e,n),this.model!==e.model&&(this.model&&(!((o=this.listContainerRef)===null||o===void 0)&&o.current)&&this.model.initListContainerHtmlElement(this.listContainerRef.current),e.model&&e.model.initListContainerHtmlElement(void 0))},t.prototype.componentWillUnmount=function(){r.prototype.componentWillUnmount.call(this),this.model&&this.model.initListContainerHtmlElement(void 0)},t.prototype.renderElement=function(){return u.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(),n={display:this.model.isEmpty?"none":null};return u.a.createElement("ul",{className:this.model.getListClass(),style:n,role:"listbox",id:this.model.elementId,onMouseDown:function(o){o.preventDefault()},onKeyDown:this.handleKeydown,onMouseMove:this.handleMouseMove},e)},t.prototype.renderItems=function(){var e=this;if(!this.model)return null;var n=this.model.renderedActions;return n?n.map(function(o,i){return u.a.createElement(tn,{model:e.model,item:o,key:"item"+i})}):null},t.prototype.searchElementContent=function(){var e=this;if(this.model.showFilter){var n=function(p){var f=a.settings.environment.root;p.target===f.activeElement&&(e.model.filterString=p.target.value)},o=function(p){e.model.goToItems(p)},i=this.model.showSearchClearButton&&this.model.filterString?u.a.createElement("button",{className:this.model.cssClasses.searchClearButtonIcon,onClick:function(p){e.model.onClickSearchClearButton(p)}},u.a.createElement(M,{iconName:"icon-searchclear",size:"auto"})):null;return u.a.createElement("div",{className:this.model.cssClasses.filter},u.a.createElement("div",{className:this.model.cssClasses.filterIcon},u.a.createElement(M,{iconName:"icon-search",size:"auto"})),u.a.createElement("input",{type:"text",className:this.model.cssClasses.filterInput,"aria-label":this.model.filterStringPlaceholder,placeholder:this.model.filterStringPlaceholder,value:this.state.filterString,onKeyUp:o,onChange:n}),i)}else return null},t.prototype.emptyContent=function(){var e={display:this.model.isEmpty?null:"none"};return u.a.createElement("div",{className:this.model.cssClasses.emptyContainer,style:e},u.a.createElement("div",{className:this.model.cssClasses.emptyText,"aria-label":this.model.emptyMessage},this.model.emptyMessage))},t}(g);c.Instance.registerElement("sv-list",function(r){return u.a.createElement(et,r)});var Ar=function(){var r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,o){n.__proto__=o}||function(n,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(n[i]=o[i])},r(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");r(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),nn=function(r){Ar(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.render=function(){var e=this.props.model,n;return e.isMobile?n=s.createElement("div",{onClick:e.togglePopup},s.createElement(M,{iconName:e.icon,size:24}),s.createElement(Q,{model:e.popupModel})):n=s.createElement(et,{model:e.listModel}),s.createElement("div",{className:e.containerCss},n)},t}(Oe);c.Instance.registerElement("sv-navigation-toc",function(r){return s.createElement(nn,r)});var Zr=function(){var r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,o){n.__proto__=o}||function(n,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(n[i]=o[i])},r(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");r(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),rn=function(r){Zr(t,r);function t(e){var n=r.call(this,e)||this;return n.handleOnClick=n.handleOnClick.bind(n),n}return 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,n){var o=c.Instance.createElement(this.question.itemComponent,{question:this.question,item:e,index:n,key:"value"+n,handleOnClick:this.handleOnClick,isDisplayMode:this.isDisplayMode});return o},t.prototype.renderElement=function(){var e=this,n=this.question.cssClasses,o=this.question.minRateDescription?this.renderLocString(this.question.locMinRateDescription):null,i=this.question.maxRateDescription?this.renderLocString(this.question.locMaxRateDescription):null;return s.createElement("div",{className:this.question.ratingRootCss,ref:function(p){return e.setControl(p)}},s.createElement("fieldset",{role:"radiogroup"},s.createElement("legend",{role:"presentation",className:"sv-hidden"}),this.question.hasMinLabel?s.createElement("span",{className:n.minText},o):null,this.question.renderedRateItems.map(function(p,f){return e.renderItem(p,f)}),this.question.hasMaxLabel?s.createElement("span",{className:n.maxText},i):null))},t}(P);k.Instance.registerQuestion("rating",function(r){return s.createElement(rn,r)});var Qr=function(){var r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,o){n.__proto__=o}||function(n,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(n[i]=o[i])},r(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");r(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),on=function(r){Qr(t,r);function t(e){return r.call(this,e)||this}return t.prototype.renderElement=function(){var e=this.question.cssClasses,n=this.renderSelect(e);return s.createElement("div",{className:this.question.cssClasses.rootDropdown},n)},t}(Le);k.Instance.registerQuestion("sv-rating-dropdown",function(r){return s.createElement(on,r)}),a.RendererFactory.Instance.registerRenderer("rating","dropdown","sv-rating-dropdown");var Fr=function(){var r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,o){n.__proto__=o}||function(n,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(n[i]=o[i])},r(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");r(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),sn=function(r){Fr(t,r);function t(e){return r.call(this,e)||this}return Object.defineProperty(t.prototype,"question",{get:function(){return this.questionBase},enumerable:!1,configurable:!0}),t.prototype.renderElement=function(){var e=this,n=this.question.cssClasses;return s.createElement("div",{id:this.question.inputId,className:n.root,ref:function(o){return e.setControl(o)}},this.question.formatedValue)},t}(P);k.Instance.registerQuestion("expression",function(r){return s.createElement(sn,r)});var an=function(){var r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,o){n.__proto__=o}||function(n,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(n[i]=o[i])},r(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");r(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),un=function(r){an(t,r);function t(e){var n=r.call(this,e)||this;return n.handleOnExpanded=n.handleOnExpanded.bind(n),n}return t.prototype.getStateElements=function(){return[this.popup,this.popup.survey]},t.prototype.handleOnExpanded=function(e){this.popup.changeExpandCollapse()},t.prototype.canRender=function(){return r.prototype.canRender.call(this)&&this.popup.isShowing},t.prototype.renderElement=function(){var e=this,n=this.renderWindowHeader(),o=this.renderBody(),i={};return this.popup.renderedWidth&&(i.width=this.popup.renderedWidth,i.maxWidth=this.popup.renderedWidth),s.createElement("div",{className:this.popup.cssRoot,style:i,onScroll:function(){return e.popup.onScroll()}},s.createElement("div",{className:this.popup.cssRootContent},n,o))},t.prototype.renderWindowHeader=function(){var e=this.popup,n=e.cssHeaderRoot,o=null,i,p=null,f=null;return e.isCollapsed?(n+=" "+e.cssRootCollapsedMod,o=this.renderTitleCollapsed(e),i=this.renderExpandIcon()):i=this.renderCollapseIcon(),e.allowClose&&(p=this.renderCloseButton(this.popup)),e.allowFullScreen&&(f=this.renderAllowFullScreenButon(this.popup)),s.createElement("div",{className:e.cssHeaderRoot},o,s.createElement("div",{className:e.cssHeaderButtonsContainer},f,s.createElement("div",{className:e.cssHeaderCollapseButton,onClick:this.handleOnExpanded},i),p))},t.prototype.renderTitleCollapsed=function(e){return e.locTitle?s.createElement("div",{className:e.cssHeaderTitleCollapsed},e.locTitle.renderedHtml):null},t.prototype.renderExpandIcon=function(){return s.createElement(M,{iconName:"icon-restore_16x16",size:16})},t.prototype.renderCollapseIcon=function(){return s.createElement(M,{iconName:"icon-minimize_16x16",size:16})},t.prototype.renderCloseButton=function(e){var n=this;return s.createElement("div",{className:e.cssHeaderCloseButton,onClick:function(){e.hide(),typeof n.props.onClose=="function"&&n.props.onClose()}},s.createElement(M,{iconName:"icon-close_16x16",size:16}))},t.prototype.renderAllowFullScreenButon=function(e){var n;return e.isFullScreen?n=s.createElement(M,{iconName:"icon-back-to-panel_16x16",size:16}):n=s.createElement(M,{iconName:"icon-full-screen_16x16",size:16}),s.createElement("div",{className:e.cssHeaderFullScreenButton,onClick:function(){e.toggleFullScreen()}},n)},t.prototype.renderBody=function(){return s.createElement("div",{className:this.popup.cssBody},this.doRender())},t.prototype.createSurvey=function(e){e||(e={}),r.prototype.createSurvey.call(this,e),this.popup=new a.PopupSurveyModel(null,this.survey),e.closeOnCompleteTimeout&&(this.popup.closeOnCompleteTimeout=e.closeOnCompleteTimeout),this.popup.allowClose=e.allowClose,this.popup.allowFullScreen=e.allowFullScreen,this.popup.isShowing=!0,!this.popup.isExpanded&&(e.expanded||e.isExpanded)&&this.popup.expand()},t}(Te),Wr=function(r){an(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t}(un),ln=function(){var r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,o){n.__proto__=o}||function(n,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(n[i]=o[i])},r(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");r(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),cn=function(r){ln(t,r);function t(e){return r.call(this,e)||this}return Object.defineProperty(t.prototype,"question",{get:function(){return this.questionBase},enumerable:!1,configurable:!0}),t.prototype.renderElement=function(){var e=this.question.cssClasses;return s.createElement("fieldset",{className:this.question.getSelectBaseRootCss()},s.createElement("legend",{className:"sv-hidden"},this.question.locTitle.renderedHtml),this.question.hasColumns?this.getColumns(e):this.getItems(e))},t.prototype.getColumns=function(e){var n=this;return this.question.columns.map(function(o,i){var p=o.map(function(f,v){return n.renderItem("item"+v,f,e)});return s.createElement("div",{key:"column"+i+n.question.getItemsColumnKey(o),className:n.question.getColumnClass(),role:"presentation"},p)})},t.prototype.getItems=function(e){for(var n=[],o=0;o<this.question.visibleChoices.length;o++){var i=this.question.visibleChoices[o],p="item"+o;n.push(this.renderItem(p,i,e))}return n},Object.defineProperty(t.prototype,"textStyle",{get:function(){return{marginLeft:"3px",display:"inline",position:"static"}},enumerable:!1,configurable:!0}),t.prototype.renderItem=function(e,n,o){var i=s.createElement(Ur,{key:e,question:this.question,item:n,cssClasses:o}),p=this.question.survey,f=null;return p&&(f=y.wrapItemValue(p,i,this.question,n)),f??i},t}(P),Ur=function(r){ln(t,r);function t(e){var n=r.call(this,e)||this;return n.handleOnChange=n.handleOnChange.bind(n),n}return t.prototype.getStateElement=function(){return this.item},t.prototype.componentDidMount=function(){r.prototype.componentDidMount.call(this),this.reactOnStrChanged()},t.prototype.componentWillUnmount=function(){r.prototype.componentWillUnmount.call(this),this.item.locImageLink.onChanged=function(){}},t.prototype.componentDidUpdate=function(e,n){r.prototype.componentDidUpdate.call(this,e,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 n=this.question.value;n.splice(this.question.value.indexOf(e.target.value),1),this.question.value=n}else this.question.value=e.target.value;this.setState({value:this.question.value})}},t.prototype.renderElement=function(){var e=this,n=this.item,o=this.question,i=this.cssClasses,p=o.isItemSelected(n),f=o.getItemClass(n),v=null;o.showLabel&&(v=s.createElement("span",{className:o.cssClasses.itemText},n.text?g.renderLocString(n.locText):n.value));var b={objectFit:this.question.imageFit},q=null;if(n.locImageLink.renderedHtml&&this.question.contentMode==="image"&&(q=s.createElement("img",{className:i.image,src:n.locImageLink.renderedHtml,width:this.question.renderedImageWidth,height:this.question.renderedImageHeight,alt:n.locText.renderedHtml,style:b,onLoad:function(V){e.question.onContentLoaded(n,V.nativeEvent)},onError:function(V){n.onErrorHandler(n,V.nativeEvent)}})),n.locImageLink.renderedHtml&&this.question.contentMode==="video"&&(q=s.createElement("video",{controls:!0,className:i.image,src:n.locImageLink.renderedHtml,width:this.question.renderedImageWidth,height:this.question.renderedImageHeight,style:b,onLoadedMetadata:function(V){e.question.onContentLoaded(n,V.nativeEvent)},onError:function(V){n.onErrorHandler(n,V.nativeEvent)}})),!n.locImageLink.renderedHtml||n.contentNotLoaded){var j={width:this.question.renderedImageWidth,height:this.question.renderedImageHeight,objectFit:this.question.imageFit};q=s.createElement("div",{className:i.itemNoImage,style:j},i.itemNoImageSvgIcon?s.createElement(M,{className:i.itemNoImageSvgIcon,iconName:this.question.cssClasses.itemNoImageSvgIconId,size:48}):null)}var X=s.createElement("div",{className:f},s.createElement("label",{className:i.label},s.createElement("input",{className:i.itemControl,id:this.question.getItemId(n),type:this.question.inputType,name:this.question.questionName,checked:p,value:n.value,disabled:!this.question.getItemEnabled(n),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}),s.createElement("div",{className:this.question.cssClasses.itemDecorator},s.createElement("div",{className:this.question.cssClasses.imageContainer},this.question.cssClasses.checkedItemDecorator?s.createElement("span",{className:this.question.cssClasses.checkedItemDecorator,"aria-hidden":"true"},this.question.cssClasses.checkedItemSvgIconId?s.createElement(M,{size:"auto",className:this.question.cssClasses.checkedItemSvgIcon,iconName:this.question.cssClasses.checkedItemSvgIconId}):null):null,q),v)));return X},t}(w);k.Instance.registerQuestion("imagepicker",function(r){return s.createElement(cn,r)});var zr=function(){var r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,o){n.__proto__=o}||function(n,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(n[i]=o[i])},r(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");r(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),pn=function(r){zr(t,r);function t(e){return r.call(this,e)||this}return t.prototype.componentDidMount=function(){var e=this;r.prototype.componentDidMount.call(this),this.question.locImageLink.onChanged=function(){e.forceUpdate()}},t.prototype.componentWillUnmount=function(){r.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,n=this.question.getImageCss(),o={objectFit:this.question.imageFit,width:this.question.renderedStyleWidth,height:this.question.renderedStyleHeight};(!this.question.imageLink||this.question.contentNotLoaded)&&(o.display="none");var i=null;this.question.renderedMode==="image"&&(i=s.createElement("img",{className:n,src:this.question.locImageLink.renderedHtml||null,alt:this.question.altText||this.question.title,width:this.question.renderedWidth,height:this.question.renderedHeight,style:o,onLoad:function(f){e.question.onLoadHandler()},onError:function(f){e.question.onErrorHandler()}})),this.question.renderedMode==="video"&&(i=s.createElement("video",{controls:!0,className:n,src:this.question.locImageLink.renderedHtml,width:this.question.renderedWidth,height:this.question.renderedHeight,style:o,onLoadedMetadata:function(f){e.question.onLoadHandler()},onError:function(f){e.question.onErrorHandler()}})),this.question.renderedMode==="youtube"&&(i=s.createElement("iframe",{className:n,src:this.question.locImageLink.renderedHtml,width:this.question.renderedWidth,height:this.question.renderedHeight,style:o}));var p=null;return(!this.question.imageLink||this.question.contentNotLoaded)&&(p=s.createElement("div",{className:this.question.cssClasses.noImage},s.createElement(M,{iconName:this.question.cssClasses.noImageSvgIconId,size:48}))),s.createElement("div",{className:this.question.cssClasses.root},i,p)},t}(P);k.Instance.registerQuestion("image",function(r){return s.createElement(pn,r)});var Kr=function(){var r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,o){n.__proto__=o}||function(n,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(n[i]=o[i])},r(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");r(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),dn=function(r){Kr(t,r);function t(e){var n=r.call(this,e)||this;return n.state={value:n.question.value},n}return Object.defineProperty(t.prototype,"question",{get:function(){return this.questionBase},enumerable:!1,configurable:!0}),t.prototype.renderElement=function(){var e=this,n=this.question.cssClasses,o=this.question.showLoadingIndicator?this.renderLoadingIndicator():null,i=this.renderCleanButton();return s.createElement("div",{className:n.root,ref:function(p){return e.setControl(p)},style:{width:this.question.renderedCanvasWidth}},s.createElement("div",{className:n.placeholder,style:{display:this.question.needShowPlaceholder()?"":"none"}},this.renderLocString(this.question.locRenderedPlaceholder)),s.createElement("div",null,this.renderBackgroundImage(),s.createElement("canvas",{tabIndex:-1,className:this.question.cssClasses.canvas,onBlur:function(p){e.question.onBlur(p)}})),i,o)},t.prototype.renderBackgroundImage=function(){return this.question.backgroundImage?s.createElement("img",{className:this.question.cssClasses.backgroundImage,src:this.question.backgroundImage,style:{width:this.question.renderedCanvasWidth}}):null},t.prototype.renderLoadingIndicator=function(){return s.createElement("div",{className:this.question.cssClasses.loadingIndicator},s.createElement(Fe,null))},t.prototype.renderCleanButton=function(){var e=this;if(!this.question.canShowClearButton)return null;var n=this.question.cssClasses;return s.createElement("div",{className:n.controls},s.createElement("button",{type:"button",className:n.clearButton,title:this.question.clearButtonCaption,onClick:function(){return e.question.clearValue(!0)}},this.question.cssClasses.clearButtonIconId?s.createElement(M,{iconName:this.question.cssClasses.clearButtonIconId,size:"auto"}):s.createElement("span",null,"✖")))},t}(P);k.Instance.registerQuestion("signaturepad",function(r){return s.createElement(dn,r)});var hn=function(){var r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,o){n.__proto__=o}||function(n,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(n[i]=o[i])},r(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");r(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),$r=function(r){hn(t,r);function t(e){return r.call(this,e)||this}return 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 u.a.createElement("div",{className:this.question.cssClasses.root},e)},t.prototype.renderItems=function(){var e=this;return this.question.visibleChoices.map(function(n,o){return u.a.createElement(Jr,{key:e.question.inputId+"_"+o,item:n,question:e.question,index:o})})},t}(P),Jr=function(r){hn(t,r);function t(e){return r.call(this,e)||this}return 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 a.ButtonGroupItemModel(this.question,this.item,this.index);var e=this.renderIcon(),n=this.renderInput(),o=this.renderCaption();return u.a.createElement("label",{role:"radio",className:this.model.css.label,title:this.model.caption.renderedHtml},n,u.a.createElement("div",{className:this.model.css.decorator},e,o))},t.prototype.renderIcon=function(){return this.model.iconName?u.a.createElement(M,{className:this.model.css.icon,iconName:this.model.iconName,size:this.model.iconSize||24}):null},t.prototype.renderInput=function(){var e=this;return u.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 u.a.createElement("span",{className:this.model.css.caption,title:this.model.caption.renderedHtml},e)},t}(g),fn=function(){var r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,o){n.__proto__=o}||function(n,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(n[i]=o[i])},r(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");r(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),mn=function(r){fn(t,r);function t(e){return r.call(this,e)||this}return t.prototype.getStateElements=function(){var e=r.prototype.getStateElements.call(this);return this.question.contentQuestion&&e.push(this.question.contentQuestion),e},t.prototype.renderElement=function(){return ce.renderQuestionBody(this.creator,this.question.contentQuestion)},t}(D),vn=function(r){fn(t,r);function t(e){return r.call(this,e)||this}return t.prototype.canRender=function(){return!!this.question.contentPanel},t.prototype.renderElement=function(){return s.createElement(pe,{element:this.question.contentPanel,creator:this.creator,survey:this.question.survey})},t}(D);k.Instance.registerQuestion("custom",function(r){return s.createElement(mn,r)}),k.Instance.registerQuestion("composite",function(r){return s.createElement(vn,r)});var Gr=function(){var r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,o){n.__proto__=o}||function(n,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(n[i]=o[i])},r(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");r(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),yn=function(r){Gr(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return 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=this.renderLocString(this.item.locTitle,void 0,"locString"),n=this.item.iconName?u.a.createElement(M,{className:this.model.cssClasses.itemIcon,iconName:this.item.iconName,size:this.item.iconSize,"aria-label":this.item.title}):null,o=this.item.markerIconName?u.a.createElement(M,{className:this.item.cssClasses.itemMarkerIcon,iconName:this.item.markerIconName,size:"auto"}):null;return u.a.createElement(u.a.Fragment,null,n,e,o)},t}(g);c.Instance.registerElement("sv-list-item-content",function(r){return u.a.createElement(yn,r)});var Yr=function(){var r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,o){n.__proto__=o}||function(n,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(n[i]=o[i])},r(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");r(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),gn=function(r){Yr(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return 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 n=c.Instance.createElement("sv-list-item-content",{item:this.item,key:"content"+this.item.id,model:this.model});return u.a.createElement(u.a.Fragment,null,n,u.a.createElement(Q,{model:(e=this.item)===null||e===void 0?void 0:e.popupModel}))},t}(g);c.Instance.registerElement("sv-list-item-group",function(r){return u.a.createElement(gn,r)});var Xr=function(){var r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,o){n.__proto__=o}||function(n,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(n[i]=o[i])},r(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");r(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),Cn=function(r){Xr(t,r);function t(e){return r.call(this,e)||this}return Object.defineProperty(t.prototype,"survey",{get:function(){return this.props.data},enumerable:!1,configurable:!0}),t.prototype.render=function(){var e=[];return e.push(u.a.createElement("div",{key:"logo-image",className:this.survey.logoClassNames},u.a.createElement("img",{className:this.survey.css.logoImage,src:this.survey.locLogo.renderedHtml||null,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}}))),u.a.createElement(u.a.Fragment,null,e)},t}(u.a.Component);c.Instance.registerElement("sv-logo-image",function(r){return u.a.createElement(Cn,r)});var eo=function(){var r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,o){n.__proto__=o}||function(n,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(n[i]=o[i])},r(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");r(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),xn=function(r){eo(t,r);function t(e){var n=r.call(this,e)||this;return n.handleOnRowRemoveClick=n.handleOnRowRemoveClick.bind(n),n}return 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 u.a.createElement("button",{className:this.question.getRemoveRowButtonCss(),type:"button",onClick:this.handleOnRowRemoveClick,disabled:this.question.isInputReadOnly},e,u.a.createElement("span",{className:this.question.cssClasses.iconRemove}))},t}(w);c.Instance.registerElement("sv-matrix-remove-button",function(r){return u.a.createElement(xn,r)});var to=function(){var r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,o){n.__proto__=o}||function(n,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(n[i]=o[i])},r(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");r(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),wn=function(r){to(t,r);function t(e){var n=r.call(this,e)||this;return n.handleOnShowHideClick=n.handleOnShowHideClick.bind(n),n}return 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,n=e,o=e?this.row.detailPanelId:void 0;return u.a.createElement("button",{type:"button",onClick:this.handleOnShowHideClick,className:this.question.getDetailPanelButtonCss(this.row),"aria-expanded":n,"aria-controls":o},u.a.createElement(M,{className:this.question.getDetailPanelIconCss(this.row),iconName:this.question.getDetailPanelIconId(this.row),size:"auto"}))},t}(w);c.Instance.registerElement("sv-matrix-detail-button",function(r){return u.a.createElement(wn,r)});var no=function(){var r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,o){n.__proto__=o}||function(n,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(n[i]=o[i])},r(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");r(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),En=function(r){no(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.handleClick=function(n){e.question.removePanelUI(e.data.panel)},e}return t.prototype.renderElement=function(){var e=this.renderLocString(this.question.locPanelRemoveText),n=this.question.getPanelRemoveButtonId(this.data.panel);return u.a.createElement("button",{id:n,className:this.question.getPanelRemoveButtonCss(),onClick:this.handleClick,type:"button"},u.a.createElement("span",{className:this.question.cssClasses.buttonRemoveText},e),u.a.createElement("span",{className:this.question.cssClasses.iconRemove}))},t}(ge);c.Instance.registerElement("sv-paneldynamic-remove-btn",function(r){return u.a.createElement(En,r)});var ro=function(){var r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,o){n.__proto__=o}||function(n,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(n[i]=o[i])},r(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");r(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),qn=function(r){ro(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return 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 u.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}(w);c.Instance.registerElement("sv-nav-btn",function(r){return u.a.createElement(qn,r)});var oo=function(){var r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,o){n.__proto__=o}||function(n,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(n[i]=o[i])},r(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");r(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),tt=function(r){oo(t,r);function t(e){var n=r.call(this,e)||this;return n.onChangedHandler=function(o,i){n.isRendering||n.setState({changed:n.state&&n.state.changed?n.state.changed+1:1})},n.rootRef=u.a.createRef(),n}return 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,n){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 n={__html:this.locStr.renderedHtml};return u.a.createElement("span",{ref:this.rootRef,className:e,style:this.style,dangerouslySetInnerHTML:n})}return u.a.createElement("span",{ref:this.rootRef,className:e,style:this.style},this.locStr.renderedHtml)},t}(u.a.Component);c.Instance.registerElement(a.LocalizableString.defaultRenderer,function(r){return u.a.createElement(tt,r)});var so=function(){var r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,o){n.__proto__=o}||function(n,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(n[i]=o[i])},r(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");r(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),Sn=function(r){so(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.render=function(){return u.a.createElement("div",null,u.a.createElement("span",{className:this.props.cssClasses.error.icon||void 0,"aria-hidden":"true"}),u.a.createElement("span",{className:this.props.cssClasses.error.item||void 0},u.a.createElement(tt,{locStr:this.props.error.locText})))},t}(u.a.Component);c.Instance.registerElement("sv-question-error",function(r){return u.a.createElement(Sn,r)});var io=function(){var r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,o){n.__proto__=o}||function(n,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(n[i]=o[i])},r(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");r(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),On=function(r){io(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.render=function(){var e,n;return u.a.createElement("div",{className:"sv-skeleton-element",id:(e=this.props.element)===null||e===void 0?void 0:e.id,style:{height:(n=this.props.element)===null||n===void 0?void 0:n.skeletonHeight}})},t}(u.a.Component);c.Instance.registerElement("sv-skeleton",function(r){return u.a.createElement(On,r)});var nt=function(){var r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,o){n.__proto__=o}||function(n,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(n[i]=o[i])},r(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");r(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),Ln=function(r){nt(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return 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"),n=this.model.survey.getElementWrapperComponentData(this.model.survey,"logo-image");return c.Instance.createElement(e,{data:n})},t.prototype.render=function(){return u.a.createElement("div",{className:"sv-header--mobile"},this.model.survey.hasLogo?u.a.createElement("div",{className:"sv-header__logo"},this.renderLogoImage()):null,this.model.survey.hasTitle?u.a.createElement("div",{className:"sv-header__title",style:{maxWidth:this.model.textAreaWidth}},u.a.createElement(Y,{element:this.model.survey})):null,this.model.survey.renderedHasDescription?u.a.createElement("div",{className:"sv-header__description",style:{maxWidth:this.model.textAreaWidth}},u.a.createElement("div",{className:this.model.survey.css.description},g.renderLocString(this.model.survey.locDescription))):null)},t}(u.a.Component),Mn=function(r){nt(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return 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"),n=this.model.survey.getElementWrapperComponentData(this.model.survey,"logo-image");return c.Instance.createElement(e,{data:n})},t.prototype.render=function(){return u.a.createElement("div",{className:this.model.css,style:this.model.style},u.a.createElement("div",{className:"sv-header__cell-content",style:this.model.contentStyle},this.model.showLogo?u.a.createElement("div",{className:"sv-header__logo"},this.renderLogoImage()):null,this.model.showTitle?u.a.createElement("div",{className:"sv-header__title",style:{maxWidth:this.model.textAreaWidth}},u.a.createElement(Y,{element:this.model.survey})):null,this.model.showDescription?u.a.createElement("div",{className:"sv-header__description",style:{maxWidth:this.model.textAreaWidth}},u.a.createElement("div",{className:this.model.survey.css.description},g.renderLocString(this.model.survey.locDescription))):null))},t}(u.a.Component),In=function(r){nt(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return 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,this.props.survey.headerView!=="advanced")return null;var e=null;return this.props.survey.isMobile?e=u.a.createElement(Ln,{model:this.model}):e=u.a.createElement("div",{className:this.model.contentClasses,style:{maxWidth:this.model.maxWidth}},this.model.cells.map(function(n,o){return u.a.createElement(Mn,{key:o,model:n})})),u.a.createElement("div",{className:this.model.headerClasses,style:{height:this.model.renderedHeight}},this.model.backgroundImage?u.a.createElement("div",{style:this.model.backgroundImageStyle,className:this.model.backgroundImageClasses}):null,e)},t}(g);c.Instance.registerElement("sv-header",function(r){return u.a.createElement(In,r)});var ao=function(){var r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,o){n.__proto__=o}||function(n,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(n[i]=o[i])},r(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");r(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),bn=function(r){ao(t,r);function t(e){var n=r.call(this,e)||this;return n.onInput=function(o){n.locStr.text=o.target.innerText},n.onClick=function(o){o.preventDefault(),o.stopPropagation()},n.state={changed:0},n}return 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 u.a.createElement("span",{className:"sv-string-editor",contentEditable:"true",suppressContentEditableWarning:!0,style:this.style,dangerouslySetInnerHTML:e,onBlur:this.onInput,onClick:this.onClick})}return u.a.createElement("span",{className:"sv-string-editor",contentEditable:"true",suppressContentEditableWarning:!0,style:this.style,onBlur:this.onInput,onClick:this.onClick},this.locStr.renderedHtml)},t}(u.a.Component);c.Instance.registerElement(a.LocalizableString.editableRenderer,function(r){return u.a.createElement(bn,r)}),Object(a.checkLibraryVersion)("1.12.23","survey-react-ui")},react:function(S,h){S.exports=m},"react-dom":function(S,h){S.exports=x},"survey-core":function(S,h){S.exports=C}})})}(be)),be.exports}var Eo=wo();function Nn(I,l){var m,x;if(l.column.indexValue==0&&"item"in l.row){const C=l.row.item;C.customDescription!==void 0&&((m=l.htmlElement.parentElement)==null||m.children[0].children[0].setAttribute("description",C.customDescription),(x=l.htmlElement.parentElement)==null||x.children[0].children[0].classList.add("survey-tooltip"))}}function kn(I,l){if(l.question.hideCheckboxLabels){const m=l.cssClasses;m.root+=" hidden-checkbox-labels"}}function qo(I,l){var C;const m='[data-name="'+l.question.name+'"]',x=(C=document.querySelector(m))==null?void 0:C.querySelector("h5");x&&!x.classList.contains("sv-header-flex")&&l.question.updateElementCss()}function jn(I,l){if(l.name!=="description")return;let m=l.text;if(!m.length)return;const x=["e.g.","i.e.","etc.","vs."];for(const d of x)m.includes(d)&&(m=m.replace(d,d.slice(0,-1)));const C=m.split(". ");for(let d=0;d<C.length;d++)if(C[d].length!=0)for(const a of x)C[d].includes(a.slice(0,-1))&&(C[d]=C[d].replace(a.slice(0,-1),a));const S=d=>d.includes("*")?d.split("*").map((a,s)=>s==0?a:s==1?`<ul><li>${a}</li>`:`<li>${a}</li>`).join("")+"</ul>":d.endsWith(".")?d:d+".",h=C.map(d=>d.length?`<p>${S(d)}</p>`:null).join("");l.html=h}function So(I){var h;const l=!!I.visibleIf,m='[data-name="'+I.name+'"]',x=document.querySelector(m),C=x==null?void 0:x.querySelector("h5");if(l){x.style.display="none";return}C&&(C.style.textDecoration="line-through");const S=(h=document.querySelector(m))==null?void 0:h.querySelector(".sv-question__content");S&&(S.style.display="none")}function rt(I,l,m){var d;m.verificationStatus.set(I.name,l);const x=document.createElement("button");x.type="button",x.className="sv-action-bar-item verification",x.innerHTML=l,l==we.Unverified?(x.innerHTML="No change from previous year",x.className+=" verification-required",x.onclick=function(){m.mode!="display"&&(I.validate(),rt(I,we.Verified,m))}):(x.innerHTML="Answer updated",x.className+=" verification-ok");const C='[data-name="'+I.name+'"]',S=(d=document.querySelector(C))==null?void 0:d.querySelector("h5"),h=S==null?void 0:S.querySelector(".verification");h?h.replaceWith(x):S==null||S.appendChild(x)}function Oo(I){const l=Re.c(5),{surveyModel:m}=I;let x,C;l[0]!==m?(x=()=>{const h=(a,s)=>{m.verificationStatus.get(s.question.name)==we.Unverified&&rt(s.question,we.Edited,m)},d=(a,s)=>{var y;const u=m.verificationStatus.get(s.question.name),c=(y=s.question)==null?void 0:y.readOnly;u&&!c?rt(s.question,u,m):c&&So(s.question)};m.onAfterRenderQuestion.hasFunc(d)||(m.onAfterRenderQuestion.add(d),m.onAfterRenderQuestion.add(qo)),m.onValueChanged.hasFunc(h)||m.onValueChanged.add(h),m.onUpdateQuestionCssClasses.hasFunc(kn)||m.onUpdateQuestionCssClasses.add(kn),m.onMatrixAfterCellRender.hasFunc(Nn)||m.onMatrixAfterCellRender.add(Nn),m.onTextMarkdown.hasFunc(jn)||m.onTextMarkdown.add(jn)},C=[m],l[0]=m,l[1]=x,l[2]=C):(x=l[1],C=l[2]),F.useEffect(x,C);let S;return l[3]!==m?(S=L.jsx(Eo.Survey,{model:m}),l[3]=m,l[4]=S):S=l[4],S}function Lo(I){const l=Re.c(14),{surveyModel:m,pageNoSetter:x,pageNo:C}=I;let S;l[0]===Symbol.for("react.memo_cache_sentinel")?(S=[],l[0]=S):S=l[0];const[h,d]=F.useState(S),a=Io;let s,u;l[1]!==m?(s=()=>{const w=P=>{if(P&&P.pages){const D=[];P.pages.forEach(N=>{const O=N.questions.filter(Mo),B=O.length,R=O.filter(a).length,H=B-R,_=R/B;D.push({completionPercentage:_*100,unansweredPercentage:H/B*100,totalPages:P.pages.length,pageTitle:N.title})}),d(D)}};m.onValueChanged.add(P=>{w(P)}),w(m)},u=[m],l[1]=m,l[2]=s,l[3]=u):(s=l[2],u=l[3]),F.useEffect(s,u);let c;l[4]===Symbol.for("react.memo_cache_sentinel")?(c={height:"0.5rem",transition:"width 0.3s ease"},l[4]=c):c=l[4];const y=c;let E;if(l[5]!==C||l[6]!==x||l[7]!==h){let w;l[9]!==C||l[10]!==x?(w=(P,D)=>L.jsx(co,{xs:12,md:!0,onClick:()=>x(D),style:{cursor:"pointer",margin:"0.5rem"},children:L.jsxs("div",{children:[L.jsx("span",{style:{whiteSpace:"nowrap",fontSize:"1.5rem",marginRight:"0.25rem",fontWeight:"bold",color:"#2db394"},children:D+1}),L.jsx("span",{style:{whiteSpace:"nowrap",...C==D&&{fontWeight:"bold"}},children:P.pageTitle}),L.jsxs("div",{style:{display:"flex",flexWrap:"wrap"},children:[L.jsx("div",{style:{...y,width:`${P.completionPercentage}%`,backgroundColor:"#262261"}}),L.jsx("div",{style:{...y,width:`${P.unansweredPercentage}%`,backgroundColor:"#cdcdcd"}})]})]})},D),l[9]=C,l[10]=x,l[11]=w):w=l[11],E=h.map(w),l[5]=C,l[6]=x,l[7]=h,l[8]=E}else E=l[8];let g;return l[12]!==E?(g=L.jsx(ot,{className:"survey-progress",children:L.jsx(fe,{children:E})}),l[12]=E,l[13]=g):g=l[13],g}function Mo(I){return I.startWithNewLine}function Io(I){return!(I.value===null||I.value===void 0||I.value===""||I.getType()==="checkbox"&&I.value.length==0||I.getType()==="multipletext"&&(Object.keys(I.value).length===1&&Object.values(I.value)[0]===void 0||Object.keys(I.value).length===0))}function bo(I){const l=Re.c(70),{surveyModel:m,surveyActions:x,year:C,nren:S,children:h,onPageChange:d}=I,{user:a}=F.useContext(Bn),s=(m==null?void 0:m.currentPageNo)??0,u=(m==null?void 0:m.mode)==="edit",c=(m==null?void 0:m.lockedBy)??"",y=(m==null?void 0:m.status)??"";let E;l[0]!==d||l[1]!==m.currentPageNo?(E=()=>{d(m.currentPageNo+1)},l[0]=d,l[1]=m.currentPageNo,l[2]=E):E=l[2];const g=E;let w;l[3]!==d||l[4]!==x||l[5]!==m.currentPageNo?(w=async me=>{await x[me](),d(m.currentPageNo)},l[3]=d,l[4]=x,l[5]=m.currentPageNo,l[6]=w):w=l[6];const P=w,D=Ro;let N;l[7]!==P?(N=(me,Y)=>D(me,()=>P(Y)),l[7]=P,l[8]=N):N=l[8];const O=N;let B;l[9]!==u||l[10]!==g||l[11]!==c||l[12]!==a||l[13]!==s||l[14]!==O||l[15]!==m.editAllowed||l[16]!==m.visiblePages.length?(B=()=>L.jsxs("div",{className:"survey-edit-buttons-block",children:[!u&&!c&&m.editAllowed&&O("Start editing","startEdit"),!u&&c&&c==a.name&&O("Discard any unsaved changes and release your lock","releaseLock"),u&&O("Save progress","save"),u&&O("Save and stop editing","saveAndStopEdit"),u&&O("Complete Survey","complete"),s!==m.visiblePages.length-1&&D("Next Section",g)]}),l[9]=u,l[10]=g,l[11]=c,l[12]=a,l[13]=s,l[14]=O,l[15]=m.editAllowed,l[16]=m.visiblePages.length,l[17]=B):B=l[17];const R=B;let H;l[18]!==C?(H=L.jsxs("span",{className:"survey-title",children:[C," Compendium Survey "]}),l[18]=C,l[19]=H):H=l[19];let _;l[20]!==S?(_=L.jsxs("span",{className:"survey-title-nren",children:[" ",S," "]}),l[20]=S,l[21]=_):_=l[21];let Z;l[22]!==y?(Z=L.jsxs("span",{children:[" - ",y]}),l[22]=y,l[23]=Z):Z=l[23];let M;l[24]!==H||l[25]!==_||l[26]!==Z?(M=L.jsxs("h2",{children:[H,_,Z]}),l[24]=H,l[25]=_,l[26]=Z,l[27]=M):M=l[27];let le,ie;l[28]===Symbol.for("react.memo_cache_sentinel")?(ie={marginTop:"1rem",textAlign:"justify"},le=L.jsxs("p",{children:["To get started, click “","Start editing","” 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."]}),l[28]=le,l[29]=ie):(le=l[28],ie=l[29]);let K;l[30]!==C?(K=L.jsxs("p",{children:[L.jsxs("b",{children:["In a small change, the survey now asks about this calendar year, i.e. ",C]})," (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."]}),l[30]=C,l[31]=K):K=l[31];let $,ae;l[32]===Symbol.for("react.memo_cache_sentinel")?($=L.jsxs("p",{children:["Press the “","Save progress","“ or “","Save and stop editing","“ button to save all answers in the survey. When you reach the last section of the survey (Services), you will find a “","Complete Survey","“ 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 “","Complete Survey","“ button."]}),ae=L.jsx("p",{children:"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."}),l[32]=$,l[33]=ae):($=l[32],ae=l[33]);let W;l[34]!==K?(W=L.jsxs("div",{style:ie,children:[le,K,$,ae]}),l[34]=K,l[35]=W):W=l[35];let Q;l[36]===Symbol.for("react.memo_cache_sentinel")?(Q=L.jsx("a",{href:"mailto:Partner-Relations@geant.org",children:L.jsx("span",{children:"Partner-Relations@geant.org"})}),l[36]=Q):Q=l[36];let U;l[37]!==C?(U=L.jsxs("p",{children:["Thank you for taking the time to fill in the ",C," Compendium Survey. Any questions or requests can be sent to ",Q]}),l[37]=C,l[38]=U):U=l[38];let ee;l[39]!==u?(ee=u&&L.jsxs(L.Fragment,{children:[L.jsx("br",{}),L.jsxs("b",{children:["Remember to click “","Save and stop editing","” before leaving the page."]})]}),l[39]=u,l[40]=ee):ee=l[40];let te;l[41]!==W||l[42]!==U||l[43]!==ee||l[44]!==M?(te=L.jsxs(fe,{className:"survey-content",children:[M,W,U,ee]}),l[41]=W,l[42]=U,l[43]=ee,l[44]=M,l[45]=te):te=l[45];let ne;l[46]!==R?(ne=L.jsx(fe,{children:R()}),l[46]=R,l[47]=ne):ne=l[47];let re;l[48]!==u||l[49]!==c||l[50]!==a||l[51]!==m.editAllowed?(re=!u&&L.jsxs("div",{className:"survey-edit-explainer",children:[!c&&m.editAllowed&&"The survey is in read-only mode; click the “Start editing“ button to begin editing the answers.",!c&&!m.editAllowed&&"The survey is in read-only mode and can not be edited by you.",c&&c!=a.name&&"The survey is in read-only mode and currently being edited by: "+c+". To start editing the survey, ask them to complete their edits.",c&&c==a.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.']}),l[48]=u,l[49]=c,l[50]=a,l[51]=m.editAllowed,l[52]=re):re=l[52];let T;l[53]!==re?(T=L.jsx(fe,{className:"survey-content",children:re}),l[53]=re,l[54]=T):T=l[54];let oe;l[55]!==d||l[56]!==s||l[57]!==m?(oe=L.jsx(Lo,{surveyModel:m,pageNoSetter:d,pageNo:s}),l[55]=d,l[56]=s,l[57]=m,l[58]=oe):oe=l[58];let J;l[59]!==h||l[60]!==oe?(J=L.jsxs(fe,{children:[oe,h]}),l[59]=h,l[60]=oe,l[61]=J):J=l[61];let se;l[62]!==R?(se=L.jsx(fe,{children:R()}),l[62]=R,l[63]=se):se=l[63];let G;return l[64]!==te||l[65]!==ne||l[66]!==T||l[67]!==J||l[68]!==se?(G=L.jsxs(ot,{children:[te,ne,T,J,se]}),l[64]=te,l[65]=ne,l[66]=T,l[67]=J,l[68]=se,l[69]=G):G=l[69],G}function Ro(I,l){return L.jsx("button",{className:"sv-btn sv-btn--navigation",onClick:l,children:I})}function Po(I){const l=Re.c(5),m=I.when,x=I.onPageExit;let C;l[0]!==m||l[1]!==x||l[2]!==I.message?(C=()=>{if(m()){const h=window.confirm(I.message);return h&&x(),!h}return!1},l[0]=m,l[1]=x,l[2]=I.message,l[3]=C):C=l[3],po(C);let S;return l[4]===Symbol.for("react.memo_cache_sentinel")?(S=L.jsx("div",{}),l[4]=S):S=l[4],S}ue.Serializer.addProperty("itemvalue","customDescription:text");ue.Serializer.addProperty("question","hideCheckboxLabels:boolean");function Do({loadFrom:I}){const[l,m]=F.useState(),{year:x,nren:C}=ho(),[S,h]=F.useState("loading survey..."),{user:d}=F.useContext(Bn),s=!!d.id?d.permissions.admin:!1;ue.FunctionFactory.Instance.hasFunction("validateQuestion")||ue.FunctionFactory.Instance.register("validateQuestion",yo),ue.FunctionFactory.Instance.hasFunction("validateWebsiteUrl")||ue.FunctionFactory.Instance.register("validateWebsiteUrl",go);const{trackPageView:u}=fo(),c=F.useCallback(N=>(N.preventDefault(),N.returnValue=""),[]),y=F.useCallback(()=>{window.navigator.sendBeacon("/api/response/unlock/"+x+"/"+C)},[]),E=F.useCallback(()=>{window.navigator.sendBeacon("/api/response/unlock/"+x+"/"+C),removeEventListener("beforeunload",c,{capture:!0}),removeEventListener("pagehide",y)},[]);if(F.useEffect(()=>{async function N(){const O=await fetch(I+x+(C?"/"+C:"")),B=await O.json();if(!O.ok)throw"message"in B?new Error(B.message):new Error(`Request failed with status ${O.status}`);const R=new ue.Model(B.model);R.setVariable("surveyyear",x),R.setVariable("previousyear",parseInt(x)-1),R.showNavigationButtons=!1,R.requiredText="",R.verificationStatus=new Map;for(const H in B.verification_status)R.verificationStatus.set(H,B.verification_status[H]);R.data=B.data,R.clearIncorrectValues(!0),R.currentPageNo=B.page,R.mode=B.mode,R.lockedBy=B.locked_by,R.status=B.status,R.editAllowed=B.edit_allowed,m(R)}N().catch(O=>h("Error when loading survey: "+O.message)).then(()=>{u({documentTitle:`Survey for ${C} (${x})`})})},[]),!l)return S;const g=async(N,O)=>{if(!C)return"Saving not available in inpect/try mode";const B={lock_uuid:N.lockUUID,new_state:O,data:N.data,page:N.currentPageNo,verification_status:Object.fromEntries(N.verificationStatus)};try{const R=await fetch("/api/response/save/"+x+"/"+C,{method:"POST",headers:{"Content-Type":"application/json; charset=utf-8"},body:JSON.stringify(B)}),H=await R.json();if(!R.ok)return H.message;l.mode=H.mode,l.lockedBy=H.locked_by,l.status=H.status}catch(R){return"Unknown Error: "+R.message}},w=(N,O=!0)=>{let B="";const R=(_,Z)=>{_.verificationStatus.get(Z.name)==we.Unverified&&(B==""&&(B=Z.name),Z.error='Please verify that last years data is correct by editing the answer or pressing the "No change from previous year" button!')};O&&l.onValidateQuestion.add(R);const H=N();return O&&l.onValidateQuestion.remove(R),H||A("Validation failed!"),H},P={save:async()=>{if(!w(l.validate.bind(l,!0,!0),!1)){A("Please correct the invalid fields before saving!");return}const O=await g(l,"editing");O?A("Failed saving survey: "+O):A("Survey saved!")},complete:async()=>{if(w(l.validate.bind(l,!0,!0))){const O=await g(l,"completed");O?A("Failed completing survey: "+O):(A("Survey completed!"),removeEventListener("beforeunload",c,{capture:!0}),removeEventListener("pagehide",y))}},saveAndStopEdit:async()=>{if(!w(l.validate.bind(l,!0,!0),!1)){A("Please correct the invalid fields before saving.");return}const O=await g(l,"readonly");O?A("Failed saving survey: "+O):(A("Survey saved!"),removeEventListener("beforeunload",c,{capture:!0}),removeEventListener("pagehide",y))},startEdit:async()=>{const N=await fetch("/api/response/lock/"+x+"/"+C,{method:"POST"}),O=await N.json();if(!N.ok){A("Failed starting edit: "+O.message);return}addEventListener("pagehide",y),addEventListener("beforeunload",c,{capture:!0});for(const R in O.verification_status)l.verificationStatus.set(R,O.verification_status[R]);if(l.data=O.data,l.clearIncorrectValues(!0),l.mode=O.mode,l.lockedBy=O.locked_by,l.lockUUID=O.lock_uuid,l.status=O.status,!w(l.validate.bind(l,!0,!0),!1)){A("Some fields are invalid, please correct them.");return}},releaseLock:async()=>{const N=await fetch("/api/response/unlock/"+x+"/"+C,{method:"POST"}),O=await N.json();if(!N.ok){A("Failed releasing lock: "+O.message);return}l.mode=O.mode,l.lockedBy=O.locked_by,l.status=O.status},validatePage:()=>{w(l.validatePage.bind(l))&&A("Page validation successful!")}};l.css.question.title.includes("sv-header-flex")||(l.css.question.title="sv-title sv-question__title sv-header-flex",l.css.question.titleOnError="sv-question__title--error sv-error-color-fix");const D=N=>{l&&(l.currentPageNo=N,m(Object.create(l)))};return L.jsxs(L.Fragment,{children:[s?L.jsx(Co,{}):null,L.jsxs(ot,{className:"survey-container",children:[L.jsx(mo,{}),L.jsx(Po,{message:"Are you sure you want to leave this page? Information you've entered may not be saved.",when:()=>l.mode=="edit"&&!!C,onPageExit:E}),L.jsx(bo,{surveyModel:l,surveyActions:P,year:x,nren:C,onPageChange:D,children:L.jsx(Oo,{surveyModel:l})})]})]})}export{Do as default}; diff --git a/compendium_v2/static/SurveyManagementComponent-DG2o_CsZ.js b/compendium_v2/static/SurveyManagementComponent-CNBvtq4g.js similarity index 99% rename from compendium_v2/static/SurveyManagementComponent-DG2o_CsZ.js rename to compendium_v2/static/SurveyManagementComponent-CNBvtq4g.js index 0544538a..19c7e0e3 100644 --- a/compendium_v2/static/SurveyManagementComponent-DG2o_CsZ.js +++ b/compendium_v2/static/SurveyManagementComponent-CNBvtq4g.js @@ -1 +1 @@ -import{r as _,h as H,j as t,i as K,T as B,c as q,a0 as J,x as v,L as A,D,R as X}from"./index.js";import{A as z,l as Y}from"./lodash-UnagJnTM.js";import{T as Z}from"./Table-ClWM2_rS.js";import{k as b,D as ee}from"./index-BGZcCZJE.js";import{v as te,o as se,S as y}from"./validation-COFmylEH.js";import{a as V}from"./survey-3meXCY6T.js";import{S as ne}from"./SurveySidebar-NbXpjOVQ.js";import"./hook-GVc5uk5F.js";import"./SideBar-Bzc5cONd.js";const U=_.forwardRef(({bsPrefix:e,variant:i,animation:r="border",size:n,as:a="div",className:d,...h},m)=>{e=H(e,"spinner");const u=`${e}-${r}`;return t.jsx(a,{ref:m,...h,className:K(d,u,n&&`${u}-${n}`,i&&`text-${i}`)})});U.displayName="Spinner";function re(e){return B({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 ie(e){return B({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 ae(e){return B({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 oe(e){return B({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)}function le(e){const i=q.c(2),{status:r}=e;let n;return i[0]!==r?(n={completed:t.jsx(ie,{title:r,size:24,color:"green"}),started:t.jsx(re,{title:r,size:24,color:"rgb(217, 117, 10)"}),"did not respond":t.jsx(oe,{title:r,size:24,color:"red"}),"not started":t.jsx(ae,{title:r,size:24})},i[0]=r,i[1]=n):n=i[1],n[r]||r}async function ce(e,i){const{Model:r,FunctionFactory:n,Serializer:a}=await J(async()=>{const{Model:x,FunctionFactory:f,Serializer:g}=await import("./survey.core-ohqmCpQR.js").then(M=>M.s);return{Model:x,FunctionFactory:f,Serializer:g}},[]);function d(){const x=a.getAllPropertiesByName("customDescription"),f=a.getAllPropertiesByName("hideCheckboxLabels");x.length||a.addProperty("itemvalue","customDescription:text"),f.length||a.addProperty("question","hideCheckboxLabels:boolean")}if(n.Instance.hasFunction("validateQuestion")||n.Instance.register("validateQuestion",te),n.Instance.hasFunction("validateWebsiteUrl")||n.Instance.register("validateWebsiteUrl",se),!e||!i)return!0;const h=`/api/response/load/${e}/${i}`,m=await fetch(h),u=await m.json();if(!m.ok)throw"message"in u?new Error(u.message):new Error(`Request failed with status ${m.status}`);d();const l=new r(u.model);l.setVariable("surveyyear",e),l.setVariable("previousyear",parseInt(e)-1),l.showNavigationButtons=!1,l.requiredText="",l.data=u.data,l.clearIncorrectValues(!0);const $=l.validate.bind(l,!0,!0)();return console.log(l),$}function de(e,i,r){fetch("/api/survey/"+e+"/"+i+"/notes",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({notes:r||""})}).then(async n=>{const a=await n.json();n.ok?b.success("Notes saved"):b.error("Failed saving notes: "+a.message||n.statusText)}).catch(n=>{b.error("Failed saving notes: "+n)})}function C({text:e,helpText:i,onClick:r,enabled:n}){const[a,d]=_.useState(!1),h=async()=>{if(!a){d(!0);try{await r()}finally{d(!1)}}};return t.jsxs(v,{onClick:h,disabled:!n,style:{pointerEvents:"auto",marginLeft:".5rem"},title:i,children:[a&&t.jsx(U,{as:"span",animation:"border",size:"sm",role:"status","aria-hidden":"true"}),e]})}function we(){const e=q.c(21);let i;e[0]===Symbol.for("react.memo_cache_sentinel")?(i=[],e[0]=i):i=e[0];const[r,n]=_.useState(i),a=_.useRef(!1);let d,h;e[1]===Symbol.for("react.memo_cache_sentinel")?(d=()=>{V().then(p=>{n(p)})},h=[],e[1]=d,e[2]=h):(d=e[1],h=e[2]),_.useEffect(d,h);let m;e[3]===Symbol.for("react.memo_cache_sentinel")?(m=async function(s,c,o,k){const W=k===void 0?!1:k;try{W&&(s=s+"?dry_run=1");const T=await fetch(s,{method:"POST"}),R=await T.json();T.ok?(R.message&&console.log(R.message),W||b(o),V().then(G=>{n(G)})):b(c+R.message)}catch(T){b(c+T.message)}},e[3]=m):m=e[3];const u=m;let l;e[4]===Symbol.for("react.memo_cache_sentinel")?(l=async function(){await u("/api/survey/new","Failed creating new survey: ","Created new survey")},e[4]=l):l=e[4];const $=l;let x;e[5]===Symbol.for("react.memo_cache_sentinel")?(x=async function(s,c,o){const k=o===void 0?!1:o;if(a.current){b("Wait for status update to be finished...");return}a.current=!0,await u("/api/survey/"+c+"/"+s,"Error while updating "+s+" survey status to "+c+": ",s+" survey status updated to "+c,k),a.current=!1},e[5]=x):x=e[5];const f=x;let g;e[6]===Symbol.for("react.memo_cache_sentinel")?(g=async function(s,c){await u("/api/response/unlock/"+s+"/"+c,"Error while unlocking "+c+" "+s+" survey response: ",c+" "+s+" survey response unlocked")},e[6]=g):g=e[6];const M=g,Q=r.length>0&&r.every(ue),F=window.location.origin+"/data?preview";let I;e[7]===Symbol.for("react.memo_cache_sentinel")?(I=t.jsx(ne,{}),e[7]=I):I=e[7];let L;e[8]===Symbol.for("react.memo_cache_sentinel")?(L={maxWidth:"100rem"},e[8]=L):L=e[8];let E;e[9]===Symbol.for("react.memo_cache_sentinel")?(E=t.jsx(ee,{}),e[9]=E):E=e[9];const O=!Q;let N;e[10]===Symbol.for("react.memo_cache_sentinel")?(N={pointerEvents:"auto",width:"10rem",margin:"1rem"},e[10]=N):N=e[10];let w;e[11]!==O?(w=t.jsx(v,{onClick:$,disabled:O,style:N,title:"Create a new survey for the next year. Only possible if all current surveys are published.",children:"start new survey"}),e[11]=O,e[12]=w):w=e[12];let j;if(e[13]!==r){let p;e[15]===Symbol.for("react.memo_cache_sentinel")?(p=(s,c)=>t.jsxs(z.Item,{eventKey:c.toString(),children:[t.jsxs(z.Header,{children:[s.year," - ",s.status]}),t.jsxs(z.Body,{children:[t.jsxs("div",{style:{marginLeft:".5rem",marginBottom:"1rem"},children:[t.jsx(A,{to:`/survey/admin/edit/${s.year}`,target:"_blank",children:t.jsx(v,{style:{marginLeft:".5rem"},title:"Open the survey for inspection with all questions visible and any visibleIf logic added to the title.",children:"Inspect Survey"})}),t.jsx(A,{to:`/survey/admin/try/${s.year}`,target:"_blank",children:t.jsx(v,{style:{marginLeft:".5rem"},title:"Open the survey exactly as the nrens will see it, but without any nren data.",children:"Try Survey"})}),t.jsx(C,{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:s.status==y.closed,onClick:()=>f(s.year,"open")}),t.jsx(C,{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:s.status==y.open,onClick:()=>f(s.year,"close")}),t.jsx(C,{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:s.status==y.closed||s.status==y.preview,onClick:()=>f(s.year,"preview")}),t.jsx(C,{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:s.status==y.preview||s.status==y.published,onClick:()=>f(s.year,"publish",!0)}),t.jsx(C,{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:s.status==y.preview||s.status==y.published,onClick:()=>f(s.year,"publish")}),s.status==y.preview&&t.jsxs("span",{children:[" Preview link: ",t.jsx("a",{href:F,children:F})]})]}),t.jsxs(Z,{children:[t.jsxs("colgroup",{children:[t.jsx("col",{style:{width:"10%"}}),t.jsx("col",{style:{width:"20%"}}),t.jsx("col",{style:{width:"20%"}}),t.jsx("col",{style:{width:"30%"}}),t.jsx("col",{style:{width:"20%"}})]}),t.jsx("thead",{children:t.jsxs("tr",{children:[t.jsx("th",{children:"NREN"}),t.jsx("th",{children:"Status"}),t.jsx("th",{children:"Lock"}),t.jsx("th",{children:"Management Notes"}),t.jsx("th",{children:"Actions"})]})}),t.jsx("tbody",{children:s.responses.map(o=>t.jsxs("tr",{children:[t.jsx("td",{children:o.nren.name}),t.jsx("td",{children:t.jsx(le,{status:o.status})}),t.jsx("td",{style:{textWrap:"wrap",wordWrap:"break-word",maxWidth:"10rem"},children:o.lock_description}),t.jsx("td",{children:"notes"in o&&t.jsx("textarea",{onInput:Y.debounce(k=>de(s.year,o.nren.id,k.target.value),1e3),style:{minWidth:"100%",minHeight:"5rem"},placeholder:"Notes for this survey",defaultValue:o.notes||""})}),t.jsxs("td",{children:[t.jsx(A,{to:`/survey/response/${s.year}/${o.nren.name}`,target:"_blank",children:t.jsx(v,{style:{pointerEvents:"auto",margin:".5rem"},title:"Open the responses of the NREN.",children:"open"})}),t.jsx(v,{onClick:()=>M(s.year,o.nren.name),disabled:o.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!",children:"remove lock"}),t.jsx(v,{onClick:()=>ce(s.year,o.nren.name).then(console.log),style:{pointerEvents:"auto"},children:"Validate Survey"})]})]},o.nren.id))})]})]})]},s.year),e[15]=p):p=e[15],j=r.map(p),e[13]=r,e[14]=j}else j=e[14];let S;e[16]!==j?(S=t.jsx(z,{defaultActiveKey:"0",children:j}),e[16]=j,e[17]=S):S=e[17];let P;return e[18]!==w||e[19]!==S?(P=t.jsxs(t.Fragment,{children:[I,t.jsx(D,{className:"py-5 grey-container",children:t.jsx(D,{style:L,children:t.jsxs(X,{children:[E,w,S]})})})]}),e[18]=w,e[19]=S,e[20]=P):P=e[20],P}function ue(e){return e.status==y.published}export{we as default}; +import{r as _,h as H,j as t,i as K,T as B,c as q,a0 as J,x as v,L as A,D,R as X}from"./index.js";import{A as z,l as Y}from"./lodash-UnagJnTM.js";import{T as Z}from"./Table-ClWM2_rS.js";import{k as b,D as ee}from"./index-BGZcCZJE.js";import{v as te,o as se,S as y}from"./validation-COFmylEH.js";import{a as V}from"./survey-3meXCY6T.js";import{S as ne}from"./SurveySidebar-NbXpjOVQ.js";import"./hook-GVc5uk5F.js";import"./SideBar-Bzc5cONd.js";const U=_.forwardRef(({bsPrefix:e,variant:i,animation:r="border",size:n,as:a="div",className:d,...h},m)=>{e=H(e,"spinner");const u=`${e}-${r}`;return t.jsx(a,{ref:m,...h,className:K(d,u,n&&`${u}-${n}`,i&&`text-${i}`)})});U.displayName="Spinner";function re(e){return B({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 ie(e){return B({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 ae(e){return B({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 oe(e){return B({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)}function le(e){const i=q.c(2),{status:r}=e;let n;return i[0]!==r?(n={completed:t.jsx(ie,{title:r,size:24,color:"green"}),started:t.jsx(re,{title:r,size:24,color:"rgb(217, 117, 10)"}),"did not respond":t.jsx(oe,{title:r,size:24,color:"red"}),"not started":t.jsx(ae,{title:r,size:24})},i[0]=r,i[1]=n):n=i[1],n[r]||r}async function ce(e,i){const{Model:r,FunctionFactory:n,Serializer:a}=await J(async()=>{const{Model:x,FunctionFactory:f,Serializer:g}=await import("./survey.core-D1mOb2z9.js").then(M=>M.s);return{Model:x,FunctionFactory:f,Serializer:g}},[]);function d(){const x=a.getAllPropertiesByName("customDescription"),f=a.getAllPropertiesByName("hideCheckboxLabels");x.length||a.addProperty("itemvalue","customDescription:text"),f.length||a.addProperty("question","hideCheckboxLabels:boolean")}if(n.Instance.hasFunction("validateQuestion")||n.Instance.register("validateQuestion",te),n.Instance.hasFunction("validateWebsiteUrl")||n.Instance.register("validateWebsiteUrl",se),!e||!i)return!0;const h=`/api/response/load/${e}/${i}`,m=await fetch(h),u=await m.json();if(!m.ok)throw"message"in u?new Error(u.message):new Error(`Request failed with status ${m.status}`);d();const l=new r(u.model);l.setVariable("surveyyear",e),l.setVariable("previousyear",parseInt(e)-1),l.showNavigationButtons=!1,l.requiredText="",l.data=u.data,l.clearIncorrectValues(!0);const $=l.validate.bind(l,!0,!0)();return console.log(l),$}function de(e,i,r){fetch("/api/survey/"+e+"/"+i+"/notes",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({notes:r||""})}).then(async n=>{const a=await n.json();n.ok?b.success("Notes saved"):b.error("Failed saving notes: "+a.message||n.statusText)}).catch(n=>{b.error("Failed saving notes: "+n)})}function C({text:e,helpText:i,onClick:r,enabled:n}){const[a,d]=_.useState(!1),h=async()=>{if(!a){d(!0);try{await r()}finally{d(!1)}}};return t.jsxs(v,{onClick:h,disabled:!n,style:{pointerEvents:"auto",marginLeft:".5rem"},title:i,children:[a&&t.jsx(U,{as:"span",animation:"border",size:"sm",role:"status","aria-hidden":"true"}),e]})}function we(){const e=q.c(21);let i;e[0]===Symbol.for("react.memo_cache_sentinel")?(i=[],e[0]=i):i=e[0];const[r,n]=_.useState(i),a=_.useRef(!1);let d,h;e[1]===Symbol.for("react.memo_cache_sentinel")?(d=()=>{V().then(p=>{n(p)})},h=[],e[1]=d,e[2]=h):(d=e[1],h=e[2]),_.useEffect(d,h);let m;e[3]===Symbol.for("react.memo_cache_sentinel")?(m=async function(s,c,o,k){const W=k===void 0?!1:k;try{W&&(s=s+"?dry_run=1");const T=await fetch(s,{method:"POST"}),R=await T.json();T.ok?(R.message&&console.log(R.message),W||b(o),V().then(G=>{n(G)})):b(c+R.message)}catch(T){b(c+T.message)}},e[3]=m):m=e[3];const u=m;let l;e[4]===Symbol.for("react.memo_cache_sentinel")?(l=async function(){await u("/api/survey/new","Failed creating new survey: ","Created new survey")},e[4]=l):l=e[4];const $=l;let x;e[5]===Symbol.for("react.memo_cache_sentinel")?(x=async function(s,c,o){const k=o===void 0?!1:o;if(a.current){b("Wait for status update to be finished...");return}a.current=!0,await u("/api/survey/"+c+"/"+s,"Error while updating "+s+" survey status to "+c+": ",s+" survey status updated to "+c,k),a.current=!1},e[5]=x):x=e[5];const f=x;let g;e[6]===Symbol.for("react.memo_cache_sentinel")?(g=async function(s,c){await u("/api/response/unlock/"+s+"/"+c,"Error while unlocking "+c+" "+s+" survey response: ",c+" "+s+" survey response unlocked")},e[6]=g):g=e[6];const M=g,Q=r.length>0&&r.every(ue),F=window.location.origin+"/data?preview";let I;e[7]===Symbol.for("react.memo_cache_sentinel")?(I=t.jsx(ne,{}),e[7]=I):I=e[7];let L;e[8]===Symbol.for("react.memo_cache_sentinel")?(L={maxWidth:"100rem"},e[8]=L):L=e[8];let E;e[9]===Symbol.for("react.memo_cache_sentinel")?(E=t.jsx(ee,{}),e[9]=E):E=e[9];const O=!Q;let N;e[10]===Symbol.for("react.memo_cache_sentinel")?(N={pointerEvents:"auto",width:"10rem",margin:"1rem"},e[10]=N):N=e[10];let w;e[11]!==O?(w=t.jsx(v,{onClick:$,disabled:O,style:N,title:"Create a new survey for the next year. Only possible if all current surveys are published.",children:"start new survey"}),e[11]=O,e[12]=w):w=e[12];let j;if(e[13]!==r){let p;e[15]===Symbol.for("react.memo_cache_sentinel")?(p=(s,c)=>t.jsxs(z.Item,{eventKey:c.toString(),children:[t.jsxs(z.Header,{children:[s.year," - ",s.status]}),t.jsxs(z.Body,{children:[t.jsxs("div",{style:{marginLeft:".5rem",marginBottom:"1rem"},children:[t.jsx(A,{to:`/survey/admin/edit/${s.year}`,target:"_blank",children:t.jsx(v,{style:{marginLeft:".5rem"},title:"Open the survey for inspection with all questions visible and any visibleIf logic added to the title.",children:"Inspect Survey"})}),t.jsx(A,{to:`/survey/admin/try/${s.year}`,target:"_blank",children:t.jsx(v,{style:{marginLeft:".5rem"},title:"Open the survey exactly as the nrens will see it, but without any nren data.",children:"Try Survey"})}),t.jsx(C,{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:s.status==y.closed,onClick:()=>f(s.year,"open")}),t.jsx(C,{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:s.status==y.open,onClick:()=>f(s.year,"close")}),t.jsx(C,{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:s.status==y.closed||s.status==y.preview,onClick:()=>f(s.year,"preview")}),t.jsx(C,{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:s.status==y.preview||s.status==y.published,onClick:()=>f(s.year,"publish",!0)}),t.jsx(C,{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:s.status==y.preview||s.status==y.published,onClick:()=>f(s.year,"publish")}),s.status==y.preview&&t.jsxs("span",{children:[" Preview link: ",t.jsx("a",{href:F,children:F})]})]}),t.jsxs(Z,{children:[t.jsxs("colgroup",{children:[t.jsx("col",{style:{width:"10%"}}),t.jsx("col",{style:{width:"20%"}}),t.jsx("col",{style:{width:"20%"}}),t.jsx("col",{style:{width:"30%"}}),t.jsx("col",{style:{width:"20%"}})]}),t.jsx("thead",{children:t.jsxs("tr",{children:[t.jsx("th",{children:"NREN"}),t.jsx("th",{children:"Status"}),t.jsx("th",{children:"Lock"}),t.jsx("th",{children:"Management Notes"}),t.jsx("th",{children:"Actions"})]})}),t.jsx("tbody",{children:s.responses.map(o=>t.jsxs("tr",{children:[t.jsx("td",{children:o.nren.name}),t.jsx("td",{children:t.jsx(le,{status:o.status})}),t.jsx("td",{style:{textWrap:"wrap",wordWrap:"break-word",maxWidth:"10rem"},children:o.lock_description}),t.jsx("td",{children:"notes"in o&&t.jsx("textarea",{onInput:Y.debounce(k=>de(s.year,o.nren.id,k.target.value),1e3),style:{minWidth:"100%",minHeight:"5rem"},placeholder:"Notes for this survey",defaultValue:o.notes||""})}),t.jsxs("td",{children:[t.jsx(A,{to:`/survey/response/${s.year}/${o.nren.name}`,target:"_blank",children:t.jsx(v,{style:{pointerEvents:"auto",margin:".5rem"},title:"Open the responses of the NREN.",children:"open"})}),t.jsx(v,{onClick:()=>M(s.year,o.nren.name),disabled:o.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!",children:"remove lock"}),t.jsx(v,{onClick:()=>ce(s.year,o.nren.name).then(console.log),style:{pointerEvents:"auto"},children:"Validate Survey"})]})]},o.nren.id))})]})]})]},s.year),e[15]=p):p=e[15],j=r.map(p),e[13]=r,e[14]=j}else j=e[14];let S;e[16]!==j?(S=t.jsx(z,{defaultActiveKey:"0",children:j}),e[16]=j,e[17]=S):S=e[17];let P;return e[18]!==w||e[19]!==S?(P=t.jsxs(t.Fragment,{children:[I,t.jsx(D,{className:"py-5 grey-container",children:t.jsx(D,{style:L,children:t.jsxs(X,{children:[E,w,S]})})})]}),e[18]=w,e[19]=S,e[20]=P):P=e[20],P}function ue(e){return e.status==y.published}export{we as default}; diff --git a/compendium_v2/static/index.js b/compendium_v2/static/index.js index 0ba1c28e..6de4d9f2 100644 --- a/compendium_v2/static/index.js +++ b/compendium_v2/static/index.js @@ -1,5 +1,5 @@ -const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["Budget-Dcza_nDS.js","index-BJrPLJgf.js","useData-C0vA-Ut8.js","SideBar-Bzc5cONd.js","xlsx-BHRztzV8.js","index-DW4SYwQF.js","hook-GVc5uk5F.js","charthelpers-BVChP9u-.js","ChargingStructure-LPcFjEsG.js","PillTable-Cnj0nnFy.js","ColorPill-CXvWIfWz.js","Table-ClWM2_rS.js","ECProjects-ChLCZHki.js","NrenYearTable-BZB2R3F1.js","FundingSource-Bwu0iwfm.js","chartjs-plugin-datalabels.esm-BObV249o.js","ParentOrganisation-D0KpPI2s.js","StaffGraph-BWU39hrJ.js","HTMLLegendPlugin-B1D8JXQI.js","StaffGraphAbsolute-CMxNAPzl.js","SubOrganisation-BBUAiix9.js","Audits-tIxneKrE.js","BusinessContinuity-WayIenw9.js","CentralProcurement-ILLJKzCj.js","CorporateStrategy-DZFOGJiQ.js","CrisisExercises-DgB-Jzeh.js","CrisisManagement-C6sQvzSe.js","EOSCListings-DH_4uObR.js","Policy-9QlCddyw.js","SecurityControls-cN55VGDF.js","ServiceLevelTargets-CAul_Bb5.js","ServiceManagementFramework-Dr5HjYSA.js","ServicesOffered-Z3IepUcf.js","ScrollableMatrix-Dxr22l4i.js","ConnectedInstitutionsURLs-MamPTDnd.js","ConnectedUser-CSVPvLMN.js","RemoteCampuses-NUiCskMY.js","AlienWave-CoaJ4Ch0.js","AlienWaveInternal-F5JHtmfW.js","Automation-4jvTE-gK.js","CapacityCoreIP-DyN3YGAW.js","CapacityLargestLink-Dk26I_at.js","CertificateProvider-4SfZ4yzo.js","DarkFibreLease-D0G5a_C_.js","DarkFibreInstalled-BEuXjlBR.js","ExternalConnections-CI7Oci1W.js","FibreLight-CWljRLcS.js","IRUDuration-DwT4l7iu.js","MonitoringTools-D5EolQI7.js","NetworkFunctionVirtualisation-Ci3ZHBJN.js","NetworkMapUrls-CYYKJL7A.js","NonRAndEPeer-OZTW6B0e.js","OPsAutomation-BzaiKZKL.js","PassiveMonitoring-DrHRNpwv.js","PertTeam-B3F3NYFc.js","SiemVendors-BpJ6Liws.js","TrafficRatio-BRasghA5.js","TrafficUrl-DrUJ6TNq.js","TrafficVolume-DIkzyQG4.js","WeatherMap-BWtEGyUR.js","Services-UuW4JfkB.js","Landing-f86DzYca.js","survey-3meXCY6T.js","SurveySidebar-NbXpjOVQ.js","SurveyContainerComponent-BjjhIoXr.js","index-BGZcCZJE.js","survey.core-ohqmCpQR.js","validation-COFmylEH.js","Bx5HfHBo.css","SurveyManagementComponent-DG2o_CsZ.js","lodash-UnagJnTM.js","UserManagementComponent-CvgRGQoR.js"])))=>i.map(i=>d[i]); -var Qg=Object.defineProperty;var Zg=(a,i,u)=>i in a?Qg(a,i,{enumerable:!0,configurable:!0,writable:!0,value:u}):a[i]=u;var jm=(a,i,u)=>Zg(a,typeof i!="symbol"?i+"":i,u);(function(){const i=document.createElement("link").relList;if(i&&i.supports&&i.supports("modulepreload"))return;for(const o of document.querySelectorAll('link[rel="modulepreload"]'))c(o);new MutationObserver(o=>{for(const f of o)if(f.type==="childList")for(const h of f.addedNodes)h.tagName==="LINK"&&h.rel==="modulepreload"&&c(h)}).observe(document,{childList:!0,subtree:!0});function u(o){const f={};return o.integrity&&(f.integrity=o.integrity),o.referrerPolicy&&(f.referrerPolicy=o.referrerPolicy),o.crossOrigin==="use-credentials"?f.credentials="include":o.crossOrigin==="anonymous"?f.credentials="omit":f.credentials="same-origin",f}function c(o){if(o.ep)return;o.ep=!0;const f=u(o);fetch(o.href,f)}})();var Ox=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function yr(a){return a&&a.__esModule&&Object.prototype.hasOwnProperty.call(a,"default")?a.default:a}var Ws={exports:{}},ir={};/** +const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["Budget-Dcza_nDS.js","index-BJrPLJgf.js","useData-C0vA-Ut8.js","SideBar-Bzc5cONd.js","xlsx-BHRztzV8.js","index-DW4SYwQF.js","hook-GVc5uk5F.js","charthelpers-BVChP9u-.js","ChargingStructure-LPcFjEsG.js","PillTable-Cnj0nnFy.js","ColorPill-CXvWIfWz.js","Table-ClWM2_rS.js","ECProjects-ChLCZHki.js","NrenYearTable-BZB2R3F1.js","FundingSource-Bwu0iwfm.js","chartjs-plugin-datalabels.esm-BObV249o.js","ParentOrganisation-D0KpPI2s.js","StaffGraph-BWU39hrJ.js","HTMLLegendPlugin-B1D8JXQI.js","StaffGraphAbsolute-CMxNAPzl.js","SubOrganisation-BBUAiix9.js","Audits-tIxneKrE.js","BusinessContinuity-WayIenw9.js","CentralProcurement-ILLJKzCj.js","CorporateStrategy-DZFOGJiQ.js","CrisisExercises-DgB-Jzeh.js","CrisisManagement-C6sQvzSe.js","EOSCListings-DH_4uObR.js","Policy-9QlCddyw.js","SecurityControls-cN55VGDF.js","ServiceLevelTargets-CAul_Bb5.js","ServiceManagementFramework-Dr5HjYSA.js","ServicesOffered-Z3IepUcf.js","ScrollableMatrix-Dxr22l4i.js","ConnectedInstitutionsURLs-MamPTDnd.js","ConnectedUser-CSVPvLMN.js","RemoteCampuses-NUiCskMY.js","AlienWave-CoaJ4Ch0.js","AlienWaveInternal-F5JHtmfW.js","Automation-4jvTE-gK.js","CapacityCoreIP-DyN3YGAW.js","CapacityLargestLink-Dk26I_at.js","CertificateProvider-4SfZ4yzo.js","DarkFibreLease-D0G5a_C_.js","DarkFibreInstalled-BEuXjlBR.js","ExternalConnections-CI7Oci1W.js","FibreLight-CWljRLcS.js","IRUDuration-DwT4l7iu.js","MonitoringTools-D5EolQI7.js","NetworkFunctionVirtualisation-Ci3ZHBJN.js","NetworkMapUrls-CYYKJL7A.js","NonRAndEPeer-OZTW6B0e.js","OPsAutomation-BzaiKZKL.js","PassiveMonitoring-DrHRNpwv.js","PertTeam-B3F3NYFc.js","SiemVendors-BpJ6Liws.js","TrafficRatio-BRasghA5.js","TrafficUrl-DrUJ6TNq.js","TrafficVolume-DIkzyQG4.js","WeatherMap-BWtEGyUR.js","Services-UuW4JfkB.js","Landing-f86DzYca.js","survey-3meXCY6T.js","SurveySidebar-NbXpjOVQ.js","SurveyContainerComponent-D2pyP2dn.js","index-BGZcCZJE.js","survey.core-D1mOb2z9.js","validation-COFmylEH.js","Du0IQ9wh.css","SurveyManagementComponent-CNBvtq4g.js","lodash-UnagJnTM.js","UserManagementComponent-CvgRGQoR.js"])))=>i.map(i=>d[i]); +var Qg=Object.defineProperty;var Zg=(a,i,u)=>i in a?Qg(a,i,{enumerable:!0,configurable:!0,writable:!0,value:u}):a[i]=u;var Om=(a,i,u)=>Zg(a,typeof i!="symbol"?i+"":i,u);(function(){const i=document.createElement("link").relList;if(i&&i.supports&&i.supports("modulepreload"))return;for(const o of document.querySelectorAll('link[rel="modulepreload"]'))c(o);new MutationObserver(o=>{for(const f of o)if(f.type==="childList")for(const m of f.addedNodes)m.tagName==="LINK"&&m.rel==="modulepreload"&&c(m)}).observe(document,{childList:!0,subtree:!0});function u(o){const f={};return o.integrity&&(f.integrity=o.integrity),o.referrerPolicy&&(f.referrerPolicy=o.referrerPolicy),o.crossOrigin==="use-credentials"?f.credentials="include":o.crossOrigin==="anonymous"?f.credentials="omit":f.credentials="same-origin",f}function c(o){if(o.ep)return;o.ep=!0;const f=u(o);fetch(o.href,f)}})();var Ox=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function pr(a){return a&&a.__esModule&&Object.prototype.hasOwnProperty.call(a,"default")?a.default:a}var Is={exports:{}},ir={};/** * @license React * react-jsx-runtime.production.js * @@ -7,7 +7,7 @@ var Qg=Object.defineProperty;var Zg=(a,i,u)=>i in a?Qg(a,i,{enumerable:!0,config * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. - */var Om;function Kg(){if(Om)return ir;Om=1;var a=Symbol.for("react.transitional.element"),i=Symbol.for("react.fragment");function u(c,o,f){var h=null;if(f!==void 0&&(h=""+f),o.key!==void 0&&(h=""+o.key),"key"in o){f={};for(var y in o)y!=="key"&&(f[y]=o[y])}else f=o;return o=f.ref,{$$typeof:a,type:c,key:h,ref:o!==void 0?o:null,props:f}}return ir.Fragment=i,ir.jsx=u,ir.jsxs=u,ir}var Dm;function $g(){return Dm||(Dm=1,Ws.exports=Kg()),Ws.exports}var m=$g(),Is={exports:{}},je={};/** + */var Dm;function Kg(){if(Dm)return ir;Dm=1;var a=Symbol.for("react.transitional.element"),i=Symbol.for("react.fragment");function u(c,o,f){var m=null;if(f!==void 0&&(m=""+f),o.key!==void 0&&(m=""+o.key),"key"in o){f={};for(var y in o)y!=="key"&&(f[y]=o[y])}else f=o;return o=f.ref,{$$typeof:a,type:c,key:m,ref:o!==void 0?o:null,props:f}}return ir.Fragment=i,ir.jsx=u,ir.jsxs=u,ir}var Am;function $g(){return Am||(Am=1,Is.exports=Kg()),Is.exports}var h=$g(),eo={exports:{}},Ne={};/** * @license React * react.production.js * @@ -15,7 +15,7 @@ var Qg=Object.defineProperty;var Zg=(a,i,u)=>i in a?Qg(a,i,{enumerable:!0,config * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. - */var Am;function Jg(){if(Am)return je;Am=1;var a=Symbol.for("react.transitional.element"),i=Symbol.for("react.portal"),u=Symbol.for("react.fragment"),c=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),f=Symbol.for("react.consumer"),h=Symbol.for("react.context"),y=Symbol.for("react.forward_ref"),p=Symbol.for("react.suspense"),v=Symbol.for("react.memo"),b=Symbol.for("react.lazy"),C=Symbol.iterator;function x(_){return _===null||typeof _!="object"?null:(_=C&&_[C]||_["@@iterator"],typeof _=="function"?_:null)}var R={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},A=Object.assign,H={};function k(_,V,te){this.props=_,this.context=V,this.refs=H,this.updater=te||R}k.prototype.isReactComponent={},k.prototype.setState=function(_,V){if(typeof _!="object"&&typeof _!="function"&&_!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,_,V,"setState")},k.prototype.forceUpdate=function(_){this.updater.enqueueForceUpdate(this,_,"forceUpdate")};function z(){}z.prototype=k.prototype;function Z(_,V,te){this.props=_,this.context=V,this.refs=H,this.updater=te||R}var Q=Z.prototype=new z;Q.constructor=Z,A(Q,k.prototype),Q.isPureReactComponent=!0;var ee=Array.isArray,T={H:null,A:null,T:null,S:null},P=Object.prototype.hasOwnProperty;function fe(_,V,te,W,J,ye){return te=ye.ref,{$$typeof:a,type:_,key:V,ref:te!==void 0?te:null,props:ye}}function ce(_,V){return fe(_.type,V,void 0,void 0,void 0,_.props)}function $(_){return typeof _=="object"&&_!==null&&_.$$typeof===a}function ie(_){var V={"=":"=0",":":"=2"};return"$"+_.replace(/[=:]/g,function(te){return V[te]})}var Le=/\/+/g;function Pe(_,V){return typeof _=="object"&&_!==null&&_.key!=null?ie(""+_.key):V.toString(36)}function Ge(){}function et(_){switch(_.status){case"fulfilled":return _.value;case"rejected":throw _.reason;default:switch(typeof _.status=="string"?_.then(Ge,Ge):(_.status="pending",_.then(function(V){_.status==="pending"&&(_.status="fulfilled",_.value=V)},function(V){_.status==="pending"&&(_.status="rejected",_.reason=V)})),_.status){case"fulfilled":return _.value;case"rejected":throw _.reason}}throw _}function Ne(_,V,te,W,J){var ye=typeof _;(ye==="undefined"||ye==="boolean")&&(_=null);var ge=!1;if(_===null)ge=!0;else switch(ye){case"bigint":case"string":case"number":ge=!0;break;case"object":switch(_.$$typeof){case a:case i:ge=!0;break;case b:return ge=_._init,Ne(ge(_._payload),V,te,W,J)}}if(ge)return J=J(_),ge=W===""?"."+Pe(_,0):W,ee(J)?(te="",ge!=null&&(te=ge.replace(Le,"$&/")+"/"),Ne(J,V,te,"",function(xe){return xe})):J!=null&&($(J)&&(J=ce(J,te+(J.key==null||_&&_.key===J.key?"":(""+J.key).replace(Le,"$&/")+"/")+ge)),V.push(J)),1;ge=0;var Ze=W===""?".":W+":";if(ee(_))for(var Ce=0;Ce<_.length;Ce++)W=_[Ce],ye=Ze+Pe(W,Ce),ge+=Ne(W,V,te,ye,J);else if(Ce=x(_),typeof Ce=="function")for(_=Ce.call(_),Ce=0;!(W=_.next()).done;)W=W.value,ye=Ze+Pe(W,Ce++),ge+=Ne(W,V,te,ye,J);else if(ye==="object"){if(typeof _.then=="function")return Ne(et(_),V,te,W,J);throw V=String(_),Error("Objects are not valid as a React child (found: "+(V==="[object Object]"?"object with keys {"+Object.keys(_).join(", ")+"}":V)+"). If you meant to render a collection of children, use an array instead.")}return ge}function K(_,V,te){if(_==null)return _;var W=[],J=0;return Ne(_,W,"","",function(ye){return V.call(te,ye,J++)}),W}function se(_){if(_._status===-1){var V=_._result;V=V(),V.then(function(te){(_._status===0||_._status===-1)&&(_._status=1,_._result=te)},function(te){(_._status===0||_._status===-1)&&(_._status=2,_._result=te)}),_._status===-1&&(_._status=0,_._result=V)}if(_._status===1)return _._result.default;throw _._result}var F=typeof reportError=="function"?reportError:function(_){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var V=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof _=="object"&&_!==null&&typeof _.message=="string"?String(_.message):String(_),error:_});if(!window.dispatchEvent(V))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",_);return}console.error(_)};function _e(){}return je.Children={map:K,forEach:function(_,V,te){K(_,function(){V.apply(this,arguments)},te)},count:function(_){var V=0;return K(_,function(){V++}),V},toArray:function(_){return K(_,function(V){return V})||[]},only:function(_){if(!$(_))throw Error("React.Children.only expected to receive a single React element child.");return _}},je.Component=k,je.Fragment=u,je.Profiler=o,je.PureComponent=Z,je.StrictMode=c,je.Suspense=p,je.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=T,je.act=function(){throw Error("act(...) is not supported in production builds of React.")},je.cache=function(_){return function(){return _.apply(null,arguments)}},je.cloneElement=function(_,V,te){if(_==null)throw Error("The argument must be a React element, but you passed "+_+".");var W=A({},_.props),J=_.key,ye=void 0;if(V!=null)for(ge in V.ref!==void 0&&(ye=void 0),V.key!==void 0&&(J=""+V.key),V)!P.call(V,ge)||ge==="key"||ge==="__self"||ge==="__source"||ge==="ref"&&V.ref===void 0||(W[ge]=V[ge]);var ge=arguments.length-2;if(ge===1)W.children=te;else if(1<ge){for(var Ze=Array(ge),Ce=0;Ce<ge;Ce++)Ze[Ce]=arguments[Ce+2];W.children=Ze}return fe(_.type,J,void 0,void 0,ye,W)},je.createContext=function(_){return _={$$typeof:h,_currentValue:_,_currentValue2:_,_threadCount:0,Provider:null,Consumer:null},_.Provider=_,_.Consumer={$$typeof:f,_context:_},_},je.createElement=function(_,V,te){var W,J={},ye=null;if(V!=null)for(W in V.key!==void 0&&(ye=""+V.key),V)P.call(V,W)&&W!=="key"&&W!=="__self"&&W!=="__source"&&(J[W]=V[W]);var ge=arguments.length-2;if(ge===1)J.children=te;else if(1<ge){for(var Ze=Array(ge),Ce=0;Ce<ge;Ce++)Ze[Ce]=arguments[Ce+2];J.children=Ze}if(_&&_.defaultProps)for(W in ge=_.defaultProps,ge)J[W]===void 0&&(J[W]=ge[W]);return fe(_,ye,void 0,void 0,null,J)},je.createRef=function(){return{current:null}},je.forwardRef=function(_){return{$$typeof:y,render:_}},je.isValidElement=$,je.lazy=function(_){return{$$typeof:b,_payload:{_status:-1,_result:_},_init:se}},je.memo=function(_,V){return{$$typeof:v,type:_,compare:V===void 0?null:V}},je.startTransition=function(_){var V=T.T,te={};T.T=te;try{var W=_(),J=T.S;J!==null&&J(te,W),typeof W=="object"&&W!==null&&typeof W.then=="function"&&W.then(_e,F)}catch(ye){F(ye)}finally{T.T=V}},je.unstable_useCacheRefresh=function(){return T.H.useCacheRefresh()},je.use=function(_){return T.H.use(_)},je.useActionState=function(_,V,te){return T.H.useActionState(_,V,te)},je.useCallback=function(_,V){return T.H.useCallback(_,V)},je.useContext=function(_){return T.H.useContext(_)},je.useDebugValue=function(){},je.useDeferredValue=function(_,V){return T.H.useDeferredValue(_,V)},je.useEffect=function(_,V){return T.H.useEffect(_,V)},je.useId=function(){return T.H.useId()},je.useImperativeHandle=function(_,V,te){return T.H.useImperativeHandle(_,V,te)},je.useInsertionEffect=function(_,V){return T.H.useInsertionEffect(_,V)},je.useLayoutEffect=function(_,V){return T.H.useLayoutEffect(_,V)},je.useMemo=function(_,V){return T.H.useMemo(_,V)},je.useOptimistic=function(_,V){return T.H.useOptimistic(_,V)},je.useReducer=function(_,V,te){return T.H.useReducer(_,V,te)},je.useRef=function(_){return T.H.useRef(_)},je.useState=function(_){return T.H.useState(_)},je.useSyncExternalStore=function(_,V,te){return T.H.useSyncExternalStore(_,V,te)},je.useTransition=function(){return T.H.useTransition()},je.version="19.0.0",je}var wm;function Yu(){return wm||(wm=1,Is.exports=Jg()),Is.exports}var g=Yu();const Xt=yr(g);var eo={exports:{}},rr={},to={exports:{}},no={};/** + */var wm;function Jg(){if(wm)return Ne;wm=1;var a=Symbol.for("react.transitional.element"),i=Symbol.for("react.portal"),u=Symbol.for("react.fragment"),c=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),f=Symbol.for("react.consumer"),m=Symbol.for("react.context"),y=Symbol.for("react.forward_ref"),v=Symbol.for("react.suspense"),p=Symbol.for("react.memo"),b=Symbol.for("react.lazy"),T=Symbol.iterator;function x(_){return _===null||typeof _!="object"?null:(_=T&&_[T]||_["@@iterator"],typeof _=="function"?_:null)}var R={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},w=Object.assign,k={};function B(_,V,ne){this.props=_,this.context=V,this.refs=k,this.updater=ne||R}B.prototype.isReactComponent={},B.prototype.setState=function(_,V){if(typeof _!="object"&&typeof _!="function"&&_!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,_,V,"setState")},B.prototype.forceUpdate=function(_){this.updater.enqueueForceUpdate(this,_,"forceUpdate")};function U(){}U.prototype=B.prototype;function Y(_,V,ne){this.props=_,this.context=V,this.refs=k,this.updater=ne||R}var $=Y.prototype=new U;$.constructor=Y,w($,B.prototype),$.isPureReactComponent=!0;var ee=Array.isArray,J={H:null,A:null,T:null,S:null},O=Object.prototype.hasOwnProperty;function ue(_,V,ne,W,F,ge){return ne=ge.ref,{$$typeof:a,type:_,key:V,ref:ne!==void 0?ne:null,props:ge}}function be(_,V){return ue(_.type,V,void 0,void 0,void 0,_.props)}function Z(_){return typeof _=="object"&&_!==null&&_.$$typeof===a}function ie(_){var V={"=":"=0",":":"=2"};return"$"+_.replace(/[=:]/g,function(ne){return V[ne]})}var je=/\/+/g;function Ie(_,V){return typeof _=="object"&&_!==null&&_.key!=null?ie(""+_.key):V.toString(36)}function et(){}function Qe(_){switch(_.status){case"fulfilled":return _.value;case"rejected":throw _.reason;default:switch(typeof _.status=="string"?_.then(et,et):(_.status="pending",_.then(function(V){_.status==="pending"&&(_.status="fulfilled",_.value=V)},function(V){_.status==="pending"&&(_.status="rejected",_.reason=V)})),_.status){case"fulfilled":return _.value;case"rejected":throw _.reason}}throw _}function Ye(_,V,ne,W,F){var ge=typeof _;(ge==="undefined"||ge==="boolean")&&(_=null);var he=!1;if(_===null)he=!0;else switch(ge){case"bigint":case"string":case"number":he=!0;break;case"object":switch(_.$$typeof){case a:case i:he=!0;break;case b:return he=_._init,Ye(he(_._payload),V,ne,W,F)}}if(he)return F=F(_),he=W===""?"."+Ie(_,0):W,ee(F)?(ne="",he!=null&&(ne=he.replace(je,"$&/")+"/"),Ye(F,V,ne,"",function(He){return He})):F!=null&&(Z(F)&&(F=be(F,ne+(F.key==null||_&&_.key===F.key?"":(""+F.key).replace(je,"$&/")+"/")+he)),V.push(F)),1;he=0;var Ze=W===""?".":W+":";if(ee(_))for(var Te=0;Te<_.length;Te++)W=_[Te],ge=Ze+Ie(W,Te),he+=Ye(W,V,ne,ge,F);else if(Te=x(_),typeof Te=="function")for(_=Te.call(_),Te=0;!(W=_.next()).done;)W=W.value,ge=Ze+Ie(W,Te++),he+=Ye(W,V,ne,ge,F);else if(ge==="object"){if(typeof _.then=="function")return Ye(Qe(_),V,ne,W,F);throw V=String(_),Error("Objects are not valid as a React child (found: "+(V==="[object Object]"?"object with keys {"+Object.keys(_).join(", ")+"}":V)+"). If you meant to render a collection of children, use an array instead.")}return he}function X(_,V,ne){if(_==null)return _;var W=[],F=0;return Ye(_,W,"","",function(ge){return V.call(ne,ge,F++)}),W}function oe(_){if(_._status===-1){var V=_._result;V=V(),V.then(function(ne){(_._status===0||_._status===-1)&&(_._status=1,_._result=ne)},function(ne){(_._status===0||_._status===-1)&&(_._status=2,_._result=ne)}),_._status===-1&&(_._status=0,_._result=V)}if(_._status===1)return _._result.default;throw _._result}var I=typeof reportError=="function"?reportError:function(_){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var V=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof _=="object"&&_!==null&&typeof _.message=="string"?String(_.message):String(_),error:_});if(!window.dispatchEvent(V))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",_);return}console.error(_)};function Re(){}return Ne.Children={map:X,forEach:function(_,V,ne){X(_,function(){V.apply(this,arguments)},ne)},count:function(_){var V=0;return X(_,function(){V++}),V},toArray:function(_){return X(_,function(V){return V})||[]},only:function(_){if(!Z(_))throw Error("React.Children.only expected to receive a single React element child.");return _}},Ne.Component=B,Ne.Fragment=u,Ne.Profiler=o,Ne.PureComponent=Y,Ne.StrictMode=c,Ne.Suspense=v,Ne.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=J,Ne.act=function(){throw Error("act(...) is not supported in production builds of React.")},Ne.cache=function(_){return function(){return _.apply(null,arguments)}},Ne.cloneElement=function(_,V,ne){if(_==null)throw Error("The argument must be a React element, but you passed "+_+".");var W=w({},_.props),F=_.key,ge=void 0;if(V!=null)for(he in V.ref!==void 0&&(ge=void 0),V.key!==void 0&&(F=""+V.key),V)!O.call(V,he)||he==="key"||he==="__self"||he==="__source"||he==="ref"&&V.ref===void 0||(W[he]=V[he]);var he=arguments.length-2;if(he===1)W.children=ne;else if(1<he){for(var Ze=Array(he),Te=0;Te<he;Te++)Ze[Te]=arguments[Te+2];W.children=Ze}return ue(_.type,F,void 0,void 0,ge,W)},Ne.createContext=function(_){return _={$$typeof:m,_currentValue:_,_currentValue2:_,_threadCount:0,Provider:null,Consumer:null},_.Provider=_,_.Consumer={$$typeof:f,_context:_},_},Ne.createElement=function(_,V,ne){var W,F={},ge=null;if(V!=null)for(W in V.key!==void 0&&(ge=""+V.key),V)O.call(V,W)&&W!=="key"&&W!=="__self"&&W!=="__source"&&(F[W]=V[W]);var he=arguments.length-2;if(he===1)F.children=ne;else if(1<he){for(var Ze=Array(he),Te=0;Te<he;Te++)Ze[Te]=arguments[Te+2];F.children=Ze}if(_&&_.defaultProps)for(W in he=_.defaultProps,he)F[W]===void 0&&(F[W]=he[W]);return ue(_,ge,void 0,void 0,null,F)},Ne.createRef=function(){return{current:null}},Ne.forwardRef=function(_){return{$$typeof:y,render:_}},Ne.isValidElement=Z,Ne.lazy=function(_){return{$$typeof:b,_payload:{_status:-1,_result:_},_init:oe}},Ne.memo=function(_,V){return{$$typeof:p,type:_,compare:V===void 0?null:V}},Ne.startTransition=function(_){var V=J.T,ne={};J.T=ne;try{var W=_(),F=J.S;F!==null&&F(ne,W),typeof W=="object"&&W!==null&&typeof W.then=="function"&&W.then(Re,I)}catch(ge){I(ge)}finally{J.T=V}},Ne.unstable_useCacheRefresh=function(){return J.H.useCacheRefresh()},Ne.use=function(_){return J.H.use(_)},Ne.useActionState=function(_,V,ne){return J.H.useActionState(_,V,ne)},Ne.useCallback=function(_,V){return J.H.useCallback(_,V)},Ne.useContext=function(_){return J.H.useContext(_)},Ne.useDebugValue=function(){},Ne.useDeferredValue=function(_,V){return J.H.useDeferredValue(_,V)},Ne.useEffect=function(_,V){return J.H.useEffect(_,V)},Ne.useId=function(){return J.H.useId()},Ne.useImperativeHandle=function(_,V,ne){return J.H.useImperativeHandle(_,V,ne)},Ne.useInsertionEffect=function(_,V){return J.H.useInsertionEffect(_,V)},Ne.useLayoutEffect=function(_,V){return J.H.useLayoutEffect(_,V)},Ne.useMemo=function(_,V){return J.H.useMemo(_,V)},Ne.useOptimistic=function(_,V){return J.H.useOptimistic(_,V)},Ne.useReducer=function(_,V,ne){return J.H.useReducer(_,V,ne)},Ne.useRef=function(_){return J.H.useRef(_)},Ne.useState=function(_){return J.H.useState(_)},Ne.useSyncExternalStore=function(_,V,ne){return J.H.useSyncExternalStore(_,V,ne)},Ne.useTransition=function(){return J.H.useTransition()},Ne.version="19.0.0",Ne}var Mm;function Xu(){return Mm||(Mm=1,eo.exports=Jg()),eo.exports}var g=Xu();const Vt=pr(g);var to={exports:{}},rr={},no={exports:{}},ao={};/** * @license React * scheduler.production.js * @@ -23,7 +23,7 @@ var Qg=Object.defineProperty;var Zg=(a,i,u)=>i in a?Qg(a,i,{enumerable:!0,config * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. - */var Mm;function Fg(){return Mm||(Mm=1,function(a){function i(K,se){var F=K.length;K.push(se);e:for(;0<F;){var _e=F-1>>>1,_=K[_e];if(0<o(_,se))K[_e]=se,K[F]=_,F=_e;else break e}}function u(K){return K.length===0?null:K[0]}function c(K){if(K.length===0)return null;var se=K[0],F=K.pop();if(F!==se){K[0]=F;e:for(var _e=0,_=K.length,V=_>>>1;_e<V;){var te=2*(_e+1)-1,W=K[te],J=te+1,ye=K[J];if(0>o(W,F))J<_&&0>o(ye,W)?(K[_e]=ye,K[J]=F,_e=J):(K[_e]=W,K[te]=F,_e=te);else if(J<_&&0>o(ye,F))K[_e]=ye,K[J]=F,_e=J;else break e}}return se}function o(K,se){var F=K.sortIndex-se.sortIndex;return F!==0?F:K.id-se.id}if(a.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var f=performance;a.unstable_now=function(){return f.now()}}else{var h=Date,y=h.now();a.unstable_now=function(){return h.now()-y}}var p=[],v=[],b=1,C=null,x=3,R=!1,A=!1,H=!1,k=typeof setTimeout=="function"?setTimeout:null,z=typeof clearTimeout=="function"?clearTimeout:null,Z=typeof setImmediate<"u"?setImmediate:null;function Q(K){for(var se=u(v);se!==null;){if(se.callback===null)c(v);else if(se.startTime<=K)c(v),se.sortIndex=se.expirationTime,i(p,se);else break;se=u(v)}}function ee(K){if(H=!1,Q(K),!A)if(u(p)!==null)A=!0,et();else{var se=u(v);se!==null&&Ne(ee,se.startTime-K)}}var T=!1,P=-1,fe=5,ce=-1;function $(){return!(a.unstable_now()-ce<fe)}function ie(){if(T){var K=a.unstable_now();ce=K;var se=!0;try{e:{A=!1,H&&(H=!1,z(P),P=-1),R=!0;var F=x;try{t:{for(Q(K),C=u(p);C!==null&&!(C.expirationTime>K&&$());){var _e=C.callback;if(typeof _e=="function"){C.callback=null,x=C.priorityLevel;var _=_e(C.expirationTime<=K);if(K=a.unstable_now(),typeof _=="function"){C.callback=_,Q(K),se=!0;break t}C===u(p)&&c(p),Q(K)}else c(p);C=u(p)}if(C!==null)se=!0;else{var V=u(v);V!==null&&Ne(ee,V.startTime-K),se=!1}}break e}finally{C=null,x=F,R=!1}se=void 0}}finally{se?Le():T=!1}}}var Le;if(typeof Z=="function")Le=function(){Z(ie)};else if(typeof MessageChannel<"u"){var Pe=new MessageChannel,Ge=Pe.port2;Pe.port1.onmessage=ie,Le=function(){Ge.postMessage(null)}}else Le=function(){k(ie,0)};function et(){T||(T=!0,Le())}function Ne(K,se){P=k(function(){K(a.unstable_now())},se)}a.unstable_IdlePriority=5,a.unstable_ImmediatePriority=1,a.unstable_LowPriority=4,a.unstable_NormalPriority=3,a.unstable_Profiling=null,a.unstable_UserBlockingPriority=2,a.unstable_cancelCallback=function(K){K.callback=null},a.unstable_continueExecution=function(){A||R||(A=!0,et())},a.unstable_forceFrameRate=function(K){0>K||125<K?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):fe=0<K?Math.floor(1e3/K):5},a.unstable_getCurrentPriorityLevel=function(){return x},a.unstable_getFirstCallbackNode=function(){return u(p)},a.unstable_next=function(K){switch(x){case 1:case 2:case 3:var se=3;break;default:se=x}var F=x;x=se;try{return K()}finally{x=F}},a.unstable_pauseExecution=function(){},a.unstable_requestPaint=function(){},a.unstable_runWithPriority=function(K,se){switch(K){case 1:case 2:case 3:case 4:case 5:break;default:K=3}var F=x;x=K;try{return se()}finally{x=F}},a.unstable_scheduleCallback=function(K,se,F){var _e=a.unstable_now();switch(typeof F=="object"&&F!==null?(F=F.delay,F=typeof F=="number"&&0<F?_e+F:_e):F=_e,K){case 1:var _=-1;break;case 2:_=250;break;case 5:_=1073741823;break;case 4:_=1e4;break;default:_=5e3}return _=F+_,K={id:b++,callback:se,priorityLevel:K,startTime:F,expirationTime:_,sortIndex:-1},F>_e?(K.sortIndex=F,i(v,K),u(p)===null&&K===u(v)&&(H?(z(P),P=-1):H=!0,Ne(ee,F-_e))):(K.sortIndex=_,i(p,K),A||R||(A=!0,et())),K},a.unstable_shouldYield=$,a.unstable_wrapCallback=function(K){var se=x;return function(){var F=x;x=se;try{return K.apply(this,arguments)}finally{x=F}}}}(no)),no}var zm;function Pg(){return zm||(zm=1,to.exports=Fg()),to.exports}var ao={exports:{}},Gt={};/** + */var zm;function Fg(){return zm||(zm=1,function(a){function i(X,oe){var I=X.length;X.push(oe);e:for(;0<I;){var Re=I-1>>>1,_=X[Re];if(0<o(_,oe))X[Re]=oe,X[I]=_,I=Re;else break e}}function u(X){return X.length===0?null:X[0]}function c(X){if(X.length===0)return null;var oe=X[0],I=X.pop();if(I!==oe){X[0]=I;e:for(var Re=0,_=X.length,V=_>>>1;Re<V;){var ne=2*(Re+1)-1,W=X[ne],F=ne+1,ge=X[F];if(0>o(W,I))F<_&&0>o(ge,W)?(X[Re]=ge,X[F]=I,Re=F):(X[Re]=W,X[ne]=I,Re=ne);else if(F<_&&0>o(ge,I))X[Re]=ge,X[F]=I,Re=F;else break e}}return oe}function o(X,oe){var I=X.sortIndex-oe.sortIndex;return I!==0?I:X.id-oe.id}if(a.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var f=performance;a.unstable_now=function(){return f.now()}}else{var m=Date,y=m.now();a.unstable_now=function(){return m.now()-y}}var v=[],p=[],b=1,T=null,x=3,R=!1,w=!1,k=!1,B=typeof setTimeout=="function"?setTimeout:null,U=typeof clearTimeout=="function"?clearTimeout:null,Y=typeof setImmediate<"u"?setImmediate:null;function $(X){for(var oe=u(p);oe!==null;){if(oe.callback===null)c(p);else if(oe.startTime<=X)c(p),oe.sortIndex=oe.expirationTime,i(v,oe);else break;oe=u(p)}}function ee(X){if(k=!1,$(X),!w)if(u(v)!==null)w=!0,Qe();else{var oe=u(p);oe!==null&&Ye(ee,oe.startTime-X)}}var J=!1,O=-1,ue=5,be=-1;function Z(){return!(a.unstable_now()-be<ue)}function ie(){if(J){var X=a.unstable_now();be=X;var oe=!0;try{e:{w=!1,k&&(k=!1,U(O),O=-1),R=!0;var I=x;try{t:{for($(X),T=u(v);T!==null&&!(T.expirationTime>X&&Z());){var Re=T.callback;if(typeof Re=="function"){T.callback=null,x=T.priorityLevel;var _=Re(T.expirationTime<=X);if(X=a.unstable_now(),typeof _=="function"){T.callback=_,$(X),oe=!0;break t}T===u(v)&&c(v),$(X)}else c(v);T=u(v)}if(T!==null)oe=!0;else{var V=u(p);V!==null&&Ye(ee,V.startTime-X),oe=!1}}break e}finally{T=null,x=I,R=!1}oe=void 0}}finally{oe?je():J=!1}}}var je;if(typeof Y=="function")je=function(){Y(ie)};else if(typeof MessageChannel<"u"){var Ie=new MessageChannel,et=Ie.port2;Ie.port1.onmessage=ie,je=function(){et.postMessage(null)}}else je=function(){B(ie,0)};function Qe(){J||(J=!0,je())}function Ye(X,oe){O=B(function(){X(a.unstable_now())},oe)}a.unstable_IdlePriority=5,a.unstable_ImmediatePriority=1,a.unstable_LowPriority=4,a.unstable_NormalPriority=3,a.unstable_Profiling=null,a.unstable_UserBlockingPriority=2,a.unstable_cancelCallback=function(X){X.callback=null},a.unstable_continueExecution=function(){w||R||(w=!0,Qe())},a.unstable_forceFrameRate=function(X){0>X||125<X?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):ue=0<X?Math.floor(1e3/X):5},a.unstable_getCurrentPriorityLevel=function(){return x},a.unstable_getFirstCallbackNode=function(){return u(v)},a.unstable_next=function(X){switch(x){case 1:case 2:case 3:var oe=3;break;default:oe=x}var I=x;x=oe;try{return X()}finally{x=I}},a.unstable_pauseExecution=function(){},a.unstable_requestPaint=function(){},a.unstable_runWithPriority=function(X,oe){switch(X){case 1:case 2:case 3:case 4:case 5:break;default:X=3}var I=x;x=X;try{return oe()}finally{x=I}},a.unstable_scheduleCallback=function(X,oe,I){var Re=a.unstable_now();switch(typeof I=="object"&&I!==null?(I=I.delay,I=typeof I=="number"&&0<I?Re+I:Re):I=Re,X){case 1:var _=-1;break;case 2:_=250;break;case 5:_=1073741823;break;case 4:_=1e4;break;default:_=5e3}return _=I+_,X={id:b++,callback:oe,priorityLevel:X,startTime:I,expirationTime:_,sortIndex:-1},I>Re?(X.sortIndex=I,i(p,X),u(v)===null&&X===u(p)&&(k?(U(O),O=-1):k=!0,Ye(ee,I-Re))):(X.sortIndex=_,i(v,X),w||R||(w=!0,Qe())),X},a.unstable_shouldYield=Z,a.unstable_wrapCallback=function(X){var oe=x;return function(){var I=x;x=oe;try{return X.apply(this,arguments)}finally{x=I}}}}(ao)),ao}var Lm;function Pg(){return Lm||(Lm=1,no.exports=Fg()),no.exports}var lo={exports:{}},kt={};/** * @license React * react-dom.production.js * @@ -31,7 +31,7 @@ var Qg=Object.defineProperty;var Zg=(a,i,u)=>i in a?Qg(a,i,{enumerable:!0,config * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. - */var Lm;function Wg(){if(Lm)return Gt;Lm=1;var a=Yu();function i(p){var v="https://react.dev/errors/"+p;if(1<arguments.length){v+="?args[]="+encodeURIComponent(arguments[1]);for(var b=2;b<arguments.length;b++)v+="&args[]="+encodeURIComponent(arguments[b])}return"Minified React error #"+p+"; visit "+v+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function u(){}var c={d:{f:u,r:function(){throw Error(i(522))},D:u,C:u,L:u,m:u,X:u,S:u,M:u},p:0,findDOMNode:null},o=Symbol.for("react.portal");function f(p,v,b){var C=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:o,key:C==null?null:""+C,children:p,containerInfo:v,implementation:b}}var h=a.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function y(p,v){if(p==="font")return"";if(typeof v=="string")return v==="use-credentials"?v:""}return Gt.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=c,Gt.createPortal=function(p,v){var b=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!v||v.nodeType!==1&&v.nodeType!==9&&v.nodeType!==11)throw Error(i(299));return f(p,v,null,b)},Gt.flushSync=function(p){var v=h.T,b=c.p;try{if(h.T=null,c.p=2,p)return p()}finally{h.T=v,c.p=b,c.d.f()}},Gt.preconnect=function(p,v){typeof p=="string"&&(v?(v=v.crossOrigin,v=typeof v=="string"?v==="use-credentials"?v:"":void 0):v=null,c.d.C(p,v))},Gt.prefetchDNS=function(p){typeof p=="string"&&c.d.D(p)},Gt.preinit=function(p,v){if(typeof p=="string"&&v&&typeof v.as=="string"){var b=v.as,C=y(b,v.crossOrigin),x=typeof v.integrity=="string"?v.integrity:void 0,R=typeof v.fetchPriority=="string"?v.fetchPriority:void 0;b==="style"?c.d.S(p,typeof v.precedence=="string"?v.precedence:void 0,{crossOrigin:C,integrity:x,fetchPriority:R}):b==="script"&&c.d.X(p,{crossOrigin:C,integrity:x,fetchPriority:R,nonce:typeof v.nonce=="string"?v.nonce:void 0})}},Gt.preinitModule=function(p,v){if(typeof p=="string")if(typeof v=="object"&&v!==null){if(v.as==null||v.as==="script"){var b=y(v.as,v.crossOrigin);c.d.M(p,{crossOrigin:b,integrity:typeof v.integrity=="string"?v.integrity:void 0,nonce:typeof v.nonce=="string"?v.nonce:void 0})}}else v==null&&c.d.M(p)},Gt.preload=function(p,v){if(typeof p=="string"&&typeof v=="object"&&v!==null&&typeof v.as=="string"){var b=v.as,C=y(b,v.crossOrigin);c.d.L(p,b,{crossOrigin:C,integrity:typeof v.integrity=="string"?v.integrity:void 0,nonce:typeof v.nonce=="string"?v.nonce:void 0,type:typeof v.type=="string"?v.type:void 0,fetchPriority:typeof v.fetchPriority=="string"?v.fetchPriority:void 0,referrerPolicy:typeof v.referrerPolicy=="string"?v.referrerPolicy:void 0,imageSrcSet:typeof v.imageSrcSet=="string"?v.imageSrcSet:void 0,imageSizes:typeof v.imageSizes=="string"?v.imageSizes:void 0,media:typeof v.media=="string"?v.media:void 0})}},Gt.preloadModule=function(p,v){if(typeof p=="string")if(v){var b=y(v.as,v.crossOrigin);c.d.m(p,{as:typeof v.as=="string"&&v.as!=="script"?v.as:void 0,crossOrigin:b,integrity:typeof v.integrity=="string"?v.integrity:void 0})}else c.d.m(p)},Gt.requestFormReset=function(p){c.d.r(p)},Gt.unstable_batchedUpdates=function(p,v){return p(v)},Gt.useFormState=function(p,v,b){return h.H.useFormState(p,v,b)},Gt.useFormStatus=function(){return h.H.useHostTransitionStatus()},Gt.version="19.0.0",Gt}var Um;function jy(){if(Um)return ao.exports;Um=1;function a(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(a)}catch(i){console.error(i)}}return a(),ao.exports=Wg(),ao.exports}/** + */var Um;function Wg(){if(Um)return kt;Um=1;var a=Xu();function i(v){var p="https://react.dev/errors/"+v;if(1<arguments.length){p+="?args[]="+encodeURIComponent(arguments[1]);for(var b=2;b<arguments.length;b++)p+="&args[]="+encodeURIComponent(arguments[b])}return"Minified React error #"+v+"; visit "+p+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function u(){}var c={d:{f:u,r:function(){throw Error(i(522))},D:u,C:u,L:u,m:u,X:u,S:u,M:u},p:0,findDOMNode:null},o=Symbol.for("react.portal");function f(v,p,b){var T=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:o,key:T==null?null:""+T,children:v,containerInfo:p,implementation:b}}var m=a.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function y(v,p){if(v==="font")return"";if(typeof p=="string")return p==="use-credentials"?p:""}return kt.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=c,kt.createPortal=function(v,p){var b=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!p||p.nodeType!==1&&p.nodeType!==9&&p.nodeType!==11)throw Error(i(299));return f(v,p,null,b)},kt.flushSync=function(v){var p=m.T,b=c.p;try{if(m.T=null,c.p=2,v)return v()}finally{m.T=p,c.p=b,c.d.f()}},kt.preconnect=function(v,p){typeof v=="string"&&(p?(p=p.crossOrigin,p=typeof p=="string"?p==="use-credentials"?p:"":void 0):p=null,c.d.C(v,p))},kt.prefetchDNS=function(v){typeof v=="string"&&c.d.D(v)},kt.preinit=function(v,p){if(typeof v=="string"&&p&&typeof p.as=="string"){var b=p.as,T=y(b,p.crossOrigin),x=typeof p.integrity=="string"?p.integrity:void 0,R=typeof p.fetchPriority=="string"?p.fetchPriority:void 0;b==="style"?c.d.S(v,typeof p.precedence=="string"?p.precedence:void 0,{crossOrigin:T,integrity:x,fetchPriority:R}):b==="script"&&c.d.X(v,{crossOrigin:T,integrity:x,fetchPriority:R,nonce:typeof p.nonce=="string"?p.nonce:void 0})}},kt.preinitModule=function(v,p){if(typeof v=="string")if(typeof p=="object"&&p!==null){if(p.as==null||p.as==="script"){var b=y(p.as,p.crossOrigin);c.d.M(v,{crossOrigin:b,integrity:typeof p.integrity=="string"?p.integrity:void 0,nonce:typeof p.nonce=="string"?p.nonce:void 0})}}else p==null&&c.d.M(v)},kt.preload=function(v,p){if(typeof v=="string"&&typeof p=="object"&&p!==null&&typeof p.as=="string"){var b=p.as,T=y(b,p.crossOrigin);c.d.L(v,b,{crossOrigin:T,integrity:typeof p.integrity=="string"?p.integrity:void 0,nonce:typeof p.nonce=="string"?p.nonce:void 0,type:typeof p.type=="string"?p.type:void 0,fetchPriority:typeof p.fetchPriority=="string"?p.fetchPriority:void 0,referrerPolicy:typeof p.referrerPolicy=="string"?p.referrerPolicy:void 0,imageSrcSet:typeof p.imageSrcSet=="string"?p.imageSrcSet:void 0,imageSizes:typeof p.imageSizes=="string"?p.imageSizes:void 0,media:typeof p.media=="string"?p.media:void 0})}},kt.preloadModule=function(v,p){if(typeof v=="string")if(p){var b=y(p.as,p.crossOrigin);c.d.m(v,{as:typeof p.as=="string"&&p.as!=="script"?p.as:void 0,crossOrigin:b,integrity:typeof p.integrity=="string"?p.integrity:void 0})}else c.d.m(v)},kt.requestFormReset=function(v){c.d.r(v)},kt.unstable_batchedUpdates=function(v,p){return v(p)},kt.useFormState=function(v,p,b){return m.H.useFormState(v,p,b)},kt.useFormStatus=function(){return m.H.useHostTransitionStatus()},kt.version="19.0.0",kt}var Hm;function Oy(){if(Hm)return lo.exports;Hm=1;function a(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(a)}catch(i){console.error(i)}}return a(),lo.exports=Wg(),lo.exports}/** * @license React * react-dom-client.production.js * @@ -39,15 +39,15 @@ var Qg=Object.defineProperty;var Zg=(a,i,u)=>i in a?Qg(a,i,{enumerable:!0,config * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. - */var Hm;function Ig(){if(Hm)return rr;Hm=1;var a=Pg(),i=Yu(),u=jy();function c(e){var t="https://react.dev/errors/"+e;if(1<arguments.length){t+="?args[]="+encodeURIComponent(arguments[1]);for(var n=2;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."}function o(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}var f=Symbol.for("react.element"),h=Symbol.for("react.transitional.element"),y=Symbol.for("react.portal"),p=Symbol.for("react.fragment"),v=Symbol.for("react.strict_mode"),b=Symbol.for("react.profiler"),C=Symbol.for("react.provider"),x=Symbol.for("react.consumer"),R=Symbol.for("react.context"),A=Symbol.for("react.forward_ref"),H=Symbol.for("react.suspense"),k=Symbol.for("react.suspense_list"),z=Symbol.for("react.memo"),Z=Symbol.for("react.lazy"),Q=Symbol.for("react.offscreen"),ee=Symbol.for("react.memo_cache_sentinel"),T=Symbol.iterator;function P(e){return e===null||typeof e!="object"?null:(e=T&&e[T]||e["@@iterator"],typeof e=="function"?e:null)}var fe=Symbol.for("react.client.reference");function ce(e){if(e==null)return null;if(typeof e=="function")return e.$$typeof===fe?null:e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case p:return"Fragment";case y:return"Portal";case b:return"Profiler";case v:return"StrictMode";case H:return"Suspense";case k:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case R:return(e.displayName||"Context")+".Provider";case x:return(e._context.displayName||"Context")+".Consumer";case A:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case z:return t=e.displayName||null,t!==null?t:ce(e.type)||"Memo";case Z:t=e._payload,e=e._init;try{return ce(e(t))}catch{}}return null}var $=i.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,ie=Object.assign,Le,Pe;function Ge(e){if(Le===void 0)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);Le=t&&t[1]||"",Pe=-1<n.stack.indexOf(` + */var Bm;function Ig(){if(Bm)return rr;Bm=1;var a=Pg(),i=Xu(),u=Oy();function c(e){var t="https://react.dev/errors/"+e;if(1<arguments.length){t+="?args[]="+encodeURIComponent(arguments[1]);for(var n=2;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."}function o(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}var f=Symbol.for("react.element"),m=Symbol.for("react.transitional.element"),y=Symbol.for("react.portal"),v=Symbol.for("react.fragment"),p=Symbol.for("react.strict_mode"),b=Symbol.for("react.profiler"),T=Symbol.for("react.provider"),x=Symbol.for("react.consumer"),R=Symbol.for("react.context"),w=Symbol.for("react.forward_ref"),k=Symbol.for("react.suspense"),B=Symbol.for("react.suspense_list"),U=Symbol.for("react.memo"),Y=Symbol.for("react.lazy"),$=Symbol.for("react.offscreen"),ee=Symbol.for("react.memo_cache_sentinel"),J=Symbol.iterator;function O(e){return e===null||typeof e!="object"?null:(e=J&&e[J]||e["@@iterator"],typeof e=="function"?e:null)}var ue=Symbol.for("react.client.reference");function be(e){if(e==null)return null;if(typeof e=="function")return e.$$typeof===ue?null:e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case v:return"Fragment";case y:return"Portal";case b:return"Profiler";case p:return"StrictMode";case k:return"Suspense";case B:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case R:return(e.displayName||"Context")+".Provider";case x:return(e._context.displayName||"Context")+".Consumer";case w:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case U:return t=e.displayName||null,t!==null?t:be(e.type)||"Memo";case Y:t=e._payload,e=e._init;try{return be(e(t))}catch{}}return null}var Z=i.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,ie=Object.assign,je,Ie;function et(e){if(je===void 0)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);je=t&&t[1]||"",Ie=-1<n.stack.indexOf(` at`)?" (<anonymous>)":-1<n.stack.indexOf("@")?"@unknown:0:0":""}return` -`+Le+e+Pe}var et=!1;function Ne(e,t){if(!e||et)return"";et=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var l={DetermineComponentFrameRoot:function(){try{if(t){var G=function(){throw Error()};if(Object.defineProperty(G.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(G,[])}catch(B){var L=B}Reflect.construct(e,[],G)}else{try{G.call()}catch(B){L=B}e.call(G.prototype)}}else{try{throw Error()}catch(B){L=B}(G=e())&&typeof G.catch=="function"&&G.catch(function(){})}}catch(B){if(B&&L&&typeof B.stack=="string")return[B.stack,L.stack]}return[null,null]}};l.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var r=Object.getOwnPropertyDescriptor(l.DetermineComponentFrameRoot,"name");r&&r.configurable&&Object.defineProperty(l.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var s=l.DetermineComponentFrameRoot(),d=s[0],E=s[1];if(d&&E){var S=d.split(` -`),O=E.split(` -`);for(r=l=0;l<S.length&&!S[l].includes("DetermineComponentFrameRoot");)l++;for(;r<O.length&&!O[r].includes("DetermineComponentFrameRoot");)r++;if(l===S.length||r===O.length)for(l=S.length-1,r=O.length-1;1<=l&&0<=r&&S[l]!==O[r];)r--;for(;1<=l&&0<=r;l--,r--)if(S[l]!==O[r]){if(l!==1||r!==1)do if(l--,r--,0>r||S[l]!==O[r]){var q=` -`+S[l].replace(" at new "," at ");return e.displayName&&q.includes("<anonymous>")&&(q=q.replace("<anonymous>",e.displayName)),q}while(1<=l&&0<=r);break}}}finally{et=!1,Error.prepareStackTrace=n}return(n=e?e.displayName||e.name:"")?Ge(n):""}function K(e){switch(e.tag){case 26:case 27:case 5:return Ge(e.type);case 16:return Ge("Lazy");case 13:return Ge("Suspense");case 19:return Ge("SuspenseList");case 0:case 15:return e=Ne(e.type,!1),e;case 11:return e=Ne(e.type.render,!1),e;case 1:return e=Ne(e.type,!0),e;default:return""}}function se(e){try{var t="";do t+=K(e),e=e.return;while(e);return t}catch(n){return` +`+je+e+Ie}var Qe=!1;function Ye(e,t){if(!e||Qe)return"";Qe=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var l={DetermineComponentFrameRoot:function(){try{if(t){var Q=function(){throw Error()};if(Object.defineProperty(Q.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(Q,[])}catch(H){var z=H}Reflect.construct(e,[],Q)}else{try{Q.call()}catch(H){z=H}e.call(Q.prototype)}}else{try{throw Error()}catch(H){z=H}(Q=e())&&typeof Q.catch=="function"&&Q.catch(function(){})}}catch(H){if(H&&z&&typeof H.stack=="string")return[H.stack,z.stack]}return[null,null]}};l.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var r=Object.getOwnPropertyDescriptor(l.DetermineComponentFrameRoot,"name");r&&r.configurable&&Object.defineProperty(l.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var s=l.DetermineComponentFrameRoot(),d=s[0],E=s[1];if(d&&E){var S=d.split(` +`),j=E.split(` +`);for(r=l=0;l<S.length&&!S[l].includes("DetermineComponentFrameRoot");)l++;for(;r<j.length&&!j[r].includes("DetermineComponentFrameRoot");)r++;if(l===S.length||r===j.length)for(l=S.length-1,r=j.length-1;1<=l&&0<=r&&S[l]!==j[r];)r--;for(;1<=l&&0<=r;l--,r--)if(S[l]!==j[r]){if(l!==1||r!==1)do if(l--,r--,0>r||S[l]!==j[r]){var q=` +`+S[l].replace(" at new "," at ");return e.displayName&&q.includes("<anonymous>")&&(q=q.replace("<anonymous>",e.displayName)),q}while(1<=l&&0<=r);break}}}finally{Qe=!1,Error.prepareStackTrace=n}return(n=e?e.displayName||e.name:"")?et(n):""}function X(e){switch(e.tag){case 26:case 27:case 5:return et(e.type);case 16:return et("Lazy");case 13:return et("Suspense");case 19:return et("SuspenseList");case 0:case 15:return e=Ye(e.type,!1),e;case 11:return e=Ye(e.type.render,!1),e;case 1:return e=Ye(e.type,!0),e;default:return""}}function oe(e){try{var t="";do t+=X(e),e=e.return;while(e);return t}catch(n){return` Error generating stack: `+n.message+` -`+n.stack}}function F(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,t.flags&4098&&(n=t.return),e=t.return;while(e)}return t.tag===3?n:null}function _e(e){if(e.tag===13){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function _(e){if(F(e)!==e)throw Error(c(188))}function V(e){var t=e.alternate;if(!t){if(t=F(e),t===null)throw Error(c(188));return t!==e?null:e}for(var n=e,l=t;;){var r=n.return;if(r===null)break;var s=r.alternate;if(s===null){if(l=r.return,l!==null){n=l;continue}break}if(r.child===s.child){for(s=r.child;s;){if(s===n)return _(r),e;if(s===l)return _(r),t;s=s.sibling}throw Error(c(188))}if(n.return!==l.return)n=r,l=s;else{for(var d=!1,E=r.child;E;){if(E===n){d=!0,n=r,l=s;break}if(E===l){d=!0,l=r,n=s;break}E=E.sibling}if(!d){for(E=s.child;E;){if(E===n){d=!0,n=s,l=r;break}if(E===l){d=!0,l=s,n=r;break}E=E.sibling}if(!d)throw Error(c(189))}}if(n.alternate!==l)throw Error(c(190))}if(n.tag!==3)throw Error(c(188));return n.stateNode.current===n?e:t}function te(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e;for(e=e.child;e!==null;){if(t=te(e),t!==null)return t;e=e.sibling}return null}var W=Array.isArray,J=u.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,ye={pending:!1,data:null,method:null,action:null},ge=[],Ze=-1;function Ce(e){return{current:e}}function xe(e){0>Ze||(e.current=ge[Ze],ge[Ze]=null,Ze--)}function Te(e,t){Ze++,ge[Ze]=e.current,e.current=t}var at=Ce(null),bt=Ce(null),Ke=Ce(null),Rt=Ce(null);function ze(e,t){switch(Te(Ke,t),Te(bt,e),Te(at,null),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)&&(t=t.namespaceURI)?am(t):0;break;default:if(e=e===8?t.parentNode:t,t=e.tagName,e=e.namespaceURI)e=am(e),t=lm(e,t);else switch(t){case"svg":t=1;break;case"math":t=2;break;default:t=0}}xe(at),Te(at,t)}function St(){xe(at),xe(bt),xe(Ke)}function qt(e){e.memoizedState!==null&&Te(Rt,e);var t=at.current,n=lm(t,e.type);t!==n&&(Te(bt,e),Te(at,n))}function en(e){bt.current===e&&(xe(at),xe(bt)),Rt.current===e&&(xe(Rt),er._currentValue=ye)}var dn=Object.prototype.hasOwnProperty,hn=a.unstable_scheduleCallback,Tt=a.unstable_cancelCallback,Jt=a.unstable_shouldYield,On=a.unstable_requestPaint,ct=a.unstable_now,wt=a.unstable_getCurrentPriorityLevel,be=a.unstable_ImmediatePriority,Mt=a.unstable_UserBlockingPriority,kt=a.unstable_NormalPriority,_a=a.unstable_LowPriority,Vt=a.unstable_IdlePriority,Wn=a.log,In=a.unstable_setDisableYieldValue,tn=null,pt=null;function ea(e){if(pt&&typeof pt.onCommitFiberRoot=="function")try{pt.onCommitFiberRoot(tn,e,void 0,(e.current.flags&128)===128)}catch{}}function Nt(e){if(typeof Wn=="function"&&In(e),pt&&typeof pt.setStrictMode=="function")try{pt.setStrictMode(tn,e)}catch{}}var ht=Math.clz32?Math.clz32:ta,Vn=Math.log,Ra=Math.LN2;function ta(e){return e>>>=0,e===0?32:31-(Vn(e)/Ra|0)|0}var Dn=128,mn=4194304;function zt(e){var t=e&42;if(t!==0)return t;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:return 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 e&4194176;case 4194304:case 8388608:case 16777216:case 33554432:return e&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return e}}function Ft(e,t){var n=e.pendingLanes;if(n===0)return 0;var l=0,r=e.suspendedLanes,s=e.pingedLanes,d=e.warmLanes;e=e.finishedLanes!==0;var E=n&134217727;return E!==0?(n=E&~r,n!==0?l=zt(n):(s&=E,s!==0?l=zt(s):e||(d=E&~d,d!==0&&(l=zt(d))))):(E=n&~r,E!==0?l=zt(E):s!==0?l=zt(s):e||(d=n&~d,d!==0&&(l=zt(d)))),l===0?0:t!==0&&t!==l&&!(t&r)&&(r=l&-l,d=t&-t,r>=d||r===32&&(d&4194176)!==0)?t:l}function yn(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function Ta(e,t){switch(e){case 1:case 2:case 4:case 8:return t+250;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;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function N(){var e=Dn;return Dn<<=1,!(Dn&4194176)&&(Dn=128),e}function w(){var e=mn;return mn<<=1,!(mn&62914560)&&(mn=4194304),e}function U(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function X(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function ne(e,t,n,l,r,s){var d=e.pendingLanes;e.pendingLanes=n,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=n,e.entangledLanes&=n,e.errorRecoveryDisabledLanes&=n,e.shellSuspendCounter=0;var E=e.entanglements,S=e.expirationTimes,O=e.hiddenUpdates;for(n=d&~n;0<n;){var q=31-ht(n),G=1<<q;E[q]=0,S[q]=-1;var L=O[q];if(L!==null)for(O[q]=null,q=0;q<L.length;q++){var B=L[q];B!==null&&(B.lane&=-536870913)}n&=~G}l!==0&&de(e,l,0),s!==0&&r===0&&e.tag!==0&&(e.suspendedLanes|=s&~(d&~t))}function de(e,t,n){e.pendingLanes|=t,e.suspendedLanes&=~t;var l=31-ht(t);e.entangledLanes|=t,e.entanglements[l]=e.entanglements[l]|1073741824|n&4194218}function Se(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var l=31-ht(n),r=1<<l;r&t|e[l]&t&&(e[l]|=t),n&=~r}}function le(e){return e&=-e,2<e?8<e?e&134217727?32:268435456:8:2}function ue(){var e=J.p;return e!==0?e:(e=window.event,e===void 0?32:xm(e.type))}function I(e,t){var n=J.p;try{return J.p=e,t()}finally{J.p=n}}var pe=Math.random().toString(36).slice(2),me="__reactFiber$"+pe,Oe="__reactProps$"+pe,tt="__reactContainer$"+pe,$e="__reactEvents$"+pe,Je="__reactListeners$"+pe,mt="__reactHandles$"+pe,na="__reactResources$"+pe,An="__reactMarker$"+pe;function nn(e){delete e[me],delete e[Oe],delete e[$e],delete e[Je],delete e[mt]}function Ct(e){var t=e[me];if(t)return t;for(var n=e.parentNode;n;){if(t=n[tt]||n[me]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=um(e);e!==null;){if(n=e[me])return n;e=um(e)}return t}e=n,n=e.parentNode}return null}function Yn(e){if(e=e[me]||e[tt]){var t=e.tag;if(t===5||t===6||t===13||t===26||t===27||t===3)return e}return null}function wn(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e.stateNode;throw Error(c(33))}function Pt(e){var t=e[na];return t||(t=e[na]={hoistableStyles:new Map,hoistableScripts:new Map}),t}function lt(e){e[An]=!0}var el=new Set,Ye={};function nt(e,t){Mn(e,t),Mn(e+"Capture",t)}function Mn(e,t){for(Ye[e]=t,e=0;e<t.length;e++)el.add(t[e])}var Qt=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),st=RegExp("^[: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]*$"),aa={},hi={};function Ju(e){return dn.call(hi,e)?!0:dn.call(aa,e)?!1:st.test(e)?hi[e]=!0:(aa[e]=!0,!1)}function Er(e,t,n){if(Ju(t))if(n===null)e.removeAttribute(t);else{switch(typeof n){case"undefined":case"function":case"symbol":e.removeAttribute(t);return;case"boolean":var l=t.toLowerCase().slice(0,5);if(l!=="data-"&&l!=="aria-"){e.removeAttribute(t);return}}e.setAttribute(t,""+n)}}function br(e,t,n){if(n===null)e.removeAttribute(t);else{switch(typeof n){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(t);return}e.setAttribute(t,""+n)}}function la(e,t,n,l){if(l===null)e.removeAttribute(n);else{switch(typeof l){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(n);return}e.setAttributeNS(t,n,""+l)}}function pn(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function rf(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function kp(e){var t=rf(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),l=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var r=n.get,s=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return r.call(this)},set:function(d){l=""+d,s.call(this,d)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return l},setValue:function(d){l=""+d},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Sr(e){e._valueTracker||(e._valueTracker=kp(e))}function uf(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),l="";return e&&(l=rf(e)?e.checked?"true":"false":e.value),e=l,e!==n?(t.setValue(e),!0):!1}function xr(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}var Vp=/[\n"\\]/g;function vn(e){return e.replace(Vp,function(t){return"\\"+t.charCodeAt(0).toString(16)+" "})}function Fu(e,t,n,l,r,s,d,E){e.name="",d!=null&&typeof d!="function"&&typeof d!="symbol"&&typeof d!="boolean"?e.type=d:e.removeAttribute("type"),t!=null?d==="number"?(t===0&&e.value===""||e.value!=t)&&(e.value=""+pn(t)):e.value!==""+pn(t)&&(e.value=""+pn(t)):d!=="submit"&&d!=="reset"||e.removeAttribute("value"),t!=null?Pu(e,d,pn(t)):n!=null?Pu(e,d,pn(n)):l!=null&&e.removeAttribute("value"),r==null&&s!=null&&(e.defaultChecked=!!s),r!=null&&(e.checked=r&&typeof r!="function"&&typeof r!="symbol"),E!=null&&typeof E!="function"&&typeof E!="symbol"&&typeof E!="boolean"?e.name=""+pn(E):e.removeAttribute("name")}function cf(e,t,n,l,r,s,d,E){if(s!=null&&typeof s!="function"&&typeof s!="symbol"&&typeof s!="boolean"&&(e.type=s),t!=null||n!=null){if(!(s!=="submit"&&s!=="reset"||t!=null))return;n=n!=null?""+pn(n):"",t=t!=null?""+pn(t):n,E||t===e.value||(e.value=t),e.defaultValue=t}l=l??r,l=typeof l!="function"&&typeof l!="symbol"&&!!l,e.checked=E?e.checked:!!l,e.defaultChecked=!!l,d!=null&&typeof d!="function"&&typeof d!="symbol"&&typeof d!="boolean"&&(e.name=d)}function Pu(e,t,n){t==="number"&&xr(e.ownerDocument)===e||e.defaultValue===""+n||(e.defaultValue=""+n)}function jl(e,t,n,l){if(e=e.options,t){t={};for(var r=0;r<n.length;r++)t["$"+n[r]]=!0;for(n=0;n<e.length;n++)r=t.hasOwnProperty("$"+e[n].value),e[n].selected!==r&&(e[n].selected=r),r&&l&&(e[n].defaultSelected=!0)}else{for(n=""+pn(n),t=null,r=0;r<e.length;r++){if(e[r].value===n){e[r].selected=!0,l&&(e[r].defaultSelected=!0);return}t!==null||e[r].disabled||(t=e[r])}t!==null&&(t.selected=!0)}}function sf(e,t,n){if(t!=null&&(t=""+pn(t),t!==e.value&&(e.value=t),n==null)){e.defaultValue!==t&&(e.defaultValue=t);return}e.defaultValue=n!=null?""+pn(n):""}function of(e,t,n,l){if(t==null){if(l!=null){if(n!=null)throw Error(c(92));if(W(l)){if(1<l.length)throw Error(c(93));l=l[0]}n=l}n==null&&(n=""),t=n}n=pn(t),e.defaultValue=n,l=e.textContent,l===n&&l!==""&&l!==null&&(e.value=l)}function Ol(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var Yp=new Set("animationIterationCount aspectRatio borderImageOutset borderImageSlice borderImageWidth boxFlex boxFlexGroup boxOrdinalGroup columnCount columns flex flexGrow flexPositive flexShrink flexNegative flexOrder gridArea gridRow gridRowEnd gridRowSpan gridRowStart gridColumn gridColumnEnd gridColumnSpan gridColumnStart fontWeight lineClamp lineHeight opacity order orphans scale tabSize widows zIndex zoom fillOpacity floodOpacity stopOpacity strokeDasharray strokeDashoffset strokeMiterlimit strokeOpacity strokeWidth MozAnimationIterationCount MozBoxFlex MozBoxFlexGroup MozLineClamp msAnimationIterationCount msFlex msZoom msFlexGrow msFlexNegative msFlexOrder msFlexPositive msFlexShrink msGridColumn msGridColumnSpan msGridRow msGridRowSpan WebkitAnimationIterationCount WebkitBoxFlex WebKitBoxFlexGroup WebkitBoxOrdinalGroup WebkitColumnCount WebkitColumns WebkitFlex WebkitFlexGrow WebkitFlexPositive WebkitFlexShrink WebkitLineClamp".split(" "));function ff(e,t,n){var l=t.indexOf("--")===0;n==null||typeof n=="boolean"||n===""?l?e.setProperty(t,""):t==="float"?e.cssFloat="":e[t]="":l?e.setProperty(t,n):typeof n!="number"||n===0||Yp.has(t)?t==="float"?e.cssFloat=n:e[t]=(""+n).trim():e[t]=n+"px"}function df(e,t,n){if(t!=null&&typeof t!="object")throw Error(c(62));if(e=e.style,n!=null){for(var l in n)!n.hasOwnProperty(l)||t!=null&&t.hasOwnProperty(l)||(l.indexOf("--")===0?e.setProperty(l,""):l==="float"?e.cssFloat="":e[l]="");for(var r in t)l=t[r],t.hasOwnProperty(r)&&n[r]!==l&&ff(e,r,l)}else for(var s in t)t.hasOwnProperty(s)&&ff(e,s,t[s])}function Wu(e){if(e.indexOf("-")===-1)return!1;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 Gp=new Map([["acceptCharset","accept-charset"],["htmlFor","for"],["httpEquiv","http-equiv"],["crossOrigin","crossorigin"],["accentHeight","accent-height"],["alignmentBaseline","alignment-baseline"],["arabicForm","arabic-form"],["baselineShift","baseline-shift"],["capHeight","cap-height"],["clipPath","clip-path"],["clipRule","clip-rule"],["colorInterpolation","color-interpolation"],["colorInterpolationFilters","color-interpolation-filters"],["colorProfile","color-profile"],["colorRendering","color-rendering"],["dominantBaseline","dominant-baseline"],["enableBackground","enable-background"],["fillOpacity","fill-opacity"],["fillRule","fill-rule"],["floodColor","flood-color"],["floodOpacity","flood-opacity"],["fontFamily","font-family"],["fontSize","font-size"],["fontSizeAdjust","font-size-adjust"],["fontStretch","font-stretch"],["fontStyle","font-style"],["fontVariant","font-variant"],["fontWeight","font-weight"],["glyphName","glyph-name"],["glyphOrientationHorizontal","glyph-orientation-horizontal"],["glyphOrientationVertical","glyph-orientation-vertical"],["horizAdvX","horiz-adv-x"],["horizOriginX","horiz-origin-x"],["imageRendering","image-rendering"],["letterSpacing","letter-spacing"],["lightingColor","lighting-color"],["markerEnd","marker-end"],["markerMid","marker-mid"],["markerStart","marker-start"],["overlinePosition","overline-position"],["overlineThickness","overline-thickness"],["paintOrder","paint-order"],["panose-1","panose-1"],["pointerEvents","pointer-events"],["renderingIntent","rendering-intent"],["shapeRendering","shape-rendering"],["stopColor","stop-color"],["stopOpacity","stop-opacity"],["strikethroughPosition","strikethrough-position"],["strikethroughThickness","strikethrough-thickness"],["strokeDasharray","stroke-dasharray"],["strokeDashoffset","stroke-dashoffset"],["strokeLinecap","stroke-linecap"],["strokeLinejoin","stroke-linejoin"],["strokeMiterlimit","stroke-miterlimit"],["strokeOpacity","stroke-opacity"],["strokeWidth","stroke-width"],["textAnchor","text-anchor"],["textDecoration","text-decoration"],["textRendering","text-rendering"],["transformOrigin","transform-origin"],["underlinePosition","underline-position"],["underlineThickness","underline-thickness"],["unicodeBidi","unicode-bidi"],["unicodeRange","unicode-range"],["unitsPerEm","units-per-em"],["vAlphabetic","v-alphabetic"],["vHanging","v-hanging"],["vIdeographic","v-ideographic"],["vMathematical","v-mathematical"],["vectorEffect","vector-effect"],["vertAdvY","vert-adv-y"],["vertOriginX","vert-origin-x"],["vertOriginY","vert-origin-y"],["wordSpacing","word-spacing"],["writingMode","writing-mode"],["xmlnsXlink","xmlns:xlink"],["xHeight","x-height"]]),Xp=/^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*:/i;function _r(e){return Xp.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}var Iu=null;function ec(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Dl=null,Al=null;function hf(e){var t=Yn(e);if(t&&(e=t.stateNode)){var n=e[Oe]||null;e:switch(e=t.stateNode,t.type){case"input":if(Fu(e,n.value,n.defaultValue,n.defaultValue,n.checked,n.defaultChecked,n.type,n.name),t=n.name,n.type==="radio"&&t!=null){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll('input[name="'+vn(""+t)+'"][type="radio"]'),t=0;t<n.length;t++){var l=n[t];if(l!==e&&l.form===e.form){var r=l[Oe]||null;if(!r)throw Error(c(90));Fu(l,r.value,r.defaultValue,r.defaultValue,r.checked,r.defaultChecked,r.type,r.name)}}for(t=0;t<n.length;t++)l=n[t],l.form===e.form&&uf(l)}break e;case"textarea":sf(e,n.value,n.defaultValue);break e;case"select":t=n.value,t!=null&&jl(e,!!n.multiple,t,!1)}}}var tc=!1;function mf(e,t,n){if(tc)return e(t,n);tc=!0;try{var l=e(t);return l}finally{if(tc=!1,(Dl!==null||Al!==null)&&(ru(),Dl&&(t=Dl,e=Al,Al=Dl=null,hf(t),e)))for(t=0;t<e.length;t++)hf(e[t])}}function mi(e,t){var n=e.stateNode;if(n===null)return null;var l=n[Oe]||null;if(l===null)return null;n=l[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":(l=!l.disabled)||(e=e.type,l=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!l;break e;default:e=!1}if(e)return null;if(n&&typeof n!="function")throw Error(c(231,t,typeof n));return n}var nc=!1;if(Qt)try{var yi={};Object.defineProperty(yi,"passive",{get:function(){nc=!0}}),window.addEventListener("test",yi,yi),window.removeEventListener("test",yi,yi)}catch{nc=!1}var Na=null,ac=null,Rr=null;function yf(){if(Rr)return Rr;var e,t=ac,n=t.length,l,r="value"in Na?Na.value:Na.textContent,s=r.length;for(e=0;e<n&&t[e]===r[e];e++);var d=n-e;for(l=1;l<=d&&t[n-l]===r[s-l];l++);return Rr=r.slice(e,1<l?1-l:void 0)}function Tr(e){var t=e.keyCode;return"charCode"in e?(e=e.charCode,e===0&&t===13&&(e=13)):e=t,e===10&&(e=13),32<=e||e===13?e:0}function Nr(){return!0}function pf(){return!1}function Wt(e){function t(n,l,r,s,d){this._reactName=n,this._targetInst=r,this.type=l,this.nativeEvent=s,this.target=d,this.currentTarget=null;for(var E in e)e.hasOwnProperty(E)&&(n=e[E],this[E]=n?n(s):s[E]);return this.isDefaultPrevented=(s.defaultPrevented!=null?s.defaultPrevented:s.returnValue===!1)?Nr:pf,this.isPropagationStopped=pf,this}return ie(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var n=this.nativeEvent;n&&(n.preventDefault?n.preventDefault():typeof n.returnValue!="unknown"&&(n.returnValue=!1),this.isDefaultPrevented=Nr)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=Nr)},persist:function(){},isPersistent:Nr}),t}var tl={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Cr=Wt(tl),pi=ie({},tl,{view:0,detail:0}),Qp=Wt(pi),lc,ic,vi,jr=ie({},pi,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:uc,button:0,buttons:0,relatedTarget:function(e){return e.relatedTarget===void 0?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==vi&&(vi&&e.type==="mousemove"?(lc=e.screenX-vi.screenX,ic=e.screenY-vi.screenY):ic=lc=0,vi=e),lc)},movementY:function(e){return"movementY"in e?e.movementY:ic}}),vf=Wt(jr),Zp=ie({},jr,{dataTransfer:0}),Kp=Wt(Zp),$p=ie({},pi,{relatedTarget:0}),rc=Wt($p),Jp=ie({},tl,{animationName:0,elapsedTime:0,pseudoElement:0}),Fp=Wt(Jp),Pp=ie({},tl,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),Wp=Wt(Pp),Ip=ie({},tl,{data:0}),gf=Wt(Ip),ev={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},tv={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"},nv={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function av(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=nv[e])?!!t[e]:!1}function uc(){return av}var lv=ie({},pi,{key:function(e){if(e.key){var t=ev[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=Tr(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?tv[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:uc,charCode:function(e){return e.type==="keypress"?Tr(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?Tr(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),iv=Wt(lv),rv=ie({},jr,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Ef=Wt(rv),uv=ie({},pi,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:uc}),cv=Wt(uv),sv=ie({},tl,{propertyName:0,elapsedTime:0,pseudoElement:0}),ov=Wt(sv),fv=ie({},jr,{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}),dv=Wt(fv),hv=ie({},tl,{newState:0,oldState:0}),mv=Wt(hv),yv=[9,13,27,32],cc=Qt&&"CompositionEvent"in window,gi=null;Qt&&"documentMode"in document&&(gi=document.documentMode);var pv=Qt&&"TextEvent"in window&&!gi,bf=Qt&&(!cc||gi&&8<gi&&11>=gi),Sf=" ",xf=!1;function _f(e,t){switch(e){case"keyup":return yv.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Rf(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var wl=!1;function vv(e,t){switch(e){case"compositionend":return Rf(t);case"keypress":return t.which!==32?null:(xf=!0,Sf);case"textInput":return e=t.data,e===Sf&&xf?null:e;default:return null}}function gv(e,t){if(wl)return e==="compositionend"||!cc&&_f(e,t)?(e=yf(),Rr=ac=Na=null,wl=!1,e):null;switch(e){case"paste":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 bf&&t.locale!=="ko"?null:t.data;default:return null}}var Ev={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 Tf(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!Ev[e.type]:t==="textarea"}function Nf(e,t,n,l){Dl?Al?Al.push(l):Al=[l]:Dl=l,t=fu(t,"onChange"),0<t.length&&(n=new Cr("onChange","change",null,n,l),e.push({event:n,listeners:t}))}var Ei=null,bi=null;function bv(e){Wh(e,0)}function Or(e){var t=wn(e);if(uf(t))return e}function Cf(e,t){if(e==="change")return t}var jf=!1;if(Qt){var sc;if(Qt){var oc="oninput"in document;if(!oc){var Of=document.createElement("div");Of.setAttribute("oninput","return;"),oc=typeof Of.oninput=="function"}sc=oc}else sc=!1;jf=sc&&(!document.documentMode||9<document.documentMode)}function Df(){Ei&&(Ei.detachEvent("onpropertychange",Af),bi=Ei=null)}function Af(e){if(e.propertyName==="value"&&Or(bi)){var t=[];Nf(t,bi,e,ec(e)),mf(bv,t)}}function Sv(e,t,n){e==="focusin"?(Df(),Ei=t,bi=n,Ei.attachEvent("onpropertychange",Af)):e==="focusout"&&Df()}function xv(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return Or(bi)}function _v(e,t){if(e==="click")return Or(t)}function Rv(e,t){if(e==="input"||e==="change")return Or(t)}function Tv(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var an=typeof Object.is=="function"?Object.is:Tv;function Si(e,t){if(an(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var n=Object.keys(e),l=Object.keys(t);if(n.length!==l.length)return!1;for(l=0;l<n.length;l++){var r=n[l];if(!dn.call(t,r)||!an(e[r],t[r]))return!1}return!0}function wf(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function Mf(e,t){var n=wf(e);e=0;for(var l;n;){if(n.nodeType===3){if(l=e+n.textContent.length,e<=t&&l>=t)return{node:n,offset:t-e};e=l}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=wf(n)}}function zf(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?zf(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Lf(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=xr(e.document);t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=xr(e.document)}return t}function fc(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}function Nv(e,t){var n=Lf(t);t=e.focusedElem;var l=e.selectionRange;if(n!==t&&t&&t.ownerDocument&&zf(t.ownerDocument.documentElement,t)){if(l!==null&&fc(t)){if(e=l.start,n=l.end,n===void 0&&(n=e),"selectionStart"in t)t.selectionStart=e,t.selectionEnd=Math.min(n,t.value.length);else if(n=(e=t.ownerDocument||document)&&e.defaultView||window,n.getSelection){n=n.getSelection();var r=t.textContent.length,s=Math.min(l.start,r);l=l.end===void 0?s:Math.min(l.end,r),!n.extend&&s>l&&(r=l,l=s,s=r),r=Mf(t,s);var d=Mf(t,l);r&&d&&(n.rangeCount!==1||n.anchorNode!==r.node||n.anchorOffset!==r.offset||n.focusNode!==d.node||n.focusOffset!==d.offset)&&(e=e.createRange(),e.setStart(r.node,r.offset),n.removeAllRanges(),s>l?(n.addRange(e),n.extend(d.node,d.offset)):(e.setEnd(d.node,d.offset),n.addRange(e)))}}for(e=[],n=t;n=n.parentNode;)n.nodeType===1&&e.push({element:n,left:n.scrollLeft,top:n.scrollTop});for(typeof t.focus=="function"&&t.focus(),t=0;t<e.length;t++)n=e[t],n.element.scrollLeft=n.left,n.element.scrollTop=n.top}}var Cv=Qt&&"documentMode"in document&&11>=document.documentMode,Ml=null,dc=null,xi=null,hc=!1;function Uf(e,t,n){var l=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;hc||Ml==null||Ml!==xr(l)||(l=Ml,"selectionStart"in l&&fc(l)?l={start:l.selectionStart,end:l.selectionEnd}:(l=(l.ownerDocument&&l.ownerDocument.defaultView||window).getSelection(),l={anchorNode:l.anchorNode,anchorOffset:l.anchorOffset,focusNode:l.focusNode,focusOffset:l.focusOffset}),xi&&Si(xi,l)||(xi=l,l=fu(dc,"onSelect"),0<l.length&&(t=new Cr("onSelect","select",null,t,n),e.push({event:t,listeners:l}),t.target=Ml)))}function nl(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var zl={animationend:nl("Animation","AnimationEnd"),animationiteration:nl("Animation","AnimationIteration"),animationstart:nl("Animation","AnimationStart"),transitionrun:nl("Transition","TransitionRun"),transitionstart:nl("Transition","TransitionStart"),transitioncancel:nl("Transition","TransitionCancel"),transitionend:nl("Transition","TransitionEnd")},mc={},Hf={};Qt&&(Hf=document.createElement("div").style,"AnimationEvent"in window||(delete zl.animationend.animation,delete zl.animationiteration.animation,delete zl.animationstart.animation),"TransitionEvent"in window||delete zl.transitionend.transition);function al(e){if(mc[e])return mc[e];if(!zl[e])return e;var t=zl[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in Hf)return mc[e]=t[n];return e}var Bf=al("animationend"),qf=al("animationiteration"),kf=al("animationstart"),jv=al("transitionrun"),Ov=al("transitionstart"),Dv=al("transitioncancel"),Vf=al("transitionend"),Yf=new Map,Gf="abort auxClick beforeToggle 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 scrollEnd toggle touchMove waiting wheel".split(" ");function zn(e,t){Yf.set(e,t),nt(t,[e])}var gn=[],Ll=0,yc=0;function Dr(){for(var e=Ll,t=yc=Ll=0;t<e;){var n=gn[t];gn[t++]=null;var l=gn[t];gn[t++]=null;var r=gn[t];gn[t++]=null;var s=gn[t];if(gn[t++]=null,l!==null&&r!==null){var d=l.pending;d===null?r.next=r:(r.next=d.next,d.next=r),l.pending=r}s!==0&&Xf(n,r,s)}}function Ar(e,t,n,l){gn[Ll++]=e,gn[Ll++]=t,gn[Ll++]=n,gn[Ll++]=l,yc|=l,e.lanes|=l,e=e.alternate,e!==null&&(e.lanes|=l)}function pc(e,t,n,l){return Ar(e,t,n,l),wr(e)}function Ca(e,t){return Ar(e,null,null,t),wr(e)}function Xf(e,t,n){e.lanes|=n;var l=e.alternate;l!==null&&(l.lanes|=n);for(var r=!1,s=e.return;s!==null;)s.childLanes|=n,l=s.alternate,l!==null&&(l.childLanes|=n),s.tag===22&&(e=s.stateNode,e===null||e._visibility&1||(r=!0)),e=s,s=s.return;r&&t!==null&&e.tag===3&&(s=e.stateNode,r=31-ht(n),s=s.hiddenUpdates,e=s[r],e===null?s[r]=[t]:e.push(t),t.lane=n|536870912)}function wr(e){if(50<Ki)throw Ki=0,xs=null,Error(c(185));for(var t=e.return;t!==null;)e=t,t=e.return;return e.tag===3?e.stateNode:null}var Ul={},Qf=new WeakMap;function En(e,t){if(typeof e=="object"&&e!==null){var n=Qf.get(e);return n!==void 0?n:(t={value:e,source:t,stack:se(t)},Qf.set(e,t),t)}return{value:e,source:t,stack:se(t)}}var Hl=[],Bl=0,Mr=null,zr=0,bn=[],Sn=0,ll=null,ia=1,ra="";function il(e,t){Hl[Bl++]=zr,Hl[Bl++]=Mr,Mr=e,zr=t}function Zf(e,t,n){bn[Sn++]=ia,bn[Sn++]=ra,bn[Sn++]=ll,ll=e;var l=ia;e=ra;var r=32-ht(l)-1;l&=~(1<<r),n+=1;var s=32-ht(t)+r;if(30<s){var d=r-r%5;s=(l&(1<<d)-1).toString(32),l>>=d,r-=d,ia=1<<32-ht(t)+r|n<<r|l,ra=s+e}else ia=1<<s|n<<r|l,ra=e}function vc(e){e.return!==null&&(il(e,1),Zf(e,1,0))}function gc(e){for(;e===Mr;)Mr=Hl[--Bl],Hl[Bl]=null,zr=Hl[--Bl],Hl[Bl]=null;for(;e===ll;)ll=bn[--Sn],bn[Sn]=null,ra=bn[--Sn],bn[Sn]=null,ia=bn[--Sn],bn[Sn]=null}var Zt=null,Lt=null,qe=!1,Ln=null,Gn=!1,Ec=Error(c(519));function rl(e){var t=Error(c(418,""));throw Ti(En(t,e)),Ec}function Kf(e){var t=e.stateNode,n=e.type,l=e.memoizedProps;switch(t[me]=e,t[Oe]=l,n){case"dialog":Ue("cancel",t),Ue("close",t);break;case"iframe":case"object":case"embed":Ue("load",t);break;case"video":case"audio":for(n=0;n<Ji.length;n++)Ue(Ji[n],t);break;case"source":Ue("error",t);break;case"img":case"image":case"link":Ue("error",t),Ue("load",t);break;case"details":Ue("toggle",t);break;case"input":Ue("invalid",t),cf(t,l.value,l.defaultValue,l.checked,l.defaultChecked,l.type,l.name,!0),Sr(t);break;case"select":Ue("invalid",t);break;case"textarea":Ue("invalid",t),of(t,l.value,l.defaultValue,l.children),Sr(t)}n=l.children,typeof n!="string"&&typeof n!="number"&&typeof n!="bigint"||t.textContent===""+n||l.suppressHydrationWarning===!0||nm(t.textContent,n)?(l.popover!=null&&(Ue("beforetoggle",t),Ue("toggle",t)),l.onScroll!=null&&Ue("scroll",t),l.onScrollEnd!=null&&Ue("scrollend",t),l.onClick!=null&&(t.onclick=du),t=!0):t=!1,t||rl(e)}function $f(e){for(Zt=e.return;Zt;)switch(Zt.tag){case 3:case 27:Gn=!0;return;case 5:case 13:Gn=!1;return;default:Zt=Zt.return}}function _i(e){if(e!==Zt)return!1;if(!qe)return $f(e),qe=!0,!1;var t=!1,n;if((n=e.tag!==3&&e.tag!==27)&&((n=e.tag===5)&&(n=e.type,n=!(n!=="form"&&n!=="button")||qs(e.type,e.memoizedProps)),n=!n),n&&(t=!0),t&&Lt&&rl(e),$f(e),e.tag===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(c(317));e:{for(e=e.nextSibling,t=0;e;){if(e.nodeType===8)if(n=e.data,n==="/$"){if(t===0){Lt=Hn(e.nextSibling);break e}t--}else n!=="$"&&n!=="$!"&&n!=="$?"||t++;e=e.nextSibling}Lt=null}}else Lt=Zt?Hn(e.stateNode.nextSibling):null;return!0}function Ri(){Lt=Zt=null,qe=!1}function Ti(e){Ln===null?Ln=[e]:Ln.push(e)}var Ni=Error(c(460)),Jf=Error(c(474)),bc={then:function(){}};function Ff(e){return e=e.status,e==="fulfilled"||e==="rejected"}function Lr(){}function Pf(e,t,n){switch(n=e[n],n===void 0?e.push(t):n!==t&&(t.then(Lr,Lr),t=n),t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,e===Ni?Error(c(483)):e;default:if(typeof t.status=="string")t.then(Lr,Lr);else{if(e=We,e!==null&&100<e.shellSuspendCounter)throw Error(c(482));e=t,e.status="pending",e.then(function(l){if(t.status==="pending"){var r=t;r.status="fulfilled",r.value=l}},function(l){if(t.status==="pending"){var r=t;r.status="rejected",r.reason=l}})}switch(t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,e===Ni?Error(c(483)):e}throw Ci=t,Ni}}var Ci=null;function Wf(){if(Ci===null)throw Error(c(459));var e=Ci;return Ci=null,e}var ql=null,ji=0;function Ur(e){var t=ji;return ji+=1,ql===null&&(ql=[]),Pf(ql,e,t)}function Oi(e,t){t=t.props.ref,e.ref=t!==void 0?t:null}function Hr(e,t){throw t.$$typeof===f?Error(c(525)):(e=Object.prototype.toString.call(t),Error(c(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e)))}function If(e){var t=e._init;return t(e._payload)}function ed(e){function t(D,j){if(e){var M=D.deletions;M===null?(D.deletions=[j],D.flags|=16):M.push(j)}}function n(D,j){if(!e)return null;for(;j!==null;)t(D,j),j=j.sibling;return null}function l(D){for(var j=new Map;D!==null;)D.key!==null?j.set(D.key,D):j.set(D.index,D),D=D.sibling;return j}function r(D,j){return D=qa(D,j),D.index=0,D.sibling=null,D}function s(D,j,M){return D.index=M,e?(M=D.alternate,M!==null?(M=M.index,M<j?(D.flags|=33554434,j):M):(D.flags|=33554434,j)):(D.flags|=1048576,j)}function d(D){return e&&D.alternate===null&&(D.flags|=33554434),D}function E(D,j,M,Y){return j===null||j.tag!==6?(j=ms(M,D.mode,Y),j.return=D,j):(j=r(j,M),j.return=D,j)}function S(D,j,M,Y){var re=M.type;return re===p?q(D,j,M.props.children,Y,M.key):j!==null&&(j.elementType===re||typeof re=="object"&&re!==null&&re.$$typeof===Z&&If(re)===j.type)?(j=r(j,M.props),Oi(j,M),j.return=D,j):(j=tu(M.type,M.key,M.props,null,D.mode,Y),Oi(j,M),j.return=D,j)}function O(D,j,M,Y){return j===null||j.tag!==4||j.stateNode.containerInfo!==M.containerInfo||j.stateNode.implementation!==M.implementation?(j=ys(M,D.mode,Y),j.return=D,j):(j=r(j,M.children||[]),j.return=D,j)}function q(D,j,M,Y,re){return j===null||j.tag!==7?(j=pl(M,D.mode,Y,re),j.return=D,j):(j=r(j,M),j.return=D,j)}function G(D,j,M){if(typeof j=="string"&&j!==""||typeof j=="number"||typeof j=="bigint")return j=ms(""+j,D.mode,M),j.return=D,j;if(typeof j=="object"&&j!==null){switch(j.$$typeof){case h:return M=tu(j.type,j.key,j.props,null,D.mode,M),Oi(M,j),M.return=D,M;case y:return j=ys(j,D.mode,M),j.return=D,j;case Z:var Y=j._init;return j=Y(j._payload),G(D,j,M)}if(W(j)||P(j))return j=pl(j,D.mode,M,null),j.return=D,j;if(typeof j.then=="function")return G(D,Ur(j),M);if(j.$$typeof===R)return G(D,Wr(D,j),M);Hr(D,j)}return null}function L(D,j,M,Y){var re=j!==null?j.key:null;if(typeof M=="string"&&M!==""||typeof M=="number"||typeof M=="bigint")return re!==null?null:E(D,j,""+M,Y);if(typeof M=="object"&&M!==null){switch(M.$$typeof){case h:return M.key===re?S(D,j,M,Y):null;case y:return M.key===re?O(D,j,M,Y):null;case Z:return re=M._init,M=re(M._payload),L(D,j,M,Y)}if(W(M)||P(M))return re!==null?null:q(D,j,M,Y,null);if(typeof M.then=="function")return L(D,j,Ur(M),Y);if(M.$$typeof===R)return L(D,j,Wr(D,M),Y);Hr(D,M)}return null}function B(D,j,M,Y,re){if(typeof Y=="string"&&Y!==""||typeof Y=="number"||typeof Y=="bigint")return D=D.get(M)||null,E(j,D,""+Y,re);if(typeof Y=="object"&&Y!==null){switch(Y.$$typeof){case h:return D=D.get(Y.key===null?M:Y.key)||null,S(j,D,Y,re);case y:return D=D.get(Y.key===null?M:Y.key)||null,O(j,D,Y,re);case Z:var Ae=Y._init;return Y=Ae(Y._payload),B(D,j,M,Y,re)}if(W(Y)||P(Y))return D=D.get(M)||null,q(j,D,Y,re,null);if(typeof Y.then=="function")return B(D,j,M,Ur(Y),re);if(Y.$$typeof===R)return B(D,j,M,Wr(j,Y),re);Hr(j,Y)}return null}function oe(D,j,M,Y){for(var re=null,Ae=null,he=j,Ee=j=0,Dt=null;he!==null&&Ee<M.length;Ee++){he.index>Ee?(Dt=he,he=null):Dt=he.sibling;var ke=L(D,he,M[Ee],Y);if(ke===null){he===null&&(he=Dt);break}e&&he&&ke.alternate===null&&t(D,he),j=s(ke,j,Ee),Ae===null?re=ke:Ae.sibling=ke,Ae=ke,he=Dt}if(Ee===M.length)return n(D,he),qe&&il(D,Ee),re;if(he===null){for(;Ee<M.length;Ee++)he=G(D,M[Ee],Y),he!==null&&(j=s(he,j,Ee),Ae===null?re=he:Ae.sibling=he,Ae=he);return qe&&il(D,Ee),re}for(he=l(he);Ee<M.length;Ee++)Dt=B(he,D,Ee,M[Ee],Y),Dt!==null&&(e&&Dt.alternate!==null&&he.delete(Dt.key===null?Ee:Dt.key),j=s(Dt,j,Ee),Ae===null?re=Dt:Ae.sibling=Dt,Ae=Dt);return e&&he.forEach(function(Za){return t(D,Za)}),qe&&il(D,Ee),re}function Re(D,j,M,Y){if(M==null)throw Error(c(151));for(var re=null,Ae=null,he=j,Ee=j=0,Dt=null,ke=M.next();he!==null&&!ke.done;Ee++,ke=M.next()){he.index>Ee?(Dt=he,he=null):Dt=he.sibling;var Za=L(D,he,ke.value,Y);if(Za===null){he===null&&(he=Dt);break}e&&he&&Za.alternate===null&&t(D,he),j=s(Za,j,Ee),Ae===null?re=Za:Ae.sibling=Za,Ae=Za,he=Dt}if(ke.done)return n(D,he),qe&&il(D,Ee),re;if(he===null){for(;!ke.done;Ee++,ke=M.next())ke=G(D,ke.value,Y),ke!==null&&(j=s(ke,j,Ee),Ae===null?re=ke:Ae.sibling=ke,Ae=ke);return qe&&il(D,Ee),re}for(he=l(he);!ke.done;Ee++,ke=M.next())ke=B(he,D,Ee,ke.value,Y),ke!==null&&(e&&ke.alternate!==null&&he.delete(ke.key===null?Ee:ke.key),j=s(ke,j,Ee),Ae===null?re=ke:Ae.sibling=ke,Ae=ke);return e&&he.forEach(function(Xg){return t(D,Xg)}),qe&&il(D,Ee),re}function dt(D,j,M,Y){if(typeof M=="object"&&M!==null&&M.type===p&&M.key===null&&(M=M.props.children),typeof M=="object"&&M!==null){switch(M.$$typeof){case h:e:{for(var re=M.key;j!==null;){if(j.key===re){if(re=M.type,re===p){if(j.tag===7){n(D,j.sibling),Y=r(j,M.props.children),Y.return=D,D=Y;break e}}else if(j.elementType===re||typeof re=="object"&&re!==null&&re.$$typeof===Z&&If(re)===j.type){n(D,j.sibling),Y=r(j,M.props),Oi(Y,M),Y.return=D,D=Y;break e}n(D,j);break}else t(D,j);j=j.sibling}M.type===p?(Y=pl(M.props.children,D.mode,Y,M.key),Y.return=D,D=Y):(Y=tu(M.type,M.key,M.props,null,D.mode,Y),Oi(Y,M),Y.return=D,D=Y)}return d(D);case y:e:{for(re=M.key;j!==null;){if(j.key===re)if(j.tag===4&&j.stateNode.containerInfo===M.containerInfo&&j.stateNode.implementation===M.implementation){n(D,j.sibling),Y=r(j,M.children||[]),Y.return=D,D=Y;break e}else{n(D,j);break}else t(D,j);j=j.sibling}Y=ys(M,D.mode,Y),Y.return=D,D=Y}return d(D);case Z:return re=M._init,M=re(M._payload),dt(D,j,M,Y)}if(W(M))return oe(D,j,M,Y);if(P(M)){if(re=P(M),typeof re!="function")throw Error(c(150));return M=re.call(M),Re(D,j,M,Y)}if(typeof M.then=="function")return dt(D,j,Ur(M),Y);if(M.$$typeof===R)return dt(D,j,Wr(D,M),Y);Hr(D,M)}return typeof M=="string"&&M!==""||typeof M=="number"||typeof M=="bigint"?(M=""+M,j!==null&&j.tag===6?(n(D,j.sibling),Y=r(j,M),Y.return=D,D=Y):(n(D,j),Y=ms(M,D.mode,Y),Y.return=D,D=Y),d(D)):n(D,j)}return function(D,j,M,Y){try{ji=0;var re=dt(D,j,M,Y);return ql=null,re}catch(he){if(he===Ni)throw he;var Ae=Tn(29,he,null,D.mode);return Ae.lanes=Y,Ae.return=D,Ae}finally{}}}var ul=ed(!0),td=ed(!1),kl=Ce(null),Br=Ce(0);function nd(e,t){e=va,Te(Br,e),Te(kl,t),va=e|t.baseLanes}function Sc(){Te(Br,va),Te(kl,kl.current)}function xc(){va=Br.current,xe(kl),xe(Br)}var xn=Ce(null),Xn=null;function ja(e){var t=e.alternate;Te(xt,xt.current&1),Te(xn,e),Xn===null&&(t===null||kl.current!==null||t.memoizedState!==null)&&(Xn=e)}function ad(e){if(e.tag===22){if(Te(xt,xt.current),Te(xn,e),Xn===null){var t=e.alternate;t!==null&&t.memoizedState!==null&&(Xn=e)}}else Oa()}function Oa(){Te(xt,xt.current),Te(xn,xn.current)}function ua(e){xe(xn),Xn===e&&(Xn=null),xe(xt)}var xt=Ce(0);function qr(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||n.data==="$?"||n.data==="$!"))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if(t.flags&128)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var Av=typeof AbortController<"u"?AbortController:function(){var e=[],t=this.signal={aborted:!1,addEventListener:function(n,l){e.push(l)}};this.abort=function(){t.aborted=!0,e.forEach(function(n){return n()})}},wv=a.unstable_scheduleCallback,Mv=a.unstable_NormalPriority,_t={$$typeof:R,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function _c(){return{controller:new Av,data:new Map,refCount:0}}function Di(e){e.refCount--,e.refCount===0&&wv(Mv,function(){e.controller.abort()})}var Ai=null,Rc=0,Vl=0,Yl=null;function zv(e,t){if(Ai===null){var n=Ai=[];Rc=0,Vl=Ds(),Yl={status:"pending",value:void 0,then:function(l){n.push(l)}}}return Rc++,t.then(ld,ld),t}function ld(){if(--Rc===0&&Ai!==null){Yl!==null&&(Yl.status="fulfilled");var e=Ai;Ai=null,Vl=0,Yl=null;for(var t=0;t<e.length;t++)(0,e[t])()}}function Lv(e,t){var n=[],l={status:"pending",value:null,reason:null,then:function(r){n.push(r)}};return e.then(function(){l.status="fulfilled",l.value=t;for(var r=0;r<n.length;r++)(0,n[r])(t)},function(r){for(l.status="rejected",l.reason=r,r=0;r<n.length;r++)(0,n[r])(void 0)}),l}var id=$.S;$.S=function(e,t){typeof t=="object"&&t!==null&&typeof t.then=="function"&&zv(e,t),id!==null&&id(e,t)};var cl=Ce(null);function Tc(){var e=cl.current;return e!==null?e:We.pooledCache}function kr(e,t){t===null?Te(cl,cl.current):Te(cl,t.pool)}function rd(){var e=Tc();return e===null?null:{parent:_t._currentValue,pool:e}}var Da=0,De=null,Xe=null,vt=null,Vr=!1,Gl=!1,sl=!1,Yr=0,wi=0,Xl=null,Uv=0;function yt(){throw Error(c(321))}function Nc(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!an(e[n],t[n]))return!1;return!0}function Cc(e,t,n,l,r,s){return Da=s,De=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,$.H=e===null||e.memoizedState===null?ol:Aa,sl=!1,s=n(l,r),sl=!1,Gl&&(s=cd(t,n,l,r)),ud(e),s}function ud(e){$.H=Qn;var t=Xe!==null&&Xe.next!==null;if(Da=0,vt=Xe=De=null,Vr=!1,wi=0,Xl=null,t)throw Error(c(300));e===null||jt||(e=e.dependencies,e!==null&&Pr(e)&&(jt=!0))}function cd(e,t,n,l){De=e;var r=0;do{if(Gl&&(Xl=null),wi=0,Gl=!1,25<=r)throw Error(c(301));if(r+=1,vt=Xe=null,e.updateQueue!=null){var s=e.updateQueue;s.lastEffect=null,s.events=null,s.stores=null,s.memoCache!=null&&(s.memoCache.index=0)}$.H=fl,s=t(n,l)}while(Gl);return s}function Hv(){var e=$.H,t=e.useState()[0];return t=typeof t.then=="function"?Mi(t):t,e=e.useState()[0],(Xe!==null?Xe.memoizedState:null)!==e&&(De.flags|=1024),t}function jc(){var e=Yr!==0;return Yr=0,e}function Oc(e,t,n){t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~n}function Dc(e){if(Vr){for(e=e.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}Vr=!1}Da=0,vt=Xe=De=null,Gl=!1,wi=Yr=0,Xl=null}function It(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return vt===null?De.memoizedState=vt=e:vt=vt.next=e,vt}function gt(){if(Xe===null){var e=De.alternate;e=e!==null?e.memoizedState:null}else e=Xe.next;var t=vt===null?De.memoizedState:vt.next;if(t!==null)vt=t,Xe=e;else{if(e===null)throw De.alternate===null?Error(c(467)):Error(c(310));Xe=e,e={memoizedState:Xe.memoizedState,baseState:Xe.baseState,baseQueue:Xe.baseQueue,queue:Xe.queue,next:null},vt===null?De.memoizedState=vt=e:vt=vt.next=e}return vt}var Gr;Gr=function(){return{lastEffect:null,events:null,stores:null,memoCache:null}};function Mi(e){var t=wi;return wi+=1,Xl===null&&(Xl=[]),e=Pf(Xl,e,t),t=De,(vt===null?t.memoizedState:vt.next)===null&&(t=t.alternate,$.H=t===null||t.memoizedState===null?ol:Aa),e}function Xr(e){if(e!==null&&typeof e=="object"){if(typeof e.then=="function")return Mi(e);if(e.$$typeof===R)return Yt(e)}throw Error(c(438,String(e)))}function Ac(e){var t=null,n=De.updateQueue;if(n!==null&&(t=n.memoCache),t==null){var l=De.alternate;l!==null&&(l=l.updateQueue,l!==null&&(l=l.memoCache,l!=null&&(t={data:l.data.map(function(r){return r.slice()}),index:0})))}if(t==null&&(t={data:[],index:0}),n===null&&(n=Gr(),De.updateQueue=n),n.memoCache=t,n=t.data[t.index],n===void 0)for(n=t.data[t.index]=Array(e),l=0;l<e;l++)n[l]=ee;return t.index++,n}function ca(e,t){return typeof t=="function"?t(e):t}function Qr(e){var t=gt();return wc(t,Xe,e)}function wc(e,t,n){var l=e.queue;if(l===null)throw Error(c(311));l.lastRenderedReducer=n;var r=e.baseQueue,s=l.pending;if(s!==null){if(r!==null){var d=r.next;r.next=s.next,s.next=d}t.baseQueue=r=s,l.pending=null}if(s=e.baseState,r===null)e.memoizedState=s;else{t=r.next;var E=d=null,S=null,O=t,q=!1;do{var G=O.lane&-536870913;if(G!==O.lane?(Be&G)===G:(Da&G)===G){var L=O.revertLane;if(L===0)S!==null&&(S=S.next={lane:0,revertLane:0,action:O.action,hasEagerState:O.hasEagerState,eagerState:O.eagerState,next:null}),G===Vl&&(q=!0);else if((Da&L)===L){O=O.next,L===Vl&&(q=!0);continue}else G={lane:0,revertLane:O.revertLane,action:O.action,hasEagerState:O.hasEagerState,eagerState:O.eagerState,next:null},S===null?(E=S=G,d=s):S=S.next=G,De.lanes|=L,ka|=L;G=O.action,sl&&n(s,G),s=O.hasEagerState?O.eagerState:n(s,G)}else L={lane:G,revertLane:O.revertLane,action:O.action,hasEagerState:O.hasEagerState,eagerState:O.eagerState,next:null},S===null?(E=S=L,d=s):S=S.next=L,De.lanes|=G,ka|=G;O=O.next}while(O!==null&&O!==t);if(S===null?d=s:S.next=E,!an(s,e.memoizedState)&&(jt=!0,q&&(n=Yl,n!==null)))throw n;e.memoizedState=s,e.baseState=d,e.baseQueue=S,l.lastRenderedState=s}return r===null&&(l.lanes=0),[e.memoizedState,l.dispatch]}function Mc(e){var t=gt(),n=t.queue;if(n===null)throw Error(c(311));n.lastRenderedReducer=e;var l=n.dispatch,r=n.pending,s=t.memoizedState;if(r!==null){n.pending=null;var d=r=r.next;do s=e(s,d.action),d=d.next;while(d!==r);an(s,t.memoizedState)||(jt=!0),t.memoizedState=s,t.baseQueue===null&&(t.baseState=s),n.lastRenderedState=s}return[s,l]}function sd(e,t,n){var l=De,r=gt(),s=qe;if(s){if(n===void 0)throw Error(c(407));n=n()}else n=t();var d=!an((Xe||r).memoizedState,n);if(d&&(r.memoizedState=n,jt=!0),r=r.queue,Uc(dd.bind(null,l,r,e),[e]),r.getSnapshot!==t||d||vt!==null&&vt.memoizedState.tag&1){if(l.flags|=2048,Ql(9,fd.bind(null,l,r,n,t),{destroy:void 0},null),We===null)throw Error(c(349));s||Da&60||od(l,t,n)}return n}function od(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=De.updateQueue,t===null?(t=Gr(),De.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function fd(e,t,n,l){t.value=n,t.getSnapshot=l,hd(t)&&md(e)}function dd(e,t,n){return n(function(){hd(t)&&md(e)})}function hd(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!an(e,n)}catch{return!0}}function md(e){var t=Ca(e,2);t!==null&&Kt(t,e,2)}function zc(e){var t=It();if(typeof e=="function"){var n=e;if(e=n(),sl){Nt(!0);try{n()}finally{Nt(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:ca,lastRenderedState:e},t}function yd(e,t,n,l){return e.baseState=n,wc(e,Xe,typeof l=="function"?l:ca)}function Bv(e,t,n,l,r){if($r(e))throw Error(c(485));if(e=t.action,e!==null){var s={payload:r,action:e,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(d){s.listeners.push(d)}};$.T!==null?n(!0):s.isTransition=!1,l(s),n=t.pending,n===null?(s.next=t.pending=s,pd(t,s)):(s.next=n.next,t.pending=n.next=s)}}function pd(e,t){var n=t.action,l=t.payload,r=e.state;if(t.isTransition){var s=$.T,d={};$.T=d;try{var E=n(r,l),S=$.S;S!==null&&S(d,E),vd(e,t,E)}catch(O){Lc(e,t,O)}finally{$.T=s}}else try{s=n(r,l),vd(e,t,s)}catch(O){Lc(e,t,O)}}function vd(e,t,n){n!==null&&typeof n=="object"&&typeof n.then=="function"?n.then(function(l){gd(e,t,l)},function(l){return Lc(e,t,l)}):gd(e,t,n)}function gd(e,t,n){t.status="fulfilled",t.value=n,Ed(t),e.state=n,t=e.pending,t!==null&&(n=t.next,n===t?e.pending=null:(n=n.next,t.next=n,pd(e,n)))}function Lc(e,t,n){var l=e.pending;if(e.pending=null,l!==null){l=l.next;do t.status="rejected",t.reason=n,Ed(t),t=t.next;while(t!==l)}e.action=null}function Ed(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function bd(e,t){return t}function Sd(e,t){if(qe){var n=We.formState;if(n!==null){e:{var l=De;if(qe){if(Lt){t:{for(var r=Lt,s=Gn;r.nodeType!==8;){if(!s){r=null;break t}if(r=Hn(r.nextSibling),r===null){r=null;break t}}s=r.data,r=s==="F!"||s==="F"?r:null}if(r){Lt=Hn(r.nextSibling),l=r.data==="F!";break e}}rl(l)}l=!1}l&&(t=n[0])}}return n=It(),n.memoizedState=n.baseState=t,l={pending:null,lanes:0,dispatch:null,lastRenderedReducer:bd,lastRenderedState:t},n.queue=l,n=qd.bind(null,De,l),l.dispatch=n,l=zc(!1),s=Vc.bind(null,De,!1,l.queue),l=It(),r={state:t,dispatch:null,action:e,pending:null},l.queue=r,n=Bv.bind(null,De,r,s,n),r.dispatch=n,l.memoizedState=e,[t,n,!1]}function xd(e){var t=gt();return _d(t,Xe,e)}function _d(e,t,n){t=wc(e,t,bd)[0],e=Qr(ca)[0],t=typeof t=="object"&&t!==null&&typeof t.then=="function"?Mi(t):t;var l=gt(),r=l.queue,s=r.dispatch;return n!==l.memoizedState&&(De.flags|=2048,Ql(9,qv.bind(null,r,n),{destroy:void 0},null)),[t,s,e]}function qv(e,t){e.action=t}function Rd(e){var t=gt(),n=Xe;if(n!==null)return _d(t,n,e);gt(),t=t.memoizedState,n=gt();var l=n.queue.dispatch;return n.memoizedState=e,[t,l,!1]}function Ql(e,t,n,l){return e={tag:e,create:t,inst:n,deps:l,next:null},t=De.updateQueue,t===null&&(t=Gr(),De.updateQueue=t),n=t.lastEffect,n===null?t.lastEffect=e.next=e:(l=n.next,n.next=e,e.next=l,t.lastEffect=e),e}function Td(){return gt().memoizedState}function Zr(e,t,n,l){var r=It();De.flags|=e,r.memoizedState=Ql(1|t,n,{destroy:void 0},l===void 0?null:l)}function Kr(e,t,n,l){var r=gt();l=l===void 0?null:l;var s=r.memoizedState.inst;Xe!==null&&l!==null&&Nc(l,Xe.memoizedState.deps)?r.memoizedState=Ql(t,n,s,l):(De.flags|=e,r.memoizedState=Ql(1|t,n,s,l))}function Nd(e,t){Zr(8390656,8,e,t)}function Uc(e,t){Kr(2048,8,e,t)}function Cd(e,t){return Kr(4,2,e,t)}function jd(e,t){return Kr(4,4,e,t)}function Od(e,t){if(typeof t=="function"){e=e();var n=t(e);return function(){typeof n=="function"?n():t(null)}}if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function Dd(e,t,n){n=n!=null?n.concat([e]):null,Kr(4,4,Od.bind(null,t,e),n)}function Hc(){}function Ad(e,t){var n=gt();t=t===void 0?null:t;var l=n.memoizedState;return t!==null&&Nc(t,l[1])?l[0]:(n.memoizedState=[e,t],e)}function wd(e,t){var n=gt();t=t===void 0?null:t;var l=n.memoizedState;if(t!==null&&Nc(t,l[1]))return l[0];if(l=e(),sl){Nt(!0);try{e()}finally{Nt(!1)}}return n.memoizedState=[l,t],l}function Bc(e,t,n){return n===void 0||Da&1073741824?e.memoizedState=t:(e.memoizedState=n,e=zh(),De.lanes|=e,ka|=e,n)}function Md(e,t,n,l){return an(n,t)?n:kl.current!==null?(e=Bc(e,n,l),an(e,t)||(jt=!0),e):Da&42?(e=zh(),De.lanes|=e,ka|=e,t):(jt=!0,e.memoizedState=n)}function zd(e,t,n,l,r){var s=J.p;J.p=s!==0&&8>s?s:8;var d=$.T,E={};$.T=E,Vc(e,!1,t,n);try{var S=r(),O=$.S;if(O!==null&&O(E,S),S!==null&&typeof S=="object"&&typeof S.then=="function"){var q=Lv(S,l);zi(e,t,q,cn(e))}else zi(e,t,l,cn(e))}catch(G){zi(e,t,{then:function(){},status:"rejected",reason:G},cn())}finally{J.p=s,$.T=d}}function kv(){}function qc(e,t,n,l){if(e.tag!==5)throw Error(c(476));var r=Ld(e).queue;zd(e,r,t,ye,n===null?kv:function(){return Ud(e),n(l)})}function Ld(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:ye,baseState:ye,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:ca,lastRenderedState:ye},next:null};var n={};return t.next={memoizedState:n,baseState:n,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:ca,lastRenderedState:n},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function Ud(e){var t=Ld(e).next.queue;zi(e,t,{},cn())}function kc(){return Yt(er)}function Hd(){return gt().memoizedState}function Bd(){return gt().memoizedState}function Vv(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var n=cn();e=za(n);var l=La(t,e,n);l!==null&&(Kt(l,t,n),Hi(l,t,n)),t={cache:_c()},e.payload=t;return}t=t.return}}function Yv(e,t,n){var l=cn();n={lane:l,revertLane:0,action:n,hasEagerState:!1,eagerState:null,next:null},$r(e)?kd(t,n):(n=pc(e,t,n,l),n!==null&&(Kt(n,e,l),Vd(n,t,l)))}function qd(e,t,n){var l=cn();zi(e,t,n,l)}function zi(e,t,n,l){var r={lane:l,revertLane:0,action:n,hasEagerState:!1,eagerState:null,next:null};if($r(e))kd(t,r);else{var s=e.alternate;if(e.lanes===0&&(s===null||s.lanes===0)&&(s=t.lastRenderedReducer,s!==null))try{var d=t.lastRenderedState,E=s(d,n);if(r.hasEagerState=!0,r.eagerState=E,an(E,d))return Ar(e,t,r,0),We===null&&Dr(),!1}catch{}finally{}if(n=pc(e,t,r,l),n!==null)return Kt(n,e,l),Vd(n,t,l),!0}return!1}function Vc(e,t,n,l){if(l={lane:2,revertLane:Ds(),action:l,hasEagerState:!1,eagerState:null,next:null},$r(e)){if(t)throw Error(c(479))}else t=pc(e,n,l,2),t!==null&&Kt(t,e,2)}function $r(e){var t=e.alternate;return e===De||t!==null&&t===De}function kd(e,t){Gl=Vr=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function Vd(e,t,n){if(n&4194176){var l=t.lanes;l&=e.pendingLanes,n|=l,t.lanes=n,Se(e,n)}}var Qn={readContext:Yt,use:Xr,useCallback:yt,useContext:yt,useEffect:yt,useImperativeHandle:yt,useLayoutEffect:yt,useInsertionEffect:yt,useMemo:yt,useReducer:yt,useRef:yt,useState:yt,useDebugValue:yt,useDeferredValue:yt,useTransition:yt,useSyncExternalStore:yt,useId:yt};Qn.useCacheRefresh=yt,Qn.useMemoCache=yt,Qn.useHostTransitionStatus=yt,Qn.useFormState=yt,Qn.useActionState=yt,Qn.useOptimistic=yt;var ol={readContext:Yt,use:Xr,useCallback:function(e,t){return It().memoizedState=[e,t===void 0?null:t],e},useContext:Yt,useEffect:Nd,useImperativeHandle:function(e,t,n){n=n!=null?n.concat([e]):null,Zr(4194308,4,Od.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Zr(4194308,4,e,t)},useInsertionEffect:function(e,t){Zr(4,2,e,t)},useMemo:function(e,t){var n=It();t=t===void 0?null:t;var l=e();if(sl){Nt(!0);try{e()}finally{Nt(!1)}}return n.memoizedState=[l,t],l},useReducer:function(e,t,n){var l=It();if(n!==void 0){var r=n(t);if(sl){Nt(!0);try{n(t)}finally{Nt(!1)}}}else r=t;return l.memoizedState=l.baseState=r,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:r},l.queue=e,e=e.dispatch=Yv.bind(null,De,e),[l.memoizedState,e]},useRef:function(e){var t=It();return e={current:e},t.memoizedState=e},useState:function(e){e=zc(e);var t=e.queue,n=qd.bind(null,De,t);return t.dispatch=n,[e.memoizedState,n]},useDebugValue:Hc,useDeferredValue:function(e,t){var n=It();return Bc(n,e,t)},useTransition:function(){var e=zc(!1);return e=zd.bind(null,De,e.queue,!0,!1),It().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,n){var l=De,r=It();if(qe){if(n===void 0)throw Error(c(407));n=n()}else{if(n=t(),We===null)throw Error(c(349));Be&60||od(l,t,n)}r.memoizedState=n;var s={value:n,getSnapshot:t};return r.queue=s,Nd(dd.bind(null,l,s,e),[e]),l.flags|=2048,Ql(9,fd.bind(null,l,s,n,t),{destroy:void 0},null),n},useId:function(){var e=It(),t=We.identifierPrefix;if(qe){var n=ra,l=ia;n=(l&~(1<<32-ht(l)-1)).toString(32)+n,t=":"+t+"R"+n,n=Yr++,0<n&&(t+="H"+n.toString(32)),t+=":"}else n=Uv++,t=":"+t+"r"+n.toString(32)+":";return e.memoizedState=t},useCacheRefresh:function(){return It().memoizedState=Vv.bind(null,De)}};ol.useMemoCache=Ac,ol.useHostTransitionStatus=kc,ol.useFormState=Sd,ol.useActionState=Sd,ol.useOptimistic=function(e){var t=It();t.memoizedState=t.baseState=e;var n={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=n,t=Vc.bind(null,De,!0,n),n.dispatch=t,[e,t]};var Aa={readContext:Yt,use:Xr,useCallback:Ad,useContext:Yt,useEffect:Uc,useImperativeHandle:Dd,useInsertionEffect:Cd,useLayoutEffect:jd,useMemo:wd,useReducer:Qr,useRef:Td,useState:function(){return Qr(ca)},useDebugValue:Hc,useDeferredValue:function(e,t){var n=gt();return Md(n,Xe.memoizedState,e,t)},useTransition:function(){var e=Qr(ca)[0],t=gt().memoizedState;return[typeof e=="boolean"?e:Mi(e),t]},useSyncExternalStore:sd,useId:Hd};Aa.useCacheRefresh=Bd,Aa.useMemoCache=Ac,Aa.useHostTransitionStatus=kc,Aa.useFormState=xd,Aa.useActionState=xd,Aa.useOptimistic=function(e,t){var n=gt();return yd(n,Xe,e,t)};var fl={readContext:Yt,use:Xr,useCallback:Ad,useContext:Yt,useEffect:Uc,useImperativeHandle:Dd,useInsertionEffect:Cd,useLayoutEffect:jd,useMemo:wd,useReducer:Mc,useRef:Td,useState:function(){return Mc(ca)},useDebugValue:Hc,useDeferredValue:function(e,t){var n=gt();return Xe===null?Bc(n,e,t):Md(n,Xe.memoizedState,e,t)},useTransition:function(){var e=Mc(ca)[0],t=gt().memoizedState;return[typeof e=="boolean"?e:Mi(e),t]},useSyncExternalStore:sd,useId:Hd};fl.useCacheRefresh=Bd,fl.useMemoCache=Ac,fl.useHostTransitionStatus=kc,fl.useFormState=Rd,fl.useActionState=Rd,fl.useOptimistic=function(e,t){var n=gt();return Xe!==null?yd(n,Xe,e,t):(n.baseState=e,[e,n.queue.dispatch])};function Yc(e,t,n,l){t=e.memoizedState,n=n(l,t),n=n==null?t:ie({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var Gc={isMounted:function(e){return(e=e._reactInternals)?F(e)===e:!1},enqueueSetState:function(e,t,n){e=e._reactInternals;var l=cn(),r=za(l);r.payload=t,n!=null&&(r.callback=n),t=La(e,r,l),t!==null&&(Kt(t,e,l),Hi(t,e,l))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var l=cn(),r=za(l);r.tag=1,r.payload=t,n!=null&&(r.callback=n),t=La(e,r,l),t!==null&&(Kt(t,e,l),Hi(t,e,l))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=cn(),l=za(n);l.tag=2,t!=null&&(l.callback=t),t=La(e,l,n),t!==null&&(Kt(t,e,n),Hi(t,e,n))}};function Yd(e,t,n,l,r,s,d){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(l,s,d):t.prototype&&t.prototype.isPureReactComponent?!Si(n,l)||!Si(r,s):!0}function Gd(e,t,n,l){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(n,l),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(n,l),t.state!==e&&Gc.enqueueReplaceState(t,t.state,null)}function dl(e,t){var n=t;if("ref"in t){n={};for(var l in t)l!=="ref"&&(n[l]=t[l])}if(e=e.defaultProps){n===t&&(n=ie({},n));for(var r in e)n[r]===void 0&&(n[r]=e[r])}return n}var Jr=typeof reportError=="function"?reportError:function(e){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var t=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof e=="object"&&e!==null&&typeof e.message=="string"?String(e.message):String(e),error:e});if(!window.dispatchEvent(t))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",e);return}console.error(e)};function Xd(e){Jr(e)}function Qd(e){console.error(e)}function Zd(e){Jr(e)}function Fr(e,t){try{var n=e.onUncaughtError;n(t.value,{componentStack:t.stack})}catch(l){setTimeout(function(){throw l})}}function Kd(e,t,n){try{var l=e.onCaughtError;l(n.value,{componentStack:n.stack,errorBoundary:t.tag===1?t.stateNode:null})}catch(r){setTimeout(function(){throw r})}}function Xc(e,t,n){return n=za(n),n.tag=3,n.payload={element:null},n.callback=function(){Fr(e,t)},n}function $d(e){return e=za(e),e.tag=3,e}function Jd(e,t,n,l){var r=n.type.getDerivedStateFromError;if(typeof r=="function"){var s=l.value;e.payload=function(){return r(s)},e.callback=function(){Kd(t,n,l)}}var d=n.stateNode;d!==null&&typeof d.componentDidCatch=="function"&&(e.callback=function(){Kd(t,n,l),typeof r!="function"&&(Va===null?Va=new Set([this]):Va.add(this));var E=l.stack;this.componentDidCatch(l.value,{componentStack:E!==null?E:""})})}function Gv(e,t,n,l,r){if(n.flags|=32768,l!==null&&typeof l=="object"&&typeof l.then=="function"){if(t=n.alternate,t!==null&&Ui(t,n,r,!0),n=xn.current,n!==null){switch(n.tag){case 13:return Xn===null?Ts():n.alternate===null&&ft===0&&(ft=3),n.flags&=-257,n.flags|=65536,n.lanes=r,l===bc?n.flags|=16384:(t=n.updateQueue,t===null?n.updateQueue=new Set([l]):t.add(l),Cs(e,l,r)),!1;case 22:return n.flags|=65536,l===bc?n.flags|=16384:(t=n.updateQueue,t===null?(t={transitions:null,markerInstances:null,retryQueue:new Set([l])},n.updateQueue=t):(n=t.retryQueue,n===null?t.retryQueue=new Set([l]):n.add(l)),Cs(e,l,r)),!1}throw Error(c(435,n.tag))}return Cs(e,l,r),Ts(),!1}if(qe)return t=xn.current,t!==null?(!(t.flags&65536)&&(t.flags|=256),t.flags|=65536,t.lanes=r,l!==Ec&&(e=Error(c(422),{cause:l}),Ti(En(e,n)))):(l!==Ec&&(t=Error(c(423),{cause:l}),Ti(En(t,n))),e=e.current.alternate,e.flags|=65536,r&=-r,e.lanes|=r,l=En(l,n),r=Xc(e.stateNode,l,r),is(e,r),ft!==4&&(ft=2)),!1;var s=Error(c(520),{cause:l});if(s=En(s,n),Qi===null?Qi=[s]:Qi.push(s),ft!==4&&(ft=2),t===null)return!0;l=En(l,n),n=t;do{switch(n.tag){case 3:return n.flags|=65536,e=r&-r,n.lanes|=e,e=Xc(n.stateNode,l,e),is(n,e),!1;case 1:if(t=n.type,s=n.stateNode,(n.flags&128)===0&&(typeof t.getDerivedStateFromError=="function"||s!==null&&typeof s.componentDidCatch=="function"&&(Va===null||!Va.has(s))))return n.flags|=65536,r&=-r,n.lanes|=r,r=$d(r),Jd(r,e,n,l),is(n,r),!1}n=n.return}while(n!==null);return!1}var Fd=Error(c(461)),jt=!1;function Ut(e,t,n,l){t.child=e===null?td(t,null,n,l):ul(t,e.child,n,l)}function Pd(e,t,n,l,r){n=n.render;var s=t.ref;if("ref"in l){var d={};for(var E in l)E!=="ref"&&(d[E]=l[E])}else d=l;return ml(t),l=Cc(e,t,n,d,s,r),E=jc(),e!==null&&!jt?(Oc(e,t,r),sa(e,t,r)):(qe&&E&&vc(t),t.flags|=1,Ut(e,t,l,r),t.child)}function Wd(e,t,n,l,r){if(e===null){var s=n.type;return typeof s=="function"&&!hs(s)&&s.defaultProps===void 0&&n.compare===null?(t.tag=15,t.type=s,Id(e,t,s,l,r)):(e=tu(n.type,null,l,t,t.mode,r),e.ref=t.ref,e.return=t,t.child=e)}if(s=e.child,!Ic(e,r)){var d=s.memoizedProps;if(n=n.compare,n=n!==null?n:Si,n(d,l)&&e.ref===t.ref)return sa(e,t,r)}return t.flags|=1,e=qa(s,l),e.ref=t.ref,e.return=t,t.child=e}function Id(e,t,n,l,r){if(e!==null){var s=e.memoizedProps;if(Si(s,l)&&e.ref===t.ref)if(jt=!1,t.pendingProps=l=s,Ic(e,r))e.flags&131072&&(jt=!0);else return t.lanes=e.lanes,sa(e,t,r)}return Qc(e,t,n,l,r)}function eh(e,t,n){var l=t.pendingProps,r=l.children,s=(t.stateNode._pendingVisibility&2)!==0,d=e!==null?e.memoizedState:null;if(Li(e,t),l.mode==="hidden"||s){if(t.flags&128){if(l=d!==null?d.baseLanes|n:n,e!==null){for(r=t.child=e.child,s=0;r!==null;)s=s|r.lanes|r.childLanes,r=r.sibling;t.childLanes=s&~l}else t.childLanes=0,t.child=null;return th(e,t,l,n)}if(n&536870912)t.memoizedState={baseLanes:0,cachePool:null},e!==null&&kr(t,d!==null?d.cachePool:null),d!==null?nd(t,d):Sc(),ad(t);else return t.lanes=t.childLanes=536870912,th(e,t,d!==null?d.baseLanes|n:n,n)}else d!==null?(kr(t,d.cachePool),nd(t,d),Oa(),t.memoizedState=null):(e!==null&&kr(t,null),Sc(),Oa());return Ut(e,t,r,n),t.child}function th(e,t,n,l){var r=Tc();return r=r===null?null:{parent:_t._currentValue,pool:r},t.memoizedState={baseLanes:n,cachePool:r},e!==null&&kr(t,null),Sc(),ad(t),e!==null&&Ui(e,t,l,!0),null}function Li(e,t){var n=t.ref;if(n===null)e!==null&&e.ref!==null&&(t.flags|=2097664);else{if(typeof n!="function"&&typeof n!="object")throw Error(c(284));(e===null||e.ref!==n)&&(t.flags|=2097664)}}function Qc(e,t,n,l,r){return ml(t),n=Cc(e,t,n,l,void 0,r),l=jc(),e!==null&&!jt?(Oc(e,t,r),sa(e,t,r)):(qe&&l&&vc(t),t.flags|=1,Ut(e,t,n,r),t.child)}function nh(e,t,n,l,r,s){return ml(t),t.updateQueue=null,n=cd(t,l,n,r),ud(e),l=jc(),e!==null&&!jt?(Oc(e,t,s),sa(e,t,s)):(qe&&l&&vc(t),t.flags|=1,Ut(e,t,n,s),t.child)}function ah(e,t,n,l,r){if(ml(t),t.stateNode===null){var s=Ul,d=n.contextType;typeof d=="object"&&d!==null&&(s=Yt(d)),s=new n(l,s),t.memoizedState=s.state!==null&&s.state!==void 0?s.state:null,s.updater=Gc,t.stateNode=s,s._reactInternals=t,s=t.stateNode,s.props=l,s.state=t.memoizedState,s.refs={},as(t),d=n.contextType,s.context=typeof d=="object"&&d!==null?Yt(d):Ul,s.state=t.memoizedState,d=n.getDerivedStateFromProps,typeof d=="function"&&(Yc(t,n,d,l),s.state=t.memoizedState),typeof n.getDerivedStateFromProps=="function"||typeof s.getSnapshotBeforeUpdate=="function"||typeof s.UNSAFE_componentWillMount!="function"&&typeof s.componentWillMount!="function"||(d=s.state,typeof s.componentWillMount=="function"&&s.componentWillMount(),typeof s.UNSAFE_componentWillMount=="function"&&s.UNSAFE_componentWillMount(),d!==s.state&&Gc.enqueueReplaceState(s,s.state,null),qi(t,l,s,r),Bi(),s.state=t.memoizedState),typeof s.componentDidMount=="function"&&(t.flags|=4194308),l=!0}else if(e===null){s=t.stateNode;var E=t.memoizedProps,S=dl(n,E);s.props=S;var O=s.context,q=n.contextType;d=Ul,typeof q=="object"&&q!==null&&(d=Yt(q));var G=n.getDerivedStateFromProps;q=typeof G=="function"||typeof s.getSnapshotBeforeUpdate=="function",E=t.pendingProps!==E,q||typeof s.UNSAFE_componentWillReceiveProps!="function"&&typeof s.componentWillReceiveProps!="function"||(E||O!==d)&&Gd(t,s,l,d),Ma=!1;var L=t.memoizedState;s.state=L,qi(t,l,s,r),Bi(),O=t.memoizedState,E||L!==O||Ma?(typeof G=="function"&&(Yc(t,n,G,l),O=t.memoizedState),(S=Ma||Yd(t,n,S,l,L,O,d))?(q||typeof s.UNSAFE_componentWillMount!="function"&&typeof s.componentWillMount!="function"||(typeof s.componentWillMount=="function"&&s.componentWillMount(),typeof s.UNSAFE_componentWillMount=="function"&&s.UNSAFE_componentWillMount()),typeof s.componentDidMount=="function"&&(t.flags|=4194308)):(typeof s.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=l,t.memoizedState=O),s.props=l,s.state=O,s.context=d,l=S):(typeof s.componentDidMount=="function"&&(t.flags|=4194308),l=!1)}else{s=t.stateNode,ls(e,t),d=t.memoizedProps,q=dl(n,d),s.props=q,G=t.pendingProps,L=s.context,O=n.contextType,S=Ul,typeof O=="object"&&O!==null&&(S=Yt(O)),E=n.getDerivedStateFromProps,(O=typeof E=="function"||typeof s.getSnapshotBeforeUpdate=="function")||typeof s.UNSAFE_componentWillReceiveProps!="function"&&typeof s.componentWillReceiveProps!="function"||(d!==G||L!==S)&&Gd(t,s,l,S),Ma=!1,L=t.memoizedState,s.state=L,qi(t,l,s,r),Bi();var B=t.memoizedState;d!==G||L!==B||Ma||e!==null&&e.dependencies!==null&&Pr(e.dependencies)?(typeof E=="function"&&(Yc(t,n,E,l),B=t.memoizedState),(q=Ma||Yd(t,n,q,l,L,B,S)||e!==null&&e.dependencies!==null&&Pr(e.dependencies))?(O||typeof s.UNSAFE_componentWillUpdate!="function"&&typeof s.componentWillUpdate!="function"||(typeof s.componentWillUpdate=="function"&&s.componentWillUpdate(l,B,S),typeof s.UNSAFE_componentWillUpdate=="function"&&s.UNSAFE_componentWillUpdate(l,B,S)),typeof s.componentDidUpdate=="function"&&(t.flags|=4),typeof s.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof s.componentDidUpdate!="function"||d===e.memoizedProps&&L===e.memoizedState||(t.flags|=4),typeof s.getSnapshotBeforeUpdate!="function"||d===e.memoizedProps&&L===e.memoizedState||(t.flags|=1024),t.memoizedProps=l,t.memoizedState=B),s.props=l,s.state=B,s.context=S,l=q):(typeof s.componentDidUpdate!="function"||d===e.memoizedProps&&L===e.memoizedState||(t.flags|=4),typeof s.getSnapshotBeforeUpdate!="function"||d===e.memoizedProps&&L===e.memoizedState||(t.flags|=1024),l=!1)}return s=l,Li(e,t),l=(t.flags&128)!==0,s||l?(s=t.stateNode,n=l&&typeof n.getDerivedStateFromError!="function"?null:s.render(),t.flags|=1,e!==null&&l?(t.child=ul(t,e.child,null,r),t.child=ul(t,null,n,r)):Ut(e,t,n,r),t.memoizedState=s.state,e=t.child):e=sa(e,t,r),e}function lh(e,t,n,l){return Ri(),t.flags|=256,Ut(e,t,n,l),t.child}var Zc={dehydrated:null,treeContext:null,retryLane:0};function Kc(e){return{baseLanes:e,cachePool:rd()}}function $c(e,t,n){return e=e!==null?e.childLanes&~n:0,t&&(e|=Nn),e}function ih(e,t,n){var l=t.pendingProps,r=!1,s=(t.flags&128)!==0,d;if((d=s)||(d=e!==null&&e.memoizedState===null?!1:(xt.current&2)!==0),d&&(r=!0,t.flags&=-129),d=(t.flags&32)!==0,t.flags&=-33,e===null){if(qe){if(r?ja(t):Oa(),qe){var E=Lt,S;if(S=E){e:{for(S=E,E=Gn;S.nodeType!==8;){if(!E){E=null;break e}if(S=Hn(S.nextSibling),S===null){E=null;break e}}E=S}E!==null?(t.memoizedState={dehydrated:E,treeContext:ll!==null?{id:ia,overflow:ra}:null,retryLane:536870912},S=Tn(18,null,null,0),S.stateNode=E,S.return=t,t.child=S,Zt=t,Lt=null,S=!0):S=!1}S||rl(t)}if(E=t.memoizedState,E!==null&&(E=E.dehydrated,E!==null))return E.data==="$!"?t.lanes=16:t.lanes=536870912,null;ua(t)}return E=l.children,l=l.fallback,r?(Oa(),r=t.mode,E=Fc({mode:"hidden",children:E},r),l=pl(l,r,n,null),E.return=t,l.return=t,E.sibling=l,t.child=E,r=t.child,r.memoizedState=Kc(n),r.childLanes=$c(e,d,n),t.memoizedState=Zc,l):(ja(t),Jc(t,E))}if(S=e.memoizedState,S!==null&&(E=S.dehydrated,E!==null)){if(s)t.flags&256?(ja(t),t.flags&=-257,t=Pc(e,t,n)):t.memoizedState!==null?(Oa(),t.child=e.child,t.flags|=128,t=null):(Oa(),r=l.fallback,E=t.mode,l=Fc({mode:"visible",children:l.children},E),r=pl(r,E,n,null),r.flags|=2,l.return=t,r.return=t,l.sibling=r,t.child=l,ul(t,e.child,null,n),l=t.child,l.memoizedState=Kc(n),l.childLanes=$c(e,d,n),t.memoizedState=Zc,t=r);else if(ja(t),E.data==="$!"){if(d=E.nextSibling&&E.nextSibling.dataset,d)var O=d.dgst;d=O,l=Error(c(419)),l.stack="",l.digest=d,Ti({value:l,source:null,stack:null}),t=Pc(e,t,n)}else if(jt||Ui(e,t,n,!1),d=(n&e.childLanes)!==0,jt||d){if(d=We,d!==null){if(l=n&-n,l&42)l=1;else switch(l){case 2:l=1;break;case 8:l=4;break;case 32:l=16;break;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:l=64;break;case 268435456:l=134217728;break;default:l=0}if(l=l&(d.suspendedLanes|n)?0:l,l!==0&&l!==S.retryLane)throw S.retryLane=l,Ca(e,l),Kt(d,e,l),Fd}E.data==="$?"||Ts(),t=Pc(e,t,n)}else E.data==="$?"?(t.flags|=128,t.child=e.child,t=lg.bind(null,e),E._reactRetry=t,t=null):(e=S.treeContext,Lt=Hn(E.nextSibling),Zt=t,qe=!0,Ln=null,Gn=!1,e!==null&&(bn[Sn++]=ia,bn[Sn++]=ra,bn[Sn++]=ll,ia=e.id,ra=e.overflow,ll=t),t=Jc(t,l.children),t.flags|=4096);return t}return r?(Oa(),r=l.fallback,E=t.mode,S=e.child,O=S.sibling,l=qa(S,{mode:"hidden",children:l.children}),l.subtreeFlags=S.subtreeFlags&31457280,O!==null?r=qa(O,r):(r=pl(r,E,n,null),r.flags|=2),r.return=t,l.return=t,l.sibling=r,t.child=l,l=r,r=t.child,E=e.child.memoizedState,E===null?E=Kc(n):(S=E.cachePool,S!==null?(O=_t._currentValue,S=S.parent!==O?{parent:O,pool:O}:S):S=rd(),E={baseLanes:E.baseLanes|n,cachePool:S}),r.memoizedState=E,r.childLanes=$c(e,d,n),t.memoizedState=Zc,l):(ja(t),n=e.child,e=n.sibling,n=qa(n,{mode:"visible",children:l.children}),n.return=t,n.sibling=null,e!==null&&(d=t.deletions,d===null?(t.deletions=[e],t.flags|=16):d.push(e)),t.child=n,t.memoizedState=null,n)}function Jc(e,t){return t=Fc({mode:"visible",children:t},e.mode),t.return=e,e.child=t}function Fc(e,t){return Ah(e,t,0,null)}function Pc(e,t,n){return ul(t,e.child,null,n),e=Jc(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function rh(e,t,n){e.lanes|=t;var l=e.alternate;l!==null&&(l.lanes|=t),ts(e.return,t,n)}function Wc(e,t,n,l,r){var s=e.memoizedState;s===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:l,tail:n,tailMode:r}:(s.isBackwards=t,s.rendering=null,s.renderingStartTime=0,s.last=l,s.tail=n,s.tailMode=r)}function uh(e,t,n){var l=t.pendingProps,r=l.revealOrder,s=l.tail;if(Ut(e,t,l.children,n),l=xt.current,l&2)l=l&1|2,t.flags|=128;else{if(e!==null&&e.flags&128)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&rh(e,n,t);else if(e.tag===19)rh(e,n,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}l&=1}switch(Te(xt,l),r){case"forwards":for(n=t.child,r=null;n!==null;)e=n.alternate,e!==null&&qr(e)===null&&(r=n),n=n.sibling;n=r,n===null?(r=t.child,t.child=null):(r=n.sibling,n.sibling=null),Wc(t,!1,r,n,s);break;case"backwards":for(n=null,r=t.child,t.child=null;r!==null;){if(e=r.alternate,e!==null&&qr(e)===null){t.child=r;break}e=r.sibling,r.sibling=n,n=r,r=e}Wc(t,!0,n,null,s);break;case"together":Wc(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function sa(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),ka|=t.lanes,!(n&t.childLanes))if(e!==null){if(Ui(e,t,n,!1),(n&t.childLanes)===0)return null}else return null;if(e!==null&&t.child!==e.child)throw Error(c(153));if(t.child!==null){for(e=t.child,n=qa(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=qa(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function Ic(e,t){return e.lanes&t?!0:(e=e.dependencies,!!(e!==null&&Pr(e)))}function Xv(e,t,n){switch(t.tag){case 3:ze(t,t.stateNode.containerInfo),wa(t,_t,e.memoizedState.cache),Ri();break;case 27:case 5:qt(t);break;case 4:ze(t,t.stateNode.containerInfo);break;case 10:wa(t,t.type,t.memoizedProps.value);break;case 13:var l=t.memoizedState;if(l!==null)return l.dehydrated!==null?(ja(t),t.flags|=128,null):n&t.child.childLanes?ih(e,t,n):(ja(t),e=sa(e,t,n),e!==null?e.sibling:null);ja(t);break;case 19:var r=(e.flags&128)!==0;if(l=(n&t.childLanes)!==0,l||(Ui(e,t,n,!1),l=(n&t.childLanes)!==0),r){if(l)return uh(e,t,n);t.flags|=128}if(r=t.memoizedState,r!==null&&(r.rendering=null,r.tail=null,r.lastEffect=null),Te(xt,xt.current),l)break;return null;case 22:case 23:return t.lanes=0,eh(e,t,n);case 24:wa(t,_t,e.memoizedState.cache)}return sa(e,t,n)}function ch(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps)jt=!0;else{if(!Ic(e,n)&&!(t.flags&128))return jt=!1,Xv(e,t,n);jt=!!(e.flags&131072)}else jt=!1,qe&&t.flags&1048576&&Zf(t,zr,t.index);switch(t.lanes=0,t.tag){case 16:e:{e=t.pendingProps;var l=t.elementType,r=l._init;if(l=r(l._payload),t.type=l,typeof l=="function")hs(l)?(e=dl(l,e),t.tag=1,t=ah(null,t,l,e,n)):(t.tag=0,t=Qc(null,t,l,e,n));else{if(l!=null){if(r=l.$$typeof,r===A){t.tag=11,t=Pd(null,t,l,e,n);break e}else if(r===z){t.tag=14,t=Wd(null,t,l,e,n);break e}}throw t=ce(l)||l,Error(c(306,t,""))}}return t;case 0:return Qc(e,t,t.type,t.pendingProps,n);case 1:return l=t.type,r=dl(l,t.pendingProps),ah(e,t,l,r,n);case 3:e:{if(ze(t,t.stateNode.containerInfo),e===null)throw Error(c(387));var s=t.pendingProps;r=t.memoizedState,l=r.element,ls(e,t),qi(t,s,null,n);var d=t.memoizedState;if(s=d.cache,wa(t,_t,s),s!==r.cache&&ns(t,[_t],n,!0),Bi(),s=d.element,r.isDehydrated)if(r={element:s,isDehydrated:!1,cache:d.cache},t.updateQueue.baseState=r,t.memoizedState=r,t.flags&256){t=lh(e,t,s,n);break e}else if(s!==l){l=En(Error(c(424)),t),Ti(l),t=lh(e,t,s,n);break e}else for(Lt=Hn(t.stateNode.containerInfo.firstChild),Zt=t,qe=!0,Ln=null,Gn=!0,n=td(t,null,s,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(Ri(),s===l){t=sa(e,t,n);break e}Ut(e,t,s,n)}t=t.child}return t;case 26:return Li(e,t),e===null?(n=fm(t.type,null,t.pendingProps,null))?t.memoizedState=n:qe||(n=t.type,e=t.pendingProps,l=hu(Ke.current).createElement(n),l[me]=t,l[Oe]=e,Ht(l,n,e),lt(l),t.stateNode=l):t.memoizedState=fm(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return qt(t),e===null&&qe&&(l=t.stateNode=cm(t.type,t.pendingProps,Ke.current),Zt=t,Gn=!0,Lt=Hn(l.firstChild)),l=t.pendingProps.children,e!==null||qe?Ut(e,t,l,n):t.child=ul(t,null,l,n),Li(e,t),t.child;case 5:return e===null&&qe&&((r=l=Lt)&&(l=bg(l,t.type,t.pendingProps,Gn),l!==null?(t.stateNode=l,Zt=t,Lt=Hn(l.firstChild),Gn=!1,r=!0):r=!1),r||rl(t)),qt(t),r=t.type,s=t.pendingProps,d=e!==null?e.memoizedProps:null,l=s.children,qs(r,s)?l=null:d!==null&&qs(r,d)&&(t.flags|=32),t.memoizedState!==null&&(r=Cc(e,t,Hv,null,null,n),er._currentValue=r),Li(e,t),Ut(e,t,l,n),t.child;case 6:return e===null&&qe&&((e=n=Lt)&&(n=Sg(n,t.pendingProps,Gn),n!==null?(t.stateNode=n,Zt=t,Lt=null,e=!0):e=!1),e||rl(t)),null;case 13:return ih(e,t,n);case 4:return ze(t,t.stateNode.containerInfo),l=t.pendingProps,e===null?t.child=ul(t,null,l,n):Ut(e,t,l,n),t.child;case 11:return Pd(e,t,t.type,t.pendingProps,n);case 7:return Ut(e,t,t.pendingProps,n),t.child;case 8:return Ut(e,t,t.pendingProps.children,n),t.child;case 12:return Ut(e,t,t.pendingProps.children,n),t.child;case 10:return l=t.pendingProps,wa(t,t.type,l.value),Ut(e,t,l.children,n),t.child;case 9:return r=t.type._context,l=t.pendingProps.children,ml(t),r=Yt(r),l=l(r),t.flags|=1,Ut(e,t,l,n),t.child;case 14:return Wd(e,t,t.type,t.pendingProps,n);case 15:return Id(e,t,t.type,t.pendingProps,n);case 19:return uh(e,t,n);case 22:return eh(e,t,n);case 24:return ml(t),l=Yt(_t),e===null?(r=Tc(),r===null&&(r=We,s=_c(),r.pooledCache=s,s.refCount++,s!==null&&(r.pooledCacheLanes|=n),r=s),t.memoizedState={parent:l,cache:r},as(t),wa(t,_t,r)):(e.lanes&n&&(ls(e,t),qi(t,null,null,n),Bi()),r=e.memoizedState,s=t.memoizedState,r.parent!==l?(r={parent:l,cache:l},t.memoizedState=r,t.lanes===0&&(t.memoizedState=t.updateQueue.baseState=r),wa(t,_t,l)):(l=s.cache,wa(t,_t,l),l!==r.cache&&ns(t,[_t],n,!0))),Ut(e,t,t.pendingProps.children,n),t.child;case 29:throw t.pendingProps}throw Error(c(156,t.tag))}var es=Ce(null),hl=null,oa=null;function wa(e,t,n){Te(es,t._currentValue),t._currentValue=n}function fa(e){e._currentValue=es.current,xe(es)}function ts(e,t,n){for(;e!==null;){var l=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,l!==null&&(l.childLanes|=t)):l!==null&&(l.childLanes&t)!==t&&(l.childLanes|=t),e===n)break;e=e.return}}function ns(e,t,n,l){var r=e.child;for(r!==null&&(r.return=e);r!==null;){var s=r.dependencies;if(s!==null){var d=r.child;s=s.firstContext;e:for(;s!==null;){var E=s;s=r;for(var S=0;S<t.length;S++)if(E.context===t[S]){s.lanes|=n,E=s.alternate,E!==null&&(E.lanes|=n),ts(s.return,n,e),l||(d=null);break e}s=E.next}}else if(r.tag===18){if(d=r.return,d===null)throw Error(c(341));d.lanes|=n,s=d.alternate,s!==null&&(s.lanes|=n),ts(d,n,e),d=null}else d=r.child;if(d!==null)d.return=r;else for(d=r;d!==null;){if(d===e){d=null;break}if(r=d.sibling,r!==null){r.return=d.return,d=r;break}d=d.return}r=d}}function Ui(e,t,n,l){e=null;for(var r=t,s=!1;r!==null;){if(!s){if(r.flags&524288)s=!0;else if(r.flags&262144)break}if(r.tag===10){var d=r.alternate;if(d===null)throw Error(c(387));if(d=d.memoizedProps,d!==null){var E=r.type;an(r.pendingProps.value,d.value)||(e!==null?e.push(E):e=[E])}}else if(r===Rt.current){if(d=r.alternate,d===null)throw Error(c(387));d.memoizedState.memoizedState!==r.memoizedState.memoizedState&&(e!==null?e.push(er):e=[er])}r=r.return}e!==null&&ns(t,e,n,l),t.flags|=262144}function Pr(e){for(e=e.firstContext;e!==null;){if(!an(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function ml(e){hl=e,oa=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function Yt(e){return sh(hl,e)}function Wr(e,t){return hl===null&&ml(e),sh(e,t)}function sh(e,t){var n=t._currentValue;if(t={context:t,memoizedValue:n,next:null},oa===null){if(e===null)throw Error(c(308));oa=t,e.dependencies={lanes:0,firstContext:t},e.flags|=524288}else oa=oa.next=t;return n}var Ma=!1;function as(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function ls(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,callbacks:null})}function za(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function La(e,t,n){var l=e.updateQueue;if(l===null)return null;if(l=l.shared,rt&2){var r=l.pending;return r===null?t.next=t:(t.next=r.next,r.next=t),l.pending=t,t=wr(e),Xf(e,null,n),t}return Ar(e,l,t,n),wr(e)}function Hi(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,(n&4194176)!==0)){var l=t.lanes;l&=e.pendingLanes,n|=l,t.lanes=n,Se(e,n)}}function is(e,t){var n=e.updateQueue,l=e.alternate;if(l!==null&&(l=l.updateQueue,n===l)){var r=null,s=null;if(n=n.firstBaseUpdate,n!==null){do{var d={lane:n.lane,tag:n.tag,payload:n.payload,callback:null,next:null};s===null?r=s=d:s=s.next=d,n=n.next}while(n!==null);s===null?r=s=t:s=s.next=t}else r=s=t;n={baseState:l.baseState,firstBaseUpdate:r,lastBaseUpdate:s,shared:l.shared,callbacks:l.callbacks},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}var rs=!1;function Bi(){if(rs){var e=Yl;if(e!==null)throw e}}function qi(e,t,n,l){rs=!1;var r=e.updateQueue;Ma=!1;var s=r.firstBaseUpdate,d=r.lastBaseUpdate,E=r.shared.pending;if(E!==null){r.shared.pending=null;var S=E,O=S.next;S.next=null,d===null?s=O:d.next=O,d=S;var q=e.alternate;q!==null&&(q=q.updateQueue,E=q.lastBaseUpdate,E!==d&&(E===null?q.firstBaseUpdate=O:E.next=O,q.lastBaseUpdate=S))}if(s!==null){var G=r.baseState;d=0,q=O=S=null,E=s;do{var L=E.lane&-536870913,B=L!==E.lane;if(B?(Be&L)===L:(l&L)===L){L!==0&&L===Vl&&(rs=!0),q!==null&&(q=q.next={lane:0,tag:E.tag,payload:E.payload,callback:null,next:null});e:{var oe=e,Re=E;L=t;var dt=n;switch(Re.tag){case 1:if(oe=Re.payload,typeof oe=="function"){G=oe.call(dt,G,L);break e}G=oe;break e;case 3:oe.flags=oe.flags&-65537|128;case 0:if(oe=Re.payload,L=typeof oe=="function"?oe.call(dt,G,L):oe,L==null)break e;G=ie({},G,L);break e;case 2:Ma=!0}}L=E.callback,L!==null&&(e.flags|=64,B&&(e.flags|=8192),B=r.callbacks,B===null?r.callbacks=[L]:B.push(L))}else B={lane:L,tag:E.tag,payload:E.payload,callback:E.callback,next:null},q===null?(O=q=B,S=G):q=q.next=B,d|=L;if(E=E.next,E===null){if(E=r.shared.pending,E===null)break;B=E,E=B.next,B.next=null,r.lastBaseUpdate=B,r.shared.pending=null}}while(!0);q===null&&(S=G),r.baseState=S,r.firstBaseUpdate=O,r.lastBaseUpdate=q,s===null&&(r.shared.lanes=0),ka|=d,e.lanes=d,e.memoizedState=G}}function oh(e,t){if(typeof e!="function")throw Error(c(191,e));e.call(t)}function fh(e,t){var n=e.callbacks;if(n!==null)for(e.callbacks=null,e=0;e<n.length;e++)oh(n[e],t)}function ki(e,t){try{var n=t.updateQueue,l=n!==null?n.lastEffect:null;if(l!==null){var r=l.next;n=r;do{if((n.tag&e)===e){l=void 0;var s=n.create,d=n.inst;l=s(),d.destroy=l}n=n.next}while(n!==r)}}catch(E){Fe(t,t.return,E)}}function Ua(e,t,n){try{var l=t.updateQueue,r=l!==null?l.lastEffect:null;if(r!==null){var s=r.next;l=s;do{if((l.tag&e)===e){var d=l.inst,E=d.destroy;if(E!==void 0){d.destroy=void 0,r=t;var S=n;try{E()}catch(O){Fe(r,S,O)}}}l=l.next}while(l!==s)}}catch(O){Fe(t,t.return,O)}}function dh(e){var t=e.updateQueue;if(t!==null){var n=e.stateNode;try{fh(t,n)}catch(l){Fe(e,e.return,l)}}}function hh(e,t,n){n.props=dl(e.type,e.memoizedProps),n.state=e.memoizedState;try{n.componentWillUnmount()}catch(l){Fe(e,t,l)}}function yl(e,t){try{var n=e.ref;if(n!==null){var l=e.stateNode;switch(e.tag){case 26:case 27:case 5:var r=l;break;default:r=l}typeof n=="function"?e.refCleanup=n(r):n.current=r}}catch(s){Fe(e,t,s)}}function ln(e,t){var n=e.ref,l=e.refCleanup;if(n!==null)if(typeof l=="function")try{l()}catch(r){Fe(e,t,r)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof n=="function")try{n(null)}catch(r){Fe(e,t,r)}else n.current=null}function mh(e){var t=e.type,n=e.memoizedProps,l=e.stateNode;try{e:switch(t){case"button":case"input":case"select":case"textarea":n.autoFocus&&l.focus();break e;case"img":n.src?l.src=n.src:n.srcSet&&(l.srcset=n.srcSet)}}catch(r){Fe(e,e.return,r)}}function yh(e,t,n){try{var l=e.stateNode;yg(l,e.type,n,t),l[Oe]=t}catch(r){Fe(e,e.return,r)}}function ph(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27||e.tag===4}function us(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||ph(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==27&&e.tag!==18;){if(e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function cs(e,t,n){var l=e.tag;if(l===5||l===6)e=e.stateNode,t?n.nodeType===8?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(n.nodeType===8?(t=n.parentNode,t.insertBefore(e,n)):(t=n,t.appendChild(e)),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=du));else if(l!==4&&l!==27&&(e=e.child,e!==null))for(cs(e,t,n),e=e.sibling;e!==null;)cs(e,t,n),e=e.sibling}function Ir(e,t,n){var l=e.tag;if(l===5||l===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(l!==4&&l!==27&&(e=e.child,e!==null))for(Ir(e,t,n),e=e.sibling;e!==null;)Ir(e,t,n),e=e.sibling}var da=!1,ot=!1,ss=!1,vh=typeof WeakSet=="function"?WeakSet:Set,Ot=null,gh=!1;function Qv(e,t){if(e=e.containerInfo,Hs=Eu,e=Lf(e),fc(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var l=n.getSelection&&n.getSelection();if(l&&l.rangeCount!==0){n=l.anchorNode;var r=l.anchorOffset,s=l.focusNode;l=l.focusOffset;try{n.nodeType,s.nodeType}catch{n=null;break e}var d=0,E=-1,S=-1,O=0,q=0,G=e,L=null;t:for(;;){for(var B;G!==n||r!==0&&G.nodeType!==3||(E=d+r),G!==s||l!==0&&G.nodeType!==3||(S=d+l),G.nodeType===3&&(d+=G.nodeValue.length),(B=G.firstChild)!==null;)L=G,G=B;for(;;){if(G===e)break t;if(L===n&&++O===r&&(E=d),L===s&&++q===l&&(S=d),(B=G.nextSibling)!==null)break;G=L,L=G.parentNode}G=B}n=E===-1||S===-1?null:{start:E,end:S}}else n=null}n=n||{start:0,end:0}}else n=null;for(Bs={focusedElem:e,selectionRange:n},Eu=!1,Ot=t;Ot!==null;)if(t=Ot,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,Ot=e;else for(;Ot!==null;){switch(t=Ot,s=t.alternate,e=t.flags,t.tag){case 0:break;case 11:case 15:break;case 1:if(e&1024&&s!==null){e=void 0,n=t,r=s.memoizedProps,s=s.memoizedState,l=n.stateNode;try{var oe=dl(n.type,r,n.elementType===n.type);e=l.getSnapshotBeforeUpdate(oe,s),l.__reactInternalSnapshotBeforeUpdate=e}catch(Re){Fe(n,n.return,Re)}}break;case 3:if(e&1024){if(e=t.stateNode.containerInfo,n=e.nodeType,n===9)Ys(e);else if(n===1)switch(e.nodeName){case"HEAD":case"HTML":case"BODY":Ys(e);break;default:e.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if(e&1024)throw Error(c(163))}if(e=t.sibling,e!==null){e.return=t.return,Ot=e;break}Ot=t.return}return oe=gh,gh=!1,oe}function Eh(e,t,n){var l=n.flags;switch(n.tag){case 0:case 11:case 15:ma(e,n),l&4&&ki(5,n);break;case 1:if(ma(e,n),l&4)if(e=n.stateNode,t===null)try{e.componentDidMount()}catch(E){Fe(n,n.return,E)}else{var r=dl(n.type,t.memoizedProps);t=t.memoizedState;try{e.componentDidUpdate(r,t,e.__reactInternalSnapshotBeforeUpdate)}catch(E){Fe(n,n.return,E)}}l&64&&dh(n),l&512&&yl(n,n.return);break;case 3:if(ma(e,n),l&64&&(l=n.updateQueue,l!==null)){if(e=null,n.child!==null)switch(n.child.tag){case 27:case 5:e=n.child.stateNode;break;case 1:e=n.child.stateNode}try{fh(l,e)}catch(E){Fe(n,n.return,E)}}break;case 26:ma(e,n),l&512&&yl(n,n.return);break;case 27:case 5:ma(e,n),t===null&&l&4&&mh(n),l&512&&yl(n,n.return);break;case 12:ma(e,n);break;case 13:ma(e,n),l&4&&xh(e,n);break;case 22:if(r=n.memoizedState!==null||da,!r){t=t!==null&&t.memoizedState!==null||ot;var s=da,d=ot;da=r,(ot=t)&&!d?Ha(e,n,(n.subtreeFlags&8772)!==0):ma(e,n),da=s,ot=d}l&512&&(n.memoizedProps.mode==="manual"?yl(n,n.return):ln(n,n.return));break;default:ma(e,n)}}function bh(e){var t=e.alternate;t!==null&&(e.alternate=null,bh(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&nn(t)),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}var Et=null,rn=!1;function ha(e,t,n){for(n=n.child;n!==null;)Sh(e,t,n),n=n.sibling}function Sh(e,t,n){if(pt&&typeof pt.onCommitFiberUnmount=="function")try{pt.onCommitFiberUnmount(tn,n)}catch{}switch(n.tag){case 26:ot||ln(n,t),ha(e,t,n),n.memoizedState?n.memoizedState.count--:n.stateNode&&(n=n.stateNode,n.parentNode.removeChild(n));break;case 27:ot||ln(n,t);var l=Et,r=rn;for(Et=n.stateNode,ha(e,t,n),n=n.stateNode,t=n.attributes;t.length;)n.removeAttributeNode(t[0]);nn(n),Et=l,rn=r;break;case 5:ot||ln(n,t);case 6:r=Et;var s=rn;if(Et=null,ha(e,t,n),Et=r,rn=s,Et!==null)if(rn)try{e=Et,l=n.stateNode,e.nodeType===8?e.parentNode.removeChild(l):e.removeChild(l)}catch(d){Fe(n,t,d)}else try{Et.removeChild(n.stateNode)}catch(d){Fe(n,t,d)}break;case 18:Et!==null&&(rn?(t=Et,n=n.stateNode,t.nodeType===8?Vs(t.parentNode,n):t.nodeType===1&&Vs(t,n),lr(t)):Vs(Et,n.stateNode));break;case 4:l=Et,r=rn,Et=n.stateNode.containerInfo,rn=!0,ha(e,t,n),Et=l,rn=r;break;case 0:case 11:case 14:case 15:ot||Ua(2,n,t),ot||Ua(4,n,t),ha(e,t,n);break;case 1:ot||(ln(n,t),l=n.stateNode,typeof l.componentWillUnmount=="function"&&hh(n,t,l)),ha(e,t,n);break;case 21:ha(e,t,n);break;case 22:ot||ln(n,t),ot=(l=ot)||n.memoizedState!==null,ha(e,t,n),ot=l;break;default:ha(e,t,n)}}function xh(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{lr(e)}catch(n){Fe(t,t.return,n)}}function Zv(e){switch(e.tag){case 13:case 19:var t=e.stateNode;return t===null&&(t=e.stateNode=new vh),t;case 22:return e=e.stateNode,t=e._retryCache,t===null&&(t=e._retryCache=new vh),t;default:throw Error(c(435,e.tag))}}function os(e,t){var n=Zv(e);t.forEach(function(l){var r=ig.bind(null,e,l);n.has(l)||(n.add(l),l.then(r,r))})}function _n(e,t){var n=t.deletions;if(n!==null)for(var l=0;l<n.length;l++){var r=n[l],s=e,d=t,E=d;e:for(;E!==null;){switch(E.tag){case 27:case 5:Et=E.stateNode,rn=!1;break e;case 3:Et=E.stateNode.containerInfo,rn=!0;break e;case 4:Et=E.stateNode.containerInfo,rn=!0;break e}E=E.return}if(Et===null)throw Error(c(160));Sh(s,d,r),Et=null,rn=!1,s=r.alternate,s!==null&&(s.return=null),r.return=null}if(t.subtreeFlags&13878)for(t=t.child;t!==null;)_h(t,e),t=t.sibling}var Un=null;function _h(e,t){var n=e.alternate,l=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:_n(t,e),Rn(e),l&4&&(Ua(3,e,e.return),ki(3,e),Ua(5,e,e.return));break;case 1:_n(t,e),Rn(e),l&512&&(ot||n===null||ln(n,n.return)),l&64&&da&&(e=e.updateQueue,e!==null&&(l=e.callbacks,l!==null&&(n=e.shared.hiddenCallbacks,e.shared.hiddenCallbacks=n===null?l:n.concat(l))));break;case 26:var r=Un;if(_n(t,e),Rn(e),l&512&&(ot||n===null||ln(n,n.return)),l&4){var s=n!==null?n.memoizedState:null;if(l=e.memoizedState,n===null)if(l===null)if(e.stateNode===null){e:{l=e.type,n=e.memoizedProps,r=r.ownerDocument||r;t:switch(l){case"title":s=r.getElementsByTagName("title")[0],(!s||s[An]||s[me]||s.namespaceURI==="http://www.w3.org/2000/svg"||s.hasAttribute("itemprop"))&&(s=r.createElement(l),r.head.insertBefore(s,r.querySelector("head > title"))),Ht(s,l,n),s[me]=e,lt(s),l=s;break e;case"link":var d=mm("link","href",r).get(l+(n.href||""));if(d){for(var E=0;E<d.length;E++)if(s=d[E],s.getAttribute("href")===(n.href==null?null:n.href)&&s.getAttribute("rel")===(n.rel==null?null:n.rel)&&s.getAttribute("title")===(n.title==null?null:n.title)&&s.getAttribute("crossorigin")===(n.crossOrigin==null?null:n.crossOrigin)){d.splice(E,1);break t}}s=r.createElement(l),Ht(s,l,n),r.head.appendChild(s);break;case"meta":if(d=mm("meta","content",r).get(l+(n.content||""))){for(E=0;E<d.length;E++)if(s=d[E],s.getAttribute("content")===(n.content==null?null:""+n.content)&&s.getAttribute("name")===(n.name==null?null:n.name)&&s.getAttribute("property")===(n.property==null?null:n.property)&&s.getAttribute("http-equiv")===(n.httpEquiv==null?null:n.httpEquiv)&&s.getAttribute("charset")===(n.charSet==null?null:n.charSet)){d.splice(E,1);break t}}s=r.createElement(l),Ht(s,l,n),r.head.appendChild(s);break;default:throw Error(c(468,l))}s[me]=e,lt(s),l=s}e.stateNode=l}else ym(r,e.type,e.stateNode);else e.stateNode=hm(r,l,e.memoizedProps);else s!==l?(s===null?n.stateNode!==null&&(n=n.stateNode,n.parentNode.removeChild(n)):s.count--,l===null?ym(r,e.type,e.stateNode):hm(r,l,e.memoizedProps)):l===null&&e.stateNode!==null&&yh(e,e.memoizedProps,n.memoizedProps)}break;case 27:if(l&4&&e.alternate===null){r=e.stateNode,s=e.memoizedProps;try{for(var S=r.firstChild;S;){var O=S.nextSibling,q=S.nodeName;S[An]||q==="HEAD"||q==="BODY"||q==="SCRIPT"||q==="STYLE"||q==="LINK"&&S.rel.toLowerCase()==="stylesheet"||r.removeChild(S),S=O}for(var G=e.type,L=r.attributes;L.length;)r.removeAttributeNode(L[0]);Ht(r,G,s),r[me]=e,r[Oe]=s}catch(oe){Fe(e,e.return,oe)}}case 5:if(_n(t,e),Rn(e),l&512&&(ot||n===null||ln(n,n.return)),e.flags&32){r=e.stateNode;try{Ol(r,"")}catch(oe){Fe(e,e.return,oe)}}l&4&&e.stateNode!=null&&(r=e.memoizedProps,yh(e,r,n!==null?n.memoizedProps:r)),l&1024&&(ss=!0);break;case 6:if(_n(t,e),Rn(e),l&4){if(e.stateNode===null)throw Error(c(162));l=e.memoizedProps,n=e.stateNode;try{n.nodeValue=l}catch(oe){Fe(e,e.return,oe)}}break;case 3:if(pu=null,r=Un,Un=mu(t.containerInfo),_n(t,e),Un=r,Rn(e),l&4&&n!==null&&n.memoizedState.isDehydrated)try{lr(t.containerInfo)}catch(oe){Fe(e,e.return,oe)}ss&&(ss=!1,Rh(e));break;case 4:l=Un,Un=mu(e.stateNode.containerInfo),_n(t,e),Rn(e),Un=l;break;case 12:_n(t,e),Rn(e);break;case 13:_n(t,e),Rn(e),e.child.flags&8192&&e.memoizedState!==null!=(n!==null&&n.memoizedState!==null)&&(Es=ct()),l&4&&(l=e.updateQueue,l!==null&&(e.updateQueue=null,os(e,l)));break;case 22:if(l&512&&(ot||n===null||ln(n,n.return)),S=e.memoizedState!==null,O=n!==null&&n.memoizedState!==null,q=da,G=ot,da=q||S,ot=G||O,_n(t,e),ot=G,da=q,Rn(e),t=e.stateNode,t._current=e,t._visibility&=-3,t._visibility|=t._pendingVisibility&2,l&8192&&(t._visibility=S?t._visibility&-2:t._visibility|1,S&&(t=da||ot,n===null||O||t||Zl(e)),e.memoizedProps===null||e.memoizedProps.mode!=="manual"))e:for(n=null,t=e;;){if(t.tag===5||t.tag===26||t.tag===27){if(n===null){O=n=t;try{if(r=O.stateNode,S)s=r.style,typeof s.setProperty=="function"?s.setProperty("display","none","important"):s.display="none";else{d=O.stateNode,E=O.memoizedProps.style;var B=E!=null&&E.hasOwnProperty("display")?E.display:null;d.style.display=B==null||typeof B=="boolean"?"":(""+B).trim()}}catch(oe){Fe(O,O.return,oe)}}}else if(t.tag===6){if(n===null){O=t;try{O.stateNode.nodeValue=S?"":O.memoizedProps}catch(oe){Fe(O,O.return,oe)}}}else if((t.tag!==22&&t.tag!==23||t.memoizedState===null||t===e)&&t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break e;for(;t.sibling===null;){if(t.return===null||t.return===e)break e;n===t&&(n=null),t=t.return}n===t&&(n=null),t.sibling.return=t.return,t=t.sibling}l&4&&(l=e.updateQueue,l!==null&&(n=l.retryQueue,n!==null&&(l.retryQueue=null,os(e,n))));break;case 19:_n(t,e),Rn(e),l&4&&(l=e.updateQueue,l!==null&&(e.updateQueue=null,os(e,l)));break;case 21:break;default:_n(t,e),Rn(e)}}function Rn(e){var t=e.flags;if(t&2){try{if(e.tag!==27){e:{for(var n=e.return;n!==null;){if(ph(n)){var l=n;break e}n=n.return}throw Error(c(160))}switch(l.tag){case 27:var r=l.stateNode,s=us(e);Ir(e,s,r);break;case 5:var d=l.stateNode;l.flags&32&&(Ol(d,""),l.flags&=-33);var E=us(e);Ir(e,E,d);break;case 3:case 4:var S=l.stateNode.containerInfo,O=us(e);cs(e,O,S);break;default:throw Error(c(161))}}}catch(q){Fe(e,e.return,q)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function Rh(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;Rh(t),t.tag===5&&t.flags&1024&&t.stateNode.reset(),e=e.sibling}}function ma(e,t){if(t.subtreeFlags&8772)for(t=t.child;t!==null;)Eh(e,t.alternate,t),t=t.sibling}function Zl(e){for(e=e.child;e!==null;){var t=e;switch(t.tag){case 0:case 11:case 14:case 15:Ua(4,t,t.return),Zl(t);break;case 1:ln(t,t.return);var n=t.stateNode;typeof n.componentWillUnmount=="function"&&hh(t,t.return,n),Zl(t);break;case 26:case 27:case 5:ln(t,t.return),Zl(t);break;case 22:ln(t,t.return),t.memoizedState===null&&Zl(t);break;default:Zl(t)}e=e.sibling}}function Ha(e,t,n){for(n=n&&(t.subtreeFlags&8772)!==0,t=t.child;t!==null;){var l=t.alternate,r=e,s=t,d=s.flags;switch(s.tag){case 0:case 11:case 15:Ha(r,s,n),ki(4,s);break;case 1:if(Ha(r,s,n),l=s,r=l.stateNode,typeof r.componentDidMount=="function")try{r.componentDidMount()}catch(O){Fe(l,l.return,O)}if(l=s,r=l.updateQueue,r!==null){var E=l.stateNode;try{var S=r.shared.hiddenCallbacks;if(S!==null)for(r.shared.hiddenCallbacks=null,r=0;r<S.length;r++)oh(S[r],E)}catch(O){Fe(l,l.return,O)}}n&&d&64&&dh(s),yl(s,s.return);break;case 26:case 27:case 5:Ha(r,s,n),n&&l===null&&d&4&&mh(s),yl(s,s.return);break;case 12:Ha(r,s,n);break;case 13:Ha(r,s,n),n&&d&4&&xh(r,s);break;case 22:s.memoizedState===null&&Ha(r,s,n),yl(s,s.return);break;default:Ha(r,s,n)}t=t.sibling}}function fs(e,t){var n=null;e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(n=e.memoizedState.cachePool.pool),e=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(e=t.memoizedState.cachePool.pool),e!==n&&(e!=null&&e.refCount++,n!=null&&Di(n))}function ds(e,t){e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&Di(e))}function Ba(e,t,n,l){if(t.subtreeFlags&10256)for(t=t.child;t!==null;)Th(e,t,n,l),t=t.sibling}function Th(e,t,n,l){var r=t.flags;switch(t.tag){case 0:case 11:case 15:Ba(e,t,n,l),r&2048&&ki(9,t);break;case 3:Ba(e,t,n,l),r&2048&&(e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&Di(e)));break;case 12:if(r&2048){Ba(e,t,n,l),e=t.stateNode;try{var s=t.memoizedProps,d=s.id,E=s.onPostCommit;typeof E=="function"&&E(d,t.alternate===null?"mount":"update",e.passiveEffectDuration,-0)}catch(S){Fe(t,t.return,S)}}else Ba(e,t,n,l);break;case 23:break;case 22:s=t.stateNode,t.memoizedState!==null?s._visibility&4?Ba(e,t,n,l):Vi(e,t):s._visibility&4?Ba(e,t,n,l):(s._visibility|=4,Kl(e,t,n,l,(t.subtreeFlags&10256)!==0)),r&2048&&fs(t.alternate,t);break;case 24:Ba(e,t,n,l),r&2048&&ds(t.alternate,t);break;default:Ba(e,t,n,l)}}function Kl(e,t,n,l,r){for(r=r&&(t.subtreeFlags&10256)!==0,t=t.child;t!==null;){var s=e,d=t,E=n,S=l,O=d.flags;switch(d.tag){case 0:case 11:case 15:Kl(s,d,E,S,r),ki(8,d);break;case 23:break;case 22:var q=d.stateNode;d.memoizedState!==null?q._visibility&4?Kl(s,d,E,S,r):Vi(s,d):(q._visibility|=4,Kl(s,d,E,S,r)),r&&O&2048&&fs(d.alternate,d);break;case 24:Kl(s,d,E,S,r),r&&O&2048&&ds(d.alternate,d);break;default:Kl(s,d,E,S,r)}t=t.sibling}}function Vi(e,t){if(t.subtreeFlags&10256)for(t=t.child;t!==null;){var n=e,l=t,r=l.flags;switch(l.tag){case 22:Vi(n,l),r&2048&&fs(l.alternate,l);break;case 24:Vi(n,l),r&2048&&ds(l.alternate,l);break;default:Vi(n,l)}t=t.sibling}}var Yi=8192;function $l(e){if(e.subtreeFlags&Yi)for(e=e.child;e!==null;)Nh(e),e=e.sibling}function Nh(e){switch(e.tag){case 26:$l(e),e.flags&Yi&&e.memoizedState!==null&&zg(Un,e.memoizedState,e.memoizedProps);break;case 5:$l(e);break;case 3:case 4:var t=Un;Un=mu(e.stateNode.containerInfo),$l(e),Un=t;break;case 22:e.memoizedState===null&&(t=e.alternate,t!==null&&t.memoizedState!==null?(t=Yi,Yi=16777216,$l(e),Yi=t):$l(e));break;default:$l(e)}}function Ch(e){var t=e.alternate;if(t!==null&&(e=t.child,e!==null)){t.child=null;do t=e.sibling,e.sibling=null,e=t;while(e!==null)}}function Gi(e){var t=e.deletions;if(e.flags&16){if(t!==null)for(var n=0;n<t.length;n++){var l=t[n];Ot=l,Oh(l,e)}Ch(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)jh(e),e=e.sibling}function jh(e){switch(e.tag){case 0:case 11:case 15:Gi(e),e.flags&2048&&Ua(9,e,e.return);break;case 3:Gi(e);break;case 12:Gi(e);break;case 22:var t=e.stateNode;e.memoizedState!==null&&t._visibility&4&&(e.return===null||e.return.tag!==13)?(t._visibility&=-5,eu(e)):Gi(e);break;default:Gi(e)}}function eu(e){var t=e.deletions;if(e.flags&16){if(t!==null)for(var n=0;n<t.length;n++){var l=t[n];Ot=l,Oh(l,e)}Ch(e)}for(e=e.child;e!==null;){switch(t=e,t.tag){case 0:case 11:case 15:Ua(8,t,t.return),eu(t);break;case 22:n=t.stateNode,n._visibility&4&&(n._visibility&=-5,eu(t));break;default:eu(t)}e=e.sibling}}function Oh(e,t){for(;Ot!==null;){var n=Ot;switch(n.tag){case 0:case 11:case 15:Ua(8,n,t);break;case 23:case 22:if(n.memoizedState!==null&&n.memoizedState.cachePool!==null){var l=n.memoizedState.cachePool.pool;l!=null&&l.refCount++}break;case 24:Di(n.memoizedState.cache)}if(l=n.child,l!==null)l.return=n,Ot=l;else e:for(n=e;Ot!==null;){l=Ot;var r=l.sibling,s=l.return;if(bh(l),l===n){Ot=null;break e}if(r!==null){r.return=s,Ot=r;break e}Ot=s}}}function Kv(e,t,n,l){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=l,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Tn(e,t,n,l){return new Kv(e,t,n,l)}function hs(e){return e=e.prototype,!(!e||!e.isReactComponent)}function qa(e,t){var n=e.alternate;return n===null?(n=Tn(e.tag,t,e.key,e.mode),n.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=e.flags&31457280,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=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n.refCleanup=e.refCleanup,n}function Dh(e,t){e.flags&=31457282;var n=e.alternate;return n===null?(e.childLanes=0,e.lanes=t,e.child=null,e.subtreeFlags=0,e.memoizedProps=null,e.memoizedState=null,e.updateQueue=null,e.dependencies=null,e.stateNode=null):(e.childLanes=n.childLanes,e.lanes=n.lanes,e.child=n.child,e.subtreeFlags=0,e.deletions=null,e.memoizedProps=n.memoizedProps,e.memoizedState=n.memoizedState,e.updateQueue=n.updateQueue,e.type=n.type,t=n.dependencies,e.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext}),e}function tu(e,t,n,l,r,s){var d=0;if(l=e,typeof e=="function")hs(e)&&(d=1);else if(typeof e=="string")d=wg(e,n,at.current)?26:e==="html"||e==="head"||e==="body"?27:5;else e:switch(e){case p:return pl(n.children,r,s,t);case v:d=8,r|=24;break;case b:return e=Tn(12,n,t,r|2),e.elementType=b,e.lanes=s,e;case H:return e=Tn(13,n,t,r),e.elementType=H,e.lanes=s,e;case k:return e=Tn(19,n,t,r),e.elementType=k,e.lanes=s,e;case Q:return Ah(n,r,s,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case C:case R:d=10;break e;case x:d=9;break e;case A:d=11;break e;case z:d=14;break e;case Z:d=16,l=null;break e}d=29,n=Error(c(130,e===null?"null":typeof e,"")),l=null}return t=Tn(d,n,t,r),t.elementType=e,t.type=l,t.lanes=s,t}function pl(e,t,n,l){return e=Tn(7,e,l,t),e.lanes=n,e}function Ah(e,t,n,l){e=Tn(22,e,l,t),e.elementType=Q,e.lanes=n;var r={_visibility:1,_pendingVisibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null,_current:null,detach:function(){var s=r._current;if(s===null)throw Error(c(456));if(!(r._pendingVisibility&2)){var d=Ca(s,2);d!==null&&(r._pendingVisibility|=2,Kt(d,s,2))}},attach:function(){var s=r._current;if(s===null)throw Error(c(456));if(r._pendingVisibility&2){var d=Ca(s,2);d!==null&&(r._pendingVisibility&=-3,Kt(d,s,2))}}};return e.stateNode=r,e}function ms(e,t,n){return e=Tn(6,e,null,t),e.lanes=n,e}function ys(e,t,n){return t=Tn(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function ya(e){e.flags|=4}function wh(e,t){if(t.type!=="stylesheet"||t.state.loading&4)e.flags&=-16777217;else if(e.flags|=16777216,!pm(t)){if(t=xn.current,t!==null&&((Be&4194176)===Be?Xn!==null:(Be&62914560)!==Be&&!(Be&536870912)||t!==Xn))throw Ci=bc,Jf;e.flags|=8192}}function nu(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag!==22?w():536870912,e.lanes|=t,Fl|=t)}function Xi(e,t){if(!qe)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;t!==null;)t.alternate!==null&&(n=t),t=t.sibling;n===null?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var l=null;n!==null;)n.alternate!==null&&(l=n),n=n.sibling;l===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:l.sibling=null}}function it(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,l=0;if(t)for(var r=e.child;r!==null;)n|=r.lanes|r.childLanes,l|=r.subtreeFlags&31457280,l|=r.flags&31457280,r.return=e,r=r.sibling;else for(r=e.child;r!==null;)n|=r.lanes|r.childLanes,l|=r.subtreeFlags,l|=r.flags,r.return=e,r=r.sibling;return e.subtreeFlags|=l,e.childLanes=n,t}function $v(e,t,n){var l=t.pendingProps;switch(gc(t),t.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return it(t),null;case 1:return it(t),null;case 3:return n=t.stateNode,l=null,e!==null&&(l=e.memoizedState.cache),t.memoizedState.cache!==l&&(t.flags|=2048),fa(_t),St(),n.pendingContext&&(n.context=n.pendingContext,n.pendingContext=null),(e===null||e.child===null)&&(_i(t)?ya(t):e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,Ln!==null&&(_s(Ln),Ln=null))),it(t),null;case 26:return n=t.memoizedState,e===null?(ya(t),n!==null?(it(t),wh(t,n)):(it(t),t.flags&=-16777217)):n?n!==e.memoizedState?(ya(t),it(t),wh(t,n)):(it(t),t.flags&=-16777217):(e.memoizedProps!==l&&ya(t),it(t),t.flags&=-16777217),null;case 27:en(t),n=Ke.current;var r=t.type;if(e!==null&&t.stateNode!=null)e.memoizedProps!==l&&ya(t);else{if(!l){if(t.stateNode===null)throw Error(c(166));return it(t),null}e=at.current,_i(t)?Kf(t):(e=cm(r,l,n),t.stateNode=e,ya(t))}return it(t),null;case 5:if(en(t),n=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==l&&ya(t);else{if(!l){if(t.stateNode===null)throw Error(c(166));return it(t),null}if(e=at.current,_i(t))Kf(t);else{switch(r=hu(Ke.current),e){case 1:e=r.createElementNS("http://www.w3.org/2000/svg",n);break;case 2:e=r.createElementNS("http://www.w3.org/1998/Math/MathML",n);break;default:switch(n){case"svg":e=r.createElementNS("http://www.w3.org/2000/svg",n);break;case"math":e=r.createElementNS("http://www.w3.org/1998/Math/MathML",n);break;case"script":e=r.createElement("div"),e.innerHTML="<script><\/script>",e=e.removeChild(e.firstChild);break;case"select":e=typeof l.is=="string"?r.createElement("select",{is:l.is}):r.createElement("select"),l.multiple?e.multiple=!0:l.size&&(e.size=l.size);break;default:e=typeof l.is=="string"?r.createElement(n,{is:l.is}):r.createElement(n)}}e[me]=t,e[Oe]=l;e:for(r=t.child;r!==null;){if(r.tag===5||r.tag===6)e.appendChild(r.stateNode);else if(r.tag!==4&&r.tag!==27&&r.child!==null){r.child.return=r,r=r.child;continue}if(r===t)break e;for(;r.sibling===null;){if(r.return===null||r.return===t)break e;r=r.return}r.sibling.return=r.return,r=r.sibling}t.stateNode=e;e:switch(Ht(e,n,l),n){case"button":case"input":case"select":case"textarea":e=!!l.autoFocus;break e;case"img":e=!0;break e;default:e=!1}e&&ya(t)}}return it(t),t.flags&=-16777217,null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==l&&ya(t);else{if(typeof l!="string"&&t.stateNode===null)throw Error(c(166));if(e=Ke.current,_i(t)){if(e=t.stateNode,n=t.memoizedProps,l=null,r=Zt,r!==null)switch(r.tag){case 27:case 5:l=r.memoizedProps}e[me]=t,e=!!(e.nodeValue===n||l!==null&&l.suppressHydrationWarning===!0||nm(e.nodeValue,n)),e||rl(t)}else e=hu(e).createTextNode(l),e[me]=t,t.stateNode=e}return it(t),null;case 13:if(l=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(r=_i(t),l!==null&&l.dehydrated!==null){if(e===null){if(!r)throw Error(c(318));if(r=t.memoizedState,r=r!==null?r.dehydrated:null,!r)throw Error(c(317));r[me]=t}else Ri(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;it(t),r=!1}else Ln!==null&&(_s(Ln),Ln=null),r=!0;if(!r)return t.flags&256?(ua(t),t):(ua(t),null)}if(ua(t),t.flags&128)return t.lanes=n,t;if(n=l!==null,e=e!==null&&e.memoizedState!==null,n){l=t.child,r=null,l.alternate!==null&&l.alternate.memoizedState!==null&&l.alternate.memoizedState.cachePool!==null&&(r=l.alternate.memoizedState.cachePool.pool);var s=null;l.memoizedState!==null&&l.memoizedState.cachePool!==null&&(s=l.memoizedState.cachePool.pool),s!==r&&(l.flags|=2048)}return n!==e&&n&&(t.child.flags|=8192),nu(t,t.updateQueue),it(t),null;case 4:return St(),e===null&&zs(t.stateNode.containerInfo),it(t),null;case 10:return fa(t.type),it(t),null;case 19:if(xe(xt),r=t.memoizedState,r===null)return it(t),null;if(l=(t.flags&128)!==0,s=r.rendering,s===null)if(l)Xi(r,!1);else{if(ft!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(s=qr(e),s!==null){for(t.flags|=128,Xi(r,!1),e=s.updateQueue,t.updateQueue=e,nu(t,e),t.subtreeFlags=0,e=n,n=t.child;n!==null;)Dh(n,e),n=n.sibling;return Te(xt,xt.current&1|2),t.child}e=e.sibling}r.tail!==null&&ct()>au&&(t.flags|=128,l=!0,Xi(r,!1),t.lanes=4194304)}else{if(!l)if(e=qr(s),e!==null){if(t.flags|=128,l=!0,e=e.updateQueue,t.updateQueue=e,nu(t,e),Xi(r,!0),r.tail===null&&r.tailMode==="hidden"&&!s.alternate&&!qe)return it(t),null}else 2*ct()-r.renderingStartTime>au&&n!==536870912&&(t.flags|=128,l=!0,Xi(r,!1),t.lanes=4194304);r.isBackwards?(s.sibling=t.child,t.child=s):(e=r.last,e!==null?e.sibling=s:t.child=s,r.last=s)}return r.tail!==null?(t=r.tail,r.rendering=t,r.tail=t.sibling,r.renderingStartTime=ct(),t.sibling=null,e=xt.current,Te(xt,l?e&1|2:e&1),t):(it(t),null);case 22:case 23:return ua(t),xc(),l=t.memoizedState!==null,e!==null?e.memoizedState!==null!==l&&(t.flags|=8192):l&&(t.flags|=8192),l?n&536870912&&!(t.flags&128)&&(it(t),t.subtreeFlags&6&&(t.flags|=8192)):it(t),n=t.updateQueue,n!==null&&nu(t,n.retryQueue),n=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(n=e.memoizedState.cachePool.pool),l=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(l=t.memoizedState.cachePool.pool),l!==n&&(t.flags|=2048),e!==null&&xe(cl),null;case 24:return n=null,e!==null&&(n=e.memoizedState.cache),t.memoizedState.cache!==n&&(t.flags|=2048),fa(_t),it(t),null;case 25:return null}throw Error(c(156,t.tag))}function Jv(e,t){switch(gc(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return fa(_t),St(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return en(t),null;case 13:if(ua(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(c(340));Ri()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return xe(xt),null;case 4:return St(),null;case 10:return fa(t.type),null;case 22:case 23:return ua(t),xc(),e!==null&&xe(cl),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return fa(_t),null;case 25:return null;default:return null}}function Mh(e,t){switch(gc(t),t.tag){case 3:fa(_t),St();break;case 26:case 27:case 5:en(t);break;case 4:St();break;case 13:ua(t);break;case 19:xe(xt);break;case 10:fa(t.type);break;case 22:case 23:ua(t),xc(),e!==null&&xe(cl);break;case 24:fa(_t)}}var Fv={getCacheForType:function(e){var t=Yt(_t),n=t.data.get(e);return n===void 0&&(n=e(),t.data.set(e,n)),n}},Pv=typeof WeakMap=="function"?WeakMap:Map,rt=0,We=null,Me=null,Be=0,Ie=0,un=null,pa=!1,Jl=!1,ps=!1,va=0,ft=0,ka=0,vl=0,vs=0,Nn=0,Fl=0,Qi=null,Zn=null,gs=!1,Es=0,au=1/0,lu=null,Va=null,iu=!1,gl=null,Zi=0,bs=0,Ss=null,Ki=0,xs=null;function cn(){if(rt&2&&Be!==0)return Be&-Be;if($.T!==null){var e=Vl;return e!==0?e:Ds()}return ue()}function zh(){Nn===0&&(Nn=!(Be&536870912)||qe?N():536870912);var e=xn.current;return e!==null&&(e.flags|=32),Nn}function Kt(e,t,n){(e===We&&Ie===2||e.cancelPendingCommit!==null)&&(Pl(e,0),ga(e,Be,Nn,!1)),X(e,n),(!(rt&2)||e!==We)&&(e===We&&(!(rt&2)&&(vl|=n),ft===4&&ga(e,Be,Nn,!1)),Kn(e))}function Lh(e,t,n){if(rt&6)throw Error(c(327));var l=!n&&(t&60)===0&&(t&e.expiredLanes)===0||yn(e,t),r=l?eg(e,t):Ns(e,t,!0),s=l;do{if(r===0){Jl&&!l&&ga(e,t,0,!1);break}else if(r===6)ga(e,t,0,!pa);else{if(n=e.current.alternate,s&&!Wv(n)){r=Ns(e,t,!1),s=!1;continue}if(r===2){if(s=t,e.errorRecoveryDisabledLanes&s)var d=0;else d=e.pendingLanes&-536870913,d=d!==0?d:d&536870912?536870912:0;if(d!==0){t=d;e:{var E=e;r=Qi;var S=E.current.memoizedState.isDehydrated;if(S&&(Pl(E,d).flags|=256),d=Ns(E,d,!1),d!==2){if(ps&&!S){E.errorRecoveryDisabledLanes|=s,vl|=s,r=4;break e}s=Zn,Zn=r,s!==null&&_s(s)}r=d}if(s=!1,r!==2)continue}}if(r===1){Pl(e,0),ga(e,t,0,!0);break}e:{switch(l=e,r){case 0:case 1:throw Error(c(345));case 4:if((t&4194176)===t){ga(l,t,Nn,!pa);break e}break;case 2:Zn=null;break;case 3:case 5:break;default:throw Error(c(329))}if(l.finishedWork=n,l.finishedLanes=t,(t&62914560)===t&&(s=Es+300-ct(),10<s)){if(ga(l,t,Nn,!pa),Ft(l,0)!==0)break e;l.timeoutHandle=im(Uh.bind(null,l,n,Zn,lu,gs,t,Nn,vl,Fl,pa,2,-0,0),s);break e}Uh(l,n,Zn,lu,gs,t,Nn,vl,Fl,pa,0,-0,0)}}break}while(!0);Kn(e)}function _s(e){Zn===null?Zn=e:Zn.push.apply(Zn,e)}function Uh(e,t,n,l,r,s,d,E,S,O,q,G,L){var B=t.subtreeFlags;if((B&8192||(B&16785408)===16785408)&&(Ii={stylesheets:null,count:0,unsuspend:Mg},Nh(t),t=Lg(),t!==null)){e.cancelPendingCommit=t(Gh.bind(null,e,n,l,r,d,E,S,1,G,L)),ga(e,s,d,!O);return}Gh(e,n,l,r,d,E,S,q,G,L)}function Wv(e){for(var t=e;;){var n=t.tag;if((n===0||n===11||n===15)&&t.flags&16384&&(n=t.updateQueue,n!==null&&(n=n.stores,n!==null)))for(var l=0;l<n.length;l++){var r=n[l],s=r.getSnapshot;r=r.value;try{if(!an(s(),r))return!1}catch{return!1}}if(n=t.child,t.subtreeFlags&16384&&n!==null)n.return=t,t=n;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function ga(e,t,n,l){t&=~vs,t&=~vl,e.suspendedLanes|=t,e.pingedLanes&=~t,l&&(e.warmLanes|=t),l=e.expirationTimes;for(var r=t;0<r;){var s=31-ht(r),d=1<<s;l[s]=-1,r&=~d}n!==0&&de(e,n,t)}function ru(){return rt&6?!0:($i(0),!1)}function Rs(){if(Me!==null){if(Ie===0)var e=Me.return;else e=Me,oa=hl=null,Dc(e),ql=null,ji=0,e=Me;for(;e!==null;)Mh(e.alternate,e),e=e.return;Me=null}}function Pl(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;n!==-1&&(e.timeoutHandle=-1,vg(n)),n=e.cancelPendingCommit,n!==null&&(e.cancelPendingCommit=null,n()),Rs(),We=e,Me=n=qa(e.current,null),Be=t,Ie=0,un=null,pa=!1,Jl=yn(e,t),ps=!1,Fl=Nn=vs=vl=ka=ft=0,Zn=Qi=null,gs=!1,t&8&&(t|=t&32);var l=e.entangledLanes;if(l!==0)for(e=e.entanglements,l&=t;0<l;){var r=31-ht(l),s=1<<r;t|=e[r],l&=~s}return va=t,Dr(),n}function Hh(e,t){De=null,$.H=Qn,t===Ni?(t=Wf(),Ie=3):t===Jf?(t=Wf(),Ie=4):Ie=t===Fd?8:t!==null&&typeof t=="object"&&typeof t.then=="function"?6:1,un=t,Me===null&&(ft=1,Fr(e,En(t,e.current)))}function Bh(){var e=$.H;return $.H=Qn,e===null?Qn:e}function qh(){var e=$.A;return $.A=Fv,e}function Ts(){ft=4,pa||(Be&4194176)!==Be&&xn.current!==null||(Jl=!0),!(ka&134217727)&&!(vl&134217727)||We===null||ga(We,Be,Nn,!1)}function Ns(e,t,n){var l=rt;rt|=2;var r=Bh(),s=qh();(We!==e||Be!==t)&&(lu=null,Pl(e,t)),t=!1;var d=ft;e:do try{if(Ie!==0&&Me!==null){var E=Me,S=un;switch(Ie){case 8:Rs(),d=6;break e;case 3:case 2:case 6:xn.current===null&&(t=!0);var O=Ie;if(Ie=0,un=null,Wl(e,E,S,O),n&&Jl){d=0;break e}break;default:O=Ie,Ie=0,un=null,Wl(e,E,S,O)}}Iv(),d=ft;break}catch(q){Hh(e,q)}while(!0);return t&&e.shellSuspendCounter++,oa=hl=null,rt=l,$.H=r,$.A=s,Me===null&&(We=null,Be=0,Dr()),d}function Iv(){for(;Me!==null;)kh(Me)}function eg(e,t){var n=rt;rt|=2;var l=Bh(),r=qh();We!==e||Be!==t?(lu=null,au=ct()+500,Pl(e,t)):Jl=yn(e,t);e:do try{if(Ie!==0&&Me!==null){t=Me;var s=un;t:switch(Ie){case 1:Ie=0,un=null,Wl(e,t,s,1);break;case 2:if(Ff(s)){Ie=0,un=null,Vh(t);break}t=function(){Ie===2&&We===e&&(Ie=7),Kn(e)},s.then(t,t);break e;case 3:Ie=7;break e;case 4:Ie=5;break e;case 7:Ff(s)?(Ie=0,un=null,Vh(t)):(Ie=0,un=null,Wl(e,t,s,7));break;case 5:var d=null;switch(Me.tag){case 26:d=Me.memoizedState;case 5:case 27:var E=Me;if(!d||pm(d)){Ie=0,un=null;var S=E.sibling;if(S!==null)Me=S;else{var O=E.return;O!==null?(Me=O,uu(O)):Me=null}break t}}Ie=0,un=null,Wl(e,t,s,5);break;case 6:Ie=0,un=null,Wl(e,t,s,6);break;case 8:Rs(),ft=6;break e;default:throw Error(c(462))}}tg();break}catch(q){Hh(e,q)}while(!0);return oa=hl=null,$.H=l,$.A=r,rt=n,Me!==null?0:(We=null,Be=0,Dr(),ft)}function tg(){for(;Me!==null&&!Jt();)kh(Me)}function kh(e){var t=ch(e.alternate,e,va);e.memoizedProps=e.pendingProps,t===null?uu(e):Me=t}function Vh(e){var t=e,n=t.alternate;switch(t.tag){case 15:case 0:t=nh(n,t,t.pendingProps,t.type,void 0,Be);break;case 11:t=nh(n,t,t.pendingProps,t.type.render,t.ref,Be);break;case 5:Dc(t);default:Mh(n,t),t=Me=Dh(t,va),t=ch(n,t,va)}e.memoizedProps=e.pendingProps,t===null?uu(e):Me=t}function Wl(e,t,n,l){oa=hl=null,Dc(t),ql=null,ji=0;var r=t.return;try{if(Gv(e,r,t,n,Be)){ft=1,Fr(e,En(n,e.current)),Me=null;return}}catch(s){if(r!==null)throw Me=r,s;ft=1,Fr(e,En(n,e.current)),Me=null;return}t.flags&32768?(qe||l===1?e=!0:Jl||Be&536870912?e=!1:(pa=e=!0,(l===2||l===3||l===6)&&(l=xn.current,l!==null&&l.tag===13&&(l.flags|=16384))),Yh(t,e)):uu(t)}function uu(e){var t=e;do{if(t.flags&32768){Yh(t,pa);return}e=t.return;var n=$v(t.alternate,t,va);if(n!==null){Me=n;return}if(t=t.sibling,t!==null){Me=t;return}Me=t=e}while(t!==null);ft===0&&(ft=5)}function Yh(e,t){do{var n=Jv(e.alternate,e);if(n!==null){n.flags&=32767,Me=n;return}if(n=e.return,n!==null&&(n.flags|=32768,n.subtreeFlags=0,n.deletions=null),!t&&(e=e.sibling,e!==null)){Me=e;return}Me=e=n}while(e!==null);ft=6,Me=null}function Gh(e,t,n,l,r,s,d,E,S,O){var q=$.T,G=J.p;try{J.p=2,$.T=null,ng(e,t,n,l,G,r,s,d,E,S,O)}finally{$.T=q,J.p=G}}function ng(e,t,n,l,r,s,d,E){do Il();while(gl!==null);if(rt&6)throw Error(c(327));var S=e.finishedWork;if(l=e.finishedLanes,S===null)return null;if(e.finishedWork=null,e.finishedLanes=0,S===e.current)throw Error(c(177));e.callbackNode=null,e.callbackPriority=0,e.cancelPendingCommit=null;var O=S.lanes|S.childLanes;if(O|=yc,ne(e,l,O,s,d,E),e===We&&(Me=We=null,Be=0),!(S.subtreeFlags&10256)&&!(S.flags&10256)||iu||(iu=!0,bs=O,Ss=n,rg(kt,function(){return Il(),null})),n=(S.flags&15990)!==0,S.subtreeFlags&15990||n?(n=$.T,$.T=null,s=J.p,J.p=2,d=rt,rt|=4,Qv(e,S),_h(S,e),Nv(Bs,e.containerInfo),Eu=!!Hs,Bs=Hs=null,e.current=S,Eh(e,S.alternate,S),On(),rt=d,J.p=s,$.T=n):e.current=S,iu?(iu=!1,gl=e,Zi=l):Xh(e,O),O=e.pendingLanes,O===0&&(Va=null),ea(S.stateNode),Kn(e),t!==null)for(r=e.onRecoverableError,S=0;S<t.length;S++)O=t[S],r(O.value,{componentStack:O.stack});return Zi&3&&Il(),O=e.pendingLanes,l&4194218&&O&42?e===xs?Ki++:(Ki=0,xs=e):Ki=0,$i(0),null}function Xh(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,Di(t)))}function Il(){if(gl!==null){var e=gl,t=bs;bs=0;var n=le(Zi),l=$.T,r=J.p;try{if(J.p=32>n?32:n,$.T=null,gl===null)var s=!1;else{n=Ss,Ss=null;var d=gl,E=Zi;if(gl=null,Zi=0,rt&6)throw Error(c(331));var S=rt;if(rt|=4,jh(d.current),Th(d,d.current,E,n),rt=S,$i(0,!1),pt&&typeof pt.onPostCommitFiberRoot=="function")try{pt.onPostCommitFiberRoot(tn,d)}catch{}s=!0}return s}finally{J.p=r,$.T=l,Xh(e,t)}}return!1}function Qh(e,t,n){t=En(n,t),t=Xc(e.stateNode,t,2),e=La(e,t,2),e!==null&&(X(e,2),Kn(e))}function Fe(e,t,n){if(e.tag===3)Qh(e,e,n);else for(;t!==null;){if(t.tag===3){Qh(t,e,n);break}else if(t.tag===1){var l=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof l.componentDidCatch=="function"&&(Va===null||!Va.has(l))){e=En(n,e),n=$d(2),l=La(t,n,2),l!==null&&(Jd(n,l,t,e),X(l,2),Kn(l));break}}t=t.return}}function Cs(e,t,n){var l=e.pingCache;if(l===null){l=e.pingCache=new Pv;var r=new Set;l.set(t,r)}else r=l.get(t),r===void 0&&(r=new Set,l.set(t,r));r.has(n)||(ps=!0,r.add(n),e=ag.bind(null,e,t,n),t.then(e,e))}function ag(e,t,n){var l=e.pingCache;l!==null&&l.delete(t),e.pingedLanes|=e.suspendedLanes&n,e.warmLanes&=~n,We===e&&(Be&n)===n&&(ft===4||ft===3&&(Be&62914560)===Be&&300>ct()-Es?!(rt&2)&&Pl(e,0):vs|=n,Fl===Be&&(Fl=0)),Kn(e)}function Zh(e,t){t===0&&(t=w()),e=Ca(e,t),e!==null&&(X(e,t),Kn(e))}function lg(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),Zh(e,n)}function ig(e,t){var n=0;switch(e.tag){case 13:var l=e.stateNode,r=e.memoizedState;r!==null&&(n=r.retryLane);break;case 19:l=e.stateNode;break;case 22:l=e.stateNode._retryCache;break;default:throw Error(c(314))}l!==null&&l.delete(t),Zh(e,n)}function rg(e,t){return hn(e,t)}var cu=null,ei=null,js=!1,su=!1,Os=!1,El=0;function Kn(e){e!==ei&&e.next===null&&(ei===null?cu=ei=e:ei=ei.next=e),su=!0,js||(js=!0,cg(ug))}function $i(e,t){if(!Os&&su){Os=!0;do for(var n=!1,l=cu;l!==null;){if(e!==0){var r=l.pendingLanes;if(r===0)var s=0;else{var d=l.suspendedLanes,E=l.pingedLanes;s=(1<<31-ht(42|e)+1)-1,s&=r&~(d&~E),s=s&201326677?s&201326677|1:s?s|2:0}s!==0&&(n=!0,Jh(l,s))}else s=Be,s=Ft(l,l===We?s:0),!(s&3)||yn(l,s)||(n=!0,Jh(l,s));l=l.next}while(n);Os=!1}}function ug(){su=js=!1;var e=0;El!==0&&(pg()&&(e=El),El=0);for(var t=ct(),n=null,l=cu;l!==null;){var r=l.next,s=Kh(l,t);s===0?(l.next=null,n===null?cu=r:n.next=r,r===null&&(ei=n)):(n=l,(e!==0||s&3)&&(su=!0)),l=r}$i(e)}function Kh(e,t){for(var n=e.suspendedLanes,l=e.pingedLanes,r=e.expirationTimes,s=e.pendingLanes&-62914561;0<s;){var d=31-ht(s),E=1<<d,S=r[d];S===-1?(!(E&n)||E&l)&&(r[d]=Ta(E,t)):S<=t&&(e.expiredLanes|=E),s&=~E}if(t=We,n=Be,n=Ft(e,e===t?n:0),l=e.callbackNode,n===0||e===t&&Ie===2||e.cancelPendingCommit!==null)return l!==null&&l!==null&&Tt(l),e.callbackNode=null,e.callbackPriority=0;if(!(n&3)||yn(e,n)){if(t=n&-n,t===e.callbackPriority)return t;switch(l!==null&&Tt(l),le(n)){case 2:case 8:n=Mt;break;case 32:n=kt;break;case 268435456:n=Vt;break;default:n=kt}return l=$h.bind(null,e),n=hn(n,l),e.callbackPriority=t,e.callbackNode=n,t}return l!==null&&l!==null&&Tt(l),e.callbackPriority=2,e.callbackNode=null,2}function $h(e,t){var n=e.callbackNode;if(Il()&&e.callbackNode!==n)return null;var l=Be;return l=Ft(e,e===We?l:0),l===0?null:(Lh(e,l,t),Kh(e,ct()),e.callbackNode!=null&&e.callbackNode===n?$h.bind(null,e):null)}function Jh(e,t){if(Il())return null;Lh(e,t,!0)}function cg(e){gg(function(){rt&6?hn(be,e):e()})}function Ds(){return El===0&&(El=N()),El}function Fh(e){return e==null||typeof e=="symbol"||typeof e=="boolean"?null:typeof e=="function"?e:_r(""+e)}function Ph(e,t){var n=t.ownerDocument.createElement("input");return n.name=t.name,n.value=t.value,e.id&&n.setAttribute("form",e.id),t.parentNode.insertBefore(n,t),e=new FormData(e),n.parentNode.removeChild(n),e}function sg(e,t,n,l,r){if(t==="submit"&&n&&n.stateNode===r){var s=Fh((r[Oe]||null).action),d=l.submitter;d&&(t=(t=d[Oe]||null)?Fh(t.formAction):d.getAttribute("formAction"),t!==null&&(s=t,d=null));var E=new Cr("action","action",null,l,r);e.push({event:E,listeners:[{instance:null,listener:function(){if(l.defaultPrevented){if(El!==0){var S=d?Ph(r,d):new FormData(r);qc(n,{pending:!0,data:S,method:r.method,action:s},null,S)}}else typeof s=="function"&&(E.preventDefault(),S=d?Ph(r,d):new FormData(r),qc(n,{pending:!0,data:S,method:r.method,action:s},s,S))},currentTarget:r}]})}}for(var As=0;As<Gf.length;As++){var ws=Gf[As],og=ws.toLowerCase(),fg=ws[0].toUpperCase()+ws.slice(1);zn(og,"on"+fg)}zn(Bf,"onAnimationEnd"),zn(qf,"onAnimationIteration"),zn(kf,"onAnimationStart"),zn("dblclick","onDoubleClick"),zn("focusin","onFocus"),zn("focusout","onBlur"),zn(jv,"onTransitionRun"),zn(Ov,"onTransitionStart"),zn(Dv,"onTransitionCancel"),zn(Vf,"onTransitionEnd"),Mn("onMouseEnter",["mouseout","mouseover"]),Mn("onMouseLeave",["mouseout","mouseover"]),Mn("onPointerEnter",["pointerout","pointerover"]),Mn("onPointerLeave",["pointerout","pointerover"]),nt("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),nt("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),nt("onBeforeInput",["compositionend","keypress","textInput","paste"]),nt("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),nt("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),nt("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Ji="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(" "),dg=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(Ji));function Wh(e,t){t=(t&4)!==0;for(var n=0;n<e.length;n++){var l=e[n],r=l.event;l=l.listeners;e:{var s=void 0;if(t)for(var d=l.length-1;0<=d;d--){var E=l[d],S=E.instance,O=E.currentTarget;if(E=E.listener,S!==s&&r.isPropagationStopped())break e;s=E,r.currentTarget=O;try{s(r)}catch(q){Jr(q)}r.currentTarget=null,s=S}else for(d=0;d<l.length;d++){if(E=l[d],S=E.instance,O=E.currentTarget,E=E.listener,S!==s&&r.isPropagationStopped())break e;s=E,r.currentTarget=O;try{s(r)}catch(q){Jr(q)}r.currentTarget=null,s=S}}}}function Ue(e,t){var n=t[$e];n===void 0&&(n=t[$e]=new Set);var l=e+"__bubble";n.has(l)||(Ih(t,e,2,!1),n.add(l))}function Ms(e,t,n){var l=0;t&&(l|=4),Ih(n,e,l,t)}var ou="_reactListening"+Math.random().toString(36).slice(2);function zs(e){if(!e[ou]){e[ou]=!0,el.forEach(function(n){n!=="selectionchange"&&(dg.has(n)||Ms(n,!1,e),Ms(n,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[ou]||(t[ou]=!0,Ms("selectionchange",!1,t))}}function Ih(e,t,n,l){switch(xm(t)){case 2:var r=Bg;break;case 8:r=qg;break;default:r=Ks}n=r.bind(null,t,n,e),r=void 0,!nc||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(r=!0),l?r!==void 0?e.addEventListener(t,n,{capture:!0,passive:r}):e.addEventListener(t,n,!0):r!==void 0?e.addEventListener(t,n,{passive:r}):e.addEventListener(t,n,!1)}function Ls(e,t,n,l,r){var s=l;if(!(t&1)&&!(t&2)&&l!==null)e:for(;;){if(l===null)return;var d=l.tag;if(d===3||d===4){var E=l.stateNode.containerInfo;if(E===r||E.nodeType===8&&E.parentNode===r)break;if(d===4)for(d=l.return;d!==null;){var S=d.tag;if((S===3||S===4)&&(S=d.stateNode.containerInfo,S===r||S.nodeType===8&&S.parentNode===r))return;d=d.return}for(;E!==null;){if(d=Ct(E),d===null)return;if(S=d.tag,S===5||S===6||S===26||S===27){l=s=d;continue e}E=E.parentNode}}l=l.return}mf(function(){var O=s,q=ec(n),G=[];e:{var L=Yf.get(e);if(L!==void 0){var B=Cr,oe=e;switch(e){case"keypress":if(Tr(n)===0)break e;case"keydown":case"keyup":B=iv;break;case"focusin":oe="focus",B=rc;break;case"focusout":oe="blur",B=rc;break;case"beforeblur":case"afterblur":B=rc;break;case"click":if(n.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":B=vf;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":B=Kp;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":B=cv;break;case Bf:case qf:case kf:B=Fp;break;case Vf:B=ov;break;case"scroll":case"scrollend":B=Qp;break;case"wheel":B=dv;break;case"copy":case"cut":case"paste":B=Wp;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":B=Ef;break;case"toggle":case"beforetoggle":B=mv}var Re=(t&4)!==0,dt=!Re&&(e==="scroll"||e==="scrollend"),D=Re?L!==null?L+"Capture":null:L;Re=[];for(var j=O,M;j!==null;){var Y=j;if(M=Y.stateNode,Y=Y.tag,Y!==5&&Y!==26&&Y!==27||M===null||D===null||(Y=mi(j,D),Y!=null&&Re.push(Fi(j,Y,M))),dt)break;j=j.return}0<Re.length&&(L=new B(L,oe,null,n,q),G.push({event:L,listeners:Re}))}}if(!(t&7)){e:{if(L=e==="mouseover"||e==="pointerover",B=e==="mouseout"||e==="pointerout",L&&n!==Iu&&(oe=n.relatedTarget||n.fromElement)&&(Ct(oe)||oe[tt]))break e;if((B||L)&&(L=q.window===q?q:(L=q.ownerDocument)?L.defaultView||L.parentWindow:window,B?(oe=n.relatedTarget||n.toElement,B=O,oe=oe?Ct(oe):null,oe!==null&&(dt=F(oe),Re=oe.tag,oe!==dt||Re!==5&&Re!==27&&Re!==6)&&(oe=null)):(B=null,oe=O),B!==oe)){if(Re=vf,Y="onMouseLeave",D="onMouseEnter",j="mouse",(e==="pointerout"||e==="pointerover")&&(Re=Ef,Y="onPointerLeave",D="onPointerEnter",j="pointer"),dt=B==null?L:wn(B),M=oe==null?L:wn(oe),L=new Re(Y,j+"leave",B,n,q),L.target=dt,L.relatedTarget=M,Y=null,Ct(q)===O&&(Re=new Re(D,j+"enter",oe,n,q),Re.target=M,Re.relatedTarget=dt,Y=Re),dt=Y,B&&oe)t:{for(Re=B,D=oe,j=0,M=Re;M;M=ti(M))j++;for(M=0,Y=D;Y;Y=ti(Y))M++;for(;0<j-M;)Re=ti(Re),j--;for(;0<M-j;)D=ti(D),M--;for(;j--;){if(Re===D||D!==null&&Re===D.alternate)break t;Re=ti(Re),D=ti(D)}Re=null}else Re=null;B!==null&&em(G,L,B,Re,!1),oe!==null&&dt!==null&&em(G,dt,oe,Re,!0)}}e:{if(L=O?wn(O):window,B=L.nodeName&&L.nodeName.toLowerCase(),B==="select"||B==="input"&&L.type==="file")var re=Cf;else if(Tf(L))if(jf)re=Rv;else{re=xv;var Ae=Sv}else B=L.nodeName,!B||B.toLowerCase()!=="input"||L.type!=="checkbox"&&L.type!=="radio"?O&&Wu(O.elementType)&&(re=Cf):re=_v;if(re&&(re=re(e,O))){Nf(G,re,n,q);break e}Ae&&Ae(e,L,O),e==="focusout"&&O&&L.type==="number"&&O.memoizedProps.value!=null&&Pu(L,"number",L.value)}switch(Ae=O?wn(O):window,e){case"focusin":(Tf(Ae)||Ae.contentEditable==="true")&&(Ml=Ae,dc=O,xi=null);break;case"focusout":xi=dc=Ml=null;break;case"mousedown":hc=!0;break;case"contextmenu":case"mouseup":case"dragend":hc=!1,Uf(G,n,q);break;case"selectionchange":if(Cv)break;case"keydown":case"keyup":Uf(G,n,q)}var he;if(cc)e:{switch(e){case"compositionstart":var Ee="onCompositionStart";break e;case"compositionend":Ee="onCompositionEnd";break e;case"compositionupdate":Ee="onCompositionUpdate";break e}Ee=void 0}else wl?_f(e,n)&&(Ee="onCompositionEnd"):e==="keydown"&&n.keyCode===229&&(Ee="onCompositionStart");Ee&&(bf&&n.locale!=="ko"&&(wl||Ee!=="onCompositionStart"?Ee==="onCompositionEnd"&&wl&&(he=yf()):(Na=q,ac="value"in Na?Na.value:Na.textContent,wl=!0)),Ae=fu(O,Ee),0<Ae.length&&(Ee=new gf(Ee,e,null,n,q),G.push({event:Ee,listeners:Ae}),he?Ee.data=he:(he=Rf(n),he!==null&&(Ee.data=he)))),(he=pv?vv(e,n):gv(e,n))&&(Ee=fu(O,"onBeforeInput"),0<Ee.length&&(Ae=new gf("onBeforeInput","beforeinput",null,n,q),G.push({event:Ae,listeners:Ee}),Ae.data=he)),sg(G,e,O,n,q)}Wh(G,t)})}function Fi(e,t,n){return{instance:e,listener:t,currentTarget:n}}function fu(e,t){for(var n=t+"Capture",l=[];e!==null;){var r=e,s=r.stateNode;r=r.tag,r!==5&&r!==26&&r!==27||s===null||(r=mi(e,n),r!=null&&l.unshift(Fi(e,r,s)),r=mi(e,t),r!=null&&l.push(Fi(e,r,s))),e=e.return}return l}function ti(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function em(e,t,n,l,r){for(var s=t._reactName,d=[];n!==null&&n!==l;){var E=n,S=E.alternate,O=E.stateNode;if(E=E.tag,S!==null&&S===l)break;E!==5&&E!==26&&E!==27||O===null||(S=O,r?(O=mi(n,s),O!=null&&d.unshift(Fi(n,O,S))):r||(O=mi(n,s),O!=null&&d.push(Fi(n,O,S)))),n=n.return}d.length!==0&&e.push({event:t,listeners:d})}var hg=/\r\n?/g,mg=/\u0000|\uFFFD/g;function tm(e){return(typeof e=="string"?e:""+e).replace(hg,` -`).replace(mg,"")}function nm(e,t){return t=tm(t),tm(e)===t}function du(){}function Qe(e,t,n,l,r,s){switch(n){case"children":typeof l=="string"?t==="body"||t==="textarea"&&l===""||Ol(e,l):(typeof l=="number"||typeof l=="bigint")&&t!=="body"&&Ol(e,""+l);break;case"className":br(e,"class",l);break;case"tabIndex":br(e,"tabindex",l);break;case"dir":case"role":case"viewBox":case"width":case"height":br(e,n,l);break;case"style":df(e,l,s);break;case"data":if(t!=="object"){br(e,"data",l);break}case"src":case"href":if(l===""&&(t!=="a"||n!=="href")){e.removeAttribute(n);break}if(l==null||typeof l=="function"||typeof l=="symbol"||typeof l=="boolean"){e.removeAttribute(n);break}l=_r(""+l),e.setAttribute(n,l);break;case"action":case"formAction":if(typeof l=="function"){e.setAttribute(n,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}else typeof s=="function"&&(n==="formAction"?(t!=="input"&&Qe(e,t,"name",r.name,r,null),Qe(e,t,"formEncType",r.formEncType,r,null),Qe(e,t,"formMethod",r.formMethod,r,null),Qe(e,t,"formTarget",r.formTarget,r,null)):(Qe(e,t,"encType",r.encType,r,null),Qe(e,t,"method",r.method,r,null),Qe(e,t,"target",r.target,r,null)));if(l==null||typeof l=="symbol"||typeof l=="boolean"){e.removeAttribute(n);break}l=_r(""+l),e.setAttribute(n,l);break;case"onClick":l!=null&&(e.onclick=du);break;case"onScroll":l!=null&&Ue("scroll",e);break;case"onScrollEnd":l!=null&&Ue("scrollend",e);break;case"dangerouslySetInnerHTML":if(l!=null){if(typeof l!="object"||!("__html"in l))throw Error(c(61));if(n=l.__html,n!=null){if(r.children!=null)throw Error(c(60));e.innerHTML=n}}break;case"multiple":e.multiple=l&&typeof l!="function"&&typeof l!="symbol";break;case"muted":e.muted=l&&typeof l!="function"&&typeof l!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(l==null||typeof l=="function"||typeof l=="boolean"||typeof l=="symbol"){e.removeAttribute("xlink:href");break}n=_r(""+l),e.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",n);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":l!=null&&typeof l!="function"&&typeof l!="symbol"?e.setAttribute(n,""+l):e.removeAttribute(n);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":l&&typeof l!="function"&&typeof l!="symbol"?e.setAttribute(n,""):e.removeAttribute(n);break;case"capture":case"download":l===!0?e.setAttribute(n,""):l!==!1&&l!=null&&typeof l!="function"&&typeof l!="symbol"?e.setAttribute(n,l):e.removeAttribute(n);break;case"cols":case"rows":case"size":case"span":l!=null&&typeof l!="function"&&typeof l!="symbol"&&!isNaN(l)&&1<=l?e.setAttribute(n,l):e.removeAttribute(n);break;case"rowSpan":case"start":l==null||typeof l=="function"||typeof l=="symbol"||isNaN(l)?e.removeAttribute(n):e.setAttribute(n,l);break;case"popover":Ue("beforetoggle",e),Ue("toggle",e),Er(e,"popover",l);break;case"xlinkActuate":la(e,"http://www.w3.org/1999/xlink","xlink:actuate",l);break;case"xlinkArcrole":la(e,"http://www.w3.org/1999/xlink","xlink:arcrole",l);break;case"xlinkRole":la(e,"http://www.w3.org/1999/xlink","xlink:role",l);break;case"xlinkShow":la(e,"http://www.w3.org/1999/xlink","xlink:show",l);break;case"xlinkTitle":la(e,"http://www.w3.org/1999/xlink","xlink:title",l);break;case"xlinkType":la(e,"http://www.w3.org/1999/xlink","xlink:type",l);break;case"xmlBase":la(e,"http://www.w3.org/XML/1998/namespace","xml:base",l);break;case"xmlLang":la(e,"http://www.w3.org/XML/1998/namespace","xml:lang",l);break;case"xmlSpace":la(e,"http://www.w3.org/XML/1998/namespace","xml:space",l);break;case"is":Er(e,"is",l);break;case"innerText":case"textContent":break;default:(!(2<n.length)||n[0]!=="o"&&n[0]!=="O"||n[1]!=="n"&&n[1]!=="N")&&(n=Gp.get(n)||n,Er(e,n,l))}}function Us(e,t,n,l,r,s){switch(n){case"style":df(e,l,s);break;case"dangerouslySetInnerHTML":if(l!=null){if(typeof l!="object"||!("__html"in l))throw Error(c(61));if(n=l.__html,n!=null){if(r.children!=null)throw Error(c(60));e.innerHTML=n}}break;case"children":typeof l=="string"?Ol(e,l):(typeof l=="number"||typeof l=="bigint")&&Ol(e,""+l);break;case"onScroll":l!=null&&Ue("scroll",e);break;case"onScrollEnd":l!=null&&Ue("scrollend",e);break;case"onClick":l!=null&&(e.onclick=du);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!Ye.hasOwnProperty(n))e:{if(n[0]==="o"&&n[1]==="n"&&(r=n.endsWith("Capture"),t=n.slice(2,r?n.length-7:void 0),s=e[Oe]||null,s=s!=null?s[n]:null,typeof s=="function"&&e.removeEventListener(t,s,r),typeof l=="function")){typeof s!="function"&&s!==null&&(n in e?e[n]=null:e.hasAttribute(n)&&e.removeAttribute(n)),e.addEventListener(t,l,r);break e}n in e?e[n]=l:l===!0?e.setAttribute(n,""):Er(e,n,l)}}}function Ht(e,t,n){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":Ue("error",e),Ue("load",e);var l=!1,r=!1,s;for(s in n)if(n.hasOwnProperty(s)){var d=n[s];if(d!=null)switch(s){case"src":l=!0;break;case"srcSet":r=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(c(137,t));default:Qe(e,t,s,d,n,null)}}r&&Qe(e,t,"srcSet",n.srcSet,n,null),l&&Qe(e,t,"src",n.src,n,null);return;case"input":Ue("invalid",e);var E=s=d=r=null,S=null,O=null;for(l in n)if(n.hasOwnProperty(l)){var q=n[l];if(q!=null)switch(l){case"name":r=q;break;case"type":d=q;break;case"checked":S=q;break;case"defaultChecked":O=q;break;case"value":s=q;break;case"defaultValue":E=q;break;case"children":case"dangerouslySetInnerHTML":if(q!=null)throw Error(c(137,t));break;default:Qe(e,t,l,q,n,null)}}cf(e,s,E,S,O,d,r,!1),Sr(e);return;case"select":Ue("invalid",e),l=d=s=null;for(r in n)if(n.hasOwnProperty(r)&&(E=n[r],E!=null))switch(r){case"value":s=E;break;case"defaultValue":d=E;break;case"multiple":l=E;default:Qe(e,t,r,E,n,null)}t=s,n=d,e.multiple=!!l,t!=null?jl(e,!!l,t,!1):n!=null&&jl(e,!!l,n,!0);return;case"textarea":Ue("invalid",e),s=r=l=null;for(d in n)if(n.hasOwnProperty(d)&&(E=n[d],E!=null))switch(d){case"value":l=E;break;case"defaultValue":r=E;break;case"children":s=E;break;case"dangerouslySetInnerHTML":if(E!=null)throw Error(c(91));break;default:Qe(e,t,d,E,n,null)}of(e,l,r,s),Sr(e);return;case"option":for(S in n)if(n.hasOwnProperty(S)&&(l=n[S],l!=null))switch(S){case"selected":e.selected=l&&typeof l!="function"&&typeof l!="symbol";break;default:Qe(e,t,S,l,n,null)}return;case"dialog":Ue("cancel",e),Ue("close",e);break;case"iframe":case"object":Ue("load",e);break;case"video":case"audio":for(l=0;l<Ji.length;l++)Ue(Ji[l],e);break;case"image":Ue("error",e),Ue("load",e);break;case"details":Ue("toggle",e);break;case"embed":case"source":case"link":Ue("error",e),Ue("load",e);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(O in n)if(n.hasOwnProperty(O)&&(l=n[O],l!=null))switch(O){case"children":case"dangerouslySetInnerHTML":throw Error(c(137,t));default:Qe(e,t,O,l,n,null)}return;default:if(Wu(t)){for(q in n)n.hasOwnProperty(q)&&(l=n[q],l!==void 0&&Us(e,t,q,l,n,void 0));return}}for(E in n)n.hasOwnProperty(E)&&(l=n[E],l!=null&&Qe(e,t,E,l,n,null))}function yg(e,t,n,l){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var r=null,s=null,d=null,E=null,S=null,O=null,q=null;for(B in n){var G=n[B];if(n.hasOwnProperty(B)&&G!=null)switch(B){case"checked":break;case"value":break;case"defaultValue":S=G;default:l.hasOwnProperty(B)||Qe(e,t,B,null,l,G)}}for(var L in l){var B=l[L];if(G=n[L],l.hasOwnProperty(L)&&(B!=null||G!=null))switch(L){case"type":s=B;break;case"name":r=B;break;case"checked":O=B;break;case"defaultChecked":q=B;break;case"value":d=B;break;case"defaultValue":E=B;break;case"children":case"dangerouslySetInnerHTML":if(B!=null)throw Error(c(137,t));break;default:B!==G&&Qe(e,t,L,B,l,G)}}Fu(e,d,E,S,O,q,s,r);return;case"select":B=d=E=L=null;for(s in n)if(S=n[s],n.hasOwnProperty(s)&&S!=null)switch(s){case"value":break;case"multiple":B=S;default:l.hasOwnProperty(s)||Qe(e,t,s,null,l,S)}for(r in l)if(s=l[r],S=n[r],l.hasOwnProperty(r)&&(s!=null||S!=null))switch(r){case"value":L=s;break;case"defaultValue":E=s;break;case"multiple":d=s;default:s!==S&&Qe(e,t,r,s,l,S)}t=E,n=d,l=B,L!=null?jl(e,!!n,L,!1):!!l!=!!n&&(t!=null?jl(e,!!n,t,!0):jl(e,!!n,n?[]:"",!1));return;case"textarea":B=L=null;for(E in n)if(r=n[E],n.hasOwnProperty(E)&&r!=null&&!l.hasOwnProperty(E))switch(E){case"value":break;case"children":break;default:Qe(e,t,E,null,l,r)}for(d in l)if(r=l[d],s=n[d],l.hasOwnProperty(d)&&(r!=null||s!=null))switch(d){case"value":L=r;break;case"defaultValue":B=r;break;case"children":break;case"dangerouslySetInnerHTML":if(r!=null)throw Error(c(91));break;default:r!==s&&Qe(e,t,d,r,l,s)}sf(e,L,B);return;case"option":for(var oe in n)if(L=n[oe],n.hasOwnProperty(oe)&&L!=null&&!l.hasOwnProperty(oe))switch(oe){case"selected":e.selected=!1;break;default:Qe(e,t,oe,null,l,L)}for(S in l)if(L=l[S],B=n[S],l.hasOwnProperty(S)&&L!==B&&(L!=null||B!=null))switch(S){case"selected":e.selected=L&&typeof L!="function"&&typeof L!="symbol";break;default:Qe(e,t,S,L,l,B)}return;case"img":case"link":case"area":case"base":case"br":case"col":case"embed":case"hr":case"keygen":case"meta":case"param":case"source":case"track":case"wbr":case"menuitem":for(var Re in n)L=n[Re],n.hasOwnProperty(Re)&&L!=null&&!l.hasOwnProperty(Re)&&Qe(e,t,Re,null,l,L);for(O in l)if(L=l[O],B=n[O],l.hasOwnProperty(O)&&L!==B&&(L!=null||B!=null))switch(O){case"children":case"dangerouslySetInnerHTML":if(L!=null)throw Error(c(137,t));break;default:Qe(e,t,O,L,l,B)}return;default:if(Wu(t)){for(var dt in n)L=n[dt],n.hasOwnProperty(dt)&&L!==void 0&&!l.hasOwnProperty(dt)&&Us(e,t,dt,void 0,l,L);for(q in l)L=l[q],B=n[q],!l.hasOwnProperty(q)||L===B||L===void 0&&B===void 0||Us(e,t,q,L,l,B);return}}for(var D in n)L=n[D],n.hasOwnProperty(D)&&L!=null&&!l.hasOwnProperty(D)&&Qe(e,t,D,null,l,L);for(G in l)L=l[G],B=n[G],!l.hasOwnProperty(G)||L===B||L==null&&B==null||Qe(e,t,G,L,l,B)}var Hs=null,Bs=null;function hu(e){return e.nodeType===9?e:e.ownerDocument}function am(e){switch(e){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function lm(e,t){if(e===0)switch(t){case"svg":return 1;case"math":return 2;default:return 0}return e===1&&t==="foreignObject"?0:e}function qs(e,t){return e==="textarea"||e==="noscript"||typeof t.children=="string"||typeof t.children=="number"||typeof t.children=="bigint"||typeof t.dangerouslySetInnerHTML=="object"&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var ks=null;function pg(){var e=window.event;return e&&e.type==="popstate"?e===ks?!1:(ks=e,!0):(ks=null,!1)}var im=typeof setTimeout=="function"?setTimeout:void 0,vg=typeof clearTimeout=="function"?clearTimeout:void 0,rm=typeof Promise=="function"?Promise:void 0,gg=typeof queueMicrotask=="function"?queueMicrotask:typeof rm<"u"?function(e){return rm.resolve(null).then(e).catch(Eg)}:im;function Eg(e){setTimeout(function(){throw e})}function Vs(e,t){var n=t,l=0;do{var r=n.nextSibling;if(e.removeChild(n),r&&r.nodeType===8)if(n=r.data,n==="/$"){if(l===0){e.removeChild(r),lr(t);return}l--}else n!=="$"&&n!=="$?"&&n!=="$!"||l++;n=r}while(n);lr(t)}function Ys(e){var t=e.firstChild;for(t&&t.nodeType===10&&(t=t.nextSibling);t;){var n=t;switch(t=t.nextSibling,n.nodeName){case"HTML":case"HEAD":case"BODY":Ys(n),nn(n);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(n.rel.toLowerCase()==="stylesheet")continue}e.removeChild(n)}}function bg(e,t,n,l){for(;e.nodeType===1;){var r=n;if(e.nodeName.toLowerCase()!==t.toLowerCase()){if(!l&&(e.nodeName!=="INPUT"||e.type!=="hidden"))break}else if(l){if(!e[An])switch(t){case"meta":if(!e.hasAttribute("itemprop"))break;return e;case"link":if(s=e.getAttribute("rel"),s==="stylesheet"&&e.hasAttribute("data-precedence"))break;if(s!==r.rel||e.getAttribute("href")!==(r.href==null?null:r.href)||e.getAttribute("crossorigin")!==(r.crossOrigin==null?null:r.crossOrigin)||e.getAttribute("title")!==(r.title==null?null:r.title))break;return e;case"style":if(e.hasAttribute("data-precedence"))break;return e;case"script":if(s=e.getAttribute("src"),(s!==(r.src==null?null:r.src)||e.getAttribute("type")!==(r.type==null?null:r.type)||e.getAttribute("crossorigin")!==(r.crossOrigin==null?null:r.crossOrigin))&&s&&e.hasAttribute("async")&&!e.hasAttribute("itemprop"))break;return e;default:return e}}else if(t==="input"&&e.type==="hidden"){var s=r.name==null?null:""+r.name;if(r.type==="hidden"&&e.getAttribute("name")===s)return e}else return e;if(e=Hn(e.nextSibling),e===null)break}return null}function Sg(e,t,n){if(t==="")return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!n||(e=Hn(e.nextSibling),e===null))return null;return e}function Hn(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t==="$"||t==="$!"||t==="$?"||t==="F!"||t==="F")break;if(t==="/$")return null}}return e}function um(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="$"||n==="$!"||n==="$?"){if(t===0)return e;t--}else n==="/$"&&t++}e=e.previousSibling}return null}function cm(e,t,n){switch(t=hu(n),e){case"html":if(e=t.documentElement,!e)throw Error(c(452));return e;case"head":if(e=t.head,!e)throw Error(c(453));return e;case"body":if(e=t.body,!e)throw Error(c(454));return e;default:throw Error(c(451))}}var Cn=new Map,sm=new Set;function mu(e){return typeof e.getRootNode=="function"?e.getRootNode():e.ownerDocument}var Ea=J.d;J.d={f:xg,r:_g,D:Rg,C:Tg,L:Ng,m:Cg,X:Og,S:jg,M:Dg};function xg(){var e=Ea.f(),t=ru();return e||t}function _g(e){var t=Yn(e);t!==null&&t.tag===5&&t.type==="form"?Ud(t):Ea.r(e)}var ni=typeof document>"u"?null:document;function om(e,t,n){var l=ni;if(l&&typeof t=="string"&&t){var r=vn(t);r='link[rel="'+e+'"][href="'+r+'"]',typeof n=="string"&&(r+='[crossorigin="'+n+'"]'),sm.has(r)||(sm.add(r),e={rel:e,crossOrigin:n,href:t},l.querySelector(r)===null&&(t=l.createElement("link"),Ht(t,"link",e),lt(t),l.head.appendChild(t)))}}function Rg(e){Ea.D(e),om("dns-prefetch",e,null)}function Tg(e,t){Ea.C(e,t),om("preconnect",e,t)}function Ng(e,t,n){Ea.L(e,t,n);var l=ni;if(l&&e&&t){var r='link[rel="preload"][as="'+vn(t)+'"]';t==="image"&&n&&n.imageSrcSet?(r+='[imagesrcset="'+vn(n.imageSrcSet)+'"]',typeof n.imageSizes=="string"&&(r+='[imagesizes="'+vn(n.imageSizes)+'"]')):r+='[href="'+vn(e)+'"]';var s=r;switch(t){case"style":s=ai(e);break;case"script":s=li(e)}Cn.has(s)||(e=ie({rel:"preload",href:t==="image"&&n&&n.imageSrcSet?void 0:e,as:t},n),Cn.set(s,e),l.querySelector(r)!==null||t==="style"&&l.querySelector(Pi(s))||t==="script"&&l.querySelector(Wi(s))||(t=l.createElement("link"),Ht(t,"link",e),lt(t),l.head.appendChild(t)))}}function Cg(e,t){Ea.m(e,t);var n=ni;if(n&&e){var l=t&&typeof t.as=="string"?t.as:"script",r='link[rel="modulepreload"][as="'+vn(l)+'"][href="'+vn(e)+'"]',s=r;switch(l){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":s=li(e)}if(!Cn.has(s)&&(e=ie({rel:"modulepreload",href:e},t),Cn.set(s,e),n.querySelector(r)===null)){switch(l){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(n.querySelector(Wi(s)))return}l=n.createElement("link"),Ht(l,"link",e),lt(l),n.head.appendChild(l)}}}function jg(e,t,n){Ea.S(e,t,n);var l=ni;if(l&&e){var r=Pt(l).hoistableStyles,s=ai(e);t=t||"default";var d=r.get(s);if(!d){var E={loading:0,preload:null};if(d=l.querySelector(Pi(s)))E.loading=5;else{e=ie({rel:"stylesheet",href:e,"data-precedence":t},n),(n=Cn.get(s))&&Gs(e,n);var S=d=l.createElement("link");lt(S),Ht(S,"link",e),S._p=new Promise(function(O,q){S.onload=O,S.onerror=q}),S.addEventListener("load",function(){E.loading|=1}),S.addEventListener("error",function(){E.loading|=2}),E.loading|=4,yu(d,t,l)}d={type:"stylesheet",instance:d,count:1,state:E},r.set(s,d)}}}function Og(e,t){Ea.X(e,t);var n=ni;if(n&&e){var l=Pt(n).hoistableScripts,r=li(e),s=l.get(r);s||(s=n.querySelector(Wi(r)),s||(e=ie({src:e,async:!0},t),(t=Cn.get(r))&&Xs(e,t),s=n.createElement("script"),lt(s),Ht(s,"link",e),n.head.appendChild(s)),s={type:"script",instance:s,count:1,state:null},l.set(r,s))}}function Dg(e,t){Ea.M(e,t);var n=ni;if(n&&e){var l=Pt(n).hoistableScripts,r=li(e),s=l.get(r);s||(s=n.querySelector(Wi(r)),s||(e=ie({src:e,async:!0,type:"module"},t),(t=Cn.get(r))&&Xs(e,t),s=n.createElement("script"),lt(s),Ht(s,"link",e),n.head.appendChild(s)),s={type:"script",instance:s,count:1,state:null},l.set(r,s))}}function fm(e,t,n,l){var r=(r=Ke.current)?mu(r):null;if(!r)throw Error(c(446));switch(e){case"meta":case"title":return null;case"style":return typeof n.precedence=="string"&&typeof n.href=="string"?(t=ai(n.href),n=Pt(r).hoistableStyles,l=n.get(t),l||(l={type:"style",instance:null,count:0,state:null},n.set(t,l)),l):{type:"void",instance:null,count:0,state:null};case"link":if(n.rel==="stylesheet"&&typeof n.href=="string"&&typeof n.precedence=="string"){e=ai(n.href);var s=Pt(r).hoistableStyles,d=s.get(e);if(d||(r=r.ownerDocument||r,d={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},s.set(e,d),(s=r.querySelector(Pi(e)))&&!s._p&&(d.instance=s,d.state.loading=5),Cn.has(e)||(n={rel:"preload",as:"style",href:n.href,crossOrigin:n.crossOrigin,integrity:n.integrity,media:n.media,hrefLang:n.hrefLang,referrerPolicy:n.referrerPolicy},Cn.set(e,n),s||Ag(r,e,n,d.state))),t&&l===null)throw Error(c(528,""));return d}if(t&&l!==null)throw Error(c(529,""));return null;case"script":return t=n.async,n=n.src,typeof n=="string"&&t&&typeof t!="function"&&typeof t!="symbol"?(t=li(n),n=Pt(r).hoistableScripts,l=n.get(t),l||(l={type:"script",instance:null,count:0,state:null},n.set(t,l)),l):{type:"void",instance:null,count:0,state:null};default:throw Error(c(444,e))}}function ai(e){return'href="'+vn(e)+'"'}function Pi(e){return'link[rel="stylesheet"]['+e+"]"}function dm(e){return ie({},e,{"data-precedence":e.precedence,precedence:null})}function Ag(e,t,n,l){e.querySelector('link[rel="preload"][as="style"]['+t+"]")?l.loading=1:(t=e.createElement("link"),l.preload=t,t.addEventListener("load",function(){return l.loading|=1}),t.addEventListener("error",function(){return l.loading|=2}),Ht(t,"link",n),lt(t),e.head.appendChild(t))}function li(e){return'[src="'+vn(e)+'"]'}function Wi(e){return"script[async]"+e}function hm(e,t,n){if(t.count++,t.instance===null)switch(t.type){case"style":var l=e.querySelector('style[data-href~="'+vn(n.href)+'"]');if(l)return t.instance=l,lt(l),l;var r=ie({},n,{"data-href":n.href,"data-precedence":n.precedence,href:null,precedence:null});return l=(e.ownerDocument||e).createElement("style"),lt(l),Ht(l,"style",r),yu(l,n.precedence,e),t.instance=l;case"stylesheet":r=ai(n.href);var s=e.querySelector(Pi(r));if(s)return t.state.loading|=4,t.instance=s,lt(s),s;l=dm(n),(r=Cn.get(r))&&Gs(l,r),s=(e.ownerDocument||e).createElement("link"),lt(s);var d=s;return d._p=new Promise(function(E,S){d.onload=E,d.onerror=S}),Ht(s,"link",l),t.state.loading|=4,yu(s,n.precedence,e),t.instance=s;case"script":return s=li(n.src),(r=e.querySelector(Wi(s)))?(t.instance=r,lt(r),r):(l=n,(r=Cn.get(s))&&(l=ie({},n),Xs(l,r)),e=e.ownerDocument||e,r=e.createElement("script"),lt(r),Ht(r,"link",l),e.head.appendChild(r),t.instance=r);case"void":return null;default:throw Error(c(443,t.type))}else t.type==="stylesheet"&&!(t.state.loading&4)&&(l=t.instance,t.state.loading|=4,yu(l,n.precedence,e));return t.instance}function yu(e,t,n){for(var l=n.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),r=l.length?l[l.length-1]:null,s=r,d=0;d<l.length;d++){var E=l[d];if(E.dataset.precedence===t)s=E;else if(s!==r)break}s?s.parentNode.insertBefore(e,s.nextSibling):(t=n.nodeType===9?n.head:n,t.insertBefore(e,t.firstChild))}function Gs(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.title==null&&(e.title=t.title)}function Xs(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.integrity==null&&(e.integrity=t.integrity)}var pu=null;function mm(e,t,n){if(pu===null){var l=new Map,r=pu=new Map;r.set(n,l)}else r=pu,l=r.get(n),l||(l=new Map,r.set(n,l));if(l.has(e))return l;for(l.set(e,null),n=n.getElementsByTagName(e),r=0;r<n.length;r++){var s=n[r];if(!(s[An]||s[me]||e==="link"&&s.getAttribute("rel")==="stylesheet")&&s.namespaceURI!=="http://www.w3.org/2000/svg"){var d=s.getAttribute(t)||"";d=e+d;var E=l.get(d);E?E.push(s):l.set(d,[s])}}return l}function ym(e,t,n){e=e.ownerDocument||e,e.head.insertBefore(n,t==="title"?e.querySelector("head > title"):null)}function wg(e,t,n){if(n===1||t.itemProp!=null)return!1;switch(e){case"meta":case"title":return!0;case"style":if(typeof t.precedence!="string"||typeof t.href!="string"||t.href==="")break;return!0;case"link":if(typeof t.rel!="string"||typeof t.href!="string"||t.href===""||t.onLoad||t.onError)break;switch(t.rel){case"stylesheet":return e=t.disabled,typeof t.precedence=="string"&&e==null;default:return!0}case"script":if(t.async&&typeof t.async!="function"&&typeof t.async!="symbol"&&!t.onLoad&&!t.onError&&t.src&&typeof t.src=="string")return!0}return!1}function pm(e){return!(e.type==="stylesheet"&&!(e.state.loading&3))}var Ii=null;function Mg(){}function zg(e,t,n){if(Ii===null)throw Error(c(475));var l=Ii;if(t.type==="stylesheet"&&(typeof n.media!="string"||matchMedia(n.media).matches!==!1)&&!(t.state.loading&4)){if(t.instance===null){var r=ai(n.href),s=e.querySelector(Pi(r));if(s){e=s._p,e!==null&&typeof e=="object"&&typeof e.then=="function"&&(l.count++,l=vu.bind(l),e.then(l,l)),t.state.loading|=4,t.instance=s,lt(s);return}s=e.ownerDocument||e,n=dm(n),(r=Cn.get(r))&&Gs(n,r),s=s.createElement("link"),lt(s);var d=s;d._p=new Promise(function(E,S){d.onload=E,d.onerror=S}),Ht(s,"link",n),t.instance=s}l.stylesheets===null&&(l.stylesheets=new Map),l.stylesheets.set(t,e),(e=t.state.preload)&&!(t.state.loading&3)&&(l.count++,t=vu.bind(l),e.addEventListener("load",t),e.addEventListener("error",t))}}function Lg(){if(Ii===null)throw Error(c(475));var e=Ii;return e.stylesheets&&e.count===0&&Qs(e,e.stylesheets),0<e.count?function(t){var n=setTimeout(function(){if(e.stylesheets&&Qs(e,e.stylesheets),e.unsuspend){var l=e.unsuspend;e.unsuspend=null,l()}},6e4);return e.unsuspend=t,function(){e.unsuspend=null,clearTimeout(n)}}:null}function vu(){if(this.count--,this.count===0){if(this.stylesheets)Qs(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var gu=null;function Qs(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,gu=new Map,t.forEach(Ug,e),gu=null,vu.call(e))}function Ug(e,t){if(!(t.state.loading&4)){var n=gu.get(e);if(n)var l=n.get(null);else{n=new Map,gu.set(e,n);for(var r=e.querySelectorAll("link[data-precedence],style[data-precedence]"),s=0;s<r.length;s++){var d=r[s];(d.nodeName==="LINK"||d.getAttribute("media")!=="not all")&&(n.set(d.dataset.precedence,d),l=d)}l&&n.set(null,l)}r=t.instance,d=r.getAttribute("data-precedence"),s=n.get(d)||l,s===l&&n.set(null,r),n.set(d,r),this.count++,l=vu.bind(this),r.addEventListener("load",l),r.addEventListener("error",l),s?s.parentNode.insertBefore(r,s.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(r,e.firstChild)),t.state.loading|=4}}var er={$$typeof:R,Provider:null,Consumer:null,_currentValue:ye,_currentValue2:ye,_threadCount:0};function Hg(e,t,n,l,r,s,d,E){this.tag=1,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=U(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.finishedLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=U(0),this.hiddenUpdates=U(null),this.identifierPrefix=l,this.onUncaughtError=r,this.onCaughtError=s,this.onRecoverableError=d,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=E,this.incompleteTransitions=new Map}function vm(e,t,n,l,r,s,d,E,S,O,q,G){return e=new Hg(e,t,n,d,E,S,O,G),t=1,s===!0&&(t|=24),s=Tn(3,null,null,t),e.current=s,s.stateNode=e,t=_c(),t.refCount++,e.pooledCache=t,t.refCount++,s.memoizedState={element:l,isDehydrated:n,cache:t},as(s),e}function gm(e){return e?(e=Ul,e):Ul}function Em(e,t,n,l,r,s){r=gm(r),l.context===null?l.context=r:l.pendingContext=r,l=za(t),l.payload={element:n},s=s===void 0?null:s,s!==null&&(l.callback=s),n=La(e,l,t),n!==null&&(Kt(n,e,t),Hi(n,e,t))}function bm(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function Zs(e,t){bm(e,t),(e=e.alternate)&&bm(e,t)}function Sm(e){if(e.tag===13){var t=Ca(e,67108864);t!==null&&Kt(t,e,67108864),Zs(e,67108864)}}var Eu=!0;function Bg(e,t,n,l){var r=$.T;$.T=null;var s=J.p;try{J.p=2,Ks(e,t,n,l)}finally{J.p=s,$.T=r}}function qg(e,t,n,l){var r=$.T;$.T=null;var s=J.p;try{J.p=8,Ks(e,t,n,l)}finally{J.p=s,$.T=r}}function Ks(e,t,n,l){if(Eu){var r=$s(l);if(r===null)Ls(e,t,l,bu,n),_m(e,l);else if(Vg(r,e,t,n,l))l.stopPropagation();else if(_m(e,l),t&4&&-1<kg.indexOf(e)){for(;r!==null;){var s=Yn(r);if(s!==null)switch(s.tag){case 3:if(s=s.stateNode,s.current.memoizedState.isDehydrated){var d=zt(s.pendingLanes);if(d!==0){var E=s;for(E.pendingLanes|=2,E.entangledLanes|=2;d;){var S=1<<31-ht(d);E.entanglements[1]|=S,d&=~S}Kn(s),!(rt&6)&&(au=ct()+500,$i(0))}}break;case 13:E=Ca(s,2),E!==null&&Kt(E,s,2),ru(),Zs(s,2)}if(s=$s(l),s===null&&Ls(e,t,l,bu,n),s===r)break;r=s}r!==null&&l.stopPropagation()}else Ls(e,t,l,null,n)}}function $s(e){return e=ec(e),Js(e)}var bu=null;function Js(e){if(bu=null,e=Ct(e),e!==null){var t=F(e);if(t===null)e=null;else{var n=t.tag;if(n===13){if(e=_e(t),e!==null)return e;e=null}else if(n===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null)}}return bu=e,null}function xm(e){switch(e){case"beforetoggle":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"toggle":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 2;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"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 8;case"message":switch(wt()){case be:return 2;case Mt:return 8;case kt:case _a:return 32;case Vt:return 268435456;default:return 32}default:return 32}}var Fs=!1,Ya=null,Ga=null,Xa=null,tr=new Map,nr=new Map,Qa=[],kg="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".split(" ");function _m(e,t){switch(e){case"focusin":case"focusout":Ya=null;break;case"dragenter":case"dragleave":Ga=null;break;case"mouseover":case"mouseout":Xa=null;break;case"pointerover":case"pointerout":tr.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":nr.delete(t.pointerId)}}function ar(e,t,n,l,r,s){return e===null||e.nativeEvent!==s?(e={blockedOn:t,domEventName:n,eventSystemFlags:l,nativeEvent:s,targetContainers:[r]},t!==null&&(t=Yn(t),t!==null&&Sm(t)),e):(e.eventSystemFlags|=l,t=e.targetContainers,r!==null&&t.indexOf(r)===-1&&t.push(r),e)}function Vg(e,t,n,l,r){switch(t){case"focusin":return Ya=ar(Ya,e,t,n,l,r),!0;case"dragenter":return Ga=ar(Ga,e,t,n,l,r),!0;case"mouseover":return Xa=ar(Xa,e,t,n,l,r),!0;case"pointerover":var s=r.pointerId;return tr.set(s,ar(tr.get(s)||null,e,t,n,l,r)),!0;case"gotpointercapture":return s=r.pointerId,nr.set(s,ar(nr.get(s)||null,e,t,n,l,r)),!0}return!1}function Rm(e){var t=Ct(e.target);if(t!==null){var n=F(t);if(n!==null){if(t=n.tag,t===13){if(t=_e(n),t!==null){e.blockedOn=t,I(e.priority,function(){if(n.tag===13){var l=cn(),r=Ca(n,l);r!==null&&Kt(r,n,l),Zs(n,l)}});return}}else if(t===3&&n.stateNode.current.memoizedState.isDehydrated){e.blockedOn=n.tag===3?n.stateNode.containerInfo:null;return}}}e.blockedOn=null}function Su(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=$s(e.nativeEvent);if(n===null){n=e.nativeEvent;var l=new n.constructor(n.type,n);Iu=l,n.target.dispatchEvent(l),Iu=null}else return t=Yn(n),t!==null&&Sm(t),e.blockedOn=n,!1;t.shift()}return!0}function Tm(e,t,n){Su(e)&&n.delete(t)}function Yg(){Fs=!1,Ya!==null&&Su(Ya)&&(Ya=null),Ga!==null&&Su(Ga)&&(Ga=null),Xa!==null&&Su(Xa)&&(Xa=null),tr.forEach(Tm),nr.forEach(Tm)}function xu(e,t){e.blockedOn===t&&(e.blockedOn=null,Fs||(Fs=!0,a.unstable_scheduleCallback(a.unstable_NormalPriority,Yg)))}var _u=null;function Nm(e){_u!==e&&(_u=e,a.unstable_scheduleCallback(a.unstable_NormalPriority,function(){_u===e&&(_u=null);for(var t=0;t<e.length;t+=3){var n=e[t],l=e[t+1],r=e[t+2];if(typeof l!="function"){if(Js(l||n)===null)continue;break}var s=Yn(n);s!==null&&(e.splice(t,3),t-=3,qc(s,{pending:!0,data:r,method:n.method,action:l},l,r))}}))}function lr(e){function t(S){return xu(S,e)}Ya!==null&&xu(Ya,e),Ga!==null&&xu(Ga,e),Xa!==null&&xu(Xa,e),tr.forEach(t),nr.forEach(t);for(var n=0;n<Qa.length;n++){var l=Qa[n];l.blockedOn===e&&(l.blockedOn=null)}for(;0<Qa.length&&(n=Qa[0],n.blockedOn===null);)Rm(n),n.blockedOn===null&&Qa.shift();if(n=(e.ownerDocument||e).$$reactFormReplay,n!=null)for(l=0;l<n.length;l+=3){var r=n[l],s=n[l+1],d=r[Oe]||null;if(typeof s=="function")d||Nm(n);else if(d){var E=null;if(s&&s.hasAttribute("formAction")){if(r=s,d=s[Oe]||null)E=d.formAction;else if(Js(r)!==null)continue}else E=d.action;typeof E=="function"?n[l+1]=E:(n.splice(l,3),l-=3),Nm(n)}}}function Ps(e){this._internalRoot=e}Ru.prototype.render=Ps.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(c(409));var n=t.current,l=cn();Em(n,l,e,t,null,null)},Ru.prototype.unmount=Ps.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;e.tag===0&&Il(),Em(e.current,2,null,e,null,null),ru(),t[tt]=null}};function Ru(e){this._internalRoot=e}Ru.prototype.unstable_scheduleHydration=function(e){if(e){var t=ue();e={blockedOn:null,target:e,priority:t};for(var n=0;n<Qa.length&&t!==0&&t<Qa[n].priority;n++);Qa.splice(n,0,e),n===0&&Rm(e)}};var Cm=i.version;if(Cm!=="19.0.0")throw Error(c(527,Cm,"19.0.0"));J.findDOMNode=function(e){var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(c(188)):(e=Object.keys(e).join(","),Error(c(268,e)));return e=V(t),e=e!==null?te(e):null,e=e===null?null:e.stateNode,e};var Gg={bundleType:0,version:"19.0.0",rendererPackageName:"react-dom",currentDispatcherRef:$,findFiberByHostInstance:Ct,reconcilerVersion:"19.0.0"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Tu=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Tu.isDisabled&&Tu.supportsFiber)try{tn=Tu.inject(Gg),pt=Tu}catch{}}return rr.createRoot=function(e,t){if(!o(e))throw Error(c(299));var n=!1,l="",r=Xd,s=Qd,d=Zd,E=null;return t!=null&&(t.unstable_strictMode===!0&&(n=!0),t.identifierPrefix!==void 0&&(l=t.identifierPrefix),t.onUncaughtError!==void 0&&(r=t.onUncaughtError),t.onCaughtError!==void 0&&(s=t.onCaughtError),t.onRecoverableError!==void 0&&(d=t.onRecoverableError),t.unstable_transitionCallbacks!==void 0&&(E=t.unstable_transitionCallbacks)),t=vm(e,1,!1,null,null,n,l,r,s,d,E,null),e[tt]=t.current,zs(e.nodeType===8?e.parentNode:e),new Ps(t)},rr.hydrateRoot=function(e,t,n){if(!o(e))throw Error(c(299));var l=!1,r="",s=Xd,d=Qd,E=Zd,S=null,O=null;return n!=null&&(n.unstable_strictMode===!0&&(l=!0),n.identifierPrefix!==void 0&&(r=n.identifierPrefix),n.onUncaughtError!==void 0&&(s=n.onUncaughtError),n.onCaughtError!==void 0&&(d=n.onCaughtError),n.onRecoverableError!==void 0&&(E=n.onRecoverableError),n.unstable_transitionCallbacks!==void 0&&(S=n.unstable_transitionCallbacks),n.formState!==void 0&&(O=n.formState)),t=vm(e,1,!0,t,n??null,l,r,s,d,E,S,O),t.context=gm(null),n=t.current,l=cn(),r=za(l),r.callback=null,La(n,r,l),t.current.lanes=l,X(t,l),Kn(t),e[tt]=t.current,zs(e),new Ru(t)},rr.version="19.0.0",rr}var Bm;function e0(){if(Bm)return eo.exports;Bm=1;function a(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(a)}catch(i){console.error(i)}}return a(),eo.exports=Ig(),eo.exports}var t0=e0();const n0="modulepreload",a0=function(a){return"/static/"+a},qm={},ve=function(i,u,c){let o=Promise.resolve();if(u&&u.length>0){document.getElementsByTagName("link");const h=document.querySelector("meta[property=csp-nonce]"),y=(h==null?void 0:h.nonce)||(h==null?void 0:h.getAttribute("nonce"));o=Promise.allSettled(u.map(p=>{if(p=a0(p),p in qm)return;qm[p]=!0;const v=p.endsWith(".css"),b=v?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${p}"]${b}`))return;const C=document.createElement("link");if(C.rel=v?"stylesheet":n0,v||(C.as="script"),C.crossOrigin="",C.href=p,y&&C.setAttribute("nonce",y),document.head.appendChild(C),v)return new Promise((x,R)=>{C.addEventListener("load",x),C.addEventListener("error",()=>R(new Error(`Unable to preload CSS for ${p}`)))})}))}function f(h){const y=new Event("vite:preloadError",{cancelable:!0});if(y.payload=h,window.dispatchEvent(y),!y.defaultPrevented)throw h}return o.then(h=>{for(const y of h||[])y.status==="rejected"&&f(y.reason);return i().catch(f)})};var lo={exports:{}},io={};/** +`+n.stack}}function I(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,t.flags&4098&&(n=t.return),e=t.return;while(e)}return t.tag===3?n:null}function Re(e){if(e.tag===13){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function _(e){if(I(e)!==e)throw Error(c(188))}function V(e){var t=e.alternate;if(!t){if(t=I(e),t===null)throw Error(c(188));return t!==e?null:e}for(var n=e,l=t;;){var r=n.return;if(r===null)break;var s=r.alternate;if(s===null){if(l=r.return,l!==null){n=l;continue}break}if(r.child===s.child){for(s=r.child;s;){if(s===n)return _(r),e;if(s===l)return _(r),t;s=s.sibling}throw Error(c(188))}if(n.return!==l.return)n=r,l=s;else{for(var d=!1,E=r.child;E;){if(E===n){d=!0,n=r,l=s;break}if(E===l){d=!0,l=r,n=s;break}E=E.sibling}if(!d){for(E=s.child;E;){if(E===n){d=!0,n=s,l=r;break}if(E===l){d=!0,l=s,n=r;break}E=E.sibling}if(!d)throw Error(c(189))}}if(n.alternate!==l)throw Error(c(190))}if(n.tag!==3)throw Error(c(188));return n.stateNode.current===n?e:t}function ne(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e;for(e=e.child;e!==null;){if(t=ne(e),t!==null)return t;e=e.sibling}return null}var W=Array.isArray,F=u.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,ge={pending:!1,data:null,method:null,action:null},he=[],Ze=-1;function Te(e){return{current:e}}function He(e){0>Ze||(e.current=he[Ze],he[Ze]=null,Ze--)}function pe(e,t){Ze++,he[Ze]=e.current,e.current=t}var Ke=Te(null),Et=Te(null),mt=Te(null),nt=Te(null);function we(e,t){switch(pe(mt,t),pe(Et,e),pe(Ke,null),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)&&(t=t.namespaceURI)?lm(t):0;break;default:if(e=e===8?t.parentNode:t,t=e.tagName,e=e.namespaceURI)e=lm(e),t=im(e,t);else switch(t){case"svg":t=1;break;case"math":t=2;break;default:t=0}}He(Ke),pe(Ke,t)}function Tt(){He(Ke),He(Et),He(mt)}function Dt(e){e.memoizedState!==null&&pe(nt,e);var t=Ke.current,n=im(t,e.type);t!==n&&(pe(Et,e),pe(Ke,n))}function en(e){Et.current===e&&(He(Ke),He(Et)),nt.current===e&&(He(nt),er._currentValue=ge)}var fn=Object.prototype.hasOwnProperty,dn=a.unstable_scheduleCallback,hn=a.unstable_cancelCallback,Ht=a.unstable_shouldYield,Jt=a.unstable_requestPaint,yt=a.unstable_now,mn=a.unstable_getCurrentPriorityLevel,xe=a.unstable_ImmediatePriority,at=a.unstable_UserBlockingPriority,Yt=a.unstable_NormalPriority,qn=a.unstable_LowPriority,Fn=a.unstable_IdlePriority,Gt=a.log,Pn=a.unstable_setDisableYieldValue,tn=null,pt=null;function Sa(e){if(pt&&typeof pt.onCommitFiberRoot=="function")try{pt.onCommitFiberRoot(tn,e,void 0,(e.current.flags&128)===128)}catch{}}function Bt(e){if(typeof Gt=="function"&&Pn(e),pt&&typeof pt.setStrictMode=="function")try{pt.setStrictMode(tn,e)}catch{}}var lt=Math.clz32?Math.clz32:xa,Wn=Math.log,kn=Math.LN2;function xa(e){return e>>>=0,e===0?32:31-(Wn(e)/kn|0)|0}var yn=128,An=4194304;function Xt(e){var t=e&42;if(t!==0)return t;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:return 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 e&4194176;case 4194304:case 8388608:case 16777216:case 33554432:return e&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return e}}function Ft(e,t){var n=e.pendingLanes;if(n===0)return 0;var l=0,r=e.suspendedLanes,s=e.pingedLanes,d=e.warmLanes;e=e.finishedLanes!==0;var E=n&134217727;return E!==0?(n=E&~r,n!==0?l=Xt(n):(s&=E,s!==0?l=Xt(s):e||(d=E&~d,d!==0&&(l=Xt(d))))):(E=n&~r,E!==0?l=Xt(E):s!==0?l=Xt(s):e||(d=n&~d,d!==0&&(l=Xt(d)))),l===0?0:t!==0&&t!==l&&!(t&r)&&(r=l&-l,d=t&-t,r>=d||r===32&&(d&4194176)!==0)?t:l}function Qt(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function _a(e,t){switch(e){case 1:case 2:case 4:case 8:return t+250;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;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function br(){var e=yn;return yn<<=1,!(yn&4194176)&&(yn=128),e}function N(){var e=An;return An<<=1,!(An&62914560)&&(An=4194304),e}function A(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function L(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function K(e,t,n,l,r,s){var d=e.pendingLanes;e.pendingLanes=n,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=n,e.entangledLanes&=n,e.errorRecoveryDisabledLanes&=n,e.shellSuspendCounter=0;var E=e.entanglements,S=e.expirationTimes,j=e.hiddenUpdates;for(n=d&~n;0<n;){var q=31-lt(n),Q=1<<q;E[q]=0,S[q]=-1;var z=j[q];if(z!==null)for(j[q]=null,q=0;q<z.length;q++){var H=z[q];H!==null&&(H.lane&=-536870913)}n&=~Q}l!==0&&te(e,l,0),s!==0&&r===0&&e.tag!==0&&(e.suspendedLanes|=s&~(d&~t))}function te(e,t,n){e.pendingLanes|=t,e.suspendedLanes&=~t;var l=31-lt(t);e.entangledLanes|=t,e.entanglements[l]=e.entanglements[l]|1073741824|n&4194218}function de(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var l=31-lt(n),r=1<<l;r&t|e[l]&t&&(e[l]|=t),n&=~r}}function Se(e){return e&=-e,2<e?8<e?e&134217727?32:268435456:8:2}function le(){var e=F.p;return e!==0?e:(e=window.event,e===void 0?32:_m(e.type))}function ce(e,t){var n=F.p;try{return F.p=e,t()}finally{F.p=n}}var P=Math.random().toString(36).slice(2),se="__reactFiber$"+P,ye="__reactProps$"+P,ke="__reactContainer$"+P,vt="__reactEvents$"+P,tt="__reactListeners$"+P,$e="__reactHandles$"+P,ot="__reactResources$"+P,pn="__reactMarker$"+P;function In(e){delete e[se],delete e[ye],delete e[vt],delete e[tt],delete e[$e]}function At(e){var t=e[se];if(t)return t;for(var n=e.parentNode;n;){if(t=n[ke]||n[se]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=cm(e);e!==null;){if(n=e[se])return n;e=cm(e)}return t}e=n,n=e.parentNode}return null}function wt(e){if(e=e[se]||e[ke]){var t=e.tag;if(t===5||t===6||t===13||t===26||t===27||t===3)return e}return null}function ea(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e.stateNode;throw Error(c(33))}function vn(e){var t=e[ot];return t||(t=e[ot]={hoistableStyles:new Map,hoistableScripts:new Map}),t}function Fe(e){e[pn]=!0}var Wa=new Set,Ia={};function Le(e,t){it(e,t),it(e+"Capture",t)}function it(e,t){for(Ia[e]=t,e=0;e<t.length;e++)Wa.add(t[e])}var Pt=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),el=RegExp("^[: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]*$"),rt={},ta={};function Sr(e){return fn.call(ta,e)?!0:fn.call(rt,e)?!1:el.test(e)?ta[e]=!0:(rt[e]=!0,!1)}function jl(e,t,n){if(Sr(t))if(n===null)e.removeAttribute(t);else{switch(typeof n){case"undefined":case"function":case"symbol":e.removeAttribute(t);return;case"boolean":var l=t.toLowerCase().slice(0,5);if(l!=="data-"&&l!=="aria-"){e.removeAttribute(t);return}}e.setAttribute(t,""+n)}}function xr(e,t,n){if(n===null)e.removeAttribute(t);else{switch(typeof n){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(t);return}e.setAttribute(t,""+n)}}function na(e,t,n,l){if(l===null)e.removeAttribute(n);else{switch(typeof l){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(n);return}e.setAttributeNS(t,n,""+l)}}function gn(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function uf(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function kp(e){var t=uf(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),l=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var r=n.get,s=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return r.call(this)},set:function(d){l=""+d,s.call(this,d)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return l},setValue:function(d){l=""+d},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function _r(e){e._valueTracker||(e._valueTracker=kp(e))}function cf(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),l="";return e&&(l=uf(e)?e.checked?"true":"false":e.value),e=l,e!==n?(t.setValue(e),!0):!1}function Rr(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}var Vp=/[\n"\\]/g;function En(e){return e.replace(Vp,function(t){return"\\"+t.charCodeAt(0).toString(16)+" "})}function Pu(e,t,n,l,r,s,d,E){e.name="",d!=null&&typeof d!="function"&&typeof d!="symbol"&&typeof d!="boolean"?e.type=d:e.removeAttribute("type"),t!=null?d==="number"?(t===0&&e.value===""||e.value!=t)&&(e.value=""+gn(t)):e.value!==""+gn(t)&&(e.value=""+gn(t)):d!=="submit"&&d!=="reset"||e.removeAttribute("value"),t!=null?Wu(e,d,gn(t)):n!=null?Wu(e,d,gn(n)):l!=null&&e.removeAttribute("value"),r==null&&s!=null&&(e.defaultChecked=!!s),r!=null&&(e.checked=r&&typeof r!="function"&&typeof r!="symbol"),E!=null&&typeof E!="function"&&typeof E!="symbol"&&typeof E!="boolean"?e.name=""+gn(E):e.removeAttribute("name")}function sf(e,t,n,l,r,s,d,E){if(s!=null&&typeof s!="function"&&typeof s!="symbol"&&typeof s!="boolean"&&(e.type=s),t!=null||n!=null){if(!(s!=="submit"&&s!=="reset"||t!=null))return;n=n!=null?""+gn(n):"",t=t!=null?""+gn(t):n,E||t===e.value||(e.value=t),e.defaultValue=t}l=l??r,l=typeof l!="function"&&typeof l!="symbol"&&!!l,e.checked=E?e.checked:!!l,e.defaultChecked=!!l,d!=null&&typeof d!="function"&&typeof d!="symbol"&&typeof d!="boolean"&&(e.name=d)}function Wu(e,t,n){t==="number"&&Rr(e.ownerDocument)===e||e.defaultValue===""+n||(e.defaultValue=""+n)}function Ol(e,t,n,l){if(e=e.options,t){t={};for(var r=0;r<n.length;r++)t["$"+n[r]]=!0;for(n=0;n<e.length;n++)r=t.hasOwnProperty("$"+e[n].value),e[n].selected!==r&&(e[n].selected=r),r&&l&&(e[n].defaultSelected=!0)}else{for(n=""+gn(n),t=null,r=0;r<e.length;r++){if(e[r].value===n){e[r].selected=!0,l&&(e[r].defaultSelected=!0);return}t!==null||e[r].disabled||(t=e[r])}t!==null&&(t.selected=!0)}}function of(e,t,n){if(t!=null&&(t=""+gn(t),t!==e.value&&(e.value=t),n==null)){e.defaultValue!==t&&(e.defaultValue=t);return}e.defaultValue=n!=null?""+gn(n):""}function ff(e,t,n,l){if(t==null){if(l!=null){if(n!=null)throw Error(c(92));if(W(l)){if(1<l.length)throw Error(c(93));l=l[0]}n=l}n==null&&(n=""),t=n}n=gn(t),e.defaultValue=n,l=e.textContent,l===n&&l!==""&&l!==null&&(e.value=l)}function Dl(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var Yp=new Set("animationIterationCount aspectRatio borderImageOutset borderImageSlice borderImageWidth boxFlex boxFlexGroup boxOrdinalGroup columnCount columns flex flexGrow flexPositive flexShrink flexNegative flexOrder gridArea gridRow gridRowEnd gridRowSpan gridRowStart gridColumn gridColumnEnd gridColumnSpan gridColumnStart fontWeight lineClamp lineHeight opacity order orphans scale tabSize widows zIndex zoom fillOpacity floodOpacity stopOpacity strokeDasharray strokeDashoffset strokeMiterlimit strokeOpacity strokeWidth MozAnimationIterationCount MozBoxFlex MozBoxFlexGroup MozLineClamp msAnimationIterationCount msFlex msZoom msFlexGrow msFlexNegative msFlexOrder msFlexPositive msFlexShrink msGridColumn msGridColumnSpan msGridRow msGridRowSpan WebkitAnimationIterationCount WebkitBoxFlex WebKitBoxFlexGroup WebkitBoxOrdinalGroup WebkitColumnCount WebkitColumns WebkitFlex WebkitFlexGrow WebkitFlexPositive WebkitFlexShrink WebkitLineClamp".split(" "));function df(e,t,n){var l=t.indexOf("--")===0;n==null||typeof n=="boolean"||n===""?l?e.setProperty(t,""):t==="float"?e.cssFloat="":e[t]="":l?e.setProperty(t,n):typeof n!="number"||n===0||Yp.has(t)?t==="float"?e.cssFloat=n:e[t]=(""+n).trim():e[t]=n+"px"}function hf(e,t,n){if(t!=null&&typeof t!="object")throw Error(c(62));if(e=e.style,n!=null){for(var l in n)!n.hasOwnProperty(l)||t!=null&&t.hasOwnProperty(l)||(l.indexOf("--")===0?e.setProperty(l,""):l==="float"?e.cssFloat="":e[l]="");for(var r in t)l=t[r],t.hasOwnProperty(r)&&n[r]!==l&&df(e,r,l)}else for(var s in t)t.hasOwnProperty(s)&&df(e,s,t[s])}function Iu(e){if(e.indexOf("-")===-1)return!1;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 Gp=new Map([["acceptCharset","accept-charset"],["htmlFor","for"],["httpEquiv","http-equiv"],["crossOrigin","crossorigin"],["accentHeight","accent-height"],["alignmentBaseline","alignment-baseline"],["arabicForm","arabic-form"],["baselineShift","baseline-shift"],["capHeight","cap-height"],["clipPath","clip-path"],["clipRule","clip-rule"],["colorInterpolation","color-interpolation"],["colorInterpolationFilters","color-interpolation-filters"],["colorProfile","color-profile"],["colorRendering","color-rendering"],["dominantBaseline","dominant-baseline"],["enableBackground","enable-background"],["fillOpacity","fill-opacity"],["fillRule","fill-rule"],["floodColor","flood-color"],["floodOpacity","flood-opacity"],["fontFamily","font-family"],["fontSize","font-size"],["fontSizeAdjust","font-size-adjust"],["fontStretch","font-stretch"],["fontStyle","font-style"],["fontVariant","font-variant"],["fontWeight","font-weight"],["glyphName","glyph-name"],["glyphOrientationHorizontal","glyph-orientation-horizontal"],["glyphOrientationVertical","glyph-orientation-vertical"],["horizAdvX","horiz-adv-x"],["horizOriginX","horiz-origin-x"],["imageRendering","image-rendering"],["letterSpacing","letter-spacing"],["lightingColor","lighting-color"],["markerEnd","marker-end"],["markerMid","marker-mid"],["markerStart","marker-start"],["overlinePosition","overline-position"],["overlineThickness","overline-thickness"],["paintOrder","paint-order"],["panose-1","panose-1"],["pointerEvents","pointer-events"],["renderingIntent","rendering-intent"],["shapeRendering","shape-rendering"],["stopColor","stop-color"],["stopOpacity","stop-opacity"],["strikethroughPosition","strikethrough-position"],["strikethroughThickness","strikethrough-thickness"],["strokeDasharray","stroke-dasharray"],["strokeDashoffset","stroke-dashoffset"],["strokeLinecap","stroke-linecap"],["strokeLinejoin","stroke-linejoin"],["strokeMiterlimit","stroke-miterlimit"],["strokeOpacity","stroke-opacity"],["strokeWidth","stroke-width"],["textAnchor","text-anchor"],["textDecoration","text-decoration"],["textRendering","text-rendering"],["transformOrigin","transform-origin"],["underlinePosition","underline-position"],["underlineThickness","underline-thickness"],["unicodeBidi","unicode-bidi"],["unicodeRange","unicode-range"],["unitsPerEm","units-per-em"],["vAlphabetic","v-alphabetic"],["vHanging","v-hanging"],["vIdeographic","v-ideographic"],["vMathematical","v-mathematical"],["vectorEffect","vector-effect"],["vertAdvY","vert-adv-y"],["vertOriginX","vert-origin-x"],["vertOriginY","vert-origin-y"],["wordSpacing","word-spacing"],["writingMode","writing-mode"],["xmlnsXlink","xmlns:xlink"],["xHeight","x-height"]]),Xp=/^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*:/i;function Tr(e){return Xp.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}var ec=null;function tc(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Al=null,wl=null;function mf(e){var t=wt(e);if(t&&(e=t.stateNode)){var n=e[ye]||null;e:switch(e=t.stateNode,t.type){case"input":if(Pu(e,n.value,n.defaultValue,n.defaultValue,n.checked,n.defaultChecked,n.type,n.name),t=n.name,n.type==="radio"&&t!=null){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll('input[name="'+En(""+t)+'"][type="radio"]'),t=0;t<n.length;t++){var l=n[t];if(l!==e&&l.form===e.form){var r=l[ye]||null;if(!r)throw Error(c(90));Pu(l,r.value,r.defaultValue,r.defaultValue,r.checked,r.defaultChecked,r.type,r.name)}}for(t=0;t<n.length;t++)l=n[t],l.form===e.form&&cf(l)}break e;case"textarea":of(e,n.value,n.defaultValue);break e;case"select":t=n.value,t!=null&&Ol(e,!!n.multiple,t,!1)}}}var nc=!1;function yf(e,t,n){if(nc)return e(t,n);nc=!0;try{var l=e(t);return l}finally{if(nc=!1,(Al!==null||wl!==null)&&(cu(),Al&&(t=Al,e=wl,wl=Al=null,mf(t),e)))for(t=0;t<e.length;t++)mf(e[t])}}function mi(e,t){var n=e.stateNode;if(n===null)return null;var l=n[ye]||null;if(l===null)return null;n=l[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":(l=!l.disabled)||(e=e.type,l=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!l;break e;default:e=!1}if(e)return null;if(n&&typeof n!="function")throw Error(c(231,t,typeof n));return n}var ac=!1;if(Pt)try{var yi={};Object.defineProperty(yi,"passive",{get:function(){ac=!0}}),window.addEventListener("test",yi,yi),window.removeEventListener("test",yi,yi)}catch{ac=!1}var Ra=null,lc=null,Nr=null;function pf(){if(Nr)return Nr;var e,t=lc,n=t.length,l,r="value"in Ra?Ra.value:Ra.textContent,s=r.length;for(e=0;e<n&&t[e]===r[e];e++);var d=n-e;for(l=1;l<=d&&t[n-l]===r[s-l];l++);return Nr=r.slice(e,1<l?1-l:void 0)}function Cr(e){var t=e.keyCode;return"charCode"in e?(e=e.charCode,e===0&&t===13&&(e=13)):e=t,e===10&&(e=13),32<=e||e===13?e:0}function jr(){return!0}function vf(){return!1}function Wt(e){function t(n,l,r,s,d){this._reactName=n,this._targetInst=r,this.type=l,this.nativeEvent=s,this.target=d,this.currentTarget=null;for(var E in e)e.hasOwnProperty(E)&&(n=e[E],this[E]=n?n(s):s[E]);return this.isDefaultPrevented=(s.defaultPrevented!=null?s.defaultPrevented:s.returnValue===!1)?jr:vf,this.isPropagationStopped=vf,this}return ie(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var n=this.nativeEvent;n&&(n.preventDefault?n.preventDefault():typeof n.returnValue!="unknown"&&(n.returnValue=!1),this.isDefaultPrevented=jr)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=jr)},persist:function(){},isPersistent:jr}),t}var tl={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Or=Wt(tl),pi=ie({},tl,{view:0,detail:0}),Qp=Wt(pi),ic,rc,vi,Dr=ie({},pi,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:cc,button:0,buttons:0,relatedTarget:function(e){return e.relatedTarget===void 0?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==vi&&(vi&&e.type==="mousemove"?(ic=e.screenX-vi.screenX,rc=e.screenY-vi.screenY):rc=ic=0,vi=e),ic)},movementY:function(e){return"movementY"in e?e.movementY:rc}}),gf=Wt(Dr),Zp=ie({},Dr,{dataTransfer:0}),Kp=Wt(Zp),$p=ie({},pi,{relatedTarget:0}),uc=Wt($p),Jp=ie({},tl,{animationName:0,elapsedTime:0,pseudoElement:0}),Fp=Wt(Jp),Pp=ie({},tl,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),Wp=Wt(Pp),Ip=ie({},tl,{data:0}),Ef=Wt(Ip),ev={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},tv={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"},nv={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function av(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=nv[e])?!!t[e]:!1}function cc(){return av}var lv=ie({},pi,{key:function(e){if(e.key){var t=ev[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=Cr(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?tv[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:cc,charCode:function(e){return e.type==="keypress"?Cr(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?Cr(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),iv=Wt(lv),rv=ie({},Dr,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),bf=Wt(rv),uv=ie({},pi,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:cc}),cv=Wt(uv),sv=ie({},tl,{propertyName:0,elapsedTime:0,pseudoElement:0}),ov=Wt(sv),fv=ie({},Dr,{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}),dv=Wt(fv),hv=ie({},tl,{newState:0,oldState:0}),mv=Wt(hv),yv=[9,13,27,32],sc=Pt&&"CompositionEvent"in window,gi=null;Pt&&"documentMode"in document&&(gi=document.documentMode);var pv=Pt&&"TextEvent"in window&&!gi,Sf=Pt&&(!sc||gi&&8<gi&&11>=gi),xf=" ",_f=!1;function Rf(e,t){switch(e){case"keyup":return yv.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Tf(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Ml=!1;function vv(e,t){switch(e){case"compositionend":return Tf(t);case"keypress":return t.which!==32?null:(_f=!0,xf);case"textInput":return e=t.data,e===xf&&_f?null:e;default:return null}}function gv(e,t){if(Ml)return e==="compositionend"||!sc&&Rf(e,t)?(e=pf(),Nr=lc=Ra=null,Ml=!1,e):null;switch(e){case"paste":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 Sf&&t.locale!=="ko"?null:t.data;default:return null}}var Ev={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 Nf(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!Ev[e.type]:t==="textarea"}function Cf(e,t,n,l){Al?wl?wl.push(l):wl=[l]:Al=l,t=hu(t,"onChange"),0<t.length&&(n=new Or("onChange","change",null,n,l),e.push({event:n,listeners:t}))}var Ei=null,bi=null;function bv(e){Ih(e,0)}function Ar(e){var t=ea(e);if(cf(t))return e}function jf(e,t){if(e==="change")return t}var Of=!1;if(Pt){var oc;if(Pt){var fc="oninput"in document;if(!fc){var Df=document.createElement("div");Df.setAttribute("oninput","return;"),fc=typeof Df.oninput=="function"}oc=fc}else oc=!1;Of=oc&&(!document.documentMode||9<document.documentMode)}function Af(){Ei&&(Ei.detachEvent("onpropertychange",wf),bi=Ei=null)}function wf(e){if(e.propertyName==="value"&&Ar(bi)){var t=[];Cf(t,bi,e,tc(e)),yf(bv,t)}}function Sv(e,t,n){e==="focusin"?(Af(),Ei=t,bi=n,Ei.attachEvent("onpropertychange",wf)):e==="focusout"&&Af()}function xv(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return Ar(bi)}function _v(e,t){if(e==="click")return Ar(t)}function Rv(e,t){if(e==="input"||e==="change")return Ar(t)}function Tv(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var nn=typeof Object.is=="function"?Object.is:Tv;function Si(e,t){if(nn(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var n=Object.keys(e),l=Object.keys(t);if(n.length!==l.length)return!1;for(l=0;l<n.length;l++){var r=n[l];if(!fn.call(t,r)||!nn(e[r],t[r]))return!1}return!0}function Mf(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function zf(e,t){var n=Mf(e);e=0;for(var l;n;){if(n.nodeType===3){if(l=e+n.textContent.length,e<=t&&l>=t)return{node:n,offset:t-e};e=l}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=Mf(n)}}function Lf(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Lf(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Uf(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=Rr(e.document);t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=Rr(e.document)}return t}function dc(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}function Nv(e,t){var n=Uf(t);t=e.focusedElem;var l=e.selectionRange;if(n!==t&&t&&t.ownerDocument&&Lf(t.ownerDocument.documentElement,t)){if(l!==null&&dc(t)){if(e=l.start,n=l.end,n===void 0&&(n=e),"selectionStart"in t)t.selectionStart=e,t.selectionEnd=Math.min(n,t.value.length);else if(n=(e=t.ownerDocument||document)&&e.defaultView||window,n.getSelection){n=n.getSelection();var r=t.textContent.length,s=Math.min(l.start,r);l=l.end===void 0?s:Math.min(l.end,r),!n.extend&&s>l&&(r=l,l=s,s=r),r=zf(t,s);var d=zf(t,l);r&&d&&(n.rangeCount!==1||n.anchorNode!==r.node||n.anchorOffset!==r.offset||n.focusNode!==d.node||n.focusOffset!==d.offset)&&(e=e.createRange(),e.setStart(r.node,r.offset),n.removeAllRanges(),s>l?(n.addRange(e),n.extend(d.node,d.offset)):(e.setEnd(d.node,d.offset),n.addRange(e)))}}for(e=[],n=t;n=n.parentNode;)n.nodeType===1&&e.push({element:n,left:n.scrollLeft,top:n.scrollTop});for(typeof t.focus=="function"&&t.focus(),t=0;t<e.length;t++)n=e[t],n.element.scrollLeft=n.left,n.element.scrollTop=n.top}}var Cv=Pt&&"documentMode"in document&&11>=document.documentMode,zl=null,hc=null,xi=null,mc=!1;function Hf(e,t,n){var l=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;mc||zl==null||zl!==Rr(l)||(l=zl,"selectionStart"in l&&dc(l)?l={start:l.selectionStart,end:l.selectionEnd}:(l=(l.ownerDocument&&l.ownerDocument.defaultView||window).getSelection(),l={anchorNode:l.anchorNode,anchorOffset:l.anchorOffset,focusNode:l.focusNode,focusOffset:l.focusOffset}),xi&&Si(xi,l)||(xi=l,l=hu(hc,"onSelect"),0<l.length&&(t=new Or("onSelect","select",null,t,n),e.push({event:t,listeners:l}),t.target=zl)))}function nl(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var Ll={animationend:nl("Animation","AnimationEnd"),animationiteration:nl("Animation","AnimationIteration"),animationstart:nl("Animation","AnimationStart"),transitionrun:nl("Transition","TransitionRun"),transitionstart:nl("Transition","TransitionStart"),transitioncancel:nl("Transition","TransitionCancel"),transitionend:nl("Transition","TransitionEnd")},yc={},Bf={};Pt&&(Bf=document.createElement("div").style,"AnimationEvent"in window||(delete Ll.animationend.animation,delete Ll.animationiteration.animation,delete Ll.animationstart.animation),"TransitionEvent"in window||delete Ll.transitionend.transition);function al(e){if(yc[e])return yc[e];if(!Ll[e])return e;var t=Ll[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in Bf)return yc[e]=t[n];return e}var qf=al("animationend"),kf=al("animationiteration"),Vf=al("animationstart"),jv=al("transitionrun"),Ov=al("transitionstart"),Dv=al("transitioncancel"),Yf=al("transitionend"),Gf=new Map,Xf="abort auxClick beforeToggle 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 scrollEnd toggle touchMove waiting wheel".split(" ");function wn(e,t){Gf.set(e,t),Le(t,[e])}var bn=[],Ul=0,pc=0;function wr(){for(var e=Ul,t=pc=Ul=0;t<e;){var n=bn[t];bn[t++]=null;var l=bn[t];bn[t++]=null;var r=bn[t];bn[t++]=null;var s=bn[t];if(bn[t++]=null,l!==null&&r!==null){var d=l.pending;d===null?r.next=r:(r.next=d.next,d.next=r),l.pending=r}s!==0&&Qf(n,r,s)}}function Mr(e,t,n,l){bn[Ul++]=e,bn[Ul++]=t,bn[Ul++]=n,bn[Ul++]=l,pc|=l,e.lanes|=l,e=e.alternate,e!==null&&(e.lanes|=l)}function vc(e,t,n,l){return Mr(e,t,n,l),zr(e)}function Ta(e,t){return Mr(e,null,null,t),zr(e)}function Qf(e,t,n){e.lanes|=n;var l=e.alternate;l!==null&&(l.lanes|=n);for(var r=!1,s=e.return;s!==null;)s.childLanes|=n,l=s.alternate,l!==null&&(l.childLanes|=n),s.tag===22&&(e=s.stateNode,e===null||e._visibility&1||(r=!0)),e=s,s=s.return;r&&t!==null&&e.tag===3&&(s=e.stateNode,r=31-lt(n),s=s.hiddenUpdates,e=s[r],e===null?s[r]=[t]:e.push(t),t.lane=n|536870912)}function zr(e){if(50<Ki)throw Ki=0,_s=null,Error(c(185));for(var t=e.return;t!==null;)e=t,t=e.return;return e.tag===3?e.stateNode:null}var Hl={},Zf=new WeakMap;function Sn(e,t){if(typeof e=="object"&&e!==null){var n=Zf.get(e);return n!==void 0?n:(t={value:e,source:t,stack:oe(t)},Zf.set(e,t),t)}return{value:e,source:t,stack:oe(t)}}var Bl=[],ql=0,Lr=null,Ur=0,xn=[],_n=0,ll=null,aa=1,la="";function il(e,t){Bl[ql++]=Ur,Bl[ql++]=Lr,Lr=e,Ur=t}function Kf(e,t,n){xn[_n++]=aa,xn[_n++]=la,xn[_n++]=ll,ll=e;var l=aa;e=la;var r=32-lt(l)-1;l&=~(1<<r),n+=1;var s=32-lt(t)+r;if(30<s){var d=r-r%5;s=(l&(1<<d)-1).toString(32),l>>=d,r-=d,aa=1<<32-lt(t)+r|n<<r|l,la=s+e}else aa=1<<s|n<<r|l,la=e}function gc(e){e.return!==null&&(il(e,1),Kf(e,1,0))}function Ec(e){for(;e===Lr;)Lr=Bl[--ql],Bl[ql]=null,Ur=Bl[--ql],Bl[ql]=null;for(;e===ll;)ll=xn[--_n],xn[_n]=null,la=xn[--_n],xn[_n]=null,aa=xn[--_n],xn[_n]=null}var Zt=null,Mt=null,Be=!1,Mn=null,Vn=!1,bc=Error(c(519));function rl(e){var t=Error(c(418,""));throw Ti(Sn(t,e)),bc}function $f(e){var t=e.stateNode,n=e.type,l=e.memoizedProps;switch(t[se]=e,t[ye]=l,n){case"dialog":Me("cancel",t),Me("close",t);break;case"iframe":case"object":case"embed":Me("load",t);break;case"video":case"audio":for(n=0;n<Ji.length;n++)Me(Ji[n],t);break;case"source":Me("error",t);break;case"img":case"image":case"link":Me("error",t),Me("load",t);break;case"details":Me("toggle",t);break;case"input":Me("invalid",t),sf(t,l.value,l.defaultValue,l.checked,l.defaultChecked,l.type,l.name,!0),_r(t);break;case"select":Me("invalid",t);break;case"textarea":Me("invalid",t),ff(t,l.value,l.defaultValue,l.children),_r(t)}n=l.children,typeof n!="string"&&typeof n!="number"&&typeof n!="bigint"||t.textContent===""+n||l.suppressHydrationWarning===!0||am(t.textContent,n)?(l.popover!=null&&(Me("beforetoggle",t),Me("toggle",t)),l.onScroll!=null&&Me("scroll",t),l.onScrollEnd!=null&&Me("scrollend",t),l.onClick!=null&&(t.onclick=mu),t=!0):t=!1,t||rl(e)}function Jf(e){for(Zt=e.return;Zt;)switch(Zt.tag){case 3:case 27:Vn=!0;return;case 5:case 13:Vn=!1;return;default:Zt=Zt.return}}function _i(e){if(e!==Zt)return!1;if(!Be)return Jf(e),Be=!0,!1;var t=!1,n;if((n=e.tag!==3&&e.tag!==27)&&((n=e.tag===5)&&(n=e.type,n=!(n!=="form"&&n!=="button")||ks(e.type,e.memoizedProps)),n=!n),n&&(t=!0),t&&Mt&&rl(e),Jf(e),e.tag===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(c(317));e:{for(e=e.nextSibling,t=0;e;){if(e.nodeType===8)if(n=e.data,n==="/$"){if(t===0){Mt=Ln(e.nextSibling);break e}t--}else n!=="$"&&n!=="$!"&&n!=="$?"||t++;e=e.nextSibling}Mt=null}}else Mt=Zt?Ln(e.stateNode.nextSibling):null;return!0}function Ri(){Mt=Zt=null,Be=!1}function Ti(e){Mn===null?Mn=[e]:Mn.push(e)}var Ni=Error(c(460)),Ff=Error(c(474)),Sc={then:function(){}};function Pf(e){return e=e.status,e==="fulfilled"||e==="rejected"}function Hr(){}function Wf(e,t,n){switch(n=e[n],n===void 0?e.push(t):n!==t&&(t.then(Hr,Hr),t=n),t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,e===Ni?Error(c(483)):e;default:if(typeof t.status=="string")t.then(Hr,Hr);else{if(e=Pe,e!==null&&100<e.shellSuspendCounter)throw Error(c(482));e=t,e.status="pending",e.then(function(l){if(t.status==="pending"){var r=t;r.status="fulfilled",r.value=l}},function(l){if(t.status==="pending"){var r=t;r.status="rejected",r.reason=l}})}switch(t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,e===Ni?Error(c(483)):e}throw Ci=t,Ni}}var Ci=null;function If(){if(Ci===null)throw Error(c(459));var e=Ci;return Ci=null,e}var kl=null,ji=0;function Br(e){var t=ji;return ji+=1,kl===null&&(kl=[]),Wf(kl,e,t)}function Oi(e,t){t=t.props.ref,e.ref=t!==void 0?t:null}function qr(e,t){throw t.$$typeof===f?Error(c(525)):(e=Object.prototype.toString.call(t),Error(c(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e)))}function ed(e){var t=e._init;return t(e._payload)}function td(e){function t(D,C){if(e){var M=D.deletions;M===null?(D.deletions=[C],D.flags|=16):M.push(C)}}function n(D,C){if(!e)return null;for(;C!==null;)t(D,C),C=C.sibling;return null}function l(D){for(var C=new Map;D!==null;)D.key!==null?C.set(D.key,D):C.set(D.index,D),D=D.sibling;return C}function r(D,C){return D=Ha(D,C),D.index=0,D.sibling=null,D}function s(D,C,M){return D.index=M,e?(M=D.alternate,M!==null?(M=M.index,M<C?(D.flags|=33554434,C):M):(D.flags|=33554434,C)):(D.flags|=1048576,C)}function d(D){return e&&D.alternate===null&&(D.flags|=33554434),D}function E(D,C,M,G){return C===null||C.tag!==6?(C=ys(M,D.mode,G),C.return=D,C):(C=r(C,M),C.return=D,C)}function S(D,C,M,G){var re=M.type;return re===v?q(D,C,M.props.children,G,M.key):C!==null&&(C.elementType===re||typeof re=="object"&&re!==null&&re.$$typeof===Y&&ed(re)===C.type)?(C=r(C,M.props),Oi(C,M),C.return=D,C):(C=au(M.type,M.key,M.props,null,D.mode,G),Oi(C,M),C.return=D,C)}function j(D,C,M,G){return C===null||C.tag!==4||C.stateNode.containerInfo!==M.containerInfo||C.stateNode.implementation!==M.implementation?(C=ps(M,D.mode,G),C.return=D,C):(C=r(C,M.children||[]),C.return=D,C)}function q(D,C,M,G,re){return C===null||C.tag!==7?(C=pl(M,D.mode,G,re),C.return=D,C):(C=r(C,M),C.return=D,C)}function Q(D,C,M){if(typeof C=="string"&&C!==""||typeof C=="number"||typeof C=="bigint")return C=ys(""+C,D.mode,M),C.return=D,C;if(typeof C=="object"&&C!==null){switch(C.$$typeof){case m:return M=au(C.type,C.key,C.props,null,D.mode,M),Oi(M,C),M.return=D,M;case y:return C=ps(C,D.mode,M),C.return=D,C;case Y:var G=C._init;return C=G(C._payload),Q(D,C,M)}if(W(C)||O(C))return C=pl(C,D.mode,M,null),C.return=D,C;if(typeof C.then=="function")return Q(D,Br(C),M);if(C.$$typeof===R)return Q(D,eu(D,C),M);qr(D,C)}return null}function z(D,C,M,G){var re=C!==null?C.key:null;if(typeof M=="string"&&M!==""||typeof M=="number"||typeof M=="bigint")return re!==null?null:E(D,C,""+M,G);if(typeof M=="object"&&M!==null){switch(M.$$typeof){case m:return M.key===re?S(D,C,M,G):null;case y:return M.key===re?j(D,C,M,G):null;case Y:return re=M._init,M=re(M._payload),z(D,C,M,G)}if(W(M)||O(M))return re!==null?null:q(D,C,M,G,null);if(typeof M.then=="function")return z(D,C,Br(M),G);if(M.$$typeof===R)return z(D,C,eu(D,M),G);qr(D,M)}return null}function H(D,C,M,G,re){if(typeof G=="string"&&G!==""||typeof G=="number"||typeof G=="bigint")return D=D.get(M)||null,E(C,D,""+G,re);if(typeof G=="object"&&G!==null){switch(G.$$typeof){case m:return D=D.get(G.key===null?M:G.key)||null,S(C,D,G,re);case y:return D=D.get(G.key===null?M:G.key)||null,j(C,D,G,re);case Y:var Oe=G._init;return G=Oe(G._payload),H(D,C,M,G,re)}if(W(G)||O(G))return D=D.get(M)||null,q(C,D,G,re,null);if(typeof G.then=="function")return H(D,C,M,Br(G),re);if(G.$$typeof===R)return H(D,C,M,eu(C,G),re);qr(C,G)}return null}function fe(D,C,M,G){for(var re=null,Oe=null,me=C,Ee=C=0,jt=null;me!==null&&Ee<M.length;Ee++){me.index>Ee?(jt=me,me=null):jt=me.sibling;var qe=z(D,me,M[Ee],G);if(qe===null){me===null&&(me=jt);break}e&&me&&qe.alternate===null&&t(D,me),C=s(qe,C,Ee),Oe===null?re=qe:Oe.sibling=qe,Oe=qe,me=jt}if(Ee===M.length)return n(D,me),Be&&il(D,Ee),re;if(me===null){for(;Ee<M.length;Ee++)me=Q(D,M[Ee],G),me!==null&&(C=s(me,C,Ee),Oe===null?re=me:Oe.sibling=me,Oe=me);return Be&&il(D,Ee),re}for(me=l(me);Ee<M.length;Ee++)jt=H(me,D,Ee,M[Ee],G),jt!==null&&(e&&jt.alternate!==null&&me.delete(jt.key===null?Ee:jt.key),C=s(jt,C,Ee),Oe===null?re=jt:Oe.sibling=jt,Oe=jt);return e&&me.forEach(function(Xa){return t(D,Xa)}),Be&&il(D,Ee),re}function _e(D,C,M,G){if(M==null)throw Error(c(151));for(var re=null,Oe=null,me=C,Ee=C=0,jt=null,qe=M.next();me!==null&&!qe.done;Ee++,qe=M.next()){me.index>Ee?(jt=me,me=null):jt=me.sibling;var Xa=z(D,me,qe.value,G);if(Xa===null){me===null&&(me=jt);break}e&&me&&Xa.alternate===null&&t(D,me),C=s(Xa,C,Ee),Oe===null?re=Xa:Oe.sibling=Xa,Oe=Xa,me=jt}if(qe.done)return n(D,me),Be&&il(D,Ee),re;if(me===null){for(;!qe.done;Ee++,qe=M.next())qe=Q(D,qe.value,G),qe!==null&&(C=s(qe,C,Ee),Oe===null?re=qe:Oe.sibling=qe,Oe=qe);return Be&&il(D,Ee),re}for(me=l(me);!qe.done;Ee++,qe=M.next())qe=H(me,D,Ee,qe.value,G),qe!==null&&(e&&qe.alternate!==null&&me.delete(qe.key===null?Ee:qe.key),C=s(qe,C,Ee),Oe===null?re=qe:Oe.sibling=qe,Oe=qe);return e&&me.forEach(function(Xg){return t(D,Xg)}),Be&&il(D,Ee),re}function ht(D,C,M,G){if(typeof M=="object"&&M!==null&&M.type===v&&M.key===null&&(M=M.props.children),typeof M=="object"&&M!==null){switch(M.$$typeof){case m:e:{for(var re=M.key;C!==null;){if(C.key===re){if(re=M.type,re===v){if(C.tag===7){n(D,C.sibling),G=r(C,M.props.children),G.return=D,D=G;break e}}else if(C.elementType===re||typeof re=="object"&&re!==null&&re.$$typeof===Y&&ed(re)===C.type){n(D,C.sibling),G=r(C,M.props),Oi(G,M),G.return=D,D=G;break e}n(D,C);break}else t(D,C);C=C.sibling}M.type===v?(G=pl(M.props.children,D.mode,G,M.key),G.return=D,D=G):(G=au(M.type,M.key,M.props,null,D.mode,G),Oi(G,M),G.return=D,D=G)}return d(D);case y:e:{for(re=M.key;C!==null;){if(C.key===re)if(C.tag===4&&C.stateNode.containerInfo===M.containerInfo&&C.stateNode.implementation===M.implementation){n(D,C.sibling),G=r(C,M.children||[]),G.return=D,D=G;break e}else{n(D,C);break}else t(D,C);C=C.sibling}G=ps(M,D.mode,G),G.return=D,D=G}return d(D);case Y:return re=M._init,M=re(M._payload),ht(D,C,M,G)}if(W(M))return fe(D,C,M,G);if(O(M)){if(re=O(M),typeof re!="function")throw Error(c(150));return M=re.call(M),_e(D,C,M,G)}if(typeof M.then=="function")return ht(D,C,Br(M),G);if(M.$$typeof===R)return ht(D,C,eu(D,M),G);qr(D,M)}return typeof M=="string"&&M!==""||typeof M=="number"||typeof M=="bigint"?(M=""+M,C!==null&&C.tag===6?(n(D,C.sibling),G=r(C,M),G.return=D,D=G):(n(D,C),G=ys(M,D.mode,G),G.return=D,D=G),d(D)):n(D,C)}return function(D,C,M,G){try{ji=0;var re=ht(D,C,M,G);return kl=null,re}catch(me){if(me===Ni)throw me;var Oe=Cn(29,me,null,D.mode);return Oe.lanes=G,Oe.return=D,Oe}finally{}}}var ul=td(!0),nd=td(!1),Vl=Te(null),kr=Te(0);function ad(e,t){e=ya,pe(kr,e),pe(Vl,t),ya=e|t.baseLanes}function xc(){pe(kr,ya),pe(Vl,Vl.current)}function _c(){ya=kr.current,He(Vl),He(kr)}var Rn=Te(null),Yn=null;function Na(e){var t=e.alternate;pe(_t,_t.current&1),pe(Rn,e),Yn===null&&(t===null||Vl.current!==null||t.memoizedState!==null)&&(Yn=e)}function ld(e){if(e.tag===22){if(pe(_t,_t.current),pe(Rn,e),Yn===null){var t=e.alternate;t!==null&&t.memoizedState!==null&&(Yn=e)}}else Ca()}function Ca(){pe(_t,_t.current),pe(Rn,Rn.current)}function ia(e){He(Rn),Yn===e&&(Yn=null),He(_t)}var _t=Te(0);function Vr(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||n.data==="$?"||n.data==="$!"))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if(t.flags&128)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var Av=typeof AbortController<"u"?AbortController:function(){var e=[],t=this.signal={aborted:!1,addEventListener:function(n,l){e.push(l)}};this.abort=function(){t.aborted=!0,e.forEach(function(n){return n()})}},wv=a.unstable_scheduleCallback,Mv=a.unstable_NormalPriority,Rt={$$typeof:R,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function Rc(){return{controller:new Av,data:new Map,refCount:0}}function Di(e){e.refCount--,e.refCount===0&&wv(Mv,function(){e.controller.abort()})}var Ai=null,Tc=0,Yl=0,Gl=null;function zv(e,t){if(Ai===null){var n=Ai=[];Tc=0,Yl=As(),Gl={status:"pending",value:void 0,then:function(l){n.push(l)}}}return Tc++,t.then(id,id),t}function id(){if(--Tc===0&&Ai!==null){Gl!==null&&(Gl.status="fulfilled");var e=Ai;Ai=null,Yl=0,Gl=null;for(var t=0;t<e.length;t++)(0,e[t])()}}function Lv(e,t){var n=[],l={status:"pending",value:null,reason:null,then:function(r){n.push(r)}};return e.then(function(){l.status="fulfilled",l.value=t;for(var r=0;r<n.length;r++)(0,n[r])(t)},function(r){for(l.status="rejected",l.reason=r,r=0;r<n.length;r++)(0,n[r])(void 0)}),l}var rd=Z.S;Z.S=function(e,t){typeof t=="object"&&t!==null&&typeof t.then=="function"&&zv(e,t),rd!==null&&rd(e,t)};var cl=Te(null);function Nc(){var e=cl.current;return e!==null?e:Pe.pooledCache}function Yr(e,t){t===null?pe(cl,cl.current):pe(cl,t.pool)}function ud(){var e=Nc();return e===null?null:{parent:Rt._currentValue,pool:e}}var ja=0,Ce=null,Ge=null,bt=null,Gr=!1,Xl=!1,sl=!1,Xr=0,wi=0,Ql=null,Uv=0;function gt(){throw Error(c(321))}function Cc(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!nn(e[n],t[n]))return!1;return!0}function jc(e,t,n,l,r,s){return ja=s,Ce=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,Z.H=e===null||e.memoizedState===null?ol:Oa,sl=!1,s=n(l,r),sl=!1,Xl&&(s=sd(t,n,l,r)),cd(e),s}function cd(e){Z.H=Gn;var t=Ge!==null&&Ge.next!==null;if(ja=0,bt=Ge=Ce=null,Gr=!1,wi=0,Ql=null,t)throw Error(c(300));e===null||Nt||(e=e.dependencies,e!==null&&Ir(e)&&(Nt=!0))}function sd(e,t,n,l){Ce=e;var r=0;do{if(Xl&&(Ql=null),wi=0,Xl=!1,25<=r)throw Error(c(301));if(r+=1,bt=Ge=null,e.updateQueue!=null){var s=e.updateQueue;s.lastEffect=null,s.events=null,s.stores=null,s.memoCache!=null&&(s.memoCache.index=0)}Z.H=fl,s=t(n,l)}while(Xl);return s}function Hv(){var e=Z.H,t=e.useState()[0];return t=typeof t.then=="function"?Mi(t):t,e=e.useState()[0],(Ge!==null?Ge.memoizedState:null)!==e&&(Ce.flags|=1024),t}function Oc(){var e=Xr!==0;return Xr=0,e}function Dc(e,t,n){t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~n}function Ac(e){if(Gr){for(e=e.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}Gr=!1}ja=0,bt=Ge=Ce=null,Xl=!1,wi=Xr=0,Ql=null}function It(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return bt===null?Ce.memoizedState=bt=e:bt=bt.next=e,bt}function St(){if(Ge===null){var e=Ce.alternate;e=e!==null?e.memoizedState:null}else e=Ge.next;var t=bt===null?Ce.memoizedState:bt.next;if(t!==null)bt=t,Ge=e;else{if(e===null)throw Ce.alternate===null?Error(c(467)):Error(c(310));Ge=e,e={memoizedState:Ge.memoizedState,baseState:Ge.baseState,baseQueue:Ge.baseQueue,queue:Ge.queue,next:null},bt===null?Ce.memoizedState=bt=e:bt=bt.next=e}return bt}var Qr;Qr=function(){return{lastEffect:null,events:null,stores:null,memoCache:null}};function Mi(e){var t=wi;return wi+=1,Ql===null&&(Ql=[]),e=Wf(Ql,e,t),t=Ce,(bt===null?t.memoizedState:bt.next)===null&&(t=t.alternate,Z.H=t===null||t.memoizedState===null?ol:Oa),e}function Zr(e){if(e!==null&&typeof e=="object"){if(typeof e.then=="function")return Mi(e);if(e.$$typeof===R)return qt(e)}throw Error(c(438,String(e)))}function wc(e){var t=null,n=Ce.updateQueue;if(n!==null&&(t=n.memoCache),t==null){var l=Ce.alternate;l!==null&&(l=l.updateQueue,l!==null&&(l=l.memoCache,l!=null&&(t={data:l.data.map(function(r){return r.slice()}),index:0})))}if(t==null&&(t={data:[],index:0}),n===null&&(n=Qr(),Ce.updateQueue=n),n.memoCache=t,n=t.data[t.index],n===void 0)for(n=t.data[t.index]=Array(e),l=0;l<e;l++)n[l]=ee;return t.index++,n}function ra(e,t){return typeof t=="function"?t(e):t}function Kr(e){var t=St();return Mc(t,Ge,e)}function Mc(e,t,n){var l=e.queue;if(l===null)throw Error(c(311));l.lastRenderedReducer=n;var r=e.baseQueue,s=l.pending;if(s!==null){if(r!==null){var d=r.next;r.next=s.next,s.next=d}t.baseQueue=r=s,l.pending=null}if(s=e.baseState,r===null)e.memoizedState=s;else{t=r.next;var E=d=null,S=null,j=t,q=!1;do{var Q=j.lane&-536870913;if(Q!==j.lane?(Ue&Q)===Q:(ja&Q)===Q){var z=j.revertLane;if(z===0)S!==null&&(S=S.next={lane:0,revertLane:0,action:j.action,hasEagerState:j.hasEagerState,eagerState:j.eagerState,next:null}),Q===Yl&&(q=!0);else if((ja&z)===z){j=j.next,z===Yl&&(q=!0);continue}else Q={lane:0,revertLane:j.revertLane,action:j.action,hasEagerState:j.hasEagerState,eagerState:j.eagerState,next:null},S===null?(E=S=Q,d=s):S=S.next=Q,Ce.lanes|=z,Ba|=z;Q=j.action,sl&&n(s,Q),s=j.hasEagerState?j.eagerState:n(s,Q)}else z={lane:Q,revertLane:j.revertLane,action:j.action,hasEagerState:j.hasEagerState,eagerState:j.eagerState,next:null},S===null?(E=S=z,d=s):S=S.next=z,Ce.lanes|=Q,Ba|=Q;j=j.next}while(j!==null&&j!==t);if(S===null?d=s:S.next=E,!nn(s,e.memoizedState)&&(Nt=!0,q&&(n=Gl,n!==null)))throw n;e.memoizedState=s,e.baseState=d,e.baseQueue=S,l.lastRenderedState=s}return r===null&&(l.lanes=0),[e.memoizedState,l.dispatch]}function zc(e){var t=St(),n=t.queue;if(n===null)throw Error(c(311));n.lastRenderedReducer=e;var l=n.dispatch,r=n.pending,s=t.memoizedState;if(r!==null){n.pending=null;var d=r=r.next;do s=e(s,d.action),d=d.next;while(d!==r);nn(s,t.memoizedState)||(Nt=!0),t.memoizedState=s,t.baseQueue===null&&(t.baseState=s),n.lastRenderedState=s}return[s,l]}function od(e,t,n){var l=Ce,r=St(),s=Be;if(s){if(n===void 0)throw Error(c(407));n=n()}else n=t();var d=!nn((Ge||r).memoizedState,n);if(d&&(r.memoizedState=n,Nt=!0),r=r.queue,Hc(hd.bind(null,l,r,e),[e]),r.getSnapshot!==t||d||bt!==null&&bt.memoizedState.tag&1){if(l.flags|=2048,Zl(9,dd.bind(null,l,r,n,t),{destroy:void 0},null),Pe===null)throw Error(c(349));s||ja&60||fd(l,t,n)}return n}function fd(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=Ce.updateQueue,t===null?(t=Qr(),Ce.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function dd(e,t,n,l){t.value=n,t.getSnapshot=l,md(t)&&yd(e)}function hd(e,t,n){return n(function(){md(t)&&yd(e)})}function md(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!nn(e,n)}catch{return!0}}function yd(e){var t=Ta(e,2);t!==null&&Kt(t,e,2)}function Lc(e){var t=It();if(typeof e=="function"){var n=e;if(e=n(),sl){Bt(!0);try{n()}finally{Bt(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:ra,lastRenderedState:e},t}function pd(e,t,n,l){return e.baseState=n,Mc(e,Ge,typeof l=="function"?l:ra)}function Bv(e,t,n,l,r){if(Fr(e))throw Error(c(485));if(e=t.action,e!==null){var s={payload:r,action:e,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(d){s.listeners.push(d)}};Z.T!==null?n(!0):s.isTransition=!1,l(s),n=t.pending,n===null?(s.next=t.pending=s,vd(t,s)):(s.next=n.next,t.pending=n.next=s)}}function vd(e,t){var n=t.action,l=t.payload,r=e.state;if(t.isTransition){var s=Z.T,d={};Z.T=d;try{var E=n(r,l),S=Z.S;S!==null&&S(d,E),gd(e,t,E)}catch(j){Uc(e,t,j)}finally{Z.T=s}}else try{s=n(r,l),gd(e,t,s)}catch(j){Uc(e,t,j)}}function gd(e,t,n){n!==null&&typeof n=="object"&&typeof n.then=="function"?n.then(function(l){Ed(e,t,l)},function(l){return Uc(e,t,l)}):Ed(e,t,n)}function Ed(e,t,n){t.status="fulfilled",t.value=n,bd(t),e.state=n,t=e.pending,t!==null&&(n=t.next,n===t?e.pending=null:(n=n.next,t.next=n,vd(e,n)))}function Uc(e,t,n){var l=e.pending;if(e.pending=null,l!==null){l=l.next;do t.status="rejected",t.reason=n,bd(t),t=t.next;while(t!==l)}e.action=null}function bd(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function Sd(e,t){return t}function xd(e,t){if(Be){var n=Pe.formState;if(n!==null){e:{var l=Ce;if(Be){if(Mt){t:{for(var r=Mt,s=Vn;r.nodeType!==8;){if(!s){r=null;break t}if(r=Ln(r.nextSibling),r===null){r=null;break t}}s=r.data,r=s==="F!"||s==="F"?r:null}if(r){Mt=Ln(r.nextSibling),l=r.data==="F!";break e}}rl(l)}l=!1}l&&(t=n[0])}}return n=It(),n.memoizedState=n.baseState=t,l={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Sd,lastRenderedState:t},n.queue=l,n=kd.bind(null,Ce,l),l.dispatch=n,l=Lc(!1),s=Yc.bind(null,Ce,!1,l.queue),l=It(),r={state:t,dispatch:null,action:e,pending:null},l.queue=r,n=Bv.bind(null,Ce,r,s,n),r.dispatch=n,l.memoizedState=e,[t,n,!1]}function _d(e){var t=St();return Rd(t,Ge,e)}function Rd(e,t,n){t=Mc(e,t,Sd)[0],e=Kr(ra)[0],t=typeof t=="object"&&t!==null&&typeof t.then=="function"?Mi(t):t;var l=St(),r=l.queue,s=r.dispatch;return n!==l.memoizedState&&(Ce.flags|=2048,Zl(9,qv.bind(null,r,n),{destroy:void 0},null)),[t,s,e]}function qv(e,t){e.action=t}function Td(e){var t=St(),n=Ge;if(n!==null)return Rd(t,n,e);St(),t=t.memoizedState,n=St();var l=n.queue.dispatch;return n.memoizedState=e,[t,l,!1]}function Zl(e,t,n,l){return e={tag:e,create:t,inst:n,deps:l,next:null},t=Ce.updateQueue,t===null&&(t=Qr(),Ce.updateQueue=t),n=t.lastEffect,n===null?t.lastEffect=e.next=e:(l=n.next,n.next=e,e.next=l,t.lastEffect=e),e}function Nd(){return St().memoizedState}function $r(e,t,n,l){var r=It();Ce.flags|=e,r.memoizedState=Zl(1|t,n,{destroy:void 0},l===void 0?null:l)}function Jr(e,t,n,l){var r=St();l=l===void 0?null:l;var s=r.memoizedState.inst;Ge!==null&&l!==null&&Cc(l,Ge.memoizedState.deps)?r.memoizedState=Zl(t,n,s,l):(Ce.flags|=e,r.memoizedState=Zl(1|t,n,s,l))}function Cd(e,t){$r(8390656,8,e,t)}function Hc(e,t){Jr(2048,8,e,t)}function jd(e,t){return Jr(4,2,e,t)}function Od(e,t){return Jr(4,4,e,t)}function Dd(e,t){if(typeof t=="function"){e=e();var n=t(e);return function(){typeof n=="function"?n():t(null)}}if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function Ad(e,t,n){n=n!=null?n.concat([e]):null,Jr(4,4,Dd.bind(null,t,e),n)}function Bc(){}function wd(e,t){var n=St();t=t===void 0?null:t;var l=n.memoizedState;return t!==null&&Cc(t,l[1])?l[0]:(n.memoizedState=[e,t],e)}function Md(e,t){var n=St();t=t===void 0?null:t;var l=n.memoizedState;if(t!==null&&Cc(t,l[1]))return l[0];if(l=e(),sl){Bt(!0);try{e()}finally{Bt(!1)}}return n.memoizedState=[l,t],l}function qc(e,t,n){return n===void 0||ja&1073741824?e.memoizedState=t:(e.memoizedState=n,e=Lh(),Ce.lanes|=e,Ba|=e,n)}function zd(e,t,n,l){return nn(n,t)?n:Vl.current!==null?(e=qc(e,n,l),nn(e,t)||(Nt=!0),e):ja&42?(e=Lh(),Ce.lanes|=e,Ba|=e,t):(Nt=!0,e.memoizedState=n)}function Ld(e,t,n,l,r){var s=F.p;F.p=s!==0&&8>s?s:8;var d=Z.T,E={};Z.T=E,Yc(e,!1,t,n);try{var S=r(),j=Z.S;if(j!==null&&j(E,S),S!==null&&typeof S=="object"&&typeof S.then=="function"){var q=Lv(S,l);zi(e,t,q,un(e))}else zi(e,t,l,un(e))}catch(Q){zi(e,t,{then:function(){},status:"rejected",reason:Q},un())}finally{F.p=s,Z.T=d}}function kv(){}function kc(e,t,n,l){if(e.tag!==5)throw Error(c(476));var r=Ud(e).queue;Ld(e,r,t,ge,n===null?kv:function(){return Hd(e),n(l)})}function Ud(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:ge,baseState:ge,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:ra,lastRenderedState:ge},next:null};var n={};return t.next={memoizedState:n,baseState:n,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:ra,lastRenderedState:n},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function Hd(e){var t=Ud(e).next.queue;zi(e,t,{},un())}function Vc(){return qt(er)}function Bd(){return St().memoizedState}function qd(){return St().memoizedState}function Vv(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var n=un();e=wa(n);var l=Ma(t,e,n);l!==null&&(Kt(l,t,n),Hi(l,t,n)),t={cache:Rc()},e.payload=t;return}t=t.return}}function Yv(e,t,n){var l=un();n={lane:l,revertLane:0,action:n,hasEagerState:!1,eagerState:null,next:null},Fr(e)?Vd(t,n):(n=vc(e,t,n,l),n!==null&&(Kt(n,e,l),Yd(n,t,l)))}function kd(e,t,n){var l=un();zi(e,t,n,l)}function zi(e,t,n,l){var r={lane:l,revertLane:0,action:n,hasEagerState:!1,eagerState:null,next:null};if(Fr(e))Vd(t,r);else{var s=e.alternate;if(e.lanes===0&&(s===null||s.lanes===0)&&(s=t.lastRenderedReducer,s!==null))try{var d=t.lastRenderedState,E=s(d,n);if(r.hasEagerState=!0,r.eagerState=E,nn(E,d))return Mr(e,t,r,0),Pe===null&&wr(),!1}catch{}finally{}if(n=vc(e,t,r,l),n!==null)return Kt(n,e,l),Yd(n,t,l),!0}return!1}function Yc(e,t,n,l){if(l={lane:2,revertLane:As(),action:l,hasEagerState:!1,eagerState:null,next:null},Fr(e)){if(t)throw Error(c(479))}else t=vc(e,n,l,2),t!==null&&Kt(t,e,2)}function Fr(e){var t=e.alternate;return e===Ce||t!==null&&t===Ce}function Vd(e,t){Xl=Gr=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function Yd(e,t,n){if(n&4194176){var l=t.lanes;l&=e.pendingLanes,n|=l,t.lanes=n,de(e,n)}}var Gn={readContext:qt,use:Zr,useCallback:gt,useContext:gt,useEffect:gt,useImperativeHandle:gt,useLayoutEffect:gt,useInsertionEffect:gt,useMemo:gt,useReducer:gt,useRef:gt,useState:gt,useDebugValue:gt,useDeferredValue:gt,useTransition:gt,useSyncExternalStore:gt,useId:gt};Gn.useCacheRefresh=gt,Gn.useMemoCache=gt,Gn.useHostTransitionStatus=gt,Gn.useFormState=gt,Gn.useActionState=gt,Gn.useOptimistic=gt;var ol={readContext:qt,use:Zr,useCallback:function(e,t){return It().memoizedState=[e,t===void 0?null:t],e},useContext:qt,useEffect:Cd,useImperativeHandle:function(e,t,n){n=n!=null?n.concat([e]):null,$r(4194308,4,Dd.bind(null,t,e),n)},useLayoutEffect:function(e,t){return $r(4194308,4,e,t)},useInsertionEffect:function(e,t){$r(4,2,e,t)},useMemo:function(e,t){var n=It();t=t===void 0?null:t;var l=e();if(sl){Bt(!0);try{e()}finally{Bt(!1)}}return n.memoizedState=[l,t],l},useReducer:function(e,t,n){var l=It();if(n!==void 0){var r=n(t);if(sl){Bt(!0);try{n(t)}finally{Bt(!1)}}}else r=t;return l.memoizedState=l.baseState=r,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:r},l.queue=e,e=e.dispatch=Yv.bind(null,Ce,e),[l.memoizedState,e]},useRef:function(e){var t=It();return e={current:e},t.memoizedState=e},useState:function(e){e=Lc(e);var t=e.queue,n=kd.bind(null,Ce,t);return t.dispatch=n,[e.memoizedState,n]},useDebugValue:Bc,useDeferredValue:function(e,t){var n=It();return qc(n,e,t)},useTransition:function(){var e=Lc(!1);return e=Ld.bind(null,Ce,e.queue,!0,!1),It().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,n){var l=Ce,r=It();if(Be){if(n===void 0)throw Error(c(407));n=n()}else{if(n=t(),Pe===null)throw Error(c(349));Ue&60||fd(l,t,n)}r.memoizedState=n;var s={value:n,getSnapshot:t};return r.queue=s,Cd(hd.bind(null,l,s,e),[e]),l.flags|=2048,Zl(9,dd.bind(null,l,s,n,t),{destroy:void 0},null),n},useId:function(){var e=It(),t=Pe.identifierPrefix;if(Be){var n=la,l=aa;n=(l&~(1<<32-lt(l)-1)).toString(32)+n,t=":"+t+"R"+n,n=Xr++,0<n&&(t+="H"+n.toString(32)),t+=":"}else n=Uv++,t=":"+t+"r"+n.toString(32)+":";return e.memoizedState=t},useCacheRefresh:function(){return It().memoizedState=Vv.bind(null,Ce)}};ol.useMemoCache=wc,ol.useHostTransitionStatus=Vc,ol.useFormState=xd,ol.useActionState=xd,ol.useOptimistic=function(e){var t=It();t.memoizedState=t.baseState=e;var n={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=n,t=Yc.bind(null,Ce,!0,n),n.dispatch=t,[e,t]};var Oa={readContext:qt,use:Zr,useCallback:wd,useContext:qt,useEffect:Hc,useImperativeHandle:Ad,useInsertionEffect:jd,useLayoutEffect:Od,useMemo:Md,useReducer:Kr,useRef:Nd,useState:function(){return Kr(ra)},useDebugValue:Bc,useDeferredValue:function(e,t){var n=St();return zd(n,Ge.memoizedState,e,t)},useTransition:function(){var e=Kr(ra)[0],t=St().memoizedState;return[typeof e=="boolean"?e:Mi(e),t]},useSyncExternalStore:od,useId:Bd};Oa.useCacheRefresh=qd,Oa.useMemoCache=wc,Oa.useHostTransitionStatus=Vc,Oa.useFormState=_d,Oa.useActionState=_d,Oa.useOptimistic=function(e,t){var n=St();return pd(n,Ge,e,t)};var fl={readContext:qt,use:Zr,useCallback:wd,useContext:qt,useEffect:Hc,useImperativeHandle:Ad,useInsertionEffect:jd,useLayoutEffect:Od,useMemo:Md,useReducer:zc,useRef:Nd,useState:function(){return zc(ra)},useDebugValue:Bc,useDeferredValue:function(e,t){var n=St();return Ge===null?qc(n,e,t):zd(n,Ge.memoizedState,e,t)},useTransition:function(){var e=zc(ra)[0],t=St().memoizedState;return[typeof e=="boolean"?e:Mi(e),t]},useSyncExternalStore:od,useId:Bd};fl.useCacheRefresh=qd,fl.useMemoCache=wc,fl.useHostTransitionStatus=Vc,fl.useFormState=Td,fl.useActionState=Td,fl.useOptimistic=function(e,t){var n=St();return Ge!==null?pd(n,Ge,e,t):(n.baseState=e,[e,n.queue.dispatch])};function Gc(e,t,n,l){t=e.memoizedState,n=n(l,t),n=n==null?t:ie({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var Xc={isMounted:function(e){return(e=e._reactInternals)?I(e)===e:!1},enqueueSetState:function(e,t,n){e=e._reactInternals;var l=un(),r=wa(l);r.payload=t,n!=null&&(r.callback=n),t=Ma(e,r,l),t!==null&&(Kt(t,e,l),Hi(t,e,l))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var l=un(),r=wa(l);r.tag=1,r.payload=t,n!=null&&(r.callback=n),t=Ma(e,r,l),t!==null&&(Kt(t,e,l),Hi(t,e,l))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=un(),l=wa(n);l.tag=2,t!=null&&(l.callback=t),t=Ma(e,l,n),t!==null&&(Kt(t,e,n),Hi(t,e,n))}};function Gd(e,t,n,l,r,s,d){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(l,s,d):t.prototype&&t.prototype.isPureReactComponent?!Si(n,l)||!Si(r,s):!0}function Xd(e,t,n,l){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(n,l),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(n,l),t.state!==e&&Xc.enqueueReplaceState(t,t.state,null)}function dl(e,t){var n=t;if("ref"in t){n={};for(var l in t)l!=="ref"&&(n[l]=t[l])}if(e=e.defaultProps){n===t&&(n=ie({},n));for(var r in e)n[r]===void 0&&(n[r]=e[r])}return n}var Pr=typeof reportError=="function"?reportError:function(e){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var t=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof e=="object"&&e!==null&&typeof e.message=="string"?String(e.message):String(e),error:e});if(!window.dispatchEvent(t))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",e);return}console.error(e)};function Qd(e){Pr(e)}function Zd(e){console.error(e)}function Kd(e){Pr(e)}function Wr(e,t){try{var n=e.onUncaughtError;n(t.value,{componentStack:t.stack})}catch(l){setTimeout(function(){throw l})}}function $d(e,t,n){try{var l=e.onCaughtError;l(n.value,{componentStack:n.stack,errorBoundary:t.tag===1?t.stateNode:null})}catch(r){setTimeout(function(){throw r})}}function Qc(e,t,n){return n=wa(n),n.tag=3,n.payload={element:null},n.callback=function(){Wr(e,t)},n}function Jd(e){return e=wa(e),e.tag=3,e}function Fd(e,t,n,l){var r=n.type.getDerivedStateFromError;if(typeof r=="function"){var s=l.value;e.payload=function(){return r(s)},e.callback=function(){$d(t,n,l)}}var d=n.stateNode;d!==null&&typeof d.componentDidCatch=="function"&&(e.callback=function(){$d(t,n,l),typeof r!="function"&&(qa===null?qa=new Set([this]):qa.add(this));var E=l.stack;this.componentDidCatch(l.value,{componentStack:E!==null?E:""})})}function Gv(e,t,n,l,r){if(n.flags|=32768,l!==null&&typeof l=="object"&&typeof l.then=="function"){if(t=n.alternate,t!==null&&Ui(t,n,r,!0),n=Rn.current,n!==null){switch(n.tag){case 13:return Yn===null?Ns():n.alternate===null&&dt===0&&(dt=3),n.flags&=-257,n.flags|=65536,n.lanes=r,l===Sc?n.flags|=16384:(t=n.updateQueue,t===null?n.updateQueue=new Set([l]):t.add(l),js(e,l,r)),!1;case 22:return n.flags|=65536,l===Sc?n.flags|=16384:(t=n.updateQueue,t===null?(t={transitions:null,markerInstances:null,retryQueue:new Set([l])},n.updateQueue=t):(n=t.retryQueue,n===null?t.retryQueue=new Set([l]):n.add(l)),js(e,l,r)),!1}throw Error(c(435,n.tag))}return js(e,l,r),Ns(),!1}if(Be)return t=Rn.current,t!==null?(!(t.flags&65536)&&(t.flags|=256),t.flags|=65536,t.lanes=r,l!==bc&&(e=Error(c(422),{cause:l}),Ti(Sn(e,n)))):(l!==bc&&(t=Error(c(423),{cause:l}),Ti(Sn(t,n))),e=e.current.alternate,e.flags|=65536,r&=-r,e.lanes|=r,l=Sn(l,n),r=Qc(e.stateNode,l,r),rs(e,r),dt!==4&&(dt=2)),!1;var s=Error(c(520),{cause:l});if(s=Sn(s,n),Qi===null?Qi=[s]:Qi.push(s),dt!==4&&(dt=2),t===null)return!0;l=Sn(l,n),n=t;do{switch(n.tag){case 3:return n.flags|=65536,e=r&-r,n.lanes|=e,e=Qc(n.stateNode,l,e),rs(n,e),!1;case 1:if(t=n.type,s=n.stateNode,(n.flags&128)===0&&(typeof t.getDerivedStateFromError=="function"||s!==null&&typeof s.componentDidCatch=="function"&&(qa===null||!qa.has(s))))return n.flags|=65536,r&=-r,n.lanes|=r,r=Jd(r),Fd(r,e,n,l),rs(n,r),!1}n=n.return}while(n!==null);return!1}var Pd=Error(c(461)),Nt=!1;function zt(e,t,n,l){t.child=e===null?nd(t,null,n,l):ul(t,e.child,n,l)}function Wd(e,t,n,l,r){n=n.render;var s=t.ref;if("ref"in l){var d={};for(var E in l)E!=="ref"&&(d[E]=l[E])}else d=l;return ml(t),l=jc(e,t,n,d,s,r),E=Oc(),e!==null&&!Nt?(Dc(e,t,r),ua(e,t,r)):(Be&&E&&gc(t),t.flags|=1,zt(e,t,l,r),t.child)}function Id(e,t,n,l,r){if(e===null){var s=n.type;return typeof s=="function"&&!ms(s)&&s.defaultProps===void 0&&n.compare===null?(t.tag=15,t.type=s,eh(e,t,s,l,r)):(e=au(n.type,null,l,t,t.mode,r),e.ref=t.ref,e.return=t,t.child=e)}if(s=e.child,!es(e,r)){var d=s.memoizedProps;if(n=n.compare,n=n!==null?n:Si,n(d,l)&&e.ref===t.ref)return ua(e,t,r)}return t.flags|=1,e=Ha(s,l),e.ref=t.ref,e.return=t,t.child=e}function eh(e,t,n,l,r){if(e!==null){var s=e.memoizedProps;if(Si(s,l)&&e.ref===t.ref)if(Nt=!1,t.pendingProps=l=s,es(e,r))e.flags&131072&&(Nt=!0);else return t.lanes=e.lanes,ua(e,t,r)}return Zc(e,t,n,l,r)}function th(e,t,n){var l=t.pendingProps,r=l.children,s=(t.stateNode._pendingVisibility&2)!==0,d=e!==null?e.memoizedState:null;if(Li(e,t),l.mode==="hidden"||s){if(t.flags&128){if(l=d!==null?d.baseLanes|n:n,e!==null){for(r=t.child=e.child,s=0;r!==null;)s=s|r.lanes|r.childLanes,r=r.sibling;t.childLanes=s&~l}else t.childLanes=0,t.child=null;return nh(e,t,l,n)}if(n&536870912)t.memoizedState={baseLanes:0,cachePool:null},e!==null&&Yr(t,d!==null?d.cachePool:null),d!==null?ad(t,d):xc(),ld(t);else return t.lanes=t.childLanes=536870912,nh(e,t,d!==null?d.baseLanes|n:n,n)}else d!==null?(Yr(t,d.cachePool),ad(t,d),Ca(),t.memoizedState=null):(e!==null&&Yr(t,null),xc(),Ca());return zt(e,t,r,n),t.child}function nh(e,t,n,l){var r=Nc();return r=r===null?null:{parent:Rt._currentValue,pool:r},t.memoizedState={baseLanes:n,cachePool:r},e!==null&&Yr(t,null),xc(),ld(t),e!==null&&Ui(e,t,l,!0),null}function Li(e,t){var n=t.ref;if(n===null)e!==null&&e.ref!==null&&(t.flags|=2097664);else{if(typeof n!="function"&&typeof n!="object")throw Error(c(284));(e===null||e.ref!==n)&&(t.flags|=2097664)}}function Zc(e,t,n,l,r){return ml(t),n=jc(e,t,n,l,void 0,r),l=Oc(),e!==null&&!Nt?(Dc(e,t,r),ua(e,t,r)):(Be&&l&&gc(t),t.flags|=1,zt(e,t,n,r),t.child)}function ah(e,t,n,l,r,s){return ml(t),t.updateQueue=null,n=sd(t,l,n,r),cd(e),l=Oc(),e!==null&&!Nt?(Dc(e,t,s),ua(e,t,s)):(Be&&l&&gc(t),t.flags|=1,zt(e,t,n,s),t.child)}function lh(e,t,n,l,r){if(ml(t),t.stateNode===null){var s=Hl,d=n.contextType;typeof d=="object"&&d!==null&&(s=qt(d)),s=new n(l,s),t.memoizedState=s.state!==null&&s.state!==void 0?s.state:null,s.updater=Xc,t.stateNode=s,s._reactInternals=t,s=t.stateNode,s.props=l,s.state=t.memoizedState,s.refs={},ls(t),d=n.contextType,s.context=typeof d=="object"&&d!==null?qt(d):Hl,s.state=t.memoizedState,d=n.getDerivedStateFromProps,typeof d=="function"&&(Gc(t,n,d,l),s.state=t.memoizedState),typeof n.getDerivedStateFromProps=="function"||typeof s.getSnapshotBeforeUpdate=="function"||typeof s.UNSAFE_componentWillMount!="function"&&typeof s.componentWillMount!="function"||(d=s.state,typeof s.componentWillMount=="function"&&s.componentWillMount(),typeof s.UNSAFE_componentWillMount=="function"&&s.UNSAFE_componentWillMount(),d!==s.state&&Xc.enqueueReplaceState(s,s.state,null),qi(t,l,s,r),Bi(),s.state=t.memoizedState),typeof s.componentDidMount=="function"&&(t.flags|=4194308),l=!0}else if(e===null){s=t.stateNode;var E=t.memoizedProps,S=dl(n,E);s.props=S;var j=s.context,q=n.contextType;d=Hl,typeof q=="object"&&q!==null&&(d=qt(q));var Q=n.getDerivedStateFromProps;q=typeof Q=="function"||typeof s.getSnapshotBeforeUpdate=="function",E=t.pendingProps!==E,q||typeof s.UNSAFE_componentWillReceiveProps!="function"&&typeof s.componentWillReceiveProps!="function"||(E||j!==d)&&Xd(t,s,l,d),Aa=!1;var z=t.memoizedState;s.state=z,qi(t,l,s,r),Bi(),j=t.memoizedState,E||z!==j||Aa?(typeof Q=="function"&&(Gc(t,n,Q,l),j=t.memoizedState),(S=Aa||Gd(t,n,S,l,z,j,d))?(q||typeof s.UNSAFE_componentWillMount!="function"&&typeof s.componentWillMount!="function"||(typeof s.componentWillMount=="function"&&s.componentWillMount(),typeof s.UNSAFE_componentWillMount=="function"&&s.UNSAFE_componentWillMount()),typeof s.componentDidMount=="function"&&(t.flags|=4194308)):(typeof s.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=l,t.memoizedState=j),s.props=l,s.state=j,s.context=d,l=S):(typeof s.componentDidMount=="function"&&(t.flags|=4194308),l=!1)}else{s=t.stateNode,is(e,t),d=t.memoizedProps,q=dl(n,d),s.props=q,Q=t.pendingProps,z=s.context,j=n.contextType,S=Hl,typeof j=="object"&&j!==null&&(S=qt(j)),E=n.getDerivedStateFromProps,(j=typeof E=="function"||typeof s.getSnapshotBeforeUpdate=="function")||typeof s.UNSAFE_componentWillReceiveProps!="function"&&typeof s.componentWillReceiveProps!="function"||(d!==Q||z!==S)&&Xd(t,s,l,S),Aa=!1,z=t.memoizedState,s.state=z,qi(t,l,s,r),Bi();var H=t.memoizedState;d!==Q||z!==H||Aa||e!==null&&e.dependencies!==null&&Ir(e.dependencies)?(typeof E=="function"&&(Gc(t,n,E,l),H=t.memoizedState),(q=Aa||Gd(t,n,q,l,z,H,S)||e!==null&&e.dependencies!==null&&Ir(e.dependencies))?(j||typeof s.UNSAFE_componentWillUpdate!="function"&&typeof s.componentWillUpdate!="function"||(typeof s.componentWillUpdate=="function"&&s.componentWillUpdate(l,H,S),typeof s.UNSAFE_componentWillUpdate=="function"&&s.UNSAFE_componentWillUpdate(l,H,S)),typeof s.componentDidUpdate=="function"&&(t.flags|=4),typeof s.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof s.componentDidUpdate!="function"||d===e.memoizedProps&&z===e.memoizedState||(t.flags|=4),typeof s.getSnapshotBeforeUpdate!="function"||d===e.memoizedProps&&z===e.memoizedState||(t.flags|=1024),t.memoizedProps=l,t.memoizedState=H),s.props=l,s.state=H,s.context=S,l=q):(typeof s.componentDidUpdate!="function"||d===e.memoizedProps&&z===e.memoizedState||(t.flags|=4),typeof s.getSnapshotBeforeUpdate!="function"||d===e.memoizedProps&&z===e.memoizedState||(t.flags|=1024),l=!1)}return s=l,Li(e,t),l=(t.flags&128)!==0,s||l?(s=t.stateNode,n=l&&typeof n.getDerivedStateFromError!="function"?null:s.render(),t.flags|=1,e!==null&&l?(t.child=ul(t,e.child,null,r),t.child=ul(t,null,n,r)):zt(e,t,n,r),t.memoizedState=s.state,e=t.child):e=ua(e,t,r),e}function ih(e,t,n,l){return Ri(),t.flags|=256,zt(e,t,n,l),t.child}var Kc={dehydrated:null,treeContext:null,retryLane:0};function $c(e){return{baseLanes:e,cachePool:ud()}}function Jc(e,t,n){return e=e!==null?e.childLanes&~n:0,t&&(e|=jn),e}function rh(e,t,n){var l=t.pendingProps,r=!1,s=(t.flags&128)!==0,d;if((d=s)||(d=e!==null&&e.memoizedState===null?!1:(_t.current&2)!==0),d&&(r=!0,t.flags&=-129),d=(t.flags&32)!==0,t.flags&=-33,e===null){if(Be){if(r?Na(t):Ca(),Be){var E=Mt,S;if(S=E){e:{for(S=E,E=Vn;S.nodeType!==8;){if(!E){E=null;break e}if(S=Ln(S.nextSibling),S===null){E=null;break e}}E=S}E!==null?(t.memoizedState={dehydrated:E,treeContext:ll!==null?{id:aa,overflow:la}:null,retryLane:536870912},S=Cn(18,null,null,0),S.stateNode=E,S.return=t,t.child=S,Zt=t,Mt=null,S=!0):S=!1}S||rl(t)}if(E=t.memoizedState,E!==null&&(E=E.dehydrated,E!==null))return E.data==="$!"?t.lanes=16:t.lanes=536870912,null;ia(t)}return E=l.children,l=l.fallback,r?(Ca(),r=t.mode,E=Pc({mode:"hidden",children:E},r),l=pl(l,r,n,null),E.return=t,l.return=t,E.sibling=l,t.child=E,r=t.child,r.memoizedState=$c(n),r.childLanes=Jc(e,d,n),t.memoizedState=Kc,l):(Na(t),Fc(t,E))}if(S=e.memoizedState,S!==null&&(E=S.dehydrated,E!==null)){if(s)t.flags&256?(Na(t),t.flags&=-257,t=Wc(e,t,n)):t.memoizedState!==null?(Ca(),t.child=e.child,t.flags|=128,t=null):(Ca(),r=l.fallback,E=t.mode,l=Pc({mode:"visible",children:l.children},E),r=pl(r,E,n,null),r.flags|=2,l.return=t,r.return=t,l.sibling=r,t.child=l,ul(t,e.child,null,n),l=t.child,l.memoizedState=$c(n),l.childLanes=Jc(e,d,n),t.memoizedState=Kc,t=r);else if(Na(t),E.data==="$!"){if(d=E.nextSibling&&E.nextSibling.dataset,d)var j=d.dgst;d=j,l=Error(c(419)),l.stack="",l.digest=d,Ti({value:l,source:null,stack:null}),t=Wc(e,t,n)}else if(Nt||Ui(e,t,n,!1),d=(n&e.childLanes)!==0,Nt||d){if(d=Pe,d!==null){if(l=n&-n,l&42)l=1;else switch(l){case 2:l=1;break;case 8:l=4;break;case 32:l=16;break;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:l=64;break;case 268435456:l=134217728;break;default:l=0}if(l=l&(d.suspendedLanes|n)?0:l,l!==0&&l!==S.retryLane)throw S.retryLane=l,Ta(e,l),Kt(d,e,l),Pd}E.data==="$?"||Ns(),t=Wc(e,t,n)}else E.data==="$?"?(t.flags|=128,t.child=e.child,t=lg.bind(null,e),E._reactRetry=t,t=null):(e=S.treeContext,Mt=Ln(E.nextSibling),Zt=t,Be=!0,Mn=null,Vn=!1,e!==null&&(xn[_n++]=aa,xn[_n++]=la,xn[_n++]=ll,aa=e.id,la=e.overflow,ll=t),t=Fc(t,l.children),t.flags|=4096);return t}return r?(Ca(),r=l.fallback,E=t.mode,S=e.child,j=S.sibling,l=Ha(S,{mode:"hidden",children:l.children}),l.subtreeFlags=S.subtreeFlags&31457280,j!==null?r=Ha(j,r):(r=pl(r,E,n,null),r.flags|=2),r.return=t,l.return=t,l.sibling=r,t.child=l,l=r,r=t.child,E=e.child.memoizedState,E===null?E=$c(n):(S=E.cachePool,S!==null?(j=Rt._currentValue,S=S.parent!==j?{parent:j,pool:j}:S):S=ud(),E={baseLanes:E.baseLanes|n,cachePool:S}),r.memoizedState=E,r.childLanes=Jc(e,d,n),t.memoizedState=Kc,l):(Na(t),n=e.child,e=n.sibling,n=Ha(n,{mode:"visible",children:l.children}),n.return=t,n.sibling=null,e!==null&&(d=t.deletions,d===null?(t.deletions=[e],t.flags|=16):d.push(e)),t.child=n,t.memoizedState=null,n)}function Fc(e,t){return t=Pc({mode:"visible",children:t},e.mode),t.return=e,e.child=t}function Pc(e,t){return wh(e,t,0,null)}function Wc(e,t,n){return ul(t,e.child,null,n),e=Fc(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function uh(e,t,n){e.lanes|=t;var l=e.alternate;l!==null&&(l.lanes|=t),ns(e.return,t,n)}function Ic(e,t,n,l,r){var s=e.memoizedState;s===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:l,tail:n,tailMode:r}:(s.isBackwards=t,s.rendering=null,s.renderingStartTime=0,s.last=l,s.tail=n,s.tailMode=r)}function ch(e,t,n){var l=t.pendingProps,r=l.revealOrder,s=l.tail;if(zt(e,t,l.children,n),l=_t.current,l&2)l=l&1|2,t.flags|=128;else{if(e!==null&&e.flags&128)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&uh(e,n,t);else if(e.tag===19)uh(e,n,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}l&=1}switch(pe(_t,l),r){case"forwards":for(n=t.child,r=null;n!==null;)e=n.alternate,e!==null&&Vr(e)===null&&(r=n),n=n.sibling;n=r,n===null?(r=t.child,t.child=null):(r=n.sibling,n.sibling=null),Ic(t,!1,r,n,s);break;case"backwards":for(n=null,r=t.child,t.child=null;r!==null;){if(e=r.alternate,e!==null&&Vr(e)===null){t.child=r;break}e=r.sibling,r.sibling=n,n=r,r=e}Ic(t,!0,n,null,s);break;case"together":Ic(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function ua(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),Ba|=t.lanes,!(n&t.childLanes))if(e!==null){if(Ui(e,t,n,!1),(n&t.childLanes)===0)return null}else return null;if(e!==null&&t.child!==e.child)throw Error(c(153));if(t.child!==null){for(e=t.child,n=Ha(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=Ha(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function es(e,t){return e.lanes&t?!0:(e=e.dependencies,!!(e!==null&&Ir(e)))}function Xv(e,t,n){switch(t.tag){case 3:we(t,t.stateNode.containerInfo),Da(t,Rt,e.memoizedState.cache),Ri();break;case 27:case 5:Dt(t);break;case 4:we(t,t.stateNode.containerInfo);break;case 10:Da(t,t.type,t.memoizedProps.value);break;case 13:var l=t.memoizedState;if(l!==null)return l.dehydrated!==null?(Na(t),t.flags|=128,null):n&t.child.childLanes?rh(e,t,n):(Na(t),e=ua(e,t,n),e!==null?e.sibling:null);Na(t);break;case 19:var r=(e.flags&128)!==0;if(l=(n&t.childLanes)!==0,l||(Ui(e,t,n,!1),l=(n&t.childLanes)!==0),r){if(l)return ch(e,t,n);t.flags|=128}if(r=t.memoizedState,r!==null&&(r.rendering=null,r.tail=null,r.lastEffect=null),pe(_t,_t.current),l)break;return null;case 22:case 23:return t.lanes=0,th(e,t,n);case 24:Da(t,Rt,e.memoizedState.cache)}return ua(e,t,n)}function sh(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps)Nt=!0;else{if(!es(e,n)&&!(t.flags&128))return Nt=!1,Xv(e,t,n);Nt=!!(e.flags&131072)}else Nt=!1,Be&&t.flags&1048576&&Kf(t,Ur,t.index);switch(t.lanes=0,t.tag){case 16:e:{e=t.pendingProps;var l=t.elementType,r=l._init;if(l=r(l._payload),t.type=l,typeof l=="function")ms(l)?(e=dl(l,e),t.tag=1,t=lh(null,t,l,e,n)):(t.tag=0,t=Zc(null,t,l,e,n));else{if(l!=null){if(r=l.$$typeof,r===w){t.tag=11,t=Wd(null,t,l,e,n);break e}else if(r===U){t.tag=14,t=Id(null,t,l,e,n);break e}}throw t=be(l)||l,Error(c(306,t,""))}}return t;case 0:return Zc(e,t,t.type,t.pendingProps,n);case 1:return l=t.type,r=dl(l,t.pendingProps),lh(e,t,l,r,n);case 3:e:{if(we(t,t.stateNode.containerInfo),e===null)throw Error(c(387));var s=t.pendingProps;r=t.memoizedState,l=r.element,is(e,t),qi(t,s,null,n);var d=t.memoizedState;if(s=d.cache,Da(t,Rt,s),s!==r.cache&&as(t,[Rt],n,!0),Bi(),s=d.element,r.isDehydrated)if(r={element:s,isDehydrated:!1,cache:d.cache},t.updateQueue.baseState=r,t.memoizedState=r,t.flags&256){t=ih(e,t,s,n);break e}else if(s!==l){l=Sn(Error(c(424)),t),Ti(l),t=ih(e,t,s,n);break e}else for(Mt=Ln(t.stateNode.containerInfo.firstChild),Zt=t,Be=!0,Mn=null,Vn=!0,n=nd(t,null,s,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(Ri(),s===l){t=ua(e,t,n);break e}zt(e,t,s,n)}t=t.child}return t;case 26:return Li(e,t),e===null?(n=dm(t.type,null,t.pendingProps,null))?t.memoizedState=n:Be||(n=t.type,e=t.pendingProps,l=yu(mt.current).createElement(n),l[se]=t,l[ye]=e,Lt(l,n,e),Fe(l),t.stateNode=l):t.memoizedState=dm(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return Dt(t),e===null&&Be&&(l=t.stateNode=sm(t.type,t.pendingProps,mt.current),Zt=t,Vn=!0,Mt=Ln(l.firstChild)),l=t.pendingProps.children,e!==null||Be?zt(e,t,l,n):t.child=ul(t,null,l,n),Li(e,t),t.child;case 5:return e===null&&Be&&((r=l=Mt)&&(l=bg(l,t.type,t.pendingProps,Vn),l!==null?(t.stateNode=l,Zt=t,Mt=Ln(l.firstChild),Vn=!1,r=!0):r=!1),r||rl(t)),Dt(t),r=t.type,s=t.pendingProps,d=e!==null?e.memoizedProps:null,l=s.children,ks(r,s)?l=null:d!==null&&ks(r,d)&&(t.flags|=32),t.memoizedState!==null&&(r=jc(e,t,Hv,null,null,n),er._currentValue=r),Li(e,t),zt(e,t,l,n),t.child;case 6:return e===null&&Be&&((e=n=Mt)&&(n=Sg(n,t.pendingProps,Vn),n!==null?(t.stateNode=n,Zt=t,Mt=null,e=!0):e=!1),e||rl(t)),null;case 13:return rh(e,t,n);case 4:return we(t,t.stateNode.containerInfo),l=t.pendingProps,e===null?t.child=ul(t,null,l,n):zt(e,t,l,n),t.child;case 11:return Wd(e,t,t.type,t.pendingProps,n);case 7:return zt(e,t,t.pendingProps,n),t.child;case 8:return zt(e,t,t.pendingProps.children,n),t.child;case 12:return zt(e,t,t.pendingProps.children,n),t.child;case 10:return l=t.pendingProps,Da(t,t.type,l.value),zt(e,t,l.children,n),t.child;case 9:return r=t.type._context,l=t.pendingProps.children,ml(t),r=qt(r),l=l(r),t.flags|=1,zt(e,t,l,n),t.child;case 14:return Id(e,t,t.type,t.pendingProps,n);case 15:return eh(e,t,t.type,t.pendingProps,n);case 19:return ch(e,t,n);case 22:return th(e,t,n);case 24:return ml(t),l=qt(Rt),e===null?(r=Nc(),r===null&&(r=Pe,s=Rc(),r.pooledCache=s,s.refCount++,s!==null&&(r.pooledCacheLanes|=n),r=s),t.memoizedState={parent:l,cache:r},ls(t),Da(t,Rt,r)):(e.lanes&n&&(is(e,t),qi(t,null,null,n),Bi()),r=e.memoizedState,s=t.memoizedState,r.parent!==l?(r={parent:l,cache:l},t.memoizedState=r,t.lanes===0&&(t.memoizedState=t.updateQueue.baseState=r),Da(t,Rt,l)):(l=s.cache,Da(t,Rt,l),l!==r.cache&&as(t,[Rt],n,!0))),zt(e,t,t.pendingProps.children,n),t.child;case 29:throw t.pendingProps}throw Error(c(156,t.tag))}var ts=Te(null),hl=null,ca=null;function Da(e,t,n){pe(ts,t._currentValue),t._currentValue=n}function sa(e){e._currentValue=ts.current,He(ts)}function ns(e,t,n){for(;e!==null;){var l=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,l!==null&&(l.childLanes|=t)):l!==null&&(l.childLanes&t)!==t&&(l.childLanes|=t),e===n)break;e=e.return}}function as(e,t,n,l){var r=e.child;for(r!==null&&(r.return=e);r!==null;){var s=r.dependencies;if(s!==null){var d=r.child;s=s.firstContext;e:for(;s!==null;){var E=s;s=r;for(var S=0;S<t.length;S++)if(E.context===t[S]){s.lanes|=n,E=s.alternate,E!==null&&(E.lanes|=n),ns(s.return,n,e),l||(d=null);break e}s=E.next}}else if(r.tag===18){if(d=r.return,d===null)throw Error(c(341));d.lanes|=n,s=d.alternate,s!==null&&(s.lanes|=n),ns(d,n,e),d=null}else d=r.child;if(d!==null)d.return=r;else for(d=r;d!==null;){if(d===e){d=null;break}if(r=d.sibling,r!==null){r.return=d.return,d=r;break}d=d.return}r=d}}function Ui(e,t,n,l){e=null;for(var r=t,s=!1;r!==null;){if(!s){if(r.flags&524288)s=!0;else if(r.flags&262144)break}if(r.tag===10){var d=r.alternate;if(d===null)throw Error(c(387));if(d=d.memoizedProps,d!==null){var E=r.type;nn(r.pendingProps.value,d.value)||(e!==null?e.push(E):e=[E])}}else if(r===nt.current){if(d=r.alternate,d===null)throw Error(c(387));d.memoizedState.memoizedState!==r.memoizedState.memoizedState&&(e!==null?e.push(er):e=[er])}r=r.return}e!==null&&as(t,e,n,l),t.flags|=262144}function Ir(e){for(e=e.firstContext;e!==null;){if(!nn(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function ml(e){hl=e,ca=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function qt(e){return oh(hl,e)}function eu(e,t){return hl===null&&ml(e),oh(e,t)}function oh(e,t){var n=t._currentValue;if(t={context:t,memoizedValue:n,next:null},ca===null){if(e===null)throw Error(c(308));ca=t,e.dependencies={lanes:0,firstContext:t},e.flags|=524288}else ca=ca.next=t;return n}var Aa=!1;function ls(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function is(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,callbacks:null})}function wa(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function Ma(e,t,n){var l=e.updateQueue;if(l===null)return null;if(l=l.shared,ct&2){var r=l.pending;return r===null?t.next=t:(t.next=r.next,r.next=t),l.pending=t,t=zr(e),Qf(e,null,n),t}return Mr(e,l,t,n),zr(e)}function Hi(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,(n&4194176)!==0)){var l=t.lanes;l&=e.pendingLanes,n|=l,t.lanes=n,de(e,n)}}function rs(e,t){var n=e.updateQueue,l=e.alternate;if(l!==null&&(l=l.updateQueue,n===l)){var r=null,s=null;if(n=n.firstBaseUpdate,n!==null){do{var d={lane:n.lane,tag:n.tag,payload:n.payload,callback:null,next:null};s===null?r=s=d:s=s.next=d,n=n.next}while(n!==null);s===null?r=s=t:s=s.next=t}else r=s=t;n={baseState:l.baseState,firstBaseUpdate:r,lastBaseUpdate:s,shared:l.shared,callbacks:l.callbacks},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}var us=!1;function Bi(){if(us){var e=Gl;if(e!==null)throw e}}function qi(e,t,n,l){us=!1;var r=e.updateQueue;Aa=!1;var s=r.firstBaseUpdate,d=r.lastBaseUpdate,E=r.shared.pending;if(E!==null){r.shared.pending=null;var S=E,j=S.next;S.next=null,d===null?s=j:d.next=j,d=S;var q=e.alternate;q!==null&&(q=q.updateQueue,E=q.lastBaseUpdate,E!==d&&(E===null?q.firstBaseUpdate=j:E.next=j,q.lastBaseUpdate=S))}if(s!==null){var Q=r.baseState;d=0,q=j=S=null,E=s;do{var z=E.lane&-536870913,H=z!==E.lane;if(H?(Ue&z)===z:(l&z)===z){z!==0&&z===Yl&&(us=!0),q!==null&&(q=q.next={lane:0,tag:E.tag,payload:E.payload,callback:null,next:null});e:{var fe=e,_e=E;z=t;var ht=n;switch(_e.tag){case 1:if(fe=_e.payload,typeof fe=="function"){Q=fe.call(ht,Q,z);break e}Q=fe;break e;case 3:fe.flags=fe.flags&-65537|128;case 0:if(fe=_e.payload,z=typeof fe=="function"?fe.call(ht,Q,z):fe,z==null)break e;Q=ie({},Q,z);break e;case 2:Aa=!0}}z=E.callback,z!==null&&(e.flags|=64,H&&(e.flags|=8192),H=r.callbacks,H===null?r.callbacks=[z]:H.push(z))}else H={lane:z,tag:E.tag,payload:E.payload,callback:E.callback,next:null},q===null?(j=q=H,S=Q):q=q.next=H,d|=z;if(E=E.next,E===null){if(E=r.shared.pending,E===null)break;H=E,E=H.next,H.next=null,r.lastBaseUpdate=H,r.shared.pending=null}}while(!0);q===null&&(S=Q),r.baseState=S,r.firstBaseUpdate=j,r.lastBaseUpdate=q,s===null&&(r.shared.lanes=0),Ba|=d,e.lanes=d,e.memoizedState=Q}}function fh(e,t){if(typeof e!="function")throw Error(c(191,e));e.call(t)}function dh(e,t){var n=e.callbacks;if(n!==null)for(e.callbacks=null,e=0;e<n.length;e++)fh(n[e],t)}function ki(e,t){try{var n=t.updateQueue,l=n!==null?n.lastEffect:null;if(l!==null){var r=l.next;n=r;do{if((n.tag&e)===e){l=void 0;var s=n.create,d=n.inst;l=s(),d.destroy=l}n=n.next}while(n!==r)}}catch(E){Je(t,t.return,E)}}function za(e,t,n){try{var l=t.updateQueue,r=l!==null?l.lastEffect:null;if(r!==null){var s=r.next;l=s;do{if((l.tag&e)===e){var d=l.inst,E=d.destroy;if(E!==void 0){d.destroy=void 0,r=t;var S=n;try{E()}catch(j){Je(r,S,j)}}}l=l.next}while(l!==s)}}catch(j){Je(t,t.return,j)}}function hh(e){var t=e.updateQueue;if(t!==null){var n=e.stateNode;try{dh(t,n)}catch(l){Je(e,e.return,l)}}}function mh(e,t,n){n.props=dl(e.type,e.memoizedProps),n.state=e.memoizedState;try{n.componentWillUnmount()}catch(l){Je(e,t,l)}}function yl(e,t){try{var n=e.ref;if(n!==null){var l=e.stateNode;switch(e.tag){case 26:case 27:case 5:var r=l;break;default:r=l}typeof n=="function"?e.refCleanup=n(r):n.current=r}}catch(s){Je(e,t,s)}}function an(e,t){var n=e.ref,l=e.refCleanup;if(n!==null)if(typeof l=="function")try{l()}catch(r){Je(e,t,r)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof n=="function")try{n(null)}catch(r){Je(e,t,r)}else n.current=null}function yh(e){var t=e.type,n=e.memoizedProps,l=e.stateNode;try{e:switch(t){case"button":case"input":case"select":case"textarea":n.autoFocus&&l.focus();break e;case"img":n.src?l.src=n.src:n.srcSet&&(l.srcset=n.srcSet)}}catch(r){Je(e,e.return,r)}}function ph(e,t,n){try{var l=e.stateNode;yg(l,e.type,n,t),l[ye]=t}catch(r){Je(e,e.return,r)}}function vh(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27||e.tag===4}function cs(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||vh(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==27&&e.tag!==18;){if(e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function ss(e,t,n){var l=e.tag;if(l===5||l===6)e=e.stateNode,t?n.nodeType===8?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(n.nodeType===8?(t=n.parentNode,t.insertBefore(e,n)):(t=n,t.appendChild(e)),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=mu));else if(l!==4&&l!==27&&(e=e.child,e!==null))for(ss(e,t,n),e=e.sibling;e!==null;)ss(e,t,n),e=e.sibling}function tu(e,t,n){var l=e.tag;if(l===5||l===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(l!==4&&l!==27&&(e=e.child,e!==null))for(tu(e,t,n),e=e.sibling;e!==null;)tu(e,t,n),e=e.sibling}var oa=!1,ft=!1,os=!1,gh=typeof WeakSet=="function"?WeakSet:Set,Ct=null,Eh=!1;function Qv(e,t){if(e=e.containerInfo,Bs=Su,e=Uf(e),dc(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var l=n.getSelection&&n.getSelection();if(l&&l.rangeCount!==0){n=l.anchorNode;var r=l.anchorOffset,s=l.focusNode;l=l.focusOffset;try{n.nodeType,s.nodeType}catch{n=null;break e}var d=0,E=-1,S=-1,j=0,q=0,Q=e,z=null;t:for(;;){for(var H;Q!==n||r!==0&&Q.nodeType!==3||(E=d+r),Q!==s||l!==0&&Q.nodeType!==3||(S=d+l),Q.nodeType===3&&(d+=Q.nodeValue.length),(H=Q.firstChild)!==null;)z=Q,Q=H;for(;;){if(Q===e)break t;if(z===n&&++j===r&&(E=d),z===s&&++q===l&&(S=d),(H=Q.nextSibling)!==null)break;Q=z,z=Q.parentNode}Q=H}n=E===-1||S===-1?null:{start:E,end:S}}else n=null}n=n||{start:0,end:0}}else n=null;for(qs={focusedElem:e,selectionRange:n},Su=!1,Ct=t;Ct!==null;)if(t=Ct,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,Ct=e;else for(;Ct!==null;){switch(t=Ct,s=t.alternate,e=t.flags,t.tag){case 0:break;case 11:case 15:break;case 1:if(e&1024&&s!==null){e=void 0,n=t,r=s.memoizedProps,s=s.memoizedState,l=n.stateNode;try{var fe=dl(n.type,r,n.elementType===n.type);e=l.getSnapshotBeforeUpdate(fe,s),l.__reactInternalSnapshotBeforeUpdate=e}catch(_e){Je(n,n.return,_e)}}break;case 3:if(e&1024){if(e=t.stateNode.containerInfo,n=e.nodeType,n===9)Gs(e);else if(n===1)switch(e.nodeName){case"HEAD":case"HTML":case"BODY":Gs(e);break;default:e.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if(e&1024)throw Error(c(163))}if(e=t.sibling,e!==null){e.return=t.return,Ct=e;break}Ct=t.return}return fe=Eh,Eh=!1,fe}function bh(e,t,n){var l=n.flags;switch(n.tag){case 0:case 11:case 15:da(e,n),l&4&&ki(5,n);break;case 1:if(da(e,n),l&4)if(e=n.stateNode,t===null)try{e.componentDidMount()}catch(E){Je(n,n.return,E)}else{var r=dl(n.type,t.memoizedProps);t=t.memoizedState;try{e.componentDidUpdate(r,t,e.__reactInternalSnapshotBeforeUpdate)}catch(E){Je(n,n.return,E)}}l&64&&hh(n),l&512&&yl(n,n.return);break;case 3:if(da(e,n),l&64&&(l=n.updateQueue,l!==null)){if(e=null,n.child!==null)switch(n.child.tag){case 27:case 5:e=n.child.stateNode;break;case 1:e=n.child.stateNode}try{dh(l,e)}catch(E){Je(n,n.return,E)}}break;case 26:da(e,n),l&512&&yl(n,n.return);break;case 27:case 5:da(e,n),t===null&&l&4&&yh(n),l&512&&yl(n,n.return);break;case 12:da(e,n);break;case 13:da(e,n),l&4&&_h(e,n);break;case 22:if(r=n.memoizedState!==null||oa,!r){t=t!==null&&t.memoizedState!==null||ft;var s=oa,d=ft;oa=r,(ft=t)&&!d?La(e,n,(n.subtreeFlags&8772)!==0):da(e,n),oa=s,ft=d}l&512&&(n.memoizedProps.mode==="manual"?yl(n,n.return):an(n,n.return));break;default:da(e,n)}}function Sh(e){var t=e.alternate;t!==null&&(e.alternate=null,Sh(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&In(t)),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}var xt=null,ln=!1;function fa(e,t,n){for(n=n.child;n!==null;)xh(e,t,n),n=n.sibling}function xh(e,t,n){if(pt&&typeof pt.onCommitFiberUnmount=="function")try{pt.onCommitFiberUnmount(tn,n)}catch{}switch(n.tag){case 26:ft||an(n,t),fa(e,t,n),n.memoizedState?n.memoizedState.count--:n.stateNode&&(n=n.stateNode,n.parentNode.removeChild(n));break;case 27:ft||an(n,t);var l=xt,r=ln;for(xt=n.stateNode,fa(e,t,n),n=n.stateNode,t=n.attributes;t.length;)n.removeAttributeNode(t[0]);In(n),xt=l,ln=r;break;case 5:ft||an(n,t);case 6:r=xt;var s=ln;if(xt=null,fa(e,t,n),xt=r,ln=s,xt!==null)if(ln)try{e=xt,l=n.stateNode,e.nodeType===8?e.parentNode.removeChild(l):e.removeChild(l)}catch(d){Je(n,t,d)}else try{xt.removeChild(n.stateNode)}catch(d){Je(n,t,d)}break;case 18:xt!==null&&(ln?(t=xt,n=n.stateNode,t.nodeType===8?Ys(t.parentNode,n):t.nodeType===1&&Ys(t,n),lr(t)):Ys(xt,n.stateNode));break;case 4:l=xt,r=ln,xt=n.stateNode.containerInfo,ln=!0,fa(e,t,n),xt=l,ln=r;break;case 0:case 11:case 14:case 15:ft||za(2,n,t),ft||za(4,n,t),fa(e,t,n);break;case 1:ft||(an(n,t),l=n.stateNode,typeof l.componentWillUnmount=="function"&&mh(n,t,l)),fa(e,t,n);break;case 21:fa(e,t,n);break;case 22:ft||an(n,t),ft=(l=ft)||n.memoizedState!==null,fa(e,t,n),ft=l;break;default:fa(e,t,n)}}function _h(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{lr(e)}catch(n){Je(t,t.return,n)}}function Zv(e){switch(e.tag){case 13:case 19:var t=e.stateNode;return t===null&&(t=e.stateNode=new gh),t;case 22:return e=e.stateNode,t=e._retryCache,t===null&&(t=e._retryCache=new gh),t;default:throw Error(c(435,e.tag))}}function fs(e,t){var n=Zv(e);t.forEach(function(l){var r=ig.bind(null,e,l);n.has(l)||(n.add(l),l.then(r,r))})}function Tn(e,t){var n=t.deletions;if(n!==null)for(var l=0;l<n.length;l++){var r=n[l],s=e,d=t,E=d;e:for(;E!==null;){switch(E.tag){case 27:case 5:xt=E.stateNode,ln=!1;break e;case 3:xt=E.stateNode.containerInfo,ln=!0;break e;case 4:xt=E.stateNode.containerInfo,ln=!0;break e}E=E.return}if(xt===null)throw Error(c(160));xh(s,d,r),xt=null,ln=!1,s=r.alternate,s!==null&&(s.return=null),r.return=null}if(t.subtreeFlags&13878)for(t=t.child;t!==null;)Rh(t,e),t=t.sibling}var zn=null;function Rh(e,t){var n=e.alternate,l=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:Tn(t,e),Nn(e),l&4&&(za(3,e,e.return),ki(3,e),za(5,e,e.return));break;case 1:Tn(t,e),Nn(e),l&512&&(ft||n===null||an(n,n.return)),l&64&&oa&&(e=e.updateQueue,e!==null&&(l=e.callbacks,l!==null&&(n=e.shared.hiddenCallbacks,e.shared.hiddenCallbacks=n===null?l:n.concat(l))));break;case 26:var r=zn;if(Tn(t,e),Nn(e),l&512&&(ft||n===null||an(n,n.return)),l&4){var s=n!==null?n.memoizedState:null;if(l=e.memoizedState,n===null)if(l===null)if(e.stateNode===null){e:{l=e.type,n=e.memoizedProps,r=r.ownerDocument||r;t:switch(l){case"title":s=r.getElementsByTagName("title")[0],(!s||s[pn]||s[se]||s.namespaceURI==="http://www.w3.org/2000/svg"||s.hasAttribute("itemprop"))&&(s=r.createElement(l),r.head.insertBefore(s,r.querySelector("head > title"))),Lt(s,l,n),s[se]=e,Fe(s),l=s;break e;case"link":var d=ym("link","href",r).get(l+(n.href||""));if(d){for(var E=0;E<d.length;E++)if(s=d[E],s.getAttribute("href")===(n.href==null?null:n.href)&&s.getAttribute("rel")===(n.rel==null?null:n.rel)&&s.getAttribute("title")===(n.title==null?null:n.title)&&s.getAttribute("crossorigin")===(n.crossOrigin==null?null:n.crossOrigin)){d.splice(E,1);break t}}s=r.createElement(l),Lt(s,l,n),r.head.appendChild(s);break;case"meta":if(d=ym("meta","content",r).get(l+(n.content||""))){for(E=0;E<d.length;E++)if(s=d[E],s.getAttribute("content")===(n.content==null?null:""+n.content)&&s.getAttribute("name")===(n.name==null?null:n.name)&&s.getAttribute("property")===(n.property==null?null:n.property)&&s.getAttribute("http-equiv")===(n.httpEquiv==null?null:n.httpEquiv)&&s.getAttribute("charset")===(n.charSet==null?null:n.charSet)){d.splice(E,1);break t}}s=r.createElement(l),Lt(s,l,n),r.head.appendChild(s);break;default:throw Error(c(468,l))}s[se]=e,Fe(s),l=s}e.stateNode=l}else pm(r,e.type,e.stateNode);else e.stateNode=mm(r,l,e.memoizedProps);else s!==l?(s===null?n.stateNode!==null&&(n=n.stateNode,n.parentNode.removeChild(n)):s.count--,l===null?pm(r,e.type,e.stateNode):mm(r,l,e.memoizedProps)):l===null&&e.stateNode!==null&&ph(e,e.memoizedProps,n.memoizedProps)}break;case 27:if(l&4&&e.alternate===null){r=e.stateNode,s=e.memoizedProps;try{for(var S=r.firstChild;S;){var j=S.nextSibling,q=S.nodeName;S[pn]||q==="HEAD"||q==="BODY"||q==="SCRIPT"||q==="STYLE"||q==="LINK"&&S.rel.toLowerCase()==="stylesheet"||r.removeChild(S),S=j}for(var Q=e.type,z=r.attributes;z.length;)r.removeAttributeNode(z[0]);Lt(r,Q,s),r[se]=e,r[ye]=s}catch(fe){Je(e,e.return,fe)}}case 5:if(Tn(t,e),Nn(e),l&512&&(ft||n===null||an(n,n.return)),e.flags&32){r=e.stateNode;try{Dl(r,"")}catch(fe){Je(e,e.return,fe)}}l&4&&e.stateNode!=null&&(r=e.memoizedProps,ph(e,r,n!==null?n.memoizedProps:r)),l&1024&&(os=!0);break;case 6:if(Tn(t,e),Nn(e),l&4){if(e.stateNode===null)throw Error(c(162));l=e.memoizedProps,n=e.stateNode;try{n.nodeValue=l}catch(fe){Je(e,e.return,fe)}}break;case 3:if(gu=null,r=zn,zn=pu(t.containerInfo),Tn(t,e),zn=r,Nn(e),l&4&&n!==null&&n.memoizedState.isDehydrated)try{lr(t.containerInfo)}catch(fe){Je(e,e.return,fe)}os&&(os=!1,Th(e));break;case 4:l=zn,zn=pu(e.stateNode.containerInfo),Tn(t,e),Nn(e),zn=l;break;case 12:Tn(t,e),Nn(e);break;case 13:Tn(t,e),Nn(e),e.child.flags&8192&&e.memoizedState!==null!=(n!==null&&n.memoizedState!==null)&&(bs=yt()),l&4&&(l=e.updateQueue,l!==null&&(e.updateQueue=null,fs(e,l)));break;case 22:if(l&512&&(ft||n===null||an(n,n.return)),S=e.memoizedState!==null,j=n!==null&&n.memoizedState!==null,q=oa,Q=ft,oa=q||S,ft=Q||j,Tn(t,e),ft=Q,oa=q,Nn(e),t=e.stateNode,t._current=e,t._visibility&=-3,t._visibility|=t._pendingVisibility&2,l&8192&&(t._visibility=S?t._visibility&-2:t._visibility|1,S&&(t=oa||ft,n===null||j||t||Kl(e)),e.memoizedProps===null||e.memoizedProps.mode!=="manual"))e:for(n=null,t=e;;){if(t.tag===5||t.tag===26||t.tag===27){if(n===null){j=n=t;try{if(r=j.stateNode,S)s=r.style,typeof s.setProperty=="function"?s.setProperty("display","none","important"):s.display="none";else{d=j.stateNode,E=j.memoizedProps.style;var H=E!=null&&E.hasOwnProperty("display")?E.display:null;d.style.display=H==null||typeof H=="boolean"?"":(""+H).trim()}}catch(fe){Je(j,j.return,fe)}}}else if(t.tag===6){if(n===null){j=t;try{j.stateNode.nodeValue=S?"":j.memoizedProps}catch(fe){Je(j,j.return,fe)}}}else if((t.tag!==22&&t.tag!==23||t.memoizedState===null||t===e)&&t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break e;for(;t.sibling===null;){if(t.return===null||t.return===e)break e;n===t&&(n=null),t=t.return}n===t&&(n=null),t.sibling.return=t.return,t=t.sibling}l&4&&(l=e.updateQueue,l!==null&&(n=l.retryQueue,n!==null&&(l.retryQueue=null,fs(e,n))));break;case 19:Tn(t,e),Nn(e),l&4&&(l=e.updateQueue,l!==null&&(e.updateQueue=null,fs(e,l)));break;case 21:break;default:Tn(t,e),Nn(e)}}function Nn(e){var t=e.flags;if(t&2){try{if(e.tag!==27){e:{for(var n=e.return;n!==null;){if(vh(n)){var l=n;break e}n=n.return}throw Error(c(160))}switch(l.tag){case 27:var r=l.stateNode,s=cs(e);tu(e,s,r);break;case 5:var d=l.stateNode;l.flags&32&&(Dl(d,""),l.flags&=-33);var E=cs(e);tu(e,E,d);break;case 3:case 4:var S=l.stateNode.containerInfo,j=cs(e);ss(e,j,S);break;default:throw Error(c(161))}}}catch(q){Je(e,e.return,q)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function Th(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;Th(t),t.tag===5&&t.flags&1024&&t.stateNode.reset(),e=e.sibling}}function da(e,t){if(t.subtreeFlags&8772)for(t=t.child;t!==null;)bh(e,t.alternate,t),t=t.sibling}function Kl(e){for(e=e.child;e!==null;){var t=e;switch(t.tag){case 0:case 11:case 14:case 15:za(4,t,t.return),Kl(t);break;case 1:an(t,t.return);var n=t.stateNode;typeof n.componentWillUnmount=="function"&&mh(t,t.return,n),Kl(t);break;case 26:case 27:case 5:an(t,t.return),Kl(t);break;case 22:an(t,t.return),t.memoizedState===null&&Kl(t);break;default:Kl(t)}e=e.sibling}}function La(e,t,n){for(n=n&&(t.subtreeFlags&8772)!==0,t=t.child;t!==null;){var l=t.alternate,r=e,s=t,d=s.flags;switch(s.tag){case 0:case 11:case 15:La(r,s,n),ki(4,s);break;case 1:if(La(r,s,n),l=s,r=l.stateNode,typeof r.componentDidMount=="function")try{r.componentDidMount()}catch(j){Je(l,l.return,j)}if(l=s,r=l.updateQueue,r!==null){var E=l.stateNode;try{var S=r.shared.hiddenCallbacks;if(S!==null)for(r.shared.hiddenCallbacks=null,r=0;r<S.length;r++)fh(S[r],E)}catch(j){Je(l,l.return,j)}}n&&d&64&&hh(s),yl(s,s.return);break;case 26:case 27:case 5:La(r,s,n),n&&l===null&&d&4&&yh(s),yl(s,s.return);break;case 12:La(r,s,n);break;case 13:La(r,s,n),n&&d&4&&_h(r,s);break;case 22:s.memoizedState===null&&La(r,s,n),yl(s,s.return);break;default:La(r,s,n)}t=t.sibling}}function ds(e,t){var n=null;e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(n=e.memoizedState.cachePool.pool),e=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(e=t.memoizedState.cachePool.pool),e!==n&&(e!=null&&e.refCount++,n!=null&&Di(n))}function hs(e,t){e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&Di(e))}function Ua(e,t,n,l){if(t.subtreeFlags&10256)for(t=t.child;t!==null;)Nh(e,t,n,l),t=t.sibling}function Nh(e,t,n,l){var r=t.flags;switch(t.tag){case 0:case 11:case 15:Ua(e,t,n,l),r&2048&&ki(9,t);break;case 3:Ua(e,t,n,l),r&2048&&(e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&Di(e)));break;case 12:if(r&2048){Ua(e,t,n,l),e=t.stateNode;try{var s=t.memoizedProps,d=s.id,E=s.onPostCommit;typeof E=="function"&&E(d,t.alternate===null?"mount":"update",e.passiveEffectDuration,-0)}catch(S){Je(t,t.return,S)}}else Ua(e,t,n,l);break;case 23:break;case 22:s=t.stateNode,t.memoizedState!==null?s._visibility&4?Ua(e,t,n,l):Vi(e,t):s._visibility&4?Ua(e,t,n,l):(s._visibility|=4,$l(e,t,n,l,(t.subtreeFlags&10256)!==0)),r&2048&&ds(t.alternate,t);break;case 24:Ua(e,t,n,l),r&2048&&hs(t.alternate,t);break;default:Ua(e,t,n,l)}}function $l(e,t,n,l,r){for(r=r&&(t.subtreeFlags&10256)!==0,t=t.child;t!==null;){var s=e,d=t,E=n,S=l,j=d.flags;switch(d.tag){case 0:case 11:case 15:$l(s,d,E,S,r),ki(8,d);break;case 23:break;case 22:var q=d.stateNode;d.memoizedState!==null?q._visibility&4?$l(s,d,E,S,r):Vi(s,d):(q._visibility|=4,$l(s,d,E,S,r)),r&&j&2048&&ds(d.alternate,d);break;case 24:$l(s,d,E,S,r),r&&j&2048&&hs(d.alternate,d);break;default:$l(s,d,E,S,r)}t=t.sibling}}function Vi(e,t){if(t.subtreeFlags&10256)for(t=t.child;t!==null;){var n=e,l=t,r=l.flags;switch(l.tag){case 22:Vi(n,l),r&2048&&ds(l.alternate,l);break;case 24:Vi(n,l),r&2048&&hs(l.alternate,l);break;default:Vi(n,l)}t=t.sibling}}var Yi=8192;function Jl(e){if(e.subtreeFlags&Yi)for(e=e.child;e!==null;)Ch(e),e=e.sibling}function Ch(e){switch(e.tag){case 26:Jl(e),e.flags&Yi&&e.memoizedState!==null&&zg(zn,e.memoizedState,e.memoizedProps);break;case 5:Jl(e);break;case 3:case 4:var t=zn;zn=pu(e.stateNode.containerInfo),Jl(e),zn=t;break;case 22:e.memoizedState===null&&(t=e.alternate,t!==null&&t.memoizedState!==null?(t=Yi,Yi=16777216,Jl(e),Yi=t):Jl(e));break;default:Jl(e)}}function jh(e){var t=e.alternate;if(t!==null&&(e=t.child,e!==null)){t.child=null;do t=e.sibling,e.sibling=null,e=t;while(e!==null)}}function Gi(e){var t=e.deletions;if(e.flags&16){if(t!==null)for(var n=0;n<t.length;n++){var l=t[n];Ct=l,Dh(l,e)}jh(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)Oh(e),e=e.sibling}function Oh(e){switch(e.tag){case 0:case 11:case 15:Gi(e),e.flags&2048&&za(9,e,e.return);break;case 3:Gi(e);break;case 12:Gi(e);break;case 22:var t=e.stateNode;e.memoizedState!==null&&t._visibility&4&&(e.return===null||e.return.tag!==13)?(t._visibility&=-5,nu(e)):Gi(e);break;default:Gi(e)}}function nu(e){var t=e.deletions;if(e.flags&16){if(t!==null)for(var n=0;n<t.length;n++){var l=t[n];Ct=l,Dh(l,e)}jh(e)}for(e=e.child;e!==null;){switch(t=e,t.tag){case 0:case 11:case 15:za(8,t,t.return),nu(t);break;case 22:n=t.stateNode,n._visibility&4&&(n._visibility&=-5,nu(t));break;default:nu(t)}e=e.sibling}}function Dh(e,t){for(;Ct!==null;){var n=Ct;switch(n.tag){case 0:case 11:case 15:za(8,n,t);break;case 23:case 22:if(n.memoizedState!==null&&n.memoizedState.cachePool!==null){var l=n.memoizedState.cachePool.pool;l!=null&&l.refCount++}break;case 24:Di(n.memoizedState.cache)}if(l=n.child,l!==null)l.return=n,Ct=l;else e:for(n=e;Ct!==null;){l=Ct;var r=l.sibling,s=l.return;if(Sh(l),l===n){Ct=null;break e}if(r!==null){r.return=s,Ct=r;break e}Ct=s}}}function Kv(e,t,n,l){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=l,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Cn(e,t,n,l){return new Kv(e,t,n,l)}function ms(e){return e=e.prototype,!(!e||!e.isReactComponent)}function Ha(e,t){var n=e.alternate;return n===null?(n=Cn(e.tag,t,e.key,e.mode),n.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=e.flags&31457280,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=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n.refCleanup=e.refCleanup,n}function Ah(e,t){e.flags&=31457282;var n=e.alternate;return n===null?(e.childLanes=0,e.lanes=t,e.child=null,e.subtreeFlags=0,e.memoizedProps=null,e.memoizedState=null,e.updateQueue=null,e.dependencies=null,e.stateNode=null):(e.childLanes=n.childLanes,e.lanes=n.lanes,e.child=n.child,e.subtreeFlags=0,e.deletions=null,e.memoizedProps=n.memoizedProps,e.memoizedState=n.memoizedState,e.updateQueue=n.updateQueue,e.type=n.type,t=n.dependencies,e.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext}),e}function au(e,t,n,l,r,s){var d=0;if(l=e,typeof e=="function")ms(e)&&(d=1);else if(typeof e=="string")d=wg(e,n,Ke.current)?26:e==="html"||e==="head"||e==="body"?27:5;else e:switch(e){case v:return pl(n.children,r,s,t);case p:d=8,r|=24;break;case b:return e=Cn(12,n,t,r|2),e.elementType=b,e.lanes=s,e;case k:return e=Cn(13,n,t,r),e.elementType=k,e.lanes=s,e;case B:return e=Cn(19,n,t,r),e.elementType=B,e.lanes=s,e;case $:return wh(n,r,s,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case T:case R:d=10;break e;case x:d=9;break e;case w:d=11;break e;case U:d=14;break e;case Y:d=16,l=null;break e}d=29,n=Error(c(130,e===null?"null":typeof e,"")),l=null}return t=Cn(d,n,t,r),t.elementType=e,t.type=l,t.lanes=s,t}function pl(e,t,n,l){return e=Cn(7,e,l,t),e.lanes=n,e}function wh(e,t,n,l){e=Cn(22,e,l,t),e.elementType=$,e.lanes=n;var r={_visibility:1,_pendingVisibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null,_current:null,detach:function(){var s=r._current;if(s===null)throw Error(c(456));if(!(r._pendingVisibility&2)){var d=Ta(s,2);d!==null&&(r._pendingVisibility|=2,Kt(d,s,2))}},attach:function(){var s=r._current;if(s===null)throw Error(c(456));if(r._pendingVisibility&2){var d=Ta(s,2);d!==null&&(r._pendingVisibility&=-3,Kt(d,s,2))}}};return e.stateNode=r,e}function ys(e,t,n){return e=Cn(6,e,null,t),e.lanes=n,e}function ps(e,t,n){return t=Cn(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function ha(e){e.flags|=4}function Mh(e,t){if(t.type!=="stylesheet"||t.state.loading&4)e.flags&=-16777217;else if(e.flags|=16777216,!vm(t)){if(t=Rn.current,t!==null&&((Ue&4194176)===Ue?Yn!==null:(Ue&62914560)!==Ue&&!(Ue&536870912)||t!==Yn))throw Ci=Sc,Ff;e.flags|=8192}}function lu(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag!==22?N():536870912,e.lanes|=t,Pl|=t)}function Xi(e,t){if(!Be)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;t!==null;)t.alternate!==null&&(n=t),t=t.sibling;n===null?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var l=null;n!==null;)n.alternate!==null&&(l=n),n=n.sibling;l===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:l.sibling=null}}function ut(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,l=0;if(t)for(var r=e.child;r!==null;)n|=r.lanes|r.childLanes,l|=r.subtreeFlags&31457280,l|=r.flags&31457280,r.return=e,r=r.sibling;else for(r=e.child;r!==null;)n|=r.lanes|r.childLanes,l|=r.subtreeFlags,l|=r.flags,r.return=e,r=r.sibling;return e.subtreeFlags|=l,e.childLanes=n,t}function $v(e,t,n){var l=t.pendingProps;switch(Ec(t),t.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return ut(t),null;case 1:return ut(t),null;case 3:return n=t.stateNode,l=null,e!==null&&(l=e.memoizedState.cache),t.memoizedState.cache!==l&&(t.flags|=2048),sa(Rt),Tt(),n.pendingContext&&(n.context=n.pendingContext,n.pendingContext=null),(e===null||e.child===null)&&(_i(t)?ha(t):e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,Mn!==null&&(Rs(Mn),Mn=null))),ut(t),null;case 26:return n=t.memoizedState,e===null?(ha(t),n!==null?(ut(t),Mh(t,n)):(ut(t),t.flags&=-16777217)):n?n!==e.memoizedState?(ha(t),ut(t),Mh(t,n)):(ut(t),t.flags&=-16777217):(e.memoizedProps!==l&&ha(t),ut(t),t.flags&=-16777217),null;case 27:en(t),n=mt.current;var r=t.type;if(e!==null&&t.stateNode!=null)e.memoizedProps!==l&&ha(t);else{if(!l){if(t.stateNode===null)throw Error(c(166));return ut(t),null}e=Ke.current,_i(t)?$f(t):(e=sm(r,l,n),t.stateNode=e,ha(t))}return ut(t),null;case 5:if(en(t),n=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==l&&ha(t);else{if(!l){if(t.stateNode===null)throw Error(c(166));return ut(t),null}if(e=Ke.current,_i(t))$f(t);else{switch(r=yu(mt.current),e){case 1:e=r.createElementNS("http://www.w3.org/2000/svg",n);break;case 2:e=r.createElementNS("http://www.w3.org/1998/Math/MathML",n);break;default:switch(n){case"svg":e=r.createElementNS("http://www.w3.org/2000/svg",n);break;case"math":e=r.createElementNS("http://www.w3.org/1998/Math/MathML",n);break;case"script":e=r.createElement("div"),e.innerHTML="<script><\/script>",e=e.removeChild(e.firstChild);break;case"select":e=typeof l.is=="string"?r.createElement("select",{is:l.is}):r.createElement("select"),l.multiple?e.multiple=!0:l.size&&(e.size=l.size);break;default:e=typeof l.is=="string"?r.createElement(n,{is:l.is}):r.createElement(n)}}e[se]=t,e[ye]=l;e:for(r=t.child;r!==null;){if(r.tag===5||r.tag===6)e.appendChild(r.stateNode);else if(r.tag!==4&&r.tag!==27&&r.child!==null){r.child.return=r,r=r.child;continue}if(r===t)break e;for(;r.sibling===null;){if(r.return===null||r.return===t)break e;r=r.return}r.sibling.return=r.return,r=r.sibling}t.stateNode=e;e:switch(Lt(e,n,l),n){case"button":case"input":case"select":case"textarea":e=!!l.autoFocus;break e;case"img":e=!0;break e;default:e=!1}e&&ha(t)}}return ut(t),t.flags&=-16777217,null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==l&&ha(t);else{if(typeof l!="string"&&t.stateNode===null)throw Error(c(166));if(e=mt.current,_i(t)){if(e=t.stateNode,n=t.memoizedProps,l=null,r=Zt,r!==null)switch(r.tag){case 27:case 5:l=r.memoizedProps}e[se]=t,e=!!(e.nodeValue===n||l!==null&&l.suppressHydrationWarning===!0||am(e.nodeValue,n)),e||rl(t)}else e=yu(e).createTextNode(l),e[se]=t,t.stateNode=e}return ut(t),null;case 13:if(l=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(r=_i(t),l!==null&&l.dehydrated!==null){if(e===null){if(!r)throw Error(c(318));if(r=t.memoizedState,r=r!==null?r.dehydrated:null,!r)throw Error(c(317));r[se]=t}else Ri(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;ut(t),r=!1}else Mn!==null&&(Rs(Mn),Mn=null),r=!0;if(!r)return t.flags&256?(ia(t),t):(ia(t),null)}if(ia(t),t.flags&128)return t.lanes=n,t;if(n=l!==null,e=e!==null&&e.memoizedState!==null,n){l=t.child,r=null,l.alternate!==null&&l.alternate.memoizedState!==null&&l.alternate.memoizedState.cachePool!==null&&(r=l.alternate.memoizedState.cachePool.pool);var s=null;l.memoizedState!==null&&l.memoizedState.cachePool!==null&&(s=l.memoizedState.cachePool.pool),s!==r&&(l.flags|=2048)}return n!==e&&n&&(t.child.flags|=8192),lu(t,t.updateQueue),ut(t),null;case 4:return Tt(),e===null&&Ls(t.stateNode.containerInfo),ut(t),null;case 10:return sa(t.type),ut(t),null;case 19:if(He(_t),r=t.memoizedState,r===null)return ut(t),null;if(l=(t.flags&128)!==0,s=r.rendering,s===null)if(l)Xi(r,!1);else{if(dt!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(s=Vr(e),s!==null){for(t.flags|=128,Xi(r,!1),e=s.updateQueue,t.updateQueue=e,lu(t,e),t.subtreeFlags=0,e=n,n=t.child;n!==null;)Ah(n,e),n=n.sibling;return pe(_t,_t.current&1|2),t.child}e=e.sibling}r.tail!==null&&yt()>iu&&(t.flags|=128,l=!0,Xi(r,!1),t.lanes=4194304)}else{if(!l)if(e=Vr(s),e!==null){if(t.flags|=128,l=!0,e=e.updateQueue,t.updateQueue=e,lu(t,e),Xi(r,!0),r.tail===null&&r.tailMode==="hidden"&&!s.alternate&&!Be)return ut(t),null}else 2*yt()-r.renderingStartTime>iu&&n!==536870912&&(t.flags|=128,l=!0,Xi(r,!1),t.lanes=4194304);r.isBackwards?(s.sibling=t.child,t.child=s):(e=r.last,e!==null?e.sibling=s:t.child=s,r.last=s)}return r.tail!==null?(t=r.tail,r.rendering=t,r.tail=t.sibling,r.renderingStartTime=yt(),t.sibling=null,e=_t.current,pe(_t,l?e&1|2:e&1),t):(ut(t),null);case 22:case 23:return ia(t),_c(),l=t.memoizedState!==null,e!==null?e.memoizedState!==null!==l&&(t.flags|=8192):l&&(t.flags|=8192),l?n&536870912&&!(t.flags&128)&&(ut(t),t.subtreeFlags&6&&(t.flags|=8192)):ut(t),n=t.updateQueue,n!==null&&lu(t,n.retryQueue),n=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(n=e.memoizedState.cachePool.pool),l=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(l=t.memoizedState.cachePool.pool),l!==n&&(t.flags|=2048),e!==null&&He(cl),null;case 24:return n=null,e!==null&&(n=e.memoizedState.cache),t.memoizedState.cache!==n&&(t.flags|=2048),sa(Rt),ut(t),null;case 25:return null}throw Error(c(156,t.tag))}function Jv(e,t){switch(Ec(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return sa(Rt),Tt(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return en(t),null;case 13:if(ia(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(c(340));Ri()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return He(_t),null;case 4:return Tt(),null;case 10:return sa(t.type),null;case 22:case 23:return ia(t),_c(),e!==null&&He(cl),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return sa(Rt),null;case 25:return null;default:return null}}function zh(e,t){switch(Ec(t),t.tag){case 3:sa(Rt),Tt();break;case 26:case 27:case 5:en(t);break;case 4:Tt();break;case 13:ia(t);break;case 19:He(_t);break;case 10:sa(t.type);break;case 22:case 23:ia(t),_c(),e!==null&&He(cl);break;case 24:sa(Rt)}}var Fv={getCacheForType:function(e){var t=qt(Rt),n=t.data.get(e);return n===void 0&&(n=e(),t.data.set(e,n)),n}},Pv=typeof WeakMap=="function"?WeakMap:Map,ct=0,Pe=null,Ae=null,Ue=0,We=0,rn=null,ma=!1,Fl=!1,vs=!1,ya=0,dt=0,Ba=0,vl=0,gs=0,jn=0,Pl=0,Qi=null,Xn=null,Es=!1,bs=0,iu=1/0,ru=null,qa=null,uu=!1,gl=null,Zi=0,Ss=0,xs=null,Ki=0,_s=null;function un(){if(ct&2&&Ue!==0)return Ue&-Ue;if(Z.T!==null){var e=Yl;return e!==0?e:As()}return le()}function Lh(){jn===0&&(jn=!(Ue&536870912)||Be?br():536870912);var e=Rn.current;return e!==null&&(e.flags|=32),jn}function Kt(e,t,n){(e===Pe&&We===2||e.cancelPendingCommit!==null)&&(Wl(e,0),pa(e,Ue,jn,!1)),L(e,n),(!(ct&2)||e!==Pe)&&(e===Pe&&(!(ct&2)&&(vl|=n),dt===4&&pa(e,Ue,jn,!1)),Qn(e))}function Uh(e,t,n){if(ct&6)throw Error(c(327));var l=!n&&(t&60)===0&&(t&e.expiredLanes)===0||Qt(e,t),r=l?eg(e,t):Cs(e,t,!0),s=l;do{if(r===0){Fl&&!l&&pa(e,t,0,!1);break}else if(r===6)pa(e,t,0,!ma);else{if(n=e.current.alternate,s&&!Wv(n)){r=Cs(e,t,!1),s=!1;continue}if(r===2){if(s=t,e.errorRecoveryDisabledLanes&s)var d=0;else d=e.pendingLanes&-536870913,d=d!==0?d:d&536870912?536870912:0;if(d!==0){t=d;e:{var E=e;r=Qi;var S=E.current.memoizedState.isDehydrated;if(S&&(Wl(E,d).flags|=256),d=Cs(E,d,!1),d!==2){if(vs&&!S){E.errorRecoveryDisabledLanes|=s,vl|=s,r=4;break e}s=Xn,Xn=r,s!==null&&Rs(s)}r=d}if(s=!1,r!==2)continue}}if(r===1){Wl(e,0),pa(e,t,0,!0);break}e:{switch(l=e,r){case 0:case 1:throw Error(c(345));case 4:if((t&4194176)===t){pa(l,t,jn,!ma);break e}break;case 2:Xn=null;break;case 3:case 5:break;default:throw Error(c(329))}if(l.finishedWork=n,l.finishedLanes=t,(t&62914560)===t&&(s=bs+300-yt(),10<s)){if(pa(l,t,jn,!ma),Ft(l,0)!==0)break e;l.timeoutHandle=rm(Hh.bind(null,l,n,Xn,ru,Es,t,jn,vl,Pl,ma,2,-0,0),s);break e}Hh(l,n,Xn,ru,Es,t,jn,vl,Pl,ma,0,-0,0)}}break}while(!0);Qn(e)}function Rs(e){Xn===null?Xn=e:Xn.push.apply(Xn,e)}function Hh(e,t,n,l,r,s,d,E,S,j,q,Q,z){var H=t.subtreeFlags;if((H&8192||(H&16785408)===16785408)&&(Ii={stylesheets:null,count:0,unsuspend:Mg},Ch(t),t=Lg(),t!==null)){e.cancelPendingCommit=t(Xh.bind(null,e,n,l,r,d,E,S,1,Q,z)),pa(e,s,d,!j);return}Xh(e,n,l,r,d,E,S,q,Q,z)}function Wv(e){for(var t=e;;){var n=t.tag;if((n===0||n===11||n===15)&&t.flags&16384&&(n=t.updateQueue,n!==null&&(n=n.stores,n!==null)))for(var l=0;l<n.length;l++){var r=n[l],s=r.getSnapshot;r=r.value;try{if(!nn(s(),r))return!1}catch{return!1}}if(n=t.child,t.subtreeFlags&16384&&n!==null)n.return=t,t=n;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function pa(e,t,n,l){t&=~gs,t&=~vl,e.suspendedLanes|=t,e.pingedLanes&=~t,l&&(e.warmLanes|=t),l=e.expirationTimes;for(var r=t;0<r;){var s=31-lt(r),d=1<<s;l[s]=-1,r&=~d}n!==0&&te(e,n,t)}function cu(){return ct&6?!0:($i(0),!1)}function Ts(){if(Ae!==null){if(We===0)var e=Ae.return;else e=Ae,ca=hl=null,Ac(e),kl=null,ji=0,e=Ae;for(;e!==null;)zh(e.alternate,e),e=e.return;Ae=null}}function Wl(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;n!==-1&&(e.timeoutHandle=-1,vg(n)),n=e.cancelPendingCommit,n!==null&&(e.cancelPendingCommit=null,n()),Ts(),Pe=e,Ae=n=Ha(e.current,null),Ue=t,We=0,rn=null,ma=!1,Fl=Qt(e,t),vs=!1,Pl=jn=gs=vl=Ba=dt=0,Xn=Qi=null,Es=!1,t&8&&(t|=t&32);var l=e.entangledLanes;if(l!==0)for(e=e.entanglements,l&=t;0<l;){var r=31-lt(l),s=1<<r;t|=e[r],l&=~s}return ya=t,wr(),n}function Bh(e,t){Ce=null,Z.H=Gn,t===Ni?(t=If(),We=3):t===Ff?(t=If(),We=4):We=t===Pd?8:t!==null&&typeof t=="object"&&typeof t.then=="function"?6:1,rn=t,Ae===null&&(dt=1,Wr(e,Sn(t,e.current)))}function qh(){var e=Z.H;return Z.H=Gn,e===null?Gn:e}function kh(){var e=Z.A;return Z.A=Fv,e}function Ns(){dt=4,ma||(Ue&4194176)!==Ue&&Rn.current!==null||(Fl=!0),!(Ba&134217727)&&!(vl&134217727)||Pe===null||pa(Pe,Ue,jn,!1)}function Cs(e,t,n){var l=ct;ct|=2;var r=qh(),s=kh();(Pe!==e||Ue!==t)&&(ru=null,Wl(e,t)),t=!1;var d=dt;e:do try{if(We!==0&&Ae!==null){var E=Ae,S=rn;switch(We){case 8:Ts(),d=6;break e;case 3:case 2:case 6:Rn.current===null&&(t=!0);var j=We;if(We=0,rn=null,Il(e,E,S,j),n&&Fl){d=0;break e}break;default:j=We,We=0,rn=null,Il(e,E,S,j)}}Iv(),d=dt;break}catch(q){Bh(e,q)}while(!0);return t&&e.shellSuspendCounter++,ca=hl=null,ct=l,Z.H=r,Z.A=s,Ae===null&&(Pe=null,Ue=0,wr()),d}function Iv(){for(;Ae!==null;)Vh(Ae)}function eg(e,t){var n=ct;ct|=2;var l=qh(),r=kh();Pe!==e||Ue!==t?(ru=null,iu=yt()+500,Wl(e,t)):Fl=Qt(e,t);e:do try{if(We!==0&&Ae!==null){t=Ae;var s=rn;t:switch(We){case 1:We=0,rn=null,Il(e,t,s,1);break;case 2:if(Pf(s)){We=0,rn=null,Yh(t);break}t=function(){We===2&&Pe===e&&(We=7),Qn(e)},s.then(t,t);break e;case 3:We=7;break e;case 4:We=5;break e;case 7:Pf(s)?(We=0,rn=null,Yh(t)):(We=0,rn=null,Il(e,t,s,7));break;case 5:var d=null;switch(Ae.tag){case 26:d=Ae.memoizedState;case 5:case 27:var E=Ae;if(!d||vm(d)){We=0,rn=null;var S=E.sibling;if(S!==null)Ae=S;else{var j=E.return;j!==null?(Ae=j,su(j)):Ae=null}break t}}We=0,rn=null,Il(e,t,s,5);break;case 6:We=0,rn=null,Il(e,t,s,6);break;case 8:Ts(),dt=6;break e;default:throw Error(c(462))}}tg();break}catch(q){Bh(e,q)}while(!0);return ca=hl=null,Z.H=l,Z.A=r,ct=n,Ae!==null?0:(Pe=null,Ue=0,wr(),dt)}function tg(){for(;Ae!==null&&!Ht();)Vh(Ae)}function Vh(e){var t=sh(e.alternate,e,ya);e.memoizedProps=e.pendingProps,t===null?su(e):Ae=t}function Yh(e){var t=e,n=t.alternate;switch(t.tag){case 15:case 0:t=ah(n,t,t.pendingProps,t.type,void 0,Ue);break;case 11:t=ah(n,t,t.pendingProps,t.type.render,t.ref,Ue);break;case 5:Ac(t);default:zh(n,t),t=Ae=Ah(t,ya),t=sh(n,t,ya)}e.memoizedProps=e.pendingProps,t===null?su(e):Ae=t}function Il(e,t,n,l){ca=hl=null,Ac(t),kl=null,ji=0;var r=t.return;try{if(Gv(e,r,t,n,Ue)){dt=1,Wr(e,Sn(n,e.current)),Ae=null;return}}catch(s){if(r!==null)throw Ae=r,s;dt=1,Wr(e,Sn(n,e.current)),Ae=null;return}t.flags&32768?(Be||l===1?e=!0:Fl||Ue&536870912?e=!1:(ma=e=!0,(l===2||l===3||l===6)&&(l=Rn.current,l!==null&&l.tag===13&&(l.flags|=16384))),Gh(t,e)):su(t)}function su(e){var t=e;do{if(t.flags&32768){Gh(t,ma);return}e=t.return;var n=$v(t.alternate,t,ya);if(n!==null){Ae=n;return}if(t=t.sibling,t!==null){Ae=t;return}Ae=t=e}while(t!==null);dt===0&&(dt=5)}function Gh(e,t){do{var n=Jv(e.alternate,e);if(n!==null){n.flags&=32767,Ae=n;return}if(n=e.return,n!==null&&(n.flags|=32768,n.subtreeFlags=0,n.deletions=null),!t&&(e=e.sibling,e!==null)){Ae=e;return}Ae=e=n}while(e!==null);dt=6,Ae=null}function Xh(e,t,n,l,r,s,d,E,S,j){var q=Z.T,Q=F.p;try{F.p=2,Z.T=null,ng(e,t,n,l,Q,r,s,d,E,S,j)}finally{Z.T=q,F.p=Q}}function ng(e,t,n,l,r,s,d,E){do ei();while(gl!==null);if(ct&6)throw Error(c(327));var S=e.finishedWork;if(l=e.finishedLanes,S===null)return null;if(e.finishedWork=null,e.finishedLanes=0,S===e.current)throw Error(c(177));e.callbackNode=null,e.callbackPriority=0,e.cancelPendingCommit=null;var j=S.lanes|S.childLanes;if(j|=pc,K(e,l,j,s,d,E),e===Pe&&(Ae=Pe=null,Ue=0),!(S.subtreeFlags&10256)&&!(S.flags&10256)||uu||(uu=!0,Ss=j,xs=n,rg(Yt,function(){return ei(),null})),n=(S.flags&15990)!==0,S.subtreeFlags&15990||n?(n=Z.T,Z.T=null,s=F.p,F.p=2,d=ct,ct|=4,Qv(e,S),Rh(S,e),Nv(qs,e.containerInfo),Su=!!Bs,qs=Bs=null,e.current=S,bh(e,S.alternate,S),Jt(),ct=d,F.p=s,Z.T=n):e.current=S,uu?(uu=!1,gl=e,Zi=l):Qh(e,j),j=e.pendingLanes,j===0&&(qa=null),Sa(S.stateNode),Qn(e),t!==null)for(r=e.onRecoverableError,S=0;S<t.length;S++)j=t[S],r(j.value,{componentStack:j.stack});return Zi&3&&ei(),j=e.pendingLanes,l&4194218&&j&42?e===_s?Ki++:(Ki=0,_s=e):Ki=0,$i(0),null}function Qh(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,Di(t)))}function ei(){if(gl!==null){var e=gl,t=Ss;Ss=0;var n=Se(Zi),l=Z.T,r=F.p;try{if(F.p=32>n?32:n,Z.T=null,gl===null)var s=!1;else{n=xs,xs=null;var d=gl,E=Zi;if(gl=null,Zi=0,ct&6)throw Error(c(331));var S=ct;if(ct|=4,Oh(d.current),Nh(d,d.current,E,n),ct=S,$i(0,!1),pt&&typeof pt.onPostCommitFiberRoot=="function")try{pt.onPostCommitFiberRoot(tn,d)}catch{}s=!0}return s}finally{F.p=r,Z.T=l,Qh(e,t)}}return!1}function Zh(e,t,n){t=Sn(n,t),t=Qc(e.stateNode,t,2),e=Ma(e,t,2),e!==null&&(L(e,2),Qn(e))}function Je(e,t,n){if(e.tag===3)Zh(e,e,n);else for(;t!==null;){if(t.tag===3){Zh(t,e,n);break}else if(t.tag===1){var l=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof l.componentDidCatch=="function"&&(qa===null||!qa.has(l))){e=Sn(n,e),n=Jd(2),l=Ma(t,n,2),l!==null&&(Fd(n,l,t,e),L(l,2),Qn(l));break}}t=t.return}}function js(e,t,n){var l=e.pingCache;if(l===null){l=e.pingCache=new Pv;var r=new Set;l.set(t,r)}else r=l.get(t),r===void 0&&(r=new Set,l.set(t,r));r.has(n)||(vs=!0,r.add(n),e=ag.bind(null,e,t,n),t.then(e,e))}function ag(e,t,n){var l=e.pingCache;l!==null&&l.delete(t),e.pingedLanes|=e.suspendedLanes&n,e.warmLanes&=~n,Pe===e&&(Ue&n)===n&&(dt===4||dt===3&&(Ue&62914560)===Ue&&300>yt()-bs?!(ct&2)&&Wl(e,0):gs|=n,Pl===Ue&&(Pl=0)),Qn(e)}function Kh(e,t){t===0&&(t=N()),e=Ta(e,t),e!==null&&(L(e,t),Qn(e))}function lg(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),Kh(e,n)}function ig(e,t){var n=0;switch(e.tag){case 13:var l=e.stateNode,r=e.memoizedState;r!==null&&(n=r.retryLane);break;case 19:l=e.stateNode;break;case 22:l=e.stateNode._retryCache;break;default:throw Error(c(314))}l!==null&&l.delete(t),Kh(e,n)}function rg(e,t){return dn(e,t)}var ou=null,ti=null,Os=!1,fu=!1,Ds=!1,El=0;function Qn(e){e!==ti&&e.next===null&&(ti===null?ou=ti=e:ti=ti.next=e),fu=!0,Os||(Os=!0,cg(ug))}function $i(e,t){if(!Ds&&fu){Ds=!0;do for(var n=!1,l=ou;l!==null;){if(e!==0){var r=l.pendingLanes;if(r===0)var s=0;else{var d=l.suspendedLanes,E=l.pingedLanes;s=(1<<31-lt(42|e)+1)-1,s&=r&~(d&~E),s=s&201326677?s&201326677|1:s?s|2:0}s!==0&&(n=!0,Fh(l,s))}else s=Ue,s=Ft(l,l===Pe?s:0),!(s&3)||Qt(l,s)||(n=!0,Fh(l,s));l=l.next}while(n);Ds=!1}}function ug(){fu=Os=!1;var e=0;El!==0&&(pg()&&(e=El),El=0);for(var t=yt(),n=null,l=ou;l!==null;){var r=l.next,s=$h(l,t);s===0?(l.next=null,n===null?ou=r:n.next=r,r===null&&(ti=n)):(n=l,(e!==0||s&3)&&(fu=!0)),l=r}$i(e)}function $h(e,t){for(var n=e.suspendedLanes,l=e.pingedLanes,r=e.expirationTimes,s=e.pendingLanes&-62914561;0<s;){var d=31-lt(s),E=1<<d,S=r[d];S===-1?(!(E&n)||E&l)&&(r[d]=_a(E,t)):S<=t&&(e.expiredLanes|=E),s&=~E}if(t=Pe,n=Ue,n=Ft(e,e===t?n:0),l=e.callbackNode,n===0||e===t&&We===2||e.cancelPendingCommit!==null)return l!==null&&l!==null&&hn(l),e.callbackNode=null,e.callbackPriority=0;if(!(n&3)||Qt(e,n)){if(t=n&-n,t===e.callbackPriority)return t;switch(l!==null&&hn(l),Se(n)){case 2:case 8:n=at;break;case 32:n=Yt;break;case 268435456:n=Fn;break;default:n=Yt}return l=Jh.bind(null,e),n=dn(n,l),e.callbackPriority=t,e.callbackNode=n,t}return l!==null&&l!==null&&hn(l),e.callbackPriority=2,e.callbackNode=null,2}function Jh(e,t){var n=e.callbackNode;if(ei()&&e.callbackNode!==n)return null;var l=Ue;return l=Ft(e,e===Pe?l:0),l===0?null:(Uh(e,l,t),$h(e,yt()),e.callbackNode!=null&&e.callbackNode===n?Jh.bind(null,e):null)}function Fh(e,t){if(ei())return null;Uh(e,t,!0)}function cg(e){gg(function(){ct&6?dn(xe,e):e()})}function As(){return El===0&&(El=br()),El}function Ph(e){return e==null||typeof e=="symbol"||typeof e=="boolean"?null:typeof e=="function"?e:Tr(""+e)}function Wh(e,t){var n=t.ownerDocument.createElement("input");return n.name=t.name,n.value=t.value,e.id&&n.setAttribute("form",e.id),t.parentNode.insertBefore(n,t),e=new FormData(e),n.parentNode.removeChild(n),e}function sg(e,t,n,l,r){if(t==="submit"&&n&&n.stateNode===r){var s=Ph((r[ye]||null).action),d=l.submitter;d&&(t=(t=d[ye]||null)?Ph(t.formAction):d.getAttribute("formAction"),t!==null&&(s=t,d=null));var E=new Or("action","action",null,l,r);e.push({event:E,listeners:[{instance:null,listener:function(){if(l.defaultPrevented){if(El!==0){var S=d?Wh(r,d):new FormData(r);kc(n,{pending:!0,data:S,method:r.method,action:s},null,S)}}else typeof s=="function"&&(E.preventDefault(),S=d?Wh(r,d):new FormData(r),kc(n,{pending:!0,data:S,method:r.method,action:s},s,S))},currentTarget:r}]})}}for(var ws=0;ws<Xf.length;ws++){var Ms=Xf[ws],og=Ms.toLowerCase(),fg=Ms[0].toUpperCase()+Ms.slice(1);wn(og,"on"+fg)}wn(qf,"onAnimationEnd"),wn(kf,"onAnimationIteration"),wn(Vf,"onAnimationStart"),wn("dblclick","onDoubleClick"),wn("focusin","onFocus"),wn("focusout","onBlur"),wn(jv,"onTransitionRun"),wn(Ov,"onTransitionStart"),wn(Dv,"onTransitionCancel"),wn(Yf,"onTransitionEnd"),it("onMouseEnter",["mouseout","mouseover"]),it("onMouseLeave",["mouseout","mouseover"]),it("onPointerEnter",["pointerout","pointerover"]),it("onPointerLeave",["pointerout","pointerover"]),Le("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),Le("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),Le("onBeforeInput",["compositionend","keypress","textInput","paste"]),Le("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),Le("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),Le("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Ji="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(" "),dg=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(Ji));function Ih(e,t){t=(t&4)!==0;for(var n=0;n<e.length;n++){var l=e[n],r=l.event;l=l.listeners;e:{var s=void 0;if(t)for(var d=l.length-1;0<=d;d--){var E=l[d],S=E.instance,j=E.currentTarget;if(E=E.listener,S!==s&&r.isPropagationStopped())break e;s=E,r.currentTarget=j;try{s(r)}catch(q){Pr(q)}r.currentTarget=null,s=S}else for(d=0;d<l.length;d++){if(E=l[d],S=E.instance,j=E.currentTarget,E=E.listener,S!==s&&r.isPropagationStopped())break e;s=E,r.currentTarget=j;try{s(r)}catch(q){Pr(q)}r.currentTarget=null,s=S}}}}function Me(e,t){var n=t[vt];n===void 0&&(n=t[vt]=new Set);var l=e+"__bubble";n.has(l)||(em(t,e,2,!1),n.add(l))}function zs(e,t,n){var l=0;t&&(l|=4),em(n,e,l,t)}var du="_reactListening"+Math.random().toString(36).slice(2);function Ls(e){if(!e[du]){e[du]=!0,Wa.forEach(function(n){n!=="selectionchange"&&(dg.has(n)||zs(n,!1,e),zs(n,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[du]||(t[du]=!0,zs("selectionchange",!1,t))}}function em(e,t,n,l){switch(_m(t)){case 2:var r=Bg;break;case 8:r=qg;break;default:r=$s}n=r.bind(null,t,n,e),r=void 0,!ac||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(r=!0),l?r!==void 0?e.addEventListener(t,n,{capture:!0,passive:r}):e.addEventListener(t,n,!0):r!==void 0?e.addEventListener(t,n,{passive:r}):e.addEventListener(t,n,!1)}function Us(e,t,n,l,r){var s=l;if(!(t&1)&&!(t&2)&&l!==null)e:for(;;){if(l===null)return;var d=l.tag;if(d===3||d===4){var E=l.stateNode.containerInfo;if(E===r||E.nodeType===8&&E.parentNode===r)break;if(d===4)for(d=l.return;d!==null;){var S=d.tag;if((S===3||S===4)&&(S=d.stateNode.containerInfo,S===r||S.nodeType===8&&S.parentNode===r))return;d=d.return}for(;E!==null;){if(d=At(E),d===null)return;if(S=d.tag,S===5||S===6||S===26||S===27){l=s=d;continue e}E=E.parentNode}}l=l.return}yf(function(){var j=s,q=tc(n),Q=[];e:{var z=Gf.get(e);if(z!==void 0){var H=Or,fe=e;switch(e){case"keypress":if(Cr(n)===0)break e;case"keydown":case"keyup":H=iv;break;case"focusin":fe="focus",H=uc;break;case"focusout":fe="blur",H=uc;break;case"beforeblur":case"afterblur":H=uc;break;case"click":if(n.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":H=gf;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":H=Kp;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":H=cv;break;case qf:case kf:case Vf:H=Fp;break;case Yf:H=ov;break;case"scroll":case"scrollend":H=Qp;break;case"wheel":H=dv;break;case"copy":case"cut":case"paste":H=Wp;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":H=bf;break;case"toggle":case"beforetoggle":H=mv}var _e=(t&4)!==0,ht=!_e&&(e==="scroll"||e==="scrollend"),D=_e?z!==null?z+"Capture":null:z;_e=[];for(var C=j,M;C!==null;){var G=C;if(M=G.stateNode,G=G.tag,G!==5&&G!==26&&G!==27||M===null||D===null||(G=mi(C,D),G!=null&&_e.push(Fi(C,G,M))),ht)break;C=C.return}0<_e.length&&(z=new H(z,fe,null,n,q),Q.push({event:z,listeners:_e}))}}if(!(t&7)){e:{if(z=e==="mouseover"||e==="pointerover",H=e==="mouseout"||e==="pointerout",z&&n!==ec&&(fe=n.relatedTarget||n.fromElement)&&(At(fe)||fe[ke]))break e;if((H||z)&&(z=q.window===q?q:(z=q.ownerDocument)?z.defaultView||z.parentWindow:window,H?(fe=n.relatedTarget||n.toElement,H=j,fe=fe?At(fe):null,fe!==null&&(ht=I(fe),_e=fe.tag,fe!==ht||_e!==5&&_e!==27&&_e!==6)&&(fe=null)):(H=null,fe=j),H!==fe)){if(_e=gf,G="onMouseLeave",D="onMouseEnter",C="mouse",(e==="pointerout"||e==="pointerover")&&(_e=bf,G="onPointerLeave",D="onPointerEnter",C="pointer"),ht=H==null?z:ea(H),M=fe==null?z:ea(fe),z=new _e(G,C+"leave",H,n,q),z.target=ht,z.relatedTarget=M,G=null,At(q)===j&&(_e=new _e(D,C+"enter",fe,n,q),_e.target=M,_e.relatedTarget=ht,G=_e),ht=G,H&&fe)t:{for(_e=H,D=fe,C=0,M=_e;M;M=ni(M))C++;for(M=0,G=D;G;G=ni(G))M++;for(;0<C-M;)_e=ni(_e),C--;for(;0<M-C;)D=ni(D),M--;for(;C--;){if(_e===D||D!==null&&_e===D.alternate)break t;_e=ni(_e),D=ni(D)}_e=null}else _e=null;H!==null&&tm(Q,z,H,_e,!1),fe!==null&&ht!==null&&tm(Q,ht,fe,_e,!0)}}e:{if(z=j?ea(j):window,H=z.nodeName&&z.nodeName.toLowerCase(),H==="select"||H==="input"&&z.type==="file")var re=jf;else if(Nf(z))if(Of)re=Rv;else{re=xv;var Oe=Sv}else H=z.nodeName,!H||H.toLowerCase()!=="input"||z.type!=="checkbox"&&z.type!=="radio"?j&&Iu(j.elementType)&&(re=jf):re=_v;if(re&&(re=re(e,j))){Cf(Q,re,n,q);break e}Oe&&Oe(e,z,j),e==="focusout"&&j&&z.type==="number"&&j.memoizedProps.value!=null&&Wu(z,"number",z.value)}switch(Oe=j?ea(j):window,e){case"focusin":(Nf(Oe)||Oe.contentEditable==="true")&&(zl=Oe,hc=j,xi=null);break;case"focusout":xi=hc=zl=null;break;case"mousedown":mc=!0;break;case"contextmenu":case"mouseup":case"dragend":mc=!1,Hf(Q,n,q);break;case"selectionchange":if(Cv)break;case"keydown":case"keyup":Hf(Q,n,q)}var me;if(sc)e:{switch(e){case"compositionstart":var Ee="onCompositionStart";break e;case"compositionend":Ee="onCompositionEnd";break e;case"compositionupdate":Ee="onCompositionUpdate";break e}Ee=void 0}else Ml?Rf(e,n)&&(Ee="onCompositionEnd"):e==="keydown"&&n.keyCode===229&&(Ee="onCompositionStart");Ee&&(Sf&&n.locale!=="ko"&&(Ml||Ee!=="onCompositionStart"?Ee==="onCompositionEnd"&&Ml&&(me=pf()):(Ra=q,lc="value"in Ra?Ra.value:Ra.textContent,Ml=!0)),Oe=hu(j,Ee),0<Oe.length&&(Ee=new Ef(Ee,e,null,n,q),Q.push({event:Ee,listeners:Oe}),me?Ee.data=me:(me=Tf(n),me!==null&&(Ee.data=me)))),(me=pv?vv(e,n):gv(e,n))&&(Ee=hu(j,"onBeforeInput"),0<Ee.length&&(Oe=new Ef("onBeforeInput","beforeinput",null,n,q),Q.push({event:Oe,listeners:Ee}),Oe.data=me)),sg(Q,e,j,n,q)}Ih(Q,t)})}function Fi(e,t,n){return{instance:e,listener:t,currentTarget:n}}function hu(e,t){for(var n=t+"Capture",l=[];e!==null;){var r=e,s=r.stateNode;r=r.tag,r!==5&&r!==26&&r!==27||s===null||(r=mi(e,n),r!=null&&l.unshift(Fi(e,r,s)),r=mi(e,t),r!=null&&l.push(Fi(e,r,s))),e=e.return}return l}function ni(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function tm(e,t,n,l,r){for(var s=t._reactName,d=[];n!==null&&n!==l;){var E=n,S=E.alternate,j=E.stateNode;if(E=E.tag,S!==null&&S===l)break;E!==5&&E!==26&&E!==27||j===null||(S=j,r?(j=mi(n,s),j!=null&&d.unshift(Fi(n,j,S))):r||(j=mi(n,s),j!=null&&d.push(Fi(n,j,S)))),n=n.return}d.length!==0&&e.push({event:t,listeners:d})}var hg=/\r\n?/g,mg=/\u0000|\uFFFD/g;function nm(e){return(typeof e=="string"?e:""+e).replace(hg,` +`).replace(mg,"")}function am(e,t){return t=nm(t),nm(e)===t}function mu(){}function Xe(e,t,n,l,r,s){switch(n){case"children":typeof l=="string"?t==="body"||t==="textarea"&&l===""||Dl(e,l):(typeof l=="number"||typeof l=="bigint")&&t!=="body"&&Dl(e,""+l);break;case"className":xr(e,"class",l);break;case"tabIndex":xr(e,"tabindex",l);break;case"dir":case"role":case"viewBox":case"width":case"height":xr(e,n,l);break;case"style":hf(e,l,s);break;case"data":if(t!=="object"){xr(e,"data",l);break}case"src":case"href":if(l===""&&(t!=="a"||n!=="href")){e.removeAttribute(n);break}if(l==null||typeof l=="function"||typeof l=="symbol"||typeof l=="boolean"){e.removeAttribute(n);break}l=Tr(""+l),e.setAttribute(n,l);break;case"action":case"formAction":if(typeof l=="function"){e.setAttribute(n,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}else typeof s=="function"&&(n==="formAction"?(t!=="input"&&Xe(e,t,"name",r.name,r,null),Xe(e,t,"formEncType",r.formEncType,r,null),Xe(e,t,"formMethod",r.formMethod,r,null),Xe(e,t,"formTarget",r.formTarget,r,null)):(Xe(e,t,"encType",r.encType,r,null),Xe(e,t,"method",r.method,r,null),Xe(e,t,"target",r.target,r,null)));if(l==null||typeof l=="symbol"||typeof l=="boolean"){e.removeAttribute(n);break}l=Tr(""+l),e.setAttribute(n,l);break;case"onClick":l!=null&&(e.onclick=mu);break;case"onScroll":l!=null&&Me("scroll",e);break;case"onScrollEnd":l!=null&&Me("scrollend",e);break;case"dangerouslySetInnerHTML":if(l!=null){if(typeof l!="object"||!("__html"in l))throw Error(c(61));if(n=l.__html,n!=null){if(r.children!=null)throw Error(c(60));e.innerHTML=n}}break;case"multiple":e.multiple=l&&typeof l!="function"&&typeof l!="symbol";break;case"muted":e.muted=l&&typeof l!="function"&&typeof l!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(l==null||typeof l=="function"||typeof l=="boolean"||typeof l=="symbol"){e.removeAttribute("xlink:href");break}n=Tr(""+l),e.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",n);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":l!=null&&typeof l!="function"&&typeof l!="symbol"?e.setAttribute(n,""+l):e.removeAttribute(n);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":l&&typeof l!="function"&&typeof l!="symbol"?e.setAttribute(n,""):e.removeAttribute(n);break;case"capture":case"download":l===!0?e.setAttribute(n,""):l!==!1&&l!=null&&typeof l!="function"&&typeof l!="symbol"?e.setAttribute(n,l):e.removeAttribute(n);break;case"cols":case"rows":case"size":case"span":l!=null&&typeof l!="function"&&typeof l!="symbol"&&!isNaN(l)&&1<=l?e.setAttribute(n,l):e.removeAttribute(n);break;case"rowSpan":case"start":l==null||typeof l=="function"||typeof l=="symbol"||isNaN(l)?e.removeAttribute(n):e.setAttribute(n,l);break;case"popover":Me("beforetoggle",e),Me("toggle",e),jl(e,"popover",l);break;case"xlinkActuate":na(e,"http://www.w3.org/1999/xlink","xlink:actuate",l);break;case"xlinkArcrole":na(e,"http://www.w3.org/1999/xlink","xlink:arcrole",l);break;case"xlinkRole":na(e,"http://www.w3.org/1999/xlink","xlink:role",l);break;case"xlinkShow":na(e,"http://www.w3.org/1999/xlink","xlink:show",l);break;case"xlinkTitle":na(e,"http://www.w3.org/1999/xlink","xlink:title",l);break;case"xlinkType":na(e,"http://www.w3.org/1999/xlink","xlink:type",l);break;case"xmlBase":na(e,"http://www.w3.org/XML/1998/namespace","xml:base",l);break;case"xmlLang":na(e,"http://www.w3.org/XML/1998/namespace","xml:lang",l);break;case"xmlSpace":na(e,"http://www.w3.org/XML/1998/namespace","xml:space",l);break;case"is":jl(e,"is",l);break;case"innerText":case"textContent":break;default:(!(2<n.length)||n[0]!=="o"&&n[0]!=="O"||n[1]!=="n"&&n[1]!=="N")&&(n=Gp.get(n)||n,jl(e,n,l))}}function Hs(e,t,n,l,r,s){switch(n){case"style":hf(e,l,s);break;case"dangerouslySetInnerHTML":if(l!=null){if(typeof l!="object"||!("__html"in l))throw Error(c(61));if(n=l.__html,n!=null){if(r.children!=null)throw Error(c(60));e.innerHTML=n}}break;case"children":typeof l=="string"?Dl(e,l):(typeof l=="number"||typeof l=="bigint")&&Dl(e,""+l);break;case"onScroll":l!=null&&Me("scroll",e);break;case"onScrollEnd":l!=null&&Me("scrollend",e);break;case"onClick":l!=null&&(e.onclick=mu);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!Ia.hasOwnProperty(n))e:{if(n[0]==="o"&&n[1]==="n"&&(r=n.endsWith("Capture"),t=n.slice(2,r?n.length-7:void 0),s=e[ye]||null,s=s!=null?s[n]:null,typeof s=="function"&&e.removeEventListener(t,s,r),typeof l=="function")){typeof s!="function"&&s!==null&&(n in e?e[n]=null:e.hasAttribute(n)&&e.removeAttribute(n)),e.addEventListener(t,l,r);break e}n in e?e[n]=l:l===!0?e.setAttribute(n,""):jl(e,n,l)}}}function Lt(e,t,n){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":Me("error",e),Me("load",e);var l=!1,r=!1,s;for(s in n)if(n.hasOwnProperty(s)){var d=n[s];if(d!=null)switch(s){case"src":l=!0;break;case"srcSet":r=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(c(137,t));default:Xe(e,t,s,d,n,null)}}r&&Xe(e,t,"srcSet",n.srcSet,n,null),l&&Xe(e,t,"src",n.src,n,null);return;case"input":Me("invalid",e);var E=s=d=r=null,S=null,j=null;for(l in n)if(n.hasOwnProperty(l)){var q=n[l];if(q!=null)switch(l){case"name":r=q;break;case"type":d=q;break;case"checked":S=q;break;case"defaultChecked":j=q;break;case"value":s=q;break;case"defaultValue":E=q;break;case"children":case"dangerouslySetInnerHTML":if(q!=null)throw Error(c(137,t));break;default:Xe(e,t,l,q,n,null)}}sf(e,s,E,S,j,d,r,!1),_r(e);return;case"select":Me("invalid",e),l=d=s=null;for(r in n)if(n.hasOwnProperty(r)&&(E=n[r],E!=null))switch(r){case"value":s=E;break;case"defaultValue":d=E;break;case"multiple":l=E;default:Xe(e,t,r,E,n,null)}t=s,n=d,e.multiple=!!l,t!=null?Ol(e,!!l,t,!1):n!=null&&Ol(e,!!l,n,!0);return;case"textarea":Me("invalid",e),s=r=l=null;for(d in n)if(n.hasOwnProperty(d)&&(E=n[d],E!=null))switch(d){case"value":l=E;break;case"defaultValue":r=E;break;case"children":s=E;break;case"dangerouslySetInnerHTML":if(E!=null)throw Error(c(91));break;default:Xe(e,t,d,E,n,null)}ff(e,l,r,s),_r(e);return;case"option":for(S in n)if(n.hasOwnProperty(S)&&(l=n[S],l!=null))switch(S){case"selected":e.selected=l&&typeof l!="function"&&typeof l!="symbol";break;default:Xe(e,t,S,l,n,null)}return;case"dialog":Me("cancel",e),Me("close",e);break;case"iframe":case"object":Me("load",e);break;case"video":case"audio":for(l=0;l<Ji.length;l++)Me(Ji[l],e);break;case"image":Me("error",e),Me("load",e);break;case"details":Me("toggle",e);break;case"embed":case"source":case"link":Me("error",e),Me("load",e);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(j in n)if(n.hasOwnProperty(j)&&(l=n[j],l!=null))switch(j){case"children":case"dangerouslySetInnerHTML":throw Error(c(137,t));default:Xe(e,t,j,l,n,null)}return;default:if(Iu(t)){for(q in n)n.hasOwnProperty(q)&&(l=n[q],l!==void 0&&Hs(e,t,q,l,n,void 0));return}}for(E in n)n.hasOwnProperty(E)&&(l=n[E],l!=null&&Xe(e,t,E,l,n,null))}function yg(e,t,n,l){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var r=null,s=null,d=null,E=null,S=null,j=null,q=null;for(H in n){var Q=n[H];if(n.hasOwnProperty(H)&&Q!=null)switch(H){case"checked":break;case"value":break;case"defaultValue":S=Q;default:l.hasOwnProperty(H)||Xe(e,t,H,null,l,Q)}}for(var z in l){var H=l[z];if(Q=n[z],l.hasOwnProperty(z)&&(H!=null||Q!=null))switch(z){case"type":s=H;break;case"name":r=H;break;case"checked":j=H;break;case"defaultChecked":q=H;break;case"value":d=H;break;case"defaultValue":E=H;break;case"children":case"dangerouslySetInnerHTML":if(H!=null)throw Error(c(137,t));break;default:H!==Q&&Xe(e,t,z,H,l,Q)}}Pu(e,d,E,S,j,q,s,r);return;case"select":H=d=E=z=null;for(s in n)if(S=n[s],n.hasOwnProperty(s)&&S!=null)switch(s){case"value":break;case"multiple":H=S;default:l.hasOwnProperty(s)||Xe(e,t,s,null,l,S)}for(r in l)if(s=l[r],S=n[r],l.hasOwnProperty(r)&&(s!=null||S!=null))switch(r){case"value":z=s;break;case"defaultValue":E=s;break;case"multiple":d=s;default:s!==S&&Xe(e,t,r,s,l,S)}t=E,n=d,l=H,z!=null?Ol(e,!!n,z,!1):!!l!=!!n&&(t!=null?Ol(e,!!n,t,!0):Ol(e,!!n,n?[]:"",!1));return;case"textarea":H=z=null;for(E in n)if(r=n[E],n.hasOwnProperty(E)&&r!=null&&!l.hasOwnProperty(E))switch(E){case"value":break;case"children":break;default:Xe(e,t,E,null,l,r)}for(d in l)if(r=l[d],s=n[d],l.hasOwnProperty(d)&&(r!=null||s!=null))switch(d){case"value":z=r;break;case"defaultValue":H=r;break;case"children":break;case"dangerouslySetInnerHTML":if(r!=null)throw Error(c(91));break;default:r!==s&&Xe(e,t,d,r,l,s)}of(e,z,H);return;case"option":for(var fe in n)if(z=n[fe],n.hasOwnProperty(fe)&&z!=null&&!l.hasOwnProperty(fe))switch(fe){case"selected":e.selected=!1;break;default:Xe(e,t,fe,null,l,z)}for(S in l)if(z=l[S],H=n[S],l.hasOwnProperty(S)&&z!==H&&(z!=null||H!=null))switch(S){case"selected":e.selected=z&&typeof z!="function"&&typeof z!="symbol";break;default:Xe(e,t,S,z,l,H)}return;case"img":case"link":case"area":case"base":case"br":case"col":case"embed":case"hr":case"keygen":case"meta":case"param":case"source":case"track":case"wbr":case"menuitem":for(var _e in n)z=n[_e],n.hasOwnProperty(_e)&&z!=null&&!l.hasOwnProperty(_e)&&Xe(e,t,_e,null,l,z);for(j in l)if(z=l[j],H=n[j],l.hasOwnProperty(j)&&z!==H&&(z!=null||H!=null))switch(j){case"children":case"dangerouslySetInnerHTML":if(z!=null)throw Error(c(137,t));break;default:Xe(e,t,j,z,l,H)}return;default:if(Iu(t)){for(var ht in n)z=n[ht],n.hasOwnProperty(ht)&&z!==void 0&&!l.hasOwnProperty(ht)&&Hs(e,t,ht,void 0,l,z);for(q in l)z=l[q],H=n[q],!l.hasOwnProperty(q)||z===H||z===void 0&&H===void 0||Hs(e,t,q,z,l,H);return}}for(var D in n)z=n[D],n.hasOwnProperty(D)&&z!=null&&!l.hasOwnProperty(D)&&Xe(e,t,D,null,l,z);for(Q in l)z=l[Q],H=n[Q],!l.hasOwnProperty(Q)||z===H||z==null&&H==null||Xe(e,t,Q,z,l,H)}var Bs=null,qs=null;function yu(e){return e.nodeType===9?e:e.ownerDocument}function lm(e){switch(e){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function im(e,t){if(e===0)switch(t){case"svg":return 1;case"math":return 2;default:return 0}return e===1&&t==="foreignObject"?0:e}function ks(e,t){return e==="textarea"||e==="noscript"||typeof t.children=="string"||typeof t.children=="number"||typeof t.children=="bigint"||typeof t.dangerouslySetInnerHTML=="object"&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var Vs=null;function pg(){var e=window.event;return e&&e.type==="popstate"?e===Vs?!1:(Vs=e,!0):(Vs=null,!1)}var rm=typeof setTimeout=="function"?setTimeout:void 0,vg=typeof clearTimeout=="function"?clearTimeout:void 0,um=typeof Promise=="function"?Promise:void 0,gg=typeof queueMicrotask=="function"?queueMicrotask:typeof um<"u"?function(e){return um.resolve(null).then(e).catch(Eg)}:rm;function Eg(e){setTimeout(function(){throw e})}function Ys(e,t){var n=t,l=0;do{var r=n.nextSibling;if(e.removeChild(n),r&&r.nodeType===8)if(n=r.data,n==="/$"){if(l===0){e.removeChild(r),lr(t);return}l--}else n!=="$"&&n!=="$?"&&n!=="$!"||l++;n=r}while(n);lr(t)}function Gs(e){var t=e.firstChild;for(t&&t.nodeType===10&&(t=t.nextSibling);t;){var n=t;switch(t=t.nextSibling,n.nodeName){case"HTML":case"HEAD":case"BODY":Gs(n),In(n);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(n.rel.toLowerCase()==="stylesheet")continue}e.removeChild(n)}}function bg(e,t,n,l){for(;e.nodeType===1;){var r=n;if(e.nodeName.toLowerCase()!==t.toLowerCase()){if(!l&&(e.nodeName!=="INPUT"||e.type!=="hidden"))break}else if(l){if(!e[pn])switch(t){case"meta":if(!e.hasAttribute("itemprop"))break;return e;case"link":if(s=e.getAttribute("rel"),s==="stylesheet"&&e.hasAttribute("data-precedence"))break;if(s!==r.rel||e.getAttribute("href")!==(r.href==null?null:r.href)||e.getAttribute("crossorigin")!==(r.crossOrigin==null?null:r.crossOrigin)||e.getAttribute("title")!==(r.title==null?null:r.title))break;return e;case"style":if(e.hasAttribute("data-precedence"))break;return e;case"script":if(s=e.getAttribute("src"),(s!==(r.src==null?null:r.src)||e.getAttribute("type")!==(r.type==null?null:r.type)||e.getAttribute("crossorigin")!==(r.crossOrigin==null?null:r.crossOrigin))&&s&&e.hasAttribute("async")&&!e.hasAttribute("itemprop"))break;return e;default:return e}}else if(t==="input"&&e.type==="hidden"){var s=r.name==null?null:""+r.name;if(r.type==="hidden"&&e.getAttribute("name")===s)return e}else return e;if(e=Ln(e.nextSibling),e===null)break}return null}function Sg(e,t,n){if(t==="")return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!n||(e=Ln(e.nextSibling),e===null))return null;return e}function Ln(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t==="$"||t==="$!"||t==="$?"||t==="F!"||t==="F")break;if(t==="/$")return null}}return e}function cm(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="$"||n==="$!"||n==="$?"){if(t===0)return e;t--}else n==="/$"&&t++}e=e.previousSibling}return null}function sm(e,t,n){switch(t=yu(n),e){case"html":if(e=t.documentElement,!e)throw Error(c(452));return e;case"head":if(e=t.head,!e)throw Error(c(453));return e;case"body":if(e=t.body,!e)throw Error(c(454));return e;default:throw Error(c(451))}}var On=new Map,om=new Set;function pu(e){return typeof e.getRootNode=="function"?e.getRootNode():e.ownerDocument}var va=F.d;F.d={f:xg,r:_g,D:Rg,C:Tg,L:Ng,m:Cg,X:Og,S:jg,M:Dg};function xg(){var e=va.f(),t=cu();return e||t}function _g(e){var t=wt(e);t!==null&&t.tag===5&&t.type==="form"?Hd(t):va.r(e)}var ai=typeof document>"u"?null:document;function fm(e,t,n){var l=ai;if(l&&typeof t=="string"&&t){var r=En(t);r='link[rel="'+e+'"][href="'+r+'"]',typeof n=="string"&&(r+='[crossorigin="'+n+'"]'),om.has(r)||(om.add(r),e={rel:e,crossOrigin:n,href:t},l.querySelector(r)===null&&(t=l.createElement("link"),Lt(t,"link",e),Fe(t),l.head.appendChild(t)))}}function Rg(e){va.D(e),fm("dns-prefetch",e,null)}function Tg(e,t){va.C(e,t),fm("preconnect",e,t)}function Ng(e,t,n){va.L(e,t,n);var l=ai;if(l&&e&&t){var r='link[rel="preload"][as="'+En(t)+'"]';t==="image"&&n&&n.imageSrcSet?(r+='[imagesrcset="'+En(n.imageSrcSet)+'"]',typeof n.imageSizes=="string"&&(r+='[imagesizes="'+En(n.imageSizes)+'"]')):r+='[href="'+En(e)+'"]';var s=r;switch(t){case"style":s=li(e);break;case"script":s=ii(e)}On.has(s)||(e=ie({rel:"preload",href:t==="image"&&n&&n.imageSrcSet?void 0:e,as:t},n),On.set(s,e),l.querySelector(r)!==null||t==="style"&&l.querySelector(Pi(s))||t==="script"&&l.querySelector(Wi(s))||(t=l.createElement("link"),Lt(t,"link",e),Fe(t),l.head.appendChild(t)))}}function Cg(e,t){va.m(e,t);var n=ai;if(n&&e){var l=t&&typeof t.as=="string"?t.as:"script",r='link[rel="modulepreload"][as="'+En(l)+'"][href="'+En(e)+'"]',s=r;switch(l){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":s=ii(e)}if(!On.has(s)&&(e=ie({rel:"modulepreload",href:e},t),On.set(s,e),n.querySelector(r)===null)){switch(l){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(n.querySelector(Wi(s)))return}l=n.createElement("link"),Lt(l,"link",e),Fe(l),n.head.appendChild(l)}}}function jg(e,t,n){va.S(e,t,n);var l=ai;if(l&&e){var r=vn(l).hoistableStyles,s=li(e);t=t||"default";var d=r.get(s);if(!d){var E={loading:0,preload:null};if(d=l.querySelector(Pi(s)))E.loading=5;else{e=ie({rel:"stylesheet",href:e,"data-precedence":t},n),(n=On.get(s))&&Xs(e,n);var S=d=l.createElement("link");Fe(S),Lt(S,"link",e),S._p=new Promise(function(j,q){S.onload=j,S.onerror=q}),S.addEventListener("load",function(){E.loading|=1}),S.addEventListener("error",function(){E.loading|=2}),E.loading|=4,vu(d,t,l)}d={type:"stylesheet",instance:d,count:1,state:E},r.set(s,d)}}}function Og(e,t){va.X(e,t);var n=ai;if(n&&e){var l=vn(n).hoistableScripts,r=ii(e),s=l.get(r);s||(s=n.querySelector(Wi(r)),s||(e=ie({src:e,async:!0},t),(t=On.get(r))&&Qs(e,t),s=n.createElement("script"),Fe(s),Lt(s,"link",e),n.head.appendChild(s)),s={type:"script",instance:s,count:1,state:null},l.set(r,s))}}function Dg(e,t){va.M(e,t);var n=ai;if(n&&e){var l=vn(n).hoistableScripts,r=ii(e),s=l.get(r);s||(s=n.querySelector(Wi(r)),s||(e=ie({src:e,async:!0,type:"module"},t),(t=On.get(r))&&Qs(e,t),s=n.createElement("script"),Fe(s),Lt(s,"link",e),n.head.appendChild(s)),s={type:"script",instance:s,count:1,state:null},l.set(r,s))}}function dm(e,t,n,l){var r=(r=mt.current)?pu(r):null;if(!r)throw Error(c(446));switch(e){case"meta":case"title":return null;case"style":return typeof n.precedence=="string"&&typeof n.href=="string"?(t=li(n.href),n=vn(r).hoistableStyles,l=n.get(t),l||(l={type:"style",instance:null,count:0,state:null},n.set(t,l)),l):{type:"void",instance:null,count:0,state:null};case"link":if(n.rel==="stylesheet"&&typeof n.href=="string"&&typeof n.precedence=="string"){e=li(n.href);var s=vn(r).hoistableStyles,d=s.get(e);if(d||(r=r.ownerDocument||r,d={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},s.set(e,d),(s=r.querySelector(Pi(e)))&&!s._p&&(d.instance=s,d.state.loading=5),On.has(e)||(n={rel:"preload",as:"style",href:n.href,crossOrigin:n.crossOrigin,integrity:n.integrity,media:n.media,hrefLang:n.hrefLang,referrerPolicy:n.referrerPolicy},On.set(e,n),s||Ag(r,e,n,d.state))),t&&l===null)throw Error(c(528,""));return d}if(t&&l!==null)throw Error(c(529,""));return null;case"script":return t=n.async,n=n.src,typeof n=="string"&&t&&typeof t!="function"&&typeof t!="symbol"?(t=ii(n),n=vn(r).hoistableScripts,l=n.get(t),l||(l={type:"script",instance:null,count:0,state:null},n.set(t,l)),l):{type:"void",instance:null,count:0,state:null};default:throw Error(c(444,e))}}function li(e){return'href="'+En(e)+'"'}function Pi(e){return'link[rel="stylesheet"]['+e+"]"}function hm(e){return ie({},e,{"data-precedence":e.precedence,precedence:null})}function Ag(e,t,n,l){e.querySelector('link[rel="preload"][as="style"]['+t+"]")?l.loading=1:(t=e.createElement("link"),l.preload=t,t.addEventListener("load",function(){return l.loading|=1}),t.addEventListener("error",function(){return l.loading|=2}),Lt(t,"link",n),Fe(t),e.head.appendChild(t))}function ii(e){return'[src="'+En(e)+'"]'}function Wi(e){return"script[async]"+e}function mm(e,t,n){if(t.count++,t.instance===null)switch(t.type){case"style":var l=e.querySelector('style[data-href~="'+En(n.href)+'"]');if(l)return t.instance=l,Fe(l),l;var r=ie({},n,{"data-href":n.href,"data-precedence":n.precedence,href:null,precedence:null});return l=(e.ownerDocument||e).createElement("style"),Fe(l),Lt(l,"style",r),vu(l,n.precedence,e),t.instance=l;case"stylesheet":r=li(n.href);var s=e.querySelector(Pi(r));if(s)return t.state.loading|=4,t.instance=s,Fe(s),s;l=hm(n),(r=On.get(r))&&Xs(l,r),s=(e.ownerDocument||e).createElement("link"),Fe(s);var d=s;return d._p=new Promise(function(E,S){d.onload=E,d.onerror=S}),Lt(s,"link",l),t.state.loading|=4,vu(s,n.precedence,e),t.instance=s;case"script":return s=ii(n.src),(r=e.querySelector(Wi(s)))?(t.instance=r,Fe(r),r):(l=n,(r=On.get(s))&&(l=ie({},n),Qs(l,r)),e=e.ownerDocument||e,r=e.createElement("script"),Fe(r),Lt(r,"link",l),e.head.appendChild(r),t.instance=r);case"void":return null;default:throw Error(c(443,t.type))}else t.type==="stylesheet"&&!(t.state.loading&4)&&(l=t.instance,t.state.loading|=4,vu(l,n.precedence,e));return t.instance}function vu(e,t,n){for(var l=n.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),r=l.length?l[l.length-1]:null,s=r,d=0;d<l.length;d++){var E=l[d];if(E.dataset.precedence===t)s=E;else if(s!==r)break}s?s.parentNode.insertBefore(e,s.nextSibling):(t=n.nodeType===9?n.head:n,t.insertBefore(e,t.firstChild))}function Xs(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.title==null&&(e.title=t.title)}function Qs(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.integrity==null&&(e.integrity=t.integrity)}var gu=null;function ym(e,t,n){if(gu===null){var l=new Map,r=gu=new Map;r.set(n,l)}else r=gu,l=r.get(n),l||(l=new Map,r.set(n,l));if(l.has(e))return l;for(l.set(e,null),n=n.getElementsByTagName(e),r=0;r<n.length;r++){var s=n[r];if(!(s[pn]||s[se]||e==="link"&&s.getAttribute("rel")==="stylesheet")&&s.namespaceURI!=="http://www.w3.org/2000/svg"){var d=s.getAttribute(t)||"";d=e+d;var E=l.get(d);E?E.push(s):l.set(d,[s])}}return l}function pm(e,t,n){e=e.ownerDocument||e,e.head.insertBefore(n,t==="title"?e.querySelector("head > title"):null)}function wg(e,t,n){if(n===1||t.itemProp!=null)return!1;switch(e){case"meta":case"title":return!0;case"style":if(typeof t.precedence!="string"||typeof t.href!="string"||t.href==="")break;return!0;case"link":if(typeof t.rel!="string"||typeof t.href!="string"||t.href===""||t.onLoad||t.onError)break;switch(t.rel){case"stylesheet":return e=t.disabled,typeof t.precedence=="string"&&e==null;default:return!0}case"script":if(t.async&&typeof t.async!="function"&&typeof t.async!="symbol"&&!t.onLoad&&!t.onError&&t.src&&typeof t.src=="string")return!0}return!1}function vm(e){return!(e.type==="stylesheet"&&!(e.state.loading&3))}var Ii=null;function Mg(){}function zg(e,t,n){if(Ii===null)throw Error(c(475));var l=Ii;if(t.type==="stylesheet"&&(typeof n.media!="string"||matchMedia(n.media).matches!==!1)&&!(t.state.loading&4)){if(t.instance===null){var r=li(n.href),s=e.querySelector(Pi(r));if(s){e=s._p,e!==null&&typeof e=="object"&&typeof e.then=="function"&&(l.count++,l=Eu.bind(l),e.then(l,l)),t.state.loading|=4,t.instance=s,Fe(s);return}s=e.ownerDocument||e,n=hm(n),(r=On.get(r))&&Xs(n,r),s=s.createElement("link"),Fe(s);var d=s;d._p=new Promise(function(E,S){d.onload=E,d.onerror=S}),Lt(s,"link",n),t.instance=s}l.stylesheets===null&&(l.stylesheets=new Map),l.stylesheets.set(t,e),(e=t.state.preload)&&!(t.state.loading&3)&&(l.count++,t=Eu.bind(l),e.addEventListener("load",t),e.addEventListener("error",t))}}function Lg(){if(Ii===null)throw Error(c(475));var e=Ii;return e.stylesheets&&e.count===0&&Zs(e,e.stylesheets),0<e.count?function(t){var n=setTimeout(function(){if(e.stylesheets&&Zs(e,e.stylesheets),e.unsuspend){var l=e.unsuspend;e.unsuspend=null,l()}},6e4);return e.unsuspend=t,function(){e.unsuspend=null,clearTimeout(n)}}:null}function Eu(){if(this.count--,this.count===0){if(this.stylesheets)Zs(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var bu=null;function Zs(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,bu=new Map,t.forEach(Ug,e),bu=null,Eu.call(e))}function Ug(e,t){if(!(t.state.loading&4)){var n=bu.get(e);if(n)var l=n.get(null);else{n=new Map,bu.set(e,n);for(var r=e.querySelectorAll("link[data-precedence],style[data-precedence]"),s=0;s<r.length;s++){var d=r[s];(d.nodeName==="LINK"||d.getAttribute("media")!=="not all")&&(n.set(d.dataset.precedence,d),l=d)}l&&n.set(null,l)}r=t.instance,d=r.getAttribute("data-precedence"),s=n.get(d)||l,s===l&&n.set(null,r),n.set(d,r),this.count++,l=Eu.bind(this),r.addEventListener("load",l),r.addEventListener("error",l),s?s.parentNode.insertBefore(r,s.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(r,e.firstChild)),t.state.loading|=4}}var er={$$typeof:R,Provider:null,Consumer:null,_currentValue:ge,_currentValue2:ge,_threadCount:0};function Hg(e,t,n,l,r,s,d,E){this.tag=1,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=A(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.finishedLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=A(0),this.hiddenUpdates=A(null),this.identifierPrefix=l,this.onUncaughtError=r,this.onCaughtError=s,this.onRecoverableError=d,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=E,this.incompleteTransitions=new Map}function gm(e,t,n,l,r,s,d,E,S,j,q,Q){return e=new Hg(e,t,n,d,E,S,j,Q),t=1,s===!0&&(t|=24),s=Cn(3,null,null,t),e.current=s,s.stateNode=e,t=Rc(),t.refCount++,e.pooledCache=t,t.refCount++,s.memoizedState={element:l,isDehydrated:n,cache:t},ls(s),e}function Em(e){return e?(e=Hl,e):Hl}function bm(e,t,n,l,r,s){r=Em(r),l.context===null?l.context=r:l.pendingContext=r,l=wa(t),l.payload={element:n},s=s===void 0?null:s,s!==null&&(l.callback=s),n=Ma(e,l,t),n!==null&&(Kt(n,e,t),Hi(n,e,t))}function Sm(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function Ks(e,t){Sm(e,t),(e=e.alternate)&&Sm(e,t)}function xm(e){if(e.tag===13){var t=Ta(e,67108864);t!==null&&Kt(t,e,67108864),Ks(e,67108864)}}var Su=!0;function Bg(e,t,n,l){var r=Z.T;Z.T=null;var s=F.p;try{F.p=2,$s(e,t,n,l)}finally{F.p=s,Z.T=r}}function qg(e,t,n,l){var r=Z.T;Z.T=null;var s=F.p;try{F.p=8,$s(e,t,n,l)}finally{F.p=s,Z.T=r}}function $s(e,t,n,l){if(Su){var r=Js(l);if(r===null)Us(e,t,l,xu,n),Rm(e,l);else if(Vg(r,e,t,n,l))l.stopPropagation();else if(Rm(e,l),t&4&&-1<kg.indexOf(e)){for(;r!==null;){var s=wt(r);if(s!==null)switch(s.tag){case 3:if(s=s.stateNode,s.current.memoizedState.isDehydrated){var d=Xt(s.pendingLanes);if(d!==0){var E=s;for(E.pendingLanes|=2,E.entangledLanes|=2;d;){var S=1<<31-lt(d);E.entanglements[1]|=S,d&=~S}Qn(s),!(ct&6)&&(iu=yt()+500,$i(0))}}break;case 13:E=Ta(s,2),E!==null&&Kt(E,s,2),cu(),Ks(s,2)}if(s=Js(l),s===null&&Us(e,t,l,xu,n),s===r)break;r=s}r!==null&&l.stopPropagation()}else Us(e,t,l,null,n)}}function Js(e){return e=tc(e),Fs(e)}var xu=null;function Fs(e){if(xu=null,e=At(e),e!==null){var t=I(e);if(t===null)e=null;else{var n=t.tag;if(n===13){if(e=Re(t),e!==null)return e;e=null}else if(n===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null)}}return xu=e,null}function _m(e){switch(e){case"beforetoggle":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"toggle":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 2;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"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 8;case"message":switch(mn()){case xe:return 2;case at:return 8;case Yt:case qn:return 32;case Fn:return 268435456;default:return 32}default:return 32}}var Ps=!1,ka=null,Va=null,Ya=null,tr=new Map,nr=new Map,Ga=[],kg="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".split(" ");function Rm(e,t){switch(e){case"focusin":case"focusout":ka=null;break;case"dragenter":case"dragleave":Va=null;break;case"mouseover":case"mouseout":Ya=null;break;case"pointerover":case"pointerout":tr.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":nr.delete(t.pointerId)}}function ar(e,t,n,l,r,s){return e===null||e.nativeEvent!==s?(e={blockedOn:t,domEventName:n,eventSystemFlags:l,nativeEvent:s,targetContainers:[r]},t!==null&&(t=wt(t),t!==null&&xm(t)),e):(e.eventSystemFlags|=l,t=e.targetContainers,r!==null&&t.indexOf(r)===-1&&t.push(r),e)}function Vg(e,t,n,l,r){switch(t){case"focusin":return ka=ar(ka,e,t,n,l,r),!0;case"dragenter":return Va=ar(Va,e,t,n,l,r),!0;case"mouseover":return Ya=ar(Ya,e,t,n,l,r),!0;case"pointerover":var s=r.pointerId;return tr.set(s,ar(tr.get(s)||null,e,t,n,l,r)),!0;case"gotpointercapture":return s=r.pointerId,nr.set(s,ar(nr.get(s)||null,e,t,n,l,r)),!0}return!1}function Tm(e){var t=At(e.target);if(t!==null){var n=I(t);if(n!==null){if(t=n.tag,t===13){if(t=Re(n),t!==null){e.blockedOn=t,ce(e.priority,function(){if(n.tag===13){var l=un(),r=Ta(n,l);r!==null&&Kt(r,n,l),Ks(n,l)}});return}}else if(t===3&&n.stateNode.current.memoizedState.isDehydrated){e.blockedOn=n.tag===3?n.stateNode.containerInfo:null;return}}}e.blockedOn=null}function _u(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=Js(e.nativeEvent);if(n===null){n=e.nativeEvent;var l=new n.constructor(n.type,n);ec=l,n.target.dispatchEvent(l),ec=null}else return t=wt(n),t!==null&&xm(t),e.blockedOn=n,!1;t.shift()}return!0}function Nm(e,t,n){_u(e)&&n.delete(t)}function Yg(){Ps=!1,ka!==null&&_u(ka)&&(ka=null),Va!==null&&_u(Va)&&(Va=null),Ya!==null&&_u(Ya)&&(Ya=null),tr.forEach(Nm),nr.forEach(Nm)}function Ru(e,t){e.blockedOn===t&&(e.blockedOn=null,Ps||(Ps=!0,a.unstable_scheduleCallback(a.unstable_NormalPriority,Yg)))}var Tu=null;function Cm(e){Tu!==e&&(Tu=e,a.unstable_scheduleCallback(a.unstable_NormalPriority,function(){Tu===e&&(Tu=null);for(var t=0;t<e.length;t+=3){var n=e[t],l=e[t+1],r=e[t+2];if(typeof l!="function"){if(Fs(l||n)===null)continue;break}var s=wt(n);s!==null&&(e.splice(t,3),t-=3,kc(s,{pending:!0,data:r,method:n.method,action:l},l,r))}}))}function lr(e){function t(S){return Ru(S,e)}ka!==null&&Ru(ka,e),Va!==null&&Ru(Va,e),Ya!==null&&Ru(Ya,e),tr.forEach(t),nr.forEach(t);for(var n=0;n<Ga.length;n++){var l=Ga[n];l.blockedOn===e&&(l.blockedOn=null)}for(;0<Ga.length&&(n=Ga[0],n.blockedOn===null);)Tm(n),n.blockedOn===null&&Ga.shift();if(n=(e.ownerDocument||e).$$reactFormReplay,n!=null)for(l=0;l<n.length;l+=3){var r=n[l],s=n[l+1],d=r[ye]||null;if(typeof s=="function")d||Cm(n);else if(d){var E=null;if(s&&s.hasAttribute("formAction")){if(r=s,d=s[ye]||null)E=d.formAction;else if(Fs(r)!==null)continue}else E=d.action;typeof E=="function"?n[l+1]=E:(n.splice(l,3),l-=3),Cm(n)}}}function Ws(e){this._internalRoot=e}Nu.prototype.render=Ws.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(c(409));var n=t.current,l=un();bm(n,l,e,t,null,null)},Nu.prototype.unmount=Ws.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;e.tag===0&&ei(),bm(e.current,2,null,e,null,null),cu(),t[ke]=null}};function Nu(e){this._internalRoot=e}Nu.prototype.unstable_scheduleHydration=function(e){if(e){var t=le();e={blockedOn:null,target:e,priority:t};for(var n=0;n<Ga.length&&t!==0&&t<Ga[n].priority;n++);Ga.splice(n,0,e),n===0&&Tm(e)}};var jm=i.version;if(jm!=="19.0.0")throw Error(c(527,jm,"19.0.0"));F.findDOMNode=function(e){var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(c(188)):(e=Object.keys(e).join(","),Error(c(268,e)));return e=V(t),e=e!==null?ne(e):null,e=e===null?null:e.stateNode,e};var Gg={bundleType:0,version:"19.0.0",rendererPackageName:"react-dom",currentDispatcherRef:Z,findFiberByHostInstance:At,reconcilerVersion:"19.0.0"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Cu=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Cu.isDisabled&&Cu.supportsFiber)try{tn=Cu.inject(Gg),pt=Cu}catch{}}return rr.createRoot=function(e,t){if(!o(e))throw Error(c(299));var n=!1,l="",r=Qd,s=Zd,d=Kd,E=null;return t!=null&&(t.unstable_strictMode===!0&&(n=!0),t.identifierPrefix!==void 0&&(l=t.identifierPrefix),t.onUncaughtError!==void 0&&(r=t.onUncaughtError),t.onCaughtError!==void 0&&(s=t.onCaughtError),t.onRecoverableError!==void 0&&(d=t.onRecoverableError),t.unstable_transitionCallbacks!==void 0&&(E=t.unstable_transitionCallbacks)),t=gm(e,1,!1,null,null,n,l,r,s,d,E,null),e[ke]=t.current,Ls(e.nodeType===8?e.parentNode:e),new Ws(t)},rr.hydrateRoot=function(e,t,n){if(!o(e))throw Error(c(299));var l=!1,r="",s=Qd,d=Zd,E=Kd,S=null,j=null;return n!=null&&(n.unstable_strictMode===!0&&(l=!0),n.identifierPrefix!==void 0&&(r=n.identifierPrefix),n.onUncaughtError!==void 0&&(s=n.onUncaughtError),n.onCaughtError!==void 0&&(d=n.onCaughtError),n.onRecoverableError!==void 0&&(E=n.onRecoverableError),n.unstable_transitionCallbacks!==void 0&&(S=n.unstable_transitionCallbacks),n.formState!==void 0&&(j=n.formState)),t=gm(e,1,!0,t,n??null,l,r,s,d,E,S,j),t.context=Em(null),n=t.current,l=un(),r=wa(l),r.callback=null,Ma(n,r,l),t.current.lanes=l,L(t,l),Qn(t),e[ke]=t.current,Ls(e),new Nu(t)},rr.version="19.0.0",rr}var qm;function e0(){if(qm)return to.exports;qm=1;function a(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(a)}catch(i){console.error(i)}}return a(),to.exports=Ig(),to.exports}var t0=e0();const n0="modulepreload",a0=function(a){return"/static/"+a},km={},ve=function(i,u,c){let o=Promise.resolve();if(u&&u.length>0){document.getElementsByTagName("link");const m=document.querySelector("meta[property=csp-nonce]"),y=(m==null?void 0:m.nonce)||(m==null?void 0:m.getAttribute("nonce"));o=Promise.allSettled(u.map(v=>{if(v=a0(v),v in km)return;km[v]=!0;const p=v.endsWith(".css"),b=p?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${v}"]${b}`))return;const T=document.createElement("link");if(T.rel=p?"stylesheet":n0,p||(T.as="script"),T.crossOrigin="",T.href=v,y&&T.setAttribute("nonce",y),document.head.appendChild(T),p)return new Promise((x,R)=>{T.addEventListener("load",x),T.addEventListener("error",()=>R(new Error(`Unable to preload CSS for ${v}`)))})}))}function f(m){const y=new Event("vite:preloadError",{cancelable:!0});if(y.payload=m,window.dispatchEvent(y),!y.defaultPrevented)throw m}return o.then(m=>{for(const y of m||[])y.status==="rejected"&&f(y.reason);return i().catch(f)})};var io={exports:{}},ro={};/** * @license React * react-compiler-runtime.production.js * @@ -55,8 +55,8 @@ Error generating stack: `+n.message+` * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. - */var km;function l0(){if(km)return io;km=1;var a=Yu().__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;return io.c=function(i){return a.H.useMemoCache(i)},io}var Vm;function i0(){return Vm||(Vm=1,lo.exports=l0()),lo.exports}var ut=i0(),ur={},Ym;function r0(){if(Ym)return ur;Ym=1,Object.defineProperty(ur,"__esModule",{value:!0}),ur.parse=h,ur.serialize=v;const a=/^[\u0021-\u003A\u003C\u003E-\u007E]+$/,i=/^[\u0021-\u003A\u003C-\u007E]*$/,u=/^([.]?[a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?)([.][a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?)*$/i,c=/^[\u0020-\u003A\u003D-\u007E]*$/,o=Object.prototype.toString,f=(()=>{const x=function(){};return x.prototype=Object.create(null),x})();function h(x,R){const A=new f,H=x.length;if(H<2)return A;const k=(R==null?void 0:R.decode)||b;let z=0;do{const Z=x.indexOf("=",z);if(Z===-1)break;const Q=x.indexOf(";",z),ee=Q===-1?H:Q;if(Z>ee){z=x.lastIndexOf(";",Z-1)+1;continue}const T=y(x,z,Z),P=p(x,Z,T),fe=x.slice(T,P);if(A[fe]===void 0){let ce=y(x,Z+1,ee),$=p(x,ee,ce);const ie=k(x.slice(ce,$));A[fe]=ie}z=ee+1}while(z<H);return A}function y(x,R,A){do{const H=x.charCodeAt(R);if(H!==32&&H!==9)return R}while(++R<A);return A}function p(x,R,A){for(;R>A;){const H=x.charCodeAt(--R);if(H!==32&&H!==9)return R+1}return A}function v(x,R,A){const H=(A==null?void 0:A.encode)||encodeURIComponent;if(!a.test(x))throw new TypeError(`argument name is invalid: ${x}`);const k=H(R);if(!i.test(k))throw new TypeError(`argument val is invalid: ${R}`);let z=x+"="+k;if(!A)return z;if(A.maxAge!==void 0){if(!Number.isInteger(A.maxAge))throw new TypeError(`option maxAge is invalid: ${A.maxAge}`);z+="; Max-Age="+A.maxAge}if(A.domain){if(!u.test(A.domain))throw new TypeError(`option domain is invalid: ${A.domain}`);z+="; Domain="+A.domain}if(A.path){if(!c.test(A.path))throw new TypeError(`option path is invalid: ${A.path}`);z+="; Path="+A.path}if(A.expires){if(!C(A.expires)||!Number.isFinite(A.expires.valueOf()))throw new TypeError(`option expires is invalid: ${A.expires}`);z+="; Expires="+A.expires.toUTCString()}if(A.httpOnly&&(z+="; HttpOnly"),A.secure&&(z+="; Secure"),A.partitioned&&(z+="; Partitioned"),A.priority)switch(typeof A.priority=="string"?A.priority.toLowerCase():void 0){case"low":z+="; Priority=Low";break;case"medium":z+="; Priority=Medium";break;case"high":z+="; Priority=High";break;default:throw new TypeError(`option priority is invalid: ${A.priority}`)}if(A.sameSite)switch(typeof A.sameSite=="string"?A.sameSite.toLowerCase():A.sameSite){case!0:case"strict":z+="; SameSite=Strict";break;case"lax":z+="; SameSite=Lax";break;case"none":z+="; SameSite=None";break;default:throw new TypeError(`option sameSite is invalid: ${A.sameSite}`)}return z}function b(x){if(x.indexOf("%")===-1)return x;try{return decodeURIComponent(x)}catch{return x}}function C(x){return o.call(x)==="[object Date]"}return ur}r0();/** - * react-router v7.1.3 + */var Vm;function l0(){if(Vm)return ro;Vm=1;var a=Xu().__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;return ro.c=function(i){return a.H.useMemoCache(i)},ro}var Ym;function i0(){return Ym||(Ym=1,io.exports=l0()),io.exports}var st=i0(),ur={},Gm;function r0(){if(Gm)return ur;Gm=1,Object.defineProperty(ur,"__esModule",{value:!0}),ur.parse=m,ur.serialize=p;const a=/^[\u0021-\u003A\u003C\u003E-\u007E]+$/,i=/^[\u0021-\u003A\u003C-\u007E]*$/,u=/^([.]?[a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?)([.][a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?)*$/i,c=/^[\u0020-\u003A\u003D-\u007E]*$/,o=Object.prototype.toString,f=(()=>{const x=function(){};return x.prototype=Object.create(null),x})();function m(x,R){const w=new f,k=x.length;if(k<2)return w;const B=(R==null?void 0:R.decode)||b;let U=0;do{const Y=x.indexOf("=",U);if(Y===-1)break;const $=x.indexOf(";",U),ee=$===-1?k:$;if(Y>ee){U=x.lastIndexOf(";",Y-1)+1;continue}const J=y(x,U,Y),O=v(x,Y,J),ue=x.slice(J,O);if(w[ue]===void 0){let be=y(x,Y+1,ee),Z=v(x,ee,be);const ie=B(x.slice(be,Z));w[ue]=ie}U=ee+1}while(U<k);return w}function y(x,R,w){do{const k=x.charCodeAt(R);if(k!==32&&k!==9)return R}while(++R<w);return w}function v(x,R,w){for(;R>w;){const k=x.charCodeAt(--R);if(k!==32&&k!==9)return R+1}return w}function p(x,R,w){const k=(w==null?void 0:w.encode)||encodeURIComponent;if(!a.test(x))throw new TypeError(`argument name is invalid: ${x}`);const B=k(R);if(!i.test(B))throw new TypeError(`argument val is invalid: ${R}`);let U=x+"="+B;if(!w)return U;if(w.maxAge!==void 0){if(!Number.isInteger(w.maxAge))throw new TypeError(`option maxAge is invalid: ${w.maxAge}`);U+="; Max-Age="+w.maxAge}if(w.domain){if(!u.test(w.domain))throw new TypeError(`option domain is invalid: ${w.domain}`);U+="; Domain="+w.domain}if(w.path){if(!c.test(w.path))throw new TypeError(`option path is invalid: ${w.path}`);U+="; Path="+w.path}if(w.expires){if(!T(w.expires)||!Number.isFinite(w.expires.valueOf()))throw new TypeError(`option expires is invalid: ${w.expires}`);U+="; Expires="+w.expires.toUTCString()}if(w.httpOnly&&(U+="; HttpOnly"),w.secure&&(U+="; Secure"),w.partitioned&&(U+="; Partitioned"),w.priority)switch(typeof w.priority=="string"?w.priority.toLowerCase():void 0){case"low":U+="; Priority=Low";break;case"medium":U+="; Priority=Medium";break;case"high":U+="; Priority=High";break;default:throw new TypeError(`option priority is invalid: ${w.priority}`)}if(w.sameSite)switch(typeof w.sameSite=="string"?w.sameSite.toLowerCase():w.sameSite){case!0:case"strict":U+="; SameSite=Strict";break;case"lax":U+="; SameSite=Lax";break;case"none":U+="; SameSite=None";break;default:throw new TypeError(`option sameSite is invalid: ${w.sameSite}`)}return U}function b(x){if(x.indexOf("%")===-1)return x;try{return decodeURIComponent(x)}catch{return x}}function T(x){return o.call(x)==="[object Date]"}return ur}r0();/** + * react-router v7.1.5 * * Copyright (c) Remix Software Inc. * @@ -64,11 +64,11 @@ Error generating stack: `+n.message+` * LICENSE.md file in the root directory of this source tree. * * @license MIT - */var Gm="popstate";function u0(a={}){function i(c,o){let{pathname:f,search:h,hash:y}=c.location;return mr("",{pathname:f,search:h,hash:y},o.state&&o.state.usr||null,o.state&&o.state.key||"default")}function u(c,o){return typeof o=="string"?o:Pa(o)}return s0(i,u,null,a)}function He(a,i){if(a===!1||a===null||typeof a>"u")throw new Error(i)}function At(a,i){if(!a){typeof console<"u"&&console.warn(i);try{throw new Error(i)}catch{}}}function c0(){return Math.random().toString(36).substring(2,10)}function Xm(a,i){return{usr:a.state,key:a.key,idx:i}}function mr(a,i,u=null,c){return{pathname:typeof a=="string"?a:a.pathname,search:"",hash:"",...typeof i=="string"?Ia(i):i,state:u,key:i&&i.key||c||c0()}}function Pa({pathname:a="/",search:i="",hash:u=""}){return i&&i!=="?"&&(a+=i.charAt(0)==="?"?i:"?"+i),u&&u!=="#"&&(a+=u.charAt(0)==="#"?u:"#"+u),a}function Ia(a){let i={};if(a){let u=a.indexOf("#");u>=0&&(i.hash=a.substring(u),a=a.substring(0,u));let c=a.indexOf("?");c>=0&&(i.search=a.substring(c),a=a.substring(0,c)),a&&(i.pathname=a)}return i}function s0(a,i,u,c={}){let{window:o=document.defaultView,v5Compat:f=!1}=c,h=o.history,y="POP",p=null,v=b();v==null&&(v=0,h.replaceState({...h.state,idx:v},""));function b(){return(h.state||{idx:null}).idx}function C(){y="POP";let k=b(),z=k==null?null:k-v;v=k,p&&p({action:y,location:H.location,delta:z})}function x(k,z){y="PUSH";let Z=mr(H.location,k,z);v=b()+1;let Q=Xm(Z,v),ee=H.createHref(Z);try{h.pushState(Q,"",ee)}catch(T){if(T instanceof DOMException&&T.name==="DataCloneError")throw T;o.location.assign(ee)}f&&p&&p({action:y,location:H.location,delta:1})}function R(k,z){y="REPLACE";let Z=mr(H.location,k,z);v=b();let Q=Xm(Z,v),ee=H.createHref(Z);h.replaceState(Q,"",ee),f&&p&&p({action:y,location:H.location,delta:0})}function A(k){let z=o.location.origin!=="null"?o.location.origin:o.location.href,Z=typeof k=="string"?k:Pa(k);return Z=Z.replace(/ $/,"%20"),He(z,`No window.location.(origin|href) available to create URL for href: ${Z}`),new URL(Z,z)}let H={get action(){return y},get location(){return a(o,h)},listen(k){if(p)throw new Error("A history only accepts one active listener");return o.addEventListener(Gm,C),p=k,()=>{o.removeEventListener(Gm,C),p=null}},createHref(k){return i(o,k)},createURL:A,encodeLocation(k){let z=A(k);return{pathname:z.pathname,search:z.search,hash:z.hash}},push:x,replace:R,go(k){return h.go(k)}};return H}var o0=new Set(["lazy","caseSensitive","path","id","index","children"]);function f0(a){return a.index===!0}function zu(a,i,u=[],c={}){return a.map((o,f)=>{let h=[...u,String(f)],y=typeof o.id=="string"?o.id:h.join("-");if(He(o.index!==!0||!o.children,"Cannot specify children on an index route"),He(!c[y],`Found a route id collision on id "${y}". Route id's must be globally unique within Data Router usages`),f0(o)){let p={...o,...i(o),id:y};return c[y]=p,p}else{let p={...o,...i(o),id:y,children:void 0};return c[y]=p,o.children&&(p.children=zu(o.children,i,h,c)),p}})}function Fa(a,i,u="/"){return Au(a,i,u,!1)}function Au(a,i,u,c){let o=typeof i=="string"?Ia(i):i,f=fn(o.pathname||"/",u);if(f==null)return null;let h=Oy(a);h0(h);let y=null;for(let p=0;y==null&&p<h.length;++p){let v=R0(f);y=x0(h[p],v,c)}return y}function d0(a,i){let{route:u,pathname:c,params:o}=a;return{id:u.id,pathname:c,params:o,data:i[u.id],handle:u.handle}}function Oy(a,i=[],u=[],c=""){let o=(f,h,y)=>{let p={relativePath:y===void 0?f.path||"":y,caseSensitive:f.caseSensitive===!0,childrenIndex:h,route:f};p.relativePath.startsWith("/")&&(He(p.relativePath.startsWith(c),`Absolute route path "${p.relativePath}" nested under path "${c}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),p.relativePath=p.relativePath.slice(c.length));let v=Jn([c,p.relativePath]),b=u.concat(p);f.children&&f.children.length>0&&(He(f.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${v}".`),Oy(f.children,i,b,v)),!(f.path==null&&!f.index)&&i.push({path:v,score:b0(v,f.index),routesMeta:b})};return a.forEach((f,h)=>{var y;if(f.path===""||!((y=f.path)!=null&&y.includes("?")))o(f,h);else for(let p of Dy(f.path))o(f,h,p)}),i}function Dy(a){let i=a.split("/");if(i.length===0)return[];let[u,...c]=i,o=u.endsWith("?"),f=u.replace(/\?$/,"");if(c.length===0)return o?[f,""]:[f];let h=Dy(c.join("/")),y=[];return y.push(...h.map(p=>p===""?f:[f,p].join("/"))),o&&y.push(...h),y.map(p=>a.startsWith("/")&&p===""?"/":p)}function h0(a){a.sort((i,u)=>i.score!==u.score?u.score-i.score:S0(i.routesMeta.map(c=>c.childrenIndex),u.routesMeta.map(c=>c.childrenIndex)))}var m0=/^:[\w-]+$/,y0=3,p0=2,v0=1,g0=10,E0=-2,Qm=a=>a==="*";function b0(a,i){let u=a.split("/"),c=u.length;return u.some(Qm)&&(c+=E0),i&&(c+=p0),u.filter(o=>!Qm(o)).reduce((o,f)=>o+(m0.test(f)?y0:f===""?v0:g0),c)}function S0(a,i){return a.length===i.length&&a.slice(0,-1).every((c,o)=>c===i[o])?a[a.length-1]-i[i.length-1]:0}function x0(a,i,u=!1){let{routesMeta:c}=a,o={},f="/",h=[];for(let y=0;y<c.length;++y){let p=c[y],v=y===c.length-1,b=f==="/"?i:i.slice(f.length)||"/",C=Lu({path:p.relativePath,caseSensitive:p.caseSensitive,end:v},b),x=p.route;if(!C&&v&&u&&!c[c.length-1].route.index&&(C=Lu({path:p.relativePath,caseSensitive:p.caseSensitive,end:!1},b)),!C)return null;Object.assign(o,C.params),h.push({params:o,pathname:Jn([f,C.pathname]),pathnameBase:C0(Jn([f,C.pathnameBase])),route:x}),C.pathnameBase!=="/"&&(f=Jn([f,C.pathnameBase]))}return h}function Lu(a,i){typeof a=="string"&&(a={path:a,caseSensitive:!1,end:!0});let[u,c]=_0(a.path,a.caseSensitive,a.end),o=i.match(u);if(!o)return null;let f=o[0],h=f.replace(/(.)\/+$/,"$1"),y=o.slice(1);return{params:c.reduce((v,{paramName:b,isOptional:C},x)=>{if(b==="*"){let A=y[x]||"";h=f.slice(0,f.length-A.length).replace(/(.)\/+$/,"$1")}const R=y[x];return C&&!R?v[b]=void 0:v[b]=(R||"").replace(/%2F/g,"/"),v},{}),pathname:f,pathnameBase:h,pattern:a}}function _0(a,i=!1,u=!0){At(a==="*"||!a.endsWith("*")||a.endsWith("/*"),`Route path "${a}" will be treated as if it were "${a.replace(/\*$/,"/*")}" because the \`*\` character must always follow a \`/\` in the pattern. To get rid of this warning, please change the route path to "${a.replace(/\*$/,"/*")}".`);let c=[],o="^"+a.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(h,y,p)=>(c.push({paramName:y,isOptional:p!=null}),p?"/?([^\\/]+)?":"/([^\\/]+)"));return a.endsWith("*")?(c.push({paramName:"*"}),o+=a==="*"||a==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):u?o+="\\/*$":a!==""&&a!=="/"&&(o+="(?:(?=\\/|$))"),[new RegExp(o,i?void 0:"i"),c]}function R0(a){try{return a.split("/").map(i=>decodeURIComponent(i).replace(/\//g,"%2F")).join("/")}catch(i){return At(!1,`The URL path "${a}" could not be decoded because it is a malformed URL segment. This is probably due to a bad percent encoding (${i}).`),a}}function fn(a,i){if(i==="/")return a;if(!a.toLowerCase().startsWith(i.toLowerCase()))return null;let u=i.endsWith("/")?i.length-1:i.length,c=a.charAt(u);return c&&c!=="/"?null:a.slice(u)||"/"}function T0(a,i="/"){let{pathname:u,search:c="",hash:o=""}=typeof a=="string"?Ia(a):a;return{pathname:u?u.startsWith("/")?u:N0(u,i):i,search:j0(c),hash:O0(o)}}function N0(a,i){let u=i.replace(/\/+$/,"").split("/");return a.split("/").forEach(o=>{o===".."?u.length>1&&u.pop():o!=="."&&u.push(o)}),u.length>1?u.join("/"):"/"}function ro(a,i,u,c){return`Cannot include a '${a}' character in a manually specified \`to.${i}\` field [${JSON.stringify(c)}]. Please separate it out to the \`to.${u}\` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.`}function Ay(a){return a.filter((i,u)=>u===0||i.route.path&&i.route.path.length>0)}function Uo(a){let i=Ay(a);return i.map((u,c)=>c===i.length-1?u.pathname:u.pathnameBase)}function Ho(a,i,u,c=!1){let o;typeof a=="string"?o=Ia(a):(o={...a},He(!o.pathname||!o.pathname.includes("?"),ro("?","pathname","search",o)),He(!o.pathname||!o.pathname.includes("#"),ro("#","pathname","hash",o)),He(!o.search||!o.search.includes("#"),ro("#","search","hash",o)));let f=a===""||o.pathname==="",h=f?"/":o.pathname,y;if(h==null)y=u;else{let C=i.length-1;if(!c&&h.startsWith("..")){let x=h.split("/");for(;x[0]==="..";)x.shift(),C-=1;o.pathname=x.join("/")}y=C>=0?i[C]:"/"}let p=T0(o,y),v=h&&h!=="/"&&h.endsWith("/"),b=(f||h===".")&&u.endsWith("/");return!p.pathname.endsWith("/")&&(v||b)&&(p.pathname+="/"),p}var Jn=a=>a.join("/").replace(/\/\/+/g,"/"),C0=a=>a.replace(/\/+$/,"").replace(/^\/*/,"/"),j0=a=>!a||a==="?"?"":a.startsWith("?")?a:"?"+a,O0=a=>!a||a==="#"?"":a.startsWith("#")?a:"#"+a,Uu=class{constructor(a,i,u,c=!1){this.status=a,this.statusText=i||"",this.internal=c,u instanceof Error?(this.data=u.toString(),this.error=u):this.data=u}};function Gu(a){return a!=null&&typeof a.status=="number"&&typeof a.statusText=="string"&&typeof a.internal=="boolean"&&"data"in a}var wy=["POST","PUT","PATCH","DELETE"],D0=new Set(wy),A0=["GET",...wy],w0=new Set(A0),M0=new Set([301,302,303,307,308]),z0=new Set([307,308]),uo={state:"idle",location:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},L0={state:"idle",data:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},si={state:"unblocked",proceed:void 0,reset:void 0,location:void 0},Bo=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,U0=a=>({hasErrorBoundary:!!a.hasErrorBoundary}),My="remix-router-transitions",zy=Symbol("ResetLoaderData");function H0(a){const i=a.window?a.window:typeof window<"u"?window:void 0,u=typeof i<"u"&&typeof i.document<"u"&&typeof i.document.createElement<"u";He(a.routes.length>0,"You must provide a non-empty routes array to createRouter");let c=a.mapRouteProperties||U0,o={},f=zu(a.routes,c,void 0,o),h,y=a.basename||"/",p=a.dataStrategy||Y0,v=a.patchRoutesOnNavigation,b={...a.future},C=null,x=new Set,R=null,A=null,H=null,k=a.hydrationData!=null,z=Fa(f,a.history.location,y),Z=null;if(z==null&&!v){let N=jn(404,{pathname:a.history.location.pathname}),{matches:w,route:U}=ny(f);z=w,Z={[U.id]:N}}z&&!a.hydrationData&&zt(z,f,a.history.location.pathname).active&&(z=null);let Q;if(z)if(z.some(N=>N.route.lazy))Q=!1;else if(!z.some(N=>N.route.loader))Q=!0;else{let N=a.hydrationData?a.hydrationData.loaderData:null,w=a.hydrationData?a.hydrationData.errors:null;if(w){let U=z.findIndex(X=>w[X.route.id]!==void 0);Q=z.slice(0,U+1).every(X=>!To(X.route,N,w))}else Q=z.every(U=>!To(U.route,N,w))}else{Q=!1,z=[];let N=zt(null,f,a.history.location.pathname);N.active&&N.matches&&(z=N.matches)}let ee,T={historyAction:a.history.action,location:a.history.location,matches:z,initialized:Q,navigation:uo,restoreScrollPosition:a.hydrationData!=null?!1:null,preventScrollReset:!1,revalidation:"idle",loaderData:a.hydrationData&&a.hydrationData.loaderData||{},actionData:a.hydrationData&&a.hydrationData.actionData||null,errors:a.hydrationData&&a.hydrationData.errors||Z,fetchers:new Map,blockers:new Map},P="POP",fe=!1,ce,$=!1,ie=new Map,Le=null,Pe=!1,Ge=!1,et=new Set,Ne=new Map,K=0,se=-1,F=new Map,_e=new Set,_=new Map,V=new Map,te=new Set,W=new Map,J,ye=null;function ge(){if(C=a.history.listen(({action:N,location:w,delta:U})=>{if(J){J(),J=void 0;return}At(W.size===0||U!=null,"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 X=ht({currentLocation:T.location,nextLocation:w,historyAction:N});if(X&&U!=null){let ne=new Promise(de=>{J=de});a.history.go(U*-1),Nt(X,{state:"blocked",location:w,proceed(){Nt(X,{state:"proceeding",proceed:void 0,reset:void 0,location:w}),ne.then(()=>a.history.go(U))},reset(){let de=new Map(T.blockers);de.set(X,si),xe({blockers:de})}});return}return Ke(N,w)}),u){I0(i,ie);let N=()=>e1(i,ie);i.addEventListener("pagehide",N),Le=()=>i.removeEventListener("pagehide",N)}return T.initialized||Ke("POP",T.location,{initialHydration:!0}),ee}function Ze(){C&&C(),Le&&Le(),x.clear(),ce&&ce.abort(),T.fetchers.forEach((N,w)=>kt(w)),T.blockers.forEach((N,w)=>ea(w))}function Ce(N){return x.add(N),()=>x.delete(N)}function xe(N,w={}){T={...T,...N};let U=[],X=[];T.fetchers.forEach((ne,de)=>{ne.state==="idle"&&(te.has(de)?U.push(de):X.push(de))}),te.forEach(ne=>{!T.fetchers.has(ne)&&!Ne.has(ne)&&U.push(ne)}),[...x].forEach(ne=>ne(T,{deletedFetchers:U,viewTransitionOpts:w.viewTransitionOpts,flushSync:w.flushSync===!0})),U.forEach(ne=>kt(ne)),X.forEach(ne=>T.fetchers.delete(ne))}function Te(N,w,{flushSync:U}={}){var I,pe;let X=T.actionData!=null&&T.navigation.formMethod!=null&&Bn(T.navigation.formMethod)&&T.navigation.state==="loading"&&((I=N.state)==null?void 0:I._isRedirect)!==!0,ne;w.actionData?Object.keys(w.actionData).length>0?ne=w.actionData:ne=null:X?ne=T.actionData:ne=null;let de=w.loaderData?ey(T.loaderData,w.loaderData,w.matches||[],w.errors):T.loaderData,Se=T.blockers;Se.size>0&&(Se=new Map(Se),Se.forEach((me,Oe)=>Se.set(Oe,si)));let le=fe===!0||T.navigation.formMethod!=null&&Bn(T.navigation.formMethod)&&((pe=N.state)==null?void 0:pe._isRedirect)!==!0;h&&(f=h,h=void 0),Pe||P==="POP"||(P==="PUSH"?a.history.push(N,N.state):P==="REPLACE"&&a.history.replace(N,N.state));let ue;if(P==="POP"){let me=ie.get(T.location.pathname);me&&me.has(N.pathname)?ue={currentLocation:T.location,nextLocation:N}:ie.has(N.pathname)&&(ue={currentLocation:N,nextLocation:T.location})}else if($){let me=ie.get(T.location.pathname);me?me.add(N.pathname):(me=new Set([N.pathname]),ie.set(T.location.pathname,me)),ue={currentLocation:T.location,nextLocation:N}}xe({...w,actionData:ne,loaderData:de,historyAction:P,location:N,initialized:!0,navigation:uo,revalidation:"idle",restoreScrollPosition:mn(N,w.matches||T.matches),preventScrollReset:le,blockers:Se},{viewTransitionOpts:ue,flushSync:U===!0}),P="POP",fe=!1,$=!1,Pe=!1,Ge=!1,ye==null||ye.resolve(),ye=null}async function at(N,w){if(typeof N=="number"){a.history.go(N);return}let U=Ro(T.location,T.matches,y,N,w==null?void 0:w.fromRouteId,w==null?void 0:w.relative),{path:X,submission:ne,error:de}=Zm(!1,U,w),Se=T.location,le=mr(T.location,X,w&&w.state);le={...le,...a.history.encodeLocation(le)};let ue=w&&w.replace!=null?w.replace:void 0,I="PUSH";ue===!0?I="REPLACE":ue===!1||ne!=null&&Bn(ne.formMethod)&&ne.formAction===T.location.pathname+T.location.search&&(I="REPLACE");let pe=w&&"preventScrollReset"in w?w.preventScrollReset===!0:void 0,me=(w&&w.flushSync)===!0,Oe=ht({currentLocation:Se,nextLocation:le,historyAction:I});if(Oe){Nt(Oe,{state:"blocked",location:le,proceed(){Nt(Oe,{state:"proceeding",proceed:void 0,reset:void 0,location:le}),at(N,w)},reset(){let tt=new Map(T.blockers);tt.set(Oe,si),xe({blockers:tt})}});return}await Ke(I,le,{submission:ne,pendingError:de,preventScrollReset:pe,replace:w&&w.replace,enableViewTransition:w&&w.viewTransition,flushSync:me})}function bt(){ye||(ye=t1()),ct(),xe({revalidation:"loading"});let N=ye.promise;return T.navigation.state==="submitting"?N:T.navigation.state==="idle"?(Ke(T.historyAction,T.location,{startUninterruptedRevalidation:!0}),N):(Ke(P||T.historyAction,T.navigation.location,{overrideNavigation:T.navigation,enableViewTransition:$===!0}),N)}async function Ke(N,w,U){ce&&ce.abort(),ce=null,P=N,Pe=(U&&U.startUninterruptedRevalidation)===!0,Dn(T.location,T.matches),fe=(U&&U.preventScrollReset)===!0,$=(U&&U.enableViewTransition)===!0;let X=h||f,ne=U&&U.overrideNavigation,de=Fa(X,w,y),Se=(U&&U.flushSync)===!0,le=zt(de,X,w.pathname);if(le.active&&le.matches&&(de=le.matches),!de){let{error:$e,notFoundMatches:Je,route:mt}=Vn(w.pathname);Te(w,{matches:Je,loaderData:{},errors:{[mt.id]:$e}},{flushSync:Se});return}if(T.initialized&&!Ge&&$0(T.location,w)&&!(U&&U.submission&&Bn(U.submission.formMethod))){Te(w,{matches:de},{flushSync:Se});return}ce=new AbortController;let ue=ii(a.history,w,ce.signal,U&&U.submission),I;if(U&&U.pendingError)I=[xl(de).route.id,{type:"error",error:U.pendingError}];else if(U&&U.submission&&Bn(U.submission.formMethod)){let $e=await Rt(ue,w,U.submission,de,le.active,{replace:U.replace,flushSync:Se});if($e.shortCircuited)return;if($e.pendingActionResult){let[Je,mt]=$e.pendingActionResult;if(sn(mt)&&Gu(mt.error)&&mt.error.status===404){ce=null,Te(w,{matches:$e.matches,loaderData:{},errors:{[Je]:mt.error}});return}}de=$e.matches||de,I=$e.pendingActionResult,ne=co(w,U.submission),Se=!1,le.active=!1,ue=ii(a.history,ue.url,ue.signal)}let{shortCircuited:pe,matches:me,loaderData:Oe,errors:tt}=await ze(ue,w,de,le.active,ne,U&&U.submission,U&&U.fetcherSubmission,U&&U.replace,U&&U.initialHydration===!0,Se,I);pe||(ce=null,Te(w,{matches:me||de,...ty(I),loaderData:Oe,errors:tt}))}async function Rt(N,w,U,X,ne,de={}){ct();let Se=P0(w,U);if(xe({navigation:Se},{flushSync:de.flushSync===!0}),ne){let I=await Ft(X,w.pathname,N.signal);if(I.type==="aborted")return{shortCircuited:!0};if(I.type==="error"){let pe=xl(I.partialMatches).route.id;return{matches:I.partialMatches,pendingActionResult:[pe,{type:"error",error:I.error}]}}else if(I.matches)X=I.matches;else{let{notFoundMatches:pe,error:me,route:Oe}=Vn(w.pathname);return{matches:pe,pendingActionResult:[Oe.id,{type:"error",error:me}]}}}let le,ue=dr(X,w);if(!ue.route.action&&!ue.route.lazy)le={type:"error",error:jn(405,{method:N.method,pathname:w.pathname,routeId:ue.route.id})};else if(le=(await Jt("action",T,N,[ue],X,null))[ue.route.id],N.signal.aborted)return{shortCircuited:!0};if(Tl(le)){let I;return de&&de.replace!=null?I=de.replace:I=Pm(le.response.headers.get("Location"),new URL(N.url),y)===T.location.pathname+T.location.search,await Tt(N,le,!0,{submission:U,replace:I}),{shortCircuited:!0}}if(sn(le)){let I=xl(X,ue.route.id);return(de&&de.replace)!==!0&&(P="PUSH"),{matches:X,pendingActionResult:[I.route.id,le]}}return{matches:X,pendingActionResult:[ue.route.id,le]}}async function ze(N,w,U,X,ne,de,Se,le,ue,I,pe){let me=ne||co(w,de),Oe=de||Se||ly(me),tt=!Pe&&!ue;if(X){if(tt){let nt=St(pe);xe({navigation:me,...nt!==void 0?{actionData:nt}:{}},{flushSync:I})}let Ye=await Ft(U,w.pathname,N.signal);if(Ye.type==="aborted")return{shortCircuited:!0};if(Ye.type==="error"){let nt=xl(Ye.partialMatches).route.id;return{matches:Ye.partialMatches,loaderData:{},errors:{[nt]:Ye.error}}}else if(Ye.matches)U=Ye.matches;else{let{error:nt,notFoundMatches:Mn,route:Qt}=Vn(w.pathname);return{matches:Mn,loaderData:{},errors:{[Qt.id]:nt}}}}let $e=h||f,[Je,mt]=$m(a.history,T,U,Oe,w,ue===!0,Ge,et,te,_,_e,$e,y,pe);if(se=++K,Je.length===0&&mt.length===0){let Ye=In();return Te(w,{matches:U,loaderData:{},errors:pe&&sn(pe[1])?{[pe[0]]:pe[1].error}:null,...ty(pe),...Ye?{fetchers:new Map(T.fetchers)}:{}},{flushSync:I}),{shortCircuited:!0}}if(tt){let Ye={};if(!X){Ye.navigation=me;let nt=St(pe);nt!==void 0&&(Ye.actionData=nt)}mt.length>0&&(Ye.fetchers=qt(mt)),xe(Ye,{flushSync:I})}mt.forEach(Ye=>{Vt(Ye.key),Ye.controller&&Ne.set(Ye.key,Ye.controller)});let na=()=>mt.forEach(Ye=>Vt(Ye.key));ce&&ce.signal.addEventListener("abort",na);let{loaderResults:An,fetcherResults:nn}=await On(T,U,Je,mt,N);if(N.signal.aborted)return{shortCircuited:!0};ce&&ce.signal.removeEventListener("abort",na),mt.forEach(Ye=>Ne.delete(Ye.key));let Ct=Nu(An);if(Ct)return await Tt(N,Ct.result,!0,{replace:le}),{shortCircuited:!0};if(Ct=Nu(nn),Ct)return _e.add(Ct.key),await Tt(N,Ct.result,!0,{replace:le}),{shortCircuited:!0};let{loaderData:Yn,errors:wn}=Im(T,U,An,pe,mt,nn);ue&&T.errors&&(wn={...T.errors,...wn});let Pt=In(),lt=tn(se),el=Pt||lt||mt.length>0;return{matches:U,loaderData:Yn,errors:wn,...el?{fetchers:new Map(T.fetchers)}:{}}}function St(N){if(N&&!sn(N[1]))return{[N[0]]:N[1].data};if(T.actionData)return Object.keys(T.actionData).length===0?null:T.actionData}function qt(N){return N.forEach(w=>{let U=T.fetchers.get(w.key),X=cr(void 0,U?U.data:void 0);T.fetchers.set(w.key,X)}),new Map(T.fetchers)}async function en(N,w,U,X){Vt(N);let ne=(X&&X.flushSync)===!0,de=h||f,Se=Ro(T.location,T.matches,y,U,w,X==null?void 0:X.relative),le=Fa(de,Se,y),ue=zt(le,de,Se);if(ue.active&&ue.matches&&(le=ue.matches),!le){be(N,w,jn(404,{pathname:Se}),{flushSync:ne});return}let{path:I,submission:pe,error:me}=Zm(!0,Se,X);if(me){be(N,w,me,{flushSync:ne});return}let Oe=dr(le,I),tt=(X&&X.preventScrollReset)===!0;if(pe&&Bn(pe.formMethod)){await dn(N,w,I,Oe,le,ue.active,ne,tt,pe);return}_.set(N,{routeId:w,path:I}),await hn(N,w,I,Oe,le,ue.active,ne,tt,pe)}async function dn(N,w,U,X,ne,de,Se,le,ue){ct(),_.delete(N);function I(st){if(!st.route.action&&!st.route.lazy){let aa=jn(405,{method:ue.formMethod,pathname:U,routeId:w});return be(N,w,aa,{flushSync:Se}),!0}return!1}if(!de&&I(X))return;let pe=T.fetchers.get(N);wt(N,W0(ue,pe),{flushSync:Se});let me=new AbortController,Oe=ii(a.history,U,me.signal,ue);if(de){let st=await Ft(ne,U,Oe.signal);if(st.type==="aborted")return;if(st.type==="error"){be(N,w,st.error,{flushSync:Se});return}else if(st.matches){if(ne=st.matches,X=dr(ne,U),I(X))return}else{be(N,w,jn(404,{pathname:U}),{flushSync:Se});return}}Ne.set(N,me);let tt=K,Je=(await Jt("action",T,Oe,[X],ne,N))[X.route.id];if(Oe.signal.aborted){Ne.get(N)===me&&Ne.delete(N);return}if(te.has(N)){if(Tl(Je)||sn(Je)){wt(N,$a(void 0));return}}else{if(Tl(Je))if(Ne.delete(N),se>tt){wt(N,$a(void 0));return}else return _e.add(N),wt(N,cr(ue)),Tt(Oe,Je,!1,{fetcherSubmission:ue,preventScrollReset:le});if(sn(Je)){be(N,w,Je.error);return}}let mt=T.navigation.location||T.location,na=ii(a.history,mt,me.signal),An=h||f,nn=T.navigation.state!=="idle"?Fa(An,T.navigation.location,y):T.matches;He(nn,"Didn't find any matches after fetcher action");let Ct=++K;F.set(N,Ct);let Yn=cr(ue,Je.data);T.fetchers.set(N,Yn);let[wn,Pt]=$m(a.history,T,nn,ue,mt,!1,Ge,et,te,_,_e,An,y,[X.route.id,Je]);Pt.filter(st=>st.key!==N).forEach(st=>{let aa=st.key,hi=T.fetchers.get(aa),Ju=cr(void 0,hi?hi.data:void 0);T.fetchers.set(aa,Ju),Vt(aa),st.controller&&Ne.set(aa,st.controller)}),xe({fetchers:new Map(T.fetchers)});let lt=()=>Pt.forEach(st=>Vt(st.key));me.signal.addEventListener("abort",lt);let{loaderResults:el,fetcherResults:Ye}=await On(T,nn,wn,Pt,na);if(me.signal.aborted)return;me.signal.removeEventListener("abort",lt),F.delete(N),Ne.delete(N),Pt.forEach(st=>Ne.delete(st.key));let nt=Nu(el);if(nt)return Tt(na,nt.result,!1,{preventScrollReset:le});if(nt=Nu(Ye),nt)return _e.add(nt.key),Tt(na,nt.result,!1,{preventScrollReset:le});let{loaderData:Mn,errors:Qt}=Im(T,nn,el,void 0,Pt,Ye);if(T.fetchers.has(N)){let st=$a(Je.data);T.fetchers.set(N,st)}tn(Ct),T.navigation.state==="loading"&&Ct>se?(He(P,"Expected pending action"),ce&&ce.abort(),Te(T.navigation.location,{matches:nn,loaderData:Mn,errors:Qt,fetchers:new Map(T.fetchers)})):(xe({errors:Qt,loaderData:ey(T.loaderData,Mn,nn,Qt),fetchers:new Map(T.fetchers)}),Ge=!1)}async function hn(N,w,U,X,ne,de,Se,le,ue){let I=T.fetchers.get(N);wt(N,cr(ue,I?I.data:void 0),{flushSync:Se});let pe=new AbortController,me=ii(a.history,U,pe.signal);if(de){let Je=await Ft(ne,U,me.signal);if(Je.type==="aborted")return;if(Je.type==="error"){be(N,w,Je.error,{flushSync:Se});return}else if(Je.matches)ne=Je.matches,X=dr(ne,U);else{be(N,w,jn(404,{pathname:U}),{flushSync:Se});return}}Ne.set(N,pe);let Oe=K,$e=(await Jt("loader",T,me,[X],ne,N))[X.route.id];if(Ne.get(N)===pe&&Ne.delete(N),!me.signal.aborted){if(te.has(N)){wt(N,$a(void 0));return}if(Tl($e))if(se>Oe){wt(N,$a(void 0));return}else{_e.add(N),await Tt(me,$e,!1,{preventScrollReset:le});return}if(sn($e)){be(N,w,$e.error);return}wt(N,$a($e.data))}}async function Tt(N,w,U,{submission:X,fetcherSubmission:ne,preventScrollReset:de,replace:Se}={}){w.response.headers.has("X-Remix-Revalidate")&&(Ge=!0);let le=w.response.headers.get("Location");He(le,"Expected a Location header on the redirect Response"),le=Pm(le,new URL(N.url),y);let ue=mr(T.location,le,{_isRedirect:!0});if(u){let $e=!1;if(w.response.headers.has("X-Remix-Reload-Document"))$e=!0;else if(Bo.test(le)){const Je=a.history.createURL(le);$e=Je.origin!==i.location.origin||fn(Je.pathname,y)==null}if($e){Se?i.location.replace(le):i.location.assign(le);return}}ce=null;let I=Se===!0||w.response.headers.has("X-Remix-Replace")?"REPLACE":"PUSH",{formMethod:pe,formAction:me,formEncType:Oe}=T.navigation;!X&&!ne&&pe&&me&&Oe&&(X=ly(T.navigation));let tt=X||ne;if(z0.has(w.response.status)&&tt&&Bn(tt.formMethod))await Ke(I,ue,{submission:{...tt,formAction:le},preventScrollReset:de||fe,enableViewTransition:U?$:void 0});else{let $e=co(ue,X);await Ke(I,ue,{overrideNavigation:$e,fetcherSubmission:ne,preventScrollReset:de||fe,enableViewTransition:U?$:void 0})}}async function Jt(N,w,U,X,ne,de){let Se,le={};try{Se=await G0(p,N,w,U,X,ne,de,o,c)}catch(ue){return X.forEach(I=>{le[I.route.id]={type:"error",error:ue}}),le}for(let[ue,I]of Object.entries(Se))if(J0(I)){let pe=I.result;le[ue]={type:"redirect",response:Z0(pe,U,ue,ne,y)}}else le[ue]=await Q0(I);return le}async function On(N,w,U,X,ne){let de=Jt("loader",N,ne,U,w,null),Se=Promise.all(X.map(async I=>{if(I.matches&&I.match&&I.controller){let me=(await Jt("loader",N,ii(a.history,I.path,I.controller.signal),[I.match],I.matches,I.key))[I.match.route.id];return{[I.key]:me}}else return Promise.resolve({[I.key]:{type:"error",error:jn(404,{pathname:I.path})}})})),le=await de,ue=(await Se).reduce((I,pe)=>Object.assign(I,pe),{});return{loaderResults:le,fetcherResults:ue}}function ct(){Ge=!0,_.forEach((N,w)=>{Ne.has(w)&&et.add(w),Vt(w)})}function wt(N,w,U={}){T.fetchers.set(N,w),xe({fetchers:new Map(T.fetchers)},{flushSync:(U&&U.flushSync)===!0})}function be(N,w,U,X={}){let ne=xl(T.matches,w);kt(N),xe({errors:{[ne.route.id]:U},fetchers:new Map(T.fetchers)},{flushSync:(X&&X.flushSync)===!0})}function Mt(N){return V.set(N,(V.get(N)||0)+1),te.has(N)&&te.delete(N),T.fetchers.get(N)||L0}function kt(N){let w=T.fetchers.get(N);Ne.has(N)&&!(w&&w.state==="loading"&&F.has(N))&&Vt(N),_.delete(N),F.delete(N),_e.delete(N),te.delete(N),et.delete(N),T.fetchers.delete(N)}function _a(N){let w=(V.get(N)||0)-1;w<=0?(V.delete(N),te.add(N)):V.set(N,w),xe({fetchers:new Map(T.fetchers)})}function Vt(N){let w=Ne.get(N);w&&(w.abort(),Ne.delete(N))}function Wn(N){for(let w of N){let U=Mt(w),X=$a(U.data);T.fetchers.set(w,X)}}function In(){let N=[],w=!1;for(let U of _e){let X=T.fetchers.get(U);He(X,`Expected fetcher: ${U}`),X.state==="loading"&&(_e.delete(U),N.push(U),w=!0)}return Wn(N),w}function tn(N){let w=[];for(let[U,X]of F)if(X<N){let ne=T.fetchers.get(U);He(ne,`Expected fetcher: ${U}`),ne.state==="loading"&&(Vt(U),F.delete(U),w.push(U))}return Wn(w),w.length>0}function pt(N,w){let U=T.blockers.get(N)||si;return W.get(N)!==w&&W.set(N,w),U}function ea(N){T.blockers.delete(N),W.delete(N)}function Nt(N,w){let U=T.blockers.get(N)||si;He(U.state==="unblocked"&&w.state==="blocked"||U.state==="blocked"&&w.state==="blocked"||U.state==="blocked"&&w.state==="proceeding"||U.state==="blocked"&&w.state==="unblocked"||U.state==="proceeding"&&w.state==="unblocked",`Invalid blocker state transition: ${U.state} -> ${w.state}`);let X=new Map(T.blockers);X.set(N,w),xe({blockers:X})}function ht({currentLocation:N,nextLocation:w,historyAction:U}){if(W.size===0)return;W.size>1&&At(!1,"A router only supports one blocker at a time");let X=Array.from(W.entries()),[ne,de]=X[X.length-1],Se=T.blockers.get(ne);if(!(Se&&Se.state==="proceeding")&&de({currentLocation:N,nextLocation:w,historyAction:U}))return ne}function Vn(N){let w=jn(404,{pathname:N}),U=h||f,{matches:X,route:ne}=ny(U);return{notFoundMatches:X,route:ne,error:w}}function Ra(N,w,U){if(R=N,H=w,A=U||null,!k&&T.navigation===uo){k=!0;let X=mn(T.location,T.matches);X!=null&&xe({restoreScrollPosition:X})}return()=>{R=null,H=null,A=null}}function ta(N,w){return A&&A(N,w.map(X=>d0(X,T.loaderData)))||N.key}function Dn(N,w){if(R&&H){let U=ta(N,w);R[U]=H()}}function mn(N,w){if(R){let U=ta(N,w),X=R[U];if(typeof X=="number")return X}return null}function zt(N,w,U){if(v)if(N){if(Object.keys(N[0].params).length>0)return{active:!0,matches:Au(w,U,y,!0)}}else return{active:!0,matches:Au(w,U,y,!0)||[]};return{active:!1,matches:null}}async function Ft(N,w,U){if(!v)return{type:"success",matches:N};let X=N;for(;;){let ne=h==null,de=h||f,Se=o;try{await v({path:w,matches:X,patch:(I,pe)=>{U.aborted||Fm(I,pe,de,Se,c)}})}catch(I){return{type:"error",error:I,partialMatches:X}}finally{ne&&!U.aborted&&(f=[...f])}if(U.aborted)return{type:"aborted"};let le=Fa(de,w,y);if(le)return{type:"success",matches:le};let ue=Au(de,w,y,!0);if(!ue||X.length===ue.length&&X.every((I,pe)=>I.route.id===ue[pe].route.id))return{type:"success",matches:null};X=ue}}function yn(N){o={},h=zu(N,c,void 0,o)}function Ta(N,w){let U=h==null;Fm(N,w,h||f,o,c),U&&(f=[...f],xe({}))}return ee={get basename(){return y},get future(){return b},get state(){return T},get routes(){return f},get window(){return i},initialize:ge,subscribe:Ce,enableScrollRestoration:Ra,navigate:at,fetch:en,revalidate:bt,createHref:N=>a.history.createHref(N),encodeLocation:N=>a.history.encodeLocation(N),getFetcher:Mt,deleteFetcher:_a,dispose:Ze,getBlocker:pt,deleteBlocker:ea,patchRoutes:Ta,_internalFetchControllers:Ne,_internalSetRoutes:yn},ee}function B0(a){return a!=null&&("formData"in a&&a.formData!=null||"body"in a&&a.body!==void 0)}function Ro(a,i,u,c,o,f){let h,y;if(o){h=[];for(let v of i)if(h.push(v),v.route.id===o){y=v;break}}else h=i,y=i[i.length-1];let p=Ho(c||".",Uo(h),fn(a.pathname,u)||a.pathname,f==="path");if(c==null&&(p.search=a.search,p.hash=a.hash),(c==null||c===""||c===".")&&y){let v=qo(p.search);if(y.route.index&&!v)p.search=p.search?p.search.replace(/^\?/,"?index&"):"?index";else if(!y.route.index&&v){let b=new URLSearchParams(p.search),C=b.getAll("index");b.delete("index"),C.filter(R=>R).forEach(R=>b.append("index",R));let x=b.toString();p.search=x?`?${x}`:""}}return u!=="/"&&(p.pathname=p.pathname==="/"?u:Jn([u,p.pathname])),Pa(p)}function Zm(a,i,u){if(!u||!B0(u))return{path:i};if(u.formMethod&&!F0(u.formMethod))return{path:i,error:jn(405,{method:u.formMethod})};let c=()=>({path:i,error:jn(400,{type:"invalid-body"})}),f=(u.formMethod||"get").toUpperCase(),h=Uy(i);if(u.body!==void 0){if(u.formEncType==="text/plain"){if(!Bn(f))return c();let C=typeof u.body=="string"?u.body:u.body instanceof FormData||u.body instanceof URLSearchParams?Array.from(u.body.entries()).reduce((x,[R,A])=>`${x}${R}=${A} -`,""):String(u.body);return{path:i,submission:{formMethod:f,formAction:h,formEncType:u.formEncType,formData:void 0,json:void 0,text:C}}}else if(u.formEncType==="application/json"){if(!Bn(f))return c();try{let C=typeof u.body=="string"?JSON.parse(u.body):u.body;return{path:i,submission:{formMethod:f,formAction:h,formEncType:u.formEncType,formData:void 0,json:C,text:void 0}}}catch{return c()}}}He(typeof FormData=="function","FormData is not available in this environment");let y,p;if(u.formData)y=No(u.formData),p=u.formData;else if(u.body instanceof FormData)y=No(u.body),p=u.body;else if(u.body instanceof URLSearchParams)y=u.body,p=Wm(y);else if(u.body==null)y=new URLSearchParams,p=new FormData;else try{y=new URLSearchParams(u.body),p=Wm(y)}catch{return c()}let v={formMethod:f,formAction:h,formEncType:u&&u.formEncType||"application/x-www-form-urlencoded",formData:p,json:void 0,text:void 0};if(Bn(v.formMethod))return{path:i,submission:v};let b=Ia(i);return a&&b.search&&qo(b.search)&&y.append("index",""),b.search=`?${y}`,{path:Pa(b),submission:v}}function Km(a,i,u=!1){let c=a.findIndex(o=>o.route.id===i);return c>=0?a.slice(0,u?c+1:c):a}function $m(a,i,u,c,o,f,h,y,p,v,b,C,x,R){let A=R?sn(R[1])?R[1].error:R[1].data:void 0,H=a.createURL(i.location),k=a.createURL(o),z=u;f&&i.errors?z=Km(u,Object.keys(i.errors)[0],!0):R&&sn(R[1])&&(z=Km(u,R[0]));let Z=R?R[1].statusCode:void 0,Q=Z&&Z>=400,ee=z.filter((P,fe)=>{let{route:ce}=P;if(ce.lazy)return!0;if(ce.loader==null)return!1;if(f)return To(ce,i.loaderData,i.errors);if(q0(i.loaderData,i.matches[fe],P))return!0;let $=i.matches[fe],ie=P;return Jm(P,{currentUrl:H,currentParams:$.params,nextUrl:k,nextParams:ie.params,...c,actionResult:A,actionStatus:Z,defaultShouldRevalidate:Q?!1:h||H.pathname+H.search===k.pathname+k.search||H.search!==k.search||k0($,ie)})}),T=[];return v.forEach((P,fe)=>{if(f||!u.some(Pe=>Pe.route.id===P.routeId)||p.has(fe))return;let ce=Fa(C,P.path,x);if(!ce){T.push({key:fe,routeId:P.routeId,path:P.path,matches:null,match:null,controller:null});return}let $=i.fetchers.get(fe),ie=dr(ce,P.path),Le=!1;b.has(fe)?Le=!1:y.has(fe)?(y.delete(fe),Le=!0):$&&$.state!=="idle"&&$.data===void 0?Le=h:Le=Jm(ie,{currentUrl:H,currentParams:i.matches[i.matches.length-1].params,nextUrl:k,nextParams:u[u.length-1].params,...c,actionResult:A,actionStatus:Z,defaultShouldRevalidate:Q?!1:h}),Le&&T.push({key:fe,routeId:P.routeId,path:P.path,matches:ce,match:ie,controller:new AbortController})}),[ee,T]}function To(a,i,u){if(a.lazy)return!0;if(!a.loader)return!1;let c=i!=null&&i[a.id]!==void 0,o=u!=null&&u[a.id]!==void 0;return!c&&o?!1:typeof a.loader=="function"&&a.loader.hydrate===!0?!0:!c&&!o}function q0(a,i,u){let c=!i||u.route.id!==i.route.id,o=!a.hasOwnProperty(u.route.id);return c||o}function k0(a,i){let u=a.route.path;return a.pathname!==i.pathname||u!=null&&u.endsWith("*")&&a.params["*"]!==i.params["*"]}function Jm(a,i){if(a.route.shouldRevalidate){let u=a.route.shouldRevalidate(i);if(typeof u=="boolean")return u}return i.defaultShouldRevalidate}function Fm(a,i,u,c,o){let f;if(a){let p=c[a];He(p,`No route found to patch children into: routeId = ${a}`),p.children||(p.children=[]),f=p.children}else f=u;let h=i.filter(p=>!f.some(v=>Ly(p,v))),y=zu(h,o,[a||"_","patch",String((f==null?void 0:f.length)||"0")],c);f.push(...y)}function Ly(a,i){return"id"in a&&"id"in i&&a.id===i.id?!0:a.index===i.index&&a.path===i.path&&a.caseSensitive===i.caseSensitive?(!a.children||a.children.length===0)&&(!i.children||i.children.length===0)?!0:a.children.every((u,c)=>{var o;return(o=i.children)==null?void 0:o.some(f=>Ly(u,f))}):!1}async function V0(a,i,u){if(!a.lazy)return;let c=await a.lazy();if(!a.lazy)return;let o=u[a.id];He(o,"No route found in manifest");let f={};for(let h in c){let p=o[h]!==void 0&&h!=="hasErrorBoundary";At(!p,`Route "${o.id}" has a static property "${h}" defined but its lazy function is also returning a value for this property. The lazy route property "${h}" will be ignored.`),!p&&!o0.has(h)&&(f[h]=c[h])}Object.assign(o,f),Object.assign(o,{...i(o),lazy:void 0})}async function Y0({matches:a}){let i=a.filter(c=>c.shouldLoad);return(await Promise.all(i.map(c=>c.resolve()))).reduce((c,o,f)=>Object.assign(c,{[i[f].route.id]:o}),{})}async function G0(a,i,u,c,o,f,h,y,p,v){let b=f.map(R=>R.route.lazy?V0(R.route,p,y):void 0),C=f.map((R,A)=>{let H=b[A],k=o.some(Z=>Z.route.id===R.route.id);return{...R,shouldLoad:k,resolve:async Z=>(Z&&c.method==="GET"&&(R.route.lazy||R.route.loader)&&(k=!0),k?X0(i,c,R,H,Z,v):Promise.resolve({type:"data",result:void 0}))}}),x=await a({matches:C,request:c,params:f[0].params,fetcherKey:h,context:v});try{await Promise.all(b)}catch{}return x}async function X0(a,i,u,c,o,f){let h,y,p=v=>{let b,C=new Promise((A,H)=>b=H);y=()=>b(),i.signal.addEventListener("abort",y);let x=A=>typeof v!="function"?Promise.reject(new Error(`You cannot call the handler for a route which defines a boolean "${a}" [routeId: ${u.route.id}]`)):v({request:i,params:u.params,context:f},...A!==void 0?[A]:[]),R=(async()=>{try{return{type:"data",result:await(o?o(H=>x(H)):x())}}catch(A){return{type:"error",result:A}}})();return Promise.race([R,C])};try{let v=u.route[a];if(c)if(v){let b,[C]=await Promise.all([p(v).catch(x=>{b=x}),c]);if(b!==void 0)throw b;h=C}else if(await c,v=u.route[a],v)h=await p(v);else if(a==="action"){let b=new URL(i.url),C=b.pathname+b.search;throw jn(405,{method:i.method,pathname:C,routeId:u.route.id})}else return{type:"data",result:void 0};else if(v)h=await p(v);else{let b=new URL(i.url),C=b.pathname+b.search;throw jn(404,{pathname:C})}}catch(v){return{type:"error",result:v}}finally{y&&i.signal.removeEventListener("abort",y)}return h}async function Q0(a){var c,o,f,h;let{result:i,type:u}=a;if(Hy(i)){let y;try{let p=i.headers.get("Content-Type");p&&/\bapplication\/json\b/.test(p)?i.body==null?y=null:y=await i.json():y=await i.text()}catch(p){return{type:"error",error:p}}return u==="error"?{type:"error",error:new Uu(i.status,i.statusText,y),statusCode:i.status,headers:i.headers}:{type:"data",data:y,statusCode:i.status,headers:i.headers}}if(u==="error"){if(ay(i)){if(i.data instanceof Error)return{type:"error",error:i.data,statusCode:(c=i.init)==null?void 0:c.status};i=new Uu(((o=i.init)==null?void 0:o.status)||500,void 0,i.data)}return{type:"error",error:i,statusCode:Gu(i)?i.status:void 0}}return ay(i)?{type:"data",data:i.data,statusCode:(f=i.init)==null?void 0:f.status,headers:(h=i.init)!=null&&h.headers?new Headers(i.init.headers):void 0}:{type:"data",data:i}}function Z0(a,i,u,c,o){let f=a.headers.get("Location");if(He(f,"Redirects returned/thrown from loaders/actions must have a Location header"),!Bo.test(f)){let h=c.slice(0,c.findIndex(y=>y.route.id===u)+1);f=Ro(new URL(i.url),h,o,f),a.headers.set("Location",f)}return a}function Pm(a,i,u){if(Bo.test(a)){let c=a,o=c.startsWith("//")?new URL(i.protocol+c):new URL(c),f=fn(o.pathname,u)!=null;if(o.origin===i.origin&&f)return o.pathname+o.search+o.hash}return a}function ii(a,i,u,c){let o=a.createURL(Uy(i)).toString(),f={signal:u};if(c&&Bn(c.formMethod)){let{formMethod:h,formEncType:y}=c;f.method=h.toUpperCase(),y==="application/json"?(f.headers=new Headers({"Content-Type":y}),f.body=JSON.stringify(c.json)):y==="text/plain"?f.body=c.text:y==="application/x-www-form-urlencoded"&&c.formData?f.body=No(c.formData):f.body=c.formData}return new Request(o,f)}function No(a){let i=new URLSearchParams;for(let[u,c]of a.entries())i.append(u,typeof c=="string"?c:c.name);return i}function Wm(a){let i=new FormData;for(let[u,c]of a.entries())i.append(u,c);return i}function K0(a,i,u,c=!1,o=!1){let f={},h=null,y,p=!1,v={},b=u&&sn(u[1])?u[1].error:void 0;return a.forEach(C=>{if(!(C.route.id in i))return;let x=C.route.id,R=i[x];if(He(!Tl(R),"Cannot handle redirect results in processLoaderData"),sn(R)){let A=R.error;if(b!==void 0&&(A=b,b=void 0),h=h||{},o)h[x]=A;else{let H=xl(a,x);h[H.route.id]==null&&(h[H.route.id]=A)}c||(f[x]=zy),p||(p=!0,y=Gu(R.error)?R.error.status:500),R.headers&&(v[x]=R.headers)}else f[x]=R.data,R.statusCode&&R.statusCode!==200&&!p&&(y=R.statusCode),R.headers&&(v[x]=R.headers)}),b!==void 0&&u&&(h={[u[0]]:b},f[u[0]]=void 0),{loaderData:f,errors:h,statusCode:y||200,loaderHeaders:v}}function Im(a,i,u,c,o,f){let{loaderData:h,errors:y}=K0(i,u,c);return o.forEach(p=>{let{key:v,match:b,controller:C}=p,x=f[v];if(He(x,"Did not find corresponding fetcher result"),!(C&&C.signal.aborted))if(sn(x)){let R=xl(a.matches,b==null?void 0:b.route.id);y&&y[R.route.id]||(y={...y,[R.route.id]:x.error}),a.fetchers.delete(v)}else if(Tl(x))He(!1,"Unhandled fetcher revalidation redirect");else{let R=$a(x.data);a.fetchers.set(v,R)}}),{loaderData:h,errors:y}}function ey(a,i,u,c){let o=Object.entries(i).filter(([,f])=>f!==zy).reduce((f,[h,y])=>(f[h]=y,f),{});for(let f of u){let h=f.route.id;if(!i.hasOwnProperty(h)&&a.hasOwnProperty(h)&&f.route.loader&&(o[h]=a[h]),c&&c.hasOwnProperty(h))break}return o}function ty(a){return a?sn(a[1])?{actionData:{}}:{actionData:{[a[0]]:a[1].data}}:{}}function xl(a,i){return(i?a.slice(0,a.findIndex(c=>c.route.id===i)+1):[...a]).reverse().find(c=>c.route.hasErrorBoundary===!0)||a[0]}function ny(a){let i=a.length===1?a[0]:a.find(u=>u.index||!u.path||u.path==="/")||{id:"__shim-error-route__"};return{matches:[{params:{},pathname:"",pathnameBase:"",route:i}],route:i}}function jn(a,{pathname:i,routeId:u,method:c,type:o,message:f}={}){let h="Unknown Server Error",y="Unknown @remix-run/router error";return a===400?(h="Bad Request",c&&i&&u?y=`You made a ${c} request to "${i}" but did not provide a \`loader\` for route "${u}", so there is no way to handle the request.`:o==="invalid-body"&&(y="Unable to encode submission body")):a===403?(h="Forbidden",y=`Route "${u}" does not match URL "${i}"`):a===404?(h="Not Found",y=`No route matches URL "${i}"`):a===405&&(h="Method Not Allowed",c&&i&&u?y=`You made a ${c.toUpperCase()} request to "${i}" but did not provide an \`action\` for route "${u}", so there is no way to handle the request.`:c&&(y=`Invalid request method "${c.toUpperCase()}"`)),new Uu(a||500,h,new Error(y),!0)}function Nu(a){let i=Object.entries(a);for(let u=i.length-1;u>=0;u--){let[c,o]=i[u];if(Tl(o))return{key:c,result:o}}}function Uy(a){let i=typeof a=="string"?Ia(a):a;return Pa({...i,hash:""})}function $0(a,i){return a.pathname!==i.pathname||a.search!==i.search?!1:a.hash===""?i.hash!=="":a.hash===i.hash?!0:i.hash!==""}function J0(a){return Hy(a.result)&&M0.has(a.result.status)}function sn(a){return a.type==="error"}function Tl(a){return(a&&a.type)==="redirect"}function ay(a){return typeof a=="object"&&a!=null&&"type"in a&&"data"in a&&"init"in a&&a.type==="DataWithResponseInit"}function Hy(a){return a!=null&&typeof a.status=="number"&&typeof a.statusText=="string"&&typeof a.headers=="object"&&typeof a.body<"u"}function F0(a){return w0.has(a.toUpperCase())}function Bn(a){return D0.has(a.toUpperCase())}function qo(a){return new URLSearchParams(a).getAll("index").some(i=>i==="")}function dr(a,i){let u=typeof i=="string"?Ia(i).search:i.search;if(a[a.length-1].route.index&&qo(u||""))return a[a.length-1];let c=Ay(a);return c[c.length-1]}function ly(a){let{formMethod:i,formAction:u,formEncType:c,text:o,formData:f,json:h}=a;if(!(!i||!u||!c)){if(o!=null)return{formMethod:i,formAction:u,formEncType:c,formData:void 0,json:void 0,text:o};if(f!=null)return{formMethod:i,formAction:u,formEncType:c,formData:f,json:void 0,text:void 0};if(h!==void 0)return{formMethod:i,formAction:u,formEncType:c,formData:void 0,json:h,text:void 0}}}function co(a,i){return i?{state:"loading",location:a,formMethod:i.formMethod,formAction:i.formAction,formEncType:i.formEncType,formData:i.formData,json:i.json,text:i.text}:{state:"loading",location:a,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0}}function P0(a,i){return{state:"submitting",location:a,formMethod:i.formMethod,formAction:i.formAction,formEncType:i.formEncType,formData:i.formData,json:i.json,text:i.text}}function cr(a,i){return a?{state:"loading",formMethod:a.formMethod,formAction:a.formAction,formEncType:a.formEncType,formData:a.formData,json:a.json,text:a.text,data:i}:{state:"loading",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:i}}function W0(a,i){return{state:"submitting",formMethod:a.formMethod,formAction:a.formAction,formEncType:a.formEncType,formData:a.formData,json:a.json,text:a.text,data:i?i.data:void 0}}function $a(a){return{state:"idle",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:a}}function I0(a,i){try{let u=a.sessionStorage.getItem(My);if(u){let c=JSON.parse(u);for(let[o,f]of Object.entries(c||{}))f&&Array.isArray(f)&&i.set(o,new Set(f||[]))}}catch{}}function e1(a,i){if(i.size>0){let u={};for(let[c,o]of i)u[c]=[...o];try{a.sessionStorage.setItem(My,JSON.stringify(u))}catch(c){At(!1,`Failed to save applied view transitions in sessionStorage (${c}).`)}}}function t1(){let a,i,u=new Promise((c,o)=>{a=async f=>{c(f);try{await u}catch{}},i=async f=>{o(f);try{await u}catch{}}});return{promise:u,resolve:a,reject:i}}var Cl=g.createContext(null);Cl.displayName="DataRouter";var pr=g.createContext(null);pr.displayName="DataRouterState";var ko=g.createContext({isTransitioning:!1});ko.displayName="ViewTransition";var By=g.createContext(new Map);By.displayName="Fetchers";var n1=g.createContext(null);n1.displayName="Await";var Fn=g.createContext(null);Fn.displayName="Navigation";var Xu=g.createContext(null);Xu.displayName="Location";var kn=g.createContext({outlet:null,matches:[],isDataRoute:!1});kn.displayName="Route";var Vo=g.createContext(null);Vo.displayName="RouteError";function a1(a,{relative:i}={}){He(vr(),"useHref() may be used only in the context of a <Router> component.");let{basename:u,navigator:c}=g.useContext(Fn),{hash:o,pathname:f,search:h}=gr(a,{relative:i}),y=f;return u!=="/"&&(y=f==="/"?u:Jn([u,f])),c.createHref({pathname:y,search:h,hash:o})}function vr(){return g.useContext(Xu)!=null}function Pn(){return He(vr(),"useLocation() may be used only in the context of a <Router> component."),g.useContext(Xu).location}var qy="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function ky(a){g.useContext(Fn).static||g.useLayoutEffect(a)}function Vy(){let{isDataRoute:a}=g.useContext(kn);return a?v1():l1()}function l1(){He(vr(),"useNavigate() may be used only in the context of a <Router> component.");let a=g.useContext(Cl),{basename:i,navigator:u}=g.useContext(Fn),{matches:c}=g.useContext(kn),{pathname:o}=Pn(),f=JSON.stringify(Uo(c)),h=g.useRef(!1);return ky(()=>{h.current=!0}),g.useCallback((p,v={})=>{if(At(h.current,qy),!h.current)return;if(typeof p=="number"){u.go(p);return}let b=Ho(p,JSON.parse(f),o,v.relative==="path");a==null&&i!=="/"&&(b.pathname=b.pathname==="/"?i:Jn([i,b.pathname])),(v.replace?u.replace:u.push)(b,v.state,v)},[i,u,f,o,a])}var i1=g.createContext(null);function r1(a){let i=g.useContext(kn).outlet;return i&&g.createElement(i1.Provider,{value:a},i)}function Dx(){let{matches:a}=g.useContext(kn),i=a[a.length-1];return i?i.params:{}}function gr(a,{relative:i}={}){let{matches:u}=g.useContext(kn),{pathname:c}=Pn(),o=JSON.stringify(Uo(u));return g.useMemo(()=>Ho(a,JSON.parse(o),c,i==="path"),[a,o,c,i])}function u1(a,i,u,c){He(vr(),"useRoutes() may be used only in the context of a <Router> component.");let{navigator:o}=g.useContext(Fn),{matches:f}=g.useContext(kn),h=f[f.length-1],y=h?h.params:{},p=h?h.pathname:"/",v=h?h.pathnameBase:"/",b=h&&h.route;{let z=b&&b.path||"";Xy(p,!b||z.endsWith("*")||z.endsWith("*?"),`You rendered descendant <Routes> (or called \`useRoutes()\`) at "${p}" (under <Route path="${z}">) but the parent route path has no trailing "*". This means if you navigate deeper, the parent won't match anymore and therefore the child routes will never render. + */var Xm="popstate";function u0(a={}){function i(c,o){let{pathname:f,search:m,hash:y}=c.location;return mr("",{pathname:f,search:m,hash:y},o.state&&o.state.usr||null,o.state&&o.state.key||"default")}function u(c,o){return typeof o=="string"?o:Ja(o)}return s0(i,u,null,a)}function ze(a,i){if(a===!1||a===null||typeof a>"u")throw new Error(i)}function Ot(a,i){if(!a){typeof console<"u"&&console.warn(i);try{throw new Error(i)}catch{}}}function c0(){return Math.random().toString(36).substring(2,10)}function Qm(a,i){return{usr:a.state,key:a.key,idx:i}}function mr(a,i,u=null,c){return{pathname:typeof a=="string"?a:a.pathname,search:"",hash:"",...typeof i=="string"?Pa(i):i,state:u,key:i&&i.key||c||c0()}}function Ja({pathname:a="/",search:i="",hash:u=""}){return i&&i!=="?"&&(a+=i.charAt(0)==="?"?i:"?"+i),u&&u!=="#"&&(a+=u.charAt(0)==="#"?u:"#"+u),a}function Pa(a){let i={};if(a){let u=a.indexOf("#");u>=0&&(i.hash=a.substring(u),a=a.substring(0,u));let c=a.indexOf("?");c>=0&&(i.search=a.substring(c),a=a.substring(0,c)),a&&(i.pathname=a)}return i}function s0(a,i,u,c={}){let{window:o=document.defaultView,v5Compat:f=!1}=c,m=o.history,y="POP",v=null,p=b();p==null&&(p=0,m.replaceState({...m.state,idx:p},""));function b(){return(m.state||{idx:null}).idx}function T(){y="POP";let B=b(),U=B==null?null:B-p;p=B,v&&v({action:y,location:k.location,delta:U})}function x(B,U){y="PUSH";let Y=mr(k.location,B,U);p=b()+1;let $=Qm(Y,p),ee=k.createHref(Y);try{m.pushState($,"",ee)}catch(J){if(J instanceof DOMException&&J.name==="DataCloneError")throw J;o.location.assign(ee)}f&&v&&v({action:y,location:k.location,delta:1})}function R(B,U){y="REPLACE";let Y=mr(k.location,B,U);p=b();let $=Qm(Y,p),ee=k.createHref(Y);m.replaceState($,"",ee),f&&v&&v({action:y,location:k.location,delta:0})}function w(B){let U=o.location.origin!=="null"?o.location.origin:o.location.href,Y=typeof B=="string"?B:Ja(B);return Y=Y.replace(/ $/,"%20"),ze(U,`No window.location.(origin|href) available to create URL for href: ${Y}`),new URL(Y,U)}let k={get action(){return y},get location(){return a(o,m)},listen(B){if(v)throw new Error("A history only accepts one active listener");return o.addEventListener(Xm,T),v=B,()=>{o.removeEventListener(Xm,T),v=null}},createHref(B){return i(o,B)},createURL:w,encodeLocation(B){let U=w(B);return{pathname:U.pathname,search:U.search,hash:U.hash}},push:x,replace:R,go(B){return m.go(B)}};return k}var o0=new Set(["lazy","caseSensitive","path","id","index","children"]);function f0(a){return a.index===!0}function Uu(a,i,u=[],c={}){return a.map((o,f)=>{let m=[...u,String(f)],y=typeof o.id=="string"?o.id:m.join("-");if(ze(o.index!==!0||!o.children,"Cannot specify children on an index route"),ze(!c[y],`Found a route id collision on id "${y}". Route id's must be globally unique within Data Router usages`),f0(o)){let v={...o,...i(o),id:y};return c[y]=v,v}else{let v={...o,...i(o),id:y,children:void 0};return c[y]=v,o.children&&(v.children=Uu(o.children,i,m,c)),v}})}function $a(a,i,u="/"){return Mu(a,i,u,!1)}function Mu(a,i,u,c){let o=typeof i=="string"?Pa(i):i,f=on(o.pathname||"/",u);if(f==null)return null;let m=Dy(a);h0(m);let y=null;for(let v=0;y==null&&v<m.length;++v){let p=R0(f);y=x0(m[v],p,c)}return y}function d0(a,i){let{route:u,pathname:c,params:o}=a;return{id:u.id,pathname:c,params:o,data:i[u.id],handle:u.handle}}function Dy(a,i=[],u=[],c=""){let o=(f,m,y)=>{let v={relativePath:y===void 0?f.path||"":y,caseSensitive:f.caseSensitive===!0,childrenIndex:m,route:f};v.relativePath.startsWith("/")&&(ze(v.relativePath.startsWith(c),`Absolute route path "${v.relativePath}" nested under path "${c}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),v.relativePath=v.relativePath.slice(c.length));let p=Kn([c,v.relativePath]),b=u.concat(v);f.children&&f.children.length>0&&(ze(f.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${p}".`),Dy(f.children,i,b,p)),!(f.path==null&&!f.index)&&i.push({path:p,score:b0(p,f.index),routesMeta:b})};return a.forEach((f,m)=>{var y;if(f.path===""||!((y=f.path)!=null&&y.includes("?")))o(f,m);else for(let v of Ay(f.path))o(f,m,v)}),i}function Ay(a){let i=a.split("/");if(i.length===0)return[];let[u,...c]=i,o=u.endsWith("?"),f=u.replace(/\?$/,"");if(c.length===0)return o?[f,""]:[f];let m=Ay(c.join("/")),y=[];return y.push(...m.map(v=>v===""?f:[f,v].join("/"))),o&&y.push(...m),y.map(v=>a.startsWith("/")&&v===""?"/":v)}function h0(a){a.sort((i,u)=>i.score!==u.score?u.score-i.score:S0(i.routesMeta.map(c=>c.childrenIndex),u.routesMeta.map(c=>c.childrenIndex)))}var m0=/^:[\w-]+$/,y0=3,p0=2,v0=1,g0=10,E0=-2,Zm=a=>a==="*";function b0(a,i){let u=a.split("/"),c=u.length;return u.some(Zm)&&(c+=E0),i&&(c+=p0),u.filter(o=>!Zm(o)).reduce((o,f)=>o+(m0.test(f)?y0:f===""?v0:g0),c)}function S0(a,i){return a.length===i.length&&a.slice(0,-1).every((c,o)=>c===i[o])?a[a.length-1]-i[i.length-1]:0}function x0(a,i,u=!1){let{routesMeta:c}=a,o={},f="/",m=[];for(let y=0;y<c.length;++y){let v=c[y],p=y===c.length-1,b=f==="/"?i:i.slice(f.length)||"/",T=Hu({path:v.relativePath,caseSensitive:v.caseSensitive,end:p},b),x=v.route;if(!T&&p&&u&&!c[c.length-1].route.index&&(T=Hu({path:v.relativePath,caseSensitive:v.caseSensitive,end:!1},b)),!T)return null;Object.assign(o,T.params),m.push({params:o,pathname:Kn([f,T.pathname]),pathnameBase:C0(Kn([f,T.pathnameBase])),route:x}),T.pathnameBase!=="/"&&(f=Kn([f,T.pathnameBase]))}return m}function Hu(a,i){typeof a=="string"&&(a={path:a,caseSensitive:!1,end:!0});let[u,c]=_0(a.path,a.caseSensitive,a.end),o=i.match(u);if(!o)return null;let f=o[0],m=f.replace(/(.)\/+$/,"$1"),y=o.slice(1);return{params:c.reduce((p,{paramName:b,isOptional:T},x)=>{if(b==="*"){let w=y[x]||"";m=f.slice(0,f.length-w.length).replace(/(.)\/+$/,"$1")}const R=y[x];return T&&!R?p[b]=void 0:p[b]=(R||"").replace(/%2F/g,"/"),p},{}),pathname:f,pathnameBase:m,pattern:a}}function _0(a,i=!1,u=!0){Ot(a==="*"||!a.endsWith("*")||a.endsWith("/*"),`Route path "${a}" will be treated as if it were "${a.replace(/\*$/,"/*")}" because the \`*\` character must always follow a \`/\` in the pattern. To get rid of this warning, please change the route path to "${a.replace(/\*$/,"/*")}".`);let c=[],o="^"+a.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(m,y,v)=>(c.push({paramName:y,isOptional:v!=null}),v?"/?([^\\/]+)?":"/([^\\/]+)"));return a.endsWith("*")?(c.push({paramName:"*"}),o+=a==="*"||a==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):u?o+="\\/*$":a!==""&&a!=="/"&&(o+="(?:(?=\\/|$))"),[new RegExp(o,i?void 0:"i"),c]}function R0(a){try{return a.split("/").map(i=>decodeURIComponent(i).replace(/\//g,"%2F")).join("/")}catch(i){return Ot(!1,`The URL path "${a}" could not be decoded because it is a malformed URL segment. This is probably due to a bad percent encoding (${i}).`),a}}function on(a,i){if(i==="/")return a;if(!a.toLowerCase().startsWith(i.toLowerCase()))return null;let u=i.endsWith("/")?i.length-1:i.length,c=a.charAt(u);return c&&c!=="/"?null:a.slice(u)||"/"}function T0(a,i="/"){let{pathname:u,search:c="",hash:o=""}=typeof a=="string"?Pa(a):a;return{pathname:u?u.startsWith("/")?u:N0(u,i):i,search:j0(c),hash:O0(o)}}function N0(a,i){let u=i.replace(/\/+$/,"").split("/");return a.split("/").forEach(o=>{o===".."?u.length>1&&u.pop():o!=="."&&u.push(o)}),u.length>1?u.join("/"):"/"}function uo(a,i,u,c){return`Cannot include a '${a}' character in a manually specified \`to.${i}\` field [${JSON.stringify(c)}]. Please separate it out to the \`to.${u}\` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.`}function wy(a){return a.filter((i,u)=>u===0||i.route.path&&i.route.path.length>0)}function Ho(a){let i=wy(a);return i.map((u,c)=>c===i.length-1?u.pathname:u.pathnameBase)}function Bo(a,i,u,c=!1){let o;typeof a=="string"?o=Pa(a):(o={...a},ze(!o.pathname||!o.pathname.includes("?"),uo("?","pathname","search",o)),ze(!o.pathname||!o.pathname.includes("#"),uo("#","pathname","hash",o)),ze(!o.search||!o.search.includes("#"),uo("#","search","hash",o)));let f=a===""||o.pathname==="",m=f?"/":o.pathname,y;if(m==null)y=u;else{let T=i.length-1;if(!c&&m.startsWith("..")){let x=m.split("/");for(;x[0]==="..";)x.shift(),T-=1;o.pathname=x.join("/")}y=T>=0?i[T]:"/"}let v=T0(o,y),p=m&&m!=="/"&&m.endsWith("/"),b=(f||m===".")&&u.endsWith("/");return!v.pathname.endsWith("/")&&(p||b)&&(v.pathname+="/"),v}var Kn=a=>a.join("/").replace(/\/\/+/g,"/"),C0=a=>a.replace(/\/+$/,"").replace(/^\/*/,"/"),j0=a=>!a||a==="?"?"":a.startsWith("?")?a:"?"+a,O0=a=>!a||a==="#"?"":a.startsWith("#")?a:"#"+a,Bu=class{constructor(a,i,u,c=!1){this.status=a,this.statusText=i||"",this.internal=c,u instanceof Error?(this.data=u.toString(),this.error=u):this.data=u}};function yr(a){return a!=null&&typeof a.status=="number"&&typeof a.statusText=="string"&&typeof a.internal=="boolean"&&"data"in a}var My=["POST","PUT","PATCH","DELETE"],D0=new Set(My),A0=["GET",...My],w0=new Set(A0),M0=new Set([301,302,303,307,308]),z0=new Set([307,308]),co={state:"idle",location:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},L0={state:"idle",data:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},oi={state:"unblocked",proceed:void 0,reset:void 0,location:void 0},qo=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,U0=a=>({hasErrorBoundary:!!a.hasErrorBoundary}),zy="remix-router-transitions",Ly=Symbol("ResetLoaderData");function H0(a){const i=a.window?a.window:typeof window<"u"?window:void 0,u=typeof i<"u"&&typeof i.document<"u"&&typeof i.document.createElement<"u";ze(a.routes.length>0,"You must provide a non-empty routes array to createRouter");let c=a.mapRouteProperties||U0,o={},f=Uu(a.routes,c,void 0,o),m,y=a.basename||"/",v=a.dataStrategy||Y0,p=a.patchRoutesOnNavigation,b={...a.future},T=null,x=new Set,R=null,w=null,k=null,B=a.hydrationData!=null,U=$a(f,a.history.location,y),Y=!1,$=null;if(U==null&&!p){let N=Dn(404,{pathname:a.history.location.pathname}),{matches:A,route:L}=ay(f);U=A,$={[L.id]:N}}U&&!a.hydrationData&&Ft(U,f,a.history.location.pathname).active&&(U=null);let ee;if(U)if(U.some(N=>N.route.lazy))ee=!1;else if(!U.some(N=>N.route.loader))ee=!0;else{let N=a.hydrationData?a.hydrationData.loaderData:null,A=a.hydrationData?a.hydrationData.errors:null;if(A){let L=U.findIndex(K=>A[K.route.id]!==void 0);ee=U.slice(0,L+1).every(K=>!No(K.route,N,A))}else ee=U.every(L=>!No(L.route,N,A))}else{ee=!1,U=[];let N=Ft(null,f,a.history.location.pathname);N.active&&N.matches&&(Y=!0,U=N.matches)}let J,O={historyAction:a.history.action,location:a.history.location,matches:U,initialized:ee,navigation:co,restoreScrollPosition:a.hydrationData!=null?!1:null,preventScrollReset:!1,revalidation:"idle",loaderData:a.hydrationData&&a.hydrationData.loaderData||{},actionData:a.hydrationData&&a.hydrationData.actionData||null,errors:a.hydrationData&&a.hydrationData.errors||$,fetchers:new Map,blockers:new Map},ue="POP",be=!1,Z,ie=!1,je=new Map,Ie=null,et=!1,Qe=!1,Ye=new Set,X=new Map,oe=0,I=-1,Re=new Map,_=new Set,V=new Map,ne=new Map,W=new Set,F=new Map,ge,he=null;function Ze(){if(T=a.history.listen(({action:N,location:A,delta:L})=>{if(ge){ge(),ge=void 0;return}Ot(F.size===0||L!=null,"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 K=Wn({currentLocation:O.location,nextLocation:A,historyAction:N});if(K&&L!=null){let te=new Promise(de=>{ge=de});a.history.go(L*-1),lt(K,{state:"blocked",location:A,proceed(){lt(K,{state:"proceeding",proceed:void 0,reset:void 0,location:A}),te.then(()=>a.history.go(L))},reset(){let de=new Map(O.blockers);de.set(K,oi),pe({blockers:de})}});return}return nt(N,A)}),u){I0(i,je);let N=()=>e1(i,je);i.addEventListener("pagehide",N),Ie=()=>i.removeEventListener("pagehide",N)}return O.initialized||nt("POP",O.location,{initialHydration:!0}),J}function Te(){T&&T(),Ie&&Ie(),x.clear(),Z&&Z.abort(),O.fetchers.forEach((N,A)=>qn(A)),O.blockers.forEach((N,A)=>Bt(A))}function He(N){return x.add(N),()=>x.delete(N)}function pe(N,A={}){O={...O,...N};let L=[],K=[];O.fetchers.forEach((te,de)=>{te.state==="idle"&&(W.has(de)?L.push(de):K.push(de))}),W.forEach(te=>{!O.fetchers.has(te)&&!X.has(te)&&L.push(te)}),[...x].forEach(te=>te(O,{deletedFetchers:L,viewTransitionOpts:A.viewTransitionOpts,flushSync:A.flushSync===!0})),L.forEach(te=>qn(te)),K.forEach(te=>O.fetchers.delete(te))}function Ke(N,A,{flushSync:L}={}){var P,se;let K=O.actionData!=null&&O.navigation.formMethod!=null&&Un(O.navigation.formMethod)&&O.navigation.state==="loading"&&((P=N.state)==null?void 0:P._isRedirect)!==!0,te;A.actionData?Object.keys(A.actionData).length>0?te=A.actionData:te=null:K?te=O.actionData:te=null;let de=A.loaderData?ty(O.loaderData,A.loaderData,A.matches||[],A.errors):O.loaderData,Se=O.blockers;Se.size>0&&(Se=new Map(Se),Se.forEach((ye,ke)=>Se.set(ke,oi)));let le=be===!0||O.navigation.formMethod!=null&&Un(O.navigation.formMethod)&&((se=N.state)==null?void 0:se._isRedirect)!==!0;m&&(f=m,m=void 0),et||ue==="POP"||(ue==="PUSH"?a.history.push(N,N.state):ue==="REPLACE"&&a.history.replace(N,N.state));let ce;if(ue==="POP"){let ye=je.get(O.location.pathname);ye&&ye.has(N.pathname)?ce={currentLocation:O.location,nextLocation:N}:je.has(N.pathname)&&(ce={currentLocation:N,nextLocation:O.location})}else if(ie){let ye=je.get(O.location.pathname);ye?ye.add(N.pathname):(ye=new Set([N.pathname]),je.set(O.location.pathname,ye)),ce={currentLocation:O.location,nextLocation:N}}pe({...A,actionData:te,loaderData:de,historyAction:ue,location:N,initialized:!0,navigation:co,revalidation:"idle",restoreScrollPosition:Xt(N,A.matches||O.matches),preventScrollReset:le,blockers:Se},{viewTransitionOpts:ce,flushSync:L===!0}),ue="POP",be=!1,ie=!1,et=!1,Qe=!1,he==null||he.resolve(),he=null}async function Et(N,A){if(typeof N=="number"){a.history.go(N);return}let L=To(O.location,O.matches,y,N,A==null?void 0:A.fromRouteId,A==null?void 0:A.relative),{path:K,submission:te,error:de}=Km(!1,L,A),Se=O.location,le=mr(O.location,K,A&&A.state);le={...le,...a.history.encodeLocation(le)};let ce=A&&A.replace!=null?A.replace:void 0,P="PUSH";ce===!0?P="REPLACE":ce===!1||te!=null&&Un(te.formMethod)&&te.formAction===O.location.pathname+O.location.search&&(P="REPLACE");let se=A&&"preventScrollReset"in A?A.preventScrollReset===!0:void 0,ye=(A&&A.flushSync)===!0,ke=Wn({currentLocation:Se,nextLocation:le,historyAction:P});if(ke){lt(ke,{state:"blocked",location:le,proceed(){lt(ke,{state:"proceeding",proceed:void 0,reset:void 0,location:le}),Et(N,A)},reset(){let vt=new Map(O.blockers);vt.set(ke,oi),pe({blockers:vt})}});return}await nt(P,le,{submission:te,pendingError:de,preventScrollReset:se,replace:A&&A.replace,enableViewTransition:A&&A.viewTransition,flushSync:ye})}function mt(){he||(he=t1()),mn(),pe({revalidation:"loading"});let N=he.promise;return O.navigation.state==="submitting"?N:O.navigation.state==="idle"?(nt(O.historyAction,O.location,{startUninterruptedRevalidation:!0}),N):(nt(ue||O.historyAction,O.navigation.location,{overrideNavigation:O.navigation,enableViewTransition:ie===!0}),N)}async function nt(N,A,L){Z&&Z.abort(),Z=null,ue=N,et=(L&&L.startUninterruptedRevalidation)===!0,An(O.location,O.matches),be=(L&&L.preventScrollReset)===!0,ie=(L&&L.enableViewTransition)===!0;let K=m||f,te=L&&L.overrideNavigation,de=L!=null&&L.initialHydration&&O.matches&&O.matches.length>0&&!Y?O.matches:$a(K,A,y),Se=(L&&L.flushSync)===!0;if(de&&O.initialized&&!Qe&&$0(O.location,A)&&!(L&&L.submission&&Un(L.submission.formMethod))){Ke(A,{matches:de},{flushSync:Se});return}let le=Ft(de,K,A.pathname);if(le.active&&le.matches&&(de=le.matches),!de){let{error:tt,notFoundMatches:$e,route:ot}=kn(A.pathname);Ke(A,{matches:$e,loaderData:{},errors:{[ot.id]:tt}},{flushSync:Se});return}Z=new AbortController;let ce=ri(a.history,A,Z.signal,L&&L.submission),P;if(L&&L.pendingError)P=[xl(de).route.id,{type:"error",error:L.pendingError}];else if(L&&L.submission&&Un(L.submission.formMethod)){let tt=await we(ce,A,L.submission,de,le.active,{replace:L.replace,flushSync:Se});if(tt.shortCircuited)return;if(tt.pendingActionResult){let[$e,ot]=tt.pendingActionResult;if(cn(ot)&&yr(ot.error)&&ot.error.status===404){Z=null,Ke(A,{matches:tt.matches,loaderData:{},errors:{[$e]:ot.error}});return}}de=tt.matches||de,P=tt.pendingActionResult,te=so(A,L.submission),Se=!1,le.active=!1,ce=ri(a.history,ce.url,ce.signal)}let{shortCircuited:se,matches:ye,loaderData:ke,errors:vt}=await Tt(ce,A,de,le.active,te,L&&L.submission,L&&L.fetcherSubmission,L&&L.replace,L&&L.initialHydration===!0,Se,P);se||(Z=null,Ke(A,{matches:ye||de,...ny(P),loaderData:ke,errors:vt}))}async function we(N,A,L,K,te,de={}){mn();let Se=P0(A,L);if(pe({navigation:Se},{flushSync:de.flushSync===!0}),te){let P=await Qt(K,A.pathname,N.signal);if(P.type==="aborted")return{shortCircuited:!0};if(P.type==="error"){let se=xl(P.partialMatches).route.id;return{matches:P.partialMatches,pendingActionResult:[se,{type:"error",error:P.error}]}}else if(P.matches)K=P.matches;else{let{notFoundMatches:se,error:ye,route:ke}=kn(A.pathname);return{matches:se,pendingActionResult:[ke.id,{type:"error",error:ye}]}}}let le,ce=dr(K,A);if(!ce.route.action&&!ce.route.lazy)le={type:"error",error:Dn(405,{method:N.method,pathname:A.pathname,routeId:ce.route.id})};else if(le=(await Jt("action",O,N,[ce],K,null))[ce.route.id],N.signal.aborted)return{shortCircuited:!0};if(Tl(le)){let P;return de&&de.replace!=null?P=de.replace:P=Wm(le.response.headers.get("Location"),new URL(N.url),y)===O.location.pathname+O.location.search,await Ht(N,le,!0,{submission:L,replace:P}),{shortCircuited:!0}}if(cn(le)){let P=xl(K,ce.route.id);return(de&&de.replace)!==!0&&(ue="PUSH"),{matches:K,pendingActionResult:[P.route.id,le]}}return{matches:K,pendingActionResult:[ce.route.id,le]}}async function Tt(N,A,L,K,te,de,Se,le,ce,P,se){let ye=te||so(A,de),ke=de||Se||iy(ye),vt=!et&&!ce;if(K){if(vt){let it=Dt(se);pe({navigation:ye,...it!==void 0?{actionData:it}:{}},{flushSync:P})}let Le=await Qt(L,A.pathname,N.signal);if(Le.type==="aborted")return{shortCircuited:!0};if(Le.type==="error"){let it=xl(Le.partialMatches).route.id;return{matches:Le.partialMatches,loaderData:{},errors:{[it]:Le.error}}}else if(Le.matches)L=Le.matches;else{let{error:it,notFoundMatches:Pt,route:el}=kn(A.pathname);return{matches:Pt,loaderData:{},errors:{[el.id]:it}}}}let tt=m||f,[$e,ot]=Jm(a.history,O,L,ke,A,ce===!0,Qe,Ye,W,V,_,tt,y,se);if(I=++oe,$e.length===0&&ot.length===0){let Le=tn();return Ke(A,{matches:L,loaderData:{},errors:se&&cn(se[1])?{[se[0]]:se[1].error}:null,...ny(se),...Le?{fetchers:new Map(O.fetchers)}:{}},{flushSync:P}),{shortCircuited:!0}}if(vt){let Le={};if(!K){Le.navigation=ye;let it=Dt(se);it!==void 0&&(Le.actionData=it)}ot.length>0&&(Le.fetchers=en(ot)),pe(Le,{flushSync:P})}ot.forEach(Le=>{Gt(Le.key),Le.controller&&X.set(Le.key,Le.controller)});let pn=()=>ot.forEach(Le=>Gt(Le.key));Z&&Z.signal.addEventListener("abort",pn);let{loaderResults:In,fetcherResults:At}=await yt(O,L,$e,ot,N);if(N.signal.aborted)return{shortCircuited:!0};Z&&Z.signal.removeEventListener("abort",pn),ot.forEach(Le=>X.delete(Le.key));let wt=ju(In);if(wt)return await Ht(N,wt.result,!0,{replace:le}),{shortCircuited:!0};if(wt=ju(At),wt)return _.add(wt.key),await Ht(N,wt.result,!0,{replace:le}),{shortCircuited:!0};let{loaderData:ea,errors:vn}=ey(O,L,In,se,ot,At);ce&&O.errors&&(vn={...O.errors,...vn});let Fe=tn(),Wa=pt(I),Ia=Fe||Wa||ot.length>0;return{matches:L,loaderData:ea,errors:vn,...Ia?{fetchers:new Map(O.fetchers)}:{}}}function Dt(N){if(N&&!cn(N[1]))return{[N[0]]:N[1].data};if(O.actionData)return Object.keys(O.actionData).length===0?null:O.actionData}function en(N){return N.forEach(A=>{let L=O.fetchers.get(A.key),K=cr(void 0,L?L.data:void 0);O.fetchers.set(A.key,K)}),new Map(O.fetchers)}async function fn(N,A,L,K){Gt(N);let te=(K&&K.flushSync)===!0,de=m||f,Se=To(O.location,O.matches,y,L,A,K==null?void 0:K.relative),le=$a(de,Se,y),ce=Ft(le,de,Se);if(ce.active&&ce.matches&&(le=ce.matches),!le){at(N,A,Dn(404,{pathname:Se}),{flushSync:te});return}let{path:P,submission:se,error:ye}=Km(!0,Se,K);if(ye){at(N,A,ye,{flushSync:te});return}let ke=dr(le,P),vt=(K&&K.preventScrollReset)===!0;if(se&&Un(se.formMethod)){await dn(N,A,P,ke,le,ce.active,te,vt,se);return}V.set(N,{routeId:A,path:P}),await hn(N,A,P,ke,le,ce.active,te,vt,se)}async function dn(N,A,L,K,te,de,Se,le,ce){mn(),V.delete(N);function P(rt){if(!rt.route.action&&!rt.route.lazy){let ta=Dn(405,{method:ce.formMethod,pathname:L,routeId:A});return at(N,A,ta,{flushSync:Se}),!0}return!1}if(!de&&P(K))return;let se=O.fetchers.get(N);xe(N,W0(ce,se),{flushSync:Se});let ye=new AbortController,ke=ri(a.history,L,ye.signal,ce);if(de){let rt=await Qt(te,L,ke.signal);if(rt.type==="aborted")return;if(rt.type==="error"){at(N,A,rt.error,{flushSync:Se});return}else if(rt.matches){if(te=rt.matches,K=dr(te,L),P(K))return}else{at(N,A,Dn(404,{pathname:L}),{flushSync:Se});return}}X.set(N,ye);let vt=oe,$e=(await Jt("action",O,ke,[K],te,N))[K.route.id];if(ke.signal.aborted){X.get(N)===ye&&X.delete(N);return}if(W.has(N)){if(Tl($e)||cn($e)){xe(N,Za(void 0));return}}else{if(Tl($e))if(X.delete(N),I>vt){xe(N,Za(void 0));return}else return _.add(N),xe(N,cr(ce)),Ht(ke,$e,!1,{fetcherSubmission:ce,preventScrollReset:le});if(cn($e)){at(N,A,$e.error);return}}let ot=O.navigation.location||O.location,pn=ri(a.history,ot,ye.signal),In=m||f,At=O.navigation.state!=="idle"?$a(In,O.navigation.location,y):O.matches;ze(At,"Didn't find any matches after fetcher action");let wt=++oe;Re.set(N,wt);let ea=cr(ce,$e.data);O.fetchers.set(N,ea);let[vn,Fe]=Jm(a.history,O,At,ce,ot,!1,Qe,Ye,W,V,_,In,y,[K.route.id,$e]);Fe.filter(rt=>rt.key!==N).forEach(rt=>{let ta=rt.key,Sr=O.fetchers.get(ta),jl=cr(void 0,Sr?Sr.data:void 0);O.fetchers.set(ta,jl),Gt(ta),rt.controller&&X.set(ta,rt.controller)}),pe({fetchers:new Map(O.fetchers)});let Wa=()=>Fe.forEach(rt=>Gt(rt.key));ye.signal.addEventListener("abort",Wa);let{loaderResults:Ia,fetcherResults:Le}=await yt(O,At,vn,Fe,pn);if(ye.signal.aborted)return;ye.signal.removeEventListener("abort",Wa),Re.delete(N),X.delete(N),Fe.forEach(rt=>X.delete(rt.key));let it=ju(Ia);if(it)return Ht(pn,it.result,!1,{preventScrollReset:le});if(it=ju(Le),it)return _.add(it.key),Ht(pn,it.result,!1,{preventScrollReset:le});let{loaderData:Pt,errors:el}=ey(O,At,Ia,void 0,Fe,Le);if(O.fetchers.has(N)){let rt=Za($e.data);O.fetchers.set(N,rt)}pt(wt),O.navigation.state==="loading"&&wt>I?(ze(ue,"Expected pending action"),Z&&Z.abort(),Ke(O.navigation.location,{matches:At,loaderData:Pt,errors:el,fetchers:new Map(O.fetchers)})):(pe({errors:el,loaderData:ty(O.loaderData,Pt,At,el),fetchers:new Map(O.fetchers)}),Qe=!1)}async function hn(N,A,L,K,te,de,Se,le,ce){let P=O.fetchers.get(N);xe(N,cr(ce,P?P.data:void 0),{flushSync:Se});let se=new AbortController,ye=ri(a.history,L,se.signal);if(de){let $e=await Qt(te,L,ye.signal);if($e.type==="aborted")return;if($e.type==="error"){at(N,A,$e.error,{flushSync:Se});return}else if($e.matches)te=$e.matches,K=dr(te,L);else{at(N,A,Dn(404,{pathname:L}),{flushSync:Se});return}}X.set(N,se);let ke=oe,tt=(await Jt("loader",O,ye,[K],te,N))[K.route.id];if(X.get(N)===se&&X.delete(N),!ye.signal.aborted){if(W.has(N)){xe(N,Za(void 0));return}if(Tl(tt))if(I>ke){xe(N,Za(void 0));return}else{_.add(N),await Ht(ye,tt,!1,{preventScrollReset:le});return}if(cn(tt)){at(N,A,tt.error);return}xe(N,Za(tt.data))}}async function Ht(N,A,L,{submission:K,fetcherSubmission:te,preventScrollReset:de,replace:Se}={}){A.response.headers.has("X-Remix-Revalidate")&&(Qe=!0);let le=A.response.headers.get("Location");ze(le,"Expected a Location header on the redirect Response"),le=Wm(le,new URL(N.url),y);let ce=mr(O.location,le,{_isRedirect:!0});if(u){let tt=!1;if(A.response.headers.has("X-Remix-Reload-Document"))tt=!0;else if(qo.test(le)){const $e=a.history.createURL(le);tt=$e.origin!==i.location.origin||on($e.pathname,y)==null}if(tt){Se?i.location.replace(le):i.location.assign(le);return}}Z=null;let P=Se===!0||A.response.headers.has("X-Remix-Replace")?"REPLACE":"PUSH",{formMethod:se,formAction:ye,formEncType:ke}=O.navigation;!K&&!te&&se&&ye&&ke&&(K=iy(O.navigation));let vt=K||te;if(z0.has(A.response.status)&&vt&&Un(vt.formMethod))await nt(P,ce,{submission:{...vt,formAction:le},preventScrollReset:de||be,enableViewTransition:L?ie:void 0});else{let tt=so(ce,K);await nt(P,ce,{overrideNavigation:tt,fetcherSubmission:te,preventScrollReset:de||be,enableViewTransition:L?ie:void 0})}}async function Jt(N,A,L,K,te,de){let Se,le={};try{Se=await G0(v,N,A,L,K,te,de,o,c)}catch(ce){return K.forEach(P=>{le[P.route.id]={type:"error",error:ce}}),le}for(let[ce,P]of Object.entries(Se))if(J0(P)){let se=P.result;le[ce]={type:"redirect",response:Z0(se,L,ce,te,y)}}else le[ce]=await Q0(P);return le}async function yt(N,A,L,K,te){let de=Jt("loader",N,te,L,A,null),Se=Promise.all(K.map(async P=>{if(P.matches&&P.match&&P.controller){let ye=(await Jt("loader",N,ri(a.history,P.path,P.controller.signal),[P.match],P.matches,P.key))[P.match.route.id];return{[P.key]:ye}}else return Promise.resolve({[P.key]:{type:"error",error:Dn(404,{pathname:P.path})}})})),le=await de,ce=(await Se).reduce((P,se)=>Object.assign(P,se),{});return{loaderResults:le,fetcherResults:ce}}function mn(){Qe=!0,V.forEach((N,A)=>{X.has(A)&&Ye.add(A),Gt(A)})}function xe(N,A,L={}){O.fetchers.set(N,A),pe({fetchers:new Map(O.fetchers)},{flushSync:(L&&L.flushSync)===!0})}function at(N,A,L,K={}){let te=xl(O.matches,A);qn(N),pe({errors:{[te.route.id]:L},fetchers:new Map(O.fetchers)},{flushSync:(K&&K.flushSync)===!0})}function Yt(N){return ne.set(N,(ne.get(N)||0)+1),W.has(N)&&W.delete(N),O.fetchers.get(N)||L0}function qn(N){let A=O.fetchers.get(N);X.has(N)&&!(A&&A.state==="loading"&&Re.has(N))&&Gt(N),V.delete(N),Re.delete(N),_.delete(N),W.delete(N),Ye.delete(N),O.fetchers.delete(N)}function Fn(N){let A=(ne.get(N)||0)-1;A<=0?(ne.delete(N),W.add(N)):ne.set(N,A),pe({fetchers:new Map(O.fetchers)})}function Gt(N){let A=X.get(N);A&&(A.abort(),X.delete(N))}function Pn(N){for(let A of N){let L=Yt(A),K=Za(L.data);O.fetchers.set(A,K)}}function tn(){let N=[],A=!1;for(let L of _){let K=O.fetchers.get(L);ze(K,`Expected fetcher: ${L}`),K.state==="loading"&&(_.delete(L),N.push(L),A=!0)}return Pn(N),A}function pt(N){let A=[];for(let[L,K]of Re)if(K<N){let te=O.fetchers.get(L);ze(te,`Expected fetcher: ${L}`),te.state==="loading"&&(Gt(L),Re.delete(L),A.push(L))}return Pn(A),A.length>0}function Sa(N,A){let L=O.blockers.get(N)||oi;return F.get(N)!==A&&F.set(N,A),L}function Bt(N){O.blockers.delete(N),F.delete(N)}function lt(N,A){let L=O.blockers.get(N)||oi;ze(L.state==="unblocked"&&A.state==="blocked"||L.state==="blocked"&&A.state==="blocked"||L.state==="blocked"&&A.state==="proceeding"||L.state==="blocked"&&A.state==="unblocked"||L.state==="proceeding"&&A.state==="unblocked",`Invalid blocker state transition: ${L.state} -> ${A.state}`);let K=new Map(O.blockers);K.set(N,A),pe({blockers:K})}function Wn({currentLocation:N,nextLocation:A,historyAction:L}){if(F.size===0)return;F.size>1&&Ot(!1,"A router only supports one blocker at a time");let K=Array.from(F.entries()),[te,de]=K[K.length-1],Se=O.blockers.get(te);if(!(Se&&Se.state==="proceeding")&&de({currentLocation:N,nextLocation:A,historyAction:L}))return te}function kn(N){let A=Dn(404,{pathname:N}),L=m||f,{matches:K,route:te}=ay(L);return{notFoundMatches:K,route:te,error:A}}function xa(N,A,L){if(R=N,k=A,w=L||null,!B&&O.navigation===co){B=!0;let K=Xt(O.location,O.matches);K!=null&&pe({restoreScrollPosition:K})}return()=>{R=null,k=null,w=null}}function yn(N,A){return w&&w(N,A.map(K=>d0(K,O.loaderData)))||N.key}function An(N,A){if(R&&k){let L=yn(N,A);R[L]=k()}}function Xt(N,A){if(R){let L=yn(N,A),K=R[L];if(typeof K=="number")return K}return null}function Ft(N,A,L){if(p)if(N){if(Object.keys(N[0].params).length>0)return{active:!0,matches:Mu(A,L,y,!0)}}else return{active:!0,matches:Mu(A,L,y,!0)||[]};return{active:!1,matches:null}}async function Qt(N,A,L){if(!p)return{type:"success",matches:N};let K=N;for(;;){let te=m==null,de=m||f,Se=o;try{await p({path:A,matches:K,patch:(P,se)=>{L.aborted||Pm(P,se,de,Se,c)}})}catch(P){return{type:"error",error:P,partialMatches:K}}finally{te&&!L.aborted&&(f=[...f])}if(L.aborted)return{type:"aborted"};let le=$a(de,A,y);if(le)return{type:"success",matches:le};let ce=Mu(de,A,y,!0);if(!ce||K.length===ce.length&&K.every((P,se)=>P.route.id===ce[se].route.id))return{type:"success",matches:null};K=ce}}function _a(N){o={},m=Uu(N,c,void 0,o)}function br(N,A){let L=m==null;Pm(N,A,m||f,o,c),L&&(f=[...f],pe({}))}return J={get basename(){return y},get future(){return b},get state(){return O},get routes(){return f},get window(){return i},initialize:Ze,subscribe:He,enableScrollRestoration:xa,navigate:Et,fetch:fn,revalidate:mt,createHref:N=>a.history.createHref(N),encodeLocation:N=>a.history.encodeLocation(N),getFetcher:Yt,deleteFetcher:Fn,dispose:Te,getBlocker:Sa,deleteBlocker:Bt,patchRoutes:br,_internalFetchControllers:X,_internalSetRoutes:_a},J}function B0(a){return a!=null&&("formData"in a&&a.formData!=null||"body"in a&&a.body!==void 0)}function To(a,i,u,c,o,f){let m,y;if(o){m=[];for(let p of i)if(m.push(p),p.route.id===o){y=p;break}}else m=i,y=i[i.length-1];let v=Bo(c||".",Ho(m),on(a.pathname,u)||a.pathname,f==="path");if(c==null&&(v.search=a.search,v.hash=a.hash),(c==null||c===""||c===".")&&y){let p=ko(v.search);if(y.route.index&&!p)v.search=v.search?v.search.replace(/^\?/,"?index&"):"?index";else if(!y.route.index&&p){let b=new URLSearchParams(v.search),T=b.getAll("index");b.delete("index"),T.filter(R=>R).forEach(R=>b.append("index",R));let x=b.toString();v.search=x?`?${x}`:""}}return u!=="/"&&(v.pathname=v.pathname==="/"?u:Kn([u,v.pathname])),Ja(v)}function Km(a,i,u){if(!u||!B0(u))return{path:i};if(u.formMethod&&!F0(u.formMethod))return{path:i,error:Dn(405,{method:u.formMethod})};let c=()=>({path:i,error:Dn(400,{type:"invalid-body"})}),f=(u.formMethod||"get").toUpperCase(),m=Hy(i);if(u.body!==void 0){if(u.formEncType==="text/plain"){if(!Un(f))return c();let T=typeof u.body=="string"?u.body:u.body instanceof FormData||u.body instanceof URLSearchParams?Array.from(u.body.entries()).reduce((x,[R,w])=>`${x}${R}=${w} +`,""):String(u.body);return{path:i,submission:{formMethod:f,formAction:m,formEncType:u.formEncType,formData:void 0,json:void 0,text:T}}}else if(u.formEncType==="application/json"){if(!Un(f))return c();try{let T=typeof u.body=="string"?JSON.parse(u.body):u.body;return{path:i,submission:{formMethod:f,formAction:m,formEncType:u.formEncType,formData:void 0,json:T,text:void 0}}}catch{return c()}}}ze(typeof FormData=="function","FormData is not available in this environment");let y,v;if(u.formData)y=Co(u.formData),v=u.formData;else if(u.body instanceof FormData)y=Co(u.body),v=u.body;else if(u.body instanceof URLSearchParams)y=u.body,v=Im(y);else if(u.body==null)y=new URLSearchParams,v=new FormData;else try{y=new URLSearchParams(u.body),v=Im(y)}catch{return c()}let p={formMethod:f,formAction:m,formEncType:u&&u.formEncType||"application/x-www-form-urlencoded",formData:v,json:void 0,text:void 0};if(Un(p.formMethod))return{path:i,submission:p};let b=Pa(i);return a&&b.search&&ko(b.search)&&y.append("index",""),b.search=`?${y}`,{path:Ja(b),submission:p}}function $m(a,i,u=!1){let c=a.findIndex(o=>o.route.id===i);return c>=0?a.slice(0,u?c+1:c):a}function Jm(a,i,u,c,o,f,m,y,v,p,b,T,x,R){let w=R?cn(R[1])?R[1].error:R[1].data:void 0,k=a.createURL(i.location),B=a.createURL(o),U=u;f&&i.errors?U=$m(u,Object.keys(i.errors)[0],!0):R&&cn(R[1])&&(U=$m(u,R[0]));let Y=R?R[1].statusCode:void 0,$=Y&&Y>=400,ee=U.filter((O,ue)=>{let{route:be}=O;if(be.lazy)return!0;if(be.loader==null)return!1;if(f)return No(be,i.loaderData,i.errors);if(q0(i.loaderData,i.matches[ue],O))return!0;let Z=i.matches[ue],ie=O;return Fm(O,{currentUrl:k,currentParams:Z.params,nextUrl:B,nextParams:ie.params,...c,actionResult:w,actionStatus:Y,defaultShouldRevalidate:$?!1:m||k.pathname+k.search===B.pathname+B.search||k.search!==B.search||k0(Z,ie)})}),J=[];return p.forEach((O,ue)=>{if(f||!u.some(Ie=>Ie.route.id===O.routeId)||v.has(ue))return;let be=$a(T,O.path,x);if(!be){J.push({key:ue,routeId:O.routeId,path:O.path,matches:null,match:null,controller:null});return}let Z=i.fetchers.get(ue),ie=dr(be,O.path),je=!1;b.has(ue)?je=!1:y.has(ue)?(y.delete(ue),je=!0):Z&&Z.state!=="idle"&&Z.data===void 0?je=m:je=Fm(ie,{currentUrl:k,currentParams:i.matches[i.matches.length-1].params,nextUrl:B,nextParams:u[u.length-1].params,...c,actionResult:w,actionStatus:Y,defaultShouldRevalidate:$?!1:m}),je&&J.push({key:ue,routeId:O.routeId,path:O.path,matches:be,match:ie,controller:new AbortController})}),[ee,J]}function No(a,i,u){if(a.lazy)return!0;if(!a.loader)return!1;let c=i!=null&&i[a.id]!==void 0,o=u!=null&&u[a.id]!==void 0;return!c&&o?!1:typeof a.loader=="function"&&a.loader.hydrate===!0?!0:!c&&!o}function q0(a,i,u){let c=!i||u.route.id!==i.route.id,o=!a.hasOwnProperty(u.route.id);return c||o}function k0(a,i){let u=a.route.path;return a.pathname!==i.pathname||u!=null&&u.endsWith("*")&&a.params["*"]!==i.params["*"]}function Fm(a,i){if(a.route.shouldRevalidate){let u=a.route.shouldRevalidate(i);if(typeof u=="boolean")return u}return i.defaultShouldRevalidate}function Pm(a,i,u,c,o){let f;if(a){let v=c[a];ze(v,`No route found to patch children into: routeId = ${a}`),v.children||(v.children=[]),f=v.children}else f=u;let m=i.filter(v=>!f.some(p=>Uy(v,p))),y=Uu(m,o,[a||"_","patch",String((f==null?void 0:f.length)||"0")],c);f.push(...y)}function Uy(a,i){return"id"in a&&"id"in i&&a.id===i.id?!0:a.index===i.index&&a.path===i.path&&a.caseSensitive===i.caseSensitive?(!a.children||a.children.length===0)&&(!i.children||i.children.length===0)?!0:a.children.every((u,c)=>{var o;return(o=i.children)==null?void 0:o.some(f=>Uy(u,f))}):!1}async function V0(a,i,u){if(!a.lazy)return;let c=await a.lazy();if(!a.lazy)return;let o=u[a.id];ze(o,"No route found in manifest");let f={};for(let m in c){let v=o[m]!==void 0&&m!=="hasErrorBoundary";Ot(!v,`Route "${o.id}" has a static property "${m}" defined but its lazy function is also returning a value for this property. The lazy route property "${m}" will be ignored.`),!v&&!o0.has(m)&&(f[m]=c[m])}Object.assign(o,f),Object.assign(o,{...i(o),lazy:void 0})}async function Y0({matches:a}){let i=a.filter(c=>c.shouldLoad);return(await Promise.all(i.map(c=>c.resolve()))).reduce((c,o,f)=>Object.assign(c,{[i[f].route.id]:o}),{})}async function G0(a,i,u,c,o,f,m,y,v,p){let b=f.map(R=>R.route.lazy?V0(R.route,v,y):void 0),T=f.map((R,w)=>{let k=b[w],B=o.some(Y=>Y.route.id===R.route.id);return{...R,shouldLoad:B,resolve:async Y=>(Y&&c.method==="GET"&&(R.route.lazy||R.route.loader)&&(B=!0),B?X0(i,c,R,k,Y,p):Promise.resolve({type:"data",result:void 0}))}}),x=await a({matches:T,request:c,params:f[0].params,fetcherKey:m,context:p});try{await Promise.all(b)}catch{}return x}async function X0(a,i,u,c,o,f){let m,y,v=p=>{let b,T=new Promise((w,k)=>b=k);y=()=>b(),i.signal.addEventListener("abort",y);let x=w=>typeof p!="function"?Promise.reject(new Error(`You cannot call the handler for a route which defines a boolean "${a}" [routeId: ${u.route.id}]`)):p({request:i,params:u.params,context:f},...w!==void 0?[w]:[]),R=(async()=>{try{return{type:"data",result:await(o?o(k=>x(k)):x())}}catch(w){return{type:"error",result:w}}})();return Promise.race([R,T])};try{let p=u.route[a];if(c)if(p){let b,[T]=await Promise.all([v(p).catch(x=>{b=x}),c]);if(b!==void 0)throw b;m=T}else if(await c,p=u.route[a],p)m=await v(p);else if(a==="action"){let b=new URL(i.url),T=b.pathname+b.search;throw Dn(405,{method:i.method,pathname:T,routeId:u.route.id})}else return{type:"data",result:void 0};else if(p)m=await v(p);else{let b=new URL(i.url),T=b.pathname+b.search;throw Dn(404,{pathname:T})}}catch(p){return{type:"error",result:p}}finally{y&&i.signal.removeEventListener("abort",y)}return m}async function Q0(a){var c,o,f,m,y,v;let{result:i,type:u}=a;if(By(i)){let p;try{let b=i.headers.get("Content-Type");b&&/\bapplication\/json\b/.test(b)?i.body==null?p=null:p=await i.json():p=await i.text()}catch(b){return{type:"error",error:b}}return u==="error"?{type:"error",error:new Bu(i.status,i.statusText,p),statusCode:i.status,headers:i.headers}:{type:"data",data:p,statusCode:i.status,headers:i.headers}}return u==="error"?ly(i)?i.data instanceof Error?{type:"error",error:i.data,statusCode:(c=i.init)==null?void 0:c.status,headers:(o=i.init)!=null&&o.headers?new Headers(i.init.headers):void 0}:{type:"error",error:new Bu(((f=i.init)==null?void 0:f.status)||500,void 0,i.data),statusCode:yr(i)?i.status:void 0,headers:(m=i.init)!=null&&m.headers?new Headers(i.init.headers):void 0}:{type:"error",error:i,statusCode:yr(i)?i.status:void 0}:ly(i)?{type:"data",data:i.data,statusCode:(y=i.init)==null?void 0:y.status,headers:(v=i.init)!=null&&v.headers?new Headers(i.init.headers):void 0}:{type:"data",data:i}}function Z0(a,i,u,c,o){let f=a.headers.get("Location");if(ze(f,"Redirects returned/thrown from loaders/actions must have a Location header"),!qo.test(f)){let m=c.slice(0,c.findIndex(y=>y.route.id===u)+1);f=To(new URL(i.url),m,o,f),a.headers.set("Location",f)}return a}function Wm(a,i,u){if(qo.test(a)){let c=a,o=c.startsWith("//")?new URL(i.protocol+c):new URL(c),f=on(o.pathname,u)!=null;if(o.origin===i.origin&&f)return o.pathname+o.search+o.hash}return a}function ri(a,i,u,c){let o=a.createURL(Hy(i)).toString(),f={signal:u};if(c&&Un(c.formMethod)){let{formMethod:m,formEncType:y}=c;f.method=m.toUpperCase(),y==="application/json"?(f.headers=new Headers({"Content-Type":y}),f.body=JSON.stringify(c.json)):y==="text/plain"?f.body=c.text:y==="application/x-www-form-urlencoded"&&c.formData?f.body=Co(c.formData):f.body=c.formData}return new Request(o,f)}function Co(a){let i=new URLSearchParams;for(let[u,c]of a.entries())i.append(u,typeof c=="string"?c:c.name);return i}function Im(a){let i=new FormData;for(let[u,c]of a.entries())i.append(u,c);return i}function K0(a,i,u,c=!1,o=!1){let f={},m=null,y,v=!1,p={},b=u&&cn(u[1])?u[1].error:void 0;return a.forEach(T=>{if(!(T.route.id in i))return;let x=T.route.id,R=i[x];if(ze(!Tl(R),"Cannot handle redirect results in processLoaderData"),cn(R)){let w=R.error;if(b!==void 0&&(w=b,b=void 0),m=m||{},o)m[x]=w;else{let k=xl(a,x);m[k.route.id]==null&&(m[k.route.id]=w)}c||(f[x]=Ly),v||(v=!0,y=yr(R.error)?R.error.status:500),R.headers&&(p[x]=R.headers)}else f[x]=R.data,R.statusCode&&R.statusCode!==200&&!v&&(y=R.statusCode),R.headers&&(p[x]=R.headers)}),b!==void 0&&u&&(m={[u[0]]:b},f[u[0]]=void 0),{loaderData:f,errors:m,statusCode:y||200,loaderHeaders:p}}function ey(a,i,u,c,o,f){let{loaderData:m,errors:y}=K0(i,u,c);return o.forEach(v=>{let{key:p,match:b,controller:T}=v,x=f[p];if(ze(x,"Did not find corresponding fetcher result"),!(T&&T.signal.aborted))if(cn(x)){let R=xl(a.matches,b==null?void 0:b.route.id);y&&y[R.route.id]||(y={...y,[R.route.id]:x.error}),a.fetchers.delete(p)}else if(Tl(x))ze(!1,"Unhandled fetcher revalidation redirect");else{let R=Za(x.data);a.fetchers.set(p,R)}}),{loaderData:m,errors:y}}function ty(a,i,u,c){let o=Object.entries(i).filter(([,f])=>f!==Ly).reduce((f,[m,y])=>(f[m]=y,f),{});for(let f of u){let m=f.route.id;if(!i.hasOwnProperty(m)&&a.hasOwnProperty(m)&&f.route.loader&&(o[m]=a[m]),c&&c.hasOwnProperty(m))break}return o}function ny(a){return a?cn(a[1])?{actionData:{}}:{actionData:{[a[0]]:a[1].data}}:{}}function xl(a,i){return(i?a.slice(0,a.findIndex(c=>c.route.id===i)+1):[...a]).reverse().find(c=>c.route.hasErrorBoundary===!0)||a[0]}function ay(a){let i=a.length===1?a[0]:a.find(u=>u.index||!u.path||u.path==="/")||{id:"__shim-error-route__"};return{matches:[{params:{},pathname:"",pathnameBase:"",route:i}],route:i}}function Dn(a,{pathname:i,routeId:u,method:c,type:o,message:f}={}){let m="Unknown Server Error",y="Unknown @remix-run/router error";return a===400?(m="Bad Request",c&&i&&u?y=`You made a ${c} request to "${i}" but did not provide a \`loader\` for route "${u}", so there is no way to handle the request.`:o==="invalid-body"&&(y="Unable to encode submission body")):a===403?(m="Forbidden",y=`Route "${u}" does not match URL "${i}"`):a===404?(m="Not Found",y=`No route matches URL "${i}"`):a===405&&(m="Method Not Allowed",c&&i&&u?y=`You made a ${c.toUpperCase()} request to "${i}" but did not provide an \`action\` for route "${u}", so there is no way to handle the request.`:c&&(y=`Invalid request method "${c.toUpperCase()}"`)),new Bu(a||500,m,new Error(y),!0)}function ju(a){let i=Object.entries(a);for(let u=i.length-1;u>=0;u--){let[c,o]=i[u];if(Tl(o))return{key:c,result:o}}}function Hy(a){let i=typeof a=="string"?Pa(a):a;return Ja({...i,hash:""})}function $0(a,i){return a.pathname!==i.pathname||a.search!==i.search?!1:a.hash===""?i.hash!=="":a.hash===i.hash?!0:i.hash!==""}function J0(a){return By(a.result)&&M0.has(a.result.status)}function cn(a){return a.type==="error"}function Tl(a){return(a&&a.type)==="redirect"}function ly(a){return typeof a=="object"&&a!=null&&"type"in a&&"data"in a&&"init"in a&&a.type==="DataWithResponseInit"}function By(a){return a!=null&&typeof a.status=="number"&&typeof a.statusText=="string"&&typeof a.headers=="object"&&typeof a.body<"u"}function F0(a){return w0.has(a.toUpperCase())}function Un(a){return D0.has(a.toUpperCase())}function ko(a){return new URLSearchParams(a).getAll("index").some(i=>i==="")}function dr(a,i){let u=typeof i=="string"?Pa(i).search:i.search;if(a[a.length-1].route.index&&ko(u||""))return a[a.length-1];let c=wy(a);return c[c.length-1]}function iy(a){let{formMethod:i,formAction:u,formEncType:c,text:o,formData:f,json:m}=a;if(!(!i||!u||!c)){if(o!=null)return{formMethod:i,formAction:u,formEncType:c,formData:void 0,json:void 0,text:o};if(f!=null)return{formMethod:i,formAction:u,formEncType:c,formData:f,json:void 0,text:void 0};if(m!==void 0)return{formMethod:i,formAction:u,formEncType:c,formData:void 0,json:m,text:void 0}}}function so(a,i){return i?{state:"loading",location:a,formMethod:i.formMethod,formAction:i.formAction,formEncType:i.formEncType,formData:i.formData,json:i.json,text:i.text}:{state:"loading",location:a,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0}}function P0(a,i){return{state:"submitting",location:a,formMethod:i.formMethod,formAction:i.formAction,formEncType:i.formEncType,formData:i.formData,json:i.json,text:i.text}}function cr(a,i){return a?{state:"loading",formMethod:a.formMethod,formAction:a.formAction,formEncType:a.formEncType,formData:a.formData,json:a.json,text:a.text,data:i}:{state:"loading",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:i}}function W0(a,i){return{state:"submitting",formMethod:a.formMethod,formAction:a.formAction,formEncType:a.formEncType,formData:a.formData,json:a.json,text:a.text,data:i?i.data:void 0}}function Za(a){return{state:"idle",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:a}}function I0(a,i){try{let u=a.sessionStorage.getItem(zy);if(u){let c=JSON.parse(u);for(let[o,f]of Object.entries(c||{}))f&&Array.isArray(f)&&i.set(o,new Set(f||[]))}}catch{}}function e1(a,i){if(i.size>0){let u={};for(let[c,o]of i)u[c]=[...o];try{a.sessionStorage.setItem(zy,JSON.stringify(u))}catch(c){Ot(!1,`Failed to save applied view transitions in sessionStorage (${c}).`)}}}function t1(){let a,i,u=new Promise((c,o)=>{a=async f=>{c(f);try{await u}catch{}},i=async f=>{o(f);try{await u}catch{}}});return{promise:u,resolve:a,reject:i}}var Cl=g.createContext(null);Cl.displayName="DataRouter";var vr=g.createContext(null);vr.displayName="DataRouterState";var Vo=g.createContext({isTransitioning:!1});Vo.displayName="ViewTransition";var qy=g.createContext(new Map);qy.displayName="Fetchers";var n1=g.createContext(null);n1.displayName="Await";var $n=g.createContext(null);$n.displayName="Navigation";var Qu=g.createContext(null);Qu.displayName="Location";var Bn=g.createContext({outlet:null,matches:[],isDataRoute:!1});Bn.displayName="Route";var Yo=g.createContext(null);Yo.displayName="RouteError";function a1(a,{relative:i}={}){ze(gr(),"useHref() may be used only in the context of a <Router> component.");let{basename:u,navigator:c}=g.useContext($n),{hash:o,pathname:f,search:m}=Er(a,{relative:i}),y=f;return u!=="/"&&(y=f==="/"?u:Kn([u,f])),c.createHref({pathname:y,search:m,hash:o})}function gr(){return g.useContext(Qu)!=null}function Jn(){return ze(gr(),"useLocation() may be used only in the context of a <Router> component."),g.useContext(Qu).location}var ky="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function Vy(a){g.useContext($n).static||g.useLayoutEffect(a)}function Yy(){let{isDataRoute:a}=g.useContext(Bn);return a?v1():l1()}function l1(){ze(gr(),"useNavigate() may be used only in the context of a <Router> component.");let a=g.useContext(Cl),{basename:i,navigator:u}=g.useContext($n),{matches:c}=g.useContext(Bn),{pathname:o}=Jn(),f=JSON.stringify(Ho(c)),m=g.useRef(!1);return Vy(()=>{m.current=!0}),g.useCallback((v,p={})=>{if(Ot(m.current,ky),!m.current)return;if(typeof v=="number"){u.go(v);return}let b=Bo(v,JSON.parse(f),o,p.relative==="path");a==null&&i!=="/"&&(b.pathname=b.pathname==="/"?i:Kn([i,b.pathname])),(p.replace?u.replace:u.push)(b,p.state,p)},[i,u,f,o,a])}var i1=g.createContext(null);function r1(a){let i=g.useContext(Bn).outlet;return i&&g.createElement(i1.Provider,{value:a},i)}function Dx(){let{matches:a}=g.useContext(Bn),i=a[a.length-1];return i?i.params:{}}function Er(a,{relative:i}={}){let{matches:u}=g.useContext(Bn),{pathname:c}=Jn(),o=JSON.stringify(Ho(u));return g.useMemo(()=>Bo(a,JSON.parse(o),c,i==="path"),[a,o,c,i])}function u1(a,i,u,c){ze(gr(),"useRoutes() may be used only in the context of a <Router> component.");let{navigator:o,static:f}=g.useContext($n),{matches:m}=g.useContext(Bn),y=m[m.length-1],v=y?y.params:{},p=y?y.pathname:"/",b=y?y.pathnameBase:"/",T=y&&y.route;{let Y=T&&T.path||"";Qy(p,!T||Y.endsWith("*")||Y.endsWith("*?"),`You rendered descendant <Routes> (or called \`useRoutes()\`) at "${p}" (under <Route path="${Y}">) but the parent route path has no trailing "*". This means if you navigate deeper, the parent won't match anymore and therefore the child routes will never render. -Please change the parent <Route path="${z}"> to <Route path="${z==="/"?"*":`${z}/*`}">.`)}let C=Pn(),x;x=C;let R=x.pathname||"/",A=R;if(v!=="/"){let z=v.replace(/^\//,"").split("/");A="/"+R.replace(/^\//,"").split("/").slice(z.length).join("/")}let H=Fa(a,{pathname:A});return At(b||H!=null,`No routes matched location "${x.pathname}${x.search}${x.hash}" `),At(H==null||H[H.length-1].route.element!==void 0||H[H.length-1].route.Component!==void 0||H[H.length-1].route.lazy!==void 0,`Matched leaf route at location "${x.pathname}${x.search}${x.hash}" does not have an element or Component. This means it will render an <Outlet /> with a null value by default resulting in an "empty" page.`),d1(H&&H.map(z=>Object.assign({},z,{params:Object.assign({},y,z.params),pathname:Jn([v,o.encodeLocation?o.encodeLocation(z.pathname).pathname:z.pathname]),pathnameBase:z.pathnameBase==="/"?v:Jn([v,o.encodeLocation?o.encodeLocation(z.pathnameBase).pathname:z.pathnameBase])})),f,u,c)}function c1(){let a=y1(),i=Gu(a)?`${a.status} ${a.statusText}`:a instanceof Error?a.message:JSON.stringify(a),u=a instanceof Error?a.stack:null,c="rgba(200,200,200, 0.5)",o={padding:"0.5rem",backgroundColor:c},f={padding:"2px 4px",backgroundColor:c},h=null;return console.error("Error handled by React Router default ErrorBoundary:",a),h=g.createElement(g.Fragment,null,g.createElement("p",null,"💿 Hey developer 👋"),g.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",g.createElement("code",{style:f},"ErrorBoundary")," or"," ",g.createElement("code",{style:f},"errorElement")," prop on your route.")),g.createElement(g.Fragment,null,g.createElement("h2",null,"Unexpected Application Error!"),g.createElement("h3",{style:{fontStyle:"italic"}},i),u?g.createElement("pre",{style:o},u):null,h)}var s1=g.createElement(c1,null),o1=class extends g.Component{constructor(a){super(a),this.state={location:a.location,revalidation:a.revalidation,error:a.error}}static getDerivedStateFromError(a){return{error:a}}static getDerivedStateFromProps(a,i){return i.location!==a.location||i.revalidation!=="idle"&&a.revalidation==="idle"?{error:a.error,location:a.location,revalidation:a.revalidation}:{error:a.error!==void 0?a.error:i.error,location:i.location,revalidation:a.revalidation||i.revalidation}}componentDidCatch(a,i){console.error("React Router caught the following error during render",a,i)}render(){return this.state.error!==void 0?g.createElement(kn.Provider,{value:this.props.routeContext},g.createElement(Vo.Provider,{value:this.state.error,children:this.props.component})):this.props.children}};function f1({routeContext:a,match:i,children:u}){let c=g.useContext(Cl);return c&&c.static&&c.staticContext&&(i.route.errorElement||i.route.ErrorBoundary)&&(c.staticContext._deepestRenderedBoundaryId=i.route.id),g.createElement(kn.Provider,{value:a},u)}function d1(a,i=[],u=null,c=null){if(a==null){if(!u)return null;if(u.errors)a=u.matches;else if(i.length===0&&!u.initialized&&u.matches.length>0)a=u.matches;else return null}let o=a,f=u==null?void 0:u.errors;if(f!=null){let p=o.findIndex(v=>v.route.id&&(f==null?void 0:f[v.route.id])!==void 0);He(p>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(f).join(",")}`),o=o.slice(0,Math.min(o.length,p+1))}let h=!1,y=-1;if(u)for(let p=0;p<o.length;p++){let v=o[p];if((v.route.HydrateFallback||v.route.hydrateFallbackElement)&&(y=p),v.route.id){let{loaderData:b,errors:C}=u,x=v.route.loader&&!b.hasOwnProperty(v.route.id)&&(!C||C[v.route.id]===void 0);if(v.route.lazy||x){h=!0,y>=0?o=o.slice(0,y+1):o=[o[0]];break}}}return o.reduceRight((p,v,b)=>{let C,x=!1,R=null,A=null;u&&(C=f&&v.route.id?f[v.route.id]:void 0,R=v.route.errorElement||s1,h&&(y<0&&b===0?(Xy("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),x=!0,A=null):y===b&&(x=!0,A=v.route.hydrateFallbackElement||null)));let H=i.concat(o.slice(0,b+1)),k=()=>{let z;return C?z=R:x?z=A:v.route.Component?z=g.createElement(v.route.Component,null):v.route.element?z=v.route.element:z=p,g.createElement(f1,{match:v,routeContext:{outlet:p,matches:H,isDataRoute:u!=null},children:z})};return u&&(v.route.ErrorBoundary||v.route.errorElement||b===0)?g.createElement(o1,{location:u.location,revalidation:u.revalidation,component:R,error:C,children:k(),routeContext:{outlet:null,matches:H,isDataRoute:!0}}):k()},null)}function Yo(a){return`${a} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function Yy(a){let i=g.useContext(Cl);return He(i,Yo(a)),i}function Gy(a){let i=g.useContext(pr);return He(i,Yo(a)),i}function h1(a){let i=g.useContext(kn);return He(i,Yo(a)),i}function Go(a){let i=h1(a),u=i.matches[i.matches.length-1];return He(u.route.id,`${a} can only be used on routes that contain a unique "id"`),u.route.id}function m1(){return Go("useRouteId")}function y1(){var c;let a=g.useContext(Vo),i=Gy("useRouteError"),u=Go("useRouteError");return a!==void 0?a:(c=i.errors)==null?void 0:c[u]}var p1=0;function Ax(a){let{router:i,basename:u}=Yy("useBlocker"),c=Gy("useBlocker"),[o,f]=g.useState(""),h=g.useCallback(y=>{if(typeof a!="function")return!!a;if(u==="/")return a(y);let{currentLocation:p,nextLocation:v,historyAction:b}=y;return a({currentLocation:{...p,pathname:fn(p.pathname,u)||p.pathname},nextLocation:{...v,pathname:fn(v.pathname,u)||v.pathname},historyAction:b})},[u,a]);return g.useEffect(()=>{let y=String(++p1);return f(y),()=>i.deleteBlocker(y)},[i]),g.useEffect(()=>{o!==""&&i.getBlocker(o,h)},[i,o,h]),o&&c.blockers.has(o)?c.blockers.get(o):si}function v1(){let{router:a}=Yy("useNavigate"),i=Go("useNavigate"),u=g.useRef(!1);return ky(()=>{u.current=!0}),g.useCallback(async(o,f={})=>{At(u.current,qy),u.current&&(typeof o=="number"?a.navigate(o):await a.navigate(o,{fromRouteId:i,...f}))},[a,i])}var iy={};function Xy(a,i,u){!i&&!iy[a]&&(iy[a]=!0,At(!1,u))}var ry={};function uy(a,i){!a&&!ry[i]&&(ry[i]=!0,console.warn(i))}function g1(a){let i={hasErrorBoundary:a.hasErrorBoundary||a.ErrorBoundary!=null||a.errorElement!=null};return a.Component&&(a.element&&At(!1,"You should not include both `Component` and `element` on your route - `Component` will be used."),Object.assign(i,{element:g.createElement(a.Component),Component:void 0})),a.HydrateFallback&&(a.hydrateFallbackElement&&At(!1,"You should not include both `HydrateFallback` and `hydrateFallbackElement` on your route - `HydrateFallback` will be used."),Object.assign(i,{hydrateFallbackElement:g.createElement(a.HydrateFallback),HydrateFallback:void 0})),a.ErrorBoundary&&(a.errorElement&&At(!1,"You should not include both `ErrorBoundary` and `errorElement` on your route - `ErrorBoundary` will be used."),Object.assign(i,{errorElement:g.createElement(a.ErrorBoundary),ErrorBoundary:void 0})),i}var E1=class{constructor(){this.status="pending",this.promise=new Promise((a,i)=>{this.resolve=u=>{this.status==="pending"&&(this.status="resolved",a(u))},this.reject=u=>{this.status==="pending"&&(this.status="rejected",i(u))}})}};function b1({router:a,flushSync:i}){let[u,c]=g.useState(a.state),[o,f]=g.useState(),[h,y]=g.useState({isTransitioning:!1}),[p,v]=g.useState(),[b,C]=g.useState(),[x,R]=g.useState(),A=g.useRef(new Map),H=g.useCallback((Q,{deletedFetchers:ee,flushSync:T,viewTransitionOpts:P})=>{Q.fetchers.forEach((ce,$)=>{ce.data!==void 0&&A.current.set($,ce.data)}),ee.forEach(ce=>A.current.delete(ce)),uy(T===!1||i!=null,'You provided the `flushSync` option to a router update, but you are not using the `<RouterProvider>` from `react-router/dom` so `ReactDOM.flushSync()` is unavailable. Please update your app to `import { RouterProvider } from "react-router/dom"` and ensure you have `react-dom` installed as a dependency to use the `flushSync` option.');let fe=a.window!=null&&a.window.document!=null&&typeof a.window.document.startViewTransition=="function";if(uy(P==null||fe,"You provided the `viewTransition` option to a router update, but you do not appear to be running in a DOM environment as `window.startViewTransition` is not available."),!P||!fe){i&&T?i(()=>c(Q)):g.startTransition(()=>c(Q));return}if(i&&T){i(()=>{b&&(p&&p.resolve(),b.skipTransition()),y({isTransitioning:!0,flushSync:!0,currentLocation:P.currentLocation,nextLocation:P.nextLocation})});let ce=a.window.document.startViewTransition(()=>{i(()=>c(Q))});ce.finished.finally(()=>{i(()=>{v(void 0),C(void 0),f(void 0),y({isTransitioning:!1})})}),i(()=>C(ce));return}b?(p&&p.resolve(),b.skipTransition(),R({state:Q,currentLocation:P.currentLocation,nextLocation:P.nextLocation})):(f(Q),y({isTransitioning:!0,flushSync:!1,currentLocation:P.currentLocation,nextLocation:P.nextLocation}))},[a.window,i,b,p]);g.useLayoutEffect(()=>a.subscribe(H),[a,H]),g.useEffect(()=>{h.isTransitioning&&!h.flushSync&&v(new E1)},[h]),g.useEffect(()=>{if(p&&o&&a.window){let Q=o,ee=p.promise,T=a.window.document.startViewTransition(async()=>{g.startTransition(()=>c(Q)),await ee});T.finished.finally(()=>{v(void 0),C(void 0),f(void 0),y({isTransitioning:!1})}),C(T)}},[o,p,a.window]),g.useEffect(()=>{p&&o&&u.location.key===o.location.key&&p.resolve()},[p,b,u.location,o]),g.useEffect(()=>{!h.isTransitioning&&x&&(f(x.state),y({isTransitioning:!0,flushSync:!1,currentLocation:x.currentLocation,nextLocation:x.nextLocation}),R(void 0))},[h.isTransitioning,x]);let k=g.useMemo(()=>({createHref:a.createHref,encodeLocation:a.encodeLocation,go:Q=>a.navigate(Q),push:(Q,ee,T)=>a.navigate(Q,{state:ee,preventScrollReset:T==null?void 0:T.preventScrollReset}),replace:(Q,ee,T)=>a.navigate(Q,{replace:!0,state:ee,preventScrollReset:T==null?void 0:T.preventScrollReset})}),[a]),z=a.basename||"/",Z=g.useMemo(()=>({router:a,navigator:k,static:!1,basename:z}),[a,k,z]);return g.createElement(g.Fragment,null,g.createElement(Cl.Provider,{value:Z},g.createElement(pr.Provider,{value:u},g.createElement(By.Provider,{value:A.current},g.createElement(ko.Provider,{value:h},g.createElement(R1,{basename:z,location:u.location,navigationType:u.historyAction,navigator:k},g.createElement(S1,{routes:a.routes,future:a.future,state:u})))))),null)}var S1=g.memo(x1);function x1({routes:a,future:i,state:u}){return u1(a,void 0,u,i)}function _1(a){return r1(a.context)}function R1({basename:a="/",children:i=null,location:u,navigationType:c="POP",navigator:o,static:f=!1}){He(!vr(),"You cannot render a <Router> inside another <Router>. You should never have more than one in your app.");let h=a.replace(/^\/*/,"/"),y=g.useMemo(()=>({basename:h,navigator:o,static:f,future:{}}),[h,o,f]);typeof u=="string"&&(u=Ia(u));let{pathname:p="/",search:v="",hash:b="",state:C=null,key:x="default"}=u,R=g.useMemo(()=>{let A=fn(p,h);return A==null?null:{location:{pathname:A,search:v,hash:b,state:C,key:x},navigationType:c}},[h,p,v,b,C,x,c]);return At(R!=null,`<Router basename="${h}"> is not able to match the URL "${p}${v}${b}" because it does not start with the basename, so the <Router> won't render anything.`),R==null?null:g.createElement(Fn.Provider,{value:y},g.createElement(Xu.Provider,{children:i,value:R}))}var wu="get",Mu="application/x-www-form-urlencoded";function Qu(a){return a!=null&&typeof a.tagName=="string"}function T1(a){return Qu(a)&&a.tagName.toLowerCase()==="button"}function N1(a){return Qu(a)&&a.tagName.toLowerCase()==="form"}function C1(a){return Qu(a)&&a.tagName.toLowerCase()==="input"}function j1(a){return!!(a.metaKey||a.altKey||a.ctrlKey||a.shiftKey)}function O1(a,i){return a.button===0&&(!i||i==="_self")&&!j1(a)}function Co(a=""){return new URLSearchParams(typeof a=="string"||Array.isArray(a)||a instanceof URLSearchParams?a:Object.keys(a).reduce((i,u)=>{let c=a[u];return i.concat(Array.isArray(c)?c.map(o=>[u,o]):[[u,c]])},[]))}function D1(a,i){let u=Co(a);return i&&i.forEach((c,o)=>{u.has(o)||i.getAll(o).forEach(f=>{u.append(o,f)})}),u}var Cu=null;function A1(){if(Cu===null)try{new FormData(document.createElement("form"),0),Cu=!1}catch{Cu=!0}return Cu}var w1=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function so(a){return a!=null&&!w1.has(a)?(At(!1,`"${a}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${Mu}"`),null):a}function M1(a,i){let u,c,o,f,h;if(N1(a)){let y=a.getAttribute("action");c=y?fn(y,i):null,u=a.getAttribute("method")||wu,o=so(a.getAttribute("enctype"))||Mu,f=new FormData(a)}else if(T1(a)||C1(a)&&(a.type==="submit"||a.type==="image")){let y=a.form;if(y==null)throw new Error('Cannot submit a <button> or <input type="submit"> without a <form>');let p=a.getAttribute("formaction")||y.getAttribute("action");if(c=p?fn(p,i):null,u=a.getAttribute("formmethod")||y.getAttribute("method")||wu,o=so(a.getAttribute("formenctype"))||so(y.getAttribute("enctype"))||Mu,f=new FormData(y,a),!A1()){let{name:v,type:b,value:C}=a;if(b==="image"){let x=v?`${v}.`:"";f.append(`${x}x`,"0"),f.append(`${x}y`,"0")}else v&&f.append(v,C)}}else{if(Qu(a))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');u=wu,c=null,o=Mu,h=a}return f&&o==="text/plain"&&(h=f,f=void 0),{action:c,method:u.toLowerCase(),encType:o,formData:f,body:h}}function Xo(a,i){if(a===!1||a===null||typeof a>"u")throw new Error(i)}async function z1(a,i){if(a.id in i)return i[a.id];try{let u=await import(a.module);return i[a.id]=u,u}catch(u){return console.error(`Error loading route module \`${a.module}\`, reloading page...`),console.error(u),window.__reactRouterContext&&window.__reactRouterContext.isSpaMode,window.location.reload(),new Promise(()=>{})}}function L1(a){return a==null?!1:a.href==null?a.rel==="preload"&&typeof a.imageSrcSet=="string"&&typeof a.imageSizes=="string":typeof a.rel=="string"&&typeof a.href=="string"}async function U1(a,i,u){let c=await Promise.all(a.map(async o=>{let f=i.routes[o.route.id];if(f){let h=await z1(f,u);return h.links?h.links():[]}return[]}));return k1(c.flat(1).filter(L1).filter(o=>o.rel==="stylesheet"||o.rel==="preload").map(o=>o.rel==="stylesheet"?{...o,rel:"prefetch",as:"style"}:{...o,rel:"prefetch"}))}function cy(a,i,u,c,o,f){let h=(p,v)=>u[v]?p.route.id!==u[v].route.id:!0,y=(p,v)=>{var b;return u[v].pathname!==p.pathname||((b=u[v].route.path)==null?void 0:b.endsWith("*"))&&u[v].params["*"]!==p.params["*"]};return f==="assets"?i.filter((p,v)=>h(p,v)||y(p,v)):f==="data"?i.filter((p,v)=>{var C;let b=c.routes[p.route.id];if(!b||!b.hasLoader)return!1;if(h(p,v)||y(p,v))return!0;if(p.route.shouldRevalidate){let x=p.route.shouldRevalidate({currentUrl:new URL(o.pathname+o.search+o.hash,window.origin),currentParams:((C=u[0])==null?void 0:C.params)||{},nextUrl:new URL(a,window.origin),nextParams:p.params,defaultShouldRevalidate:!0});if(typeof x=="boolean")return x}return!0}):[]}function H1(a,i){return B1(a.map(u=>{let c=i.routes[u.route.id];if(!c)return[];let o=[c.module];return c.imports&&(o=o.concat(c.imports)),o}).flat(1))}function B1(a){return[...new Set(a)]}function q1(a){let i={},u=Object.keys(a).sort();for(let c of u)i[c]=a[c];return i}function k1(a,i){let u=new Set;return new Set(i),a.reduce((c,o)=>{let f=JSON.stringify(q1(o));return u.has(f)||(u.add(f),c.push({key:f,link:o})),c},[])}function V1(a){let i=typeof a=="string"?new URL(a,typeof window>"u"?"server://singlefetch/":window.location.origin):a;return i.pathname==="/"?i.pathname="_root.data":i.pathname=`${i.pathname.replace(/\/$/,"")}.data`,i}function Y1(){let a=g.useContext(Cl);return Xo(a,"You must render this element inside a <DataRouterContext.Provider> element"),a}function G1(){let a=g.useContext(pr);return Xo(a,"You must render this element inside a <DataRouterStateContext.Provider> element"),a}var Qo=g.createContext(void 0);Qo.displayName="FrameworkContext";function Qy(){let a=g.useContext(Qo);return Xo(a,"You must render this element inside a <HydratedRouter> element"),a}function X1(a,i){let u=g.useContext(Qo),[c,o]=g.useState(!1),[f,h]=g.useState(!1),{onFocus:y,onBlur:p,onMouseEnter:v,onMouseLeave:b,onTouchStart:C}=i,x=g.useRef(null);g.useEffect(()=>{if(a==="render"&&h(!0),a==="viewport"){let H=z=>{z.forEach(Z=>{h(Z.isIntersecting)})},k=new IntersectionObserver(H,{threshold:.5});return x.current&&k.observe(x.current),()=>{k.disconnect()}}},[a]),g.useEffect(()=>{if(c){let H=setTimeout(()=>{h(!0)},100);return()=>{clearTimeout(H)}}},[c]);let R=()=>{o(!0)},A=()=>{o(!1),h(!1)};return u?a!=="intent"?[f,x,{}]:[f,x,{onFocus:sr(y,R),onBlur:sr(p,A),onMouseEnter:sr(v,R),onMouseLeave:sr(b,A),onTouchStart:sr(C,R)}]:[!1,x,{}]}function sr(a,i){return u=>{a&&a(u),u.defaultPrevented||i(u)}}function Q1({page:a,...i}){let{router:u}=Y1(),c=g.useMemo(()=>Fa(u.routes,a,u.basename),[u.routes,a,u.basename]);return c?g.createElement(K1,{page:a,matches:c,...i}):null}function Z1(a){let{manifest:i,routeModules:u}=Qy(),[c,o]=g.useState([]);return g.useEffect(()=>{let f=!1;return U1(a,i,u).then(h=>{f||o(h)}),()=>{f=!0}},[a,i,u]),c}function K1({page:a,matches:i,...u}){let c=Pn(),{manifest:o,routeModules:f}=Qy(),{loaderData:h,matches:y}=G1(),p=g.useMemo(()=>cy(a,i,y,o,c,"data"),[a,i,y,o,c]),v=g.useMemo(()=>cy(a,i,y,o,c,"assets"),[a,i,y,o,c]),b=g.useMemo(()=>{if(a===c.pathname+c.search+c.hash)return[];let R=new Set,A=!1;if(i.forEach(k=>{var Z;let z=o.routes[k.route.id];!z||!z.hasLoader||(!p.some(Q=>Q.route.id===k.route.id)&&k.route.id in h&&((Z=f[k.route.id])!=null&&Z.shouldRevalidate)||z.hasClientLoader?A=!0:R.add(k.route.id))}),R.size===0)return[];let H=V1(a);return A&&R.size>0&&H.searchParams.set("_routes",i.filter(k=>R.has(k.route.id)).map(k=>k.route.id).join(",")),[H.pathname+H.search]},[h,c,o,p,i,a,f]),C=g.useMemo(()=>H1(v,o),[v,o]),x=Z1(v);return g.createElement(g.Fragment,null,b.map(R=>g.createElement("link",{key:R,rel:"prefetch",as:"fetch",href:R,...u})),C.map(R=>g.createElement("link",{key:R,rel:"modulepreload",href:R,...u})),x.map(({key:R,link:A})=>g.createElement("link",{key:R,...A})))}function $1(...a){return i=>{a.forEach(u=>{typeof u=="function"?u(i):u!=null&&(u.current=i)})}}var Zy=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";try{Zy&&(window.__reactRouterVersion="7.1.3")}catch{}function J1(a,i){return H0({basename:i==null?void 0:i.basename,future:i==null?void 0:i.future,history:u0({window:i==null?void 0:i.window}),hydrationData:F1(),routes:a,mapRouteProperties:g1,dataStrategy:i==null?void 0:i.dataStrategy,patchRoutesOnNavigation:i==null?void 0:i.patchRoutesOnNavigation,window:i==null?void 0:i.window}).initialize()}function F1(){let a=window==null?void 0:window.__staticRouterHydrationData;return a&&a.errors&&(a={...a,errors:P1(a.errors)}),a}function P1(a){if(!a)return null;let i=Object.entries(a),u={};for(let[c,o]of i)if(o&&o.__type==="RouteErrorResponse")u[c]=new Uu(o.status,o.statusText,o.data,o.internal===!0);else if(o&&o.__type==="Error"){if(o.__subType){let f=window[o.__subType];if(typeof f=="function")try{let h=new f(o.message);h.stack="",u[c]=h}catch{}}if(u[c]==null){let f=new Error(o.message);f.stack="",u[c]=f}}else u[c]=o;return u}var Ky=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,ae=g.forwardRef(function({onClick:i,discover:u="render",prefetch:c="none",relative:o,reloadDocument:f,replace:h,state:y,target:p,to:v,preventScrollReset:b,viewTransition:C,...x},R){let{basename:A}=g.useContext(Fn),H=typeof v=="string"&&Ky.test(v),k,z=!1;if(typeof v=="string"&&H&&(k=v,Zy))try{let $=new URL(window.location.href),ie=v.startsWith("//")?new URL($.protocol+v):new URL(v),Le=fn(ie.pathname,A);ie.origin===$.origin&&Le!=null?v=Le+ie.search+ie.hash:z=!0}catch{At(!1,`<Link to="${v}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}let Z=a1(v,{relative:o}),[Q,ee,T]=X1(c,x),P=tE(v,{replace:h,state:y,target:p,preventScrollReset:b,relative:o,viewTransition:C});function fe($){i&&i($),$.defaultPrevented||P($)}let ce=g.createElement("a",{...x,...T,href:k||Z,onClick:z||f?i:fe,ref:$1(R,ee),target:p,"data-discover":!H&&u==="render"?"true":void 0});return Q&&!H?g.createElement(g.Fragment,null,ce,g.createElement(Q1,{page:Z})):ce});ae.displayName="Link";var W1=g.forwardRef(function({"aria-current":i="page",caseSensitive:u=!1,className:c="",end:o=!1,style:f,to:h,viewTransition:y,children:p,...v},b){let C=gr(h,{relative:v.relative}),x=Pn(),R=g.useContext(pr),{navigator:A,basename:H}=g.useContext(Fn),k=R!=null&&uE(C)&&y===!0,z=A.encodeLocation?A.encodeLocation(C).pathname:C.pathname,Z=x.pathname,Q=R&&R.navigation&&R.navigation.location?R.navigation.location.pathname:null;u||(Z=Z.toLowerCase(),Q=Q?Q.toLowerCase():null,z=z.toLowerCase()),Q&&H&&(Q=fn(Q,H)||Q);const ee=z!=="/"&&z.endsWith("/")?z.length-1:z.length;let T=Z===z||!o&&Z.startsWith(z)&&Z.charAt(ee)==="/",P=Q!=null&&(Q===z||!o&&Q.startsWith(z)&&Q.charAt(z.length)==="/"),fe={isActive:T,isPending:P,isTransitioning:k},ce=T?i:void 0,$;typeof c=="function"?$=c(fe):$=[c,T?"active":null,P?"pending":null,k?"transitioning":null].filter(Boolean).join(" ");let ie=typeof f=="function"?f(fe):f;return g.createElement(ae,{...v,"aria-current":ce,className:$,ref:b,style:ie,to:h,viewTransition:y},typeof p=="function"?p(fe):p)});W1.displayName="NavLink";var I1=g.forwardRef(({discover:a="render",fetcherKey:i,navigate:u,reloadDocument:c,replace:o,state:f,method:h=wu,action:y,onSubmit:p,relative:v,preventScrollReset:b,viewTransition:C,...x},R)=>{let A=iE(),H=rE(y,{relative:v}),k=h.toLowerCase()==="get"?"get":"post",z=typeof y=="string"&&Ky.test(y),Z=Q=>{if(p&&p(Q),Q.defaultPrevented)return;Q.preventDefault();let ee=Q.nativeEvent.submitter,T=(ee==null?void 0:ee.getAttribute("formmethod"))||h;A(ee||Q.currentTarget,{fetcherKey:i,method:T,navigate:u,replace:o,state:f,relative:v,preventScrollReset:b,viewTransition:C})};return g.createElement("form",{ref:R,method:k,action:H,onSubmit:c?p:Z,...x,"data-discover":!z&&a==="render"?"true":void 0})});I1.displayName="Form";function eE(a){return`${a} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function $y(a){let i=g.useContext(Cl);return He(i,eE(a)),i}function tE(a,{target:i,replace:u,state:c,preventScrollReset:o,relative:f,viewTransition:h}={}){let y=Vy(),p=Pn(),v=gr(a,{relative:f});return g.useCallback(b=>{if(O1(b,i)){b.preventDefault();let C=u!==void 0?u:Pa(p)===Pa(v);y(a,{replace:C,state:c,preventScrollReset:o,relative:f,viewTransition:h})}},[p,y,v,u,c,i,a,o,f,h])}function nE(a){At(typeof URLSearchParams<"u","You cannot use the `useSearchParams` hook in a browser that does not support the URLSearchParams API. If you need to support Internet Explorer 11, we recommend you load a polyfill such as https://github.com/ungap/url-search-params.");let i=g.useRef(Co(a)),u=g.useRef(!1),c=Pn(),o=g.useMemo(()=>D1(c.search,u.current?null:i.current),[c.search]),f=Vy(),h=g.useCallback((y,p)=>{const v=Co(typeof y=="function"?y(o):y);u.current=!0,f("?"+v,p)},[f,o]);return[o,h]}var aE=0,lE=()=>`__${String(++aE)}__`;function iE(){let{router:a}=$y("useSubmit"),{basename:i}=g.useContext(Fn),u=m1();return g.useCallback(async(c,o={})=>{let{action:f,method:h,encType:y,formData:p,body:v}=M1(c,i);if(o.navigate===!1){let b=o.fetcherKey||lE();await a.fetch(b,u,o.action||f,{preventScrollReset:o.preventScrollReset,formData:p,body:v,formMethod:o.method||h,formEncType:o.encType||y,flushSync:o.flushSync})}else await a.navigate(o.action||f,{preventScrollReset:o.preventScrollReset,formData:p,body:v,formMethod:o.method||h,formEncType:o.encType||y,replace:o.replace,state:o.state,fromRouteId:u,flushSync:o.flushSync,viewTransition:o.viewTransition})},[a,i,u])}function rE(a,{relative:i}={}){let{basename:u}=g.useContext(Fn),c=g.useContext(kn);He(c,"useFormAction must be used inside a RouteContext");let[o]=c.matches.slice(-1),f={...gr(a||".",{relative:i})},h=Pn();if(a==null){f.search=h.search;let y=new URLSearchParams(f.search),p=y.getAll("index");if(p.some(b=>b==="")){y.delete("index"),p.filter(C=>C).forEach(C=>y.append("index",C));let b=y.toString();f.search=b?`?${b}`:""}}return(!a||a===".")&&o.route.index&&(f.search=f.search?f.search.replace(/^\?/,"?index&"):"?index"),u!=="/"&&(f.pathname=f.pathname==="/"?u:Jn([u,f.pathname])),Pa(f)}function uE(a,i={}){let u=g.useContext(ko);He(u!=null,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?");let{basename:c}=$y("useViewTransitionState"),o=gr(a,{relative:i.relative});if(!u.isTransitioning)return!1;let f=fn(u.currentLocation.pathname,c)||u.currentLocation.pathname,h=fn(u.nextLocation.pathname,c)||u.nextLocation.pathname;return Lu(o.pathname,h)!=null||Lu(o.pathname,f)!=null}new TextEncoder;var Jy=jy();const fi=yr(Jy);/** - * react-router v7.1.3 +Please change the parent <Route path="${Y}"> to <Route path="${Y==="/"?"*":`${Y}/*`}">.`)}let x=Jn(),R;R=x;let w=R.pathname||"/",k=w;if(b!=="/"){let Y=b.replace(/^\//,"").split("/");k="/"+w.replace(/^\//,"").split("/").slice(Y.length).join("/")}let B=!f&&u&&u.matches&&u.matches.length>0?u.matches:$a(a,{pathname:k});return Ot(T||B!=null,`No routes matched location "${R.pathname}${R.search}${R.hash}" `),Ot(B==null||B[B.length-1].route.element!==void 0||B[B.length-1].route.Component!==void 0||B[B.length-1].route.lazy!==void 0,`Matched leaf route at location "${R.pathname}${R.search}${R.hash}" does not have an element or Component. This means it will render an <Outlet /> with a null value by default resulting in an "empty" page.`),d1(B&&B.map(Y=>Object.assign({},Y,{params:Object.assign({},v,Y.params),pathname:Kn([b,o.encodeLocation?o.encodeLocation(Y.pathname).pathname:Y.pathname]),pathnameBase:Y.pathnameBase==="/"?b:Kn([b,o.encodeLocation?o.encodeLocation(Y.pathnameBase).pathname:Y.pathnameBase])})),m,u,c)}function c1(){let a=y1(),i=yr(a)?`${a.status} ${a.statusText}`:a instanceof Error?a.message:JSON.stringify(a),u=a instanceof Error?a.stack:null,c="rgba(200,200,200, 0.5)",o={padding:"0.5rem",backgroundColor:c},f={padding:"2px 4px",backgroundColor:c},m=null;return console.error("Error handled by React Router default ErrorBoundary:",a),m=g.createElement(g.Fragment,null,g.createElement("p",null,"💿 Hey developer 👋"),g.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",g.createElement("code",{style:f},"ErrorBoundary")," or"," ",g.createElement("code",{style:f},"errorElement")," prop on your route.")),g.createElement(g.Fragment,null,g.createElement("h2",null,"Unexpected Application Error!"),g.createElement("h3",{style:{fontStyle:"italic"}},i),u?g.createElement("pre",{style:o},u):null,m)}var s1=g.createElement(c1,null),o1=class extends g.Component{constructor(a){super(a),this.state={location:a.location,revalidation:a.revalidation,error:a.error}}static getDerivedStateFromError(a){return{error:a}}static getDerivedStateFromProps(a,i){return i.location!==a.location||i.revalidation!=="idle"&&a.revalidation==="idle"?{error:a.error,location:a.location,revalidation:a.revalidation}:{error:a.error!==void 0?a.error:i.error,location:i.location,revalidation:a.revalidation||i.revalidation}}componentDidCatch(a,i){console.error("React Router caught the following error during render",a,i)}render(){return this.state.error!==void 0?g.createElement(Bn.Provider,{value:this.props.routeContext},g.createElement(Yo.Provider,{value:this.state.error,children:this.props.component})):this.props.children}};function f1({routeContext:a,match:i,children:u}){let c=g.useContext(Cl);return c&&c.static&&c.staticContext&&(i.route.errorElement||i.route.ErrorBoundary)&&(c.staticContext._deepestRenderedBoundaryId=i.route.id),g.createElement(Bn.Provider,{value:a},u)}function d1(a,i=[],u=null,c=null){if(a==null){if(!u)return null;if(u.errors)a=u.matches;else if(i.length===0&&!u.initialized&&u.matches.length>0)a=u.matches;else return null}let o=a,f=u==null?void 0:u.errors;if(f!=null){let v=o.findIndex(p=>p.route.id&&(f==null?void 0:f[p.route.id])!==void 0);ze(v>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(f).join(",")}`),o=o.slice(0,Math.min(o.length,v+1))}let m=!1,y=-1;if(u)for(let v=0;v<o.length;v++){let p=o[v];if((p.route.HydrateFallback||p.route.hydrateFallbackElement)&&(y=v),p.route.id){let{loaderData:b,errors:T}=u,x=p.route.loader&&!b.hasOwnProperty(p.route.id)&&(!T||T[p.route.id]===void 0);if(p.route.lazy||x){m=!0,y>=0?o=o.slice(0,y+1):o=[o[0]];break}}}return o.reduceRight((v,p,b)=>{let T,x=!1,R=null,w=null;u&&(T=f&&p.route.id?f[p.route.id]:void 0,R=p.route.errorElement||s1,m&&(y<0&&b===0?(Qy("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),x=!0,w=null):y===b&&(x=!0,w=p.route.hydrateFallbackElement||null)));let k=i.concat(o.slice(0,b+1)),B=()=>{let U;return T?U=R:x?U=w:p.route.Component?U=g.createElement(p.route.Component,null):p.route.element?U=p.route.element:U=v,g.createElement(f1,{match:p,routeContext:{outlet:v,matches:k,isDataRoute:u!=null},children:U})};return u&&(p.route.ErrorBoundary||p.route.errorElement||b===0)?g.createElement(o1,{location:u.location,revalidation:u.revalidation,component:R,error:T,children:B(),routeContext:{outlet:null,matches:k,isDataRoute:!0}}):B()},null)}function Go(a){return`${a} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function Gy(a){let i=g.useContext(Cl);return ze(i,Go(a)),i}function Xy(a){let i=g.useContext(vr);return ze(i,Go(a)),i}function h1(a){let i=g.useContext(Bn);return ze(i,Go(a)),i}function Xo(a){let i=h1(a),u=i.matches[i.matches.length-1];return ze(u.route.id,`${a} can only be used on routes that contain a unique "id"`),u.route.id}function m1(){return Xo("useRouteId")}function y1(){var c;let a=g.useContext(Yo),i=Xy("useRouteError"),u=Xo("useRouteError");return a!==void 0?a:(c=i.errors)==null?void 0:c[u]}var p1=0;function Ax(a){let{router:i,basename:u}=Gy("useBlocker"),c=Xy("useBlocker"),[o,f]=g.useState(""),m=g.useCallback(y=>{if(typeof a!="function")return!!a;if(u==="/")return a(y);let{currentLocation:v,nextLocation:p,historyAction:b}=y;return a({currentLocation:{...v,pathname:on(v.pathname,u)||v.pathname},nextLocation:{...p,pathname:on(p.pathname,u)||p.pathname},historyAction:b})},[u,a]);return g.useEffect(()=>{let y=String(++p1);return f(y),()=>i.deleteBlocker(y)},[i]),g.useEffect(()=>{o!==""&&i.getBlocker(o,m)},[i,o,m]),o&&c.blockers.has(o)?c.blockers.get(o):oi}function v1(){let{router:a}=Gy("useNavigate"),i=Xo("useNavigate"),u=g.useRef(!1);return Vy(()=>{u.current=!0}),g.useCallback(async(o,f={})=>{Ot(u.current,ky),u.current&&(typeof o=="number"?a.navigate(o):await a.navigate(o,{fromRouteId:i,...f}))},[a,i])}var ry={};function Qy(a,i,u){!i&&!ry[a]&&(ry[a]=!0,Ot(!1,u))}var uy={};function cy(a,i){!a&&!uy[i]&&(uy[i]=!0,console.warn(i))}function g1(a){let i={hasErrorBoundary:a.hasErrorBoundary||a.ErrorBoundary!=null||a.errorElement!=null};return a.Component&&(a.element&&Ot(!1,"You should not include both `Component` and `element` on your route - `Component` will be used."),Object.assign(i,{element:g.createElement(a.Component),Component:void 0})),a.HydrateFallback&&(a.hydrateFallbackElement&&Ot(!1,"You should not include both `HydrateFallback` and `hydrateFallbackElement` on your route - `HydrateFallback` will be used."),Object.assign(i,{hydrateFallbackElement:g.createElement(a.HydrateFallback),HydrateFallback:void 0})),a.ErrorBoundary&&(a.errorElement&&Ot(!1,"You should not include both `ErrorBoundary` and `errorElement` on your route - `ErrorBoundary` will be used."),Object.assign(i,{errorElement:g.createElement(a.ErrorBoundary),ErrorBoundary:void 0})),i}var E1=class{constructor(){this.status="pending",this.promise=new Promise((a,i)=>{this.resolve=u=>{this.status==="pending"&&(this.status="resolved",a(u))},this.reject=u=>{this.status==="pending"&&(this.status="rejected",i(u))}})}};function b1({router:a,flushSync:i}){let[u,c]=g.useState(a.state),[o,f]=g.useState(),[m,y]=g.useState({isTransitioning:!1}),[v,p]=g.useState(),[b,T]=g.useState(),[x,R]=g.useState(),w=g.useRef(new Map),k=g.useCallback(($,{deletedFetchers:ee,flushSync:J,viewTransitionOpts:O})=>{$.fetchers.forEach((be,Z)=>{be.data!==void 0&&w.current.set(Z,be.data)}),ee.forEach(be=>w.current.delete(be)),cy(J===!1||i!=null,'You provided the `flushSync` option to a router update, but you are not using the `<RouterProvider>` from `react-router/dom` so `ReactDOM.flushSync()` is unavailable. Please update your app to `import { RouterProvider } from "react-router/dom"` and ensure you have `react-dom` installed as a dependency to use the `flushSync` option.');let ue=a.window!=null&&a.window.document!=null&&typeof a.window.document.startViewTransition=="function";if(cy(O==null||ue,"You provided the `viewTransition` option to a router update, but you do not appear to be running in a DOM environment as `window.startViewTransition` is not available."),!O||!ue){i&&J?i(()=>c($)):g.startTransition(()=>c($));return}if(i&&J){i(()=>{b&&(v&&v.resolve(),b.skipTransition()),y({isTransitioning:!0,flushSync:!0,currentLocation:O.currentLocation,nextLocation:O.nextLocation})});let be=a.window.document.startViewTransition(()=>{i(()=>c($))});be.finished.finally(()=>{i(()=>{p(void 0),T(void 0),f(void 0),y({isTransitioning:!1})})}),i(()=>T(be));return}b?(v&&v.resolve(),b.skipTransition(),R({state:$,currentLocation:O.currentLocation,nextLocation:O.nextLocation})):(f($),y({isTransitioning:!0,flushSync:!1,currentLocation:O.currentLocation,nextLocation:O.nextLocation}))},[a.window,i,b,v]);g.useLayoutEffect(()=>a.subscribe(k),[a,k]),g.useEffect(()=>{m.isTransitioning&&!m.flushSync&&p(new E1)},[m]),g.useEffect(()=>{if(v&&o&&a.window){let $=o,ee=v.promise,J=a.window.document.startViewTransition(async()=>{g.startTransition(()=>c($)),await ee});J.finished.finally(()=>{p(void 0),T(void 0),f(void 0),y({isTransitioning:!1})}),T(J)}},[o,v,a.window]),g.useEffect(()=>{v&&o&&u.location.key===o.location.key&&v.resolve()},[v,b,u.location,o]),g.useEffect(()=>{!m.isTransitioning&&x&&(f(x.state),y({isTransitioning:!0,flushSync:!1,currentLocation:x.currentLocation,nextLocation:x.nextLocation}),R(void 0))},[m.isTransitioning,x]);let B=g.useMemo(()=>({createHref:a.createHref,encodeLocation:a.encodeLocation,go:$=>a.navigate($),push:($,ee,J)=>a.navigate($,{state:ee,preventScrollReset:J==null?void 0:J.preventScrollReset}),replace:($,ee,J)=>a.navigate($,{replace:!0,state:ee,preventScrollReset:J==null?void 0:J.preventScrollReset})}),[a]),U=a.basename||"/",Y=g.useMemo(()=>({router:a,navigator:B,static:!1,basename:U}),[a,B,U]);return g.createElement(g.Fragment,null,g.createElement(Cl.Provider,{value:Y},g.createElement(vr.Provider,{value:u},g.createElement(qy.Provider,{value:w.current},g.createElement(Vo.Provider,{value:m},g.createElement(R1,{basename:U,location:u.location,navigationType:u.historyAction,navigator:B},g.createElement(S1,{routes:a.routes,future:a.future,state:u})))))),null)}var S1=g.memo(x1);function x1({routes:a,future:i,state:u}){return u1(a,void 0,u,i)}function _1(a){return r1(a.context)}function R1({basename:a="/",children:i=null,location:u,navigationType:c="POP",navigator:o,static:f=!1}){ze(!gr(),"You cannot render a <Router> inside another <Router>. You should never have more than one in your app.");let m=a.replace(/^\/*/,"/"),y=g.useMemo(()=>({basename:m,navigator:o,static:f,future:{}}),[m,o,f]);typeof u=="string"&&(u=Pa(u));let{pathname:v="/",search:p="",hash:b="",state:T=null,key:x="default"}=u,R=g.useMemo(()=>{let w=on(v,m);return w==null?null:{location:{pathname:w,search:p,hash:b,state:T,key:x},navigationType:c}},[m,v,p,b,T,x,c]);return Ot(R!=null,`<Router basename="${m}"> is not able to match the URL "${v}${p}${b}" because it does not start with the basename, so the <Router> won't render anything.`),R==null?null:g.createElement($n.Provider,{value:y},g.createElement(Qu.Provider,{children:i,value:R}))}var zu="get",Lu="application/x-www-form-urlencoded";function Zu(a){return a!=null&&typeof a.tagName=="string"}function T1(a){return Zu(a)&&a.tagName.toLowerCase()==="button"}function N1(a){return Zu(a)&&a.tagName.toLowerCase()==="form"}function C1(a){return Zu(a)&&a.tagName.toLowerCase()==="input"}function j1(a){return!!(a.metaKey||a.altKey||a.ctrlKey||a.shiftKey)}function O1(a,i){return a.button===0&&(!i||i==="_self")&&!j1(a)}function jo(a=""){return new URLSearchParams(typeof a=="string"||Array.isArray(a)||a instanceof URLSearchParams?a:Object.keys(a).reduce((i,u)=>{let c=a[u];return i.concat(Array.isArray(c)?c.map(o=>[u,o]):[[u,c]])},[]))}function D1(a,i){let u=jo(a);return i&&i.forEach((c,o)=>{u.has(o)||i.getAll(o).forEach(f=>{u.append(o,f)})}),u}var Ou=null;function A1(){if(Ou===null)try{new FormData(document.createElement("form"),0),Ou=!1}catch{Ou=!0}return Ou}var w1=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function oo(a){return a!=null&&!w1.has(a)?(Ot(!1,`"${a}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${Lu}"`),null):a}function M1(a,i){let u,c,o,f,m;if(N1(a)){let y=a.getAttribute("action");c=y?on(y,i):null,u=a.getAttribute("method")||zu,o=oo(a.getAttribute("enctype"))||Lu,f=new FormData(a)}else if(T1(a)||C1(a)&&(a.type==="submit"||a.type==="image")){let y=a.form;if(y==null)throw new Error('Cannot submit a <button> or <input type="submit"> without a <form>');let v=a.getAttribute("formaction")||y.getAttribute("action");if(c=v?on(v,i):null,u=a.getAttribute("formmethod")||y.getAttribute("method")||zu,o=oo(a.getAttribute("formenctype"))||oo(y.getAttribute("enctype"))||Lu,f=new FormData(y,a),!A1()){let{name:p,type:b,value:T}=a;if(b==="image"){let x=p?`${p}.`:"";f.append(`${x}x`,"0"),f.append(`${x}y`,"0")}else p&&f.append(p,T)}}else{if(Zu(a))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');u=zu,c=null,o=Lu,m=a}return f&&o==="text/plain"&&(m=f,f=void 0),{action:c,method:u.toLowerCase(),encType:o,formData:f,body:m}}function Qo(a,i){if(a===!1||a===null||typeof a>"u")throw new Error(i)}async function z1(a,i){if(a.id in i)return i[a.id];try{let u=await import(a.module);return i[a.id]=u,u}catch(u){return console.error(`Error loading route module \`${a.module}\`, reloading page...`),console.error(u),window.__reactRouterContext&&window.__reactRouterContext.isSpaMode,window.location.reload(),new Promise(()=>{})}}function L1(a){return a==null?!1:a.href==null?a.rel==="preload"&&typeof a.imageSrcSet=="string"&&typeof a.imageSizes=="string":typeof a.rel=="string"&&typeof a.href=="string"}async function U1(a,i,u){let c=await Promise.all(a.map(async o=>{let f=i.routes[o.route.id];if(f){let m=await z1(f,u);return m.links?m.links():[]}return[]}));return k1(c.flat(1).filter(L1).filter(o=>o.rel==="stylesheet"||o.rel==="preload").map(o=>o.rel==="stylesheet"?{...o,rel:"prefetch",as:"style"}:{...o,rel:"prefetch"}))}function sy(a,i,u,c,o,f){let m=(v,p)=>u[p]?v.route.id!==u[p].route.id:!0,y=(v,p)=>{var b;return u[p].pathname!==v.pathname||((b=u[p].route.path)==null?void 0:b.endsWith("*"))&&u[p].params["*"]!==v.params["*"]};return f==="assets"?i.filter((v,p)=>m(v,p)||y(v,p)):f==="data"?i.filter((v,p)=>{var T;let b=c.routes[v.route.id];if(!b||!b.hasLoader)return!1;if(m(v,p)||y(v,p))return!0;if(v.route.shouldRevalidate){let x=v.route.shouldRevalidate({currentUrl:new URL(o.pathname+o.search+o.hash,window.origin),currentParams:((T=u[0])==null?void 0:T.params)||{},nextUrl:new URL(a,window.origin),nextParams:v.params,defaultShouldRevalidate:!0});if(typeof x=="boolean")return x}return!0}):[]}function H1(a,i){return B1(a.map(u=>{let c=i.routes[u.route.id];if(!c)return[];let o=[c.module];return c.imports&&(o=o.concat(c.imports)),o}).flat(1))}function B1(a){return[...new Set(a)]}function q1(a){let i={},u=Object.keys(a).sort();for(let c of u)i[c]=a[c];return i}function k1(a,i){let u=new Set;return new Set(i),a.reduce((c,o)=>{let f=JSON.stringify(q1(o));return u.has(f)||(u.add(f),c.push({key:f,link:o})),c},[])}function V1(a){let i=typeof a=="string"?new URL(a,typeof window>"u"?"server://singlefetch/":window.location.origin):a;return i.pathname==="/"?i.pathname="_root.data":i.pathname=`${i.pathname.replace(/\/$/,"")}.data`,i}function Y1(){let a=g.useContext(Cl);return Qo(a,"You must render this element inside a <DataRouterContext.Provider> element"),a}function G1(){let a=g.useContext(vr);return Qo(a,"You must render this element inside a <DataRouterStateContext.Provider> element"),a}var Zo=g.createContext(void 0);Zo.displayName="FrameworkContext";function Zy(){let a=g.useContext(Zo);return Qo(a,"You must render this element inside a <HydratedRouter> element"),a}function X1(a,i){let u=g.useContext(Zo),[c,o]=g.useState(!1),[f,m]=g.useState(!1),{onFocus:y,onBlur:v,onMouseEnter:p,onMouseLeave:b,onTouchStart:T}=i,x=g.useRef(null);g.useEffect(()=>{if(a==="render"&&m(!0),a==="viewport"){let k=U=>{U.forEach(Y=>{m(Y.isIntersecting)})},B=new IntersectionObserver(k,{threshold:.5});return x.current&&B.observe(x.current),()=>{B.disconnect()}}},[a]),g.useEffect(()=>{if(c){let k=setTimeout(()=>{m(!0)},100);return()=>{clearTimeout(k)}}},[c]);let R=()=>{o(!0)},w=()=>{o(!1),m(!1)};return u?a!=="intent"?[f,x,{}]:[f,x,{onFocus:sr(y,R),onBlur:sr(v,w),onMouseEnter:sr(p,R),onMouseLeave:sr(b,w),onTouchStart:sr(T,R)}]:[!1,x,{}]}function sr(a,i){return u=>{a&&a(u),u.defaultPrevented||i(u)}}function Q1({page:a,...i}){let{router:u}=Y1(),c=g.useMemo(()=>$a(u.routes,a,u.basename),[u.routes,a,u.basename]);return c?g.createElement(K1,{page:a,matches:c,...i}):null}function Z1(a){let{manifest:i,routeModules:u}=Zy(),[c,o]=g.useState([]);return g.useEffect(()=>{let f=!1;return U1(a,i,u).then(m=>{f||o(m)}),()=>{f=!0}},[a,i,u]),c}function K1({page:a,matches:i,...u}){let c=Jn(),{manifest:o,routeModules:f}=Zy(),{loaderData:m,matches:y}=G1(),v=g.useMemo(()=>sy(a,i,y,o,c,"data"),[a,i,y,o,c]),p=g.useMemo(()=>sy(a,i,y,o,c,"assets"),[a,i,y,o,c]),b=g.useMemo(()=>{if(a===c.pathname+c.search+c.hash)return[];let R=new Set,w=!1;if(i.forEach(B=>{var Y;let U=o.routes[B.route.id];!U||!U.hasLoader||(!v.some($=>$.route.id===B.route.id)&&B.route.id in m&&((Y=f[B.route.id])!=null&&Y.shouldRevalidate)||U.hasClientLoader?w=!0:R.add(B.route.id))}),R.size===0)return[];let k=V1(a);return w&&R.size>0&&k.searchParams.set("_routes",i.filter(B=>R.has(B.route.id)).map(B=>B.route.id).join(",")),[k.pathname+k.search]},[m,c,o,v,i,a,f]),T=g.useMemo(()=>H1(p,o),[p,o]),x=Z1(p);return g.createElement(g.Fragment,null,b.map(R=>g.createElement("link",{key:R,rel:"prefetch",as:"fetch",href:R,...u})),T.map(R=>g.createElement("link",{key:R,rel:"modulepreload",href:R,...u})),x.map(({key:R,link:w})=>g.createElement("link",{key:R,...w})))}function $1(...a){return i=>{a.forEach(u=>{typeof u=="function"?u(i):u!=null&&(u.current=i)})}}var Ky=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";try{Ky&&(window.__reactRouterVersion="7.1.5")}catch{}function J1(a,i){return H0({basename:i==null?void 0:i.basename,future:i==null?void 0:i.future,history:u0({window:i==null?void 0:i.window}),hydrationData:F1(),routes:a,mapRouteProperties:g1,dataStrategy:i==null?void 0:i.dataStrategy,patchRoutesOnNavigation:i==null?void 0:i.patchRoutesOnNavigation,window:i==null?void 0:i.window}).initialize()}function F1(){let a=window==null?void 0:window.__staticRouterHydrationData;return a&&a.errors&&(a={...a,errors:P1(a.errors)}),a}function P1(a){if(!a)return null;let i=Object.entries(a),u={};for(let[c,o]of i)if(o&&o.__type==="RouteErrorResponse")u[c]=new Bu(o.status,o.statusText,o.data,o.internal===!0);else if(o&&o.__type==="Error"){if(o.__subType){let f=window[o.__subType];if(typeof f=="function")try{let m=new f(o.message);m.stack="",u[c]=m}catch{}}if(u[c]==null){let f=new Error(o.message);f.stack="",u[c]=f}}else u[c]=o;return u}var $y=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,ae=g.forwardRef(function({onClick:i,discover:u="render",prefetch:c="none",relative:o,reloadDocument:f,replace:m,state:y,target:v,to:p,preventScrollReset:b,viewTransition:T,...x},R){let{basename:w}=g.useContext($n),k=typeof p=="string"&&$y.test(p),B,U=!1;if(typeof p=="string"&&k&&(B=p,Ky))try{let Z=new URL(window.location.href),ie=p.startsWith("//")?new URL(Z.protocol+p):new URL(p),je=on(ie.pathname,w);ie.origin===Z.origin&&je!=null?p=je+ie.search+ie.hash:U=!0}catch{Ot(!1,`<Link to="${p}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}let Y=a1(p,{relative:o}),[$,ee,J]=X1(c,x),O=tE(p,{replace:m,state:y,target:v,preventScrollReset:b,relative:o,viewTransition:T});function ue(Z){i&&i(Z),Z.defaultPrevented||O(Z)}let be=g.createElement("a",{...x,...J,href:B||Y,onClick:U||f?i:ue,ref:$1(R,ee),target:v,"data-discover":!k&&u==="render"?"true":void 0});return $&&!k?g.createElement(g.Fragment,null,be,g.createElement(Q1,{page:Y})):be});ae.displayName="Link";var W1=g.forwardRef(function({"aria-current":i="page",caseSensitive:u=!1,className:c="",end:o=!1,style:f,to:m,viewTransition:y,children:v,...p},b){let T=Er(m,{relative:p.relative}),x=Jn(),R=g.useContext(vr),{navigator:w,basename:k}=g.useContext($n),B=R!=null&&uE(T)&&y===!0,U=w.encodeLocation?w.encodeLocation(T).pathname:T.pathname,Y=x.pathname,$=R&&R.navigation&&R.navigation.location?R.navigation.location.pathname:null;u||(Y=Y.toLowerCase(),$=$?$.toLowerCase():null,U=U.toLowerCase()),$&&k&&($=on($,k)||$);const ee=U!=="/"&&U.endsWith("/")?U.length-1:U.length;let J=Y===U||!o&&Y.startsWith(U)&&Y.charAt(ee)==="/",O=$!=null&&($===U||!o&&$.startsWith(U)&&$.charAt(U.length)==="/"),ue={isActive:J,isPending:O,isTransitioning:B},be=J?i:void 0,Z;typeof c=="function"?Z=c(ue):Z=[c,J?"active":null,O?"pending":null,B?"transitioning":null].filter(Boolean).join(" ");let ie=typeof f=="function"?f(ue):f;return g.createElement(ae,{...p,"aria-current":be,className:Z,ref:b,style:ie,to:m,viewTransition:y},typeof v=="function"?v(ue):v)});W1.displayName="NavLink";var I1=g.forwardRef(({discover:a="render",fetcherKey:i,navigate:u,reloadDocument:c,replace:o,state:f,method:m=zu,action:y,onSubmit:v,relative:p,preventScrollReset:b,viewTransition:T,...x},R)=>{let w=iE(),k=rE(y,{relative:p}),B=m.toLowerCase()==="get"?"get":"post",U=typeof y=="string"&&$y.test(y),Y=$=>{if(v&&v($),$.defaultPrevented)return;$.preventDefault();let ee=$.nativeEvent.submitter,J=(ee==null?void 0:ee.getAttribute("formmethod"))||m;w(ee||$.currentTarget,{fetcherKey:i,method:J,navigate:u,replace:o,state:f,relative:p,preventScrollReset:b,viewTransition:T})};return g.createElement("form",{ref:R,method:B,action:k,onSubmit:c?v:Y,...x,"data-discover":!U&&a==="render"?"true":void 0})});I1.displayName="Form";function eE(a){return`${a} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function Jy(a){let i=g.useContext(Cl);return ze(i,eE(a)),i}function tE(a,{target:i,replace:u,state:c,preventScrollReset:o,relative:f,viewTransition:m}={}){let y=Yy(),v=Jn(),p=Er(a,{relative:f});return g.useCallback(b=>{if(O1(b,i)){b.preventDefault();let T=u!==void 0?u:Ja(v)===Ja(p);y(a,{replace:T,state:c,preventScrollReset:o,relative:f,viewTransition:m})}},[v,y,p,u,c,i,a,o,f,m])}function nE(a){Ot(typeof URLSearchParams<"u","You cannot use the `useSearchParams` hook in a browser that does not support the URLSearchParams API. If you need to support Internet Explorer 11, we recommend you load a polyfill such as https://github.com/ungap/url-search-params.");let i=g.useRef(jo(a)),u=g.useRef(!1),c=Jn(),o=g.useMemo(()=>D1(c.search,u.current?null:i.current),[c.search]),f=Yy(),m=g.useCallback((y,v)=>{const p=jo(typeof y=="function"?y(o):y);u.current=!0,f("?"+p,v)},[f,o]);return[o,m]}var aE=0,lE=()=>`__${String(++aE)}__`;function iE(){let{router:a}=Jy("useSubmit"),{basename:i}=g.useContext($n),u=m1();return g.useCallback(async(c,o={})=>{let{action:f,method:m,encType:y,formData:v,body:p}=M1(c,i);if(o.navigate===!1){let b=o.fetcherKey||lE();await a.fetch(b,u,o.action||f,{preventScrollReset:o.preventScrollReset,formData:v,body:p,formMethod:o.method||m,formEncType:o.encType||y,flushSync:o.flushSync})}else await a.navigate(o.action||f,{preventScrollReset:o.preventScrollReset,formData:v,body:p,formMethod:o.method||m,formEncType:o.encType||y,replace:o.replace,state:o.state,fromRouteId:u,flushSync:o.flushSync,viewTransition:o.viewTransition})},[a,i,u])}function rE(a,{relative:i}={}){let{basename:u}=g.useContext($n),c=g.useContext(Bn);ze(c,"useFormAction must be used inside a RouteContext");let[o]=c.matches.slice(-1),f={...Er(a||".",{relative:i})},m=Jn();if(a==null){f.search=m.search;let y=new URLSearchParams(f.search),v=y.getAll("index");if(v.some(b=>b==="")){y.delete("index"),v.filter(T=>T).forEach(T=>y.append("index",T));let b=y.toString();f.search=b?`?${b}`:""}}return(!a||a===".")&&o.route.index&&(f.search=f.search?f.search.replace(/^\?/,"?index&"):"?index"),u!=="/"&&(f.pathname=f.pathname==="/"?u:Kn([u,f.pathname])),Ja(f)}function uE(a,i={}){let u=g.useContext(Vo);ze(u!=null,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?");let{basename:c}=Jy("useViewTransitionState"),o=Er(a,{relative:i.relative});if(!u.isTransitioning)return!1;let f=on(u.currentLocation.pathname,c)||u.currentLocation.pathname,m=on(u.nextLocation.pathname,c)||u.nextLocation.pathname;return Hu(o.pathname,m)!=null||Hu(o.pathname,f)!=null}new TextEncoder;var Fy=Oy();const di=pr(Fy);/** + * react-router v7.1.5 * * Copyright (c) Remix Software Inc. * @@ -76,8 +76,8 @@ Please change the parent <Route path="${z}"> to <Route path="${z==="/"?"*":`${z} * LICENSE.md file in the root directory of this source tree. * * @license MIT - */function cE(a){return g.createElement(b1,{flushSync:Jy.flushSync,...a})}const sE=g.createContext({show:!1,toggle:()=>{}}),oE=a=>{const i=ut.c(8),{children:u}=a,[c,o]=g.useState(!1);let f;i[0]!==c?(f=()=>{o(!c)},i[0]=c,i[1]=f):f=i[1];const h=f;let y;i[2]!==c||i[3]!==h?(y={show:c,toggle:h},i[2]=c,i[3]=h,i[4]=y):y=i[4];let p;return i[5]!==u||i[6]!==y?(p=m.jsx(sE.Provider,{value:y,children:u}),i[5]=u,i[6]=y,i[7]=p):p=i[7],p};async function fE(){return await(await fetch("/api/user/")).json()}const jo={name:"",email:"",permissions:{admin:!1,active:!1},id:"",nrens:[],oidc_sub:"",role:""},Zo=g.createContext({user:jo,logout:()=>{},setUser:()=>{}}),dE=a=>{const i=ut.c(8),{children:u}=a,[c,o]=g.useState(jo);let f;i[0]===Symbol.for("react.memo_cache_sentinel")?(f=async function(){await fetch("/logout"),o(jo)},i[0]=f):f=i[0];const h=f;let y,p;i[1]===Symbol.for("react.memo_cache_sentinel")?(y=()=>{fE().then(C=>{o(C)})},p=[],i[1]=y,i[2]=p):(y=i[1],p=i[2]),g.useEffect(y,p);let v;i[3]!==c?(v={user:c,logout:h,setUser:o},i[3]=c,i[4]=v):v=i[4];let b;return i[5]!==u||i[6]!==v?(b=m.jsx(Zo.Provider,{value:v,children:u}),i[5]=u,i[6]=v,i[7]=b):b=i[7],b},hE=g.createContext({filterSelection:{selectedYears:[],selectedNrens:[]},setFilterSelection:()=>{}}),mE=a=>{const i=ut.c(6),{children:u}=a;let c;i[0]===Symbol.for("react.memo_cache_sentinel")?(c={selectedYears:[],selectedNrens:[]},i[0]=c):c=i[0];const[o,f]=g.useState(c);let h;i[1]!==o?(h={filterSelection:o,setFilterSelection:f},i[1]=o,i[2]=h):h=i[2];let y;return i[3]!==u||i[4]!==h?(y=m.jsx(hE.Provider,{value:h,children:u}),i[3]=u,i[4]=h,i[5]=y):y=i[5],y},yE=g.createContext(null),pE=a=>{const i=ut.c(2),{children:u}=a,c=g.useRef(null);let o;return i[0]!==u?(o=m.jsx(yE.Provider,{value:c,children:u}),i[0]=u,i[1]=o):o=i[1],o},Fy=g.createContext({preview:!1,setPreview:()=>{}}),vE=a=>{const i=ut.c(5),{children:u}=a,[c,o]=g.useState(!1);let f;i[0]!==c?(f={preview:c,setPreview:o},i[0]=c,i[1]=f):f=i[1];let h;return i[2]!==u||i[3]!==f?(h=m.jsx(Fy.Provider,{value:f,children:u}),i[2]=u,i[3]=f,i[4]=h):h=i[4],h};async function gE(){try{return await(await fetch("/api/nren/list")).json()}catch{return[]}}const EE=g.createContext({nrens:[],setNrens:()=>{}}),bE=a=>{const i=ut.c(8),{children:u}=a;let c;i[0]===Symbol.for("react.memo_cache_sentinel")?(c=[],i[0]=c):c=i[0];const[o,f]=g.useState(c);let h,y;i[1]===Symbol.for("react.memo_cache_sentinel")?(h=()=>{gE().then(b=>f(b))},y=[],i[1]=h,i[2]=y):(h=i[1],y=i[2]),g.useEffect(h,y);let p;i[3]!==o?(p={nrens:o,setNrens:f},i[3]=o,i[4]=p):p=i[4];let v;return i[5]!==u||i[6]!==p?(v=m.jsx(EE.Provider,{value:p,children:u}),i[5]=u,i[6]=p,i[7]=v):v=i[7],v},oo={TRACK_EVENT:"trackEvent",TRACK_LINK:"trackLink",TRACK_VIEW:"trackPageView"};class SE{constructor(i){jm(this,"mutationObserver");if(!i.urlBase)throw new Error("Matomo urlBase is required.");if(!i.siteId)throw new Error("Matomo siteId is required.");this.initialize(i)}initialize({urlBase:i,siteId:u,userId:c,trackerUrl:o,srcUrl:f,disabled:h,heartBeat:y,requireConsent:p=!1,configurations:v={}}){const b=i[i.length-1]!=="/"?`${i}/`:i;if(typeof window>"u"||(window._paq=window._paq||[],window._paq.length!==0)||h)return;p&&this.pushInstruction("requireConsent"),this.pushInstruction("setTrackerUrl",o??`${b}matomo.php`),this.pushInstruction("setSiteId",u),c&&this.pushInstruction("setUserId",c),Object.entries(v).forEach(([A,H])=>{H instanceof Array?this.pushInstruction(A,...H):this.pushInstruction(A,H)}),(!y||y&&y.active)&&this.enableHeartBeatTimer((y&&y.seconds)??15);const C=document,x=C.createElement("script"),R=C.getElementsByTagName("script")[0];x.type="text/javascript",x.async=!0,x.defer=!0,x.src=f||`${b}matomo.js`,R&&R.parentNode&&R.parentNode.insertBefore(x,R)}enableHeartBeatTimer(i){this.pushInstruction("enableHeartBeatTimer",i)}trackEventsForElements(i){i.length&&i.forEach(u=>{u.addEventListener("click",()=>{const{matomoCategory:c,matomoAction:o,matomoName:f,matomoValue:h}=u.dataset;if(c&&o)this.trackEvent({category:c,action:o,name:f,value:Number(h)});else throw new Error("Error: data-matomo-category and data-matomo-action are required.")})})}trackEvents(){const i='[data-matomo-event="click"]';let u=!1;if(this.mutationObserver||(u=!0,this.mutationObserver=new MutationObserver(c=>{c.forEach(o=>{o.addedNodes.forEach(f=>{if(!(f instanceof HTMLElement))return;f.matches(i)&&this.trackEventsForElements([f]);const h=Array.from(f.querySelectorAll(i));this.trackEventsForElements(h)})})})),this.mutationObserver.observe(document,{childList:!0,subtree:!0}),u){const c=Array.from(document.querySelectorAll(i));this.trackEventsForElements(c)}}stopObserving(){this.mutationObserver&&this.mutationObserver.disconnect()}trackEvent({category:i,action:u,name:c,value:o,...f}){if(i&&u)this.track({data:[oo.TRACK_EVENT,i,u,c,o],...f});else throw new Error("Error: category and action are required.")}giveConsent(){this.pushInstruction("setConsentGiven")}trackLink({href:i,linkType:u="link"}){this.pushInstruction(oo.TRACK_LINK,i,u)}trackPageView(i){this.track({data:[oo.TRACK_VIEW],...i})}track({data:i=[],documentTitle:u=window.document.title,href:c,customDimensions:o=!1}){i.length&&(o&&Array.isArray(o)&&o.length&&o.map(f=>this.pushInstruction("setCustomDimension",f.id,f.value)),this.pushInstruction("setCustomUrl",c??window.location.href),this.pushInstruction("setDocumentTitle",u),this.pushInstruction(...i))}pushInstruction(i,...u){return typeof window<"u"&&window._paq.push([i,...u]),this}}function xE(a){return window.location.hostname==="localhost"&&(console.log("Matomo tracking disabled in development mode."),a.disabled=!0),new SE(a)}const Ko=g.createContext({consent:null,setConsent:()=>{}}),_E=a=>{const i=ut.c(7),{children:u}=a,c=RE;let o;i[0]===Symbol.for("react.memo_cache_sentinel")?(o=c(),i[0]=o):o=i[0];const[f,h]=g.useState(o);let y;i[1]===Symbol.for("react.memo_cache_sentinel")?(y=b=>h(b),i[1]=y):y=i[1];let p;i[2]!==f?(p={setConsent:y,consent:f},i[2]=f,i[3]=p):p=i[3];let v;return i[4]!==u||i[5]!==p?(v=m.jsx(Ko.Provider,{value:p,children:u}),i[4]=u,i[5]=p,i[6]=v):v=i[6],v};function RE(){const a=localStorage.getItem("matomo_consent");if(a){const i=JSON.parse(a);if(new Date(i.expiry)>new Date)return i.consent}return null}const Py=g.createContext(null),TE=function(a){const i=ut.c(5),{children:u}=a,o=!g.useContext(Ko).consent;let f;i[0]!==o?(f=xE({urlBase:"https://prod-swd-webanalytics01.geant.org/",siteId:1,disabled:o}),i[0]=o,i[1]=f):f=i[1];const h=f;let y;return i[2]!==u||i[3]!==h?(y=m.jsx(Py.Provider,{value:h,children:u}),i[2]=u,i[3]=h,i[4]=y):y=i[4],y},NE=()=>{const a=JSON.parse(localStorage.getItem("config")??"{}"),i={};for(const u in a){const c=a[u];c.expireTime&&c.expireTime<Date.now()||c&&(i[u]=c)}return i},fo=a=>{localStorage.setItem("config",JSON.stringify(a))},CE=g.createContext({getConfig:()=>{},setConfig:()=>{}}),jE=a=>{const i=ut.c(12),{children:u}=a;let c;i[0]===Symbol.for("react.memo_cache_sentinel")?(c=NE(),i[0]=c):c=i[0];const[o,f]=g.useState(c);let h;i[1]!==o?(h=(x,R,A)=>{var Z;if(!x)throw new Error("Valid config key must be provided");if(R==null){const Q={...o};delete Q[x],f(Q),fo(Q);return}const H=JSON.stringify(R),k=JSON.stringify((Z=o[x])==null?void 0:Z.value);if(H===k)return;const z=A?A.getTime():null;if(z&&z<Date.now())throw new Error("Timeout must be in the future");z?(f({...o,[x]:{value:R,expireTime:z}}),fo({...o,[x]:{value:R,expireTime:z}})):(f({...o,[x]:{value:R}}),fo({...o,[x]:{value:R}}))},i[1]=o,i[2]=h):h=i[2];const y=h;let p;i[3]!==o||i[4]!==y?(p=x=>{const R=o[x];if(R!=null&&R.expireTime&&R.expireTime<Date.now()){y(x);return}if(R!=null)return R.value},i[3]=o,i[4]=y,i[5]=p):p=i[5];const v=p;let b;i[6]!==v||i[7]!==y?(b={getConfig:v,setConfig:y},i[6]=v,i[7]=y,i[8]=b):b=i[8];let C;return i[9]!==u||i[10]!==b?(C=m.jsx(CE.Provider,{value:b,children:u}),i[9]=u,i[10]=b,i[11]=C):C=i[11],C};function OE(a){const i=ut.c(2),{children:u}=a;let c;return i[0]!==u?(c=m.jsx(jE,{children:m.jsx(_E,{children:m.jsx(TE,{children:m.jsx(oE,{children:m.jsx(dE,{children:m.jsx(mE,{children:m.jsx(pE,{children:m.jsx(vE,{children:m.jsx(bE,{children:u})})})})})})})})}),i[0]=u,i[1]=c):c=i[1],c}var $t=(a=>(a.ConnectedProportion="proportion",a.ConnectivityLevel="level",a.ConnectionCarrier="carrier",a.ConnectivityLoad="load",a.ConnectivityGrowth="growth",a.CommercialConnectivity="commercial",a.CommercialChargingLevel="charging",a))($t||{}),Bt=(a=>(a.network_services="network_services",a.isp_support="isp_support",a.security="security",a.identity="identity",a.collaboration="collaboration",a.multimedia="multimedia",a.storage_and_hosting="storage_and_hosting",a.professional_services="professional_services",a))(Bt||{}),ho={exports:{}};/*! + */function cE(a){return g.createElement(b1,{flushSync:Fy.flushSync,...a})}const sE=g.createContext({show:!1,toggle:()=>{}}),oE=a=>{const i=st.c(8),{children:u}=a,[c,o]=g.useState(!1);let f;i[0]!==c?(f=()=>{o(!c)},i[0]=c,i[1]=f):f=i[1];const m=f;let y;i[2]!==c||i[3]!==m?(y={show:c,toggle:m},i[2]=c,i[3]=m,i[4]=y):y=i[4];let v;return i[5]!==u||i[6]!==y?(v=h.jsx(sE.Provider,{value:y,children:u}),i[5]=u,i[6]=y,i[7]=v):v=i[7],v};async function fE(){return await(await fetch("/api/user/")).json()}const Oo={name:"",email:"",permissions:{admin:!1,active:!1},id:"",nrens:[],oidc_sub:"",role:""},Ko=g.createContext({user:Oo,logout:()=>{},setUser:()=>{}}),dE=a=>{const i=st.c(8),{children:u}=a,[c,o]=g.useState(Oo);let f;i[0]===Symbol.for("react.memo_cache_sentinel")?(f=async function(){await fetch("/logout"),o(Oo)},i[0]=f):f=i[0];const m=f;let y,v;i[1]===Symbol.for("react.memo_cache_sentinel")?(y=()=>{fE().then(T=>{o(T)})},v=[],i[1]=y,i[2]=v):(y=i[1],v=i[2]),g.useEffect(y,v);let p;i[3]!==c?(p={user:c,logout:m,setUser:o},i[3]=c,i[4]=p):p=i[4];let b;return i[5]!==u||i[6]!==p?(b=h.jsx(Ko.Provider,{value:p,children:u}),i[5]=u,i[6]=p,i[7]=b):b=i[7],b},hE=g.createContext({filterSelection:{selectedYears:[],selectedNrens:[]},setFilterSelection:()=>{}}),mE=a=>{const i=st.c(6),{children:u}=a;let c;i[0]===Symbol.for("react.memo_cache_sentinel")?(c={selectedYears:[],selectedNrens:[]},i[0]=c):c=i[0];const[o,f]=g.useState(c);let m;i[1]!==o?(m={filterSelection:o,setFilterSelection:f},i[1]=o,i[2]=m):m=i[2];let y;return i[3]!==u||i[4]!==m?(y=h.jsx(hE.Provider,{value:m,children:u}),i[3]=u,i[4]=m,i[5]=y):y=i[5],y},yE=g.createContext(null),pE=a=>{const i=st.c(2),{children:u}=a,c=g.useRef(null);let o;return i[0]!==u?(o=h.jsx(yE.Provider,{value:c,children:u}),i[0]=u,i[1]=o):o=i[1],o},Py=g.createContext({preview:!1,setPreview:()=>{}}),vE=a=>{const i=st.c(5),{children:u}=a,[c,o]=g.useState(!1);let f;i[0]!==c?(f={preview:c,setPreview:o},i[0]=c,i[1]=f):f=i[1];let m;return i[2]!==u||i[3]!==f?(m=h.jsx(Py.Provider,{value:f,children:u}),i[2]=u,i[3]=f,i[4]=m):m=i[4],m};async function gE(){try{return await(await fetch("/api/nren/list")).json()}catch{return[]}}const EE=g.createContext({nrens:[],setNrens:()=>{}}),bE=a=>{const i=st.c(8),{children:u}=a;let c;i[0]===Symbol.for("react.memo_cache_sentinel")?(c=[],i[0]=c):c=i[0];const[o,f]=g.useState(c);let m,y;i[1]===Symbol.for("react.memo_cache_sentinel")?(m=()=>{gE().then(b=>f(b))},y=[],i[1]=m,i[2]=y):(m=i[1],y=i[2]),g.useEffect(m,y);let v;i[3]!==o?(v={nrens:o,setNrens:f},i[3]=o,i[4]=v):v=i[4];let p;return i[5]!==u||i[6]!==v?(p=h.jsx(EE.Provider,{value:v,children:u}),i[5]=u,i[6]=v,i[7]=p):p=i[7],p},fo={TRACK_EVENT:"trackEvent",TRACK_LINK:"trackLink",TRACK_VIEW:"trackPageView"};class SE{constructor(i){Om(this,"mutationObserver");if(!i.urlBase)throw new Error("Matomo urlBase is required.");if(!i.siteId)throw new Error("Matomo siteId is required.");this.initialize(i)}initialize({urlBase:i,siteId:u,userId:c,trackerUrl:o,srcUrl:f,disabled:m,heartBeat:y,requireConsent:v=!1,configurations:p={}}){const b=i[i.length-1]!=="/"?`${i}/`:i;if(typeof window>"u"||(window._paq=window._paq||[],window._paq.length!==0)||m)return;v&&this.pushInstruction("requireConsent"),this.pushInstruction("setTrackerUrl",o??`${b}matomo.php`),this.pushInstruction("setSiteId",u),c&&this.pushInstruction("setUserId",c),Object.entries(p).forEach(([w,k])=>{k instanceof Array?this.pushInstruction(w,...k):this.pushInstruction(w,k)}),(!y||y&&y.active)&&this.enableHeartBeatTimer((y&&y.seconds)??15);const T=document,x=T.createElement("script"),R=T.getElementsByTagName("script")[0];x.type="text/javascript",x.async=!0,x.defer=!0,x.src=f||`${b}matomo.js`,R&&R.parentNode&&R.parentNode.insertBefore(x,R)}enableHeartBeatTimer(i){this.pushInstruction("enableHeartBeatTimer",i)}trackEventsForElements(i){i.length&&i.forEach(u=>{u.addEventListener("click",()=>{const{matomoCategory:c,matomoAction:o,matomoName:f,matomoValue:m}=u.dataset;if(c&&o)this.trackEvent({category:c,action:o,name:f,value:Number(m)});else throw new Error("Error: data-matomo-category and data-matomo-action are required.")})})}trackEvents(){const i='[data-matomo-event="click"]';let u=!1;if(this.mutationObserver||(u=!0,this.mutationObserver=new MutationObserver(c=>{c.forEach(o=>{o.addedNodes.forEach(f=>{if(!(f instanceof HTMLElement))return;f.matches(i)&&this.trackEventsForElements([f]);const m=Array.from(f.querySelectorAll(i));this.trackEventsForElements(m)})})})),this.mutationObserver.observe(document,{childList:!0,subtree:!0}),u){const c=Array.from(document.querySelectorAll(i));this.trackEventsForElements(c)}}stopObserving(){this.mutationObserver&&this.mutationObserver.disconnect()}trackEvent({category:i,action:u,name:c,value:o,...f}){if(i&&u)this.track({data:[fo.TRACK_EVENT,i,u,c,o],...f});else throw new Error("Error: category and action are required.")}giveConsent(){this.pushInstruction("setConsentGiven")}trackLink({href:i,linkType:u="link"}){this.pushInstruction(fo.TRACK_LINK,i,u)}trackPageView(i){this.track({data:[fo.TRACK_VIEW],...i})}track({data:i=[],documentTitle:u=window.document.title,href:c,customDimensions:o=!1}){i.length&&(o&&Array.isArray(o)&&o.length&&o.map(f=>this.pushInstruction("setCustomDimension",f.id,f.value)),this.pushInstruction("setCustomUrl",c??window.location.href),this.pushInstruction("setDocumentTitle",u),this.pushInstruction(...i))}pushInstruction(i,...u){return typeof window<"u"&&window._paq.push([i,...u]),this}}function xE(a){return window.location.hostname==="localhost"&&(console.log("Matomo tracking disabled in development mode."),a.disabled=!0),new SE(a)}const $o=g.createContext({consent:null,setConsent:()=>{}}),_E=a=>{const i=st.c(7),{children:u}=a,c=RE;let o;i[0]===Symbol.for("react.memo_cache_sentinel")?(o=c(),i[0]=o):o=i[0];const[f,m]=g.useState(o);let y;i[1]===Symbol.for("react.memo_cache_sentinel")?(y=b=>m(b),i[1]=y):y=i[1];let v;i[2]!==f?(v={setConsent:y,consent:f},i[2]=f,i[3]=v):v=i[3];let p;return i[4]!==u||i[5]!==v?(p=h.jsx($o.Provider,{value:v,children:u}),i[4]=u,i[5]=v,i[6]=p):p=i[6],p};function RE(){const a=localStorage.getItem("matomo_consent");if(a){const i=JSON.parse(a);if(new Date(i.expiry)>new Date)return i.consent}return null}const Wy=g.createContext(null),TE=function(a){const i=st.c(5),{children:u}=a,o=!g.useContext($o).consent;let f;i[0]!==o?(f=xE({urlBase:"https://prod-swd-webanalytics01.geant.org/",siteId:1,disabled:o}),i[0]=o,i[1]=f):f=i[1];const m=f;let y;return i[2]!==u||i[3]!==m?(y=h.jsx(Wy.Provider,{value:m,children:u}),i[2]=u,i[3]=m,i[4]=y):y=i[4],y},NE=()=>{const a=JSON.parse(localStorage.getItem("config")??"{}"),i={};for(const u in a){const c=a[u];c.expireTime&&c.expireTime<Date.now()||c&&(i[u]=c)}return i},ho=a=>{localStorage.setItem("config",JSON.stringify(a))},CE=g.createContext({getConfig:()=>{},setConfig:()=>{}}),jE=a=>{const i=st.c(12),{children:u}=a;let c;i[0]===Symbol.for("react.memo_cache_sentinel")?(c=NE(),i[0]=c):c=i[0];const[o,f]=g.useState(c);let m;i[1]!==o?(m=(x,R,w)=>{var Y;if(!x)throw new Error("Valid config key must be provided");if(R==null){const $={...o};delete $[x],f($),ho($);return}const k=JSON.stringify(R),B=JSON.stringify((Y=o[x])==null?void 0:Y.value);if(k===B)return;const U=w?w.getTime():null;if(U&&U<Date.now())throw new Error("Timeout must be in the future");U?(f({...o,[x]:{value:R,expireTime:U}}),ho({...o,[x]:{value:R,expireTime:U}})):(f({...o,[x]:{value:R}}),ho({...o,[x]:{value:R}}))},i[1]=o,i[2]=m):m=i[2];const y=m;let v;i[3]!==o||i[4]!==y?(v=x=>{const R=o[x];if(R!=null&&R.expireTime&&R.expireTime<Date.now()){y(x);return}if(R!=null)return R.value},i[3]=o,i[4]=y,i[5]=v):v=i[5];const p=v;let b;i[6]!==p||i[7]!==y?(b={getConfig:p,setConfig:y},i[6]=p,i[7]=y,i[8]=b):b=i[8];let T;return i[9]!==u||i[10]!==b?(T=h.jsx(CE.Provider,{value:b,children:u}),i[9]=u,i[10]=b,i[11]=T):T=i[11],T};function OE(a){const i=st.c(2),{children:u}=a;let c;return i[0]!==u?(c=h.jsx(jE,{children:h.jsx(_E,{children:h.jsx(TE,{children:h.jsx(oE,{children:h.jsx(dE,{children:h.jsx(mE,{children:h.jsx(pE,{children:h.jsx(vE,{children:h.jsx(bE,{children:u})})})})})})})})}),i[0]=u,i[1]=c):c=i[1],c}var $t=(a=>(a.ConnectedProportion="proportion",a.ConnectivityLevel="level",a.ConnectionCarrier="carrier",a.ConnectivityLoad="load",a.ConnectivityGrowth="growth",a.CommercialConnectivity="commercial",a.CommercialChargingLevel="charging",a))($t||{}),Ut=(a=>(a.network_services="network_services",a.isp_support="isp_support",a.security="security",a.identity="identity",a.collaboration="collaboration",a.multimedia="multimedia",a.storage_and_hosting="storage_and_hosting",a.professional_services="professional_services",a))(Ut||{}),mo={exports:{}};/*! Copyright (c) 2018 Jed Watson. Licensed under the MIT License (MIT), see http://jedwatson.github.io/classnames -*/var sy;function DE(){return sy||(sy=1,function(a){(function(){var i={}.hasOwnProperty;function u(){for(var f="",h=0;h<arguments.length;h++){var y=arguments[h];y&&(f=o(f,c(y)))}return f}function c(f){if(typeof f=="string"||typeof f=="number")return f;if(typeof f!="object")return"";if(Array.isArray(f))return u.apply(null,f);if(f.toString!==Object.prototype.toString&&!f.toString.toString().includes("[native code]"))return f.toString();var h="";for(var y in f)i.call(f,y)&&f[y]&&(h=o(h,y));return h}function o(f,h){return h?f?f+" "+h:f+h:f}a.exports?(u.default=u,a.exports=u):window.classNames=u})()}(ho)),ho.exports}var AE=DE();const we=yr(AE);function wE(a,i){if(a==null)return{};var u={};for(var c in a)if({}.hasOwnProperty.call(a,c)){if(i.includes(c))continue;u[c]=a[c]}return u}function Oo(a,i){return Oo=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(u,c){return u.__proto__=c,u},Oo(a,i)}function ME(a,i){a.prototype=Object.create(i.prototype),a.prototype.constructor=a,Oo(a,i)}const zE=["xxl","xl","lg","md","sm","xs"],LE="xs",Zu=g.createContext({prefixes:{},breakpoints:zE,minBreakpoint:LE});function Ve(a,i){const{prefixes:u}=g.useContext(Zu);return a||u[i]||i}function Wy(){const{breakpoints:a}=g.useContext(Zu);return a}function Iy(){const{minBreakpoint:a}=g.useContext(Zu);return a}function UE(){const{dir:a}=g.useContext(Zu);return a==="rtl"}function Ku(a){return a&&a.ownerDocument||document}function HE(a){var i=Ku(a);return i&&i.defaultView||window}function BE(a,i){return HE(a).getComputedStyle(a,i)}var qE=/([A-Z])/g;function kE(a){return a.replace(qE,"-$1").toLowerCase()}var VE=/^ms-/;function ju(a){return kE(a).replace(VE,"-ms-")}var YE=/^((translate|rotate|scale)(X|Y|Z|3d)?|matrix(3d)?|perspective|skew(X|Y)?)$/i;function GE(a){return!!(a&&YE.test(a))}function Nl(a,i){var u="",c="";if(typeof i=="string")return a.style.getPropertyValue(ju(i))||BE(a).getPropertyValue(ju(i));Object.keys(i).forEach(function(o){var f=i[o];!f&&f!==0?a.style.removeProperty(ju(o)):GE(o)?c+=o+"("+f+") ":u+=ju(o)+": "+f+";"}),c&&(u+="transform: "+c+";"),a.style.cssText+=";"+u}var mo={exports:{}},yo,oy;function XE(){if(oy)return yo;oy=1;var a="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return yo=a,yo}var po,fy;function QE(){if(fy)return po;fy=1;var a=XE();function i(){}function u(){}return u.resetWarningCache=i,po=function(){function c(h,y,p,v,b,C){if(C!==a){var x=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 x.name="Invariant Violation",x}}c.isRequired=c;function o(){return c}var f={array:c,bigint:c,bool:c,func:c,number:c,object:c,string:c,symbol:c,any:c,arrayOf:o,element:c,elementType:c,instanceOf:o,node:c,objectOf:o,oneOf:o,oneOfType:o,shape:o,exact:o,checkPropTypes:u,resetWarningCache:i};return f.PropTypes=f,f},po}var dy;function ZE(){return dy||(dy=1,mo.exports=QE()()),mo.exports}var KE=ZE();const ba=yr(KE),hy={disabled:!1},ep=Xt.createContext(null);var $E=function(i){return i.scrollTop},hr="unmounted",Sl="exited",Ja="entering",_l="entered",Do="exiting",xa=function(a){ME(i,a);function i(c,o){var f;f=a.call(this,c,o)||this;var h=o,y=h&&!h.isMounting?c.enter:c.appear,p;return f.appearStatus=null,c.in?y?(p=Sl,f.appearStatus=Ja):p=_l:c.unmountOnExit||c.mountOnEnter?p=hr:p=Sl,f.state={status:p},f.nextCallback=null,f}i.getDerivedStateFromProps=function(o,f){var h=o.in;return h&&f.status===hr?{status:Sl}:null};var u=i.prototype;return u.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},u.componentDidUpdate=function(o){var f=null;if(o!==this.props){var h=this.state.status;this.props.in?h!==Ja&&h!==_l&&(f=Ja):(h===Ja||h===_l)&&(f=Do)}this.updateStatus(!1,f)},u.componentWillUnmount=function(){this.cancelNextCallback()},u.getTimeouts=function(){var o=this.props.timeout,f,h,y;return f=h=y=o,o!=null&&typeof o!="number"&&(f=o.exit,h=o.enter,y=o.appear!==void 0?o.appear:h),{exit:f,enter:h,appear:y}},u.updateStatus=function(o,f){if(o===void 0&&(o=!1),f!==null)if(this.cancelNextCallback(),f===Ja){if(this.props.unmountOnExit||this.props.mountOnEnter){var h=this.props.nodeRef?this.props.nodeRef.current:fi.findDOMNode(this);h&&$E(h)}this.performEnter(o)}else this.performExit();else this.props.unmountOnExit&&this.state.status===Sl&&this.setState({status:hr})},u.performEnter=function(o){var f=this,h=this.props.enter,y=this.context?this.context.isMounting:o,p=this.props.nodeRef?[y]:[fi.findDOMNode(this),y],v=p[0],b=p[1],C=this.getTimeouts(),x=y?C.appear:C.enter;if(!o&&!h||hy.disabled){this.safeSetState({status:_l},function(){f.props.onEntered(v)});return}this.props.onEnter(v,b),this.safeSetState({status:Ja},function(){f.props.onEntering(v,b),f.onTransitionEnd(x,function(){f.safeSetState({status:_l},function(){f.props.onEntered(v,b)})})})},u.performExit=function(){var o=this,f=this.props.exit,h=this.getTimeouts(),y=this.props.nodeRef?void 0:fi.findDOMNode(this);if(!f||hy.disabled){this.safeSetState({status:Sl},function(){o.props.onExited(y)});return}this.props.onExit(y),this.safeSetState({status:Do},function(){o.props.onExiting(y),o.onTransitionEnd(h.exit,function(){o.safeSetState({status:Sl},function(){o.props.onExited(y)})})})},u.cancelNextCallback=function(){this.nextCallback!==null&&(this.nextCallback.cancel(),this.nextCallback=null)},u.safeSetState=function(o,f){f=this.setNextCallback(f),this.setState(o,f)},u.setNextCallback=function(o){var f=this,h=!0;return this.nextCallback=function(y){h&&(h=!1,f.nextCallback=null,o(y))},this.nextCallback.cancel=function(){h=!1},this.nextCallback},u.onTransitionEnd=function(o,f){this.setNextCallback(f);var h=this.props.nodeRef?this.props.nodeRef.current:fi.findDOMNode(this),y=o==null&&!this.props.addEndListener;if(!h||y){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var p=this.props.nodeRef?[this.nextCallback]:[h,this.nextCallback],v=p[0],b=p[1];this.props.addEndListener(v,b)}o!=null&&setTimeout(this.nextCallback,o)},u.render=function(){var o=this.state.status;if(o===hr)return null;var f=this.props,h=f.children;f.in,f.mountOnEnter,f.unmountOnExit,f.appear,f.enter,f.exit,f.timeout,f.addEndListener,f.onEnter,f.onEntering,f.onEntered,f.onExit,f.onExiting,f.onExited,f.nodeRef;var y=wE(f,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return Xt.createElement(ep.Provider,{value:null},typeof h=="function"?h(o,y):Xt.cloneElement(Xt.Children.only(h),y))},i}(Xt.Component);xa.contextType=ep;xa.propTypes={};function ri(){}xa.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:ri,onEntering:ri,onEntered:ri,onExit:ri,onExiting:ri,onExited:ri};xa.UNMOUNTED=hr;xa.EXITED=Sl;xa.ENTERING=Ja;xa.ENTERED=_l;xa.EXITING=Do;function JE(a){return a.code==="Escape"||a.keyCode===27}function FE(){const a=g.version.split(".");return{major:+a[0],minor:+a[1],patch:+a[2]}}function tp(a){if(!a||typeof a=="function")return null;const{major:i}=FE();return i>=19?a.props.ref:a.ref}const di=!!(typeof window<"u"&&window.document&&window.document.createElement);var Ao=!1,wo=!1;try{var vo={get passive(){return Ao=!0},get once(){return wo=Ao=!0}};di&&(window.addEventListener("test",vo,vo),window.removeEventListener("test",vo,!0))}catch{}function np(a,i,u,c){if(c&&typeof c!="boolean"&&!wo){var o=c.once,f=c.capture,h=u;!wo&&o&&(h=u.__once||function y(p){this.removeEventListener(i,y,f),u.call(this,p)},u.__once=h),a.addEventListener(i,h,Ao?c:f)}a.addEventListener(i,u,c)}function Mo(a,i,u,c){var o=c&&typeof c!="boolean"?c.capture:c;a.removeEventListener(i,u,o),u.__once&&a.removeEventListener(i,u.__once,o)}function Hu(a,i,u,c){return np(a,i,u,c),function(){Mo(a,i,u,c)}}function PE(a,i,u,c){if(c===void 0&&(c=!0),a){var o=document.createEvent("HTMLEvents");o.initEvent(i,u,c),a.dispatchEvent(o)}}function WE(a){var i=Nl(a,"transitionDuration")||"",u=i.indexOf("ms")===-1?1e3:1;return parseFloat(i)*u}function IE(a,i,u){u===void 0&&(u=5);var c=!1,o=setTimeout(function(){c||PE(a,"transitionend",!0)},i+u),f=Hu(a,"transitionend",function(){c=!0},{once:!0});return function(){clearTimeout(o),f()}}function ap(a,i,u,c){u==null&&(u=WE(a)||0);var o=IE(a,u,c),f=Hu(a,"transitionend",i);return function(){o(),f()}}function my(a,i){const u=Nl(a,i)||"",c=u.indexOf("ms")===-1?1e3:1;return parseFloat(u)*c}function eb(a,i){const u=my(a,"transitionDuration"),c=my(a,"transitionDelay"),o=ap(a,f=>{f.target===a&&(o(),i(f))},u+c)}function tb(a){a.offsetHeight}const yy=a=>!a||typeof a=="function"?a:i=>{a.current=i};function nb(a,i){const u=yy(a),c=yy(i);return o=>{u&&u(o),c&&c(o)}}function lp(a,i){return g.useMemo(()=>nb(a,i),[a,i])}function ab(a){return a&&"setState"in a?fi.findDOMNode(a):a??null}const lb=Xt.forwardRef(({onEnter:a,onEntering:i,onEntered:u,onExit:c,onExiting:o,onExited:f,addEndListener:h,children:y,childRef:p,...v},b)=>{const C=g.useRef(null),x=lp(C,p),R=P=>{x(ab(P))},A=P=>fe=>{P&&C.current&&P(C.current,fe)},H=g.useCallback(A(a),[a]),k=g.useCallback(A(i),[i]),z=g.useCallback(A(u),[u]),Z=g.useCallback(A(c),[c]),Q=g.useCallback(A(o),[o]),ee=g.useCallback(A(f),[f]),T=g.useCallback(A(h),[h]);return m.jsx(xa,{ref:b,...v,onEnter:H,onEntered:z,onEntering:k,onExit:Z,onExited:ee,onExiting:Q,addEndListener:T,nodeRef:C,children:typeof y=="function"?(P,fe)=>y(P,{...fe,ref:R}):Xt.cloneElement(y,{ref:R})})});function ib(a){const i=g.useRef(a);return g.useEffect(()=>{i.current=a},[a]),i}function zo(a){const i=ib(a);return g.useCallback(function(...u){return i.current&&i.current(...u)},[i])}const $o=a=>g.forwardRef((i,u)=>m.jsx("div",{...i,ref:u,className:we(i.className,a)}));function rb(a){const i=g.useRef(a);return g.useEffect(()=>{i.current=a},[a]),i}function Rl(a){const i=rb(a);return g.useCallback(function(...u){return i.current&&i.current(...u)},[i])}function ub(){const a=g.useRef(!0),i=g.useRef(()=>a.current);return g.useEffect(()=>(a.current=!0,()=>{a.current=!1}),[]),i.current}function cb(a){const i=g.useRef(null);return g.useEffect(()=>{i.current=a}),i.current}const sb=typeof global<"u"&&global.navigator&&global.navigator.product==="ReactNative",ob=typeof document<"u",py=ob||sb?g.useLayoutEffect:g.useEffect,fb=["as","disabled"];function db(a,i){if(a==null)return{};var u={};for(var c in a)if({}.hasOwnProperty.call(a,c)){if(i.indexOf(c)>=0)continue;u[c]=a[c]}return u}function hb(a){return!a||a.trim()==="#"}function ip({tagName:a,disabled:i,href:u,target:c,rel:o,role:f,onClick:h,tabIndex:y=0,type:p}){a||(u!=null||c!=null||o!=null?a="a":a="button");const v={tagName:a};if(a==="button")return[{type:p||"button",disabled:i},v];const b=x=>{if((i||a==="a"&&hb(u))&&x.preventDefault(),i){x.stopPropagation();return}h==null||h(x)},C=x=>{x.key===" "&&(x.preventDefault(),b(x))};return a==="a"&&(u||(u="#"),i&&(u=void 0)),[{role:f??"button",disabled:void 0,tabIndex:i?void 0:y,href:u,target:a==="a"?c:void 0,"aria-disabled":i||void 0,rel:a==="a"?o:void 0,onClick:b,onKeyDown:C},v]}const mb=g.forwardRef((a,i)=>{let{as:u,disabled:c}=a,o=db(a,fb);const[f,{tagName:h}]=ip(Object.assign({tagName:u,disabled:c},o));return m.jsx(h,Object.assign({},o,f,{ref:i}))});mb.displayName="Button";const yb={[Ja]:"show",[_l]:"show"},Jo=g.forwardRef(({className:a,children:i,transitionClasses:u={},onEnter:c,...o},f)=>{const h={in:!1,timeout:300,mountOnEnter:!1,unmountOnExit:!1,appear:!1,...o},y=g.useCallback((p,v)=>{tb(p),c==null||c(p,v)},[c]);return m.jsx(lb,{ref:f,addEndListener:eb,...h,onEnter:y,childRef:tp(i),children:(p,v)=>g.cloneElement(i,{...v,className:we("fade",a,i.props.className,yb[p],u[p])})})});Jo.displayName="Fade";const pb={"aria-label":ba.string,onClick:ba.func,variant:ba.oneOf(["white"])},Fo=g.forwardRef(({className:a,variant:i,"aria-label":u="Close",...c},o)=>m.jsx("button",{ref:o,type:"button",className:we("btn-close",i&&`btn-close-${i}`,a),"aria-label":u,...c}));Fo.displayName="CloseButton";Fo.propTypes=pb;const Lo=g.forwardRef(({as:a,bsPrefix:i,variant:u="primary",size:c,active:o=!1,disabled:f=!1,className:h,...y},p)=>{const v=Ve(i,"btn"),[b,{tagName:C}]=ip({tagName:a,disabled:f,...y}),x=C;return m.jsx(x,{...b,...y,ref:p,disabled:f,className:we(h,v,o&&"active",u&&`${v}-${u}`,c&&`${v}-${c}`,y.href&&f&&"disabled")})});Lo.displayName="Button";const Po=g.forwardRef(({className:a,bsPrefix:i,as:u="div",...c},o)=>(i=Ve(i,"card-body"),m.jsx(u,{ref:o,className:we(a,i),...c})));Po.displayName="CardBody";const rp=g.forwardRef(({className:a,bsPrefix:i,as:u="div",...c},o)=>(i=Ve(i,"card-footer"),m.jsx(u,{ref:o,className:we(a,i),...c})));rp.displayName="CardFooter";const up=g.createContext(null);up.displayName="CardHeaderContext";const cp=g.forwardRef(({bsPrefix:a,className:i,as:u="div",...c},o)=>{const f=Ve(a,"card-header"),h=g.useMemo(()=>({cardHeaderBsPrefix:f}),[f]);return m.jsx(up.Provider,{value:h,children:m.jsx(u,{ref:o,...c,className:we(i,f)})})});cp.displayName="CardHeader";const sp=g.forwardRef(({bsPrefix:a,className:i,variant:u,as:c="img",...o},f)=>{const h=Ve(a,"card-img");return m.jsx(c,{ref:f,className:we(u?`${h}-${u}`:h,i),...o})});sp.displayName="CardImg";const op=g.forwardRef(({className:a,bsPrefix:i,as:u="div",...c},o)=>(i=Ve(i,"card-img-overlay"),m.jsx(u,{ref:o,className:we(a,i),...c})));op.displayName="CardImgOverlay";const fp=g.forwardRef(({className:a,bsPrefix:i,as:u="a",...c},o)=>(i=Ve(i,"card-link"),m.jsx(u,{ref:o,className:we(a,i),...c})));fp.displayName="CardLink";const vb=$o("h6"),dp=g.forwardRef(({className:a,bsPrefix:i,as:u=vb,...c},o)=>(i=Ve(i,"card-subtitle"),m.jsx(u,{ref:o,className:we(a,i),...c})));dp.displayName="CardSubtitle";const hp=g.forwardRef(({className:a,bsPrefix:i,as:u="p",...c},o)=>(i=Ve(i,"card-text"),m.jsx(u,{ref:o,className:we(a,i),...c})));hp.displayName="CardText";const gb=$o("h5"),mp=g.forwardRef(({className:a,bsPrefix:i,as:u=gb,...c},o)=>(i=Ve(i,"card-title"),m.jsx(u,{ref:o,className:we(a,i),...c})));mp.displayName="CardTitle";const yp=g.forwardRef(({bsPrefix:a,className:i,bg:u,text:c,border:o,body:f=!1,children:h,as:y="div",...p},v)=>{const b=Ve(a,"card");return m.jsx(y,{ref:v,...p,className:we(i,b,u&&`bg-${u}`,c&&`text-${c}`,o&&`border-${o}`),children:f?m.jsx(Po,{children:h}):h})});yp.displayName="Card";const $n=Object.assign(yp,{Img:sp,Title:mp,Subtitle:dp,Body:Po,Link:fp,Text:hp,Header:cp,Footer:rp,ImgOverlay:op});function Eb(a){const i=g.useRef(a);return i.current=a,i}function bb(a){const i=Eb(a);g.useEffect(()=>()=>i.current(),[])}function Sb(a,i){return g.Children.toArray(a).some(u=>g.isValidElement(u)&&u.type===i)}function xb({as:a,bsPrefix:i,className:u,...c}){i=Ve(i,"col");const o=Wy(),f=Iy(),h=[],y=[];return o.forEach(p=>{const v=c[p];delete c[p];let b,C,x;typeof v=="object"&&v!=null?{span:b,offset:C,order:x}=v:b=v;const R=p!==f?`-${p}`:"";b&&h.push(b===!0?`${i}${R}`:`${i}${R}-${b}`),x!=null&&y.push(`order${R}-${x}`),C!=null&&y.push(`offset${R}-${C}`)}),[{...c,className:we(u,...h,...y)},{as:a,bsPrefix:i,spans:h}]}const on=g.forwardRef((a,i)=>{const[{className:u,...c},{as:o="div",bsPrefix:f,spans:h}]=xb(a);return m.jsx(o,{...c,ref:i,className:we(u,!h.length&&f)})});on.displayName="Col";const Wa=g.forwardRef(({bsPrefix:a,fluid:i=!1,as:u="div",className:c,...o},f)=>{const h=Ve(a,"container"),y=typeof i=="string"?`-${i}`:"-fluid";return m.jsx(u,{ref:f,...o,className:we(c,i?`${h}${y}`:h)})});Wa.displayName="Container";var _b=Function.prototype.bind.call(Function.prototype.call,[].slice);function ui(a,i){return _b(a.querySelectorAll(i))}function vy(a,i){if(a.contains)return a.contains(i);if(a.compareDocumentPosition)return a===i||!!(a.compareDocumentPosition(i)&16)}var go,gy;function Rb(){if(gy)return go;gy=1;var a=function(){};return go=a,go}var Tb=Rb();const wx=yr(Tb),Nb="data-rr-ui-";function Cb(a){return`${Nb}${a}`}const pp=g.createContext(di?window:void 0);pp.Provider;function Wo(){return g.useContext(pp)}const jb={type:ba.string,tooltip:ba.bool,as:ba.elementType},$u=g.forwardRef(({as:a="div",className:i,type:u="valid",tooltip:c=!1,...o},f)=>m.jsx(a,{...o,ref:f,className:we(i,`${u}-${c?"tooltip":"feedback"}`)}));$u.displayName="Feedback";$u.propTypes=jb;const Sa=g.createContext({}),Io=g.forwardRef(({id:a,bsPrefix:i,className:u,type:c="checkbox",isValid:o=!1,isInvalid:f=!1,as:h="input",...y},p)=>{const{controlId:v}=g.useContext(Sa);return i=Ve(i,"form-check-input"),m.jsx(h,{...y,ref:p,type:c,id:a||v,className:we(u,i,o&&"is-valid",f&&"is-invalid")})});Io.displayName="FormCheckInput";const Bu=g.forwardRef(({bsPrefix:a,className:i,htmlFor:u,...c},o)=>{const{controlId:f}=g.useContext(Sa);return a=Ve(a,"form-check-label"),m.jsx("label",{...c,ref:o,htmlFor:u||f,className:we(i,a)})});Bu.displayName="FormCheckLabel";const vp=g.forwardRef(({id:a,bsPrefix:i,bsSwitchPrefix:u,inline:c=!1,reverse:o=!1,disabled:f=!1,isValid:h=!1,isInvalid:y=!1,feedbackTooltip:p=!1,feedback:v,feedbackType:b,className:C,style:x,title:R="",type:A="checkbox",label:H,children:k,as:z="input",...Z},Q)=>{i=Ve(i,"form-check"),u=Ve(u,"form-switch");const{controlId:ee}=g.useContext(Sa),T=g.useMemo(()=>({controlId:a||ee}),[ee,a]),P=!k&&H!=null&&H!==!1||Sb(k,Bu),fe=m.jsx(Io,{...Z,type:A==="switch"?"checkbox":A,ref:Q,isValid:h,isInvalid:y,disabled:f,as:z});return m.jsx(Sa.Provider,{value:T,children:m.jsx("div",{style:x,className:we(C,P&&i,c&&`${i}-inline`,o&&`${i}-reverse`,A==="switch"&&u),children:k||m.jsxs(m.Fragment,{children:[fe,P&&m.jsx(Bu,{title:R,children:H}),v&&m.jsx($u,{type:b,tooltip:p,children:v})]})})})});vp.displayName="FormCheck";const qu=Object.assign(vp,{Input:Io,Label:Bu}),gp=g.forwardRef(({bsPrefix:a,type:i,size:u,htmlSize:c,id:o,className:f,isValid:h=!1,isInvalid:y=!1,plaintext:p,readOnly:v,as:b="input",...C},x)=>{const{controlId:R}=g.useContext(Sa);return a=Ve(a,"form-control"),m.jsx(b,{...C,type:i,size:c,ref:x,readOnly:v,id:o||R,className:we(f,p?`${a}-plaintext`:a,u&&`${a}-${u}`,i==="color"&&`${a}-color`,h&&"is-valid",y&&"is-invalid")})});gp.displayName="FormControl";const Ob=Object.assign(gp,{Feedback:$u}),Ep=g.forwardRef(({className:a,bsPrefix:i,as:u="div",...c},o)=>(i=Ve(i,"form-floating"),m.jsx(u,{ref:o,className:we(a,i),...c})));Ep.displayName="FormFloating";const ef=g.forwardRef(({controlId:a,as:i="div",...u},c)=>{const o=g.useMemo(()=>({controlId:a}),[a]);return m.jsx(Sa.Provider,{value:o,children:m.jsx(i,{...u,ref:c})})});ef.displayName="FormGroup";const bp=g.forwardRef(({as:a="label",bsPrefix:i,column:u=!1,visuallyHidden:c=!1,className:o,htmlFor:f,...h},y)=>{const{controlId:p}=g.useContext(Sa);i=Ve(i,"form-label");let v="col-form-label";typeof u=="string"&&(v=`${v} ${v}-${u}`);const b=we(o,i,c&&"visually-hidden",u&&v);return f=f||p,u?m.jsx(on,{ref:y,as:"label",className:b,htmlFor:f,...h}):m.jsx(a,{ref:y,className:b,htmlFor:f,...h})});bp.displayName="FormLabel";const Sp=g.forwardRef(({bsPrefix:a,className:i,id:u,...c},o)=>{const{controlId:f}=g.useContext(Sa);return a=Ve(a,"form-range"),m.jsx("input",{...c,type:"range",ref:o,className:we(i,a),id:u||f})});Sp.displayName="FormRange";const xp=g.forwardRef(({bsPrefix:a,size:i,htmlSize:u,className:c,isValid:o=!1,isInvalid:f=!1,id:h,...y},p)=>{const{controlId:v}=g.useContext(Sa);return a=Ve(a,"form-select"),m.jsx("select",{...y,size:u,ref:p,className:we(c,a,i&&`${a}-${i}`,o&&"is-valid",f&&"is-invalid"),id:h||v})});xp.displayName="FormSelect";const _p=g.forwardRef(({bsPrefix:a,className:i,as:u="small",muted:c,...o},f)=>(a=Ve(a,"form-text"),m.jsx(u,{...o,ref:f,className:we(i,a,c&&"text-muted")})));_p.displayName="FormText";const Rp=g.forwardRef((a,i)=>m.jsx(qu,{...a,ref:i,type:"switch"}));Rp.displayName="Switch";const Db=Object.assign(Rp,{Input:qu.Input,Label:qu.Label}),Tp=g.forwardRef(({bsPrefix:a,className:i,children:u,controlId:c,label:o,...f},h)=>(a=Ve(a,"form-floating"),m.jsxs(ef,{ref:h,className:we(i,a),controlId:c,...f,children:[u,m.jsx("label",{htmlFor:c,children:o})]})));Tp.displayName="FloatingLabel";const Ab={_ref:ba.any,validated:ba.bool,as:ba.elementType},tf=g.forwardRef(({className:a,validated:i,as:u="form",...c},o)=>m.jsx(u,{...c,ref:o,className:we(a,i&&"was-validated")}));tf.displayName="Form";tf.propTypes=Ab;const Ou=Object.assign(tf,{Group:ef,Control:Ob,Floating:Ep,Check:qu,Switch:Db,Label:bp,Text:_p,Range:Sp,Select:xp,FloatingLabel:Tp}),Ey=a=>!a||typeof a=="function"?a:i=>{a.current=i};function wb(a,i){const u=Ey(a),c=Ey(i);return o=>{u&&u(o),c&&c(o)}}function nf(a,i){return g.useMemo(()=>wb(a,i),[a,i])}var Du;function by(a){if((!Du&&Du!==0||a)&&di){var i=document.createElement("div");i.style.position="absolute",i.style.top="-9999px",i.style.width="50px",i.style.height="50px",i.style.overflow="scroll",document.body.appendChild(i),Du=i.offsetWidth-i.clientWidth,document.body.removeChild(i)}return Du}function Mb(){return g.useState(null)}function Eo(a){a===void 0&&(a=Ku());try{var i=a.activeElement;return!i||!i.nodeName?null:i}catch{return a.body}}function zb(a){const i=g.useRef(a);return i.current=a,i}function Lb(a){const i=zb(a);g.useEffect(()=>()=>i.current(),[])}function Ub(a=document){const i=a.defaultView;return Math.abs(i.innerWidth-a.documentElement.clientWidth)}const Sy=Cb("modal-open");class af{constructor({ownerDocument:i,handleContainerOverflow:u=!0,isRTL:c=!1}={}){this.handleContainerOverflow=u,this.isRTL=c,this.modals=[],this.ownerDocument=i}getScrollbarWidth(){return Ub(this.ownerDocument)}getElement(){return(this.ownerDocument||document).body}setModalAttributes(i){}removeModalAttributes(i){}setContainerStyle(i){const u={overflow:"hidden"},c=this.isRTL?"paddingLeft":"paddingRight",o=this.getElement();i.style={overflow:o.style.overflow,[c]:o.style[c]},i.scrollBarWidth&&(u[c]=`${parseInt(Nl(o,c)||"0",10)+i.scrollBarWidth}px`),o.setAttribute(Sy,""),Nl(o,u)}reset(){[...this.modals].forEach(i=>this.remove(i))}removeContainerStyle(i){const u=this.getElement();u.removeAttribute(Sy),Object.assign(u.style,i.style)}add(i){let u=this.modals.indexOf(i);return u!==-1||(u=this.modals.length,this.modals.push(i),this.setModalAttributes(i),u!==0)||(this.state={scrollBarWidth:this.getScrollbarWidth(),style:{}},this.handleContainerOverflow&&this.setContainerStyle(this.state)),u}remove(i){const u=this.modals.indexOf(i);u!==-1&&(this.modals.splice(u,1),!this.modals.length&&this.handleContainerOverflow&&this.removeContainerStyle(this.state),this.removeModalAttributes(i))}isTopModal(i){return!!this.modals.length&&this.modals[this.modals.length-1]===i}}const bo=(a,i)=>di?a==null?(i||Ku()).body:(typeof a=="function"&&(a=a()),a&&"current"in a&&(a=a.current),a&&("nodeType"in a||a.getBoundingClientRect)?a:null):null;function Hb(a,i){const u=Wo(),[c,o]=g.useState(()=>bo(a,u==null?void 0:u.document));if(!c){const f=bo(a);f&&o(f)}return g.useEffect(()=>{},[i,c]),g.useEffect(()=>{const f=bo(a);f!==c&&o(f)},[a,c]),c}function Bb({children:a,in:i,onExited:u,mountOnEnter:c,unmountOnExit:o}){const f=g.useRef(null),h=g.useRef(i),y=Rl(u);g.useEffect(()=>{i?h.current=!0:y(f.current)},[i,y]);const p=nf(f,a.ref),v=g.cloneElement(a,{ref:p});return i?v:o||!h.current&&c?null:v}const qb=["onEnter","onEntering","onEntered","onExit","onExiting","onExited","addEndListener","children"];function kb(a,i){if(a==null)return{};var u={};for(var c in a)if({}.hasOwnProperty.call(a,c)){if(i.indexOf(c)>=0)continue;u[c]=a[c]}return u}function Vb(a){let{onEnter:i,onEntering:u,onEntered:c,onExit:o,onExiting:f,onExited:h,addEndListener:y,children:p}=a,v=kb(a,qb);const b=g.useRef(null),C=nf(b,tp(p)),x=ee=>T=>{ee&&b.current&&ee(b.current,T)},R=g.useCallback(x(i),[i]),A=g.useCallback(x(u),[u]),H=g.useCallback(x(c),[c]),k=g.useCallback(x(o),[o]),z=g.useCallback(x(f),[f]),Z=g.useCallback(x(h),[h]),Q=g.useCallback(x(y),[y]);return Object.assign({},v,{nodeRef:b},i&&{onEnter:R},u&&{onEntering:A},c&&{onEntered:H},o&&{onExit:k},f&&{onExiting:z},h&&{onExited:Z},y&&{addEndListener:Q},{children:typeof p=="function"?(ee,T)=>p(ee,Object.assign({},T,{ref:C})):g.cloneElement(p,{ref:C})})}const Yb=["component"];function Gb(a,i){if(a==null)return{};var u={};for(var c in a)if({}.hasOwnProperty.call(a,c)){if(i.indexOf(c)>=0)continue;u[c]=a[c]}return u}const Xb=g.forwardRef((a,i)=>{let{component:u}=a,c=Gb(a,Yb);const o=Vb(c);return m.jsx(u,Object.assign({ref:i},o))});function Qb({in:a,onTransition:i}){const u=g.useRef(null),c=g.useRef(!0),o=Rl(i);return py(()=>{if(!u.current)return;let f=!1;return o({in:a,element:u.current,initial:c.current,isStale:()=>f}),()=>{f=!0}},[a,o]),py(()=>(c.current=!1,()=>{c.current=!0}),[]),u}function Zb({children:a,in:i,onExited:u,onEntered:c,transition:o}){const[f,h]=g.useState(!i);i&&f&&h(!1);const y=Qb({in:!!i,onTransition:v=>{const b=()=>{v.isStale()||(v.in?c==null||c(v.element,v.initial):(h(!0),u==null||u(v.element)))};Promise.resolve(o(v)).then(b,C=>{throw v.in||h(!0),C})}}),p=nf(y,a.ref);return f&&!i?null:g.cloneElement(a,{ref:p})}function xy(a,i,u){return a?m.jsx(Xb,Object.assign({},u,{component:a})):i?m.jsx(Zb,Object.assign({},u,{transition:i})):m.jsx(Bb,Object.assign({},u))}const Kb=["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"];function $b(a,i){if(a==null)return{};var u={};for(var c in a)if({}.hasOwnProperty.call(a,c)){if(i.indexOf(c)>=0)continue;u[c]=a[c]}return u}let So;function Jb(a){return So||(So=new af({ownerDocument:a==null?void 0:a.document})),So}function Fb(a){const i=Wo(),u=a||Jb(i),c=g.useRef({dialog:null,backdrop:null});return Object.assign(c.current,{add:()=>u.add(c.current),remove:()=>u.remove(c.current),isTopModal:()=>u.isTopModal(c.current),setDialogRef:g.useCallback(o=>{c.current.dialog=o},[]),setBackdropRef:g.useCallback(o=>{c.current.backdrop=o},[])})}const Np=g.forwardRef((a,i)=>{let{show:u=!1,role:c="dialog",className:o,style:f,children:h,backdrop:y=!0,keyboard:p=!0,onBackdropClick:v,onEscapeKeyDown:b,transition:C,runTransition:x,backdropTransition:R,runBackdropTransition:A,autoFocus:H=!0,enforceFocus:k=!0,restoreFocus:z=!0,restoreFocusOptions:Z,renderDialog:Q,renderBackdrop:ee=ze=>m.jsx("div",Object.assign({},ze)),manager:T,container:P,onShow:fe,onHide:ce=()=>{},onExit:$,onExited:ie,onExiting:Le,onEnter:Pe,onEntering:Ge,onEntered:et}=a,Ne=$b(a,Kb);const K=Wo(),se=Hb(P),F=Fb(T),_e=ub(),_=cb(u),[V,te]=g.useState(!u),W=g.useRef(null);g.useImperativeHandle(i,()=>F,[F]),di&&!_&&u&&(W.current=Eo(K==null?void 0:K.document)),u&&V&&te(!1);const J=Rl(()=>{if(F.add(),Te.current=Hu(document,"keydown",Ce),xe.current=Hu(document,"focus",()=>setTimeout(ge),!0),fe&&fe(),H){var ze,St;const qt=Eo((ze=(St=F.dialog)==null?void 0:St.ownerDocument)!=null?ze:K==null?void 0:K.document);F.dialog&&qt&&!vy(F.dialog,qt)&&(W.current=qt,F.dialog.focus())}}),ye=Rl(()=>{if(F.remove(),Te.current==null||Te.current(),xe.current==null||xe.current(),z){var ze;(ze=W.current)==null||ze.focus==null||ze.focus(Z),W.current=null}});g.useEffect(()=>{!u||!se||J()},[u,se,J]),g.useEffect(()=>{V&&ye()},[V,ye]),Lb(()=>{ye()});const ge=Rl(()=>{if(!k||!_e()||!F.isTopModal())return;const ze=Eo(K==null?void 0:K.document);F.dialog&&ze&&!vy(F.dialog,ze)&&F.dialog.focus()}),Ze=Rl(ze=>{ze.target===ze.currentTarget&&(v==null||v(ze),y===!0&&ce())}),Ce=Rl(ze=>{p&&JE(ze)&&F.isTopModal()&&(b==null||b(ze),ze.defaultPrevented||ce())}),xe=g.useRef(),Te=g.useRef(),at=(...ze)=>{te(!0),ie==null||ie(...ze)};if(!se)return null;const bt=Object.assign({role:c,ref:F.setDialogRef,"aria-modal":c==="dialog"?!0:void 0},Ne,{style:f,className:o,tabIndex:-1});let Ke=Q?Q(bt):m.jsx("div",Object.assign({},bt,{children:g.cloneElement(h,{role:"document"})}));Ke=xy(C,x,{unmountOnExit:!0,mountOnEnter:!0,appear:!0,in:!!u,onExit:$,onExiting:Le,onExited:at,onEnter:Pe,onEntering:Ge,onEntered:et,children:Ke});let Rt=null;return y&&(Rt=ee({ref:F.setBackdropRef,onClick:Ze}),Rt=xy(R,A,{in:!!u,appear:!0,mountOnEnter:!0,unmountOnExit:!0,children:Rt})),m.jsx(m.Fragment,{children:fi.createPortal(m.jsxs(m.Fragment,{children:[Rt,Ke]}),se)})});Np.displayName="Modal";const Pb=Object.assign(Np,{Manager:af});function Wb(a,i){return a.classList?a.classList.contains(i):(" "+(a.className.baseVal||a.className)+" ").indexOf(" "+i+" ")!==-1}function Ib(a,i){a.classList?a.classList.add(i):Wb(a,i)||(typeof a.className=="string"?a.className=a.className+" "+i:a.setAttribute("class",(a.className&&a.className.baseVal||"")+" "+i))}function _y(a,i){return a.replace(new RegExp("(^|\\s)"+i+"(?:\\s|$)","g"),"$1").replace(/\s+/g," ").replace(/^\s*|\s*$/g,"")}function eS(a,i){a.classList?a.classList.remove(i):typeof a.className=="string"?a.className=_y(a.className,i):a.setAttribute("class",_y(a.className&&a.className.baseVal||"",i))}const ci={FIXED_CONTENT:".fixed-top, .fixed-bottom, .is-fixed, .sticky-top",STICKY_CONTENT:".sticky-top",NAVBAR_TOGGLER:".navbar-toggler"};class tS extends af{adjustAndStore(i,u,c){const o=u.style[i];u.dataset[i]=o,Nl(u,{[i]:`${parseFloat(Nl(u,i))+c}px`})}restore(i,u){const c=u.dataset[i];c!==void 0&&(delete u.dataset[i],Nl(u,{[i]:c}))}setContainerStyle(i){super.setContainerStyle(i);const u=this.getElement();if(Ib(u,"modal-open"),!i.scrollBarWidth)return;const c=this.isRTL?"paddingLeft":"paddingRight",o=this.isRTL?"marginLeft":"marginRight";ui(u,ci.FIXED_CONTENT).forEach(f=>this.adjustAndStore(c,f,i.scrollBarWidth)),ui(u,ci.STICKY_CONTENT).forEach(f=>this.adjustAndStore(o,f,-i.scrollBarWidth)),ui(u,ci.NAVBAR_TOGGLER).forEach(f=>this.adjustAndStore(o,f,i.scrollBarWidth))}removeContainerStyle(i){super.removeContainerStyle(i);const u=this.getElement();eS(u,"modal-open");const c=this.isRTL?"paddingLeft":"paddingRight",o=this.isRTL?"marginLeft":"marginRight";ui(u,ci.FIXED_CONTENT).forEach(f=>this.restore(c,f)),ui(u,ci.STICKY_CONTENT).forEach(f=>this.restore(o,f)),ui(u,ci.NAVBAR_TOGGLER).forEach(f=>this.restore(o,f))}}let xo;function nS(a){return xo||(xo=new tS(a)),xo}const Cp=g.forwardRef(({className:a,bsPrefix:i,as:u="div",...c},o)=>(i=Ve(i,"modal-body"),m.jsx(u,{ref:o,className:we(a,i),...c})));Cp.displayName="ModalBody";const jp=g.createContext({onHide(){}}),lf=g.forwardRef(({bsPrefix:a,className:i,contentClassName:u,centered:c,size:o,fullscreen:f,children:h,scrollable:y,...p},v)=>{a=Ve(a,"modal");const b=`${a}-dialog`,C=typeof f=="string"?`${a}-fullscreen-${f}`:`${a}-fullscreen`;return m.jsx("div",{...p,ref:v,className:we(b,i,o&&`${a}-${o}`,c&&`${b}-centered`,y&&`${b}-scrollable`,f&&C),children:m.jsx("div",{className:we(`${a}-content`,u),children:h})})});lf.displayName="ModalDialog";const Op=g.forwardRef(({className:a,bsPrefix:i,as:u="div",...c},o)=>(i=Ve(i,"modal-footer"),m.jsx(u,{ref:o,className:we(a,i),...c})));Op.displayName="ModalFooter";const aS=g.forwardRef(({closeLabel:a="Close",closeVariant:i,closeButton:u=!1,onHide:c,children:o,...f},h)=>{const y=g.useContext(jp),p=zo(()=>{y==null||y.onHide(),c==null||c()});return m.jsxs("div",{ref:h,...f,children:[o,u&&m.jsx(Fo,{"aria-label":a,variant:i,onClick:p})]})}),Dp=g.forwardRef(({bsPrefix:a,className:i,closeLabel:u="Close",closeButton:c=!1,...o},f)=>(a=Ve(a,"modal-header"),m.jsx(aS,{ref:f,...o,className:we(i,a),closeLabel:u,closeButton:c})));Dp.displayName="ModalHeader";const lS=$o("h4"),Ap=g.forwardRef(({className:a,bsPrefix:i,as:u=lS,...c},o)=>(i=Ve(i,"modal-title"),m.jsx(u,{ref:o,className:we(a,i),...c})));Ap.displayName="ModalTitle";function iS(a){return m.jsx(Jo,{...a,timeout:null})}function rS(a){return m.jsx(Jo,{...a,timeout:null})}const wp=g.forwardRef(({bsPrefix:a,className:i,style:u,dialogClassName:c,contentClassName:o,children:f,dialogAs:h=lf,"data-bs-theme":y,"aria-labelledby":p,"aria-describedby":v,"aria-label":b,show:C=!1,animation:x=!0,backdrop:R=!0,keyboard:A=!0,onEscapeKeyDown:H,onShow:k,onHide:z,container:Z,autoFocus:Q=!0,enforceFocus:ee=!0,restoreFocus:T=!0,restoreFocusOptions:P,onEntered:fe,onExit:ce,onExiting:$,onEnter:ie,onEntering:Le,onExited:Pe,backdropClassName:Ge,manager:et,...Ne},K)=>{const[se,F]=g.useState({}),[_e,_]=g.useState(!1),V=g.useRef(!1),te=g.useRef(!1),W=g.useRef(null),[J,ye]=Mb(),ge=lp(K,ye),Ze=zo(z),Ce=UE();a=Ve(a,"modal");const xe=g.useMemo(()=>({onHide:Ze}),[Ze]);function Te(){return et||nS({isRTL:Ce})}function at(be){if(!di)return;const Mt=Te().getScrollbarWidth()>0,kt=be.scrollHeight>Ku(be).documentElement.clientHeight;F({paddingRight:Mt&&!kt?by():void 0,paddingLeft:!Mt&&kt?by():void 0})}const bt=zo(()=>{J&&at(J.dialog)});bb(()=>{Mo(window,"resize",bt),W.current==null||W.current()});const Ke=()=>{V.current=!0},Rt=be=>{V.current&&J&&be.target===J.dialog&&(te.current=!0),V.current=!1},ze=()=>{_(!0),W.current=ap(J.dialog,()=>{_(!1)})},St=be=>{be.target===be.currentTarget&&ze()},qt=be=>{if(R==="static"){St(be);return}if(te.current||be.target!==be.currentTarget){te.current=!1;return}z==null||z()},en=be=>{A?H==null||H(be):(be.preventDefault(),R==="static"&&ze())},dn=(be,Mt)=>{be&&at(be),ie==null||ie(be,Mt)},hn=be=>{W.current==null||W.current(),ce==null||ce(be)},Tt=(be,Mt)=>{Le==null||Le(be,Mt),np(window,"resize",bt)},Jt=be=>{be&&(be.style.display=""),Pe==null||Pe(be),Mo(window,"resize",bt)},On=g.useCallback(be=>m.jsx("div",{...be,className:we(`${a}-backdrop`,Ge,!x&&"show")}),[x,Ge,a]),ct={...u,...se};ct.display="block";const wt=be=>m.jsx("div",{role:"dialog",...be,style:ct,className:we(i,a,_e&&`${a}-static`,!x&&"show"),onClick:R?qt:void 0,onMouseUp:Rt,"data-bs-theme":y,"aria-label":b,"aria-labelledby":p,"aria-describedby":v,children:m.jsx(h,{...Ne,onMouseDown:Ke,className:c,contentClassName:o,children:f})});return m.jsx(jp.Provider,{value:xe,children:m.jsx(Pb,{show:C,ref:ge,backdrop:R,container:Z,keyboard:!0,autoFocus:Q,enforceFocus:ee,restoreFocus:T,restoreFocusOptions:P,onEscapeKeyDown:en,onShow:k,onHide:z,onEnter:dn,onEntering:Tt,onEntered:fe,onExit:hn,onExiting:$,onExited:Jt,manager:Te(),transition:x?iS:void 0,backdropTransition:x?rS:void 0,renderBackdrop:On,renderDialog:wt})})});wp.displayName="Modal";const or=Object.assign(wp,{Body:Cp,Header:Dp,Title:Ap,Footer:Op,Dialog:lf,TRANSITION_DURATION:300,BACKDROP_TRANSITION_DURATION:150}),qn=g.forwardRef(({bsPrefix:a,className:i,as:u="div",...c},o)=>{const f=Ve(a,"row"),h=Wy(),y=Iy(),p=`${f}-cols`,v=[];return h.forEach(b=>{const C=c[b];delete c[b];let x;C!=null&&typeof C=="object"?{cols:x}=C:x=C;const R=b!==y?`-${b}`:"";x!=null&&v.push(`${p}${R}-${x}`)}),m.jsx(u,{ref:o,...c,className:we(i,f,...v)})});qn.displayName="Row";const uS="/static/DY3vaYXT.svg";function cS(){const a=ut.c(6),{user:i}=g.useContext(Zo),{pathname:u}=Pn();let c;a[0]===Symbol.for("react.memo_cache_sentinel")?(c=m.jsx(on,{xs:10,children:m.jsx("div",{className:"nav-wrapper",children:m.jsxs("nav",{className:"header-nav",children:[m.jsx("a",{href:"https://geant.org/",children:m.jsx("img",{src:uS,alt:"GÉANT Logo"})}),m.jsxs("ul",{children:[m.jsx("li",{children:m.jsx("a",{className:"nav-link-entry",href:"https://network.geant.org/",children:"NETWORK"})}),m.jsx("li",{children:m.jsx("a",{className:"nav-link-entry",href:"https://geant.org/services/",children:"SERVICES"})}),m.jsx("li",{children:m.jsx("a",{className:"nav-link-entry",href:"https://community.geant.org/",children:"COMMUNITY"})}),m.jsx("li",{children:m.jsx("a",{className:"nav-link-entry",href:"https://tnc23.geant.org/",children:"TNC"})}),m.jsx("li",{children:m.jsx("a",{className:"nav-link-entry",href:"https://geant.org/projects/",children:"PROJECTS"})}),m.jsx("li",{children:m.jsx("a",{className:"nav-link-entry",href:"https://connect.geant.org/",children:"CONNECT"})}),m.jsx("li",{children:m.jsx("a",{className:"nav-link-entry",href:"https://impact.geant.org/",children:"IMPACT"})}),m.jsx("li",{children:m.jsx("a",{className:"nav-link-entry",href:"https://careers.geant.org/",children:"CAREERS"})}),m.jsx("li",{children:m.jsx("a",{className:"nav-link-entry",href:"https://about.geant.org/",children:"ABOUT"})}),m.jsx("li",{children:m.jsx("a",{className:"nav-link-entry",href:"https://connect.geant.org/community-news",children:"NEWS"})}),m.jsx("li",{children:m.jsx("a",{className:"nav-link-entry",href:"https://resources.geant.org/",children:"RESOURCES"})}),m.jsx("li",{children:m.jsx(ae,{className:"nav-link-entry",to:"/",children:"COMPENDIUM"})})]})]})})}),a[0]=c):c=a[0];let o;a[1]!==u||a[2]!==i.permissions.admin?(o=i.permissions.admin&&!u.includes("survey")&&m.jsx("div",{className:"nav-link",style:{float:"right"},children:m.jsx(ae,{className:"nav-link-entry",to:"/survey",children:m.jsx("span",{children:"Go to Survey"})})}),a[1]=u,a[2]=i.permissions.admin,a[3]=o):o=a[3];let f;return a[4]!==o?(f=m.jsx("div",{className:"external-page-nav-bar",children:m.jsx(Wa,{children:m.jsxs(qn,{children:[c,m.jsx(on,{xs:2,children:o})]})})}),a[4]=o,a[5]=f):f=a[5],f}const sS="/static/A3T3A-a_.svg",oS="/static/DOOiIGTs.png";function fS(){const a=ut.c(9);let i;a[0]===Symbol.for("react.memo_cache_sentinel")?(i=m.jsx("a",{href:"https://geant.org",children:m.jsx("img",{src:sS,className:"m-3",style:{maxWidth:"100px"},alt:"GÉANT Logo"})}),a[0]=i):i=a[0];let u;a[1]===Symbol.for("react.memo_cache_sentinel")?(u=m.jsxs(on,{children:[i,m.jsx("img",{src:oS,className:"m-3",style:{maxWidth:"200px"},alt:"European Union Flag"})]}),a[1]=u):u=a[1];let c,o;a[2]===Symbol.for("react.memo_cache_sentinel")?(c=m.jsx("a",{className:"mx-3 footer-link",href:"https://geant.org/Disclaimer/",children:"Disclaimer"}),o=m.jsx("wbr",{}),a[2]=c,a[3]=o):(c=a[2],o=a[3]);let f,h;a[4]===Symbol.for("react.memo_cache_sentinel")?(f=m.jsx("a",{className:"mx-3 footer-link",href:"https://geant.org/geant-anti-slavery-policy/",children:"GEANT Anti‑Slavery Policy"}),h=m.jsx("wbr",{}),a[4]=f,a[5]=h):(f=a[4],h=a[5]);let y,p;a[6]===Symbol.for("react.memo_cache_sentinel")?(y=m.jsx("a",{className:"mx-3 footer-link",href:"https://geant.org/Privacy-Notice/",children:"Privacy Policy"}),p=m.jsx("wbr",{}),a[6]=y,a[7]=p):(y=a[6],p=a[7]);let v;return a[8]===Symbol.for("react.memo_cache_sentinel")?(v=m.jsx("footer",{className:"page-footer pt-3",children:m.jsx(Wa,{children:m.jsxs(qn,{children:[u,m.jsx(on,{className:"mt-4 text-end",children:m.jsxs("span",{children:[c,o,"|",f,h,"|",y,p,"|",m.jsx("a",{className:"mx-3 footer-link",style:{cursor:"pointer"},onClick:dS,children:"Analytics Consent"})]})})]})})}),a[8]=v):v=a[8],v}function dS(){localStorage.removeItem("matomo_consent"),window.location.reload()}const Mp="/static/C4lsyu6A.svg",zp="/static/DhA-EmEc.svg";function Lp(){const a=ut.c(16),i=g.useContext(Py);let u;a[0]!==i?(u=A=>i==null?void 0:i.trackPageView(A),a[0]=i,a[1]=u):u=a[1];const c=u;let o;a[2]!==i?(o=A=>i==null?void 0:i.trackEvent(A),a[2]=i,a[3]=o):o=a[3];const f=o;let h;a[4]!==i?(h=()=>i==null?void 0:i.trackEvents(),a[4]=i,a[5]=h):h=a[5];const y=h;let p;a[6]!==i?(p=A=>i==null?void 0:i.trackLink(A),a[6]=i,a[7]=p):p=a[7];const v=p,b=hS;let C;a[8]!==i?(C=(A,...H)=>{const k=H;i==null||i.pushInstruction(A,...k)},a[8]=i,a[9]=C):C=a[9];const x=C;let R;return a[10]!==x||a[11]!==f||a[12]!==y||a[13]!==v||a[14]!==c?(R={trackEvent:f,trackEvents:y,trackPageView:c,trackLink:v,enableLinkTracking:b,pushInstruction:x},a[10]=x,a[11]=f,a[12]=y,a[13]=v,a[14]=c,a[15]=R):R=a[15],R}function hS(){}function Up(){const a=ut.c(13),{trackPageView:i}=Lp();let u,c;a[0]!==i?(u=()=>{i({documentTitle:"GEANT Compendium Landing Page"})},c=[i],a[0]=i,a[1]=u,a[2]=c):(u=a[1],c=a[2]),g.useEffect(u,c);let o;a[3]===Symbol.for("react.memo_cache_sentinel")?(o=m.jsx("h1",{className:"geant-header",children:"THE GÉANT COMPENDIUM OF NRENS"}),a[3]=o):o=a[3];let f;a[4]===Symbol.for("react.memo_cache_sentinel")?(f=m.jsx(qn,{children:m.jsxs("div",{className:"center-text",children:[o,m.jsxs("div",{className:"wordwrap pt-4",children:[m.jsx("p",{style:{textAlign:"left",fontSize:"20px"},children:"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."}),m.jsx("p",{style:{textAlign:"left",fontSize:"20px"},children:"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."}),m.jsx("p",{style:{textAlign:"left",fontSize:"20px"},children:"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."})]})]})}),a[4]=f):f=a[4];let h;a[5]===Symbol.for("react.memo_cache_sentinel")?(h={backgroundColor:"white"},a[5]=h):h=a[5];let y;a[6]===Symbol.for("react.memo_cache_sentinel")?(y={width:"18rem"},a[6]=y):y=a[6];let p;a[7]===Symbol.for("react.memo_cache_sentinel")?(p=m.jsx($n.Img,{src:Mp}),a[7]=p):p=a[7];let v;a[8]===Symbol.for("react.memo_cache_sentinel")?(v=m.jsx($n.Title,{children:"Compendium Data"}),a[8]=v):v=a[8];let b;a[9]===Symbol.for("react.memo_cache_sentinel")?(b=m.jsx(on,{align:"center",children:m.jsx($n,{border:"light",style:y,children:m.jsxs(ae,{to:"/data",className:"link-text",children:[p,m.jsxs($n.Body,{children:[v,m.jsx($n.Text,{children:m.jsx("span",{children:"Statistical representation of the annual Compendium Survey data is available here"})})]})]})})}),a[9]=b):b=a[9];let C;a[10]===Symbol.for("react.memo_cache_sentinel")?(C={width:"18rem"},a[10]=C):C=a[10];let x;a[11]===Symbol.for("react.memo_cache_sentinel")?(x=m.jsx($n.Img,{src:zp}),a[11]=x):x=a[11];let R;return a[12]===Symbol.for("react.memo_cache_sentinel")?(R=m.jsxs(Wa,{className:"py-5 grey-container",children:[f,m.jsx(qn,{children:m.jsx(on,{children:m.jsx(Wa,{style:h,className:"rounded-border",children:m.jsxs(qn,{className:"justify-content-md-center",children:[b,m.jsx(on,{align:"center",children:m.jsx($n,{border:"light",style:C,children:m.jsxs("a",{href:"https://resources.geant.org/geant-compendia/",className:"link-text",target:"_blank",rel:"noreferrer",children:[x,m.jsxs($n.Body,{children:[m.jsx($n.Title,{children:"Compendium Reports"}),m.jsx($n.Text,{children:"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"})]})]})})})]})})})})]}),a[12]=R):R=a[12],R}var Hp={color:void 0,size:void 0,className:void 0,style:void 0,attr:void 0},Ry=Xt.createContext&&Xt.createContext(Hp),mS=["attr","size","title"];function yS(a,i){if(a==null)return{};var u=pS(a,i),c,o;if(Object.getOwnPropertySymbols){var f=Object.getOwnPropertySymbols(a);for(o=0;o<f.length;o++)c=f[o],!(i.indexOf(c)>=0)&&Object.prototype.propertyIsEnumerable.call(a,c)&&(u[c]=a[c])}return u}function pS(a,i){if(a==null)return{};var u={};for(var c in a)if(Object.prototype.hasOwnProperty.call(a,c)){if(i.indexOf(c)>=0)continue;u[c]=a[c]}return u}function ku(){return ku=Object.assign?Object.assign.bind():function(a){for(var i=1;i<arguments.length;i++){var u=arguments[i];for(var c in u)Object.prototype.hasOwnProperty.call(u,c)&&(a[c]=u[c])}return a},ku.apply(this,arguments)}function Ty(a,i){var u=Object.keys(a);if(Object.getOwnPropertySymbols){var c=Object.getOwnPropertySymbols(a);i&&(c=c.filter(function(o){return Object.getOwnPropertyDescriptor(a,o).enumerable})),u.push.apply(u,c)}return u}function Vu(a){for(var i=1;i<arguments.length;i++){var u=arguments[i]!=null?arguments[i]:{};i%2?Ty(Object(u),!0).forEach(function(c){vS(a,c,u[c])}):Object.getOwnPropertyDescriptors?Object.defineProperties(a,Object.getOwnPropertyDescriptors(u)):Ty(Object(u)).forEach(function(c){Object.defineProperty(a,c,Object.getOwnPropertyDescriptor(u,c))})}return a}function vS(a,i,u){return i=gS(i),i in a?Object.defineProperty(a,i,{value:u,enumerable:!0,configurable:!0,writable:!0}):a[i]=u,a}function gS(a){var i=ES(a,"string");return typeof i=="symbol"?i:i+""}function ES(a,i){if(typeof a!="object"||!a)return a;var u=a[Symbol.toPrimitive];if(u!==void 0){var c=u.call(a,i||"default");if(typeof c!="object")return c;throw new TypeError("@@toPrimitive must return a primitive value.")}return(i==="string"?String:Number)(a)}function Bp(a){return a&&a.map((i,u)=>Xt.createElement(i.tag,Vu({key:u},i.attr),Bp(i.child)))}function qp(a){return i=>Xt.createElement(bS,ku({attr:Vu({},a.attr)},i),Bp(a.child))}function bS(a){var i=u=>{var{attr:c,size:o,title:f}=a,h=yS(a,mS),y=o||u.size||"1em",p;return u.className&&(p=u.className),a.className&&(p=(p?p+" ":"")+a.className),Xt.createElement("svg",ku({stroke:"currentColor",fill:"currentColor",strokeWidth:"0"},u.attr,c,h,{className:p,style:Vu(Vu({color:a.color||u.color},u.style),a.style),height:y,width:y,xmlns:"http://www.w3.org/2000/svg"}),f&&Xt.createElement("title",null,f),a.children)};return Ry!==void 0?Xt.createElement(Ry.Consumer,null,u=>i(u)):i(Hp)}function SS(a){return qp({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:[]}]})(a)}function xS(a){return qp({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:[]}]})(a)}const fr=a=>{const i=ut.c(23),{title:u,children:c,startCollapsed:o,theme:f}=a,h=f===void 0?"":f,[y,p]=g.useState(!!o);let v;i[0]===Symbol.for("react.memo_cache_sentinel")?(v={color:"white",paddingBottom:"3px",marginTop:"3px",marginLeft:"3px",scale:"1.3"},i[0]=v):v=i[0];let b=v;if(h){let T;i[1]===Symbol.for("react.memo_cache_sentinel")?(T={...b,color:"black",fontWeight:"bold"},i[1]=T):T=i[1],b=T}const C=`collapsible-box${h} p-0`;let x;i[2]!==u?(x=m.jsx(on,{children:m.jsx("h1",{className:"bold-caps-16pt dark-teal pt-3 ps-3",children:u})}),i[2]=u,i[3]=x):x=i[3];const R=`toggle-btn${h} p-${h?3:2}`;let A;i[4]!==y?(A=()=>p(!y),i[4]=y,i[5]=A):A=i[5];let H;i[6]!==y||i[7]!==b?(H=y?m.jsx(xS,{style:b}):m.jsx(SS,{style:b}),i[6]=y,i[7]=b,i[8]=H):H=i[8];let k;i[9]!==R||i[10]!==A||i[11]!==H?(k=m.jsx(on,{className:"flex-grow-0 flex-shrink-1",children:m.jsx("div",{className:R,onClick:A,children:H})}),i[9]=R,i[10]=A,i[11]=H,i[12]=k):k=i[12];let z;i[13]!==x||i[14]!==k?(z=m.jsxs(qn,{children:[x,k]}),i[13]=x,i[14]=k,i[15]=z):z=i[15];const Z=`collapsible-content${y?" collapsed":""}`;let Q;i[16]!==c||i[17]!==Z?(Q=m.jsx("div",{className:Z,children:c}),i[16]=c,i[17]=Z,i[18]=Q):Q=i[18];let ee;return i[19]!==Q||i[20]!==C||i[21]!==z?(ee=m.jsxs("div",{className:C,children:[z,Q]}),i[19]=Q,i[20]=C,i[21]=z,i[22]=ee):ee=i[22],ee};function _S(a){const i=ut.c(8),{section:u}=a;let c;i[0]===Symbol.for("react.memo_cache_sentinel")?(c={display:"flex",alignSelf:"right",lineHeight:"1.5rem",marginTop:"0.5rem"},i[0]=c):c=i[0];let o,f;i[1]===Symbol.for("react.memo_cache_sentinel")?(o=m.jsx("br",{}),f={float:"right"},i[1]=o,i[2]=f):(o=i[1],f=i[2]);let h;i[3]!==u?(h=m.jsx("div",{style:c,children:m.jsxs("span",{children:["Compendium ",o,m.jsx("span",{style:f,children:u})]})}),i[3]=u,i[4]=h):h=i[4];let y;i[5]===Symbol.for("react.memo_cache_sentinel")?(y=m.jsx("img",{src:zp,style:{maxWidth:"4rem"},alt:"Compendium Data logo"}),i[5]=y):y=i[5];let p;return i[6]!==h?(p=m.jsxs("div",{className:"bold-caps-17pt section-container",children:[h,y]}),i[6]=h,i[7]=p):p=i[7],p}function RS(a){const i=ut.c(14),{type:u}=a;let c="";u=="data"?c=" compendium-data-header":u=="reports"&&(c=" compendium-reports-header");let o;i[0]===Symbol.for("react.memo_cache_sentinel")?(o={marginTop:"0.5rem"},i[0]=o):o=i[0];const f=u==="data"?"/data":"/";let h;i[1]===Symbol.for("react.memo_cache_sentinel")?(h={textDecoration:"none",color:"white"},i[1]=h):h=i[1];const y=u==="data"?"Data":"Reports";let p;i[2]!==y?(p=m.jsxs("span",{children:["Compendium ",y]}),i[2]=y,i[3]=p):p=i[3];let v;i[4]!==f||i[5]!==p?(v=m.jsx(on,{sm:8,children:m.jsx("h1",{className:"bold-caps-30pt",style:o,children:m.jsx(ae,{to:f,style:h,children:p})})}),i[4]=f,i[5]=p,i[6]=v):v=i[6];let b;i[7]===Symbol.for("react.memo_cache_sentinel")?(b={color:"inherit"},i[7]=b):b=i[7];let C;i[8]===Symbol.for("react.memo_cache_sentinel")?(C=m.jsx(on,{sm:4,children:m.jsx("a",{style:b,href:"https://resources.geant.org/geant-compendia/",target:"_blank",rel:"noreferrer",children:m.jsx(_S,{section:"Reports"})})}),i[8]=C):C=i[8];let x;i[9]!==v?(x=m.jsx(Wa,{children:m.jsxs(qn,{children:[v,C]})}),i[9]=v,i[10]=x):x=i[10];let R;return i[11]!==c||i[12]!==x?(R=m.jsx("div",{className:c,children:x}),i[11]=c,i[12]=x,i[13]=R):R=i[13],R}function TS(a){const i=ut.c(8),{children:u,type:c}=a;let o="";c=="data"?o=" compendium-data-banner":c=="reports"&&(o=" compendium-reports-banner");let f,h;i[0]===Symbol.for("react.memo_cache_sentinel")?(f=m.jsx("img",{src:Mp,style:{maxWidth:"7rem",marginBottom:"1rem"},alt:"Compendium Data logo"}),h={display:"flex",alignSelf:"right"},i[0]=f,i[1]=h):(f=i[0],h=i[1]);let y;i[2]===Symbol.for("react.memo_cache_sentinel")?(y={paddingTop:"1rem"},i[2]=y):y=i[2];let p;i[3]!==u?(p=m.jsx(Wa,{children:m.jsx(qn,{children:m.jsx(qn,{children:m.jsxs("div",{className:"section-container",children:[f,m.jsx("div",{style:h,children:m.jsx("div",{className:"center-text",style:y,children:u})})]})})})}),i[3]=u,i[4]=p):p=i[4];let v;return i[5]!==o||i[6]!==p?(v=m.jsx("div",{className:o,children:p}),i[5]=o,i[6]=p,i[7]=v):v=i[7],v}var oi=(a=>(a.Organisation="ORGANISATION",a.Policy="STANDARDS AND POLICIES",a.ConnectedUsers="CONNECTED USERS",a.Network="NETWORK",a.Services="SERVICES",a))(oi||{}),NS=(a=>(a.CSV="CSV",a.EXCEL="EXCEL",a))(NS||{}),CS=(a=>(a.PNG="png",a.JPEG="jpeg",a.SVG="svg",a))(CS||{});const Mx={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"},zx={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"},Lx={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 jS(){const a=ut.c(7),{preview:i,setPreview:u}=g.useContext(Fy),{user:c}=g.useContext(Zo),[o]=nE();let f;a[0]!==o?(f=o.get("preview"),a[0]=o,a[1]=f):f=a[1];const h=f;let y,p;return a[2]!==h||a[3]!==u||a[4]!==c?(y=()=>{h!==null&&(c.permissions.admin||c.role=="observer")&&u(!0)},p=[h,u,c],a[2]=h,a[3]=u,a[4]=c,a[5]=y,a[6]=p):(y=a[5],p=a[6]),g.useEffect(y,p),i}function OS(){const a=ut.c(82);jS();const{trackPageView:i}=Lp();let u,c;a[0]!==i?(u=()=>{i({documentTitle:"Compendium Data"})},c=[i],a[0]=i,a[1]=u,a[2]=c):(u=a[1],c=a[2]),Xt.useEffect(u,c);let o;a[3]===Symbol.for("react.memo_cache_sentinel")?(o=m.jsx(RS,{type:"data"}),a[3]=o):o=a[3];let f;a[4]===Symbol.for("react.memo_cache_sentinel")?(f=m.jsx(TS,{type:"data",children:m.jsx("p",{className:"wordwrap",children:"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."})}),a[4]=f):f=a[4];let h;a[5]===Symbol.for("react.memo_cache_sentinel")?(h=m.jsx("h6",{className:"section-title",children:"Budget, Income and Billing"}),a[5]=h):h=a[5];let y;a[6]===Symbol.for("react.memo_cache_sentinel")?(y=m.jsx(ae,{to:"/budget",className:"link-text-underline",children:m.jsx("span",{children:"Budget of NRENs per Year"})}),a[6]=y):y=a[6];let p;a[7]===Symbol.for("react.memo_cache_sentinel")?(p=m.jsx(ae,{to:"/funding",className:"link-text-underline",children:m.jsx("span",{children:"Income Source of NRENs"})}),a[7]=p):p=a[7];let v,b,C;a[8]===Symbol.for("react.memo_cache_sentinel")?(v=m.jsx(ae,{to:"/charging",className:"link-text-underline",children:m.jsx("span",{children:"Charging Mechanism of NRENs"})}),b=m.jsx("hr",{className:"fake-divider"}),C=m.jsx("h6",{className:"section-title",children:"Staff and Projects"}),a[8]=v,a[9]=b,a[10]=C):(v=a[8],b=a[9],C=a[10]);let x;a[11]===Symbol.for("react.memo_cache_sentinel")?(x=m.jsx(ae,{to:"/employee-count",className:"link-text-underline",children:m.jsx("span",{children:"Number of NREN Employees"})}),a[11]=x):x=a[11];let R;a[12]===Symbol.for("react.memo_cache_sentinel")?(R=m.jsx(ae,{to:"/roles",className:"link-text-underline",children:m.jsx("span",{children:"Roles of NREN employees (Technical v. Non-Technical)"})}),a[12]=R):R=a[12];let A;a[13]===Symbol.for("react.memo_cache_sentinel")?(A=m.jsx(ae,{to:"/employment",className:"link-text-underline",children:m.jsx("span",{children:"Types of Employment within NRENs"})}),a[13]=A):A=a[13];let H;a[14]===Symbol.for("react.memo_cache_sentinel")?(H=m.jsx(ae,{to:"/suborganisations",className:"link-text-underline",children:m.jsx("span",{children:"NREN Sub-Organisations"})}),a[14]=H):H=a[14];let k;a[15]===Symbol.for("react.memo_cache_sentinel")?(k=m.jsx(ae,{to:"/parentorganisation",className:"link-text-underline",children:m.jsx("span",{children:"NREN Parent Organisations"})}),a[15]=k):k=a[15];let z;a[16]===Symbol.for("react.memo_cache_sentinel")?(z=m.jsxs(fr,{title:oi.Organisation,children:[h,y,p,v,b,C,x,R,A,H,k,m.jsx(ae,{to:"/ec-projects",className:"link-text-underline",children:m.jsx("span",{children:"NREN Involvement in European Commission Projects"})})]}),a[16]=z):z=a[16];let Z,Q;a[17]===Symbol.for("react.memo_cache_sentinel")?(Z=m.jsx(ae,{to:"/policy",className:"link-text-underline",children:m.jsx("span",{children:"NREN Policies"})}),Q=m.jsx("h6",{className:"section-title",children:"Standards"}),a[17]=Z,a[18]=Q):(Z=a[17],Q=a[18]);let ee;a[19]===Symbol.for("react.memo_cache_sentinel")?(ee=m.jsx(ae,{to:"/audits",className:"link-text-underline",children:m.jsx("span",{children:"External and Internal Audits of Information Security Management Systems"})}),a[19]=ee):ee=a[19];let T;a[20]===Symbol.for("react.memo_cache_sentinel")?(T=m.jsx(ae,{to:"/business-continuity",className:"link-text-underline",children:m.jsx("span",{children:"NREN Business Continuity Planning"})}),a[20]=T):T=a[20];let P;a[21]===Symbol.for("react.memo_cache_sentinel")?(P=m.jsx(ae,{to:"/central-procurement",className:"link-text-underline",children:m.jsx("span",{children:"Central Procurement of Software"})}),a[21]=P):P=a[21];let fe;a[22]===Symbol.for("react.memo_cache_sentinel")?(fe=m.jsx(ae,{to:"/crisis-management",className:"link-text-underline",children:m.jsx("span",{children:"Crisis Management Procedures"})}),a[22]=fe):fe=a[22];let ce;a[23]===Symbol.for("react.memo_cache_sentinel")?(ce=m.jsx(ae,{to:"/crisis-exercise",className:"link-text-underline",children:m.jsx("span",{children:"Crisis Exercises - NREN Operation and Participation"})}),a[23]=ce):ce=a[23];let $;a[24]===Symbol.for("react.memo_cache_sentinel")?($=m.jsx(ae,{to:"/security-control",className:"link-text-underline",children:m.jsx("span",{children:"Security Controls Used by NRENs"})}),a[24]=$):$=a[24];let ie;a[25]===Symbol.for("react.memo_cache_sentinel")?(ie=m.jsx(ae,{to:"/services-offered",className:"link-text-underline",children:m.jsx("span",{children:"Services Offered by NRENs by Types of Users"})}),a[25]=ie):ie=a[25];let Le;a[26]===Symbol.for("react.memo_cache_sentinel")?(Le=m.jsx(ae,{to:"/corporate-strategy",className:"link-text-underline",children:m.jsx("span",{children:"NREN Corporate Strategies "})}),a[26]=Le):Le=a[26];let Pe;a[27]===Symbol.for("react.memo_cache_sentinel")?(Pe=m.jsx(ae,{to:"/service-level-targets",className:"link-text-underline",children:m.jsx("span",{children:"NRENs Offering Service Level Targets"})}),a[27]=Pe):Pe=a[27];let Ge;a[28]===Symbol.for("react.memo_cache_sentinel")?(Ge=m.jsxs(fr,{title:oi.Policy,startCollapsed:!0,children:[Z,Q,ee,T,P,fe,ce,$,ie,Le,Pe,m.jsx(ae,{to:"/service-management-framework",className:"link-text-underline",children:m.jsx("span",{children:"NRENs Operating a Formal Service Management Framework"})})]}),a[28]=Ge):Ge=a[28];let et;a[29]===Symbol.for("react.memo_cache_sentinel")?(et=m.jsx("h6",{className:"section-title",children:"Connected Users"}),a[29]=et):et=a[29];let Ne;a[30]===Symbol.for("react.memo_cache_sentinel")?(Ne=m.jsx(ae,{to:"/institutions-urls",className:"link-text-underline",children:m.jsx("span",{children:"Webpages Listing Institutions and Organisations Connected to NREN Networks"})}),a[30]=Ne):Ne=a[30];let K;a[31]===Symbol.for("react.memo_cache_sentinel")?(K=m.jsx(ae,{to:"/connected-proportion",className:"link-text-underline",children:m.jsx("span",{children:"Proportion of Different Categories of Institutions Served by NRENs"})}),a[31]=K):K=a[31];let se;a[32]===Symbol.for("react.memo_cache_sentinel")?(se=m.jsx(ae,{to:"/connectivity-level",className:"link-text-underline",children:m.jsx("span",{children:"Level of IP Connectivity by Institution Type"})}),a[32]=se):se=a[32];let F;a[33]===Symbol.for("react.memo_cache_sentinel")?(F=m.jsx(ae,{to:"/connection-carrier",className:"link-text-underline",children:m.jsx("span",{children:"Methods of Carrying IP Traffic to Users"})}),a[33]=F):F=a[33];let _e;a[34]===Symbol.for("react.memo_cache_sentinel")?(_e=m.jsx(ae,{to:"/connectivity-load",className:"link-text-underline",children:m.jsx("span",{children:"Connectivity Load"})}),a[34]=_e):_e=a[34];let _;a[35]===Symbol.for("react.memo_cache_sentinel")?(_=m.jsx(ae,{to:"/connectivity-growth",className:"link-text-underline",children:m.jsx("span",{children:"Connectivity Growth"})}),a[35]=_):_=a[35];let V,te,W;a[36]===Symbol.for("react.memo_cache_sentinel")?(V=m.jsx(ae,{to:"/remote-campuses",className:"link-text-underline",children:m.jsx("span",{children:"NREN Connectivity to Remote Campuses in Other Countries"})}),te=m.jsx("hr",{className:"fake-divider"}),W=m.jsx("h6",{className:"section-title",children:"Connected Users - Commercial"}),a[36]=V,a[37]=te,a[38]=W):(V=a[36],te=a[37],W=a[38]);let J;a[39]===Symbol.for("react.memo_cache_sentinel")?(J=m.jsx(ae,{to:"/commercial-charging-level",className:"link-text-underline",children:m.jsx("span",{children:"Commercial Charging Level"})}),a[39]=J):J=a[39];let ye;a[40]===Symbol.for("react.memo_cache_sentinel")?(ye=m.jsxs(fr,{title:oi.ConnectedUsers,startCollapsed:!0,children:[et,Ne,K,se,F,_e,_,V,te,W,J,m.jsx(ae,{to:"/commercial-connectivity",className:"link-text-underline",children:m.jsx("span",{children:"Commercial Connectivity"})})]}),a[40]=ye):ye=a[40];let ge;a[41]===Symbol.for("react.memo_cache_sentinel")?(ge=m.jsx("h6",{className:"section-title",children:"Connectivity"}),a[41]=ge):ge=a[41];let Ze;a[42]===Symbol.for("react.memo_cache_sentinel")?(Ze=m.jsx(ae,{to:"/traffic-volume",className:"link-text-underline",children:m.jsx("span",{children:"NREN Traffic - NREN Customers & External Networks"})}),a[42]=Ze):Ze=a[42];let Ce;a[43]===Symbol.for("react.memo_cache_sentinel")?(Ce=m.jsx(ae,{to:"/iru-duration",className:"link-text-underline",children:m.jsx("span",{children:"Average Duration of IRU leases of Fibre by NRENs"})}),a[43]=Ce):Ce=a[43];let xe;a[44]===Symbol.for("react.memo_cache_sentinel")?(xe=m.jsx(ae,{to:"/fibre-light",className:"link-text-underline",children:m.jsx("span",{children:"Approaches to lighting NREN fibre networks"})}),a[44]=xe):xe=a[44];let Te;a[45]===Symbol.for("react.memo_cache_sentinel")?(Te=m.jsx(ae,{to:"/dark-fibre-lease",className:"link-text-underline",children:m.jsx("span",{children:"Kilometres of Leased Dark Fibre (National)"})}),a[45]=Te):Te=a[45];let at;a[46]===Symbol.for("react.memo_cache_sentinel")?(at=m.jsx(ae,{to:"/dark-fibre-lease-international",className:"link-text-underline",children:m.jsx("span",{children:"Kilometres of Leased Dark Fibre (International)"})}),a[46]=at):at=a[46];let bt;a[47]===Symbol.for("react.memo_cache_sentinel")?(bt=m.jsx(ae,{to:"/dark-fibre-installed",className:"link-text-underline",children:m.jsx("span",{children:"Kilometres of Installed Dark Fibre"})}),a[47]=bt):bt=a[47];let Ke,Rt,ze;a[48]===Symbol.for("react.memo_cache_sentinel")?(Ke=m.jsx(ae,{to:"/network-map",className:"link-text-underline",children:m.jsx("span",{children:"NREN Network Maps"})}),Rt=m.jsx("hr",{className:"fake-divider"}),ze=m.jsx("h6",{className:"section-title",children:"Performance Monitoring & Management"}),a[48]=Ke,a[49]=Rt,a[50]=ze):(Ke=a[48],Rt=a[49],ze=a[50]);let St;a[51]===Symbol.for("react.memo_cache_sentinel")?(St=m.jsx(ae,{to:"/monitoring-tools",className:"link-text-underline",children:m.jsx("span",{children:"Tools for Monitoring or Troubleshooting the Network - Offered to Client Institutions"})}),a[51]=St):St=a[51];let qt;a[52]===Symbol.for("react.memo_cache_sentinel")?(qt=m.jsx(ae,{to:"/pert-team",className:"link-text-underline",children:m.jsx("span",{children:"NRENs with Performance Enhancement Response Teams"})}),a[52]=qt):qt=a[52];let en;a[53]===Symbol.for("react.memo_cache_sentinel")?(en=m.jsx(ae,{to:"/passive-monitoring",className:"link-text-underline",children:m.jsx("span",{children:"Methods for Passively Monitoring International Traffic"})}),a[53]=en):en=a[53];let dn;a[54]===Symbol.for("react.memo_cache_sentinel")?(dn=m.jsx(ae,{to:"/traffic-stats",className:"link-text-underline",children:m.jsx("span",{children:"Traffic Statistics "})}),a[54]=dn):dn=a[54];let hn;a[55]===Symbol.for("react.memo_cache_sentinel")?(hn=m.jsx(ae,{to:"/weather-map",className:"link-text-underline",children:m.jsx("span",{children:"NREN Online Network Weather Maps "})}),a[55]=hn):hn=a[55];let Tt;a[56]===Symbol.for("react.memo_cache_sentinel")?(Tt=m.jsx(ae,{to:"/certificate-provider",className:"link-text-underline",children:m.jsx("span",{children:"Certification Services used by NRENs"})}),a[56]=Tt):Tt=a[56];let Jt,On,ct;a[57]===Symbol.for("react.memo_cache_sentinel")?(Jt=m.jsx(ae,{to:"/siem-vendors",className:"link-text-underline",children:m.jsx("span",{children:"Vendors of SIEM/SOC systems used by NRENs"})}),On=m.jsx("hr",{className:"fake-divider"}),ct=m.jsx("h6",{className:"section-title",children:"Alienwave"}),a[57]=Jt,a[58]=On,a[59]=ct):(Jt=a[57],On=a[58],ct=a[59]);let wt;a[60]===Symbol.for("react.memo_cache_sentinel")?(wt=m.jsx(ae,{to:"/alien-wave",className:"link-text-underline",children:m.jsx("span",{children:"NREN Use of 3rd Party Alienwave/Lightpath Services"})}),a[60]=wt):wt=a[60];let be,Mt,kt;a[61]===Symbol.for("react.memo_cache_sentinel")?(be=m.jsx(ae,{to:"/alien-wave-internal",className:"link-text-underline",children:m.jsx("span",{children:"Internal NREN Use of Alien Waves"})}),Mt=m.jsx("hr",{className:"fake-divider"}),kt=m.jsx("h6",{className:"section-title",children:"Capacity"}),a[61]=be,a[62]=Mt,a[63]=kt):(be=a[61],Mt=a[62],kt=a[63]);let _a;a[64]===Symbol.for("react.memo_cache_sentinel")?(_a=m.jsx(ae,{to:"/capacity-largest-link",className:"link-text-underline",children:m.jsx("span",{children:"Capacity of the Largest Link in an NREN Network"})}),a[64]=_a):_a=a[64];let Vt;a[65]===Symbol.for("react.memo_cache_sentinel")?(Vt=m.jsx(ae,{to:"/external-connections",className:"link-text-underline",children:m.jsx("span",{children:"NREN External IP Connections"})}),a[65]=Vt):Vt=a[65];let Wn;a[66]===Symbol.for("react.memo_cache_sentinel")?(Wn=m.jsx(ae,{to:"/capacity-core-ip",className:"link-text-underline",children:m.jsx("span",{children:"NREN Core IP Capacity"})}),a[66]=Wn):Wn=a[66];let In;a[67]===Symbol.for("react.memo_cache_sentinel")?(In=m.jsx(ae,{to:"/non-rne-peers",className:"link-text-underline",children:m.jsx("span",{children:"Number of Non-R&E Networks NRENs Peer With"})}),a[67]=In):In=a[67];let tn,pt,ea;a[68]===Symbol.for("react.memo_cache_sentinel")?(tn=m.jsx(ae,{to:"/traffic-ratio",className:"link-text-underline",children:m.jsx("span",{children:"Types of traffic in NREN networks"})}),pt=m.jsx("hr",{className:"fake-divider"}),ea=m.jsx("h6",{className:"section-title",children:"Software-Defined Networking (SDN) & Network Function Virtualisation(NFV)"}),a[68]=tn,a[69]=pt,a[70]=ea):(tn=a[68],pt=a[69],ea=a[70]);let Nt;a[71]===Symbol.for("react.memo_cache_sentinel")?(Nt=m.jsx(ae,{to:"/ops-automation",className:"link-text-underline",children:m.jsx("span",{children:"NREN Automation of Operational Processes"})}),a[71]=Nt):Nt=a[71];let ht;a[72]===Symbol.for("react.memo_cache_sentinel")?(ht=m.jsx(ae,{to:"/network-automation",className:"link-text-underline",children:m.jsx("span",{children:"Network Tasks for which NRENs Use Automation "})}),a[72]=ht):ht=a[72];let Vn;a[73]===Symbol.for("react.memo_cache_sentinel")?(Vn=m.jsxs(fr,{title:oi.Network,startCollapsed:!0,children:[ge,Ze,Ce,xe,Te,at,bt,Ke,Rt,ze,St,qt,en,dn,hn,Tt,Jt,On,ct,wt,be,Mt,kt,_a,Vt,Wn,In,tn,pt,ea,Nt,ht,m.jsx(ae,{to:"/nfv",className:"link-text-underline",children:m.jsx("span",{children:"Kinds of Network Function Virtualisation used by NRENs"})})]}),a[73]=Vn):Vn=a[73];let Ra;a[74]===Symbol.for("react.memo_cache_sentinel")?(Ra=m.jsx(ae,{to:"/network-services",className:"link-text-underline",children:m.jsx("span",{children:"Network services"})}),a[74]=Ra):Ra=a[74];let ta;a[75]===Symbol.for("react.memo_cache_sentinel")?(ta=m.jsx(ae,{to:"/isp-support-services",className:"link-text-underline",children:m.jsx("span",{children:"ISP support services"})}),a[75]=ta):ta=a[75];let Dn;a[76]===Symbol.for("react.memo_cache_sentinel")?(Dn=m.jsx(ae,{to:"/security-services",className:"link-text-underline",children:m.jsx("span",{children:"Security services"})}),a[76]=Dn):Dn=a[76];let mn;a[77]===Symbol.for("react.memo_cache_sentinel")?(mn=m.jsx(ae,{to:"/identity-services",className:"link-text-underline",children:m.jsx("span",{children:"Identity services"})}),a[77]=mn):mn=a[77];let zt;a[78]===Symbol.for("react.memo_cache_sentinel")?(zt=m.jsx(ae,{to:"/collaboration-services",className:"link-text-underline",children:m.jsx("span",{children:"Collaboration services"})}),a[78]=zt):zt=a[78];let Ft;a[79]===Symbol.for("react.memo_cache_sentinel")?(Ft=m.jsx(ae,{to:"/multimedia-services",className:"link-text-underline",children:m.jsx("span",{children:"Multimedia services"})}),a[79]=Ft):Ft=a[79];let yn;a[80]===Symbol.for("react.memo_cache_sentinel")?(yn=m.jsx(ae,{to:"/storage-and-hosting-services",className:"link-text-underline",children:m.jsx("span",{children:"Storage and hosting services"})}),a[80]=yn):yn=a[80];let Ta;return a[81]===Symbol.for("react.memo_cache_sentinel")?(Ta=m.jsxs(m.Fragment,{children:[o,f,m.jsx(Wa,{className:"mt-5 mb-5",children:m.jsxs(qn,{children:[z,Ge,ye,Vn,m.jsxs(fr,{title:oi.Services,startCollapsed:!0,children:[Ra,ta,Dn,mn,zt,Ft,yn,m.jsx(ae,{to:"/professional-services",className:"link-text-underline",children:m.jsx("span",{children:"Professional services"})})]})]})})]}),a[81]=Ta):Ta=a[81],Ta}const DS=()=>{const a=ut.c(26),{consent:i,setConsent:u}=g.useContext(Ko),[c,o]=g.useState(i===null);let f;a[0]===Symbol.for("react.memo_cache_sentinel")?(f=()=>{o(!1),window.location.reload()},a[0]=f):f=a[0];const h=f,[y,p]=g.useState(!0);let v;a[1]!==u?(v=P=>{const fe=new Date;fe.setDate(fe.getDate()+30),localStorage.setItem("matomo_consent",JSON.stringify({consent:P,expiry:fe})),u(P)},a[1]=u,a[2]=v):v=a[2];const b=v;let C;a[3]===Symbol.for("react.memo_cache_sentinel")?(C=m.jsx(or.Header,{closeButton:!0,children:m.jsx(or.Title,{children:"Privacy on this site"})}),a[3]=C):C=a[3];let x;a[4]===Symbol.for("react.memo_cache_sentinel")?(x=m.jsx("a",{href:"https://geant.org/Privacy-Notice/",children:"Privacy Policy"}),a[4]=x):x=a[4];let R;a[5]===Symbol.for("react.memo_cache_sentinel")?(R=m.jsxs("p",{children:["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 ",x,".",m.jsx("br",{}),"Below, you can choose to accept or decline to have this data collected."]}),a[5]=R):R=a[5];let A;a[6]!==y?(A=()=>p(!y),a[6]=y,a[7]=A):A=a[7];let H;a[8]!==y||a[9]!==A?(H=m.jsx(Ou.Check,{type:"checkbox",label:"Analytics",checked:y,onChange:A}),a[8]=y,a[9]=A,a[10]=H):H=a[10];let k;a[11]===Symbol.for("react.memo_cache_sentinel")?(k=m.jsx(Ou.Text,{className:"text-muted",children:"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."}),a[11]=k):k=a[11];let z;a[12]!==H?(z=m.jsxs(or.Body,{children:[R,m.jsx(Ou,{children:m.jsxs(Ou.Group,{className:"mb-3",children:[H,k]})})]}),a[12]=H,a[13]=z):z=a[13];let Z;a[14]!==b?(Z=m.jsx(Lo,{variant:"secondary",onClick:()=>{b(!1),h()},children:"Decline all"}),a[14]=b,a[15]=Z):Z=a[15];let Q;a[16]!==y||a[17]!==b?(Q=m.jsx(Lo,{variant:"primary",onClick:()=>{b(y),h()},children:"Save consent for 30 days"}),a[16]=y,a[17]=b,a[18]=Q):Q=a[18];let ee;a[19]!==Q||a[20]!==Z?(ee=m.jsxs(or.Footer,{children:[Z,Q]}),a[19]=Q,a[20]=Z,a[21]=ee):ee=a[21];let T;return a[22]!==c||a[23]!==ee||a[24]!==z?(T=m.jsxs(or,{show:c,centered:!0,children:[C,z,ee]}),a[22]=c,a[23]=ee,a[24]=z,a[25]=T):T=a[25],T},AS=g.lazy(()=>ve(()=>import("./Budget-Dcza_nDS.js"),__vite__mapDeps([0,1,2,3,4,5,6,7]))),wS=g.lazy(()=>ve(()=>import("./ChargingStructure-LPcFjEsG.js"),__vite__mapDeps([8,2,3,4,5,6,9,10,11]))),MS=g.lazy(()=>ve(()=>import("./ECProjects-ChLCZHki.js"),__vite__mapDeps([12,2,3,4,5,6,13,11]))),zS=g.lazy(()=>ve(()=>import("./FundingSource-Bwu0iwfm.js"),__vite__mapDeps([14,1,2,3,4,5,6,15]))),LS=g.lazy(()=>ve(()=>import("./ParentOrganisation-D0KpPI2s.js"),__vite__mapDeps([16,2,3,4,5,6,13,11]))),Ny=g.lazy(()=>ve(()=>import("./StaffGraph-BWU39hrJ.js"),__vite__mapDeps([17,1,2,3,4,5,6,18]))),US=g.lazy(()=>ve(()=>import("./StaffGraphAbsolute-CMxNAPzl.js"),__vite__mapDeps([19,1,2,3,4,5,6,15,7]))),HS=g.lazy(()=>ve(()=>import("./SubOrganisation-BBUAiix9.js"),__vite__mapDeps([20,2,3,4,5,6,13,11]))),BS=g.lazy(()=>ve(()=>import("./Audits-tIxneKrE.js"),__vite__mapDeps([21,2,3,4,5,6,9,10,11]))),qS=g.lazy(()=>ve(()=>import("./BusinessContinuity-WayIenw9.js"),__vite__mapDeps([22,2,3,4,5,6,9,10,11]))),kS=g.lazy(()=>ve(()=>import("./CentralProcurement-ILLJKzCj.js"),__vite__mapDeps([23,2,3,4,5,6,15,1,7]))),VS=g.lazy(()=>ve(()=>import("./CorporateStrategy-DZFOGJiQ.js"),__vite__mapDeps([24,2,3,4,5,6,13,11]))),YS=g.lazy(()=>ve(()=>import("./CrisisExercises-DgB-Jzeh.js"),__vite__mapDeps([25,2,3,4,5,6,9,10,11]))),GS=g.lazy(()=>ve(()=>import("./CrisisManagement-C6sQvzSe.js"),__vite__mapDeps([26,2,3,4,5,6,9,10,11]))),XS=g.lazy(()=>ve(()=>import("./EOSCListings-DH_4uObR.js"),__vite__mapDeps([27,2,3,4,5,6,13,11]))),QS=g.lazy(()=>ve(()=>import("./Policy-9QlCddyw.js"),__vite__mapDeps([28,2,3,4,5,6,13,11]))),ZS=g.lazy(()=>ve(()=>import("./SecurityControls-cN55VGDF.js"),__vite__mapDeps([29,2,3,4,5,6,9,10,11]))),KS=g.lazy(()=>ve(()=>import("./ServiceLevelTargets-CAul_Bb5.js"),__vite__mapDeps([30,2,3,4,5,6,9,10,11]))),$S=g.lazy(()=>ve(()=>import("./ServiceManagementFramework-Dr5HjYSA.js"),__vite__mapDeps([31,2,3,4,5,6,9,10,11]))),JS=g.lazy(()=>ve(()=>import("./ServicesOffered-Z3IepUcf.js"),__vite__mapDeps([32,2,3,4,5,6,33,11]))),FS=g.lazy(()=>ve(()=>import("./ConnectedInstitutionsURLs-MamPTDnd.js"),__vite__mapDeps([34,2,3,4,5,6,13,11]))),bl=g.lazy(()=>ve(()=>import("./ConnectedUser-CSVPvLMN.js"),__vite__mapDeps([35,2,3,4,5,6,33,11]))),PS=g.lazy(()=>ve(()=>import("./RemoteCampuses-NUiCskMY.js"),__vite__mapDeps([36,2,3,4,5,6,11]))),WS=g.lazy(()=>ve(()=>import("./AlienWave-CoaJ4Ch0.js"),__vite__mapDeps([37,2,3,4,5,6,9,10,11]))),IS=g.lazy(()=>ve(()=>import("./AlienWaveInternal-F5JHtmfW.js"),__vite__mapDeps([38,2,3,4,5,6,9,10,11]))),ex=g.lazy(()=>ve(()=>import("./Automation-4jvTE-gK.js"),__vite__mapDeps([39,2,3,4,5,6,10,11]))),tx=g.lazy(()=>ve(()=>import("./CapacityCoreIP-DyN3YGAW.js"),__vite__mapDeps([40,1,2,3,4,5,6,15,7]))),nx=g.lazy(()=>ve(()=>import("./CapacityLargestLink-Dk26I_at.js"),__vite__mapDeps([41,1,2,3,4,5,6,15,7]))),ax=g.lazy(()=>ve(()=>import("./CertificateProvider-4SfZ4yzo.js"),__vite__mapDeps([42,2,3,4,5,6,9,10,11]))),Cy=g.lazy(()=>ve(()=>import("./DarkFibreLease-D0G5a_C_.js"),__vite__mapDeps([43,1,2,3,4,5,6,7]))),lx=g.lazy(()=>ve(()=>import("./DarkFibreInstalled-BEuXjlBR.js"),__vite__mapDeps([44,1,2,3,4,5,6,7]))),ix=g.lazy(()=>ve(()=>import("./ExternalConnections-CI7Oci1W.js"),__vite__mapDeps([45,2,3,4,5,6,11]))),rx=g.lazy(()=>ve(()=>import("./FibreLight-CWljRLcS.js"),__vite__mapDeps([46,2,3,4,5,6,9,10,11]))),ux=g.lazy(()=>ve(()=>import("./IRUDuration-DwT4l7iu.js"),__vite__mapDeps([47,1,2,3,4,5,6,7]))),cx=g.lazy(()=>ve(()=>import("./MonitoringTools-D5EolQI7.js"),__vite__mapDeps([48,2,3,4,5,6,9,10,11]))),sx=g.lazy(()=>ve(()=>import("./NetworkFunctionVirtualisation-Ci3ZHBJN.js"),__vite__mapDeps([49,2,3,4,5,6,10,11]))),ox=g.lazy(()=>ve(()=>import("./NetworkMapUrls-CYYKJL7A.js"),__vite__mapDeps([50,2,3,4,5,6,13,11]))),fx=g.lazy(()=>ve(()=>import("./NonRAndEPeer-OZTW6B0e.js"),__vite__mapDeps([51,1,2,3,4,5,6,15,7]))),dx=g.lazy(()=>ve(()=>import("./OPsAutomation-BzaiKZKL.js"),__vite__mapDeps([52,2,3,4,5,6,9,10,11]))),hx=g.lazy(()=>ve(()=>import("./PassiveMonitoring-DrHRNpwv.js"),__vite__mapDeps([53,2,3,4,5,6,9,10,11]))),mx=g.lazy(()=>ve(()=>import("./PertTeam-B3F3NYFc.js"),__vite__mapDeps([54,2,3,4,5,6,9,10,11]))),yx=g.lazy(()=>ve(()=>import("./SiemVendors-BpJ6Liws.js"),__vite__mapDeps([55,2,3,4,5,6,9,10,11]))),px=g.lazy(()=>ve(()=>import("./TrafficRatio-BRasghA5.js"),__vite__mapDeps([56,1,2,3,4,5,6,18]))),vx=g.lazy(()=>ve(()=>import("./TrafficUrl-DrUJ6TNq.js"),__vite__mapDeps([57,2,3,4,5,6,13,11]))),gx=g.lazy(()=>ve(()=>import("./TrafficVolume-DIkzyQG4.js"),__vite__mapDeps([58,1,2,3,4,5,6,7]))),Ex=g.lazy(()=>ve(()=>import("./WeatherMap-BWtEGyUR.js"),__vite__mapDeps([59,2,3,4,5,6,13,11]))),Ka=g.lazy(()=>ve(()=>import("./Services-UuW4JfkB.js"),__vite__mapDeps([60,2,3,4,5,6,11]))),bx=g.lazy(()=>ve(()=>import("./Landing-f86DzYca.js"),__vite__mapDeps([61,62,63,3,4,11]))),_o=g.lazy(()=>ve(()=>import("./SurveyContainerComponent-BjjhIoXr.js"),__vite__mapDeps([64,65,66,67,63,3,68]))),Sx=g.lazy(()=>ve(()=>import("./SurveyManagementComponent-DG2o_CsZ.js"),__vite__mapDeps([69,70,6,11,65,67,62,63,3]))),xx=g.lazy(()=>ve(()=>import("./UserManagementComponent-CvgRGQoR.js"),__vite__mapDeps([71,65,63,3,5,70,6,11]))),_x=()=>{const a=ut.c(9),{pathname:i}=Pn(),u=i!=="/";let c;a[0]===Symbol.for("react.memo_cache_sentinel")?(c=m.jsx(cS,{}),a[0]=c):c=a[0];let o;a[1]!==u?(o=m.jsx("main",{className:"grow",children:u?m.jsx(_1,{}):m.jsx(Up,{})}),a[1]=u,a[2]=o):o=a[2];let f;a[3]===Symbol.for("react.memo_cache_sentinel")?(f=m.jsx(DS,{}),a[3]=f):f=a[3];let h;a[4]!==o?(h=m.jsxs(OE,{children:[c,o,f]}),a[4]=o,a[5]=h):h=a[5];let y;a[6]===Symbol.for("react.memo_cache_sentinel")?(y=m.jsx(fS,{}),a[6]=y):y=a[6];let p;return a[7]!==h?(p=m.jsxs(m.Fragment,{children:[h,y]}),a[7]=h,a[8]=p):p=a[8],p},Rx=J1([{path:"",element:m.jsx(_x,{}),children:[{path:"/budget",element:m.jsx(AS,{})},{path:"/funding",element:m.jsx(zS,{})},{path:"/employment",element:m.jsx(Ny,{},"staffgraph")},{path:"/traffic-ratio",element:m.jsx(px,{})},{path:"/roles",element:m.jsx(Ny,{roles:!0},"staffgraphroles")},{path:"/employee-count",element:m.jsx(US,{})},{path:"/charging",element:m.jsx(wS,{})},{path:"/suborganisations",element:m.jsx(HS,{})},{path:"/parentorganisation",element:m.jsx(LS,{})},{path:"/ec-projects",element:m.jsx(MS,{})},{path:"/policy",element:m.jsx(QS,{})},{path:"/traffic-volume",element:m.jsx(gx,{})},{path:"/data",element:m.jsx(OS,{})},{path:"/institutions-urls",element:m.jsx(FS,{})},{path:"/connected-proportion",element:m.jsx(bl,{page:$t.ConnectedProportion},$t.ConnectedProportion)},{path:"/connectivity-level",element:m.jsx(bl,{page:$t.ConnectivityLevel},$t.ConnectivityLevel)},{path:"/connectivity-growth",element:m.jsx(bl,{page:$t.ConnectivityGrowth},$t.ConnectivityGrowth)},{path:"/connection-carrier",element:m.jsx(bl,{page:$t.ConnectionCarrier},$t.ConnectionCarrier)},{path:"/connectivity-load",element:m.jsx(bl,{page:$t.ConnectivityLoad},$t.ConnectivityLoad)},{path:"/commercial-charging-level",element:m.jsx(bl,{page:$t.CommercialChargingLevel},$t.CommercialChargingLevel)},{path:"/commercial-connectivity",element:m.jsx(bl,{page:$t.CommercialConnectivity},$t.CommercialConnectivity)},{path:"/network-services",element:m.jsx(Ka,{category:Bt.network_services},Bt.network_services)},{path:"/isp-support-services",element:m.jsx(Ka,{category:Bt.isp_support},Bt.isp_support)},{path:"/security-services",element:m.jsx(Ka,{category:Bt.security},Bt.security)},{path:"/identity-services",element:m.jsx(Ka,{category:Bt.identity},Bt.identity)},{path:"/collaboration-services",element:m.jsx(Ka,{category:Bt.collaboration},Bt.collaboration)},{path:"/multimedia-services",element:m.jsx(Ka,{category:Bt.multimedia},Bt.multimedia)},{path:"/storage-and-hosting-services",element:m.jsx(Ka,{category:Bt.storage_and_hosting},Bt.storage_and_hosting)},{path:"/professional-services",element:m.jsx(Ka,{category:Bt.professional_services},Bt.professional_services)},{path:"/dark-fibre-lease",element:m.jsx(Cy,{national:!0},"darkfibrenational")},{path:"/dark-fibre-lease-international",element:m.jsx(Cy,{},"darkfibreinternational")},{path:"/dark-fibre-installed",element:m.jsx(lx,{})},{path:"/remote-campuses",element:m.jsx(PS,{})},{path:"/eosc-listings",element:m.jsx(XS,{})},{path:"/fibre-light",element:m.jsx(rx,{})},{path:"/monitoring-tools",element:m.jsx(cx,{})},{path:"/pert-team",element:m.jsx(mx,{})},{path:"/passive-monitoring",element:m.jsx(hx,{})},{path:"/alien-wave",element:m.jsx(WS,{})},{path:"/alien-wave-internal",element:m.jsx(IS,{})},{path:"/external-connections",element:m.jsx(ix,{})},{path:"/ops-automation",element:m.jsx(dx,{})},{path:"/network-automation",element:m.jsx(ex,{})},{path:"/traffic-stats",element:m.jsx(vx,{})},{path:"/weather-map",element:m.jsx(Ex,{})},{path:"/network-map",element:m.jsx(ox,{})},{path:"/nfv",element:m.jsx(sx,{})},{path:"/certificate-providers",element:m.jsx(ax,{})},{path:"/siem-vendors",element:m.jsx(yx,{})},{path:"/capacity-largest-link",element:m.jsx(nx,{})},{path:"/capacity-core-ip",element:m.jsx(tx,{})},{path:"/non-rne-peers",element:m.jsx(fx,{})},{path:"/iru-duration",element:m.jsx(ux,{})},{path:"/audits",element:m.jsx(BS,{})},{path:"/business-continuity",element:m.jsx(qS,{})},{path:"/crisis-management",element:m.jsx(GS,{})},{path:"/crisis-exercise",element:m.jsx(YS,{})},{path:"/central-procurement",element:m.jsx(kS,{})},{path:"/security-control",element:m.jsx(ZS,{})},{path:"/services-offered",element:m.jsx(JS,{})},{path:"/service-management-framework",element:m.jsx($S,{})},{path:"/service-level-targets",element:m.jsx(KS,{})},{path:"/corporate-strategy",element:m.jsx(VS,{})},{path:"/survey/admin/surveys",element:m.jsx(Sx,{})},{path:"/survey/admin/users",element:m.jsx(xx,{})},{path:"/survey/admin/inspect/:year",element:m.jsx(_o,{loadFrom:"/api/response/inspect/"})},{path:"/survey/admin/try/:year",element:m.jsx(_o,{loadFrom:"/api/response/try/"})},{path:"/survey/response/:year/:nren",element:m.jsx(_o,{loadFrom:"/api/response/load/"})},{path:"/survey/*",element:m.jsx(bx,{})},{path:"*",element:m.jsx(Up,{})}]}]);function Tx(){const a=ut.c(1);let i;return a[0]===Symbol.for("react.memo_cache_sentinel")?(i=m.jsx("div",{className:"app",children:m.jsx(cE,{router:Rx})}),a[0]=i):i=a[0],i}const Nx=document.getElementById("root"),Cx=t0.createRoot(Nx);Cx.render(m.jsx(Xt.StrictMode,{children:m.jsx(Tx,{})}));export{Dx as $,Vy as A,mb as B,on as C,Wa as D,NS as E,hE as F,yE as G,Lp as H,CS as I,RS as J,Ou as K,ae as L,jS as M,EE as N,SS as O,Fy as P,xS as Q,qn as R,oi as S,qp as T,Mx as U,Bt as V,Zo as W,Yu as X,jy as Y,Ax as Z,wE as _,$t as a,ve as a0,lb as a1,eb as a2,tp as a3,Nl as a4,Sl as a5,Do as a6,Ja as a7,_l as a8,tb as a9,Ox as aa,Io as ab,CE as ac,zx as b,ut as c,Lx as d,fr as e,Xt as f,ip as g,Ve as h,we as i,m as j,ub as k,vy as l,Hu as m,Cb as n,Ku as o,Wo as p,cb as q,g as r,ui as s,np as t,Rl as u,lp as v,wx as w,Lo as x,UE as y,zo as z}; +*/var oy;function DE(){return oy||(oy=1,function(a){(function(){var i={}.hasOwnProperty;function u(){for(var f="",m=0;m<arguments.length;m++){var y=arguments[m];y&&(f=o(f,c(y)))}return f}function c(f){if(typeof f=="string"||typeof f=="number")return f;if(typeof f!="object")return"";if(Array.isArray(f))return u.apply(null,f);if(f.toString!==Object.prototype.toString&&!f.toString.toString().includes("[native code]"))return f.toString();var m="";for(var y in f)i.call(f,y)&&f[y]&&(m=o(m,y));return m}function o(f,m){return m?f?f+" "+m:f+m:f}a.exports?(u.default=u,a.exports=u):window.classNames=u})()}(mo)),mo.exports}var AE=DE();const De=pr(AE);function wE(a,i){if(a==null)return{};var u={};for(var c in a)if({}.hasOwnProperty.call(a,c)){if(i.includes(c))continue;u[c]=a[c]}return u}function Do(a,i){return Do=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(u,c){return u.__proto__=c,u},Do(a,i)}function ME(a,i){a.prototype=Object.create(i.prototype),a.prototype.constructor=a,Do(a,i)}const zE=["xxl","xl","lg","md","sm","xs"],LE="xs",Ku=g.createContext({prefixes:{},breakpoints:zE,minBreakpoint:LE});function Ve(a,i){const{prefixes:u}=g.useContext(Ku);return a||u[i]||i}function Iy(){const{breakpoints:a}=g.useContext(Ku);return a}function ep(){const{minBreakpoint:a}=g.useContext(Ku);return a}function UE(){const{dir:a}=g.useContext(Ku);return a==="rtl"}function $u(a){return a&&a.ownerDocument||document}function HE(a){var i=$u(a);return i&&i.defaultView||window}function BE(a,i){return HE(a).getComputedStyle(a,i)}var qE=/([A-Z])/g;function kE(a){return a.replace(qE,"-$1").toLowerCase()}var VE=/^ms-/;function Du(a){return kE(a).replace(VE,"-ms-")}var YE=/^((translate|rotate|scale)(X|Y|Z|3d)?|matrix(3d)?|perspective|skew(X|Y)?)$/i;function GE(a){return!!(a&&YE.test(a))}function Nl(a,i){var u="",c="";if(typeof i=="string")return a.style.getPropertyValue(Du(i))||BE(a).getPropertyValue(Du(i));Object.keys(i).forEach(function(o){var f=i[o];!f&&f!==0?a.style.removeProperty(Du(o)):GE(o)?c+=o+"("+f+") ":u+=Du(o)+": "+f+";"}),c&&(u+="transform: "+c+";"),a.style.cssText+=";"+u}var yo={exports:{}},po,fy;function XE(){if(fy)return po;fy=1;var a="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return po=a,po}var vo,dy;function QE(){if(dy)return vo;dy=1;var a=XE();function i(){}function u(){}return u.resetWarningCache=i,vo=function(){function c(m,y,v,p,b,T){if(T!==a){var x=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 x.name="Invariant Violation",x}}c.isRequired=c;function o(){return c}var f={array:c,bigint:c,bool:c,func:c,number:c,object:c,string:c,symbol:c,any:c,arrayOf:o,element:c,elementType:c,instanceOf:o,node:c,objectOf:o,oneOf:o,oneOfType:o,shape:o,exact:o,checkPropTypes:u,resetWarningCache:i};return f.PropTypes=f,f},vo}var hy;function ZE(){return hy||(hy=1,yo.exports=QE()()),yo.exports}var KE=ZE();const ga=pr(KE),my={disabled:!1},tp=Vt.createContext(null);var $E=function(i){return i.scrollTop},hr="unmounted",Sl="exited",Ka="entering",_l="entered",Ao="exiting",ba=function(a){ME(i,a);function i(c,o){var f;f=a.call(this,c,o)||this;var m=o,y=m&&!m.isMounting?c.enter:c.appear,v;return f.appearStatus=null,c.in?y?(v=Sl,f.appearStatus=Ka):v=_l:c.unmountOnExit||c.mountOnEnter?v=hr:v=Sl,f.state={status:v},f.nextCallback=null,f}i.getDerivedStateFromProps=function(o,f){var m=o.in;return m&&f.status===hr?{status:Sl}:null};var u=i.prototype;return u.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},u.componentDidUpdate=function(o){var f=null;if(o!==this.props){var m=this.state.status;this.props.in?m!==Ka&&m!==_l&&(f=Ka):(m===Ka||m===_l)&&(f=Ao)}this.updateStatus(!1,f)},u.componentWillUnmount=function(){this.cancelNextCallback()},u.getTimeouts=function(){var o=this.props.timeout,f,m,y;return f=m=y=o,o!=null&&typeof o!="number"&&(f=o.exit,m=o.enter,y=o.appear!==void 0?o.appear:m),{exit:f,enter:m,appear:y}},u.updateStatus=function(o,f){if(o===void 0&&(o=!1),f!==null)if(this.cancelNextCallback(),f===Ka){if(this.props.unmountOnExit||this.props.mountOnEnter){var m=this.props.nodeRef?this.props.nodeRef.current:di.findDOMNode(this);m&&$E(m)}this.performEnter(o)}else this.performExit();else this.props.unmountOnExit&&this.state.status===Sl&&this.setState({status:hr})},u.performEnter=function(o){var f=this,m=this.props.enter,y=this.context?this.context.isMounting:o,v=this.props.nodeRef?[y]:[di.findDOMNode(this),y],p=v[0],b=v[1],T=this.getTimeouts(),x=y?T.appear:T.enter;if(!o&&!m||my.disabled){this.safeSetState({status:_l},function(){f.props.onEntered(p)});return}this.props.onEnter(p,b),this.safeSetState({status:Ka},function(){f.props.onEntering(p,b),f.onTransitionEnd(x,function(){f.safeSetState({status:_l},function(){f.props.onEntered(p,b)})})})},u.performExit=function(){var o=this,f=this.props.exit,m=this.getTimeouts(),y=this.props.nodeRef?void 0:di.findDOMNode(this);if(!f||my.disabled){this.safeSetState({status:Sl},function(){o.props.onExited(y)});return}this.props.onExit(y),this.safeSetState({status:Ao},function(){o.props.onExiting(y),o.onTransitionEnd(m.exit,function(){o.safeSetState({status:Sl},function(){o.props.onExited(y)})})})},u.cancelNextCallback=function(){this.nextCallback!==null&&(this.nextCallback.cancel(),this.nextCallback=null)},u.safeSetState=function(o,f){f=this.setNextCallback(f),this.setState(o,f)},u.setNextCallback=function(o){var f=this,m=!0;return this.nextCallback=function(y){m&&(m=!1,f.nextCallback=null,o(y))},this.nextCallback.cancel=function(){m=!1},this.nextCallback},u.onTransitionEnd=function(o,f){this.setNextCallback(f);var m=this.props.nodeRef?this.props.nodeRef.current:di.findDOMNode(this),y=o==null&&!this.props.addEndListener;if(!m||y){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var v=this.props.nodeRef?[this.nextCallback]:[m,this.nextCallback],p=v[0],b=v[1];this.props.addEndListener(p,b)}o!=null&&setTimeout(this.nextCallback,o)},u.render=function(){var o=this.state.status;if(o===hr)return null;var f=this.props,m=f.children;f.in,f.mountOnEnter,f.unmountOnExit,f.appear,f.enter,f.exit,f.timeout,f.addEndListener,f.onEnter,f.onEntering,f.onEntered,f.onExit,f.onExiting,f.onExited,f.nodeRef;var y=wE(f,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return Vt.createElement(tp.Provider,{value:null},typeof m=="function"?m(o,y):Vt.cloneElement(Vt.Children.only(m),y))},i}(Vt.Component);ba.contextType=tp;ba.propTypes={};function ui(){}ba.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:ui,onEntering:ui,onEntered:ui,onExit:ui,onExiting:ui,onExited:ui};ba.UNMOUNTED=hr;ba.EXITED=Sl;ba.ENTERING=Ka;ba.ENTERED=_l;ba.EXITING=Ao;function JE(a){return a.code==="Escape"||a.keyCode===27}function FE(){const a=g.version.split(".");return{major:+a[0],minor:+a[1],patch:+a[2]}}function Ju(a){if(!a||typeof a=="function")return null;const{major:i}=FE();return i>=19?a.props.ref:a.ref}const hi=!!(typeof window<"u"&&window.document&&window.document.createElement);var wo=!1,Mo=!1;try{var go={get passive(){return wo=!0},get once(){return Mo=wo=!0}};hi&&(window.addEventListener("test",go,go),window.removeEventListener("test",go,!0))}catch{}function np(a,i,u,c){if(c&&typeof c!="boolean"&&!Mo){var o=c.once,f=c.capture,m=u;!Mo&&o&&(m=u.__once||function y(v){this.removeEventListener(i,y,f),u.call(this,v)},u.__once=m),a.addEventListener(i,m,wo?c:f)}a.addEventListener(i,u,c)}function zo(a,i,u,c){var o=c&&typeof c!="boolean"?c.capture:c;a.removeEventListener(i,u,o),u.__once&&a.removeEventListener(i,u.__once,o)}function qu(a,i,u,c){return np(a,i,u,c),function(){zo(a,i,u,c)}}function PE(a,i,u,c){if(c===void 0&&(c=!0),a){var o=document.createEvent("HTMLEvents");o.initEvent(i,u,c),a.dispatchEvent(o)}}function WE(a){var i=Nl(a,"transitionDuration")||"",u=i.indexOf("ms")===-1?1e3:1;return parseFloat(i)*u}function IE(a,i,u){u===void 0&&(u=5);var c=!1,o=setTimeout(function(){c||PE(a,"transitionend",!0)},i+u),f=qu(a,"transitionend",function(){c=!0},{once:!0});return function(){clearTimeout(o),f()}}function ap(a,i,u,c){u==null&&(u=WE(a)||0);var o=IE(a,u,c),f=qu(a,"transitionend",i);return function(){o(),f()}}function yy(a,i){const u=Nl(a,i)||"",c=u.indexOf("ms")===-1?1e3:1;return parseFloat(u)*c}function eb(a,i){const u=yy(a,"transitionDuration"),c=yy(a,"transitionDelay"),o=ap(a,f=>{f.target===a&&(o(),i(f))},u+c)}function tb(a){a.offsetHeight}const py=a=>!a||typeof a=="function"?a:i=>{a.current=i};function nb(a,i){const u=py(a),c=py(i);return o=>{u&&u(o),c&&c(o)}}function lp(a,i){return g.useMemo(()=>nb(a,i),[a,i])}function ab(a){return a&&"setState"in a?di.findDOMNode(a):a??null}const lb=Vt.forwardRef(({onEnter:a,onEntering:i,onEntered:u,onExit:c,onExiting:o,onExited:f,addEndListener:m,children:y,childRef:v,...p},b)=>{const T=g.useRef(null),x=lp(T,v),R=O=>{x(ab(O))},w=O=>ue=>{O&&T.current&&O(T.current,ue)},k=g.useCallback(w(a),[a]),B=g.useCallback(w(i),[i]),U=g.useCallback(w(u),[u]),Y=g.useCallback(w(c),[c]),$=g.useCallback(w(o),[o]),ee=g.useCallback(w(f),[f]),J=g.useCallback(w(m),[m]);return h.jsx(ba,{ref:b,...p,onEnter:k,onEntered:U,onEntering:B,onExit:Y,onExited:ee,onExiting:$,addEndListener:J,nodeRef:T,children:typeof y=="function"?(O,ue)=>y(O,{...ue,ref:R}):Vt.cloneElement(y,{ref:R})})});function ib(a){const i=g.useRef(a);return g.useEffect(()=>{i.current=a},[a]),i}function Lo(a){const i=ib(a);return g.useCallback(function(...u){return i.current&&i.current(...u)},[i])}const Jo=a=>g.forwardRef((i,u)=>h.jsx("div",{...i,ref:u,className:De(i.className,a)}));function rb(a){const i=g.useRef(a);return g.useEffect(()=>{i.current=a},[a]),i}function Rl(a){const i=rb(a);return g.useCallback(function(...u){return i.current&&i.current(...u)},[i])}function ub(){const a=g.useRef(!0),i=g.useRef(()=>a.current);return g.useEffect(()=>(a.current=!0,()=>{a.current=!1}),[]),i.current}function cb(a){const i=g.useRef(null);return g.useEffect(()=>{i.current=a}),i.current}const sb=typeof global<"u"&&global.navigator&&global.navigator.product==="ReactNative",ob=typeof document<"u",vy=ob||sb?g.useLayoutEffect:g.useEffect,fb=["as","disabled"];function db(a,i){if(a==null)return{};var u={};for(var c in a)if({}.hasOwnProperty.call(a,c)){if(i.indexOf(c)>=0)continue;u[c]=a[c]}return u}function hb(a){return!a||a.trim()==="#"}function ip({tagName:a,disabled:i,href:u,target:c,rel:o,role:f,onClick:m,tabIndex:y=0,type:v}){a||(u!=null||c!=null||o!=null?a="a":a="button");const p={tagName:a};if(a==="button")return[{type:v||"button",disabled:i},p];const b=x=>{if((i||a==="a"&&hb(u))&&x.preventDefault(),i){x.stopPropagation();return}m==null||m(x)},T=x=>{x.key===" "&&(x.preventDefault(),b(x))};return a==="a"&&(u||(u="#"),i&&(u=void 0)),[{role:f??"button",disabled:void 0,tabIndex:i?void 0:y,href:u,target:a==="a"?c:void 0,"aria-disabled":i||void 0,rel:a==="a"?o:void 0,onClick:b,onKeyDown:T},p]}const mb=g.forwardRef((a,i)=>{let{as:u,disabled:c}=a,o=db(a,fb);const[f,{tagName:m}]=ip(Object.assign({tagName:u,disabled:c},o));return h.jsx(m,Object.assign({},o,f,{ref:i}))});mb.displayName="Button";const yb={[Ka]:"show",[_l]:"show"},Fo=g.forwardRef(({className:a,children:i,transitionClasses:u={},onEnter:c,...o},f)=>{const m={in:!1,timeout:300,mountOnEnter:!1,unmountOnExit:!1,appear:!1,...o},y=g.useCallback((v,p)=>{tb(v),c==null||c(v,p)},[c]);return h.jsx(lb,{ref:f,addEndListener:eb,...m,onEnter:y,childRef:Ju(i),children:(v,p)=>g.cloneElement(i,{...p,className:De("fade",a,i.props.className,yb[v],u[v])})})});Fo.displayName="Fade";const pb={"aria-label":ga.string,onClick:ga.func,variant:ga.oneOf(["white"])},Po=g.forwardRef(({className:a,variant:i,"aria-label":u="Close",...c},o)=>h.jsx("button",{ref:o,type:"button",className:De("btn-close",i&&`btn-close-${i}`,a),"aria-label":u,...c}));Po.displayName="CloseButton";Po.propTypes=pb;const Uo=g.forwardRef(({as:a,bsPrefix:i,variant:u="primary",size:c,active:o=!1,disabled:f=!1,className:m,...y},v)=>{const p=Ve(i,"btn"),[b,{tagName:T}]=ip({tagName:a,disabled:f,...y}),x=T;return h.jsx(x,{...b,...y,ref:v,disabled:f,className:De(m,p,o&&"active",u&&`${p}-${u}`,c&&`${p}-${c}`,y.href&&f&&"disabled")})});Uo.displayName="Button";const Wo=g.forwardRef(({className:a,bsPrefix:i,as:u="div",...c},o)=>(i=Ve(i,"card-body"),h.jsx(u,{ref:o,className:De(a,i),...c})));Wo.displayName="CardBody";const rp=g.forwardRef(({className:a,bsPrefix:i,as:u="div",...c},o)=>(i=Ve(i,"card-footer"),h.jsx(u,{ref:o,className:De(a,i),...c})));rp.displayName="CardFooter";const up=g.createContext(null);up.displayName="CardHeaderContext";const cp=g.forwardRef(({bsPrefix:a,className:i,as:u="div",...c},o)=>{const f=Ve(a,"card-header"),m=g.useMemo(()=>({cardHeaderBsPrefix:f}),[f]);return h.jsx(up.Provider,{value:m,children:h.jsx(u,{ref:o,...c,className:De(i,f)})})});cp.displayName="CardHeader";const sp=g.forwardRef(({bsPrefix:a,className:i,variant:u,as:c="img",...o},f)=>{const m=Ve(a,"card-img");return h.jsx(c,{ref:f,className:De(u?`${m}-${u}`:m,i),...o})});sp.displayName="CardImg";const op=g.forwardRef(({className:a,bsPrefix:i,as:u="div",...c},o)=>(i=Ve(i,"card-img-overlay"),h.jsx(u,{ref:o,className:De(a,i),...c})));op.displayName="CardImgOverlay";const fp=g.forwardRef(({className:a,bsPrefix:i,as:u="a",...c},o)=>(i=Ve(i,"card-link"),h.jsx(u,{ref:o,className:De(a,i),...c})));fp.displayName="CardLink";const vb=Jo("h6"),dp=g.forwardRef(({className:a,bsPrefix:i,as:u=vb,...c},o)=>(i=Ve(i,"card-subtitle"),h.jsx(u,{ref:o,className:De(a,i),...c})));dp.displayName="CardSubtitle";const hp=g.forwardRef(({className:a,bsPrefix:i,as:u="p",...c},o)=>(i=Ve(i,"card-text"),h.jsx(u,{ref:o,className:De(a,i),...c})));hp.displayName="CardText";const gb=Jo("h5"),mp=g.forwardRef(({className:a,bsPrefix:i,as:u=gb,...c},o)=>(i=Ve(i,"card-title"),h.jsx(u,{ref:o,className:De(a,i),...c})));mp.displayName="CardTitle";const yp=g.forwardRef(({bsPrefix:a,className:i,bg:u,text:c,border:o,body:f=!1,children:m,as:y="div",...v},p)=>{const b=Ve(a,"card");return h.jsx(y,{ref:p,...v,className:De(i,b,u&&`bg-${u}`,c&&`text-${c}`,o&&`border-${o}`),children:f?h.jsx(Wo,{children:m}):m})});yp.displayName="Card";const Zn=Object.assign(yp,{Img:sp,Title:mp,Subtitle:dp,Body:Wo,Link:fp,Text:hp,Header:cp,Footer:rp,ImgOverlay:op});function Eb(a){const i=g.useRef(a);return i.current=a,i}function bb(a){const i=Eb(a);g.useEffect(()=>()=>i.current(),[])}function Sb(a,i){return g.Children.toArray(a).some(u=>g.isValidElement(u)&&u.type===i)}function xb({as:a,bsPrefix:i,className:u,...c}){i=Ve(i,"col");const o=Iy(),f=ep(),m=[],y=[];return o.forEach(v=>{const p=c[v];delete c[v];let b,T,x;typeof p=="object"&&p!=null?{span:b,offset:T,order:x}=p:b=p;const R=v!==f?`-${v}`:"";b&&m.push(b===!0?`${i}${R}`:`${i}${R}-${b}`),x!=null&&y.push(`order${R}-${x}`),T!=null&&y.push(`offset${R}-${T}`)}),[{...c,className:De(u,...m,...y)},{as:a,bsPrefix:i,spans:m}]}const sn=g.forwardRef((a,i)=>{const[{className:u,...c},{as:o="div",bsPrefix:f,spans:m}]=xb(a);return h.jsx(o,{...c,ref:i,className:De(u,!m.length&&f)})});sn.displayName="Col";const Fa=g.forwardRef(({bsPrefix:a,fluid:i=!1,as:u="div",className:c,...o},f)=>{const m=Ve(a,"container"),y=typeof i=="string"?`-${i}`:"-fluid";return h.jsx(u,{ref:f,...o,className:De(c,i?`${m}${y}`:m)})});Fa.displayName="Container";var _b=Function.prototype.bind.call(Function.prototype.call,[].slice);function ci(a,i){return _b(a.querySelectorAll(i))}function gy(a,i){if(a.contains)return a.contains(i);if(a.compareDocumentPosition)return a===i||!!(a.compareDocumentPosition(i)&16)}var Eo,Ey;function Rb(){if(Ey)return Eo;Ey=1;var a=function(){};return Eo=a,Eo}var Tb=Rb();const wx=pr(Tb),Nb="data-rr-ui-";function Cb(a){return`${Nb}${a}`}const pp=g.createContext(hi?window:void 0);pp.Provider;function Io(){return g.useContext(pp)}const jb={type:ga.string,tooltip:ga.bool,as:ga.elementType},Fu=g.forwardRef(({as:a="div",className:i,type:u="valid",tooltip:c=!1,...o},f)=>h.jsx(a,{...o,ref:f,className:De(i,`${u}-${c?"tooltip":"feedback"}`)}));Fu.displayName="Feedback";Fu.propTypes=jb;const Ea=g.createContext({}),ef=g.forwardRef(({id:a,bsPrefix:i,className:u,type:c="checkbox",isValid:o=!1,isInvalid:f=!1,as:m="input",...y},v)=>{const{controlId:p}=g.useContext(Ea);return i=Ve(i,"form-check-input"),h.jsx(m,{...y,ref:v,type:c,id:a||p,className:De(u,i,o&&"is-valid",f&&"is-invalid")})});ef.displayName="FormCheckInput";const ku=g.forwardRef(({bsPrefix:a,className:i,htmlFor:u,...c},o)=>{const{controlId:f}=g.useContext(Ea);return a=Ve(a,"form-check-label"),h.jsx("label",{...c,ref:o,htmlFor:u||f,className:De(i,a)})});ku.displayName="FormCheckLabel";const vp=g.forwardRef(({id:a,bsPrefix:i,bsSwitchPrefix:u,inline:c=!1,reverse:o=!1,disabled:f=!1,isValid:m=!1,isInvalid:y=!1,feedbackTooltip:v=!1,feedback:p,feedbackType:b,className:T,style:x,title:R="",type:w="checkbox",label:k,children:B,as:U="input",...Y},$)=>{i=Ve(i,"form-check"),u=Ve(u,"form-switch");const{controlId:ee}=g.useContext(Ea),J=g.useMemo(()=>({controlId:a||ee}),[ee,a]),O=!B&&k!=null&&k!==!1||Sb(B,ku),ue=h.jsx(ef,{...Y,type:w==="switch"?"checkbox":w,ref:$,isValid:m,isInvalid:y,disabled:f,as:U});return h.jsx(Ea.Provider,{value:J,children:h.jsx("div",{style:x,className:De(T,O&&i,c&&`${i}-inline`,o&&`${i}-reverse`,w==="switch"&&u),children:B||h.jsxs(h.Fragment,{children:[ue,O&&h.jsx(ku,{title:R,children:k}),p&&h.jsx(Fu,{type:b,tooltip:v,children:p})]})})})});vp.displayName="FormCheck";const Vu=Object.assign(vp,{Input:ef,Label:ku}),gp=g.forwardRef(({bsPrefix:a,type:i,size:u,htmlSize:c,id:o,className:f,isValid:m=!1,isInvalid:y=!1,plaintext:v,readOnly:p,as:b="input",...T},x)=>{const{controlId:R}=g.useContext(Ea);return a=Ve(a,"form-control"),h.jsx(b,{...T,type:i,size:c,ref:x,readOnly:p,id:o||R,className:De(f,v?`${a}-plaintext`:a,u&&`${a}-${u}`,i==="color"&&`${a}-color`,m&&"is-valid",y&&"is-invalid")})});gp.displayName="FormControl";const Ob=Object.assign(gp,{Feedback:Fu}),Ep=g.forwardRef(({className:a,bsPrefix:i,as:u="div",...c},o)=>(i=Ve(i,"form-floating"),h.jsx(u,{ref:o,className:De(a,i),...c})));Ep.displayName="FormFloating";const tf=g.forwardRef(({controlId:a,as:i="div",...u},c)=>{const o=g.useMemo(()=>({controlId:a}),[a]);return h.jsx(Ea.Provider,{value:o,children:h.jsx(i,{...u,ref:c})})});tf.displayName="FormGroup";const bp=g.forwardRef(({as:a="label",bsPrefix:i,column:u=!1,visuallyHidden:c=!1,className:o,htmlFor:f,...m},y)=>{const{controlId:v}=g.useContext(Ea);i=Ve(i,"form-label");let p="col-form-label";typeof u=="string"&&(p=`${p} ${p}-${u}`);const b=De(o,i,c&&"visually-hidden",u&&p);return f=f||v,u?h.jsx(sn,{ref:y,as:"label",className:b,htmlFor:f,...m}):h.jsx(a,{ref:y,className:b,htmlFor:f,...m})});bp.displayName="FormLabel";const Sp=g.forwardRef(({bsPrefix:a,className:i,id:u,...c},o)=>{const{controlId:f}=g.useContext(Ea);return a=Ve(a,"form-range"),h.jsx("input",{...c,type:"range",ref:o,className:De(i,a),id:u||f})});Sp.displayName="FormRange";const xp=g.forwardRef(({bsPrefix:a,size:i,htmlSize:u,className:c,isValid:o=!1,isInvalid:f=!1,id:m,...y},v)=>{const{controlId:p}=g.useContext(Ea);return a=Ve(a,"form-select"),h.jsx("select",{...y,size:u,ref:v,className:De(c,a,i&&`${a}-${i}`,o&&"is-valid",f&&"is-invalid"),id:m||p})});xp.displayName="FormSelect";const _p=g.forwardRef(({bsPrefix:a,className:i,as:u="small",muted:c,...o},f)=>(a=Ve(a,"form-text"),h.jsx(u,{...o,ref:f,className:De(i,a,c&&"text-muted")})));_p.displayName="FormText";const Rp=g.forwardRef((a,i)=>h.jsx(Vu,{...a,ref:i,type:"switch"}));Rp.displayName="Switch";const Db=Object.assign(Rp,{Input:Vu.Input,Label:Vu.Label}),Tp=g.forwardRef(({bsPrefix:a,className:i,children:u,controlId:c,label:o,...f},m)=>(a=Ve(a,"form-floating"),h.jsxs(tf,{ref:m,className:De(i,a),controlId:c,...f,children:[u,h.jsx("label",{htmlFor:c,children:o})]})));Tp.displayName="FloatingLabel";const Ab={_ref:ga.any,validated:ga.bool,as:ga.elementType},nf=g.forwardRef(({className:a,validated:i,as:u="form",...c},o)=>h.jsx(u,{...c,ref:o,className:De(a,i&&"was-validated")}));nf.displayName="Form";nf.propTypes=Ab;const Au=Object.assign(nf,{Group:tf,Control:Ob,Floating:Ep,Check:Vu,Switch:Db,Label:bp,Text:_p,Range:Sp,Select:xp,FloatingLabel:Tp}),by=a=>!a||typeof a=="function"?a:i=>{a.current=i};function wb(a,i){const u=by(a),c=by(i);return o=>{u&&u(o),c&&c(o)}}function af(a,i){return g.useMemo(()=>wb(a,i),[a,i])}var wu;function Sy(a){if((!wu&&wu!==0||a)&&hi){var i=document.createElement("div");i.style.position="absolute",i.style.top="-9999px",i.style.width="50px",i.style.height="50px",i.style.overflow="scroll",document.body.appendChild(i),wu=i.offsetWidth-i.clientWidth,document.body.removeChild(i)}return wu}function Mb(){return g.useState(null)}function bo(a){a===void 0&&(a=$u());try{var i=a.activeElement;return!i||!i.nodeName?null:i}catch{return a.body}}function zb(a){const i=g.useRef(a);return i.current=a,i}function Lb(a){const i=zb(a);g.useEffect(()=>()=>i.current(),[])}function Ub(a=document){const i=a.defaultView;return Math.abs(i.innerWidth-a.documentElement.clientWidth)}const xy=Cb("modal-open");class lf{constructor({ownerDocument:i,handleContainerOverflow:u=!0,isRTL:c=!1}={}){this.handleContainerOverflow=u,this.isRTL=c,this.modals=[],this.ownerDocument=i}getScrollbarWidth(){return Ub(this.ownerDocument)}getElement(){return(this.ownerDocument||document).body}setModalAttributes(i){}removeModalAttributes(i){}setContainerStyle(i){const u={overflow:"hidden"},c=this.isRTL?"paddingLeft":"paddingRight",o=this.getElement();i.style={overflow:o.style.overflow,[c]:o.style[c]},i.scrollBarWidth&&(u[c]=`${parseInt(Nl(o,c)||"0",10)+i.scrollBarWidth}px`),o.setAttribute(xy,""),Nl(o,u)}reset(){[...this.modals].forEach(i=>this.remove(i))}removeContainerStyle(i){const u=this.getElement();u.removeAttribute(xy),Object.assign(u.style,i.style)}add(i){let u=this.modals.indexOf(i);return u!==-1||(u=this.modals.length,this.modals.push(i),this.setModalAttributes(i),u!==0)||(this.state={scrollBarWidth:this.getScrollbarWidth(),style:{}},this.handleContainerOverflow&&this.setContainerStyle(this.state)),u}remove(i){const u=this.modals.indexOf(i);u!==-1&&(this.modals.splice(u,1),!this.modals.length&&this.handleContainerOverflow&&this.removeContainerStyle(this.state),this.removeModalAttributes(i))}isTopModal(i){return!!this.modals.length&&this.modals[this.modals.length-1]===i}}const So=(a,i)=>hi?a==null?(i||$u()).body:(typeof a=="function"&&(a=a()),a&&"current"in a&&(a=a.current),a&&("nodeType"in a||a.getBoundingClientRect)?a:null):null;function Hb(a,i){const u=Io(),[c,o]=g.useState(()=>So(a,u==null?void 0:u.document));if(!c){const f=So(a);f&&o(f)}return g.useEffect(()=>{},[i,c]),g.useEffect(()=>{const f=So(a);f!==c&&o(f)},[a,c]),c}function Bb({children:a,in:i,onExited:u,mountOnEnter:c,unmountOnExit:o}){const f=g.useRef(null),m=g.useRef(i),y=Rl(u);g.useEffect(()=>{i?m.current=!0:y(f.current)},[i,y]);const v=af(f,Ju(a)),p=g.cloneElement(a,{ref:v});return i?p:o||!m.current&&c?null:p}const qb=["onEnter","onEntering","onEntered","onExit","onExiting","onExited","addEndListener","children"];function kb(a,i){if(a==null)return{};var u={};for(var c in a)if({}.hasOwnProperty.call(a,c)){if(i.indexOf(c)>=0)continue;u[c]=a[c]}return u}function Vb(a){let{onEnter:i,onEntering:u,onEntered:c,onExit:o,onExiting:f,onExited:m,addEndListener:y,children:v}=a,p=kb(a,qb);const b=g.useRef(null),T=af(b,Ju(v)),x=ee=>J=>{ee&&b.current&&ee(b.current,J)},R=g.useCallback(x(i),[i]),w=g.useCallback(x(u),[u]),k=g.useCallback(x(c),[c]),B=g.useCallback(x(o),[o]),U=g.useCallback(x(f),[f]),Y=g.useCallback(x(m),[m]),$=g.useCallback(x(y),[y]);return Object.assign({},p,{nodeRef:b},i&&{onEnter:R},u&&{onEntering:w},c&&{onEntered:k},o&&{onExit:B},f&&{onExiting:U},m&&{onExited:Y},y&&{addEndListener:$},{children:typeof v=="function"?(ee,J)=>v(ee,Object.assign({},J,{ref:T})):g.cloneElement(v,{ref:T})})}const Yb=["component"];function Gb(a,i){if(a==null)return{};var u={};for(var c in a)if({}.hasOwnProperty.call(a,c)){if(i.indexOf(c)>=0)continue;u[c]=a[c]}return u}const Xb=g.forwardRef((a,i)=>{let{component:u}=a,c=Gb(a,Yb);const o=Vb(c);return h.jsx(u,Object.assign({ref:i},o))});function Qb({in:a,onTransition:i}){const u=g.useRef(null),c=g.useRef(!0),o=Rl(i);return vy(()=>{if(!u.current)return;let f=!1;return o({in:a,element:u.current,initial:c.current,isStale:()=>f}),()=>{f=!0}},[a,o]),vy(()=>(c.current=!1,()=>{c.current=!0}),[]),u}function Zb({children:a,in:i,onExited:u,onEntered:c,transition:o}){const[f,m]=g.useState(!i);i&&f&&m(!1);const y=Qb({in:!!i,onTransition:p=>{const b=()=>{p.isStale()||(p.in?c==null||c(p.element,p.initial):(m(!0),u==null||u(p.element)))};Promise.resolve(o(p)).then(b,T=>{throw p.in||m(!0),T})}}),v=af(y,Ju(a));return f&&!i?null:g.cloneElement(a,{ref:v})}function _y(a,i,u){return a?h.jsx(Xb,Object.assign({},u,{component:a})):i?h.jsx(Zb,Object.assign({},u,{transition:i})):h.jsx(Bb,Object.assign({},u))}const Kb=["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"];function $b(a,i){if(a==null)return{};var u={};for(var c in a)if({}.hasOwnProperty.call(a,c)){if(i.indexOf(c)>=0)continue;u[c]=a[c]}return u}let xo;function Jb(a){return xo||(xo=new lf({ownerDocument:a==null?void 0:a.document})),xo}function Fb(a){const i=Io(),u=a||Jb(i),c=g.useRef({dialog:null,backdrop:null});return Object.assign(c.current,{add:()=>u.add(c.current),remove:()=>u.remove(c.current),isTopModal:()=>u.isTopModal(c.current),setDialogRef:g.useCallback(o=>{c.current.dialog=o},[]),setBackdropRef:g.useCallback(o=>{c.current.backdrop=o},[])})}const Np=g.forwardRef((a,i)=>{let{show:u=!1,role:c="dialog",className:o,style:f,children:m,backdrop:y=!0,keyboard:v=!0,onBackdropClick:p,onEscapeKeyDown:b,transition:T,runTransition:x,backdropTransition:R,runBackdropTransition:w,autoFocus:k=!0,enforceFocus:B=!0,restoreFocus:U=!0,restoreFocusOptions:Y,renderDialog:$,renderBackdrop:ee=we=>h.jsx("div",Object.assign({},we)),manager:J,container:O,onShow:ue,onHide:be=()=>{},onExit:Z,onExited:ie,onExiting:je,onEnter:Ie,onEntering:et,onEntered:Qe}=a,Ye=$b(a,Kb);const X=Io(),oe=Hb(O),I=Fb(J),Re=ub(),_=cb(u),[V,ne]=g.useState(!u),W=g.useRef(null);g.useImperativeHandle(i,()=>I,[I]),hi&&!_&&u&&(W.current=bo(X==null?void 0:X.document)),u&&V&&ne(!1);const F=Rl(()=>{if(I.add(),pe.current=qu(document,"keydown",Te),He.current=qu(document,"focus",()=>setTimeout(he),!0),ue&&ue(),k){var we,Tt;const Dt=bo((we=(Tt=I.dialog)==null?void 0:Tt.ownerDocument)!=null?we:X==null?void 0:X.document);I.dialog&&Dt&&!gy(I.dialog,Dt)&&(W.current=Dt,I.dialog.focus())}}),ge=Rl(()=>{if(I.remove(),pe.current==null||pe.current(),He.current==null||He.current(),U){var we;(we=W.current)==null||we.focus==null||we.focus(Y),W.current=null}});g.useEffect(()=>{!u||!oe||F()},[u,oe,F]),g.useEffect(()=>{V&&ge()},[V,ge]),Lb(()=>{ge()});const he=Rl(()=>{if(!B||!Re()||!I.isTopModal())return;const we=bo(X==null?void 0:X.document);I.dialog&&we&&!gy(I.dialog,we)&&I.dialog.focus()}),Ze=Rl(we=>{we.target===we.currentTarget&&(p==null||p(we),y===!0&&be())}),Te=Rl(we=>{v&&JE(we)&&I.isTopModal()&&(b==null||b(we),we.defaultPrevented||be())}),He=g.useRef(),pe=g.useRef(),Ke=(...we)=>{ne(!0),ie==null||ie(...we)};if(!oe)return null;const Et=Object.assign({role:c,ref:I.setDialogRef,"aria-modal":c==="dialog"?!0:void 0},Ye,{style:f,className:o,tabIndex:-1});let mt=$?$(Et):h.jsx("div",Object.assign({},Et,{children:g.cloneElement(m,{role:"document"})}));mt=_y(T,x,{unmountOnExit:!0,mountOnEnter:!0,appear:!0,in:!!u,onExit:Z,onExiting:je,onExited:Ke,onEnter:Ie,onEntering:et,onEntered:Qe,children:mt});let nt=null;return y&&(nt=ee({ref:I.setBackdropRef,onClick:Ze}),nt=_y(R,w,{in:!!u,appear:!0,mountOnEnter:!0,unmountOnExit:!0,children:nt})),h.jsx(h.Fragment,{children:di.createPortal(h.jsxs(h.Fragment,{children:[nt,mt]}),oe)})});Np.displayName="Modal";const Pb=Object.assign(Np,{Manager:lf});function Wb(a,i){return a.classList?a.classList.contains(i):(" "+(a.className.baseVal||a.className)+" ").indexOf(" "+i+" ")!==-1}function Ib(a,i){a.classList?a.classList.add(i):Wb(a,i)||(typeof a.className=="string"?a.className=a.className+" "+i:a.setAttribute("class",(a.className&&a.className.baseVal||"")+" "+i))}function Ry(a,i){return a.replace(new RegExp("(^|\\s)"+i+"(?:\\s|$)","g"),"$1").replace(/\s+/g," ").replace(/^\s*|\s*$/g,"")}function eS(a,i){a.classList?a.classList.remove(i):typeof a.className=="string"?a.className=Ry(a.className,i):a.setAttribute("class",Ry(a.className&&a.className.baseVal||"",i))}const si={FIXED_CONTENT:".fixed-top, .fixed-bottom, .is-fixed, .sticky-top",STICKY_CONTENT:".sticky-top",NAVBAR_TOGGLER:".navbar-toggler"};class tS extends lf{adjustAndStore(i,u,c){const o=u.style[i];u.dataset[i]=o,Nl(u,{[i]:`${parseFloat(Nl(u,i))+c}px`})}restore(i,u){const c=u.dataset[i];c!==void 0&&(delete u.dataset[i],Nl(u,{[i]:c}))}setContainerStyle(i){super.setContainerStyle(i);const u=this.getElement();if(Ib(u,"modal-open"),!i.scrollBarWidth)return;const c=this.isRTL?"paddingLeft":"paddingRight",o=this.isRTL?"marginLeft":"marginRight";ci(u,si.FIXED_CONTENT).forEach(f=>this.adjustAndStore(c,f,i.scrollBarWidth)),ci(u,si.STICKY_CONTENT).forEach(f=>this.adjustAndStore(o,f,-i.scrollBarWidth)),ci(u,si.NAVBAR_TOGGLER).forEach(f=>this.adjustAndStore(o,f,i.scrollBarWidth))}removeContainerStyle(i){super.removeContainerStyle(i);const u=this.getElement();eS(u,"modal-open");const c=this.isRTL?"paddingLeft":"paddingRight",o=this.isRTL?"marginLeft":"marginRight";ci(u,si.FIXED_CONTENT).forEach(f=>this.restore(c,f)),ci(u,si.STICKY_CONTENT).forEach(f=>this.restore(o,f)),ci(u,si.NAVBAR_TOGGLER).forEach(f=>this.restore(o,f))}}let _o;function nS(a){return _o||(_o=new tS(a)),_o}const Cp=g.forwardRef(({className:a,bsPrefix:i,as:u="div",...c},o)=>(i=Ve(i,"modal-body"),h.jsx(u,{ref:o,className:De(a,i),...c})));Cp.displayName="ModalBody";const jp=g.createContext({onHide(){}}),rf=g.forwardRef(({bsPrefix:a,className:i,contentClassName:u,centered:c,size:o,fullscreen:f,children:m,scrollable:y,...v},p)=>{a=Ve(a,"modal");const b=`${a}-dialog`,T=typeof f=="string"?`${a}-fullscreen-${f}`:`${a}-fullscreen`;return h.jsx("div",{...v,ref:p,className:De(b,i,o&&`${a}-${o}`,c&&`${b}-centered`,y&&`${b}-scrollable`,f&&T),children:h.jsx("div",{className:De(`${a}-content`,u),children:m})})});rf.displayName="ModalDialog";const Op=g.forwardRef(({className:a,bsPrefix:i,as:u="div",...c},o)=>(i=Ve(i,"modal-footer"),h.jsx(u,{ref:o,className:De(a,i),...c})));Op.displayName="ModalFooter";const aS=g.forwardRef(({closeLabel:a="Close",closeVariant:i,closeButton:u=!1,onHide:c,children:o,...f},m)=>{const y=g.useContext(jp),v=Lo(()=>{y==null||y.onHide(),c==null||c()});return h.jsxs("div",{ref:m,...f,children:[o,u&&h.jsx(Po,{"aria-label":a,variant:i,onClick:v})]})}),Dp=g.forwardRef(({bsPrefix:a,className:i,closeLabel:u="Close",closeButton:c=!1,...o},f)=>(a=Ve(a,"modal-header"),h.jsx(aS,{ref:f,...o,className:De(i,a),closeLabel:u,closeButton:c})));Dp.displayName="ModalHeader";const lS=Jo("h4"),Ap=g.forwardRef(({className:a,bsPrefix:i,as:u=lS,...c},o)=>(i=Ve(i,"modal-title"),h.jsx(u,{ref:o,className:De(a,i),...c})));Ap.displayName="ModalTitle";function iS(a){return h.jsx(Fo,{...a,timeout:null})}function rS(a){return h.jsx(Fo,{...a,timeout:null})}const wp=g.forwardRef(({bsPrefix:a,className:i,style:u,dialogClassName:c,contentClassName:o,children:f,dialogAs:m=rf,"data-bs-theme":y,"aria-labelledby":v,"aria-describedby":p,"aria-label":b,show:T=!1,animation:x=!0,backdrop:R=!0,keyboard:w=!0,onEscapeKeyDown:k,onShow:B,onHide:U,container:Y,autoFocus:$=!0,enforceFocus:ee=!0,restoreFocus:J=!0,restoreFocusOptions:O,onEntered:ue,onExit:be,onExiting:Z,onEnter:ie,onEntering:je,onExited:Ie,backdropClassName:et,manager:Qe,...Ye},X)=>{const[oe,I]=g.useState({}),[Re,_]=g.useState(!1),V=g.useRef(!1),ne=g.useRef(!1),W=g.useRef(null),[F,ge]=Mb(),he=lp(X,ge),Ze=Lo(U),Te=UE();a=Ve(a,"modal");const He=g.useMemo(()=>({onHide:Ze}),[Ze]);function pe(){return Qe||nS({isRTL:Te})}function Ke(xe){if(!hi)return;const at=pe().getScrollbarWidth()>0,Yt=xe.scrollHeight>$u(xe).documentElement.clientHeight;I({paddingRight:at&&!Yt?Sy():void 0,paddingLeft:!at&&Yt?Sy():void 0})}const Et=Lo(()=>{F&&Ke(F.dialog)});bb(()=>{zo(window,"resize",Et),W.current==null||W.current()});const mt=()=>{V.current=!0},nt=xe=>{V.current&&F&&xe.target===F.dialog&&(ne.current=!0),V.current=!1},we=()=>{_(!0),W.current=ap(F.dialog,()=>{_(!1)})},Tt=xe=>{xe.target===xe.currentTarget&&we()},Dt=xe=>{if(R==="static"){Tt(xe);return}if(ne.current||xe.target!==xe.currentTarget){ne.current=!1;return}U==null||U()},en=xe=>{w?k==null||k(xe):(xe.preventDefault(),R==="static"&&we())},fn=(xe,at)=>{xe&&Ke(xe),ie==null||ie(xe,at)},dn=xe=>{W.current==null||W.current(),be==null||be(xe)},hn=(xe,at)=>{je==null||je(xe,at),np(window,"resize",Et)},Ht=xe=>{xe&&(xe.style.display=""),Ie==null||Ie(xe),zo(window,"resize",Et)},Jt=g.useCallback(xe=>h.jsx("div",{...xe,className:De(`${a}-backdrop`,et,!x&&"show")}),[x,et,a]),yt={...u,...oe};yt.display="block";const mn=xe=>h.jsx("div",{role:"dialog",...xe,style:yt,className:De(i,a,Re&&`${a}-static`,!x&&"show"),onClick:R?Dt:void 0,onMouseUp:nt,"data-bs-theme":y,"aria-label":b,"aria-labelledby":v,"aria-describedby":p,children:h.jsx(m,{...Ye,onMouseDown:mt,className:c,contentClassName:o,children:f})});return h.jsx(jp.Provider,{value:He,children:h.jsx(Pb,{show:T,ref:he,backdrop:R,container:Y,keyboard:!0,autoFocus:$,enforceFocus:ee,restoreFocus:J,restoreFocusOptions:O,onEscapeKeyDown:en,onShow:B,onHide:U,onEnter:fn,onEntering:hn,onEntered:ue,onExit:dn,onExiting:Z,onExited:Ht,manager:pe(),transition:x?iS:void 0,backdropTransition:x?rS:void 0,renderBackdrop:Jt,renderDialog:mn})})});wp.displayName="Modal";const or=Object.assign(wp,{Body:Cp,Header:Dp,Title:Ap,Footer:Op,Dialog:rf,TRANSITION_DURATION:300,BACKDROP_TRANSITION_DURATION:150}),Hn=g.forwardRef(({bsPrefix:a,className:i,as:u="div",...c},o)=>{const f=Ve(a,"row"),m=Iy(),y=ep(),v=`${f}-cols`,p=[];return m.forEach(b=>{const T=c[b];delete c[b];let x;T!=null&&typeof T=="object"?{cols:x}=T:x=T;const R=b!==y?`-${b}`:"";x!=null&&p.push(`${v}${R}-${x}`)}),h.jsx(u,{ref:o,...c,className:De(i,f,...p)})});Hn.displayName="Row";const uS="/static/DY3vaYXT.svg";function cS(){const a=st.c(6),{user:i}=g.useContext(Ko),{pathname:u}=Jn();let c;a[0]===Symbol.for("react.memo_cache_sentinel")?(c=h.jsx(sn,{xs:10,children:h.jsx("div",{className:"nav-wrapper",children:h.jsxs("nav",{className:"header-nav",children:[h.jsx("a",{href:"https://geant.org/",children:h.jsx("img",{src:uS,alt:"GÉANT Logo"})}),h.jsxs("ul",{children:[h.jsx("li",{children:h.jsx("a",{className:"nav-link-entry",href:"https://network.geant.org/",children:"NETWORK"})}),h.jsx("li",{children:h.jsx("a",{className:"nav-link-entry",href:"https://geant.org/services/",children:"SERVICES"})}),h.jsx("li",{children:h.jsx("a",{className:"nav-link-entry",href:"https://community.geant.org/",children:"COMMUNITY"})}),h.jsx("li",{children:h.jsx("a",{className:"nav-link-entry",href:"https://tnc23.geant.org/",children:"TNC"})}),h.jsx("li",{children:h.jsx("a",{className:"nav-link-entry",href:"https://geant.org/projects/",children:"PROJECTS"})}),h.jsx("li",{children:h.jsx("a",{className:"nav-link-entry",href:"https://connect.geant.org/",children:"CONNECT"})}),h.jsx("li",{children:h.jsx("a",{className:"nav-link-entry",href:"https://impact.geant.org/",children:"IMPACT"})}),h.jsx("li",{children:h.jsx("a",{className:"nav-link-entry",href:"https://careers.geant.org/",children:"CAREERS"})}),h.jsx("li",{children:h.jsx("a",{className:"nav-link-entry",href:"https://about.geant.org/",children:"ABOUT"})}),h.jsx("li",{children:h.jsx("a",{className:"nav-link-entry",href:"https://connect.geant.org/community-news",children:"NEWS"})}),h.jsx("li",{children:h.jsx("a",{className:"nav-link-entry",href:"https://resources.geant.org/",children:"RESOURCES"})}),h.jsx("li",{children:h.jsx(ae,{className:"nav-link-entry",to:"/",children:"COMPENDIUM"})})]})]})})}),a[0]=c):c=a[0];let o;a[1]!==u||a[2]!==i.permissions.admin?(o=i.permissions.admin&&!u.includes("survey")&&h.jsx("div",{className:"nav-link",style:{float:"right"},children:h.jsx(ae,{className:"nav-link-entry",to:"/survey",children:h.jsx("span",{children:"Go to Survey"})})}),a[1]=u,a[2]=i.permissions.admin,a[3]=o):o=a[3];let f;return a[4]!==o?(f=h.jsx("div",{className:"external-page-nav-bar",children:h.jsx(Fa,{children:h.jsxs(Hn,{children:[c,h.jsx(sn,{xs:2,children:o})]})})}),a[4]=o,a[5]=f):f=a[5],f}const sS="/static/A3T3A-a_.svg",oS="/static/DOOiIGTs.png";function fS(){const a=st.c(9);let i;a[0]===Symbol.for("react.memo_cache_sentinel")?(i=h.jsx("a",{href:"https://geant.org",children:h.jsx("img",{src:sS,className:"m-3",style:{maxWidth:"100px"},alt:"GÉANT Logo"})}),a[0]=i):i=a[0];let u;a[1]===Symbol.for("react.memo_cache_sentinel")?(u=h.jsxs(sn,{children:[i,h.jsx("img",{src:oS,className:"m-3",style:{maxWidth:"200px"},alt:"European Union Flag"})]}),a[1]=u):u=a[1];let c,o;a[2]===Symbol.for("react.memo_cache_sentinel")?(c=h.jsx("a",{className:"mx-3 footer-link",href:"https://geant.org/Disclaimer/",children:"Disclaimer"}),o=h.jsx("wbr",{}),a[2]=c,a[3]=o):(c=a[2],o=a[3]);let f,m;a[4]===Symbol.for("react.memo_cache_sentinel")?(f=h.jsx("a",{className:"mx-3 footer-link",href:"https://geant.org/geant-anti-slavery-policy/",children:"GEANT Anti‑Slavery Policy"}),m=h.jsx("wbr",{}),a[4]=f,a[5]=m):(f=a[4],m=a[5]);let y,v;a[6]===Symbol.for("react.memo_cache_sentinel")?(y=h.jsx("a",{className:"mx-3 footer-link",href:"https://geant.org/Privacy-Notice/",children:"Privacy Policy"}),v=h.jsx("wbr",{}),a[6]=y,a[7]=v):(y=a[6],v=a[7]);let p;return a[8]===Symbol.for("react.memo_cache_sentinel")?(p=h.jsx("footer",{className:"page-footer pt-3",children:h.jsx(Fa,{children:h.jsxs(Hn,{children:[u,h.jsx(sn,{className:"mt-4 text-end",children:h.jsxs("span",{children:[c,o,"|",f,m,"|",y,v,"|",h.jsx("a",{className:"mx-3 footer-link",style:{cursor:"pointer"},onClick:dS,children:"Analytics Consent"})]})})]})})}),a[8]=p):p=a[8],p}function dS(){localStorage.removeItem("matomo_consent"),window.location.reload()}const Mp="/static/C4lsyu6A.svg",zp="/static/DhA-EmEc.svg";function Lp(){const a=st.c(16),i=g.useContext(Wy);let u;a[0]!==i?(u=w=>i==null?void 0:i.trackPageView(w),a[0]=i,a[1]=u):u=a[1];const c=u;let o;a[2]!==i?(o=w=>i==null?void 0:i.trackEvent(w),a[2]=i,a[3]=o):o=a[3];const f=o;let m;a[4]!==i?(m=()=>i==null?void 0:i.trackEvents(),a[4]=i,a[5]=m):m=a[5];const y=m;let v;a[6]!==i?(v=w=>i==null?void 0:i.trackLink(w),a[6]=i,a[7]=v):v=a[7];const p=v,b=hS;let T;a[8]!==i?(T=(w,...k)=>{const B=k;i==null||i.pushInstruction(w,...B)},a[8]=i,a[9]=T):T=a[9];const x=T;let R;return a[10]!==x||a[11]!==f||a[12]!==y||a[13]!==p||a[14]!==c?(R={trackEvent:f,trackEvents:y,trackPageView:c,trackLink:p,enableLinkTracking:b,pushInstruction:x},a[10]=x,a[11]=f,a[12]=y,a[13]=p,a[14]=c,a[15]=R):R=a[15],R}function hS(){}function Up(){const a=st.c(13),{trackPageView:i}=Lp();let u,c;a[0]!==i?(u=()=>{i({documentTitle:"GEANT Compendium Landing Page"})},c=[i],a[0]=i,a[1]=u,a[2]=c):(u=a[1],c=a[2]),g.useEffect(u,c);let o;a[3]===Symbol.for("react.memo_cache_sentinel")?(o=h.jsx("h1",{className:"geant-header",children:"THE GÉANT COMPENDIUM OF NRENS"}),a[3]=o):o=a[3];let f;a[4]===Symbol.for("react.memo_cache_sentinel")?(f=h.jsx(Hn,{children:h.jsxs("div",{className:"center-text",children:[o,h.jsxs("div",{className:"wordwrap pt-4",children:[h.jsx("p",{style:{textAlign:"left",fontSize:"20px"},children:"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."}),h.jsx("p",{style:{textAlign:"left",fontSize:"20px"},children:"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."}),h.jsx("p",{style:{textAlign:"left",fontSize:"20px"},children:"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."})]})]})}),a[4]=f):f=a[4];let m;a[5]===Symbol.for("react.memo_cache_sentinel")?(m={backgroundColor:"white"},a[5]=m):m=a[5];let y;a[6]===Symbol.for("react.memo_cache_sentinel")?(y={width:"18rem"},a[6]=y):y=a[6];let v;a[7]===Symbol.for("react.memo_cache_sentinel")?(v=h.jsx(Zn.Img,{src:Mp}),a[7]=v):v=a[7];let p;a[8]===Symbol.for("react.memo_cache_sentinel")?(p=h.jsx(Zn.Title,{children:"Compendium Data"}),a[8]=p):p=a[8];let b;a[9]===Symbol.for("react.memo_cache_sentinel")?(b=h.jsx(sn,{align:"center",children:h.jsx(Zn,{border:"light",style:y,children:h.jsxs(ae,{to:"/data",className:"link-text",children:[v,h.jsxs(Zn.Body,{children:[p,h.jsx(Zn.Text,{children:h.jsx("span",{children:"Statistical representation of the annual Compendium Survey data is available here"})})]})]})})}),a[9]=b):b=a[9];let T;a[10]===Symbol.for("react.memo_cache_sentinel")?(T={width:"18rem"},a[10]=T):T=a[10];let x;a[11]===Symbol.for("react.memo_cache_sentinel")?(x=h.jsx(Zn.Img,{src:zp}),a[11]=x):x=a[11];let R;return a[12]===Symbol.for("react.memo_cache_sentinel")?(R=h.jsxs(Fa,{className:"py-5 grey-container",children:[f,h.jsx(Hn,{children:h.jsx(sn,{children:h.jsx(Fa,{style:m,className:"rounded-border",children:h.jsxs(Hn,{className:"justify-content-md-center",children:[b,h.jsx(sn,{align:"center",children:h.jsx(Zn,{border:"light",style:T,children:h.jsxs("a",{href:"https://resources.geant.org/geant-compendia/",className:"link-text",target:"_blank",rel:"noreferrer",children:[x,h.jsxs(Zn.Body,{children:[h.jsx(Zn.Title,{children:"Compendium Reports"}),h.jsx(Zn.Text,{children:"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"})]})]})})})]})})})})]}),a[12]=R):R=a[12],R}var Hp={color:void 0,size:void 0,className:void 0,style:void 0,attr:void 0},Ty=Vt.createContext&&Vt.createContext(Hp),mS=["attr","size","title"];function yS(a,i){if(a==null)return{};var u=pS(a,i),c,o;if(Object.getOwnPropertySymbols){var f=Object.getOwnPropertySymbols(a);for(o=0;o<f.length;o++)c=f[o],!(i.indexOf(c)>=0)&&Object.prototype.propertyIsEnumerable.call(a,c)&&(u[c]=a[c])}return u}function pS(a,i){if(a==null)return{};var u={};for(var c in a)if(Object.prototype.hasOwnProperty.call(a,c)){if(i.indexOf(c)>=0)continue;u[c]=a[c]}return u}function Yu(){return Yu=Object.assign?Object.assign.bind():function(a){for(var i=1;i<arguments.length;i++){var u=arguments[i];for(var c in u)Object.prototype.hasOwnProperty.call(u,c)&&(a[c]=u[c])}return a},Yu.apply(this,arguments)}function Ny(a,i){var u=Object.keys(a);if(Object.getOwnPropertySymbols){var c=Object.getOwnPropertySymbols(a);i&&(c=c.filter(function(o){return Object.getOwnPropertyDescriptor(a,o).enumerable})),u.push.apply(u,c)}return u}function Gu(a){for(var i=1;i<arguments.length;i++){var u=arguments[i]!=null?arguments[i]:{};i%2?Ny(Object(u),!0).forEach(function(c){vS(a,c,u[c])}):Object.getOwnPropertyDescriptors?Object.defineProperties(a,Object.getOwnPropertyDescriptors(u)):Ny(Object(u)).forEach(function(c){Object.defineProperty(a,c,Object.getOwnPropertyDescriptor(u,c))})}return a}function vS(a,i,u){return i=gS(i),i in a?Object.defineProperty(a,i,{value:u,enumerable:!0,configurable:!0,writable:!0}):a[i]=u,a}function gS(a){var i=ES(a,"string");return typeof i=="symbol"?i:i+""}function ES(a,i){if(typeof a!="object"||!a)return a;var u=a[Symbol.toPrimitive];if(u!==void 0){var c=u.call(a,i||"default");if(typeof c!="object")return c;throw new TypeError("@@toPrimitive must return a primitive value.")}return(i==="string"?String:Number)(a)}function Bp(a){return a&&a.map((i,u)=>Vt.createElement(i.tag,Gu({key:u},i.attr),Bp(i.child)))}function qp(a){return i=>Vt.createElement(bS,Yu({attr:Gu({},a.attr)},i),Bp(a.child))}function bS(a){var i=u=>{var{attr:c,size:o,title:f}=a,m=yS(a,mS),y=o||u.size||"1em",v;return u.className&&(v=u.className),a.className&&(v=(v?v+" ":"")+a.className),Vt.createElement("svg",Yu({stroke:"currentColor",fill:"currentColor",strokeWidth:"0"},u.attr,c,m,{className:v,style:Gu(Gu({color:a.color||u.color},u.style),a.style),height:y,width:y,xmlns:"http://www.w3.org/2000/svg"}),f&&Vt.createElement("title",null,f),a.children)};return Ty!==void 0?Vt.createElement(Ty.Consumer,null,u=>i(u)):i(Hp)}function SS(a){return qp({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:[]}]})(a)}function xS(a){return qp({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:[]}]})(a)}const fr=a=>{const i=st.c(23),{title:u,children:c,startCollapsed:o,theme:f}=a,m=f===void 0?"":f,[y,v]=g.useState(!!o);let p;i[0]===Symbol.for("react.memo_cache_sentinel")?(p={color:"white",paddingBottom:"3px",marginTop:"3px",marginLeft:"3px",scale:"1.3"},i[0]=p):p=i[0];let b=p;if(m){let J;i[1]===Symbol.for("react.memo_cache_sentinel")?(J={...b,color:"black",fontWeight:"bold"},i[1]=J):J=i[1],b=J}const T=`collapsible-box${m} p-0`;let x;i[2]!==u?(x=h.jsx(sn,{children:h.jsx("h1",{className:"bold-caps-16pt dark-teal pt-3 ps-3",children:u})}),i[2]=u,i[3]=x):x=i[3];const R=`toggle-btn${m} p-${m?3:2}`;let w;i[4]!==y?(w=()=>v(!y),i[4]=y,i[5]=w):w=i[5];let k;i[6]!==y||i[7]!==b?(k=y?h.jsx(xS,{style:b}):h.jsx(SS,{style:b}),i[6]=y,i[7]=b,i[8]=k):k=i[8];let B;i[9]!==R||i[10]!==w||i[11]!==k?(B=h.jsx(sn,{className:"flex-grow-0 flex-shrink-1",children:h.jsx("div",{className:R,onClick:w,children:k})}),i[9]=R,i[10]=w,i[11]=k,i[12]=B):B=i[12];let U;i[13]!==x||i[14]!==B?(U=h.jsxs(Hn,{children:[x,B]}),i[13]=x,i[14]=B,i[15]=U):U=i[15];const Y=`collapsible-content${y?" collapsed":""}`;let $;i[16]!==c||i[17]!==Y?($=h.jsx("div",{className:Y,children:c}),i[16]=c,i[17]=Y,i[18]=$):$=i[18];let ee;return i[19]!==$||i[20]!==T||i[21]!==U?(ee=h.jsxs("div",{className:T,children:[U,$]}),i[19]=$,i[20]=T,i[21]=U,i[22]=ee):ee=i[22],ee};function _S(a){const i=st.c(8),{section:u}=a;let c;i[0]===Symbol.for("react.memo_cache_sentinel")?(c={display:"flex",alignSelf:"right",lineHeight:"1.5rem",marginTop:"0.5rem"},i[0]=c):c=i[0];let o,f;i[1]===Symbol.for("react.memo_cache_sentinel")?(o=h.jsx("br",{}),f={float:"right"},i[1]=o,i[2]=f):(o=i[1],f=i[2]);let m;i[3]!==u?(m=h.jsx("div",{style:c,children:h.jsxs("span",{children:["Compendium ",o,h.jsx("span",{style:f,children:u})]})}),i[3]=u,i[4]=m):m=i[4];let y;i[5]===Symbol.for("react.memo_cache_sentinel")?(y=h.jsx("img",{src:zp,style:{maxWidth:"4rem"},alt:"Compendium Data logo"}),i[5]=y):y=i[5];let v;return i[6]!==m?(v=h.jsxs("div",{className:"bold-caps-17pt section-container",children:[m,y]}),i[6]=m,i[7]=v):v=i[7],v}function RS(a){const i=st.c(14),{type:u}=a;let c="";u=="data"?c=" compendium-data-header":u=="reports"&&(c=" compendium-reports-header");let o;i[0]===Symbol.for("react.memo_cache_sentinel")?(o={marginTop:"0.5rem"},i[0]=o):o=i[0];const f=u==="data"?"/data":"/";let m;i[1]===Symbol.for("react.memo_cache_sentinel")?(m={textDecoration:"none",color:"white"},i[1]=m):m=i[1];const y=u==="data"?"Data":"Reports";let v;i[2]!==y?(v=h.jsxs("span",{children:["Compendium ",y]}),i[2]=y,i[3]=v):v=i[3];let p;i[4]!==f||i[5]!==v?(p=h.jsx(sn,{sm:8,children:h.jsx("h1",{className:"bold-caps-30pt",style:o,children:h.jsx(ae,{to:f,style:m,children:v})})}),i[4]=f,i[5]=v,i[6]=p):p=i[6];let b;i[7]===Symbol.for("react.memo_cache_sentinel")?(b={color:"inherit"},i[7]=b):b=i[7];let T;i[8]===Symbol.for("react.memo_cache_sentinel")?(T=h.jsx(sn,{sm:4,children:h.jsx("a",{style:b,href:"https://resources.geant.org/geant-compendia/",target:"_blank",rel:"noreferrer",children:h.jsx(_S,{section:"Reports"})})}),i[8]=T):T=i[8];let x;i[9]!==p?(x=h.jsx(Fa,{children:h.jsxs(Hn,{children:[p,T]})}),i[9]=p,i[10]=x):x=i[10];let R;return i[11]!==c||i[12]!==x?(R=h.jsx("div",{className:c,children:x}),i[11]=c,i[12]=x,i[13]=R):R=i[13],R}function TS(a){const i=st.c(8),{children:u,type:c}=a;let o="";c=="data"?o=" compendium-data-banner":c=="reports"&&(o=" compendium-reports-banner");let f,m;i[0]===Symbol.for("react.memo_cache_sentinel")?(f=h.jsx("img",{src:Mp,style:{maxWidth:"7rem",marginBottom:"1rem"},alt:"Compendium Data logo"}),m={display:"flex",alignSelf:"right"},i[0]=f,i[1]=m):(f=i[0],m=i[1]);let y;i[2]===Symbol.for("react.memo_cache_sentinel")?(y={paddingTop:"1rem"},i[2]=y):y=i[2];let v;i[3]!==u?(v=h.jsx(Fa,{children:h.jsx(Hn,{children:h.jsx(Hn,{children:h.jsxs("div",{className:"section-container",children:[f,h.jsx("div",{style:m,children:h.jsx("div",{className:"center-text",style:y,children:u})})]})})})}),i[3]=u,i[4]=v):v=i[4];let p;return i[5]!==o||i[6]!==v?(p=h.jsx("div",{className:o,children:v}),i[5]=o,i[6]=v,i[7]=p):p=i[7],p}var fi=(a=>(a.Organisation="ORGANISATION",a.Policy="STANDARDS AND POLICIES",a.ConnectedUsers="CONNECTED USERS",a.Network="NETWORK",a.Services="SERVICES",a))(fi||{}),NS=(a=>(a.CSV="CSV",a.EXCEL="EXCEL",a))(NS||{}),CS=(a=>(a.PNG="png",a.JPEG="jpeg",a.SVG="svg",a))(CS||{});const Mx={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"},zx={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"},Lx={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 jS(){const a=st.c(7),{preview:i,setPreview:u}=g.useContext(Py),{user:c}=g.useContext(Ko),[o]=nE();let f;a[0]!==o?(f=o.get("preview"),a[0]=o,a[1]=f):f=a[1];const m=f;let y,v;return a[2]!==m||a[3]!==u||a[4]!==c?(y=()=>{m!==null&&(c.permissions.admin||c.role=="observer")&&u(!0)},v=[m,u,c],a[2]=m,a[3]=u,a[4]=c,a[5]=y,a[6]=v):(y=a[5],v=a[6]),g.useEffect(y,v),i}function OS(){const a=st.c(82);jS();const{trackPageView:i}=Lp();let u,c;a[0]!==i?(u=()=>{i({documentTitle:"Compendium Data"})},c=[i],a[0]=i,a[1]=u,a[2]=c):(u=a[1],c=a[2]),Vt.useEffect(u,c);let o;a[3]===Symbol.for("react.memo_cache_sentinel")?(o=h.jsx(RS,{type:"data"}),a[3]=o):o=a[3];let f;a[4]===Symbol.for("react.memo_cache_sentinel")?(f=h.jsx(TS,{type:"data",children:h.jsx("p",{className:"wordwrap",children:"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."})}),a[4]=f):f=a[4];let m;a[5]===Symbol.for("react.memo_cache_sentinel")?(m=h.jsx("h6",{className:"section-title",children:"Budget, Income and Billing"}),a[5]=m):m=a[5];let y;a[6]===Symbol.for("react.memo_cache_sentinel")?(y=h.jsx(ae,{to:"/budget",className:"link-text-underline",children:h.jsx("span",{children:"Budget of NRENs per Year"})}),a[6]=y):y=a[6];let v;a[7]===Symbol.for("react.memo_cache_sentinel")?(v=h.jsx(ae,{to:"/funding",className:"link-text-underline",children:h.jsx("span",{children:"Income Source of NRENs"})}),a[7]=v):v=a[7];let p,b,T;a[8]===Symbol.for("react.memo_cache_sentinel")?(p=h.jsx(ae,{to:"/charging",className:"link-text-underline",children:h.jsx("span",{children:"Charging Mechanism of NRENs"})}),b=h.jsx("hr",{className:"fake-divider"}),T=h.jsx("h6",{className:"section-title",children:"Staff and Projects"}),a[8]=p,a[9]=b,a[10]=T):(p=a[8],b=a[9],T=a[10]);let x;a[11]===Symbol.for("react.memo_cache_sentinel")?(x=h.jsx(ae,{to:"/employee-count",className:"link-text-underline",children:h.jsx("span",{children:"Number of NREN Employees"})}),a[11]=x):x=a[11];let R;a[12]===Symbol.for("react.memo_cache_sentinel")?(R=h.jsx(ae,{to:"/roles",className:"link-text-underline",children:h.jsx("span",{children:"Roles of NREN employees (Technical v. Non-Technical)"})}),a[12]=R):R=a[12];let w;a[13]===Symbol.for("react.memo_cache_sentinel")?(w=h.jsx(ae,{to:"/employment",className:"link-text-underline",children:h.jsx("span",{children:"Types of Employment within NRENs"})}),a[13]=w):w=a[13];let k;a[14]===Symbol.for("react.memo_cache_sentinel")?(k=h.jsx(ae,{to:"/suborganisations",className:"link-text-underline",children:h.jsx("span",{children:"NREN Sub-Organisations"})}),a[14]=k):k=a[14];let B;a[15]===Symbol.for("react.memo_cache_sentinel")?(B=h.jsx(ae,{to:"/parentorganisation",className:"link-text-underline",children:h.jsx("span",{children:"NREN Parent Organisations"})}),a[15]=B):B=a[15];let U;a[16]===Symbol.for("react.memo_cache_sentinel")?(U=h.jsxs(fr,{title:fi.Organisation,children:[m,y,v,p,b,T,x,R,w,k,B,h.jsx(ae,{to:"/ec-projects",className:"link-text-underline",children:h.jsx("span",{children:"NREN Involvement in European Commission Projects"})})]}),a[16]=U):U=a[16];let Y,$;a[17]===Symbol.for("react.memo_cache_sentinel")?(Y=h.jsx(ae,{to:"/policy",className:"link-text-underline",children:h.jsx("span",{children:"NREN Policies"})}),$=h.jsx("h6",{className:"section-title",children:"Standards"}),a[17]=Y,a[18]=$):(Y=a[17],$=a[18]);let ee;a[19]===Symbol.for("react.memo_cache_sentinel")?(ee=h.jsx(ae,{to:"/audits",className:"link-text-underline",children:h.jsx("span",{children:"External and Internal Audits of Information Security Management Systems"})}),a[19]=ee):ee=a[19];let J;a[20]===Symbol.for("react.memo_cache_sentinel")?(J=h.jsx(ae,{to:"/business-continuity",className:"link-text-underline",children:h.jsx("span",{children:"NREN Business Continuity Planning"})}),a[20]=J):J=a[20];let O;a[21]===Symbol.for("react.memo_cache_sentinel")?(O=h.jsx(ae,{to:"/central-procurement",className:"link-text-underline",children:h.jsx("span",{children:"Central Procurement of Software"})}),a[21]=O):O=a[21];let ue;a[22]===Symbol.for("react.memo_cache_sentinel")?(ue=h.jsx(ae,{to:"/crisis-management",className:"link-text-underline",children:h.jsx("span",{children:"Crisis Management Procedures"})}),a[22]=ue):ue=a[22];let be;a[23]===Symbol.for("react.memo_cache_sentinel")?(be=h.jsx(ae,{to:"/crisis-exercise",className:"link-text-underline",children:h.jsx("span",{children:"Crisis Exercises - NREN Operation and Participation"})}),a[23]=be):be=a[23];let Z;a[24]===Symbol.for("react.memo_cache_sentinel")?(Z=h.jsx(ae,{to:"/security-control",className:"link-text-underline",children:h.jsx("span",{children:"Security Controls Used by NRENs"})}),a[24]=Z):Z=a[24];let ie;a[25]===Symbol.for("react.memo_cache_sentinel")?(ie=h.jsx(ae,{to:"/services-offered",className:"link-text-underline",children:h.jsx("span",{children:"Services Offered by NRENs by Types of Users"})}),a[25]=ie):ie=a[25];let je;a[26]===Symbol.for("react.memo_cache_sentinel")?(je=h.jsx(ae,{to:"/corporate-strategy",className:"link-text-underline",children:h.jsx("span",{children:"NREN Corporate Strategies "})}),a[26]=je):je=a[26];let Ie;a[27]===Symbol.for("react.memo_cache_sentinel")?(Ie=h.jsx(ae,{to:"/service-level-targets",className:"link-text-underline",children:h.jsx("span",{children:"NRENs Offering Service Level Targets"})}),a[27]=Ie):Ie=a[27];let et;a[28]===Symbol.for("react.memo_cache_sentinel")?(et=h.jsxs(fr,{title:fi.Policy,startCollapsed:!0,children:[Y,$,ee,J,O,ue,be,Z,ie,je,Ie,h.jsx(ae,{to:"/service-management-framework",className:"link-text-underline",children:h.jsx("span",{children:"NRENs Operating a Formal Service Management Framework"})})]}),a[28]=et):et=a[28];let Qe;a[29]===Symbol.for("react.memo_cache_sentinel")?(Qe=h.jsx("h6",{className:"section-title",children:"Connected Users"}),a[29]=Qe):Qe=a[29];let Ye;a[30]===Symbol.for("react.memo_cache_sentinel")?(Ye=h.jsx(ae,{to:"/institutions-urls",className:"link-text-underline",children:h.jsx("span",{children:"Webpages Listing Institutions and Organisations Connected to NREN Networks"})}),a[30]=Ye):Ye=a[30];let X;a[31]===Symbol.for("react.memo_cache_sentinel")?(X=h.jsx(ae,{to:"/connected-proportion",className:"link-text-underline",children:h.jsx("span",{children:"Proportion of Different Categories of Institutions Served by NRENs"})}),a[31]=X):X=a[31];let oe;a[32]===Symbol.for("react.memo_cache_sentinel")?(oe=h.jsx(ae,{to:"/connectivity-level",className:"link-text-underline",children:h.jsx("span",{children:"Level of IP Connectivity by Institution Type"})}),a[32]=oe):oe=a[32];let I;a[33]===Symbol.for("react.memo_cache_sentinel")?(I=h.jsx(ae,{to:"/connection-carrier",className:"link-text-underline",children:h.jsx("span",{children:"Methods of Carrying IP Traffic to Users"})}),a[33]=I):I=a[33];let Re;a[34]===Symbol.for("react.memo_cache_sentinel")?(Re=h.jsx(ae,{to:"/connectivity-load",className:"link-text-underline",children:h.jsx("span",{children:"Connectivity Load"})}),a[34]=Re):Re=a[34];let _;a[35]===Symbol.for("react.memo_cache_sentinel")?(_=h.jsx(ae,{to:"/connectivity-growth",className:"link-text-underline",children:h.jsx("span",{children:"Connectivity Growth"})}),a[35]=_):_=a[35];let V,ne,W;a[36]===Symbol.for("react.memo_cache_sentinel")?(V=h.jsx(ae,{to:"/remote-campuses",className:"link-text-underline",children:h.jsx("span",{children:"NREN Connectivity to Remote Campuses in Other Countries"})}),ne=h.jsx("hr",{className:"fake-divider"}),W=h.jsx("h6",{className:"section-title",children:"Connected Users - Commercial"}),a[36]=V,a[37]=ne,a[38]=W):(V=a[36],ne=a[37],W=a[38]);let F;a[39]===Symbol.for("react.memo_cache_sentinel")?(F=h.jsx(ae,{to:"/commercial-charging-level",className:"link-text-underline",children:h.jsx("span",{children:"Commercial Charging Level"})}),a[39]=F):F=a[39];let ge;a[40]===Symbol.for("react.memo_cache_sentinel")?(ge=h.jsxs(fr,{title:fi.ConnectedUsers,startCollapsed:!0,children:[Qe,Ye,X,oe,I,Re,_,V,ne,W,F,h.jsx(ae,{to:"/commercial-connectivity",className:"link-text-underline",children:h.jsx("span",{children:"Commercial Connectivity"})})]}),a[40]=ge):ge=a[40];let he;a[41]===Symbol.for("react.memo_cache_sentinel")?(he=h.jsx("h6",{className:"section-title",children:"Connectivity"}),a[41]=he):he=a[41];let Ze;a[42]===Symbol.for("react.memo_cache_sentinel")?(Ze=h.jsx(ae,{to:"/traffic-volume",className:"link-text-underline",children:h.jsx("span",{children:"NREN Traffic - NREN Customers & External Networks"})}),a[42]=Ze):Ze=a[42];let Te;a[43]===Symbol.for("react.memo_cache_sentinel")?(Te=h.jsx(ae,{to:"/iru-duration",className:"link-text-underline",children:h.jsx("span",{children:"Average Duration of IRU leases of Fibre by NRENs"})}),a[43]=Te):Te=a[43];let He;a[44]===Symbol.for("react.memo_cache_sentinel")?(He=h.jsx(ae,{to:"/fibre-light",className:"link-text-underline",children:h.jsx("span",{children:"Approaches to lighting NREN fibre networks"})}),a[44]=He):He=a[44];let pe;a[45]===Symbol.for("react.memo_cache_sentinel")?(pe=h.jsx(ae,{to:"/dark-fibre-lease",className:"link-text-underline",children:h.jsx("span",{children:"Kilometres of Leased Dark Fibre (National)"})}),a[45]=pe):pe=a[45];let Ke;a[46]===Symbol.for("react.memo_cache_sentinel")?(Ke=h.jsx(ae,{to:"/dark-fibre-lease-international",className:"link-text-underline",children:h.jsx("span",{children:"Kilometres of Leased Dark Fibre (International)"})}),a[46]=Ke):Ke=a[46];let Et;a[47]===Symbol.for("react.memo_cache_sentinel")?(Et=h.jsx(ae,{to:"/dark-fibre-installed",className:"link-text-underline",children:h.jsx("span",{children:"Kilometres of Installed Dark Fibre"})}),a[47]=Et):Et=a[47];let mt,nt,we;a[48]===Symbol.for("react.memo_cache_sentinel")?(mt=h.jsx(ae,{to:"/network-map",className:"link-text-underline",children:h.jsx("span",{children:"NREN Network Maps"})}),nt=h.jsx("hr",{className:"fake-divider"}),we=h.jsx("h6",{className:"section-title",children:"Performance Monitoring & Management"}),a[48]=mt,a[49]=nt,a[50]=we):(mt=a[48],nt=a[49],we=a[50]);let Tt;a[51]===Symbol.for("react.memo_cache_sentinel")?(Tt=h.jsx(ae,{to:"/monitoring-tools",className:"link-text-underline",children:h.jsx("span",{children:"Tools for Monitoring or Troubleshooting the Network - Offered to Client Institutions"})}),a[51]=Tt):Tt=a[51];let Dt;a[52]===Symbol.for("react.memo_cache_sentinel")?(Dt=h.jsx(ae,{to:"/pert-team",className:"link-text-underline",children:h.jsx("span",{children:"NRENs with Performance Enhancement Response Teams"})}),a[52]=Dt):Dt=a[52];let en;a[53]===Symbol.for("react.memo_cache_sentinel")?(en=h.jsx(ae,{to:"/passive-monitoring",className:"link-text-underline",children:h.jsx("span",{children:"Methods for Passively Monitoring International Traffic"})}),a[53]=en):en=a[53];let fn;a[54]===Symbol.for("react.memo_cache_sentinel")?(fn=h.jsx(ae,{to:"/traffic-stats",className:"link-text-underline",children:h.jsx("span",{children:"Traffic Statistics "})}),a[54]=fn):fn=a[54];let dn;a[55]===Symbol.for("react.memo_cache_sentinel")?(dn=h.jsx(ae,{to:"/weather-map",className:"link-text-underline",children:h.jsx("span",{children:"NREN Online Network Weather Maps "})}),a[55]=dn):dn=a[55];let hn;a[56]===Symbol.for("react.memo_cache_sentinel")?(hn=h.jsx(ae,{to:"/certificate-provider",className:"link-text-underline",children:h.jsx("span",{children:"Certification Services used by NRENs"})}),a[56]=hn):hn=a[56];let Ht,Jt,yt;a[57]===Symbol.for("react.memo_cache_sentinel")?(Ht=h.jsx(ae,{to:"/siem-vendors",className:"link-text-underline",children:h.jsx("span",{children:"Vendors of SIEM/SOC systems used by NRENs"})}),Jt=h.jsx("hr",{className:"fake-divider"}),yt=h.jsx("h6",{className:"section-title",children:"Alienwave"}),a[57]=Ht,a[58]=Jt,a[59]=yt):(Ht=a[57],Jt=a[58],yt=a[59]);let mn;a[60]===Symbol.for("react.memo_cache_sentinel")?(mn=h.jsx(ae,{to:"/alien-wave",className:"link-text-underline",children:h.jsx("span",{children:"NREN Use of 3rd Party Alienwave/Lightpath Services"})}),a[60]=mn):mn=a[60];let xe,at,Yt;a[61]===Symbol.for("react.memo_cache_sentinel")?(xe=h.jsx(ae,{to:"/alien-wave-internal",className:"link-text-underline",children:h.jsx("span",{children:"Internal NREN Use of Alien Waves"})}),at=h.jsx("hr",{className:"fake-divider"}),Yt=h.jsx("h6",{className:"section-title",children:"Capacity"}),a[61]=xe,a[62]=at,a[63]=Yt):(xe=a[61],at=a[62],Yt=a[63]);let qn;a[64]===Symbol.for("react.memo_cache_sentinel")?(qn=h.jsx(ae,{to:"/capacity-largest-link",className:"link-text-underline",children:h.jsx("span",{children:"Capacity of the Largest Link in an NREN Network"})}),a[64]=qn):qn=a[64];let Fn;a[65]===Symbol.for("react.memo_cache_sentinel")?(Fn=h.jsx(ae,{to:"/external-connections",className:"link-text-underline",children:h.jsx("span",{children:"NREN External IP Connections"})}),a[65]=Fn):Fn=a[65];let Gt;a[66]===Symbol.for("react.memo_cache_sentinel")?(Gt=h.jsx(ae,{to:"/capacity-core-ip",className:"link-text-underline",children:h.jsx("span",{children:"NREN Core IP Capacity"})}),a[66]=Gt):Gt=a[66];let Pn;a[67]===Symbol.for("react.memo_cache_sentinel")?(Pn=h.jsx(ae,{to:"/non-rne-peers",className:"link-text-underline",children:h.jsx("span",{children:"Number of Non-R&E Networks NRENs Peer With"})}),a[67]=Pn):Pn=a[67];let tn,pt,Sa;a[68]===Symbol.for("react.memo_cache_sentinel")?(tn=h.jsx(ae,{to:"/traffic-ratio",className:"link-text-underline",children:h.jsx("span",{children:"Types of traffic in NREN networks"})}),pt=h.jsx("hr",{className:"fake-divider"}),Sa=h.jsx("h6",{className:"section-title",children:"Software-Defined Networking (SDN) & Network Function Virtualisation(NFV)"}),a[68]=tn,a[69]=pt,a[70]=Sa):(tn=a[68],pt=a[69],Sa=a[70]);let Bt;a[71]===Symbol.for("react.memo_cache_sentinel")?(Bt=h.jsx(ae,{to:"/ops-automation",className:"link-text-underline",children:h.jsx("span",{children:"NREN Automation of Operational Processes"})}),a[71]=Bt):Bt=a[71];let lt;a[72]===Symbol.for("react.memo_cache_sentinel")?(lt=h.jsx(ae,{to:"/network-automation",className:"link-text-underline",children:h.jsx("span",{children:"Network Tasks for which NRENs Use Automation "})}),a[72]=lt):lt=a[72];let Wn;a[73]===Symbol.for("react.memo_cache_sentinel")?(Wn=h.jsxs(fr,{title:fi.Network,startCollapsed:!0,children:[he,Ze,Te,He,pe,Ke,Et,mt,nt,we,Tt,Dt,en,fn,dn,hn,Ht,Jt,yt,mn,xe,at,Yt,qn,Fn,Gt,Pn,tn,pt,Sa,Bt,lt,h.jsx(ae,{to:"/nfv",className:"link-text-underline",children:h.jsx("span",{children:"Kinds of Network Function Virtualisation used by NRENs"})})]}),a[73]=Wn):Wn=a[73];let kn;a[74]===Symbol.for("react.memo_cache_sentinel")?(kn=h.jsx(ae,{to:"/network-services",className:"link-text-underline",children:h.jsx("span",{children:"Network services"})}),a[74]=kn):kn=a[74];let xa;a[75]===Symbol.for("react.memo_cache_sentinel")?(xa=h.jsx(ae,{to:"/isp-support-services",className:"link-text-underline",children:h.jsx("span",{children:"ISP support services"})}),a[75]=xa):xa=a[75];let yn;a[76]===Symbol.for("react.memo_cache_sentinel")?(yn=h.jsx(ae,{to:"/security-services",className:"link-text-underline",children:h.jsx("span",{children:"Security services"})}),a[76]=yn):yn=a[76];let An;a[77]===Symbol.for("react.memo_cache_sentinel")?(An=h.jsx(ae,{to:"/identity-services",className:"link-text-underline",children:h.jsx("span",{children:"Identity services"})}),a[77]=An):An=a[77];let Xt;a[78]===Symbol.for("react.memo_cache_sentinel")?(Xt=h.jsx(ae,{to:"/collaboration-services",className:"link-text-underline",children:h.jsx("span",{children:"Collaboration services"})}),a[78]=Xt):Xt=a[78];let Ft;a[79]===Symbol.for("react.memo_cache_sentinel")?(Ft=h.jsx(ae,{to:"/multimedia-services",className:"link-text-underline",children:h.jsx("span",{children:"Multimedia services"})}),a[79]=Ft):Ft=a[79];let Qt;a[80]===Symbol.for("react.memo_cache_sentinel")?(Qt=h.jsx(ae,{to:"/storage-and-hosting-services",className:"link-text-underline",children:h.jsx("span",{children:"Storage and hosting services"})}),a[80]=Qt):Qt=a[80];let _a;return a[81]===Symbol.for("react.memo_cache_sentinel")?(_a=h.jsxs(h.Fragment,{children:[o,f,h.jsx(Fa,{className:"mt-5 mb-5",children:h.jsxs(Hn,{children:[U,et,ge,Wn,h.jsxs(fr,{title:fi.Services,startCollapsed:!0,children:[kn,xa,yn,An,Xt,Ft,Qt,h.jsx(ae,{to:"/professional-services",className:"link-text-underline",children:h.jsx("span",{children:"Professional services"})})]})]})})]}),a[81]=_a):_a=a[81],_a}const DS=()=>{const a=st.c(26),{consent:i,setConsent:u}=g.useContext($o),[c,o]=g.useState(i===null);let f;a[0]===Symbol.for("react.memo_cache_sentinel")?(f=()=>{o(!1),window.location.reload()},a[0]=f):f=a[0];const m=f,[y,v]=g.useState(!0);let p;a[1]!==u?(p=O=>{const ue=new Date;ue.setDate(ue.getDate()+30),localStorage.setItem("matomo_consent",JSON.stringify({consent:O,expiry:ue})),u(O)},a[1]=u,a[2]=p):p=a[2];const b=p;let T;a[3]===Symbol.for("react.memo_cache_sentinel")?(T=h.jsx(or.Header,{closeButton:!0,children:h.jsx(or.Title,{children:"Privacy on this site"})}),a[3]=T):T=a[3];let x;a[4]===Symbol.for("react.memo_cache_sentinel")?(x=h.jsx("a",{href:"https://geant.org/Privacy-Notice/",children:"Privacy Policy"}),a[4]=x):x=a[4];let R;a[5]===Symbol.for("react.memo_cache_sentinel")?(R=h.jsxs("p",{children:["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 ",x,".",h.jsx("br",{}),"Below, you can choose to accept or decline to have this data collected."]}),a[5]=R):R=a[5];let w;a[6]!==y?(w=()=>v(!y),a[6]=y,a[7]=w):w=a[7];let k;a[8]!==y||a[9]!==w?(k=h.jsx(Au.Check,{type:"checkbox",label:"Analytics",checked:y,onChange:w}),a[8]=y,a[9]=w,a[10]=k):k=a[10];let B;a[11]===Symbol.for("react.memo_cache_sentinel")?(B=h.jsx(Au.Text,{className:"text-muted",children:"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."}),a[11]=B):B=a[11];let U;a[12]!==k?(U=h.jsxs(or.Body,{children:[R,h.jsx(Au,{children:h.jsxs(Au.Group,{className:"mb-3",children:[k,B]})})]}),a[12]=k,a[13]=U):U=a[13];let Y;a[14]!==b?(Y=h.jsx(Uo,{variant:"secondary",onClick:()=>{b(!1),m()},children:"Decline all"}),a[14]=b,a[15]=Y):Y=a[15];let $;a[16]!==y||a[17]!==b?($=h.jsx(Uo,{variant:"primary",onClick:()=>{b(y),m()},children:"Save consent for 30 days"}),a[16]=y,a[17]=b,a[18]=$):$=a[18];let ee;a[19]!==$||a[20]!==Y?(ee=h.jsxs(or.Footer,{children:[Y,$]}),a[19]=$,a[20]=Y,a[21]=ee):ee=a[21];let J;return a[22]!==c||a[23]!==ee||a[24]!==U?(J=h.jsxs(or,{show:c,centered:!0,children:[T,U,ee]}),a[22]=c,a[23]=ee,a[24]=U,a[25]=J):J=a[25],J},AS=g.lazy(()=>ve(()=>import("./Budget-Dcza_nDS.js"),__vite__mapDeps([0,1,2,3,4,5,6,7]))),wS=g.lazy(()=>ve(()=>import("./ChargingStructure-LPcFjEsG.js"),__vite__mapDeps([8,2,3,4,5,6,9,10,11]))),MS=g.lazy(()=>ve(()=>import("./ECProjects-ChLCZHki.js"),__vite__mapDeps([12,2,3,4,5,6,13,11]))),zS=g.lazy(()=>ve(()=>import("./FundingSource-Bwu0iwfm.js"),__vite__mapDeps([14,1,2,3,4,5,6,15]))),LS=g.lazy(()=>ve(()=>import("./ParentOrganisation-D0KpPI2s.js"),__vite__mapDeps([16,2,3,4,5,6,13,11]))),Cy=g.lazy(()=>ve(()=>import("./StaffGraph-BWU39hrJ.js"),__vite__mapDeps([17,1,2,3,4,5,6,18]))),US=g.lazy(()=>ve(()=>import("./StaffGraphAbsolute-CMxNAPzl.js"),__vite__mapDeps([19,1,2,3,4,5,6,15,7]))),HS=g.lazy(()=>ve(()=>import("./SubOrganisation-BBUAiix9.js"),__vite__mapDeps([20,2,3,4,5,6,13,11]))),BS=g.lazy(()=>ve(()=>import("./Audits-tIxneKrE.js"),__vite__mapDeps([21,2,3,4,5,6,9,10,11]))),qS=g.lazy(()=>ve(()=>import("./BusinessContinuity-WayIenw9.js"),__vite__mapDeps([22,2,3,4,5,6,9,10,11]))),kS=g.lazy(()=>ve(()=>import("./CentralProcurement-ILLJKzCj.js"),__vite__mapDeps([23,2,3,4,5,6,15,1,7]))),VS=g.lazy(()=>ve(()=>import("./CorporateStrategy-DZFOGJiQ.js"),__vite__mapDeps([24,2,3,4,5,6,13,11]))),YS=g.lazy(()=>ve(()=>import("./CrisisExercises-DgB-Jzeh.js"),__vite__mapDeps([25,2,3,4,5,6,9,10,11]))),GS=g.lazy(()=>ve(()=>import("./CrisisManagement-C6sQvzSe.js"),__vite__mapDeps([26,2,3,4,5,6,9,10,11]))),XS=g.lazy(()=>ve(()=>import("./EOSCListings-DH_4uObR.js"),__vite__mapDeps([27,2,3,4,5,6,13,11]))),QS=g.lazy(()=>ve(()=>import("./Policy-9QlCddyw.js"),__vite__mapDeps([28,2,3,4,5,6,13,11]))),ZS=g.lazy(()=>ve(()=>import("./SecurityControls-cN55VGDF.js"),__vite__mapDeps([29,2,3,4,5,6,9,10,11]))),KS=g.lazy(()=>ve(()=>import("./ServiceLevelTargets-CAul_Bb5.js"),__vite__mapDeps([30,2,3,4,5,6,9,10,11]))),$S=g.lazy(()=>ve(()=>import("./ServiceManagementFramework-Dr5HjYSA.js"),__vite__mapDeps([31,2,3,4,5,6,9,10,11]))),JS=g.lazy(()=>ve(()=>import("./ServicesOffered-Z3IepUcf.js"),__vite__mapDeps([32,2,3,4,5,6,33,11]))),FS=g.lazy(()=>ve(()=>import("./ConnectedInstitutionsURLs-MamPTDnd.js"),__vite__mapDeps([34,2,3,4,5,6,13,11]))),bl=g.lazy(()=>ve(()=>import("./ConnectedUser-CSVPvLMN.js"),__vite__mapDeps([35,2,3,4,5,6,33,11]))),PS=g.lazy(()=>ve(()=>import("./RemoteCampuses-NUiCskMY.js"),__vite__mapDeps([36,2,3,4,5,6,11]))),WS=g.lazy(()=>ve(()=>import("./AlienWave-CoaJ4Ch0.js"),__vite__mapDeps([37,2,3,4,5,6,9,10,11]))),IS=g.lazy(()=>ve(()=>import("./AlienWaveInternal-F5JHtmfW.js"),__vite__mapDeps([38,2,3,4,5,6,9,10,11]))),ex=g.lazy(()=>ve(()=>import("./Automation-4jvTE-gK.js"),__vite__mapDeps([39,2,3,4,5,6,10,11]))),tx=g.lazy(()=>ve(()=>import("./CapacityCoreIP-DyN3YGAW.js"),__vite__mapDeps([40,1,2,3,4,5,6,15,7]))),nx=g.lazy(()=>ve(()=>import("./CapacityLargestLink-Dk26I_at.js"),__vite__mapDeps([41,1,2,3,4,5,6,15,7]))),ax=g.lazy(()=>ve(()=>import("./CertificateProvider-4SfZ4yzo.js"),__vite__mapDeps([42,2,3,4,5,6,9,10,11]))),jy=g.lazy(()=>ve(()=>import("./DarkFibreLease-D0G5a_C_.js"),__vite__mapDeps([43,1,2,3,4,5,6,7]))),lx=g.lazy(()=>ve(()=>import("./DarkFibreInstalled-BEuXjlBR.js"),__vite__mapDeps([44,1,2,3,4,5,6,7]))),ix=g.lazy(()=>ve(()=>import("./ExternalConnections-CI7Oci1W.js"),__vite__mapDeps([45,2,3,4,5,6,11]))),rx=g.lazy(()=>ve(()=>import("./FibreLight-CWljRLcS.js"),__vite__mapDeps([46,2,3,4,5,6,9,10,11]))),ux=g.lazy(()=>ve(()=>import("./IRUDuration-DwT4l7iu.js"),__vite__mapDeps([47,1,2,3,4,5,6,7]))),cx=g.lazy(()=>ve(()=>import("./MonitoringTools-D5EolQI7.js"),__vite__mapDeps([48,2,3,4,5,6,9,10,11]))),sx=g.lazy(()=>ve(()=>import("./NetworkFunctionVirtualisation-Ci3ZHBJN.js"),__vite__mapDeps([49,2,3,4,5,6,10,11]))),ox=g.lazy(()=>ve(()=>import("./NetworkMapUrls-CYYKJL7A.js"),__vite__mapDeps([50,2,3,4,5,6,13,11]))),fx=g.lazy(()=>ve(()=>import("./NonRAndEPeer-OZTW6B0e.js"),__vite__mapDeps([51,1,2,3,4,5,6,15,7]))),dx=g.lazy(()=>ve(()=>import("./OPsAutomation-BzaiKZKL.js"),__vite__mapDeps([52,2,3,4,5,6,9,10,11]))),hx=g.lazy(()=>ve(()=>import("./PassiveMonitoring-DrHRNpwv.js"),__vite__mapDeps([53,2,3,4,5,6,9,10,11]))),mx=g.lazy(()=>ve(()=>import("./PertTeam-B3F3NYFc.js"),__vite__mapDeps([54,2,3,4,5,6,9,10,11]))),yx=g.lazy(()=>ve(()=>import("./SiemVendors-BpJ6Liws.js"),__vite__mapDeps([55,2,3,4,5,6,9,10,11]))),px=g.lazy(()=>ve(()=>import("./TrafficRatio-BRasghA5.js"),__vite__mapDeps([56,1,2,3,4,5,6,18]))),vx=g.lazy(()=>ve(()=>import("./TrafficUrl-DrUJ6TNq.js"),__vite__mapDeps([57,2,3,4,5,6,13,11]))),gx=g.lazy(()=>ve(()=>import("./TrafficVolume-DIkzyQG4.js"),__vite__mapDeps([58,1,2,3,4,5,6,7]))),Ex=g.lazy(()=>ve(()=>import("./WeatherMap-BWtEGyUR.js"),__vite__mapDeps([59,2,3,4,5,6,13,11]))),Qa=g.lazy(()=>ve(()=>import("./Services-UuW4JfkB.js"),__vite__mapDeps([60,2,3,4,5,6,11]))),bx=g.lazy(()=>ve(()=>import("./Landing-f86DzYca.js"),__vite__mapDeps([61,62,63,3,4,11]))),Ro=g.lazy(()=>ve(()=>import("./SurveyContainerComponent-D2pyP2dn.js"),__vite__mapDeps([64,65,66,67,63,3,68]))),Sx=g.lazy(()=>ve(()=>import("./SurveyManagementComponent-CNBvtq4g.js"),__vite__mapDeps([69,70,6,11,65,67,62,63,3]))),xx=g.lazy(()=>ve(()=>import("./UserManagementComponent-CvgRGQoR.js"),__vite__mapDeps([71,65,63,3,5,70,6,11]))),_x=()=>{const a=st.c(9),{pathname:i}=Jn(),u=i!=="/";let c;a[0]===Symbol.for("react.memo_cache_sentinel")?(c=h.jsx(cS,{}),a[0]=c):c=a[0];let o;a[1]!==u?(o=h.jsx("main",{className:"grow",children:u?h.jsx(_1,{}):h.jsx(Up,{})}),a[1]=u,a[2]=o):o=a[2];let f;a[3]===Symbol.for("react.memo_cache_sentinel")?(f=h.jsx(DS,{}),a[3]=f):f=a[3];let m;a[4]!==o?(m=h.jsxs(OE,{children:[c,o,f]}),a[4]=o,a[5]=m):m=a[5];let y;a[6]===Symbol.for("react.memo_cache_sentinel")?(y=h.jsx(fS,{}),a[6]=y):y=a[6];let v;return a[7]!==m?(v=h.jsxs(h.Fragment,{children:[m,y]}),a[7]=m,a[8]=v):v=a[8],v},Rx=J1([{path:"",element:h.jsx(_x,{}),children:[{path:"/budget",element:h.jsx(AS,{})},{path:"/funding",element:h.jsx(zS,{})},{path:"/employment",element:h.jsx(Cy,{},"staffgraph")},{path:"/traffic-ratio",element:h.jsx(px,{})},{path:"/roles",element:h.jsx(Cy,{roles:!0},"staffgraphroles")},{path:"/employee-count",element:h.jsx(US,{})},{path:"/charging",element:h.jsx(wS,{})},{path:"/suborganisations",element:h.jsx(HS,{})},{path:"/parentorganisation",element:h.jsx(LS,{})},{path:"/ec-projects",element:h.jsx(MS,{})},{path:"/policy",element:h.jsx(QS,{})},{path:"/traffic-volume",element:h.jsx(gx,{})},{path:"/data",element:h.jsx(OS,{})},{path:"/institutions-urls",element:h.jsx(FS,{})},{path:"/connected-proportion",element:h.jsx(bl,{page:$t.ConnectedProportion},$t.ConnectedProportion)},{path:"/connectivity-level",element:h.jsx(bl,{page:$t.ConnectivityLevel},$t.ConnectivityLevel)},{path:"/connectivity-growth",element:h.jsx(bl,{page:$t.ConnectivityGrowth},$t.ConnectivityGrowth)},{path:"/connection-carrier",element:h.jsx(bl,{page:$t.ConnectionCarrier},$t.ConnectionCarrier)},{path:"/connectivity-load",element:h.jsx(bl,{page:$t.ConnectivityLoad},$t.ConnectivityLoad)},{path:"/commercial-charging-level",element:h.jsx(bl,{page:$t.CommercialChargingLevel},$t.CommercialChargingLevel)},{path:"/commercial-connectivity",element:h.jsx(bl,{page:$t.CommercialConnectivity},$t.CommercialConnectivity)},{path:"/network-services",element:h.jsx(Qa,{category:Ut.network_services},Ut.network_services)},{path:"/isp-support-services",element:h.jsx(Qa,{category:Ut.isp_support},Ut.isp_support)},{path:"/security-services",element:h.jsx(Qa,{category:Ut.security},Ut.security)},{path:"/identity-services",element:h.jsx(Qa,{category:Ut.identity},Ut.identity)},{path:"/collaboration-services",element:h.jsx(Qa,{category:Ut.collaboration},Ut.collaboration)},{path:"/multimedia-services",element:h.jsx(Qa,{category:Ut.multimedia},Ut.multimedia)},{path:"/storage-and-hosting-services",element:h.jsx(Qa,{category:Ut.storage_and_hosting},Ut.storage_and_hosting)},{path:"/professional-services",element:h.jsx(Qa,{category:Ut.professional_services},Ut.professional_services)},{path:"/dark-fibre-lease",element:h.jsx(jy,{national:!0},"darkfibrenational")},{path:"/dark-fibre-lease-international",element:h.jsx(jy,{},"darkfibreinternational")},{path:"/dark-fibre-installed",element:h.jsx(lx,{})},{path:"/remote-campuses",element:h.jsx(PS,{})},{path:"/eosc-listings",element:h.jsx(XS,{})},{path:"/fibre-light",element:h.jsx(rx,{})},{path:"/monitoring-tools",element:h.jsx(cx,{})},{path:"/pert-team",element:h.jsx(mx,{})},{path:"/passive-monitoring",element:h.jsx(hx,{})},{path:"/alien-wave",element:h.jsx(WS,{})},{path:"/alien-wave-internal",element:h.jsx(IS,{})},{path:"/external-connections",element:h.jsx(ix,{})},{path:"/ops-automation",element:h.jsx(dx,{})},{path:"/network-automation",element:h.jsx(ex,{})},{path:"/traffic-stats",element:h.jsx(vx,{})},{path:"/weather-map",element:h.jsx(Ex,{})},{path:"/network-map",element:h.jsx(ox,{})},{path:"/nfv",element:h.jsx(sx,{})},{path:"/certificate-providers",element:h.jsx(ax,{})},{path:"/siem-vendors",element:h.jsx(yx,{})},{path:"/capacity-largest-link",element:h.jsx(nx,{})},{path:"/capacity-core-ip",element:h.jsx(tx,{})},{path:"/non-rne-peers",element:h.jsx(fx,{})},{path:"/iru-duration",element:h.jsx(ux,{})},{path:"/audits",element:h.jsx(BS,{})},{path:"/business-continuity",element:h.jsx(qS,{})},{path:"/crisis-management",element:h.jsx(GS,{})},{path:"/crisis-exercise",element:h.jsx(YS,{})},{path:"/central-procurement",element:h.jsx(kS,{})},{path:"/security-control",element:h.jsx(ZS,{})},{path:"/services-offered",element:h.jsx(JS,{})},{path:"/service-management-framework",element:h.jsx($S,{})},{path:"/service-level-targets",element:h.jsx(KS,{})},{path:"/corporate-strategy",element:h.jsx(VS,{})},{path:"/survey/admin/surveys",element:h.jsx(Sx,{})},{path:"/survey/admin/users",element:h.jsx(xx,{})},{path:"/survey/admin/inspect/:year",element:h.jsx(Ro,{loadFrom:"/api/response/inspect/"})},{path:"/survey/admin/try/:year",element:h.jsx(Ro,{loadFrom:"/api/response/try/"})},{path:"/survey/response/:year/:nren",element:h.jsx(Ro,{loadFrom:"/api/response/load/"})},{path:"/survey/*",element:h.jsx(bx,{})},{path:"*",element:h.jsx(Up,{})}]}]);function Tx(){const a=st.c(1);let i;return a[0]===Symbol.for("react.memo_cache_sentinel")?(i=h.jsx("div",{className:"app",children:h.jsx(cE,{router:Rx})}),a[0]=i):i=a[0],i}const Nx=document.getElementById("root"),Cx=t0.createRoot(Nx);Cx.render(h.jsx(Vt.StrictMode,{children:h.jsx(Tx,{})}));export{Dx as $,Yy as A,mb as B,sn as C,Fa as D,NS as E,hE as F,yE as G,Lp as H,CS as I,RS as J,Au as K,ae as L,jS as M,EE as N,SS as O,Py as P,xS as Q,Hn as R,fi as S,qp as T,Mx as U,Ut as V,Ko as W,Xu as X,Oy as Y,Ax as Z,wE as _,$t as a,ve as a0,lb as a1,eb as a2,Ju as a3,Nl as a4,Sl as a5,Ao as a6,Ka as a7,_l as a8,tb as a9,Ox as aa,ef as ab,CE as ac,zx as b,st as c,Lx as d,fr as e,Vt as f,ip as g,Ve as h,De as i,h as j,ub as k,gy as l,qu as m,Cb as n,$u as o,Io as p,cb as q,g as r,ci as s,np as t,Rl as u,lp as v,wx as w,Uo as x,UE as y,Lo as z}; diff --git a/compendium_v2/static/survey.core-D1mOb2z9.js b/compendium_v2/static/survey.core-D1mOb2z9.js new file mode 100644 index 00000000..a27a8d75 --- /dev/null +++ b/compendium_v2/static/survey.core-D1mOb2z9.js @@ -0,0 +1,36 @@ +function rh(Ot,Nn){for(var qe=0;qe<Nn.length;qe++){const m=Nn[qe];if(typeof m!="string"&&!Array.isArray(m)){for(const y in m)if(y!=="default"&&!(y in Ot)){const E=Object.getOwnPropertyDescriptor(m,y);E&&Object.defineProperty(Ot,y,E.get?E:{enumerable:!0,get:()=>m[y]})}}}return Object.freeze(Object.defineProperty(Ot,Symbol.toStringTag,{value:"Module"}))}var jn={exports:{}};/*! + * surveyjs - Survey JavaScript library v1.12.23 + * Copyright (c) 2015-2025 Devsoft Baltic OÜ - http://surveyjs.io/ + * License: MIT (http://www.opensource.org/licenses/mit-license.php) + */var ih=jn.exports,el;function oh(){return el||(el=1,function(Ot,Nn){(function(m,y){Ot.exports=y()})(ih,function(){return function(qe){var m={};function y(E){if(m[E])return m[E].exports;var I=m[E]={i:E,l:!1,exports:{}};return qe[E].call(I.exports,I,I.exports,y),I.l=!0,I.exports}return y.m=qe,y.c=m,y.d=function(E,I,Z){y.o(E,I)||Object.defineProperty(E,I,{enumerable:!0,get:Z})},y.r=function(E){typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(E,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(E,"__esModule",{value:!0})},y.t=function(E,I){if(I&1&&(E=y(E)),I&8||I&4&&typeof E=="object"&&E&&E.__esModule)return E;var Z=Object.create(null);if(y.r(Z),Object.defineProperty(Z,"default",{enumerable:!0,value:E}),I&2&&typeof E!="string")for(var Jt in E)y.d(Z,Jt,(function(P){return E[P]}).bind(null,Jt));return Z},y.n=function(E){var I=E&&E.__esModule?function(){return E.default}:function(){return E};return y.d(I,"a",I),I},y.o=function(E,I){return Object.prototype.hasOwnProperty.call(E,I)},y.p="",y(y.s="./src/entries/core.ts")}({"./src/entries/core.ts":function(qe,m,y){y.r(m),y.d(m,"Version",function(){return Wt}),y.d(m,"ReleaseDate",function(){return vi}),y.d(m,"checkLibraryVersion",function(){return Pf}),y.d(m,"setLicenseKey",function(){return Vf}),y.d(m,"slk",function(){return Zs}),y.d(m,"hasLicense",function(){return wf}),y.d(m,"settings",function(){return b}),y.d(m,"Helpers",function(){return P}),y.d(m,"AnswerCountValidator",function(){return xo}),y.d(m,"EmailValidator",function(){return ur}),y.d(m,"NumericValidator",function(){return Vo}),y.d(m,"RegexValidator",function(){return Oo}),y.d(m,"SurveyValidator",function(){return it}),y.d(m,"TextValidator",function(){return wo}),y.d(m,"ValidatorResult",function(){return Te}),y.d(m,"ExpressionValidator",function(){return So}),y.d(m,"ValidatorRunner",function(){return Po}),y.d(m,"ItemValue",function(){return k}),y.d(m,"Base",function(){return z}),y.d(m,"Event",function(){return zn}),y.d(m,"EventBase",function(){return Ve}),y.d(m,"ArrayChanges",function(){return tt}),y.d(m,"ComputedUpdater",function(){return te}),y.d(m,"SurveyError",function(){return ge}),y.d(m,"SurveyElementCore",function(){return nn}),y.d(m,"SurveyElement",function(){return le}),y.d(m,"DragTypeOverMeEnum",function(){return Xn}),y.d(m,"CalculatedValue",function(){return Eo}),y.d(m,"CustomError",function(){return we}),y.d(m,"AnswerRequiredError",function(){return yo}),y.d(m,"OneAnswerRequiredError",function(){return mo}),y.d(m,"RequreNumericError",function(){return vo}),y.d(m,"ExceedSizeError",function(){return bo}),y.d(m,"LocalizableString",function(){return Se}),y.d(m,"LocalizableStrings",function(){return ao}),y.d(m,"HtmlConditionItem",function(){return Io}),y.d(m,"UrlConditionItem",function(){return Ao}),y.d(m,"ChoicesRestful",function(){return ot}),y.d(m,"ChoicesRestfull",function(){return Du}),y.d(m,"FunctionFactory",function(){return U}),y.d(m,"registerFunction",function(){return ll}),y.d(m,"ConditionRunner",function(){return de}),y.d(m,"ExpressionRunner",function(){return et}),y.d(m,"ExpressionExecutor",function(){return eo}),y.d(m,"Operand",function(){return gt}),y.d(m,"Const",function(){return qn}),y.d(m,"BinaryOperand",function(){return Gi}),y.d(m,"Variable",function(){return Ki}),y.d(m,"FunctionOperand",function(){return Yi}),y.d(m,"ArrayOperand",function(){return Xt}),y.d(m,"UnaryOperand",function(){return kn}),y.d(m,"ConditionsParser",function(){return Xi}),y.d(m,"ProcessValue",function(){return me}),y.d(m,"JsonError",function(){return dt}),y.d(m,"JsonIncorrectTypeError",function(){return ji}),y.d(m,"JsonMetadata",function(){return Di}),y.d(m,"JsonMetadataClass",function(){return Ai}),y.d(m,"JsonMissingTypeError",function(){return Mi}),y.d(m,"JsonMissingTypeErrorBase",function(){return Bn}),y.d(m,"JsonObject",function(){return fe}),y.d(m,"JsonObjectProperty",function(){return Gt}),y.d(m,"JsonRequiredPropertyError",function(){return Ni}),y.d(m,"JsonUnknownPropertyError",function(){return Li}),y.d(m,"Serializer",function(){return x}),y.d(m,"property",function(){return h}),y.d(m,"propertyArray",function(){return ae}),y.d(m,"MatrixDropdownCell",function(){return wr}),y.d(m,"MatrixDropdownRowModelBase",function(){return _e}),y.d(m,"QuestionMatrixDropdownModelBase",function(){return bt}),y.d(m,"MatrixDropdownColumn",function(){return jt}),y.d(m,"matrixDropdownColumnTypes",function(){return br}),y.d(m,"QuestionMatrixDropdownRenderedCell",function(){return De}),y.d(m,"QuestionMatrixDropdownRenderedRow",function(){return Pr}),y.d(m,"QuestionMatrixDropdownRenderedErrorRow",function(){return ko}),y.d(m,"QuestionMatrixDropdownRenderedTable",function(){return Vr}),y.d(m,"MatrixDropdownRowModel",function(){return Qo}),y.d(m,"QuestionMatrixDropdownModel",function(){return xr}),y.d(m,"MatrixDynamicRowModel",function(){return Wo}),y.d(m,"QuestionMatrixDynamicModel",function(){return Er}),y.d(m,"MatrixRowModel",function(){return cs}),y.d(m,"MatrixCells",function(){return fs}),y.d(m,"QuestionMatrixModel",function(){return Qr}),y.d(m,"QuestionMatrixBaseModel",function(){return gr}),y.d(m,"MultipleTextItemModel",function(){return Wr}),y.d(m,"MultipleTextCell",function(){return Jr}),y.d(m,"MultipleTextErrorCell",function(){return Ps}),y.d(m,"MutlipleTextErrorRow",function(){return Cs}),y.d(m,"MutlipleTextRow",function(){return $r}),y.d(m,"QuestionMultipleTextModel",function(){return wn}),y.d(m,"MultipleTextEditorModel",function(){return bs}),y.d(m,"PanelModel",function(){return Bt}),y.d(m,"PanelModelBase",function(){return Lr}),y.d(m,"QuestionRowModel",function(){return ts}),y.d(m,"FlowPanelModel",function(){return Vs}),y.d(m,"PageModel",function(){return Mr}),y.d(m,"DefaultTitleModel",function(){return wc}),y.d(m,"Question",function(){return ue}),y.d(m,"QuestionNonValue",function(){return xn}),y.d(m,"QuestionEmptyModel",function(){return ws}),y.d(m,"QuestionCheckboxBase",function(){return kt}),y.d(m,"QuestionSelectBase",function(){return jr}),y.d(m,"QuestionCheckboxModel",function(){return Qt}),y.d(m,"QuestionTagboxModel",function(){return Gr}),y.d(m,"QuestionRankingModel",function(){return Kr}),y.d(m,"QuestionCommentModel",function(){return Yr}),y.d(m,"QuestionDropdownModel",function(){return qt}),y.d(m,"QuestionFactory",function(){return J}),y.d(m,"ElementFactory",function(){return ze}),y.d(m,"QuestionFileModel",function(){return Zr}),y.d(m,"QuestionFilePage",function(){return Is}),y.d(m,"QuestionHtmlModel",function(){return ei}),y.d(m,"QuestionRadiogroupModel",function(){return ti}),y.d(m,"QuestionRatingModel",function(){return ri}),y.d(m,"RenderedRatingItem",function(){return Sn}),y.d(m,"QuestionExpressionModel",function(){return vr}),y.d(m,"QuestionTextBase",function(){return Pn}),y.d(m,"CharacterCounter",function(){return hs}),y.d(m,"QuestionTextModel",function(){return Vn}),y.d(m,"QuestionBooleanModel",function(){return ii}),y.d(m,"QuestionImagePickerModel",function(){return Ht}),y.d(m,"ImageItemValue",function(){return Ls}),y.d(m,"QuestionImageModel",function(){return oi}),y.d(m,"QuestionSignaturePadModel",function(){return ai}),y.d(m,"QuestionPanelDynamicModel",function(){return ci}),y.d(m,"QuestionPanelDynamicItem",function(){return pe}),y.d(m,"SurveyTimer",function(){return Ir}),y.d(m,"SurveyTimerModel",function(){return Go}),y.d(m,"tryFocusPage",function(){return pc}),y.d(m,"createTOCListModel",function(){return is}),y.d(m,"getTocRootCss",function(){return ss}),y.d(m,"TOCModel",function(){return st}),y.d(m,"SurveyProgressModel",function(){return tf}),y.d(m,"ProgressButtons",function(){return ns}),y.d(m,"ProgressButtonsResponsivityManager",function(){return fc}),y.d(m,"SurveyModel",function(){return Ue}),y.d(m,"SurveyTrigger",function(){return ut}),y.d(m,"SurveyTriggerComplete",function(){return _s}),y.d(m,"SurveyTriggerSetValue",function(){return Bs}),y.d(m,"SurveyTriggerVisible",function(){return Fs}),y.d(m,"SurveyTriggerCopyValue",function(){return Qs}),y.d(m,"SurveyTriggerRunExpression",function(){return qs}),y.d(m,"SurveyTriggerSkip",function(){return ks}),y.d(m,"Trigger",function(){return Ns}),y.d(m,"PopupSurveyModel",function(){return Hs}),y.d(m,"SurveyWindowModel",function(){return rf}),y.d(m,"TextPreProcessor",function(){return yr}),y.d(m,"Notifier",function(){return Ko}),y.d(m,"Cover",function(){return vn}),y.d(m,"CoverCell",function(){return Yo}),y.d(m,"dxSurveyService",function(){return Jo}),y.d(m,"englishStrings",function(){return Fn}),y.d(m,"surveyLocalization",function(){return ce}),y.d(m,"surveyStrings",function(){return rl}),y.d(m,"getLocaleString",function(){return oe}),y.d(m,"getLocaleStrings",function(){return tl}),y.d(m,"setupLocale",function(){return nl}),y.d(m,"QuestionCustomWidget",function(){return To}),y.d(m,"CustomWidgetCollection",function(){return cr}),y.d(m,"QuestionCustomModel",function(){return Fo}),y.d(m,"QuestionCompositeModel",function(){return _o}),y.d(m,"ComponentQuestionJSON",function(){return jo}),y.d(m,"ComponentCollection",function(){return cn}),y.d(m,"ListModel",function(){return Rt}),y.d(m,"MultiSelectListModel",function(){return xs}),y.d(m,"PopupModel",function(){return Et}),y.d(m,"createDialogOptions",function(){return Gl}),y.d(m,"PopupBaseViewModel",function(){return _r}),y.d(m,"PopupDropdownViewModel",function(){return kr}),y.d(m,"PopupModalViewModel",function(){return fi}),y.d(m,"createPopupViewModel",function(){return af}),y.d(m,"createPopupModalViewModel",function(){return sf}),y.d(m,"DropdownListModel",function(){return Cn}),y.d(m,"DropdownMultiSelectListModel",function(){return Os}),y.d(m,"QuestionButtonGroupModel",function(){return $s}),y.d(m,"ButtonGroupItemModel",function(){return lf}),y.d(m,"ButtonGroupItemValue",function(){return Ws}),y.d(m,"IsMobile",function(){return gn}),y.d(m,"IsTouch",function(){return ne}),y.d(m,"_setIsTouch",function(){return Hu}),y.d(m,"confirmAction",function(){return lo}),y.d(m,"confirmActionAsync",function(){return At}),y.d(m,"detectIEOrEdge",function(){return Dt}),y.d(m,"doKey2ClickUp",function(){return po}),y.d(m,"doKey2ClickDown",function(){return cu}),y.d(m,"doKey2ClickBlur",function(){return fo}),y.d(m,"loadFileFromBase64",function(){return uo}),y.d(m,"increaseHeightByContent",function(){return or}),y.d(m,"createSvg",function(){return au}),y.d(m,"chooseFiles",function(){return go}),y.d(m,"sanitizeEditableContent",function(){return du}),y.d(m,"prepareElementForVerticalAnimation",function(){return Ae}),y.d(m,"cleanHtmlElementAfterAnimation",function(){return Ce}),y.d(m,"classesToSelector",function(){return be}),y.d(m,"renamedIcons",function(){return nr}),y.d(m,"getIconNameFromProxy",function(){return co}),y.d(m,"InputMaskBase",function(){return En}),y.d(m,"InputMaskPattern",function(){return yi}),y.d(m,"InputMaskNumeric",function(){return mi}),y.d(m,"InputMaskDateTime",function(){return Ks}),y.d(m,"InputMaskCurrency",function(){return Xs}),y.d(m,"CssClassBuilder",function(){return O}),y.d(m,"TextAreaModel",function(){return ln}),y.d(m,"surveyCss",function(){return se}),y.d(m,"defaultV2Css",function(){return yn}),y.d(m,"defaultV2ThemeName",function(){return $o}),y.d(m,"DragDropCore",function(){return Sr}),y.d(m,"DragDropChoices",function(){return Ss}),y.d(m,"DragDropRankingSelectToRank",function(){return Rs}),y.d(m,"StylesManager",function(){return ta}),y.d(m,"defaultStandardCss",function(){return Xe}),y.d(m,"modernCss",function(){return na}),y.d(m,"SvgIconRegistry",function(){return ra}),y.d(m,"SvgRegistry",function(){return jf}),y.d(m,"SvgThemeSets",function(){return An}),y.d(m,"addIconsToThemeSet",function(){return Nf}),y.d(m,"RendererFactory",function(){return Ro}),y.d(m,"ResponsivityManager",function(){return Hn}),y.d(m,"VerticalResponsivityManager",function(){return Hl}),y.d(m,"unwrap",function(){return uu}),y.d(m,"getOriginalEvent",function(){return fu}),y.d(m,"getElement",function(){return Zn}),y.d(m,"activateLazyRenderingChecks",function(){return er}),y.d(m,"createDropdownActionModel",function(){return Yl}),y.d(m,"createDropdownActionModelAdvanced",function(){return Wn}),y.d(m,"createPopupModelWithListModel",function(){return $n}),y.d(m,"getActionDropdownButtonTarget",function(){return io}),y.d(m,"BaseAction",function(){return Zt}),y.d(m,"Action",function(){return $}),y.d(m,"ActionDropdownViewModel",function(){return Xl}),y.d(m,"AnimationUtils",function(){return Jn}),y.d(m,"AnimationPropertyUtils",function(){return oo}),y.d(m,"AnimationGroupUtils",function(){return Gn}),y.d(m,"AnimationProperty",function(){return tn}),y.d(m,"AnimationBoolean",function(){return Kn}),y.d(m,"AnimationGroup",function(){return Qe}),y.d(m,"AnimationTab",function(){return Yn}),y.d(m,"AdaptiveActionContainer",function(){return en}),y.d(m,"defaultActionBarCss",function(){return Un}),y.d(m,"ActionContainer",function(){return Ee}),y.d(m,"DragOrClickHelper",function(){return Tr}),y.d(m,"Model",function(){return Ue});var E=function(){function i(){}return i.isAvailable=function(){return typeof window<"u"},i.isFileReaderAvailable=function(){return i.isAvailable()?!!window.FileReader:!1},i.getLocation=function(){if(i.isAvailable())return window.location},i.getVisualViewport=function(){return i.isAvailable()?window.visualViewport:null},i.getInnerWidth=function(){if(i.isAvailable())return window.innerWidth},i.getInnerHeight=function(){return i.isAvailable()?window.innerHeight:null},i.getWindow=function(){if(i.isAvailable())return window},i.hasOwn=function(t){if(i.isAvailable())return t in window},i.getSelection=function(){if(i.isAvailable()&&window.getSelection)return window.getSelection()},i.requestAnimationFrame=function(t){if(i.isAvailable())return window.requestAnimationFrame(t)},i.addEventListener=function(t,e){i.isAvailable()&&window.addEventListener(t,e)},i.removeEventListener=function(t,e){i.isAvailable()&&window.removeEventListener(t,e)},i.matchMedia=function(t){return!i.isAvailable()||typeof window.matchMedia>"u"?null:window.matchMedia(t)},i}(),I=function(){function i(){}return i.isAvailable=function(){return typeof document<"u"},i.getBody=function(){if(i.isAvailable())return document.body},i.getDocumentElement=function(){if(i.isAvailable())return document.documentElement},i.getDocument=function(){if(i.isAvailable())return document},i.getCookie=function(){if(i.isAvailable())return document.cookie},i.setCookie=function(t){i.isAvailable()&&(document.cookie=t)},i.activeElementBlur=function(){if(i.isAvailable()){var t=document.activeElement;t&&t.blur&&t.blur()}},i.createElement=function(t){if(i.isAvailable())return document.createElement(t)},i.getComputedStyle=function(t){return i.isAvailable()?document.defaultView.getComputedStyle(t):new CSSStyleDeclaration},i.addEventListener=function(t,e){i.isAvailable()&&document.addEventListener(t,e)},i.removeEventListener=function(t,e){i.isAvailable()&&document.removeEventListener(t,e)},i}();function Z(i,t){if(!t)return new Date;!b.storeUtcDates&&typeof t=="string"&&Jt(t)&&(t+="T00:00:00");var e=new Date(t);return b.onDateCreated(e,i,t)}function Jt(i){return i.indexOf("T")>0||!/\d{4}-\d{2}-\d{2}/.test(i)?!1:!isNaN(new Date(i).getTime())}var P=function(){function i(){}return i.isValueEmpty=function(t){if(Array.isArray(t)&&t.length===0)return!0;if(t&&i.isValueObject(t)&&t.constructor===Object){for(var e in t)if(!i.isValueEmpty(t[e]))return!1;return!0}return!t&&t!==0&&t!==!1},i.isArrayContainsEqual=function(t,e){if(!Array.isArray(t)||!Array.isArray(e)||t.length!==e.length)return!1;for(var n=0;n<t.length;n++){for(var r=0;r<e.length&&!i.isTwoValueEquals(t[n],e[r]);r++);if(r===e.length)return!1}return!0},i.isArraysEqual=function(t,e,n,r,o){if(n===void 0&&(n=!1),!Array.isArray(t)||!Array.isArray(e)||t.length!==e.length)return!1;if(n){for(var s=[],a=[],l=0;l<t.length;l++)s.push(t[l]),a.push(e[l]);s.sort(),a.sort(),t=s,e=a}for(var l=0;l<t.length;l++)if(!i.isTwoValueEquals(t[l],e[l],n,r,o))return!1;return!0},i.compareStrings=function(t,e){var n=b.comparator.normalizeTextCallback;if(t&&(t=n(t,"compare").trim()),e&&(e=n(e,"compare").trim()),!t&&!e)return 0;if(!t)return-1;if(!e)return 1;if(t===e)return 0;for(var r=-1,o=0;o<t.length&&o<e.length;o++){if(this.isCharDigit(t[o])&&this.isCharDigit(e[o])){r=o;break}if(t[o]!==e[o])break}if(r>-1){var s=this.getNumberFromStr(t,r),a=this.getNumberFromStr(e,r);if(!Number.isNaN(s)&&!Number.isNaN(a)&&s!==a)return s>a?1:-1}return t>e?1:-1},i.isTwoValueEquals=function(t,e,n,r,o){if(n===void 0&&(n=!1),t===e||Array.isArray(t)&&t.length===0&&typeof e>"u"||Array.isArray(e)&&e.length===0&&typeof t>"u"||t==null&&e===""||e==null&&t==="")return!0;if(o===void 0&&(o=b.comparator.trimStrings),r===void 0&&(r=b.comparator.caseSensitive),typeof t=="string"&&typeof e=="string"){var s=b.comparator.normalizeTextCallback;return t=s(t,"compare"),e=s(e,"compare"),o&&(t=t.trim(),e=e.trim()),r||(t=t.toLowerCase(),e=e.toLowerCase()),t===e}if(t instanceof Date&&e instanceof Date)return t.getTime()==e.getTime();if(i.isConvertibleToNumber(t)&&i.isConvertibleToNumber(e)&&parseInt(t)===parseInt(e)&&parseFloat(t)===parseFloat(e))return!0;if(!i.isValueEmpty(t)&&i.isValueEmpty(e)||i.isValueEmpty(t)&&!i.isValueEmpty(e))return!1;if((t===!0||t===!1)&&typeof e=="string")return t.toString()===e.toLocaleLowerCase();if((e===!0||e===!1)&&typeof t=="string")return e.toString()===t.toLocaleLowerCase();if(!i.isValueObject(t)&&!i.isValueObject(e))return t==e;if(!i.isValueObject(t)||!i.isValueObject(e))return!1;if(t.equals&&e.equals)return t.equals(e);if(Array.isArray(t)&&Array.isArray(e))return i.isArraysEqual(t,e,n,r,o);for(var a in t)if(t.hasOwnProperty(a)&&(!e.hasOwnProperty(a)||!this.isTwoValueEquals(t[a],e[a],n,r,o)))return!1;for(a in e)if(e.hasOwnProperty(a)&&!t.hasOwnProperty(a))return!1;return!0},i.randomizeArray=function(t){for(var e=t.length-1;e>0;e--){var n=Math.floor(Math.random()*(e+1)),r=t[e];t[e]=t[n],t[n]=r}return t},i.getUnbindValue=function(t){if(Array.isArray(t)){for(var e=[],n=0;n<t.length;n++)e.push(i.getUnbindValue(t[n]));return e}return t&&i.isValueObject(t)&&!(t instanceof Date)?JSON.parse(JSON.stringify(t)):t},i.createCopy=function(t){var e={};if(!t)return e;for(var n in t)e[n]=t[n];return e},i.isConvertibleToNumber=function(t){return t!=null&&!Array.isArray(t)&&!isNaN(t)},i.isValueObject=function(t,e){return t instanceof Object&&(!e||!Array.isArray(t))},i.isNumber=function(t){return!isNaN(this.getNumber(t))},i.getNumber=function(t){var e=i.getNumberCore(t);return b.parseNumber(t,e)},i.getNumberCore=function(t){if(typeof t=="string"){if(t=t.trim(),!t)return NaN;if(t.indexOf("0x")==0)return t.length>32?NaN:parseInt(t);if(t.length>15&&i.isDigitsOnly(t))return NaN;if(i.isStringHasOperator(t))return NaN}t=this.prepareStringToNumber(t);var e=parseFloat(t);return isNaN(e)||!isFinite(t)?NaN:e},i.isStringHasOperator=function(t){if(t.lastIndexOf("-")>0||t.lastIndexOf("+")>0)return!1;for(var e="*^/%",n=0;n<e.length;n++)if(t.indexOf(e[n])>-1)return!0;return!1},i.prepareStringToNumber=function(t){if(typeof t!="string"||!t)return t;var e=t.indexOf(",");return e>-1&&t.indexOf(",",e+1)<0?t.replace(",","."):t},i.getMaxLength=function(t,e){return t<0&&(t=e),t>0?t:null},i.getRemainingCharacterCounterText=function(t,e){if(!e||e<=0||!b.showMaxLengthIndicator)return"";var n=t?t.length:"0";return[n,e].join("/")},i.getNumberByIndex=function(t,e,n){if(t<0)return"";var r=1,o="",s=".",a=!0,l="A",u="",d=function(j){if(!j)return!1;for(var A=0;A<j.length;A++)if(i.isCharDigit(j[A]))return!0;return!1};if(e){u=e;for(var v=u.length-1,V=d(u),T=function(){return V&&!i.isCharDigit(u[v])||i.isCharNotLetterAndDigit(u[v])};v>=0&&T();)v--;var R="";for(v<u.length-1&&(R=u.substring(v+1),u=u.substring(0,v+1)),v=u.length-1;v>=0&&!(T()||(v--,!V)););l=u.substring(v+1),o=u.substring(0,v+1),parseInt(l)?r=parseInt(l):l.length==1&&(a=!1),(R||o)&&(s=R)}if(n>-1&&d(o)&&(o=this.getNumberByIndex(n,o)),a){for(var N=(t+r).toString();N.length<l.length;)N="0"+N;return o+N+s}return o+String.fromCharCode(l.charCodeAt(0)+t)+s},i.isCharNotLetterAndDigit=function(t){return t.toUpperCase()==t.toLowerCase()&&!i.isCharDigit(t)},i.isCharDigit=function(t){return t>="0"&&t<="9"},i.isDigitsOnly=function(t){if(!t)return!1;for(var e=0;e<t.length;e++)if(!i.isCharDigit(t[e]))return!1;return!0},i.getNumberFromStr=function(t,e){if(!this.isCharDigit(t[e]))return NaN;for(var n="";e<t.length&&this.isCharDigit(t[e]);)n+=t[e],e++;return n?this.getNumber(n):NaN},i.countDecimals=function(t){if(i.isNumber(t)&&Math.floor(t)!==t){var e=t.toString().split(".");return e.length>1&&e[1].length||0}return 0},i.correctAfterPlusMinis=function(t,e,n){var r=i.countDecimals(t),o=i.countDecimals(e);if(r>0||o>0){var s=Math.max(r,o);n=parseFloat(n.toFixed(s))}return n},i.sumAnyValues=function(t,e){if(!i.isNumber(t)||!i.isNumber(e)){if(Array.isArray(t)&&Array.isArray(e))return[].concat(t).concat(e);if(Array.isArray(t)||Array.isArray(e)){var n=Array.isArray(t)?t:e,r=n===t?e:t;if(typeof r=="string"){var o=n.join(", ");return n===t?o+r:r+o}if(typeof r=="number"){for(var s=0,a=0;a<n.length;a++)typeof n[a]=="number"&&(s=i.correctAfterPlusMinis(s,n[a],s+n[a]));return i.correctAfterPlusMinis(s,r,s+r)}}return t+e}return typeof t=="string"||typeof e=="string"?t+e:i.correctAfterPlusMinis(t,e,t+e)},i.correctAfterMultiple=function(t,e,n){var r=i.countDecimals(t)+i.countDecimals(e);return r>0&&(n=parseFloat(n.toFixed(r))),n},i.convertArrayValueToObject=function(t,e,n){n===void 0&&(n=void 0);var r=new Array;if(!t||!Array.isArray(t))return r;for(var o=0;o<t.length;o++){var s=void 0;Array.isArray(n)&&(s=i.findObjByPropValue(n,e,t[o])),s||(s={},s[e]=t[o]),r.push(s)}return r},i.findObjByPropValue=function(t,e,n){for(var r=0;r<t.length;r++)if(i.isTwoValueEquals(t[r][e],n))return t[r]},i.convertArrayObjectToValue=function(t,e){var n=new Array;if(!t||!Array.isArray(t))return n;for(var r=0;r<t.length;r++){var o=t[r]?t[r][e]:void 0;i.isValueEmpty(o)||n.push(o)}return n},i.convertDateToString=function(t){var e=function(n){return n<10?"0"+n.toString():n.toString()};return t.getFullYear()+"-"+e(t.getMonth()+1)+"-"+e(t.getDate())},i.convertDateTimeToString=function(t){var e=function(n){return n<10?"0"+n.toString():n.toString()};return this.convertDateToString(t)+" "+e(t.getHours())+":"+e(t.getMinutes())},i.convertValToQuestionVal=function(t,e){return t instanceof Date?e==="datetime-local"?i.convertDateTimeToString(t):i.convertDateToString(t):this.getUnbindValue(t)},i.compareVerions=function(t,e){if(!t&&!e)return 0;for(var n=t.split("."),r=e.split("."),o=n.length,s=r.length,a=0;a<o&&a<s;a++){var l=n[a],u=r[a];if(l.length===u.length){if(l!==u)return l<u?-1:1}else return l.length<u.length?-1:1}return o===s?0:o<s?-1:1},i.isUrlYoutubeVideo=function(t){if(!t)return!1;var e=["www.youtube.com","m.youtube.com","youtube.com","youtu.be"];t=t.toLowerCase(),t=t.replace(/^https?:\/\//,"");for(var n=0;n<e.length;n++)if(t.indexOf(e[n]+"/")===0)return!0;return!1},i}();String.prototype.format||(String.prototype.format=function(){var i=arguments;return this.replace(/{(\d+)}/g,function(t,e){return typeof i[e]<"u"?i[e]:t})});var Fn={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",deselectAllItemText:"Deselect 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}",textNoDigitsAllow:"Numbers are not allowed.",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. +Click 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"},ce={currentLocaleValue:"",defaultLocaleValue:"en",locales:{},localeNames:{},localeNamesInEnglish:{},localeDirections:{},supportedLocales:[],useEnglishNames:!1,get showNamesInEnglish(){return this.useEnglishNames},set showNamesInEnglish(i){this.useEnglishNames=i},setupLocale:function(i){var t=i.localeCode;this.locales[t]=i.strings,this.localeNames[t]=i.nativeName,this.localeNamesInEnglish[t]=i.englishName,i.rtl!==void 0&&(this.localeDirections[t]=i.rtl)},get currentLocale(){return this.currentLocaleValue===this.defaultLocaleValue?"":this.currentLocaleValue},set currentLocale(i){i==="cz"&&(i="cs"),this.currentLocaleValue=i},get defaultLocale(){return this.defaultLocaleValue},set defaultLocale(i){i==="cz"&&(i="cs"),this.defaultLocaleValue=i},getLocaleStrings:function(i){return this.locales[i]},getString:function(i,t){var e=this;t===void 0&&(t=null);var n=new Array,r=function(l){var u=e.locales[l];u&&n.push(u)},o=function(l){if(l){r(l);var u=l.indexOf("-");u<1||(l=l.substring(0,u),r(l))}};o(t),o(this.currentLocale),o(this.defaultLocale),this.defaultLocale!=="en"&&r("en");for(var s=0;s<n.length;s++){var a=n[s][i];if(a!==void 0)return a}return this.onGetExternalString(i,t)},getLocaleName:function(i,t){if(!i)return"";t===void 0&&(t=this.showNamesInEnglish);var e=t?this.localeNamesInEnglish:this.localeNames,n=t?this.localeNames:this.localeNamesInEnglish;return e[i]||n[i]||i},getLocales:function(i){var t=this;i===void 0&&(i=!1);var e=[];e.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 o in n)i&&o==this.defaultLocale||e.push(o);var s=function(a){return t.getLocaleName(a).toLowerCase()};return e.sort(function(a,l){var u=s(a),d=s(l);return u===d?0:u<d?-1:1}),e},onGetExternalString:function(i,t){}};function oe(i,t){return t===void 0&&(t=null),ce.getString(i,t)}function tl(i){return ce.getLocaleStrings(i)}function nl(i){ce.setupLocale(i)}var rl=Fn;ce.locales.en=Fn,ce.localeNames.en="english";var Ze=function(){var i=function(t,e){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(n[o]=r[o])},i(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");i(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),il=function(i,t){for(var e=0,n=t.length,r=i.length;e<n;e++,r++)i[r]=t[e];return i};function _n(i,t,e){var n=i.getLocalizableString(e);if(!n){var r=void 0;typeof t.localizable=="object"&&t.localizable.defaultStr&&(r=t.localizable.defaultStr),n=i.createLocalizableString(e,i,!0,r),typeof t.localizable=="object"&&typeof t.localizable.onGetTextCallback=="function"&&(n.onGetTextCallback=t.localizable.onGetTextCallback)}}function ol(i,t,e){_n(i,t,e);var n=i.getLocalizableStringText(e);if(n)return n;if(typeof t.localizable=="object"&&t.localizable.defaultStr){var r=i.getLocale?i.getLocale():"";return oe(t.localizable.defaultStr,r)}return""}function h(i){return i===void 0&&(i={}),function(t,e){var n=function(r,o){if(o&&typeof o=="object"&&o.type===te.ComputedUpdaterType){z.startCollectDependencies(function(){return r[e]=o.updater()},r,e);var s=o.updater(),a=z.finishCollectDependencies();return o.setDependencies(a),r.dependencies[e]&&r.dependencies[e].dispose(),r.dependencies[e]=o,s}return o};!i||!i.localizable?Object.defineProperty(t,e,{get:function(){var r=null;return i&&(typeof i.getDefaultValue=="function"&&(r=i.getDefaultValue(this)),i.defaultValue!==void 0&&(r=i.defaultValue)),this.getPropertyValue(e,r)},set:function(r){var o=n(this,r),s=this.getPropertyValue(e);o!==s&&(this.setPropertyValue(e,o),i&&i.onSet&&i.onSet(o,this,s))}}):(Object.defineProperty(t,e,{get:function(){return ol(this,i,e)},set:function(r){_n(this,i,e);var o=n(this,r);this.setLocalizableStringText(e,o),i&&i.onSet&&i.onSet(o,this)}}),Object.defineProperty(t,typeof i.localizable=="object"&&i.localizable.name?i.localizable.name:"loc"+e.charAt(0).toUpperCase()+e.slice(1),{get:function(){return _n(this,i,e),this.getLocalizableString(e)}}))}}function Ii(i,t,e){i.ensureArray(e,function(n,r){var o=t?t.onPush:null;o&&o(n,r,i)},function(n,r){var o=t?t.onRemove:null;o&&o(n,r,i)})}function ae(i){return function(t,e){Object.defineProperty(t,e,{get:function(){return Ii(this,i,e),this.getPropertyValue(e)},set:function(n){Ii(this,i,e);var r=this.getPropertyValue(e);n!==r&&(r?r.splice.apply(r,il([0,r.length],n||[])):this.setPropertyValue(e,n),i&&i.onSet&&i.onSet(n,this))}})}}var Gt=function(){function i(t,e,n){n===void 0&&(n=!1),this.name=e,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=n,this.idValue=i.Index++}return Object.defineProperty(i.prototype,"id",{get:function(){return this.idValue},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"classInfo",{get:function(){return this.classInfoValue},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"type",{get:function(){return this.typeValue?this.typeValue:"string"},set:function(t){t==="itemvalues"&&(t="itemvalue[]"),t==="textitems"&&(t="textitem[]"),this.typeValue=t,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(i.prototype,"isRequired",{get:function(){return this.isRequiredValue},set:function(t){t!==this.isRequired&&(this.isRequiredValue=t,this.classInfo&&this.classInfo.resetAllProperties())},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"isUnique",{get:function(){return this.isUniqueValue},set:function(t){this.isUniqueValue=t},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"uniquePropertyName",{get:function(){return this.uniquePropertyValue},set:function(t){this.uniquePropertyValue=t},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"hasToUseGetValue",{get:function(){return this.onGetValue||this.serializationProperty},enumerable:!1,configurable:!0}),i.prototype.getDefaultValue=function(t){var e=this.defaultValueFunc?this.defaultValueFunc(t):this.defaultValueValue;return i.getItemValuesDefaultValue&&x.isDescendantOf(this.className,"itemvalue")&&(e=i.getItemValuesDefaultValue(this.defaultValueValue||[],this.className)),e},Object.defineProperty(i.prototype,"defaultValue",{get:function(){return this.getDefaultValue(void 0)},set:function(t){this.defaultValueValue=t},enumerable:!1,configurable:!0}),i.prototype.isDefaultValue=function(t){return this.isDefaultValueByObj(void 0,t)},i.prototype.isDefaultValueByObj=function(t,e){if(this.isLocalizable)return e==null;var n=this.getDefaultValue(t);return P.isValueEmpty(n)?e===!1&&(this.type=="boolean"||this.type=="switch")&&!this.defaultValueFunc||e===""||P.isValueEmpty(e):P.isTwoValueEquals(e,n,!1,!0,!1)},i.prototype.getSerializableValue=function(t,e){if(this.onSerializeValue)return this.onSerializeValue(t);var n=this.getValue(t);if(n!=null&&!(!e&&this.isDefaultValueByObj(t,n)))return n},i.prototype.getValue=function(t){return this.onGetValue?(t=this.getOriginalObj(t),this.onGetValue(t)):this.serializationProperty&&t[this.serializationProperty]?t[this.serializationProperty].getJson():t[this.name]},i.prototype.getPropertyValue=function(t){return this.isLocalizable?t[this.serializationProperty]?t[this.serializationProperty].text:null:this.getValue(t)},Object.defineProperty(i.prototype,"hasToUseSetValue",{get:function(){return this.onSetValue||this.serializationProperty},enumerable:!1,configurable:!0}),i.prototype.settingValue=function(t,e){return!this.onSettingValue||t.isLoadingFromJson?e:this.onSettingValue(t,e)},i.prototype.setValue=function(t,e,n){this.onSetValue?(t=this.getOriginalObj(t),this.onSetValue(t,e,n)):this.serializationProperty&&t[this.serializationProperty]?t[this.serializationProperty].setJson(e,!0):(e&&typeof e=="string"&&(this.type=="number"&&(e=parseInt(e)),(this.type=="boolean"||this.type=="switch")&&(e=e.toLowerCase()==="true")),t[this.name]=e)},i.prototype.validateValue=function(t){var e=this.choices;return!Array.isArray(e)||e.length===0?!0:e.indexOf(t)>-1},i.prototype.getObjType=function(t){return this.classNamePart?t.replace(this.classNamePart,""):t},Object.defineProperty(i.prototype,"choices",{get:function(){return this.getChoices(null)},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"hasChoices",{get:function(){return!!this.choicesValue||!!this.choicesfunc},enumerable:!1,configurable:!0}),i.prototype.getChoices=function(t,e){return e===void 0&&(e=null),this.choicesValue!=null?this.choicesValue:this.choicesfunc!=null?this.choicesfunc(t,e):null},i.prototype.setChoices=function(t,e){e===void 0&&(e=null),this.choicesValue=t,this.choicesfunc=e},i.prototype.getBaseValue=function(){return this.baseValue?typeof this.baseValue=="function"?this.baseValue():this.baseValue:""},i.prototype.setBaseValue=function(t){this.baseValue=t},Object.defineProperty(i.prototype,"readOnly",{get:function(){return this.readOnlyValue!=null?this.readOnlyValue:!1},set:function(t){this.readOnlyValue=t},enumerable:!1,configurable:!0}),i.prototype.isEnable=function(t){return this.readOnly?!1:!t||!this.enableIf?!0:this.enableIf(this.getOriginalObj(t))},i.prototype.isVisible=function(t,e){e===void 0&&(e=null);var n=!this.layout||!t||this.layout===t;return!this.visible||!n?!1:this.visibleIf&&e?this.visibleIf(this.getOriginalObj(e)):!0},i.prototype.getOriginalObj=function(t){if(t&&t.getOriginalObj){var e=t.getOriginalObj();if(e&&x.findProperty(e.getType(),this.name))return e}return t},Object.defineProperty(i.prototype,"visible",{get:function(){return this.visibleValue!=null?this.visibleValue:!0},set:function(t){this.visibleValue=t},enumerable:!1,configurable:!0}),i.prototype.isAvailableInVersion=function(t){return this.alternativeName||this.oldName?!0:this.isAvailableInVersionCore(t)},i.prototype.getSerializedName=function(t){return this.alternativeName?this.isAvailableInVersionCore(t)?this.name:this.alternativeName||this.oldName:this.name},i.prototype.getSerializedProperty=function(t,e){return!this.oldName||this.isAvailableInVersionCore(e)?this:!t||!t.getType?null:x.findProperty(t.getType(),this.oldName)},i.prototype.isAvailableInVersionCore=function(t){return!t||!this.version?!0:P.compareVerions(this.version,t)<=0},Object.defineProperty(i.prototype,"isLocalizable",{get:function(){return this.isLocalizableValue!=null?this.isLocalizableValue:!1},set:function(t){this.isLocalizableValue=t},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"dataList",{get:function(){return Array.isArray(this.dataListValue)?this.dataListValue:[]},set:function(t){this.dataListValue=t},enumerable:!1,configurable:!0}),i.prototype.mergeWith=function(t){for(var e=i.mergableValues,n=0;n<e.length;n++)this.mergeValue(t,e[n])},i.prototype.addDependedProperty=function(t){this.dependedProperties||(this.dependedProperties=[]),this.dependedProperties.indexOf(t)<0&&this.dependedProperties.push(t)},i.prototype.getDependedProperties=function(){return this.dependedProperties?this.dependedProperties:[]},i.prototype.schemaType=function(){if(this.className!=="choicesByUrl")return this.className==="string"?this.className:this.className||this.baseClassName?"array":this.type=="switch"?"boolean":this.type=="boolean"||this.type=="number"?this.type:"string"},i.prototype.schemaRef=function(){if(this.className)return this.className},i.prototype.mergeValue=function(t,e){this[e]==null&&t[e]!=null&&(this[e]=t[e])},i.Index=1,i.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"],i}(),Ne=function(){function i(){}return i.addProperty=function(t,e){t=t.toLowerCase();var n=i.properties;n[t]||(n[t]=[]),n[t].push(e)},i.removeProperty=function(t,e){t=t.toLowerCase();var n=i.properties;if(n[t]){for(var r=n[t],o=0;o<r.length;o++)if(r[o].name==e){n[t].splice(o,1);break}}},i.removeAllProperties=function(t){t=t.toLowerCase(),delete i.properties[t]},i.addClass=function(t,e){t=t.toLowerCase(),e&&(e=e.toLowerCase()),i.parentClasses[t]=e},i.getProperties=function(t){t=t.toLowerCase();for(var e=[],n=i.properties;t;){var r=n[t];if(r)for(var o=0;o<r.length;o++)e.push(r[o]);t=i.parentClasses[t]}return e},i.createProperties=function(t){!t||!t.getType||i.createPropertiesCore(t,t.getType())},i.createPropertiesCore=function(t,e){var n=i.properties;n[e]&&i.createPropertiesInObj(t,n[e]);var r=i.parentClasses[e];r&&i.createPropertiesCore(t,r)},i.createPropertiesInObj=function(t,e){for(var n=0;n<e.length;n++)i.createPropertyInObj(t,e[n])},i.createPropertyInObj=function(t,e){if(!i.checkIsPropertyExists(t,e.name)&&!(e.serializationProperty&&i.checkIsPropertyExists(t,e.serializationProperty))){if(e.isLocalizable&&e.serializationProperty&&t.createCustomLocalizableObj){var n=t.createCustomLocalizableObj(e.name);n.defaultValue=e.getDefaultValue(t);var r={get:function(){return t.getLocalizableString(e.name)}};Object.defineProperty(t,e.serializationProperty,r);var o={get:function(){return t.getLocalizableStringText(e.name)},set:function(l){t.setLocalizableStringText(e.name,l)}};Object.defineProperty(t,e.name,o)}else{var s=e.isArray||e.type==="multiplevalues";if(typeof t.createNewArray=="function"&&(x.isDescendantOf(e.className,"itemvalue")?(t.createNewArray(e.name,function(l){l.locOwner=t,l.ownerPropertyName=e.name}),s=!0):s&&t.createNewArray(e.name),s)){var a=e.getDefaultValue(t);Array.isArray(a)&&t.setPropertyValue(e.name,a)}if(t.getPropertyValue&&t.setPropertyValue){var o={get:function(){return e.onGetValue?e.onGetValue(t):t.getPropertyValue(e.name,void 0)},set:function(u){e.onSetValue?e.onSetValue(t,u,null):t.setPropertyValue(e.name,u)}};Object.defineProperty(t,e.name,o)}}(e.type==="condition"||e.type==="expression")&&e.onExecuteExpression&&t.addExpressionProperty(e.name,e.onExecuteExpression)}},i.checkIsPropertyExists=function(t,e){return t.hasOwnProperty(e)||t[e]},i.properties={},i.parentClasses={},i}(),Ai=function(){function i(t,e,n,r){n===void 0&&(n=null),r===void 0&&(r=null),this.name=t,this.creator=n,this.parentName=r,t=t.toLowerCase(),this.isCustomValue=!n&&t!=="survey",this.parentName&&(this.parentName=this.parentName.toLowerCase(),Ne.addClass(t,this.parentName),n&&this.makeParentRegularClass()),this.properties=new Array;for(var o=0;o<e.length;o++)this.createProperty(e[o],this.isCustom)}return i.prototype.find=function(t){for(var e=0;e<this.properties.length;e++)if(this.properties[e].name==t)return this.properties[e];return null},i.prototype.findProperty=function(t){return this.fillAllProperties(),this.hashProperties[t]},i.prototype.getAllProperties=function(){return this.fillAllProperties(),this.allProperties},i.prototype.getRequiredProperties=function(){if(this.requiredProperties)return this.requiredProperties;this.requiredProperties=[];for(var t=this.getAllProperties(),e=0;e<t.length;e++)t[e].isRequired&&this.requiredProperties.push(t[e]);return this.requiredProperties},i.prototype.resetAllProperties=function(){this.allProperties=void 0,this.requiredProperties=void 0,this.hashProperties=void 0;for(var t=x.getChildrenClasses(this.name),e=0;e<t.length;e++)t[e].resetAllProperties()},Object.defineProperty(i.prototype,"isCustom",{get:function(){return this.isCustomValue},enumerable:!1,configurable:!0}),i.prototype.fillAllProperties=function(){var t=this;if(!this.allProperties){this.allProperties=[],this.hashProperties={};var e={};this.properties.forEach(function(o){return e[o.name]=o});var n=this.parentName?x.findClass(this.parentName):null;if(n){var r=n.getAllProperties();r.forEach(function(o){var s=e[o.name];s?(s.mergeWith(o),t.addPropCore(s)):t.addPropCore(o)})}this.properties.forEach(function(o){t.hashProperties[o.name]||t.addPropCore(o)})}},i.prototype.addPropCore=function(t){this.allProperties.push(t),this.hashProperties[t.name]=t,t.alternativeName&&(this.hashProperties[t.alternativeName]=t)},i.prototype.isOverridedProp=function(t){return!!this.parentName&&!!x.findProperty(this.parentName,t)},i.prototype.hasRegularChildClass=function(){if(this.isCustom){this.isCustomValue=!1;for(var t=0;t<this.properties.length;t++)this.properties[t].isCustom=!1;Ne.removeAllProperties(this.name),this.makeParentRegularClass()}},i.prototype.makeParentRegularClass=function(){if(this.parentName){var t=x.findClass(this.parentName);t&&t.hasRegularChildClass()}},i.prototype.createProperty=function(t,e){e===void 0&&(e=!1);var n=typeof t=="string"?t:t.name;if(n){var r=null,o=n.indexOf(i.typeSymbol);o>-1&&(r=n.substring(o+1),n=n.substring(0,o));var s=this.getIsPropertyNameRequired(n)||!!t.isRequired;n=this.getPropertyName(n);var a=new Gt(this,n,s);if(r&&(a.type=r),typeof t=="object"){if(t.type&&(a.type=t.type),t.default!==void 0&&(a.defaultValue=t.default),t.defaultFunc!==void 0&&(a.defaultValueFunc=t.defaultFunc),P.isValueEmpty(t.isSerializable)||(a.isSerializable=t.isSerializable),P.isValueEmpty(t.isLightSerializable)||(a.isLightSerializable=t.isLightSerializable),P.isValueEmpty(t.maxLength)||(a.maxLength=t.maxLength),t.displayName!==void 0&&(a.displayName=t.displayName),P.isValueEmpty(t.category)||(a.category=t.category),P.isValueEmpty(t.categoryIndex)||(a.categoryIndex=t.categoryIndex),P.isValueEmpty(t.nextToProperty)||(a.nextToProperty=t.nextToProperty),P.isValueEmpty(t.overridingProperty)||(a.overridingProperty=t.overridingProperty),P.isValueEmpty(t.visibleIndex)||(a.visibleIndex=t.visibleIndex),P.isValueEmpty(t.showMode)||(a.showMode=t.showMode),P.isValueEmpty(t.maxValue)||(a.maxValue=t.maxValue),P.isValueEmpty(t.minValue)||(a.minValue=t.minValue),P.isValueEmpty(t.dataList)||(a.dataList=t.dataList),P.isValueEmpty(t.isDynamicChoices)||(a.isDynamicChoices=t.isDynamicChoices),P.isValueEmpty(t.isBindable)||(a.isBindable=t.isBindable),P.isValueEmpty(t.isUnique)||(a.isUnique=t.isUnique),P.isValueEmpty(t.uniqueProperty)||(a.uniquePropertyName=t.uniqueProperty),P.isValueEmpty(t.isArray)||(a.isArray=t.isArray),(t.visible===!0||t.visible===!1)&&(a.visible=t.visible),t.visibleIf&&(a.visibleIf=t.visibleIf),t.enableIf&&(a.enableIf=t.enableIf),t.onExecuteExpression&&(a.onExecuteExpression=t.onExecuteExpression),t.onPropertyEditorUpdate&&(a.onPropertyEditorUpdate=t.onPropertyEditorUpdate),t.readOnly===!0&&(a.readOnly=!0),t.availableInMatrixColumn===!0&&(a.availableInMatrixColumn=!0),t.choices){var l=typeof t.choices=="function"?t.choices:null,u=typeof t.choices!="function"?t.choices:null;a.setChoices(u,l)}t.baseValue&&a.setBaseValue(t.baseValue),t.onSerializeValue&&(a.onSerializeValue=t.onSerializeValue),t.onGetValue&&(a.onGetValue=t.onGetValue),t.onSetValue&&(a.onSetValue=t.onSetValue),t.onSettingValue&&(a.onSettingValue=t.onSettingValue),t.isLocalizable&&(t.serializationProperty="loc"+a.name),t.serializationProperty&&(a.serializationProperty=t.serializationProperty,a.serializationProperty&&a.serializationProperty.indexOf("loc")==0&&(a.isLocalizable=!0)),t.isLocalizable&&(a.isLocalizable=t.isLocalizable),t.className&&(a.className=t.className),t.baseClassName&&(a.baseClassName=t.baseClassName,a.isArray=!0),a.isArray===!0&&(a.isArray=!0),t.classNamePart&&(a.classNamePart=t.classNamePart),t.alternativeName&&(a.alternativeName=t.alternativeName),t.oldName&&(a.oldName=t.oldName),t.layout&&(a.layout=t.layout),t.version&&(a.version=t.version),t.dependsOn&&this.addDependsOnProperties(a,t.dependsOn)}return this.properties.push(a),e&&!this.isOverridedProp(a.name)&&(a.isCustom=!0,Ne.addProperty(this.name,a)),a}},i.prototype.addDependsOnProperties=function(t,e){var n=Array.isArray(e)?e:[e];t.dependsOn=n;for(var r=0;r<n.length;r++)this.addDependsOnProperty(t,n[r])},i.prototype.addDependsOnProperty=function(t,e){var n=this.find(e);n||(n=x.findProperty(this.parentName,e)),n&&n.addDependedProperty(t.name)},i.prototype.getIsPropertyNameRequired=function(t){return t.length>0&&t[0]==i.requiredSymbol},i.prototype.getPropertyName=function(t){return this.getIsPropertyNameRequired(t)&&(t=t.slice(1)),t},i.requiredSymbol="!",i.typeSymbol=":",i}(),Di=function(){function i(){this.classes={},this.alternativeNames={},this.childrenClasses={},this.dynamicPropsCache={}}return i.prototype.getObjPropertyValue=function(t,e){if(this.isObjWrapper(t)&&this.isNeedUseObjWrapper(t,e)){var n=t.getOriginalObj(),r=x.findProperty(n.getType(),e);if(r)return this.getObjPropertyValueCore(n,r)}var o=x.findProperty(t.getType(),e);return o?this.getObjPropertyValueCore(t,o):t[e]},i.prototype.setObjPropertyValue=function(t,e,n){if(t[e]!==n)if(t[e]&&t[e].setJson)t[e].setJson(n,!0);else{if(Array.isArray(n)){for(var r=[],o=0;o<n.length;o++)r.push(n[o]);n=r}t[e]=n}},i.prototype.getObjPropertyValueCore=function(t,e){if(!e.isSerializable)return t[e.name];if(e.isLocalizable){if(e.isArray)return t[e.name];if(e.serializationProperty)return t[e.serializationProperty].text}return t.getPropertyValue(e.name)},i.prototype.isObjWrapper=function(t){return!!t.getOriginalObj&&!!t.getOriginalObj()},i.prototype.isNeedUseObjWrapper=function(t,e){if(!t.getDynamicProperties)return!0;var n=t.getDynamicProperties();if(!Array.isArray(n))return!1;for(var r=0;r<n.length;r++)if(n[r].name===e)return!0;return!1},i.prototype.addClass=function(t,e,n,r){n===void 0&&(n=null),r===void 0&&(r=null),t=t.toLowerCase();var o=new Ai(t,e,n,r);if(this.classes[t]=o,r){r=r.toLowerCase();var s=this.childrenClasses[r];s||(this.childrenClasses[r]=[]),this.childrenClasses[r].push(o)}return o},i.prototype.removeClass=function(t){var e=this.findClass(t);if(e&&(delete this.classes[e.name],e.parentName)){var n=this.childrenClasses[e.parentName].indexOf(e);n>-1&&this.childrenClasses[e.parentName].splice(n,1)}},i.prototype.overrideClassCreatore=function(t,e){this.overrideClassCreator(t,e)},i.prototype.overrideClassCreator=function(t,e){t=t.toLowerCase();var n=this.findClass(t);n&&(n.creator=e)},i.prototype.getProperties=function(t){var e=this.findClass(t);return e?e.getAllProperties():[]},i.prototype.getPropertiesByObj=function(t){var e=t&&t.getType?t.getType():void 0;if(!e)return[];for(var n=this.getProperties(e),r=this.getDynamicPropertiesByObj(t),o=r.length-1;o>=0;o--)this.findProperty(e,r[o].name)&&r.splice(o,1);return r.length===0?n:[].concat(n).concat(r)},i.prototype.addDynamicPropertiesIntoObj=function(t,e,n){var r=this;n.forEach(function(o){r.addDynamicPropertyIntoObj(t,e,o.name,!1),o.serializationProperty&&r.addDynamicPropertyIntoObj(t,e,o.serializationProperty,!0),o.alternativeName&&r.addDynamicPropertyIntoObj(t,e,o.alternativeName,!1)})},i.prototype.addDynamicPropertyIntoObj=function(t,e,n,r){var o={configurable:!0,get:function(){return e[n]}};r||(o.set=function(s){e[n]=s}),Object.defineProperty(t,n,o)},i.prototype.getDynamicPropertiesByObj=function(t,e){if(e===void 0&&(e=null),!t||!t.getType)return[];if(t.getDynamicProperties)return t.getDynamicProperties();if(!t.getDynamicType&&!e)return[];var n=e||t.getDynamicType();return this.getDynamicPropertiesByTypes(t.getType(),n)},i.prototype.getDynamicPropertiesByTypes=function(t,e,n){if(!e)return[];var r=e+"-"+t;if(this.dynamicPropsCache[r])return this.dynamicPropsCache[r];var o=this.getProperties(e);if(!o||o.length==0)return[];for(var s={},a=this.getProperties(t),l=0;l<a.length;l++)s[a[l].name]=a[l];var u=[];n||(n=[]);for(var d=0;d<o.length;d++){var v=o[d];n.indexOf(v.name)<0&&this.canAddDybamicProp(v,s[v.name])&&u.push(v)}return this.dynamicPropsCache[r]=u,u},i.prototype.canAddDybamicProp=function(t,e){if(!e)return!0;if(t===e)return!1;for(var n=t.classInfo;n&&n.parentName;){if(t=this.findProperty(n.parentName,t.name),t&&t===e)return!0;n=t?t.classInfo:void 0}return!1},i.prototype.hasOriginalProperty=function(t,e){return!!this.getOriginalProperty(t,e)},i.prototype.getOriginalProperty=function(t,e){var n=this.findProperty(t.getType(),e);return n||(this.isObjWrapper(t)?this.findProperty(t.getOriginalObj().getType(),e):null)},i.prototype.getProperty=function(t,e){var n=this.findProperty(t,e);if(!n)return n;var r=this.findClass(t);if(n.classInfo===r)return n;var o=new Gt(r,n.name,n.isRequired);return o.mergeWith(n),o.isArray=n.isArray,r.properties.push(o),r.resetAllProperties(),o},i.prototype.findProperty=function(t,e){var n=this.findClass(t);return n?n.findProperty(e):null},i.prototype.findProperties=function(t,e){var n=new Array,r=this.findClass(t);if(!r)return n;for(var o=0;o<e.length;o++){var s=r.findProperty(e[o]);s&&n.push(s)}return n},i.prototype.getAllPropertiesByName=function(t){for(var e=new Array,n=this.getAllClasses(),r=0;r<n.length;r++)for(var o=this.findClass(n[r]),s=0;s<o.properties.length;s++)if(o.properties[s].name==t){e.push(o.properties[s]);break}return e},i.prototype.getAllClasses=function(){var t=new Array;for(var e in this.classes)t.push(e);return t},i.prototype.createClass=function(t,e){e===void 0&&(e=void 0),t=t.toLowerCase();var n=this.findClass(t);if(!n)return null;if(n.creator)return n.creator(e);for(var r=n.parentName;r;){if(n=this.findClass(r),!n)return null;if(r=n.parentName,n.creator)return this.createCustomType(t,n.creator,e)}return null},i.prototype.createCustomType=function(t,e,n){n===void 0&&(n=void 0),t=t.toLowerCase();var r=e(n),o=t,s=r.getTemplate?r.getTemplate():r.getType();return r.getType=function(){return o},r.getTemplate=function(){return s},Ne.createProperties(r),r},i.prototype.getChildrenClasses=function(t,e){e===void 0&&(e=!1),t=t.toLowerCase();var n=[];return this.fillChildrenClasses(t,e,n),n},i.prototype.getRequiredProperties=function(t){var e=this.findClass(t);if(!e)return[];for(var n=e.getRequiredProperties(),r=[],o=0;o<n.length;o++)r.push(n[o].name);return r},i.prototype.addProperties=function(t,e){t=t.toLowerCase();for(var n=this.findClass(t),r=0;r<e.length;r++)this.addCustomPropertyCore(n,e[r])},i.prototype.addProperty=function(t,e){return this.addCustomPropertyCore(this.findClass(t),e)},i.prototype.addCustomPropertyCore=function(t,e){if(!t)return null;var n=t.createProperty(e,!0);return n&&(this.clearDynamicPropsCache(t),t.resetAllProperties()),n},i.prototype.removeProperty=function(t,e){var n=this.findClass(t);if(!n)return!1;var r=n.find(e);r&&(this.clearDynamicPropsCache(n),this.removePropertyFromClass(n,r),n.resetAllProperties(),Ne.removeProperty(n.name,e))},i.prototype.clearDynamicPropsCache=function(t){this.dynamicPropsCache={}},i.prototype.removePropertyFromClass=function(t,e){var n=t.properties.indexOf(e);n<0||t.properties.splice(n,1)},i.prototype.fillChildrenClasses=function(t,e,n){var r=this.childrenClasses[t];if(r)for(var o=0;o<r.length;o++)(!e||r[o].creator)&&n.push(r[o]),this.fillChildrenClasses(r[o].name,e,n)},i.prototype.findClass=function(t){t=t.toLowerCase();var e=this.classes[t];if(!e){var n=this.alternativeNames[t];if(n&&n!=t)return this.findClass(n)}return e},i.prototype.isDescendantOf=function(t,e){if(!t||!e)return!1;t=t.toLowerCase(),e=e.toLowerCase();var n=this.findClass(t);if(!n)return!1;var r=n;do{if(r.name===e)return!0;r=this.classes[r.parentName]}while(r);return!1},i.prototype.addAlterNativeClassName=function(t,e){this.alternativeNames[e.toLowerCase()]=t.toLowerCase()},i.prototype.generateSchema=function(t){t===void 0&&(t=void 0),t||(t="survey");var e=this.findClass(t);if(!e)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(e,n,n.definitions,!0),n},i.prototype.generateLocStrClass=function(){var t={},e=x.findProperty("survey","locale");if(e){var n=e.getChoices(null);Array.isArray(n)&&(n.indexOf("en")<0&&n.splice(0,0,"en"),n.splice(0,0,"default"),n.forEach(function(r){r&&(t[r]={type:"string"})}))}return{$id:"locstring",type:"object",properties:t}},i.prototype.generateSchemaProperties=function(t,e,n,r){if(t){var o=e.properties,s=[];t.name==="question"&&(o.type={type:"string"},s.push("type"));for(var a=0;a<t.properties.length;a++){var l=t.properties[a];l.isSerializable!==!1&&(t.parentName&&x.findProperty(t.parentName,l.name)||(o[l.name]=this.generateSchemaProperty(l,n,r),l.isRequired&&s.push(l.name)))}s.length>0&&(e.required=s)}},i.prototype.generateSchemaProperty=function(t,e,n){if(t.isLocalizable)return{oneOf:[{type:"string"},{$ref:this.getChemeRefName("locstring",n)}]};var r=t.schemaType(),o=t.schemaRef(),s={};if(r&&(s.type=r),t.hasChoices){var a=t.getChoices(null);Array.isArray(a)&&a.length>0&&(s.enum=this.getChoicesValues(a))}if(o&&(r==="array"?t.className==="string"?s.items={type:t.className}:s.items={$ref:this.getChemeRefName(t.className,n)}:s.$ref=this.getChemeRefName(o,n),this.generateChemaClass(t.className,e,!1)),t.baseClassName){var l=this.getChildrenClasses(t.baseClassName,!0);t.baseClassName=="question"&&l.push(this.findClass("panel")),s.items={anyOf:[]};for(var u=0;u<l.length;u++){var d=l[u].name;s.items.anyOf.push({$ref:this.getChemeRefName(d,n)}),this.generateChemaClass(d,e,!1)}}return s},i.prototype.getChemeRefName=function(t,e){return e?"#/definitions/"+t:t},i.prototype.generateChemaClass=function(t,e,n){if(!e[t]){var r=this.findClass(t);if(r){var o=!!r.parentName&&r.parentName!="base";o&&this.generateChemaClass(r.parentName,e,n);var s={type:"object",$id:t};e[t]=s;var a={properties:{}};this.generateSchemaProperties(r,a,e,n),o?s.allOf=[{$ref:this.getChemeRefName(r.parentName,n)},{properties:a.properties}]:s.properties=a.properties,Array.isArray(a.required)&&(s.required=a.required)}}},i.prototype.getChoicesValues=function(t){var e=new Array;return t.forEach(function(n){typeof n=="object"&&n.value!==void 0?e.push(n.value):e.push(n)}),e},i}(),dt=function(){function i(t,e){this.type=t,this.message=e,this.description="",this.at=-1,this.end=-1}return i.prototype.getFullDescription=function(){return this.message+(this.description?` +`+this.description:"")},i}(),Li=function(i){Ze(t,i);function t(e,n){var r=i.call(this,"unknownproperty","Unknown property in class '"+n+"': '"+e+"'.")||this;return r.propertyName=e,r.className=n,r}return t}(dt),Bn=function(i){Ze(t,i);function t(e,n,r){var o=i.call(this,n,r)||this;return o.baseClassName=e,o.type=n,o.message=r,o}return t}(dt),Mi=function(i){Ze(t,i);function t(e,n){var r=i.call(this,n,"missingtypeproperty","The property type is missing in the object. Please take a look at property: '"+e+"'.")||this;return r.propertyName=e,r.baseClassName=n,r}return t}(Bn),ji=function(i){Ze(t,i);function t(e,n){var r=i.call(this,n,"incorrecttypeproperty","The property type is incorrect in the object. Please take a look at property: '"+e+"'.")||this;return r.propertyName=e,r.baseClassName=n,r}return t}(Bn),Ni=function(i){Ze(t,i);function t(e,n){var r=i.call(this,"requiredproperty","The property '"+e+"' is required in class '"+n+"'.")||this;return r.propertyName=e,r.className=n,r}return t}(dt),sl=function(i){Ze(t,i);function t(e,n){var r=i.call(this,"arrayproperty","The property '"+e+"' should be an array in '"+n+"'.")||this;return r.propertyName=e,r.className=n,r}return t}(dt),al=function(i){Ze(t,i);function t(e,n){var r=i.call(this,"incorrectvalue","The property value: '"+n+"' is incorrect for property '"+e.name+"'.")||this;return r.property=e,r.value=n,r}return t}(dt),fe=function(){function i(){this.errors=new Array,this.lightSerializing=!1}return Object.defineProperty(i,"metaData",{get:function(){return i.metaDataValue},enumerable:!1,configurable:!0}),i.prototype.toJsonObject=function(t,e){return this.toJsonObjectCore(t,null,e)},i.prototype.toObject=function(t,e,n){this.toObjectCore(t,e,n);var r=this.getRequiredError(e,t);r&&this.addNewError(r,t,e)},i.prototype.toObjectCore=function(t,e,n){if(t){var r=null,o=void 0,s=!0;if(e.getType&&(o=e.getType(),r=x.getProperties(o),s=!!o&&!x.isDescendantOf(o,"itemvalue")),!!r){e.startLoadingFromJson&&e.startLoadingFromJson(t),r=this.addDynamicProperties(e,t,r),this.options=n;var a={};a[i.typePropertyName]=!0;var l={};for(var u in t)this.setPropertyValueToObj(t,e,u,r,a,l,o,s,n);this.options=void 0,e.endLoadingFromJson&&e.endLoadingFromJson()}}},i.prototype.setPropertyValueToObj=function(t,e,n,r,o,s,a,l,u){var d=this;if(!o[n]){if(n===i.positionPropertyName){e[n]=t[n];return}var v=this.findProperty(r,n);if(!v&&l&&this.addNewError(new Li(n.toString(),a),t,e),v){var V=v.dependsOn;Array.isArray(V)&&(s[n]=!0,V.forEach(function(T){s[T]||d.setPropertyValueToObj(t,e,T,r,o,s,a,!1,u)})),this.valueToObj(t[n],e,v,t,u),o[n]=!0}}},i.prototype.toJsonObjectCore=function(t,e,n){if(!t||!t.getType)return t;if(!t.isSurvey&&typeof t.getData=="function")return t.getData();var r={};e!=null&&!e.className&&(r[i.typePropertyName]=e.getObjType(t.getType()));var o=n===!0;return(!n||n===!0)&&(n={}),o&&(n.storeDefaults=o),this.propertiesToJson(t,x.getProperties(t.getType()),r,n),this.propertiesToJson(t,this.getDynamicProperties(t),r,n),r},i.prototype.getDynamicProperties=function(t){return x.getDynamicPropertiesByObj(t)},i.prototype.addDynamicProperties=function(t,e,n){if(!t.getDynamicPropertyName&&!t.getDynamicProperties)return n;if(t.getDynamicPropertyName){var r=t.getDynamicPropertyName();if(!r)return n;r&&e[r]&&(t[r]=e[r])}var o=this.getDynamicProperties(t);return o.length===0?n:[].concat(n).concat(o)},i.prototype.propertiesToJson=function(t,e,n,r){for(var o=0;o<e.length;o++)this.valueToJson(t,n,e[o],r)},i.prototype.valueToJson=function(t,e,n,r){r||(r={}),!(n.isSerializable===!1||n.isLightSerializable===!1&&this.lightSerializing)&&(r.version&&!n.isAvailableInVersion(r.version)||this.valueToJsonCore(t,e,n,r))},i.prototype.valueToJsonCore=function(t,e,n,r){var o=n.getSerializedProperty(t,r.version);if(o&&o!==n){this.valueToJsonCore(t,e,o,r);return}var s=n.getSerializableValue(t,r.storeDefaults);if(s!==void 0){if(this.isValueArray(s)){for(var a=[],l=0;l<s.length;l++)a.push(this.toJsonObjectCore(s[l],n,r));s=a.length>0?a:null}else s=this.toJsonObjectCore(s,n,r);if(s!=null){var u=n.getSerializedName(r.version),d=typeof t.getPropertyValue=="function"&&t.getPropertyValue(u,null)!==null;(r.storeDefaults&&d||!n.isDefaultValueByObj(t,s))&&(!x.onSerializingProperty||!x.onSerializingProperty(t,n,s,e))&&(e[u]=this.removePosOnValueToJson(n,s))}}},i.prototype.valueToObj=function(t,e,n,r,o){if(t!=null){if(this.removePos(n,t),n!=null&&n.hasToUseSetValue){n.setValue(e,t,this);return}if(n.isArray&&!Array.isArray(t)&&t){t=[t];var s=r&&n.alternativeName&&r[n.alternativeName]?n.alternativeName:n.name;this.addNewError(new sl(s,e.getType()),r||t,e)}if(this.isValueArray(t)){this.valueToArray(t,e,n.name,n,o);return}var a=this.createNewObj(t,n);a.newObj&&(this.toObjectCore(t,a.newObj,o),t=a.newObj),a.error||(n!=null?(n.setValue(e,t,this),o&&o.validatePropertyValues&&(n.validateValue(t)||this.addNewError(new al(n,t),r,e))):e[n.name]=t)}},i.prototype.removePosOnValueToJson=function(t,e){return!t.isCustom||!e||this.removePosFromObj(e),e},i.prototype.removePos=function(t,e){!t||!t.type||t.type.indexOf("value")<0||this.removePosFromObj(e)},i.prototype.removePosFromObj=function(t){if(!(!t||typeof t.getType=="function")){if(Array.isArray(t))for(var e=0;e<t.length;e++)this.removePosFromObj(t[e]);if(typeof t=="object"){t[i.positionPropertyName]&&delete t[i.positionPropertyName];for(var n in t)this.removePosFromObj(t[n])}}},i.prototype.isValueArray=function(t){return t&&Array.isArray(t)},i.prototype.createNewObj=function(t,e){var n={newObj:null,error:null},r=this.getClassNameForNewObj(t,e);return n.newObj=r?x.createClass(r,t):null,n.error=this.checkNewObjectOnErrors(n.newObj,t,e,r),n},i.prototype.getClassNameForNewObj=function(t,e){var n=e!=null&&e.className?e.className:void 0;if(n||(n=t[i.typePropertyName]),!n)return n;n=n.toLowerCase();var r=e.classNamePart;return r&&n.indexOf(r)<0&&(n+=r),n},i.prototype.checkNewObjectOnErrors=function(t,e,n,r){var o=null;return t?o=this.getRequiredError(t,e):n.baseClassName&&(r?o=new ji(n.name,n.baseClassName):o=new Mi(n.name,n.baseClassName)),o&&this.addNewError(o,e,t),o},i.prototype.getRequiredError=function(t,e){if(!t.getType||typeof t.getData=="function")return null;var n=x.findClass(t.getType());if(!n)return null;var r=n.getRequiredProperties();if(!Array.isArray(r))return null;for(var o=0;o<r.length;o++){var s=r[o];if(P.isValueEmpty(s.defaultValue)&&!e[s.name])return new Ni(s.name,t.getType())}return null},i.prototype.addNewError=function(t,e,n){if(t.jsonObj=e,t.element=n,this.errors.push(t),!!e){var r=e[i.positionPropertyName];r&&(t.at=r.start,t.end=r.end)}},i.prototype.valueToArray=function(t,e,n,r,o){if(!(e[n]&&!this.isValueArray(e[n]))){e[n]&&t.length>0&&e[n].splice(0,e[n].length);var s=e[n]?e[n]:[];this.addValuesIntoArray(t,s,r,o),e[n]||(e[n]=s)}},i.prototype.addValuesIntoArray=function(t,e,n,r){for(var o=0;o<t.length;o++){var s=this.createNewObj(t[o],n);s.newObj?(t[o].name&&(s.newObj.name=t[o].name),t[o].valueName&&(s.newObj.valueName=t[o].valueName.toString()),e.push(s.newObj),this.toObjectCore(t[o],s.newObj,r)):s.error||e.push(t[o])}},i.prototype.findProperty=function(t,e){if(!t)return null;for(var n=0;n<t.length;n++){var r=t[n];if(r.name==e||r.alternativeName==e)return r}return null},i.typePropertyName="type",i.positionPropertyName="pos",i.metaDataValue=new Di,i}(),x=fe.metaData,Fi="@survey",me=function(){function i(){this.values=null,this.properties=null,this.asyncValues={}}return i.prototype.getFirstName=function(t,e){if(e===void 0&&(e=null),!t)return t;var n="";if(e&&(n=this.getFirstPropertyName(t,e),n))return n;for(var r=0;r<t.length;r++){var o=t[r];if(o=="."||o=="[")break;n+=o}return n},i.prototype.hasValue=function(t,e){e===void 0&&(e=null),e||(e=this.values);var n=this.getValueCore(t,e);return n.hasValue},i.prototype.getValue=function(t,e){e===void 0&&(e=null),e||(e=this.values);var n=this.getValueCore(t,e);return n.value},i.prototype.setValue=function(t,e,n){if(e){var r=this.getNonNestedObject(t,e,!0);r&&(t=r.value,e=r.text,t&&e&&(t[e]=n))}},i.prototype.getValueInfo=function(t){if(t.path){t.value=this.getValueFromPath(t.path,this.values),t.hasValue=t.value!==null&&!P.isValueEmpty(t.value),!t.hasValue&&t.path.length>1&&t.path[t.path.length-1]=="length"&&(t.hasValue=!0,t.value=0);return}var e=this.getValueCore(t.name,this.values);t.value=e.value,t.hasValue=e.hasValue,t.path=e.hasValue?e.path:null,t.sctrictCompare=e.sctrictCompare},i.prototype.isAnyKeyChanged=function(t,e){for(var n=0;n<e.length;n++){var r=e[n];if(r){var o=r.toLowerCase();if(t.hasOwnProperty(r)||r!==o&&t.hasOwnProperty(o))return!0;var s=this.getFirstName(r);if(t.hasOwnProperty(s)){if(r===s)return!0;var a=t[s];if(a!=null){if(!a.hasOwnProperty("oldValue")||!a.hasOwnProperty("newValue"))return!0;var l={};l[s]=a.oldValue;var u=this.getValue(r,l);l[s]=a.newValue;var d=this.getValue(r,l);if(!P.isTwoValueEquals(u,d,!1,!1,!1))return!0}}}}return!1},i.prototype.getValueFromPath=function(t,e){if(t.length===2&&t[0]===Fi)return this.getValueFromSurvey(t[1]);for(var n=0;e&&n<t.length;){var r=t[n];if(P.isNumber(r)&&Array.isArray(e)&&r>=e.length)return null;e=e[r],n++}return e},i.prototype.getValueCore=function(t,e){var n=this.getQuestionDirectly(t);if(n)return{hasValue:!0,value:n.value,path:[t],sctrictCompare:n.requireStrictCompare};var r=this.getValueFromValues(t,e);if(t&&!r.hasValue){var o=this.getValueFromSurvey(t);o!==void 0&&(r.hasValue=!0,r.value=o,r.path=[Fi,t])}return r},i.prototype.getQuestionDirectly=function(t){if(this.properties&&this.properties.survey)return this.properties.survey.getQuestionByValueName(t)},i.prototype.getValueFromSurvey=function(t){if(this.properties&&this.properties.survey)return this.properties.survey.getBuiltInVariableValue(t.toLocaleLowerCase())},i.prototype.getValueFromValues=function(t,e){var n={hasValue:!1,value:null,path:null},r=e;if(!r&&r!==0&&r!==!1)return n;t&&t.lastIndexOf(".length")>-1&&t.lastIndexOf(".length")===t.length-7&&(n.value=0,n.hasValue=!0);var o=this.getNonNestedObject(r,t,!1);return o&&(n.path=o.path,n.value=o.text?this.getObjectValue(o.value,o.text):o.value,n.hasValue=!P.isValueEmpty(n.value)),n},i.prototype.getNonNestedObject=function(t,e,n){for(var r=new Array,o=0,s=this.getNonNestedObjectCore(t,e,n,r);!s&&o<r.length;)o=r.length,s=this.getNonNestedObjectCore(t,e,n,r);return s},i.prototype.getNonNestedObjectCore=function(t,e,n,r){var o=this.getFirstPropertyName(e,t,n,r);o&&r.push(o);for(var s=o?[o]:null;e!=o&&t;){var a=e[0]=="[";if(a){var l=this.getObjInArray(t,e);if(!l)return null;t=l.value,e=l.text,s.push(l.index)}else{if(!o&&e==this.getFirstName(e))return{value:t,text:e,path:s};if(t=this.getObjectValue(t,o),P.isValueEmpty(t)&&!n)return null;e=e.substring(o.length)}e&&e[0]=="."&&(e=e.substring(1)),o=this.getFirstPropertyName(e,t,n,r),o&&s.push(o)}return{value:t,text:e,path:s}},i.prototype.getObjInArray=function(t,e){if(!Array.isArray(t))return null;for(var n=1,r="";n<e.length&&e[n]!="]";)r+=e[n],n++;return e=n<e.length?e.substring(n+1):"",n=this.getIntValue(r),n<0||n>=t.length?null:{value:t[n],text:e,index:n}},i.prototype.getFirstPropertyName=function(t,e,n,r){if(n===void 0&&(n=!1),r===void 0&&(r=void 0),!t||(e||(e={}),e.hasOwnProperty(t)))return t;var o=t.toLowerCase(),s=o[0],a=s.toUpperCase();for(var l in e)if(!(Array.isArray(r)&&r.indexOf(l)>-1)){var u=l[0];if(u===a||u===s){var d=l.toLowerCase();if(d==o)return l;if(o.length<=d.length)continue;var v=o[d.length];if(v!="."&&v!="[")continue;if(d==o.substring(0,d.length))return l}}if(n&&t[0]!=="["){var V=t.indexOf(".");return V>-1&&(t=t.substring(0,V),e[t]={}),t}return""},i.prototype.getObjectValue=function(t,e){return e?t[e]:null},i.prototype.getIntValue=function(t){return t=="0"||(t|0)>0&&t%1==0?Number(t):-1},i}(),Fe=function(){function i(){}return i.disposedObjectChangedProperty=function(t,e){i.warn('An attempt to set a property "'+t+'" of a disposed object "'+e+'"')},i.inCorrectQuestionValue=function(t,e){var n=JSON.stringify(e,null,3);i.warn("An attempt to assign an incorrect value"+n+' to the following question: "'+t+'"')},i.warn=function(t){console.warn(t)},i.error=function(t){console.error(t)},i}(),U=function(){function i(){this.functionHash={},this.isAsyncHash={}}return i.prototype.register=function(t,e,n){n===void 0&&(n=!1),this.functionHash[t]=e,n&&(this.isAsyncHash[t]=!0)},i.prototype.unregister=function(t){delete this.functionHash[t],delete this.isAsyncHash[t]},i.prototype.hasFunction=function(t){return!!this.functionHash[t]},i.prototype.isAsyncFunction=function(t){return!!this.isAsyncHash[t]},i.prototype.clear=function(){this.functionHash={}},i.prototype.getAll=function(){var t=[];for(var e in this.functionHash)t.push(e);return t.sort()},i.prototype.run=function(t,e,n,r){n===void 0&&(n=null);var o=this.functionHash[t];if(!o)return Fe.warn("Unknown function name: "+t),null;var s={func:o};if(n)for(var a in n)s[a]=n[a];return s.func(e,r)},i.Instance=new i,i}(),ll=U.Instance.register;function St(i,t){if(i!=null)if(Array.isArray(i))for(var e=0;e<i.length;e++)St(i[e],t);else P.isNumber(i)&&(i=P.getNumber(i)),t.push(i)}function _i(i){var t=[];St(i,t);for(var e=0,n=0;n<t.length;n++)e=P.correctAfterPlusMinis(e,t[n],e+t[n]);return e}U.Instance.register("sum",_i);function Bi(i,t){var e=[];St(i,e);for(var n=void 0,r=0;r<e.length;r++)n===void 0&&(n=e[r]),t?n>e[r]&&(n=e[r]):n<e[r]&&(n=e[r]);return n}function ul(i){return Bi(i,!0)}U.Instance.register("min",ul);function cl(i){return Bi(i,!1)}U.Instance.register("max",cl);function fl(i){var t=[];return St(i,t),t.length}U.Instance.register("count",fl);function pl(i){var t=[];St(i,t);var e=_i(i);return t.length>0?e/t.length:0}U.Instance.register("avg",pl);function dl(i,t){if(i.length<2||i.length>3)return null;var e=i[0];if(!e||!Array.isArray(e)&&!Array.isArray(Object.keys(e)))return null;var n=i[1];if(typeof n!="string"&&!(n instanceof String))return null;var r=i.length>2?i[2]:void 0;if(typeof r!="string"&&!(r instanceof String)&&(r=void 0),!r){var o=Array.isArray(t)&&t.length>2?t[2]:void 0;o&&o.toString()&&(r=o.toString())}return{data:e,name:n,expression:r}}function hl(i){return typeof i=="string"?P.isNumber(i)?P.getNumber(i):void 0:i}function ki(i,t,e,n,r,o){if(!i||P.isValueEmpty(i[t])||o&&!o.run(i))return e;var s=r?hl(i[t]):1;return n(e,s)}function Kt(i,t,e,n){n===void 0&&(n=!0);var r=dl(i,t);if(r){var o=r.expression?new de(r.expression):void 0;o&&o.isAsync&&(o=void 0);var s=void 0;if(Array.isArray(r.data))for(var a=0;a<r.data.length;a++)s=ki(r.data[a],r.name,s,e,n,o);else for(var l in r.data)s=ki(r.data[l],r.name,s,e,n,o);return s}}function qi(i,t){var e=Kt(i,t,function(n,r){return n==null&&(n=0),r==null||r==null?n:P.correctAfterPlusMinis(n,r,n+r)});return e!==void 0?e:0}U.Instance.register("sumInArray",qi);function gl(i,t){return Kt(i,t,function(e,n){return e==null?n:n==null||n==null||e<n?e:n})}U.Instance.register("minInArray",gl);function yl(i,t){return Kt(i,t,function(e,n){return e==null?n:n==null||n==null||e>n?e:n})}U.Instance.register("maxInArray",yl);function Qi(i,t){var e=Kt(i,t,function(n,r){return n==null&&(n=0),r==null||r==null?n:n+1},!1);return e!==void 0?e:0}U.Instance.register("countInArray",Qi);function ml(i,t){var e=Qi(i,t);return e==0?0:qi(i,t)/e}U.Instance.register("avgInArray",ml);function vl(i){return!i&&i.length!==3?"":i[0]?i[1]:i[2]}U.Instance.register("iif",vl);function bl(i){return!i&&i.length<1||!i[0]?null:Z("function-getDate",i[0])}U.Instance.register("getDate",bl);function zi(i,t,e){if(e==="days")return Wi([i,t]);var n=Z("function-dateDiffMonths",i),r=Z("function-dateDiffMonths",t),o=r.getFullYear()-n.getFullYear();e=e||"years";var s=o*12+r.getMonth()-n.getMonth();return r.getDate()<n.getDate()&&(s-=1),e==="months"?s:~~(s/12)}function Cl(i){return!Array.isArray(i)||i.length<1||!i[0]?null:zi(i[0],void 0,(i.length>1?i[1]:"")||"years")}U.Instance.register("age",Cl);function Pl(i){return!Array.isArray(i)||i.length<2||!i[0]||!i[1]?null:zi(i[0],i[1],(i.length>2?i[2]:"")||"days")}U.Instance.register("dateDiff",Pl);function Vl(i){if(!Array.isArray(i)||i.length<2||!i[0]||!i[1])return null;var t=Z("function-dateAdd",i[0]),e=i[1],n=i[2]||"days";return n==="days"&&t.setDate(t.getDate()+e),n==="months"&&t.setMonth(t.getMonth()+e),n==="years"&&t.setFullYear(t.getFullYear()+e),t}U.Instance.register("dateAdd",Vl);function Hi(i){if(!i)return!1;for(var t=i.questions,e=0;e<t.length;e++)if(!t[e].validate(!1))return!1;return!0}function wl(i){if(!i&&i.length<1||!i[0]||!this.survey)return!1;var t=i[0],e=this.survey.getPageByName(t);if(e||(e=this.survey.getPanelByName(t)),!e){var n=this.survey.getQuestionByName(t);if(!n||!Array.isArray(n.panels))return!1;if(i.length>1)i[1]<n.panels.length&&(e=n.panels[i[1]]);else{for(var r=0;r<n.panels.length;r++)if(!Hi(n.panels[r]))return!1;return!0}}return Hi(e)}U.Instance.register("isContainerReady",wl);function xl(){return this.survey&&this.survey.isDisplayMode}U.Instance.register("isDisplayMode",xl);function Ol(){return Z("function-currentDate")}U.Instance.register("currentDate",Ol);function Ui(i){var t=Z("function-today");return b.localization.useLocalTimeZone?t.setHours(0,0,0,0):t.setUTCHours(0,0,0,0),Array.isArray(i)&&i.length==1&&t.setDate(t.getDate()+i[0]),t}U.Instance.register("today",Ui);function Sl(i){if(!(i.length!==1||!i[0]))return Z("function-getYear",i[0]).getFullYear()}U.Instance.register("getYear",Sl);function Tl(){return Z("function-currentYear").getFullYear()}U.Instance.register("currentYear",Tl);function Wi(i){if(!Array.isArray(i)||i.length!==2||!i[0]||!i[1])return 0;var t=Z("function-diffDays",i[0]),e=Z("function-diffDays",i[1]),n=Math.abs(e-t);return Math.ceil(n/(1e3*60*60*24))}U.Instance.register("diffDays",Wi);function Yt(i,t){var e=Ui(void 0);return t&&t[0]&&(e=Z("function-"+i,t[0])),e}function Rl(i){var t=Yt("year",i);return t.getFullYear()}U.Instance.register("year",Rl);function El(i){var t=Yt("month",i);return t.getMonth()+1}U.Instance.register("month",El);function Il(i){var t=Yt("day",i);return t.getDate()}U.Instance.register("day",Il);function Al(i){var t=Yt("weekday",i);return t.getDay()}U.Instance.register("weekday",Al);function $i(i,t){if(!(!i||!t)){for(var e=i.question;e&&e.parent;){var n=e.parent.getQuestionByName(t);if(n)return n;e=e.parentQuestion}for(var r=["row","panel","survey"],o=0;o<r.length;o++){var s=i[r[o]];if(s&&s.getQuestionByName){var n=s.getQuestionByName(t);if(n)return n}}return null}}function Ji(i,t){return t.length>1&&!P.isValueEmpty(t[1])?i.getDisplayValue(!0,t[1]):i.displayValue}function Dl(i){var t=this,e=$i(this,i[0]);if(!e)return"";if(e.isReady)this.returnResult(Ji(e,i));else{var n=function(r,o){r.isReady&&(r.onReadyChanged.remove(n),t.returnResult(Ji(r,i)))};e.onReadyChanged.add(n)}}U.Instance.register("displayValue",Dl,!0);function Ll(i){if(!(i.length!==2||!i[0]||!i[1])){var t=$i(this,i[0]);return t?t[i[1]]:void 0}}U.Instance.register("propertyValue",Ll);function Ml(i){if(i.length<2)return"";var t=i[0];if(!t||typeof t!="string")return"";var e=i[1];if(!P.isNumber(e))return"";var n=i.length>2?i[2]:void 0;return P.isNumber(n)?t.substring(e,n):t.substring(e)}U.Instance.register("substring",Ml);var ht=function(){var i=function(t,e){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(n[o]=r[o])},i(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");i(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),gt=function(){function i(){this._id=i.counter++}return Object.defineProperty(i.prototype,"id",{get:function(){return this._id},enumerable:!1,configurable:!0}),i.prototype.toString=function(t){return""},i.prototype.hasFunction=function(){return!1},i.prototype.hasAsyncFunction=function(){return!1},i.prototype.addToAsyncList=function(t){},i.prototype.isEqual=function(t){return!!t&&t.getType()===this.getType()&&this.isContentEqual(t)},i.prototype.areOperatorsEquals=function(t,e){return!t&&!e||!!t&&t.isEqual(e)},i.counter=1,i}(),Gi=function(i){ht(t,i);function t(e,n,r,o){n===void 0&&(n=null),r===void 0&&(r=null),o===void 0&&(o=!1);var s=i.call(this)||this;return s.operatorName=e,s.left=n,s.right=r,s.isArithmeticValue=o,o?s.consumer=Oe.binaryFunctions.arithmeticOp(e):s.consumer=Oe.binaryFunctions[e],s.consumer==null&&Oe.throwInvalidOperatorError(e),s}return 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 this.operatorName=="or"||this.operatorName=="and"},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 n=e;return n.operator===this.operator&&this.areOperatorsEquals(this.left,n.left)&&this.areOperatorsEquals(this.right,n.right)},t.prototype.evaluateParam=function(e,n){return e==null?null:e.evaluate(n)},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(e===void 0&&(e=void 0),e){var n=e(this);if(n)return n}return"("+Oe.safeToString(this.left,e)+" "+Oe.operatorToString(this.operatorName)+" "+Oe.safeToString(this.right,e)+")"},t.prototype.setVariables=function(e){this.left!=null&&this.left.setVariables(e),this.right!=null&&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}(gt),kn=function(i){ht(t,i);function t(e,n){var r=i.call(this)||this;return r.expressionValue=e,r.operatorName=n,r.consumer=Oe.unaryFunctions[n],r.consumer==null&&Oe.throwInvalidOperatorError(n),r}return 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(e===void 0&&(e=void 0),e){var n=e(this);if(n)return n}return Oe.operatorToString(this.operatorName)+" "+this.expression.toString(e)},t.prototype.isContentEqual=function(e){var n=e;return n.operator==this.operator&&this.areOperatorsEquals(this.expression,n.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 n=this.expression.evaluate(e);return this.consumer.call(this,n)},t.prototype.setVariables=function(e){this.expression.setVariables(e)},t}(gt),Xt=function(i){ht(t,i);function t(e){var n=i.call(this)||this;return n.values=e,n}return t.prototype.getType=function(){return"array"},t.prototype.toString=function(e){if(e===void 0&&(e=void 0),e){var n=e(this);if(n)return n}return"["+this.values.map(function(r){return r.toString(e)}).join(", ")+"]"},t.prototype.evaluate=function(e){return this.values.map(function(n){return n.evaluate(e)})},t.prototype.setVariables=function(e){this.values.forEach(function(n){n.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(n){return n.addToAsyncList(e)})},t.prototype.isContentEqual=function(e){var n=e;if(n.values.length!==this.values.length)return!1;for(var r=0;r<this.values.length;r++)if(!n.values[r].isEqual(this.values[r]))return!1;return!0},t}(gt),qn=function(i){ht(t,i);function t(e){var n=i.call(this)||this;return n.value=e,n}return t.prototype.getType=function(){return"const"},t.prototype.toString=function(e){if(e===void 0&&(e=void 0),e){var n=e(this);if(n)return n}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){if(!e||typeof e!="string")return e;if(Oe.isBooleanValue(e))return e.toLowerCase()==="true";if(e.length>1&&this.isQuote(e[0])&&this.isQuote(e[e.length-1]))return e.substring(1,e.length-1);if(P.isNumber(e)){if(e[0]==="0"&&e.indexOf("0x")!=0){var n=e.length,r=n>1&&(e[1]==="."||e[1]===",");if(!r&&n>1||r&&n<2)return e}return P.getNumber(e)}return e},t.prototype.isContentEqual=function(e){var n=e;return n.value==this.value},t.prototype.isQuote=function(e){return e=="'"||e=='"'},t}(gt),Ki=function(i){ht(t,i);function t(e){var n=i.call(this,e)||this;return n.variableName=e,n.valueInfo={},n.useValueAsItIs=!1,n.variableName&&n.variableName.length>1&&n.variableName[0]===t.DisableConversionChar&&(n.variableName=n.variableName.substring(1),n.useValueAsItIs=!0),n}return Object.defineProperty(t,"DisableConversionChar",{get:function(){return b.expressionDisableConversionChar},set:function(e){b.expressionDisableConversionChar=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"requireStrictCompare",{get:function(){return this.valueInfo.sctrictCompare===!0},enumerable:!1,configurable:!0}),t.prototype.getType=function(){return"variable"},t.prototype.toString=function(e){if(e===void 0&&(e=void 0),e){var n=e(this);if(n)return n}var r=this.useValueAsItIs?t.DisableConversionChar:"";return"{"+r+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(e){return this.useValueAsItIs?e:i.prototype.getCorrectValue.call(this,e)},t.prototype.isContentEqual=function(e){var n=e;return n.variable==this.variable},t}(qn),Yi=function(i){ht(t,i);function t(e,n){var r=i.call(this)||this;return r.originalValue=e,r.parameters=n,Array.isArray(n)&&n.length===0&&(r.parameters=new Xt([])),r}return t.prototype.getType=function(){return"function"},t.prototype.evaluate=function(e){var n=this.getAsynValue(e);return n?n.value:this.evaluateCore(e)},t.prototype.evaluateCore=function(e){var n=e.properties;if(this.isAsyncFunction){n=P.createCopy(e.properties);var r=this.id,o=e.asyncValues,s=e.onCompleteAsyncFunc,a=this;n.returnResult=function(l){o[r]={value:l},s(a)}}return U.Instance.run(this.originalValue,this.parameters.evaluate(e),n,this.parameters.values)},t.prototype.toString=function(e){if(e===void 0&&(e=void 0),e){var n=e(this);if(n)return n}return this.originalValue+"("+this.parameters.toString(e)+")"},t.prototype.setVariables=function(e){this.parameters.setVariables(e)},t.prototype.isReady=function(e){return!!this.getAsynValue(e)},t.prototype.getAsynValue=function(e){return e.asyncValues[this.id]},t.prototype.hasFunction=function(){return!0},t.prototype.hasAsyncFunction=function(){return this.isAsyncFunction()||this.parameters.hasAsyncFunction()},t.prototype.isAsyncFunction=function(){return U.Instance.isAsyncFunction(this.originalValue)},t.prototype.addToAsyncList=function(e){var n=void 0;if(this.isAsyncFunction()&&(n={operand:this}),this.parameters.hasAsyncFunction()){var r=new Array;this.parameters.addToAsyncList(r),r.forEach(function(o){return o.parent=n}),n||(n={}),n.children=r}n&&e.push(n)},t.prototype.isContentEqual=function(e){var n=e;return n.originalValue==this.originalValue&&this.areOperatorsEquals(n.parameters,this.parameters)},t}(gt),Oe=function(){function i(){}return i.throwInvalidOperatorError=function(t){throw new Error("Invalid operator: '"+t+"'")},i.safeToString=function(t,e){return t==null?"":t.toString(e)},i.toOperandString=function(t){return t&&!P.isNumber(t)&&!i.isBooleanValue(t)&&(t="'"+t+"'"),t},i.isBooleanValue=function(t){return!!t&&(t.toLowerCase()==="true"||t.toLowerCase()==="false")},i.countDecimals=function(t){if(P.isNumber(t)&&Math.floor(t)!==t){var e=t.toString().split(".");return e.length>1&&e[1].length||0}return 0},i.plusMinus=function(t,e,n){var r=i.countDecimals(t),o=i.countDecimals(e);if(r>0||o>0){var s=Math.max(r,o);n=parseFloat(n.toFixed(s))}return n},i.isTwoValueEquals=function(t,e,n){return n===void 0&&(n=!0),t==="undefined"&&(t=void 0),e==="undefined"&&(e=void 0),P.isTwoValueEquals(t,e,n)},i.operatorToString=function(t){var e=i.signs[t];return e??t},i.convertValForDateCompare=function(t,e){if(e instanceof Date&&typeof t=="string"){var n=Z("expression-operand",t);return n.setHours(0,0,0),n}return t},i.unaryFunctions={empty:function(t){return P.isValueEmpty(t)},notempty:function(t){return!i.unaryFunctions.empty(t)},negate:function(t){return!t}},i.binaryFunctions={arithmeticOp:function(t){var e=function(n,r){return P.isValueEmpty(n)?typeof r=="number"?0:typeof n=="string"?n:typeof r=="string"?"":Array.isArray(r)?[]:0:n};return function(n,r){n=e(n,r),r=e(r,n);var o=i.binaryFunctions[t];return o==null?null:o.call(this,n,r)}},and:function(t,e){return t&&e},or:function(t,e){return t||e},plus:function(t,e){return P.sumAnyValues(t,e)},minus:function(t,e){return P.correctAfterPlusMinis(t,e,t-e)},mul:function(t,e){return P.correctAfterMultiple(t,e,t*e)},div:function(t,e){return e?t/e:null},mod:function(t,e){return e?t%e:null},power:function(t,e){return Math.pow(t,e)},greater:function(t,e){return t==null||e==null?!1:(t=i.convertValForDateCompare(t,e),e=i.convertValForDateCompare(e,t),t>e)},less:function(t,e){return t==null||e==null?!1:(t=i.convertValForDateCompare(t,e),e=i.convertValForDateCompare(e,t),t<e)},greaterorequal:function(t,e){return i.binaryFunctions.equal(t,e)?!0:i.binaryFunctions.greater(t,e)},lessorequal:function(t,e){return i.binaryFunctions.equal(t,e)?!0:i.binaryFunctions.less(t,e)},equal:function(t,e,n){return t=i.convertValForDateCompare(t,e),e=i.convertValForDateCompare(e,t),i.isTwoValueEquals(t,e,n!==!0)},notequal:function(t,e,n){return!i.binaryFunctions.equal(t,e,n)},contains:function(t,e){return i.binaryFunctions.containsCore(t,e,!0)},notcontains:function(t,e){return!t&&!P.isValueEmpty(e)?!0:i.binaryFunctions.containsCore(t,e,!1)},anyof:function(t,e){if(P.isValueEmpty(t)&&P.isValueEmpty(e))return!0;if(P.isValueEmpty(t)||!Array.isArray(t)&&t.length===0)return!1;if(P.isValueEmpty(e))return!0;if(!Array.isArray(t))return i.binaryFunctions.contains(e,t);if(!Array.isArray(e))return i.binaryFunctions.contains(t,e);for(var n=0;n<e.length;n++)if(i.binaryFunctions.contains(t,e[n]))return!0;return!1},allof:function(t,e){if(!t&&!P.isValueEmpty(e))return!1;if(!Array.isArray(e))return i.binaryFunctions.contains(t,e);for(var n=0;n<e.length;n++)if(!i.binaryFunctions.contains(t,e[n]))return!1;return!0},containsCore:function(t,e,n){if(!t&&t!==0&&t!==!1)return!1;if(t.length||(t=t.toString(),(typeof e=="string"||e instanceof String)&&(t=t.toUpperCase(),e=e.toUpperCase())),typeof t=="string"||t instanceof String){if(!e)return!1;e=e.toString();var r=t.indexOf(e)>-1;return n?r:!r}for(var o=Array.isArray(e)?e:[e],s=0;s<o.length;s++){var a=0;for(e=o[s];a<t.length&&!i.isTwoValueEquals(t[a],e);a++);if(a==t.length)return!n}return n}},i.signs={less:"<",lessorequal:"<=",greater:">",greaterorequal:">=",equal:"==",notequal:"!=",plus:"+",minus:"-",mul:"*",div:"/",and:"and",or:"or",power:"^",mod:"%",negate:"!"},i}(),jl=function(){var i=function(t,e){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(n[o]=r[o])},i(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");i(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),Qn=function(i){jl(t,i);function t(e,n,r,o){var s=i.call(this)||this;return s.message=e,s.expected=n,s.found=r,s.location=o,s.name="SyntaxError",typeof Error.captureStackTrace=="function"&&Error.captureStackTrace(s,t),s}return t.buildMessage=function(e,n){function r(d){return d.charCodeAt(0).toString(16).toUpperCase()}function o(d){return d.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(v){return"\\x0"+r(v)}).replace(/[\x10-\x1F\x7F-\x9F]/g,function(v){return"\\x"+r(v)})}function s(d){return d.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(v){return"\\x0"+r(v)}).replace(/[\x10-\x1F\x7F-\x9F]/g,function(v){return"\\x"+r(v)})}function a(d){switch(d.type){case"literal":return'"'+o(d.text)+'"';case"class":var v=d.parts.map(function(V){return Array.isArray(V)?s(V[0])+"-"+s(V[1]):s(V)});return"["+(d.inverted?"^":"")+v+"]";case"any":return"any character";case"end":return"end of input";case"other":return d.description}}function l(d){var v=d.map(a),V,T;if(v.sort(),v.length>0){for(V=1,T=1;V<v.length;V++)v[V-1]!==v[V]&&(v[T]=v[V],T++);v.length=T}switch(v.length){case 1:return v[0];case 2:return v[0]+" or "+v[1];default:return v.slice(0,-1).join(", ")+", or "+v[v.length-1]}}function u(d){return d?'"'+o(d)+'"':"end of input"}return"Expected "+l(e)+" but "+u(n)+" found."},t}(Error);function Nl(i,t){t=t!==void 0?t:{};var e={},n={Expression:pt},r=pt,o=function(c,p){return Za(c,p,!0)},s="||",a=q("||",!1),l="or",u=q("or",!0),d=function(){return"or"},v="&&",V=q("&&",!1),T="and",R=q("and",!0),N=function(){return"and"},j=function(c,p){return Za(c,p)},A="<=",Q=q("<=",!1),re="lessorequal",ie=q("lessorequal",!0),xe=function(){return"lessorequal"},Re=">=",wt=q(">=",!1),ct="greaterorequal",Ff=q("greaterorequal",!0),_f=function(){return"greaterorequal"},ia="==",Bf=q("==",!1),oa="equal",sa=q("equal",!0),aa=function(){return"equal"},kf="=",qf=q("=",!1),la="!=",Qf=q("!=",!1),zf="notequal",Hf=q("notequal",!0),Uf=function(){return"notequal"},Wf="<",$f=q("<",!1),Jf="less",Gf=q("less",!0),Kf=function(){return"less"},Yf=">",Xf=q(">",!1),Zf="greater",ep=q("greater",!0),tp=function(){return"greater"},np="+",rp=q("+",!1),ip=function(){return"plus"},op="-",sp=q("-",!1),ap=function(){return"minus"},lp="*",up=q("*",!1),cp=function(){return"mul"},fp="/",pp=q("/",!1),dp=function(){return"div"},hp="%",gp=q("%",!1),yp=function(){return"mod"},mp="^",vp=q("^",!1),bp="power",Cp=q("power",!0),Pp=function(){return"power"},ua="*=",Vp=q("*=",!1),wp="contains",xp=q("contains",!0),Op="contain",Sp=q("contain",!0),Tp=function(){return"contains"},Rp="notcontains",Ep=q("notcontains",!0),Ip="notcontain",Ap=q("notcontain",!0),Dp=function(){return"notcontains"},Lp="anyof",Mp=q("anyof",!0),jp=function(){return"anyof"},Np="allof",Fp=q("allof",!0),_p=function(){return"allof"},ca="(",fa=q("(",!1),pa=")",da=q(")",!1),Bp=function(c){return c},kp=function(c,p){return new Yi(c,p)},qp="!",Qp=q("!",!1),zp="negate",Hp=q("negate",!0),Up=function(c){return new kn(c,"negate")},Wp=function(c,p){return new kn(c,p)},$p="empty",Jp=q("empty",!0),Gp=function(){return"empty"},Kp="notempty",Yp=q("notempty",!0),Xp=function(){return"notempty"},ha="undefined",Zp=q("undefined",!1),ga="null",ed=q("null",!1),td=function(){return null},nd=function(c){return new qn(c)},rd="{",id=q("{",!1),od="}",sd=q("}",!1),ad=function(c){return new Ki(c)},bi=function(c){return c},ya="''",ld=q("''",!1),ma=function(){return""},va='""',ud=q('""',!1),ba="'",Ca=q("'",!1),Pa=function(c){return"'"+c+"'"},Va='"',wa=q('"',!1),cd="[",fd=q("[",!1),pd="]",dd=q("]",!1),hd=function(c){return c},xa=",",Oa=q(",",!1),gd=function(c,p){if(c==null)return new Xt([]);var C=[c];if(Array.isArray(p))for(var g=nh(p),w=3;w<g.length;w+=4)C.push(g[w]);return new Xt(C)},yd="true",md=q("true",!0),vd=function(){return!0},bd="false",Cd=q("false",!0),Pd=function(){return!1},Sa="0x",Vd=q("0x",!1),wd=function(){return parseInt(Mn(),16)},xd=/^[\-]/,Od=ft(["-"],!1,!1),Sd=function(c,p){return c==null?p:-p},Td=".",Rd=q(".",!1),Ed=function(){return parseFloat(Mn())},Id=function(){return parseInt(Mn(),10)},Ad="0",Dd=q("0",!1),Ld=function(){return 0},Ta=function(c){return c.join("")},Ra="\\'",Md=q("\\'",!1),jd=function(){return"'"},Ea='\\"',Nd=q('\\"',!1),Fd=function(){return'"'},_d=/^[^"']/,Bd=ft(['"',"'"],!0,!1),Ci=function(){return Mn()},kd=/^[^{}]/,qd=ft(["{","}"],!0,!1),Ia=/^[0-9]/,Aa=ft([["0","9"]],!1,!1),Da=/^[1-9]/,La=ft([["1","9"]],!1,!1),Ma=/^[a-zA-Z_]/,ja=ft([["a","z"],["A","Z"],"_"],!1,!1),Qd=Hd("whitespace"),Na=/^[ \t\n\r]/,Fa=ft([" "," ",` +`,"\r"],!1,!1),f=0,B=0,Dn=[{line:1,column:1}],je=0,Pi=[],D=0,F={},Ln;if(t.startRule!==void 0){if(!(t.startRule in n))throw new Error(`Can't start parsing from rule "`+t.startRule+'".');r=n[t.startRule]}function Mn(){return i.substring(B,f)}function q(c,p){return{type:"literal",text:c,ignoreCase:p}}function ft(c,p,C){return{type:"class",parts:c,inverted:p,ignoreCase:C}}function zd(){return{type:"end"}}function Hd(c){return{type:"other",description:c}}function _a(c){var p=Dn[c],C;if(p)return p;for(C=c-1;!Dn[C];)C--;for(p=Dn[C],p={line:p.line,column:p.column};C<c;)i.charCodeAt(C)===10?(p.line++,p.column=1):p.column++,C++;return Dn[c]=p,p}function Ba(c,p){var C=_a(c),g=_a(p);return{start:{offset:c,line:C.line,column:C.column},end:{offset:p,line:g.line,column:g.column}}}function M(c){f<je||(f>je&&(je=f,Pi=[]),Pi.push(c))}function Ud(c,p,C){return new Qn(Qn.buildMessage(c,p),c,p,C)}function pt(){var c,p,C,g,w,S,L,_,G,Y=f*34+0,Ei=F[Y];if(Ei)return f=Ei.nextPos,Ei.result;if(c=f,p=H(),p!==e)if(C=Vi(),C!==e){for(g=[],w=f,S=H(),S!==e?(L=ka(),L!==e?(_=H(),_!==e?(G=Vi(),G!==e?(S=[S,L,_,G],w=S):(f=w,w=e)):(f=w,w=e)):(f=w,w=e)):(f=w,w=e);w!==e;)g.push(w),w=f,S=H(),S!==e?(L=ka(),L!==e?(_=H(),_!==e?(G=Vi(),G!==e?(S=[S,L,_,G],w=S):(f=w,w=e)):(f=w,w=e)):(f=w,w=e)):(f=w,w=e);g!==e?(w=H(),w!==e?(B=c,p=o(C,g),c=p):(f=c,c=e)):(f=c,c=e)}else f=c,c=e;else f=c,c=e;return F[Y]={nextPos:f,result:c},c}function ka(){var c,p,C=f*34+1,g=F[C];return g?(f=g.nextPos,g.result):(c=f,i.substr(f,2)===s?(p=s,f+=2):(p=e,D===0&&M(a)),p===e&&(i.substr(f,2).toLowerCase()===l?(p=i.substr(f,2),f+=2):(p=e,D===0&&M(u))),p!==e&&(B=c,p=d()),c=p,F[C]={nextPos:f,result:c},c)}function Vi(){var c,p,C,g,w,S,L,_,G=f*34+2,Y=F[G];if(Y)return f=Y.nextPos,Y.result;if(c=f,p=wi(),p!==e){for(C=[],g=f,w=H(),w!==e?(S=qa(),S!==e?(L=H(),L!==e?(_=wi(),_!==e?(w=[w,S,L,_],g=w):(f=g,g=e)):(f=g,g=e)):(f=g,g=e)):(f=g,g=e);g!==e;)C.push(g),g=f,w=H(),w!==e?(S=qa(),S!==e?(L=H(),L!==e?(_=wi(),_!==e?(w=[w,S,L,_],g=w):(f=g,g=e)):(f=g,g=e)):(f=g,g=e)):(f=g,g=e);C!==e?(B=c,p=o(p,C),c=p):(f=c,c=e)}else f=c,c=e;return F[G]={nextPos:f,result:c},c}function qa(){var c,p,C=f*34+3,g=F[C];return g?(f=g.nextPos,g.result):(c=f,i.substr(f,2)===v?(p=v,f+=2):(p=e,D===0&&M(V)),p===e&&(i.substr(f,3).toLowerCase()===T?(p=i.substr(f,3),f+=3):(p=e,D===0&&M(R))),p!==e&&(B=c,p=N()),c=p,F[C]={nextPos:f,result:c},c)}function wi(){var c,p,C,g,w,S,L,_,G=f*34+4,Y=F[G];if(Y)return f=Y.nextPos,Y.result;if(c=f,p=xi(),p!==e){for(C=[],g=f,w=H(),w!==e?(S=Qa(),S!==e?(L=H(),L!==e?(_=xi(),_!==e?(w=[w,S,L,_],g=w):(f=g,g=e)):(f=g,g=e)):(f=g,g=e)):(f=g,g=e);g!==e;)C.push(g),g=f,w=H(),w!==e?(S=Qa(),S!==e?(L=H(),L!==e?(_=xi(),_!==e?(w=[w,S,L,_],g=w):(f=g,g=e)):(f=g,g=e)):(f=g,g=e)):(f=g,g=e);C!==e?(B=c,p=j(p,C),c=p):(f=c,c=e)}else f=c,c=e;return F[G]={nextPos:f,result:c},c}function Qa(){var c,p,C=f*34+5,g=F[C];return g?(f=g.nextPos,g.result):(c=f,i.substr(f,2)===A?(p=A,f+=2):(p=e,D===0&&M(Q)),p===e&&(i.substr(f,11).toLowerCase()===re?(p=i.substr(f,11),f+=11):(p=e,D===0&&M(ie))),p!==e&&(B=c,p=xe()),c=p,c===e&&(c=f,i.substr(f,2)===Re?(p=Re,f+=2):(p=e,D===0&&M(wt)),p===e&&(i.substr(f,14).toLowerCase()===ct?(p=i.substr(f,14),f+=14):(p=e,D===0&&M(Ff))),p!==e&&(B=c,p=_f()),c=p,c===e&&(c=f,i.substr(f,2)===ia?(p=ia,f+=2):(p=e,D===0&&M(Bf)),p===e&&(i.substr(f,5).toLowerCase()===oa?(p=i.substr(f,5),f+=5):(p=e,D===0&&M(sa))),p!==e&&(B=c,p=aa()),c=p,c===e&&(c=f,i.charCodeAt(f)===61?(p=kf,f++):(p=e,D===0&&M(qf)),p===e&&(i.substr(f,5).toLowerCase()===oa?(p=i.substr(f,5),f+=5):(p=e,D===0&&M(sa))),p!==e&&(B=c,p=aa()),c=p,c===e&&(c=f,i.substr(f,2)===la?(p=la,f+=2):(p=e,D===0&&M(Qf)),p===e&&(i.substr(f,8).toLowerCase()===zf?(p=i.substr(f,8),f+=8):(p=e,D===0&&M(Hf))),p!==e&&(B=c,p=Uf()),c=p,c===e&&(c=f,i.charCodeAt(f)===60?(p=Wf,f++):(p=e,D===0&&M($f)),p===e&&(i.substr(f,4).toLowerCase()===Jf?(p=i.substr(f,4),f+=4):(p=e,D===0&&M(Gf))),p!==e&&(B=c,p=Kf()),c=p,c===e&&(c=f,i.charCodeAt(f)===62?(p=Yf,f++):(p=e,D===0&&M(Xf)),p===e&&(i.substr(f,7).toLowerCase()===Zf?(p=i.substr(f,7),f+=7):(p=e,D===0&&M(ep))),p!==e&&(B=c,p=tp()),c=p)))))),F[C]={nextPos:f,result:c},c)}function xi(){var c,p,C,g,w,S,L,_,G=f*34+6,Y=F[G];if(Y)return f=Y.nextPos,Y.result;if(c=f,p=Oi(),p!==e){for(C=[],g=f,w=H(),w!==e?(S=za(),S!==e?(L=H(),L!==e?(_=Oi(),_!==e?(w=[w,S,L,_],g=w):(f=g,g=e)):(f=g,g=e)):(f=g,g=e)):(f=g,g=e);g!==e;)C.push(g),g=f,w=H(),w!==e?(S=za(),S!==e?(L=H(),L!==e?(_=Oi(),_!==e?(w=[w,S,L,_],g=w):(f=g,g=e)):(f=g,g=e)):(f=g,g=e)):(f=g,g=e);C!==e?(B=c,p=o(p,C),c=p):(f=c,c=e)}else f=c,c=e;return F[G]={nextPos:f,result:c},c}function za(){var c,p,C=f*34+7,g=F[C];return g?(f=g.nextPos,g.result):(c=f,i.charCodeAt(f)===43?(p=np,f++):(p=e,D===0&&M(rp)),p!==e&&(B=c,p=ip()),c=p,c===e&&(c=f,i.charCodeAt(f)===45?(p=op,f++):(p=e,D===0&&M(sp)),p!==e&&(B=c,p=ap()),c=p),F[C]={nextPos:f,result:c},c)}function Oi(){var c,p,C,g,w,S,L,_,G=f*34+8,Y=F[G];if(Y)return f=Y.nextPos,Y.result;if(c=f,p=Si(),p!==e){for(C=[],g=f,w=H(),w!==e?(S=Ha(),S!==e?(L=H(),L!==e?(_=Si(),_!==e?(w=[w,S,L,_],g=w):(f=g,g=e)):(f=g,g=e)):(f=g,g=e)):(f=g,g=e);g!==e;)C.push(g),g=f,w=H(),w!==e?(S=Ha(),S!==e?(L=H(),L!==e?(_=Si(),_!==e?(w=[w,S,L,_],g=w):(f=g,g=e)):(f=g,g=e)):(f=g,g=e)):(f=g,g=e);C!==e?(B=c,p=o(p,C),c=p):(f=c,c=e)}else f=c,c=e;return F[G]={nextPos:f,result:c},c}function Ha(){var c,p,C=f*34+9,g=F[C];return g?(f=g.nextPos,g.result):(c=f,i.charCodeAt(f)===42?(p=lp,f++):(p=e,D===0&&M(up)),p!==e&&(B=c,p=cp()),c=p,c===e&&(c=f,i.charCodeAt(f)===47?(p=fp,f++):(p=e,D===0&&M(pp)),p!==e&&(B=c,p=dp()),c=p,c===e&&(c=f,i.charCodeAt(f)===37?(p=hp,f++):(p=e,D===0&&M(gp)),p!==e&&(B=c,p=yp()),c=p)),F[C]={nextPos:f,result:c},c)}function Si(){var c,p,C,g,w,S,L,_,G=f*34+10,Y=F[G];if(Y)return f=Y.nextPos,Y.result;if(c=f,p=Ti(),p!==e){for(C=[],g=f,w=H(),w!==e?(S=Ua(),S!==e?(L=H(),L!==e?(_=Ti(),_!==e?(w=[w,S,L,_],g=w):(f=g,g=e)):(f=g,g=e)):(f=g,g=e)):(f=g,g=e);g!==e;)C.push(g),g=f,w=H(),w!==e?(S=Ua(),S!==e?(L=H(),L!==e?(_=Ti(),_!==e?(w=[w,S,L,_],g=w):(f=g,g=e)):(f=g,g=e)):(f=g,g=e)):(f=g,g=e);C!==e?(B=c,p=o(p,C),c=p):(f=c,c=e)}else f=c,c=e;return F[G]={nextPos:f,result:c},c}function Ua(){var c,p,C=f*34+11,g=F[C];return g?(f=g.nextPos,g.result):(c=f,i.charCodeAt(f)===94?(p=mp,f++):(p=e,D===0&&M(vp)),p===e&&(i.substr(f,5).toLowerCase()===bp?(p=i.substr(f,5),f+=5):(p=e,D===0&&M(Cp))),p!==e&&(B=c,p=Pp()),c=p,F[C]={nextPos:f,result:c},c)}function Ti(){var c,p,C,g,w,S,L,_,G=f*34+12,Y=F[G];if(Y)return f=Y.nextPos,Y.result;if(c=f,p=Ri(),p!==e){for(C=[],g=f,w=H(),w!==e?(S=Wa(),S!==e?(L=H(),L!==e?(_=Ri(),_===e&&(_=null),_!==e?(w=[w,S,L,_],g=w):(f=g,g=e)):(f=g,g=e)):(f=g,g=e)):(f=g,g=e);g!==e;)C.push(g),g=f,w=H(),w!==e?(S=Wa(),S!==e?(L=H(),L!==e?(_=Ri(),_===e&&(_=null),_!==e?(w=[w,S,L,_],g=w):(f=g,g=e)):(f=g,g=e)):(f=g,g=e)):(f=g,g=e);C!==e?(B=c,p=j(p,C),c=p):(f=c,c=e)}else f=c,c=e;return F[G]={nextPos:f,result:c},c}function Wa(){var c,p,C=f*34+13,g=F[C];return g?(f=g.nextPos,g.result):(c=f,i.substr(f,2)===ua?(p=ua,f+=2):(p=e,D===0&&M(Vp)),p===e&&(i.substr(f,8).toLowerCase()===wp?(p=i.substr(f,8),f+=8):(p=e,D===0&&M(xp)),p===e&&(i.substr(f,7).toLowerCase()===Op?(p=i.substr(f,7),f+=7):(p=e,D===0&&M(Sp)))),p!==e&&(B=c,p=Tp()),c=p,c===e&&(c=f,i.substr(f,11).toLowerCase()===Rp?(p=i.substr(f,11),f+=11):(p=e,D===0&&M(Ep)),p===e&&(i.substr(f,10).toLowerCase()===Ip?(p=i.substr(f,10),f+=10):(p=e,D===0&&M(Ap))),p!==e&&(B=c,p=Dp()),c=p,c===e&&(c=f,i.substr(f,5).toLowerCase()===Lp?(p=i.substr(f,5),f+=5):(p=e,D===0&&M(Mp)),p!==e&&(B=c,p=jp()),c=p,c===e&&(c=f,i.substr(f,5).toLowerCase()===Np?(p=i.substr(f,5),f+=5):(p=e,D===0&&M(Fp)),p!==e&&(B=c,p=_p()),c=p))),F[C]={nextPos:f,result:c},c)}function Ri(){var c,p,C,g,w,S,L=f*34+14,_=F[L];return _?(f=_.nextPos,_.result):(c=f,i.charCodeAt(f)===40?(p=ca,f++):(p=e,D===0&&M(fa)),p!==e?(C=H(),C!==e?(g=pt(),g!==e?(w=H(),w!==e?(i.charCodeAt(f)===41?(S=pa,f++):(S=e,D===0&&M(da)),S===e&&(S=null),S!==e?(B=c,p=Bp(g),c=p):(f=c,c=e)):(f=c,c=e)):(f=c,c=e)):(f=c,c=e)):(f=c,c=e),c===e&&(c=Wd(),c===e&&(c=$d(),c===e&&(c=$a(),c===e&&(c=Kd())))),F[L]={nextPos:f,result:c},c)}function Wd(){var c,p,C,g,w,S=f*34+15,L=F[S];return L?(f=L.nextPos,L.result):(c=f,p=Xa(),p!==e?(i.charCodeAt(f)===40?(C=ca,f++):(C=e,D===0&&M(fa)),C!==e?(g=Ja(),g!==e?(i.charCodeAt(f)===41?(w=pa,f++):(w=e,D===0&&M(da)),w===e&&(w=null),w!==e?(B=c,p=kp(p,g),c=p):(f=c,c=e)):(f=c,c=e)):(f=c,c=e)):(f=c,c=e),F[S]={nextPos:f,result:c},c)}function $d(){var c,p,C,g,w=f*34+16,S=F[w];return S?(f=S.nextPos,S.result):(c=f,i.charCodeAt(f)===33?(p=qp,f++):(p=e,D===0&&M(Qp)),p===e&&(i.substr(f,6).toLowerCase()===zp?(p=i.substr(f,6),f+=6):(p=e,D===0&&M(Hp))),p!==e?(C=H(),C!==e?(g=pt(),g!==e?(B=c,p=Up(g),c=p):(f=c,c=e)):(f=c,c=e)):(f=c,c=e),c===e&&(c=f,p=$a(),p!==e?(C=H(),C!==e?(g=Jd(),g!==e?(B=c,p=Wp(p,g),c=p):(f=c,c=e)):(f=c,c=e)):(f=c,c=e)),F[w]={nextPos:f,result:c},c)}function Jd(){var c,p,C=f*34+17,g=F[C];return g?(f=g.nextPos,g.result):(c=f,i.substr(f,5).toLowerCase()===$p?(p=i.substr(f,5),f+=5):(p=e,D===0&&M(Jp)),p!==e&&(B=c,p=Gp()),c=p,c===e&&(c=f,i.substr(f,8).toLowerCase()===Kp?(p=i.substr(f,8),f+=8):(p=e,D===0&&M(Yp)),p!==e&&(B=c,p=Xp()),c=p),F[C]={nextPos:f,result:c},c)}function $a(){var c,p,C,g,w,S=f*34+18,L=F[S];return L?(f=L.nextPos,L.result):(c=f,p=H(),p!==e?(i.substr(f,9)===ha?(C=ha,f+=9):(C=e,D===0&&M(Zp)),C===e&&(i.substr(f,4)===ga?(C=ga,f+=4):(C=e,D===0&&M(ed))),C!==e?(B=c,p=td(),c=p):(f=c,c=e)):(f=c,c=e),c===e&&(c=f,p=H(),p!==e?(C=Gd(),C!==e?(B=c,p=nd(C),c=p):(f=c,c=e)):(f=c,c=e),c===e&&(c=f,p=H(),p!==e?(i.charCodeAt(f)===123?(C=rd,f++):(C=e,D===0&&M(id)),C!==e?(g=eh(),g!==e?(i.charCodeAt(f)===125?(w=od,f++):(w=e,D===0&&M(sd)),w!==e?(B=c,p=ad(g),c=p):(f=c,c=e)):(f=c,c=e)):(f=c,c=e)):(f=c,c=e))),F[S]={nextPos:f,result:c},c)}function Gd(){var c,p,C,g,w=f*34+19,S=F[w];return S?(f=S.nextPos,S.result):(c=f,p=Yd(),p!==e&&(B=c,p=bi(p)),c=p,c===e&&(c=f,p=Xd(),p!==e&&(B=c,p=bi(p)),c=p,c===e&&(c=f,p=Xa(),p!==e&&(B=c,p=bi(p)),c=p,c===e&&(c=f,i.substr(f,2)===ya?(p=ya,f+=2):(p=e,D===0&&M(ld)),p!==e&&(B=c,p=ma()),c=p,c===e&&(c=f,i.substr(f,2)===va?(p=va,f+=2):(p=e,D===0&&M(ud)),p!==e&&(B=c,p=ma()),c=p,c===e&&(c=f,i.charCodeAt(f)===39?(p=ba,f++):(p=e,D===0&&M(Ca)),p!==e?(C=Ga(),C!==e?(i.charCodeAt(f)===39?(g=ba,f++):(g=e,D===0&&M(Ca)),g!==e?(B=c,p=Pa(C),c=p):(f=c,c=e)):(f=c,c=e)):(f=c,c=e),c===e&&(c=f,i.charCodeAt(f)===34?(p=Va,f++):(p=e,D===0&&M(wa)),p!==e?(C=Ga(),C!==e?(i.charCodeAt(f)===34?(g=Va,f++):(g=e,D===0&&M(wa)),g!==e?(B=c,p=Pa(C),c=p):(f=c,c=e)):(f=c,c=e)):(f=c,c=e))))))),F[w]={nextPos:f,result:c},c)}function Kd(){var c,p,C,g,w=f*34+20,S=F[w];return S?(f=S.nextPos,S.result):(c=f,i.charCodeAt(f)===91?(p=cd,f++):(p=e,D===0&&M(fd)),p!==e?(C=Ja(),C!==e?(i.charCodeAt(f)===93?(g=pd,f++):(g=e,D===0&&M(dd)),g!==e?(B=c,p=hd(C),c=p):(f=c,c=e)):(f=c,c=e)):(f=c,c=e),F[w]={nextPos:f,result:c},c)}function Ja(){var c,p,C,g,w,S,L,_,G=f*34+21,Y=F[G];if(Y)return f=Y.nextPos,Y.result;if(c=f,p=pt(),p===e&&(p=null),p!==e){for(C=[],g=f,w=H(),w!==e?(i.charCodeAt(f)===44?(S=xa,f++):(S=e,D===0&&M(Oa)),S!==e?(L=H(),L!==e?(_=pt(),_!==e?(w=[w,S,L,_],g=w):(f=g,g=e)):(f=g,g=e)):(f=g,g=e)):(f=g,g=e);g!==e;)C.push(g),g=f,w=H(),w!==e?(i.charCodeAt(f)===44?(S=xa,f++):(S=e,D===0&&M(Oa)),S!==e?(L=H(),L!==e?(_=pt(),_!==e?(w=[w,S,L,_],g=w):(f=g,g=e)):(f=g,g=e)):(f=g,g=e)):(f=g,g=e);C!==e?(B=c,p=gd(p,C),c=p):(f=c,c=e)}else f=c,c=e;return F[G]={nextPos:f,result:c},c}function Yd(){var c,p,C=f*34+22,g=F[C];return g?(f=g.nextPos,g.result):(c=f,i.substr(f,4).toLowerCase()===yd?(p=i.substr(f,4),f+=4):(p=e,D===0&&M(md)),p!==e&&(B=c,p=vd()),c=p,c===e&&(c=f,i.substr(f,5).toLowerCase()===bd?(p=i.substr(f,5),f+=5):(p=e,D===0&&M(Cd)),p!==e&&(B=c,p=Pd()),c=p),F[C]={nextPos:f,result:c},c)}function Xd(){var c,p,C,g=f*34+23,w=F[g];return w?(f=w.nextPos,w.result):(c=f,i.substr(f,2)===Sa?(p=Sa,f+=2):(p=e,D===0&&M(Vd)),p!==e?(C=xt(),C!==e?(B=c,p=wd(),c=p):(f=c,c=e)):(f=c,c=e),c===e&&(c=f,xd.test(i.charAt(f))?(p=i.charAt(f),f++):(p=e,D===0&&M(Od)),p===e&&(p=null),p!==e?(C=Zd(),C!==e?(B=c,p=Sd(p,C),c=p):(f=c,c=e)):(f=c,c=e)),F[g]={nextPos:f,result:c},c)}function Zd(){var c,p,C,g,w=f*34+24,S=F[w];return S?(f=S.nextPos,S.result):(c=f,p=xt(),p!==e?(i.charCodeAt(f)===46?(C=Td,f++):(C=e,D===0&&M(Rd)),C!==e?(g=xt(),g!==e?(B=c,p=Ed(),c=p):(f=c,c=e)):(f=c,c=e)):(f=c,c=e),c===e&&(c=f,p=th(),p!==e?(C=xt(),C===e&&(C=null),C!==e?(B=c,p=Id(),c=p):(f=c,c=e)):(f=c,c=e),c===e&&(c=f,i.charCodeAt(f)===48?(p=Ad,f++):(p=e,D===0&&M(Dd)),p!==e&&(B=c,p=Ld()),c=p)),F[w]={nextPos:f,result:c},c)}function eh(){var c,p,C,g=f*34+25,w=F[g];if(w)return f=w.nextPos,w.result;if(c=f,p=[],C=Ya(),C!==e)for(;C!==e;)p.push(C),C=Ya();else p=e;return p!==e&&(B=c,p=Ta(p)),c=p,F[g]={nextPos:f,result:c},c}function Ga(){var c,p,C,g=f*34+26,w=F[g];if(w)return f=w.nextPos,w.result;if(c=f,p=[],C=Ka(),C!==e)for(;C!==e;)p.push(C),C=Ka();else p=e;return p!==e&&(B=c,p=Ta(p)),c=p,F[g]={nextPos:f,result:c},c}function Ka(){var c,p,C=f*34+27,g=F[C];return g?(f=g.nextPos,g.result):(c=f,i.substr(f,2)===Ra?(p=Ra,f+=2):(p=e,D===0&&M(Md)),p!==e&&(B=c,p=jd()),c=p,c===e&&(c=f,i.substr(f,2)===Ea?(p=Ea,f+=2):(p=e,D===0&&M(Nd)),p!==e&&(B=c,p=Fd()),c=p,c===e&&(c=f,_d.test(i.charAt(f))?(p=i.charAt(f),f++):(p=e,D===0&&M(Bd)),p!==e&&(B=c,p=Ci()),c=p)),F[C]={nextPos:f,result:c},c)}function Ya(){var c,p,C=f*34+28,g=F[C];return g?(f=g.nextPos,g.result):(c=f,kd.test(i.charAt(f))?(p=i.charAt(f),f++):(p=e,D===0&&M(qd)),p!==e&&(B=c,p=Ci()),c=p,F[C]={nextPos:f,result:c},c)}function Xa(){var c,p,C,g,w,S,L,_=f*34+29,G=F[_];if(G)return f=G.nextPos,G.result;if(c=f,p=$t(),p!==e){if(C=[],g=f,w=xt(),w!==e){for(S=[],L=$t();L!==e;)S.push(L),L=$t();S!==e?(w=[w,S],g=w):(f=g,g=e)}else f=g,g=e;for(;g!==e;)if(C.push(g),g=f,w=xt(),w!==e){for(S=[],L=$t();L!==e;)S.push(L),L=$t();S!==e?(w=[w,S],g=w):(f=g,g=e)}else f=g,g=e;C!==e?(B=c,p=Ci(),c=p):(f=c,c=e)}else f=c,c=e;return F[_]={nextPos:f,result:c},c}function xt(){var c,p,C=f*34+30,g=F[C];if(g)return f=g.nextPos,g.result;if(c=[],Ia.test(i.charAt(f))?(p=i.charAt(f),f++):(p=e,D===0&&M(Aa)),p!==e)for(;p!==e;)c.push(p),Ia.test(i.charAt(f))?(p=i.charAt(f),f++):(p=e,D===0&&M(Aa));else c=e;return F[C]={nextPos:f,result:c},c}function th(){var c,p,C=f*34+31,g=F[C];if(g)return f=g.nextPos,g.result;if(c=[],Da.test(i.charAt(f))?(p=i.charAt(f),f++):(p=e,D===0&&M(La)),p!==e)for(;p!==e;)c.push(p),Da.test(i.charAt(f))?(p=i.charAt(f),f++):(p=e,D===0&&M(La));else c=e;return F[C]={nextPos:f,result:c},c}function $t(){var c,p,C=f*34+32,g=F[C];if(g)return f=g.nextPos,g.result;if(c=[],Ma.test(i.charAt(f))?(p=i.charAt(f),f++):(p=e,D===0&&M(ja)),p!==e)for(;p!==e;)c.push(p),Ma.test(i.charAt(f))?(p=i.charAt(f),f++):(p=e,D===0&&M(ja));else c=e;return F[C]={nextPos:f,result:c},c}function H(){var c,p,C=f*34+33,g=F[C];if(g)return f=g.nextPos,g.result;for(D++,c=[],Na.test(i.charAt(f))?(p=i.charAt(f),f++):(p=e,D===0&&M(Fa));p!==e;)c.push(p),Na.test(i.charAt(f))?(p=i.charAt(f),f++):(p=e,D===0&&M(Fa));return D--,c===e&&(p=e,D===0&&M(Qd)),F[C]={nextPos:f,result:c},c}function Za(c,p,C){return C===void 0&&(C=!1),p.reduce(function(g,w){return new Gi(w[1],g,w[3],C)},c)}function nh(c){return[].concat.apply([],c)}if(Ln=r(),Ln!==e&&f===i.length)return Ln;throw Ln!==e&&f<i.length&&M(zd()),Ud(Pi,je<i.length?i.charAt(je):null,je<i.length?Ba(je,je+1):Ba(je,je))}var Fl=Nl,_l=function(){function i(t,e){this.at=t,this.code=e}return i}(),Xi=function(){function i(){}return i.prototype.patchExpression=function(t){return t.replace(/=>/g,">=").replace(/=</g,"<=").replace(/<>/g,"!=").replace(/equals/g,"equal ").replace(/notequals/g,"notequal ")},i.prototype.createCondition=function(t){return this.parseExpression(t)},i.prototype.parseExpression=function(t){try{var e=i.parserCache[t];return e===void 0&&(e=Fl(this.patchExpression(t)),e.hasAsyncFunction()||(i.parserCache[t]=e)),e}catch(n){n instanceof Qn&&(this.conditionError=new _l(n.location.start.offset,n.message))}},Object.defineProperty(i.prototype,"error",{get:function(){return this.conditionError},enumerable:!1,configurable:!0}),i.parserCache={},i}(),Zi=function(){var i=function(t,e){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(n[o]=r[o])},i(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");i(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),Bl=function(){function i(t,e,n,r,o){this.operand=t,this.id=e,this.onComplete=n,this.processValue=new me,this.processValue.values=r,this.processValue.properties=o}return i.prototype.run=function(t){var e=this;if(!t)return this.runValues();this.processValue.values=P.createCopy(this.processValue.values),this.processValue.onCompleteAsyncFunc=function(r){var o=e.getAsyncItemByOperand(r,e.asyncFuncList);o&&e.doAsyncFunctionReady(o)},this.asyncFuncList=new Array,this.operand.addToAsyncList(this.asyncFuncList);for(var n=0;n<this.asyncFuncList.length;n++)this.runAsyncItem(this.asyncFuncList[n]);return!1},i.prototype.getAsyncItemByOperand=function(t,e){if(!Array.isArray(e))return null;for(var n=0;n<e.length;n++){if(e[n].operand===t)return e[n];var r=this.getAsyncItemByOperand(t,e[n].children);if(r)return r}return null},i.prototype.runAsyncItem=function(t){var e=this;t.children?t.children.forEach(function(n){return e.runAsyncItem(n)}):this.runAsyncItemCore(t)},i.prototype.runAsyncItemCore=function(t){t.operand?t.operand.evaluate(this.processValue):this.doAsyncFunctionReady(t)},i.prototype.doAsyncFunctionReady=function(t){if(t.parent&&this.isAsyncChildrenReady(t)){this.runAsyncItemCore(t.parent);return}for(var e=0;e<this.asyncFuncList.length;e++)if(!this.isAsyncFuncReady(this.asyncFuncList[e]))return;this.runValues()},i.prototype.isAsyncFuncReady=function(t){return t.operand&&!t.operand.isReady(this.processValue)?!1:this.isAsyncChildrenReady(t)},i.prototype.isAsyncChildrenReady=function(t){if(t.children){for(var e=0;e<t.children.length;e++)if(!this.isAsyncFuncReady(t.children[e]))return!1}return!0},i.prototype.runValues=function(){var t=this.operand.evaluate(this.processValue);return this.onComplete&&this.onComplete(t,this.id),t},i}(),eo=function(){function i(t){this.parser=new Xi,this.isAsyncValue=!1,this.hasFunctionValue=!1,this.setExpression(t)}return Object.defineProperty(i.prototype,"expression",{get:function(){return this.expressionValue},enumerable:!1,configurable:!0}),i.prototype.setExpression=function(t){this.expression!==t&&(this.expressionValue=t,this.operand=this.parser.parseExpression(t),this.hasFunctionValue=this.canRun()?this.operand.hasFunction():!1,this.isAsyncValue=this.hasFunction()?this.operand.hasAsyncFunction():!1)},i.prototype.getVariables=function(){if(!this.operand)return[];var t=[];return this.operand.setVariables(t),t},i.prototype.hasFunction=function(){return this.hasFunctionValue},Object.defineProperty(i.prototype,"isAsync",{get:function(){return this.isAsyncValue},enumerable:!1,configurable:!0}),i.prototype.canRun=function(){return!!this.operand},i.prototype.run=function(t,e,n){if(e===void 0&&(e=null),!this.operand)return this.expression&&Fe.warn("Invalid expression: "+this.expression),null;var r=new Bl(this.operand,n,this.onComplete,t,e);return r.run(this.isAsync)},i.createExpressionExecutor=function(t){return new i(t)},i}(),to=function(){function i(t){this.expression=t}return Object.defineProperty(i.prototype,"expression",{get:function(){return this.expressionExecutor?this.expressionExecutor.expression:""},set:function(t){var e=this;this.expressionExecutor&&t===this.expression||(this.expressionExecutor=eo.createExpressionExecutor(t),this.expressionExecutor.onComplete=function(n,r){e.doOnComplete(n,r)},this.variables=void 0,this.containsFunc=void 0)},enumerable:!1,configurable:!0}),i.prototype.getVariables=function(){return this.variables===void 0&&(this.variables=this.expressionExecutor.getVariables()),this.variables},i.prototype.hasFunction=function(){return this.containsFunc===void 0&&(this.containsFunc=this.expressionExecutor.hasFunction()),this.containsFunc},Object.defineProperty(i.prototype,"isAsync",{get:function(){return this.expressionExecutor.isAsync},enumerable:!1,configurable:!0}),i.prototype.canRun=function(){return this.expressionExecutor.canRun()},i.prototype.runCore=function(t,e){e===void 0&&(e=null);var n=i.IdRunnerCounter++;return this.onBeforeAsyncRun&&this.isAsync&&this.onBeforeAsyncRun(n),this.expressionExecutor.run(t,e,n)},i.prototype.doOnComplete=function(t,e){this.onAfterAsyncRun&&this.isAsync&&this.onAfterAsyncRun(e)},i.IdRunnerCounter=1,i}(),de=function(i){Zi(t,i);function t(){return i!==null&&i.apply(this,arguments)||this}return t.prototype.run=function(e,n){return n===void 0&&(n=null),this.runCore(e,n)==!0},t.prototype.doOnComplete=function(e,n){this.onRunComplete&&this.onRunComplete(e==!0),i.prototype.doOnComplete.call(this,e,n)},t}(to),et=function(i){Zi(t,i);function t(){return i!==null&&i.apply(this,arguments)||this}return t.prototype.run=function(e,n){return n===void 0&&(n=null),this.runCore(e,n)},t.prototype.doOnComplete=function(e,n){this.onRunComplete&&this.onRunComplete(e),i.prototype.doOnComplete.call(this,e,n)},t}(to),kl=function(){var i=function(t,e){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(n[o]=r[o])},i(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");i(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),no=function(i,t){for(var e=0,n=t.length,r=i.length;e<n;e++,r++)i[r]=t[e];return i},ql=function(){function i(t){this.obj=t,this.properties=null,this.values=null}return i.prototype.getType=function(){return"bindings"},i.prototype.getNames=function(){var t=[];this.fillProperties();for(var e=0;e<this.properties.length;e++)this.properties[e].isVisible("",this.obj)&&t.push(this.properties[e].name);return t},i.prototype.getProperties=function(){var t=[];this.fillProperties();for(var e=0;e<this.properties.length;e++)t.push(this.properties[e]);return t},i.prototype.setBinding=function(t,e){this.values||(this.values={});var n=this.getJson();n!==e&&(e?this.values[t]=e:(delete this.values[t],Object.keys(this.values).length==0&&(this.values=null)),this.onChangedJSON(n))},i.prototype.clearBinding=function(t){this.setBinding(t,"")},i.prototype.isEmpty=function(){if(!this.values)return!0;for(var t in this.values)return!1;return!0},i.prototype.getValueNameByPropertyName=function(t){if(this.values)return this.values[t]},i.prototype.getPropertiesByValueName=function(t){if(!this.values)return[];var e=[];for(var n in this.values)this.values[n]==t&&e.push(n);return e},i.prototype.getJson=function(){if(!this.isEmpty()){var t={};for(var e in this.values)t[e]=this.values[e];return t}},i.prototype.setJson=function(t,e){var n=this.getJson();if(this.values=null,t){this.values={};for(var r in t)this.values[r]=t[r]}e||this.onChangedJSON(n)},i.prototype.fillProperties=function(){if(this.properties===null){this.properties=[];for(var t=x.getPropertiesByObj(this.obj),e=0;e<t.length;e++)t[e].isBindable&&this.properties.push(t[e])}},i.prototype.onChangedJSON=function(t){this.obj&&this.obj.onBindingChanged(t,this.getJson())},i}(),Ql=function(){function i(t,e,n){this.currentDependency=t,this.target=e,this.property=n,this.dependencies=[],this.id=""+ ++i.DependenciesCount}return i.prototype.addDependency=function(t,e){this.target===t&&this.property===e||this.dependencies.some(function(n){return n.obj===t&&n.prop===e})||(this.dependencies.push({obj:t,prop:e,id:this.id}),t.registerPropertyChangedHandlers([e],this.currentDependency,this.id))},i.prototype.dispose=function(){this.dependencies.forEach(function(t){t.obj.unregisterPropertyChangedHandlers([t.prop],t.id)})},i.DependenciesCount=0,i}(),te=function(){function i(t){this._updater=t,this.dependencies=void 0,this.type=i.ComputedUpdaterType}return Object.defineProperty(i.prototype,"updater",{get:function(){return this._updater},enumerable:!1,configurable:!0}),i.prototype.setDependencies=function(t){this.clearDependencies(),this.dependencies=t},i.prototype.getDependencies=function(){return this.dependencies},i.prototype.clearDependencies=function(){this.dependencies&&(this.dependencies.dispose(),this.dependencies=void 0)},i.prototype.dispose=function(){this.clearDependencies(),this._updater=void 0},i.ComputedUpdaterType="__dependency_computed",i}(),z=function(){function i(){this.dependencies={},this.propertyHash=i.createPropertiesHash(),this.eventList=[],this.isLoadingFromJsonValue=!1,this.loadingOwner=null,this.onPropertyChanged=this.addEvent(),this.onItemValuePropertyChanged=this.addEvent(),this.isCreating=!0,this.animationAllowedLock=0,this.supportOnElementRerenderedEvent=!0,this.onElementRerenderedEventEnabled=!1,this._onElementRerendered=new Ve,this.bindingsValue=new ql(this),Ne.createProperties(this),this.onBaseCreating(),this.isCreating=!1}return i.finishCollectDependencies=function(){var t=i.currentDependencis;return i.currentDependencis=void 0,t},i.startCollectDependencies=function(t,e,n){if(i.currentDependencis!==void 0)throw new Error("Attempt to collect nested dependencies. Nested dependencies are not supported.");i.currentDependencis=new Ql(t,e,n)},i.collectDependency=function(t,e){i.currentDependencis!==void 0&&i.currentDependencis.addDependency(t,e)},Object.defineProperty(i,"commentSuffix",{get:function(){return b.commentSuffix},set:function(t){b.commentSuffix=t},enumerable:!1,configurable:!0}),Object.defineProperty(i,"commentPrefix",{get:function(){return i.commentSuffix},set:function(t){i.commentSuffix=t},enumerable:!1,configurable:!0}),i.prototype.isValueEmpty=function(t,e){return e===void 0&&(e=!0),e&&(t=this.trimValue(t)),P.isValueEmpty(t)},i.prototype.equals=function(t){return!t||this.isDisposed||t.isDisposed||this.getType()!=t.getType()?!1:this.equalsCore(t)},i.prototype.equalsCore=function(t){return this.name!==t.name?!1:P.isTwoValueEquals(this.toJSON(),t.toJSON(),!1,!0,!1)},i.prototype.trimValue=function(t){return t&&(typeof t=="string"||t instanceof String)?t.trim():t},i.prototype.isPropertyEmpty=function(t){return t!==""&&this.isValueEmpty(t)},i.createPropertiesHash=function(){return{}},i.prototype.dispose=function(){for(var t=this,e=0;e<this.eventList.length;e++)this.eventList[e].clear();this.onPropertyValueChangedCallback=void 0,this.isDisposedValue=!0,Object.keys(this.dependencies).forEach(function(n){return t.dependencies[n].dispose()}),Object.keys(this.propertyHash).forEach(function(n){var r=t.getPropertyValueCore(t.propertyHash,n);r&&r.type==te.ComputedUpdaterType&&r.dispose()})},Object.defineProperty(i.prototype,"isDisposed",{get:function(){return this.isDisposedValue===!0},enumerable:!1,configurable:!0}),i.prototype.addEvent=function(){var t=new Ve;return this.eventList.push(t),t},i.prototype.onBaseCreating=function(){},i.prototype.getType=function(){return"base"},i.prototype.isDescendantOf=function(t){return x.isDescendantOf(this.getType(),t)},i.prototype.getSurvey=function(t){return null},Object.defineProperty(i.prototype,"isDesignMode",{get:function(){var t=this.getSurvey();return!!t&&t.isDesignMode},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"isDesignModeV2",{get:function(){return b.supportCreatorV2&&this.isDesignMode},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"inSurvey",{get:function(){return!!this.getSurvey(!0)},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"bindings",{get:function(){return this.bindingsValue},enumerable:!1,configurable:!0}),i.prototype.checkBindings=function(t,e){},i.prototype.updateBindings=function(t,e){var n=this.bindings.getValueNameByPropertyName(t);n&&this.updateBindingValue(n,e)},i.prototype.updateBindingValue=function(t,e){},i.prototype.getTemplate=function(){return this.getType()},Object.defineProperty(i.prototype,"isLoadingFromJson",{get:function(){return this.isLoadingFromJsonValue||this.getIsLoadingFromJson()},enumerable:!1,configurable:!0}),i.prototype.getIsLoadingFromJson=function(){return this.loadingOwner&&this.loadingOwner.isLoadingFromJson?!0:this.isLoadingFromJsonValue},i.prototype.startLoadingFromJson=function(t){this.isLoadingFromJsonValue=!0,this.jsonObj=t},i.prototype.endLoadingFromJson=function(){this.isLoadingFromJsonValue=!1},i.prototype.toJSON=function(t){return new fe().toJsonObject(this,t)},i.prototype.fromJSON=function(t,e){new fe().toObject(t,this,e),this.onSurveyLoad()},i.prototype.onSurveyLoad=function(){},i.prototype.clone=function(){var t=x.createClass(this.getType());return t.fromJSON(this.toJSON()),t},i.prototype.getPropertyByName=function(t){var e=this.getType();return(!this.classMetaData||this.classMetaData.name!==e)&&(this.classMetaData=x.findClass(e)),this.classMetaData?this.classMetaData.findProperty(t):null},i.prototype.isPropertyVisible=function(t){var e=this.getPropertyByName(t);return e?e.isVisible("",this):!1},i.createProgressInfo=function(){return{questionCount:0,answeredQuestionCount:0,requiredQuestionCount:0,requiredAnsweredQuestionCount:0}},i.prototype.getProgressInfo=function(){return i.createProgressInfo()},i.prototype.localeChanged=function(){},i.prototype.locStrsChanged=function(){if(this.arraysInfo)for(var t in this.arraysInfo){var e=this.arraysInfo[t];if(e&&e.isItemValues){var n=this.getPropertyValue(t);n&&i.itemValueLocStrChanged&&i.itemValueLocStrChanged(n)}}if(this.localizableStrings)for(var t in this.localizableStrings){var e=this.getLocalizableString(t);e&&e.strChanged()}},i.prototype.getPropertyValue=function(t,e,n){var r=this.getPropertyValueWithoutDefault(t);if(this.isPropertyEmpty(r)){var o=this.localizableStrings?this.localizableStrings[t]:void 0;if(o)return o.text;if(e!=null)return e;if(n){var s=n();if(s!==void 0)if(Array.isArray(s)){var a=this.createNewArray(t);return a.splice.apply(a,no([0,0],s)),a}else return this.setPropertyValueDirectly(t,s),s}var l=this.getDefaultPropertyValue(t);if(l!==void 0)return l}return r},i.prototype.getDefaultPropertyValue=function(t){var e=this.getPropertyByName(t);if(!(!e||e.isCustom&&this.isCreating)){if(e.defaultValueFunc)return e.defaultValueFunc(this);var n=e.getDefaultValue(this);if(!this.isPropertyEmpty(n)&&!Array.isArray(n))return n;var r=this.localizableStrings?this.localizableStrings[t]:void 0;if(r&&r.localizationName)return this.getLocalizationString(r.localizationName);if(e.type=="boolean"||e.type=="switch")return!1;if(e.isCustom&&e.onGetValue)return e.onGetValue(this)}},i.prototype.hasDefaultPropertyValue=function(t){return this.getDefaultPropertyValue(t)!==void 0},i.prototype.resetPropertyValue=function(t){var e=this.localizableStrings?this.localizableStrings[t]:void 0;e?(this.setLocalizableStringText(t,void 0),e.clear()):this.setPropertyValue(t,void 0)},i.prototype.getPropertyValueWithoutDefault=function(t){return this.getPropertyValueCore(this.propertyHash,t)},i.prototype.getPropertyValueCore=function(t,e){return this.isLoadingFromJson||i.collectDependency(this,e),this.getPropertyValueCoreHandler?this.getPropertyValueCoreHandler(t,e):t[e]},i.prototype.geValueFromHash=function(){return this.propertyHash.value},i.prototype.setPropertyValueCore=function(t,e,n){this.setPropertyValueCoreHandler?this.isDisposedValue?Fe.disposedObjectChangedProperty(e,this.getType()):this.setPropertyValueCoreHandler(t,e,n):t[e]=n},Object.defineProperty(i.prototype,"isEditingSurveyElement",{get:function(){var t=this.getSurvey();return!!t&&t.isEditingSurveyElement},enumerable:!1,configurable:!0}),i.prototype.iteratePropertiesHash=function(t){var e=this,n=[];for(var r in this.propertyHash)r==="value"&&this.isEditingSurveyElement&&Array.isArray(this.value)||n.push(r);n.forEach(function(o){return t(e.propertyHash,o)})},i.prototype.setPropertyValue=function(t,e){if(!this.isDisposedValue){if(!this.isLoadingFromJson){var n=this.getPropertyByName(t);n&&(e=n.settingValue(this,e))}var r=this.getPropertyValue(t);r&&Array.isArray(r)&&this.arraysInfo&&(!e||Array.isArray(e))?this.isTwoValueEquals(r,e)||this.setArrayPropertyDirectly(t,e):e!==r&&(this.setPropertyValueDirectly(t,e),this.isTwoValueEquals(r,e)||this.propertyValueChanged(t,r,e))}},i.prototype.setArrayPropertyDirectly=function(t,e,n){n===void 0&&(n=!0);var r=this.arraysInfo[t];this.setArray(t,this.getPropertyValue(t),e,r?r.isItemValues:!1,r?n&&r.onPush:null)},i.prototype.setPropertyValueDirectly=function(t,e){this.setPropertyValueCore(this.propertyHash,t,e)},i.prototype.clearPropertyValue=function(t){this.setPropertyValueCore(this.propertyHash,t,null),delete this.propertyHash[t]},i.prototype.onPropertyValueChangedCallback=function(t,e,n,r,o){},i.prototype.itemValuePropertyChanged=function(t,e,n,r){this.onItemValuePropertyChanged.fire(this,{obj:t,name:e,oldValue:n,newValue:r,propertyName:t.ownerPropertyName})},i.prototype.onPropertyValueChanged=function(t,e,n){},i.prototype.propertyValueChanged=function(t,e,n,r,o){if(!this.isLoadingFromJson&&(this.updateBindings(t,n),this.onPropertyValueChanged(t,e,n),this.onPropertyChanged.fire(this,{name:t,oldValue:e,newValue:n,arrayChanges:r,target:o}),this.doPropertyValueChangedCallback(t,e,n,r,this),this.checkConditionPropertyChanged(t),!!this.onPropChangeFunctions))for(var s=0;s<this.onPropChangeFunctions.length;s++)this.onPropChangeFunctions[s].name==t&&this.onPropChangeFunctions[s].func(n,r)},i.prototype.onBindingChanged=function(t,e){this.isLoadingFromJson||this.doPropertyValueChangedCallback("bindings",t,e)},Object.defineProperty(i.prototype,"isInternal",{get:function(){return!1},enumerable:!1,configurable:!0}),i.prototype.doPropertyValueChangedCallback=function(t,e,n,r,o){var s=function(l){l&&l.onPropertyValueChangedCallback&&l.onPropertyValueChangedCallback(t,e,n,o,r)};if(this.isInternal){s(this);return}o||(o=this);var a=this.getSurvey();a||(a=this),s(a),a!==this&&s(this)},i.prototype.addExpressionProperty=function(t,e,n){this.expressionInfo||(this.expressionInfo={}),this.expressionInfo[t]={onExecute:e,canRun:n}},i.prototype.getDataFilteredValues=function(){return{}},i.prototype.getDataFilteredProperties=function(){return{}},i.prototype.runConditionCore=function(t,e){if(this.expressionInfo)for(var n in this.expressionInfo)this.runConditionItemCore(n,t,e)},i.prototype.canRunConditions=function(){return!this.isDesignMode},i.prototype.checkConditionPropertyChanged=function(t){!this.expressionInfo||!this.expressionInfo[t]||this.canRunConditions()&&this.runConditionItemCore(t,this.getDataFilteredValues(),this.getDataFilteredProperties())},i.prototype.runConditionItemCore=function(t,e,n){var r=this,o=this.expressionInfo[t],s=this.getPropertyValue(t);s&&(o.canRun&&!o.canRun(this)||(o.runner||(o.runner=this.createExpressionRunner(s),o.runner.onRunComplete=function(a){o.onExecute(r,a)}),o.runner.expression=s,o.runner.run(e,n)))},i.prototype.doBeforeAsynRun=function(t){this.asynExpressionHash||(this.asynExpressionHash={});var e=!this.isAsyncExpressionRunning;this.asynExpressionHash[t]=!0,e&&this.onAsyncRunningChanged()},i.prototype.doAfterAsynRun=function(t){this.asynExpressionHash&&(delete this.asynExpressionHash[t],this.isAsyncExpressionRunning||this.onAsyncRunningChanged())},i.prototype.onAsyncRunningChanged=function(){},Object.defineProperty(i.prototype,"isAsyncExpressionRunning",{get:function(){return!!this.asynExpressionHash&&Object.keys(this.asynExpressionHash).length>0},enumerable:!1,configurable:!0}),i.prototype.createExpressionRunner=function(t){var e=this,n=new et(t);return n.onBeforeAsyncRun=function(r){e.doBeforeAsynRun(r)},n.onAfterAsyncRun=function(r){e.doAfterAsynRun(r)},n},i.prototype.registerPropertyChangedHandlers=function(t,e,n){n===void 0&&(n=null);for(var r=0;r<t.length;r++)this.registerFunctionOnPropertyValueChanged(t[r],e,n)},i.prototype.unregisterPropertyChangedHandlers=function(t,e){e===void 0&&(e=null);for(var n=0;n<t.length;n++)this.unRegisterFunctionOnPropertyValueChanged(t[n],e)},i.prototype.registerFunctionOnPropertyValueChanged=function(t,e,n){if(n===void 0&&(n=null),this.onPropChangeFunctions||(this.onPropChangeFunctions=[]),n)for(var r=0;r<this.onPropChangeFunctions.length;r++){var o=this.onPropChangeFunctions[r];if(o.name==t&&o.key==n){o.func=e;return}}this.onPropChangeFunctions.push({name:t,func:e,key:n})},i.prototype.registerFunctionOnPropertiesValueChanged=function(t,e,n){n===void 0&&(n=null),this.registerPropertyChangedHandlers(t,e,n)},i.prototype.unRegisterFunctionOnPropertyValueChanged=function(t,e){if(e===void 0&&(e=null),!!this.onPropChangeFunctions)for(var n=0;n<this.onPropChangeFunctions.length;n++){var r=this.onPropChangeFunctions[n];if(r.name==t&&r.key==e){this.onPropChangeFunctions.splice(n,1);return}}},i.prototype.unRegisterFunctionOnPropertiesValueChanged=function(t,e){e===void 0&&(e=null),this.unregisterPropertyChangedHandlers(t,e)},i.prototype.createCustomLocalizableObj=function(t){var e=this.getLocalizableString(t);return e||this.createLocalizableString(t,this,!1,!0)},i.prototype.getLocale=function(){var t=this.getSurvey();return t?t.getLocale():""},i.prototype.getLocalizationString=function(t){return oe(t,this.getLocale())},i.prototype.getLocalizationFormatString=function(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];var r=this.getLocalizationString(t);return!r||!r.format?"":r.format.apply(r,e)},i.prototype.createLocalizableString=function(t,e,n,r){var o=this;n===void 0&&(n=!1),r===void 0&&(r=!1);var s=void 0;r&&(s=r===!0?t:r);var a=new Se(e,n,t,s);a.onStrChanged=function(u,d){o.propertyValueChanged(t,u,d)},this.localizableStrings||(this.localizableStrings={}),this.localizableStrings[t]=a;var l=this.getPropertyByName(t);return a.disableLocalization=l&&l.isLocalizable===!1,a},i.prototype.getLocalizableString=function(t){return this.localizableStrings?this.localizableStrings[t]:null},i.prototype.getLocalizableStringText=function(t,e){e===void 0&&(e=""),i.collectDependency(this,t);var n=this.getLocalizableString(t);if(!n)return"";var r=n.text;return r||e},i.prototype.setLocalizableStringText=function(t,e){var n=this.getLocalizableString(t);if(n){var r=n.text;r!=e&&(n.text=e)}},i.prototype.addUsedLocales=function(t){if(this.localizableStrings)for(var e in this.localizableStrings){var n=this.getLocalizableString(e);n&&this.AddLocStringToUsedLocales(n,t)}if(this.arraysInfo)for(var e in this.arraysInfo){var r=this.getPropertyByName(e);if(!(!r||!r.isSerializable)){var o=this.getPropertyValue(e);if(!(!o||!o.length))for(var s=0;s<o.length;s++){var n=o[s];n&&n.addUsedLocales&&n.addUsedLocales(t)}}}},i.prototype.searchText=function(t,e){var n=[];this.getSearchableLocalizedStrings(n);for(var r=0;r<n.length;r++)n[r].setFindText(t)&&e.push({element:this,str:n[r]})},i.prototype.getSearchableLocalizedStrings=function(t){if(this.localizableStrings){var e=[];this.getSearchableLocKeys(e);for(var n=0;n<e.length;n++){var r=this.getLocalizableString(e[n]);r&&t.push(r)}}if(this.arraysInfo){var o=[];this.getSearchableItemValueKeys(o);for(var n=0;n<o.length;n++){var s=this.getPropertyValue(o[n]);if(s)for(var a=0;a<s.length;a++)t.push(s[a].locText)}}},i.prototype.getSearchableLocKeys=function(t){},i.prototype.getSearchableItemValueKeys=function(t){},i.prototype.AddLocStringToUsedLocales=function(t,e){for(var n=t.getLocales(),r=0;r<n.length;r++)e.indexOf(n[r])<0&&e.push(n[r])},i.prototype.createItemValues=function(t){var e=this,n=this.createNewArray(t,function(r){if(r.locOwner=e,r.ownerPropertyName=t,typeof r.getSurvey=="function"){var o=r.getSurvey();o&&typeof o.makeReactive=="function"&&o.makeReactive(r)}});return this.arraysInfo[t].isItemValues=!0,n},i.prototype.notifyArrayChanged=function(t,e){t.onArrayChanged&&t.onArrayChanged(e)},i.prototype.createNewArrayCore=function(t){var e=null;return this.createArrayCoreHandler&&(e=this.createArrayCoreHandler(this.propertyHash,t)),e||(e=new Array,this.setPropertyValueCore(this.propertyHash,t,e)),e},i.prototype.ensureArray=function(t,e,n){if(e===void 0&&(e=null),n===void 0&&(n=null),!(this.arraysInfo&&this.arraysInfo[t]))return this.createNewArray(t,e,n)},i.prototype.createNewArray=function(t,e,n){e===void 0&&(e=null),n===void 0&&(n=null);var r=this.createNewArrayCore(t);this.arraysInfo||(this.arraysInfo={}),this.arraysInfo[t]={onPush:e,isItemValues:!1};var o=this;return r.push=function(s){var a=Object.getPrototypeOf(r).push.call(r,s);if(!o.isDisposedValue){e&&e(s,r.length-1);var l=new tt(r.length-1,0,[s],[]);o.propertyValueChanged(t,r,r,l),o.notifyArrayChanged(r,l)}return a},r.shift=function(){var s=Object.getPrototypeOf(r).shift.call(r);if(!o.isDisposedValue&&s){n&&n(s);var a=new tt(r.length-1,1,[],[]);o.propertyValueChanged(t,r,r,a),o.notifyArrayChanged(r,a)}return s},r.unshift=function(s){var a=Object.getPrototypeOf(r).unshift.call(r,s);if(!o.isDisposedValue){e&&e(s,r.length-1);var l=new tt(0,0,[s],[]);o.propertyValueChanged(t,r,r,l),o.notifyArrayChanged(r,l)}return a},r.pop=function(){var s=Object.getPrototypeOf(r).pop.call(r);if(!o.isDisposedValue){n&&n(s);var a=new tt(r.length-1,1,[],[]);o.propertyValueChanged(t,r,r,a),o.notifyArrayChanged(r,a)}return s},r.splice=function(s,a){for(var l,u=[],d=2;d<arguments.length;d++)u[d-2]=arguments[d];s||(s=0),a||(a=0);var v=(l=Object.getPrototypeOf(r).splice).call.apply(l,no([r,s,a],u));if(u||(u=[]),!o.isDisposedValue){if(n&&v)for(var V=0;V<v.length;V++)n(v[V]);if(e)for(var V=0;V<u.length;V++)e(u[V],s+V);var T=new tt(s,a,u,v);o.propertyValueChanged(t,r,r,T),o.notifyArrayChanged(r,T)}return v},r},i.prototype.getItemValueType=function(){},i.prototype.setArray=function(t,e,n,r,o){var s=[].concat(e);if(Object.getPrototypeOf(e).splice.call(e,0,e.length),n)for(var a=0;a<n.length;a++){var l=n[a];r&&i.createItemValue&&(l=i.createItemValue(l,this.getItemValueType())),Object.getPrototypeOf(e).push.call(e,l),o&&o(e[a])}var u=new tt(0,s.length,e,s);this.propertyValueChanged(t,s,e,u),this.notifyArrayChanged(e,u)},i.prototype.isTwoValueEquals=function(t,e,n,r){return n===void 0&&(n=!1),r===void 0&&(r=!1),P.isTwoValueEquals(t,e,!1,!n,r)},i.copyObject=function(t,e){for(var n in e){var r=e[n];typeof r=="object"&&(r={},this.copyObject(r,e[n])),t[n]=r}},i.prototype.copyCssClasses=function(t,e){e&&(typeof e=="string"||e instanceof String?t.root=e:i.copyObject(t,e))},i.prototype.getValueInLowCase=function(t){return t&&typeof t=="string"?t.toLowerCase():t},i.prototype.getElementsInDesign=function(t){return[]},Object.defineProperty(i.prototype,"animationAllowed",{get:function(){return this.getIsAnimationAllowed()},enumerable:!1,configurable:!0}),i.prototype.getIsAnimationAllowed=function(){return b.animationEnabled&&this.animationAllowedLock>=0&&!this.isLoadingFromJson&&!this.isDisposed&&(!!this.onElementRerendered||!this.supportOnElementRerenderedEvent)},i.prototype.blockAnimations=function(){this.animationAllowedLock--},i.prototype.releaseAnimations=function(){this.animationAllowedLock++},i.prototype.enableOnElementRerenderedEvent=function(){this.onElementRerenderedEventEnabled=!0},i.prototype.disableOnElementRerenderedEvent=function(){var t;(t=this.onElementRerendered)===null||t===void 0||t.fire(this,{isCancel:!0}),this.onElementRerenderedEventEnabled=!1},Object.defineProperty(i.prototype,"onElementRerendered",{get:function(){return this.supportOnElementRerenderedEvent&&this.onElementRerenderedEventEnabled?this._onElementRerendered:void 0},enumerable:!1,configurable:!0}),i.prototype.afterRerender=function(){var t;(t=this.onElementRerendered)===null||t===void 0||t.fire(this,{isCancel:!1})},i.currentDependencis=void 0,i}(),tt=function(){function i(t,e,n,r){this.index=t,this.deleteCount=e,this.itemsToAdd=n,this.deletedItems=r}return i}(),zn=function(){function i(){}return Object.defineProperty(i.prototype,"isEmpty",{get:function(){return this.length===0},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"length",{get:function(){return this.callbacks?this.callbacks.length:0},enumerable:!1,configurable:!0}),i.prototype.fireByCreatingOptions=function(t,e){if(this.callbacks){for(var n=0;n<this.callbacks.length;n++)if(this.callbacks[n](t,e()),!this.callbacks)return}},i.prototype.fire=function(t,e){if(this.callbacks){for(var n=[].concat(this.callbacks),r=0;r<n.length;r++)if(n[r](t,e),!this.callbacks)return}},i.prototype.clear=function(){this.callbacks=void 0},i.prototype.add=function(t){this.hasFunc(t)||(this.callbacks||(this.callbacks=new Array),this.callbacks.push(t),this.fireCallbackChanged())},i.prototype.remove=function(t){if(this.hasFunc(t)){var e=this.callbacks.indexOf(t,0);this.callbacks.splice(e,1),this.fireCallbackChanged()}},i.prototype.hasFunc=function(t){return this.callbacks==null?!1:this.callbacks.indexOf(t,0)>-1},i.prototype.fireCallbackChanged=function(){this.onCallbacksChanged&&this.onCallbacksChanged()},i}(),Ve=function(i){kl(t,i);function t(){return i!==null&&i.apply(this,arguments)||this}return t}(zn),zl=function(){var i=function(t,e){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(n[o]=r[o])},i(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");i(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),Hn=function(){function i(t,e,n,r,o){var s=this;r===void 0&&(r=null),o===void 0&&(o=function(a){queueMicrotask?queueMicrotask(a):a()}),this.container=t,this.model=e,this.itemsSelector=n,this.dotsItemSize=r,this.delayedUpdateFunction=o,this.resizeObserver=void 0,this.isInitialized=!1,this.minDimensionConst=56,this.separatorSize=17,this.separatorAddConst=1,this.paddingSizeConst=8,this.dotsSizeConst=48,this.dotsIconClass=".sv-dots",this.iconClass=".sv-svg-icon",this.recalcMinDimensionConst=!0,this.getComputedStyle=function(a){return I.getComputedStyle(a)},this.model.updateCallback=function(a){a&&(s.isInitialized=!1),setTimeout(function(){s.process()},1)},typeof ResizeObserver<"u"&&(this.resizeObserver=new ResizeObserver(function(a){E.requestAnimationFrame(function(){s.process()})}),this.resizeObserver.observe(this.container.parentElement))}return i.prototype.getDimensions=function(t){return{scroll:t.scrollWidth,offset:t.offsetWidth}},i.prototype.getAvailableSpace=function(){var t=this.getComputedStyle(this.container),e=this.container.offsetWidth;return t.boxSizing==="border-box"&&(e-=parseFloat(t.paddingLeft)+parseFloat(t.paddingRight)),e},i.prototype.calcItemSize=function(t){return t.offsetWidth||t.getBoundingClientRect().width},i.prototype.calcMinDimension=function(t,e){var n;if(e&&(!t.iconSize||t.iconSize==="auto")){var r=e.querySelector(this.iconClass);n=r&&this.calcItemSize(r)}else t.iconSize&&typeof t.iconSize=="number"&&this.recalcMinDimensionConst&&(n=t.iconSize);var o=n?n+2*this.paddingSizeConst:this.minDimensionConst;return t.canShrink?o+(t.needSeparator?this.separatorSize:0):t.maxDimension},i.prototype.calcItemsSizes=function(){var t=this;if(!(!this.container||this.isInitialized)){var e=this.model.actions,n=this.container.querySelectorAll(this.itemsSelector);(n||[]).forEach(function(r,o){var s=e[o];s&&t.calcActionDimensions(s,r)})}},i.prototype.calcActionDimensions=function(t,e){t.maxDimension=this.calcItemSize(e),t.minDimension=this.calcMinDimension(t,e)},Object.defineProperty(i.prototype,"isContainerVisible",{get:function(){return!!this.container&&ar(this.container)},enumerable:!1,configurable:!0}),i.prototype.process=function(){var t=this;if(this.isContainerVisible&&!this.model.isResponsivenessDisabled){this.isInitialized||this.model.setActionsMode("large");var e=function(){var r,o=t.dotsItemSize;if(!t.dotsItemSize){var s=(r=t.container)===null||r===void 0?void 0:r.querySelector(t.dotsIconClass);o=s&&t.calcItemSize(s)||t.dotsSizeConst}t.model.fit(t.getAvailableSpace(),o)};if(this.isInitialized)e();else{var n=function(){t.container&&(t.calcItemsSizes(),t.isInitialized=!0,e())};this.delayedUpdateFunction?this.delayedUpdateFunction(n):n()}}},i.prototype.dispose=function(){this.model.updateCallback=void 0,this.resizeObserver&&this.resizeObserver.disconnect(),this.resizeObserver=void 0,this.container=void 0},i}(),Hl=function(i){zl(t,i);function t(e,n,r,o,s,a){s===void 0&&(s=40);var l=i.call(this,e,n,r,o,a)||this;return l.minDimensionConst=s,l.recalcMinDimensionConst=!1,l}return t.prototype.getDimensions=function(){return{scroll:this.container.scrollHeight,offset:this.container.offsetHeight}},t.prototype.getAvailableSpace=function(){var e=this.getComputedStyle(this.container),n=this.container.offsetHeight;return e.boxSizing==="border-box"&&(n-=parseFloat(e.paddingTop)+parseFloat(e.paddingBottom)),n},t.prototype.calcItemSize=function(e){return e.offsetHeight},t.prototype.calcActionDimensions=function(e,n){e.maxDimension=this.calcItemSize(n),e.minDimension=this.calcItemSize(n)},t}(Hn),O=function(){function i(){this.classes=[]}return i.prototype.isEmpty=function(){return this.toString()===""},i.prototype.append=function(t,e){return e===void 0&&(e=!0),t&&e&&(typeof t=="string"&&(t=t.trim()),this.classes.push(t)),this},i.prototype.toString=function(){return this.classes.join(" ")},i}(),Ul=function(){var i=function(t,e){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(n[o]=r[o])},i(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");i(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),Tt=function(i,t,e,n){var r=arguments.length,o=r<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,e):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(i,t,e,n);else for(var a=i.length-1;a>=0;a--)(s=i[a])&&(o=(r<3?s(o):r>3?s(t,e,o):s(t,e))||o);return r>3&&o&&Object.defineProperty(t,e,o),o},Un={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"},Ee=function(i){Ul(t,i);function t(){var e=i!==null&&i.apply(this,arguments)||this;return e.sizeMode="default",e}return t.prototype.getMarkdownHtml=function(e,n){return this.locOwner?this.locOwner.getMarkdownHtml(e,n):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(){i.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(n){return n.visible}),this.updateCallback&&this.updateCallback(e)},t.prototype.onSet=function(){var e=this;this.actions.forEach(function(n){e.setActionCssClasses(n)}),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 e.visible!==!1})},enumerable:!1,configurable:!0}),t.prototype.getRootCss=function(){var e=this.sizeMode==="small"?this.cssClasses.smallSizeMode:this.cssClasses.defaultSizeMode;return new O().append(this.cssClasses.root+(e?" "+e:"")+(this.containerCss?" "+this.containerCss:"")).append(this.cssClasses.root+"--empty",this.isEmpty).toString()},t.prototype.getDefaultCssClasses=function(){return Un},Object.defineProperty(t.prototype,"cssClasses",{get:function(){return this.cssClassesValue||(this.cssClassesValue=this.getDefaultCssClasses()),this.cssClassesValue},set:function(e){var n=this;this.cssClassesValue={},this.copyCssClasses(this.cssClassesValue,this.getDefaultCssClasses()),mt(e,this.cssClasses),this.actions.forEach(function(r){n.setActionCssClasses(r)})},enumerable:!1,configurable:!0}),t.prototype.createAction=function(e){return e instanceof Zt?e:new $(e)},t.prototype.addAction=function(e,n){n===void 0&&(n=!0);var r=this.createAction(e);if(n&&!this.isActionVisible(r))return r;var o=[].concat(this.actions,r);return this.sortItems(o),this.actions=o,r},t.prototype.setItems=function(e,n){var r=this;n===void 0&&(n=!0);var o=[];e.forEach(function(s){(!n||r.isActionVisible(s))&&o.push(r.createAction(s))}),n&&this.sortItems(o),this.actions=o},t.prototype.sortItems=function(e){this.hasSetVisibleIndex(e)&&e.sort(this.compareByVisibleIndex)},t.prototype.hasSetVisibleIndex=function(e){for(var n=0;n<e.length;n++){var r=e[n].visibleIndex;if(r!==void 0&&r>=0)return!0}return!1},t.prototype.compareByVisibleIndex=function(e,n){return e.visibleIndex-n.visibleIndex},t.prototype.isActionVisible=function(e){return e.visibleIndex>=0||e.visibleIndex===void 0},t.prototype.popupAfterShowCallback=function(e){},t.prototype.mouseOverHandler=function(e){var n=this;e.isHovered=!0,this.actions.forEach(function(r){r===e&&e.popupModel&&(e.showPopupDelayed(n.subItemsShowDelay),n.popupAfterShowCallback(e))})},t.prototype.initResponsivityManager=function(e,n){},t.prototype.resetResponsivityManager=function(){},t.prototype.getActionById=function(e){for(var n=0;n<this.actions.length;n++)if(this.actions[n].id===e)return this.actions[n];return null},t.prototype.dispose=function(){i.prototype.dispose.call(this),this.resetResponsivityManager(),this.actions.forEach(function(e){return e.dispose()}),this.actions.length=0},Tt([ae({onSet:function(e,n){n.onSet()},onPush:function(e,n,r){r.onPush(e)},onRemove:function(e,n,r){r.onRemove(e)}})],t.prototype,"actions",void 0),Tt([h({})],t.prototype,"containerCss",void 0),Tt([h({defaultValue:!1})],t.prototype,"isEmpty",void 0),Tt([h({defaultValue:300})],t.prototype,"subItemsShowDelay",void 0),Tt([h({defaultValue:300})],t.prototype,"subItemsHideDelay",void 0),t}(z),yt=function(){function i(){}return i.focusElement=function(t){t&&t.focus()},i.visibility=function(t){var e=I.getComputedStyle(t);return e.display==="none"||e.visibility==="hidden"?!1:t.parentElement?this.visibility(t.parentElement):!0},i.getNextElementPreorder=function(t){var e=t.nextElementSibling?t.nextElementSibling:t.parentElement.firstElementChild;return this.visibility(e)?e:this.getNextElementPreorder(e)},i.getNextElementPostorder=function(t){var e=t.previousElementSibling?t.previousElementSibling:t.parentElement.lastElementChild;return this.visibility(e)?e:this.getNextElementPostorder(e)},i.hasHorizontalScroller=function(t){return t?t.scrollWidth>t.offsetWidth:!1},i.hasVerticalScroller=function(t){return t?t.scrollHeight>t.offsetHeight:!1},i}(),Wl=function(){var i=function(t,e){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(n[o]=r[o])},i(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");i(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),ve=function(i,t,e,n){var r=arguments.length,o=r<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,e):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(i,t,e,n);else for(var a=i.length-1;a>=0;a--)(s=i[a])&&(o=(r<3?s(o):r>3?s(t,e,o):s(t,e))||o);return r>3&&o&&Object.defineProperty(t,e,o),o},$l={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",itemGroupSelected:"sv-list__item--group-selected",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"},Rt=function(i){Wl(t,i);function t(e,n,r,o,s){var a=i.call(this)||this;if(a.onSelectionChanged=n,a.allowSelection=r,a.elementId=s,a.onItemClick=function(u){if(!a.isItemDisabled(u)){a.isExpanded=!1,a.allowSelection&&(a.selectedItem=u),a.onSelectionChanged&&a.onSelectionChanged(u);var d=u.action;d&&d(u)}},a.onItemHover=function(u){a.mouseOverHandler(u)},a.isItemDisabled=function(u){return u.enabled!==void 0&&!u.enabled},a.isItemSelected=function(u){return a.areSameItems(a.selectedItem,u)},a.isItemFocused=function(u){return a.areSameItems(a.focusedItem,u)},a.getListClass=function(){return new O().append(a.cssClasses.itemsContainer).append(a.cssClasses.itemsContainerFiltering,!!a.filterString&&a.visibleActions.length!==a.visibleItems.length).toString()},a.getItemClass=function(u){var d=a.isItemSelected(u);return new O().append(a.cssClasses.item).append(a.cssClasses.itemWithIcon,!!u.iconName).append(a.cssClasses.itemDisabled,a.isItemDisabled(u)).append(a.cssClasses.itemFocused,a.isItemFocused(u)).append(a.cssClasses.itemSelected,!u.hasSubItems&&d).append(a.cssClasses.itemGroup,u.hasSubItems).append(a.cssClasses.itemGroupSelected,u.hasSubItems&&d).append(a.cssClasses.itemHovered,u.isHovered).append(a.cssClasses.itemTextWrap,a.textWrapEnabled).append(u.css).toString()},a.getItemStyle=function(u){var d=u.level||0;return{"--sjs-list-item-level":d+1}},Object.keys(e).indexOf("items")!==-1){var l=e;Object.keys(l).forEach(function(u){switch(u){case"items":a.setItems(l.items);break;case"onFilterStringChangedCallback":a.setOnFilterStringChangedCallback(l.onFilterStringChangedCallback);break;case"onTextSearchCallback":a.setOnTextSearchCallback(l.onTextSearchCallback);break;default:a[u]=l[u]}}),a.updateActionsIds()}else a.setItems(e),a.selectedItem=o;return a}return t.prototype.hasText=function(e,n){if(!n)return!0;var r=e.title||"";if(this.onTextSearchCallback)return this.onTextSearchCallback(e,n);var o=r.toLocaleLowerCase();return o=b.comparator.normalizeTextCallback(o,"filter"),o.indexOf(n.toLocaleLowerCase())>-1},t.prototype.isItemVisible=function(e){return e.visible&&(!this.shouldProcessFilter||this.hasText(e,this.filterString))},t.prototype.getRenderedActions=function(){var e=i.prototype.getRenderedActions.call(this);if(this.filterString){var n=[];return e.forEach(function(r){n.push(r),r.items&&r.items.forEach(function(o){var s=new $(o);s.iconName||(s.iconName=r.iconName),n.push(s)})}),n}return e},Object.defineProperty(t.prototype,"visibleItems",{get:function(){var e=this;return this.visibleActions.filter(function(n){return e.isItemVisible(n)})},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"shouldProcessFilter",{get:function(){return!this.onFilterStringChangedCallback},enumerable:!1,configurable:!0}),t.prototype.onFilterStringChanged=function(e){this.onFilterStringChangedCallback&&this.onFilterStringChangedCallback(e),this.updateIsEmpty()},t.prototype.updateIsEmpty=function(){var e=this;this.isEmpty=this.renderedActions.filter(function(n){return e.isItemVisible(n)}).length===0},t.prototype.scrollToItem=function(e,n){var r=this;n===void 0&&(n=0),setTimeout(function(){if(r.listContainerHtmlElement){var o=r.listContainerHtmlElement.querySelector(be(e));o&&setTimeout(function(){o.scrollIntoView({behavior:"smooth",block:"nearest",inline:"start"})},n)}},n)},t.prototype.setOnFilterStringChangedCallback=function(e){this.onFilterStringChangedCallback=e},t.prototype.setOnTextSearchCallback=function(e){this.onTextSearchCallback=e},t.prototype.setItems=function(e,n){n===void 0&&(n=!0),i.prototype.setItems.call(this,e,n),this.updateActionsIds(),!this.isAllDataLoaded&&this.actions.length&&this.actions.push(this.loadingIndicator)},t.prototype.updateActionsIds=function(){var e=this;this.elementId&&this.renderedActions.forEach(function(n){n.elementId=e.elementId+n.id})},t.prototype.setSearchEnabled=function(e){this.searchEnabled=e,this.showSearchClearButton=e},t.prototype.onSet=function(){this.showFilter=this.searchEnabled&&(this.forceShowFilter||(this.actions||[]).length>t.MINELEMENTCOUNT),i.prototype.onSet.call(this)},t.prototype.getDefaultCssClasses=function(){return $l},t.prototype.popupAfterShowCallback=function(e){this.addScrollEventListener(function(){e.hidePopup()})},t.prototype.onItemLeave=function(e){e.hidePopupDelayed(this.subItemsHideDelay)},t.prototype.areSameItems=function(e,n){return this.areSameItemsCallback?this.areSameItemsCallback(e,n):!!e&&!!n&&e.id==n.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(be(this.cssClasses.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 $({id:"loadingIndicator",title:this.loadingText,action:function(){},css:this.cssClasses.loadingIndicator})),this.loadingIndicatorValue},enumerable:!1,configurable:!0}),t.prototype.goToItems=function(e){if(e.key==="ArrowDown"||e.keyCode===40){var n=e.target.parentElement,r=n.parentElement.querySelector("ul"),o=pu(r);r&&o&&(yt.focusElement(o),e.preventDefault())}},t.prototype.onMouseMove=function(e){this.resetFocusedItem()},t.prototype.onKeyDown=function(e){var n=e.target;e.key==="ArrowDown"||e.keyCode===40?(yt.focusElement(yt.getNextElementPreorder(n)),e.preventDefault()):(e.key==="ArrowUp"||e.keyCode===38)&&(yt.focusElement(yt.getNextElementPostorder(n)),e.preventDefault())},t.prototype.onPointerDown=function(e,n){},t.prototype.refresh=function(){this.filterString!==""?this.filterString="":this.updateIsEmpty(),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(n){return n.visible&&e.isItemSelected(n)})[0],this.focusedItem||this.focusFirstVisibleItem()},t.prototype.focusNextVisibleItem=function(){if(!this.focusedItem)this.initFocusedItem();else{var e=this.visibleItems,n=e.indexOf(this.focusedItem),r=e[n+1];r?this.focusedItem=r:this.focusFirstVisibleItem()}},t.prototype.focusPrevVisibleItem=function(){if(!this.focusedItem)this.initFocusedItem();else{var e=this.visibleItems,n=e.indexOf(this.focusedItem),r=e[n-1];r?this.focusedItem=r:this.focusLastVisibleItem()}},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=yt.hasVerticalScroller(this.scrollableContainer))},t.prototype.scrollToFocusedItem=function(){this.scrollToItem(this.cssClasses.itemFocused)},t.prototype.scrollToSelectedItem=function(){this.selectedItem&&this.selectedItem.items&&this.selectedItem.items.length>0?this.scrollToItem(this.cssClasses.itemGroupSelected,110):this.scrollToItem(this.cssClasses.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(){i.prototype.dispose.call(this),this.loadingIndicatorValue&&this.loadingIndicatorValue.dispose(),this.listContainerHtmlElement=void 0},t.INDENT=16,t.MINELEMENTCOUNT=10,ve([h({defaultValue:!0,onSet:function(e,n){n.onSet()}})],t.prototype,"searchEnabled",void 0),ve([h({defaultValue:!1})],t.prototype,"showFilter",void 0),ve([h({defaultValue:!1})],t.prototype,"forceShowFilter",void 0),ve([h({defaultValue:!1})],t.prototype,"isExpanded",void 0),ve([h({})],t.prototype,"selectedItem",void 0),ve([h()],t.prototype,"focusedItem",void 0),ve([h({onSet:function(e,n){n.onFilterStringChanged(n.filterString)}})],t.prototype,"filterString",void 0),ve([h({defaultValue:!1})],t.prototype,"hasVerticalScroller",void 0),ve([h({defaultValue:!0})],t.prototype,"isAllDataLoaded",void 0),ve([h({defaultValue:!1})],t.prototype,"showSearchClearButton",void 0),ve([h({defaultValue:!0})],t.prototype,"renderElements",void 0),ve([h({defaultValue:!1})],t.prototype,"textWrapEnabled",void 0),ve([h({defaultValue:"sv-list-item-content"})],t.prototype,"itemComponent",void 0),t}(Ee),Jl=function(){var i=function(t,e){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(n[o]=r[o])},i(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");i(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),he=function(i,t,e,n){var r=arguments.length,o=r<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,e):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(i,t,e,n);else for(var a=i.length-1;a>=0;a--)(s=i[a])&&(o=(r<3?s(o):r>3?s(t,e,o):s(t,e))||o);return r>3&&o&&Object.defineProperty(t,e,o),o},Et=function(i){Jl(t,i);function t(e,n,r,o){var s=i.call(this)||this;if(s.focusFirstInputSelector="",s.onCancel=function(){},s.onApply=function(){return!0},s.onHide=function(){},s.onShow=function(){},s.onDispose=function(){},s.onVisibilityChanged=s.addEvent(),s.onFooterActionsCreated=s.addEvent(),s.onRecalculatePosition=s.addEvent(),s.contentComponentName=e,s.contentComponentData=n,r&&typeof r=="string")s.verticalPosition=r,s.horizontalPosition=o;else if(r){var a=r;for(var l in a)s[l]=a[l]}return s}return 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 n={actions:e};return this.onFooterActionsCreated.fire(this,n),n.actions},t.prototype.updateDisplayMode=function(e){switch(this.displayMode!==e&&(this.setWidthByTarget=e==="dropdown"),e){case"dropdown":{this.displayMode="popup";break}case"popup":{this.displayMode="overlay",this.overlayDisplayMode="tablet-dropdown-overlay";break}case"overlay":{this.displayMode="overlay",this.overlayDisplayMode="dropdown-overlay";break}}},t.prototype.onHiding=function(){this.refreshInnerModel(),this.onHide()},t.prototype.dispose=function(){i.prototype.dispose.call(this),this.onDispose()},he([h()],t.prototype,"contentComponentName",void 0),he([h()],t.prototype,"contentComponentData",void 0),he([h({defaultValue:"bottom"})],t.prototype,"verticalPosition",void 0),he([h({defaultValue:"left"})],t.prototype,"horizontalPosition",void 0),he([h({defaultValue:!0})],t.prototype,"showPointer",void 0),he([h({defaultValue:!1})],t.prototype,"isModal",void 0),he([h({defaultValue:!0})],t.prototype,"canShrink",void 0),he([h({defaultValue:!0})],t.prototype,"isFocusedContent",void 0),he([h({defaultValue:!0})],t.prototype,"isFocusedContainer",void 0),he([h({defaultValue:""})],t.prototype,"cssClass",void 0),he([h({defaultValue:""})],t.prototype,"title",void 0),he([h({defaultValue:"auto"})],t.prototype,"overlayDisplayMode",void 0),he([h({defaultValue:"popup"})],t.prototype,"displayMode",void 0),he([h({defaultValue:"flex"})],t.prototype,"positionMode",void 0),t}(z);function Gl(i,t,e,n,r,o,s,a,l){return r===void 0&&(r=function(){}),o===void 0&&(o=function(){}),l===void 0&&(l="popup"),Fe.warn("The `showModal()` and `createDialogOptions()` methods are obsolete. Use the `showDialog()` method instead."),{componentName:i,data:t,onApply:e,onCancel:n,onHide:r,onShow:o,cssClass:s,title:a,displayMode:l}}var ro=function(){var i=function(t,e){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(n[o]=r[o])},i(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");i(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),W=function(i,t,e,n){var r=arguments.length,o=r<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,e):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(i,t,e,n);else for(var a=i.length-1;a>=0;a--)(s=i[a])&&(o=(r<3?s(o):r>3?s(t,e,o):s(t,e))||o);return r>3&&o&&Object.defineProperty(t,e,o),o},Kl=function(i,t){for(var e=0,n=t.length,r=i.length;e<n;e++,r++)i[r]=t[e];return i};function Yl(i,t,e){return t.locOwner=e,Wn(i,t,t)}function Wn(i,t,e){var n,r=t.onSelectionChanged;t.onSelectionChanged=function(l){for(var u=[],d=1;d<arguments.length;d++)u[d-1]=arguments[d];a.hasTitle&&(a.title=l.title),r&&r(l,u)};var o=$n(t,e);o.getTargetCallback=io;var s=Object.assign({},i,{component:"sv-action-bar-item-dropdown",popupModel:o,action:function(l,u){i.action&&i.action(),o.isFocusedContent=o.isFocusedContent||!u,o.show()}}),a=new $(s);return a.data=(n=o.contentComponentData)===null||n===void 0?void 0:n.model,a}function $n(i,t){var e=new Rt(i);e.onSelectionChanged=function(o){i.onSelectionChanged&&i.onSelectionChanged(o),r.hide()};var n=t||{};n.onDispose=function(){e.dispose()};var r=new Et("sv-list",{model:e},n);return r.isFocusedContent=e.showFilter,r.onShow=function(){n.onShow&&n.onShow(),e.scrollToSelectedItem()},r}function io(i){return i==null?void 0:i.previousElementSibling}var Zt=function(i){ro(t,i);function t(){var e=i!==null&&i.apply(this,arguments)||this;return e.rendredIdValue=t.getNextRendredId(),e}return 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||Un},set:function(e){this.cssClassesValue=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isVisible",{get:function(){return this.visible&&this.mode!=="popup"&&this.mode!=="removed"},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"disabled",{get:function(){return this.enabled!==void 0&&!this.enabled},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"canShrink",{get:function(){return!this.disableShrink&&!!this.iconName},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hasTitle",{get:function(){return(this.mode!="small"&&(this.showTitle||this.showTitle===void 0)||!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 O().append(this.cssClasses.itemTitle).append(this.cssClasses.itemTitleWithIcon,!!this.iconName).toString()},t.prototype.getActionBarItemCss=function(){return new O().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 O().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 n=this;this.clearPopupTimeouts(),this.showPopupTimeout=setTimeout(function(){n.clearPopupTimeouts(),n.showPopup()},e)},t.prototype.hidePopupDelayed=function(e){var n=this,r;!((r=this.popupModel)===null||r===void 0)&&r.isVisible?(this.clearPopupTimeouts(),this.hidePopupTimeout=setTimeout(function(){n.clearPopupTimeouts(),n.hidePopup(),n.isHovered=!1},e)):(this.clearPopupTimeouts(),this.isHovered=!1)},t.renderedId=1,W([h()],t.prototype,"tooltip",void 0),W([h()],t.prototype,"showTitle",void 0),W([h()],t.prototype,"innerCss",void 0),W([h()],t.prototype,"active",void 0),W([h()],t.prototype,"pressed",void 0),W([h()],t.prototype,"data",void 0),W([h()],t.prototype,"popupModel",void 0),W([h()],t.prototype,"needSeparator",void 0),W([h()],t.prototype,"template",void 0),W([h({defaultValue:"large"})],t.prototype,"mode",void 0),W([h()],t.prototype,"visibleIndex",void 0),W([h()],t.prototype,"disableTabStop",void 0),W([h()],t.prototype,"disableShrink",void 0),W([h()],t.prototype,"disableHide",void 0),W([h({defaultValue:!1})],t.prototype,"needSpace",void 0),W([h()],t.prototype,"ariaChecked",void 0),W([h()],t.prototype,"ariaExpanded",void 0),W([h({defaultValue:"button"})],t.prototype,"ariaRole",void 0),W([h()],t.prototype,"iconName",void 0),W([h({defaultValue:24})],t.prototype,"iconSize",void 0),W([h()],t.prototype,"markerIconName",void 0),W([h()],t.prototype,"css",void 0),W([h({defaultValue:!1})],t.prototype,"isPressed",void 0),W([h({defaultValue:!1})],t.prototype,"isHovered",void 0),t}(z),$=function(i){ro(t,i);function t(e){var n=i.call(this)||this;n.locTitleChanged=function(){var s=n.locTitle.renderedHtml;n.setPropertyValue("_title",s||void 0)};var r=e instanceof t?e.innerItem:e;if(n.innerItem=r,n.locTitle=r?r.locTitle:null,r)for(var o in r)o==="locTitle"||o==="title"&&n.locTitle&&n.title||(n[o]=r[o]);return n.locTitleName&&n.locTitleChanged(),n.registerFunctionOnPropertyValueChanged("_title",function(){n.raiseUpdate(!0)}),n.locStrChangedInPopupModel(),n}return t.prototype.raiseUpdate=function(e){e===void 0&&(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=Kl([],e.items);var n=Object.assign({},e);n.searchEnabled=!1;var r=$n(n,{horizontalPosition:"right",showPointer:!1,canShrink:!1});r.cssClass="sv-popup-inner",this.popupModel=r},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(){i.prototype.locStrsChanged.call(this),this.locTooltipChanged(),this.locStrChangedInPopupModel()},t.prototype.doAction=function(e){var n=e.originalEvent?e.originalEvent:e;return this.action(this,n.isTrusted),n.preventDefault(),n.stopPropagation(),!0},t.prototype.doMouseDown=function(e){this.isMouseDown=!0},t.prototype.doFocus=function(e){if(this.onFocus){var n=e.originalEvent?e.originalEvent:e;this.onFocus(this.isMouseDown,n)}this.isMouseDown=!1},t.prototype.locStrChangedInPopupModel=function(){if(!(!this.popupModel||!this.popupModel.contentComponentData||!this.popupModel.contentComponentData.model)){var e=this.popupModel.contentComponentData.model;if(Array.isArray(e.actions)){var n=e.actions;n.forEach(function(r){r.locStrsChanged&&r.locStrsChanged()})}}},t.prototype.locTooltipChanged=function(){this.locTooltipName&&(this.tooltip=oe(this.locTooltipName,this.locTitle.locale))},t.prototype.getLocale=function(){return this.owner?this.owner.getLocale():""},t.prototype.getMarkdownHtml=function(e,n){return this.owner?this.owner.getMarkdownHtml(e,n):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&&(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.locTitleValue&&this.locTitleValue.onStringChanged.remove(this.locTitleChanged),this.locTitleChanged=void 0,this.action=void 0,i.prototype.dispose.call(this),this.popupModel&&this.popupModel.dispose()},W([h()],t.prototype,"id",void 0),W([h({defaultValue:!0,onSet:function(e,n){n.raiseUpdate()}})],t.prototype,"_visible",void 0),W([h({onSet:function(e,n){n.locTooltipChanged()}})],t.prototype,"locTooltipName",void 0),W([h()],t.prototype,"_enabled",void 0),W([h()],t.prototype,"action",void 0),W([h()],t.prototype,"onFocus",void 0),W([h()],t.prototype,"_component",void 0),W([h()],t.prototype,"items",void 0),W([h({onSet:function(e,n){n.locTitleValue.text!==e&&(n.locTitleValue.text=e)}})],t.prototype,"_title",void 0),t}(Zt),Xl=function(){function i(t){this.item=t,this.funcKey="sv-dropdown-action",this.setupPopupCallbacks()}return i.prototype.setupPopupCallbacks=function(){var t=this,e=this.popupModel=this.item.popupModel;e&&e.registerPropertyChangedHandlers(["isVisible"],function(){e.isVisible?t.item.pressed=!0:t.item.pressed=!1},this.funcKey)},i.prototype.removePopupCallbacks=function(){this.popupModel&&this.popupModel.unregisterPropertyChangedHandlers(["isVisible"],this.funcKey)},i.prototype.dispose=function(){this.removePopupCallbacks()},i}(),Zl=function(){var i=function(t,e){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(n[o]=r[o])},i(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");i(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),en=function(i){Zl(t,i);function t(){var e=i.call(this)||this;return e.minVisibleItemsCount=0,e.isResponsivenessDisabled=!1,e.dotsItem=Wn({id:"dotsItem-id"+t.ContainerID++,css:"sv-dots",innerCss:"sv-dots__item",iconName:"icon-more",visible:!1,tooltip:oe("more")},{items:[],allowSelection:!1}),e}return t.prototype.hideItemsGreaterN=function(e){var n=this.getActionsToHide();e=Math.max(e,this.minVisibleItemsCount-(this.visibleActions.length-n.length));var r=[];n.forEach(function(o){e<=0&&(o.removePriority?o.mode="removed":(o.mode="popup",r.push(o.innerItem))),e--}),this.hiddenItemsListModel.setItems(r)},t.prototype.getActionsToHide=function(){return this.visibleActions.filter(function(e){return!e.disableHide}).sort(function(e,n){return e.removePriority||0-n.removePriority||0})},t.prototype.getVisibleItemsCount=function(e){this.visibleActions.filter(function(s){return s.disableHide}).forEach(function(s){return e-=s.minDimension});for(var n=this.getActionsToHide().map(function(s){return s.minDimension}),r=0,o=0;o<n.length;o++)if(r+=n[o],r>e)return o;return o},t.prototype.updateItemMode=function(e,n){for(var r=this.visibleActions,o=r.length-1;o>=0;o--)n>e&&!r[o].disableShrink?(n-=r[o].maxDimension-r[o].minDimension,r[o].mode="small"):r[o].mode="large";if(n>e){var s=this.visibleActions.filter(function(a){return a.removePriority});s.sort(function(a,l){return a.removePriority-l.removePriority});for(var o=0;o<s.length;o++)n>e&&(n-=r[o].disableShrink?s[o].maxDimension:s[o].minDimension,s[o].mode="removed")}},Object.defineProperty(t.prototype,"hiddenItemsListModel",{get:function(){return this.dotsItem.data},enumerable:!1,configurable:!0}),t.prototype.onSet=function(){var e=this;this.actions.forEach(function(n){return n.updateCallback=function(r){return e.raiseUpdate(r)}}),i.prototype.onSet.call(this)},t.prototype.onPush=function(e){var n=this;e.updateCallback=function(r){return n.raiseUpdate(r)},i.prototype.onPush.call(this,e)},t.prototype.getRenderedActions=function(){return this.actions.length===1&&this.actions[0].iconName?this.actions:this.actions.concat([this.dotsItem])},t.prototype.raiseUpdate=function(e){this.isResponsivenessDisabled||i.prototype.raiseUpdate.call(this,e)},t.prototype.fit=function(e,n){if(!(e<=0)){this.dotsItem.visible=!1;var r=0,o=0,s=this.visibleActions;s.forEach(function(a){r+=a.minDimension,o+=a.maxDimension}),e>=o?this.setActionsMode("large"):e<r?(this.setActionsMode("small"),this.hideItemsGreaterN(this.getVisibleItemsCount(e-n)),this.dotsItem.visible=!!this.hiddenItemsListModel.actions.length):this.updateItemMode(e,o)}},t.prototype.initResponsivityManager=function(e,n){if(this.responsivityManager){if(this.responsivityManager.container==e)return;this.responsivityManager.dispose()}this.responsivityManager=new Hn(e,this,":scope > .sv-action:not(.sv-dots) > .sv-action__content",null,n)},t.prototype.resetResponsivityManager=function(){this.responsivityManager&&(this.responsivityManager.dispose(),this.responsivityManager=void 0)},t.prototype.setActionsMode=function(e){this.actions.forEach(function(n){e=="small"&&n.disableShrink?n.mode="large":n.mode=e})},t.prototype.dispose=function(){i.prototype.dispose.call(this),this.dotsItem.data.dispose(),this.dotsItem.dispose(),this.resetResponsivityManager()},t.ContainerID=1,t}(Ee);(function(){function i(t,e){var n=this;e===void 0&&(e=!1),this.func=t,this.isMultiple=e,this._isCompleted=!1,this.execute=function(){n._isCompleted||(n.func(),n._isCompleted=!n.isMultiple)}}return i.prototype.discard=function(){this._isCompleted=!0},Object.defineProperty(i.prototype,"isCompleted",{get:function(){return this._isCompleted},enumerable:!1,configurable:!0}),i})();function eu(i){var t=this,e=!1,n=!1,r;return{run:function(){for(var o=[],s=0;s<arguments.length;s++)o[s]=arguments[s];n=!1,r=o,e||(e=!0,queueMicrotask(function(){n||i.apply(t,r),n=!1,e=!1}))},cancel:function(){n=!0}}}var It=function(){var i=function(t,e){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(n[o]=r[o])},i(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");i(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),Jn=function(){function i(){this.cancelQueue=[]}return i.prototype.getMsFromRule=function(t){return t==="auto"?0:Number(t.slice(0,-1).replace(",","."))*1e3},i.prototype.reflow=function(t){return t.offsetHeight},i.prototype.getAnimationsCount=function(t){var e="";return getComputedStyle&&(e=getComputedStyle(t).animationName),e&&e!="none"?e.split(", ").length:0},i.prototype.getAnimationDuration=function(t){for(var e=getComputedStyle(t),n=e.animationDelay.split(", "),r=e.animationDuration.split(", "),o=0,s=0;s<Math.max(r.length,n.length);s++)o=Math.max(o,this.getMsFromRule(r[s%r.length])+this.getMsFromRule(n[s%n.length]));return o},i.prototype.addCancelCallback=function(t){this.cancelQueue.push(t)},i.prototype.removeCancelCallback=function(t){this.cancelQueue.indexOf(t)>=0&&this.cancelQueue.splice(this.cancelQueue.indexOf(t),1)},i.prototype.onAnimationEnd=function(t,e,n){var r=this,o,s=this.getAnimationsCount(t),a=function(u){u===void 0&&(u=!0),e(u),clearTimeout(o),r.removeCancelCallback(a),t.removeEventListener("animationend",l)},l=function(u){u.target==u.currentTarget&&--s<=0&&a(!1)};s>0?(t.addEventListener("animationend",l),this.addCancelCallback(a),o=setTimeout(function(){a(!1)},this.getAnimationDuration(t)+10)):e(!0)},i.prototype.afterAnimationRun=function(t,e){t&&e&&e.onAfterRunAnimation&&e.onAfterRunAnimation(t)},i.prototype.beforeAnimationRun=function(t,e){t&&e&&e.onBeforeRunAnimation&&e.onBeforeRunAnimation(t)},i.prototype.getCssClasses=function(t){return t.cssClass.replace(/\s+$/,"").split(/\s+/)},i.prototype.runAnimation=function(t,e,n){t&&(e!=null&&e.cssClass)?(this.reflow(t),this.getCssClasses(e).forEach(function(r){t.classList.add(r)}),this.onAnimationEnd(t,n,e)):n(!0)},i.prototype.clearHtmlElement=function(t,e){t&&e.cssClass&&this.getCssClasses(e).forEach(function(n){t.classList.remove(n)}),this.afterAnimationRun(t,e)},i.prototype.onNextRender=function(t,e){var n=this;if(e===void 0&&(e=!1),!e&&E.isAvailable()){var r=function(){t(!0),cancelAnimationFrame(o)},o=E.requestAnimationFrame(function(){o=E.requestAnimationFrame(function(){t(!1),n.removeCancelCallback(r)})});this.addCancelCallback(r)}else t(!0)},i.prototype.cancel=function(){var t=[].concat(this.cancelQueue);t.forEach(function(e){return e()}),this.cancelQueue=[]},i}(),oo=function(i){It(t,i);function t(){return i!==null&&i.apply(this,arguments)||this}return t.prototype.onEnter=function(e){var n=this,r=e.getAnimatedElement(),o=e.getEnterOptions?e.getEnterOptions():{};this.beforeAnimationRun(r,o),this.runAnimation(r,o,function(){n.clearHtmlElement(r,o)})},t.prototype.onLeave=function(e,n){var r=this,o=e.getAnimatedElement(),s=e.getLeaveOptions?e.getLeaveOptions():{};this.beforeAnimationRun(o,s),this.runAnimation(o,s,function(a){n(),r.onNextRender(function(){r.clearHtmlElement(o,s)},a)})},t}(Jn),Gn=function(i){It(t,i);function t(){return i!==null&&i.apply(this,arguments)||this}return t.prototype.runGroupAnimation=function(e,n,r,o,s){var a=this,l={isAddingRunning:n.length>0,isDeletingRunning:r.length>0,isReorderingRunning:o.length>0},u=n.map(function(A){return e.getAnimatedElement(A)}),d=n.map(function(A){return e.getEnterOptions?e.getEnterOptions(A,l):{}}),v=r.map(function(A){return e.getAnimatedElement(A)}),V=r.map(function(A){return e.getLeaveOptions?e.getLeaveOptions(A,l):{}}),T=o.map(function(A){return e.getAnimatedElement(A.item)}),R=o.map(function(A){return e.getReorderOptions?e.getReorderOptions(A.item,A.movedForward,l):{}});n.forEach(function(A,Q){a.beforeAnimationRun(u[Q],d[Q])}),r.forEach(function(A,Q){a.beforeAnimationRun(v[Q],V[Q])}),o.forEach(function(A,Q){a.beforeAnimationRun(T[Q],R[Q])});var N=n.length+r.length+T.length,j=function(A){--N<=0&&(s&&s(),a.onNextRender(function(){n.forEach(function(Q,re){a.clearHtmlElement(u[re],d[re])}),r.forEach(function(Q,re){a.clearHtmlElement(v[re],V[re])}),o.forEach(function(Q,re){a.clearHtmlElement(T[re],R[re])})},A))};n.forEach(function(A,Q){a.runAnimation(u[Q],d[Q],j)}),r.forEach(function(A,Q){a.runAnimation(v[Q],V[Q],j)}),o.forEach(function(A,Q){a.runAnimation(T[Q],R[Q],j)})},t}(Jn),tn=function(){function i(t,e,n){var r=this;this.animationOptions=t,this.update=e,this.getCurrentValue=n,this._debouncedSync=eu(function(o){r.cancelAnimations();try{r._sync(o)}catch{r.update(o)}})}return i.prototype.onNextRender=function(t,e){var n=this,r=this.animationOptions.getRerenderEvent();if(r){var s=function(){r.remove(a),n.cancelCallback=void 0},a=function(l,u){u.isCancel?e&&e():t(),s()};this.cancelCallback=function(){e&&e(),s()},r.add(a)}else if(E.isAvailable()){var o=E.requestAnimationFrame(function(){t(),n.cancelCallback=void 0});this.cancelCallback=function(){e&&e(),cancelAnimationFrame(o),n.cancelCallback=void 0}}else throw new Error("Can't get next render")},i.prototype.sync=function(t){this.animationOptions.isAnimationEnabled()?this._debouncedSync.run(t):(this.cancel(),this.update(t))},i.prototype.cancel=function(){this._debouncedSync.cancel(),this.cancelAnimations()},i.prototype.cancelAnimations=function(){this.cancelCallback&&this.cancelCallback(),this.animation.cancel()},i}(),Kn=function(i){It(t,i);function t(){var e=i!==null&&i.apply(this,arguments)||this;return e.animation=new oo,e}return t.prototype._sync=function(e){var n=this;e!==this.getCurrentValue()?e?(this.onNextRender(function(){n.animation.onEnter(n.animationOptions)}),this.update(e)):this.animation.onLeave(this.animationOptions,function(){n.update(e)}):this.update(e)},t}(tn),Qe=function(i){It(t,i);function t(){var e=i!==null&&i.apply(this,arguments)||this;return e.animation=new Gn,e}return t.prototype._sync=function(e){var n=this,r,o;e=[].concat(e);var s=[].concat(this.getCurrentValue()),a=(r=this.animationOptions.allowSyncRemovalAddition)!==null&&r!==void 0?r:!0,l=yu(s,e,(o=this.animationOptions.getKey)!==null&&o!==void 0?o:function(R){return R});!a&&(l.reorderedItems.length>0||l.addedItems.length>0)&&(l.deletedItems=[],l.mergedItems=e),this.animationOptions.onCompareArrays&&this.animationOptions.onCompareArrays(l);var u=l.addedItems,d=l.reorderedItems,v=l.deletedItems,V=l.mergedItems,T=function(){n.animation.runGroupAnimation(n.animationOptions,u,v,d,function(){v.length>0&&n.update(e)})};[u,v,d].some(function(R){return R.length>0})?v.length<=0||d.length>0||u.length>0?(this.onNextRender(T,function(){n.update(e)}),this.update(V)):T():this.update(e)},t}(tn),Yn=function(i){It(t,i);function t(e,n,r,o){var s=i.call(this,e,n,r)||this;return s.mergeValues=o,s.animation=new Gn,s}return t.prototype._sync=function(e){var n=this,r=[].concat(this.getCurrentValue());if(r[0]!==e[0]){var o=this.mergeValues?this.mergeValues(e,r):[].concat(r,e);this.onNextRender(function(){n.animation.runGroupAnimation(n.animationOptions,e,r,[],function(){n.update(e)})},function(){return n.update(e)}),this.update(o,!0)}else this.update(e)},t}(tn),so=function(){var i=function(t,e){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(n[o]=r[o])},i(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");i(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),Ie=function(i,t,e,n){var r=arguments.length,o=r<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,e):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(i,t,e,n);else for(var a=i.length-1;a>=0;a--)(s=i[a])&&(o=(r<3?s(o):r>3?s(t,e,o):s(t,e))||o);return r>3&&o&&Object.defineProperty(t,e,o),o},nn=function(i){so(t,i);function t(){var e=i.call(this)||this;return e.createLocTitleProperty(),e}return t.prototype.createLocTitleProperty=function(){return this.createLocalizableString("title",this,!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}),Object.defineProperty(t.prototype,"isSurvey",{get:function(){return!1},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"title",{get:function(){return this.getLocalizableStringText("title",this.getDefaultTitleValue())},set:function(e){this.setTitleValue(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.setTitleValue=function(e){this.setLocalizableStringText("title",e)},t.prototype.updateDescriptionVisibility=function(e){var n=!1;if(this.isDesignMode){var r=x.findProperty(this.getType(),"description");n=!!(r!=null&&r.placeholder)}this.hasDescription=!!e||n&&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(),n=this.getSurvey();return n?n.getElementTitleTagName(this,e):e},enumerable:!1,configurable:!0}),t.prototype.getDefaultTitleTagName=function(){return b.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},Ie([h({})],t.prototype,"hasDescription",void 0),Ie([h({localizable:!0,onSet:function(e,n){n.updateDescriptionVisibility(e)}})],t.prototype,"description",void 0),t}(z),Xn;(function(i){i[i.InsideEmptyPanel=1]="InsideEmptyPanel",i[i.MultilineRight=2]="MultilineRight",i[i.MultilineLeft=3]="MultilineLeft",i[i.Top=4]="Top",i[i.Right=5]="Right",i[i.Bottom=6]="Bottom",i[i.Left=7]="Left"})(Xn||(Xn={}));var le=function(i){so(t,i);function t(e){var n=i.call(this)||this;return n.selectedElementInDesignValue=n,n.disableDesignActions=t.CreateDisabledDesignElements,n.parentQuestionValue=null,n.isContentElement=!1,n.isEditableTemplateElement=!1,n.isInteractiveDesignElement=!0,n.isSingleInRow=!0,n._renderedIsExpanded=!0,n._isAnimatingCollapseExpand=!1,n.animationCollapsed=new Kn(n.getExpandCollapseAnimationOptions(),function(r){n._renderedIsExpanded=r,n.animationAllowed&&(r?n.isAnimatingCollapseExpand=!0:n.updateElementCss(!1))},function(){return n.renderedIsExpanded}),n.onAfterRenderElement=n.addEvent(),n.name=e,n.createNewArray("errors"),n.createNewArray("titleActions"),n.registerPropertyChangedHandlers(["isReadOnly"],function(){n.onReadOnlyChanged()}),n.registerPropertyChangedHandlers(["errors"],function(){n.updateVisibleErrors()}),n.registerPropertyChangedHandlers(["isSingleInRow"],function(){n.updateElementCss(!1)}),n.registerPropertyChangedHandlers(["minWidth","maxWidth","renderWidth","allowRootStyle","parent"],function(){n.updateRootStyle()}),n}return t.getProgressInfoByElements=function(e,n){for(var r=z.createProgressInfo(),o=0;o<e.length;o++)if(e[o].isVisible){var s=e[o].getProgressInfo();r.questionCount+=s.questionCount,r.answeredQuestionCount+=s.answeredQuestionCount,r.requiredQuestionCount+=s.requiredQuestionCount,r.requiredAnsweredQuestionCount+=s.requiredAnsweredQuestionCount}return n&&r.questionCount>0&&(r.requiredQuestionCount==0&&(r.requiredQuestionCount=1),r.answeredQuestionCount>0&&(r.requiredAnsweredQuestionCount=1)),r},t.IsNeedScrollIntoView=function(e,n,r){var o=r?-1:e.getBoundingClientRect().top,s=o<0,a=-1;if(!s&&n&&(a=e.getBoundingClientRect().left,s=a<0),!s&&E.isAvailable()){var l=E.getInnerHeight();if(s=l>0&&l<o,!s&&n){var u=E.getInnerWidth();s=u>0&&u<a}}return s},t.ScrollIntoView=function(e,n,r){if(e.scrollIntoView(n),typeof r=="function"){var o=null,s=0,a=function(){var l=e.getBoundingClientRect().top;if(l===o){if(s++>2){r();return}}else o=l,s=0;requestAnimationFrame(a)};E.requestAnimationFrame(a)}},t.ScrollElementToTop=function(e,n,r,o){var s=b.environment.root;if(!e||typeof s>"u")return!1;var a=s.getElementById(e);return t.ScrollElementToViewCore(a,!1,n,r,o)},t.ScrollElementToViewCore=function(e,n,r,o,s){if(!e||!e.scrollIntoView)return s&&s(),!1;var a=t.IsNeedScrollIntoView(e,n,r);return a?t.ScrollIntoView(e,o,s):s&&s(),a},t.GetFirstNonTextElement=function(e,n){if(n===void 0&&(n=!1),!e||!e.length||e.length==0)return null;if(n){var r=e[0];r.nodeName==="#text"&&(r.data=""),r=e[e.length-1],r.nodeName==="#text"&&(r.data="")}for(var o=0;o<e.length;o++)if(e[o].nodeName!="#text"&&e[o].nodeName!="#comment")return e[o];return null},t.FocusElement=function(e,n,r){if(!e||!I.isAvailable())return!1;var o=n?!1:t.focusElementCore(e,r);return o||setTimeout(function(){t.focusElementCore(e,r)},n?100:10),o},t.focusElementCore=function(e,n){var r=b.environment.root;if(!r&&!n)return!1;var o=n?n.querySelector("#"+CSS.escape(e)):r.getElementById(e);return o&&!o.disabled&&o.style.display!=="none"&&o.offsetParent!==null?(t.ScrollElementToViewCore(o,!0,!1),o.focus(),!0):!1},Object.defineProperty(t.prototype,"colSpan",{get:function(){return this.getPropertyValue("colSpan",1)},set:function(e){this.setPropertyValue("colSpan",e)},enumerable:!1,configurable:!0}),t.prototype.onPropertyValueChanged=function(e,n,r){i.prototype.onPropertyValueChanged.call(this,e,n,r),e==="state"&&(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(){},t.prototype.updateElementVisibility=function(){this.setPropertyValue("isVisible",this.isVisible)},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=!(this.state==="collapsed"&&!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 this.state==="collapsed"&&!this.isDesignMode},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isExpanded",{get:function(){return this.state==="expanded"},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):!0},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.locOwner=this,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 n=e?new en:new Ee;return this.survey&&this.survey.getCss().actionBar&&(n.cssClasses=this.survey.getCss().actionBar),n},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)},t.prototype.locStrsChanged=function(){i.prototype.locStrsChanged.call(this),this.titleToolbarValue&&this.titleToolbarValue.locStrsChanged()},Object.defineProperty(t.prototype,"hasTitleActions",{get:function(){return this.getTitleActions().length>0},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hasTitleEvents",{get:function(){return this.state!==void 0&&this.state!=="default"},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"titleTabIndex",{get:function(){return!this.isPage&&this.state!=="default"?0:void 0},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"titleAriaExpanded",{get:function(){if(!(this.isPage||this.state==="default"))return this.state==="expanded"?"true":"false"},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"titleAriaRole",{get:function(){if(!(this.isPage||this.state==="default"))return"button"},enumerable:!1,configurable:!0}),t.prototype.setSurveyImpl=function(e,n){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 i.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){b.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 this.surveyValue?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,"skeletonHeight",{get:function(){var e=void 0;return this.survey&&this.survey.skeletonHeight&&(e=this.survey.skeletonHeight+"px"),e},enumerable:!1,configurable:!0}),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(){var e=this.getPropertyValueWithoutDefault("cssClassesValue");return!e&&!this.isCssValueCalculating&&(this.isCssValueCalculating=!0,e=this.createCssClassesValue(),this.isCssValueCalculating=!1),e},enumerable:!1,configurable:!0}),t.prototype.ensureCssClassesValue=function(){this.cssClassesValue||this.createCssClassesValue()},t.prototype.createCssClassesValue=function(){var e=this.calcCssClasses(this.css);return this.setPropertyValue("cssClassesValue",e),this.onCalcCssClasses(e),this.updateElementCssCore(this.cssClassesValue),e},t.prototype.onCalcCssClasses=function(e){},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}),Object.defineProperty(t.prototype,"cssRequiredText",{get:function(){var e=this.cssClasses;return e.requiredText||e.panel&&e.panel.requiredText},enumerable:!1,configurable:!0}),t.prototype.getCssTitleExpandableSvg=function(){return this.state==="default"?null:this.cssClasses.titleExpandableSvg},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.resetPropertyValue("cssClassesValue")},t.prototype.getIsLoadingFromJson=function(){return i.prototype.getIsLoadingFromJson.call(this)?!0:this.surveyValue?this.surveyValue.isLoadingFromJson:!1},Object.defineProperty(t.prototype,"name",{get:function(){return this.getPropertyValue("name","")},set:function(e){var n=this.name;this.setPropertyValue("name",this.getValidName(e)),!this.isLoadingFromJson&&n&&this.onNameChanged(n)},enumerable:!1,configurable:!0}),t.prototype.getValidName=function(e){return e},t.prototype.onNameChanged=function(e){},t.prototype.updateBindingValue=function(e,n){this.data&&!this.isTwoValueEquals(n,this.data.getValue(e))&&this.data.setValue(e,n,!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,n=0;n<this.errors.length;n++)this.errors[n].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.wasRendered||(this.wasRenderedValue=!0,this.onFirstRenderingCore())},t.prototype.onFirstRenderingCore=function(){this.ensureCssClassesValue()},t.prototype.endLoadingFromJson=function(){i.prototype.endLoadingFromJson.call(this),this.survey||this.onSurveyLoad(),this.updateDescriptionVisibility(this.description)},t.prototype.setVisibleIndex=function(e){return 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,n){return this.survey?this.survey.getSurveyMarkdownHtml(this,e,n):this.locOwner?this.locOwner.getMarkdownHtml(e,n):void 0},t.prototype.getRenderer=function(e){return this.survey&&typeof this.survey.getRendererForString=="function"?this.survey.getRendererForString(this,e):this.locOwner&&typeof this.locOwner.getRenderer=="function"?this.locOwner.getRenderer(e):null},t.prototype.getRendererContext=function(e){return this.survey&&typeof this.survey.getRendererContextForString=="function"?this.survey.getRendererContextForString(this,e):this.locOwner&&typeof this.locOwner.getRendererContext=="function"?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 n=e.indexOf(this);n>-1&&e.splice(n,1)}},Object.defineProperty(t.prototype,"textProcessor",{get:function(){return this.textProcessorValue},enumerable:!1,configurable:!0}),t.prototype.getProcessedHtml=function(e){return!e||!this.textProcessor?e:this.textProcessor.processText(e,!0)},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&&e.isPage?e:null},t.prototype.moveToBase=function(e,n,r){if(r===void 0&&(r=null),!n)return!1;e.removeElement(this);var o=-1;return P.isNumber(r)&&(o=parseInt(r)),o==-1&&r&&r.getType&&(o=n.indexOf(r)),n.addElement(this,o),!0},t.prototype.setPage=function(e,n){var r=this.getPage(e);if(this.prevSurvey=this.survey,typeof n=="string"){var o=this.getSurvey();o.pages.forEach(function(s){n===s.name&&(n=s)})}r!==n&&(e&&e.removeElement(this),n&&n.addElement(this,-1),this.prevSurvey=void 0)},t.prototype.getSearchableLocKeys=function(e){e.push("title"),e.push("description")},Object.defineProperty(t.prototype,"isDefaultV2Theme",{get:function(){return this.survey&&this.survey.getCss().root.indexOf("sd-root-modern")!==-1},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hasParent",{get:function(){return this.parent&&!this.parent.isPage||this.parent===void 0},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 this.parent!==void 0&&(!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 n=!!this.isCollapsed||!!this.isExpanded;return new O().append(e.withFrame,this.getHasFrameV2()&&!this.isCompact).append(e.compact,this.isCompact&&this.getHasFrameV2()).append(e.collapsed,!!this.isCollapsed).append(e.expandableAnimating,n&&this.isAnimatingCollapseExpand).append(e.expanded,!!this.isExpanded&&this.renderedIsExpanded).append(e.expandable,n).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(){var e=this;return this.getPropertyValue("paddingLeft",void 0,function(){return e.calcPaddingLeft()})},enumerable:!1,configurable:!0}),t.prototype.calcPaddingLeft=function(){return""},Object.defineProperty(t.prototype,"paddingRight",{get:function(){var e=this;return this.getPropertyValue("paddingRight",void 0,function(){return e.calcPaddingRight()})},set:function(e){this.setPropertyValue("paddingRight",e)},enumerable:!1,configurable:!0}),t.prototype.calcPaddingRight=function(){return""},t.prototype.resetIndents=function(){this.resetPropertyValue("paddingLeft"),this.resetPropertyValue("paddingRight")},t.prototype.updateRootStyle=function(){var e={},n;if(this.parent){var r=this.parent.getColumsForElement(this);n=r.reduce(function(a,l){return l.effectiveWidth+a},0),n&&n!==100&&(e.flexGrow=1,e.flexShrink=0,e.flexBasis=n+"%",e.minWidth=void 0,e.maxWidth=this.maxWidth)}if(Object.keys(e).length==0){var o=""+this.minWidth;if(o&&o!="auto"){if(o.indexOf("px")!=-1&&this.survey){o=o.replace("px","");var s=parseFloat(o);isNaN(s)||(o=s*this.survey.widthScale/100,o=""+o+"px")}o="min(100%, "+o+")"}this.allowRootStyle&&this.renderWidth&&(e.flexGrow=1,e.flexShrink=1,e.flexBasis=this.renderWidth,e.minWidth=o,e.maxWidth=this.maxWidth)}this.rootStyle=e},t.prototype.isContainsSelection=function(e){var n=void 0,r=I.getDocument();if(I.isAvailable()&&r&&r.selection)n=r.selection.createRange().parentElement();else{var o=E.getSelection();if(o&&o.rangeCount>0){var s=o.getRangeAt(0);s.startOffset!==s.endOffset&&(n=s.startContainer.parentNode)}}return n==e},Object.defineProperty(t.prototype,"clickTitleFunction",{get:function(){var e=this;if(this.needClickTitleFunction())return function(n){if(!(n&&e.isContainsSelection(n.target)))return e.processTitleClick()}},enumerable:!1,configurable:!0}),t.prototype.needClickTitleFunction=function(){return this.state!=="default"},t.prototype.processTitleClick=function(){this.state!=="default"&&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){if(!e)return"";var n=this.state!=="default",r=4;return new O().append(e.title).append(e.titleNumInline,(this.no||"").length>r||n).append(e.titleExpandable,n).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 n=this.isPreviewStyle,r=e||this.isReadOnly,o=r&&!n,s=!this.isDefaultV2Theme&&(r||n);return[o,s]},Object.defineProperty(t.prototype,"isPreviewStyle",{get:function(){return!!this.survey&&this.survey.state==="preview"},enumerable:!1,configurable:!0}),t.prototype.localeChanged=function(){i.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,n=function(o){e.isAnimatingCollapseExpand=!0,Ae(o)},r=function(o){e.isAnimatingCollapseExpand=!1,Ce(o)};return{getRerenderEvent:function(){return e.onElementRerendered},getEnterOptions:function(){var o=e.isPanel?e.cssClasses.panel:e.cssClasses;return{cssClass:o.contentEnter,onBeforeRunAnimation:n,onAfterRunAnimation:function(s){r(s),e.onElementExpanded(!0)}}},getLeaveOptions:function(){var o=e.isPanel?e.cssClasses.panel:e.cssClasses;return{cssClass:o.contentLeave,onBeforeRunAnimation:n,onAfterRunAnimation:r}},getAnimatedElement:function(){var o,s=e.isPanel?e.cssClasses.panel:e.cssClasses;if(s.content){var a=be(s.content);if(a)return(o=e.getWrapperElement())===null||o===void 0?void 0:o.querySelector(":scope "+a)}},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 n=this._renderedIsExpanded;this.animationCollapsed.sync(e),!this.isExpandCollapseAnimationEnabled&&!n&&this.renderedIsExpanded&&this.onElementExpanded(!1)},enumerable:!1,configurable:!0}),t.prototype.getIsAnimationAllowed=function(){return i.prototype.getIsAnimationAllowed.call(this)&&!!this.survey&&!this.survey.isEndLoadingFromJson},t.prototype.afterRenderCore=function(e){this.onAfterRenderElement.fire(this,{htmlElement:e})},t.prototype.dispose=function(){i.prototype.dispose.call(this),this.titleToolbarValue&&this.titleToolbarValue.dispose()},t.CreateDisabledDesignElements=!1,Ie([h({defaultValue:null})],t.prototype,"dragTypeOverMe",void 0),Ie([h({defaultValue:!1})],t.prototype,"isDragMe",void 0),Ie([h({onSet:function(e,n){n.colSpan=e}})],t.prototype,"effectiveColSpan",void 0),Ie([h({defaultValue:!1})],t.prototype,"hasVisibleErrors",void 0),Ie([h({defaultValue:!0})],t.prototype,"isSingleInRow",void 0),Ie([h({defaultValue:!0})],t.prototype,"allowRootStyle",void 0),Ie([h()],t.prototype,"rootStyle",void 0),Ie([h()],t.prototype,"_renderedIsExpanded",void 0),t}(nn),tu=function(){function i(t,e,n){var r=this;n===void 0&&(n=100),this._elements=t,this._renderedHandler=e,this._elementsToRenderCount=0,this._elementsToRenderTimer=void 0,this._elementRenderedHandler=function(o,s){var a;(a=o.onAfterRenderElement)===null||a===void 0||a.remove(r._elementRenderedHandler),r._elementsToRenderCount--,r._elementsToRenderCount<=0&&r.visibleElementsRendered()},this._elements.forEach(function(o){o.onAfterRenderElement&&(o.onAfterRenderElement.add(r._elementRenderedHandler),r._elementsToRenderCount++)}),this._elementsToRenderCount>0?this._elementsToRenderTimer=setTimeout(function(){r._elementsToRenderCount>0&&r.visibleElementsRendered()},n):this.visibleElementsRendered()}return i.prototype.stopWaitingForElementsRendering=function(){var t=this;this._elementsToRenderTimer&&(clearTimeout(this._elementsToRenderTimer),this._elementsToRenderTimer=void 0),this._elements.forEach(function(e){var n;(n=e.onAfterRenderElement)===null||n===void 0||n.remove(t._elementRenderedHandler)}),this._elementsToRenderCount=0},i.prototype.visibleElementsRendered=function(){var t=this._renderedHandler;this.dispose(),typeof t=="function"&&t()},i.prototype.dispose=function(){this.stopWaitingForElementsRendering(),this._elements=void 0,this._renderedHandler=void 0},i}(),Se=function(){function i(t,e,n,r){e===void 0&&(e=!1),this.owner=t,this.useMarkdown=e,this.name=n,this.values={},this.htmlValues={},this.onStringChanged=new Ve,this._localizationName=r,this.onCreating()}return Object.defineProperty(i,"defaultLocale",{get:function(){return b.localization.defaultLocaleName},set:function(t){b.localization.defaultLocaleName=t},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"localizationName",{get:function(){return this._localizationName},set:function(t){this._localizationName!=t&&(this._localizationName=t,this.strChanged())},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"allowLineBreaks",{get:function(){var t;return this._allowLineBreaks===void 0&&(this._allowLineBreaks=!1,this.name&&this.owner instanceof nn&&(this._allowLineBreaks=((t=x.findProperty(this.owner.getType(),this.name))===null||t===void 0?void 0:t.type)=="text")),this._allowLineBreaks},enumerable:!1,configurable:!0}),i.prototype.getIsMultiple=function(){return!1},Object.defineProperty(i.prototype,"locale",{get:function(){if(this.owner&&this.owner.getLocale){var t=this.owner.getLocale();if(t||!this.sharedData)return t}return this.sharedData?this.sharedData.locale:""},enumerable:!1,configurable:!0}),i.prototype.strChanged=function(){this.searchableText=void 0,!(this.renderedText===void 0&&this.isEmpty&&!this.onGetTextCallback&&!this.localizationName)&&(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(i.prototype,"text",{get:function(){return this.pureText},set:function(t){this.setLocaleText(this.locale,t)},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"calculatedText",{get:function(){return this.renderedText=this.calculatedTextValue!==void 0?this.calculatedTextValue:this.calcText(),this.calculatedTextValue=void 0,this.renderedText},enumerable:!1,configurable:!0}),i.prototype.calcText=function(){var t=this.pureText,e=t;return e&&this.owner&&this.owner.getProcessedText&&e.indexOf("{")>-1&&(e=this.owner.getProcessedText(e)),this.onGetTextCallback&&(e=this.onGetTextCallback(e,t)),e},Object.defineProperty(i.prototype,"pureText",{get:function(){var t=this.locale;t||(t=this.defaultLoc);var e=this.getValue(t);if(this.isValueEmpty(e)&&t===this.defaultLoc&&(e=this.getValue(ce.defaultLocale)),this.isValueEmpty(e)){var n=this.getRootDialect(t);n&&(e=this.getValue(n))}return this.isValueEmpty(e)&&t!==this.defaultLoc&&(e=this.getValue(this.defaultLoc)),this.isValueEmpty(e)&&this.getLocalizationName()&&(e=this.getLocalizationStr(),this.onGetLocalizationTextCallback&&(e=this.onGetLocalizationTextCallback(e))),e||(e=this.defaultValue||""),e},enumerable:!1,configurable:!0}),i.prototype.getRootDialect=function(t){if(!t)return t;var e=t.indexOf("-");return e>-1?t.substring(0,e):""},i.prototype.getLocalizationName=function(){return this.sharedData?this.sharedData.localizationName:this.localizationName},i.prototype.getLocalizationStr=function(){var t=this.getLocalizationName();return t?oe(t,this.locale):""},Object.defineProperty(i.prototype,"hasHtml",{get:function(){return this.hasHtmlValue()},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"html",{get:function(){return this.hasHtml?this.getHtmlValue():""},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"isEmpty",{get:function(){return this.getValuesKeys().length==0},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"textOrHtml",{get:function(){return this.hasHtml?this.getHtmlValue():this.calculatedText},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"renderedHtml",{get:function(){return this.textOrHtml},enumerable:!1,configurable:!0}),i.prototype.getLocaleText=function(t){var e=this.getLocaleTextCore(t);return e||""},i.prototype.getLocaleTextCore=function(t){return t||(t=this.defaultLoc),this.getValue(t)},i.prototype.isLocaleTextEqualsWithDefault=function(t,e){var n=this.getLocaleTextCore(t);return n===e?!0:this.isValueEmpty(n)&&this.isValueEmpty(e)},i.prototype.clear=function(){this.setJson(void 0)},i.prototype.clearLocale=function(t){this.setLocaleText(t,void 0)},i.prototype.setLocaleText=function(t,e){if(t=this.getValueLoc(t),t&&e===void 0){var n=this.getValue(t);n!==void 0&&(this.deleteValue(t),this.fireStrChanged(t,n));return}if(!this.storeDefaultText&&this.isLocaleTextEqualsWithDefault(t,e)){if(!this.isValueEmpty(e)||t&&t!==this.defaultLoc)return;var r=ce.defaultLocale,o=this.getValue(r);r&&!this.isValueEmpty(o)&&(this.setValue(r,e),this.fireStrChanged(r,o));return}if(!(!b.localization.storeDuplicatedTranslations&&!this.isValueEmpty(e)&&t&&t!=this.defaultLoc&&!this.getValue(t)&&e==this.getLocaleText(this.defaultLoc))){var s=this.curLocale;t||(t=this.defaultLoc);var a=this.onStrChanged&&t===s?this.pureText:void 0;delete this.htmlValues[t],this.isValueEmpty(e)?this.deleteValue(t):typeof e=="string"&&(this.canRemoveLocValue(t,e)?this.setLocaleText(t,null):(this.setValue(t,e),t==this.defaultLoc&&this.deleteValuesEqualsToDefault(e))),this.fireStrChanged(t,a)}},i.prototype.isValueEmpty=function(t){return t==null?!0:this.localizationName?!1:t===""},Object.defineProperty(i.prototype,"curLocale",{get:function(){return this.locale?this.locale:this.defaultLoc},enumerable:!1,configurable:!0}),i.prototype.canRemoveLocValue=function(t,e){if(b.localization.storeDuplicatedTranslations||t===this.defaultLoc)return!1;var n=this.getRootDialect(t);if(n){var r=this.getLocaleText(n);return r?r==e:this.canRemoveLocValue(n,e)}else return e==this.getLocaleText(this.defaultLoc)},i.prototype.fireStrChanged=function(t,e){if(this.strChanged(),!!this.onStrChanged){var n=this.pureText;(t!==this.curLocale||e!==n)&&this.onStrChanged(e,n)}},i.prototype.hasNonDefaultText=function(){var t=this.getValuesKeys();return t.length==0?!1:t.length>1||t[0]!=this.defaultLoc},i.prototype.getLocales=function(){var t=this.getValuesKeys();return t.length==0?[]:t},i.prototype.getJson=function(){if(this.sharedData)return this.sharedData.getJson();var t=this.getValuesKeys();if(t.length==0){if(this.serializeCallBackText){var e=this.calcText();if(e)return e}return null}if(t.length==1&&t[0]==b.localization.defaultLocaleName&&!b.serialization.localizableStringSerializeAsObject)return this.values[t[0]];var n={};for(var r in this.values)n[r]=this.values[r];return n},i.prototype.setJson=function(t,e){if(this.sharedData){this.sharedData.setJson(t,e);return}if(this.values={},this.htmlValues={},t!=null)if(e)typeof t=="string"?this.values[b.defaultLocaleName]=t:(this.values=t,delete this.values.pos);else{if(typeof t=="string")this.setLocaleText(null,t);else for(var n in t)this.setLocaleText(n,t[n]);this.strChanged()}},Object.defineProperty(i.prototype,"renderAs",{get:function(){return!this.owner||typeof this.owner.getRenderer!="function"?i.defaultRenderer:this.owner.getRenderer(this.name)||i.defaultRenderer},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"renderAsData",{get:function(){return!this.owner||typeof this.owner.getRendererContext!="function"?this:this.owner.getRendererContext(this)||this},enumerable:!1,configurable:!0}),i.prototype.equals=function(t){return this.sharedData?this.sharedData.equals(t):!t||!t.values?!1:P.isTwoValueEquals(this.values,t.values,!1,!0,!1)},i.prototype.setFindText=function(t){if(this.searchText!=t){if(this.searchText=t,!this.searchableText){var e=this.textOrHtml;this.searchableText=e?e.toLowerCase():""}var n=this.searchableText,r=n&&t?n.indexOf(t):void 0;return r<0&&(r=void 0),(r!=null||this.searchIndex!=r)&&(this.searchIndex=r,this.onSearchChanged&&this.onSearchChanged()),this.searchIndex!=null}},i.prototype.onChanged=function(){},i.prototype.onCreating=function(){},i.prototype.hasHtmlValue=function(){if(!this.owner||!this.useMarkdown)return!1;var t=this.locale;if(t||(t=this.defaultLoc),this.htmlValues[t]!==void 0)return!!this.htmlValues[t];var e=this.calculatedText;if(!e)return this.setHtmlValue(t,""),!1;if(this.getLocalizationName()&&e===this.getLocalizationStr())return this.setHtmlValue(t,""),!1;var n=this.owner.getMarkdownHtml(e,this.name);return this.setHtmlValue(t,n),!!n},i.prototype.setHtmlValue=function(t,e){this.htmlValues[t]=e},i.prototype.getHtmlValue=function(){var t=this.locale;return t||(t=this.defaultLoc),this.htmlValues[t]},i.prototype.deleteValuesEqualsToDefault=function(t){if(!b.localization.storeDuplicatedTranslations)for(var e=this.getValuesKeys(),n=0;n<e.length;n++)e[n]!=this.defaultLoc&&this.getValue(e[n])==t&&this.deleteValue(e[n])},i.prototype.getValue=function(t){return this.sharedData?this.sharedData.getValue(t):this.values[this.getValueLoc(t)]},i.prototype.setValue=function(t,e){this.sharedData?this.sharedData.setValue(t,e):this.values[this.getValueLoc(t)]=e},i.prototype.deleteValue=function(t){this.sharedData?this.sharedData.deleteValue(t):delete this.values[this.getValueLoc(t)]},i.prototype.getValueLoc=function(t){return this.disableLocalization?b.localization.defaultLocaleName:t},i.prototype.getValuesKeys=function(){return this.sharedData?this.sharedData.getValuesKeys():Object.keys(this.values)},Object.defineProperty(i.prototype,"defaultLoc",{get:function(){return b.localization.defaultLocaleName},enumerable:!1,configurable:!0}),i.SerializeAsObject=!1,i.defaultRenderer="sv-string-viewer",i.editableRenderer="sv-string-editor",i}(),ao=function(){function i(t){this.owner=t,this.values={}}return i.prototype.getIsMultiple=function(){return!0},Object.defineProperty(i.prototype,"locale",{get:function(){return this.owner&&this.owner.getLocale?this.owner.getLocale():""},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"value",{get:function(){return this.getValue("")},set:function(t){this.setValue("",t)},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"text",{get:function(){return Array.isArray(this.value)?this.value.join(` +`):""},set:function(t){this.value=t?t.split(` +`):[]},enumerable:!1,configurable:!0}),i.prototype.getLocaleText=function(t){var e=this.getValueCore(t,!t||t===this.locale);return!e||!Array.isArray(e)||e.length==0?"":e.join(` +`)},i.prototype.setLocaleText=function(t,e){var n=e?e.split(` +`):null;this.setValue(t,n)},i.prototype.getValue=function(t){return this.getValueCore(t)},i.prototype.getValueCore=function(t,e){if(e===void 0&&(e=!0),t=this.getLocale(t),this.values[t])return this.values[t];if(e){var n=b.localization.defaultLocaleName;if(t!==n&&this.values[n])return this.values[n]}return[]},i.prototype.setValue=function(t,e){t=this.getLocale(t);var n=P.createCopy(this.values);!e||e.length==0?delete this.values[t]:this.values[t]=e,this.onValueChanged&&this.onValueChanged(n,this.values)},i.prototype.hasValue=function(t){return t===void 0&&(t=""),!this.isEmpty&&this.getValue(t).length>0},Object.defineProperty(i.prototype,"isEmpty",{get:function(){return this.getValuesKeys().length==0},enumerable:!1,configurable:!0}),i.prototype.getLocale=function(t){return t||(t=this.locale,t||b.localization.defaultLocaleName)},i.prototype.getLocales=function(){var t=this.getValuesKeys();return t.length==0?[]:t},i.prototype.getJson=function(){var t=this.getValuesKeys();return t.length==0?null:t.length==1&&t[0]==b.localization.defaultLocaleName&&!b.serialization.localizableStringSerializeAsObject?this.values[t[0]]:P.createCopy(this.values)},i.prototype.setJson=function(t){if(this.values={},!!t)if(Array.isArray(t))this.setValue(null,t);else for(var e in t)this.setValue(e,t[e])},i.prototype.getValuesKeys=function(){return Object.keys(this.values)},i}();function lo(i){return b&&b.confirmActionFunc?b.confirmActionFunc(i):confirm(i)}function At(i){var t=function(e){e?i.funcOnYes():i.funcOnNo&&i.funcOnNo()};b&&b.confirmActionAsync&&b.confirmActionAsync(i.message,t,i)||t(lo(i.message))}function Dt(){if(typeof Dt.isIEOrEdge>"u"){var i=navigator.userAgent,t=i.indexOf("MSIE "),e=i.indexOf("Trident/"),n=i.indexOf("Edge/");Dt.isIEOrEdge=n>0||e>0||t>0}return Dt.isIEOrEdge}function uo(i,t){try{for(var e=atob(i.split(",")[1]),n=i.split(",")[0].split(":")[1].split(";")[0],r=new ArrayBuffer(e.length),o=new Uint8Array(r),s=0;s<e.length;s++)o[s]=e.charCodeAt(s);var a=new Blob([r],{type:n});navigator&&navigator.msSaveBlob&&navigator.msSaveOrOpenBlob(a,t)}catch{}}function nu(){return E.isAvailable()&&E.hasOwn("orientation")}var Lt=function(i){return!!i&&!!("host"in i&&i.host)},Zn=function(i){var t=b.environment.root;return typeof i=="string"?t.getElementById(i):i};function ru(i,t){if(typeof b.environment>"u")return!1;var e=b.environment.root,n=Lt(e)?e.host.clientHeight:e.documentElement.clientHeight,r=i.getBoundingClientRect(),o=Math.max(n,E.getInnerHeight()),s=-50,a=o+t,l=r.top,u=r.bottom,d=Math.max(s,l),v=Math.min(a,u);return d<=v}function rn(i){var t=b.environment.root;return i?i.scrollHeight>i.clientHeight&&(getComputedStyle(i).overflowY==="scroll"||getComputedStyle(i).overflowY==="auto")||i.scrollWidth>i.clientWidth&&(getComputedStyle(i).overflowX==="scroll"||getComputedStyle(i).overflowX==="auto")?i:rn(i.parentElement):Lt(t)?t.host:t.documentElement}function er(i){var t=b.environment;if(t){var e=t.root,n=e.getElementById(i);if(n){var r=rn(n);r&&setTimeout(function(){return r.dispatchEvent(new CustomEvent("scroll"))},10)}}}function iu(i){var t=E.getLocation();!i||!t||(t.href=lu(i))}function tr(i){return i?["url(",i,")"].join(""):""}function ou(i){return typeof i=="string"?/^data:((?:\w+\/(?:(?!;).)+)?)((?:;[^;]+?)*),(.+)$/.test(i):null}var nr={changecamera:"flip-24x24",clear:"clear-24x24",cancel:"cancel-24x24",closecamera:"close-24x24",defaultfile:"file-72x72",choosefile:"folder-24x24",file:"toolbox-file-24x24",left:"chevronleft-16x16",modernbooleancheckchecked:"plus-32x32",modernbooleancheckunchecked:"minus-32x32",more:"more-24x24",navmenu_24x24:"navmenu-24x24",removefile:"error-24x24",takepicture:"camera-32x32",takepicture_24x24:"camera-24x24",v2check:"check-16x16",checked:"check-16x16",v2check_24x24:"check-24x24","back-to-panel_16x16":"restoredown-16x16",clear_16x16:"clear-16x16",close_16x16:"close-16x16",collapsedetail:"collapsedetails-16x16",expanddetail:"expanddetails-16x16","full-screen_16x16":"maximize-16x16",loading:"loading-48x48",minimize_16x16:"minimize-16x16",next_16x16:"chevronright-16x16",previous_16x16:"chevronleft-16x16","no-image":"noimage-48x48","ranking-dash":"rankingundefined-16x16","drag-n-drop":"drag-24x24","ranking-arrows":"reorder-24x24",restore_16x16:"fullsize-16x16",reset:"restore-24x24",search:"search-24x24",average:"smiley-rate5-24x24",excellent:"smiley-rate9-24x24",good:"smiley-rate7-24x24",normal:"smiley-rate6-24x24","not-good":"smiley-rate4-24x24",perfect:"smiley-rate10-24x24",poor:"smiley-rate3-24x24",terrible:"smiley-rate1-24x24","very-good":"smiley-rate8-24x24","very-poor":"smiley-rate2-24x24",add_16x16:"add-16x16",add_24x24:"add-24x24",alert_24x24:"warning-24x24",apply:"apply-24x24","arrow-down":"arrowdown-24x24","arrow-left":"arrowleft-24x24","arrow-left_16x16":"arrowleft-16x16",arrowleft:"arrowleft-16x16","arrow-right":"arrowright-24x24","arrow-right_16x16":"arrowright-16x16",arrowright:"arrowright-16x16","arrow-up":"arrowup-24x24",boolean:"toolbox-boolean-24x24","change-question-type_16x16":"speechbubble-16x16",checkbox:"toolbox-checkbox-24x24","collapse-detail_16x16":"minusbox-16x16","collapse-panel":"collapse-pg-24x24",collapse_16x16:"collapse-16x16","color-picker":"dropper-16x16",comment:"toolbox-longtext-24x24",config:"wrench-24x24",copy:"copy-24x24",default:"toolbox-customquestion-24x24",delete_16x16:"delete-16x16",delete_24x24:"delete-24x24",delete:"delete-24x24","description-hide":"hidehint-16x16",description:"hint-16x16","device-desktop":"desktop-24x24","device-phone":"phone-24x24","device-rotate":"rotate-24x24","device-tablet":"tablet-24x24",download:"download-24x24","drag-area-indicator":"drag-24x24","drag-area-indicator_24x16":"draghorizontal-24x16",v2dragelement_16x16:"draghorizontal-24x16","drop-down-arrow":"chevrondown-24x24","drop-down-arrow_16x16":"chevrondown-16x16",chevron_16x16:"chevrondown-16x16",dropdown:"toolbox-dropdown-24x24",duplicate_16x16:"copy-16x16",edit:"edit-24x24",edit_16x16:"edit-16x16","editing-finish":"finishedit-24x24",error:"error-16x16","expand-detail_16x16":"plusbox-16x16","expand-panel":"expand-pg-24x24",expand_16x16:"expand-16x16",expression:"toolbox-expression-24x24","fast-entry":"textedit-24x24",fix:"fix-24x24",html:"toolbox-html-24x24",image:"toolbox-image-24x24",imagepicker:"toolbox-imagepicker-24x24",import:"import-24x24","invisible-items":"invisible-24x24",language:"language-24x24",load:"import-24x24","logic-collapse":"collapse-24x24","logic-expand":"expand-24x24",logo:"image-48x48",matrix:"toolbox-matrix-24x24",matrixdropdown:"toolbox-multimatrix-24x24",matrixdynamic:"toolbox-dynamicmatrix-24x24",multipletext:"toolbox-multipletext-24x24",panel:"toolbox-panel-24x24",paneldynamic:"toolbox-dynamicpanel-24x24",preview:"preview-24x24",radiogroup:"toolbox-radiogroup-24x24",ranking:"toolbox-ranking-24x24",rating:"toolbox-rating-24x24",redo:"redo-24x24",remove_16x16:"remove-16x16",required:"required-16x16",save:"save-24x24","select-page":"selectpage-24x24",settings:"settings-24x24",settings_16x16:"settings-16x16",signaturepad:"toolbox-signature-24x24","switch-active_16x16":"switchon-16x16","switch-inactive_16x16":"switchoff-16x16",tagbox:"toolbox-tagbox-24x24",text:"toolbox-singleline-24x24",theme:"theme-24x24",toolbox:"toolbox-24x24",undo:"undo-24x24",visible:"visible-24x24",wizard:"wand-24x24",searchclear:"clear-16x16","chevron-16x16":"chevrondown-16x16",chevron:"chevrondown-24x24",progressbuttonv2:"arrowleft-16x16",right:"chevronright-16x16","add-lg":"add-24x24",add:"add-24x24"};function co(i){var t=su(i);return t||rr(i)}function rr(i){var t="icon-",e=i.replace(t,""),n=nr[e]||e;return t+n}function su(i){var t=b.customIcons[i];return t?rr(t):(i=rr(i),t=b.customIcons[i],t||null)}function au(i,t,e,n,r,o){if(r){i!=="auto"&&(r.style.width=(i||t||16)+"px",r.style.height=(i||e||16)+"px");var s=r.childNodes[0],a=co(n);s.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href","#"+a);var l=r.getElementsByTagName("title")[0];if(o)l||(l=I.getDocument().createElementNS("http://www.w3.org/2000/svg","title"),r.appendChild(l));else{l&&r.removeChild(l);return}l.textContent=o}}function lu(i){return i&&(i.toLocaleLowerCase().indexOf("javascript:")>-1?encodeURIComponent(i):i)}function uu(i){return typeof i!="function"?i:i()}function nt(i){if(typeof i=="string")if(isNaN(Number(i))){if(i.includes("px"))return parseFloat(i)}else return Number(i);if(typeof i=="number")return i}function on(i){if(nt(i)===void 0)return i}var ir="sv-focused--by-key";function fo(i){var t=i.target;!t||!t.classList||t.classList.remove(ir)}function po(i,t){if(!(i.target&&i.target.contentEditable==="true")){var e=i.target;if(e){var n=i.which||i.keyCode;if(n===9){e.classList&&!e.classList.contains(ir)&&e.classList.add(ir);return}if(t){if(!t.__keyDownReceived)return;t.__keyDownReceived=!1}n===13||n===32?e.click&&e.click():(!t||t.processEsc)&&n===27&&e.blur&&e.blur()}}}function cu(i,t){if(t===void 0&&(t={processEsc:!0}),t&&(t.__keyDownReceived=!0),!(i.target&&i.target.contentEditable==="true")){var e=i.which||i.keyCode,n=[13,32];t.processEsc&&n.push(27),n.indexOf(e)!==-1&&i.preventDefault()}}function or(i,t){if(i){t||(t=function(n){return I.getComputedStyle(n)});var e=t(i);i.style.height="auto",i.scrollHeight&&(i.style.height=i.scrollHeight+parseFloat(e.borderTopWidth)+parseFloat(e.borderBottomWidth)+"px")}}function fu(i){return i.originalEvent||i}function ho(i){i.preventDefault(),i.stopPropagation()}function be(i){if(!i)return i;var t=/\s*?([\w-]+)\s*?/g;return i.replace(t,".$1")}function sr(i){return getComputedStyle?Number.parseFloat(getComputedStyle(i).width):i.offsetWidth}function ar(i){return!!(i.offsetWidth||i.offsetHeight||i.getClientRects().length)}function pu(i){for(var t,e=0;e<i.children.length;e++)!t&&getComputedStyle(i.children[e]).display!=="none"&&(t=i.children[e]);return t}function du(i,t){if(t===void 0&&(t=!0),E.isAvailable()&&I.isAvailable()&&i.childNodes.length>0){var e=E.getSelection();if(e.rangeCount==0)return;var n=e.getRangeAt(0);n.setStart(n.endContainer,n.endOffset),n.setEndAfter(i.lastChild),e.removeAllRanges(),e.addRange(n);var r=e.toString(),o=i.innerText;r=r.replace(/\r/g,""),t&&(r=r.replace(/\n/g,""),o=o.replace(/\n/g,""));var s=r.length;for(i.innerText=o,n=I.getDocument().createRange(),n.setStart(i.firstChild,0),n.setEnd(i.firstChild,0),e.removeAllRanges(),e.addRange(n);e.toString().length<o.length-s;){var a=e.toString().length;if(e.modify("extend","forward","character"),e.toString().length==a)break}n=e.getRangeAt(0),n.setStart(n.endContainer,n.endOffset)}}function mt(i,t){if(!(!t||!i)&&typeof t=="object")for(var e in i){var n=i[e];!Array.isArray(n)&&n&&typeof n=="object"?((!t[e]||typeof t[e]!="object")&&(t[e]={}),mt(n,t[e])):t[e]=n}}function lr(i,t){var e={};mt(t.list,e),mt(i.list,e),i.list=e}(function(){function i(){this._result=""}return i.prototype.log=function(t){this._result+="->"+t},Object.defineProperty(i.prototype,"result",{get:function(){return this._result},enumerable:!1,configurable:!0}),i})();function hu(i,t,e){var n=new Se(void 0),r=b.showDialog({componentName:"sv-string-viewer",data:{locStr:n,locString:n,model:n},onApply:function(){return t(!0),!0},onCancel:function(){return t(!1),!1},title:i||e.message,displayMode:"popup",isFocusedContent:!1,cssClass:e.cssClass||"sv-popup--confirm"},e.rootElement),o=r.footerToolbar,s=o.getActionById("apply"),a=o.getActionById("cancel");return a.title=oe("cancel",e.locale),a.innerCss="sv-popup__body-footer-item sv-popup__button sd-btn sd-btn--small",s.title=e.applyTitle||oe("ok",e.locale),s.innerCss="sv-popup__body-footer-item sv-popup__button sv-popup__button--danger sd-btn sd-btn--small sd-btn--danger",gu(r),!0}function gu(i){i.width="min-content"}function go(i,t){E.isFileReaderAvailable()&&(i.value="",i.onchange=function(e){if(E.isFileReaderAvailable()&&!(!i||!i.files||i.files.length<1)){for(var n=[],r=0;r<i.files.length;r++)n.push(i.files[r]);t(n)}},i.click())}function yu(i,t,e){var n=new Map,r=new Map,o=new Map,s=new Map;i.forEach(function(j){var A=e(j);if(!n.has(A))n.set(e(j),j);else throw new Error("keys must be unique")}),t.forEach(function(j){var A=e(j);if(!r.has(A))r.set(A,j);else throw new Error("keys must be unique")});var a=[],l=[];r.forEach(function(j,A){n.has(A)?o.set(A,o.size):a.push(j)}),n.forEach(function(j,A){r.has(A)?s.set(A,s.size):l.push(j)});var u=[];o.forEach(function(j,A){var Q=s.get(A),re=r.get(A);Q!==j&&u.push({item:re,movedForward:Q<j})});var d=new Array(i.length),v=0,V=Array.from(o.keys());i.forEach(function(j,A){o.has(e(j))?(d[A]=r.get(V[v]),v++):d[A]=j});var T=new Map,R=[];d.forEach(function(j){var A=e(j);r.has(A)?R.length>0&&(T.set(A,R),R=[]):R.push(j)});var N=new Array;return r.forEach(function(j,A){T.has(A)&&T.get(A).forEach(function(Q){N.push(Q)}),N.push(j)}),R.forEach(function(j){N.push(j)}),{reorderedItems:u,deletedItems:l,addedItems:a,mergedItems:N}}function mu(i){if(I.isAvailable()){var t=I.getComputedStyle(i),e=t.paddingTop,n=t.paddingBottom,r=t.borderTopWidth,o=t.borderBottomWidth,s=t.marginTop,a=t.marginBottom,l=t.boxSizing,u=i.offsetHeight+"px";if(l=="content-box"){var d=i.offsetHeight;[o,r,n,e].forEach(function(v){d-=parseFloat(v)}),u=d+"px"}return{paddingTop:e,paddingBottom:n,borderTopWidth:r,borderBottomWidth:o,marginTop:s,marginBottom:a,heightFrom:"0px",heightTo:u}}else return}function Mt(i,t,e){var n;e===void 0&&(e="--animation-"),i.__sv_created_properties=(n=i.__sv_created_properties)!==null&&n!==void 0?n:[],Object.keys(t).forEach(function(r){var o=""+e+r.split(/\.?(?=[A-Z])/).join("-").toLowerCase();i.style.setProperty(o,t[r]),i.__sv_created_properties.push(o)})}function Ae(i){Mt(i,mu(i))}function Ce(i){Array.isArray(i.__sv_created_properties)&&(i.__sv_created_properties.forEach(function(t){i.style.removeProperty(t)}),delete i.__sv_created_properties)}function vu(i){return Math.floor(i*100)/100}var sn=typeof globalThis<"u"?globalThis.document:(void 0).document,bu=sn?{root:sn,_rootElement:I.getBody(),get rootElement(){var i;return(i=this._rootElement)!==null&&i!==void 0?i:I.getBody()},set rootElement(i){this._rootElement=i},_popupMountContainer:I.getBody(),get popupMountContainer(){var i;return(i=this._popupMountContainer)!==null&&i!==void 0?i:I.getBody()},set popupMountContainer(i){this._popupMountContainer=i},svgMountContainer:sn.head,stylesSheetsMountContainer:sn.head}:void 0,Cu={file:{minWidth:"240px"},comment:{minWidth:"200px"}},b={version:"",designMode:{showEmptyDescriptions:!0,showEmptyTitles:!0},get allowShowEmptyDescriptionInDesignMode(){return this.designMode.showEmptyDescriptions},set allowShowEmptyDescriptionInDesignMode(i){this.designMode.showEmptyDescriptions=i},get allowShowEmptyTitleInDesignMode(){return this.designMode.showEmptyTitles},set allowShowEmptyTitleInDesignMode(i){this.designMode.showEmptyTitles=i},localization:{useLocalTimeZone:!0,storeDuplicatedTranslations:!1,defaultLocaleName:"default"},get useLocalTimeZone(){return this.localization.useLocalTimeZone},set useLocalTimeZone(i){this.localization.useLocalTimeZone=i},get storeDuplicatedTranslations(){return this.localization.storeDuplicatedTranslations},set storeDuplicatedTranslations(i){this.localization.storeDuplicatedTranslations=i},get defaultLocaleName(){return this.localization.defaultLocaleName},set defaultLocaleName(i){this.localization.defaultLocaleName=i},web:{onBeforeRequestChoices:function(i,t){},encodeUrlParams:!0,cacheLoadedChoices:!0,disableQuestionWhileLoadingChoices:!1,surveyServiceUrl:"https://api.surveyjs.io/public/v1/Survey"},get webserviceEncodeParameters(){return this.web.encodeUrlParams},set webserviceEncodeParameters(i){this.web.encodeUrlParams=i},get useCachingForChoicesRestful(){return this.web.cacheLoadedChoices},set useCachingForChoicesRestful(i){this.web.cacheLoadedChoices=i},get useCachingForChoicesRestfull(){return this.web.cacheLoadedChoices},set useCachingForChoicesRestfull(i){this.web.cacheLoadedChoices=i},get disableOnGettingChoicesFromWeb(){return this.web.disableQuestionWhileLoadingChoices},set disableOnGettingChoicesFromWeb(i){this.web.disableQuestionWhileLoadingChoices=i},get surveyServiceUrl(){return this.web.surveyServiceUrl},set surveyServiceUrl(i){this.web.surveyServiceUrl=i},triggers:{changeNavigationButtonsOnComplete:!0,executeCompleteOnValueChanged:!1,executeSkipOnValueChanged:!0},get executeCompleteTriggerOnValueChanged(){return this.triggers.executeCompleteOnValueChanged},set executeCompleteTriggerOnValueChanged(i){this.triggers.executeCompleteOnValueChanged=i},get changeNavigationButtonsOnCompleteTrigger(){return this.triggers.changeNavigationButtonsOnComplete},set changeNavigationButtonsOnCompleteTrigger(i){this.triggers.changeNavigationButtonsOnComplete=i},get executeSkipTriggerOnValueChanged(){return this.triggers.executeSkipOnValueChanged},set executeSkipTriggerOnValueChanged(i){this.triggers.executeSkipOnValueChanged=i},serialization:{itemValueSerializeAsObject:!1,itemValueSerializeDisplayText:!1,localizableStringSerializeAsObject:!1,matrixDropdownColumnSerializeTitle:!1},get itemValueAlwaysSerializeAsObject(){return this.serialization.itemValueSerializeAsObject},set itemValueAlwaysSerializeAsObject(i){this.serialization.itemValueSerializeAsObject=i},get itemValueAlwaysSerializeText(){return this.serialization.itemValueSerializeDisplayText},set itemValueAlwaysSerializeText(i){this.serialization.itemValueSerializeDisplayText=i},get serializeLocalizableStringAsObject(){return this.serialization.localizableStringSerializeAsObject},set serializeLocalizableStringAsObject(i){this.serialization.localizableStringSerializeAsObject=i},lazyRender:{enabled:!1,firstBatchSize:3},get lazyRowsRendering(){return this.lazyRender.enabled},set lazyRowsRendering(i){this.lazyRender.enabled=i},get lazyRowsRenderingStartRow(){return this.lazyRender.firstBatchSize},set lazyRowsRenderingStartRow(i){this.lazyRender.firstBatchSize=i},matrix:{defaultCellType:"dropdown",defaultRowName:"default",totalsSuffix:"-total",maxRowCount:1e3,maxRowCountInCondition:1,renderRemoveAsIcon:!0,columnWidthsByType:Cu,rateSize:"small"},get matrixDefaultRowName(){return this.matrix.defaultRowName},set matrixDefaultRowName(i){this.matrix.defaultRowName=i},get matrixDefaultCellType(){return this.matrix.defaultCellType},set matrixDefaultCellType(i){this.matrix.defaultCellType=i},get matrixTotalValuePostFix(){return this.matrix.totalsSuffix},set matrixTotalValuePostFix(i){this.matrix.totalsSuffix=i},get matrixMaximumRowCount(){return this.matrix.maxRowCount},set matrixMaximumRowCount(i){this.matrix.maxRowCount=i},get matrixMaxRowCountInCondition(){return this.matrix.maxRowCountInCondition},set matrixMaxRowCountInCondition(i){this.matrix.maxRowCountInCondition=i},get matrixRenderRemoveAsIcon(){return this.matrix.renderRemoveAsIcon},set matrixRenderRemoveAsIcon(i){this.matrix.renderRemoveAsIcon=i},panel:{maxPanelCount:100,maxPanelCountInCondition:1},get panelDynamicMaxPanelCountInCondition(){return this.panel.maxPanelCountInCondition},set panelDynamicMaxPanelCountInCondition(i){this.panel.maxPanelCountInCondition=i},get panelMaximumPanelCount(){return this.panel.maxPanelCount},set panelMaximumPanelCount(i){this.panel.maxPanelCount=i},readOnly:{enableValidation:!1,commentRenderMode:"textarea",textRenderMode:"input"},get readOnlyCommentRenderMode(){return this.readOnly.commentRenderMode},set readOnlyCommentRenderMode(i){this.readOnly.commentRenderMode=i},get readOnlyTextRenderMode(){return this.readOnly.textRenderMode},set readOnlyTextRenderMode(i){this.readOnly.textRenderMode=i},numbering:{includeQuestionsWithHiddenNumber:!1,includeQuestionsWithHiddenTitle:!1},get setQuestionVisibleIndexForHiddenTitle(){return this.numbering.includeQuestionsWithHiddenTitle},set setQuestionVisibleIndexForHiddenTitle(i){this.numbering.includeQuestionsWithHiddenTitle=i},get setQuestionVisibleIndexForHiddenNumber(){return this.numbering.includeQuestionsWithHiddenNumber},set setQuestionVisibleIndexForHiddenNumber(i){this.numbering.includeQuestionsWithHiddenNumber=i},enterKeyAction:"default",comparator:{trimStrings:!0,caseSensitive:!1,normalizeTextCallback:function(i,t){return i}},expressionDisableConversionChar:"#",get commentPrefix(){return b.commentSuffix},set commentPrefix(i){b.commentSuffix=i},commentSuffix:"-Comment",itemValueSeparator:"|",ratingMaximumRateValueCount:20,tagboxCloseOnSelect:!1,dropdownSearchDelay:500,confirmActionFunc:function(i){return confirm(i)},confirmActionAsync:function(i,t,e){return hu(i,t,e)},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:bu,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]/}},storeUtcDates:!1,onDateCreated:function(i,t,e){return i},parseNumber:function(i,t){return t}},ge=function(){function i(t,e){t===void 0&&(t=null),e===void 0&&(e=null),this.text=t,this.errorOwner=e,this.visible=!0,this.onUpdateErrorTextCallback=void 0}return i.prototype.equals=function(t){return!t||!t.getErrorType||this.getErrorType()!==t.getErrorType()?!1:this.text===t.text&&this.visible===t.visible},Object.defineProperty(i.prototype,"locText",{get:function(){return this.locTextValue||(this.locTextValue=new Se(this.errorOwner,!0),this.locTextValue.storeDefaultText=!0,this.locTextValue.text=this.getText()),this.locTextValue},enumerable:!1,configurable:!0}),i.prototype.getText=function(){var t=this.text;return t||(t=this.getDefaultText()),this.errorOwner&&(t=this.errorOwner.getErrorCustomText(t,this)),t},i.prototype.getErrorType=function(){return"base"},i.prototype.getDefaultText=function(){return""},i.prototype.getLocale=function(){return this.errorOwner?this.errorOwner.getLocale():""},i.prototype.getLocalizationString=function(t){return oe(t,this.getLocale())},i.prototype.updateText=function(){this.onUpdateErrorTextCallback&&this.onUpdateErrorTextCallback(this),this.locText.text=this.getText()},i}(),Pe=function(){var i=function(t,e){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(n[o]=r[o])},i(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");i(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),yo=function(i){Pe(t,i);function t(e,n){e===void 0&&(e=null),n===void 0&&(n=null);var r=i.call(this,e,n)||this;return r.text=e,r}return t.prototype.getErrorType=function(){return"required"},t.prototype.getDefaultText=function(){return this.getLocalizationString("requiredError")},t}(ge),mo=function(i){Pe(t,i);function t(e,n){e===void 0&&(e=null),n===void 0&&(n=null);var r=i.call(this,e,n)||this;return r.text=e,r}return t.prototype.getErrorType=function(){return"requireoneanswer"},t.prototype.getDefaultText=function(){return this.getLocalizationString("requiredErrorInPanel")},t}(ge),vo=function(i){Pe(t,i);function t(e,n){e===void 0&&(e=null),n===void 0&&(n=null);var r=i.call(this,e,n)||this;return r.text=e,r}return t.prototype.getErrorType=function(){return"requirenumeric"},t.prototype.getDefaultText=function(){return this.getLocalizationString("numericError")},t}(ge),bo=function(i){Pe(t,i);function t(e,n){n===void 0&&(n=null);var r=i.call(this,null,n)||this;return r.maxSize=e,r.locText.text=r.getText(),r}return t.prototype.getErrorType=function(){return"exceedsize"},t.prototype.getDefaultText=function(){return oe("exceedMaxSize").format(this.getTextSize())},t.prototype.getTextSize=function(){var e=["Bytes","KB","MB","GB","TB"],n=[0,0,2,3,3];if(this.maxSize===0)return"0 Byte";var r=Math.floor(Math.log(this.maxSize)/Math.log(1024)),o=this.maxSize/Math.pow(1024,r);return o.toFixed(n[r])+" "+e[r]},t}(ge),Pu=function(i){Pe(t,i);function t(e,n,r){r===void 0&&(r=null);var o=i.call(this,null,r)||this;return o.status=e,o.response=n,o}return t.prototype.getErrorType=function(){return"webrequest"},t.prototype.getDefaultText=function(){var e=this.getLocalizationString("urlRequestError");return e?e.format(this.status,this.response):""},t}(ge),Vu=function(i){Pe(t,i);function t(e,n){n===void 0&&(n=null);var r=i.call(this,e,n)||this;return r.text=e,r}return t.prototype.getErrorType=function(){return"webrequestempty"},t.prototype.getDefaultText=function(){return this.getLocalizationString("urlGetChoicesError")},t}(ge),wu=function(i){Pe(t,i);function t(e,n){n===void 0&&(n=null);var r=i.call(this,e,n)||this;return r.text=e,r}return t.prototype.getErrorType=function(){return"otherempty"},t.prototype.getDefaultText=function(){return this.getLocalizationString("otherRequiredError")},t}(ge),an=function(i){Pe(t,i);function t(e,n){n===void 0&&(n=null);var r=i.call(this,e,n)||this;return r.text=e,r}return t.prototype.getErrorType=function(){return"uploadingfile"},t.prototype.getDefaultText=function(){return this.getLocalizationString("uploadingFile")},t}(ge),xu=function(i){Pe(t,i);function t(e,n){n===void 0&&(n=null);var r=i.call(this,e,n)||this;return r.text=e,r}return t.prototype.getErrorType=function(){return"requiredinallrowserror"},t.prototype.getDefaultText=function(){return this.getLocalizationString("requiredInAllRowsError")},t}(ge),Ou=function(i){Pe(t,i);function t(e,n){n===void 0&&(n=null);var r=i.call(this,e,n)||this;return r.text=e,r}return t.prototype.getErrorType=function(){return"eachrowuniqueeerror"},t.prototype.getDefaultText=function(){return this.getLocalizationString("eachRowUniqueError")},t}(ge),Su=function(i){Pe(t,i);function t(e,n){n===void 0&&(n=null);var r=i.call(this,null,n)||this;return r.minRowCount=e,r}return t.prototype.getErrorType=function(){return"minrowcounterror"},t.prototype.getDefaultText=function(){return oe("minRowCountError").format(this.minRowCount)},t}(ge),Co=function(i){Pe(t,i);function t(e,n){n===void 0&&(n=null);var r=i.call(this,e,n)||this;return r.text=e,r}return t.prototype.getErrorType=function(){return"keyduplicationerror"},t.prototype.getDefaultText=function(){return this.getLocalizationString("keyDuplicationError")},t}(ge),we=function(i){Pe(t,i);function t(e,n){n===void 0&&(n=null);var r=i.call(this,e,n)||this;return r.text=e,r}return t.prototype.getErrorType=function(){return"custom"},t}(ge),rt=function(){var i=function(t,e){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(n[o]=r[o])},i(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");i(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),Te=function(){function i(t,e){e===void 0&&(e=null),this.value=t,this.error=e}return i}(),it=function(i){rt(t,i);function t(){var e=i.call(this)||this;return e.createLocalizableString("text",e,!0),e}return Object.defineProperty(t.prototype,"isValidator",{get:function(){return!0},enumerable:!1,configurable:!0}),t.prototype.getSurvey=function(e){return 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,n,r,o){return 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,n){return this.errorOwner?this.errorOwner.getMarkdownHtml(e,n):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 n=this,r=new we(this.getErrorText(e),this.errorOwner);return r.onUpdateErrorTextCallback=function(o){return o.text=n.getErrorText(e)},r},t.prototype.toString=function(){var e=this.getType().replace("validator","");return this.text&&(e+=", "+this.text),e},t}(z),Po=function(){function i(){}return i.prototype.run=function(t){var e=this,n=[],r=null,o=null;this.prepareAsyncValidators();for(var s=[],a=t.getValidators(),l=0;l<a.length;l++){var u=a[l];!r&&u.isValidateAllValues&&(r=t.getDataFilteredValues(),o=t.getDataFilteredProperties()),u.isAsync&&(this.asyncValidators.push(u),u.onAsyncCompleted=function(v){if(v&&v.error&&s.push(v.error),!!e.onAsyncCompleted){for(var V=0;V<e.asyncValidators.length;V++)if(e.asyncValidators[V].isRunning)return;e.onAsyncCompleted(s)}})}a=t.getValidators();for(var l=0;l<a.length;l++){var u=a[l],d=u.validate(t.validatedValue,t.getValidatorTitle(),r,o);d&&d.error&&n.push(d.error)}return this.asyncValidators.length==0&&this.onAsyncCompleted&&this.onAsyncCompleted([]),n},i.prototype.prepareAsyncValidators=function(){if(this.asyncValidators)for(var t=0;t<this.asyncValidators.length;t++)this.asyncValidators[t].onAsyncCompleted=null;this.asyncValidators=[]},i}(),Vo=function(i){rt(t,i);function t(e,n){e===void 0&&(e=null),n===void 0&&(n=null);var r=i.call(this)||this;return r.minValue=e,r.maxValue=n,r}return t.prototype.getType=function(){return"numericvalidator"},t.prototype.validate=function(e,n,r,o){if(n===void 0&&(n=null),this.isValueEmpty(e))return null;if(!P.isNumber(e))return new Te(null,new vo(this.text,this.errorOwner));var s=new Te(P.getNumber(e));return this.minValue!==null&&this.minValue>s.value?(s.error=this.createCustomError(n),s):this.maxValue!==null&&this.maxValue<s.value?(s.error=this.createCustomError(n),s):typeof e=="number"?null:s},t.prototype.getDefaultErrorText=function(e){var n=e||this.getLocalizationString("value");return this.minValue!==null&&this.maxValue!==null?this.getLocalizationFormatString("numericMinMax",n,this.minValue,this.maxValue):this.minValue!==null?this.getLocalizationFormatString("numericMin",n,this.minValue):this.getLocalizationFormatString("numericMax",n,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}(it),wo=function(i){rt(t,i);function t(){return i.call(this)||this}return t.prototype.getType=function(){return"textvalidator"},t.prototype.validate=function(e,n,r,o){if(n===void 0&&(n=null),this.isValueEmpty(e))return null;if(!this.allowDigits){var s=/\d+$/;if(s.test(e))return new Te(null,this.createCustomError("textNoDigitsAllow"))}return this.minLength>0&&e.length<this.minLength?new Te(null,this.createCustomError(n)):this.maxLength>0&&e.length>this.maxLength?new Te(null,this.createCustomError(n)):null},t.prototype.getDefaultErrorText=function(e){return e==="textNoDigitsAllow"?this.getLocalizationString(e):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}(it),xo=function(i){rt(t,i);function t(e,n){e===void 0&&(e=null),n===void 0&&(n=null);var r=i.call(this)||this;return r.minCount=e,r.maxCount=n,r}return t.prototype.getType=function(){return"answercountvalidator"},t.prototype.validate=function(e,n,r,o){if(e==null||e.constructor!=Array)return null;var s=e.length;return s==0?null:this.minCount&&s<this.minCount?new Te(null,this.createCustomError(this.getLocalizationFormatString("minSelectError",this.minCount))):this.maxCount&&s>this.maxCount?new Te(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}(it),Oo=function(i){rt(t,i);function t(e){e===void 0&&(e=null);var n=i.call(this)||this;return n.regex=e,n}return t.prototype.getType=function(){return"regexvalidator"},t.prototype.validate=function(e,n,r,o){if(n===void 0&&(n=null),!this.regex||this.isValueEmpty(e))return null;var s=this.createRegExp();if(Array.isArray(e))for(var a=0;a<e.length;a++){var l=this.hasError(s,e[a],n);if(l)return l}return this.hasError(s,e,n)},t.prototype.hasError=function(e,n,r){return e.test(n)?null:new Te(n,this.createCustomError(r))},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,"caseInsensitive",{get:function(){return this.getPropertyValue("caseInsensitive")},set:function(e){this.setPropertyValue("caseInsensitive",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"insensitive",{get:function(){return this.caseInsensitive},set:function(e){this.caseInsensitive=e},enumerable:!1,configurable:!0}),t.prototype.createRegExp=function(){return new RegExp(this.regex,this.caseInsensitive?"i":"")},t}(it),ur=function(i){rt(t,i);function t(){var e=i.call(this)||this;return e.re=/^(([^<>()\[\]\.,;:\s@\"]+(\.[^<>()\[\]\.,;:\s@\"]+)*)|(\".+\"))@(([^<>()=[\]\.,;:\s@\"]+\.)+[^<>()=[\]\.,;:\s@\"]{2,})$/i,e}return t.prototype.getType=function(){return"emailvalidator"},t.prototype.validate=function(e,n,r,o){return n===void 0&&(n=null),!e||this.re.test(e)?null:new Te(e,this.createCustomError(n))},t.prototype.getDefaultErrorText=function(e){return this.getLocalizationString("invalidEmail")},t}(it),So=function(i){rt(t,i);function t(e){e===void 0&&(e=null);var n=i.call(this)||this;return n.conditionRunner=null,n.isRunningValue=!1,n.expression=e,n}return 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(!1)?this.conditionRunner.isAsync:!1},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isRunning",{get:function(){return this.isRunningValue},enumerable:!1,configurable:!0}),t.prototype.validate=function(e,n,r,o){var s=this;if(n===void 0&&(n=null),r===void 0&&(r=null),o===void 0&&(o=null),!this.expression)return null;this.conditionRunner&&(this.conditionRunner.onRunComplete=null),this.ensureConditionRunner(!0),this.conditionRunner.onRunComplete=function(l){s.isRunningValue=!1,s.onAsyncCompleted&&s.onAsyncCompleted(s.generateError(l,e,n))},this.isRunningValue=!0;var a=this.conditionRunner.run(r,o);return this.conditionRunner.isAsync?null:(this.isRunningValue=!1,this.generateError(a,e,n))},t.prototype.generateError=function(e,n,r){return e?null:new Te(n,this.createCustomError(r))},t.prototype.getDefaultErrorText=function(e){return this.getLocalizationFormatString("invalidExpression",this.expression)},t.prototype.ensureConditionRunner=function(e){return this.expression?(e||!this.conditionRunner?this.conditionRunner=new de(this.expression):this.conditionRunner.expression=this.expression,!0):!1},Object.defineProperty(t.prototype,"expression",{get:function(){return this.getPropertyValue("expression")},set:function(e){this.setPropertyValue("expression",e)},enumerable:!1,configurable:!0}),t}(it);x.addClass("surveyvalidator",[{name:"text",serializationProperty:"locText"}]),x.addClass("numericvalidator",["minValue:number","maxValue:number"],function(){return new Vo},"surveyvalidator"),x.addClass("textvalidator",[{name:"minLength:number",default:0},{name:"maxLength:number",default:0},{name:"allowDigits:boolean",default:!0}],function(){return new wo},"surveyvalidator"),x.addClass("answercountvalidator",["minCount:number","maxCount:number"],function(){return new xo},"surveyvalidator"),x.addClass("regexvalidator",["regex",{name:"caseInsensitive:boolean",alternativeName:"insensitive"}],function(){return new Oo},"surveyvalidator"),x.addClass("emailvalidator",[],function(){return new ur},"surveyvalidator"),x.addClass("expressionvalidator",["expression:condition"],function(){return new So},"surveyvalidator");var To=function(){function i(t,e){this.name=t,this.widgetJson=e,this.htmlTemplate=e.htmlTemplate?e.htmlTemplate:""}return i.prototype.afterRender=function(t,e){var n=this;this.widgetJson.afterRender&&(t.localeChangedCallback=function(){n.widgetJson.willUnmount&&n.widgetJson.willUnmount(t,e),n.widgetJson.afterRender(t,e)},this.widgetJson.afterRender(t,e))},i.prototype.willUnmount=function(t,e){this.widgetJson.willUnmount&&this.widgetJson.willUnmount(t,e)},i.prototype.getDisplayValue=function(t,e){return e===void 0&&(e=void 0),this.widgetJson.getDisplayValue?this.widgetJson.getDisplayValue(t,e):null},i.prototype.validate=function(t){if(this.widgetJson.validate)return this.widgetJson.validate(t)},i.prototype.isFit=function(t){return this.isLibraryLoaded()&&this.widgetJson.isFit?this.widgetJson.isFit(t):!1},Object.defineProperty(i.prototype,"canShowInToolbox",{get:function(){return this.widgetJson.showInToolbox===!1||cr.Instance.getActivatedBy(this.name)!="customtype"?!1:!this.widgetJson.widgetIsLoaded||this.widgetJson.widgetIsLoaded()},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"showInToolbox",{get:function(){return this.widgetJson.showInToolbox!==!1},set:function(t){this.widgetJson.showInToolbox=t},enumerable:!1,configurable:!0}),i.prototype.init=function(){this.widgetJson.init&&this.widgetJson.init()},i.prototype.activatedByChanged=function(t){this.isLibraryLoaded()&&this.widgetJson.activatedByChanged&&this.widgetJson.activatedByChanged(t)},i.prototype.isLibraryLoaded=function(){return this.widgetJson.widgetIsLoaded?this.widgetJson.widgetIsLoaded()==!0:!0},Object.defineProperty(i.prototype,"isDefaultRender",{get:function(){return this.widgetJson.isDefaultRender},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"pdfQuestionType",{get:function(){return this.widgetJson.pdfQuestionType},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"pdfRender",{get:function(){return this.widgetJson.pdfRender},enumerable:!1,configurable:!0}),i}(),cr=function(){function i(){this.widgetsValues=[],this.widgetsActivatedBy={},this.onCustomWidgetAdded=new zn}return Object.defineProperty(i.prototype,"widgets",{get:function(){return this.widgetsValues},enumerable:!1,configurable:!0}),i.prototype.add=function(t,e){e===void 0&&(e="property"),this.addCustomWidget(t,e)},i.prototype.addCustomWidget=function(t,e){e===void 0&&(e="property");var n=t.name;n||(n="widget_"+this.widgets.length+1);var r=new To(n,t);return this.widgetsValues.push(r),r.init(),this.widgetsActivatedBy[n]=e,r.activatedByChanged(e),this.onCustomWidgetAdded.fire(r,null),r},i.prototype.getActivatedBy=function(t){var e=this.widgetsActivatedBy[t];return e||"property"},i.prototype.setActivatedBy=function(t,e){if(!(!t||!e)){var n=this.getCustomWidgetByName(t);n&&(this.widgetsActivatedBy[t]=e,n.activatedByChanged(e))}},i.prototype.clear=function(){this.widgetsValues=[]},i.prototype.getCustomWidgetByName=function(t){for(var e=0;e<this.widgets.length;e++)if(this.widgets[e].name==t)return this.widgets[e];return null},i.prototype.getCustomWidget=function(t){for(var e=0;e<this.widgetsValues.length;e++)if(this.widgetsValues[e].isFit(t))return this.widgetsValues[e];return null},i.Instance=new i,i}(),Ro=function(){function i(){this.renderersHash={},this.defaultHash={}}return i.prototype.unregisterRenderer=function(t,e){delete this.renderersHash[t][e],this.defaultHash[t]===e&&delete this.defaultHash[t]},i.prototype.registerRenderer=function(t,e,n,r){r===void 0&&(r=!1),this.renderersHash[t]||(this.renderersHash[t]={}),this.renderersHash[t][e]=n,r&&(this.defaultHash[t]=e)},i.prototype.getRenderer=function(t,e){var n=this.renderersHash[t];if(n){if(e&&n[e])return n[e];var r=this.defaultHash[t];if(r&&n[r])return n[r]}return"default"},i.prototype.getRendererByQuestion=function(t){return this.getRenderer(t.getType(),t.renderAs)},i.prototype.clear=function(){this.renderersHash={}},i.Instance=new i,i}(),ln=function(){function i(t){var e=this;this.options=t,this.onPropertyChangedCallback=function(){e.element&&(e.element.value=e.getTextValue(),e.updateElement())},this.question.registerFunctionOnPropertyValueChanged(this.options.propertyName,this.onPropertyChangedCallback,"__textarea")}return i.prototype.updateElement=function(){var t=this;this.element&&this.autoGrow&&setTimeout(function(){return or(t.element)},1)},i.prototype.setElement=function(t){t&&(this.element=t,this.updateElement())},i.prototype.resetElement=function(){this.element=void 0},i.prototype.getTextValue=function(){return this.options.getTextValue&&this.options.getTextValue()||""},i.prototype.onTextAreaChange=function(t){this.options.onTextAreaChange&&this.options.onTextAreaChange(t)},i.prototype.onTextAreaInput=function(t){this.options.onTextAreaInput&&this.options.onTextAreaInput(t),this.element&&this.autoGrow&&or(this.element)},i.prototype.onTextAreaKeyDown=function(t){this.options.onTextAreaKeyDown&&this.options.onTextAreaKeyDown(t)},i.prototype.onTextAreaBlur=function(t){this.onTextAreaChange(t),this.options.onTextAreaBlur&&this.options.onTextAreaBlur(t)},i.prototype.onTextAreaFocus=function(t){this.options.onTextAreaFocus&&this.options.onTextAreaFocus(t)},Object.defineProperty(i.prototype,"question",{get:function(){return this.options.question},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"id",{get:function(){return this.options.id()},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"placeholder",{get:function(){return this.options.placeholder()},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"className",{get:function(){return this.options.className()},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"maxLength",{get:function(){if(this.options.maxLength)return this.options.maxLength()},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"autoGrow",{get:function(){if(this.options.autoGrow)return this.options.autoGrow()},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"rows",{get:function(){if(this.options.rows)return this.options.rows()},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"cols",{get:function(){if(this.options.cols)return this.options.cols()},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"isDisabledAttr",{get:function(){return this.options.isDisabledAttr()},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"isReadOnlyAttr",{get:function(){if(this.options.isReadOnlyAttr)return this.options.isReadOnlyAttr()},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"ariaRequired",{get:function(){if(this.options.ariaRequired)return this.options.ariaRequired()},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"ariaLabel",{get:function(){if(this.options.ariaLabel)return this.options.ariaLabel()},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"ariaInvalid",{get:function(){if(this.options.ariaInvalid)return this.options.ariaInvalid()},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"ariaLabelledBy",{get:function(){if(this.options.ariaLabelledBy)return this.options.ariaLabelledBy()},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"ariaDescribedBy",{get:function(){if(this.options.ariaDescribedBy)return this.options.ariaDescribedBy()},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"ariaErrormessage",{get:function(){if(this.options.ariaErrormessage)return this.options.ariaErrormessage()},enumerable:!1,configurable:!0}),i.prototype.dispose=function(){this.question&&this.question.unRegisterFunctionOnPropertyValueChanged(this.options.propertyName,"__textarea"),this.resetElement()},i}(),Tu=function(){var i=function(t,e){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(n[o]=r[o])},i(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");i(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),vt=function(i,t,e,n){var r=arguments.length,o=r<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,e):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(i,t,e,n);else for(var a=i.length-1;a>=0;a--)(s=i[a])&&(o=(r<3?s(o):r>3?s(t,e,o):s(t,e))||o);return r>3&&o&&Object.defineProperty(t,e,o),o},Ru=function(){function i(t,e,n){this.name=t,this.canRun=e,this.doComplete=n,this.runSecondCheck=function(r){return!1}}return i}(),ue=function(i){Tu(t,i);function t(e){var n=i.call(this,e)||this;n.customWidgetData={isNeedRender:!0},n.hasCssErrorCallback=function(){return!1},n.isReadyValue=!0,n.dependedQuestions=[],n.onReadyChanged=n.addEvent(),n.triggersInfo=[],n.isRunningValidatorsValue=!1,n.isValueChangedInSurvey=!1,n.allowNotifyValueChanged=!0,n.id=t.getQuestionId(),n.onCreating(),n.createNewArray("validators",function(o){o.errorOwner=n}),n.addExpressionProperty("visibleIf",function(o,s){n.visible=s===!0}),n.addExpressionProperty("enableIf",function(o,s){n.readOnly=s===!1}),n.addExpressionProperty("requiredIf",function(o,s){n.isRequired=s===!0}),n.createLocalizableString("commentText",n,!0,"otherItemText"),n.createLocalizableString("requiredErrorText",n),n.addTriggerInfo("resetValueIf",function(){return!n.isEmpty()},function(){n.startSetValueOnExpression(),n.clearValue(),n.updateValueWithDefaults(),n.finishSetValueOnExpression()});var r=n.addTriggerInfo("setValueIf",function(){return!0},function(){return n.runSetValueExpression()});return r.runSecondCheck=function(o){return n.checkExpressionIf(o)},n.registerPropertyChangedHandlers(["width"],function(){n.updateQuestionCss(),n.parent&&n.parent.elementWidthChanged(n)}),n.registerPropertyChangedHandlers(["isRequired"],function(){!n.isRequired&&n.errors.length>0&&n.validate(),n.locTitle.strChanged(),n.clearCssClasses()}),n.registerPropertyChangedHandlers(["indent","rightIndent"],function(){n.resetIndents()}),n.registerPropertyChangedHandlers(["showCommentArea","showOtherItem"],function(){n.initCommentFromSurvey()}),n.registerFunctionOnPropertiesValueChanged(["no","readOnly","hasVisibleErrors","containsErrors"],function(){n.updateQuestionCss()}),n.registerPropertyChangedHandlers(["_isMobile"],function(){n.onMobileChanged()}),n.registerPropertyChangedHandlers(["colSpan"],function(){var o;(o=n.parent)===null||o===void 0||o.updateColumns()}),n}return t.getQuestionId=function(){return"sq_"+t.questionCounter++},t.prototype.isReadOnlyRenderDiv=function(){return this.isReadOnly&&b.readOnly.commentRenderMode==="div"},t.prototype.allowMobileInDesignMode=function(){return!1},t.prototype.updateIsMobileFromSurvey=function(){this.setIsMobile(this.survey._isMobile)},t.prototype.setIsMobile=function(e){var n=e&&(this.allowMobileInDesignMode()||!this.isDesignMode);this.isMobile=n},t.prototype.getIsMobile=function(){return this._isMobile},Object.defineProperty(t.prototype,"isMobile",{get:function(){return this.getIsMobile()},set:function(e){this._isMobile=e},enumerable:!1,configurable:!0}),t.prototype.themeChanged=function(e){},t.prototype.getDefaultTitle=function(){return this.name},t.prototype.createLocTitleProperty=function(){var e=this,n=i.prototype.createLocTitleProperty.call(this);return n.storeDefaultText=!0,n.onGetTextCallback=function(r,o){return!r&&!o&&(r=e.getDefaultTitle()),e.survey?e.survey.getUpdatedQuestionTitle(e,r):r},this.locProcessedTitle=new Se(this,!0),this.locProcessedTitle.sharedData=n,n},Object.defineProperty(t.prototype,"commentTextAreaModel",{get:function(){return this.commentTextAreaModelValue||(this.commentTextAreaModelValue=new ln(this.getCommentTextAreaOptions())),this.commentTextAreaModelValue},enumerable:!1,configurable:!0}),t.prototype.getCommentTextAreaOptions=function(){var e=this,n={question:this,id:function(){return e.commentId},propertyName:"comment",className:function(){return e.cssClasses.comment},placeholder:function(){return e.renderedCommentPlaceholder},isDisabledAttr:function(){return e.isInputReadOnly||!1},rows:function(){return e.commentAreaRows},autoGrow:function(){return e.autoGrowComment},maxLength:function(){return e.getOthersMaxLength()},ariaRequired:function(){return e.a11y_input_ariaRequired},ariaLabel:function(){return e.a11y_input_ariaLabel},getTextValue:function(){return e.comment},onTextAreaChange:function(r){e.onCommentChange(r)},onTextAreaInput:function(r){e.onCommentInput(r)}};return n},t.prototype.getSurvey=function(e){return e===void 0&&(e=!1),e?this.parent?this.parent.getSurvey(e):null:this.onGetSurvey?this.onGetSurvey():i.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 n=this.getValueName();this.setPropertyValue("valueName",e),this.onValueNameChanged(n)},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 n=this.getIsReadyDependsOn(),r=0;r<n.length;r++)if(!n[r].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 n=0;n<e.length;n++)if(!e[n].isReady)return!1;return!0},t.prototype.getIsReadyNestedQuestions=function(){return this.getNestedQuestions()},t.prototype.setIsReady=function(e){var n=this.isReadyValue;this.isReadyValue=e,n!=e&&(this.getIsReadyDependends().forEach(function(r){return r.updateIsReady()}),this.onReadyChanged.fire(this,{question:this,isReady:e,oldIsReady:n}))},t.prototype.getIsReadyDependsOn=function(){return this.getIsReadyDependendCore(!0)},t.prototype.getIsReadyDependends=function(){return this.getIsReadyDependendCore(!1)},t.prototype.getIsReadyDependendCore=function(e){var n=this;if(!this.survey)return[];var r=this.survey.questionsByValueName(this.getValueName()),o=new Array;return r.forEach(function(s){s!==n&&o.push(s)}),e||(this.parentQuestion&&o.push(this.parentQuestion),this.dependedQuestions.length>0&&this.dependedQuestions.forEach(function(s){return o.push(s)})),o},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){e===void 0&&(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 n=this.dependedQuestions.indexOf(e);n>-1&&this.dependedQuestions.splice(n,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 this.getLayoutType()==="flow"},enumerable:!1,configurable:!0}),t.prototype.getLayoutType=function(){return this.parent?this.parent.getChildrenLayoutType():"row"},t.prototype.isLayoutTypeSupported=function(e){return e!=="flow"},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(e){i.prototype.notifyStateChanged.call(this,e),this.isCollapsed&&this.onHidingContent()},t.prototype.updateElementVisibility=function(){this.updateIsVisibleProp()},t.prototype.updateIsVisibleProp=function(){var e=this.getPropertyValue("isVisible"),n=this.isVisible;e!==n&&(this.setPropertyValue("isVisible",n),n||this.onHidingContent()),n!==this.visible&&this.areInvisibleElementsShowing&&this.updateQuestionCss(!0)},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()?!1:this.areInvisibleElementsShowing?!0: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,n){return n===void 0&&(n=null),this.moveToBase(this.parent,e,n)},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}:i.prototype.getProgressInfo.call(this)},t.prototype.ensureSetValueExpressionRunner=function(){var e=this;this.setValueExpressionRunner?this.setValueExpressionRunner.expression=this.setValueExpression:(this.setValueExpressionRunner=new et(this.setValueExpression),this.setValueExpressionRunner.onRunComplete=function(n){e.runExpressionSetValue(n)})},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?this.canExecuteTriggerByKeys(e,this.setValueExpressionRunner):!1},t.prototype.addTriggerInfo=function(e,n,r){var o=new Ru(e,n,r);return this.triggersInfo.push(o),o},t.prototype.runTriggerInfo=function(e,n){var r=this[e.name];if(!r||e.isRunning||!e.canRun()){e.runSecondCheck(n)&&e.doComplete();return}e.runner?e.runner.expression=r:(e.runner=new et(r),e.runner.onRunComplete=function(o){o===!0&&e.doComplete(),e.isRunning=!1}),!(!this.canExecuteTriggerByKeys(n,e.runner)&&!e.runSecondCheck(n))&&(e.isRunning=!0,e.runner.run(this.getDataFilteredValues(),this.getDataFilteredProperties()))},t.prototype.canExecuteTriggerByKeys=function(e,n){var r=n.getVariables();return(!r||r.length===0)&&n.hasFunction()?!0:new me().isAnyKeyChanged(e,r)},t.prototype.runTriggers=function(e,n,r){var o=this;this.isSettingQuestionValue||this.parentQuestion&&this.parentQuestion.getValueName()===e||(r||(r={},r[e]=n),this.triggersInfo.forEach(function(s){o.runTriggerInfo(s,r)}))},t.prototype.runConditions=function(){this.data&&!this.isLoadingFromJson&&(this.isDesignMode||this.runCondition(this.getDataFilteredValues(),this.getDataFilteredProperties()),this.locStrsChanged())},t.prototype.setSurveyImpl=function(e,n){i.prototype.setSurveyImpl.call(this,e),this.survey&&(this.survey.questionCreated(this),n!==!0&&this.runConditions(),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),e&&this.updateQuestionCss(),this.onParentChanged())},enumerable:!1,configurable:!0}),t.prototype.onParentChanged=function(){},Object.defineProperty(t.prototype,"hasTitle",{get:function(){return this.getTitleLocation()!=="hidden"},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"titleLocation",{get:function(){return this.getPropertyValue("titleLocation")},set:function(e){var n=this.titleLocation=="hidden"||e=="hidden";this.setPropertyValue("titleLocation",e.toLowerCase()),this.updateQuestionCss(),n&&this.notifySurveyVisibilityChanged()},enumerable:!1,configurable:!0}),t.prototype.getTitleOwner=function(){return this},t.prototype.getIsTitleRenderedAsString=function(){return this.titleLocation==="hidden"},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(this.parent&&this.getTitleLocation()==="left"){var e=this.parent.getColumsForElement(this),n=e.length;if(n!==0&&e[0].questionTitleWidth)return e[0].questionTitleWidth;var r=this.getPercentQuestionTitleWidth();if(!r&&this.parent){var o=this.parent.getQuestionTitleWidth();return o&&!isNaN(o)&&(o=o+"px"),o}return r/(n||1)+"%"}},enumerable:!1,configurable:!0}),t.prototype.getPercentQuestionTitleWidth=function(){var e=!!this.parent&&this.parent.getQuestionTitleWidth();if(e&&e[e.length-1]==="%")return parseInt(e)},t.prototype.getTitleLocation=function(){if(this.isFlowLayout)return"hidden";var e=this.getTitleLocationCore();return e==="left"&&!this.isAllowTitleLeft&&(e="top"),e},t.prototype.getTitleLocationCore=function(){return this.titleLocation!=="default"?this.titleLocation:this.parent?this.parent.getQuestionTitleLocation():this.survey?this.survey.questionTitleLocation:"top"},Object.defineProperty(t.prototype,"hasTitleOnLeft",{get:function(){return this.hasTitle&&this.getTitleLocation()==="left"},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hasTitleOnTop",{get:function(){return this.hasTitle&&this.getTitleLocation()==="top"},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hasTitleOnBottom",{get:function(){return this.hasTitle&&this.getTitleLocation()==="bottom"},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hasTitleOnLeftTop",{get:function(){if(!this.hasTitle)return!1;var e=this.getTitleLocation();return e==="left"||e==="top"},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 this.errorLocation!=="default"?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 b.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 this.getDescriptionLocation()=="underTitle"&&this.hasDescription},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hasDescriptionUnderInput",{get:function(){return this.getDescriptionLocation()=="underInput"&&this.hasDescription},enumerable:!1,configurable:!0}),t.prototype.getDescriptionLocation=function(){return this.descriptionLocation!=="default"?this.descriptionLocation:this.survey?this.survey.questionDescriptionLocation:"underTitle"},t.prototype.needClickTitleFunction=function(){return i.prototype.needClickTitleFunction.call(this)||this.hasInput},t.prototype.processTitleClick=function(){var e=this;if(i.prototype.processTitleClick.call(this),!this.isCollapsed)return setTimeout(function(){e.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(){var e=this,n=function(){return e.isReadOnly?void 0:e.commentPlaceHolder};return this.getPropertyValue("renderedCommentPlaceholder",void 0,n)},enumerable:!1,configurable:!0}),t.prototype.resetRenderedCommentPlaceholder=function(){this.resetPropertyValue("renderedCommentPlaceholder")},t.prototype.getAllErrors=function(){return this.errors.slice()},t.prototype.getErrorByType=function(e){for(var n=0;n<this.errors.length;n++)if(this.errors[n].getErrorType()===e)return this.errors[n];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=cr.Instance.getCustomWidget(this)},t.prototype.localeChanged=function(){i.prototype.localeChanged.call(this),this.resetRenderedCommentPlaceholder(),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(){},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 n=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(r){var o=b.environment.root,s=o.getElementById(r);s&&n.commentElements.push(s)}),this.updateCommentElements()),this.checkForResponsiveness(e))},t.prototype.afterRenderCore=function(e){i.prototype.afterRenderCore.call(this,e)},t.prototype.getCommentElementsId=function(){return[this.commentId]},t.prototype.beforeDestroyQuestionElement=function(e){this.commentElements=void 0},Object.defineProperty(t.prototype,"processedTitle",{get:function(){var e=this.locProcessedTitle.textOrHtml;return e||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&&this.titlePattern=="requireNumTitle"},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isRequireTextBeforeTitle",{get:function(){return this.isRequired&&this.titlePattern=="numRequireTitle"&&this.requiredText!==""},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isRequireTextAfterTitle",{get:function(){return this.isRequired&&this.titlePattern=="numTitleRequire"&&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 n={error:{}};return this.copyCssClasses(n,e.question),this.copyCssClasses(n.error,e.error),this.updateCssClasses(n,e),n},t.prototype.onCalcCssClasses=function(e){i.prototype.onCalcCssClasses.call(this,e),this.survey&&this.survey.updateQuestionCssClasses(this,e),this.onUpdateCssClassesCallback&&this.onUpdateCssClassesCallback(e)},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(e){var n=this.hasCssError();return new O().append(i.prototype.getCssRoot.call(this,e)).append(this.isFlowLayout&&!this.isDesignMode?e.flowRoot:e.mainRoot).append(e.titleLeftRoot,!this.isFlowLayout&&this.hasTitleOnLeft).append(e.titleTopRoot,!this.isFlowLayout&&this.hasTitleOnTop).append(e.titleBottomRoot,!this.isFlowLayout&&this.hasTitleOnBottom).append(e.descriptionUnderInputRoot,!this.isFlowLayout&&this.hasDescriptionUnderInput).append(e.hasError,n).append(e.hasErrorTop,n&&this.getErrorLocation()=="top").append(e.hasErrorBottom,n&&this.getErrorLocation()=="bottom").append(e.small,!this.width).append(e.answered,this.isAnswered).append(e.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 O().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 O().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(e){return new O().append(i.prototype.getCssTitle.call(this,e)).append(e.titleOnAnswer,!this.containsErrors&&this.isAnswered).append(e.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 O().append(e.description).append(e.descriptionUnderInput,this.getDescriptionLocation()=="underInput").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&&this.getErrorLocation()==="top"},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"showErrorsBelowQuestion",{get:function(){return this.showErrorsOutsideQuestion&&this.getErrorLocation()==="bottom"},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 O().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 O().append(this.cssRoot).append(this.cssClasses.mobile,this.isMobile).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 O().append(this.cssClasses.root).append(this.cssClasses.rootMobile,this.isMobile).toString()},t.prototype.updateElementCss=function(e){this.wasRendered?(i.prototype.updateElementCss.call(this,e),e&&this.updateQuestionCss(!0)):this.isRequireUpdateElements=!0,this.resetIndents()},t.prototype.onFirstRenderingCore=function(){this.isRequireUpdateElements&&(this.isRequireUpdateElements=!1,this.updateElementCss(!0)),i.prototype.onFirstRenderingCore.call(this)},t.prototype.updateQuestionCss=function(e){this.isLoadingFromJson||!this.survey||(this.wasRendered?this.updateElementCssCore(this.cssClasses):this.isRequireUpdateElements=!0)},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,n){if(n.question){var r=n[this.getCssType()],o=new O().append(e.title).append(n.question.titleRequired,this.isRequired);e.title=o.toString();var s=new O().append(e.root).append(r,this.isRequired&&!!n.question.required);if(r==null)e.root=s.toString();else if(typeof r=="string"||r instanceof String)e.root=s.append(r.toString()).toString();else{e.root=s.toString();for(var a in r)e[a]=r[a]}}},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.calcPaddingLeft=function(){return this.getIndentSize(this.indent)},t.prototype.calcPaddingRight=function(){return 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,n){var r=this;if(e===void 0&&(e=!1),!(this.isDesignMode||!this.isVisible||!this.survey)){var o=this.page,s=!!o&&this.survey.activePage!==o;if(s)this.survey.focusQuestionByInstance(this,e);else if(this.survey){this.expandAllParents();var a=this.survey.isSmoothScrollEnabled?{behavior:"smooth"}:void 0;this.survey.scrollElementToTop(this,this,null,this.id,n,a,void 0,function(){r.focusInputElement(e)})}else this.focusInputElement(e)}},t.prototype.focusInputElement=function(e){var n,r=e?this.getFirstErrorInputElementId():this.getFirstInputElementId(),o=(n=this.survey)===null||n===void 0?void 0:n.rootElement;le.FocusElement(r,!1,o)&&this.fireCallback(this.focusCallback)},Object.defineProperty(t.prototype,"isValidateVisitedEmptyFields",{get:function(){return this.supportEmptyValidation()&&!!this.survey&&this.survey.getValidateVisitedEmptyFields()&&this.isEmpty()},enumerable:!1,configurable:!0}),t.prototype.supportEmptyValidation=function(){return!1},t.prototype.onBlur=function(e){this.onBlurCore(e)},t.prototype.onFocus=function(e){this.onFocusCore(e)},t.prototype.onBlurCore=function(e){this.isFocusEmpty&&this.isEmpty()&&this.validate(!0)},t.prototype.onFocusCore=function(e){this.isFocusEmpty=this.isValidateVisitedEmptyFields},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=Object.keys(t.TextPreprocessorValuesMap).indexOf(n)!==-1||this[e.name]!==void 0,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,n=!!this.parentQuestion&&this.parentQuestion.isReadOnly,r=!!this.survey&&this.survey.isDisplayMode,o=!!this.readOnlyCallback&&this.readOnlyCallback();return this.readOnly||e||r||n||o},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isInputReadOnly",{get:function(){return this.forceIsInputReadOnly!==void 0?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||!!this.readOnlyCallback&&this.readOnlyCallback()},enumerable:!1,configurable:!0}),t.prototype.onReadOnlyChanged=function(){this.setPropertyValue("isInputReadOnly",this.isInputReadOnly),i.prototype.onReadOnlyChanged.call(this),this.isReadOnly&&this.clearErrors(),this.updateQuestionCss(),this.resetRenderedCommentPlaceholder()},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,n){this.isDesignMode||(n||(n={}),n.question=this,this.runConditionCore(e,n),!this.isValueChangedDirectly&&(!this.isClearValueOnHidden||this.isVisibleInSurvey)&&(this.defaultValueRunner=this.getDefaultRunner(this.defaultValueRunner,this.defaultValueExpression),this.runDefaultValueExpression(this.defaultValueRunner,e,n)))},Object.defineProperty(t.prototype,"isInDesignMode",{get:function(){return!this.isContentElement&&this.isDesignMode},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isInDesignModeV2",{get:function(){return!this.isContentElement&&this.isDesignModeV2},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"no",{get:function(){return this.getPropertyValue("no")},enumerable:!1,configurable:!0}),t.prototype.calcNo=function(){var e;if(!this.hasTitle||this.hideNumber)return"";var n=(e=this.parent)===null||e===void 0?void 0:e.visibleIndex,r=P.getNumberByIndex(this.visibleIndex,this.getStartIndex(),n);return this.survey&&(r=this.survey.getUpdatedQuestionNo(this,r)),r},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()},t.prototype.onSetData=function(){i.prototype.onSetData.call(this),!this.isDesignMode&&this.survey&&!this.isLoadingFromJson&&(this.initDataFromSurvey(),this.onSurveyValueChanged(this.value),this.updateValueWithDefaults(),this.updateIsAnswered())},t.prototype.initDataFromSurvey=function(){if(this.data){var e=this.data.getValue(this.getValueName());(!P.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.valueForSurveyCore(this.value)},enumerable:!1,configurable:!0}),t.prototype.valueForSurveyCore=function(e){return this.valueToDataCallback?this.valueToDataCallback(e):e},t.prototype.valueFromDataCore=function(e){return this.valueFromDataCallback?this.valueFromDataCallback(e):e},t.prototype.clearValue=function(e){this.value!==void 0&&(this.value=void 0),this.comment&&e!==!0&&(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:P.getUnbindValue(e)},t.prototype.isValueSurveyElement=function(e){return e?Array.isArray(e)?e.length>0?this.isValueSurveyElement(e[0]):!1:!!e.getType&&!!e.onPropertyChanged:!1},t.prototype.canClearValueAsInvisible=function(e){return e==="onHiddenContainer"&&!this.isParentVisible?!0:this.isVisibleInSurvey||this.page&&this.page.isStartPage?!1:this.survey?!this.survey.hasVisibleQuestionByValueName(this.getValueName()):!0},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){e===void 0&&(e="onHidden");var n=this.getClearIfInvisible();n!=="none"&&(e==="onHidden"&&n==="onComplete"||e==="onHiddenContainer"&&n!==e||this.clearValueIfInvisibleCore(e))},t.prototype.clearValueIfInvisibleCore=function(e){this.canClearValueAsInvisible(e)&&this.clearValue()},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):e!=="default"?e:"onComplete"},Object.defineProperty(t.prototype,"displayValue",{get:function(){return this.isLoadingFromJson?"":this.getDisplayValue(!0)},enumerable:!1,configurable:!0}),t.prototype.getDisplayValue=function(e,n){n===void 0&&(n=void 0);var r=this.calcDisplayValue(e,n);return this.survey&&(r=this.survey.getQuestionDisplayValue(this,r)),this.displayValueCallback?this.displayValueCallback(r):r},t.prototype.calcDisplayValue=function(e,n){if(n===void 0&&(n=void 0),this.customWidget){var r=this.customWidget.getDisplayValue(this,n);if(r)return r}return n=n??this.createValueCopy(),this.isValueEmpty(n,!this.allowSpaceAsAnswer)?this.getDisplayValueEmpty():this.getDisplayValueCore(e,n)},t.prototype.getDisplayValueCore=function(e,n){return n},t.prototype.getDisplayValueEmpty=function(){return""},Object.defineProperty(t.prototype,"defaultValue",{get:function(){return this.getPropertyValue("defaultValue")},set:function(e){if(this.isValueExpression(e)){this.defaultValueExpression=e.substring(1);return}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 n=this;if(e||(e={includeEmpty:!0,includeQuestionTypes:!1}),e.includeEmpty||!this.isEmpty()){var r={name:this.name,title:this.locTitle.renderedHtml,value:this.value,displayValue:this.displayValue,isNode:!1,getString:function(o){return typeof o=="object"?JSON.stringify(o):o}};return e.includeQuestionTypes===!0&&(r.questionType=this.getType()),(e.calculations||[]).forEach(function(o){r[o.propertyName]=n.getPlainDataCalculatedValue(o.propertyName)}),this.hasComment&&(r.isNode=!0,r.data=[{name:0,isComment:!0,title:"Comment",value:b.commentSuffix,displayValue:this.comment,getString:function(o){return typeof o=="object"?JSON.stringify(o):o},isNode:!1}]),r}},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)?this.getCorrectAnswerCount():0},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=P.isTwoValueEquals(this.value,this.correctAnswer,this.getAnswerCorrectIgnoreOrder(),b.comparator.caseSensitive,!0),n=e?1:0,r=this.quizQuestionCount-n,o={result:e,correctAnswers:n,correctAnswerCount:n,incorrectAnswers:r,incorrectAnswerCount:r};return this.survey&&this.survey.onCorrectQuestionAnswer(this,o),o.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 e==="none"||e==="onComplete"?!1:e==="onHidden"||e==="onHiddenContainer"},enumerable:!1,configurable:!0}),t.prototype.getQuestionFromArray=function(e,n){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,n){return!e&&n&&(e=this.createExpressionRunner(n)),e&&(e.expression=n),e},t.prototype.setDefaultValue=function(){var e=this;this.setDefaultValueCore(function(n){e.isTwoValueEquals(e.value,n)||(e.value=n)})},t.prototype.setDefaultValueCore=function(e){this.defaultValueRunner=this.getDefaultRunner(this.defaultValueRunner,this.defaultValueExpression),this.setValueAndRunExpression(this.defaultValueRunner,this.getUnbindValue(this.defaultValue),function(n){return e(n)})},t.prototype.isValueExpression=function(e){return!!e&&typeof e=="string"&&e.length>0&&e[0]=="="},t.prototype.setValueAndRunExpression=function(e,n,r,o,s){var a=this;o===void 0&&(o=null),s===void 0&&(s=null);var l=function(u){a.runExpressionSetValueCore(u,r)};this.runDefaultValueExpression(e,o,s,l)||l(n)},t.prototype.convertFuncValuetoQuestionValue=function(e){return P.convertValToQuestionVal(e)},t.prototype.runExpressionSetValueCore=function(e,n){n(this.convertFuncValuetoQuestionValue(e))},t.prototype.runExpressionSetValue=function(e){var n=this;this.runExpressionSetValueCore(e,function(r){n.isTwoValueEquals(n.value,r)||(n.startSetValueOnExpression(),n.value=r,n.finishSetValueOnExpression())})},t.prototype.startSetValueOnExpression=function(){var e;(e=this.survey)===null||e===void 0||e.startSetValueOnExpression()},t.prototype.finishSetValueOnExpression=function(){var e;(e=this.survey)===null||e===void 0||e.finishSetValueOnExpression()},t.prototype.runDefaultValueExpression=function(e,n,r,o){var s=this;return n===void 0&&(n=null),r===void 0&&(r=null),!e||!this.data?!1:(o||(o=function(a){s.runExpressionSetValue(a)}),n||(n=this.defaultValueExpression?this.data.getFilteredValues():{}),r||(r=this.defaultValueExpression?this.data.getFilteredProperties():{},r.question=this),e&&e.canRun&&(e.onRunComplete=function(a){a==null&&(a=s.defaultValue),s.isChangingViaDefaultValue=!0,o(a),s.isChangingViaDefaultValue=!1},e.run(n,r)),!0)},Object.defineProperty(t.prototype,"comment",{get:function(){return this.getQuestionComment()},set:function(e){if(e){var n=e.toString().trim();n!==e&&(e=n,e===this.comment&&this.setPropertyValueDirectly("comment",e))}this.comment!=e&&(this.setQuestionComment(e),this.updateCommentElements())},enumerable:!1,configurable:!0}),t.prototype.getCommentAreaCss=function(e){return e===void 0&&(e=!1),new O().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")||!1},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=[],n=this.getType();n;){var r=b.supportedValidators[n];if(r)for(var o=r.length-1;o>=0;o--)e.splice(0,0,r[o]);var s=x.findClass(n);n=s.parentName}return e},t.prototype.addConditionObjectsByContext=function(e,n){e.push({name:this.getFilteredName(),text:this.processedTitle,question:this})},t.prototype.getNestedQuestions=function(e){e===void 0&&(e=!1);var n=[];return this.collectNestedQuestions(n,e),n.length===1&&n[0]===this?[]:n},t.prototype.collectNestedQuestions=function(e,n){n===void 0&&(n=!1),!(n&&!this.isVisible)&&this.collectNestedQuestionsCore(e,n)},t.prototype.collectNestedQuestionsCore=function(e,n){e.push(this)},t.prototype.getConditionJson=function(e,n){var r=new fe().toJsonObject(this);return r.type=this.getType(),r},t.prototype.hasErrors=function(e,n){e===void 0&&(e=!0),n===void 0&&(n=null);var r=this.checkForErrors(!!n&&n.isOnValueChanged===!0,e);return e&&(this.survey&&this.survey.beforeSettingQuestionErrors(this,r),this.errors=r,this.errors!==r&&this.errors.forEach(function(o){return o.locText.strChanged()})),this.updateContainsErrors(),this.isCollapsed&&n&&e&&r.length>0&&this.expand(),r.length>0},t.prototype.validate=function(e,n){return e===void 0&&(e=!0),n===void 0&&(n=null),n&&n.isOnValueChanged&&this.parent&&this.parent.validateContainerOnly(),!this.hasErrors(e,n)},Object.defineProperty(t.prototype,"currentErrorCount",{get:function(){return this.errors.length},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"requiredText",{get:function(){return this.survey!=null&&this.isRequired?this.survey.requiredText:""},enumerable:!1,configurable:!0}),t.prototype.addError=function(e){if(e){var n=null;typeof e=="string"||e instanceof String?n=this.addCustomError(e):n=e,this.errors.push(n)}},t.prototype.addCustomError=function(e){return new we(e,this.survey)},t.prototype.removeError=function(e){if(!e)return!1;var n=this.errors,r=n.indexOf(e);return r!==-1&&n.splice(r,1),r!==-1},t.prototype.checkForErrors=function(e,n){var r=new Array;return this.isVisible&&this.canCollectErrors()&&this.collectErrors(r,e,n),r},t.prototype.canCollectErrors=function(){return!this.isReadOnly||b.readOnly.enableValidation},t.prototype.collectErrors=function(e,n,r){if(this.onCheckForErrors(e,n,r),!(e.length>0||!this.canRunValidators(n))){var o=this.runValidators();if(o.length>0){e.length=0;for(var s=0;s<o.length;s++)e.push(o[s])}if(this.survey&&e.length==0){var a=this.fireSurveyValidation();a&&e.push(a)}}},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,n,r){var o=this;if((!n||this.isOldAnswered)&&this.hasRequiredError()){var s=new yo(this.requiredErrorText,this);s.onUpdateErrorTextCallback=function(l){l.text=o.requiredErrorText},e.push(s)}if(!this.isEmpty()&&this.customWidget){var a=this.customWidget.validate(this);a&&e.push(this.addCustomError(a))}},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 Po,this.isRunningValidatorsValue=!0,this.validatorRunner.onAsyncCompleted=function(n){e.doOnAsyncCompleted(n)},this.validatorRunner.run(this)},t.prototype.doOnAsyncCompleted=function(e){for(var n=0;n<e.length;n++)this.errors.push(e[n]);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,this.parent&&this.parent.onQuestionValueChanged(this))},t.prototype.checkIsValueCorrect=function(e){var n=this.isValueEmpty(e,!this.allowSpaceAsAnswer)||this.isNewValueCorrect(e);return n||Fe.inCorrectQuestionValue(this.name,e),n},t.prototype.isNewValueCorrect=function(e){return!0},t.prototype.isNewValueEqualsToValue=function(e){var n=this.value;if(!this.isTwoValueEquals(e,n,!1,!1))return!1;var r=e===n&&!!n&&(Array.isArray(n)||typeof n=="object");return!r},t.prototype.isTextValue=function(){return!1},t.prototype.getIsInputTextUpdate=function(){return this.survey?this.survey.isUpdateValueTextOnTyping:!1},Object.defineProperty(t.prototype,"requireStrictCompare",{get:function(){return!1},enumerable:!1,configurable:!0}),t.prototype.getDataLocNotification=function(){return this.isInputTextUpdate?"text":!1},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),this.data!=null&&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){this.data!=null&&this.data.setComment(this.getValueName(),e,this.getIsInputTextUpdate()?"text":!1)},t.prototype.getValidName=function(e){return fr(e)},t.prototype.updateValueFromSurvey=function(e,n){var r=this;if(n===void 0&&(n=!1),e=this.getUnbindValue(e),e=this.valueFromDataCore(e),!!this.checkIsValueCorrect(e)){var o=this.isValueEmpty(e);!o&&this.defaultValueExpression?this.setDefaultValueCore(function(s){r.updateValueFromSurveyCore(e,r.isTwoValueEquals(e,s))}):(this.updateValueFromSurveyCore(e,this.data!==this.getSurvey()),n&&o&&(this.isValueChangedDirectly=!1)),this.updateDependedQuestions(),this.updateIsAnswered()}},t.prototype.updateValueFromSurveyCore=function(e,n){this.isChangingViaDefaultValue=n,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,n){n===void 0&&(n=!0),e=this.convertToCorrectValue(e);var r=this.isTwoValueEquals(this.questionValue,e);!r&&!this.isChangingViaDefaultValue&&!this.isParentChangingViaDefaultValue&&this.setValueChangedDirectly(!0),this.questionValue=e,r||this.onChangeQuestionValue(e),!r&&this.allowNotifyValueChanged&&this.fireCallback(this.valueChangedCallback),n&&this.updateIsAnswered()},Object.defineProperty(t.prototype,"isParentChangingViaDefaultValue",{get:function(){var e;return((e=this.data)===null||e===void 0?void 0:e.isChangingViaDefaultValue)===!0},enumerable:!1,configurable:!0}),t.prototype.onSurveyValueChanged=function(e){},t.prototype.setVisibleIndex=function(e){return(!this.isVisible||!this.hasTitle&&!b.numbering.includeQuestionsWithHiddenTitle||this.hideNumber&&!b.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,n){},t.prototype.checkBindings=function(e,n){if(!(this.bindings.isEmpty()||!this.data))for(var r=this.bindings.getPropertiesByValueName(e),o=0;o<r.length;o++){var s=r[o];this.isValueEmpty(n)&&P.isNumber(this[s])&&(n=0),this.updateBindingProp(s,n)}},t.prototype.updateBindingProp=function(e,n){this[e]=n},t.prototype.getComponentName=function(){return Ro.Instance.getRendererByQuestion(this)},t.prototype.isDefaultRendering=function(){return!!this.customWidget||this.getComponentName()==="default"},t.prototype.getErrorCustomText=function(e,n){return this.survey?this.survey.getSurveyErrorCustomText(this,e,n):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,n){this.survey.processPopupVisiblityChanged(this,e,n)},t.prototype.processOpenDropdownMenu=function(e){this.survey.processOpenDropdownMenu(this,e)},t.prototype.onTextKeyDownHandler=function(e){e.keyCode===13&&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 n=this;if(this.needResponsiveness())if(this.isCollapsed){var r=function(){n.isExpanded&&(n.initResponsiveness(e),n.unregisterPropertyChangedHandlers(["state"],"for-responsiveness"))};this.registerPropertyChangedHandlers(["state"],r,"for-responsiveness")}else this.initResponsiveness(e)},t.prototype.getObservedElementSelector=function(){return".sd-scrollable-container"},t.prototype.onMobileChanged=function(){this.onMobileChangedCallback&&this.onMobileChangedCallback()},t.prototype.triggerResponsiveness=function(e){e===void 0&&(e=!0),this.triggerResponsivenessCallback&&this.triggerResponsivenessCallback(e)},t.prototype.initResponsiveness=function(e){var n=this;if(this.destroyResizeObserver(),e&&this.isDefaultRendering()){var r=this.getObservedElementSelector();if(!r)return;var o=e.querySelector(r);if(!o)return;var s=!1,a=void 0;this.triggerResponsivenessCallback=function(l){l&&(a=void 0,n.renderAs="default",s=!1);var u=function(){var d=e.querySelector(r);!a&&n.isDefaultRendering()&&(a=d.scrollWidth),s||!ar(d)?s=!1:s=n.processResponsiveness(a,sr(d))};l?setTimeout(u,1):u()},this.resizeObserver=new ResizeObserver(function(l){E.requestAnimationFrame(function(){n.triggerResponsiveness(!1)})}),this.onMobileChangedCallback=function(){setTimeout(function(){var l=e.querySelector(r);n.processResponsiveness(a,sr(l))},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,n){if(n=Math.round(n),Math.abs(e-n)>2){var r=this.renderAs;return e>n?(this.onBeforeSetCompactRenderer(),this.renderAs=this.getCompactRenderAs()):(this.onBeforeSetDesktopRenderer(),this.renderAs=this.getDesktopRenderAs()),r!==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(){i.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.hasDescription?this.ariaDescriptionId: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.hasDescription?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,vt([h({defaultValue:!1})],t.prototype,"_isMobile",void 0),vt([h()],t.prototype,"forceIsInputReadOnly",void 0),vt([h()],t.prototype,"ariaExpanded",void 0),vt([h({localizable:!0,onSet:function(e,n){return n.resetRenderedCommentPlaceholder()}})],t.prototype,"commentPlaceholder",void 0),vt([h()],t.prototype,"renderAs",void 0),vt([h({defaultValue:!1})],t.prototype,"inMatrixMode",void 0),t}(le);function fr(i){if(!i)return i;for(i=i.trim().replace(/[\{\}]+/g,"");i&&i[0]===b.expressionDisableConversionChar;)i=i.substring(1);return i}x.addClass("question",[{name:"!name",onSettingValue:function(i,t){return fr(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 b.minWidth}},{name:"maxWidth",defaultFunc:function(){return b.maxWidth}},{name:"colSpan:number",visible:!1,onSerializeValue:function(i){return i.getPropertyValue("colSpan")}},{name:"effectiveColSpan:number",minValue:1,isSerializable:!1,visibleIf:function(i){return!!i&&!!i.survey&&i.survey.gridLayoutEnabled}},{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(i){var t=i?i.survey:null;return!t||!t.pages||t.pages.length>1},choices:function(i){var t=i?i.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(i,t){i&&t&&(t.placeholder=i.getDefaultTitle())}},{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(i){if(!i)return!0;if(i.titleLocation==="hidden")return!1;var t=i?i.parent:null,e=!t||t.showQuestionNumbers!=="off";if(!e)return!1;var n=i?i.survey:null;return!n||n.showQuestionNumbers!=="off"||!!t&&t.showQuestionNumbers==="onpanel"}},{name:"valueName",onSettingValue:function(i,t){return fr(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(i){return i.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(i){return i.showCommentArea},serializationProperty:"locCommentText"},{name:"commentPlaceholder",alternativeName:"commentPlaceHolder",serializationProperty:"locCommentPlaceholder",dependsOn:"showCommentArea",visibleIf:function(i){return i.hasComment}}]),x.addAlterNativeClassName("question","questionbase");var Eu=function(){var i=function(t,e){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(n[o]=r[o])},i(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");i(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),pr=function(i,t,e,n){var r=arguments.length,o=r<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,e):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(i,t,e,n);else for(var a=i.length-1;a>=0;a--)(s=i[a])&&(o=(r<3?s(o):r>3?s(t,e,o):s(t,e))||o);return r>3&&o&&Object.defineProperty(t,e,o),o},k=function(i){Eu(t,i);function t(e,n,r){n===void 0&&(n=null),r===void 0&&(r="itemvalue");var o=i.call(this)||this;return o.typeName=r,o.ownerPropertyName="",o.locTextValue=new Se(o,!0,"text"),o.locTextValue.onStrChanged=function(s,a){a==o.value&&(a=void 0),o.propertyValueChanged("text",s,a)},o.locTextValue.onGetTextCallback=function(s){return s||(P.isValueEmpty(o.value)?null:o.value.toString())},n&&(o.locText.text=n),e&&typeof e=="object"?o.setData(e,!0):o.setValue(e,!0),o.getType()!="itemvalue"&&Ne.createProperties(o),o.data=o,o.onCreating(),o}return t.prototype.getMarkdownHtml=function(e,n){return this.locOwner?this.locOwner.getMarkdownHtml(e,n):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 b.itemValueSeparator},set:function(e){b.itemValueSeparator=e},enumerable:!1,configurable:!0}),t.setData=function(e,n,r){e.length=0;for(var o=0;o<n.length;o++){var s=n[o],a=s&&typeof s.getType=="function"?s.getType():r??"itemvalue",l=x.createClass(a);l.setData(s),s.originalItem&&(l.originalItem=s.originalItem),e.push(l)}},t.getData=function(e){for(var n=[],r=0;r<e.length;r++)n.push(e[r].getData());return n},t.getItemByValue=function(e,n){if(!Array.isArray(e))return null;for(var r=P.isValueEmpty(n),o=0;o<e.length;o++)if(r&&P.isValueEmpty(e[o].value)||P.isTwoValueEquals(e[o].value,n,!1,!0,!1))return e[o];return null},t.getTextOrHtmlByValue=function(e,n){var r=t.getItemByValue(e,n);return r!==null?r.locText.textOrHtml:""},t.locStrsChanged=function(e){for(var n=0;n<e.length;n++)e[n].locStrsChanged()},t.runConditionsForItems=function(e,n,r,o,s,a,l){return a===void 0&&(a=!0),t.runConditionsForItemsCore(e,n,r,o,s,!0,a,l)},t.runEnabledConditionsForItems=function(e,n,r,o,s){return t.runConditionsForItemsCore(e,null,n,r,o,!1,!0,s)},t.runConditionsForItemsCore=function(e,n,r,o,s,a,l,u){l===void 0&&(l=!0),o||(o={});for(var d=o.item,v=o.choice,V=!1,T=0;T<e.length;T++){var R=e[T];o.item=R.value,o.choice=R.value;var N=l&&R.getConditionRunner?R.getConditionRunner(a):!1;N||(N=r);var j=!0;N&&(j=N.run(o,s)),u&&(j=u(R,j)),n&&j&&n.push(R);var A=a?R.isVisible:R.isEnabled;j!=A&&(V=!0,a?R.setIsVisible&&R.setIsVisible(j):R.setIsEnabled&&R.setIsEnabled(j))}return d?o.item=d:delete o.item,v?o.choice=v:delete o.choice,V},t.prototype.onCreating=function(){},t.prototype.getType=function(){return this.typeName?this.typeName:"itemvalue"},t.prototype.getSurvey=function(e){return 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 this.isGhost===!0},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){this.setValue(e,!1)},enumerable:!1,configurable:!0}),t.prototype.setValue=function(e,n){var r=void 0;if(!P.isValueEmpty(e)){var o=e.toString(),s=o.indexOf(b.itemValueSeparator);s>-1&&(e=o.slice(0,s),r=o.slice(s+1))}n?this.setPropertyValueDirectly("value",e):this.setPropertyValue("value",e),r&&(this.text=r),this.id=this.value},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 e==null?!1:!Array.isArray(e)&&typeof e!="object"},t.prototype.getData=function(){var e=this.toJSON();if(e.value&&e.value.pos&&delete e.value.pos,P.isValueEmpty(e.value))return e;var n=this.canSerializeValue(),r=!n||!b.serialization.itemValueSerializeAsObject&&!b.serialization.itemValueSerializeDisplayText;return r&&Object.keys(e).length==1?this.value:(b.serialization.itemValueSerializeDisplayText&&e.text===void 0&&n&&(e.text=this.value.toString()),e)},t.prototype.toJSON=function(){var e={},n=x.getProperties(this.getType());(!n||n.length==0)&&(n=x.getProperties("itemvalue"));for(var r=new fe,o=0;o<n.length;o++){var s=n[o];s.name==="text"&&!this.locText.hasNonDefaultText()&&P.isTwoValueEquals(this.value,this.text,!1,!0,!1)||r.valueToJson(this,e,s)}return e},t.prototype.setData=function(e,n){if(!P.isValueEmpty(e)){if(typeof e.value>"u"&&typeof e.text<"u"&&Object.keys(e).length===1&&(e.value=e.text),typeof e.value<"u"){var r=void 0;typeof e.toJSON=="function"?r=e.toJSON():r=e,new fe().toObject(r,this)}else this.setValue(e,n);n||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 e!==void 0?e:!0},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 e!==void 0?e:!0},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(){i.prototype.locStrsChanged.call(this),this.locText.strChanged()},t.prototype.onPropertyValueChanged=function(e,n,r){e==="value"&&!this.hasText&&this.locText.strChanged();var o="itemValuePropertyChanged";!this.locOwner||!this.locOwner[o]||this.locOwner[o](this,e,n,r)},t.prototype.getConditionRunner=function(e){return e?this.getVisibleConditionRunner():this.getEnableConditionRunner()},t.prototype.getVisibleConditionRunner=function(){return this.visibleIf?(this.visibleConditionRunner||(this.visibleConditionRunner=new de(this.visibleIf)),this.visibleConditionRunner.expression=this.visibleIf,this.visibleConditionRunner):null},t.prototype.getEnableConditionRunner=function(){return this.enableIf?(this.enableConditionRunner||(this.enableConditionRunner=new de(this.enableIf)),this.enableConditionRunner.expression=this.enableIf,this.enableConditionRunner):null},Object.defineProperty(t.prototype,"selected",{get:function(){var e=this,n=this._locOwner;return n instanceof ue&&n.isItemSelected&&this.selectedValue===void 0&&(this.selectedValue=new te(function(){return n.isItemSelected(e)})),this.selectedValue},enumerable:!1,configurable:!0}),t.prototype.getComponent=function(){return this._locOwner instanceof ue?this.componentValue||this._locOwner.itemComponent:this.componentValue},t.prototype.setComponent=function(e){this.componentValue=e},t.prototype.setRootElement=function(e){this._htmlElement=e},t.prototype.getRootElement=function(){return this._htmlElement},t.prototype.getEnabled=function(){return this.isEnabled},t.prototype.setEnabled=function(e){this.setIsEnabled(e)},t.prototype.getVisible=function(){var e=this.isVisible===void 0?!0:this.isVisible,n=this._visible===void 0?!0:this._visible;return e&&n},t.prototype.setVisible=function(e){this.visible!==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){},pr([h({defaultValue:!0})],t.prototype,"_visible",void 0),pr([h()],t.prototype,"selectedValue",void 0),pr([h()],t.prototype,"icon",void 0),t}(Zt);z.createItemValue=function(i,t){var e=null;return t?e=fe.metaData.createClass(t,{}):typeof i.getType=="function"?e=new k(null,void 0,i.getType()):e=new k(null),e.setData(i),e},z.itemValueLocStrChanged=function(i){k.locStrsChanged(i)},Gt.getItemValuesDefaultValue=function(i,t){var e=new Array;return k.setData(e,Array.isArray(i)?i:[],t),e},x.addClass("itemvalue",[{name:"!value",isUnique:!0},{name:"text",serializationProperty:"locText"},{name:"visibleIf:condition",showMode:"form"},{name:"enableIf:condition",showMode:"form",visibleIf:function(i){return!i||i.ownerPropertyName!=="rateValues"}}],function(i){return new k(i)});var Iu=function(){var i=function(t,e){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(n[o]=r[o])},i(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");i(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),Eo=function(i){Iu(t,i);function t(e,n){e===void 0&&(e=null),n===void 0&&(n=null);var r=i.call(this)||this;return r.expressionIsRunning=!1,r.isCalculated=!1,e&&(r.name=e),n&&(r.expression=n),r}return t.prototype.setOwner=function(e){this.data=e,this.rerunExpression()},t.prototype.getType=function(){return"calculatedvalue"},t.prototype.getSurvey=function(e){return 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,n,r){this.isCalculated||(this.runExpressionCore(e,n,r),this.isCalculated=!0)},t.prototype.runExpression=function(e,n){this.runExpressionCore(null,e,n)},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,n,r){this.canRunExpression&&(this.ensureExpression(n),this.locCalculation(),e&&this.runDependentExpressions(e,n,r),this.expressionRunner.run(n,r))},t.prototype.runDependentExpressions=function(e,n,r){var o=this.expressionRunner.getVariables();if(o)for(var s=0;s<e.length;s++){var a=e[s];a===this||o.indexOf(a.name)<0||(a.doCalculation(e,n,r),n[a.name]=a.value)}},t.prototype.ensureExpression=function(e){var n=this;this.expressionRunner||(this.expressionRunner=new et(this.expression),this.expressionRunner.onRunComplete=function(r){P.isTwoValueEquals(r,n.value,!1,!0,!1)||n.setValue(r),n.unlocCalculation()})},t}(z);x.addClass("calculatedvalue",[{name:"!name",isUnique:!0},"expression:expression","includeIntoResult:boolean"],function(){return new Eo},"base");var dr=function(){var i=function(t,e){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(n[o]=r[o])},i(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");i(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),hr=function(i){dr(t,i);function t(e){e===void 0&&(e=null);var n=i.call(this)||this;return n.expression=e,n}return t.prototype.getType=function(){return"expressionitem"},t.prototype.runCondition=function(e,n){return this.expression?new de(this.expression).run(e,n):!1},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,n){return this.locOwner?this.locOwner.getMarkdownHtml(e,n):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 this.locOwner},t}(z),Io=function(i){dr(t,i);function t(e,n){e===void 0&&(e=null),n===void 0&&(n=null);var r=i.call(this,e)||this;return r.createLocalizableString("html",r),r.html=n,r}return 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}(hr),Ao=function(i){dr(t,i);function t(e,n){e===void 0&&(e=null),n===void 0&&(n=null);var r=i.call(this,e)||this;return r.createLocalizableString("url",r),r.url=n,r}return 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}(hr);x.addClass("expressionitem",["expression:condition"],function(){return new hr},"base"),x.addClass("htmlconditionitem",[{name:"html:html",serializationProperty:"locHtml"}],function(){return new Io},"expressionitem"),x.addClass("urlconditionitem",[{name:"url:string",serializationProperty:"locUrl"}],function(){return new Ao},"expressionitem");var Do=function(){var i=function(t,e){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(n[o]=r[o])},i(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");i(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),Au=function(){function i(){this.parser=new DOMParser}return i.prototype.assignValue=function(t,e,n){Array.isArray(t[e])?t[e].push(n):t[e]!==void 0?t[e]=[t[e]].concat(n):typeof n=="object"&&Object.keys(n).length===1&&Object.keys(n)[0]===e?t[e]=n[e]:t[e]=n},i.prototype.xml2Json=function(t,e){if(t.children&&t.children.length>0)for(var n=0;n<t.children.length;n++){var r=t.children[n],o={};this.xml2Json(r,o),this.assignValue(e,r.nodeName,o)}else this.assignValue(e,t.nodeName,t.textContent)},i.prototype.parseXmlString=function(t){var e=this.parser.parseFromString(t,"text/xml"),n={};return this.xml2Json(e,n),n},i}(),ot=function(i){Do(t,i);function t(){var e=i.call(this)||this;return e.lastObjHash="",e.isRunningValue=!1,e.processedUrl="",e.processedPath="",e.isUsingCacheFromUrl=void 0,e.error=null,e.createItemValue=function(n){return new k(n)},e.registerPropertyChangedHandlers(["url"],function(){e.owner&&e.owner.setPropertyValue("isUsingRestful",!!e.url)}),e}return Object.defineProperty(t,"EncodeParameters",{get:function(){return b.web.encodeUrlParams},set:function(e){b.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 b.web.onBeforeRequestChoices},set:function(e){b.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):!1},t.prototype.getSurvey=function(e){return this.owner?this.owner.survey:null},t.prototype.run=function(e){if(e===void 0&&(e=null),!(!this.url||!this.getResultCallback)){if(this.processedText(e),!this.processedUrl){this.doEmptyResultCallback({}),this.lastObjHash=this.objHash;return}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 this.isUsingCacheFromUrl===!0?!0:this.isUsingCacheFromUrl===!1?!1:b.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 n=[];this.updateResultCallback&&(n=this.updateResultCallback(n,e)),this.getResultCallback(n)},t.prototype.processedText=function(e){var n=this.url;if(n&&(n=n.replace(t.cacheText,"").replace(t.noCacheText,"")),e){var r=e.processTextEx({text:n,runAtDesign:!0}),o=e.processTextEx({text:this.path,runAtDesign:!0});!r.hasAllValuesOnLastRun||!o.hasAllValuesOnLastRun?(this.processedUrl="",this.processedPath=""):(this.processedUrl=r.text,this.processedPath=o.text)}else this.processedUrl=n,this.processedPath=this.path;this.onProcessedUrlCallback&&this.onProcessedUrlCallback(this.processedUrl,this.processedPath)},t.prototype.parseResponse=function(e){var n;if(e&&typeof e.indexOf=="function"&&e.indexOf("<")===0){var r=new Au;n=r.parseXmlString(e)}else try{n=JSON.parse(e)}catch{n=(e||"").split(` +`).map(function(s){return s.trim(" ")}).filter(function(s){return!!s})}return n},t.prototype.sendRequest=function(){var e=new XMLHttpRequest;e.open("GET",this.processedUrl),e.setRequestHeader("Content-Type","application/x-www-form-urlencoded");var n=this,r=this.objHash;e.onload=function(){n.beforeLoadRequest(),e.status===200?n.onLoad(n.parseResponse(e.response),r):n.onError(e.statusText,e.responseText)};var o={request:e};b.web.onBeforeRequestChoices&&b.web.onBeforeRequestChoices(this,o),this.beforeSendRequest(),o.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(),n=new Array,r=0;r<e.length;r++)n.push(this.getCustomPropertyName(e[r].name));return n},t.prototype.getCustomPropertyName=function(e){return e+"Name"},t.prototype.getCustomProperties=function(){for(var e=x.getProperties(this.itemValueType),n=[],r=0;r<e.length;r++)e[r].name==="value"||e[r].name==="text"||e[r].name==="visibleIf"||e[r].name==="enableIf"||n.push(e[r]);return n},t.prototype.getAllPropertiesNames=function(){var e=new Array;return x.getPropertiesByObj(this).forEach(function(n){return e.push(n.name)}),this.getCustomPropertiesNames().forEach(function(n){return e.push(n)}),e},t.prototype.setData=function(e){var n=this;e||(e={}),this.getAllPropertiesNames().forEach(function(r){n[r]=e[r]})},t.prototype.getData=function(){var e=this,n={},r=!1;return this.getAllPropertiesNames().forEach(function(o){var s=e[o];!e.isValueEmpty(s)&&s!==e.getDefaultPropertyValue(o)&&(n[o]=s,r=!0)}),r?n:null},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=x.findProperty(this.owner.getType(),"choices");return!e||e.type=="itemvalue[]"?"itemvalue":e.type},enumerable:!1,configurable:!0}),t.prototype.clear=function(){this.setData(void 0)},t.prototype.beforeSendRequest=function(){this.isRunningValue=!0,this.beforeSendRequestCallback&&this.beforeSendRequestCallback()},t.prototype.beforeLoadRequest=function(){this.isRunningValue=!1},t.prototype.onLoad=function(e,n){n===void 0&&(n=null),n||(n=this.objHash);var r=new Array,o=this.getResultAfterPath(e);if(o&&o.length)for(var s=0;s<o.length;s++){var a=o[s];if(a){var l=this.getItemValueCallback?this.getItemValueCallback(a):this.getValue(a),u=this.createItemValue(l);this.setTitle(u,a),this.setCustomProperties(u,a),this.attachOriginalItems&&(u.originalItem=a);var d=this.getImageLink(a);d&&(u.imageLink=d),r.push(u)}}else this.allowEmptyResponse||(this.error=new Vu(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,n){n==this.objHash&&this.getResultCallback(e)},t.prototype.setCustomProperties=function(e,n){for(var r=this.getCustomProperties(),o=0;o<r.length;o++){var s=r[o],a=this.getValueCore(n,this.getPropertyBinding(s.name));this.isValueEmpty(a)||(e[s.name]=a)}},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 Pu(e,n,this.owner),this.doEmptyResultCallback(n),t.unregisterSameRequests(this,[])},t.prototype.getResultAfterPath=function(e){if(!e||!this.processedPath)return e;for(var n=this.getPathes(),r=0;r<n.length;r++)if(e=e[n[r]],!e)return null;return e},t.prototype.getPathes=function(){var e=[];return this.processedPath.indexOf(";")>-1?e=this.path.split(";"):this.processedPath.indexOf(",")>-1?e=this.processedPath.split(","):e=this.processedPath.split("."),e.length==0&&e.push(this.processedPath),e},t.prototype.getValue=function(e){if(!e)return null;if(this.valueName)return this.getValueCore(e,this.valueName);if(!(e instanceof Object))return e;var n=Object.keys(e).length;return n<1?null:e[Object.keys(e)[0]]},t.prototype.setTitle=function(e,n){var r=this.titleName?this.titleName:"title",o=this.getValueCore(n,r);o&&(typeof o=="string"?e.text=o:e.locText.setJson(o))},t.prototype.getImageLink=function(e){var n=this.imageLinkName?this.imageLinkName:"imageLink";return this.getValueCore(e,n)},t.prototype.getValueCore=function(e,n){if(!e)return null;if(n.indexOf(".")<0)return e[n];for(var r=n.split("."),o=0;o<r.length;o++)if(e=e[r[o]],!e)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}(z),Du=function(i){Do(t,i);function t(){return i!==null&&i.apply(this,arguments)||this}return Object.defineProperty(t,"EncodeParameters",{get:function(){return ot.EncodeParameters},set:function(e){ot.EncodeParameters=e},enumerable:!1,configurable:!0}),t.clearCache=function(){ot.clearCache()},Object.defineProperty(t,"onBeforeSendRequest",{get:function(){return b.web.onBeforeRequestChoices},set:function(e){b.web.onBeforeRequestChoices=e},enumerable:!1,configurable:!0}),t}(ot);x.addClass("choicesByUrl",["url","path","valueName","titleName",{name:"imageLinkName",visibleIf:function(i){return!!i&&!!i.owner&&i.owner.getType()=="imagepicker"}},{name:"allowEmptyResponse:boolean"},{name:"attachOriginalItems:boolean",visible:!1}],function(){return new ot});var Lu=function(){var i=function(t,e){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(n[o]=r[o])},i(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");i(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),Lo=function(i,t,e,n){var r=arguments.length,o=r<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,e):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(i,t,e,n);else for(var a=i.length-1;a>=0;a--)(s=i[a])&&(o=(r<3?s(o):r>3?s(t,e,o):s(t,e))||o);return r>3&&o&&Object.defineProperty(t,e,o),o},gr=function(i){Lu(t,i);function t(e){var n=i.call(this,e)||this;return n.generatedVisibleRows=null,n.generatedTotalRow=null,n.filteredRows=null,n.columns=n.createColumnValues(),n.rows=n.createItemValues("rows"),n}return t.prototype.createColumnValues=function(){return this.createItemValues("columns")},t.prototype.getType=function(){return"matrixbase"},t.prototype.endLoadingFromJson=function(){i.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(){var e=this,n=[];return this.columns.forEach(function(r){e.isColumnVisible(r)&&n.push(r)}),n},enumerable:!1,configurable:!0}),t.prototype.isColumnVisible=function(e){return e.isVisible},Object.defineProperty(t.prototype,"rows",{get:function(){return this.getPropertyValue("rows")},set:function(e){var n=this.processRowsOnSet(e);this.setPropertyValue("rows",n)},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.isLoadingFromJsonValue||this.runCondition(this.getDataFilteredValues(),this.getDataFilteredProperties())},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"columnsVisibleIf",{get:function(){return this.getPropertyValue("columnsVisibleIf","")},set:function(e){this.setPropertyValue("columnsVisibleIf",e),this.isLoadingFromJson||this.runCondition(this.getDataFilteredValues(),this.getDataFilteredProperties())},enumerable:!1,configurable:!0}),t.prototype.runCondition=function(e,n){i.prototype.runCondition.call(this,e,n),this.runItemsCondition(e,n)},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 e,n=i.prototype.isVisibleCore.call(this);return!n||!this.hideIfRowsEmpty?n:((e=this.visibleRows)===null||e===void 0?void 0:e.length)>0},t.prototype.shouldRunColumnExpression=function(){return!this.survey||!this.survey.areInvisibleElementsShowing},t.prototype.hasRowsAsItems=function(){return!0},t.prototype.runItemsCondition=function(e,n){var r=this.hasRowsAsItems()&&this.runConditionsForRows(e,n),o=this.runConditionsForColumns(e,n);r=o||r,r&&(this.isClearValueOnHidden&&o&&this.clearInvisibleColumnValues(),this.clearGeneratedRows(),o&&this.onColumnsChanged(),this.onRowsChanged())},t.prototype.isRowsFiltered=function(){return!!this.filteredRows},t.prototype.clearGeneratedRows=function(){this.generatedVisibleRows=null},t.prototype.createRowsVisibleIfRunner=function(){return null},t.prototype.runConditionsForRows=function(e,n){var r=!!this.survey&&this.survey.areInvisibleElementsShowing,o=r?null:this.createRowsVisibleIfRunner();this.filteredRows=[];var s=k.runConditionsForItems(this.rows,this.filteredRows,o,e,n,!r);return k.runEnabledConditionsForItems(this.rows,void 0,e,n),this.filteredRows.length===this.rows.length&&(this.filteredRows=null),s},t.prototype.runConditionsForColumns=function(e,n){var r=!!this.survey&&!this.survey.areInvisibleElementsShowing,o=r&&this.columnsVisibleIf?new de(this.columnsVisibleIf):null;return k.runConditionsForItems(this.columns,void 0,o,e,n,this.shouldRunColumnExpression())},t.prototype.clearInvisibleColumnValues=function(){},t.prototype.clearInvisibleValuesInRows=function(){},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 O().append(this.cssClasses.root).append(this.cssClasses.columnsAutoWidth,this.columnsAutoWidth).append(this.cssClasses.noHeader,!this.showHeader).append(this.cssClasses.hasFooter,!!(!((e=this.renderedTable)===null||e===void 0)&&e.showAddRowOnBottom)).append(this.cssClasses.rootAlternateRows,this.alternateRows).append(this.cssClasses.rootVerticalAlignTop,this.verticalAlign==="top").append(this.cssClasses.rootVerticalAlignMiddle,this.verticalAlign==="middle").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}),Object.defineProperty(t.prototype,"displayMode",{get:function(){return this.getPropertyValue("displayMode")},set:function(e){this.setPropertyValue("displayMode",e)},enumerable:!1,configurable:!0}),t.prototype.getCellAriaLabel=function(e,n){var r=(this.getLocalizationString("matrix_row")||"row").toLocaleLowerCase(),o=(this.getLocalizationString("matrix_column")||"column").toLocaleLowerCase();return r+" "+e+", "+o+" "+n},Object.defineProperty(t.prototype,"isNewA11yStructure",{get:function(){return!0},enumerable:!1,configurable:!0}),t.prototype.getIsMobile=function(){return this.displayMode=="auto"?i.prototype.getIsMobile.call(this):this.displayMode==="list"},Lo([h()],t.prototype,"verticalAlign",void 0),Lo([h()],t.prototype,"alternateRows",void 0),t}(ue);x.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},{name:"displayMode",default:"auto",choices:["auto","table","list"],visible:!1}],void 0,"question");var Mu=function(){function i(){}return i}(),Mo=function(){function i(t,e){this.name=t,this.returnDisplayValue=e,this.isExists=!1,this.canProcess=!0}return i}(),yr=function(){function i(){this._unObservableValues=[void 0]}return Object.defineProperty(i.prototype,"hasAllValuesOnLastRunValue",{get:function(){return this._unObservableValues[0]},set:function(t){this._unObservableValues[0]=t},enumerable:!1,configurable:!0}),i.prototype.process=function(t,e,n,r){if(this.hasAllValuesOnLastRunValue=!0,!t||!this.onProcess)return t;for(var o=this.getItems(t),s=o.length-1;s>=0;s--){var a=o[s],l=this.getName(t.substring(a.start+1,a.end));if(l){var u=new Mo(l,e===!0);if(this.onProcess(u),u.isExists||u.canProcess&&(this.hasAllValuesOnLastRunValue=!1),u.isExists||r){P.isValueEmpty(u.value)&&(this.hasAllValuesOnLastRunValue=!1);var d=P.isValueEmpty(u.value)?"":u.value;n&&(d=encodeURIComponent(d)),t=t.substring(0,a.start)+d+t.substring(a.end+1)}}}return t},i.prototype.processValue=function(t,e){var n=new Mo(t,e);return this.onProcess&&this.onProcess(n),n},Object.defineProperty(i.prototype,"hasAllValuesOnLastRun",{get:function(){return!!this.hasAllValuesOnLastRunValue},enumerable:!1,configurable:!0}),i.prototype.processText=function(t,e){return this.process(t,e)},i.prototype.processTextEx=function(t){var e={hasAllValuesOnLastRun:!0,text:t.text};return e.text=this.process(t.text,t.returnDisplayValue,t.doEncoding,t.replaceUndefinedValues),e.hasAllValuesOnLastRun=this.hasAllValuesOnLastRun,e},i.prototype.getItems=function(t){for(var e=[],n=t.length,r=-1,o="",s=0;s<n;s++)if(o=t[s],o=="{"&&(r=s),o=="}"){if(r>-1){var a=new Mu;a.start=r,a.end=s,this.isValidItemName(t.substring(r+1,s-1))&&e.push(a)}r=-1}return e},i.prototype.isValidItemName=function(t){return!!t&&t.indexOf(":")<0},i.prototype.getName=function(t){if(t)return t.trim()},i}(),mr=function(){function i(t){var e=this;this.variableName=t,this.textPreProcessor=new yr,this.textPreProcessor.onProcess=function(n){e.getProcessedTextValue(n)}}return i.prototype.processValue=function(t,e){return this.textPreProcessor.processValue(t,e)},Object.defineProperty(i.prototype,"survey",{get:function(){return null},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"panel",{get:function(){return null},enumerable:!1,configurable:!0}),i.prototype.getValues=function(){return this.panel?this.panel.getValue():null},i.prototype.getQuestionByName=function(t){return this.panel?this.panel.getQuestionByValueName(t):null},i.prototype.getParentTextProcessor=function(){return null},i.prototype.onCustomProcessText=function(t){return!1},i.prototype.getQuestionDisplayText=function(t){return t.displayValue},i.prototype.getProcessedTextValue=function(t){if(t&&!this.onCustomProcessText(t)){var e=new me().getFirstName(t.name);if(t.isExists=e==this.variableName,t.canProcess=t.isExists,!!t.canProcess){t.name=t.name.replace(this.variableName+".","");var e=new me().getFirstName(t.name),n=this.getQuestionByName(e),r={};if(n)r[e]=t.returnDisplayValue?this.getQuestionDisplayText(n):n.value;else{var o=this.panel?this.getValues():null;o&&(r[e]=o[e])}t.value=new me().getValue(t.name,r)}}},i.prototype.processText=function(t,e){var n={text:t,returnDisplayValue:e};return this.processTextEx(n).text},i.prototype.processTextEx=function(t){var e,n={hasAllValuesOnLastRun:!0,text:t.text};if(!t.runAtDesign&&(!((e=this.survey)===null||e===void 0)&&e.isDesignMode))return n;var r=new Array;this.addTextPreProcessor(r,this.textPreProcessor),this.addTextPreProcessor(r,this.getParentTextProcessor()),this.addTextPreProcessor(r,this.survey);for(var o=0;o<r.length;o++){var s=r[o];t.text=n.text;var a=s.processTextEx(t);n.text=a.text,n.hasAllValuesOnLastRun=n.hasAllValuesOnLastRun&&a.hasAllValuesOnLastRun}return n},i.prototype.addTextPreProcessor=function(t,e){!e||t.indexOf(e)>-1||t.push(e)},i}(),un=function(){var i=function(t,e){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(n[o]=r[o])},i(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");i(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),jo=function(){function i(t,e){this.name=t,this.json=e;var n=this;x.addClass(t,[],function(r){return cn.Instance.createQuestion(r?r.name:"",n)},"question"),this.onInit()}return i.prototype.onInit=function(){this.json.onInit&&this.json.onInit()},i.prototype.onCreated=function(t){this.json.onCreated&&this.json.onCreated(t)},i.prototype.onLoaded=function(t){this.json.onLoaded&&this.json.onLoaded(t)},i.prototype.onAfterRender=function(t,e){this.json.onAfterRender&&this.json.onAfterRender(t,e)},i.prototype.onAfterRenderContentElement=function(t,e,n){this.json.onAfterRenderContentElement&&this.json.onAfterRenderContentElement(t,e,n)},i.prototype.onUpdateQuestionCssClasses=function(t,e,n){this.json.onUpdateQuestionCssClasses&&this.json.onUpdateQuestionCssClasses(t,e,n)},i.prototype.onSetQuestionValue=function(t,e){this.json.onSetQuestionValue&&this.json.onSetQuestionValue(t,e),this.json.onValueSet&&this.json.onValueSet(t,e)},i.prototype.onPropertyChanged=function(t,e,n){this.json.onPropertyChanged&&this.json.onPropertyChanged(t,e,n)},i.prototype.onValueChanged=function(t,e,n){this.json.onValueChanged&&this.json.onValueChanged(t,e,n)},i.prototype.onValueChanging=function(t,e,n){return this.json.onValueChanging?this.json.onValueChanging(t,e,n):n},i.prototype.onGetErrorText=function(t){if(this.json.getErrorText)return this.json.getErrorText(t)},i.prototype.onItemValuePropertyChanged=function(t,e,n,r,o){this.json.onItemValuePropertyChanged&&this.json.onItemValuePropertyChanged(t,{obj:e,propertyName:n,name:r,newValue:o})},i.prototype.getDisplayValue=function(t,e,n){return this.json.getDisplayValue?this.json.getDisplayValue(n):n.getDisplayValue(t,e)},Object.defineProperty(i.prototype,"defaultQuestionTitle",{get:function(){return this.json.defaultQuestionTitle},enumerable:!1,configurable:!0}),i.prototype.setValueToQuestion=function(t){var e=this.json.valueToQuestion||this.json.setValue;return e?e(t):t},i.prototype.getValueFromQuestion=function(t){var e=this.json.valueFromQuestion||this.json.getValue;return e?e(t):t},Object.defineProperty(i.prototype,"isComposite",{get:function(){return!!this.json.elementsJSON||!!this.json.createElements},enumerable:!1,configurable:!0}),i.prototype.getDynamicProperties=function(){return Array.isArray(this.dynamicProperties)||(this.dynamicProperties=this.calcDynamicProperties()),this.dynamicProperties},i.prototype.calcDynamicProperties=function(){var t=this.json.inheritBaseProps;if(!t||!this.json.questionJSON)return[];var e=this.json.questionJSON.type;if(!e)return[];if(Array.isArray(t)){var n=[];return t.forEach(function(s){var a=x.findProperty(e,s);a&&n.push(a)}),n}var r=[];for(var o in this.json.questionJSON)r.push(o);return x.getDynamicPropertiesByTypes(this.name,e,r)},i}(),cn=function(){function i(){this.customQuestionValues=[]}return i.prototype.add=function(t){if(t){var e=t.name;if(!e)throw"Attribute name is missed";if(e=e.toLowerCase(),this.getCustomQuestionByName(e))throw"There is already registered custom question with name '"+e+"'";if(x.findClass(e))throw"There is already class with name '"+e+"'";var n=new jo(e,t);this.onAddingJson&&this.onAddingJson(e,n.isComposite),this.customQuestionValues.push(n)}},i.prototype.remove=function(t){if(!t)return!1;var e=this.getCustomQuestionIndex(t.toLowerCase());return e<0?!1:(this.removeByIndex(e),!0)},Object.defineProperty(i.prototype,"items",{get:function(){return this.customQuestionValues},enumerable:!1,configurable:!0}),i.prototype.getCustomQuestionByName=function(t){var e=this.getCustomQuestionIndex(t);return e>=0?this.customQuestionValues[e]:void 0},i.prototype.getCustomQuestionIndex=function(t){for(var e=0;e<this.customQuestionValues.length;e++)if(this.customQuestionValues[e].name===t)return e;return-1},i.prototype.removeByIndex=function(t){x.removeClass(this.customQuestionValues[t].name),this.customQuestionValues.splice(t,1)},i.prototype.clear=function(t){for(var e=this.customQuestionValues.length-1;e>=0;e--)(t||!this.customQuestionValues[e].json.internal)&&this.removeByIndex(e)},i.prototype.createQuestion=function(t,e){return e.isComposite?this.createCompositeModel(t,e):this.createCustomModel(t,e)},i.prototype.createCompositeModel=function(t,e){return this.onCreateComposite?this.onCreateComposite(t,e):new _o(t,e)},i.prototype.createCustomModel=function(t,e){return this.onCreateCustom?this.onCreateCustom(t,e):new Fo(t,e)},i.Instance=new i,i}(),No=function(i){un(t,i);function t(e,n){var r=i.call(this,e)||this;return r.customQuestion=n,Ne.createProperties(r),le.CreateDisabledDesignElements=!0,r.locQuestionTitle=r.createLocalizableString("questionTitle",r),r.locQuestionTitle.setJson(r.customQuestion.defaultQuestionTitle),r.createWrapper(),le.CreateDisabledDesignElements=!1,r.customQuestion&&r.customQuestion.onCreated(r),r}return t.prototype.getType=function(){return this.customQuestion?this.customQuestion.name:"custom"},t.prototype.locStrsChanged=function(){i.prototype.locStrsChanged.call(this),this.getElement()&&this.getElement().locStrsChanged()},t.prototype.localeChanged=function(){i.prototype.locStrsChanged.call(this),this.getElement()&&this.getElement().localeChanged()},t.prototype.getDefaultTitle=function(){return this.locQuestionTitle.isEmpty?i.prototype.getDefaultTitle.call(this):this.getProcessedText(this.locQuestionTitle.textOrHtml)},t.prototype.addUsedLocales=function(e){i.prototype.addUsedLocales.call(this,e),this.getElement()&&this.getElement().addUsedLocales(e)},t.prototype.needResponsiveWidth=function(){var e=this.getElement();return e?e.needResponsiveWidth():!1},t.prototype.createWrapper=function(){},t.prototype.onPropertyValueChanged=function(e,n,r){i.prototype.onPropertyValueChanged.call(this,e,n,r),this.customQuestion&&!this.isLoadingFromJson&&this.customQuestion.onPropertyChanged(this,e,r)},t.prototype.itemValuePropertyChanged=function(e,n,r,o){i.prototype.itemValuePropertyChanged.call(this,e,n,r,o),this.customQuestion&&!this.isLoadingFromJson&&this.customQuestion.onItemValuePropertyChanged(this,e,e.ownerPropertyName,n,o)},t.prototype.onFirstRenderingCore=function(){i.prototype.onFirstRenderingCore.call(this);var e=this.getElement();e&&e.onFirstRendering()},t.prototype.onHidingContent=function(){i.prototype.onHidingContent.call(this);var e=this.getElement();e&&e.onHidingContent()},t.prototype.getProgressInfo=function(){var e=i.prototype.getProgressInfo.call(this);return this.getElement()&&(e=this.getElement().getProgressInfo()),this.isRequired&&e.requiredQuestionCount==0&&(e.requiredQuestionCount=1,this.isEmpty()||(e.answeredQuestionCount=1)),e},t.prototype.initElement=function(e){e&&(e.setSurveyImpl(this),e.disableDesignActions=!0)},t.prototype.setSurveyImpl=function(e,n){this.isSettingValOnLoading=!0,i.prototype.setSurveyImpl.call(this,e,n),this.initElement(this.getElement()),this.isSettingValOnLoading=!1},t.prototype.onSurveyLoad=function(){i.prototype.onSurveyLoad.call(this),this.getElement()&&(this.getElement().onSurveyLoad(),this.customQuestion.onLoaded(this))},t.prototype.afterRenderQuestionElement=function(e){},t.prototype.afterRenderCore=function(e){i.prototype.afterRenderCore.call(this,e),this.customQuestion&&this.customQuestion.onAfterRender(this,e)},t.prototype.onUpdateQuestionCssClasses=function(e,n){this.customQuestion&&this.customQuestion.onUpdateQuestionCssClasses(this,e,n)},t.prototype.setQuestionValue=function(e,n){n===void 0&&(n=!0),i.prototype.setQuestionValue.call(this,e,n),this.updateElementCss(),this.customQuestion&&this.customQuestion.onSetQuestionValue(this,e)},t.prototype.setNewValue=function(e){i.prototype.setNewValue.call(this,e),this.updateElementCss()},t.prototype.onCheckForErrors=function(e,n,r){if(i.prototype.onCheckForErrors.call(this,e,n,r),this.customQuestion){var o=this.customQuestion.onGetErrorText(this);o&&e.push(new we(o,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,n,r,o){if(this.data){this.customQuestion&&this.customQuestion.onValueChanged(this,e,n);var s=this.convertDataName(e),a=this.convertDataValue(e,n);this.valueToDataCallback&&(a=this.valueToDataCallback(a)),this.data.setValue(s,a,r,o),this.updateIsAnswered(),this.updateElementCss()}},t.prototype.getQuestionByName=function(e){},t.prototype.isValueChanging=function(e,n){if(this.customQuestion){var r=n;if(n=this.customQuestion.onValueChanging(this,e,n),!P.isTwoValueEquals(n,r)){var o=this.getQuestionByName(e);if(o)return o.value=n,!0}}return!1},t.prototype.convertDataName=function(e){return this.getValueName()},t.prototype.convertDataValue=function(e,n){return n},t.prototype.getVariable=function(e){return this.data?this.data.getVariable(e):null},t.prototype.setVariable=function(e,n){this.data&&this.data.setVariable(e,n)},t.prototype.getComment=function(e){return this.data?this.data.getComment(this.getValueName()):""},t.prototype.setComment=function(e,n,r){this.data&&this.data.setComment(this.getValueName(),n,r)},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.getEditingSurveyElement=function(){},t.prototype.addElement=function(e,n){},t.prototype.removeElement=function(e){return!1},t.prototype.getQuestionTitleLocation=function(){return"left"},t.prototype.getQuestionTitleWidth=function(){},t.prototype.getColumsForElement=function(e){return[]},t.prototype.updateColumns=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.onQuestionValueChanged=function(e){},t.prototype.getQuestionErrorLocation=function(){return this.getErrorLocation()},t.prototype.getContentDisplayValueCore=function(e,n,r){return r?this.customQuestion.getDisplayValue(e,n,r):i.prototype.getDisplayValueCore.call(this,e,n)},t}(ue),Fo=function(i){un(t,i);function t(){return i!==null&&i.apply(this,arguments)||this}return 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(n,r,o,s,a){var l=e.getDynamicProperty(n);l&&e.propertyValueChanged(n,r,o,a)})},t.prototype.getDynamicProperty=function(e){for(var n=this.getDynamicProperties(),r=0;r<n.length;r++)if(n[r].name===e)return n[r];return null},t.prototype.getElement=function(){return this.contentQuestion},t.prototype.onAnyValueChanged=function(e,n){i.prototype.onAnyValueChanged.call(this,e,n),this.contentQuestion&&this.contentQuestion.onAnyValueChanged(e,n)},t.prototype.getQuestionByName=function(e){return this.contentQuestion},t.prototype.getDefaultTitle=function(){return this.hasJSONTitle&&this.contentQuestion?this.getProcessedText(this.contentQuestion.title):i.prototype.getDefaultTitle.call(this)},t.prototype.setValue=function(e,n,r,o){this.isValueChanging(e,n)||i.prototype.setValue.call(this,e,n,r,o)},t.prototype.onSetData=function(){i.prototype.onSetData.call(this),this.survey&&!this.isEmpty()&&this.setValue(this.name,this.value,!1,this.allowNotifyValueChanged)},t.prototype.hasErrors=function(e,n){if(e===void 0&&(e=!0),n===void 0&&(n=null),!this.contentQuestion)return!1;var r=this.contentQuestion.hasErrors(e,n);this.errors=[];for(var o=0;o<this.contentQuestion.errors.length;o++)this.errors.push(this.contentQuestion.errors[o]);return r||(r=i.prototype.hasErrors.call(this,e,n)),this.updateElementCss(),r},t.prototype.focus=function(e){e===void 0&&(e=!1),this.contentQuestion?this.contentQuestion.focus(e):i.prototype.focus.call(this,e)},t.prototype.afterRenderCore=function(e){i.prototype.afterRenderCore.call(this,e),this.contentQuestion&&this.contentQuestion.afterRender(e)},Object.defineProperty(t.prototype,"contentQuestion",{get:function(){return this.questionWrapper},enumerable:!1,configurable:!0}),t.prototype.createQuestion=function(){var e=this,n=this.customQuestion.json,r=null;if(n.questionJSON){this.hasJSONTitle=!!n.questionJSON.title;var o=n.questionJSON.type;if(!o||!x.findClass(o))throw"type attribute in questionJSON is empty or incorrect";r=x.createClass(o),r.fromJSON(n.questionJSON),r=this.checkCreatedQuestion(r)}else n.createQuestion&&(r=this.checkCreatedQuestion(n.createQuestion()));return this.initElement(r),r&&(r.isContentElement=!0,r.name||(r.name="question"),r.onUpdateCssClassesCallback=function(s){e.onUpdateQuestionCssClasses(r,s)},r.hasCssErrorCallback=function(){return e.errors.length>0},r.setValueChangedDirectlyCallback=function(s){e.setValueChangedDirectly(s)}),r},t.prototype.checkCreatedQuestion=function(e){return e&&(e.isQuestion||(Array.isArray(e.questions)&&e.questions.length>0?e=e.questions[0]:e=x.createClass("text"),Fe.error("Could not create component: '"+this.getType()+"'. questionJSON should be a question.")),e)},t.prototype.onSurveyLoad=function(){i.prototype.onSurveyLoad.call(this),this.contentQuestion&&this.isEmpty()&&!this.contentQuestion.isEmpty()&&(this.value=this.getContentQuestionValue())},t.prototype.runCondition=function(e,n){i.prototype.runCondition.call(this,e,n),this.contentQuestion&&this.contentQuestion.runCondition(e,n)},t.prototype.convertDataName=function(e){var n=this.contentQuestion;if(!n||e===this.getValueName())return i.prototype.convertDataName.call(this,e);var r=e.replace(n.getValueName(),this.getValueName());return r.indexOf(this.getValueName())==0?r:i.prototype.convertDataName.call(this,e)},t.prototype.convertDataValue=function(e,n){return this.convertDataName(e)==i.prototype.convertDataName.call(this,e)?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(e,n){n===void 0&&(n=!0),i.prototype.setQuestionValue.call(this,e,n),!this.isLoadingFromJson&&this.contentQuestion&&!this.isTwoValueEquals(this.getContentQuestionValue(),e)&&this.setContentQuestionValue(this.getUnbindValue(e))},t.prototype.onSurveyValueChanged=function(e){i.prototype.onSurveyValueChanged.call(this,e),this.contentQuestion&&this.contentQuestion.onSurveyValueChanged(e)},t.prototype.getValueCore=function(){return this.contentQuestion?this.getContentQuestionValue():i.prototype.getValueCore.call(this)},t.prototype.setValueChangedDirectly=function(e){this.isSettingValueChanged||(this.isSettingValueChanged=!0,i.prototype.setValueChangedDirectly.call(this,e),this.contentQuestion&&this.contentQuestion.setValueChangedDirectly(e),this.isSettingValueChanged=!1)},t.prototype.createDynamicProperties=function(e){if(e){var n=this.getDynamicProperties();Array.isArray(n)&&x.addDynamicPropertiesIntoObj(this,e,n)}},t.prototype.initElement=function(e){var n=this;i.prototype.initElement.call(this,e),e&&(e.parent=this,e.afterRenderQuestionCallback=function(r,o){n.customQuestion&&n.customQuestion.onAfterRenderContentElement(n,r,o)})},t.prototype.updateElementCss=function(e){this.contentQuestion&&this.questionWrapper.updateElementCss(e),i.prototype.updateElementCss.call(this,e)},t.prototype.updateElementCssCore=function(e){this.contentQuestion&&(e=this.contentQuestion.cssClasses),i.prototype.updateElementCssCore.call(this,e)},t.prototype.getDisplayValueCore=function(e,n){return i.prototype.getContentDisplayValueCore.call(this,e,n,this.contentQuestion)},t}(No),ju=function(i){un(t,i);function t(e,n){var r=i.call(this,n)||this;return r.composite=e,r.variableName=n,r}return 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}(mr),_o=function(i){un(t,i);function t(e,n){var r=i.call(this,e,n)||this;return r.customQuestion=n,r.settingNewValue=!1,r.textProcessing=new ju(r,t.ItemVariableName),r}return 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(e){return new O().append(i.prototype.getCssRoot.call(this,e)).append(e.composite).toString()},Object.defineProperty(t.prototype,"contentPanel",{get:function(){return this.panelWrapper},enumerable:!1,configurable:!0}),t.prototype.hasErrors=function(e,n){e===void 0&&(e=!0),n===void 0&&(n=null);var r=i.prototype.hasErrors.call(this,e,n);return this.contentPanel&&this.contentPanel.hasErrors(e,!1,n)||r},t.prototype.updateElementCss=function(e){i.prototype.updateElementCss.call(this,e),this.contentPanel&&this.contentPanel.updateElementCss(e)},t.prototype.dispose=function(){this.unConnectEditingObj(),i.prototype.dispose.call(this)},t.prototype.updateEditingObj=function(){var e=this,n,r=(n=this.data)===null||n===void 0?void 0:n.getEditingSurveyElement();if(r){var o=r[this.getValueName()];return o&&!o.onPropertyChanged&&(o=void 0),o!==this.editingObjValue&&(this.unConnectEditingObj(),this.editingObjValue=o,o&&(this.onEditingObjPropertyChanged=function(s,a){e.setNewValueIntoQuestion(a.name,e.editingObjValue[a.name])},o.onPropertyChanged.add(this.onEditingObjPropertyChanged))),this.editingObjValue}},t.prototype.unConnectEditingObj=function(){this.editingObjValue&&!this.editingObjValue.isDisposed&&this.editingObjValue.onPropertyChanged.remove(this.onEditingObjPropertyChanged)},t.prototype.getEditingSurveyElement=function(){return this.editingObjValue},t.prototype.getTextProcessor=function(){return this.textProcessing},t.prototype.findQuestionByName=function(e){var n=this.getQuestionByName(e);return n||i.prototype.findQuestionByName.call(this,e)},t.prototype.clearValueIfInvisibleCore=function(e){i.prototype.clearValueIfInvisibleCore.call(this,e);for(var n=this.contentPanel.questions,r=0;r<n.length;r++)n[r].clearValueIfInvisible(e)},t.prototype.onAnyValueChanged=function(e,n){i.prototype.onAnyValueChanged.call(this,e,n);for(var r=this.contentPanel.questions,o=0;o<r.length;o++)r[o].onAnyValueChanged(e,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,n=x.createClass("panel");n.showQuestionNumbers="off",n.renderWidth="100%";var r=this.customQuestion.json;return r.elementsJSON&&n.fromJSON({elements:r.elementsJSON}),r.createElements&&r.createElements(n,this),this.initElement(n),n.readOnly=this.isReadOnly,n.questions.forEach(function(o){o.setParentQuestion(e),o.onUpdateCssClassesCallback=function(s){e.onUpdateQuestionCssClasses(o,s)}}),this.setAfterRenderCallbacks(n),n},t.prototype.onReadOnlyChanged=function(){this.contentPanel&&(this.contentPanel.readOnly=this.isReadOnly),i.prototype.onReadOnlyChanged.call(this)},t.prototype.updateValueFromSurvey=function(e,n){n===void 0&&(n=!1),this.updateEditingObj(),i.prototype.updateValueFromSurvey.call(this,e,n)},t.prototype.onSurveyLoad=function(){if(this.isSettingValOnLoading=!0,this.contentPanel&&(this.contentPanel.readOnly=this.isReadOnly,this.setIsContentElement(this.contentPanel)),i.prototype.onSurveyLoad.call(this),this.contentPanel){var e=this.getContentPanelValue();P.isValueEmpty(e)||(this.value=e)}this.isSettingValOnLoading=!1},t.prototype.setIsContentElement=function(e){e.isContentElement=!0;for(var n=e.elements,r=0;r<n.length;r++){var o=n[r];o.isPanel?this.setIsContentElement(o):o.isContentElement=!0}},t.prototype.setVisibleIndex=function(e){var n=i.prototype.setVisibleIndex.call(this,e);return this.isVisible&&this.contentPanel&&(n+=this.contentPanel.setVisibleIndex(e)),n},t.prototype.runCondition=function(e,n){if(i.prototype.runCondition.call(this,e,n),this.contentPanel){var r=e[t.ItemVariableName];e[t.ItemVariableName]=this.contentPanel.getValue(),this.contentPanel.runCondition(e,n),delete e[t.ItemVariableName],r&&(e[t.ItemVariableName]=r)}},t.prototype.onSurveyValueChanged=function(e){i.prototype.onSurveyValueChanged.call(this,e);var n=e||{};this.contentPanel&&this.contentPanel.questions.forEach(function(r){r.onSurveyValueChanged(n[r.getValueName()])})},t.prototype.getValue=function(e){var n=this.value;return n?n[e]:null},t.prototype.getQuestionByName=function(e){return this.contentPanel?this.contentPanel.getQuestionByName(e):void 0},t.prototype.setValue=function(e,n,r,o){if(this.settingNewValue){this.setNewValueIntoQuestion(e,n);return}if(!this.isValueChanging(e,n)){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(e,n),i.prototype.setValue.call(this,e,n,r,o),this.settingNewValue=!1,this.runPanelTriggers(t.ItemVariableName+"."+e,n)}},t.prototype.setComment=function(e,n,r){var o=this.getUnbindValue(this.value),s=this.getCommentName(e);if(!(!o&&!n||n&&o&&o[s]===n)){n?(o||(o={}),o[s]=n):delete o[s];var a=this.getQuestionByName(e);a&&a.comment!==n&&(a.comment=n),this.value=o}},t.prototype.getComment=function(e){var n=this.getQuestionByName(e);if(n)return n.comment;var r=this.value;return!!r&&r[this.getCommentName(e)]||""},t.prototype.getCommentName=function(e){return e+b.commentSuffix},t.prototype.runPanelTriggers=function(e,n){this.contentPanel&&this.contentPanel.questions.forEach(function(r){r.runTriggers(e,n)})},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)?!1:(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,n){var r=this.getQuestionByName(e);r&&!this.isTwoValueEquals(n,r.value)&&(r.value=n)},t.prototype.addConditionObjectsByContext=function(e,n){if(this.contentPanel)for(var r=this.contentPanel.questions,o=this.name,s=this.title,a=0;a<r.length;a++)e.push({name:o+"."+r[a].name,text:s+"."+r[a].title,question:r[a]})},t.prototype.collectNestedQuestionsCore=function(e,n){this.contentPanel&&this.contentPanel.questions.forEach(function(r){return r.collectNestedQuestions(e,n)})},t.prototype.convertDataValue=function(e,n){var r=this.contentPanel&&!this.isEditingSurveyElement?this.contentPanel.getValue():this.getValueForContentPanel(this.value);return r||(r={}),r.getType||(r=P.getUnbindValue(r)),this.isValueEmpty(n)&&!this.isEditingSurveyElement?delete r[e]:r[e]=n,this.getContentPanelValue(r)},t.prototype.setQuestionValue=function(e,n){n===void 0&&(n=!0),this.setValuesIntoQuestions(e),!this.isEditingSurveyElement&&this.contentPanel&&(e=this.getContentPanelValue()),i.prototype.setQuestionValue.call(this,e,n)},t.prototype.setValuesIntoQuestions=function(e){if(!(!this.contentPanel||this.settingNewValue)){e=this.getValueForContentPanel(e);var n=this.settingNewValue;this.settingNewValue=!0;for(var r=this.contentPanel.questions,o=0;o<r.length;o++){var s=r[o],a=s.getValueName(),l=this.getCommentName(a),u=e?e[a]:void 0,d=!!e&&e[l]||"";!this.isTwoValueEquals(s.value,u)&&(u!==void 0||!s.isEmpty())&&(s.value=u),s.comment!==d&&(s.comment=d)}this.settingNewValue=n}},t.prototype.getDisplayValueCore=function(e,n){return i.prototype.getContentDisplayValueCore.call(this,e,n,this.contentPanel)},t.prototype.setAfterRenderCallbacks=function(e){var n=this;if(!(!e||!this.customQuestion))for(var r=e.questions,o=0;o<r.length;o++)r[o].afterRenderQuestionCallback=function(s,a){n.customQuestion.onAfterRenderContentElement(n,s,a)}},Object.defineProperty(t.prototype,"ariaRole",{get:function(){return"group"},enumerable:!1,configurable:!0}),t.ItemVariableName="composite",t}(No),J=function(){function i(){}return Object.defineProperty(i,"DefaultChoices",{get:function(){var t=oe("choices_Item");return[t+"1",t+"2",t+"3"]},enumerable:!1,configurable:!0}),Object.defineProperty(i,"DefaultColums",{get:function(){var t=oe("matrix_column")+" ";return[t+"1",t+"2",t+"3"]},enumerable:!1,configurable:!0}),Object.defineProperty(i,"DefaultRows",{get:function(){var t=oe("matrix_row")+" ";return[t+"1",t+"2"]},enumerable:!1,configurable:!0}),Object.defineProperty(i,"DefaultMutlipleTextItems",{get:function(){var t=oe("multipletext_itemname");return[t+"1",t+"2"]},enumerable:!1,configurable:!0}),i.prototype.registerQuestion=function(t,e,n){n===void 0&&(n=!0),ze.Instance.registerElement(t,e,n)},i.prototype.registerCustomQuestion=function(t){ze.Instance.registerCustomQuestion(t)},i.prototype.unregisterElement=function(t,e){e===void 0&&(e=!1),ze.Instance.unregisterElement(t,e)},i.prototype.clear=function(){ze.Instance.clear()},i.prototype.getAllTypes=function(){return ze.Instance.getAllTypes()},i.prototype.createQuestion=function(t,e){return ze.Instance.createElement(t,e)},i.Instance=new i,i}(),ze=function(){function i(){var t=this;this.creatorHash={},this.registerCustomQuestion=function(e,n){n===void 0&&(n=!0);var r=function(o){var s=x.createClass(e);return s&&(s.name=o),s};t.registerElement(e,r,n)}}return i.prototype.registerElement=function(t,e,n){n===void 0&&(n=!0),this.creatorHash[t]={showInToolbox:n,creator:e}},i.prototype.clear=function(){this.creatorHash={}},i.prototype.unregisterElement=function(t,e){e===void 0&&(e=!1),delete this.creatorHash[t],e&&x.removeClass(t)},i.prototype.getAllToolboxTypes=function(){return this.getAllTypesCore(!0)},i.prototype.getAllTypes=function(){return this.getAllTypesCore(!1)},i.prototype.createElement=function(t,e){var n=this.creatorHash[t];if(n&&n.creator)return n.creator(e);var r=cn.Instance.getCustomQuestionByName(t);return r?cn.Instance.createQuestion(e,r):null},i.prototype.getAllTypesCore=function(t){var e=new Array;for(var n in this.creatorHash)(!t||this.creatorHash[n].showInToolbox)&&e.push(n);return e.sort()},i.Instance=new i,i}(),Nu=function(){var i=function(t,e){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(n[o]=r[o])},i(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");i(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),vr=function(i){Nu(t,i);function t(e){var n=i.call(this,e)||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 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(e,n){i.prototype.runCondition.call(this,e,n),!(!this.expression||this.expressionIsRunning||!this.runIfReadOnly&&this.isReadOnly)&&(this.locCalculation(),this.expressionRunner||(this.expressionRunner=this.createRunner()),this.expressionRunner.run(e,n))},t.prototype.canCollectErrors=function(){return!0},t.prototype.hasRequiredError=function(){return!1},t.prototype.createRunner=function(){var e=this,n=this.createExpressionRunner(this.expression);return n.onRunComplete=function(r){e.value=e.roundValue(r),e.unlocCalculation()},n},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 this.runIfReadOnlyValue===!0},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(e,n){i.prototype.updateValueFromSurvey.call(this,e,n),this.updateFormatedValue()},t.prototype.getDisplayValueCore=function(e,n){var r=n??this.defaultValue,o="";if(!this.isValueEmpty(r)){var s=this.getValueAsStr(r);o=this.format?this.format.format(s):s}return this.survey&&(o=this.survey.getExpressionDisplayValue(this,r,o)),o},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){fn().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||!P.isNumber(e)?e:parseFloat(e.toFixed(this.precision))},t.prototype.getValueAsStr=function(e){if(this.displayStyle=="date"){var n=Z("question-expression",e);if(n&&n.toLocaleDateString)return n.toLocaleDateString()}if(this.displayStyle!="none"&&P.isNumber(e)){var r=this.getLocale();r||(r="en");var o={style:this.displayStyle,currency:this.currency,useGrouping:this.useGrouping};return this.maximumFractionDigits>-1&&(o.maximumFractionDigits=this.maximumFractionDigits),this.minimumFractionDigits>-1&&(o.minimumFractionDigits=this.minimumFractionDigits),e.toLocaleString(r,o)}return e.toString()},t}(ue);function fn(){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"]}x.addClass("expression",["expression:expression",{name:"format",serializationProperty:"locFormat"},{name:"displayStyle",default:"none",choices:["none","decimal","currency","percent","date"]},{name:"currency",choices:function(){return fn()},default:"USD",visibleIf:function(i){return i.displayStyle==="currency"}},{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:"resetValueIf",visible:!1},{name:"setValueIf",visible:!1},{name:"setValueExpression",visible:!1},{name:"defaultValueExpression",visible:!1},{name:"defaultValue",visible:!1},{name:"correctAnswer",visible:!1},{name:"requiredIf",visible:!1}],function(){return new vr("")},"question"),J.Instance.registerQuestion("expression",function(i){return new vr(i)});var Fu=function(){var i=function(t,e){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(n[o]=r[o])},i(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");i(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}();function pn(i,t,e,n){i.storeOthersAsComment=e?e.storeOthersAsComment:!1,(!i.choices||i.choices.length==0)&&i.choicesByUrl.isEmpty&&(i.choices=e.choices),i.choicesByUrl.isEmpty||i.choicesByUrl.run(n.getTextProcessor())}function _u(i,t,e,n){pn(i,t,e,n),i.locPlaceholder&&i.locPlaceholder.isEmpty&&!e.locPlaceholder.isEmpty&&(i.optionsCaption=e.optionsCaption)}var br={dropdown:{onCellQuestionUpdate:function(i,t,e,n){_u(i,t,e,n)}},checkbox:{onCellQuestionUpdate:function(i,t,e,n){pn(i,t,e,n),i.colCount=t.colCount>-1?t.colCount:e.columnColCount}},radiogroup:{onCellQuestionUpdate:function(i,t,e,n){pn(i,t,e,n),i.colCount=t.colCount>-1?t.colCount:e.columnColCount}},tagbox:{onCellQuestionUpdate:function(i,t,e,n){pn(i,t,e,n)}},text:{},comment:{},boolean:{onCellQuestionUpdate:function(i,t,e,n){i.renderAs=t.renderAs}},expression:{},rating:{}},jt=function(i){Fu(t,i);function t(e,n,r){var o=i.call(this)||this;return o.indexValue=-1,o._hasVisibleCell=!0,o.isColumnsVisibleIf=!0,o.previousChoicesId=void 0,o.colOwnerValue=r,o.createLocalizableString("totalFormat",o),o.createLocalizableString("cellHint",o),o.registerPropertyChangedHandlers(["showInMultipleColumns"],function(){o.doShowInMultipleColumnsChanged()}),o.registerPropertyChangedHandlers(["visible"],function(){o.doColumnVisibilityChanged()}),o.updateTemplateQuestion(void 0,e,n),o}return t.getColumnTypes=function(){var e=[];for(var n in br)e.push(n);return e},t.prototype.getOriginalObj=function(){return this.templateQuestion},t.prototype.getClassNameProperty=function(){return"cellType"},t.prototype.getSurvey=function(e){return this.colOwner?this.colOwner.survey:null},t.prototype.endLoadingFromJson=function(){var e=this;i.prototype.endLoadingFromJson.call(this),this.templateQuestion.autoOtherMode=this.isShowInMultipleColumns,this.templateQuestion.endLoadingFromJson(),this.templateQuestion.onGetSurvey=function(){return e.getSurvey()}},t.prototype.getDynamicPropertyName=function(){return"cellType"},t.prototype.getDynamicType=function(){return this.cellType==="default"?"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(){i.prototype.locStrsChanged.call(this),this.locTitle.strChanged()},t.prototype.addUsedLocales=function(e){i.prototype.addUsedLocales.call(this,e),this.templateQuestion.addUsedLocales(e)},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?!0: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 n=new Array,r=0;r<e.length;r++){var o=e[r];this._visiblechoices.indexOf(o.value)>-1&&n.push(o)}return n},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 n=0;n<e.length;n++)if(e[n].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 this.totalType!="none"||!!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){fn().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,n){return this.colOwner?this.colOwner.getMarkdownHtml(e,n):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 n=this.calcCellQuestionType(e),r=this.createNewQuestion(n);return this.callOnCellQuestionUpdate(r,e),r},t.prototype.startLoadingFromJson=function(e){i.prototype.startLoadingFromJson.call(this,e),e&&!e.cellType&&e.choices&&(e.cellType=this.colOwner.getCellType())},t.prototype.updateCellQuestion=function(e,n,r){r===void 0&&(r=null),this.setQuestionProperties(e,r)},t.prototype.callOnCellQuestionUpdate=function(e,n){var r=e.getType(),o=br[r];o&&o.onCellQuestionUpdate&&o.onCellQuestionUpdate(e,this,this.colOwner,n)},t.prototype.defaultCellTypeChanged=function(){this.updateTemplateQuestion()},t.prototype.calcCellQuestionType=function(e){var n=this.getDefaultCellQuestionType();return e&&this.colOwner&&(n=this.colOwner.getCustomCellType(this,e,n)),n},t.prototype.getDefaultCellQuestionType=function(e){return e||(e=this.cellType),e!=="default"?e:this.colOwner?this.colOwner.getCellType():b.matrix.defaultCellType},t.prototype.updateTemplateQuestion=function(e,n,r){var o=this,s=this.getDefaultCellQuestionType(e),a=this.templateQuestion?this.templateQuestion.getType():"";s!==a&&(this.templateQuestion&&this.removeProperties(a),this.templateQuestionValue=this.createNewQuestion(s),this.templateQuestion.locOwner=this,this.addProperties(s),n&&(this.name=n),r?this.title=r:this.templateQuestion.locTitle.strChanged(),b.serialization.matrixDropdownColumnSerializeTitle&&(this.templateQuestion.locTitle.serializeCallBackText=!0),this.templateQuestion.onPropertyChanged.add(function(l,u){o.propertyValueChanged(u.name,u.oldValue,u.newValue,u.arrayChanges,u.target)}),this.templateQuestion.onItemValuePropertyChanged.add(function(l,u){o.doItemValuePropertyChanged(u.propertyName,u.obj,u.name,u.newValue,u.oldValue)}),this.templateQuestion.isContentElement=!0,this.isLoadingFromJson||(this.templateQuestion.onGetSurvey=function(){return o.getSurvey()}),this.templateQuestion.locTitle.strChanged())},t.prototype.createNewQuestion=function(e){var n=x.createClass(e);return n||(n=x.createClass("text")),n.loadingOwner=this,n.isEditableTemplateElement=!0,n.autoOtherMode=this.isShowInMultipleColumns,this.setQuestionProperties(n),this.setParentQuestionToTemplate(n),n},t.prototype.setParentQuestionToTemplate=function(e){this.colOwner&&this.colOwner.isQuestion&&e.setParentQuestion(this.colOwner)},t.prototype.setQuestionProperties=function(e,n){var r=this;if(n===void 0&&(n=null),this.templateQuestion){var o=new fe().toJsonObject(this.templateQuestion,!0);if(n&&n(o),o.type=e.getType(),this.cellType==="default"&&this.colOwner&&this.colOwner.hasChoices()&&delete o.choices,delete o.itemComponent,this.jsonObj&&o.type==="rating"&&Object.keys(this.jsonObj).forEach(function(a){o[a]=r.jsonObj[a]}),o.choicesOrder==="random"){o.choicesOrder="none";var s=this.templateQuestion.visibleChoices;Array.isArray(s)&&(o.choices=s)}new fe().toObject(o,e),e.isContentElement=this.templateQuestion.isContentElement,this.previousChoicesId=void 0,e.loadedChoicesFromServerCallback=function(){if(r.isShowInMultipleColumns&&!(r.previousChoicesId&&r.previousChoicesId!==e.id)){r.previousChoicesId=e.id;var a=e.visibleChoices;r.templateQuestion.choices=a,r.propertyValueChanged("choices",a,a)}}}},t.prototype.propertyValueChanged=function(e,n,r,o,s){if(i.prototype.propertyValueChanged.call(this,e,n,r,o,s),e==="isRequired"&&this.updateIsRenderedRequired(r),!(!this.colOwner||this.isLoadingFromJson)){if(this.isShowInMultipleColumns){if(e==="choicesOrder")return;["visibleChoices","choices"].indexOf(e)>-1&&this.colOwner.onShowInMultipleColumnsChanged(this)}x.hasOriginalProperty(this,e)&&this.colOwner.onColumnPropertyChanged(this,e,r)}},t.prototype.doItemValuePropertyChanged=function(e,n,r,o,s){x.hasOriginalProperty(n,r)&&this.colOwner!=null&&!this.isLoadingFromJson&&this.colOwner.onColumnItemValuePropertyChanged(this,e,n,r,o,s)},t.prototype.doShowInMultipleColumnsChanged=function(){this.colOwner!=null&&this.colOwner.onShowInMultipleColumnsChanged(this),this.templateQuestion&&(this.templateQuestion.autoOtherMode=this.isShowInMultipleColumns)},t.prototype.doColumnVisibilityChanged=function(){this.colOwner!=null&&!this.isDesignMode&&this.colOwner.onColumnVisibilityChanged(this)},t.prototype.getProperties=function(e){return x.getDynamicPropertiesByObj(this,e)},t.prototype.removeProperties=function(e){for(var n=this.getProperties(e),r=0;r<n.length;r++){var o=n[r];delete this[o.name],o.serializationProperty&&delete this[o.serializationProperty]}},t.prototype.addProperties=function(e){var n=this.getProperties(e);x.addDynamicPropertiesIntoObj(this,this.templateQuestion,n)},t}(z);x.addClass("matrixdropdowncolumn",[{name:"!name",isUnique:!0},{name:"title",serializationProperty:"locTitle",dependsOn:"name",onPropertyEditorUpdate:function(i,t){i&&t&&(t.placeholder=i.name)}},{name:"cellHint",serializationProperty:"locCellHint",visible:!1},{name:"cellType",default:"default",choices:function(){var i=jt.getColumnTypes();return i.splice(0,0,"default"),i}},{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(i,t){i&&t&&(t.value=i.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(i){return i.isSupportMultipleColumns}},{name:"validators:validators",baseClassName:"surveyvalidator",classNamePart:"validator"},{name:"totalType",visibleIf:function(i){return!i.isShowInMultipleColumns},default:"none",choices:["none","sum","count","min","max","avg"]},{name:"totalExpression:expression",visibleIf:function(i){return!i.isShowInMultipleColumns}},{name:"totalFormat",serializationProperty:"locTotalFormat",visibleIf:function(i){return i.hasTotal}},{name:"totalDisplayStyle",visibleIf:function(i){return i.hasTotal},default:"none",choices:["none","decimal","currency","percent"]},{name:"totalAlignment",visibleIf:function(i){return i.hasTotal},default:"auto",choices:["auto","left","center","right"]},{name:"totalCurrency",visibleIf:function(i){return i.hasTotal},choices:function(){return fn()},default:"USD"},{name:"totalMaximumFractionDigits:number",default:-1,visibleIf:function(i){return i.hasTotal}},{name:"totalMinimumFractionDigits:number",default:-1,visibleIf:function(i){return i.hasTotal}},{name:"renderAs",default:"default",visible:!1}],function(){return new jt("")});var Cr=function(){var i=function(t,e){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(n[o]=r[o])},i(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");i(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),Nt=function(i,t,e,n){var r=arguments.length,o=r<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,e):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(i,t,e,n);else for(var a=i.length-1;a>=0;a--)(s=i[a])&&(o=(r<3?s(o):r>3?s(t,e,o):s(t,e))||o);return r>3&&o&&Object.defineProperty(t,e,o),o},Bu=function(i,t){for(var e=0,n=t.length,r=i.length;e<n;e++,r++)i[r]=t[e];return i};function Bo(i,t,e){return i+(t?"-error":"")+(e?"-detail":"")}var De=function(){function i(){this.minWidth="",this.width="",this.colSpans=1,this.isActionsCell=!1,this.isErrorsCell=!1,this.isDragHandlerCell=!1,this.isDetailRowCell=!1,this.classNameValue="",this.idValue=i.counter++}return Object.defineProperty(i.prototype,"requiredText",{get:function(){return this.column&&this.column.isRenderedRequired?this.column.requiredText:void 0},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"hasQuestion",{get:function(){return!!this.question&&!this.isErrorsCell},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"hasTitle",{get:function(){return!!this.locTitle},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"hasPanel",{get:function(){return!!this.panel},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"id",{get:function(){var t=this.question?this.question.id:this.idValue.toString();return this.isChoice&&(t+="-"+(Number.isInteger(this.choiceIndex)?"index"+this.choiceIndex.toString():this.item.id)),Bo(t,this.isErrorsCell,this.isDetailRowCell)},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"item",{get:function(){return this.itemValue},set:function(t){this.itemValue=t,t&&(t.hideCaption=!0)},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"isChoice",{get:function(){return!!this.item},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"isItemChoice",{get:function(){return this.isChoice&&!this.isOtherChoice},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"choiceValue",{get:function(){return this.isChoice?this.item.value:null},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"isCheckbox",{get:function(){return this.isItemChoice&&this.question.isDescendantOf("checkbox")},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"isRadio",{get:function(){return this.isItemChoice&&this.question.isDescendantOf("radiogroup")},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"isFirstChoice",{get:function(){return this.choiceIndex===0},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"className",{get:function(){var t=new O().append(this.classNameValue);return this.hasQuestion&&t.append(this.question.cssClasses.hasError,this.question.errors.length>0).append(this.question.cssClasses.answered,this.question.isAnswered),t.toString()},set:function(t){this.classNameValue=t},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"cellQuestionWrapperClassName",{get:function(){return this.cell.getQuestionWrapperClassName(this.matrix.cssClasses.cellQuestionWrapper)},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"isVisible",{get:function(){var t;return!this.hasQuestion&&!this.isErrorsCell||!(!((t=this.matrix)===null||t===void 0)&&t.isMobile)||this.question.isVisible},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"showResponsiveTitle",{get:function(){var t;return this.hasQuestion&&((t=this.matrix)===null||t===void 0?void 0:t.isMobile)},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"responsiveTitleCss",{get:function(){return new O().append(this.matrix.cssClasses.cellResponsiveTitle).toString()},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"responsiveLocTitle",{get:function(){return this.cell.column.locTitle},enumerable:!1,configurable:!0}),Object.defineProperty(i.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 t=this.cell.column.cellHint;return t?t.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}),i.prototype.getTitle=function(){return this.matrix&&this.matrix.showHeader?this.headers:""},i.prototype.calculateFinalClassName=function(t){var e=this.cell.question.cssClasses,n=new O().append(e.itemValue,!!e).append(e.asCell,!!e);return n.append(t.cell,n.isEmpty()&&!!t).append(t.choiceCell,this.isChoice).toString()},i.prototype.focusIn=function(){this.question&&this.question.focusIn()},i.counter=1,i}(),Pr=function(i){Cr(t,i);function t(e,n){n===void 0&&(n=!1);var r=i.call(this)||this;return r.cssClasses=e,r.isDetailRow=n,r.hasEndActions=!1,r.isErrorsRow=!1,r.cells=[],r.idValue=t.counter++,r}return Object.defineProperty(t.prototype,"id",{get:function(){var e;return Bo(((e=this.row)===null||e===void 0?void 0:e.id)||this.idValue.toString(),this.isErrorsRow,this.isDetailRow)},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,n;return new O().append(this.cssClasses.row).append(this.cssClasses.detailRow,this.isDetailRow).append(this.cssClasses.rowHasPanel,(e=this.row)===null||e===void 0?void 0:e.hasPanel).append(this.cssClasses.expandedRow,((n=this.row)===null||n===void 0?void 0:n.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.prototype.focusCell=function(e){if(this.rootElement){var n=":scope td:nth-of-type("+(e+1)+") input, :scope td:nth-of-type("+(e+1)+") button",r=this.rootElement.querySelectorAll(n)[0];r&&r.focus()}},t.counter=1,Nt([h({defaultValue:!1})],t.prototype,"isGhostRow",void 0),Nt([h({defaultValue:!1})],t.prototype,"isAdditionalClasses",void 0),Nt([h({defaultValue:!0})],t.prototype,"visible",void 0),t}(z),ko=function(i){Cr(t,i);function t(e){var n=i.call(this,e)||this;return n.isErrorsRow=!0,n}return Object.defineProperty(t.prototype,"attributes",{get:function(){return{}},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"className",{get:function(){return new O().append(this.cssClasses.row).append(this.cssClasses.errorRow).toString()},enumerable:!1,configurable:!0}),t.prototype.onAfterCreated=function(){var e=this,n=function(){e.visible=e.cells.some(function(r){return r.question&&r.question.hasVisibleErrors})};this.cells.forEach(function(r){r.question&&r.question.registerFunctionOnPropertyValueChanged("hasVisibleErrors",n)}),n()},t}(Pr),Vr=function(i){Cr(t,i);function t(e){var n=i.call(this)||this;return n.matrix=e,n._renderedRows=[],n.renderedRowsAnimation=new Qe(n.getRenderedRowsAnimationOptions(),function(r){n._renderedRows=r},function(){return n._renderedRows}),n.hasActionCellInRowsValues={},n.build(),n}return t.prototype.getIsAnimationAllowed=function(){return i.prototype.getIsAnimationAllowed.call(this)&&this.matrix.animationAllowed},t.prototype.getRenderedRowsAnimationOptions=function(){var e=this,n=function(o){o.querySelectorAll(":scope > td > *").forEach(function(s){Ae(s)})},r=function(o){o.querySelectorAll(":scope > td > *").forEach(function(s){Ce(s)})};return{isAnimationEnabled:function(){return e.animationAllowed},getRerenderEvent:function(){return e.onElementRerendered},getAnimatedElement:function(o){return o.getRootElement()},getLeaveOptions:function(){return{cssClass:e.cssClasses.rowLeave,onBeforeRunAnimation:n,onAfterRunAnimation:r}},getEnterOptions:function(o,s){return{cssClass:e.cssClasses.rowEnter,onBeforeRunAnimation:n,onAfterRunAnimation:r}},getKey:function(o){return o.id}}},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 this.matrix.getErrorLocation()==="top"},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"showCellErrorsBottom",{get:function(){return this.matrix.getErrorLocation()==="bottom"},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 n=this.matrix.canAddRow&&e,r=n,o=n;r&&(this.matrix.getAddRowLocation()==="default"?r=!this.matrix.isColumnLayoutHorizontal:r=this.matrix.getAddRowLocation()!=="bottom"),o&&this.matrix.getAddRowLocation()!=="topBottom"&&(o=!r),this.setPropertyValue("showAddRow",this.matrix.canAddRow),this.setPropertyValue("showAddRowOnTop",r),this.setPropertyValue("showAddRowOnBottom",o)},t.prototype.onAddedRow=function(e,n){if(!(this.getRenderedDataRowCount()>=this.matrix.visibleRows.length)){var r=this.getRenderedRowIndexByIndex(n);this.rowsActions.splice(n,0,this.buildRowActions(e)),this.addHorizontalRow(this.rows,e,r),this.updateShowTableAndAddRow()}},t.prototype.getRenderedRowIndexByIndex=function(e){for(var n=0,r=0,o=0;o<this.rows.length;o++){if(r===e){(this.rows[o].isErrorsRow||this.rows[o].isDetailRow)&&(n++,o+1<this.rows.length&&this.rows[o+1].isDetailRow&&n++);break}n++,!this.rows[o].isErrorsRow&&!this.rows[o].isDetailRow&&r++}return r<e?this.rows.length:n},t.prototype.getRenderedDataRowCount=function(){for(var e=0,n=0;n<this.rows.length;n++)!this.rows[n].isErrorsRow&&!this.rows[n].isDetailRow&&e++;return e},t.prototype.onRemovedRow=function(e){var n=this.getRenderedRowIndex(e);if(!(n<0)){this.rowsActions.splice(n,1);var r=1;n<this.rows.length-1&&this.showCellErrorsBottom&&this.rows[n+1].isErrorsRow&&r++,n<this.rows.length-1&&(this.rows[n+1].isDetailRow||this.showCellErrorsBottom&&n+1<this.rows.length-1&&this.rows[n+2].isDetailRow)&&r++,n>0&&this.showCellErrorsTop&&this.rows[n-1].isErrorsRow&&(n--,r++),this.rows.splice(n,r),this.updateShowTableAndAddRow()}},t.prototype.onDetailPanelChangeVisibility=function(e,n){var r=this.getRenderedRowIndex(e);if(!(r<0)){var o=r;this.showCellErrorsBottom&&o++;var s=o<this.rows.length-1&&this.rows[o+1].isDetailRow?o+1:-1;if(!(n&&s>-1||!n&&s<0))if(n){var a=this.createDetailPanelRow(e,this.rows[r]);this.rows.splice(o+1,0,a)}else this.rows.splice(s,1)}},t.prototype.focusActionCell=function(e,n){var r=this.rows[this.rows.length-1];if(this.matrix.isColumnLayoutHorizontal){var o=this.getRenderedRowIndex(e);r=this.rows[o]}r==null||r.focusCell(n)},t.prototype.getRenderedRowIndex=function(e){for(var n=0;n<this.rows.length;n++)if(this.rows[n].row==e)return n;return-1},t.prototype.buildRowsActions=function(){this.rowsActions=[];for(var e=this.matrix.visibleRows,n=0;n<e.length;n++)this.rowsActions.push(this.buildRowActions(e[n]))},t.prototype.createRenderedRow=function(e,n){return n===void 0&&(n=!1),new Pr(e,n)},t.prototype.createErrorRenderedRow=function(e){return new ko(e)},t.prototype.buildHeader=function(){var e=this.matrix.isColumnLayoutHorizontal&&this.matrix.showHeader,n=e||this.matrix.hasRowText&&!this.matrix.isColumnLayoutHorizontal;if(this.setPropertyValue("showHeader",n),!!n){if(this.headerRowValue=this.createRenderedRow(this.cssClasses),this.isRowsDragAndDrop&&this.headerRow.cells.push(this.createHeaderCell(null,"action",this.cssClasses.actionsCellDrag)),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 r=0;r<this.matrix.columns.length;r++){var o=this.matrix.columns[r];o.isColumnVisible&&(this.matrix.IsMultiplyColumn(o)?this.createMutlipleColumnsHeader(o):this.headerRow.cells.push(this.createHeaderCell(o)))}else{for(var s=this.matrix.visibleRows,r=0;r<s.length;r++){var a=this.createTextCell(s[r].locText);this.setHeaderCellCssClasses(a),a.row=s[r],this.headerRow.cells.push(a)}if(this.matrix.hasFooter){var a=this.createTextCell(this.matrix.getFooterText());this.setHeaderCellCssClasses(a),this.headerRow.cells.push(a)}}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 O().append(e.className).append(this.cssClasses.footerTotalCell).toString(),this.footerRow.cells.push(e)}for(var n=this.matrix.visibleTotalRow.cells,r=0;r<n.length;r++){var o=n[r];if(o.column.isColumnVisible)if(this.matrix.IsMultiplyColumn(o.column))this.createMutlipleColumnsFooter(this.footerRow,o);else{var s=this.createEditCell(o);o.column&&this.setCellWidth(o.column,s),s.className=new O().append(s.className).append(this.cssClasses.footerCell).toString(),this.footerRow.cells.push(s)}}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 this.hasActionCellInRowsValues[e]===void 0&&(this.hasActionCellInRowsValues[e]=this.hasActionsCellInLocaltion(e)),this.hasActionCellInRowsValues[e]},t.prototype.hasActionsCellInLocaltion=function(e){var n=this;return e=="end"&&this.hasRemoveRows?!0:this.matrix.visibleRows.some(function(r,o){return!n.isValueEmpty(n.getRowActions(o,e))})},t.prototype.canRemoveRow=function(e){return this.matrix.canRemoveRow(e)},t.prototype.buildHorizontalRows=function(){for(var e=this.matrix.visibleRows,n=[],r=0;r<e.length;r++)this.addHorizontalRow(n,e[r]);return n},t.prototype.addHorizontalRow=function(e,n,r){r===void 0&&(r=-1);var o=this.createHorizontalRow(n),s=this.createErrorRow(o);if(o.row=n,r<0&&(r=e.length),this.matrix.isMobile){for(var a=[],l=0;l<o.cells.length;l++)this.showCellErrorsTop&&!s.cells[l].isEmpty&&a.push(s.cells[l]),a.push(o.cells[l]),this.showCellErrorsBottom&&!s.cells[l].isEmpty&&a.push(s.cells[l]);o.cells=a,e.splice(r,0,o)}else e.splice.apply(e,Bu([r,0],this.showCellErrorsTop?[s,o]:[o,s])),r++;n.isDetailPanelShowing&&e.splice(r+1,0,this.createDetailPanelRow(n,o))},t.prototype.getRowDragCell=function(e){var n=new De,r=this.matrix.lockedRowCount;return n.isDragHandlerCell=r<1||e>=r,n.isEmpty=!n.isDragHandlerCell,n.className=this.getActionsCellClassName(n),n.row=this.matrix.visibleRows[e],n},t.prototype.getActionsCellClassName=function(e){var n=this;e===void 0&&(e=null);var r=new O().append(this.cssClasses.actionsCell).append(this.cssClasses.actionsCellDrag,e==null?void 0:e.isDragHandlerCell).append(this.cssClasses.detailRowCell,e==null?void 0:e.isDetailRowCell).append(this.cssClasses.verticalCell,!this.matrix.isColumnLayoutHorizontal);if(e.isActionsCell){var o=e.item.value.actions;this.cssClasses.actionsCellPrefix&&o.forEach(function(s){r.append(n.cssClasses.actionsCellPrefix+"--"+s.id)})}return r.toString()},t.prototype.getRowActionsCell=function(e,n,r){r===void 0&&(r=!1);var o=this.getRowActions(e,n);if(!this.isValueEmpty(o)){var s=new De,a=this.matrix.allowAdaptiveActions?new en:new Ee;this.matrix.survey&&this.matrix.survey.getCss().actionBar&&(a.cssClasses=this.matrix.survey.getCss().actionBar),a.setItems(o);var l=new k(a);return s.item=l,s.isActionsCell=!0,s.isDragHandlerCell=!1,s.isDetailRowCell=r,s.className=this.getActionsCellClassName(s),s.row=this.matrix.visibleRows[e],s}return null},t.prototype.getRowActions=function(e,n){var r=this.rowsActions[e];return Array.isArray(r)?r.filter(function(o){return o.location||(o.location="start"),o.location===n}):[]},t.prototype.buildRowActions=function(e){var n=[];return this.setDefaultRowActions(e,n),this.matrix.survey&&(n=this.matrix.survey.getUpdatedMatrixRowActions(this.matrix,e,n)),n},Object.defineProperty(t.prototype,"showRemoveButtonAsIcon",{get:function(){return b.matrix.renderRemoveAsIcon&&this.matrix.survey&&this.matrix.survey.css.root==="sd-root-modern"},enumerable:!1,configurable:!0}),t.prototype.setDefaultRowActions=function(e,n){var r=this,o=this.matrix;this.hasRemoveRows&&this.canRemoveRow(e)&&(this.showRemoveButtonAsIcon?n.push(new $({id:"remove-row",iconName:"icon-delete-24x24",iconSize:"auto",component:"sv-action-bar-item",innerCss:new O().append(this.matrix.cssClasses.button).append(this.matrix.cssClasses.buttonRemove).toString(),location:"end",showTitle:!1,title:o.removeRowText,enabled:!o.isInputReadOnly,data:{row:e,question:o},action:function(){o.removeRowUI(e)}})):n.push(new $({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?n.unshift(new $({id:"show-detail-mobile",title:new te(function(){return e.isDetailPanelShowing?r.matrix.getLocalizationString("hideDetails"):r.matrix.getLocalizationString("showDetails")}),showTitle:!0,location:"end",action:function(s){e.showHideDetailPanelClick()}})):n.push(new $({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 n=this.createErrorRenderedRow(this.cssClasses),r=0;r<e.cells.length;r++){var o=e.cells[r];o.hasQuestion?this.matrix.IsMultiplyColumn(o.cell.column)?o.isFirstChoice?n.cells.push(this.createErrorCell(o.cell)):n.cells.push(this.createEmptyCell(!0)):n.cells.push(this.createErrorCell(o.cell)):n.cells.push(this.createEmptyCell(!0))}return n.onAfterCreated(),n},t.prototype.createHorizontalRow=function(e){var n=this.createRenderedRow(this.cssClasses);if(this.isRowsDragAndDrop){var r=this.matrix.visibleRows.indexOf(e);n.cells.push(this.getRowDragCell(r))}if(this.addRowActionsCell(e,n,"start"),this.matrix.hasRowText){var o=this.createTextCell(e.locText);o.row=e,n.cells.push(o),this.setCellWidth(null,o),o.className=new O().append(o.className).append(this.cssClasses.rowTextCell).append(this.cssClasses.columnTitleCell,!this.matrix.isColumnLayoutHorizontal).append(this.cssClasses.detailRowText,e.hasPanel).toString()}for(var s=0;s<e.cells.length;s++){var a=e.cells[s];if(a.column.isColumnVisible)if(this.matrix.IsMultiplyColumn(a.column))this.createMutlipleEditCells(n,a);else{a.column.isShowInMultipleColumns&&a.question.visibleChoices.map(function(u){return u.hideCaption=!1});var o=this.createEditCell(a);n.cells.push(o),this.setCellWidth(a.column,o)}}return this.addRowActionsCell(e,n,"end"),n},t.prototype.addRowActionsCell=function(e,n,r){var o=this.matrix.visibleRows.indexOf(e);if(this.hasActionCellInRows(r)){var s=this.getRowActionsCell(o,r,n.isDetailRow);if(s)n.cells.push(s),n.hasEndActions=!0;else{var a=new De;a.isEmpty=!0,a.isDetailRowCell=n.isDetailRow,n.cells.push(a)}}},t.prototype.createDetailPanelRow=function(e,n){var r=this.matrix.isDesignMode,o=this.createRenderedRow(this.cssClasses,!0);o.row=e;var s=new De;this.matrix.hasRowText&&(s.colSpans=2),s.isEmpty=!0,r||o.cells.push(s);var a=null;this.hasActionCellInRows("end")&&(a=new De,a.isEmpty=!0);var l=new De;return l.panel=e.detailPanel,l.colSpans=n.cells.length-(r?0:s.colSpans)-(a?a.colSpans:0),l.className=this.cssClasses.detailPanelCell,o.cells.push(l),a&&(this.matrix.isMobile?this.addRowActionsCell(e,o,"end"):o.cells.push(a)),typeof this.matrix.onCreateDetailPanelRenderedRowCallback=="function"&&this.matrix.onCreateDetailPanelRenderedRowCallback(o),o},t.prototype.buildVerticalRows=function(){for(var e=this.matrix.columns,n=[],r=0;r<e.length;r++){var o=e[r];if(o.isColumnVisible)if(this.matrix.IsMultiplyColumn(o))this.createMutlipleVerticalRows(n,o,r);else{var s=this.createVerticalRow(o,r),a=this.createErrorRow(s);this.showCellErrorsTop?(n.push(a),n.push(s)):(n.push(s),n.push(a))}}return this.hasActionCellInRows("end")&&n.push(this.createEndVerticalActionRow()),n},t.prototype.createMutlipleVerticalRows=function(e,n,r){var o=this.getMultipleColumnChoices(n);if(o)for(var s=0;s<o.length;s++){var a=this.createVerticalRow(n,r,o[s],s),l=this.createErrorRow(a);this.showCellErrorsTop?(e.push(l),e.push(a)):(e.push(a),e.push(l))}},t.prototype.createVerticalRow=function(e,n,r,o){r===void 0&&(r=null),o===void 0&&(o=-1);var s=this.createRenderedRow(this.cssClasses);if(this.matrix.showHeader){var a=r?r.locText:e.locTitle,l=this.createTextCell(a);l.column=e,l.className=new O().append(l.className).append(this.cssClasses.rowTextCell).append(this.cssClasses.columnTitleCell).toString(),s.cells.push(l)}for(var u=this.matrix.visibleRows,d=0;d<u.length;d++){var v=r,V=o>=0?o:d,T=u[d].cells[n],R=r?T.question.visibleChoices:void 0;R&&V<R.length&&(v=R[V]);var N=this.createEditCell(T,v);N.item=v,N.choiceIndex=V,s.cells.push(N)}return this.matrix.hasTotal&&s.cells.push(this.createEditCell(this.matrix.visibleTotalRow.cells[n])),s},t.prototype.createEndVerticalActionRow=function(){var e=this.createRenderedRow(this.cssClasses);this.matrix.showHeader&&e.cells.push(this.createEmptyCell());for(var n=this.matrix.visibleRows,r=0;r<n.length;r++)e.cells.push(this.getRowActionsCell(r,"end"));return this.matrix.hasTotal&&e.cells.push(this.createEmptyCell()),e},t.prototype.createMutlipleEditCells=function(e,n,r){r===void 0&&(r=!1);var o=r?this.getMultipleColumnChoices(n.column):n.question.visibleChoices;if(o)for(var s=0;s<o.length;s++){var a=this.createEditCell(n,r?void 0:o[s]);r||(this.setItemCellCssClasses(a),a.choiceIndex=s),e.cells.push(a)}},t.prototype.setItemCellCssClasses=function(e){e.className=new O().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,n){n===void 0&&(n=void 0);var r=new De;return r.cell=e,r.row=e.row,r.column=e.column,r.question=e.question,r.matrix=this.matrix,r.item=n,r.isOtherChoice=!!n&&!!e.question&&e.question.otherItem===n,r.className=r.calculateFinalClassName(this.cssClasses),r},t.prototype.createErrorCell=function(e,n){var r=new De;return r.question=e.question,r.row=e.row,r.matrix=this.matrix,r.isErrorsCell=!0,r.className=new O().append(this.cssClasses.cell).append(this.cssClasses.errorsCell).append(this.cssClasses.errorsCellTop,this.showCellErrorsTop).append(this.cssClasses.errorsCellBottom,this.showCellErrorsBottom).toString(),r},t.prototype.createMutlipleColumnsFooter=function(e,n){this.createMutlipleEditCells(e,n,!0)},t.prototype.createMutlipleColumnsHeader=function(e){var n=this.getMultipleColumnChoices(e);if(n)for(var r=0;r<n.length;r++){var o=this.createTextCell(n[r].locText);this.setHeaderCell(e,o),this.setHeaderCellCssClasses(o),this.headerRow.cells.push(o)}},t.prototype.getMultipleColumnChoices=function(e){var n=e.templateQuestion.choices;return n&&Array.isArray(n)&&n.length==0?[].concat(this.matrix.choices,e.getVisibleMultipleChoices()):(n=e.getVisibleMultipleChoices(),!n||!Array.isArray(n)?null:n)},t.prototype.setHeaderCellCssClasses=function(e,n,r){e.className=new O().append(this.cssClasses.headerCell).append(this.cssClasses.columnTitleCell,this.matrix.isColumnLayoutHorizontal).append(this.cssClasses.emptyCell,!!e.isEmpty).append(this.cssClasses.cell+"--"+n,!!n).append(r,!!r).toString()},t.prototype.createHeaderCell=function(e,n,r){n===void 0&&(n=null);var o=e?this.createTextCell(e.locTitle):this.createEmptyCell();return o.column=e,this.setHeaderCell(e,o),n||(n=e&&e.cellType!=="default"?e.cellType:this.matrix.cellType),this.setHeaderCellCssClasses(o,n,r),o},t.prototype.setHeaderCell=function(e,n){this.setCellWidth(e,n)},t.prototype.setCellWidth=function(e,n){n.minWidth=e!=null?this.matrix.getColumnWidth(e):this.matrix.getRowTitleWidth(),n.width=e!=null?e.width:this.matrix.getRowTitleWidth()},t.prototype.createTextCell=function(e){var n=new De;return n.locTitle=e,this.cssClasses.cell&&(n.className=this.cssClasses.cell),n},t.prototype.createEmptyCell=function(e){e===void 0&&(e=!1);var n=this.createTextCell(null);return n.isEmpty=!0,n.className=new O().append(this.cssClasses.cell).append(this.cssClasses.emptyCell).append(this.cssClasses.errorsCell,e).toString(),n},Nt([ae({onPush:function(e,n,r){r.updateRenderedRows()},onRemove:function(e,n,r){r.updateRenderedRows()}})],t.prototype,"rows",void 0),Nt([ae()],t.prototype,"_renderedRows",void 0),t}(z),dn=function(){var i=function(t,e){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(n[o]=r[o])},i(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");i(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),wr=function(){function i(t,e,n){this.column=t,this.row=e,this.data=n,this.questionValue=this.createQuestion(t,e,n),this.questionValue.updateCustomWidget(),this.updateCellQuestionTitleDueToAccessebility(e)}return i.prototype.updateCellQuestionTitleDueToAccessebility=function(t){var e=this;this.questionValue.locTitle.onGetTextCallback=function(n){if(!t||!t.getSurvey())return e.questionValue.title;var r=t.getAccessbilityText();return r?e.column.colOwner.getCellAriaLabel(r,e.questionValue.title):e.questionValue.title}},i.prototype.locStrsChanged=function(){this.question.locStrsChanged()},i.prototype.createQuestion=function(t,e,n){var r=this,o=n.createQuestion(this.row,this.column);return o.readOnlyCallback=function(){return!r.row.isRowEnabled()},o.validateValueCallback=function(){return n.validateCell(e,t.name,e.value)},Ne.getProperties(t.getType()).forEach(function(s){var a=s.name;t[a]!==void 0&&(o[a]=t[a])}),o},Object.defineProperty(i.prototype,"question",{get:function(){return this.questionValue},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"value",{get:function(){return this.question.value},set:function(t){this.question.value=t},enumerable:!1,configurable:!0}),i.prototype.getQuestionWrapperClassName=function(t){return t},i.prototype.runCondition=function(t,e){this.question.runCondition(t,e)},i}(),ku=function(i){dn(t,i);function t(e,n,r){var o=i.call(this,e,n,r)||this;return o.column=e,o.row=n,o.data=r,o.updateCellQuestion(),o}return t.prototype.createQuestion=function(e,n,r){var o=x.createClass("expression");return o.setSurveyImpl(n),o},t.prototype.locStrsChanged=function(){this.updateCellQuestion(),i.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(e){var n=i.prototype.getQuestionWrapperClassName.call(this,e);if(!n)return n;this.question.expression&&this.question.expression!="''"&&(n+=" "+e+"--expression");var r=this.column.totalAlignment;return r==="auto"&&this.column.cellType==="dropdown"&&(r="left"),n+" "+e+"--"+r},t.prototype.getTotalExpression=function(){if(this.column.totalExpression)return this.column.totalExpression;if(this.column.totalType=="none")return"''";var e=this.column.totalType+"InArray";return U.Instance.hasFunction(e)?e+"({self}, '"+this.column.name+"')":""},t}(wr),qu=function(i){dn(t,i);function t(e,n,r){var o=i.call(this,n)||this;return o.row=e,o.variableName=n,o.parentTextProcessor=r,o}return 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.RowValueVariableName,_e.RowNameVariableName].indexOf(e.name)>-1?(e.isExists=!0,e.value=this.row.rowName,!0):!1},t}(mr),_e=function(){function i(t,e){var n=this;this.isSettingValue=!1,this.detailPanelValue=null,this.visibleValue=!0,this.cells=[],this.isCreatingDetailPanel=!1,this.data=t,this.subscribeToChanges(e),this.textPreProcessor=new qu(this,i.RowVariableName,t?t.getParentTextProcessor():null),this.showHideDetailPanelClick=function(){if(n.getSurvey().isDesignMode)return!0;n.showHideDetailPanel()},this.idValue=i.getId()}return i.getId=function(){return"srow_"+i.idCounter++},Object.defineProperty(i.prototype,"id",{get:function(){return this.idValue},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"rowName",{get:function(){return null},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"dataName",{get:function(){return this.rowName},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"text",{get:function(){return this.rowName},enumerable:!1,configurable:!0}),i.prototype.isRowEnabled=function(){return!0},i.prototype.isRowHasEnabledCondition=function(){return!1},Object.defineProperty(i.prototype,"isVisible",{get:function(){return this.visible&&this.isItemVisible()},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"visible",{get:function(){return this.visibleValue},set:function(t){var e;this.visible!==t&&(this.visibleValue=t,(e=this.data)===null||e===void 0||e.onRowVisibilityChanged(this))},enumerable:!1,configurable:!0}),i.prototype.isItemVisible=function(){return!0},Object.defineProperty(i.prototype,"value",{get:function(){for(var t={},e=this.questions,n=0;n<e.length;n++){var r=e[n];r.isEmpty()||(t[r.getValueName()]=r.value),r.comment&&this.getSurvey()&&this.getSurvey().storeOthersAsComment&&(t[r.getValueName()+z.commentSuffix]=r.comment)}return t},set:function(t){this.isSettingValue=!0,this.subscribeToChanges(t);for(var e=this.questions,n=0;n<e.length;n++){var r=e[n],o=this.getCellValue(t,r.getValueName()),s=r.comment,a=t?t[r.getValueName()+z.commentSuffix]:"";a==null&&(a=""),r.updateValueFromSurvey(o),(a||this.isTwoValueEquals(s,r.comment))&&r.updateCommentFromSurvey(a),r.onSurveyValueChanged(o)}this.isSettingValue=!1},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"locText",{get:function(){return null},enumerable:!1,configurable:!0}),i.prototype.getAccessbilityText=function(){return this.locText&&this.locText.renderedHtml},Object.defineProperty(i.prototype,"hasPanel",{get:function(){return this.data?this.data.hasDetailPanel(this):!1},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"detailPanel",{get:function(){return this.detailPanelValue},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"detailPanelId",{get:function(){return this.detailPanel?this.detailPanel.id:""},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"isDetailPanelShowing",{get:function(){return this.data?this.data.getIsDetailPanelShowing(this):!1},enumerable:!1,configurable:!0}),i.prototype.setIsDetailPanelShowing=function(t){!t&&this.detailPanel&&this.detailPanel.onHidingContent(),this.data&&this.data.setIsDetailPanelShowing(this,t),this.onDetailPanelShowingChanged&&this.onDetailPanelShowingChanged()},i.prototype.showHideDetailPanel=function(){this.isDetailPanelShowing?this.hideDetailPanel():this.showDetailPanel()},i.prototype.showDetailPanel=function(){this.ensureDetailPanel(),this.detailPanelValue&&this.setIsDetailPanelShowing(!0)},i.prototype.hideDetailPanel=function(t){t===void 0&&(t=!1),this.setIsDetailPanelShowing(!1),t&&(this.detailPanelValue=null)},i.prototype.ensureDetailPanel=function(){if(!this.isCreatingDetailPanel&&!(this.detailPanelValue||!this.hasPanel||!this.data)){this.isCreatingDetailPanel=!0,this.detailPanelValue=this.data.createRowDetailPanel(this);var t=this.detailPanelValue.questions,e=this.data.getRowValue(this.data.getRowIndex(this));if(!P.isValueEmpty(e))for(var n=0;n<t.length;n++){var r=t[n].getValueName(),o=this.editingObj?x.getObjPropertyValue(this.editingObj,r):e[r];P.isValueEmpty(o)||(t[n].value=o)}this.detailPanelValue.setSurveyImpl(this),this.isCreatingDetailPanel=!1}},i.prototype.getAllValues=function(){return this.value},i.prototype.getFilteredValues=function(){var t=this.data?this.data.getDataFilteredValues():{},e=this.validationValues;if(e)for(var n in e)t[n]=e[n];return t.row=this.getAllValues(),this.applyRowVariablesToValues(t,this.rowIndex),t},i.prototype.getFilteredProperties=function(){return{survey:this.getSurvey(),row:this}},i.prototype.applyRowVariablesToValues=function(t,e){t[i.IndexVariableName]=e,t[i.RowValueVariableName]=this.rowName,t[i.RowNameVariableName]=this.rowName},i.prototype.runCondition=function(t,e,n){if(this.data){t[i.OwnerVariableName]=this.data.getFilteredData();var r=this.rowIndex;this.applyRowVariablesToValues(t,r);var o=P.createCopy(e);o[i.RowVariableName]=this;var s=r>0?this.data.getRowValue(this.rowIndex-1):this.value;n?(t[i.RowVariableName]=s,this.setRowsVisibleIfValues(t),this.visible=new de(n).run(t,e)):this.visible=!0;for(var a=0;a<this.cells.length;a++)a>0&&mt(this.value,s),t[i.RowVariableName]=s,this.cells[a].runCondition(t,o);this.detailPanel&&this.detailPanel.runCondition(t,o),this.isRowHasEnabledCondition()&&this.onQuestionReadOnlyChanged()}},i.prototype.updateElementVisibility=function(){this.cells.forEach(function(t){return t.question.updateElementVisibility()}),this.detailPanel&&this.detailPanel.updateElementVisibility()},i.prototype.setRowsVisibleIfValues=function(t){},i.prototype.getNamesWithDefaultValues=function(){var t=[];return this.questions.forEach(function(e){e.isValueDefault&&t.push(e.getValueName())}),t},i.prototype.clearValue=function(t){for(var e=this.questions,n=0;n<e.length;n++)e[n].clearValue(t)},i.prototype.onAnyValueChanged=function(t,e){for(var n=this.questions,r=0;r<n.length;r++)n[r].onAnyValueChanged(t,e)},i.prototype.getDataValueCore=function(t,e){var n=this.getSurvey();return n?n.getDataValueCore(t,e):t[e]},i.prototype.getValue=function(t){var e=this.getQuestionByName(t);return e?e.value:null},i.prototype.setValue=function(t,e){this.setValueCore(t,e,!1)},i.prototype.getVariable=function(t){},i.prototype.setVariable=function(t,e){},i.prototype.getComment=function(t){var e=this.getQuestionByName(t);return e?e.comment:""},i.prototype.setComment=function(t,e,n){this.setValueCore(t,e,!0)},i.prototype.findQuestionByName=function(t){if(t){var e=i.RowVariableName+".";if(t.indexOf(e)===0)return this.getQuestionByName(t.substring(e.length));var n=this.getSurvey();return n?n.getQuestionByName(t):null}},i.prototype.getEditingSurveyElement=function(){},i.prototype.setValueCore=function(t,e,n){if(!this.isSettingValue){this.updateQuestionsValue(t,e,n),n||this.updateSharedQuestionsValue(t,e);var r=this.value,o=n?t+z.commentSuffix:t,s=e,a=this.getQuestionByName(t),l=this.data.onRowChanging(this,o,r);if(a&&!this.isTwoValueEquals(l,s)&&(this.isSettingValue=!0,n?a.comment=l:a.value=l,this.isSettingValue=!1,r=this.value),!(this.data.isValidateOnValueChanging&&this.hasQuestonError(a))){var u=e==null&&!a||n&&!e&&!!a;this.data.onRowChanged(this,o,r,u),o&&this.runTriggers(hn.RowVariableName+"."+o,r),this.onAnyValueChanged(i.RowVariableName,"")}}},i.prototype.updateQuestionsValue=function(t,e,n){if(this.detailPanel){var r=this.getQuestionByColumnName(t),o=this.detailPanel.getQuestionByName(t);if(!(!r||!o)){var s=this.isTwoValueEquals(e,n?r.comment:r.value),a=s?o:r;this.isSettingValue=!0,n?a.comment=e:a.value=e,this.isSettingValue=!1}}},i.prototype.updateSharedQuestionsValue=function(t,e){var n=this.getQuestionsByValueName(t);if(n.length>1)for(var r=0;r<n.length;r++)P.isTwoValueEquals(n[r].value,e)||(this.isSettingValue=!0,n[r].updateValueFromSurvey(e),this.isSettingValue=!1)},i.prototype.runTriggers=function(t,e){t&&this.questions.forEach(function(n){return n.runTriggers(t,e)})},i.prototype.hasQuestonError=function(t){if(!t)return!1;if(t.hasErrors(!0,{isOnValueChanged:!this.data.isValidateOnValueChanging}))return!0;if(t.isEmpty())return!1;var e=this.getCellByColumnName(t.name);return!e||!e.column||!e.column.isUnique?!1:this.data.checkIfValueInRowDuplicated(this,t)},Object.defineProperty(i.prototype,"isEmpty",{get:function(){var t=this.value;if(P.isValueEmpty(t))return!0;for(var e in t)if(t[e]!==void 0&&t[e]!==null)return!1;return!0},enumerable:!1,configurable:!0}),i.prototype.getQuestionByColumn=function(t){var e=this.getCellByColumn(t);return e?e.question:null},i.prototype.getCellByColumn=function(t){for(var e=0;e<this.cells.length;e++)if(this.cells[e].column==t)return this.cells[e];return null},i.prototype.getCellByColumnName=function(t){for(var e=0;e<this.cells.length;e++)if(this.cells[e].column.name==t)return this.cells[e];return null},i.prototype.getQuestionByColumnName=function(t){var e=this.getCellByColumnName(t);return e?e.question:null},Object.defineProperty(i.prototype,"questions",{get:function(){for(var t=[],e=0;e<this.cells.length;e++)t.push(this.cells[e].question);for(var n=this.detailPanel?this.detailPanel.questions:[],e=0;e<n.length;e++)t.push(n[e]);return t},enumerable:!1,configurable:!0}),i.prototype.getQuestionByName=function(t){var e=this.getQuestionByColumnName(t);return e||(this.detailPanel?this.detailPanel.getQuestionByName(t):null)},i.prototype.getQuestionsByName=function(t){var e=[],n=this.getQuestionByColumnName(t);return n&&e.push(n),this.detailPanel&&(n=this.detailPanel.getQuestionByName(t),n&&e.push(n)),e},i.prototype.getQuestionsByValueName=function(t){for(var e=[],n=0;n<this.cells.length;n++){var r=this.cells[n];r.question&&r.question.getValueName()===t&&e.push(r.question)}return this.detailPanel&&(e=e.concat(this.detailPanel.getQuestionsByValueName(t))),e},i.prototype.getSharedQuestionByName=function(t){return this.data?this.data.getSharedQuestionByName(t,this):null},i.prototype.clearIncorrectValues=function(t){for(var e in t){var n=this.getQuestionByName(e);if(n){var r=n.value;n.clearIncorrectValues(),this.isTwoValueEquals(r,n.value)||this.setValue(e,n.value)}else!this.getSharedQuestionByName(e)&&e.indexOf(b.matrix.totalsSuffix)<0&&this.setValue(e,null)}},i.prototype.getLocale=function(){return this.data?this.data.getLocale():""},i.prototype.getMarkdownHtml=function(t,e){return this.data?this.data.getMarkdownHtml(t,e):void 0},i.prototype.getRenderer=function(t){return this.data?this.data.getRenderer(t):null},i.prototype.getRendererContext=function(t){return this.data?this.data.getRendererContext(t):t},i.prototype.getProcessedText=function(t){return this.data?this.data.getProcessedText(t):t},i.prototype.locStrsChanged=function(){for(var t=0;t<this.cells.length;t++)this.cells[t].locStrsChanged();this.detailPanel&&this.detailPanel.locStrsChanged()},i.prototype.updateCellQuestionOnColumnChanged=function(t,e,n){var r=this.getCellByColumn(t);r&&this.updateCellOnColumnChanged(r,e,n)},i.prototype.updateCellQuestionOnColumnItemValueChanged=function(t,e,n,r,o,s){var a=this.getCellByColumn(t);a&&this.updateCellOnColumnItemValueChanged(a,e,n,r,o,s)},i.prototype.onQuestionReadOnlyChanged=function(){for(var t=this.questions,e=0;e<t.length;e++){var n=t[e];n.setPropertyValue("isReadOnly",n.isReadOnly)}if(this.detailPanel){var r=!!this.data&&this.data.isMatrixReadOnly();this.detailPanel.readOnly=r||!this.isRowEnabled()}},i.prototype.hasErrors=function(t,e,n){var r=!1,o=this.cells;if(!o)return r;this.validationValues=e.validationValues;for(var s=0;s<o.length;s++)if(o[s]){var a=o[s].question;!a||!a.visible||(a.onCompletedAsyncValidators=function(u){n()},!(e&&e.isOnValueChanged===!0&&a.isEmpty())&&(r=a.hasErrors(t,e)||r))}if(this.hasPanel){this.ensureDetailPanel();var l=this.detailPanel.hasErrors(t,!1,e);!e.hideErroredPanel&&l&&t&&(e.isSingleDetailPanel&&(e.hideErroredPanel=!0),this.showDetailPanel()),r=l||r}return this.validationValues=void 0,r},i.prototype.updateCellOnColumnChanged=function(t,e,n){e==="choices"&&Array.isArray(n)&&n.length===0&&this.data&&(n=this.data.choices),t.question[e]=n},i.prototype.updateCellOnColumnItemValueChanged=function(t,e,n,r,o,s){var a=t.question[e];if(Array.isArray(a)){var l=r==="value"?s:n.value,u=k.getItemByValue(a,l);u&&(u[r]=o)}},i.prototype.buildCells=function(t){this.isSettingValue=!0;for(var e=this.data.columns,n=0;n<e.length;n++){var r=e[n],o=this.createCell(r);this.cells.push(o);var s=this.getCellValue(t,r.name);if(!P.isValueEmpty(s)){o.question.value=s;var a=r.name+z.commentSuffix;t&&!P.isValueEmpty(t[a])&&(o.question.comment=t[a])}}this.isSettingValue=!1},i.prototype.isTwoValueEquals=function(t,e){return P.isTwoValueEquals(t,e,!1,!0,!1)},i.prototype.getCellValue=function(t,e){return this.editingObj?x.getObjPropertyValue(this.editingObj,e):t?t[e]:void 0},i.prototype.createCell=function(t){return new wr(t,this,this.data)},i.prototype.getSurveyData=function(){return this},i.prototype.getSurvey=function(){return this.data?this.data.getSurvey():null},i.prototype.getTextProcessor=function(){return this.textPreProcessor},Object.defineProperty(i.prototype,"rowIndex",{get:function(){return this.getRowIndex()},enumerable:!1,configurable:!0}),i.prototype.getRowIndex=function(){return this.data?this.data.getRowIndex(this)+1:-1},Object.defineProperty(i.prototype,"editingObj",{get:function(){return this.editingObjValue},enumerable:!1,configurable:!0}),i.prototype.dispose=function(){this.editingObj&&(this.editingObj.onPropertyChanged.remove(this.onEditingObjPropertyChanged),this.editingObjValue=null)},i.prototype.subscribeToChanges=function(t){var e=this;!t||!t.getType||!t.onPropertyChanged||t!==this.editingObj&&(this.editingObjValue=t,this.onEditingObjPropertyChanged=function(n,r){e.updateOnSetValue(r.name,r.newValue)},this.editingObj.onPropertyChanged.add(this.onEditingObjPropertyChanged))},i.prototype.updateOnSetValue=function(t,e){this.isSettingValue=!0;for(var n=this.getQuestionsByName(t),r=0;r<n.length;r++)n[r].value=e;this.isSettingValue=!1},i.RowVariableName="row",i.OwnerVariableName="self",i.IndexVariableName="rowIndex",i.RowValueVariableName="rowValue",i.RowNameVariableName="rowName",i.idCounter=1,i}(),hn=function(i){dn(t,i);function t(e){var n=i.call(this,e,null)||this;return n.buildCells(null),n}return t.prototype.createCell=function(e){return new ku(e,this,this.data)},t.prototype.setValue=function(e,n){this.data&&!this.isSettingValue&&this.data.onTotalValueChanged()},t.prototype.runCondition=function(e,n,r){var o=0,s;do s=P.getUnbindValue(this.value),i.prototype.runCondition.call(this,e,n,""),o++;while(!P.isTwoValueEquals(s,this.value)&&o<3)},t.prototype.updateCellOnColumnChanged=function(e,n,r){e.updateCellQuestion()},t}(_e),bt=function(i){dn(t,i);function t(e){var n=i.call(this,e)||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","displayMode"],function(){n.resetRenderedTable()}),n}return Object.defineProperty(t,"defaultCellType",{get:function(){return b.matrix.defaultCellType},set:function(e){b.matrix.defaultCellType=e},enumerable:!1,configurable:!0}),t.addDefaultColumns=function(e){for(var n=J.DefaultColums,r=0;r<n.length;r++)e.addColumn(n[r])},t.prototype.createColumnValues=function(){var e=this;return this.createNewArray("columns",function(n){n.colOwner=e,e.onAddColumn&&e.onAddColumn(n),e.survey&&e.survey.matrixColumnAdded(e,n)},function(n){n.colOwner=null,e.onRemoveColumn&&e.onRemoveColumn(n)})},t.prototype.getType=function(){return"matrixdropdownbase"},t.prototype.dispose=function(){i.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(e,n,r,o){i.prototype.itemValuePropertyChanged.call(this,e,n,r,o),e.ownerPropertyName==="choices"&&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=e==="vertical"},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(e){var n=e.parent?this.detailErrorLocation:this.cellErrorLocation;return n!=="default"?n:i.prototype.getChildErrorLocation.call(this,e)},Object.defineProperty(t.prototype,"isColumnLayoutHorizontal",{get:function(){return this.isMobile?!0:!this.transposeData},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isUniqueCaseSensitive",{get:function(){return this.isUniqueCaseSensitiveValue!==void 0?this.isUniqueCaseSensitiveValue:b.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 x.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,n){},t.prototype.onRowsChanged=function(){this.clearVisibleRows(),this.resetRenderedTable(),i.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.clearVisibleRows(),!!this.generatedVisibleRows){for(var e=0;e<this.generatedVisibleRows.length;e++)this.generatedVisibleRows[e].dispose();i.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 Vr(this)},t.prototype.onMatrixRowCreated=function(e){if(this.survey)for(var n={rowValue:e.value,row:e,column:null,columnName:null,cell:null,cellQuestion:null,value:null},r=0;r<this.columns.length;r++){n.column=this.columns[r],n.columnName=n.column.name;var o=e.cells[r];n.cell=o,n.cellQuestion=o.question,n.value=o.value,this.onCellCreatedCallback&&this.onCellCreatedCallback(n),this.survey.matrixCellCreated(this,n)}},Object.defineProperty(t.prototype,"cellType",{get:function(){return this.getPropertyValue("cellType",b.matrix.defaultCellType)},set:function(e){e=e.toLowerCase(),this.setPropertyValue("cellType",e)},enumerable:!1,configurable:!0}),t.prototype.isSelectCellType=function(){return x.isDescendantOf(this.cellType,"selectbase")},t.prototype.updateColumnsCellType=function(){for(var e=0;e<this.columns.length;e++)this.columns[e].defaultCellTypeChanged()},t.prototype.updateColumnsIndexes=function(e){for(var n=0;n<e.length;n++)e[n].setIndex(n)},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,n,r){if(this.updateHasFooter(),!!this.generatedVisibleRows){for(var o=0;o<this.generatedVisibleRows.length;o++)this.generatedVisibleRows[o].updateCellQuestionOnColumnChanged(e,n,r);this.generatedTotalRow&&this.generatedTotalRow.updateCellQuestionOnColumnChanged(e,n,r),this.onColumnsChanged(),n=="isRequired"&&this.resetRenderedTable()}},t.prototype.onColumnItemValuePropertyChanged=function(e,n,r,o,s,a){if(this.generatedVisibleRows)for(var l=0;l<this.generatedVisibleRows.length;l++)this.generatedVisibleRows[l].updateCellQuestionOnColumnItemValueChanged(e,n,r,o,s,a)},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,n,r){if(!this.survey)return r;var o={rowValue:n.value,row:n,column:e,columnName:e.name,cellType:r};return this.survey.matrixCellCreating(this,o),o.cellType},t.prototype.getConditionJson=function(e,n){if(e===void 0&&(e=null),n===void 0&&(n=null),!n)return i.prototype.getConditionJson.call(this,e);for(var r="",o=n.length-1;o>=0&&n[o]!=".";o--)r=n[o]+r;var s=void 0,a=this.getColumnByName(r);return a?s=a.createCellQuestion(null):this.detailPanelMode!=="none"&&(s=this.detailPanel.getQuestionByName(r)),s?s.getConditionJson(e):null},t.prototype.clearIncorrectValues=function(){if(Array.isArray(this.visibleRows))for(var e=this.generatedVisibleRows,n=0;n<e.length;n++)e[n].clearIncorrectValues(this.getRowValue(n))},t.prototype.clearErrors=function(){i.prototype.clearErrors.call(this),this.runFuncForCellQuestions(function(e){e.clearErrors()})},t.prototype.localeChanged=function(){i.prototype.localeChanged.call(this),this.runFuncForCellQuestions(function(e){e.localeChanged()})},t.prototype.runFuncForCellQuestions=function(e){if(this.generatedVisibleRows)for(var n=0;n<this.generatedVisibleRows.length;n++)for(var r=this.generatedVisibleRows[n],o=0;o<r.cells.length;o++)e(r.cells[o].question)},t.prototype.runCondition=function(e,n){var r=e[_e.RowVariableName];i.prototype.runCondition.call(this,e,n);var o=0,s;do s=P.getUnbindValue(this.totalValue),this.runCellsCondition(e,n),this.runTotalsCondition(e,n),o++;while(!P.isTwoValueEquals(s,this.totalValue)&&o<3);this.updateVisibilityBasedOnRows(),e[_e.RowVariableName]=r},t.prototype.runTriggers=function(e,n,r){i.prototype.runTriggers.call(this,e,n,r),this.runFuncForCellQuestions(function(o){o.runTriggers(e,n,r)})},t.prototype.updateElementVisibility=function(){i.prototype.updateElementVisibility.call(this);var e=this.generatedVisibleRows;e&&e.forEach(function(n){return n.updateElementVisibility()})},t.prototype.shouldRunColumnExpression=function(){return!1},t.prototype.runCellsCondition=function(e,n){var r=this.generatedVisibleRows;if(r)for(var o=this.getRowConditionValues(e),s=0;s<r.length;s++)r[s].runCondition(o,n,this.rowsVisibleIf);this.checkColumnsVisibility(),this.checkColumnsRenderedRequired()},t.prototype.runConditionsForColumns=function(e,n){var r=this;return this.columns.forEach(function(o){if(!r.columnsVisibleIf)o.isColumnsVisibleIf=!0;else{var s=new de(r.columnsVisibleIf);e.item=o.name,o.isColumnsVisibleIf=s.run(e,n)===!0}}),!1},t.prototype.checkColumnsVisibility=function(){if(!this.isDesignMode){for(var e=!1,n=0;n<this.columns.length;n++){var r=this.columns[n],o=!!r.visibleIf||r.isFilteredMultipleColumns;!o&&!this.columnsVisibleIf&&r.isColumnVisible||(e=this.isColumnVisibilityChanged(r,o)||e)}e&&this.resetRenderedTable()}},t.prototype.checkColumnsRenderedRequired=function(){var e=this.generatedVisibleRows;if(e)for(var n=0;n<this.columns.length;n++){var r=this.columns[n];if(!(!r.requiredIf||!r.isColumnVisible)){for(var o=e.length>0,s=0;s<e.length;s++)if(!e[s].cells[n].question.isRequired){o=!1;break}r.updateIsRenderedRequired(o)}}},t.prototype.isColumnVisibilityChanged=function(e,n){var r=e.isColumnVisible,o=!n,s=this.generatedVisibleRows,a=n&&s,l=a&&e.isFilteredMultipleColumns,u=l?e.getVisibleChoicesInCell:[],d=new Array;if(a)for(var v=0;v<s.length;v++){var V=s[v].cells[e.index],T=V==null?void 0:V.question;if(T&&T.isVisible)if(o=!0,l)this.updateNewVisibleChoices(T,d);else break}return e.hasVisibleCell=o&&e.isColumnsVisibleIf,l&&(e.setVisibleChoicesInCell(d),!P.isArraysEqual(u,d,!0,!1,!1))?!0:r!==e.isColumnVisible},t.prototype.updateNewVisibleChoices=function(e,n){var r=e.visibleChoices;if(Array.isArray(r))for(var o=0;o<r.length;o++){var s=r[o];n.indexOf(s.value)<0&&n.push(s.value)}},t.prototype.runTotalsCondition=function(e,n){this.generatedTotalRow&&this.generatedTotalRow.runCondition(this.getRowConditionValues(e),n)},t.prototype.getRowConditionValues=function(e){var n=e;n||(n={});var r={};return this.isValueEmpty(this.totalValue)||(r=JSON.parse(JSON.stringify(this.totalValue))),n.row={},n.totalRow=r,n},t.prototype.IsMultiplyColumn=function(e){return e.isShowInMultipleColumns&&!this.isMobile},t.prototype.locStrsChanged=function(){i.prototype.locStrsChanged.call(this);for(var e=this.columns,n=0;n<e.length;n++)e[n].locStrsChanged();var r=this.generatedVisibleRows;if(r){for(var n=0;n<r.length;n++)r[n].locStrsChanged();this.generatedTotalRow&&this.generatedTotalRow.locStrsChanged()}},t.prototype.getColumnByName=function(e){for(var n=0;n<this.columns.length;n++)if(this.columns[n].name==e)return this.columns[n];return null},t.prototype.getColumnName=function(e){return this.getColumnByName(e)},t.prototype.getColumnWidth=function(e){var n;return e.minWidth?e.minWidth:this.columnMinWidth?this.columnMinWidth:((n=b.matrix.columnWidthsByType[e.cellType])===null||n===void 0?void 0:n.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:!1},enumerable:!1,configurable:!0}),t.prototype.addColumn=function(e,n){var r=new jt(e,n,this);return this.columns.push(r),r},t.prototype.clearVisibleRows=function(){this.visibleRowsArray=null},t.prototype.isColumnVisible=function(e){return e.isColumnVisible},t.prototype.getVisibleRows=function(){return this.isUpdateLocked?null:this.isGenereatingRows?[]:this.visibleRowsArray?this.visibleRowsArray:(this.generateVisibleRowsIfNeeded(),this.visibleRowsArray=this.getVisibleFromGenerated(this.generatedVisibleRows),this.visibleRowsArray)},t.prototype.generateVisibleRowsIfNeeded=function(){var e=this;!this.isUpdateLocked&&!this.generatedVisibleRows&&!this.generatedVisibleRows&&(this.isGenereatingRows=!0,this.generatedVisibleRows=this.generateRows(),this.isGenereatingRows=!1,this.generatedVisibleRows.forEach(function(n){return e.onMatrixRowCreated(n)}),this.data&&this.runCellsCondition(this.data.getFilteredValues(),this.data.getFilteredProperties()),this.generatedVisibleRows&&(this.updateValueOnRowsGeneration(this.generatedVisibleRows),this.updateIsAnswered()))},t.prototype.getVisibleFromGenerated=function(e){var n=[];return e?(e.forEach(function(r){r.isVisible&&n.push(r)}),n.length===e.length?e:n):n},t.prototype.updateValueOnRowsGeneration=function(e){for(var n=this.createNewValue(!0),r=this.createNewValue(),o=0;o<e.length;o++){var s=e[o];if(!s.editingObj){var a=this.getRowValue(o),l=s.value;this.isTwoValueEquals(a,l)||(r=this.getNewValueOnRowChanged(s,"",l,!1,r).value)}}this.isTwoValueEquals(n,r)||(this.isRowChanging=!0,this.setNewValue(r),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(){i.prototype.onSurveyLoad.call(this),this.updateColumnsIndexes(this.columns),this.clearGeneratedRows(),this.generatedTotalRow=null,this.updateHasFooter()},t.prototype.getRowValue=function(e){if(e<0||!Array.isArray(this.visibleRows))return null;var n=this.generatedVisibleRows;if(e>=n.length)return null;var r=this.createNewValue();return this.getRowValueCore(n[e],r)},t.prototype.checkIfValueInRowDuplicated=function(e,n){return this.generatedVisibleRows?this.isValueInColumnDuplicated(n.name,!0,e):!1},t.prototype.setRowValue=function(e,n){if(e<0)return null;var r=this.visibleRows;if(e>=r.length)return null;r[e].value=n,this.onRowChanged(r[e],"",n,!1)},t.prototype.generateRows=function(){return null},t.prototype.generateTotalRow=function(){return new hn(this)},t.prototype.createNewValue=function(e){e===void 0&&(e=!1);var n=this.value?this.createValueCopy():{};return e&&this.isMatrixValueEmpty(n)?null:n},t.prototype.getRowValueCore=function(e,n,r){r===void 0&&(r=!1);var o=n&&n[e.rowName]?n[e.rowName]:null;return!o&&r&&(o={},n&&(n[e.rowName]=o)),o},t.prototype.getRowObj=function(e){var n=this.getRowValueCore(e,this.value);return n&&n.getType?n:null},t.prototype.getRowDisplayValue=function(e,n,r){if(!r||n.editingObj)return r;for(var o=Object.keys(r),s=0;s<o.length;s++){var a=o[s],l=n.getQuestionByName(a);if(l||(l=this.getSharedQuestionByName(a,n)),l){var u=l.getDisplayValue(e,r[a]);e&&l.title&&l.title!==a?(r[l.title]=u,delete r[a]):r[a]=u}}return r},t.prototype.getPlainData=function(e){var n=this;e===void 0&&(e={includeEmpty:!0});var r=i.prototype.getPlainData.call(this,e);if(r){r.isNode=!0;var o=Array.isArray(r.data)?[].concat(r.data):[];r.data=this.visibleRows.map(function(s){var a={name:s.dataName,title:s.text,value:s.value,displayValue:n.getRowDisplayValue(!1,s,s.value),getString:function(l){return typeof l=="object"?JSON.stringify(l):l},isNode:!0,data:s.cells.map(function(l){return l.question.getPlainData(e)}).filter(function(l){return!!l})};return(e.calculations||[]).forEach(function(l){a[l.propertyName]=s[l.propertyName]}),a}),r.data=r.data.concat(o)}return r},t.prototype.addConditionObjectsByContext=function(e,n){var r=[].concat(this.columns);this.detailPanelMode!=="none"&&(r=r.concat(this.detailPanel.questions));var o=!!n&&r.indexOf(n)>-1,s=n===!0||o,a=this.getConditionObjectsRowIndeces();s&&a.push(-1);for(var l=0;l<a.length;l++){var u=a[l],d=u>-1?this.getConditionObjectRowName(u):"row";if(d)for(var v=u>-1?this.getConditionObjectRowText(u):"row",V=u>-1||n===!0,T=V&&u===-1?".":"",R=(V?this.getValueName():"")+T+d+".",N=(V?this.processedTitle:"")+T+v+".",j=0;j<r.length;j++){var A=r[j];if(!(u===-1&&n===A)){var Q={name:R+A.name,text:N+A.fullTitle,question:this};u===-1&&n===!0?Q.context=this:o&&R.startsWith("row.")&&(Q.context=n),e.push(Q)}}}},t.prototype.onHidingContent=function(){if(i.prototype.onHidingContent.call(this),!!this.generatedVisibleRows){var e=[];this.collectNestedQuestions(e,!0),e.forEach(function(n){return n.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,n){this.collectNestedQuestonsInRows(this.visibleRows,e,n)},t.prototype.collectNestedQuestonsInRows=function(e,n,r){Array.isArray(e)&&e.forEach(function(o){o.questions.forEach(function(s){return s.collectNestedQuestions(n,r)})})},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 le.getProgressInfoByElements(this.getCellQuestions(),this.isRequired);var e=z.createProgressInfo();return this.updateProgressInfoByValues(e),e.requiredQuestionCount===0&&this.isRequired&&(e.requiredQuestionCount=1,e.requiredAnsweredQuestionCount=this.isEmpty()?0:1),e},t.prototype.updateProgressInfoByValues=function(e){},t.prototype.updateProgressInfoByRow=function(e,n){for(var r=0;r<this.columns.length;r++){var o=this.columns[r];if(o.templateQuestion.hasInput){var s=!P.isValueEmpty(n[o.name]);!s&&o.templateQuestion.visibleIf||(e.questionCount+=1,e.requiredQuestionCount+=o.isRequired,e.answeredQuestionCount+=s?1:0,e.requiredAnsweredQuestionCount+=s&&o.isRequired?1:0)}}},t.prototype.getCellQuestions=function(){var e=[];return this.runFuncForCellQuestions(function(n){e.push(n)}),e},t.prototype.onBeforeValueChanged=function(e){},t.prototype.onSetQuestionValue=function(){if(!this.isRowChanging&&(this.onBeforeValueChanged(this.value),!(!this.generatedVisibleRows||this.generatedVisibleRows.length==0))){this.isRowChanging=!0;for(var e=this.createNewValue(),n=0;n<this.generatedVisibleRows.length;n++){var r=this.generatedVisibleRows[n];this.generatedVisibleRows[n].value=this.getRowValueCore(r,e)}this.isRowChanging=!1}},t.prototype.setQuestionValue=function(e){i.prototype.setQuestionValue.call(this,e,!1),this.onSetQuestionValue(),this.updateIsAnswered()},t.prototype.supportGoNextPageAutomatic=function(){var e=this.generatedVisibleRows;if(e||(e=this.visibleRows),!e)return!0;for(var n=0;n<e.length;n++){var r=this.generatedVisibleRows[n].cells;if(r)for(var o=0;o<r.length;o++){var s=r[o].question;if(s&&(!s.supportGoNextPageAutomatic()||!s.value))return!1}}return!0},t.prototype.getContainsErrors=function(){return i.prototype.getContainsErrors.call(this)||this.checkForAnswersOrErrors(function(e){return e.containsErrors},!1)},t.prototype.getIsAnswered=function(){return i.prototype.getIsAnswered.call(this)&&this.checkForAnswersOrErrors(function(e){return e.isAnswered},!0)},t.prototype.checkForAnswersOrErrors=function(e,n){n===void 0&&(n=!1);var r=this.generatedVisibleRows;if(!r)return!1;for(var o=0;o<r.length;o++){var s=r[o].cells;if(s){for(var a=0;a<s.length;a++)if(s[a]){var l=s[a].question;if(l&&l.isVisible){if(e(l)){if(!n)return!0}else if(n)return!1}}}}return!!n},t.prototype.hasErrors=function(e,n){e===void 0&&(e=!0),n===void 0&&(n=null);var r=this.hasErrorInRows(e,n),o=this.isValueDuplicated();return i.prototype.hasErrors.call(this,e,n)||r||o},t.prototype.getIsRunningValidators=function(){if(i.prototype.getIsRunningValidators.call(this))return!0;if(!this.generatedVisibleRows)return!1;for(var e=0;e<this.generatedVisibleRows.length;e++){var n=this.generatedVisibleRows[e].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 e=i.prototype.getAllErrors.call(this),n=this.generatedVisibleRows;if(n===null)return e;for(var r=0;r<n.length;r++)for(var o=n[r],s=0;s<o.cells.length;s++){var a=o.cells[s].question.getAllErrors();a&&a.length>0&&(e=e.concat(a))}return e},t.prototype.hasErrorInRows=function(e,n){var r=this,o=this.generatedVisibleRows;this.generatedVisibleRows||(o=this.visibleRows);var s=!1;if(n||(n={}),!o)return n;n.validationValues=this.getDataFilteredValues(),n.isSingleDetailPanel=this.detailPanelMode==="underRowSingle";for(var a=0;a<o.length;a++)o[a].isVisible&&(s=o[a].hasErrors(e,n,function(){r.raiseOnCompletedAsyncValidators()})||s);return s},t.prototype.isValueDuplicated=function(){if(!this.generatedVisibleRows)return!1;for(var e=this.getUniqueColumnsNames(),n=!1,r=0;r<e.length;r++)n=this.isValueInColumnDuplicated(e[r],!0)||n;return n},t.prototype.getUniqueColumnsNames=function(){for(var e=new Array,n=0;n<this.columns.length;n++)this.columns[n].isUnique&&e.push(this.columns[n].name);return e},t.prototype.isValueInColumnDuplicated=function(e,n,r){var o=this.getDuplicatedRows(e);return n&&this.showDuplicatedErrorsInRows(o,e),this.removeDuplicatedErrorsInRows(o,e),r?o.indexOf(r)>-1:o.length>0},t.prototype.getDuplicatedRows=function(e){for(var n={},r=[],o=this.generatedVisibleRows,s=0;s<o.length;s++){var a=void 0,l=o[s].getQuestionByName(e);if(l)a=l.value;else{var u=this.getRowValue(s);a=u?u[e]:void 0}this.isValueEmpty(a)||(!this.isUniqueCaseSensitive&&typeof a=="string"&&(a=a.toLocaleLowerCase()),n[a]||(n[a]=[]),n[a].push(o[s]))}for(var d in n)n[d].length>1&&n[d].forEach(function(v){return r.push(v)});return r},t.prototype.showDuplicatedErrorsInRows=function(e,n){var r=this;e.forEach(function(o){var s=o.getQuestionByName(n),a=r.detailPanel.getQuestionByName(n);!s&&a&&(o.showDetailPanel(),o.detailPanel&&(s=o.detailPanel.getQuestionByName(n))),s&&(a&&o.showDetailPanel(),r.addDuplicationError(s))})},t.prototype.removeDuplicatedErrorsInRows=function(e,n){var r=this;this.generatedVisibleRows.forEach(function(o){if(e.indexOf(o)<0){var s=o.getQuestionByName(n);s&&r.removeDuplicationError(o,s)}})},t.prototype.getDuplicationError=function(e){for(var n=e.errors,r=0;r<n.length;r++)if(n[r].getErrorType()==="keyduplicationerror")return n[r];return null},t.prototype.addDuplicationError=function(e){this.getDuplicationError(e)||e.addError(new Co(this.keyDuplicationError,this))},t.prototype.removeDuplicationError=function(e,n){n.removeError(this.getDuplicationError(n))&&n.errors.length===0&&e.editingObj&&(e.editingObj[n.getValueName()]=n.value)},t.prototype.getFirstQuestionToFocus=function(e){return this.getFirstCellQuestion(e)},t.prototype.getFirstInputElementId=function(){var e=this.getFirstCellQuestion(!1);return e?e.inputId:i.prototype.getFirstInputElementId.call(this)},t.prototype.getFirstErrorInputElementId=function(){var e=this.getFirstCellQuestion(!0);return e?e.inputId:i.prototype.getFirstErrorInputElementId.call(this)},t.prototype.getFirstCellQuestion=function(e){if(!this.generatedVisibleRows)return null;for(var n=0;n<this.generatedVisibleRows.length;n++)for(var r=this.generatedVisibleRows[n].cells,o=0;o<r.length;o++)if(!e||r[o].question.currentErrorCount>0)return r[o].question;return null},t.prototype.onReadOnlyChanged=function(){if(i.prototype.onReadOnlyChanged.call(this),!!this.generateRows)for(var e=0;e<this.visibleRows.length;e++)this.visibleRows[e].onQuestionReadOnlyChanged()},t.prototype.createQuestion=function(e,n){return this.createQuestionCore(e,n)},t.prototype.createQuestionCore=function(e,n){var r=n.createCellQuestion(e);return r.setSurveyImpl(e),r.setParentQuestion(this),r.inMatrixMode=!0,r},t.prototype.deleteRowValue=function(e,n){return e&&(delete e[n.rowName],this.isObject(e)&&Object.keys(e).length==0?null:e)},t.prototype.onAnyValueChanged=function(e,n){if(!(this.isUpdateLocked||this.isDoingonAnyValueChanged||!this.generatedVisibleRows)){this.isDoingonAnyValueChanged=!0;for(var r=this.generatedVisibleRows,o=0;o<r.length;o++)r[o].onAnyValueChanged(e,n);var s=this.visibleTotalRow;s&&s.onAnyValueChanged(e,n),this.isDoingonAnyValueChanged=!1}},t.prototype.isObject=function(e){return e!==null&&typeof e=="object"},t.prototype.getOnCellValueChangedOptions=function(e,n,r){var o=function(s){return e.getQuestionByName(s)};return{row:e,columnName:n,rowValue:r,value:r?r[n]:null,getCellQuestion:o,cellQuestion:e.getQuestionByName(n),column:this.getColumnByName(n)}},t.prototype.onCellValueChanged=function(e,n,r){if(this.survey){var o=this.getOnCellValueChangedOptions(e,n,r);this.onCellValueChangedCallback&&this.onCellValueChangedCallback(o),this.survey.matrixCellValueChanged(this,o)}},t.prototype.validateCell=function(e,n,r){if(this.survey){var o=this.getOnCellValueChangedOptions(e,n,r);return this.survey.matrixCellValidate(this,o)}},Object.defineProperty(t.prototype,"isValidateOnValueChanging",{get:function(){return this.survey?this.survey.isValidateOnValueChanging:!1},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hasInvisibleRows",{get:function(){var e=this.generatedVisibleRows;if(!Array.isArray(e))return!1;for(var n=0;n<e.length;n++)if(!e[n].isVisible)return!0;return!1},enumerable:!1,configurable:!0}),t.prototype.getFilteredData=function(){return this.isEmpty()||!this.generatedVisibleRows||!this.hasInvisibleRows?this.value:this.getFilteredDataCore()},t.prototype.getFilteredDataCore=function(){return this.value},t.prototype.onRowChanging=function(e,n,r){if(!this.survey&&!this.cellValueChangingCallback)return r?r[n]:null;var o=this.getOnCellValueChangedOptions(e,n,r),s=this.getRowValueCore(e,this.createNewValue(),!0);return o.oldValue=s?s[n]:null,this.cellValueChangingCallback&&(o.value=this.cellValueChangingCallback(e,n,o.value,o.oldValue)),this.survey&&this.survey.matrixCellValueChanging(this,o),o.value},t.prototype.onRowChanged=function(e,n,r,o){var s=n?this.getRowObj(e):null;if(s){var a=null;r&&!o&&(a=r[n]),this.isRowChanging=!0,x.setObjPropertyValue(s,n,a),this.isRowChanging=!1,this.onCellValueChanged(e,n,s)}else{var l=this.createNewValue(!0),u=this.getNewValueOnRowChanged(e,n,r,o,this.createNewValue());if(this.isTwoValueEquals(l,u.value))return;this.isRowChanging=!0,this.setNewValue(u.value),this.isRowChanging=!1,n&&this.onCellValueChanged(e,n,u.rowValue)}this.getUniqueColumnsNames().indexOf(n)>-1&&this.isValueInColumnDuplicated(n,!!s)},t.prototype.getNewValueOnRowChanged=function(e,n,r,o,s){var a=this.getRowValueCore(e,s,!0);if(o&&delete a[n],e.questions.forEach(function(u){delete a[u.getValueName()]}),r){r=JSON.parse(JSON.stringify(r));for(var l in r)this.isValueEmpty(r[l])||(a[l]=r[l])}return this.isObject(a)&&Object.keys(a).length===0&&(s=this.deleteRowValue(s,e)),{value:s,rowValue:a}},t.prototype.getRowIndex=function(e){return Array.isArray(this.generatedVisibleRows)?this.generatedVisibleRows.indexOf(e):-1},t.prototype.getElementsInDesign=function(e){e===void 0&&(e=!1);var n;return this.detailPanelMode=="none"?n=i.prototype.getElementsInDesign.call(this,e):n=e?[this.detailPanel]:this.detailElements,this.columns.concat(n)},t.prototype.hasDetailPanel=function(e){return this.detailPanelMode=="none"?!1:this.isDesignMode?!0:this.onHasDetailPanelCallback?this.onHasDetailPanelCallback(e):this.detailElements.length>0},t.prototype.getIsDetailPanelShowing=function(e){if(this.detailPanelMode=="none")return!1;if(this.isDesignMode){var n=this.visibleRows.indexOf(e)==0;return n&&(e.detailPanel||e.showDetailPanel()),n}return this.getPropertyValue("isRowShowing"+e.id,!1)},t.prototype.setIsDetailPanelShowing=function(e,n){if(n!=this.getIsDetailPanelShowing(e)&&(this.setPropertyValue("isRowShowing"+e.id,n),this.updateDetailPanelButtonCss(e),this.renderedTable&&this.renderedTable.onDetailPanelChangeVisibility(e,n),this.survey&&this.survey.matrixDetailPanelVisibleChanged(this,e.rowIndex-1,e,n),n&&this.detailPanelMode==="underRowSingle"))for(var r=this.visibleRows,o=0;o<r.length;o++)r[o].id!==e.id&&r[o].isDetailPanelShowing&&r[o].hideDetailPanel()},t.prototype.getDetailPanelButtonCss=function(e){var n=new O().append(this.getPropertyValue("detailButtonCss"+e.id));return n.append(this.cssClasses.detailButton,n.toString()==="").toString()},t.prototype.getDetailPanelIconCss=function(e){var n=new O().append(this.getPropertyValue("detailIconCss"+e.id));return n.append(this.cssClasses.detailIcon,n.toString()==="").toString()},t.prototype.getDetailPanelIconId=function(e){return this.getIsDetailPanelShowing(e)?this.cssClasses.detailIconExpandedId:this.cssClasses.detailIconId},t.prototype.updateDetailPanelButtonCss=function(e){var n=this.cssClasses,r=this.getIsDetailPanelShowing(e),o=new O().append(n.detailIcon).append(n.detailIconExpanded,r);this.setPropertyValue("detailIconCss"+e.id,o.toString());var s=new O().append(n.detailButton).append(n.detailButtonExpanded,r);this.setPropertyValue("detailButtonCss"+e.id,s.toString())},t.prototype.createRowDetailPanel=function(e){var n=this;if(this.isDesignMode)return this.detailPanel;var r=this.createNewDetailPanel();r.readOnly=this.isReadOnly||!e.isRowEnabled(),r.setSurveyImpl(e);var o=this.detailPanel.toJSON();return new fe().toObject(o,r),r.renderWidth="100%",r.updateCustomWidgets(),this.onCreateDetailPanelCallback&&this.onCreateDetailPanelCallback(e,r),r.questions.forEach(function(s){return s.setParentQuestion(n)}),r.onSurveyLoad(),r},t.prototype.getSharedQuestionByName=function(e,n){if(!this.survey||!this.valueName)return null;var r=this.getRowIndex(n);return r<0?null:this.survey.getQuestionByValueNameFromArray(this.valueName,e,r)},t.prototype.onTotalValueChanged=function(){this.data&&this.visibleTotalRow&&!this.isUpdateLocked&&!this.isSett&&this.data.setValue(this.getValueName()+b.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.onRowVisibilityChanged=function(e){this.clearVisibleRows(),this.resetRenderedTable()},t.prototype.clearValueIfInvisibleCore=function(e){i.prototype.clearValueIfInvisibleCore.call(this,e),this.clearInvisibleValuesInRows()},t.prototype.clearInvisibleValuesInRows=function(){var e;if(!(this.isEmpty()||!this.isRowsFiltered())){var n=((e=this.survey)===null||e===void 0?void 0:e.questionsByValueName(this.getValueName()))||[];n.length<2&&(this.value=this.getFilteredData())}},t.prototype.isRowsFiltered=function(){return i.prototype.isRowsFiltered.call(this)||this.visibleRows!==this.generatedVisibleRows},t.prototype.getQuestionFromArray=function(e,n){return n>=this.visibleRows.length?null:this.visibleRows[n].getQuestionByName(e)},t.prototype.isMatrixValueEmpty=function(e){if(e){if(Array.isArray(e)){for(var n=0;n<e.length;n++)if(this.isObject(e[n])&&Object.keys(e[n]).length>0)return!1;return!0}return Object.keys(e).length==0}},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 hn?"row-footer":"cell")},t.prototype.getCellWrapperComponentData=function(e){return this.SurveyModel.getElementWrapperComponentData(e,e.row instanceof hn?"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.onMobileChanged=function(){i.prototype.onMobileChanged.call(this),this.resetRenderedTable()},t.prototype.getRootCss=function(){return new O().append(i.prototype.getRootCss.call(this)).append(this.cssClasses.rootScroll,this.horizontalScroll).toString()},t.prototype.afterRenderQuestionElement=function(e){i.prototype.afterRenderQuestionElement.call(this,e),this.setRootElement(e==null?void 0:e.parentElement)},t.prototype.beforeDestroyQuestionElement=function(e){i.prototype.beforeDestroyQuestionElement.call(this,e),this.setRootElement(void 0)},t.prototype.setRootElement=function(e){this.rootElement=e},t.prototype.getRootElement=function(){return this.rootElement},t}(gr);x.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",baseClassName:"question",visible:!1,isLightSerializable:!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(i){return!!i&&i.detailPanelMode!="none"}},{name:"horizontalScroll:boolean",visible:!1},{name:"choices:itemvalue[]",uniqueProperty:"value",visibleIf:function(i){return i.isSelectCellType()}},{name:"placeholder",alternativeName:"optionsCaption",serializationProperty:"locPlaceholder"},{name:"keyDuplicationError",serializationProperty:"locKeyDuplicationError"},{name:"cellType",default:"dropdown",choices:function(){return jt.getColumnTypes()}},{name:"columnColCount",default:0,choices:[0,1,2,3,4]},"columnMinWidth",{name:"allowAdaptiveActions:boolean",default:!1,visible:!1}],function(){return new bt("")},"matrixbase");var qo=function(){var i=function(t,e){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(n[o]=r[o])},i(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");i(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),Qo=function(i){qo(t,i);function t(e,n,r,o){var s=i.call(this,r,o)||this;return s.name=e,s.item=n,s.buildCells(o),s}return 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.isItemVisible=function(){return this.item.isVisible},t.prototype.isRowEnabled=function(){return this.item.isEnabled},t.prototype.isRowHasEnabledCondition=function(){return!!this.item.enableIf},t.prototype.setRowsVisibleIfValues=function(e){e.item=this.item.value,e.choice=this.item.value},t}(_e),xr=function(i){qo(t,i);function t(e){var n=i.call(this,e)||this;return n.defaultValuesInRows={},n.createLocalizableString("totalText",n,!0),n.registerPropertyChangedHandlers(["rows"],function(){n.generatedVisibleRows&&(n.clearGeneratedRows(),n.resetRenderedTable(),n.getVisibleRows(),n.clearIncorrectValues())}),n.registerPropertyChangedHandlers(["hideIfRowsEmpty"],function(){n.updateVisibilityBasedOnRows()}),n}return 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,n){if(!n)return n;var r=this.visibleRows,o={};if(!r)return o;for(var s=0;s<r.length;s++){var a=r[s].rowName,l=n[a];if(l){if(e){var u=k.getTextOrHtmlByValue(this.rows,a);u&&(a=u)}o[a]=this.getRowDisplayValue(e,r[s],l)}}return o},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=[],n=0;n<this.rows.length;n++)e.push(n);return e},t.prototype.isNewValueCorrect=function(e){return P.isValueObject(e,!0)},t.prototype.clearIncorrectValues=function(){if(!this.isEmpty()){this.getVisibleRows();var e={},n=this.value;for(var r in n){var o=this.getRowByKey(r);o&&o.isVisible&&(e[r]=n[r])}this.value=e}i.prototype.clearIncorrectValues.call(this)},t.prototype.getRowByKey=function(e){var n=this.generatedVisibleRows;if(!n)return null;for(var r=0;r<n.length;r++)if(n[r].rowName===e)return n[r];return null},t.prototype.clearGeneratedRows=function(){var e=this;this.generatedVisibleRows&&(this.isDisposed||this.generatedVisibleRows.forEach(function(n){e.defaultValuesInRows[n.rowName]=n.getNamesWithDefaultValues()}),i.prototype.clearGeneratedRows.call(this))},t.prototype.getRowValueForCreation=function(e,n){var r=e[n];if(!r)return r;var o=this.defaultValuesInRows[n];return!Array.isArray(o)||o.length===0||o.forEach(function(s){delete r[s]}),r},t.prototype.generateRows=function(){var e=new Array,n=this.rows;if(!n||n.length===0)return e;var r=this.value;r||(r={});for(var o=0;o<n.length;o++){var s=n[o];this.isValueEmpty(s.value)||e.push(this.createMatrixRow(s,this.getRowValueForCreation(r,s.value)))}return e},t.prototype.createMatrixRow=function(e,n){return new Qo(e.value,e,this,n)},t.prototype.getFilteredDataCore=function(){var e={},n=this.createValueCopy();return this.generatedVisibleRows.forEach(function(r){var o=n[r.rowName];r.isVisible&&!P.isValueEmpty(o)&&(e[r.rowName]=o)}),e},t.prototype.getSearchableItemValueKeys=function(e){e.push("rows")},t.prototype.updateProgressInfoByValues=function(e){var n=this.value;n||(n={});for(var r=0;r<this.rows.length;r++){var o=this.rows[r],s=n[o.value];this.updateProgressInfoByRow(e,s||{})}},t}(bt);x.addClass("matrixdropdown",[{name:"rows:itemvalue[]",uniqueProperty:"value"},"rowsVisibleIf:condition","rowTitleWidth",{name:"totalText",serializationProperty:"locTotalText"},"hideIfRowsEmpty:boolean"],function(){return new xr("")},"matrixdropdownbase"),J.Instance.registerQuestion("matrixdropdown",function(i){var t=new xr(i);return t.choices=[1,2,3,4,5],t.rows=J.DefaultRows,bt.addDefaultColumns(t),t});var Or=!1,zo=null;typeof navigator<"u"&&navigator&&E.isAvailable()&&(zo=navigator.userAgent||navigator.vendor||E.hasOwn("opera")),function(i){i&&(navigator.platform==="MacIntel"&&navigator.maxTouchPoints>0||navigator.platform==="iPad"||/(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(i)||/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(i.substring(0,4)))&&(Or=!0)}(zo);var Qu=!1,gn=Or||Qu,Ho={get isTouch(){return!this.hasMouse&&this.hasTouchEvent},get hasTouchEvent(){return E.isAvailable()&&(E.hasOwn("ontouchstart")||navigator.maxTouchPoints>0)},hasMouse:!0},zu=E.matchMedia;Ho.hasMouse=Uu(zu);var ne=Ho.isTouch;function Hu(i){ne=i}function Uu(i){if(!i||gn)return!1;var t=i("(pointer:fine)"),e=i("(any-hover:hover)");return!!t&&t.matches||!!e&&e.matches}var Wu=function(i,t){for(var e=0,n=t.length,r=i.length;e<n;e++,r++)i[r]=t[e];return i};typeof window<"u"&&window.addEventListener("touchmove",function(i){Uo.PreventScrolling&&i.preventDefault()},{passive:!1});var Uo=function(){function i(t,e,n){var r=this;e===void 0&&(e=!0),n===void 0&&(n=!1),this.dd=t,this.longTap=e,this.fitToContainer=n,this.scrollIntervalId=null,this.stopLongTapIfMoveEnough=function(o){o.preventDefault(),r.currentX=o.pageX,r.currentY=o.pageY,!r.isMicroMovement&&(r.returnUserSelectBack(),r.stopLongTap())},this.stopLongTap=function(o){clearTimeout(r.timeoutID),r.timeoutID=null,document.removeEventListener("pointerup",r.stopLongTap),document.removeEventListener("pointermove",r.stopLongTapIfMoveEnough)},this.handlePointerCancel=function(o){r.clear()},this.handleEscapeButton=function(o){o.keyCode==27&&r.clear()},this.onContextMenu=function(o){o.preventDefault(),o.stopPropagation()},this.dragOver=function(o){r.moveShortcutElement(o),r.draggedElementShortcut.style.cursor="grabbing",r.dd.dragOver(o)},this.clear=function(){cancelAnimationFrame(r.scrollIntervalId),document.removeEventListener("pointermove",r.dragOver),document.removeEventListener("pointercancel",r.handlePointerCancel),document.removeEventListener("keydown",r.handleEscapeButton),document.removeEventListener("pointerup",r.drop),r.draggedElementShortcut.removeEventListener("pointerup",r.drop),ne&&r.draggedElementShortcut.removeEventListener("contextmenu",r.onContextMenu),r.draggedElementShortcut.parentElement.removeChild(r.draggedElementShortcut),r.dd.clear(),r.draggedElementShortcut=null,r.scrollIntervalId=null,ne&&(r.savedTargetNode.style.cssText=null,r.savedTargetNode&&r.savedTargetNode.parentElement.removeChild(r.savedTargetNode),r.insertNodeToParentAtIndex(r.savedTargetNodeParent,r.savedTargetNode,r.savedTargetNodeIndex),i.PreventScrolling=!1),r.savedTargetNode=null,r.savedTargetNodeParent=null,r.savedTargetNodeIndex=null,r.returnUserSelectBack()},this.drop=function(){r.dd.drop(),r.clear()},this.draggedElementShortcut=null}return Object.defineProperty(i.prototype,"documentOrShadowRoot",{get:function(){return b.environment.root},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"rootElement",{get:function(){return Lt(b.environment.root)?this.rootContainer||b.environment.root.host:this.rootContainer||b.environment.root.documentElement||document.body},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"isMicroMovement",{get:function(){var t=5,e=Math.abs(this.currentX-this.startX),n=Math.abs(this.currentY-this.startY);return e<t&&n<t},enumerable:!1,configurable:!0}),i.prototype.startLongTapProcessing=function(t,e,n,r,o){var s=this;o===void 0&&(o=!1),this.startX=t.pageX,this.startY=t.pageY,document.body.style.setProperty("touch-action","none","important"),this.timeoutID=setTimeout(function(){s.doStartDrag(t,e,n,r),o||(s.savedTargetNode=t.target,s.savedTargetNode.style.cssText=` + position: absolute; + height: 1px!important; + width: 1px!important; + overflow: hidden; + clip: rect(1px 1px 1px 1px); + clip: rect(1px, 1px, 1px, 1px); + `,s.savedTargetNodeParent=s.savedTargetNode.parentElement,s.savedTargetNodeIndex=s.getNodeIndexInParent(s.savedTargetNode),s.rootElement.appendChild(s.savedTargetNode)),s.stopLongTap()},this.longTap?500:0),document.addEventListener("pointerup",this.stopLongTap),document.addEventListener("pointermove",this.stopLongTapIfMoveEnough)},i.prototype.moveShortcutElement=function(t){var e=this.rootElement.getBoundingClientRect().x,n=this.rootElement.getBoundingClientRect().y,r=this.rootElement.scrollLeft,o=this.rootElement.scrollTop;this.doScroll(t.clientY,t.clientX);var s=this.draggedElementShortcut.offsetHeight,a=this.draggedElementShortcut.offsetWidth,l=this.draggedElementShortcut.shortcutXOffset||a/2,u=this.draggedElementShortcut.shortcutYOffset||s/2;document.querySelectorAll("[dir='rtl']").length!==0&&(l=a/2,u=s/2);var d=document.documentElement.clientHeight,v=document.documentElement.clientWidth,V=t.pageX,T=t.pageY,R=t.clientX,N=t.clientY;e-=r,n-=o;var j=this.getShortcutBottomCoordinate(N,s,u),A=this.getShortcutRightCoordinate(R,a,l);if(A>=v){this.draggedElementShortcut.style.left=v-a-e+"px",this.draggedElementShortcut.style.top=N-u-n+"px";return}if(R-l<=0){this.draggedElementShortcut.style.left=V-R-e+"px",this.draggedElementShortcut.style.top=N-n-u+"px";return}if(j>=d){this.draggedElementShortcut.style.left=R-l-e+"px",this.draggedElementShortcut.style.top=d-s-n+"px";return}if(N-u<=0){this.draggedElementShortcut.style.left=R-l-e+"px",this.draggedElementShortcut.style.top=T-N-n+"px";return}this.draggedElementShortcut.style.left=R-e-l+"px",this.draggedElementShortcut.style.top=N-n-u+"px"},i.prototype.getShortcutBottomCoordinate=function(t,e,n){return t+e-n},i.prototype.getShortcutRightCoordinate=function(t,e,n){return t+e-n},i.prototype.requestAnimationFrame=function(t){return requestAnimationFrame(t)},i.prototype.scrollByDrag=function(t,e,n){var r=this,o=100,s,a,l,u;t.tagName==="HTML"?(s=0,a=document.documentElement.clientHeight,l=0,u=document.documentElement.clientWidth):(s=t.getBoundingClientRect().top,a=t.getBoundingClientRect().bottom,l=t.getBoundingClientRect().left,u=t.getBoundingClientRect().right);var d=function(){var v=e-s<=o,V=a-e<=o,T=n-l<=o,R=u-n<=o;v&&!T&&!R?t.scrollTop-=15:V&&!T&&!R?t.scrollTop+=15:R&&!v&&!V?t.scrollLeft+=15:T&&!v&&!V&&(t.scrollLeft-=15),r.scrollIntervalId=r.requestAnimationFrame(d)};this.scrollIntervalId=this.requestAnimationFrame(d)},i.prototype.doScroll=function(t,e){cancelAnimationFrame(this.scrollIntervalId);var n=this.draggedElementShortcut.style.display;this.draggedElementShortcut.style.display="none";var r=this.documentOrShadowRoot.elementFromPoint(e,t);this.draggedElementShortcut.style.display=n||"block";var o=rn(r);this.scrollByDrag(o,t,e)},i.prototype.doStartDrag=function(t,e,n,r){ne&&(i.PreventScrolling=!0),t.which!==3&&(this.dd.dragInit(t,e,n,r),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),ne?this.draggedElementShortcut.addEventListener("contextmenu",this.onContextMenu):this.draggedElementShortcut.addEventListener("pointerup",this.drop))},i.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")},i.prototype.startDrag=function(t,e,n,r,o){if(o===void 0&&(o=!1),document.body.style.setProperty("user-select","none","important"),document.body.style.setProperty("-webkit-user-select","none","important"),ne){this.startLongTapProcessing(t,e,n,r,o);return}this.doStartDrag(t,e,n,r)},i.prototype.getNodeIndexInParent=function(t){return Wu([],t.parentElement.childNodes).indexOf(t)},i.prototype.insertNodeToParentAtIndex=function(t,e,n){t.insertBefore(e,t.childNodes[n])},i.PreventScrolling=!1,i}(),Sr=function(){function i(t,e,n,r){var o=this,s;this.surveyValue=t,this.creator=e,this._isBottom=null,this.onGhostPositionChanged=new Ve,this.onDragStart=new Ve,this.onDragEnd=new Ve,this.onDragClear=new Ve,this.onBeforeDrop=this.onDragStart,this.onAfterDrop=this.onDragEnd,this.draggedElement=null,this.dropTarget=null,this.prevDropTarget=null,this.allowDropHere=!1,this.banDropHere=function(){o.allowDropHere=!1,o.doBanDropHere(),o.dropTarget=null,o.domAdapter.draggedElementShortcut.style.cursor="not-allowed",o.isBottom=null},this.doBanDropHere=function(){},this.domAdapter=r||new Uo(this,n,(s=this.survey)===null||s===void 0?void 0:s.fitToContainer)}return Object.defineProperty(i.prototype,"isBottom",{get:function(){return!!this._isBottom},set:function(t){this._isBottom=t,this.ghostPositionChanged()},enumerable:!1,configurable:!0}),i.prototype.ghostPositionChanged=function(){this.onGhostPositionChanged.fire({},{})},Object.defineProperty(i.prototype,"dropTargetDataAttributeName",{get:function(){return"[data-sv-drop-target-"+this.draggedElementType+"]"},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"survey",{get:function(){var t;return this.surveyValue||((t=this.creator)===null||t===void 0?void 0:t.survey)},enumerable:!1,configurable:!0}),i.prototype.startDrag=function(t,e,n,r,o){o===void 0&&(o=!1),this.domAdapter.rootContainer=this.getRootElement(this.survey,this.creator),this.domAdapter.startDrag(t,e,n,r,o)},i.prototype.getRootElement=function(t,e){return e?e.rootElement:t.rootElement},i.prototype.dragInit=function(t,e,n,r){this.draggedElement=e,this.parentElement=n;var o=this.getShortcutText(this.draggedElement);this.domAdapter.draggedElementShortcut=this.createDraggedElementShortcut(o,r,t),this.onStartDrag(t);var s=this.draggedElement&&this.draggedElement.parent;this.onDragStart.fire(this,{fromElement:s,draggedElement:this.draggedElement})},i.prototype.onStartDrag=function(t){},i.prototype.isDropTargetDoesntChanged=function(t){return this.dropTarget===this.prevDropTarget&&t===this.isBottom},i.prototype.getShortcutText=function(t){return t==null?void 0:t.shortcutText},i.prototype.createDraggedElementShortcut=function(t,e,n){var r=I.createElement("div");return r&&(r.innerText=t,r.className=this.getDraggedElementClass()),r},i.prototype.getDraggedElementClass=function(){return"sv-dragged-element-shortcut"},i.prototype.doDragOver=function(){},i.prototype.afterDragOver=function(t){},i.prototype.findDropTargetNodeFromPoint=function(t,e){var n=this.domAdapter.draggedElementShortcut.style.display;if(this.domAdapter.draggedElementShortcut.style.display="none",!I.isAvailable())return null;var r=this.domAdapter.documentOrShadowRoot.elementsFromPoint(t,e);this.domAdapter.draggedElementShortcut.style.display=n||"block";for(var o=0,s=r[o];s&&s.className&&typeof s.className.indexOf=="function"&&s.className.indexOf("sv-drag-target-skipped")!=-1;)o++,s=r[o];return s?this.findDropTargetNodeByDragOverNode(s):null},i.prototype.getDataAttributeValueByNode=function(t){var e=this,n="svDropTarget",r=this.draggedElementType.split("-");return r.forEach(function(o){n+=e.capitalizeFirstLetter(o)}),t.dataset[n]},i.prototype.getDropTargetByNode=function(t,e){var n=this.getDataAttributeValueByNode(t);return this.getDropTargetByDataAttributeValue(n,t,e)},i.prototype.capitalizeFirstLetter=function(t){return t.charAt(0).toUpperCase()+t.slice(1)},i.prototype.calculateVerticalMiddleOfHTMLElement=function(t){var e=t.getBoundingClientRect();return e.y+e.height/2},i.prototype.calculateHorizontalMiddleOfHTMLElement=function(t){var e=t.getBoundingClientRect();return e.x+e.width/2},i.prototype.calculateIsBottom=function(t,e){return!1},i.prototype.findDropTargetNodeByDragOverNode=function(t){var e=t.closest(this.dropTargetDataAttributeName);return e},i.prototype.dragOver=function(t){var e=this.findDropTargetNodeFromPoint(t.clientX,t.clientY);if(!e){this.banDropHere();return}this.dropTarget=this.getDropTargetByNode(e,t);var n=this.isDropTargetValid(this.dropTarget,e);if(this.doDragOver(),!n){this.banDropHere();return}var r=this.calculateIsBottom(t.clientY,e);this.allowDropHere=!0,!this.isDropTargetDoesntChanged(r)&&(this.isBottom=null,this.isBottom=r,this.draggedElement!=this.dropTarget&&this.afterDragOver(e),this.prevDropTarget=this.dropTarget)},i.prototype.drop=function(){if(this.allowDropHere){var t=this.draggedElement.parent,e=this.doDrop();this.onDragEnd.fire(this,{fromElement:t,draggedElement:e,toElement:this.dropTarget})}},i.prototype.clear=function(){this.dropTarget=null,this.prevDropTarget=null,this.draggedElement=null,this.isBottom=null,this.parentElement=null,this.onDragClear.fire(this,{})},i}(),$u=function(){var i=function(t,e){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(n[o]=r[o])},i(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");i(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),Ju=function(i){$u(t,i);function t(){var e=i!==null&&i.apply(this,arguments)||this;return e.fromIndex=null,e.toIndex=null,e.doDrop=function(){return e.parentElement.moveRowByIndex(e.fromIndex,e.toIndex),e.parentElement},e}return Object.defineProperty(t.prototype,"draggedElementType",{get:function(){return"matrix-row"},enumerable:!1,configurable:!0}),t.prototype.onStartDrag=function(){var e=I.getBody();e&&(this.restoreUserSelectValue=e.style.userSelect,e.style.userSelect="none")},Object.defineProperty(t.prototype,"shortcutClass",{get:function(){return new O().append(this.parentElement.cssClasses.draggedRow).toString()},enumerable:!1,configurable:!0}),t.prototype.createDraggedElementShortcut=function(e,n,r){var o=this,s=I.createElement("div");if(s){s.className=this.shortcutClass;var a=!0;if(n){var l=n.closest("[data-sv-drop-target-matrix-row]"),u=l.cloneNode(a);u.style.cssText=` + width: `+l.offsetWidth+`px; + `,u.classList.remove("sv-matrix__drag-drop--moveup"),u.classList.remove("sv-matrix__drag-drop--movedown"),this.draggedElement.isDragDropMoveDown=!1,this.draggedElement.isDragDropMoveUp=!1,s.appendChild(u);var d=n.getBoundingClientRect();s.shortcutXOffset=r.clientX-d.x,s.shortcutYOffset=r.clientY-d.y}var v=this.parentElement.renderedTable.rows;return v.forEach(function(V,T){V.row===o.draggedElement&&(V.isGhostRow=!0)}),this.fromIndex=this.parentElement.visibleRows.indexOf(this.draggedElement),s}},t.prototype.getDropTargetByDataAttributeValue=function(e){var n=this.parentElement,r;return r=n.renderedTable.rows.filter(function(o){return o.row&&o.row.id===e})[0],r.row},t.prototype.canInsertIntoThisRow=function(e){var n=this.parentElement.lockedRowCount;return n<=0||e.rowIndex>n},t.prototype.isDropTargetValid=function(e,n){return this.canInsertIntoThisRow(e)},t.prototype.calculateIsBottom=function(e){var n=this.parentElement.renderedTable.rows,r=n.map(function(o){return o.row});return r.indexOf(this.dropTarget)-r.indexOf(this.draggedElement)>0},t.prototype.afterDragOver=function(e){var n=this;if(!this.isDropTargetDoesntChanged(this.isBottom)){var r,o,s,a=this.parentElement.renderedTable.rows;a.forEach(function(l,u){l.row===n.dropTarget&&(r=u),l.row===n.draggedElement&&(s=l,o=u,s.isGhostRow=!0)}),a.splice(o,1),a.splice(r,0,s),this.toIndex=this.parentElement.visibleRows.indexOf(this.dropTarget),i.prototype.ghostPositionChanged.call(this)}},t.prototype.clear=function(){var e=this.parentElement.renderedTable.rows;e.forEach(function(r){r.isGhostRow=!1}),this.parentElement.clearOnDrop(),this.fromIndex=null,this.toIndex=null;var n=I.getBody();n&&(n.style.userSelect=this.restoreUserSelectValue||"initial"),i.prototype.clear.call(this)},t}(Sr),Tr=function(){function i(t){var e=this;this.dragHandler=t,this.onPointerUp=function(n){e.clearListeners()},this.tryToStartDrag=function(n){if(e.currentX=n.pageX,e.currentY=n.pageY,!e.isMicroMovement)return e.clearListeners(),e.dragHandler(e.pointerDownEvent,e.currentTarget,e.itemModel),!0}}return i.prototype.onPointerDown=function(t,e){if(ne){this.dragHandler(t,t.currentTarget,e);return}this.pointerDownEvent=t,this.currentTarget=t.currentTarget,this.startX=t.pageX,this.startY=t.pageY,I.addEventListener("pointermove",this.tryToStartDrag),this.currentTarget.addEventListener("pointerup",this.onPointerUp),this.itemModel=e},Object.defineProperty(i.prototype,"isMicroMovement",{get:function(){var t=10,e=Math.abs(this.currentX-this.startX),n=Math.abs(this.currentY-this.startY);return e<t&&n<t},enumerable:!1,configurable:!0}),i.prototype.clearListeners=function(){this.pointerDownEvent&&(I.removeEventListener("pointermove",this.tryToStartDrag),this.currentTarget.removeEventListener("pointerup",this.onPointerUp))},i}(),Rr=function(){var i=function(t,e){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(n[o]=r[o])},i(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");i(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),Wo=function(i){Rr(t,i);function t(e,n,r){var o=i.call(this,n,r)||this;return o.index=e,o.buildCells(r),o}return t.prototype.getRowIndex=function(){var e=i.prototype.getRowIndex.call(this);return e>0?e:this.index+1},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,n=e.visibleRows.indexOf(this)+1,r=this.cells.length>1?this.cells[1].questionValue:void 0,o=this.cells.length>0?this.cells[0].questionValue:void 0;return r&&r.value||o&&o.value||""+n},enumerable:!1,configurable:!0}),t}(_e),Er=function(i){Rr(t,i);function t(e){var n=i.call(this,e)||this;n.rowCounter=0,n.setRowCountValueFromData=!1,n.startDragMatrixRow=function(o,s){n.dragDropMatrixRows.startDrag(o,n.draggedRow,n,o.target)},n.initialRowCount=n.getDefaultPropertyValue("rowCount"),n.createLocalizableString("confirmDeleteText",n,!1,"confirmDelete");var r=n.createLocalizableString("addRowText",n);return r.onGetTextCallback=function(o){return o||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.resetRenderedTable()}),n.registerPropertyChangedHandlers(["minRowCount"],function(){n.onMinRowCountChanged()}),n.registerPropertyChangedHandlers(["maxRowCount"],function(){n.onMaxRowCountChanged()}),n.dragOrClickHelper=new Tr(n.startDragMatrixRow),n}return t.prototype.setSurveyImpl=function(e,n){i.prototype.setSurveyImpl.call(this,e,n),this.dragDropMatrixRows=new Ju(this.survey,null,!0)},t.prototype.isBanStartDrag=function(e){var n=e.target;return n.getAttribute("contenteditable")==="true"||n.nodeName==="INPUT"||!this.isDragHandleAreaValid(n)},t.prototype.isDragHandleAreaValid=function(e){return this.survey.matrixDragHandleArea==="icon"?e.classList.contains(this.cssClasses.dragElementDecorator):!0},t.prototype.onPointerDown=function(e,n){!n||!this.isRowsDragAndDrop||this.isDesignMode||this.isBanStartDrag(e)||n.isDetailPanelShowing||(this.draggedRow=n,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 i.prototype.isDefaultValueEmpty.call(this)&&this.isValueEmpty(this.defaultRowValue)},t.prototype.valueFromData=function(e){if(this.minRowCount<1||this.isEmpty())return i.prototype.valueFromData.call(this,e);Array.isArray(e)||(e=[]);for(var n=e.length;n<this.minRowCount;n++)e.push({});return e},t.prototype.isNewValueCorrect=function(e){return Array.isArray(e)},t.prototype.setDefaultValue=function(){if(this.isValueEmpty(this.defaultRowValue)||!this.isValueEmpty(this.defaultValue)){i.prototype.setDefaultValue.call(this);return}if(!(!this.isEmpty()||this.rowCount==0)){for(var e=[],n=0;n<this.rowCount;n++)e.push(this.defaultRowValue);this.value=e}},t.prototype.moveRowByIndex=function(e,n){var r=this.createNewValue();if(!(!Array.isArray(r)&&Math.max(e,n)>=r.length)){var o=r[e];r.splice(e,1),r.splice(n,0,o),this.value=r}},t.prototype.clearOnDrop=function(){this.isEditingSurveyElement||this.resetRenderedTable()},t.prototype.initDataUI=function(){this.generatedVisibleRows||this.getVisibleRows()},Object.defineProperty(t.prototype,"rowCount",{get:function(){return this.rowCountValue},set:function(e){if(e=P.getNumber(e),!(e<0||e>b.matrix.maxRowCount)){this.setRowCountValueFromData=!1;var n=this.rowCountValue;if(this.rowCountValue=e,this.value&&this.value.length>e){var r=this.value;r.splice(e),this.value=r}if(this.isUpdateLocked){this.initialRowCount=e;return}if(this.generatedVisibleRows||n==0){this.generatedVisibleRows||(this.clearGeneratedRows(),this.generatedVisibleRows=[]),this.generatedVisibleRows.splice(e);for(var o=n;o<e;o++){var s=this.createMatrixRow(this.getValueForNewRow());this.generatedVisibleRows.push(s),this.onMatrixRowCreated(s)}this.runCondition(this.getDataFilteredValues(),this.getDataFilteredProperties())}this.onRowsChanged()}},enumerable:!1,configurable:!0}),t.prototype.updateBindingProp=function(e,n){i.prototype.updateBindingProp.call(this,e,n);var r=this.generatedVisibleRows;if(!(e!=="rowCount"||!Array.isArray(r))){var o=this.getUnbindValue(this.value)||[];if(o.length<r.length){for(var s=!1,a=o.length;a<r.length;a++)s||(s=!r[a].isEmpty),o.push(r[a].value||{});s&&(this.value=o)}}},t.prototype.updateProgressInfoByValues=function(e){var n=this.value;Array.isArray(n)||(n=[]);for(var r=0;r<this.rowCount;r++){var o=r<n.length?n[r]:{};this.updateProgressInfoByRow(e,o)}},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 Gu(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)},enumerable:!1,configurable:!0}),t.prototype.onMinRowCountChanged=function(){var e=this.minRowCount;e>this.maxRowCount&&(this.maxRowCount=e),this.initialRowCount<e&&(this.initialRowCount=e),this.rowCount<e&&(this.rowCount=e)},Object.defineProperty(t.prototype,"maxRowCount",{get:function(){return this.getPropertyValue("maxRowCount")},set:function(e){e<=0||(e>b.matrix.maxRowCount&&(e=b.matrix.maxRowCount),e!=this.maxRowCount&&this.setPropertyValue("maxRowCount",e))},enumerable:!1,configurable:!0}),t.prototype.onMaxRowCountChanged=function(){var e=this.maxRowCount;e<this.minRowCount&&(this.minRowCount=e),this.rowCount>e&&(this.rowCount=e)},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 n=e.rowIndex-1;return this.lockedRowCount>0&&n<this.lockedRowCount?!1:this.survey.matrixAllowRemoveRow(this,n,e)},t.prototype.addRowUI=function(){this.addRow(!0)},t.prototype.getQuestionToFocusOnAddingRow=function(){if(this.visibleRows.length===0)return null;for(var e=this.visibleRows[this.visibleRows.length-1],n=0;n<e.cells.length;n++){var r=e.cells[n].question;if(r&&r.isVisible&&!r.isReadOnly)return r}return null},t.prototype.addRow=function(e){var n=this.rowCount,r=this.canAddRow,o={question:this,canAddRow:r,allow:r};this.survey&&this.survey.matrixBeforeRowAdded(o);var s=r!==o.allow?o.allow:r!==o.canAddRow?o.canAddRow:r;if(s&&(this.onStartRowAddingRemoving(),this.addRowCore(),this.onEndRowAdding(),this.detailPanelShowOnAdding&&this.visibleRows.length>0&&this.visibleRows[this.visibleRows.length-1].showDetailPanel(),e&&n!==this.rowCount)){var a=this.getQuestionToFocusOnAddingRow();a&&a.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,i.prototype.unbindValue.call(this)},t.prototype.isValueSurveyElement=function(e){return this.isEditingSurveyElement||i.prototype.isValueSurveyElement.call(this,e)},t.prototype.addRowCore=function(){var e=this.rowCount;this.rowCount=this.rowCount+1;var n=this.getDefaultRowValue(!0),r=null;if(this.isValueEmpty(n)||(r=this.createNewValue(),r.length==this.rowCount&&(r[r.length-1]=n,this.value=r)),this.data){this.runCellsCondition(this.getDataFilteredValues(),this.getDataFilteredProperties());var o=this.visibleRows;if(this.isValueEmpty(n)&&o.length>0){var s=o[o.length-1];this.isValueEmpty(s.value)||(r||(r=this.createNewValue()),!this.isValueSurveyElement(r)&&!this.isTwoValueEquals(r[r.length-1],s.value)&&(r[r.length-1]=s.value,this.value=r))}}if(this.survey){var o=this.visibleRows;if(e+1==this.rowCount&&o.length>0){var s=o[o.length-1];this.survey.matrixRowAdded(this,s),this.onRowsChanged()}}},t.prototype.getDefaultRowValue=function(e){for(var n=null,r=0;r<this.columns.length;r++){var o=this.columns[r].templateQuestion;o&&!this.isValueEmpty(o.getDefaultValue())&&(n=n||{},n[this.columns[r].name]=o.getDefaultValue())}if(!this.isValueEmpty(this.defaultRowValue))for(var s in this.defaultRowValue)n=n||{},n[s]=this.defaultRowValue[s];if(e&&this.defaultValueFromLastRow){var a=this.value;if(a&&Array.isArray(a)&&a.length>=this.rowCount-1){var l=a[this.rowCount-2];for(var s in l)n=n||{},n[s]=l[s]}}return n},t.prototype.focusAddBUtton=function(){var e=this.getRootElement();if(e&&this.cssClasses.buttonAdd){var n=e.querySelectorAll("."+this.cssClasses.buttonAdd)[0];n&&n.focus()}},t.prototype.getActionCellIndex=function(e){var n=this.showHeader?1:0;return this.isColumnLayoutHorizontal?e.cells.length-1+n:this.visibleRows.indexOf(e)+n},t.prototype.removeRowUI=function(e){var n=this;if(e&&e.rowName){var r=this.visibleRows.indexOf(e);if(r<0)return;e=r}this.removeRow(e,void 0,function(){var o=n.visibleRows.length,s=r>=o?o-1:r,a=s>-1?n.visibleRows[s]:void 0;setTimeout(function(){a?n.renderedTable.focusActionCell(a,n.getActionCellIndex(a)):n.focusAddBUtton()},10)})},t.prototype.isRequireConfirmOnRowDelete=function(e){if(!this.confirmDelete||e<0||e>=this.rowCount)return!1;var n=this.createNewValue();return this.isValueEmpty(n)||!Array.isArray(n)||e>=n.length?!1:!this.isValueEmpty(n[e])},t.prototype.removeRow=function(e,n,r){var o=this;if(this.canRemoveRows&&!(e<0||e>=this.rowCount)){var s=this.visibleRows&&e<this.visibleRows.length?this.visibleRows[e]:null;if(n===void 0&&(n=this.isRequireConfirmOnRowDelete(e)),n){At({message:this.confirmDeleteText,funcOnYes:function(){o.removeRowAsync(e,s),r&&r()},locale:this.getLocale(),rootElement:this.survey.rootElement,cssClass:this.cssClasses.confirmDialog});return}this.removeRowAsync(e,s),r&&r()}},t.prototype.removeRowAsync=function(e,n){n&&this.survey&&!this.survey.matrixRowRemoving(this,e,n)||(this.onStartRowAddingRemoving(),this.removeRowCore(e),this.onEndRowRemoving(n))},t.prototype.removeRowCore=function(e){var n=this.generatedVisibleRows?this.generatedVisibleRows[e]:null;if(this.generatedVisibleRows&&e<this.generatedVisibleRows.length&&this.generatedVisibleRows.splice(e,1),this.rowCountValue--,this.value){var r=[];Array.isArray(this.value)&&e<this.value.length?r=this.createValueCopy():r=this.createNewValue(),r.splice(e,1),r=this.deleteRowValue(r,null),this.isRowChanging=!0,this.value=r,this.isRowChanging=!1}this.onRowsChanged(),this.survey&&this.survey.matrixRowRemoved(this,e,n)},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,n){if(!n||!Array.isArray(n))return n;for(var r=this.getUnbindValue(n),o=this.visibleRows,s=0;s<o.length&&s<r.length;s++){var a=r[s];a&&(r[s]=this.getRowDisplayValue(e,o[s],a))}return r},t.prototype.getConditionObjectRowName=function(e){return"["+e.toString()+"]"},t.prototype.getConditionObjectsRowIndeces=function(){for(var e=[],n=Math.max(this.rowCount,1),r=0;r<Math.min(b.matrix.maxRowCountInCondition,n);r++)e.push(r);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(e,n,r){i.prototype.onCheckForErrors.call(this,e,n,r),!n&&this.hasErrorInMinRows()&&e.push(new Su(this.minRowCount,this))},t.prototype.hasErrorInMinRows=function(){if(this.minRowCount<=0||!this.isRequired||!this.generatedVisibleRows)return!1;for(var e=0,n=0;n<this.generatedVisibleRows.length;n++){var r=this.generatedVisibleRows[n];r.isEmpty||e++}return e<this.minRowCount},t.prototype.getUniqueColumnsNames=function(){var e=i.prototype.getUniqueColumnsNames.call(this),n=this.keyName;return n&&e.indexOf(n)<0&&e.push(n),e},t.prototype.generateRows=function(){var e=new Array;if(this.rowCount===0)return e;for(var n=this.createNewValue(),r=0;r<this.rowCount;r++)e.push(this.createMatrixRow(this.getRowValueByIndex(n,r)));return this.isValueEmpty(this.getDefaultRowValue(!1))||(this.value=n),e},t.prototype.createMatrixRow=function(e){return new Wo(this.rowCounter++,this,e)},t.prototype.getInsertedDeletedIndex=function(e,n){for(var r=Math.min(e.length,n.length),o=0;o<r;o++)if(n[o]!==e[o].editingObj)return o;return r},t.prototype.isEditingObjectValueChanged=function(){var e=this.value;if(!this.generatedVisibleRows||!this.isValueSurveyElement(e))return!1;var n=this.lastDeletedRow;this.lastDeletedRow=void 0;var r=this.generatedVisibleRows;if(!Array.isArray(e)||Math.abs(r.length-e.length)>1||r.length===e.length)return!1;var o=this.getInsertedDeletedIndex(r,e);if(r.length>e.length){this.lastDeletedRow=r[o];var s=r[o];r.splice(o,1),this.isRendredTableCreated&&this.renderedTable.onRemovedRow(s)}else{var a=void 0;n&&n.editingObj===e[o]?a=n:(n=void 0,a=this.createMatrixRow(e[o])),r.splice(o,0,a),n||this.onMatrixRowCreated(a),this.isRendredTableCreated&&this.renderedTable.onAddedRow(a,o)}return this.setPropertyValueDirectly("rowCount",e.length),!0},t.prototype.updateValueFromSurvey=function(e,n){if(n===void 0&&(n=!1),this.setRowCountValueFromData=!0,this.minRowCount>0&&P.isValueEmpty(e)&&!P.isValueEmpty(this.defaultRowValue)){e=[];for(var r=0;r<this.minRowCount;r++)e.push(P.createCopy(this.defaultRowValue))}i.prototype.updateValueFromSurvey.call(this,e,n),this.setRowCountValueFromData=!1},t.prototype.getFilteredDataCore=function(){var e=[],n=this.createValueCopy();if(!Array.isArray(n))return e;for(var r=this.generatedVisibleRows,o=0;o<r.length&&o<n.length;o++){var s=n[o];r[o].isVisible&&!P.isValueEmpty(s)&&e.push(s)}return e},t.prototype.onBeforeValueChanged=function(e){if(!(!e||!Array.isArray(e))){var n=e.length;if(n!=this.rowCount&&!(!this.setRowCountValueFromData&&n<this.initialRowCount)&&!this.isEditingObjectValueChanged()&&(this.setRowCountValueFromData=!0,this.rowCountValue=n,!!this.generatedVisibleRows)){if(n==this.generatedVisibleRows.length+1){this.onStartRowAddingRemoving();var r=this.getRowValueByIndex(e,n-1),o=this.createMatrixRow(r);this.generatedVisibleRows.push(o),this.onMatrixRowCreated(o),this.onEndRowAdding()}else this.clearGeneratedRows(),this.getVisibleRows(),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 n=this.getDefaultRowValue(!1);n=n||{};for(var r=e.length;r<this.rowCount;r++)e.push(this.getUnbindValue(n));return e},t.prototype.deleteRowValue=function(e,n){if(!Array.isArray(e))return e;for(var r=!0,o=0;o<e.length;o++)if(this.isObject(e[o])&&Object.keys(e[o]).length>0){r=!1;break}return r?null:e},t.prototype.getRowValueByIndex=function(e,n){return Array.isArray(e)&&n>=0&&n<e.length?e[n]:null},t.prototype.getRowValueCore=function(e,n,r){if(r===void 0&&(r=!1),!this.generatedVisibleRows)return{};var o=this.getRowValueByIndex(n,this.generatedVisibleRows.indexOf(e));return!o&&r&&(o={}),o},t.prototype.getAddRowButtonCss=function(e){return e===void 0&&(e=!1),new O().append(this.cssClasses.button).append(this.cssClasses.buttonAdd).append(this.cssClasses.emptyRowsButton,e).toString()},t.prototype.getRemoveRowButtonCss=function(){return new O().append(this.cssClasses.button).append(this.cssClasses.buttonRemove).toString()},t.prototype.getRootCss=function(){var e;return new O().append(i.prototype.getRootCss.call(this)).append(this.cssClasses.empty,!(!((e=this.renderedTable)===null||e===void 0)&&e.showTable)).toString()},t}(bt),Gu=function(i){Rr(t,i);function t(){return i!==null&&i.apply(this,arguments)||this}return t.prototype.setDefaultRowActions=function(e,n){i.prototype.setDefaultRowActions.call(this,e,n)},t}(Vr);x.addClass("matrixdynamic",[{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:b.matrix.maxRowCount},{name:"keyName"},"defaultRowValue:rowvalue","defaultValueFromLastRow:boolean",{name:"confirmDelete:boolean"},{name:"confirmDeleteText",dependsOn:"confirmDelete",visibleIf:function(i){return!i||i.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(i){return!i||i.hideColumnsIfEmpty}},{name:"detailPanelShowOnAdding:boolean",dependsOn:"detailPanelMode",visibleIf:function(i){return i.detailPanelMode!=="none"}},"allowRowsDragAndDrop:switch"],function(){return new Er("")},"matrixdropdownbase"),J.Instance.registerQuestion("matrixdynamic",function(i){var t=new Er(i);return t.choices=[1,2,3,4,5],bt.addDefaultColumns(t),t});var se={currentType:"",getCss:function(){var i=this.currentType?this[this.currentType]:yn;return i||(i=yn),i},getAvailableThemes:function(){return Object.keys(this).filter(function(i){return["currentType","getCss","getAvailableThemes"].indexOf(i)===-1})}},yn={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:{contentEnter:"sd-element__content--enter",contentLeave:"sd-element__content--leave",enter:"sd-element-wrapper--enter",leave:"sd-element-wrapper--leave",asPage:"sd-panel--as-page",number:"sd-element__num",title:"sd-title sd-element__title sd-panel__title",titleExpandable:"sd-element__title--expandable",titleExpandableSvg:"sd-element__title-expandable-svg",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",panelWrapperEnter:"sd-paneldynamic__panel-wrapper--enter",panelWrapperLeave:"sd-paneldynamic__panel-wrapper--leave",panelWrapperList:"sd-paneldynamic__panel-wrapper--list",progressBtnIcon:"icon-progressbuttonv2",noEntriesPlaceholder:"sd-paneldynamic__placeholder sd-question__placeholder",compact:"sd-element--with-frame sd-element--compact",tabsContainer:"sd-paneldynamic__tabs-container",tabsContainerWithHeader:"sd-paneldynamic__tabs-container--with-header",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",number:"sd-page__num",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",rowEnter:"sd-row--enter",rowDelayedEnter:"sd-row--delayed-enter",rowLeave:"sd-row--leave",rowReplace:"sd-row--replace",pageRow:"sd-page__row",question:{contentEnter:"sd-element__content--enter",contentLeave:"sd-element__content--leave",enter:"sd-element-wrapper--enter",leave:"sd-element-wrapper--leave",mobile:"sd-question--mobile",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",titleExpandableSvg:"sd-element__title-expandable-svg",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-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",confirmDialog:"sd-popup--confirm sv-popup--confirm"},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",itemEnter:"sd-item--enter",itemLeave:"sd-item--leave",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-check-16x16",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-check-16x16",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:"",itemEnter:"sd-item--enter",itemLeave:"sd-item--leave",itemDisabled:"sd-item--disabled sd-radio--disabled",itemReadOnly:"sd-item--readonly sd-radio--readonly",itemPreview:"sd-item--preview sd-radio--preview",itemPreviewSvgIconId:"#icon-check-16x16",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-check-16x16",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-check-16x16"},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",itemEnter:"sd-item--enter",itemLeave:"sd-item--leave",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-cancel",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-check-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-check-16x16",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",rowDelayedEnter:"sd-table__row--delayed-enter",rowEnter:"sd-table__row--enter",rowLeave:"sd-table__row--leave",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-matrix__question-wrapper 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",rowDelayedEnter:"sd-table__row--delayed-enter",rowEnter:"sd-table__row--enter",rowLeave:"sd-table__row--leave",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-drag-24x24",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",draggedRow:"sv-matrixdynamic-dragged-row",emptyCell:"sd-table__cell--empty",verticalCell:"sd-table__cell--vertical",cellQuestionWrapper:"sd-matrix__question-wrapper 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",page:"sd-file__page"},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",rootSelectToRankSwapAreas:"sv-ranking--select-to-rank-swap-areas",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",itemHovered:"sv-list__item--hovered sd-list__item--hovered"},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-check-16x16",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",itemEnter:"sd-item--enter",itemLeave:"sd-item--leave",cleanButton:"sd-tagbox_clean-button sd-dropdown_clean-button",cleanButtonSvg:"sd-tagbox_clean-button-svg sd-dropdown_clean-button-svg",cleanButtonIconId:"icon-cancel-24x24",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"}},$o="defaultV2";se[$o]=yn;var Ku="surveyjs.io",Yu=65536,Jo=function(){function i(){}return Object.defineProperty(i,"serviceUrl",{get:function(){return b.web.surveyServiceUrl},set:function(t){b.web.surveyServiceUrl=t},enumerable:!1,configurable:!0}),i.prototype.loadSurvey=function(t,e){var n=new XMLHttpRequest;n.open("GET",this.serviceUrl+"/getSurvey?surveyId="+t),n.setRequestHeader("Content-Type","application/x-www-form-urlencoded"),n.onload=function(){var r=JSON.parse(n.response);e(n.status==200,r,n.response)},n.send()},i.prototype.getSurveyJsonAndIsCompleted=function(t,e,n){var r=new XMLHttpRequest;r.open("GET",this.serviceUrl+"/getSurveyAndIsCompleted?surveyId="+t+"&clientId="+e),r.setRequestHeader("Content-Type","application/x-www-form-urlencoded"),r.onload=function(){var o=JSON.parse(r.response),s=o?o.survey:null,a=o?o.isCompleted:null;n(r.status==200,s,a,r.response)},r.send()},i.prototype.canSendResult=function(t){if(!this.isSurveJSIOService)return!0;var e=JSON.stringify(t);return e.length<Yu},Object.defineProperty(i.prototype,"isSurveJSIOService",{get:function(){return this.serviceUrl.indexOf(Ku)>=0},enumerable:!1,configurable:!0}),i.prototype.sendResult=function(t,e,n,r,o){r===void 0&&(r=null),o===void 0&&(o=!1),this.canSendResult(e)?this.sendResultCore(t,e,n,r,o):n(!1,oe("savingExceedSize",this.locale),void 0)},i.prototype.sendResultCore=function(t,e,n,r,o){r===void 0&&(r=null),o===void 0&&(o=!1);var s=new XMLHttpRequest;s.open("POST",this.serviceUrl+"/post/"),s.setRequestHeader("Content-Type","application/json; charset=utf-8");var a={postId:t,surveyResult:JSON.stringify(e)};r&&(a.clientId=r),o&&(a.isPartialCompleted=!0);var l=JSON.stringify(a);s.onload=s.onerror=function(){n&&n(s.status===200,s.response,s)},s.send(l)},i.prototype.sendFile=function(t,e,n){var r=new XMLHttpRequest;r.onload=r.onerror=function(){n&&n(r.status==200,JSON.parse(r.response))},r.open("POST",this.serviceUrl+"/upload/",!0);var o=new FormData;o.append("file",e),o.append("postId",t),r.send(o)},i.prototype.getResult=function(t,e,n){var r=new XMLHttpRequest,o="resultId="+t+"&name="+e;r.open("GET",this.serviceUrl+"/getResult?"+o),r.setRequestHeader("Content-Type","application/x-www-form-urlencoded"),r.onload=function(){var s=null,a=null;if(r.status==200){s=JSON.parse(r.response),a=[];for(var l in s.QuestionResult){var u={name:l,value:s.QuestionResult[l]};a.push(u)}}n(r.status==200,s,a,r.response)},r.send()},i.prototype.isCompleted=function(t,e,n){var r=new XMLHttpRequest,o="resultId="+t+"&clientId="+e;r.open("GET",this.serviceUrl+"/isCompleted?"+o),r.setRequestHeader("Content-Type","application/x-www-form-urlencoded"),r.onload=function(){var s=null;r.status==200&&(s=JSON.parse(r.response)),n(r.status==200,s,r.response)},r.send()},Object.defineProperty(i.prototype,"serviceUrl",{get:function(){return i.serviceUrl||""},enumerable:!1,configurable:!0}),i}(),He={setTimeout:function(i){return He.safeTimeOut(i,1e3)},clearTimeout:function(i){clearTimeout(i)},safeTimeOut:function(i,t){return t<=0?(i(),0):setTimeout(i,t)},now:function(){return Date.now()}},Ir=function(){function i(){this.listenerCounter=0,this.timerId=-1,this.onTimerTick=new Ve,this.onTimer=this.onTimerTick}return Object.defineProperty(i,"instance",{get:function(){return i.instanceValue||(i.instanceValue=new i),i.instanceValue},enumerable:!1,configurable:!0}),i.prototype.start=function(t){var e=this;t===void 0&&(t=null),t&&this.onTimerTick.add(t),this.prevTimeInMs=He.now(),this.timerId<0&&(this.timerId=He.setTimeout(function(){e.doTimer()})),this.listenerCounter++},i.prototype.stop=function(t){t===void 0&&(t=null),t&&this.onTimerTick.remove(t),this.listenerCounter--,this.listenerCounter==0&&this.timerId>-1&&(He.clearTimeout(this.timerId),this.timerId=-1)},i.prototype.doTimer=function(){var t=this;if((this.onTimerTick.isEmpty||this.listenerCounter==0)&&(this.timerId=-1),!(this.timerId<0)){var e=He.now(),n=Math.floor((e-this.prevTimeInMs)/1e3);this.prevTimeInMs=e,n<0&&(n=1);var r=this.timerId;this.onTimerTick.fire(this,{seconds:n}),r===this.timerId&&(this.timerId=He.setTimeout(function(){t.doTimer()}))}},i.instanceValue=null,i}(),Xu=function(){var i=function(t,e){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(n[o]=r[o])},i(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");i(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),Ft=function(i,t,e,n){var r=arguments.length,o=r<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,e):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(i,t,e,n);else for(var a=i.length-1;a>=0;a--)(s=i[a])&&(o=(r<3?s(o):r>3?s(t,e,o):s(t,e))||o);return r>3&&o&&Object.defineProperty(t,e,o),o},Go=function(i){Xu(t,i);function t(e){var n=i.call(this)||this;return n.timerFunc=null,n.surveyValue=e,n.onCreating(),n}return 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(n,r){e.doTimer(r.seconds)},this.setIsRunning(!0),this.update(),Ir.instance.start(this.timerFunc)))},t.prototype.stop=function(){this.isRunning&&(this.setIsRunning(!1),Ir.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(e){var n=this.survey.currentPage;if(n){var r=n.getMaxTimeToFinish();r>0&&r<n.timeSpent+e&&(e=r-n.timeSpent),n.timeSpent=n.timeSpent+e}this.spent=this.spent+e,this.update(),this.onTimerTick&&this.onTimerTick(n)},t.prototype.updateProgress=function(){var e=this,n=this.survey.timerInfo,r=n.spent,o=n.limit;o?(r==0?(this.progress=0,setTimeout(function(){e.progress=Math.floor((r+1)/o*100)/100},0)):r<=o&&(this.progress=Math.floor((r+1)/o*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 this.progress!==void 0},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 O().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 O().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}),Ft([h()],t.prototype,"text",void 0),Ft([h()],t.prototype,"progress",void 0),Ft([h()],t.prototype,"clockMajorText",void 0),Ft([h()],t.prototype,"clockMinorText",void 0),Ft([h({defaultValue:0})],t.prototype,"spent",void 0),t}(z),Zu=function(){var i=function(t,e){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(n[o]=r[o])},i(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");i(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),mn=function(i,t,e,n){var r=arguments.length,o=r<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,e):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(i,t,e,n);else for(var a=i.length-1;a>=0;a--)(s=i[a])&&(o=(r<3?s(o):r>3?s(t,e,o):s(t,e))||o);return r>3&&o&&Object.defineProperty(t,e,o),o},Ko=function(i){Zu(t,i);function t(e){var n=i.call(this)||this;return n.cssClasses=e,n.timeout=b.notifications.lifetime,n.timer=void 0,n.actionsVisibility={},n.showActions=!0,n.actionBar=new Ee,n.actionBar.updateCallback=function(r){n.actionBar.actions.forEach(function(o){return o.cssClasses={}})},n.css=n.cssClasses.root,n}return t.prototype.getCssClass=function(e){return new O().append(this.cssClasses.root).append(this.cssClasses.rootWithButtons,this.actionBar.visibleActions.length>0).append(this.cssClasses.info,e!=="error"&&e!=="success").append(this.cssClasses.error,e==="error").append(this.cssClasses.success,e==="success").append(this.cssClasses.shown,this.active).toString()},t.prototype.updateActionsVisibility=function(e){var n=this;this.actionBar.actions.forEach(function(r){return r.visible=n.showActions&&n.actionsVisibility[r.id]===e})},t.prototype.notify=function(e,n,r){var o=this;n===void 0&&(n="info"),r===void 0&&(r=!1),this.isDisplayed=!0,setTimeout(function(){o.updateActionsVisibility(n),o.message=e,o.active=!0,o.css=o.getCssClass(n),o.timer&&(clearTimeout(o.timer),o.timer=void 0),r||(o.timer=setTimeout(function(){o.timer=void 0,o.active=!1,o.css=o.getCssClass(n)},o.timeout))},1)},t.prototype.addAction=function(e,n){e.visible=!1,e.innerCss=this.cssClasses.button;var r=this.actionBar.addAction(e);this.actionsVisibility[r.id]=n},mn([h({defaultValue:!1})],t.prototype,"active",void 0),mn([h({defaultValue:!1})],t.prototype,"isDisplayed",void 0),mn([h()],t.prototype,"message",void 0),mn([h()],t.prototype,"css",void 0),t}(z),ec=function(){var i=function(t,e){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(n[o]=r[o])},i(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");i(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),X=function(i,t,e,n){var r=arguments.length,o=r<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,e):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(i,t,e,n);else for(var a=i.length-1;a>=0;a--)(s=i[a])&&(o=(r<3?s(o):r>3?s(t,e,o):s(t,e))||o);return r>3&&o&&Object.defineProperty(t,e,o),o},Yo=function(){function i(t,e,n){this.cover=t,this.positionX=e,this.positionY=n}return i.prototype.calcRow=function(t){return t==="top"?1:t==="middle"?2:3},i.prototype.calcColumn=function(t){return t==="left"?1:t==="center"?2:3},i.prototype.calcAlignItems=function(t){return t==="left"?"flex-start":t==="center"?"center":"flex-end"},i.prototype.calcAlignText=function(t){return t==="left"?"start":t==="center"?"center":"end"},i.prototype.calcJustifyContent=function(t){return t==="top"?"flex-start":t==="middle"?"center":"flex-end"},Object.defineProperty(i.prototype,"survey",{get:function(){return this.cover.survey},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"css",{get:function(){var t=i.CLASSNAME+" "+i.CLASSNAME+"--"+this.positionX+" "+i.CLASSNAME+"--"+this.positionY;return t},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"style",{get:function(){var t={};return t.gridColumn=this.calcColumn(this.positionX),t.gridRow=this.calcRow(this.positionY),t},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"contentStyle",{get:function(){var t={};return t.textAlign=this.calcAlignText(this.positionX),t.alignItems=this.calcAlignItems(this.positionX),t.justifyContent=this.calcJustifyContent(this.positionY),t},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"showLogo",{get:function(){return this.survey.hasLogo&&this.positionX===this.cover.logoPositionX&&this.positionY===this.cover.logoPositionY},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"showTitle",{get:function(){return this.survey.hasTitle&&this.positionX===this.cover.titlePositionX&&this.positionY===this.cover.titlePositionY},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"showDescription",{get:function(){return this.survey.renderedHasDescription&&this.positionX===this.cover.descriptionPositionX&&this.positionY===this.cover.descriptionPositionY},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"textAreaWidth",{get:function(){return this.cover.textAreaWidth?""+this.cover.textAreaWidth+"px":""},enumerable:!1,configurable:!0}),i.CLASSNAME="sv-header__cell",i}(),vn=function(i){ec(t,i);function t(){var e=i.call(this)||this;return e.cells=[],["top","middle","bottom"].forEach(function(n){return["left","center","right"].forEach(function(r){return e.cells.push(new Yo(e,r,n))})}),e.init(),e}return t.prototype.calcBackgroundSize=function(e){return e==="fill"?"100% 100%":e==="tile"?"auto":e},t.prototype.updateHeaderClasses=function(){this.headerClasses=new O().append("sv-header").append("sv-header__without-background",this.backgroundColor==="transparent"&&!this.backgroundImage).append("sv-header__background-color--none",this.backgroundColor==="transparent"&&!this.titleColor&&!this.descriptionColor).append("sv-header__background-color--accent",!this.backgroundColor&&!this.titleColor&&!this.descriptionColor).append("sv-header__background-color--custom",!!this.backgroundColor&&this.backgroundColor!=="transparent"&&!this.titleColor&&!this.descriptionColor).append("sv-header__overlap",this.overlapEnabled).toString()},t.prototype.updateContentClasses=function(){var e=!!this.survey&&this.survey.calculateWidthMode();this.maxWidth=this.inheritWidthFrom==="survey"&&!!e&&e==="static"&&this.survey.renderedWidth,this.contentClasses=new O().append("sv-header__content").append("sv-header__content--static",this.inheritWidthFrom==="survey"&&!!e&&e==="static").append("sv-header__content--responsive",this.inheritWidthFrom==="container"||!!e&&e==="responsive").toString()},t.prototype.updateBackgroundImageClasses=function(){this.backgroundImageClasses=new O().append("sv-header__background-image").append("sv-header__background-image--contain",this.backgroundImageFit==="contain").append("sv-header__background-image--tile",this.backgroundImageFit==="tile").toString()},t.prototype.fromTheme=function(e){i.prototype.fromJSON.call(this,e.header||{}),e.cssVariables&&(this.backgroundColor=e.cssVariables["--sjs-header-backcolor"],this.titleColor=e.cssVariables["--sjs-font-headertitle-color"],this.descriptionColor=e.cssVariables["--sjs-font-headerdescription-color"]),this.init()},t.prototype.init=function(){this.renderBackgroundImage=tr(this.backgroundImage),this.updateHeaderClasses(),this.updateContentClasses(),this.updateBackgroundImageClasses()},t.prototype.getType=function(){return"cover"},Object.defineProperty(t.prototype,"renderedHeight",{get:function(){if(this.survey&&!this.survey.isMobile||!this.survey)return this.height?Math.max(this.height,this.actualHeight+40)+"px":void 0;if(this.survey&&this.survey.isMobile)return this.mobileHeight?Math.max(this.mobileHeight,this.actualHeight)+"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 n=this;this._survey!==e&&(this._survey=e,e&&(this.updateContentClasses(),this._survey.onPropertyChanged.add(function(r,o){(o.name=="widthMode"||o.name=="width")&&n.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(e,n,r,o,s){i.prototype.propertyValueChanged.call(this,e,n,r),(e==="backgroundColor"||e==="backgroundImage"||e==="overlapEnabled")&&this.updateHeaderClasses(),e==="inheritWidthFrom"&&this.updateContentClasses(),e==="backgroundImageFit"&&this.updateBackgroundImageClasses()},t.prototype.calculateActualHeight=function(e,n,r){var o=["top","middle","bottom"],s=o.indexOf(this.logoPositionY),a=o.indexOf(this.titlePositionY),l=o.indexOf(this.descriptionPositionY),u=["left","center","right"],d=u.indexOf(this.logoPositionX),v=u.indexOf(this.titlePositionX),V=u.indexOf(this.descriptionPositionX),T=[[0,0,0],[0,0,0],[0,0,0]];return T[s][d]=e,T[a][v]+=n,T[l][V]+=r,T.reduce(function(R,N){return R+Math.max.apply(Math,N)},0)},t.prototype.processResponsiveness=function(e){if(this.survey&&this.survey.rootElement)if(this.survey.isMobile){var u=this.survey.rootElement.querySelectorAll(".sv-header > div")[0];this.actualHeight=u?u.getBoundingClientRect().height:0}else{var n=this.survey.rootElement.querySelectorAll(".sv-header__logo")[0],r=this.survey.rootElement.querySelectorAll(".sv-header__title")[0],o=this.survey.rootElement.querySelectorAll(".sv-header__description")[0],s=n?n.getBoundingClientRect().height:0,a=r?r.getBoundingClientRect().height:0,l=o?o.getBoundingClientRect().height:0;this.actualHeight=this.calculateActualHeight(s,a,l)}},Object.defineProperty(t.prototype,"hasBackground",{get:function(){return!!this.backgroundImage||this.backgroundColor!=="transparent"},enumerable:!1,configurable:!0}),X([h({defaultValue:0})],t.prototype,"actualHeight",void 0),X([h()],t.prototype,"height",void 0),X([h()],t.prototype,"mobileHeight",void 0),X([h()],t.prototype,"inheritWidthFrom",void 0),X([h()],t.prototype,"textAreaWidth",void 0),X([h()],t.prototype,"textGlowEnabled",void 0),X([h()],t.prototype,"overlapEnabled",void 0),X([h()],t.prototype,"backgroundColor",void 0),X([h()],t.prototype,"titleColor",void 0),X([h()],t.prototype,"descriptionColor",void 0),X([h({onSet:function(e,n){n.renderBackgroundImage=tr(e)}})],t.prototype,"backgroundImage",void 0),X([h()],t.prototype,"renderBackgroundImage",void 0),X([h()],t.prototype,"backgroundImageFit",void 0),X([h()],t.prototype,"backgroundImageOpacity",void 0),X([h()],t.prototype,"logoPositionX",void 0),X([h()],t.prototype,"logoPositionY",void 0),X([h()],t.prototype,"titlePositionX",void 0),X([h()],t.prototype,"titlePositionY",void 0),X([h()],t.prototype,"descriptionPositionX",void 0),X([h()],t.prototype,"descriptionPositionY",void 0),X([h()],t.prototype,"logoStyle",void 0),X([h()],t.prototype,"titleStyle",void 0),X([h()],t.prototype,"descriptionStyle",void 0),X([h()],t.prototype,"headerClasses",void 0),X([h()],t.prototype,"contentClasses",void 0),X([h()],t.prototype,"maxWidth",void 0),X([h()],t.prototype,"backgroundImageClasses",void 0),t}(z);x.addClass("cover",[{name:"height:number",minValue:0,default:256},{name:"mobileHeight:number",minValue:0,default:0},{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 vn});var tc=function(){var i=function(t,e){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(n[o]=r[o])},i(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");i(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),nc=function(i,t,e,n){var r=arguments.length,o=r<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,e):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(i,t,e,n);else for(var a=i.length-1;a>=0;a--)(s=i[a])&&(o=(r<3?s(o):r>3?s(t,e,o):s(t,e))||o);return r>3&&o&&Object.defineProperty(t,e,o),o},rc=function(){function i(t){this.type=t,this.timestamp=new Date}return i}(),ic=function(i){tc(t,i);function t(){var e=i.call(this)||this;return e.taskList=[],e.onAllTasksCompleted=e.addEvent(),e}return t.prototype.runTask=function(e,n){var r=this,o=new rc(e);return this.taskList.push(o),this.hasActiveTasks=!0,n(function(){return r.taskFinished(o)}),o},t.prototype.waitAndExecute=function(e){if(!this.hasActiveTasks){e();return}this.onAllTasksCompleted.add(function(){e()})},t.prototype.taskFinished=function(e){var n=this.taskList.indexOf(e);n>-1&&this.taskList.splice(n,1),this.hasActiveTasks&&this.taskList.length==0&&(this.hasActiveTasks=!1,this.onAllTasksCompleted.fire(this,{}))},nc([h({defaultValue:!1})],t.prototype,"hasActiveTasks",void 0),t}(z),Xo=function(){function i(t,e,n){n===void 0&&(n=-1),this.source=t,this.target=e,this.nestedPanelDepth=n}return i}(),oc=function(){function i(t){this.panel=t}return i.prototype.dragDropAddTarget=function(t){var e=this.dragDropFindRow(t.target);this.dragDropAddTargetToRow(t,e)&&this.panel.updateRowsRemoveElementFromRow(t.target,e)},i.prototype.dragDropFindRow=function(t){if(!t||t.isPage)return null;for(var e=t,n=this.panel.rows,r=0;r<n.length;r++)if(n[r].elements.indexOf(e)>-1)return n[r];for(var r=0;r<this.panel.elements.length;r++){var o=this.panel.elements[r].getPanel();if(o){var s=o.dragDropFindRow(e);if(s)return s}}return null},i.prototype.dragDropMoveElement=function(t,e,n){var r=t.parent.elements.indexOf(t);n>r&&n--,this.panel.removeElement(t),this.panel.addElement(e,n)},i.prototype.updateRowsOnElementAdded=function(t,e,n,r){n||(n=new Xo(null,t),n.target=t,n.isEdge=this.panel.elements.length>1,this.panel.elements.length<2?n.destination=r:(n.isBottom=e>0,e==0?n.destination=this.panel.elements[1]:n.destination=this.panel.elements[e-1])),this.dragDropAddTargetToRow(n,null)},i.prototype.dragDropAddTargetToRow=function(t,e){if(!t.destination||this.dragDropAddTargetToEmptyPanel(t))return!0;var n=t.destination,r=this.dragDropFindRow(n);return r?t.target.startWithNewLine?this.dragDropAddTargetToNewRow(t,r,e):this.dragDropAddTargetToExistingRow(t,r,e):!0},i.prototype.dragDropAddTargetToEmptyPanel=function(t){if(t.destination.isPage)return this.dragDropAddTargetToEmptyPanelCore(this.panel.root,t.target,t.isBottom),!0;var e=t.destination;if(e.isPanel&&!t.isEdge){var n=e;if(t.target.template===e)return!1;if(t.nestedPanelDepth<0||t.nestedPanelDepth>=n.depth)return this.dragDropAddTargetToEmptyPanelCore(e,t.target,t.isBottom),!0}return!1},i.prototype.dragDropAddTargetToExistingRow=function(t,e,n){var r=e.elements.indexOf(t.destination);if(r==0&&!t.isBottom&&!this.panel.isDesignModeV2){if(e.elements[0].startWithNewLine)return e.index>0?(t.isBottom=!0,e=e.panel.rows[e.index-1],t.destination=e.elements[e.elements.length-1],this.dragDropAddTargetToExistingRow(t,e,n)):this.dragDropAddTargetToNewRow(t,e,n)}var o=-1;n==e&&(o=e.elements.indexOf(t.target)),t.isBottom&&r++;var s=this.panel.findRowByElement(t.source);return s==e&&s.elements.indexOf(t.source)==r||r==o?!1:(o>-1&&(e.elements.splice(o,1),o<r&&r--),e.elements.splice(r,0,t.target),e.updateVisible(),o<0)},i.prototype.dragDropAddTargetToNewRow=function(t,e,n){var r=e.panel.createRowAndSetLazy(e.panel.rows.length);this.panel.isDesignModeV2&&r.setIsLazyRendering(!1),r.addElement(t.target);var o=e.index;if(t.isBottom&&o++,n&&n.panel==r.panel&&n.index==o)return!1;var s=this.panel.findRowByElement(t.source);return s&&s.panel==r.panel&&s.elements.length==1&&s.index==o?!1:(e.panel.rows.splice(o,0,r),!0)},i.prototype.dragDropAddTargetToEmptyPanelCore=function(t,e,n){var r=t.createRow();r.addElement(e),t.elements.length==0||n?t.rows.push(r):t.rows.splice(0,0,r)},i}(),sc=function(){var i=function(t,e){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(n[o]=r[o])},i(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");i(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),Ar=function(i,t,e,n){var r=arguments.length,o=r<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,e):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(i,t,e,n);else for(var a=i.length-1;a>=0;a--)(s=i[a])&&(o=(r<3?s(o):r>3?s(t,e,o):s(t,e))||o);return r>3&&o&&Object.defineProperty(t,e,o),o},Zo=function(i){sc(t,i);function t(e,n){var r=i.call(this)||this;return r.effectiveWidth=e,r.questionTitleWidth=n,r}return t.prototype.getType=function(){return"panellayoutcolumn"},t.prototype.isEmpty=function(){return!this.width&&!this.questionTitleWidth},Ar([h()],t.prototype,"width",void 0),Ar([h({onSet:function(e,n,r){e!==r&&(n.width=e)}})],t.prototype,"effectiveWidth",void 0),Ar([h()],t.prototype,"questionTitleWidth",void 0),t}(z);x.addClass("panellayoutcolumn",[{name:"effectiveWidth:number",isSerializable:!1,minValue:0},{name:"width:number",visible:!1},"questionTitleWidth"],function(i){return new Zo});var Dr=function(){var i=function(t,e){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(n[o]=r[o])},i(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");i(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),_t=function(i,t,e,n){var r=arguments.length,o=r<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,e):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(i,t,e,n);else for(var a=i.length-1;a>=0;a--)(s=i[a])&&(o=(r<3?s(o):r>3?s(t,e,o):s(t,e))||o);return r>3&&o&&Object.defineProperty(t,e,o),o},es=function(i,t){for(var e=0,n=t.length,r=i.length;e<n;e++,r++)i[r]=t[e];return i},ts=function(i){Dr(t,i);function t(e){var n=i.call(this)||this;return n.panel=e,n._scrollableParent=void 0,n._updateVisibility=void 0,n.visibleElementsAnimation=new Qe(n.getVisibleElementsAnimationOptions(),function(r){n.setWidth(r),n.setPropertyValue("visibleElements",r)},function(){return n.visibleElements}),n.idValue=t.getRowId(),n.visible=e.areInvisibleElementsShowing,n.createNewArray("elements"),n.createNewArray("visibleElements"),n}return t.getRowId=function(){return"pr_"+t.rowCounter++},Object.defineProperty(t.prototype,"allowRendering",{get:function(){return!this.panel||!this.panel.survey||!this.panel.survey.isLazyRenderingSuspended},enumerable:!1,configurable:!0}),t.prototype.startLazyRendering=function(e,n){var r=this;if(n===void 0&&(n=rn),!!I.isAvailable()){this._scrollableParent=n(e),this._scrollableParent===I.getDocumentElement()&&(this._scrollableParent=E.getWindow());var o=this._scrollableParent.scrollHeight>this._scrollableParent.clientHeight;this.isNeedRender=!o,o&&(this._updateVisibility=function(){if(r.allowRendering){var s=ru(e,50);!r.isNeedRender&&s&&(r.isNeedRender=!0,r.stopLazyRendering())}},setTimeout(function(){r._scrollableParent&&r._scrollableParent.addEventListener&&r._scrollableParent.addEventListener("scroll",r._updateVisibility),r.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 this.isLazyRenderingValue===!0},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 e;return i.prototype.getIsAnimationAllowed.call(this)&&this.visible&&((e=this.panel)===null||e===void 0?void 0:e.animationAllowed)},t.prototype.getVisibleElementsAnimationOptions=function(){var e=this,n=function(r){Ae(r),Mt(r,{width:sr(r)+"px"})};return{getRerenderEvent:function(){return e.onElementRerendered},isAnimationEnabled:function(){return e.animationAllowed},allowSyncRemovalAddition:!1,getAnimatedElement:function(r){return r.getWrapperElement()},getLeaveOptions:function(r){var o=r,s=r.isPanel?o.cssClasses.panel:o.cssClasses;return{cssClass:s.leave,onBeforeRunAnimation:n,onAfterRunAnimation:Ce}},getEnterOptions:function(r){var o=r,s=r.isPanel?o.cssClasses.panel:o.cssClasses;return{cssClass:s.enter,onBeforeRunAnimation:n,onAfterRunAnimation:Ce}}}},Object.defineProperty(t.prototype,"visibleElements",{get:function(){return this.getPropertyValue("visibleElements")},set:function(e){if(e.length)this.visible=!0;else{this.visible=!1,this.visibleElementsAnimation.cancel();return}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=[],n=0;n<this.elements.length;n++)this.elements[n].isVisible&&e.push(this.elements[n]),(this.elements[n].isPanel||this.elements[n].getType()==="paneldynamic")&&(this.setIsLazyRendering(!1),this.stopLazyRendering());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 n,r=e.length;if(r!=0){for(var o=e.length===1,s=0,a=[],l=0;l<this.elements.length;l++){var u=this.elements[l];if(u.isVisible){u.isSingleInRow=o;var d=this.getElementWidth(u);d&&(u.renderWidth=this.getRenderedWidthFromWidth(d),a.push(u)),s<r-1&&!(this.panel.isDefaultV2Theme||!((n=this.panel.parentQuestion)===null||n===void 0)&&n.isDefaultV2Theme)?u.rightIndent=1:u.rightIndent=0,s++}else u.renderWidth=""}for(var l=0;l<this.elements.length;l++){var u=this.elements[l];!u.isVisible||a.indexOf(u)>-1||(a.length==0?u.renderWidth=Number.parseFloat((100/r).toFixed(6))+"%":u.renderWidth=this.getRenderedCalcWidth(u,a,r))}}},t.prototype.getRenderedCalcWidth=function(e,n,r){for(var o="100%",s=0;s<n.length;s++)o+=" - "+n[s].renderWidth;var a=r-n.length;return a>1&&(o="("+o+")/"+a.toString()),"calc("+o+")"},t.prototype.getElementWidth=function(e){var n=e.width;return!n||typeof n!="string"?"":n.trim()},t.prototype.getRenderedWidthFromWidth=function(e){return P.isNumber(e)?e+"px":e},t.prototype.dispose=function(){i.prototype.dispose.call(this),this.stopLazyRendering()},t.prototype.getRowCss=function(){return new O().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,_t([h({defaultValue:null})],t.prototype,"dragTypeOverMe",void 0),t}(z),Lr=function(i){Dr(t,i);function t(e){e===void 0&&(e="");var n=i.call(this,e)||this;return n.isQuestionsReady=!1,n.questionsValue=new Array,n._columns=void 0,n._columnsReady=!1,n.rowsAnimation=new Qe(n.getRowsAnimationOptions(),function(r){n.setPropertyValue("visibleRows",r)},function(){return n.visibleRows}),n.isRandomizing=!1,n.onColumnPropertyValueChangedCallback=function(r,o,s,a,l){n._columnsReady&&(n.updateColumnWidth(n.gridLayoutColumns),n.updateRootStyle())},n.locCountRowUpdates=0,n.createNewArray("rows",function(r,o){n.onAddRow(r)},function(r){n.onRemoveRow(r)}),n.createNewArray("visibleRows"),n.elementsValue=n.createNewArray("elements",n.onAddElement.bind(n),n.onRemoveElement.bind(n)),n.id=t.getPanelId(),n.addExpressionProperty("visibleIf",function(r,o){n.visible=o===!0},function(r){return!n.areInvisibleElementsShowing}),n.addExpressionProperty("enableIf",function(r,o){n.readOnly=o===!1}),n.addExpressionProperty("requiredIf",function(r,o){n.isRequired=o===!0}),n.createLocalizableString("requiredErrorText",n),n.createLocalizableString("navigationTitle",n,!0).onGetTextCallback=function(r){return r||n.title||n.name},n.registerPropertyChangedHandlers(["questionTitleLocation"],function(){n.onVisibleChanged.bind(n),n.updateElementCss(!0)}),n.registerPropertyChangedHandlers(["questionStartIndex","showQuestionNumbers"],function(){n.updateVisibleIndexes()}),n.registerPropertyChangedHandlers(["title"],function(){n.resetHasTextInTitle()}),n.dragDropPanelHelper=new oc(n),n}return t.getPanelId=function(){return"sp_"+t.panelCounter++},t.prototype.onAddRow=function(e){var n=this;this.onRowVisibleChanged(),e.onVisibleChangedCallback=function(){return n.onRowVisibleChanged()}},t.prototype.getRowsAnimationOptions=function(){var e=this;return{getRerenderEvent:function(){return e.onElementRerendered},isAnimationEnabled:function(){return e.animationAllowed},getAnimatedElement:function(n){return n.getRootElement()},getLeaveOptions:function(n,r){return{cssClass:e.cssClasses.rowLeave,onBeforeRunAnimation:Ae,onAfterRunAnimation:Ce}},getEnterOptions:function(n,r){var o=e.cssClasses;return{cssClass:new O().append(o.rowEnter).append(o.rowDelayedEnter,r.isDeletingRunning).toString(),onBeforeRunAnimation:Ae,onAfterRunAnimation:Ce}}}},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(n){return n.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(e,n){this.blockAnimations(),i.prototype.setSurveyImpl.call(this,e,n),this.isDesignMode&&this.onVisibleChanged();for(var r=0;r<this.elements.length;r++)this.elements[r].setSurveyImpl(e,n);this.releaseAnimations()},t.prototype.endLoadingFromJson=function(){var e=this;i.prototype.endLoadingFromJson.call(this),this.updateDescriptionVisibility(this.description),this.markQuestionListDirty(),this.onRowsChanged(),this.gridLayoutColumns.forEach(function(n){n.onPropertyValueChangedCallback=e.onColumnPropertyValueChangedCallback})},Object.defineProperty(t.prototype,"hasTextInTitle",{get:function(){var e=this;return this.getPropertyValue("hasTextInTitle",void 0,function(){return!!e.title})},enumerable:!1,configurable:!0}),t.prototype.resetHasTextInTitle=function(){this.resetPropertyValue("hasTextInTitle")},Object.defineProperty(t.prototype,"hasTitle",{get:function(){return this.canShowTitle(this.survey)&&(this.hasTextInTitle||this.locTitle.textOrHtml.length>0)||this.isDesignMode&&!(b.supportCreatorV2&&this.isPanel)&&this.showTitle&&b.designMode.showEmptyTitles},enumerable:!1,configurable:!0}),t.prototype.delete=function(e){e===void 0&&(e=!0),this.deletePanel(),this.removeFromParent(),e&&this.dispose()},t.prototype.deletePanel=function(){for(var e=this.elements,n=0;n<e.length;n++){var r=e[n];r.isPanel&&r.deletePanel(),this.onRemoveElementNotifySurvey(r)}},t.prototype.removeFromParent=function(){},t.prototype.canShowTitle=function(e){return!0},Object.defineProperty(t.prototype,"_showDescription",{get:function(){return!this.hasTitle&&this.isDesignMode?!1:this.survey&&this.survey.showPageTitles&&this.hasDescription||this.showDescription&&this.isDesignMode&&b.designMode.showEmptyDescriptions},enumerable:!1,configurable:!0}),t.prototype.localeChanged=function(){i.prototype.localeChanged.call(this);for(var e=0;e<this.elements.length;e++)this.elements[e].localeChanged()},t.prototype.locStrsChanged=function(){i.prototype.locStrsChanged.call(this);for(var e=0;e<this.elements.length;e++)this.elements[e].locStrsChanged()},t.prototype.getMarkdownHtml=function(e,n){return n==="navigationTitle"&&this.locNavigationTitle.isEmpty?this.locTitle.renderedHtml||this.name:i.prototype.getMarkdownHtml.call(this,e,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&&this.titlePattern=="requireNumTitle"},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isRequireTextBeforeTitle",{get:function(){return this.isRequired&&this.titlePattern=="numRequireTitle"},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isRequireTextAfterTitle",{get:function(){return this.isRequired&&this.titlePattern=="numTitleRequire"},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&&this.questionsOrder!=="initial"||this.questionsOrder==="random"},t.prototype.randomizeElements=function(e){if(!this.canRandomize(e)||this.isRandomizing)return!1;this.isRandomizing=!0;for(var n=[],r=this.elements,o=0;o<r.length;o++)n.push(r[o]);var s=P.randomizeArray(n);return this.setArrayPropertyDirectly("elements",s,!1),this.updateRows(),this.updateVisibleIndexes(),this.isRandomizing=!1,!0},Object.defineProperty(t.prototype,"areQuestionsRandomized",{get:function(){var e=this.questionsOrder=="default"&&this.survey?this.survey.questionsOrder:this.questionsOrder;return e=="random"},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 this.parent==null?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 n={panel:{},error:{},row:"",rowEnter:"",rowLeave:"",rowDelayedEnter:"",rowMultiple:"",pageRow:"",rowCompact:""};return this.copyCssClasses(n.panel,e.panel),this.copyCssClasses(n.error,e.error),e.pageRow&&(n.pageRow=e.pageRow),e.rowCompact&&(n.rowCompact=e.rowCompact),e.row&&(n.row=e.row),e.rowEnter&&(n.rowEnter=e.rowEnter),e.rowLeave&&(n.rowLeave=e.rowLeave),e.rowDelayedEnter&&(n.rowDelayedEnter=e.rowDelayedEnter),e.rowMultiple&&(n.rowMultiple=e.rowMultiple),this.survey&&this.survey.updatePanelCssClasses(this,n),n},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 e!=="flow"},Object.defineProperty(t.prototype,"questions",{get:function(){if(!this.isQuestionsReady){this.questionsValue=[];for(var e=0;e<this.elements.length;e++){var n=this.elements[e];if(n.isPanel)for(var r=n.questions,o=0;o<r.length;o++)this.questionsValue.push(r[o]);else this.questionsValue.push(n)}this.isQuestionsReady=!0}return this.questionsValue},enumerable:!1,configurable:!0}),t.prototype.getQuestions=function(e){var n=this.questions;if(!e)return n;var r=[];return n.forEach(function(o){r.push(o),o.getNestedQuestions().forEach(function(s){return r.push(s)})}),r},t.prototype.getValidName=function(e){return e&&e.trim()},t.prototype.getQuestionByName=function(e){for(var n=this.questions,r=0;r<n.length;r++)if(n[r].name==e)return n[r];return null},t.prototype.getElementByName=function(e){for(var n=this.elements,r=0;r<n.length;r++){var o=n[r];if(o.name==e)return o;var s=o.getPanel();if(s){var a=s.getElementByName(e);if(a)return a}}return null},t.prototype.getQuestionByValueName=function(e){var n=this.getQuestionsByValueName(e);return n.length>0?n[0]:null},t.prototype.getQuestionsByValueName=function(e){for(var n=[],r=this.questions,o=0;o<r.length;o++)r[o].getValueName()==e&&n.push(r[o]);return n},t.prototype.getValue=function(){var e={};return this.collectValues(e,0),P.getUnbindValue(e)},t.prototype.collectValues=function(e,n){var r=this.elements;n===0&&(r=this.questions);for(var o=0;o<r.length;o++){var s=r[o];if(s.isPanel||s.isPage){var a={};s.collectValues(a,n-1)&&(e[s.name]=a)}else{var l=s;if(!l.isEmpty()){var u=l.getValueName();if(e[u]=l.value,this.data){var d=this.data.getComment(u);d&&(e[u+z.commentSuffix]=d)}}}}return!0},t.prototype.getDisplayValue=function(e){for(var n={},r=this.questions,o=0;o<r.length;o++){var s=r[o];if(!s.isEmpty()){var a=e?s.title:s.getValueName();n[a]=s.getDisplayValue(e)}}return n},t.prototype.getComments=function(){var e={};if(!this.data)return e;for(var n=this.questions,r=0;r<n.length;r++){var o=n[r],s=this.data.getComment(o.getValueName());s&&(e[o.getValueName()]=s)}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 z.collectDependency(this,"elements"),this.elementsValue},enumerable:!1,configurable:!0}),t.prototype.getElementsInDesign=function(e){return this.elements},t.prototype.containsElement=function(e){for(var n=0;n<this.elements.length;n++){var r=this.elements[n];if(r==e)return!0;var o=r.getPanel();if(o&&o.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(e,n){i.prototype.searchText.call(this,e,n);for(var r=0;r<this.elements.length;r++)this.elements[r].searchText(e,n)},t.prototype.hasErrors=function(e,n,r){return e===void 0&&(e=!0),n===void 0&&(n=!1),r===void 0&&(r=null),!this.validate(e,n,r)},t.prototype.validate=function(e,n,r){return e===void 0&&(e=!0),n===void 0&&(n=!1),r===void 0&&(r=null),r=r||{fireCallback:e,focusOnFirstError:n,firstErrorQuestion:null,result:!1},r.result!==!0&&(r.result=!1),this.hasErrorsCore(r),!r.result},t.prototype.validateContainerOnly=function(){this.hasErrorsInPanels({fireCallback:!0}),this.parent&&this.parent.validateContainerOnly()},t.prototype.onQuestionValueChanged=function(e){var n=this.questions.indexOf(e);if(!(n<0)){for(var r=5,o=this.questions.length-1,s=n-r>0?n-r:0,a=n+r<o?n+r:o,l=s;l<=a;l++)if(l!==n){var u=this.questions[l];u.errors.length>0&&u.validate(!1)&&u.validate(!0)}}},t.prototype.hasErrorsInPanels=function(e){var n=[];if(this.hasRequiredError(e,n),this.isPanel&&this.survey){var r=this.survey.validatePanel(this);r&&(n.push(r),e.result=!0)}e.fireCallback&&(this.survey&&this.survey.beforeSettingPanelErrors(this,n),this.errors=n)},t.prototype.getErrorCustomText=function(e,n){return this.survey?this.survey.getSurveyErrorCustomText(this,e,n):e},t.prototype.hasRequiredError=function(e,n){if(this.isRequired){var r=[];if(this.addQuestionsToList(r,!0),r.length!=0){for(var o=0;o<r.length;o++)if(!r[o].isEmpty())return;e.result=!0,n.push(new mo(this.requiredErrorText,this)),e.focusOnFirstError&&!e.firstErrorQuestion&&(e.firstErrorQuestion=r[0])}}},t.prototype.hasErrorsCore=function(e){for(var n=this.elements,r=null,o=null,s=0;s<n.length;s++)if(r=n[s],!!r.isVisible)if(r.isPanel)r.hasErrorsCore(e);else{var a=r;a.validate(e.fireCallback,e)||(o||(o=a),e.firstErrorQuestion||(e.firstErrorQuestion=a),e.result=!0)}this.hasErrorsInPanels(e),this.updateContainsErrors(),!o&&this.errors.length>0&&(o=this.getFirstQuestionToFocus(!1,!0),e.firstErrorQuestion||(e.firstErrorQuestion=o)),e.fireCallback&&o&&(o===e.firstErrorQuestion&&e.focusOnFirstError?o.focus(!0):o.expandAllParents())},t.prototype.getContainsErrors=function(){var e=i.prototype.getContainsErrors.call(this);if(e)return e;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++)this.elements[e].updateElementVisibility();i.prototype.updateElementVisibility.call(this)},t.prototype.getFirstQuestionToFocus=function(e,n){if(e===void 0&&(e=!1),n===void 0&&(n=!1),!e&&!n&&this.isCollapsed)return null;for(var r=this.elements,o=0;o<r.length;o++){var s=r[o];if(!(!s.isVisible||!n&&s.isCollapsed))if(s.isPanel){var a=s.getFirstQuestionToFocus(e,n);if(a)return a}else{var l=s.getFirstQuestionToFocus(e);if(l)return l}}return null},t.prototype.getFirstVisibleQuestion=function(){for(var e=this.questions,n=0;n<e.length;n++)if(e[n].isVisible)return e[n];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,n,r){n===void 0&&(n=!1),r===void 0&&(r=!1),this.addElementsToList(e,n,r,!1)},t.prototype.addPanelsIntoList=function(e,n,r){n===void 0&&(n=!1),r===void 0&&(r=!1),this.addElementsToList(e,n,r,!0)},t.prototype.addElementsToList=function(e,n,r,o){n&&!this.visible||this.addElementsToListCore(e,this.elements,n,r,o)},t.prototype.addElementsToListCore=function(e,n,r,o,s){for(var a=0;a<n.length;a++){var l=n[a];r&&!l.visible||((s&&l.isPanel||!s&&!l.isPanel)&&e.push(l),l.isPanel?l.addElementsToListCore(e,l.elements,r,o,s):o&&this.addElementsToListCore(e,l.getElementsInDesign(!1),r,o,s))}},t.prototype.calcMaxRowColSpan=function(){var e=0;return this.rows.forEach(function(n){var r=0,o=!1;n.elements.forEach(function(s){s.width&&(o=!0),r+=s.colSpan||1}),!o&&r>e&&(e=r)}),e},t.prototype.updateColumnWidth=function(e){var n=0,r=0;if(e.forEach(function(a){a.width?(n+=a.width,a.setPropertyValue("effectiveWidth",a.width)):r++}),r)for(var o=vu((100-n)/r),s=0;s<e.length;s++)e[s].width||e[s].setPropertyValue("effectiveWidth",o)},t.prototype.updateColumns=function(){this._columns=void 0,this.updateRootStyle()},t.prototype.updateRootStyle=function(){var e;i.prototype.updateRootStyle.call(this),(e=this.elements)===null||e===void 0||e.forEach(function(n){return n.updateRootStyle()})},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():this.questionTitleLocation!="default"?this.questionTitleLocation:this.parent?this.parent.getQuestionTitleLocation():this.survey?this.survey.questionTitleLocation:"top"},t.prototype.availableQuestionTitleWidth=function(){var e=this.getQuestionTitleLocation();return e==="left"?!0:this.hasElementWithTitleLocationLeft()},t.prototype.hasElementWithTitleLocationLeft=function(){var e=this.elements.some(function(n){if(n instanceof t)return n.hasElementWithTitleLocationLeft();if(n instanceof ue)return n.getTitleLocation()==="left"});return e},t.prototype.getQuestionTitleWidth=function(){return this.questionTitleWidth||this.parent&&this.parent.getQuestionTitleWidth()},Object.defineProperty(t.prototype,"columns",{get:function(){return this._columns||this.generateColumns(),this._columns||[]},enumerable:!1,configurable:!0}),t.prototype.generateColumns=function(){var e=this.calcMaxRowColSpan(),n=[].concat(this.gridLayoutColumns);if(e<=this.gridLayoutColumns.length)n=this.gridLayoutColumns.slice(0,e);else for(var r=this.gridLayoutColumns.length;r<e;r++){var o=new Zo;o.onPropertyValueChangedCallback=this.onColumnPropertyValueChangedCallback,n.push(o)}this._columns=n;try{this._columnsReady=!1,this.updateColumnWidth(n)}finally{this._columnsReady=!0}this.gridLayoutColumns=n},t.prototype.updateGridColumns=function(){this.updateColumns(),this.elements.forEach(function(e){e.isPanel&&e.updateGridColumns()})},t.prototype.getColumsForElement=function(e){var n=this.findRowByElement(e);if(!n||!this.survey||!this.survey.gridLayoutEnabled)return[];for(var r=n.elements.length-1;r>=0&&n.elements[r].getPropertyValueWithoutDefault("colSpan");)r--;for(var o=n.elements.indexOf(e),s=0,a=0;a<o;a++)s+=n.elements[a].colSpan;var l=e.getPropertyValueWithoutDefault("colSpan");if(!l&&o===r){for(var u=0,a=0;a<n.elements.length;a++)a!==r&&(u+=n.elements[a].colSpan);l=this.columns.length-u}var d=this.columns.slice(s,s+(l||1));return e.setPropertyValue("effectiveColSpan",d.length),d},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 le.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(){var e=this.getIsPageVisible(null),n=this.getPropertyValue("isVisible",!0);e!==n&&this.onVisibleChanged()},t.prototype.canRenderFirstRows=function(){return this.isPage},t.prototype.isLazyRenderInRow=function(e){return!this.survey||!this.survey.isLazyRendering?!1:e>=this.survey.lazyRenderingFirstBatchSize||!this.canRenderFirstRows()},t.prototype.createRowAndSetLazy=function(e){var n=this.createRow();return n.setIsLazyRendering(this.isLazyRenderInRow(e)),n},t.prototype.createRow=function(){return new ts(this)},t.prototype.onSurveyLoad=function(){this.blockAnimations(),i.prototype.onSurveyLoad.call(this);for(var e=0;e<this.elements.length;e++)this.elements[e].onSurveyLoad();this.onElementVisibilityChanged(this),this.releaseAnimations()},t.prototype.onFirstRenderingCore=function(){i.prototype.onFirstRenderingCore.call(this),this.onRowsChanged(),this.elements.forEach(function(e){return e.onFirstRendering()})},t.prototype.updateRows=function(){this.isLoadingFromJson||(this.getElementsForRows().forEach(function(e){e.isPanel&&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.updateColumns(),this.releaseAnimations())},t.prototype.blockRowsUpdates=function(){this.locCountRowUpdates++},t.prototype.releaseRowsUpdates=function(){this.locCountRowUpdates--},t.prototype.updateRowsBeforeElementRemoved=function(e){var n=this,r=this.findRowByElement(e),o=this.rows.indexOf(r),s=r.elements.indexOf(e);r.elements.splice(s,1),r.elements.length==0?this.rows.splice(o,1):!r.elements[0].startWithNewLine&&this.rows[o-1]?(r.elements.forEach(function(a){return n.rows[o-1].addElement(a)}),this.rows.splice(o,1)):r.updateVisible()},t.prototype.updateRowsOnElementAdded=function(e){var n=this,r=this.elements.indexOf(e),o=this.elements[r+1],s=function(v){var V=n.createRowAndSetLazy(v);return n.isDesignModeV2&&V.setIsLazyRendering(!1),n.rows.splice(v,0,V),V},a=function(v,V,T){for(var R,N=[],j=3;j<arguments.length;j++)N[j-3]=arguments[j];var A=(R=v.elements).splice.apply(R,es([V,T],N));return v.updateVisible(),A};if(!o){r==0||e.startWithNewLine?a(s(this.rows.length),0,0,e):this.rows[this.rows.length-1].addElement(e);return}var l=this.findRowByElement(o);if(l){var u=this.rows.indexOf(l),d=l.elements.indexOf(o);d==0?o.startWithNewLine?e.startWithNewLine||u<1?s(u).addElement(e):this.rows[u-1].addElement(e):a(l,0,0,e):e.startWithNewLine?a.apply(void 0,es([s(u+1),0,0],[e].concat(a(l,d,l.elements.length)))):a(l,d,0,e)}},t.prototype.canFireAddRemoveNotifications=function(e){return!!this.survey&&e.prevSurvey!==this.survey},t.prototype.onAddElement=function(e,n){var r=this,o=this.survey,s=this.canFireAddRemoveNotifications(e);this.surveyImpl&&e.setSurveyImpl(this.surveyImpl),e.parent=this,this.markQuestionListDirty(),this.canBuildRows()&&this.updateRowsOnElementAdded(e),s&&(e.isPanel?o.panelAdded(e,n,this,this.root):o.questionAdded(e,n,this,this.root)),this.addElementCallback&&this.addElementCallback(e),e.registerPropertyChangedHandlers(["visible","isVisible"],function(){r.onElementVisibilityChanged(e)},this.id),e.registerPropertyChangedHandlers(["startWithNewLine"],function(){r.onElementStartWithNewLineChanged(e)},this.id),this.onElementVisibilityChanged(this)},t.prototype.onRemoveElement=function(e){e.parent=null,this.unregisterElementPropertiesChanged(e),this.markQuestionListDirty(),this.updateRowsOnElementRemoved(e),!this.isRandomizing&&(this.onRemoveElementNotifySurvey(e),this.removeElementCallback&&this.removeElementCallback(e),this.onElementVisibilityChanged(this))},t.prototype.unregisterElementPropertiesChanged=function(e){e.unregisterPropertyChangedHandlers(["visible","isVisible","startWithNewLine"],this.id)},t.prototype.onRemoveElementNotifySurvey=function(e){this.canFireAddRemoveNotifications(e)&&(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.blockAnimations(),this.updateRowsBeforeElementRemoved(e),this.updateRowsOnElementAdded(e),this.releaseAnimations())},t.prototype.updateRowsVisibility=function(e){for(var n=this.rows,r=0;r<n.length;r++){var o=n[r];if(o.elements.indexOf(e)>-1){o.updateVisible(),o.visible&&!o.isNeedRender&&(o.isNeedRender=!0);break}}},t.prototype.canBuildRows=function(){return!this.isLoadingFromJson&&this.getChildrenLayoutType()=="row"},t.prototype.buildRows=function(){if(!this.canBuildRows())return[];for(var e=new Array,n=this.getElementsForRows(),r=0;r<n.length;r++){var o=n[r],s=r==0||o.startWithNewLine,a=s?this.createRowAndSetLazy(e.length):e[e.length-1];s&&e.push(a),a.addElement(o)}return e.forEach(function(l){return l.updateVisible()}),e},t.prototype.getElementsForRows=function(){return this.elements},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)),this.updateColumns())},t.prototype.updateRowsRemoveElementFromRow=function(e,n){if(!(!n||!n.panel)){var r=n.elements.indexOf(e);r<0||(n.elements.splice(r,1),n.elements.length>0?(this.blockRowsUpdates(),n.elements[0].startWithNewLine=!0,this.releaseRowsUpdates(),n.updateVisible()):n.index>=0&&n.panel.rows.splice(n.index,1))}},t.prototype.getAllRows=function(){var e=this,n=[];return this.rows.forEach(function(r){var o=[];r.elements.forEach(function(s){s.isPanel?o.push.apply(o,s.getAllRows()):s.getType()=="paneldynamic"&&(e.isDesignMode?o.push.apply(o,s.template.getAllRows()):s.panels.forEach(function(a){return o.push.apply(o,a.getAllRows())}))}),n.push(r),n.push.apply(n,o)}),n},t.prototype.findRowAndIndexByElement=function(e,n){if(!e)return{row:void 0,index:this.rows.length-1};n=n||this.rows;for(var r=0;r<n.length;r++)if(n[r].elements.indexOf(e)>-1)return{row:n[r],index:r};return{row:null,index:-1}},t.prototype.forceRenderRow=function(e){e&&!e.isNeedRender&&(e.isNeedRender=!0,e.stopLazyRendering())},t.prototype.forceRenderElement=function(e,n,r){n===void 0&&(n=function(){}),r===void 0&&(r=0);var o=this.getAllRows(),s=this.findRowAndIndexByElement(e,o),a=s.row,l=s.index;if(l>=0&&l<o.length){var u=[];u.push(a);for(var d=l-1;d>=l-r&&d>=0;d--)u.push(o[d]);this.forceRenderRows(u,n)}},t.prototype.forceRenderRows=function(e,n){var r=this;n===void 0&&(n=function(){});var o=function(s){return function(){s--,s<=0&&n()}}(e.length);e.forEach(function(s){return new tu(s.visibleElements,o)}),e.forEach(function(s){return r.forceRenderRow(s)})},t.prototype.findRowByElement=function(e){return this.findRowAndIndexByElement(e).row},t.prototype.elementWidthChanged=function(e){if(!this.isLoadingFromJson){var n=this.findRowByElement(e);n&&n.updateVisible()}},Object.defineProperty(t.prototype,"processedTitle",{get:function(){return this.getRenderedTitle(this.locTitle.textOrHtml)},enumerable:!1,configurable:!0}),t.prototype.getRenderedTitle=function(e){return this.textProcessor!=null?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&&this.survey.getQuestionClearIfInvisible("default")!=="none"&&!this.isLoadingFromJson))for(var e=this.questions,n=this.isVisible,r=0;r<e.length;r++){var o=e[r];n?o.updateValueWithDefaults():(o.clearValueIfInvisible("onHiddenContainer"),o.onHidingContent())}},t.prototype.notifyStateChanged=function(e){i.prototype.notifyStateChanged.call(this,e),this.isCollapsed&&this.questions.forEach(function(n){return n.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 n=0;n<this.elements.length;n++)if(this.elements[n]!=e&&this.elements[n].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 n=e;e+=this.beforeSetVisibleIndex(e);for(var r=this.getPanelStartIndex(e),o=r,s=0;s<this.elements.length;s++)o+=this.elements[s].setVisibleIndex(o);return this.isContinueNumbering()&&(e+=o-r),e-n},t.prototype.updateVisibleIndexes=function(){this.lastVisibleIndex!==void 0&&(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,n=!!this.survey&&this.survey.isDisplayMode;return this.readOnly||e||n},enumerable:!1,configurable:!0}),t.prototype.onReadOnlyChanged=function(){for(var e=0;e<this.elements.length;e++){var n=this.elements[e];n.setPropertyValue("isReadOnly",n.isReadOnly)}i.prototype.onReadOnlyChanged.call(this)},t.prototype.updateElementCss=function(e){i.prototype.updateElementCss.call(this,e);for(var n=0;n<this.elements.length;n++){var r=this.elements[n];r.updateElementCss(e)}},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,n){return n===void 0&&(n=-1),this.canAddElement(e)?(n<0||n>=this.elements.length?this.elements.push(e):this.elements.splice(n,0,e),this.wasRendered&&e.onFirstRendering(),this.updateColumns(),!0):!1},t.prototype.insertElement=function(e,n,r){if(r===void 0&&(r="bottom"),!n){this.addElement(e);return}this.blockRowsUpdates();var o=this.elements.indexOf(n),s=this.findRowByElement(n);r=="left"||r=="right"?r=="right"?(e.startWithNewLine=!1,o++):s.elements.indexOf(n)==0?(n.startWithNewLine=!1,e.startWithNewLine=!0):e.startWithNewLine=!1:(e.startWithNewLine=!0,r=="top"?o=this.elements.indexOf(s.elements[0]):o=this.elements.indexOf(s.elements[s.elements.length-1])+1),this.releaseRowsUpdates(),this.addElement(e,o)},t.prototype.insertElementAfter=function(e,n){var r=this.elements.indexOf(n);r>=0&&this.addElement(e,r+1)},t.prototype.insertElementBefore=function(e,n){var r=this.elements.indexOf(n);r>=0&&this.addElement(e,r)},t.prototype.canAddElement=function(e){return!!e&&e.isLayoutTypeSupported(this.getChildrenLayoutType())},t.prototype.addQuestion=function(e,n){return n===void 0&&(n=-1),this.addElement(e,n)},t.prototype.addPanel=function(e,n){return n===void 0&&(n=-1),this.addElement(e,n)},t.prototype.addNewQuestion=function(e,n,r){n===void 0&&(n=null),r===void 0&&(r=-1);var o=J.Instance.createQuestion(e,n);return this.addQuestion(o,r)?o:null},t.prototype.addNewPanel=function(e){e===void 0&&(e=null);var n=this.createNewPanel(e);return this.addPanel(n)?n:null},t.prototype.indexOf=function(e){return this.elements.indexOf(e)},t.prototype.createNewPanel=function(e){var n=x.createClass("panel");return n.name=e,n},t.prototype.removeElement=function(e){var n=this.elements.indexOf(e);if(n<0){for(var r=0;r<this.elements.length;r++)if(this.elements[r].removeElement(e))return!0;return!1}return this.elements.splice(n,1),this.updateColumns(),!0},t.prototype.removeQuestion=function(e){this.removeElement(e)},t.prototype.runCondition=function(e,n){if(!(this.isDesignMode||this.isLoadingFromJson)){for(var r=this.elements.slice(),o=0;o<r.length;o++)r[o].runCondition(e,n);this.runConditionCore(e,n)}},t.prototype.onAnyValueChanged=function(e,n){for(var r=this.elements,o=0;o<r.length;o++)r[o].onAnyValueChanged(e,n)},t.prototype.checkBindings=function(e,n){for(var r=this.elements,o=0;o<r.length;o++)r[o].checkBindings(e,n)},t.prototype.dragDropAddTarget=function(e){this.dragDropPanelHelper.dragDropAddTarget(e)},t.prototype.dragDropFindRow=function(e){return this.dragDropPanelHelper.dragDropFindRow(e)},t.prototype.dragDropMoveElement=function(e,n,r){this.dragDropPanelHelper.dragDropMoveElement(e,n,r)},t.prototype.needResponsiveWidth=function(){var e=!1;return this.elements.forEach(function(n){n.needResponsiveWidth()&&(e=!0)}),this.rows.forEach(function(n){n.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 this.questionErrorLocation!=="default"?this.questionErrorLocation:this.parent?this.parent.getQuestionErrorLocation():this.survey?this.survey.questionErrorLocation:"top"},t.prototype.getTitleOwner=function(){return this},Object.defineProperty(t.prototype,"no",{get:function(){return""},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"cssTitleNumber",{get:function(){return this.cssClasses.panel.number},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"cssRequiredText",{get:function(){return this.cssClasses.panel.requiredText},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 O().append(e.error.root).toString()},t.prototype.getSerializableColumnsValue=function(){for(var e=-1,n=this.gridLayoutColumns.length-1;n>=0;n--)if(!this.gridLayoutColumns[n].isEmpty()){e=n;break}return this.gridLayoutColumns.slice(0,e+1)},t.prototype.afterRender=function(e){this.afterRenderCore(e)},t.prototype.dispose=function(){if(i.prototype.dispose.call(this),this.rows){for(var e=0;e<this.rows.length;e++)this.rows[e].dispose();this.rows.splice(0,this.rows.length)}this.disposeElements(),this.elements.splice(0,this.elements.length)},t.prototype.disposeElements=function(){for(var e=0;e<this.elements.length;e++)this.elements[e].dispose()},t.panelCounter=100,_t([ae()],t.prototype,"gridLayoutColumns",void 0),_t([h({defaultValue:!0})],t.prototype,"showTitle",void 0),_t([h({defaultValue:!0})],t.prototype,"showDescription",void 0),_t([h()],t.prototype,"questionTitleWidth",void 0),t}(le),Bt=function(i){Dr(t,i);function t(e){e===void 0&&(e="");var n=i.call(this,e)||this;return n.forcusFirstQuestionOnExpand=!0,n.createNewArray("footerActions"),n.registerPropertyChangedHandlers(["width"],function(){n.parent&&n.parent.elementWidthChanged(n)}),n.registerPropertyChangedHandlers(["indent","innerIndent","rightIndent"],function(){n.resetIndents()}),n.registerPropertyChangedHandlers(["colSpan"],function(){var r;(r=n.parent)===null||r===void 0||r.updateColumns()}),n}return 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(e){return e===void 0&&(e=!1),e&&this.isPanel?this.parent?this.parent.getSurvey(e):null:i.prototype.getSurvey.call(this,e)},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,n){return n===void 0&&(n=null),this.moveToBase(this.parent,e,n)},Object.defineProperty(t.prototype,"visibleIndex",{get:function(){return this.getPropertyValue("visibleIndex",-1)},enumerable:!1,configurable:!0}),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:i.prototype.getQuestionStartIndex.call(this)},Object.defineProperty(t.prototype,"no",{get:function(){var e=this;return this.getPropertyValue("no",void 0,function(){return e.calcNo()})},enumerable:!1,configurable:!0}),t.prototype.calcNo=function(){var e=P.getNumberByIndex(this.visibleIndex,this.getStartIndex());return this.survey&&(e=this.survey.getUpdatedPanelNo(this,e)),e||""},t.prototype.notifyStateChanged=function(e){this.isLoadingFromJson||this.locTitle.strChanged(),i.prototype.notifyStateChanged.call(this,e)},t.prototype.createLocTitleProperty=function(){var e=this,n=i.prototype.createLocTitleProperty.call(this);return n.onGetTextCallback=function(r){return!r&&e.state!=="default"&&(r=e.name),r},n},t.prototype.beforeSetVisibleIndex=function(e){if(this.isPage)return i.prototype.beforeSetVisibleIndex.call(this,e);var n=-1;return this.showNumber&&(this.isDesignMode||!this.locTitle.isEmpty||this.hasParentInQuestionIndex())&&(n=e),this.setPropertyValue("visibleIndex",n),this.resetPropertyValue("no"),n<0?0:1},t.prototype.getPanelStartIndex=function(e){return this.showQuestionNumbers==="off"?-1:this.showQuestionNumbers==="onpanel"?0:e},t.prototype.hasParentInQuestionIndex=function(){if(this.showQuestionNumbers!=="onpanel")return!1;var e=this.questionStartIndex,n=e.indexOf(".");return n>-1&&n<e.length-1},t.prototype.isContinueNumbering=function(){return this.showQuestionNumbers!=="off"&&this.showQuestionNumbers!=="onpanel"},t.prototype.notifySurveyOnVisibilityChanged=function(){this.survey!=null&&!this.isLoadingFromJson&&this.page&&this.survey.panelVisibilityChanged(this,this.isVisible)},t.prototype.getRenderedTitle=function(e){if(this.isPanel&&!e){if(this.isCollapsed||this.isExpanded)return this.name;if(this.isDesignMode)return"["+this.name+"]"}return i.prototype.getRenderedTitle.call(this,e)},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(){var e=this,n=function(){return e.getIndentSize(e.innerIndent)};return this.getPropertyValue("innerPaddingLeft",void 0,n)},set:function(e){this.setPropertyValue("innerPaddingLeft",e)},enumerable:!1,configurable:!0}),t.prototype.calcPaddingLeft=function(){return this.getIndentSize(this.indent)},t.prototype.calcPaddingRight=function(){return this.getIndentSize(this.rightIndent)},t.prototype.resetIndents=function(){this.resetPropertyValue("innerPaddingLeft"),i.prototype.resetIndents.call(this)},t.prototype.getIndentSize=function(e){if(this.survey){if(e<1)return"";var n=this.survey.css;return!n||!n.question||!n.question.indent?"":e*n.question.indent+"px"}},t.prototype.clearOnDeletingContainer=function(){this.elements.forEach(function(e){(e instanceof ue||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=this,n,r;if(!this.footerToolbarValue){var o=this.footerActions;this.hasEditButton&&o.push({id:"cancel-preview",locTitle:this.survey.locEditText,innerCss:this.survey.cssNavigationEdit,component:"sv-nav-btn",action:function(){e.cancelPreview()}}),this.onGetFooterActionsCallback?o=this.onGetFooterActionsCallback():o=(n=this.survey)===null||n===void 0?void 0:n.getUpdatedPanelFooterActions(this,o),this.footerToolbarValue=this.createActionContainer(this.allowAdaptiveActions);var s=this.onGetFooterToolbarCssCallback?this.onGetFooterToolbarCssCallback():"";s||(s=(r=this.cssClasses.panel)===null||r===void 0?void 0:r.footer),s&&(this.footerToolbarValue.containerCss=s),this.footerToolbarValue.setItems(o)}return this.footerToolbarValue},Object.defineProperty(t.prototype,"hasEditButton",{get:function(){return!1},enumerable:!1,configurable:!0}),t.prototype.cancelPreview=function(){this.hasEditButton&&this.survey.cancelPreviewByPage(this)},Object.defineProperty(t.prototype,"cssTitle",{get:function(){return this.getCssPanelTitle()},enumerable:!1,configurable:!0}),t.prototype.getCssPanelTitle=function(){return this.getCssTitle(this.cssClasses.panel)},t.prototype.getCssTitleExpandableSvg=function(){return this.state==="default"?null:this.cssClasses.panel.titleExpandableSvg},Object.defineProperty(t.prototype,"showErrorsAbovePanel",{get:function(){return this.isDefaultV2Theme&&!this.showPanelAsPage},enumerable:!1,configurable:!0}),t.prototype.getCssError=function(e){if(this.isPage)return i.prototype.getCssError.call(this,e);var n=new O().append(i.prototype.getCssError.call(this,e)).append(e.panel.errorsContainer);return n.append("panel-error-root",n.isEmpty()).toString()},t.prototype.onVisibleChanged=function(){i.prototype.onVisibleChanged.call(this),this.notifySurveyOnVisibilityChanged()},t.prototype.needResponsiveWidth=function(){return this.startWithNewLine?i.prototype.needResponsiveWidth.call(this):!0},t.prototype.focusIn=function(){this.survey&&this.survey.whenPanelFocusIn(this)},t.prototype.getHasFrameV2=function(){return i.prototype.getHasFrameV2.call(this)&&!this.showPanelAsPage},t.prototype.getIsNested=function(){return i.prototype.getIsNested.call(this)&&this.parent!==void 0},Object.defineProperty(t.prototype,"showPanelAsPage",{get:function(){return!1},enumerable:!1,configurable:!0}),t.prototype.expand=function(e){e===void 0&&(e=!0),this.forcusFirstQuestionOnExpand=e,i.prototype.expand.call(this)},t.prototype.onElementExpanded=function(e){var n=this;if(this.forcusFirstQuestionOnExpand&&this.survey!=null&&!this.isLoadingFromJson){var r=this.getFirstQuestionToFocus(!1);r&&setTimeout(function(){!n.isDisposed&&n.survey&&n.survey.scrollElementToTop(r,r,null,r.inputId,!1,{behavior:"smooth"})},e?0:15)}},t.prototype.getCssRoot=function(e){return new O().append(i.prototype.getCssRoot.call(this,e)).append(e.container).append(e.asPage,this.showPanelAsPage).append(e.invisible,!this.isDesignMode&&this.areInvisibleElementsShowing&&!this.visible).toString()},t.prototype.getContainerCss=function(){return this.getCssRoot(this.cssClasses.panel)},t.prototype.afterRenderCore=function(e){var n;i.prototype.afterRenderCore.call(this,e),this.isPanel&&((n=this.survey)===null||n===void 0||n.afterRenderPanel(this,e))},t}(Lr);x.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(i){return!!i&&i.availableQuestionTitleWidth()}},{name:"questionTitleLocation",default:"default",choices:["default","top","bottom","left","hidden"]},{name:"gridLayoutColumns:panellayoutcolumns",className:"panellayoutcolumn",isArray:!0,onSerializeValue:function(i){return i.getSerializableColumnsValue()},visibleIf:function(i){return!!i&&!!i.survey&&i.survey.gridLayoutEnabled}},{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 Lr}),x.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},{name:"width"},{name:"minWidth",defaultFunc:function(){return"auto"}},{name:"maxWidth",defaultFunc:function(){return b.maxWidth}},{name:"colSpan:number",visible:!1,onSerializeValue:function(i){return i.getPropertyValue("colSpan")}},{name:"effectiveColSpan:number",minValue:1,isSerializable:!1,visibleIf:function(i){return!!i.survey&&i.survey.gridLayoutEnabled}},{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(i){var t=i?i.survey:null;return!t||!t.pages||t.pages.length>1},choices:function(i){var t=i?i.survey:null;return t?t.pages.map(function(e){return{value:e.name,text:e.title}}):[]}},{name:"showNumber:boolean"},{name:"showQuestionNumbers",default:"default",choices:["default","onpanel","off"]},{name:"questionStartIndex",visibleIf:function(i){return i.isPanel}},{name:"allowAdaptiveActions:boolean",default:!0,visible:!1}],function(){return new Bt},"panelbase"),ze.Instance.registerElement("panel",function(i){return new Bt(i)});var ac=function(){function i(t){this.page=t}return i.prototype.getDragDropInfo=function(){return this.dragDropInfo},i.prototype.dragDropStart=function(t,e,n){n===void 0&&(n=-1),this.dragDropInfo=new Xo(t,e,n)},i.prototype.dragDropMoveTo=function(t,e,n){if(e===void 0&&(e=!1),n===void 0&&(n=!1),!this.dragDropInfo||(this.dragDropInfo.destination=t,this.dragDropInfo.isBottom=e,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},i.prototype.correctDragDropInfo=function(t){if(t.destination){var e=t.destination.isPanel?t.destination:null;e&&(t.target.isLayoutTypeSupported(e.getChildrenLayoutType())||(t.isEdge=!0))}},i.prototype.dragDropAllowFromSurvey=function(){var t=this.dragDropInfo.destination;if(!t||!this.page.survey)return!0;var e=null,n=null,r=t.isPage||!this.dragDropInfo.isEdge&&t.isPanel?t:t.parent;if(!t.isPage){var o=t.parent;if(o){var s=o.elements,a=s.indexOf(t);a>-1&&(e=t,n=t,this.dragDropInfo.isBottom?e=a<s.length-1?s[a+1]:null:n=a>0?s[a-1]:null)}}var l={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:e};return this.page.survey.dragAndDropAllow(l)},i.prototype.dragDropFinish=function(t){if(t===void 0&&(t=!1),!!this.dragDropInfo){var e=this.dragDropInfo.target,n=this.dragDropInfo.source,r=this.dragDropInfo.destination,o=this.page.dragDropFindRow(e),s=this.dragDropGetElementIndex(e,o);this.page.updateRowsRemoveElementFromRow(e,o);var a=[],l=[];if(!t&&o){var u=!1;if(this.page.isDesignModeV2){var d=n&&n.parent&&n.parent.dragDropFindRow(n);o.panel.elements[s]&&o.panel.elements[s].startWithNewLine&&o.elements.length>1&&o.panel.elements[s]===r&&(a.push(e),l.push(o.panel.elements[s])),e.startWithNewLine&&o.elements.length>1&&(!o.panel.elements[s]||!o.panel.elements[s].startWithNewLine)&&l.push(e),d&&d.elements[0]===n&&d.elements[1]&&a.push(d.elements[1]),o.elements.length<=1&&a.push(e),e.startWithNewLine&&o.elements.length>1&&o.elements[0]!==r&&l.push(e)}this.page.survey.startMovingQuestion(),n&&n.parent&&(u=o.panel==n.parent,u?(o.panel.dragDropMoveElement(n,e,s),s=-1):n.parent.removeElement(n)),s>-1&&o.panel.addElement(e,s),this.page.survey.stopMovingQuestion()}return a.map(function(v){v.startWithNewLine=!0}),l.map(function(v){v.startWithNewLine=!1}),this.dragDropInfo=null,t?null:e}},i.prototype.dragDropGetElementIndex=function(t,e){if(!e)return-1;var n=e.elements.indexOf(t);if(e.index==0)return n;var r=e.panel.rows[e.index-1],o=r.elements[r.elements.length-1];return n+e.panel.elements.indexOf(o)+1},i.prototype.dragDropCanDropTagert=function(){var t=this.dragDropInfo.destination;return!t||t.isPage?!0:this.dragDropCanDropCore(this.dragDropInfo.target,t)},i.prototype.dragDropCanDropSource=function(){var t=this.dragDropInfo.source;if(!t)return!0;var e=this.dragDropInfo.destination;if(!this.dragDropCanDropCore(t,e))return!1;if(this.page.isDesignModeV2){var n=this.page.dragDropFindRow(t),r=this.page.dragDropFindRow(e);if(n!==r&&(!t.startWithNewLine&&e.startWithNewLine||t.startWithNewLine&&!e.startWithNewLine))return!0;var o=this.page.dragDropFindRow(e);if(o&&o.elements.length==1)return!0}return this.dragDropCanDropNotNext(t,e,this.dragDropInfo.isEdge,this.dragDropInfo.isBottom)},i.prototype.dragDropCanDropCore=function(t,e){if(!e)return!0;if(this.dragDropIsSameElement(e,t))return!1;if(t.isPanel){var n=t;if(n.containsElement(e)||n.getElementByName(e.name))return!1}return!0},i.prototype.dragDropCanDropNotNext=function(t,e,n,r){if(!e||e.isPanel&&!n||typeof t.parent>"u"||t.parent!==e.parent)return!0;var o=t.parent,s=o.elements.indexOf(t),a=o.elements.indexOf(e);return a<s&&!r&&a--,r&&a++,s<a?a-s>1:s-a>0},i.prototype.dragDropIsSameElement=function(t,e){return t==e||t.name==e.name},i}(),lc=function(){var i=function(t,e){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(n[o]=r[o])},i(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");i(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),uc=function(i,t,e,n){var r=arguments.length,o=r<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,e):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(i,t,e,n);else for(var a=i.length-1;a>=0;a--)(s=i[a])&&(o=(r<3?s(o):r>3?s(t,e,o):s(t,e))||o);return r>3&&o&&Object.defineProperty(t,e,o),o},Mr=function(i){lc(t,i);function t(e){e===void 0&&(e="");var n=i.call(this,e)||this;return n.hasShownValue=!1,n.timeSpent=0,n._isReadyForClean=!0,n.createLocalizableString("navigationDescription",n,!0),n.dragDropPageHelper=new ac(n),n}return t.prototype.getType=function(){return"page"},t.prototype.toString=function(){return this.name},Object.defineProperty(t.prototype,"isPage",{get:function(){return!this.isPanel},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isPanel",{get:function(){return!!this.parent},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"showPanelAsPage",{get:function(){return!0},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hasEditButton",{get:function(){return this.isPanel&&this.survey&&this.survey.state==="preview"&&!!this.parent&&!this.parent.isPanel},enumerable:!1,configurable:!0}),t.prototype.getElementsForRows=function(){var e,n=(e=this.survey)===null||e===void 0?void 0:e.currentSingleQuestion;return n?n.page===this?[n]:[]:i.prototype.getElementsForRows.call(this)},t.prototype.disposeElements=function(){this.isPageContainer||i.prototype.disposeElements.call(this)},t.prototype.onRemoveElement=function(e){this.isPageContainer?(e.parent=null,this.unregisterElementPropertiesChanged(e)):i.prototype.onRemoveElement.call(this,e)},t.prototype.getTemplate=function(){return this.isPanel?"panel":i.prototype.getTemplate.call(this)},Object.defineProperty(t.prototype,"no",{get:function(){if(!this.canShowPageNumber()||!this.survey)return"";var e=this.isStartPage?"":this.num+". ";return this.survey.getUpdatedPageNo(this,e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"cssTitleNumber",{get:function(){return this.cssClasses.page.number},enumerable:!1,configurable:!0}),t.prototype.getCssTitleExpandableSvg=function(){return null},Object.defineProperty(t.prototype,"cssRequiredText",{get:function(){return""},enumerable:!1,configurable:!0}),t.prototype.canShowPageNumber=function(){return this.survey&&this.survey.showPageNumbers},t.prototype.canShowTitle=function(e){return!e||e.showPageTitles},t.prototype.setTitleValue=function(e){i.prototype.setTitleValue.call(this,e),this.navigationLocStrChanged()},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()},t.prototype.getMarkdownHtml=function(e,n){var r=i.prototype.getMarkdownHtml.call(this,e,n);return n==="navigationTitle"&&this.canShowPageNumber()&&r?this.num+". "+r:r},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)},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||this.visibleIndex==0},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){if(this.isPanel)return i.prototype.calcCssClasses.call(this,e);var n={page:{},error:{},pageTitle:"",pageDescription:"",row:"",rowMultiple:"",pageRow:"",rowCompact:"",rowEnter:"",rowLeave:"",rowDelayedEnter:"",rowReplace:""};return this.copyCssClasses(n.page,e.page),this.copyCssClasses(n.error,e.error),e.pageTitle&&(n.pageTitle=e.pageTitle),e.pageDescription&&(n.pageDescription=e.pageDescription),e.row&&(n.row=e.row),e.pageRow&&(n.pageRow=e.pageRow),e.rowMultiple&&(n.rowMultiple=e.rowMultiple),e.rowCompact&&(n.rowCompact=e.rowCompact),e.rowEnter&&(n.rowEnter=e.rowEnter),e.rowDelayedEnter&&(n.rowDelayedEnter=e.rowDelayedEnter),e.rowLeave&&(n.rowLeave=e.rowLeave),e.rowReplace&&(n.rowReplace=e.rowReplace),this.survey&&this.survey.updatePageCssClasses(this,n),n},t.prototype.getCssPanelTitle=function(){return this.isPanel?i.prototype.getCssPanelTitle.call(this):this.cssClasses.page?new O().append(this.cssClasses.page.title).toString():""},Object.defineProperty(t.prototype,"cssRoot",{get:function(){return this.isPanel||!this.cssClasses.page||!this.survey?"":new O().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(e){return this.isPanel?i.prototype.getCssError.call(this,e):new O().append(i.prototype.getCssError.call(this,e)).append(e.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){var n;if(e!=this.hasShownValue&&(this.hasShownValue=e,!(this.isDesignMode||e!==!0))){for(var r=this.elements,o=0;o<r.length;o++)r[o].isPanel&&r[o].randomizeElements(this.areQuestionsRandomized);if(this.randomizeElements(this.areQuestionsRandomized)){var s=(n=this.survey)===null||n===void 0?void 0:n.currentSingleQuestion;(s==null?void 0:s.page)===this&&(this.survey.currentSingleQuestion=this.getFirstVisibleQuestion())}}},t.prototype.scrollToTop=function(){this.survey&&this.survey.scrollElementToTop(this,null,this,this.id)},t.prototype.getAllPanels=function(e,n){e===void 0&&(e=!1),n===void 0&&(n=!1);var r=new Array;return this.addPanelsIntoList(r,e,n),r},t.prototype.getPanels=function(e,n){return e===void 0&&(e=!1),n===void 0&&(n=!1),this.getAllPanels(e,n)},Object.defineProperty(t.prototype,"timeLimit",{get:function(){return this.getPropertyValue("timeLimit",0)},set:function(e){this.setPropertyValue("timeLimit",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"maxTimeToFinish",{get:function(){return this.timeLimit},set:function(e){this.timeLimit=e},enumerable:!1,configurable:!0}),t.prototype.getMaxTimeToFinish=function(){if(this.timeLimit!==0)return this.timeLimit;var e=this.survey?this.survey.timeLimitPerPage:0;return e>0?e:0},t.prototype.onNumChanged=function(e){},t.prototype.onVisibleChanged=function(){this.isRandomizing||(i.prototype.onVisibleChanged.call(this),this.survey!=null&&this.survey.pageVisibilityChanged(this,this.isVisible))},t.prototype.getDragDropInfo=function(){return this.dragDropPageHelper.getDragDropInfo()},t.prototype.dragDropStart=function(e,n,r){r===void 0&&(r=-1),this.dragDropPageHelper.dragDropStart(e,n,r)},t.prototype.dragDropMoveTo=function(e,n,r){return n===void 0&&(n=!1),r===void 0&&(r=!1),this.dragDropPageHelper.dragDropMoveTo(e,n,r)},t.prototype.dragDropFinish=function(e){return e===void 0&&(e=!1),this.dragDropPageHelper.dragDropFinish(e)},t.prototype.ensureRowsVisibility=function(){i.prototype.ensureRowsVisibility.call(this),this.getPanels().forEach(function(e){return e.ensureRowsVisibility()})},Object.defineProperty(t.prototype,"isReadyForClean",{get:function(){return this._isReadyForClean},set:function(e){var n=this._isReadyForClean;this._isReadyForClean=e,this._isReadyForClean!==n&&this.isReadyForCleanChangedCallback&&this.isReadyForCleanChangedCallback()},enumerable:!1,configurable:!0}),t.prototype.enableOnElementRerenderedEvent=function(){i.prototype.enableOnElementRerenderedEvent.call(this),this.isReadyForClean=!1},t.prototype.disableOnElementRerenderedEvent=function(){i.prototype.disableOnElementRerenderedEvent.call(this),this.isReadyForClean=!0},uc([h({defaultValue:-1,onSet:function(e,n){return n.onNumChanged(e)}})],t.prototype,"num",void 0),t}(Bt);x.addClass("page",[{name:"navigationButtonsVisibility",default:"inherit",choices:["inherit","show","hide"]},{name:"timeLimit:number",alternativeName:"maxTimeToFinish",default:0,minValue:0},{name:"navigationTitle",visibleIf:function(i){return!!i.survey&&(i.survey.progressBarType==="buttons"||i.survey.showTOC)},serializationProperty:"locNavigationTitle"},{name:"navigationDescription",visibleIf:function(i){return!!i.survey&&i.survey.progressBarType==="buttons"},serializationProperty:"locNavigationDescription"},{name:"title:text",serializationProperty:"locTitle"},{name:"description:text",serializationProperty:"locDescription"},{name:"state",visible:!1},{name:"isRequired",visible:!1},{name:"startWithNewLine",visible:!1},{name:"width",visible:!1},{name:"minWidth",visible:!1},{name:"maxWidth",visible:!1},{name:"colSpan",visible:!1,isSerializable:!1},{name:"effectiveColSpan:number",visible:!1,isSerializable:!1},{name:"innerIndent",visible:!1},{name:"indent",visible:!1},{name:"page",visible:!1,isSerializable:!1},{name:"showNumber",visible:!1},{name:"showQuestionNumbers",visible:!1},{name:"questionStartIndex",visible:!1},{name:"allowAdaptiveActions",visible:!1},{name:"requiredErrorText:text",serializationProperty:"locRequiredErrorText",visible:!1}],function(){return new Mr},"panel");var cc=function(){var i=function(t,e){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(n[o]=r[o])},i(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");i(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),ns=function(i){cc(t,i);function t(e){var n=i.call(this)||this;return n.survey=e,n.onResize=n.addEvent(),n}return t.prototype.isListElementClickable=function(e){return!this.survey.onServerValidateQuestions||this.survey.onServerValidateQuestions.isEmpty||this.survey.checkErrorsMode==="onComplete"?!0:e<=this.survey.currentPageNo+1},t.prototype.getRootCss=function(e){e===void 0&&(e="center");var n=this.survey.css.progressButtonsContainerCenter;return this.survey.css.progressButtonsRoot&&(n+=" "+this.survey.css.progressButtonsRoot+" "+this.survey.css.progressButtonsRoot+"--"+(["footer","contentBottom"].indexOf(e)!==-1?"bottom":"top"),n+=" "+this.survey.css.progressButtonsRoot+"--"+(this.showItemTitles?"with-titles":"no-titles")),this.showItemNumbers&&this.survey.css.progressButtonsNumbered&&(n+=" "+this.survey.css.progressButtonsNumbered),this.isFitToSurveyWidth&&(n+=" "+this.survey.css.progressButtonsFitSurveyWidth),n},t.prototype.getListElementCss=function(e){if(!(e>=this.survey.visiblePages.length))return new O().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,n){return new O().append(this.survey.css.progressButtonsImageButtonLeft,n).append(this.survey.css.progressButtonsImageButtonRight,!n).append(this.survey.css.progressButtonsImageButtonHidden,!e).toString()},t.prototype.clickListElement=function(e){e instanceof Mr||(e=this.survey.visiblePages[e]),this.survey.tryNavigateToPage(e)},t.prototype.isListContainerHasScroller=function(e){var n=e.querySelector("."+this.survey.css.progressButtonsListContainer);return n?n.scrollWidth>n.offsetWidth:!1},t.prototype.isCanShowItemTitles=function(e){var n=e.querySelector("ul");if(!n||n.children.length<2)return!0;if(n.clientWidth>n.parentElement.clientWidth)return!1;for(var r=n.children[0].clientWidth,o=0;o<n.children.length;o++)if(Math.abs(n.children[o].clientWidth-r)>5)return!1;return!0},t.prototype.clearConnectorsWidth=function(e){for(var n=e.querySelectorAll(".sd-progress-buttons__connector"),r=0;r<n.length;r++)n[r].style.width=""},t.prototype.adjustConnectors=function(e){var n=e.querySelector("ul");if(n)for(var r=e.querySelectorAll(".sd-progress-buttons__connector"),o=this.showItemNumbers?36:20,s=(n.clientWidth-o)/(n.children.length-1)-o,a=0;a<r.length;a++)r[a].style.width=s+"px"},Object.defineProperty(t.prototype,"isFitToSurveyWidth",{get:function(){return se.currentType!=="defaultV2"?!1:this.survey.progressBarInheritWidthFrom==="survey"&&this.survey.widthMode=="static"},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 se.currentType!=="defaultV2"?!1:this.survey.progressBarShowPageNumbers},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"showItemTitles",{get:function(){return se.currentType!=="defaultV2"?!0:this.survey.progressBarShowPageTitles},enumerable:!1,configurable:!0}),t.prototype.getItemNumber=function(e){var n="";return this.showItemNumbers&&(n+=this.survey.visiblePages.indexOf(e)+1),n},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}(z),fc=function(){function i(t,e,n){var r=this;this.model=t,this.element=e,this.viewModel=n,this.criticalProperties=["progressBarType","progressBarShowPageTitles"],this.canShowItemTitles=!0,this.processResponsiveness=function(o,s){if(r.viewModel.onUpdateScroller(o.isListContainerHasScroller(r.element)),r.model.clearConnectorsWidth(r.element),!o.showItemTitles){r.model.adjustConnectors(r.element);return}if(o.survey.isMobile){r.prevWidth=s.width,r.canShowItemTitles=!1,r.model.adjustConnectors(r.element),r.viewModel.onResize(r.canShowItemTitles);return}r.timer!==void 0&&clearTimeout(r.timer),r.timer=setTimeout(function(){(r.prevWidth===void 0||r.prevWidth<s.width&&!r.canShowItemTitles||r.prevWidth>s.width&&r.canShowItemTitles)&&(r.prevWidth=s.width,r.canShowItemTitles=o.isCanShowItemTitles(r.element),r.viewModel.onResize(r.canShowItemTitles),r.timer=void 0)},10)},this.model.survey.registerFunctionOnPropertiesValueChanged(this.criticalProperties,function(){return r.forceUpdate()},"ProgressButtonsResponsivityManager"+this.viewModel.container),this.model.onResize.add(this.processResponsiveness),this.forceUpdate()}return i.prototype.forceUpdate=function(){this.viewModel.onUpdateSettings(),this.processResponsiveness(this.model,{})},i.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},i}();function pc(i,t){return i.isDesignMode||t.focusFirstQuestion(),!0}function rs(i){if(i.parentQuestion)return rs(i.parentQuestion);for(var t=i.parent;t&&t.getType()!=="page"&&t.parent;)t=t.parent;return t&&t.getType()==="page"?t:null}function is(i,t){var e=os(i,t),n={items:e,searchEnabled:!1,locOwner:i},r=new Rt(n);r.allowSelection=!1;var o=function(s,a){r.selectedItem=!!s&&r.actions.filter(function(l){return l.id===s.name})[0]||a};return o(i.currentPage,e[0]),i.onCurrentPageChanged.add(function(s,a){o(i.currentPage)}),i.onFocusInQuestion.add(function(s,a){o(rs(a.question))}),i.registerFunctionOnPropertyValueChanged("pages",function(){r.setItems(os(i,t))},"toc"),r}function os(i,t){var e=i.pages,n=(e||[]).map(function(r){return new $({id:r.name,locTitle:r.locNavigationTitle,action:function(){if(I.activeElementBlur(),t&&t(),r.isPage)return i.tryNavigateToPage(r)},visible:new te(function(){return r.isVisible&&!r.isStartPage})})});return n}function ss(i,t){t===void 0&&(t=!1);var e=st.RootStyle;return t?e+" "+st.RootStyle+"--mobile":(e+=" "+st.RootStyle+"--"+(i.tocLocation||"").toLowerCase(),st.StickyPosition&&(e+=" "+st.RootStyle+"--sticky"),e)}var st=function(){function i(t){var e=this;this.survey=t,this.icon="icon-navmenu_24x24",this.togglePopup=function(){e.popupModel.toggleVisibility()},this.listModel=is(t,function(){e.popupModel.isVisible=!1}),this.popupModel=new Et("sv-list",{model:this.listModel}),this.popupModel.overlayDisplayMode="plain",this.popupModel.displayMode=new te(function(){return e.isMobile?"overlay":"popup"}),i.StickyPosition&&(t.onAfterRenderSurvey.add(function(n,r){return e.initStickyTOCSubscriptions(r.htmlElement)}),this.initStickyTOCSubscriptions(t.rootElement))}return i.prototype.initStickyTOCSubscriptions=function(t){var e=this;i.StickyPosition&&t&&(t.addEventListener("scroll",function(n){e.updateStickyTOCSize(t)}),this.updateStickyTOCSize(t))},i.prototype.updateStickyTOCSize=function(t){if(t){var e=t.querySelector("."+i.RootStyle);if(e&&(e.style.height="",!this.isMobile&&i.StickyPosition&&t)){var n=t.getBoundingClientRect().height,r=this.survey.headerView==="advanced"?".sv-header":".sv_custom_header+div div."+(this.survey.css.title||"sd-title"),o=t.querySelector(r),s=o?o.getBoundingClientRect().height:0,a=t.scrollTop>s?0:s-t.scrollTop;e.style.height=n-a-1+"px"}}},Object.defineProperty(i.prototype,"isMobile",{get:function(){return this.survey.isMobile},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"containerCss",{get:function(){return ss(this.survey,this.isMobile)},enumerable:!1,configurable:!0}),i.prototype.dispose=function(){this.survey.unRegisterFunctionOnPropertyValueChanged("pages","toc"),this.popupModel.dispose(),this.listModel.dispose()},i.RootStyle="sv_progress-toc",i.StickyPosition=!0,i}(),dc=function(){var i=function(t,e){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(n[o]=r[o])},i(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");i(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),K=function(i,t,e,n){var r=arguments.length,o=r<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,e):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(i,t,e,n);else for(var a=i.length-1;a>=0;a--)(s=i[a])&&(o=(r<3?s(o):r>3?s(t,e,o):s(t,e))||o);return r>3&&o&&Object.defineProperty(t,e,o),o},Ue=function(i){dc(t,i);function t(e,n){e===void 0&&(e=null),n===void 0&&(n=null);var r=i.call(this)||this;r.valuesHash={},r.variablesHash={},r.onTriggerExecuted=r.addEvent(),r.onCompleting=r.addEvent(),r.onComplete=r.addEvent(),r.onShowingPreview=r.addEvent(),r.onNavigateToUrl=r.addEvent(),r.onStarted=r.addEvent(),r.onPartialSend=r.addEvent(),r.onCurrentPageChanging=r.addEvent(),r.onCurrentPageChanged=r.addEvent(),r.onValueChanging=r.addEvent(),r.onValueChanged=r.addEvent(),r.onVariableChanged=r.addEvent(),r.onQuestionVisibleChanged=r.addEvent(),r.onVisibleChanged=r.onQuestionVisibleChanged,r.onPageVisibleChanged=r.addEvent(),r.onPanelVisibleChanged=r.addEvent(),r.onQuestionCreated=r.addEvent(),r.onQuestionAdded=r.addEvent(),r.onQuestionRemoved=r.addEvent(),r.onPanelAdded=r.addEvent(),r.onPanelRemoved=r.addEvent(),r.onPageAdded=r.addEvent(),r.onValidateQuestion=r.addEvent(),r.onSettingQuestionErrors=r.addEvent(),r.onServerValidateQuestions=r.addEvent(),r.onValidatePanel=r.addEvent(),r.onErrorCustomText=r.addEvent(),r.onValidatedErrorsOnCurrentPage=r.addEvent(),r.onProcessHtml=r.addEvent(),r.onGetQuestionDisplayValue=r.addEvent(),r.onGetQuestionTitle=r.addEvent(),r.onGetTitleTagName=r.addEvent(),r.onGetQuestionNumber=r.addEvent(),r.onGetQuestionNo=r.onGetQuestionNumber,r.onGetPanelNumber=r.addEvent(),r.onGetPageNumber=r.addEvent(),r.onGetProgressText=r.addEvent(),r.onProgressText=r.onGetProgressText,r.onTextMarkdown=r.addEvent(),r.onTextRenderAs=r.addEvent(),r.onSendResult=r.addEvent(),r.onGetResult=r.addEvent(),r.onOpenFileChooser=r.addEvent(),r.onUploadFiles=r.addEvent(),r.onDownloadFile=r.addEvent(),r.onClearFiles=r.addEvent(),r.onLoadChoicesFromServer=r.addEvent(),r.onLoadedSurveyFromService=r.addEvent(),r.onProcessTextValue=r.addEvent(),r.onUpdateQuestionCssClasses=r.addEvent(),r.onUpdatePanelCssClasses=r.addEvent(),r.onUpdatePageCssClasses=r.addEvent(),r.onUpdateChoiceItemCss=r.addEvent(),r.onAfterRenderSurvey=r.addEvent(),r.onAfterRenderHeader=r.addEvent(),r.onAfterRenderPage=r.addEvent(),r.onAfterRenderQuestion=r.addEvent(),r.onAfterRenderQuestionInput=r.addEvent(),r.onAfterRenderPanel=r.addEvent(),r.onFocusInQuestion=r.addEvent(),r.onFocusInPanel=r.addEvent(),r.onShowingChoiceItem=r.addEvent(),r.onChoicesLazyLoad=r.addEvent(),r.onChoicesSearch=r.addEvent(),r.onGetChoiceDisplayValue=r.addEvent(),r.onMatrixRowAdded=r.addEvent(),r.onMatrixRowAdding=r.addEvent(),r.onMatrixBeforeRowAdded=r.onMatrixRowAdding,r.onMatrixRowRemoving=r.addEvent(),r.onMatrixRowRemoved=r.addEvent(),r.onMatrixRenderRemoveButton=r.addEvent(),r.onMatrixAllowRemoveRow=r.onMatrixRenderRemoveButton,r.onMatrixDetailPanelVisibleChanged=r.addEvent(),r.onMatrixCellCreating=r.addEvent(),r.onMatrixCellCreated=r.addEvent(),r.onAfterRenderMatrixCell=r.addEvent(),r.onMatrixAfterCellRender=r.onAfterRenderMatrixCell,r.onMatrixCellValueChanged=r.addEvent(),r.onMatrixCellValueChanging=r.addEvent(),r.onMatrixCellValidate=r.addEvent(),r.onMatrixColumnAdded=r.addEvent(),r.onMultipleTextItemAdded=r.addEvent(),r.onDynamicPanelAdded=r.addEvent(),r.onDynamicPanelRemoved=r.addEvent(),r.onDynamicPanelRemoving=r.addEvent(),r.onTimerTick=r.addEvent(),r.onTimer=r.onTimerTick,r.onTimerPanelInfoText=r.addEvent(),r.onDynamicPanelValueChanged=r.addEvent(),r.onDynamicPanelItemValueChanged=r.onDynamicPanelValueChanged,r.onDynamicPanelValueChanging=r.addEvent(),r.onGetDynamicPanelTabTitle=r.addEvent(),r.onDynamicPanelCurrentIndexChanged=r.addEvent(),r.onCheckAnswerCorrect=r.addEvent(),r.onIsAnswerCorrect=r.onCheckAnswerCorrect,r.onDragDropAllow=r.addEvent(),r.onScrollToTop=r.addEvent(),r.onScrollingElementToTop=r.onScrollToTop,r.onLocaleChangedEvent=r.addEvent(),r.onGetQuestionTitleActions=r.addEvent(),r.onGetPanelTitleActions=r.addEvent(),r.onGetPageTitleActions=r.addEvent(),r.onGetPanelFooterActions=r.addEvent(),r.onGetMatrixRowActions=r.addEvent(),r.onElementContentVisibilityChanged=r.addEvent(),r.onGetExpressionDisplayValue=r.addEvent(),r.onPopupVisibleChanged=r.addEvent(),r.onOpenDropdownMenu=r.addEvent(),r.onElementWrapperComponentName=r.addEvent(),r.onElementWrapperComponentData=r.addEvent(),r.jsonErrors=null,r.cssValue=null,r.showHeaderOnCompletePage="auto",r._isLazyRenderingSuspended=!1,r.hideRequiredErrors=!1,r.cssVariables={},r._isMobile=!1,r._isCompact=!1,r.setValueOnExpressionCounter=0,r._isDesignMode=!1,r.validationAllowSwitchPages=!1,r.validationAllowComplete=!1,r.isNavigationButtonPressed=!1,r.mouseDownPage=null,r.isCalculatingProgressText=!1,r.isSmoothScrollEnabled=!1,r.onResize=new Ve,r.isCurrentPageRendering=!0,r.isCurrentPageRendered=void 0,r.skeletonHeight=void 0,r.isTriggerIsRunning=!1,r.triggerValues=null,r.triggerKeys=null,r.conditionValues=null,r.isValueChangedOnRunningCondition=!1,r.conditionRunnerCounter=0,r.conditionUpdateVisibleIndexes=!1,r.conditionNotifyElementsOnAnyValueOrVariableChanged=!1,r.isEndLoadingFromJson=null,r.questionHashes={names:{},namesInsensitive:{},valueNames:{},valueNamesInsensitive:{}},r.setValueFromTriggerCounter=0,r.needRenderIcons=!0,r.skippedPages=[],r.skeletonComponentName="sv-skeleton",r.taskManager=new ic,r.questionErrorComponent="sv-question-error",r.onBeforeRunConstructor();var o=function(a){return"<h3>"+a+"</h3>"};r.createHtmlLocString("completedHtml","completingSurvey",o),r.createHtmlLocString("completedBeforeHtml","completingSurveyBefore",o,"completed-before"),r.createHtmlLocString("loadingHtml","loadingSurvey",o,"loading"),r.createLocalizableString("emptySurveyText",r,!0,"emptySurvey"),r.createLocalizableString("logo",r,!1),r.createLocalizableString("startSurveyText",r,!1,!0),r.createLocalizableString("pagePrevText",r,!1,!0),r.createLocalizableString("pageNextText",r,!1,!0),r.createLocalizableString("completeText",r,!1,!0),r.createLocalizableString("previewText",r,!1,!0),r.createLocalizableString("editText",r,!1,!0),r.createLocalizableString("questionTitleTemplate",r,!0),r.timerModelValue=new Go(r),r.timerModelValue.onTimerTick=function(a){r.doTimer(a)},r.createNewArray("pages",function(a){a.isReadyForCleanChangedCallback&&a.isReadyForCleanChangedCallback(),r.doOnPageAdded(a)},function(a){a.isReadyForClean?r.doOnPageRemoved(a):a.isReadyForCleanChangedCallback=function(){r.doOnPageRemoved(a),a.isReadyForCleanChangedCallback=void 0}}),r.createNewArray("triggers",function(a){a.setOwner(r)}),r.createNewArray("calculatedValues",function(a){a.setOwner(r)}),r.createNewArray("completedHtmlOnCondition",function(a){a.locOwner=r}),r.createNewArray("navigateToUrlOnCondition",function(a){a.locOwner=r}),r.registerPropertyChangedHandlers(["locale"],function(){r.onSurveyLocaleChanged()}),r.registerPropertyChangedHandlers(["firstPageIsStarted"],function(){r.onFirstPageIsStartedChanged()}),r.registerPropertyChangedHandlers(["mode"],function(){r.onModeChanged()}),r.registerPropertyChangedHandlers(["progressBarType"],function(){r.updateProgressText()}),r.registerPropertyChangedHandlers(["questionStartIndex","requiredText","questionTitlePattern"],function(){r.resetVisibleIndexes()}),r.registerPropertyChangedHandlers(["isLoading","isCompleted","isCompletedBefore","mode","isStartedState","currentPage","isShowingPreview"],function(){r.updateState()}),r.registerPropertyChangedHandlers(["state","currentPage","showPreviewBeforeComplete"],function(){r.onStateAndCurrentPageChanged()}),r.registerPropertyChangedHandlers(["logo","logoPosition"],function(){r.updateHasLogo()}),r.registerPropertyChangedHandlers(["backgroundImage"],function(){r.updateRenderBackgroundImage()}),r.registerPropertyChangedHandlers(["renderBackgroundImage","backgroundOpacity","backgroundImageFit","fitToContainer","backgroundImageAttachment"],function(){r.updateBackgroundImageStyle()}),r.registerPropertyChangedHandlers(["showPrevButton","showCompleteButton"],function(){r.updateButtonsVisibility()}),r.onGetQuestionNumber.onCallbacksChanged=function(){r.resetVisibleIndexes()},r.onGetPanelNumber.onCallbacksChanged=function(){r.resetVisibleIndexes()},r.onGetProgressText.onCallbacksChanged=function(){r.updateProgressText()},r.onTextMarkdown.onCallbacksChanged=function(){r.locStrsChanged()},r.onProcessHtml.onCallbacksChanged=function(){r.locStrsChanged()},r.onGetQuestionTitle.onCallbacksChanged=function(){r.locStrsChanged()},r.onUpdatePageCssClasses.onCallbacksChanged=function(){r.currentPage&&r.currentPage.updateElementCss()},r.onUpdatePanelCssClasses.onCallbacksChanged=function(){r.currentPage&&r.currentPage.updateElementCss()},r.onUpdateQuestionCssClasses.onCallbacksChanged=function(){r.currentPage&&r.currentPage.updateElementCss()},r.onShowingChoiceItem.onCallbacksChanged=function(){r.rebuildQuestionChoices()},r.navigationBarValue=r.createNavigationBar(),r.navigationBar.locOwner=r,r.onBeforeCreating(),e&&((typeof e=="string"||e instanceof String)&&(e=JSON.parse(e)),e&&e.clientId&&(r.clientId=e.clientId),r.fromJSON(e),r.surveyId&&r.loadSurveyFromService(r.surveyId,r.clientId)),r.onCreating(),n&&r.render(n),r.updateCss(),r.setCalculatedWidthModeUpdater(),r.notifier=new Ko(r.css.saveData),r.notifier.addAction(r.createTryAgainAction(),"error"),r.onPopupVisibleChanged.add(function(a,l){l.visible?r.onScrollCallback=function(){l.popup.hide()}:r.onScrollCallback=void 0}),r.progressBarValue=new ns(r),r.layoutElements.push({id:"timerpanel",template:"survey-timerpanel",component:"sv-timerpanel",data:r.timerModel}),r.layoutElements.push({id:"progress-buttons",component:"sv-progress-buttons",data:r.progressBar,processResponsiveness:function(a){return r.progressBar.processResponsiveness&&r.progressBar.processResponsiveness(a)}}),r.layoutElements.push({id:"progress-questions",component:"sv-progress-questions",data:r}),r.layoutElements.push({id:"progress-pages",component:"sv-progress-pages",data:r}),r.layoutElements.push({id:"progress-correctquestions",component:"sv-progress-correctquestions",data:r}),r.layoutElements.push({id:"progress-requiredquestions",component:"sv-progress-requiredquestions",data:r});var s=new st(r);return r.addLayoutElement({id:"toc-navigation",component:"sv-navigation-toc",data:s,processResponsiveness:function(a){return s.updateStickyTOCSize(r.rootElement)}}),r.layoutElements.push({id:"buttons-navigation",component:"sv-action-bar",data:r.navigationBar}),r.locTitle.onStringChanged.add(function(){return r.titleIsEmpty=r.locTitle.isEmpty}),r}return Object.defineProperty(t.prototype,"platformName",{get:function(){return t.platform},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"commentSuffix",{get:function(){return b.commentSuffix},set:function(e){b.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}),Object.defineProperty(t.prototype,"sjsVersion",{get:function(){return this.getPropertyValue("sjsVersion")},set:function(e){this.setPropertyValue("sjsVersion",e)},enumerable:!1,configurable:!0}),t.prototype.processClosedPopup=function(e,n){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,n,r,o){var s=this,a=this.createLocalizableString(e,this,!1,n);a.onGetLocalizationTextCallback=r,o&&(a.onGetTextCallback=function(l){return s.processHtml(l,o)})},t.prototype.getType=function(){return"survey"},t.prototype.onPropertyValueChanged=function(e,n,r){e==="questionsOnPageMode"&&this.onQuestionsOnPageModeChanged(n)},Object.defineProperty(t.prototype,"pages",{get:function(){return this.getPropertyValue("pages")},enumerable:!1,configurable:!0}),t.prototype.render=function(e){this.renderCallback&&this.renderCallback()},t.prototype.updateSurvey=function(e,n){var r=function(){if(s=="model"||s=="children")return"continue";if(s.indexOf("on")==0&&o[s]&&o[s].add){var a=e[s],l=function(u,d){a(u,d)};o[s].add(l)}else o[s]=e[s]},o=this;for(var s in e)r();e&&e.data&&this.onValueChanged.add(function(a,l){e.data[l.name]=l.value})},t.prototype.getCss=function(){return this.css},t.prototype.updateCompletedPageCss=function(){this.containerCss=this.css.container,this.completedCss=new O().append(this.css.body).append(this.css.completedPage).toString(),this.completedBeforeCss=new O().append(this.css.body).append(this.css.completedBeforePage).toString(),this.loadingBodyCss=new O().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,se.getCss())),this.cssValue},set:function(e){this.setCss(e)},enumerable:!1,configurable:!0}),t.prototype.setCss=function(e,n){n===void 0&&(n=!0),n?this.mergeValues(e,this.css):this.cssValue=e,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 O().append(this.css.navigationButton).append(this.css.bodyNavigationButton).toString()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"bodyCss",{get:function(){return new O().append(this.css.body).append(this.css.bodyWithTimer,this.showTimer&&this.state==="running").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(n){return e.processResponsiveness(n)}})},t.prototype.getNavigationCss=function(e,n){return new O().append(e).append(n).toString()},Object.defineProperty(t.prototype,"lazyRendering",{get:function(){return this.lazyRenderingValue===!0},set:function(e){if(this.lazyRendering!==e){this.lazyRenderingValue=e;var n=this.currentPage;n&&n.updateRows()}},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isLazyRendering",{get:function(){return this.lazyRendering||b.lazyRender.enabled},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"lazyRenderingFirstBatchSize",{get:function(){return this.lazyRenderingFirstBatchSizeValue||b.lazyRender.firstBatchSize},set:function(e){this.lazyRenderingFirstBatchSizeValue=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isLazyRenderingSuspended",{get:function(){return this._isLazyRenderingSuspended},enumerable:!1,configurable:!0}),t.prototype.suspendLazyRendering=function(){this.isLazyRendering&&(this._isLazyRenderingSuspended=!0)},t.prototype.releaseLazyRendering=function(){this.isLazyRendering&&(this._isLazyRenderingSuspended=!1)},t.prototype.updateLazyRenderingRowsOnRemovingElements=function(){if(this.isLazyRendering){var e=this.currentPage;e&&er(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){(e===!0||e===void 0)&&(e="bottom"),e===!1&&(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),n=e?e.url:this.navigateToUrl;return n&&(n=this.processText(n,!1)),n},t.prototype.navigateTo=function(){var e=this.getNavigateToUrl(),n={url:e,allow:!0};this.onNavigateToUrl.fire(this,n),!(!n.url||!n.allow)&&iu(n.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,n){this.makeRequiredErrorsInvisible(n),this.onSettingQuestionErrors.fire(this,{question:e,errors:n})},t.prototype.beforeSettingPanelErrors=function(e,n){this.makeRequiredErrorsInvisible(n)},t.prototype.makeRequiredErrorsInvisible=function(e){if(this.hideRequiredErrors)for(var n=0;n<e.length;n++){var r=e[n].getErrorType();(r=="required"||r=="requireoneanswer")&&(e[n].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,"validateVisitedEmptyFields",{get:function(){return this.getPropertyValue("validateVisitedEmptyFields")},set:function(e){this.setPropertyValue("validateVisitedEmptyFields",e)},enumerable:!1,configurable:!0}),t.prototype.getValidateVisitedEmptyFields=function(){return this.validateVisitedEmptyFields&&this.isValidateOnValueChange},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){e===!0&&(e="onComplete"),e===!1&&(e="none"),this.setPropertyValue("clearInvisibleValues",e)},enumerable:!1,configurable:!0}),t.prototype.clearIncorrectValues=function(e){e===void 0&&(e=!1);for(var n=0;n<this.pages.length;n++)this.pages[n].clearIncorrectValues();if(e){var r=this.data,o=!1;for(var s in r)if(!this.getQuestionByValueName(s)&&!(this.iscorrectValueWithPostPrefix(s,b.commentSuffix)||this.iscorrectValueWithPostPrefix(s,b.matrix.totalsSuffix))){var a=this.getCalculatedValueByName(s);a&&a.includeIntoResult||(o=!0,delete r[s])}o&&(this.data=r)}},t.prototype.iscorrectValueWithPostPrefix=function(e,n){return e.indexOf(n)!==e.length-n.length?!1:!!this.getQuestionByValueName(e.substring(0,e.indexOf(n)))},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")||ce.currentLocale},set:function(e){e===ce.defaultLocale&&!ce.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 ce.localeDirections[this.locale]},enumerable:!1,configurable:!0}),t.prototype.getUsedLocales=function(){var e=new Array;this.addUsedLocales(e);var n=e.indexOf("default");if(n>-1){var r=ce.defaultLocale,o=e.indexOf(r);o>-1&&e.splice(o,1),n=e.indexOf("default"),e[n]=r}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&&(i.prototype.locStrsChanged.call(this),!!this.currentPage)){if(this.isDesignMode)this.pages.forEach(function(o){return o.locStrsChanged()});else{var e=this.activePage;e&&e.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,n){return this.getSurveyMarkdownHtml(this,e,n)},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,n){var r=this.getBuiltInRendererForString(e,n);r=this.elementWrapperComponentNameCore(r,e,"string",n);var o={element:e,name:n,renderAs:r};return this.onTextRenderAs.fire(this,o),o.renderAs},t.prototype.getRendererContextForString=function(e,n){return this.elementWrapperDataCore(n,e,"string")},t.prototype.getExpressionDisplayValue=function(e,n,r){var o={question:e,value:n,displayValue:r};return this.onGetExpressionDisplayValue.fire(this,o),o.displayValue},t.prototype.getBuiltInRendererForString=function(e,n){if(this.isDesignMode)return Se.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,n){return this.getSurveyErrorCustomText(this,e,n)},t.prototype.getSurveyErrorCustomText=function(e,n,r){var o={text:n,name:r.getErrorType(),obj:e,error:r};return this.onErrorCustomText.fire(this,o),o.text},t.prototype.getQuestionDisplayValue=function(e,n){var r={question:e,displayValue:n};return this.onGetQuestionDisplayValue.fire(this,r),r.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?nt(this.logoWidth):void 0},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"renderedStyleLogoWidth",{get:function(){return this.logoWidth?on(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?nt(this.logoHeight):void 0},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"renderedStyleLogoHeight",{get:function(){return this.logoHeight?on(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&&this.logoPosition!=="none")},Object.defineProperty(t.prototype,"isLogoBefore",{get:function(){return this.isDesignMode?!1:this.renderedHasLogo&&(this.logoPosition==="left"||this.logoPosition==="top")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isLogoAfter",{get:function(){return this.isDesignMode?this.renderedHasLogo:this.renderedHasLogo&&(this.logoPosition==="right"||this.logoPosition==="bottom")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"logoClassNames",{get:function(){var e={left:"sv-logo--left",right:"sv-logo--right",top:"sv-logo--top",bottom:"sv-logo--bottom"};return new O().append(this.css.logo).append(e[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){e===void 0&&(e=!0),this._isMobile!==e&&(this._isMobile=e,this.updateCss(),this.getAllQuestions().forEach(function(n){return n.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(!(nu()||this.isMobile)&&!this.isValueEmpty(this.isLogoImageChoosen())&&!b.supportCreatorV2){var e=this.logoWidth;if(this.logoPosition==="left"||this.logoPosition==="right")return"calc(100% - 5px - 2em - "+e+")"}return""},enumerable:!1,configurable:!0}),t.prototype.updateRenderBackgroundImage=function(){var e=this.backgroundImage;this.renderBackgroundImage=tr(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 O().append(this.css.rootWrapper).append(this.css.rootWrapperHasImage,!!this.backgroundImage).append(this.css.rootWrapperFixed,!!this.backgroundImage&&this.backgroundImageAttachment==="fixed").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,n){if(!e)return null;var r=this.getFilteredValues(),o=this.getFilteredProperties(),s=new et(e),a=void 0;return s.onRunComplete=function(l){a=l,n&&n(l)},s.run(r,o)||a},Object.defineProperty(t.prototype,"isSettingValueOnExpression",{get:function(){return this.setValueOnExpressionCounter>0},enumerable:!1,configurable:!0}),t.prototype.startSetValueOnExpression=function(){this.setValueOnExpressionCounter++},t.prototype.finishSetValueOnExpression=function(){this.setValueOnExpressionCounter--},t.prototype.runCondition=function(e){if(!e)return!1;var n=this.getFilteredValues(),r=this.getFilteredProperties();return new de(e).run(n,r)},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(e.length==0)return null;for(var n=this.getFilteredValues(),r=this.getFilteredProperties(),o=0;o<e.length;o++)if(e[o].runCondition(n,r))return e[o];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,n){if(this.onGetTitleTagName.isEmpty)return n;var r={element:e,tagName:n};return this.onGetTitleTagName.fire(this,r),r.tagName},Object.defineProperty(t.prototype,"questionTitlePattern",{get:function(){return this.getPropertyValue("questionTitlePattern","numTitleRequire")},set:function(e){e!=="numRequireTitle"&&e!=="requireNumTitle"&&e!="numTitle"&&(e="numTitleRequire"),this.setPropertyValue("questionTitlePattern",e)},enumerable:!1,configurable:!0}),t.prototype.getQuestionTitlePatternOptions=function(){var e=new Array,n=this.getLocalizationString("questionTitlePatternText"),r=this.questionStartIndex?this.questionStartIndex:"1.";return e.push({value:"numTitleRequire",text:r+" "+n+" "+this.requiredText}),e.push({value:"numRequireTitle",text:r+" "+this.requiredText+" "+n}),e.push({value:"numTitle",text:r+" "+n}),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 n=[];e.indexOf("{")>-1;){e=e.substring(e.indexOf("{")+1);var r=e.indexOf("}");if(r<0)break;n.push(e.substring(0,r)),e=e.substring(r+1)}if(n.length>1){if(n[0]=="require")return"requireNumTitle";if(n[1]=="require"&&n.length==3)return"numRequireTitle";if(n.indexOf("require")<0)return"numTitle"}if(n.length==1&&n[0]=="title")return"numTitle"}return"numTitleRequire"},t.prototype.getNewQuestionTitleElement=function(e,n,r,o){if(n="{"+n+"}",!e||e.indexOf(n)<0)return r;for(var s=e.indexOf(n),a="",l="",u=s-1;u>=0&&e[u]!="}";u--);for(u<s-1&&(a=e.substring(u+1,s)),s+=n.length,u=s;u<e.length&&e[u]!="{";u++);for(u>s&&(l=e.substring(s,u)),u=0;u<a.length&&a.charCodeAt(u)<33;)u++;for(a=a.substring(u),u=l.length-1;u>=0&&l.charCodeAt(u)<33;)u--;if(l=l.substring(0,u+1),!a&&!l)return r;var d=r||o;return a+d+l},Object.defineProperty(t.prototype,"locQuestionTitleTemplate",{get:function(){return this.getLocalizableString("questionTitleTemplate")},enumerable:!1,configurable:!0}),t.prototype.getUpdatedQuestionTitle=function(e,n){if(this.onGetQuestionTitle.isEmpty)return n;var r={question:e,title:n};return this.onGetQuestionTitle.fire(this,r),r.title},t.prototype.getUpdatedQuestionNo=function(e,n){if(this.onGetQuestionNumber.isEmpty)return n;var r={question:e,number:n,no:n};return this.onGetQuestionNumber.fire(this,r),r.no===n?r.number:r.no},t.prototype.getUpdatedPanelNo=function(e,n){if(this.onGetPanelNumber.isEmpty)return n;var r={panel:e,number:n};return this.onGetPanelNumber.fire(this,r),r.number},t.prototype.getUpdatedPageNo=function(e,n){if(this.onGetPageNumber.isEmpty)return n;var r={page:e,number:n};return this.onGetPageNumber.fire(this,r),r.number},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){e===!0&&(e="on"),e===!1&&(e="off"),e=e.toLowerCase(),e=e==="onpage"?"onPage":e,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){e===!0&&(e="auto"),e===!1&&(e="off"),this.setPropertyValue("showProgressBar",e.toLowerCase())},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"progressBarType",{get:function(){return this.getPropertyValue("progressBarType")},set:function(e){e==="correctquestion"&&(e="correctQuestion"),e==="requiredquestion"&&(e="requiredQuestion"),this.setPropertyValue("progressBarType",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"progressBarComponentName",{get:function(){var e=this.progressBarType;return!b.legacyProgressBarView&&se.currentType==="defaultV2"&&We(e,"pages")&&(e="buttons"),"progress-"+e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isShowProgressBarOnTop",{get:function(){return this.canShowProresBar()?["auto","aboveheader","belowheader","topbottom","top","both"].indexOf(this.showProgressBar)!==-1:!1},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isShowProgressBarOnBottom",{get:function(){return this.canShowProresBar()?this.showProgressBar==="bottom"||this.showProgressBar==="both"||this.showProgressBar==="topbottom":!1},enumerable:!1,configurable:!0}),t.prototype.getProgressTypeComponent=function(){return"sv-progress-"+this.progressBarType.toLowerCase()},t.prototype.getProgressCssClasses=function(e){return e===void 0&&(e=""),new O().append(this.css.progress).append(this.css.progressTop,this.isShowProgressBarOnTop&&(!e||e=="header")).append(this.css.progressBottom,this.isShowProgressBarOnBottom&&(!e||e=="footer")).toString()},t.prototype.canShowProresBar=function(){return!this.isShowingPreview||this.showPreviewBeforeComplete!="showAllQuestions"},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 n=this.visiblePages,r=0;r<n.length;r++)n[r].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(),e!=this.mode&&(e!="edit"&&e!="display"||this.setPropertyValue("mode",e))},enumerable:!1,configurable:!0}),t.prototype.onModeChanged=function(){for(var e=0;e<this.pages.length;e++){var n=this.pages[e];n.setPropertyValue("isReadOnly",n.isReadOnly)}this.updateButtonsVisibility(),this.updateCss()},Object.defineProperty(t.prototype,"data",{get:function(){for(var e={},n=this.getValuesKeys(),r=0;r<n.length;r++){var o=n[r],s=this.getDataValueCore(this.valuesHash,o);s!==void 0&&(e[o]=s)}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 n=this.data;this.mergeValues(e,n),this.setDataCore(n)}},t.prototype.setDataCore=function(e,n){if(n===void 0&&(n=!1),n&&(this.valuesHash={}),e)for(var r in e){var o=typeof r=="string"?r.trim():r;this.setDataValueCore(this.valuesHash,o,e[r])}this.updateAllQuestionsValue(n),this.notifyAllQuestionsOnValueChanged(),this.notifyElementsOnAnyValueOrVariableChanged(""),this.runConditions(),this.updateAllQuestionsValue(n)},Object.defineProperty(t.prototype,"isSurvey",{get:function(){return!0},enumerable:!1,configurable:!0}),t.prototype.getData=function(e){var n=e||{includePages:!1,includePanels:!1};return!n.includePages&&!n.includePanels?this.data:this.getStructuredData(!!n.includePages,n.includePanels?-1:n.includePages?1:0)},t.prototype.getStructuredData=function(e,n){if(e===void 0&&(e=!0),n===void 0&&(n=-1),n===0)return this.data;var r={};return this.pages.forEach(function(o){if(e){var s={};o.collectValues(s,n-1)&&(r[o.name]=s)}else o.collectValues(r,n)}),r},t.prototype.setStructuredData=function(e,n){if(n===void 0&&(n=!1),!!e){var r={};for(var o in e){var s=this.getQuestionByValueName(o);if(s)r[o]=e[o];else{var a=this.getPageByName(o);a||(a=this.getPanelByName(o)),a&&this.collectDataFromPanel(a,r,e[o])}}n?this.mergeData(r):this.data=r}},t.prototype.collectDataFromPanel=function(e,n,r){for(var o in r){var s=e.getElementByName(o);s&&(s.isPanel?this.collectDataFromPanel(s,n,r[o]):n[o]=r[o])}},Object.defineProperty(t.prototype,"editingObj",{get:function(){return this.editingObjValue},set:function(e){var n=this;if(this.editingObj!=e&&(this.unConnectEditingObj(),this.editingObjValue=e,!this.isDisposed)){if(!e)for(var r=this.getAllQuestions(),o=0;o<r.length;o++)r[o].unbindValue();this.editingObj&&(this.setDataCore({}),this.onEditingObjPropertyChanged=function(s,a){x.hasOriginalProperty(n.editingObj,a.name)&&(a.name==="locale"&&n.setDataCore({}),n.updateOnSetValue(a.name,n.editingObj[a.name],a.oldValue))},this.editingObj.onPropertyChanged.add(this.onEditingObjPropertyChanged))}},enumerable:!1,configurable:!0}),t.prototype.unConnectEditingObj=function(){this.editingObj&&!this.editingObj.isDisposed&&this.editingObj.onPropertyChanged.remove(this.onEditingObjPropertyChanged)},Object.defineProperty(t.prototype,"isEditingSurveyElement",{get:function(){return!!this.editingObj},enumerable:!1,configurable:!0}),t.prototype.setCalculatedValuesIntoResult=function(e){for(var n=0;n<this.calculatedValues.length;n++){var r=this.calculatedValues[n];r.includeIntoResult&&r.name&&this.getVariable(r.name)!==void 0&&(e[r.name]=this.getVariable(r.name))}},t.prototype.getAllValues=function(){return this.data},t.prototype.getPlainData=function(e){e||(e={includeEmpty:!0,includeQuestionTypes:!1,includeValues:!1});var n=[],r=[];if(this.getAllQuestions().forEach(function(u){var d=u.getPlainData(e);d&&(n.push(d),r.push(u.valueName||u.name))}),e.includeValues)for(var o=this.getValuesKeys(),s=0;s<o.length;s++){var a=o[s];if(r.indexOf(a)==-1){var l=this.getDataValueCore(this.valuesHash,a);l&&n.push({name:a,title:a,value:l,displayValue:l,isNode:!1,getString:function(u){return typeof u=="object"?JSON.stringify(u):u}})}}return n},t.prototype.getFilteredValues=function(){var e={};for(var n in this.variablesHash)e[n]=this.variablesHash[n];if(this.addCalculatedValuesIntoFilteredValues(e),!this.isDesignMode){for(var r=this.getValuesKeys(),o=0;o<r.length;o++){var n=r[o];e[n]=this.getDataValueCore(this.valuesHash,n)}this.getAllQuestions().forEach(function(s){s.hasFilteredValue&&(e[s.getFilteredName()]=s.getFilteredValue())})}return e},t.prototype.addCalculatedValuesIntoFilteredValues=function(e){for(var n=this.calculatedValues,r=0;r<n.length;r++)e[n[r].name]=n[r].value},t.prototype.getFilteredProperties=function(){return{survey:this}},t.prototype.getValuesKeys=function(){if(!this.editingObj)return Object.keys(this.valuesHash);for(var e=x.getPropertiesByObj(this.editingObj),n=[],r=0;r<e.length;r++)n.push(e[r].name);return n},t.prototype.getDataValueCore=function(e,n){return this.editingObj?x.getObjPropertyValue(this.editingObj,n):this.getDataFromValueHash(e,n)},t.prototype.setDataValueCore=function(e,n,r){this.editingObj?x.setObjPropertyValue(this.editingObj,n,r):this.setDataToValueHash(e,n,r)},t.prototype.deleteDataValueCore=function(e,n){this.editingObj?this.editingObj[n]=null:this.deleteDataFromValueHash(e,n)},t.prototype.getDataFromValueHash=function(e,n){return this.valueHashGetDataCallback?this.valueHashGetDataCallback(e,n):e[n]},t.prototype.setDataToValueHash=function(e,n,r){this.valueHashSetDataCallback?this.valueHashSetDataCallback(e,n,r):e[n]=r},t.prototype.deleteDataFromValueHash=function(e,n){this.valueHashDeleteDataCallback?this.valueHashDeleteDataCallback(e,n):delete e[n]},Object.defineProperty(t.prototype,"comments",{get:function(){for(var e={},n=this.getValuesKeys(),r=0;r<n.length;r++){var o=n[r];o.indexOf(this.commentSuffix)>0&&(e[o]=this.getDataValueCore(this.valuesHash,o))}return e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"visiblePages",{get:function(){if(this.isDesignMode)return this.pages;if(this.pageContainerValue&&(this.isShowingPreview||this.isSinglePage))return[this.pageContainerValue];for(var e=new Array,n=0;n<this.pages.length;n++)this.isPageInVisibleList(this.pages[n])&&e.push(this.pages[n]);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 this.pages.length==0},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 n=this.getPageByObject(e);if(!(e&&!n)&&!(!n&&this.isCurrentPageAvailable)){var r=this.visiblePages;if(!(n!=null&&r.indexOf(n)<0)&&n!=this.currentPage){var o=this.currentPage;!this.isShowingPreview&&!this.currentSingleQuestion&&!this.currentPageChanging(n,o)||(this.setPropertyValue("currentPage",n),n&&(n.onFirstRendering(),n.updateCustomWidgets(),n.setWasShown(!0)),this.locStrsChanged(),this.isShowingPreview||this.currentPageChanged(n,o))}}}},enumerable:!1,configurable:!0}),t.prototype.tryNavigateToPage=function(e){if(!this.performValidationOnPageChanging(e))return!1;var n=this.visiblePages.indexOf(e),r=n<this.currentPageNo||!this.doServerValidation(!1,!1,e);return r&&(this.currentPage=e),r},t.prototype.performValidationOnPageChanging=function(e){if(this.isDesignMode)return!1;if(this.canGoTroughValidation())return!0;var n=this.visiblePages.indexOf(e);if(n<0||n>=this.visiblePageCount||n===this.currentPageNo)return!1;if(n<this.currentPageNo||this.checkErrorsMode==="onComplete"||this.validationAllowSwitchPages)return!0;if(!this.validateCurrentPage())return!1;for(var r=this.currentPageNo+1;r<n;r++){var o=this.visiblePages[r];if(!o.validate(!0,!0))return!1;o.passed=!0}return!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?!0:!!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 this.state==="starting"},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 this.state=="running"||this.state=="preview"||this.isShowStartingPage},enumerable:!1,configurable:!0}),t.prototype.updateActivePage=function(){var e=this.isShowStartingPage?this.startedPage:this.currentPage;e!==this.activePage&&this.setPropertyValue("activePage",e)},t.prototype.onStateAndCurrentPageChanged=function(){this.updateActivePage(),this.updateButtonsVisibility()},t.prototype.getPageByObject=function(e){if(!e)return null;if(e.getType&&e.getType()=="page")return e;if(typeof e=="string"||e instanceof String)return this.getPageByName(String(e));if(!isNaN(e)){var n=Number(e),r=this.visiblePages;return e<0||e>=r.length?null:r[n]}return e},Object.defineProperty(t.prototype,"currentPageNo",{get:function(){return this.visiblePages.indexOf(this.currentPage)},set:function(e){var n=this.visiblePages;e<0||e>=n.length||(this.currentPage=n[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){e===void 0&&(e=!0);var n=this.activePage;n&&(e&&n.scrollToTop(),this.isCurrentPageRendering&&this.focusFirstQuestionAutomatic&&!this.focusingQuestionInfo&&(n.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,n){this.setPropertyValue("completedState",e),n||(e=="saving"&&(n=this.getLocalizationString("savingData")),e=="error"&&(n=this.getLocalizationString("savingDataError")),e=="success"&&(n=this.getLocalizationString("savingDataSuccess"))),this.setPropertyValue("completedStateText",n),this.state==="completed"&&this.showCompletedPage&&this.completedState&&this.notify(this.completedStateText,this.completedState,e==="error")},t.prototype.notify=function(e,n,r){r===void 0&&(r=!1),this.notifier.showActions=r,this.notifier.notify(e,n,r)},t.prototype.clear=function(e,n){e===void 0&&(e=!0),n===void 0&&(n=!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 r=0;r<this.pages.length;r++)this.pages[r].timeSpent=0,this.pages[r].setWasShown(!1),this.pages[r].passed=!1;if(this.onFirstPageIsStartedChanged(),n&&(this.currentPage=this.firstVisiblePage,this.currentSingleQuestion)){var o=this.getAllQuestions(!0);this.currentSingleQuestion=o.length>0?o[0]:void 0}e&&this.updateValuesWithDefaults()},t.prototype.mergeValues=function(e,n){mt(e,n)},t.prototype.updateValuesWithDefaults=function(){if(!(this.isDesignMode||this.isLoading))for(var e=0;e<this.pages.length;e++)for(var n=this.pages[e].questions,r=0;r<n.length;r++)n[r].updateValueWithDefaults()},t.prototype.updateCustomWidgets=function(e){e&&e.updateCustomWidgets()},t.prototype.currentPageChanging=function(e,n,r,o){var s=this.createPageChangeEventOptions(e,n,r,o);return this.currentPageChangingFromOptions(s)},t.prototype.currentPageChangingFromOptions=function(e){e.allow=!0,e.allowChanging=!0,this.onCurrentPageChanging.fire(this,e);var n=e.allowChanging&&e.allow;return n&&e.newCurrentPage!==e.oldCurrentPage&&(this.isCurrentPageRendering=!0),n},t.prototype.currentPageChanged=function(e,n){if(this.notifyQuestionsOnHidingContent(n),n&&!n.isDisposed&&!n.passed&&n.validate(!1)&&(n.passed=!0),this.isCurrentPageRendered===!0&&(this.isCurrentPageRendered=!1),!this.currentSingleQuestion){var r=this.createPageChangeEventOptions(e,n);this.onCurrentPageChanged.fire(this,r)}},t.prototype.notifyQuestionsOnHidingContent=function(e){e&&!e.isDisposed&&e.questions.forEach(function(n){return n.onHidingContent()})},t.prototype.createPageChangeEventOptions=function(e,n,r,o){var s=e&&n?e.visibleIndex-n.visibleIndex:0,a=s;return a===0&&o&&r&&(a=e.elements.indexOf(r)-e.elements.indexOf(o)),{oldCurrentQuestion:o,newCurrentQuestion:r,oldCurrentPage:n,newCurrentPage:e,isNextPage:s===1,isPrevPage:s===-1,isGoingForward:a>0,isGoingBackward:a<0,isAfterPreview:this.changeCurrentPageFromPreview===!0}},t.prototype.getProgress=function(){if(this.currentPage==null)return 0;if(this.progressBarType!=="pages"){var e=this.getProgressInfo();return this.progressBarType==="requiredQuestions"?e.requiredQuestionCount>=1?Math.ceil(e.requiredAnsweredQuestionCount*100/e.requiredQuestionCount):100:e.questionCount>=1?Math.ceil(e.answeredQuestionCount*100/e.questionCount):100}var n=this.visiblePages,r=n.indexOf(this.currentPage);return Math.ceil(r*100/n.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.activePage;return e?e.navigationButtonsVisibility==="show"?this.showNavigationButtons==="none"?"bottom":this.showNavigationButtons:e.navigationButtonsVisibility==="hide"?"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 n=this.isNavigationButtonsShowing;return n=="both"||n==e},Object.defineProperty(t.prototype,"isEditMode",{get:function(){return this.mode=="edit"},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isDisplayMode",{get:function(){return this.mode=="display"&&!this.isDesignMode||this.state=="preview"},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isUpdateValueTextOnTyping",{get:function(){return this.textUpdateMode=="onTyping"},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 n=this.visiblePages;this.setPropertyValue("showInvisibleElements",e),!this.isLoadingFromJson&&(this.runConditions(),this.updateAllElementsVisibility(n))},enumerable:!1,configurable:!0}),t.prototype.updateAllElementsVisibility=function(e){for(var n=0;n<this.pages.length;n++){var r=this.pages[n];r.updateElementVisibility(),e.indexOf(r)>-1!=r.isVisible&&this.onPageVisibleChanged.fire(this,{page:r,visible:r.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&&this.showPreviewBeforeComplete=="showAnsweredQuestions"&&this.isAnyQuestionAnswered},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isAnyQuestionAnswered",{get:function(){for(var e=this.getAllQuestions(!0),n=0;n<e.length;n++)if(!e[n].isEmpty())return!0;return!1},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hasCookie",{get:function(){if(!this.cookieName)return!1;var e=I.getCookie();return e&&e.indexOf(this.cookieName+"=true")>-1},enumerable:!1,configurable:!0}),t.prototype.setCookie=function(){this.cookieName&&I.setCookie(this.cookieName+"=true; expires=Fri, 31 Dec 9999 0:0:0 GMT")},t.prototype.deleteCookie=function(){this.cookieName&&I.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.currentSingleQuestion?this.performNext():this.isLastPage?!1:this.doCurrentPageComplete(!1)},t.prototype.performNext=function(){var e=this.currentSingleQuestion;if(!e)return this.nextPage();if(!e.validate(!0))return!1;var n=this.getAllQuestions(!0),r=n.indexOf(e);return r<0||r===n.length-1?!1:(this.currentSingleQuestion=n[r+1],!0)},t.prototype.performPrevious=function(){var e=this.currentSingleQuestion;if(!e)return this.prevPage();var n=this.getAllQuestions(!0),r=n.indexOf(e);return r===0?!1:(this.currentSingleQuestion=n[r-1],!0)},t.prototype.hasErrorsOnNavigate=function(e){var n=this;if(this.canGoTroughValidation())return!1;var r=e&&this.validationAllowComplete||!e&&this.validationAllowSwitchPages,o=function(s){(!s||r)&&n.doCurrentPageCompleteCore(e)};return this.isValidateOnComplete?this.isLastPage?this.validate(!0,this.focusOnFirstError,o,!0)!==!0&&!r:!1:this.validateCurrentPage(o)!==!0&&!r},t.prototype.canGoTroughValidation=function(){return!this.isEditMode||!this.validationEnabled},t.prototype.checkForAsyncQuestionValidation=function(e,n){var r=this;this.clearAsyncValidationQuesitons();for(var o=function(){if(e[a].isRunningValidators){var l=e[a];l.onCompletedAsyncValidators=function(u){r.onCompletedAsyncQuestionValidators(l,n,u)},s.asyncValidationQuesitons.push(e[a])}},s=this,a=0;a<e.length;a++)o();return this.asyncValidationQuesitons.length>0},t.prototype.clearAsyncValidationQuesitons=function(){if(this.asyncValidationQuesitons)for(var e=this.asyncValidationQuesitons,n=0;n<e.length;n++)e[n].onCompletedAsyncValidators=null;this.asyncValidationQuesitons=[]},t.prototype.onCompletedAsyncQuestionValidators=function(e,n,r){if(r){if(this.clearAsyncValidationQuesitons(),n(!0),this.focusOnFirstError&&e&&e.page&&e.page===this.currentPage){for(var o=this.currentPage.questions,s=0;s<o.length;s++)if(o[s]!==e&&o[s].errors.length>0)return;e.focus(!0)}return}for(var a=this.asyncValidationQuesitons,l=0;l<a.length;l++)if(a[l].isRunningValidators)return;n(!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,n){var r=this.validatePage(e,n);return r===void 0?r:!r},t.prototype.validatePage=function(e,n){return e||(e=this.activePage),e?this.checkIsPageHasErrors(e)?!1:n&&this.checkForAsyncQuestionValidation(e.questions,function(r){return n(r)})?void 0:!0:!0},t.prototype.hasErrors=function(e,n,r){e===void 0&&(e=!0),n===void 0&&(n=!1);var o=this.validate(e,n,r);return o===void 0?o:!o},t.prototype.validate=function(e,n,r,o){e===void 0&&(e=!0),n===void 0&&(n=!1),r&&(e=!0);for(var s=this.visiblePages,a=!0,l={fireCallback:e,focusOnFirstError:n,firstErrorQuestion:null,result:!1},u=0;u<s.length;u++)s[u].validate(e,n,l)||(a=!1);return l.firstErrorQuestion&&(n||o)&&(n?l.firstErrorQuestion.focus(!0):this.currentPage=l.firstErrorQuestion.page),!a||!r?a:this.checkForAsyncQuestionValidation(this.getAllQuestions(),function(d){return r(d)})?void 0:!0},t.prototype.ensureUniqueNames=function(e){if(e===void 0&&(e=null),e==null)for(var n=0;n<this.pages.length;n++)this.ensureUniqueName(this.pages[n]);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 n=e.elements,r=0;r<n.length;r++)this.ensureUniqueNames(n[r]);else this.ensureUniqueQuestionName(e)},t.prototype.ensureUniquePageName=function(e){var n=this;return this.ensureUniqueElementName(e,function(r){return n.getPageByName(r)})},t.prototype.ensureUniquePanelName=function(e){var n=this;return this.ensureUniqueElementName(e,function(r){return n.getPanelByName(r)})},t.prototype.ensureUniqueQuestionName=function(e){var n=this;return this.ensureUniqueElementName(e,function(r){return n.getQuestionByName(r)})},t.prototype.ensureUniqueElementName=function(e,n){var r=n(e.name);if(!(!r||r==e)){for(var o=this.getNewName(e.name);n(o);)var o=this.getNewName(e.name);e.name=o}},t.prototype.getNewName=function(e){for(var n=e.length;n>0&&e[n-1]>="0"&&e[n-1]<="9";)n--;var r=e.substring(0,n),o=0;return n<e.length&&(o=parseInt(e.substring(n))),o++,r+o},t.prototype.checkIsCurrentPageHasErrors=function(e){return e===void 0&&(e=void 0),this.checkIsPageHasErrors(this.activePage,e)},t.prototype.checkIsPageHasErrors=function(e,n){if(n===void 0&&(n=void 0),n===void 0&&(n=this.focusOnFirstError),!e)return!0;var r=!1;return this.currentSingleQuestion?r=!this.currentSingleQuestion.validate(!0):r=!e.validate(!0,n),this.fireValidatedErrorsOnPage(e),r},t.prototype.fireValidatedErrorsOnPage=function(e){if(!(this.onValidatedErrorsOnCurrentPage.isEmpty||!e)){for(var n=e.questions,r=new Array,o=new Array,s=0;s<n.length;s++){var a=n[s];if(a.errors.length>0){r.push(a);for(var l=0;l<a.errors.length;l++)o.push(a.errors[l])}}this.onValidatedErrorsOnCurrentPage.fire(this,{questions:r,errors:o,page:e})}},t.prototype.prevPage=function(){var e=this;if(this.currentSingleQuestion)return this.performPrevious();if(this.isFirstPage||this.state==="starting")return!1;this.resetNavigationButton();var n=this.skippedPages.find(function(s){return s.to==e.currentPage});if(n)this.currentPage=n.from,this.skippedPages.splice(this.skippedPages.indexOf(n),1);else{var r=this.visiblePages,o=r.indexOf(this.currentPage);this.currentPage=r[o-1]}return!0},t.prototype.tryComplete=function(){this.isValidateOnComplete&&this.cancelPreview();var e=this.doCurrentPageComplete(!0);return e&&this.cancelPreview(),e},t.prototype.completeLastPage=function(){return this.tryComplete()},t.prototype.navigationMouseDown=function(){return this.isNavigationButtonPressed=!0,!0},t.prototype.resetNavigationButton=function(){this.isNavigationButtonPressed=!1},t.prototype.nextPageUIClick=function(){return this.mouseDownPage&&this.mouseDownPage!==this.activePage?!1:(this.mouseDownPage=null,this.performNext())},t.prototype.nextPageMouseDown=function(){return this.mouseDownPage=this.activePage,this.navigationMouseDown()},t.prototype.showPreview=function(){return this.resetNavigationButton(),!this.isValidateOnComplete&&(this.hasErrorsOnNavigate(!0)||this.doServerValidation(!0,!0))?!1:(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){e===void 0&&(e=null),this.isShowingPreview&&(this.gotoPageFromPreview=e,this.isShowingPreview=!1)},t.prototype.cancelPreviewByPage=function(e){this.cancelPreview(e)},t.prototype.doCurrentPageComplete=function(e){return this.isValidatingOnServer||(this.resetNavigationButton(),this.hasErrorsOnNavigate(e))?!1:this.doCurrentPageCompleteCore(e)},t.prototype.doCurrentPageCompleteCore=function(e){return this.doServerValidation(e)?!1:e?(this.currentPage.passed=!0,this.doComplete(this.canBeCompletedByTrigger,this.completedTrigger)):(this.doNextPage(),!0)},Object.defineProperty(t.prototype,"isSinglePage",{get:function(){return this.questionsOnPageMode=="singlePage"},set:function(e){this.questionsOnPageMode=e?"singlePage":"standard"},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isSingleVisibleQuestion",{get:function(){return this.isSingleVisibleQuestionVal(this.questionsOnPageMode)},enumerable:!1,configurable:!0}),t.prototype.isSingleVisibleQuestionVal=function(e){return e==="questionPerPage"||e==="questionOnPage"},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 e=="showAllQuestions"||e=="showAnsweredQuestions"},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(){this.updatePagesContainer()},t.prototype.createRootPage=function(e,n){var r=x.createClass("page");return r.name=e,r.isPageContainer=!0,n.forEach(function(o){o.isStartPage||r.addElement(o)}),r},t.prototype.disposeContainerPage=function(){var e=this.pageContainerValue,n=[].concat(e.elements);n.forEach(function(r){return e.removeElement(r)}),e.dispose(),this.pageContainerValue=void 0},t.prototype.updatePagesContainer=function(){if(!this.isDesignMode){this.getAllQuestions().forEach(function(a){return a.updateElementVisibility()}),this.setPropertyValue("currentPage",void 0);var e="single-page",n="preview-page",r=void 0;if(this.isSinglePage){var o=this.pageContainerValue;o&&o.name===n?(r=o.elements[0],this.disposeContainerPage()):r=this.createRootPage(e,this.pages)}if(this.isShowingPreview&&(r=this.createRootPage(n,r?[r]:this.pages)),r&&(r.setSurveyImpl(this),this.pageContainerValue=r,this.currentPage=r),!this.isSinglePage&&!this.isShowingPreview){this.disposeContainerPage();var s=this.gotoPageFromPreview;this.gotoPageFromPreview=null,P.isValueEmpty(s)&&this.visiblePageCount>0&&(s=this.visiblePages[this.visiblePageCount-1]),s&&(this.changeCurrentPageFromPreview=!0,this.currentPage=s,this.changeCurrentPageFromPreview=!1)}!this.currentPage&&this.visiblePageCount>0&&(this.currentPage=this.visiblePages[0]),this.pages.forEach(function(a){a.hasShown&&a.updateElementCss(!0)}),this.updateButtonsVisibility()}},Object.defineProperty(t.prototype,"currentSingleQuestion",{get:function(){return this.currentSingleQuestionValue},set:function(e){var n=this.currentSingleQuestion;if(e!==n){var r=e&&n?this.createPageChangeEventOptions(e.page,n.page,e,n):void 0;if(r&&!this.currentPageChangingFromOptions(r))return;if(this.currentSingleQuestionValue=e,e){var o=e.page;o.updateRows(),o!==this.currentPage?this.currentPage=o:this.focusFirstQuestionAutomatic&&e.focus(),this.updateButtonsVisibility(),r&&this.onCurrentPageChanged.fire(this,r)}else this.visiblePages.forEach(function(s){return s.updateRows()})}},enumerable:!1,configurable:!0}),t.prototype.onQuestionsOnPageModeChanged=function(e){if(!(this.isShowingPreview||this.isDesignMode)&&(this.currentSingleQuestion=void 0,e==="singlePage"&&this.updatePagesContainer(),this.isSinglePage&&this.updatePagesContainer(),this.isSingleVisibleQuestion)){var n=this.getAllQuestions(!0);n.length>0&&(this.currentSingleQuestion=n[0])}},t.prototype.getPageStartIndex=function(){return this.firstPageIsStarted&&this.pages.length>0?1:0},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}),Object.defineProperty(t.prototype,"isFirstElement",{get:function(){return this.getPropertyValue("isFirstElement")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isLastElement",{get:function(){return this.getPropertyValue("isLastElement")},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);var n=void 0,r=void 0,o=this.currentSingleQuestion;if(o){var s=this.getAllQuestions(!0),a=s.indexOf(o);a>=0&&(n=a===0,r=a===s.length-1)}this.setPropertyValue("isFirstElement",n),this.setPropertyValue("isLastElement",r)},Object.defineProperty(t.prototype,"isLastPageOrElement",{get:function(){return this.isLastElement!==void 0?this.isLastElement:this.isLastPage},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isFirstPageOrElement",{get:function(){return this.isFirstElement!==void 0?this.isFirstElement:this.isFirstPage},enumerable:!1,configurable:!0}),t.prototype.calcIsShowPrevButton=function(){if(this.isFirstPageOrElement||!this.showPrevButton||this.state!=="running")return!1;if(this.isFirstElement!==void 0)return!0;var e=this.visiblePages[this.currentPageNo-1];return e&&e.getMaxTimeToFinish()<=0},t.prototype.calcIsShowNextButton=function(){return this.state==="running"&&!this.isLastPageOrElement&&!this.canBeCompletedByTrigger},t.prototype.calcIsCompleteButtonVisible=function(){var e=this.state;return this.isEditMode&&(this.state==="running"&&(this.isLastPageOrElement&&!this.isShowPreviewBeforeComplete||this.canBeCompletedByTrigger)||e==="preview")&&this.showCompleteButton},t.prototype.calcIsPreviewButtonVisible=function(){return this.isEditMode&&this.isShowPreviewBeforeComplete&&this.state=="running"&&this.isLastPageOrElement},t.prototype.calcIsCancelPreviewButtonVisible=function(){return this.isEditMode&&this.isShowPreviewBeforeComplete&&this.state=="preview"},Object.defineProperty(t.prototype,"firstVisiblePage",{get:function(){if(this.visiblePageCount===1)return this.visiblePages[0];for(var e=this.pages,n=0;n<e.length;n++)if(this.isPageInVisibleList(e[n]))return e[n];return null},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"lastVisiblePage",{get:function(){if(this.visiblePageCount===1)return this.visiblePages[0];for(var e=this.pages,n=e.length-1;n>=0;n--)if(this.isPageInVisibleList(e[n]))return e[n];return null},enumerable:!1,configurable:!0}),t.prototype.doComplete=function(e,n){if(e===void 0&&(e=!1),!this.isCompleted)return this.checkOnCompletingEvent(e,n)?(this.checkOnPageTriggers(!0),this.stopTimer(),this.notifyQuestionsOnHidingContent(this.currentPage),this.isCompleted=!0,this.clearUnusedValues(),this.saveDataOnComplete(e,n),this.setCookie(),!0):(this.isCompleted=!1,!1)},t.prototype.saveDataOnComplete=function(e,n){var r=this;e===void 0&&(e=!1);var o=this.hasCookie,s=function(V){d=!0,r.setCompletedState("saving",V)},a=function(V){r.setCompletedState("error",V)},l=function(V){r.setCompletedState("success",V),r.navigateTo()},u=function(V){r.setCompletedState("","")},d=!1,v={isCompleteOnTrigger:e,completeTrigger:n,showSaveInProgress:s,showSaveError:a,showSaveSuccess:l,clearSaveMessages:u,showDataSaving:s,showDataSavingError:a,showDataSavingSuccess:l,showDataSavingClear:u};this.onComplete.fire(this,v),!o&&this.surveyPostId&&this.sendResult(),d||this.navigateTo()},t.prototype.checkOnCompletingEvent=function(e,n){var r={allowComplete:!0,allow:!0,isCompleteOnTrigger:e,completeTrigger:n};return this.onCompleting.fire(this,r),r.allowComplete&&r.allow},t.prototype.start=function(){return!this.firstPageIsStarted||(this.isCurrentPageRendering=!0,this.checkIsPageHasErrors(this.startedPage,!0))?!1:(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,n,r){var o=this,s={data:{},errors:{},survey:this,complete:function(){o.completeServerValidation(s,n,r)}};if(e&&this.isValidateOnComplete)s.data=this.data;else for(var a=this.activePage.questions,l=0;l<a.length;l++){var u=a[l];if(u.visible){var d=this.getValue(u.getValueName());this.isValueEmpty(d)||(s.data[u.getValueName()]=d)}}return s},t.prototype.onIsValidatingOnServerChanged=function(){},t.prototype.doServerValidation=function(e,n,r){var o=this;if(n===void 0&&(n=!1),!this.onServerValidateQuestions||this.onServerValidateQuestions.isEmpty||!e&&this.isValidateOnComplete)return!1;this.setIsValidatingOnServer(!0);var s=typeof this.onServerValidateQuestions=="function";return this.serverValidationEventCount=s?1:this.onServerValidateQuestions.length,s?this.onServerValidateQuestions(this,this.createServerValidationOptions(e,n,r)):this.onServerValidateQuestions.fireByCreatingOptions(this,function(){return o.createServerValidationOptions(e,n,r)}),!0},t.prototype.completeServerValidation=function(e,n,r){if(!(this.serverValidationEventCount>1&&(this.serverValidationEventCount--,e&&e.errors&&Object.keys(e.errors).length===0))&&(this.serverValidationEventCount=0,this.setIsValidatingOnServer(!1),!(!e&&!e.survey))){var o=e.survey,s=!1;if(e.errors){var a=this.focusOnFirstError;for(var l in e.errors){var u=o.getQuestionByName(l);u&&u.errors&&(s=!0,u.addError(new we(e.errors[l],this)),a&&(a=!1,u.page&&(this.currentPage=u.page),u.focus(!0)))}this.fireValidatedErrorsOnPage(this.currentPage)}s||(n?this.showPreviewCore():r?this.currentPage=r:o.isLastPage?o.doComplete():o.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 n=this.visiblePages,r=n.indexOf(this.currentPage);this.currentPage=n[r+1]}},t.prototype.setCompleted=function(e){this.doComplete(!0,e)},t.prototype.canBeCompleted=function(e,n){var r;if(b.triggers.changeNavigationButtonsOnComplete){var o=this.canBeCompletedByTrigger;this.completedByTriggers||(this.completedByTriggers={}),n?this.completedByTriggers[e.id]={trigger:e,pageId:(r=this.currentPage)===null||r===void 0?void 0:r.id}:delete this.completedByTriggers[e.id],o!==this.canBeCompletedByTrigger&&this.updateButtonsVisibility()}},Object.defineProperty(t.prototype,"canBeCompletedByTrigger",{get:function(){var e;if(!this.completedByTriggers)return!1;var n=Object.keys(this.completedByTriggers);if(n.length===0)return!1;var r=(e=this.currentPage)===null||e===void 0?void 0:e.id;if(!r)return!0;for(var o=0;o<n.length;o++)if(r===this.completedByTriggers[n[o]].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 le.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){e===void 0&&(e=!1),!(this.isCalculatingProgressText||this.isShowingPreview)&&(e&&this.progressBarType=="pages"&&this.onGetProgressText.isEmpty||(this.isCalculatingProgressText=!0,this.setPropertyValue("progressText",this.getProgressText()),this.setPropertyValue("progressValue",this.getProgress()),this.isCalculatingProgressText=!1))},t.prototype.getProgressText=function(){if(!this.isDesignMode&&this.currentPage==null)return"";var e={questionCount:0,answeredQuestionCount:0,requiredQuestionCount:0,requiredAnsweredQuestionCount:0,text:""},n=this.progressBarType.toLowerCase();if(n==="questions"||n==="requiredquestions"||n==="correctquestions"||!this.onGetProgressText.isEmpty){var r=this.getProgressInfo();e.questionCount=r.questionCount,e.answeredQuestionCount=r.answeredQuestionCount,e.requiredQuestionCount=r.requiredQuestionCount,e.requiredAnsweredQuestionCount=r.requiredAnsweredQuestionCount}return e.text=this.getProgressTextCore(e),this.onGetProgressText.fire(this,e),e.text},t.prototype.getProgressTextCore=function(e){var n=this.progressBarType.toLowerCase();if(n==="questions")return this.getLocalizationFormatString("questionsProgressText",e.answeredQuestionCount,e.questionCount);if(n==="requiredquestions")return this.getLocalizationFormatString("questionsProgressText",e.requiredAnsweredQuestionCount,e.requiredQuestionCount);if(n==="correctquestions"){var r=this.getCorrectedAnswerCount();return this.getLocalizationFormatString("questionsProgressText",r,e.questionCount)}var o=this.isDesignMode?this.pages:this.visiblePages,s=o.indexOf(this.currentPage)+1;return this.getLocalizationFormatString("progressText",s,o.length)},t.prototype.getRootCss=function(){return new O().append(this.css.root).append(this.css.rootProgress+"--"+this.progressBarType).append(this.css.rootMobile,this.isMobile).append(this.css.rootAnimationDisabled,!b.animationEnabled).append(this.css.rootReadOnly,this.mode==="display"&&!this.isDesignMode).append(this.css.rootCompact,this.isCompact).append(this.css.rootFitToContainer,this.fitToContainer).toString()},t.prototype.afterRenderSurvey=function(e){var n=this;this.destroyResizeObserver(),Array.isArray(e)&&(e=le.GetFirstNonTextElement(e));var r=e,o=this.css.variables;if(o){var s=Number.parseFloat(I.getComputedStyle(r).getPropertyValue(o.mobileWidth));if(s){var a=!1;this.resizeObserver=new ResizeObserver(function(l){E.requestAnimationFrame(function(){a||!ar(r)?a=!1:a=n.processResponsiveness(r.offsetWidth,s,r.offsetHeight)})}),this.resizeObserver.observe(r)}}this.onAfterRenderSurvey.fire(this,{survey:this,htmlElement:e}),this.rootElement=e,this.addScrollEventListener()},t.prototype.beforeDestroySurveyElement=function(){this.destroyResizeObserver(),this.removeScrollEventListener(),this.rootElement=void 0},t.prototype.processResponsiveness=function(e,n,r){var o=e<n,s=this.isMobile!==o;this.setIsMobile(o),this.layoutElements.forEach(function(l){return l.processResponsiveness&&l.processResponsiveness(e)});var a={height:r,width:e};return this.onResize.fire(this,a),s},t.prototype.triggerResponsiveness=function(e){this.getAllQuestions().forEach(function(n){n.triggerResponsiveness(e)})},t.prototype.destroyResizeObserver=function(){this.resizeObserver&&(this.resizeObserver.disconnect(),this.resizeObserver=void 0)},t.prototype.updateQuestionCssClasses=function(e,n){this.onUpdateQuestionCssClasses.fire(this,{question:e,cssClasses:n})},t.prototype.updatePanelCssClasses=function(e,n){this.onUpdatePanelCssClasses.fire(this,{panel:e,cssClasses:n})},t.prototype.updatePageCssClasses=function(e,n){this.onUpdatePageCssClasses.fire(this,{page:e,cssClasses:n})},t.prototype.updateChoiceItemCss=function(e,n){n.question=e,this.onUpdateChoiceItemCss.fire(this,n)},t.prototype.afterRenderPage=function(e){var n=this;if(!this.isDesignMode&&!this.focusingQuestionInfo){var r=this.isCurrentPageRendered===!1;setTimeout(function(){return n.scrollToTopOnPageChange(r)},1)}this.focusQuestionInfo(),this.isCurrentPageRendered=!0,!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,n){this.onAfterRenderQuestion.fire(this,{question:e,htmlElement:n})},t.prototype.afterRenderQuestionInput=function(e,n){if(!this.onAfterRenderQuestionInput.isEmpty){var r=e.inputId,o=b.environment.root;if(r&&(!n||n.id!==r)&&typeof o<"u"){var s=o.getElementById(r);s&&(n=s)}this.onAfterRenderQuestionInput.fire(this,{question:e,htmlElement:n})}},t.prototype.afterRenderPanel=function(e,n){this.onAfterRenderPanel.fire(this,{panel:e,htmlElement:n})},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,n,r){var o={question:e,item:n,visible:r};return this.onShowingChoiceItem.fire(this,o),o.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,n){this.onMatrixRowAdded.fire(this,{question:e,row:n})},t.prototype.matrixColumnAdded=function(e,n){this.onMatrixColumnAdded.fire(this,{question:e,column:n})},t.prototype.multipleTextItemAdded=function(e,n){this.onMultipleTextItemAdded.fire(this,{question:e,item:n})},t.prototype.getQuestionByValueNameFromArray=function(e,n,r){var o=this.getQuestionsByValueName(e);if(o){for(var s=0;s<o.length;s++){var a=o[s].getQuestionFromArray(n,r);if(a)return a}return null}},t.prototype.matrixRowRemoved=function(e,n,r){this.onMatrixRowRemoved.fire(this,{question:e,rowIndex:n,row:r})},t.prototype.matrixRowRemoving=function(e,n,r){var o={question:e,rowIndex:n,row:r,allow:!0};return this.onMatrixRowRemoving.fire(this,o),o.allow},t.prototype.matrixAllowRemoveRow=function(e,n,r){var o={question:e,rowIndex:n,row:r,allow:!0};return this.onMatrixRenderRemoveButton.fire(this,o),o.allow},t.prototype.matrixDetailPanelVisibleChanged=function(e,n,r,o){var s={question:e,rowIndex:n,row:r,visible:o,detailPanel:r.detailPanel};this.onMatrixDetailPanelVisibleChanged.fire(this,s)},t.prototype.matrixCellCreating=function(e,n){n.question=e,this.onMatrixCellCreating.fire(this,n)},t.prototype.matrixCellCreated=function(e,n){n.question=e,this.onMatrixCellCreated.fire(this,n)},t.prototype.matrixAfterCellRender=function(e,n){n.question=e,this.onAfterRenderMatrixCell.fire(this,n)},t.prototype.matrixCellValueChanged=function(e,n){n.question=e,this.onMatrixCellValueChanged.fire(this,n)},t.prototype.matrixCellValueChanging=function(e,n){n.question=e,this.onMatrixCellValueChanging.fire(this,n)},Object.defineProperty(t.prototype,"isValidateOnValueChanging",{get:function(){return this.checkErrorsMode==="onValueChanging"},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isValidateOnValueChanged",{get:function(){return this.checkErrorsMode==="onValueChanged"},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isValidateOnValueChange",{get:function(){return this.isValidateOnValueChanged||this.isValidateOnValueChanging},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isValidateOnComplete",{get:function(){return this.checkErrorsMode==="onComplete"||this.validationAllowSwitchPages&&!this.validationAllowComplete},enumerable:!1,configurable:!0}),t.prototype.matrixCellValidate=function(e,n){return n.question=e,this.onMatrixCellValidate.fire(this,n),n.error?new we(n.error,this):null},t.prototype.dynamicPanelAdded=function(e,n,r){if(!this.isLoadingFromJson&&this.hasQuestionVisibleIndeces(e)&&this.updateVisibleIndexes(e.page),!this.onDynamicPanelAdded.isEmpty){var o=e.panels;n===void 0&&(n=o.length-1,r=o[n]),this.onDynamicPanelAdded.fire(this,{question:e,panel:r,panelIndex:n})}},t.prototype.dynamicPanelRemoved=function(e,n,r){for(var o=r?r.questions:[],s=0;s<o.length;s++)o[s].clearOnDeletingContainer();this.hasQuestionVisibleIndeces(e)&&this.updateVisibleIndexes(e.page),this.onDynamicPanelRemoved.fire(this,{question:e,panelIndex:n,panel:r})},t.prototype.hasQuestionVisibleIndeces=function(e){for(var n=e.getNestedQuestions(!0),r=0;r<n.length;r++)if(n[r].visibleIndex>-1)return!0;return!1},t.prototype.dynamicPanelRemoving=function(e,n,r){var o={question:e,panelIndex:n,panel:r,allow:!0};return this.onDynamicPanelRemoving.fire(this,o),o.allow},t.prototype.dynamicPanelItemValueChanged=function(e,n){n.question=e,this.onDynamicPanelValueChanged.fire(this,n)},t.prototype.dynamicPanelItemValueChanging=function(e,n){n.question=e,this.onDynamicPanelValueChanging.fire(this,n)},t.prototype.dynamicPanelGetTabTitle=function(e,n){n.question=e,this.onGetDynamicPanelTabTitle.fire(this,n)},t.prototype.dynamicPanelCurrentIndexChanged=function(e,n){n.question=e,this.onDynamicPanelCurrentIndexChanged.fire(this,n)},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,n,r){var o={question:r,panel:e,actions:n};return this.onGetPanelFooterActions.fire(this,o),o.actions},t.prototype.getUpdatedElementTitleActions=function(e,n){return e.isPage?this.getUpdatedPageTitleActions(e,n):e.isPanel?this.getUpdatedPanelTitleActions(e,n):this.getUpdatedQuestionTitleActions(e,n)},t.prototype.getTitleActionsResult=function(e,n){return e!=n.actions?n.actions:e!=n.titleActions?n.titleActions:e},t.prototype.getUpdatedQuestionTitleActions=function(e,n){var r={question:e,actions:n,titleActions:n};return this.onGetQuestionTitleActions.fire(this,r),this.getTitleActionsResult(n,r)},t.prototype.getUpdatedPanelTitleActions=function(e,n){var r={panel:e,actions:n,titleActions:n};return this.onGetPanelTitleActions.fire(this,r),this.getTitleActionsResult(n,r)},t.prototype.getUpdatedPageTitleActions=function(e,n){var r={page:e,actions:n,titleActions:n};return this.onGetPageTitleActions.fire(this,r),this.getTitleActionsResult(n,r)},t.prototype.getUpdatedMatrixRowActions=function(e,n,r){var o={question:e,actions:r,row:n};return this.onGetMatrixRowActions.fire(this,o),o.actions},t.prototype.scrollElementToTop=function(e,n,r,o,s,a,l,u){var d=this,v={element:e,question:n,page:r,elementId:o,cancel:!1,allow:!0};if(this.onScrollToTop.fire(this,v),!v.cancel&&v.allow){var V=this.getPageByElement(e);if(this.isLazyRendering&&V){var T=1,R=b.environment.rootElement,N=this.rootElement||l||R;this.skeletonHeight&&N&&typeof N.getBoundingClientRect=="function"&&(T=N.getBoundingClientRect().height/this.skeletonHeight-1),V.forceRenderElement(e,function(){d.suspendLazyRendering(),le.ScrollElementToTop(v.elementId,s,a,function(){d.releaseLazyRendering(),er(V.id),u&&u()})},T)}else if(e.isPage&&!this.isSinglePage&&!this.isDesignMode&&this.rootElement){var j=this.rootElement.querySelector(be(this.css.rootWrapper));le.ScrollElementToViewCore(j,!1,s,a,u)}else le.ScrollElementToTop(v.elementId,s,a,u)}},t.prototype.chooseFiles=function(e,n,r){this.onOpenFileChooser.isEmpty?go(e,n):this.onOpenFileChooser.fire(this,{input:e,element:r&&r.element||this.survey,elementType:r&&r.elementType,item:r&&r.item,propertyName:r&&r.propertyName,callback:n,context:r})},t.prototype.uploadFiles=function(e,n,r,o){var s=this;this.onUploadFiles.isEmpty?o("error",this.getLocString("noUploadFilesHandler")):this.taskManager.runTask("file",function(a){s.onUploadFiles.fire(s,{question:e,name:n,files:r||[],callback:function(l,u){o(l,u),a()}})}),this.surveyPostId&&this.uploadFilesCore(n,r,o)},t.prototype.downloadFile=function(e,n,r,o){this.onDownloadFile.isEmpty&&o&&o("skipped",r.content||r),this.onDownloadFile.fire(this,{question:e,name:n,content:r.content||r,fileValue:r,callback:o})},t.prototype.clearFiles=function(e,n,r,o,s){this.onClearFiles.isEmpty&&s&&s("success",r),this.onClearFiles.fire(this,{question:e,name:n,value:r,fileName:o,callback:s})},t.prototype.updateChoicesFromServer=function(e,n,r){var o={question:e,choices:n,serverResult:r};return this.onLoadChoicesFromServer.fire(this,o),o.choices},t.prototype.loadedChoicesFromServer=function(e){this.locStrsChanged()},t.prototype.createSurveyService=function(){return new Jo},t.prototype.uploadFilesCore=function(e,n,r){var o=this,s=[];n.forEach(function(a){r&&r("uploading",a),o.createSurveyService().sendFile(o.surveyPostId,a,function(l,u){l?(s.push({content:u,file:a}),s.length===n.length&&r&&r("success",s)):r&&r("error",{response:u,file:a})})})},t.prototype.getPage=function(e){return this.pages[e]},t.prototype.addPage=function(e,n){n===void 0&&(n=-1),e!=null&&(n<0||n>=this.pages.length?this.pages.push(e):this.pages.splice(n,0,e))},t.prototype.addNewPage=function(e,n){e===void 0&&(e=null),n===void 0&&(n=-1);var r=this.createNewPage(e);return this.addPage(r,n),r},t.prototype.removePage=function(e){var n=this.pages.indexOf(e);n<0||(this.pages.splice(n,1),this.currentPage==e&&(this.currentPage=this.pages.length>0?this.pages[0]:null))},t.prototype.getQuestionByName=function(e,n){if(n===void 0&&(n=!1),!e)return null;n&&(e=e.toLowerCase());var r=n?this.questionHashes.namesInsensitive:this.questionHashes.names,o=r[e];return o?o[0]:null},t.prototype.findQuestionByName=function(e){return this.getQuestionByName(e)},t.prototype.getEditingSurveyElement=function(){return this.editingObjValue},t.prototype.getQuestionByValueName=function(e,n){n===void 0&&(n=!1);var r=this.getQuestionsByValueName(e,n);return r?r[0]:null},t.prototype.getQuestionsByValueName=function(e,n){n===void 0&&(n=!1);var r=n?this.questionHashes.valueNamesInsensitive:this.questionHashes.valueNames,o=r[e];return o||null},t.prototype.getCalculatedValueByName=function(e){for(var n=0;n<this.calculatedValues.length;n++)if(e==this.calculatedValues[n].name)return this.calculatedValues[n];return null},t.prototype.getQuestionsByNames=function(e,n){n===void 0&&(n=!1);var r=[];if(!e)return r;for(var o=0;o<e.length;o++)if(e[o]){var s=this.getQuestionByName(e[o],n);s&&r.push(s)}return r},t.prototype.getPageByElement=function(e){for(var n=0;n<this.pages.length;n++){var r=this.pages[n];if(r.containsElement(e))return r}return null},t.prototype.getPageByQuestion=function(e){return this.getPageByElement(e)},t.prototype.getPageByName=function(e){for(var n=0;n<this.pages.length;n++)if(this.pages[n].name==e)return this.pages[n];return null},t.prototype.getPagesByNames=function(e){var n=[];if(!e)return n;for(var r=0;r<e.length;r++)if(e[r]){var o=this.getPageByName(e[r]);o&&n.push(o)}return n},t.prototype.getAllQuestions=function(e,n,r){e===void 0&&(e=!1),n===void 0&&(n=!1),r===void 0&&(r=!1),r&&(n=!1);for(var o=[],s=0;s<this.pages.length;s++)this.pages[s].addQuestionsToList(o,e,n);if(!r)return o;var a=[];return o.forEach(function(l){a.push(l),l.getNestedQuestions(e).forEach(function(u){return a.push(u)})}),a},t.prototype.getQuizQuestions=function(){for(var e=new Array,n=this.getPageStartIndex(),r=n;r<this.pages.length;r++)if(this.pages[r].isVisible)for(var o=this.pages[r].questions,s=0;s<o.length;s++){var a=o[s];a.quizQuestionCount>0&&e.push(a)}return e},t.prototype.getPanelByName=function(e,n){n===void 0&&(n=!1);var r=this.getAllPanels();n&&(e=e.toLowerCase());for(var o=0;o<r.length;o++){var s=r[o].name;if(n&&(s=s.toLowerCase()),s==e)return r[o]}return null},t.prototype.getAllPanels=function(e,n){e===void 0&&(e=!1),n===void 0&&(n=!1);for(var r=new Array,o=0;o<this.pages.length;o++)this.pages[o].addPanelsIntoList(r,e,n);return r},t.prototype.createNewPage=function(e){var n=x.createClass("page");return n.name=e,n},t.prototype.getValueChangeReason=function(){return this.isSettingValueOnExpression?"expression":this.isSettingValueFromTrigger?"trigger":void 0},t.prototype.questionOnValueChanging=function(e,n,r){if(this.editingObj){var o=x.findProperty(this.editingObj.getType(),e);o&&(n=o.settingValue(this.editingObj,n))}if(this.onValueChanging.isEmpty)return n;var s={name:e,question:this.getQuestionByValueName(r||e),value:this.getUnbindValue(n),oldValue:this.getValue(e),reason:this.getValueChangeReason()};return this.onValueChanging.fire(this,s),s.value},t.prototype.updateQuestionValue=function(e,n){if(!this.isLoadingFromJson){var r=this.getQuestionsByValueName(e);if(r)for(var o=0;o<r.length;o++){var s=r[o].value;(s===n&&Array.isArray(s)&&this.editingObj||!this.isTwoValueEquals(s,n))&&r[o].updateValueFromSurvey(n,!1)}}},t.prototype.checkQuestionErrorOnValueChanged=function(e){!this.isNavigationButtonPressed&&(this.isValidateOnValueChanged||e.getAllErrors().length>0)&&this.checkQuestionErrorOnValueChangedCore(e)},t.prototype.checkQuestionErrorOnValueChangedCore=function(e){var n=e.getAllErrors().length,r=!e.validate(!0,{isOnValueChanged:!this.isValidateOnValueChanging});return e.page&&this.isValidateOnValueChange&&(n>0||e.getAllErrors().length>0)&&this.fireValidatedErrorsOnPage(e.page),r},t.prototype.checkErrorsOnValueChanging=function(e,n){if(this.isLoadingFromJson)return!1;var r=this.getQuestionsByValueName(e);if(!r)return!1;for(var o=!1,s=0;s<r.length;s++){var a=r[s];this.isTwoValueEquals(a.valueForSurvey,n)||(a.value=n),this.checkQuestionErrorOnValueChangedCore(a)&&(o=!0),o=o||a.errors.length>0}return o},t.prototype.fireOnValueChanged=function(e,n,r){this.onValueChanged.fire(this,{name:e,question:r,value:n,reason:this.getValueChangeReason()})},t.prototype.notifyQuestionOnValueChanged=function(e,n,r){if(!this.isLoadingFromJson){var o=this.getQuestionsByValueName(e);if(o)for(var s=0;s<o.length;s++){var a=o[s];this.checkQuestionErrorOnValueChanged(a),a.onSurveyValueChanged(n)}this.fireOnValueChanged(e,n,r?this.getQuestionByName(r):void 0),!this.isDisposed&&(this.checkElementsBindings(e,n),this.notifyElementsOnAnyValueOrVariableChanged(e,r))}},t.prototype.checkElementsBindings=function(e,n){this.isRunningElementsBindings=!0;for(var r=0;r<this.pages.length;r++)this.pages[r].checkBindings(e,n);this.isRunningElementsBindings=!1,this.updateVisibleIndexAfterBindings&&(this.updateVisibleIndexes(),this.updateVisibleIndexAfterBindings=!1)},t.prototype.notifyElementsOnAnyValueOrVariableChanged=function(e,n){if(this.isEndLoadingFromJson!=="processing"){if(this.isRunningConditions){this.conditionNotifyElementsOnAnyValueOrVariableChanged=!0;return}for(var r=0;r<this.pages.length;r++)this.pages[r].onAnyValueChanged(e,n);this.isEndLoadingFromJson||this.locStrsChanged()}},t.prototype.updateAllQuestionsValue=function(e){for(var n=this.getAllQuestions(),r=0;r<n.length;r++){var o=n[r],s=o.getValueName();o.updateValueFromSurvey(this.getValue(s),e),o.requireUpdateCommentValue&&o.updateCommentFromSurvey(this.getComment(s))}},t.prototype.notifyAllQuestionsOnValueChanged=function(){for(var e=this.getAllQuestions(),n=0;n<e.length;n++)e[n].onSurveyValueChanged(this.getValue(e[n].getValueName()))},t.prototype.checkOnPageTriggers=function(e){for(var n=this.getCurrentPageQuestions(!0),r={},o=0;o<n.length;o++){var s=n[o],a=s.getValueName();r[a]=this.getValue(a)}this.addCalculatedValuesIntoFilteredValues(r),this.checkTriggers(r,!0,e)},t.prototype.getCurrentPageQuestions=function(e){e===void 0&&(e=!1);var n=[],r=this.currentPage;if(!r)return n;for(var o=0;o<r.questions.length;o++){var s=r.questions[o];!e&&!s.visible||!s.name||n.push(s)}return n},t.prototype.checkTriggers=function(e,n,r,o){if(r===void 0&&(r=!1),!(this.isCompleted||this.triggers.length==0||this.isDisplayMode)){if(this.isTriggerIsRunning){this.triggerValues=this.getFilteredValues();for(var s in e)this.triggerKeys[s]=e[s];return}var a=!1;if(!r&&o&&this.hasRequiredValidQuestionTrigger){var l=this.getQuestionByValueName(o);a=l&&!l.validate(!1)}this.isTriggerIsRunning=!0,this.triggerKeys=e,this.triggerValues=this.getFilteredValues();for(var u=this.getFilteredProperties(),d=this.canBeCompletedByTrigger,v=0;v<this.triggers.length;v++){var V=this.triggers[v];a&&V.requireValidQuestion||V.checkExpression(n,r,this.triggerKeys,this.triggerValues,u)}d!==this.canBeCompletedByTrigger&&this.updateButtonsVisibility(),this.isTriggerIsRunning=!1}},t.prototype.checkTriggersAndRunConditions=function(e,n,r){var o={};o[e]={newValue:n,oldValue:r},this.runConditionOnValueChanged(e,n),this.checkTriggers(o,!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||this.isEndLoadingFromJson==="processing"||this.isRunningConditions)){this.conditionValues=this.getFilteredValues();var e=this.getFilteredProperties(),n=this.pages.indexOf(this.currentPage);this.runConditionsCore(e),this.checkIfNewPagesBecomeVisible(n),this.conditionValues=null,this.isValueChangedOnRunningCondition&&this.conditionRunnerCounter<b.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,n){this.isRunningConditions?(this.conditionValues[e]=n,this.questionTriggersKeys&&(this.questionTriggersKeys[e]=n),this.isValueChangedOnRunningCondition=!0):(this.questionTriggersKeys={},this.questionTriggersKeys[e]=n,this.runConditions(),this.runQuestionsTriggers(e,n),this.questionTriggersKeys=void 0)},t.prototype.runConditionsCore=function(e){for(var n=this.pages,r=0;r<this.calculatedValues.length;r++)this.calculatedValues[r].resetCalculation();for(var r=0;r<this.calculatedValues.length;r++)this.calculatedValues[r].doCalculation(this.calculatedValues,this.conditionValues,e);i.prototype.runConditionCore.call(this,this.conditionValues,e);for(var o=0;o<n.length;o++)n[o].runCondition(this.conditionValues,e)},t.prototype.runQuestionsTriggers=function(e,n){var r=this;if(!(this.isDisplayMode||this.isDesignMode)){var o=this.getAllQuestions();o.forEach(function(s){s.runTriggers(e,n,r.questionTriggersKeys)})}},t.prototype.checkIfNewPagesBecomeVisible=function(e){var n=this.pages.indexOf(this.currentPage);if(!(n<=e+1)){for(var r=e+1;r<n;r++)if(this.pages[r].isVisible){this.currentPage=this.pages[r];break}}},t.prototype.sendResult=function(e,n,r){var o=this;if(e===void 0&&(e=null),n===void 0&&(n=null),r===void 0&&(r=!1),!!this.isEditMode&&(r&&this.onPartialSend&&this.onPartialSend.fire(this,null),!e&&this.surveyPostId&&(e=this.surveyPostId),!!e&&(n&&(this.clientId=n),!(r&&!this.clientId)))){var s=this.createSurveyService();s.locale=this.getLocale();var a=this.surveyShowDataSaving||!r&&s.isSurveJSIOService;a&&this.setCompletedState("saving",""),s.sendResult(e,this.data,function(l,u,d){(a||s.isSurveJSIOService)&&(l?o.setCompletedState("success",""):o.setCompletedState("error",u));var v={success:l,response:u,request:d};o.onSendResult.fire(o,v)},this.clientId,r)}},t.prototype.getResult=function(e,n){var r=this;this.createSurveyService().getResult(e,n,function(o,s,a,l){r.onGetResult.fire(r,{success:o,data:s,dataList:a,response:l})})},t.prototype.loadSurveyFromService=function(e,n){e===void 0&&(e=null),n===void 0&&(n=null),e&&(this.surveyId=e),n&&(this.clientId=n);var r=this;this.isLoading=!0,this.onLoadingSurveyFromService(),n?this.createSurveyService().getSurveyJsonAndIsCompleted(this.surveyId,this.clientId,function(o,s,a,l){o&&(r.isCompletedBefore=a=="completed",r.loadSurveyFromServiceJson(s)),r.isLoading=!1}):this.createSurveyService().loadSurvey(this.surveyId,function(o,s,a){o&&r.loadSurveyFromServiceJson(s),r.isLoading=!1})},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),n=0;n<e.length;n++)e[n].setVisibleIndex(-1);this.updateVisibleIndexes()},t.prototype.updateVisibleIndexes=function(e){if(!(this.isLoadingFromJson||this.isEndLoadingFromJson)){if(this.isRunningConditions&&this.onQuestionVisibleChanged.isEmpty&&this.onPageVisibleChanged.isEmpty){this.conditionUpdateVisibleIndexes=!0;return}if(this.isRunningElementsBindings){this.updateVisibleIndexAfterBindings=!0;return}this.updatePageVisibleIndexes(),this.updatePageElementsVisibleIndexes(e),this.updateProgressText(!0)}},t.prototype.updatePageElementsVisibleIndexes=function(e){if(this.showQuestionNumbers=="onPage")for(var n=e?[e]:this.visiblePages,r=0;r<n.length;r++)n[r].setVisibleIndex(0);else for(var o=this.getStartVisibleIndex(),s=0;s<this.pages.length;s++)o+=this.pages[s].setVisibleIndex(o)},t.prototype.getStartVisibleIndex=function(){return this.showQuestionNumbers=="on"?0:-1},t.prototype.updatePageVisibleIndexes=function(){this.updateButtonsVisibility();for(var e=0,n=0;n<this.pages.length;n++){var r=this.pages[n],o=r.isVisible&&(n>0||!r.isStartPage);r.visibleIndex=o?e++:-1,r.num=o?r.visibleIndex+1:-1}},t.prototype.fromJSON=function(e,n){if(e){this.questionHashesClear(),this.jsonErrors=null,this.sjsVersion=void 0;var r=new fe;r.toObject(e,this,n),r.errors.length>0&&(this.jsonErrors=r.errors),this.onStateAndCurrentPageChanged(),this.updateState(),this.sjsVersion&&b.version&&P.compareVerions(this.sjsVersion,b.version)>0&&Fe.warn("The version of the survey JSON schema (v"+this.sjsVersion+") is newer than your current Form Library version ("+b.version+"). Please update the Form Library to make sure that all survey features work as expected.")}},t.prototype.startLoadingFromJson=function(e){i.prototype.startLoadingFromJson.call(this,e),e&&e.locale&&(this.locale=e.locale)},t.prototype.setJsonObject=function(e){this.fromJSON(e)},t.prototype.endLoadingFromJson=function(){this.isEndLoadingFromJson="processing",this.onFirstPageIsStartedChanged(),i.prototype.endLoadingFromJson.call(this),this.hasCookie&&(this.isCompletedBefore=!0),this.doElementsOnLoad(),this.onQuestionsOnPageModeChanged("standard"),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 Ee;return e.setItems(this.createNavigationActions()),e},t.prototype.createNavigationActions=function(){var e=this,n="sv-nav-btn",r=new $({id:"sv-nav-start",visible:new te(function(){return e.isShowStartingPage}),visibleIndex:10,locTitle:this.locStartSurveyText,action:function(){return e.start()},component:n}),o=new $({id:"sv-nav-prev",visible:new te(function(){return e.isShowPrevButton}),visibleIndex:20,data:{mouseDown:function(){return e.navigationMouseDown()}},locTitle:this.locPagePrevText,action:function(){return e.performPrevious()},component:n}),s=new $({id:"sv-nav-next",visible:new te(function(){return e.isShowNextButton}),visibleIndex:30,data:{mouseDown:function(){return e.nextPageMouseDown()}},locTitle:this.locPageNextText,action:function(){return e.nextPageUIClick()},component:n}),a=new $({id:"sv-nav-preview",visible:new te(function(){return e.isPreviewButtonVisible}),visibleIndex:40,data:{mouseDown:function(){return e.navigationMouseDown()}},locTitle:this.locPreviewText,action:function(){return e.showPreview()},component:n}),l=new $({id:"sv-nav-complete",visible:new te(function(){return e.isCompleteButtonVisible}),visibleIndex:50,data:{mouseDown:function(){return e.navigationMouseDown()}},locTitle:this.locCompleteText,action:function(){return e.taskManager.waitAndExecute(function(){return e.tryComplete()})},component:n});return this.updateNavigationItemCssCallback=function(){r.innerCss=e.cssNavigationStart,o.innerCss=e.cssNavigationPrev,s.innerCss=e.cssNavigationNext,a.innerCss=e.cssNavigationPreview,l.innerCss=e.cssNavigationComplete},[r,o,s,a,l]},t.prototype.onBeforeRunConstructor=function(){},t.prototype.onBeforeCreating=function(){},t.prototype.onCreating=function(){},t.prototype.getProcessedTextValue=function(e){if(this.getProcessedTextValueCore(e),!this.onProcessTextValue.isEmpty){var n=this.isValueEmpty(e.value);this.onProcessTextValue.fire(this,e),e.isExists=e.isExists||n&&!this.isValueEmpty(e.value)}},t.prototype.getBuiltInVariableValue=function(e){if(e==="pageno"){var n=this.currentPage;return n!=null?this.visiblePages.indexOf(n)+1:0}if(e==="pagecount")return this.visiblePageCount;if(e==="correctedanswers"||e==="correctanswers"||e==="correctedanswercount")return this.getCorrectedAnswerCount();if(e==="incorrectedanswers"||e==="incorrectanswers"||e==="incorrectedanswercount")return this.getInCorrectedAnswerCount();if(e==="questioncount")return this.getQuizQuestionCount()},t.prototype.getProcessedTextValueCore=function(e){var n=e.name.toLocaleLowerCase();if(["no","require","title"].indexOf(n)===-1){var r=this.getBuiltInVariableValue(n);if(r!==void 0){e.isExists=!0,e.value=r;return}if(n==="locale"){e.isExists=!0,e.value=this.locale?this.locale:ce.defaultLocale;return}var o=this.getVariable(n);if(o!==void 0){e.isExists=!0,e.value=o;return}var s=this.getFirstName(n);if(s){var a=s.useDisplayValuesInDynamicTexts;e.isExists=!0;var l=s.getValueName().toLowerCase();n=l+n.substring(l.length),n=n.toLocaleLowerCase();var u={};u[l]=e.returnDisplayValue&&a?s.getDisplayValue(!1,void 0):s.value,e.value=new me().getValue(n,u);return}this.getProcessedValuesWithoutQuestion(e)}},t.prototype.getProcessedValuesWithoutQuestion=function(e){var n=this.getValue(e.name);if(n!==void 0){e.isExists=!0,e.value=n;return}var r=new me,o=r.getFirstName(e.name);if(o!==e.name){var s={},a=this.getValue(o);P.isValueEmpty(a)&&(a=this.getVariable(o)),!P.isValueEmpty(a)&&(s[o]=a,e.value=r.getValue(e.name,s),e.isExists=r.hasValue(e.name,s))}},t.prototype.getFirstName=function(e){e=e.toLowerCase();var n;do n=this.getQuestionByValueName(e,!0),e=this.reduceFirstName(e);while(!n&&e);return n},t.prototype.reduceFirstName=function(e){var n=e.lastIndexOf("."),r=e.lastIndexOf("[");if(n<0&&r<0)return"";var o=Math.max(n,r);return e.substring(0,o)},t.prototype.clearUnusedValues=function(){this.isClearingUnsedValues=!0;for(var e=this.getAllQuestions(),n=0;n<e.length;n++)e[n].clearUnusedValues();this.clearInvisibleQuestionValues(),this.isClearingUnsedValues=!1},t.prototype.hasVisibleQuestionByValueName=function(e){var n=this.getQuestionsByValueName(e);if(!n)return!1;for(var r=0;r<n.length;r++){var o=n[r];if(o.isVisible&&o.isParentVisible&&!o.parentQuestion)return!0}return!1},t.prototype.questionsByValueName=function(e){var n=this.getQuestionsByValueName(e);return n||[]},t.prototype.clearInvisibleQuestionValues=function(){for(var e=this.clearInvisibleValues==="none"?"none":"onComplete",n=this.getAllQuestions(),r=0;r<n.length;r++)n[r].clearValueIfInvisible(e)},t.prototype.getVariable=function(e){if(!e)return null;e=e.toLowerCase();var n=this.variablesHash[e];return this.isValueEmpty(n)&&(e.indexOf(".")>-1||e.indexOf("[")>-1)&&new me().hasValue(e,this.variablesHash)?new me().getValue(e,this.variablesHash):n},t.prototype.setVariable=function(e,n){if(e){var r=this.getVariable(e);this.valuesHash&&delete this.valuesHash[e],e=e.toLowerCase(),this.variablesHash[e]=n,this.notifyElementsOnAnyValueOrVariableChanged(e),P.isTwoValueEquals(r,n)||(this.checkTriggersAndRunConditions(e,n,r),this.onVariableChanged.fire(this,{name:e,value:n}))}},t.prototype.getVariableNames=function(){var e=[];for(var n in this.variablesHash)e.push(n);return e},t.prototype.getUnbindValue=function(e){return this.editingObj?e:P.getUnbindValue(e)},t.prototype.getValue=function(e){if(!e||e.length==0)return null;var n=this.getDataValueCore(this.valuesHash,e);return this.getUnbindValue(n)},t.prototype.setValue=function(e,n,r,o,s){r===void 0&&(r=!1),o===void 0&&(o=!0);var a=n;if(o&&(a=this.questionOnValueChanging(e,n)),!(this.isValidateOnValueChanging&&this.checkErrorsOnValueChanging(e,a))&&!(!this.editingObj&&this.isValueEqual(e,a)&&this.isTwoValueEquals(a,n))){var l=this.getValue(e);this.isValueEmpyOnSetValue(e,a)?this.deleteDataValueCore(this.valuesHash,e):(a=this.getUnbindValue(a),this.setDataValueCore(this.valuesHash,e,a)),this.updateOnSetValue(e,a,l,r,o,s)}},t.prototype.isValueEmpyOnSetValue=function(e,n){return this.isValueEmpty(n,!1)?!this.editingObj||n===null||n===void 0?!0:this.editingObj.getDefaultPropertyValue(e)===n:!1},t.prototype.updateOnSetValue=function(e,n,r,o,s,a){o===void 0&&(o=!1),s===void 0&&(s=!0),this.updateQuestionValue(e,n),!(o===!0||this.isDisposed||this.isRunningElementsBindings)&&(a=a||e,this.checkTriggersAndRunConditions(e,n,r),s&&this.notifyQuestionOnValueChanged(e,n,a),o!=="text"&&this.tryGoNextPageAutomatic(e))},t.prototype.isValueEqual=function(e,n){(n===""||n===void 0)&&(n=null);var r=this.getValue(e);return(r===""||r===void 0)&&(r=null),n===null||r===null?n===r:this.isTwoValueEquals(n,r)},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 n={page:e};this.onPageAdded.fire(this,n)}},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,n){for(var r={},o=0;o<e.length;o++)r[e[o].name]=!0;for(var s=1;r[n+s];)s++;return n+s},t.prototype.tryGoNextPageAutomatic=function(e){var n=this;if(!(this.isEndLoadingFromJson||!this.goNextPageAutomatic||!this.currentPage)){var r=this.getQuestionByValueName(e);if(!(!r||r&&(!r.visible||!r.supportGoNextPageAutomatic()))&&!(!r.validate(!1)&&!r.supportGoNextPageError())){if(this.currentSingleQuestion){var o=this.currentSingleQuestion,s=function(){o===n.currentSingleQuestion&&(n.isLastElement?n.allowCompleteSurveyAutomatic&&n.tryCompleteOrShowPreview():n.performNext())};He.safeTimeOut(s,b.autoAdvanceDelay)}var a=this.getCurrentPageQuestions();if(!(a.indexOf(r)<0)){for(var l=0;l<a.length;l++)if(a[l].hasInput&&a[l].isEmpty())return;if(!(this.isLastPage&&(this.goNextPageAutomatic!==!0||!this.allowCompleteSurveyAutomatic))&&!this.checkIsCurrentPageHasErrors(!1)){var u=this.currentPage,d=function(){u===n.currentPage&&(n.isLastPage?n.tryCompleteOrShowPreview():n.nextPage())};He.safeTimeOut(d,b.autoAdvanceDelay)}}}}},t.prototype.tryCompleteOrShowPreview=function(){this.isShowPreviewBeforeComplete?this.showPreview():this.tryComplete()},t.prototype.getComment=function(e){var n=this.getValue(e+this.commentSuffix);return n||""},t.prototype.setComment=function(e,n,r){if(r===void 0&&(r=!1),n||(n=""),!this.isTwoValueEquals(n,this.getComment(e))){var o=e+this.commentSuffix;n=this.questionOnValueChanging(o,n,e),this.isValueEmpty(n)?this.deleteDataValueCore(this.valuesHash,o):this.setDataValueCore(this.valuesHash,o,n);var s=this.getQuestionsByValueName(e);if(s)for(var a=0;a<s.length;a++)s[a].updateCommentFromSurvey(n),this.checkQuestionErrorOnValueChanged(s[a]);r||this.checkTriggersAndRunConditions(e,this.getValue(e),void 0),r!=="text"&&this.tryGoNextPageAutomatic(e);var l=this.getQuestionByValueName(e);l&&(this.fireOnValueChanged(o,n,l),l.comment=n,l.comment!=n&&(l.comment=n))}},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":e!=="default"?e:this.clearInvisibleValues},t.prototype.questionVisibilityChanged=function(e,n,r){r&&this.updateVisibleIndexes(e.page),this.onQuestionVisibleChanged.fire(this,{question:e,name:e.name,visible:n})},t.prototype.pageVisibilityChanged=function(e,n){this.isLoadingFromJson||((n&&!this.currentPage||e===this.currentPage)&&this.updateCurrentPage(),this.updateVisibleIndexes(),this.onPageVisibleChanged.fire(this,{page:e,visible:n}))},t.prototype.panelVisibilityChanged=function(e,n){this.updateVisibleIndexes(e.page),this.onPanelVisibleChanged.fire(this,{panel:e,visible:n})},t.prototype.questionCreated=function(e){this.onQuestionCreated.fire(this,{question:e})},t.prototype.questionAdded=function(e,n,r,o){e.name||(e.name=this.generateNewName(this.getAllQuestions(!1,!0),"question")),e.page&&this.questionHashesAdded(e),this.isLoadingFromJson||(this.currentPage||this.updateCurrentPage(),this.updateVisibleIndexes(e.page),this.setCalculatedWidthModeUpdater()),this.canFireAddElement()&&this.onQuestionAdded.fire(this,{question:e,name:e.name,index:n,parent:r,page:o,parentPanel:r,rootPanel:o})},t.prototype.canFireAddElement=function(){return!this.isMovingQuestion||this.isDesignMode&&!b.supportCreatorV2},t.prototype.questionRemoved=function(e){this.questionHashesRemoved(e,e.name,e.getValueName()),this.updateVisibleIndexes(e.page),this.onQuestionRemoved.fire(this,{question:e,name:e.name}),this.updateLazyRenderingRowsOnRemovingElements()},t.prototype.questionRenamed=function(e,n,r){this.questionHashesRemoved(e,n,r),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 n=e.questions,r=0;r<n.length;r++)this.questionHashesAdded(n[r])},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,n,r){n&&(this.questionHashRemovedCore(this.questionHashes.names,e,n),this.questionHashRemovedCore(this.questionHashes.namesInsensitive,e,n.toLowerCase())),r&&(this.questionHashRemovedCore(this.questionHashes.valueNames,e,r),this.questionHashRemovedCore(this.questionHashes.valueNamesInsensitive,e,r.toLowerCase()))},t.prototype.questionHashAddedCore=function(e,n,r){var o=e[r];if(o){var o=e[r];o.indexOf(n)<0&&o.push(n)}else e[r]=[n]},t.prototype.questionHashRemovedCore=function(e,n,r){var o=e[r];if(o){var s=o.indexOf(n);s>-1&&o.splice(s,1),o.length==0&&delete e[r]}},t.prototype.panelAdded=function(e,n,r,o){e.name||(e.name=this.generateNewName(this.getAllPanels(!1,!0),"panel")),this.questionHashesPanelAdded(e),this.updateVisibleIndexes(e.page),this.canFireAddElement()&&this.onPanelAdded.fire(this,{panel:e,name:e.name,index:n,parent:r,page:o,parentPanel:r,rootPanel:o})},t.prototype.panelRemoved=function(e){this.updateVisibleIndexes(e.page),this.onPanelRemoved.fire(this,{panel:e,name:e.name}),this.updateLazyRenderingRowsOnRemovingElements()},t.prototype.validateQuestion=function(e){if(this.onValidateQuestion.isEmpty)return null;var n={name:e.name,question:e,value:e.value,error:null};return this.onValidateQuestion.fire(this,n),n.error?new we(n.error,this):null},t.prototype.validatePanel=function(e){if(this.onValidatePanel.isEmpty)return null;var n={name:e.name,panel:e,error:null};return this.onValidatePanel.fire(this,n),n.error?new we(n.error,this):null},t.prototype.processHtml=function(e,n){n||(n="");var r={html:e,reason:n};return this.onProcessHtml.fire(this,r),this.processText(r.html,!0)},t.prototype.processText=function(e,n){return this.processTextEx({text:e,returnDisplayValue:n,doEncoding:!1}).text},t.prototype.processTextEx=function(e){var n=e.doEncoding===void 0?b.web.encodeUrlParams:e.doEncoding,r=e.text;(e.runAtDesign||!this.isDesignMode)&&(r=this.textPreProcessor.process(r,e.returnDisplayValue===!0,n,e.replaceUndefinedValues));var o={text:r,hasAllValuesOnLastRun:!0};return o.hasAllValuesOnLastRun=this.textPreProcessor.hasAllValuesOnLastRun,o},Object.defineProperty(t.prototype,"textPreProcessor",{get:function(){var e=this;return this.textPreProcessorValue||(this.textPreProcessorValue=new yr,this.textPreProcessorValue.onProcess=function(n){e.getProcessedTextValue(n)}),this.textPreProcessorValue},enumerable:!1,configurable:!0}),t.prototype.getSurveyMarkdownHtml=function(e,n,r){var o={element:e,text:n,name:r,html:null};return this.onTextMarkdown.fire(this,o),o.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(),n=0,r=0;r<e.length;r++)n+=e[r].quizQuestionCount;return n},t.prototype.getInCorrectedAnswerCount=function(){return this.getIncorrectAnswerCount()},t.prototype.getInCorrectAnswerCount=function(){return this.getIncorrectAnswerCount()},t.prototype.getIncorrectAnswerCount=function(){return this.getCorrectedAnswerCountCore(!1)},t.prototype.onCorrectQuestionAnswer=function(e,n){this.onIsAnswerCorrect.isEmpty||(n.question=e,this.onIsAnswerCorrect.fire(this,n))},t.prototype.getCorrectedAnswerCountCore=function(e){for(var n=this.getQuizQuestions(),r=0,o=0;o<n.length;o++){var s=n[o],a=s.correctAnswerCount;e?r+=a:r+=s.quizQuestionCount-a}return r},t.prototype.getCorrectedAnswers=function(){return this.getCorrectedAnswerCount()},t.prototype.getInCorrectedAnswers=function(){return this.getInCorrectedAnswerCount()},Object.defineProperty(t.prototype,"showTimerPanel",{get:function(){return this.showTimer?this.timerLocation:"none"},set:function(e){this.showTimer=e!=="none",this.showTimer&&(this.timerLocation=e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"showTimer",{get:function(){return this.getPropertyValue("showTimer")},set:function(e){this.setPropertyValue("showTimer",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"timerLocation",{get:function(){return this.getPropertyValue("timerLocation")},set:function(e){this.setPropertyValue("timerLocation",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isTimerPanelShowingOnTop",{get:function(){return this.showTimer&&this.timerLocation==="top"},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isTimerPanelShowingOnBottom",{get:function(){return this.showTimer&&this.timerLocation==="bottom"},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"timerInfoMode",{get:function(){return this.getTimerInfoVal(this.getPropertyValue("timerInfoMode"))},set:function(e){this.setPropertyValue("timerInfoMode",e)},enumerable:!1,configurable:!0}),t.prototype.getTimerInfoVal=function(e){return e==="all"?"combined":e},Object.defineProperty(t.prototype,"showTimerPanelMode",{get:function(){var e=this.timerInfoMode;return e==="combined"?"all":e},set:function(e){this.timerInfoMode=this.getTimerInfoVal(e)},enumerable:!1,configurable:!0}),t.prototype.updateGridColumns=function(){this.pages.forEach(function(e){return e.updateGridColumns()})},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.isLoadingFromJson||(this.calculatedWidthModeUpdater&&this.calculatedWidthModeUpdater.dispose(),this.calculatedWidthModeUpdater=new te(function(){return e.calculateWidthMode()}),this.calculatedWidthMode=this.calculatedWidthModeUpdater)},t.prototype.calculateWidthMode=function(){if(this.widthMode=="auto"){var e=!1;return this.pages.forEach(function(n){n.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("calculatedWidthMode")=="static",n=this.getPropertyValue("width");if(this.isScaled&&this.responsiveStartWidth>1){var r=this.responsiveStartWidth;try{n=n||this.staticStartWidth,r=isNaN(n)?parseFloat(n.toString().replace("px","")):n}catch{}return(e?r:this.responsiveStartWidth)*this.widthScale/100+"px"}return n&&!isNaN(n)&&(n=n+"px"),e&&n||void 0},enumerable:!1,configurable:!0}),t.prototype.setStaticStartWidth=function(e){this.staticStartWidth=e},t.prototype.setResponsiveStartWidth=function(e){this.responsiveStartWidth=e},Object.defineProperty(t.prototype,"isScaled",{get:function(){return Math.abs(this.widthScale-100)>.001},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,n;if(this.currentPage){var r=this.getTimerInfo(),o=r.spent,s=r.limit,a=r.minorSpent,l=r.minorLimit;s>0?e=this.getDisplayClockTime(s-o):e=this.getDisplayClockTime(o),a!==void 0&&(l>0?n=this.getDisplayClockTime(l-a):n=this.getDisplayClockTime(a))}return{majorText:e,minorText:n}},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"timerInfoText",{get:function(){var e={text:this.getTimerInfoText()};this.onTimerPanelInfoText.fire(this,e);var n=new Se(this,!0);return n.text=e.text,n.textOrHtml},enumerable:!1,configurable:!0}),t.prototype.getTimerInfo=function(){var e=this.currentPage;if(!e)return{spent:0,limit:0};var n=e.timeSpent,r=this.timeSpent,o=e.getMaxTimeToFinish(),s=this.timeLimit;return this.timerInfoMode=="page"?{spent:n,limit:o}:this.timerInfoMode=="survey"?{spent:r,limit:s}:o>0&&s>0?{spent:n,limit:o,minorSpent:r,minorLimit:s}:o>0?{spent:n,limit:o,minorSpent:r}:s>0?{spent:r,limit:s,minorSpent:n}:{spent:n,minorSpent:r}},t.prototype.getTimerInfoText=function(){var e=this.currentPage;if(!e)return"";var n=this.getDisplayTime(e.timeSpent),r=this.getDisplayTime(this.timeSpent),o=e.getMaxTimeToFinish(),s=this.getDisplayTime(o),a=this.getDisplayTime(this.timeLimit);if(this.timerInfoMode=="page")return this.getTimerInfoPageText(e,n,s);if(this.timerInfoMode=="survey")return this.getTimerInfoSurveyText(r,a);if(this.timerInfoMode=="combined"){if(o<=0&&this.timeLimit<=0)return this.getLocalizationFormatString("timerSpentAll",n,r);if(o>0&&this.timeLimit>0)return this.getLocalizationFormatString("timerLimitAll",n,s,r,a);var l=this.getTimerInfoPageText(e,n,s),u=this.getTimerInfoSurveyText(r,a);return l+" "+u}return""},t.prototype.getTimerInfoPageText=function(e,n,r){return e&&e.getMaxTimeToFinish()>0?this.getLocalizationFormatString("timerLimitPage",n,r):this.getLocalizationFormatString("timerSpentPage",n,r)},t.prototype.getTimerInfoSurveyText=function(e,n){var r=this.timeLimit>0?"timerLimitSurvey":"timerSpentSurvey";return this.getLocalizationFormatString(r,e,n)},t.prototype.getDisplayClockTime=function(e){e<0&&(e=0);var n=Math.floor(e/60),r=e%60,o=r.toString();return r<10&&(o="0"+o),n+":"+o},t.prototype.getDisplayTime=function(e){var n=Math.floor(e/60),r=e%60,o="";return n>0&&(o+=n+" "+this.getLocalizationString("timerMin")),o&&r==0?o:(o&&(o+=" "),o+r+" "+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(){this.showTimer&&this.state==="running"&&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,"timeLimit",{get:function(){return this.getPropertyValue("timeLimit",0)},set:function(e){this.setPropertyValue("timeLimit",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"maxTimeToFinish",{get:function(){return this.timeLimit},set:function(e){this.timeLimit=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"timeLimitPerPage",{get:function(){return this.getPropertyValue("timeLimitPerPage",0)},set:function(e){this.setPropertyValue("timeLimitPerPage",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"maxTimeToFinishPage",{get:function(){return this.timeLimitPerPage},set:function(e){this.timeLimitPerPage=e},enumerable:!1,configurable:!0}),t.prototype.doTimer=function(e){if(this.onTimerTick.fire(this,{}),this.timeLimit>0&&this.timeLimit<=this.timeSpent&&(this.timeSpent=this.timeLimit,this.tryComplete()),e){var n=e.getMaxTimeToFinish();n>0&&n==e.timeSpent&&(this.isLastPage?this.tryComplete():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,n){var r=[];return Array.prototype.push.apply(r,this.getPagesByNames(e)),Array.prototype.push.apply(r,this.getQuestionsByNames(n)),r},t.prototype.setTriggerValue=function(e,n,r){if(e)if(r)this.setVariable(e,n);else{var o=this.getQuestionByName(e);if(this.startSetValueFromTrigger(),o)o.value=n;else{var s=new me,a=s.getFirstName(e);if(a==e)this.setValue(e,n);else{if(!this.getQuestionByName(a))return;var l=this.getUnbindValue(this.getFilteredValues());s.setValue(l,e,n),this.setValue(a,l[a])}}this.finishSetValueFromTrigger()}},t.prototype.copyTriggerValue=function(e,n,r){if(!(!e||!n)){var o;if(r)o=this.processText("{"+n+"}",!0);else{var s=new me;o=s.getValue(n,this.getFilteredValues())}this.setTriggerValue(e,o,!1)}},t.prototype.triggerExecuted=function(e){this.onTriggerExecuted.fire(this,{trigger:e})},Object.defineProperty(t.prototype,"isSettingValueFromTrigger",{get:function(){return this.setValueFromTriggerCounter>0},enumerable:!1,configurable:!0}),t.prototype.startSetValueFromTrigger=function(){this.setValueFromTriggerCounter++},t.prototype.finishSetValueFromTrigger=function(){this.setValueFromTriggerCounter--},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,n){var r;if(n===void 0&&(n=!1),!e||!e.isVisible||!e.page)return!1;var o=(r=this.focusingQuestionInfo)===null||r===void 0?void 0:r.question;if(o===e)return!1;this.focusingQuestionInfo={question:e,onError:n},this.skippedPages.push({from:this.currentPage,to:e.page});var s=this.activePage!==e.page&&!e.page.isStartPage;return s&&(this.currentPage=e.page,this.isSingleVisibleQuestion&&!this.isDesignMode&&(this.currentSingleQuestion=e)),s||this.focusQuestionInfo(),!0},t.prototype.focusQuestionInfo=function(){var e,n=(e=this.focusingQuestionInfo)===null||e===void 0?void 0:e.question;n&&!n.isDisposed&&n.focus(this.focusingQuestionInfo.onError),this.focusingQuestionInfo=void 0},t.prototype.questionEditFinishCallback=function(e,n){var r=this.enterKeyAction||b.enterKeyAction;if(r=="loseFocus"&&n.target.blur(),r=="moveToNextEditor"){var o=this.currentPage.questions,s=o.indexOf(e);s>-1&&s<o.length-1?o[s+1].focus():n.target.blur()}},t.prototype.elementWrapperComponentNameCore=function(e,n,r,o,s){if(this.onElementWrapperComponentName.isEmpty)return e;var a={componentName:e,element:n,wrapperName:r,reason:o,item:s};return this.onElementWrapperComponentName.fire(this,a),a.componentName},t.prototype.elementWrapperDataCore=function(e,n,r,o,s){if(this.onElementWrapperComponentData.isEmpty)return e;var a={data:e,element:n,wrapperName:r,reason:o,item:s};return this.onElementWrapperComponentData.fire(this,a),a.data},t.prototype.getElementWrapperComponentName=function(e,n){var r=n==="logo-image"?"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,n){return this.elementWrapperDataCore(e,e,"component",n)},t.prototype.getRowWrapperComponentData=function(e){return this.elementWrapperDataCore(e,e,"row")},t.prototype.getItemValueWrapperComponentData=function(e,n){return this.elementWrapperDataCore(e,n,"itemvalue",void 0,e)},t.prototype.getMatrixCellTemplateData=function(e){var n=e.question;return this.elementWrapperDataCore(n,n,"cell")},t.prototype.searchText=function(e){e&&(e=e.toLowerCase());for(var n=[],r=0;r<this.pages.length;r++)this.pages[r].searchText(e,n);return n},t.prototype.getSkeletonComponentName=function(e){return this.skeletonComponentName},t.prototype.addLayoutElement=function(e){var n=this.removeLayoutElement(e.id);return this.layoutElements.push(e),n},t.prototype.findLayoutElement=function(e){var n=this.layoutElements.filter(function(r){return r.id===e})[0];return n},t.prototype.removeLayoutElement=function(e){var n=this.findLayoutElement(e);if(n){var r=this.layoutElements.indexOf(n);this.layoutElements.splice(r,1)}return n},t.prototype.getContainerContent=function(e){for(var n=[],r=0,o=this.layoutElements;r<o.length;r++){var s=o[r];if(this.mode!=="display"&&We(s.id,"timerpanel"))e==="header"&&this.isTimerPanelShowingOnTop&&!this.isShowStartingPage&&n.push(s),e==="footer"&&this.isTimerPanelShowingOnBottom&&!this.isShowStartingPage&&n.push(s);else if(this.state==="running"&&We(s.id,this.progressBarComponentName)){if(this.questionsOnPageMode!="singlePage"||this.progressBarType=="questions"){var a=this.findLayoutElement("advanced-header"),l=a&&a.data,u=!l||l.hasBackground;We(this.showProgressBar,"aboveHeader")&&(u=!1),We(this.showProgressBar,"belowHeader")&&(u=!0),e==="header"&&!u&&(s.index=-150,this.isShowProgressBarOnTop&&!this.isShowStartingPage&&n.push(s)),e==="center"&&u&&(s.index&&delete s.index,this.isShowProgressBarOnTop&&!this.isShowStartingPage&&n.push(s)),e==="footer"&&this.isShowProgressBarOnBottom&&!this.isShowStartingPage&&n.push(s)}}else We(s.id,"buttons-navigation")?(e==="contentTop"&&["top","both"].indexOf(this.isNavigationButtonsShowing)!==-1&&n.push(s),e==="contentBottom"&&["bottom","both"].indexOf(this.isNavigationButtonsShowing)!==-1&&n.push(s)):this.state==="running"&&We(s.id,"toc-navigation")&&this.showTOC?(e==="left"&&["left","both"].indexOf(this.tocLocation)!==-1&&n.push(s),e==="right"&&["right","both"].indexOf(this.tocLocation)!==-1&&n.push(s)):We(s.id,"advanced-header")?(this.state==="running"||this.state==="starting"||this.showHeaderOnCompletePage===!0&&this.state==="completed")&&s.container===e&&n.push(s):(Array.isArray(s.container)&&s.container.indexOf(e)!==-1||s.container===e)&&n.push(s)}return n.sort(function(d,v){return(d.index||0)-(v.index||0)}),n},t.prototype.processPopupVisiblityChanged=function(e,n,r){this.onPopupVisibleChanged.fire(this,{question:e,popup:n,visible:r})},t.prototype.processOpenDropdownMenu=function(e,n){var r=Object.assign({question:e},n);this.onOpenDropdownMenu.fire(this,r),n.menuType=r.menuType},t.prototype.getCssTitleExpandableSvg=function(){return null},t.prototype.applyTheme=function(e){var n=this;if(e){if(Object.keys(e).forEach(function(o){o!=="header"&&(o==="isPanelless"?n.isCompact=e[o]:n[o]=e[o])}),this.headerView==="advanced"||"header"in e){this.removeLayoutElement("advanced-header");var r=new vn;r.fromTheme(e),this.insertAdvancedHeader(r)}this.themeChanged(e)}},t.prototype.themeChanged=function(e){this.getAllQuestions().forEach(function(n){return n.themeChanged(e)})},t.prototype.dispose=function(){if(this.unConnectEditingObj(),this.removeScrollEventListener(),this.destroyResizeObserver(),this.rootElement=void 0,this.layoutElements){for(var e=0;e<this.layoutElements.length;e++)this.layoutElements[e].data&&this.layoutElements[e].data!==this&&this.layoutElements[e].data.dispose&&this.layoutElements[e].data.dispose();this.layoutElements.splice(0,this.layoutElements.length)}if(i.prototype.dispose.call(this),this.editingObj=null,!!this.pages){this.currentPage=null;for(var e=0;e<this.pages.length;e++)this.pages[e].setSurveyImpl(void 0),this.pages[e].dispose();this.pages.splice(0,this.pages.length),this.disposeCallback&&this.disposeCallback()}},t.prototype._isElementShouldBeSticky=function(e){if(!e)return!1;var n=this.rootElement.querySelector(e);return n?this.rootElement.scrollTop>0&&n.getBoundingClientRect().y<=this.rootElement.getBoundingClientRect().y:!1},t.prototype.onScroll=function(){this.rootElement&&(this._isElementShouldBeSticky(".sv-components-container-center")?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=this,n;this.scrollHandler=function(){e.onScroll()},this.rootElement.addEventListener("scroll",this.scrollHandler),this.rootElement.getElementsByTagName("form")[0]&&this.rootElement.getElementsByTagName("form")[0].addEventListener("scroll",this.scrollHandler),this.css.rootWrapper&&((n=this.rootElement.getElementsByClassName(this.css.rootWrapper)[0])===null||n===void 0||n.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&&((e=this.rootElement.getElementsByClassName(this.css.rootWrapper)[0])===null||e===void 0||e.removeEventListener("scroll",this.scrollHandler)))},t.TemplateRendererComponentName="sv-template-renderer",t.platform="unknown",K([h()],t.prototype,"completedCss",void 0),K([h()],t.prototype,"completedBeforeCss",void 0),K([h()],t.prototype,"loadingBodyCss",void 0),K([h()],t.prototype,"containerCss",void 0),K([h({onSet:function(e,n){n.updateCss()}})],t.prototype,"fitToContainer",void 0),K([h({onSet:function(e,n){if(e==="advanced"){var r=n.findLayoutElement("advanced-header");if(!r){var o=new vn;o.logoPositionX=n.logoPosition==="right"?"right":"left",o.logoPositionY="middle",o.titlePositionX=n.logoPosition==="right"?"left":"right",o.titlePositionY="middle",o.descriptionPositionX=n.logoPosition==="right"?"left":"right",o.descriptionPositionY="middle",n.insertAdvancedHeader(o)}}else n.removeLayoutElement("advanced-header")}})],t.prototype,"headerView",void 0),K([h()],t.prototype,"showBrandInfo",void 0),K([h()],t.prototype,"enterKeyAction",void 0),K([h()],t.prototype,"lazyRenderingFirstBatchSizeValue",void 0),K([h({defaultValue:!0})],t.prototype,"titleIsEmpty",void 0),K([h({defaultValue:{}})],t.prototype,"cssVariables",void 0),K([h()],t.prototype,"_isMobile",void 0),K([h()],t.prototype,"_isCompact",void 0),K([h({onSet:function(e,n){n.updateCss()}})],t.prototype,"backgroundImage",void 0),K([h()],t.prototype,"renderBackgroundImage",void 0),K([h()],t.prototype,"backgroundImageFit",void 0),K([h({onSet:function(e,n){n.updateCss()}})],t.prototype,"backgroundImageAttachment",void 0),K([h()],t.prototype,"backgroundImageStyle",void 0),K([h()],t.prototype,"wrapperFormCss",void 0),K([h({getDefaultValue:function(e){return e.progressBarType==="buttons"}})],t.prototype,"progressBarShowPageTitles",void 0),K([h()],t.prototype,"progressBarShowPageNumbers",void 0),K([h()],t.prototype,"progressBarInheritWidthFrom",void 0),K([h({defaultValue:!0})],t.prototype,"validationEnabled",void 0),K([h()],t.prototype,"rootCss",void 0),K([h({onSet:function(e,n){n.updateGridColumns()}})],t.prototype,"gridLayoutEnabled",void 0),K([h()],t.prototype,"calculatedWidthMode",void 0),K([h({defaultValue:100,onSet:function(e,n,r){n.pages.forEach(function(o){return o.updateRootStyle()})}})],t.prototype,"widthScale",void 0),K([h()],t.prototype,"staticStartWidth",void 0),K([h()],t.prototype,"responsiveStartWidth",void 0),K([ae()],t.prototype,"layoutElements",void 0),t}(nn);function We(i,t){return!i||!t?!1:i.toUpperCase()===t.toUpperCase()}x.addClass("survey",[{name:"locale",choices:function(){return ce.getLocales(!0)},onGetValue:function(i){return i.locale==ce.defaultLocale?null:i.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(i){return i.originalPages||i.pages}},{name:"elements",alternativeName:"questions",baseClassName:"question",visible:!1,isLightSerializable:!1,onGetValue:function(i){return null},onSetValue:function(i,t,e){i.pages.splice(0,i.pages.length);var n=i.addNewPage("");e.toObject({questions:t},n,e==null?void 0:e.options)}},{name:"triggers:triggers",baseClassName:"surveytrigger",classNamePart:"trigger"},{name:"calculatedValues:calculatedvalues",className:"calculatedvalue",isArray:!0},{name:"sjsVersion",visible:!1},{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(i){return i.showNavigationButtons!=="none"}},{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(i){return i.showProgressBar!=="off"}},{name:"progressBarShowPageTitles:switch",category:"navigation",visibleIf:function(i){return i.showProgressBar!=="off"&&i.progressBarType==="pages"}},{name:"progressBarShowPageNumbers:switch",default:!1,category:"navigation",visibleIf:function(i){return i.showProgressBar!=="off"&&i.progressBarType==="pages"}},{name:"progressBarInheritWidthFrom",default:"container",choices:["container","survey"],category:"navigation",visibleIf:function(i){return i.showProgressBar!=="off"&&i.progressBarType==="pages"}},{name:"showTOC:switch",default:!1},{name:"tocLocation",default:"left",choices:["left","right"],dependsOn:["showTOC"],visibleIf:function(i){return!!i&&i.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(i,t){t!=="autogonext"&&(t=P.isTwoValueEquals(t,!0)),i.setPropertyValue("goNextPageAutomatic",t)}},{name:"allowCompleteSurveyAutomatic:boolean",default:!0,visibleIf:function(i){return i.goNextPageAutomatic===!0}},{name:"clearInvisibleValues",default:"onComplete",choices:["none","onComplete","onHidden","onHiddenContainer"]},{name:"checkErrorsMode",default:"onNextPage",choices:["onNextPage","onValueChanged","onComplete"]},{name:"validateVisitedEmptyFields:boolean",dependsOn:"checkErrorsMode",visibleIf:function(i){return i.checkErrorsMode==="onValueChanged"}},{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(i){return i.firstPageIsStarted}},{name:"pagePrevText",serializationProperty:"locPagePrevText",visibleIf:function(i){return i.showNavigationButtons!=="none"&&i.showPrevButton}},{name:"pageNextText",serializationProperty:"locPageNextText",visibleIf:function(i){return i.showNavigationButtons!=="none"}},{name:"completeText",serializationProperty:"locCompleteText",visibleIf:function(i){return i.showNavigationButtons!=="none"}},{name:"previewText",serializationProperty:"locPreviewText",visibleIf:function(i){return i.showPreviewBeforeComplete!=="noPreview"}},{name:"editText",serializationProperty:"locEditText",visibleIf:function(i){return i.showPreviewBeforeComplete!=="noPreview"}},{name:"requiredText",default:"*"},{name:"questionStartIndex",dependsOn:["showQuestionNumbers"],visibleIf:function(i){return!i||i.showQuestionNumbers!=="off"}},{name:"questionTitlePattern",default:"numTitleRequire",dependsOn:["questionStartIndex","requiredText"],choices:function(i){return i?i.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:"showTimer:boolean"},{name:"timeLimit:number",alternativeName:"maxTimeToFinish",default:0,minValue:0,enableIf:function(i){return i.showTimer}},{name:"timeLimitPerPage:number",alternativeName:"maxTimeToFinishPage",default:0,minValue:0,enableIf:function(i){return i.showTimer}},{name:"timerLocation",default:"top",choices:["top","bottom"],enableIf:function(i){return i.showTimer}},{name:"timerInfoMode",alternativeName:"showTimerPanelMode",default:"combined",choices:["page","survey","combined"],enableIf:function(i){return i.showTimer}},{name:"showTimerPanel",visible:!1,isSerializable:!1},{name:"widthMode",default:"auto",choices:["auto","static","responsive"]},{name:"gridLayoutEnabled:boolean",default:!1},{name:"width",visibleIf:function(i){return i.widthMode==="static"}},{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}]);var as=function(){var i=function(t,e){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(n[o]=r[o])},i(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");i(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),bn=function(i,t,e,n){var r=arguments.length,o=r<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,e):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(i,t,e,n);else for(var a=i.length-1;a>=0;a--)(s=i[a])&&(o=(r<3?s(o):r>3?s(t,e,o):s(t,e))||o);return r>3&&o&&Object.defineProperty(t,e,o),o},jr=function(i){as(t,i);function t(e){var n=i.call(this,e)||this;n.otherItemValue=new k("other"),n.isSettingDefaultValue=!1,n.isSettingComment=!1,n.isRunningChoices=!1,n.isFirstLoadChoicesFromUrl=!0,n.isUpdatingChoicesDependedQuestions=!1,n._renderedChoices=[],n.renderedChoicesAnimation=new Qe(n.getRenderedChoicesAnimationOptions(),function(o){n._renderedChoices=o,n.renderedChoicesChangedCallback&&n.renderedChoicesChangedCallback()},function(){return n._renderedChoices}),n.headItemsCount=0,n.footItemsCount=0,n.prevIsOtherSelected=!1,n.noneItemValue=n.createDefaultItem(b.noneItemValue,"noneText","noneItemText"),n.refuseItemValue=n.createDefaultItem(b.refuseItemValue,"refuseText","refuseItemText"),n.dontKnowItemValue=n.createDefaultItem(b.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",function(){return n.updateRenderedChoices()},function(){return n.updateRenderedChoices()}),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(o){return n.createItemValue(o)},n.choicesByUrl.beforeSendRequestCallback=function(){n.onBeforeSendRequest()},n.choicesByUrl.getResultCallback=function(o){n.onLoadChoicesFromUrl(o)},n.choicesByUrl.updateResultCallback=function(o,s){return n.survey?n.survey.updateChoicesFromServer(n,o,s):o},n}return 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(){i.prototype.dispose.call(this);var e=this.getQuestionWithChoices();e&&e.removeDependedQuestion(this)},Object.defineProperty(t.prototype,"otherTextAreaModel",{get:function(){return this.otherTextAreaModelValue||(this.otherTextAreaModelValue=new ln(this.getOtherTextAreaOptions())),this.otherTextAreaModelValue},enumerable:!1,configurable:!0}),t.prototype.getOtherTextAreaOptions=function(){var e=this,n={question:this,id:function(){return e.otherId},propertyName:"otherValue",className:function(){return e.cssClasses.other},placeholder:function(){return e.otherPlaceholder},isDisabledAttr:function(){return e.isInputReadOnly||!1},rows:function(){return e.commentAreaRows},maxLength:function(){return e.getOthersMaxLength()},autoGrow:function(){return e.survey&&e.survey.autoGrowComment},ariaRequired:function(){return e.ariaRequired||e.a11y_input_ariaRequired},ariaLabel:function(){return e.ariaLabel||e.a11y_input_ariaLabel},getTextValue:function(){return e.otherValue},onTextAreaChange:function(r){e.onOtherValueChange(r)},onTextAreaInput:function(r){e.onOtherValueInput(r)}};return n},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,n){var r=x.createClass(this.getItemValueType(),{value:e});return r.locOwner=this,n&&(r.text=n),r},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,n){var r=e?"select":n?"array":void 0;this.setPropertyValue("carryForwardQuestionType",r)},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(){i.prototype.localeChanged.call(this),this.choicesOrder!=="none"&&(this.updateVisibleChoices(),this.onVisibleChoicesChanged())},t.prototype.locStrsChanged=function(){i.prototype.locStrsChanged.call(this),this.choicesFromUrl&&(k.locStrsChanged(this.choicesFromUrl),k.locStrsChanged(this.visibleChoices)),this.isUsingCarryForward&&k.locStrsChanged(this.visibleChoices)},t.prototype.updatePrevOtherErrorValue=function(e){var n=this.otherValue;e!==n&&(this.prevOtherErrorValue=n)},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,n,r){var o=new k(e),s=this.createLocalizableString(n,o,!0,r);return o.locOwner=this,o.setLocText(s),o},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(e,n){i.prototype.runCondition.call(this,e,n),this.runItemsEnableCondition(e,n),this.runItemsCondition(e,n),this.choices.forEach(function(r){r.runConditionCore(e,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 e=this.comment;i.prototype.setDefaultValue.call(this),this.isSettingDefaultValue=!1,this.comment&&this.getStoreOthersAsComment()&&e!==this.comment&&(this.setValueCore(this.setOtherValueIntoValue(this.value)),this.setCommentIntoData(this.comment))},t.prototype.getIsMultipleValue=function(){return!1},t.prototype.convertDefaultValue=function(e){if(e==null||e==null)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(),n=this.getDataFilteredProperties();return this.runItemsEnableCondition(e,n),this.runItemsCondition(e,n)},t.prototype.runItemsCondition=function(e,n){this.setConditionalChoicesRunner();var r=this.runConditionsForItems(e,n);return this.filteredChoicesValue&&this.filteredChoicesValue.length===this.activeChoices.length&&(this.filteredChoicesValue=void 0),r&&(this.onVisibleChoicesChanged(),this.clearIncorrectValues()),r},t.prototype.runItemsEnableCondition=function(e,n){var r=this;this.setConditionalEnableChoicesRunner();var o=k.runEnabledConditionsForItems(this.activeChoices,this.conditionChoicesEnableIfRunner,e,n,function(s,a){return a&&r.onEnableItemCallBack(s)});o&&this.clearDisabledValues(),this.onAfterRunItemsEnableCondition()},t.prototype.onAfterRunItemsEnableCondition=function(){},t.prototype.onEnableItemCallBack=function(e){return!0},t.prototype.onSelectedItemValuesChangedHandler=function(e){var n;(n=this.survey)===null||n===void 0||n.loadedChoicesFromServer(this)},t.prototype.getItemIfChoicesNotContainThisValue=function(e,n){return this.waitingChoicesByURL?this.createItemValue(e,n):null},t.prototype.getSingleSelectedItem=function(){var e=this.selectedItemValues;if(this.isEmpty())return null;var n=k.getItemByValue(this.visibleChoices,this.value);return this.onGetSingleSelectedItem(n),!n&&(!e||this.value!=e.id)&&this.updateSelectedItemValues(),n||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 de(this.choicesVisibleIf)),this.conditionChoicesVisibleIfRunner.expression=this.choicesVisibleIf):this.conditionChoicesVisibleIfRunner=null},t.prototype.setConditionalEnableChoicesRunner=function(){this.choicesEnableIf?(this.conditionChoicesEnableIfRunner||(this.conditionChoicesEnableIfRunner=new de(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(n,r){return e.survey.getChoiceItemVisibility(e,n,r)}:null},t.prototype.runConditionsForItems=function(e,n){this.filteredChoicesValue=[];var r=this.changeItemVisibility();return k.runConditionsForItems(this.activeChoices,this.getFilteredChoices(),this.areInvisibleElementsShowing?null:this.conditionChoicesVisibleIfRunner,e,n,!this.survey||!this.survey.areInvisibleElementsShowing,function(o,s){return r?r(o,s):s})},t.prototype.getHasOther=function(e){return this.getIsItemValue(e,this.otherItem)},t.prototype.getIsItemValue=function(e,n){return e===n.value},Object.defineProperty(t.prototype,"validatedValue",{get:function(){return this.rendredValueToDataCore(this.value)},enumerable:!1,configurable:!0}),t.prototype.createRestful=function(){return new ot},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?i.prototype.getQuestionComment.call(this):this.otherValueCore?this.otherValueCore:this.hasComment||this.getStoreOthersAsComment()?i.prototype.getQuestionComment.call(this):this.otherValueCore},t.prototype.selectOtherValueFromComment=function(e){e&&(this.prevIsOtherSelected=!0),this.value=e?this.otherItem.value:void 0},t.prototype.setQuestionComment=function(e){if(this.updatePrevOtherErrorValue(e),this.showCommentArea){i.prototype.setQuestionComment.call(this,e);return}this.onUpdateCommentOnAutoOtherMode(e),this.getStoreOthersAsComment()?i.prototype.setQuestionComment.call(this,e):this.setOtherValueInternally(e),this.updateChoicesDependedQuestions()},t.prototype.onUpdateCommentOnAutoOtherMode=function(e){if(this.autoOtherMode){this.prevOtherValue=void 0;var n=this.isOtherSelected;(!n&&e||n&&!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(e){i.prototype.clearValue.call(this,e),this.prevOtherValue=void 0,this.selectedItemValues=void 0},t.prototype.updateCommentFromSurvey=function(e){i.prototype.updateCommentFromSurvey.call(this,e),this.prevOtherValue=void 0},Object.defineProperty(t.prototype,"renderedValue",{get:function(){return this.getPropertyValue("renderedValue",null)},set:function(n){if(!this.isReadOnlyAttr){this.setPropertyValue("renderedValue",n);var n=this.rendredValueToData(n);this.isTwoValueEquals(n,this.value)||(this.value=n)}},enumerable:!1,configurable:!0}),t.prototype.setQuestionValue=function(e,n,r){if(n===void 0&&(n=!0),r===void 0&&(r=!0),!(this.isLoadingFromJson||this.isTwoValueEquals(this.value,e))&&(i.prototype.setQuestionValue.call(this,e,n),this.setPropertyValue("renderedValue",this.rendredValueFromData(e)),this.updateChoicesDependedQuestions(),!(this.hasComment||!r))){var o=this.isOtherSelected;if(o&&this.prevOtherValue){var s=this.prevOtherValue;this.prevOtherValue=void 0,this.otherValue=s}!o&&this.otherValue&&(this.getStoreOthersAsComment()&&!this.autoOtherMode&&(this.prevOtherValue=this.otherValue),this.makeCommentEmpty=!0,this.otherValueCore="",this.setPropertyValue("comment",""))}},t.prototype.setValueCore=function(e){i.prototype.setValueCore.call(this,e),this.makeCommentEmpty&&(this.setCommentIntoData(""),this.makeCommentEmpty=!1)},t.prototype.setNewValue=function(e){e=this.valueFromData(e),(!this.choicesByUrl.isRunning&&!this.choicesByUrl.isWaitingForParameters||!this.isValueEmpty(e))&&(this.cachedValueForUrlRequests=e),i.prototype.setNewValue.call(this,e)},t.prototype.valueFromData=function(e){var n=k.getItemByValue(this.activeChoices,e);return n?n.value:i.prototype.valueFromData.call(this,e)},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(),!e)?!1:this.hasUnknownValue(e,!0,!1)},t.prototype.getIsQuestionReady=function(){return i.prototype.getIsQuestionReady.call(this)&&!this.waitingChoicesByURL&&!this.waitingGetChoiceDisplayValueResponse},t.prototype.updateSelectedItemValues=function(){var e=this;if(!(this.waitingGetChoiceDisplayValueResponse||!this.survey||this.isEmpty())){var n=this.value,r=Array.isArray(n)?n:[n],o=r.some(function(s){return!k.getItemByValue(e.choices,s)});o&&(this.choicesLazyLoadEnabled||this.hasChoicesUrl)&&(this.waitingGetChoiceDisplayValueResponse=!0,this.updateIsReady(),this.survey.getChoiceDisplayValue({question:this,values:r,setItems:function(s){for(var a=[],l=1;l<arguments.length;l++)a[l-1]=arguments[l];if(e.waitingGetChoiceDisplayValueResponse=!1,!s||!s.length){e.updateIsReady();return}var u=s.map(function(d,v){return e.createItemValue(r[v],d)});e.setCustomValuesIntoItems(u,a),Array.isArray(n)?e.selectedItemValues=u:e.selectedItemValues=u[0],e.updateIsReady()}}))}},t.prototype.setCustomValuesIntoItems=function(e,n){!Array.isArray(n)||n.length===0||n.forEach(function(r){var o=r.values,s=r.propertyName;if(Array.isArray(o))for(var a=0;a<e.length&&a<o.length;a++)e[a][s]=o[a]})},t.prototype.hasUnknownValue=function(e,n,r,o){if(n===void 0&&(n=!1),r===void 0&&(r=!0),o===void 0&&(o=!1),!Array.isArray(e))return this.hasUnknownValueItem(e,n,r,o);for(var s=0;s<e.length;s++)if(this.hasUnknownValueItem(e,n,r,o))return!0;return!1},t.prototype.hasUnknownValueItem=function(e,n,r,o){if(n===void 0&&(n=!1),r===void 0&&(r=!0),o===void 0&&(o=!1),!o&&this.isValueEmpty(e)||n&&e==this.otherItem.value||this.showNoneItem&&e==this.noneItem.value||this.showRefuseItem&&e==this.refuseItem.value||this.showDontKnowItem&&e==this.dontKnowItem.value)return!1;var s=r?this.getFilteredChoices():this.activeChoices;return k.getItemByValue(s,e)==null},t.prototype.isValueDisabled=function(e){var n=k.getItemByValue(this.getFilteredChoices(),e);return!!n&&!n.isEnabled},t.prototype.endLoadingFromJson=function(){i.prototype.endLoadingFromJson.call(this),this.updateVisibleChoices()},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 n=this.getQuestionWithChoices();this.isLockVisibleChoices=!!n&&n.name===e,n&&n.name!==e&&(n.removeDependedQuestion(this),this.isInDesignMode&&!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(),e!=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=[],n=this.visibleChoices,r=0;r<n.length;r++)n[r].isEnabled&&e.push(n[r]);return e},enumerable:!1,configurable:!0}),t.prototype.updateVisibleChoices=function(){if(!(this.isLoadingFromJson||this.isDisposed)){var e=new Array,n=this.calcVisibleChoices();n||(n=[]);for(var r=0;r<n.length;r++)e.push(n[r]);var o=this.visibleChoices;(!this.isTwoValueEquals(o,e)||this.choicesLazyLoadEnabled)&&(this.setArrayPropertyDirectly("visibleChoices",e),this.updateRenderedChoices())}},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&&this.choicesOrder=="none"},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,n){this.headItemsCount=0,this.footItemsCount=0,this.isEmptyActiveChoicesInDesign||this.addNewItemToVisibleChoices(e,n);var r=new Array;this.addNonChoicesItems(r,n),r.sort(function(a,l){return a.index===l.index?0:a.index<l.index?-1:1});for(var o=0;o<r.length;o++){var s=r[o];s.index<0?(e.splice(o,0,s.item),this.headItemsCount++):(e.push(s.item),this.footItemsCount++)}},t.prototype.addNewItemToVisibleChoices=function(e,n){var r=this;n&&(this.newItemValue||(this.newItemValue=this.createItemValue("newitem"),this.newItemValue.isGhost=!0,this.newItemValue.registerFunctionOnPropertyValueChanged("isVisible",function(){r.updateVisibleChoices()})),this.newItemValue.isVisible&&!this.isUsingCarryForward&&this.canShowOptionItem(this.newItemValue,n,!1)&&(this.footItemsCount=1,e.push(this.newItemValue)))},t.prototype.addNonChoicesItems=function(e,n){this.supportNone()&&this.addNonChoiceItem(e,this.noneItem,n,this.showNoneItem,b.specialChoicesOrder.noneItem),this.supportRefuse()&&this.addNonChoiceItem(e,this.refuseItem,n,this.showRefuseItem,b.specialChoicesOrder.refuseItem),this.supportDontKnow()&&this.addNonChoiceItem(e,this.dontKnowItem,n,this.showDontKnowItem,b.specialChoicesOrder.dontKnowItem),this.supportOther()&&this.addNonChoiceItem(e,this.otherItem,n,this.hasOther,b.specialChoicesOrder.otherItem)},t.prototype.addNonChoiceItem=function(e,n,r,o,s){this.canShowOptionItem(n,r,o)&&s.forEach(function(a){return e.push({index:a,item:n})})},t.prototype.canShowOptionItem=function(e,n,r){var o=n&&(this.canShowOptionItemCallback?this.canShowOptionItemCallback(e):!0)||r;if(this.canSurveyChangeItemVisibility()){var s=this.changeItemVisibility();return s(e,o)}return o},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 b.showDefaultItemsInCreatorV2&&this.isInDesignModeV2&&!this.customWidget},enumerable:!1,configurable:!0}),t.prototype.getPlainData=function(e){var n=this;e===void 0&&(e={includeEmpty:!0,includeQuestionTypes:!1});var r=i.prototype.getPlainData.call(this,e);if(r){var o=Array.isArray(this.value)?this.value:[this.value];r.isNode=!0,r.data=(r.data||[]).concat(o.map(function(s,a){var l=k.getItemByValue(n.visibleChoices,s),u={name:a,title:"Choice",value:s,displayValue:n.getChoicesDisplayValue(n.visibleChoices,s),getString:function(d){return typeof d=="object"?JSON.stringify(d):d},isNode:!1};return l&&(e.calculations||[]).forEach(function(d){u[d.propertyName]=l[d.propertyName]}),n.isOtherSelected&&n.otherItemValue===l&&(u.isOther=!0,u.displayValue=n.otherValue),u}))}return r},t.prototype.getDisplayValueCore=function(e,n){return this.useDisplayValuesInDynamicTexts?this.getChoicesDisplayValue(this.visibleChoices,n):n},t.prototype.getDisplayValueEmpty=function(){return k.getTextOrHtmlByValue(this.visibleChoices,void 0)},t.prototype.getChoicesDisplayValue=function(e,n){if(n==this.otherItemValue.value)return this.otherValue?this.otherValue:this.locOtherText.textOrHtml;var r=this.getSingleSelectedItem();if(r&&this.isTwoValueEquals(r.value,n))return r.locText.textOrHtml;var o=k.getTextOrHtmlByValue(e,n);return o==""&&n?n:o},t.prototype.getDisplayArrayValue=function(e,n,r){for(var o=this,s=this.visibleChoices,a=[],l=[],u=0;u<n.length;u++)l.push(r?r(u):n[u]);if(P.isTwoValueEquals(this.value,l)&&this.getMultipleSelectedItems().forEach(function(v,V){return a.push(o.getItemDisplayValue(v,l[V]))}),a.length===0)for(var u=0;u<l.length;u++){var d=this.getChoicesDisplayValue(s,l[u]);d&&a.push(d)}return a.join(b.choicesSeparator)},t.prototype.getItemDisplayValue=function(e,n){if(e===this.otherItem){if(this.hasOther&&this.showCommentArea&&n)return n;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 this.carryForwardQuestionType==="select"?(e.addDependedQuestion(this),this.getChoicesFromSelectQuestion(e)):this.carryForwardQuestionType==="array"?(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.isInDesignModeV2&&(this.hasChoicesUrl||this.isMessagePanelVisible)},enumerable:!1,configurable:!0}),t.prototype.getCarryForwardQuestion=function(e){var n=this.findCarryForwardQuestion(e),r=this.getQuestionWithChoicesCore(n),o=r?null:this.getQuestionWithArrayValue(n);return this.setCarryForwardQuestionType(!!r,!!o),r||o?n:null},t.prototype.getIsReadyDependsOn=function(){var e=i.prototype.getIsReadyDependsOn.call(this);return this.carryForwardQuestion&&e.push(this.carryForwardQuestion),e},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&&x.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.isInDesignMode)return[];var n=e.value;if(!Array.isArray(n))return[];for(var r=[],o=0;o<n.length;o++){var s=n[o];if(P.isValueObject(s)){var a=this.getValueKeyName(s);if(a&&!this.isValueEmpty(s[a])){var l=this.choiceTextsFromQuestion?s[this.choiceTextsFromQuestion]:void 0;r.push(this.createItemValue(s[a],l))}}}return r},t.prototype.getValueKeyName=function(e){if(this.choiceValuesFromQuestion)return this.choiceValuesFromQuestion;var n=Object.keys(e);return n.length>0?n[0]:void 0},t.prototype.getChoicesFromSelectQuestion=function(e){if(this.isInDesignMode)return[];for(var n=[],r=this.choicesFromQuestionMode=="selected"?!0:this.choicesFromQuestionMode=="unselected"?!1:void 0,o=e.visibleChoices,s=0;s<o.length;s++)if(!e.isBuiltInChoice(o[s])){if(r===void 0){n.push(this.copyChoiceItem(o[s]));continue}var a=e.isItemSelected(o[s]);(a&&r||!a&&!r)&&n.push(this.copyChoiceItem(o[s]))}return this.choicesFromQuestionMode==="selected"&&!this.showOtherItem&&e.isOtherSelected&&e.comment&&n.push(this.createItemValue(e.otherItem.value,e.comment)),n},t.prototype.copyChoiceItem=function(e){var n=this.createItemValue(e.value);return n.setData(e),n},Object.defineProperty(t.prototype,"hasActiveChoices",{get:function(){var e=this.visibleChoices;(!e||e.length==0)&&(this.onVisibleChoicesChanged(),e=this.visibleChoices);for(var n=0;n<e.length;n++)if(!this.isBuiltInChoice(e[n]))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(e,n,r){var o=this;if(i.prototype.onCheckForErrors.call(this,e,n,r),!(!this.hasOther||!this.isOtherSelected||this.otherValue||n&&!this.prevOtherErrorValue)){var s=new wu(this.otherErrorText,this);s.onUpdateErrorTextCallback=function(a){a.text=o.otherErrorText},e.push(s)}},t.prototype.setSurveyImpl=function(e,n){this.isRunningChoices=!0,i.prototype.setSurveyImpl.call(this,e,n),this.isRunningChoices=!1,this.runChoicesByUrl(),this.isAddDefaultItems&&this.updateVisibleChoices()},t.prototype.setSurveyCore=function(e){i.prototype.setSurveyCore.call(this,e),e&&this.choicesFromQuestion&&this.onVisibleChoicesChanged()},t.prototype.getStoreOthersAsComment=function(){return this.isSettingDefaultValue||this.showCommentArea?!1:this.storeOthersAsComment===!0||this.storeOthersAsComment=="default"&&(this.survey!=null?this.survey.storeOthersAsComment:!0)||this.hasChoicesUrl&&!this.choicesFromUrl},t.prototype.onSurveyLoad=function(){this.runChoicesByUrl(),this.onVisibleChoicesChanged(),i.prototype.onSurveyLoad.call(this)},t.prototype.onAnyValueChanged=function(e,n){i.prototype.onAnyValueChanged.call(this,e,n),e!=this.getValueName()&&this.runChoicesByUrl();var r=this.choicesFromQuestion;e&&r&&(e===r||n===r)&&(this.onVisibleChoicesChanged(),this.clearIncorrectValues())},t.prototype.updateValueFromSurvey=function(e,n){var r="";this.hasOther&&!this.isRunningChoices&&!this.choicesByUrl.isRunning&&this.getStoreOthersAsComment()&&(this.hasUnknownValue(e)&&!this.getHasOther(e)?(r=this.getCommentFromValue(e),e=this.setOtherValueIntoValue(e)):this.data&&(r=this.data.getComment(this.getValueName()))),i.prototype.updateValueFromSurvey.call(this,e,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.isInDesignModeV2)){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(){b.web.disableQuestionWhileLoadingChoices===!0&&!this.isReadOnly&&(this.enableOnLoadingChoices=!0,this.readOnly=!0)},t.prototype.onLoadChoicesFromUrl=function(e){this.enableOnLoadingChoices&&(this.readOnly=!1);var n=[];this.isReadOnly||this.choicesByUrl&&this.choicesByUrl.error&&n.push(this.choicesByUrl.error);var r=null,o=!0;this.isFirstLoadChoicesFromUrl&&!this.cachedValueForUrlRequests&&this.defaultValue&&(this.cachedValueForUrlRequests=this.defaultValue,o=!1),this.isValueEmpty(this.cachedValueForUrlRequests)&&(this.cachedValueForUrlRequests=this.value);var s=this.createCachedValueForUrlRequests(this.cachedValueForUrlRequests,o);if(e&&(e.length>0||this.choicesByUrl.allowEmptyResponse)&&(r=new Array,k.setData(r,e)),r)for(var a=0;a<r.length;a++)r[a].locOwner=this;this.setChoicesFromUrl(r,n,s)},t.prototype.canAvoidSettChoicesFromUrl=function(e){if(this.isFirstLoadChoicesFromUrl)return!1;var n=!e||Array.isArray(e)&&e.length===0;return n&&!this.isEmpty()?!1:P.isTwoValueEquals(this.choicesFromUrl,e)},t.prototype.setChoicesFromUrl=function(e,n,r){if(!this.canAvoidSettChoicesFromUrl(e)){if(this.isFirstLoadChoicesFromUrl=!1,this.choicesFromUrl=e,this.filterItems(),this.onVisibleChoicesChanged(),e){var o=this.updateCachedValueForUrlRequests(r,e);if(o&&!this.isReadOnly){var s=!this.isTwoValueEquals(this.value,o.value);try{this.isValueEmpty(o.value)||(this.allowNotifyValueChanged=!1,this.setQuestionValue(void 0,!0,!1)),this.allowNotifyValueChanged=s,s?this.value=o.value:this.setQuestionValue(o.value)}finally{this.allowNotifyValueChanged=!0}}}!this.isReadOnly&&!e&&!this.isFirstLoadChoicesFromUrl&&(this.value=null),this.errors=n,this.choicesLoaded()}},t.prototype.createCachedValueForUrlRequests=function(e,n){if(this.isValueEmpty(e))return null;if(Array.isArray(e)){for(var r=[],o=0;o<e.length;o++)r.push(this.createCachedValueForUrlRequests(e[o],!0));return r}var s=n?!this.hasUnknownValue(e):!0;return{value:e,isExists:s}},t.prototype.updateCachedValueForUrlRequests=function(e,n){if(this.isValueEmpty(e))return null;if(Array.isArray(e)){for(var r=[],o=0;o<e.length;o++){var s=this.updateCachedValueForUrlRequests(e[o],n);if(s&&!this.isValueEmpty(s.value)){var a=s.value,u=k.getItemByValue(n,s.value);u&&(a=u.value),r.push(a)}}return{value:r}}var l=e.isExists&&this.hasUnknownValue(e.value)?null:e.value,u=k.getItemByValue(n,l);return u&&(l=u.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(e){i.prototype.onSurveyValueChanged.call(this,e),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 e=i.prototype.isVisibleCore.call(this);if(!this.hideIfChoicesEmpty||!e)return e;var n=this.isUsingCarryForward?this.visibleChoices:this.getFilteredChoices();return!n||n.length>0},t.prototype.sortVisibleChoices=function(e){if(this.isInDesignMode)return e;var n=this.choicesOrder.toLowerCase();return n=="asc"?this.sortArray(e,1):n=="desc"?this.sortArray(e,-1):n=="random"?this.randomizeArray(e):e},t.prototype.sortArray=function(e,n){return e.sort(function(r,o){return P.compareStrings(r.calculatedText,o.calculatedText)*n})},t.prototype.randomizeArray=function(e){return P.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||this.choicesFromUrl.length==0))},t.prototype.hasValueToClearIncorrectValues=function(){return this.survey&&this.survey.keepIncorrectValues?!1:!this.keepIncorrectValues&&!this.isEmpty()},t.prototype.clearValueIfInvisibleCore=function(e){i.prototype.clearValueIfInvisibleCore.call(this,e),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?!1:this.hasUnknownValue(e,!0,!0,!0)},t.prototype.clearDisabledValuesCore=function(){this.isValueDisabled(this.value)&&this.clearValue(!0)},t.prototype.clearUnusedValues=function(){i.prototype.clearUnusedValues.call(this),this.isOtherSelected||(this.otherValue=""),!this.showCommentArea&&!this.getStoreOthersAsComment()&&!this.isOtherSelected&&(this.comment="")},t.prototype.getColumnClass=function(){return new O().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 n={item:e},r=this.getItemClassCore(e,n);return n.css=r,this.survey&&this.survey.updateChoiceItemCss(this,n),n.css},t.prototype.getCurrentColCount=function(){return this.colCount},t.prototype.getItemClassCore=function(e,n){var r=new O().append(this.cssClasses.item).append(this.cssClasses.itemInline,!this.hasColumns&&this.colCount===0).append("sv-q-col-"+this.getCurrentColCount(),!this.hasColumns&&this.colCount!==0).append(this.cssClasses.itemOnError,this.hasCssError()),o=this.getIsDisableAndReadOnlyStyles(!e.isEnabled),s=o[0],a=o[1],l=this.isItemSelected(e)||this.isOtherSelected&&this.otherItem.value===e.value,u=!a&&!l&&!(this.survey&&this.survey.isDesignMode),d=e===this.noneItem;return n.isDisabled=a||s,n.isChecked=l,n.isNone=d,r.append(this.cssClasses.itemDisabled,a).append(this.cssClasses.itemReadOnly,s).append(this.cssClasses.itemPreview,this.isPreviewStyle).append(this.cssClasses.itemChecked,l).append(this.cssClasses.itemHover,u).append(this.cssClasses.itemNone,d).toString()},t.prototype.getLabelClass=function(e){return new O().append(this.cssClasses.label).append(this.cssClasses.labelChecked,this.isItemSelected(e)).toString()},t.prototype.getControlLabelClass=function(e){return new O().append(this.cssClasses.controlLabel).append(this.cssClasses.controlLabelChecked,this.isItemSelected(e)).toString()||void 0},t.prototype.updateRenderedChoices=function(){this.renderedChoices=this.onGetRenderedChoicesCallback?this.onGetRenderedChoicesCallback(this.visibleChoices):this.visibleChoices},t.prototype.getRenderedChoicesAnimationOptions=function(){var e=this;return{isAnimationEnabled:function(){return e.animationAllowed},getRerenderEvent:function(){return e.onElementRerendered},getKey:function(n){return n!=e.newItemValue?n.value:e.newItemValue},getLeaveOptions:function(n){var r=e.cssClasses.itemLeave;if(e.hasColumns){var o=e.bodyItems.indexOf(n);o!==-1&&o!==e.bodyItems.length-1&&(r="")}return{cssClass:r,onBeforeRunAnimation:Ae,onAfterRunAnimation:Ce}},getAnimatedElement:function(n){return n.getRootElement()},getEnterOptions:function(n){var r=e.cssClasses.itemEnter;if(e.hasColumns){var o=e.bodyItems.indexOf(n);o!==-1&&o!==e.bodyItems.length-1&&(r="")}return{cssClass:r,onBeforeRunAnimation:function(s){if(e.getCurrentColCount()==0&&e.bodyItems.indexOf(n)>=0){var a=s.parentElement.firstElementChild.offsetLeft;s.offsetLeft>a&&Mt(s,{moveAnimationDuration:"0s",fadeAnimationDelay:"0s"},"--")}Ae(s)},onAfterRunAnimation:Ce}}}},Object.defineProperty(t.prototype,"renderedChoices",{get:function(){return this._renderedChoices},set:function(e){this.renderedChoicesAnimation.sync(e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"headItems",{get:function(){for(var e=this.separateSpecialChoices||this.isInDesignMode?this.headItemsCount:0,n=[],r=0;r<e;r++)this.renderedChoices[r]&&n.push(this.renderedChoices[r]);return n},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"footItems",{get:function(){for(var e=this.separateSpecialChoices||this.isInDesignMode?this.footItemsCount:0,n=[],r=this.renderedChoices,o=0;o<e;o++)this.renderedChoices[r.length-e+o]&&n.push(this.renderedChoices[r.length-e+o]);return n},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"dataChoices",{get:function(){var e=this;return this.renderedChoices.filter(function(n){return!e.isBuiltInChoice(n)})},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"bodyItems",{get:function(){return this.hasHeadItems||this.hasFootItems?this.dataChoices:this.renderedChoices},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=[],n=this.getCurrentColCount();if(this.hasColumns&&this.renderedChoices.length>0){var r=!this.separateSpecialChoices&&!this.isInDesignMode?this.renderedChoices:this.dataChoices;if(b.showItemsInOrder=="column")for(var o=0,s=r.length%n,a=0;a<n;a++){for(var l=[],u=o;u<o+Math.floor(r.length/n);u++)l.push(r[u]);s>0&&(s--,l.push(r[u]),u++),o=u,e.push(l)}else for(var a=0;a<n;a++){for(var l=[],u=a;u<r.length;u+=n)l.push(r[u]);e.push(l)}}return e},enumerable:!1,configurable:!0}),t.prototype.getItemsColumnKey=function(e){return(e||[]).map(function(n){return n.value||""}).join("")},Object.defineProperty(t.prototype,"hasColumns",{get:function(){return!this.isMobile&&this.getCurrentColCount()>1},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"rowLayout",{get:function(){return this.getCurrentColCount()==0&&!(this.hasFootItems||this.hasHeadItems)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"blockedRow",{get:function(){return this.getCurrentColCount()==0&&(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 n=this.survey;return n?n.getItemValueWrapperComponentName(e,this):Ue.TemplateRendererComponentName},t.prototype.getItemValueWrapperComponentData=function(e){var n=this.survey;return n?n.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 O().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.focusOtherComment=function(){var e;le.FocusElement(this.otherId,!1,(e=this.survey)===null||e===void 0?void 0:e.rootElement)},t.prototype.onValueChanged=function(){i.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}),bn([h({onSet:function(e,n){n.onSelectedItemValuesChangedHandler(e)}})],t.prototype,"selectedItemValues",void 0),bn([h()],t.prototype,"separateSpecialChoices",void 0),bn([h({localizable:!0})],t.prototype,"otherPlaceholder",void 0),bn([ae()],t.prototype,"_renderedChoices",void 0),t}(ue),kt=function(i){as(t,i);function t(e){return i.call(this,e)||this}return 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(){i.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}(jr);function Nr(i,t){var e;if(!i)return!1;if(i.templateQuestion){var n=(e=i.colOwner)===null||e===void 0?void 0:e.data;if(i=i.templateQuestion,!i.getCarryForwardQuestion(n))return!1}return i.carryForwardQuestionType===t}x.addClass("selectbase",[{name:"showCommentArea:switch",layout:"row",visible:!0,category:"general"},"choicesFromQuestion:question_carryforward",{name:"choices:itemvalue[]",uniqueProperty:"value",baseValue:function(){return oe("choices_Item")},dependsOn:"choicesFromQuestion",visibleIf:function(i){return!i.choicesFromQuestion}},{name:"choicesFromQuestionMode",default:"all",choices:["all","selected","unselected"],dependsOn:"choicesFromQuestion",visibleIf:function(i){return Nr(i,"select")}},{name:"choiceValuesFromQuestion",dependsOn:"choicesFromQuestion",visibleIf:function(i){return Nr(i,"array")}},{name:"choiceTextsFromQuestion",dependsOn:"choicesFromQuestion",visibleIf:function(i){return Nr(i,"array")}},{name:"choicesOrder",default:"none",choices:["none","asc","desc","random"],dependsOn:"choicesFromQuestion",visibleIf:function(i){return!i.choicesFromQuestion}},{name:"choicesByUrl:restfull",className:"choicesByUrl",onGetValue:function(i){return i.choicesByUrl.getData()},onSetValue:function(i,t){i.choicesByUrl.setData(t)}},"hideIfChoicesEmpty:boolean","choicesVisibleIf:condition",{name:"choicesEnableIf:condition",dependsOn:"choicesFromQuestion",visibleIf:function(i){return!i.choicesFromQuestion}},{name:"defaultValue:value",visibleIf:function(i){return!i.choicesFromQuestion},dependsOn:"choicesFromQuestion"},{name:"correctAnswer:value",visibleIf:function(i){return!i.choicesFromQuestion},dependsOn:"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(i){return i.hasOther}},{name:"noneText",serializationProperty:"locNoneText",dependsOn:"showNoneItem",visibleIf:function(i){return i.showNoneItem}},{name:"refuseText",serializationProperty:"locRefuseText",dependsOn:"showRefuseItem",visibleIf:function(i){return i.showRefuseItem}},{name:"dontKnowText",serializationProperty:"locDontKnowText",dependsOn:"showDontKnowItem",visibleIf:function(i){return i.showDontKnowItem}},{name:"otherText",serializationProperty:"locOtherText",dependsOn:"showOtherItem",visibleIf:function(i){return i.hasOther}},{name:"otherErrorText",serializationProperty:"locOtherErrorText",dependsOn:"showOtherItem",visibleIf:function(i){return i.hasOther}},{name:"storeOthersAsComment",default:"default",choices:["default",!0,!1],visible:!1}],null,"question"),x.addClass("checkboxbase",[{name:"colCount:number",default:1,choices:[0,1,2,3,4,5],layout:"row"}],null,"selectbase");var Fr=function(){function i(t,e,n,r){this.x=t,this.y=e,this.width=n,this.height=r}return Object.defineProperty(i.prototype,"left",{get:function(){return this.x},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"top",{get:function(){return this.y},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"right",{get:function(){return this.x+this.width},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"bottom",{get:function(){return this.y+this.height},enumerable:!1,configurable:!0}),i}(),at=function(){function i(){}return i.calculatePosition=function(t,e,n,r,o,s){s===void 0&&(s="flex");var a=t.left,l=t.top;return s==="flex"&&(o=="center"?a=(t.left+t.right-n)/2:o=="left"?a=t.left-n:a=t.right),r=="middle"?l=(t.top+t.bottom-e)/2:r=="top"?l=t.top-e:l=t.bottom,o!="center"&&r!="middle"&&(r=="top"?l=l+t.height:l=l-t.height),{left:Math.round(a),top:Math.round(l)}},i.getCorrectedVerticalDimensions=function(t,e,n,r,o,s){o===void 0&&(o=!0),s===void 0&&(s={top:0,bottom:0});var a,l=n-i.bottomIndent;if(r==="top"&&(a={height:e,top:t}),t<-s.top)a={height:o?e+t:e,top:-s.top};else if(e+t>n){var u=Math.min(e,l-t);a={height:o?u:e,top:o?t:t-(e-u)}}return a&&(a.height=Math.min(a.height,l),a.top=Math.max(a.top,-s.top)),a},i.updateHorizontalDimensions=function(t,e,n,r,o,s){o===void 0&&(o="flex"),s===void 0&&(s={left:0,right:0}),e+=s.left+s.right;var a=void 0,l=t;return r==="center"&&(o==="fixed"?(t+e>n&&(a=n-t),l-=s.left):t<0?(l=s.left,a=Math.min(e,n)):e+t>n&&(l=n-e,l=Math.max(l,s.left),a=Math.min(e,n))),r==="left"&&t<0&&(l=s.left,a=Math.min(e,n)),r==="right"&&e+t>n&&(a=n-t),{width:a-s.left-s.right,left:l}},i.updateVerticalPosition=function(t,e,n,r,o){if(r==="middle")return r;var s=e-(t.top+(n!=="center"?t.height:0)),a=e+t.bottom-(n!=="center"?t.height:0)-o;return s>0&&a<=0&&r=="top"?r="bottom":a>0&&s<=0&&r=="bottom"?r="top":a>0&&s>0&&(r=s<a?"top":"bottom"),r},i.updateHorizontalPosition=function(t,e,n,r){if(n==="center")return n;var o=e-t.left,s=e+t.right-r;return o>0&&s<=0&&n=="left"?n="right":s>0&&o<=0&&n=="right"?n="left":s>0&&o>0&&(n=o<s?"left":"right"),n},i.calculatePopupDirection=function(t,e){var n;return e=="center"&&t!="middle"?n=t:e!="center"&&(n=e),n},i.calculatePointerTarget=function(t,e,n,r,o,s,a){s===void 0&&(s=0),a===void 0&&(a=0);var l={};return o!="center"?(l.top=t.top+t.height/2,l.left=t[o]):r!="middle"&&(l.top=t[r],l.left=t.left+t.width/2),l.left=Math.round(l.left-n),l.top=Math.round(l.top-e),o=="left"&&(l.left-=s+a),o==="center"&&(l.left-=s),l},i.bottomIndent=16,i}(),hc=function(){var i=function(t,e){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(n[o]=r[o])},i(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");i(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),lt=function(i,t,e,n){var r=arguments.length,o=r<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,e):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(i,t,e,n);else for(var a=i.length-1;a>=0;a--)(s=i[a])&&(o=(r<3?s(o):r>3?s(t,e,o):s(t,e))||o);return r>3&&o&&Object.defineProperty(t,e,o),o},ls='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^="-"])',_r=function(i){hc(t,i);function t(e){var n=i.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 Kn(n,function(r){n._isVisible!==r&&(r?(n.updateBeforeShowing(),n.updateIsVisible(r)):(n.updateOnHiding(),n.updateIsVisible(r),n.updateAfterHiding(),n._isPositionSetValue=!1))},function(){return n._isVisible}),n.onVisibilityChanged=new Ve,n.onModelIsVisibleChangedCallback=function(){n.isVisible=n.model.isVisible},n._isPositionSetValue=!1,n.model=e,n.locale=n.model.locale,n}return 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--leave",onBeforeRunAnimation:function(e){e.setAttribute("inert","")},onAfterRunAnimation:function(e){return e.removeAttribute("inert")}}},t.prototype.getEnterOptions=function(){return{cssClass:"sv-popup--enter"}},t.prototype.getAnimatedElement=function(){return this.getAnimationContainer()},t.prototype.isAnimationEnabled=function(){return this.model.displayMode!=="overlay"&&b.animationEnabled},t.prototype.getRerenderEvent=function(){return this.onElementRerendered},t.prototype.getAnimationContainer=function(){var e;return(e=this.container)===null||e===void 0?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:i.prototype.getLocale.call(this)},t.prototype.hidePopup=function(){this.model.isVisible=!1},t.prototype.getStyleClass=function(){return new O().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 Ee,this.footerToolbar.updateCallback=function(r){e.footerToolbarValue.actions.forEach(function(o){return o.cssClasses={item:"sv-popup__body-footer-item sv-popup__button sd-btn"}})};var n=[{id:"cancel",visibleIndex:10,title:this.cancelButtonText,innerCss:"sv-popup__button--cancel sd-btn",action:function(){e.cancel()}}];n=this.model.updateFooterActions(n),this.footerToolbarValue.setItems(n)},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 this.model.displayMode==="overlay"},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){e.key==="Tab"||e.keyCode===9?this.trapFocus(e):(e.key==="Escape"||e.keyCode===27)&&this.hidePopup()},t.prototype.trapFocus=function(e){var n=this.container.querySelectorAll(ls),r=n[0],o=n[n.length-1];e.shiftKey?b.environment.root.activeElement===r&&(o.focus(),e.preventDefault()):b.environment.root.activeElement===o&&(r.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=b.environment.root.activeElement,this.isOverlay&&this.resetDimensionsAndPositionStyleProperties(),this.switchFocus(),this._isPositionSetValue=!0},t.prototype.updateOnHiding=function(){this.isFocusedContent&&this.prevActiveElement&&this.prevActiveElement.focus({preventScroll:!0})},t.prototype.focusContainer=function(){if(this.container){var e=this.container.querySelector(this.popupSelector);e==null||e.focus()}},t.prototype.focusFirstInput=function(){var e=this;setTimeout(function(){if(e.container){var n=e.container.querySelector(e.model.focusFirstInputSelector||ls);n?n.focus():e.focusContainer()}},100)},t.prototype.clickOutside=function(e){this.hidePopup(),e==null||e.stopPropagation()},t.prototype.cancel=function(){this.model.onCancel(),this.hidePopup()},t.prototype.dispose=function(){i.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=I.createElement("div");this.createdContainer=e,Zn(b.environment.popupMountContainer).appendChild(e)}},t.prototype.setComponentElement=function(e){e&&(this.containerElement=e)},t.prototype.resetComponentElement=function(){this.containerElement=void 0,this.prevActiveElement=void 0},t.prototype.preventScrollOuside=function(e,n){for(var r=e.target;r!==this.container;){if(I.getComputedStyle(r).overflowY==="auto"&&r.scrollHeight!==r.offsetHeight){var o=r.scrollHeight,s=r.scrollTop,a=r.clientHeight;if(!(n>0&&Math.abs(o-a-s)<1)&&!(n<0&&s<=0))return}r=r.parentElement}e.cancelable&&e.preventDefault()},lt([h({defaultValue:"0px"})],t.prototype,"top",void 0),lt([h({defaultValue:"0px"})],t.prototype,"left",void 0),lt([h({defaultValue:"auto"})],t.prototype,"height",void 0),lt([h({defaultValue:"auto"})],t.prototype,"width",void 0),lt([h({defaultValue:"auto"})],t.prototype,"minWidth",void 0),lt([h({defaultValue:!1})],t.prototype,"_isVisible",void 0),lt([h()],t.prototype,"locale",void 0),t}(z),gc=function(){var i=function(t,e){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(n[o]=r[o])},i(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");i(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),Br=function(i,t,e,n){var r=arguments.length,o=r<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,e):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(i,t,e,n);else for(var a=i.length-1;a>=0;a--)(s=i[a])&&(o=(r<3?s(o):r>3?s(t,e,o):s(t,e))||o);return r>3&&o&&Object.defineProperty(t,e,o),o};function us(i,t){var e=i||E.getInnerWidth(),n=t||E.getInnerHeight(),r=Math.min(e,n),o=r>=kr.tabletSizeBreakpoint;return o}var kr=function(i){gc(t,i);function t(e){var n=i.call(this,e)||this;return n.scrollEventCallBack=function(r){if(n.isOverlay&&ne){r.stopPropagation(),r.preventDefault();return}n.hidePopup()},n.resizeEventCallback=function(){if(E.isAvailable()){var r=E.getVisualViewport(),o=I.getDocumentElement();o&&r&&o.style.setProperty("--sv-popup-overlay-height",r.height*r.scale+"px")}},n.resizeWindowCallback=function(){n.isOverlay||n.updatePosition(!0,Ue.platform==="vue"||Ue.platform==="vue3"||Ue.platform=="react")},n.clientY=0,n.isTablet=!1,n.touchStartEventCallback=function(r){n.clientY=r.touches[0].clientY},n.touchMoveEventCallback=function(r){n.preventScrollOuside(r,n.clientY-r.changedTouches[0].clientY)},n.model.onRecalculatePosition.add(n.recalculatePositionHandler),n}return t.prototype.calculateIsTablet=function(e,n){this.isTablet=us(e,n)},t.prototype.getAvailableAreaRect=function(){var e=this.model.getAreaCallback?this.model.getAreaCallback(this.container):void 0;if(e){var n=e.getBoundingClientRect();return new Fr(n.x,n.y,n.width,n.height)}return new Fr(0,0,E.getInnerWidth(),E.getInnerHeight())},t.prototype.getTargetElementRect=function(){var e=this.container,n=this.model.getTargetCallback?this.model.getTargetCallback(e):void 0;if(e&&e.parentElement&&!this.isModal&&!n&&(n=e.parentElement),!n)return null;var r=n.getBoundingClientRect(),o=this.getAvailableAreaRect();return new Fr(r.left-o.left,r.top-o.top,r.width,r.height)},t.prototype._updatePosition=function(){var e,n,r,o=this.getTargetElementRect();if(o){var s=this.getAvailableAreaRect(),a=(e=this.container)===null||e===void 0?void 0:e.querySelector(this.containerSelector);if(a){var l=(n=this.container)===null||n===void 0?void 0:n.querySelector(this.fixedPopupContainer),u=a.querySelector(this.scrollingContentSelector),d=I.getComputedStyle(a),v=parseFloat(d.marginLeft)||0,V=parseFloat(d.marginRight)||0,T=parseFloat(d.marginTop)||0,R=parseFloat(d.marginBottom)||0,N=a.offsetHeight-u.offsetHeight+u.scrollHeight,j=a.getBoundingClientRect().width;this.model.setWidthByTarget&&(this.minWidth=o.width+"px");var A=this.model.verticalPosition,Q=this.getActualHorizontalPosition();if(E.isAvailable()){var re=[N,E.getInnerHeight()*.9,(r=E.getVisualViewport())===null||r===void 0?void 0:r.height];N=Math.ceil(Math.min.apply(Math,re.filter(function(ct){return typeof ct=="number"}))),A=at.updateVerticalPosition(o,N,this.model.horizontalPosition,this.model.verticalPosition,s.height),Q=at.updateHorizontalPosition(o,j,Q,s.width)}this.popupDirection=at.calculatePopupDirection(A,Q);var ie=at.calculatePosition(o,N,j+v+V,A,Q,this.model.positionMode);if(E.isAvailable()){var xe=at.getCorrectedVerticalDimensions(ie.top,N,s.height,A,this.model.canShrink,{top:T,bottom:R});if(xe&&(this.height=xe.height+"px",ie.top=xe.top),this.model.setWidthByTarget)this.width=o.width+"px",ie.left=o.left;else{var Re=at.updateHorizontalDimensions(ie.left,j,E.getInnerWidth(),Q,this.model.positionMode,{left:v,right:V});Re&&(this.width=Re.width?Re.width+"px":void 0,ie.left=Re.left)}}if(l){var wt=l.getBoundingClientRect();ie.top-=wt.top,ie.left-=wt.left}ie.left+=s.left,ie.top+=s.top,this.left=ie.left+"px",this.top=ie.top+"px",this.showHeader&&(this.pointerTarget=at.calculatePointerTarget(o,ie.top,ie.left,A,Q,v,V),this.pointerTarget.top+="px",this.pointerTarget.left+="px")}}},t.prototype.getActualHorizontalPosition=function(){var e=this.model.horizontalPosition;if(I.isAvailable()){var n=I.getComputedStyle(I.getBody()).direction=="rtl";n&&(this.model.horizontalPosition==="left"?e="right":this.model.horizontalPosition==="right"&&(e="left"))}return e},t.prototype.getStyleClass=function(){var e=this.model.overlayDisplayMode;return i.prototype.getStyleClass.call(this).append("sv-popup--dropdown",!this.isOverlay).append("sv-popup--dropdown-overlay",this.isOverlay&&e!=="plain").append("sv-popup--tablet",this.isOverlay&&(e=="tablet-dropdown-overlay"||e=="auto"&&this.isTablet)).append("sv-popup--show-pointer",!this.isOverlay&&this.showHeader).append("sv-popup--"+this.popupDirection,!this.isOverlay&&(this.showHeader||this.popupDirection=="top"||this.popupDirection=="bottom"))},t.prototype.getShowHeader=function(){return this.model.showPointer&&!this.isOverlay},t.prototype.getPopupHeaderTemplate=function(){return"popup-pointer"},t.prototype.setComponentElement=function(e){i.prototype.setComponentElement.call(this,e)},t.prototype.resetComponentElement=function(){i.prototype.resetComponentElement.call(this)},t.prototype.updateOnShowing=function(){var e=b.environment.root;this.prevActiveElement=e.activeElement,this.isOverlay?this.resetDimensionsAndPositionStyleProperties():this.updatePosition(!0,!1),this.switchFocus(),E.addEventListener("resize",this.resizeWindowCallback),this.shouldCreateResizeCallback&&(E.getVisualViewport().addEventListener("resize",this.resizeEventCallback),this.container&&(this.container.addEventListener("touchstart",this.touchStartEventCallback),this.container.addEventListener("touchmove",this.touchMoveEventCallback)),this.calculateIsTablet(),this.resizeEventCallback()),E.addEventListener("scroll",this.scrollEventCallBack),this._isPositionSetValue=!0},Object.defineProperty(t.prototype,"shouldCreateResizeCallback",{get:function(){return!!E.getVisualViewport()&&this.isOverlay&&ne},enumerable:!1,configurable:!0}),t.prototype.updatePosition=function(e,n){var r=this;n===void 0&&(n=!0),e&&(this.height="auto"),n?setTimeout(function(){r._updatePosition()},1):this._updatePosition()},t.prototype.updateOnHiding=function(){i.prototype.updateOnHiding.call(this),E.removeEventListener("resize",this.resizeWindowCallback),this.shouldCreateResizeCallback&&(E.getVisualViewport().removeEventListener("resize",this.resizeEventCallback),this.container&&(this.container.removeEventListener("touchstart",this.touchStartEventCallback),this.container.removeEventListener("touchmove",this.touchMoveEventCallback))),E.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(e){var n=this;this.model&&this.model.onRecalculatePosition.remove(this.recalculatePositionHandler),this.recalculatePositionHandler||(this.recalculatePositionHandler=function(r,o){n.isOverlay||n.updatePosition(o.isResetHeight)}),i.prototype.onModelChanging.call(this,e),e.onRecalculatePosition.add(this.recalculatePositionHandler)},t.prototype.dispose=function(){i.prototype.dispose.call(this),this.updateOnHiding(),this.model&&(this.model.onRecalculatePosition.remove(this.recalculatePositionHandler),this.recalculatePositionHandler=void 0),this.resetComponentElement()},t.tabletSizeBreakpoint=600,Br([h()],t.prototype,"isTablet",void 0),Br([h({defaultValue:"left"})],t.prototype,"popupDirection",void 0),Br([h({defaultValue:{left:"0px",top:"0px"}})],t.prototype,"pointerTarget",void 0),t}(_r),yc=function(){var i=function(t,e){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(n[o]=r[o])},i(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");i(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),$e=function(i,t,e,n){var r=arguments.length,o=r<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,e):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(i,t,e,n);else for(var a=i.length-1;a>=0;a--)(s=i[a])&&(o=(r<3?s(o):r>3?s(t,e,o):s(t,e))||o);return r>3&&o&&Object.defineProperty(t,e,o),o},Cn=function(i){yc(t,i);function t(e,n){var r=i.call(this)||this;r.question=e,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.listModelFilterStringChanged=function(s){r.filterString!==s&&(r.filterString=s)},r.questionPropertyChangedHandler=function(s,a){r.onPropertyChangedHandler(s,a)},r.htmlCleanerElement=I.createElement("div"),e.onPropertyChanged.add(r.questionPropertyChangedHandler),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();var o=e.cssClasses;return r.updateCssClasses(o.popup,o.list),r}return Object.defineProperty(t.prototype,"focusFirstInputSelector",{get:function(){return this.getFocusFirstInputSelector()},enumerable:!1,configurable:!0}),t.prototype.getFocusFirstInputSelector=function(){return ne?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,n){this.itemsSettings.items=[].concat(this.itemsSettings.items,e),this.itemsSettings.totalCount=n,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 n=this;this.question.survey.loadQuestionChoices({question:this.question,filter:this.filterString,skip:this.itemsSettings.skip,take:this.itemsSettings.take,setItems:function(r,o){n.setItems(r||[],o||0),n.popupRecalculatePosition(n.itemsSettings.skip===n.itemsSettings.take),e&&e()}}),this.itemsSettings.skip+=this.itemsSettings.take},t.prototype.updateQuestionChoices=function(e){var n=this,r=this.itemsSettings.skip+1<this.itemsSettings.totalCount;(!this.itemsSettings.skip||r)&&(this.resetTimer(),this.filterString&&b.dropdownSearchDelay>0?this.timer=setTimeout(function(){n.loadQuestionChoices(e)},b.dropdownSearchDelay):this.loadQuestionChoices(e))},t.prototype.resetTimer=function(){this.timer&&(clearTimeout(this.timer),this.timer=void 0)},t.prototype.updatePopupFocusFirstInputSelector=function(){this._popupModel.focusFirstInputSelector=this.focusFirstInputSelector},t.prototype.getDropdownMenuOptions=function(){var e=E.getInnerWidth(),n=E.getInnerHeight(),r=us(e,n),o="dropdown",s="desktop";return ne&&(o=r?"popup":"overlay",s=r?"tablet":"mobile"),{menuType:o,deviceType:s,hasTouchScreen:ne,screenHeight:n,screenWidth:e}},t.prototype.createPopup=function(){var e=this,n={verticalPosition:"bottom",horizontalPosition:"center",showPointer:!1};this._popupModel=new Et("sv-list",{model:this.listModel},n),this._popupModel.displayMode=ne?"overlay":"popup",this._popupModel.positionMode="fixed",this._popupModel.isFocusedContainer=!1,this._popupModel.isFocusedContent=ne,this._popupModel.setWidthByTarget=!ne,this._popupModel.locale=this.question.getLocale(),this.updatePopupFocusFirstInputSelector(),this.listModel.registerPropertyChangedHandlers(["showFilter"],function(){e.updatePopupFocusFirstInputSelector()}),this._popupModel.onVisibilityChanged.add(function(r,o){if(o.isVisible&&(e.listModel.renderElements=!0),o.isVisible&&e.question.choicesLazyLoadEnabled&&(e.listModel.actions=[],e.resetItemsSettings(),e.updateQuestionChoices()),o.isVisible){e.updatePopupFocusFirstInputSelector();var s=e.getDropdownMenuOptions(),a=s.menuType;e.question.processOpenDropdownMenu(s),a!==s.menuType&&(e._popupModel.updateDisplayMode(s.menuType),e.listModel.setSearchEnabled(e.searchEnabled&&s.menuType!=="dropdown")),e.question.onOpenedCallBack&&e.question.onOpenedCallBack()}o.isVisible||(e.onHidePopup(),e.question.choicesLazyLoadEnabled&&e.resetItemsSettings()),e.question.ariaExpanded=o.isVisible?"true":"false",e.question.processPopupVisiblilityChanged(e.popupModel,o.isVisible)})},t.prototype.setFilterStringToListModel=function(e){var n=this;if(this.listModel.filterString=e,this.listModel.resetFocusedItem(),this.question.selectedItem&&this.question.selectedItem.text.indexOf(e)>=0){this.listModel.focusedItem=this.getAvailableItems().filter(function(r){return r.id==n.question.selectedItem.value})[0],this.listModel.filterString&&this.listModel.actions.map(function(r){return r.selectedValue=!1});return}(!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 n=this;setTimeout(function(){n.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 n=this;e.setOnTextSearchCallback(function(r,o){if(n.filteredItems)return n.filteredItems.indexOf(r)>=0;var s=r.text.toLocaleLowerCase();s=b.comparator.normalizeTextCallback(s,"filter");var a=s.indexOf(o.toLocaleLowerCase());return n.question.searchMode=="startsWith"?a==0:a>-1})},t.prototype.createListModel=function(){var e=this,n=this.getAvailableItems(),r=this.onSelectionChanged;r||(r=function(a){e.question.value=a.id,e.question.searchEnabled&&e.applyInputString(a),e.popupModel.hide()});var o={items:n,onSelectionChanged:r,allowSelection:!1,locOwner:this.question,elementId:this.listElementId},s=new Rt(o);return this.setOnTextSearchCallbackForListModel(s),s.renderElements=!1,s.forceShowFilter=!0,s.areSameItemsCallback=function(a,l){return a===l},s},t.prototype.updateAfterListModelCreated=function(e){var n=this;e.isItemSelected=function(r){return!!r.selected},e.onPropertyChanged.add(function(r,o){o.name=="hasVerticalScroller"&&(n.hasScroll=o.newValue)}),e.isAllDataLoaded=!this.question.choicesLazyLoadEnabled,e.actions.forEach(function(r){return r.disableTabStop=!0})},t.prototype.getPopupCssClasses=function(){return"sv-single-select-list"},t.prototype.updateCssClasses=function(e,n){this.popupModel.cssClass=new O().append(e).append(this.getPopupCssClasses()).toString(),this.listModel.cssClasses=n},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 n={question:this.question,choices:this.getAvailableItems(),filter:this.filterString,filteredChoices:void 0};this.question.survey.onChoicesSearch.fire(this.question.survey,n),this.filteredItems=n.filteredChoices,this.filterString&&!this.popupModel.isVisible&&this.popupModel.show();var r=function(){e.setFilterStringToListModel(e.filterString),e.popupRecalculatePosition(!0)};this.question.choicesLazyLoadEnabled?(this.resetItemsSettings(),this.updateQuestionChoices(r)):r()}},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){var n=e==null?void 0:e.locText.hasHtml;n||this.question.inputFieldComponentName?(this._markdownMode=!0,this.inputString=this.cleanHtml(e==null?void 0:e.locText.getHtmlValue()),this.hintString=""):(this.inputString=e==null?void 0:e.title,this.hintString=e==null?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){var n=e==null?void 0:e.locText.hasHtml;n||this.question.inputFieldComponentName?(this._markdownMode=!0,this.hintString=""):this.hintString=e==null?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((e=this.hintString)===null||e===void 0?void 0:e.toLowerCase())||""},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"inputStringLC",{get:function(){var e;return((e=this.inputString)===null||e===void 0?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 e==-1?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 ne?"none":"text"},enumerable:!1,configurable:!0}),t.prototype.setSearchEnabled=function(e){this.listModel.setSearchEnabled(ne&&e),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.focusInputElement(!1))},t.prototype.chevronPointerDown=function(e){this._popupModel.isVisible&&e.preventDefault()},t.prototype.onPropertyChangedHandler=function(e,n){n.name=="value"&&(this.showInputFieldComponent=this.question.showInputFieldComponent),n.name=="textWrapEnabled"&&this.setTextWrapEnabled(n.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 n,r=this.listModel.focusedItem;!r&&this.question.selectedItem?k.getItemByValue(this.question.visibleChoices,this.question.value)&&(this.listModel.focusedItem=this.question.selectedItem):e?this.listModel.focusPrevVisibleItem():this.listModel.focusNextVisibleItem(),this.beforeScrollToFocusedItem(r),this.scrollToFocusedItem(),this.afterScrollToFocusedItem(),this.ariaActivedescendant=(n=this.listModel.focusedItem)===null||n===void 0?void 0:n.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=(e=this.listModel.focusedItem)===null||e===void 0?void 0:e.elementId},t.prototype.keyHandler=function(e){var n=e.which||e.keyCode;if(this.popupModel.isVisible&&e.keyCode===38?(this.changeSelectionWithKeyboard(!0),e.preventDefault(),e.stopPropagation()):e.keyCode===40&&(this.popupModel.show(),this.changeSelectionWithKeyboard(!1),e.preventDefault(),e.stopPropagation()),e.keyCode===9)this.popupModel.hide();else if(!this.popupModel.isVisible&&(e.keyCode===13||e.keyCode===32))e.keyCode===32&&(this.popupModel.show(),this.changeSelectionWithKeyboard(!1)),e.keyCode===13&&this.question.survey.questionEditFinishCallback(this.question,e),e.preventDefault(),e.stopPropagation();else if(this.popupModel.isVisible&&(e.keyCode===13||e.keyCode===32&&(!this.question.searchEnabled||!this.inputString)))e.keyCode===13&&this.question.searchEnabled&&!this.inputString&&this.question instanceof qt&&!this._markdownMode&&this.question.value?(this._popupModel.hide(),this.onClear(e)):(this.listModel.selectFocusedItem(),this.onFocus(e)),e.preventDefault(),e.stopPropagation();else if(n===46||n===8)this.searchEnabled||this.onClear(e);else if(e.keyCode===27)this._popupModel.hide(),this.hintString="",this.onEscape();else{if((e.keyCode===38||e.keyCode===40||e.keyCode===32&&!this.question.searchEnabled)&&(e.preventDefault(),e.stopPropagation()),e.keyCode===32&&this.question.searchEnabled)return;po(e,{processEsc:!1,disableTabStop:this.question.isInputReadOnly})}},t.prototype.onEscape=function(){this.question.searchEnabled&&this.applyInputString(this.question.selectedItem)},t.prototype.onScroll=function(e){var n=e.target;n.scrollHeight-(n.scrollTop+n.offsetHeight)<=this.loadingItemHeight&&this.updateQuestionChoices()},t.prototype.onBlur=function(e){if(this.focused=!1,this.popupModel.isVisible&&ne){this._popupModel.show();return}fo(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(){i.prototype.dispose.call(this),this.question&&this.question.onPropertyChanged.remove(this.questionPropertyChangedHandler),this.questionPropertyChangedHandler=void 0,this.listModel&&this.listModel.dispose(),this.popupModel&&this.popupModel.dispose(),this.htmlCleanerElement=void 0},t.prototype.scrollToFocusedItem=function(){this.listModel.scrollToFocusedItem()},$e([h({defaultValue:!1})],t.prototype,"focused",void 0),$e([h({defaultValue:!0})],t.prototype,"searchEnabled",void 0),$e([h({defaultValue:"",onSet:function(e,n){n.onSetFilterString()}})],t.prototype,"filterString",void 0),$e([h({defaultValue:"",onSet:function(e,n){n.question.inputHasValue=!!e}})],t.prototype,"inputString",void 0),$e([h({})],t.prototype,"showInputFieldComponent",void 0),$e([h()],t.prototype,"ariaActivedescendant",void 0),$e([h({defaultValue:!1,onSet:function(e,n){e?n.listModel.addScrollEventListener(function(r){n.onScroll(r)}):n.listModel.removeScrollEventListener()}})],t.prototype,"hasScroll",void 0),$e([h({defaultValue:""})],t.prototype,"hintString",void 0),t}(z),mc=function(){var i=function(t,e){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(n[o]=r[o])},i(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");i(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),Be=function(i,t,e,n){var r=arguments.length,o=r<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,e):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(i,t,e,n);else for(var a=i.length-1;a>=0;a--)(s=i[a])&&(o=(r<3?s(o):r>3?s(t,e,o):s(t,e))||o);return r>3&&o&&Object.defineProperty(t,e,o),o},qt=function(i){mc(t,i);function t(e){var n=i.call(this,e)||this;return n.lastSelectedItemValue=null,n.minMaxChoices=[],n.onOpened=n.addEvent(),n.ariaExpanded="false",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 t.prototype.updateReadOnlyText=function(){var e=this.selectedItem?"":this.placeholder;this.renderAs=="select"&&(this.isOtherSelected?e=this.otherText:this.isNoneSelected?e=this.noneText:this.selectedItem&&(e=this.selectedItemText)),this.readOnlyText=e},t.prototype.locStrsChanged=function(){i.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||b.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 e=i.prototype.getChoices.call(this);if(this.choicesMax<=this.choicesMin)return e;for(var n=[],r=0;r<e.length;r++)n.push(e[r]);if(this.minMaxChoices.length===0||this.minMaxChoices.length!==(this.choicesMax-this.choicesMin)/this.choicesStep+1){this.minMaxChoices=[];for(var r=this.choicesMin;r<=this.choicesMax;r+=this.choicesStep)this.minMaxChoices.push(this.createItemValue(r))}return n=n.concat(this.minMaxChoices),n},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 O().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()},t.prototype.updateCssClasses=function(e,n){i.prototype.updateCssClasses.call(this,e,n),this.useDropdownList&&lr(e,n)},t.prototype.calcCssClasses=function(e){var n=i.prototype.calcCssClasses.call(this,e);return this.dropdownListModelValue&&this.dropdownListModel.updateCssClasses(n.popup,n.list),n},Object.defineProperty(t.prototype,"selectedItemLocText",{get:function(){var e=this.suggestedItem||this.selectedItem;return e==null?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,"useDropdownList",{get:function(){return this.renderAs!=="select"},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"dropdownListModel",{get:function(){return this.useDropdownList&&!this.dropdownListModelValue&&(this.dropdownListModelValue=new Cn(this)),this.dropdownListModelValue},set:function(e){this.dropdownListModelValue=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"popupModel",{get:function(){return this.dropdownListModel.popupModel},enumerable:!1,configurable:!0}),t.prototype.onOpenedCallBack=function(){this.onOpened.fire(this,{question:this,choices:this.choices})},t.prototype.onSelectedItemValuesChangedHandler=function(e){var n;(n=this.dropdownListModelValue)===null||n===void 0||n.setInputStringFromSelectedItem(e),i.prototype.onSelectedItemValuesChangedHandler.call(this,e)},t.prototype.hasUnknownValue=function(e,n,r,o){return this.choicesLazyLoadEnabled?!1:i.prototype.hasUnknownValue.call(this,e,n,r,o)},t.prototype.needConvertRenderedOtherToDataValue=function(){var e,n=(e=this.otherValue)===null||e===void 0?void 0:e.trim();return n?i.prototype.hasUnknownValue.call(this,n,!0,!1):!1},t.prototype.getItemIfChoicesNotContainThisValue=function(e,n){return this.choicesLazyLoadEnabled?this.createItemValue(e,n):i.prototype.getItemIfChoicesNotContainThisValue.call(this,e,n)},t.prototype.onVisibleChoicesChanged=function(){i.prototype.onVisibleChoicesChanged.call(this),this.dropdownListModelValue&&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(e){var n;i.prototype.clearValue.call(this,e),this.lastSelectedItemValue=null,(n=this.dropdownListModelValue)===null||n===void 0||n.clear()},t.prototype.afterRenderCore=function(e){i.prototype.afterRenderCore.call(this,e),this.dropdownListModelValue&&this.dropdownListModelValue.clear()},t.prototype.onClick=function(e){this.onOpenedCallBack&&this.onOpenedCallBack()},t.prototype.onKeyUp=function(e){var n=e.which||e.keyCode;n===46&&(this.clearValue(!0),e.preventDefault(),e.stopPropagation())},t.prototype.supportEmptyValidation=function(){return!0},t.prototype.onBlurCore=function(e){this.dropdownListModel.onBlur(e),i.prototype.onBlurCore.call(this,e)},t.prototype.onFocusCore=function(e){this.dropdownListModel.onFocus(e),i.prototype.onFocusCore.call(this,e)},t.prototype.dispose=function(){i.prototype.dispose.call(this),this.dropdownListModelValue&&(this.dropdownListModelValue.dispose(),this.dropdownListModelValue=void 0)},Be([h()],t.prototype,"allowClear",void 0),Be([h({onSet:function(e,n){n.dropdownListModelValue&&n.dropdownListModel.setSearchEnabled(e)}})],t.prototype,"searchEnabled",void 0),Be([h()],t.prototype,"searchMode",void 0),Be([h()],t.prototype,"textWrapEnabled",void 0),Be([h({defaultValue:!1})],t.prototype,"inputHasValue",void 0),Be([h({defaultValue:""})],t.prototype,"readOnlyText",void 0),Be([h({onSet:function(e,n){n.dropdownListModelValue&&n.dropdownListModel.setChoicesLazyLoadEnabled(e)}})],t.prototype,"choicesLazyLoadEnabled",void 0),Be([h()],t.prototype,"choicesLazyLoadPageSize",void 0),Be([h()],t.prototype,"suggestedItem",void 0),t}(jr);x.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:b.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 qt("")},"selectbase"),J.Instance.registerQuestion("dropdown",function(i){var t=new qt(i);return t.choices=J.DefaultChoices,t});var qr=function(){var i=function(t,e){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(n[o]=r[o])},i(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");i(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),cs=function(i){qr(t,i);function t(e,n,r,o){var s=i.call(this)||this;return s.item=e,s.fullName=n,s.data=r,s.setValueDirectly(o),s.cellClick=function(a){s.value=a.value},s.registerPropertyChangedHandlers(["value"],function(){s.data&&s.data.onMatrixRowChanged(s)}),s.data&&s.data.hasErrorInRow(s)&&(s.hasError=!0),s}return 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 O().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 O().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}(z),fs=function(i){qr(t,i);function t(e){var n=i.call(this)||this;return n.cellsOwner=e,n.values={},n.locs={},n}return t.prototype.getType=function(){return"cells"},Object.defineProperty(t.prototype,"isEmpty",{get:function(){return Object.keys(this.values).length==0},enumerable:!1,configurable:!0}),t.prototype.valuesChanged=function(){!this.locNotification&&this.onValuesChanged&&this.onValuesChanged()},t.prototype.getDefaultCellLocText=function(e){return this.getCellLocCore(this.defaultRowValue,e)},t.prototype.getCellDisplayLocText=function(e,n){return this.getCellLocCore(e,n)},t.prototype.getCellLocCore=function(e,n){var r=this;if(e=this.getCellRowColumnValue(e,this.rows),n=this.getCellRowColumnValue(n,this.columns),P.isValueEmpty(e)||P.isValueEmpty(n))return null;this.locs[e]||(this.locs[e]={});var o=this.locs[e][n];return o||(o=this.createString(),o.setJson(this.getCellLocData(e,n)),o.onGetTextCallback=function(s){if(!s){var a=k.getItemByValue(r.columns,n);if(a)return a.locText.getJson()||a.value}return s},o.onStrChanged=function(s,a){r.updateValues(e,n,a)},this.locs[e][n]=o),o},Object.defineProperty(t.prototype,"defaultRowValue",{get:function(){return b.matrix.defaultRowName},enumerable:!1,configurable:!0}),t.prototype.getCellLocData=function(e,n){var r=this.getCellLocDataFromValue(e,n);return r||this.getCellLocDataFromValue(this.defaultRowValue,n)},t.prototype.getCellLocDataFromValue=function(e,n){return!this.values[e]||!this.values[e][n]?null:this.values[e][n]},t.prototype.getCellText=function(e,n){var r=this.getCellLocCore(e,n);return r?r.calculatedText:null},t.prototype.setCellText=function(e,n,r){var o=this.getCellLocCore(e,n);o&&(o.text=r)},t.prototype.updateValues=function(e,n,r){r?(this.values[e]||(this.values[e]={}),this.values[e][n]=r,this.valuesChanged()):this.values[e]&&this.values[e][n]&&(delete this.values[e][n],Object.keys(this.values[e]).length==0&&delete this.values[e],this.valuesChanged())},t.prototype.getDefaultCellText=function(e){var n=this.getCellLocCore(this.defaultRowValue,e);return n?n.calculatedText:null},t.prototype.setDefaultCellText=function(e,n){this.setCellText(this.defaultRowValue,e,n)},t.prototype.getCellDisplayText=function(e,n){var r=this.getCellDisplayLocText(e,n);return r?r.calculatedText:null},Object.defineProperty(t.prototype,"rows",{get:function(){return this.cellsOwner?this.cellsOwner.getRows():[]},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"columns",{get:function(){return this.cellsOwner?this.cellsOwner.getColumns():[]},enumerable:!1,configurable:!0}),t.prototype.getCellRowColumnValue=function(e,n){if(e==null)return null;if(typeof e=="number"){if(e<0||e>=n.length)return null;e=n[e].value}return e.value?e.value:e},t.prototype.getJson=function(){if(this.isEmpty)return null;var e=this.values[this.defaultRowValue],n={};for(var r in this.values){var o={},s=this.values[r];for(var a in s)(r===this.defaultRowValue||!e||e[a]!==s[a])&&(o[a]=s[a]);n[r]=o}return n},t.prototype.setJson=function(e,n){var r=this;if(this.values={},e){for(var o in e)if(o!="pos"){var s=e[o];this.values[o]={};for(var a in s)a!="pos"&&(this.values[o][a]=s[a])}}this.locNotification=!0,this.runFuncOnLocs(function(l,u,d){return d.setJson(r.getCellLocData(l,u))}),this.locNotification=!1,this.valuesChanged()},t.prototype.locStrsChanged=function(){this.runFuncOnLocs(function(e,n,r){return r.strChanged()})},t.prototype.runFuncOnLocs=function(e){for(var n in this.locs){var r=this.locs[n];for(var o in r)e(n,o,r[o])}},t.prototype.createString=function(){return new Se(this.cellsOwner,!0)},t}(z),Qr=function(i){qr(t,i);function t(e){var n=i.call(this,e)||this;return n.isRowChanging=!1,n.emptyLocalizableString=new Se(n),n.cellsValue=new fs(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.runCondition(n.getDataFilteredValues(),n.getDataFilteredProperties()),n.onRowsChanged()}),n.registerPropertyChangedHandlers(["hideIfRowsEmpty"],function(){n.updateVisibilityBasedOnRows()}),n}return 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(),e!=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,n){var r=new k(e,n);return this.columns.push(r),r},t.prototype.getItemClass=function(e,n){var r=e.value==n.value,o=this.isReadOnly,s=!r&&!o,a=this.hasCellText,l=this.cssClasses;return new O().append(l.cell,a).append(a?l.cellText:l.label).append(l.itemOnError,!a&&(this.isAllRowRequired||this.eachRowUnique?e.hasError:this.hasCssError())).append(a?l.cellTextSelected:l.itemChecked,r).append(a?l.cellTextDisabled:l.itemDisabled,this.isDisabledStyle).append(a?l.cellTextReadOnly:l.itemReadOnly,this.isReadOnlyStyle).append(a?l.cellTextPreview:l.itemPreview,this.isPreviewStyle).append(l.itemHover,s&&!a).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(){i.prototype.locStrsChanged.call(this),this.cells.locStrsChanged()},t.prototype.getQuizQuestionCount=function(){for(var e=0,n=0;n<this.rows.length;n++)this.isValueEmpty(this.correctAnswer[this.rows[n].value])||e++;return e},t.prototype.getCorrectAnswerCount=function(){for(var e=0,n=this.value,r=0;r<this.rows.length;r++){var o=this.rows[r].value;!this.isValueEmpty(n[o])&&this.isTwoValueEquals(this.correctAnswer[o],n[o])&&e++}return e},t.prototype.runCondition=function(e,n){k.runEnabledConditionsForItems(this.rows,void 0,e,n),i.prototype.runCondition.call(this,e,n)},t.prototype.createRowsVisibleIfRunner=function(){return this.rowsVisibleIf?new de(this.rowsVisibleIf):null},t.prototype.onRowsChanged=function(){this.clearGeneratedRows(),i.prototype.onRowsChanged.call(this)},t.prototype.getVisibleRows=function(){if(this.generatedVisibleRows)return this.generatedVisibleRows;var e=new Array,n=this.value;n||(n={});for(var r=this.filteredRows||this.rows,o=0;o<r.length;o++){var s=r[o];if(!this.isValueEmpty(s.value)){var a=this.id+"_"+s.value.toString().replace(/\s/g,"_");e.push(this.createMatrixRow(s,a,n[s.value]))}}return this.generatedVisibleRows=e,e},t.prototype.sortVisibleRows=function(e){if(this.survey&&this.survey.isDesignMode)return e;var n=this.rowsOrder.toLowerCase();return n==="random"?P.randomizeArray(e):e},t.prototype.endLoadingFromJson=function(){i.prototype.endLoadingFromJson.call(this),this.rows=this.sortVisibleRows(this.rows),this.onRowsChanged(),this.onColumnsChanged()},t.prototype.isNewValueCorrect=function(e){return P.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,n,r){this.cells.setCellText(e,n,r)},t.prototype.getCellText=function(e,n){return this.cells.getCellText(e,n)},t.prototype.setDefaultCellText=function(e,n){this.cells.setDefaultCellText(e,n)},t.prototype.getDefaultCellText=function(e){return this.cells.getDefaultCellText(e)},t.prototype.getCellDisplayText=function(e,n){return this.cells.getCellDisplayText(e,n)},t.prototype.getCellDisplayLocText=function(e,n){var r=this.cells.getCellDisplayLocText(e,n);return r||this.emptyLocalizableString},t.prototype.supportGoNextPageAutomatic=function(){return this.isMouseDown===!0&&this.hasValuesInAllRows()},t.prototype.onCheckForErrors=function(e,n,r){if(i.prototype.onCheckForErrors.call(this,e,n,r),!n||this.hasCssError()){var o={noValue:!1,isNotUnique:!1};this.checkErrorsAllRows(r,o),o.noValue&&e.push(new xu(null,this)),o.isNotUnique&&e.push(new Ou(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,n,r){var o=this,s=this.generatedVisibleRows;if(s||(s=this.visibleRows),!!s){var a=this.isAllRowRequired||r,l=this.eachRowUnique;if(n.noValue=!1,n.isNotUnique=!1,e&&(this.errorsInRow=void 0),!(!a&&!l)){for(var u={},d=0;d<s.length;d++){var v=s[d].value,V=this.isValueEmpty(v),T=l&&!V&&u[v]===!0;V=V&&a,e&&(V||T)&&this.addErrorIntoRow(s[d]),V||(u[v]=!0),n.noValue=n.noValue||V,n.isNotUnique=n.isNotUnique||T}e&&s.forEach(function(R){R.hasError=o.hasErrorInRow(R)})}}},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 i.prototype.getIsAnswered.call(this)&&this.hasValuesInAllRows()},t.prototype.createMatrixRow=function(e,n,r){var o=new cs(e,n,this,r);return this.onMatrixRowCreated(o),o},t.prototype.onMatrixRowCreated=function(e){},t.prototype.setQuestionValue=function(e,n){if(n===void 0&&(n=!0),i.prototype.setQuestionValue.call(this,e,this.isRowChanging||n),!(!this.generatedVisibleRows||this.generatedVisibleRows.length==0)){this.isRowChanging=!0;var r=this.value;if(r||(r={}),this.rows.length==0)this.generatedVisibleRows[0].setValueDirectly(r);else for(var o=0;o<this.generatedVisibleRows.length;o++){var s=this.generatedVisibleRows[o],a=r[s.name];this.isValueEmpty(a)&&(a=null),this.generatedVisibleRows[o].setValueDirectly(a)}this.refreshRowsErrors(),this.updateIsAnswered(),this.isRowChanging=!1}},t.prototype.getDisplayValueCore=function(e,n){var r={};for(var o in n){var s=e?k.getTextOrHtmlByValue(this.rows,o):o;s||(s=o);var a=k.getTextOrHtmlByValue(this.columns,n[o]);a||(a=n[o]),r[s]=a}return r},t.prototype.getPlainData=function(e){var n=this;e===void 0&&(e={includeEmpty:!0});var r=i.prototype.getPlainData.call(this,e);if(r){var o=this.createValueCopy();r.isNode=!0,r.data=Object.keys(o||{}).map(function(s){var a=n.rows.filter(function(d){return d.value===s})[0],l={name:s,title:a?a.text:"row",value:o[s],displayValue:k.getTextOrHtmlByValue(n.visibleColumns,o[s]),getString:function(d){return typeof d=="object"?JSON.stringify(d):d},isNode:!1},u=k.getItemByValue(n.visibleColumns,o[s]);return u&&(e.calculations||[]).forEach(function(d){l[d.propertyName]=u[d.propertyName]}),l})}return r},t.prototype.addConditionObjectsByContext=function(e,n){for(var r=0;r<this.rows.length;r++){var o=this.rows[r];o.value&&e.push({name:this.getValueName()+"."+o.value,text:this.processedTitle+"."+o.calculatedText,question:this})}},t.prototype.getConditionJson=function(e,n){if(e===void 0&&(e=null),n===void 0&&(n=null),!n)return i.prototype.getConditionJson.call(this,e);var r=new qt(n);r.choices=this.columns;var o=new fe().toJsonObject(r);return o.type=r.getType(),o},t.prototype.clearIncorrectValues=function(){this.clearInvisibleValuesInRowsAndColumns(!0,!0,!0),i.prototype.clearIncorrectValues.call(this)},t.prototype.clearValueIfInvisibleCore=function(e){i.prototype.clearValueIfInvisibleCore.call(this,e),this.clearInvisibleValuesInRowsAndColumns(!0,!0,!1)},t.prototype.clearInvisibleColumnValues=function(){this.clearInvisibleValuesInRowsAndColumns(!1,!0,!1)},t.prototype.clearInvisibleValuesInRows=function(){this.clearInvisibleValuesInRowsAndColumns(!0,!1,!1)},t.prototype.clearInvisibleValuesInRowsAndColumns=function(e,n,r){if(!this.isEmpty()){for(var o=this.getUnbindValue(this.value),s={},a=this.rows,l=0;l<a.length;l++){var u=a[l].value;o[u]&&(e&&!a[l].isVisible||n&&!this.getVisibleColumnByValue(o[u])?delete o[u]:s[u]=o[u])}r&&(o=s),!this.isTwoValueEquals(o,this.value)&&(this.value=o)}},t.prototype.getVisibleColumnByValue=function(e){var n=k.getItemByValue(this.columns,e);return n&&n.isVisible?n:null},t.prototype.getFirstInputElementId=function(){var e=this.generatedVisibleRows;return e||(e=this.visibleRows),e.length>0&&this.visibleColumns.length>0?this.inputId+"_"+e[0].name+"_0":i.prototype.getFirstInputElementId.call(this)},t.prototype.onMatrixRowChanged=function(e){if(!this.isRowChanging){if(this.isRowChanging=!0,!this.hasRows)this.setNewValue(e.value);else{var n=this.value;n||(n={}),n[e.name]=e.value,this.setNewValue(n)}this.isRowChanging=!1}},t.prototype.getCorrectedRowValue=function(e){for(var n=0;n<this.columns.length;n++)if(e===this.columns[n].value)return e;for(var n=0;n<this.columns.length;n++)if(this.isTwoValueEquals(e,this.columns[n].value))return this.columns[n].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}(gr);x.addClass("matrix",["rowTitleWidth",{name:"columns:itemvalue[]",uniqueProperty:"value",baseValue:function(){return oe("matrix_column")}},{name:"rows:itemvalue[]",uniqueProperty:"value",baseValue:function(){return oe("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 Qr("")},"matrixbase"),J.Instance.registerQuestion("matrix",function(i){var t=new Qr(i);return t.rows=J.DefaultRows,t.columns=J.DefaultColums,t});var ps=function(){var i=function(t,e){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(n[o]=r[o])},i(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");i(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),ds=function(i,t,e,n){var r=arguments.length,o=r<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,e):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(i,t,e,n);else for(var a=i.length-1;a>=0;a--)(s=i[a])&&(o=(r<3?s(o):r>3?s(t,e,o):s(t,e))||o);return r>3&&o&&Object.defineProperty(t,e,o),o},hs=function(i){ps(t,i);function t(){return i!==null&&i.apply(this,arguments)||this}return t.prototype.updateRemainingCharacterCounter=function(e,n){this.remainingCharacterCounter=P.getRemainingCharacterCounterText(e,n)},ds([h()],t.prototype,"remainingCharacterCounter",void 0),t}(z),Pn=function(i){ps(t,i);function t(e){var n=i.call(this,e)||this;return n.characterCounter=new hs,n}return 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 P.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 i.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 this.textUpdateMode=="default"?i.prototype.getIsInputTextUpdate.call(this):this.textUpdateMode=="onTyping"},Object.defineProperty(t.prototype,"renderedPlaceholder",{get:function(){var e=this,n=function(){return e.hasPlaceholder()?e.placeHolder:void 0};return this.getPropertyValue("renderedPlaceholder",void 0,n)},enumerable:!1,configurable:!0}),t.prototype.onReadOnlyChanged=function(){i.prototype.onReadOnlyChanged.call(this),this.resetRenderedPlaceholder()},t.prototype.localeChanged=function(){i.prototype.localeChanged.call(this),this.resetRenderedPlaceholder()},t.prototype.supportEmptyValidation=function(){return!0},t.prototype.resetRenderedPlaceholder=function(){this.resetPropertyValue("renderedPlaceholder")},t.prototype.hasPlaceholder=function(){return!this.isReadOnly},t.prototype.setNewValue=function(e){i.prototype.setNewValue.call(this,e),this.updateRemainingCharacterCounter(e)},t.prototype.setQuestionValue=function(e,n){n===void 0&&(n=!0),i.prototype.setQuestionValue.call(this,e,n),this.updateRemainingCharacterCounter(e)},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 O().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}),ds([h({localizable:!0,onSet:function(e,n){return n.resetRenderedPlaceholder()}})],t.prototype,"placeholder",void 0),t}(ue);x.addClass("textbase",[],function(){return new Pn("")},"question");var vc=function(){function i(t,e,n){var r=this;this.inputMaskInstance=t,this.inputElement=e,this.prevUnmaskedValue=void 0,this.inputMaskInstancePropertyChangedHandler=function(s,a){if(a.name!=="saveMaskedValue"){var l=r.inputMaskInstance.getMaskedValue(r.prevUnmaskedValue);r.inputElement.value=l}},this.clickHandler=function(s){r.inputElement.value==r.inputMaskInstance.getMaskedValue("")&&r.inputElement.setSelectionRange(0,0)},this.beforeInputHandler=function(s){var a=r.createArgs(s),l=r.inputMaskInstance.processInput(a);r.inputElement.value=l.value,r.inputElement.setSelectionRange(l.caretPosition,l.caretPosition),l.cancelPreventDefault||s.preventDefault()},this.changeHandler=function(s){var a=r.inputMaskInstance.processInput({prevValue:"",insertedChars:s.target.value,selectionStart:0,selectionEnd:0});r.inputElement.value=a.value};var o=n;o==null&&(o=""),this.inputElement.value=t.getMaskedValue(o),this.prevUnmaskedValue=o,t.onPropertyChanged.add(this.inputMaskInstancePropertyChangedHandler),this.addInputEventListener()}return i.prototype.createArgs=function(t){var e={insertedChars:t.data,selectionStart:t.target.selectionStart,selectionEnd:t.target.selectionEnd,prevValue:t.target.value,inputDirection:"forward"};return t.inputType==="deleteContentBackward"&&(e.inputDirection="backward",e.selectionStart===e.selectionEnd&&(e.selectionStart=Math.max(e.selectionStart-1,0))),t.inputType==="deleteContentForward"&&e.selectionStart===e.selectionEnd&&(e.selectionEnd+=1),e},i.prototype.addInputEventListener=function(){this.inputElement&&(this.inputElement.addEventListener("beforeinput",this.beforeInputHandler),this.inputElement.addEventListener("click",this.clickHandler),this.inputElement.addEventListener("focus",this.clickHandler),this.inputElement.addEventListener("change",this.changeHandler))},i.prototype.removeInputEventListener=function(){this.inputElement&&(this.inputElement.removeEventListener("beforeinput",this.beforeInputHandler),this.inputElement.removeEventListener("click",this.clickHandler),this.inputElement.removeEventListener("focus",this.clickHandler),this.inputElement.removeEventListener("change",this.changeHandler))},i.prototype.dispose=function(){this.removeInputEventListener(),this.inputElement=void 0,this.inputMaskInstance.onPropertyChanged.remove(this.inputMaskInstancePropertyChangedHandler)},i}(),zr=/[0-9]/;function gs(){var i=x.getChildrenClasses("masksettings")||[],t=i.map(function(e){var n=e.name;return e.name.indexOf("mask")!==-1&&(n=n.slice(0,n.indexOf("mask"))),n});return t.unshift("none"),t}var bc=function(){var i=function(t,e){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(n[o]=r[o])},i(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");i(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),Hr=function(i,t,e,n){var r=arguments.length,o=r<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,e):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(i,t,e,n);else for(var a=i.length-1;a>=0;a--)(s=i[a])&&(o=(r<3?s(o):r>3?s(t,e,o):s(t,e))||o);return r>3&&o&&Object.defineProperty(t,e,o),o},Vn=function(i){bc(t,i);function t(e){var n=i.call(this,e)||this;return n._isWaitingForEnter=!1,n.onCompositionUpdate=function(r){n.isInputTextUpdate&&setTimeout(function(){n.updateValueOnEvent(r)},1),n.updateRemainingCharacterCounter(r.target.value)},n.onKeyUp=function(r){n.updateDateValidationMessage(r),n.isInputTextUpdate?(!n._isWaitingForEnter||r.keyCode===13)&&(n.updateValueOnEvent(r),n._isWaitingForEnter=!1):r.keyCode===13&&n.updateValueOnEvent(r),n.updateRemainingCharacterCounter(r.target.value)},n.onKeyDown=function(r){n.onKeyDownPreprocess&&n.onKeyDownPreprocess(r),n.isInputTextUpdate&&(n._isWaitingForEnter=r.keyCode===229),n.onTextKeyDownHandler(r)},n.onChange=function(r){n.updateDateValidationMessage(r);var o=r.target===b.environment.root.activeElement;o?n.isInputTextUpdate&&n.updateValueOnEvent(r):n.updateValueOnEvent(r),n.updateRemainingCharacterCounter(r.target.value)},n.createLocalizableString("minErrorText",n,!0,"minError"),n.createLocalizableString("maxErrorText",n,!0,"maxError"),n.setNewMaskSettingsProperty(),n.locDataListValue=new ao(n),n.locDataListValue.onValueChanged=function(r,o){n.propertyValueChanged("dataList",r,o)},n.registerPropertyChangedHandlers(["min","max","inputType","minValueExpression","maxValueExpression"],function(){n.setRenderedMinMax()}),n.registerPropertyChangedHandlers(["inputType","size"],function(){n.updateInputSize(),n.resetRenderedPlaceholder()}),n}return t.prototype.createMaskAdapter=function(){this.input&&!this.maskTypeIsEmpty&&(this.maskInputAdapter=new vc(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 this.maskType==="none";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||this.maskType==="none"?"masksettings":this.maskType+"mask";x.findClass(e)||(e="masksettings");var n=x.createClass(e);return n.owner=this.survey,n},t.prototype.isTextValue=function(){return this.isDateInputType||["text","number","password"].indexOf(this.inputType)>-1},t.prototype.getType=function(){return"text"},t.prototype.onSurveyLoad=function(){i.prototype.onSurveyLoad.call(this),this.setRenderedMinMax(),this.updateInputSize()},Object.defineProperty(t.prototype,"inputType",{get:function(){return this.getPropertyValue("inputType")},set:function(e){e=e.toLowerCase(),(e==="datetime_local"||e==="datetime")&&(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?i.prototype.getMaxLength.call(this):null},t.prototype.runCondition=function(e,n){i.prototype.runCondition.call(this,e,n),(this.minValueExpression||this.maxValueExpression)&&this.setRenderedMinMax(e,n)},t.prototype.getDisplayValueCore=function(e,n){return!this.maskTypeIsEmpty&&!P.isValueEmpty(n)?this.maskInstance.getMaskedValue(n):i.prototype.getDisplayValueCore.call(this,e,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){if(this.isValueExpression(e)){this.minValueExpression=e.substring(1);return}this.setPropertyValue("min",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"max",{get:function(){return this.getPropertyValue("max")},set:function(e){if(this.isValueExpression(e)){this.maxValueExpression=e.substring(1);return}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 Le(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&&!this.maskTypeIsEmpty?this.maskInstance.getMaskedValue(""):this._inputValue},set:function(e){var n=e;this._inputValue=e,this.maskTypeIsEmpty||(n=this.maskInstance.getUnmaskedValue(e),this._inputValue=this.maskInstance.getMaskedValue(n),n&&this.maskSettings.saveMaskedValue&&(n=this.maskInstance.getMaskedValue(n))),this.value=n},enumerable:!1,configurable:!0}),t.prototype.onChangeQuestionValue=function(e){i.prototype.onChangeQuestionValue.call(this,e),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.hasToConvertToUTC=function(e){return b.storeUtcDates&&this.isDateTimeLocaleType()&&!!e},t.prototype.createDate=function(e){return Z("question-text",e)},t.prototype.valueForSurveyCore=function(e){return this.hasToConvertToUTC(e)&&(e=this.createDate(e).toISOString()),i.prototype.valueForSurveyCore.call(this,e)},t.prototype.valueFromDataCore=function(e){if(this.hasToConvertToUTC(e)){var n=this.createDate(e),r=this.createDate(n.getTime()-n.getTimezoneOffset()*60*1e3),o=r.toISOString();e=o.substring(0,o.length-2)}return i.prototype.valueFromDataCore.call(this,e)},t.prototype.onCheckForErrors=function(e,n,r){var o=this;if(i.prototype.onCheckForErrors.call(this,e,n,r),!n){if(this.isValueLessMin){var s=new we(this.getMinMaxErrorText(this.minErrorText,this.getCalculatedMinMax(this.renderedMin)),this);s.onUpdateErrorTextCallback=function(v){v.text=o.getMinMaxErrorText(o.minErrorText,o.getCalculatedMinMax(o.renderedMin))},e.push(s)}if(this.isValueGreaterMax){var a=new we(this.getMinMaxErrorText(this.maxErrorText,this.getCalculatedMinMax(this.renderedMax)),this);a.onUpdateErrorTextCallback=function(v){v.text=o.getMinMaxErrorText(o.maxErrorText,o.getCalculatedMinMax(o.renderedMax))},e.push(a)}this.dateValidationMessage&&e.push(new we(this.dateValidationMessage,this));var l=this.getValidatorTitle(),u=new ur;if(u.errorOwner=this,this.inputType==="email"&&!this.validators.some(function(v){return v.getType()==="emailvalidator"})){var d=u.validate(this.value,l);d&&d.error&&e.push(d.error)}}},t.prototype.canSetValueToSurvey=function(){if(!this.isMinMaxType)return!0;var e=!this.isValueLessMin&&!this.isValueGreaterMax;return(!e||this.errors.length>0)&&this.survey&&(this.survey.isValidateOnValueChanging||this.survey.isValidateOnValueChanged)&&this.hasErrors(),e},t.prototype.convertFuncValuetoQuestionValue=function(e){var n=this.maskTypeIsEmpty?this.inputType:this.maskSettings.getTypeForExpressions();return P.convertValToQuestionVal(e,n)},t.prototype.getMinMaxErrorText=function(e,n){if(P.isValueEmpty(n))return e;var r=n.toString();return this.inputType==="date"&&n.toDateString&&(r=n.toDateString()),e.replace("{0}",r)},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 this.inputType==="date"||this.isDateTimeLocaleType()},enumerable:!1,configurable:!0}),t.prototype.isDateTimeLocaleType=function(){return this.inputType==="datetime-local"},t.prototype.getCalculatedMinMax=function(e){return this.isValueEmpty(e)?e:this.isDateInputType?this.createDate(e):e},t.prototype.setRenderedMinMax=function(e,n){var r=this;e===void 0&&(e=null),n===void 0&&(n=null),this.minValueRunner=this.getDefaultRunner(this.minValueRunner,this.minValueExpression),this.setValueAndRunExpression(this.minValueRunner,this.min,function(o){!o&&r.isDateInputType&&b.minDate&&(o=b.minDate),r.setPropertyValue("renderedMin",o)},e,n),this.maxValueRunner=this.getDefaultRunner(this.maxValueRunner,this.maxValueExpression),this.setValueAndRunExpression(this.maxValueRunner,this.max,function(o){!o&&r.isDateInputType&&(o=b.maxDate?b.maxDate:"2999-12-31"),r.setPropertyValue("renderedMax",o)},e,n)},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)?this.inputType!=="number"?void 0:"any":this.step},enumerable:!1,configurable:!0}),t.prototype.getIsInputTextUpdate=function(){return this.maskTypeIsEmpty?i.prototype.getIsInputTextUpdate.call(this):!1},t.prototype.supportGoNextPageAutomatic=function(){return!this.getIsInputTextUpdate()&&!this.isDateInputType},t.prototype.supportGoNextPageError=function(){return!this.isDateInputType},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.setNewValue=function(e){e=this.correctValueType(e),e&&(this.dateValidationMessage=void 0),i.prototype.setNewValue.call(this,e)},t.prototype.correctValueType=function(e){if(!e)return e;if(this.inputType==="number"||this.inputType==="range")return P.isNumber(e)?P.getNumber(e):"";if(this.inputType==="month"){var n=this.createDate(e),r=n.toISOString().indexOf(e)==0&&e.indexOf("T")==-1,o=r?n.getUTCMonth():n.getMonth(),s=r?n.getUTCFullYear():n.getFullYear(),a=o+1;return s+"-"+(a<10?"0":"")+a}return e},t.prototype.hasPlaceholder=function(){return!this.isReadOnly&&this.inputType!=="range"},t.prototype.getControlCssClassBuilder=function(){var e=this.getMaxLength();return i.prototype.getControlCssClassBuilder.call(this).append(this.cssClasses.constrolWithCharacterCounter,!!e).append(this.cssClasses.characterCounterBig,e>99)},t.prototype.isReadOnlyRenderDiv=function(){return this.isReadOnly&&b.readOnly.textRenderMode==="div"},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){this.inputTextAlignment!=="auto"?e.textAlign=this.inputTextAlignment:!this.maskTypeIsEmpty&&this.maskSettings.getTextAlignment()!=="auto"&&(e.textAlign=this.maskSettings.getTextAlignment())},t.prototype.updateValueOnEvent=function(e){var n=e.target.value;this.isTwoValueEquals(this.value,n)||(this.inputValue=n)},t.prototype.updateDateValidationMessage=function(e){this.dateValidationMessage=this.isDateInputType&&e.target?e.target.validationMessage:void 0},t.prototype.onBlurCore=function(e){this.updateDateValidationMessage(e),this.updateValueOnEvent(e),this.updateRemainingCharacterCounter(e.target.value),i.prototype.onBlurCore.call(this,e)},t.prototype.onFocusCore=function(e){this.updateRemainingCharacterCounter(e.target.value),i.prototype.onFocusCore.call(this,e)},t.prototype.afterRenderQuestionElement=function(e){e&&(this.input=e instanceof HTMLInputElement?e:e.querySelector("input"),this.createMaskAdapter()),i.prototype.afterRenderQuestionElement.call(this,e)},t.prototype.beforeDestroyQuestionElement=function(e){this.deleteMaskAdapter(),this.input=void 0},Hr([h({onSet:function(e,n){n.onSetMaskType(e)}})],t.prototype,"maskType",void 0),Hr([h()],t.prototype,"inputTextAlignment",void 0),Hr([h()],t.prototype,"_inputValue",void 0),t}(Pn),Cc=["number","range","date","datetime-local","month","time","week"];function Le(i){var t=i?i.inputType:"";return t?Cc.indexOf(t)>-1:!1}function ys(i,t){var e=i.split(t);return e.length!==2||!P.isNumber(e[0])||!P.isNumber(e[1])?-1:parseFloat(e[0])*60+parseFloat(e[1])}function Pc(i,t,e){var n=ys(i,e),r=ys(t,e);return n<0||r<0?!1:n>r}function ms(i,t,e,n){var r=n?e:t;if(!Le(i)||P.isValueEmpty(t)||P.isValueEmpty(e))return r;if(i.inputType.indexOf("date")===0||i.inputType==="month"){var o=i.inputType==="month",s="question-text-minmax",a=Z(s,o?t+"-01":t),l=Z(s,o?e+"-01":e);if(!a||!l)return r;if(a>l)return n?t:e}if(i.inputType==="week"||i.inputType==="time"){var u=i.inputType==="week"?"-W":":";return Pc(t,e,u)?n?t:e:r}if(i.inputType==="number"){if(!P.isNumber(t)||!P.isNumber(e))return r;if(P.getNumber(t)>P.getNumber(e))return n?t:e}return typeof t=="string"||typeof e=="string"?r:t>e?n?t:e:r}function vs(i,t){i&&i.inputType&&(t.inputType=i.inputType!=="range"?i.inputType:"number",t.textUpdateMode="onBlur")}x.addClass("text",[{name:"inputType",default:"text",choices:b.questions.inputTypes},{name:"size:number",minValue:0,dependsOn:"inputType",visibleIf:function(i){return i?i.isTextInput:!1}},{name:"textUpdateMode",default:"default",choices:["default","onBlur","onTyping"],dependsOn:"inputType",visibleIf:function(i){return i?i.isTextInput:!1}},{name:"autocomplete",alternativeName:"autoComplete",choices:b.questions.dataList},{name:"min",dependsOn:"inputType",visibleIf:function(i){return Le(i)},onPropertyEditorUpdate:function(i,t){vs(i,t)},onSettingValue:function(i,t){return ms(i,t,i.max,!1)}},{name:"max",dependsOn:"inputType",nextToProperty:"*min",visibleIf:function(i){return Le(i)},onSettingValue:function(i,t){return ms(i,i.min,t,!0)},onPropertyEditorUpdate:function(i,t){vs(i,t)}},{name:"minValueExpression:expression",category:"logic",dependsOn:"inputType",visibleIf:function(i){return Le(i)}},{name:"maxValueExpression:expression",category:"logic",dependsOn:"inputType",visibleIf:function(i){return Le(i)}},{name:"minErrorText",serializationProperty:"locMinErrorText",dependsOn:"inputType",visibleIf:function(i){return Le(i)}},{name:"maxErrorText",serializationProperty:"locMaxErrorText",dependsOn:"inputType",visibleIf:function(i){return Le(i)}},{name:"inputTextAlignment",default:"auto",choices:["left","right","auto"]},{name:"maskType",default:"none",visibleIndex:0,dependsOn:"inputType",visibleIf:function(i){return i.inputType==="text"||i.inputType==="tel"},choices:function(i){var t=gs();return t}},{name:"maskSettings:masksettings",className:"masksettings",visibleIndex:1,dependsOn:["inputType","maskType"],visibleIf:function(i){return i.inputType==="text"||i.inputType==="tel"},onGetValue:function(i){return i.maskSettings.getData()},onSetValue:function(i,t){i.maskSettings.setData(t)}},{name:"step:number",dependsOn:"inputType",visibleIf:function(i){return i?i.inputType==="number"||i.inputType==="range":!1}},{name:"maxLength:number",default:-1,dependsOn:"inputType",visibleIf:function(i){return i?i.isTextInput:!1}},{name:"placeholder",alternativeName:"placeHolder",serializationProperty:"locPlaceholder",dependsOn:"inputType",visibleIf:function(i){return i?i.isTextInput:!1}},{name:"dataList:string[]",serializationProperty:"locDataList",dependsOn:"inputType",visibleIf:function(i){return i?i.inputType==="text":!1}}],function(){return new Vn("")},"textbase"),J.Instance.registerQuestion("text",function(i){return new Vn(i)});var Ct=function(){var i=function(t,e){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(n[o]=r[o])},i(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");i(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),Ur=function(i,t,e,n){var r=arguments.length,o=r<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,e):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(i,t,e,n);else for(var a=i.length-1;a>=0;a--)(s=i[a])&&(o=(r<3?s(o):r>3?s(t,e,o):s(t,e))||o);return r>3&&o&&Object.defineProperty(t,e,o),o},bs=function(i){Ct(t,i);function t(){return i!==null&&i.apply(this,arguments)||this}return 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}(Vn),Wr=function(i){Ct(t,i);function t(e,n){e===void 0&&(e=null),n===void 0&&(n=null);var r=i.call(this)||this;return r.focusIn=function(){r.editor.focusIn()},r.editorValue=r.createEditor(e),r.maskSettings=r.editorValue.maskSettings,r.editor.questionTitleTemplateCallback=function(){return""},r.editor.titleLocation="left",n&&(r.title=n),r.editor.onPropertyChanged.add(function(o,s){r.onPropertyChanged.fire(r,s)}),r}return 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 bs(e)},t.prototype.addUsedLocales=function(e){i.prototype.addUsedLocales.call(this,e),this.editor.addUsedLocales(e)},t.prototype.localeChanged=function(){i.prototype.localeChanged.call(this),this.editor.localeChanged()},t.prototype.locStrsChanged=function(){i.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 P.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){this.data!=null&&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,n){this.data&&this.data.setMultipleTextValue(e,n)},t.prototype.getVariable=function(e){},t.prototype.setVariable=function(e,n){},t.prototype.getComment=function(e){return null},t.prototype.setComment=function(e,n){},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 n=this.getSurvey();return n?n.getQuestionByName(e):null},t.prototype.getEditingSurveyElement=function(){},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}(z),wn=function(i){Ct(t,i);function t(e){var n=i.call(this,e)||this;return n.isMultipleItemValueChanging=!1,n.createNewArray("items",function(r){r.setData(n),n.survey&&n.survey.multipleTextItemAdded(n,r)}),n.registerPropertyChangedHandlers(["items","colCount","itemErrorLocation"],function(){n.calcVisibleRows()}),n.registerPropertyChangedHandlers(["itemSize"],function(){n.updateItemsSize()}),n}return t.addDefaultItems=function(e){for(var n=J.DefaultMutlipleTextItems,r=0;r<n.length;r++)e.addItem(n[r])},t.prototype.getType=function(){return"multipletext"},t.prototype.setSurveyImpl=function(e,n){i.prototype.setSurveyImpl.call(this,e,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 n;(n=this.items)===null||n===void 0||n.map(function(r,o){return r.editor.id=e+"_"+o}),this.setPropertyValue("id",e)},enumerable:!1,configurable:!0}),t.prototype.onSurveyLoad=function(){this.editorsOnSurveyLoad(),i.prototype.onSurveyLoad.call(this),P.isValueEmpty(this.rows)||this.calcVisibleRows()},t.prototype.setQuestionValue=function(e,n){n===void 0&&(n=!0),i.prototype.setQuestionValue.call(this,e,n),this.performForEveryEditor(function(r){r.editor.updateValueFromSurvey(r.value)}),this.updateIsAnswered()},t.prototype.onSurveyValueChanged=function(e){i.prototype.onSurveyValueChanged.call(this,e),this.performForEveryEditor(function(n){n.editor.onSurveyValueChanged(n.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 n=0;n<this.items.length;n++){var r=this.items[n];r.editor&&e(r)}},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,n){n===void 0&&(n=null);var r=this.createTextItem(e,n);return this.items.push(r),r},t.prototype.getItemByName=function(e){for(var n=0;n<this.items.length;n++)if(this.items[n].name==e)return this.items[n];return null},t.prototype.getElementsInDesign=function(e){e===void 0&&(e=!1);var n;return n=i.prototype.getElementsInDesign.call(this,e),n.concat(this.items)},t.prototype.addConditionObjectsByContext=function(e,n){for(var r=0;r<this.items.length;r++){var o=this.items[r];e.push({name:this.getValueName()+"."+o.name,text:this.processedTitle+"."+o.fullTitle,question:this})}},t.prototype.collectNestedQuestionsCore=function(e,n){this.items.forEach(function(r){return r.editor.collectNestedQuestions(e,n)})},t.prototype.getConditionJson=function(e,n){if(e===void 0&&(e=null),n===void 0&&(n=null),!n)return i.prototype.getConditionJson.call(this,e);var r=this.getItemByName(n);if(!r)return null;var o=new fe().toJsonObject(r);return o.type="text",o},t.prototype.locStrsChanged=function(){i.prototype.locStrsChanged.call(this);for(var e=0;e<this.items.length;e++)this.items[e].locStrsChanged()},t.prototype.localeChanged=function(){i.prototype.localeChanged.call(this);for(var e=0;e<this.items.length;e++)this.items[e].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 this.itemErrorLocation!=="default"?this.itemErrorLocation:this.getErrorLocation()},Object.defineProperty(t.prototype,"showItemErrorOnTop",{get:function(){return this.getQuestionErrorLocation()=="top"},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"showItemErrorOnBottom",{get:function(){return this.getQuestionErrorLocation()=="bottom"},enumerable:!1,configurable:!0}),t.prototype.getChildErrorLocation=function(e){return this.getQuestionErrorLocation()},t.prototype.isNewValueCorrect=function(e){return P.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=this.colCount,n=this.items,r=0,o,s,a=[],l=0;l<n.length;l++)r==0&&(o=this.onRowCreated(new $r),s=this.onRowCreated(new Cs),this.showItemErrorOnTop?(a.push(s),a.push(o)):(a.push(o),a.push(s))),o.cells.push(new Jr(n[l],this)),s.cells.push(new Ps(n[l],this)),r++,(r>=e||l==n.length-1)&&(r=0,s.onAfterCreated());this.rows=a},t.prototype.getRows=function(){return P.isValueEmpty(this.rows)&&this.calcVisibleRows(),this.rows},t.prototype.onValueChanged=function(){i.prototype.onValueChanged.call(this),this.onItemValueChanged()},t.prototype.createTextItem=function(e,n){return new Wr(e,n)},t.prototype.onItemValueChanged=function(){if(!this.isMultipleItemValueChanging)for(var e=0;e<this.items.length;e++){var n=null;this.value&&this.items[e].name in this.value&&(n=this.value[this.items[e].name]),this.items[e].onValueChanged(n)}},t.prototype.runCondition=function(e,n){i.prototype.runCondition.call(this,e,n),this.items.forEach(function(r){return r.editor.runCondition(e,n)})},t.prototype.getIsRunningValidators=function(){if(i.prototype.getIsRunningValidators.call(this))return!0;for(var e=0;e<this.items.length;e++)if(this.items[e].editor.isRunningValidators)return!0;return!1},t.prototype.hasErrors=function(e,n){var r=this;e===void 0&&(e=!0),n===void 0&&(n=null);for(var o=!1,s=0;s<this.items.length;s++)this.items[s].editor.onCompletedAsyncValidators=function(a){r.raiseOnCompletedAsyncValidators()},!(n&&n.isOnValueChanged===!0&&this.items[s].editor.isEmpty())&&(o=this.items[s].editor.hasErrors(e,n)||o);return i.prototype.hasErrors.call(this,e)||o},t.prototype.getAllErrors=function(){for(var e=i.prototype.getAllErrors.call(this),n=0;n<this.items.length;n++){var r=this.items[n].editor.getAllErrors();r&&r.length>0&&(e=e.concat(r))}return e},t.prototype.clearErrors=function(){i.prototype.clearErrors.call(this);for(var e=0;e<this.items.length;e++)this.items[e].editor.clearErrors()},t.prototype.getContainsErrors=function(){var e=i.prototype.getContainsErrors.call(this);if(e)return e;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(!i.prototype.getIsAnswered.call(this))return!1;for(var e=0;e<this.items.length;e++){var n=this.items[e].editor;if(n.isVisible&&!n.isAnswered)return!1}return!0},t.prototype.getProgressInfo=function(){for(var e=[],n=0;n<this.items.length;n++)e.push(this.items[n].editor);return le.getProgressInfoByElements(e,this.isRequired)},t.prototype.getDisplayValueCore=function(e,n){if(!n)return n;for(var r={},o=0;o<this.items.length;o++){var s=this.items[o],a=n[s.name];if(!P.isValueEmpty(a)){var l=s.name;e&&s.title&&(l=s.title),r[l]=s.editor.getDisplayValue(e,a)}}return r},t.prototype.allowMobileInDesignMode=function(){return!0},t.prototype.getMultipleTextValue=function(e){return this.value?this.value[e]:null},t.prototype.setMultipleTextValue=function(e,n){this.isMultipleItemValueChanging=!0,this.isValueEmpty(n)&&(n=void 0);var r=this.value;r||(r={}),r[e]=n,this.setNewValue(r),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,n){},t.prototype.removeElement=function(e){return!1},t.prototype.getQuestionTitleLocation=function(){return"left"},t.prototype.getQuestionTitleWidth=function(){},t.prototype.getColumsForElement=function(e){return[]},t.prototype.updateColumns=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.onQuestionValueChanged=function(e){},t.prototype.getItemLabelCss=function(e){return new O().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 O().append(this.cssClasses.item).toString()},t.prototype.getItemTitleCss=function(){return new O().append(this.cssClasses.itemTitle).toString()},Ur([ae()],t.prototype,"rows",void 0),t}(ue),$r=function(i){Ct(t,i);function t(){var e=i!==null&&i.apply(this,arguments)||this;return e.isVisible=!0,e.cells=[],e}return Ur([h()],t.prototype,"isVisible",void 0),Ur([ae()],t.prototype,"cells",void 0),t}(z),Cs=function(i){Ct(t,i);function t(){return i!==null&&i.apply(this,arguments)||this}return t.prototype.onAfterCreated=function(){var e=this,n=function(){e.isVisible=e.cells.some(function(r){var o,s;return((o=r.item)===null||o===void 0?void 0:o.editor)&&((s=r.item)===null||s===void 0?void 0:s.editor.hasVisibleErrors)})};this.cells.forEach(function(r){var o,s;!((o=r.item)===null||o===void 0)&&o.editor&&((s=r.item)===null||s===void 0||s.editor.registerFunctionOnPropertyValueChanged("hasVisibleErrors",n))}),n()},t}($r),Jr=function(){function i(t,e){this.item=t,this.question=e,this.isErrorsCell=!1}return i.prototype.getClassName=function(){return new O().append(this.question.cssClasses.cell).toString()},Object.defineProperty(i.prototype,"className",{get:function(){return this.getClassName()},enumerable:!1,configurable:!0}),i}(),Ps=function(i){Ct(t,i);function t(){var e=i!==null&&i.apply(this,arguments)||this;return e.isErrorsCell=!0,e}return t.prototype.getClassName=function(){return new O().append(i.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}(Jr);x.addClass("multipletextitem",[{name:"!name",isUnique:!0},"isRequired:boolean",{name:"placeholder",alternativeName:"placeHolder",serializationProperty:"locPlaceholder"},{name:"inputType",default:"text",choices:b.questions.inputTypes},{name:"maskType",default:"none",visibleIndex:0,dependsOn:"inputType",visibleIf:function(i){return i.inputType==="text"},choices:function(i){var t=gs();return t}},{name:"maskSettings:masksettings",className:"masksettings",visibleIndex:1,dependsOn:"inputType",visibleIf:function(i){return i.inputType==="text"},onGetValue:function(i){return i.maskSettings.getData()},onSetValue:function(i,t){i.maskSettings.setData(t)}},{name:"inputTextAlignment",default:"auto",choices:["left","right","auto"]},{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(i){return Le(i)}},{name:"maxValueExpression:expression",category:"logic",dependsOn:"inputType",visibleIf:function(i){return Le(i)}},{name:"validators:validators",baseClassName:"surveyvalidator",classNamePart:"validator"}],function(){return new Wr("")}),x.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 wn("")},"question"),J.Instance.registerQuestion("multipletext",function(i){var t=new wn(i);return wn.addDefaultItems(t),t});var Vc=function(){var i=function(t,e){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(n[o]=r[o])},i(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");i(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),Vs=function(i){Vc(t,i);function t(e){e===void 0&&(e="");var n=i.call(this,e)||this;return n.createLocalizableString("content",n,!0),n.registerPropertyChangedHandlers(["content"],function(){n.onContentChanged()}),n}return t.prototype.getType=function(){return"flowpanel"},t.prototype.getChildrenLayoutType=function(){return"flow"},t.prototype.onSurveyLoad=function(){i.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="";this.onCustomHtmlProducing?e=this.onCustomHtmlProducing():e=this.produceHtml(),this.html=e,this.contentChangedCallback&&this.contentChangedCallback()},t.prototype.produceHtml=function(){for(var e=[],n=/{(.*?(element:)[^$].*?)}/g,r=this.content,o=0,s=null;(s=n.exec(r))!==null;){s.index>o&&(e.push(r.substring(o,s.index)),o=s.index);var a=this.getQuestionFromText(s[0]);a?e.push(this.getHtmlForQuestion(a)):e.push(r.substring(o,s.index+s[0].length)),o=s.index+s[0].length}return o<r.length&&e.push(r.substring(o,r.length)),e.join("").replace(new RegExp("<br>","g"),"<br/>")},t.prototype.getQuestionFromText=function(e){return e=e.substring(1,e.length-1),e=e.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(e,n){i.prototype.onAddElement.call(this,e,n),this.addElementToContent(e),e.renderWidth=""},t.prototype.onRemoveElement=function(e){var n=this.getElementContentText(e);this.content=this.content.replace(n,""),i.prototype.onRemoveElement.call(this,e)},t.prototype.dragDropMoveElement=function(e,n,r){},t.prototype.addElementToContent=function(e){if(!this.isLoadingFromJson){var n=this.getElementContentText(e);this.insertTextAtCursor(n)||(this.content=this.content+n)}},t.prototype.insertTextAtCursor=function(e,n){if(n===void 0&&(n=null),!this.isDesignMode||!E.isAvailable())return!1;var r=E.getSelection();if(r.getRangeAt&&r.rangeCount){var o=r.getRangeAt(0);o.deleteContents();var s=new Text(e);o.insertNode(s);var a=this;if(a.getContent){var l=a.getContent(n);this.content=l}return!0}return!1},t.prototype.getElementContentText=function(e){return"{"+t.contentElementNamePrefix+e.name+"}"},t.contentElementNamePrefix="element:",t}(Bt);x.addClass("flowpanel",[{name:"content:html",serializationProperty:"locContent"}],function(){return new Vs},"panel");var wc=function(){function i(){}return i.getIconCss=function(t,e){return new O().append(t.icon).append(t.iconExpanded,!e).toString()},i}(),xc=function(){var i=function(t,e){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(n[o]=r[o])},i(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");i(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),xn=function(i){xc(t,i);function t(e){return i.call(this,e)||this}return 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,n){return!1},t.prototype.getAllErrors=function(){return[]},t.prototype.supportGoNextPageAutomatic=function(){return!1},t.prototype.addConditionObjectsByContext=function(e,n){},t.prototype.getConditionJson=function(e,n){return 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}(ue);x.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 xn("")},"question");var Oc=function(){var i=function(t,e){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(n[o]=r[o])},i(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");i(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),ws=function(i){Oc(t,i);function t(e){return i.call(this,e)||this}return t.prototype.getType=function(){return"empty"},t}(ue);x.addClass("empty",[],function(){return new ws("")},"question");var Sc=function(){var i=function(t,e){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(n[o]=r[o])},i(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");i(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),Qt=function(i){Sc(t,i);function t(e){var n=i.call(this,e)||this;return n.invisibleOldValues={},n.isChangingValueOnClearIncorrect=!1,n.selectAllItemValue=new k(""),n.selectAllItemValue.id="selectall",n.selectAllItemText=n.createLocalizableString("selectAllText",n.selectAllItem,!0,"selectAllItemText"),n.selectAllItem.locOwner=n,n.selectAllItem.setLocText(n.selectAllItemText),n.registerPropertyChangedHandlers(["showSelectAllItem","selectAllText"],function(){n.onVisibleChoicesChanged()}),n}return t.prototype.getDefaultItemComponent=function(){return"survey-checkbox-item"},t.prototype.getType=function(){return"checkbox"},t.prototype.onCreating=function(){i.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,n){if(e&&e===this.valuePropertyName){var r=this.value;if(Array.isArray(r)&&n<r.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(){return this.allElementsSelected()},set:function(e){e?this.selectAll():this.clearValue(!0)},enumerable:!1,configurable:!0}),t.prototype.toggleSelectAll=function(){this.isAllSelected=!this.isAllSelected},t.prototype.allElementsSelected=function(){for(var e=this.getNoneItems(),n=0;n<e.length;n++)if(this.isItemSelected(e[n]))return!1;var r=this.getVisibleEnableItems();if(r.length===0)return!1;var o=this.value;if(!o||!Array.isArray(o)||o.length===0||o.length<r.length)return!1;for(var s=[],n=0;n<o.length;n++)s.push(this.getRealValue(o[n]));for(var n=0;n<r.length;n++)if(s.indexOf(r[n].value)<0)return!1;return!0},t.prototype.selectAll=function(){for(var e=[],n=this.getVisibleEnableItems(),r=0;r<n.length;r++)e.push(n[r].value);this.renderedValue=e},t.prototype.clickItemHandler=function(e,n){if(!this.isReadOnlyAttr)if(e===this.selectAllItem)n===!0||n===!1?this.isAllSelected=n:this.toggleSelectAll();else if(this.isNoneItem(e))this.renderedValue=n?[e.value]:[];else{var r=[].concat(this.renderedValue||[]),o=r.indexOf(e.value);n?o<0&&r.push(e.value):o>-1&&r.splice(o,1),this.renderedValue=r}},t.prototype.isItemSelectedCore=function(e){if(e===this.selectAllItem)return this.isAllSelected;var n=this.renderedValue;if(!n||!Array.isArray(n))return!1;for(var r=0;r<n.length;r++)if(this.isTwoValueEquals(n[r],e.value))return!0;return!1},t.prototype.hasUnknownValueItem=function(e,n,r,o){n===void 0&&(n=!1),r===void 0&&(r=!0),o===void 0&&(o=!1);var s=this.valuePropertyName;return s&&typeof e=="object"&&e[s]!==void 0&&(e=e[s]),i.prototype.hasUnknownValueItem.call(this,e,n,r,o)},t.prototype.convertFuncValuetoQuestionValue=function(e){var n=this;if(this.valuePropertyName&&Array.isArray(e)&&e.length>0){var r=[];e.forEach(function(o){var s=typeof o=="object",a=s?o:{};s||(a[n.valuePropertyName]=o),r.push(a)}),e=r}return i.prototype.convertDefaultValue.call(this,e)},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,n=this.visibleChoices,r=this.selectedItemValues;if(this.isEmpty())return[];var o=this.defaultSelectedItemValues?[].concat(this.defaultSelectedItemValues,n):n,s=e.map(function(l){return k.getItemByValue(o,l)}).filter(function(l){return!!l});!s.length&&!r&&this.updateSelectedItemValues();var a=this.validateItemValues(s);return a},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 e=i.prototype.getFilteredName.call(this);return this.hasFilteredValue&&(e+="-unwrapped"),e},t.prototype.getFilteredValue=function(){return this.hasFilteredValue?this.renderedValue:i.prototype.getFilteredValue.call(this)},t.prototype.getMultipleSelectedItems=function(){return this.selectedChoices},t.prototype.validateItemValues=function(e){var n=this;if(e.length)return e;var r=this.selectedItemValues;if(r&&r.length)return this.defaultSelectedItemValues=[].concat(r),r;var o=this.renderedValue;return o.map(function(s){return n.createItemValue(s)})},t.prototype.getAnswerCorrectIgnoreOrder=function(){return!0},t.prototype.onCheckForErrors=function(e,n,r){if(i.prototype.onCheckForErrors.call(this,e,n,r),!n&&this.minSelectedChoices>0&&this.checkMinSelectedChoicesUnreached()){var o=new we(this.getLocalizationFormatString("minSelectError",this.minSelectedChoices),this);e.push(o)}},t.prototype.onVisibleChoicesChanged=function(){i.prototype.onVisibleChoicesChanged.call(this),this.updateSelectAllItemProps()},t.prototype.onEnableItemCallBack=function(e){return this.shouldCheckMaxSelectedChoices()?this.isItemSelected(e):!0},t.prototype.onAfterRunItemsEnableCondition=function(){if(this.updateSelectAllItemProps(),this.maxSelectedChoices<1){this.otherItem.setIsEnabled(!0);return}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,n=this.maxSelectedChoices;return n>0&&n<e?!1:e>0},t.prototype.getVisibleEnableItems=function(){for(var e=new Array,n=this.activeChoices,r=0;r<n.length;r++){var o=n[r];o.isEnabled&&o.isVisible&&e.push(o)}return e},t.prototype.shouldCheckMaxSelectedChoices=function(){if(this.maxSelectedChoices<1)return!1;var e=this.value,n=Array.isArray(e)?e.length:0;return n>=this.maxSelectedChoices},t.prototype.checkMinSelectedChoicesUnreached=function(){if(this.minSelectedChoices<1)return!1;var e=this.value,n=Array.isArray(e)?e.length:0;return n<this.minSelectedChoices},t.prototype.getItemClassCore=function(e,n){return this.value,n.isSelectAllItem=e===this.selectAllItem,new O().append(i.prototype.getItemClassCore.call(this,e,n)).append(this.cssClasses.itemSelectAll,n.isSelectAllItem).toString()},t.prototype.updateValueFromSurvey=function(e,n){i.prototype.updateValueFromSurvey.call(this,e,n),this.invisibleOldValues={}},t.prototype.setDefaultValue=function(){i.prototype.setDefaultValue.call(this);var e=this.defaultValue;if(Array.isArray(e))for(var n=0;n<e.length;n++){var r=this.getRealValue(e[n]);this.canClearValueAnUnknown(r)&&this.addIntoInvisibleOldValues(r)}},t.prototype.addIntoInvisibleOldValues=function(e){this.invisibleOldValues[e]=e},t.prototype.hasValueToClearIncorrectValues=function(){return i.prototype.hasValueToClearIncorrectValues.call(this)||!P.isValueEmpty(this.invisibleOldValues)},t.prototype.setNewValue=function(e){this.isChangingValueOnClearIncorrect||(this.invisibleOldValues={}),e=this.valueFromData(e);var n=this.value;e||(e=[]),n||(n=[]),!this.isTwoValueEquals(n,e)&&(this.removeNoneItemsValues(n,e),i.prototype.setNewValue.call(this,e))},t.prototype.getIsMultipleValue=function(){return!0},t.prototype.getCommentFromValue=function(e){var n=this.getFirstUnknownIndex(e);return n<0?"":e[n]},t.prototype.getStoreOthersAsComment=function(){return this.valuePropertyName?!1:i.prototype.getStoreOthersAsComment.call(this)},t.prototype.setOtherValueIntoValue=function(e){var n=this.getFirstUnknownIndex(e);if(n<0)return e;var r=this.otherItem.value,o=this.valuePropertyName;if(o){var s={};s[o]=r,r=s}return e.splice(n,1,r),e},t.prototype.getFirstUnknownIndex=function(e){if(!Array.isArray(e))return-1;for(var n=0;n<e.length;n++)if(this.hasUnknownValueItem(e[n],!1,!1))return n;return-1},t.prototype.removeNoneItemsValues=function(e,n){var r=[];if(this.showNoneItem&&r.push(this.noneItem.value),this.showRefuseItem&&r.push(this.refuseItem.value),this.showDontKnowItem&&r.push(this.dontKnowItem.value),r.length>0){var o=this.noneIndexInArray(e,r),s=this.noneIndexInArray(n,r);if(o.index>-1)if(o.val===s.val)n.length>0&&n.splice(s.index,1);else{var a=this.noneIndexInArray(n,[o.val]);a.index>-1&&a.index<n.length-1&&n.splice(a.index,1)}else if(s.index>-1&&n.length>1){var l=this.convertValueToObject([s.val])[0];n.splice(0,n.length,l)}}},t.prototype.noneIndexInArray=function(e,n){if(!Array.isArray(e))return{index:-1,val:void 0};for(var r=e.length-1;r>=0;r--){var o=n.indexOf(this.getRealValue(e[r]));if(o>-1)return{index:r,val:n[o]}}return{index:-1,val:void 0}},t.prototype.canUseFilteredChoices=function(){return!this.hasSelectAll&&i.prototype.canUseFilteredChoices.call(this)},t.prototype.supportSelectAll=function(){return this.isSupportProperty("showSelectAllItem")},t.prototype.addNonChoicesItems=function(e,n){i.prototype.addNonChoicesItems.call(this,e,n),this.supportSelectAll()&&this.addNonChoiceItem(e,this.selectAllItem,n,this.hasSelectAll,b.specialChoicesOrder.selectAllItem)},t.prototype.isBuiltInChoice=function(e){return e===this.selectAllItem||i.prototype.isBuiltInChoice.call(this,e)},t.prototype.isItemInList=function(e){return e==this.selectAllItem?this.hasSelectAll:i.prototype.isItemInList.call(this,e)},t.prototype.getDisplayValueEmpty=function(){var e=this;return k.getTextOrHtmlByValue(this.visibleChoices.filter(function(n){return n!=e.selectAllItemValue}),void 0)},t.prototype.getDisplayValueCore=function(e,n){if(!Array.isArray(n))return i.prototype.getDisplayValueCore.call(this,e,n);var r=this.valuePropertyName,o=function(s){var a=n[s];return r&&a[r]&&(a=a[r]),a};return this.getDisplayArrayValue(e,n,o)},t.prototype.clearIncorrectValuesCore=function(){this.clearIncorrectAndDisabledValues(!1)},t.prototype.clearDisabledValuesCore=function(){this.clearIncorrectAndDisabledValues(!0)},t.prototype.clearIncorrectAndDisabledValues=function(e){var n=this.value,r=!1,o=this.restoreValuesFromInvisible();if(!(!n&&o.length==0)){if(!Array.isArray(n)||n.length==0){if(this.isChangingValueOnClearIncorrect=!0,e||(this.hasComment?this.value=null:this.clearValue(!0)),this.isChangingValueOnClearIncorrect=!1,o.length==0)return;n=[]}for(var s=[],a=0;a<n.length;a++){var l=this.getRealValue(n[a]),u=this.canClearValueAnUnknown(l);!e&&!u||e&&!this.isValueDisabled(l)?s.push(n[a]):(r=!0,u&&this.addIntoInvisibleOldValues(n[a]))}for(var a=0;a<o.length;a++)s.push(o[a]),r=!0;r&&(this.isChangingValueOnClearIncorrect=!0,s.length==0?this.clearValue(!0):this.value=s,this.isChangingValueOnClearIncorrect=!1)}},t.prototype.restoreValuesFromInvisible=function(){for(var e=[],n=this.visibleChoices,r=0;r<n.length;r++){var o=n[r];if(o!==this.selectAllItem){var s=n[r].value;P.isTwoValueEquals(s,this.invisibleOldValues[s])&&(this.isItemSelected(o)||e.push(s),delete this.invisibleOldValues[s])}}return e},t.prototype.getConditionJson=function(e,n){e===void 0&&(e=null),n===void 0&&(n=null);var r=i.prototype.getConditionJson.call(this,e,n);return(e=="contains"||e=="notcontains")&&(r.type="radiogroup"),r.maxSelectedChoices=0,r.minSelectedChoices=0,r},t.prototype.isAnswerCorrect=function(){return P.isArrayContainsEqual(this.value,this.correctAnswer)},t.prototype.setDefaultValueWithOthers=function(){this.value=this.renderedValueFromDataCore(this.defaultValue)},t.prototype.getIsItemValue=function(e,n){return!e||!Array.isArray(e)?!1:e.indexOf(n.value)>=0},t.prototype.valueFromData=function(e){if(!e)return e;if(!Array.isArray(e))return[i.prototype.valueFromData.call(this,e)];for(var n=[],r=0;r<e.length;r++){var o=k.getItemByValue(this.activeChoices,e[r]);o?n.push(o.value):n.push(e[r])}return n},t.prototype.rendredValueFromData=function(e){return e=this.convertValueFromObject(e),i.prototype.rendredValueFromData.call(this,e)},t.prototype.rendredValueToData=function(e){return e=i.prototype.rendredValueToData.call(this,e),this.convertValueToObject(e)},t.prototype.convertValueFromObject=function(e){return this.valuePropertyName?P.convertArrayObjectToValue(e,this.valuePropertyName):e},t.prototype.convertValueToObject=function(e){if(!this.valuePropertyName)return e;var n=void 0;return this.survey&&this.survey.questionsByValueName(this.getValueName()).length>1&&(n=this.data.getValue(this.getValueName())),P.convertArrayValueToObject(e,this.valuePropertyName,n)},t.prototype.renderedValueFromDataCore=function(e){if((!e||!Array.isArray(e))&&(e=[]),!this.hasActiveChoices)return e;for(var n=0;n<e.length;n++){if(e[n]==this.otherItem.value)return e;if(this.hasUnknownValueItem(e[n],!0,!1)){this.otherValue=e[n];var r=e.slice();return r[n]=this.otherItem.value,r}}return e},t.prototype.rendredValueToDataCore=function(e){if(!e||!e.length)return e;for(var n=0;n<e.length;n++)if(e[n]==this.otherItem.value&&this.needConvertRenderedOtherToDataValue()){var r=e.slice();return r[n]=this.otherValue,r}return e},t.prototype.selectOtherValueFromComment=function(e){var n=[],r=this.renderedValue;if(Array.isArray(r))for(var o=0;o<r.length;o++)r[o]!==this.otherItem.value&&n.push(r[o]);e&&n.push(this.otherItem.value),this.value=n},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}(kt);x.addClass("checkbox",[{name:"showSelectAllItem:boolean",alternativeName:"hasSelectAll"},{name:"separateSpecialChoices",visible:!0},{name:"maxSelectedChoices:number",default:0,onSettingValue:function(i,t){if(t<=0)return 0;var e=i.minSelectedChoices;return e>0&&t<e?e:t}},{name:"minSelectedChoices:number",default:0,onSettingValue:function(i,t){if(t<=0)return 0;var e=i.maxSelectedChoices;return e>0&&t>e?e:t}},{name:"selectAllText",serializationProperty:"locSelectAllText",dependsOn:"showSelectAllItem",visibleIf:function(i){return i.hasSelectAll}},{name:"valuePropertyName",category:"data"},{name:"itemComponent",visible:!1,default:"survey-checkbox-item"}],function(){return new Qt("")},"checkboxbase"),J.Instance.registerQuestion("checkbox",function(i){var t=new Qt(i);return t.choices=J.DefaultChoices,t});var Tc=function(){var i=function(t,e){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(n[o]=r[o])},i(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");i(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),Rc=function(i,t,e,n){var r=arguments.length,o=r<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,e):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(i,t,e,n);else for(var a=i.length-1;a>=0;a--)(s=i[a])&&(o=(r<3?s(o):r>3?s(t,e,o):s(t,e))||o);return r>3&&o&&Object.defineProperty(t,e,o),o},xs=function(i){Tc(t,i);function t(e){var n=i.call(this,e)||this;return n.onItemClick=function(r){n.isItemDisabled(r)||(n.isExpanded=!1,n.isItemSelected(r)?(n.selectedItems.splice(n.selectedItems.indexOf(r),1)[0],n.onSelectionChanged&&n.onSelectionChanged(r,"removed")):(n.selectedItems.push(r),n.onSelectionChanged&&n.onSelectionChanged(r,"added")))},n.isItemDisabled=function(r){return r.enabled!==void 0&&!r.enabled},n.isItemSelected=function(r){return!!n.allowSelection&&n.selectedItems.filter(function(o){return n.areSameItems(o,r)}).length>0},n.setSelectedItems(e.selectedItems||[]),n}return t.prototype.updateItemState=function(){var e=this;this.actions.forEach(function(n){var r=e.isItemSelected(n);n.visible=e.hideSelectedItems?!r:!0})},t.prototype.updateState=function(){var e=this;this.updateItemState(),this.isEmpty=this.renderedActions.filter(function(n){return e.isItemVisible(n)}).length===0},t.prototype.setSelectedItems=function(e){this.selectedItems=e,this.updateState()},t.prototype.selectFocusedItem=function(){i.prototype.selectFocusedItem.call(this),this.hideSelectedItems&&this.focusNextVisibleItem()},Rc([h()],t.prototype,"hideSelectedItems",void 0),t}(Rt),Ec=function(){var i=function(t,e){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(n[o]=r[o])},i(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");i(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),On=function(i,t,e,n){var r=arguments.length,o=r<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,e):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(i,t,e,n);else for(var a=i.length-1;a>=0;a--)(s=i[a])&&(o=(r<3?s(o):r>3?s(t,e,o):s(t,e))||o);return r>3&&o&&Object.defineProperty(t,e,o),o},Os=function(i){Ec(t,i);function t(e,n){var r=i.call(this,e,n)||this;return r.setHideSelectedItems(e.hideSelectedItems),r.syncFilterStringPlaceholder(),r.closeOnSelect=e.closeOnSelect,r}return t.prototype.locStrsChanged=function(){i.prototype.locStrsChanged.call(this),this.syncFilterStringPlaceholder()},t.prototype.updateListState=function(){this.listModel.updateState(),this.syncFilterStringPlaceholder()},t.prototype.syncFilterStringPlaceholder=function(){var e=this.getSelectedActions();e.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&&ne&&!this.isValueEmpty(this.question.value)?this.itemSelector:i.prototype.getFocusFirstInputSelector.call(this)},t.prototype.getPopupCssClasses=function(){return"sv-multi-select-list"},t.prototype.createListModel=function(){var e=this,n=this.getAvailableItems(),r=this.onSelectionChanged;r||(r=function(a,l){e.resetFilterString(),a.id==="selectall"?e.selectAllItems():l==="added"&&a.value===b.noneItemValue?e.selectNoneItem():l==="added"?e.selectItem(a.value):l==="removed"&&e.deselectItem(a.value),e.popupRecalculatePosition(!1),e.closeOnSelect&&(e.popupModel.isVisible=!1)});var o={items:n,onSelectionChanged:r,allowSelection:!1,locOwner:this.question,elementId:this.listElementId},s=new xs(o);return this.setOnTextSearchCallbackForListModel(s),s.forceShowFilter=!0,s},t.prototype.resetFilterString=function(){i.prototype.resetFilterString.call(this),this.inputString=null,this.hintString=""},Object.defineProperty(t.prototype,"shouldResetAfterCancel",{get:function(){return ne&&!this.closeOnSelect},enumerable:!1,configurable:!0}),t.prototype.createPopup=function(){var e=this;i.prototype.createPopup.call(this),this.popupModel.onFooterActionsCreated.add(function(n,r){e.shouldResetAfterCancel&&r.actions.push({id:"sv-dropdown-done-button",title:e.doneButtonCaption,innerCss:"sv-popup__button--done",needSpace:!0,action:function(){e.popupModel.isVisible=!1},enabled:new te(function(){return!e.isTwoValueEquals(e.question.renderedValue,e.previousValue)})})}),this.popupModel.onVisibilityChanged.add(function(n,r){e.shouldResetAfterCancel&&r.isVisible&&(e.previousValue=[].concat(e.question.renderedValue||[]))}),this.popupModel.onCancel=function(){e.shouldResetAfterCancel&&(e.question.renderedValue=e.previousValue,e.updateListState())}},t.prototype.selectAllItems=function(){this.question.toggleSelectAll(),this.question.isAllSelected&&this.question.hideSelectedItems&&this.popupModel.hide(),this.updateListState()},t.prototype.selectNoneItem=function(){this.question.renderedValue=[b.noneItemValue],this.updateListState()},t.prototype.selectItem=function(e){var n=[].concat(this.question.renderedValue||[]);n.push(e),this.question.renderedValue=n,this.updateListState()},t.prototype.deselectItem=function(e){var n=[].concat(this.question.renderedValue||[]);n.splice(n.indexOf(e),1),this.question.renderedValue=n,this.applyHintString(this.listModel.focusedItem),this.updateListState()},t.prototype.clear=function(){i.prototype.clear.call(this),this.syncFilterStringPlaceholder()},t.prototype.onClear=function(e){i.prototype.onClear.call(this,e),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){e.keyCode===8&&!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;!((e=this.listModel.focusedItem)===null||e===void 0)&&e.selected?this.hintString="":this.applyHintString(this.listModel.focusedItem||this.question.selectedItem),this.syncFilterStringPlaceholder()},t.prototype.onPropertyChangedHandler=function(e,n){i.prototype.onPropertyChangedHandler.call(this,e,n),(n.name==="value"||n.name==="renderedValue"||n.name==="placeholder")&&this.syncFilterStringPlaceholder()},On([h({defaultValue:""})],t.prototype,"filterStringPlaceholder",void 0),On([h({defaultValue:!0})],t.prototype,"closeOnSelect",void 0),On([h()],t.prototype,"previousValue",void 0),On([h({localizable:{defaultStr:"tagboxDoneButtonCaption"}})],t.prototype,"doneButtonCaption",void 0),t}(Cn),Ic=function(){var i=function(t,e){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(n[o]=r[o])},i(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");i(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),Je=function(i,t,e,n){var r=arguments.length,o=r<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,e):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(i,t,e,n);else for(var a=i.length-1;a>=0;a--)(s=i[a])&&(o=(r<3?s(o):r>3?s(t,e,o):s(t,e))||o);return r>3&&o&&Object.defineProperty(t,e,o),o},Gr=function(i){Ic(t,i);function t(e){var n=i.call(this,e)||this;return n.itemDisplayNameMap={},n.onOpened=n.addEvent(),n.ariaExpanded="false",n.createLocalizableString("placeholder",n,!1,!0),n.createLocalizableString("clearCaption",n,!1,!0),n.createLocalizableString("readOnlyText",n,!0),n.deselectAllItemText=n.createLocalizableString("deselectAllText",n.selectAllItem,!0,"deselectAllItemText"),n.registerPropertyChangedHandlers(["value","renderAs","showOtherItem","otherText","placeholder","choices","visibleChoices"],function(){n.updateReadOnlyText()}),n.updateReadOnlyText(),n}return t.prototype.locStrsChanged=function(){var e;i.prototype.locStrsChanged.call(this),this.updateReadOnlyText(),(e=this.dropdownListModelValue)===null||e===void 0||e.locStrsChanged()},t.prototype.updateReadOnlyText=function(){this.readOnlyText=this.displayValue||this.placeholder},t.prototype.getDefaultItemComponent=function(){return""},Object.defineProperty(t.prototype,"dropdownListModel",{get:function(){return this.dropdownListModelValue||(this.dropdownListModelValue=new Os(this)),this.dropdownListModelValue},set:function(e){this.dropdownListModelValue=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}),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(){return this.dropdownListModel.popupModel},enumerable:!1,configurable:!0}),t.prototype.getControlClass=function(){return new O().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.updateCssClasses=function(e,n){i.prototype.updateCssClasses.call(this,e,n),lr(e,n)},t.prototype.calcCssClasses=function(e){var n=i.prototype.calcCssClasses.call(this,e);return this.dropdownListModelValue&&this.dropdownListModel.updateCssClasses(n.popup,n.list),n},t.prototype.onOpenedCallBack=function(){this.onOpened.fire(this,{question:this,choices:this.choices})},t.prototype.hasUnknownValue=function(e,n,r,o){return n===void 0&&(n=!1),r===void 0&&(r=!0),o===void 0&&(o=!1),this.choicesLazyLoadEnabled?!1:i.prototype.hasUnknownValue.call(this,e,n,r,o)},t.prototype.needConvertRenderedOtherToDataValue=function(){var e,n=(e=this.otherValue)===null||e===void 0?void 0:e.trim();return n?i.prototype.hasUnknownValue.call(this,n,!0,!1):!1},t.prototype.onVisibleChoicesChanged=function(){i.prototype.onVisibleChoicesChanged.call(this),this.dropdownListModelValue&&this.dropdownListModel.updateItems()},t.prototype.getItemIfChoicesNotContainThisValue=function(e,n){return this.choicesLazyLoadEnabled?this.createItemValue(e,n):i.prototype.getItemIfChoicesNotContainThisValue.call(this,e,n)},t.prototype.validateItemValues=function(e){var n=this;this.updateItemDisplayNameMap();var r=this.renderedValue;if(e.length&&e.length===r.length)return e;var o=this.selectedItemValues;if(!e.length&&o&&o.length)return this.defaultSelectedItemValues=[].concat(o),o;var s=e.map(function(a){return a.value});return r.filter(function(a){return s.indexOf(a)===-1}).forEach(function(a){var l=n.getItemIfChoicesNotContainThisValue(a,n.itemDisplayNameMap[a]);l&&e.push(l)}),e.sort(function(a,l){return r.indexOf(a.value)-r.indexOf(l.value)}),e},t.prototype.updateItemDisplayNameMap=function(){var e=this,n=function(r){e.itemDisplayNameMap[r.value]=r.text};(this.defaultSelectedItemValues||[]).forEach(n),(this.selectedItemValues||[]).forEach(n),this.visibleChoices.forEach(n)},t.prototype.getFirstInputElementId=function(){return this.inputId+(this.searchEnabled?"_0":"")},t.prototype.getInputId=function(){return this.inputId+"_0"},t.prototype.supportEmptyValidation=function(){return!0},t.prototype.onBlurCore=function(e){this.dropdownListModel.onBlur(e),i.prototype.onBlurCore.call(this,e)},t.prototype.onFocusCore=function(e){this.dropdownListModel.onFocus(e),i.prototype.onFocusCore.call(this,e)},t.prototype.allElementsSelected=function(){var e=i.prototype.allElementsSelected.call(this);return this.updateSelectAllItemText(e),e},t.prototype.updateSelectAllItemText=function(e){this.selectAllItem.setLocText(e?this.deselectAllItemText:this.selectAllItemText)},t.prototype.dispose=function(){i.prototype.dispose.call(this),this.dropdownListModelValue&&(this.dropdownListModelValue.dispose(),this.dropdownListModelValue=void 0)},t.prototype.clearValue=function(e){var n;i.prototype.clearValue.call(this,e),(n=this.dropdownListModelValue)===null||n===void 0||n.clear()},Object.defineProperty(t.prototype,"showClearButton",{get:function(){return this.allowClear&&!this.isEmpty()&&(!this.isDesignMode||b.supportCreatorV2)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isNewA11yStructure",{get:function(){return!1},enumerable:!1,configurable:!0}),Je([h()],t.prototype,"searchMode",void 0),Je([h()],t.prototype,"allowClear",void 0),Je([h({onSet:function(e,n){n.dropdownListModelValue&&n.dropdownListModel.setSearchEnabled(e)}})],t.prototype,"searchEnabled",void 0),Je([h({onSet:function(e,n){n.dropdownListModelValue&&n.dropdownListModel.setHideSelectedItems(e)}})],t.prototype,"hideSelectedItems",void 0),Je([h({onSet:function(e,n){n.dropdownListModelValue&&n.dropdownListModel.setChoicesLazyLoadEnabled(e)}})],t.prototype,"choicesLazyLoadEnabled",void 0),Je([h()],t.prototype,"choicesLazyLoadPageSize",void 0),Je([h({getDefaultValue:function(){return b.tagboxCloseOnSelect}})],t.prototype,"closeOnSelect",void 0),Je([h()],t.prototype,"textWrapEnabled",void 0),t}(Qt);x.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 Gr("")},"checkbox"),J.Instance.registerQuestion("tagbox",function(i){var t=new Gr(i);return t.choices=J.DefaultChoices,t});var Ac=function(){var i=function(t,e){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(n[o]=r[o])},i(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");i(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),Ss=function(i){Ac(t,i);function t(){var e=i!==null&&i.apply(this,arguments)||this;return e.doDragOver=function(){if(e.parentElement.getType()!=="imagepicker"){var n=e.domAdapter.draggedElementShortcut.querySelector(".svc-item-value-controls__button");n.style.cursor="grabbing"}},e.doBanDropHere=function(){if(e.parentElement.getType()!=="imagepicker"){var n=e.domAdapter.draggedElementShortcut.querySelector(".svc-item-value-controls__button");n.style.cursor="not-allowed"}},e}return Object.defineProperty(t.prototype,"draggedElementType",{get:function(){return"item-value"},enumerable:!1,configurable:!0}),t.prototype.createDraggedElementShortcut=function(e,n,r){if(this.parentElement.getType()==="imagepicker")return this.createImagePickerShortcut(this.draggedElement,e,n,r);var o=I.createElement("div");if(o){o.className="sv-drag-drop-choices-shortcut";var s=!0,a=n.closest("[data-sv-drop-target-item-value]").cloneNode(s);a.classList.add("sv-drag-drop-choices-shortcut__content");var l=a.querySelector(".svc-item-value-controls__drag-icon");l.style.visibility="visible";var u=a.querySelector(".svc-item-value-controls__remove");u.style.backgroundColor="transparent",a.classList.remove("svc-item-value--moveup"),a.classList.remove("svc-item-value--movedown"),this.draggedElement.isDragDropMoveDown=!1,this.draggedElement.isDragDropMoveUp=!1,o.appendChild(a);var d=n.getBoundingClientRect();return o.shortcutXOffset=r.clientX-d.x,o.shortcutYOffset=r.clientY-d.y,this.isBottom=null,typeof this.onShortcutCreated=="function"&&this.onShortcutCreated(o),o}},t.prototype.createImagePickerShortcut=function(e,n,r,o){var s=I.createElement("div");if(s){s.style.cssText=` + cursor: grabbing; + position: absolute; + z-index: 10000; + 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)); + padding: calc(0.5 * var(--sjs-base-unit, var(--base-unit, 8px))); + border-radius: calc(0.5 * var(--sjs-base-unit, var(--base-unit, 8px))); + `;var a=r.closest("[data-sv-drop-target-item-value]");this.imagepickerControlsNode=a.querySelector(".svc-image-item-value-controls");var l=a.querySelector(".sd-imagepicker__image-container"),u=a.querySelector(e.imageLink?"img":".sd-imagepicker__no-image").cloneNode(!0);return this.imagepickerControlsNode&&(this.imagepickerControlsNode.style.display="none"),l.style.width=u.width+"px",l.style.height=u.height+"px",u.style.objectFit="cover",u.style.borderRadius="4px",s.appendChild(u),s}},t.prototype.getDropTargetByDataAttributeValue=function(e){var n;return n=this.parentElement.choices.filter(function(r){return""+r.value==e})[0],n},t.prototype.getVisibleChoices=function(){var e=this.parentElement;return e.getType()==="ranking"?e.selectToRankEnabled?e.visibleChoices:e.rankingChoices:e.visibleChoices},t.prototype.isDropTargetValid=function(e,n){var r=this.getVisibleChoices();if(this.parentElement.getType()!=="imagepicker"){var o=r.indexOf(this.dropTarget),s=r.indexOf(this.draggedElement);if(s>o&&this.dropTarget.isDragDropMoveUp)return this.dropTarget.isDragDropMoveUp=!1,!1;if(s<o&&this.dropTarget.isDragDropMoveDown)return this.dropTarget.isDragDropMoveDown=!1,!1}return r.indexOf(e)!==-1},t.prototype.isDropTargetDoesntChanged=function(e){return this.dropTarget===this.prevDropTarget&&e===this.isBottom},t.prototype.calculateIsBottom=function(e,n){var r=n.getBoundingClientRect();return e>=r.y+r.height/2},t.prototype.afterDragOver=function(e){var n=this.getVisibleChoices(),r=n.indexOf(this.dropTarget),o=n.indexOf(this.draggedElement);if(o<r&&this.isBottom===!0)n.splice(o,1),n.splice(r,0,this.draggedElement);else if(o>r&&this.isBottom===!1)n.splice(r,1),n.splice(o,0,this.dropTarget);else return;this.parentElement.getType()!=="imagepicker"&&(o!==r&&(e.classList.remove("svc-item-value--moveup"),e.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),i.prototype.ghostPositionChanged.call(this))},t.prototype.doDrop=function(){var e=this.parentElement.choices,n=this.getVisibleChoices().filter(function(s){return e.indexOf(s)!==-1}),r=e.indexOf(this.draggedElement),o=n.indexOf(this.draggedElement);return e.splice(r,1),e.splice(o,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),i.prototype.clear.call(this)},t.prototype.updateVisibleChoices=function(e){e.getType()==="ranking"?e.updateRankingChoices():e.updateVisibleChoices()},t}(Sr),Dc=function(){var i=function(t,e){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(n[o]=r[o])},i(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");i(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),Ts=function(i){Dc(t,i);function t(){var e=i!==null&&i.apply(this,arguments)||this;return e.isDragOverRootNode=!1,e.doDragOver=function(){var n=e.domAdapter.draggedElementShortcut.querySelector(".sv-ranking-item");n.style.cursor="grabbing"},e.reorderRankedItem=function(n,r,o){if(r!=o){var s=n.rankingChoices,a=s[r];n.isValueSetByUser=!0,s.splice(r,1),s.splice(o,0,a),e.updateDraggedElementShortcut(o+1)}},e.doBanDropHere=function(){if(e.isDragOverRootNode){e.allowDropHere=!0;return}var n=e.domAdapter.draggedElementShortcut.querySelector(".sv-ranking-item");n.style.cursor="not-allowed"},e}return Object.defineProperty(t.prototype,"draggedElementType",{get:function(){return"ranking-item"},enumerable:!1,configurable:!0}),t.prototype.createDraggedElementShortcut=function(e,n,r){var o=I.createElement("div");if(o){o.className=this.shortcutClass+" sv-ranking-shortcut";var s=!0,a=n.cloneNode(s);o.appendChild(a);var l=n.getBoundingClientRect();o.style.left=l.x,o.style.top=l.y,this.domAdapter.rootElement.append(o);var u=o.offsetHeight,d=r.clientY;return d>l.y+u&&(d=l.y+u-10),o.shortcutXOffset=r.clientX-l.x,o.shortcutYOffset=d-l.y,this.parentElement&&this.parentElement.useFullItemSizeForShortcut&&(o.style.width=n.offsetWidth+"px",o.style.height=n.offsetHeight+"px"),o}},Object.defineProperty(t.prototype,"shortcutClass",{get:function(){return new O().append(this.parentElement.cssClasses.root).append(this.parentElement.cssClasses.rootMobileMod,gn).toString()},enumerable:!1,configurable:!0}),t.prototype.getDropTargetByDataAttributeValue=function(e){return this.parentElement.rankingChoices[e]},t.prototype.findDropTargetNodeByDragOverNode=function(e){return this.isDragOverRootNode=this.getIsDragOverRootNode(e),i.prototype.findDropTargetNodeByDragOverNode.call(this,e)},t.prototype.getIsDragOverRootNode=function(e){return typeof e.className=="string"&&e.className.indexOf("sv-ranking")!==-1},t.prototype.isDropTargetValid=function(e,n){var r=this.parentElement.rankingChoices;return r.indexOf(e)!==-1},t.prototype.calculateIsBottom=function(e,n){return this.dropTarget instanceof k&&this.draggedElement!==this.dropTarget?i.prototype.calculateIsBottom.call(this,e,n):!1},t.prototype.getIndices=function(e,n,r){var o=n.indexOf(this.draggedElement),s=r.indexOf(this.dropTarget);if(o<0&&this.draggedElement&&(this.draggedElement=k.getItemByValue(n,this.draggedElement.value)||this.draggedElement,o=n.indexOf(this.draggedElement)),s===-1){var a=e.value.length;s=a}else n==r?(!this.isBottom&&o<s&&s--,this.isBottom&&o>s&&s++):n!=r&&this.isBottom&&s++;return{fromIndex:o,toIndex:s}},t.prototype.afterDragOver=function(e){var n=this.getIndices(this.parentElement,this.parentElement.rankingChoices,this.parentElement.rankingChoices),r=n.fromIndex,o=n.toIndex;this.reorderRankedItem(this.parentElement,r,o)},t.prototype.updateDraggedElementShortcut=function(e){var n;if(!((n=this.domAdapter)===null||n===void 0)&&n.draggedElementShortcut){var r=e!==null?e+"":"",o=this.domAdapter.draggedElementShortcut.querySelector(".sv-ranking-item__index");o.innerText=r}},t.prototype.ghostPositionChanged=function(){this.parentElement.currentDropTarget=this.draggedElement,i.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)),i.prototype.clear.call(this)},t}(Ss),Lc=function(){var i=function(t,e){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(n[o]=r[o])},i(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");i(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),Rs=function(i){Lc(t,i);function t(){var e=i!==null&&i.apply(this,arguments)||this;return e.selectToRank=function(n,r,o){var s=[].concat(n.rankingChoices),a=n.unRankingChoices,l=a[r];s.splice(o,0,l),e.updateChoices(n,s)},e.unselectFromRank=function(n,r,o){var s=[].concat(n.rankingChoices);s.splice(r,1),e.updateChoices(n,s)},e}return t.prototype.findDropTargetNodeByDragOverNode=function(e){if(e.dataset.ranking==="from-container"||e.dataset.ranking==="to-container")return e;var n=e.closest("[data-ranking='to-container']"),r=e.closest("[data-ranking='from-container']");return this.parentElement.unRankingChoices.length===0&&r?r:this.parentElement.rankingChoices.length===0&&n?n:i.prototype.findDropTargetNodeByDragOverNode.call(this,e)},t.prototype.getDropTargetByDataAttributeValue=function(e){return this.parentElement.rankingChoices[e]||this.parentElement.unRankingChoices[e]},t.prototype.getDropTargetByNode=function(e,n){return e.dataset.ranking==="to-container"?"to-container":e.dataset.ranking==="from-container"||e.closest("[data-ranking='from-container']")?"from-container":i.prototype.getDropTargetByNode.call(this,e,n)},t.prototype.isDropTargetValid=function(e,n){return e==="to-container"||e==="from-container"?!0:i.prototype.isDropTargetValid.call(this,e,n)},t.prototype.afterDragOver=function(e){var n=this.parentElement,r=n.rankingChoices,o=n.unRankingChoices;if(this.isDraggedElementUnranked&&this.isDropTargetRanked){this.doRankBetween(e,o,r,this.selectToRank);return}if(this.isDraggedElementRanked&&this.isDropTargetRanked){this.doRankBetween(e,r,r,this.reorderRankedItem);return}if(this.isDraggedElementRanked&&!this.isDropTargetRanked){this.doRankBetween(e,r,o,this.unselectFromRank);return}},t.prototype.doRankBetween=function(e,n,r,o){var s=this.parentElement,a=this.getIndices(s,n,r),l=a.fromIndex,u=a.toIndex;o(s,l,u,e)},Object.defineProperty(t.prototype,"isDraggedElementRanked",{get:function(){return this.parentElement.rankingChoices.indexOf(this.draggedElement)!==-1},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isDropTargetRanked",{get:function(){return this.dropTarget==="to-container"?!0:this.parentElement.rankingChoices.indexOf(this.dropTarget)!==-1},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isDraggedElementUnranked",{get:function(){return!this.isDraggedElementRanked},enumerable:!1,configurable:!0}),t.prototype.updateChoices=function(e,n){e.isValueSetByUser=!0,e.rankingChoices=n,e.updateUnRankingChoices(n)},t}(Ts),Mc=function(){var i=function(t,e){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(n[o]=r[o])},i(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");i(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),Ge=function(i,t,e,n){var r=arguments.length,o=r<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,e):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(i,t,e,n);else for(var a=i.length-1;a>=0;a--)(s=i[a])&&(o=(r<3?s(o):r>3?s(t,e,o):s(t,e))||o);return r>3&&o&&Object.defineProperty(t,e,o),o},Kr=function(i){Mc(t,i);function t(e){var n=i.call(this,e)||this;return n.domNode=null,n.onVisibleChoicesChanged=function(){if(i.prototype.onVisibleChoicesChanged.call(n),n.carryForwardStartUnranked&&!n.isValueSetByUser&&!n.selectToRankEnabled&&!n.defaultValue&&(n.value=[]),n.visibleChoices.length===1&&!n.selectToRankEnabled){n.value=[],n.value.push(n.visibleChoices[0].value),n.updateRankingChoices();return}if(n.isEmpty()){n.updateRankingChoices();return}if(n.selectToRankEnabled){n.updateRankingChoices();return}n.visibleChoices.length>n.value.length&&n.addToValueByVisibleChoices(),n.visibleChoices.length<n.value.length&&n.removeFromValueByVisibleChoices(),n.updateRankingChoices()},n.localeChanged=function(){i.prototype.localeChanged.call(n),n.updateRankingChoicesSync()},n._rankingChoicesAnimation=new Qe(n.getChoicesAnimationOptions(!0),function(r){n._renderedRankingChoices=r},function(){return n.renderedRankingChoices}),n._unRankingChoicesAnimation=new Qe(n.getChoicesAnimationOptions(!1),function(r){n._renderedUnRankingChoices=r},function(){return n.renderedUnRankingChoices}),n.rankingChoices=[],n.unRankingChoices=[],n._renderedRankingChoices=[],n._renderedUnRankingChoices=[],n.handlePointerDown=function(r,o,s){var a=r.target;n.isDragStartNodeValid(a)&&n.isAllowStartDrag(a,o)&&(n.draggedChoiceValue=o.value,n.draggedTargetNode=s,n.dragOrClickHelper.onPointerDown(r))},n.startDrag=function(r){var o=k.getItemByValue(n.activeChoices,n.draggedChoiceValue);n.dragDropRankingChoices.startDrag(r,o,n,n.draggedTargetNode)},n.handlePointerUp=function(r,o,s){if(n.selectToRankEnabled){var a=r.target;n.isAllowStartDrag(a,o)&&n.handleKeydownSelectToRank(r,o," ",!1)}},n.handleKeydown=function(r,o){if(!n.isReadOnlyAttr&&!n.isDesignMode){var s=r.key,a=n.rankingChoices.indexOf(o);if(n.selectToRankEnabled){n.handleKeydownSelectToRank(r,o);return}if(s==="ArrowUp"&&a||s==="ArrowDown"&&a!==n.rankingChoices.length-1){var l=s=="ArrowUp"?a-1:a+1;n.dragDropRankingChoices.reorderRankedItem(n,a,l),n.setValueAfterKeydown(l,"",!0,r)}}},n.focusItem=function(r,o){if(n.domNode)if(n.selectToRankEnabled&&o){var s="[data-ranking='"+o+"']",a=n.domNode.querySelectorAll(s+" ."+n.cssClasses.item);a[r].focus()}else{var a=n.domNode.querySelectorAll("."+n.cssClasses.item);a[r].focus()}},n.isValueSetByUser=!1,n.setValue=function(){var r=[];n.rankingChoices.forEach(function(o){r.push(o.value)}),n.value=r,n.isValueSetByUser=!0},n.registerFunctionOnPropertyValueChanged("selectToRankEnabled",function(){n.clearValue(!0),n.setDragDropRankingChoices(),n.updateRankingChoicesSync()}),n.dragOrClickHelper=new Tr(n.startDrag),n}return 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 O().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,b.rankingDragHandleArea==="icon").append(this.cssClasses.rootSelectToRankMod,this.selectToRankEnabled).append(this.cssClasses.rootSelectToRankEmptyValueMod,this.isEmpty()).append(this.cssClasses.rootSelectToRankAlignHorizontal,this.selectToRankEnabled&&this.renderedSelectToRankAreasLayout==="horizontal").append(this.cssClasses.rootSelectToRankAlignVertical,this.selectToRankEnabled&&this.renderedSelectToRankAreasLayout==="vertical").append(this.cssClasses.rootSelectToRankSwapAreas,this.selectToRankEnabled&&this.renderedSelectToRankAreasLayout==="horizontal"&&this.selectToRankSwapAreas).toString()},enumerable:!1,configurable:!0}),t.prototype.isItemSelectedCore=function(e){return this.selectToRankEnabled?i.prototype.isItemSelectedCore.call(this,e):!0},t.prototype.getItemClassCore=function(e,n){return new O().append(i.prototype.getItemClassCore.call(this,e,n)).append(this.cssClasses.itemGhostMod,this.currentDropTarget===e).toString()},t.prototype.getContainerClasses=function(e){var n=!1,r=e==="to",o=e==="from";return r?n=this.renderedRankingChoices.length===0:o&&(n=this.renderedUnRankingChoices.length===0),new O().append(this.cssClasses.container).append(this.cssClasses.containerToMode,r).append(this.cssClasses.containerFromMode,o).append(this.cssClasses.containerEmptyMode,n).toString()},t.prototype.isItemCurrentDropTarget=function(e){return this.dragDropRankingChoices.dropTarget===e},Object.defineProperty(t.prototype,"ghostPositionCssClass",{get:function(){return this.ghostPosition==="top"?this.cssClasses.dragDropGhostPositionTop:this.ghostPosition==="bottom"?this.cssClasses.dragDropGhostPositionBottom:""},enumerable:!1,configurable:!0}),t.prototype.getItemIndexClasses=function(e){var n;return this.selectToRankEnabled?n=this.unRankingChoices.indexOf(e)!==-1:n=this.isEmpty(),new O().append(this.cssClasses.itemIndex).append(this.cssClasses.itemIndexEmptyMode,n).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(e,n){i.prototype.setSurveyImpl.call(this,e,n),this.setDragDropRankingChoices(),this.updateRankingChoicesSync()},t.prototype.isAnswerCorrect=function(){return P.isArraysEqual(this.value,this.correctAnswer,!1)},Object.defineProperty(t.prototype,"requireStrictCompare",{get:function(){return!0},enumerable:!1,configurable:!0}),t.prototype.onSurveyValueChanged=function(e){i.prototype.onSurveyValueChanged.call(this,e),!this.isLoadingFromJson&&this.updateRankingChoices()},t.prototype.onSurveyLoad=function(){this.blockAnimations(),i.prototype.onSurveyLoad.call(this),this.updateRankingChoices(),this.releaseAnimations()},t.prototype.updateValueFromSurvey=function(e,n){i.prototype.updateValueFromSurvey.call(this,e,n),e&&(this.isValueSetByUser=!0)},t.prototype.addToValueByVisibleChoices=function(){var e=this.value.slice();this.visibleChoices.forEach(function(n){e.indexOf(n.value)===-1&&e.push(n.value)}),this.value=e},t.prototype.removeFromValueByVisibleChoices=function(){for(var e=this.value.slice(),n=this.visibleChoices,r=this.value.length-1;r>=0;r--)k.getItemByValue(n,this.value[r])||e.splice(r,1);this.value=e},t.prototype.getChoicesAnimationOptions=function(e){var n=this;return{getKey:function(r){return r.value},getRerenderEvent:function(){return n.onElementRerendered},isAnimationEnabled:function(){return n.animationAllowed&&!n.isDesignMode&&n.isVisible&&!!n.domNode},getReorderOptions:function(r,o){var s="";return r!==n.currentDropTarget&&(s=o?"sv-dragdrop-movedown":"sv-dragdrop-moveup"),{cssClass:s}},getLeaveOptions:function(r){var o=e?n.renderedRankingChoices:n.renderedUnRankingChoices;return n.renderedSelectToRankAreasLayout=="vertical"&&o.length==1&&o.indexOf(r)>=0?{cssClass:"sv-ranking-item--animate-item-removing-empty"}:{cssClass:"sv-ranking-item--animate-item-removing",onBeforeRunAnimation:function(s){s.style.setProperty("--animation-height",s.offsetHeight+"px")}}},getEnterOptions:function(r){var o=e?n.renderedRankingChoices:n.renderedUnRankingChoices;return n.renderedSelectToRankAreasLayout=="vertical"&&o.length==1&&o.indexOf(r)>=0?{cssClass:"sv-ranking-item--animate-item-adding-empty"}:{cssClass:"sv-ranking-item--animate-item-adding",onBeforeRunAnimation:function(s){s.style.setProperty("--animation-height",s.offsetHeight+"px")}}},getAnimatedElement:function(r){var o,s=n.cssClasses,a="";n.selectToRankEnabled&&(!e&&s.containerFromMode?a=be(s.containerFromMode):e&&s.containerToMode&&(a=be(s.containerToMode)));var l=e?n.renderedRankingChoices.indexOf(r):n.renderedUnRankingChoices.indexOf(r);return(o=n.domNode)===null||o===void 0?void 0:o.querySelector(a+" [data-sv-drop-target-ranking-item='"+l+"']")},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 n=this;if(e===void 0&&(e=!1),this.selectToRankEnabled){this.updateRankingChoicesSelectToRankMode(e);return}var r=[];if(e&&(this.rankingChoices=[]),this.isEmpty()){this.rankingChoices=this.visibleChoices;return}this.value.forEach(function(o){n.visibleChoices.forEach(function(s){s.value===o&&r.push(s)})}),this.rankingChoices=r},t.prototype.updateUnRankingChoices=function(e){var n=[];this.visibleChoices.forEach(function(r){n.push(r)}),e.forEach(function(r){n.forEach(function(o,s){o.value===r.value&&n.splice(s,1)})}),this.unRankingChoices=n},t.prototype.updateRankingChoicesSelectToRankMode=function(e){var n=this,r=[];this.isEmpty()||this.value.forEach(function(o){n.visibleChoices.forEach(function(s){s.value===o&&r.push(s)})}),this.updateUnRankingChoices(r),this.rankingChoices=r},t.prototype.endLoadingFromJson=function(){i.prototype.endLoadingFromJson.call(this),this.setDragDropRankingChoices()},t.prototype.setDragDropRankingChoices=function(){this.dragDropRankingChoices=this.createDragDropRankingChoices()},t.prototype.createDragDropRankingChoices=function(){return this.selectToRankEnabled?new Rs(this.survey,null,this.longTap):new Ts(this.survey,null,this.longTap)},t.prototype.isDragStartNodeValid=function(e){return b.rankingDragHandleArea==="icon"?e.classList.contains(this.cssClasses.itemIconHoverMod):!0},t.prototype.isAllowStartDrag=function(e,n){return!this.isReadOnly&&!this.isDesignMode&&this.canStartDragDueMaxSelectedChoices(e)&&this.canStartDragDueItemEnabled(n)},t.prototype.canStartDragDueMaxSelectedChoices=function(e){if(!this.selectToRankEnabled)return!0;var n=e.closest("[data-ranking='from-container']");return n?this.checkMaxSelectedChoicesUnreached():!0},t.prototype.canStartDragDueItemEnabled=function(e){return e.enabled},t.prototype.checkMaxSelectedChoicesUnreached=function(){if(this.maxSelectedChoices<1)return!0;var e=this.value,n=Array.isArray(e)?e.length:0;return n<this.maxSelectedChoices},t.prototype.afterRenderQuestionElement=function(e){this.domNode=e,i.prototype.afterRenderQuestionElement.call(this,e)},t.prototype.beforeDestroyQuestionElement=function(e){this.domNode=void 0,i.prototype.beforeDestroyQuestionElement.call(this,e)},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,n,r,o){if(o===void 0&&(o=!0),!this.isDesignMode){var s=e.key;if(r&&(s=r),!(s!==" "&&s!=="ArrowUp"&&s!=="ArrowDown")){var a=this.dragDropRankingChoices,l=this.rankingChoices,u=l.indexOf(n)!==-1,d=u?l:this.unRankingChoices,v=d.indexOf(n);if(!(v<0)){var V;if(s===" "&&!u){if(!this.checkMaxSelectedChoicesUnreached()||!this.canStartDragDueItemEnabled(n))return;V=this.value.length,a.selectToRank(this,v,V),this.setValueAfterKeydown(V,"to-container",o,e);return}if(u){if(s===" "){a.unselectFromRank(this,v),V=this.unRankingChoices.indexOf(n),this.setValueAfterKeydown(V,"from-container",o,e);return}var T=s==="ArrowUp"?-1:s==="ArrowDown"?1:0;T!==0&&(V=v+T,!(V<0||V>=l.length)&&(a.reorderRankedItem(this,v,V),this.setValueAfterKeydown(V,"to-container",o,e)))}}}}},t.prototype.setValueAfterKeydown=function(e,n,r,o){var s=this;r===void 0&&(r=!0),this.setValue(),r&&setTimeout(function(){s.focusItem(e,n)},1),o&&o.preventDefault()},t.prototype.getIconHoverCss=function(){return new O().append(this.cssClasses.itemIcon).append(this.cssClasses.itemIconHoverMod).toString()},t.prototype.getIconFocusCss=function(){return new O().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,"selectToRankSwapAreas",{get:function(){return this.getPropertyValue("selectToRankSwapAreas",!1)},set:function(e){this.setPropertyValue("selectToRankSwapAreas",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 gn},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-24x24"},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"arrowsSvgIcon",{get:function(){return this.cssClasses.arrowsSvgIconId||"#icon-reorder-24x24"},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"dashSvgIcon",{get:function(){return this.cssClasses.dashSvgIconId||"#icon-rankingundefined-16x16"},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isNewA11yStructure",{get:function(){return!1},enumerable:!1,configurable:!0}),Ge([ae({onSet:function(e,n){return n.updateRenderedRankingChoices()},onRemove:function(e,n,r){return r.updateRenderedRankingChoices()},onPush:function(e,n,r){return r.updateRenderedRankingChoices()}})],t.prototype,"rankingChoices",void 0),Ge([ae({onSet:function(e,n){return n.updateRenderedUnRankingChoices()},onRemove:function(e,n,r){return r.updateRenderedUnRankingChoices()},onPush:function(e,n,r){return r.updateRenderedUnRankingChoices()}})],t.prototype,"unRankingChoices",void 0),Ge([ae()],t.prototype,"_renderedRankingChoices",void 0),Ge([ae()],t.prototype,"_renderedUnRankingChoices",void 0),Ge([h({defaultValue:null})],t.prototype,"currentDropTarget",void 0),Ge([h({defaultValue:!0})],t.prototype,"carryForwardStartUnranked",void 0),Ge([h({localizable:{defaultStr:"selectToRankEmptyRankedAreaText"}})],t.prototype,"selectToRankEmptyRankedAreaText",void 0),Ge([h({localizable:{defaultStr:"selectToRankEmptyUnrankedAreaText"}})],t.prototype,"selectToRankEmptyUnrankedAreaText",void 0),t}(Qt);x.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:"selectToRankSwapAreas:switch",default:!1,visible:!1,isSerializable:!0,dependsOn:"selectToRankEnabled"},{name:"selectToRankAreasLayout",default:"horizontal",choices:["horizontal","vertical"],dependsOn:"selectToRankEnabled",visibleIf:function(i){return!!i.selectToRankEnabled},visible:!0,isSerializable:!0},{name:"selectToRankEmptyRankedAreaText:text",serializationProperty:"locSelectToRankEmptyRankedAreaText",category:"general",dependsOn:"selectToRankEnabled",visibleIf:function(i){return!!i.selectToRankEnabled}},{name:"selectToRankEmptyUnrankedAreaText:text",serializationProperty:"locSelectToRankEmptyUnrankedAreaText",category:"general",dependsOn:"selectToRankEnabled",visibleIf:function(i){return!!i.selectToRankEnabled}},{name:"maxSelectedChoices:number",visible:!0,default:0,dependsOn:"selectToRankEnabled",visibleIf:function(i){return!!i.selectToRankEnabled},isSerializable:!0},{name:"minSelectedChoices:number",visible:!0,default:0,dependsOn:"selectToRankEnabled",visibleIf:function(i){return!!i.selectToRankEnabled},isSerializable:!0},{name:"itemComponent",visible:!1,default:"sv-ranking-item"}],function(){return new Kr("")},"checkbox"),J.Instance.registerQuestion("ranking",function(i){var t=new Kr(i);return t.choices=J.DefaultChoices,t});var jc=function(){var i=function(t,e){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(n[o]=r[o])},i(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");i(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),Yr=function(i){jc(t,i);function t(e){return i.call(this,e)||this}return Object.defineProperty(t.prototype,"textAreaModel",{get:function(){return this.textAreaModelValue||(this.textAreaModelValue=new ln(this.getTextAreaOptions())),this.textAreaModelValue},enumerable:!1,configurable:!0}),t.prototype.getTextAreaOptions=function(){var e=this,n=this,r=function(s){P.isTwoValueEquals(n.value,s,!1,!0,!1)||(n.value=s)},o={question:this,id:function(){return e.inputId},propertyName:"value",className:function(){return e.className},placeholder:function(){return e.renderedPlaceholder},isDisabledAttr:function(){return e.isDisabledAttr},isReadOnlyAttr:function(){return e.isReadOnlyAttr},autoGrow:function(){return e.renderedAutoGrow},maxLength:function(){return e.getMaxLength()},rows:function(){return e.rows},cols:function(){return e.cols},ariaRequired:function(){return e.a11y_input_ariaRequired},ariaLabel:function(){return e.a11y_input_ariaLabel},ariaLabelledBy:function(){return e.a11y_input_ariaLabelledBy},ariaDescribedBy:function(){return e.a11y_input_ariaDescribedBy},ariaInvalid:function(){return e.a11y_input_ariaInvalid},ariaErrormessage:function(){return e.a11y_input_ariaErrormessage},getTextValue:function(){return e.value},onTextAreaChange:function(s){r(s.target.value)},onTextAreaInput:function(s){e.onInput(s)},onTextAreaKeyDown:function(s){e.onKeyDown(s)},onTextAreaFocus:function(s){e.onFocus(s)},onTextAreaBlur:function(s){e.onBlur(s)}};return o},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")},set:function(e){this.setPropertyValue("autoGrow",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"renderedAutoGrow",{get:function(){var e=this.autoGrow;return e===void 0&&this.survey?this.survey.autoGrowComment:!!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(){var e=this.allowResize;return e===void 0&&this.survey?this.survey.allowResizeComment:!!e},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(e){var n=b.environment.root;this.element=n.getElementById(this.inputId)||e,i.prototype.afterRenderQuestionElement.call(this,e)},t.prototype.beforeDestroyQuestionElement=function(e){i.prototype.beforeDestroyQuestionElement.call(this,e),this.element=void 0},t.prototype.onInput=function(e){this.isInputTextUpdate&&(this.value=e.target.value),this.updateRemainingCharacterCounter(e.target.value)},t.prototype.onBlurCore=function(e){i.prototype.onBlurCore.call(this,e)},t.prototype.onKeyDown=function(e){this.onKeyDownPreprocess&&this.onKeyDownPreprocess(e),!this.acceptCarriageReturn&&(e.key==="Enter"||e.keyCode===13)&&(e.preventDefault(),e.stopPropagation())},t.prototype.setNewValue=function(e){!this.acceptCarriageReturn&&e&&(e=e.replace(new RegExp(`(\r +| +|\r)`,"gm"),"")),i.prototype.setNewValue.call(this,e)},t.prototype.getValueSeparator=function(){return` +`},t.prototype.notifyStateChanged=function(e){i.prototype.notifyStateChanged.call(this,e),this.isCollapsed||this.textAreaModel.updateElement()},Object.defineProperty(t.prototype,"className",{get:function(){return(this.cssClasses?this.getControlClass():"panel-comment-root")||void 0},enumerable:!1,configurable:!0}),t}(Pn);x.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",defaultFunc:function(){}},{name:"allowResize:boolean",defaultFunc:function(){}},{name:"acceptCarriageReturn:boolean",default:!0,visible:!1}],function(){return new Yr("")},"textbase"),J.Instance.registerQuestion("comment",function(i){return new Yr(i)});var zt="environment",Ke="user",Nc=function(){function i(){this.canFlipValue=void 0}return i.clear=function(){i.cameraList=void 0,i.cameraIndex=-1},i.setCameraList=function(t){var e=function(n){var r=n.label.toLocaleLowerCase();return r.indexOf(Ke)>-1?Ke:r.indexOf(zt)>-1?zt:r.indexOf("front")>-1?Ke:r.indexOf("back")>-1?zt:""};i.clear(),Array.isArray(t)&&t.length>0&&(i.cameraIndex=-1,t.sort(function(n,r){if(n===r)return 0;if(n.label!==r.label){var o=e(n),s=e(r);if(o!==s){if(o===Ke)return-1;if(s===Ke)return 1;if(o===zt)return-1;if(s===zt)return 1}}var a=t.indexOf(n),l=t.indexOf(r);return a<l?-1:1})),i.cameraList=t},i.prototype.hasCamera=function(t){var e=this;if(i.cameraList!==void 0){this.hasCameraCallback(t);return}if(i.mediaDevicesCallback){var n=function(r){e.setVideoInputs(r),e.hasCameraCallback(t)};i.mediaDevicesCallback(n);return}typeof navigator<"u"&&navigator.mediaDevices?navigator.mediaDevices.enumerateDevices().then(function(r){e.setVideoInputs(r),e.hasCameraCallback(t),e.updateCanFlipValue()}).catch(function(r){i.cameraList=null,e.hasCameraCallback(t)}):(i.cameraList=null,this.hasCameraCallback(t))},i.prototype.getMediaConstraints=function(t){var e=i.cameraList;if(!(!Array.isArray(e)||e.length<1)){i.cameraIndex<0&&(i.cameraIndex=0);var n=e[i.cameraIndex],r={};return n&&n.deviceId?r.deviceId={exact:n.deviceId}:r.facingMode=i.cameraFacingMode,t&&(t!=null&&t.height&&(r.height={ideal:t.height}),t!=null&&t.width&&(r.width={ideal:t.width})),{video:r,audio:!1}}},i.prototype.startVideo=function(t,e,n,r){var o=this;if(!t){e(void 0);return}t.style.width="100%",t.style.height="auto",t.style.height="100%",t.style.objectFit="contain";var s=this.getMediaConstraints({width:n,height:r});navigator.mediaDevices.getUserMedia(s).then(function(a){var l;t.srcObject=a,!(!((l=i.cameraList[i.cameraIndex])===null||l===void 0)&&l.deviceId)&&a.getTracks()[0].getCapabilities().facingMode&&(i.canSwitchFacingMode=!0,o.updateCanFlipValue()),t.play(),e(a)}).catch(function(a){e(void 0)})},i.prototype.getImageSize=function(t){return{width:t.videoWidth,height:t.videoHeight}},i.prototype.snap=function(t,e){if(!t||!I.isAvailable())return!1;var n=I.getDocument(),r=n.createElement("canvas"),o=this.getImageSize(t);r.height=o.height,r.width=o.width;var s=r.getContext("2d");return s.clearRect(0,0,r.width,r.height),s.drawImage(t,0,0,r.width,r.height),r.toBlob(e,"image/png"),!0},i.prototype.updateCanFlipValue=function(){var t=i.cameraList;this.canFlipValue=Array.isArray(t)&&t.length>1||i.canSwitchFacingMode,this.onCanFlipChangedCallback&&this.onCanFlipChangedCallback(this.canFlipValue)},i.prototype.canFlip=function(t){return this.canFlipValue===void 0&&this.updateCanFlipValue(),t&&(this.onCanFlipChangedCallback=t),this.canFlipValue},i.prototype.flip=function(){this.canFlip()&&(i.canSwitchFacingMode?i.cameraFacingMode=i.cameraFacingMode===Ke?"environment":Ke:i.cameraIndex>=i.cameraList.length-1?i.cameraIndex=0:i.cameraIndex++)},i.prototype.hasCameraCallback=function(t){t(Array.isArray(i.cameraList))},i.prototype.setVideoInputs=function(t){var e=[];t.forEach(function(n){n.kind==="videoinput"&&e.push(n)}),i.setCameraList(e.length>0?e:null)},i.cameraIndex=-1,i.cameraFacingMode=Ke,i.canSwitchFacingMode=!1,i}(),Xr=function(){var i=function(t,e){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(n[o]=r[o])},i(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");i(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),ee=function(i,t,e,n){var r=arguments.length,o=r<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,e):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(i,t,e,n);else for(var a=i.length-1;a>=0;a--)(s=i[a])&&(o=(r<3?s(o):r>3?s(t,e,o):s(t,e))||o);return r>3&&o&&Object.defineProperty(t,e,o),o};function Fc(i,t,e){var n=atob(i.split(",")[1]),r=new Uint8Array(n.split("").map(function(o){return o.charCodeAt(0)})).buffer;return new File([r],t,{type:e})}var Es=function(i){Xr(t,i);function t(){var e=i!==null&&i.apply(this,arguments)||this;return e.isUploading=!1,e.onUploadStateChanged=e.addEvent(),e.onStateChanged=e.addEvent(),e}return t.prototype.stateChanged=function(e){this.currentState!=e&&(e==="loading"&&(this.isUploading=!0),e==="loaded"&&(this.isUploading=!1),e==="error"&&(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(e){this.clearOnDeletingContainer(),i.prototype.clearValue.call(this,e)},t.prototype.clearOnDeletingContainer=function(){this.survey&&this.survey.clearFiles(this,this.name,this.value,null,function(){})},t.prototype.onCheckForErrors=function(e,n,r){i.prototype.onCheckForErrors.call(this,e,n,r),this.isUploading&&this.waitForUpload&&e.push(new an(this.getLocalizationString("uploadingFile"),this))},t.prototype.uploadFiles=function(e){var n=this;this.survey&&(this.stateChanged("loading"),this.survey.uploadFiles(this,this.name,e,function(r,o){Array.isArray(r)&&(n.setValueFromResult(r),Array.isArray(o)&&(o.forEach(function(s){return n.errors.push(new an(s,n))}),n.stateChanged("error"))),r==="success"&&Array.isArray(o)&&n.setValueFromResult(o),r==="error"&&(typeof o=="string"&&n.errors.push(new an(o,n)),Array.isArray(o)&&o.length>0&&o.forEach(function(s){return n.errors.push(new an(s,n))}),n.stateChanged("error")),n.stateChanged("loaded")}))},t.prototype.loadPreview=function(e){},t.prototype.onChangeQuestionValue=function(e){i.prototype.onChangeQuestionValue.call(this,e),this.stateChanged(this.isEmpty()?"empty":"loaded")},t.prototype.getIsQuestionReady=function(){return i.prototype.getIsQuestionReady.call(this)&&!this.isFileLoading},Object.defineProperty(t.prototype,"isFileLoading",{get:function(){return this.isFileLoadingValue},set:function(e){this.isFileLoadingValue=e,this.updateIsReady()},enumerable:!1,configurable:!0}),ee([h()],t.prototype,"isUploading",void 0),ee([h({defaultValue:"empty"})],t.prototype,"currentState",void 0),t}(ue),Is=function(i){Xr(t,i);function t(e,n){var r=i.call(this)||this;return r.question=e,r.index=n,r.id=t.getId(),r}return t.getId=function(){return"sv_sfp_"+t.pageCounter++},Object.defineProperty(t.prototype,"css",{get:function(){return this.question.cssClasses.page},enumerable:!1,configurable:!0}),t.pageCounter=0,ee([ae({})],t.prototype,"items",void 0),t}(z),Zr=function(i){Xr(t,i);function t(e){var n=i.call(this,e)||this;return n.isDragging=!1,n.fileNavigator=new Ee,n.canFlipCameraValue=void 0,n.prevPreviewLength=0,n._renderedPages=[],n.pagesAnimation=new Yn(n.getPagesAnimationOptions(),function(r){n._renderedPages=r},function(){return n.renderedPages}),n.calcAvailableItemsCount=function(r,o,s){var a=Math.floor(r/(o+s));return(a+1)*(o+s)-s<=r&&a++,a},n.dragCounter=0,n.onDragEnter=function(r){n.canDragDrop()&&(r.preventDefault(),n.isDragging=!0,n.dragCounter++)},n.onDragOver=function(r){if(!n.canDragDrop())return r.returnValue=!1,!1;r.dataTransfer.dropEffect="copy",r.preventDefault()},n.onDrop=function(r){if(n.canDragDrop()){n.isDragging=!1,n.dragCounter=0,r.preventDefault();var o=r.dataTransfer;n.onChange(o)}},n.onDragLeave=function(r){n.canDragDrop()&&(n.dragCounter--,n.dragCounter===0&&(n.isDragging=!1))},n.doChange=function(r){var o=r.target||r.srcElement;n.onChange(o)},n.doClean=function(){if(n.needConfirmRemoveFile){At({message:n.confirmRemoveAllMessage,funcOnYes:function(){n.clearFilesCore()},locale:n.getLocale(),rootElement:n.survey.rootElement,cssClass:n.cssClasses.confirmDialog});return}n.clearFilesCore()},n.doDownloadFileFromContainer=function(r){r.stopPropagation();var o=r.currentTarget;if(o&&o.getElementsByTagName){var s=o.getElementsByTagName("a")[0];s==null||s.click()}},n.doDownloadFile=function(r,o){r.stopPropagation(),Dt()&&(r.preventDefault(),uo(o.content,o.name))},n.createLocalizableString("takePhotoCaption",n,!1,!0),n.createLocalizableString("clearCaption",n,!1,!0),n.actionsContainer=new Ee,n.actionsContainer.locOwner=n,n.fileIndexAction=new $({id:"fileIndex",title:n.getFileIndexCaption(),enabled:!1}),n.prevFileAction=new $({id:"prevPage",iconSize:16,action:function(){n.navigationDirection="left",n.indexToShow=n.previewValue.length&&(n.indexToShow-1+n.pagesCount)%n.pagesCount||0,n.fileIndexAction.title=n.getFileIndexCaption()}}),n.nextFileAction=new $({id:"nextPage",iconSize:16,action:function(){n.navigationDirection="right",n.indexToShow=n.previewValue.length&&(n.indexToShow+1)%n.pagesCount||0,n.fileIndexAction.title=n.getFileIndexCaption()}}),n.takePictureAction=new $({iconName:"icon-takepicture",id:"sv-file-take-picture",iconSize:"auto",innerCss:new te(function(){return new O().append(n.cssClasses.contextButton).append(n.cssClasses.takePictureButton).toString()}),locTitle:n.locTakePhotoCaption,showTitle:!1,action:function(){n.snapPicture()}}),n.closeCameraAction=new $({iconName:"icon-closecamera",id:"sv-file-close-camera",iconSize:"auto",innerCss:new te(function(){return new O().append(n.cssClasses.contextButton).append(n.cssClasses.closeCameraButton).toString()}),action:function(){n.stopVideo()}}),n.changeCameraAction=new $({iconName:"icon-changecamera",id:"sv-file-change-camera",iconSize:"auto",innerCss:new te(function(){return new O().append(n.cssClasses.contextButton).append(n.cssClasses.changeCameraButton).toString()}),visible:new te(function(){return n.canFlipCamera()}),action:function(){n.flipCamera()}}),n.chooseFileAction=new $({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 $({iconName:"icon-takepicture_24x24",id:"sv-file-start-camera",iconSize:"auto",locTitle:n.locTakePhotoCaption,showTitle:new te(function(){return!n.isAnswered}),enabledIf:function(){return!n.isInputReadOnly},action:function(){n.startVideo()}}),n.cleanAction=new $({iconName:"icon-clear",id:"sv-file-clean",iconSize:"auto",locTitle:n.locClearButtonCaption,showTitle:!1,enabledIf:function(){return!n.isInputReadOnly},innerCss:new te(function(){return n.cssClasses.removeButton}),action:function(){n.doClean()}}),[n.closeCameraAction,n.changeCameraAction,n.takePictureAction].forEach(function(r){r.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 Object.defineProperty(t.prototype,"supportFileNavigator",{get:function(){return this.isDefaultV2Theme},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"fileNavigatorVisible",{get:function(){var e=this.isUploading,n=this.isPlayingVideo,r=this.containsMultiplyFiles,o=this.pageSize<this.previewValue.length;return!e&&!n&&r&&o&&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,n=this.isPlayingVideo,r=this.isDefaultV2Theme;return!e&&!n&&r},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 this.currentMode!=="file"},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hasFileUI",{get:function(){return this.currentMode!=="camera"},enumerable:!1,configurable:!0}),t.prototype.startVideo=function(){var e=this;this.currentMode==="file"||this.isDesignMode||this.isPlayingVideo||(this.setIsPlayingVideo(!0),setTimeout(function(){e.startVideoInCamera()},0))},Object.defineProperty(t.prototype,"videoHtmlElement",{get:function(){var e;return(e=this.rootElement)===null||e===void 0?void 0:e.querySelector("#"+this.videoId)},enumerable:!1,configurable:!0}),t.prototype.startVideoInCamera=function(){var e=this;this.camera.startVideo(this.videoHtmlElement,function(n){e.videoStream=n,n||e.stopVideo()},nt(this.imageWidth),nt(this.imageHeight))},t.prototype.stopVideo=function(){this.setIsPlayingVideo(!1),this.closeVideoStream()},t.prototype.snapPicture=function(){var e=this;if(this.isPlayingVideo){var n=function(r){if(r){var o=new File([r],"snap_picture.png",{type:"image/png"});e.loadFiles([o])}};this.camera.snap(this.videoHtmlElement,n),this.stopVideo()}},t.prototype.canFlipCamera=function(){var e=this;return this.canFlipCameraValue===void 0&&(this.canFlipCameraValue=this.camera.canFlip(function(n){e.canFlipCameraValue=n})),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(){i.prototype.onHidingContent.call(this),this.stopVideo()},t.prototype.updateElementCssCore=function(e){i.prototype.updateElementCssCore.call(this,e),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.updatePages(),this.navigationDirection=void 0,this.indexToShow=this.previewValue.length&&(this.indexToShow+this.pagesCount)%this.pagesCount||0,this.fileIndexAction.title=this.getFileIndexCaption()},t.prototype.updateRenderedPages=function(){this.pages&&this.pages[this.indexToShow]&&(this.renderedPages=[this.pages[this.indexToShow]])},t.prototype.updatePages=function(){var e=this;this.blockAnimations();var n;this.pages=[],this.renderedPages=[],this.previewValue.forEach(function(r,o){o%e.pageSize==0&&(n=new Is(e,e.pages.length),e.pages.push(n)),n.items.push(r)}),this.releaseAnimations(),this.updateRenderedPages()},t.prototype.previewValueChanged=function(){var e=this;this.navigationDirection=void 0,this.previewValue.length!==this.prevPreviewLength&&(this.previewValue.length>0?this.prevPreviewLength>this.previewValue.length?this.indexToShow>=this.pagesCount&&this.indexToShow>0&&(this.indexToShow=this.pagesCount-1,this.navigationDirection="left-delete"):this.indexToShow=Math.floor(this.prevPreviewLength/this.pageSize):this.indexToShow=0),this.updatePages(),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)},1),this.prevPreviewLength=this.previewValue.length},t.prototype.getType=function(){return"file"},t.prototype.onChangeQuestionValue=function(e){i.prototype.onChangeQuestionValue.call(this,e),this.isLoadingFromJson||this.loadPreview(e)},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 n=this;if(this.rootElement){var r=this.rootElement.querySelector("#"+this.inputId);r&&(e.preventDefault(),e.stopImmediatePropagation(),r&&(this.survey?this.survey.chooseFiles(r,function(o){return n.loadFiles(o)},{element:this,elementType:this.getType(),propertyName:this.name}):r.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 this.locRenderedPlaceholderValue===void 0&&(this.locRenderedPlaceholderValue=new te(function(){var n=e.isReadOnly,r=!e.isDesignMode&&e.hasFileUI||e.isDesignMode&&e.sourceType!="camera",o=!e.isDesignMode&&e.hasVideoUI||e.isDesignMode&&e.sourceType!="file",s;return n?s=e.locNoFileChosenCaption:r&&o?s=e.locFileOrPhotoPlaceholder:r?s=e.locFilePlaceholder:s=e.locPhotoPlaceholder,s})),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&&this.survey&&(this.sourceType!=="file"?this.camera.hasCamera(function(n){e.setPropertyValue("currentMode",n&&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&&this.sourceType!=="camera",this.startCameraAction.visible=!e&&this.hasVideoUI||e&&this.sourceType!=="file",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 n=this;this.survey&&(this.containsMultiplyFiles=!1,this.survey.clearFiles(this,this.name,this.value,null,function(r,o){r==="success"&&(n.value=void 0,n.errors=[],e&&e(),n.indexToShow=0,n.fileIndexAction.title=n.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,n=this.showLoadingIndicator;return!e&&!n},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"allowShowPreview",{get:function(){var e=this.showLoadingIndicator,n=this.isPlayingVideo;return!e&&!n},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,n=this.isReadOnly,r=this.isEmpty();return!n&&!r&&!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 O().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(n){return n.name===e})[0])},t.prototype.removeFileByContent=function(e){var n=this;this.survey&&this.survey.clearFiles(this,this.name,this.value,e.name,function(r,o){if(r==="success"){var s=n.value;Array.isArray(s)?n.value=s.filter(function(a){return!P.isTwoValueEquals(a,e,!0,!1,!1)}):n.value=void 0}})},t.prototype.setValueFromResult=function(e){this.value=(this.value||[]).concat(e.map(function(n){return{name:n.file.name,type:n.file.type,content:n.content}}))},t.prototype.loadFiles=function(e){var n=this;if(this.survey&&(this.errors=[],!!this.allFilesOk(e))){var r=function(){n.stateChanged("loading");var o=[];n.storeDataAsText?e.forEach(function(s){var a=new FileReader;a.onload=function(l){o=o.concat([{name:s.name,type:s.type,content:a.result}]),o.length===e.length&&(n.value=(n.value||[]).concat(o))},a.readAsDataURL(s)}):n.uploadFiles(e)};this.allowMultiple?r():this.clear(r)}},Object.defineProperty(t.prototype,"camera",{get:function(){return this.cameraValue||(this.cameraValue=new Nc),this.cameraValue},enumerable:!1,configurable:!0}),t.prototype.canPreviewImage=function(e){return this.allowImagesPreview&&!!e&&this.isFileImage(e)},t.prototype.loadPreview=function(e){var n=this;if(!(this.showPreview&&this.prevLoadedPreviewValue===e)&&(this.previewValue.splice(0,this.previewValue.length),!(!this.showPreview||!e))){this.prevLoadedPreviewValue=e;var r=Array.isArray(e)?e:e?[e]:[];this.storeDataAsText?(r.forEach(function(o){var s=o.content||o;n.previewValue.push({name:o.name,type:o.type,content:s})}),this.previewValueChanged()):(this._previewLoader&&this._previewLoader.dispose(),this.isFileLoading=!0,this._previewLoader=new As(this,function(o,s){o!=="error"&&(s.forEach(function(a){n.previewValue.push(a)}),n.previewValueChanged()),n.isFileLoading=!1,n._previewLoader.dispose(),n._previewLoader=void 0}),this._previewLoader.load(r))}},t.prototype.allFilesOk=function(e){var n=this,r=this.errors?this.errors.length:0;return(e||[]).forEach(function(o){n.maxSize>0&&o.size>n.maxSize&&n.errors.push(new bo(n.maxSize,n))}),r===this.errors.length},t.prototype.isFileImage=function(e){if(!e||!e.content||!e.content.substring)return!1;var n="data:image",r=e.content&&e.content.substring(0,n.length);r=r&&r.toLowerCase();var o=r===n||!!e.type&&e.type.toLowerCase().indexOf("image/")===0;return o},t.prototype.getPlainData=function(e){e===void 0&&(e={includeEmpty:!0});var n=i.prototype.getPlainData.call(this,e);if(n&&!this.isEmpty()){n.isNode=!1;var r=Array.isArray(this.value)?this.value:[this.value];n.data=r.map(function(o,s){return{name:s,title:"File",value:o.content&&o.content||o,displayValue:o.name&&o.name||o,getString:function(a){return typeof a=="object"?JSON.stringify(a):a},isNode:!1}})}return n},t.prototype.getImageWrapperCss=function(e){return new O().append(this.cssClasses.imageWrapper).append(this.cssClasses.imageWrapperDefaultImage,this.defaultImage(e)).toString()},t.prototype.getActionsContainerCss=function(e){return new O().append(e.actionsContainer).append(e.actionsContainerAnswered,this.isAnswered).toString()},t.prototype.getRemoveButtonCss=function(){return new O().append(this.cssClasses.removeFileButton).append(this.cssClasses.contextButton).toString()},t.prototype.getChooseFileCss=function(){var e=this.isAnswered;return new O().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 O().append("form-control").append(this.cssClasses.placeholderInput).toString()},Object.defineProperty(t.prototype,"fileRootCss",{get:function(){return new O().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 O().append(this.cssClasses.fileDecorator).append(this.cssClasses.onError,this.hasCssError()).append(this.cssClasses.fileDecoratorDrag,this.isDragging).toString()},t.prototype.onChange=function(e){if(E.isFileReaderAvailable()&&!(!e||!e.files||e.files.length<1)){for(var n=[],r=this.allowMultiple?e.files.length:1,o=0;o<r;o++)n.push(e.files[o]);e.value="",this.loadFiles(n)}},t.prototype.calcCssClasses=function(e){var n=i.prototype.calcCssClasses.call(this,e);return this.actionsContainer.cssClasses=e.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(){i.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 be(this.cssClasses.dragArea)},t.prototype.getFileListSelector=function(){return be(this.cssClasses.fileList)},Object.defineProperty(t.prototype,"renderedPages",{get:function(){return this._renderedPages},set:function(e){this.pagesAnimation.sync(e)},enumerable:!1,configurable:!0}),t.prototype.getPagesAnimationOptions=function(){var e=this;return{getEnterOptions:function(n){var r=e.cssClasses.page;return{cssClass:r?new O().append(r+"--enter-from-left",e.navigationDirection=="left"||e.navigationDirection=="left-delete").append(r+"--enter-from-right",e.navigationDirection=="right").toString():""}},getLeaveOptions:function(n){var r=e.cssClasses.page;return{cssClass:r?new O().append(r+"--leave-to-left",e.navigationDirection=="right").append(r+"--leave-to-right",e.navigationDirection=="left").toString():""}},getAnimatedElement:function(n){var r;return(r=e.rootElement)===null||r===void 0?void 0:r.querySelector("#"+n.id)},isAnimationEnabled:function(){return e.animationAllowed&&!!e.rootElement},getRerenderEvent:function(){return e.onElementRerendered}}},t.prototype.triggerResponsiveness=function(e){e&&(this.calculatedGapBetweenItems=void 0,this.calculatedItemWidth=void 0),i.prototype.triggerResponsiveness.call(this)},t.prototype.processResponsiveness=function(e,n){if(this._width=n,this.rootElement&&(!this.calculatedGapBetweenItems||!this.calculatedItemWidth)&&this.allowMultiple){var r=this.getFileListSelector(),o=r?this.rootElement.querySelector(this.getFileListSelector()):void 0;if(o){var s=o.querySelector(be(this.cssClasses.page));if(s){var a=s.querySelector(be(this.cssClasses.previewItem));this.calculatedGapBetweenItems=Math.ceil(Number.parseFloat(I.getComputedStyle(s).gap)),a&&(this.calculatedItemWidth=Math.ceil(Number.parseFloat(I.getComputedStyle(a).width)))}}}return this.calculatedGapBetweenItems&&this.calculatedItemWidth?(this.pageSize=this.calcAvailableItemsCount(n,this.calculatedItemWidth,this.calculatedGapBetweenItems),!0):!1},t.prototype.canDragDrop=function(){return!this.isInputReadOnly&&this.currentMode!=="camera"&&!this.isPlayingVideo},t.prototype.afterRenderQuestionElement=function(e){this.rootElement=e},t.prototype.beforeDestroyQuestionElement=function(e){this.rootElement=void 0},t.prototype.clearFilesCore=function(){if(this.rootElement){var e=this.rootElement.querySelectorAll("input")[0];e&&(e.value="")}this.clear()},t.prototype.doRemoveFile=function(e,n){var r=this;if(n.stopPropagation(),this.needConfirmRemoveFile){At({message:this.getConfirmRemoveMessage(e.name),funcOnYes:function(){r.clearFilesCore()},locale:this.getLocale(),rootElement:this.survey.rootElement,cssClass:this.cssClasses.confirmDialog});return}this.removeFileCore(e)},t.prototype.removeFileCore=function(e){var n=this.previewValue.indexOf(e);this.removeFileByContent(n===-1?e:this.value[n])},t.prototype.dispose=function(){this.cameraValue=void 0,this.closeVideoStream(),i.prototype.dispose.call(this)},ee([h()],t.prototype,"isDragging",void 0),ee([ae({})],t.prototype,"previewValue",void 0),ee([ae({})],t.prototype,"pages",void 0),ee([h({defaultValue:0,onSet:function(e,n){n.updateRenderedPages()}})],t.prototype,"indexToShow",void 0),ee([h({defaultValue:1,onSet:function(e,n){n.updateFileNavigator()}})],t.prototype,"pageSize",void 0),ee([h({defaultValue:!1})],t.prototype,"containsMultiplyFiles",void 0),ee([h()],t.prototype,"allowCameraAccess",void 0),ee([h({onSet:function(e,n){n.isLoadingFromJson||n.updateCurrentMode()}})],t.prototype,"sourceType",void 0),ee([h()],t.prototype,"canFlipCameraValue",void 0),ee([h({localizable:{defaultStr:"confirmRemoveFile"}})],t.prototype,"confirmRemoveMessage",void 0),ee([h({localizable:{defaultStr:"confirmRemoveAllFiles"}})],t.prototype,"confirmRemoveAllMessage",void 0),ee([h({localizable:{defaultStr:"noFileChosen"}})],t.prototype,"noFileChosenCaption",void 0),ee([h({localizable:{defaultStr:"chooseFileCaption"}})],t.prototype,"chooseButtonCaption",void 0),ee([h({localizable:{defaultStr:"replaceFileCaption"}})],t.prototype,"replaceButtonCaption",void 0),ee([h({localizable:{defaultStr:"removeFileCaption"}})],t.prototype,"removeFileCaption",void 0),ee([h({localizable:{defaultStr:"loadingFile"}})],t.prototype,"loadingFileTitle",void 0),ee([h({localizable:{defaultStr:"chooseFile"}})],t.prototype,"chooseFileTitle",void 0),ee([h({localizable:{defaultStr:"fileOrPhotoPlaceholder"}})],t.prototype,"fileOrPhotoPlaceholder",void 0),ee([h({localizable:{defaultStr:"photoPlaceholder"}})],t.prototype,"photoPlaceholder",void 0),ee([h({localizable:{defaultStr:"filePlaceholder"}})],t.prototype,"filePlaceholder",void 0),ee([h()],t.prototype,"locRenderedPlaceholderValue",void 0),ee([ae()],t.prototype,"_renderedPages",void 0),t}(Es);x.addClass("file",[{name:"showCommentArea:switch",layout:"row",visible:!0,category:"general"},{name:"showPreview:boolean",default:!0,visible:!1},"allowMultiple:boolean",{name:"allowImagesPreview:boolean",default:!0,dependsOn:"showPreview",visibleIf:function(i){return!!i.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 b.supportCreatorV2}},{name:"fileOrPhotoPlaceholder:text",serializationProperty:"locFileOrPhotoPlaceholder",category:"general",visibleIf:function(){return b.supportCreatorV2}},{name:"photoPlaceholder:text",serializationProperty:"locPhotoPlaceholder",category:"general",visibleIf:function(){return b.supportCreatorV2}},{name:"filePlaceholder:text",serializationProperty:"locFilePlaceholder",category:"general",visibleIf:function(){return b.supportCreatorV2}},{name:"allowCameraAccess:switch",category:"general",visible:!1}],function(){return new Zr("")},"question"),J.Instance.registerQuestion("file",function(i){return new Zr(i)});var As=function(){function i(t,e){this.fileQuestion=t,this.callback=e,this.loaded=[]}return i.prototype.load=function(t){var e=this,n=0;this.loaded=new Array(t.length),t.forEach(function(r,o){e.fileQuestion.survey&&e.fileQuestion.survey.downloadFile(e.fileQuestion,e.fileQuestion.name,r,function(s,a){!e.fileQuestion||!e.callback||(s!=="error"?(e.loaded[o]={content:a,name:r.name,type:r.type},n++,n===t.length&&e.callback(s,e.loaded)):e.callback("error",e.loaded))})})},i.prototype.dispose=function(){this.fileQuestion=void 0,this.callback=void 0},i}(),_c=function(){var i=function(t,e){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(n[o]=r[o])},i(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");i(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),ei=function(i){_c(t,i);function t(e){var n=i.call(this,e)||this,r=n.createLocalizableString("html",n);return r.onGetTextCallback=function(o){return n.survey&&!n.ignoreHtmlProgressing?n.processHtml(o):o},n}return t.prototype.getType=function(){return"html"},Object.defineProperty(t.prototype,"isCompositeQuestion",{get:function(){return!0},enumerable:!1,configurable:!0}),t.prototype.getProcessedText=function(e){return this.ignoreHtmlProgressing?e:i.prototype.getProcessedText.call(this,e)},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 O().append(this.cssClasses.root).append(this.cssClasses.nested,this.getIsNested()).toString()||void 0},enumerable:!1,configurable:!0}),t}(xn);x.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 ei("")},"nonvalue"),J.Instance.registerQuestion("html",function(i){return new ei(i)});var Bc=function(){var i=function(t,e){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(n[o]=r[o])},i(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");i(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),ti=function(i){Bc(t,i);function t(e){return i.call(this,e)||this}return 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 this.isMouseDown===!0&&!this.isOtherSelected},t.prototype.getConditionJson=function(e,n){e===void 0&&(e=null),n===void 0&&(n=null);var r=i.prototype.getConditionJson.call(this,e,n);return delete r.showClearButton,r},t.prototype.setNewComment=function(e){this.isMouseDown=!0,i.prototype.setNewComment.call(this,e),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,n=[];if(this.isDefaultV2Theme&&!this.isDesignMode){var r=new $({locTitleName:"clearCaption",id:"sv-clr-btn-"+this.id,action:function(){e.clearValue(!0)},innerCss:this.cssClasses.clearButton,visible:new te(function(){return e.canShowClearButton})});n.push(r)}return n},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}(kt);x.addClass("radiogroup",[{name:"showClearButton:boolean",default:!1},{name:"separateSpecialChoices",visible:!0},{name:"itemComponent",visible:!1,default:"survey-radiogroup-item"}],function(){return new ti("")},"checkboxbase"),J.Instance.registerQuestion("radiogroup",function(i){var t=new ti(i);return t.choices=J.DefaultChoices,t});var ni=function(){var i=function(t,e){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(n[o]=r[o])},i(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");i(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),ye=function(i,t,e,n){var r=arguments.length,o=r<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,e):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(i,t,e,n);else for(var a=i.length-1;a>=0;a--)(s=i[a])&&(o=(r<3?s(o):r>3?s(t,e,o):s(t,e))||o);return r>3&&o&&Object.defineProperty(t,e,o),o},Sn=function(i){ni(t,i);function t(e,n){n===void 0&&(n=null);var r=i.call(this)||this;return r.itemValue=e,r.locString=n,r.locText.onStringChanged.add(r.onStringChangedCallback.bind(r)),r.onStringChangedCallback(),r}return 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}),ye([h({defaultValue:""})],t.prototype,"highlight",void 0),ye([h({defaultValue:""})],t.prototype,"text",void 0),ye([h()],t.prototype,"style",void 0),t}(z),kc=function(i){ni(t,i);function t(e,n,r){var o=i.call(this,e,n)||this;return o.description=r,o}return t}(k),ri=function(i){ni(t,i);function t(e){var n=i.call(this,e)||this;return n._syncPropertiesChanging=!1,n.iCounter=0,n.createItemValues("rateValues"),n.createLocalizableString("ratingOptionsCaption",n,!1,!0),n.registerFunctionOnPropertiesValueChanged(["rateMin","rateMax","minRateDescription","maxRateDescription","rateStep","displayRateDescriptionsAsExtremeItems"],function(){return n.resetRenderedItems()}),n.registerFunctionOnPropertiesValueChanged(["rateType"],function(){n.setIconsToRateValues(),n.resetRenderedItems(),n.updateRateCount()}),n.registerFunctionOnPropertiesValueChanged(["rateValues"],function(){n.setIconsToRateValues(),n.resetRenderedItems()}),n.registerSychProperties(["rateValues"],function(){n.autoGenerate=n.rateValues.length==0,n.setIconsToRateValues(),n.resetRenderedItems()}),n.registerFunctionOnPropertiesValueChanged(["rateColorMode","scaleColorMode"],function(){n.updateColors(n.survey.themeVariables)}),n.registerFunctionOnPropertiesValueChanged(["displayMode"],function(){n.updateRenderAsBasedOnDisplayMode(!0)}),n.registerSychProperties(["autoGenerate"],function(){!n.autoGenerate&&n.rateValues.length===0&&n.setPropertyValue("rateValues",n.visibleRateValues),n.autoGenerate&&(n.rateValues.splice(0,n.rateValues.length),n.updateRateMax()),n.resetRenderedItems()}),n.createLocalizableString("minRateDescription",n,!0).onStringChanged.add(function(r,o){n.hasMinRateDescription=!r.isEmpty}),n.createLocalizableString("maxRateDescription",n,!0).onStringChanged.add(function(r,o){n.hasMaxRateDescription=!r.isEmpty}),n.initPropertyDependencies(),n}return t.prototype.setIconsToRateValues=function(){var e=this;this.rateType=="smileys"&&this.rateValues.map(function(n){return n.icon=e.getItemSmiley(n)})},t.prototype.endLoadingFromJson=function(){i.prototype.endLoadingFromJson.call(this),this.jsonObj.rateMin!==void 0&&this.jsonObj.rateCount!==void 0&&this.jsonObj.rateMax===void 0&&this.updateRateMax(),this.jsonObj.rateMax!==void 0&&this.jsonObj.rateCount!==void 0&&this.jsonObj.rateMin===void 0&&this.updateRateMin(),this.jsonObj.autoGenerate===void 0&&this.jsonObj.rateValues!==void 0&&(this.autoGenerate=!this.jsonObj.rateValues.length),this.updateRateCount(),this.setIconsToRateValues()},t.prototype.registerSychProperties=function(e,n){var r=this;this.registerFunctionOnPropertiesValueChanged(e,function(){r._syncPropertiesChanging||(r._syncPropertiesChanging=!0,n(),r._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;this.useRateValues()?e=this.rateValues.length:e=Math.trunc((this.rateMax-this.rateMin)/(this.rateStep||1))+1,e>10&&this.rateDisplayMode=="smileys"&&(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())e.rateMax=e.rateMin+e.rateStep*(e.rateCount-1);else if(e.rateCount<e.rateValues.length){if(e.rateCount>=10&&e.rateDisplayMode=="smileys")return;e.rateValues.splice(e.rateCount,e.rateValues.length-e.rateCount)}else for(var n=e.rateValues.length;n<e.rateCount;n++)e.rateValues.push(new k(oe("choices_Item")+(n+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=this,n;return!this.readOnly&&((n=this.visibleRateValues.filter(function(r){return r.value==e.value})[0])===null||n===void 0?void 0:n.locText)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"rateValues",{get:function(){return this.getPropertyValue("rateValues")},set:function(e){this.setPropertyValue("rateValues",e)},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){if(this.colorMode==="monochrome"||!I.isAvailable()||t.colorsCalculated)return;function n(o){var s=getComputedStyle(I.getDocumentElement());return s.getPropertyValue&&s.getPropertyValue(o)}function r(o,s){var a=!!e&&e[o];if(a||(a=n(s)),!a)return null;var l=I.createElement("canvas");if(!l)return null;var u=l.getContext("2d");u.fillStyle=a,u.fillStyle=="#000000"&&(u.fillStyle=n(s));var d=u.fillStyle;if(d.startsWith("rgba"))return d.substring(5,d.length-1).split(",").map(function(V){return+V.trim()});var v=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(d);return v?[parseInt(v[1],16),parseInt(v[2],16),parseInt(v[3],16),1]:null}t.badColor=r("--sjs-special-red","--sd-rating-bad-color"),t.normalColor=r("--sjs-special-yellow","--sd-rating-normal-color"),t.goodColor=r("--sjs-special-green","--sd-rating-good-color"),t.badColorLight=r("--sjs-special-red-light","--sd-rating-bad-color-light"),t.normalColorLight=r("--sjs-special-yellow-light","--sd-rating-normal-color-light"),t.goodColorLight=r("--sjs-special-green-light","--sd-rating-good-color-light"),this.colorsCalculated=!0,this.resetRenderedItems()},t.prototype.getDisplayValueCore=function(e,n){if(!this.useRateValues)return i.prototype.getDisplayValueCore.call(this,e,n);var r=k.getTextOrHtmlByValue(this.visibleRateValues,n);return r||n},Object.defineProperty(t.prototype,"visibleRateValues",{get:function(){return this.renderedRateItems.map(function(e){return e.itemValue})},enumerable:!1,configurable:!0}),t.prototype.supportEmptyValidation=function(){return this.renderAs==="dropdown"},t.prototype.itemValuePropertyChanged=function(e,n,r,o){!this.useRateValues()&&o!==void 0&&(this.autoGenerate=!1),i.prototype.itemValuePropertyChanged.call(this,e,n,r,o)},t.prototype.runConditionCore=function(e,n){i.prototype.runConditionCore.call(this,e,n),this.runRateItesmCondition(e,n)},t.prototype.runRateItesmCondition=function(e,n){var r;if(this.useRateValues()){var o=!1;if(!((r=this.survey)===null||r===void 0)&&r.areInvisibleElementsShowing?this.rateValues.forEach(function(a){o=o||!a.isVisible,a.setIsVisible(a,!0)}):o=k.runConditionsForItems(this.rateValues,void 0,void 0,e,n,!0),o&&(this.resetRenderedItems(),!this.isEmpty()&&!this.isReadOnly)){var s=k.getItemByValue(this.rateValues,this.value);s&&!s.isVisible&&this.clearValue()}}},t.prototype.getRateValuesCore=function(){if(!this.useRateValues())return this.createRateValues();var e=new Array;return this.rateValues.forEach(function(n){n.isVisible&&e.push(n)}),e},t.prototype.calculateRateValues=function(){var e=this.getRateValuesCore();return this.rateType=="smileys"&&e.length>10&&(e=e.slice(0,10)),e},t.prototype.calculateRenderedRateItems=function(){var e=this,n=this.calculateRateValues();return n.map(function(r,o){var s=null;return e.displayRateDescriptionsAsExtremeItems&&(o==0&&(s=new Sn(r,e.minRateDescription&&e.locMinRateDescription||r.locText)),o==n.length-1&&(s=new Sn(r,e.maxRateDescription&&e.locMaxRateDescription||r.locText))),s||(s=new Sn(r)),s})},t.prototype.calculateVisibleChoices=function(){var e=this,n=this.calculateRateValues();return n.map(function(r,o){return e.getRatingItemValue(r,o)})},t.prototype.resetRenderedItems=function(){if(this.autoGenerate){var e=this.getRateValuesCore();this.rateMax=e[e.length-1].value}Array.isArray(this.getPropertyValueWithoutDefault("renderedRateItems"))&&this.setArrayPropertyDirectly("renderedRateItems",this.calculateRenderedRateItems()),Array.isArray(this.getPropertyValueWithoutDefault("visibleChoices"))&&this.setArrayPropertyDirectly("visibleChoices",this.calculateVisibleChoices)},Object.defineProperty(t.prototype,"renderedRateItems",{get:function(){var e=this;return this.getPropertyValue("renderedRateItems",void 0,function(){return e.calculateRenderedRateItems()})},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"visibleChoices",{get:function(){var e=this;return this.getPropertyValue("visibleChoices",void 0,function(){return e.calculateVisibleChoices()})},enumerable:!1,configurable:!0}),t.prototype.createRateValues=function(){for(var e=[],n=this.rateMin,r=this.rateStep;n<=this.rateMax&&e.length<b.ratingMaximumRateValueCount;){var o=new k(n);o.locOwner=this,o.ownerPropertyName="rateValues",e.push(o),n=this.correctValue(n+r,r)}return e},t.prototype.getRatingItemValue=function(e,n){if(!e)return null;var r=e.value,o;r===this.rateMin&&(o=this.minRateDescription&&this.locMinRateDescription),(r===this.rateMax||n===b.ratingMaximumRateValueCount)&&(o=this.maxRateDescription&&this.locMaxRateDescription);var s=new kc(r,e.text,o);return s.locOwner=e.locOwner,s.ownerPropertyName=e.ownerPropertyName,s},t.prototype.correctValue=function(e,n){if(!e||Math.round(e)==e)return e;for(var r=0;Math.round(n)!=n;)n*=10,r++;return parseFloat(e.toFixed(r))},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 this.isMouseDown===!0||this.renderAs==="dropdown"},t.prototype.supportOther=function(){return!1},t.prototype.getPlainDataCalculatedValue=function(e){var n=i.prototype.getPlainDataCalculatedValue.call(this,e);if(n!==void 0||!this.useRateValues||this.isEmpty())return n;var r=k.getItemByValue(this.visibleRateValues,this.value);return r?r[e]:void 0},Object.defineProperty(t.prototype,"minRateDescription",{get:function(){return this.getLocalizableStringText("minRateDescription")},set:function(e){this.setLocalizableStringText("minRateDescription",e)},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)},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||this.renderAs==="dropdown")&&(this.renderAs="default"):(e||this.displayMode!=="auto")&&(this.renderAs=this.displayMode==="dropdown"?"dropdown":"default")},t.prototype.onSurveyLoad=function(){i.prototype.onSurveyLoad.call(this),this.renderAs==="dropdown"&&this.displayMode==="auto"?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 this.rateType=="stars"},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isSmiley",{get:function(){return this.rateType=="smileys"},enumerable:!1,configurable:!0}),t.prototype.getDefaultItemComponent=function(){return this.renderAs=="dropdown"?"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 n=k.getItemByValue(this.rateValues,e);return n?n.value:e}return isNaN(e)?e:parseFloat(e)},t.prototype.setValueFromClick=function(e){if(!this.isReadOnlyAttr){this.value===(typeof this.value=="string"?e:parseFloat(e))?this.clearValue(!0):this.value=e;for(var n=0;n<this.renderedRateItems.length;n++)this.renderedRateItems[n].highlight="none"}},t.prototype.onItemMouseIn=function(e){if(!ne&&!(this.isReadOnly||!e.itemValue.isEnabled||this.isDesignMode)){var n=!0,r=this.value!=null;if(this.rateType!=="stars"){e.highlight="highlighted";return}for(var o=0;o<this.renderedRateItems.length;o++)this.renderedRateItems[o].highlight=n&&!r&&"highlighted"||!n&&r&&"unhighlighted"||"none",this.renderedRateItems[o]==e&&(n=!1),this.renderedRateItems[o].itemValue.value==this.value&&(r=!1)}},t.prototype.onItemMouseOut=function(e){ne||this.renderedRateItems.forEach(function(n){return n.highlight="none"})},Object.defineProperty(t.prototype,"itemSmallMode",{get:function(){return this.inMatrixMode&&b.matrix.rateSize=="small"},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"ratingRootCss",{get:function(){var e=(this.displayMode=="buttons"||this.survey&&this.survey.isDesignMode)&&this.cssClasses.rootWrappable?this.cssClasses.rootWrappable:"",n="";return(this.hasMaxLabel||this.hasMinLabel)&&(this.rateDescriptionLocation=="top"&&(n=this.cssClasses.rootLabelsTop),this.rateDescriptionLocation=="bottom"&&(n=this.cssClasses.rootLabelsBottom),this.rateDescriptionLocation=="topBottom"&&(n=this.cssClasses.rootLabelsDiagonal)),new O().append(this.cssClasses.root).append(e).append(n).append(this.cssClasses.itemSmall,this.itemSmallMode&&this.rateType!="labels").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 n=["terrible","very-poor","poor","not-good","average","normal","good","very-good","excellent","perfect"],r=["very-good","not-good","normal","good","average","excellent","poor","perfect","very-poor","terrible"],o=this.useRateValues()?this.rateValues.length:this.rateMax-this.rateMin+1,s=r.slice(0,o),a=n.filter(function(l){return s.indexOf(l)!=-1});return this.useRateValues()?a[this.rateValues.indexOf(e)]:a[e.value-this.rateMin]},t.prototype.getItemSmileyIconName=function(e){return"icon-"+this.getItemSmiley(e)},t.prototype.getItemClassByText=function(e,n){return this.getItemClass(e)},t.prototype.getRenderedItemColor=function(e,n){var r=n?t.badColorLight:t.badColor,o=n?t.goodColorLight:t.goodColor,s=(this.rateCount-1)/2,a=n?t.normalColorLight:t.normalColor;if(e<s?o=a:(r=a,e-=s),!r||!o)return null;for(var l=[0,0,0,0],u=0;u<4;u++)l[u]=r[u]+(o[u]-r[u])*e/s,u<3&&(l[u]=Math.trunc(l[u]));return"rgba("+l[0]+", "+l[1]+", "+l[2]+", "+l[3]+")"},t.prototype.getItemStyle=function(e,n){if(n===void 0&&(n="none"),this.scaleColorMode==="monochrome"&&this.rateColorMode=="default"||this.isPreviewStyle||this.isReadOnlyStyle)return{};var r=this.visibleRateValues.indexOf(e),o=this.getRenderedItemColor(r,!1),s=n=="highlighted"&&this.scaleColorMode==="colored"&&this.getRenderedItemColor(r,!0);return s?{"--sd-rating-item-color":o,"--sd-rating-item-color-light":s}:{"--sd-rating-item-color":o}},t.prototype.getItemClass=function(e,n){var r=this,o=this.value==e.value;this.isStar&&(this.useRateValues()?o=this.rateValues.indexOf(this.rateValues.filter(function(ct){return ct.value==r.value})[0])>=this.rateValues.indexOf(e):o=this.value>=e.value);var s=this.isReadOnly||!e.isEnabled,a=!s&&this.value!=e.value&&!(this.survey&&this.survey.isDesignMode),l=this.renderedRateItems.filter(function(ct){return ct.itemValue==e})[0],u=this.isStar&&(l==null?void 0:l.highlight)=="highlighted",d=this.isStar&&(l==null?void 0:l.highlight)=="unhighlighted",v=this.cssClasses.item,V=this.cssClasses.selected,T=this.cssClasses.itemDisabled,R=this.cssClasses.itemReadOnly,N=this.cssClasses.itemPreview,j=this.cssClasses.itemHover,A=this.cssClasses.itemOnError,Q=null,re=null,ie=null,xe=null,Re=null;this.isStar&&(v=this.cssClasses.itemStar,V=this.cssClasses.itemStarSelected,T=this.cssClasses.itemStarDisabled,R=this.cssClasses.itemStarReadOnly,N=this.cssClasses.itemStarPreview,j=this.cssClasses.itemStarHover,A=this.cssClasses.itemStarOnError,Q=this.cssClasses.itemStarHighlighted,re=this.cssClasses.itemStarUnhighlighted,Re=this.cssClasses.itemStarSmall),this.isSmiley&&(v=this.cssClasses.itemSmiley,V=this.cssClasses.itemSmileySelected,T=this.cssClasses.itemSmileyDisabled,R=this.cssClasses.itemSmileyReadOnly,N=this.cssClasses.itemSmileyPreview,j=this.cssClasses.itemSmileyHover,A=this.cssClasses.itemSmileyOnError,Q=this.cssClasses.itemSmileyHighlighted,ie=this.cssClasses.itemSmileyScaleColored,xe=this.cssClasses.itemSmileyRateColored,Re=this.cssClasses.itemSmileySmall);var wt=!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 O().append(v).append(V,o).append(T,this.isDisabledStyle).append(R,this.isReadOnlyStyle).append(N,this.isPreviewStyle).append(j,a).append(Q,u).append(ie,this.scaleColorMode=="colored").append(xe,this.rateColorMode=="scale"&&o).append(re,d).append(A,this.hasCssError()).append(Re,this.itemSmallMode).append(this.cssClasses.itemFixedSize,wt).toString()},t.prototype.getControlClass=function(){return this.isEmpty(),new O().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,"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"),n=this.getPropertyValue("rateMax"),r=this.getPropertyValue("rateMin");return this.displayMode!="dropdown"&&!!(this.hasMinRateDescription||this.hasMaxRateDescription||e&&(n-r)/e>9)},t.prototype.supportResponsiveness=function(){return!0},t.prototype.onBeforeSetCompactRenderer=function(){this.dropdownListModelValue||(this.dropdownListModelValue=new Cn(this),this.ariaExpanded="false")},t.prototype.getCompactRenderAs=function(){return this.displayMode=="buttons"?"default":"dropdown"},t.prototype.getDesktopRenderAs=function(){return this.displayMode=="dropdown"?"dropdown":"default"},Object.defineProperty(t.prototype,"dropdownListModel",{get:function(){return this.renderAs==="dropdown"&&this.onBeforeSetCompactRenderer(),this.dropdownListModelValue},set:function(e){this.dropdownListModelValue=e,this.ariaExpanded=e?"false":void 0,this.updateElementCss()},enumerable:!1,configurable:!0}),t.prototype.onBlurCore=function(e){var n;(n=this.dropdownListModel)===null||n===void 0||n.onBlur(e),i.prototype.onBlurCore.call(this,e)},t.prototype.updateCssClasses=function(e,n){i.prototype.updateCssClasses.call(this,e,n),lr(e,n)},t.prototype.calcCssClasses=function(e){var n=i.prototype.calcCssClasses.call(this,e);return this.dropdownListModelValue&&this.dropdownListModelValue.updateCssClasses(n.popup,n.list),n},t.prototype.themeChanged=function(e){this.colorsCalculated=!1,this.updateColors(e.cssVariables)},t.prototype.setSurveyImpl=function(e,n){i.prototype.setSurveyImpl.call(this,e,n),this.survey&&(this.updateColors(this.survey.themeVariables),this.updateRenderAsBasedOnDisplayMode())},t.prototype.dispose=function(){i.prototype.dispose.call(this),this.dropdownListModelValue&&(this.dropdownListModelValue.dispose(),this.dropdownListModelValue=void 0)},t.colorsCalculated=!1,ye([h({defaultValue:!1})],t.prototype,"inputHasValue",void 0),ye([h()],t.prototype,"autoGenerate",void 0),ye([h()],t.prototype,"rateCount",void 0),ye([h({defaultValue:!1})],t.prototype,"hasMinRateDescription",void 0),ye([h({defaultValue:!1})],t.prototype,"hasMaxRateDescription",void 0),ye([h()],t.prototype,"displayRateDescriptionsAsExtremeItems",void 0),ye([h()],t.prototype,"displayMode",void 0),ye([h()],t.prototype,"rateDescriptionLocation",void 0),ye([h()],t.prototype,"rateType",void 0),ye([h()],t.prototype,"scaleColorMode",void 0),ye([h()],t.prototype,"rateColorMode",void 0),t}(ue);x.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(i){return i.rateDisplayMode=="smileys"},visibleIndex:2},{name:"rateColorMode",category:"rateValues",default:"scale",choices:["default","scale"],visibleIf:function(i){return i.rateDisplayMode=="smileys"&&i.scaleColorMode=="monochrome"},visibleIndex:3},{name:"autoGenerate",category:"rateValues",default:!0,choices:[!0,!1],visibleIndex:5},{name:"rateCount:number",default:5,category:"rateValues",visibleIndex:4,onSettingValue:function(i,t){return t<2?2:t>b.ratingMaximumRateValueCount&&t>i.rateValues.length?b.ratingMaximumRateValueCount:t>10&&i.rateDisplayMode=="smileys"?10:t}},{name:"rateValues:itemvalue[]",baseValue:function(){return oe("choices_Item")},category:"rateValues",visibleIf:function(i){return!i.autoGenerate},visibleIndex:6},{name:"rateMin:number",default:1,onSettingValue:function(i,t){return t>i.rateMax-i.rateStep?i.rateMax-i.rateStep:t},visibleIf:function(i){return!!i.autoGenerate},visibleIndex:7},{name:"rateMax:number",default:5,onSettingValue:function(i,t){return t<i.rateMin+i.rateStep?i.rateMin+i.rateStep:t},visibleIf:function(i){return!!i.autoGenerate},visibleIndex:8},{name:"rateStep:number",default:1,minValue:.1,onSettingValue:function(i,t){return t<=0&&(t=1),t>i.rateMax-i.rateMin&&(t=i.rateMax-i.rateMin),t},visibleIf:function(i){return!!i.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(i){return i.rateType=="labels"}},{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(i){return i?(i.getOriginalObj&&(i=i.getOriginalObj()),i.getDefaultItemComponent()):"sv-rating-item"}}],function(){return new ri("")},"question"),J.Instance.registerQuestion("rating",function(i){return new ri(i)});var qc=function(){var i=function(t,e){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(n[o]=r[o])},i(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");i(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),Pt=function(i,t,e,n){var r=arguments.length,o=r<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,e):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(i,t,e,n);else for(var a=i.length-1;a>=0;a--)(s=i[a])&&(o=(r<3?s(o):r>3?s(t,e,o):s(t,e))||o);return r>3&&o&&Object.defineProperty(t,e,o),o},ii=function(i){qc(t,i);function t(e){var n=i.call(this,e)||this;return n.createLocalizableString("labelFalse",n,!0,"booleanUncheckedLabel"),n.createLocalizableString("labelTrue",n,!0,"booleanCheckedLabel"),n}return t.prototype.getType=function(){return"boolean"},t.prototype.isLayoutTypeSupported=function(e){return!0},t.prototype.supportGoNextPageAutomatic=function(){return this.renderAs!=="checkbox"},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=e==!0?this.getValueTrue():this.getValueFalse(),this.booleanValueRendered=e)},Object.defineProperty(t.prototype,"defaultValue",{get:function(){return this.getPropertyValue("defaultValue")},set:function(e){e===!0&&(e="true"),e===!1&&(e="false"),this.setPropertyValue("defaultValue",e),this.updateValueWithDefaults()},enumerable:!1,configurable:!0}),t.prototype.getDefaultValue=function(){var e=this.defaultValue;if(!(e==="indeterminate"||e===void 0||e===null))return e=="true"?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(e){i.prototype.beforeDestroyQuestionElement.call(this,e),this.leftAnswerElement=void 0},Object.defineProperty(t.prototype,"isLabelRendered",{get:function(){return this.titleLocation==="hidden"},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 this.booleanValue!==null&&this.booleanValue!==void 0},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 this.valueTrue!==void 0?this.valueTrue:!0},t.prototype.getValueFalse=function(){return this.valueFalse!==void 0?this.valueFalse:!1},t.prototype.setDefaultValue=function(){this.isDefaultValueSet("true",this.valueTrue)&&this.setBooleanValue(!0),this.isDefaultValueSet("false",this.valueFalse)&&this.setBooleanValue(!1);var e=this.defaultValue;(e==="indeterminate"||e===null||e===void 0)&&this.setBooleanValue(void 0)},t.prototype.isDefaultValueSet=function(e,n){return this.defaultValue==e||n!==void 0&&this.defaultValue===n},t.prototype.getDisplayValueCore=function(e,n){return n==this.getValueTrue()?this.locLabelTrue.textOrHtml:this.locLabelFalse.textOrHtml},t.prototype.getItemCssValue=function(e){return new O().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 O().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(e,n){n===void 0&&(n=!1),i.prototype.updateValueFromSurvey.call(this,e,n)},t.prototype.onValueChanged=function(){i.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(){if(this.booleanValue===!0)return this.locLabelTrue;if(this.booleanValue===!1)return this.locLabelFalse},t.prototype.setQuestionValue=function(e,n){n===void 0&&(n=!0),e==="true"&&this.valueTrue!=="true"&&(e=!0),e==="false"&&this.valueFalse!=="false"&&(e=!1),(e==="indeterminate"||e===null)&&(e=void 0),i.prototype.setQuestionValue.call(this,e,n)},t.prototype.onLabelClick=function(e,n){return this.allowClick&&(ho(e),this.booleanValue=n),!0},t.prototype.calculateBooleanValueByEvent=function(e,n){var r=!1;I.isAvailable()&&(r=I.getComputedStyle(e.target).direction=="rtl"),this.booleanValue=r?!n:n},t.prototype.onSwitchClickModel=function(e){if(this.allowClick){ho(e);var n=e.offsetX/e.target.offsetWidth>.5;this.calculateBooleanValueByEvent(e,n);return}return!0},t.prototype.onKeyDownCore=function(e){return(e.key==="ArrowLeft"||e.key==="ArrowRight")&&(e.stopPropagation(),this.calculateBooleanValueByEvent(e,e.key==="ArrowRight")),!0},t.prototype.getRadioItemClass=function(e,n){var r=void 0;return e.radioItem&&(r=e.radioItem),e.radioItemChecked&&n===this.booleanValue&&(r=(r?r+" ":"")+e.radioItemChecked),this.isDisabledStyle&&(r+=" "+e.radioItemDisabled),this.isReadOnlyStyle&&(r+=" "+e.radioItemReadOnly),this.isPreviewStyle&&(r+=" "+e.radioItemPreview),r},t.prototype.supportResponsiveness=function(){return!0},t.prototype.getCompactRenderAs=function(){return"radio"},t.prototype.createActionContainer=function(e){return i.prototype.createActionContainer.call(this,this.renderAs!=="checkbox")},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}),Pt([h()],t.prototype,"booleanValueRendered",void 0),Pt([h()],t.prototype,"showTitle",void 0),Pt([h({localizable:!0})],t.prototype,"label",void 0),Pt([h({defaultValue:!1})],t.prototype,"swapOrder",void 0),Pt([h()],t.prototype,"valueTrue",void 0),Pt([h()],t.prototype,"valueFalse",void 0),t}(ue);x.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 ii("")},"question"),J.Instance.registerQuestion("boolean",function(i){return new ii(i)});var Ds=function(){var i=function(t,e){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(n[o]=r[o])},i(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");i(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),Me=function(i,t,e,n){var r=arguments.length,o=r<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,e):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(i,t,e,n);else for(var a=i.length-1;a>=0;a--)(s=i[a])&&(o=(r<3?s(o):r>3?s(t,e,o):s(t,e))||o);return r>3&&o&&Object.defineProperty(t,e,o),o},Ls=function(i){Ds(t,i);function t(e,n,r){n===void 0&&(n=null),r===void 0&&(r="imageitemvalue");var o=i.call(this,e,n,r)||this;return o.typeName=r,o.createLocalizableString("imageLink",o,!1),o}return 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,n){return this.locOwner?this.locOwner.getMarkdownHtml(e,n):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 Ht&&this.locOwner.contentMode=="video"?this.videoNotLoaded:this.imageNotLoaded},set:function(e){this.locOwner instanceof Ht&&this.locOwner.contentMode=="video"?this.videoNotLoaded=e:this.imageNotLoaded=e},enumerable:!1,configurable:!0}),Me([h({defaultValue:!1})],t.prototype,"videoNotLoaded",void 0),Me([h({defaultValue:!1})],t.prototype,"imageNotLoaded",void 0),t}(k),Ht=function(i){Ds(t,i);function t(e){var n=i.call(this,e)||this;return n.isResponsiveValue=!1,n.onContentLoaded=function(r,o){r.contentNotLoaded=!1;var s=o.target;n.contentMode=="video"?r.aspectRatio=s.videoWidth/s.videoHeight:r.aspectRatio=s.naturalWidth/s.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 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?P.isArrayContainsEqual(this.value,this.correctAnswer):i.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 n=this.value,r=e;if(this.isValueEmpty(n)||!r.imageLink||r.contentNotLoaded)return!1;if(!this.multiSelect)return this.isTwoValueEquals(n,e.value);if(!Array.isArray(n))return!1;for(var o=0;o<n.length;o++)if(this.isTwoValueEquals(n[o],e.value))return!0;return!1},t.prototype.getItemEnabled=function(e){var n=e;return!n.imageLink||n.contentNotLoaded?!1:i.prototype.getItemEnabled.call(this,e)},t.prototype.clearIncorrectValues=function(){if(this.multiSelect){var e=this.value;if(!e)return;if(!Array.isArray(e)||e.length==0){this.clearValue(!0);return}for(var n=[],r=0;r<e.length;r++)this.hasUnknownValue(e[r],!0)||n.push(e[r]);if(n.length==e.length)return;n.length==0?this.clearValue(!0):this.value=n}else i.prototype.clearIncorrectValues.call(this)},t.prototype.getDisplayValueCore=function(e,n){return!this.multiSelect&&!Array.isArray(n)?i.prototype.getDisplayValueCore.call(this,e,n):this.getDisplayArrayValue(e,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(){i.prototype.endLoadingFromJson.call(this),!this.isDesignMode&&this.multiSelect&&(this.createNewArray("renderedValue"),this.createNewArray("value")),this.calcIsResponsive()},t.prototype.getValueCore=function(){var e=i.prototype.getValueCore.call(this);return e!==void 0?e:this.multiSelect?[]:e},t.prototype.convertValToArrayForMultSelect=function(e){return!this.multiSelect||this.isValueEmpty(e)||Array.isArray(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,"imageScale",{get:function(){return this.survey?this.survey.widthScale/100:1},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"renderedImageHeight",{get:function(){var e=this.isResponsive?Math.floor(this.responsiveImageHeight):this.imageHeight*this.imageScale;return e||150*this.imageScale},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(){var e=this.isResponsive?Math.floor(this.responsiveImageWidth):this.imageWidth*this.imageScale;return e||200*this.imageScale},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),e==="video"&&(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,n){this.addNewItemToVisibleChoices(e,n)},t.prototype.getSelectBaseRootCss=function(){return new O().append(i.prototype.getSelectBaseRootCss.call(this)).append(this.cssClasses.rootColumn,this.getCurrentColCount()==1).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(n){return e[n]!==void 0&&e[n]!==null})},enumerable:!1,configurable:!0}),t.prototype.calcIsResponsive=function(){this.isResponsiveValue=this.exactSizesAreEmpty},t.prototype.getObservedElementSelector=function(){return be(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 this.responsiveColCount===void 0||this.colCount===0?this.colCount:this.responsiveColCount},t.prototype.processResponsiveness=function(e,n){this._width=n=Math.floor(n);var r=function(Q,re,ie){var xe=Math.floor(Q/(re+ie));return(xe+1)*(re+ie)-ie<=Q&&xe++,xe};if(this.isResponsive){var o=this.choices.length+(this.isDesignMode?1:0),s=(this.gapBetweenItems||0)*this.imageScale,a=this.minImageWidth*this.imageScale,l=this.maxImageWidth*this.imageScale,u=this.maxImageHeight*this.imageScale,d=this.minImageHeight*this.imageScale,v=this.colCount,V;if(v===0)if((s+a)*o-s>n){var T=r(n,a,s);V=Math.floor((n-s*(T-1))/T)}else V=Math.floor((n-s*(o-1))/o);else{var R=r(n,a,s);R<v?(this.responsiveColCount=R>=1?R:1,v=this.responsiveColCount):this.responsiveColCount=v,V=Math.floor((n-s*(v-1))/v)}V=Math.max(a,Math.min(V,l));var N=Number.MIN_VALUE;this.choices.forEach(function(Q){var re=V/Q.aspectRatio;N=re>N?re:N}),N>u?N=u:N<d&&(N=d);var j=this.responsiveImageWidth,A=this.responsiveImageHeight;return this.responsiveImageWidth=V,this.responsiveImageHeight=N,j!==this.responsiveImageWidth||A!==this.responsiveImageHeight}return!1},t.prototype.triggerResponsiveness=function(e){e===void 0&&(e=!0),e&&this.reCalcGapBetweenItemsCallback&&this.reCalcGapBetweenItemsCallback(),i.prototype.triggerResponsiveness.call(this,e)},t.prototype.afterRender=function(e){var n=this;i.prototype.afterRender.call(this,e);var r=this.getObservedElementSelector(),o=e&&r?e.querySelector(r):void 0;o&&(this.reCalcGapBetweenItemsCallback=function(){n.gapBetweenItems=Math.ceil(Number.parseFloat(I.getComputedStyle(o).gap))||16},this.reCalcGapBetweenItemsCallback())},Me([h({})],t.prototype,"responsiveImageHeight",void 0),Me([h({})],t.prototype,"responsiveImageWidth",void 0),Me([h({})],t.prototype,"isResponsiveValue",void 0),Me([h({})],t.prototype,"maxImageWidth",void 0),Me([h({})],t.prototype,"minImageWidth",void 0),Me([h({})],t.prototype,"maxImageHeight",void 0),Me([h({})],t.prototype,"minImageHeight",void 0),Me([h({})],t.prototype,"responsiveColCount",void 0),t}(kt);x.addClass("imageitemvalue",[{name:"imageLink:file",serializationProperty:"locImageLink"}],function(i){return new Ls(i)},"itemvalue"),x.addClass("responsiveImageSize",[],void 0,"number"),x.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 b.supportCreatorV2}},{name:"minImageHeight:responsiveImageSize",default:133,minValue:0,visibleIf:function(){return b.supportCreatorV2}},{name:"maxImageWidth:responsiveImageSize",default:400,minValue:0,visibleIf:function(){return b.supportCreatorV2}},{name:"maxImageHeight:responsiveImageSize",default:266,minValue:0,visibleIf:function(){return b.supportCreatorV2}}],function(){return new Ht("")},"checkboxbase"),x.addProperty("imagepicker",{name:"showLabel:boolean",default:!1}),x.addProperty("imagepicker",{name:"colCount:number",default:0,choices:[0,1,2,3,4,5]}),x.addProperty("imagepicker",{name:"multiSelect:boolean",default:!1}),x.addProperty("imagepicker",{name:"choices:imageitemvalue[]"}),J.Instance.registerQuestion("imagepicker",function(i){var t=new Ht(i);return t});var Qc=function(){var i=function(t,e){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(n[o]=r[o])},i(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");i(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),zc=function(i,t,e,n){var r=arguments.length,o=r<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,e):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(i,t,e,n);else for(var a=i.length-1;a>=0;a--)(s=i[a])&&(o=(r<3?s(o):r>3?s(t,e,o):s(t,e))||o);return r>3&&o&&Object.defineProperty(t,e,o),o},Ms=[".mp4",".mov",".wmv",".flv",".avi",".mkv"],Hc="https://www.youtube.com/",js="embed",oi=function(i){Qc(t,i);function t(e){var n=i.call(this,e)||this,r=n.createLocalizableString("imageLink",n,!1);return r.onGetTextCallback=function(o){return Uc(o,n.contentMode=="youtube")},n.createLocalizableString("altText",n,!1),n.registerPropertyChangedHandlers(["contentMode","imageLink"],function(){return n.calculateRenderedMode()}),n}return t.prototype.getType=function(){return"image"},Object.defineProperty(t.prototype,"isCompositeQuestion",{get:function(){return!1},enumerable:!1,configurable:!0}),t.prototype.onSurveyLoad=function(){i.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?on(this.imageHeight):void 0},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"renderedHeight",{get:function(){return this.imageHeight?nt(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?on(this.imageWidth):void 0},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"renderedWidth",{get:function(){return this.imageWidth?nt(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),e==="video"&&(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"),n=this.getPropertyByName("imageWidth"),r=e.isDefaultValue(this.imageHeight)&&n.isDefaultValue(this.imageWidth);return new O().append(this.cssClasses.image).append(this.cssClasses.adaptive,r).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(){this.contentMode!=="auto"?this.setRenderedMode(this.contentMode):this.isYoutubeVideo()?this.setRenderedMode("youtube"):this.isVideo()?this.setRenderedMode("video"):this.setRenderedMode("image")},t.prototype.isYoutubeVideo=function(){return P.isUrlYoutubeVideo(this.imageLink)},t.prototype.isVideo=function(){var e=this.imageLink;if(!e)return!1;e=e.toLowerCase();for(var n=0;n<Ms.length;n++)if(e.endsWith(Ms[n]))return!0;return!1},zc([h({defaultValue:!1})],t.prototype,"contentNotLoaded",void 0),t}(xn);function Uc(i,t){if(!i||!P.isUrlYoutubeVideo(i))return t?"":i;var e=i.toLocaleLowerCase();if(e.indexOf(js)>-1)return i;for(var n="",r=i.length-1;r>=0&&!(i[r]==="="||i[r]==="/");r--)n=i[r]+n;return Hc+js+"/"+n}x.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 oi("")},"nonvalue"),J.Instance.registerQuestion("image",function(i){return new oi(i)});/*! + * Signature Pad v4.2.0 | https://github.com/szimek/signature_pad + * (c) 2024 Szymon Nowak | Released under the MIT license + */class Tn{constructor(t,e,n,r){if(isNaN(t)||isNaN(e))throw new Error(`Point is invalid: (${t}, ${e})`);this.x=+t,this.y=+e,this.pressure=n||0,this.time=r||Date.now()}distanceTo(t){return Math.sqrt(Math.pow(this.x-t.x,2)+Math.pow(this.y-t.y,2))}equals(t){return this.x===t.x&&this.y===t.y&&this.pressure===t.pressure&&this.time===t.time}velocityFrom(t){return this.time!==t.time?this.distanceTo(t)/(this.time-t.time):0}}class si{static fromPoints(t,e){const n=this.calculateControlPoints(t[0],t[1],t[2]).c2,r=this.calculateControlPoints(t[1],t[2],t[3]).c1;return new si(t[1],n,r,t[2],e.start,e.end)}static calculateControlPoints(t,e,n){const r=t.x-e.x,o=t.y-e.y,s=e.x-n.x,a=e.y-n.y,l={x:(t.x+e.x)/2,y:(t.y+e.y)/2},u={x:(e.x+n.x)/2,y:(e.y+n.y)/2},d=Math.sqrt(r*r+o*o),v=Math.sqrt(s*s+a*a),V=l.x-u.x,T=l.y-u.y,R=v/(d+v),N={x:u.x+V*R,y:u.y+T*R},j=e.x-N.x,A=e.y-N.y;return{c1:new Tn(l.x+j,l.y+A),c2:new Tn(u.x+j,u.y+A)}}constructor(t,e,n,r,o,s){this.startPoint=t,this.control2=e,this.control1=n,this.endPoint=r,this.startWidth=o,this.endWidth=s}length(){let e=0,n,r;for(let o=0;o<=10;o+=1){const s=o/10,a=this.point(s,this.startPoint.x,this.control1.x,this.control2.x,this.endPoint.x),l=this.point(s,this.startPoint.y,this.control1.y,this.control2.y,this.endPoint.y);if(o>0){const u=a-n,d=l-r;e+=Math.sqrt(u*u+d*d)}n=a,r=l}return e}point(t,e,n,r,o){return e*(1-t)*(1-t)*(1-t)+3*n*(1-t)*(1-t)*t+3*r*(1-t)*t*t+o*t*t*t}}class Wc{constructor(){try{this._et=new EventTarget}catch{this._et=document}}addEventListener(t,e,n){this._et.addEventListener(t,e,n)}dispatchEvent(t){return this._et.dispatchEvent(t)}removeEventListener(t,e,n){this._et.removeEventListener(t,e,n)}}function $c(i,t=250){let e=0,n=null,r,o,s;const a=()=>{e=Date.now(),n=null,r=i.apply(o,s),n||(o=null,s=[])};return function(...u){const d=Date.now(),v=t-(d-e);return o=this,s=u,v<=0||v>t?(n&&(clearTimeout(n),n=null),e=d,r=i.apply(o,s),n||(o=null,s=[])):n||(n=window.setTimeout(a,v)),r}}class Rn extends Wc{constructor(t,e={}){super(),this.canvas=t,this._drawingStroke=!1,this._isEmpty=!0,this._lastPoints=[],this._data=[],this._lastVelocity=0,this._lastWidth=0,this._handleMouseDown=n=>{n.buttons===1&&this._strokeBegin(n)},this._handleMouseMove=n=>{this._strokeMoveUpdate(n)},this._handleMouseUp=n=>{n.buttons===1&&this._strokeEnd(n)},this._handleTouchStart=n=>{if(n.cancelable&&n.preventDefault(),n.targetTouches.length===1){const r=n.changedTouches[0];this._strokeBegin(r)}},this._handleTouchMove=n=>{n.cancelable&&n.preventDefault();const r=n.targetTouches[0];this._strokeMoveUpdate(r)},this._handleTouchEnd=n=>{if(n.target===this.canvas){n.cancelable&&n.preventDefault();const o=n.changedTouches[0];this._strokeEnd(o)}},this._handlePointerStart=n=>{n.preventDefault(),this._strokeBegin(n)},this._handlePointerMove=n=>{this._strokeMoveUpdate(n)},this._handlePointerEnd=n=>{this._drawingStroke&&(n.preventDefault(),this._strokeEnd(n))},this.velocityFilterWeight=e.velocityFilterWeight||.7,this.minWidth=e.minWidth||.5,this.maxWidth=e.maxWidth||2.5,this.throttle="throttle"in e?e.throttle:16,this.minDistance="minDistance"in e?e.minDistance:5,this.dotSize=e.dotSize||0,this.penColor=e.penColor||"black",this.backgroundColor=e.backgroundColor||"rgba(0,0,0,0)",this.compositeOperation=e.compositeOperation||"source-over",this.canvasContextOptions="canvasContextOptions"in e?e.canvasContextOptions:{},this._strokeMoveUpdate=this.throttle?$c(Rn.prototype._strokeUpdate,this.throttle):Rn.prototype._strokeUpdate,this._ctx=t.getContext("2d",this.canvasContextOptions),this.clear(),this.on()}clear(){const{_ctx:t,canvas:e}=this;t.fillStyle=this.backgroundColor,t.clearRect(0,0,e.width,e.height),t.fillRect(0,0,e.width,e.height),this._data=[],this._reset(this._getPointGroupOptions()),this._isEmpty=!0}fromDataURL(t,e={}){return new Promise((n,r)=>{const o=new Image,s=e.ratio||window.devicePixelRatio||1,a=e.width||this.canvas.width/s,l=e.height||this.canvas.height/s,u=e.xOffset||0,d=e.yOffset||0;this._reset(this._getPointGroupOptions()),o.onload=()=>{this._ctx.drawImage(o,u,d,a,l),n()},o.onerror=v=>{r(v)},o.crossOrigin="anonymous",o.src=t,this._isEmpty=!1})}toDataURL(t="image/png",e){switch(t){case"image/svg+xml":return typeof e!="object"&&(e=void 0),`data:image/svg+xml;base64,${btoa(this.toSVG(e))}`;default:return typeof e!="number"&&(e=void 0),this.canvas.toDataURL(t,e)}}on(){this.canvas.style.touchAction="none",this.canvas.style.msTouchAction="none",this.canvas.style.userSelect="none";const t=/Macintosh/.test(navigator.userAgent)&&"ontouchstart"in document;window.PointerEvent&&!t?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(t,{clear:e=!0}={}){e&&this.clear(),this._fromData(t,this._drawCurve.bind(this),this._drawDot.bind(this)),this._data=this._data.concat(t)}toData(){return this._data}_getPointGroupOptions(t){return{penColor:t&&"penColor"in t?t.penColor:this.penColor,dotSize:t&&"dotSize"in t?t.dotSize:this.dotSize,minWidth:t&&"minWidth"in t?t.minWidth:this.minWidth,maxWidth:t&&"maxWidth"in t?t.maxWidth:this.maxWidth,velocityFilterWeight:t&&"velocityFilterWeight"in t?t.velocityFilterWeight:this.velocityFilterWeight,compositeOperation:t&&"compositeOperation"in t?t.compositeOperation:this.compositeOperation}}_strokeBegin(t){if(!this.dispatchEvent(new CustomEvent("beginStroke",{detail:t,cancelable:!0})))return;this._drawingStroke=!0;const n=this._getPointGroupOptions(),r=Object.assign(Object.assign({},n),{points:[]});this._data.push(r),this._reset(n),this._strokeUpdate(t)}_strokeUpdate(t){if(!this._drawingStroke)return;if(this._data.length===0){this._strokeBegin(t);return}this.dispatchEvent(new CustomEvent("beforeUpdateStroke",{detail:t}));const e=t.clientX,n=t.clientY,r=t.pressure!==void 0?t.pressure:t.force!==void 0?t.force:0,o=this._createPoint(e,n,r),s=this._data[this._data.length-1],a=s.points,l=a.length>0&&a[a.length-1],u=l?o.distanceTo(l)<=this.minDistance:!1,d=this._getPointGroupOptions(s);if(!l||!(l&&u)){const v=this._addPoint(o,d);l?v&&this._drawCurve(v,d):this._drawDot(o,d),a.push({time:o.time,x:o.x,y:o.y,pressure:o.pressure})}this.dispatchEvent(new CustomEvent("afterUpdateStroke",{detail:t}))}_strokeEnd(t){this._drawingStroke&&(this._strokeUpdate(t),this._drawingStroke=!1,this.dispatchEvent(new CustomEvent("endStroke",{detail:t})))}_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(t){this._lastPoints=[],this._lastVelocity=0,this._lastWidth=(t.minWidth+t.maxWidth)/2,this._ctx.fillStyle=t.penColor,this._ctx.globalCompositeOperation=t.compositeOperation}_createPoint(t,e,n){const r=this.canvas.getBoundingClientRect();return new Tn(t-r.left,e-r.top,n,new Date().getTime())}_addPoint(t,e){const{_lastPoints:n}=this;if(n.push(t),n.length>2){n.length===3&&n.unshift(n[0]);const r=this._calculateCurveWidths(n[1],n[2],e),o=si.fromPoints(n,r);return n.shift(),o}return null}_calculateCurveWidths(t,e,n){const r=n.velocityFilterWeight*e.velocityFrom(t)+(1-n.velocityFilterWeight)*this._lastVelocity,o=this._strokeWidth(r,n),s={end:o,start:this._lastWidth};return this._lastVelocity=r,this._lastWidth=o,s}_strokeWidth(t,e){return Math.max(e.maxWidth/(t+1),e.minWidth)}_drawCurveSegment(t,e,n){const r=this._ctx;r.moveTo(t,e),r.arc(t,e,n,0,2*Math.PI,!1),this._isEmpty=!1}_drawCurve(t,e){const n=this._ctx,r=t.endWidth-t.startWidth,o=Math.ceil(t.length())*2;n.beginPath(),n.fillStyle=e.penColor;for(let s=0;s<o;s+=1){const a=s/o,l=a*a,u=l*a,d=1-a,v=d*d,V=v*d;let T=V*t.startPoint.x;T+=3*v*a*t.control1.x,T+=3*d*l*t.control2.x,T+=u*t.endPoint.x;let R=V*t.startPoint.y;R+=3*v*a*t.control1.y,R+=3*d*l*t.control2.y,R+=u*t.endPoint.y;const N=Math.min(t.startWidth+u*r,e.maxWidth);this._drawCurveSegment(T,R,N)}n.closePath(),n.fill()}_drawDot(t,e){const n=this._ctx,r=e.dotSize>0?e.dotSize:(e.minWidth+e.maxWidth)/2;n.beginPath(),this._drawCurveSegment(t.x,t.y,r),n.closePath(),n.fillStyle=e.penColor,n.fill()}_fromData(t,e,n){for(const r of t){const{points:o}=r,s=this._getPointGroupOptions(r);if(o.length>1)for(let a=0;a<o.length;a+=1){const l=o[a],u=new Tn(l.x,l.y,l.pressure,l.time);a===0&&this._reset(s);const d=this._addPoint(u,s);d&&e(d,s)}else this._reset(s),n(o[0],s)}}toSVG({includeBackgroundColor:t=!1}={}){const e=this._data,n=Math.max(window.devicePixelRatio||1,1),r=0,o=0,s=this.canvas.width/n,a=this.canvas.height/n,l=document.createElementNS("http://www.w3.org/2000/svg","svg");if(l.setAttribute("xmlns","http://www.w3.org/2000/svg"),l.setAttribute("xmlns:xlink","http://www.w3.org/1999/xlink"),l.setAttribute("viewBox",`${r} ${o} ${s} ${a}`),l.setAttribute("width",s.toString()),l.setAttribute("height",a.toString()),t&&this.backgroundColor){const u=document.createElement("rect");u.setAttribute("width","100%"),u.setAttribute("height","100%"),u.setAttribute("fill",this.backgroundColor),l.appendChild(u)}return this._fromData(e,(u,{penColor:d})=>{const v=document.createElement("path");if(!isNaN(u.control1.x)&&!isNaN(u.control1.y)&&!isNaN(u.control2.x)&&!isNaN(u.control2.y)){const V=`M ${u.startPoint.x.toFixed(3)},${u.startPoint.y.toFixed(3)} C ${u.control1.x.toFixed(3)},${u.control1.y.toFixed(3)} ${u.control2.x.toFixed(3)},${u.control2.y.toFixed(3)} ${u.endPoint.x.toFixed(3)},${u.endPoint.y.toFixed(3)}`;v.setAttribute("d",V),v.setAttribute("stroke-width",(u.endWidth*2.25).toFixed(3)),v.setAttribute("stroke",d),v.setAttribute("fill","none"),v.setAttribute("stroke-linecap","round"),l.appendChild(v)}},(u,{penColor:d,dotSize:v,minWidth:V,maxWidth:T})=>{const R=document.createElement("circle"),N=v>0?v:(V+T)/2;R.setAttribute("r",N.toString()),R.setAttribute("cx",u.x.toString()),R.setAttribute("cy",u.y.toString()),R.setAttribute("fill",d),l.appendChild(R)}),l.outerHTML}}var Jc=function(){var i=function(t,e){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(n[o]=r[o])},i(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");i(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),ke=function(i,t,e,n){var r=arguments.length,o=r<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,e):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(i,t,e,n);else for(var a=i.length-1;a>=0;a--)(s=i[a])&&(o=(r<3?s(o):r>3?s(t,e,o):s(t,e))||o);return r>3&&o&&Object.defineProperty(t,e,o),o},Gc=300,Kc=200,ai=function(i){Jc(t,i);function t(e){var n=i.call(this,e)||this;return n.valueIsUpdatingInternally=!1,n._loadedData=void 0,n.updateValueHandler=function(){n._loadedData=void 0,n.scaleCanvas(!1,!0),n.loadPreview(n.value)},n}return t.prototype.getPenColorFromTheme=function(){var e=this.survey;return!!e&&!!e.themeVariables&&e.themeVariables["--sjs-primary-backcolor"]},t.prototype.updateColors=function(e){var n=this.getPenColorFromTheme(),r=this.getPropertyByName("penColor");e.penColor=this.penColor||n||r.defaultValue||"#1ab394";var o=this.getPropertyByName("backgroundColor"),s=n?"transparent":void 0,a=this.backgroundImage?"transparent":this.backgroundColor;e.backgroundColor=a||s||o.defaultValue||"#ffffff"},t.prototype.getCssRoot=function(e){return new O().append(i.prototype.getCssRoot.call(this,e)).append(e.small,this.signatureWidth.toString()==="300").toString()},t.prototype.getFormat=function(){return this.dataFormat==="jpeg"?"image/jpeg":this.dataFormat==="svg"?"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(e){e&&(this.isDesignMode||this.initSignaturePad(e),this.element=e),i.prototype.afterRenderQuestionElement.call(this,e)},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,n){e===void 0&&(e=!0),n===void 0&&(n=!1);var r=this.canvas,o=r.offsetWidth/this.containerWidth;(this.scale!=o||n)&&(this.scale=o,r.style.width=this.renderedCanvasWidth,this.resizeCanvas(),this.signaturePad.minWidth=this.penMinWidth*o,this.signaturePad.maxWidth=this.penMaxWidth*o,r.getContext("2d").scale(1/o,1/o),e&&this.loadPreview(this.value))},t.prototype.fromUrl=function(e){var n=this;if(this.isFileLoading=!0,ou(e))this.fromDataUrl(e),this.isFileLoading=!1;else{var r=new Image;r.crossOrigin="anonymous",r.src=e,r.onload=function(){if(n.canvas){var o=I.createElement("canvas");o.width=n.containerWidth,o.height=n.containerHeight;var s=o.getContext("2d");s.drawImage(r,0,0);var a=o.toDataURL(n.getFormat());n.fromDataUrl(a)}n.isFileLoading=!1},r.onerror=function(){n.isFileLoading=!1}}},t.prototype.fromDataUrl=function(e){this._loadedData=e,this.signaturePad&&this.signaturePad.fromDataURL(e,{width:this.canvas.width*this.scale,height:this.canvas.height*this.scale})},Object.defineProperty(t.prototype,"loadedData",{get:function(){return this._loadedData},enumerable:!1,configurable:!0}),t.prototype.loadPreview=function(e){var n=this;if(!e){this.signaturePad&&this.canvas&&(this.canvas.getContext("2d").clearRect(0,0,this.canvas.width*this.scale,this.canvas.height*this.scale),this.signaturePad.clear()),this.valueWasChangedFromLastUpload=!1;return}if(this.storeDataAsText)this.fromDataUrl(e);else if(this.loadedData)this.fromDataUrl(this.loadedData);else{var r=e?[e]:[];this._previewLoader&&this._previewLoader.dispose(),this.isFileLoading=!0,this._previewLoader=new As(this,function(o,s){o==="success"&&s&&s.length>0&&s[0].content?(n.fromDataUrl(s[0].content),n.isFileLoading=!1):o==="skipped"&&n.fromUrl(e),n._previewLoader.dispose(),n._previewLoader=void 0}),this._previewLoader.load(r)}},t.prototype.onChangeQuestionValue=function(e){i.prototype.onChangeQuestionValue.call(this,e),this.isLoadingFromJson||(this._loadedData=void 0,this.loadPreview(e))},t.prototype.onSurveyLoad=function(){i.prototype.onSurveyLoad.call(this),this.loadPreview(this.value)},t.prototype.initSignaturePad=function(e){var n=this,r=e.getElementsByTagName("canvas")[0];this.canvas=r,this.resizeCanvas();var o=new Rn(r,{backgroundColor:"#ffffff"});this.signaturePad=o,this.isInputReadOnly&&o.off(),this.readOnlyChangedCallback=function(){n.isInputReadOnly?o.off():o.on()},this.updateColors(o),o.addEventListener("beginStroke",function(){n.scaleCanvas(),n.isDrawingValue=!0,r.focus()},{once:!1}),o.addEventListener("endStroke",function(){n.isDrawingValue=!1,n.storeDataAsText?n.updateValue():n.valueWasChangedFromLastUpload=!0},{once:!1}),this.updateValueHandler(),this.readOnlyChangedCallback();var s=function(a,l){(l.name==="signatureWidth"||l.name==="signatureHeight")&&(n.valueIsUpdatingInternally||n.updateValueHandler())};this.onPropertyChanged.add(s),this.signaturePad.propertyChangedHandler=s},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",li(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||Kc},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"containerWidth",{get:function(){return this.signatureWidth||Gc},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(),n=this.isUploading;return!this.isInputReadOnly&&this.allowClear&&e&&!n},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,n=this.isEmpty(),r=this.isUploading,o=this.valueWasChangedFromLastUpload;return!e&&n&&!r&&!o},t.prototype.needShowPlaceholder=function(){return this.showPlaceholder&&this.nothingIsDrawn()},t.prototype.onBlurCore=function(e){if(i.prototype.onBlurCore.call(this,e),!this.storeDataAsText&&!this.element.contains(e.relatedTarget)){if(!this.valueWasChangedFromLastUpload)return;this.uploadFiles([Fc(this.signaturePad.toDataURL(this.getFormat()),this.name+"."+li(this.dataFormat),this.getFormat())]),this.valueWasChangedFromLastUpload=!1}},t.prototype.uploadResultItemToValue=function(e){return e.content},t.prototype.setValueFromResult=function(e){this.valueIsUpdatingInternally=!0,this.value=e!=null&&e.length?e.map(function(n){return n.content})[0]:void 0,this.valueIsUpdatingInternally=!1},t.prototype.clearValue=function(e){this.valueWasChangedFromLastUpload=!1,i.prototype.clearValue.call(this,e),this._loadedData=void 0,this.loadPreview(this.value)},t.prototype.endLoadingFromJson=function(){i.prototype.endLoadingFromJson.call(this),this.signatureWidth===300&&this.width&&typeof this.width=="number"&&this.width&&(Fe.warn("Use signatureWidth property to set width for the signature pad"),this.signatureWidth=this.width,this.width=void 0),this.signatureHeight===200&&this.height&&(Fe.warn("Use signatureHeight property to set width for the signature pad"),this.signatureHeight=this.height,this.height=void 0)},ke([h({defaultValue:!1})],t.prototype,"isDrawingValue",void 0),ke([h({defaultValue:!1})],t.prototype,"isReadyForUpload",void 0),ke([h({defaultValue:!1})],t.prototype,"valueWasChangedFromLastUpload",void 0),ke([h()],t.prototype,"signatureAutoScaleEnabled",void 0),ke([h()],t.prototype,"penMinWidth",void 0),ke([h()],t.prototype,"penMaxWidth",void 0),ke([h({})],t.prototype,"showPlaceholder",void 0),ke([h({localizable:{defaultStr:"signaturePlaceHolder"}})],t.prototype,"placeholder",void 0),ke([h({localizable:{defaultStr:"signaturePlaceHolderReadOnly"}})],t.prototype,"placeholderReadOnly",void 0),t}(Es);function li(i){return i||(i="png"),i=i.replace("image/","").replace("+xml",""),i!=="jpeg"&&i!=="svg"&&(i="png"),i}x.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(i){return i.showPlaceholder}},{name:"placeholderReadOnly:text",serializationProperty:"locPlaceholderReadOnly",category:"general",dependsOn:"showPlaceholder",visibleIf:function(i){return i.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:"jpeg",text:"JPEG"},{value:"svg",text:"SVG"}],onSettingValue:function(i,t){return li(t)}},{name:"defaultValue",visible:!1},{name:"correctAnswer",visible:!1},{name:"storeDataAsText:boolean",default:!0},{name:"waitForUpload:boolean",default:!1}],function(){return new ai("")},"question"),J.Instance.registerQuestion("signaturepad",function(i){return new ai(i)});var ui=function(){var i=function(t,e){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(n[o]=r[o])},i(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");i(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),Ut=function(i,t,e,n){var r=arguments.length,o=r<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,e):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(i,t,e,n);else for(var a=i.length-1;a>=0;a--)(s=i[a])&&(o=(r<3?s(o):r>3?s(t,e,o):s(t,e))||o);return r>3&&o&&Object.defineProperty(t,e,o),o},Yc=function(i,t){for(var e=0,n=t.length,r=i.length;e<n;e++,r++)i[r]=t[e];return i},Xc=function(i){ui(t,i);function t(e,n,r){var o=i.call(this,r)||this;return o.data=e,o.panelItem=n,o.variableName=r,o.sharedQuestions={},o}return 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(e){var n=i.prototype.getQuestionByName.call(this,e);if(n)return n;var r=this.panelIndex;n=r>-1?this.data.getSharedQuestionFromArray(e,r):void 0;var o=n?n.name:e;return this.sharedQuestions[o]=e,n},t.prototype.getQuestionDisplayText=function(e){var n=this.sharedQuestions[e.name];if(!n)return i.prototype.getQuestionDisplayText.call(this,e);var r=this.panelItem.getValue(n);return e.getDisplayValue(!0,r)},t.prototype.onCustomProcessText=function(e){if(e.name==pe.IndexVariableName){var n=this.panelIndex;if(n>-1)return e.isExists=!0,e.value=n+1,!0}if(e.name==pe.VisibleIndexVariableName){var n=this.visiblePanelIndex;if(n>-1)return e.isExists=!0,e.value=n+1,!0}if(e.name.toLowerCase().indexOf(pe.ParentItemVariableName+".")==0){var r=this.data;if(r&&r.parentQuestion&&r.parent&&r.parent.data){var o=new t(r.parentQuestion,r.parent.data,pe.ItemVariableName),s=pe.ItemVariableName+e.name.substring(pe.ParentItemVariableName.length),a=o.processValue(s,e.returnDisplayValue);e.isExists=a.isExists,e.value=a.value}return!0}return!1},t}(mr),Zc=function(i){ui(t,i);function t(e){return i.call(this,e)||this}return t}($),pe=function(){function i(t,e){this.data=t,this.panelValue=e,this.textPreProcessor=new Xc(t,this,i.ItemVariableName),this.setSurveyImpl()}return Object.defineProperty(i.prototype,"panel",{get:function(){return this.panelValue},enumerable:!1,configurable:!0}),i.prototype.setSurveyImpl=function(){this.panel.setSurveyImpl(this)},i.prototype.getValue=function(t){var e=this.getAllValues();return e[t]},i.prototype.setValue=function(t,e){var n=this.data.getPanelItemData(this),r=n?n[t]:void 0;if(!P.isTwoValueEquals(e,r,!1,!0,!1)){this.data.setPanelItemData(this,t,P.getUnbindValue(e));for(var o=this.panel.questions,s=i.ItemVariableName+"."+t,a=0;a<o.length;a++){var l=o[a];l.getValueName()!==t&&l.checkBindings(t,e),l.runTriggers(s,e)}}},i.prototype.getVariable=function(t){},i.prototype.setVariable=function(t,e){},i.prototype.getComment=function(t){var e=this.getValue(t+b.commentSuffix);return e||""},i.prototype.setComment=function(t,e,n){this.setValue(t+b.commentSuffix,e)},i.prototype.findQuestionByName=function(t){if(t){var e=i.ItemVariableName+".";if(t.indexOf(e)===0)return this.panel.getQuestionByName(t.substring(e.length));var n=this.getSurvey();return n?n.getQuestionByName(t):null}},i.prototype.getEditingSurveyElement=function(){},i.prototype.getAllValues=function(){return this.data.getPanelItemData(this)},i.prototype.getFilteredValues=function(){var t={},e=this.data&&this.data.getRootData()?this.data.getRootData().getFilteredValues():{};for(var n in e)t[n]=e[n];if(t[i.ItemVariableName]=this.getAllValues(),this.data){var r=i.IndexVariableName,o=i.VisibleIndexVariableName;delete t[r],delete t[o],t[r.toLowerCase()]=this.data.getItemIndex(this),t[o.toLowerCase()]=this.data.getVisibleItemIndex(this);var s=this.data;s&&s.parentQuestion&&s.parent&&(t[i.ParentItemVariableName]=s.parent.getValue())}return t},i.prototype.getFilteredProperties=function(){return this.data&&this.data.getRootData()?this.data.getRootData().getFilteredProperties():{survey:this.getSurvey()}},i.prototype.getSurveyData=function(){return this},i.prototype.getSurvey=function(){return this.data?this.data.getSurvey():null},i.prototype.getTextProcessor=function(){return this.textPreProcessor},i.ItemVariableName="panel",i.ParentItemVariableName="parentpanel",i.IndexVariableName="panelIndex",i.VisibleIndexVariableName="visiblePanelIndex",i}(),ef=function(){function i(t){this.data=t}return i.prototype.getSurveyData=function(){return null},i.prototype.getSurvey=function(){return this.data.getSurvey()},i.prototype.getTextProcessor=function(){return null},i}(),ci=function(i){ui(t,i);function t(e){var n=i.call(this,e)||this;return n._renderedPanels=[],n.isPanelsAnimationRunning=!1,n.isAddingNewPanels=!1,n.isSetPanelItemData={},n.createNewArray("panels",function(r){n.onPanelAdded(r)},function(r){n.onPanelRemoved(r)}),n.createNewArray("visiblePanels"),n.templateValue=n.createAndSetupNewPanelObject(),n.template.renderWidth="100%",n.template.selectedElementInDesign=n,n.template.addElementCallback=function(r){n.addOnPropertyChangedCallback(r),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(["newPanelPosition","displayMode","showProgressBar"],function(){n.updateFooterActions()}),n.registerPropertyChangedHandlers(["allowAddPanel"],function(){n.updateNoEntriesTextDefaultLoc()}),n.registerPropertyChangedHandlers(["minPanelCount"],function(){n.onMinPanelCountChanged()}),n.registerPropertyChangedHandlers(["maxPanelCount"],function(){n.onMaxPanelCountChanged()}),n}return 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 n=0;n<this.visiblePanelsCore.length;n++){var r=this.visiblePanelsCore[n].getFirstQuestionToFocus(e);if(r)return r}return this.showAddPanelButton&&(!e||this.currentErrorCount>0)?this:null},t.prototype.getFirstInputElementId=function(){return this.showAddPanelButton?this.addButtonId:i.prototype.getFirstInputElementId.call(this)},t.prototype.setSurveyImpl=function(e,n){i.prototype.setSurveyImpl.call(this,e,n),this.setTemplatePanelSurveyImpl(),this.setPanelsSurveyImpl()},t.prototype.assignOnPropertyChangedToTemplate=function(){for(var e=this.template.elements,n=0;n<e.length;n++)this.addOnPropertyChangedCallback(e[n])},t.prototype.addOnPropertyChangedCallback=function(e){var n=this;e.isQuestion&&e.setParentQuestion(this),e.onPropertyChanged.add(function(r,o){n.onTemplateElementPropertyChanged(r,o)}),e.isPanel&&(e.addElementCallback=function(r){n.addOnPropertyChangedCallback(r)})},t.prototype.onTemplateElementPropertyChanged=function(e,n){if(!(this.isLoadingFromJson||this.useTemplatePanel||this.panelsCore.length==0)){var r=x.findProperty(e.getType(),n.name);if(r)for(var o=this.panelsCore,s=0;s<o.length;s++){var a=o[s].getQuestionByName(e.name);a&&a[n.name]!==n.newValue&&(a[n.name]=n.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=[],n=0;n<this.panelsCore.length;n++)e.push(this.panelsCore[n].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 n=0,r=this.panelsCore,o=0;o<r.length&&r[o]!==e;o++)r[o].visible&&n++;this.visiblePanelsCore.splice(n,0,e),this.addTabFromToolbar(e,n),this.currentPanel||(this.currentPanel=e),this.updateRenderedPanels()}},t.prototype.onPanelRemoved=function(e){var n=this.onPanelRemovedCore(e);if(this.currentPanel===e){var r=this.visiblePanelsCore;n>=r.length&&(n=r.length-1),this.currentPanel=n>=0?r[n]:null}this.updateRenderedPanels()},t.prototype.onPanelRemovedCore=function(e){var n=this.visiblePanelsCore,r=n.indexOf(e);return r>-1&&(n.splice(r,1),this.removeTabFromToolbar(e)),r},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 n=this.getPropertyValue("currentPanel"),r=e?this.visiblePanelsCore.indexOf(e):-1;if(!(e&&r<0||e===n)&&(n&&n.onHidingContent(),this.setPropertyValue("currentPanel",e),this.updateRenderedPanels(),this.updateFooterActions(),this.updateTabToolbarItemsPressedState(),this.fireCallback(this.currentIndexChangedCallback),r>-1&&this.survey)){var o={panel:e,visiblePanelIndex:r};this.survey.dynamicPanelCurrentIndexChanged(this,o)}}},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){this.renderedPanels.length==0||e.length==0?(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,n=function(){if(e.isRenderModeList)return"";var r=new O,o=!1,s=e.renderedPanels.filter(function(l){return l!==e.currentPanel})[0],a=e.visiblePanels.indexOf(s);return a<0&&(o=!0,a=e.removedPanelIndex),r.append("sv-pd-animation-adding",!!e.focusNewPanelCallback).append("sv-pd-animation-removing",o).append("sv-pd-animation-left",a<=e.currentIndex).append("sv-pd-animation-right",a>e.currentIndex).toString()};return{getRerenderEvent:function(){return e.onElementRerendered},getAnimatedElement:function(r){var o,s;if(r&&e.cssContent){var a=be(e.cssContent);return(s=(o=e.getWrapperElement())===null||o===void 0?void 0:o.querySelector(":scope "+a+" #"+r.id))===null||s===void 0?void 0:s.parentElement}},getEnterOptions:function(){var r=new O().append(e.cssClasses.panelWrapperEnter).append(n()).toString();return{onBeforeRunAnimation:function(o){if(e.focusNewPanelCallback){var s=e.isRenderModeList?o:o.parentElement;le.ScrollElementToViewCore(s,!1,!1,{behavior:"smooth"})}!e.isRenderModeList&&o.parentElement?Mt(o.parentElement,{heightTo:o.offsetHeight+"px"}):Ae(o)},onAfterRunAnimation:function(o){Ce(o),o.parentElement&&Ce(o.parentElement)},cssClass:r}},getLeaveOptions:function(){var r=new O().append(e.cssClasses.panelWrapperLeave).append(n()).toString();return{onBeforeRunAnimation:function(o){!e.isRenderModeList&&o.parentElement?Mt(o.parentElement,{heightFrom:o.offsetHeight+"px"}):Ae(o)},onAfterRunAnimation:function(o){Ce(o),o.parentElement&&Ce(o.parentElement)},cssClass:r}},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?Qe:Yn)(this.getPanelsAnimationOptions(),function(n,r){e._renderedPanels=n,r||(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(){i.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 this.displayMode=="carousel"&&(this.progressBarLocation==="top"||this.progressBarLocation==="topBottom")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isProgressBottomShowing",{get:function(){return this.displayMode=="carousel"&&(this.progressBarLocation==="bottom"||this.progressBarLocation==="topBottom")},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 e===void 0&&(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:i.prototype.getValueCore.call(this)},t.prototype.setValueCore=function(e){this.isAddingNewPanels?(this.isNewPanelsValueChanged=!0,this.addingNewPanelsValue=e):i.prototype.setValueCore.call(this,e)},t.prototype.setIsMobile=function(e){i.prototype.setIsMobile.call(this,e),(this.panelsCore||[]).forEach(function(n){return n.getQuestions(!0).forEach(function(r){r.setIsMobile(e)})})},t.prototype.themeChanged=function(e){i.prototype.themeChanged.call(this,e),(this.panelsCore||[]).forEach(function(n){return n.getQuestions(!0).forEach(function(r){r.themeChanged(e)})})},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){this.setPropertyValue("panelCount",e);return}if(!(e==this.panelsCore.length||this.useTemplatePanel)){this.updateBindings("panelCount",e),this.prepareValueForPanelCreating();for(var n=this.panelCount;n<e;n++){var r=this.createNewPanel();this.panelsCore.push(r),this.displayMode=="list"&&this.panelsState!="default"&&(this.panelsState==="expanded"?r.expand():r.title&&r.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()}}},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 ef(this))},t.prototype.setPanelsSurveyImpl=function(){for(var e=0;e<this.panelsCore.length;e++){var n=this.panelsCore[e];n!=this.template&&n.setSurveyImpl(n.data)}},t.prototype.setPanelsState=function(){if(!(this.useTemplatePanel||this.displayMode!="list"||!this.templateTitle))for(var e=0;e<this.panelsCore.length;e++){var n=this.panelsState;n==="firstExpanded"&&(n=e===0?"expanded":"collapsed"),this.panelsCore[e].state=n}},t.prototype.setValueBasedOnPanelCount=function(){var e=this.value;if((!e||!Array.isArray(e))&&(e=[]),e.length!=this.panelCount){for(var n=e.length;n<this.panelCount;n++){var r=this.panels[n].getValue(),o=P.isValueEmpty(r)?{}:r;e.push(o)}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),this.setPropertyValue("minPanelCount",e)},enumerable:!1,configurable:!0}),t.prototype.onMinPanelCountChanged=function(){var e=this.minPanelCount;e>this.maxPanelCount&&(this.maxPanelCount=e),this.panelCount<e&&(this.panelCount=e)},Object.defineProperty(t.prototype,"maxPanelCount",{get:function(){return this.getPropertyValue("maxPanelCount")},set:function(e){e<=0||(e>b.panel.maxPanelCount&&(e=b.panel.maxPanelCount),this.setPropertyValue("maxPanelCount",e),this.updateFooterActions())},enumerable:!1,configurable:!0}),t.prototype.onMaxPanelCountChanged=function(){var e=this.maxPanelCount;e<this.minPanelCount&&(this.minPanelCount=e),this.panelCount>e&&(this.panelCount=e),this.updateFooterActions()},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,"addButtonId",{get:function(){return this.id+"addPanel"},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 this.showQuestionNumbers==="onSurvey"},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.showProgressBar},set:function(e){this.showProgressBar=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"renderMode",{get:function(){var e=this.displayMode;if(e=="carousel"){var n=this.progressBarLocation;if(n=="top")return"progressTop";if(n=="bottom")return"progressBottom";if(n=="topBottom")return"progressTopBottom"}return e},set:function(e){(e||"").startsWith("progress")?(e=="progressTop"?this.progressBarLocation="top":e=="progressBottom"?this.progressBarLocation="bottom":e=="progressTopBottom"&&(this.progressBarLocation="topBottom"),this.displayMode="carousel"):this.displayMode=e},enumerable:!1,configurable:!0}),t.prototype.updatePanelView=function(){this.blockAnimations(),this.updateRenderedPanels(),this.releaseAnimations(),this.updatePanelsAnimation()},Object.defineProperty(t.prototype,"tabAlign",{get:function(){return this.getPropertyValue("tabAlign")},set:function(e){this.setPropertyValue("tabAlign",e),this.isRenderModeTab&&(this.tabbedMenu.containerCss=this.getTabbedMenuCss())},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isRenderModeList",{get:function(){return this.displayMode==="list"},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isRenderModeTab",{get:function(){return this.displayMode==="tab"},enumerable:!1,configurable:!0}),t.prototype.setVisibleIndex=function(e){if(!this.isVisible)return 0;for(var n=this.showQuestionNumbers==="onSurvey",r=n?e:0,o=this.isDesignMode?[this.template]:this.visiblePanelsCore,s=0;s<o.length;s++){var a=this.setPanelVisibleIndex(o[s],r,this.showQuestionNumbers!="off");n&&(r+=a)}return i.prototype.setVisibleIndex.call(this,n?-1:e),n?r-e:1},t.prototype.setPanelVisibleIndex=function(e,n,r){return r?e.setVisibleIndex(n):(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&&this.newPanelPosition!=="next"?!1:this.allowAddPanel&&!this.isReadOnly&&this.panelCount<this.maxPanelCount},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"canRemovePanel",{get:function(){return this.isDesignMode?!1:this.allowRemovePanel&&!this.isReadOnly&&this.panelCount>this.minPanelCount},enumerable:!1,configurable:!0}),t.prototype.rebuildPanels=function(){var e;if(!this.isLoadingFromJson){this.prepareValueForPanelCreating();var n=[];if(this.useTemplatePanel)new pe(this,this.template),n.push(this.template);else for(var r=0;r<this.panelCount;r++)this.createNewPanel(),n.push(this.createNewPanel());(e=this.panelsCore).splice.apply(e,Yc([0,this.panelsCore.length],n)),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 i.prototype.isDefaultValueEmpty.call(this)&&this.isValueEmpty(this.defaultPanelValue)},t.prototype.setDefaultValue=function(){if(this.isValueEmpty(this.defaultPanelValue)||!this.isValueEmpty(this.defaultValue)){i.prototype.setDefaultValue.call(this);return}if(!(!this.isEmpty()||this.panelCount==0)){for(var e=[],n=0;n<this.panelCount;n++)e.push(this.defaultPanelValue);this.value=e}},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 n=0;n<e.length;n++)if(!this.isRowEmpty(e[n]))return!1;return!0},t.prototype.getProgressInfo=function(){return le.getProgressInfoByElements(this.visiblePanelsCore,this.isRequired)},t.prototype.isRowEmpty=function(e){for(var n in e)if(e.hasOwnProperty(n))return!1;return!0},t.prototype.addPanelUI=function(){if(!this.canAddPanel||!this.canLeaveCurrentPanel())return null;var e=this.addPanel();return this.displayMode==="list"&&this.panelsState!=="default"&&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 n=this.currentIndex;return e===void 0&&(e=n<0?this.panelCount:n+1),(e<0||e>this.panelCount)&&(e=this.panelCount),this.updateValueOnAddingPanel(n<0?this.panelCount-1:n,e),this.isRenderModeList||(this.currentIndex=e),this.survey&&this.survey.dynamicPanelAdded(this),this.panelsCore[e]},t.prototype.updateValueOnAddingPanel=function(e,n){this.panelCount++;var r=this.value;if(!(!Array.isArray(r)||r.length!==this.panelCount)){var o=!1,s=this.panelCount-1;if(n<s){o=!0;var a=r[s];r.splice(s,1),r.splice(n,0,a)}if(this.isValueEmpty(this.defaultPanelValue)||(o=!0,this.copyValue(r[n],this.defaultPanelValue)),this.defaultValueFromLastPanel&&r.length>1){var l=e>-1&&e<=s?e:s;o=!0,this.copyValue(r[n],r[l])}o&&(this.value=r)}},t.prototype.canLeaveCurrentPanel=function(){return!(this.displayMode!=="list"&&this.currentPanel&&this.currentPanel.hasErrors(!0,!0))},t.prototype.copyValue=function(e,n){for(var r in n)e[r]=n[r]},t.prototype.removePanelUI=function(e){var n=this,r=this.getVisualPanelIndex(e);if(!(r<0||r>=this.visiblePanelCount)&&this.canRemovePanel){var o=function(){var s;n.removePanel(r);var a=n.visiblePanelCount,l=r>=a?a-1:r,u=a===0?n.addButtonId:l>-1?n.getPanelRemoveButtonId(n.visiblePanels[l]):"";u&&le.FocusElement(u,!0,(s=n.survey)===null||s===void 0?void 0:s.rootElement)};this.isRequireConfirmOnDelete(e)?At({message:this.confirmDeleteText,funcOnYes:function(){o()},locale:this.getLocale(),rootElement:this.survey.rootElement,cssClass:this.cssClasses.confirmDialog}):o()}},t.prototype.getPanelRemoveButtonId=function(e){return e.id+"_remove_button"},t.prototype.isRequireConfirmOnDelete=function(e){if(!this.confirmDelete)return!1;var n=this.getVisualPanelIndex(e);if(n<0||n>=this.visiblePanelCount)return!1;var r=this.visiblePanelsCore[n].getValue();return!this.isValueEmpty(r)&&(this.isValueEmpty(this.defaultPanelValue)||!this.isTwoValueEquals(r,this.defaultPanelValue))},t.prototype.goToNextPanel=function(){return this.currentIndex<0||!this.canLeaveCurrentPanel()?!1:(this.currentIndex++,!0)},t.prototype.goToPrevPanel=function(){this.currentIndex<0||this.currentIndex--},t.prototype.removePanel=function(s){var n=this.getVisualPanelIndex(s);if(!(n<0||n>=this.visiblePanelCount)){this.removedPanelIndex=n;var r=this.visiblePanelsCore[n],o=this.panelsCore.indexOf(r);if(!(o<0)&&!(this.survey&&!this.survey.dynamicPanelRemoving(this,o,r))){this.panelsCore.splice(o,1),this.updateBindings("panelCount",this.panelCount);var s=this.value;!s||!Array.isArray(s)||o>=s.length||(this.isValueChangingInternally=!0,s.splice(o,1),this.value=s,this.updateFooterActions(),this.fireCallback(this.panelCountChangedCallback),this.survey&&this.survey.dynamicPanelRemoved(this,o,r),this.isValueChangingInternally=!1)}}},t.prototype.getVisualPanelIndex=function(e){if(P.isNumber(e))return e;for(var n=this.visiblePanelsCore,r=0;r<n.length;r++)if(n[r]===e||n[r].data===e)return r;return-1},t.prototype.getPanelVisibleIndexById=function(e){for(var n=this.visiblePanelsCore,r=0;r<n.length;r++)if(n[r].id===e)return r;return-1},t.prototype.locStrsChanged=function(){i.prototype.locStrsChanged.call(this);for(var e=this.panelsCore,n=0;n<e.length;n++)e[n].locStrsChanged();this.tabbedMenu&&this.tabbedMenu.locStrsChanged()},t.prototype.clearIncorrectValues=function(){for(var e=0;e<this.panelsCore.length;e++)this.clearIncorrectValuesInPanel(e)},t.prototype.clearErrors=function(){i.prototype.clearErrors.call(this);for(var e=0;e<this.panelsCore.length;e++)this.panelsCore[e].clearErrors()},t.prototype.getQuestionFromArray=function(e,n){return n<0||n>=this.panelsCore.length?null:this.panelsCore[n].getQuestionByName(e)},t.prototype.clearIncorrectValuesInPanel=function(e){var n=this.panelsCore[e];n.clearIncorrectValues();var r=this.value,o=r&&e<r.length?r[e]:null;if(o){var s=!1;for(var a in o)if(!this.getSharedQuestionFromArray(a,e)){var l=n.getQuestionByName(a);l||this.iscorrectValueWithPostPrefix(n,a,b.commentSuffix)||this.iscorrectValueWithPostPrefix(n,a,b.matrix.totalsSuffix)||(delete o[a],s=!0)}s&&(r[e]=o,this.value=r)}},t.prototype.iscorrectValueWithPostPrefix=function(e,n,r){return n.indexOf(r)!==n.length-r.length?!1:!!e.getQuestionByName(n.substring(0,n.indexOf(r)))},t.prototype.getSharedQuestionFromArray=function(e,n){return this.survey&&this.valueName?this.survey.getQuestionByValueNameFromArray(this.valueName,e,n):null},t.prototype.addConditionObjectsByContext=function(e,n){for(var r=n!=null&&n.isValidator?n.errorOwner:n,o=!!n&&(n===!0||this.template.questions.indexOf(r)>-1),s=new Array,a=this.template.questions,l=0;l<a.length;l++)a[l].addConditionObjectsByContext(s,n);for(var u=0;u<b.panel.maxPanelCountInCondition;u++)for(var d="["+u+"].",v=this.getValueName()+d,V=this.processedTitle+d,l=0;l<s.length;l++)s[l].context?e.push(s[l]):e.push({name:v+s[l].name,text:V+s[l].text,question:s[l].question});if(o){for(var v=n===!0?this.getValueName()+".":"",V=n===!0?this.processedTitle+".":"",l=0;l<s.length;l++)if(s[l].question!=n){var T={name:v+pe.ItemVariableName+"."+s[l].name,text:V+pe.ItemVariableName+"."+s[l].text,question:s[l].question};T.context=this,e.push(T)}}},t.prototype.collectNestedQuestionsCore=function(e,n){var r=n?this.visiblePanelsCore:this.panelsCore;Array.isArray(r)&&r.forEach(function(o){o.questions.forEach(function(s){return s.collectNestedQuestions(e,n)})})},t.prototype.getConditionJson=function(e,n){if(e===void 0&&(e=null),n===void 0&&(n=null),!n)return i.prototype.getConditionJson.call(this,e);var r=n,o=n.indexOf(".");o>-1&&(r=n.substring(0,o),n=n.substring(o+1));var s=this.template.getQuestionByName(r);return s?s.getConditionJson(e,n):null},t.prototype.onReadOnlyChanged=function(){var e=this.isReadOnly;this.template.readOnly=e;for(var n=0;n<this.panelsCore.length;n++)this.panelsCore[n].readOnly=e;this.updateNoEntriesTextDefaultLoc(),this.updateFooterActions(),i.prototype.onReadOnlyChanged.call(this)},t.prototype.updateNoEntriesTextDefaultLoc=function(){var e=this.getLocalizableString("noEntriesText");e&&(e.localizationName=this.isReadOnly||!this.allowAddPanel?"noEntriesReadonlyText":"noEntriesText")},t.prototype.onSurveyLoad=function(){this.template.readOnly=this.isReadOnly,this.template.onSurveyLoad(),this.panelCount<this.minPanelCount&&(this.panelCount=this.minPanelCount),this.panelCount>this.maxPanelCount&&(this.panelCount=this.maxPanelCount),this.buildPanelsFirstTime(),i.prototype.onSurveyLoad.call(this)},t.prototype.buildPanelsFirstTime=function(e){if(e===void 0&&(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 n=0;n<this.panelCount;n++)this.survey.dynamicPanelAdded(this);this.updateIsReady(),this.showAddPanelButton||this.updateNoEntriesTextDefaultLoc(),this.updateFooterActions(),this.isBuildingPanelsFirstTime=!1,this.releaseAnimations()}},Object.defineProperty(t.prototype,"showAddPanelButton",{get:function(){return this.allowAddPanel&&!this.isReadOnly},enumerable:!1,configurable:!0}),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.onFirstRenderingCore=function(){i.prototype.onFirstRenderingCore.call(this),this.buildPanelsFirstTime(),this.template.onFirstRendering();for(var e=0;e<this.panelsCore.length;e++)this.panelsCore[e].onFirstRendering()},t.prototype.localeChanged=function(){i.prototype.localeChanged.call(this);for(var e=0;e<this.panelsCore.length;e++)this.panelsCore[e].localeChanged()},t.prototype.runCondition=function(e,n){i.prototype.runCondition.call(this,e,n),this.runPanelsCondition(this.panelsCore,e,n)},t.prototype.runTriggers=function(e,n,r){i.prototype.runTriggers.call(this,e,n,r),this.visiblePanelsCore.forEach(function(o){o.questions.forEach(function(s){return s.runTriggers(e,n,r)})})},t.prototype.reRunCondition=function(){this.data&&this.runCondition(this.getDataFilteredValues(),this.getDataFilteredProperties())},t.prototype.runPanelsCondition=function(e,n,r){var o={};n&&n instanceof Object&&(o=JSON.parse(JSON.stringify(n))),this.parentQuestion&&this.parent&&(o[pe.ParentItemVariableName]=this.parent.getValue()),this.isValueChangingInternally=!0;for(var s=0;s<e.length;s++){var a=e[s],l=this.getPanelItemData(a.data),u=P.createCopy(o),d=pe.ItemVariableName;u[d]=l,u[pe.IndexVariableName.toLowerCase()]=s;var v=P.createCopy(r);v[d]=a,a.runCondition(u,v)}this.isValueChangingInternally=!1},t.prototype.onAnyValueChanged=function(e,n){i.prototype.onAnyValueChanged.call(this,e,n);for(var r=0;r<this.panelsCore.length;r++)this.panelsCore[r].onAnyValueChanged(e,n),this.panelsCore[r].onAnyValueChanged(pe.ItemVariableName,"")},t.prototype.hasKeysDuplicated=function(e,n){n===void 0&&(n=null);for(var r=[],o,s=0;s<this.panelsCore.length;s++)o=this.isValueDuplicated(this.panelsCore[s],r,n,e)||o;return o},t.prototype.updatePanelsContainsErrors=function(){for(var e=this.changingValueQuestion,n=e.parent;n;)n.updateContainsErrors(),n=n.parent;this.updateContainsErrors()},t.prototype.hasErrors=function(e,n){if(e===void 0&&(e=!0),n===void 0&&(n=null),this.isValueChangingInternally||this.isBuildingPanelsFirstTime)return!1;var r=!1;if(this.changingValueQuestion){var r=this.changingValueQuestion.hasErrors(e,n);r=this.hasKeysDuplicated(e,n)||r,this.updatePanelsContainsErrors()}else r=this.hasErrorInPanels(e,n);return i.prototype.hasErrors.call(this,e,n)||r},t.prototype.getContainsErrors=function(){var e=i.prototype.getContainsErrors.call(this);if(e)return e;for(var n=this.panelsCore,r=0;r<n.length;r++)if(n[r].containsErrors)return!0;return!1},t.prototype.getIsAnswered=function(){if(!i.prototype.getIsAnswered.call(this))return!1;for(var e=this.visiblePanelsCore,n=0;n<e.length;n++){var r=[];e[n].addQuestionsToList(r,!0);for(var o=0;o<r.length;o++)if(!r[o].isAnswered)return!1}return!0},t.prototype.clearValueOnHidding=function(e){if(!e){if(this.survey&&this.survey.getQuestionClearIfInvisible("onHidden")==="none")return;this.clearValueInPanelsIfInvisible("onHiddenContainer")}i.prototype.clearValueOnHidding.call(this,e)},t.prototype.clearValueIfInvisible=function(e){e===void 0&&(e="onHidden");var n=e==="onHidden"?"onHiddenContainer":e;this.clearValueInPanelsIfInvisible(n),i.prototype.clearValueIfInvisible.call(this,e)},t.prototype.clearValueInPanelsIfInvisible=function(e){for(var n=0;n<this.panelsCore.length;n++){var r=this.panelsCore[n],o=r.questions;this.isSetPanelItemData={};for(var s=0;s<o.length;s++){var a=o[s];a.visible&&!r.isVisible||(a.clearValueIfInvisible(e),this.isSetPanelItemData[a.getValueName()]=this.maxCheckCount+1)}}this.isSetPanelItemData={}},t.prototype.getIsRunningValidators=function(){if(i.prototype.getIsRunningValidators.call(this))return!0;for(var e=0;e<this.panelsCore.length;e++)for(var n=this.panelsCore[e].questions,r=0;r<n.length;r++)if(n[r].isRunningValidators)return!0;return!1},t.prototype.getAllErrors=function(){for(var e=i.prototype.getAllErrors.call(this),n=this.visiblePanelsCore,r=0;r<n.length;r++)for(var o=n[r].questions,s=0;s<o.length;s++){var a=o[s].getAllErrors();a&&a.length>0&&(e=e.concat(a))}return e},t.prototype.getDisplayValueCore=function(e,n){var r=this.getUnbindValue(n);if(!r||!Array.isArray(r))return r;for(var o=0;o<this.panelsCore.length&&o<r.length;o++){var s=r[o];s&&(r[o]=this.getPanelDisplayValue(o,s,e))}return r},t.prototype.getPanelDisplayValue=function(e,n,r){if(!n)return n;for(var o=this.panelsCore[e],s=Object.keys(n),a=0;a<s.length;a++){var l=s[a],u=o.getQuestionByValueName(l);if(u||(u=this.getSharedQuestionFromArray(l,e)),u){var d=u.getDisplayValue(r,n[l]);n[l]=d,r&&u.title&&u.title!==l&&(n[u.title]=d,delete n[l])}}return n},t.prototype.hasErrorInPanels=function(e,n){for(var r=!1,o=this.visiblePanels,s=[],a=0;a<o.length;a++)this.setOnCompleteAsyncInPanel(o[a]);for(var l=!!n&&n.focusOnFirstError,u=0;u<o.length;u++){var d=o[u].hasErrors(e,l,n);d=this.isValueDuplicated(o[u],s,n,e)||d,!this.isRenderModeList&&d&&!r&&l&&(this.currentIndex=u),r=d||r}return r},t.prototype.setOnCompleteAsyncInPanel=function(e){for(var n=this,r=e.questions,o=0;o<r.length;o++)r[o].onCompletedAsyncValidators=function(s){n.raiseOnCompletedAsyncValidators()}},t.prototype.isValueDuplicated=function(e,n,r,o){if(!this.keyName)return!1;var s=e.getQuestionByValueName(this.keyName);if(!s||s.isEmpty())return!1;var a=s.value;this.changingValueQuestion&&s!=this.changingValueQuestion&&s.hasErrors(o,r);for(var l=0;l<n.length;l++)if(a==n[l])return o&&s.addError(new Co(this.keyDuplicationError,this)),r&&!r.firstErrorQuestion&&(r.firstErrorQuestion=s),!0;return n.push(a),!1},t.prototype.getPanelActions=function(e){var n=this,r=e.footerActions;return this.panelRemoveButtonLocation!=="right"&&r.push(new $({id:"remove-panel-"+e.id,component:"sv-paneldynamic-remove-btn",visible:new te(function(){return[n.canRemovePanel,e.state!=="collapsed",n.panelRemoveButtonLocation!=="right"].every(function(o){return o===!0})}),data:{question:this,panel:e}})),this.survey&&(r=this.survey.getUpdatedPanelFooterActions(e,r,this)),r},t.prototype.createNewPanel=function(){var e=this,n=this.createAndSetupNewPanelObject(),r=this.template.toJSON();new fe().toObject(r,n),n.renderWidth="100%",n.updateCustomWidgets(),new pe(this,n),!this.isDesignMode&&!this.isReadOnly&&!this.isValueEmpty(n.getValue())&&this.runPanelsCondition([n],this.getDataFilteredValues(),this.getDataFilteredProperties());for(var o=n.questions,s=0;s<o.length;s++)o[s].setParentQuestion(this);return this.wasRendered&&(n.onFirstRendering(),n.locStrsChanged()),n.onGetFooterActionsCallback=function(){return e.getPanelActions(n)},n.onGetFooterToolbarCssCallback=function(){return e.cssClasses.panelFooter},n.registerPropertyChangedHandlers(["visible"],function(){n.visible?e.onPanelAdded(n):e.onPanelRemoved(n),e.updateFooterActions()}),n},t.prototype.createAndSetupNewPanelObject=function(){var e=this,n=this.createNewPanelObject();return n.isInteractiveDesignElement=!1,n.setParentQuestion(this),n.onGetQuestionTitleLocation=function(){return e.getTemplateQuestionTitleLocation()},n},t.prototype.getTemplateQuestionTitleLocation=function(){return this.templateTitleLocation!="default"?this.templateTitleLocation:this.getTitleLocationCore()},t.prototype.getChildErrorLocation=function(e){return this.templateErrorLocation!=="default"?this.templateErrorLocation:i.prototype.getChildErrorLocation.call(this,e)},t.prototype.createNewPanelObject=function(){return x.createClass("panel")},t.prototype.setPanelCountBasedOnValue=function(){if(!(this.isValueChangingInternally||this.useTemplatePanel)){var e=this.value,n=e&&Array.isArray(e)?e.length:0;n==0&&this.getPropertyValue("panelCount")>0&&(n=this.getPropertyValue("panelCount")),this.settingPanelCountBasedOnValue=!0,this.panelCount=n,this.settingPanelCountBasedOnValue=!1}},t.prototype.setQuestionValue=function(e){if(!this.settingPanelCountBasedOnValue){i.prototype.setQuestionValue.call(this,e,!1),this.setPanelCountBasedOnValue();for(var n=0;n<this.panelsCore.length;n++)this.panelUpdateValueFromSurvey(this.panelsCore[n]);this.updateIsAnswered()}},t.prototype.onSurveyValueChanged=function(e){if(!(e===void 0&&this.isAllPanelsEmpty())){i.prototype.onSurveyValueChanged.call(this,e);for(var n=0;n<this.panelsCore.length;n++)this.panelSurveyValueChanged(this.panelsCore[n]);e===void 0&&this.setValueBasedOnPanelCount(),this.updateIsReady()}},t.prototype.isAllPanelsEmpty=function(){for(var e=0;e<this.panelsCore.length;e++)if(!P.isValueEmpty(this.panelsCore[e].getValue()))return!1;return!0},t.prototype.panelUpdateValueFromSurvey=function(e){for(var n=e.questions,r=this.getPanelItemData(e.data),o=0;o<n.length;o++){var s=n[o];s.updateValueFromSurvey(r[s.getValueName()]),s.updateCommentFromSurvey(r[s.getValueName()+b.commentSuffix]),s.initDataUI()}},t.prototype.panelSurveyValueChanged=function(e){for(var n=e.questions,r=this.getPanelItemData(e.data),o=0;o<n.length;o++){var s=n[o];s.onSurveyValueChanged(r[s.getValueName()])}},t.prototype.onSetData=function(){i.prototype.onSetData.call(this),!this.isLoadingFromJson&&this.useTemplatePanel&&(this.setTemplatePanelSurveyImpl(),this.rebuildPanels())},t.prototype.isNewValueCorrect=function(e){return Array.isArray(e)},t.prototype.getItemIndex=function(e){var n=this.items.indexOf(e);return n>-1?n:this.items.length},t.prototype.getVisibleItemIndex=function(e){for(var n=this.visiblePanelsCore,r=0;r<n.length;r++)if(n[r].data===e)return r;return n.length},t.prototype.getPanelItemData=function(e){var n=this.items,r=n.indexOf(e),o=this.value;return r<0&&Array.isArray(o)&&o.length>n.length&&(r=n.length),r<0?{}:!o||!Array.isArray(o)||o.length<=r?{}:o[r]},t.prototype.setPanelItemData=function(e,n,r){if(!(this.isSetPanelItemData[n]>this.maxCheckCount)){this.isSetPanelItemData[n]||(this.isSetPanelItemData[n]=0),this.isSetPanelItemData[n]++;var o=this.items,s=o.indexOf(e);s<0&&(s=o.length);var a=this.getUnbindValue(this.value);if((!a||!Array.isArray(a))&&(a=[]),a.length<=s)for(var l=a.length;l<=s;l++)a.push({});a[s]||(a[s]={});var u=a[s][n];this.isValueEmpty(r)?delete a[s][n]:a[s][n]=r,s>=0&&s<this.panelsCore.length&&(this.changingValueQuestion=this.panelsCore[s].getQuestionByValueName(n));var d={panel:e.panel,name:n,panelIndex:s,panelData:a[s],value:r,oldValue:u};this.survey&&this.survey.dynamicPanelItemValueChanging(this,d),this.value=a,this.changingValueQuestion=null,this.survey&&this.survey.dynamicPanelItemValueChanged(this,d),this.isSetPanelItemData[n]--,this.isSetPanelItemData[n]-1&&delete this.isSetPanelItemData[n]}},t.prototype.getRootData=function(){return this.data},t.prototype.getPlainData=function(e){e===void 0&&(e={includeEmpty:!0});var n=i.prototype.getPlainData.call(this,e);if(n){n.isNode=!0;var r=Array.isArray(n.data)?[].concat(n.data):[];n.data=this.panels.map(function(o,s){var a={name:o.name||s,title:o.title||"Panel",value:o.getValue(),displayValue:o.getValue(),getString:function(l){return typeof l=="object"?JSON.stringify(l):l},isNode:!0,data:o.questions.map(function(l){return l.getPlainData(e)}).filter(function(l){return!!l})};return(e.calculations||[]).forEach(function(l){a[l.propertyName]=o[l.propertyName]}),a}),n.data=n.data.concat(r)}return n},t.prototype.updateElementCss=function(e){i.prototype.updateElementCss.call(this,e);for(var n=0;n<this.panelsCore.length;n++){var r=this.panelsCore[n];r.updateElementCss(e)}},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 O().append(i.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 O().append(i.prototype.getCssHeader.call(this,this.cssClasses)).append(this.cssClasses.headerTab,this.hasTitleOnTop&&e).toString()},enumerable:!1,configurable:!0}),t.prototype.getTabsContainerCss=function(){return new O().append(this.cssClasses.tabsContainer).append(this.cssClasses.tabsContainerWithHeader,this.hasTitleOnTop).toString()},t.prototype.getPanelWrapperCss=function(e){return new O().append(this.cssClasses.panelWrapper,!e||e.visible).append(this.cssClasses.panelWrapperList,this.isRenderModeList).append(this.cssClasses.panelWrapperInRow,this.panelRemoveButtonLocation==="right").toString()},t.prototype.getPanelRemoveButtonCss=function(){return new O().append(this.cssClasses.button).append(this.cssClasses.buttonRemove).append(this.cssClasses.buttonRemoveRight,this.panelRemoveButtonLocation==="right").toString()},t.prototype.getAddButtonCss=function(){return new O().append(this.cssClasses.button).append(this.cssClasses.buttonAdd).append(this.cssClasses.buttonAdd+"--list-mode",this.displayMode==="list").toString()},t.prototype.getPrevButtonCss=function(){return new O().append(this.cssClasses.buttonPrev).append(this.cssClasses.buttonPrevDisabled,!this.isPrevButtonVisible).toString()},t.prototype.getNextButtonCss=function(){return new O().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&&this.visiblePanelCount===0},t.prototype.needResponsiveWidth=function(){var e=this.getPanel();return!!(e&&e.needResponsiveWidth())},Object.defineProperty(t.prototype,"hasTabbedMenu",{get:function(){return this.isRenderModeTab&&this.visiblePanels.length>0},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"tabbedMenu",{get:function(){return this.isRenderModeTab?(this.tabbedMenuValue||(this.tabbedMenuValue=new en,this.tabbedMenuValue.dotsItem.popupModel.showPointer=!1,this.tabbedMenuValue.dotsItem.popupModel.verticalPosition="bottom",this.tabbedMenuValue.dotsItem.popupModel.horizontalPosition="center",this.updateElementCss(!1)),this.tabbedMenuValue):null},enumerable:!1,configurable:!0}),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 n=[],r=new $({id:"sv-pd-prev-btn",title:this.panelPrevText,action:function(){e.goToPrevPanel()}}),o=new $({id:"sv-pd-next-btn",title:this.panelNextText,action:function(){e.goToNextPanel()}}),s=new $({id:"sv-pd-add-btn",component:"sv-paneldynamic-add-btn",data:{question:this}}),a=new $({id:"sv-prev-btn-icon",component:"sv-paneldynamic-prev-btn",data:{question:this}}),l=new $({id:"sv-pd-progress-text",component:"sv-paneldynamic-progress-text",data:{question:this}}),u=new $({id:"sv-pd-next-btn-icon",component:"sv-paneldynamic-next-btn",data:{question:this}});n.push(r,o,s,a,l,u),this.updateFooterActionsCallback=function(){var d=e.legacyNavigation,v=e.isRenderModeList,V=e.isMobile,T=!d&&!v;r.visible=T&&e.currentIndex>0,o.visible=T&&e.currentIndex<e.visiblePanelCount-1,o.needSpace=V&&o.visible&&r.visible,s.visible=e.canAddPanel,s.needSpace=e.isMobile&&!o.visible&&r.visible,l.visible=!e.isRenderModeList&&!V,l.needSpace=!d&&!e.isMobile;var R=d&&!v;a.visible=R,u.visible=R,a.needSpace=R},this.updateFooterActionsCallback(),this.footerToolbarValue.setItems(n)},t.prototype.createTabByPanel=function(e,n){var r=this;if(this.isRenderModeTab){var o=new Se(e,!0);o.onGetTextCallback=function(u){if(u||(u=r.locTabTitlePlaceholder.renderedHtml),!r.survey)return u;var d={title:u,panel:e,visiblePanelIndex:n};return r.survey.dynamicPanelGetTabTitle(r,d),d.title},o.sharedData=this.locTemplateTabTitle;var s=e.id,a=this.getPanelVisibleIndexById(s)===this.currentIndex,l=new Zc({id:this.id+"_tab_"+s,panelId:s,pressed:a,locTitle:o,disableHide:a,action:function(){r.currentIndex=r.getPanelVisibleIndexById(s)}});return l}},t.prototype.getTabbedMenuCss=function(e){var n=e??this.cssClasses;return new O().append(n.tabsRoot).append(n.tabsLeft,this.tabAlign==="left").append(n.tabsRight,this.tabAlign==="right").append(n.tabsCenter,this.tabAlign==="center").toString()},t.prototype.updateTabToolbarItemsPressedState=function(){if(this.isRenderModeTab&&!(this.currentIndex<0||this.currentIndex>=this.visiblePanelCount)){var e=this.visiblePanelsCore[this.currentIndex];this.tabbedMenu.renderedActions.forEach(function(n){var r=n.panelId===e.id;n.pressed=r,n.disableHide=r,n.mode==="popup"&&n.disableHide&&n.raiseUpdate()})}},t.prototype.updateTabToolbar=function(){var e=this;if(this.isRenderModeTab){for(var n=[],r=this.visiblePanelsCore,o=function(l){s.visiblePanelsCore.forEach(function(u){return n.push(e.createTabByPanel(r[l],l))})},s=this,a=0;a<r.length;a++)o(a);this.tabbedMenu.setItems(n)}},t.prototype.addTabFromToolbar=function(e,n){if(this.isRenderModeTab){var r=this.createTabByPanel(e,n);this.tabbedMenu.actions.splice(n,0,r),this.updateTabToolbarItemsPressedState()}},t.prototype.removeTabFromToolbar=function(e){if(this.isRenderModeTab){var n=this.tabbedMenu.actions.find(function(r){return r.panelId==e.id});n&&(this.tabbedMenu.actions.splice(this.tabbedMenu.actions.indexOf(n),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&&this.visiblePanelCount==1?!1: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(e){var n=i.prototype.calcCssClasses.call(this,e),r=this.tabbedMenu;return r&&(r.containerCss=this.getTabbedMenuCss(n),r.cssClasses=n.tabs,r.dotsItem.cssClasses=n.tabs,r.dotsItem.popupModel.contentComponentData.model.cssClasses=e.list),n},t.prototype.onMobileChanged=function(){i.prototype.onMobileChanged.call(this),this.updateFooterActions()},t.maxCheckCount=3,Ut([ae({})],t.prototype,"_renderedPanels",void 0),Ut([h({onSet:function(e,n){n.fireCallback(n.renderModeChangedCallback),n.updatePanelView()}})],t.prototype,"displayMode",void 0),Ut([h({onSet:function(e,n){n.fireCallback(n.currentIndexChangedCallback)}})],t.prototype,"showProgressBar",void 0),Ut([h({onSet:function(e,n){}})],t.prototype,"progressBarLocation",void 0),Ut([h({defaultValue:!1,onSet:function(e,n){n.updateFooterActions()}})],t.prototype,"legacyNavigation",void 0),t}(ue);x.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(i){return i.displayMode==="tab"}},{name:"tabTitlePlaceholder",serializationProperty:"locTabTitlePlaceholder",visibleIf:function(i){return i.displayMode==="tab"}},{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",defaultFunc:function(){return b.panel.maxPanelCount}},"defaultPanelValue:panelvalue","defaultValueFromLastPanel:boolean",{name:"panelsState",default:"default",choices:["default","collapsed","expanded","firstExpanded"],visibleIf:function(i){return i.displayMode==="list"}},{name:"keyName"},{name:"keyDuplicationError",serializationProperty:"locKeyDuplicationError"},{name:"confirmDelete:boolean"},{name:"confirmDeleteText",serializationProperty:"locConfirmDeleteText",visibleIf:function(i){return i.confirmDelete}},{name:"panelAddText",serializationProperty:"locPanelAddText",visibleIf:function(i){return i.allowAddPanel}},{name:"panelRemoveText",serializationProperty:"locPanelRemoveText",visibleIf:function(i){return i.allowRemovePanel}},{name:"panelPrevText",serializationProperty:"locPanelPrevText",visibleIf:function(i){return i.displayMode!=="list"}},{name:"panelNextText",serializationProperty:"locPanelNextText",visibleIf:function(i){return i.displayMode!=="list"}},{name:"showQuestionNumbers",default:"off",choices:["off","onPanel","onSurvey"]},{name:"renderMode",visible:!1,isSerializable:!1},{name:"displayMode",default:"list",choices:["list","carousel","tab"]},{name:"showProgressBar:boolean",alternativeName:"showRangeInProgress",default:!0,visibleIf:function(i){return i.displayMode==="carousel"}},{name:"progressBarLocation",default:"top",choices:["top","bottom","topBottom"],visibleIf:function(i){return i.showProgressBar}},{name:"tabAlign",default:"center",choices:["left","center","right"],visibleIf:function(i){return i.displayMode==="tab"}},{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(i){return i.allowRemovePanel}}],function(){return new ci("")},"question"),J.Instance.registerQuestion("paneldynamic",function(i){return new ci(i)});var tf=function(){function i(){}return i.getProgressTextInBarCss=function(t){return new O().append(t.progressText).append(t.progressTextInBar).toString()},i.getProgressTextUnderBarCss=function(t){return new O().append(t.progressText).append(t.progressTextUnderBar).toString()},i}(),Ye=function(){var i=function(t,e){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(n[o]=r[o])},i(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");i(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),Ns=function(i){Ye(t,i);function t(){var e=i.call(this)||this;return e.idValue=t.idCounter++,e.registerPropertyChangedHandlers(["operator","value","name"],function(){e.oldPropertiesChanged()}),e.registerPropertyChangedHandlers(["expression"],function(){e.onExpressionChanged()}),e}return Object.defineProperty(t,"operators",{get:function(){return t.operatorsValue!=null||(t.operatorsValue={empty:function(e,n){return!e},notempty:function(e,n){return!!e},equal:function(e,n){return e==n},notequal:function(e,n){return e!=n},contains:function(e,n){return e&&e.indexOf&&e.indexOf(n)>-1},notcontains:function(e,n){return!e||!e.indexOf||e.indexOf(n)==-1},greater:function(e,n){return e>n},less:function(e,n){return e<n},greaterorequal:function(e,n){return e>=n},lessorequal:function(e,n){return e<=n}}),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",""),n=this.expression?this.expression:this.buildExpression();return n&&(e+=", "+n),e},Object.defineProperty(t.prototype,"isInternal",{get:function(){return this.isGhost===!0},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,n,r,o,s){s===void 0&&(s=null),this.isExecutingOnNextPage=e,this.canBeExecuted(e)&&(n&&!this.canBeExecutedOnComplete()||this.isCheckRequired(r)&&(this.conditionRunner?this.perform(o,s):this.canSuccessOnEmptyExpression()&&this.triggerResult(!0,o,s)))},t.prototype.canSuccessOnEmptyExpression=function(){return!1},t.prototype.check=function(e){var n=t.operators[this.operator](e,this.value);n?this.onSuccess({},null):this.onFailure()},Object.defineProperty(t.prototype,"requireValidQuestion",{get:function(){return!1},enumerable:!1,configurable:!0}),t.prototype.perform=function(e,n){var r=this;this.conditionRunner.onRunComplete=function(o){r.triggerResult(o,e,n)},this.conditionRunner.run(e,n)},t.prototype.triggerResult=function(e,n,r){e?(this.onSuccess(n,r),this.onSuccessExecuted()):this.onFailure()},t.prototype.onSuccess=function(e,n){},t.prototype.onFailure=function(){},t.prototype.onSuccessExecuted=function(){},t.prototype.endLoadingFromJson=function(){i.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+" "+Oe.toOperandString(this.value)},t.prototype.isCheckRequired=function(e){return e?(this.createConditionRunner(),this.conditionRunner&&this.conditionRunner.hasFunction()===!0?!0:new me().isAnyKeyChanged(e,this.getUsedVariables())):!1},t.prototype.getUsedVariables=function(){if(!this.conditionRunner)return[];var e=this.conditionRunner.getVariables();if(Array.isArray(e))for(var n="-unwrapped",r=e.length-1;r>=0;r--){var o=e[r];o.endsWith(n)&&e.push(o.substring(0,o.length-n.length))}return e},t.prototype.createConditionRunner=function(){if(!this.conditionRunner){var e=this.expression;e||(e=this.buildExpression()),e&&(this.conditionRunner=new de(e))}},Object.defineProperty(t.prototype,"isRequireValue",{get:function(){return this.operator!=="empty"&&this.operator!="notempty"},enumerable:!1,configurable:!0}),t.idCounter=1,t.operatorsValue=null,t}(z),ut=function(i){Ye(t,i);function t(){var e=i.call(this)||this;return e.ownerValue=null,e}return 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 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}(Ns),Fs=function(i){Ye(t,i);function t(){var e=i.call(this)||this;return e.pages=[],e.questions=[],e}return t.prototype.getType=function(){return"visibletrigger"},t.prototype.onSuccess=function(e,n){this.onTrigger(this.onItemSuccess)},t.prototype.onFailure=function(){this.onTrigger(this.onItemFailure)},t.prototype.onTrigger=function(e){if(this.owner)for(var n=this.owner.getObjects(this.pages,this.questions),r=0;r<n.length;r++)e(n[r])},t.prototype.onItemSuccess=function(e){e.visible=!0},t.prototype.onItemFailure=function(e){e.visible=!1},t}(ut),_s=function(i){Ye(t,i);function t(){return i.call(this)||this}return t.prototype.getType=function(){return"completetrigger"},Object.defineProperty(t.prototype,"requireValidQuestion",{get:function(){return!0},enumerable:!1,configurable:!0}),t.prototype.isRealExecution=function(){return!b.triggers.executeCompleteOnValueChanged===this.isExecutingOnNextPage},t.prototype.onSuccess=function(e,n){this.owner&&(this.isRealExecution()?this.owner.setCompleted(this):this.owner.canBeCompleted(this,!0))},t.prototype.onFailure=function(){this.owner.canBeCompleted(this,!1)},t}(ut),Bs=function(i){Ye(t,i);function t(){return i.call(this)||this}return t.prototype.getType=function(){return"setvaluetrigger"},t.prototype.canBeExecuted=function(e){return!e&&!!this.setToName},t.prototype.onPropertyValueChanged=function(e,n,r){if(i.prototype.onPropertyValueChanged.call(this,e,n,r),e==="setToName"){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,n){!this.setToName||!this.owner||this.owner.setTriggerValue(this.setToName,this.setValue,this.isVariable)},t}(ut),ks=function(i){Ye(t,i);function t(){return i.call(this)||this}return 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===!b.triggers.executeSkipOnValueChanged},t.prototype.onSuccess=function(e,n){!this.gotoName||!this.owner||this.owner.focusQuestion(this.gotoName)},t}(ut),qs=function(i){Ye(t,i);function t(){return i.call(this)||this}return 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,n){var r=this;if(!(!this.owner||!this.runExpression)){var o=new et(this.runExpression);o.canRun&&(o.onRunComplete=function(s){r.onCompleteRunExpression(s)},o.run(e,n))}},t.prototype.onCompleteRunExpression=function(e){this.setToName&&e!==void 0&&this.owner.setTriggerValue(this.setToName,P.convertValToQuestionVal(e),!1)},t}(ut),Qs=function(i){Ye(t,i);function t(){return i.call(this)||this}return 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,n){!this.setToName||!this.owner||this.owner.copyTriggerValue(this.setToName,this.fromName,this.copyDisplayValue)},t.prototype.canSuccessOnEmptyExpression=function(){return!0},t.prototype.getUsedVariables=function(){var e=i.prototype.getUsedVariables.call(this);return e.length===0&&this.fromName&&e.push(this.fromName),e},t}(ut);x.addClass("trigger",[{name:"operator",default:"equal",visible:!1},{name:"value",visible:!1},"expression:condition"]),x.addClass("surveytrigger",[{name:"name",visible:!1}],null,"trigger"),x.addClass("visibletrigger",["pages:pages","questions:questions"],function(){return new Fs},"surveytrigger"),x.addClass("completetrigger",[],function(){return new _s},"surveytrigger"),x.addClass("setvaluetrigger",[{name:"!setToName:questionvalue"},{name:"setValue:triggervalue",dependsOn:"setToName",visibleIf:function(i){return!!i&&!!i.setToName}},{name:"isVariable:boolean",visible:!1}],function(){return new Bs},"surveytrigger"),x.addClass("copyvaluetrigger",[{name:"!fromName:questionvalue"},{name:"!setToName:questionvalue"},{name:"copyDisplayValue:boolean",visible:!1}],function(){return new Qs},"surveytrigger"),x.addClass("skiptrigger",[{name:"!gotoName:question"}],function(){return new ks},"surveytrigger"),x.addClass("runexpressiontrigger",[{name:"setToName:questionvalue"},"runExpression:expression"],function(){return new qs},"surveytrigger");var zs=function(){var i=function(t,e){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(n[o]=r[o])},i(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");i(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),nf=function(i,t,e,n){var r=arguments.length,o=r<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,e):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(i,t,e,n);else for(var a=i.length-1;a>=0;a--)(s=i[a])&&(o=(r<3?s(o):r>3?s(t,e,o):s(t,e))||o);return r>3&&o&&Object.defineProperty(t,e,o),o},Hs=function(i){zs(t,i);function t(e,n){n===void 0&&(n=null);var r=i.call(this)||this;return r.closeOnCompleteTimeout=0,n?r.surveyValue=n:r.surveyValue=r.createSurvey(e),r.surveyValue.fitToContainer=!0,r.windowElement=I.createElement("div"),r.survey.onComplete.add(function(o,s){r.onSurveyComplete()}),r.registerPropertyChangedHandlers(["isShowing"],function(){r.showingChangedCallback&&r.showingChangedCallback()}),r.registerPropertyChangedHandlers(["isExpanded"],function(){r.onExpandedChanged()}),r.width=new te(function(){return r.survey.width}),r.width=r.survey.width,r.updateCss(),r.onCreating(),r}return 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=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 n=e.header;n&&(this.setPropertyValue("cssHeaderRoot",n.root),this.setPropertyValue("cssHeaderTitleCollapsed",n.titleCollapsed),this.setPropertyValue("cssHeaderButtonsContainer",n.buttonsContainer),this.setPropertyValue("cssHeaderCollapseButton",n.collapseButton),this.setPropertyValue("cssHeaderCloseButton",n.closeButton),this.setPropertyValue("cssHeaderFullScreenButton",n.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 Ue(e)},t.prototype.onSurveyComplete=function(){if(!(this.closeOnCompleteTimeout<0))if(this.closeOnCompleteTimeout==0)this.hide();else{var e=this,n=null,r=function(){e.hide(),clearInterval(n)};n=setInterval(r,this.closeOnCompleteTimeout*1e3)}},t.prototype.onScroll=function(){this.survey.onScroll()},nf([h()],t.prototype,"width",void 0),t}(z),rf=function(i){zs(t,i);function t(){return i!==null&&i.apply(this,arguments)||this}return t}(Hs),of=function(){var i=function(t,e){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(n[o]=r[o])},i(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");i(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),fi=function(i){of(t,i);function t(e){var n=i.call(this,e)||this;return n.onScrollOutsideCallback=function(r){n.preventScrollOuside(r,r.deltaY)},n}return t.prototype.getStyleClass=function(){return i.prototype.getStyleClass.call(this).append("sv-popup--modal",!this.isOverlay)},t.prototype.getShowFooter=function(){return!0},t.prototype.createFooterActionBar=function(){var e=this;i.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(){e.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(e){(e.key==="Escape"||e.keyCode===27)&&this.model.onCancel(),i.prototype.onKeyDown.call(this,e)},t.prototype.updateOnShowing=function(){this.container&&this.container.addEventListener("wheel",this.onScrollOutsideCallback,{passive:!1}),i.prototype.updateOnShowing.call(this)},t.prototype.updateOnHiding=function(){this.container&&this.container.removeEventListener("wheel",this.onScrollOutsideCallback),i.prototype.updateOnHiding.call(this)},t}(_r),pi=function(){return pi=Object.assign||function(i){for(var t,e=1,n=arguments.length;e<n;e++){t=arguments[e];for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(i[r]=t[r])}return i},pi.apply(this,arguments)};function sf(i,t){var e,n=pi({},i);n.verticalPosition="top",n.horizontalPosition="left",n.showPointer=!1,n.isModal=!0,n.displayMode=i.displayMode||"popup";var r=new Et(i.componentName,i.data,n);r.isFocusedContent=(e=i.isFocusedContent)!==null&&e!==void 0?e:!0;var o=new fi(r);if(t&&t.appendChild){var s=I.createElement("div");t.appendChild(s),o.setComponentElement(s)}o.container||o.initializePopupContainer();var a=function(l,u){u.isVisible||s&&o.resetComponentElement(),o.onVisibilityChanged.remove(a)};return o.onVisibilityChanged.add(a),o}function af(i){return i.isModal?new fi(i):new kr(i)}var Us=function(){var i=function(t,e){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(n[o]=r[o])},i(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");i(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),di=function(i,t,e,n){var r=arguments.length,o=r<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,e):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(i,t,e,n);else for(var a=i.length-1;a>=0;a--)(s=i[a])&&(o=(r<3?s(o):r>3?s(t,e,o):s(t,e))||o);return r>3&&o&&Object.defineProperty(t,e,o),o},Ws=function(i){Us(t,i);function t(e,n,r){n===void 0&&(n=null),r===void 0&&(r="buttongroupitemvalue");var o=i.call(this,e,n,r)||this;return o.typeName=r,o}return t.prototype.getType=function(){return this.typeName?this.typeName:"buttongroupitemvalue"},di([h()],t.prototype,"iconName",void 0),di([h()],t.prototype,"iconSize",void 0),di([h()],t.prototype,"showCaption",void 0),t}(k),$s=function(i){Us(t,i);function t(e){return i.call(this,e)||this}return t.prototype.getType=function(){return"buttongroup"},t.prototype.getItemValueType=function(){return"buttongroupitemvalue"},t.prototype.supportOther=function(){return!1},t}(kt);x.addClass("buttongroup",[{name:"choices:buttongroupitemvalue[]"}],function(){return new $s("")},"checkboxbase"),x.addClass("buttongroupitemvalue",[{name:"showCaption:boolean",default:!0},{name:"iconName:text"},{name:"iconSize:number"}],function(i){return new Ws(i)},"itemvalue");var lf=function(){function i(t,e,n){this.question=t,this.item=e,this.index=n}return Object.defineProperty(i.prototype,"value",{get:function(){return this.item.value},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"iconName",{get:function(){return this.item.iconName},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"iconSize",{get:function(){return this.item.iconSize||24},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"caption",{get:function(){return this.item.locText},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"showCaption",{get:function(){return this.item.showCaption||this.item.showCaption===void 0},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"isRequired",{get:function(){return this.question.isRequired},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"selected",{get:function(){return this.question.isItemSelected(this.item)},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"readOnly",{get:function(){return this.question.isInputReadOnly||!this.item.isEnabled},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"name",{get:function(){return this.question.name+"_"+this.question.id},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"id",{get:function(){return this.question.inputId+"_"+this.index},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"hasErrors",{get:function(){return this.question.errors.length>0},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"describedBy",{get:function(){return this.question.errors.length>0?this.question.id+"_errors":null},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"labelClass",{get:function(){return new O().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(i.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}),i.prototype.onChange=function(){this.question.renderedValue=this.item.value},i}(),uf=function(){var i=function(t,e){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(n[o]=r[o])},i(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");i(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),cf=function(i,t,e,n){var r=arguments.length,o=r<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,e):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(i,t,e,n);else for(var a=i.length-1;a>=0;a--)(s=i[a])&&(o=(r<3?s(o):r>3?s(t,e,o):s(t,e))||o);return r>3&&o&&Object.defineProperty(t,e,o),o},En=function(i){uf(t,i);function t(){return i!==null&&i.apply(this,arguments)||this}return t.prototype.getSurvey=function(e){return this.owner},t.prototype.getType=function(){return"masksettings"},t.prototype.setData=function(e){var n=this,r=x.getProperties(this.getType());r.forEach(function(o){var s=e[o.name];n[o.name]=s!==void 0?s:o.getDefaultValue(n)})},t.prototype.getData=function(){var e=this,n={},r=x.getProperties(this.getType());return r.forEach(function(o){var s=e[o.name];o.isDefaultValue(s)||(n[o.name]=s)}),n},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"},t.prototype.getTypeForExpressions=function(){return"text"},cf([h()],t.prototype,"saveMaskedValue",void 0),t}(z);x.addClass("masksettings",[{name:"saveMaskedValue:boolean",visibleIf:function(i){return i?i.getType()!=="masksettings":!1}}],function(){return new En});var ff=function(){var i=function(t,e){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(n[o]=r[o])},i(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");i(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),pf=function(i,t,e,n){var r=arguments.length,o=r<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,e):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(i,t,e,n);else for(var a=i.length-1;a>=0;a--)(s=i[a])&&(o=(r<3?s(o):r>3?s(t,e,o):s(t,e))||o);return r>3&&o&&Object.defineProperty(t,e,o),o};function hi(i){for(var t=[],e=!1,n=Object.keys(b.maskSettings.patternDefinitions),r=0;r<i.length;r++){var o=i[r];o===b.maskSettings.patternEscapeChar?e=!0:e?(e=!1,t.push({type:"fixed",value:o})):t.push({type:n.indexOf(o)!==-1?"regex":"const",value:o})}return t}function df(i,t,e){for(var n=b.maskSettings.patternDefinitions[e.value];t<i.length;){if(i[t].match(n))return t;t++}return t}function hf(i,t,e){for(var n=i??"",r="",o=0,s=typeof t=="string"?hi(t):t,a=0;a<s.length;a++)switch(s[a].type){case"regex":if(o<n.length&&(o=df(n,o,s[a])),o<n.length)r+=n[o];else if(e)r+=b.maskSettings.patternPlaceholderChar;else return r;o++;break;case"const":case"fixed":r+=s[a].value,s[a].value===n[o]&&o++;break}return r}function gi(i,t,e,n){n===void 0&&(n=!1);var r="";if(!i)return r;for(var o=typeof t=="string"?hi(t):t,s=0;s<o.length;s++)if(o[s].type==="fixed"&&!n&&(r+=o[s].value),o[s].type==="regex"){var a=b.maskSettings.patternDefinitions[o[s].value];if(i[s]&&i[s].match(a))r+=i[s];else if(e){r="";break}else break}return r}var yi=function(i){ff(t,i);function t(){var e=i!==null&&i.apply(this,arguments)||this;return e.literals=[],e}return t.prototype.updateLiterals=function(){this.literals=hi(this.pattern||"")},t.prototype.onPropertyValueChanged=function(e,n,r){e==="pattern"&&this.updateLiterals()},t.prototype.getType=function(){return"patternmask"},t.prototype.fromJSON=function(e,n){i.prototype.fromJSON.call(this,e,n),this.updateLiterals()},t.prototype._getMaskedValue=function(e,n){n===void 0&&(n=!1);var r=e??"";return hf(r,this.literals,n)},t.prototype._getUnmaskedValue=function(e,n){n===void 0&&(n=!1);var r=e??"";return gi(r,this.literals,n)},t.prototype.processInput=function(e){var n={value:e.prevValue,caretPosition:e.selectionEnd,cancelPreventDefault:!1};if(!e.insertedChars&&e.selectionStart===e.selectionEnd)return n;var r=e.prevValue.slice(0,e.selectionStart)+(e.insertedChars||""),o=gi(e.prevValue.slice(0,e.selectionStart),this.literals.slice(0,e.selectionStart),!1),s=gi(e.prevValue.slice(e.selectionEnd),this.literals.slice(e.selectionEnd),!1,!0);return n.value=this._getMaskedValue(o+(e.insertedChars||"")+s,!0),!e.insertedChars&&e.inputDirection==="backward"?n.caretPosition=e.selectionStart:n.caretPosition=this._getMaskedValue(r).length,n},t.prototype.getMaskedValue=function(e){return this._getMaskedValue(e,!0)},t.prototype.getUnmaskedValue=function(e){return this._getUnmaskedValue(e,!0)},pf([h()],t.prototype,"pattern",void 0),t}(En);x.addClass("patternmask",[{name:"pattern"}],function(){return new yi},"masksettings");var gf=function(){var i=function(t,e){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(n[o]=r[o])},i(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");i(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),Vt=function(i,t,e,n){var r=arguments.length,o=r<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,e):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(i,t,e,n);else for(var a=i.length-1;a>=0;a--)(s=i[a])&&(o=(r<3?s(o):r>3?s(t,e,o):s(t,e))||o);return r>3&&o&&Object.defineProperty(t,e,o),o};function yf(i,t,e){t===void 0&&(t=!0),e===void 0&&(e=3);var n=[];if(t){for(var r=i.length-e;r>-e;r-=e)n.push(i.substring(r,r+e));n=n.reverse()}else for(var r=0;r<i.length;r+=e)n.push(i.substring(r,r+e));return n}var mi=function(i){gf(t,i);function t(){return i!==null&&i.apply(this,arguments)||this}return t.prototype.calccaretPosition=function(e,n,r){for(var o=e?this.displayNumber(this.parseNumber(e),!1).length:0,s=0,a=n.selectionStart,l=!n.insertedChars&&n.inputDirection==="forward",u=0;u<r.length;u++){var d=r[u];if(d!==this.thousandsSeparator&&s++,s===o+(l?1:0)){l?a=u:a=u+1;break}}return a},t.prototype.numericalCompositionIsEmpty=function(e){return!e.integralPart&&!e.fractionalPart},t.prototype.displayNumber=function(e,n,r){n===void 0&&(n=!0),r===void 0&&(r=!1);var o=e.integralPart;n&&o&&(o=yf(o).join(this.thousandsSeparator));var s=e.fractionalPart,a=e.isNegative?"-":"";if(s===""){if(r)return!o||o==="0"?o:a+o;var l=e.hasDecimalSeparator&&!r?this.decimalSeparator:"",u=o+l;return u==="0"?u:a+u}else return o=o||"0",s=s.substring(0,this.precision),[a+o,s].join(this.decimalSeparator)},t.prototype.convertNumber=function(e){var n,r=e.isNegative?"-":"";return e.fractionalPart?n=parseFloat(r+(e.integralPart||"0")+"."+e.fractionalPart.substring(0,this.precision)):n=parseInt(r+e.integralPart||"0"),n},t.prototype.validateNumber=function(e,n){var r=this.min||Number.MIN_SAFE_INTEGER,o=this.max||Number.MAX_SAFE_INTEGER;if(this.numericalCompositionIsEmpty(e))return!0;if(this.min!==void 0||this.max!==void 0){var s=this.convertNumber(e);if(Number.isNaN(s)||s>=r&&s<=o)return!0;if(!n){if(!e.hasDecimalSeparator&&s!=0){var a=s,l=s;if(s>0){if(s+1>r&&s<=o)return!0;for(;a=a*10+9,l=l*10,!(l>o);)if(a>r)return!0;return!1}if(s<0){if(s>=r&&s-1<o)return!0;for(;a=a*10,l=l*10-9,!(a<r);)if(l<o)return!0;return!1}}else{var u=Math.pow(.1,(e.fractionalPart||"").length);if(s>=0)return s+u>r&&s<=o;if(s<0)return s>=r&&s-u<o}return s>=0&&s<=o||s<0&&s>=r}return!1}return!0},t.prototype.parseNumber=function(e){for(var n={integralPart:"",fractionalPart:"",hasDecimalSeparator:!1,isNegative:!1},r=e==null?"":e.toString(),o=0,s=0;s<r.length;s++){var a=r[s];switch(a){case"-":{this.allowNegativeValues&&(this.min===void 0||this.min<0)&&o++;break}case this.decimalSeparator:{this.precision>0&&(n.hasDecimalSeparator=!0);break}case this.thousandsSeparator:break;default:a.match(zr)&&(n.hasDecimalSeparator?n.fractionalPart+=a:n.integralPart+=a)}}return n.isNegative=o%2!==0,n.integralPart.length>1&&n.integralPart[0]==="0"&&(n.integralPart=n.integralPart.slice(1)),n},t.prototype.getNumberMaskedValue=function(e,n){n===void 0&&(n=!1);var r=this.parseNumber(e);if(!this.validateNumber(r,n))return null;var o=this.displayNumber(r,!0,n);return o},t.prototype.getNumberUnmaskedValue=function(e){var n=this.parseNumber(e);if(!this.numericalCompositionIsEmpty(n))return this.convertNumber(n)},t.prototype.getTextAlignment=function(){return"right"},t.prototype.getMaskedValue=function(e){var n=e==null?"":e.toString();return n=n.replace(".",this.decimalSeparator),this.getNumberMaskedValue(n,!0)},t.prototype.getUnmaskedValue=function(e){return this.getNumberUnmaskedValue(e)},t.prototype.processInput=function(e){var n={value:e.prevValue,caretPosition:e.selectionEnd,cancelPreventDefault:!1},r=e.prevValue.slice(0,e.selectionStart)+(e.insertedChars||""),o=e.prevValue.slice(e.selectionEnd),s=r+o,a=this.parseNumber(s);if(!this.validateNumber(a,!1))return n;var l=this.getNumberMaskedValue(s),u=this.calccaretPosition(r,e,l);return n.value=l,n.caretPosition=u,n},t.prototype.getType=function(){return"numericmask"},t.prototype.isPropertyEmpty=function(e){return e===""||e===void 0||e===null},Vt([h()],t.prototype,"allowNegativeValues",void 0),Vt([h()],t.prototype,"decimalSeparator",void 0),Vt([h()],t.prototype,"precision",void 0),Vt([h()],t.prototype,"thousandsSeparator",void 0),Vt([h()],t.prototype,"min",void 0),Vt([h()],t.prototype,"max",void 0),t}(En);x.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 mi},"masksettings");var mf=function(){var i=function(t,e){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(n[o]=r[o])},i(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");i(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),In=function(){return In=Object.assign||function(i){for(var t,e=1,n=arguments.length;e<n;e++){t=arguments[e];for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(i[r]=t[r])}return i},In.apply(this,arguments)},Js=function(i,t,e,n){var r=arguments.length,o=r<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,e):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(i,t,e,n);else for(var a=i.length-1;a>=0;a--)(s=i[a])&&(o=(r<3?s(o):r>3?s(t,e,o):s(t,e))||o);return r>3&&o&&Object.defineProperty(t,e,o),o};function Gs(i,t){switch(i){case"hour":case"minute":case"second":case"day":case"month":return 2;case"timeMarker":case"year":return t;default:return 1}}function vf(i,t){var e=t;return i.count<i.maxCount&&(i.type==="day"&&parseInt(t[0])===0||i.type==="month"&&parseInt(t[0])===0)&&(e=t.slice(1,t.length)),e}function bf(i){for(var t=[],e,n=function(s,a,l){if(l===void 0&&(l=!1),e&&e===s){t[t.length-1].count++;var u=Gs(s,t[t.length-1].count);t[t.length-1].maxCount=u}else{var u=Gs(s,1);t.push({type:s,value:a,count:1,maxCount:u,upperCase:l})}},r=0;r<i.length;r++){var o=i[r];switch(o){case"m":n("month",o);break;case"d":n("day",o);break;case"y":n("year",o);break;case"h":n("hour",o,!1);break;case"H":n("hour",o,!0);break;case"M":n("minute",o);break;case"s":n("second",o);break;case"t":n("timeMarker",o);break;case"T":n("timeMarker",o,!0);break;default:t.push({type:"separator",value:o,count:1,maxCount:1,upperCase:!1});break}e=t[t.length-1].type}return t}var Ks=function(i){mf(t,i);function t(){var e=i!==null&&i.apply(this,arguments)||this;return e.defaultDate="1970-01-01T",e.turnOfTheCentury=68,e.twelve=12,e.lexems=[],e.inputDateTimeData=[],e.validBeginningOfNumbers={hour:1,hourU:2,minute:5,second:5,day:3,month:1},e}return Object.defineProperty(t.prototype,"hasDatePart",{get:function(){return this.lexems.some(function(e){return e.type==="day"||e.type==="month"||e.type==="year"})},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hasTimePart",{get:function(){return this.lexems.some(function(e){return e.type==="hour"||e.type==="minute"||e.type==="second"})},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"is12Hours",{get:function(){return this.lexems.filter(function(e){return e.type==="hour"&&!e.upperCase}).length>0},enumerable:!1,configurable:!0}),t.prototype.getType=function(){return"datetimemask"},t.prototype.getTypeForExpressions=function(){return this.hasTimePart?"datetime-local":"datetime"},t.prototype.updateLiterals=function(){this.lexems=bf(this.pattern||"")},t.prototype.leaveOnlyNumbers=function(e){for(var n="",r=0;r<e.length;r++)e[r].match(zr)&&(n+=e[r]);return n},t.prototype.getMaskedStrFromISO=function(e){var n=this,r=new Date(e);return this.initInputDateTimeData(),this.hasTimePart||(r=new Date(e+"T00:00:00")),this.hasDatePart||(r=new Date(this.defaultDate+e)),isNaN(r)||this.lexems.forEach(function(o,s){var a=n.inputDateTimeData[s];switch(a.isCompleted=!0,o.type){case"hour":{n.is12Hours?a.value=((r.getHours()-1)%n.twelve+1).toString():a.value=r.getHours().toString();break}case"minute":{a.value=r.getMinutes().toString();break}case"second":{a.value=r.getSeconds().toString();break}case"timeMarker":{var l=r.getHours()>=n.twelve?"pm":"am";a.value=o.upperCase?l.toUpperCase():l;break}case"day":{a.value=r.getDate().toString();break}case"month":{a.value=(r.getMonth()+1).toString();break}case"year":{var u=r.getFullYear();o.count==2&&(u=u%100),a.value=u.toString();break}}}),this.getFormatedString(!0)},t.prototype.initInputDateTimeData=function(){var e=this;this.inputDateTimeData=[],this.lexems.forEach(function(n){e.inputDateTimeData.push({lexem:n,isCompleted:!1,value:void 0})})},t.prototype.getISO_8601Format=function(e){var n=[],r=[];if(e.year!==void 0){var o=this.getPlaceholder(4,e.year.toString(),"0")+e.year;n.push(o)}if(e.month!==void 0&&e.year!==void 0){var s=this.getPlaceholder(2,e.month.toString(),"0")+e.month;n.push(s)}if(e.day!==void 0&&e.month!==void 0&&e.year!==void 0){var a=this.getPlaceholder(2,e.day.toString(),"0")+e.day;n.push(a)}if(e.hour!==void 0){var l=this.getPlaceholder(2,e.hour.toString(),"0")+e.hour;r.push(l)}if(e.minute!==void 0&&e.hour!==void 0){var u=this.getPlaceholder(2,e.minute.toString(),"0")+e.minute;r.push(u)}if(e.second!==void 0&&e.minute!==void 0&&e.hour!==void 0){var d=this.getPlaceholder(2,e.second.toString(),"0")+e.second;r.push(d)}var v=[];return n.length>0&&v.push(n.join("-")),r.length>1&&v.push(r.join(":")),v.join("T")},t.prototype.isYearValid=function(e){if(e.min===void 0&&e.max===void 0)return!1;var n=e.year.toString(),r=e.min.toISOString().slice(0,n.length),o=e.max.toISOString().slice(0,n.length);return e.year>=parseInt(r)&&e.year<=parseInt(o)},t.prototype.createIDateTimeCompositionWithDefaults=function(e,n){var r=e.day==29&&e.month==2,o=e.min.getFullYear(),s=e.max.getFullYear();r&&(o=Math.ceil(o/4)*4,s=Math.floor(o/4)*4,o>s&&(o=void 0,s=void 0));var a=e.year!==void 0?e.year:n?s:o,l=e.month!==void 0?e.month:n&&this.hasDatePart?12:1,u=e.day!==void 0?e.day:n&&this.hasDatePart?this.getMaxDateForMonth(a,l):1,d=e.hour!==void 0?e.hour:n?23:0,v=e.minute!==void 0?e.minute:n?59:0,V=e.second!==void 0?e.second:n?59:0;return{year:a,month:l,day:u,hour:d,minute:v,second:V}},t.prototype.getMaxDateForMonth=function(e,n){return n==2?e%4==0&&e%100!=0||e%400?29:28:[31,28,31,30,31,30,31,31,30,31,30,31][n-1]},t.prototype.isDateValid=function(e){var n=new Date(this.getISO_8601Format(this.createIDateTimeCompositionWithDefaults(e,!1))),r=new Date(this.getISO_8601Format(this.createIDateTimeCompositionWithDefaults(e,!0)));return!isNaN(n)&&(n.getDate()===e.day||e.day===void 0)&&(n.getMonth()===e.month-1||e.month===void 0)&&(n.getFullYear()===e.year||e.year===void 0)&&r>=e.min&&n<=e.max},t.prototype.getPlaceholder=function(e,n,r){var o=e-(n||"").length,s=o>0?r.repeat(o):"";return s},t.prototype.isDateValid12=function(e){return this.is12Hours?this.is12Hours&&e.hour>this.twelve?!1:e.timeMarker?e.timeMarker[0].toLowerCase()==="p"?(e.hour!==this.twelve&&(e.hour+=this.twelve),this.isDateValid(e)):(e.hour===this.twelve&&(e.hour=0),this.isDateValid(e)):this.isDateValid(e)?!0:(e.hour+=this.twelve,this.isDateValid(e)):this.isDateValid(e)},t.prototype.updateTimeMarkerInputDateTimeData=function(e,n){var r=e.value;if(r){var o="timeMarker",s=In({},n);s[o]=r,this.isDateValid12(s)?e.isCompleted=!0:r=r.slice(0,r.length-1),e.value=r||void 0,n[o]=r||void 0}},t.prototype.updateInputDateTimeData=function(e,n){var r=e.value;if(r){var o=e.lexem.type,s=In({},n);if(s[o]=parseInt(this.parseTwoDigitYear(e)),r.length===e.lexem.maxCount)if(this.isDateValid12(s)){e.isCompleted=!0,e.value=r||void 0,n[o]=parseInt(r)>0?parseInt(r):void 0;return}else r=r.slice(0,r.length-1);s[o]=parseInt(r);var a=parseInt(r[0]),l=this.validBeginningOfNumbers[o+(e.lexem.upperCase?"U":"")];o==="year"&&!this.isYearValid(s)?(r=r.slice(0,r.length-1),e.isCompleted=!1):l!==void 0&&a>l?this.isDateValid12(s)?e.isCompleted=!0:r=r.slice(0,r.length-1):l!==void 0&&a!==0&&a<=l&&(this.checkValidationDateTimePart(s,o,e),e.isCompleted&&!this.isDateValid12(s)&&(r=r.slice(0,r.length-1))),e.value=r||void 0,n[o]=parseInt(r)>0?parseInt(r):void 0}},t.prototype.checkValidationDateTimePart=function(e,n,r){var o=e[n],s=o*10,a=10;n==="month"&&(a=3),n==="hour"&&(a=this.is12Hours?3:5),r.isCompleted=!0;for(var l=0;l<a;l++)if(e[n]=s+l,this.isDateValid12(e)){r.isCompleted=!1;break}e[n]=o},t.prototype.getCorrectDatePartFormat=function(e,n){var r=e.lexem,o=e.value||"";if(o&&r.type==="timeMarker")return n&&(o=o+this.getPlaceholder(r.count,o,r.value)),o;if(o&&e.isCompleted&&(o=parseInt(o).toString()),o&&e.isCompleted){var s=this.getPlaceholder(r.count,o,"0");o=s+o}else o=vf(r,o),n&&(o+=this.getPlaceholder(r.count,o,r.value));return o},t.prototype.createIDateTimeComposition=function(){var e,n;this.hasDatePart?(e=this.min||"0001-01-01",n=this.max||"9999-12-31"):(e=this.defaultDate+(this.min||"00:00:00"),n=this.defaultDate+(this.max||"23:59:59"));var r={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(n)};return r},t.prototype.parseTwoDigitYear=function(e){var n=e.value;if(e.lexem.type!=="year"||e.lexem.count>2)return n;this.max&&this.max.length>=4&&(this.turnOfTheCentury=parseInt(this.max.slice(2,4)));var r=parseInt(n),o=(r>this.turnOfTheCentury?"19":"20")+n;return o},t.prototype.getFormatedString=function(e){var n="",r="",o=!1,s=this.inputDateTimeData.length-1;if(!e){var a=this.inputDateTimeData.filter(function(V){return!!V.value});s=this.inputDateTimeData.indexOf(a[a.length-1])}for(var l=0;l<this.inputDateTimeData.length;l++){var u=this.inputDateTimeData[l];switch(u.lexem.type){case"timeMarker":case"hour":case"minute":case"second":case"day":case"month":case"year":if(u.value===void 0&&!e)return n+=o?r:"",n;var d=e||s>l,v=this.getCorrectDatePartFormat(u,d);n+=r+v,o=u.isCompleted;break;case"separator":r=u.lexem.value;break}}return n},t.prototype.cleanTimeMarker=function(e,n){var r="";e=e.toUpperCase();for(var o=0;o<e.length;o++)(!r&&(e[o]=="P"||e[o]=="A")||r&&e[o]=="M")&&(r+=e[o]);return n?r=r.toUpperCase():r=r.toLowerCase(),r},t.prototype.setInputDateTimeData=function(e){var n=this,r=0;this.initInputDateTimeData(),this.lexems.forEach(function(o,s){if(e.length>0&&r<e.length){if(o.type==="separator")return;var a=n.inputDateTimeData[s],l=e[r],u=void 0;o.type==="timeMarker"?u=n.cleanTimeMarker(l,o.upperCase):u=n.leaveOnlyNumbers(l),a.value=u.slice(0,o.maxCount),r++}})},t.prototype._getMaskedValue=function(e,n){var r=this;n===void 0&&(n=!0);var o=e==null?"":e.toString(),s=this.getParts(o);this.setInputDateTimeData(s);var a=this.createIDateTimeComposition();this.inputDateTimeData.forEach(function(u){u.lexem.type==="timeMarker"?r.updateTimeMarkerInputDateTimeData(u,a):r.updateInputDateTimeData(u,a)});var l=this.getFormatedString(n);return l},t.prototype.getParts=function(e){for(var n=[],r=this.lexems.filter(function(v){return v.type!=="separator"}),o=this.lexems.filter(function(v){return v.type==="separator"}).map(function(v){return v.value}),s="",a=!1,l=!1,u=0;u<e.length;u++){var d=e[u];if(d.match(zr)||d===r[n.length].value||r[n.length].type==="timeMarker"?(a=!1,l=!1,s+=d):o.indexOf(d)!==-1?l||(a=!0,n.push(s),s=""):a||(l=!0,n.push(s),s=""),n.length>=r.length){a=!1;break}}return(s!=""||a)&&n.push(s),n},t.prototype.getUnmaskedValue=function(e){var n=this,r,o=e==null?"":e.toString(),s=this.getParts(o);this.setInputDateTimeData(s);var a=(r=this.inputDateTimeData.filter(function(d){return d.lexem.type==="timeMarker"})[0])===null||r===void 0?void 0:r.value.toLowerCase()[0],l=this.createIDateTimeComposition(),u=!1;return this.inputDateTimeData.forEach(function(d){var v=d.value;if(!(d.lexem.type=="timeMarker"||d.lexem.type=="separator")){if(!v||v.length<d.lexem.count){u=!0;return}var V=parseInt(n.parseTwoDigitYear(d));d.lexem.type=="hour"&&a==="p"&&V!=n.twelve&&(V+=n.twelve),l[d.lexem.type]=V}}),u?"":this.getISO_8601Format(l)},t.prototype.getMaskedValue=function(e){return this.getMaskedStrFromISO(e)},t.prototype.processInput=function(e){var n={value:e.prevValue,caretPosition:e.selectionEnd,cancelPreventDefault:!1},r=e.prevValue.slice(0,e.selectionStart),o=e.prevValue.slice(e.selectionEnd);return n.value=this._getMaskedValue(r+(e.insertedChars||"")+o),!e.insertedChars&&e.inputDirection==="backward"?n.caretPosition=e.selectionStart:n.caretPosition=this._getMaskedValue(r+(e.insertedChars||""),!1).length,n},Js([h()],t.prototype,"min",void 0),Js([h()],t.prototype,"max",void 0),t}(yi);x.addClass("datetimemask",[{name:"min",type:"datetime",enableIf:function(i){return!!i.pattern}},{name:"max",type:"datetime",enableIf:function(i){return!!i.pattern}}],function(){return new Ks},"patternmask");var Cf=function(){var i=function(t,e){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(n[o]=r[o])},i(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");i(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),Ys=function(i,t,e,n){var r=arguments.length,o=r<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,e):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(i,t,e,n);else for(var a=i.length-1;a>=0;a--)(s=i[a])&&(o=(r<3?s(o):r>3?s(t,e,o):s(t,e))||o);return r>3&&o&&Object.defineProperty(t,e,o),o},Xs=function(i){Cf(t,i);function t(){return i!==null&&i.apply(this,arguments)||this}return t.prototype.getType=function(){return"currencymask"},t.prototype.wrapText=function(e){var n=this.prefix||"",r=this.suffix||"",o=e;return o&&(o.indexOf(n)===-1&&(o=n+o),o.indexOf(r)===-1&&(o+=r),o)},t.prototype.unwrapInputArgs=function(e){var n=e.prevValue;if(n){if(this.prefix&&n.indexOf(this.prefix)!==-1){n=n.slice(n.indexOf(this.prefix)+this.prefix.length);var r=(this.prefix||"").length;e.selectionStart=Math.max(e.selectionStart-r,0),e.selectionEnd-=r}this.suffix&&n.indexOf(this.suffix)!==-1&&(n=n.slice(0,n.indexOf(this.suffix))),e.prevValue=n}},t.prototype.processInput=function(e){this.unwrapInputArgs(e);var n=i.prototype.processInput.call(this,e),r=(this.prefix||"").length;return n.value&&(n.caretPosition+=r),n.value=this.wrapText(n.value),n},t.prototype.getMaskedValue=function(e){var n=i.prototype.getMaskedValue.call(this,e);return this.wrapText(n)},Ys([h()],t.prototype,"prefix",void 0),Ys([h()],t.prototype,"suffix",void 0),t}(mi);x.addClass("currencymask",[{name:"prefix"},{name:"suffix"}],function(){return new Xs},"numericmask");var Wt,vi;Wt="1.12.23",b.version=Wt,vi="2025-02-11";function Pf(i,t){if(Wt!=i){var e="survey-core has version '"+Wt+"' and "+t+" has version '"+i+"'. SurveyJS libraries should have the same versions to work correctly.";console.error(e)}}function Vf(i){Zs(i)}function Zs(i){xf(i,ea,vi)}function wf(i){return ea[i.toString()]===!0}var ea={};function xf(i,t,e){if(i){var n=function(s){var a={},l,u=0,d,v=0,V,T="",R=String.fromCharCode,N=s.length,j="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";for(l=0;l<64;l++)a[j.charAt(l)]=l;for(d=0;d<N;d++){var A=a[s.charAt(d)];for(u=(u<<6)+A,v+=6;v>=8;)((V=u>>>(v-=8)&255)||d<N-2)&&(T+=R(V))}return T},r=n(i);if(r){var o=r.indexOf(";");o<0||Of(r.substring(0,o))&&(r=r.substring(o+1),r.split(",").forEach(function(s){var a=s.indexOf("=");a>0&&(t[s.substring(0,a)]=new Date(e)<=new Date(s.substring(a+1)))}))}}}function Of(i){if(!i)return!0;var t="domains:",e=i.indexOf(t);if(e<0)return!0;var n=i.substring(e+t.length).toLowerCase().split(",");if(!Array.isArray(n)||n.length===0)return!0;var r=E.getLocation();if(r&&r.hostname){var o=r.hostname.toLowerCase();n.push("localhost");for(var s=0;s<n.length;s++)if(o.indexOf(n[s])>-1)return!0;return!1}return!0}var Sf={"$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"},Tf={"$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"},Rf={"$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"},Ef={"$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"},If={"$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"},Af={"$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"},Df={"$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"},Lf={"$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"};function Mf(i,t){Object.keys(i||{}).forEach(function(e){var n=e.substring(1);t.style.setProperty("--"+n,i[e])})}var ta=function(){function i(){i.autoApplyTheme()}return i.autoApplyTheme=function(){if(!(se.currentType==="bootstrap"||se.currentType==="bootstrapmaterial")){var t=i.getIncludedThemeCss();t.length===1&&i.applyTheme(t[0].name)}},i.getAvailableThemes=function(){var t=se.getAvailableThemes().filter(function(e){return["defaultV2","default","modern"].indexOf(e)!==-1}).map(function(e){return{name:e,theme:se[e]}});return t},i.getIncludedThemeCss=function(){if(typeof b.environment>"u")return[];var t=b.environment.rootElement,e=i.getAvailableThemes(),n=Lt(t)?t.host:t;if(n){var r=getComputedStyle(n);if(r.length)return e.filter(function(o){return o.theme.variables&&r.getPropertyValue(o.theme.variables.themeMark)})}return[]},i.findSheet=function(t){if(typeof b.environment>"u")return null;for(var e=b.environment.root.styleSheets,n=0;n<e.length;n++)if(e[n].ownerNode&&e[n].ownerNode.id===t)return e[n];return null},i.createSheet=function(t){var e=b.environment.stylesSheetsMountContainer,n=I.createElement("style");return n.id=t,n.appendChild(new Text("")),Zn(e).appendChild(n),i.Logger&&i.Logger.log("style sheet "+t+" created"),n.sheet},i.applyTheme=function(t,e){if(t===void 0&&(t="default"),!(typeof b.environment>"u")){var n=b.environment.rootElement,r=Lt(n)?n.host:n;if(se.currentType=t,i.Enabled){if(t!=="bootstrap"&&t!=="bootstrapmaterial"){Mf(i.ThemeColors[t],r),i.Logger&&i.Logger.log("apply theme "+t+" completed");return}var o=i.ThemeCss[t];if(!o){se.currentType="defaultV2";return}i.insertStylesRulesIntoDocument();var s=e||i.ThemeSelector[t]||i.ThemeSelector.default,a=(t+s).trim(),l=i.findSheet(a);if(!l){l=i.createSheet(a);var u=i.ThemeColors[t]||i.ThemeColors.default;Object.keys(o).forEach(function(d){var v=o[d];Object.keys(u||{}).forEach(function(V){return v=v.replace(new RegExp("\\"+V,"g"),u[V])});try{d.indexOf("body")===0?l.insertRule(d+" { "+v+" }",0):l.insertRule(s+d+" { "+v+" }",0)}catch{}})}}i.Logger&&i.Logger.log("apply theme "+t+" completed")}},i.insertStylesRulesIntoDocument=function(){if(i.Enabled){var t=i.findSheet(i.SurveyJSStylesSheetId);t||(t=i.createSheet(i.SurveyJSStylesSheetId)),Object.keys(i.Styles).length&&Object.keys(i.Styles).forEach(function(e){try{t.insertRule(e+" { "+i.Styles[e]+" }",0)}catch{}}),Object.keys(i.Media).length&&Object.keys(i.Media).forEach(function(e){try{t.insertRule(i.Media[e].media+" { "+e+" { "+i.Media[e].style+" } }",0)}catch{}})}},i.SurveyJSStylesSheetId="surveyjs-styles",i.Styles={},i.Media={},i.ThemeColors={modern:Sf,default:Tf,orange:Rf,darkblue:Ef,darkrose:If,stone:Af,winter:Df,winterstone:Lf},i.ThemeCss={},i.ThemeSelector={default:".sv_main ",modern:".sv-root-modern "},i.Enabled=!0,i}();Ue.prototype.onBeforeRunConstructor=function(){E.isAvailable()&&ta.autoApplyTheme()};var Xe={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",titleExpandableSvg:"sd-element__title-expandable-svg",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",titleExpandableSvg:"sd-element__title-expandable-svg",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",rootSelectToRankSwapAreas:"sv-ranking--select-to-rank-swap-areas",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:"sv_matrix_dynamic_button--add",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",draggedRow:"sv-matrixdynamic-dragged-row"},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"}};se.default=Xe,se.orange=Xe,se.darkblue=Xe,se.darkrose=Xe,se.stone=Xe,se.winter=Xe,se.winterstone=Xe;var na={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",titleExpandableSvg:"sd-element__title-expandable-svg",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",number:"sv-page__num",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",titleExpandableSvg:"sd-element__title-expandable-svg",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",rootSelectToRankSwapAreas:"sv-ranking--select-to-rank-swap-areas",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",draggedRow:"sv-matrixdynamic-dragged-row"},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"}};se.modern=na;var ra=function(){function i(){this.icons={},this.iconPrefix="icon-",this.onIconsChanged=new Ve}return i.prototype.processId=function(t,e){return t.indexOf(e)==0&&(t=t.substring(e.length)),t=nr[t]||t,t},i.prototype.registerIconFromSymbol=function(t,e){this.icons[t]=e},i.prototype.registerIconFromSvgViaElement=function(t,e,n){if(n===void 0&&(n=this.iconPrefix),!!I.isAvailable()){t=this.processId(t,n);var r=I.createElement("div");r.innerHTML=e;var o=I.createElement("symbol"),s=r.querySelector("svg");o.innerHTML=s.innerHTML;for(var a=0;a<s.attributes.length;a++)o.setAttributeNS("http://www.w3.org/2000/svg",s.attributes[a].name,s.attributes[a].value);o.id=n+t,this.registerIconFromSymbol(t,o.outerHTML)}},i.prototype.registerIconFromSvg=function(t,e,n){n===void 0&&(n=this.iconPrefix),t=this.processId(t,n);var r="<svg ",o="</svg>";e=e.trim();var s=e.toLowerCase();return s.substring(0,r.length)===r&&s.substring(s.length-o.length,s.length)===o?(this.registerIconFromSymbol(t,'<symbol id="'+n+t+'" '+e.substring(r.length,s.length-o.length)+"</symbol>"),!0):!1},i.prototype.registerIconsFromFolder=function(t){var e=this;t.keys().forEach(function(n){e.registerIconFromSvg(n.substring(2,n.length-4).toLowerCase(),t(n))})},i.prototype.registerIcons=function(t){for(var e in t)this.registerIconFromSvg(e,t[e]);this.updateMarkup()},i.prototype.iconsRenderedHtml=function(){var t=this;return Object.keys(this.icons).map(function(e){return t.icons[e]}).join("")},i.prototype.updateMarkup=function(){this.onIconsChanged.fire(this,{})},i}(),jf=new ra,An={};function Nf(i,t){An[i]||(An[i]={});var e=An[i];for(var n in t)e[n]=t[n]}}})})}(jn)),jn.exports}var sh=oh();const ah=rh({__proto__:null},[sh]);export{sh as a,oh as r,ah as s}; diff --git a/compendium_v2/static/survey.core-ohqmCpQR.js b/compendium_v2/static/survey.core-ohqmCpQR.js deleted file mode 100644 index 68c166d3..00000000 --- a/compendium_v2/static/survey.core-ohqmCpQR.js +++ /dev/null @@ -1,36 +0,0 @@ -function nh(Ot,Nn){for(var qe=0;qe<Nn.length;qe++){const m=Nn[qe];if(typeof m!="string"&&!Array.isArray(m)){for(const y in m)if(y!=="default"&&!(y in Ot)){const E=Object.getOwnPropertyDescriptor(m,y);E&&Object.defineProperty(Ot,y,E.get?E:{enumerable:!0,get:()=>m[y]})}}}return Object.freeze(Object.defineProperty(Ot,Symbol.toStringTag,{value:"Module"}))}var jn={exports:{}};/*! - * surveyjs - Survey JavaScript library v1.12.20 - * Copyright (c) 2015-2025 Devsoft Baltic OÜ - http://surveyjs.io/ - * License: MIT (http://www.opensource.org/licenses/mit-license.php) - */var rh=jn.exports,el;function ih(){return el||(el=1,function(Ot,Nn){(function(m,y){Ot.exports=y()})(rh,function(){return function(qe){var m={};function y(E){if(m[E])return m[E].exports;var I=m[E]={i:E,l:!1,exports:{}};return qe[E].call(I.exports,I,I.exports,y),I.l=!0,I.exports}return y.m=qe,y.c=m,y.d=function(E,I,Z){y.o(E,I)||Object.defineProperty(E,I,{enumerable:!0,get:Z})},y.r=function(E){typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(E,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(E,"__esModule",{value:!0})},y.t=function(E,I){if(I&1&&(E=y(E)),I&8||I&4&&typeof E=="object"&&E&&E.__esModule)return E;var Z=Object.create(null);if(y.r(Z),Object.defineProperty(Z,"default",{enumerable:!0,value:E}),I&2&&typeof E!="string")for(var Jt in E)y.d(Z,Jt,(function(P){return E[P]}).bind(null,Jt));return Z},y.n=function(E){var I=E&&E.__esModule?function(){return E.default}:function(){return E};return y.d(I,"a",I),I},y.o=function(E,I){return Object.prototype.hasOwnProperty.call(E,I)},y.p="",y(y.s="./src/entries/core.ts")}({"./src/entries/core.ts":function(qe,m,y){y.r(m),y.d(m,"Version",function(){return Wt}),y.d(m,"ReleaseDate",function(){return mi}),y.d(m,"checkLibraryVersion",function(){return Cf}),y.d(m,"setLicenseKey",function(){return Pf}),y.d(m,"slk",function(){return Zs}),y.d(m,"hasLicense",function(){return Vf}),y.d(m,"settings",function(){return b}),y.d(m,"Helpers",function(){return P}),y.d(m,"AnswerCountValidator",function(){return wo}),y.d(m,"EmailValidator",function(){return ur}),y.d(m,"NumericValidator",function(){return Po}),y.d(m,"RegexValidator",function(){return xo}),y.d(m,"SurveyValidator",function(){return it}),y.d(m,"TextValidator",function(){return Vo}),y.d(m,"ValidatorResult",function(){return Te}),y.d(m,"ExpressionValidator",function(){return Oo}),y.d(m,"ValidatorRunner",function(){return Co}),y.d(m,"ItemValue",function(){return k}),y.d(m,"Base",function(){return z}),y.d(m,"Event",function(){return zn}),y.d(m,"EventBase",function(){return Ve}),y.d(m,"ArrayChanges",function(){return tt}),y.d(m,"ComputedUpdater",function(){return te}),y.d(m,"SurveyError",function(){return ge}),y.d(m,"SurveyElementCore",function(){return nn}),y.d(m,"SurveyElement",function(){return le}),y.d(m,"DragTypeOverMeEnum",function(){return Xn}),y.d(m,"CalculatedValue",function(){return Ro}),y.d(m,"CustomError",function(){return we}),y.d(m,"AnswerRequiredError",function(){return go}),y.d(m,"OneAnswerRequiredError",function(){return yo}),y.d(m,"RequreNumericError",function(){return mo}),y.d(m,"ExceedSizeError",function(){return vo}),y.d(m,"LocalizableString",function(){return Se}),y.d(m,"LocalizableStrings",function(){return so}),y.d(m,"HtmlConditionItem",function(){return Eo}),y.d(m,"UrlConditionItem",function(){return Io}),y.d(m,"ChoicesRestful",function(){return ot}),y.d(m,"ChoicesRestfull",function(){return Du}),y.d(m,"FunctionFactory",function(){return U}),y.d(m,"registerFunction",function(){return ll}),y.d(m,"ConditionRunner",function(){return de}),y.d(m,"ExpressionRunner",function(){return et}),y.d(m,"ExpressionExecutor",function(){return Zi}),y.d(m,"Operand",function(){return gt}),y.d(m,"Const",function(){return qn}),y.d(m,"BinaryOperand",function(){return Ji}),y.d(m,"Variable",function(){return Gi}),y.d(m,"FunctionOperand",function(){return Ki}),y.d(m,"ArrayOperand",function(){return Xt}),y.d(m,"UnaryOperand",function(){return kn}),y.d(m,"ConditionsParser",function(){return Yi}),y.d(m,"ProcessValue",function(){return me}),y.d(m,"JsonError",function(){return dt}),y.d(m,"JsonIncorrectTypeError",function(){return Mi}),y.d(m,"JsonMetadata",function(){return Ai}),y.d(m,"JsonMetadataClass",function(){return Ii}),y.d(m,"JsonMissingTypeError",function(){return Li}),y.d(m,"JsonMissingTypeErrorBase",function(){return Bn}),y.d(m,"JsonObject",function(){return fe}),y.d(m,"JsonObjectProperty",function(){return Gt}),y.d(m,"JsonRequiredPropertyError",function(){return ji}),y.d(m,"JsonUnknownPropertyError",function(){return Di}),y.d(m,"Serializer",function(){return x}),y.d(m,"property",function(){return h}),y.d(m,"propertyArray",function(){return ae}),y.d(m,"MatrixDropdownCell",function(){return wr}),y.d(m,"MatrixDropdownRowModelBase",function(){return _e}),y.d(m,"QuestionMatrixDropdownModelBase",function(){return bt}),y.d(m,"MatrixDropdownColumn",function(){return jt}),y.d(m,"matrixDropdownColumnTypes",function(){return br}),y.d(m,"QuestionMatrixDropdownRenderedCell",function(){return De}),y.d(m,"QuestionMatrixDropdownRenderedRow",function(){return Pr}),y.d(m,"QuestionMatrixDropdownRenderedErrorRow",function(){return Bo}),y.d(m,"QuestionMatrixDropdownRenderedTable",function(){return Vr}),y.d(m,"MatrixDropdownRowModel",function(){return qo}),y.d(m,"QuestionMatrixDropdownModel",function(){return xr}),y.d(m,"MatrixDynamicRowModel",function(){return Uo}),y.d(m,"QuestionMatrixDynamicModel",function(){return Er}),y.d(m,"MatrixRowModel",function(){return us}),y.d(m,"MatrixCells",function(){return cs}),y.d(m,"QuestionMatrixModel",function(){return Qr}),y.d(m,"QuestionMatrixBaseModel",function(){return gr}),y.d(m,"MultipleTextItemModel",function(){return Wr}),y.d(m,"MultipleTextCell",function(){return Jr}),y.d(m,"MultipleTextErrorCell",function(){return Cs}),y.d(m,"MutlipleTextErrorRow",function(){return bs}),y.d(m,"MutlipleTextRow",function(){return $r}),y.d(m,"QuestionMultipleTextModel",function(){return wn}),y.d(m,"MultipleTextEditorModel",function(){return vs}),y.d(m,"PanelModel",function(){return Bt}),y.d(m,"PanelModelBase",function(){return Lr}),y.d(m,"QuestionRowModel",function(){return es}),y.d(m,"FlowPanelModel",function(){return Ps}),y.d(m,"PageModel",function(){return Mr}),y.d(m,"DefaultTitleModel",function(){return wc}),y.d(m,"Question",function(){return ue}),y.d(m,"QuestionNonValue",function(){return xn}),y.d(m,"QuestionEmptyModel",function(){return Vs}),y.d(m,"QuestionCheckboxBase",function(){return kt}),y.d(m,"QuestionSelectBase",function(){return jr}),y.d(m,"QuestionCheckboxModel",function(){return Qt}),y.d(m,"QuestionTagboxModel",function(){return Gr}),y.d(m,"QuestionRankingModel",function(){return Kr}),y.d(m,"QuestionCommentModel",function(){return Yr}),y.d(m,"QuestionDropdownModel",function(){return qt}),y.d(m,"QuestionFactory",function(){return J}),y.d(m,"ElementFactory",function(){return ze}),y.d(m,"QuestionFileModel",function(){return Zr}),y.d(m,"QuestionFilePage",function(){return Es}),y.d(m,"QuestionHtmlModel",function(){return ei}),y.d(m,"QuestionRadiogroupModel",function(){return ti}),y.d(m,"QuestionRatingModel",function(){return ri}),y.d(m,"RenderedRatingItem",function(){return Sn}),y.d(m,"QuestionExpressionModel",function(){return vr}),y.d(m,"QuestionTextBase",function(){return Pn}),y.d(m,"CharacterCounter",function(){return ds}),y.d(m,"QuestionTextModel",function(){return Vn}),y.d(m,"QuestionBooleanModel",function(){return ii}),y.d(m,"QuestionImagePickerModel",function(){return Ht}),y.d(m,"ImageItemValue",function(){return Ds}),y.d(m,"QuestionImageModel",function(){return oi}),y.d(m,"QuestionSignaturePadModel",function(){return ai}),y.d(m,"QuestionPanelDynamicModel",function(){return ui}),y.d(m,"QuestionPanelDynamicItem",function(){return pe}),y.d(m,"SurveyTimer",function(){return Ir}),y.d(m,"SurveyTimerModel",function(){return Jo}),y.d(m,"tryFocusPage",function(){return pc}),y.d(m,"createTOCListModel",function(){return rs}),y.d(m,"getTocRootCss",function(){return os}),y.d(m,"TOCModel",function(){return st}),y.d(m,"SurveyProgressModel",function(){return ef}),y.d(m,"ProgressButtons",function(){return ts}),y.d(m,"ProgressButtonsResponsivityManager",function(){return fc}),y.d(m,"SurveyModel",function(){return Ue}),y.d(m,"SurveyTrigger",function(){return ut}),y.d(m,"SurveyTriggerComplete",function(){return _s}),y.d(m,"SurveyTriggerSetValue",function(){return Bs}),y.d(m,"SurveyTriggerVisible",function(){return Fs}),y.d(m,"SurveyTriggerCopyValue",function(){return Qs}),y.d(m,"SurveyTriggerRunExpression",function(){return qs}),y.d(m,"SurveyTriggerSkip",function(){return ks}),y.d(m,"Trigger",function(){return Ns}),y.d(m,"PopupSurveyModel",function(){return Hs}),y.d(m,"SurveyWindowModel",function(){return nf}),y.d(m,"TextPreProcessor",function(){return yr}),y.d(m,"Notifier",function(){return Go}),y.d(m,"Cover",function(){return vn}),y.d(m,"CoverCell",function(){return Ko}),y.d(m,"dxSurveyService",function(){return $o}),y.d(m,"englishStrings",function(){return Fn}),y.d(m,"surveyLocalization",function(){return ce}),y.d(m,"surveyStrings",function(){return rl}),y.d(m,"getLocaleString",function(){return oe}),y.d(m,"getLocaleStrings",function(){return tl}),y.d(m,"setupLocale",function(){return nl}),y.d(m,"QuestionCustomWidget",function(){return So}),y.d(m,"CustomWidgetCollection",function(){return cr}),y.d(m,"QuestionCustomModel",function(){return No}),y.d(m,"QuestionCompositeModel",function(){return Fo}),y.d(m,"ComponentQuestionJSON",function(){return Mo}),y.d(m,"ComponentCollection",function(){return cn}),y.d(m,"ListModel",function(){return Rt}),y.d(m,"MultiSelectListModel",function(){return ws}),y.d(m,"PopupModel",function(){return Et}),y.d(m,"createDialogOptions",function(){return Gl}),y.d(m,"PopupBaseViewModel",function(){return _r}),y.d(m,"PopupDropdownViewModel",function(){return kr}),y.d(m,"PopupModalViewModel",function(){return ci}),y.d(m,"createPopupViewModel",function(){return sf}),y.d(m,"createPopupModalViewModel",function(){return of}),y.d(m,"DropdownListModel",function(){return Cn}),y.d(m,"DropdownMultiSelectListModel",function(){return xs}),y.d(m,"QuestionButtonGroupModel",function(){return $s}),y.d(m,"ButtonGroupItemModel",function(){return af}),y.d(m,"ButtonGroupItemValue",function(){return Ws}),y.d(m,"IsMobile",function(){return gn}),y.d(m,"IsTouch",function(){return ne}),y.d(m,"_setIsTouch",function(){return Hu}),y.d(m,"confirmAction",function(){return ao}),y.d(m,"confirmActionAsync",function(){return At}),y.d(m,"detectIEOrEdge",function(){return Dt}),y.d(m,"doKey2ClickUp",function(){return fo}),y.d(m,"doKey2ClickDown",function(){return cu}),y.d(m,"doKey2ClickBlur",function(){return co}),y.d(m,"loadFileFromBase64",function(){return lo}),y.d(m,"increaseHeightByContent",function(){return or}),y.d(m,"createSvg",function(){return au}),y.d(m,"chooseFiles",function(){return ho}),y.d(m,"sanitizeEditableContent",function(){return du}),y.d(m,"prepareElementForVerticalAnimation",function(){return Ae}),y.d(m,"cleanHtmlElementAfterAnimation",function(){return Ce}),y.d(m,"classesToSelector",function(){return be}),y.d(m,"renamedIcons",function(){return nr}),y.d(m,"getIconNameFromProxy",function(){return uo}),y.d(m,"InputMaskBase",function(){return En}),y.d(m,"InputMaskPattern",function(){return gi}),y.d(m,"InputMaskNumeric",function(){return yi}),y.d(m,"InputMaskDateTime",function(){return Ks}),y.d(m,"InputMaskCurrency",function(){return Xs}),y.d(m,"CssClassBuilder",function(){return O}),y.d(m,"TextAreaModel",function(){return ln}),y.d(m,"surveyCss",function(){return se}),y.d(m,"defaultV2Css",function(){return yn}),y.d(m,"defaultV2ThemeName",function(){return Wo}),y.d(m,"DragDropCore",function(){return Sr}),y.d(m,"DragDropChoices",function(){return Os}),y.d(m,"DragDropRankingSelectToRank",function(){return Ts}),y.d(m,"StylesManager",function(){return ta}),y.d(m,"defaultStandardCss",function(){return Xe}),y.d(m,"modernCss",function(){return na}),y.d(m,"SvgIconRegistry",function(){return ra}),y.d(m,"SvgRegistry",function(){return Mf}),y.d(m,"SvgThemeSets",function(){return An}),y.d(m,"addIconsToThemeSet",function(){return jf}),y.d(m,"RendererFactory",function(){return To}),y.d(m,"ResponsivityManager",function(){return Hn}),y.d(m,"VerticalResponsivityManager",function(){return Hl}),y.d(m,"unwrap",function(){return uu}),y.d(m,"getOriginalEvent",function(){return fu}),y.d(m,"getElement",function(){return Zn}),y.d(m,"activateLazyRenderingChecks",function(){return er}),y.d(m,"createDropdownActionModel",function(){return Yl}),y.d(m,"createDropdownActionModelAdvanced",function(){return Wn}),y.d(m,"createPopupModelWithListModel",function(){return $n}),y.d(m,"getActionDropdownButtonTarget",function(){return ro}),y.d(m,"BaseAction",function(){return Zt}),y.d(m,"Action",function(){return $}),y.d(m,"ActionDropdownViewModel",function(){return Xl}),y.d(m,"AnimationUtils",function(){return Jn}),y.d(m,"AnimationPropertyUtils",function(){return io}),y.d(m,"AnimationGroupUtils",function(){return Gn}),y.d(m,"AnimationProperty",function(){return tn}),y.d(m,"AnimationBoolean",function(){return Kn}),y.d(m,"AnimationGroup",function(){return Qe}),y.d(m,"AnimationTab",function(){return Yn}),y.d(m,"AdaptiveActionContainer",function(){return en}),y.d(m,"defaultActionBarCss",function(){return Un}),y.d(m,"ActionContainer",function(){return Ee}),y.d(m,"DragOrClickHelper",function(){return Tr}),y.d(m,"Model",function(){return Ue});var E=function(){function i(){}return i.isAvailable=function(){return typeof window<"u"},i.isFileReaderAvailable=function(){return i.isAvailable()?!!window.FileReader:!1},i.getLocation=function(){if(i.isAvailable())return window.location},i.getVisualViewport=function(){return i.isAvailable()?window.visualViewport:null},i.getInnerWidth=function(){if(i.isAvailable())return window.innerWidth},i.getInnerHeight=function(){return i.isAvailable()?window.innerHeight:null},i.getWindow=function(){if(i.isAvailable())return window},i.hasOwn=function(t){if(i.isAvailable())return t in window},i.getSelection=function(){if(i.isAvailable()&&window.getSelection)return window.getSelection()},i.requestAnimationFrame=function(t){if(i.isAvailable())return window.requestAnimationFrame(t)},i.addEventListener=function(t,e){i.isAvailable()&&window.addEventListener(t,e)},i.removeEventListener=function(t,e){i.isAvailable()&&window.removeEventListener(t,e)},i.matchMedia=function(t){return!i.isAvailable()||typeof window.matchMedia>"u"?null:window.matchMedia(t)},i}(),I=function(){function i(){}return i.isAvailable=function(){return typeof document<"u"},i.getBody=function(){if(i.isAvailable())return document.body},i.getDocumentElement=function(){if(i.isAvailable())return document.documentElement},i.getDocument=function(){if(i.isAvailable())return document},i.getCookie=function(){if(i.isAvailable())return document.cookie},i.setCookie=function(t){i.isAvailable()&&(document.cookie=t)},i.activeElementBlur=function(){if(i.isAvailable()){var t=document.activeElement;t&&t.blur&&t.blur()}},i.createElement=function(t){if(i.isAvailable())return document.createElement(t)},i.getComputedStyle=function(t){return i.isAvailable()?document.defaultView.getComputedStyle(t):new CSSStyleDeclaration},i.addEventListener=function(t,e){i.isAvailable()&&document.addEventListener(t,e)},i.removeEventListener=function(t,e){i.isAvailable()&&document.removeEventListener(t,e)},i}();function Z(i,t){if(!t)return new Date;!b.storeUtcDates&&typeof t=="string"&&Jt(t)&&(t+="T00:00:00");var e=new Date(t);return b.onDateCreated(e,i,t)}function Jt(i){return i.indexOf("T")>0||!/\d{4}-\d{2}-\d{2}/.test(i)?!1:!isNaN(new Date(i).getTime())}var P=function(){function i(){}return i.isValueEmpty=function(t){if(Array.isArray(t)&&t.length===0)return!0;if(t&&i.isValueObject(t)&&t.constructor===Object){for(var e in t)if(!i.isValueEmpty(t[e]))return!1;return!0}return!t&&t!==0&&t!==!1},i.isArrayContainsEqual=function(t,e){if(!Array.isArray(t)||!Array.isArray(e)||t.length!==e.length)return!1;for(var n=0;n<t.length;n++){for(var r=0;r<e.length&&!i.isTwoValueEquals(t[n],e[r]);r++);if(r===e.length)return!1}return!0},i.isArraysEqual=function(t,e,n,r,o){if(n===void 0&&(n=!1),!Array.isArray(t)||!Array.isArray(e)||t.length!==e.length)return!1;if(n){for(var s=[],a=[],l=0;l<t.length;l++)s.push(t[l]),a.push(e[l]);s.sort(),a.sort(),t=s,e=a}for(var l=0;l<t.length;l++)if(!i.isTwoValueEquals(t[l],e[l],n,r,o))return!1;return!0},i.compareStrings=function(t,e){var n=b.comparator.normalizeTextCallback;if(t&&(t=n(t,"compare").trim()),e&&(e=n(e,"compare").trim()),!t&&!e)return 0;if(!t)return-1;if(!e)return 1;if(t===e)return 0;for(var r=-1,o=0;o<t.length&&o<e.length;o++){if(this.isCharDigit(t[o])&&this.isCharDigit(e[o])){r=o;break}if(t[o]!==e[o])break}if(r>-1){var s=this.getNumberFromStr(t,r),a=this.getNumberFromStr(e,r);if(!Number.isNaN(s)&&!Number.isNaN(a)&&s!==a)return s>a?1:-1}return t>e?1:-1},i.isTwoValueEquals=function(t,e,n,r,o){if(n===void 0&&(n=!1),t===e||Array.isArray(t)&&t.length===0&&typeof e>"u"||Array.isArray(e)&&e.length===0&&typeof t>"u"||t==null&&e===""||e==null&&t==="")return!0;if(o===void 0&&(o=b.comparator.trimStrings),r===void 0&&(r=b.comparator.caseSensitive),typeof t=="string"&&typeof e=="string"){var s=b.comparator.normalizeTextCallback;return t=s(t,"compare"),e=s(e,"compare"),o&&(t=t.trim(),e=e.trim()),r||(t=t.toLowerCase(),e=e.toLowerCase()),t===e}if(t instanceof Date&&e instanceof Date)return t.getTime()==e.getTime();if(i.isConvertibleToNumber(t)&&i.isConvertibleToNumber(e)&&parseInt(t)===parseInt(e)&&parseFloat(t)===parseFloat(e))return!0;if(!i.isValueEmpty(t)&&i.isValueEmpty(e)||i.isValueEmpty(t)&&!i.isValueEmpty(e))return!1;if((t===!0||t===!1)&&typeof e=="string")return t.toString()===e.toLocaleLowerCase();if((e===!0||e===!1)&&typeof t=="string")return e.toString()===t.toLocaleLowerCase();if(!i.isValueObject(t)&&!i.isValueObject(e))return t==e;if(!i.isValueObject(t)||!i.isValueObject(e))return!1;if(t.equals&&e.equals)return t.equals(e);if(Array.isArray(t)&&Array.isArray(e))return i.isArraysEqual(t,e,n,r,o);for(var a in t)if(t.hasOwnProperty(a)&&(!e.hasOwnProperty(a)||!this.isTwoValueEquals(t[a],e[a],n,r,o)))return!1;for(a in e)if(e.hasOwnProperty(a)&&!t.hasOwnProperty(a))return!1;return!0},i.randomizeArray=function(t){for(var e=t.length-1;e>0;e--){var n=Math.floor(Math.random()*(e+1)),r=t[e];t[e]=t[n],t[n]=r}return t},i.getUnbindValue=function(t){if(Array.isArray(t)){for(var e=[],n=0;n<t.length;n++)e.push(i.getUnbindValue(t[n]));return e}return t&&i.isValueObject(t)&&!(t instanceof Date)?JSON.parse(JSON.stringify(t)):t},i.createCopy=function(t){var e={};if(!t)return e;for(var n in t)e[n]=t[n];return e},i.isConvertibleToNumber=function(t){return t!=null&&!Array.isArray(t)&&!isNaN(t)},i.isValueObject=function(t,e){return t instanceof Object&&(!e||!Array.isArray(t))},i.isNumber=function(t){return!isNaN(this.getNumber(t))},i.getNumber=function(t){var e=i.getNumberCore(t);return b.parseNumber(t,e)},i.getNumberCore=function(t){if(typeof t=="string"){if(t=t.trim(),!t)return NaN;if(t.indexOf("0x")==0)return t.length>32?NaN:parseInt(t);if(t.length>15&&i.isDigitsOnly(t))return NaN;if(i.isStringHasOperator(t))return NaN}t=this.prepareStringToNumber(t);var e=parseFloat(t);return isNaN(e)||!isFinite(t)?NaN:e},i.isStringHasOperator=function(t){if(t.lastIndexOf("-")>0||t.lastIndexOf("+")>0)return!1;for(var e="*^/%",n=0;n<e.length;n++)if(t.indexOf(e[n])>-1)return!0;return!1},i.prepareStringToNumber=function(t){if(typeof t!="string"||!t)return t;var e=t.indexOf(",");return e>-1&&t.indexOf(",",e+1)<0?t.replace(",","."):t},i.getMaxLength=function(t,e){return t<0&&(t=e),t>0?t:null},i.getRemainingCharacterCounterText=function(t,e){if(!e||e<=0||!b.showMaxLengthIndicator)return"";var n=t?t.length:"0";return[n,e].join("/")},i.getNumberByIndex=function(t,e,n){if(t<0)return"";var r=1,o="",s=".",a=!0,l="A",u="",d=function(j){if(!j)return!1;for(var A=0;A<j.length;A++)if(i.isCharDigit(j[A]))return!0;return!1};if(e){u=e;for(var v=u.length-1,V=d(u),T=function(){return V&&!i.isCharDigit(u[v])||i.isCharNotLetterAndDigit(u[v])};v>=0&&T();)v--;var R="";for(v<u.length-1&&(R=u.substring(v+1),u=u.substring(0,v+1)),v=u.length-1;v>=0&&!(T()||(v--,!V)););l=u.substring(v+1),o=u.substring(0,v+1),parseInt(l)?r=parseInt(l):l.length==1&&(a=!1),(R||o)&&(s=R)}if(n>-1&&d(o)&&(o=this.getNumberByIndex(n,o)),a){for(var N=(t+r).toString();N.length<l.length;)N="0"+N;return o+N+s}return o+String.fromCharCode(l.charCodeAt(0)+t)+s},i.isCharNotLetterAndDigit=function(t){return t.toUpperCase()==t.toLowerCase()&&!i.isCharDigit(t)},i.isCharDigit=function(t){return t>="0"&&t<="9"},i.isDigitsOnly=function(t){if(!t)return!1;for(var e=0;e<t.length;e++)if(!i.isCharDigit(t[e]))return!1;return!0},i.getNumberFromStr=function(t,e){if(!this.isCharDigit(t[e]))return NaN;for(var n="";e<t.length&&this.isCharDigit(t[e]);)n+=t[e],e++;return n?this.getNumber(n):NaN},i.countDecimals=function(t){if(i.isNumber(t)&&Math.floor(t)!==t){var e=t.toString().split(".");return e.length>1&&e[1].length||0}return 0},i.correctAfterPlusMinis=function(t,e,n){var r=i.countDecimals(t),o=i.countDecimals(e);if(r>0||o>0){var s=Math.max(r,o);n=parseFloat(n.toFixed(s))}return n},i.sumAnyValues=function(t,e){if(!i.isNumber(t)||!i.isNumber(e)){if(Array.isArray(t)&&Array.isArray(e))return[].concat(t).concat(e);if(Array.isArray(t)||Array.isArray(e)){var n=Array.isArray(t)?t:e,r=n===t?e:t;if(typeof r=="string"){var o=n.join(", ");return n===t?o+r:r+o}if(typeof r=="number"){for(var s=0,a=0;a<n.length;a++)typeof n[a]=="number"&&(s=i.correctAfterPlusMinis(s,n[a],s+n[a]));return i.correctAfterPlusMinis(s,r,s+r)}}return t+e}return typeof t=="string"||typeof e=="string"?t+e:i.correctAfterPlusMinis(t,e,t+e)},i.correctAfterMultiple=function(t,e,n){var r=i.countDecimals(t)+i.countDecimals(e);return r>0&&(n=parseFloat(n.toFixed(r))),n},i.convertArrayValueToObject=function(t,e,n){n===void 0&&(n=void 0);var r=new Array;if(!t||!Array.isArray(t))return r;for(var o=0;o<t.length;o++){var s=void 0;Array.isArray(n)&&(s=i.findObjByPropValue(n,e,t[o])),s||(s={},s[e]=t[o]),r.push(s)}return r},i.findObjByPropValue=function(t,e,n){for(var r=0;r<t.length;r++)if(i.isTwoValueEquals(t[r][e],n))return t[r]},i.convertArrayObjectToValue=function(t,e){var n=new Array;if(!t||!Array.isArray(t))return n;for(var r=0;r<t.length;r++){var o=t[r]?t[r][e]:void 0;i.isValueEmpty(o)||n.push(o)}return n},i.convertDateToString=function(t){var e=function(n){return n<10?"0"+n.toString():n.toString()};return t.getFullYear()+"-"+e(t.getMonth()+1)+"-"+e(t.getDate())},i.convertDateTimeToString=function(t){var e=function(n){return n<10?"0"+n.toString():n.toString()};return this.convertDateToString(t)+" "+e(t.getHours())+":"+e(t.getMinutes())},i.convertValToQuestionVal=function(t,e){return t instanceof Date?e==="datetime-local"?i.convertDateTimeToString(t):i.convertDateToString(t):this.getUnbindValue(t)},i.compareVerions=function(t,e){if(!t&&!e)return 0;for(var n=t.split("."),r=e.split("."),o=n.length,s=r.length,a=0;a<o&&a<s;a++){var l=n[a],u=r[a];if(l.length===u.length){if(l!==u)return l<u?-1:1}else return l.length<u.length?-1:1}return o===s?0:o<s?-1:1},i.isUrlYoutubeVideo=function(t){if(!t)return!1;var e=["www.youtube.com","m.youtube.com","youtube.com","youtu.be"];t=t.toLowerCase(),t=t.replace(/^https?:\/\//,"");for(var n=0;n<e.length;n++)if(t.indexOf(e[n]+"/")===0)return!0;return!1},i}();String.prototype.format||(String.prototype.format=function(){var i=arguments;return this.replace(/{(\d+)}/g,function(t,e){return typeof i[e]<"u"?i[e]:t})});var Fn={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",deselectAllItemText:"Deselect 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}",textNoDigitsAllow:"Numbers are not allowed.",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. -Click 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"},ce={currentLocaleValue:"",defaultLocaleValue:"en",locales:{},localeNames:{},localeNamesInEnglish:{},localeDirections:{},supportedLocales:[],useEnglishNames:!1,get showNamesInEnglish(){return this.useEnglishNames},set showNamesInEnglish(i){this.useEnglishNames=i},setupLocale:function(i){var t=i.localeCode;this.locales[t]=i.strings,this.localeNames[t]=i.nativeName,this.localeNamesInEnglish[t]=i.englishName,i.rtl!==void 0&&(this.localeDirections[t]=i.rtl)},get currentLocale(){return this.currentLocaleValue===this.defaultLocaleValue?"":this.currentLocaleValue},set currentLocale(i){i==="cz"&&(i="cs"),this.currentLocaleValue=i},get defaultLocale(){return this.defaultLocaleValue},set defaultLocale(i){i==="cz"&&(i="cs"),this.defaultLocaleValue=i},getLocaleStrings:function(i){return this.locales[i]},getString:function(i,t){var e=this;t===void 0&&(t=null);var n=new Array,r=function(l){var u=e.locales[l];u&&n.push(u)},o=function(l){if(l){r(l);var u=l.indexOf("-");u<1||(l=l.substring(0,u),r(l))}};o(t),o(this.currentLocale),o(this.defaultLocale),this.defaultLocale!=="en"&&r("en");for(var s=0;s<n.length;s++){var a=n[s][i];if(a!==void 0)return a}return this.onGetExternalString(i,t)},getLocaleName:function(i,t){if(!i)return"";t===void 0&&(t=this.showNamesInEnglish);var e=t?this.localeNamesInEnglish:this.localeNames,n=t?this.localeNames:this.localeNamesInEnglish;return e[i]||n[i]||i},getLocales:function(i){var t=this;i===void 0&&(i=!1);var e=[];e.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 o in n)i&&o==this.defaultLocale||e.push(o);var s=function(a){return t.getLocaleName(a).toLowerCase()};return e.sort(function(a,l){var u=s(a),d=s(l);return u===d?0:u<d?-1:1}),e},onGetExternalString:function(i,t){}};function oe(i,t){return t===void 0&&(t=null),ce.getString(i,t)}function tl(i){return ce.getLocaleStrings(i)}function nl(i){ce.setupLocale(i)}var rl=Fn;ce.locales.en=Fn,ce.localeNames.en="english";var Ze=function(){var i=function(t,e){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(n[o]=r[o])},i(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");i(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),il=function(i,t){for(var e=0,n=t.length,r=i.length;e<n;e++,r++)i[r]=t[e];return i};function _n(i,t,e){var n=i.getLocalizableString(e);if(!n){var r=void 0;typeof t.localizable=="object"&&t.localizable.defaultStr&&(r=t.localizable.defaultStr),n=i.createLocalizableString(e,i,!0,r),typeof t.localizable=="object"&&typeof t.localizable.onGetTextCallback=="function"&&(n.onGetTextCallback=t.localizable.onGetTextCallback)}}function ol(i,t,e){_n(i,t,e);var n=i.getLocalizableStringText(e);if(n)return n;if(typeof t.localizable=="object"&&t.localizable.defaultStr){var r=i.getLocale?i.getLocale():"";return oe(t.localizable.defaultStr,r)}return""}function h(i){return i===void 0&&(i={}),function(t,e){var n=function(r,o){if(o&&typeof o=="object"&&o.type===te.ComputedUpdaterType){z.startCollectDependencies(function(){return r[e]=o.updater()},r,e);var s=o.updater(),a=z.finishCollectDependencies();return o.setDependencies(a),r.dependencies[e]&&r.dependencies[e].dispose(),r.dependencies[e]=o,s}return o};!i||!i.localizable?Object.defineProperty(t,e,{get:function(){var r=null;return i&&(typeof i.getDefaultValue=="function"&&(r=i.getDefaultValue(this)),i.defaultValue!==void 0&&(r=i.defaultValue)),this.getPropertyValue(e,r)},set:function(r){var o=n(this,r),s=this.getPropertyValue(e);o!==s&&(this.setPropertyValue(e,o),i&&i.onSet&&i.onSet(o,this,s))}}):(Object.defineProperty(t,e,{get:function(){return ol(this,i,e)},set:function(r){_n(this,i,e);var o=n(this,r);this.setLocalizableStringText(e,o),i&&i.onSet&&i.onSet(o,this)}}),Object.defineProperty(t,typeof i.localizable=="object"&&i.localizable.name?i.localizable.name:"loc"+e.charAt(0).toUpperCase()+e.slice(1),{get:function(){return _n(this,i,e),this.getLocalizableString(e)}}))}}function Ei(i,t,e){i.ensureArray(e,function(n,r){var o=t?t.onPush:null;o&&o(n,r,i)},function(n,r){var o=t?t.onRemove:null;o&&o(n,r,i)})}function ae(i){return function(t,e){Object.defineProperty(t,e,{get:function(){return Ei(this,i,e),this.getPropertyValue(e)},set:function(n){Ei(this,i,e);var r=this.getPropertyValue(e);n!==r&&(r?r.splice.apply(r,il([0,r.length],n||[])):this.setPropertyValue(e,n),i&&i.onSet&&i.onSet(n,this))}})}}var Gt=function(){function i(t,e,n){n===void 0&&(n=!1),this.name=e,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=n,this.idValue=i.Index++}return Object.defineProperty(i.prototype,"id",{get:function(){return this.idValue},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"classInfo",{get:function(){return this.classInfoValue},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"type",{get:function(){return this.typeValue?this.typeValue:"string"},set:function(t){t==="itemvalues"&&(t="itemvalue[]"),t==="textitems"&&(t="textitem[]"),this.typeValue=t,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(i.prototype,"isRequired",{get:function(){return this.isRequiredValue},set:function(t){t!==this.isRequired&&(this.isRequiredValue=t,this.classInfo&&this.classInfo.resetAllProperties())},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"isUnique",{get:function(){return this.isUniqueValue},set:function(t){this.isUniqueValue=t},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"uniquePropertyName",{get:function(){return this.uniquePropertyValue},set:function(t){this.uniquePropertyValue=t},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"hasToUseGetValue",{get:function(){return this.onGetValue||this.serializationProperty},enumerable:!1,configurable:!0}),i.prototype.getDefaultValue=function(t){var e=this.defaultValueFunc?this.defaultValueFunc(t):this.defaultValueValue;return i.getItemValuesDefaultValue&&x.isDescendantOf(this.className,"itemvalue")&&(e=i.getItemValuesDefaultValue(this.defaultValueValue||[],this.className)),e},Object.defineProperty(i.prototype,"defaultValue",{get:function(){return this.getDefaultValue(void 0)},set:function(t){this.defaultValueValue=t},enumerable:!1,configurable:!0}),i.prototype.isDefaultValue=function(t){return this.isDefaultValueByObj(void 0,t)},i.prototype.isDefaultValueByObj=function(t,e){if(this.isLocalizable)return e==null;var n=this.getDefaultValue(t);return P.isValueEmpty(n)?e===!1&&(this.type=="boolean"||this.type=="switch")&&!this.defaultValueFunc||e===""||P.isValueEmpty(e):P.isTwoValueEquals(e,n,!1,!0,!1)},i.prototype.getSerializableValue=function(t,e){if(this.onSerializeValue)return this.onSerializeValue(t);var n=this.getValue(t);if(n!=null&&!(!e&&this.isDefaultValueByObj(t,n)))return n},i.prototype.getValue=function(t){return this.onGetValue?(t=this.getOriginalObj(t),this.onGetValue(t)):this.serializationProperty&&t[this.serializationProperty]?t[this.serializationProperty].getJson():t[this.name]},i.prototype.getPropertyValue=function(t){return this.isLocalizable?t[this.serializationProperty]?t[this.serializationProperty].text:null:this.getValue(t)},Object.defineProperty(i.prototype,"hasToUseSetValue",{get:function(){return this.onSetValue||this.serializationProperty},enumerable:!1,configurable:!0}),i.prototype.settingValue=function(t,e){return!this.onSettingValue||t.isLoadingFromJson?e:this.onSettingValue(t,e)},i.prototype.setValue=function(t,e,n){this.onSetValue?(t=this.getOriginalObj(t),this.onSetValue(t,e,n)):this.serializationProperty&&t[this.serializationProperty]?t[this.serializationProperty].setJson(e,!0):(e&&typeof e=="string"&&(this.type=="number"&&(e=parseInt(e)),(this.type=="boolean"||this.type=="switch")&&(e=e.toLowerCase()==="true")),t[this.name]=e)},i.prototype.validateValue=function(t){var e=this.choices;return!Array.isArray(e)||e.length===0?!0:e.indexOf(t)>-1},i.prototype.getObjType=function(t){return this.classNamePart?t.replace(this.classNamePart,""):t},Object.defineProperty(i.prototype,"choices",{get:function(){return this.getChoices(null)},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"hasChoices",{get:function(){return!!this.choicesValue||!!this.choicesfunc},enumerable:!1,configurable:!0}),i.prototype.getChoices=function(t,e){return e===void 0&&(e=null),this.choicesValue!=null?this.choicesValue:this.choicesfunc!=null?this.choicesfunc(t,e):null},i.prototype.setChoices=function(t,e){e===void 0&&(e=null),this.choicesValue=t,this.choicesfunc=e},i.prototype.getBaseValue=function(){return this.baseValue?typeof this.baseValue=="function"?this.baseValue():this.baseValue:""},i.prototype.setBaseValue=function(t){this.baseValue=t},Object.defineProperty(i.prototype,"readOnly",{get:function(){return this.readOnlyValue!=null?this.readOnlyValue:!1},set:function(t){this.readOnlyValue=t},enumerable:!1,configurable:!0}),i.prototype.isEnable=function(t){return this.readOnly?!1:!t||!this.enableIf?!0:this.enableIf(this.getOriginalObj(t))},i.prototype.isVisible=function(t,e){e===void 0&&(e=null);var n=!this.layout||!t||this.layout===t;return!this.visible||!n?!1:this.visibleIf&&e?this.visibleIf(this.getOriginalObj(e)):!0},i.prototype.getOriginalObj=function(t){if(t&&t.getOriginalObj){var e=t.getOriginalObj();if(e&&x.findProperty(e.getType(),this.name))return e}return t},Object.defineProperty(i.prototype,"visible",{get:function(){return this.visibleValue!=null?this.visibleValue:!0},set:function(t){this.visibleValue=t},enumerable:!1,configurable:!0}),i.prototype.isAvailableInVersion=function(t){return this.alternativeName||this.oldName?!0:this.isAvailableInVersionCore(t)},i.prototype.getSerializedName=function(t){return this.alternativeName?this.isAvailableInVersionCore(t)?this.name:this.alternativeName||this.oldName:this.name},i.prototype.getSerializedProperty=function(t,e){return!this.oldName||this.isAvailableInVersionCore(e)?this:!t||!t.getType?null:x.findProperty(t.getType(),this.oldName)},i.prototype.isAvailableInVersionCore=function(t){return!t||!this.version?!0:P.compareVerions(this.version,t)<=0},Object.defineProperty(i.prototype,"isLocalizable",{get:function(){return this.isLocalizableValue!=null?this.isLocalizableValue:!1},set:function(t){this.isLocalizableValue=t},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"dataList",{get:function(){return Array.isArray(this.dataListValue)?this.dataListValue:[]},set:function(t){this.dataListValue=t},enumerable:!1,configurable:!0}),i.prototype.mergeWith=function(t){for(var e=i.mergableValues,n=0;n<e.length;n++)this.mergeValue(t,e[n])},i.prototype.addDependedProperty=function(t){this.dependedProperties||(this.dependedProperties=[]),this.dependedProperties.indexOf(t)<0&&this.dependedProperties.push(t)},i.prototype.getDependedProperties=function(){return this.dependedProperties?this.dependedProperties:[]},i.prototype.schemaType=function(){if(this.className!=="choicesByUrl")return this.className==="string"?this.className:this.className||this.baseClassName?"array":this.type=="switch"?"boolean":this.type=="boolean"||this.type=="number"?this.type:"string"},i.prototype.schemaRef=function(){if(this.className)return this.className},i.prototype.mergeValue=function(t,e){this[e]==null&&t[e]!=null&&(this[e]=t[e])},i.Index=1,i.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"],i}(),Ne=function(){function i(){}return i.addProperty=function(t,e){t=t.toLowerCase();var n=i.properties;n[t]||(n[t]=[]),n[t].push(e)},i.removeProperty=function(t,e){t=t.toLowerCase();var n=i.properties;if(n[t]){for(var r=n[t],o=0;o<r.length;o++)if(r[o].name==e){n[t].splice(o,1);break}}},i.removeAllProperties=function(t){t=t.toLowerCase(),delete i.properties[t]},i.addClass=function(t,e){t=t.toLowerCase(),e&&(e=e.toLowerCase()),i.parentClasses[t]=e},i.getProperties=function(t){t=t.toLowerCase();for(var e=[],n=i.properties;t;){var r=n[t];if(r)for(var o=0;o<r.length;o++)e.push(r[o]);t=i.parentClasses[t]}return e},i.createProperties=function(t){!t||!t.getType||i.createPropertiesCore(t,t.getType())},i.createPropertiesCore=function(t,e){var n=i.properties;n[e]&&i.createPropertiesInObj(t,n[e]);var r=i.parentClasses[e];r&&i.createPropertiesCore(t,r)},i.createPropertiesInObj=function(t,e){for(var n=0;n<e.length;n++)i.createPropertyInObj(t,e[n])},i.createPropertyInObj=function(t,e){if(!i.checkIsPropertyExists(t,e.name)&&!(e.serializationProperty&&i.checkIsPropertyExists(t,e.serializationProperty))){if(e.isLocalizable&&e.serializationProperty&&t.createCustomLocalizableObj){var n=t.createCustomLocalizableObj(e.name);n.defaultValue=e.getDefaultValue(t);var r={get:function(){return t.getLocalizableString(e.name)}};Object.defineProperty(t,e.serializationProperty,r);var o={get:function(){return t.getLocalizableStringText(e.name)},set:function(l){t.setLocalizableStringText(e.name,l)}};Object.defineProperty(t,e.name,o)}else{var s=e.isArray||e.type==="multiplevalues";if(typeof t.createNewArray=="function"&&(x.isDescendantOf(e.className,"itemvalue")?(t.createNewArray(e.name,function(l){l.locOwner=t,l.ownerPropertyName=e.name}),s=!0):s&&t.createNewArray(e.name),s)){var a=e.getDefaultValue(t);Array.isArray(a)&&t.setPropertyValue(e.name,a)}if(t.getPropertyValue&&t.setPropertyValue){var o={get:function(){return e.onGetValue?e.onGetValue(t):t.getPropertyValue(e.name,void 0)},set:function(u){e.onSetValue?e.onSetValue(t,u,null):t.setPropertyValue(e.name,u)}};Object.defineProperty(t,e.name,o)}}(e.type==="condition"||e.type==="expression")&&e.onExecuteExpression&&t.addExpressionProperty(e.name,e.onExecuteExpression)}},i.checkIsPropertyExists=function(t,e){return t.hasOwnProperty(e)||t[e]},i.properties={},i.parentClasses={},i}(),Ii=function(){function i(t,e,n,r){n===void 0&&(n=null),r===void 0&&(r=null),this.name=t,this.creator=n,this.parentName=r,t=t.toLowerCase(),this.isCustomValue=!n&&t!=="survey",this.parentName&&(this.parentName=this.parentName.toLowerCase(),Ne.addClass(t,this.parentName),n&&this.makeParentRegularClass()),this.properties=new Array;for(var o=0;o<e.length;o++)this.createProperty(e[o],this.isCustom)}return i.prototype.find=function(t){for(var e=0;e<this.properties.length;e++)if(this.properties[e].name==t)return this.properties[e];return null},i.prototype.findProperty=function(t){return this.fillAllProperties(),this.hashProperties[t]},i.prototype.getAllProperties=function(){return this.fillAllProperties(),this.allProperties},i.prototype.getRequiredProperties=function(){if(this.requiredProperties)return this.requiredProperties;this.requiredProperties=[];for(var t=this.getAllProperties(),e=0;e<t.length;e++)t[e].isRequired&&this.requiredProperties.push(t[e]);return this.requiredProperties},i.prototype.resetAllProperties=function(){this.allProperties=void 0,this.requiredProperties=void 0,this.hashProperties=void 0;for(var t=x.getChildrenClasses(this.name),e=0;e<t.length;e++)t[e].resetAllProperties()},Object.defineProperty(i.prototype,"isCustom",{get:function(){return this.isCustomValue},enumerable:!1,configurable:!0}),i.prototype.fillAllProperties=function(){var t=this;if(!this.allProperties){this.allProperties=[],this.hashProperties={};var e={};this.properties.forEach(function(o){return e[o.name]=o});var n=this.parentName?x.findClass(this.parentName):null;if(n){var r=n.getAllProperties();r.forEach(function(o){var s=e[o.name];s?(s.mergeWith(o),t.addPropCore(s)):t.addPropCore(o)})}this.properties.forEach(function(o){t.hashProperties[o.name]||t.addPropCore(o)})}},i.prototype.addPropCore=function(t){this.allProperties.push(t),this.hashProperties[t.name]=t,t.alternativeName&&(this.hashProperties[t.alternativeName]=t)},i.prototype.isOverridedProp=function(t){return!!this.parentName&&!!x.findProperty(this.parentName,t)},i.prototype.hasRegularChildClass=function(){if(this.isCustom){this.isCustomValue=!1;for(var t=0;t<this.properties.length;t++)this.properties[t].isCustom=!1;Ne.removeAllProperties(this.name),this.makeParentRegularClass()}},i.prototype.makeParentRegularClass=function(){if(this.parentName){var t=x.findClass(this.parentName);t&&t.hasRegularChildClass()}},i.prototype.createProperty=function(t,e){e===void 0&&(e=!1);var n=typeof t=="string"?t:t.name;if(n){var r=null,o=n.indexOf(i.typeSymbol);o>-1&&(r=n.substring(o+1),n=n.substring(0,o));var s=this.getIsPropertyNameRequired(n)||!!t.isRequired;n=this.getPropertyName(n);var a=new Gt(this,n,s);if(r&&(a.type=r),typeof t=="object"){if(t.type&&(a.type=t.type),t.default!==void 0&&(a.defaultValue=t.default),t.defaultFunc!==void 0&&(a.defaultValueFunc=t.defaultFunc),P.isValueEmpty(t.isSerializable)||(a.isSerializable=t.isSerializable),P.isValueEmpty(t.isLightSerializable)||(a.isLightSerializable=t.isLightSerializable),P.isValueEmpty(t.maxLength)||(a.maxLength=t.maxLength),t.displayName!==void 0&&(a.displayName=t.displayName),P.isValueEmpty(t.category)||(a.category=t.category),P.isValueEmpty(t.categoryIndex)||(a.categoryIndex=t.categoryIndex),P.isValueEmpty(t.nextToProperty)||(a.nextToProperty=t.nextToProperty),P.isValueEmpty(t.overridingProperty)||(a.overridingProperty=t.overridingProperty),P.isValueEmpty(t.visibleIndex)||(a.visibleIndex=t.visibleIndex),P.isValueEmpty(t.showMode)||(a.showMode=t.showMode),P.isValueEmpty(t.maxValue)||(a.maxValue=t.maxValue),P.isValueEmpty(t.minValue)||(a.minValue=t.minValue),P.isValueEmpty(t.dataList)||(a.dataList=t.dataList),P.isValueEmpty(t.isDynamicChoices)||(a.isDynamicChoices=t.isDynamicChoices),P.isValueEmpty(t.isBindable)||(a.isBindable=t.isBindable),P.isValueEmpty(t.isUnique)||(a.isUnique=t.isUnique),P.isValueEmpty(t.uniqueProperty)||(a.uniquePropertyName=t.uniqueProperty),P.isValueEmpty(t.isArray)||(a.isArray=t.isArray),(t.visible===!0||t.visible===!1)&&(a.visible=t.visible),t.visibleIf&&(a.visibleIf=t.visibleIf),t.enableIf&&(a.enableIf=t.enableIf),t.onExecuteExpression&&(a.onExecuteExpression=t.onExecuteExpression),t.onPropertyEditorUpdate&&(a.onPropertyEditorUpdate=t.onPropertyEditorUpdate),t.readOnly===!0&&(a.readOnly=!0),t.availableInMatrixColumn===!0&&(a.availableInMatrixColumn=!0),t.choices){var l=typeof t.choices=="function"?t.choices:null,u=typeof t.choices!="function"?t.choices:null;a.setChoices(u,l)}t.baseValue&&a.setBaseValue(t.baseValue),t.onSerializeValue&&(a.onSerializeValue=t.onSerializeValue),t.onGetValue&&(a.onGetValue=t.onGetValue),t.onSetValue&&(a.onSetValue=t.onSetValue),t.onSettingValue&&(a.onSettingValue=t.onSettingValue),t.isLocalizable&&(t.serializationProperty="loc"+a.name),t.serializationProperty&&(a.serializationProperty=t.serializationProperty,a.serializationProperty&&a.serializationProperty.indexOf("loc")==0&&(a.isLocalizable=!0)),t.isLocalizable&&(a.isLocalizable=t.isLocalizable),t.className&&(a.className=t.className),t.baseClassName&&(a.baseClassName=t.baseClassName,a.isArray=!0),a.isArray===!0&&(a.isArray=!0),t.classNamePart&&(a.classNamePart=t.classNamePart),t.alternativeName&&(a.alternativeName=t.alternativeName),t.oldName&&(a.oldName=t.oldName),t.layout&&(a.layout=t.layout),t.version&&(a.version=t.version),t.dependsOn&&this.addDependsOnProperties(a,t.dependsOn)}return this.properties.push(a),e&&!this.isOverridedProp(a.name)&&(a.isCustom=!0,Ne.addProperty(this.name,a)),a}},i.prototype.addDependsOnProperties=function(t,e){var n=Array.isArray(e)?e:[e];t.dependsOn=n;for(var r=0;r<n.length;r++)this.addDependsOnProperty(t,n[r])},i.prototype.addDependsOnProperty=function(t,e){var n=this.find(e);n||(n=x.findProperty(this.parentName,e)),n&&n.addDependedProperty(t.name)},i.prototype.getIsPropertyNameRequired=function(t){return t.length>0&&t[0]==i.requiredSymbol},i.prototype.getPropertyName=function(t){return this.getIsPropertyNameRequired(t)&&(t=t.slice(1)),t},i.requiredSymbol="!",i.typeSymbol=":",i}(),Ai=function(){function i(){this.classes={},this.alternativeNames={},this.childrenClasses={},this.dynamicPropsCache={}}return i.prototype.getObjPropertyValue=function(t,e){if(this.isObjWrapper(t)&&this.isNeedUseObjWrapper(t,e)){var n=t.getOriginalObj(),r=x.findProperty(n.getType(),e);if(r)return this.getObjPropertyValueCore(n,r)}var o=x.findProperty(t.getType(),e);return o?this.getObjPropertyValueCore(t,o):t[e]},i.prototype.setObjPropertyValue=function(t,e,n){if(t[e]!==n)if(t[e]&&t[e].setJson)t[e].setJson(n,!0);else{if(Array.isArray(n)){for(var r=[],o=0;o<n.length;o++)r.push(n[o]);n=r}t[e]=n}},i.prototype.getObjPropertyValueCore=function(t,e){if(!e.isSerializable)return t[e.name];if(e.isLocalizable){if(e.isArray)return t[e.name];if(e.serializationProperty)return t[e.serializationProperty].text}return t.getPropertyValue(e.name)},i.prototype.isObjWrapper=function(t){return!!t.getOriginalObj&&!!t.getOriginalObj()},i.prototype.isNeedUseObjWrapper=function(t,e){if(!t.getDynamicProperties)return!0;var n=t.getDynamicProperties();if(!Array.isArray(n))return!1;for(var r=0;r<n.length;r++)if(n[r].name===e)return!0;return!1},i.prototype.addClass=function(t,e,n,r){n===void 0&&(n=null),r===void 0&&(r=null),t=t.toLowerCase();var o=new Ii(t,e,n,r);if(this.classes[t]=o,r){r=r.toLowerCase();var s=this.childrenClasses[r];s||(this.childrenClasses[r]=[]),this.childrenClasses[r].push(o)}return o},i.prototype.removeClass=function(t){var e=this.findClass(t);if(e&&(delete this.classes[e.name],e.parentName)){var n=this.childrenClasses[e.parentName].indexOf(e);n>-1&&this.childrenClasses[e.parentName].splice(n,1)}},i.prototype.overrideClassCreatore=function(t,e){this.overrideClassCreator(t,e)},i.prototype.overrideClassCreator=function(t,e){t=t.toLowerCase();var n=this.findClass(t);n&&(n.creator=e)},i.prototype.getProperties=function(t){var e=this.findClass(t);return e?e.getAllProperties():[]},i.prototype.getPropertiesByObj=function(t){var e=t&&t.getType?t.getType():void 0;if(!e)return[];for(var n=this.getProperties(e),r=this.getDynamicPropertiesByObj(t),o=r.length-1;o>=0;o--)this.findProperty(e,r[o].name)&&r.splice(o,1);return r.length===0?n:[].concat(n).concat(r)},i.prototype.addDynamicPropertiesIntoObj=function(t,e,n){var r=this;n.forEach(function(o){r.addDynamicPropertyIntoObj(t,e,o.name,!1),o.serializationProperty&&r.addDynamicPropertyIntoObj(t,e,o.serializationProperty,!0),o.alternativeName&&r.addDynamicPropertyIntoObj(t,e,o.alternativeName,!1)})},i.prototype.addDynamicPropertyIntoObj=function(t,e,n,r){var o={configurable:!0,get:function(){return e[n]}};r||(o.set=function(s){e[n]=s}),Object.defineProperty(t,n,o)},i.prototype.getDynamicPropertiesByObj=function(t,e){if(e===void 0&&(e=null),!t||!t.getType)return[];if(t.getDynamicProperties)return t.getDynamicProperties();if(!t.getDynamicType&&!e)return[];var n=e||t.getDynamicType();return this.getDynamicPropertiesByTypes(t.getType(),n)},i.prototype.getDynamicPropertiesByTypes=function(t,e,n){if(!e)return[];var r=e+"-"+t;if(this.dynamicPropsCache[r])return this.dynamicPropsCache[r];var o=this.getProperties(e);if(!o||o.length==0)return[];for(var s={},a=this.getProperties(t),l=0;l<a.length;l++)s[a[l].name]=a[l];var u=[];n||(n=[]);for(var d=0;d<o.length;d++){var v=o[d];n.indexOf(v.name)<0&&this.canAddDybamicProp(v,s[v.name])&&u.push(v)}return this.dynamicPropsCache[r]=u,u},i.prototype.canAddDybamicProp=function(t,e){if(!e)return!0;if(t===e)return!1;for(var n=t.classInfo;n&&n.parentName;){if(t=this.findProperty(n.parentName,t.name),t&&t===e)return!0;n=t?t.classInfo:void 0}return!1},i.prototype.hasOriginalProperty=function(t,e){return!!this.getOriginalProperty(t,e)},i.prototype.getOriginalProperty=function(t,e){var n=this.findProperty(t.getType(),e);return n||(this.isObjWrapper(t)?this.findProperty(t.getOriginalObj().getType(),e):null)},i.prototype.getProperty=function(t,e){var n=this.findProperty(t,e);if(!n)return n;var r=this.findClass(t);if(n.classInfo===r)return n;var o=new Gt(r,n.name,n.isRequired);return o.mergeWith(n),o.isArray=n.isArray,r.properties.push(o),r.resetAllProperties(),o},i.prototype.findProperty=function(t,e){var n=this.findClass(t);return n?n.findProperty(e):null},i.prototype.findProperties=function(t,e){var n=new Array,r=this.findClass(t);if(!r)return n;for(var o=0;o<e.length;o++){var s=r.findProperty(e[o]);s&&n.push(s)}return n},i.prototype.getAllPropertiesByName=function(t){for(var e=new Array,n=this.getAllClasses(),r=0;r<n.length;r++)for(var o=this.findClass(n[r]),s=0;s<o.properties.length;s++)if(o.properties[s].name==t){e.push(o.properties[s]);break}return e},i.prototype.getAllClasses=function(){var t=new Array;for(var e in this.classes)t.push(e);return t},i.prototype.createClass=function(t,e){e===void 0&&(e=void 0),t=t.toLowerCase();var n=this.findClass(t);if(!n)return null;if(n.creator)return n.creator(e);for(var r=n.parentName;r;){if(n=this.findClass(r),!n)return null;if(r=n.parentName,n.creator)return this.createCustomType(t,n.creator,e)}return null},i.prototype.createCustomType=function(t,e,n){n===void 0&&(n=void 0),t=t.toLowerCase();var r=e(n),o=t,s=r.getTemplate?r.getTemplate():r.getType();return r.getType=function(){return o},r.getTemplate=function(){return s},Ne.createProperties(r),r},i.prototype.getChildrenClasses=function(t,e){e===void 0&&(e=!1),t=t.toLowerCase();var n=[];return this.fillChildrenClasses(t,e,n),n},i.prototype.getRequiredProperties=function(t){var e=this.findClass(t);if(!e)return[];for(var n=e.getRequiredProperties(),r=[],o=0;o<n.length;o++)r.push(n[o].name);return r},i.prototype.addProperties=function(t,e){t=t.toLowerCase();for(var n=this.findClass(t),r=0;r<e.length;r++)this.addCustomPropertyCore(n,e[r])},i.prototype.addProperty=function(t,e){return this.addCustomPropertyCore(this.findClass(t),e)},i.prototype.addCustomPropertyCore=function(t,e){if(!t)return null;var n=t.createProperty(e,!0);return n&&(this.clearDynamicPropsCache(t),t.resetAllProperties()),n},i.prototype.removeProperty=function(t,e){var n=this.findClass(t);if(!n)return!1;var r=n.find(e);r&&(this.clearDynamicPropsCache(n),this.removePropertyFromClass(n,r),n.resetAllProperties(),Ne.removeProperty(n.name,e))},i.prototype.clearDynamicPropsCache=function(t){this.dynamicPropsCache={}},i.prototype.removePropertyFromClass=function(t,e){var n=t.properties.indexOf(e);n<0||t.properties.splice(n,1)},i.prototype.fillChildrenClasses=function(t,e,n){var r=this.childrenClasses[t];if(r)for(var o=0;o<r.length;o++)(!e||r[o].creator)&&n.push(r[o]),this.fillChildrenClasses(r[o].name,e,n)},i.prototype.findClass=function(t){t=t.toLowerCase();var e=this.classes[t];if(!e){var n=this.alternativeNames[t];if(n&&n!=t)return this.findClass(n)}return e},i.prototype.isDescendantOf=function(t,e){if(!t||!e)return!1;t=t.toLowerCase(),e=e.toLowerCase();var n=this.findClass(t);if(!n)return!1;var r=n;do{if(r.name===e)return!0;r=this.classes[r.parentName]}while(r);return!1},i.prototype.addAlterNativeClassName=function(t,e){this.alternativeNames[e.toLowerCase()]=t.toLowerCase()},i.prototype.generateSchema=function(t){t===void 0&&(t=void 0),t||(t="survey");var e=this.findClass(t);if(!e)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(e,n,n.definitions,!0),n},i.prototype.generateLocStrClass=function(){var t={},e=x.findProperty("survey","locale");if(e){var n=e.getChoices(null);Array.isArray(n)&&(n.indexOf("en")<0&&n.splice(0,0,"en"),n.splice(0,0,"default"),n.forEach(function(r){r&&(t[r]={type:"string"})}))}return{$id:"locstring",type:"object",properties:t}},i.prototype.generateSchemaProperties=function(t,e,n,r){if(t){var o=e.properties,s=[];(t.name==="question"||t.name==="panel")&&(o.type={type:"string"},s.push("type"));for(var a=0;a<t.properties.length;a++){var l=t.properties[a];t.parentName&&x.findProperty(t.parentName,l.name)||(o[l.name]=this.generateSchemaProperty(l,n,r),l.isRequired&&s.push(l.name))}s.length>0&&(e.required=s)}},i.prototype.generateSchemaProperty=function(t,e,n){if(t.isLocalizable)return{oneOf:[{type:"string"},{$ref:this.getChemeRefName("locstring",n)}]};var r=t.schemaType(),o=t.schemaRef(),s={};if(r&&(s.type=r),t.hasChoices){var a=t.getChoices(null);Array.isArray(a)&&a.length>0&&(s.enum=this.getChoicesValues(a))}if(o&&(r==="array"?t.className==="string"?s.items={type:t.className}:s.items={$ref:this.getChemeRefName(t.className,n)}:s.$ref=this.getChemeRefName(o,n),this.generateChemaClass(t.className,e,!1)),t.baseClassName){var l=this.getChildrenClasses(t.baseClassName,!0);t.baseClassName=="question"&&l.push(this.findClass("panel")),s.items={anyOf:[]};for(var u=0;u<l.length;u++){var d=l[u].name;s.items.anyOf.push({$ref:this.getChemeRefName(d,n)}),this.generateChemaClass(d,e,!1)}}return s},i.prototype.getChemeRefName=function(t,e){return e?"#/definitions/"+t:t},i.prototype.generateChemaClass=function(t,e,n){if(!e[t]){var r=this.findClass(t);if(r){var o=!!r.parentName&&r.parentName!="base";o&&this.generateChemaClass(r.parentName,e,n);var s={type:"object",$id:t};e[t]=s;var a={properties:{}};this.generateSchemaProperties(r,a,e,n),o?s.allOf=[{$ref:this.getChemeRefName(r.parentName,n)},{properties:a.properties}]:s.properties=a.properties,Array.isArray(a.required)&&(s.required=a.required)}}},i.prototype.getChoicesValues=function(t){var e=new Array;return t.forEach(function(n){typeof n=="object"&&n.value!==void 0?e.push(n.value):e.push(n)}),e},i}(),dt=function(){function i(t,e){this.type=t,this.message=e,this.description="",this.at=-1,this.end=-1}return i.prototype.getFullDescription=function(){return this.message+(this.description?` -`+this.description:"")},i}(),Di=function(i){Ze(t,i);function t(e,n){var r=i.call(this,"unknownproperty","Unknown property in class '"+n+"': '"+e+"'.")||this;return r.propertyName=e,r.className=n,r}return t}(dt),Bn=function(i){Ze(t,i);function t(e,n,r){var o=i.call(this,n,r)||this;return o.baseClassName=e,o.type=n,o.message=r,o}return t}(dt),Li=function(i){Ze(t,i);function t(e,n){var r=i.call(this,n,"missingtypeproperty","The property type is missing in the object. Please take a look at property: '"+e+"'.")||this;return r.propertyName=e,r.baseClassName=n,r}return t}(Bn),Mi=function(i){Ze(t,i);function t(e,n){var r=i.call(this,n,"incorrecttypeproperty","The property type is incorrect in the object. Please take a look at property: '"+e+"'.")||this;return r.propertyName=e,r.baseClassName=n,r}return t}(Bn),ji=function(i){Ze(t,i);function t(e,n){var r=i.call(this,"requiredproperty","The property '"+e+"' is required in class '"+n+"'.")||this;return r.propertyName=e,r.className=n,r}return t}(dt),sl=function(i){Ze(t,i);function t(e,n){var r=i.call(this,"arrayproperty","The property '"+e+"' should be an array in '"+n+"'.")||this;return r.propertyName=e,r.className=n,r}return t}(dt),al=function(i){Ze(t,i);function t(e,n){var r=i.call(this,"incorrectvalue","The property value: '"+n+"' is incorrect for property '"+e.name+"'.")||this;return r.property=e,r.value=n,r}return t}(dt),fe=function(){function i(){this.errors=new Array,this.lightSerializing=!1}return Object.defineProperty(i,"metaData",{get:function(){return i.metaDataValue},enumerable:!1,configurable:!0}),i.prototype.toJsonObject=function(t,e){return this.toJsonObjectCore(t,null,e)},i.prototype.toObject=function(t,e,n){this.toObjectCore(t,e,n);var r=this.getRequiredError(e,t);r&&this.addNewError(r,t,e)},i.prototype.toObjectCore=function(t,e,n){if(t){var r=null,o=void 0,s=!0;if(e.getType&&(o=e.getType(),r=x.getProperties(o),s=!!o&&!x.isDescendantOf(o,"itemvalue")),!!r){e.startLoadingFromJson&&e.startLoadingFromJson(t),r=this.addDynamicProperties(e,t,r),this.options=n;var a={};a[i.typePropertyName]=!0;var l={};for(var u in t)this.setPropertyValueToObj(t,e,u,r,a,l,o,s,n);this.options=void 0,e.endLoadingFromJson&&e.endLoadingFromJson()}}},i.prototype.setPropertyValueToObj=function(t,e,n,r,o,s,a,l,u){var d=this;if(!o[n]){if(n===i.positionPropertyName){e[n]=t[n];return}var v=this.findProperty(r,n);if(!v&&l&&this.addNewError(new Di(n.toString(),a),t,e),v){var V=v.dependsOn;Array.isArray(V)&&(s[n]=!0,V.forEach(function(T){s[T]||d.setPropertyValueToObj(t,e,T,r,o,s,a,!1,u)})),this.valueToObj(t[n],e,v,t,u),o[n]=!0}}},i.prototype.toJsonObjectCore=function(t,e,n){if(!t||!t.getType)return t;if(!t.isSurvey&&typeof t.getData=="function")return t.getData();var r={};e!=null&&!e.className&&(r[i.typePropertyName]=e.getObjType(t.getType()));var o=n===!0;return(!n||n===!0)&&(n={}),o&&(n.storeDefaults=o),this.propertiesToJson(t,x.getProperties(t.getType()),r,n),this.propertiesToJson(t,this.getDynamicProperties(t),r,n),r},i.prototype.getDynamicProperties=function(t){return x.getDynamicPropertiesByObj(t)},i.prototype.addDynamicProperties=function(t,e,n){if(!t.getDynamicPropertyName&&!t.getDynamicProperties)return n;if(t.getDynamicPropertyName){var r=t.getDynamicPropertyName();if(!r)return n;r&&e[r]&&(t[r]=e[r])}var o=this.getDynamicProperties(t);return o.length===0?n:[].concat(n).concat(o)},i.prototype.propertiesToJson=function(t,e,n,r){for(var o=0;o<e.length;o++)this.valueToJson(t,n,e[o],r)},i.prototype.valueToJson=function(t,e,n,r){r||(r={}),!(n.isSerializable===!1||n.isLightSerializable===!1&&this.lightSerializing)&&(r.version&&!n.isAvailableInVersion(r.version)||this.valueToJsonCore(t,e,n,r))},i.prototype.valueToJsonCore=function(t,e,n,r){var o=n.getSerializedProperty(t,r.version);if(o&&o!==n){this.valueToJsonCore(t,e,o,r);return}var s=n.getSerializableValue(t,r.storeDefaults);if(s!==void 0){if(this.isValueArray(s)){for(var a=[],l=0;l<s.length;l++)a.push(this.toJsonObjectCore(s[l],n,r));s=a.length>0?a:null}else s=this.toJsonObjectCore(s,n,r);if(s!=null){var u=n.getSerializedName(r.version),d=typeof t.getPropertyValue=="function"&&t.getPropertyValue(u,null)!==null;(r.storeDefaults&&d||!n.isDefaultValueByObj(t,s))&&(!x.onSerializingProperty||!x.onSerializingProperty(t,n,s,e))&&(e[u]=this.removePosOnValueToJson(n,s))}}},i.prototype.valueToObj=function(t,e,n,r,o){if(t!=null){if(this.removePos(n,t),n!=null&&n.hasToUseSetValue){n.setValue(e,t,this);return}if(n.isArray&&!Array.isArray(t)&&t){t=[t];var s=r&&n.alternativeName&&r[n.alternativeName]?n.alternativeName:n.name;this.addNewError(new sl(s,e.getType()),r||t,e)}if(this.isValueArray(t)){this.valueToArray(t,e,n.name,n,o);return}var a=this.createNewObj(t,n);a.newObj&&(this.toObjectCore(t,a.newObj,o),t=a.newObj),a.error||(n!=null?(n.setValue(e,t,this),o&&o.validatePropertyValues&&(n.validateValue(t)||this.addNewError(new al(n,t),r,e))):e[n.name]=t)}},i.prototype.removePosOnValueToJson=function(t,e){return!t.isCustom||!e||this.removePosFromObj(e),e},i.prototype.removePos=function(t,e){!t||!t.type||t.type.indexOf("value")<0||this.removePosFromObj(e)},i.prototype.removePosFromObj=function(t){if(!(!t||typeof t.getType=="function")){if(Array.isArray(t))for(var e=0;e<t.length;e++)this.removePosFromObj(t[e]);if(typeof t=="object"){t[i.positionPropertyName]&&delete t[i.positionPropertyName];for(var n in t)this.removePosFromObj(t[n])}}},i.prototype.isValueArray=function(t){return t&&Array.isArray(t)},i.prototype.createNewObj=function(t,e){var n={newObj:null,error:null},r=this.getClassNameForNewObj(t,e);return n.newObj=r?x.createClass(r,t):null,n.error=this.checkNewObjectOnErrors(n.newObj,t,e,r),n},i.prototype.getClassNameForNewObj=function(t,e){var n=e!=null&&e.className?e.className:void 0;if(n||(n=t[i.typePropertyName]),!n)return n;n=n.toLowerCase();var r=e.classNamePart;return r&&n.indexOf(r)<0&&(n+=r),n},i.prototype.checkNewObjectOnErrors=function(t,e,n,r){var o=null;return t?o=this.getRequiredError(t,e):n.baseClassName&&(r?o=new Mi(n.name,n.baseClassName):o=new Li(n.name,n.baseClassName)),o&&this.addNewError(o,e,t),o},i.prototype.getRequiredError=function(t,e){if(!t.getType||typeof t.getData=="function")return null;var n=x.findClass(t.getType());if(!n)return null;var r=n.getRequiredProperties();if(!Array.isArray(r))return null;for(var o=0;o<r.length;o++){var s=r[o];if(P.isValueEmpty(s.defaultValue)&&!e[s.name])return new ji(s.name,t.getType())}return null},i.prototype.addNewError=function(t,e,n){if(t.jsonObj=e,t.element=n,this.errors.push(t),!!e){var r=e[i.positionPropertyName];r&&(t.at=r.start,t.end=r.end)}},i.prototype.valueToArray=function(t,e,n,r,o){if(!(e[n]&&!this.isValueArray(e[n]))){e[n]&&t.length>0&&e[n].splice(0,e[n].length);var s=e[n]?e[n]:[];this.addValuesIntoArray(t,s,r,o),e[n]||(e[n]=s)}},i.prototype.addValuesIntoArray=function(t,e,n,r){for(var o=0;o<t.length;o++){var s=this.createNewObj(t[o],n);s.newObj?(t[o].name&&(s.newObj.name=t[o].name),t[o].valueName&&(s.newObj.valueName=t[o].valueName.toString()),e.push(s.newObj),this.toObjectCore(t[o],s.newObj,r)):s.error||e.push(t[o])}},i.prototype.findProperty=function(t,e){if(!t)return null;for(var n=0;n<t.length;n++){var r=t[n];if(r.name==e||r.alternativeName==e)return r}return null},i.typePropertyName="type",i.positionPropertyName="pos",i.metaDataValue=new Ai,i}(),x=fe.metaData,Ni="@survey",me=function(){function i(){this.values=null,this.properties=null,this.asyncValues={}}return i.prototype.getFirstName=function(t,e){if(e===void 0&&(e=null),!t)return t;var n="";if(e&&(n=this.getFirstPropertyName(t,e),n))return n;for(var r=0;r<t.length;r++){var o=t[r];if(o=="."||o=="[")break;n+=o}return n},i.prototype.hasValue=function(t,e){e===void 0&&(e=null),e||(e=this.values);var n=this.getValueCore(t,e);return n.hasValue},i.prototype.getValue=function(t,e){e===void 0&&(e=null),e||(e=this.values);var n=this.getValueCore(t,e);return n.value},i.prototype.setValue=function(t,e,n){if(e){var r=this.getNonNestedObject(t,e,!0);r&&(t=r.value,e=r.text,t&&e&&(t[e]=n))}},i.prototype.getValueInfo=function(t){if(t.path){t.value=this.getValueFromPath(t.path,this.values),t.hasValue=t.value!==null&&!P.isValueEmpty(t.value),!t.hasValue&&t.path.length>1&&t.path[t.path.length-1]=="length"&&(t.hasValue=!0,t.value=0);return}var e=this.getValueCore(t.name,this.values);t.value=e.value,t.hasValue=e.hasValue,t.path=e.hasValue?e.path:null,t.sctrictCompare=e.sctrictCompare},i.prototype.isAnyKeyChanged=function(t,e){for(var n=0;n<e.length;n++){var r=e[n];if(r){var o=r.toLowerCase();if(t.hasOwnProperty(r)||r!==o&&t.hasOwnProperty(o))return!0;var s=this.getFirstName(r);if(t.hasOwnProperty(s)){if(r===s)return!0;var a=t[s];if(a!=null){if(!a.hasOwnProperty("oldValue")||!a.hasOwnProperty("newValue"))return!0;var l={};l[s]=a.oldValue;var u=this.getValue(r,l);l[s]=a.newValue;var d=this.getValue(r,l);if(!P.isTwoValueEquals(u,d,!1,!1,!1))return!0}}}}return!1},i.prototype.getValueFromPath=function(t,e){if(t.length===2&&t[0]===Ni)return this.getValueFromSurvey(t[1]);for(var n=0;e&&n<t.length;){var r=t[n];if(P.isNumber(r)&&Array.isArray(e)&&r>=e.length)return null;e=e[r],n++}return e},i.prototype.getValueCore=function(t,e){var n=this.getQuestionDirectly(t);if(n)return{hasValue:!0,value:n.value,path:[t],sctrictCompare:n.requireStrictCompare};var r=this.getValueFromValues(t,e);if(t&&!r.hasValue){var o=this.getValueFromSurvey(t);o!==void 0&&(r.hasValue=!0,r.value=o,r.path=[Ni,t])}return r},i.prototype.getQuestionDirectly=function(t){if(this.properties&&this.properties.survey)return this.properties.survey.getQuestionByValueName(t)},i.prototype.getValueFromSurvey=function(t){if(this.properties&&this.properties.survey)return this.properties.survey.getBuiltInVariableValue(t.toLocaleLowerCase())},i.prototype.getValueFromValues=function(t,e){var n={hasValue:!1,value:null,path:null},r=e;if(!r&&r!==0&&r!==!1)return n;t&&t.lastIndexOf(".length")>-1&&t.lastIndexOf(".length")===t.length-7&&(n.value=0,n.hasValue=!0);var o=this.getNonNestedObject(r,t,!1);return o&&(n.path=o.path,n.value=o.text?this.getObjectValue(o.value,o.text):o.value,n.hasValue=!P.isValueEmpty(n.value)),n},i.prototype.getNonNestedObject=function(t,e,n){for(var r=new Array,o=0,s=this.getNonNestedObjectCore(t,e,n,r);!s&&o<r.length;)o=r.length,s=this.getNonNestedObjectCore(t,e,n,r);return s},i.prototype.getNonNestedObjectCore=function(t,e,n,r){var o=this.getFirstPropertyName(e,t,n,r);o&&r.push(o);for(var s=o?[o]:null;e!=o&&t;){var a=e[0]=="[";if(a){var l=this.getObjInArray(t,e);if(!l)return null;t=l.value,e=l.text,s.push(l.index)}else{if(!o&&e==this.getFirstName(e))return{value:t,text:e,path:s};if(t=this.getObjectValue(t,o),P.isValueEmpty(t)&&!n)return null;e=e.substring(o.length)}e&&e[0]=="."&&(e=e.substring(1)),o=this.getFirstPropertyName(e,t,n,r),o&&s.push(o)}return{value:t,text:e,path:s}},i.prototype.getObjInArray=function(t,e){if(!Array.isArray(t))return null;for(var n=1,r="";n<e.length&&e[n]!="]";)r+=e[n],n++;return e=n<e.length?e.substring(n+1):"",n=this.getIntValue(r),n<0||n>=t.length?null:{value:t[n],text:e,index:n}},i.prototype.getFirstPropertyName=function(t,e,n,r){if(n===void 0&&(n=!1),r===void 0&&(r=void 0),!t||(e||(e={}),e.hasOwnProperty(t)))return t;var o=t.toLowerCase(),s=o[0],a=s.toUpperCase();for(var l in e)if(!(Array.isArray(r)&&r.indexOf(l)>-1)){var u=l[0];if(u===a||u===s){var d=l.toLowerCase();if(d==o)return l;if(o.length<=d.length)continue;var v=o[d.length];if(v!="."&&v!="[")continue;if(d==o.substring(0,d.length))return l}}if(n&&t[0]!=="["){var V=t.indexOf(".");return V>-1&&(t=t.substring(0,V),e[t]={}),t}return""},i.prototype.getObjectValue=function(t,e){return e?t[e]:null},i.prototype.getIntValue=function(t){return t=="0"||(t|0)>0&&t%1==0?Number(t):-1},i}(),Fe=function(){function i(){}return i.disposedObjectChangedProperty=function(t,e){i.warn('An attempt to set a property "'+t+'" of a disposed object "'+e+'"')},i.inCorrectQuestionValue=function(t,e){var n=JSON.stringify(e,null,3);i.warn("An attempt to assign an incorrect value"+n+' to the following question: "'+t+'"')},i.warn=function(t){console.warn(t)},i.error=function(t){console.error(t)},i}(),U=function(){function i(){this.functionHash={},this.isAsyncHash={}}return i.prototype.register=function(t,e,n){n===void 0&&(n=!1),this.functionHash[t]=e,n&&(this.isAsyncHash[t]=!0)},i.prototype.unregister=function(t){delete this.functionHash[t],delete this.isAsyncHash[t]},i.prototype.hasFunction=function(t){return!!this.functionHash[t]},i.prototype.isAsyncFunction=function(t){return!!this.isAsyncHash[t]},i.prototype.clear=function(){this.functionHash={}},i.prototype.getAll=function(){var t=[];for(var e in this.functionHash)t.push(e);return t.sort()},i.prototype.run=function(t,e,n,r){n===void 0&&(n=null);var o=this.functionHash[t];if(!o)return Fe.warn("Unknown function name: "+t),null;var s={func:o};if(n)for(var a in n)s[a]=n[a];return s.func(e,r)},i.Instance=new i,i}(),ll=U.Instance.register;function St(i,t){if(i!=null)if(Array.isArray(i))for(var e=0;e<i.length;e++)St(i[e],t);else P.isNumber(i)&&(i=P.getNumber(i)),t.push(i)}function Fi(i){var t=[];St(i,t);for(var e=0,n=0;n<t.length;n++)e=P.correctAfterPlusMinis(e,t[n],e+t[n]);return e}U.Instance.register("sum",Fi);function _i(i,t){var e=[];St(i,e);for(var n=void 0,r=0;r<e.length;r++)n===void 0&&(n=e[r]),t?n>e[r]&&(n=e[r]):n<e[r]&&(n=e[r]);return n}function ul(i){return _i(i,!0)}U.Instance.register("min",ul);function cl(i){return _i(i,!1)}U.Instance.register("max",cl);function fl(i){var t=[];return St(i,t),t.length}U.Instance.register("count",fl);function pl(i){var t=[];St(i,t);var e=Fi(i);return t.length>0?e/t.length:0}U.Instance.register("avg",pl);function dl(i,t){if(i.length<2||i.length>3)return null;var e=i[0];if(!e||!Array.isArray(e)&&!Array.isArray(Object.keys(e)))return null;var n=i[1];if(typeof n!="string"&&!(n instanceof String))return null;var r=i.length>2?i[2]:void 0;if(typeof r!="string"&&!(r instanceof String)&&(r=void 0),!r){var o=Array.isArray(t)&&t.length>2?t[2]:void 0;o&&o.toString()&&(r=o.toString())}return{data:e,name:n,expression:r}}function hl(i){return typeof i=="string"?P.isNumber(i)?P.getNumber(i):void 0:i}function Bi(i,t,e,n,r,o){if(!i||P.isValueEmpty(i[t])||o&&!o.run(i))return e;var s=r?hl(i[t]):1;return n(e,s)}function Kt(i,t,e,n){n===void 0&&(n=!0);var r=dl(i,t);if(r){var o=r.expression?new de(r.expression):void 0;o&&o.isAsync&&(o=void 0);var s=void 0;if(Array.isArray(r.data))for(var a=0;a<r.data.length;a++)s=Bi(r.data[a],r.name,s,e,n,o);else for(var l in r.data)s=Bi(r.data[l],r.name,s,e,n,o);return s}}function ki(i,t){var e=Kt(i,t,function(n,r){return n==null&&(n=0),r==null||r==null?n:P.correctAfterPlusMinis(n,r,n+r)});return e!==void 0?e:0}U.Instance.register("sumInArray",ki);function gl(i,t){return Kt(i,t,function(e,n){return e==null?n:n==null||n==null||e<n?e:n})}U.Instance.register("minInArray",gl);function yl(i,t){return Kt(i,t,function(e,n){return e==null?n:n==null||n==null||e>n?e:n})}U.Instance.register("maxInArray",yl);function qi(i,t){var e=Kt(i,t,function(n,r){return n==null&&(n=0),r==null||r==null?n:n+1},!1);return e!==void 0?e:0}U.Instance.register("countInArray",qi);function ml(i,t){var e=qi(i,t);return e==0?0:ki(i,t)/e}U.Instance.register("avgInArray",ml);function vl(i){return!i&&i.length!==3?"":i[0]?i[1]:i[2]}U.Instance.register("iif",vl);function bl(i){return!i&&i.length<1||!i[0]?null:Z("function-getDate",i[0])}U.Instance.register("getDate",bl);function Qi(i,t,e){if(e==="days")return Ui([i,t]);var n=Z("function-dateDiffMonths",i),r=Z("function-dateDiffMonths",t),o=r.getFullYear()-n.getFullYear();e=e||"years";var s=o*12+r.getMonth()-n.getMonth();return r.getDate()<n.getDate()&&(s-=1),e==="months"?s:~~(s/12)}function Cl(i){return!Array.isArray(i)||i.length<1||!i[0]?null:Qi(i[0],void 0,(i.length>1?i[1]:"")||"years")}U.Instance.register("age",Cl);function Pl(i){return!Array.isArray(i)||i.length<2||!i[0]||!i[1]?null:Qi(i[0],i[1],(i.length>2?i[2]:"")||"days")}U.Instance.register("dateDiff",Pl);function Vl(i){if(!Array.isArray(i)||i.length<2||!i[0]||!i[1])return null;var t=Z("function-dateAdd",i[0]),e=i[1],n=i[2]||"days";return n==="days"&&t.setDate(t.getDate()+e),n==="months"&&t.setMonth(t.getMonth()+e),n==="years"&&t.setFullYear(t.getFullYear()+e),t}U.Instance.register("dateAdd",Vl);function zi(i){if(!i)return!1;for(var t=i.questions,e=0;e<t.length;e++)if(!t[e].validate(!1))return!1;return!0}function wl(i){if(!i&&i.length<1||!i[0]||!this.survey)return!1;var t=i[0],e=this.survey.getPageByName(t);if(e||(e=this.survey.getPanelByName(t)),!e){var n=this.survey.getQuestionByName(t);if(!n||!Array.isArray(n.panels))return!1;if(i.length>1)i[1]<n.panels.length&&(e=n.panels[i[1]]);else{for(var r=0;r<n.panels.length;r++)if(!zi(n.panels[r]))return!1;return!0}}return zi(e)}U.Instance.register("isContainerReady",wl);function xl(){return this.survey&&this.survey.isDisplayMode}U.Instance.register("isDisplayMode",xl);function Ol(){return Z("function-currentDate")}U.Instance.register("currentDate",Ol);function Hi(i){var t=Z("function-today");return b.localization.useLocalTimeZone?t.setHours(0,0,0,0):t.setUTCHours(0,0,0,0),Array.isArray(i)&&i.length==1&&t.setDate(t.getDate()+i[0]),t}U.Instance.register("today",Hi);function Sl(i){if(!(i.length!==1||!i[0]))return Z("function-getYear",i[0]).getFullYear()}U.Instance.register("getYear",Sl);function Tl(){return Z("function-currentYear").getFullYear()}U.Instance.register("currentYear",Tl);function Ui(i){if(!Array.isArray(i)||i.length!==2||!i[0]||!i[1])return 0;var t=Z("function-diffDays",i[0]),e=Z("function-diffDays",i[1]),n=Math.abs(e-t);return Math.ceil(n/(1e3*60*60*24))}U.Instance.register("diffDays",Ui);function Yt(i,t){var e=Hi(void 0);return t&&t[0]&&(e=Z("function-"+i,t[0])),e}function Rl(i){var t=Yt("year",i);return t.getFullYear()}U.Instance.register("year",Rl);function El(i){var t=Yt("month",i);return t.getMonth()+1}U.Instance.register("month",El);function Il(i){var t=Yt("day",i);return t.getDate()}U.Instance.register("day",Il);function Al(i){var t=Yt("weekday",i);return t.getDay()}U.Instance.register("weekday",Al);function Wi(i,t){if(!(!i||!t)){for(var e=i.question;e&&e.parent;){var n=e.parent.getQuestionByName(t);if(n)return n;e=e.parentQuestion}for(var r=["row","panel","survey"],o=0;o<r.length;o++){var s=i[r[o]];if(s&&s.getQuestionByName){var n=s.getQuestionByName(t);if(n)return n}}return null}}function $i(i,t){return t.length>1&&!P.isValueEmpty(t[1])?i.getDisplayValue(!0,t[1]):i.displayValue}function Dl(i){var t=this,e=Wi(this,i[0]);if(!e)return"";if(e.isReady)this.returnResult($i(e,i));else{var n=function(r,o){r.isReady&&(r.onReadyChanged.remove(n),t.returnResult($i(r,i)))};e.onReadyChanged.add(n)}}U.Instance.register("displayValue",Dl,!0);function Ll(i){if(!(i.length!==2||!i[0]||!i[1])){var t=Wi(this,i[0]);return t?t[i[1]]:void 0}}U.Instance.register("propertyValue",Ll);function Ml(i){if(i.length<2)return"";var t=i[0];if(!t||typeof t!="string")return"";var e=i[1];if(!P.isNumber(e))return"";var n=i.length>2?i[2]:void 0;return P.isNumber(n)?t.substring(e,n):t.substring(e)}U.Instance.register("substring",Ml);var ht=function(){var i=function(t,e){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(n[o]=r[o])},i(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");i(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),gt=function(){function i(){this._id=i.counter++}return Object.defineProperty(i.prototype,"id",{get:function(){return this._id},enumerable:!1,configurable:!0}),i.prototype.toString=function(t){return""},i.prototype.hasFunction=function(){return!1},i.prototype.hasAsyncFunction=function(){return!1},i.prototype.addToAsyncList=function(t){},i.prototype.isEqual=function(t){return!!t&&t.getType()===this.getType()&&this.isContentEqual(t)},i.prototype.areOperatorsEquals=function(t,e){return!t&&!e||!!t&&t.isEqual(e)},i.counter=1,i}(),Ji=function(i){ht(t,i);function t(e,n,r,o){n===void 0&&(n=null),r===void 0&&(r=null),o===void 0&&(o=!1);var s=i.call(this)||this;return s.operatorName=e,s.left=n,s.right=r,s.isArithmeticValue=o,o?s.consumer=Oe.binaryFunctions.arithmeticOp(e):s.consumer=Oe.binaryFunctions[e],s.consumer==null&&Oe.throwInvalidOperatorError(e),s}return 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 this.operatorName=="or"||this.operatorName=="and"},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 n=e;return n.operator===this.operator&&this.areOperatorsEquals(this.left,n.left)&&this.areOperatorsEquals(this.right,n.right)},t.prototype.evaluateParam=function(e,n){return e==null?null:e.evaluate(n)},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(e===void 0&&(e=void 0),e){var n=e(this);if(n)return n}return"("+Oe.safeToString(this.left,e)+" "+Oe.operatorToString(this.operatorName)+" "+Oe.safeToString(this.right,e)+")"},t.prototype.setVariables=function(e){this.left!=null&&this.left.setVariables(e),this.right!=null&&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}(gt),kn=function(i){ht(t,i);function t(e,n){var r=i.call(this)||this;return r.expressionValue=e,r.operatorName=n,r.consumer=Oe.unaryFunctions[n],r.consumer==null&&Oe.throwInvalidOperatorError(n),r}return 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(e===void 0&&(e=void 0),e){var n=e(this);if(n)return n}return Oe.operatorToString(this.operatorName)+" "+this.expression.toString(e)},t.prototype.isContentEqual=function(e){var n=e;return n.operator==this.operator&&this.areOperatorsEquals(this.expression,n.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 n=this.expression.evaluate(e);return this.consumer.call(this,n)},t.prototype.setVariables=function(e){this.expression.setVariables(e)},t}(gt),Xt=function(i){ht(t,i);function t(e){var n=i.call(this)||this;return n.values=e,n}return t.prototype.getType=function(){return"array"},t.prototype.toString=function(e){if(e===void 0&&(e=void 0),e){var n=e(this);if(n)return n}return"["+this.values.map(function(r){return r.toString(e)}).join(", ")+"]"},t.prototype.evaluate=function(e){return this.values.map(function(n){return n.evaluate(e)})},t.prototype.setVariables=function(e){this.values.forEach(function(n){n.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(n){return n.addToAsyncList(e)})},t.prototype.isContentEqual=function(e){var n=e;if(n.values.length!==this.values.length)return!1;for(var r=0;r<this.values.length;r++)if(!n.values[r].isEqual(this.values[r]))return!1;return!0},t}(gt),qn=function(i){ht(t,i);function t(e){var n=i.call(this)||this;return n.value=e,n}return t.prototype.getType=function(){return"const"},t.prototype.toString=function(e){if(e===void 0&&(e=void 0),e){var n=e(this);if(n)return n}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){if(!e||typeof e!="string")return e;if(Oe.isBooleanValue(e))return e.toLowerCase()==="true";if(e.length>1&&this.isQuote(e[0])&&this.isQuote(e[e.length-1]))return e.substring(1,e.length-1);if(P.isNumber(e)){if(e[0]==="0"&&e.indexOf("0x")!=0){var n=e.length,r=n>1&&(e[1]==="."||e[1]===",");if(!r&&n>1||r&&n<2)return e}return P.getNumber(e)}return e},t.prototype.isContentEqual=function(e){var n=e;return n.value==this.value},t.prototype.isQuote=function(e){return e=="'"||e=='"'},t}(gt),Gi=function(i){ht(t,i);function t(e){var n=i.call(this,e)||this;return n.variableName=e,n.valueInfo={},n.useValueAsItIs=!1,n.variableName&&n.variableName.length>1&&n.variableName[0]===t.DisableConversionChar&&(n.variableName=n.variableName.substring(1),n.useValueAsItIs=!0),n}return Object.defineProperty(t,"DisableConversionChar",{get:function(){return b.expressionDisableConversionChar},set:function(e){b.expressionDisableConversionChar=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"requireStrictCompare",{get:function(){return this.valueInfo.sctrictCompare===!0},enumerable:!1,configurable:!0}),t.prototype.getType=function(){return"variable"},t.prototype.toString=function(e){if(e===void 0&&(e=void 0),e){var n=e(this);if(n)return n}var r=this.useValueAsItIs?t.DisableConversionChar:"";return"{"+r+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(e){return this.useValueAsItIs?e:i.prototype.getCorrectValue.call(this,e)},t.prototype.isContentEqual=function(e){var n=e;return n.variable==this.variable},t}(qn),Ki=function(i){ht(t,i);function t(e,n){var r=i.call(this)||this;return r.originalValue=e,r.parameters=n,Array.isArray(n)&&n.length===0&&(r.parameters=new Xt([])),r}return t.prototype.getType=function(){return"function"},t.prototype.evaluate=function(e){var n=this.getAsynValue(e);return n?n.value:this.evaluateCore(e)},t.prototype.evaluateCore=function(e){var n=e.properties;if(this.isAsyncFunction){n=P.createCopy(e.properties);var r=this.id,o=e.asyncValues,s=e.onCompleteAsyncFunc,a=this;n.returnResult=function(l){o[r]={value:l},s(a)}}return U.Instance.run(this.originalValue,this.parameters.evaluate(e),n,this.parameters.values)},t.prototype.toString=function(e){if(e===void 0&&(e=void 0),e){var n=e(this);if(n)return n}return this.originalValue+"("+this.parameters.toString(e)+")"},t.prototype.setVariables=function(e){this.parameters.setVariables(e)},t.prototype.isReady=function(e){return!!this.getAsynValue(e)},t.prototype.getAsynValue=function(e){return e.asyncValues[this.id]},t.prototype.hasFunction=function(){return!0},t.prototype.hasAsyncFunction=function(){return this.isAsyncFunction()||this.parameters.hasAsyncFunction()},t.prototype.isAsyncFunction=function(){return U.Instance.isAsyncFunction(this.originalValue)},t.prototype.addToAsyncList=function(e){var n=void 0;if(this.isAsyncFunction()&&(n={operand:this}),this.parameters.hasAsyncFunction()){var r=new Array;this.parameters.addToAsyncList(r),r.forEach(function(o){return o.parent=n}),n||(n={}),n.children=r}n&&e.push(n)},t.prototype.isContentEqual=function(e){var n=e;return n.originalValue==this.originalValue&&this.areOperatorsEquals(n.parameters,this.parameters)},t}(gt),Oe=function(){function i(){}return i.throwInvalidOperatorError=function(t){throw new Error("Invalid operator: '"+t+"'")},i.safeToString=function(t,e){return t==null?"":t.toString(e)},i.toOperandString=function(t){return t&&!P.isNumber(t)&&!i.isBooleanValue(t)&&(t="'"+t+"'"),t},i.isBooleanValue=function(t){return!!t&&(t.toLowerCase()==="true"||t.toLowerCase()==="false")},i.countDecimals=function(t){if(P.isNumber(t)&&Math.floor(t)!==t){var e=t.toString().split(".");return e.length>1&&e[1].length||0}return 0},i.plusMinus=function(t,e,n){var r=i.countDecimals(t),o=i.countDecimals(e);if(r>0||o>0){var s=Math.max(r,o);n=parseFloat(n.toFixed(s))}return n},i.isTwoValueEquals=function(t,e,n){return n===void 0&&(n=!0),t==="undefined"&&(t=void 0),e==="undefined"&&(e=void 0),P.isTwoValueEquals(t,e,n)},i.operatorToString=function(t){var e=i.signs[t];return e??t},i.convertValForDateCompare=function(t,e){if(e instanceof Date&&typeof t=="string"){var n=Z("expression-operand",t);return n.setHours(0,0,0),n}return t},i.unaryFunctions={empty:function(t){return P.isValueEmpty(t)},notempty:function(t){return!i.unaryFunctions.empty(t)},negate:function(t){return!t}},i.binaryFunctions={arithmeticOp:function(t){var e=function(n,r){return P.isValueEmpty(n)?typeof r=="number"?0:typeof n=="string"?n:typeof r=="string"?"":Array.isArray(r)?[]:0:n};return function(n,r){n=e(n,r),r=e(r,n);var o=i.binaryFunctions[t];return o==null?null:o.call(this,n,r)}},and:function(t,e){return t&&e},or:function(t,e){return t||e},plus:function(t,e){return P.sumAnyValues(t,e)},minus:function(t,e){return P.correctAfterPlusMinis(t,e,t-e)},mul:function(t,e){return P.correctAfterMultiple(t,e,t*e)},div:function(t,e){return e?t/e:null},mod:function(t,e){return e?t%e:null},power:function(t,e){return Math.pow(t,e)},greater:function(t,e){return t==null||e==null?!1:(t=i.convertValForDateCompare(t,e),e=i.convertValForDateCompare(e,t),t>e)},less:function(t,e){return t==null||e==null?!1:(t=i.convertValForDateCompare(t,e),e=i.convertValForDateCompare(e,t),t<e)},greaterorequal:function(t,e){return i.binaryFunctions.equal(t,e)?!0:i.binaryFunctions.greater(t,e)},lessorequal:function(t,e){return i.binaryFunctions.equal(t,e)?!0:i.binaryFunctions.less(t,e)},equal:function(t,e,n){return t=i.convertValForDateCompare(t,e),e=i.convertValForDateCompare(e,t),i.isTwoValueEquals(t,e,n!==!0)},notequal:function(t,e,n){return!i.binaryFunctions.equal(t,e,n)},contains:function(t,e){return i.binaryFunctions.containsCore(t,e,!0)},notcontains:function(t,e){return!t&&!P.isValueEmpty(e)?!0:i.binaryFunctions.containsCore(t,e,!1)},anyof:function(t,e){if(P.isValueEmpty(t)&&P.isValueEmpty(e))return!0;if(P.isValueEmpty(t)||!Array.isArray(t)&&t.length===0)return!1;if(P.isValueEmpty(e))return!0;if(!Array.isArray(t))return i.binaryFunctions.contains(e,t);if(!Array.isArray(e))return i.binaryFunctions.contains(t,e);for(var n=0;n<e.length;n++)if(i.binaryFunctions.contains(t,e[n]))return!0;return!1},allof:function(t,e){if(!t&&!P.isValueEmpty(e))return!1;if(!Array.isArray(e))return i.binaryFunctions.contains(t,e);for(var n=0;n<e.length;n++)if(!i.binaryFunctions.contains(t,e[n]))return!1;return!0},containsCore:function(t,e,n){if(!t&&t!==0&&t!==!1)return!1;if(t.length||(t=t.toString(),(typeof e=="string"||e instanceof String)&&(t=t.toUpperCase(),e=e.toUpperCase())),typeof t=="string"||t instanceof String){if(!e)return!1;e=e.toString();var r=t.indexOf(e)>-1;return n?r:!r}for(var o=Array.isArray(e)?e:[e],s=0;s<o.length;s++){var a=0;for(e=o[s];a<t.length&&!i.isTwoValueEquals(t[a],e);a++);if(a==t.length)return!n}return n}},i.signs={less:"<",lessorequal:"<=",greater:">",greaterorequal:">=",equal:"==",notequal:"!=",plus:"+",minus:"-",mul:"*",div:"/",and:"and",or:"or",power:"^",mod:"%",negate:"!"},i}(),jl=function(){var i=function(t,e){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(n[o]=r[o])},i(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");i(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),Qn=function(i){jl(t,i);function t(e,n,r,o){var s=i.call(this)||this;return s.message=e,s.expected=n,s.found=r,s.location=o,s.name="SyntaxError",typeof Error.captureStackTrace=="function"&&Error.captureStackTrace(s,t),s}return t.buildMessage=function(e,n){function r(d){return d.charCodeAt(0).toString(16).toUpperCase()}function o(d){return d.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(v){return"\\x0"+r(v)}).replace(/[\x10-\x1F\x7F-\x9F]/g,function(v){return"\\x"+r(v)})}function s(d){return d.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(v){return"\\x0"+r(v)}).replace(/[\x10-\x1F\x7F-\x9F]/g,function(v){return"\\x"+r(v)})}function a(d){switch(d.type){case"literal":return'"'+o(d.text)+'"';case"class":var v=d.parts.map(function(V){return Array.isArray(V)?s(V[0])+"-"+s(V[1]):s(V)});return"["+(d.inverted?"^":"")+v+"]";case"any":return"any character";case"end":return"end of input";case"other":return d.description}}function l(d){var v=d.map(a),V,T;if(v.sort(),v.length>0){for(V=1,T=1;V<v.length;V++)v[V-1]!==v[V]&&(v[T]=v[V],T++);v.length=T}switch(v.length){case 1:return v[0];case 2:return v[0]+" or "+v[1];default:return v.slice(0,-1).join(", ")+", or "+v[v.length-1]}}function u(d){return d?'"'+o(d)+'"':"end of input"}return"Expected "+l(e)+" but "+u(n)+" found."},t}(Error);function Nl(i,t){t=t!==void 0?t:{};var e={},n={Expression:pt},r=pt,o=function(c,p){return Za(c,p,!0)},s="||",a=q("||",!1),l="or",u=q("or",!0),d=function(){return"or"},v="&&",V=q("&&",!1),T="and",R=q("and",!0),N=function(){return"and"},j=function(c,p){return Za(c,p)},A="<=",Q=q("<=",!1),re="lessorequal",ie=q("lessorequal",!0),xe=function(){return"lessorequal"},Re=">=",wt=q(">=",!1),ct="greaterorequal",Nf=q("greaterorequal",!0),Ff=function(){return"greaterorequal"},ia="==",_f=q("==",!1),oa="equal",sa=q("equal",!0),aa=function(){return"equal"},Bf="=",kf=q("=",!1),la="!=",qf=q("!=",!1),Qf="notequal",zf=q("notequal",!0),Hf=function(){return"notequal"},Uf="<",Wf=q("<",!1),$f="less",Jf=q("less",!0),Gf=function(){return"less"},Kf=">",Yf=q(">",!1),Xf="greater",Zf=q("greater",!0),ep=function(){return"greater"},tp="+",np=q("+",!1),rp=function(){return"plus"},ip="-",op=q("-",!1),sp=function(){return"minus"},ap="*",lp=q("*",!1),up=function(){return"mul"},cp="/",fp=q("/",!1),pp=function(){return"div"},dp="%",hp=q("%",!1),gp=function(){return"mod"},yp="^",mp=q("^",!1),vp="power",bp=q("power",!0),Cp=function(){return"power"},ua="*=",Pp=q("*=",!1),Vp="contains",wp=q("contains",!0),xp="contain",Op=q("contain",!0),Sp=function(){return"contains"},Tp="notcontains",Rp=q("notcontains",!0),Ep="notcontain",Ip=q("notcontain",!0),Ap=function(){return"notcontains"},Dp="anyof",Lp=q("anyof",!0),Mp=function(){return"anyof"},jp="allof",Np=q("allof",!0),Fp=function(){return"allof"},ca="(",fa=q("(",!1),pa=")",da=q(")",!1),_p=function(c){return c},Bp=function(c,p){return new Ki(c,p)},kp="!",qp=q("!",!1),Qp="negate",zp=q("negate",!0),Hp=function(c){return new kn(c,"negate")},Up=function(c,p){return new kn(c,p)},Wp="empty",$p=q("empty",!0),Jp=function(){return"empty"},Gp="notempty",Kp=q("notempty",!0),Yp=function(){return"notempty"},ha="undefined",Xp=q("undefined",!1),ga="null",Zp=q("null",!1),ed=function(){return null},td=function(c){return new qn(c)},nd="{",rd=q("{",!1),id="}",od=q("}",!1),sd=function(c){return new Gi(c)},vi=function(c){return c},ya="''",ad=q("''",!1),ma=function(){return""},va='""',ld=q('""',!1),ba="'",Ca=q("'",!1),Pa=function(c){return"'"+c+"'"},Va='"',wa=q('"',!1),ud="[",cd=q("[",!1),fd="]",pd=q("]",!1),dd=function(c){return c},xa=",",Oa=q(",",!1),hd=function(c,p){if(c==null)return new Xt([]);var C=[c];if(Array.isArray(p))for(var g=th(p),w=3;w<g.length;w+=4)C.push(g[w]);return new Xt(C)},gd="true",yd=q("true",!0),md=function(){return!0},vd="false",bd=q("false",!0),Cd=function(){return!1},Sa="0x",Pd=q("0x",!1),Vd=function(){return parseInt(Mn(),16)},wd=/^[\-]/,xd=ft(["-"],!1,!1),Od=function(c,p){return c==null?p:-p},Sd=".",Td=q(".",!1),Rd=function(){return parseFloat(Mn())},Ed=function(){return parseInt(Mn(),10)},Id="0",Ad=q("0",!1),Dd=function(){return 0},Ta=function(c){return c.join("")},Ra="\\'",Ld=q("\\'",!1),Md=function(){return"'"},Ea='\\"',jd=q('\\"',!1),Nd=function(){return'"'},Fd=/^[^"']/,_d=ft(['"',"'"],!0,!1),bi=function(){return Mn()},Bd=/^[^{}]/,kd=ft(["{","}"],!0,!1),Ia=/^[0-9]/,Aa=ft([["0","9"]],!1,!1),Da=/^[1-9]/,La=ft([["1","9"]],!1,!1),Ma=/^[a-zA-Z_]/,ja=ft([["a","z"],["A","Z"],"_"],!1,!1),qd=zd("whitespace"),Na=/^[ \t\n\r]/,Fa=ft([" "," ",` -`,"\r"],!1,!1),f=0,B=0,Dn=[{line:1,column:1}],je=0,Ci=[],D=0,F={},Ln;if(t.startRule!==void 0){if(!(t.startRule in n))throw new Error(`Can't start parsing from rule "`+t.startRule+'".');r=n[t.startRule]}function Mn(){return i.substring(B,f)}function q(c,p){return{type:"literal",text:c,ignoreCase:p}}function ft(c,p,C){return{type:"class",parts:c,inverted:p,ignoreCase:C}}function Qd(){return{type:"end"}}function zd(c){return{type:"other",description:c}}function _a(c){var p=Dn[c],C;if(p)return p;for(C=c-1;!Dn[C];)C--;for(p=Dn[C],p={line:p.line,column:p.column};C<c;)i.charCodeAt(C)===10?(p.line++,p.column=1):p.column++,C++;return Dn[c]=p,p}function Ba(c,p){var C=_a(c),g=_a(p);return{start:{offset:c,line:C.line,column:C.column},end:{offset:p,line:g.line,column:g.column}}}function M(c){f<je||(f>je&&(je=f,Ci=[]),Ci.push(c))}function Hd(c,p,C){return new Qn(Qn.buildMessage(c,p),c,p,C)}function pt(){var c,p,C,g,w,S,L,_,G,Y=f*34+0,Ri=F[Y];if(Ri)return f=Ri.nextPos,Ri.result;if(c=f,p=H(),p!==e)if(C=Pi(),C!==e){for(g=[],w=f,S=H(),S!==e?(L=ka(),L!==e?(_=H(),_!==e?(G=Pi(),G!==e?(S=[S,L,_,G],w=S):(f=w,w=e)):(f=w,w=e)):(f=w,w=e)):(f=w,w=e);w!==e;)g.push(w),w=f,S=H(),S!==e?(L=ka(),L!==e?(_=H(),_!==e?(G=Pi(),G!==e?(S=[S,L,_,G],w=S):(f=w,w=e)):(f=w,w=e)):(f=w,w=e)):(f=w,w=e);g!==e?(w=H(),w!==e?(B=c,p=o(C,g),c=p):(f=c,c=e)):(f=c,c=e)}else f=c,c=e;else f=c,c=e;return F[Y]={nextPos:f,result:c},c}function ka(){var c,p,C=f*34+1,g=F[C];return g?(f=g.nextPos,g.result):(c=f,i.substr(f,2)===s?(p=s,f+=2):(p=e,D===0&&M(a)),p===e&&(i.substr(f,2).toLowerCase()===l?(p=i.substr(f,2),f+=2):(p=e,D===0&&M(u))),p!==e&&(B=c,p=d()),c=p,F[C]={nextPos:f,result:c},c)}function Pi(){var c,p,C,g,w,S,L,_,G=f*34+2,Y=F[G];if(Y)return f=Y.nextPos,Y.result;if(c=f,p=Vi(),p!==e){for(C=[],g=f,w=H(),w!==e?(S=qa(),S!==e?(L=H(),L!==e?(_=Vi(),_!==e?(w=[w,S,L,_],g=w):(f=g,g=e)):(f=g,g=e)):(f=g,g=e)):(f=g,g=e);g!==e;)C.push(g),g=f,w=H(),w!==e?(S=qa(),S!==e?(L=H(),L!==e?(_=Vi(),_!==e?(w=[w,S,L,_],g=w):(f=g,g=e)):(f=g,g=e)):(f=g,g=e)):(f=g,g=e);C!==e?(B=c,p=o(p,C),c=p):(f=c,c=e)}else f=c,c=e;return F[G]={nextPos:f,result:c},c}function qa(){var c,p,C=f*34+3,g=F[C];return g?(f=g.nextPos,g.result):(c=f,i.substr(f,2)===v?(p=v,f+=2):(p=e,D===0&&M(V)),p===e&&(i.substr(f,3).toLowerCase()===T?(p=i.substr(f,3),f+=3):(p=e,D===0&&M(R))),p!==e&&(B=c,p=N()),c=p,F[C]={nextPos:f,result:c},c)}function Vi(){var c,p,C,g,w,S,L,_,G=f*34+4,Y=F[G];if(Y)return f=Y.nextPos,Y.result;if(c=f,p=wi(),p!==e){for(C=[],g=f,w=H(),w!==e?(S=Qa(),S!==e?(L=H(),L!==e?(_=wi(),_!==e?(w=[w,S,L,_],g=w):(f=g,g=e)):(f=g,g=e)):(f=g,g=e)):(f=g,g=e);g!==e;)C.push(g),g=f,w=H(),w!==e?(S=Qa(),S!==e?(L=H(),L!==e?(_=wi(),_!==e?(w=[w,S,L,_],g=w):(f=g,g=e)):(f=g,g=e)):(f=g,g=e)):(f=g,g=e);C!==e?(B=c,p=j(p,C),c=p):(f=c,c=e)}else f=c,c=e;return F[G]={nextPos:f,result:c},c}function Qa(){var c,p,C=f*34+5,g=F[C];return g?(f=g.nextPos,g.result):(c=f,i.substr(f,2)===A?(p=A,f+=2):(p=e,D===0&&M(Q)),p===e&&(i.substr(f,11).toLowerCase()===re?(p=i.substr(f,11),f+=11):(p=e,D===0&&M(ie))),p!==e&&(B=c,p=xe()),c=p,c===e&&(c=f,i.substr(f,2)===Re?(p=Re,f+=2):(p=e,D===0&&M(wt)),p===e&&(i.substr(f,14).toLowerCase()===ct?(p=i.substr(f,14),f+=14):(p=e,D===0&&M(Nf))),p!==e&&(B=c,p=Ff()),c=p,c===e&&(c=f,i.substr(f,2)===ia?(p=ia,f+=2):(p=e,D===0&&M(_f)),p===e&&(i.substr(f,5).toLowerCase()===oa?(p=i.substr(f,5),f+=5):(p=e,D===0&&M(sa))),p!==e&&(B=c,p=aa()),c=p,c===e&&(c=f,i.charCodeAt(f)===61?(p=Bf,f++):(p=e,D===0&&M(kf)),p===e&&(i.substr(f,5).toLowerCase()===oa?(p=i.substr(f,5),f+=5):(p=e,D===0&&M(sa))),p!==e&&(B=c,p=aa()),c=p,c===e&&(c=f,i.substr(f,2)===la?(p=la,f+=2):(p=e,D===0&&M(qf)),p===e&&(i.substr(f,8).toLowerCase()===Qf?(p=i.substr(f,8),f+=8):(p=e,D===0&&M(zf))),p!==e&&(B=c,p=Hf()),c=p,c===e&&(c=f,i.charCodeAt(f)===60?(p=Uf,f++):(p=e,D===0&&M(Wf)),p===e&&(i.substr(f,4).toLowerCase()===$f?(p=i.substr(f,4),f+=4):(p=e,D===0&&M(Jf))),p!==e&&(B=c,p=Gf()),c=p,c===e&&(c=f,i.charCodeAt(f)===62?(p=Kf,f++):(p=e,D===0&&M(Yf)),p===e&&(i.substr(f,7).toLowerCase()===Xf?(p=i.substr(f,7),f+=7):(p=e,D===0&&M(Zf))),p!==e&&(B=c,p=ep()),c=p)))))),F[C]={nextPos:f,result:c},c)}function wi(){var c,p,C,g,w,S,L,_,G=f*34+6,Y=F[G];if(Y)return f=Y.nextPos,Y.result;if(c=f,p=xi(),p!==e){for(C=[],g=f,w=H(),w!==e?(S=za(),S!==e?(L=H(),L!==e?(_=xi(),_!==e?(w=[w,S,L,_],g=w):(f=g,g=e)):(f=g,g=e)):(f=g,g=e)):(f=g,g=e);g!==e;)C.push(g),g=f,w=H(),w!==e?(S=za(),S!==e?(L=H(),L!==e?(_=xi(),_!==e?(w=[w,S,L,_],g=w):(f=g,g=e)):(f=g,g=e)):(f=g,g=e)):(f=g,g=e);C!==e?(B=c,p=o(p,C),c=p):(f=c,c=e)}else f=c,c=e;return F[G]={nextPos:f,result:c},c}function za(){var c,p,C=f*34+7,g=F[C];return g?(f=g.nextPos,g.result):(c=f,i.charCodeAt(f)===43?(p=tp,f++):(p=e,D===0&&M(np)),p!==e&&(B=c,p=rp()),c=p,c===e&&(c=f,i.charCodeAt(f)===45?(p=ip,f++):(p=e,D===0&&M(op)),p!==e&&(B=c,p=sp()),c=p),F[C]={nextPos:f,result:c},c)}function xi(){var c,p,C,g,w,S,L,_,G=f*34+8,Y=F[G];if(Y)return f=Y.nextPos,Y.result;if(c=f,p=Oi(),p!==e){for(C=[],g=f,w=H(),w!==e?(S=Ha(),S!==e?(L=H(),L!==e?(_=Oi(),_!==e?(w=[w,S,L,_],g=w):(f=g,g=e)):(f=g,g=e)):(f=g,g=e)):(f=g,g=e);g!==e;)C.push(g),g=f,w=H(),w!==e?(S=Ha(),S!==e?(L=H(),L!==e?(_=Oi(),_!==e?(w=[w,S,L,_],g=w):(f=g,g=e)):(f=g,g=e)):(f=g,g=e)):(f=g,g=e);C!==e?(B=c,p=o(p,C),c=p):(f=c,c=e)}else f=c,c=e;return F[G]={nextPos:f,result:c},c}function Ha(){var c,p,C=f*34+9,g=F[C];return g?(f=g.nextPos,g.result):(c=f,i.charCodeAt(f)===42?(p=ap,f++):(p=e,D===0&&M(lp)),p!==e&&(B=c,p=up()),c=p,c===e&&(c=f,i.charCodeAt(f)===47?(p=cp,f++):(p=e,D===0&&M(fp)),p!==e&&(B=c,p=pp()),c=p,c===e&&(c=f,i.charCodeAt(f)===37?(p=dp,f++):(p=e,D===0&&M(hp)),p!==e&&(B=c,p=gp()),c=p)),F[C]={nextPos:f,result:c},c)}function Oi(){var c,p,C,g,w,S,L,_,G=f*34+10,Y=F[G];if(Y)return f=Y.nextPos,Y.result;if(c=f,p=Si(),p!==e){for(C=[],g=f,w=H(),w!==e?(S=Ua(),S!==e?(L=H(),L!==e?(_=Si(),_!==e?(w=[w,S,L,_],g=w):(f=g,g=e)):(f=g,g=e)):(f=g,g=e)):(f=g,g=e);g!==e;)C.push(g),g=f,w=H(),w!==e?(S=Ua(),S!==e?(L=H(),L!==e?(_=Si(),_!==e?(w=[w,S,L,_],g=w):(f=g,g=e)):(f=g,g=e)):(f=g,g=e)):(f=g,g=e);C!==e?(B=c,p=o(p,C),c=p):(f=c,c=e)}else f=c,c=e;return F[G]={nextPos:f,result:c},c}function Ua(){var c,p,C=f*34+11,g=F[C];return g?(f=g.nextPos,g.result):(c=f,i.charCodeAt(f)===94?(p=yp,f++):(p=e,D===0&&M(mp)),p===e&&(i.substr(f,5).toLowerCase()===vp?(p=i.substr(f,5),f+=5):(p=e,D===0&&M(bp))),p!==e&&(B=c,p=Cp()),c=p,F[C]={nextPos:f,result:c},c)}function Si(){var c,p,C,g,w,S,L,_,G=f*34+12,Y=F[G];if(Y)return f=Y.nextPos,Y.result;if(c=f,p=Ti(),p!==e){for(C=[],g=f,w=H(),w!==e?(S=Wa(),S!==e?(L=H(),L!==e?(_=Ti(),_===e&&(_=null),_!==e?(w=[w,S,L,_],g=w):(f=g,g=e)):(f=g,g=e)):(f=g,g=e)):(f=g,g=e);g!==e;)C.push(g),g=f,w=H(),w!==e?(S=Wa(),S!==e?(L=H(),L!==e?(_=Ti(),_===e&&(_=null),_!==e?(w=[w,S,L,_],g=w):(f=g,g=e)):(f=g,g=e)):(f=g,g=e)):(f=g,g=e);C!==e?(B=c,p=j(p,C),c=p):(f=c,c=e)}else f=c,c=e;return F[G]={nextPos:f,result:c},c}function Wa(){var c,p,C=f*34+13,g=F[C];return g?(f=g.nextPos,g.result):(c=f,i.substr(f,2)===ua?(p=ua,f+=2):(p=e,D===0&&M(Pp)),p===e&&(i.substr(f,8).toLowerCase()===Vp?(p=i.substr(f,8),f+=8):(p=e,D===0&&M(wp)),p===e&&(i.substr(f,7).toLowerCase()===xp?(p=i.substr(f,7),f+=7):(p=e,D===0&&M(Op)))),p!==e&&(B=c,p=Sp()),c=p,c===e&&(c=f,i.substr(f,11).toLowerCase()===Tp?(p=i.substr(f,11),f+=11):(p=e,D===0&&M(Rp)),p===e&&(i.substr(f,10).toLowerCase()===Ep?(p=i.substr(f,10),f+=10):(p=e,D===0&&M(Ip))),p!==e&&(B=c,p=Ap()),c=p,c===e&&(c=f,i.substr(f,5).toLowerCase()===Dp?(p=i.substr(f,5),f+=5):(p=e,D===0&&M(Lp)),p!==e&&(B=c,p=Mp()),c=p,c===e&&(c=f,i.substr(f,5).toLowerCase()===jp?(p=i.substr(f,5),f+=5):(p=e,D===0&&M(Np)),p!==e&&(B=c,p=Fp()),c=p))),F[C]={nextPos:f,result:c},c)}function Ti(){var c,p,C,g,w,S,L=f*34+14,_=F[L];return _?(f=_.nextPos,_.result):(c=f,i.charCodeAt(f)===40?(p=ca,f++):(p=e,D===0&&M(fa)),p!==e?(C=H(),C!==e?(g=pt(),g!==e?(w=H(),w!==e?(i.charCodeAt(f)===41?(S=pa,f++):(S=e,D===0&&M(da)),S===e&&(S=null),S!==e?(B=c,p=_p(g),c=p):(f=c,c=e)):(f=c,c=e)):(f=c,c=e)):(f=c,c=e)):(f=c,c=e),c===e&&(c=Ud(),c===e&&(c=Wd(),c===e&&(c=$a(),c===e&&(c=Gd())))),F[L]={nextPos:f,result:c},c)}function Ud(){var c,p,C,g,w,S=f*34+15,L=F[S];return L?(f=L.nextPos,L.result):(c=f,p=Xa(),p!==e?(i.charCodeAt(f)===40?(C=ca,f++):(C=e,D===0&&M(fa)),C!==e?(g=Ja(),g!==e?(i.charCodeAt(f)===41?(w=pa,f++):(w=e,D===0&&M(da)),w===e&&(w=null),w!==e?(B=c,p=Bp(p,g),c=p):(f=c,c=e)):(f=c,c=e)):(f=c,c=e)):(f=c,c=e),F[S]={nextPos:f,result:c},c)}function Wd(){var c,p,C,g,w=f*34+16,S=F[w];return S?(f=S.nextPos,S.result):(c=f,i.charCodeAt(f)===33?(p=kp,f++):(p=e,D===0&&M(qp)),p===e&&(i.substr(f,6).toLowerCase()===Qp?(p=i.substr(f,6),f+=6):(p=e,D===0&&M(zp))),p!==e?(C=H(),C!==e?(g=pt(),g!==e?(B=c,p=Hp(g),c=p):(f=c,c=e)):(f=c,c=e)):(f=c,c=e),c===e&&(c=f,p=$a(),p!==e?(C=H(),C!==e?(g=$d(),g!==e?(B=c,p=Up(p,g),c=p):(f=c,c=e)):(f=c,c=e)):(f=c,c=e)),F[w]={nextPos:f,result:c},c)}function $d(){var c,p,C=f*34+17,g=F[C];return g?(f=g.nextPos,g.result):(c=f,i.substr(f,5).toLowerCase()===Wp?(p=i.substr(f,5),f+=5):(p=e,D===0&&M($p)),p!==e&&(B=c,p=Jp()),c=p,c===e&&(c=f,i.substr(f,8).toLowerCase()===Gp?(p=i.substr(f,8),f+=8):(p=e,D===0&&M(Kp)),p!==e&&(B=c,p=Yp()),c=p),F[C]={nextPos:f,result:c},c)}function $a(){var c,p,C,g,w,S=f*34+18,L=F[S];return L?(f=L.nextPos,L.result):(c=f,p=H(),p!==e?(i.substr(f,9)===ha?(C=ha,f+=9):(C=e,D===0&&M(Xp)),C===e&&(i.substr(f,4)===ga?(C=ga,f+=4):(C=e,D===0&&M(Zp))),C!==e?(B=c,p=ed(),c=p):(f=c,c=e)):(f=c,c=e),c===e&&(c=f,p=H(),p!==e?(C=Jd(),C!==e?(B=c,p=td(C),c=p):(f=c,c=e)):(f=c,c=e),c===e&&(c=f,p=H(),p!==e?(i.charCodeAt(f)===123?(C=nd,f++):(C=e,D===0&&M(rd)),C!==e?(g=Zd(),g!==e?(i.charCodeAt(f)===125?(w=id,f++):(w=e,D===0&&M(od)),w!==e?(B=c,p=sd(g),c=p):(f=c,c=e)):(f=c,c=e)):(f=c,c=e)):(f=c,c=e))),F[S]={nextPos:f,result:c},c)}function Jd(){var c,p,C,g,w=f*34+19,S=F[w];return S?(f=S.nextPos,S.result):(c=f,p=Kd(),p!==e&&(B=c,p=vi(p)),c=p,c===e&&(c=f,p=Yd(),p!==e&&(B=c,p=vi(p)),c=p,c===e&&(c=f,p=Xa(),p!==e&&(B=c,p=vi(p)),c=p,c===e&&(c=f,i.substr(f,2)===ya?(p=ya,f+=2):(p=e,D===0&&M(ad)),p!==e&&(B=c,p=ma()),c=p,c===e&&(c=f,i.substr(f,2)===va?(p=va,f+=2):(p=e,D===0&&M(ld)),p!==e&&(B=c,p=ma()),c=p,c===e&&(c=f,i.charCodeAt(f)===39?(p=ba,f++):(p=e,D===0&&M(Ca)),p!==e?(C=Ga(),C!==e?(i.charCodeAt(f)===39?(g=ba,f++):(g=e,D===0&&M(Ca)),g!==e?(B=c,p=Pa(C),c=p):(f=c,c=e)):(f=c,c=e)):(f=c,c=e),c===e&&(c=f,i.charCodeAt(f)===34?(p=Va,f++):(p=e,D===0&&M(wa)),p!==e?(C=Ga(),C!==e?(i.charCodeAt(f)===34?(g=Va,f++):(g=e,D===0&&M(wa)),g!==e?(B=c,p=Pa(C),c=p):(f=c,c=e)):(f=c,c=e)):(f=c,c=e))))))),F[w]={nextPos:f,result:c},c)}function Gd(){var c,p,C,g,w=f*34+20,S=F[w];return S?(f=S.nextPos,S.result):(c=f,i.charCodeAt(f)===91?(p=ud,f++):(p=e,D===0&&M(cd)),p!==e?(C=Ja(),C!==e?(i.charCodeAt(f)===93?(g=fd,f++):(g=e,D===0&&M(pd)),g!==e?(B=c,p=dd(C),c=p):(f=c,c=e)):(f=c,c=e)):(f=c,c=e),F[w]={nextPos:f,result:c},c)}function Ja(){var c,p,C,g,w,S,L,_,G=f*34+21,Y=F[G];if(Y)return f=Y.nextPos,Y.result;if(c=f,p=pt(),p===e&&(p=null),p!==e){for(C=[],g=f,w=H(),w!==e?(i.charCodeAt(f)===44?(S=xa,f++):(S=e,D===0&&M(Oa)),S!==e?(L=H(),L!==e?(_=pt(),_!==e?(w=[w,S,L,_],g=w):(f=g,g=e)):(f=g,g=e)):(f=g,g=e)):(f=g,g=e);g!==e;)C.push(g),g=f,w=H(),w!==e?(i.charCodeAt(f)===44?(S=xa,f++):(S=e,D===0&&M(Oa)),S!==e?(L=H(),L!==e?(_=pt(),_!==e?(w=[w,S,L,_],g=w):(f=g,g=e)):(f=g,g=e)):(f=g,g=e)):(f=g,g=e);C!==e?(B=c,p=hd(p,C),c=p):(f=c,c=e)}else f=c,c=e;return F[G]={nextPos:f,result:c},c}function Kd(){var c,p,C=f*34+22,g=F[C];return g?(f=g.nextPos,g.result):(c=f,i.substr(f,4).toLowerCase()===gd?(p=i.substr(f,4),f+=4):(p=e,D===0&&M(yd)),p!==e&&(B=c,p=md()),c=p,c===e&&(c=f,i.substr(f,5).toLowerCase()===vd?(p=i.substr(f,5),f+=5):(p=e,D===0&&M(bd)),p!==e&&(B=c,p=Cd()),c=p),F[C]={nextPos:f,result:c},c)}function Yd(){var c,p,C,g=f*34+23,w=F[g];return w?(f=w.nextPos,w.result):(c=f,i.substr(f,2)===Sa?(p=Sa,f+=2):(p=e,D===0&&M(Pd)),p!==e?(C=xt(),C!==e?(B=c,p=Vd(),c=p):(f=c,c=e)):(f=c,c=e),c===e&&(c=f,wd.test(i.charAt(f))?(p=i.charAt(f),f++):(p=e,D===0&&M(xd)),p===e&&(p=null),p!==e?(C=Xd(),C!==e?(B=c,p=Od(p,C),c=p):(f=c,c=e)):(f=c,c=e)),F[g]={nextPos:f,result:c},c)}function Xd(){var c,p,C,g,w=f*34+24,S=F[w];return S?(f=S.nextPos,S.result):(c=f,p=xt(),p!==e?(i.charCodeAt(f)===46?(C=Sd,f++):(C=e,D===0&&M(Td)),C!==e?(g=xt(),g!==e?(B=c,p=Rd(),c=p):(f=c,c=e)):(f=c,c=e)):(f=c,c=e),c===e&&(c=f,p=eh(),p!==e?(C=xt(),C===e&&(C=null),C!==e?(B=c,p=Ed(),c=p):(f=c,c=e)):(f=c,c=e),c===e&&(c=f,i.charCodeAt(f)===48?(p=Id,f++):(p=e,D===0&&M(Ad)),p!==e&&(B=c,p=Dd()),c=p)),F[w]={nextPos:f,result:c},c)}function Zd(){var c,p,C,g=f*34+25,w=F[g];if(w)return f=w.nextPos,w.result;if(c=f,p=[],C=Ya(),C!==e)for(;C!==e;)p.push(C),C=Ya();else p=e;return p!==e&&(B=c,p=Ta(p)),c=p,F[g]={nextPos:f,result:c},c}function Ga(){var c,p,C,g=f*34+26,w=F[g];if(w)return f=w.nextPos,w.result;if(c=f,p=[],C=Ka(),C!==e)for(;C!==e;)p.push(C),C=Ka();else p=e;return p!==e&&(B=c,p=Ta(p)),c=p,F[g]={nextPos:f,result:c},c}function Ka(){var c,p,C=f*34+27,g=F[C];return g?(f=g.nextPos,g.result):(c=f,i.substr(f,2)===Ra?(p=Ra,f+=2):(p=e,D===0&&M(Ld)),p!==e&&(B=c,p=Md()),c=p,c===e&&(c=f,i.substr(f,2)===Ea?(p=Ea,f+=2):(p=e,D===0&&M(jd)),p!==e&&(B=c,p=Nd()),c=p,c===e&&(c=f,Fd.test(i.charAt(f))?(p=i.charAt(f),f++):(p=e,D===0&&M(_d)),p!==e&&(B=c,p=bi()),c=p)),F[C]={nextPos:f,result:c},c)}function Ya(){var c,p,C=f*34+28,g=F[C];return g?(f=g.nextPos,g.result):(c=f,Bd.test(i.charAt(f))?(p=i.charAt(f),f++):(p=e,D===0&&M(kd)),p!==e&&(B=c,p=bi()),c=p,F[C]={nextPos:f,result:c},c)}function Xa(){var c,p,C,g,w,S,L,_=f*34+29,G=F[_];if(G)return f=G.nextPos,G.result;if(c=f,p=$t(),p!==e){if(C=[],g=f,w=xt(),w!==e){for(S=[],L=$t();L!==e;)S.push(L),L=$t();S!==e?(w=[w,S],g=w):(f=g,g=e)}else f=g,g=e;for(;g!==e;)if(C.push(g),g=f,w=xt(),w!==e){for(S=[],L=$t();L!==e;)S.push(L),L=$t();S!==e?(w=[w,S],g=w):(f=g,g=e)}else f=g,g=e;C!==e?(B=c,p=bi(),c=p):(f=c,c=e)}else f=c,c=e;return F[_]={nextPos:f,result:c},c}function xt(){var c,p,C=f*34+30,g=F[C];if(g)return f=g.nextPos,g.result;if(c=[],Ia.test(i.charAt(f))?(p=i.charAt(f),f++):(p=e,D===0&&M(Aa)),p!==e)for(;p!==e;)c.push(p),Ia.test(i.charAt(f))?(p=i.charAt(f),f++):(p=e,D===0&&M(Aa));else c=e;return F[C]={nextPos:f,result:c},c}function eh(){var c,p,C=f*34+31,g=F[C];if(g)return f=g.nextPos,g.result;if(c=[],Da.test(i.charAt(f))?(p=i.charAt(f),f++):(p=e,D===0&&M(La)),p!==e)for(;p!==e;)c.push(p),Da.test(i.charAt(f))?(p=i.charAt(f),f++):(p=e,D===0&&M(La));else c=e;return F[C]={nextPos:f,result:c},c}function $t(){var c,p,C=f*34+32,g=F[C];if(g)return f=g.nextPos,g.result;if(c=[],Ma.test(i.charAt(f))?(p=i.charAt(f),f++):(p=e,D===0&&M(ja)),p!==e)for(;p!==e;)c.push(p),Ma.test(i.charAt(f))?(p=i.charAt(f),f++):(p=e,D===0&&M(ja));else c=e;return F[C]={nextPos:f,result:c},c}function H(){var c,p,C=f*34+33,g=F[C];if(g)return f=g.nextPos,g.result;for(D++,c=[],Na.test(i.charAt(f))?(p=i.charAt(f),f++):(p=e,D===0&&M(Fa));p!==e;)c.push(p),Na.test(i.charAt(f))?(p=i.charAt(f),f++):(p=e,D===0&&M(Fa));return D--,c===e&&(p=e,D===0&&M(qd)),F[C]={nextPos:f,result:c},c}function Za(c,p,C){return C===void 0&&(C=!1),p.reduce(function(g,w){return new Ji(w[1],g,w[3],C)},c)}function th(c){return[].concat.apply([],c)}if(Ln=r(),Ln!==e&&f===i.length)return Ln;throw Ln!==e&&f<i.length&&M(Qd()),Hd(Ci,je<i.length?i.charAt(je):null,je<i.length?Ba(je,je+1):Ba(je,je))}var Fl=Nl,_l=function(){function i(t,e){this.at=t,this.code=e}return i}(),Yi=function(){function i(){}return i.prototype.patchExpression=function(t){return t.replace(/=>/g,">=").replace(/=</g,"<=").replace(/<>/g,"!=").replace(/equals/g,"equal ").replace(/notequals/g,"notequal ")},i.prototype.createCondition=function(t){return this.parseExpression(t)},i.prototype.parseExpression=function(t){try{var e=i.parserCache[t];return e===void 0&&(e=Fl(this.patchExpression(t)),e.hasAsyncFunction()||(i.parserCache[t]=e)),e}catch(n){n instanceof Qn&&(this.conditionError=new _l(n.location.start.offset,n.message))}},Object.defineProperty(i.prototype,"error",{get:function(){return this.conditionError},enumerable:!1,configurable:!0}),i.parserCache={},i}(),Xi=function(){var i=function(t,e){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(n[o]=r[o])},i(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");i(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),Bl=function(){function i(t,e,n,r,o){this.operand=t,this.id=e,this.onComplete=n,this.processValue=new me,this.processValue.values=r,this.processValue.properties=o}return i.prototype.run=function(t){var e=this;if(!t)return this.runValues();this.processValue.values=P.createCopy(this.processValue.values),this.processValue.onCompleteAsyncFunc=function(r){var o=e.getAsyncItemByOperand(r,e.asyncFuncList);o&&e.doAsyncFunctionReady(o)},this.asyncFuncList=new Array,this.operand.addToAsyncList(this.asyncFuncList);for(var n=0;n<this.asyncFuncList.length;n++)this.runAsyncItem(this.asyncFuncList[n]);return!1},i.prototype.getAsyncItemByOperand=function(t,e){if(!Array.isArray(e))return null;for(var n=0;n<e.length;n++){if(e[n].operand===t)return e[n];var r=this.getAsyncItemByOperand(t,e[n].children);if(r)return r}return null},i.prototype.runAsyncItem=function(t){var e=this;t.children?t.children.forEach(function(n){return e.runAsyncItem(n)}):this.runAsyncItemCore(t)},i.prototype.runAsyncItemCore=function(t){t.operand?t.operand.evaluate(this.processValue):this.doAsyncFunctionReady(t)},i.prototype.doAsyncFunctionReady=function(t){if(t.parent&&this.isAsyncChildrenReady(t)){this.runAsyncItemCore(t.parent);return}for(var e=0;e<this.asyncFuncList.length;e++)if(!this.isAsyncFuncReady(this.asyncFuncList[e]))return;this.runValues()},i.prototype.isAsyncFuncReady=function(t){return t.operand&&!t.operand.isReady(this.processValue)?!1:this.isAsyncChildrenReady(t)},i.prototype.isAsyncChildrenReady=function(t){if(t.children){for(var e=0;e<t.children.length;e++)if(!this.isAsyncFuncReady(t.children[e]))return!1}return!0},i.prototype.runValues=function(){var t=this.operand.evaluate(this.processValue);return this.onComplete&&this.onComplete(t,this.id),t},i}(),Zi=function(){function i(t){this.parser=new Yi,this.isAsyncValue=!1,this.hasFunctionValue=!1,this.setExpression(t)}return Object.defineProperty(i.prototype,"expression",{get:function(){return this.expressionValue},enumerable:!1,configurable:!0}),i.prototype.setExpression=function(t){this.expression!==t&&(this.expressionValue=t,this.operand=this.parser.parseExpression(t),this.hasFunctionValue=this.canRun()?this.operand.hasFunction():!1,this.isAsyncValue=this.hasFunction()?this.operand.hasAsyncFunction():!1)},i.prototype.getVariables=function(){if(!this.operand)return[];var t=[];return this.operand.setVariables(t),t},i.prototype.hasFunction=function(){return this.hasFunctionValue},Object.defineProperty(i.prototype,"isAsync",{get:function(){return this.isAsyncValue},enumerable:!1,configurable:!0}),i.prototype.canRun=function(){return!!this.operand},i.prototype.run=function(t,e,n){if(e===void 0&&(e=null),!this.operand)return this.expression&&Fe.warn("Invalid expression: "+this.expression),null;var r=new Bl(this.operand,n,this.onComplete,t,e);return r.run(this.isAsync)},i.createExpressionExecutor=function(t){return new i(t)},i}(),eo=function(){function i(t){this.expression=t}return Object.defineProperty(i.prototype,"expression",{get:function(){return this.expressionExecutor?this.expressionExecutor.expression:""},set:function(t){var e=this;this.expressionExecutor&&t===this.expression||(this.expressionExecutor=Zi.createExpressionExecutor(t),this.expressionExecutor.onComplete=function(n,r){e.doOnComplete(n,r)},this.variables=void 0,this.containsFunc=void 0)},enumerable:!1,configurable:!0}),i.prototype.getVariables=function(){return this.variables===void 0&&(this.variables=this.expressionExecutor.getVariables()),this.variables},i.prototype.hasFunction=function(){return this.containsFunc===void 0&&(this.containsFunc=this.expressionExecutor.hasFunction()),this.containsFunc},Object.defineProperty(i.prototype,"isAsync",{get:function(){return this.expressionExecutor.isAsync},enumerable:!1,configurable:!0}),i.prototype.canRun=function(){return this.expressionExecutor.canRun()},i.prototype.runCore=function(t,e){e===void 0&&(e=null);var n=i.IdRunnerCounter++;return this.onBeforeAsyncRun&&this.isAsync&&this.onBeforeAsyncRun(n),this.expressionExecutor.run(t,e,n)},i.prototype.doOnComplete=function(t,e){this.onAfterAsyncRun&&this.isAsync&&this.onAfterAsyncRun(e)},i.IdRunnerCounter=1,i}(),de=function(i){Xi(t,i);function t(){return i!==null&&i.apply(this,arguments)||this}return t.prototype.run=function(e,n){return n===void 0&&(n=null),this.runCore(e,n)==!0},t.prototype.doOnComplete=function(e,n){this.onRunComplete&&this.onRunComplete(e==!0),i.prototype.doOnComplete.call(this,e,n)},t}(eo),et=function(i){Xi(t,i);function t(){return i!==null&&i.apply(this,arguments)||this}return t.prototype.run=function(e,n){return n===void 0&&(n=null),this.runCore(e,n)},t.prototype.doOnComplete=function(e,n){this.onRunComplete&&this.onRunComplete(e),i.prototype.doOnComplete.call(this,e,n)},t}(eo),kl=function(){var i=function(t,e){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(n[o]=r[o])},i(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");i(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),to=function(i,t){for(var e=0,n=t.length,r=i.length;e<n;e++,r++)i[r]=t[e];return i},ql=function(){function i(t){this.obj=t,this.properties=null,this.values=null}return i.prototype.getType=function(){return"bindings"},i.prototype.getNames=function(){var t=[];this.fillProperties();for(var e=0;e<this.properties.length;e++)this.properties[e].isVisible("",this.obj)&&t.push(this.properties[e].name);return t},i.prototype.getProperties=function(){var t=[];this.fillProperties();for(var e=0;e<this.properties.length;e++)t.push(this.properties[e]);return t},i.prototype.setBinding=function(t,e){this.values||(this.values={});var n=this.getJson();n!==e&&(e?this.values[t]=e:(delete this.values[t],Object.keys(this.values).length==0&&(this.values=null)),this.onChangedJSON(n))},i.prototype.clearBinding=function(t){this.setBinding(t,"")},i.prototype.isEmpty=function(){if(!this.values)return!0;for(var t in this.values)return!1;return!0},i.prototype.getValueNameByPropertyName=function(t){if(this.values)return this.values[t]},i.prototype.getPropertiesByValueName=function(t){if(!this.values)return[];var e=[];for(var n in this.values)this.values[n]==t&&e.push(n);return e},i.prototype.getJson=function(){if(!this.isEmpty()){var t={};for(var e in this.values)t[e]=this.values[e];return t}},i.prototype.setJson=function(t,e){var n=this.getJson();if(this.values=null,t){this.values={};for(var r in t)this.values[r]=t[r]}e||this.onChangedJSON(n)},i.prototype.fillProperties=function(){if(this.properties===null){this.properties=[];for(var t=x.getPropertiesByObj(this.obj),e=0;e<t.length;e++)t[e].isBindable&&this.properties.push(t[e])}},i.prototype.onChangedJSON=function(t){this.obj&&this.obj.onBindingChanged(t,this.getJson())},i}(),Ql=function(){function i(t,e,n){this.currentDependency=t,this.target=e,this.property=n,this.dependencies=[],this.id=""+ ++i.DependenciesCount}return i.prototype.addDependency=function(t,e){this.target===t&&this.property===e||this.dependencies.some(function(n){return n.obj===t&&n.prop===e})||(this.dependencies.push({obj:t,prop:e,id:this.id}),t.registerPropertyChangedHandlers([e],this.currentDependency,this.id))},i.prototype.dispose=function(){this.dependencies.forEach(function(t){t.obj.unregisterPropertyChangedHandlers([t.prop],t.id)})},i.DependenciesCount=0,i}(),te=function(){function i(t){this._updater=t,this.dependencies=void 0,this.type=i.ComputedUpdaterType}return Object.defineProperty(i.prototype,"updater",{get:function(){return this._updater},enumerable:!1,configurable:!0}),i.prototype.setDependencies=function(t){this.clearDependencies(),this.dependencies=t},i.prototype.getDependencies=function(){return this.dependencies},i.prototype.clearDependencies=function(){this.dependencies&&(this.dependencies.dispose(),this.dependencies=void 0)},i.prototype.dispose=function(){this.clearDependencies(),this._updater=void 0},i.ComputedUpdaterType="__dependency_computed",i}(),z=function(){function i(){this.dependencies={},this.propertyHash=i.createPropertiesHash(),this.eventList=[],this.isLoadingFromJsonValue=!1,this.loadingOwner=null,this.onPropertyChanged=this.addEvent(),this.onItemValuePropertyChanged=this.addEvent(),this.isCreating=!0,this.animationAllowedLock=0,this.supportOnElementRerenderedEvent=!0,this.onElementRerenderedEventEnabled=!1,this._onElementRerendered=new Ve,this.bindingsValue=new ql(this),Ne.createProperties(this),this.onBaseCreating(),this.isCreating=!1}return i.finishCollectDependencies=function(){var t=i.currentDependencis;return i.currentDependencis=void 0,t},i.startCollectDependencies=function(t,e,n){if(i.currentDependencis!==void 0)throw new Error("Attempt to collect nested dependencies. Nested dependencies are not supported.");i.currentDependencis=new Ql(t,e,n)},i.collectDependency=function(t,e){i.currentDependencis!==void 0&&i.currentDependencis.addDependency(t,e)},Object.defineProperty(i,"commentSuffix",{get:function(){return b.commentSuffix},set:function(t){b.commentSuffix=t},enumerable:!1,configurable:!0}),Object.defineProperty(i,"commentPrefix",{get:function(){return i.commentSuffix},set:function(t){i.commentSuffix=t},enumerable:!1,configurable:!0}),i.prototype.isValueEmpty=function(t,e){return e===void 0&&(e=!0),e&&(t=this.trimValue(t)),P.isValueEmpty(t)},i.prototype.equals=function(t){return!t||this.isDisposed||t.isDisposed||this.getType()!=t.getType()?!1:this.equalsCore(t)},i.prototype.equalsCore=function(t){return this.name!==t.name?!1:P.isTwoValueEquals(this.toJSON(),t.toJSON(),!1,!0,!1)},i.prototype.trimValue=function(t){return t&&(typeof t=="string"||t instanceof String)?t.trim():t},i.prototype.isPropertyEmpty=function(t){return t!==""&&this.isValueEmpty(t)},i.createPropertiesHash=function(){return{}},i.prototype.dispose=function(){for(var t=this,e=0;e<this.eventList.length;e++)this.eventList[e].clear();this.onPropertyValueChangedCallback=void 0,this.isDisposedValue=!0,Object.keys(this.dependencies).forEach(function(n){return t.dependencies[n].dispose()}),Object.keys(this.propertyHash).forEach(function(n){var r=t.getPropertyValueCore(t.propertyHash,n);r&&r.type==te.ComputedUpdaterType&&r.dispose()})},Object.defineProperty(i.prototype,"isDisposed",{get:function(){return this.isDisposedValue===!0},enumerable:!1,configurable:!0}),i.prototype.addEvent=function(){var t=new Ve;return this.eventList.push(t),t},i.prototype.onBaseCreating=function(){},i.prototype.getType=function(){return"base"},i.prototype.isDescendantOf=function(t){return x.isDescendantOf(this.getType(),t)},i.prototype.getSurvey=function(t){return null},Object.defineProperty(i.prototype,"isDesignMode",{get:function(){var t=this.getSurvey();return!!t&&t.isDesignMode},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"isDesignModeV2",{get:function(){return b.supportCreatorV2&&this.isDesignMode},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"inSurvey",{get:function(){return!!this.getSurvey(!0)},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"bindings",{get:function(){return this.bindingsValue},enumerable:!1,configurable:!0}),i.prototype.checkBindings=function(t,e){},i.prototype.updateBindings=function(t,e){var n=this.bindings.getValueNameByPropertyName(t);n&&this.updateBindingValue(n,e)},i.prototype.updateBindingValue=function(t,e){},i.prototype.getTemplate=function(){return this.getType()},Object.defineProperty(i.prototype,"isLoadingFromJson",{get:function(){return this.isLoadingFromJsonValue||this.getIsLoadingFromJson()},enumerable:!1,configurable:!0}),i.prototype.getIsLoadingFromJson=function(){return this.loadingOwner&&this.loadingOwner.isLoadingFromJson?!0:this.isLoadingFromJsonValue},i.prototype.startLoadingFromJson=function(t){this.isLoadingFromJsonValue=!0,this.jsonObj=t},i.prototype.endLoadingFromJson=function(){this.isLoadingFromJsonValue=!1},i.prototype.toJSON=function(t){return new fe().toJsonObject(this,t)},i.prototype.fromJSON=function(t,e){new fe().toObject(t,this,e),this.onSurveyLoad()},i.prototype.onSurveyLoad=function(){},i.prototype.clone=function(){var t=x.createClass(this.getType());return t.fromJSON(this.toJSON()),t},i.prototype.getPropertyByName=function(t){var e=this.getType();return(!this.classMetaData||this.classMetaData.name!==e)&&(this.classMetaData=x.findClass(e)),this.classMetaData?this.classMetaData.findProperty(t):null},i.prototype.isPropertyVisible=function(t){var e=this.getPropertyByName(t);return e?e.isVisible("",this):!1},i.createProgressInfo=function(){return{questionCount:0,answeredQuestionCount:0,requiredQuestionCount:0,requiredAnsweredQuestionCount:0}},i.prototype.getProgressInfo=function(){return i.createProgressInfo()},i.prototype.localeChanged=function(){},i.prototype.locStrsChanged=function(){if(this.arraysInfo)for(var t in this.arraysInfo){var e=this.arraysInfo[t];if(e&&e.isItemValues){var n=this.getPropertyValue(t);n&&i.itemValueLocStrChanged&&i.itemValueLocStrChanged(n)}}if(this.localizableStrings)for(var t in this.localizableStrings){var e=this.getLocalizableString(t);e&&e.strChanged()}},i.prototype.getPropertyValue=function(t,e,n){var r=this.getPropertyValueWithoutDefault(t);if(this.isPropertyEmpty(r)){var o=this.localizableStrings?this.localizableStrings[t]:void 0;if(o)return o.text;if(e!=null)return e;if(n){var s=n();if(s!==void 0)if(Array.isArray(s)){var a=this.createNewArray(t);return a.splice.apply(a,to([0,0],s)),a}else return this.setPropertyValueDirectly(t,s),s}var l=this.getDefaultPropertyValue(t);if(l!==void 0)return l}return r},i.prototype.getDefaultPropertyValue=function(t){var e=this.getPropertyByName(t);if(!(!e||e.isCustom&&this.isCreating)){if(e.defaultValueFunc)return e.defaultValueFunc(this);var n=e.getDefaultValue(this);if(!this.isPropertyEmpty(n)&&!Array.isArray(n))return n;var r=this.localizableStrings?this.localizableStrings[t]:void 0;if(r&&r.localizationName)return this.getLocalizationString(r.localizationName);if(e.type=="boolean"||e.type=="switch")return!1;if(e.isCustom&&e.onGetValue)return e.onGetValue(this)}},i.prototype.hasDefaultPropertyValue=function(t){return this.getDefaultPropertyValue(t)!==void 0},i.prototype.resetPropertyValue=function(t){var e=this.localizableStrings?this.localizableStrings[t]:void 0;e?(this.setLocalizableStringText(t,void 0),e.clear()):this.setPropertyValue(t,void 0)},i.prototype.getPropertyValueWithoutDefault=function(t){return this.getPropertyValueCore(this.propertyHash,t)},i.prototype.getPropertyValueCore=function(t,e){return this.isLoadingFromJson||i.collectDependency(this,e),this.getPropertyValueCoreHandler?this.getPropertyValueCoreHandler(t,e):t[e]},i.prototype.geValueFromHash=function(){return this.propertyHash.value},i.prototype.setPropertyValueCore=function(t,e,n){this.setPropertyValueCoreHandler?this.isDisposedValue?Fe.disposedObjectChangedProperty(e,this.getType()):this.setPropertyValueCoreHandler(t,e,n):t[e]=n},Object.defineProperty(i.prototype,"isEditingSurveyElement",{get:function(){var t=this.getSurvey();return!!t&&t.isEditingSurveyElement},enumerable:!1,configurable:!0}),i.prototype.iteratePropertiesHash=function(t){var e=this,n=[];for(var r in this.propertyHash)r==="value"&&this.isEditingSurveyElement&&Array.isArray(this.value)||n.push(r);n.forEach(function(o){return t(e.propertyHash,o)})},i.prototype.setPropertyValue=function(t,e){if(!this.isLoadingFromJson){var n=this.getPropertyByName(t);n&&(e=n.settingValue(this,e))}var r=this.getPropertyValue(t);r&&Array.isArray(r)&&this.arraysInfo&&(!e||Array.isArray(e))?this.isTwoValueEquals(r,e)||this.setArrayPropertyDirectly(t,e):(this.setPropertyValueDirectly(t,e),!this.isDisposedValue&&!this.isTwoValueEquals(r,e)&&this.propertyValueChanged(t,r,e))},i.prototype.setArrayPropertyDirectly=function(t,e,n){n===void 0&&(n=!0);var r=this.arraysInfo[t];this.setArray(t,this.getPropertyValue(t),e,r?r.isItemValues:!1,r?n&&r.onPush:null)},i.prototype.setPropertyValueDirectly=function(t,e){this.setPropertyValueCore(this.propertyHash,t,e)},i.prototype.clearPropertyValue=function(t){this.setPropertyValueCore(this.propertyHash,t,null),delete this.propertyHash[t]},i.prototype.onPropertyValueChangedCallback=function(t,e,n,r,o){},i.prototype.itemValuePropertyChanged=function(t,e,n,r){this.onItemValuePropertyChanged.fire(this,{obj:t,name:e,oldValue:n,newValue:r,propertyName:t.ownerPropertyName})},i.prototype.onPropertyValueChanged=function(t,e,n){},i.prototype.propertyValueChanged=function(t,e,n,r,o){if(!this.isLoadingFromJson&&(this.updateBindings(t,n),this.onPropertyValueChanged(t,e,n),this.onPropertyChanged.fire(this,{name:t,oldValue:e,newValue:n,arrayChanges:r,target:o}),this.doPropertyValueChangedCallback(t,e,n,r,this),this.checkConditionPropertyChanged(t),!!this.onPropChangeFunctions))for(var s=0;s<this.onPropChangeFunctions.length;s++)this.onPropChangeFunctions[s].name==t&&this.onPropChangeFunctions[s].func(n,r)},i.prototype.onBindingChanged=function(t,e){this.isLoadingFromJson||this.doPropertyValueChangedCallback("bindings",t,e)},Object.defineProperty(i.prototype,"isInternal",{get:function(){return!1},enumerable:!1,configurable:!0}),i.prototype.doPropertyValueChangedCallback=function(t,e,n,r,o){var s=function(l){l&&l.onPropertyValueChangedCallback&&l.onPropertyValueChangedCallback(t,e,n,o,r)};if(this.isInternal){s(this);return}o||(o=this);var a=this.getSurvey();a||(a=this),s(a),a!==this&&s(this)},i.prototype.addExpressionProperty=function(t,e,n){this.expressionInfo||(this.expressionInfo={}),this.expressionInfo[t]={onExecute:e,canRun:n}},i.prototype.getDataFilteredValues=function(){return{}},i.prototype.getDataFilteredProperties=function(){return{}},i.prototype.runConditionCore=function(t,e){if(this.expressionInfo)for(var n in this.expressionInfo)this.runConditionItemCore(n,t,e)},i.prototype.canRunConditions=function(){return!this.isDesignMode},i.prototype.checkConditionPropertyChanged=function(t){!this.expressionInfo||!this.expressionInfo[t]||this.canRunConditions()&&this.runConditionItemCore(t,this.getDataFilteredValues(),this.getDataFilteredProperties())},i.prototype.runConditionItemCore=function(t,e,n){var r=this,o=this.expressionInfo[t],s=this.getPropertyValue(t);s&&(o.canRun&&!o.canRun(this)||(o.runner||(o.runner=this.createExpressionRunner(s),o.runner.onRunComplete=function(a){o.onExecute(r,a)}),o.runner.expression=s,o.runner.run(e,n)))},i.prototype.doBeforeAsynRun=function(t){this.asynExpressionHash||(this.asynExpressionHash={});var e=!this.isAsyncExpressionRunning;this.asynExpressionHash[t]=!0,e&&this.onAsyncRunningChanged()},i.prototype.doAfterAsynRun=function(t){this.asynExpressionHash&&(delete this.asynExpressionHash[t],this.isAsyncExpressionRunning||this.onAsyncRunningChanged())},i.prototype.onAsyncRunningChanged=function(){},Object.defineProperty(i.prototype,"isAsyncExpressionRunning",{get:function(){return!!this.asynExpressionHash&&Object.keys(this.asynExpressionHash).length>0},enumerable:!1,configurable:!0}),i.prototype.createExpressionRunner=function(t){var e=this,n=new et(t);return n.onBeforeAsyncRun=function(r){e.doBeforeAsynRun(r)},n.onAfterAsyncRun=function(r){e.doAfterAsynRun(r)},n},i.prototype.registerPropertyChangedHandlers=function(t,e,n){n===void 0&&(n=null);for(var r=0;r<t.length;r++)this.registerFunctionOnPropertyValueChanged(t[r],e,n)},i.prototype.unregisterPropertyChangedHandlers=function(t,e){e===void 0&&(e=null);for(var n=0;n<t.length;n++)this.unRegisterFunctionOnPropertyValueChanged(t[n],e)},i.prototype.registerFunctionOnPropertyValueChanged=function(t,e,n){if(n===void 0&&(n=null),this.onPropChangeFunctions||(this.onPropChangeFunctions=[]),n)for(var r=0;r<this.onPropChangeFunctions.length;r++){var o=this.onPropChangeFunctions[r];if(o.name==t&&o.key==n){o.func=e;return}}this.onPropChangeFunctions.push({name:t,func:e,key:n})},i.prototype.registerFunctionOnPropertiesValueChanged=function(t,e,n){n===void 0&&(n=null),this.registerPropertyChangedHandlers(t,e,n)},i.prototype.unRegisterFunctionOnPropertyValueChanged=function(t,e){if(e===void 0&&(e=null),!!this.onPropChangeFunctions)for(var n=0;n<this.onPropChangeFunctions.length;n++){var r=this.onPropChangeFunctions[n];if(r.name==t&&r.key==e){this.onPropChangeFunctions.splice(n,1);return}}},i.prototype.unRegisterFunctionOnPropertiesValueChanged=function(t,e){e===void 0&&(e=null),this.unregisterPropertyChangedHandlers(t,e)},i.prototype.createCustomLocalizableObj=function(t){var e=this.getLocalizableString(t);return e||this.createLocalizableString(t,this,!1,!0)},i.prototype.getLocale=function(){var t=this.getSurvey();return t?t.getLocale():""},i.prototype.getLocalizationString=function(t){return oe(t,this.getLocale())},i.prototype.getLocalizationFormatString=function(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];var r=this.getLocalizationString(t);return!r||!r.format?"":r.format.apply(r,e)},i.prototype.createLocalizableString=function(t,e,n,r){var o=this;n===void 0&&(n=!1),r===void 0&&(r=!1);var s=void 0;r&&(s=r===!0?t:r);var a=new Se(e,n,t,s);a.onStrChanged=function(u,d){o.propertyValueChanged(t,u,d)},this.localizableStrings||(this.localizableStrings={}),this.localizableStrings[t]=a;var l=this.getPropertyByName(t);return a.disableLocalization=l&&l.isLocalizable===!1,a},i.prototype.getLocalizableString=function(t){return this.localizableStrings?this.localizableStrings[t]:null},i.prototype.getLocalizableStringText=function(t,e){e===void 0&&(e=""),i.collectDependency(this,t);var n=this.getLocalizableString(t);if(!n)return"";var r=n.text;return r||e},i.prototype.setLocalizableStringText=function(t,e){var n=this.getLocalizableString(t);if(n){var r=n.text;r!=e&&(n.text=e)}},i.prototype.addUsedLocales=function(t){if(this.localizableStrings)for(var e in this.localizableStrings){var n=this.getLocalizableString(e);n&&this.AddLocStringToUsedLocales(n,t)}if(this.arraysInfo)for(var e in this.arraysInfo){var r=this.getPropertyByName(e);if(!(!r||!r.isSerializable)){var o=this.getPropertyValue(e);if(!(!o||!o.length))for(var s=0;s<o.length;s++){var n=o[s];n&&n.addUsedLocales&&n.addUsedLocales(t)}}}},i.prototype.searchText=function(t,e){var n=[];this.getSearchableLocalizedStrings(n);for(var r=0;r<n.length;r++)n[r].setFindText(t)&&e.push({element:this,str:n[r]})},i.prototype.getSearchableLocalizedStrings=function(t){if(this.localizableStrings){var e=[];this.getSearchableLocKeys(e);for(var n=0;n<e.length;n++){var r=this.getLocalizableString(e[n]);r&&t.push(r)}}if(this.arraysInfo){var o=[];this.getSearchableItemValueKeys(o);for(var n=0;n<o.length;n++){var s=this.getPropertyValue(o[n]);if(s)for(var a=0;a<s.length;a++)t.push(s[a].locText)}}},i.prototype.getSearchableLocKeys=function(t){},i.prototype.getSearchableItemValueKeys=function(t){},i.prototype.AddLocStringToUsedLocales=function(t,e){for(var n=t.getLocales(),r=0;r<n.length;r++)e.indexOf(n[r])<0&&e.push(n[r])},i.prototype.createItemValues=function(t){var e=this,n=this.createNewArray(t,function(r){if(r.locOwner=e,r.ownerPropertyName=t,typeof r.getSurvey=="function"){var o=r.getSurvey();o&&typeof o.makeReactive=="function"&&o.makeReactive(r)}});return this.arraysInfo[t].isItemValues=!0,n},i.prototype.notifyArrayChanged=function(t,e){t.onArrayChanged&&t.onArrayChanged(e)},i.prototype.createNewArrayCore=function(t){var e=null;return this.createArrayCoreHandler&&(e=this.createArrayCoreHandler(this.propertyHash,t)),e||(e=new Array,this.setPropertyValueCore(this.propertyHash,t,e)),e},i.prototype.ensureArray=function(t,e,n){if(e===void 0&&(e=null),n===void 0&&(n=null),!(this.arraysInfo&&this.arraysInfo[t]))return this.createNewArray(t,e,n)},i.prototype.createNewArray=function(t,e,n){e===void 0&&(e=null),n===void 0&&(n=null);var r=this.createNewArrayCore(t);this.arraysInfo||(this.arraysInfo={}),this.arraysInfo[t]={onPush:e,isItemValues:!1};var o=this;return r.push=function(s){var a=Object.getPrototypeOf(r).push.call(r,s);if(!o.isDisposedValue){e&&e(s,r.length-1);var l=new tt(r.length-1,0,[s],[]);o.propertyValueChanged(t,r,r,l),o.notifyArrayChanged(r,l)}return a},r.shift=function(){var s=Object.getPrototypeOf(r).shift.call(r);if(!o.isDisposedValue&&s){n&&n(s);var a=new tt(r.length-1,1,[],[]);o.propertyValueChanged(t,r,r,a),o.notifyArrayChanged(r,a)}return s},r.unshift=function(s){var a=Object.getPrototypeOf(r).unshift.call(r,s);if(!o.isDisposedValue){e&&e(s,r.length-1);var l=new tt(0,0,[s],[]);o.propertyValueChanged(t,r,r,l),o.notifyArrayChanged(r,l)}return a},r.pop=function(){var s=Object.getPrototypeOf(r).pop.call(r);if(!o.isDisposedValue){n&&n(s);var a=new tt(r.length-1,1,[],[]);o.propertyValueChanged(t,r,r,a),o.notifyArrayChanged(r,a)}return s},r.splice=function(s,a){for(var l,u=[],d=2;d<arguments.length;d++)u[d-2]=arguments[d];s||(s=0),a||(a=0);var v=(l=Object.getPrototypeOf(r).splice).call.apply(l,to([r,s,a],u));if(u||(u=[]),!o.isDisposedValue){if(n&&v)for(var V=0;V<v.length;V++)n(v[V]);if(e)for(var V=0;V<u.length;V++)e(u[V],s+V);var T=new tt(s,a,u,v);o.propertyValueChanged(t,r,r,T),o.notifyArrayChanged(r,T)}return v},r},i.prototype.getItemValueType=function(){},i.prototype.setArray=function(t,e,n,r,o){var s=[].concat(e);if(Object.getPrototypeOf(e).splice.call(e,0,e.length),n)for(var a=0;a<n.length;a++){var l=n[a];r&&i.createItemValue&&(l=i.createItemValue(l,this.getItemValueType())),Object.getPrototypeOf(e).push.call(e,l),o&&o(e[a])}var u=new tt(0,s.length,e,s);this.propertyValueChanged(t,s,e,u),this.notifyArrayChanged(e,u)},i.prototype.isTwoValueEquals=function(t,e,n,r){return n===void 0&&(n=!1),r===void 0&&(r=!1),P.isTwoValueEquals(t,e,!1,!n,r)},i.copyObject=function(t,e){for(var n in e){var r=e[n];typeof r=="object"&&(r={},this.copyObject(r,e[n])),t[n]=r}},i.prototype.copyCssClasses=function(t,e){e&&(typeof e=="string"||e instanceof String?t.root=e:i.copyObject(t,e))},i.prototype.getValueInLowCase=function(t){return t&&typeof t=="string"?t.toLowerCase():t},i.prototype.getElementsInDesign=function(t){return[]},Object.defineProperty(i.prototype,"animationAllowed",{get:function(){return this.getIsAnimationAllowed()},enumerable:!1,configurable:!0}),i.prototype.getIsAnimationAllowed=function(){return b.animationEnabled&&this.animationAllowedLock>=0&&!this.isLoadingFromJson&&!this.isDisposed&&(!!this.onElementRerendered||!this.supportOnElementRerenderedEvent)},i.prototype.blockAnimations=function(){this.animationAllowedLock--},i.prototype.releaseAnimations=function(){this.animationAllowedLock++},i.prototype.enableOnElementRerenderedEvent=function(){this.onElementRerenderedEventEnabled=!0},i.prototype.disableOnElementRerenderedEvent=function(){var t;(t=this.onElementRerendered)===null||t===void 0||t.fire(this,{isCancel:!0}),this.onElementRerenderedEventEnabled=!1},Object.defineProperty(i.prototype,"onElementRerendered",{get:function(){return this.supportOnElementRerenderedEvent&&this.onElementRerenderedEventEnabled?this._onElementRerendered:void 0},enumerable:!1,configurable:!0}),i.prototype.afterRerender=function(){var t;(t=this.onElementRerendered)===null||t===void 0||t.fire(this,{isCancel:!1})},i.currentDependencis=void 0,i}(),tt=function(){function i(t,e,n,r){this.index=t,this.deleteCount=e,this.itemsToAdd=n,this.deletedItems=r}return i}(),zn=function(){function i(){}return Object.defineProperty(i.prototype,"isEmpty",{get:function(){return this.length===0},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"length",{get:function(){return this.callbacks?this.callbacks.length:0},enumerable:!1,configurable:!0}),i.prototype.fireByCreatingOptions=function(t,e){if(this.callbacks){for(var n=0;n<this.callbacks.length;n++)if(this.callbacks[n](t,e()),!this.callbacks)return}},i.prototype.fire=function(t,e){if(this.callbacks){for(var n=[].concat(this.callbacks),r=0;r<n.length;r++)if(n[r](t,e),!this.callbacks)return}},i.prototype.clear=function(){this.callbacks=void 0},i.prototype.add=function(t){this.hasFunc(t)||(this.callbacks||(this.callbacks=new Array),this.callbacks.push(t),this.fireCallbackChanged())},i.prototype.remove=function(t){if(this.hasFunc(t)){var e=this.callbacks.indexOf(t,0);this.callbacks.splice(e,1),this.fireCallbackChanged()}},i.prototype.hasFunc=function(t){return this.callbacks==null?!1:this.callbacks.indexOf(t,0)>-1},i.prototype.fireCallbackChanged=function(){this.onCallbacksChanged&&this.onCallbacksChanged()},i}(),Ve=function(i){kl(t,i);function t(){return i!==null&&i.apply(this,arguments)||this}return t}(zn),zl=function(){var i=function(t,e){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(n[o]=r[o])},i(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");i(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),Hn=function(){function i(t,e,n,r,o){var s=this;r===void 0&&(r=null),o===void 0&&(o=function(a){queueMicrotask?queueMicrotask(a):a()}),this.container=t,this.model=e,this.itemsSelector=n,this.dotsItemSize=r,this.delayedUpdateFunction=o,this.resizeObserver=void 0,this.isInitialized=!1,this.minDimensionConst=56,this.separatorSize=17,this.separatorAddConst=1,this.paddingSizeConst=8,this.dotsSizeConst=48,this.dotsIconClass=".sv-dots",this.iconClass=".sv-svg-icon",this.recalcMinDimensionConst=!0,this.getComputedStyle=function(a){return I.getComputedStyle(a)},this.model.updateCallback=function(a){a&&(s.isInitialized=!1),setTimeout(function(){s.process()},1)},typeof ResizeObserver<"u"&&(this.resizeObserver=new ResizeObserver(function(a){E.requestAnimationFrame(function(){s.process()})}),this.resizeObserver.observe(this.container.parentElement))}return i.prototype.getDimensions=function(t){return{scroll:t.scrollWidth,offset:t.offsetWidth}},i.prototype.getAvailableSpace=function(){var t=this.getComputedStyle(this.container),e=this.container.offsetWidth;return t.boxSizing==="border-box"&&(e-=parseFloat(t.paddingLeft)+parseFloat(t.paddingRight)),e},i.prototype.calcItemSize=function(t){return t.offsetWidth||t.getBoundingClientRect().width},i.prototype.calcMinDimension=function(t,e){var n;if(e&&(!t.iconSize||t.iconSize==="auto")){var r=e.querySelector(this.iconClass);n=r&&this.calcItemSize(r)}else t.iconSize&&typeof t.iconSize=="number"&&this.recalcMinDimensionConst&&(n=t.iconSize);var o=n?n+2*this.paddingSizeConst:this.minDimensionConst;return t.canShrink?o+(t.needSeparator?this.separatorSize:0):t.maxDimension},i.prototype.calcItemsSizes=function(){var t=this;if(!(!this.container||this.isInitialized)){var e=this.model.actions,n=this.container.querySelectorAll(this.itemsSelector);(n||[]).forEach(function(r,o){var s=e[o];s&&t.calcActionDimensions(s,r)})}},i.prototype.calcActionDimensions=function(t,e){t.maxDimension=this.calcItemSize(e),t.minDimension=this.calcMinDimension(t,e)},Object.defineProperty(i.prototype,"isContainerVisible",{get:function(){return!!this.container&&ar(this.container)},enumerable:!1,configurable:!0}),i.prototype.process=function(){var t=this;if(this.isContainerVisible&&!this.model.isResponsivenessDisabled){this.isInitialized||this.model.setActionsMode("large");var e=function(){var r,o=t.dotsItemSize;if(!t.dotsItemSize){var s=(r=t.container)===null||r===void 0?void 0:r.querySelector(t.dotsIconClass);o=s&&t.calcItemSize(s)||t.dotsSizeConst}t.model.fit(t.getAvailableSpace(),o)};if(this.isInitialized)e();else{var n=function(){t.container&&(t.calcItemsSizes(),t.isInitialized=!0,e())};this.delayedUpdateFunction?this.delayedUpdateFunction(n):n()}}},i.prototype.dispose=function(){this.model.updateCallback=void 0,this.resizeObserver&&this.resizeObserver.disconnect(),this.resizeObserver=void 0,this.container=void 0},i}(),Hl=function(i){zl(t,i);function t(e,n,r,o,s,a){s===void 0&&(s=40);var l=i.call(this,e,n,r,o,a)||this;return l.minDimensionConst=s,l.recalcMinDimensionConst=!1,l}return t.prototype.getDimensions=function(){return{scroll:this.container.scrollHeight,offset:this.container.offsetHeight}},t.prototype.getAvailableSpace=function(){var e=this.getComputedStyle(this.container),n=this.container.offsetHeight;return e.boxSizing==="border-box"&&(n-=parseFloat(e.paddingTop)+parseFloat(e.paddingBottom)),n},t.prototype.calcItemSize=function(e){return e.offsetHeight},t.prototype.calcActionDimensions=function(e,n){e.maxDimension=this.calcItemSize(n),e.minDimension=this.calcItemSize(n)},t}(Hn),O=function(){function i(){this.classes=[]}return i.prototype.isEmpty=function(){return this.toString()===""},i.prototype.append=function(t,e){return e===void 0&&(e=!0),t&&e&&(typeof t=="string"&&(t=t.trim()),this.classes.push(t)),this},i.prototype.toString=function(){return this.classes.join(" ")},i}(),Ul=function(){var i=function(t,e){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(n[o]=r[o])},i(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");i(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),Tt=function(i,t,e,n){var r=arguments.length,o=r<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,e):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(i,t,e,n);else for(var a=i.length-1;a>=0;a--)(s=i[a])&&(o=(r<3?s(o):r>3?s(t,e,o):s(t,e))||o);return r>3&&o&&Object.defineProperty(t,e,o),o},Un={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"},Ee=function(i){Ul(t,i);function t(){var e=i!==null&&i.apply(this,arguments)||this;return e.sizeMode="default",e}return t.prototype.getMarkdownHtml=function(e,n){return this.locOwner?this.locOwner.getMarkdownHtml(e,n):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(){i.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(n){return n.visible}),this.updateCallback&&this.updateCallback(e)},t.prototype.onSet=function(){var e=this;this.actions.forEach(function(n){e.setActionCssClasses(n)}),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 e.visible!==!1})},enumerable:!1,configurable:!0}),t.prototype.getRootCss=function(){var e=this.sizeMode==="small"?this.cssClasses.smallSizeMode:this.cssClasses.defaultSizeMode;return new O().append(this.cssClasses.root+(e?" "+e:"")+(this.containerCss?" "+this.containerCss:"")).append(this.cssClasses.root+"--empty",this.isEmpty).toString()},t.prototype.getDefaultCssClasses=function(){return Un},Object.defineProperty(t.prototype,"cssClasses",{get:function(){return this.cssClassesValue||(this.cssClassesValue=this.getDefaultCssClasses()),this.cssClassesValue},set:function(e){var n=this;this.cssClassesValue={},this.copyCssClasses(this.cssClassesValue,this.getDefaultCssClasses()),mt(e,this.cssClasses),this.actions.forEach(function(r){n.setActionCssClasses(r)})},enumerable:!1,configurable:!0}),t.prototype.createAction=function(e){return e instanceof Zt?e:new $(e)},t.prototype.addAction=function(e,n){n===void 0&&(n=!0);var r=this.createAction(e);if(n&&!this.isActionVisible(r))return r;var o=[].concat(this.actions,r);return this.sortItems(o),this.actions=o,r},t.prototype.setItems=function(e,n){var r=this;n===void 0&&(n=!0);var o=[];e.forEach(function(s){(!n||r.isActionVisible(s))&&o.push(r.createAction(s))}),n&&this.sortItems(o),this.actions=o},t.prototype.sortItems=function(e){this.hasSetVisibleIndex(e)&&e.sort(this.compareByVisibleIndex)},t.prototype.hasSetVisibleIndex=function(e){for(var n=0;n<e.length;n++){var r=e[n].visibleIndex;if(r!==void 0&&r>=0)return!0}return!1},t.prototype.compareByVisibleIndex=function(e,n){return e.visibleIndex-n.visibleIndex},t.prototype.isActionVisible=function(e){return e.visibleIndex>=0||e.visibleIndex===void 0},t.prototype.popupAfterShowCallback=function(e){},t.prototype.mouseOverHandler=function(e){var n=this;e.isHovered=!0,this.actions.forEach(function(r){r===e&&e.popupModel&&(e.showPopupDelayed(n.subItemsShowDelay),n.popupAfterShowCallback(e))})},t.prototype.initResponsivityManager=function(e,n){},t.prototype.resetResponsivityManager=function(){},t.prototype.getActionById=function(e){for(var n=0;n<this.actions.length;n++)if(this.actions[n].id===e)return this.actions[n];return null},t.prototype.dispose=function(){i.prototype.dispose.call(this),this.resetResponsivityManager(),this.actions.forEach(function(e){return e.dispose()}),this.actions.length=0},Tt([ae({onSet:function(e,n){n.onSet()},onPush:function(e,n,r){r.onPush(e)},onRemove:function(e,n,r){r.onRemove(e)}})],t.prototype,"actions",void 0),Tt([h({})],t.prototype,"containerCss",void 0),Tt([h({defaultValue:!1})],t.prototype,"isEmpty",void 0),Tt([h({defaultValue:300})],t.prototype,"subItemsShowDelay",void 0),Tt([h({defaultValue:300})],t.prototype,"subItemsHideDelay",void 0),t}(z),yt=function(){function i(){}return i.focusElement=function(t){t&&t.focus()},i.visibility=function(t){var e=I.getComputedStyle(t);return e.display==="none"||e.visibility==="hidden"?!1:t.parentElement?this.visibility(t.parentElement):!0},i.getNextElementPreorder=function(t){var e=t.nextElementSibling?t.nextElementSibling:t.parentElement.firstElementChild;return this.visibility(e)?e:this.getNextElementPreorder(e)},i.getNextElementPostorder=function(t){var e=t.previousElementSibling?t.previousElementSibling:t.parentElement.lastElementChild;return this.visibility(e)?e:this.getNextElementPostorder(e)},i.hasHorizontalScroller=function(t){return t?t.scrollWidth>t.offsetWidth:!1},i.hasVerticalScroller=function(t){return t?t.scrollHeight>t.offsetHeight:!1},i}(),Wl=function(){var i=function(t,e){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(n[o]=r[o])},i(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");i(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),ve=function(i,t,e,n){var r=arguments.length,o=r<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,e):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(i,t,e,n);else for(var a=i.length-1;a>=0;a--)(s=i[a])&&(o=(r<3?s(o):r>3?s(t,e,o):s(t,e))||o);return r>3&&o&&Object.defineProperty(t,e,o),o},$l={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",itemGroupSelected:"sv-list__item--group-selected",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"},Rt=function(i){Wl(t,i);function t(e,n,r,o,s){var a=i.call(this)||this;if(a.onSelectionChanged=n,a.allowSelection=r,a.elementId=s,a.onItemClick=function(u){if(!a.isItemDisabled(u)){a.isExpanded=!1,a.allowSelection&&(a.selectedItem=u),a.onSelectionChanged&&a.onSelectionChanged(u);var d=u.action;d&&d(u)}},a.onItemHover=function(u){a.mouseOverHandler(u)},a.isItemDisabled=function(u){return u.enabled!==void 0&&!u.enabled},a.isItemSelected=function(u){return a.areSameItems(a.selectedItem,u)},a.isItemFocused=function(u){return a.areSameItems(a.focusedItem,u)},a.getListClass=function(){return new O().append(a.cssClasses.itemsContainer).append(a.cssClasses.itemsContainerFiltering,!!a.filterString&&a.visibleActions.length!==a.visibleItems.length).toString()},a.getItemClass=function(u){var d=a.isItemSelected(u);return new O().append(a.cssClasses.item).append(a.cssClasses.itemWithIcon,!!u.iconName).append(a.cssClasses.itemDisabled,a.isItemDisabled(u)).append(a.cssClasses.itemFocused,a.isItemFocused(u)).append(a.cssClasses.itemSelected,!u.hasSubItems&&d).append(a.cssClasses.itemGroup,u.hasSubItems).append(a.cssClasses.itemGroupSelected,u.hasSubItems&&d).append(a.cssClasses.itemHovered,u.isHovered).append(a.cssClasses.itemTextWrap,a.textWrapEnabled).append(u.css).toString()},a.getItemStyle=function(u){var d=u.level||0;return{"--sjs-list-item-level":d+1}},Object.keys(e).indexOf("items")!==-1){var l=e;Object.keys(l).forEach(function(u){switch(u){case"items":a.setItems(l.items);break;case"onFilterStringChangedCallback":a.setOnFilterStringChangedCallback(l.onFilterStringChangedCallback);break;case"onTextSearchCallback":a.setOnTextSearchCallback(l.onTextSearchCallback);break;default:a[u]=l[u]}}),a.updateActionsIds()}else a.setItems(e),a.selectedItem=o;return a}return t.prototype.hasText=function(e,n){if(!n)return!0;var r=e.title||"";if(this.onTextSearchCallback)return this.onTextSearchCallback(e,n);var o=r.toLocaleLowerCase();return o=b.comparator.normalizeTextCallback(o,"filter"),o.indexOf(n.toLocaleLowerCase())>-1},t.prototype.isItemVisible=function(e){return e.visible&&(!this.shouldProcessFilter||this.hasText(e,this.filterString))},t.prototype.getRenderedActions=function(){var e=i.prototype.getRenderedActions.call(this);if(this.filterString){var n=[];return e.forEach(function(r){n.push(r),r.items&&r.items.forEach(function(o){var s=new $(o);s.iconName||(s.iconName=r.iconName),n.push(s)})}),n}return e},Object.defineProperty(t.prototype,"visibleItems",{get:function(){var e=this;return this.visibleActions.filter(function(n){return e.isItemVisible(n)})},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"shouldProcessFilter",{get:function(){return!this.onFilterStringChangedCallback},enumerable:!1,configurable:!0}),t.prototype.onFilterStringChanged=function(e){this.onFilterStringChangedCallback&&this.onFilterStringChangedCallback(e),this.updateIsEmpty()},t.prototype.updateIsEmpty=function(){var e=this;this.isEmpty=this.renderedActions.filter(function(n){return e.isItemVisible(n)}).length===0},t.prototype.scrollToItem=function(e,n){var r=this;n===void 0&&(n=0),setTimeout(function(){if(r.listContainerHtmlElement){var o=r.listContainerHtmlElement.querySelector(be(e));o&&setTimeout(function(){o.scrollIntoView({behavior:"smooth",block:"nearest",inline:"start"})},n)}},n)},t.prototype.setOnFilterStringChangedCallback=function(e){this.onFilterStringChangedCallback=e},t.prototype.setOnTextSearchCallback=function(e){this.onTextSearchCallback=e},t.prototype.setItems=function(e,n){n===void 0&&(n=!0),i.prototype.setItems.call(this,e,n),this.updateActionsIds(),!this.isAllDataLoaded&&this.actions.length&&this.actions.push(this.loadingIndicator)},t.prototype.updateActionsIds=function(){var e=this;this.elementId&&this.renderedActions.forEach(function(n){n.elementId=e.elementId+n.id})},t.prototype.setSearchEnabled=function(e){this.searchEnabled=e,this.showSearchClearButton=e},t.prototype.onSet=function(){this.showFilter=this.searchEnabled&&(this.forceShowFilter||(this.actions||[]).length>t.MINELEMENTCOUNT),i.prototype.onSet.call(this)},t.prototype.getDefaultCssClasses=function(){return $l},t.prototype.popupAfterShowCallback=function(e){this.addScrollEventListener(function(){e.hidePopup()})},t.prototype.onItemLeave=function(e){e.hidePopupDelayed(this.subItemsHideDelay)},t.prototype.areSameItems=function(e,n){return this.areSameItemsCallback?this.areSameItemsCallback(e,n):!!e&&!!n&&e.id==n.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(be(this.cssClasses.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 $({id:"loadingIndicator",title:this.loadingText,action:function(){},css:this.cssClasses.loadingIndicator})),this.loadingIndicatorValue},enumerable:!1,configurable:!0}),t.prototype.goToItems=function(e){if(e.key==="ArrowDown"||e.keyCode===40){var n=e.target.parentElement,r=n.parentElement.querySelector("ul"),o=pu(r);r&&o&&(yt.focusElement(o),e.preventDefault())}},t.prototype.onMouseMove=function(e){this.resetFocusedItem()},t.prototype.onKeyDown=function(e){var n=e.target;e.key==="ArrowDown"||e.keyCode===40?(yt.focusElement(yt.getNextElementPreorder(n)),e.preventDefault()):(e.key==="ArrowUp"||e.keyCode===38)&&(yt.focusElement(yt.getNextElementPostorder(n)),e.preventDefault())},t.prototype.onPointerDown=function(e,n){},t.prototype.refresh=function(){this.filterString!==""?this.filterString="":this.updateIsEmpty(),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(n){return n.visible&&e.isItemSelected(n)})[0],this.focusedItem||this.focusFirstVisibleItem()},t.prototype.focusNextVisibleItem=function(){if(!this.focusedItem)this.initFocusedItem();else{var e=this.visibleItems,n=e.indexOf(this.focusedItem),r=e[n+1];r?this.focusedItem=r:this.focusFirstVisibleItem()}},t.prototype.focusPrevVisibleItem=function(){if(!this.focusedItem)this.initFocusedItem();else{var e=this.visibleItems,n=e.indexOf(this.focusedItem),r=e[n-1];r?this.focusedItem=r:this.focusLastVisibleItem()}},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=yt.hasVerticalScroller(this.scrollableContainer))},t.prototype.scrollToFocusedItem=function(){this.scrollToItem(this.cssClasses.itemFocused)},t.prototype.scrollToSelectedItem=function(){this.selectedItem&&this.selectedItem.items&&this.selectedItem.items.length>0?this.scrollToItem(this.cssClasses.itemGroupSelected,110):this.scrollToItem(this.cssClasses.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(){i.prototype.dispose.call(this),this.loadingIndicatorValue&&this.loadingIndicatorValue.dispose(),this.listContainerHtmlElement=void 0},t.INDENT=16,t.MINELEMENTCOUNT=10,ve([h({defaultValue:!0,onSet:function(e,n){n.onSet()}})],t.prototype,"searchEnabled",void 0),ve([h({defaultValue:!1})],t.prototype,"showFilter",void 0),ve([h({defaultValue:!1})],t.prototype,"forceShowFilter",void 0),ve([h({defaultValue:!1})],t.prototype,"isExpanded",void 0),ve([h({})],t.prototype,"selectedItem",void 0),ve([h()],t.prototype,"focusedItem",void 0),ve([h({onSet:function(e,n){n.onFilterStringChanged(n.filterString)}})],t.prototype,"filterString",void 0),ve([h({defaultValue:!1})],t.prototype,"hasVerticalScroller",void 0),ve([h({defaultValue:!0})],t.prototype,"isAllDataLoaded",void 0),ve([h({defaultValue:!1})],t.prototype,"showSearchClearButton",void 0),ve([h({defaultValue:!0})],t.prototype,"renderElements",void 0),ve([h({defaultValue:!1})],t.prototype,"textWrapEnabled",void 0),ve([h({defaultValue:"sv-list-item-content"})],t.prototype,"itemComponent",void 0),t}(Ee),Jl=function(){var i=function(t,e){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(n[o]=r[o])},i(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");i(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),he=function(i,t,e,n){var r=arguments.length,o=r<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,e):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(i,t,e,n);else for(var a=i.length-1;a>=0;a--)(s=i[a])&&(o=(r<3?s(o):r>3?s(t,e,o):s(t,e))||o);return r>3&&o&&Object.defineProperty(t,e,o),o},Et=function(i){Jl(t,i);function t(e,n,r,o){var s=i.call(this)||this;if(s.focusFirstInputSelector="",s.onCancel=function(){},s.onApply=function(){return!0},s.onHide=function(){},s.onShow=function(){},s.onDispose=function(){},s.onVisibilityChanged=s.addEvent(),s.onFooterActionsCreated=s.addEvent(),s.onRecalculatePosition=s.addEvent(),s.contentComponentName=e,s.contentComponentData=n,r&&typeof r=="string")s.verticalPosition=r,s.horizontalPosition=o;else if(r){var a=r;for(var l in a)s[l]=a[l]}return s}return 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 n={actions:e};return this.onFooterActionsCreated.fire(this,n),n.actions},t.prototype.updateDisplayMode=function(e){switch(this.displayMode!==e&&(this.setWidthByTarget=e==="dropdown"),e){case"dropdown":{this.displayMode="popup";break}case"popup":{this.displayMode="overlay",this.overlayDisplayMode="tablet-dropdown-overlay";break}case"overlay":{this.displayMode="overlay",this.overlayDisplayMode="dropdown-overlay";break}}},t.prototype.onHiding=function(){this.refreshInnerModel(),this.onHide()},t.prototype.dispose=function(){i.prototype.dispose.call(this),this.onDispose()},he([h()],t.prototype,"contentComponentName",void 0),he([h()],t.prototype,"contentComponentData",void 0),he([h({defaultValue:"bottom"})],t.prototype,"verticalPosition",void 0),he([h({defaultValue:"left"})],t.prototype,"horizontalPosition",void 0),he([h({defaultValue:!0})],t.prototype,"showPointer",void 0),he([h({defaultValue:!1})],t.prototype,"isModal",void 0),he([h({defaultValue:!0})],t.prototype,"canShrink",void 0),he([h({defaultValue:!0})],t.prototype,"isFocusedContent",void 0),he([h({defaultValue:!0})],t.prototype,"isFocusedContainer",void 0),he([h({defaultValue:""})],t.prototype,"cssClass",void 0),he([h({defaultValue:""})],t.prototype,"title",void 0),he([h({defaultValue:"auto"})],t.prototype,"overlayDisplayMode",void 0),he([h({defaultValue:"popup"})],t.prototype,"displayMode",void 0),he([h({defaultValue:"flex"})],t.prototype,"positionMode",void 0),t}(z);function Gl(i,t,e,n,r,o,s,a,l){return r===void 0&&(r=function(){}),o===void 0&&(o=function(){}),l===void 0&&(l="popup"),Fe.warn("The `showModal()` and `createDialogOptions()` methods are obsolete. Use the `showDialog()` method instead."),{componentName:i,data:t,onApply:e,onCancel:n,onHide:r,onShow:o,cssClass:s,title:a,displayMode:l}}var no=function(){var i=function(t,e){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(n[o]=r[o])},i(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");i(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),W=function(i,t,e,n){var r=arguments.length,o=r<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,e):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(i,t,e,n);else for(var a=i.length-1;a>=0;a--)(s=i[a])&&(o=(r<3?s(o):r>3?s(t,e,o):s(t,e))||o);return r>3&&o&&Object.defineProperty(t,e,o),o},Kl=function(i,t){for(var e=0,n=t.length,r=i.length;e<n;e++,r++)i[r]=t[e];return i};function Yl(i,t,e){return t.locOwner=e,Wn(i,t,t)}function Wn(i,t,e){var n,r=t.onSelectionChanged;t.onSelectionChanged=function(l){for(var u=[],d=1;d<arguments.length;d++)u[d-1]=arguments[d];a.hasTitle&&(a.title=l.title),r&&r(l,u)};var o=$n(t,e);o.getTargetCallback=ro;var s=Object.assign({},i,{component:"sv-action-bar-item-dropdown",popupModel:o,action:function(l,u){i.action&&i.action(),o.isFocusedContent=o.isFocusedContent||!u,o.show()}}),a=new $(s);return a.data=(n=o.contentComponentData)===null||n===void 0?void 0:n.model,a}function $n(i,t){var e=new Rt(i);e.onSelectionChanged=function(o){i.onSelectionChanged&&i.onSelectionChanged(o),r.hide()};var n=t||{};n.onDispose=function(){e.dispose()};var r=new Et("sv-list",{model:e},n);return r.isFocusedContent=e.showFilter,r.onShow=function(){n.onShow&&n.onShow(),e.scrollToSelectedItem()},r}function ro(i){return i==null?void 0:i.previousElementSibling}var Zt=function(i){no(t,i);function t(){var e=i!==null&&i.apply(this,arguments)||this;return e.rendredIdValue=t.getNextRendredId(),e}return 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||Un},set:function(e){this.cssClassesValue=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isVisible",{get:function(){return this.visible&&this.mode!=="popup"&&this.mode!=="removed"},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"disabled",{get:function(){return this.enabled!==void 0&&!this.enabled},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"canShrink",{get:function(){return!this.disableShrink&&!!this.iconName},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hasTitle",{get:function(){return(this.mode!="small"&&(this.showTitle||this.showTitle===void 0)||!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 O().append(this.cssClasses.itemTitle).append(this.cssClasses.itemTitleWithIcon,!!this.iconName).toString()},t.prototype.getActionBarItemCss=function(){return new O().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 O().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 n=this;this.clearPopupTimeouts(),this.showPopupTimeout=setTimeout(function(){n.clearPopupTimeouts(),n.showPopup()},e)},t.prototype.hidePopupDelayed=function(e){var n=this,r;!((r=this.popupModel)===null||r===void 0)&&r.isVisible?(this.clearPopupTimeouts(),this.hidePopupTimeout=setTimeout(function(){n.clearPopupTimeouts(),n.hidePopup(),n.isHovered=!1},e)):(this.clearPopupTimeouts(),this.isHovered=!1)},t.renderedId=1,W([h()],t.prototype,"tooltip",void 0),W([h()],t.prototype,"showTitle",void 0),W([h()],t.prototype,"innerCss",void 0),W([h()],t.prototype,"active",void 0),W([h()],t.prototype,"pressed",void 0),W([h()],t.prototype,"data",void 0),W([h()],t.prototype,"popupModel",void 0),W([h()],t.prototype,"needSeparator",void 0),W([h()],t.prototype,"template",void 0),W([h({defaultValue:"large"})],t.prototype,"mode",void 0),W([h()],t.prototype,"visibleIndex",void 0),W([h()],t.prototype,"disableTabStop",void 0),W([h()],t.prototype,"disableShrink",void 0),W([h()],t.prototype,"disableHide",void 0),W([h({defaultValue:!1})],t.prototype,"needSpace",void 0),W([h()],t.prototype,"ariaChecked",void 0),W([h()],t.prototype,"ariaExpanded",void 0),W([h({defaultValue:"button"})],t.prototype,"ariaRole",void 0),W([h()],t.prototype,"iconName",void 0),W([h({defaultValue:24})],t.prototype,"iconSize",void 0),W([h()],t.prototype,"markerIconName",void 0),W([h()],t.prototype,"css",void 0),W([h({defaultValue:!1})],t.prototype,"isPressed",void 0),W([h({defaultValue:!1})],t.prototype,"isHovered",void 0),t}(z),$=function(i){no(t,i);function t(e){var n=i.call(this)||this;n.locTitleChanged=function(){var s=n.locTitle.renderedHtml;n.setPropertyValue("_title",s||void 0)};var r=e instanceof t?e.innerItem:e;if(n.innerItem=r,n.locTitle=r?r.locTitle:null,r)for(var o in r)o==="locTitle"||o==="title"&&n.locTitle&&n.title||(n[o]=r[o]);return n.locTitleName&&n.locTitleChanged(),n.registerFunctionOnPropertyValueChanged("_title",function(){n.raiseUpdate(!0)}),n.locStrChangedInPopupModel(),n}return t.prototype.raiseUpdate=function(e){e===void 0&&(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=Kl([],e.items);var n=Object.assign({},e);n.searchEnabled=!1;var r=$n(n,{horizontalPosition:"right",showPointer:!1,canShrink:!1});r.cssClass="sv-popup-inner",this.popupModel=r},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(){i.prototype.locStrsChanged.call(this),this.locTooltipChanged(),this.locStrChangedInPopupModel()},t.prototype.doAction=function(e){var n=e.originalEvent?e.originalEvent:e;return this.action(this,n.isTrusted),n.preventDefault(),n.stopPropagation(),!0},t.prototype.doMouseDown=function(e){this.isMouseDown=!0},t.prototype.doFocus=function(e){if(this.onFocus){var n=e.originalEvent?e.originalEvent:e;this.onFocus(this.isMouseDown,n)}this.isMouseDown=!1},t.prototype.locStrChangedInPopupModel=function(){if(!(!this.popupModel||!this.popupModel.contentComponentData||!this.popupModel.contentComponentData.model)){var e=this.popupModel.contentComponentData.model;if(Array.isArray(e.actions)){var n=e.actions;n.forEach(function(r){r.locStrsChanged&&r.locStrsChanged()})}}},t.prototype.locTooltipChanged=function(){this.locTooltipName&&(this.tooltip=oe(this.locTooltipName,this.locTitle.locale))},t.prototype.getLocale=function(){return this.owner?this.owner.getLocale():""},t.prototype.getMarkdownHtml=function(e,n){return this.owner?this.owner.getMarkdownHtml(e,n):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&&(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.locTitleValue&&this.locTitleValue.onStringChanged.remove(this.locTitleChanged),this.locTitleChanged=void 0,this.action=void 0,i.prototype.dispose.call(this),this.popupModel&&this.popupModel.dispose()},W([h()],t.prototype,"id",void 0),W([h({defaultValue:!0,onSet:function(e,n){n.raiseUpdate()}})],t.prototype,"_visible",void 0),W([h({onSet:function(e,n){n.locTooltipChanged()}})],t.prototype,"locTooltipName",void 0),W([h()],t.prototype,"_enabled",void 0),W([h()],t.prototype,"action",void 0),W([h()],t.prototype,"onFocus",void 0),W([h()],t.prototype,"_component",void 0),W([h()],t.prototype,"items",void 0),W([h({onSet:function(e,n){n.locTitleValue.text!==e&&(n.locTitleValue.text=e)}})],t.prototype,"_title",void 0),t}(Zt),Xl=function(){function i(t){this.item=t,this.funcKey="sv-dropdown-action",this.setupPopupCallbacks()}return i.prototype.setupPopupCallbacks=function(){var t=this,e=this.popupModel=this.item.popupModel;e&&e.registerPropertyChangedHandlers(["isVisible"],function(){e.isVisible?t.item.pressed=!0:t.item.pressed=!1},this.funcKey)},i.prototype.removePopupCallbacks=function(){this.popupModel&&this.popupModel.unregisterPropertyChangedHandlers(["isVisible"],this.funcKey)},i.prototype.dispose=function(){this.removePopupCallbacks()},i}(),Zl=function(){var i=function(t,e){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(n[o]=r[o])},i(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");i(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),en=function(i){Zl(t,i);function t(){var e=i.call(this)||this;return e.minVisibleItemsCount=0,e.isResponsivenessDisabled=!1,e.dotsItem=Wn({id:"dotsItem-id"+t.ContainerID++,css:"sv-dots",innerCss:"sv-dots__item",iconName:"icon-more",visible:!1,tooltip:oe("more")},{items:[],allowSelection:!1}),e}return t.prototype.hideItemsGreaterN=function(e){var n=this.getActionsToHide();e=Math.max(e,this.minVisibleItemsCount-(this.visibleActions.length-n.length));var r=[];n.forEach(function(o){e<=0&&(o.removePriority?o.mode="removed":(o.mode="popup",r.push(o.innerItem))),e--}),this.hiddenItemsListModel.setItems(r)},t.prototype.getActionsToHide=function(){return this.visibleActions.filter(function(e){return!e.disableHide}).sort(function(e,n){return e.removePriority||0-n.removePriority||0})},t.prototype.getVisibleItemsCount=function(e){this.visibleActions.filter(function(s){return s.disableHide}).forEach(function(s){return e-=s.minDimension});for(var n=this.getActionsToHide().map(function(s){return s.minDimension}),r=0,o=0;o<n.length;o++)if(r+=n[o],r>e)return o;return o},t.prototype.updateItemMode=function(e,n){for(var r=this.visibleActions,o=r.length-1;o>=0;o--)n>e&&!r[o].disableShrink?(n-=r[o].maxDimension-r[o].minDimension,r[o].mode="small"):r[o].mode="large";if(n>e){var s=this.visibleActions.filter(function(a){return a.removePriority});s.sort(function(a,l){return a.removePriority-l.removePriority});for(var o=0;o<s.length;o++)n>e&&(n-=r[o].disableShrink?s[o].maxDimension:s[o].minDimension,s[o].mode="removed")}},Object.defineProperty(t.prototype,"hiddenItemsListModel",{get:function(){return this.dotsItem.data},enumerable:!1,configurable:!0}),t.prototype.onSet=function(){var e=this;this.actions.forEach(function(n){return n.updateCallback=function(r){return e.raiseUpdate(r)}}),i.prototype.onSet.call(this)},t.prototype.onPush=function(e){var n=this;e.updateCallback=function(r){return n.raiseUpdate(r)},i.prototype.onPush.call(this,e)},t.prototype.getRenderedActions=function(){return this.actions.length===1&&this.actions[0].iconName?this.actions:this.actions.concat([this.dotsItem])},t.prototype.raiseUpdate=function(e){this.isResponsivenessDisabled||i.prototype.raiseUpdate.call(this,e)},t.prototype.fit=function(e,n){if(!(e<=0)){this.dotsItem.visible=!1;var r=0,o=0,s=this.visibleActions;s.forEach(function(a){r+=a.minDimension,o+=a.maxDimension}),e>=o?this.setActionsMode("large"):e<r?(this.setActionsMode("small"),this.hideItemsGreaterN(this.getVisibleItemsCount(e-n)),this.dotsItem.visible=!!this.hiddenItemsListModel.actions.length):this.updateItemMode(e,o)}},t.prototype.initResponsivityManager=function(e,n){if(this.responsivityManager){if(this.responsivityManager.container==e)return;this.responsivityManager.dispose()}this.responsivityManager=new Hn(e,this,":scope > .sv-action:not(.sv-dots) > .sv-action__content",null,n)},t.prototype.resetResponsivityManager=function(){this.responsivityManager&&(this.responsivityManager.dispose(),this.responsivityManager=void 0)},t.prototype.setActionsMode=function(e){this.actions.forEach(function(n){e=="small"&&n.disableShrink?n.mode="large":n.mode=e})},t.prototype.dispose=function(){i.prototype.dispose.call(this),this.dotsItem.data.dispose(),this.dotsItem.dispose(),this.resetResponsivityManager()},t.ContainerID=1,t}(Ee);(function(){function i(t,e){var n=this;e===void 0&&(e=!1),this.func=t,this.isMultiple=e,this._isCompleted=!1,this.execute=function(){n._isCompleted||(n.func(),n._isCompleted=!n.isMultiple)}}return i.prototype.discard=function(){this._isCompleted=!0},Object.defineProperty(i.prototype,"isCompleted",{get:function(){return this._isCompleted},enumerable:!1,configurable:!0}),i})();function eu(i){var t=this,e=!1,n=!1,r;return{run:function(){for(var o=[],s=0;s<arguments.length;s++)o[s]=arguments[s];n=!1,r=o,e||(e=!0,queueMicrotask(function(){n||i.apply(t,r),n=!1,e=!1}))},cancel:function(){n=!0}}}var It=function(){var i=function(t,e){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(n[o]=r[o])},i(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");i(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),Jn=function(){function i(){this.cancelQueue=[]}return i.prototype.getMsFromRule=function(t){return t==="auto"?0:Number(t.slice(0,-1).replace(",","."))*1e3},i.prototype.reflow=function(t){return t.offsetHeight},i.prototype.getAnimationsCount=function(t){var e="";return getComputedStyle&&(e=getComputedStyle(t).animationName),e&&e!="none"?e.split(", ").length:0},i.prototype.getAnimationDuration=function(t){for(var e=getComputedStyle(t),n=e.animationDelay.split(", "),r=e.animationDuration.split(", "),o=0,s=0;s<Math.max(r.length,n.length);s++)o=Math.max(o,this.getMsFromRule(r[s%r.length])+this.getMsFromRule(n[s%n.length]));return o},i.prototype.addCancelCallback=function(t){this.cancelQueue.push(t)},i.prototype.removeCancelCallback=function(t){this.cancelQueue.indexOf(t)>=0&&this.cancelQueue.splice(this.cancelQueue.indexOf(t),1)},i.prototype.onAnimationEnd=function(t,e,n){var r=this,o,s=this.getAnimationsCount(t),a=function(u){u===void 0&&(u=!0),e(u),clearTimeout(o),r.removeCancelCallback(a),t.removeEventListener("animationend",l)},l=function(u){u.target==u.currentTarget&&--s<=0&&a(!1)};s>0?(t.addEventListener("animationend",l),this.addCancelCallback(a),o=setTimeout(function(){a(!1)},this.getAnimationDuration(t)+10)):e(!0)},i.prototype.afterAnimationRun=function(t,e){t&&e&&e.onAfterRunAnimation&&e.onAfterRunAnimation(t)},i.prototype.beforeAnimationRun=function(t,e){t&&e&&e.onBeforeRunAnimation&&e.onBeforeRunAnimation(t)},i.prototype.getCssClasses=function(t){return t.cssClass.replace(/\s+$/,"").split(/\s+/)},i.prototype.runAnimation=function(t,e,n){t&&(e!=null&&e.cssClass)?(this.reflow(t),this.getCssClasses(e).forEach(function(r){t.classList.add(r)}),this.onAnimationEnd(t,n,e)):n(!0)},i.prototype.clearHtmlElement=function(t,e){t&&e.cssClass&&this.getCssClasses(e).forEach(function(n){t.classList.remove(n)}),this.afterAnimationRun(t,e)},i.prototype.onNextRender=function(t,e){var n=this;if(e===void 0&&(e=!1),!e&&E.isAvailable()){var r=function(){t(!0),cancelAnimationFrame(o)},o=E.requestAnimationFrame(function(){o=E.requestAnimationFrame(function(){t(!1),n.removeCancelCallback(r)})});this.addCancelCallback(r)}else t(!0)},i.prototype.cancel=function(){var t=[].concat(this.cancelQueue);t.forEach(function(e){return e()}),this.cancelQueue=[]},i}(),io=function(i){It(t,i);function t(){return i!==null&&i.apply(this,arguments)||this}return t.prototype.onEnter=function(e){var n=this,r=e.getAnimatedElement(),o=e.getEnterOptions?e.getEnterOptions():{};this.beforeAnimationRun(r,o),this.runAnimation(r,o,function(){n.clearHtmlElement(r,o)})},t.prototype.onLeave=function(e,n){var r=this,o=e.getAnimatedElement(),s=e.getLeaveOptions?e.getLeaveOptions():{};this.beforeAnimationRun(o,s),this.runAnimation(o,s,function(a){n(),r.onNextRender(function(){r.clearHtmlElement(o,s)},a)})},t}(Jn),Gn=function(i){It(t,i);function t(){return i!==null&&i.apply(this,arguments)||this}return t.prototype.runGroupAnimation=function(e,n,r,o,s){var a=this,l={isAddingRunning:n.length>0,isDeletingRunning:r.length>0,isReorderingRunning:o.length>0},u=n.map(function(A){return e.getAnimatedElement(A)}),d=n.map(function(A){return e.getEnterOptions?e.getEnterOptions(A,l):{}}),v=r.map(function(A){return e.getAnimatedElement(A)}),V=r.map(function(A){return e.getLeaveOptions?e.getLeaveOptions(A,l):{}}),T=o.map(function(A){return e.getAnimatedElement(A.item)}),R=o.map(function(A){return e.getReorderOptions?e.getReorderOptions(A.item,A.movedForward,l):{}});n.forEach(function(A,Q){a.beforeAnimationRun(u[Q],d[Q])}),r.forEach(function(A,Q){a.beforeAnimationRun(v[Q],V[Q])}),o.forEach(function(A,Q){a.beforeAnimationRun(T[Q],R[Q])});var N=n.length+r.length+T.length,j=function(A){--N<=0&&(s&&s(),a.onNextRender(function(){n.forEach(function(Q,re){a.clearHtmlElement(u[re],d[re])}),r.forEach(function(Q,re){a.clearHtmlElement(v[re],V[re])}),o.forEach(function(Q,re){a.clearHtmlElement(T[re],R[re])})},A))};n.forEach(function(A,Q){a.runAnimation(u[Q],d[Q],j)}),r.forEach(function(A,Q){a.runAnimation(v[Q],V[Q],j)}),o.forEach(function(A,Q){a.runAnimation(T[Q],R[Q],j)})},t}(Jn),tn=function(){function i(t,e,n){var r=this;this.animationOptions=t,this.update=e,this.getCurrentValue=n,this._debouncedSync=eu(function(o){r.cancelAnimations();try{r._sync(o)}catch{r.update(o)}})}return i.prototype.onNextRender=function(t,e){var n=this,r=this.animationOptions.getRerenderEvent();if(r){var s=function(){r.remove(a),n.cancelCallback=void 0},a=function(l,u){u.isCancel?e&&e():t(),s()};this.cancelCallback=function(){e&&e(),s()},r.add(a)}else if(E.isAvailable()){var o=E.requestAnimationFrame(function(){t(),n.cancelCallback=void 0});this.cancelCallback=function(){e&&e(),cancelAnimationFrame(o),n.cancelCallback=void 0}}else throw new Error("Can't get next render")},i.prototype.sync=function(t){this.animationOptions.isAnimationEnabled()?this._debouncedSync.run(t):(this.cancel(),this.update(t))},i.prototype.cancel=function(){this._debouncedSync.cancel(),this.cancelAnimations()},i.prototype.cancelAnimations=function(){this.cancelCallback&&this.cancelCallback(),this.animation.cancel()},i}(),Kn=function(i){It(t,i);function t(){var e=i!==null&&i.apply(this,arguments)||this;return e.animation=new io,e}return t.prototype._sync=function(e){var n=this;e!==this.getCurrentValue()?e?(this.onNextRender(function(){n.animation.onEnter(n.animationOptions)}),this.update(e)):this.animation.onLeave(this.animationOptions,function(){n.update(e)}):this.update(e)},t}(tn),Qe=function(i){It(t,i);function t(){var e=i!==null&&i.apply(this,arguments)||this;return e.animation=new Gn,e}return t.prototype._sync=function(e){var n=this,r,o;e=[].concat(e);var s=[].concat(this.getCurrentValue()),a=(r=this.animationOptions.allowSyncRemovalAddition)!==null&&r!==void 0?r:!0,l=yu(s,e,(o=this.animationOptions.getKey)!==null&&o!==void 0?o:function(R){return R});!a&&(l.reorderedItems.length>0||l.addedItems.length>0)&&(l.deletedItems=[],l.mergedItems=e),this.animationOptions.onCompareArrays&&this.animationOptions.onCompareArrays(l);var u=l.addedItems,d=l.reorderedItems,v=l.deletedItems,V=l.mergedItems,T=function(){n.animation.runGroupAnimation(n.animationOptions,u,v,d,function(){v.length>0&&n.update(e)})};[u,v,d].some(function(R){return R.length>0})?v.length<=0||d.length>0||u.length>0?(this.onNextRender(T,function(){n.update(e)}),this.update(V)):T():this.update(e)},t}(tn),Yn=function(i){It(t,i);function t(e,n,r,o){var s=i.call(this,e,n,r)||this;return s.mergeValues=o,s.animation=new Gn,s}return t.prototype._sync=function(e){var n=this,r=[].concat(this.getCurrentValue());if(r[0]!==e[0]){var o=this.mergeValues?this.mergeValues(e,r):[].concat(r,e);this.onNextRender(function(){n.animation.runGroupAnimation(n.animationOptions,e,r,[],function(){n.update(e)})},function(){return n.update(e)}),this.update(o,!0)}else this.update(e)},t}(tn),oo=function(){var i=function(t,e){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(n[o]=r[o])},i(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");i(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),Ie=function(i,t,e,n){var r=arguments.length,o=r<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,e):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(i,t,e,n);else for(var a=i.length-1;a>=0;a--)(s=i[a])&&(o=(r<3?s(o):r>3?s(t,e,o):s(t,e))||o);return r>3&&o&&Object.defineProperty(t,e,o),o},nn=function(i){oo(t,i);function t(){var e=i.call(this)||this;return e.createLocTitleProperty(),e}return t.prototype.createLocTitleProperty=function(){return this.createLocalizableString("title",this,!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}),Object.defineProperty(t.prototype,"isSurvey",{get:function(){return!1},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"title",{get:function(){return this.getLocalizableStringText("title",this.getDefaultTitleValue())},set:function(e){this.setTitleValue(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.setTitleValue=function(e){this.setLocalizableStringText("title",e)},t.prototype.updateDescriptionVisibility=function(e){var n=!1;if(this.isDesignMode){var r=x.findProperty(this.getType(),"description");n=!!(r!=null&&r.placeholder)}this.hasDescription=!!e||n&&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(),n=this.getSurvey();return n?n.getElementTitleTagName(this,e):e},enumerable:!1,configurable:!0}),t.prototype.getDefaultTitleTagName=function(){return b.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},Ie([h({})],t.prototype,"hasDescription",void 0),Ie([h({localizable:!0,onSet:function(e,n){n.updateDescriptionVisibility(e)}})],t.prototype,"description",void 0),t}(z),Xn;(function(i){i[i.InsideEmptyPanel=1]="InsideEmptyPanel",i[i.MultilineRight=2]="MultilineRight",i[i.MultilineLeft=3]="MultilineLeft",i[i.Top=4]="Top",i[i.Right=5]="Right",i[i.Bottom=6]="Bottom",i[i.Left=7]="Left"})(Xn||(Xn={}));var le=function(i){oo(t,i);function t(e){var n=i.call(this)||this;return n.selectedElementInDesignValue=n,n.disableDesignActions=t.CreateDisabledDesignElements,n.parentQuestionValue=null,n.isContentElement=!1,n.isEditableTemplateElement=!1,n.isInteractiveDesignElement=!0,n.isSingleInRow=!0,n._renderedIsExpanded=!0,n._isAnimatingCollapseExpand=!1,n.animationCollapsed=new Kn(n.getExpandCollapseAnimationOptions(),function(r){n._renderedIsExpanded=r,n.animationAllowed&&(r?n.isAnimatingCollapseExpand=!0:n.updateElementCss(!1))},function(){return n.renderedIsExpanded}),n.onAfterRenderElement=n.addEvent(),n.name=e,n.createNewArray("errors"),n.createNewArray("titleActions"),n.registerPropertyChangedHandlers(["isReadOnly"],function(){n.onReadOnlyChanged()}),n.registerPropertyChangedHandlers(["errors"],function(){n.updateVisibleErrors()}),n.registerPropertyChangedHandlers(["isSingleInRow"],function(){n.updateElementCss(!1)}),n.registerPropertyChangedHandlers(["minWidth","maxWidth","renderWidth","allowRootStyle","parent"],function(){n.updateRootStyle()}),n}return t.getProgressInfoByElements=function(e,n){for(var r=z.createProgressInfo(),o=0;o<e.length;o++)if(e[o].isVisible){var s=e[o].getProgressInfo();r.questionCount+=s.questionCount,r.answeredQuestionCount+=s.answeredQuestionCount,r.requiredQuestionCount+=s.requiredQuestionCount,r.requiredAnsweredQuestionCount+=s.requiredAnsweredQuestionCount}return n&&r.questionCount>0&&(r.requiredQuestionCount==0&&(r.requiredQuestionCount=1),r.answeredQuestionCount>0&&(r.requiredAnsweredQuestionCount=1)),r},t.IsNeedScrollIntoView=function(e,n,r){var o=r?-1:e.getBoundingClientRect().top,s=o<0,a=-1;if(!s&&n&&(a=e.getBoundingClientRect().left,s=a<0),!s&&E.isAvailable()){var l=E.getInnerHeight();if(s=l>0&&l<o,!s&&n){var u=E.getInnerWidth();s=u>0&&u<a}}return s},t.ScrollIntoView=function(e,n,r){if(e.scrollIntoView(n),typeof r=="function"){var o=null,s=0,a=function(){var l=e.getBoundingClientRect().top;if(l===o){if(s++>2){r();return}}else o=l,s=0;requestAnimationFrame(a)};E.requestAnimationFrame(a)}},t.ScrollElementToTop=function(e,n,r,o){var s=b.environment.root;if(!e||typeof s>"u")return!1;var a=s.getElementById(e);return t.ScrollElementToViewCore(a,!1,n,r,o)},t.ScrollElementToViewCore=function(e,n,r,o,s){if(!e||!e.scrollIntoView)return s&&s(),!1;var a=t.IsNeedScrollIntoView(e,n,r);return a?t.ScrollIntoView(e,o,s):s&&s(),a},t.GetFirstNonTextElement=function(e,n){if(n===void 0&&(n=!1),!e||!e.length||e.length==0)return null;if(n){var r=e[0];r.nodeName==="#text"&&(r.data=""),r=e[e.length-1],r.nodeName==="#text"&&(r.data="")}for(var o=0;o<e.length;o++)if(e[o].nodeName!="#text"&&e[o].nodeName!="#comment")return e[o];return null},t.FocusElement=function(e,n,r){if(!e||!I.isAvailable())return!1;var o=n?!1:t.focusElementCore(e,r);return o||setTimeout(function(){t.focusElementCore(e,r)},n?100:10),o},t.focusElementCore=function(e,n){var r=b.environment.root;if(!r&&!n)return!1;var o=n?n.querySelector("#"+CSS.escape(e)):r.getElementById(e);return o&&!o.disabled&&o.style.display!=="none"&&o.offsetParent!==null?(t.ScrollElementToViewCore(o,!0,!1),o.focus(),!0):!1},Object.defineProperty(t.prototype,"colSpan",{get:function(){return this.getPropertyValue("colSpan",1)},set:function(e){this.setPropertyValue("colSpan",e)},enumerable:!1,configurable:!0}),t.prototype.onPropertyValueChanged=function(e,n,r){i.prototype.onPropertyValueChanged.call(this,e,n,r),e==="state"&&(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(){},t.prototype.updateElementVisibility=function(){this.setPropertyValue("isVisible",this.isVisible)},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=!(this.state==="collapsed"&&!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 this.state==="collapsed"&&!this.isDesignMode},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isExpanded",{get:function(){return this.state==="expanded"},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):!0},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.locOwner=this,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 n=e?new en:new Ee;return this.survey&&this.survey.getCss().actionBar&&(n.cssClasses=this.survey.getCss().actionBar),n},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)},t.prototype.locStrsChanged=function(){i.prototype.locStrsChanged.call(this),this.titleToolbarValue&&this.titleToolbarValue.locStrsChanged()},Object.defineProperty(t.prototype,"hasTitleActions",{get:function(){return this.getTitleActions().length>0},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hasTitleEvents",{get:function(){return this.state!==void 0&&this.state!=="default"},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"titleTabIndex",{get:function(){return!this.isPage&&this.state!=="default"?0:void 0},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"titleAriaExpanded",{get:function(){if(!(this.isPage||this.state==="default"))return this.state==="expanded"?"true":"false"},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"titleAriaRole",{get:function(){if(!(this.isPage||this.state==="default"))return"button"},enumerable:!1,configurable:!0}),t.prototype.setSurveyImpl=function(e,n){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 i.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){b.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 this.surveyValue?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,"skeletonHeight",{get:function(){var e=void 0;return this.survey&&this.survey.skeletonHeight&&(e=this.survey.skeletonHeight+"px"),e},enumerable:!1,configurable:!0}),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(){var e=this.getPropertyValueWithoutDefault("cssClassesValue");return!e&&!this.isCssValueCalculating&&(this.isCssValueCalculating=!0,e=this.createCssClassesValue(),this.isCssValueCalculating=!1),e},enumerable:!1,configurable:!0}),t.prototype.ensureCssClassesValue=function(){this.cssClassesValue||this.createCssClassesValue()},t.prototype.createCssClassesValue=function(){var e=this.calcCssClasses(this.css);return this.setPropertyValue("cssClassesValue",e),this.onCalcCssClasses(e),this.updateElementCssCore(this.cssClassesValue),e},t.prototype.onCalcCssClasses=function(e){},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}),Object.defineProperty(t.prototype,"cssRequiredText",{get:function(){var e=this.cssClasses;return e.requiredText||e.panel&&e.panel.requiredText},enumerable:!1,configurable:!0}),t.prototype.getCssTitleExpandableSvg=function(){return this.state==="default"?null:this.cssClasses.titleExpandableSvg},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.resetPropertyValue("cssClassesValue")},t.prototype.getIsLoadingFromJson=function(){return i.prototype.getIsLoadingFromJson.call(this)?!0:this.surveyValue?this.surveyValue.isLoadingFromJson:!1},Object.defineProperty(t.prototype,"name",{get:function(){return this.getPropertyValue("name","")},set:function(e){var n=this.name;this.setPropertyValue("name",this.getValidName(e)),!this.isLoadingFromJson&&n&&this.onNameChanged(n)},enumerable:!1,configurable:!0}),t.prototype.getValidName=function(e){return e},t.prototype.onNameChanged=function(e){},t.prototype.updateBindingValue=function(e,n){this.data&&!this.isTwoValueEquals(n,this.data.getValue(e))&&this.data.setValue(e,n,!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,n=0;n<this.errors.length;n++)this.errors[n].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.wasRendered||(this.wasRenderedValue=!0,this.onFirstRenderingCore())},t.prototype.onFirstRenderingCore=function(){this.ensureCssClassesValue()},t.prototype.endLoadingFromJson=function(){i.prototype.endLoadingFromJson.call(this),this.survey||this.onSurveyLoad(),this.updateDescriptionVisibility(this.description)},t.prototype.setVisibleIndex=function(e){return 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,n){return this.survey?this.survey.getSurveyMarkdownHtml(this,e,n):this.locOwner?this.locOwner.getMarkdownHtml(e,n):void 0},t.prototype.getRenderer=function(e){return this.survey&&typeof this.survey.getRendererForString=="function"?this.survey.getRendererForString(this,e):this.locOwner&&typeof this.locOwner.getRenderer=="function"?this.locOwner.getRenderer(e):null},t.prototype.getRendererContext=function(e){return this.survey&&typeof this.survey.getRendererContextForString=="function"?this.survey.getRendererContextForString(this,e):this.locOwner&&typeof this.locOwner.getRendererContext=="function"?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 n=e.indexOf(this);n>-1&&e.splice(n,1)}},Object.defineProperty(t.prototype,"textProcessor",{get:function(){return this.textProcessorValue},enumerable:!1,configurable:!0}),t.prototype.getProcessedHtml=function(e){return!e||!this.textProcessor?e:this.textProcessor.processText(e,!0)},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&&e.isPage?e:null},t.prototype.moveToBase=function(e,n,r){if(r===void 0&&(r=null),!n)return!1;e.removeElement(this);var o=-1;return P.isNumber(r)&&(o=parseInt(r)),o==-1&&r&&r.getType&&(o=n.indexOf(r)),n.addElement(this,o),!0},t.prototype.setPage=function(e,n){var r=this.getPage(e);if(this.prevSurvey=this.survey,typeof n=="string"){var o=this.getSurvey();o.pages.forEach(function(s){n===s.name&&(n=s)})}r!==n&&(e&&e.removeElement(this),n&&n.addElement(this,-1),this.prevSurvey=void 0)},t.prototype.getSearchableLocKeys=function(e){e.push("title"),e.push("description")},Object.defineProperty(t.prototype,"isDefaultV2Theme",{get:function(){return this.survey&&this.survey.getCss().root.indexOf("sd-root-modern")!==-1},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hasParent",{get:function(){return this.parent&&!this.parent.isPage||this.parent===void 0},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 this.parent!==void 0&&(!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 n=!!this.isCollapsed||!!this.isExpanded;return new O().append(e.withFrame,this.getHasFrameV2()&&!this.isCompact).append(e.compact,this.isCompact&&this.getHasFrameV2()).append(e.collapsed,!!this.isCollapsed).append(e.expandableAnimating,n&&this.isAnimatingCollapseExpand).append(e.expanded,!!this.isExpanded&&this.renderedIsExpanded).append(e.expandable,n).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(){var e=this;return this.getPropertyValue("paddingLeft",void 0,function(){return e.calcPaddingLeft()})},enumerable:!1,configurable:!0}),t.prototype.calcPaddingLeft=function(){return""},Object.defineProperty(t.prototype,"paddingRight",{get:function(){var e=this;return this.getPropertyValue("paddingRight",void 0,function(){return e.calcPaddingRight()})},set:function(e){this.setPropertyValue("paddingRight",e)},enumerable:!1,configurable:!0}),t.prototype.calcPaddingRight=function(){return""},t.prototype.resetIndents=function(){this.resetPropertyValue("paddingLeft"),this.resetPropertyValue("paddingRight")},t.prototype.updateRootStyle=function(){var e={},n;if(this.parent){var r=this.parent.getColumsForElement(this);n=r.reduce(function(a,l){return l.effectiveWidth+a},0),n&&n!==100&&(e.flexGrow=1,e.flexShrink=0,e.flexBasis=n+"%",e.minWidth=void 0,e.maxWidth=this.maxWidth)}if(Object.keys(e).length==0){var o=""+this.minWidth;if(o&&o!="auto"){if(o.indexOf("px")!=-1&&this.survey){o=o.replace("px","");var s=parseFloat(o);isNaN(s)||(o=s*this.survey.widthScale/100,o=""+o+"px")}o="min(100%, "+o+")"}this.allowRootStyle&&this.renderWidth&&(e.flexGrow=1,e.flexShrink=1,e.flexBasis=this.renderWidth,e.minWidth=o,e.maxWidth=this.maxWidth)}this.rootStyle=e},t.prototype.isContainsSelection=function(e){var n=void 0,r=I.getDocument();if(I.isAvailable()&&r&&r.selection)n=r.selection.createRange().parentElement();else{var o=E.getSelection();if(o&&o.rangeCount>0){var s=o.getRangeAt(0);s.startOffset!==s.endOffset&&(n=s.startContainer.parentNode)}}return n==e},Object.defineProperty(t.prototype,"clickTitleFunction",{get:function(){var e=this;if(this.needClickTitleFunction())return function(n){if(!(n&&e.isContainsSelection(n.target)))return e.processTitleClick()}},enumerable:!1,configurable:!0}),t.prototype.needClickTitleFunction=function(){return this.state!=="default"},t.prototype.processTitleClick=function(){this.state!=="default"&&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){if(!e)return"";var n=this.state!=="default",r=4;return new O().append(e.title).append(e.titleNumInline,(this.no||"").length>r||n).append(e.titleExpandable,n).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 n=this.isPreviewStyle,r=e||this.isReadOnly,o=r&&!n,s=!this.isDefaultV2Theme&&(r||n);return[o,s]},Object.defineProperty(t.prototype,"isPreviewStyle",{get:function(){return!!this.survey&&this.survey.state==="preview"},enumerable:!1,configurable:!0}),t.prototype.localeChanged=function(){i.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,n=function(o){e.isAnimatingCollapseExpand=!0,Ae(o)},r=function(o){e.isAnimatingCollapseExpand=!1,Ce(o)};return{getRerenderEvent:function(){return e.onElementRerendered},getEnterOptions:function(){var o=e.isPanel?e.cssClasses.panel:e.cssClasses;return{cssClass:o.contentEnter,onBeforeRunAnimation:n,onAfterRunAnimation:function(s){r(s),e.onElementExpanded(!0)}}},getLeaveOptions:function(){var o=e.isPanel?e.cssClasses.panel:e.cssClasses;return{cssClass:o.contentLeave,onBeforeRunAnimation:n,onAfterRunAnimation:r}},getAnimatedElement:function(){var o,s=e.isPanel?e.cssClasses.panel:e.cssClasses;if(s.content){var a=be(s.content);if(a)return(o=e.getWrapperElement())===null||o===void 0?void 0:o.querySelector(":scope "+a)}},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 n=this._renderedIsExpanded;this.animationCollapsed.sync(e),!this.isExpandCollapseAnimationEnabled&&!n&&this.renderedIsExpanded&&this.onElementExpanded(!1)},enumerable:!1,configurable:!0}),t.prototype.getIsAnimationAllowed=function(){return i.prototype.getIsAnimationAllowed.call(this)&&!!this.survey&&!this.survey.isEndLoadingFromJson},t.prototype.afterRenderCore=function(e){this.onAfterRenderElement.fire(this,{htmlElement:e})},t.prototype.dispose=function(){i.prototype.dispose.call(this),this.titleToolbarValue&&this.titleToolbarValue.dispose()},t.CreateDisabledDesignElements=!1,Ie([h({defaultValue:null})],t.prototype,"dragTypeOverMe",void 0),Ie([h({defaultValue:!1})],t.prototype,"isDragMe",void 0),Ie([h({onSet:function(e,n){n.colSpan=e}})],t.prototype,"effectiveColSpan",void 0),Ie([h({defaultValue:!1})],t.prototype,"hasVisibleErrors",void 0),Ie([h({defaultValue:!0})],t.prototype,"isSingleInRow",void 0),Ie([h({defaultValue:!0})],t.prototype,"allowRootStyle",void 0),Ie([h()],t.prototype,"rootStyle",void 0),Ie([h()],t.prototype,"_renderedIsExpanded",void 0),t}(nn),tu=function(){function i(t,e,n){var r=this;n===void 0&&(n=100),this._elements=t,this._renderedHandler=e,this._elementsToRenderCount=0,this._elementsToRenderTimer=void 0,this._elementRenderedHandler=function(o,s){var a;(a=o.onAfterRenderElement)===null||a===void 0||a.remove(r._elementRenderedHandler),r._elementsToRenderCount--,r._elementsToRenderCount<=0&&r.visibleElementsRendered()},this._elements.forEach(function(o){o.onAfterRenderElement&&(o.onAfterRenderElement.add(r._elementRenderedHandler),r._elementsToRenderCount++)}),this._elementsToRenderCount>0?this._elementsToRenderTimer=setTimeout(function(){r._elementsToRenderCount>0&&r.visibleElementsRendered()},n):this.visibleElementsRendered()}return i.prototype.stopWaitingForElementsRendering=function(){var t=this;this._elementsToRenderTimer&&(clearTimeout(this._elementsToRenderTimer),this._elementsToRenderTimer=void 0),this._elements.forEach(function(e){var n;(n=e.onAfterRenderElement)===null||n===void 0||n.remove(t._elementRenderedHandler)}),this._elementsToRenderCount=0},i.prototype.visibleElementsRendered=function(){var t=this._renderedHandler;this.dispose(),typeof t=="function"&&t()},i.prototype.dispose=function(){this.stopWaitingForElementsRendering(),this._elements=void 0,this._renderedHandler=void 0},i}(),Se=function(){function i(t,e,n,r){e===void 0&&(e=!1),this.owner=t,this.useMarkdown=e,this.name=n,this.values={},this.htmlValues={},this.onStringChanged=new Ve,this._localizationName=r,this.onCreating()}return Object.defineProperty(i,"defaultLocale",{get:function(){return b.localization.defaultLocaleName},set:function(t){b.localization.defaultLocaleName=t},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"localizationName",{get:function(){return this._localizationName},set:function(t){this._localizationName!=t&&(this._localizationName=t,this.strChanged())},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"allowLineBreaks",{get:function(){var t;return this._allowLineBreaks===void 0&&(this._allowLineBreaks=!1,this.name&&this.owner instanceof nn&&(this._allowLineBreaks=((t=x.findProperty(this.owner.getType(),this.name))===null||t===void 0?void 0:t.type)=="text")),this._allowLineBreaks},enumerable:!1,configurable:!0}),i.prototype.getIsMultiple=function(){return!1},Object.defineProperty(i.prototype,"locale",{get:function(){if(this.owner&&this.owner.getLocale){var t=this.owner.getLocale();if(t||!this.sharedData)return t}return this.sharedData?this.sharedData.locale:""},enumerable:!1,configurable:!0}),i.prototype.strChanged=function(){this.searchableText=void 0,!(this.renderedText===void 0&&this.isEmpty&&!this.onGetTextCallback&&!this.localizationName)&&(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(i.prototype,"text",{get:function(){return this.pureText},set:function(t){this.setLocaleText(this.locale,t)},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"calculatedText",{get:function(){return this.renderedText=this.calculatedTextValue!==void 0?this.calculatedTextValue:this.calcText(),this.calculatedTextValue=void 0,this.renderedText},enumerable:!1,configurable:!0}),i.prototype.calcText=function(){var t=this.pureText;return t&&this.owner&&this.owner.getProcessedText&&t.indexOf("{")>-1&&(t=this.owner.getProcessedText(t)),this.onGetTextCallback&&(t=this.onGetTextCallback(t)),t},Object.defineProperty(i.prototype,"pureText",{get:function(){var t=this.locale;t||(t=this.defaultLoc);var e=this.getValue(t);if(this.isValueEmpty(e)&&t===this.defaultLoc&&(e=this.getValue(ce.defaultLocale)),this.isValueEmpty(e)){var n=this.getRootDialect(t);n&&(e=this.getValue(n))}return this.isValueEmpty(e)&&t!==this.defaultLoc&&(e=this.getValue(this.defaultLoc)),this.isValueEmpty(e)&&this.getLocalizationName()&&(e=this.getLocalizationStr(),this.onGetLocalizationTextCallback&&(e=this.onGetLocalizationTextCallback(e))),e||(e=this.defaultValue||""),e},enumerable:!1,configurable:!0}),i.prototype.getRootDialect=function(t){if(!t)return t;var e=t.indexOf("-");return e>-1?t.substring(0,e):""},i.prototype.getLocalizationName=function(){return this.sharedData?this.sharedData.localizationName:this.localizationName},i.prototype.getLocalizationStr=function(){var t=this.getLocalizationName();return t?oe(t,this.locale):""},Object.defineProperty(i.prototype,"hasHtml",{get:function(){return this.hasHtmlValue()},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"html",{get:function(){return this.hasHtml?this.getHtmlValue():""},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"isEmpty",{get:function(){return this.getValuesKeys().length==0},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"textOrHtml",{get:function(){return this.hasHtml?this.getHtmlValue():this.calculatedText},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"renderedHtml",{get:function(){return this.textOrHtml},enumerable:!1,configurable:!0}),i.prototype.getLocaleText=function(t){var e=this.getLocaleTextCore(t);return e||""},i.prototype.getLocaleTextCore=function(t){return t||(t=this.defaultLoc),this.getValue(t)},i.prototype.isLocaleTextEqualsWithDefault=function(t,e){var n=this.getLocaleTextCore(t);return n===e?!0:this.isValueEmpty(n)&&this.isValueEmpty(e)},i.prototype.clear=function(){this.setJson(void 0)},i.prototype.clearLocale=function(t){this.setLocaleText(t,void 0)},i.prototype.setLocaleText=function(t,e){if(t=this.getValueLoc(t),t&&e===void 0){var n=this.getValue(t);n!==void 0&&(this.deleteValue(t),this.fireStrChanged(t,n));return}if(!this.storeDefaultText&&this.isLocaleTextEqualsWithDefault(t,e)){if(!this.isValueEmpty(e)||t&&t!==this.defaultLoc)return;var r=ce.defaultLocale,o=this.getValue(r);r&&!this.isValueEmpty(o)&&(this.setValue(r,e),this.fireStrChanged(r,o));return}if(!(!b.localization.storeDuplicatedTranslations&&!this.isValueEmpty(e)&&t&&t!=this.defaultLoc&&!this.getValue(t)&&e==this.getLocaleText(this.defaultLoc))){var s=this.curLocale;t||(t=this.defaultLoc);var a=this.onStrChanged&&t===s?this.pureText:void 0;delete this.htmlValues[t],this.isValueEmpty(e)?this.deleteValue(t):typeof e=="string"&&(this.canRemoveLocValue(t,e)?this.setLocaleText(t,null):(this.setValue(t,e),t==this.defaultLoc&&this.deleteValuesEqualsToDefault(e))),this.fireStrChanged(t,a)}},i.prototype.isValueEmpty=function(t){return t==null?!0:this.localizationName?!1:t===""},Object.defineProperty(i.prototype,"curLocale",{get:function(){return this.locale?this.locale:this.defaultLoc},enumerable:!1,configurable:!0}),i.prototype.canRemoveLocValue=function(t,e){if(b.localization.storeDuplicatedTranslations||t===this.defaultLoc)return!1;var n=this.getRootDialect(t);if(n){var r=this.getLocaleText(n);return r?r==e:this.canRemoveLocValue(n,e)}else return e==this.getLocaleText(this.defaultLoc)},i.prototype.fireStrChanged=function(t,e){if(this.strChanged(),!!this.onStrChanged){var n=this.pureText;(t!==this.curLocale||e!==n)&&this.onStrChanged(e,n)}},i.prototype.hasNonDefaultText=function(){var t=this.getValuesKeys();return t.length==0?!1:t.length>1||t[0]!=this.defaultLoc},i.prototype.getLocales=function(){var t=this.getValuesKeys();return t.length==0?[]:t},i.prototype.getJson=function(){if(this.sharedData)return this.sharedData.getJson();var t=this.getValuesKeys();if(t.length==0){if(this.serializeCallBackText){var e=this.calcText();if(e)return e}return null}if(t.length==1&&t[0]==b.localization.defaultLocaleName&&!b.serialization.localizableStringSerializeAsObject)return this.values[t[0]];var n={};for(var r in this.values)n[r]=this.values[r];return n},i.prototype.setJson=function(t,e){if(this.sharedData){this.sharedData.setJson(t,e);return}if(this.values={},this.htmlValues={},t!=null)if(e)typeof t=="string"?this.values[b.defaultLocaleName]=t:(this.values=t,delete this.values.pos);else{if(typeof t=="string")this.setLocaleText(null,t);else for(var n in t)this.setLocaleText(n,t[n]);this.strChanged()}},Object.defineProperty(i.prototype,"renderAs",{get:function(){return!this.owner||typeof this.owner.getRenderer!="function"?i.defaultRenderer:this.owner.getRenderer(this.name)||i.defaultRenderer},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"renderAsData",{get:function(){return!this.owner||typeof this.owner.getRendererContext!="function"?this:this.owner.getRendererContext(this)||this},enumerable:!1,configurable:!0}),i.prototype.equals=function(t){return this.sharedData?this.sharedData.equals(t):!t||!t.values?!1:P.isTwoValueEquals(this.values,t.values,!1,!0,!1)},i.prototype.setFindText=function(t){if(this.searchText!=t){if(this.searchText=t,!this.searchableText){var e=this.textOrHtml;this.searchableText=e?e.toLowerCase():""}var n=this.searchableText,r=n&&t?n.indexOf(t):void 0;return r<0&&(r=void 0),(r!=null||this.searchIndex!=r)&&(this.searchIndex=r,this.onSearchChanged&&this.onSearchChanged()),this.searchIndex!=null}},i.prototype.onChanged=function(){},i.prototype.onCreating=function(){},i.prototype.hasHtmlValue=function(){if(!this.owner||!this.useMarkdown)return!1;var t=this.locale;if(t||(t=this.defaultLoc),this.htmlValues[t]!==void 0)return!!this.htmlValues[t];var e=this.calculatedText;if(!e)return this.setHtmlValue(t,""),!1;if(this.getLocalizationName()&&e===this.getLocalizationStr())return this.setHtmlValue(t,""),!1;var n=this.owner.getMarkdownHtml(e,this.name);return this.setHtmlValue(t,n),!!n},i.prototype.setHtmlValue=function(t,e){this.htmlValues[t]=e},i.prototype.getHtmlValue=function(){var t=this.locale;return t||(t=this.defaultLoc),this.htmlValues[t]},i.prototype.deleteValuesEqualsToDefault=function(t){if(!b.localization.storeDuplicatedTranslations)for(var e=this.getValuesKeys(),n=0;n<e.length;n++)e[n]!=this.defaultLoc&&this.getValue(e[n])==t&&this.deleteValue(e[n])},i.prototype.getValue=function(t){return this.sharedData?this.sharedData.getValue(t):this.values[this.getValueLoc(t)]},i.prototype.setValue=function(t,e){this.sharedData?this.sharedData.setValue(t,e):this.values[this.getValueLoc(t)]=e},i.prototype.deleteValue=function(t){this.sharedData?this.sharedData.deleteValue(t):delete this.values[this.getValueLoc(t)]},i.prototype.getValueLoc=function(t){return this.disableLocalization?b.localization.defaultLocaleName:t},i.prototype.getValuesKeys=function(){return this.sharedData?this.sharedData.getValuesKeys():Object.keys(this.values)},Object.defineProperty(i.prototype,"defaultLoc",{get:function(){return b.localization.defaultLocaleName},enumerable:!1,configurable:!0}),i.SerializeAsObject=!1,i.defaultRenderer="sv-string-viewer",i.editableRenderer="sv-string-editor",i}(),so=function(){function i(t){this.owner=t,this.values={}}return i.prototype.getIsMultiple=function(){return!0},Object.defineProperty(i.prototype,"locale",{get:function(){return this.owner&&this.owner.getLocale?this.owner.getLocale():""},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"value",{get:function(){return this.getValue("")},set:function(t){this.setValue("",t)},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"text",{get:function(){return Array.isArray(this.value)?this.value.join(` -`):""},set:function(t){this.value=t?t.split(` -`):[]},enumerable:!1,configurable:!0}),i.prototype.getLocaleText=function(t){var e=this.getValueCore(t,!t||t===this.locale);return!e||!Array.isArray(e)||e.length==0?"":e.join(` -`)},i.prototype.setLocaleText=function(t,e){var n=e?e.split(` -`):null;this.setValue(t,n)},i.prototype.getValue=function(t){return this.getValueCore(t)},i.prototype.getValueCore=function(t,e){if(e===void 0&&(e=!0),t=this.getLocale(t),this.values[t])return this.values[t];if(e){var n=b.localization.defaultLocaleName;if(t!==n&&this.values[n])return this.values[n]}return[]},i.prototype.setValue=function(t,e){t=this.getLocale(t);var n=P.createCopy(this.values);!e||e.length==0?delete this.values[t]:this.values[t]=e,this.onValueChanged&&this.onValueChanged(n,this.values)},i.prototype.hasValue=function(t){return t===void 0&&(t=""),!this.isEmpty&&this.getValue(t).length>0},Object.defineProperty(i.prototype,"isEmpty",{get:function(){return this.getValuesKeys().length==0},enumerable:!1,configurable:!0}),i.prototype.getLocale=function(t){return t||(t=this.locale,t||b.localization.defaultLocaleName)},i.prototype.getLocales=function(){var t=this.getValuesKeys();return t.length==0?[]:t},i.prototype.getJson=function(){var t=this.getValuesKeys();return t.length==0?null:t.length==1&&t[0]==b.localization.defaultLocaleName&&!b.serialization.localizableStringSerializeAsObject?this.values[t[0]]:P.createCopy(this.values)},i.prototype.setJson=function(t){if(this.values={},!!t)if(Array.isArray(t))this.setValue(null,t);else for(var e in t)this.setValue(e,t[e])},i.prototype.getValuesKeys=function(){return Object.keys(this.values)},i}();function ao(i){return b&&b.confirmActionFunc?b.confirmActionFunc(i):confirm(i)}function At(i){var t=function(e){e?i.funcOnYes():i.funcOnNo&&i.funcOnNo()};b&&b.confirmActionAsync&&b.confirmActionAsync(i.message,t,i)||t(ao(i.message))}function Dt(){if(typeof Dt.isIEOrEdge>"u"){var i=navigator.userAgent,t=i.indexOf("MSIE "),e=i.indexOf("Trident/"),n=i.indexOf("Edge/");Dt.isIEOrEdge=n>0||e>0||t>0}return Dt.isIEOrEdge}function lo(i,t){try{for(var e=atob(i.split(",")[1]),n=i.split(",")[0].split(":")[1].split(";")[0],r=new ArrayBuffer(e.length),o=new Uint8Array(r),s=0;s<e.length;s++)o[s]=e.charCodeAt(s);var a=new Blob([r],{type:n});navigator&&navigator.msSaveBlob&&navigator.msSaveOrOpenBlob(a,t)}catch{}}function nu(){return E.isAvailable()&&E.hasOwn("orientation")}var Lt=function(i){return!!i&&!!("host"in i&&i.host)},Zn=function(i){var t=b.environment.root;return typeof i=="string"?t.getElementById(i):i};function ru(i,t){if(typeof b.environment>"u")return!1;var e=b.environment.root,n=Lt(e)?e.host.clientHeight:e.documentElement.clientHeight,r=i.getBoundingClientRect(),o=Math.max(n,E.getInnerHeight()),s=-50,a=o+t,l=r.top,u=r.bottom,d=Math.max(s,l),v=Math.min(a,u);return d<=v}function rn(i){var t=b.environment.root;return i?i.scrollHeight>i.clientHeight&&(getComputedStyle(i).overflowY==="scroll"||getComputedStyle(i).overflowY==="auto")||i.scrollWidth>i.clientWidth&&(getComputedStyle(i).overflowX==="scroll"||getComputedStyle(i).overflowX==="auto")?i:rn(i.parentElement):Lt(t)?t.host:t.documentElement}function er(i){var t=b.environment;if(t){var e=t.root,n=e.getElementById(i);if(n){var r=rn(n);r&&setTimeout(function(){return r.dispatchEvent(new CustomEvent("scroll"))},10)}}}function iu(i){var t=E.getLocation();!i||!t||(t.href=lu(i))}function tr(i){return i?["url(",i,")"].join(""):""}function ou(i){return typeof i=="string"?/^data:((?:\w+\/(?:(?!;).)+)?)((?:;[^;]+?)*),(.+)$/.test(i):null}var nr={changecamera:"flip-24x24",clear:"clear-24x24",cancel:"cancel-24x24",closecamera:"close-24x24",defaultfile:"file-72x72",choosefile:"folder-24x24",file:"toolbox-file-24x24",left:"chevronleft-16x16",modernbooleancheckchecked:"plus-32x32",modernbooleancheckunchecked:"minus-32x32",more:"more-24x24",navmenu_24x24:"navmenu-24x24",removefile:"error-24x24",takepicture:"camera-32x32",takepicture_24x24:"camera-24x24",v2check:"check-16x16",checked:"check-16x16",v2check_24x24:"check-24x24","back-to-panel_16x16":"restoredown-16x16",clear_16x16:"clear-16x16",close_16x16:"close-16x16",collapsedetail:"collapsedetails-16x16",expanddetail:"expanddetails-16x16","full-screen_16x16":"maximize-16x16",loading:"loading-48x48",minimize_16x16:"minimize-16x16",next_16x16:"chevronright-16x16",previous_16x16:"chevronleft-16x16","no-image":"noimage-48x48","ranking-dash":"rankingundefined-16x16","drag-n-drop":"drag-24x24","ranking-arrows":"reorder-24x24",restore_16x16:"fullsize-16x16",reset:"restore-24x24",search:"search-24x24",average:"smiley-rate5-24x24",excellent:"smiley-rate9-24x24",good:"smiley-rate7-24x24",normal:"smiley-rate6-24x24","not-good":"smiley-rate4-24x24",perfect:"smiley-rate10-24x24",poor:"smiley-rate3-24x24",terrible:"smiley-rate1-24x24","very-good":"smiley-rate8-24x24","very-poor":"smiley-rate2-24x24",add_16x16:"add-16x16",add_24x24:"add-24x24",alert_24x24:"warning-24x24",apply:"apply-24x24","arrow-down":"arrowdown-24x24","arrow-left":"arrowleft-24x24","arrow-left_16x16":"arrowleft-16x16",arrowleft:"arrowleft-16x16","arrow-right":"arrowright-24x24","arrow-right_16x16":"arrowright-16x16",arrowright:"arrowright-16x16","arrow-up":"arrowup-24x24",boolean:"toolbox-boolean-24x24","change-question-type_16x16":"speechbubble-16x16",checkbox:"toolbox-checkbox-24x24","collapse-detail_16x16":"minusbox-16x16","collapse-panel":"collapse-pg-24x24",collapse_16x16:"collapse-16x16","color-picker":"dropper-16x16",comment:"toolbox-longtext-24x24",config:"wrench-24x24",copy:"copy-24x24",default:"toolbox-customquestion-24x24",delete_16x16:"delete-16x16",delete_24x24:"delete-24x24",delete:"delete-24x24","description-hide":"hidehint-16x16",description:"hint-16x16","device-desktop":"desktop-24x24","device-phone":"phone-24x24","device-rotate":"rotate-24x24","device-tablet":"tablet-24x24",download:"download-24x24","drag-area-indicator":"drag-24x24","drag-area-indicator_24x16":"draghorizontal-24x16",v2dragelement_16x16:"draghorizontal-24x16","drop-down-arrow":"chevrondown-24x24","drop-down-arrow_16x16":"chevrondown-16x16",chevron_16x16:"chevrondown-16x16",dropdown:"toolbox-dropdown-24x24",duplicate_16x16:"copy-16x16",edit:"edit-24x24",edit_16x16:"edit-16x16","editing-finish":"finishedit-24x24",error:"error-16x16","expand-detail_16x16":"plusbox-16x16","expand-panel":"expand-pg-24x24",expand_16x16:"expand-16x16",expression:"toolbox-expression-24x24","fast-entry":"textedit-24x24",fix:"fix-24x24",html:"toolbox-html-24x24",image:"toolbox-image-24x24",imagepicker:"toolbox-imagepicker-24x24",import:"import-24x24","invisible-items":"invisible-24x24",language:"language-24x24",load:"import-24x24","logic-collapse":"collapse-24x24","logic-expand":"expand-24x24",logo:"image-48x48",matrix:"toolbox-matrix-24x24",matrixdropdown:"toolbox-multimatrix-24x24",matrixdynamic:"toolbox-dynamicmatrix-24x24",multipletext:"toolbox-multipletext-24x24",panel:"toolbox-panel-24x24",paneldynamic:"toolbox-dynamicpanel-24x24",preview:"preview-24x24",radiogroup:"toolbox-radiogroup-24x24",ranking:"toolbox-ranking-24x24",rating:"toolbox-rating-24x24",redo:"redo-24x24",remove_16x16:"remove-16x16",required:"required-16x16",save:"save-24x24","select-page":"selectpage-24x24",settings:"settings-24x24",settings_16x16:"settings-16x16",signaturepad:"toolbox-signature-24x24","switch-active_16x16":"switchon-16x16","switch-inactive_16x16":"switchoff-16x16",tagbox:"toolbox-tagbox-24x24",text:"toolbox-singleline-24x24",theme:"theme-24x24",toolbox:"toolbox-24x24",undo:"undo-24x24",visible:"visible-24x24",wizard:"wand-24x24",searchclear:"clear-16x16","chevron-16x16":"chevrondown-16x16",chevron:"chevrondown-24x24",progressbuttonv2:"arrowleft-16x16",right:"chevronright-16x16","add-lg":"add-24x24",add:"add-24x24"};function uo(i){var t=su(i);return t||rr(i)}function rr(i){var t="icon-",e=i.replace(t,""),n=nr[e]||e;return t+n}function su(i){var t=b.customIcons[i];return t?rr(t):(i=rr(i),t=b.customIcons[i],t||null)}function au(i,t,e,n,r,o){if(r){i!=="auto"&&(r.style.width=(i||t||16)+"px",r.style.height=(i||e||16)+"px");var s=r.childNodes[0],a=uo(n);s.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href","#"+a);var l=r.getElementsByTagName("title")[0];if(o)l||(l=I.getDocument().createElementNS("http://www.w3.org/2000/svg","title"),r.appendChild(l));else{l&&r.removeChild(l);return}l.textContent=o}}function lu(i){return i&&(i.toLocaleLowerCase().indexOf("javascript:")>-1?encodeURIComponent(i):i)}function uu(i){return typeof i!="function"?i:i()}function nt(i){if(typeof i=="string")if(isNaN(Number(i))){if(i.includes("px"))return parseFloat(i)}else return Number(i);if(typeof i=="number")return i}function on(i){if(nt(i)===void 0)return i}var ir="sv-focused--by-key";function co(i){var t=i.target;!t||!t.classList||t.classList.remove(ir)}function fo(i,t){if(!(i.target&&i.target.contentEditable==="true")){var e=i.target;if(e){var n=i.which||i.keyCode;if(n===9){e.classList&&!e.classList.contains(ir)&&e.classList.add(ir);return}if(t){if(!t.__keyDownReceived)return;t.__keyDownReceived=!1}n===13||n===32?e.click&&e.click():(!t||t.processEsc)&&n===27&&e.blur&&e.blur()}}}function cu(i,t){if(t===void 0&&(t={processEsc:!0}),t&&(t.__keyDownReceived=!0),!(i.target&&i.target.contentEditable==="true")){var e=i.which||i.keyCode,n=[13,32];t.processEsc&&n.push(27),n.indexOf(e)!==-1&&i.preventDefault()}}function or(i,t){if(i){t||(t=function(n){return I.getComputedStyle(n)});var e=t(i);i.style.height="auto",i.scrollHeight&&(i.style.height=i.scrollHeight+parseFloat(e.borderTopWidth)+parseFloat(e.borderBottomWidth)+"px")}}function fu(i){return i.originalEvent||i}function po(i){i.preventDefault(),i.stopPropagation()}function be(i){if(!i)return i;var t=/\s*?([\w-]+)\s*?/g;return i.replace(t,".$1")}function sr(i){return getComputedStyle?Number.parseFloat(getComputedStyle(i).width):i.offsetWidth}function ar(i){return!!(i.offsetWidth||i.offsetHeight||i.getClientRects().length)}function pu(i){for(var t,e=0;e<i.children.length;e++)!t&&getComputedStyle(i.children[e]).display!=="none"&&(t=i.children[e]);return t}function du(i,t){if(t===void 0&&(t=!0),E.isAvailable()&&I.isAvailable()&&i.childNodes.length>0){var e=E.getSelection();if(e.rangeCount==0)return;var n=e.getRangeAt(0);n.setStart(n.endContainer,n.endOffset),n.setEndAfter(i.lastChild),e.removeAllRanges(),e.addRange(n);var r=e.toString(),o=i.innerText;r=r.replace(/\r/g,""),t&&(r=r.replace(/\n/g,""),o=o.replace(/\n/g,""));var s=r.length;for(i.innerText=o,n=I.getDocument().createRange(),n.setStart(i.firstChild,0),n.setEnd(i.firstChild,0),e.removeAllRanges(),e.addRange(n);e.toString().length<o.length-s;){var a=e.toString().length;if(e.modify("extend","forward","character"),e.toString().length==a)break}n=e.getRangeAt(0),n.setStart(n.endContainer,n.endOffset)}}function mt(i,t){if(!(!t||!i)&&typeof t=="object")for(var e in i){var n=i[e];!Array.isArray(n)&&n&&typeof n=="object"?((!t[e]||typeof t[e]!="object")&&(t[e]={}),mt(n,t[e])):t[e]=n}}function lr(i,t){var e={};mt(t.list,e),mt(i.list,e),i.list=e}(function(){function i(){this._result=""}return i.prototype.log=function(t){this._result+="->"+t},Object.defineProperty(i.prototype,"result",{get:function(){return this._result},enumerable:!1,configurable:!0}),i})();function hu(i,t,e){var n=new Se(void 0),r=b.showDialog({componentName:"sv-string-viewer",data:{locStr:n,locString:n,model:n},onApply:function(){return t(!0),!0},onCancel:function(){return t(!1),!1},title:i||e.message,displayMode:"popup",isFocusedContent:!1,cssClass:e.cssClass||"sv-popup--confirm"},e.rootElement),o=r.footerToolbar,s=o.getActionById("apply"),a=o.getActionById("cancel");return a.title=oe("cancel",e.locale),a.innerCss="sv-popup__body-footer-item sv-popup__button sd-btn sd-btn--small",s.title=e.applyTitle||oe("ok",e.locale),s.innerCss="sv-popup__body-footer-item sv-popup__button sv-popup__button--danger sd-btn sd-btn--small sd-btn--danger",gu(r),!0}function gu(i){i.width="min-content"}function ho(i,t){E.isFileReaderAvailable()&&(i.value="",i.onchange=function(e){if(E.isFileReaderAvailable()&&!(!i||!i.files||i.files.length<1)){for(var n=[],r=0;r<i.files.length;r++)n.push(i.files[r]);t(n)}},i.click())}function yu(i,t,e){var n=new Map,r=new Map,o=new Map,s=new Map;i.forEach(function(j){var A=e(j);if(!n.has(A))n.set(e(j),j);else throw new Error("keys must be unique")}),t.forEach(function(j){var A=e(j);if(!r.has(A))r.set(A,j);else throw new Error("keys must be unique")});var a=[],l=[];r.forEach(function(j,A){n.has(A)?o.set(A,o.size):a.push(j)}),n.forEach(function(j,A){r.has(A)?s.set(A,s.size):l.push(j)});var u=[];o.forEach(function(j,A){var Q=s.get(A),re=r.get(A);Q!==j&&u.push({item:re,movedForward:Q<j})});var d=new Array(i.length),v=0,V=Array.from(o.keys());i.forEach(function(j,A){o.has(e(j))?(d[A]=r.get(V[v]),v++):d[A]=j});var T=new Map,R=[];d.forEach(function(j){var A=e(j);r.has(A)?R.length>0&&(T.set(A,R),R=[]):R.push(j)});var N=new Array;return r.forEach(function(j,A){T.has(A)&&T.get(A).forEach(function(Q){N.push(Q)}),N.push(j)}),R.forEach(function(j){N.push(j)}),{reorderedItems:u,deletedItems:l,addedItems:a,mergedItems:N}}function mu(i){if(I.isAvailable()){var t=I.getComputedStyle(i),e=t.paddingTop,n=t.paddingBottom,r=t.borderTopWidth,o=t.borderBottomWidth,s=t.marginTop,a=t.marginBottom,l=t.boxSizing,u=i.offsetHeight+"px";if(l=="content-box"){var d=i.offsetHeight;[o,r,n,e].forEach(function(v){d-=parseFloat(v)}),u=d+"px"}return{paddingTop:e,paddingBottom:n,borderTopWidth:r,borderBottomWidth:o,marginTop:s,marginBottom:a,heightFrom:"0px",heightTo:u}}else return}function Mt(i,t,e){var n;e===void 0&&(e="--animation-"),i.__sv_created_properties=(n=i.__sv_created_properties)!==null&&n!==void 0?n:[],Object.keys(t).forEach(function(r){var o=""+e+r.split(/\.?(?=[A-Z])/).join("-").toLowerCase();i.style.setProperty(o,t[r]),i.__sv_created_properties.push(o)})}function Ae(i){Mt(i,mu(i))}function Ce(i){Array.isArray(i.__sv_created_properties)&&(i.__sv_created_properties.forEach(function(t){i.style.removeProperty(t)}),delete i.__sv_created_properties)}function vu(i){return Math.floor(i*100)/100}var sn=typeof globalThis<"u"?globalThis.document:(void 0).document,bu=sn?{root:sn,_rootElement:I.getBody(),get rootElement(){var i;return(i=this._rootElement)!==null&&i!==void 0?i:I.getBody()},set rootElement(i){this._rootElement=i},_popupMountContainer:I.getBody(),get popupMountContainer(){var i;return(i=this._popupMountContainer)!==null&&i!==void 0?i:I.getBody()},set popupMountContainer(i){this._popupMountContainer=i},svgMountContainer:sn.head,stylesSheetsMountContainer:sn.head}:void 0,Cu={file:{minWidth:"240px"},comment:{minWidth:"200px"}},b={version:"",designMode:{showEmptyDescriptions:!0,showEmptyTitles:!0},get allowShowEmptyDescriptionInDesignMode(){return this.designMode.showEmptyDescriptions},set allowShowEmptyDescriptionInDesignMode(i){this.designMode.showEmptyDescriptions=i},get allowShowEmptyTitleInDesignMode(){return this.designMode.showEmptyTitles},set allowShowEmptyTitleInDesignMode(i){this.designMode.showEmptyTitles=i},localization:{useLocalTimeZone:!0,storeDuplicatedTranslations:!1,defaultLocaleName:"default"},get useLocalTimeZone(){return this.localization.useLocalTimeZone},set useLocalTimeZone(i){this.localization.useLocalTimeZone=i},get storeDuplicatedTranslations(){return this.localization.storeDuplicatedTranslations},set storeDuplicatedTranslations(i){this.localization.storeDuplicatedTranslations=i},get defaultLocaleName(){return this.localization.defaultLocaleName},set defaultLocaleName(i){this.localization.defaultLocaleName=i},web:{onBeforeRequestChoices:function(i,t){},encodeUrlParams:!0,cacheLoadedChoices:!0,disableQuestionWhileLoadingChoices:!1,surveyServiceUrl:"https://api.surveyjs.io/public/v1/Survey"},get webserviceEncodeParameters(){return this.web.encodeUrlParams},set webserviceEncodeParameters(i){this.web.encodeUrlParams=i},get useCachingForChoicesRestful(){return this.web.cacheLoadedChoices},set useCachingForChoicesRestful(i){this.web.cacheLoadedChoices=i},get useCachingForChoicesRestfull(){return this.web.cacheLoadedChoices},set useCachingForChoicesRestfull(i){this.web.cacheLoadedChoices=i},get disableOnGettingChoicesFromWeb(){return this.web.disableQuestionWhileLoadingChoices},set disableOnGettingChoicesFromWeb(i){this.web.disableQuestionWhileLoadingChoices=i},get surveyServiceUrl(){return this.web.surveyServiceUrl},set surveyServiceUrl(i){this.web.surveyServiceUrl=i},triggers:{changeNavigationButtonsOnComplete:!0,executeCompleteOnValueChanged:!1,executeSkipOnValueChanged:!0},get executeCompleteTriggerOnValueChanged(){return this.triggers.executeCompleteOnValueChanged},set executeCompleteTriggerOnValueChanged(i){this.triggers.executeCompleteOnValueChanged=i},get changeNavigationButtonsOnCompleteTrigger(){return this.triggers.changeNavigationButtonsOnComplete},set changeNavigationButtonsOnCompleteTrigger(i){this.triggers.changeNavigationButtonsOnComplete=i},get executeSkipTriggerOnValueChanged(){return this.triggers.executeSkipOnValueChanged},set executeSkipTriggerOnValueChanged(i){this.triggers.executeSkipOnValueChanged=i},serialization:{itemValueSerializeAsObject:!1,itemValueSerializeDisplayText:!1,localizableStringSerializeAsObject:!1,matrixDropdownColumnSerializeTitle:!1},get itemValueAlwaysSerializeAsObject(){return this.serialization.itemValueSerializeAsObject},set itemValueAlwaysSerializeAsObject(i){this.serialization.itemValueSerializeAsObject=i},get itemValueAlwaysSerializeText(){return this.serialization.itemValueSerializeDisplayText},set itemValueAlwaysSerializeText(i){this.serialization.itemValueSerializeDisplayText=i},get serializeLocalizableStringAsObject(){return this.serialization.localizableStringSerializeAsObject},set serializeLocalizableStringAsObject(i){this.serialization.localizableStringSerializeAsObject=i},lazyRender:{enabled:!1,firstBatchSize:3},get lazyRowsRendering(){return this.lazyRender.enabled},set lazyRowsRendering(i){this.lazyRender.enabled=i},get lazyRowsRenderingStartRow(){return this.lazyRender.firstBatchSize},set lazyRowsRenderingStartRow(i){this.lazyRender.firstBatchSize=i},matrix:{defaultCellType:"dropdown",defaultRowName:"default",totalsSuffix:"-total",maxRowCount:1e3,maxRowCountInCondition:1,renderRemoveAsIcon:!0,columnWidthsByType:Cu,rateSize:"small"},get matrixDefaultRowName(){return this.matrix.defaultRowName},set matrixDefaultRowName(i){this.matrix.defaultRowName=i},get matrixDefaultCellType(){return this.matrix.defaultCellType},set matrixDefaultCellType(i){this.matrix.defaultCellType=i},get matrixTotalValuePostFix(){return this.matrix.totalsSuffix},set matrixTotalValuePostFix(i){this.matrix.totalsSuffix=i},get matrixMaximumRowCount(){return this.matrix.maxRowCount},set matrixMaximumRowCount(i){this.matrix.maxRowCount=i},get matrixMaxRowCountInCondition(){return this.matrix.maxRowCountInCondition},set matrixMaxRowCountInCondition(i){this.matrix.maxRowCountInCondition=i},get matrixRenderRemoveAsIcon(){return this.matrix.renderRemoveAsIcon},set matrixRenderRemoveAsIcon(i){this.matrix.renderRemoveAsIcon=i},panel:{maxPanelCount:100,maxPanelCountInCondition:1},get panelDynamicMaxPanelCountInCondition(){return this.panel.maxPanelCountInCondition},set panelDynamicMaxPanelCountInCondition(i){this.panel.maxPanelCountInCondition=i},get panelMaximumPanelCount(){return this.panel.maxPanelCount},set panelMaximumPanelCount(i){this.panel.maxPanelCount=i},readOnly:{enableValidation:!1,commentRenderMode:"textarea",textRenderMode:"input"},get readOnlyCommentRenderMode(){return this.readOnly.commentRenderMode},set readOnlyCommentRenderMode(i){this.readOnly.commentRenderMode=i},get readOnlyTextRenderMode(){return this.readOnly.textRenderMode},set readOnlyTextRenderMode(i){this.readOnly.textRenderMode=i},numbering:{includeQuestionsWithHiddenNumber:!1,includeQuestionsWithHiddenTitle:!1},get setQuestionVisibleIndexForHiddenTitle(){return this.numbering.includeQuestionsWithHiddenTitle},set setQuestionVisibleIndexForHiddenTitle(i){this.numbering.includeQuestionsWithHiddenTitle=i},get setQuestionVisibleIndexForHiddenNumber(){return this.numbering.includeQuestionsWithHiddenNumber},set setQuestionVisibleIndexForHiddenNumber(i){this.numbering.includeQuestionsWithHiddenNumber=i},enterKeyAction:"default",comparator:{trimStrings:!0,caseSensitive:!1,normalizeTextCallback:function(i,t){return i}},expressionDisableConversionChar:"#",get commentPrefix(){return b.commentSuffix},set commentPrefix(i){b.commentSuffix=i},commentSuffix:"-Comment",itemValueSeparator:"|",ratingMaximumRateValueCount:20,tagboxCloseOnSelect:!1,dropdownSearchDelay:500,confirmActionFunc:function(i){return confirm(i)},confirmActionAsync:function(i,t,e){return hu(i,t,e)},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:bu,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]/}},storeUtcDates:!1,onDateCreated:function(i,t,e){return i},parseNumber:function(i,t){return t}},ge=function(){function i(t,e){t===void 0&&(t=null),e===void 0&&(e=null),this.text=t,this.errorOwner=e,this.visible=!0,this.onUpdateErrorTextCallback=void 0}return i.prototype.equals=function(t){return!t||!t.getErrorType||this.getErrorType()!==t.getErrorType()?!1:this.text===t.text&&this.visible===t.visible},Object.defineProperty(i.prototype,"locText",{get:function(){return this.locTextValue||(this.locTextValue=new Se(this.errorOwner,!0),this.locTextValue.storeDefaultText=!0,this.locTextValue.text=this.getText()),this.locTextValue},enumerable:!1,configurable:!0}),i.prototype.getText=function(){var t=this.text;return t||(t=this.getDefaultText()),this.errorOwner&&(t=this.errorOwner.getErrorCustomText(t,this)),t},i.prototype.getErrorType=function(){return"base"},i.prototype.getDefaultText=function(){return""},i.prototype.getLocale=function(){return this.errorOwner?this.errorOwner.getLocale():""},i.prototype.getLocalizationString=function(t){return oe(t,this.getLocale())},i.prototype.updateText=function(){this.onUpdateErrorTextCallback&&this.onUpdateErrorTextCallback(this),this.locText.text=this.getText()},i}(),Pe=function(){var i=function(t,e){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(n[o]=r[o])},i(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");i(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),go=function(i){Pe(t,i);function t(e,n){e===void 0&&(e=null),n===void 0&&(n=null);var r=i.call(this,e,n)||this;return r.text=e,r}return t.prototype.getErrorType=function(){return"required"},t.prototype.getDefaultText=function(){return this.getLocalizationString("requiredError")},t}(ge),yo=function(i){Pe(t,i);function t(e,n){e===void 0&&(e=null),n===void 0&&(n=null);var r=i.call(this,e,n)||this;return r.text=e,r}return t.prototype.getErrorType=function(){return"requireoneanswer"},t.prototype.getDefaultText=function(){return this.getLocalizationString("requiredErrorInPanel")},t}(ge),mo=function(i){Pe(t,i);function t(e,n){e===void 0&&(e=null),n===void 0&&(n=null);var r=i.call(this,e,n)||this;return r.text=e,r}return t.prototype.getErrorType=function(){return"requirenumeric"},t.prototype.getDefaultText=function(){return this.getLocalizationString("numericError")},t}(ge),vo=function(i){Pe(t,i);function t(e,n){n===void 0&&(n=null);var r=i.call(this,null,n)||this;return r.maxSize=e,r.locText.text=r.getText(),r}return t.prototype.getErrorType=function(){return"exceedsize"},t.prototype.getDefaultText=function(){return oe("exceedMaxSize").format(this.getTextSize())},t.prototype.getTextSize=function(){var e=["Bytes","KB","MB","GB","TB"],n=[0,0,2,3,3];if(this.maxSize===0)return"0 Byte";var r=Math.floor(Math.log(this.maxSize)/Math.log(1024)),o=this.maxSize/Math.pow(1024,r);return o.toFixed(n[r])+" "+e[r]},t}(ge),Pu=function(i){Pe(t,i);function t(e,n,r){r===void 0&&(r=null);var o=i.call(this,null,r)||this;return o.status=e,o.response=n,o}return t.prototype.getErrorType=function(){return"webrequest"},t.prototype.getDefaultText=function(){var e=this.getLocalizationString("urlRequestError");return e?e.format(this.status,this.response):""},t}(ge),Vu=function(i){Pe(t,i);function t(e,n){n===void 0&&(n=null);var r=i.call(this,e,n)||this;return r.text=e,r}return t.prototype.getErrorType=function(){return"webrequestempty"},t.prototype.getDefaultText=function(){return this.getLocalizationString("urlGetChoicesError")},t}(ge),wu=function(i){Pe(t,i);function t(e,n){n===void 0&&(n=null);var r=i.call(this,e,n)||this;return r.text=e,r}return t.prototype.getErrorType=function(){return"otherempty"},t.prototype.getDefaultText=function(){return this.getLocalizationString("otherRequiredError")},t}(ge),an=function(i){Pe(t,i);function t(e,n){n===void 0&&(n=null);var r=i.call(this,e,n)||this;return r.text=e,r}return t.prototype.getErrorType=function(){return"uploadingfile"},t.prototype.getDefaultText=function(){return this.getLocalizationString("uploadingFile")},t}(ge),xu=function(i){Pe(t,i);function t(e,n){n===void 0&&(n=null);var r=i.call(this,e,n)||this;return r.text=e,r}return t.prototype.getErrorType=function(){return"requiredinallrowserror"},t.prototype.getDefaultText=function(){return this.getLocalizationString("requiredInAllRowsError")},t}(ge),Ou=function(i){Pe(t,i);function t(e,n){n===void 0&&(n=null);var r=i.call(this,e,n)||this;return r.text=e,r}return t.prototype.getErrorType=function(){return"eachrowuniqueeerror"},t.prototype.getDefaultText=function(){return this.getLocalizationString("eachRowUniqueError")},t}(ge),Su=function(i){Pe(t,i);function t(e,n){n===void 0&&(n=null);var r=i.call(this,null,n)||this;return r.minRowCount=e,r}return t.prototype.getErrorType=function(){return"minrowcounterror"},t.prototype.getDefaultText=function(){return oe("minRowCountError").format(this.minRowCount)},t}(ge),bo=function(i){Pe(t,i);function t(e,n){n===void 0&&(n=null);var r=i.call(this,e,n)||this;return r.text=e,r}return t.prototype.getErrorType=function(){return"keyduplicationerror"},t.prototype.getDefaultText=function(){return this.getLocalizationString("keyDuplicationError")},t}(ge),we=function(i){Pe(t,i);function t(e,n){n===void 0&&(n=null);var r=i.call(this,e,n)||this;return r.text=e,r}return t.prototype.getErrorType=function(){return"custom"},t}(ge),rt=function(){var i=function(t,e){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(n[o]=r[o])},i(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");i(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),Te=function(){function i(t,e){e===void 0&&(e=null),this.value=t,this.error=e}return i}(),it=function(i){rt(t,i);function t(){var e=i.call(this)||this;return e.createLocalizableString("text",e,!0),e}return Object.defineProperty(t.prototype,"isValidator",{get:function(){return!0},enumerable:!1,configurable:!0}),t.prototype.getSurvey=function(e){return 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,n,r,o){return 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,n){return this.errorOwner?this.errorOwner.getMarkdownHtml(e,n):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 n=this,r=new we(this.getErrorText(e),this.errorOwner);return r.onUpdateErrorTextCallback=function(o){return o.text=n.getErrorText(e)},r},t.prototype.toString=function(){var e=this.getType().replace("validator","");return this.text&&(e+=", "+this.text),e},t}(z),Co=function(){function i(){}return i.prototype.run=function(t){var e=this,n=[],r=null,o=null;this.prepareAsyncValidators();for(var s=[],a=t.getValidators(),l=0;l<a.length;l++){var u=a[l];!r&&u.isValidateAllValues&&(r=t.getDataFilteredValues(),o=t.getDataFilteredProperties()),u.isAsync&&(this.asyncValidators.push(u),u.onAsyncCompleted=function(v){if(v&&v.error&&s.push(v.error),!!e.onAsyncCompleted){for(var V=0;V<e.asyncValidators.length;V++)if(e.asyncValidators[V].isRunning)return;e.onAsyncCompleted(s)}})}a=t.getValidators();for(var l=0;l<a.length;l++){var u=a[l],d=u.validate(t.validatedValue,t.getValidatorTitle(),r,o);d&&d.error&&n.push(d.error)}return this.asyncValidators.length==0&&this.onAsyncCompleted&&this.onAsyncCompleted([]),n},i.prototype.prepareAsyncValidators=function(){if(this.asyncValidators)for(var t=0;t<this.asyncValidators.length;t++)this.asyncValidators[t].onAsyncCompleted=null;this.asyncValidators=[]},i}(),Po=function(i){rt(t,i);function t(e,n){e===void 0&&(e=null),n===void 0&&(n=null);var r=i.call(this)||this;return r.minValue=e,r.maxValue=n,r}return t.prototype.getType=function(){return"numericvalidator"},t.prototype.validate=function(e,n,r,o){if(n===void 0&&(n=null),this.isValueEmpty(e))return null;if(!P.isNumber(e))return new Te(null,new mo(this.text,this.errorOwner));var s=new Te(P.getNumber(e));return this.minValue!==null&&this.minValue>s.value?(s.error=this.createCustomError(n),s):this.maxValue!==null&&this.maxValue<s.value?(s.error=this.createCustomError(n),s):typeof e=="number"?null:s},t.prototype.getDefaultErrorText=function(e){var n=e||this.getLocalizationString("value");return this.minValue!==null&&this.maxValue!==null?this.getLocalizationFormatString("numericMinMax",n,this.minValue,this.maxValue):this.minValue!==null?this.getLocalizationFormatString("numericMin",n,this.minValue):this.getLocalizationFormatString("numericMax",n,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}(it),Vo=function(i){rt(t,i);function t(){return i.call(this)||this}return t.prototype.getType=function(){return"textvalidator"},t.prototype.validate=function(e,n,r,o){if(n===void 0&&(n=null),this.isValueEmpty(e))return null;if(!this.allowDigits){var s=/\d+$/;if(s.test(e))return new Te(null,this.createCustomError("textNoDigitsAllow"))}return this.minLength>0&&e.length<this.minLength?new Te(null,this.createCustomError(n)):this.maxLength>0&&e.length>this.maxLength?new Te(null,this.createCustomError(n)):null},t.prototype.getDefaultErrorText=function(e){return e==="textNoDigitsAllow"?this.getLocalizationString(e):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}(it),wo=function(i){rt(t,i);function t(e,n){e===void 0&&(e=null),n===void 0&&(n=null);var r=i.call(this)||this;return r.minCount=e,r.maxCount=n,r}return t.prototype.getType=function(){return"answercountvalidator"},t.prototype.validate=function(e,n,r,o){if(e==null||e.constructor!=Array)return null;var s=e.length;return s==0?null:this.minCount&&s<this.minCount?new Te(null,this.createCustomError(this.getLocalizationFormatString("minSelectError",this.minCount))):this.maxCount&&s>this.maxCount?new Te(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}(it),xo=function(i){rt(t,i);function t(e){e===void 0&&(e=null);var n=i.call(this)||this;return n.regex=e,n}return t.prototype.getType=function(){return"regexvalidator"},t.prototype.validate=function(e,n,r,o){if(n===void 0&&(n=null),!this.regex||this.isValueEmpty(e))return null;var s=this.createRegExp();if(Array.isArray(e))for(var a=0;a<e.length;a++){var l=this.hasError(s,e[a],n);if(l)return l}return this.hasError(s,e,n)},t.prototype.hasError=function(e,n,r){return e.test(n)?null:new Te(n,this.createCustomError(r))},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,"caseInsensitive",{get:function(){return this.getPropertyValue("caseInsensitive")},set:function(e){this.setPropertyValue("caseInsensitive",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"insensitive",{get:function(){return this.caseInsensitive},set:function(e){this.caseInsensitive=e},enumerable:!1,configurable:!0}),t.prototype.createRegExp=function(){return new RegExp(this.regex,this.caseInsensitive?"i":"")},t}(it),ur=function(i){rt(t,i);function t(){var e=i.call(this)||this;return e.re=/^(([^<>()\[\]\.,;:\s@\"]+(\.[^<>()\[\]\.,;:\s@\"]+)*)|(\".+\"))@(([^<>()=[\]\.,;:\s@\"]+\.)+[^<>()=[\]\.,;:\s@\"]{2,})$/i,e}return t.prototype.getType=function(){return"emailvalidator"},t.prototype.validate=function(e,n,r,o){return n===void 0&&(n=null),!e||this.re.test(e)?null:new Te(e,this.createCustomError(n))},t.prototype.getDefaultErrorText=function(e){return this.getLocalizationString("invalidEmail")},t}(it),Oo=function(i){rt(t,i);function t(e){e===void 0&&(e=null);var n=i.call(this)||this;return n.conditionRunner=null,n.isRunningValue=!1,n.expression=e,n}return 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(!1)?this.conditionRunner.isAsync:!1},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isRunning",{get:function(){return this.isRunningValue},enumerable:!1,configurable:!0}),t.prototype.validate=function(e,n,r,o){var s=this;if(n===void 0&&(n=null),r===void 0&&(r=null),o===void 0&&(o=null),!this.expression)return null;this.conditionRunner&&(this.conditionRunner.onRunComplete=null),this.ensureConditionRunner(!0),this.conditionRunner.onRunComplete=function(l){s.isRunningValue=!1,s.onAsyncCompleted&&s.onAsyncCompleted(s.generateError(l,e,n))},this.isRunningValue=!0;var a=this.conditionRunner.run(r,o);return this.conditionRunner.isAsync?null:(this.isRunningValue=!1,this.generateError(a,e,n))},t.prototype.generateError=function(e,n,r){return e?null:new Te(n,this.createCustomError(r))},t.prototype.getDefaultErrorText=function(e){return this.getLocalizationFormatString("invalidExpression",this.expression)},t.prototype.ensureConditionRunner=function(e){return this.expression?(e||!this.conditionRunner?this.conditionRunner=new de(this.expression):this.conditionRunner.expression=this.expression,!0):!1},Object.defineProperty(t.prototype,"expression",{get:function(){return this.getPropertyValue("expression")},set:function(e){this.setPropertyValue("expression",e)},enumerable:!1,configurable:!0}),t}(it);x.addClass("surveyvalidator",[{name:"text",serializationProperty:"locText"}]),x.addClass("numericvalidator",["minValue:number","maxValue:number"],function(){return new Po},"surveyvalidator"),x.addClass("textvalidator",[{name:"minLength:number",default:0},{name:"maxLength:number",default:0},{name:"allowDigits:boolean",default:!0}],function(){return new Vo},"surveyvalidator"),x.addClass("answercountvalidator",["minCount:number","maxCount:number"],function(){return new wo},"surveyvalidator"),x.addClass("regexvalidator",["regex",{name:"caseInsensitive:boolean",alternativeName:"insensitive"}],function(){return new xo},"surveyvalidator"),x.addClass("emailvalidator",[],function(){return new ur},"surveyvalidator"),x.addClass("expressionvalidator",["expression:condition"],function(){return new Oo},"surveyvalidator");var So=function(){function i(t,e){this.name=t,this.widgetJson=e,this.htmlTemplate=e.htmlTemplate?e.htmlTemplate:""}return i.prototype.afterRender=function(t,e){var n=this;this.widgetJson.afterRender&&(t.localeChangedCallback=function(){n.widgetJson.willUnmount&&n.widgetJson.willUnmount(t,e),n.widgetJson.afterRender(t,e)},this.widgetJson.afterRender(t,e))},i.prototype.willUnmount=function(t,e){this.widgetJson.willUnmount&&this.widgetJson.willUnmount(t,e)},i.prototype.getDisplayValue=function(t,e){return e===void 0&&(e=void 0),this.widgetJson.getDisplayValue?this.widgetJson.getDisplayValue(t,e):null},i.prototype.validate=function(t){if(this.widgetJson.validate)return this.widgetJson.validate(t)},i.prototype.isFit=function(t){return this.isLibraryLoaded()&&this.widgetJson.isFit?this.widgetJson.isFit(t):!1},Object.defineProperty(i.prototype,"canShowInToolbox",{get:function(){return this.widgetJson.showInToolbox===!1||cr.Instance.getActivatedBy(this.name)!="customtype"?!1:!this.widgetJson.widgetIsLoaded||this.widgetJson.widgetIsLoaded()},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"showInToolbox",{get:function(){return this.widgetJson.showInToolbox!==!1},set:function(t){this.widgetJson.showInToolbox=t},enumerable:!1,configurable:!0}),i.prototype.init=function(){this.widgetJson.init&&this.widgetJson.init()},i.prototype.activatedByChanged=function(t){this.isLibraryLoaded()&&this.widgetJson.activatedByChanged&&this.widgetJson.activatedByChanged(t)},i.prototype.isLibraryLoaded=function(){return this.widgetJson.widgetIsLoaded?this.widgetJson.widgetIsLoaded()==!0:!0},Object.defineProperty(i.prototype,"isDefaultRender",{get:function(){return this.widgetJson.isDefaultRender},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"pdfQuestionType",{get:function(){return this.widgetJson.pdfQuestionType},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"pdfRender",{get:function(){return this.widgetJson.pdfRender},enumerable:!1,configurable:!0}),i}(),cr=function(){function i(){this.widgetsValues=[],this.widgetsActivatedBy={},this.onCustomWidgetAdded=new zn}return Object.defineProperty(i.prototype,"widgets",{get:function(){return this.widgetsValues},enumerable:!1,configurable:!0}),i.prototype.add=function(t,e){e===void 0&&(e="property"),this.addCustomWidget(t,e)},i.prototype.addCustomWidget=function(t,e){e===void 0&&(e="property");var n=t.name;n||(n="widget_"+this.widgets.length+1);var r=new So(n,t);return this.widgetsValues.push(r),r.init(),this.widgetsActivatedBy[n]=e,r.activatedByChanged(e),this.onCustomWidgetAdded.fire(r,null),r},i.prototype.getActivatedBy=function(t){var e=this.widgetsActivatedBy[t];return e||"property"},i.prototype.setActivatedBy=function(t,e){if(!(!t||!e)){var n=this.getCustomWidgetByName(t);n&&(this.widgetsActivatedBy[t]=e,n.activatedByChanged(e))}},i.prototype.clear=function(){this.widgetsValues=[]},i.prototype.getCustomWidgetByName=function(t){for(var e=0;e<this.widgets.length;e++)if(this.widgets[e].name==t)return this.widgets[e];return null},i.prototype.getCustomWidget=function(t){for(var e=0;e<this.widgetsValues.length;e++)if(this.widgetsValues[e].isFit(t))return this.widgetsValues[e];return null},i.Instance=new i,i}(),To=function(){function i(){this.renderersHash={},this.defaultHash={}}return i.prototype.unregisterRenderer=function(t,e){delete this.renderersHash[t][e],this.defaultHash[t]===e&&delete this.defaultHash[t]},i.prototype.registerRenderer=function(t,e,n,r){r===void 0&&(r=!1),this.renderersHash[t]||(this.renderersHash[t]={}),this.renderersHash[t][e]=n,r&&(this.defaultHash[t]=e)},i.prototype.getRenderer=function(t,e){var n=this.renderersHash[t];if(n){if(e&&n[e])return n[e];var r=this.defaultHash[t];if(r&&n[r])return n[r]}return"default"},i.prototype.getRendererByQuestion=function(t){return this.getRenderer(t.getType(),t.renderAs)},i.prototype.clear=function(){this.renderersHash={}},i.Instance=new i,i}(),ln=function(){function i(t){var e=this;this.options=t,this.onPropertyChangedCallback=function(){e.element&&(e.element.value=e.getTextValue(),e.updateElement())},this.question.registerFunctionOnPropertyValueChanged(this.options.propertyName,this.onPropertyChangedCallback,"__textarea")}return i.prototype.updateElement=function(){var t=this;this.element&&this.autoGrow&&setTimeout(function(){return or(t.element)},1)},i.prototype.setElement=function(t){t&&(this.element=t,this.updateElement())},i.prototype.resetElement=function(){this.element=void 0},i.prototype.getTextValue=function(){return this.options.getTextValue&&this.options.getTextValue()||""},i.prototype.onTextAreaChange=function(t){this.options.onTextAreaChange&&this.options.onTextAreaChange(t)},i.prototype.onTextAreaInput=function(t){this.options.onTextAreaInput&&this.options.onTextAreaInput(t),this.element&&this.autoGrow&&or(this.element)},i.prototype.onTextAreaKeyDown=function(t){this.options.onTextAreaKeyDown&&this.options.onTextAreaKeyDown(t)},i.prototype.onTextAreaBlur=function(t){this.onTextAreaChange(t),this.options.onTextAreaBlur&&this.options.onTextAreaBlur(t)},i.prototype.onTextAreaFocus=function(t){this.options.onTextAreaFocus&&this.options.onTextAreaFocus(t)},Object.defineProperty(i.prototype,"question",{get:function(){return this.options.question},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"id",{get:function(){return this.options.id()},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"placeholder",{get:function(){return this.options.placeholder()},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"className",{get:function(){return this.options.className()},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"maxLength",{get:function(){if(this.options.maxLength)return this.options.maxLength()},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"autoGrow",{get:function(){if(this.options.autoGrow)return this.options.autoGrow()},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"rows",{get:function(){if(this.options.rows)return this.options.rows()},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"cols",{get:function(){if(this.options.cols)return this.options.cols()},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"isDisabledAttr",{get:function(){return this.options.isDisabledAttr()},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"isReadOnlyAttr",{get:function(){if(this.options.isReadOnlyAttr)return this.options.isReadOnlyAttr()},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"ariaRequired",{get:function(){if(this.options.ariaRequired)return this.options.ariaRequired()},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"ariaLabel",{get:function(){if(this.options.ariaLabel)return this.options.ariaLabel()},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"ariaInvalid",{get:function(){if(this.options.ariaInvalid)return this.options.ariaInvalid()},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"ariaLabelledBy",{get:function(){if(this.options.ariaLabelledBy)return this.options.ariaLabelledBy()},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"ariaDescribedBy",{get:function(){if(this.options.ariaDescribedBy)return this.options.ariaDescribedBy()},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"ariaErrormessage",{get:function(){if(this.options.ariaErrormessage)return this.options.ariaErrormessage()},enumerable:!1,configurable:!0}),i.prototype.dispose=function(){this.question&&this.question.unRegisterFunctionOnPropertyValueChanged(this.options.propertyName,"__textarea"),this.resetElement()},i}(),Tu=function(){var i=function(t,e){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(n[o]=r[o])},i(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");i(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),vt=function(i,t,e,n){var r=arguments.length,o=r<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,e):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(i,t,e,n);else for(var a=i.length-1;a>=0;a--)(s=i[a])&&(o=(r<3?s(o):r>3?s(t,e,o):s(t,e))||o);return r>3&&o&&Object.defineProperty(t,e,o),o},Ru=function(){function i(t,e,n){this.name=t,this.canRun=e,this.doComplete=n,this.runSecondCheck=function(r){return!1}}return i}(),ue=function(i){Tu(t,i);function t(e){var n=i.call(this,e)||this;n.customWidgetData={isNeedRender:!0},n.hasCssErrorCallback=function(){return!1},n.isReadyValue=!0,n.dependedQuestions=[],n.onReadyChanged=n.addEvent(),n.triggersInfo=[],n.isRunningValidatorsValue=!1,n.isValueChangedInSurvey=!1,n.allowNotifyValueChanged=!0,n.id=t.getQuestionId(),n.onCreating(),n.createNewArray("validators",function(o){o.errorOwner=n}),n.addExpressionProperty("visibleIf",function(o,s){n.visible=s===!0}),n.addExpressionProperty("enableIf",function(o,s){n.readOnly=s===!1}),n.addExpressionProperty("requiredIf",function(o,s){n.isRequired=s===!0}),n.createLocalizableString("commentText",n,!0,"otherItemText"),n.createLocalizableString("requiredErrorText",n),n.addTriggerInfo("resetValueIf",function(){return!n.isEmpty()},function(){n.startSetValueOnExpression(),n.clearValue(),n.updateValueWithDefaults(),n.finishSetValueOnExpression()});var r=n.addTriggerInfo("setValueIf",function(){return!0},function(){return n.runSetValueExpression()});return r.runSecondCheck=function(o){return n.checkExpressionIf(o)},n.registerPropertyChangedHandlers(["width"],function(){n.updateQuestionCss(),n.parent&&n.parent.elementWidthChanged(n)}),n.registerPropertyChangedHandlers(["isRequired"],function(){!n.isRequired&&n.errors.length>0&&n.validate(),n.locTitle.strChanged(),n.clearCssClasses()}),n.registerPropertyChangedHandlers(["indent","rightIndent"],function(){n.resetIndents()}),n.registerPropertyChangedHandlers(["showCommentArea","showOtherItem"],function(){n.initCommentFromSurvey()}),n.registerFunctionOnPropertiesValueChanged(["no","readOnly","hasVisibleErrors","containsErrors"],function(){n.updateQuestionCss()}),n.registerPropertyChangedHandlers(["_isMobile"],function(){n.onMobileChanged()}),n.registerPropertyChangedHandlers(["colSpan"],function(){var o;(o=n.parent)===null||o===void 0||o.updateColumns()}),n}return t.getQuestionId=function(){return"sq_"+t.questionCounter++},t.prototype.isReadOnlyRenderDiv=function(){return this.isReadOnly&&b.readOnly.commentRenderMode==="div"},t.prototype.allowMobileInDesignMode=function(){return!1},t.prototype.updateIsMobileFromSurvey=function(){this.setIsMobile(this.survey._isMobile)},t.prototype.setIsMobile=function(e){var n=e&&(this.allowMobileInDesignMode()||!this.isDesignMode);this.isMobile=n},t.prototype.getIsMobile=function(){return this._isMobile},Object.defineProperty(t.prototype,"isMobile",{get:function(){return this.getIsMobile()},set:function(e){this._isMobile=e},enumerable:!1,configurable:!0}),t.prototype.themeChanged=function(e){},t.prototype.getDefaultTitle=function(){return this.name},t.prototype.createLocTitleProperty=function(){var e=this,n=i.prototype.createLocTitleProperty.call(this);return n.storeDefaultText=!0,n.onGetTextCallback=function(r){return r||(r=e.getDefaultTitle()),e.survey?e.survey.getUpdatedQuestionTitle(e,r):r},this.locProcessedTitle=new Se(this,!0),this.locProcessedTitle.sharedData=n,n},Object.defineProperty(t.prototype,"commentTextAreaModel",{get:function(){return this.commentTextAreaModelValue||(this.commentTextAreaModelValue=new ln(this.getCommentTextAreaOptions())),this.commentTextAreaModelValue},enumerable:!1,configurable:!0}),t.prototype.getCommentTextAreaOptions=function(){var e=this,n={question:this,id:function(){return e.commentId},propertyName:"comment",className:function(){return e.cssClasses.comment},placeholder:function(){return e.renderedCommentPlaceholder},isDisabledAttr:function(){return e.isInputReadOnly||!1},rows:function(){return e.commentAreaRows},autoGrow:function(){return e.autoGrowComment},maxLength:function(){return e.getOthersMaxLength()},ariaRequired:function(){return e.a11y_input_ariaRequired},ariaLabel:function(){return e.a11y_input_ariaLabel},getTextValue:function(){return e.comment},onTextAreaChange:function(r){e.onCommentChange(r)},onTextAreaInput:function(r){e.onCommentInput(r)}};return n},t.prototype.getSurvey=function(e){return e===void 0&&(e=!1),e?this.parent?this.parent.getSurvey(e):null:this.onGetSurvey?this.onGetSurvey():i.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 n=this.getValueName();this.setPropertyValue("valueName",e),this.onValueNameChanged(n)},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 n=this.getIsReadyDependsOn(),r=0;r<n.length;r++)if(!n[r].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 n=0;n<e.length;n++)if(!e[n].isReady)return!1;return!0},t.prototype.getIsReadyNestedQuestions=function(){return this.getNestedQuestions()},t.prototype.setIsReady=function(e){var n=this.isReadyValue;this.isReadyValue=e,n!=e&&(this.getIsReadyDependends().forEach(function(r){return r.updateIsReady()}),this.onReadyChanged.fire(this,{question:this,isReady:e,oldIsReady:n}))},t.prototype.getIsReadyDependsOn=function(){return this.getIsReadyDependendCore(!0)},t.prototype.getIsReadyDependends=function(){return this.getIsReadyDependendCore(!1)},t.prototype.getIsReadyDependendCore=function(e){var n=this;if(!this.survey)return[];var r=this.survey.questionsByValueName(this.getValueName()),o=new Array;return r.forEach(function(s){s!==n&&o.push(s)}),e||(this.parentQuestion&&o.push(this.parentQuestion),this.dependedQuestions.length>0&&this.dependedQuestions.forEach(function(s){return o.push(s)})),o},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){e===void 0&&(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 n=this.dependedQuestions.indexOf(e);n>-1&&this.dependedQuestions.splice(n,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 this.getLayoutType()==="flow"},enumerable:!1,configurable:!0}),t.prototype.getLayoutType=function(){return this.parent?this.parent.getChildrenLayoutType():"row"},t.prototype.isLayoutTypeSupported=function(e){return e!=="flow"},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(e){i.prototype.notifyStateChanged.call(this,e),this.isCollapsed&&this.onHidingContent()},t.prototype.updateElementVisibility=function(){this.updateIsVisibleProp()},t.prototype.updateIsVisibleProp=function(){var e=this.getPropertyValue("isVisible"),n=this.isVisible;e!==n&&(this.setPropertyValue("isVisible",n),n||this.onHidingContent()),n!==this.visible&&this.areInvisibleElementsShowing&&this.updateQuestionCss(!0)},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()?!1:this.areInvisibleElementsShowing?!0: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,n){return n===void 0&&(n=null),this.moveToBase(this.parent,e,n)},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}:i.prototype.getProgressInfo.call(this)},t.prototype.ensureSetValueExpressionRunner=function(){var e=this;this.setValueExpressionRunner?this.setValueExpressionRunner.expression=this.setValueExpression:(this.setValueExpressionRunner=new et(this.setValueExpression),this.setValueExpressionRunner.onRunComplete=function(n){e.runExpressionSetValue(n)})},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?this.canExecuteTriggerByKeys(e,this.setValueExpressionRunner):!1},t.prototype.addTriggerInfo=function(e,n,r){var o=new Ru(e,n,r);return this.triggersInfo.push(o),o},t.prototype.runTriggerInfo=function(e,n){var r=this[e.name];if(!r||e.isRunning||!e.canRun()){e.runSecondCheck(n)&&e.doComplete();return}e.runner?e.runner.expression=r:(e.runner=new et(r),e.runner.onRunComplete=function(o){o===!0&&e.doComplete(),e.isRunning=!1}),!(!this.canExecuteTriggerByKeys(n,e.runner)&&!e.runSecondCheck(n))&&(e.isRunning=!0,e.runner.run(this.getDataFilteredValues(),this.getDataFilteredProperties()))},t.prototype.canExecuteTriggerByKeys=function(e,n){var r=n.getVariables();return(!r||r.length===0)&&n.hasFunction()?!0:new me().isAnyKeyChanged(e,r)},t.prototype.runTriggers=function(e,n,r){var o=this;this.isSettingQuestionValue||this.parentQuestion&&this.parentQuestion.getValueName()===e||(r||(r={},r[e]=n),this.triggersInfo.forEach(function(s){o.runTriggerInfo(s,r)}))},t.prototype.runConditions=function(){this.data&&!this.isLoadingFromJson&&(this.isDesignMode||this.runCondition(this.getDataFilteredValues(),this.getDataFilteredProperties()),this.locStrsChanged())},t.prototype.setSurveyImpl=function(e,n){i.prototype.setSurveyImpl.call(this,e),this.survey&&(this.survey.questionCreated(this),n!==!0&&this.runConditions(),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),e&&this.updateQuestionCss(),this.onParentChanged())},enumerable:!1,configurable:!0}),t.prototype.onParentChanged=function(){},Object.defineProperty(t.prototype,"hasTitle",{get:function(){return this.getTitleLocation()!=="hidden"},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"titleLocation",{get:function(){return this.getPropertyValue("titleLocation")},set:function(e){var n=this.titleLocation=="hidden"||e=="hidden";this.setPropertyValue("titleLocation",e.toLowerCase()),this.updateQuestionCss(),n&&this.notifySurveyVisibilityChanged()},enumerable:!1,configurable:!0}),t.prototype.getTitleOwner=function(){return this},t.prototype.getIsTitleRenderedAsString=function(){return this.titleLocation==="hidden"},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(this.parent&&this.getTitleLocation()==="left"){var e=this.parent.getColumsForElement(this),n=e.length;if(n!==0&&e[0].questionTitleWidth)return e[0].questionTitleWidth;var r=this.getPercentQuestionTitleWidth();if(!r&&this.parent){var o=this.parent.getQuestionTitleWidth();return o&&!isNaN(o)&&(o=o+"px"),o}return r/(n||1)+"%"}},enumerable:!1,configurable:!0}),t.prototype.getPercentQuestionTitleWidth=function(){var e=!!this.parent&&this.parent.getQuestionTitleWidth();if(e&&e[e.length-1]==="%")return parseInt(e)},t.prototype.getTitleLocation=function(){if(this.isFlowLayout)return"hidden";var e=this.getTitleLocationCore();return e==="left"&&!this.isAllowTitleLeft&&(e="top"),e},t.prototype.getTitleLocationCore=function(){return this.titleLocation!=="default"?this.titleLocation:this.parent?this.parent.getQuestionTitleLocation():this.survey?this.survey.questionTitleLocation:"top"},Object.defineProperty(t.prototype,"hasTitleOnLeft",{get:function(){return this.hasTitle&&this.getTitleLocation()==="left"},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hasTitleOnTop",{get:function(){return this.hasTitle&&this.getTitleLocation()==="top"},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hasTitleOnBottom",{get:function(){return this.hasTitle&&this.getTitleLocation()==="bottom"},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hasTitleOnLeftTop",{get:function(){if(!this.hasTitle)return!1;var e=this.getTitleLocation();return e==="left"||e==="top"},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 this.errorLocation!=="default"?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 b.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 this.getDescriptionLocation()=="underTitle"&&this.hasDescription},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hasDescriptionUnderInput",{get:function(){return this.getDescriptionLocation()=="underInput"&&this.hasDescription},enumerable:!1,configurable:!0}),t.prototype.getDescriptionLocation=function(){return this.descriptionLocation!=="default"?this.descriptionLocation:this.survey?this.survey.questionDescriptionLocation:"underTitle"},t.prototype.needClickTitleFunction=function(){return i.prototype.needClickTitleFunction.call(this)||this.hasInput},t.prototype.processTitleClick=function(){var e=this;if(i.prototype.processTitleClick.call(this),!this.isCollapsed)return setTimeout(function(){e.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(){var e=this,n=function(){return e.isReadOnly?void 0:e.commentPlaceHolder};return this.getPropertyValue("renderedCommentPlaceholder",void 0,n)},enumerable:!1,configurable:!0}),t.prototype.resetRenderedCommentPlaceholder=function(){this.resetPropertyValue("renderedCommentPlaceholder")},t.prototype.getAllErrors=function(){return this.errors.slice()},t.prototype.getErrorByType=function(e){for(var n=0;n<this.errors.length;n++)if(this.errors[n].getErrorType()===e)return this.errors[n];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=cr.Instance.getCustomWidget(this)},t.prototype.localeChanged=function(){i.prototype.localeChanged.call(this),this.resetRenderedCommentPlaceholder(),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(){},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 n=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(r){var o=b.environment.root,s=o.getElementById(r);s&&n.commentElements.push(s)}),this.updateCommentElements()),this.checkForResponsiveness(e))},t.prototype.afterRenderCore=function(e){i.prototype.afterRenderCore.call(this,e)},t.prototype.getCommentElementsId=function(){return[this.commentId]},t.prototype.beforeDestroyQuestionElement=function(e){this.commentElements=void 0},Object.defineProperty(t.prototype,"processedTitle",{get:function(){var e=this.locProcessedTitle.textOrHtml;return e||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&&this.titlePattern=="requireNumTitle"},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isRequireTextBeforeTitle",{get:function(){return this.isRequired&&this.titlePattern=="numRequireTitle"&&this.requiredText!==""},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isRequireTextAfterTitle",{get:function(){return this.isRequired&&this.titlePattern=="numTitleRequire"&&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 n={error:{}};return this.copyCssClasses(n,e.question),this.copyCssClasses(n.error,e.error),this.updateCssClasses(n,e),n},t.prototype.onCalcCssClasses=function(e){i.prototype.onCalcCssClasses.call(this,e),this.survey&&this.survey.updateQuestionCssClasses(this,e),this.onUpdateCssClassesCallback&&this.onUpdateCssClassesCallback(e)},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(e){var n=this.hasCssError();return new O().append(i.prototype.getCssRoot.call(this,e)).append(this.isFlowLayout&&!this.isDesignMode?e.flowRoot:e.mainRoot).append(e.titleLeftRoot,!this.isFlowLayout&&this.hasTitleOnLeft).append(e.titleTopRoot,!this.isFlowLayout&&this.hasTitleOnTop).append(e.titleBottomRoot,!this.isFlowLayout&&this.hasTitleOnBottom).append(e.descriptionUnderInputRoot,!this.isFlowLayout&&this.hasDescriptionUnderInput).append(e.hasError,n).append(e.hasErrorTop,n&&this.getErrorLocation()=="top").append(e.hasErrorBottom,n&&this.getErrorLocation()=="bottom").append(e.small,!this.width).append(e.answered,this.isAnswered).append(e.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 O().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 O().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(e){return new O().append(i.prototype.getCssTitle.call(this,e)).append(e.titleOnAnswer,!this.containsErrors&&this.isAnswered).append(e.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 O().append(e.description).append(e.descriptionUnderInput,this.getDescriptionLocation()=="underInput").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&&this.getErrorLocation()==="top"},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"showErrorsBelowQuestion",{get:function(){return this.showErrorsOutsideQuestion&&this.getErrorLocation()==="bottom"},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 O().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 O().append(this.cssRoot).append(this.cssClasses.mobile,this.isMobile).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 O().append(this.cssClasses.root).append(this.cssClasses.rootMobile,this.isMobile).toString()},t.prototype.updateElementCss=function(e){this.wasRendered?(i.prototype.updateElementCss.call(this,e),e&&this.updateQuestionCss(!0)):this.isRequireUpdateElements=!0,this.resetIndents()},t.prototype.onFirstRenderingCore=function(){this.isRequireUpdateElements&&(this.isRequireUpdateElements=!1,this.updateElementCss(!0)),i.prototype.onFirstRenderingCore.call(this)},t.prototype.updateQuestionCss=function(e){this.isLoadingFromJson||!this.survey||(this.wasRendered?this.updateElementCssCore(this.cssClasses):this.isRequireUpdateElements=!0)},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,n){if(n.question){var r=n[this.getCssType()],o=new O().append(e.title).append(n.question.titleRequired,this.isRequired);e.title=o.toString();var s=new O().append(e.root).append(r,this.isRequired&&!!n.question.required);if(r==null)e.root=s.toString();else if(typeof r=="string"||r instanceof String)e.root=s.append(r.toString()).toString();else{e.root=s.toString();for(var a in r)e[a]=r[a]}}},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.calcPaddingLeft=function(){return this.getIndentSize(this.indent)},t.prototype.calcPaddingRight=function(){return 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,n){var r=this;if(e===void 0&&(e=!1),!(this.isDesignMode||!this.isVisible||!this.survey)){var o=this.page,s=!!o&&this.survey.activePage!==o;if(s)this.survey.focusQuestionByInstance(this,e);else if(this.survey){this.expandAllParents();var a=this.survey.isSmoothScrollEnabled?{behavior:"smooth"}:void 0;this.survey.scrollElementToTop(this,this,null,this.id,n,a,void 0,function(){r.focusInputElement(e)})}else this.focusInputElement(e)}},t.prototype.focusInputElement=function(e){var n,r=e?this.getFirstErrorInputElementId():this.getFirstInputElementId(),o=(n=this.survey)===null||n===void 0?void 0:n.rootElement;le.FocusElement(r,!1,o)&&this.fireCallback(this.focusCallback)},Object.defineProperty(t.prototype,"isValidateVisitedEmptyFields",{get:function(){return this.supportEmptyValidation()&&!!this.survey&&this.survey.getValidateVisitedEmptyFields()&&this.isEmpty()},enumerable:!1,configurable:!0}),t.prototype.supportEmptyValidation=function(){return!1},t.prototype.onBlur=function(e){this.onBlurCore(e)},t.prototype.onFocus=function(e){this.onFocusCore(e)},t.prototype.onBlurCore=function(e){this.isFocusEmpty&&this.isEmpty()&&this.validate(!0)},t.prototype.onFocusCore=function(e){this.isFocusEmpty=this.isValidateVisitedEmptyFields},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=Object.keys(t.TextPreprocessorValuesMap).indexOf(n)!==-1||this[e.name]!==void 0,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,n=!!this.parentQuestion&&this.parentQuestion.isReadOnly,r=!!this.survey&&this.survey.isDisplayMode,o=!!this.readOnlyCallback&&this.readOnlyCallback();return this.readOnly||e||r||n||o},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isInputReadOnly",{get:function(){return this.forceIsInputReadOnly!==void 0?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||!!this.readOnlyCallback&&this.readOnlyCallback()},enumerable:!1,configurable:!0}),t.prototype.onReadOnlyChanged=function(){this.setPropertyValue("isInputReadOnly",this.isInputReadOnly),i.prototype.onReadOnlyChanged.call(this),this.isReadOnly&&this.clearErrors(),this.updateQuestionCss(),this.resetRenderedCommentPlaceholder()},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,n){this.isDesignMode||(n||(n={}),n.question=this,this.runConditionCore(e,n),!this.isValueChangedDirectly&&(!this.isClearValueOnHidden||this.isVisibleInSurvey)&&(this.defaultValueRunner=this.getDefaultRunner(this.defaultValueRunner,this.defaultValueExpression),this.runDefaultValueExpression(this.defaultValueRunner,e,n)))},Object.defineProperty(t.prototype,"isInDesignMode",{get:function(){return!this.isContentElement&&this.isDesignMode},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isInDesignModeV2",{get:function(){return!this.isContentElement&&this.isDesignModeV2},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"no",{get:function(){return this.getPropertyValue("no")},enumerable:!1,configurable:!0}),t.prototype.calcNo=function(){var e;if(!this.hasTitle||this.hideNumber)return"";var n=(e=this.parent)===null||e===void 0?void 0:e.visibleIndex,r=P.getNumberByIndex(this.visibleIndex,this.getStartIndex(),n);return this.survey&&(r=this.survey.getUpdatedQuestionNo(this,r)),r},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()},t.prototype.onSetData=function(){i.prototype.onSetData.call(this),!this.isDesignMode&&this.survey&&!this.isLoadingFromJson&&(this.initDataFromSurvey(),this.onSurveyValueChanged(this.value),this.updateValueWithDefaults(),this.updateIsAnswered())},t.prototype.initDataFromSurvey=function(){if(this.data){var e=this.data.getValue(this.getValueName());(!P.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.valueForSurveyCore(this.value)},enumerable:!1,configurable:!0}),t.prototype.valueForSurveyCore=function(e){return this.valueToDataCallback?this.valueToDataCallback(e):e},t.prototype.valueFromDataCore=function(e){return this.valueFromDataCallback?this.valueFromDataCallback(e):e},t.prototype.clearValue=function(e){this.value!==void 0&&(this.value=void 0),this.comment&&e!==!0&&(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:P.getUnbindValue(e)},t.prototype.isValueSurveyElement=function(e){return e?Array.isArray(e)?e.length>0?this.isValueSurveyElement(e[0]):!1:!!e.getType&&!!e.onPropertyChanged:!1},t.prototype.canClearValueAsInvisible=function(e){return e==="onHiddenContainer"&&!this.isParentVisible?!0:this.isVisibleInSurvey||this.page&&this.page.isStartPage?!1:this.survey?!this.survey.hasVisibleQuestionByValueName(this.getValueName()):!0},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){e===void 0&&(e="onHidden");var n=this.getClearIfInvisible();n!=="none"&&(e==="onHidden"&&n==="onComplete"||e==="onHiddenContainer"&&n!==e||this.clearValueIfInvisibleCore(e))},t.prototype.clearValueIfInvisibleCore=function(e){this.canClearValueAsInvisible(e)&&this.clearValue()},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):e!=="default"?e:"onComplete"},Object.defineProperty(t.prototype,"displayValue",{get:function(){return this.isLoadingFromJson?"":this.getDisplayValue(!0)},enumerable:!1,configurable:!0}),t.prototype.getDisplayValue=function(e,n){n===void 0&&(n=void 0);var r=this.calcDisplayValue(e,n);return this.survey&&(r=this.survey.getQuestionDisplayValue(this,r)),this.displayValueCallback?this.displayValueCallback(r):r},t.prototype.calcDisplayValue=function(e,n){if(n===void 0&&(n=void 0),this.customWidget){var r=this.customWidget.getDisplayValue(this,n);if(r)return r}return n=n??this.createValueCopy(),this.isValueEmpty(n,!this.allowSpaceAsAnswer)?this.getDisplayValueEmpty():this.getDisplayValueCore(e,n)},t.prototype.getDisplayValueCore=function(e,n){return n},t.prototype.getDisplayValueEmpty=function(){return""},Object.defineProperty(t.prototype,"defaultValue",{get:function(){return this.getPropertyValue("defaultValue")},set:function(e){if(this.isValueExpression(e)){this.defaultValueExpression=e.substring(1);return}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 n=this;if(e||(e={includeEmpty:!0,includeQuestionTypes:!1}),e.includeEmpty||!this.isEmpty()){var r={name:this.name,title:this.locTitle.renderedHtml,value:this.value,displayValue:this.displayValue,isNode:!1,getString:function(o){return typeof o=="object"?JSON.stringify(o):o}};return e.includeQuestionTypes===!0&&(r.questionType=this.getType()),(e.calculations||[]).forEach(function(o){r[o.propertyName]=n.getPlainDataCalculatedValue(o.propertyName)}),this.hasComment&&(r.isNode=!0,r.data=[{name:0,isComment:!0,title:"Comment",value:b.commentSuffix,displayValue:this.comment,getString:function(o){return typeof o=="object"?JSON.stringify(o):o},isNode:!1}]),r}},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)?this.getCorrectAnswerCount():0},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=P.isTwoValueEquals(this.value,this.correctAnswer,this.getAnswerCorrectIgnoreOrder(),b.comparator.caseSensitive,!0),n=e?1:0,r=this.quizQuestionCount-n,o={result:e,correctAnswers:n,correctAnswerCount:n,incorrectAnswers:r,incorrectAnswerCount:r};return this.survey&&this.survey.onCorrectQuestionAnswer(this,o),o.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 e==="none"||e==="onComplete"?!1:e==="onHidden"||e==="onHiddenContainer"},enumerable:!1,configurable:!0}),t.prototype.getQuestionFromArray=function(e,n){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,n){return!e&&n&&(e=this.createExpressionRunner(n)),e&&(e.expression=n),e},t.prototype.setDefaultValue=function(){var e=this;this.setDefaultValueCore(function(n){e.isTwoValueEquals(e.value,n)||(e.value=n)})},t.prototype.setDefaultValueCore=function(e){this.defaultValueRunner=this.getDefaultRunner(this.defaultValueRunner,this.defaultValueExpression),this.setValueAndRunExpression(this.defaultValueRunner,this.getUnbindValue(this.defaultValue),function(n){return e(n)})},t.prototype.isValueExpression=function(e){return!!e&&typeof e=="string"&&e.length>0&&e[0]=="="},t.prototype.setValueAndRunExpression=function(e,n,r,o,s){var a=this;o===void 0&&(o=null),s===void 0&&(s=null);var l=function(u){a.runExpressionSetValueCore(u,r)};this.runDefaultValueExpression(e,o,s,l)||l(n)},t.prototype.convertFuncValuetoQuestionValue=function(e){return P.convertValToQuestionVal(e)},t.prototype.runExpressionSetValueCore=function(e,n){n(this.convertFuncValuetoQuestionValue(e))},t.prototype.runExpressionSetValue=function(e){var n=this;this.runExpressionSetValueCore(e,function(r){n.isTwoValueEquals(n.value,r)||(n.startSetValueOnExpression(),n.value=r,n.finishSetValueOnExpression())})},t.prototype.startSetValueOnExpression=function(){var e;(e=this.survey)===null||e===void 0||e.startSetValueOnExpression()},t.prototype.finishSetValueOnExpression=function(){var e;(e=this.survey)===null||e===void 0||e.finishSetValueOnExpression()},t.prototype.runDefaultValueExpression=function(e,n,r,o){var s=this;return n===void 0&&(n=null),r===void 0&&(r=null),!e||!this.data?!1:(o||(o=function(a){s.runExpressionSetValue(a)}),n||(n=this.defaultValueExpression?this.data.getFilteredValues():{}),r||(r=this.defaultValueExpression?this.data.getFilteredProperties():{}),e&&e.canRun&&(e.onRunComplete=function(a){a==null&&(a=s.defaultValue),s.isChangingViaDefaultValue=!0,o(a),s.isChangingViaDefaultValue=!1},e.run(n,r)),!0)},Object.defineProperty(t.prototype,"comment",{get:function(){return this.getQuestionComment()},set:function(e){if(e){var n=e.toString().trim();n!==e&&(e=n,e===this.comment&&this.setPropertyValueDirectly("comment",e))}this.comment!=e&&(this.setQuestionComment(e),this.updateCommentElements())},enumerable:!1,configurable:!0}),t.prototype.getCommentAreaCss=function(e){return e===void 0&&(e=!1),new O().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")||!1},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=[],n=this.getType();n;){var r=b.supportedValidators[n];if(r)for(var o=r.length-1;o>=0;o--)e.splice(0,0,r[o]);var s=x.findClass(n);n=s.parentName}return e},t.prototype.addConditionObjectsByContext=function(e,n){e.push({name:this.getFilteredName(),text:this.processedTitle,question:this})},t.prototype.getNestedQuestions=function(e){e===void 0&&(e=!1);var n=[];return this.collectNestedQuestions(n,e),n.length===1&&n[0]===this?[]:n},t.prototype.collectNestedQuestions=function(e,n){n===void 0&&(n=!1),!(n&&!this.isVisible)&&this.collectNestedQuestionsCore(e,n)},t.prototype.collectNestedQuestionsCore=function(e,n){e.push(this)},t.prototype.getConditionJson=function(e,n){var r=new fe().toJsonObject(this);return r.type=this.getType(),r},t.prototype.hasErrors=function(e,n){e===void 0&&(e=!0),n===void 0&&(n=null);var r=this.checkForErrors(!!n&&n.isOnValueChanged===!0,e);return e&&(this.survey&&this.survey.beforeSettingQuestionErrors(this,r),this.errors=r,this.errors!==r&&this.errors.forEach(function(o){return o.locText.strChanged()})),this.updateContainsErrors(),this.isCollapsed&&n&&e&&r.length>0&&this.expand(),r.length>0},t.prototype.validate=function(e,n){return e===void 0&&(e=!0),n===void 0&&(n=null),n&&n.isOnValueChanged&&this.parent&&this.parent.validateContainerOnly(),!this.hasErrors(e,n)},Object.defineProperty(t.prototype,"currentErrorCount",{get:function(){return this.errors.length},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"requiredText",{get:function(){return this.survey!=null&&this.isRequired?this.survey.requiredText:""},enumerable:!1,configurable:!0}),t.prototype.addError=function(e){if(e){var n=null;typeof e=="string"||e instanceof String?n=this.addCustomError(e):n=e,this.errors.push(n)}},t.prototype.addCustomError=function(e){return new we(e,this.survey)},t.prototype.removeError=function(e){if(!e)return!1;var n=this.errors,r=n.indexOf(e);return r!==-1&&n.splice(r,1),r!==-1},t.prototype.checkForErrors=function(e,n){var r=new Array;return this.isVisible&&this.canCollectErrors()&&this.collectErrors(r,e,n),r},t.prototype.canCollectErrors=function(){return!this.isReadOnly||b.readOnly.enableValidation},t.prototype.collectErrors=function(e,n,r){if(this.onCheckForErrors(e,n,r),!(e.length>0||!this.canRunValidators(n))){var o=this.runValidators();if(o.length>0){e.length=0;for(var s=0;s<o.length;s++)e.push(o[s])}if(this.survey&&e.length==0){var a=this.fireSurveyValidation();a&&e.push(a)}}},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,n,r){var o=this;if((!n||this.isOldAnswered)&&this.hasRequiredError()){var s=new go(this.requiredErrorText,this);s.onUpdateErrorTextCallback=function(l){l.text=o.requiredErrorText},e.push(s)}if(!this.isEmpty()&&this.customWidget){var a=this.customWidget.validate(this);a&&e.push(this.addCustomError(a))}},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 Co,this.isRunningValidatorsValue=!0,this.validatorRunner.onAsyncCompleted=function(n){e.doOnAsyncCompleted(n)},this.validatorRunner.run(this)},t.prototype.doOnAsyncCompleted=function(e){for(var n=0;n<e.length;n++)this.errors.push(e[n]);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,this.parent&&this.parent.onQuestionValueChanged(this))},t.prototype.checkIsValueCorrect=function(e){var n=this.isValueEmpty(e,!this.allowSpaceAsAnswer)||this.isNewValueCorrect(e);return n||Fe.inCorrectQuestionValue(this.name,e),n},t.prototype.isNewValueCorrect=function(e){return!0},t.prototype.isNewValueEqualsToValue=function(e){var n=this.value;if(!this.isTwoValueEquals(e,n,!1,!1))return!1;var r=e===n&&!!n&&(Array.isArray(n)||typeof n=="object");return!r},t.prototype.isTextValue=function(){return!1},t.prototype.getIsInputTextUpdate=function(){return this.survey?this.survey.isUpdateValueTextOnTyping:!1},Object.defineProperty(t.prototype,"requireStrictCompare",{get:function(){return!1},enumerable:!1,configurable:!0}),t.prototype.getDataLocNotification=function(){return this.isInputTextUpdate?"text":!1},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),this.data!=null&&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){this.data!=null&&this.data.setComment(this.getValueName(),e,this.getIsInputTextUpdate()?"text":!1)},t.prototype.getValidName=function(e){return fr(e)},t.prototype.updateValueFromSurvey=function(e,n){var r=this;if(n===void 0&&(n=!1),e=this.getUnbindValue(e),e=this.valueFromDataCore(e),!!this.checkIsValueCorrect(e)){var o=this.isValueEmpty(e);!o&&this.defaultValueExpression?this.setDefaultValueCore(function(s){r.updateValueFromSurveyCore(e,r.isTwoValueEquals(e,s))}):(this.updateValueFromSurveyCore(e,this.data!==this.getSurvey()),n&&o&&(this.isValueChangedDirectly=!1)),this.updateDependedQuestions(),this.updateIsAnswered()}},t.prototype.updateValueFromSurveyCore=function(e,n){this.isChangingViaDefaultValue=n,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,n){n===void 0&&(n=!0),e=this.convertToCorrectValue(e);var r=this.isTwoValueEquals(this.questionValue,e);!r&&!this.isChangingViaDefaultValue&&!this.isParentChangingViaDefaultValue&&this.setValueChangedDirectly(!0),this.questionValue=e,r||this.onChangeQuestionValue(e),!r&&this.allowNotifyValueChanged&&this.fireCallback(this.valueChangedCallback),n&&this.updateIsAnswered()},Object.defineProperty(t.prototype,"isParentChangingViaDefaultValue",{get:function(){var e;return((e=this.data)===null||e===void 0?void 0:e.isChangingViaDefaultValue)===!0},enumerable:!1,configurable:!0}),t.prototype.onSurveyValueChanged=function(e){},t.prototype.setVisibleIndex=function(e){return(!this.isVisible||!this.hasTitle&&!b.numbering.includeQuestionsWithHiddenTitle||this.hideNumber&&!b.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,n){},t.prototype.checkBindings=function(e,n){if(!(this.bindings.isEmpty()||!this.data))for(var r=this.bindings.getPropertiesByValueName(e),o=0;o<r.length;o++){var s=r[o];this.isValueEmpty(n)&&P.isNumber(this[s])&&(n=0),this.updateBindingProp(s,n)}},t.prototype.updateBindingProp=function(e,n){this[e]=n},t.prototype.getComponentName=function(){return To.Instance.getRendererByQuestion(this)},t.prototype.isDefaultRendering=function(){return!!this.customWidget||this.getComponentName()==="default"},t.prototype.getErrorCustomText=function(e,n){return this.survey?this.survey.getSurveyErrorCustomText(this,e,n):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,n){this.survey.processPopupVisiblityChanged(this,e,n)},t.prototype.processOpenDropdownMenu=function(e){this.survey.processOpenDropdownMenu(this,e)},t.prototype.onTextKeyDownHandler=function(e){e.keyCode===13&&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 n=this;if(this.needResponsiveness())if(this.isCollapsed){var r=function(){n.isExpanded&&(n.initResponsiveness(e),n.unregisterPropertyChangedHandlers(["state"],"for-responsiveness"))};this.registerPropertyChangedHandlers(["state"],r,"for-responsiveness")}else this.initResponsiveness(e)},t.prototype.getObservedElementSelector=function(){return".sd-scrollable-container"},t.prototype.onMobileChanged=function(){this.onMobileChangedCallback&&this.onMobileChangedCallback()},t.prototype.triggerResponsiveness=function(e){e===void 0&&(e=!0),this.triggerResponsivenessCallback&&this.triggerResponsivenessCallback(e)},t.prototype.initResponsiveness=function(e){var n=this;if(this.destroyResizeObserver(),e&&this.isDefaultRendering()){var r=this.getObservedElementSelector();if(!r)return;var o=e.querySelector(r);if(!o)return;var s=!1,a=void 0;this.triggerResponsivenessCallback=function(l){l&&(a=void 0,n.renderAs="default",s=!1);var u=function(){var d=e.querySelector(r);!a&&n.isDefaultRendering()&&(a=d.scrollWidth),s||!ar(d)?s=!1:s=n.processResponsiveness(a,sr(d))};l?setTimeout(u,1):u()},this.resizeObserver=new ResizeObserver(function(l){E.requestAnimationFrame(function(){n.triggerResponsiveness(!1)})}),this.onMobileChangedCallback=function(){setTimeout(function(){var l=e.querySelector(r);n.processResponsiveness(a,sr(l))},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,n){if(n=Math.round(n),Math.abs(e-n)>2){var r=this.renderAs;return e>n?(this.onBeforeSetCompactRenderer(),this.renderAs=this.getCompactRenderAs()):(this.onBeforeSetDesktopRenderer(),this.renderAs=this.getDesktopRenderAs()),r!==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(){i.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.hasDescription?this.ariaDescriptionId: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.hasDescription?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,vt([h({defaultValue:!1})],t.prototype,"_isMobile",void 0),vt([h()],t.prototype,"forceIsInputReadOnly",void 0),vt([h()],t.prototype,"ariaExpanded",void 0),vt([h({localizable:!0,onSet:function(e,n){return n.resetRenderedCommentPlaceholder()}})],t.prototype,"commentPlaceholder",void 0),vt([h()],t.prototype,"renderAs",void 0),vt([h({defaultValue:!1})],t.prototype,"inMatrixMode",void 0),t}(le);function fr(i){if(!i)return i;for(i=i.trim().replace(/[\{\}]+/g,"");i&&i[0]===b.expressionDisableConversionChar;)i=i.substring(1);return i}x.addClass("question",[{name:"!name",onSettingValue:function(i,t){return fr(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 b.minWidth}},{name:"maxWidth",defaultFunc:function(){return b.maxWidth}},{name:"colSpan:number",visible:!1,onSerializeValue:function(i){return i.getPropertyValue("colSpan")}},{name:"effectiveColSpan:number",minValue:1,isSerializable:!1,visibleIf:function(i){return!!i&&!!i.survey&&i.survey.gridLayoutEnabled}},{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(i){var t=i?i.survey:null;return!t||!t.pages||t.pages.length>1},choices:function(i){var t=i?i.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(i,t){i&&t&&(t.placeholder=i.getDefaultTitle())}},{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(i){if(!i)return!0;if(i.titleLocation==="hidden")return!1;var t=i?i.parent:null,e=!t||t.showQuestionNumbers!=="off";if(!e)return!1;var n=i?i.survey:null;return!n||n.showQuestionNumbers!=="off"||!!t&&t.showQuestionNumbers==="onpanel"}},{name:"valueName",onSettingValue:function(i,t){return fr(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(i){return i.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(i){return i.showCommentArea},serializationProperty:"locCommentText"},{name:"commentPlaceholder",alternativeName:"commentPlaceHolder",serializationProperty:"locCommentPlaceholder",dependsOn:"showCommentArea",visibleIf:function(i){return i.hasComment}}]),x.addAlterNativeClassName("question","questionbase");var Eu=function(){var i=function(t,e){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(n[o]=r[o])},i(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");i(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),pr=function(i,t,e,n){var r=arguments.length,o=r<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,e):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(i,t,e,n);else for(var a=i.length-1;a>=0;a--)(s=i[a])&&(o=(r<3?s(o):r>3?s(t,e,o):s(t,e))||o);return r>3&&o&&Object.defineProperty(t,e,o),o},k=function(i){Eu(t,i);function t(e,n,r){n===void 0&&(n=null),r===void 0&&(r="itemvalue");var o=i.call(this)||this;return o.typeName=r,o.ownerPropertyName="",o.locTextValue=new Se(o,!0,"text"),o.locTextValue.onStrChanged=function(s,a){a==o.value&&(a=void 0),o.propertyValueChanged("text",s,a)},o.locTextValue.onGetTextCallback=function(s){return s||(P.isValueEmpty(o.value)?null:o.value.toString())},n&&(o.locText.text=n),e&&typeof e=="object"?o.setData(e,!0):o.setValue(e,!0),o.getType()!="itemvalue"&&Ne.createProperties(o),o.data=o,o.onCreating(),o}return t.prototype.getMarkdownHtml=function(e,n){return this.locOwner?this.locOwner.getMarkdownHtml(e,n):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 b.itemValueSeparator},set:function(e){b.itemValueSeparator=e},enumerable:!1,configurable:!0}),t.setData=function(e,n,r){e.length=0;for(var o=0;o<n.length;o++){var s=n[o],a=s&&typeof s.getType=="function"?s.getType():r??"itemvalue",l=x.createClass(a);l.setData(s),s.originalItem&&(l.originalItem=s.originalItem),e.push(l)}},t.getData=function(e){for(var n=[],r=0;r<e.length;r++)n.push(e[r].getData());return n},t.getItemByValue=function(e,n){if(!Array.isArray(e))return null;for(var r=P.isValueEmpty(n),o=0;o<e.length;o++)if(r&&P.isValueEmpty(e[o].value)||P.isTwoValueEquals(e[o].value,n,!1,!0,!1))return e[o];return null},t.getTextOrHtmlByValue=function(e,n){var r=t.getItemByValue(e,n);return r!==null?r.locText.textOrHtml:""},t.locStrsChanged=function(e){for(var n=0;n<e.length;n++)e[n].locStrsChanged()},t.runConditionsForItems=function(e,n,r,o,s,a,l){return a===void 0&&(a=!0),t.runConditionsForItemsCore(e,n,r,o,s,!0,a,l)},t.runEnabledConditionsForItems=function(e,n,r,o,s){return t.runConditionsForItemsCore(e,null,n,r,o,!1,!0,s)},t.runConditionsForItemsCore=function(e,n,r,o,s,a,l,u){l===void 0&&(l=!0),o||(o={});for(var d=o.item,v=o.choice,V=!1,T=0;T<e.length;T++){var R=e[T];o.item=R.value,o.choice=R.value;var N=l&&R.getConditionRunner?R.getConditionRunner(a):!1;N||(N=r);var j=!0;N&&(j=N.run(o,s)),u&&(j=u(R,j)),n&&j&&n.push(R);var A=a?R.isVisible:R.isEnabled;j!=A&&(V=!0,a?R.setIsVisible&&R.setIsVisible(j):R.setIsEnabled&&R.setIsEnabled(j))}return d?o.item=d:delete o.item,v?o.choice=v:delete o.choice,V},t.prototype.onCreating=function(){},t.prototype.getType=function(){return this.typeName?this.typeName:"itemvalue"},t.prototype.getSurvey=function(e){return 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 this.isGhost===!0},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){this.setValue(e,!1)},enumerable:!1,configurable:!0}),t.prototype.setValue=function(e,n){var r=void 0;if(!P.isValueEmpty(e)){var o=e.toString(),s=o.indexOf(b.itemValueSeparator);s>-1&&(e=o.slice(0,s),r=o.slice(s+1))}n?this.setPropertyValueDirectly("value",e):this.setPropertyValue("value",e),r&&(this.text=r),this.id=this.value},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 e==null?!1:!Array.isArray(e)&&typeof e!="object"},t.prototype.getData=function(){var e=this.toJSON();if(e.value&&e.value.pos&&delete e.value.pos,P.isValueEmpty(e.value))return e;var n=this.canSerializeValue(),r=!n||!b.serialization.itemValueSerializeAsObject&&!b.serialization.itemValueSerializeDisplayText;return r&&Object.keys(e).length==1?this.value:(b.serialization.itemValueSerializeDisplayText&&e.text===void 0&&n&&(e.text=this.value.toString()),e)},t.prototype.toJSON=function(){var e={},n=x.getProperties(this.getType());(!n||n.length==0)&&(n=x.getProperties("itemvalue"));for(var r=new fe,o=0;o<n.length;o++){var s=n[o];s.name==="text"&&!this.locText.hasNonDefaultText()&&P.isTwoValueEquals(this.value,this.text,!1,!0,!1)||r.valueToJson(this,e,s)}return e},t.prototype.setData=function(e,n){if(!P.isValueEmpty(e)){if(typeof e.value>"u"&&typeof e.text<"u"&&Object.keys(e).length===1&&(e.value=e.text),typeof e.value<"u"){var r=void 0;typeof e.toJSON=="function"?r=e.toJSON():r=e,new fe().toObject(r,this)}else this.setValue(e,n);n||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 e!==void 0?e:!0},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 e!==void 0?e:!0},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(){i.prototype.locStrsChanged.call(this),this.locText.strChanged()},t.prototype.onPropertyValueChanged=function(e,n,r){e==="value"&&!this.hasText&&this.locText.strChanged();var o="itemValuePropertyChanged";!this.locOwner||!this.locOwner[o]||this.locOwner[o](this,e,n,r)},t.prototype.getConditionRunner=function(e){return e?this.getVisibleConditionRunner():this.getEnableConditionRunner()},t.prototype.getVisibleConditionRunner=function(){return this.visibleIf?(this.visibleConditionRunner||(this.visibleConditionRunner=new de(this.visibleIf)),this.visibleConditionRunner.expression=this.visibleIf,this.visibleConditionRunner):null},t.prototype.getEnableConditionRunner=function(){return this.enableIf?(this.enableConditionRunner||(this.enableConditionRunner=new de(this.enableIf)),this.enableConditionRunner.expression=this.enableIf,this.enableConditionRunner):null},Object.defineProperty(t.prototype,"selected",{get:function(){var e=this,n=this._locOwner;return n instanceof ue&&n.isItemSelected&&this.selectedValue===void 0&&(this.selectedValue=new te(function(){return n.isItemSelected(e)})),this.selectedValue},enumerable:!1,configurable:!0}),t.prototype.getComponent=function(){return this._locOwner instanceof ue?this.componentValue||this._locOwner.itemComponent:this.componentValue},t.prototype.setComponent=function(e){this.componentValue=e},t.prototype.setRootElement=function(e){this._htmlElement=e},t.prototype.getRootElement=function(){return this._htmlElement},t.prototype.getEnabled=function(){return this.isEnabled},t.prototype.setEnabled=function(e){this.setIsEnabled(e)},t.prototype.getVisible=function(){var e=this.isVisible===void 0?!0:this.isVisible,n=this._visible===void 0?!0:this._visible;return e&&n},t.prototype.setVisible=function(e){this.visible!==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){},pr([h({defaultValue:!0})],t.prototype,"_visible",void 0),pr([h()],t.prototype,"selectedValue",void 0),pr([h()],t.prototype,"icon",void 0),t}(Zt);z.createItemValue=function(i,t){var e=null;return t?e=fe.metaData.createClass(t,{}):typeof i.getType=="function"?e=new k(null,void 0,i.getType()):e=new k(null),e.setData(i),e},z.itemValueLocStrChanged=function(i){k.locStrsChanged(i)},Gt.getItemValuesDefaultValue=function(i,t){var e=new Array;return k.setData(e,Array.isArray(i)?i:[],t),e},x.addClass("itemvalue",[{name:"!value",isUnique:!0},{name:"text",serializationProperty:"locText"},{name:"visibleIf:condition",showMode:"form"},{name:"enableIf:condition",showMode:"form",visibleIf:function(i){return!i||i.ownerPropertyName!=="rateValues"}}],function(i){return new k(i)});var Iu=function(){var i=function(t,e){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(n[o]=r[o])},i(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");i(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),Ro=function(i){Iu(t,i);function t(e,n){e===void 0&&(e=null),n===void 0&&(n=null);var r=i.call(this)||this;return r.expressionIsRunning=!1,r.isCalculated=!1,e&&(r.name=e),n&&(r.expression=n),r}return t.prototype.setOwner=function(e){this.data=e,this.rerunExpression()},t.prototype.getType=function(){return"calculatedvalue"},t.prototype.getSurvey=function(e){return 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,n,r){this.isCalculated||(this.runExpressionCore(e,n,r),this.isCalculated=!0)},t.prototype.runExpression=function(e,n){this.runExpressionCore(null,e,n)},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,n,r){this.canRunExpression&&(this.ensureExpression(n),this.locCalculation(),e&&this.runDependentExpressions(e,n,r),this.expressionRunner.run(n,r))},t.prototype.runDependentExpressions=function(e,n,r){var o=this.expressionRunner.getVariables();if(o)for(var s=0;s<e.length;s++){var a=e[s];a===this||o.indexOf(a.name)<0||(a.doCalculation(e,n,r),n[a.name]=a.value)}},t.prototype.ensureExpression=function(e){var n=this;this.expressionRunner||(this.expressionRunner=new et(this.expression),this.expressionRunner.onRunComplete=function(r){P.isTwoValueEquals(r,n.value,!1,!0,!1)||n.setValue(r),n.unlocCalculation()})},t}(z);x.addClass("calculatedvalue",[{name:"!name",isUnique:!0},"expression:expression","includeIntoResult:boolean"],function(){return new Ro},"base");var dr=function(){var i=function(t,e){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(n[o]=r[o])},i(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");i(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),hr=function(i){dr(t,i);function t(e){e===void 0&&(e=null);var n=i.call(this)||this;return n.expression=e,n}return t.prototype.getType=function(){return"expressionitem"},t.prototype.runCondition=function(e,n){return this.expression?new de(this.expression).run(e,n):!1},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,n){return this.locOwner?this.locOwner.getMarkdownHtml(e,n):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 this.locOwner},t}(z),Eo=function(i){dr(t,i);function t(e,n){e===void 0&&(e=null),n===void 0&&(n=null);var r=i.call(this,e)||this;return r.createLocalizableString("html",r),r.html=n,r}return 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}(hr),Io=function(i){dr(t,i);function t(e,n){e===void 0&&(e=null),n===void 0&&(n=null);var r=i.call(this,e)||this;return r.createLocalizableString("url",r),r.url=n,r}return 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}(hr);x.addClass("expressionitem",["expression:condition"],function(){return new hr},"base"),x.addClass("htmlconditionitem",[{name:"html:html",serializationProperty:"locHtml"}],function(){return new Eo},"expressionitem"),x.addClass("urlconditionitem",[{name:"url:string",serializationProperty:"locUrl"}],function(){return new Io},"expressionitem");var Ao=function(){var i=function(t,e){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(n[o]=r[o])},i(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");i(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),Au=function(){function i(){this.parser=new DOMParser}return i.prototype.assignValue=function(t,e,n){Array.isArray(t[e])?t[e].push(n):t[e]!==void 0?t[e]=[t[e]].concat(n):typeof n=="object"&&Object.keys(n).length===1&&Object.keys(n)[0]===e?t[e]=n[e]:t[e]=n},i.prototype.xml2Json=function(t,e){if(t.children&&t.children.length>0)for(var n=0;n<t.children.length;n++){var r=t.children[n],o={};this.xml2Json(r,o),this.assignValue(e,r.nodeName,o)}else this.assignValue(e,t.nodeName,t.textContent)},i.prototype.parseXmlString=function(t){var e=this.parser.parseFromString(t,"text/xml"),n={};return this.xml2Json(e,n),n},i}(),ot=function(i){Ao(t,i);function t(){var e=i.call(this)||this;return e.lastObjHash="",e.isRunningValue=!1,e.processedUrl="",e.processedPath="",e.isUsingCacheFromUrl=void 0,e.error=null,e.createItemValue=function(n){return new k(n)},e.registerPropertyChangedHandlers(["url"],function(){e.owner&&e.owner.setPropertyValue("isUsingRestful",!!e.url)}),e}return Object.defineProperty(t,"EncodeParameters",{get:function(){return b.web.encodeUrlParams},set:function(e){b.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 b.web.onBeforeRequestChoices},set:function(e){b.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):!1},t.prototype.getSurvey=function(e){return this.owner?this.owner.survey:null},t.prototype.run=function(e){if(e===void 0&&(e=null),!(!this.url||!this.getResultCallback)){if(this.processedText(e),!this.processedUrl){this.doEmptyResultCallback({}),this.lastObjHash=this.objHash;return}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 this.isUsingCacheFromUrl===!0?!0:this.isUsingCacheFromUrl===!1?!1:b.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 n=[];this.updateResultCallback&&(n=this.updateResultCallback(n,e)),this.getResultCallback(n)},t.prototype.processedText=function(e){var n=this.url;if(n&&(n=n.replace(t.cacheText,"").replace(t.noCacheText,"")),e){var r=e.processTextEx({text:n,runAtDesign:!0}),o=e.processTextEx({text:this.path,runAtDesign:!0});!r.hasAllValuesOnLastRun||!o.hasAllValuesOnLastRun?(this.processedUrl="",this.processedPath=""):(this.processedUrl=r.text,this.processedPath=o.text)}else this.processedUrl=n,this.processedPath=this.path;this.onProcessedUrlCallback&&this.onProcessedUrlCallback(this.processedUrl,this.processedPath)},t.prototype.parseResponse=function(e){var n;if(e&&typeof e.indexOf=="function"&&e.indexOf("<")===0){var r=new Au;n=r.parseXmlString(e)}else try{n=JSON.parse(e)}catch{n=(e||"").split(` -`).map(function(s){return s.trim(" ")}).filter(function(s){return!!s})}return n},t.prototype.sendRequest=function(){var e=new XMLHttpRequest;e.open("GET",this.processedUrl),e.setRequestHeader("Content-Type","application/x-www-form-urlencoded");var n=this,r=this.objHash;e.onload=function(){n.beforeLoadRequest(),e.status===200?n.onLoad(n.parseResponse(e.response),r):n.onError(e.statusText,e.responseText)};var o={request:e};b.web.onBeforeRequestChoices&&b.web.onBeforeRequestChoices(this,o),this.beforeSendRequest(),o.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(),n=new Array,r=0;r<e.length;r++)n.push(this.getCustomPropertyName(e[r].name));return n},t.prototype.getCustomPropertyName=function(e){return e+"Name"},t.prototype.getCustomProperties=function(){for(var e=x.getProperties(this.itemValueType),n=[],r=0;r<e.length;r++)e[r].name==="value"||e[r].name==="text"||e[r].name==="visibleIf"||e[r].name==="enableIf"||n.push(e[r]);return n},t.prototype.getAllPropertiesNames=function(){var e=new Array;return x.getPropertiesByObj(this).forEach(function(n){return e.push(n.name)}),this.getCustomPropertiesNames().forEach(function(n){return e.push(n)}),e},t.prototype.setData=function(e){var n=this;e||(e={}),this.getAllPropertiesNames().forEach(function(r){n[r]=e[r]})},t.prototype.getData=function(){var e=this,n={},r=!1;return this.getAllPropertiesNames().forEach(function(o){var s=e[o];!e.isValueEmpty(s)&&s!==e.getDefaultPropertyValue(o)&&(n[o]=s,r=!0)}),r?n:null},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=x.findProperty(this.owner.getType(),"choices");return!e||e.type=="itemvalue[]"?"itemvalue":e.type},enumerable:!1,configurable:!0}),t.prototype.clear=function(){this.setData(void 0)},t.prototype.beforeSendRequest=function(){this.isRunningValue=!0,this.beforeSendRequestCallback&&this.beforeSendRequestCallback()},t.prototype.beforeLoadRequest=function(){this.isRunningValue=!1},t.prototype.onLoad=function(e,n){n===void 0&&(n=null),n||(n=this.objHash);var r=new Array,o=this.getResultAfterPath(e);if(o&&o.length)for(var s=0;s<o.length;s++){var a=o[s];if(a){var l=this.getItemValueCallback?this.getItemValueCallback(a):this.getValue(a),u=this.createItemValue(l);this.setTitle(u,a),this.setCustomProperties(u,a),this.attachOriginalItems&&(u.originalItem=a);var d=this.getImageLink(a);d&&(u.imageLink=d),r.push(u)}}else this.allowEmptyResponse||(this.error=new Vu(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,n){n==this.objHash&&this.getResultCallback(e)},t.prototype.setCustomProperties=function(e,n){for(var r=this.getCustomProperties(),o=0;o<r.length;o++){var s=r[o],a=this.getValueCore(n,this.getPropertyBinding(s.name));this.isValueEmpty(a)||(e[s.name]=a)}},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 Pu(e,n,this.owner),this.doEmptyResultCallback(n),t.unregisterSameRequests(this,[])},t.prototype.getResultAfterPath=function(e){if(!e||!this.processedPath)return e;for(var n=this.getPathes(),r=0;r<n.length;r++)if(e=e[n[r]],!e)return null;return e},t.prototype.getPathes=function(){var e=[];return this.processedPath.indexOf(";")>-1?e=this.path.split(";"):e=this.processedPath.split(","),e.length==0&&e.push(this.processedPath),e},t.prototype.getValue=function(e){if(!e)return null;if(this.valueName)return this.getValueCore(e,this.valueName);if(!(e instanceof Object))return e;var n=Object.keys(e).length;return n<1?null:e[Object.keys(e)[0]]},t.prototype.setTitle=function(e,n){var r=this.titleName?this.titleName:"title",o=this.getValueCore(n,r);o&&(typeof o=="string"?e.text=o:e.locText.setJson(o))},t.prototype.getImageLink=function(e){var n=this.imageLinkName?this.imageLinkName:"imageLink";return this.getValueCore(e,n)},t.prototype.getValueCore=function(e,n){if(!e)return null;if(n.indexOf(".")<0)return e[n];for(var r=n.split("."),o=0;o<r.length;o++)if(e=e[r[o]],!e)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}(z),Du=function(i){Ao(t,i);function t(){return i!==null&&i.apply(this,arguments)||this}return Object.defineProperty(t,"EncodeParameters",{get:function(){return ot.EncodeParameters},set:function(e){ot.EncodeParameters=e},enumerable:!1,configurable:!0}),t.clearCache=function(){ot.clearCache()},Object.defineProperty(t,"onBeforeSendRequest",{get:function(){return b.web.onBeforeRequestChoices},set:function(e){b.web.onBeforeRequestChoices=e},enumerable:!1,configurable:!0}),t}(ot);x.addClass("choicesByUrl",["url","path","valueName","titleName",{name:"imageLinkName",visibleIf:function(i){return!!i&&!!i.owner&&i.owner.getType()=="imagepicker"}},{name:"allowEmptyResponse:boolean"},{name:"attachOriginalItems:boolean",visible:!1}],function(){return new ot});var Lu=function(){var i=function(t,e){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(n[o]=r[o])},i(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");i(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),Do=function(i,t,e,n){var r=arguments.length,o=r<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,e):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(i,t,e,n);else for(var a=i.length-1;a>=0;a--)(s=i[a])&&(o=(r<3?s(o):r>3?s(t,e,o):s(t,e))||o);return r>3&&o&&Object.defineProperty(t,e,o),o},gr=function(i){Lu(t,i);function t(e){var n=i.call(this,e)||this;return n.generatedVisibleRows=null,n.generatedTotalRow=null,n.filteredRows=null,n.columns=n.createColumnValues(),n.rows=n.createItemValues("rows"),n}return t.prototype.createColumnValues=function(){return this.createItemValues("columns")},t.prototype.getType=function(){return"matrixbase"},t.prototype.endLoadingFromJson=function(){i.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(){var e=this,n=[];return this.columns.forEach(function(r){e.isColumnVisible(r)&&n.push(r)}),n},enumerable:!1,configurable:!0}),t.prototype.isColumnVisible=function(e){return e.isVisible},Object.defineProperty(t.prototype,"rows",{get:function(){return this.getPropertyValue("rows")},set:function(e){var n=this.processRowsOnSet(e);this.setPropertyValue("rows",n)},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.isLoadingFromJsonValue||this.runCondition(this.getDataFilteredValues(),this.getDataFilteredProperties())},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"columnsVisibleIf",{get:function(){return this.getPropertyValue("columnsVisibleIf","")},set:function(e){this.setPropertyValue("columnsVisibleIf",e),this.isLoadingFromJson||this.runCondition(this.getDataFilteredValues(),this.getDataFilteredProperties())},enumerable:!1,configurable:!0}),t.prototype.runCondition=function(e,n){i.prototype.runCondition.call(this,e,n),this.runItemsCondition(e,n)},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 e,n=i.prototype.isVisibleCore.call(this);return!n||!this.hideIfRowsEmpty?n:((e=this.visibleRows)===null||e===void 0?void 0:e.length)>0},t.prototype.shouldRunColumnExpression=function(){return!this.survey||!this.survey.areInvisibleElementsShowing},t.prototype.hasRowsAsItems=function(){return!0},t.prototype.runItemsCondition=function(e,n){var r=this.hasRowsAsItems()&&this.runConditionsForRows(e,n),o=this.runConditionsForColumns(e,n);r=o||r,r&&(this.isClearValueOnHidden&&o&&this.clearInvisibleColumnValues(),this.clearGeneratedRows(),o&&this.onColumnsChanged(),this.onRowsChanged())},t.prototype.isRowsFiltered=function(){return!!this.filteredRows},t.prototype.clearGeneratedRows=function(){this.generatedVisibleRows=null},t.prototype.createRowsVisibleIfRunner=function(){return null},t.prototype.runConditionsForRows=function(e,n){var r=!!this.survey&&this.survey.areInvisibleElementsShowing,o=r?null:this.createRowsVisibleIfRunner();this.filteredRows=[];var s=k.runConditionsForItems(this.rows,this.filteredRows,o,e,n,!r);return k.runEnabledConditionsForItems(this.rows,void 0,e,n),this.filteredRows.length===this.rows.length&&(this.filteredRows=null),s},t.prototype.runConditionsForColumns=function(e,n){var r=!!this.survey&&!this.survey.areInvisibleElementsShowing,o=r&&this.columnsVisibleIf?new de(this.columnsVisibleIf):null;return k.runConditionsForItems(this.columns,void 0,o,e,n,this.shouldRunColumnExpression())},t.prototype.clearInvisibleColumnValues=function(){},t.prototype.clearInvisibleValuesInRows=function(){},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 O().append(this.cssClasses.root).append(this.cssClasses.columnsAutoWidth,this.columnsAutoWidth).append(this.cssClasses.noHeader,!this.showHeader).append(this.cssClasses.hasFooter,!!(!((e=this.renderedTable)===null||e===void 0)&&e.showAddRowOnBottom)).append(this.cssClasses.rootAlternateRows,this.alternateRows).append(this.cssClasses.rootVerticalAlignTop,this.verticalAlign==="top").append(this.cssClasses.rootVerticalAlignMiddle,this.verticalAlign==="middle").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}),Object.defineProperty(t.prototype,"displayMode",{get:function(){return this.getPropertyValue("displayMode")},set:function(e){this.setPropertyValue("displayMode",e)},enumerable:!1,configurable:!0}),t.prototype.getCellAriaLabel=function(e,n){var r=(this.getLocalizationString("matrix_row")||"row").toLocaleLowerCase(),o=(this.getLocalizationString("matrix_column")||"column").toLocaleLowerCase();return r+" "+e+", "+o+" "+n},Object.defineProperty(t.prototype,"isNewA11yStructure",{get:function(){return!0},enumerable:!1,configurable:!0}),t.prototype.getIsMobile=function(){return this.displayMode=="auto"?i.prototype.getIsMobile.call(this):this.displayMode==="list"},Do([h()],t.prototype,"verticalAlign",void 0),Do([h()],t.prototype,"alternateRows",void 0),t}(ue);x.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},{name:"displayMode",default:"auto",choices:["auto","table","list"],visible:!1}],void 0,"question");var Mu=function(){function i(){}return i}(),Lo=function(){function i(t,e){this.name=t,this.returnDisplayValue=e,this.isExists=!1,this.canProcess=!0}return i}(),yr=function(){function i(){this._unObservableValues=[void 0]}return Object.defineProperty(i.prototype,"hasAllValuesOnLastRunValue",{get:function(){return this._unObservableValues[0]},set:function(t){this._unObservableValues[0]=t},enumerable:!1,configurable:!0}),i.prototype.process=function(t,e,n){if(e===void 0&&(e=!1),n===void 0&&(n=!1),this.hasAllValuesOnLastRunValue=!0,!t||!this.onProcess)return t;for(var r=this.getItems(t),o=r.length-1;o>=0;o--){var s=r[o],a=this.getName(t.substring(s.start+1,s.end));if(a){var l=new Lo(a,e);if(this.onProcess(l),!l.isExists){l.canProcess&&(this.hasAllValuesOnLastRunValue=!1);continue}P.isValueEmpty(l.value)&&(this.hasAllValuesOnLastRunValue=!1);var u=P.isValueEmpty(l.value)?"":l.value;n&&(u=encodeURIComponent(u)),t=t.substring(0,s.start)+u+t.substring(s.end+1)}}return t},i.prototype.processValue=function(t,e){var n=new Lo(t,e);return this.onProcess&&this.onProcess(n),n},Object.defineProperty(i.prototype,"hasAllValuesOnLastRun",{get:function(){return!!this.hasAllValuesOnLastRunValue},enumerable:!1,configurable:!0}),i.prototype.getItems=function(t){for(var e=[],n=t.length,r=-1,o="",s=0;s<n;s++)if(o=t[s],o=="{"&&(r=s),o=="}"){if(r>-1){var a=new Mu;a.start=r,a.end=s,e.push(a)}r=-1}return e},i.prototype.getName=function(t){if(t)return t.trim()},i}(),mr=function(){function i(t){var e=this;this.variableName=t,this.textPreProcessor=new yr,this.textPreProcessor.onProcess=function(n){e.getProcessedTextValue(n)}}return i.prototype.processValue=function(t,e){return this.textPreProcessor.processValue(t,e)},Object.defineProperty(i.prototype,"survey",{get:function(){return null},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"panel",{get:function(){return null},enumerable:!1,configurable:!0}),i.prototype.getValues=function(){return this.panel?this.panel.getValue():null},i.prototype.getQuestionByName=function(t){return this.panel?this.panel.getQuestionByValueName(t):null},i.prototype.getParentTextProcessor=function(){return null},i.prototype.onCustomProcessText=function(t){return!1},i.prototype.getQuestionDisplayText=function(t){return t.displayValue},i.prototype.getProcessedTextValue=function(t){if(t&&!this.onCustomProcessText(t)){var e=new me().getFirstName(t.name);if(t.isExists=e==this.variableName,t.canProcess=t.isExists,!!t.canProcess){t.name=t.name.replace(this.variableName+".","");var e=new me().getFirstName(t.name),n=this.getQuestionByName(e),r={};if(n)r[e]=t.returnDisplayValue?this.getQuestionDisplayText(n):n.value;else{var o=this.panel?this.getValues():null;o&&(r[e]=o[e])}t.value=new me().getValue(t.name,r)}}},i.prototype.processText=function(t,e){return this.survey&&this.survey.isDesignMode?t:(t=this.textPreProcessor.process(t,e),t=this.processTextCore(this.getParentTextProcessor(),t,e),this.processTextCore(this.survey,t,e))},i.prototype.processTextEx=function(t){t.text=this.processText(t.text,t.returnDisplayValue);var e=this.textPreProcessor.hasAllValuesOnLastRun,n={hasAllValuesOnLastRun:!0,text:t.text};return this.survey&&(n=this.survey.processTextEx(t)),n.hasAllValuesOnLastRun=n.hasAllValuesOnLastRun&&e,n},i.prototype.processTextCore=function(t,e,n){return t?t.processText(e,n):e},i}(),un=function(){var i=function(t,e){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(n[o]=r[o])},i(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");i(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),Mo=function(){function i(t,e){this.name=t,this.json=e;var n=this;x.addClass(t,[],function(r){return cn.Instance.createQuestion(r?r.name:"",n)},"question"),this.onInit()}return i.prototype.onInit=function(){this.json.onInit&&this.json.onInit()},i.prototype.onCreated=function(t){this.json.onCreated&&this.json.onCreated(t)},i.prototype.onLoaded=function(t){this.json.onLoaded&&this.json.onLoaded(t)},i.prototype.onAfterRender=function(t,e){this.json.onAfterRender&&this.json.onAfterRender(t,e)},i.prototype.onAfterRenderContentElement=function(t,e,n){this.json.onAfterRenderContentElement&&this.json.onAfterRenderContentElement(t,e,n)},i.prototype.onUpdateQuestionCssClasses=function(t,e,n){this.json.onUpdateQuestionCssClasses&&this.json.onUpdateQuestionCssClasses(t,e,n)},i.prototype.onSetQuestionValue=function(t,e){this.json.onSetQuestionValue&&this.json.onSetQuestionValue(t,e),this.json.onValueSet&&this.json.onValueSet(t,e)},i.prototype.onPropertyChanged=function(t,e,n){this.json.onPropertyChanged&&this.json.onPropertyChanged(t,e,n)},i.prototype.onValueChanged=function(t,e,n){this.json.onValueChanged&&this.json.onValueChanged(t,e,n)},i.prototype.onValueChanging=function(t,e,n){return this.json.onValueChanging?this.json.onValueChanging(t,e,n):n},i.prototype.onGetErrorText=function(t){if(this.json.getErrorText)return this.json.getErrorText(t)},i.prototype.onItemValuePropertyChanged=function(t,e,n,r,o){this.json.onItemValuePropertyChanged&&this.json.onItemValuePropertyChanged(t,{obj:e,propertyName:n,name:r,newValue:o})},i.prototype.getDisplayValue=function(t,e,n){return this.json.getDisplayValue?this.json.getDisplayValue(n):n.getDisplayValue(t,e)},Object.defineProperty(i.prototype,"defaultQuestionTitle",{get:function(){return this.json.defaultQuestionTitle},enumerable:!1,configurable:!0}),i.prototype.setValueToQuestion=function(t){var e=this.json.valueToQuestion||this.json.setValue;return e?e(t):t},i.prototype.getValueFromQuestion=function(t){var e=this.json.valueFromQuestion||this.json.getValue;return e?e(t):t},Object.defineProperty(i.prototype,"isComposite",{get:function(){return!!this.json.elementsJSON||!!this.json.createElements},enumerable:!1,configurable:!0}),i.prototype.getDynamicProperties=function(){return Array.isArray(this.dynamicProperties)||(this.dynamicProperties=this.calcDynamicProperties()),this.dynamicProperties},i.prototype.calcDynamicProperties=function(){var t=this.json.inheritBaseProps;if(!t||!this.json.questionJSON)return[];var e=this.json.questionJSON.type;if(!e)return[];if(Array.isArray(t)){var n=[];return t.forEach(function(s){var a=x.findProperty(e,s);a&&n.push(a)}),n}var r=[];for(var o in this.json.questionJSON)r.push(o);return x.getDynamicPropertiesByTypes(this.name,e,r)},i}(),cn=function(){function i(){this.customQuestionValues=[]}return i.prototype.add=function(t){if(t){var e=t.name;if(!e)throw"Attribute name is missed";if(e=e.toLowerCase(),this.getCustomQuestionByName(e))throw"There is already registered custom question with name '"+e+"'";if(x.findClass(e))throw"There is already class with name '"+e+"'";var n=new Mo(e,t);this.onAddingJson&&this.onAddingJson(e,n.isComposite),this.customQuestionValues.push(n)}},i.prototype.remove=function(t){if(!t)return!1;var e=this.getCustomQuestionIndex(t.toLowerCase());return e<0?!1:(this.removeByIndex(e),!0)},Object.defineProperty(i.prototype,"items",{get:function(){return this.customQuestionValues},enumerable:!1,configurable:!0}),i.prototype.getCustomQuestionByName=function(t){var e=this.getCustomQuestionIndex(t);return e>=0?this.customQuestionValues[e]:void 0},i.prototype.getCustomQuestionIndex=function(t){for(var e=0;e<this.customQuestionValues.length;e++)if(this.customQuestionValues[e].name===t)return e;return-1},i.prototype.removeByIndex=function(t){x.removeClass(this.customQuestionValues[t].name),this.customQuestionValues.splice(t,1)},i.prototype.clear=function(t){for(var e=this.customQuestionValues.length-1;e>=0;e--)(t||!this.customQuestionValues[e].json.internal)&&this.removeByIndex(e)},i.prototype.createQuestion=function(t,e){return e.isComposite?this.createCompositeModel(t,e):this.createCustomModel(t,e)},i.prototype.createCompositeModel=function(t,e){return this.onCreateComposite?this.onCreateComposite(t,e):new Fo(t,e)},i.prototype.createCustomModel=function(t,e){return this.onCreateCustom?this.onCreateCustom(t,e):new No(t,e)},i.Instance=new i,i}(),jo=function(i){un(t,i);function t(e,n){var r=i.call(this,e)||this;return r.customQuestion=n,Ne.createProperties(r),le.CreateDisabledDesignElements=!0,r.locQuestionTitle=r.createLocalizableString("questionTitle",r),r.locQuestionTitle.setJson(r.customQuestion.defaultQuestionTitle),r.createWrapper(),le.CreateDisabledDesignElements=!1,r.customQuestion&&r.customQuestion.onCreated(r),r}return t.prototype.getType=function(){return this.customQuestion?this.customQuestion.name:"custom"},t.prototype.locStrsChanged=function(){i.prototype.locStrsChanged.call(this),this.getElement()&&this.getElement().locStrsChanged()},t.prototype.localeChanged=function(){i.prototype.locStrsChanged.call(this),this.getElement()&&this.getElement().localeChanged()},t.prototype.getDefaultTitle=function(){return this.locQuestionTitle.isEmpty?i.prototype.getDefaultTitle.call(this):this.getProcessedText(this.locQuestionTitle.textOrHtml)},t.prototype.addUsedLocales=function(e){i.prototype.addUsedLocales.call(this,e),this.getElement()&&this.getElement().addUsedLocales(e)},t.prototype.needResponsiveWidth=function(){var e=this.getElement();return e?e.needResponsiveWidth():!1},t.prototype.createWrapper=function(){},t.prototype.onPropertyValueChanged=function(e,n,r){i.prototype.onPropertyValueChanged.call(this,e,n,r),this.customQuestion&&!this.isLoadingFromJson&&this.customQuestion.onPropertyChanged(this,e,r)},t.prototype.itemValuePropertyChanged=function(e,n,r,o){i.prototype.itemValuePropertyChanged.call(this,e,n,r,o),this.customQuestion&&!this.isLoadingFromJson&&this.customQuestion.onItemValuePropertyChanged(this,e,e.ownerPropertyName,n,o)},t.prototype.onFirstRenderingCore=function(){i.prototype.onFirstRenderingCore.call(this);var e=this.getElement();e&&e.onFirstRendering()},t.prototype.onHidingContent=function(){i.prototype.onHidingContent.call(this);var e=this.getElement();e&&e.onHidingContent()},t.prototype.getProgressInfo=function(){var e=i.prototype.getProgressInfo.call(this);return this.getElement()&&(e=this.getElement().getProgressInfo()),this.isRequired&&e.requiredQuestionCount==0&&(e.requiredQuestionCount=1,this.isEmpty()||(e.answeredQuestionCount=1)),e},t.prototype.initElement=function(e){e&&(e.setSurveyImpl(this),e.disableDesignActions=!0)},t.prototype.setSurveyImpl=function(e,n){this.isSettingValOnLoading=!0,i.prototype.setSurveyImpl.call(this,e,n),this.initElement(this.getElement()),this.isSettingValOnLoading=!1},t.prototype.onSurveyLoad=function(){i.prototype.onSurveyLoad.call(this),this.getElement()&&(this.getElement().onSurveyLoad(),this.customQuestion.onLoaded(this))},t.prototype.afterRenderQuestionElement=function(e){},t.prototype.afterRenderCore=function(e){i.prototype.afterRenderCore.call(this,e),this.customQuestion&&this.customQuestion.onAfterRender(this,e)},t.prototype.onUpdateQuestionCssClasses=function(e,n){this.customQuestion&&this.customQuestion.onUpdateQuestionCssClasses(this,e,n)},t.prototype.setQuestionValue=function(e,n){n===void 0&&(n=!0),i.prototype.setQuestionValue.call(this,e,n),this.updateElementCss(),this.customQuestion&&this.customQuestion.onSetQuestionValue(this,e)},t.prototype.setNewValue=function(e){i.prototype.setNewValue.call(this,e),this.updateElementCss()},t.prototype.onCheckForErrors=function(e,n,r){if(i.prototype.onCheckForErrors.call(this,e,n,r),this.customQuestion){var o=this.customQuestion.onGetErrorText(this);o&&e.push(new we(o,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,n,r,o){if(this.data){this.customQuestion&&this.customQuestion.onValueChanged(this,e,n);var s=this.convertDataName(e),a=this.convertDataValue(e,n);this.valueToDataCallback&&(a=this.valueToDataCallback(a)),this.data.setValue(s,a,r,o),this.updateIsAnswered(),this.updateElementCss()}},t.prototype.getQuestionByName=function(e){},t.prototype.isValueChanging=function(e,n){if(this.customQuestion){var r=n;if(n=this.customQuestion.onValueChanging(this,e,n),!P.isTwoValueEquals(n,r)){var o=this.getQuestionByName(e);if(o)return o.value=n,!0}}return!1},t.prototype.convertDataName=function(e){return this.getValueName()},t.prototype.convertDataValue=function(e,n){return n},t.prototype.getVariable=function(e){return this.data?this.data.getVariable(e):null},t.prototype.setVariable=function(e,n){this.data&&this.data.setVariable(e,n)},t.prototype.getComment=function(e){return this.data?this.data.getComment(this.getValueName()):""},t.prototype.setComment=function(e,n,r){this.data&&this.data.setComment(this.getValueName(),n,r)},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.getEditingSurveyElement=function(){},t.prototype.addElement=function(e,n){},t.prototype.removeElement=function(e){return!1},t.prototype.getQuestionTitleLocation=function(){return"left"},t.prototype.getQuestionTitleWidth=function(){},t.prototype.getColumsForElement=function(e){return[]},t.prototype.updateColumns=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.onQuestionValueChanged=function(e){},t.prototype.getQuestionErrorLocation=function(){return this.getErrorLocation()},t.prototype.getContentDisplayValueCore=function(e,n,r){return r?this.customQuestion.getDisplayValue(e,n,r):i.prototype.getDisplayValueCore.call(this,e,n)},t}(ue),No=function(i){un(t,i);function t(){return i!==null&&i.apply(this,arguments)||this}return 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(n,r,o,s,a){var l=e.getDynamicProperty(n);l&&e.propertyValueChanged(n,r,o,a)})},t.prototype.getDynamicProperty=function(e){for(var n=this.getDynamicProperties(),r=0;r<n.length;r++)if(n[r].name===e)return n[r];return null},t.prototype.getElement=function(){return this.contentQuestion},t.prototype.onAnyValueChanged=function(e,n){i.prototype.onAnyValueChanged.call(this,e,n),this.contentQuestion&&this.contentQuestion.onAnyValueChanged(e,n)},t.prototype.getQuestionByName=function(e){return this.contentQuestion},t.prototype.getDefaultTitle=function(){return this.hasJSONTitle&&this.contentQuestion?this.getProcessedText(this.contentQuestion.title):i.prototype.getDefaultTitle.call(this)},t.prototype.setValue=function(e,n,r,o){this.isValueChanging(e,n)||i.prototype.setValue.call(this,e,n,r,o)},t.prototype.onSetData=function(){i.prototype.onSetData.call(this),this.survey&&!this.isEmpty()&&this.setValue(this.name,this.value,!1,this.allowNotifyValueChanged)},t.prototype.hasErrors=function(e,n){if(e===void 0&&(e=!0),n===void 0&&(n=null),!this.contentQuestion)return!1;var r=this.contentQuestion.hasErrors(e,n);this.errors=[];for(var o=0;o<this.contentQuestion.errors.length;o++)this.errors.push(this.contentQuestion.errors[o]);return r||(r=i.prototype.hasErrors.call(this,e,n)),this.updateElementCss(),r},t.prototype.focus=function(e){e===void 0&&(e=!1),this.contentQuestion?this.contentQuestion.focus(e):i.prototype.focus.call(this,e)},t.prototype.afterRenderCore=function(e){i.prototype.afterRenderCore.call(this,e),this.contentQuestion&&this.contentQuestion.afterRender(e)},Object.defineProperty(t.prototype,"contentQuestion",{get:function(){return this.questionWrapper},enumerable:!1,configurable:!0}),t.prototype.createQuestion=function(){var e=this,n=this.customQuestion.json,r=null;if(n.questionJSON){this.hasJSONTitle=!!n.questionJSON.title;var o=n.questionJSON.type;if(!o||!x.findClass(o))throw"type attribute in questionJSON is empty or incorrect";r=x.createClass(o),r.fromJSON(n.questionJSON),r=this.checkCreatedQuestion(r)}else n.createQuestion&&(r=this.checkCreatedQuestion(n.createQuestion()));return this.initElement(r),r&&(r.isContentElement=!0,r.name||(r.name="question"),r.onUpdateCssClassesCallback=function(s){e.onUpdateQuestionCssClasses(r,s)},r.hasCssErrorCallback=function(){return e.errors.length>0},r.setValueChangedDirectlyCallback=function(s){e.setValueChangedDirectly(s)}),r},t.prototype.checkCreatedQuestion=function(e){return e&&(e.isQuestion||(Array.isArray(e.questions)&&e.questions.length>0?e=e.questions[0]:e=x.createClass("text"),Fe.error("Could not create component: '"+this.getType()+"'. questionJSON should be a question.")),e)},t.prototype.onSurveyLoad=function(){i.prototype.onSurveyLoad.call(this),this.contentQuestion&&this.isEmpty()&&!this.contentQuestion.isEmpty()&&(this.value=this.getContentQuestionValue())},t.prototype.runCondition=function(e,n){i.prototype.runCondition.call(this,e,n),this.contentQuestion&&this.contentQuestion.runCondition(e,n)},t.prototype.convertDataName=function(e){var n=this.contentQuestion;if(!n||e===this.getValueName())return i.prototype.convertDataName.call(this,e);var r=e.replace(n.getValueName(),this.getValueName());return r.indexOf(this.getValueName())==0?r:i.prototype.convertDataName.call(this,e)},t.prototype.convertDataValue=function(e,n){return this.convertDataName(e)==i.prototype.convertDataName.call(this,e)?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(e,n){n===void 0&&(n=!0),i.prototype.setQuestionValue.call(this,e,n),!this.isLoadingFromJson&&this.contentQuestion&&!this.isTwoValueEquals(this.getContentQuestionValue(),e)&&this.setContentQuestionValue(this.getUnbindValue(e))},t.prototype.onSurveyValueChanged=function(e){i.prototype.onSurveyValueChanged.call(this,e),this.contentQuestion&&this.contentQuestion.onSurveyValueChanged(e)},t.prototype.getValueCore=function(){return this.contentQuestion?this.getContentQuestionValue():i.prototype.getValueCore.call(this)},t.prototype.setValueChangedDirectly=function(e){this.isSettingValueChanged||(this.isSettingValueChanged=!0,i.prototype.setValueChangedDirectly.call(this,e),this.contentQuestion&&this.contentQuestion.setValueChangedDirectly(e),this.isSettingValueChanged=!1)},t.prototype.createDynamicProperties=function(e){if(e){var n=this.getDynamicProperties();Array.isArray(n)&&x.addDynamicPropertiesIntoObj(this,e,n)}},t.prototype.initElement=function(e){var n=this;i.prototype.initElement.call(this,e),e&&(e.parent=this,e.afterRenderQuestionCallback=function(r,o){n.customQuestion&&n.customQuestion.onAfterRenderContentElement(n,r,o)})},t.prototype.updateElementCss=function(e){this.contentQuestion&&this.questionWrapper.updateElementCss(e),i.prototype.updateElementCss.call(this,e)},t.prototype.updateElementCssCore=function(e){this.contentQuestion&&(e=this.contentQuestion.cssClasses),i.prototype.updateElementCssCore.call(this,e)},t.prototype.getDisplayValueCore=function(e,n){return i.prototype.getContentDisplayValueCore.call(this,e,n,this.contentQuestion)},t}(jo),ju=function(i){un(t,i);function t(e,n){var r=i.call(this,n)||this;return r.composite=e,r.variableName=n,r}return 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}(mr),Fo=function(i){un(t,i);function t(e,n){var r=i.call(this,e,n)||this;return r.customQuestion=n,r.settingNewValue=!1,r.textProcessing=new ju(r,t.ItemVariableName),r}return 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(e){return new O().append(i.prototype.getCssRoot.call(this,e)).append(e.composite).toString()},Object.defineProperty(t.prototype,"contentPanel",{get:function(){return this.panelWrapper},enumerable:!1,configurable:!0}),t.prototype.hasErrors=function(e,n){e===void 0&&(e=!0),n===void 0&&(n=null);var r=i.prototype.hasErrors.call(this,e,n);return this.contentPanel&&this.contentPanel.hasErrors(e,!1,n)||r},t.prototype.updateElementCss=function(e){i.prototype.updateElementCss.call(this,e),this.contentPanel&&this.contentPanel.updateElementCss(e)},t.prototype.dispose=function(){this.unConnectEditingObj(),i.prototype.dispose.call(this)},t.prototype.updateEditingObj=function(){var e=this,n,r=(n=this.data)===null||n===void 0?void 0:n.getEditingSurveyElement();if(r){var o=r[this.getValueName()];return o&&!o.onPropertyChanged&&(o=void 0),o!==this.editingObjValue&&(this.unConnectEditingObj(),this.editingObjValue=o,o&&(this.onEditingObjPropertyChanged=function(s,a){e.setNewValueIntoQuestion(a.name,e.editingObjValue[a.name])},o.onPropertyChanged.add(this.onEditingObjPropertyChanged))),this.editingObjValue}},t.prototype.unConnectEditingObj=function(){this.editingObjValue&&!this.editingObjValue.isDisposed&&this.editingObjValue.onPropertyChanged.remove(this.onEditingObjPropertyChanged)},t.prototype.getEditingSurveyElement=function(){return this.editingObjValue},t.prototype.getTextProcessor=function(){return this.textProcessing},t.prototype.findQuestionByName=function(e){var n=this.getQuestionByName(e);return n||i.prototype.findQuestionByName.call(this,e)},t.prototype.clearValueIfInvisibleCore=function(e){i.prototype.clearValueIfInvisibleCore.call(this,e);for(var n=this.contentPanel.questions,r=0;r<n.length;r++)n[r].clearValueIfInvisible(e)},t.prototype.onAnyValueChanged=function(e,n){i.prototype.onAnyValueChanged.call(this,e,n);for(var r=this.contentPanel.questions,o=0;o<r.length;o++)r[o].onAnyValueChanged(e,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,n=x.createClass("panel");n.showQuestionNumbers="off",n.renderWidth="100%";var r=this.customQuestion.json;return r.elementsJSON&&n.fromJSON({elements:r.elementsJSON}),r.createElements&&r.createElements(n,this),this.initElement(n),n.readOnly=this.isReadOnly,n.questions.forEach(function(o){return o.onUpdateCssClassesCallback=function(s){e.onUpdateQuestionCssClasses(o,s)}}),this.setAfterRenderCallbacks(n),n},t.prototype.onReadOnlyChanged=function(){this.contentPanel&&(this.contentPanel.readOnly=this.isReadOnly),i.prototype.onReadOnlyChanged.call(this)},t.prototype.updateValueFromSurvey=function(e,n){n===void 0&&(n=!1),this.updateEditingObj(),i.prototype.updateValueFromSurvey.call(this,e,n)},t.prototype.onSurveyLoad=function(){if(this.isSettingValOnLoading=!0,this.contentPanel&&(this.contentPanel.readOnly=this.isReadOnly,this.setIsContentElement(this.contentPanel)),i.prototype.onSurveyLoad.call(this),this.contentPanel){var e=this.getContentPanelValue();P.isValueEmpty(e)||(this.value=e)}this.isSettingValOnLoading=!1},t.prototype.setIsContentElement=function(e){e.isContentElement=!0;for(var n=e.elements,r=0;r<n.length;r++){var o=n[r];o.isPanel?this.setIsContentElement(o):o.isContentElement=!0}},t.prototype.setVisibleIndex=function(e){var n=i.prototype.setVisibleIndex.call(this,e);return this.isVisible&&this.contentPanel&&(n+=this.contentPanel.setVisibleIndex(e)),n},t.prototype.runCondition=function(e,n){if(i.prototype.runCondition.call(this,e,n),this.contentPanel){var r=e[t.ItemVariableName];e[t.ItemVariableName]=this.contentPanel.getValue(),this.contentPanel.runCondition(e,n),delete e[t.ItemVariableName],r&&(e[t.ItemVariableName]=r)}},t.prototype.onSurveyValueChanged=function(e){i.prototype.onSurveyValueChanged.call(this,e);var n=e||{};this.contentPanel&&this.contentPanel.questions.forEach(function(r){r.onSurveyValueChanged(n[r.getValueName()])})},t.prototype.getValue=function(e){var n=this.value;return n?n[e]:null},t.prototype.getQuestionByName=function(e){return this.contentPanel?this.contentPanel.getQuestionByName(e):void 0},t.prototype.setValue=function(e,n,r,o){if(this.settingNewValue){this.setNewValueIntoQuestion(e,n);return}if(!this.isValueChanging(e,n)){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(e,n),i.prototype.setValue.call(this,e,n,r,o),this.settingNewValue=!1,this.runPanelTriggers(t.ItemVariableName+"."+e,n)}},t.prototype.runPanelTriggers=function(e,n){this.contentPanel&&this.contentPanel.questions.forEach(function(r){r.runTriggers(e,n)})},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)?!1:(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,n){var r=this.getQuestionByName(e);r&&!this.isTwoValueEquals(n,r.value)&&(r.value=n)},t.prototype.addConditionObjectsByContext=function(e,n){if(this.contentPanel)for(var r=this.contentPanel.questions,o=this.name,s=this.title,a=0;a<r.length;a++)e.push({name:o+"."+r[a].name,text:s+"."+r[a].title,question:r[a]})},t.prototype.collectNestedQuestionsCore=function(e,n){this.contentPanel&&this.contentPanel.questions.forEach(function(r){return r.collectNestedQuestions(e,n)})},t.prototype.convertDataValue=function(e,n){var r=this.contentPanel&&!this.isEditingSurveyElement?this.contentPanel.getValue():this.getValueForContentPanel(this.value);return r||(r={}),r.getType||(r=P.getUnbindValue(r)),this.isValueEmpty(n)&&!this.isEditingSurveyElement?delete r[e]:r[e]=n,this.getContentPanelValue(r)},t.prototype.setQuestionValue=function(e,n){n===void 0&&(n=!0),this.setValuesIntoQuestions(e),!this.isEditingSurveyElement&&this.contentPanel&&(e=this.getContentPanelValue()),i.prototype.setQuestionValue.call(this,e,n)},t.prototype.setValuesIntoQuestions=function(e){if(this.contentPanel){e=this.getValueForContentPanel(e);var n=this.settingNewValue;this.settingNewValue=!0;for(var r=this.contentPanel.questions,o=0;o<r.length;o++){var s=r[o].getValueName(),a=e?e[s]:void 0,l=r[o];!this.isTwoValueEquals(l.value,a)&&(a!==void 0||!l.isEmpty())&&(l.value=a)}this.settingNewValue=n}},t.prototype.getDisplayValueCore=function(e,n){return i.prototype.getContentDisplayValueCore.call(this,e,n,this.contentPanel)},t.prototype.setAfterRenderCallbacks=function(e){var n=this;if(!(!e||!this.customQuestion))for(var r=e.questions,o=0;o<r.length;o++)r[o].afterRenderQuestionCallback=function(s,a){n.customQuestion.onAfterRenderContentElement(n,s,a)}},Object.defineProperty(t.prototype,"ariaRole",{get:function(){return"group"},enumerable:!1,configurable:!0}),t.ItemVariableName="composite",t}(jo),J=function(){function i(){}return Object.defineProperty(i,"DefaultChoices",{get:function(){var t=oe("choices_Item");return[t+"1",t+"2",t+"3"]},enumerable:!1,configurable:!0}),Object.defineProperty(i,"DefaultColums",{get:function(){var t=oe("matrix_column")+" ";return[t+"1",t+"2",t+"3"]},enumerable:!1,configurable:!0}),Object.defineProperty(i,"DefaultRows",{get:function(){var t=oe("matrix_row")+" ";return[t+"1",t+"2"]},enumerable:!1,configurable:!0}),Object.defineProperty(i,"DefaultMutlipleTextItems",{get:function(){var t=oe("multipletext_itemname");return[t+"1",t+"2"]},enumerable:!1,configurable:!0}),i.prototype.registerQuestion=function(t,e,n){n===void 0&&(n=!0),ze.Instance.registerElement(t,e,n)},i.prototype.registerCustomQuestion=function(t){ze.Instance.registerCustomQuestion(t)},i.prototype.unregisterElement=function(t,e){e===void 0&&(e=!1),ze.Instance.unregisterElement(t,e)},i.prototype.clear=function(){ze.Instance.clear()},i.prototype.getAllTypes=function(){return ze.Instance.getAllTypes()},i.prototype.createQuestion=function(t,e){return ze.Instance.createElement(t,e)},i.Instance=new i,i}(),ze=function(){function i(){var t=this;this.creatorHash={},this.registerCustomQuestion=function(e,n){n===void 0&&(n=!0);var r=function(o){var s=x.createClass(e);return s&&(s.name=o),s};t.registerElement(e,r,n)}}return i.prototype.registerElement=function(t,e,n){n===void 0&&(n=!0),this.creatorHash[t]={showInToolbox:n,creator:e}},i.prototype.clear=function(){this.creatorHash={}},i.prototype.unregisterElement=function(t,e){e===void 0&&(e=!1),delete this.creatorHash[t],e&&x.removeClass(t)},i.prototype.getAllToolboxTypes=function(){return this.getAllTypesCore(!0)},i.prototype.getAllTypes=function(){return this.getAllTypesCore(!1)},i.prototype.createElement=function(t,e){var n=this.creatorHash[t];if(n&&n.creator)return n.creator(e);var r=cn.Instance.getCustomQuestionByName(t);return r?cn.Instance.createQuestion(e,r):null},i.prototype.getAllTypesCore=function(t){var e=new Array;for(var n in this.creatorHash)(!t||this.creatorHash[n].showInToolbox)&&e.push(n);return e.sort()},i.Instance=new i,i}(),Nu=function(){var i=function(t,e){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(n[o]=r[o])},i(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");i(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),vr=function(i){Nu(t,i);function t(e){var n=i.call(this,e)||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 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(e,n){i.prototype.runCondition.call(this,e,n),!(!this.expression||this.expressionIsRunning||!this.runIfReadOnly&&this.isReadOnly)&&(this.locCalculation(),this.expressionRunner||(this.expressionRunner=this.createRunner()),this.expressionRunner.run(e,n))},t.prototype.canCollectErrors=function(){return!0},t.prototype.hasRequiredError=function(){return!1},t.prototype.createRunner=function(){var e=this,n=this.createExpressionRunner(this.expression);return n.onRunComplete=function(r){e.value=e.roundValue(r),e.unlocCalculation()},n},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 this.runIfReadOnlyValue===!0},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(e,n){i.prototype.updateValueFromSurvey.call(this,e,n),this.updateFormatedValue()},t.prototype.getDisplayValueCore=function(e,n){var r=n??this.defaultValue,o="";if(!this.isValueEmpty(r)){var s=this.getValueAsStr(r);o=this.format?this.format.format(s):s}return this.survey&&(o=this.survey.getExpressionDisplayValue(this,r,o)),o},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){fn().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||!P.isNumber(e)?e:parseFloat(e.toFixed(this.precision))},t.prototype.getValueAsStr=function(e){if(this.displayStyle=="date"){var n=Z("question-expression",e);if(n&&n.toLocaleDateString)return n.toLocaleDateString()}if(this.displayStyle!="none"&&P.isNumber(e)){var r=this.getLocale();r||(r="en");var o={style:this.displayStyle,currency:this.currency,useGrouping:this.useGrouping};return this.maximumFractionDigits>-1&&(o.maximumFractionDigits=this.maximumFractionDigits),this.minimumFractionDigits>-1&&(o.minimumFractionDigits=this.minimumFractionDigits),e.toLocaleString(r,o)}return e.toString()},t}(ue);function fn(){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"]}x.addClass("expression",["expression:expression",{name:"format",serializationProperty:"locFormat"},{name:"displayStyle",default:"none",choices:["none","decimal","currency","percent","date"]},{name:"currency",choices:function(){return fn()},default:"USD",visibleIf:function(i){return i.displayStyle==="currency"}},{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:"resetValueIf",visible:!1},{name:"setValueIf",visible:!1},{name:"setValueExpression",visible:!1},{name:"defaultValueExpression",visible:!1},{name:"defaultValue",visible:!1},{name:"correctAnswer",visible:!1},{name:"requiredIf",visible:!1}],function(){return new vr("")},"question"),J.Instance.registerQuestion("expression",function(i){return new vr(i)});var Fu=function(){var i=function(t,e){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(n[o]=r[o])},i(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");i(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}();function pn(i,t,e,n){i.storeOthersAsComment=e?e.storeOthersAsComment:!1,(!i.choices||i.choices.length==0)&&i.choicesByUrl.isEmpty&&(i.choices=e.choices),i.choicesByUrl.isEmpty||i.choicesByUrl.run(n.getTextProcessor())}function _u(i,t,e,n){pn(i,t,e,n),i.locPlaceholder&&i.locPlaceholder.isEmpty&&!e.locPlaceholder.isEmpty&&(i.optionsCaption=e.optionsCaption)}var br={dropdown:{onCellQuestionUpdate:function(i,t,e,n){_u(i,t,e,n)}},checkbox:{onCellQuestionUpdate:function(i,t,e,n){pn(i,t,e,n),i.colCount=t.colCount>-1?t.colCount:e.columnColCount}},radiogroup:{onCellQuestionUpdate:function(i,t,e,n){pn(i,t,e,n),i.colCount=t.colCount>-1?t.colCount:e.columnColCount}},tagbox:{onCellQuestionUpdate:function(i,t,e,n){pn(i,t,e,n)}},text:{},comment:{},boolean:{onCellQuestionUpdate:function(i,t,e,n){i.renderAs=t.renderAs}},expression:{},rating:{}},jt=function(i){Fu(t,i);function t(e,n,r){var o=i.call(this)||this;return o.indexValue=-1,o._hasVisibleCell=!0,o.isColumnsVisibleIf=!0,o.previousChoicesId=void 0,o.colOwnerValue=r,o.createLocalizableString("totalFormat",o),o.createLocalizableString("cellHint",o),o.registerPropertyChangedHandlers(["showInMultipleColumns"],function(){o.doShowInMultipleColumnsChanged()}),o.registerPropertyChangedHandlers(["visible"],function(){o.doColumnVisibilityChanged()}),o.updateTemplateQuestion(void 0,e,n),o}return t.getColumnTypes=function(){var e=[];for(var n in br)e.push(n);return e},t.prototype.getOriginalObj=function(){return this.templateQuestion},t.prototype.getClassNameProperty=function(){return"cellType"},t.prototype.getSurvey=function(e){return this.colOwner?this.colOwner.survey:null},t.prototype.endLoadingFromJson=function(){var e=this;i.prototype.endLoadingFromJson.call(this),this.templateQuestion.autoOtherMode=this.isShowInMultipleColumns,this.templateQuestion.endLoadingFromJson(),this.templateQuestion.onGetSurvey=function(){return e.getSurvey()}},t.prototype.getDynamicPropertyName=function(){return"cellType"},t.prototype.getDynamicType=function(){return this.cellType==="default"?"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(){i.prototype.locStrsChanged.call(this),this.locTitle.strChanged()},t.prototype.addUsedLocales=function(e){i.prototype.addUsedLocales.call(this,e),this.templateQuestion.addUsedLocales(e)},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?!0: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 n=new Array,r=0;r<e.length;r++){var o=e[r];this._visiblechoices.indexOf(o.value)>-1&&n.push(o)}return n},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 n=0;n<e.length;n++)if(e[n].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 this.totalType!="none"||!!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){fn().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,n){return this.colOwner?this.colOwner.getMarkdownHtml(e,n):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 n=this.calcCellQuestionType(e),r=this.createNewQuestion(n);return this.callOnCellQuestionUpdate(r,e),r},t.prototype.startLoadingFromJson=function(e){i.prototype.startLoadingFromJson.call(this,e),e&&!e.cellType&&e.choices&&(e.cellType=this.colOwner.getCellType())},t.prototype.updateCellQuestion=function(e,n,r){r===void 0&&(r=null),this.setQuestionProperties(e,r)},t.prototype.callOnCellQuestionUpdate=function(e,n){var r=e.getType(),o=br[r];o&&o.onCellQuestionUpdate&&o.onCellQuestionUpdate(e,this,this.colOwner,n)},t.prototype.defaultCellTypeChanged=function(){this.updateTemplateQuestion()},t.prototype.calcCellQuestionType=function(e){var n=this.getDefaultCellQuestionType();return e&&this.colOwner&&(n=this.colOwner.getCustomCellType(this,e,n)),n},t.prototype.getDefaultCellQuestionType=function(e){return e||(e=this.cellType),e!=="default"?e:this.colOwner?this.colOwner.getCellType():b.matrix.defaultCellType},t.prototype.updateTemplateQuestion=function(e,n,r){var o=this,s=this.getDefaultCellQuestionType(e),a=this.templateQuestion?this.templateQuestion.getType():"";s!==a&&(this.templateQuestion&&this.removeProperties(a),this.templateQuestionValue=this.createNewQuestion(s),this.templateQuestion.locOwner=this,this.addProperties(s),n&&(this.name=n),r?this.title=r:this.templateQuestion.locTitle.strChanged(),b.serialization.matrixDropdownColumnSerializeTitle&&(this.templateQuestion.locTitle.serializeCallBackText=!0),this.templateQuestion.onPropertyChanged.add(function(l,u){o.propertyValueChanged(u.name,u.oldValue,u.newValue,u.arrayChanges,u.target)}),this.templateQuestion.onItemValuePropertyChanged.add(function(l,u){o.doItemValuePropertyChanged(u.propertyName,u.obj,u.name,u.newValue,u.oldValue)}),this.templateQuestion.isContentElement=!0,this.isLoadingFromJson||(this.templateQuestion.onGetSurvey=function(){return o.getSurvey()}),this.templateQuestion.locTitle.strChanged())},t.prototype.createNewQuestion=function(e){var n=x.createClass(e);return n||(n=x.createClass("text")),n.loadingOwner=this,n.isEditableTemplateElement=!0,n.autoOtherMode=this.isShowInMultipleColumns,this.setQuestionProperties(n),this.setParentQuestionToTemplate(n),n},t.prototype.setParentQuestionToTemplate=function(e){this.colOwner&&this.colOwner.isQuestion&&e.setParentQuestion(this.colOwner)},t.prototype.setQuestionProperties=function(e,n){var r=this;if(n===void 0&&(n=null),this.templateQuestion){var o=new fe().toJsonObject(this.templateQuestion,!0);if(n&&n(o),o.type=e.getType(),this.cellType==="default"&&this.colOwner&&this.colOwner.hasChoices()&&delete o.choices,delete o.itemComponent,this.jsonObj&&o.type==="rating"&&Object.keys(this.jsonObj).forEach(function(a){o[a]=r.jsonObj[a]}),o.choicesOrder==="random"){o.choicesOrder="none";var s=this.templateQuestion.visibleChoices;Array.isArray(s)&&(o.choices=s)}new fe().toObject(o,e),e.isContentElement=this.templateQuestion.isContentElement,this.previousChoicesId=void 0,e.loadedChoicesFromServerCallback=function(){if(r.isShowInMultipleColumns&&!(r.previousChoicesId&&r.previousChoicesId!==e.id)){r.previousChoicesId=e.id;var a=e.visibleChoices;r.templateQuestion.choices=a,r.propertyValueChanged("choices",a,a)}}}},t.prototype.propertyValueChanged=function(e,n,r,o,s){if(i.prototype.propertyValueChanged.call(this,e,n,r,o,s),e==="isRequired"&&this.updateIsRenderedRequired(r),!(!this.colOwner||this.isLoadingFromJson)){if(this.isShowInMultipleColumns){if(e==="choicesOrder")return;["visibleChoices","choices"].indexOf(e)>-1&&this.colOwner.onShowInMultipleColumnsChanged(this)}x.hasOriginalProperty(this,e)&&this.colOwner.onColumnPropertyChanged(this,e,r)}},t.prototype.doItemValuePropertyChanged=function(e,n,r,o,s){x.hasOriginalProperty(n,r)&&this.colOwner!=null&&!this.isLoadingFromJson&&this.colOwner.onColumnItemValuePropertyChanged(this,e,n,r,o,s)},t.prototype.doShowInMultipleColumnsChanged=function(){this.colOwner!=null&&this.colOwner.onShowInMultipleColumnsChanged(this),this.templateQuestion&&(this.templateQuestion.autoOtherMode=this.isShowInMultipleColumns)},t.prototype.doColumnVisibilityChanged=function(){this.colOwner!=null&&!this.isDesignMode&&this.colOwner.onColumnVisibilityChanged(this)},t.prototype.getProperties=function(e){return x.getDynamicPropertiesByObj(this,e)},t.prototype.removeProperties=function(e){for(var n=this.getProperties(e),r=0;r<n.length;r++){var o=n[r];delete this[o.name],o.serializationProperty&&delete this[o.serializationProperty]}},t.prototype.addProperties=function(e){var n=this.getProperties(e);x.addDynamicPropertiesIntoObj(this,this.templateQuestion,n)},t}(z);x.addClass("matrixdropdowncolumn",[{name:"!name",isUnique:!0},{name:"title",serializationProperty:"locTitle",dependsOn:"name",onPropertyEditorUpdate:function(i,t){i&&t&&(t.placeholder=i.name)}},{name:"cellHint",serializationProperty:"locCellHint",visible:!1},{name:"cellType",default:"default",choices:function(){var i=jt.getColumnTypes();return i.splice(0,0,"default"),i}},{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(i,t){i&&t&&(t.value=i.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(i){return i.isSupportMultipleColumns}},{name:"validators:validators",baseClassName:"surveyvalidator",classNamePart:"validator"},{name:"totalType",visibleIf:function(i){return!i.isShowInMultipleColumns},default:"none",choices:["none","sum","count","min","max","avg"]},{name:"totalExpression:expression",visibleIf:function(i){return!i.isShowInMultipleColumns}},{name:"totalFormat",serializationProperty:"locTotalFormat",visibleIf:function(i){return i.hasTotal}},{name:"totalDisplayStyle",visibleIf:function(i){return i.hasTotal},default:"none",choices:["none","decimal","currency","percent"]},{name:"totalAlignment",visibleIf:function(i){return i.hasTotal},default:"auto",choices:["auto","left","center","right"]},{name:"totalCurrency",visibleIf:function(i){return i.hasTotal},choices:function(){return fn()},default:"USD"},{name:"totalMaximumFractionDigits:number",default:-1,visibleIf:function(i){return i.hasTotal}},{name:"totalMinimumFractionDigits:number",default:-1,visibleIf:function(i){return i.hasTotal}},{name:"renderAs",default:"default",visible:!1}],function(){return new jt("")});var Cr=function(){var i=function(t,e){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(n[o]=r[o])},i(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");i(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),Nt=function(i,t,e,n){var r=arguments.length,o=r<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,e):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(i,t,e,n);else for(var a=i.length-1;a>=0;a--)(s=i[a])&&(o=(r<3?s(o):r>3?s(t,e,o):s(t,e))||o);return r>3&&o&&Object.defineProperty(t,e,o),o},Bu=function(i,t){for(var e=0,n=t.length,r=i.length;e<n;e++,r++)i[r]=t[e];return i};function _o(i,t,e){return i+(t?"-error":"")+(e?"-detail":"")}var De=function(){function i(){this.minWidth="",this.width="",this.colSpans=1,this.isActionsCell=!1,this.isErrorsCell=!1,this.isDragHandlerCell=!1,this.isDetailRowCell=!1,this.classNameValue="",this.idValue=i.counter++}return Object.defineProperty(i.prototype,"requiredText",{get:function(){return this.column&&this.column.isRenderedRequired?this.column.requiredText:void 0},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"hasQuestion",{get:function(){return!!this.question&&!this.isErrorsCell},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"hasTitle",{get:function(){return!!this.locTitle},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"hasPanel",{get:function(){return!!this.panel},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"id",{get:function(){var t=this.question?this.question.id:this.idValue.toString();return this.isChoice&&(t+="-"+(Number.isInteger(this.choiceIndex)?"index"+this.choiceIndex.toString():this.item.id)),_o(t,this.isErrorsCell,this.isDetailRowCell)},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"item",{get:function(){return this.itemValue},set:function(t){this.itemValue=t,t&&(t.hideCaption=!0)},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"isChoice",{get:function(){return!!this.item},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"isItemChoice",{get:function(){return this.isChoice&&!this.isOtherChoice},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"choiceValue",{get:function(){return this.isChoice?this.item.value:null},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"isCheckbox",{get:function(){return this.isItemChoice&&this.question.isDescendantOf("checkbox")},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"isRadio",{get:function(){return this.isItemChoice&&this.question.isDescendantOf("radiogroup")},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"isFirstChoice",{get:function(){return this.choiceIndex===0},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"className",{get:function(){var t=new O().append(this.classNameValue);return this.hasQuestion&&t.append(this.question.cssClasses.hasError,this.question.errors.length>0).append(this.question.cssClasses.answered,this.question.isAnswered),t.toString()},set:function(t){this.classNameValue=t},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"cellQuestionWrapperClassName",{get:function(){return this.cell.getQuestionWrapperClassName(this.matrix.cssClasses.cellQuestionWrapper)},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"isVisible",{get:function(){var t;return!this.hasQuestion&&!this.isErrorsCell||!(!((t=this.matrix)===null||t===void 0)&&t.isMobile)||this.question.isVisible},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"showResponsiveTitle",{get:function(){var t;return this.hasQuestion&&((t=this.matrix)===null||t===void 0?void 0:t.isMobile)},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"responsiveTitleCss",{get:function(){return new O().append(this.matrix.cssClasses.cellResponsiveTitle).toString()},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"responsiveLocTitle",{get:function(){return this.cell.column.locTitle},enumerable:!1,configurable:!0}),Object.defineProperty(i.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 t=this.cell.column.cellHint;return t?t.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}),i.prototype.getTitle=function(){return this.matrix&&this.matrix.showHeader?this.headers:""},i.prototype.calculateFinalClassName=function(t){var e=this.cell.question.cssClasses,n=new O().append(e.itemValue,!!e).append(e.asCell,!!e);return n.append(t.cell,n.isEmpty()&&!!t).append(t.choiceCell,this.isChoice).toString()},i.prototype.focusIn=function(){this.question&&this.question.focusIn()},i.counter=1,i}(),Pr=function(i){Cr(t,i);function t(e,n){n===void 0&&(n=!1);var r=i.call(this)||this;return r.cssClasses=e,r.isDetailRow=n,r.hasEndActions=!1,r.isErrorsRow=!1,r.cells=[],r.idValue=t.counter++,r}return Object.defineProperty(t.prototype,"id",{get:function(){var e;return _o(((e=this.row)===null||e===void 0?void 0:e.id)||this.idValue.toString(),this.isErrorsRow,this.isDetailRow)},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,n;return new O().append(this.cssClasses.row).append(this.cssClasses.detailRow,this.isDetailRow).append(this.cssClasses.rowHasPanel,(e=this.row)===null||e===void 0?void 0:e.hasPanel).append(this.cssClasses.expandedRow,((n=this.row)===null||n===void 0?void 0:n.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.prototype.focusCell=function(e){if(this.rootElement){var n=":scope td:nth-of-type("+(e+1)+") input, :scope td:nth-of-type("+(e+1)+") button",r=this.rootElement.querySelectorAll(n)[0];r&&r.focus()}},t.counter=1,Nt([h({defaultValue:!1})],t.prototype,"isGhostRow",void 0),Nt([h({defaultValue:!1})],t.prototype,"isAdditionalClasses",void 0),Nt([h({defaultValue:!0})],t.prototype,"visible",void 0),t}(z),Bo=function(i){Cr(t,i);function t(e){var n=i.call(this,e)||this;return n.isErrorsRow=!0,n}return Object.defineProperty(t.prototype,"attributes",{get:function(){return{}},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"className",{get:function(){return new O().append(this.cssClasses.row).append(this.cssClasses.errorRow).toString()},enumerable:!1,configurable:!0}),t.prototype.onAfterCreated=function(){var e=this,n=function(){e.visible=e.cells.some(function(r){return r.question&&r.question.hasVisibleErrors})};this.cells.forEach(function(r){r.question&&r.question.registerFunctionOnPropertyValueChanged("hasVisibleErrors",n)}),n()},t}(Pr),Vr=function(i){Cr(t,i);function t(e){var n=i.call(this)||this;return n.matrix=e,n._renderedRows=[],n.renderedRowsAnimation=new Qe(n.getRenderedRowsAnimationOptions(),function(r){n._renderedRows=r},function(){return n._renderedRows}),n.hasActionCellInRowsValues={},n.build(),n}return t.prototype.getIsAnimationAllowed=function(){return i.prototype.getIsAnimationAllowed.call(this)&&this.matrix.animationAllowed},t.prototype.getRenderedRowsAnimationOptions=function(){var e=this,n=function(o){o.querySelectorAll(":scope > td > *").forEach(function(s){Ae(s)})},r=function(o){o.querySelectorAll(":scope > td > *").forEach(function(s){Ce(s)})};return{isAnimationEnabled:function(){return e.animationAllowed},getRerenderEvent:function(){return e.onElementRerendered},getAnimatedElement:function(o){return o.getRootElement()},getLeaveOptions:function(){return{cssClass:e.cssClasses.rowLeave,onBeforeRunAnimation:n,onAfterRunAnimation:r}},getEnterOptions:function(o,s){return{cssClass:e.cssClasses.rowEnter,onBeforeRunAnimation:n,onAfterRunAnimation:r}},getKey:function(o){return o.id}}},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 this.matrix.getErrorLocation()==="top"},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"showCellErrorsBottom",{get:function(){return this.matrix.getErrorLocation()==="bottom"},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 n=this.matrix.canAddRow&&e,r=n,o=n;r&&(this.matrix.getAddRowLocation()==="default"?r=!this.matrix.isColumnLayoutHorizontal:r=this.matrix.getAddRowLocation()!=="bottom"),o&&this.matrix.getAddRowLocation()!=="topBottom"&&(o=!r),this.setPropertyValue("showAddRow",this.matrix.canAddRow),this.setPropertyValue("showAddRowOnTop",r),this.setPropertyValue("showAddRowOnBottom",o)},t.prototype.onAddedRow=function(e,n){if(!(this.getRenderedDataRowCount()>=this.matrix.visibleRows.length)){var r=this.getRenderedRowIndexByIndex(n);this.rowsActions.splice(n,0,this.buildRowActions(e)),this.addHorizontalRow(this.rows,e,r),this.updateShowTableAndAddRow()}},t.prototype.getRenderedRowIndexByIndex=function(e){for(var n=0,r=0,o=0;o<this.rows.length;o++){if(r===e){(this.rows[o].isErrorsRow||this.rows[o].isDetailRow)&&(n++,o+1<this.rows.length&&this.rows[o+1].isDetailRow&&n++);break}n++,!this.rows[o].isErrorsRow&&!this.rows[o].isDetailRow&&r++}return r<e?this.rows.length:n},t.prototype.getRenderedDataRowCount=function(){for(var e=0,n=0;n<this.rows.length;n++)!this.rows[n].isErrorsRow&&!this.rows[n].isDetailRow&&e++;return e},t.prototype.onRemovedRow=function(e){var n=this.getRenderedRowIndex(e);if(!(n<0)){this.rowsActions.splice(n,1);var r=1;n<this.rows.length-1&&this.showCellErrorsBottom&&this.rows[n+1].isErrorsRow&&r++,n<this.rows.length-1&&(this.rows[n+1].isDetailRow||this.showCellErrorsBottom&&n+1<this.rows.length-1&&this.rows[n+2].isDetailRow)&&r++,n>0&&this.showCellErrorsTop&&this.rows[n-1].isErrorsRow&&(n--,r++),this.rows.splice(n,r),this.updateShowTableAndAddRow()}},t.prototype.onDetailPanelChangeVisibility=function(e,n){var r=this.getRenderedRowIndex(e);if(!(r<0)){var o=r;this.showCellErrorsBottom&&o++;var s=o<this.rows.length-1&&this.rows[o+1].isDetailRow?o+1:-1;if(!(n&&s>-1||!n&&s<0))if(n){var a=this.createDetailPanelRow(e,this.rows[r]);this.rows.splice(o+1,0,a)}else this.rows.splice(s,1)}},t.prototype.focusActionCell=function(e,n){var r=this.rows[this.rows.length-1];if(this.matrix.isColumnLayoutHorizontal){var o=this.getRenderedRowIndex(e);r=this.rows[o]}r==null||r.focusCell(n)},t.prototype.getRenderedRowIndex=function(e){for(var n=0;n<this.rows.length;n++)if(this.rows[n].row==e)return n;return-1},t.prototype.buildRowsActions=function(){this.rowsActions=[];for(var e=this.matrix.visibleRows,n=0;n<e.length;n++)this.rowsActions.push(this.buildRowActions(e[n]))},t.prototype.createRenderedRow=function(e,n){return n===void 0&&(n=!1),new Pr(e,n)},t.prototype.createErrorRenderedRow=function(e){return new Bo(e)},t.prototype.buildHeader=function(){var e=this.matrix.isColumnLayoutHorizontal&&this.matrix.showHeader,n=e||this.matrix.hasRowText&&!this.matrix.isColumnLayoutHorizontal;if(this.setPropertyValue("showHeader",n),!!n){if(this.headerRowValue=this.createRenderedRow(this.cssClasses),this.isRowsDragAndDrop&&this.headerRow.cells.push(this.createHeaderCell(null,"action",this.cssClasses.actionsCellDrag)),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 r=0;r<this.matrix.columns.length;r++){var o=this.matrix.columns[r];o.isColumnVisible&&(this.matrix.IsMultiplyColumn(o)?this.createMutlipleColumnsHeader(o):this.headerRow.cells.push(this.createHeaderCell(o)))}else{for(var s=this.matrix.visibleRows,r=0;r<s.length;r++){var a=this.createTextCell(s[r].locText);this.setHeaderCellCssClasses(a),a.row=s[r],this.headerRow.cells.push(a)}if(this.matrix.hasFooter){var a=this.createTextCell(this.matrix.getFooterText());this.setHeaderCellCssClasses(a),this.headerRow.cells.push(a)}}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 O().append(e.className).append(this.cssClasses.footerTotalCell).toString(),this.footerRow.cells.push(e)}for(var n=this.matrix.visibleTotalRow.cells,r=0;r<n.length;r++){var o=n[r];if(o.column.isColumnVisible)if(this.matrix.IsMultiplyColumn(o.column))this.createMutlipleColumnsFooter(this.footerRow,o);else{var s=this.createEditCell(o);o.column&&this.setCellWidth(o.column,s),s.className=new O().append(s.className).append(this.cssClasses.footerCell).toString(),this.footerRow.cells.push(s)}}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 this.hasActionCellInRowsValues[e]===void 0&&(this.hasActionCellInRowsValues[e]=this.hasActionsCellInLocaltion(e)),this.hasActionCellInRowsValues[e]},t.prototype.hasActionsCellInLocaltion=function(e){var n=this;return e=="end"&&this.hasRemoveRows?!0:this.matrix.visibleRows.some(function(r,o){return!n.isValueEmpty(n.getRowActions(o,e))})},t.prototype.canRemoveRow=function(e){return this.matrix.canRemoveRow(e)},t.prototype.buildHorizontalRows=function(){for(var e=this.matrix.visibleRows,n=[],r=0;r<e.length;r++)this.addHorizontalRow(n,e[r]);return n},t.prototype.addHorizontalRow=function(e,n,r){r===void 0&&(r=-1);var o=this.createHorizontalRow(n),s=this.createErrorRow(o);if(o.row=n,r<0&&(r=e.length),this.matrix.isMobile){for(var a=[],l=0;l<o.cells.length;l++)this.showCellErrorsTop&&!s.cells[l].isEmpty&&a.push(s.cells[l]),a.push(o.cells[l]),this.showCellErrorsBottom&&!s.cells[l].isEmpty&&a.push(s.cells[l]);o.cells=a,e.splice(r,0,o)}else e.splice.apply(e,Bu([r,0],this.showCellErrorsTop?[s,o]:[o,s])),r++;n.isDetailPanelShowing&&e.splice(r+1,0,this.createDetailPanelRow(n,o))},t.prototype.getRowDragCell=function(e){var n=new De,r=this.matrix.lockedRowCount;return n.isDragHandlerCell=r<1||e>=r,n.isEmpty=!n.isDragHandlerCell,n.className=this.getActionsCellClassName(n),n.row=this.matrix.visibleRows[e],n},t.prototype.getActionsCellClassName=function(e){var n=this;e===void 0&&(e=null);var r=new O().append(this.cssClasses.actionsCell).append(this.cssClasses.actionsCellDrag,e==null?void 0:e.isDragHandlerCell).append(this.cssClasses.detailRowCell,e==null?void 0:e.isDetailRowCell).append(this.cssClasses.verticalCell,!this.matrix.isColumnLayoutHorizontal);if(e.isActionsCell){var o=e.item.value.actions;this.cssClasses.actionsCellPrefix&&o.forEach(function(s){r.append(n.cssClasses.actionsCellPrefix+"--"+s.id)})}return r.toString()},t.prototype.getRowActionsCell=function(e,n,r){r===void 0&&(r=!1);var o=this.getRowActions(e,n);if(!this.isValueEmpty(o)){var s=new De,a=this.matrix.allowAdaptiveActions?new en:new Ee;this.matrix.survey&&this.matrix.survey.getCss().actionBar&&(a.cssClasses=this.matrix.survey.getCss().actionBar),a.setItems(o);var l=new k(a);return s.item=l,s.isActionsCell=!0,s.isDragHandlerCell=!1,s.isDetailRowCell=r,s.className=this.getActionsCellClassName(s),s.row=this.matrix.visibleRows[e],s}return null},t.prototype.getRowActions=function(e,n){var r=this.rowsActions[e];return Array.isArray(r)?r.filter(function(o){return o.location||(o.location="start"),o.location===n}):[]},t.prototype.buildRowActions=function(e){var n=[];return this.setDefaultRowActions(e,n),this.matrix.survey&&(n=this.matrix.survey.getUpdatedMatrixRowActions(this.matrix,e,n)),n},Object.defineProperty(t.prototype,"showRemoveButtonAsIcon",{get:function(){return b.matrix.renderRemoveAsIcon&&this.matrix.survey&&this.matrix.survey.css.root==="sd-root-modern"},enumerable:!1,configurable:!0}),t.prototype.setDefaultRowActions=function(e,n){var r=this,o=this.matrix;this.hasRemoveRows&&this.canRemoveRow(e)&&(this.showRemoveButtonAsIcon?n.push(new $({id:"remove-row",iconName:"icon-delete-24x24",iconSize:"auto",component:"sv-action-bar-item",innerCss:new O().append(this.matrix.cssClasses.button).append(this.matrix.cssClasses.buttonRemove).toString(),location:"end",showTitle:!1,title:o.removeRowText,enabled:!o.isInputReadOnly,data:{row:e,question:o},action:function(){o.removeRowUI(e)}})):n.push(new $({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?n.unshift(new $({id:"show-detail-mobile",title:"Show Details",showTitle:!0,location:"end",action:function(s){s.title=e.isDetailPanelShowing?r.matrix.getLocalizationString("showDetails"):r.matrix.getLocalizationString("hideDetails"),e.showHideDetailPanelClick()}})):n.push(new $({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 n=this.createErrorRenderedRow(this.cssClasses),r=0;r<e.cells.length;r++){var o=e.cells[r];o.hasQuestion?this.matrix.IsMultiplyColumn(o.cell.column)?o.isFirstChoice?n.cells.push(this.createErrorCell(o.cell)):n.cells.push(this.createEmptyCell(!0)):n.cells.push(this.createErrorCell(o.cell)):n.cells.push(this.createEmptyCell(!0))}return n.onAfterCreated(),n},t.prototype.createHorizontalRow=function(e){var n=this.createRenderedRow(this.cssClasses);if(this.isRowsDragAndDrop){var r=this.matrix.visibleRows.indexOf(e);n.cells.push(this.getRowDragCell(r))}if(this.addRowActionsCell(e,n,"start"),this.matrix.hasRowText){var o=this.createTextCell(e.locText);o.row=e,n.cells.push(o),this.setCellWidth(null,o),o.className=new O().append(o.className).append(this.cssClasses.rowTextCell).append(this.cssClasses.columnTitleCell,!this.matrix.isColumnLayoutHorizontal).append(this.cssClasses.detailRowText,e.hasPanel).toString()}for(var s=0;s<e.cells.length;s++){var a=e.cells[s];if(a.column.isColumnVisible)if(this.matrix.IsMultiplyColumn(a.column))this.createMutlipleEditCells(n,a);else{a.column.isShowInMultipleColumns&&a.question.visibleChoices.map(function(u){return u.hideCaption=!1});var o=this.createEditCell(a);n.cells.push(o),this.setCellWidth(a.column,o)}}return this.addRowActionsCell(e,n,"end"),n},t.prototype.addRowActionsCell=function(e,n,r){var o=this.matrix.visibleRows.indexOf(e);if(this.hasActionCellInRows(r)){var s=this.getRowActionsCell(o,r,n.isDetailRow);if(s)n.cells.push(s),n.hasEndActions=!0;else{var a=new De;a.isEmpty=!0,a.isDetailRowCell=n.isDetailRow,n.cells.push(a)}}},t.prototype.createDetailPanelRow=function(e,n){var r=this.matrix.isDesignMode,o=this.createRenderedRow(this.cssClasses,!0);o.row=e;var s=new De;this.matrix.hasRowText&&(s.colSpans=2),s.isEmpty=!0,r||o.cells.push(s);var a=null;this.hasActionCellInRows("end")&&(a=new De,a.isEmpty=!0);var l=new De;return l.panel=e.detailPanel,l.colSpans=n.cells.length-(r?0:s.colSpans)-(a?a.colSpans:0),l.className=this.cssClasses.detailPanelCell,o.cells.push(l),a&&(this.matrix.isMobile?this.addRowActionsCell(e,o,"end"):o.cells.push(a)),typeof this.matrix.onCreateDetailPanelRenderedRowCallback=="function"&&this.matrix.onCreateDetailPanelRenderedRowCallback(o),o},t.prototype.buildVerticalRows=function(){for(var e=this.matrix.columns,n=[],r=0;r<e.length;r++){var o=e[r];if(o.isColumnVisible)if(this.matrix.IsMultiplyColumn(o))this.createMutlipleVerticalRows(n,o,r);else{var s=this.createVerticalRow(o,r),a=this.createErrorRow(s);this.showCellErrorsTop?(n.push(a),n.push(s)):(n.push(s),n.push(a))}}return this.hasActionCellInRows("end")&&n.push(this.createEndVerticalActionRow()),n},t.prototype.createMutlipleVerticalRows=function(e,n,r){var o=this.getMultipleColumnChoices(n);if(o)for(var s=0;s<o.length;s++){var a=this.createVerticalRow(n,r,o[s],s),l=this.createErrorRow(a);this.showCellErrorsTop?(e.push(l),e.push(a)):(e.push(a),e.push(l))}},t.prototype.createVerticalRow=function(e,n,r,o){r===void 0&&(r=null),o===void 0&&(o=-1);var s=this.createRenderedRow(this.cssClasses);if(this.matrix.showHeader){var a=r?r.locText:e.locTitle,l=this.createTextCell(a);l.column=e,l.className=new O().append(l.className).append(this.cssClasses.rowTextCell).append(this.cssClasses.columnTitleCell).toString(),s.cells.push(l)}for(var u=this.matrix.visibleRows,d=0;d<u.length;d++){var v=r,V=o>=0?o:d,T=u[d].cells[n],R=r?T.question.visibleChoices:void 0;R&&V<R.length&&(v=R[V]);var N=this.createEditCell(T,v);N.item=v,N.choiceIndex=V,s.cells.push(N)}return this.matrix.hasTotal&&s.cells.push(this.createEditCell(this.matrix.visibleTotalRow.cells[n])),s},t.prototype.createEndVerticalActionRow=function(){var e=this.createRenderedRow(this.cssClasses);this.matrix.showHeader&&e.cells.push(this.createEmptyCell());for(var n=this.matrix.visibleRows,r=0;r<n.length;r++)e.cells.push(this.getRowActionsCell(r,"end"));return this.matrix.hasTotal&&e.cells.push(this.createEmptyCell()),e},t.prototype.createMutlipleEditCells=function(e,n,r){r===void 0&&(r=!1);var o=r?this.getMultipleColumnChoices(n.column):n.question.visibleChoices;if(o)for(var s=0;s<o.length;s++){var a=this.createEditCell(n,r?void 0:o[s]);r||(this.setItemCellCssClasses(a),a.choiceIndex=s),e.cells.push(a)}},t.prototype.setItemCellCssClasses=function(e){e.className=new O().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,n){n===void 0&&(n=void 0);var r=new De;return r.cell=e,r.row=e.row,r.column=e.column,r.question=e.question,r.matrix=this.matrix,r.item=n,r.isOtherChoice=!!n&&!!e.question&&e.question.otherItem===n,r.className=r.calculateFinalClassName(this.cssClasses),r},t.prototype.createErrorCell=function(e,n){var r=new De;return r.question=e.question,r.row=e.row,r.matrix=this.matrix,r.isErrorsCell=!0,r.className=new O().append(this.cssClasses.cell).append(this.cssClasses.errorsCell).append(this.cssClasses.errorsCellTop,this.showCellErrorsTop).append(this.cssClasses.errorsCellBottom,this.showCellErrorsBottom).toString(),r},t.prototype.createMutlipleColumnsFooter=function(e,n){this.createMutlipleEditCells(e,n,!0)},t.prototype.createMutlipleColumnsHeader=function(e){var n=this.getMultipleColumnChoices(e);if(n)for(var r=0;r<n.length;r++){var o=this.createTextCell(n[r].locText);this.setHeaderCell(e,o),this.setHeaderCellCssClasses(o),this.headerRow.cells.push(o)}},t.prototype.getMultipleColumnChoices=function(e){var n=e.templateQuestion.choices;return n&&Array.isArray(n)&&n.length==0?[].concat(this.matrix.choices,e.getVisibleMultipleChoices()):(n=e.getVisibleMultipleChoices(),!n||!Array.isArray(n)?null:n)},t.prototype.setHeaderCellCssClasses=function(e,n,r){e.className=new O().append(this.cssClasses.headerCell).append(this.cssClasses.columnTitleCell,this.matrix.isColumnLayoutHorizontal).append(this.cssClasses.emptyCell,!!e.isEmpty).append(this.cssClasses.cell+"--"+n,!!n).append(r,!!r).toString()},t.prototype.createHeaderCell=function(e,n,r){n===void 0&&(n=null);var o=e?this.createTextCell(e.locTitle):this.createEmptyCell();return o.column=e,this.setHeaderCell(e,o),n||(n=e&&e.cellType!=="default"?e.cellType:this.matrix.cellType),this.setHeaderCellCssClasses(o,n,r),o},t.prototype.setHeaderCell=function(e,n){this.setCellWidth(e,n)},t.prototype.setCellWidth=function(e,n){n.minWidth=e!=null?this.matrix.getColumnWidth(e):this.matrix.getRowTitleWidth(),n.width=e!=null?e.width:this.matrix.getRowTitleWidth()},t.prototype.createTextCell=function(e){var n=new De;return n.locTitle=e,this.cssClasses.cell&&(n.className=this.cssClasses.cell),n},t.prototype.createEmptyCell=function(e){e===void 0&&(e=!1);var n=this.createTextCell(null);return n.isEmpty=!0,n.className=new O().append(this.cssClasses.cell).append(this.cssClasses.emptyCell).append(this.cssClasses.errorsCell,e).toString(),n},Nt([ae({onPush:function(e,n,r){r.updateRenderedRows()},onRemove:function(e,n,r){r.updateRenderedRows()}})],t.prototype,"rows",void 0),Nt([ae()],t.prototype,"_renderedRows",void 0),t}(z),dn=function(){var i=function(t,e){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(n[o]=r[o])},i(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");i(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),wr=function(){function i(t,e,n){this.column=t,this.row=e,this.data=n,this.questionValue=this.createQuestion(t,e,n),this.questionValue.updateCustomWidget(),this.updateCellQuestionTitleDueToAccessebility(e)}return i.prototype.updateCellQuestionTitleDueToAccessebility=function(t){var e=this;this.questionValue.locTitle.onGetTextCallback=function(n){if(!t||!t.getSurvey())return e.questionValue.title;var r=t.getAccessbilityText();return r?e.column.colOwner.getCellAriaLabel(r,e.questionValue.title):e.questionValue.title}},i.prototype.locStrsChanged=function(){this.question.locStrsChanged()},i.prototype.createQuestion=function(t,e,n){var r=this,o=n.createQuestion(this.row,this.column);return o.readOnlyCallback=function(){return!r.row.isRowEnabled()},o.validateValueCallback=function(){return n.validateCell(e,t.name,e.value)},Ne.getProperties(t.getType()).forEach(function(s){var a=s.name;t[a]!==void 0&&(o[a]=t[a])}),o},Object.defineProperty(i.prototype,"question",{get:function(){return this.questionValue},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"value",{get:function(){return this.question.value},set:function(t){this.question.value=t},enumerable:!1,configurable:!0}),i.prototype.getQuestionWrapperClassName=function(t){return t},i.prototype.runCondition=function(t,e){this.question.runCondition(t,e)},i}(),ku=function(i){dn(t,i);function t(e,n,r){var o=i.call(this,e,n,r)||this;return o.column=e,o.row=n,o.data=r,o.updateCellQuestion(),o}return t.prototype.createQuestion=function(e,n,r){var o=x.createClass("expression");return o.setSurveyImpl(n),o},t.prototype.locStrsChanged=function(){this.updateCellQuestion(),i.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(e){var n=i.prototype.getQuestionWrapperClassName.call(this,e);if(!n)return n;this.question.expression&&this.question.expression!="''"&&(n+=" "+e+"--expression");var r=this.column.totalAlignment;return r==="auto"&&this.column.cellType==="dropdown"&&(r="left"),n+" "+e+"--"+r},t.prototype.getTotalExpression=function(){if(this.column.totalExpression)return this.column.totalExpression;if(this.column.totalType=="none")return"''";var e=this.column.totalType+"InArray";return U.Instance.hasFunction(e)?e+"({self}, '"+this.column.name+"')":""},t}(wr),qu=function(i){dn(t,i);function t(e,n,r){var o=i.call(this,n)||this;return o.row=e,o.variableName=n,o.parentTextProcessor=r,o}return 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.RowValueVariableName,_e.RowNameVariableName].indexOf(e.name)>-1?(e.isExists=!0,e.value=this.row.rowName,!0):!1},t}(mr),_e=function(){function i(t,e){var n=this;this.isSettingValue=!1,this.detailPanelValue=null,this.visibleValue=!0,this.cells=[],this.isCreatingDetailPanel=!1,this.data=t,this.subscribeToChanges(e),this.textPreProcessor=new qu(this,i.RowVariableName,t?t.getParentTextProcessor():null),this.showHideDetailPanelClick=function(){if(n.getSurvey().isDesignMode)return!0;n.showHideDetailPanel()},this.idValue=i.getId()}return i.getId=function(){return"srow_"+i.idCounter++},Object.defineProperty(i.prototype,"id",{get:function(){return this.idValue},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"rowName",{get:function(){return null},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"dataName",{get:function(){return this.rowName},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"text",{get:function(){return this.rowName},enumerable:!1,configurable:!0}),i.prototype.isRowEnabled=function(){return!0},i.prototype.isRowHasEnabledCondition=function(){return!1},Object.defineProperty(i.prototype,"isVisible",{get:function(){return this.visible&&this.isItemVisible()},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"visible",{get:function(){return this.visibleValue},set:function(t){var e;this.visible!==t&&(this.visibleValue=t,(e=this.data)===null||e===void 0||e.onRowVisibilityChanged(this))},enumerable:!1,configurable:!0}),i.prototype.isItemVisible=function(){return!0},Object.defineProperty(i.prototype,"value",{get:function(){for(var t={},e=this.questions,n=0;n<e.length;n++){var r=e[n];r.isEmpty()||(t[r.getValueName()]=r.value),r.comment&&this.getSurvey()&&this.getSurvey().storeOthersAsComment&&(t[r.getValueName()+z.commentSuffix]=r.comment)}return t},set:function(t){this.isSettingValue=!0,this.subscribeToChanges(t);for(var e=this.questions,n=0;n<e.length;n++){var r=e[n],o=this.getCellValue(t,r.getValueName()),s=r.comment,a=t?t[r.getValueName()+z.commentSuffix]:"";a==null&&(a=""),r.updateValueFromSurvey(o),(a||this.isTwoValueEquals(s,r.comment))&&r.updateCommentFromSurvey(a),r.onSurveyValueChanged(o)}this.isSettingValue=!1},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"locText",{get:function(){return null},enumerable:!1,configurable:!0}),i.prototype.getAccessbilityText=function(){return this.locText&&this.locText.renderedHtml},Object.defineProperty(i.prototype,"hasPanel",{get:function(){return this.data?this.data.hasDetailPanel(this):!1},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"detailPanel",{get:function(){return this.detailPanelValue},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"detailPanelId",{get:function(){return this.detailPanel?this.detailPanel.id:""},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"isDetailPanelShowing",{get:function(){return this.data?this.data.getIsDetailPanelShowing(this):!1},enumerable:!1,configurable:!0}),i.prototype.setIsDetailPanelShowing=function(t){!t&&this.detailPanel&&this.detailPanel.onHidingContent(),this.data&&this.data.setIsDetailPanelShowing(this,t),this.onDetailPanelShowingChanged&&this.onDetailPanelShowingChanged()},i.prototype.showHideDetailPanel=function(){this.isDetailPanelShowing?this.hideDetailPanel():this.showDetailPanel()},i.prototype.showDetailPanel=function(){this.ensureDetailPanel(),this.detailPanelValue&&this.setIsDetailPanelShowing(!0)},i.prototype.hideDetailPanel=function(t){t===void 0&&(t=!1),this.setIsDetailPanelShowing(!1),t&&(this.detailPanelValue=null)},i.prototype.ensureDetailPanel=function(){if(!this.isCreatingDetailPanel&&!(this.detailPanelValue||!this.hasPanel||!this.data)){this.isCreatingDetailPanel=!0,this.detailPanelValue=this.data.createRowDetailPanel(this);var t=this.detailPanelValue.questions,e=this.data.getRowValue(this.data.getRowIndex(this));if(!P.isValueEmpty(e))for(var n=0;n<t.length;n++){var r=t[n].getValueName(),o=this.editingObj?x.getObjPropertyValue(this.editingObj,r):e[r];P.isValueEmpty(o)||(t[n].value=o)}this.detailPanelValue.setSurveyImpl(this),this.isCreatingDetailPanel=!1}},i.prototype.getAllValues=function(){return this.value},i.prototype.getFilteredValues=function(){var t=this.data?this.data.getDataFilteredValues():{},e=this.validationValues;if(e)for(var n in e)t[n]=e[n];return t.row=this.getAllValues(),this.applyRowVariablesToValues(t,this.rowIndex),t},i.prototype.getFilteredProperties=function(){return{survey:this.getSurvey(),row:this}},i.prototype.applyRowVariablesToValues=function(t,e){t[i.IndexVariableName]=e,t[i.RowValueVariableName]=this.rowName,t[i.RowNameVariableName]=this.rowName},i.prototype.runCondition=function(t,e,n){if(this.data){t[i.OwnerVariableName]=this.data.getFilteredData();var r=this.rowIndex;this.applyRowVariablesToValues(t,r);var o=P.createCopy(e);o[i.RowVariableName]=this;var s=r>0?this.data.getRowValue(this.rowIndex-1):this.value;n?(t[i.RowVariableName]=s,this.setRowsVisibleIfValues(t),this.visible=new de(n).run(t,e)):this.visible=!0;for(var a=0;a<this.cells.length;a++)a>0&&mt(this.value,s),t[i.RowVariableName]=s,this.cells[a].runCondition(t,o);this.detailPanel&&this.detailPanel.runCondition(t,o),this.isRowHasEnabledCondition()&&this.onQuestionReadOnlyChanged()}},i.prototype.updateElementVisibility=function(){this.cells.forEach(function(t){return t.question.updateElementVisibility()}),this.detailPanel&&this.detailPanel.updateElementVisibility()},i.prototype.setRowsVisibleIfValues=function(t){},i.prototype.getNamesWithDefaultValues=function(){var t=[];return this.questions.forEach(function(e){e.isValueDefault&&t.push(e.getValueName())}),t},i.prototype.clearValue=function(t){for(var e=this.questions,n=0;n<e.length;n++)e[n].clearValue(t)},i.prototype.onAnyValueChanged=function(t,e){for(var n=this.questions,r=0;r<n.length;r++)n[r].onAnyValueChanged(t,e)},i.prototype.getDataValueCore=function(t,e){var n=this.getSurvey();return n?n.getDataValueCore(t,e):t[e]},i.prototype.getValue=function(t){var e=this.getQuestionByName(t);return e?e.value:null},i.prototype.setValue=function(t,e){this.setValueCore(t,e,!1)},i.prototype.getVariable=function(t){},i.prototype.setVariable=function(t,e){},i.prototype.getComment=function(t){var e=this.getQuestionByName(t);return e?e.comment:""},i.prototype.setComment=function(t,e,n){this.setValueCore(t,e,!0)},i.prototype.findQuestionByName=function(t){if(t){var e=i.RowVariableName+".";if(t.indexOf(e)===0)return this.getQuestionByName(t.substring(e.length));var n=this.getSurvey();return n?n.getQuestionByName(t):null}},i.prototype.getEditingSurveyElement=function(){},i.prototype.setValueCore=function(t,e,n){if(!this.isSettingValue){this.updateQuestionsValue(t,e,n),n||this.updateSharedQuestionsValue(t,e);var r=this.value,o=n?t+z.commentSuffix:t,s=e,a=this.getQuestionByName(t),l=this.data.onRowChanging(this,o,r);if(a&&!this.isTwoValueEquals(l,s)&&(this.isSettingValue=!0,n?a.comment=l:a.value=l,this.isSettingValue=!1,r=this.value),!(this.data.isValidateOnValueChanging&&this.hasQuestonError(a))){var u=e==null&&!a||n&&!e&&!!a;this.data.onRowChanged(this,o,r,u),o&&this.runTriggers(hn.RowVariableName+"."+o,r),this.onAnyValueChanged(i.RowVariableName,"")}}},i.prototype.updateQuestionsValue=function(t,e,n){if(this.detailPanel){var r=this.getQuestionByColumnName(t),o=this.detailPanel.getQuestionByName(t);if(!(!r||!o)){var s=this.isTwoValueEquals(e,n?r.comment:r.value),a=s?o:r;this.isSettingValue=!0,n?a.comment=e:a.value=e,this.isSettingValue=!1}}},i.prototype.updateSharedQuestionsValue=function(t,e){var n=this.getQuestionsByValueName(t);if(n.length>1)for(var r=0;r<n.length;r++)P.isTwoValueEquals(n[r].value,e)||(this.isSettingValue=!0,n[r].updateValueFromSurvey(e),this.isSettingValue=!1)},i.prototype.runTriggers=function(t,e){t&&this.questions.forEach(function(n){return n.runTriggers(t,e)})},i.prototype.hasQuestonError=function(t){if(!t)return!1;if(t.hasErrors(!0,{isOnValueChanged:!this.data.isValidateOnValueChanging}))return!0;if(t.isEmpty())return!1;var e=this.getCellByColumnName(t.name);return!e||!e.column||!e.column.isUnique?!1:this.data.checkIfValueInRowDuplicated(this,t)},Object.defineProperty(i.prototype,"isEmpty",{get:function(){var t=this.value;if(P.isValueEmpty(t))return!0;for(var e in t)if(t[e]!==void 0&&t[e]!==null)return!1;return!0},enumerable:!1,configurable:!0}),i.prototype.getQuestionByColumn=function(t){var e=this.getCellByColumn(t);return e?e.question:null},i.prototype.getCellByColumn=function(t){for(var e=0;e<this.cells.length;e++)if(this.cells[e].column==t)return this.cells[e];return null},i.prototype.getCellByColumnName=function(t){for(var e=0;e<this.cells.length;e++)if(this.cells[e].column.name==t)return this.cells[e];return null},i.prototype.getQuestionByColumnName=function(t){var e=this.getCellByColumnName(t);return e?e.question:null},Object.defineProperty(i.prototype,"questions",{get:function(){for(var t=[],e=0;e<this.cells.length;e++)t.push(this.cells[e].question);for(var n=this.detailPanel?this.detailPanel.questions:[],e=0;e<n.length;e++)t.push(n[e]);return t},enumerable:!1,configurable:!0}),i.prototype.getQuestionByName=function(t){var e=this.getQuestionByColumnName(t);return e||(this.detailPanel?this.detailPanel.getQuestionByName(t):null)},i.prototype.getQuestionsByName=function(t){var e=[],n=this.getQuestionByColumnName(t);return n&&e.push(n),this.detailPanel&&(n=this.detailPanel.getQuestionByName(t),n&&e.push(n)),e},i.prototype.getQuestionsByValueName=function(t){for(var e=[],n=0;n<this.cells.length;n++){var r=this.cells[n];r.question&&r.question.getValueName()===t&&e.push(r.question)}return this.detailPanel&&(e=e.concat(this.detailPanel.getQuestionsByValueName(t))),e},i.prototype.getSharedQuestionByName=function(t){return this.data?this.data.getSharedQuestionByName(t,this):null},i.prototype.clearIncorrectValues=function(t){for(var e in t){var n=this.getQuestionByName(e);if(n){var r=n.value;n.clearIncorrectValues(),this.isTwoValueEquals(r,n.value)||this.setValue(e,n.value)}else!this.getSharedQuestionByName(e)&&e.indexOf(b.matrix.totalsSuffix)<0&&this.setValue(e,null)}},i.prototype.getLocale=function(){return this.data?this.data.getLocale():""},i.prototype.getMarkdownHtml=function(t,e){return this.data?this.data.getMarkdownHtml(t,e):void 0},i.prototype.getRenderer=function(t){return this.data?this.data.getRenderer(t):null},i.prototype.getRendererContext=function(t){return this.data?this.data.getRendererContext(t):t},i.prototype.getProcessedText=function(t){return this.data?this.data.getProcessedText(t):t},i.prototype.locStrsChanged=function(){for(var t=0;t<this.cells.length;t++)this.cells[t].locStrsChanged();this.detailPanel&&this.detailPanel.locStrsChanged()},i.prototype.updateCellQuestionOnColumnChanged=function(t,e,n){var r=this.getCellByColumn(t);r&&this.updateCellOnColumnChanged(r,e,n)},i.prototype.updateCellQuestionOnColumnItemValueChanged=function(t,e,n,r,o,s){var a=this.getCellByColumn(t);a&&this.updateCellOnColumnItemValueChanged(a,e,n,r,o,s)},i.prototype.onQuestionReadOnlyChanged=function(){for(var t=this.questions,e=0;e<t.length;e++){var n=t[e];n.setPropertyValue("isReadOnly",n.isReadOnly)}if(this.detailPanel){var r=!!this.data&&this.data.isMatrixReadOnly();this.detailPanel.readOnly=r||!this.isRowEnabled()}},i.prototype.hasErrors=function(t,e,n){var r=!1,o=this.cells;if(!o)return r;this.validationValues=e.validationValues;for(var s=0;s<o.length;s++)if(o[s]){var a=o[s].question;!a||!a.visible||(a.onCompletedAsyncValidators=function(u){n()},!(e&&e.isOnValueChanged===!0&&a.isEmpty())&&(r=a.hasErrors(t,e)||r))}if(this.hasPanel){this.ensureDetailPanel();var l=this.detailPanel.hasErrors(t,!1,e);!e.hideErroredPanel&&l&&t&&(e.isSingleDetailPanel&&(e.hideErroredPanel=!0),this.showDetailPanel()),r=l||r}return this.validationValues=void 0,r},i.prototype.updateCellOnColumnChanged=function(t,e,n){e==="choices"&&Array.isArray(n)&&n.length===0&&this.data&&(n=this.data.choices),t.question[e]=n},i.prototype.updateCellOnColumnItemValueChanged=function(t,e,n,r,o,s){var a=t.question[e];if(Array.isArray(a)){var l=r==="value"?s:n.value,u=k.getItemByValue(a,l);u&&(u[r]=o)}},i.prototype.buildCells=function(t){this.isSettingValue=!0;for(var e=this.data.columns,n=0;n<e.length;n++){var r=e[n],o=this.createCell(r);this.cells.push(o);var s=this.getCellValue(t,r.name);if(!P.isValueEmpty(s)){o.question.value=s;var a=r.name+z.commentSuffix;t&&!P.isValueEmpty(t[a])&&(o.question.comment=t[a])}}this.isSettingValue=!1},i.prototype.isTwoValueEquals=function(t,e){return P.isTwoValueEquals(t,e,!1,!0,!1)},i.prototype.getCellValue=function(t,e){return this.editingObj?x.getObjPropertyValue(this.editingObj,e):t?t[e]:void 0},i.prototype.createCell=function(t){return new wr(t,this,this.data)},i.prototype.getSurveyData=function(){return this},i.prototype.getSurvey=function(){return this.data?this.data.getSurvey():null},i.prototype.getTextProcessor=function(){return this.textPreProcessor},Object.defineProperty(i.prototype,"rowIndex",{get:function(){return this.getRowIndex()},enumerable:!1,configurable:!0}),i.prototype.getRowIndex=function(){return this.data?this.data.getRowIndex(this)+1:-1},Object.defineProperty(i.prototype,"editingObj",{get:function(){return this.editingObjValue},enumerable:!1,configurable:!0}),i.prototype.dispose=function(){this.editingObj&&(this.editingObj.onPropertyChanged.remove(this.onEditingObjPropertyChanged),this.editingObjValue=null)},i.prototype.subscribeToChanges=function(t){var e=this;!t||!t.getType||!t.onPropertyChanged||t!==this.editingObj&&(this.editingObjValue=t,this.onEditingObjPropertyChanged=function(n,r){e.updateOnSetValue(r.name,r.newValue)},this.editingObj.onPropertyChanged.add(this.onEditingObjPropertyChanged))},i.prototype.updateOnSetValue=function(t,e){this.isSettingValue=!0;for(var n=this.getQuestionsByName(t),r=0;r<n.length;r++)n[r].value=e;this.isSettingValue=!1},i.RowVariableName="row",i.OwnerVariableName="self",i.IndexVariableName="rowIndex",i.RowValueVariableName="rowValue",i.RowNameVariableName="rowName",i.idCounter=1,i}(),hn=function(i){dn(t,i);function t(e){var n=i.call(this,e,null)||this;return n.buildCells(null),n}return t.prototype.createCell=function(e){return new ku(e,this,this.data)},t.prototype.setValue=function(e,n){this.data&&!this.isSettingValue&&this.data.onTotalValueChanged()},t.prototype.runCondition=function(e,n,r){var o=0,s;do s=P.getUnbindValue(this.value),i.prototype.runCondition.call(this,e,n,""),o++;while(!P.isTwoValueEquals(s,this.value)&&o<3)},t.prototype.updateCellOnColumnChanged=function(e,n,r){e.updateCellQuestion()},t}(_e),bt=function(i){dn(t,i);function t(e){var n=i.call(this,e)||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","displayMode"],function(){n.resetRenderedTable()}),n}return Object.defineProperty(t,"defaultCellType",{get:function(){return b.matrix.defaultCellType},set:function(e){b.matrix.defaultCellType=e},enumerable:!1,configurable:!0}),t.addDefaultColumns=function(e){for(var n=J.DefaultColums,r=0;r<n.length;r++)e.addColumn(n[r])},t.prototype.createColumnValues=function(){var e=this;return this.createNewArray("columns",function(n){n.colOwner=e,e.onAddColumn&&e.onAddColumn(n),e.survey&&e.survey.matrixColumnAdded(e,n)},function(n){n.colOwner=null,e.onRemoveColumn&&e.onRemoveColumn(n)})},t.prototype.getType=function(){return"matrixdropdownbase"},t.prototype.dispose=function(){i.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(e,n,r,o){i.prototype.itemValuePropertyChanged.call(this,e,n,r,o),e.ownerPropertyName==="choices"&&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=e==="vertical"},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(e){var n=e.parent?this.detailErrorLocation:this.cellErrorLocation;return n!=="default"?n:i.prototype.getChildErrorLocation.call(this,e)},Object.defineProperty(t.prototype,"isColumnLayoutHorizontal",{get:function(){return this.isMobile?!0:!this.transposeData},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isUniqueCaseSensitive",{get:function(){return this.isUniqueCaseSensitiveValue!==void 0?this.isUniqueCaseSensitiveValue:b.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 x.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,n){},t.prototype.onRowsChanged=function(){this.clearVisibleRows(),this.resetRenderedTable(),i.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.clearVisibleRows(),!!this.generatedVisibleRows){for(var e=0;e<this.generatedVisibleRows.length;e++)this.generatedVisibleRows[e].dispose();i.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 Vr(this)},t.prototype.onMatrixRowCreated=function(e){if(this.survey)for(var n={rowValue:e.value,row:e,column:null,columnName:null,cell:null,cellQuestion:null,value:null},r=0;r<this.columns.length;r++){n.column=this.columns[r],n.columnName=n.column.name;var o=e.cells[r];n.cell=o,n.cellQuestion=o.question,n.value=o.value,this.onCellCreatedCallback&&this.onCellCreatedCallback(n),this.survey.matrixCellCreated(this,n)}},Object.defineProperty(t.prototype,"cellType",{get:function(){return this.getPropertyValue("cellType",b.matrix.defaultCellType)},set:function(e){e=e.toLowerCase(),this.setPropertyValue("cellType",e)},enumerable:!1,configurable:!0}),t.prototype.isSelectCellType=function(){return x.isDescendantOf(this.cellType,"selectbase")},t.prototype.updateColumnsCellType=function(){for(var e=0;e<this.columns.length;e++)this.columns[e].defaultCellTypeChanged()},t.prototype.updateColumnsIndexes=function(e){for(var n=0;n<e.length;n++)e[n].setIndex(n)},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,n,r){if(this.updateHasFooter(),!!this.generatedVisibleRows){for(var o=0;o<this.generatedVisibleRows.length;o++)this.generatedVisibleRows[o].updateCellQuestionOnColumnChanged(e,n,r);this.generatedTotalRow&&this.generatedTotalRow.updateCellQuestionOnColumnChanged(e,n,r),this.onColumnsChanged(),n=="isRequired"&&this.resetRenderedTable()}},t.prototype.onColumnItemValuePropertyChanged=function(e,n,r,o,s,a){if(this.generatedVisibleRows)for(var l=0;l<this.generatedVisibleRows.length;l++)this.generatedVisibleRows[l].updateCellQuestionOnColumnItemValueChanged(e,n,r,o,s,a)},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,n,r){if(!this.survey)return r;var o={rowValue:n.value,row:n,column:e,columnName:e.name,cellType:r};return this.survey.matrixCellCreating(this,o),o.cellType},t.prototype.getConditionJson=function(e,n){if(e===void 0&&(e=null),n===void 0&&(n=null),!n)return i.prototype.getConditionJson.call(this,e);for(var r="",o=n.length-1;o>=0&&n[o]!=".";o--)r=n[o]+r;var s=void 0,a=this.getColumnByName(r);return a?s=a.createCellQuestion(null):this.detailPanelMode!=="none"&&(s=this.detailPanel.getQuestionByName(r)),s?s.getConditionJson(e):null},t.prototype.clearIncorrectValues=function(){if(Array.isArray(this.visibleRows))for(var e=this.generatedVisibleRows,n=0;n<e.length;n++)e[n].clearIncorrectValues(this.getRowValue(n))},t.prototype.clearErrors=function(){i.prototype.clearErrors.call(this),this.runFuncForCellQuestions(function(e){e.clearErrors()})},t.prototype.localeChanged=function(){i.prototype.localeChanged.call(this),this.runFuncForCellQuestions(function(e){e.localeChanged()})},t.prototype.runFuncForCellQuestions=function(e){if(this.generatedVisibleRows)for(var n=0;n<this.generatedVisibleRows.length;n++)for(var r=this.generatedVisibleRows[n],o=0;o<r.cells.length;o++)e(r.cells[o].question)},t.prototype.runCondition=function(e,n){var r=e[_e.RowVariableName];i.prototype.runCondition.call(this,e,n);var o=0,s;do s=P.getUnbindValue(this.totalValue),this.runCellsCondition(e,n),this.runTotalsCondition(e,n),o++;while(!P.isTwoValueEquals(s,this.totalValue)&&o<3);this.updateVisibilityBasedOnRows(),e[_e.RowVariableName]=r},t.prototype.runTriggers=function(e,n,r){i.prototype.runTriggers.call(this,e,n,r),this.runFuncForCellQuestions(function(o){o.runTriggers(e,n,r)})},t.prototype.updateElementVisibility=function(){i.prototype.updateElementVisibility.call(this);var e=this.generatedVisibleRows;e&&e.forEach(function(n){return n.updateElementVisibility()})},t.prototype.shouldRunColumnExpression=function(){return!1},t.prototype.runCellsCondition=function(e,n){var r=this.generatedVisibleRows;if(r)for(var o=this.getRowConditionValues(e),s=0;s<r.length;s++)r[s].runCondition(o,n,this.rowsVisibleIf);this.checkColumnsVisibility(),this.checkColumnsRenderedRequired()},t.prototype.runConditionsForColumns=function(e,n){var r=this;return this.columns.forEach(function(o){if(!r.columnsVisibleIf)o.isColumnsVisibleIf=!0;else{var s=new de(r.columnsVisibleIf);e.item=o.name,o.isColumnsVisibleIf=s.run(e,n)===!0}}),!1},t.prototype.checkColumnsVisibility=function(){if(!this.isDesignMode){for(var e=!1,n=0;n<this.columns.length;n++){var r=this.columns[n],o=!!r.visibleIf||r.isFilteredMultipleColumns;!o&&!this.columnsVisibleIf&&r.isColumnVisible||(e=this.isColumnVisibilityChanged(r,o)||e)}e&&this.resetRenderedTable()}},t.prototype.checkColumnsRenderedRequired=function(){var e=this.generatedVisibleRows;if(e)for(var n=0;n<this.columns.length;n++){var r=this.columns[n];if(!(!r.requiredIf||!r.isColumnVisible)){for(var o=e.length>0,s=0;s<e.length;s++)if(!e[s].cells[n].question.isRequired){o=!1;break}r.updateIsRenderedRequired(o)}}},t.prototype.isColumnVisibilityChanged=function(e,n){var r=e.isColumnVisible,o=!n,s=this.generatedVisibleRows,a=n&&s,l=a&&e.isFilteredMultipleColumns,u=l?e.getVisibleChoicesInCell:[],d=new Array;if(a)for(var v=0;v<s.length;v++){var V=s[v].cells[e.index],T=V==null?void 0:V.question;if(T&&T.isVisible)if(o=!0,l)this.updateNewVisibleChoices(T,d);else break}return e.hasVisibleCell=o&&e.isColumnsVisibleIf,l&&(e.setVisibleChoicesInCell(d),!P.isArraysEqual(u,d,!0,!1,!1))?!0:r!==e.isColumnVisible},t.prototype.updateNewVisibleChoices=function(e,n){var r=e.visibleChoices;if(Array.isArray(r))for(var o=0;o<r.length;o++){var s=r[o];n.indexOf(s.value)<0&&n.push(s.value)}},t.prototype.runTotalsCondition=function(e,n){this.generatedTotalRow&&this.generatedTotalRow.runCondition(this.getRowConditionValues(e),n)},t.prototype.getRowConditionValues=function(e){var n=e;n||(n={});var r={};return this.isValueEmpty(this.totalValue)||(r=JSON.parse(JSON.stringify(this.totalValue))),n.row={},n.totalRow=r,n},t.prototype.IsMultiplyColumn=function(e){return e.isShowInMultipleColumns&&!this.isMobile},t.prototype.locStrsChanged=function(){i.prototype.locStrsChanged.call(this);for(var e=this.columns,n=0;n<e.length;n++)e[n].locStrsChanged();var r=this.generatedVisibleRows;if(r){for(var n=0;n<r.length;n++)r[n].locStrsChanged();this.generatedTotalRow&&this.generatedTotalRow.locStrsChanged()}},t.prototype.getColumnByName=function(e){for(var n=0;n<this.columns.length;n++)if(this.columns[n].name==e)return this.columns[n];return null},t.prototype.getColumnName=function(e){return this.getColumnByName(e)},t.prototype.getColumnWidth=function(e){var n;return e.minWidth?e.minWidth:this.columnMinWidth?this.columnMinWidth:((n=b.matrix.columnWidthsByType[e.cellType])===null||n===void 0?void 0:n.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:!1},enumerable:!1,configurable:!0}),t.prototype.addColumn=function(e,n){var r=new jt(e,n,this);return this.columns.push(r),r},t.prototype.clearVisibleRows=function(){this.visibleRowsArray=null},t.prototype.isColumnVisible=function(e){return e.isColumnVisible},t.prototype.getVisibleRows=function(){return this.isUpdateLocked?null:this.isGenereatingRows?[]:this.visibleRowsArray?this.visibleRowsArray:(this.generateVisibleRowsIfNeeded(),this.visibleRowsArray=this.getVisibleFromGenerated(this.generatedVisibleRows),this.visibleRowsArray)},t.prototype.generateVisibleRowsIfNeeded=function(){var e=this;!this.isUpdateLocked&&!this.generatedVisibleRows&&!this.generatedVisibleRows&&(this.isGenereatingRows=!0,this.generatedVisibleRows=this.generateRows(),this.isGenereatingRows=!1,this.generatedVisibleRows.forEach(function(n){return e.onMatrixRowCreated(n)}),this.data&&this.runCellsCondition(this.data.getFilteredValues(),this.data.getFilteredProperties()),this.generatedVisibleRows&&(this.updateValueOnRowsGeneration(this.generatedVisibleRows),this.updateIsAnswered()))},t.prototype.getVisibleFromGenerated=function(e){var n=[];return e?(e.forEach(function(r){r.isVisible&&n.push(r)}),n.length===e.length?e:n):n},t.prototype.updateValueOnRowsGeneration=function(e){for(var n=this.createNewValue(!0),r=this.createNewValue(),o=0;o<e.length;o++){var s=e[o];if(!s.editingObj){var a=this.getRowValue(o),l=s.value;this.isTwoValueEquals(a,l)||(r=this.getNewValueOnRowChanged(s,"",l,!1,r).value)}}this.isTwoValueEquals(n,r)||(this.isRowChanging=!0,this.setNewValue(r),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(){i.prototype.onSurveyLoad.call(this),this.updateColumnsIndexes(this.columns),this.clearGeneratedRows(),this.generatedTotalRow=null,this.updateHasFooter()},t.prototype.getRowValue=function(e){if(e<0||!Array.isArray(this.visibleRows))return null;var n=this.generatedVisibleRows;if(e>=n.length)return null;var r=this.createNewValue();return this.getRowValueCore(n[e],r)},t.prototype.checkIfValueInRowDuplicated=function(e,n){return this.generatedVisibleRows?this.isValueInColumnDuplicated(n.name,!0,e):!1},t.prototype.setRowValue=function(e,n){if(e<0)return null;var r=this.visibleRows;if(e>=r.length)return null;r[e].value=n,this.onRowChanged(r[e],"",n,!1)},t.prototype.generateRows=function(){return null},t.prototype.generateTotalRow=function(){return new hn(this)},t.prototype.createNewValue=function(e){e===void 0&&(e=!1);var n=this.value?this.createValueCopy():{};return e&&this.isMatrixValueEmpty(n)?null:n},t.prototype.getRowValueCore=function(e,n,r){r===void 0&&(r=!1);var o=n&&n[e.rowName]?n[e.rowName]:null;return!o&&r&&(o={},n&&(n[e.rowName]=o)),o},t.prototype.getRowObj=function(e){var n=this.getRowValueCore(e,this.value);return n&&n.getType?n:null},t.prototype.getRowDisplayValue=function(e,n,r){if(!r||n.editingObj)return r;for(var o=Object.keys(r),s=0;s<o.length;s++){var a=o[s],l=n.getQuestionByName(a);if(l||(l=this.getSharedQuestionByName(a,n)),l){var u=l.getDisplayValue(e,r[a]);e&&l.title&&l.title!==a?(r[l.title]=u,delete r[a]):r[a]=u}}return r},t.prototype.getPlainData=function(e){var n=this;e===void 0&&(e={includeEmpty:!0});var r=i.prototype.getPlainData.call(this,e);if(r){r.isNode=!0;var o=Array.isArray(r.data)?[].concat(r.data):[];r.data=this.visibleRows.map(function(s){var a={name:s.dataName,title:s.text,value:s.value,displayValue:n.getRowDisplayValue(!1,s,s.value),getString:function(l){return typeof l=="object"?JSON.stringify(l):l},isNode:!0,data:s.cells.map(function(l){return l.question.getPlainData(e)}).filter(function(l){return!!l})};return(e.calculations||[]).forEach(function(l){a[l.propertyName]=s[l.propertyName]}),a}),r.data=r.data.concat(o)}return r},t.prototype.addConditionObjectsByContext=function(e,n){var r=[].concat(this.columns);this.detailPanelMode!=="none"&&(r=r.concat(this.detailPanel.questions));var o=!!n&&r.indexOf(n)>-1,s=n===!0||o,a=this.getConditionObjectsRowIndeces();s&&a.push(-1);for(var l=0;l<a.length;l++){var u=a[l],d=u>-1?this.getConditionObjectRowName(u):"row";if(d)for(var v=u>-1?this.getConditionObjectRowText(u):"row",V=u>-1||n===!0,T=V&&u===-1?".":"",R=(V?this.getValueName():"")+T+d+".",N=(V?this.processedTitle:"")+T+v+".",j=0;j<r.length;j++){var A=r[j];if(!(u===-1&&n===A)){var Q={name:R+A.name,text:N+A.fullTitle,question:this};u===-1&&n===!0?Q.context=this:o&&R.startsWith("row.")&&(Q.context=n),e.push(Q)}}}},t.prototype.onHidingContent=function(){if(i.prototype.onHidingContent.call(this),!!this.generatedVisibleRows){var e=[];this.collectNestedQuestions(e,!0),e.forEach(function(n){return n.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,n){this.collectNestedQuestonsInRows(this.visibleRows,e,n)},t.prototype.collectNestedQuestonsInRows=function(e,n,r){Array.isArray(e)&&e.forEach(function(o){o.questions.forEach(function(s){return s.collectNestedQuestions(n,r)})})},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 le.getProgressInfoByElements(this.getCellQuestions(),this.isRequired);var e=z.createProgressInfo();return this.updateProgressInfoByValues(e),e.requiredQuestionCount===0&&this.isRequired&&(e.requiredQuestionCount=1,e.requiredAnsweredQuestionCount=this.isEmpty()?0:1),e},t.prototype.updateProgressInfoByValues=function(e){},t.prototype.updateProgressInfoByRow=function(e,n){for(var r=0;r<this.columns.length;r++){var o=this.columns[r];if(o.templateQuestion.hasInput){var s=!P.isValueEmpty(n[o.name]);!s&&o.templateQuestion.visibleIf||(e.questionCount+=1,e.requiredQuestionCount+=o.isRequired,e.answeredQuestionCount+=s?1:0,e.requiredAnsweredQuestionCount+=s&&o.isRequired?1:0)}}},t.prototype.getCellQuestions=function(){var e=[];return this.runFuncForCellQuestions(function(n){e.push(n)}),e},t.prototype.onBeforeValueChanged=function(e){},t.prototype.onSetQuestionValue=function(){if(!this.isRowChanging&&(this.onBeforeValueChanged(this.value),!(!this.generatedVisibleRows||this.generatedVisibleRows.length==0))){this.isRowChanging=!0;for(var e=this.createNewValue(),n=0;n<this.generatedVisibleRows.length;n++){var r=this.generatedVisibleRows[n];this.generatedVisibleRows[n].value=this.getRowValueCore(r,e)}this.isRowChanging=!1}},t.prototype.setQuestionValue=function(e){i.prototype.setQuestionValue.call(this,e,!1),this.onSetQuestionValue(),this.updateIsAnswered()},t.prototype.supportGoNextPageAutomatic=function(){var e=this.generatedVisibleRows;if(e||(e=this.visibleRows),!e)return!0;for(var n=0;n<e.length;n++){var r=this.generatedVisibleRows[n].cells;if(r)for(var o=0;o<r.length;o++){var s=r[o].question;if(s&&(!s.supportGoNextPageAutomatic()||!s.value))return!1}}return!0},t.prototype.getContainsErrors=function(){return i.prototype.getContainsErrors.call(this)||this.checkForAnswersOrErrors(function(e){return e.containsErrors},!1)},t.prototype.getIsAnswered=function(){return i.prototype.getIsAnswered.call(this)&&this.checkForAnswersOrErrors(function(e){return e.isAnswered},!0)},t.prototype.checkForAnswersOrErrors=function(e,n){n===void 0&&(n=!1);var r=this.generatedVisibleRows;if(!r)return!1;for(var o=0;o<r.length;o++){var s=r[o].cells;if(s){for(var a=0;a<s.length;a++)if(s[a]){var l=s[a].question;if(l&&l.isVisible){if(e(l)){if(!n)return!0}else if(n)return!1}}}}return!!n},t.prototype.hasErrors=function(e,n){e===void 0&&(e=!0),n===void 0&&(n=null);var r=this.hasErrorInRows(e,n),o=this.isValueDuplicated();return i.prototype.hasErrors.call(this,e,n)||r||o},t.prototype.getIsRunningValidators=function(){if(i.prototype.getIsRunningValidators.call(this))return!0;if(!this.generatedVisibleRows)return!1;for(var e=0;e<this.generatedVisibleRows.length;e++){var n=this.generatedVisibleRows[e].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 e=i.prototype.getAllErrors.call(this),n=this.generatedVisibleRows;if(n===null)return e;for(var r=0;r<n.length;r++)for(var o=n[r],s=0;s<o.cells.length;s++){var a=o.cells[s].question.getAllErrors();a&&a.length>0&&(e=e.concat(a))}return e},t.prototype.hasErrorInRows=function(e,n){var r=this,o=this.generatedVisibleRows;this.generatedVisibleRows||(o=this.visibleRows);var s=!1;if(n||(n={}),!o)return n;n.validationValues=this.getDataFilteredValues(),n.isSingleDetailPanel=this.detailPanelMode==="underRowSingle";for(var a=0;a<o.length;a++)o[a].isVisible&&(s=o[a].hasErrors(e,n,function(){r.raiseOnCompletedAsyncValidators()})||s);return s},t.prototype.isValueDuplicated=function(){if(!this.generatedVisibleRows)return!1;for(var e=this.getUniqueColumnsNames(),n=!1,r=0;r<e.length;r++)n=this.isValueInColumnDuplicated(e[r],!0)||n;return n},t.prototype.getUniqueColumnsNames=function(){for(var e=new Array,n=0;n<this.columns.length;n++)this.columns[n].isUnique&&e.push(this.columns[n].name);return e},t.prototype.isValueInColumnDuplicated=function(e,n,r){var o=this.getDuplicatedRows(e);return n&&this.showDuplicatedErrorsInRows(o,e),this.removeDuplicatedErrorsInRows(o,e),r?o.indexOf(r)>-1:o.length>0},t.prototype.getDuplicatedRows=function(e){for(var n={},r=[],o=this.generatedVisibleRows,s=0;s<o.length;s++){var a=void 0,l=o[s].getQuestionByName(e);if(l)a=l.value;else{var u=this.getRowValue(s);a=u?u[e]:void 0}this.isValueEmpty(a)||(!this.isUniqueCaseSensitive&&typeof a=="string"&&(a=a.toLocaleLowerCase()),n[a]||(n[a]=[]),n[a].push(o[s]))}for(var d in n)n[d].length>1&&n[d].forEach(function(v){return r.push(v)});return r},t.prototype.showDuplicatedErrorsInRows=function(e,n){var r=this;e.forEach(function(o){var s=o.getQuestionByName(n),a=r.detailPanel.getQuestionByName(n);!s&&a&&(o.showDetailPanel(),o.detailPanel&&(s=o.detailPanel.getQuestionByName(n))),s&&(a&&o.showDetailPanel(),r.addDuplicationError(s))})},t.prototype.removeDuplicatedErrorsInRows=function(e,n){var r=this;this.generatedVisibleRows.forEach(function(o){if(e.indexOf(o)<0){var s=o.getQuestionByName(n);s&&r.removeDuplicationError(o,s)}})},t.prototype.getDuplicationError=function(e){for(var n=e.errors,r=0;r<n.length;r++)if(n[r].getErrorType()==="keyduplicationerror")return n[r];return null},t.prototype.addDuplicationError=function(e){this.getDuplicationError(e)||e.addError(new bo(this.keyDuplicationError,this))},t.prototype.removeDuplicationError=function(e,n){n.removeError(this.getDuplicationError(n))&&n.errors.length===0&&e.editingObj&&(e.editingObj[n.getValueName()]=n.value)},t.prototype.getFirstQuestionToFocus=function(e){return this.getFirstCellQuestion(e)},t.prototype.getFirstInputElementId=function(){var e=this.getFirstCellQuestion(!1);return e?e.inputId:i.prototype.getFirstInputElementId.call(this)},t.prototype.getFirstErrorInputElementId=function(){var e=this.getFirstCellQuestion(!0);return e?e.inputId:i.prototype.getFirstErrorInputElementId.call(this)},t.prototype.getFirstCellQuestion=function(e){if(!this.generatedVisibleRows)return null;for(var n=0;n<this.generatedVisibleRows.length;n++)for(var r=this.generatedVisibleRows[n].cells,o=0;o<r.length;o++)if(!e||r[o].question.currentErrorCount>0)return r[o].question;return null},t.prototype.onReadOnlyChanged=function(){if(i.prototype.onReadOnlyChanged.call(this),!!this.generateRows)for(var e=0;e<this.visibleRows.length;e++)this.visibleRows[e].onQuestionReadOnlyChanged()},t.prototype.createQuestion=function(e,n){return this.createQuestionCore(e,n)},t.prototype.createQuestionCore=function(e,n){var r=n.createCellQuestion(e);return r.setSurveyImpl(e),r.setParentQuestion(this),r.inMatrixMode=!0,r},t.prototype.deleteRowValue=function(e,n){return e&&(delete e[n.rowName],this.isObject(e)&&Object.keys(e).length==0?null:e)},t.prototype.onAnyValueChanged=function(e,n){if(!(this.isUpdateLocked||this.isDoingonAnyValueChanged||!this.generatedVisibleRows)){this.isDoingonAnyValueChanged=!0;for(var r=this.generatedVisibleRows,o=0;o<r.length;o++)r[o].onAnyValueChanged(e,n);var s=this.visibleTotalRow;s&&s.onAnyValueChanged(e,n),this.isDoingonAnyValueChanged=!1}},t.prototype.isObject=function(e){return e!==null&&typeof e=="object"},t.prototype.getOnCellValueChangedOptions=function(e,n,r){var o=function(s){return e.getQuestionByName(s)};return{row:e,columnName:n,rowValue:r,value:r?r[n]:null,getCellQuestion:o,cellQuestion:e.getQuestionByName(n),column:this.getColumnByName(n)}},t.prototype.onCellValueChanged=function(e,n,r){if(this.survey){var o=this.getOnCellValueChangedOptions(e,n,r);this.onCellValueChangedCallback&&this.onCellValueChangedCallback(o),this.survey.matrixCellValueChanged(this,o)}},t.prototype.validateCell=function(e,n,r){if(this.survey){var o=this.getOnCellValueChangedOptions(e,n,r);return this.survey.matrixCellValidate(this,o)}},Object.defineProperty(t.prototype,"isValidateOnValueChanging",{get:function(){return this.survey?this.survey.isValidateOnValueChanging:!1},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hasInvisibleRows",{get:function(){var e=this.generatedVisibleRows;if(!Array.isArray(e))return!1;for(var n=0;n<e.length;n++)if(!e[n].isVisible)return!0;return!1},enumerable:!1,configurable:!0}),t.prototype.getFilteredData=function(){return this.isEmpty()||!this.generatedVisibleRows||!this.hasInvisibleRows?this.value:this.getFilteredDataCore()},t.prototype.getFilteredDataCore=function(){return this.value},t.prototype.onRowChanging=function(e,n,r){if(!this.survey&&!this.cellValueChangingCallback)return r?r[n]:null;var o=this.getOnCellValueChangedOptions(e,n,r),s=this.getRowValueCore(e,this.createNewValue(),!0);return o.oldValue=s?s[n]:null,this.cellValueChangingCallback&&(o.value=this.cellValueChangingCallback(e,n,o.value,o.oldValue)),this.survey&&this.survey.matrixCellValueChanging(this,o),o.value},t.prototype.onRowChanged=function(e,n,r,o){var s=n?this.getRowObj(e):null;if(s){var a=null;r&&!o&&(a=r[n]),this.isRowChanging=!0,x.setObjPropertyValue(s,n,a),this.isRowChanging=!1,this.onCellValueChanged(e,n,s)}else{var l=this.createNewValue(!0),u=this.getNewValueOnRowChanged(e,n,r,o,this.createNewValue());if(this.isTwoValueEquals(l,u.value))return;this.isRowChanging=!0,this.setNewValue(u.value),this.isRowChanging=!1,n&&this.onCellValueChanged(e,n,u.rowValue)}this.getUniqueColumnsNames().indexOf(n)>-1&&this.isValueInColumnDuplicated(n,!!s)},t.prototype.getNewValueOnRowChanged=function(e,n,r,o,s){var a=this.getRowValueCore(e,s,!0);if(o&&delete a[n],e.questions.forEach(function(u){delete a[u.getValueName()]}),r){r=JSON.parse(JSON.stringify(r));for(var l in r)this.isValueEmpty(r[l])||(a[l]=r[l])}return this.isObject(a)&&Object.keys(a).length===0&&(s=this.deleteRowValue(s,e)),{value:s,rowValue:a}},t.prototype.getRowIndex=function(e){return Array.isArray(this.generatedVisibleRows)?this.generatedVisibleRows.indexOf(e):-1},t.prototype.getElementsInDesign=function(e){e===void 0&&(e=!1);var n;return this.detailPanelMode=="none"?n=i.prototype.getElementsInDesign.call(this,e):n=e?[this.detailPanel]:this.detailElements,this.columns.concat(n)},t.prototype.hasDetailPanel=function(e){return this.detailPanelMode=="none"?!1:this.isDesignMode?!0:this.onHasDetailPanelCallback?this.onHasDetailPanelCallback(e):this.detailElements.length>0},t.prototype.getIsDetailPanelShowing=function(e){if(this.detailPanelMode=="none")return!1;if(this.isDesignMode){var n=this.visibleRows.indexOf(e)==0;return n&&(e.detailPanel||e.showDetailPanel()),n}return this.getPropertyValue("isRowShowing"+e.id,!1)},t.prototype.setIsDetailPanelShowing=function(e,n){if(n!=this.getIsDetailPanelShowing(e)&&(this.setPropertyValue("isRowShowing"+e.id,n),this.updateDetailPanelButtonCss(e),this.renderedTable&&this.renderedTable.onDetailPanelChangeVisibility(e,n),this.survey&&this.survey.matrixDetailPanelVisibleChanged(this,e.rowIndex-1,e,n),n&&this.detailPanelMode==="underRowSingle"))for(var r=this.visibleRows,o=0;o<r.length;o++)r[o].id!==e.id&&r[o].isDetailPanelShowing&&r[o].hideDetailPanel()},t.prototype.getDetailPanelButtonCss=function(e){var n=new O().append(this.getPropertyValue("detailButtonCss"+e.id));return n.append(this.cssClasses.detailButton,n.toString()==="").toString()},t.prototype.getDetailPanelIconCss=function(e){var n=new O().append(this.getPropertyValue("detailIconCss"+e.id));return n.append(this.cssClasses.detailIcon,n.toString()==="").toString()},t.prototype.getDetailPanelIconId=function(e){return this.getIsDetailPanelShowing(e)?this.cssClasses.detailIconExpandedId:this.cssClasses.detailIconId},t.prototype.updateDetailPanelButtonCss=function(e){var n=this.cssClasses,r=this.getIsDetailPanelShowing(e),o=new O().append(n.detailIcon).append(n.detailIconExpanded,r);this.setPropertyValue("detailIconCss"+e.id,o.toString());var s=new O().append(n.detailButton).append(n.detailButtonExpanded,r);this.setPropertyValue("detailButtonCss"+e.id,s.toString())},t.prototype.createRowDetailPanel=function(e){var n=this;if(this.isDesignMode)return this.detailPanel;var r=this.createNewDetailPanel();r.readOnly=this.isReadOnly||!e.isRowEnabled(),r.setSurveyImpl(e);var o=this.detailPanel.toJSON();return new fe().toObject(o,r),r.renderWidth="100%",r.updateCustomWidgets(),this.onCreateDetailPanelCallback&&this.onCreateDetailPanelCallback(e,r),r.questions.forEach(function(s){return s.setParentQuestion(n)}),r.onSurveyLoad(),r},t.prototype.getSharedQuestionByName=function(e,n){if(!this.survey||!this.valueName)return null;var r=this.getRowIndex(n);return r<0?null:this.survey.getQuestionByValueNameFromArray(this.valueName,e,r)},t.prototype.onTotalValueChanged=function(){this.data&&this.visibleTotalRow&&!this.isUpdateLocked&&!this.isSett&&this.data.setValue(this.getValueName()+b.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.onRowVisibilityChanged=function(e){this.clearVisibleRows(),this.resetRenderedTable()},t.prototype.clearValueIfInvisibleCore=function(e){i.prototype.clearValueIfInvisibleCore.call(this,e),this.clearInvisibleValuesInRows()},t.prototype.clearInvisibleValuesInRows=function(){var e;if(!(this.isEmpty()||!this.isRowsFiltered())){var n=((e=this.survey)===null||e===void 0?void 0:e.questionsByValueName(this.getValueName()))||[];n.length<2&&(this.value=this.getFilteredData())}},t.prototype.isRowsFiltered=function(){return i.prototype.isRowsFiltered.call(this)||this.visibleRows!==this.generatedVisibleRows},t.prototype.getQuestionFromArray=function(e,n){return n>=this.visibleRows.length?null:this.visibleRows[n].getQuestionByName(e)},t.prototype.isMatrixValueEmpty=function(e){if(e){if(Array.isArray(e)){for(var n=0;n<e.length;n++)if(this.isObject(e[n])&&Object.keys(e[n]).length>0)return!1;return!0}return Object.keys(e).length==0}},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 hn?"row-footer":"cell")},t.prototype.getCellWrapperComponentData=function(e){return this.SurveyModel.getElementWrapperComponentData(e,e.row instanceof hn?"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.onMobileChanged=function(){i.prototype.onMobileChanged.call(this),this.resetRenderedTable()},t.prototype.getRootCss=function(){return new O().append(i.prototype.getRootCss.call(this)).append(this.cssClasses.rootScroll,this.horizontalScroll).toString()},t.prototype.afterRenderQuestionElement=function(e){i.prototype.afterRenderQuestionElement.call(this,e),this.setRootElement(e==null?void 0:e.parentElement)},t.prototype.beforeDestroyQuestionElement=function(e){i.prototype.beforeDestroyQuestionElement.call(this,e),this.setRootElement(void 0)},t.prototype.setRootElement=function(e){this.rootElement=e},t.prototype.getRootElement=function(){return this.rootElement},t}(gr);x.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",baseClassName:"question",visible:!1,isLightSerializable:!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(i){return!!i&&i.detailPanelMode!="none"}},{name:"horizontalScroll:boolean",visible:!1},{name:"choices:itemvalue[]",uniqueProperty:"value",visibleIf:function(i){return i.isSelectCellType()}},{name:"placeholder",alternativeName:"optionsCaption",serializationProperty:"locPlaceholder"},{name:"keyDuplicationError",serializationProperty:"locKeyDuplicationError"},{name:"cellType",default:"dropdown",choices:function(){return jt.getColumnTypes()}},{name:"columnColCount",default:0,choices:[0,1,2,3,4]},"columnMinWidth",{name:"allowAdaptiveActions:boolean",default:!1,visible:!1}],function(){return new bt("")},"matrixbase");var ko=function(){var i=function(t,e){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(n[o]=r[o])},i(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");i(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),qo=function(i){ko(t,i);function t(e,n,r,o){var s=i.call(this,r,o)||this;return s.name=e,s.item=n,s.buildCells(o),s}return 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.isItemVisible=function(){return this.item.isVisible},t.prototype.isRowEnabled=function(){return this.item.isEnabled},t.prototype.isRowHasEnabledCondition=function(){return!!this.item.enableIf},t.prototype.setRowsVisibleIfValues=function(e){e.item=this.item.value,e.choice=this.item.value},t}(_e),xr=function(i){ko(t,i);function t(e){var n=i.call(this,e)||this;return n.defaultValuesInRows={},n.createLocalizableString("totalText",n,!0),n.registerPropertyChangedHandlers(["rows"],function(){n.generatedVisibleRows&&(n.clearGeneratedRows(),n.resetRenderedTable(),n.getVisibleRows(),n.clearIncorrectValues())}),n.registerPropertyChangedHandlers(["hideIfRowsEmpty"],function(){n.updateVisibilityBasedOnRows()}),n}return 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,n){if(!n)return n;var r=this.visibleRows,o={};if(!r)return o;for(var s=0;s<r.length;s++){var a=r[s].rowName,l=n[a];if(l){if(e){var u=k.getTextOrHtmlByValue(this.rows,a);u&&(a=u)}o[a]=this.getRowDisplayValue(e,r[s],l)}}return o},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=[],n=0;n<this.rows.length;n++)e.push(n);return e},t.prototype.isNewValueCorrect=function(e){return P.isValueObject(e,!0)},t.prototype.clearIncorrectValues=function(){if(!this.isEmpty()){this.getVisibleRows();var e={},n=this.value;for(var r in n){var o=this.getRowByKey(r);o&&o.isVisible&&(e[r]=n[r])}this.value=e}i.prototype.clearIncorrectValues.call(this)},t.prototype.getRowByKey=function(e){var n=this.generatedVisibleRows;if(!n)return null;for(var r=0;r<n.length;r++)if(n[r].rowName===e)return n[r];return null},t.prototype.clearGeneratedRows=function(){var e=this;this.generatedVisibleRows&&(this.isDisposed||this.generatedVisibleRows.forEach(function(n){e.defaultValuesInRows[n.rowName]=n.getNamesWithDefaultValues()}),i.prototype.clearGeneratedRows.call(this))},t.prototype.getRowValueForCreation=function(e,n){var r=e[n];if(!r)return r;var o=this.defaultValuesInRows[n];return!Array.isArray(o)||o.length===0||o.forEach(function(s){delete r[s]}),r},t.prototype.generateRows=function(){var e=new Array,n=this.rows;if(!n||n.length===0)return e;var r=this.value;r||(r={});for(var o=0;o<n.length;o++){var s=n[o];this.isValueEmpty(s.value)||e.push(this.createMatrixRow(s,this.getRowValueForCreation(r,s.value)))}return e},t.prototype.createMatrixRow=function(e,n){return new qo(e.value,e,this,n)},t.prototype.getFilteredDataCore=function(){var e={},n=this.createValueCopy();return this.generatedVisibleRows.forEach(function(r){var o=n[r.rowName];r.isVisible&&!P.isValueEmpty(o)&&(e[r.rowName]=o)}),e},t.prototype.getSearchableItemValueKeys=function(e){e.push("rows")},t.prototype.updateProgressInfoByValues=function(e){var n=this.value;n||(n={});for(var r=0;r<this.rows.length;r++){var o=this.rows[r],s=n[o.value];this.updateProgressInfoByRow(e,s||{})}},t}(bt);x.addClass("matrixdropdown",[{name:"rows:itemvalue[]",uniqueProperty:"value"},"rowsVisibleIf:condition","rowTitleWidth",{name:"totalText",serializationProperty:"locTotalText"},"hideIfRowsEmpty:boolean"],function(){return new xr("")},"matrixdropdownbase"),J.Instance.registerQuestion("matrixdropdown",function(i){var t=new xr(i);return t.choices=[1,2,3,4,5],t.rows=J.DefaultRows,bt.addDefaultColumns(t),t});var Or=!1,Qo=null;typeof navigator<"u"&&navigator&&E.isAvailable()&&(Qo=navigator.userAgent||navigator.vendor||E.hasOwn("opera")),function(i){i&&(navigator.platform==="MacIntel"&&navigator.maxTouchPoints>0||navigator.platform==="iPad"||/(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(i)||/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(i.substring(0,4)))&&(Or=!0)}(Qo);var Qu=!1,gn=Or||Qu,zo={get isTouch(){return!this.hasMouse&&this.hasTouchEvent},get hasTouchEvent(){return E.isAvailable()&&(E.hasOwn("ontouchstart")||navigator.maxTouchPoints>0)},hasMouse:!0},zu=E.matchMedia;zo.hasMouse=Uu(zu);var ne=zo.isTouch;function Hu(i){ne=i}function Uu(i){if(!i||gn)return!1;var t=i("(pointer:fine)"),e=i("(any-hover:hover)");return!!t&&t.matches||!!e&&e.matches}var Wu=function(i,t){for(var e=0,n=t.length,r=i.length;e<n;e++,r++)i[r]=t[e];return i};typeof window<"u"&&window.addEventListener("touchmove",function(i){Ho.PreventScrolling&&i.preventDefault()},{passive:!1});var Ho=function(){function i(t,e,n){var r=this;e===void 0&&(e=!0),n===void 0&&(n=!1),this.dd=t,this.longTap=e,this.fitToContainer=n,this.scrollIntervalId=null,this.stopLongTapIfMoveEnough=function(o){o.preventDefault(),r.currentX=o.pageX,r.currentY=o.pageY,!r.isMicroMovement&&(r.returnUserSelectBack(),r.stopLongTap())},this.stopLongTap=function(o){clearTimeout(r.timeoutID),r.timeoutID=null,document.removeEventListener("pointerup",r.stopLongTap),document.removeEventListener("pointermove",r.stopLongTapIfMoveEnough)},this.handlePointerCancel=function(o){r.clear()},this.handleEscapeButton=function(o){o.keyCode==27&&r.clear()},this.onContextMenu=function(o){o.preventDefault(),o.stopPropagation()},this.dragOver=function(o){r.moveShortcutElement(o),r.draggedElementShortcut.style.cursor="grabbing",r.dd.dragOver(o)},this.clear=function(){cancelAnimationFrame(r.scrollIntervalId),document.removeEventListener("pointermove",r.dragOver),document.removeEventListener("pointercancel",r.handlePointerCancel),document.removeEventListener("keydown",r.handleEscapeButton),document.removeEventListener("pointerup",r.drop),r.draggedElementShortcut.removeEventListener("pointerup",r.drop),ne&&r.draggedElementShortcut.removeEventListener("contextmenu",r.onContextMenu),r.draggedElementShortcut.parentElement.removeChild(r.draggedElementShortcut),r.dd.clear(),r.draggedElementShortcut=null,r.scrollIntervalId=null,ne&&(r.savedTargetNode.style.cssText=null,r.savedTargetNode&&r.savedTargetNode.parentElement.removeChild(r.savedTargetNode),r.insertNodeToParentAtIndex(r.savedTargetNodeParent,r.savedTargetNode,r.savedTargetNodeIndex),i.PreventScrolling=!1),r.savedTargetNode=null,r.savedTargetNodeParent=null,r.savedTargetNodeIndex=null,r.returnUserSelectBack()},this.drop=function(){r.dd.drop(),r.clear()},this.draggedElementShortcut=null}return Object.defineProperty(i.prototype,"documentOrShadowRoot",{get:function(){return b.environment.root},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"rootElement",{get:function(){return Lt(b.environment.root)?this.rootContainer||b.environment.root.host:this.rootContainer||b.environment.root.documentElement||document.body},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"isMicroMovement",{get:function(){var t=5,e=Math.abs(this.currentX-this.startX),n=Math.abs(this.currentY-this.startY);return e<t&&n<t},enumerable:!1,configurable:!0}),i.prototype.startLongTapProcessing=function(t,e,n,r,o){var s=this;o===void 0&&(o=!1),this.startX=t.pageX,this.startY=t.pageY,document.body.style.setProperty("touch-action","none","important"),this.timeoutID=setTimeout(function(){s.doStartDrag(t,e,n,r),o||(s.savedTargetNode=t.target,s.savedTargetNode.style.cssText=` - position: absolute; - height: 1px!important; - width: 1px!important; - overflow: hidden; - clip: rect(1px 1px 1px 1px); - clip: rect(1px, 1px, 1px, 1px); - `,s.savedTargetNodeParent=s.savedTargetNode.parentElement,s.savedTargetNodeIndex=s.getNodeIndexInParent(s.savedTargetNode),s.rootElement.appendChild(s.savedTargetNode)),s.stopLongTap()},this.longTap?500:0),document.addEventListener("pointerup",this.stopLongTap),document.addEventListener("pointermove",this.stopLongTapIfMoveEnough)},i.prototype.moveShortcutElement=function(t){var e=this.rootElement.getBoundingClientRect().x,n=this.rootElement.getBoundingClientRect().y,r=this.rootElement.scrollLeft,o=this.rootElement.scrollTop;this.doScroll(t.clientY,t.clientX);var s=this.draggedElementShortcut.offsetHeight,a=this.draggedElementShortcut.offsetWidth,l=this.draggedElementShortcut.shortcutXOffset||a/2,u=this.draggedElementShortcut.shortcutYOffset||s/2;document.querySelectorAll("[dir='rtl']").length!==0&&(l=a/2,u=s/2);var d=document.documentElement.clientHeight,v=document.documentElement.clientWidth,V=t.pageX,T=t.pageY,R=t.clientX,N=t.clientY;e-=r,n-=o;var j=this.getShortcutBottomCoordinate(N,s,u),A=this.getShortcutRightCoordinate(R,a,l);if(A>=v){this.draggedElementShortcut.style.left=v-a-e+"px",this.draggedElementShortcut.style.top=N-u-n+"px";return}if(R-l<=0){this.draggedElementShortcut.style.left=V-R-e+"px",this.draggedElementShortcut.style.top=N-n-u+"px";return}if(j>=d){this.draggedElementShortcut.style.left=R-l-e+"px",this.draggedElementShortcut.style.top=d-s-n+"px";return}if(N-u<=0){this.draggedElementShortcut.style.left=R-l-e+"px",this.draggedElementShortcut.style.top=T-N-n+"px";return}this.draggedElementShortcut.style.left=R-e-l+"px",this.draggedElementShortcut.style.top=N-n-u+"px"},i.prototype.getShortcutBottomCoordinate=function(t,e,n){return t+e-n},i.prototype.getShortcutRightCoordinate=function(t,e,n){return t+e-n},i.prototype.requestAnimationFrame=function(t){return requestAnimationFrame(t)},i.prototype.scrollByDrag=function(t,e,n){var r=this,o=100,s,a,l,u;t.tagName==="HTML"?(s=0,a=document.documentElement.clientHeight,l=0,u=document.documentElement.clientWidth):(s=t.getBoundingClientRect().top,a=t.getBoundingClientRect().bottom,l=t.getBoundingClientRect().left,u=t.getBoundingClientRect().right);var d=function(){var v=e-s<=o,V=a-e<=o,T=n-l<=o,R=u-n<=o;v&&!T&&!R?t.scrollTop-=15:V&&!T&&!R?t.scrollTop+=15:R&&!v&&!V?t.scrollLeft+=15:T&&!v&&!V&&(t.scrollLeft-=15),r.scrollIntervalId=r.requestAnimationFrame(d)};this.scrollIntervalId=this.requestAnimationFrame(d)},i.prototype.doScroll=function(t,e){cancelAnimationFrame(this.scrollIntervalId);var n=this.draggedElementShortcut.style.display;this.draggedElementShortcut.style.display="none";var r=this.documentOrShadowRoot.elementFromPoint(e,t);this.draggedElementShortcut.style.display=n||"block";var o=rn(r);this.scrollByDrag(o,t,e)},i.prototype.doStartDrag=function(t,e,n,r){ne&&(i.PreventScrolling=!0),t.which!==3&&(this.dd.dragInit(t,e,n,r),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),ne?this.draggedElementShortcut.addEventListener("contextmenu",this.onContextMenu):this.draggedElementShortcut.addEventListener("pointerup",this.drop))},i.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")},i.prototype.startDrag=function(t,e,n,r,o){if(o===void 0&&(o=!1),document.body.style.setProperty("user-select","none","important"),document.body.style.setProperty("-webkit-user-select","none","important"),ne){this.startLongTapProcessing(t,e,n,r,o);return}this.doStartDrag(t,e,n,r)},i.prototype.getNodeIndexInParent=function(t){return Wu([],t.parentElement.childNodes).indexOf(t)},i.prototype.insertNodeToParentAtIndex=function(t,e,n){t.insertBefore(e,t.childNodes[n])},i.PreventScrolling=!1,i}(),Sr=function(){function i(t,e,n,r){var o=this,s;this.surveyValue=t,this.creator=e,this._isBottom=null,this.onGhostPositionChanged=new Ve,this.onDragStart=new Ve,this.onDragEnd=new Ve,this.onDragClear=new Ve,this.onBeforeDrop=this.onDragStart,this.onAfterDrop=this.onDragEnd,this.draggedElement=null,this.dropTarget=null,this.prevDropTarget=null,this.allowDropHere=!1,this.banDropHere=function(){o.allowDropHere=!1,o.doBanDropHere(),o.dropTarget=null,o.domAdapter.draggedElementShortcut.style.cursor="not-allowed",o.isBottom=null},this.doBanDropHere=function(){},this.domAdapter=r||new Ho(this,n,(s=this.survey)===null||s===void 0?void 0:s.fitToContainer)}return Object.defineProperty(i.prototype,"isBottom",{get:function(){return!!this._isBottom},set:function(t){this._isBottom=t,this.ghostPositionChanged()},enumerable:!1,configurable:!0}),i.prototype.ghostPositionChanged=function(){this.onGhostPositionChanged.fire({},{})},Object.defineProperty(i.prototype,"dropTargetDataAttributeName",{get:function(){return"[data-sv-drop-target-"+this.draggedElementType+"]"},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"survey",{get:function(){var t;return this.surveyValue||((t=this.creator)===null||t===void 0?void 0:t.survey)},enumerable:!1,configurable:!0}),i.prototype.startDrag=function(t,e,n,r,o){o===void 0&&(o=!1),this.domAdapter.rootContainer=this.getRootElement(this.survey,this.creator),this.domAdapter.startDrag(t,e,n,r,o)},i.prototype.getRootElement=function(t,e){return e?e.rootElement:t.rootElement},i.prototype.dragInit=function(t,e,n,r){this.draggedElement=e,this.parentElement=n;var o=this.getShortcutText(this.draggedElement);this.domAdapter.draggedElementShortcut=this.createDraggedElementShortcut(o,r,t),this.onStartDrag(t);var s=this.draggedElement&&this.draggedElement.parent;this.onDragStart.fire(this,{fromElement:s,draggedElement:this.draggedElement})},i.prototype.onStartDrag=function(t){},i.prototype.isDropTargetDoesntChanged=function(t){return this.dropTarget===this.prevDropTarget&&t===this.isBottom},i.prototype.getShortcutText=function(t){return t==null?void 0:t.shortcutText},i.prototype.createDraggedElementShortcut=function(t,e,n){var r=I.createElement("div");return r&&(r.innerText=t,r.className=this.getDraggedElementClass()),r},i.prototype.getDraggedElementClass=function(){return"sv-dragged-element-shortcut"},i.prototype.doDragOver=function(){},i.prototype.afterDragOver=function(t){},i.prototype.findDropTargetNodeFromPoint=function(t,e){var n=this.domAdapter.draggedElementShortcut.style.display;if(this.domAdapter.draggedElementShortcut.style.display="none",!I.isAvailable())return null;var r=this.domAdapter.documentOrShadowRoot.elementsFromPoint(t,e);this.domAdapter.draggedElementShortcut.style.display=n||"block";for(var o=0,s=r[o];s&&s.className&&typeof s.className.indexOf=="function"&&s.className.indexOf("sv-drag-target-skipped")!=-1;)o++,s=r[o];return s?this.findDropTargetNodeByDragOverNode(s):null},i.prototype.getDataAttributeValueByNode=function(t){var e=this,n="svDropTarget",r=this.draggedElementType.split("-");return r.forEach(function(o){n+=e.capitalizeFirstLetter(o)}),t.dataset[n]},i.prototype.getDropTargetByNode=function(t,e){var n=this.getDataAttributeValueByNode(t);return this.getDropTargetByDataAttributeValue(n,t,e)},i.prototype.capitalizeFirstLetter=function(t){return t.charAt(0).toUpperCase()+t.slice(1)},i.prototype.calculateVerticalMiddleOfHTMLElement=function(t){var e=t.getBoundingClientRect();return e.y+e.height/2},i.prototype.calculateHorizontalMiddleOfHTMLElement=function(t){var e=t.getBoundingClientRect();return e.x+e.width/2},i.prototype.calculateIsBottom=function(t,e){return!1},i.prototype.findDropTargetNodeByDragOverNode=function(t){var e=t.closest(this.dropTargetDataAttributeName);return e},i.prototype.dragOver=function(t){var e=this.findDropTargetNodeFromPoint(t.clientX,t.clientY);if(!e){this.banDropHere();return}this.dropTarget=this.getDropTargetByNode(e,t);var n=this.isDropTargetValid(this.dropTarget,e);if(this.doDragOver(),!n){this.banDropHere();return}var r=this.calculateIsBottom(t.clientY,e);this.allowDropHere=!0,!this.isDropTargetDoesntChanged(r)&&(this.isBottom=null,this.isBottom=r,this.draggedElement!=this.dropTarget&&this.afterDragOver(e),this.prevDropTarget=this.dropTarget)},i.prototype.drop=function(){if(this.allowDropHere){var t=this.draggedElement.parent,e=this.doDrop();this.onDragEnd.fire(this,{fromElement:t,draggedElement:e,toElement:this.dropTarget})}},i.prototype.clear=function(){this.dropTarget=null,this.prevDropTarget=null,this.draggedElement=null,this.isBottom=null,this.parentElement=null,this.onDragClear.fire(this,{})},i}(),$u=function(){var i=function(t,e){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(n[o]=r[o])},i(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");i(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),Ju=function(i){$u(t,i);function t(){var e=i!==null&&i.apply(this,arguments)||this;return e.fromIndex=null,e.toIndex=null,e.doDrop=function(){return e.parentElement.moveRowByIndex(e.fromIndex,e.toIndex),e.parentElement},e}return Object.defineProperty(t.prototype,"draggedElementType",{get:function(){return"matrix-row"},enumerable:!1,configurable:!0}),t.prototype.onStartDrag=function(){var e=I.getBody();e&&(this.restoreUserSelectValue=e.style.userSelect,e.style.userSelect="none")},Object.defineProperty(t.prototype,"shortcutClass",{get:function(){return new O().append(this.parentElement.cssClasses.draggedRow).toString()},enumerable:!1,configurable:!0}),t.prototype.createDraggedElementShortcut=function(e,n,r){var o=this,s=I.createElement("div");if(s){s.className=this.shortcutClass;var a=!0;if(n){var l=n.closest("[data-sv-drop-target-matrix-row]"),u=l.cloneNode(a);u.style.cssText=` - width: `+l.offsetWidth+`px; - `,u.classList.remove("sv-matrix__drag-drop--moveup"),u.classList.remove("sv-matrix__drag-drop--movedown"),this.draggedElement.isDragDropMoveDown=!1,this.draggedElement.isDragDropMoveUp=!1,s.appendChild(u);var d=n.getBoundingClientRect();s.shortcutXOffset=r.clientX-d.x,s.shortcutYOffset=r.clientY-d.y}var v=this.parentElement.renderedTable.rows;return v.forEach(function(V,T){V.row===o.draggedElement&&(V.isGhostRow=!0)}),this.fromIndex=this.parentElement.visibleRows.indexOf(this.draggedElement),s}},t.prototype.getDropTargetByDataAttributeValue=function(e){var n=this.parentElement,r;return r=n.renderedTable.rows.filter(function(o){return o.row&&o.row.id===e})[0],r.row},t.prototype.canInsertIntoThisRow=function(e){var n=this.parentElement.lockedRowCount;return n<=0||e.rowIndex>n},t.prototype.isDropTargetValid=function(e,n){return this.canInsertIntoThisRow(e)},t.prototype.calculateIsBottom=function(e){var n=this.parentElement.renderedTable.rows,r=n.map(function(o){return o.row});return r.indexOf(this.dropTarget)-r.indexOf(this.draggedElement)>0},t.prototype.afterDragOver=function(e){var n=this;if(!this.isDropTargetDoesntChanged(this.isBottom)){var r,o,s,a=this.parentElement.renderedTable.rows;a.forEach(function(l,u){l.row===n.dropTarget&&(r=u),l.row===n.draggedElement&&(s=l,o=u,s.isGhostRow=!0)}),a.splice(o,1),a.splice(r,0,s),this.toIndex=this.parentElement.visibleRows.indexOf(this.dropTarget),i.prototype.ghostPositionChanged.call(this)}},t.prototype.clear=function(){var e=this.parentElement.renderedTable.rows;e.forEach(function(r){r.isGhostRow=!1}),this.parentElement.clearOnDrop(),this.fromIndex=null,this.toIndex=null;var n=I.getBody();n&&(n.style.userSelect=this.restoreUserSelectValue||"initial"),i.prototype.clear.call(this)},t}(Sr),Tr=function(){function i(t){var e=this;this.dragHandler=t,this.onPointerUp=function(n){e.clearListeners()},this.tryToStartDrag=function(n){if(e.currentX=n.pageX,e.currentY=n.pageY,!e.isMicroMovement)return e.clearListeners(),e.dragHandler(e.pointerDownEvent,e.currentTarget,e.itemModel),!0}}return i.prototype.onPointerDown=function(t,e){if(ne){this.dragHandler(t,t.currentTarget,e);return}this.pointerDownEvent=t,this.currentTarget=t.currentTarget,this.startX=t.pageX,this.startY=t.pageY,I.addEventListener("pointermove",this.tryToStartDrag),this.currentTarget.addEventListener("pointerup",this.onPointerUp),this.itemModel=e},Object.defineProperty(i.prototype,"isMicroMovement",{get:function(){var t=10,e=Math.abs(this.currentX-this.startX),n=Math.abs(this.currentY-this.startY);return e<t&&n<t},enumerable:!1,configurable:!0}),i.prototype.clearListeners=function(){this.pointerDownEvent&&(I.removeEventListener("pointermove",this.tryToStartDrag),this.currentTarget.removeEventListener("pointerup",this.onPointerUp))},i}(),Rr=function(){var i=function(t,e){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(n[o]=r[o])},i(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");i(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),Uo=function(i){Rr(t,i);function t(e,n,r){var o=i.call(this,n,r)||this;return o.index=e,o.buildCells(r),o}return t.prototype.getRowIndex=function(){var e=i.prototype.getRowIndex.call(this);return e>0?e:this.index+1},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,n=e.visibleRows.indexOf(this)+1,r=this.cells.length>1?this.cells[1].questionValue:void 0,o=this.cells.length>0?this.cells[0].questionValue:void 0;return r&&r.value||o&&o.value||""+n},enumerable:!1,configurable:!0}),t}(_e),Er=function(i){Rr(t,i);function t(e){var n=i.call(this,e)||this;n.rowCounter=0,n.setRowCountValueFromData=!1,n.startDragMatrixRow=function(o,s){n.dragDropMatrixRows.startDrag(o,n.draggedRow,n,o.target)},n.initialRowCount=n.getDefaultPropertyValue("rowCount"),n.createLocalizableString("confirmDeleteText",n,!1,"confirmDelete");var r=n.createLocalizableString("addRowText",n);return r.onGetTextCallback=function(o){return o||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.resetRenderedTable()}),n.registerPropertyChangedHandlers(["minRowCount"],function(){n.onMinRowCountChanged()}),n.registerPropertyChangedHandlers(["maxRowCount"],function(){n.onMaxRowCountChanged()}),n.dragOrClickHelper=new Tr(n.startDragMatrixRow),n}return t.prototype.setSurveyImpl=function(e,n){i.prototype.setSurveyImpl.call(this,e,n),this.dragDropMatrixRows=new Ju(this.survey,null,!0)},t.prototype.isBanStartDrag=function(e){var n=e.target;return n.getAttribute("contenteditable")==="true"||n.nodeName==="INPUT"||!this.isDragHandleAreaValid(n)},t.prototype.isDragHandleAreaValid=function(e){return this.survey.matrixDragHandleArea==="icon"?e.classList.contains(this.cssClasses.dragElementDecorator):!0},t.prototype.onPointerDown=function(e,n){!n||!this.isRowsDragAndDrop||this.isDesignMode||this.isBanStartDrag(e)||n.isDetailPanelShowing||(this.draggedRow=n,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 i.prototype.isDefaultValueEmpty.call(this)&&this.isValueEmpty(this.defaultRowValue)},t.prototype.valueFromData=function(e){if(this.minRowCount<1||this.isEmpty())return i.prototype.valueFromData.call(this,e);Array.isArray(e)||(e=[]);for(var n=e.length;n<this.minRowCount;n++)e.push({});return e},t.prototype.isNewValueCorrect=function(e){return Array.isArray(e)},t.prototype.setDefaultValue=function(){if(this.isValueEmpty(this.defaultRowValue)||!this.isValueEmpty(this.defaultValue)){i.prototype.setDefaultValue.call(this);return}if(!(!this.isEmpty()||this.rowCount==0)){for(var e=[],n=0;n<this.rowCount;n++)e.push(this.defaultRowValue);this.value=e}},t.prototype.moveRowByIndex=function(e,n){var r=this.createNewValue();if(!(!Array.isArray(r)&&Math.max(e,n)>=r.length)){var o=r[e];r.splice(e,1),r.splice(n,0,o),this.value=r}},t.prototype.clearOnDrop=function(){this.isEditingSurveyElement||this.resetRenderedTable()},t.prototype.initDataUI=function(){this.generatedVisibleRows||this.getVisibleRows()},Object.defineProperty(t.prototype,"rowCount",{get:function(){return this.rowCountValue},set:function(e){if(e=P.getNumber(e),!(e<0||e>b.matrix.maxRowCount)){this.setRowCountValueFromData=!1;var n=this.rowCountValue;if(this.rowCountValue=e,this.value&&this.value.length>e){var r=this.value;r.splice(e),this.value=r}if(this.isUpdateLocked){this.initialRowCount=e;return}if(this.generatedVisibleRows||n==0){this.generatedVisibleRows||(this.clearGeneratedRows(),this.generatedVisibleRows=[]),this.generatedVisibleRows.splice(e);for(var o=n;o<e;o++){var s=this.createMatrixRow(this.getValueForNewRow());this.generatedVisibleRows.push(s),this.onMatrixRowCreated(s)}this.runCondition(this.getDataFilteredValues(),this.getDataFilteredProperties())}this.onRowsChanged()}},enumerable:!1,configurable:!0}),t.prototype.updateBindingProp=function(e,n){i.prototype.updateBindingProp.call(this,e,n);var r=this.generatedVisibleRows;if(!(e!=="rowCount"||!Array.isArray(r))){var o=this.getUnbindValue(this.value)||[];if(o.length<r.length){for(var s=!1,a=o.length;a<r.length;a++)s||(s=!r[a].isEmpty),o.push(r[a].value||{});s&&(this.value=o)}}},t.prototype.updateProgressInfoByValues=function(e){var n=this.value;Array.isArray(n)||(n=[]);for(var r=0;r<this.rowCount;r++){var o=r<n.length?n[r]:{};this.updateProgressInfoByRow(e,o)}},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 Gu(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)},enumerable:!1,configurable:!0}),t.prototype.onMinRowCountChanged=function(){var e=this.minRowCount;e>this.maxRowCount&&(this.maxRowCount=e),this.initialRowCount<e&&(this.initialRowCount=e),this.rowCount<e&&(this.rowCount=e)},Object.defineProperty(t.prototype,"maxRowCount",{get:function(){return this.getPropertyValue("maxRowCount")},set:function(e){e<=0||(e>b.matrix.maxRowCount&&(e=b.matrix.maxRowCount),e!=this.maxRowCount&&this.setPropertyValue("maxRowCount",e))},enumerable:!1,configurable:!0}),t.prototype.onMaxRowCountChanged=function(){var e=this.maxRowCount;e<this.minRowCount&&(this.minRowCount=e),this.rowCount>e&&(this.rowCount=e)},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 n=e.rowIndex-1;return this.lockedRowCount>0&&n<this.lockedRowCount?!1:this.survey.matrixAllowRemoveRow(this,n,e)},t.prototype.addRowUI=function(){this.addRow(!0)},t.prototype.getQuestionToFocusOnAddingRow=function(){if(this.visibleRows.length===0)return null;for(var e=this.visibleRows[this.visibleRows.length-1],n=0;n<e.cells.length;n++){var r=e.cells[n].question;if(r&&r.isVisible&&!r.isReadOnly)return r}return null},t.prototype.addRow=function(e){var n=this.rowCount,r=this.canAddRow,o={question:this,canAddRow:r,allow:r};this.survey&&this.survey.matrixBeforeRowAdded(o);var s=r!==o.allow?o.allow:r!==o.canAddRow?o.canAddRow:r;if(s&&(this.onStartRowAddingRemoving(),this.addRowCore(),this.onEndRowAdding(),this.detailPanelShowOnAdding&&this.visibleRows.length>0&&this.visibleRows[this.visibleRows.length-1].showDetailPanel(),e&&n!==this.rowCount)){var a=this.getQuestionToFocusOnAddingRow();a&&a.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,i.prototype.unbindValue.call(this)},t.prototype.isValueSurveyElement=function(e){return this.isEditingSurveyElement||i.prototype.isValueSurveyElement.call(this,e)},t.prototype.addRowCore=function(){var e=this.rowCount;this.rowCount=this.rowCount+1;var n=this.getDefaultRowValue(!0),r=null;if(this.isValueEmpty(n)||(r=this.createNewValue(),r.length==this.rowCount&&(r[r.length-1]=n,this.value=r)),this.data){this.runCellsCondition(this.getDataFilteredValues(),this.getDataFilteredProperties());var o=this.visibleRows;if(this.isValueEmpty(n)&&o.length>0){var s=o[o.length-1];this.isValueEmpty(s.value)||(r||(r=this.createNewValue()),!this.isValueSurveyElement(r)&&!this.isTwoValueEquals(r[r.length-1],s.value)&&(r[r.length-1]=s.value,this.value=r))}}if(this.survey){var o=this.visibleRows;if(e+1==this.rowCount&&o.length>0){var s=o[o.length-1];this.survey.matrixRowAdded(this,s),this.onRowsChanged()}}},t.prototype.getDefaultRowValue=function(e){for(var n=null,r=0;r<this.columns.length;r++){var o=this.columns[r].templateQuestion;o&&!this.isValueEmpty(o.getDefaultValue())&&(n=n||{},n[this.columns[r].name]=o.getDefaultValue())}if(!this.isValueEmpty(this.defaultRowValue))for(var s in this.defaultRowValue)n=n||{},n[s]=this.defaultRowValue[s];if(e&&this.defaultValueFromLastRow){var a=this.value;if(a&&Array.isArray(a)&&a.length>=this.rowCount-1){var l=a[this.rowCount-2];for(var s in l)n=n||{},n[s]=l[s]}}return n},t.prototype.focusAddBUtton=function(){var e=this.getRootElement();if(e&&this.cssClasses.buttonAdd){var n=e.querySelectorAll("."+this.cssClasses.buttonAdd)[0];n&&n.focus()}},t.prototype.getActionCellIndex=function(e){var n=this.showHeader?1:0;return this.isColumnLayoutHorizontal?e.cells.length-1+n:this.visibleRows.indexOf(e)+n},t.prototype.removeRowUI=function(e){var n=this;if(e&&e.rowName){var r=this.visibleRows.indexOf(e);if(r<0)return;e=r}this.removeRow(e,void 0,function(){var o=n.visibleRows.length,s=r>=o?o-1:r,a=s>-1?n.visibleRows[s]:void 0;setTimeout(function(){a?n.renderedTable.focusActionCell(a,n.getActionCellIndex(a)):n.focusAddBUtton()},10)})},t.prototype.isRequireConfirmOnRowDelete=function(e){if(!this.confirmDelete||e<0||e>=this.rowCount)return!1;var n=this.createNewValue();return this.isValueEmpty(n)||!Array.isArray(n)||e>=n.length?!1:!this.isValueEmpty(n[e])},t.prototype.removeRow=function(e,n,r){var o=this;if(this.canRemoveRows&&!(e<0||e>=this.rowCount)){var s=this.visibleRows&&e<this.visibleRows.length?this.visibleRows[e]:null;if(n===void 0&&(n=this.isRequireConfirmOnRowDelete(e)),n){At({message:this.confirmDeleteText,funcOnYes:function(){o.removeRowAsync(e,s),r&&r()},locale:this.getLocale(),rootElement:this.survey.rootElement,cssClass:this.cssClasses.confirmDialog});return}this.removeRowAsync(e,s),r&&r()}},t.prototype.removeRowAsync=function(e,n){n&&this.survey&&!this.survey.matrixRowRemoving(this,e,n)||(this.onStartRowAddingRemoving(),this.removeRowCore(e),this.onEndRowRemoving(n))},t.prototype.removeRowCore=function(e){var n=this.generatedVisibleRows?this.generatedVisibleRows[e]:null;if(this.generatedVisibleRows&&e<this.generatedVisibleRows.length&&this.generatedVisibleRows.splice(e,1),this.rowCountValue--,this.value){var r=[];Array.isArray(this.value)&&e<this.value.length?r=this.createValueCopy():r=this.createNewValue(),r.splice(e,1),r=this.deleteRowValue(r,null),this.isRowChanging=!0,this.value=r,this.isRowChanging=!1}this.onRowsChanged(),this.survey&&this.survey.matrixRowRemoved(this,e,n)},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,n){if(!n||!Array.isArray(n))return n;for(var r=this.getUnbindValue(n),o=this.visibleRows,s=0;s<o.length&&s<r.length;s++){var a=r[s];a&&(r[s]=this.getRowDisplayValue(e,o[s],a))}return r},t.prototype.getConditionObjectRowName=function(e){return"["+e.toString()+"]"},t.prototype.getConditionObjectsRowIndeces=function(){for(var e=[],n=Math.max(this.rowCount,1),r=0;r<Math.min(b.matrix.maxRowCountInCondition,n);r++)e.push(r);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(e,n,r){i.prototype.onCheckForErrors.call(this,e,n,r),!n&&this.hasErrorInMinRows()&&e.push(new Su(this.minRowCount,this))},t.prototype.hasErrorInMinRows=function(){if(this.minRowCount<=0||!this.isRequired||!this.generatedVisibleRows)return!1;for(var e=0,n=0;n<this.generatedVisibleRows.length;n++){var r=this.generatedVisibleRows[n];r.isEmpty||e++}return e<this.minRowCount},t.prototype.getUniqueColumnsNames=function(){var e=i.prototype.getUniqueColumnsNames.call(this),n=this.keyName;return n&&e.indexOf(n)<0&&e.push(n),e},t.prototype.generateRows=function(){var e=new Array;if(this.rowCount===0)return e;for(var n=this.createNewValue(),r=0;r<this.rowCount;r++)e.push(this.createMatrixRow(this.getRowValueByIndex(n,r)));return this.isValueEmpty(this.getDefaultRowValue(!1))||(this.value=n),e},t.prototype.createMatrixRow=function(e){return new Uo(this.rowCounter++,this,e)},t.prototype.getInsertedDeletedIndex=function(e,n){for(var r=Math.min(e.length,n.length),o=0;o<r;o++)if(n[o]!==e[o].editingObj)return o;return r},t.prototype.isEditingObjectValueChanged=function(){var e=this.value;if(!this.generatedVisibleRows||!this.isValueSurveyElement(e))return!1;var n=this.lastDeletedRow;this.lastDeletedRow=void 0;var r=this.generatedVisibleRows;if(!Array.isArray(e)||Math.abs(r.length-e.length)>1||r.length===e.length)return!1;var o=this.getInsertedDeletedIndex(r,e);if(r.length>e.length){this.lastDeletedRow=r[o];var s=r[o];r.splice(o,1),this.isRendredTableCreated&&this.renderedTable.onRemovedRow(s)}else{var a=void 0;n&&n.editingObj===e[o]?a=n:(n=void 0,a=this.createMatrixRow(e[o])),r.splice(o,0,a),n||this.onMatrixRowCreated(a),this.isRendredTableCreated&&this.renderedTable.onAddedRow(a,o)}return this.setPropertyValueDirectly("rowCount",e.length),!0},t.prototype.updateValueFromSurvey=function(e,n){if(n===void 0&&(n=!1),this.setRowCountValueFromData=!0,this.minRowCount>0&&P.isValueEmpty(e)&&!P.isValueEmpty(this.defaultRowValue)){e=[];for(var r=0;r<this.minRowCount;r++)e.push(P.createCopy(this.defaultRowValue))}i.prototype.updateValueFromSurvey.call(this,e,n),this.setRowCountValueFromData=!1},t.prototype.getFilteredDataCore=function(){var e=[],n=this.createValueCopy();if(!Array.isArray(n))return e;for(var r=this.generatedVisibleRows,o=0;o<r.length&&o<n.length;o++){var s=n[o];r[o].isVisible&&!P.isValueEmpty(s)&&e.push(s)}return e},t.prototype.onBeforeValueChanged=function(e){if(!(!e||!Array.isArray(e))){var n=e.length;if(n!=this.rowCount&&!(!this.setRowCountValueFromData&&n<this.initialRowCount)&&!this.isEditingObjectValueChanged()&&(this.setRowCountValueFromData=!0,this.rowCountValue=n,!!this.generatedVisibleRows)){if(n==this.generatedVisibleRows.length+1){this.onStartRowAddingRemoving();var r=this.getRowValueByIndex(e,n-1),o=this.createMatrixRow(r);this.generatedVisibleRows.push(o),this.onMatrixRowCreated(o),this.onEndRowAdding()}else this.clearGeneratedRows(),this.getVisibleRows(),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 n=this.getDefaultRowValue(!1);n=n||{};for(var r=e.length;r<this.rowCount;r++)e.push(this.getUnbindValue(n));return e},t.prototype.deleteRowValue=function(e,n){if(!Array.isArray(e))return e;for(var r=!0,o=0;o<e.length;o++)if(this.isObject(e[o])&&Object.keys(e[o]).length>0){r=!1;break}return r?null:e},t.prototype.getRowValueByIndex=function(e,n){return Array.isArray(e)&&n>=0&&n<e.length?e[n]:null},t.prototype.getRowValueCore=function(e,n,r){if(r===void 0&&(r=!1),!this.generatedVisibleRows)return{};var o=this.getRowValueByIndex(n,this.generatedVisibleRows.indexOf(e));return!o&&r&&(o={}),o},t.prototype.getAddRowButtonCss=function(e){return e===void 0&&(e=!1),new O().append(this.cssClasses.button).append(this.cssClasses.buttonAdd).append(this.cssClasses.emptyRowsButton,e).toString()},t.prototype.getRemoveRowButtonCss=function(){return new O().append(this.cssClasses.button).append(this.cssClasses.buttonRemove).toString()},t.prototype.getRootCss=function(){var e;return new O().append(i.prototype.getRootCss.call(this)).append(this.cssClasses.empty,!(!((e=this.renderedTable)===null||e===void 0)&&e.showTable)).toString()},t}(bt),Gu=function(i){Rr(t,i);function t(){return i!==null&&i.apply(this,arguments)||this}return t.prototype.setDefaultRowActions=function(e,n){i.prototype.setDefaultRowActions.call(this,e,n)},t}(Vr);x.addClass("matrixdynamic",[{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:b.matrix.maxRowCount},{name:"keyName"},"defaultRowValue:rowvalue","defaultValueFromLastRow:boolean",{name:"confirmDelete:boolean"},{name:"confirmDeleteText",dependsOn:"confirmDelete",visibleIf:function(i){return!i||i.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(i){return!i||i.hideColumnsIfEmpty}},{name:"detailPanelShowOnAdding:boolean",dependsOn:"detailPanelMode",visibleIf:function(i){return i.detailPanelMode!=="none"}},"allowRowsDragAndDrop:switch"],function(){return new Er("")},"matrixdropdownbase"),J.Instance.registerQuestion("matrixdynamic",function(i){var t=new Er(i);return t.choices=[1,2,3,4,5],bt.addDefaultColumns(t),t});var se={currentType:"",getCss:function(){var i=this.currentType?this[this.currentType]:yn;return i||(i=yn),i},getAvailableThemes:function(){return Object.keys(this).filter(function(i){return["currentType","getCss","getAvailableThemes"].indexOf(i)===-1})}},yn={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:{contentEnter:"sd-element__content--enter",contentLeave:"sd-element__content--leave",enter:"sd-element-wrapper--enter",leave:"sd-element-wrapper--leave",asPage:"sd-panel--as-page",number:"sd-element__num",title:"sd-title sd-element__title sd-panel__title",titleExpandable:"sd-element__title--expandable",titleExpandableSvg:"sd-element__title-expandable-svg",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",panelWrapperEnter:"sd-paneldynamic__panel-wrapper--enter",panelWrapperLeave:"sd-paneldynamic__panel-wrapper--leave",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",number:"sd-page__num",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",rowEnter:"sd-row--enter",rowDelayedEnter:"sd-row--delayed-enter",rowLeave:"sd-row--leave",rowReplace:"sd-row--replace",pageRow:"sd-page__row",question:{contentEnter:"sd-element__content--enter",contentLeave:"sd-element__content--leave",enter:"sd-element-wrapper--enter",leave:"sd-element-wrapper--leave",mobile:"sd-question--mobile",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",titleExpandableSvg:"sd-element__title-expandable-svg",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-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",confirmDialog:"sd-popup--confirm sv-popup--confirm"},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",itemEnter:"sd-item--enter",itemLeave:"sd-item--leave",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-check-16x16",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-check-16x16",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:"",itemEnter:"sd-item--enter",itemLeave:"sd-item--leave",itemDisabled:"sd-item--disabled sd-radio--disabled",itemReadOnly:"sd-item--readonly sd-radio--readonly",itemPreview:"sd-item--preview sd-radio--preview",itemPreviewSvgIconId:"#icon-check-16x16",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-check-16x16",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-check-16x16"},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",itemEnter:"sd-item--enter",itemLeave:"sd-item--leave",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-cancel",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-check-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-check-16x16",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",rowDelayedEnter:"sd-table__row--delayed-enter",rowEnter:"sd-table__row--enter",rowLeave:"sd-table__row--leave",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-matrix__question-wrapper 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",rowDelayedEnter:"sd-table__row--delayed-enter",rowEnter:"sd-table__row--enter",rowLeave:"sd-table__row--leave",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-drag-24x24",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",draggedRow:"sv-matrixdynamic-dragged-row",emptyCell:"sd-table__cell--empty",verticalCell:"sd-table__cell--vertical",cellQuestionWrapper:"sd-matrix__question-wrapper 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",page:"sd-file__page"},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",rootSelectToRankSwapAreas:"sv-ranking--select-to-rank-swap-areas",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",itemHovered:"sv-list__item--hovered sd-list__item--hovered"},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-check-16x16",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",itemEnter:"sd-item--enter",itemLeave:"sd-item--leave",cleanButton:"sd-tagbox_clean-button sd-dropdown_clean-button",cleanButtonSvg:"sd-tagbox_clean-button-svg sd-dropdown_clean-button-svg",cleanButtonIconId:"icon-cancel-24x24",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"}},Wo="defaultV2";se[Wo]=yn;var Ku="surveyjs.io",Yu=65536,$o=function(){function i(){}return Object.defineProperty(i,"serviceUrl",{get:function(){return b.web.surveyServiceUrl},set:function(t){b.web.surveyServiceUrl=t},enumerable:!1,configurable:!0}),i.prototype.loadSurvey=function(t,e){var n=new XMLHttpRequest;n.open("GET",this.serviceUrl+"/getSurvey?surveyId="+t),n.setRequestHeader("Content-Type","application/x-www-form-urlencoded"),n.onload=function(){var r=JSON.parse(n.response);e(n.status==200,r,n.response)},n.send()},i.prototype.getSurveyJsonAndIsCompleted=function(t,e,n){var r=new XMLHttpRequest;r.open("GET",this.serviceUrl+"/getSurveyAndIsCompleted?surveyId="+t+"&clientId="+e),r.setRequestHeader("Content-Type","application/x-www-form-urlencoded"),r.onload=function(){var o=JSON.parse(r.response),s=o?o.survey:null,a=o?o.isCompleted:null;n(r.status==200,s,a,r.response)},r.send()},i.prototype.canSendResult=function(t){if(!this.isSurveJSIOService)return!0;var e=JSON.stringify(t);return e.length<Yu},Object.defineProperty(i.prototype,"isSurveJSIOService",{get:function(){return this.serviceUrl.indexOf(Ku)>=0},enumerable:!1,configurable:!0}),i.prototype.sendResult=function(t,e,n,r,o){r===void 0&&(r=null),o===void 0&&(o=!1),this.canSendResult(e)?this.sendResultCore(t,e,n,r,o):n(!1,oe("savingExceedSize",this.locale),void 0)},i.prototype.sendResultCore=function(t,e,n,r,o){r===void 0&&(r=null),o===void 0&&(o=!1);var s=new XMLHttpRequest;s.open("POST",this.serviceUrl+"/post/"),s.setRequestHeader("Content-Type","application/json; charset=utf-8");var a={postId:t,surveyResult:JSON.stringify(e)};r&&(a.clientId=r),o&&(a.isPartialCompleted=!0);var l=JSON.stringify(a);s.onload=s.onerror=function(){n&&n(s.status===200,s.response,s)},s.send(l)},i.prototype.sendFile=function(t,e,n){var r=new XMLHttpRequest;r.onload=r.onerror=function(){n&&n(r.status==200,JSON.parse(r.response))},r.open("POST",this.serviceUrl+"/upload/",!0);var o=new FormData;o.append("file",e),o.append("postId",t),r.send(o)},i.prototype.getResult=function(t,e,n){var r=new XMLHttpRequest,o="resultId="+t+"&name="+e;r.open("GET",this.serviceUrl+"/getResult?"+o),r.setRequestHeader("Content-Type","application/x-www-form-urlencoded"),r.onload=function(){var s=null,a=null;if(r.status==200){s=JSON.parse(r.response),a=[];for(var l in s.QuestionResult){var u={name:l,value:s.QuestionResult[l]};a.push(u)}}n(r.status==200,s,a,r.response)},r.send()},i.prototype.isCompleted=function(t,e,n){var r=new XMLHttpRequest,o="resultId="+t+"&clientId="+e;r.open("GET",this.serviceUrl+"/isCompleted?"+o),r.setRequestHeader("Content-Type","application/x-www-form-urlencoded"),r.onload=function(){var s=null;r.status==200&&(s=JSON.parse(r.response)),n(r.status==200,s,r.response)},r.send()},Object.defineProperty(i.prototype,"serviceUrl",{get:function(){return i.serviceUrl||""},enumerable:!1,configurable:!0}),i}(),He={setTimeout:function(i){return He.safeTimeOut(i,1e3)},clearTimeout:function(i){clearTimeout(i)},safeTimeOut:function(i,t){return t<=0?(i(),0):setTimeout(i,t)},now:function(){return Date.now()}},Ir=function(){function i(){this.listenerCounter=0,this.timerId=-1,this.onTimerTick=new Ve,this.onTimer=this.onTimerTick}return Object.defineProperty(i,"instance",{get:function(){return i.instanceValue||(i.instanceValue=new i),i.instanceValue},enumerable:!1,configurable:!0}),i.prototype.start=function(t){var e=this;t===void 0&&(t=null),t&&this.onTimerTick.add(t),this.prevTimeInMs=He.now(),this.timerId<0&&(this.timerId=He.setTimeout(function(){e.doTimer()})),this.listenerCounter++},i.prototype.stop=function(t){t===void 0&&(t=null),t&&this.onTimerTick.remove(t),this.listenerCounter--,this.listenerCounter==0&&this.timerId>-1&&(He.clearTimeout(this.timerId),this.timerId=-1)},i.prototype.doTimer=function(){var t=this;if((this.onTimerTick.isEmpty||this.listenerCounter==0)&&(this.timerId=-1),!(this.timerId<0)){var e=He.now(),n=Math.floor((e-this.prevTimeInMs)/1e3);this.prevTimeInMs=e,n<0&&(n=1);var r=this.timerId;this.onTimerTick.fire(this,{seconds:n}),r===this.timerId&&(this.timerId=He.setTimeout(function(){t.doTimer()}))}},i.instanceValue=null,i}(),Xu=function(){var i=function(t,e){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(n[o]=r[o])},i(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");i(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),Ft=function(i,t,e,n){var r=arguments.length,o=r<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,e):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(i,t,e,n);else for(var a=i.length-1;a>=0;a--)(s=i[a])&&(o=(r<3?s(o):r>3?s(t,e,o):s(t,e))||o);return r>3&&o&&Object.defineProperty(t,e,o),o},Jo=function(i){Xu(t,i);function t(e){var n=i.call(this)||this;return n.timerFunc=null,n.surveyValue=e,n.onCreating(),n}return 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(n,r){e.doTimer(r.seconds)},this.setIsRunning(!0),this.update(),Ir.instance.start(this.timerFunc)))},t.prototype.stop=function(){this.isRunning&&(this.setIsRunning(!1),Ir.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(e){var n=this.survey.currentPage;if(n){var r=n.getMaxTimeToFinish();r>0&&r<n.timeSpent+e&&(e=r-n.timeSpent),n.timeSpent=n.timeSpent+e}this.spent=this.spent+e,this.update(),this.onTimerTick&&this.onTimerTick(n)},t.prototype.updateProgress=function(){var e=this,n=this.survey.timerInfo,r=n.spent,o=n.limit;o?(r==0?(this.progress=0,setTimeout(function(){e.progress=Math.floor((r+1)/o*100)/100},0)):r<=o&&(this.progress=Math.floor((r+1)/o*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 this.progress!==void 0},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 O().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 O().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}),Ft([h()],t.prototype,"text",void 0),Ft([h()],t.prototype,"progress",void 0),Ft([h()],t.prototype,"clockMajorText",void 0),Ft([h()],t.prototype,"clockMinorText",void 0),Ft([h({defaultValue:0})],t.prototype,"spent",void 0),t}(z),Zu=function(){var i=function(t,e){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(n[o]=r[o])},i(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");i(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),mn=function(i,t,e,n){var r=arguments.length,o=r<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,e):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(i,t,e,n);else for(var a=i.length-1;a>=0;a--)(s=i[a])&&(o=(r<3?s(o):r>3?s(t,e,o):s(t,e))||o);return r>3&&o&&Object.defineProperty(t,e,o),o},Go=function(i){Zu(t,i);function t(e){var n=i.call(this)||this;return n.cssClasses=e,n.timeout=b.notifications.lifetime,n.timer=void 0,n.actionsVisibility={},n.showActions=!0,n.actionBar=new Ee,n.actionBar.updateCallback=function(r){n.actionBar.actions.forEach(function(o){return o.cssClasses={}})},n.css=n.cssClasses.root,n}return t.prototype.getCssClass=function(e){return new O().append(this.cssClasses.root).append(this.cssClasses.rootWithButtons,this.actionBar.visibleActions.length>0).append(this.cssClasses.info,e!=="error"&&e!=="success").append(this.cssClasses.error,e==="error").append(this.cssClasses.success,e==="success").append(this.cssClasses.shown,this.active).toString()},t.prototype.updateActionsVisibility=function(e){var n=this;this.actionBar.actions.forEach(function(r){return r.visible=n.showActions&&n.actionsVisibility[r.id]===e})},t.prototype.notify=function(e,n,r){var o=this;n===void 0&&(n="info"),r===void 0&&(r=!1),this.isDisplayed=!0,setTimeout(function(){o.updateActionsVisibility(n),o.message=e,o.active=!0,o.css=o.getCssClass(n),o.timer&&(clearTimeout(o.timer),o.timer=void 0),r||(o.timer=setTimeout(function(){o.timer=void 0,o.active=!1,o.css=o.getCssClass(n)},o.timeout))},1)},t.prototype.addAction=function(e,n){e.visible=!1,e.innerCss=this.cssClasses.button;var r=this.actionBar.addAction(e);this.actionsVisibility[r.id]=n},mn([h({defaultValue:!1})],t.prototype,"active",void 0),mn([h({defaultValue:!1})],t.prototype,"isDisplayed",void 0),mn([h()],t.prototype,"message",void 0),mn([h()],t.prototype,"css",void 0),t}(z),ec=function(){var i=function(t,e){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(n[o]=r[o])},i(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");i(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),X=function(i,t,e,n){var r=arguments.length,o=r<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,e):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(i,t,e,n);else for(var a=i.length-1;a>=0;a--)(s=i[a])&&(o=(r<3?s(o):r>3?s(t,e,o):s(t,e))||o);return r>3&&o&&Object.defineProperty(t,e,o),o},Ko=function(){function i(t,e,n){this.cover=t,this.positionX=e,this.positionY=n}return i.prototype.calcRow=function(t){return t==="top"?1:t==="middle"?2:3},i.prototype.calcColumn=function(t){return t==="left"?1:t==="center"?2:3},i.prototype.calcAlignItems=function(t){return t==="left"?"flex-start":t==="center"?"center":"flex-end"},i.prototype.calcAlignText=function(t){return t==="left"?"start":t==="center"?"center":"end"},i.prototype.calcJustifyContent=function(t){return t==="top"?"flex-start":t==="middle"?"center":"flex-end"},Object.defineProperty(i.prototype,"survey",{get:function(){return this.cover.survey},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"css",{get:function(){var t=i.CLASSNAME+" "+i.CLASSNAME+"--"+this.positionX+" "+i.CLASSNAME+"--"+this.positionY;return t},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"style",{get:function(){var t={};return t.gridColumn=this.calcColumn(this.positionX),t.gridRow=this.calcRow(this.positionY),t},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"contentStyle",{get:function(){var t={};return t.textAlign=this.calcAlignText(this.positionX),t.alignItems=this.calcAlignItems(this.positionX),t.justifyContent=this.calcJustifyContent(this.positionY),t},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"showLogo",{get:function(){return this.survey.hasLogo&&this.positionX===this.cover.logoPositionX&&this.positionY===this.cover.logoPositionY},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"showTitle",{get:function(){return this.survey.hasTitle&&this.positionX===this.cover.titlePositionX&&this.positionY===this.cover.titlePositionY},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"showDescription",{get:function(){return this.survey.renderedHasDescription&&this.positionX===this.cover.descriptionPositionX&&this.positionY===this.cover.descriptionPositionY},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"textAreaWidth",{get:function(){return this.cover.textAreaWidth?""+this.cover.textAreaWidth+"px":""},enumerable:!1,configurable:!0}),i.CLASSNAME="sv-header__cell",i}(),vn=function(i){ec(t,i);function t(){var e=i.call(this)||this;return e.cells=[],["top","middle","bottom"].forEach(function(n){return["left","center","right"].forEach(function(r){return e.cells.push(new Ko(e,r,n))})}),e.init(),e}return t.prototype.calcBackgroundSize=function(e){return e==="fill"?"100% 100%":e==="tile"?"auto":e},t.prototype.updateHeaderClasses=function(){this.headerClasses=new O().append("sv-header").append("sv-header__without-background",this.backgroundColor==="transparent"&&!this.backgroundImage).append("sv-header__background-color--none",this.backgroundColor==="transparent"&&!this.titleColor&&!this.descriptionColor).append("sv-header__background-color--accent",!this.backgroundColor&&!this.titleColor&&!this.descriptionColor).append("sv-header__background-color--custom",!!this.backgroundColor&&this.backgroundColor!=="transparent"&&!this.titleColor&&!this.descriptionColor).append("sv-header__overlap",this.overlapEnabled).toString()},t.prototype.updateContentClasses=function(){var e=!!this.survey&&this.survey.calculateWidthMode();this.maxWidth=this.inheritWidthFrom==="survey"&&!!e&&e==="static"&&this.survey.renderedWidth,this.contentClasses=new O().append("sv-header__content").append("sv-header__content--static",this.inheritWidthFrom==="survey"&&!!e&&e==="static").append("sv-header__content--responsive",this.inheritWidthFrom==="container"||!!e&&e==="responsive").toString()},t.prototype.updateBackgroundImageClasses=function(){this.backgroundImageClasses=new O().append("sv-header__background-image").append("sv-header__background-image--contain",this.backgroundImageFit==="contain").append("sv-header__background-image--tile",this.backgroundImageFit==="tile").toString()},t.prototype.fromTheme=function(e){i.prototype.fromJSON.call(this,e.header||{}),e.cssVariables&&(this.backgroundColor=e.cssVariables["--sjs-header-backcolor"],this.titleColor=e.cssVariables["--sjs-font-headertitle-color"],this.descriptionColor=e.cssVariables["--sjs-font-headerdescription-color"]),this.init()},t.prototype.init=function(){this.renderBackgroundImage=tr(this.backgroundImage),this.updateHeaderClasses(),this.updateContentClasses(),this.updateBackgroundImageClasses()},t.prototype.getType=function(){return"cover"},Object.defineProperty(t.prototype,"renderedHeight",{get:function(){if(this.survey&&!this.survey.isMobile||!this.survey)return this.height?Math.max(this.height,this.actualHeight+40)+"px":void 0;if(this.survey&&this.survey.isMobile)return this.mobileHeight?Math.max(this.mobileHeight,this.actualHeight)+"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 n=this;this._survey!==e&&(this._survey=e,e&&(this.updateContentClasses(),this._survey.onPropertyChanged.add(function(r,o){(o.name=="widthMode"||o.name=="width")&&n.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(e,n,r,o,s){i.prototype.propertyValueChanged.call(this,e,n,r),(e==="backgroundColor"||e==="backgroundImage"||e==="overlapEnabled")&&this.updateHeaderClasses(),e==="inheritWidthFrom"&&this.updateContentClasses(),e==="backgroundImageFit"&&this.updateBackgroundImageClasses()},t.prototype.calculateActualHeight=function(e,n,r){var o=["top","middle","bottom"],s=o.indexOf(this.logoPositionY),a=o.indexOf(this.titlePositionY),l=o.indexOf(this.descriptionPositionY),u=["left","center","right"],d=u.indexOf(this.logoPositionX),v=u.indexOf(this.titlePositionX),V=u.indexOf(this.descriptionPositionX),T=[[0,0,0],[0,0,0],[0,0,0]];return T[s][d]=e,T[a][v]+=n,T[l][V]+=r,T.reduce(function(R,N){return R+Math.max.apply(Math,N)},0)},t.prototype.processResponsiveness=function(e){if(this.survey&&this.survey.rootElement)if(this.survey.isMobile){var u=this.survey.rootElement.querySelectorAll(".sv-header > div")[0];this.actualHeight=u?u.getBoundingClientRect().height:0}else{var n=this.survey.rootElement.querySelectorAll(".sv-header__logo")[0],r=this.survey.rootElement.querySelectorAll(".sv-header__title")[0],o=this.survey.rootElement.querySelectorAll(".sv-header__description")[0],s=n?n.getBoundingClientRect().height:0,a=r?r.getBoundingClientRect().height:0,l=o?o.getBoundingClientRect().height:0;this.actualHeight=this.calculateActualHeight(s,a,l)}},Object.defineProperty(t.prototype,"hasBackground",{get:function(){return!!this.backgroundImage||this.backgroundColor!=="transparent"},enumerable:!1,configurable:!0}),X([h({defaultValue:0})],t.prototype,"actualHeight",void 0),X([h()],t.prototype,"height",void 0),X([h()],t.prototype,"mobileHeight",void 0),X([h()],t.prototype,"inheritWidthFrom",void 0),X([h()],t.prototype,"textAreaWidth",void 0),X([h()],t.prototype,"textGlowEnabled",void 0),X([h()],t.prototype,"overlapEnabled",void 0),X([h()],t.prototype,"backgroundColor",void 0),X([h()],t.prototype,"titleColor",void 0),X([h()],t.prototype,"descriptionColor",void 0),X([h({onSet:function(e,n){n.renderBackgroundImage=tr(e)}})],t.prototype,"backgroundImage",void 0),X([h()],t.prototype,"renderBackgroundImage",void 0),X([h()],t.prototype,"backgroundImageFit",void 0),X([h()],t.prototype,"backgroundImageOpacity",void 0),X([h()],t.prototype,"logoPositionX",void 0),X([h()],t.prototype,"logoPositionY",void 0),X([h()],t.prototype,"titlePositionX",void 0),X([h()],t.prototype,"titlePositionY",void 0),X([h()],t.prototype,"descriptionPositionX",void 0),X([h()],t.prototype,"descriptionPositionY",void 0),X([h()],t.prototype,"logoStyle",void 0),X([h()],t.prototype,"titleStyle",void 0),X([h()],t.prototype,"descriptionStyle",void 0),X([h()],t.prototype,"headerClasses",void 0),X([h()],t.prototype,"contentClasses",void 0),X([h()],t.prototype,"maxWidth",void 0),X([h()],t.prototype,"backgroundImageClasses",void 0),t}(z);x.addClass("cover",[{name:"height:number",minValue:0,default:256},{name:"mobileHeight:number",minValue:0,default:0},{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 vn});var tc=function(){var i=function(t,e){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(n[o]=r[o])},i(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");i(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),nc=function(i,t,e,n){var r=arguments.length,o=r<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,e):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(i,t,e,n);else for(var a=i.length-1;a>=0;a--)(s=i[a])&&(o=(r<3?s(o):r>3?s(t,e,o):s(t,e))||o);return r>3&&o&&Object.defineProperty(t,e,o),o},rc=function(){function i(t){this.type=t,this.timestamp=new Date}return i}(),ic=function(i){tc(t,i);function t(){var e=i.call(this)||this;return e.taskList=[],e.onAllTasksCompleted=e.addEvent(),e}return t.prototype.runTask=function(e,n){var r=this,o=new rc(e);return this.taskList.push(o),this.hasActiveTasks=!0,n(function(){return r.taskFinished(o)}),o},t.prototype.waitAndExecute=function(e){if(!this.hasActiveTasks){e();return}this.onAllTasksCompleted.add(function(){e()})},t.prototype.taskFinished=function(e){var n=this.taskList.indexOf(e);n>-1&&this.taskList.splice(n,1),this.hasActiveTasks&&this.taskList.length==0&&(this.hasActiveTasks=!1,this.onAllTasksCompleted.fire(this,{}))},nc([h({defaultValue:!1})],t.prototype,"hasActiveTasks",void 0),t}(z),Yo=function(){function i(t,e,n){n===void 0&&(n=-1),this.source=t,this.target=e,this.nestedPanelDepth=n}return i}(),oc=function(){function i(t){this.panel=t}return i.prototype.dragDropAddTarget=function(t){var e=this.dragDropFindRow(t.target);this.dragDropAddTargetToRow(t,e)&&this.panel.updateRowsRemoveElementFromRow(t.target,e)},i.prototype.dragDropFindRow=function(t){if(!t||t.isPage)return null;for(var e=t,n=this.panel.rows,r=0;r<n.length;r++)if(n[r].elements.indexOf(e)>-1)return n[r];for(var r=0;r<this.panel.elements.length;r++){var o=this.panel.elements[r].getPanel();if(o){var s=o.dragDropFindRow(e);if(s)return s}}return null},i.prototype.dragDropMoveElement=function(t,e,n){var r=t.parent.elements.indexOf(t);n>r&&n--,this.panel.removeElement(t),this.panel.addElement(e,n)},i.prototype.updateRowsOnElementAdded=function(t,e,n,r){n||(n=new Yo(null,t),n.target=t,n.isEdge=this.panel.elements.length>1,this.panel.elements.length<2?n.destination=r:(n.isBottom=e>0,e==0?n.destination=this.panel.elements[1]:n.destination=this.panel.elements[e-1])),this.dragDropAddTargetToRow(n,null)},i.prototype.dragDropAddTargetToRow=function(t,e){if(!t.destination||this.dragDropAddTargetToEmptyPanel(t))return!0;var n=t.destination,r=this.dragDropFindRow(n);return r?t.target.startWithNewLine?this.dragDropAddTargetToNewRow(t,r,e):this.dragDropAddTargetToExistingRow(t,r,e):!0},i.prototype.dragDropAddTargetToEmptyPanel=function(t){if(t.destination.isPage)return this.dragDropAddTargetToEmptyPanelCore(this.panel.root,t.target,t.isBottom),!0;var e=t.destination;if(e.isPanel&&!t.isEdge){var n=e;if(t.target.template===e)return!1;if(t.nestedPanelDepth<0||t.nestedPanelDepth>=n.depth)return this.dragDropAddTargetToEmptyPanelCore(e,t.target,t.isBottom),!0}return!1},i.prototype.dragDropAddTargetToExistingRow=function(t,e,n){var r=e.elements.indexOf(t.destination);if(r==0&&!t.isBottom&&!this.panel.isDesignModeV2){if(e.elements[0].startWithNewLine)return e.index>0?(t.isBottom=!0,e=e.panel.rows[e.index-1],t.destination=e.elements[e.elements.length-1],this.dragDropAddTargetToExistingRow(t,e,n)):this.dragDropAddTargetToNewRow(t,e,n)}var o=-1;n==e&&(o=e.elements.indexOf(t.target)),t.isBottom&&r++;var s=this.panel.findRowByElement(t.source);return s==e&&s.elements.indexOf(t.source)==r||r==o?!1:(o>-1&&(e.elements.splice(o,1),o<r&&r--),e.elements.splice(r,0,t.target),e.updateVisible(),o<0)},i.prototype.dragDropAddTargetToNewRow=function(t,e,n){var r=e.panel.createRowAndSetLazy(e.panel.rows.length);this.panel.isDesignModeV2&&r.setIsLazyRendering(!1),r.addElement(t.target);var o=e.index;if(t.isBottom&&o++,n&&n.panel==r.panel&&n.index==o)return!1;var s=this.panel.findRowByElement(t.source);return s&&s.panel==r.panel&&s.elements.length==1&&s.index==o?!1:(e.panel.rows.splice(o,0,r),!0)},i.prototype.dragDropAddTargetToEmptyPanelCore=function(t,e,n){var r=t.createRow();r.addElement(e),t.elements.length==0||n?t.rows.push(r):t.rows.splice(0,0,r)},i}(),sc=function(){var i=function(t,e){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(n[o]=r[o])},i(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");i(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),Ar=function(i,t,e,n){var r=arguments.length,o=r<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,e):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(i,t,e,n);else for(var a=i.length-1;a>=0;a--)(s=i[a])&&(o=(r<3?s(o):r>3?s(t,e,o):s(t,e))||o);return r>3&&o&&Object.defineProperty(t,e,o),o},Xo=function(i){sc(t,i);function t(e,n){var r=i.call(this)||this;return r.effectiveWidth=e,r.questionTitleWidth=n,r}return t.prototype.getType=function(){return"panellayoutcolumn"},t.prototype.isEmpty=function(){return!this.width&&!this.questionTitleWidth},Ar([h()],t.prototype,"width",void 0),Ar([h({onSet:function(e,n,r){e!==r&&(n.width=e)}})],t.prototype,"effectiveWidth",void 0),Ar([h()],t.prototype,"questionTitleWidth",void 0),t}(z);x.addClass("panellayoutcolumn",[{name:"effectiveWidth:number",isSerializable:!1,minValue:0},{name:"width:number",visible:!1},"questionTitleWidth"],function(i){return new Xo});var Dr=function(){var i=function(t,e){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(n[o]=r[o])},i(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");i(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),_t=function(i,t,e,n){var r=arguments.length,o=r<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,e):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(i,t,e,n);else for(var a=i.length-1;a>=0;a--)(s=i[a])&&(o=(r<3?s(o):r>3?s(t,e,o):s(t,e))||o);return r>3&&o&&Object.defineProperty(t,e,o),o},Zo=function(i,t){for(var e=0,n=t.length,r=i.length;e<n;e++,r++)i[r]=t[e];return i},es=function(i){Dr(t,i);function t(e){var n=i.call(this)||this;return n.panel=e,n._scrollableParent=void 0,n._updateVisibility=void 0,n.visibleElementsAnimation=new Qe(n.getVisibleElementsAnimationOptions(),function(r){n.setWidth(r),n.setPropertyValue("visibleElements",r)},function(){return n.visibleElements}),n.idValue=t.getRowId(),n.visible=e.areInvisibleElementsShowing,n.createNewArray("elements"),n.createNewArray("visibleElements"),n}return t.getRowId=function(){return"pr_"+t.rowCounter++},Object.defineProperty(t.prototype,"allowRendering",{get:function(){return!this.panel||!this.panel.survey||!this.panel.survey.isLazyRenderingSuspended},enumerable:!1,configurable:!0}),t.prototype.startLazyRendering=function(e,n){var r=this;if(n===void 0&&(n=rn),!!I.isAvailable()){this._scrollableParent=n(e),this._scrollableParent===I.getDocumentElement()&&(this._scrollableParent=E.getWindow());var o=this._scrollableParent.scrollHeight>this._scrollableParent.clientHeight;this.isNeedRender=!o,o&&(this._updateVisibility=function(){if(r.allowRendering){var s=ru(e,50);!r.isNeedRender&&s&&(r.isNeedRender=!0,r.stopLazyRendering())}},setTimeout(function(){r._scrollableParent&&r._scrollableParent.addEventListener&&r._scrollableParent.addEventListener("scroll",r._updateVisibility),r.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 this.isLazyRenderingValue===!0},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 e;return i.prototype.getIsAnimationAllowed.call(this)&&this.visible&&((e=this.panel)===null||e===void 0?void 0:e.animationAllowed)},t.prototype.getVisibleElementsAnimationOptions=function(){var e=this,n=function(r){Ae(r),Mt(r,{width:sr(r)+"px"})};return{getRerenderEvent:function(){return e.onElementRerendered},isAnimationEnabled:function(){return e.animationAllowed},allowSyncRemovalAddition:!1,getAnimatedElement:function(r){return r.getWrapperElement()},getLeaveOptions:function(r){var o=r,s=r.isPanel?o.cssClasses.panel:o.cssClasses;return{cssClass:s.leave,onBeforeRunAnimation:n,onAfterRunAnimation:Ce}},getEnterOptions:function(r){var o=r,s=r.isPanel?o.cssClasses.panel:o.cssClasses;return{cssClass:s.enter,onBeforeRunAnimation:n,onAfterRunAnimation:Ce}}}},Object.defineProperty(t.prototype,"visibleElements",{get:function(){return this.getPropertyValue("visibleElements")},set:function(e){if(e.length)this.visible=!0;else{this.visible=!1,this.visibleElementsAnimation.cancel();return}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=[],n=0;n<this.elements.length;n++)this.elements[n].isVisible&&e.push(this.elements[n]),(this.elements[n].isPanel||this.elements[n].getType()==="paneldynamic")&&(this.setIsLazyRendering(!1),this.stopLazyRendering());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 n,r=e.length;if(r!=0){for(var o=e.length===1,s=0,a=[],l=0;l<this.elements.length;l++){var u=this.elements[l];if(u.isVisible){u.isSingleInRow=o;var d=this.getElementWidth(u);d&&(u.renderWidth=this.getRenderedWidthFromWidth(d),a.push(u)),s<r-1&&!(this.panel.isDefaultV2Theme||!((n=this.panel.parentQuestion)===null||n===void 0)&&n.isDefaultV2Theme)?u.rightIndent=1:u.rightIndent=0,s++}else u.renderWidth=""}for(var l=0;l<this.elements.length;l++){var u=this.elements[l];!u.isVisible||a.indexOf(u)>-1||(a.length==0?u.renderWidth=Number.parseFloat((100/r).toFixed(6))+"%":u.renderWidth=this.getRenderedCalcWidth(u,a,r))}}},t.prototype.getRenderedCalcWidth=function(e,n,r){for(var o="100%",s=0;s<n.length;s++)o+=" - "+n[s].renderWidth;var a=r-n.length;return a>1&&(o="("+o+")/"+a.toString()),"calc("+o+")"},t.prototype.getElementWidth=function(e){var n=e.width;return!n||typeof n!="string"?"":n.trim()},t.prototype.getRenderedWidthFromWidth=function(e){return P.isNumber(e)?e+"px":e},t.prototype.dispose=function(){i.prototype.dispose.call(this),this.stopLazyRendering()},t.prototype.getRowCss=function(){return new O().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,_t([h({defaultValue:null})],t.prototype,"dragTypeOverMe",void 0),t}(z),Lr=function(i){Dr(t,i);function t(e){e===void 0&&(e="");var n=i.call(this,e)||this;return n.isQuestionsReady=!1,n.questionsValue=new Array,n._columns=void 0,n._columnsReady=!1,n.rowsAnimation=new Qe(n.getRowsAnimationOptions(),function(r){n.setPropertyValue("visibleRows",r)},function(){return n.visibleRows}),n.isRandomizing=!1,n.onColumnPropertyValueChangedCallback=function(r,o,s,a,l){n._columnsReady&&(n.updateColumnWidth(n.gridLayoutColumns),n.updateRootStyle())},n.locCountRowUpdates=0,n.createNewArray("rows",function(r,o){n.onAddRow(r)},function(r){n.onRemoveRow(r)}),n.createNewArray("visibleRows"),n.elementsValue=n.createNewArray("elements",n.onAddElement.bind(n),n.onRemoveElement.bind(n)),n.id=t.getPanelId(),n.addExpressionProperty("visibleIf",function(r,o){n.visible=o===!0},function(r){return!n.areInvisibleElementsShowing}),n.addExpressionProperty("enableIf",function(r,o){n.readOnly=o===!1}),n.addExpressionProperty("requiredIf",function(r,o){n.isRequired=o===!0}),n.createLocalizableString("requiredErrorText",n),n.createLocalizableString("navigationTitle",n,!0).onGetTextCallback=function(r){return r||n.title||n.name},n.registerPropertyChangedHandlers(["questionTitleLocation"],function(){n.onVisibleChanged.bind(n),n.updateElementCss(!0)}),n.registerPropertyChangedHandlers(["questionStartIndex","showQuestionNumbers"],function(){n.updateVisibleIndexes()}),n.registerPropertyChangedHandlers(["title"],function(){n.resetHasTextInTitle()}),n.dragDropPanelHelper=new oc(n),n}return t.getPanelId=function(){return"sp_"+t.panelCounter++},t.prototype.onAddRow=function(e){var n=this;this.onRowVisibleChanged(),e.onVisibleChangedCallback=function(){return n.onRowVisibleChanged()}},t.prototype.getRowsAnimationOptions=function(){var e=this;return{getRerenderEvent:function(){return e.onElementRerendered},isAnimationEnabled:function(){return e.animationAllowed},getAnimatedElement:function(n){return n.getRootElement()},getLeaveOptions:function(n,r){return{cssClass:e.cssClasses.rowLeave,onBeforeRunAnimation:Ae,onAfterRunAnimation:Ce}},getEnterOptions:function(n,r){var o=e.cssClasses;return{cssClass:new O().append(o.rowEnter).append(o.rowDelayedEnter,r.isDeletingRunning).toString(),onBeforeRunAnimation:Ae,onAfterRunAnimation:Ce}}}},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(n){return n.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(e,n){this.blockAnimations(),i.prototype.setSurveyImpl.call(this,e,n),this.isDesignMode&&this.onVisibleChanged();for(var r=0;r<this.elements.length;r++)this.elements[r].setSurveyImpl(e,n);this.releaseAnimations()},t.prototype.endLoadingFromJson=function(){var e=this;i.prototype.endLoadingFromJson.call(this),this.updateDescriptionVisibility(this.description),this.markQuestionListDirty(),this.onRowsChanged(),this.gridLayoutColumns.forEach(function(n){n.onPropertyValueChangedCallback=e.onColumnPropertyValueChangedCallback})},Object.defineProperty(t.prototype,"hasTextInTitle",{get:function(){var e=this;return this.getPropertyValue("hasTextInTitle",void 0,function(){return!!e.title})},enumerable:!1,configurable:!0}),t.prototype.resetHasTextInTitle=function(){this.resetPropertyValue("hasTextInTitle")},Object.defineProperty(t.prototype,"hasTitle",{get:function(){return this.canShowTitle(this.survey)&&(this.hasTextInTitle||this.locTitle.textOrHtml.length>0)||this.isDesignMode&&!(b.supportCreatorV2&&this.isPanel)&&this.showTitle&&b.designMode.showEmptyTitles},enumerable:!1,configurable:!0}),t.prototype.delete=function(e){e===void 0&&(e=!0),this.deletePanel(),this.removeFromParent(),e&&this.dispose()},t.prototype.deletePanel=function(){for(var e=this.elements,n=0;n<e.length;n++){var r=e[n];r.isPanel&&r.deletePanel(),this.onRemoveElementNotifySurvey(r)}},t.prototype.removeFromParent=function(){},t.prototype.canShowTitle=function(e){return!0},Object.defineProperty(t.prototype,"_showDescription",{get:function(){return!this.hasTitle&&this.isDesignMode?!1:this.survey&&this.survey.showPageTitles&&this.hasDescription||this.showDescription&&this.isDesignMode&&b.designMode.showEmptyDescriptions},enumerable:!1,configurable:!0}),t.prototype.localeChanged=function(){i.prototype.localeChanged.call(this);for(var e=0;e<this.elements.length;e++)this.elements[e].localeChanged()},t.prototype.locStrsChanged=function(){i.prototype.locStrsChanged.call(this);for(var e=0;e<this.elements.length;e++)this.elements[e].locStrsChanged()},t.prototype.getMarkdownHtml=function(e,n){return n==="navigationTitle"&&this.locNavigationTitle.isEmpty?this.locTitle.renderedHtml||this.name:i.prototype.getMarkdownHtml.call(this,e,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&&this.titlePattern=="requireNumTitle"},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isRequireTextBeforeTitle",{get:function(){return this.isRequired&&this.titlePattern=="numRequireTitle"},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isRequireTextAfterTitle",{get:function(){return this.isRequired&&this.titlePattern=="numTitleRequire"},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&&this.questionsOrder!=="initial"||this.questionsOrder==="random"},t.prototype.randomizeElements=function(e){if(!(!this.canRandomize(e)||this.isRandomizing)){this.isRandomizing=!0;for(var n=[],r=this.elements,o=0;o<r.length;o++)n.push(r[o]);var s=P.randomizeArray(n);this.setArrayPropertyDirectly("elements",s,!1),this.updateRows(),this.updateVisibleIndexes(),this.isRandomizing=!1}},Object.defineProperty(t.prototype,"areQuestionsRandomized",{get:function(){var e=this.questionsOrder=="default"&&this.survey?this.survey.questionsOrder:this.questionsOrder;return e=="random"},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 this.parent==null?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 n={panel:{},error:{},row:"",rowEnter:"",rowLeave:"",rowDelayedEnter:"",rowMultiple:"",pageRow:"",rowCompact:""};return this.copyCssClasses(n.panel,e.panel),this.copyCssClasses(n.error,e.error),e.pageRow&&(n.pageRow=e.pageRow),e.rowCompact&&(n.rowCompact=e.rowCompact),e.row&&(n.row=e.row),e.rowEnter&&(n.rowEnter=e.rowEnter),e.rowLeave&&(n.rowLeave=e.rowLeave),e.rowDelayedEnter&&(n.rowDelayedEnter=e.rowDelayedEnter),e.rowMultiple&&(n.rowMultiple=e.rowMultiple),this.survey&&this.survey.updatePanelCssClasses(this,n),n},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 e!=="flow"},Object.defineProperty(t.prototype,"questions",{get:function(){if(!this.isQuestionsReady){this.questionsValue=[];for(var e=0;e<this.elements.length;e++){var n=this.elements[e];if(n.isPanel)for(var r=n.questions,o=0;o<r.length;o++)this.questionsValue.push(r[o]);else this.questionsValue.push(n)}this.isQuestionsReady=!0}return this.questionsValue},enumerable:!1,configurable:!0}),t.prototype.getQuestions=function(e){var n=this.questions;if(!e)return n;var r=[];return n.forEach(function(o){r.push(o),o.getNestedQuestions().forEach(function(s){return r.push(s)})}),r},t.prototype.getValidName=function(e){return e&&e.trim()},t.prototype.getQuestionByName=function(e){for(var n=this.questions,r=0;r<n.length;r++)if(n[r].name==e)return n[r];return null},t.prototype.getElementByName=function(e){for(var n=this.elements,r=0;r<n.length;r++){var o=n[r];if(o.name==e)return o;var s=o.getPanel();if(s){var a=s.getElementByName(e);if(a)return a}}return null},t.prototype.getQuestionByValueName=function(e){var n=this.getQuestionsByValueName(e);return n.length>0?n[0]:null},t.prototype.getQuestionsByValueName=function(e){for(var n=[],r=this.questions,o=0;o<r.length;o++)r[o].getValueName()==e&&n.push(r[o]);return n},t.prototype.getValue=function(){var e={};return this.collectValues(e,0),P.getUnbindValue(e)},t.prototype.collectValues=function(e,n){var r=this.elements;n===0&&(r=this.questions);for(var o=0;o<r.length;o++){var s=r[o];if(s.isPanel||s.isPage){var a={};s.collectValues(a,n-1)&&(e[s.name]=a)}else{var l=s;if(!l.isEmpty()){var u=l.getValueName();if(e[u]=l.value,this.data){var d=this.data.getComment(u);d&&(e[u+z.commentSuffix]=d)}}}}return!0},t.prototype.getDisplayValue=function(e){for(var n={},r=this.questions,o=0;o<r.length;o++){var s=r[o];if(!s.isEmpty()){var a=e?s.title:s.getValueName();n[a]=s.getDisplayValue(e)}}return n},t.prototype.getComments=function(){var e={};if(!this.data)return e;for(var n=this.questions,r=0;r<n.length;r++){var o=n[r],s=this.data.getComment(o.getValueName());s&&(e[o.getValueName()]=s)}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 z.collectDependency(this,"elements"),this.elementsValue},enumerable:!1,configurable:!0}),t.prototype.getElementsInDesign=function(e){return this.elements},t.prototype.containsElement=function(e){for(var n=0;n<this.elements.length;n++){var r=this.elements[n];if(r==e)return!0;var o=r.getPanel();if(o&&o.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(e,n){i.prototype.searchText.call(this,e,n);for(var r=0;r<this.elements.length;r++)this.elements[r].searchText(e,n)},t.prototype.hasErrors=function(e,n,r){return e===void 0&&(e=!0),n===void 0&&(n=!1),r===void 0&&(r=null),!this.validate(e,n,r)},t.prototype.validate=function(e,n,r){return e===void 0&&(e=!0),n===void 0&&(n=!1),r===void 0&&(r=null),r=r||{fireCallback:e,focusOnFirstError:n,firstErrorQuestion:null,result:!1},r.result!==!0&&(r.result=!1),this.hasErrorsCore(r),!r.result},t.prototype.validateContainerOnly=function(){this.hasErrorsInPanels({fireCallback:!0}),this.parent&&this.parent.validateContainerOnly()},t.prototype.onQuestionValueChanged=function(e){var n=this.questions.indexOf(e);if(!(n<0)){for(var r=5,o=this.questions.length-1,s=n-r>0?n-r:0,a=n+r<o?n+r:o,l=s;l<=a;l++)if(l!==n){var u=this.questions[l];u.errors.length>0&&u.validate(!1)&&u.validate(!0)}}},t.prototype.hasErrorsInPanels=function(e){var n=[];if(this.hasRequiredError(e,n),this.isPanel&&this.survey){var r=this.survey.validatePanel(this);r&&(n.push(r),e.result=!0)}e.fireCallback&&(this.survey&&this.survey.beforeSettingPanelErrors(this,n),this.errors=n)},t.prototype.getErrorCustomText=function(e,n){return this.survey?this.survey.getSurveyErrorCustomText(this,e,n):e},t.prototype.hasRequiredError=function(e,n){if(this.isRequired){var r=[];if(this.addQuestionsToList(r,!0),r.length!=0){for(var o=0;o<r.length;o++)if(!r[o].isEmpty())return;e.result=!0,n.push(new yo(this.requiredErrorText,this)),e.focusOnFirstError&&!e.firstErrorQuestion&&(e.firstErrorQuestion=r[0])}}},t.prototype.hasErrorsCore=function(e){for(var n=this.elements,r=null,o=null,s=0;s<n.length;s++)if(r=n[s],!!r.isVisible)if(r.isPanel)r.hasErrorsCore(e);else{var a=r;a.validate(e.fireCallback,e)||(o||(o=a),e.firstErrorQuestion||(e.firstErrorQuestion=a),e.result=!0)}this.hasErrorsInPanels(e),this.updateContainsErrors(),!o&&this.errors.length>0&&(o=this.getFirstQuestionToFocus(!1,!0),e.firstErrorQuestion||(e.firstErrorQuestion=o)),e.fireCallback&&o&&(o===e.firstErrorQuestion&&e.focusOnFirstError?o.focus(!0):o.expandAllParents())},t.prototype.getContainsErrors=function(){var e=i.prototype.getContainsErrors.call(this);if(e)return e;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++)this.elements[e].updateElementVisibility();i.prototype.updateElementVisibility.call(this)},t.prototype.getFirstQuestionToFocus=function(e,n){if(e===void 0&&(e=!1),n===void 0&&(n=!1),!e&&!n&&this.isCollapsed)return null;for(var r=this.elements,o=0;o<r.length;o++){var s=r[o];if(!(!s.isVisible||!n&&s.isCollapsed))if(s.isPanel){var a=s.getFirstQuestionToFocus(e,n);if(a)return a}else{var l=s.getFirstQuestionToFocus(e);if(l)return l}}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,n,r){n===void 0&&(n=!1),r===void 0&&(r=!1),this.addElementsToList(e,n,r,!1)},t.prototype.addPanelsIntoList=function(e,n,r){n===void 0&&(n=!1),r===void 0&&(r=!1),this.addElementsToList(e,n,r,!0)},t.prototype.addElementsToList=function(e,n,r,o){n&&!this.visible||this.addElementsToListCore(e,this.elements,n,r,o)},t.prototype.addElementsToListCore=function(e,n,r,o,s){for(var a=0;a<n.length;a++){var l=n[a];r&&!l.visible||((s&&l.isPanel||!s&&!l.isPanel)&&e.push(l),l.isPanel?l.addElementsToListCore(e,l.elements,r,o,s):o&&this.addElementsToListCore(e,l.getElementsInDesign(!1),r,o,s))}},t.prototype.calcMaxRowColSpan=function(){var e=0;return this.rows.forEach(function(n){var r=0,o=!1;n.elements.forEach(function(s){s.width&&(o=!0),r+=s.colSpan||1}),!o&&r>e&&(e=r)}),e},t.prototype.updateColumnWidth=function(e){var n=0,r=0;if(e.forEach(function(a){a.width?(n+=a.width,a.setPropertyValue("effectiveWidth",a.width)):r++}),r)for(var o=vu((100-n)/r),s=0;s<e.length;s++)e[s].width||e[s].setPropertyValue("effectiveWidth",o)},t.prototype.updateColumns=function(){this._columns=void 0,this.updateRootStyle()},t.prototype.updateRootStyle=function(){var e;i.prototype.updateRootStyle.call(this),(e=this.elements)===null||e===void 0||e.forEach(function(n){return n.updateRootStyle()})},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():this.questionTitleLocation!="default"?this.questionTitleLocation:this.parent?this.parent.getQuestionTitleLocation():this.survey?this.survey.questionTitleLocation:"top"},t.prototype.availableQuestionTitleWidth=function(){var e=this.getQuestionTitleLocation();return e==="left"?!0:this.hasElementWithTitleLocationLeft()},t.prototype.hasElementWithTitleLocationLeft=function(){var e=this.elements.some(function(n){if(n instanceof t)return n.hasElementWithTitleLocationLeft();if(n instanceof ue)return n.getTitleLocation()==="left"});return e},t.prototype.getQuestionTitleWidth=function(){return this.questionTitleWidth||this.parent&&this.parent.getQuestionTitleWidth()},Object.defineProperty(t.prototype,"columns",{get:function(){return this._columns||this.generateColumns(),this._columns||[]},enumerable:!1,configurable:!0}),t.prototype.generateColumns=function(){var e=this.calcMaxRowColSpan(),n=[].concat(this.gridLayoutColumns);if(e<=this.gridLayoutColumns.length)n=this.gridLayoutColumns.slice(0,e);else for(var r=this.gridLayoutColumns.length;r<e;r++){var o=new Xo;o.onPropertyValueChangedCallback=this.onColumnPropertyValueChangedCallback,n.push(o)}this._columns=n;try{this._columnsReady=!1,this.updateColumnWidth(n)}finally{this._columnsReady=!0}this.gridLayoutColumns=n},t.prototype.updateGridColumns=function(){this.updateColumns(),this.elements.forEach(function(e){e.isPanel&&e.updateGridColumns()})},t.prototype.getColumsForElement=function(e){var n=this.findRowByElement(e);if(!n||!this.survey||!this.survey.gridLayoutEnabled)return[];for(var r=n.elements.length-1;r>=0&&n.elements[r].getPropertyValueWithoutDefault("colSpan");)r--;for(var o=n.elements.indexOf(e),s=0,a=0;a<o;a++)s+=n.elements[a].colSpan;var l=e.getPropertyValueWithoutDefault("colSpan");if(!l&&o===r){for(var u=0,a=0;a<n.elements.length;a++)a!==r&&(u+=n.elements[a].colSpan);l=this.columns.length-u}var d=this.columns.slice(s,s+(l||1));return e.setPropertyValue("effectiveColSpan",d.length),d},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 le.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(){var e=this.getIsPageVisible(null),n=this.getPropertyValue("isVisible",!0);e!==n&&this.onVisibleChanged()},t.prototype.canRenderFirstRows=function(){return this.isPage},t.prototype.isLazyRenderInRow=function(e){return!this.survey||!this.survey.isLazyRendering?!1:e>=this.survey.lazyRenderingFirstBatchSize||!this.canRenderFirstRows()},t.prototype.createRowAndSetLazy=function(e){var n=this.createRow();return n.setIsLazyRendering(this.isLazyRenderInRow(e)),n},t.prototype.createRow=function(){return new es(this)},t.prototype.onSurveyLoad=function(){this.blockAnimations(),i.prototype.onSurveyLoad.call(this);for(var e=0;e<this.elements.length;e++)this.elements[e].onSurveyLoad();this.onElementVisibilityChanged(this),this.releaseAnimations()},t.prototype.onFirstRenderingCore=function(){i.prototype.onFirstRenderingCore.call(this),this.onRowsChanged(),this.elements.forEach(function(e){return e.onFirstRendering()})},t.prototype.updateRows=function(){this.isLoadingFromJson||(this.getElementsForRows().forEach(function(e){e.isPanel&&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.updateColumns(),this.releaseAnimations())},t.prototype.blockRowsUpdates=function(){this.locCountRowUpdates++},t.prototype.releaseRowsUpdates=function(){this.locCountRowUpdates--},t.prototype.updateRowsBeforeElementRemoved=function(e){var n=this,r=this.findRowByElement(e),o=this.rows.indexOf(r),s=r.elements.indexOf(e);r.elements.splice(s,1),r.elements.length==0?this.rows.splice(o,1):!r.elements[0].startWithNewLine&&this.rows[o-1]?(r.elements.forEach(function(a){return n.rows[o-1].addElement(a)}),this.rows.splice(o,1)):r.updateVisible()},t.prototype.updateRowsOnElementAdded=function(e){var n=this,r=this.elements.indexOf(e),o=this.elements[r+1],s=function(v){var V=n.createRowAndSetLazy(v);return n.isDesignModeV2&&V.setIsLazyRendering(!1),n.rows.splice(v,0,V),V},a=function(v,V,T){for(var R,N=[],j=3;j<arguments.length;j++)N[j-3]=arguments[j];var A=(R=v.elements).splice.apply(R,Zo([V,T],N));return v.updateVisible(),A};if(!o){r==0||e.startWithNewLine?a(s(this.rows.length),0,0,e):this.rows[this.rows.length-1].addElement(e);return}var l=this.findRowByElement(o);if(l){var u=this.rows.indexOf(l),d=l.elements.indexOf(o);d==0?o.startWithNewLine?e.startWithNewLine||u<1?s(u).addElement(e):this.rows[u-1].addElement(e):a(l,0,0,e):e.startWithNewLine?a.apply(void 0,Zo([s(u+1),0,0],[e].concat(a(l,d,l.elements.length)))):a(l,d,0,e)}},t.prototype.canFireAddRemoveNotifications=function(e){return!!this.survey&&e.prevSurvey!==this.survey},t.prototype.onAddElement=function(e,n){var r=this,o=this.survey,s=this.canFireAddRemoveNotifications(e);this.surveyImpl&&e.setSurveyImpl(this.surveyImpl),e.parent=this,this.markQuestionListDirty(),this.canBuildRows()&&this.updateRowsOnElementAdded(e),s&&(e.isPanel?o.panelAdded(e,n,this,this.root):o.questionAdded(e,n,this,this.root)),this.addElementCallback&&this.addElementCallback(e),e.registerPropertyChangedHandlers(["visible","isVisible"],function(){r.onElementVisibilityChanged(e)},this.id),e.registerPropertyChangedHandlers(["startWithNewLine"],function(){r.onElementStartWithNewLineChanged(e)},this.id),this.onElementVisibilityChanged(this)},t.prototype.onRemoveElement=function(e){e.parent=null,this.unregisterElementPropertiesChanged(e),this.markQuestionListDirty(),this.updateRowsOnElementRemoved(e),!this.isRandomizing&&(this.onRemoveElementNotifySurvey(e),this.removeElementCallback&&this.removeElementCallback(e),this.onElementVisibilityChanged(this))},t.prototype.unregisterElementPropertiesChanged=function(e){e.unregisterPropertyChangedHandlers(["visible","isVisible","startWithNewLine"],this.id)},t.prototype.onRemoveElementNotifySurvey=function(e){this.canFireAddRemoveNotifications(e)&&(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.blockAnimations(),this.updateRowsBeforeElementRemoved(e),this.updateRowsOnElementAdded(e),this.releaseAnimations())},t.prototype.updateRowsVisibility=function(e){for(var n=this.rows,r=0;r<n.length;r++){var o=n[r];if(o.elements.indexOf(e)>-1){o.updateVisible(),o.visible&&!o.isNeedRender&&(o.isNeedRender=!0);break}}},t.prototype.canBuildRows=function(){return!this.isLoadingFromJson&&this.getChildrenLayoutType()=="row"},t.prototype.buildRows=function(){if(!this.canBuildRows())return[];for(var e=new Array,n=this.getElementsForRows(),r=0;r<n.length;r++){var o=n[r],s=r==0||o.startWithNewLine,a=s?this.createRowAndSetLazy(e.length):e[e.length-1];s&&e.push(a),a.addElement(o)}return e.forEach(function(l){return l.updateVisible()}),e},t.prototype.getElementsForRows=function(){return this.elements},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)),this.updateColumns())},t.prototype.updateRowsRemoveElementFromRow=function(e,n){if(!(!n||!n.panel)){var r=n.elements.indexOf(e);r<0||(n.elements.splice(r,1),n.elements.length>0?(this.blockRowsUpdates(),n.elements[0].startWithNewLine=!0,this.releaseRowsUpdates(),n.updateVisible()):n.index>=0&&n.panel.rows.splice(n.index,1))}},t.prototype.getAllRows=function(){var e=this,n=[];return this.rows.forEach(function(r){var o=[];r.elements.forEach(function(s){s.isPanel?o.push.apply(o,s.getAllRows()):s.getType()=="paneldynamic"&&(e.isDesignMode?o.push.apply(o,s.template.getAllRows()):s.panels.forEach(function(a){return o.push.apply(o,a.getAllRows())}))}),n.push(r),n.push.apply(n,o)}),n},t.prototype.findRowAndIndexByElement=function(e,n){if(!e)return{row:void 0,index:this.rows.length-1};n=n||this.rows;for(var r=0;r<n.length;r++)if(n[r].elements.indexOf(e)>-1)return{row:n[r],index:r};return{row:null,index:-1}},t.prototype.forceRenderRow=function(e){e&&!e.isNeedRender&&(e.isNeedRender=!0,e.stopLazyRendering())},t.prototype.forceRenderElement=function(e,n,r){n===void 0&&(n=function(){}),r===void 0&&(r=0);var o=this.getAllRows(),s=this.findRowAndIndexByElement(e,o),a=s.row,l=s.index;if(l>=0&&l<o.length){var u=[];u.push(a);for(var d=l-1;d>=l-r&&d>=0;d--)u.push(o[d]);this.forceRenderRows(u,n)}},t.prototype.forceRenderRows=function(e,n){var r=this;n===void 0&&(n=function(){});var o=function(s){return function(){s--,s<=0&&n()}}(e.length);e.forEach(function(s){return new tu(s.visibleElements,o)}),e.forEach(function(s){return r.forceRenderRow(s)})},t.prototype.findRowByElement=function(e){return this.findRowAndIndexByElement(e).row},t.prototype.elementWidthChanged=function(e){if(!this.isLoadingFromJson){var n=this.findRowByElement(e);n&&n.updateVisible()}},Object.defineProperty(t.prototype,"processedTitle",{get:function(){return this.getRenderedTitle(this.locTitle.textOrHtml)},enumerable:!1,configurable:!0}),t.prototype.getRenderedTitle=function(e){return this.textProcessor!=null?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&&this.survey.getQuestionClearIfInvisible("default")!=="none"&&!this.isLoadingFromJson))for(var e=this.questions,n=this.isVisible,r=0;r<e.length;r++){var o=e[r];n?o.updateValueWithDefaults():(o.clearValueIfInvisible("onHiddenContainer"),o.onHidingContent())}},t.prototype.notifyStateChanged=function(e){i.prototype.notifyStateChanged.call(this,e),this.isCollapsed&&this.questions.forEach(function(n){return n.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 n=0;n<this.elements.length;n++)if(this.elements[n]!=e&&this.elements[n].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 n=e;e+=this.beforeSetVisibleIndex(e);for(var r=this.getPanelStartIndex(e),o=r,s=0;s<this.elements.length;s++)o+=this.elements[s].setVisibleIndex(o);return this.isContinueNumbering()&&(e+=o-r),e-n},t.prototype.updateVisibleIndexes=function(){this.lastVisibleIndex!==void 0&&(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,n=!!this.survey&&this.survey.isDisplayMode;return this.readOnly||e||n},enumerable:!1,configurable:!0}),t.prototype.onReadOnlyChanged=function(){for(var e=0;e<this.elements.length;e++){var n=this.elements[e];n.setPropertyValue("isReadOnly",n.isReadOnly)}i.prototype.onReadOnlyChanged.call(this)},t.prototype.updateElementCss=function(e){i.prototype.updateElementCss.call(this,e);for(var n=0;n<this.elements.length;n++){var r=this.elements[n];r.updateElementCss(e)}},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,n){return n===void 0&&(n=-1),this.canAddElement(e)?(n<0||n>=this.elements.length?this.elements.push(e):this.elements.splice(n,0,e),this.wasRendered&&e.onFirstRendering(),this.updateColumns(),!0):!1},t.prototype.insertElement=function(e,n,r){if(r===void 0&&(r="bottom"),!n){this.addElement(e);return}this.blockRowsUpdates();var o=this.elements.indexOf(n),s=this.findRowByElement(n);r=="left"||r=="right"?r=="right"?(e.startWithNewLine=!1,o++):s.elements.indexOf(n)==0?(n.startWithNewLine=!1,e.startWithNewLine=!0):e.startWithNewLine=!1:(e.startWithNewLine=!0,r=="top"?o=this.elements.indexOf(s.elements[0]):o=this.elements.indexOf(s.elements[s.elements.length-1])+1),this.releaseRowsUpdates(),this.addElement(e,o)},t.prototype.insertElementAfter=function(e,n){var r=this.elements.indexOf(n);r>=0&&this.addElement(e,r+1)},t.prototype.insertElementBefore=function(e,n){var r=this.elements.indexOf(n);r>=0&&this.addElement(e,r)},t.prototype.canAddElement=function(e){return!!e&&e.isLayoutTypeSupported(this.getChildrenLayoutType())},t.prototype.addQuestion=function(e,n){return n===void 0&&(n=-1),this.addElement(e,n)},t.prototype.addPanel=function(e,n){return n===void 0&&(n=-1),this.addElement(e,n)},t.prototype.addNewQuestion=function(e,n,r){n===void 0&&(n=null),r===void 0&&(r=-1);var o=J.Instance.createQuestion(e,n);return this.addQuestion(o,r)?o:null},t.prototype.addNewPanel=function(e){e===void 0&&(e=null);var n=this.createNewPanel(e);return this.addPanel(n)?n:null},t.prototype.indexOf=function(e){return this.elements.indexOf(e)},t.prototype.createNewPanel=function(e){var n=x.createClass("panel");return n.name=e,n},t.prototype.removeElement=function(e){var n=this.elements.indexOf(e);if(n<0){for(var r=0;r<this.elements.length;r++)if(this.elements[r].removeElement(e))return!0;return!1}return this.elements.splice(n,1),this.updateColumns(),!0},t.prototype.removeQuestion=function(e){this.removeElement(e)},t.prototype.runCondition=function(e,n){if(!(this.isDesignMode||this.isLoadingFromJson)){for(var r=this.elements.slice(),o=0;o<r.length;o++)r[o].runCondition(e,n);this.runConditionCore(e,n)}},t.prototype.onAnyValueChanged=function(e,n){for(var r=this.elements,o=0;o<r.length;o++)r[o].onAnyValueChanged(e,n)},t.prototype.checkBindings=function(e,n){for(var r=this.elements,o=0;o<r.length;o++)r[o].checkBindings(e,n)},t.prototype.dragDropAddTarget=function(e){this.dragDropPanelHelper.dragDropAddTarget(e)},t.prototype.dragDropFindRow=function(e){return this.dragDropPanelHelper.dragDropFindRow(e)},t.prototype.dragDropMoveElement=function(e,n,r){this.dragDropPanelHelper.dragDropMoveElement(e,n,r)},t.prototype.needResponsiveWidth=function(){var e=!1;return this.elements.forEach(function(n){n.needResponsiveWidth()&&(e=!0)}),this.rows.forEach(function(n){n.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 this.questionErrorLocation!=="default"?this.questionErrorLocation:this.parent?this.parent.getQuestionErrorLocation():this.survey?this.survey.questionErrorLocation:"top"},t.prototype.getTitleOwner=function(){return this},Object.defineProperty(t.prototype,"no",{get:function(){return""},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"cssTitleNumber",{get:function(){return this.cssClasses.panel.number},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"cssRequiredText",{get:function(){return this.cssClasses.panel.requiredText},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 O().append(e.error.root).toString()},t.prototype.getSerializableColumnsValue=function(){for(var e=-1,n=this.gridLayoutColumns.length-1;n>=0;n--)if(!this.gridLayoutColumns[n].isEmpty()){e=n;break}return this.gridLayoutColumns.slice(0,e+1)},t.prototype.afterRender=function(e){this.afterRenderCore(e)},t.prototype.dispose=function(){if(i.prototype.dispose.call(this),this.rows){for(var e=0;e<this.rows.length;e++)this.rows[e].dispose();this.rows.splice(0,this.rows.length)}this.disposeElements(),this.elements.splice(0,this.elements.length)},t.prototype.disposeElements=function(){for(var e=0;e<this.elements.length;e++)this.elements[e].dispose()},t.panelCounter=100,_t([ae()],t.prototype,"gridLayoutColumns",void 0),_t([h({defaultValue:!0})],t.prototype,"showTitle",void 0),_t([h({defaultValue:!0})],t.prototype,"showDescription",void 0),_t([h()],t.prototype,"questionTitleWidth",void 0),t}(le),Bt=function(i){Dr(t,i);function t(e){e===void 0&&(e="");var n=i.call(this,e)||this;return n.forcusFirstQuestionOnExpand=!0,n.createNewArray("footerActions"),n.registerPropertyChangedHandlers(["width"],function(){n.parent&&n.parent.elementWidthChanged(n)}),n.registerPropertyChangedHandlers(["indent","innerIndent","rightIndent"],function(){n.resetIndents()}),n.registerPropertyChangedHandlers(["colSpan"],function(){var r;(r=n.parent)===null||r===void 0||r.updateColumns()}),n}return 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(e){return e===void 0&&(e=!1),e&&this.isPanel?this.parent?this.parent.getSurvey(e):null:i.prototype.getSurvey.call(this,e)},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,n){return n===void 0&&(n=null),this.moveToBase(this.parent,e,n)},Object.defineProperty(t.prototype,"visibleIndex",{get:function(){return this.getPropertyValue("visibleIndex",-1)},enumerable:!1,configurable:!0}),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:i.prototype.getQuestionStartIndex.call(this)},Object.defineProperty(t.prototype,"no",{get:function(){var e=this;return this.getPropertyValue("no",void 0,function(){return e.calcNo()})},enumerable:!1,configurable:!0}),t.prototype.calcNo=function(){var e=P.getNumberByIndex(this.visibleIndex,this.getStartIndex());return this.survey&&(e=this.survey.getUpdatedPanelNo(this,e)),e||""},t.prototype.notifyStateChanged=function(e){this.isLoadingFromJson||this.locTitle.strChanged(),i.prototype.notifyStateChanged.call(this,e)},t.prototype.createLocTitleProperty=function(){var e=this,n=i.prototype.createLocTitleProperty.call(this);return n.onGetTextCallback=function(r){return!r&&e.state!=="default"&&(r=e.name),r},n},t.prototype.beforeSetVisibleIndex=function(e){if(this.isPage)return i.prototype.beforeSetVisibleIndex.call(this,e);var n=-1;return this.showNumber&&(this.isDesignMode||!this.locTitle.isEmpty||this.hasParentInQuestionIndex())&&(n=e),this.setPropertyValue("visibleIndex",n),this.resetPropertyValue("no"),n<0?0:1},t.prototype.getPanelStartIndex=function(e){return this.showQuestionNumbers==="off"?-1:this.showQuestionNumbers==="onpanel"?0:e},t.prototype.hasParentInQuestionIndex=function(){if(this.showQuestionNumbers!=="onpanel")return!1;var e=this.questionStartIndex,n=e.indexOf(".");return n>-1&&n<e.length-1},t.prototype.isContinueNumbering=function(){return this.showQuestionNumbers!=="off"&&this.showQuestionNumbers!=="onpanel"},t.prototype.notifySurveyOnVisibilityChanged=function(){this.survey!=null&&!this.isLoadingFromJson&&this.page&&this.survey.panelVisibilityChanged(this,this.isVisible)},t.prototype.getRenderedTitle=function(e){if(this.isPanel&&!e){if(this.isCollapsed||this.isExpanded)return this.name;if(this.isDesignMode)return"["+this.name+"]"}return i.prototype.getRenderedTitle.call(this,e)},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(){var e=this,n=function(){return e.getIndentSize(e.innerIndent)};return this.getPropertyValue("innerPaddingLeft",void 0,n)},set:function(e){this.setPropertyValue("innerPaddingLeft",e)},enumerable:!1,configurable:!0}),t.prototype.calcPaddingLeft=function(){return this.getIndentSize(this.indent)},t.prototype.calcPaddingRight=function(){return this.getIndentSize(this.rightIndent)},t.prototype.resetIndents=function(){this.resetPropertyValue("innerPaddingLeft"),i.prototype.resetIndents.call(this)},t.prototype.getIndentSize=function(e){if(this.survey){if(e<1)return"";var n=this.survey.css;return!n||!n.question||!n.question.indent?"":e*n.question.indent+"px"}},t.prototype.clearOnDeletingContainer=function(){this.elements.forEach(function(e){(e instanceof ue||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=this,n,r;if(!this.footerToolbarValue){var o=this.footerActions;this.hasEditButton&&o.push({id:"cancel-preview",locTitle:this.survey.locEditText,innerCss:this.survey.cssNavigationEdit,component:"sv-nav-btn",action:function(){e.cancelPreview()}}),this.onGetFooterActionsCallback?o=this.onGetFooterActionsCallback():o=(n=this.survey)===null||n===void 0?void 0:n.getUpdatedPanelFooterActions(this,o),this.footerToolbarValue=this.createActionContainer(this.allowAdaptiveActions);var s=this.onGetFooterToolbarCssCallback?this.onGetFooterToolbarCssCallback():"";s||(s=(r=this.cssClasses.panel)===null||r===void 0?void 0:r.footer),s&&(this.footerToolbarValue.containerCss=s),this.footerToolbarValue.setItems(o)}return this.footerToolbarValue},Object.defineProperty(t.prototype,"hasEditButton",{get:function(){return!1},enumerable:!1,configurable:!0}),t.prototype.cancelPreview=function(){this.hasEditButton&&this.survey.cancelPreviewByPage(this)},Object.defineProperty(t.prototype,"cssTitle",{get:function(){return this.getCssPanelTitle()},enumerable:!1,configurable:!0}),t.prototype.getCssPanelTitle=function(){return this.getCssTitle(this.cssClasses.panel)},t.prototype.getCssTitleExpandableSvg=function(){return this.state==="default"?null:this.cssClasses.panel.titleExpandableSvg},Object.defineProperty(t.prototype,"showErrorsAbovePanel",{get:function(){return this.isDefaultV2Theme&&!this.showPanelAsPage},enumerable:!1,configurable:!0}),t.prototype.getCssError=function(e){if(this.isPage)return i.prototype.getCssError.call(this,e);var n=new O().append(i.prototype.getCssError.call(this,e)).append(e.panel.errorsContainer);return n.append("panel-error-root",n.isEmpty()).toString()},t.prototype.onVisibleChanged=function(){i.prototype.onVisibleChanged.call(this),this.notifySurveyOnVisibilityChanged()},t.prototype.needResponsiveWidth=function(){return this.startWithNewLine?i.prototype.needResponsiveWidth.call(this):!0},t.prototype.focusIn=function(){this.survey&&this.survey.whenPanelFocusIn(this)},t.prototype.getHasFrameV2=function(){return i.prototype.getHasFrameV2.call(this)&&!this.showPanelAsPage},t.prototype.getIsNested=function(){return i.prototype.getIsNested.call(this)&&this.parent!==void 0},Object.defineProperty(t.prototype,"showPanelAsPage",{get:function(){return!1},enumerable:!1,configurable:!0}),t.prototype.expand=function(e){e===void 0&&(e=!0),this.forcusFirstQuestionOnExpand=e,i.prototype.expand.call(this)},t.prototype.onElementExpanded=function(e){var n=this;if(this.forcusFirstQuestionOnExpand&&this.survey!=null&&!this.isLoadingFromJson){var r=this.getFirstQuestionToFocus(!1);r&&setTimeout(function(){!n.isDisposed&&n.survey&&n.survey.scrollElementToTop(r,r,null,r.inputId,!1,{behavior:"smooth"})},e?0:15)}},t.prototype.getCssRoot=function(e){return new O().append(i.prototype.getCssRoot.call(this,e)).append(e.container).append(e.asPage,this.showPanelAsPage).append(e.invisible,!this.isDesignMode&&this.areInvisibleElementsShowing&&!this.visible).toString()},t.prototype.getContainerCss=function(){return this.getCssRoot(this.cssClasses.panel)},t.prototype.afterRenderCore=function(e){var n;i.prototype.afterRenderCore.call(this,e),this.isPanel&&((n=this.survey)===null||n===void 0||n.afterRenderPanel(this,e))},t}(Lr);x.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(i){return!!i&&i.availableQuestionTitleWidth()}},{name:"questionTitleLocation",default:"default",choices:["default","top","bottom","left","hidden"]},{name:"gridLayoutColumns:panellayoutcolumns",className:"panellayoutcolumn",isArray:!0,onSerializeValue:function(i){return i.getSerializableColumnsValue()},visibleIf:function(i){return!!i&&!!i.survey&&i.survey.gridLayoutEnabled}},{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 Lr}),x.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},{name:"width"},{name:"minWidth",defaultFunc:function(){return"auto"}},{name:"maxWidth",defaultFunc:function(){return b.maxWidth}},{name:"colSpan:number",visible:!1,onSerializeValue:function(i){return i.getPropertyValue("colSpan")}},{name:"effectiveColSpan:number",minValue:1,isSerializable:!1,visibleIf:function(i){return!!i.survey&&i.survey.gridLayoutEnabled}},{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(i){var t=i?i.survey:null;return!t||!t.pages||t.pages.length>1},choices:function(i){var t=i?i.survey:null;return t?t.pages.map(function(e){return{value:e.name,text:e.title}}):[]}},{name:"showNumber:boolean"},{name:"showQuestionNumbers",default:"default",choices:["default","onpanel","off"]},{name:"questionStartIndex",visibleIf:function(i){return i.isPanel}},{name:"allowAdaptiveActions:boolean",default:!0,visible:!1}],function(){return new Bt},"panelbase"),ze.Instance.registerElement("panel",function(i){return new Bt(i)});var ac=function(){function i(t){this.page=t}return i.prototype.getDragDropInfo=function(){return this.dragDropInfo},i.prototype.dragDropStart=function(t,e,n){n===void 0&&(n=-1),this.dragDropInfo=new Yo(t,e,n)},i.prototype.dragDropMoveTo=function(t,e,n){if(e===void 0&&(e=!1),n===void 0&&(n=!1),!this.dragDropInfo||(this.dragDropInfo.destination=t,this.dragDropInfo.isBottom=e,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},i.prototype.correctDragDropInfo=function(t){if(t.destination){var e=t.destination.isPanel?t.destination:null;e&&(t.target.isLayoutTypeSupported(e.getChildrenLayoutType())||(t.isEdge=!0))}},i.prototype.dragDropAllowFromSurvey=function(){var t=this.dragDropInfo.destination;if(!t||!this.page.survey)return!0;var e=null,n=null,r=t.isPage||!this.dragDropInfo.isEdge&&t.isPanel?t:t.parent;if(!t.isPage){var o=t.parent;if(o){var s=o.elements,a=s.indexOf(t);a>-1&&(e=t,n=t,this.dragDropInfo.isBottom?e=a<s.length-1?s[a+1]:null:n=a>0?s[a-1]:null)}}var l={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:e};return this.page.survey.dragAndDropAllow(l)},i.prototype.dragDropFinish=function(t){if(t===void 0&&(t=!1),!!this.dragDropInfo){var e=this.dragDropInfo.target,n=this.dragDropInfo.source,r=this.dragDropInfo.destination,o=this.page.dragDropFindRow(e),s=this.dragDropGetElementIndex(e,o);this.page.updateRowsRemoveElementFromRow(e,o);var a=[],l=[];if(!t&&o){var u=!1;if(this.page.isDesignModeV2){var d=n&&n.parent&&n.parent.dragDropFindRow(n);o.panel.elements[s]&&o.panel.elements[s].startWithNewLine&&o.elements.length>1&&o.panel.elements[s]===r&&(a.push(e),l.push(o.panel.elements[s])),e.startWithNewLine&&o.elements.length>1&&(!o.panel.elements[s]||!o.panel.elements[s].startWithNewLine)&&l.push(e),d&&d.elements[0]===n&&d.elements[1]&&a.push(d.elements[1]),o.elements.length<=1&&a.push(e),e.startWithNewLine&&o.elements.length>1&&o.elements[0]!==r&&l.push(e)}this.page.survey.startMovingQuestion(),n&&n.parent&&(u=o.panel==n.parent,u?(o.panel.dragDropMoveElement(n,e,s),s=-1):n.parent.removeElement(n)),s>-1&&o.panel.addElement(e,s),this.page.survey.stopMovingQuestion()}return a.map(function(v){v.startWithNewLine=!0}),l.map(function(v){v.startWithNewLine=!1}),this.dragDropInfo=null,t?null:e}},i.prototype.dragDropGetElementIndex=function(t,e){if(!e)return-1;var n=e.elements.indexOf(t);if(e.index==0)return n;var r=e.panel.rows[e.index-1],o=r.elements[r.elements.length-1];return n+e.panel.elements.indexOf(o)+1},i.prototype.dragDropCanDropTagert=function(){var t=this.dragDropInfo.destination;return!t||t.isPage?!0:this.dragDropCanDropCore(this.dragDropInfo.target,t)},i.prototype.dragDropCanDropSource=function(){var t=this.dragDropInfo.source;if(!t)return!0;var e=this.dragDropInfo.destination;if(!this.dragDropCanDropCore(t,e))return!1;if(this.page.isDesignModeV2){var n=this.page.dragDropFindRow(t),r=this.page.dragDropFindRow(e);if(n!==r&&(!t.startWithNewLine&&e.startWithNewLine||t.startWithNewLine&&!e.startWithNewLine))return!0;var o=this.page.dragDropFindRow(e);if(o&&o.elements.length==1)return!0}return this.dragDropCanDropNotNext(t,e,this.dragDropInfo.isEdge,this.dragDropInfo.isBottom)},i.prototype.dragDropCanDropCore=function(t,e){if(!e)return!0;if(this.dragDropIsSameElement(e,t))return!1;if(t.isPanel){var n=t;if(n.containsElement(e)||n.getElementByName(e.name))return!1}return!0},i.prototype.dragDropCanDropNotNext=function(t,e,n,r){if(!e||e.isPanel&&!n||typeof t.parent>"u"||t.parent!==e.parent)return!0;var o=t.parent,s=o.elements.indexOf(t),a=o.elements.indexOf(e);return a<s&&!r&&a--,r&&a++,s<a?a-s>1:s-a>0},i.prototype.dragDropIsSameElement=function(t,e){return t==e||t.name==e.name},i}(),lc=function(){var i=function(t,e){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(n[o]=r[o])},i(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");i(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),uc=function(i,t,e,n){var r=arguments.length,o=r<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,e):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(i,t,e,n);else for(var a=i.length-1;a>=0;a--)(s=i[a])&&(o=(r<3?s(o):r>3?s(t,e,o):s(t,e))||o);return r>3&&o&&Object.defineProperty(t,e,o),o},Mr=function(i){lc(t,i);function t(e){e===void 0&&(e="");var n=i.call(this,e)||this;return n.hasShownValue=!1,n.timeSpent=0,n._isReadyForClean=!0,n.createLocalizableString("navigationDescription",n,!0),n.dragDropPageHelper=new ac(n),n}return t.prototype.getType=function(){return"page"},t.prototype.toString=function(){return this.name},Object.defineProperty(t.prototype,"isPage",{get:function(){return!this.isPanel},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isPanel",{get:function(){return!!this.parent},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"showPanelAsPage",{get:function(){return!0},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hasEditButton",{get:function(){return this.isPanel&&this.survey&&this.survey.state==="preview"&&!!this.parent&&!this.parent.isPanel},enumerable:!1,configurable:!0}),t.prototype.getElementsForRows=function(){var e,n=(e=this.survey)===null||e===void 0?void 0:e.currentSingleQuestion;return n?n.page===this?[n]:[]:i.prototype.getElementsForRows.call(this)},t.prototype.disposeElements=function(){this.isPageContainer||i.prototype.disposeElements.call(this)},t.prototype.onRemoveElement=function(e){this.isPageContainer?(e.parent=null,this.unregisterElementPropertiesChanged(e)):i.prototype.onRemoveElement.call(this,e)},t.prototype.getTemplate=function(){return this.isPanel?"panel":i.prototype.getTemplate.call(this)},Object.defineProperty(t.prototype,"no",{get:function(){if(!this.canShowPageNumber()||!this.survey)return"";var e=this.isStartPage?"":this.num+". ";return this.survey.getUpdatedPageNo(this,e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"cssTitleNumber",{get:function(){return this.cssClasses.page.number},enumerable:!1,configurable:!0}),t.prototype.getCssTitleExpandableSvg=function(){return null},Object.defineProperty(t.prototype,"cssRequiredText",{get:function(){return""},enumerable:!1,configurable:!0}),t.prototype.canShowPageNumber=function(){return this.survey&&this.survey.showPageNumbers},t.prototype.canShowTitle=function(e){return!e||e.showPageTitles},t.prototype.setTitleValue=function(e){i.prototype.setTitleValue.call(this,e),this.navigationLocStrChanged()},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()},t.prototype.getMarkdownHtml=function(e,n){var r=i.prototype.getMarkdownHtml.call(this,e,n);return n==="navigationTitle"&&this.canShowPageNumber()&&r?this.num+". "+r:r},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)},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||this.visibleIndex==0},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){if(this.isPanel)return i.prototype.calcCssClasses.call(this,e);var n={page:{},error:{},pageTitle:"",pageDescription:"",row:"",rowMultiple:"",pageRow:"",rowCompact:"",rowEnter:"",rowLeave:"",rowDelayedEnter:"",rowReplace:""};return this.copyCssClasses(n.page,e.page),this.copyCssClasses(n.error,e.error),e.pageTitle&&(n.pageTitle=e.pageTitle),e.pageDescription&&(n.pageDescription=e.pageDescription),e.row&&(n.row=e.row),e.pageRow&&(n.pageRow=e.pageRow),e.rowMultiple&&(n.rowMultiple=e.rowMultiple),e.rowCompact&&(n.rowCompact=e.rowCompact),e.rowEnter&&(n.rowEnter=e.rowEnter),e.rowDelayedEnter&&(n.rowDelayedEnter=e.rowDelayedEnter),e.rowLeave&&(n.rowLeave=e.rowLeave),e.rowReplace&&(n.rowReplace=e.rowReplace),this.survey&&this.survey.updatePageCssClasses(this,n),n},t.prototype.getCssPanelTitle=function(){return this.isPanel?i.prototype.getCssPanelTitle.call(this):this.cssClasses.page?new O().append(this.cssClasses.page.title).toString():""},Object.defineProperty(t.prototype,"cssRoot",{get:function(){return this.isPanel||!this.cssClasses.page||!this.survey?"":new O().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(e){return this.isPanel?i.prototype.getCssError.call(this,e):new O().append(i.prototype.getCssError.call(this,e)).append(e.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||e!==!0))){for(var n=this.elements,r=0;r<n.length;r++)n[r].isPanel&&n[r].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,n){e===void 0&&(e=!1),n===void 0&&(n=!1);var r=new Array;return this.addPanelsIntoList(r,e,n),r},t.prototype.getPanels=function(e,n){return e===void 0&&(e=!1),n===void 0&&(n=!1),this.getAllPanels(e,n)},Object.defineProperty(t.prototype,"timeLimit",{get:function(){return this.getPropertyValue("timeLimit",0)},set:function(e){this.setPropertyValue("timeLimit",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"maxTimeToFinish",{get:function(){return this.timeLimit},set:function(e){this.timeLimit=e},enumerable:!1,configurable:!0}),t.prototype.getMaxTimeToFinish=function(){if(this.timeLimit!==0)return this.timeLimit;var e=this.survey?this.survey.timeLimitPerPage:0;return e>0?e:0},t.prototype.onNumChanged=function(e){},t.prototype.onVisibleChanged=function(){this.isRandomizing||(i.prototype.onVisibleChanged.call(this),this.survey!=null&&this.survey.pageVisibilityChanged(this,this.isVisible))},t.prototype.getDragDropInfo=function(){return this.dragDropPageHelper.getDragDropInfo()},t.prototype.dragDropStart=function(e,n,r){r===void 0&&(r=-1),this.dragDropPageHelper.dragDropStart(e,n,r)},t.prototype.dragDropMoveTo=function(e,n,r){return n===void 0&&(n=!1),r===void 0&&(r=!1),this.dragDropPageHelper.dragDropMoveTo(e,n,r)},t.prototype.dragDropFinish=function(e){return e===void 0&&(e=!1),this.dragDropPageHelper.dragDropFinish(e)},t.prototype.ensureRowsVisibility=function(){i.prototype.ensureRowsVisibility.call(this),this.getPanels().forEach(function(e){return e.ensureRowsVisibility()})},Object.defineProperty(t.prototype,"isReadyForClean",{get:function(){return this._isReadyForClean},set:function(e){var n=this._isReadyForClean;this._isReadyForClean=e,this._isReadyForClean!==n&&this.isReadyForCleanChangedCallback&&this.isReadyForCleanChangedCallback()},enumerable:!1,configurable:!0}),t.prototype.enableOnElementRerenderedEvent=function(){i.prototype.enableOnElementRerenderedEvent.call(this),this.isReadyForClean=!1},t.prototype.disableOnElementRerenderedEvent=function(){i.prototype.disableOnElementRerenderedEvent.call(this),this.isReadyForClean=!0},uc([h({defaultValue:-1,onSet:function(e,n){return n.onNumChanged(e)}})],t.prototype,"num",void 0),t}(Bt);x.addClass("page",[{name:"navigationButtonsVisibility",default:"inherit",choices:["inherit","show","hide"]},{name:"timeLimit:number",alternativeName:"maxTimeToFinish",default:0,minValue:0},{name:"navigationTitle",visibleIf:function(i){return!!i.survey&&(i.survey.progressBarType==="buttons"||i.survey.showTOC)},serializationProperty:"locNavigationTitle"},{name:"navigationDescription",visibleIf:function(i){return!!i.survey&&i.survey.progressBarType==="buttons"},serializationProperty:"locNavigationDescription"},{name:"title:text",serializationProperty:"locTitle"},{name:"description:text",serializationProperty:"locDescription"},{name:"state",visible:!1},{name:"isRequired",visible:!1},{name:"startWithNewLine",visible:!1},{name:"width",visible:!1},{name:"minWidth",visible:!1},{name:"maxWidth",visible:!1},{name:"colSpan",visible:!1,isSerializable:!1},{name:"effectiveColSpan:number",visible:!1,isSerializable:!1},{name:"innerIndent",visible:!1},{name:"indent",visible:!1},{name:"page",visible:!1,isSerializable:!1},{name:"showNumber",visible:!1},{name:"showQuestionNumbers",visible:!1},{name:"questionStartIndex",visible:!1},{name:"allowAdaptiveActions",visible:!1},{name:"requiredErrorText:text",serializationProperty:"locRequiredErrorText",visible:!1}],function(){return new Mr},"panel");var cc=function(){var i=function(t,e){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(n[o]=r[o])},i(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");i(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),ts=function(i){cc(t,i);function t(e){var n=i.call(this)||this;return n.survey=e,n.onResize=n.addEvent(),n}return t.prototype.isListElementClickable=function(e){return!this.survey.onServerValidateQuestions||this.survey.onServerValidateQuestions.isEmpty||this.survey.checkErrorsMode==="onComplete"?!0:e<=this.survey.currentPageNo+1},t.prototype.getRootCss=function(e){e===void 0&&(e="center");var n=this.survey.css.progressButtonsContainerCenter;return this.survey.css.progressButtonsRoot&&(n+=" "+this.survey.css.progressButtonsRoot+" "+this.survey.css.progressButtonsRoot+"--"+(["footer","contentBottom"].indexOf(e)!==-1?"bottom":"top"),n+=" "+this.survey.css.progressButtonsRoot+"--"+(this.showItemTitles?"with-titles":"no-titles")),this.showItemNumbers&&this.survey.css.progressButtonsNumbered&&(n+=" "+this.survey.css.progressButtonsNumbered),this.isFitToSurveyWidth&&(n+=" "+this.survey.css.progressButtonsFitSurveyWidth),n},t.prototype.getListElementCss=function(e){if(!(e>=this.survey.visiblePages.length))return new O().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,n){return new O().append(this.survey.css.progressButtonsImageButtonLeft,n).append(this.survey.css.progressButtonsImageButtonRight,!n).append(this.survey.css.progressButtonsImageButtonHidden,!e).toString()},t.prototype.clickListElement=function(e){e instanceof Mr||(e=this.survey.visiblePages[e]),this.survey.tryNavigateToPage(e)},t.prototype.isListContainerHasScroller=function(e){var n=e.querySelector("."+this.survey.css.progressButtonsListContainer);return n?n.scrollWidth>n.offsetWidth:!1},t.prototype.isCanShowItemTitles=function(e){var n=e.querySelector("ul");if(!n||n.children.length<2)return!0;if(n.clientWidth>n.parentElement.clientWidth)return!1;for(var r=n.children[0].clientWidth,o=0;o<n.children.length;o++)if(Math.abs(n.children[o].clientWidth-r)>5)return!1;return!0},t.prototype.clearConnectorsWidth=function(e){for(var n=e.querySelectorAll(".sd-progress-buttons__connector"),r=0;r<n.length;r++)n[r].style.width=""},t.prototype.adjustConnectors=function(e){var n=e.querySelector("ul");if(n)for(var r=e.querySelectorAll(".sd-progress-buttons__connector"),o=this.showItemNumbers?36:20,s=(n.clientWidth-o)/(n.children.length-1)-o,a=0;a<r.length;a++)r[a].style.width=s+"px"},Object.defineProperty(t.prototype,"isFitToSurveyWidth",{get:function(){return se.currentType!=="defaultV2"?!1:this.survey.progressBarInheritWidthFrom==="survey"&&this.survey.widthMode=="static"},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 se.currentType!=="defaultV2"?!1:this.survey.progressBarShowPageNumbers},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"showItemTitles",{get:function(){return se.currentType!=="defaultV2"?!0:this.survey.progressBarShowPageTitles},enumerable:!1,configurable:!0}),t.prototype.getItemNumber=function(e){var n="";return this.showItemNumbers&&(n+=this.survey.visiblePages.indexOf(e)+1),n},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}(z),fc=function(){function i(t,e,n){var r=this;this.model=t,this.element=e,this.viewModel=n,this.criticalProperties=["progressBarType","progressBarShowPageTitles"],this.canShowItemTitles=!0,this.processResponsiveness=function(o,s){if(r.viewModel.onUpdateScroller(o.isListContainerHasScroller(r.element)),r.model.clearConnectorsWidth(r.element),!o.showItemTitles){r.model.adjustConnectors(r.element);return}if(o.survey.isMobile){r.prevWidth=s.width,r.canShowItemTitles=!1,r.model.adjustConnectors(r.element),r.viewModel.onResize(r.canShowItemTitles);return}r.timer!==void 0&&clearTimeout(r.timer),r.timer=setTimeout(function(){(r.prevWidth===void 0||r.prevWidth<s.width&&!r.canShowItemTitles||r.prevWidth>s.width&&r.canShowItemTitles)&&(r.prevWidth=s.width,r.canShowItemTitles=o.isCanShowItemTitles(r.element),r.viewModel.onResize(r.canShowItemTitles),r.timer=void 0)},10)},this.model.survey.registerFunctionOnPropertiesValueChanged(this.criticalProperties,function(){return r.forceUpdate()},"ProgressButtonsResponsivityManager"+this.viewModel.container),this.model.onResize.add(this.processResponsiveness),this.forceUpdate()}return i.prototype.forceUpdate=function(){this.viewModel.onUpdateSettings(),this.processResponsiveness(this.model,{})},i.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},i}();function pc(i,t){return i.isDesignMode||t.focusFirstQuestion(),!0}function ns(i){if(i.parentQuestion)return ns(i.parentQuestion);for(var t=i.parent;t&&t.getType()!=="page"&&t.parent;)t=t.parent;return t&&t.getType()==="page"?t:null}function rs(i,t){var e=is(i,t),n={items:e,searchEnabled:!1,locOwner:i},r=new Rt(n);r.allowSelection=!1;var o=function(s,a){r.selectedItem=!!s&&r.actions.filter(function(l){return l.id===s.name})[0]||a};return o(i.currentPage,e[0]),i.onCurrentPageChanged.add(function(s,a){o(i.currentPage)}),i.onFocusInQuestion.add(function(s,a){o(ns(a.question))}),i.registerFunctionOnPropertyValueChanged("pages",function(){r.setItems(is(i,t))},"toc"),r}function is(i,t){var e=i.pages,n=(e||[]).map(function(r){return new $({id:r.name,locTitle:r.locNavigationTitle,action:function(){if(I.activeElementBlur(),t&&t(),r.isPage)return i.tryNavigateToPage(r)},visible:new te(function(){return r.isVisible&&!r.isStartPage})})});return n}function os(i,t){t===void 0&&(t=!1);var e=st.RootStyle;return t?e+" "+st.RootStyle+"--mobile":(e+=" "+st.RootStyle+"--"+(i.tocLocation||"").toLowerCase(),st.StickyPosition&&(e+=" "+st.RootStyle+"--sticky"),e)}var st=function(){function i(t){var e=this;this.survey=t,this.icon="icon-navmenu_24x24",this.togglePopup=function(){e.popupModel.toggleVisibility()},this.listModel=rs(t,function(){e.popupModel.isVisible=!1}),this.popupModel=new Et("sv-list",{model:this.listModel}),this.popupModel.overlayDisplayMode="plain",this.popupModel.displayMode=new te(function(){return e.isMobile?"overlay":"popup"}),i.StickyPosition&&(t.onAfterRenderSurvey.add(function(n,r){return e.initStickyTOCSubscriptions(r.htmlElement)}),this.initStickyTOCSubscriptions(t.rootElement))}return i.prototype.initStickyTOCSubscriptions=function(t){var e=this;i.StickyPosition&&t&&(t.addEventListener("scroll",function(n){e.updateStickyTOCSize(t)}),this.updateStickyTOCSize(t))},i.prototype.updateStickyTOCSize=function(t){if(t){var e=t.querySelector("."+i.RootStyle);if(e&&(e.style.height="",!this.isMobile&&i.StickyPosition&&t)){var n=t.getBoundingClientRect().height,r=this.survey.headerView==="advanced"?".sv-header":".sv_custom_header+div div."+(this.survey.css.title||"sd-title"),o=t.querySelector(r),s=o?o.getBoundingClientRect().height:0,a=t.scrollTop>s?0:s-t.scrollTop;e.style.height=n-a-1+"px"}}},Object.defineProperty(i.prototype,"isMobile",{get:function(){return this.survey.isMobile},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"containerCss",{get:function(){return os(this.survey,this.isMobile)},enumerable:!1,configurable:!0}),i.prototype.dispose=function(){this.survey.unRegisterFunctionOnPropertyValueChanged("pages","toc"),this.popupModel.dispose(),this.listModel.dispose()},i.RootStyle="sv_progress-toc",i.StickyPosition=!0,i}(),dc=function(){var i=function(t,e){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(n[o]=r[o])},i(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");i(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),K=function(i,t,e,n){var r=arguments.length,o=r<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,e):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(i,t,e,n);else for(var a=i.length-1;a>=0;a--)(s=i[a])&&(o=(r<3?s(o):r>3?s(t,e,o):s(t,e))||o);return r>3&&o&&Object.defineProperty(t,e,o),o},Ue=function(i){dc(t,i);function t(e,n){e===void 0&&(e=null),n===void 0&&(n=null);var r=i.call(this)||this;r.valuesHash={},r.variablesHash={},r.onTriggerExecuted=r.addEvent(),r.onCompleting=r.addEvent(),r.onComplete=r.addEvent(),r.onShowingPreview=r.addEvent(),r.onNavigateToUrl=r.addEvent(),r.onStarted=r.addEvent(),r.onPartialSend=r.addEvent(),r.onCurrentPageChanging=r.addEvent(),r.onCurrentPageChanged=r.addEvent(),r.onValueChanging=r.addEvent(),r.onValueChanged=r.addEvent(),r.onVariableChanged=r.addEvent(),r.onQuestionVisibleChanged=r.addEvent(),r.onVisibleChanged=r.onQuestionVisibleChanged,r.onPageVisibleChanged=r.addEvent(),r.onPanelVisibleChanged=r.addEvent(),r.onQuestionCreated=r.addEvent(),r.onQuestionAdded=r.addEvent(),r.onQuestionRemoved=r.addEvent(),r.onPanelAdded=r.addEvent(),r.onPanelRemoved=r.addEvent(),r.onPageAdded=r.addEvent(),r.onValidateQuestion=r.addEvent(),r.onSettingQuestionErrors=r.addEvent(),r.onServerValidateQuestions=r.addEvent(),r.onValidatePanel=r.addEvent(),r.onErrorCustomText=r.addEvent(),r.onValidatedErrorsOnCurrentPage=r.addEvent(),r.onProcessHtml=r.addEvent(),r.onGetQuestionDisplayValue=r.addEvent(),r.onGetQuestionTitle=r.addEvent(),r.onGetTitleTagName=r.addEvent(),r.onGetQuestionNumber=r.addEvent(),r.onGetQuestionNo=r.onGetQuestionNumber,r.onGetPanelNumber=r.addEvent(),r.onGetPageNumber=r.addEvent(),r.onGetProgressText=r.addEvent(),r.onProgressText=r.onGetProgressText,r.onTextMarkdown=r.addEvent(),r.onTextRenderAs=r.addEvent(),r.onSendResult=r.addEvent(),r.onGetResult=r.addEvent(),r.onOpenFileChooser=r.addEvent(),r.onUploadFiles=r.addEvent(),r.onDownloadFile=r.addEvent(),r.onClearFiles=r.addEvent(),r.onLoadChoicesFromServer=r.addEvent(),r.onLoadedSurveyFromService=r.addEvent(),r.onProcessTextValue=r.addEvent(),r.onUpdateQuestionCssClasses=r.addEvent(),r.onUpdatePanelCssClasses=r.addEvent(),r.onUpdatePageCssClasses=r.addEvent(),r.onUpdateChoiceItemCss=r.addEvent(),r.onAfterRenderSurvey=r.addEvent(),r.onAfterRenderHeader=r.addEvent(),r.onAfterRenderPage=r.addEvent(),r.onAfterRenderQuestion=r.addEvent(),r.onAfterRenderQuestionInput=r.addEvent(),r.onAfterRenderPanel=r.addEvent(),r.onFocusInQuestion=r.addEvent(),r.onFocusInPanel=r.addEvent(),r.onShowingChoiceItem=r.addEvent(),r.onChoicesLazyLoad=r.addEvent(),r.onChoicesSearch=r.addEvent(),r.onGetChoiceDisplayValue=r.addEvent(),r.onMatrixRowAdded=r.addEvent(),r.onMatrixRowAdding=r.addEvent(),r.onMatrixBeforeRowAdded=r.onMatrixRowAdding,r.onMatrixRowRemoving=r.addEvent(),r.onMatrixRowRemoved=r.addEvent(),r.onMatrixRenderRemoveButton=r.addEvent(),r.onMatrixAllowRemoveRow=r.onMatrixRenderRemoveButton,r.onMatrixDetailPanelVisibleChanged=r.addEvent(),r.onMatrixCellCreating=r.addEvent(),r.onMatrixCellCreated=r.addEvent(),r.onAfterRenderMatrixCell=r.addEvent(),r.onMatrixAfterCellRender=r.onAfterRenderMatrixCell,r.onMatrixCellValueChanged=r.addEvent(),r.onMatrixCellValueChanging=r.addEvent(),r.onMatrixCellValidate=r.addEvent(),r.onMatrixColumnAdded=r.addEvent(),r.onMultipleTextItemAdded=r.addEvent(),r.onDynamicPanelAdded=r.addEvent(),r.onDynamicPanelRemoved=r.addEvent(),r.onDynamicPanelRemoving=r.addEvent(),r.onTimerTick=r.addEvent(),r.onTimer=r.onTimerTick,r.onTimerPanelInfoText=r.addEvent(),r.onDynamicPanelItemValueChanged=r.addEvent(),r.onGetDynamicPanelTabTitle=r.addEvent(),r.onDynamicPanelCurrentIndexChanged=r.addEvent(),r.onCheckAnswerCorrect=r.addEvent(),r.onIsAnswerCorrect=r.onCheckAnswerCorrect,r.onDragDropAllow=r.addEvent(),r.onScrollToTop=r.addEvent(),r.onScrollingElementToTop=r.onScrollToTop,r.onLocaleChangedEvent=r.addEvent(),r.onGetQuestionTitleActions=r.addEvent(),r.onGetPanelTitleActions=r.addEvent(),r.onGetPageTitleActions=r.addEvent(),r.onGetPanelFooterActions=r.addEvent(),r.onGetMatrixRowActions=r.addEvent(),r.onElementContentVisibilityChanged=r.addEvent(),r.onGetExpressionDisplayValue=r.addEvent(),r.onPopupVisibleChanged=r.addEvent(),r.onOpenDropdownMenu=r.addEvent(),r.onElementWrapperComponentName=r.addEvent(),r.onElementWrapperComponentData=r.addEvent(),r.jsonErrors=null,r.cssValue=null,r.showHeaderOnCompletePage="auto",r._isLazyRenderingSuspended=!1,r.hideRequiredErrors=!1,r.cssVariables={},r._isMobile=!1,r._isCompact=!1,r.setValueOnExpressionCounter=0,r._isDesignMode=!1,r.validationAllowSwitchPages=!1,r.validationAllowComplete=!1,r.isNavigationButtonPressed=!1,r.mouseDownPage=null,r.isCalculatingProgressText=!1,r.isSmoothScrollEnabled=!1,r.onResize=new Ve,r.isCurrentPageRendering=!0,r.isCurrentPageRendered=void 0,r.skeletonHeight=void 0,r.isTriggerIsRunning=!1,r.triggerValues=null,r.triggerKeys=null,r.conditionValues=null,r.isValueChangedOnRunningCondition=!1,r.conditionRunnerCounter=0,r.conditionUpdateVisibleIndexes=!1,r.conditionNotifyElementsOnAnyValueOrVariableChanged=!1,r.isEndLoadingFromJson=null,r.questionHashes={names:{},namesInsensitive:{},valueNames:{},valueNamesInsensitive:{}},r.setValueFromTriggerCounter=0,r.needRenderIcons=!0,r.skippedPages=[],r.skeletonComponentName="sv-skeleton",r.taskManager=new ic,r.questionErrorComponent="sv-question-error",r.onBeforeRunConstructor();var o=function(a){return"<h3>"+a+"</h3>"};r.createHtmlLocString("completedHtml","completingSurvey",o),r.createHtmlLocString("completedBeforeHtml","completingSurveyBefore",o,"completed-before"),r.createHtmlLocString("loadingHtml","loadingSurvey",o,"loading"),r.createLocalizableString("emptySurveyText",r,!0,"emptySurvey"),r.createLocalizableString("logo",r,!1),r.createLocalizableString("startSurveyText",r,!1,!0),r.createLocalizableString("pagePrevText",r,!1,!0),r.createLocalizableString("pageNextText",r,!1,!0),r.createLocalizableString("completeText",r,!1,!0),r.createLocalizableString("previewText",r,!1,!0),r.createLocalizableString("editText",r,!1,!0),r.createLocalizableString("questionTitleTemplate",r,!0),r.timerModelValue=new Jo(r),r.timerModelValue.onTimerTick=function(a){r.doTimer(a)},r.createNewArray("pages",function(a){a.isReadyForCleanChangedCallback&&a.isReadyForCleanChangedCallback(),r.doOnPageAdded(a)},function(a){a.isReadyForClean?r.doOnPageRemoved(a):a.isReadyForCleanChangedCallback=function(){r.doOnPageRemoved(a),a.isReadyForCleanChangedCallback=void 0}}),r.createNewArray("triggers",function(a){a.setOwner(r)}),r.createNewArray("calculatedValues",function(a){a.setOwner(r)}),r.createNewArray("completedHtmlOnCondition",function(a){a.locOwner=r}),r.createNewArray("navigateToUrlOnCondition",function(a){a.locOwner=r}),r.registerPropertyChangedHandlers(["locale"],function(){r.onSurveyLocaleChanged()}),r.registerPropertyChangedHandlers(["firstPageIsStarted"],function(){r.onFirstPageIsStartedChanged()}),r.registerPropertyChangedHandlers(["mode"],function(){r.onModeChanged()}),r.registerPropertyChangedHandlers(["progressBarType"],function(){r.updateProgressText()}),r.registerPropertyChangedHandlers(["questionStartIndex","requiredText","questionTitlePattern"],function(){r.resetVisibleIndexes()}),r.registerPropertyChangedHandlers(["isLoading","isCompleted","isCompletedBefore","mode","isStartedState","currentPage","isShowingPreview"],function(){r.updateState()}),r.registerPropertyChangedHandlers(["state","currentPage","showPreviewBeforeComplete"],function(){r.onStateAndCurrentPageChanged()}),r.registerPropertyChangedHandlers(["logo","logoPosition"],function(){r.updateHasLogo()}),r.registerPropertyChangedHandlers(["backgroundImage"],function(){r.updateRenderBackgroundImage()}),r.registerPropertyChangedHandlers(["renderBackgroundImage","backgroundOpacity","backgroundImageFit","fitToContainer","backgroundImageAttachment"],function(){r.updateBackgroundImageStyle()}),r.registerPropertyChangedHandlers(["showPrevButton","showCompleteButton"],function(){r.updateButtonsVisibility()}),r.onGetQuestionNumber.onCallbacksChanged=function(){r.resetVisibleIndexes()},r.onGetPanelNumber.onCallbacksChanged=function(){r.resetVisibleIndexes()},r.onGetProgressText.onCallbacksChanged=function(){r.updateProgressText()},r.onTextMarkdown.onCallbacksChanged=function(){r.locStrsChanged()},r.onProcessHtml.onCallbacksChanged=function(){r.locStrsChanged()},r.onGetQuestionTitle.onCallbacksChanged=function(){r.locStrsChanged()},r.onUpdatePageCssClasses.onCallbacksChanged=function(){r.currentPage&&r.currentPage.updateElementCss()},r.onUpdatePanelCssClasses.onCallbacksChanged=function(){r.currentPage&&r.currentPage.updateElementCss()},r.onUpdateQuestionCssClasses.onCallbacksChanged=function(){r.currentPage&&r.currentPage.updateElementCss()},r.onShowingChoiceItem.onCallbacksChanged=function(){r.rebuildQuestionChoices()},r.navigationBarValue=r.createNavigationBar(),r.navigationBar.locOwner=r,r.onBeforeCreating(),e&&((typeof e=="string"||e instanceof String)&&(e=JSON.parse(e)),e&&e.clientId&&(r.clientId=e.clientId),r.fromJSON(e),r.surveyId&&r.loadSurveyFromService(r.surveyId,r.clientId)),r.onCreating(),n&&r.render(n),r.updateCss(),r.setCalculatedWidthModeUpdater(),r.notifier=new Go(r.css.saveData),r.notifier.addAction(r.createTryAgainAction(),"error"),r.onPopupVisibleChanged.add(function(a,l){l.visible?r.onScrollCallback=function(){l.popup.hide()}:r.onScrollCallback=void 0}),r.progressBarValue=new ts(r),r.layoutElements.push({id:"timerpanel",template:"survey-timerpanel",component:"sv-timerpanel",data:r.timerModel}),r.layoutElements.push({id:"progress-buttons",component:"sv-progress-buttons",data:r.progressBar,processResponsiveness:function(a){return r.progressBar.processResponsiveness&&r.progressBar.processResponsiveness(a)}}),r.layoutElements.push({id:"progress-questions",component:"sv-progress-questions",data:r}),r.layoutElements.push({id:"progress-pages",component:"sv-progress-pages",data:r}),r.layoutElements.push({id:"progress-correctquestions",component:"sv-progress-correctquestions",data:r}),r.layoutElements.push({id:"progress-requiredquestions",component:"sv-progress-requiredquestions",data:r});var s=new st(r);return r.addLayoutElement({id:"toc-navigation",component:"sv-navigation-toc",data:s,processResponsiveness:function(a){return s.updateStickyTOCSize(r.rootElement)}}),r.layoutElements.push({id:"buttons-navigation",component:"sv-action-bar",data:r.navigationBar}),r.locTitle.onStringChanged.add(function(){return r.titleIsEmpty=r.locTitle.isEmpty}),r}return Object.defineProperty(t.prototype,"platformName",{get:function(){return t.platform},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"commentSuffix",{get:function(){return b.commentSuffix},set:function(e){b.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}),Object.defineProperty(t.prototype,"sjsVersion",{get:function(){return this.getPropertyValue("sjsVersion")},set:function(e){this.setPropertyValue("sjsVersion",e)},enumerable:!1,configurable:!0}),t.prototype.processClosedPopup=function(e,n){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,n,r,o){var s=this,a=this.createLocalizableString(e,this,!1,n);a.onGetLocalizationTextCallback=r,o&&(a.onGetTextCallback=function(l){return s.processHtml(l,o)})},t.prototype.getType=function(){return"survey"},t.prototype.onPropertyValueChanged=function(e,n,r){e==="questionsOnPageMode"&&this.onQuestionsOnPageModeChanged(n)},Object.defineProperty(t.prototype,"pages",{get:function(){return this.getPropertyValue("pages")},enumerable:!1,configurable:!0}),t.prototype.render=function(e){this.renderCallback&&this.renderCallback()},t.prototype.updateSurvey=function(e,n){var r=function(){if(s=="model"||s=="children")return"continue";if(s.indexOf("on")==0&&o[s]&&o[s].add){var a=e[s],l=function(u,d){a(u,d)};o[s].add(l)}else o[s]=e[s]},o=this;for(var s in e)r();e&&e.data&&this.onValueChanged.add(function(a,l){e.data[l.name]=l.value})},t.prototype.getCss=function(){return this.css},t.prototype.updateCompletedPageCss=function(){this.containerCss=this.css.container,this.completedCss=new O().append(this.css.body).append(this.css.completedPage).toString(),this.completedBeforeCss=new O().append(this.css.body).append(this.css.completedBeforePage).toString(),this.loadingBodyCss=new O().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,se.getCss())),this.cssValue},set:function(e){this.setCss(e)},enumerable:!1,configurable:!0}),t.prototype.setCss=function(e,n){n===void 0&&(n=!0),n?this.mergeValues(e,this.css):this.cssValue=e,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 O().append(this.css.navigationButton).append(this.css.bodyNavigationButton).toString()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"bodyCss",{get:function(){return new O().append(this.css.body).append(this.css.bodyWithTimer,this.showTimer&&this.state==="running").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(n){return e.processResponsiveness(n)}})},t.prototype.getNavigationCss=function(e,n){return new O().append(e).append(n).toString()},Object.defineProperty(t.prototype,"lazyRendering",{get:function(){return this.lazyRenderingValue===!0},set:function(e){if(this.lazyRendering!==e){this.lazyRenderingValue=e;var n=this.currentPage;n&&n.updateRows()}},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isLazyRendering",{get:function(){return this.lazyRendering||b.lazyRender.enabled},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"lazyRenderingFirstBatchSize",{get:function(){return this.lazyRenderingFirstBatchSizeValue||b.lazyRender.firstBatchSize},set:function(e){this.lazyRenderingFirstBatchSizeValue=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isLazyRenderingSuspended",{get:function(){return this._isLazyRenderingSuspended},enumerable:!1,configurable:!0}),t.prototype.suspendLazyRendering=function(){this.isLazyRendering&&(this._isLazyRenderingSuspended=!0)},t.prototype.releaseLazyRendering=function(){this.isLazyRendering&&(this._isLazyRenderingSuspended=!1)},t.prototype.updateLazyRenderingRowsOnRemovingElements=function(){if(this.isLazyRendering){var e=this.currentPage;e&&er(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){(e===!0||e===void 0)&&(e="bottom"),e===!1&&(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),n=e?e.url:this.navigateToUrl;return n&&(n=this.processText(n,!1)),n},t.prototype.navigateTo=function(){var e=this.getNavigateToUrl(),n={url:e,allow:!0};this.onNavigateToUrl.fire(this,n),!(!n.url||!n.allow)&&iu(n.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,n){this.makeRequiredErrorsInvisible(n),this.onSettingQuestionErrors.fire(this,{question:e,errors:n})},t.prototype.beforeSettingPanelErrors=function(e,n){this.makeRequiredErrorsInvisible(n)},t.prototype.makeRequiredErrorsInvisible=function(e){if(this.hideRequiredErrors)for(var n=0;n<e.length;n++){var r=e[n].getErrorType();(r=="required"||r=="requireoneanswer")&&(e[n].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,"validateVisitedEmptyFields",{get:function(){return this.getPropertyValue("validateVisitedEmptyFields")},set:function(e){this.setPropertyValue("validateVisitedEmptyFields",e)},enumerable:!1,configurable:!0}),t.prototype.getValidateVisitedEmptyFields=function(){return this.validateVisitedEmptyFields&&this.isValidateOnValueChange},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){e===!0&&(e="onComplete"),e===!1&&(e="none"),this.setPropertyValue("clearInvisibleValues",e)},enumerable:!1,configurable:!0}),t.prototype.clearIncorrectValues=function(e){e===void 0&&(e=!1);for(var n=0;n<this.pages.length;n++)this.pages[n].clearIncorrectValues();if(e){var r=this.data,o=!1;for(var s in r)if(!this.getQuestionByValueName(s)&&!(this.iscorrectValueWithPostPrefix(s,b.commentSuffix)||this.iscorrectValueWithPostPrefix(s,b.matrix.totalsSuffix))){var a=this.getCalculatedValueByName(s);a&&a.includeIntoResult||(o=!0,delete r[s])}o&&(this.data=r)}},t.prototype.iscorrectValueWithPostPrefix=function(e,n){return e.indexOf(n)!==e.length-n.length?!1:!!this.getQuestionByValueName(e.substring(0,e.indexOf(n)))},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")||ce.currentLocale},set:function(e){e===ce.defaultLocale&&!ce.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 ce.localeDirections[this.locale]},enumerable:!1,configurable:!0}),t.prototype.getUsedLocales=function(){var e=new Array;this.addUsedLocales(e);var n=e.indexOf("default");if(n>-1){var r=ce.defaultLocale,o=e.indexOf(r);o>-1&&e.splice(o,1),n=e.indexOf("default"),e[n]=r}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&&(i.prototype.locStrsChanged.call(this),!!this.currentPage)){if(this.isDesignMode)this.pages.forEach(function(o){return o.locStrsChanged()});else{var e=this.activePage;e&&e.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,n){return this.getSurveyMarkdownHtml(this,e,n)},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,n){var r=this.getBuiltInRendererForString(e,n);r=this.elementWrapperComponentNameCore(r,e,"string",n);var o={element:e,name:n,renderAs:r};return this.onTextRenderAs.fire(this,o),o.renderAs},t.prototype.getRendererContextForString=function(e,n){return this.elementWrapperDataCore(n,e,"string")},t.prototype.getExpressionDisplayValue=function(e,n,r){var o={question:e,value:n,displayValue:r};return this.onGetExpressionDisplayValue.fire(this,o),o.displayValue},t.prototype.getBuiltInRendererForString=function(e,n){if(this.isDesignMode)return Se.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,n){return this.getSurveyErrorCustomText(this,e,n)},t.prototype.getSurveyErrorCustomText=function(e,n,r){var o={text:n,name:r.getErrorType(),obj:e,error:r};return this.onErrorCustomText.fire(this,o),o.text},t.prototype.getQuestionDisplayValue=function(e,n){var r={question:e,displayValue:n};return this.onGetQuestionDisplayValue.fire(this,r),r.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?nt(this.logoWidth):void 0},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"renderedStyleLogoWidth",{get:function(){return this.logoWidth?on(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?nt(this.logoHeight):void 0},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"renderedStyleLogoHeight",{get:function(){return this.logoHeight?on(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&&this.logoPosition!=="none")},Object.defineProperty(t.prototype,"isLogoBefore",{get:function(){return this.isDesignMode?!1:this.renderedHasLogo&&(this.logoPosition==="left"||this.logoPosition==="top")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isLogoAfter",{get:function(){return this.isDesignMode?this.renderedHasLogo:this.renderedHasLogo&&(this.logoPosition==="right"||this.logoPosition==="bottom")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"logoClassNames",{get:function(){var e={left:"sv-logo--left",right:"sv-logo--right",top:"sv-logo--top",bottom:"sv-logo--bottom"};return new O().append(this.css.logo).append(e[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){e===void 0&&(e=!0),this._isMobile!==e&&(this._isMobile=e,this.updateCss(),this.getAllQuestions().forEach(function(n){return n.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(!(nu()||this.isMobile)&&!this.isValueEmpty(this.isLogoImageChoosen())&&!b.supportCreatorV2){var e=this.logoWidth;if(this.logoPosition==="left"||this.logoPosition==="right")return"calc(100% - 5px - 2em - "+e+")"}return""},enumerable:!1,configurable:!0}),t.prototype.updateRenderBackgroundImage=function(){var e=this.backgroundImage;this.renderBackgroundImage=tr(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 O().append(this.css.rootWrapper).append(this.css.rootWrapperHasImage,!!this.backgroundImage).append(this.css.rootWrapperFixed,!!this.backgroundImage&&this.backgroundImageAttachment==="fixed").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,n){if(!e)return null;var r=this.getFilteredValues(),o=this.getFilteredProperties(),s=new et(e),a=void 0;return s.onRunComplete=function(l){a=l,n&&n(l)},s.run(r,o)||a},Object.defineProperty(t.prototype,"isSettingValueOnExpression",{get:function(){return this.setValueOnExpressionCounter>0},enumerable:!1,configurable:!0}),t.prototype.startSetValueOnExpression=function(){this.setValueOnExpressionCounter++},t.prototype.finishSetValueOnExpression=function(){this.setValueOnExpressionCounter--},t.prototype.runCondition=function(e){if(!e)return!1;var n=this.getFilteredValues(),r=this.getFilteredProperties();return new de(e).run(n,r)},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(e.length==0)return null;for(var n=this.getFilteredValues(),r=this.getFilteredProperties(),o=0;o<e.length;o++)if(e[o].runCondition(n,r))return e[o];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,n){if(this.onGetTitleTagName.isEmpty)return n;var r={element:e,tagName:n};return this.onGetTitleTagName.fire(this,r),r.tagName},Object.defineProperty(t.prototype,"questionTitlePattern",{get:function(){return this.getPropertyValue("questionTitlePattern","numTitleRequire")},set:function(e){e!=="numRequireTitle"&&e!=="requireNumTitle"&&e!="numTitle"&&(e="numTitleRequire"),this.setPropertyValue("questionTitlePattern",e)},enumerable:!1,configurable:!0}),t.prototype.getQuestionTitlePatternOptions=function(){var e=new Array,n=this.getLocalizationString("questionTitlePatternText"),r=this.questionStartIndex?this.questionStartIndex:"1.";return e.push({value:"numTitleRequire",text:r+" "+n+" "+this.requiredText}),e.push({value:"numRequireTitle",text:r+" "+this.requiredText+" "+n}),e.push({value:"numTitle",text:r+" "+n}),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 n=[];e.indexOf("{")>-1;){e=e.substring(e.indexOf("{")+1);var r=e.indexOf("}");if(r<0)break;n.push(e.substring(0,r)),e=e.substring(r+1)}if(n.length>1){if(n[0]=="require")return"requireNumTitle";if(n[1]=="require"&&n.length==3)return"numRequireTitle";if(n.indexOf("require")<0)return"numTitle"}if(n.length==1&&n[0]=="title")return"numTitle"}return"numTitleRequire"},t.prototype.getNewQuestionTitleElement=function(e,n,r,o){if(n="{"+n+"}",!e||e.indexOf(n)<0)return r;for(var s=e.indexOf(n),a="",l="",u=s-1;u>=0&&e[u]!="}";u--);for(u<s-1&&(a=e.substring(u+1,s)),s+=n.length,u=s;u<e.length&&e[u]!="{";u++);for(u>s&&(l=e.substring(s,u)),u=0;u<a.length&&a.charCodeAt(u)<33;)u++;for(a=a.substring(u),u=l.length-1;u>=0&&l.charCodeAt(u)<33;)u--;if(l=l.substring(0,u+1),!a&&!l)return r;var d=r||o;return a+d+l},Object.defineProperty(t.prototype,"locQuestionTitleTemplate",{get:function(){return this.getLocalizableString("questionTitleTemplate")},enumerable:!1,configurable:!0}),t.prototype.getUpdatedQuestionTitle=function(e,n){if(this.onGetQuestionTitle.isEmpty)return n;var r={question:e,title:n};return this.onGetQuestionTitle.fire(this,r),r.title},t.prototype.getUpdatedQuestionNo=function(e,n){if(this.onGetQuestionNumber.isEmpty)return n;var r={question:e,number:n,no:n};return this.onGetQuestionNumber.fire(this,r),r.no===n?r.number:r.no},t.prototype.getUpdatedPanelNo=function(e,n){if(this.onGetPanelNumber.isEmpty)return n;var r={panel:e,number:n};return this.onGetPanelNumber.fire(this,r),r.number},t.prototype.getUpdatedPageNo=function(e,n){if(this.onGetPageNumber.isEmpty)return n;var r={page:e,number:n};return this.onGetPageNumber.fire(this,r),r.number},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){e===!0&&(e="on"),e===!1&&(e="off"),e=e.toLowerCase(),e=e==="onpage"?"onPage":e,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){e==="correctquestion"&&(e="correctQuestion"),e==="requiredquestion"&&(e="requiredQuestion"),this.setPropertyValue("progressBarType",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"progressBarComponentName",{get:function(){var e=this.progressBarType;return!b.legacyProgressBarView&&se.currentType==="defaultV2"&&We(e,"pages")&&(e="buttons"),"progress-"+e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isShowProgressBarOnTop",{get:function(){return this.canShowProresBar()?["auto","aboveheader","belowheader","topbottom","top","both"].indexOf(this.showProgressBar)!==-1:!1},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isShowProgressBarOnBottom",{get:function(){return this.canShowProresBar()?this.showProgressBar==="bottom"||this.showProgressBar==="both"||this.showProgressBar==="topbottom":!1},enumerable:!1,configurable:!0}),t.prototype.getProgressTypeComponent=function(){return"sv-progress-"+this.progressBarType.toLowerCase()},t.prototype.getProgressCssClasses=function(e){return e===void 0&&(e=""),new O().append(this.css.progress).append(this.css.progressTop,this.isShowProgressBarOnTop&&(!e||e=="header")).append(this.css.progressBottom,this.isShowProgressBarOnBottom&&(!e||e=="footer")).toString()},t.prototype.canShowProresBar=function(){return!this.isShowingPreview||this.showPreviewBeforeComplete!="showAllQuestions"},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 n=this.visiblePages,r=0;r<n.length;r++)n[r].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(),e!=this.mode&&(e!="edit"&&e!="display"||this.setPropertyValue("mode",e))},enumerable:!1,configurable:!0}),t.prototype.onModeChanged=function(){for(var e=0;e<this.pages.length;e++){var n=this.pages[e];n.setPropertyValue("isReadOnly",n.isReadOnly)}this.updateButtonsVisibility(),this.updateCss()},Object.defineProperty(t.prototype,"data",{get:function(){for(var e={},n=this.getValuesKeys(),r=0;r<n.length;r++){var o=n[r],s=this.getDataValueCore(this.valuesHash,o);s!==void 0&&(e[o]=s)}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 n=this.data;this.mergeValues(e,n),this.setDataCore(n)}},t.prototype.setDataCore=function(e,n){if(n===void 0&&(n=!1),n&&(this.valuesHash={}),e)for(var r in e){var o=typeof r=="string"?r.trim():r;this.setDataValueCore(this.valuesHash,o,e[r])}this.updateAllQuestionsValue(n),this.notifyAllQuestionsOnValueChanged(),this.notifyElementsOnAnyValueOrVariableChanged(""),this.runConditions(),this.updateAllQuestionsValue(n)},Object.defineProperty(t.prototype,"isSurvey",{get:function(){return!0},enumerable:!1,configurable:!0}),t.prototype.getData=function(e){var n=e||{includePages:!1,includePanels:!1};return!n.includePages&&!n.includePanels?this.data:this.getStructuredData(!!n.includePages,n.includePanels?-1:n.includePages?1:0)},t.prototype.getStructuredData=function(e,n){if(e===void 0&&(e=!0),n===void 0&&(n=-1),n===0)return this.data;var r={};return this.pages.forEach(function(o){if(e){var s={};o.collectValues(s,n-1)&&(r[o.name]=s)}else o.collectValues(r,n)}),r},t.prototype.setStructuredData=function(e,n){if(n===void 0&&(n=!1),!!e){var r={};for(var o in e){var s=this.getQuestionByValueName(o);if(s)r[o]=e[o];else{var a=this.getPageByName(o);a||(a=this.getPanelByName(o)),a&&this.collectDataFromPanel(a,r,e[o])}}n?this.mergeData(r):this.data=r}},t.prototype.collectDataFromPanel=function(e,n,r){for(var o in r){var s=e.getElementByName(o);s&&(s.isPanel?this.collectDataFromPanel(s,n,r[o]):n[o]=r[o])}},Object.defineProperty(t.prototype,"editingObj",{get:function(){return this.editingObjValue},set:function(e){var n=this;if(this.editingObj!=e&&(this.unConnectEditingObj(),this.editingObjValue=e,!this.isDisposed)){if(!e)for(var r=this.getAllQuestions(),o=0;o<r.length;o++)r[o].unbindValue();this.editingObj&&(this.setDataCore({}),this.onEditingObjPropertyChanged=function(s,a){x.hasOriginalProperty(n.editingObj,a.name)&&(a.name==="locale"&&n.setDataCore({}),n.updateOnSetValue(a.name,n.editingObj[a.name],a.oldValue))},this.editingObj.onPropertyChanged.add(this.onEditingObjPropertyChanged))}},enumerable:!1,configurable:!0}),t.prototype.unConnectEditingObj=function(){this.editingObj&&!this.editingObj.isDisposed&&this.editingObj.onPropertyChanged.remove(this.onEditingObjPropertyChanged)},Object.defineProperty(t.prototype,"isEditingSurveyElement",{get:function(){return!!this.editingObj},enumerable:!1,configurable:!0}),t.prototype.setCalculatedValuesIntoResult=function(e){for(var n=0;n<this.calculatedValues.length;n++){var r=this.calculatedValues[n];r.includeIntoResult&&r.name&&this.getVariable(r.name)!==void 0&&(e[r.name]=this.getVariable(r.name))}},t.prototype.getAllValues=function(){return this.data},t.prototype.getPlainData=function(e){e||(e={includeEmpty:!0,includeQuestionTypes:!1,includeValues:!1});var n=[],r=[];if(this.getAllQuestions().forEach(function(u){var d=u.getPlainData(e);d&&(n.push(d),r.push(u.valueName||u.name))}),e.includeValues)for(var o=this.getValuesKeys(),s=0;s<o.length;s++){var a=o[s];if(r.indexOf(a)==-1){var l=this.getDataValueCore(this.valuesHash,a);l&&n.push({name:a,title:a,value:l,displayValue:l,isNode:!1,getString:function(u){return typeof u=="object"?JSON.stringify(u):u}})}}return n},t.prototype.getFilteredValues=function(){var e={};for(var n in this.variablesHash)e[n]=this.variablesHash[n];if(this.addCalculatedValuesIntoFilteredValues(e),!this.isDesignMode){for(var r=this.getValuesKeys(),o=0;o<r.length;o++){var n=r[o];e[n]=this.getDataValueCore(this.valuesHash,n)}this.getAllQuestions().forEach(function(s){s.hasFilteredValue&&(e[s.getFilteredName()]=s.getFilteredValue())})}return e},t.prototype.addCalculatedValuesIntoFilteredValues=function(e){for(var n=this.calculatedValues,r=0;r<n.length;r++)e[n[r].name]=n[r].value},t.prototype.getFilteredProperties=function(){return{survey:this}},t.prototype.getValuesKeys=function(){if(!this.editingObj)return Object.keys(this.valuesHash);for(var e=x.getPropertiesByObj(this.editingObj),n=[],r=0;r<e.length;r++)n.push(e[r].name);return n},t.prototype.getDataValueCore=function(e,n){return this.editingObj?x.getObjPropertyValue(this.editingObj,n):this.getDataFromValueHash(e,n)},t.prototype.setDataValueCore=function(e,n,r){this.editingObj?x.setObjPropertyValue(this.editingObj,n,r):this.setDataToValueHash(e,n,r)},t.prototype.deleteDataValueCore=function(e,n){this.editingObj?this.editingObj[n]=null:this.deleteDataFromValueHash(e,n)},t.prototype.getDataFromValueHash=function(e,n){return this.valueHashGetDataCallback?this.valueHashGetDataCallback(e,n):e[n]},t.prototype.setDataToValueHash=function(e,n,r){this.valueHashSetDataCallback?this.valueHashSetDataCallback(e,n,r):e[n]=r},t.prototype.deleteDataFromValueHash=function(e,n){this.valueHashDeleteDataCallback?this.valueHashDeleteDataCallback(e,n):delete e[n]},Object.defineProperty(t.prototype,"comments",{get:function(){for(var e={},n=this.getValuesKeys(),r=0;r<n.length;r++){var o=n[r];o.indexOf(this.commentSuffix)>0&&(e[o]=this.getDataValueCore(this.valuesHash,o))}return e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"visiblePages",{get:function(){if(this.isDesignMode)return this.pages;if(this.pageContainerValue&&(this.isShowingPreview||this.isSinglePage))return[this.pageContainerValue];for(var e=new Array,n=0;n<this.pages.length;n++)this.isPageInVisibleList(this.pages[n])&&e.push(this.pages[n]);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 this.pages.length==0},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 n=this.getPageByObject(e);if(!(e&&!n)&&!(!n&&this.isCurrentPageAvailable)){var r=this.visiblePages;if(!(n!=null&&r.indexOf(n)<0)&&n!=this.currentPage){var o=this.currentPage;!this.isShowingPreview&&!this.currentPageChanging(n,o)||(this.setPropertyValue("currentPage",n),n&&(n.onFirstRendering(),n.updateCustomWidgets(),n.setWasShown(!0)),this.locStrsChanged(),this.isShowingPreview||this.currentPageChanged(n,o))}}}},enumerable:!1,configurable:!0}),t.prototype.tryNavigateToPage=function(e){if(!this.performValidationOnPageChanging(e))return!1;var n=this.visiblePages.indexOf(e),r=n<this.currentPageNo||!this.doServerValidation(!1,!1,e);return r&&(this.currentPage=e),r},t.prototype.performValidationOnPageChanging=function(e){if(this.isDesignMode)return!1;var n=this.visiblePages.indexOf(e);if(n<0||n>=this.visiblePageCount||n===this.currentPageNo)return!1;if(n<this.currentPageNo||this.checkErrorsMode==="onComplete"||this.validationAllowSwitchPages)return!0;if(!this.validateCurrentPage())return!1;for(var r=this.currentPageNo+1;r<n;r++){var o=this.visiblePages[r];if(!o.validate(!0,!0))return!1;o.passed=!0}return!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?!0:!!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 this.state==="starting"},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 this.state=="running"||this.state=="preview"||this.isShowStartingPage},enumerable:!1,configurable:!0}),t.prototype.updateActivePage=function(){var e=this.isShowStartingPage?this.startedPage:this.currentPage;e!==this.activePage&&this.setPropertyValue("activePage",e)},t.prototype.onStateAndCurrentPageChanged=function(){this.updateActivePage(),this.updateButtonsVisibility()},t.prototype.getPageByObject=function(e){if(!e)return null;if(e.getType&&e.getType()=="page")return e;if(typeof e=="string"||e instanceof String)return this.getPageByName(String(e));if(!isNaN(e)){var n=Number(e),r=this.visiblePages;return e<0||e>=r.length?null:r[n]}return e},Object.defineProperty(t.prototype,"currentPageNo",{get:function(){return this.visiblePages.indexOf(this.currentPage)},set:function(e){var n=this.visiblePages;e<0||e>=n.length||(this.currentPage=n[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){e===void 0&&(e=!0);var n=this.activePage;n&&(e&&n.scrollToTop(),this.isCurrentPageRendering&&this.focusFirstQuestionAutomatic&&!this.focusingQuestionInfo&&(n.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,n){this.setPropertyValue("completedState",e),n||(e=="saving"&&(n=this.getLocalizationString("savingData")),e=="error"&&(n=this.getLocalizationString("savingDataError")),e=="success"&&(n=this.getLocalizationString("savingDataSuccess"))),this.setPropertyValue("completedStateText",n),this.state==="completed"&&this.showCompletedPage&&this.completedState&&this.notify(this.completedStateText,this.completedState,e==="error")},t.prototype.notify=function(e,n,r){r===void 0&&(r=!1),this.notifier.showActions=r,this.notifier.notify(e,n,r)},t.prototype.clear=function(e,n){e===void 0&&(e=!0),n===void 0&&(n=!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 r=0;r<this.pages.length;r++)this.pages[r].timeSpent=0,this.pages[r].setWasShown(!1),this.pages[r].passed=!1;if(this.onFirstPageIsStartedChanged(),n&&(this.currentPage=this.firstVisiblePage,this.currentSingleQuestion)){var o=this.getAllQuestions(!0);this.currentSingleQuestion=o.length>0?o[0]:void 0}e&&this.updateValuesWithDefaults()},t.prototype.mergeValues=function(e,n){mt(e,n)},t.prototype.updateValuesWithDefaults=function(){if(!(this.isDesignMode||this.isLoading))for(var e=0;e<this.pages.length;e++)for(var n=this.pages[e].questions,r=0;r<n.length;r++)n[r].updateValueWithDefaults()},t.prototype.updateCustomWidgets=function(e){e&&e.updateCustomWidgets()},t.prototype.currentPageChanging=function(e,n){var r=this.createPageChangeEventOptions(e,n);r.allow=!0,r.allowChanging=!0,this.onCurrentPageChanging.fire(this,r);var o=r.allowChanging&&r.allow;return o&&(this.isCurrentPageRendering=!0),o},t.prototype.currentPageChanged=function(e,n){this.notifyQuestionsOnHidingContent(n);var r=this.createPageChangeEventOptions(e,n);n&&!n.isDisposed&&!n.passed&&n.validate(!1)&&(n.passed=!0),this.isCurrentPageRendered===!0&&(this.isCurrentPageRendered=!1),this.onCurrentPageChanged.fire(this,r)},t.prototype.notifyQuestionsOnHidingContent=function(e){e&&!e.isDisposed&&e.questions.forEach(function(n){return n.onHidingContent()})},t.prototype.createPageChangeEventOptions=function(e,n){var r=e&&n?e.visibleIndex-n.visibleIndex:0;return{oldCurrentPage:n,newCurrentPage:e,isNextPage:r===1,isPrevPage:r===-1,isGoingForward:r>0,isGoingBackward:r<0,isAfterPreview:this.changeCurrentPageFromPreview===!0}},t.prototype.getProgress=function(){if(this.currentPage==null)return 0;if(this.progressBarType!=="pages"){var e=this.getProgressInfo();return this.progressBarType==="requiredQuestions"?e.requiredQuestionCount>=1?Math.ceil(e.requiredAnsweredQuestionCount*100/e.requiredQuestionCount):100:e.questionCount>=1?Math.ceil(e.answeredQuestionCount*100/e.questionCount):100}var n=this.visiblePages,r=n.indexOf(this.currentPage);return Math.ceil(r*100/n.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.activePage;return e?e.navigationButtonsVisibility==="show"?this.showNavigationButtons==="none"?"bottom":this.showNavigationButtons:e.navigationButtonsVisibility==="hide"?"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 n=this.isNavigationButtonsShowing;return n=="both"||n==e},Object.defineProperty(t.prototype,"isEditMode",{get:function(){return this.mode=="edit"},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isDisplayMode",{get:function(){return this.mode=="display"&&!this.isDesignMode||this.state=="preview"},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isUpdateValueTextOnTyping",{get:function(){return this.textUpdateMode=="onTyping"},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 n=this.visiblePages;this.setPropertyValue("showInvisibleElements",e),!this.isLoadingFromJson&&(this.runConditions(),this.updateAllElementsVisibility(n))},enumerable:!1,configurable:!0}),t.prototype.updateAllElementsVisibility=function(e){for(var n=0;n<this.pages.length;n++){var r=this.pages[n];r.updateElementVisibility(),e.indexOf(r)>-1!=r.isVisible&&this.onPageVisibleChanged.fire(this,{page:r,visible:r.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&&this.showPreviewBeforeComplete=="showAnsweredQuestions"&&this.isAnyQuestionAnswered},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isAnyQuestionAnswered",{get:function(){for(var e=this.getAllQuestions(!0),n=0;n<e.length;n++)if(!e[n].isEmpty())return!0;return!1},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hasCookie",{get:function(){if(!this.cookieName)return!1;var e=I.getCookie();return e&&e.indexOf(this.cookieName+"=true")>-1},enumerable:!1,configurable:!0}),t.prototype.setCookie=function(){this.cookieName&&I.setCookie(this.cookieName+"=true; expires=Fri, 31 Dec 9999 0:0:0 GMT")},t.prototype.deleteCookie=function(){this.cookieName&&I.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?!1:this.doCurrentPageComplete(!1)},t.prototype.performNext=function(){var e=this.currentSingleQuestion;if(!e)return this.nextPage();if(!e.validate(!0))return!1;var n=this.getAllQuestions(!0),r=n.indexOf(e);return r<0||r===n.length-1?!1:(this.currentSingleQuestion=n[r+1],!0)},t.prototype.performPrevious=function(){var e=this.currentSingleQuestion;if(!e)return this.prevPage();var n=this.getAllQuestions(!0),r=n.indexOf(e);return r===0?!1:(this.currentSingleQuestion=n[r-1],!0)},t.prototype.hasErrorsOnNavigate=function(e){var n=this;if(!this.isEditMode||this.ignoreValidation)return!1;var r=e&&this.validationAllowComplete||!e&&this.validationAllowSwitchPages,o=function(s){(!s||r)&&n.doCurrentPageCompleteCore(e)};return this.isValidateOnComplete?this.isLastPage?this.validate(!0,this.focusOnFirstError,o,!0)!==!0&&!r:!1:this.validateCurrentPage(o)!==!0&&!r},t.prototype.checkForAsyncQuestionValidation=function(e,n){var r=this;this.clearAsyncValidationQuesitons();for(var o=function(){if(e[a].isRunningValidators){var l=e[a];l.onCompletedAsyncValidators=function(u){r.onCompletedAsyncQuestionValidators(l,n,u)},s.asyncValidationQuesitons.push(e[a])}},s=this,a=0;a<e.length;a++)o();return this.asyncValidationQuesitons.length>0},t.prototype.clearAsyncValidationQuesitons=function(){if(this.asyncValidationQuesitons)for(var e=this.asyncValidationQuesitons,n=0;n<e.length;n++)e[n].onCompletedAsyncValidators=null;this.asyncValidationQuesitons=[]},t.prototype.onCompletedAsyncQuestionValidators=function(e,n,r){if(r){if(this.clearAsyncValidationQuesitons(),n(!0),this.focusOnFirstError&&e&&e.page&&e.page===this.currentPage){for(var o=this.currentPage.questions,s=0;s<o.length;s++)if(o[s]!==e&&o[s].errors.length>0)return;e.focus(!0)}return}for(var a=this.asyncValidationQuesitons,l=0;l<a.length;l++)if(a[l].isRunningValidators)return;n(!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,n){var r=this.validatePage(e,n);return r===void 0?r:!r},t.prototype.validatePage=function(e,n){return e||(e=this.activePage),e?this.checkIsPageHasErrors(e)?!1:n&&this.checkForAsyncQuestionValidation(e.questions,function(r){return n(r)})?void 0:!0:!0},t.prototype.hasErrors=function(e,n,r){e===void 0&&(e=!0),n===void 0&&(n=!1);var o=this.validate(e,n,r);return o===void 0?o:!o},t.prototype.validate=function(e,n,r,o){e===void 0&&(e=!0),n===void 0&&(n=!1),r&&(e=!0);for(var s=this.visiblePages,a=!0,l={fireCallback:e,focusOnFirstError:n,firstErrorQuestion:null,result:!1},u=0;u<s.length;u++)s[u].validate(e,n,l)||(a=!1);return l.firstErrorQuestion&&(n||o)&&(n?l.firstErrorQuestion.focus(!0):this.currentPage=l.firstErrorQuestion.page),!a||!r?a:this.checkForAsyncQuestionValidation(this.getAllQuestions(),function(d){return r(d)})?void 0:!0},t.prototype.ensureUniqueNames=function(e){if(e===void 0&&(e=null),e==null)for(var n=0;n<this.pages.length;n++)this.ensureUniqueName(this.pages[n]);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 n=e.elements,r=0;r<n.length;r++)this.ensureUniqueNames(n[r]);else this.ensureUniqueQuestionName(e)},t.prototype.ensureUniquePageName=function(e){var n=this;return this.ensureUniqueElementName(e,function(r){return n.getPageByName(r)})},t.prototype.ensureUniquePanelName=function(e){var n=this;return this.ensureUniqueElementName(e,function(r){return n.getPanelByName(r)})},t.prototype.ensureUniqueQuestionName=function(e){var n=this;return this.ensureUniqueElementName(e,function(r){return n.getQuestionByName(r)})},t.prototype.ensureUniqueElementName=function(e,n){var r=n(e.name);if(!(!r||r==e)){for(var o=this.getNewName(e.name);n(o);)var o=this.getNewName(e.name);e.name=o}},t.prototype.getNewName=function(e){for(var n=e.length;n>0&&e[n-1]>="0"&&e[n-1]<="9";)n--;var r=e.substring(0,n),o=0;return n<e.length&&(o=parseInt(e.substring(n))),o++,r+o},t.prototype.checkIsCurrentPageHasErrors=function(e){return e===void 0&&(e=void 0),this.checkIsPageHasErrors(this.activePage,e)},t.prototype.checkIsPageHasErrors=function(e,n){if(n===void 0&&(n=void 0),n===void 0&&(n=this.focusOnFirstError),!e)return!0;var r=!1;return this.currentSingleQuestion?r=!this.currentSingleQuestion.validate(!0):r=!e.validate(!0,n),this.fireValidatedErrorsOnPage(e),r},t.prototype.fireValidatedErrorsOnPage=function(e){if(!(this.onValidatedErrorsOnCurrentPage.isEmpty||!e)){for(var n=e.questions,r=new Array,o=new Array,s=0;s<n.length;s++){var a=n[s];if(a.errors.length>0){r.push(a);for(var l=0;l<a.errors.length;l++)o.push(a.errors[l])}}this.onValidatedErrorsOnCurrentPage.fire(this,{questions:r,errors:o,page:e})}},t.prototype.prevPage=function(){var e=this;if(this.isFirstPage||this.state==="starting")return!1;this.resetNavigationButton();var n=this.skippedPages.find(function(s){return s.to==e.currentPage});if(n)this.currentPage=n.from,this.skippedPages.splice(this.skippedPages.indexOf(n),1);else{var r=this.visiblePages,o=r.indexOf(this.currentPage);this.currentPage=r[o-1]}return!0},t.prototype.tryComplete=function(){this.isValidateOnComplete&&this.cancelPreview();var e=this.doCurrentPageComplete(!0);return e&&this.cancelPreview(),e},t.prototype.completeLastPage=function(){return this.tryComplete()},t.prototype.navigationMouseDown=function(){return this.isNavigationButtonPressed=!0,!0},t.prototype.resetNavigationButton=function(){this.isNavigationButtonPressed=!1},t.prototype.nextPageUIClick=function(){return this.mouseDownPage&&this.mouseDownPage!==this.activePage?!1:(this.mouseDownPage=null,this.performNext())},t.prototype.nextPageMouseDown=function(){return this.mouseDownPage=this.activePage,this.navigationMouseDown()},t.prototype.showPreview=function(){return this.resetNavigationButton(),!this.isValidateOnComplete&&(this.hasErrorsOnNavigate(!0)||this.doServerValidation(!0,!0))?!1:(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){e===void 0&&(e=null),this.isShowingPreview&&(this.gotoPageFromPreview=e,this.isShowingPreview=!1)},t.prototype.cancelPreviewByPage=function(e){this.cancelPreview(e)},t.prototype.doCurrentPageComplete=function(e){return this.isValidatingOnServer||(this.resetNavigationButton(),this.hasErrorsOnNavigate(e))?!1:this.doCurrentPageCompleteCore(e)},t.prototype.doCurrentPageCompleteCore=function(e){return this.doServerValidation(e)?!1:e?(this.currentPage.passed=!0,this.doComplete(this.canBeCompletedByTrigger,this.completedTrigger)):(this.doNextPage(),!0)},Object.defineProperty(t.prototype,"isSinglePage",{get:function(){return this.questionsOnPageMode=="singlePage"},set:function(e){this.questionsOnPageMode=e?"singlePage":"standard"},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isSingleVisibleQuestion",{get:function(){return this.isSingleVisibleQuestionVal(this.questionsOnPageMode)},enumerable:!1,configurable:!0}),t.prototype.isSingleVisibleQuestionVal=function(e){return e==="questionPerPage"||e==="questionOnPage"},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 e=="showAllQuestions"||e=="showAnsweredQuestions"},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(){this.updatePagesContainer()},t.prototype.createRootPage=function(e,n){var r=x.createClass("page");return r.name=e,r.isPageContainer=!0,n.forEach(function(o){o.isStartPage||r.addElement(o)}),r},t.prototype.disposeContainerPage=function(){var e=this.pageContainerValue,n=[].concat(e.elements);n.forEach(function(r){return e.removeElement(r)}),e.dispose(),this.pageContainerValue=void 0},t.prototype.updatePagesContainer=function(){if(!this.isDesignMode){this.getAllQuestions().forEach(function(a){return a.updateElementVisibility()}),this.setPropertyValue("currentPage",void 0);var e="single-page",n="preview-page",r=void 0;if(this.isSinglePage){var o=this.pageContainerValue;o&&o.name===n?(r=o.elements[0],this.disposeContainerPage()):r=this.createRootPage(e,this.pages)}if(this.isShowingPreview&&(r=this.createRootPage(n,r?[r]:this.pages)),r&&(r.setSurveyImpl(this),this.pageContainerValue=r,this.currentPage=r),!this.isSinglePage&&!this.isShowingPreview){this.disposeContainerPage();var s=this.gotoPageFromPreview;this.gotoPageFromPreview=null,P.isValueEmpty(s)&&this.visiblePageCount>0&&(s=this.visiblePages[this.visiblePageCount-1]),s&&(this.changeCurrentPageFromPreview=!0,this.currentPage=s,this.changeCurrentPageFromPreview=!1)}!this.currentPage&&this.visiblePageCount>0&&(this.currentPage=this.visiblePages[0]),this.pages.forEach(function(a){a.hasShown&&a.updateElementCss(!0)}),this.updateButtonsVisibility()}},Object.defineProperty(t.prototype,"currentSingleQuestion",{get:function(){return this.currentSingleQuestionValue},set:function(e){if(e!==this.currentSingleQuestion)if(this.currentSingleQuestionValue=e,e){var n=e.page;n.updateRows(),n!==this.currentPage?this.currentPage=n:this.focusFirstQuestionAutomatic&&e.focus(),this.updateButtonsVisibility()}else this.visiblePages.forEach(function(r){return r.updateRows()})},enumerable:!1,configurable:!0}),t.prototype.onQuestionsOnPageModeChanged=function(e){if(!(this.isShowingPreview||this.isDesignMode)&&(this.currentSingleQuestion=void 0,e==="singlePage"&&this.updatePagesContainer(),this.isSinglePage&&this.updatePagesContainer(),this.isSingleVisibleQuestion)){var n=this.getAllQuestions(!0);n.length>0&&(this.currentSingleQuestion=n[0])}},t.prototype.getPageStartIndex=function(){return this.firstPageIsStarted&&this.pages.length>0?1:0},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}),Object.defineProperty(t.prototype,"isFirstElement",{get:function(){return this.getPropertyValue("isFirstElement")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isLastElement",{get:function(){return this.getPropertyValue("isLastElement")},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);var n=void 0,r=void 0,o=this.currentSingleQuestion;if(o){var s=this.getAllQuestions(!0),a=s.indexOf(o);a>=0&&(n=a===0,r=a===s.length-1)}this.setPropertyValue("isFirstElement",n),this.setPropertyValue("isLastElement",r)},Object.defineProperty(t.prototype,"isLastPageOrElement",{get:function(){return this.isLastElement!==void 0?this.isLastElement:this.isLastPage},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isFirstPageOrElement",{get:function(){return this.isFirstElement!==void 0?this.isFirstElement:this.isFirstPage},enumerable:!1,configurable:!0}),t.prototype.calcIsShowPrevButton=function(){if(this.isFirstPageOrElement||!this.showPrevButton||this.state!=="running")return!1;if(this.isFirstElement!==void 0)return!0;var e=this.visiblePages[this.currentPageNo-1];return e&&e.getMaxTimeToFinish()<=0},t.prototype.calcIsShowNextButton=function(){return this.state==="running"&&!this.isLastPageOrElement&&!this.canBeCompletedByTrigger},t.prototype.calcIsCompleteButtonVisible=function(){var e=this.state;return this.isEditMode&&(this.state==="running"&&(this.isLastPageOrElement&&!this.isShowPreviewBeforeComplete||this.canBeCompletedByTrigger)||e==="preview")&&this.showCompleteButton},t.prototype.calcIsPreviewButtonVisible=function(){return this.isEditMode&&this.isShowPreviewBeforeComplete&&this.state=="running"&&this.isLastPageOrElement},t.prototype.calcIsCancelPreviewButtonVisible=function(){return this.isEditMode&&this.isShowPreviewBeforeComplete&&this.state=="preview"},Object.defineProperty(t.prototype,"firstVisiblePage",{get:function(){if(this.visiblePageCount===1)return this.visiblePages[0];for(var e=this.pages,n=0;n<e.length;n++)if(this.isPageInVisibleList(e[n]))return e[n];return null},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"lastVisiblePage",{get:function(){if(this.visiblePageCount===1)return this.visiblePages[0];for(var e=this.pages,n=e.length-1;n>=0;n--)if(this.isPageInVisibleList(e[n]))return e[n];return null},enumerable:!1,configurable:!0}),t.prototype.doComplete=function(e,n){if(e===void 0&&(e=!1),!this.isCompleted)return this.checkOnCompletingEvent(e,n)?(this.checkOnPageTriggers(!0),this.stopTimer(),this.notifyQuestionsOnHidingContent(this.currentPage),this.isCompleted=!0,this.clearUnusedValues(),this.saveDataOnComplete(e,n),this.setCookie(),!0):(this.isCompleted=!1,!1)},t.prototype.saveDataOnComplete=function(e,n){var r=this;e===void 0&&(e=!1);var o=this.hasCookie,s=function(V){d=!0,r.setCompletedState("saving",V)},a=function(V){r.setCompletedState("error",V)},l=function(V){r.setCompletedState("success",V),r.navigateTo()},u=function(V){r.setCompletedState("","")},d=!1,v={isCompleteOnTrigger:e,completeTrigger:n,showSaveInProgress:s,showSaveError:a,showSaveSuccess:l,clearSaveMessages:u,showDataSaving:s,showDataSavingError:a,showDataSavingSuccess:l,showDataSavingClear:u};this.onComplete.fire(this,v),!o&&this.surveyPostId&&this.sendResult(),d||this.navigateTo()},t.prototype.checkOnCompletingEvent=function(e,n){var r={allowComplete:!0,allow:!0,isCompleteOnTrigger:e,completeTrigger:n};return this.onCompleting.fire(this,r),r.allowComplete&&r.allow},t.prototype.start=function(){return!this.firstPageIsStarted||(this.isCurrentPageRendering=!0,this.checkIsPageHasErrors(this.startedPage,!0))?!1:(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,n,r){var o=this,s={data:{},errors:{},survey:this,complete:function(){o.completeServerValidation(s,n,r)}};if(e&&this.isValidateOnComplete)s.data=this.data;else for(var a=this.activePage.questions,l=0;l<a.length;l++){var u=a[l];if(u.visible){var d=this.getValue(u.getValueName());this.isValueEmpty(d)||(s.data[u.getValueName()]=d)}}return s},t.prototype.onIsValidatingOnServerChanged=function(){},t.prototype.doServerValidation=function(e,n,r){var o=this;if(n===void 0&&(n=!1),!this.onServerValidateQuestions||this.onServerValidateQuestions.isEmpty||!e&&this.isValidateOnComplete)return!1;this.setIsValidatingOnServer(!0);var s=typeof this.onServerValidateQuestions=="function";return this.serverValidationEventCount=s?1:this.onServerValidateQuestions.length,s?this.onServerValidateQuestions(this,this.createServerValidationOptions(e,n,r)):this.onServerValidateQuestions.fireByCreatingOptions(this,function(){return o.createServerValidationOptions(e,n,r)}),!0},t.prototype.completeServerValidation=function(e,n,r){if(!(this.serverValidationEventCount>1&&(this.serverValidationEventCount--,e&&e.errors&&Object.keys(e.errors).length===0))&&(this.serverValidationEventCount=0,this.setIsValidatingOnServer(!1),!(!e&&!e.survey))){var o=e.survey,s=!1;if(e.errors){var a=this.focusOnFirstError;for(var l in e.errors){var u=o.getQuestionByName(l);u&&u.errors&&(s=!0,u.addError(new we(e.errors[l],this)),a&&(a=!1,u.page&&(this.currentPage=u.page),u.focus(!0)))}this.fireValidatedErrorsOnPage(this.currentPage)}s||(n?this.showPreviewCore():r?this.currentPage=r:o.isLastPage?o.doComplete():o.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 n=this.visiblePages,r=n.indexOf(this.currentPage);this.currentPage=n[r+1]}},t.prototype.setCompleted=function(e){this.doComplete(!0,e)},t.prototype.canBeCompleted=function(e,n){var r;if(b.triggers.changeNavigationButtonsOnComplete){var o=this.canBeCompletedByTrigger;this.completedByTriggers||(this.completedByTriggers={}),n?this.completedByTriggers[e.id]={trigger:e,pageId:(r=this.currentPage)===null||r===void 0?void 0:r.id}:delete this.completedByTriggers[e.id],o!==this.canBeCompletedByTrigger&&this.updateButtonsVisibility()}},Object.defineProperty(t.prototype,"canBeCompletedByTrigger",{get:function(){var e;if(!this.completedByTriggers)return!1;var n=Object.keys(this.completedByTriggers);if(n.length===0)return!1;var r=(e=this.currentPage)===null||e===void 0?void 0:e.id;if(!r)return!0;for(var o=0;o<n.length;o++)if(r===this.completedByTriggers[n[o]].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 le.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){e===void 0&&(e=!1),!(this.isCalculatingProgressText||this.isShowingPreview)&&(e&&this.progressBarType=="pages"&&this.onGetProgressText.isEmpty||(this.isCalculatingProgressText=!0,this.setPropertyValue("progressText",this.getProgressText()),this.setPropertyValue("progressValue",this.getProgress()),this.isCalculatingProgressText=!1))},t.prototype.getProgressText=function(){if(!this.isDesignMode&&this.currentPage==null)return"";var e={questionCount:0,answeredQuestionCount:0,requiredQuestionCount:0,requiredAnsweredQuestionCount:0,text:""},n=this.progressBarType.toLowerCase();if(n==="questions"||n==="requiredquestions"||n==="correctquestions"||!this.onGetProgressText.isEmpty){var r=this.getProgressInfo();e.questionCount=r.questionCount,e.answeredQuestionCount=r.answeredQuestionCount,e.requiredQuestionCount=r.requiredQuestionCount,e.requiredAnsweredQuestionCount=r.requiredAnsweredQuestionCount}return e.text=this.getProgressTextCore(e),this.onGetProgressText.fire(this,e),e.text},t.prototype.getProgressTextCore=function(e){var n=this.progressBarType.toLowerCase();if(n==="questions")return this.getLocalizationFormatString("questionsProgressText",e.answeredQuestionCount,e.questionCount);if(n==="requiredquestions")return this.getLocalizationFormatString("questionsProgressText",e.requiredAnsweredQuestionCount,e.requiredQuestionCount);if(n==="correctquestions"){var r=this.getCorrectedAnswerCount();return this.getLocalizationFormatString("questionsProgressText",r,e.questionCount)}var o=this.isDesignMode?this.pages:this.visiblePages,s=o.indexOf(this.currentPage)+1;return this.getLocalizationFormatString("progressText",s,o.length)},t.prototype.getRootCss=function(){return new O().append(this.css.root).append(this.css.rootProgress+"--"+this.progressBarType).append(this.css.rootMobile,this.isMobile).append(this.css.rootAnimationDisabled,!b.animationEnabled).append(this.css.rootReadOnly,this.mode==="display"&&!this.isDesignMode).append(this.css.rootCompact,this.isCompact).append(this.css.rootFitToContainer,this.fitToContainer).toString()},t.prototype.afterRenderSurvey=function(e){var n=this;this.destroyResizeObserver(),Array.isArray(e)&&(e=le.GetFirstNonTextElement(e));var r=e,o=this.css.variables;if(o){var s=Number.parseFloat(I.getComputedStyle(r).getPropertyValue(o.mobileWidth));if(s){var a=!1;this.resizeObserver=new ResizeObserver(function(l){E.requestAnimationFrame(function(){a||!ar(r)?a=!1:a=n.processResponsiveness(r.offsetWidth,s,r.offsetHeight)})}),this.resizeObserver.observe(r)}}this.onAfterRenderSurvey.fire(this,{survey:this,htmlElement:e}),this.rootElement=e,this.addScrollEventListener()},t.prototype.beforeDestroySurveyElement=function(){this.destroyResizeObserver(),this.removeScrollEventListener(),this.rootElement=void 0},t.prototype.processResponsiveness=function(e,n,r){var o=e<n,s=this.isMobile!==o;this.setIsMobile(o),this.layoutElements.forEach(function(l){return l.processResponsiveness&&l.processResponsiveness(e)});var a={height:r,width:e};return this.onResize.fire(this,a),s},t.prototype.triggerResponsiveness=function(e){this.getAllQuestions().forEach(function(n){n.triggerResponsiveness(e)})},t.prototype.destroyResizeObserver=function(){this.resizeObserver&&(this.resizeObserver.disconnect(),this.resizeObserver=void 0)},t.prototype.updateQuestionCssClasses=function(e,n){this.onUpdateQuestionCssClasses.fire(this,{question:e,cssClasses:n})},t.prototype.updatePanelCssClasses=function(e,n){this.onUpdatePanelCssClasses.fire(this,{panel:e,cssClasses:n})},t.prototype.updatePageCssClasses=function(e,n){this.onUpdatePageCssClasses.fire(this,{page:e,cssClasses:n})},t.prototype.updateChoiceItemCss=function(e,n){n.question=e,this.onUpdateChoiceItemCss.fire(this,n)},t.prototype.afterRenderPage=function(e){var n=this;if(!this.isDesignMode&&!this.focusingQuestionInfo){var r=this.isCurrentPageRendered===!1;setTimeout(function(){return n.scrollToTopOnPageChange(r)},1)}this.focusQuestionInfo(),this.isCurrentPageRendered=!0,!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,n){this.onAfterRenderQuestion.fire(this,{question:e,htmlElement:n})},t.prototype.afterRenderQuestionInput=function(e,n){if(!this.onAfterRenderQuestionInput.isEmpty){var r=e.inputId,o=b.environment.root;if(r&&n.id!==r&&typeof o<"u"){var s=o.getElementById(r);s&&(n=s)}this.onAfterRenderQuestionInput.fire(this,{question:e,htmlElement:n})}},t.prototype.afterRenderPanel=function(e,n){this.onAfterRenderPanel.fire(this,{panel:e,htmlElement:n})},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,n,r){var o={question:e,item:n,visible:r};return this.onShowingChoiceItem.fire(this,o),o.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,n){this.onMatrixRowAdded.fire(this,{question:e,row:n})},t.prototype.matrixColumnAdded=function(e,n){this.onMatrixColumnAdded.fire(this,{question:e,column:n})},t.prototype.multipleTextItemAdded=function(e,n){this.onMultipleTextItemAdded.fire(this,{question:e,item:n})},t.prototype.getQuestionByValueNameFromArray=function(e,n,r){var o=this.getQuestionsByValueName(e);if(o){for(var s=0;s<o.length;s++){var a=o[s].getQuestionFromArray(n,r);if(a)return a}return null}},t.prototype.matrixRowRemoved=function(e,n,r){this.onMatrixRowRemoved.fire(this,{question:e,rowIndex:n,row:r})},t.prototype.matrixRowRemoving=function(e,n,r){var o={question:e,rowIndex:n,row:r,allow:!0};return this.onMatrixRowRemoving.fire(this,o),o.allow},t.prototype.matrixAllowRemoveRow=function(e,n,r){var o={question:e,rowIndex:n,row:r,allow:!0};return this.onMatrixRenderRemoveButton.fire(this,o),o.allow},t.prototype.matrixDetailPanelVisibleChanged=function(e,n,r,o){var s={question:e,rowIndex:n,row:r,visible:o,detailPanel:r.detailPanel};this.onMatrixDetailPanelVisibleChanged.fire(this,s)},t.prototype.matrixCellCreating=function(e,n){n.question=e,this.onMatrixCellCreating.fire(this,n)},t.prototype.matrixCellCreated=function(e,n){n.question=e,this.onMatrixCellCreated.fire(this,n)},t.prototype.matrixAfterCellRender=function(e,n){n.question=e,this.onAfterRenderMatrixCell.fire(this,n)},t.prototype.matrixCellValueChanged=function(e,n){n.question=e,this.onMatrixCellValueChanged.fire(this,n)},t.prototype.matrixCellValueChanging=function(e,n){n.question=e,this.onMatrixCellValueChanging.fire(this,n)},Object.defineProperty(t.prototype,"isValidateOnValueChanging",{get:function(){return this.checkErrorsMode==="onValueChanging"},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isValidateOnValueChanged",{get:function(){return this.checkErrorsMode==="onValueChanged"},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isValidateOnValueChange",{get:function(){return this.isValidateOnValueChanged||this.isValidateOnValueChanging},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isValidateOnComplete",{get:function(){return this.checkErrorsMode==="onComplete"||this.validationAllowSwitchPages&&!this.validationAllowComplete},enumerable:!1,configurable:!0}),t.prototype.matrixCellValidate=function(e,n){return n.question=e,this.onMatrixCellValidate.fire(this,n),n.error?new we(n.error,this):null},t.prototype.dynamicPanelAdded=function(e,n,r){if(!this.isLoadingFromJson&&this.hasQuestionVisibleIndeces(e,!0)&&this.updateVisibleIndexes(e.page),!this.onDynamicPanelAdded.isEmpty){var o=e.panels;n===void 0&&(n=o.length-1,r=o[n]),this.onDynamicPanelAdded.fire(this,{question:e,panel:r,panelIndex:n})}},t.prototype.dynamicPanelRemoved=function(e,n,r){for(var o=r?r.questions:[],s=0;s<o.length;s++)o[s].clearOnDeletingContainer();this.hasQuestionVisibleIndeces(e,!1)&&this.updateVisibleIndexes(e.page),this.onDynamicPanelRemoved.fire(this,{question:e,panelIndex:n,panel:r})},t.prototype.hasQuestionVisibleIndeces=function(e,n){n&&e.setVisibleIndex(this.getStartVisibleIndex());for(var r=e.getNestedQuestions(!0),o=0;o<r.length;o++)if(r[o].visibleIndex>-1)return!0;return!1},t.prototype.dynamicPanelRemoving=function(e,n,r){var o={question:e,panelIndex:n,panel:r,allow:!0};return this.onDynamicPanelRemoving.fire(this,o),o.allow},t.prototype.dynamicPanelItemValueChanged=function(e,n){n.question=e,n.panelIndex=n.itemIndex,n.panelData=n.itemValue,this.onDynamicPanelItemValueChanged.fire(this,n)},t.prototype.dynamicPanelGetTabTitle=function(e,n){n.question=e,this.onGetDynamicPanelTabTitle.fire(this,n)},t.prototype.dynamicPanelCurrentIndexChanged=function(e,n){n.question=e,this.onDynamicPanelCurrentIndexChanged.fire(this,n)},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,n,r){var o={question:r,panel:e,actions:n};return this.onGetPanelFooterActions.fire(this,o),o.actions},t.prototype.getUpdatedElementTitleActions=function(e,n){return e.isPage?this.getUpdatedPageTitleActions(e,n):e.isPanel?this.getUpdatedPanelTitleActions(e,n):this.getUpdatedQuestionTitleActions(e,n)},t.prototype.getTitleActionsResult=function(e,n){return e!=n.actions?n.actions:e!=n.titleActions?n.titleActions:e},t.prototype.getUpdatedQuestionTitleActions=function(e,n){var r={question:e,actions:n,titleActions:n};return this.onGetQuestionTitleActions.fire(this,r),this.getTitleActionsResult(n,r)},t.prototype.getUpdatedPanelTitleActions=function(e,n){var r={panel:e,actions:n,titleActions:n};return this.onGetPanelTitleActions.fire(this,r),this.getTitleActionsResult(n,r)},t.prototype.getUpdatedPageTitleActions=function(e,n){var r={page:e,actions:n,titleActions:n};return this.onGetPageTitleActions.fire(this,r),this.getTitleActionsResult(n,r)},t.prototype.getUpdatedMatrixRowActions=function(e,n,r){var o={question:e,actions:r,row:n};return this.onGetMatrixRowActions.fire(this,o),o.actions},t.prototype.scrollElementToTop=function(e,n,r,o,s,a,l,u){var d=this,v={element:e,question:n,page:r,elementId:o,cancel:!1,allow:!0};if(this.onScrollToTop.fire(this,v),!v.cancel&&v.allow){var V=this.getPageByElement(e);if(this.isLazyRendering&&V){var T=1,R=b.environment.rootElement,N=this.rootElement||l||R;this.skeletonHeight&&N&&typeof N.getBoundingClientRect=="function"&&(T=N.getBoundingClientRect().height/this.skeletonHeight-1),V.forceRenderElement(e,function(){d.suspendLazyRendering(),le.ScrollElementToTop(v.elementId,s,a,function(){d.releaseLazyRendering(),er(V.id),u&&u()})},T)}else if(e.isPage&&!this.isSinglePage&&!this.isDesignMode&&this.rootElement){var j=this.rootElement.querySelector(be(this.css.rootWrapper));le.ScrollElementToViewCore(j,!1,s,a,u)}else le.ScrollElementToTop(v.elementId,s,a,u)}},t.prototype.chooseFiles=function(e,n,r){this.onOpenFileChooser.isEmpty?ho(e,n):this.onOpenFileChooser.fire(this,{input:e,element:r&&r.element||this.survey,elementType:r&&r.elementType,item:r&&r.item,propertyName:r&&r.propertyName,callback:n,context:r})},t.prototype.uploadFiles=function(e,n,r,o){var s=this;this.onUploadFiles.isEmpty?o("error",this.getLocString("noUploadFilesHandler")):this.taskManager.runTask("file",function(a){s.onUploadFiles.fire(s,{question:e,name:n,files:r||[],callback:function(l,u){o(l,u),a()}})}),this.surveyPostId&&this.uploadFilesCore(n,r,o)},t.prototype.downloadFile=function(e,n,r,o){this.onDownloadFile.isEmpty&&o&&o("skipped",r.content||r),this.onDownloadFile.fire(this,{question:e,name:n,content:r.content||r,fileValue:r,callback:o})},t.prototype.clearFiles=function(e,n,r,o,s){this.onClearFiles.isEmpty&&s&&s("success",r),this.onClearFiles.fire(this,{question:e,name:n,value:r,fileName:o,callback:s})},t.prototype.updateChoicesFromServer=function(e,n,r){var o={question:e,choices:n,serverResult:r};return this.onLoadChoicesFromServer.fire(this,o),o.choices},t.prototype.loadedChoicesFromServer=function(e){this.locStrsChanged()},t.prototype.createSurveyService=function(){return new $o},t.prototype.uploadFilesCore=function(e,n,r){var o=this,s=[];n.forEach(function(a){r&&r("uploading",a),o.createSurveyService().sendFile(o.surveyPostId,a,function(l,u){l?(s.push({content:u,file:a}),s.length===n.length&&r&&r("success",s)):r&&r("error",{response:u,file:a})})})},t.prototype.getPage=function(e){return this.pages[e]},t.prototype.addPage=function(e,n){n===void 0&&(n=-1),e!=null&&(n<0||n>=this.pages.length?this.pages.push(e):this.pages.splice(n,0,e))},t.prototype.addNewPage=function(e,n){e===void 0&&(e=null),n===void 0&&(n=-1);var r=this.createNewPage(e);return this.addPage(r,n),r},t.prototype.removePage=function(e){var n=this.pages.indexOf(e);n<0||(this.pages.splice(n,1),this.currentPage==e&&(this.currentPage=this.pages.length>0?this.pages[0]:null))},t.prototype.getQuestionByName=function(e,n){if(n===void 0&&(n=!1),!e)return null;n&&(e=e.toLowerCase());var r=n?this.questionHashes.namesInsensitive:this.questionHashes.names,o=r[e];return o?o[0]:null},t.prototype.findQuestionByName=function(e){return this.getQuestionByName(e)},t.prototype.getEditingSurveyElement=function(){return this.editingObjValue},t.prototype.getQuestionByValueName=function(e,n){n===void 0&&(n=!1);var r=this.getQuestionsByValueName(e,n);return r?r[0]:null},t.prototype.getQuestionsByValueName=function(e,n){n===void 0&&(n=!1);var r=n?this.questionHashes.valueNamesInsensitive:this.questionHashes.valueNames,o=r[e];return o||null},t.prototype.getCalculatedValueByName=function(e){for(var n=0;n<this.calculatedValues.length;n++)if(e==this.calculatedValues[n].name)return this.calculatedValues[n];return null},t.prototype.getQuestionsByNames=function(e,n){n===void 0&&(n=!1);var r=[];if(!e)return r;for(var o=0;o<e.length;o++)if(e[o]){var s=this.getQuestionByName(e[o],n);s&&r.push(s)}return r},t.prototype.getPageByElement=function(e){for(var n=0;n<this.pages.length;n++){var r=this.pages[n];if(r.containsElement(e))return r}return null},t.prototype.getPageByQuestion=function(e){return this.getPageByElement(e)},t.prototype.getPageByName=function(e){for(var n=0;n<this.pages.length;n++)if(this.pages[n].name==e)return this.pages[n];return null},t.prototype.getPagesByNames=function(e){var n=[];if(!e)return n;for(var r=0;r<e.length;r++)if(e[r]){var o=this.getPageByName(e[r]);o&&n.push(o)}return n},t.prototype.getAllQuestions=function(e,n,r){e===void 0&&(e=!1),n===void 0&&(n=!1),r===void 0&&(r=!1),r&&(n=!1);for(var o=[],s=0;s<this.pages.length;s++)this.pages[s].addQuestionsToList(o,e,n);if(!r)return o;var a=[];return o.forEach(function(l){a.push(l),l.getNestedQuestions(e).forEach(function(u){return a.push(u)})}),a},t.prototype.getQuizQuestions=function(){for(var e=new Array,n=this.getPageStartIndex(),r=n;r<this.pages.length;r++)if(this.pages[r].isVisible)for(var o=this.pages[r].questions,s=0;s<o.length;s++){var a=o[s];a.quizQuestionCount>0&&e.push(a)}return e},t.prototype.getPanelByName=function(e,n){n===void 0&&(n=!1);var r=this.getAllPanels();n&&(e=e.toLowerCase());for(var o=0;o<r.length;o++){var s=r[o].name;if(n&&(s=s.toLowerCase()),s==e)return r[o]}return null},t.prototype.getAllPanels=function(e,n){e===void 0&&(e=!1),n===void 0&&(n=!1);for(var r=new Array,o=0;o<this.pages.length;o++)this.pages[o].addPanelsIntoList(r,e,n);return r},t.prototype.createNewPage=function(e){var n=x.createClass("page");return n.name=e,n},t.prototype.getValueChangeReason=function(){return this.isSettingValueOnExpression?"expression":this.isSettingValueFromTrigger?"trigger":void 0},t.prototype.questionOnValueChanging=function(e,n,r){if(this.editingObj){var o=x.findProperty(this.editingObj.getType(),e);o&&(n=o.settingValue(this.editingObj,n))}if(this.onValueChanging.isEmpty)return n;var s={name:e,question:this.getQuestionByValueName(r||e),value:this.getUnbindValue(n),oldValue:this.getValue(e),reason:this.getValueChangeReason()};return this.onValueChanging.fire(this,s),s.value},t.prototype.updateQuestionValue=function(e,n){if(!this.isLoadingFromJson){var r=this.getQuestionsByValueName(e);if(r)for(var o=0;o<r.length;o++){var s=r[o].value;(s===n&&Array.isArray(s)&&this.editingObj||!this.isTwoValueEquals(s,n))&&r[o].updateValueFromSurvey(n,!1)}}},t.prototype.checkQuestionErrorOnValueChanged=function(e){!this.isNavigationButtonPressed&&(this.isValidateOnValueChanged||e.getAllErrors().length>0)&&this.checkQuestionErrorOnValueChangedCore(e)},t.prototype.checkQuestionErrorOnValueChangedCore=function(e){var n=e.getAllErrors().length,r=!e.validate(!0,{isOnValueChanged:!this.isValidateOnValueChanging});return e.page&&this.isValidateOnValueChange&&(n>0||e.getAllErrors().length>0)&&this.fireValidatedErrorsOnPage(e.page),r},t.prototype.checkErrorsOnValueChanging=function(e,n){if(this.isLoadingFromJson)return!1;var r=this.getQuestionsByValueName(e);if(!r)return!1;for(var o=!1,s=0;s<r.length;s++){var a=r[s];this.isTwoValueEquals(a.valueForSurvey,n)||(a.value=n),this.checkQuestionErrorOnValueChangedCore(a)&&(o=!0),o=o||a.errors.length>0}return o},t.prototype.fireOnValueChanged=function(e,n,r){this.onValueChanged.fire(this,{name:e,question:r,value:n,reason:this.getValueChangeReason()})},t.prototype.notifyQuestionOnValueChanged=function(e,n,r){if(!this.isLoadingFromJson){var o=this.getQuestionsByValueName(e);if(o)for(var s=0;s<o.length;s++){var a=o[s];this.checkQuestionErrorOnValueChanged(a),a.onSurveyValueChanged(n)}this.fireOnValueChanged(e,n,r?this.getQuestionByName(r):void 0),!this.isDisposed&&(this.checkElementsBindings(e,n),this.notifyElementsOnAnyValueOrVariableChanged(e,r))}},t.prototype.checkElementsBindings=function(e,n){this.isRunningElementsBindings=!0;for(var r=0;r<this.pages.length;r++)this.pages[r].checkBindings(e,n);this.isRunningElementsBindings=!1,this.updateVisibleIndexAfterBindings&&(this.updateVisibleIndexes(),this.updateVisibleIndexAfterBindings=!1)},t.prototype.notifyElementsOnAnyValueOrVariableChanged=function(e,n){if(this.isEndLoadingFromJson!=="processing"){if(this.isRunningConditions){this.conditionNotifyElementsOnAnyValueOrVariableChanged=!0;return}for(var r=0;r<this.pages.length;r++)this.pages[r].onAnyValueChanged(e,n);this.isEndLoadingFromJson||this.locStrsChanged()}},t.prototype.updateAllQuestionsValue=function(e){for(var n=this.getAllQuestions(),r=0;r<n.length;r++){var o=n[r],s=o.getValueName();o.updateValueFromSurvey(this.getValue(s),e),o.requireUpdateCommentValue&&o.updateCommentFromSurvey(this.getComment(s))}},t.prototype.notifyAllQuestionsOnValueChanged=function(){for(var e=this.getAllQuestions(),n=0;n<e.length;n++)e[n].onSurveyValueChanged(this.getValue(e[n].getValueName()))},t.prototype.checkOnPageTriggers=function(e){for(var n=this.getCurrentPageQuestions(!0),r={},o=0;o<n.length;o++){var s=n[o],a=s.getValueName();r[a]=this.getValue(a)}this.addCalculatedValuesIntoFilteredValues(r),this.checkTriggers(r,!0,e)},t.prototype.getCurrentPageQuestions=function(e){e===void 0&&(e=!1);var n=[],r=this.currentPage;if(!r)return n;for(var o=0;o<r.questions.length;o++){var s=r.questions[o];!e&&!s.visible||!s.name||n.push(s)}return n},t.prototype.checkTriggers=function(e,n,r,o){if(r===void 0&&(r=!1),!(this.isCompleted||this.triggers.length==0||this.isDisplayMode)){if(this.isTriggerIsRunning){this.triggerValues=this.getFilteredValues();for(var s in e)this.triggerKeys[s]=e[s];return}var a=!1;if(!r&&o&&this.hasRequiredValidQuestionTrigger){var l=this.getQuestionByValueName(o);a=l&&!l.validate(!1)}this.isTriggerIsRunning=!0,this.triggerKeys=e,this.triggerValues=this.getFilteredValues();for(var u=this.getFilteredProperties(),d=this.canBeCompletedByTrigger,v=0;v<this.triggers.length;v++){var V=this.triggers[v];a&&V.requireValidQuestion||V.checkExpression(n,r,this.triggerKeys,this.triggerValues,u)}d!==this.canBeCompletedByTrigger&&this.updateButtonsVisibility(),this.isTriggerIsRunning=!1}},t.prototype.checkTriggersAndRunConditions=function(e,n,r){var o={};o[e]={newValue:n,oldValue:r},this.runConditionOnValueChanged(e,n),this.checkTriggers(o,!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||this.isEndLoadingFromJson==="processing"||this.isRunningConditions)){this.conditionValues=this.getFilteredValues();var e=this.getFilteredProperties(),n=this.pages.indexOf(this.currentPage);this.runConditionsCore(e),this.checkIfNewPagesBecomeVisible(n),this.conditionValues=null,this.isValueChangedOnRunningCondition&&this.conditionRunnerCounter<b.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,n){this.isRunningConditions?(this.conditionValues[e]=n,this.questionTriggersKeys&&(this.questionTriggersKeys[e]=n),this.isValueChangedOnRunningCondition=!0):(this.questionTriggersKeys={},this.questionTriggersKeys[e]=n,this.runConditions(),this.runQuestionsTriggers(e,n),this.questionTriggersKeys=void 0)},t.prototype.runConditionsCore=function(e){for(var n=this.pages,r=0;r<this.calculatedValues.length;r++)this.calculatedValues[r].resetCalculation();for(var r=0;r<this.calculatedValues.length;r++)this.calculatedValues[r].doCalculation(this.calculatedValues,this.conditionValues,e);i.prototype.runConditionCore.call(this,this.conditionValues,e);for(var o=0;o<n.length;o++)n[o].runCondition(this.conditionValues,e)},t.prototype.runQuestionsTriggers=function(e,n){var r=this;if(!(this.isDisplayMode||this.isDesignMode)){var o=this.getAllQuestions();o.forEach(function(s){s.runTriggers(e,n,r.questionTriggersKeys)})}},t.prototype.checkIfNewPagesBecomeVisible=function(e){var n=this.pages.indexOf(this.currentPage);if(!(n<=e+1)){for(var r=e+1;r<n;r++)if(this.pages[r].isVisible){this.currentPage=this.pages[r];break}}},t.prototype.sendResult=function(e,n,r){var o=this;if(e===void 0&&(e=null),n===void 0&&(n=null),r===void 0&&(r=!1),!!this.isEditMode&&(r&&this.onPartialSend&&this.onPartialSend.fire(this,null),!e&&this.surveyPostId&&(e=this.surveyPostId),!!e&&(n&&(this.clientId=n),!(r&&!this.clientId)))){var s=this.createSurveyService();s.locale=this.getLocale();var a=this.surveyShowDataSaving||!r&&s.isSurveJSIOService;a&&this.setCompletedState("saving",""),s.sendResult(e,this.data,function(l,u,d){(a||s.isSurveJSIOService)&&(l?o.setCompletedState("success",""):o.setCompletedState("error",u));var v={success:l,response:u,request:d};o.onSendResult.fire(o,v)},this.clientId,r)}},t.prototype.getResult=function(e,n){var r=this;this.createSurveyService().getResult(e,n,function(o,s,a,l){r.onGetResult.fire(r,{success:o,data:s,dataList:a,response:l})})},t.prototype.loadSurveyFromService=function(e,n){e===void 0&&(e=null),n===void 0&&(n=null),e&&(this.surveyId=e),n&&(this.clientId=n);var r=this;this.isLoading=!0,this.onLoadingSurveyFromService(),n?this.createSurveyService().getSurveyJsonAndIsCompleted(this.surveyId,this.clientId,function(o,s,a,l){o&&(r.isCompletedBefore=a=="completed",r.loadSurveyFromServiceJson(s)),r.isLoading=!1}):this.createSurveyService().loadSurvey(this.surveyId,function(o,s,a){o&&r.loadSurveyFromServiceJson(s),r.isLoading=!1})},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),n=0;n<e.length;n++)e[n].setVisibleIndex(-1);this.updateVisibleIndexes()},t.prototype.updateVisibleIndexes=function(e){if(!(this.isLoadingFromJson||this.isEndLoadingFromJson)){if(this.isRunningConditions&&this.onQuestionVisibleChanged.isEmpty&&this.onPageVisibleChanged.isEmpty){this.conditionUpdateVisibleIndexes=!0;return}if(this.isRunningElementsBindings){this.updateVisibleIndexAfterBindings=!0;return}this.updatePageVisibleIndexes(),this.updatePageElementsVisibleIndexes(e),this.updateProgressText(!0)}},t.prototype.updatePageElementsVisibleIndexes=function(e){if(this.showQuestionNumbers=="onPage")for(var n=e?[e]:this.visiblePages,r=0;r<n.length;r++)n[r].setVisibleIndex(0);else for(var o=this.getStartVisibleIndex(),s=0;s<this.pages.length;s++)o+=this.pages[s].setVisibleIndex(o)},t.prototype.getStartVisibleIndex=function(){return this.showQuestionNumbers=="on"?0:-1},t.prototype.updatePageVisibleIndexes=function(){this.updateButtonsVisibility();for(var e=0,n=0;n<this.pages.length;n++){var r=this.pages[n],o=r.isVisible&&(n>0||!r.isStartPage);r.visibleIndex=o?e++:-1,r.num=o?r.visibleIndex+1:-1}},t.prototype.fromJSON=function(e,n){if(e){this.questionHashesClear(),this.jsonErrors=null,this.sjsVersion=void 0;var r=new fe;r.toObject(e,this,n),r.errors.length>0&&(this.jsonErrors=r.errors),this.onStateAndCurrentPageChanged(),this.updateState(),this.sjsVersion&&b.version&&P.compareVerions(this.sjsVersion,b.version)>0&&Fe.warn("The version of the survey JSON schema (v"+this.sjsVersion+") is newer than your current Form Library version ("+b.version+"). Please update the Form Library to make sure that all survey features work as expected.")}},t.prototype.startLoadingFromJson=function(e){i.prototype.startLoadingFromJson.call(this,e),e&&e.locale&&(this.locale=e.locale)},t.prototype.setJsonObject=function(e){this.fromJSON(e)},t.prototype.endLoadingFromJson=function(){this.isEndLoadingFromJson="processing",this.onFirstPageIsStartedChanged(),i.prototype.endLoadingFromJson.call(this),this.hasCookie&&(this.isCompletedBefore=!0),this.doElementsOnLoad(),this.onQuestionsOnPageModeChanged("standard"),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 Ee;return e.setItems(this.createNavigationActions()),e},t.prototype.createNavigationActions=function(){var e=this,n="sv-nav-btn",r=new $({id:"sv-nav-start",visible:new te(function(){return e.isShowStartingPage}),visibleIndex:10,locTitle:this.locStartSurveyText,action:function(){return e.start()},component:n}),o=new $({id:"sv-nav-prev",visible:new te(function(){return e.isShowPrevButton}),visibleIndex:20,data:{mouseDown:function(){return e.navigationMouseDown()}},locTitle:this.locPagePrevText,action:function(){return e.performPrevious()},component:n}),s=new $({id:"sv-nav-next",visible:new te(function(){return e.isShowNextButton}),visibleIndex:30,data:{mouseDown:function(){return e.nextPageMouseDown()}},locTitle:this.locPageNextText,action:function(){return e.nextPageUIClick()},component:n}),a=new $({id:"sv-nav-preview",visible:new te(function(){return e.isPreviewButtonVisible}),visibleIndex:40,data:{mouseDown:function(){return e.navigationMouseDown()}},locTitle:this.locPreviewText,action:function(){return e.showPreview()},component:n}),l=new $({id:"sv-nav-complete",visible:new te(function(){return e.isCompleteButtonVisible}),visibleIndex:50,data:{mouseDown:function(){return e.navigationMouseDown()}},locTitle:this.locCompleteText,action:function(){return e.taskManager.waitAndExecute(function(){return e.tryComplete()})},component:n});return this.updateNavigationItemCssCallback=function(){r.innerCss=e.cssNavigationStart,o.innerCss=e.cssNavigationPrev,s.innerCss=e.cssNavigationNext,a.innerCss=e.cssNavigationPreview,l.innerCss=e.cssNavigationComplete},[r,o,s,a,l]},t.prototype.onBeforeRunConstructor=function(){},t.prototype.onBeforeCreating=function(){},t.prototype.onCreating=function(){},t.prototype.getProcessedTextValue=function(e){if(this.getProcessedTextValueCore(e),!this.onProcessTextValue.isEmpty){var n=this.isValueEmpty(e.value);this.onProcessTextValue.fire(this,e),e.isExists=e.isExists||n&&!this.isValueEmpty(e.value)}},t.prototype.getBuiltInVariableValue=function(e){if(e==="pageno"){var n=this.currentPage;return n!=null?this.visiblePages.indexOf(n)+1:0}if(e==="pagecount")return this.visiblePageCount;if(e==="correctedanswers"||e==="correctanswers"||e==="correctedanswercount")return this.getCorrectedAnswerCount();if(e==="incorrectedanswers"||e==="incorrectanswers"||e==="incorrectedanswercount")return this.getInCorrectedAnswerCount();if(e==="questioncount")return this.getQuizQuestionCount()},t.prototype.getProcessedTextValueCore=function(e){var n=e.name.toLocaleLowerCase();if(["no","require","title"].indexOf(n)===-1){var r=this.getBuiltInVariableValue(n);if(r!==void 0){e.isExists=!0,e.value=r;return}if(n==="locale"){e.isExists=!0,e.value=this.locale?this.locale:ce.defaultLocale;return}var o=this.getVariable(n);if(o!==void 0){e.isExists=!0,e.value=o;return}var s=this.getFirstName(n);if(s){var a=s.useDisplayValuesInDynamicTexts;e.isExists=!0;var l=s.getValueName().toLowerCase();n=l+n.substring(l.length),n=n.toLocaleLowerCase();var u={};u[l]=e.returnDisplayValue&&a?s.getDisplayValue(!1,void 0):s.value,e.value=new me().getValue(n,u);return}this.getProcessedValuesWithoutQuestion(e)}},t.prototype.getProcessedValuesWithoutQuestion=function(e){var n=this.getValue(e.name);if(n!==void 0){e.isExists=!0,e.value=n;return}var r=new me,o=r.getFirstName(e.name);if(o!==e.name){var s={},a=this.getValue(o);P.isValueEmpty(a)&&(a=this.getVariable(o)),!P.isValueEmpty(a)&&(s[o]=a,e.value=r.getValue(e.name,s),e.isExists=r.hasValue(e.name,s))}},t.prototype.getFirstName=function(e){e=e.toLowerCase();var n;do n=this.getQuestionByValueName(e,!0),e=this.reduceFirstName(e);while(!n&&e);return n},t.prototype.reduceFirstName=function(e){var n=e.lastIndexOf("."),r=e.lastIndexOf("[");if(n<0&&r<0)return"";var o=Math.max(n,r);return e.substring(0,o)},t.prototype.clearUnusedValues=function(){this.isClearingUnsedValues=!0;for(var e=this.getAllQuestions(),n=0;n<e.length;n++)e[n].clearUnusedValues();this.clearInvisibleQuestionValues(),this.isClearingUnsedValues=!1},t.prototype.hasVisibleQuestionByValueName=function(e){var n=this.getQuestionsByValueName(e);if(!n)return!1;for(var r=0;r<n.length;r++){var o=n[r];if(o.isVisible&&o.isParentVisible&&!o.parentQuestion)return!0}return!1},t.prototype.questionsByValueName=function(e){var n=this.getQuestionsByValueName(e);return n||[]},t.prototype.clearInvisibleQuestionValues=function(){for(var e=this.clearInvisibleValues==="none"?"none":"onComplete",n=this.getAllQuestions(),r=0;r<n.length;r++)n[r].clearValueIfInvisible(e)},t.prototype.getVariable=function(e){if(!e)return null;e=e.toLowerCase();var n=this.variablesHash[e];return this.isValueEmpty(n)&&(e.indexOf(".")>-1||e.indexOf("[")>-1)&&new me().hasValue(e,this.variablesHash)?new me().getValue(e,this.variablesHash):n},t.prototype.setVariable=function(e,n){if(e){var r=this.getVariable(e);this.valuesHash&&delete this.valuesHash[e],e=e.toLowerCase(),this.variablesHash[e]=n,this.notifyElementsOnAnyValueOrVariableChanged(e),P.isTwoValueEquals(r,n)||(this.checkTriggersAndRunConditions(e,n,r),this.onVariableChanged.fire(this,{name:e,value:n}))}},t.prototype.getVariableNames=function(){var e=[];for(var n in this.variablesHash)e.push(n);return e},t.prototype.getUnbindValue=function(e){return this.editingObj?e:P.getUnbindValue(e)},t.prototype.getValue=function(e){if(!e||e.length==0)return null;var n=this.getDataValueCore(this.valuesHash,e);return this.getUnbindValue(n)},t.prototype.setValue=function(e,n,r,o,s){r===void 0&&(r=!1),o===void 0&&(o=!0);var a=n;if(o&&(a=this.questionOnValueChanging(e,n)),!(this.isValidateOnValueChanging&&this.checkErrorsOnValueChanging(e,a))&&!(!this.editingObj&&this.isValueEqual(e,a)&&this.isTwoValueEquals(a,n))){var l=this.getValue(e);this.isValueEmpyOnSetValue(e,a)?this.deleteDataValueCore(this.valuesHash,e):(a=this.getUnbindValue(a),this.setDataValueCore(this.valuesHash,e,a)),this.updateOnSetValue(e,a,l,r,o,s)}},t.prototype.isValueEmpyOnSetValue=function(e,n){return this.isValueEmpty(n,!1)?!this.editingObj||n===null||n===void 0?!0:this.editingObj.getDefaultPropertyValue(e)===n:!1},t.prototype.updateOnSetValue=function(e,n,r,o,s,a){o===void 0&&(o=!1),s===void 0&&(s=!0),this.updateQuestionValue(e,n),!(o===!0||this.isDisposed||this.isRunningElementsBindings)&&(a=a||e,this.checkTriggersAndRunConditions(e,n,r),s&&this.notifyQuestionOnValueChanged(e,n,a),o!=="text"&&this.tryGoNextPageAutomatic(e))},t.prototype.isValueEqual=function(e,n){(n===""||n===void 0)&&(n=null);var r=this.getValue(e);return(r===""||r===void 0)&&(r=null),n===null||r===null?n===r:this.isTwoValueEquals(n,r)},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 n={page:e};this.onPageAdded.fire(this,n)}},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,n){for(var r={},o=0;o<e.length;o++)r[e[o].name]=!0;for(var s=1;r[n+s];)s++;return n+s},t.prototype.tryGoNextPageAutomatic=function(e){var n=this;if(!(this.isEndLoadingFromJson||!this.goNextPageAutomatic||!this.currentPage)){var r=this.getQuestionByValueName(e);if(!(!r||r&&(!r.visible||!r.supportGoNextPageAutomatic()))&&!(!r.validate(!1)&&!r.supportGoNextPageError())){if(this.currentSingleQuestion){var o=this.currentSingleQuestion,s=function(){o===n.currentSingleQuestion&&(n.isLastElement?n.allowCompleteSurveyAutomatic&&n.tryCompleteOrShowPreview():n.performNext())};He.safeTimeOut(s,b.autoAdvanceDelay)}var a=this.getCurrentPageQuestions();if(!(a.indexOf(r)<0)){for(var l=0;l<a.length;l++)if(a[l].hasInput&&a[l].isEmpty())return;if(!(this.isLastPage&&(this.goNextPageAutomatic!==!0||!this.allowCompleteSurveyAutomatic))&&!this.checkIsCurrentPageHasErrors(!1)){var u=this.currentPage,d=function(){u===n.currentPage&&(n.isLastPage?n.tryCompleteOrShowPreview():n.nextPage())};He.safeTimeOut(d,b.autoAdvanceDelay)}}}}},t.prototype.tryCompleteOrShowPreview=function(){this.isShowPreviewBeforeComplete?this.showPreview():this.tryComplete()},t.prototype.getComment=function(e){var n=this.getValue(e+this.commentSuffix);return n||""},t.prototype.setComment=function(e,n,r){if(r===void 0&&(r=!1),n||(n=""),!this.isTwoValueEquals(n,this.getComment(e))){var o=e+this.commentSuffix;n=this.questionOnValueChanging(o,n,e),this.isValueEmpty(n)?this.deleteDataValueCore(this.valuesHash,o):this.setDataValueCore(this.valuesHash,o,n);var s=this.getQuestionsByValueName(e);if(s)for(var a=0;a<s.length;a++)s[a].updateCommentFromSurvey(n),this.checkQuestionErrorOnValueChanged(s[a]);r||this.checkTriggersAndRunConditions(e,this.getValue(e),void 0),r!=="text"&&this.tryGoNextPageAutomatic(e);var l=this.getQuestionByValueName(e);l&&(this.fireOnValueChanged(o,n,l),l.comment=n,l.comment!=n&&(l.comment=n))}},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":e!=="default"?e:this.clearInvisibleValues},t.prototype.questionVisibilityChanged=function(e,n,r){r&&this.updateVisibleIndexes(e.page),this.onQuestionVisibleChanged.fire(this,{question:e,name:e.name,visible:n})},t.prototype.pageVisibilityChanged=function(e,n){this.isLoadingFromJson||((n&&!this.currentPage||e===this.currentPage)&&this.updateCurrentPage(),this.updateVisibleIndexes(),this.onPageVisibleChanged.fire(this,{page:e,visible:n}))},t.prototype.panelVisibilityChanged=function(e,n){this.updateVisibleIndexes(e.page),this.onPanelVisibleChanged.fire(this,{panel:e,visible:n})},t.prototype.questionCreated=function(e){this.onQuestionCreated.fire(this,{question:e})},t.prototype.questionAdded=function(e,n,r,o){e.name||(e.name=this.generateNewName(this.getAllQuestions(!1,!0),"question")),e.page&&this.questionHashesAdded(e),this.isLoadingFromJson||(this.currentPage||this.updateCurrentPage(),this.updateVisibleIndexes(e.page),this.setCalculatedWidthModeUpdater()),this.canFireAddElement()&&this.onQuestionAdded.fire(this,{question:e,name:e.name,index:n,parent:r,page:o,parentPanel:r,rootPanel:o})},t.prototype.canFireAddElement=function(){return!this.isMovingQuestion||this.isDesignMode&&!b.supportCreatorV2},t.prototype.questionRemoved=function(e){this.questionHashesRemoved(e,e.name,e.getValueName()),this.updateVisibleIndexes(e.page),this.onQuestionRemoved.fire(this,{question:e,name:e.name}),this.updateLazyRenderingRowsOnRemovingElements()},t.prototype.questionRenamed=function(e,n,r){this.questionHashesRemoved(e,n,r),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 n=e.questions,r=0;r<n.length;r++)this.questionHashesAdded(n[r])},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,n,r){n&&(this.questionHashRemovedCore(this.questionHashes.names,e,n),this.questionHashRemovedCore(this.questionHashes.namesInsensitive,e,n.toLowerCase())),r&&(this.questionHashRemovedCore(this.questionHashes.valueNames,e,r),this.questionHashRemovedCore(this.questionHashes.valueNamesInsensitive,e,r.toLowerCase()))},t.prototype.questionHashAddedCore=function(e,n,r){var o=e[r];if(o){var o=e[r];o.indexOf(n)<0&&o.push(n)}else e[r]=[n]},t.prototype.questionHashRemovedCore=function(e,n,r){var o=e[r];if(o){var s=o.indexOf(n);s>-1&&o.splice(s,1),o.length==0&&delete e[r]}},t.prototype.panelAdded=function(e,n,r,o){e.name||(e.name=this.generateNewName(this.getAllPanels(!1,!0),"panel")),this.questionHashesPanelAdded(e),this.updateVisibleIndexes(e.page),this.canFireAddElement()&&this.onPanelAdded.fire(this,{panel:e,name:e.name,index:n,parent:r,page:o,parentPanel:r,rootPanel:o})},t.prototype.panelRemoved=function(e){this.updateVisibleIndexes(e.page),this.onPanelRemoved.fire(this,{panel:e,name:e.name}),this.updateLazyRenderingRowsOnRemovingElements()},t.prototype.validateQuestion=function(e){if(this.onValidateQuestion.isEmpty)return null;var n={name:e.name,question:e,value:e.value,error:null};return this.onValidateQuestion.fire(this,n),n.error?new we(n.error,this):null},t.prototype.validatePanel=function(e){if(this.onValidatePanel.isEmpty)return null;var n={name:e.name,panel:e,error:null};return this.onValidatePanel.fire(this,n),n.error?new we(n.error,this):null},t.prototype.processHtml=function(e,n){n||(n="");var r={html:e,reason:n};return this.onProcessHtml.fire(this,r),this.processText(r.html,!0)},t.prototype.processText=function(e,n){return this.processTextEx({text:e,returnDisplayValue:n,doEncoding:!1}).text},t.prototype.processTextEx=function(e){var n=e.doEncoding===void 0?b.web.encodeUrlParams:e.doEncoding,r=e.text;(e.runAtDesign||!this.isDesignMode)&&(r=this.textPreProcessor.process(r,e.returnDisplayValue===!0,n));var o={text:r,hasAllValuesOnLastRun:!0};return o.hasAllValuesOnLastRun=this.textPreProcessor.hasAllValuesOnLastRun,o},Object.defineProperty(t.prototype,"textPreProcessor",{get:function(){var e=this;return this.textPreProcessorValue||(this.textPreProcessorValue=new yr,this.textPreProcessorValue.onProcess=function(n){e.getProcessedTextValue(n)}),this.textPreProcessorValue},enumerable:!1,configurable:!0}),t.prototype.getSurveyMarkdownHtml=function(e,n,r){var o={element:e,text:n,name:r,html:null};return this.onTextMarkdown.fire(this,o),o.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(),n=0,r=0;r<e.length;r++)n+=e[r].quizQuestionCount;return n},t.prototype.getInCorrectedAnswerCount=function(){return this.getIncorrectAnswerCount()},t.prototype.getInCorrectAnswerCount=function(){return this.getIncorrectAnswerCount()},t.prototype.getIncorrectAnswerCount=function(){return this.getCorrectedAnswerCountCore(!1)},t.prototype.onCorrectQuestionAnswer=function(e,n){this.onIsAnswerCorrect.isEmpty||(n.question=e,this.onIsAnswerCorrect.fire(this,n))},t.prototype.getCorrectedAnswerCountCore=function(e){for(var n=this.getQuizQuestions(),r=0,o=0;o<n.length;o++){var s=n[o],a=s.correctAnswerCount;e?r+=a:r+=s.quizQuestionCount-a}return r},t.prototype.getCorrectedAnswers=function(){return this.getCorrectedAnswerCount()},t.prototype.getInCorrectedAnswers=function(){return this.getInCorrectedAnswerCount()},Object.defineProperty(t.prototype,"showTimerPanel",{get:function(){return this.showTimer?this.timerLocation:"none"},set:function(e){this.showTimer=e!=="none",this.showTimer&&(this.timerLocation=e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"showTimer",{get:function(){return this.getPropertyValue("showTimer")},set:function(e){this.setPropertyValue("showTimer",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"timerLocation",{get:function(){return this.getPropertyValue("timerLocation")},set:function(e){this.setPropertyValue("timerLocation",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isTimerPanelShowingOnTop",{get:function(){return this.showTimer&&this.timerLocation==="top"},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isTimerPanelShowingOnBottom",{get:function(){return this.showTimer&&this.timerLocation==="bottom"},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"timerInfoMode",{get:function(){return this.getTimerInfoVal(this.getPropertyValue("timerInfoMode"))},set:function(e){this.setPropertyValue("timerInfoMode",e)},enumerable:!1,configurable:!0}),t.prototype.getTimerInfoVal=function(e){return e==="all"?"combined":e},Object.defineProperty(t.prototype,"showTimerPanelMode",{get:function(){var e=this.timerInfoMode;return e==="combined"?"all":e},set:function(e){this.timerInfoMode=this.getTimerInfoVal(e)},enumerable:!1,configurable:!0}),t.prototype.updateGridColumns=function(){this.pages.forEach(function(e){return e.updateGridColumns()})},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.isLoadingFromJson||(this.calculatedWidthModeUpdater&&this.calculatedWidthModeUpdater.dispose(),this.calculatedWidthModeUpdater=new te(function(){return e.calculateWidthMode()}),this.calculatedWidthMode=this.calculatedWidthModeUpdater)},t.prototype.calculateWidthMode=function(){if(this.widthMode=="auto"){var e=!1;return this.pages.forEach(function(n){n.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("calculatedWidthMode")=="static",n=this.getPropertyValue("width");if(this.isScaled&&this.responsiveStartWidth>1){var r=this.responsiveStartWidth;try{n=n||this.staticStartWidth,r=isNaN(n)?parseFloat(n.toString().replace("px","")):n}catch{}return(e?r:this.responsiveStartWidth)*this.widthScale/100+"px"}return n&&!isNaN(n)&&(n=n+"px"),e&&n||void 0},enumerable:!1,configurable:!0}),t.prototype.setStaticStartWidth=function(e){this.staticStartWidth=e},t.prototype.setResponsiveStartWidth=function(e){this.responsiveStartWidth=e},Object.defineProperty(t.prototype,"isScaled",{get:function(){return Math.abs(this.widthScale-100)>.001},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,n;if(this.currentPage){var r=this.getTimerInfo(),o=r.spent,s=r.limit,a=r.minorSpent,l=r.minorLimit;s>0?e=this.getDisplayClockTime(s-o):e=this.getDisplayClockTime(o),a!==void 0&&(l>0?n=this.getDisplayClockTime(l-a):n=this.getDisplayClockTime(a))}return{majorText:e,minorText:n}},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"timerInfoText",{get:function(){var e={text:this.getTimerInfoText()};this.onTimerPanelInfoText.fire(this,e);var n=new Se(this,!0);return n.text=e.text,n.textOrHtml},enumerable:!1,configurable:!0}),t.prototype.getTimerInfo=function(){var e=this.currentPage;if(!e)return{spent:0,limit:0};var n=e.timeSpent,r=this.timeSpent,o=e.getMaxTimeToFinish(),s=this.timeLimit;return this.timerInfoMode=="page"?{spent:n,limit:o}:this.timerInfoMode=="survey"?{spent:r,limit:s}:o>0&&s>0?{spent:n,limit:o,minorSpent:r,minorLimit:s}:o>0?{spent:n,limit:o,minorSpent:r}:s>0?{spent:r,limit:s,minorSpent:n}:{spent:n,minorSpent:r}},t.prototype.getTimerInfoText=function(){var e=this.currentPage;if(!e)return"";var n=this.getDisplayTime(e.timeSpent),r=this.getDisplayTime(this.timeSpent),o=e.getMaxTimeToFinish(),s=this.getDisplayTime(o),a=this.getDisplayTime(this.timeLimit);if(this.timerInfoMode=="page")return this.getTimerInfoPageText(e,n,s);if(this.timerInfoMode=="survey")return this.getTimerInfoSurveyText(r,a);if(this.timerInfoMode=="combined"){if(o<=0&&this.timeLimit<=0)return this.getLocalizationFormatString("timerSpentAll",n,r);if(o>0&&this.timeLimit>0)return this.getLocalizationFormatString("timerLimitAll",n,s,r,a);var l=this.getTimerInfoPageText(e,n,s),u=this.getTimerInfoSurveyText(r,a);return l+" "+u}return""},t.prototype.getTimerInfoPageText=function(e,n,r){return e&&e.getMaxTimeToFinish()>0?this.getLocalizationFormatString("timerLimitPage",n,r):this.getLocalizationFormatString("timerSpentPage",n,r)},t.prototype.getTimerInfoSurveyText=function(e,n){var r=this.timeLimit>0?"timerLimitSurvey":"timerSpentSurvey";return this.getLocalizationFormatString(r,e,n)},t.prototype.getDisplayClockTime=function(e){e<0&&(e=0);var n=Math.floor(e/60),r=e%60,o=r.toString();return r<10&&(o="0"+o),n+":"+o},t.prototype.getDisplayTime=function(e){var n=Math.floor(e/60),r=e%60,o="";return n>0&&(o+=n+" "+this.getLocalizationString("timerMin")),o&&r==0?o:(o&&(o+=" "),o+r+" "+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(){this.showTimer&&this.state==="running"&&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,"timeLimit",{get:function(){return this.getPropertyValue("timeLimit",0)},set:function(e){this.setPropertyValue("timeLimit",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"maxTimeToFinish",{get:function(){return this.timeLimit},set:function(e){this.timeLimit=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"timeLimitPerPage",{get:function(){return this.getPropertyValue("timeLimitPerPage",0)},set:function(e){this.setPropertyValue("timeLimitPerPage",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"maxTimeToFinishPage",{get:function(){return this.timeLimitPerPage},set:function(e){this.timeLimitPerPage=e},enumerable:!1,configurable:!0}),t.prototype.doTimer=function(e){if(this.onTimerTick.fire(this,{}),this.timeLimit>0&&this.timeLimit<=this.timeSpent&&(this.timeSpent=this.timeLimit,this.tryComplete()),e){var n=e.getMaxTimeToFinish();n>0&&n==e.timeSpent&&(this.isLastPage?this.tryComplete():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,n){var r=[];return Array.prototype.push.apply(r,this.getPagesByNames(e)),Array.prototype.push.apply(r,this.getQuestionsByNames(n)),r},t.prototype.setTriggerValue=function(e,n,r){if(e)if(r)this.setVariable(e,n);else{var o=this.getQuestionByName(e);if(this.startSetValueFromTrigger(),o)o.value=n;else{var s=new me,a=s.getFirstName(e);if(a==e)this.setValue(e,n);else{if(!this.getQuestionByName(a))return;var l=this.getUnbindValue(this.getFilteredValues());s.setValue(l,e,n),this.setValue(a,l[a])}}this.finishSetValueFromTrigger()}},t.prototype.copyTriggerValue=function(e,n,r){if(!(!e||!n)){var o;if(r)o=this.processText("{"+n+"}",!0);else{var s=new me;o=s.getValue(n,this.getFilteredValues())}this.setTriggerValue(e,o,!1)}},t.prototype.triggerExecuted=function(e){this.onTriggerExecuted.fire(this,{trigger:e})},Object.defineProperty(t.prototype,"isSettingValueFromTrigger",{get:function(){return this.setValueFromTriggerCounter>0},enumerable:!1,configurable:!0}),t.prototype.startSetValueFromTrigger=function(){this.setValueFromTriggerCounter++},t.prototype.finishSetValueFromTrigger=function(){this.setValueFromTriggerCounter--},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,n){var r;if(n===void 0&&(n=!1),!e||!e.isVisible||!e.page)return!1;var o=(r=this.focusingQuestionInfo)===null||r===void 0?void 0:r.question;if(o===e)return!1;this.focusingQuestionInfo={question:e,onError:n},this.skippedPages.push({from:this.currentPage,to:e.page});var s=this.activePage!==e.page&&!e.page.isStartPage;return s&&(this.currentPage=e.page,this.isSingleVisibleQuestion&&!this.isDesignMode&&(this.currentSingleQuestion=e)),s||this.focusQuestionInfo(),!0},t.prototype.focusQuestionInfo=function(){var e,n=(e=this.focusingQuestionInfo)===null||e===void 0?void 0:e.question;n&&!n.isDisposed&&n.focus(this.focusingQuestionInfo.onError),this.focusingQuestionInfo=void 0},t.prototype.questionEditFinishCallback=function(e,n){var r=this.enterKeyAction||b.enterKeyAction;if(r=="loseFocus"&&n.target.blur(),r=="moveToNextEditor"){var o=this.currentPage.questions,s=o.indexOf(e);s>-1&&s<o.length-1?o[s+1].focus():n.target.blur()}},t.prototype.elementWrapperComponentNameCore=function(e,n,r,o,s){if(this.onElementWrapperComponentName.isEmpty)return e;var a={componentName:e,element:n,wrapperName:r,reason:o,item:s};return this.onElementWrapperComponentName.fire(this,a),a.componentName},t.prototype.elementWrapperDataCore=function(e,n,r,o,s){if(this.onElementWrapperComponentData.isEmpty)return e;var a={data:e,element:n,wrapperName:r,reason:o,item:s};return this.onElementWrapperComponentData.fire(this,a),a.data},t.prototype.getElementWrapperComponentName=function(e,n){var r=n==="logo-image"?"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,n){return this.elementWrapperDataCore(e,e,"component",n)},t.prototype.getRowWrapperComponentData=function(e){return this.elementWrapperDataCore(e,e,"row")},t.prototype.getItemValueWrapperComponentData=function(e,n){return this.elementWrapperDataCore(e,n,"itemvalue",void 0,e)},t.prototype.getMatrixCellTemplateData=function(e){var n=e.question;return this.elementWrapperDataCore(n,n,"cell")},t.prototype.searchText=function(e){e&&(e=e.toLowerCase());for(var n=[],r=0;r<this.pages.length;r++)this.pages[r].searchText(e,n);return n},t.prototype.getSkeletonComponentName=function(e){return this.skeletonComponentName},t.prototype.addLayoutElement=function(e){var n=this.removeLayoutElement(e.id);return this.layoutElements.push(e),n},t.prototype.findLayoutElement=function(e){var n=this.layoutElements.filter(function(r){return r.id===e})[0];return n},t.prototype.removeLayoutElement=function(e){var n=this.findLayoutElement(e);if(n){var r=this.layoutElements.indexOf(n);this.layoutElements.splice(r,1)}return n},t.prototype.getContainerContent=function(e){for(var n=[],r=0,o=this.layoutElements;r<o.length;r++){var s=o[r];if(this.mode!=="display"&&We(s.id,"timerpanel"))e==="header"&&this.isTimerPanelShowingOnTop&&!this.isShowStartingPage&&n.push(s),e==="footer"&&this.isTimerPanelShowingOnBottom&&!this.isShowStartingPage&&n.push(s);else if(this.state==="running"&&We(s.id,this.progressBarComponentName)){if(this.questionsOnPageMode!="singlePage"||this.progressBarType=="questions"){var a=this.findLayoutElement("advanced-header"),l=a&&a.data,u=!l||l.hasBackground;We(this.showProgressBar,"aboveHeader")&&(u=!1),We(this.showProgressBar,"belowHeader")&&(u=!0),e==="header"&&!u&&(s.index=-150,this.isShowProgressBarOnTop&&!this.isShowStartingPage&&n.push(s)),e==="center"&&u&&(s.index&&delete s.index,this.isShowProgressBarOnTop&&!this.isShowStartingPage&&n.push(s)),e==="footer"&&this.isShowProgressBarOnBottom&&!this.isShowStartingPage&&n.push(s)}}else We(s.id,"buttons-navigation")?(e==="contentTop"&&["top","both"].indexOf(this.isNavigationButtonsShowing)!==-1&&n.push(s),e==="contentBottom"&&["bottom","both"].indexOf(this.isNavigationButtonsShowing)!==-1&&n.push(s)):this.state==="running"&&We(s.id,"toc-navigation")&&this.showTOC?(e==="left"&&["left","both"].indexOf(this.tocLocation)!==-1&&n.push(s),e==="right"&&["right","both"].indexOf(this.tocLocation)!==-1&&n.push(s)):We(s.id,"advanced-header")?(this.state==="running"||this.state==="starting"||this.showHeaderOnCompletePage===!0&&this.state==="completed")&&s.container===e&&n.push(s):(Array.isArray(s.container)&&s.container.indexOf(e)!==-1||s.container===e)&&n.push(s)}return n.sort(function(d,v){return(d.index||0)-(v.index||0)}),n},t.prototype.processPopupVisiblityChanged=function(e,n,r){this.onPopupVisibleChanged.fire(this,{question:e,popup:n,visible:r})},t.prototype.processOpenDropdownMenu=function(e,n){var r=Object.assign({question:e},n);this.onOpenDropdownMenu.fire(this,r),n.menuType=r.menuType},t.prototype.getCssTitleExpandableSvg=function(){return null},t.prototype.applyTheme=function(e){var n=this;if(e){if(Object.keys(e).forEach(function(o){o!=="header"&&(o==="isPanelless"?n.isCompact=e[o]:n[o]=e[o])}),this.headerView==="advanced"||"header"in e){this.removeLayoutElement("advanced-header");var r=new vn;r.fromTheme(e),this.insertAdvancedHeader(r)}this.themeChanged(e)}},t.prototype.themeChanged=function(e){this.getAllQuestions().forEach(function(n){return n.themeChanged(e)})},t.prototype.dispose=function(){if(this.unConnectEditingObj(),this.removeScrollEventListener(),this.destroyResizeObserver(),this.rootElement=void 0,this.layoutElements){for(var e=0;e<this.layoutElements.length;e++)this.layoutElements[e].data&&this.layoutElements[e].data!==this&&this.layoutElements[e].data.dispose&&this.layoutElements[e].data.dispose();this.layoutElements.splice(0,this.layoutElements.length)}if(i.prototype.dispose.call(this),this.editingObj=null,!!this.pages){this.currentPage=null;for(var e=0;e<this.pages.length;e++)this.pages[e].setSurveyImpl(void 0),this.pages[e].dispose();this.pages.splice(0,this.pages.length),this.disposeCallback&&this.disposeCallback()}},t.prototype._isElementShouldBeSticky=function(e){if(!e)return!1;var n=this.rootElement.querySelector(e);return n?this.rootElement.scrollTop>0&&n.getBoundingClientRect().y<=this.rootElement.getBoundingClientRect().y:!1},t.prototype.onScroll=function(){this.rootElement&&(this._isElementShouldBeSticky(".sv-components-container-center")?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=this,n;this.scrollHandler=function(){e.onScroll()},this.rootElement.addEventListener("scroll",this.scrollHandler),this.rootElement.getElementsByTagName("form")[0]&&this.rootElement.getElementsByTagName("form")[0].addEventListener("scroll",this.scrollHandler),this.css.rootWrapper&&((n=this.rootElement.getElementsByClassName(this.css.rootWrapper)[0])===null||n===void 0||n.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&&((e=this.rootElement.getElementsByClassName(this.css.rootWrapper)[0])===null||e===void 0||e.removeEventListener("scroll",this.scrollHandler)))},t.TemplateRendererComponentName="sv-template-renderer",t.platform="unknown",K([h()],t.prototype,"completedCss",void 0),K([h()],t.prototype,"completedBeforeCss",void 0),K([h()],t.prototype,"loadingBodyCss",void 0),K([h()],t.prototype,"containerCss",void 0),K([h({onSet:function(e,n){n.updateCss()}})],t.prototype,"fitToContainer",void 0),K([h({onSet:function(e,n){if(e==="advanced"){var r=n.findLayoutElement("advanced-header");if(!r){var o=new vn;o.logoPositionX=n.logoPosition==="right"?"right":"left",o.logoPositionY="middle",o.titlePositionX=n.logoPosition==="right"?"left":"right",o.titlePositionY="middle",o.descriptionPositionX=n.logoPosition==="right"?"left":"right",o.descriptionPositionY="middle",n.insertAdvancedHeader(o)}}else n.removeLayoutElement("advanced-header")}})],t.prototype,"headerView",void 0),K([h()],t.prototype,"showBrandInfo",void 0),K([h()],t.prototype,"enterKeyAction",void 0),K([h()],t.prototype,"lazyRenderingFirstBatchSizeValue",void 0),K([h({defaultValue:!0})],t.prototype,"titleIsEmpty",void 0),K([h({defaultValue:{}})],t.prototype,"cssVariables",void 0),K([h()],t.prototype,"_isMobile",void 0),K([h()],t.prototype,"_isCompact",void 0),K([h({onSet:function(e,n){n.updateCss()}})],t.prototype,"backgroundImage",void 0),K([h()],t.prototype,"renderBackgroundImage",void 0),K([h()],t.prototype,"backgroundImageFit",void 0),K([h({onSet:function(e,n){n.updateCss()}})],t.prototype,"backgroundImageAttachment",void 0),K([h()],t.prototype,"backgroundImageStyle",void 0),K([h()],t.prototype,"wrapperFormCss",void 0),K([h({getDefaultValue:function(e){return e.progressBarType==="buttons"}})],t.prototype,"progressBarShowPageTitles",void 0),K([h()],t.prototype,"progressBarShowPageNumbers",void 0),K([h()],t.prototype,"progressBarInheritWidthFrom",void 0),K([h({defaultValue:!0})],t.prototype,"validationEnabled",void 0),K([h()],t.prototype,"rootCss",void 0),K([h({onSet:function(e,n){n.updateGridColumns()}})],t.prototype,"gridLayoutEnabled",void 0),K([h()],t.prototype,"calculatedWidthMode",void 0),K([h({defaultValue:100,onSet:function(e,n,r){n.pages.forEach(function(o){return o.updateRootStyle()})}})],t.prototype,"widthScale",void 0),K([h()],t.prototype,"staticStartWidth",void 0),K([h()],t.prototype,"responsiveStartWidth",void 0),K([ae()],t.prototype,"layoutElements",void 0),t}(nn);function We(i,t){return!i||!t?!1:i.toUpperCase()===t.toUpperCase()}x.addClass("survey",[{name:"locale",choices:function(){return ce.getLocales(!0)},onGetValue:function(i){return i.locale==ce.defaultLocale?null:i.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(i){return i.originalPages||i.pages}},{name:"elements",alternativeName:"questions",baseClassName:"question",visible:!1,isLightSerializable:!1,onGetValue:function(i){return null},onSetValue:function(i,t,e){i.pages.splice(0,i.pages.length);var n=i.addNewPage("");e.toObject({questions:t},n,e==null?void 0:e.options)}},{name:"triggers:triggers",baseClassName:"surveytrigger",classNamePart:"trigger"},{name:"calculatedValues:calculatedvalues",className:"calculatedvalue",isArray:!0},{name:"sjsVersion",visible:!1},{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(i){return i.showNavigationButtons!=="none"}},{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(i){return i.showProgressBar!=="off"}},{name:"progressBarShowPageTitles:switch",category:"navigation",visibleIf:function(i){return i.showProgressBar!=="off"&&i.progressBarType==="pages"}},{name:"progressBarShowPageNumbers:switch",default:!1,category:"navigation",visibleIf:function(i){return i.showProgressBar!=="off"&&i.progressBarType==="pages"}},{name:"progressBarInheritWidthFrom",default:"container",choices:["container","survey"],category:"navigation",visibleIf:function(i){return i.showProgressBar!=="off"&&i.progressBarType==="pages"}},{name:"showTOC:switch",default:!1},{name:"tocLocation",default:"left",choices:["left","right"],dependsOn:["showTOC"],visibleIf:function(i){return!!i&&i.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(i,t){t!=="autogonext"&&(t=P.isTwoValueEquals(t,!0)),i.setPropertyValue("goNextPageAutomatic",t)}},{name:"allowCompleteSurveyAutomatic:boolean",default:!0,visibleIf:function(i){return i.goNextPageAutomatic===!0}},{name:"clearInvisibleValues",default:"onComplete",choices:["none","onComplete","onHidden","onHiddenContainer"]},{name:"checkErrorsMode",default:"onNextPage",choices:["onNextPage","onValueChanged","onComplete"]},{name:"validateVisitedEmptyFields:boolean",dependsOn:"checkErrorsMode",visibleIf:function(i){return i.checkErrorsMode==="onValueChanged"}},{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(i){return i.firstPageIsStarted}},{name:"pagePrevText",serializationProperty:"locPagePrevText",visibleIf:function(i){return i.showNavigationButtons!=="none"&&i.showPrevButton}},{name:"pageNextText",serializationProperty:"locPageNextText",visibleIf:function(i){return i.showNavigationButtons!=="none"}},{name:"completeText",serializationProperty:"locCompleteText",visibleIf:function(i){return i.showNavigationButtons!=="none"}},{name:"previewText",serializationProperty:"locPreviewText",visibleIf:function(i){return i.showPreviewBeforeComplete!=="noPreview"}},{name:"editText",serializationProperty:"locEditText",visibleIf:function(i){return i.showPreviewBeforeComplete!=="noPreview"}},{name:"requiredText",default:"*"},{name:"questionStartIndex",dependsOn:["showQuestionNumbers"],visibleIf:function(i){return!i||i.showQuestionNumbers!=="off"}},{name:"questionTitlePattern",default:"numTitleRequire",dependsOn:["questionStartIndex","requiredText"],choices:function(i){return i?i.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:"showTimer:boolean"},{name:"timeLimit:number",alternativeName:"maxTimeToFinish",default:0,minValue:0,enableIf:function(i){return i.showTimer}},{name:"timeLimitPerPage:number",alternativeName:"maxTimeToFinishPage",default:0,minValue:0,enableIf:function(i){return i.showTimer}},{name:"timerLocation",default:"top",choices:["top","bottom"],enableIf:function(i){return i.showTimer}},{name:"timerInfoMode",alternativeName:"showTimerPanelMode",default:"combined",choices:["page","survey","combined"],enableIf:function(i){return i.showTimer}},{name:"showTimerPanel",visible:!1,isSerializable:!1},{name:"widthMode",default:"auto",choices:["auto","static","responsive"]},{name:"gridLayoutEnabled:boolean",default:!1},{name:"width",visibleIf:function(i){return i.widthMode==="static"}},{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}]);var ss=function(){var i=function(t,e){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(n[o]=r[o])},i(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");i(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),bn=function(i,t,e,n){var r=arguments.length,o=r<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,e):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(i,t,e,n);else for(var a=i.length-1;a>=0;a--)(s=i[a])&&(o=(r<3?s(o):r>3?s(t,e,o):s(t,e))||o);return r>3&&o&&Object.defineProperty(t,e,o),o},jr=function(i){ss(t,i);function t(e){var n=i.call(this,e)||this;n.otherItemValue=new k("other"),n.isSettingDefaultValue=!1,n.isSettingComment=!1,n.isRunningChoices=!1,n.isFirstLoadChoicesFromUrl=!0,n.isUpdatingChoicesDependedQuestions=!1,n._renderedChoices=[],n.renderedChoicesAnimation=new Qe(n.getRenderedChoicesAnimationOptions(),function(o){n._renderedChoices=o,n.renderedChoicesChangedCallback&&n.renderedChoicesChangedCallback()},function(){return n._renderedChoices}),n.headItemsCount=0,n.footItemsCount=0,n.prevIsOtherSelected=!1,n.noneItemValue=n.createDefaultItem(b.noneItemValue,"noneText","noneItemText"),n.refuseItemValue=n.createDefaultItem(b.refuseItemValue,"refuseText","refuseItemText"),n.dontKnowItemValue=n.createDefaultItem(b.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",function(){return n.updateRenderedChoices()},function(){return n.updateRenderedChoices()}),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(o){return n.createItemValue(o)},n.choicesByUrl.beforeSendRequestCallback=function(){n.onBeforeSendRequest()},n.choicesByUrl.getResultCallback=function(o){n.onLoadChoicesFromUrl(o)},n.choicesByUrl.updateResultCallback=function(o,s){return n.survey?n.survey.updateChoicesFromServer(n,o,s):o},n}return 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(){i.prototype.dispose.call(this);var e=this.getQuestionWithChoices();e&&e.removeDependedQuestion(this)},Object.defineProperty(t.prototype,"otherTextAreaModel",{get:function(){return this.otherTextAreaModelValue||(this.otherTextAreaModelValue=new ln(this.getOtherTextAreaOptions())),this.otherTextAreaModelValue},enumerable:!1,configurable:!0}),t.prototype.getOtherTextAreaOptions=function(){var e=this,n={question:this,id:function(){return e.otherId},propertyName:"otherValue",className:function(){return e.cssClasses.other},placeholder:function(){return e.otherPlaceholder},isDisabledAttr:function(){return e.isInputReadOnly||!1},rows:function(){return e.commentAreaRows},maxLength:function(){return e.getOthersMaxLength()},autoGrow:function(){return e.survey&&e.survey.autoGrowComment},ariaRequired:function(){return e.ariaRequired||e.a11y_input_ariaRequired},ariaLabel:function(){return e.ariaLabel||e.a11y_input_ariaLabel},getTextValue:function(){return e.otherValue},onTextAreaChange:function(r){e.onOtherValueChange(r)},onTextAreaInput:function(r){e.onOtherValueInput(r)}};return n},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,n){var r=x.createClass(this.getItemValueType(),{value:e});return r.locOwner=this,n&&(r.text=n),r},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,n){var r=e?"select":n?"array":void 0;this.setPropertyValue("carryForwardQuestionType",r)},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(){i.prototype.localeChanged.call(this),this.choicesOrder!=="none"&&(this.updateVisibleChoices(),this.onVisibleChoicesChanged())},t.prototype.locStrsChanged=function(){i.prototype.locStrsChanged.call(this),this.choicesFromUrl&&(k.locStrsChanged(this.choicesFromUrl),k.locStrsChanged(this.visibleChoices)),this.isUsingCarryForward&&k.locStrsChanged(this.visibleChoices)},t.prototype.updatePrevOtherErrorValue=function(e){var n=this.otherValue;e!==n&&(this.prevOtherErrorValue=n)},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,n,r){var o=new k(e),s=this.createLocalizableString(n,o,!0,r);return o.locOwner=this,o.setLocText(s),o},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(e,n){i.prototype.runCondition.call(this,e,n),this.runItemsEnableCondition(e,n),this.runItemsCondition(e,n),this.choices.forEach(function(r){r.runConditionCore(e,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 e=this.comment;i.prototype.setDefaultValue.call(this),this.isSettingDefaultValue=!1,this.comment&&this.getStoreOthersAsComment()&&e!==this.comment&&(this.setValueCore(this.setOtherValueIntoValue(this.value)),this.setCommentIntoData(this.comment))},t.prototype.getIsMultipleValue=function(){return!1},t.prototype.convertDefaultValue=function(e){if(e==null||e==null)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(),n=this.getDataFilteredProperties();return this.runItemsEnableCondition(e,n),this.runItemsCondition(e,n)},t.prototype.runItemsCondition=function(e,n){this.setConditionalChoicesRunner();var r=this.runConditionsForItems(e,n);return this.filteredChoicesValue&&this.filteredChoicesValue.length===this.activeChoices.length&&(this.filteredChoicesValue=void 0),r&&(this.onVisibleChoicesChanged(),this.clearIncorrectValues()),r},t.prototype.runItemsEnableCondition=function(e,n){var r=this;this.setConditionalEnableChoicesRunner();var o=k.runEnabledConditionsForItems(this.activeChoices,this.conditionChoicesEnableIfRunner,e,n,function(s,a){return a&&r.onEnableItemCallBack(s)});o&&this.clearDisabledValues(),this.onAfterRunItemsEnableCondition()},t.prototype.onAfterRunItemsEnableCondition=function(){},t.prototype.onEnableItemCallBack=function(e){return!0},t.prototype.onSelectedItemValuesChangedHandler=function(e){var n;(n=this.survey)===null||n===void 0||n.loadedChoicesFromServer(this)},t.prototype.getItemIfChoicesNotContainThisValue=function(e,n){return this.waitingChoicesByURL?this.createItemValue(e,n):null},t.prototype.getSingleSelectedItem=function(){var e=this.selectedItemValues;if(this.isEmpty())return null;var n=k.getItemByValue(this.visibleChoices,this.value);return this.onGetSingleSelectedItem(n),!n&&(!e||this.value!=e.id)&&this.updateSelectedItemValues(),n||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 de(this.choicesVisibleIf)),this.conditionChoicesVisibleIfRunner.expression=this.choicesVisibleIf):this.conditionChoicesVisibleIfRunner=null},t.prototype.setConditionalEnableChoicesRunner=function(){this.choicesEnableIf?(this.conditionChoicesEnableIfRunner||(this.conditionChoicesEnableIfRunner=new de(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(n,r){return e.survey.getChoiceItemVisibility(e,n,r)}:null},t.prototype.runConditionsForItems=function(e,n){this.filteredChoicesValue=[];var r=this.changeItemVisibility();return k.runConditionsForItems(this.activeChoices,this.getFilteredChoices(),this.areInvisibleElementsShowing?null:this.conditionChoicesVisibleIfRunner,e,n,!this.survey||!this.survey.areInvisibleElementsShowing,function(o,s){return r?r(o,s):s})},t.prototype.getHasOther=function(e){return this.getIsItemValue(e,this.otherItem)},t.prototype.getIsItemValue=function(e,n){return e===n.value},Object.defineProperty(t.prototype,"validatedValue",{get:function(){return this.rendredValueToDataCore(this.value)},enumerable:!1,configurable:!0}),t.prototype.createRestful=function(){return new ot},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?i.prototype.getQuestionComment.call(this):this.otherValueCore?this.otherValueCore:this.hasComment||this.getStoreOthersAsComment()?i.prototype.getQuestionComment.call(this):this.otherValueCore},t.prototype.selectOtherValueFromComment=function(e){e&&(this.prevIsOtherSelected=!0),this.value=e?this.otherItem.value:void 0},t.prototype.setQuestionComment=function(e){if(this.updatePrevOtherErrorValue(e),this.showCommentArea){i.prototype.setQuestionComment.call(this,e);return}this.onUpdateCommentOnAutoOtherMode(e),this.getStoreOthersAsComment()?i.prototype.setQuestionComment.call(this,e):this.setOtherValueInternally(e),this.updateChoicesDependedQuestions()},t.prototype.onUpdateCommentOnAutoOtherMode=function(e){if(this.autoOtherMode){this.prevOtherValue=void 0;var n=this.isOtherSelected;(!n&&e||n&&!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(e){i.prototype.clearValue.call(this,e),this.prevOtherValue=void 0,this.selectedItemValues=void 0},t.prototype.updateCommentFromSurvey=function(e){i.prototype.updateCommentFromSurvey.call(this,e),this.prevOtherValue=void 0},Object.defineProperty(t.prototype,"renderedValue",{get:function(){return this.getPropertyValue("renderedValue",null)},set:function(n){if(!this.isReadOnlyAttr){this.setPropertyValue("renderedValue",n);var n=this.rendredValueToData(n);this.isTwoValueEquals(n,this.value)||(this.value=n)}},enumerable:!1,configurable:!0}),t.prototype.setQuestionValue=function(e,n,r){if(n===void 0&&(n=!0),r===void 0&&(r=!0),!(this.isLoadingFromJson||this.isTwoValueEquals(this.value,e))&&(i.prototype.setQuestionValue.call(this,e,n),this.setPropertyValue("renderedValue",this.rendredValueFromData(e)),this.updateChoicesDependedQuestions(),!(this.hasComment||!r))){var o=this.isOtherSelected;if(o&&this.prevOtherValue){var s=this.prevOtherValue;this.prevOtherValue=void 0,this.otherValue=s}!o&&this.otherValue&&(this.getStoreOthersAsComment()&&!this.autoOtherMode&&(this.prevOtherValue=this.otherValue),this.makeCommentEmpty=!0,this.otherValueCore="",this.setPropertyValue("comment",""))}},t.prototype.setValueCore=function(e){i.prototype.setValueCore.call(this,e),this.makeCommentEmpty&&(this.setCommentIntoData(""),this.makeCommentEmpty=!1)},t.prototype.setNewValue=function(e){e=this.valueFromData(e),(!this.choicesByUrl.isRunning&&!this.choicesByUrl.isWaitingForParameters||!this.isValueEmpty(e))&&(this.cachedValueForUrlRequests=e),i.prototype.setNewValue.call(this,e)},t.prototype.valueFromData=function(e){var n=k.getItemByValue(this.activeChoices,e);return n?n.value:i.prototype.valueFromData.call(this,e)},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(),!e)?!1:this.hasUnknownValue(e,!0,!1)},t.prototype.getIsQuestionReady=function(){return i.prototype.getIsQuestionReady.call(this)&&!this.waitingChoicesByURL&&!this.waitingGetChoiceDisplayValueResponse},t.prototype.updateSelectedItemValues=function(){var e=this;if(!(this.waitingGetChoiceDisplayValueResponse||!this.survey||this.isEmpty())){var n=this.value,r=Array.isArray(n)?n:[n],o=r.some(function(s){return!k.getItemByValue(e.choices,s)});o&&(this.choicesLazyLoadEnabled||this.hasChoicesUrl)&&(this.waitingGetChoiceDisplayValueResponse=!0,this.updateIsReady(),this.survey.getChoiceDisplayValue({question:this,values:r,setItems:function(s){for(var a=[],l=1;l<arguments.length;l++)a[l-1]=arguments[l];if(e.waitingGetChoiceDisplayValueResponse=!1,!s||!s.length){e.updateIsReady();return}var u=s.map(function(d,v){return e.createItemValue(r[v],d)});e.setCustomValuesIntoItems(u,a),Array.isArray(n)?e.selectedItemValues=u:e.selectedItemValues=u[0],e.updateIsReady()}}))}},t.prototype.setCustomValuesIntoItems=function(e,n){!Array.isArray(n)||n.length===0||n.forEach(function(r){var o=r.values,s=r.propertyName;if(Array.isArray(o))for(var a=0;a<e.length&&a<o.length;a++)e[a][s]=o[a]})},t.prototype.hasUnknownValue=function(e,n,r,o){if(n===void 0&&(n=!1),r===void 0&&(r=!0),o===void 0&&(o=!1),!Array.isArray(e))return this.hasUnknownValueItem(e,n,r,o);for(var s=0;s<e.length;s++)if(this.hasUnknownValueItem(e,n,r,o))return!0;return!1},t.prototype.hasUnknownValueItem=function(e,n,r,o){if(n===void 0&&(n=!1),r===void 0&&(r=!0),o===void 0&&(o=!1),!o&&this.isValueEmpty(e)||n&&e==this.otherItem.value||this.showNoneItem&&e==this.noneItem.value||this.showRefuseItem&&e==this.refuseItem.value||this.showDontKnowItem&&e==this.dontKnowItem.value)return!1;var s=r?this.getFilteredChoices():this.activeChoices;return k.getItemByValue(s,e)==null},t.prototype.isValueDisabled=function(e){var n=k.getItemByValue(this.getFilteredChoices(),e);return!!n&&!n.isEnabled},t.prototype.endLoadingFromJson=function(){i.prototype.endLoadingFromJson.call(this),this.updateVisibleChoices()},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 n=this.getQuestionWithChoices();this.isLockVisibleChoices=!!n&&n.name===e,n&&n.name!==e&&(n.removeDependedQuestion(this),this.isInDesignMode&&!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(),e!=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=[],n=this.visibleChoices,r=0;r<n.length;r++)n[r].isEnabled&&e.push(n[r]);return e},enumerable:!1,configurable:!0}),t.prototype.updateVisibleChoices=function(){if(!(this.isLoadingFromJson||this.isDisposed)){var e=new Array,n=this.calcVisibleChoices();n||(n=[]);for(var r=0;r<n.length;r++)e.push(n[r]);var o=this.visibleChoices;(!this.isTwoValueEquals(o,e)||this.choicesLazyLoadEnabled)&&(this.setArrayPropertyDirectly("visibleChoices",e),this.updateRenderedChoices())}},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&&this.choicesOrder=="none"},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,n){this.headItemsCount=0,this.footItemsCount=0,this.isEmptyActiveChoicesInDesign||this.addNewItemToVisibleChoices(e,n);var r=new Array;this.addNonChoicesItems(r,n),r.sort(function(a,l){return a.index===l.index?0:a.index<l.index?-1:1});for(var o=0;o<r.length;o++){var s=r[o];s.index<0?(e.splice(o,0,s.item),this.headItemsCount++):(e.push(s.item),this.footItemsCount++)}},t.prototype.addNewItemToVisibleChoices=function(e,n){var r=this;n&&(this.newItemValue||(this.newItemValue=this.createItemValue("newitem"),this.newItemValue.isGhost=!0,this.newItemValue.registerFunctionOnPropertyValueChanged("isVisible",function(){r.updateVisibleChoices()})),this.newItemValue.isVisible&&!this.isUsingCarryForward&&this.canShowOptionItem(this.newItemValue,n,!1)&&(this.footItemsCount=1,e.push(this.newItemValue)))},t.prototype.addNonChoicesItems=function(e,n){this.supportNone()&&this.addNonChoiceItem(e,this.noneItem,n,this.showNoneItem,b.specialChoicesOrder.noneItem),this.supportRefuse()&&this.addNonChoiceItem(e,this.refuseItem,n,this.showRefuseItem,b.specialChoicesOrder.refuseItem),this.supportDontKnow()&&this.addNonChoiceItem(e,this.dontKnowItem,n,this.showDontKnowItem,b.specialChoicesOrder.dontKnowItem),this.supportOther()&&this.addNonChoiceItem(e,this.otherItem,n,this.hasOther,b.specialChoicesOrder.otherItem)},t.prototype.addNonChoiceItem=function(e,n,r,o,s){this.canShowOptionItem(n,r,o)&&s.forEach(function(a){return e.push({index:a,item:n})})},t.prototype.canShowOptionItem=function(e,n,r){var o=n&&(this.canShowOptionItemCallback?this.canShowOptionItemCallback(e):!0)||r;if(this.canSurveyChangeItemVisibility()){var s=this.changeItemVisibility();return s(e,o)}return o},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 b.showDefaultItemsInCreatorV2&&this.isInDesignModeV2&&!this.customWidget},enumerable:!1,configurable:!0}),t.prototype.getPlainData=function(e){var n=this;e===void 0&&(e={includeEmpty:!0,includeQuestionTypes:!1});var r=i.prototype.getPlainData.call(this,e);if(r){var o=Array.isArray(this.value)?this.value:[this.value];r.isNode=!0,r.data=(r.data||[]).concat(o.map(function(s,a){var l=k.getItemByValue(n.visibleChoices,s),u={name:a,title:"Choice",value:s,displayValue:n.getChoicesDisplayValue(n.visibleChoices,s),getString:function(d){return typeof d=="object"?JSON.stringify(d):d},isNode:!1};return l&&(e.calculations||[]).forEach(function(d){u[d.propertyName]=l[d.propertyName]}),n.isOtherSelected&&n.otherItemValue===l&&(u.isOther=!0,u.displayValue=n.otherValue),u}))}return r},t.prototype.getDisplayValueCore=function(e,n){return this.useDisplayValuesInDynamicTexts?this.getChoicesDisplayValue(this.visibleChoices,n):n},t.prototype.getDisplayValueEmpty=function(){return k.getTextOrHtmlByValue(this.visibleChoices,void 0)},t.prototype.getChoicesDisplayValue=function(e,n){if(n==this.otherItemValue.value)return this.otherValue?this.otherValue:this.locOtherText.textOrHtml;var r=this.getSingleSelectedItem();if(r&&this.isTwoValueEquals(r.value,n))return r.locText.textOrHtml;var o=k.getTextOrHtmlByValue(e,n);return o==""&&n?n:o},t.prototype.getDisplayArrayValue=function(e,n,r){for(var o=this,s=this.visibleChoices,a=[],l=[],u=0;u<n.length;u++)l.push(r?r(u):n[u]);if(P.isTwoValueEquals(this.value,l)&&this.getMultipleSelectedItems().forEach(function(v,V){return a.push(o.getItemDisplayValue(v,l[V]))}),a.length===0)for(var u=0;u<l.length;u++){var d=this.getChoicesDisplayValue(s,l[u]);d&&a.push(d)}return a.join(b.choicesSeparator)},t.prototype.getItemDisplayValue=function(e,n){if(e===this.otherItem){if(this.hasOther&&this.showCommentArea&&n)return n;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 this.carryForwardQuestionType==="select"?(e.addDependedQuestion(this),this.getChoicesFromSelectQuestion(e)):this.carryForwardQuestionType==="array"?(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.isInDesignModeV2&&(this.hasChoicesUrl||this.isMessagePanelVisible)},enumerable:!1,configurable:!0}),t.prototype.getCarryForwardQuestion=function(e){var n=this.findCarryForwardQuestion(e),r=this.getQuestionWithChoicesCore(n),o=r?null:this.getQuestionWithArrayValue(n);return this.setCarryForwardQuestionType(!!r,!!o),r||o?n:null},t.prototype.getIsReadyDependsOn=function(){var e=i.prototype.getIsReadyDependsOn.call(this);return this.carryForwardQuestion&&e.push(this.carryForwardQuestion),e},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&&x.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.isInDesignMode)return[];var n=e.value;if(!Array.isArray(n))return[];for(var r=[],o=0;o<n.length;o++){var s=n[o];if(P.isValueObject(s)){var a=this.getValueKeyName(s);if(a&&!this.isValueEmpty(s[a])){var l=this.choiceTextsFromQuestion?s[this.choiceTextsFromQuestion]:void 0;r.push(this.createItemValue(s[a],l))}}}return r},t.prototype.getValueKeyName=function(e){if(this.choiceValuesFromQuestion)return this.choiceValuesFromQuestion;var n=Object.keys(e);return n.length>0?n[0]:void 0},t.prototype.getChoicesFromSelectQuestion=function(e){if(this.isInDesignMode)return[];for(var n=[],r=this.choicesFromQuestionMode=="selected"?!0:this.choicesFromQuestionMode=="unselected"?!1:void 0,o=e.visibleChoices,s=0;s<o.length;s++)if(!e.isBuiltInChoice(o[s])){if(r===void 0){n.push(this.copyChoiceItem(o[s]));continue}var a=e.isItemSelected(o[s]);(a&&r||!a&&!r)&&n.push(this.copyChoiceItem(o[s]))}return this.choicesFromQuestionMode==="selected"&&!this.showOtherItem&&e.isOtherSelected&&e.comment&&n.push(this.createItemValue(e.otherItem.value,e.comment)),n},t.prototype.copyChoiceItem=function(e){var n=this.createItemValue(e.value);return n.setData(e),n},Object.defineProperty(t.prototype,"hasActiveChoices",{get:function(){var e=this.visibleChoices;(!e||e.length==0)&&(this.onVisibleChoicesChanged(),e=this.visibleChoices);for(var n=0;n<e.length;n++)if(!this.isBuiltInChoice(e[n]))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(e,n,r){var o=this;if(i.prototype.onCheckForErrors.call(this,e,n,r),!(!this.hasOther||!this.isOtherSelected||this.otherValue||n&&!this.prevOtherErrorValue)){var s=new wu(this.otherErrorText,this);s.onUpdateErrorTextCallback=function(a){a.text=o.otherErrorText},e.push(s)}},t.prototype.setSurveyImpl=function(e,n){this.isRunningChoices=!0,i.prototype.setSurveyImpl.call(this,e,n),this.isRunningChoices=!1,this.runChoicesByUrl(),this.isAddDefaultItems&&this.updateVisibleChoices()},t.prototype.setSurveyCore=function(e){i.prototype.setSurveyCore.call(this,e),e&&this.choicesFromQuestion&&this.onVisibleChoicesChanged()},t.prototype.getStoreOthersAsComment=function(){return this.isSettingDefaultValue||this.showCommentArea?!1:this.storeOthersAsComment===!0||this.storeOthersAsComment=="default"&&(this.survey!=null?this.survey.storeOthersAsComment:!0)||this.hasChoicesUrl&&!this.choicesFromUrl},t.prototype.onSurveyLoad=function(){this.runChoicesByUrl(),this.onVisibleChoicesChanged(),i.prototype.onSurveyLoad.call(this)},t.prototype.onAnyValueChanged=function(e,n){i.prototype.onAnyValueChanged.call(this,e,n),e!=this.getValueName()&&this.runChoicesByUrl();var r=this.choicesFromQuestion;e&&r&&(e===r||n===r)&&this.onVisibleChoicesChanged()},t.prototype.updateValueFromSurvey=function(e,n){var r="";this.hasOther&&!this.isRunningChoices&&!this.choicesByUrl.isRunning&&this.getStoreOthersAsComment()&&(this.hasUnknownValue(e)&&!this.getHasOther(e)?(r=this.getCommentFromValue(e),e=this.setOtherValueIntoValue(e)):this.data&&(r=this.data.getComment(this.getValueName()))),i.prototype.updateValueFromSurvey.call(this,e,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.isInDesignModeV2)){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(){b.web.disableQuestionWhileLoadingChoices===!0&&!this.isReadOnly&&(this.enableOnLoadingChoices=!0,this.readOnly=!0)},t.prototype.onLoadChoicesFromUrl=function(e){this.enableOnLoadingChoices&&(this.readOnly=!1);var n=[];this.isReadOnly||this.choicesByUrl&&this.choicesByUrl.error&&n.push(this.choicesByUrl.error);var r=null,o=!0;this.isFirstLoadChoicesFromUrl&&!this.cachedValueForUrlRequests&&this.defaultValue&&(this.cachedValueForUrlRequests=this.defaultValue,o=!1),this.isValueEmpty(this.cachedValueForUrlRequests)&&(this.cachedValueForUrlRequests=this.value);var s=this.createCachedValueForUrlRequests(this.cachedValueForUrlRequests,o);if(e&&(e.length>0||this.choicesByUrl.allowEmptyResponse)&&(r=new Array,k.setData(r,e)),r)for(var a=0;a<r.length;a++)r[a].locOwner=this;this.setChoicesFromUrl(r,n,s)},t.prototype.canAvoidSettChoicesFromUrl=function(e){if(this.isFirstLoadChoicesFromUrl)return!1;var n=!e||Array.isArray(e)&&e.length===0;return n&&!this.isEmpty()?!1:P.isTwoValueEquals(this.choicesFromUrl,e)},t.prototype.setChoicesFromUrl=function(e,n,r){if(!this.canAvoidSettChoicesFromUrl(e)){if(this.isFirstLoadChoicesFromUrl=!1,this.choicesFromUrl=e,this.filterItems(),this.onVisibleChoicesChanged(),e){var o=this.updateCachedValueForUrlRequests(r,e);if(o&&!this.isReadOnly){var s=!this.isTwoValueEquals(this.value,o.value);try{this.isValueEmpty(o.value)||(this.allowNotifyValueChanged=!1,this.setQuestionValue(void 0,!0,!1)),this.allowNotifyValueChanged=s,s?this.value=o.value:this.setQuestionValue(o.value)}finally{this.allowNotifyValueChanged=!0}}}!this.isReadOnly&&!e&&!this.isFirstLoadChoicesFromUrl&&(this.value=null),this.errors=n,this.choicesLoaded()}},t.prototype.createCachedValueForUrlRequests=function(e,n){if(this.isValueEmpty(e))return null;if(Array.isArray(e)){for(var r=[],o=0;o<e.length;o++)r.push(this.createCachedValueForUrlRequests(e[o],!0));return r}var s=n?!this.hasUnknownValue(e):!0;return{value:e,isExists:s}},t.prototype.updateCachedValueForUrlRequests=function(e,n){if(this.isValueEmpty(e))return null;if(Array.isArray(e)){for(var r=[],o=0;o<e.length;o++){var s=this.updateCachedValueForUrlRequests(e[o],n);if(s&&!this.isValueEmpty(s.value)){var a=s.value,u=k.getItemByValue(n,s.value);u&&(a=u.value),r.push(a)}}return{value:r}}var l=e.isExists&&this.hasUnknownValue(e.value)?null:e.value,u=k.getItemByValue(n,l);return u&&(l=u.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(e){i.prototype.onSurveyValueChanged.call(this,e),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 e=i.prototype.isVisibleCore.call(this);if(!this.hideIfChoicesEmpty||!e)return e;var n=this.isUsingCarryForward?this.visibleChoices:this.getFilteredChoices();return!n||n.length>0},t.prototype.sortVisibleChoices=function(e){if(this.isInDesignMode)return e;var n=this.choicesOrder.toLowerCase();return n=="asc"?this.sortArray(e,1):n=="desc"?this.sortArray(e,-1):n=="random"?this.randomizeArray(e):e},t.prototype.sortArray=function(e,n){return e.sort(function(r,o){return P.compareStrings(r.calculatedText,o.calculatedText)*n})},t.prototype.randomizeArray=function(e){return P.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||this.choicesFromUrl.length==0))},t.prototype.hasValueToClearIncorrectValues=function(){return this.survey&&this.survey.keepIncorrectValues?!1:!this.keepIncorrectValues&&!this.isEmpty()},t.prototype.clearValueIfInvisibleCore=function(e){i.prototype.clearValueIfInvisibleCore.call(this,e),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?!1:this.hasUnknownValue(e,!0,!0,!0)},t.prototype.clearDisabledValuesCore=function(){this.isValueDisabled(this.value)&&this.clearValue(!0)},t.prototype.clearUnusedValues=function(){i.prototype.clearUnusedValues.call(this),this.isOtherSelected||(this.otherValue=""),!this.showCommentArea&&!this.getStoreOthersAsComment()&&!this.isOtherSelected&&(this.comment="")},t.prototype.getColumnClass=function(){return new O().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 n={item:e},r=this.getItemClassCore(e,n);return n.css=r,this.survey&&this.survey.updateChoiceItemCss(this,n),n.css},t.prototype.getCurrentColCount=function(){return this.colCount},t.prototype.getItemClassCore=function(e,n){var r=new O().append(this.cssClasses.item).append(this.cssClasses.itemInline,!this.hasColumns&&this.colCount===0).append("sv-q-col-"+this.getCurrentColCount(),!this.hasColumns&&this.colCount!==0).append(this.cssClasses.itemOnError,this.hasCssError()),o=this.getIsDisableAndReadOnlyStyles(!e.isEnabled),s=o[0],a=o[1],l=this.isItemSelected(e)||this.isOtherSelected&&this.otherItem.value===e.value,u=!a&&!l&&!(this.survey&&this.survey.isDesignMode),d=e===this.noneItem;return n.isDisabled=a||s,n.isChecked=l,n.isNone=d,r.append(this.cssClasses.itemDisabled,a).append(this.cssClasses.itemReadOnly,s).append(this.cssClasses.itemPreview,this.isPreviewStyle).append(this.cssClasses.itemChecked,l).append(this.cssClasses.itemHover,u).append(this.cssClasses.itemNone,d).toString()},t.prototype.getLabelClass=function(e){return new O().append(this.cssClasses.label).append(this.cssClasses.labelChecked,this.isItemSelected(e)).toString()},t.prototype.getControlLabelClass=function(e){return new O().append(this.cssClasses.controlLabel).append(this.cssClasses.controlLabelChecked,this.isItemSelected(e)).toString()||void 0},t.prototype.updateRenderedChoices=function(){this.renderedChoices=this.onGetRenderedChoicesCallback?this.onGetRenderedChoicesCallback(this.visibleChoices):this.visibleChoices},t.prototype.getRenderedChoicesAnimationOptions=function(){var e=this;return{isAnimationEnabled:function(){return e.animationAllowed},getRerenderEvent:function(){return e.onElementRerendered},getKey:function(n){return n!=e.newItemValue?n.value:e.newItemValue},getLeaveOptions:function(n){var r=e.cssClasses.itemLeave;if(e.hasColumns){var o=e.bodyItems.indexOf(n);o!==-1&&o!==e.bodyItems.length-1&&(r="")}return{cssClass:r,onBeforeRunAnimation:Ae,onAfterRunAnimation:Ce}},getAnimatedElement:function(n){return n.getRootElement()},getEnterOptions:function(n){var r=e.cssClasses.itemEnter;if(e.hasColumns){var o=e.bodyItems.indexOf(n);o!==-1&&o!==e.bodyItems.length-1&&(r="")}return{cssClass:r,onBeforeRunAnimation:function(s){if(e.getCurrentColCount()==0&&e.bodyItems.indexOf(n)>=0){var a=s.parentElement.firstElementChild.offsetLeft;s.offsetLeft>a&&Mt(s,{moveAnimationDuration:"0s",fadeAnimationDelay:"0s"},"--")}Ae(s)},onAfterRunAnimation:Ce}}}},Object.defineProperty(t.prototype,"renderedChoices",{get:function(){return this._renderedChoices},set:function(e){this.renderedChoicesAnimation.sync(e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"headItems",{get:function(){for(var e=this.separateSpecialChoices||this.isInDesignMode?this.headItemsCount:0,n=[],r=0;r<e;r++)this.renderedChoices[r]&&n.push(this.renderedChoices[r]);return n},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"footItems",{get:function(){for(var e=this.separateSpecialChoices||this.isInDesignMode?this.footItemsCount:0,n=[],r=this.renderedChoices,o=0;o<e;o++)this.renderedChoices[r.length-e+o]&&n.push(this.renderedChoices[r.length-e+o]);return n},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"dataChoices",{get:function(){var e=this;return this.renderedChoices.filter(function(n){return!e.isBuiltInChoice(n)})},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"bodyItems",{get:function(){return this.hasHeadItems||this.hasFootItems?this.dataChoices:this.renderedChoices},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=[],n=this.getCurrentColCount();if(this.hasColumns&&this.renderedChoices.length>0){var r=!this.separateSpecialChoices&&!this.isInDesignMode?this.renderedChoices:this.dataChoices;if(b.showItemsInOrder=="column")for(var o=0,s=r.length%n,a=0;a<n;a++){for(var l=[],u=o;u<o+Math.floor(r.length/n);u++)l.push(r[u]);s>0&&(s--,l.push(r[u]),u++),o=u,e.push(l)}else for(var a=0;a<n;a++){for(var l=[],u=a;u<r.length;u+=n)l.push(r[u]);e.push(l)}}return e},enumerable:!1,configurable:!0}),t.prototype.getItemsColumnKey=function(e){return(e||[]).map(function(n){return n.value||""}).join("")},Object.defineProperty(t.prototype,"hasColumns",{get:function(){return!this.isMobile&&this.getCurrentColCount()>1},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"rowLayout",{get:function(){return this.getCurrentColCount()==0&&!(this.hasFootItems||this.hasHeadItems)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"blockedRow",{get:function(){return this.getCurrentColCount()==0&&(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 n=this.survey;return n?n.getItemValueWrapperComponentName(e,this):Ue.TemplateRendererComponentName},t.prototype.getItemValueWrapperComponentData=function(e){var n=this.survey;return n?n.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 O().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.focusOtherComment=function(){var e;le.FocusElement(this.otherId,!1,(e=this.survey)===null||e===void 0?void 0:e.rootElement)},t.prototype.onValueChanged=function(){i.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}),bn([h({onSet:function(e,n){n.onSelectedItemValuesChangedHandler(e)}})],t.prototype,"selectedItemValues",void 0),bn([h()],t.prototype,"separateSpecialChoices",void 0),bn([h({localizable:!0})],t.prototype,"otherPlaceholder",void 0),bn([ae()],t.prototype,"_renderedChoices",void 0),t}(ue),kt=function(i){ss(t,i);function t(e){return i.call(this,e)||this}return 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(){i.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}(jr);function Nr(i,t){var e;if(!i)return!1;if(i.templateQuestion){var n=(e=i.colOwner)===null||e===void 0?void 0:e.data;if(i=i.templateQuestion,!i.getCarryForwardQuestion(n))return!1}return i.carryForwardQuestionType===t}x.addClass("selectbase",[{name:"showCommentArea:switch",layout:"row",visible:!0,category:"general"},"choicesFromQuestion:question_carryforward",{name:"choices:itemvalue[]",uniqueProperty:"value",baseValue:function(){return oe("choices_Item")},dependsOn:"choicesFromQuestion",visibleIf:function(i){return!i.choicesFromQuestion}},{name:"choicesFromQuestionMode",default:"all",choices:["all","selected","unselected"],dependsOn:"choicesFromQuestion",visibleIf:function(i){return Nr(i,"select")}},{name:"choiceValuesFromQuestion",dependsOn:"choicesFromQuestion",visibleIf:function(i){return Nr(i,"array")}},{name:"choiceTextsFromQuestion",dependsOn:"choicesFromQuestion",visibleIf:function(i){return Nr(i,"array")}},{name:"choicesOrder",default:"none",choices:["none","asc","desc","random"],dependsOn:"choicesFromQuestion",visibleIf:function(i){return!i.choicesFromQuestion}},{name:"choicesByUrl:restfull",className:"choicesByUrl",onGetValue:function(i){return i.choicesByUrl.getData()},onSetValue:function(i,t){i.choicesByUrl.setData(t)}},"hideIfChoicesEmpty:boolean","choicesVisibleIf:condition",{name:"choicesEnableIf:condition",dependsOn:"choicesFromQuestion",visibleIf:function(i){return!i.choicesFromQuestion}},{name:"defaultValue:value",visibleIf:function(i){return!i.choicesFromQuestion},dependsOn:"choicesFromQuestion"},{name:"correctAnswer:value",visibleIf:function(i){return!i.choicesFromQuestion},dependsOn:"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(i){return i.hasOther}},{name:"noneText",serializationProperty:"locNoneText",dependsOn:"showNoneItem",visibleIf:function(i){return i.showNoneItem}},{name:"refuseText",serializationProperty:"locRefuseText",dependsOn:"showRefuseItem",visibleIf:function(i){return i.showRefuseItem}},{name:"dontKnowText",serializationProperty:"locDontKnowText",dependsOn:"showDontKnowItem",visibleIf:function(i){return i.showDontKnowItem}},{name:"otherText",serializationProperty:"locOtherText",dependsOn:"showOtherItem",visibleIf:function(i){return i.hasOther}},{name:"otherErrorText",serializationProperty:"locOtherErrorText",dependsOn:"showOtherItem",visibleIf:function(i){return i.hasOther}},{name:"storeOthersAsComment",default:"default",choices:["default",!0,!1],visible:!1}],null,"question"),x.addClass("checkboxbase",[{name:"colCount:number",default:1,choices:[0,1,2,3,4,5],layout:"row"}],null,"selectbase");var Fr=function(){function i(t,e,n,r){this.x=t,this.y=e,this.width=n,this.height=r}return Object.defineProperty(i.prototype,"left",{get:function(){return this.x},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"top",{get:function(){return this.y},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"right",{get:function(){return this.x+this.width},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"bottom",{get:function(){return this.y+this.height},enumerable:!1,configurable:!0}),i}(),at=function(){function i(){}return i.calculatePosition=function(t,e,n,r,o,s){s===void 0&&(s="flex");var a=t.left,l=t.top;return s==="flex"&&(o=="center"?a=(t.left+t.right-n)/2:o=="left"?a=t.left-n:a=t.right),r=="middle"?l=(t.top+t.bottom-e)/2:r=="top"?l=t.top-e:l=t.bottom,o!="center"&&r!="middle"&&(r=="top"?l=l+t.height:l=l-t.height),{left:Math.round(a),top:Math.round(l)}},i.getCorrectedVerticalDimensions=function(t,e,n,r,o,s){o===void 0&&(o=!0),s===void 0&&(s={top:0,bottom:0});var a,l=n-i.bottomIndent;if(r==="top"&&(a={height:e,top:t}),t<-s.top)a={height:o?e+t:e,top:-s.top};else if(e+t>n){var u=Math.min(e,l-t);a={height:o?u:e,top:o?t:t-(e-u)}}return a&&(a.height=Math.min(a.height,l),a.top=Math.max(a.top,-s.top)),a},i.updateHorizontalDimensions=function(t,e,n,r,o,s){o===void 0&&(o="flex"),s===void 0&&(s={left:0,right:0}),e+=s.left+s.right;var a=void 0,l=t;return r==="center"&&(o==="fixed"?(t+e>n&&(a=n-t),l-=s.left):t<0?(l=s.left,a=Math.min(e,n)):e+t>n&&(l=n-e,l=Math.max(l,s.left),a=Math.min(e,n))),r==="left"&&t<0&&(l=s.left,a=Math.min(e,n)),r==="right"&&e+t>n&&(a=n-t),{width:a-s.left-s.right,left:l}},i.updateVerticalPosition=function(t,e,n,r,o){if(r==="middle")return r;var s=e-(t.top+(n!=="center"?t.height:0)),a=e+t.bottom-(n!=="center"?t.height:0)-o;return s>0&&a<=0&&r=="top"?r="bottom":a>0&&s<=0&&r=="bottom"?r="top":a>0&&s>0&&(r=s<a?"top":"bottom"),r},i.updateHorizontalPosition=function(t,e,n,r){if(n==="center")return n;var o=e-t.left,s=e+t.right-r;return o>0&&s<=0&&n=="left"?n="right":s>0&&o<=0&&n=="right"?n="left":s>0&&o>0&&(n=o<s?"left":"right"),n},i.calculatePopupDirection=function(t,e){var n;return e=="center"&&t!="middle"?n=t:e!="center"&&(n=e),n},i.calculatePointerTarget=function(t,e,n,r,o,s,a){s===void 0&&(s=0),a===void 0&&(a=0);var l={};return o!="center"?(l.top=t.top+t.height/2,l.left=t[o]):r!="middle"&&(l.top=t[r],l.left=t.left+t.width/2),l.left=Math.round(l.left-n),l.top=Math.round(l.top-e),o=="left"&&(l.left-=s+a),o==="center"&&(l.left-=s),l},i.bottomIndent=16,i}(),hc=function(){var i=function(t,e){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(n[o]=r[o])},i(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");i(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),lt=function(i,t,e,n){var r=arguments.length,o=r<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,e):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(i,t,e,n);else for(var a=i.length-1;a>=0;a--)(s=i[a])&&(o=(r<3?s(o):r>3?s(t,e,o):s(t,e))||o);return r>3&&o&&Object.defineProperty(t,e,o),o},as='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^="-"])',_r=function(i){hc(t,i);function t(e){var n=i.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 Kn(n,function(r){n._isVisible!==r&&(r?(n.updateBeforeShowing(),n.updateIsVisible(r)):(n.updateOnHiding(),n.updateIsVisible(r),n.updateAfterHiding(),n._isPositionSetValue=!1))},function(){return n._isVisible}),n.onVisibilityChanged=new Ve,n.onModelIsVisibleChangedCallback=function(){n.isVisible=n.model.isVisible},n._isPositionSetValue=!1,n.model=e,n.locale=n.model.locale,n}return 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--leave",onBeforeRunAnimation:function(e){e.setAttribute("inert","")},onAfterRunAnimation:function(e){return e.removeAttribute("inert")}}},t.prototype.getEnterOptions=function(){return{cssClass:"sv-popup--enter"}},t.prototype.getAnimatedElement=function(){return this.getAnimationContainer()},t.prototype.isAnimationEnabled=function(){return this.model.displayMode!=="overlay"&&b.animationEnabled},t.prototype.getRerenderEvent=function(){return this.onElementRerendered},t.prototype.getAnimationContainer=function(){var e;return(e=this.container)===null||e===void 0?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:i.prototype.getLocale.call(this)},t.prototype.hidePopup=function(){this.model.isVisible=!1},t.prototype.getStyleClass=function(){return new O().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 Ee,this.footerToolbar.updateCallback=function(r){e.footerToolbarValue.actions.forEach(function(o){return o.cssClasses={item:"sv-popup__body-footer-item sv-popup__button sd-btn"}})};var n=[{id:"cancel",visibleIndex:10,title:this.cancelButtonText,innerCss:"sv-popup__button--cancel sd-btn",action:function(){e.cancel()}}];n=this.model.updateFooterActions(n),this.footerToolbarValue.setItems(n)},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 this.model.displayMode==="overlay"},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){e.key==="Tab"||e.keyCode===9?this.trapFocus(e):(e.key==="Escape"||e.keyCode===27)&&this.hidePopup()},t.prototype.trapFocus=function(e){var n=this.container.querySelectorAll(as),r=n[0],o=n[n.length-1];e.shiftKey?b.environment.root.activeElement===r&&(o.focus(),e.preventDefault()):b.environment.root.activeElement===o&&(r.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=b.environment.root.activeElement,this.isOverlay&&this.resetDimensionsAndPositionStyleProperties(),this.switchFocus(),this._isPositionSetValue=!0},t.prototype.updateOnHiding=function(){this.isFocusedContent&&this.prevActiveElement&&this.prevActiveElement.focus({preventScroll:!0})},t.prototype.focusContainer=function(){if(this.container){var e=this.container.querySelector(this.popupSelector);e==null||e.focus()}},t.prototype.focusFirstInput=function(){var e=this;setTimeout(function(){if(e.container){var n=e.container.querySelector(e.model.focusFirstInputSelector||as);n?n.focus():e.focusContainer()}},100)},t.prototype.clickOutside=function(e){this.hidePopup(),e==null||e.stopPropagation()},t.prototype.cancel=function(){this.model.onCancel(),this.hidePopup()},t.prototype.dispose=function(){i.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=I.createElement("div");this.createdContainer=e,Zn(b.environment.popupMountContainer).appendChild(e)}},t.prototype.setComponentElement=function(e){e&&(this.containerElement=e)},t.prototype.resetComponentElement=function(){this.containerElement=void 0,this.prevActiveElement=void 0},t.prototype.preventScrollOuside=function(e,n){for(var r=e.target;r!==this.container;){if(I.getComputedStyle(r).overflowY==="auto"&&r.scrollHeight!==r.offsetHeight){var o=r.scrollHeight,s=r.scrollTop,a=r.clientHeight;if(!(n>0&&Math.abs(o-a-s)<1)&&!(n<0&&s<=0))return}r=r.parentElement}e.cancelable&&e.preventDefault()},lt([h({defaultValue:"0px"})],t.prototype,"top",void 0),lt([h({defaultValue:"0px"})],t.prototype,"left",void 0),lt([h({defaultValue:"auto"})],t.prototype,"height",void 0),lt([h({defaultValue:"auto"})],t.prototype,"width",void 0),lt([h({defaultValue:"auto"})],t.prototype,"minWidth",void 0),lt([h({defaultValue:!1})],t.prototype,"_isVisible",void 0),lt([h()],t.prototype,"locale",void 0),t}(z),gc=function(){var i=function(t,e){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(n[o]=r[o])},i(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");i(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),Br=function(i,t,e,n){var r=arguments.length,o=r<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,e):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(i,t,e,n);else for(var a=i.length-1;a>=0;a--)(s=i[a])&&(o=(r<3?s(o):r>3?s(t,e,o):s(t,e))||o);return r>3&&o&&Object.defineProperty(t,e,o),o};function ls(i,t){var e=i||E.getInnerWidth(),n=t||E.getInnerHeight(),r=Math.min(e,n),o=r>=kr.tabletSizeBreakpoint;return o}var kr=function(i){gc(t,i);function t(e){var n=i.call(this,e)||this;return n.scrollEventCallBack=function(r){if(n.isOverlay&&ne){r.stopPropagation(),r.preventDefault();return}n.hidePopup()},n.resizeEventCallback=function(){if(E.isAvailable()){var r=E.getVisualViewport(),o=I.getDocumentElement();o&&r&&o.style.setProperty("--sv-popup-overlay-height",r.height*r.scale+"px")}},n.resizeWindowCallback=function(){n.isOverlay||n.updatePosition(!0,Ue.platform==="vue"||Ue.platform==="vue3"||Ue.platform=="react")},n.clientY=0,n.isTablet=!1,n.touchStartEventCallback=function(r){n.clientY=r.touches[0].clientY},n.touchMoveEventCallback=function(r){n.preventScrollOuside(r,n.clientY-r.changedTouches[0].clientY)},n.model.onRecalculatePosition.add(n.recalculatePositionHandler),n}return t.prototype.calculateIsTablet=function(e,n){this.isTablet=ls(e,n)},t.prototype.getAvailableAreaRect=function(){var e=this.model.getAreaCallback?this.model.getAreaCallback(this.container):void 0;if(e){var n=e.getBoundingClientRect();return new Fr(n.x,n.y,n.width,n.height)}return new Fr(0,0,E.getInnerWidth(),E.getInnerHeight())},t.prototype.getTargetElementRect=function(){var e=this.container,n=this.model.getTargetCallback?this.model.getTargetCallback(e):void 0;if(e&&e.parentElement&&!this.isModal&&!n&&(n=e.parentElement),!n)return null;var r=n.getBoundingClientRect(),o=this.getAvailableAreaRect();return new Fr(r.left-o.left,r.top-o.top,r.width,r.height)},t.prototype._updatePosition=function(){var e,n,r,o=this.getTargetElementRect();if(o){var s=this.getAvailableAreaRect(),a=(e=this.container)===null||e===void 0?void 0:e.querySelector(this.containerSelector);if(a){var l=(n=this.container)===null||n===void 0?void 0:n.querySelector(this.fixedPopupContainer),u=a.querySelector(this.scrollingContentSelector),d=I.getComputedStyle(a),v=parseFloat(d.marginLeft)||0,V=parseFloat(d.marginRight)||0,T=parseFloat(d.marginTop)||0,R=parseFloat(d.marginBottom)||0,N=a.offsetHeight-u.offsetHeight+u.scrollHeight,j=a.getBoundingClientRect().width;this.model.setWidthByTarget&&(this.minWidth=o.width+"px");var A=this.model.verticalPosition,Q=this.getActualHorizontalPosition();if(E.isAvailable()){var re=[N,E.getInnerHeight()*.9,(r=E.getVisualViewport())===null||r===void 0?void 0:r.height];N=Math.ceil(Math.min.apply(Math,re.filter(function(ct){return typeof ct=="number"}))),A=at.updateVerticalPosition(o,N,this.model.horizontalPosition,this.model.verticalPosition,s.height),Q=at.updateHorizontalPosition(o,j,Q,s.width)}this.popupDirection=at.calculatePopupDirection(A,Q);var ie=at.calculatePosition(o,N,j+v+V,A,Q,this.model.positionMode);if(E.isAvailable()){var xe=at.getCorrectedVerticalDimensions(ie.top,N,s.height,A,this.model.canShrink,{top:T,bottom:R});if(xe&&(this.height=xe.height+"px",ie.top=xe.top),this.model.setWidthByTarget)this.width=o.width+"px",ie.left=o.left;else{var Re=at.updateHorizontalDimensions(ie.left,j,E.getInnerWidth(),Q,this.model.positionMode,{left:v,right:V});Re&&(this.width=Re.width?Re.width+"px":void 0,ie.left=Re.left)}}if(l){var wt=l.getBoundingClientRect();ie.top-=wt.top,ie.left-=wt.left}ie.left+=s.left,ie.top+=s.top,this.left=ie.left+"px",this.top=ie.top+"px",this.showHeader&&(this.pointerTarget=at.calculatePointerTarget(o,ie.top,ie.left,A,Q,v,V),this.pointerTarget.top+="px",this.pointerTarget.left+="px")}}},t.prototype.getActualHorizontalPosition=function(){var e=this.model.horizontalPosition;if(I.isAvailable()){var n=I.getComputedStyle(I.getBody()).direction=="rtl";n&&(this.model.horizontalPosition==="left"?e="right":this.model.horizontalPosition==="right"&&(e="left"))}return e},t.prototype.getStyleClass=function(){var e=this.model.overlayDisplayMode;return i.prototype.getStyleClass.call(this).append("sv-popup--dropdown",!this.isOverlay).append("sv-popup--dropdown-overlay",this.isOverlay&&e!=="plain").append("sv-popup--tablet",this.isOverlay&&(e=="tablet-dropdown-overlay"||e=="auto"&&this.isTablet)).append("sv-popup--show-pointer",!this.isOverlay&&this.showHeader).append("sv-popup--"+this.popupDirection,!this.isOverlay&&(this.showHeader||this.popupDirection=="top"||this.popupDirection=="bottom"))},t.prototype.getShowHeader=function(){return this.model.showPointer&&!this.isOverlay},t.prototype.getPopupHeaderTemplate=function(){return"popup-pointer"},t.prototype.setComponentElement=function(e){i.prototype.setComponentElement.call(this,e)},t.prototype.resetComponentElement=function(){i.prototype.resetComponentElement.call(this)},t.prototype.updateOnShowing=function(){var e=b.environment.root;this.prevActiveElement=e.activeElement,this.isOverlay?this.resetDimensionsAndPositionStyleProperties():this.updatePosition(!0,!1),this.switchFocus(),E.addEventListener("resize",this.resizeWindowCallback),this.shouldCreateResizeCallback&&(E.getVisualViewport().addEventListener("resize",this.resizeEventCallback),this.container&&(this.container.addEventListener("touchstart",this.touchStartEventCallback),this.container.addEventListener("touchmove",this.touchMoveEventCallback)),this.calculateIsTablet(),this.resizeEventCallback()),E.addEventListener("scroll",this.scrollEventCallBack),this._isPositionSetValue=!0},Object.defineProperty(t.prototype,"shouldCreateResizeCallback",{get:function(){return!!E.getVisualViewport()&&this.isOverlay&&ne},enumerable:!1,configurable:!0}),t.prototype.updatePosition=function(e,n){var r=this;n===void 0&&(n=!0),e&&(this.height="auto"),n?setTimeout(function(){r._updatePosition()},1):this._updatePosition()},t.prototype.updateOnHiding=function(){i.prototype.updateOnHiding.call(this),E.removeEventListener("resize",this.resizeWindowCallback),this.shouldCreateResizeCallback&&(E.getVisualViewport().removeEventListener("resize",this.resizeEventCallback),this.container&&(this.container.removeEventListener("touchstart",this.touchStartEventCallback),this.container.removeEventListener("touchmove",this.touchMoveEventCallback))),E.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(e){var n=this;this.model&&this.model.onRecalculatePosition.remove(this.recalculatePositionHandler),this.recalculatePositionHandler||(this.recalculatePositionHandler=function(r,o){n.isOverlay||n.updatePosition(o.isResetHeight)}),i.prototype.onModelChanging.call(this,e),e.onRecalculatePosition.add(this.recalculatePositionHandler)},t.prototype.dispose=function(){i.prototype.dispose.call(this),this.updateOnHiding(),this.model&&(this.model.onRecalculatePosition.remove(this.recalculatePositionHandler),this.recalculatePositionHandler=void 0),this.resetComponentElement()},t.tabletSizeBreakpoint=600,Br([h()],t.prototype,"isTablet",void 0),Br([h({defaultValue:"left"})],t.prototype,"popupDirection",void 0),Br([h({defaultValue:{left:"0px",top:"0px"}})],t.prototype,"pointerTarget",void 0),t}(_r),yc=function(){var i=function(t,e){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(n[o]=r[o])},i(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");i(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),$e=function(i,t,e,n){var r=arguments.length,o=r<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,e):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(i,t,e,n);else for(var a=i.length-1;a>=0;a--)(s=i[a])&&(o=(r<3?s(o):r>3?s(t,e,o):s(t,e))||o);return r>3&&o&&Object.defineProperty(t,e,o),o},Cn=function(i){yc(t,i);function t(e,n){var r=i.call(this)||this;r.question=e,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.listModelFilterStringChanged=function(s){r.filterString!==s&&(r.filterString=s)},r.questionPropertyChangedHandler=function(s,a){r.onPropertyChangedHandler(s,a)},r.htmlCleanerElement=I.createElement("div"),e.onPropertyChanged.add(r.questionPropertyChangedHandler),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();var o=e.cssClasses;return r.updateCssClasses(o.popup,o.list),r}return Object.defineProperty(t.prototype,"focusFirstInputSelector",{get:function(){return this.getFocusFirstInputSelector()},enumerable:!1,configurable:!0}),t.prototype.getFocusFirstInputSelector=function(){return ne?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,n){this.itemsSettings.items=[].concat(this.itemsSettings.items,e),this.itemsSettings.totalCount=n,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 n=this;this.question.survey.loadQuestionChoices({question:this.question,filter:this.filterString,skip:this.itemsSettings.skip,take:this.itemsSettings.take,setItems:function(r,o){n.setItems(r||[],o||0),n.popupRecalculatePosition(n.itemsSettings.skip===n.itemsSettings.take),e&&e()}}),this.itemsSettings.skip+=this.itemsSettings.take},t.prototype.updateQuestionChoices=function(e){var n=this,r=this.itemsSettings.skip+1<this.itemsSettings.totalCount;(!this.itemsSettings.skip||r)&&(this.resetTimer(),this.filterString&&b.dropdownSearchDelay>0?this.timer=setTimeout(function(){n.loadQuestionChoices(e)},b.dropdownSearchDelay):this.loadQuestionChoices(e))},t.prototype.resetTimer=function(){this.timer&&(clearTimeout(this.timer),this.timer=void 0)},t.prototype.updatePopupFocusFirstInputSelector=function(){this._popupModel.focusFirstInputSelector=this.focusFirstInputSelector},t.prototype.getDropdownMenuOptions=function(){var e=E.getInnerWidth(),n=E.getInnerHeight(),r=ls(e,n),o="dropdown",s="desktop";return ne&&(o=r?"popup":"overlay",s=r?"tablet":"mobile"),{menuType:o,deviceType:s,hasTouchScreen:ne,screenHeight:n,screenWidth:e}},t.prototype.createPopup=function(){var e=this,n={verticalPosition:"bottom",horizontalPosition:"center",showPointer:!1};this._popupModel=new Et("sv-list",{model:this.listModel},n),this._popupModel.displayMode=ne?"overlay":"popup",this._popupModel.positionMode="fixed",this._popupModel.isFocusedContainer=!1,this._popupModel.isFocusedContent=ne,this._popupModel.setWidthByTarget=!ne,this._popupModel.locale=this.question.getLocale(),this.updatePopupFocusFirstInputSelector(),this.listModel.registerPropertyChangedHandlers(["showFilter"],function(){e.updatePopupFocusFirstInputSelector()}),this._popupModel.onVisibilityChanged.add(function(r,o){if(o.isVisible&&(e.listModel.renderElements=!0),o.isVisible&&e.question.choicesLazyLoadEnabled&&(e.listModel.actions=[],e.resetItemsSettings(),e.updateQuestionChoices()),o.isVisible){e.updatePopupFocusFirstInputSelector();var s=e.getDropdownMenuOptions(),a=s.menuType;e.question.processOpenDropdownMenu(s),a!==s.menuType&&(e._popupModel.updateDisplayMode(s.menuType),e.listModel.setSearchEnabled(e.searchEnabled&&s.menuType!=="dropdown")),e.question.onOpenedCallBack&&e.question.onOpenedCallBack()}o.isVisible||(e.onHidePopup(),e.question.choicesLazyLoadEnabled&&e.resetItemsSettings()),e.question.ariaExpanded=o.isVisible?"true":"false",e.question.processPopupVisiblilityChanged(e.popupModel,o.isVisible)})},t.prototype.setFilterStringToListModel=function(e){var n=this;if(this.listModel.filterString=e,this.listModel.resetFocusedItem(),this.question.selectedItem&&this.question.selectedItem.text.indexOf(e)>=0){this.listModel.focusedItem=this.getAvailableItems().filter(function(r){return r.id==n.question.selectedItem.value})[0],this.listModel.filterString&&this.listModel.actions.map(function(r){return r.selectedValue=!1});return}(!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 n=this;setTimeout(function(){n.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 n=this;e.setOnTextSearchCallback(function(r,o){if(n.filteredItems)return n.filteredItems.indexOf(r)>=0;var s=r.text.toLocaleLowerCase();s=b.comparator.normalizeTextCallback(s,"filter");var a=s.indexOf(o.toLocaleLowerCase());return n.question.searchMode=="startsWith"?a==0:a>-1})},t.prototype.createListModel=function(){var e=this,n=this.getAvailableItems(),r=this.onSelectionChanged;r||(r=function(a){e.question.value=a.id,e.question.searchEnabled&&e.applyInputString(a),e.popupModel.hide()});var o={items:n,onSelectionChanged:r,allowSelection:!1,locOwner:this.question,elementId:this.listElementId},s=new Rt(o);return this.setOnTextSearchCallbackForListModel(s),s.renderElements=!1,s.forceShowFilter=!0,s.areSameItemsCallback=function(a,l){return a===l},s},t.prototype.updateAfterListModelCreated=function(e){var n=this;e.isItemSelected=function(r){return!!r.selected},e.onPropertyChanged.add(function(r,o){o.name=="hasVerticalScroller"&&(n.hasScroll=o.newValue)}),e.isAllDataLoaded=!this.question.choicesLazyLoadEnabled,e.actions.forEach(function(r){return r.disableTabStop=!0})},t.prototype.getPopupCssClasses=function(){return"sv-single-select-list"},t.prototype.updateCssClasses=function(e,n){this.popupModel.cssClass=new O().append(e).append(this.getPopupCssClasses()).toString(),this.listModel.cssClasses=n},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 n={question:this.question,choices:this.getAvailableItems(),filter:this.filterString,filteredChoices:void 0};this.question.survey.onChoicesSearch.fire(this.question.survey,n),this.filteredItems=n.filteredChoices,this.filterString&&!this.popupModel.isVisible&&this.popupModel.show();var r=function(){e.setFilterStringToListModel(e.filterString),e.popupRecalculatePosition(!0)};this.question.choicesLazyLoadEnabled?(this.resetItemsSettings(),this.updateQuestionChoices(r)):r()}},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){var n=e==null?void 0:e.locText.hasHtml;n||this.question.inputFieldComponentName?(this._markdownMode=!0,this.inputString=this.cleanHtml(e==null?void 0:e.locText.getHtmlValue()),this.hintString=""):(this.inputString=e==null?void 0:e.title,this.hintString=e==null?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){var n=e==null?void 0:e.locText.hasHtml;n||this.question.inputFieldComponentName?(this._markdownMode=!0,this.hintString=""):this.hintString=e==null?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((e=this.hintString)===null||e===void 0?void 0:e.toLowerCase())||""},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"inputStringLC",{get:function(){var e;return((e=this.inputString)===null||e===void 0?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 e==-1?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 ne?"none":"text"},enumerable:!1,configurable:!0}),t.prototype.setSearchEnabled=function(e){this.listModel.setSearchEnabled(ne&&e),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.focusInputElement(!1))},t.prototype.chevronPointerDown=function(e){this._popupModel.isVisible&&e.preventDefault()},t.prototype.onPropertyChangedHandler=function(e,n){n.name=="value"&&(this.showInputFieldComponent=this.question.showInputFieldComponent),n.name=="textWrapEnabled"&&this.setTextWrapEnabled(n.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 n,r=this.listModel.focusedItem;!r&&this.question.selectedItem?k.getItemByValue(this.question.visibleChoices,this.question.value)&&(this.listModel.focusedItem=this.question.selectedItem):e?this.listModel.focusPrevVisibleItem():this.listModel.focusNextVisibleItem(),this.beforeScrollToFocusedItem(r),this.scrollToFocusedItem(),this.afterScrollToFocusedItem(),this.ariaActivedescendant=(n=this.listModel.focusedItem)===null||n===void 0?void 0:n.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=(e=this.listModel.focusedItem)===null||e===void 0?void 0:e.elementId},t.prototype.keyHandler=function(e){var n=e.which||e.keyCode;if(this.popupModel.isVisible&&e.keyCode===38?(this.changeSelectionWithKeyboard(!0),e.preventDefault(),e.stopPropagation()):e.keyCode===40&&(this.popupModel.show(),this.changeSelectionWithKeyboard(!1),e.preventDefault(),e.stopPropagation()),e.keyCode===9)this.popupModel.hide();else if(!this.popupModel.isVisible&&(e.keyCode===13||e.keyCode===32))e.keyCode===32&&(this.popupModel.show(),this.changeSelectionWithKeyboard(!1)),e.keyCode===13&&this.question.survey.questionEditFinishCallback(this.question,e),e.preventDefault(),e.stopPropagation();else if(this.popupModel.isVisible&&(e.keyCode===13||e.keyCode===32&&(!this.question.searchEnabled||!this.inputString)))e.keyCode===13&&this.question.searchEnabled&&!this.inputString&&this.question instanceof qt&&!this._markdownMode&&this.question.value?(this._popupModel.hide(),this.onClear(e)):(this.listModel.selectFocusedItem(),this.onFocus(e)),e.preventDefault(),e.stopPropagation();else if(n===46||n===8)this.searchEnabled||this.onClear(e);else if(e.keyCode===27)this._popupModel.hide(),this.hintString="",this.onEscape();else{if((e.keyCode===38||e.keyCode===40||e.keyCode===32&&!this.question.searchEnabled)&&(e.preventDefault(),e.stopPropagation()),e.keyCode===32&&this.question.searchEnabled)return;fo(e,{processEsc:!1,disableTabStop:this.question.isInputReadOnly})}},t.prototype.onEscape=function(){this.question.searchEnabled&&this.applyInputString(this.question.selectedItem)},t.prototype.onScroll=function(e){var n=e.target;n.scrollHeight-(n.scrollTop+n.offsetHeight)<=this.loadingItemHeight&&this.updateQuestionChoices()},t.prototype.onBlur=function(e){if(this.focused=!1,this.popupModel.isVisible&&ne){this._popupModel.show();return}co(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(){i.prototype.dispose.call(this),this.question&&this.question.onPropertyChanged.remove(this.questionPropertyChangedHandler),this.questionPropertyChangedHandler=void 0,this.listModel&&this.listModel.dispose(),this.popupModel&&this.popupModel.dispose(),this.htmlCleanerElement=void 0},t.prototype.scrollToFocusedItem=function(){this.listModel.scrollToFocusedItem()},$e([h({defaultValue:!1})],t.prototype,"focused",void 0),$e([h({defaultValue:!0})],t.prototype,"searchEnabled",void 0),$e([h({defaultValue:"",onSet:function(e,n){n.onSetFilterString()}})],t.prototype,"filterString",void 0),$e([h({defaultValue:"",onSet:function(e,n){n.question.inputHasValue=!!e}})],t.prototype,"inputString",void 0),$e([h({})],t.prototype,"showInputFieldComponent",void 0),$e([h()],t.prototype,"ariaActivedescendant",void 0),$e([h({defaultValue:!1,onSet:function(e,n){e?n.listModel.addScrollEventListener(function(r){n.onScroll(r)}):n.listModel.removeScrollEventListener()}})],t.prototype,"hasScroll",void 0),$e([h({defaultValue:""})],t.prototype,"hintString",void 0),t}(z),mc=function(){var i=function(t,e){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(n[o]=r[o])},i(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");i(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),Be=function(i,t,e,n){var r=arguments.length,o=r<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,e):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(i,t,e,n);else for(var a=i.length-1;a>=0;a--)(s=i[a])&&(o=(r<3?s(o):r>3?s(t,e,o):s(t,e))||o);return r>3&&o&&Object.defineProperty(t,e,o),o},qt=function(i){mc(t,i);function t(e){var n=i.call(this,e)||this;return n.lastSelectedItemValue=null,n.minMaxChoices=[],n.onOpened=n.addEvent(),n.ariaExpanded="false",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 t.prototype.updateReadOnlyText=function(){var e=this.selectedItem?"":this.placeholder;this.renderAs=="select"&&(this.isOtherSelected?e=this.otherText:this.isNoneSelected?e=this.noneText:this.selectedItem&&(e=this.selectedItemText)),this.readOnlyText=e},t.prototype.locStrsChanged=function(){i.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||b.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 e=i.prototype.getChoices.call(this);if(this.choicesMax<=this.choicesMin)return e;for(var n=[],r=0;r<e.length;r++)n.push(e[r]);if(this.minMaxChoices.length===0||this.minMaxChoices.length!==(this.choicesMax-this.choicesMin)/this.choicesStep+1){this.minMaxChoices=[];for(var r=this.choicesMin;r<=this.choicesMax;r+=this.choicesStep)this.minMaxChoices.push(this.createItemValue(r))}return n=n.concat(this.minMaxChoices),n},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 O().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()},t.prototype.updateCssClasses=function(e,n){i.prototype.updateCssClasses.call(this,e,n),this.useDropdownList&&lr(e,n)},t.prototype.calcCssClasses=function(e){var n=i.prototype.calcCssClasses.call(this,e);return this.dropdownListModelValue&&this.dropdownListModel.updateCssClasses(n.popup,n.list),n},Object.defineProperty(t.prototype,"selectedItemLocText",{get:function(){var e=this.suggestedItem||this.selectedItem;return e==null?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,"useDropdownList",{get:function(){return this.renderAs!=="select"},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"dropdownListModel",{get:function(){return this.useDropdownList&&!this.dropdownListModelValue&&(this.dropdownListModelValue=new Cn(this)),this.dropdownListModelValue},set:function(e){this.dropdownListModelValue=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"popupModel",{get:function(){return this.dropdownListModel.popupModel},enumerable:!1,configurable:!0}),t.prototype.onOpenedCallBack=function(){this.onOpened.fire(this,{question:this,choices:this.choices})},t.prototype.onSelectedItemValuesChangedHandler=function(e){var n;(n=this.dropdownListModelValue)===null||n===void 0||n.setInputStringFromSelectedItem(e),i.prototype.onSelectedItemValuesChangedHandler.call(this,e)},t.prototype.hasUnknownValue=function(e,n,r,o){return this.choicesLazyLoadEnabled?!1:i.prototype.hasUnknownValue.call(this,e,n,r,o)},t.prototype.needConvertRenderedOtherToDataValue=function(){var e,n=(e=this.otherValue)===null||e===void 0?void 0:e.trim();return n?i.prototype.hasUnknownValue.call(this,n,!0,!1):!1},t.prototype.getItemIfChoicesNotContainThisValue=function(e,n){return this.choicesLazyLoadEnabled?this.createItemValue(e,n):i.prototype.getItemIfChoicesNotContainThisValue.call(this,e,n)},t.prototype.onVisibleChoicesChanged=function(){i.prototype.onVisibleChoicesChanged.call(this),this.dropdownListModelValue&&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(e){var n;i.prototype.clearValue.call(this,e),this.lastSelectedItemValue=null,(n=this.dropdownListModelValue)===null||n===void 0||n.clear()},t.prototype.afterRenderCore=function(e){i.prototype.afterRenderCore.call(this,e),this.dropdownListModelValue&&this.dropdownListModelValue.clear()},t.prototype.onClick=function(e){this.onOpenedCallBack&&this.onOpenedCallBack()},t.prototype.onKeyUp=function(e){var n=e.which||e.keyCode;n===46&&(this.clearValue(!0),e.preventDefault(),e.stopPropagation())},t.prototype.supportEmptyValidation=function(){return!0},t.prototype.onBlurCore=function(e){this.dropdownListModel.onBlur(e),i.prototype.onBlurCore.call(this,e)},t.prototype.onFocusCore=function(e){this.dropdownListModel.onFocus(e),i.prototype.onFocusCore.call(this,e)},t.prototype.dispose=function(){i.prototype.dispose.call(this),this.dropdownListModelValue&&(this.dropdownListModelValue.dispose(),this.dropdownListModelValue=void 0)},Be([h()],t.prototype,"allowClear",void 0),Be([h({onSet:function(e,n){n.dropdownListModelValue&&n.dropdownListModel.setSearchEnabled(e)}})],t.prototype,"searchEnabled",void 0),Be([h()],t.prototype,"searchMode",void 0),Be([h()],t.prototype,"textWrapEnabled",void 0),Be([h({defaultValue:!1})],t.prototype,"inputHasValue",void 0),Be([h({defaultValue:""})],t.prototype,"readOnlyText",void 0),Be([h({onSet:function(e,n){n.dropdownListModelValue&&n.dropdownListModel.setChoicesLazyLoadEnabled(e)}})],t.prototype,"choicesLazyLoadEnabled",void 0),Be([h()],t.prototype,"choicesLazyLoadPageSize",void 0),Be([h()],t.prototype,"suggestedItem",void 0),t}(jr);x.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:b.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 qt("")},"selectbase"),J.Instance.registerQuestion("dropdown",function(i){var t=new qt(i);return t.choices=J.DefaultChoices,t});var qr=function(){var i=function(t,e){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(n[o]=r[o])},i(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");i(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),us=function(i){qr(t,i);function t(e,n,r,o){var s=i.call(this)||this;return s.item=e,s.fullName=n,s.data=r,s.setValueDirectly(o),s.cellClick=function(a){s.value=a.value},s.registerPropertyChangedHandlers(["value"],function(){s.data&&s.data.onMatrixRowChanged(s)}),s.data&&s.data.hasErrorInRow(s)&&(s.hasError=!0),s}return 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 O().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 O().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}(z),cs=function(i){qr(t,i);function t(e){var n=i.call(this)||this;return n.cellsOwner=e,n.values={},n.locs={},n}return t.prototype.getType=function(){return"cells"},Object.defineProperty(t.prototype,"isEmpty",{get:function(){return Object.keys(this.values).length==0},enumerable:!1,configurable:!0}),t.prototype.valuesChanged=function(){!this.locNotification&&this.onValuesChanged&&this.onValuesChanged()},t.prototype.getDefaultCellLocText=function(e){return this.getCellLocCore(this.defaultRowValue,e)},t.prototype.getCellDisplayLocText=function(e,n){return this.getCellLocCore(e,n)},t.prototype.getCellLocCore=function(e,n){var r=this;if(e=this.getCellRowColumnValue(e,this.rows),n=this.getCellRowColumnValue(n,this.columns),P.isValueEmpty(e)||P.isValueEmpty(n))return null;this.locs[e]||(this.locs[e]={});var o=this.locs[e][n];return o||(o=this.createString(),o.setJson(this.getCellLocData(e,n)),o.onGetTextCallback=function(s){if(!s){var a=k.getItemByValue(r.columns,n);if(a)return a.locText.getJson()||a.value}return s},o.onStrChanged=function(s,a){r.updateValues(e,n,a)},this.locs[e][n]=o),o},Object.defineProperty(t.prototype,"defaultRowValue",{get:function(){return b.matrix.defaultRowName},enumerable:!1,configurable:!0}),t.prototype.getCellLocData=function(e,n){var r=this.getCellLocDataFromValue(e,n);return r||this.getCellLocDataFromValue(this.defaultRowValue,n)},t.prototype.getCellLocDataFromValue=function(e,n){return!this.values[e]||!this.values[e][n]?null:this.values[e][n]},t.prototype.getCellText=function(e,n){var r=this.getCellLocCore(e,n);return r?r.calculatedText:null},t.prototype.setCellText=function(e,n,r){var o=this.getCellLocCore(e,n);o&&(o.text=r)},t.prototype.updateValues=function(e,n,r){r?(this.values[e]||(this.values[e]={}),this.values[e][n]=r,this.valuesChanged()):this.values[e]&&this.values[e][n]&&(delete this.values[e][n],Object.keys(this.values[e]).length==0&&delete this.values[e],this.valuesChanged())},t.prototype.getDefaultCellText=function(e){var n=this.getCellLocCore(this.defaultRowValue,e);return n?n.calculatedText:null},t.prototype.setDefaultCellText=function(e,n){this.setCellText(this.defaultRowValue,e,n)},t.prototype.getCellDisplayText=function(e,n){var r=this.getCellDisplayLocText(e,n);return r?r.calculatedText:null},Object.defineProperty(t.prototype,"rows",{get:function(){return this.cellsOwner?this.cellsOwner.getRows():[]},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"columns",{get:function(){return this.cellsOwner?this.cellsOwner.getColumns():[]},enumerable:!1,configurable:!0}),t.prototype.getCellRowColumnValue=function(e,n){if(e==null)return null;if(typeof e=="number"){if(e<0||e>=n.length)return null;e=n[e].value}return e.value?e.value:e},t.prototype.getJson=function(){if(this.isEmpty)return null;var e=this.values[this.defaultRowValue],n={};for(var r in this.values){var o={},s=this.values[r];for(var a in s)(r===this.defaultRowValue||!e||e[a]!==s[a])&&(o[a]=s[a]);n[r]=o}return n},t.prototype.setJson=function(e,n){var r=this;if(this.values={},e){for(var o in e)if(o!="pos"){var s=e[o];this.values[o]={};for(var a in s)a!="pos"&&(this.values[o][a]=s[a])}}this.locNotification=!0,this.runFuncOnLocs(function(l,u,d){return d.setJson(r.getCellLocData(l,u))}),this.locNotification=!1,this.valuesChanged()},t.prototype.locStrsChanged=function(){this.runFuncOnLocs(function(e,n,r){return r.strChanged()})},t.prototype.runFuncOnLocs=function(e){for(var n in this.locs){var r=this.locs[n];for(var o in r)e(n,o,r[o])}},t.prototype.createString=function(){return new Se(this.cellsOwner,!0)},t}(z),Qr=function(i){qr(t,i);function t(e){var n=i.call(this,e)||this;return n.isRowChanging=!1,n.emptyLocalizableString=new Se(n),n.cellsValue=new cs(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.runCondition(n.getDataFilteredValues(),n.getDataFilteredProperties()),n.onRowsChanged()}),n.registerPropertyChangedHandlers(["hideIfRowsEmpty"],function(){n.updateVisibilityBasedOnRows()}),n}return 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(),e!=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,n){var r=new k(e,n);return this.columns.push(r),r},t.prototype.getItemClass=function(e,n){var r=e.value==n.value,o=this.isReadOnly,s=!r&&!o,a=this.hasCellText,l=this.cssClasses;return new O().append(l.cell,a).append(a?l.cellText:l.label).append(l.itemOnError,!a&&(this.isAllRowRequired||this.eachRowUnique?e.hasError:this.hasCssError())).append(a?l.cellTextSelected:l.itemChecked,r).append(a?l.cellTextDisabled:l.itemDisabled,this.isDisabledStyle).append(a?l.cellTextReadOnly:l.itemReadOnly,this.isReadOnlyStyle).append(a?l.cellTextPreview:l.itemPreview,this.isPreviewStyle).append(l.itemHover,s&&!a).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(){i.prototype.locStrsChanged.call(this),this.cells.locStrsChanged()},t.prototype.getQuizQuestionCount=function(){for(var e=0,n=0;n<this.rows.length;n++)this.isValueEmpty(this.correctAnswer[this.rows[n].value])||e++;return e},t.prototype.getCorrectAnswerCount=function(){for(var e=0,n=this.value,r=0;r<this.rows.length;r++){var o=this.rows[r].value;!this.isValueEmpty(n[o])&&this.isTwoValueEquals(this.correctAnswer[o],n[o])&&e++}return e},t.prototype.runCondition=function(e,n){k.runEnabledConditionsForItems(this.rows,void 0,e,n),i.prototype.runCondition.call(this,e,n)},t.prototype.createRowsVisibleIfRunner=function(){return this.rowsVisibleIf?new de(this.rowsVisibleIf):null},t.prototype.onRowsChanged=function(){this.clearGeneratedRows(),i.prototype.onRowsChanged.call(this)},t.prototype.getVisibleRows=function(){if(this.generatedVisibleRows)return this.generatedVisibleRows;var e=new Array,n=this.value;n||(n={});for(var r=this.filteredRows||this.rows,o=0;o<r.length;o++){var s=r[o];if(!this.isValueEmpty(s.value)){var a=this.id+"_"+s.value.toString().replace(/\s/g,"_");e.push(this.createMatrixRow(s,a,n[s.value]))}}return this.generatedVisibleRows=e,e},t.prototype.sortVisibleRows=function(e){if(this.survey&&this.survey.isDesignMode)return e;var n=this.rowsOrder.toLowerCase();return n==="random"?P.randomizeArray(e):e},t.prototype.endLoadingFromJson=function(){i.prototype.endLoadingFromJson.call(this),this.rows=this.sortVisibleRows(this.rows),this.onRowsChanged(),this.onColumnsChanged()},t.prototype.isNewValueCorrect=function(e){return P.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,n,r){this.cells.setCellText(e,n,r)},t.prototype.getCellText=function(e,n){return this.cells.getCellText(e,n)},t.prototype.setDefaultCellText=function(e,n){this.cells.setDefaultCellText(e,n)},t.prototype.getDefaultCellText=function(e){return this.cells.getDefaultCellText(e)},t.prototype.getCellDisplayText=function(e,n){return this.cells.getCellDisplayText(e,n)},t.prototype.getCellDisplayLocText=function(e,n){var r=this.cells.getCellDisplayLocText(e,n);return r||this.emptyLocalizableString},t.prototype.supportGoNextPageAutomatic=function(){return this.isMouseDown===!0&&this.hasValuesInAllRows()},t.prototype.onCheckForErrors=function(e,n,r){if(i.prototype.onCheckForErrors.call(this,e,n,r),!n||this.hasCssError()){var o={noValue:!1,isNotUnique:!1};this.checkErrorsAllRows(r,o),o.noValue&&e.push(new xu(null,this)),o.isNotUnique&&e.push(new Ou(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,n,r){var o=this,s=this.generatedVisibleRows;if(s||(s=this.visibleRows),!!s){var a=this.isAllRowRequired||r,l=this.eachRowUnique;if(n.noValue=!1,n.isNotUnique=!1,e&&(this.errorsInRow=void 0),!(!a&&!l)){for(var u={},d=0;d<s.length;d++){var v=s[d].value,V=this.isValueEmpty(v),T=l&&!V&&u[v]===!0;V=V&&a,e&&(V||T)&&this.addErrorIntoRow(s[d]),V||(u[v]=!0),n.noValue=n.noValue||V,n.isNotUnique=n.isNotUnique||T}e&&s.forEach(function(R){R.hasError=o.hasErrorInRow(R)})}}},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 i.prototype.getIsAnswered.call(this)&&this.hasValuesInAllRows()},t.prototype.createMatrixRow=function(e,n,r){var o=new us(e,n,this,r);return this.onMatrixRowCreated(o),o},t.prototype.onMatrixRowCreated=function(e){},t.prototype.setQuestionValue=function(e,n){if(n===void 0&&(n=!0),i.prototype.setQuestionValue.call(this,e,this.isRowChanging||n),!(!this.generatedVisibleRows||this.generatedVisibleRows.length==0)){this.isRowChanging=!0;var r=this.value;if(r||(r={}),this.rows.length==0)this.generatedVisibleRows[0].setValueDirectly(r);else for(var o=0;o<this.generatedVisibleRows.length;o++){var s=this.generatedVisibleRows[o],a=r[s.name];this.isValueEmpty(a)&&(a=null),this.generatedVisibleRows[o].setValueDirectly(a)}this.refreshRowsErrors(),this.updateIsAnswered(),this.isRowChanging=!1}},t.prototype.getDisplayValueCore=function(e,n){var r={};for(var o in n){var s=e?k.getTextOrHtmlByValue(this.rows,o):o;s||(s=o);var a=k.getTextOrHtmlByValue(this.columns,n[o]);a||(a=n[o]),r[s]=a}return r},t.prototype.getPlainData=function(e){var n=this;e===void 0&&(e={includeEmpty:!0});var r=i.prototype.getPlainData.call(this,e);if(r){var o=this.createValueCopy();r.isNode=!0,r.data=Object.keys(o||{}).map(function(s){var a=n.rows.filter(function(d){return d.value===s})[0],l={name:s,title:a?a.text:"row",value:o[s],displayValue:k.getTextOrHtmlByValue(n.visibleColumns,o[s]),getString:function(d){return typeof d=="object"?JSON.stringify(d):d},isNode:!1},u=k.getItemByValue(n.visibleColumns,o[s]);return u&&(e.calculations||[]).forEach(function(d){l[d.propertyName]=u[d.propertyName]}),l})}return r},t.prototype.addConditionObjectsByContext=function(e,n){for(var r=0;r<this.rows.length;r++){var o=this.rows[r];o.value&&e.push({name:this.getValueName()+"."+o.value,text:this.processedTitle+"."+o.calculatedText,question:this})}},t.prototype.getConditionJson=function(e,n){if(e===void 0&&(e=null),n===void 0&&(n=null),!n)return i.prototype.getConditionJson.call(this,e);var r=new qt(n);r.choices=this.columns;var o=new fe().toJsonObject(r);return o.type=r.getType(),o},t.prototype.clearIncorrectValues=function(){this.clearInvisibleValuesInRowsAndColumns(!0,!0,!0),i.prototype.clearIncorrectValues.call(this)},t.prototype.clearValueIfInvisibleCore=function(e){i.prototype.clearValueIfInvisibleCore.call(this,e),this.clearInvisibleValuesInRowsAndColumns(!0,!0,!1)},t.prototype.clearInvisibleColumnValues=function(){this.clearInvisibleValuesInRowsAndColumns(!1,!0,!1)},t.prototype.clearInvisibleValuesInRows=function(){this.clearInvisibleValuesInRowsAndColumns(!0,!1,!1)},t.prototype.clearInvisibleValuesInRowsAndColumns=function(e,n,r){if(!this.isEmpty()){for(var o=this.getUnbindValue(this.value),s={},a=this.rows,l=0;l<a.length;l++){var u=a[l].value;o[u]&&(e&&!a[l].isVisible||n&&!this.getVisibleColumnByValue(o[u])?delete o[u]:s[u]=o[u])}r&&(o=s),!this.isTwoValueEquals(o,this.value)&&(this.value=o)}},t.prototype.getVisibleColumnByValue=function(e){var n=k.getItemByValue(this.columns,e);return n&&n.isVisible?n:null},t.prototype.getFirstInputElementId=function(){var e=this.generatedVisibleRows;return e||(e=this.visibleRows),e.length>0&&this.visibleColumns.length>0?this.inputId+"_"+e[0].name+"_0":i.prototype.getFirstInputElementId.call(this)},t.prototype.onMatrixRowChanged=function(e){if(!this.isRowChanging){if(this.isRowChanging=!0,!this.hasRows)this.setNewValue(e.value);else{var n=this.value;n||(n={}),n[e.name]=e.value,this.setNewValue(n)}this.isRowChanging=!1}},t.prototype.getCorrectedRowValue=function(e){for(var n=0;n<this.columns.length;n++)if(e===this.columns[n].value)return e;for(var n=0;n<this.columns.length;n++)if(this.isTwoValueEquals(e,this.columns[n].value))return this.columns[n].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}(gr);x.addClass("matrix",["rowTitleWidth",{name:"columns:itemvalue[]",uniqueProperty:"value",baseValue:function(){return oe("matrix_column")}},{name:"rows:itemvalue[]",uniqueProperty:"value",baseValue:function(){return oe("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 Qr("")},"matrixbase"),J.Instance.registerQuestion("matrix",function(i){var t=new Qr(i);return t.rows=J.DefaultRows,t.columns=J.DefaultColums,t});var fs=function(){var i=function(t,e){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(n[o]=r[o])},i(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");i(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),ps=function(i,t,e,n){var r=arguments.length,o=r<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,e):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(i,t,e,n);else for(var a=i.length-1;a>=0;a--)(s=i[a])&&(o=(r<3?s(o):r>3?s(t,e,o):s(t,e))||o);return r>3&&o&&Object.defineProperty(t,e,o),o},ds=function(i){fs(t,i);function t(){return i!==null&&i.apply(this,arguments)||this}return t.prototype.updateRemainingCharacterCounter=function(e,n){this.remainingCharacterCounter=P.getRemainingCharacterCounterText(e,n)},ps([h()],t.prototype,"remainingCharacterCounter",void 0),t}(z),Pn=function(i){fs(t,i);function t(e){var n=i.call(this,e)||this;return n.characterCounter=new ds,n}return 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 P.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 i.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 this.textUpdateMode=="default"?i.prototype.getIsInputTextUpdate.call(this):this.textUpdateMode=="onTyping"},Object.defineProperty(t.prototype,"renderedPlaceholder",{get:function(){var e=this,n=function(){return e.hasPlaceholder()?e.placeHolder:void 0};return this.getPropertyValue("renderedPlaceholder",void 0,n)},enumerable:!1,configurable:!0}),t.prototype.onReadOnlyChanged=function(){i.prototype.onReadOnlyChanged.call(this),this.resetRenderedPlaceholder()},t.prototype.localeChanged=function(){i.prototype.localeChanged.call(this),this.resetRenderedPlaceholder()},t.prototype.supportEmptyValidation=function(){return!0},t.prototype.resetRenderedPlaceholder=function(){this.resetPropertyValue("renderedPlaceholder")},t.prototype.hasPlaceholder=function(){return!this.isReadOnly},t.prototype.setNewValue=function(e){i.prototype.setNewValue.call(this,e),this.updateRemainingCharacterCounter(e)},t.prototype.setQuestionValue=function(e,n){n===void 0&&(n=!0),i.prototype.setQuestionValue.call(this,e,n),this.updateRemainingCharacterCounter(e)},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 O().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}),ps([h({localizable:!0,onSet:function(e,n){return n.resetRenderedPlaceholder()}})],t.prototype,"placeholder",void 0),t}(ue);x.addClass("textbase",[],function(){return new Pn("")},"question");var vc=function(){function i(t,e,n){var r=this;this.inputMaskInstance=t,this.inputElement=e,this.prevUnmaskedValue=void 0,this.inputMaskInstancePropertyChangedHandler=function(s,a){if(a.name!=="saveMaskedValue"){var l=r.inputMaskInstance.getMaskedValue(r.prevUnmaskedValue);r.inputElement.value=l}},this.clickHandler=function(s){r.inputElement.value==r.inputMaskInstance.getMaskedValue("")&&r.inputElement.setSelectionRange(0,0)},this.beforeInputHandler=function(s){var a=r.createArgs(s),l=r.inputMaskInstance.processInput(a);r.inputElement.value=l.value,r.inputElement.setSelectionRange(l.caretPosition,l.caretPosition),l.cancelPreventDefault||s.preventDefault()},this.changeHandler=function(s){var a=r.inputMaskInstance.processInput({prevValue:"",insertedChars:s.target.value,selectionStart:0,selectionEnd:0});r.inputElement.value=a.value};var o=n;o==null&&(o=""),this.inputElement.value=t.getMaskedValue(o),this.prevUnmaskedValue=o,t.onPropertyChanged.add(this.inputMaskInstancePropertyChangedHandler),this.addInputEventListener()}return i.prototype.createArgs=function(t){var e={insertedChars:t.data,selectionStart:t.target.selectionStart,selectionEnd:t.target.selectionEnd,prevValue:t.target.value,inputDirection:"forward"};return t.inputType==="deleteContentBackward"&&(e.inputDirection="backward",e.selectionStart===e.selectionEnd&&(e.selectionStart=Math.max(e.selectionStart-1,0))),t.inputType==="deleteContentForward"&&e.selectionStart===e.selectionEnd&&(e.selectionEnd+=1),e},i.prototype.addInputEventListener=function(){this.inputElement&&(this.inputElement.addEventListener("beforeinput",this.beforeInputHandler),this.inputElement.addEventListener("click",this.clickHandler),this.inputElement.addEventListener("focus",this.clickHandler),this.inputElement.addEventListener("change",this.changeHandler))},i.prototype.removeInputEventListener=function(){this.inputElement&&(this.inputElement.removeEventListener("beforeinput",this.beforeInputHandler),this.inputElement.removeEventListener("click",this.clickHandler),this.inputElement.removeEventListener("focus",this.clickHandler),this.inputElement.removeEventListener("change",this.changeHandler))},i.prototype.dispose=function(){this.removeInputEventListener(),this.inputElement=void 0,this.inputMaskInstance.onPropertyChanged.remove(this.inputMaskInstancePropertyChangedHandler)},i}(),zr=/[0-9]/;function hs(){var i=x.getChildrenClasses("masksettings")||[],t=i.map(function(e){var n=e.name;return e.name.indexOf("mask")!==-1&&(n=n.slice(0,n.indexOf("mask"))),n});return t.unshift("none"),t}var bc=function(){var i=function(t,e){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(n[o]=r[o])},i(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");i(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),Hr=function(i,t,e,n){var r=arguments.length,o=r<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,e):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(i,t,e,n);else for(var a=i.length-1;a>=0;a--)(s=i[a])&&(o=(r<3?s(o):r>3?s(t,e,o):s(t,e))||o);return r>3&&o&&Object.defineProperty(t,e,o),o},Vn=function(i){bc(t,i);function t(e){var n=i.call(this,e)||this;return n._isWaitingForEnter=!1,n.onCompositionUpdate=function(r){n.isInputTextUpdate&&setTimeout(function(){n.updateValueOnEvent(r)},1),n.updateRemainingCharacterCounter(r.target.value)},n.onKeyUp=function(r){n.updateDateValidationMessage(r),n.isInputTextUpdate?(!n._isWaitingForEnter||r.keyCode===13)&&(n.updateValueOnEvent(r),n._isWaitingForEnter=!1):r.keyCode===13&&n.updateValueOnEvent(r),n.updateRemainingCharacterCounter(r.target.value)},n.onKeyDown=function(r){n.onKeyDownPreprocess&&n.onKeyDownPreprocess(r),n.isInputTextUpdate&&(n._isWaitingForEnter=r.keyCode===229),n.onTextKeyDownHandler(r)},n.onChange=function(r){n.updateDateValidationMessage(r);var o=r.target===b.environment.root.activeElement;o?n.isInputTextUpdate&&n.updateValueOnEvent(r):n.updateValueOnEvent(r),n.updateRemainingCharacterCounter(r.target.value)},n.createLocalizableString("minErrorText",n,!0,"minError"),n.createLocalizableString("maxErrorText",n,!0,"maxError"),n.setNewMaskSettingsProperty(),n.locDataListValue=new so(n),n.locDataListValue.onValueChanged=function(r,o){n.propertyValueChanged("dataList",r,o)},n.registerPropertyChangedHandlers(["min","max","inputType","minValueExpression","maxValueExpression"],function(){n.setRenderedMinMax()}),n.registerPropertyChangedHandlers(["inputType","size"],function(){n.updateInputSize(),n.resetRenderedPlaceholder()}),n}return t.prototype.createMaskAdapter=function(){this.input&&!this.maskTypeIsEmpty&&(this.maskInputAdapter=new vc(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 this.maskType==="none";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||this.maskType==="none"?"masksettings":this.maskType+"mask";x.findClass(e)||(e="masksettings");var n=x.createClass(e);return n.owner=this.survey,n},t.prototype.isTextValue=function(){return this.isDateInputType||["text","number","password"].indexOf(this.inputType)>-1},t.prototype.getType=function(){return"text"},t.prototype.onSurveyLoad=function(){i.prototype.onSurveyLoad.call(this),this.setRenderedMinMax(),this.updateInputSize()},Object.defineProperty(t.prototype,"inputType",{get:function(){return this.getPropertyValue("inputType")},set:function(e){e=e.toLowerCase(),(e==="datetime_local"||e==="datetime")&&(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?i.prototype.getMaxLength.call(this):null},t.prototype.runCondition=function(e,n){i.prototype.runCondition.call(this,e,n),(this.minValueExpression||this.maxValueExpression)&&this.setRenderedMinMax(e,n)},t.prototype.getDisplayValueCore=function(e,n){return!this.maskTypeIsEmpty&&!P.isValueEmpty(n)?this.maskInstance.getMaskedValue(n):i.prototype.getDisplayValueCore.call(this,e,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){if(this.isValueExpression(e)){this.minValueExpression=e.substring(1);return}this.setPropertyValue("min",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"max",{get:function(){return this.getPropertyValue("max")},set:function(e){if(this.isValueExpression(e)){this.maxValueExpression=e.substring(1);return}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 Le(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&&!this.maskTypeIsEmpty?this.maskInstance.getMaskedValue(""):this._inputValue},set:function(e){var n=e;this._inputValue=e,this.maskTypeIsEmpty||(n=this.maskInstance.getUnmaskedValue(e),this._inputValue=this.maskInstance.getMaskedValue(n),n&&this.maskSettings.saveMaskedValue&&(n=this.maskInstance.getMaskedValue(n))),this.value=n},enumerable:!1,configurable:!0}),t.prototype.onChangeQuestionValue=function(e){i.prototype.onChangeQuestionValue.call(this,e),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.hasToConvertToUTC=function(e){return b.storeUtcDates&&this.isDateTimeLocaleType()&&!!e},t.prototype.createDate=function(e){return Z("question-text",e)},t.prototype.valueForSurveyCore=function(e){return this.hasToConvertToUTC(e)&&(e=this.createDate(e).toISOString()),i.prototype.valueForSurveyCore.call(this,e)},t.prototype.valueFromDataCore=function(e){if(this.hasToConvertToUTC(e)){var n=this.createDate(e),r=this.createDate(n.getTime()-n.getTimezoneOffset()*60*1e3),o=r.toISOString();e=o.substring(0,o.length-2)}return i.prototype.valueFromDataCore.call(this,e)},t.prototype.onCheckForErrors=function(e,n,r){var o=this;if(i.prototype.onCheckForErrors.call(this,e,n,r),!n){if(this.isValueLessMin){var s=new we(this.getMinMaxErrorText(this.minErrorText,this.getCalculatedMinMax(this.renderedMin)),this);s.onUpdateErrorTextCallback=function(v){v.text=o.getMinMaxErrorText(o.minErrorText,o.getCalculatedMinMax(o.renderedMin))},e.push(s)}if(this.isValueGreaterMax){var a=new we(this.getMinMaxErrorText(this.maxErrorText,this.getCalculatedMinMax(this.renderedMax)),this);a.onUpdateErrorTextCallback=function(v){v.text=o.getMinMaxErrorText(o.maxErrorText,o.getCalculatedMinMax(o.renderedMax))},e.push(a)}this.dateValidationMessage&&e.push(new we(this.dateValidationMessage,this));var l=this.getValidatorTitle(),u=new ur;if(u.errorOwner=this,this.inputType==="email"&&!this.validators.some(function(v){return v.getType()==="emailvalidator"})){var d=u.validate(this.value,l);d&&d.error&&e.push(d.error)}}},t.prototype.canSetValueToSurvey=function(){if(!this.isMinMaxType)return!0;var e=!this.isValueLessMin&&!this.isValueGreaterMax;return(!e||this.errors.length>0)&&this.survey&&(this.survey.isValidateOnValueChanging||this.survey.isValidateOnValueChanged)&&this.hasErrors(),e},t.prototype.convertFuncValuetoQuestionValue=function(e){var n=this.maskTypeIsEmpty?this.inputType:this.maskSettings.getTypeForExpressions();return P.convertValToQuestionVal(e,n)},t.prototype.getMinMaxErrorText=function(e,n){if(P.isValueEmpty(n))return e;var r=n.toString();return this.inputType==="date"&&n.toDateString&&(r=n.toDateString()),e.replace("{0}",r)},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 this.inputType==="date"||this.isDateTimeLocaleType()},enumerable:!1,configurable:!0}),t.prototype.isDateTimeLocaleType=function(){return this.inputType==="datetime-local"},t.prototype.getCalculatedMinMax=function(e){return this.isValueEmpty(e)?e:this.isDateInputType?this.createDate(e):e},t.prototype.setRenderedMinMax=function(e,n){var r=this;e===void 0&&(e=null),n===void 0&&(n=null),this.minValueRunner=this.getDefaultRunner(this.minValueRunner,this.minValueExpression),this.setValueAndRunExpression(this.minValueRunner,this.min,function(o){!o&&r.isDateInputType&&b.minDate&&(o=b.minDate),r.setPropertyValue("renderedMin",o)},e,n),this.maxValueRunner=this.getDefaultRunner(this.maxValueRunner,this.maxValueExpression),this.setValueAndRunExpression(this.maxValueRunner,this.max,function(o){!o&&r.isDateInputType&&(o=b.maxDate?b.maxDate:"2999-12-31"),r.setPropertyValue("renderedMax",o)},e,n)},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)?this.inputType!=="number"?void 0:"any":this.step},enumerable:!1,configurable:!0}),t.prototype.getIsInputTextUpdate=function(){return this.maskTypeIsEmpty?i.prototype.getIsInputTextUpdate.call(this):!1},t.prototype.supportGoNextPageAutomatic=function(){return!this.getIsInputTextUpdate()&&!this.isDateInputType},t.prototype.supportGoNextPageError=function(){return!this.isDateInputType},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.setNewValue=function(e){e=this.correctValueType(e),e&&(this.dateValidationMessage=void 0),i.prototype.setNewValue.call(this,e)},t.prototype.correctValueType=function(e){if(!e)return e;if(this.inputType==="number"||this.inputType==="range")return P.isNumber(e)?P.getNumber(e):"";if(this.inputType==="month"){var n=this.createDate(e),r=n.toISOString().indexOf(e)==0&&e.indexOf("T")==-1,o=r?n.getUTCMonth():n.getMonth(),s=r?n.getUTCFullYear():n.getFullYear(),a=o+1;return s+"-"+(a<10?"0":"")+a}return e},t.prototype.hasPlaceholder=function(){return!this.isReadOnly&&this.inputType!=="range"},t.prototype.getControlCssClassBuilder=function(){var e=this.getMaxLength();return i.prototype.getControlCssClassBuilder.call(this).append(this.cssClasses.constrolWithCharacterCounter,!!e).append(this.cssClasses.characterCounterBig,e>99)},t.prototype.isReadOnlyRenderDiv=function(){return this.isReadOnly&&b.readOnly.textRenderMode==="div"},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){this.inputTextAlignment!=="auto"?e.textAlign=this.inputTextAlignment:!this.maskTypeIsEmpty&&this.maskSettings.getTextAlignment()!=="auto"&&(e.textAlign=this.maskSettings.getTextAlignment())},t.prototype.updateValueOnEvent=function(e){var n=e.target.value;this.isTwoValueEquals(this.value,n)||(this.inputValue=n)},t.prototype.updateDateValidationMessage=function(e){this.dateValidationMessage=this.isDateInputType&&e.target?e.target.validationMessage:void 0},t.prototype.onBlurCore=function(e){this.updateDateValidationMessage(e),this.updateValueOnEvent(e),this.updateRemainingCharacterCounter(e.target.value),i.prototype.onBlurCore.call(this,e)},t.prototype.onFocusCore=function(e){this.updateRemainingCharacterCounter(e.target.value),i.prototype.onFocusCore.call(this,e)},t.prototype.afterRenderQuestionElement=function(e){e&&(this.input=e instanceof HTMLInputElement?e:e.querySelector("input"),this.createMaskAdapter()),i.prototype.afterRenderQuestionElement.call(this,e)},t.prototype.beforeDestroyQuestionElement=function(e){this.deleteMaskAdapter(),this.input=void 0},Hr([h({onSet:function(e,n){n.onSetMaskType(e)}})],t.prototype,"maskType",void 0),Hr([h()],t.prototype,"inputTextAlignment",void 0),Hr([h()],t.prototype,"_inputValue",void 0),t}(Pn),Cc=["number","range","date","datetime-local","month","time","week"];function Le(i){var t=i?i.inputType:"";return t?Cc.indexOf(t)>-1:!1}function gs(i,t){var e=i.split(t);return e.length!==2||!P.isNumber(e[0])||!P.isNumber(e[1])?-1:parseFloat(e[0])*60+parseFloat(e[1])}function Pc(i,t,e){var n=gs(i,e),r=gs(t,e);return n<0||r<0?!1:n>r}function ys(i,t,e,n){var r=n?e:t;if(!Le(i)||P.isValueEmpty(t)||P.isValueEmpty(e))return r;if(i.inputType.indexOf("date")===0||i.inputType==="month"){var o=i.inputType==="month",s="question-text-minmax",a=Z(s,o?t+"-01":t),l=Z(s,o?e+"-01":e);if(!a||!l)return r;if(a>l)return n?t:e}if(i.inputType==="week"||i.inputType==="time"){var u=i.inputType==="week"?"-W":":";return Pc(t,e,u)?n?t:e:r}if(i.inputType==="number"){if(!P.isNumber(t)||!P.isNumber(e))return r;if(P.getNumber(t)>P.getNumber(e))return n?t:e}return typeof t=="string"||typeof e=="string"?r:t>e?n?t:e:r}function ms(i,t){i&&i.inputType&&(t.inputType=i.inputType!=="range"?i.inputType:"number",t.textUpdateMode="onBlur")}x.addClass("text",[{name:"inputType",default:"text",choices:b.questions.inputTypes},{name:"size:number",minValue:0,dependsOn:"inputType",visibleIf:function(i){return i?i.isTextInput:!1}},{name:"textUpdateMode",default:"default",choices:["default","onBlur","onTyping"],dependsOn:"inputType",visibleIf:function(i){return i?i.isTextInput:!1}},{name:"autocomplete",alternativeName:"autoComplete",choices:b.questions.dataList},{name:"min",dependsOn:"inputType",visibleIf:function(i){return Le(i)},onPropertyEditorUpdate:function(i,t){ms(i,t)},onSettingValue:function(i,t){return ys(i,t,i.max,!1)}},{name:"max",dependsOn:"inputType",nextToProperty:"*min",visibleIf:function(i){return Le(i)},onSettingValue:function(i,t){return ys(i,i.min,t,!0)},onPropertyEditorUpdate:function(i,t){ms(i,t)}},{name:"minValueExpression:expression",category:"logic",dependsOn:"inputType",visibleIf:function(i){return Le(i)}},{name:"maxValueExpression:expression",category:"logic",dependsOn:"inputType",visibleIf:function(i){return Le(i)}},{name:"minErrorText",serializationProperty:"locMinErrorText",dependsOn:"inputType",visibleIf:function(i){return Le(i)}},{name:"maxErrorText",serializationProperty:"locMaxErrorText",dependsOn:"inputType",visibleIf:function(i){return Le(i)}},{name:"inputTextAlignment",default:"auto",choices:["left","right","auto"]},{name:"maskType",default:"none",visibleIndex:0,dependsOn:"inputType",visibleIf:function(i){return i.inputType==="text"||i.inputType==="tel"},choices:function(i){var t=hs();return t}},{name:"maskSettings:masksettings",className:"masksettings",visibleIndex:1,dependsOn:["inputType","maskType"],visibleIf:function(i){return i.inputType==="text"||i.inputType==="tel"},onGetValue:function(i){return i.maskSettings.getData()},onSetValue:function(i,t){i.maskSettings.setData(t)}},{name:"step:number",dependsOn:"inputType",visibleIf:function(i){return i?i.inputType==="number"||i.inputType==="range":!1}},{name:"maxLength:number",default:-1,dependsOn:"inputType",visibleIf:function(i){return i?i.isTextInput:!1}},{name:"placeholder",alternativeName:"placeHolder",serializationProperty:"locPlaceholder",dependsOn:"inputType",visibleIf:function(i){return i?i.isTextInput:!1}},{name:"dataList:string[]",serializationProperty:"locDataList",dependsOn:"inputType",visibleIf:function(i){return i?i.inputType==="text":!1}}],function(){return new Vn("")},"textbase"),J.Instance.registerQuestion("text",function(i){return new Vn(i)});var Ct=function(){var i=function(t,e){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(n[o]=r[o])},i(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");i(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),Ur=function(i,t,e,n){var r=arguments.length,o=r<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,e):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(i,t,e,n);else for(var a=i.length-1;a>=0;a--)(s=i[a])&&(o=(r<3?s(o):r>3?s(t,e,o):s(t,e))||o);return r>3&&o&&Object.defineProperty(t,e,o),o},vs=function(i){Ct(t,i);function t(){return i!==null&&i.apply(this,arguments)||this}return 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}(Vn),Wr=function(i){Ct(t,i);function t(e,n){e===void 0&&(e=null),n===void 0&&(n=null);var r=i.call(this)||this;return r.focusIn=function(){r.editor.focusIn()},r.editorValue=r.createEditor(e),r.maskSettings=r.editorValue.maskSettings,r.editor.questionTitleTemplateCallback=function(){return""},r.editor.titleLocation="left",n&&(r.title=n),r.editor.onPropertyChanged.add(function(o,s){r.onPropertyChanged.fire(r,s)}),r}return 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 vs(e)},t.prototype.addUsedLocales=function(e){i.prototype.addUsedLocales.call(this,e),this.editor.addUsedLocales(e)},t.prototype.localeChanged=function(){i.prototype.localeChanged.call(this),this.editor.localeChanged()},t.prototype.locStrsChanged=function(){i.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 P.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){this.data!=null&&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,n){this.data&&this.data.setMultipleTextValue(e,n)},t.prototype.getVariable=function(e){},t.prototype.setVariable=function(e,n){},t.prototype.getComment=function(e){return null},t.prototype.setComment=function(e,n){},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 n=this.getSurvey();return n?n.getQuestionByName(e):null},t.prototype.getEditingSurveyElement=function(){},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}(z),wn=function(i){Ct(t,i);function t(e){var n=i.call(this,e)||this;return n.isMultipleItemValueChanging=!1,n.createNewArray("items",function(r){r.setData(n),n.survey&&n.survey.multipleTextItemAdded(n,r)}),n.registerPropertyChangedHandlers(["items","colCount","itemErrorLocation"],function(){n.calcVisibleRows()}),n.registerPropertyChangedHandlers(["itemSize"],function(){n.updateItemsSize()}),n}return t.addDefaultItems=function(e){for(var n=J.DefaultMutlipleTextItems,r=0;r<n.length;r++)e.addItem(n[r])},t.prototype.getType=function(){return"multipletext"},t.prototype.setSurveyImpl=function(e,n){i.prototype.setSurveyImpl.call(this,e,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 n;(n=this.items)===null||n===void 0||n.map(function(r,o){return r.editor.id=e+"_"+o}),this.setPropertyValue("id",e)},enumerable:!1,configurable:!0}),t.prototype.onSurveyLoad=function(){this.editorsOnSurveyLoad(),i.prototype.onSurveyLoad.call(this)},t.prototype.setQuestionValue=function(e,n){n===void 0&&(n=!0),i.prototype.setQuestionValue.call(this,e,n),this.performForEveryEditor(function(r){r.editor.updateValueFromSurvey(r.value)}),this.updateIsAnswered()},t.prototype.onSurveyValueChanged=function(e){i.prototype.onSurveyValueChanged.call(this,e),this.performForEveryEditor(function(n){n.editor.onSurveyValueChanged(n.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 n=0;n<this.items.length;n++){var r=this.items[n];r.editor&&e(r)}},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,n){n===void 0&&(n=null);var r=this.createTextItem(e,n);return this.items.push(r),r},t.prototype.getItemByName=function(e){for(var n=0;n<this.items.length;n++)if(this.items[n].name==e)return this.items[n];return null},t.prototype.getElementsInDesign=function(e){e===void 0&&(e=!1);var n;return n=i.prototype.getElementsInDesign.call(this,e),n.concat(this.items)},t.prototype.addConditionObjectsByContext=function(e,n){for(var r=0;r<this.items.length;r++){var o=this.items[r];e.push({name:this.getValueName()+"."+o.name,text:this.processedTitle+"."+o.fullTitle,question:this})}},t.prototype.collectNestedQuestionsCore=function(e,n){this.items.forEach(function(r){return r.editor.collectNestedQuestions(e,n)})},t.prototype.getConditionJson=function(e,n){if(e===void 0&&(e=null),n===void 0&&(n=null),!n)return i.prototype.getConditionJson.call(this,e);var r=this.getItemByName(n);if(!r)return null;var o=new fe().toJsonObject(r);return o.type="text",o},t.prototype.locStrsChanged=function(){i.prototype.locStrsChanged.call(this);for(var e=0;e<this.items.length;e++)this.items[e].locStrsChanged()},t.prototype.localeChanged=function(){i.prototype.localeChanged.call(this);for(var e=0;e<this.items.length;e++)this.items[e].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 this.itemErrorLocation!=="default"?this.itemErrorLocation:this.getErrorLocation()},Object.defineProperty(t.prototype,"showItemErrorOnTop",{get:function(){return this.getQuestionErrorLocation()=="top"},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"showItemErrorOnBottom",{get:function(){return this.getQuestionErrorLocation()=="bottom"},enumerable:!1,configurable:!0}),t.prototype.getChildErrorLocation=function(e){return this.getQuestionErrorLocation()},t.prototype.isNewValueCorrect=function(e){return P.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=this.colCount,n=this.items,r=0,o,s,a=[],l=0;l<n.length;l++)r==0&&(o=this.onRowCreated(new $r),s=this.onRowCreated(new bs),this.showItemErrorOnTop?(a.push(s),a.push(o)):(a.push(o),a.push(s))),o.cells.push(new Jr(n[l],this)),s.cells.push(new Cs(n[l],this)),r++,(r>=e||l==n.length-1)&&(r=0,s.onAfterCreated());this.rows=a},t.prototype.getRows=function(){return P.isValueEmpty(this.rows)&&this.calcVisibleRows(),this.rows},t.prototype.onValueChanged=function(){i.prototype.onValueChanged.call(this),this.onItemValueChanged()},t.prototype.createTextItem=function(e,n){return new Wr(e,n)},t.prototype.onItemValueChanged=function(){if(!this.isMultipleItemValueChanging)for(var e=0;e<this.items.length;e++){var n=null;this.value&&this.items[e].name in this.value&&(n=this.value[this.items[e].name]),this.items[e].onValueChanged(n)}},t.prototype.runCondition=function(e,n){i.prototype.runCondition.call(this,e,n),this.items.forEach(function(r){return r.editor.runCondition(e,n)})},t.prototype.getIsRunningValidators=function(){if(i.prototype.getIsRunningValidators.call(this))return!0;for(var e=0;e<this.items.length;e++)if(this.items[e].editor.isRunningValidators)return!0;return!1},t.prototype.hasErrors=function(e,n){var r=this;e===void 0&&(e=!0),n===void 0&&(n=null);for(var o=!1,s=0;s<this.items.length;s++)this.items[s].editor.onCompletedAsyncValidators=function(a){r.raiseOnCompletedAsyncValidators()},!(n&&n.isOnValueChanged===!0&&this.items[s].editor.isEmpty())&&(o=this.items[s].editor.hasErrors(e,n)||o);return i.prototype.hasErrors.call(this,e)||o},t.prototype.getAllErrors=function(){for(var e=i.prototype.getAllErrors.call(this),n=0;n<this.items.length;n++){var r=this.items[n].editor.getAllErrors();r&&r.length>0&&(e=e.concat(r))}return e},t.prototype.clearErrors=function(){i.prototype.clearErrors.call(this);for(var e=0;e<this.items.length;e++)this.items[e].editor.clearErrors()},t.prototype.getContainsErrors=function(){var e=i.prototype.getContainsErrors.call(this);if(e)return e;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(!i.prototype.getIsAnswered.call(this))return!1;for(var e=0;e<this.items.length;e++){var n=this.items[e].editor;if(n.isVisible&&!n.isAnswered)return!1}return!0},t.prototype.getProgressInfo=function(){for(var e=[],n=0;n<this.items.length;n++)e.push(this.items[n].editor);return le.getProgressInfoByElements(e,this.isRequired)},t.prototype.getDisplayValueCore=function(e,n){if(!n)return n;for(var r={},o=0;o<this.items.length;o++){var s=this.items[o],a=n[s.name];if(!P.isValueEmpty(a)){var l=s.name;e&&s.title&&(l=s.title),r[l]=s.editor.getDisplayValue(e,a)}}return r},t.prototype.allowMobileInDesignMode=function(){return!0},t.prototype.getMultipleTextValue=function(e){return this.value?this.value[e]:null},t.prototype.setMultipleTextValue=function(e,n){this.isMultipleItemValueChanging=!0,this.isValueEmpty(n)&&(n=void 0);var r=this.value;r||(r={}),r[e]=n,this.setNewValue(r),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,n){},t.prototype.removeElement=function(e){return!1},t.prototype.getQuestionTitleLocation=function(){return"left"},t.prototype.getQuestionTitleWidth=function(){},t.prototype.getColumsForElement=function(e){return[]},t.prototype.updateColumns=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.onQuestionValueChanged=function(e){},t.prototype.getItemLabelCss=function(e){return new O().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 O().append(this.cssClasses.item).toString()},t.prototype.getItemTitleCss=function(){return new O().append(this.cssClasses.itemTitle).toString()},Ur([ae()],t.prototype,"rows",void 0),t}(ue),$r=function(i){Ct(t,i);function t(){var e=i!==null&&i.apply(this,arguments)||this;return e.isVisible=!0,e.cells=[],e}return Ur([h()],t.prototype,"isVisible",void 0),Ur([ae()],t.prototype,"cells",void 0),t}(z),bs=function(i){Ct(t,i);function t(){return i!==null&&i.apply(this,arguments)||this}return t.prototype.onAfterCreated=function(){var e=this,n=function(){e.isVisible=e.cells.some(function(r){var o,s;return((o=r.item)===null||o===void 0?void 0:o.editor)&&((s=r.item)===null||s===void 0?void 0:s.editor.hasVisibleErrors)})};this.cells.forEach(function(r){var o,s;!((o=r.item)===null||o===void 0)&&o.editor&&((s=r.item)===null||s===void 0||s.editor.registerFunctionOnPropertyValueChanged("hasVisibleErrors",n))}),n()},t}($r),Jr=function(){function i(t,e){this.item=t,this.question=e,this.isErrorsCell=!1}return i.prototype.getClassName=function(){return new O().append(this.question.cssClasses.cell).toString()},Object.defineProperty(i.prototype,"className",{get:function(){return this.getClassName()},enumerable:!1,configurable:!0}),i}(),Cs=function(i){Ct(t,i);function t(){var e=i!==null&&i.apply(this,arguments)||this;return e.isErrorsCell=!0,e}return t.prototype.getClassName=function(){return new O().append(i.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}(Jr);x.addClass("multipletextitem",[{name:"!name",isUnique:!0},"isRequired:boolean",{name:"placeholder",alternativeName:"placeHolder",serializationProperty:"locPlaceholder"},{name:"inputType",default:"text",choices:b.questions.inputTypes},{name:"maskType",default:"none",visibleIndex:0,dependsOn:"inputType",visibleIf:function(i){return i.inputType==="text"},choices:function(i){var t=hs();return t}},{name:"maskSettings:masksettings",className:"masksettings",visibleIndex:1,dependsOn:"inputType",visibleIf:function(i){return i.inputType==="text"},onGetValue:function(i){return i.maskSettings.getData()},onSetValue:function(i,t){i.maskSettings.setData(t)}},{name:"inputTextAlignment",default:"auto",choices:["left","right","auto"]},{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(i){return Le(i)}},{name:"maxValueExpression:expression",category:"logic",dependsOn:"inputType",visibleIf:function(i){return Le(i)}},{name:"validators:validators",baseClassName:"surveyvalidator",classNamePart:"validator"}],function(){return new Wr("")}),x.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 wn("")},"question"),J.Instance.registerQuestion("multipletext",function(i){var t=new wn(i);return wn.addDefaultItems(t),t});var Vc=function(){var i=function(t,e){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(n[o]=r[o])},i(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");i(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),Ps=function(i){Vc(t,i);function t(e){e===void 0&&(e="");var n=i.call(this,e)||this;return n.createLocalizableString("content",n,!0),n.registerPropertyChangedHandlers(["content"],function(){n.onContentChanged()}),n}return t.prototype.getType=function(){return"flowpanel"},t.prototype.getChildrenLayoutType=function(){return"flow"},t.prototype.onSurveyLoad=function(){i.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="";this.onCustomHtmlProducing?e=this.onCustomHtmlProducing():e=this.produceHtml(),this.html=e,this.contentChangedCallback&&this.contentChangedCallback()},t.prototype.produceHtml=function(){for(var e=[],n=/{(.*?(element:)[^$].*?)}/g,r=this.content,o=0,s=null;(s=n.exec(r))!==null;){s.index>o&&(e.push(r.substring(o,s.index)),o=s.index);var a=this.getQuestionFromText(s[0]);a?e.push(this.getHtmlForQuestion(a)):e.push(r.substring(o,s.index+s[0].length)),o=s.index+s[0].length}return o<r.length&&e.push(r.substring(o,r.length)),e.join("").replace(new RegExp("<br>","g"),"<br/>")},t.prototype.getQuestionFromText=function(e){return e=e.substring(1,e.length-1),e=e.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(e,n){i.prototype.onAddElement.call(this,e,n),this.addElementToContent(e),e.renderWidth=""},t.prototype.onRemoveElement=function(e){var n=this.getElementContentText(e);this.content=this.content.replace(n,""),i.prototype.onRemoveElement.call(this,e)},t.prototype.dragDropMoveElement=function(e,n,r){},t.prototype.addElementToContent=function(e){if(!this.isLoadingFromJson){var n=this.getElementContentText(e);this.insertTextAtCursor(n)||(this.content=this.content+n)}},t.prototype.insertTextAtCursor=function(e,n){if(n===void 0&&(n=null),!this.isDesignMode||!E.isAvailable())return!1;var r=E.getSelection();if(r.getRangeAt&&r.rangeCount){var o=r.getRangeAt(0);o.deleteContents();var s=new Text(e);o.insertNode(s);var a=this;if(a.getContent){var l=a.getContent(n);this.content=l}return!0}return!1},t.prototype.getElementContentText=function(e){return"{"+t.contentElementNamePrefix+e.name+"}"},t.contentElementNamePrefix="element:",t}(Bt);x.addClass("flowpanel",[{name:"content:html",serializationProperty:"locContent"}],function(){return new Ps},"panel");var wc=function(){function i(){}return i.getIconCss=function(t,e){return new O().append(t.icon).append(t.iconExpanded,!e).toString()},i}(),xc=function(){var i=function(t,e){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(n[o]=r[o])},i(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");i(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),xn=function(i){xc(t,i);function t(e){return i.call(this,e)||this}return 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,n){return!1},t.prototype.getAllErrors=function(){return[]},t.prototype.supportGoNextPageAutomatic=function(){return!1},t.prototype.addConditionObjectsByContext=function(e,n){},t.prototype.getConditionJson=function(e,n){return 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}(ue);x.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 xn("")},"question");var Oc=function(){var i=function(t,e){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(n[o]=r[o])},i(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");i(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),Vs=function(i){Oc(t,i);function t(e){return i.call(this,e)||this}return t.prototype.getType=function(){return"empty"},t}(ue);x.addClass("empty",[],function(){return new Vs("")},"question");var Sc=function(){var i=function(t,e){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(n[o]=r[o])},i(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");i(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),Qt=function(i){Sc(t,i);function t(e){var n=i.call(this,e)||this;return n.invisibleOldValues={},n.isChangingValueOnClearIncorrect=!1,n.selectAllItemValue=new k(""),n.selectAllItemValue.id="selectall",n.selectAllItemText=n.createLocalizableString("selectAllText",n.selectAllItem,!0,"selectAllItemText"),n.selectAllItem.locOwner=n,n.selectAllItem.setLocText(n.selectAllItemText),n.registerPropertyChangedHandlers(["showSelectAllItem","selectAllText"],function(){n.onVisibleChoicesChanged()}),n}return t.prototype.getDefaultItemComponent=function(){return"survey-checkbox-item"},t.prototype.getType=function(){return"checkbox"},t.prototype.onCreating=function(){i.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,n){if(e&&e===this.valuePropertyName){var r=this.value;if(Array.isArray(r)&&n<r.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(){return this.allElementsSelected()},set:function(e){e?this.selectAll():this.clearValue(!0)},enumerable:!1,configurable:!0}),t.prototype.toggleSelectAll=function(){this.isAllSelected=!this.isAllSelected},t.prototype.allElementsSelected=function(){for(var e=this.getNoneItems(),n=0;n<e.length;n++)if(this.isItemSelected(e[n]))return!1;var r=this.getVisibleEnableItems();if(r.length===0)return!1;var o=this.value;if(!o||!Array.isArray(o)||o.length===0||o.length<r.length)return!1;for(var s=[],n=0;n<o.length;n++)s.push(this.getRealValue(o[n]));for(var n=0;n<r.length;n++)if(s.indexOf(r[n].value)<0)return!1;return!0},t.prototype.selectAll=function(){for(var e=[],n=this.getVisibleEnableItems(),r=0;r<n.length;r++)e.push(n[r].value);this.renderedValue=e},t.prototype.clickItemHandler=function(e,n){if(!this.isReadOnlyAttr)if(e===this.selectAllItem)n===!0||n===!1?this.isAllSelected=n:this.toggleSelectAll();else if(this.isNoneItem(e))this.renderedValue=n?[e.value]:[];else{var r=[].concat(this.renderedValue||[]),o=r.indexOf(e.value);n?o<0&&r.push(e.value):o>-1&&r.splice(o,1),this.renderedValue=r}},t.prototype.isItemSelectedCore=function(e){if(e===this.selectAllItem)return this.isAllSelected;var n=this.renderedValue;if(!n||!Array.isArray(n))return!1;for(var r=0;r<n.length;r++)if(this.isTwoValueEquals(n[r],e.value))return!0;return!1},t.prototype.hasUnknownValueItem=function(e,n,r,o){n===void 0&&(n=!1),r===void 0&&(r=!0),o===void 0&&(o=!1);var s=this.valuePropertyName;return s&&typeof e=="object"&&e[s]!==void 0&&(e=e[s]),i.prototype.hasUnknownValueItem.call(this,e,n,r,o)},t.prototype.convertFuncValuetoQuestionValue=function(e){var n=this;if(this.valuePropertyName&&Array.isArray(e)&&e.length>0){var r=[];e.forEach(function(o){var s=typeof o=="object",a=s?o:{};s||(a[n.valuePropertyName]=o),r.push(a)}),e=r}return i.prototype.convertDefaultValue.call(this,e)},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,n=this.visibleChoices,r=this.selectedItemValues;if(this.isEmpty())return[];var o=this.defaultSelectedItemValues?[].concat(this.defaultSelectedItemValues,n):n,s=e.map(function(l){return k.getItemByValue(o,l)}).filter(function(l){return!!l});!s.length&&!r&&this.updateSelectedItemValues();var a=this.validateItemValues(s);return a},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 e=i.prototype.getFilteredName.call(this);return this.hasFilteredValue&&(e+="-unwrapped"),e},t.prototype.getFilteredValue=function(){return this.hasFilteredValue?this.renderedValue:i.prototype.getFilteredValue.call(this)},t.prototype.getMultipleSelectedItems=function(){return this.selectedChoices},t.prototype.validateItemValues=function(e){var n=this;if(e.length)return e;var r=this.selectedItemValues;if(r&&r.length)return this.defaultSelectedItemValues=[].concat(r),r;var o=this.renderedValue;return o.map(function(s){return n.createItemValue(s)})},t.prototype.getAnswerCorrectIgnoreOrder=function(){return!0},t.prototype.onCheckForErrors=function(e,n,r){if(i.prototype.onCheckForErrors.call(this,e,n,r),!n&&this.minSelectedChoices>0&&this.checkMinSelectedChoicesUnreached()){var o=new we(this.getLocalizationFormatString("minSelectError",this.minSelectedChoices),this);e.push(o)}},t.prototype.onVisibleChoicesChanged=function(){i.prototype.onVisibleChoicesChanged.call(this),this.updateSelectAllItemProps()},t.prototype.onEnableItemCallBack=function(e){return this.shouldCheckMaxSelectedChoices()?this.isItemSelected(e):!0},t.prototype.onAfterRunItemsEnableCondition=function(){if(this.updateSelectAllItemProps(),this.maxSelectedChoices<1){this.otherItem.setIsEnabled(!0);return}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,n=this.maxSelectedChoices;return n>0&&n<e?!1:e>0},t.prototype.getVisibleEnableItems=function(){for(var e=new Array,n=this.activeChoices,r=0;r<n.length;r++){var o=n[r];o.isEnabled&&o.isVisible&&e.push(o)}return e},t.prototype.shouldCheckMaxSelectedChoices=function(){if(this.maxSelectedChoices<1)return!1;var e=this.value,n=Array.isArray(e)?e.length:0;return n>=this.maxSelectedChoices},t.prototype.checkMinSelectedChoicesUnreached=function(){if(this.minSelectedChoices<1)return!1;var e=this.value,n=Array.isArray(e)?e.length:0;return n<this.minSelectedChoices},t.prototype.getItemClassCore=function(e,n){return this.value,n.isSelectAllItem=e===this.selectAllItem,new O().append(i.prototype.getItemClassCore.call(this,e,n)).append(this.cssClasses.itemSelectAll,n.isSelectAllItem).toString()},t.prototype.updateValueFromSurvey=function(e,n){i.prototype.updateValueFromSurvey.call(this,e,n),this.invisibleOldValues={}},t.prototype.setDefaultValue=function(){i.prototype.setDefaultValue.call(this);var e=this.defaultValue;if(Array.isArray(e))for(var n=0;n<e.length;n++){var r=this.getRealValue(e[n]);this.canClearValueAnUnknown(r)&&this.addIntoInvisibleOldValues(r)}},t.prototype.addIntoInvisibleOldValues=function(e){this.invisibleOldValues[e]=e},t.prototype.hasValueToClearIncorrectValues=function(){return i.prototype.hasValueToClearIncorrectValues.call(this)||!P.isValueEmpty(this.invisibleOldValues)},t.prototype.setNewValue=function(e){this.isChangingValueOnClearIncorrect||(this.invisibleOldValues={}),e=this.valueFromData(e);var n=this.value;e||(e=[]),n||(n=[]),!this.isTwoValueEquals(n,e)&&(this.removeNoneItemsValues(n,e),i.prototype.setNewValue.call(this,e))},t.prototype.getIsMultipleValue=function(){return!0},t.prototype.getCommentFromValue=function(e){var n=this.getFirstUnknownIndex(e);return n<0?"":e[n]},t.prototype.getStoreOthersAsComment=function(){return this.valuePropertyName?!1:i.prototype.getStoreOthersAsComment.call(this)},t.prototype.setOtherValueIntoValue=function(e){var n=this.getFirstUnknownIndex(e);if(n<0)return e;var r=this.otherItem.value,o=this.valuePropertyName;if(o){var s={};s[o]=r,r=s}return e.splice(n,1,r),e},t.prototype.getFirstUnknownIndex=function(e){if(!Array.isArray(e))return-1;for(var n=0;n<e.length;n++)if(this.hasUnknownValueItem(e[n],!1,!1))return n;return-1},t.prototype.removeNoneItemsValues=function(e,n){var r=[];if(this.showNoneItem&&r.push(this.noneItem.value),this.showRefuseItem&&r.push(this.refuseItem.value),this.showDontKnowItem&&r.push(this.dontKnowItem.value),r.length>0){var o=this.noneIndexInArray(e,r),s=this.noneIndexInArray(n,r);if(o.index>-1)if(o.val===s.val)n.length>0&&n.splice(s.index,1);else{var a=this.noneIndexInArray(n,[o.val]);a.index>-1&&a.index<n.length-1&&n.splice(a.index,1)}else if(s.index>-1&&n.length>1){var l=this.convertValueToObject([s.val])[0];n.splice(0,n.length,l)}}},t.prototype.noneIndexInArray=function(e,n){if(!Array.isArray(e))return{index:-1,val:void 0};for(var r=e.length-1;r>=0;r--){var o=n.indexOf(this.getRealValue(e[r]));if(o>-1)return{index:r,val:n[o]}}return{index:-1,val:void 0}},t.prototype.canUseFilteredChoices=function(){return!this.hasSelectAll&&i.prototype.canUseFilteredChoices.call(this)},t.prototype.supportSelectAll=function(){return this.isSupportProperty("showSelectAllItem")},t.prototype.addNonChoicesItems=function(e,n){i.prototype.addNonChoicesItems.call(this,e,n),this.supportSelectAll()&&this.addNonChoiceItem(e,this.selectAllItem,n,this.hasSelectAll,b.specialChoicesOrder.selectAllItem)},t.prototype.isBuiltInChoice=function(e){return e===this.selectAllItem||i.prototype.isBuiltInChoice.call(this,e)},t.prototype.isItemInList=function(e){return e==this.selectAllItem?this.hasSelectAll:i.prototype.isItemInList.call(this,e)},t.prototype.getDisplayValueEmpty=function(){var e=this;return k.getTextOrHtmlByValue(this.visibleChoices.filter(function(n){return n!=e.selectAllItemValue}),void 0)},t.prototype.getDisplayValueCore=function(e,n){if(!Array.isArray(n))return i.prototype.getDisplayValueCore.call(this,e,n);var r=this.valuePropertyName,o=function(s){var a=n[s];return r&&a[r]&&(a=a[r]),a};return this.getDisplayArrayValue(e,n,o)},t.prototype.clearIncorrectValuesCore=function(){this.clearIncorrectAndDisabledValues(!1)},t.prototype.clearDisabledValuesCore=function(){this.clearIncorrectAndDisabledValues(!0)},t.prototype.clearIncorrectAndDisabledValues=function(e){var n=this.value,r=!1,o=this.restoreValuesFromInvisible();if(!(!n&&o.length==0)){if(!Array.isArray(n)||n.length==0){if(this.isChangingValueOnClearIncorrect=!0,e||(this.hasComment?this.value=null:this.clearValue(!0)),this.isChangingValueOnClearIncorrect=!1,o.length==0)return;n=[]}for(var s=[],a=0;a<n.length;a++){var l=this.getRealValue(n[a]),u=this.canClearValueAnUnknown(l);!e&&!u||e&&!this.isValueDisabled(l)?s.push(n[a]):(r=!0,u&&this.addIntoInvisibleOldValues(n[a]))}for(var a=0;a<o.length;a++)s.push(o[a]),r=!0;r&&(this.isChangingValueOnClearIncorrect=!0,s.length==0?this.clearValue(!0):this.value=s,this.isChangingValueOnClearIncorrect=!1)}},t.prototype.restoreValuesFromInvisible=function(){for(var e=[],n=this.visibleChoices,r=0;r<n.length;r++){var o=n[r];if(o!==this.selectAllItem){var s=n[r].value;P.isTwoValueEquals(s,this.invisibleOldValues[s])&&(this.isItemSelected(o)||e.push(s),delete this.invisibleOldValues[s])}}return e},t.prototype.getConditionJson=function(e,n){e===void 0&&(e=null),n===void 0&&(n=null);var r=i.prototype.getConditionJson.call(this,e,n);return(e=="contains"||e=="notcontains")&&(r.type="radiogroup"),r.maxSelectedChoices=0,r.minSelectedChoices=0,r},t.prototype.isAnswerCorrect=function(){return P.isArrayContainsEqual(this.value,this.correctAnswer)},t.prototype.setDefaultValueWithOthers=function(){this.value=this.renderedValueFromDataCore(this.defaultValue)},t.prototype.getIsItemValue=function(e,n){return!e||!Array.isArray(e)?!1:e.indexOf(n.value)>=0},t.prototype.valueFromData=function(e){if(!e)return e;if(!Array.isArray(e))return[i.prototype.valueFromData.call(this,e)];for(var n=[],r=0;r<e.length;r++){var o=k.getItemByValue(this.activeChoices,e[r]);o?n.push(o.value):n.push(e[r])}return n},t.prototype.rendredValueFromData=function(e){return e=this.convertValueFromObject(e),i.prototype.rendredValueFromData.call(this,e)},t.prototype.rendredValueToData=function(e){return e=i.prototype.rendredValueToData.call(this,e),this.convertValueToObject(e)},t.prototype.convertValueFromObject=function(e){return this.valuePropertyName?P.convertArrayObjectToValue(e,this.valuePropertyName):e},t.prototype.convertValueToObject=function(e){if(!this.valuePropertyName)return e;var n=void 0;return this.survey&&this.survey.questionsByValueName(this.getValueName()).length>1&&(n=this.data.getValue(this.getValueName())),P.convertArrayValueToObject(e,this.valuePropertyName,n)},t.prototype.renderedValueFromDataCore=function(e){if((!e||!Array.isArray(e))&&(e=[]),!this.hasActiveChoices)return e;for(var n=0;n<e.length;n++){if(e[n]==this.otherItem.value)return e;if(this.hasUnknownValueItem(e[n],!0,!1)){this.otherValue=e[n];var r=e.slice();return r[n]=this.otherItem.value,r}}return e},t.prototype.rendredValueToDataCore=function(e){if(!e||!e.length)return e;for(var n=0;n<e.length;n++)if(e[n]==this.otherItem.value&&this.needConvertRenderedOtherToDataValue()){var r=e.slice();return r[n]=this.otherValue,r}return e},t.prototype.selectOtherValueFromComment=function(e){var n=[],r=this.renderedValue;if(Array.isArray(r))for(var o=0;o<r.length;o++)r[o]!==this.otherItem.value&&n.push(r[o]);e&&n.push(this.otherItem.value),this.value=n},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}(kt);x.addClass("checkbox",[{name:"showSelectAllItem:boolean",alternativeName:"hasSelectAll"},{name:"separateSpecialChoices",visible:!0},{name:"maxSelectedChoices:number",default:0,onSettingValue:function(i,t){if(t<=0)return 0;var e=i.minSelectedChoices;return e>0&&t<e?e:t}},{name:"minSelectedChoices:number",default:0,onSettingValue:function(i,t){if(t<=0)return 0;var e=i.maxSelectedChoices;return e>0&&t>e?e:t}},{name:"selectAllText",serializationProperty:"locSelectAllText",dependsOn:"showSelectAllItem",visibleIf:function(i){return i.hasSelectAll}},{name:"valuePropertyName",category:"data"},{name:"itemComponent",visible:!1,default:"survey-checkbox-item"}],function(){return new Qt("")},"checkboxbase"),J.Instance.registerQuestion("checkbox",function(i){var t=new Qt(i);return t.choices=J.DefaultChoices,t});var Tc=function(){var i=function(t,e){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(n[o]=r[o])},i(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");i(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),Rc=function(i,t,e,n){var r=arguments.length,o=r<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,e):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(i,t,e,n);else for(var a=i.length-1;a>=0;a--)(s=i[a])&&(o=(r<3?s(o):r>3?s(t,e,o):s(t,e))||o);return r>3&&o&&Object.defineProperty(t,e,o),o},ws=function(i){Tc(t,i);function t(e){var n=i.call(this,e)||this;return n.onItemClick=function(r){n.isItemDisabled(r)||(n.isExpanded=!1,n.isItemSelected(r)?(n.selectedItems.splice(n.selectedItems.indexOf(r),1)[0],n.onSelectionChanged&&n.onSelectionChanged(r,"removed")):(n.selectedItems.push(r),n.onSelectionChanged&&n.onSelectionChanged(r,"added")))},n.isItemDisabled=function(r){return r.enabled!==void 0&&!r.enabled},n.isItemSelected=function(r){return!!n.allowSelection&&n.selectedItems.filter(function(o){return n.areSameItems(o,r)}).length>0},n.setSelectedItems(e.selectedItems||[]),n}return t.prototype.updateItemState=function(){var e=this;this.actions.forEach(function(n){var r=e.isItemSelected(n);n.visible=e.hideSelectedItems?!r:!0})},t.prototype.updateState=function(){var e=this;this.updateItemState(),this.isEmpty=this.renderedActions.filter(function(n){return e.isItemVisible(n)}).length===0},t.prototype.setSelectedItems=function(e){this.selectedItems=e,this.updateState()},t.prototype.selectFocusedItem=function(){i.prototype.selectFocusedItem.call(this),this.hideSelectedItems&&this.focusNextVisibleItem()},Rc([h()],t.prototype,"hideSelectedItems",void 0),t}(Rt),Ec=function(){var i=function(t,e){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(n[o]=r[o])},i(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");i(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),On=function(i,t,e,n){var r=arguments.length,o=r<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,e):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(i,t,e,n);else for(var a=i.length-1;a>=0;a--)(s=i[a])&&(o=(r<3?s(o):r>3?s(t,e,o):s(t,e))||o);return r>3&&o&&Object.defineProperty(t,e,o),o},xs=function(i){Ec(t,i);function t(e,n){var r=i.call(this,e,n)||this;return r.setHideSelectedItems(e.hideSelectedItems),r.syncFilterStringPlaceholder(),r.closeOnSelect=e.closeOnSelect,r}return t.prototype.locStrsChanged=function(){i.prototype.locStrsChanged.call(this),this.syncFilterStringPlaceholder()},t.prototype.updateListState=function(){this.listModel.updateState(),this.syncFilterStringPlaceholder()},t.prototype.syncFilterStringPlaceholder=function(){var e=this.getSelectedActions();e.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&&ne&&!this.isValueEmpty(this.question.value)?this.itemSelector:i.prototype.getFocusFirstInputSelector.call(this)},t.prototype.getPopupCssClasses=function(){return"sv-multi-select-list"},t.prototype.createListModel=function(){var e=this,n=this.getAvailableItems(),r=this.onSelectionChanged;r||(r=function(a,l){e.resetFilterString(),a.id==="selectall"?e.selectAllItems():l==="added"&&a.value===b.noneItemValue?e.selectNoneItem():l==="added"?e.selectItem(a.value):l==="removed"&&e.deselectItem(a.value),e.popupRecalculatePosition(!1),e.closeOnSelect&&(e.popupModel.isVisible=!1)});var o={items:n,onSelectionChanged:r,allowSelection:!1,locOwner:this.question,elementId:this.listElementId},s=new ws(o);return this.setOnTextSearchCallbackForListModel(s),s.forceShowFilter=!0,s},t.prototype.resetFilterString=function(){i.prototype.resetFilterString.call(this),this.inputString=null,this.hintString=""},Object.defineProperty(t.prototype,"shouldResetAfterCancel",{get:function(){return ne&&!this.closeOnSelect},enumerable:!1,configurable:!0}),t.prototype.createPopup=function(){var e=this;i.prototype.createPopup.call(this),this.popupModel.onFooterActionsCreated.add(function(n,r){e.shouldResetAfterCancel&&r.actions.push({id:"sv-dropdown-done-button",title:e.doneButtonCaption,innerCss:"sv-popup__button--done",needSpace:!0,action:function(){e.popupModel.isVisible=!1},enabled:new te(function(){return!e.isTwoValueEquals(e.question.renderedValue,e.previousValue)})})}),this.popupModel.onVisibilityChanged.add(function(n,r){e.shouldResetAfterCancel&&r.isVisible&&(e.previousValue=[].concat(e.question.renderedValue||[]))}),this.popupModel.onCancel=function(){e.shouldResetAfterCancel&&(e.question.renderedValue=e.previousValue,e.updateListState())}},t.prototype.selectAllItems=function(){this.question.toggleSelectAll(),this.question.isAllSelected&&this.question.hideSelectedItems&&this.popupModel.hide(),this.updateListState()},t.prototype.selectNoneItem=function(){this.question.renderedValue=[b.noneItemValue],this.updateListState()},t.prototype.selectItem=function(e){var n=[].concat(this.question.renderedValue||[]);n.push(e),this.question.renderedValue=n,this.updateListState()},t.prototype.deselectItem=function(e){var n=[].concat(this.question.renderedValue||[]);n.splice(n.indexOf(e),1),this.question.renderedValue=n,this.applyHintString(this.listModel.focusedItem),this.updateListState()},t.prototype.clear=function(){i.prototype.clear.call(this),this.syncFilterStringPlaceholder()},t.prototype.onClear=function(e){i.prototype.onClear.call(this,e),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){e.keyCode===8&&!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;!((e=this.listModel.focusedItem)===null||e===void 0)&&e.selected?this.hintString="":this.applyHintString(this.listModel.focusedItem||this.question.selectedItem),this.syncFilterStringPlaceholder()},t.prototype.onPropertyChangedHandler=function(e,n){i.prototype.onPropertyChangedHandler.call(this,e,n),(n.name==="value"||n.name==="renderedValue"||n.name==="placeholder")&&this.syncFilterStringPlaceholder()},On([h({defaultValue:""})],t.prototype,"filterStringPlaceholder",void 0),On([h({defaultValue:!0})],t.prototype,"closeOnSelect",void 0),On([h()],t.prototype,"previousValue",void 0),On([h({localizable:{defaultStr:"tagboxDoneButtonCaption"}})],t.prototype,"doneButtonCaption",void 0),t}(Cn),Ic=function(){var i=function(t,e){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(n[o]=r[o])},i(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");i(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),Je=function(i,t,e,n){var r=arguments.length,o=r<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,e):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(i,t,e,n);else for(var a=i.length-1;a>=0;a--)(s=i[a])&&(o=(r<3?s(o):r>3?s(t,e,o):s(t,e))||o);return r>3&&o&&Object.defineProperty(t,e,o),o},Gr=function(i){Ic(t,i);function t(e){var n=i.call(this,e)||this;return n.itemDisplayNameMap={},n.onOpened=n.addEvent(),n.ariaExpanded="false",n.createLocalizableString("placeholder",n,!1,!0),n.createLocalizableString("clearCaption",n,!1,!0),n.createLocalizableString("readOnlyText",n,!0),n.deselectAllItemText=n.createLocalizableString("deselectAllText",n.selectAllItem,!0,"deselectAllItemText"),n.registerPropertyChangedHandlers(["value","renderAs","showOtherItem","otherText","placeholder","choices","visibleChoices"],function(){n.updateReadOnlyText()}),n.updateReadOnlyText(),n}return t.prototype.locStrsChanged=function(){var e;i.prototype.locStrsChanged.call(this),this.updateReadOnlyText(),(e=this.dropdownListModelValue)===null||e===void 0||e.locStrsChanged()},t.prototype.updateReadOnlyText=function(){this.readOnlyText=this.displayValue||this.placeholder},t.prototype.getDefaultItemComponent=function(){return""},Object.defineProperty(t.prototype,"dropdownListModel",{get:function(){return this.dropdownListModelValue||(this.dropdownListModelValue=new xs(this)),this.dropdownListModelValue},set:function(e){this.dropdownListModelValue=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}),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(){return this.dropdownListModel.popupModel},enumerable:!1,configurable:!0}),t.prototype.getControlClass=function(){return new O().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.updateCssClasses=function(e,n){i.prototype.updateCssClasses.call(this,e,n),lr(e,n)},t.prototype.calcCssClasses=function(e){var n=i.prototype.calcCssClasses.call(this,e);return this.dropdownListModelValue&&this.dropdownListModel.updateCssClasses(n.popup,n.list),n},t.prototype.onOpenedCallBack=function(){this.onOpened.fire(this,{question:this,choices:this.choices})},t.prototype.hasUnknownValue=function(e,n,r,o){return n===void 0&&(n=!1),r===void 0&&(r=!0),o===void 0&&(o=!1),this.choicesLazyLoadEnabled?!1:i.prototype.hasUnknownValue.call(this,e,n,r,o)},t.prototype.needConvertRenderedOtherToDataValue=function(){var e,n=(e=this.otherValue)===null||e===void 0?void 0:e.trim();return n?i.prototype.hasUnknownValue.call(this,n,!0,!1):!1},t.prototype.onVisibleChoicesChanged=function(){i.prototype.onVisibleChoicesChanged.call(this),this.dropdownListModelValue&&this.dropdownListModel.updateItems()},t.prototype.getItemIfChoicesNotContainThisValue=function(e,n){return this.choicesLazyLoadEnabled?this.createItemValue(e,n):i.prototype.getItemIfChoicesNotContainThisValue.call(this,e,n)},t.prototype.validateItemValues=function(e){var n=this;this.updateItemDisplayNameMap();var r=this.renderedValue;if(e.length&&e.length===r.length)return e;var o=this.selectedItemValues;if(!e.length&&o&&o.length)return this.defaultSelectedItemValues=[].concat(o),o;var s=e.map(function(a){return a.value});return r.filter(function(a){return s.indexOf(a)===-1}).forEach(function(a){var l=n.getItemIfChoicesNotContainThisValue(a,n.itemDisplayNameMap[a]);l&&e.push(l)}),e.sort(function(a,l){return r.indexOf(a.value)-r.indexOf(l.value)}),e},t.prototype.updateItemDisplayNameMap=function(){var e=this,n=function(r){e.itemDisplayNameMap[r.value]=r.text};(this.defaultSelectedItemValues||[]).forEach(n),(this.selectedItemValues||[]).forEach(n),this.visibleChoices.forEach(n)},t.prototype.getFirstInputElementId=function(){return this.inputId+(this.searchEnabled?"_0":"")},t.prototype.getInputId=function(){return this.inputId+"_0"},t.prototype.supportEmptyValidation=function(){return!0},t.prototype.onBlurCore=function(e){this.dropdownListModel.onBlur(e),i.prototype.onBlurCore.call(this,e)},t.prototype.onFocusCore=function(e){this.dropdownListModel.onFocus(e),i.prototype.onFocusCore.call(this,e)},t.prototype.allElementsSelected=function(){var e=i.prototype.allElementsSelected.call(this);return this.updateSelectAllItemText(e),e},t.prototype.updateSelectAllItemText=function(e){this.selectAllItem.setLocText(e?this.deselectAllItemText:this.selectAllItemText)},t.prototype.dispose=function(){i.prototype.dispose.call(this),this.dropdownListModelValue&&(this.dropdownListModelValue.dispose(),this.dropdownListModelValue=void 0)},t.prototype.clearValue=function(e){var n;i.prototype.clearValue.call(this,e),(n=this.dropdownListModelValue)===null||n===void 0||n.clear()},Object.defineProperty(t.prototype,"showClearButton",{get:function(){return this.allowClear&&!this.isEmpty()&&(!this.isDesignMode||b.supportCreatorV2)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isNewA11yStructure",{get:function(){return!1},enumerable:!1,configurable:!0}),Je([h()],t.prototype,"searchMode",void 0),Je([h()],t.prototype,"allowClear",void 0),Je([h({onSet:function(e,n){n.dropdownListModelValue&&n.dropdownListModel.setSearchEnabled(e)}})],t.prototype,"searchEnabled",void 0),Je([h({onSet:function(e,n){n.dropdownListModelValue&&n.dropdownListModel.setHideSelectedItems(e)}})],t.prototype,"hideSelectedItems",void 0),Je([h({onSet:function(e,n){n.dropdownListModelValue&&n.dropdownListModel.setChoicesLazyLoadEnabled(e)}})],t.prototype,"choicesLazyLoadEnabled",void 0),Je([h()],t.prototype,"choicesLazyLoadPageSize",void 0),Je([h({getDefaultValue:function(){return b.tagboxCloseOnSelect}})],t.prototype,"closeOnSelect",void 0),Je([h()],t.prototype,"textWrapEnabled",void 0),t}(Qt);x.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 Gr("")},"checkbox"),J.Instance.registerQuestion("tagbox",function(i){var t=new Gr(i);return t.choices=J.DefaultChoices,t});var Ac=function(){var i=function(t,e){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(n[o]=r[o])},i(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");i(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),Os=function(i){Ac(t,i);function t(){var e=i!==null&&i.apply(this,arguments)||this;return e.doDragOver=function(){if(e.parentElement.getType()!=="imagepicker"){var n=e.domAdapter.draggedElementShortcut.querySelector(".svc-item-value-controls__button");n.style.cursor="grabbing"}},e.doBanDropHere=function(){if(e.parentElement.getType()!=="imagepicker"){var n=e.domAdapter.draggedElementShortcut.querySelector(".svc-item-value-controls__button");n.style.cursor="not-allowed"}},e}return Object.defineProperty(t.prototype,"draggedElementType",{get:function(){return"item-value"},enumerable:!1,configurable:!0}),t.prototype.createDraggedElementShortcut=function(e,n,r){if(this.parentElement.getType()==="imagepicker")return this.createImagePickerShortcut(this.draggedElement,e,n,r);var o=I.createElement("div");if(o){o.className="sv-drag-drop-choices-shortcut";var s=!0,a=n.closest("[data-sv-drop-target-item-value]").cloneNode(s);a.classList.add("sv-drag-drop-choices-shortcut__content");var l=a.querySelector(".svc-item-value-controls__drag-icon");l.style.visibility="visible";var u=a.querySelector(".svc-item-value-controls__remove");u.style.backgroundColor="transparent",a.classList.remove("svc-item-value--moveup"),a.classList.remove("svc-item-value--movedown"),this.draggedElement.isDragDropMoveDown=!1,this.draggedElement.isDragDropMoveUp=!1,o.appendChild(a);var d=n.getBoundingClientRect();return o.shortcutXOffset=r.clientX-d.x,o.shortcutYOffset=r.clientY-d.y,this.isBottom=null,typeof this.onShortcutCreated=="function"&&this.onShortcutCreated(o),o}},t.prototype.createImagePickerShortcut=function(e,n,r,o){var s=I.createElement("div");if(s){s.style.cssText=` - cursor: grabbing; - position: absolute; - z-index: 10000; - 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)); - padding: calc(0.5 * var(--sjs-base-unit, var(--base-unit, 8px))); - border-radius: calc(0.5 * var(--sjs-base-unit, var(--base-unit, 8px))); - `;var a=r.closest("[data-sv-drop-target-item-value]");this.imagepickerControlsNode=a.querySelector(".svc-image-item-value-controls");var l=a.querySelector(".sd-imagepicker__image-container"),u=a.querySelector(e.imageLink?"img":".sd-imagepicker__no-image").cloneNode(!0);return this.imagepickerControlsNode&&(this.imagepickerControlsNode.style.display="none"),l.style.width=u.width+"px",l.style.height=u.height+"px",u.style.objectFit="cover",u.style.borderRadius="4px",s.appendChild(u),s}},t.prototype.getDropTargetByDataAttributeValue=function(e){var n;return n=this.parentElement.choices.filter(function(r){return""+r.value==e})[0],n},t.prototype.getVisibleChoices=function(){var e=this.parentElement;return e.getType()==="ranking"?e.selectToRankEnabled?e.visibleChoices:e.rankingChoices:e.visibleChoices},t.prototype.isDropTargetValid=function(e,n){var r=this.getVisibleChoices();if(this.parentElement.getType()!=="imagepicker"){var o=r.indexOf(this.dropTarget),s=r.indexOf(this.draggedElement);if(s>o&&this.dropTarget.isDragDropMoveUp)return this.dropTarget.isDragDropMoveUp=!1,!1;if(s<o&&this.dropTarget.isDragDropMoveDown)return this.dropTarget.isDragDropMoveDown=!1,!1}return r.indexOf(e)!==-1},t.prototype.isDropTargetDoesntChanged=function(e){return this.dropTarget===this.prevDropTarget&&e===this.isBottom},t.prototype.calculateIsBottom=function(e,n){var r=n.getBoundingClientRect();return e>=r.y+r.height/2},t.prototype.afterDragOver=function(e){var n=this.getVisibleChoices(),r=n.indexOf(this.dropTarget),o=n.indexOf(this.draggedElement);if(o<r&&this.isBottom===!0)n.splice(o,1),n.splice(r,0,this.draggedElement);else if(o>r&&this.isBottom===!1)n.splice(r,1),n.splice(o,0,this.dropTarget);else return;this.parentElement.getType()!=="imagepicker"&&(o!==r&&(e.classList.remove("svc-item-value--moveup"),e.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),i.prototype.ghostPositionChanged.call(this))},t.prototype.doDrop=function(){var e=this.parentElement.choices,n=this.getVisibleChoices().filter(function(s){return e.indexOf(s)!==-1}),r=e.indexOf(this.draggedElement),o=n.indexOf(this.draggedElement);return e.splice(r,1),e.splice(o,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),i.prototype.clear.call(this)},t.prototype.updateVisibleChoices=function(e){e.getType()==="ranking"?e.updateRankingChoices():e.updateVisibleChoices()},t}(Sr),Dc=function(){var i=function(t,e){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(n[o]=r[o])},i(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");i(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),Ss=function(i){Dc(t,i);function t(){var e=i!==null&&i.apply(this,arguments)||this;return e.isDragOverRootNode=!1,e.doDragOver=function(){var n=e.domAdapter.draggedElementShortcut.querySelector(".sv-ranking-item");n.style.cursor="grabbing"},e.reorderRankedItem=function(n,r,o){if(r!=o){var s=n.rankingChoices,a=s[r];n.isValueSetByUser=!0,s.splice(r,1),s.splice(o,0,a),e.updateDraggedElementShortcut(o+1)}},e.doBanDropHere=function(){if(e.isDragOverRootNode){e.allowDropHere=!0;return}var n=e.domAdapter.draggedElementShortcut.querySelector(".sv-ranking-item");n.style.cursor="not-allowed"},e}return Object.defineProperty(t.prototype,"draggedElementType",{get:function(){return"ranking-item"},enumerable:!1,configurable:!0}),t.prototype.createDraggedElementShortcut=function(e,n,r){var o=I.createElement("div");if(o){o.className=this.shortcutClass+" sv-ranking-shortcut";var s=!0,a=n.cloneNode(s);o.appendChild(a);var l=n.getBoundingClientRect();o.style.left=l.x,o.style.top=l.y,this.domAdapter.rootElement.append(o);var u=o.offsetHeight,d=r.clientY;return d>l.y+u&&(d=l.y+u-10),o.shortcutXOffset=r.clientX-l.x,o.shortcutYOffset=d-l.y,this.parentElement&&this.parentElement.useFullItemSizeForShortcut&&(o.style.width=n.offsetWidth+"px",o.style.height=n.offsetHeight+"px"),o}},Object.defineProperty(t.prototype,"shortcutClass",{get:function(){return new O().append(this.parentElement.cssClasses.root).append(this.parentElement.cssClasses.rootMobileMod,gn).toString()},enumerable:!1,configurable:!0}),t.prototype.getDropTargetByDataAttributeValue=function(e){return this.parentElement.rankingChoices[e]},t.prototype.findDropTargetNodeByDragOverNode=function(e){return this.isDragOverRootNode=this.getIsDragOverRootNode(e),i.prototype.findDropTargetNodeByDragOverNode.call(this,e)},t.prototype.getIsDragOverRootNode=function(e){return typeof e.className=="string"&&e.className.indexOf("sv-ranking")!==-1},t.prototype.isDropTargetValid=function(e,n){var r=this.parentElement.rankingChoices;return r.indexOf(e)!==-1},t.prototype.calculateIsBottom=function(e,n){return this.dropTarget instanceof k&&this.draggedElement!==this.dropTarget?i.prototype.calculateIsBottom.call(this,e,n):!1},t.prototype.getIndices=function(e,n,r){var o=n.indexOf(this.draggedElement),s=r.indexOf(this.dropTarget);if(o<0&&this.draggedElement&&(this.draggedElement=k.getItemByValue(n,this.draggedElement.value)||this.draggedElement,o=n.indexOf(this.draggedElement)),s===-1){var a=e.value.length;s=a}else n==r?(!this.isBottom&&o<s&&s--,this.isBottom&&o>s&&s++):n!=r&&this.isBottom&&s++;return{fromIndex:o,toIndex:s}},t.prototype.afterDragOver=function(e){var n=this.getIndices(this.parentElement,this.parentElement.rankingChoices,this.parentElement.rankingChoices),r=n.fromIndex,o=n.toIndex;this.reorderRankedItem(this.parentElement,r,o)},t.prototype.updateDraggedElementShortcut=function(e){var n;if(!((n=this.domAdapter)===null||n===void 0)&&n.draggedElementShortcut){var r=e!==null?e+"":"",o=this.domAdapter.draggedElementShortcut.querySelector(".sv-ranking-item__index");o.innerText=r}},t.prototype.ghostPositionChanged=function(){this.parentElement.currentDropTarget=this.draggedElement,i.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)),i.prototype.clear.call(this)},t}(Os),Lc=function(){var i=function(t,e){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(n[o]=r[o])},i(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");i(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),Ts=function(i){Lc(t,i);function t(){var e=i!==null&&i.apply(this,arguments)||this;return e.selectToRank=function(n,r,o){var s=[].concat(n.rankingChoices),a=n.unRankingChoices,l=a[r];s.splice(o,0,l),e.updateChoices(n,s)},e.unselectFromRank=function(n,r,o){var s=[].concat(n.rankingChoices);s.splice(r,1),e.updateChoices(n,s)},e}return t.prototype.findDropTargetNodeByDragOverNode=function(e){if(e.dataset.ranking==="from-container"||e.dataset.ranking==="to-container")return e;var n=e.closest("[data-ranking='to-container']"),r=e.closest("[data-ranking='from-container']");return this.parentElement.unRankingChoices.length===0&&r?r:this.parentElement.rankingChoices.length===0&&n?n:i.prototype.findDropTargetNodeByDragOverNode.call(this,e)},t.prototype.getDropTargetByDataAttributeValue=function(e){return this.parentElement.rankingChoices[e]||this.parentElement.unRankingChoices[e]},t.prototype.getDropTargetByNode=function(e,n){return e.dataset.ranking==="to-container"?"to-container":e.dataset.ranking==="from-container"||e.closest("[data-ranking='from-container']")?"from-container":i.prototype.getDropTargetByNode.call(this,e,n)},t.prototype.isDropTargetValid=function(e,n){return e==="to-container"||e==="from-container"?!0:i.prototype.isDropTargetValid.call(this,e,n)},t.prototype.afterDragOver=function(e){var n=this.parentElement,r=n.rankingChoices,o=n.unRankingChoices;if(this.isDraggedElementUnranked&&this.isDropTargetRanked){this.doRankBetween(e,o,r,this.selectToRank);return}if(this.isDraggedElementRanked&&this.isDropTargetRanked){this.doRankBetween(e,r,r,this.reorderRankedItem);return}if(this.isDraggedElementRanked&&!this.isDropTargetRanked){this.doRankBetween(e,r,o,this.unselectFromRank);return}},t.prototype.doRankBetween=function(e,n,r,o){var s=this.parentElement,a=this.getIndices(s,n,r),l=a.fromIndex,u=a.toIndex;o(s,l,u,e)},Object.defineProperty(t.prototype,"isDraggedElementRanked",{get:function(){return this.parentElement.rankingChoices.indexOf(this.draggedElement)!==-1},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isDropTargetRanked",{get:function(){return this.dropTarget==="to-container"?!0:this.parentElement.rankingChoices.indexOf(this.dropTarget)!==-1},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isDraggedElementUnranked",{get:function(){return!this.isDraggedElementRanked},enumerable:!1,configurable:!0}),t.prototype.updateChoices=function(e,n){e.isValueSetByUser=!0,e.rankingChoices=n,e.updateUnRankingChoices(n)},t}(Ss),Mc=function(){var i=function(t,e){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(n[o]=r[o])},i(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");i(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),Ge=function(i,t,e,n){var r=arguments.length,o=r<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,e):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(i,t,e,n);else for(var a=i.length-1;a>=0;a--)(s=i[a])&&(o=(r<3?s(o):r>3?s(t,e,o):s(t,e))||o);return r>3&&o&&Object.defineProperty(t,e,o),o},Kr=function(i){Mc(t,i);function t(e){var n=i.call(this,e)||this;return n.domNode=null,n.onVisibleChoicesChanged=function(){if(i.prototype.onVisibleChoicesChanged.call(n),n.carryForwardStartUnranked&&!n.isValueSetByUser&&!n.selectToRankEnabled&&!n.defaultValue&&(n.value=[]),n.visibleChoices.length===1&&!n.selectToRankEnabled){n.value=[],n.value.push(n.visibleChoices[0].value),n.updateRankingChoices();return}if(n.isEmpty()){n.updateRankingChoices();return}if(n.selectToRankEnabled){n.updateRankingChoices();return}n.visibleChoices.length>n.value.length&&n.addToValueByVisibleChoices(),n.visibleChoices.length<n.value.length&&n.removeFromValueByVisibleChoices(),n.updateRankingChoices()},n.localeChanged=function(){i.prototype.localeChanged.call(n),n.updateRankingChoicesSync()},n._rankingChoicesAnimation=new Qe(n.getChoicesAnimationOptions(!0),function(r){n._renderedRankingChoices=r},function(){return n.renderedRankingChoices}),n._unRankingChoicesAnimation=new Qe(n.getChoicesAnimationOptions(!1),function(r){n._renderedUnRankingChoices=r},function(){return n.renderedUnRankingChoices}),n.rankingChoices=[],n.unRankingChoices=[],n._renderedRankingChoices=[],n._renderedUnRankingChoices=[],n.handlePointerDown=function(r,o,s){var a=r.target;n.isDragStartNodeValid(a)&&n.isAllowStartDrag(a,o)&&(n.draggedChoiceValue=o.value,n.draggedTargetNode=s,n.dragOrClickHelper.onPointerDown(r))},n.startDrag=function(r){var o=k.getItemByValue(n.activeChoices,n.draggedChoiceValue);n.dragDropRankingChoices.startDrag(r,o,n,n.draggedTargetNode)},n.handlePointerUp=function(r,o,s){if(n.selectToRankEnabled){var a=r.target;n.isAllowStartDrag(a,o)&&n.handleKeydownSelectToRank(r,o," ",!1)}},n.handleKeydown=function(r,o){if(!n.isReadOnlyAttr&&!n.isDesignMode){var s=r.key,a=n.rankingChoices.indexOf(o);if(n.selectToRankEnabled){n.handleKeydownSelectToRank(r,o);return}if(s==="ArrowUp"&&a||s==="ArrowDown"&&a!==n.rankingChoices.length-1){var l=s=="ArrowUp"?a-1:a+1;n.dragDropRankingChoices.reorderRankedItem(n,a,l),n.setValueAfterKeydown(l,"",!0,r)}}},n.focusItem=function(r,o){if(n.domNode)if(n.selectToRankEnabled&&o){var s="[data-ranking='"+o+"']",a=n.domNode.querySelectorAll(s+" ."+n.cssClasses.item);a[r].focus()}else{var a=n.domNode.querySelectorAll("."+n.cssClasses.item);a[r].focus()}},n.isValueSetByUser=!1,n.setValue=function(){var r=[];n.rankingChoices.forEach(function(o){r.push(o.value)}),n.value=r,n.isValueSetByUser=!0},n.registerFunctionOnPropertyValueChanged("selectToRankEnabled",function(){n.clearValue(!0),n.setDragDropRankingChoices(),n.updateRankingChoicesSync()}),n.dragOrClickHelper=new Tr(n.startDrag),n}return 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 O().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,b.rankingDragHandleArea==="icon").append(this.cssClasses.rootSelectToRankMod,this.selectToRankEnabled).append(this.cssClasses.rootSelectToRankEmptyValueMod,this.isEmpty()).append(this.cssClasses.rootSelectToRankAlignHorizontal,this.selectToRankEnabled&&this.renderedSelectToRankAreasLayout==="horizontal").append(this.cssClasses.rootSelectToRankAlignVertical,this.selectToRankEnabled&&this.renderedSelectToRankAreasLayout==="vertical").append(this.cssClasses.rootSelectToRankSwapAreas,this.selectToRankEnabled&&this.renderedSelectToRankAreasLayout==="horizontal"&&this.selectToRankSwapAreas).toString()},enumerable:!1,configurable:!0}),t.prototype.isItemSelectedCore=function(e){return this.selectToRankEnabled?i.prototype.isItemSelectedCore.call(this,e):!0},t.prototype.getItemClassCore=function(e,n){return new O().append(i.prototype.getItemClassCore.call(this,e,n)).append(this.cssClasses.itemGhostMod,this.currentDropTarget===e).toString()},t.prototype.getContainerClasses=function(e){var n=!1,r=e==="to",o=e==="from";return r?n=this.renderedRankingChoices.length===0:o&&(n=this.renderedUnRankingChoices.length===0),new O().append(this.cssClasses.container).append(this.cssClasses.containerToMode,r).append(this.cssClasses.containerFromMode,o).append(this.cssClasses.containerEmptyMode,n).toString()},t.prototype.isItemCurrentDropTarget=function(e){return this.dragDropRankingChoices.dropTarget===e},Object.defineProperty(t.prototype,"ghostPositionCssClass",{get:function(){return this.ghostPosition==="top"?this.cssClasses.dragDropGhostPositionTop:this.ghostPosition==="bottom"?this.cssClasses.dragDropGhostPositionBottom:""},enumerable:!1,configurable:!0}),t.prototype.getItemIndexClasses=function(e){var n;return this.selectToRankEnabled?n=this.unRankingChoices.indexOf(e)!==-1:n=this.isEmpty(),new O().append(this.cssClasses.itemIndex).append(this.cssClasses.itemIndexEmptyMode,n).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(e,n){i.prototype.setSurveyImpl.call(this,e,n),this.setDragDropRankingChoices(),this.updateRankingChoicesSync()},t.prototype.isAnswerCorrect=function(){return P.isArraysEqual(this.value,this.correctAnswer,!1)},Object.defineProperty(t.prototype,"requireStrictCompare",{get:function(){return!0},enumerable:!1,configurable:!0}),t.prototype.onSurveyValueChanged=function(e){i.prototype.onSurveyValueChanged.call(this,e),!this.isLoadingFromJson&&this.updateRankingChoices()},t.prototype.onSurveyLoad=function(){this.blockAnimations(),i.prototype.onSurveyLoad.call(this),this.updateRankingChoices(),this.releaseAnimations()},t.prototype.updateValueFromSurvey=function(e,n){i.prototype.updateValueFromSurvey.call(this,e,n),e&&(this.isValueSetByUser=!0)},t.prototype.addToValueByVisibleChoices=function(){var e=this.value.slice();this.visibleChoices.forEach(function(n){e.indexOf(n.value)===-1&&e.push(n.value)}),this.value=e},t.prototype.removeFromValueByVisibleChoices=function(){for(var e=this.value.slice(),n=this.visibleChoices,r=this.value.length-1;r>=0;r--)k.getItemByValue(n,this.value[r])||e.splice(r,1);this.value=e},t.prototype.getChoicesAnimationOptions=function(e){var n=this;return{getKey:function(r){return r.value},getRerenderEvent:function(){return n.onElementRerendered},isAnimationEnabled:function(){return n.animationAllowed&&!n.isDesignMode&&n.isVisible&&!!n.domNode},getReorderOptions:function(r,o){var s="";return r!==n.currentDropTarget&&(s=o?"sv-dragdrop-movedown":"sv-dragdrop-moveup"),{cssClass:s}},getLeaveOptions:function(r){var o=e?n.renderedRankingChoices:n.renderedUnRankingChoices;return n.renderedSelectToRankAreasLayout=="vertical"&&o.length==1&&o.indexOf(r)>=0?{cssClass:"sv-ranking-item--animate-item-removing-empty"}:{cssClass:"sv-ranking-item--animate-item-removing",onBeforeRunAnimation:function(s){s.style.setProperty("--animation-height",s.offsetHeight+"px")}}},getEnterOptions:function(r){var o=e?n.renderedRankingChoices:n.renderedUnRankingChoices;return n.renderedSelectToRankAreasLayout=="vertical"&&o.length==1&&o.indexOf(r)>=0?{cssClass:"sv-ranking-item--animate-item-adding-empty"}:{cssClass:"sv-ranking-item--animate-item-adding",onBeforeRunAnimation:function(s){s.style.setProperty("--animation-height",s.offsetHeight+"px")}}},getAnimatedElement:function(r){var o,s=n.cssClasses,a="";n.selectToRankEnabled&&(!e&&s.containerFromMode?a=be(s.containerFromMode):e&&s.containerToMode&&(a=be(s.containerToMode)));var l=e?n.renderedRankingChoices.indexOf(r):n.renderedUnRankingChoices.indexOf(r);return(o=n.domNode)===null||o===void 0?void 0:o.querySelector(a+" [data-sv-drop-target-ranking-item='"+l+"']")},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 n=this;if(e===void 0&&(e=!1),this.selectToRankEnabled){this.updateRankingChoicesSelectToRankMode(e);return}var r=[];if(e&&(this.rankingChoices=[]),this.isEmpty()){this.rankingChoices=this.visibleChoices;return}this.value.forEach(function(o){n.visibleChoices.forEach(function(s){s.value===o&&r.push(s)})}),this.rankingChoices=r},t.prototype.updateUnRankingChoices=function(e){var n=[];this.visibleChoices.forEach(function(r){n.push(r)}),e.forEach(function(r){n.forEach(function(o,s){o.value===r.value&&n.splice(s,1)})}),this.unRankingChoices=n},t.prototype.updateRankingChoicesSelectToRankMode=function(e){var n=this,r=[];this.isEmpty()||this.value.forEach(function(o){n.visibleChoices.forEach(function(s){s.value===o&&r.push(s)})}),this.updateUnRankingChoices(r),this.rankingChoices=r},t.prototype.endLoadingFromJson=function(){i.prototype.endLoadingFromJson.call(this),this.setDragDropRankingChoices()},t.prototype.setDragDropRankingChoices=function(){this.dragDropRankingChoices=this.createDragDropRankingChoices()},t.prototype.createDragDropRankingChoices=function(){return this.selectToRankEnabled?new Ts(this.survey,null,this.longTap):new Ss(this.survey,null,this.longTap)},t.prototype.isDragStartNodeValid=function(e){return b.rankingDragHandleArea==="icon"?e.classList.contains(this.cssClasses.itemIconHoverMod):!0},t.prototype.isAllowStartDrag=function(e,n){return!this.isReadOnly&&!this.isDesignMode&&this.canStartDragDueMaxSelectedChoices(e)&&this.canStartDragDueItemEnabled(n)},t.prototype.canStartDragDueMaxSelectedChoices=function(e){if(!this.selectToRankEnabled)return!0;var n=e.closest("[data-ranking='from-container']");return n?this.checkMaxSelectedChoicesUnreached():!0},t.prototype.canStartDragDueItemEnabled=function(e){return e.enabled},t.prototype.checkMaxSelectedChoicesUnreached=function(){if(this.maxSelectedChoices<1)return!0;var e=this.value,n=Array.isArray(e)?e.length:0;return n<this.maxSelectedChoices},t.prototype.afterRenderQuestionElement=function(e){this.domNode=e,i.prototype.afterRenderQuestionElement.call(this,e)},t.prototype.beforeDestroyQuestionElement=function(e){this.domNode=void 0,i.prototype.beforeDestroyQuestionElement.call(this,e)},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,n,r,o){if(o===void 0&&(o=!0),!this.isDesignMode){var s=e.key;if(r&&(s=r),!(s!==" "&&s!=="ArrowUp"&&s!=="ArrowDown")){var a=this.dragDropRankingChoices,l=this.rankingChoices,u=l.indexOf(n)!==-1,d=u?l:this.unRankingChoices,v=d.indexOf(n);if(!(v<0)){var V;if(s===" "&&!u){if(!this.checkMaxSelectedChoicesUnreached()||!this.canStartDragDueItemEnabled(n))return;V=this.value.length,a.selectToRank(this,v,V),this.setValueAfterKeydown(V,"to-container",o,e);return}if(u){if(s===" "){a.unselectFromRank(this,v),V=this.unRankingChoices.indexOf(n),this.setValueAfterKeydown(V,"from-container",o,e);return}var T=s==="ArrowUp"?-1:s==="ArrowDown"?1:0;T!==0&&(V=v+T,!(V<0||V>=l.length)&&(a.reorderRankedItem(this,v,V),this.setValueAfterKeydown(V,"to-container",o,e)))}}}}},t.prototype.setValueAfterKeydown=function(e,n,r,o){var s=this;r===void 0&&(r=!0),this.setValue(),r&&setTimeout(function(){s.focusItem(e,n)},1),o&&o.preventDefault()},t.prototype.getIconHoverCss=function(){return new O().append(this.cssClasses.itemIcon).append(this.cssClasses.itemIconHoverMod).toString()},t.prototype.getIconFocusCss=function(){return new O().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,"selectToRankSwapAreas",{get:function(){return this.getPropertyValue("selectToRankSwapAreas",!1)},set:function(e){this.setPropertyValue("selectToRankSwapAreas",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 gn},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-24x24"},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"arrowsSvgIcon",{get:function(){return this.cssClasses.arrowsSvgIconId||"#icon-reorder-24x24"},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"dashSvgIcon",{get:function(){return this.cssClasses.dashSvgIconId||"#icon-rankingundefined-16x16"},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isNewA11yStructure",{get:function(){return!1},enumerable:!1,configurable:!0}),Ge([ae({onSet:function(e,n){return n.updateRenderedRankingChoices()},onRemove:function(e,n,r){return r.updateRenderedRankingChoices()},onPush:function(e,n,r){return r.updateRenderedRankingChoices()}})],t.prototype,"rankingChoices",void 0),Ge([ae({onSet:function(e,n){return n.updateRenderedUnRankingChoices()},onRemove:function(e,n,r){return r.updateRenderedUnRankingChoices()},onPush:function(e,n,r){return r.updateRenderedUnRankingChoices()}})],t.prototype,"unRankingChoices",void 0),Ge([ae()],t.prototype,"_renderedRankingChoices",void 0),Ge([ae()],t.prototype,"_renderedUnRankingChoices",void 0),Ge([h({defaultValue:null})],t.prototype,"currentDropTarget",void 0),Ge([h({defaultValue:!0})],t.prototype,"carryForwardStartUnranked",void 0),Ge([h({localizable:{defaultStr:"selectToRankEmptyRankedAreaText"}})],t.prototype,"selectToRankEmptyRankedAreaText",void 0),Ge([h({localizable:{defaultStr:"selectToRankEmptyUnrankedAreaText"}})],t.prototype,"selectToRankEmptyUnrankedAreaText",void 0),t}(Qt);x.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:"selectToRankSwapAreas:switch",default:!1,visible:!1,isSerializable:!0,dependsOn:"selectToRankEnabled"},{name:"selectToRankAreasLayout",default:"horizontal",choices:["horizontal","vertical"],dependsOn:"selectToRankEnabled",visibleIf:function(i){return!!i.selectToRankEnabled},visible:!0,isSerializable:!0},{name:"selectToRankEmptyRankedAreaText:text",serializationProperty:"locSelectToRankEmptyRankedAreaText",category:"general",dependsOn:"selectToRankEnabled",visibleIf:function(i){return!!i.selectToRankEnabled}},{name:"selectToRankEmptyUnrankedAreaText:text",serializationProperty:"locSelectToRankEmptyUnrankedAreaText",category:"general",dependsOn:"selectToRankEnabled",visibleIf:function(i){return!!i.selectToRankEnabled}},{name:"maxSelectedChoices:number",visible:!0,default:0,dependsOn:"selectToRankEnabled",visibleIf:function(i){return!!i.selectToRankEnabled},isSerializable:!0},{name:"minSelectedChoices:number",visible:!0,default:0,dependsOn:"selectToRankEnabled",visibleIf:function(i){return!!i.selectToRankEnabled},isSerializable:!0},{name:"itemComponent",visible:!1,default:"sv-ranking-item"}],function(){return new Kr("")},"checkbox"),J.Instance.registerQuestion("ranking",function(i){var t=new Kr(i);return t.choices=J.DefaultChoices,t});var jc=function(){var i=function(t,e){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(n[o]=r[o])},i(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");i(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),Yr=function(i){jc(t,i);function t(e){return i.call(this,e)||this}return Object.defineProperty(t.prototype,"textAreaModel",{get:function(){return this.textAreaModelValue||(this.textAreaModelValue=new ln(this.getTextAreaOptions())),this.textAreaModelValue},enumerable:!1,configurable:!0}),t.prototype.getTextAreaOptions=function(){var e=this,n=this,r=function(s){P.isTwoValueEquals(n.value,s,!1,!0,!1)||(n.value=s)},o={question:this,id:function(){return e.inputId},propertyName:"value",className:function(){return e.className},placeholder:function(){return e.renderedPlaceholder},isDisabledAttr:function(){return e.isDisabledAttr},isReadOnlyAttr:function(){return e.isReadOnlyAttr},autoGrow:function(){return e.renderedAutoGrow},maxLength:function(){return e.getMaxLength()},rows:function(){return e.rows},cols:function(){return e.cols},ariaRequired:function(){return e.a11y_input_ariaRequired},ariaLabel:function(){return e.a11y_input_ariaLabel},ariaLabelledBy:function(){return e.a11y_input_ariaLabelledBy},ariaDescribedBy:function(){return e.a11y_input_ariaDescribedBy},ariaInvalid:function(){return e.a11y_input_ariaInvalid},ariaErrormessage:function(){return e.a11y_input_ariaErrormessage},getTextValue:function(){return e.value},onTextAreaChange:function(s){r(s.target.value)},onTextAreaInput:function(s){e.onInput(s)},onTextAreaKeyDown:function(s){e.onKeyDown(s)},onTextAreaFocus:function(s){e.onFocus(s)},onTextAreaBlur:function(s){e.onBlur(s)}};return o},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")},set:function(e){this.setPropertyValue("autoGrow",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"renderedAutoGrow",{get:function(){var e=this.autoGrow;return e===void 0&&this.survey?this.survey.autoGrowComment:!!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(){var e=this.allowResize;return e===void 0&&this.survey?this.survey.allowResizeComment:!!e},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(e){var n=b.environment.root;this.element=n.getElementById(this.inputId)||e,i.prototype.afterRenderQuestionElement.call(this,e)},t.prototype.beforeDestroyQuestionElement=function(e){i.prototype.beforeDestroyQuestionElement.call(this,e),this.element=void 0},t.prototype.onInput=function(e){this.isInputTextUpdate&&(this.value=e.target.value),this.updateRemainingCharacterCounter(e.target.value)},t.prototype.onBlurCore=function(e){i.prototype.onBlurCore.call(this,e)},t.prototype.onKeyDown=function(e){this.onKeyDownPreprocess&&this.onKeyDownPreprocess(e),!this.acceptCarriageReturn&&(e.key==="Enter"||e.keyCode===13)&&(e.preventDefault(),e.stopPropagation())},t.prototype.setNewValue=function(e){!this.acceptCarriageReturn&&e&&(e=e.replace(new RegExp(`(\r -| -|\r)`,"gm"),"")),i.prototype.setNewValue.call(this,e)},t.prototype.getValueSeparator=function(){return` -`},t.prototype.notifyStateChanged=function(e){i.prototype.notifyStateChanged.call(this,e),this.isCollapsed||this.textAreaModel.updateElement()},Object.defineProperty(t.prototype,"className",{get:function(){return(this.cssClasses?this.getControlClass():"panel-comment-root")||void 0},enumerable:!1,configurable:!0}),t}(Pn);x.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",defaultFunc:function(){}},{name:"allowResize:boolean",defaultFunc:function(){}},{name:"acceptCarriageReturn:boolean",default:!0,visible:!1}],function(){return new Yr("")},"textbase"),J.Instance.registerQuestion("comment",function(i){return new Yr(i)});var zt="environment",Ke="user",Nc=function(){function i(){this.canFlipValue=void 0}return i.clear=function(){i.cameraList=void 0,i.cameraIndex=-1},i.setCameraList=function(t){var e=function(n){var r=n.label.toLocaleLowerCase();return r.indexOf(Ke)>-1?Ke:r.indexOf(zt)>-1?zt:r.indexOf("front")>-1?Ke:r.indexOf("back")>-1?zt:""};i.clear(),Array.isArray(t)&&t.length>0&&(i.cameraIndex=-1,t.sort(function(n,r){if(n===r)return 0;if(n.label!==r.label){var o=e(n),s=e(r);if(o!==s){if(o===Ke)return-1;if(s===Ke)return 1;if(o===zt)return-1;if(s===zt)return 1}}var a=t.indexOf(n),l=t.indexOf(r);return a<l?-1:1})),i.cameraList=t},i.prototype.hasCamera=function(t){var e=this;if(i.cameraList!==void 0){this.hasCameraCallback(t);return}if(i.mediaDevicesCallback){var n=function(r){e.setVideoInputs(r),e.hasCameraCallback(t)};i.mediaDevicesCallback(n);return}typeof navigator<"u"&&navigator.mediaDevices?navigator.mediaDevices.enumerateDevices().then(function(r){e.setVideoInputs(r),e.hasCameraCallback(t),e.updateCanFlipValue()}).catch(function(r){i.cameraList=null,e.hasCameraCallback(t)}):(i.cameraList=null,this.hasCameraCallback(t))},i.prototype.getMediaConstraints=function(t){var e=i.cameraList;if(!(!Array.isArray(e)||e.length<1)){i.cameraIndex<0&&(i.cameraIndex=0);var n=e[i.cameraIndex],r={};return n&&n.deviceId?r.deviceId={exact:n.deviceId}:r.facingMode=i.cameraFacingMode,t&&(t!=null&&t.height&&(r.height={ideal:t.height}),t!=null&&t.width&&(r.width={ideal:t.width})),{video:r,audio:!1}}},i.prototype.startVideo=function(t,e,n,r){var o=this;if(!t){e(void 0);return}t.style.width="100%",t.style.height="auto",t.style.height="100%",t.style.objectFit="contain";var s=this.getMediaConstraints({width:n,height:r});navigator.mediaDevices.getUserMedia(s).then(function(a){var l;t.srcObject=a,!(!((l=i.cameraList[i.cameraIndex])===null||l===void 0)&&l.deviceId)&&a.getTracks()[0].getCapabilities().facingMode&&(i.canSwitchFacingMode=!0,o.updateCanFlipValue()),t.play(),e(a)}).catch(function(a){e(void 0)})},i.prototype.getImageSize=function(t){return{width:t.videoWidth,height:t.videoHeight}},i.prototype.snap=function(t,e){if(!t||!I.isAvailable())return!1;var n=I.getDocument(),r=n.createElement("canvas"),o=this.getImageSize(t);r.height=o.height,r.width=o.width;var s=r.getContext("2d");return s.clearRect(0,0,r.width,r.height),s.drawImage(t,0,0,r.width,r.height),r.toBlob(e,"image/png"),!0},i.prototype.updateCanFlipValue=function(){var t=i.cameraList;this.canFlipValue=Array.isArray(t)&&t.length>1||i.canSwitchFacingMode,this.onCanFlipChangedCallback&&this.onCanFlipChangedCallback(this.canFlipValue)},i.prototype.canFlip=function(t){return this.canFlipValue===void 0&&this.updateCanFlipValue(),t&&(this.onCanFlipChangedCallback=t),this.canFlipValue},i.prototype.flip=function(){this.canFlip()&&(i.canSwitchFacingMode?i.cameraFacingMode=i.cameraFacingMode===Ke?"environment":Ke:i.cameraIndex>=i.cameraList.length-1?i.cameraIndex=0:i.cameraIndex++)},i.prototype.hasCameraCallback=function(t){t(Array.isArray(i.cameraList))},i.prototype.setVideoInputs=function(t){var e=[];t.forEach(function(n){n.kind==="videoinput"&&e.push(n)}),i.setCameraList(e.length>0?e:null)},i.cameraIndex=-1,i.cameraFacingMode=Ke,i.canSwitchFacingMode=!1,i}(),Xr=function(){var i=function(t,e){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(n[o]=r[o])},i(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");i(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),ee=function(i,t,e,n){var r=arguments.length,o=r<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,e):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(i,t,e,n);else for(var a=i.length-1;a>=0;a--)(s=i[a])&&(o=(r<3?s(o):r>3?s(t,e,o):s(t,e))||o);return r>3&&o&&Object.defineProperty(t,e,o),o};function Fc(i,t,e){var n=atob(i.split(",")[1]),r=new Uint8Array(n.split("").map(function(o){return o.charCodeAt(0)})).buffer;return new File([r],t,{type:e})}var Rs=function(i){Xr(t,i);function t(){var e=i!==null&&i.apply(this,arguments)||this;return e.isUploading=!1,e.onUploadStateChanged=e.addEvent(),e.onStateChanged=e.addEvent(),e}return t.prototype.stateChanged=function(e){this.currentState!=e&&(e==="loading"&&(this.isUploading=!0),e==="loaded"&&(this.isUploading=!1),e==="error"&&(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(e){this.clearOnDeletingContainer(),i.prototype.clearValue.call(this,e)},t.prototype.clearOnDeletingContainer=function(){this.survey&&this.survey.clearFiles(this,this.name,this.value,null,function(){})},t.prototype.onCheckForErrors=function(e,n,r){i.prototype.onCheckForErrors.call(this,e,n,r),this.isUploading&&this.waitForUpload&&e.push(new an(this.getLocalizationString("uploadingFile"),this))},t.prototype.uploadFiles=function(e){var n=this;this.survey&&(this.stateChanged("loading"),this.survey.uploadFiles(this,this.name,e,function(r,o){Array.isArray(r)&&(n.setValueFromResult(r),Array.isArray(o)&&(o.forEach(function(s){return n.errors.push(new an(s,n))}),n.stateChanged("error"))),r==="success"&&Array.isArray(o)&&n.setValueFromResult(o),r==="error"&&(typeof o=="string"&&n.errors.push(new an(o,n)),Array.isArray(o)&&o.length>0&&o.forEach(function(s){return n.errors.push(new an(s,n))}),n.stateChanged("error")),n.stateChanged("loaded")}))},t.prototype.loadPreview=function(e){},t.prototype.onChangeQuestionValue=function(e){i.prototype.onChangeQuestionValue.call(this,e),this.stateChanged(this.isEmpty()?"empty":"loaded")},t.prototype.getIsQuestionReady=function(){return i.prototype.getIsQuestionReady.call(this)&&!this.isFileLoading},Object.defineProperty(t.prototype,"isFileLoading",{get:function(){return this.isFileLoadingValue},set:function(e){this.isFileLoadingValue=e,this.updateIsReady()},enumerable:!1,configurable:!0}),ee([h()],t.prototype,"isUploading",void 0),ee([h({defaultValue:"empty"})],t.prototype,"currentState",void 0),t}(ue),Es=function(i){Xr(t,i);function t(e,n){var r=i.call(this)||this;return r.question=e,r.index=n,r.id=t.getId(),r}return t.getId=function(){return"sv_sfp_"+t.pageCounter++},Object.defineProperty(t.prototype,"css",{get:function(){return this.question.cssClasses.page},enumerable:!1,configurable:!0}),t.pageCounter=0,ee([ae({})],t.prototype,"items",void 0),t}(z),Zr=function(i){Xr(t,i);function t(e){var n=i.call(this,e)||this;return n.isDragging=!1,n.fileNavigator=new Ee,n.canFlipCameraValue=void 0,n.prevPreviewLength=0,n._renderedPages=[],n.pagesAnimation=new Yn(n.getPagesAnimationOptions(),function(r){n._renderedPages=r},function(){return n.renderedPages}),n.calcAvailableItemsCount=function(r,o,s){var a=Math.floor(r/(o+s));return(a+1)*(o+s)-s<=r&&a++,a},n.dragCounter=0,n.onDragEnter=function(r){n.canDragDrop()&&(r.preventDefault(),n.isDragging=!0,n.dragCounter++)},n.onDragOver=function(r){if(!n.canDragDrop())return r.returnValue=!1,!1;r.dataTransfer.dropEffect="copy",r.preventDefault()},n.onDrop=function(r){if(n.canDragDrop()){n.isDragging=!1,n.dragCounter=0,r.preventDefault();var o=r.dataTransfer;n.onChange(o)}},n.onDragLeave=function(r){n.canDragDrop()&&(n.dragCounter--,n.dragCounter===0&&(n.isDragging=!1))},n.doChange=function(r){var o=r.target||r.srcElement;n.onChange(o)},n.doClean=function(){if(n.needConfirmRemoveFile){At({message:n.confirmRemoveAllMessage,funcOnYes:function(){n.clearFilesCore()},locale:n.getLocale(),rootElement:n.survey.rootElement,cssClass:n.cssClasses.confirmDialog});return}n.clearFilesCore()},n.doDownloadFileFromContainer=function(r){r.stopPropagation();var o=r.currentTarget;if(o&&o.getElementsByTagName){var s=o.getElementsByTagName("a")[0];s==null||s.click()}},n.doDownloadFile=function(r,o){r.stopPropagation(),Dt()&&(r.preventDefault(),lo(o.content,o.name))},n.createLocalizableString("takePhotoCaption",n,!1,!0),n.createLocalizableString("clearCaption",n,!1,!0),n.actionsContainer=new Ee,n.actionsContainer.locOwner=n,n.fileIndexAction=new $({id:"fileIndex",title:n.getFileIndexCaption(),enabled:!1}),n.prevFileAction=new $({id:"prevPage",iconSize:16,action:function(){n.navigationDirection="left",n.indexToShow=n.previewValue.length&&(n.indexToShow-1+n.pagesCount)%n.pagesCount||0,n.fileIndexAction.title=n.getFileIndexCaption()}}),n.nextFileAction=new $({id:"nextPage",iconSize:16,action:function(){n.navigationDirection="right",n.indexToShow=n.previewValue.length&&(n.indexToShow+1)%n.pagesCount||0,n.fileIndexAction.title=n.getFileIndexCaption()}}),n.takePictureAction=new $({iconName:"icon-takepicture",id:"sv-file-take-picture",iconSize:"auto",innerCss:new te(function(){return new O().append(n.cssClasses.contextButton).append(n.cssClasses.takePictureButton).toString()}),locTitle:n.locTakePhotoCaption,showTitle:!1,action:function(){n.snapPicture()}}),n.closeCameraAction=new $({iconName:"icon-closecamera",id:"sv-file-close-camera",iconSize:"auto",innerCss:new te(function(){return new O().append(n.cssClasses.contextButton).append(n.cssClasses.closeCameraButton).toString()}),action:function(){n.stopVideo()}}),n.changeCameraAction=new $({iconName:"icon-changecamera",id:"sv-file-change-camera",iconSize:"auto",innerCss:new te(function(){return new O().append(n.cssClasses.contextButton).append(n.cssClasses.changeCameraButton).toString()}),visible:new te(function(){return n.canFlipCamera()}),action:function(){n.flipCamera()}}),n.chooseFileAction=new $({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 $({iconName:"icon-takepicture_24x24",id:"sv-file-start-camera",iconSize:"auto",locTitle:n.locTakePhotoCaption,showTitle:new te(function(){return!n.isAnswered}),enabledIf:function(){return!n.isInputReadOnly},action:function(){n.startVideo()}}),n.cleanAction=new $({iconName:"icon-clear",id:"sv-file-clean",iconSize:"auto",locTitle:n.locClearButtonCaption,showTitle:!1,enabledIf:function(){return!n.isInputReadOnly},innerCss:new te(function(){return n.cssClasses.removeButton}),action:function(){n.doClean()}}),[n.closeCameraAction,n.changeCameraAction,n.takePictureAction].forEach(function(r){r.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 Object.defineProperty(t.prototype,"supportFileNavigator",{get:function(){return this.isDefaultV2Theme},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"fileNavigatorVisible",{get:function(){var e=this.isUploading,n=this.isPlayingVideo,r=this.containsMultiplyFiles,o=this.pageSize<this.previewValue.length;return!e&&!n&&r&&o&&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,n=this.isPlayingVideo,r=this.isDefaultV2Theme;return!e&&!n&&r},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 this.currentMode!=="file"},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hasFileUI",{get:function(){return this.currentMode!=="camera"},enumerable:!1,configurable:!0}),t.prototype.startVideo=function(){var e=this;this.currentMode==="file"||this.isDesignMode||this.isPlayingVideo||(this.setIsPlayingVideo(!0),setTimeout(function(){e.startVideoInCamera()},0))},Object.defineProperty(t.prototype,"videoHtmlElement",{get:function(){var e;return(e=this.rootElement)===null||e===void 0?void 0:e.querySelector("#"+this.videoId)},enumerable:!1,configurable:!0}),t.prototype.startVideoInCamera=function(){var e=this;this.camera.startVideo(this.videoHtmlElement,function(n){e.videoStream=n,n||e.stopVideo()},nt(this.imageWidth),nt(this.imageHeight))},t.prototype.stopVideo=function(){this.setIsPlayingVideo(!1),this.closeVideoStream()},t.prototype.snapPicture=function(){var e=this;if(this.isPlayingVideo){var n=function(r){if(r){var o=new File([r],"snap_picture.png",{type:"image/png"});e.loadFiles([o])}};this.camera.snap(this.videoHtmlElement,n),this.stopVideo()}},t.prototype.canFlipCamera=function(){var e=this;return this.canFlipCameraValue===void 0&&(this.canFlipCameraValue=this.camera.canFlip(function(n){e.canFlipCameraValue=n})),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(){i.prototype.onHidingContent.call(this),this.stopVideo()},t.prototype.updateElementCssCore=function(e){i.prototype.updateElementCssCore.call(this,e),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.updatePages(),this.navigationDirection=void 0,this.indexToShow=this.previewValue.length&&(this.indexToShow+this.pagesCount)%this.pagesCount||0,this.fileIndexAction.title=this.getFileIndexCaption()},t.prototype.updateRenderedPages=function(){this.pages&&this.pages[this.indexToShow]&&(this.renderedPages=[this.pages[this.indexToShow]])},t.prototype.updatePages=function(){var e=this;this.blockAnimations();var n;this.pages=[],this.renderedPages=[],this.previewValue.forEach(function(r,o){o%e.pageSize==0&&(n=new Es(e,e.pages.length),e.pages.push(n)),n.items.push(r)}),this.releaseAnimations(),this.updateRenderedPages()},t.prototype.previewValueChanged=function(){var e=this;this.navigationDirection=void 0,this.previewValue.length!==this.prevPreviewLength&&(this.previewValue.length>0?this.prevPreviewLength>this.previewValue.length?this.indexToShow>=this.pagesCount&&this.indexToShow>0&&(this.indexToShow=this.pagesCount-1,this.navigationDirection="left-delete"):this.indexToShow=Math.floor(this.prevPreviewLength/this.pageSize):this.indexToShow=0),this.updatePages(),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)},1),this.prevPreviewLength=this.previewValue.length},t.prototype.getType=function(){return"file"},t.prototype.onChangeQuestionValue=function(e){i.prototype.onChangeQuestionValue.call(this,e),this.isLoadingFromJson||this.loadPreview(e)},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 n=this;if(this.rootElement){var r=this.rootElement.querySelector("#"+this.inputId);r&&(e.preventDefault(),e.stopImmediatePropagation(),r&&(this.survey?this.survey.chooseFiles(r,function(o){return n.loadFiles(o)},{element:this,elementType:this.getType(),propertyName:this.name}):r.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 this.locRenderedPlaceholderValue===void 0&&(this.locRenderedPlaceholderValue=new te(function(){var n=e.isReadOnly,r=!e.isDesignMode&&e.hasFileUI||e.isDesignMode&&e.sourceType!="camera",o=!e.isDesignMode&&e.hasVideoUI||e.isDesignMode&&e.sourceType!="file",s;return n?s=e.locNoFileChosenCaption:r&&o?s=e.locFileOrPhotoPlaceholder:r?s=e.locFilePlaceholder:s=e.locPhotoPlaceholder,s})),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&&this.survey&&(this.sourceType!=="file"?this.camera.hasCamera(function(n){e.setPropertyValue("currentMode",n&&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&&this.sourceType!=="camera",this.startCameraAction.visible=!e&&this.hasVideoUI||e&&this.sourceType!=="file",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 n=this;this.survey&&(this.containsMultiplyFiles=!1,this.survey.clearFiles(this,this.name,this.value,null,function(r,o){r==="success"&&(n.value=void 0,n.errors=[],e&&e(),n.indexToShow=0,n.fileIndexAction.title=n.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,n=this.showLoadingIndicator;return!e&&!n},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"allowShowPreview",{get:function(){var e=this.showLoadingIndicator,n=this.isPlayingVideo;return!e&&!n},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,n=this.isReadOnly,r=this.isEmpty();return!n&&!r&&!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 O().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(n){return n.name===e})[0])},t.prototype.removeFileByContent=function(e){var n=this;this.survey&&this.survey.clearFiles(this,this.name,this.value,e.name,function(r,o){if(r==="success"){var s=n.value;Array.isArray(s)?n.value=s.filter(function(a){return!P.isTwoValueEquals(a,e,!0,!1,!1)}):n.value=void 0}})},t.prototype.setValueFromResult=function(e){this.value=(this.value||[]).concat(e.map(function(n){return{name:n.file.name,type:n.file.type,content:n.content}}))},t.prototype.loadFiles=function(e){var n=this;if(this.survey&&(this.errors=[],!!this.allFilesOk(e))){var r=function(){n.stateChanged("loading");var o=[];n.storeDataAsText?e.forEach(function(s){var a=new FileReader;a.onload=function(l){o=o.concat([{name:s.name,type:s.type,content:a.result}]),o.length===e.length&&(n.value=(n.value||[]).concat(o))},a.readAsDataURL(s)}):n.uploadFiles(e)};this.allowMultiple?r():this.clear(r)}},Object.defineProperty(t.prototype,"camera",{get:function(){return this.cameraValue||(this.cameraValue=new Nc),this.cameraValue},enumerable:!1,configurable:!0}),t.prototype.canPreviewImage=function(e){return this.allowImagesPreview&&!!e&&this.isFileImage(e)},t.prototype.loadPreview=function(e){var n=this;if(!(this.showPreview&&this.prevLoadedPreviewValue===e)&&(this.previewValue.splice(0,this.previewValue.length),!(!this.showPreview||!e))){this.prevLoadedPreviewValue=e;var r=Array.isArray(e)?e:e?[e]:[];this.storeDataAsText?(r.forEach(function(o){var s=o.content||o;n.previewValue.push({name:o.name,type:o.type,content:s})}),this.previewValueChanged()):(this._previewLoader&&this._previewLoader.dispose(),this.isFileLoading=!0,this._previewLoader=new Is(this,function(o,s){o!=="error"&&(s.forEach(function(a){n.previewValue.push(a)}),n.previewValueChanged()),n.isFileLoading=!1,n._previewLoader.dispose(),n._previewLoader=void 0}),this._previewLoader.load(r))}},t.prototype.allFilesOk=function(e){var n=this,r=this.errors?this.errors.length:0;return(e||[]).forEach(function(o){n.maxSize>0&&o.size>n.maxSize&&n.errors.push(new vo(n.maxSize,n))}),r===this.errors.length},t.prototype.isFileImage=function(e){if(!e||!e.content||!e.content.substring)return!1;var n="data:image",r=e.content&&e.content.substring(0,n.length);r=r&&r.toLowerCase();var o=r===n||!!e.type&&e.type.toLowerCase().indexOf("image/")===0;return o},t.prototype.getPlainData=function(e){e===void 0&&(e={includeEmpty:!0});var n=i.prototype.getPlainData.call(this,e);if(n&&!this.isEmpty()){n.isNode=!1;var r=Array.isArray(this.value)?this.value:[this.value];n.data=r.map(function(o,s){return{name:s,title:"File",value:o.content&&o.content||o,displayValue:o.name&&o.name||o,getString:function(a){return typeof a=="object"?JSON.stringify(a):a},isNode:!1}})}return n},t.prototype.getImageWrapperCss=function(e){return new O().append(this.cssClasses.imageWrapper).append(this.cssClasses.imageWrapperDefaultImage,this.defaultImage(e)).toString()},t.prototype.getActionsContainerCss=function(e){return new O().append(e.actionsContainer).append(e.actionsContainerAnswered,this.isAnswered).toString()},t.prototype.getRemoveButtonCss=function(){return new O().append(this.cssClasses.removeFileButton).append(this.cssClasses.contextButton).toString()},t.prototype.getChooseFileCss=function(){var e=this.isAnswered;return new O().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 O().append("form-control").append(this.cssClasses.placeholderInput).toString()},Object.defineProperty(t.prototype,"fileRootCss",{get:function(){return new O().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 O().append(this.cssClasses.fileDecorator).append(this.cssClasses.onError,this.hasCssError()).append(this.cssClasses.fileDecoratorDrag,this.isDragging).toString()},t.prototype.onChange=function(e){if(E.isFileReaderAvailable()&&!(!e||!e.files||e.files.length<1)){for(var n=[],r=this.allowMultiple?e.files.length:1,o=0;o<r;o++)n.push(e.files[o]);e.value="",this.loadFiles(n)}},t.prototype.calcCssClasses=function(e){var n=i.prototype.calcCssClasses.call(this,e);return this.actionsContainer.cssClasses=e.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(){i.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 be(this.cssClasses.dragArea)},t.prototype.getFileListSelector=function(){return be(this.cssClasses.fileList)},Object.defineProperty(t.prototype,"renderedPages",{get:function(){return this._renderedPages},set:function(e){this.pagesAnimation.sync(e)},enumerable:!1,configurable:!0}),t.prototype.getPagesAnimationOptions=function(){var e=this;return{getEnterOptions:function(n){var r=e.cssClasses.page;return{cssClass:r?new O().append(r+"--enter-from-left",e.navigationDirection=="left"||e.navigationDirection=="left-delete").append(r+"--enter-from-right",e.navigationDirection=="right").toString():""}},getLeaveOptions:function(n){var r=e.cssClasses.page;return{cssClass:r?new O().append(r+"--leave-to-left",e.navigationDirection=="right").append(r+"--leave-to-right",e.navigationDirection=="left").toString():""}},getAnimatedElement:function(n){var r;return(r=e.rootElement)===null||r===void 0?void 0:r.querySelector("#"+n.id)},isAnimationEnabled:function(){return e.animationAllowed&&!!e.rootElement},getRerenderEvent:function(){return e.onElementRerendered}}},t.prototype.triggerResponsiveness=function(e){e&&(this.calculatedGapBetweenItems=void 0,this.calculatedItemWidth=void 0),i.prototype.triggerResponsiveness.call(this)},t.prototype.processResponsiveness=function(e,n){if(this._width=n,this.rootElement&&(!this.calculatedGapBetweenItems||!this.calculatedItemWidth)&&this.allowMultiple){var r=this.getFileListSelector(),o=r?this.rootElement.querySelector(this.getFileListSelector()):void 0;if(o){var s=o.querySelector(be(this.cssClasses.page));if(s){var a=s.querySelector(be(this.cssClasses.previewItem));this.calculatedGapBetweenItems=Math.ceil(Number.parseFloat(I.getComputedStyle(s).gap)),a&&(this.calculatedItemWidth=Math.ceil(Number.parseFloat(I.getComputedStyle(a).width)))}}}return this.calculatedGapBetweenItems&&this.calculatedItemWidth?(this.pageSize=this.calcAvailableItemsCount(n,this.calculatedItemWidth,this.calculatedGapBetweenItems),!0):!1},t.prototype.canDragDrop=function(){return!this.isInputReadOnly&&this.currentMode!=="camera"&&!this.isPlayingVideo},t.prototype.afterRenderQuestionElement=function(e){this.rootElement=e},t.prototype.beforeDestroyQuestionElement=function(e){this.rootElement=void 0},t.prototype.clearFilesCore=function(){if(this.rootElement){var e=this.rootElement.querySelectorAll("input")[0];e&&(e.value="")}this.clear()},t.prototype.doRemoveFile=function(e,n){var r=this;if(n.stopPropagation(),this.needConfirmRemoveFile){At({message:this.getConfirmRemoveMessage(e.name),funcOnYes:function(){r.clearFilesCore()},locale:this.getLocale(),rootElement:this.survey.rootElement,cssClass:this.cssClasses.confirmDialog});return}this.removeFileCore(e)},t.prototype.removeFileCore=function(e){var n=this.previewValue.indexOf(e);this.removeFileByContent(n===-1?e:this.value[n])},t.prototype.dispose=function(){this.cameraValue=void 0,this.closeVideoStream(),i.prototype.dispose.call(this)},ee([h()],t.prototype,"isDragging",void 0),ee([ae({})],t.prototype,"previewValue",void 0),ee([ae({})],t.prototype,"pages",void 0),ee([h({defaultValue:0,onSet:function(e,n){n.updateRenderedPages()}})],t.prototype,"indexToShow",void 0),ee([h({defaultValue:1,onSet:function(e,n){n.updateFileNavigator()}})],t.prototype,"pageSize",void 0),ee([h({defaultValue:!1})],t.prototype,"containsMultiplyFiles",void 0),ee([h()],t.prototype,"allowCameraAccess",void 0),ee([h({onSet:function(e,n){n.isLoadingFromJson||n.updateCurrentMode()}})],t.prototype,"sourceType",void 0),ee([h()],t.prototype,"canFlipCameraValue",void 0),ee([h({localizable:{defaultStr:"confirmRemoveFile"}})],t.prototype,"confirmRemoveMessage",void 0),ee([h({localizable:{defaultStr:"confirmRemoveAllFiles"}})],t.prototype,"confirmRemoveAllMessage",void 0),ee([h({localizable:{defaultStr:"noFileChosen"}})],t.prototype,"noFileChosenCaption",void 0),ee([h({localizable:{defaultStr:"chooseFileCaption"}})],t.prototype,"chooseButtonCaption",void 0),ee([h({localizable:{defaultStr:"replaceFileCaption"}})],t.prototype,"replaceButtonCaption",void 0),ee([h({localizable:{defaultStr:"removeFileCaption"}})],t.prototype,"removeFileCaption",void 0),ee([h({localizable:{defaultStr:"loadingFile"}})],t.prototype,"loadingFileTitle",void 0),ee([h({localizable:{defaultStr:"chooseFile"}})],t.prototype,"chooseFileTitle",void 0),ee([h({localizable:{defaultStr:"fileOrPhotoPlaceholder"}})],t.prototype,"fileOrPhotoPlaceholder",void 0),ee([h({localizable:{defaultStr:"photoPlaceholder"}})],t.prototype,"photoPlaceholder",void 0),ee([h({localizable:{defaultStr:"filePlaceholder"}})],t.prototype,"filePlaceholder",void 0),ee([h()],t.prototype,"locRenderedPlaceholderValue",void 0),ee([ae()],t.prototype,"_renderedPages",void 0),t}(Rs);x.addClass("file",[{name:"showCommentArea:switch",layout:"row",visible:!0,category:"general"},{name:"showPreview:boolean",default:!0,visible:!1},"allowMultiple:boolean",{name:"allowImagesPreview:boolean",default:!0,dependsOn:"showPreview",visibleIf:function(i){return!!i.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 b.supportCreatorV2}},{name:"fileOrPhotoPlaceholder:text",serializationProperty:"locFileOrPhotoPlaceholder",category:"general",visibleIf:function(){return b.supportCreatorV2}},{name:"photoPlaceholder:text",serializationProperty:"locPhotoPlaceholder",category:"general",visibleIf:function(){return b.supportCreatorV2}},{name:"filePlaceholder:text",serializationProperty:"locFilePlaceholder",category:"general",visibleIf:function(){return b.supportCreatorV2}},{name:"allowCameraAccess:switch",category:"general",visible:!1}],function(){return new Zr("")},"question"),J.Instance.registerQuestion("file",function(i){return new Zr(i)});var Is=function(){function i(t,e){this.fileQuestion=t,this.callback=e,this.loaded=[]}return i.prototype.load=function(t){var e=this,n=0;this.loaded=new Array(t.length),t.forEach(function(r,o){e.fileQuestion.survey&&e.fileQuestion.survey.downloadFile(e.fileQuestion,e.fileQuestion.name,r,function(s,a){!e.fileQuestion||!e.callback||(s!=="error"?(e.loaded[o]={content:a,name:r.name,type:r.type},n++,n===t.length&&e.callback(s,e.loaded)):e.callback("error",e.loaded))})})},i.prototype.dispose=function(){this.fileQuestion=void 0,this.callback=void 0},i}(),_c=function(){var i=function(t,e){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(n[o]=r[o])},i(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");i(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),ei=function(i){_c(t,i);function t(e){var n=i.call(this,e)||this,r=n.createLocalizableString("html",n);return r.onGetTextCallback=function(o){return n.survey&&!n.ignoreHtmlProgressing?n.processHtml(o):o},n}return t.prototype.getType=function(){return"html"},Object.defineProperty(t.prototype,"isCompositeQuestion",{get:function(){return!0},enumerable:!1,configurable:!0}),t.prototype.getProcessedText=function(e){return this.ignoreHtmlProgressing?e:i.prototype.getProcessedText.call(this,e)},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 O().append(this.cssClasses.root).append(this.cssClasses.nested,this.getIsNested()).toString()||void 0},enumerable:!1,configurable:!0}),t}(xn);x.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 ei("")},"nonvalue"),J.Instance.registerQuestion("html",function(i){return new ei(i)});var Bc=function(){var i=function(t,e){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(n[o]=r[o])},i(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");i(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),ti=function(i){Bc(t,i);function t(e){return i.call(this,e)||this}return 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 this.isMouseDown===!0&&!this.isOtherSelected},t.prototype.getConditionJson=function(e,n){e===void 0&&(e=null),n===void 0&&(n=null);var r=i.prototype.getConditionJson.call(this,e,n);return delete r.showClearButton,r},t.prototype.setNewComment=function(e){this.isMouseDown=!0,i.prototype.setNewComment.call(this,e),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,n=[];if(this.isDefaultV2Theme&&!this.isDesignMode){var r=new $({locTitleName:"clearCaption",id:"sv-clr-btn-"+this.id,action:function(){e.clearValue(!0)},innerCss:this.cssClasses.clearButton,visible:new te(function(){return e.canShowClearButton})});n.push(r)}return n},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}(kt);x.addClass("radiogroup",[{name:"showClearButton:boolean",default:!1},{name:"separateSpecialChoices",visible:!0},{name:"itemComponent",visible:!1,default:"survey-radiogroup-item"}],function(){return new ti("")},"checkboxbase"),J.Instance.registerQuestion("radiogroup",function(i){var t=new ti(i);return t.choices=J.DefaultChoices,t});var ni=function(){var i=function(t,e){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(n[o]=r[o])},i(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");i(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),ye=function(i,t,e,n){var r=arguments.length,o=r<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,e):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(i,t,e,n);else for(var a=i.length-1;a>=0;a--)(s=i[a])&&(o=(r<3?s(o):r>3?s(t,e,o):s(t,e))||o);return r>3&&o&&Object.defineProperty(t,e,o),o},Sn=function(i){ni(t,i);function t(e,n){n===void 0&&(n=null);var r=i.call(this)||this;return r.itemValue=e,r.locString=n,r.locText.onStringChanged.add(r.onStringChangedCallback.bind(r)),r.onStringChangedCallback(),r}return 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}),ye([h({defaultValue:""})],t.prototype,"highlight",void 0),ye([h({defaultValue:""})],t.prototype,"text",void 0),ye([h()],t.prototype,"style",void 0),t}(z),kc=function(i){ni(t,i);function t(e,n,r){var o=i.call(this,e,n)||this;return o.description=r,o}return t}(k),ri=function(i){ni(t,i);function t(e){var n=i.call(this,e)||this;return n._syncPropertiesChanging=!1,n.iCounter=0,n.createItemValues("rateValues"),n.createLocalizableString("ratingOptionsCaption",n,!1,!0),n.registerFunctionOnPropertiesValueChanged(["rateMin","rateMax","minRateDescription","maxRateDescription","rateStep","displayRateDescriptionsAsExtremeItems"],function(){return n.resetRenderedItems()}),n.registerFunctionOnPropertiesValueChanged(["rateType"],function(){n.setIconsToRateValues(),n.resetRenderedItems(),n.updateRateCount()}),n.registerFunctionOnPropertiesValueChanged(["rateValues"],function(){n.setIconsToRateValues(),n.resetRenderedItems()}),n.registerSychProperties(["rateValues"],function(){n.autoGenerate=n.rateValues.length==0,n.setIconsToRateValues(),n.resetRenderedItems()}),n.registerFunctionOnPropertiesValueChanged(["rateColorMode","scaleColorMode"],function(){n.updateColors(n.survey.themeVariables)}),n.registerFunctionOnPropertiesValueChanged(["displayMode"],function(){n.updateRenderAsBasedOnDisplayMode(!0)}),n.registerSychProperties(["autoGenerate"],function(){!n.autoGenerate&&n.rateValues.length===0&&n.setPropertyValue("rateValues",n.visibleRateValues),n.autoGenerate&&(n.rateValues.splice(0,n.rateValues.length),n.updateRateMax()),n.resetRenderedItems()}),n.createLocalizableString("minRateDescription",n,!0).onStringChanged.add(function(r,o){n.hasMinRateDescription=!r.isEmpty}),n.createLocalizableString("maxRateDescription",n,!0).onStringChanged.add(function(r,o){n.hasMaxRateDescription=!r.isEmpty}),n.initPropertyDependencies(),n}return t.prototype.setIconsToRateValues=function(){var e=this;this.rateType=="smileys"&&this.rateValues.map(function(n){return n.icon=e.getItemSmiley(n)})},t.prototype.endLoadingFromJson=function(){i.prototype.endLoadingFromJson.call(this),this.jsonObj.rateMin!==void 0&&this.jsonObj.rateCount!==void 0&&this.jsonObj.rateMax===void 0&&this.updateRateMax(),this.jsonObj.rateMax!==void 0&&this.jsonObj.rateCount!==void 0&&this.jsonObj.rateMin===void 0&&this.updateRateMin(),this.jsonObj.autoGenerate===void 0&&this.jsonObj.rateValues!==void 0&&(this.autoGenerate=!this.jsonObj.rateValues.length),this.updateRateCount(),this.setIconsToRateValues()},t.prototype.registerSychProperties=function(e,n){var r=this;this.registerFunctionOnPropertiesValueChanged(e,function(){r._syncPropertiesChanging||(r._syncPropertiesChanging=!0,n(),r._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;this.useRateValues()?e=this.rateValues.length:e=Math.trunc((this.rateMax-this.rateMin)/(this.rateStep||1))+1,e>10&&this.rateDisplayMode=="smileys"&&(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())e.rateMax=e.rateMin+e.rateStep*(e.rateCount-1);else if(e.rateCount<e.rateValues.length){if(e.rateCount>=10&&e.rateDisplayMode=="smileys")return;e.rateValues.splice(e.rateCount,e.rateValues.length-e.rateCount)}else for(var n=e.rateValues.length;n<e.rateCount;n++)e.rateValues.push(new k(oe("choices_Item")+(n+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=this,n;return!this.readOnly&&((n=this.visibleRateValues.filter(function(r){return r.value==e.value})[0])===null||n===void 0?void 0:n.locText)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"rateValues",{get:function(){return this.getPropertyValue("rateValues")},set:function(e){this.setPropertyValue("rateValues",e)},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){if(this.colorMode==="monochrome"||!I.isAvailable()||t.colorsCalculated)return;function n(o){var s=getComputedStyle(I.getDocumentElement());return s.getPropertyValue&&s.getPropertyValue(o)}function r(o,s){var a=!!e&&e[o];if(a||(a=n(s)),!a)return null;var l=I.createElement("canvas");if(!l)return null;var u=l.getContext("2d");u.fillStyle=a,u.fillStyle=="#000000"&&(u.fillStyle=n(s));var d=u.fillStyle;if(d.startsWith("rgba"))return d.substring(5,d.length-1).split(",").map(function(V){return+V.trim()});var v=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(d);return v?[parseInt(v[1],16),parseInt(v[2],16),parseInt(v[3],16),1]:null}t.badColor=r("--sjs-special-red","--sd-rating-bad-color"),t.normalColor=r("--sjs-special-yellow","--sd-rating-normal-color"),t.goodColor=r("--sjs-special-green","--sd-rating-good-color"),t.badColorLight=r("--sjs-special-red-light","--sd-rating-bad-color-light"),t.normalColorLight=r("--sjs-special-yellow-light","--sd-rating-normal-color-light"),t.goodColorLight=r("--sjs-special-green-light","--sd-rating-good-color-light"),this.colorsCalculated=!0,this.resetRenderedItems()},t.prototype.getDisplayValueCore=function(e,n){if(!this.useRateValues)return i.prototype.getDisplayValueCore.call(this,e,n);var r=k.getTextOrHtmlByValue(this.visibleRateValues,n);return r||n},Object.defineProperty(t.prototype,"visibleRateValues",{get:function(){return this.renderedRateItems.map(function(e){return e.itemValue})},enumerable:!1,configurable:!0}),t.prototype.supportEmptyValidation=function(){return this.renderAs==="dropdown"},t.prototype.itemValuePropertyChanged=function(e,n,r,o){!this.useRateValues()&&o!==void 0&&(this.autoGenerate=!1),i.prototype.itemValuePropertyChanged.call(this,e,n,r,o)},t.prototype.runConditionCore=function(e,n){i.prototype.runConditionCore.call(this,e,n),this.runRateItesmCondition(e,n)},t.prototype.runRateItesmCondition=function(e,n){var r;if(this.useRateValues()){var o=!1;if(!((r=this.survey)===null||r===void 0)&&r.areInvisibleElementsShowing?this.rateValues.forEach(function(a){o=o||!a.isVisible,a.setIsVisible(a,!0)}):o=k.runConditionsForItems(this.rateValues,void 0,void 0,e,n,!0),o&&(this.resetRenderedItems(),!this.isEmpty()&&!this.isReadOnly)){var s=k.getItemByValue(this.rateValues,this.value);s&&!s.isVisible&&this.clearValue()}}},t.prototype.getRateValuesCore=function(){if(!this.useRateValues())return this.createRateValues();var e=new Array;return this.rateValues.forEach(function(n){n.isVisible&&e.push(n)}),e},t.prototype.calculateRateValues=function(){var e=this.getRateValuesCore();return this.rateType=="smileys"&&e.length>10&&(e=e.slice(0,10)),e},t.prototype.calculateRenderedRateItems=function(){var e=this,n=this.calculateRateValues();return n.map(function(r,o){var s=null;return e.displayRateDescriptionsAsExtremeItems&&(o==0&&(s=new Sn(r,e.minRateDescription&&e.locMinRateDescription||r.locText)),o==n.length-1&&(s=new Sn(r,e.maxRateDescription&&e.locMaxRateDescription||r.locText))),s||(s=new Sn(r)),s})},t.prototype.calculateVisibleChoices=function(){var e=this,n=this.calculateRateValues();return n.map(function(r,o){return e.getRatingItemValue(r,o)})},t.prototype.resetRenderedItems=function(){if(this.autoGenerate){var e=this.getRateValuesCore();this.rateMax=e[e.length-1].value}Array.isArray(this.getPropertyValueWithoutDefault("renderedRateItems"))&&this.setArrayPropertyDirectly("renderedRateItems",this.calculateRenderedRateItems()),Array.isArray(this.getPropertyValueWithoutDefault("visibleChoices"))&&this.setArrayPropertyDirectly("visibleChoices",this.calculateVisibleChoices)},Object.defineProperty(t.prototype,"renderedRateItems",{get:function(){var e=this;return this.getPropertyValue("renderedRateItems",void 0,function(){return e.calculateRenderedRateItems()})},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"visibleChoices",{get:function(){var e=this;return this.getPropertyValue("visibleChoices",void 0,function(){return e.calculateVisibleChoices()})},enumerable:!1,configurable:!0}),t.prototype.createRateValues=function(){for(var e=[],n=this.rateMin,r=this.rateStep;n<=this.rateMax&&e.length<b.ratingMaximumRateValueCount;){var o=new k(n);o.locOwner=this,o.ownerPropertyName="rateValues",e.push(o),n=this.correctValue(n+r,r)}return e},t.prototype.getRatingItemValue=function(e,n){if(!e)return null;var r=e.value,o;r===this.rateMin&&(o=this.minRateDescription&&this.locMinRateDescription),(r===this.rateMax||n===b.ratingMaximumRateValueCount)&&(o=this.maxRateDescription&&this.locMaxRateDescription);var s=new kc(r,e.text,o);return s.locOwner=e.locOwner,s.ownerPropertyName=e.ownerPropertyName,s},t.prototype.correctValue=function(e,n){if(!e||Math.round(e)==e)return e;for(var r=0;Math.round(n)!=n;)n*=10,r++;return parseFloat(e.toFixed(r))},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 this.isMouseDown===!0||this.renderAs==="dropdown"},t.prototype.supportOther=function(){return!1},t.prototype.getPlainDataCalculatedValue=function(e){var n=i.prototype.getPlainDataCalculatedValue.call(this,e);if(n!==void 0||!this.useRateValues||this.isEmpty())return n;var r=k.getItemByValue(this.visibleRateValues,this.value);return r?r[e]:void 0},Object.defineProperty(t.prototype,"minRateDescription",{get:function(){return this.getLocalizableStringText("minRateDescription")},set:function(e){this.setLocalizableStringText("minRateDescription",e)},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)},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||this.renderAs==="dropdown")&&(this.renderAs="default"):(e||this.displayMode!=="auto")&&(this.renderAs=this.displayMode==="dropdown"?"dropdown":"default")},t.prototype.onSurveyLoad=function(){i.prototype.onSurveyLoad.call(this),this.renderAs==="dropdown"&&this.displayMode==="auto"?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 this.rateType=="stars"},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isSmiley",{get:function(){return this.rateType=="smileys"},enumerable:!1,configurable:!0}),t.prototype.getDefaultItemComponent=function(){return this.renderAs=="dropdown"?"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 n=k.getItemByValue(this.rateValues,e);return n?n.value:e}return isNaN(e)?e:parseFloat(e)},t.prototype.setValueFromClick=function(e){if(!this.isReadOnlyAttr){this.value===(typeof this.value=="string"?e:parseFloat(e))?this.clearValue(!0):this.value=e;for(var n=0;n<this.renderedRateItems.length;n++)this.renderedRateItems[n].highlight="none"}},t.prototype.onItemMouseIn=function(e){if(!ne&&!(this.isReadOnly||!e.itemValue.isEnabled||this.isDesignMode)){var n=!0,r=this.value!=null;if(this.rateType!=="stars"){e.highlight="highlighted";return}for(var o=0;o<this.renderedRateItems.length;o++)this.renderedRateItems[o].highlight=n&&!r&&"highlighted"||!n&&r&&"unhighlighted"||"none",this.renderedRateItems[o]==e&&(n=!1),this.renderedRateItems[o].itemValue.value==this.value&&(r=!1)}},t.prototype.onItemMouseOut=function(e){ne||this.renderedRateItems.forEach(function(n){return n.highlight="none"})},Object.defineProperty(t.prototype,"itemSmallMode",{get:function(){return this.inMatrixMode&&b.matrix.rateSize=="small"},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"ratingRootCss",{get:function(){var e=(this.displayMode=="buttons"||this.survey&&this.survey.isDesignMode)&&this.cssClasses.rootWrappable?this.cssClasses.rootWrappable:"",n="";return(this.hasMaxLabel||this.hasMinLabel)&&(this.rateDescriptionLocation=="top"&&(n=this.cssClasses.rootLabelsTop),this.rateDescriptionLocation=="bottom"&&(n=this.cssClasses.rootLabelsBottom),this.rateDescriptionLocation=="topBottom"&&(n=this.cssClasses.rootLabelsDiagonal)),new O().append(this.cssClasses.root).append(e).append(n).append(this.cssClasses.itemSmall,this.itemSmallMode&&this.rateType!="labels").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 n=["terrible","very-poor","poor","not-good","average","normal","good","very-good","excellent","perfect"],r=["very-good","not-good","normal","good","average","excellent","poor","perfect","very-poor","terrible"],o=this.useRateValues()?this.rateValues.length:this.rateMax-this.rateMin+1,s=r.slice(0,o),a=n.filter(function(l){return s.indexOf(l)!=-1});return this.useRateValues()?a[this.rateValues.indexOf(e)]:a[e.value-this.rateMin]},t.prototype.getItemSmileyIconName=function(e){return"icon-"+this.getItemSmiley(e)},t.prototype.getItemClassByText=function(e,n){return this.getItemClass(e)},t.prototype.getRenderedItemColor=function(e,n){var r=n?t.badColorLight:t.badColor,o=n?t.goodColorLight:t.goodColor,s=(this.rateCount-1)/2,a=n?t.normalColorLight:t.normalColor;if(e<s?o=a:(r=a,e-=s),!r||!o)return null;for(var l=[0,0,0,0],u=0;u<4;u++)l[u]=r[u]+(o[u]-r[u])*e/s,u<3&&(l[u]=Math.trunc(l[u]));return"rgba("+l[0]+", "+l[1]+", "+l[2]+", "+l[3]+")"},t.prototype.getItemStyle=function(e,n){if(n===void 0&&(n="none"),this.scaleColorMode==="monochrome"&&this.rateColorMode=="default"||this.isPreviewStyle||this.isReadOnlyStyle)return{};var r=this.visibleRateValues.indexOf(e),o=this.getRenderedItemColor(r,!1),s=n=="highlighted"&&this.scaleColorMode==="colored"&&this.getRenderedItemColor(r,!0);return s?{"--sd-rating-item-color":o,"--sd-rating-item-color-light":s}:{"--sd-rating-item-color":o}},t.prototype.getItemClass=function(e,n){var r=this,o=this.value==e.value;this.isStar&&(this.useRateValues()?o=this.rateValues.indexOf(this.rateValues.filter(function(ct){return ct.value==r.value})[0])>=this.rateValues.indexOf(e):o=this.value>=e.value);var s=this.isReadOnly||!e.isEnabled,a=!s&&this.value!=e.value&&!(this.survey&&this.survey.isDesignMode),l=this.renderedRateItems.filter(function(ct){return ct.itemValue==e})[0],u=this.isStar&&(l==null?void 0:l.highlight)=="highlighted",d=this.isStar&&(l==null?void 0:l.highlight)=="unhighlighted",v=this.cssClasses.item,V=this.cssClasses.selected,T=this.cssClasses.itemDisabled,R=this.cssClasses.itemReadOnly,N=this.cssClasses.itemPreview,j=this.cssClasses.itemHover,A=this.cssClasses.itemOnError,Q=null,re=null,ie=null,xe=null,Re=null;this.isStar&&(v=this.cssClasses.itemStar,V=this.cssClasses.itemStarSelected,T=this.cssClasses.itemStarDisabled,R=this.cssClasses.itemStarReadOnly,N=this.cssClasses.itemStarPreview,j=this.cssClasses.itemStarHover,A=this.cssClasses.itemStarOnError,Q=this.cssClasses.itemStarHighlighted,re=this.cssClasses.itemStarUnhighlighted,Re=this.cssClasses.itemStarSmall),this.isSmiley&&(v=this.cssClasses.itemSmiley,V=this.cssClasses.itemSmileySelected,T=this.cssClasses.itemSmileyDisabled,R=this.cssClasses.itemSmileyReadOnly,N=this.cssClasses.itemSmileyPreview,j=this.cssClasses.itemSmileyHover,A=this.cssClasses.itemSmileyOnError,Q=this.cssClasses.itemSmileyHighlighted,ie=this.cssClasses.itemSmileyScaleColored,xe=this.cssClasses.itemSmileyRateColored,Re=this.cssClasses.itemSmileySmall);var wt=!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 O().append(v).append(V,o).append(T,this.isDisabledStyle).append(R,this.isReadOnlyStyle).append(N,this.isPreviewStyle).append(j,a).append(Q,u).append(ie,this.scaleColorMode=="colored").append(xe,this.rateColorMode=="scale"&&o).append(re,d).append(A,this.hasCssError()).append(Re,this.itemSmallMode).append(this.cssClasses.itemFixedSize,wt).toString()},t.prototype.getControlClass=function(){return this.isEmpty(),new O().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,"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"),n=this.getPropertyValue("rateMax"),r=this.getPropertyValue("rateMin");return this.displayMode!="dropdown"&&!!(this.hasMinRateDescription||this.hasMaxRateDescription||e&&(n-r)/e>9)},t.prototype.supportResponsiveness=function(){return!0},t.prototype.onBeforeSetCompactRenderer=function(){this.dropdownListModelValue||(this.dropdownListModelValue=new Cn(this),this.ariaExpanded="false")},t.prototype.getCompactRenderAs=function(){return this.displayMode=="buttons"?"default":"dropdown"},t.prototype.getDesktopRenderAs=function(){return this.displayMode=="dropdown"?"dropdown":"default"},Object.defineProperty(t.prototype,"dropdownListModel",{get:function(){return this.renderAs==="dropdown"&&this.onBeforeSetCompactRenderer(),this.dropdownListModelValue},set:function(e){this.dropdownListModelValue=e,this.ariaExpanded=e?"false":void 0,this.updateElementCss()},enumerable:!1,configurable:!0}),t.prototype.onBlurCore=function(e){var n;(n=this.dropdownListModel)===null||n===void 0||n.onBlur(e),i.prototype.onBlurCore.call(this,e)},t.prototype.updateCssClasses=function(e,n){i.prototype.updateCssClasses.call(this,e,n),lr(e,n)},t.prototype.calcCssClasses=function(e){var n=i.prototype.calcCssClasses.call(this,e);return this.dropdownListModelValue&&this.dropdownListModelValue.updateCssClasses(n.popup,n.list),n},t.prototype.themeChanged=function(e){this.colorsCalculated=!1,this.updateColors(e.cssVariables)},t.prototype.setSurveyImpl=function(e,n){i.prototype.setSurveyImpl.call(this,e,n),this.survey&&(this.updateColors(this.survey.themeVariables),this.updateRenderAsBasedOnDisplayMode())},t.prototype.dispose=function(){i.prototype.dispose.call(this),this.dropdownListModelValue&&(this.dropdownListModelValue.dispose(),this.dropdownListModelValue=void 0)},t.colorsCalculated=!1,ye([h({defaultValue:!1})],t.prototype,"inputHasValue",void 0),ye([h()],t.prototype,"autoGenerate",void 0),ye([h()],t.prototype,"rateCount",void 0),ye([h({defaultValue:!1})],t.prototype,"hasMinRateDescription",void 0),ye([h({defaultValue:!1})],t.prototype,"hasMaxRateDescription",void 0),ye([h()],t.prototype,"displayRateDescriptionsAsExtremeItems",void 0),ye([h()],t.prototype,"displayMode",void 0),ye([h()],t.prototype,"rateDescriptionLocation",void 0),ye([h()],t.prototype,"rateType",void 0),ye([h()],t.prototype,"scaleColorMode",void 0),ye([h()],t.prototype,"rateColorMode",void 0),t}(ue);x.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(i){return i.rateDisplayMode=="smileys"},visibleIndex:2},{name:"rateColorMode",category:"rateValues",default:"scale",choices:["default","scale"],visibleIf:function(i){return i.rateDisplayMode=="smileys"&&i.scaleColorMode=="monochrome"},visibleIndex:3},{name:"autoGenerate",category:"rateValues",default:!0,choices:[!0,!1],visibleIndex:5},{name:"rateCount:number",default:5,category:"rateValues",visibleIndex:4,onSettingValue:function(i,t){return t<2?2:t>b.ratingMaximumRateValueCount&&t>i.rateValues.length?b.ratingMaximumRateValueCount:t>10&&i.rateDisplayMode=="smileys"?10:t}},{name:"rateValues:itemvalue[]",baseValue:function(){return oe("choices_Item")},category:"rateValues",visibleIf:function(i){return!i.autoGenerate},visibleIndex:6},{name:"rateMin:number",default:1,onSettingValue:function(i,t){return t>i.rateMax-i.rateStep?i.rateMax-i.rateStep:t},visibleIf:function(i){return!!i.autoGenerate},visibleIndex:7},{name:"rateMax:number",default:5,onSettingValue:function(i,t){return t<i.rateMin+i.rateStep?i.rateMin+i.rateStep:t},visibleIf:function(i){return!!i.autoGenerate},visibleIndex:8},{name:"rateStep:number",default:1,minValue:.1,onSettingValue:function(i,t){return t<=0&&(t=1),t>i.rateMax-i.rateMin&&(t=i.rateMax-i.rateMin),t},visibleIf:function(i){return!!i.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(i){return i.rateType=="labels"}},{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(i){return i?(i.getOriginalObj&&(i=i.getOriginalObj()),i.getDefaultItemComponent()):"sv-rating-item"}}],function(){return new ri("")},"question"),J.Instance.registerQuestion("rating",function(i){return new ri(i)});var qc=function(){var i=function(t,e){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(n[o]=r[o])},i(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");i(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),Pt=function(i,t,e,n){var r=arguments.length,o=r<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,e):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(i,t,e,n);else for(var a=i.length-1;a>=0;a--)(s=i[a])&&(o=(r<3?s(o):r>3?s(t,e,o):s(t,e))||o);return r>3&&o&&Object.defineProperty(t,e,o),o},ii=function(i){qc(t,i);function t(e){var n=i.call(this,e)||this;return n.createLocalizableString("labelFalse",n,!0,"booleanUncheckedLabel"),n.createLocalizableString("labelTrue",n,!0,"booleanCheckedLabel"),n}return t.prototype.getType=function(){return"boolean"},t.prototype.isLayoutTypeSupported=function(e){return!0},t.prototype.supportGoNextPageAutomatic=function(){return this.renderAs!=="checkbox"},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=e==!0?this.getValueTrue():this.getValueFalse(),this.booleanValueRendered=e)},Object.defineProperty(t.prototype,"defaultValue",{get:function(){return this.getPropertyValue("defaultValue")},set:function(e){e===!0&&(e="true"),e===!1&&(e="false"),this.setPropertyValue("defaultValue",e),this.updateValueWithDefaults()},enumerable:!1,configurable:!0}),t.prototype.getDefaultValue=function(){var e=this.defaultValue;if(!(e==="indeterminate"||e===void 0||e===null))return e=="true"?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(e){i.prototype.beforeDestroyQuestionElement.call(this,e),this.leftAnswerElement=void 0},Object.defineProperty(t.prototype,"isLabelRendered",{get:function(){return this.titleLocation==="hidden"},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 this.booleanValue!==null&&this.booleanValue!==void 0},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 this.valueTrue!==void 0?this.valueTrue:!0},t.prototype.getValueFalse=function(){return this.valueFalse!==void 0?this.valueFalse:!1},t.prototype.setDefaultValue=function(){this.isDefaultValueSet("true",this.valueTrue)&&this.setBooleanValue(!0),this.isDefaultValueSet("false",this.valueFalse)&&this.setBooleanValue(!1);var e=this.defaultValue;(e==="indeterminate"||e===null||e===void 0)&&this.setBooleanValue(void 0)},t.prototype.isDefaultValueSet=function(e,n){return this.defaultValue==e||n!==void 0&&this.defaultValue===n},t.prototype.getDisplayValueCore=function(e,n){return n==this.getValueTrue()?this.locLabelTrue.textOrHtml:this.locLabelFalse.textOrHtml},t.prototype.getItemCssValue=function(e){return new O().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 O().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(e,n){n===void 0&&(n=!1),i.prototype.updateValueFromSurvey.call(this,e,n)},t.prototype.onValueChanged=function(){i.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(){if(this.booleanValue===!0)return this.locLabelTrue;if(this.booleanValue===!1)return this.locLabelFalse},t.prototype.setQuestionValue=function(e,n){n===void 0&&(n=!0),e==="true"&&this.valueTrue!=="true"&&(e=!0),e==="false"&&this.valueFalse!=="false"&&(e=!1),(e==="indeterminate"||e===null)&&(e=void 0),i.prototype.setQuestionValue.call(this,e,n)},t.prototype.onLabelClick=function(e,n){return this.allowClick&&(po(e),this.booleanValue=n),!0},t.prototype.calculateBooleanValueByEvent=function(e,n){var r=!1;I.isAvailable()&&(r=I.getComputedStyle(e.target).direction=="rtl"),this.booleanValue=r?!n:n},t.prototype.onSwitchClickModel=function(e){if(this.allowClick){po(e);var n=e.offsetX/e.target.offsetWidth>.5;this.calculateBooleanValueByEvent(e,n);return}return!0},t.prototype.onKeyDownCore=function(e){return(e.key==="ArrowLeft"||e.key==="ArrowRight")&&(e.stopPropagation(),this.calculateBooleanValueByEvent(e,e.key==="ArrowRight")),!0},t.prototype.getRadioItemClass=function(e,n){var r=void 0;return e.radioItem&&(r=e.radioItem),e.radioItemChecked&&n===this.booleanValue&&(r=(r?r+" ":"")+e.radioItemChecked),this.isDisabledStyle&&(r+=" "+e.radioItemDisabled),this.isReadOnlyStyle&&(r+=" "+e.radioItemReadOnly),this.isPreviewStyle&&(r+=" "+e.radioItemPreview),r},t.prototype.supportResponsiveness=function(){return!0},t.prototype.getCompactRenderAs=function(){return"radio"},t.prototype.createActionContainer=function(e){return i.prototype.createActionContainer.call(this,this.renderAs!=="checkbox")},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}),Pt([h()],t.prototype,"booleanValueRendered",void 0),Pt([h()],t.prototype,"showTitle",void 0),Pt([h({localizable:!0})],t.prototype,"label",void 0),Pt([h({defaultValue:!1})],t.prototype,"swapOrder",void 0),Pt([h()],t.prototype,"valueTrue",void 0),Pt([h()],t.prototype,"valueFalse",void 0),t}(ue);x.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 ii("")},"question"),J.Instance.registerQuestion("boolean",function(i){return new ii(i)});var As=function(){var i=function(t,e){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(n[o]=r[o])},i(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");i(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),Me=function(i,t,e,n){var r=arguments.length,o=r<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,e):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(i,t,e,n);else for(var a=i.length-1;a>=0;a--)(s=i[a])&&(o=(r<3?s(o):r>3?s(t,e,o):s(t,e))||o);return r>3&&o&&Object.defineProperty(t,e,o),o},Ds=function(i){As(t,i);function t(e,n,r){n===void 0&&(n=null),r===void 0&&(r="imageitemvalue");var o=i.call(this,e,n,r)||this;return o.typeName=r,o.createLocalizableString("imageLink",o,!1),o}return 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,n){return this.locOwner?this.locOwner.getMarkdownHtml(e,n):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 Ht&&this.locOwner.contentMode=="video"?this.videoNotLoaded:this.imageNotLoaded},set:function(e){this.locOwner instanceof Ht&&this.locOwner.contentMode=="video"?this.videoNotLoaded=e:this.imageNotLoaded=e},enumerable:!1,configurable:!0}),Me([h({defaultValue:!1})],t.prototype,"videoNotLoaded",void 0),Me([h({defaultValue:!1})],t.prototype,"imageNotLoaded",void 0),t}(k),Ht=function(i){As(t,i);function t(e){var n=i.call(this,e)||this;return n.isResponsiveValue=!1,n.onContentLoaded=function(r,o){r.contentNotLoaded=!1;var s=o.target;n.contentMode=="video"?r.aspectRatio=s.videoWidth/s.videoHeight:r.aspectRatio=s.naturalWidth/s.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 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?P.isArrayContainsEqual(this.value,this.correctAnswer):i.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 n=this.value,r=e;if(this.isValueEmpty(n)||!r.imageLink||r.contentNotLoaded)return!1;if(!this.multiSelect)return this.isTwoValueEquals(n,e.value);if(!Array.isArray(n))return!1;for(var o=0;o<n.length;o++)if(this.isTwoValueEquals(n[o],e.value))return!0;return!1},t.prototype.getItemEnabled=function(e){var n=e;return!n.imageLink||n.contentNotLoaded?!1:i.prototype.getItemEnabled.call(this,e)},t.prototype.clearIncorrectValues=function(){if(this.multiSelect){var e=this.value;if(!e)return;if(!Array.isArray(e)||e.length==0){this.clearValue(!0);return}for(var n=[],r=0;r<e.length;r++)this.hasUnknownValue(e[r],!0)||n.push(e[r]);if(n.length==e.length)return;n.length==0?this.clearValue(!0):this.value=n}else i.prototype.clearIncorrectValues.call(this)},t.prototype.getDisplayValueCore=function(e,n){return!this.multiSelect&&!Array.isArray(n)?i.prototype.getDisplayValueCore.call(this,e,n):this.getDisplayArrayValue(e,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(){i.prototype.endLoadingFromJson.call(this),!this.isDesignMode&&this.multiSelect&&(this.createNewArray("renderedValue"),this.createNewArray("value")),this.calcIsResponsive()},t.prototype.getValueCore=function(){var e=i.prototype.getValueCore.call(this);return e!==void 0?e:this.multiSelect?[]:e},t.prototype.convertValToArrayForMultSelect=function(e){return!this.multiSelect||this.isValueEmpty(e)||Array.isArray(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,"imageScale",{get:function(){return this.survey?this.survey.widthScale/100:1},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"renderedImageHeight",{get:function(){var e=this.isResponsive?Math.floor(this.responsiveImageHeight):this.imageHeight*this.imageScale;return e||150*this.imageScale},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(){var e=this.isResponsive?Math.floor(this.responsiveImageWidth):this.imageWidth*this.imageScale;return e||200*this.imageScale},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),e==="video"&&(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,n){this.addNewItemToVisibleChoices(e,n)},t.prototype.getSelectBaseRootCss=function(){return new O().append(i.prototype.getSelectBaseRootCss.call(this)).append(this.cssClasses.rootColumn,this.getCurrentColCount()==1).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(n){return e[n]!==void 0&&e[n]!==null})},enumerable:!1,configurable:!0}),t.prototype.calcIsResponsive=function(){this.isResponsiveValue=this.exactSizesAreEmpty},t.prototype.getObservedElementSelector=function(){return be(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 this.responsiveColCount===void 0||this.colCount===0?this.colCount:this.responsiveColCount},t.prototype.processResponsiveness=function(e,n){this._width=n=Math.floor(n);var r=function(Q,re,ie){var xe=Math.floor(Q/(re+ie));return(xe+1)*(re+ie)-ie<=Q&&xe++,xe};if(this.isResponsive){var o=this.choices.length+(this.isDesignMode?1:0),s=(this.gapBetweenItems||0)*this.imageScale,a=this.minImageWidth*this.imageScale,l=this.maxImageWidth*this.imageScale,u=this.maxImageHeight*this.imageScale,d=this.minImageHeight*this.imageScale,v=this.colCount,V;if(v===0)if((s+a)*o-s>n){var T=r(n,a,s);V=Math.floor((n-s*(T-1))/T)}else V=Math.floor((n-s*(o-1))/o);else{var R=r(n,a,s);R<v?(this.responsiveColCount=R>=1?R:1,v=this.responsiveColCount):this.responsiveColCount=v,V=Math.floor((n-s*(v-1))/v)}V=Math.max(a,Math.min(V,l));var N=Number.MIN_VALUE;this.choices.forEach(function(Q){var re=V/Q.aspectRatio;N=re>N?re:N}),N>u?N=u:N<d&&(N=d);var j=this.responsiveImageWidth,A=this.responsiveImageHeight;return this.responsiveImageWidth=V,this.responsiveImageHeight=N,j!==this.responsiveImageWidth||A!==this.responsiveImageHeight}return!1},t.prototype.triggerResponsiveness=function(e){e===void 0&&(e=!0),e&&this.reCalcGapBetweenItemsCallback&&this.reCalcGapBetweenItemsCallback(),i.prototype.triggerResponsiveness.call(this,e)},t.prototype.afterRender=function(e){var n=this;i.prototype.afterRender.call(this,e);var r=this.getObservedElementSelector(),o=e&&r?e.querySelector(r):void 0;o&&(this.reCalcGapBetweenItemsCallback=function(){n.gapBetweenItems=Math.ceil(Number.parseFloat(I.getComputedStyle(o).gap))||16},this.reCalcGapBetweenItemsCallback())},Me([h({})],t.prototype,"responsiveImageHeight",void 0),Me([h({})],t.prototype,"responsiveImageWidth",void 0),Me([h({})],t.prototype,"isResponsiveValue",void 0),Me([h({})],t.prototype,"maxImageWidth",void 0),Me([h({})],t.prototype,"minImageWidth",void 0),Me([h({})],t.prototype,"maxImageHeight",void 0),Me([h({})],t.prototype,"minImageHeight",void 0),Me([h({})],t.prototype,"responsiveColCount",void 0),t}(kt);x.addClass("imageitemvalue",[{name:"imageLink:file",serializationProperty:"locImageLink"}],function(i){return new Ds(i)},"itemvalue"),x.addClass("responsiveImageSize",[],void 0,"number"),x.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 b.supportCreatorV2}},{name:"minImageHeight:responsiveImageSize",default:133,minValue:0,visibleIf:function(){return b.supportCreatorV2}},{name:"maxImageWidth:responsiveImageSize",default:400,minValue:0,visibleIf:function(){return b.supportCreatorV2}},{name:"maxImageHeight:responsiveImageSize",default:266,minValue:0,visibleIf:function(){return b.supportCreatorV2}}],function(){return new Ht("")},"checkboxbase"),x.addProperty("imagepicker",{name:"showLabel:boolean",default:!1}),x.addProperty("imagepicker",{name:"colCount:number",default:0,choices:[0,1,2,3,4,5]}),x.addProperty("imagepicker",{name:"multiSelect:boolean",default:!1}),x.addProperty("imagepicker",{name:"choices:imageitemvalue[]"}),J.Instance.registerQuestion("imagepicker",function(i){var t=new Ht(i);return t});var Qc=function(){var i=function(t,e){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(n[o]=r[o])},i(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");i(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),zc=function(i,t,e,n){var r=arguments.length,o=r<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,e):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(i,t,e,n);else for(var a=i.length-1;a>=0;a--)(s=i[a])&&(o=(r<3?s(o):r>3?s(t,e,o):s(t,e))||o);return r>3&&o&&Object.defineProperty(t,e,o),o},Ls=[".mp4",".mov",".wmv",".flv",".avi",".mkv"],Hc="https://www.youtube.com/",Ms="embed",oi=function(i){Qc(t,i);function t(e){var n=i.call(this,e)||this,r=n.createLocalizableString("imageLink",n,!1);return r.onGetTextCallback=function(o){return Uc(o,n.contentMode=="youtube")},n.createLocalizableString("altText",n,!1),n.registerPropertyChangedHandlers(["contentMode","imageLink"],function(){return n.calculateRenderedMode()}),n}return t.prototype.getType=function(){return"image"},Object.defineProperty(t.prototype,"isCompositeQuestion",{get:function(){return!1},enumerable:!1,configurable:!0}),t.prototype.onSurveyLoad=function(){i.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?on(this.imageHeight):void 0},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"renderedHeight",{get:function(){return this.imageHeight?nt(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?on(this.imageWidth):void 0},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"renderedWidth",{get:function(){return this.imageWidth?nt(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),e==="video"&&(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"),n=this.getPropertyByName("imageWidth"),r=e.isDefaultValue(this.imageHeight)&&n.isDefaultValue(this.imageWidth);return new O().append(this.cssClasses.image).append(this.cssClasses.adaptive,r).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(){this.contentMode!=="auto"?this.setRenderedMode(this.contentMode):this.isYoutubeVideo()?this.setRenderedMode("youtube"):this.isVideo()?this.setRenderedMode("video"):this.setRenderedMode("image")},t.prototype.isYoutubeVideo=function(){return P.isUrlYoutubeVideo(this.imageLink)},t.prototype.isVideo=function(){var e=this.imageLink;if(!e)return!1;e=e.toLowerCase();for(var n=0;n<Ls.length;n++)if(e.endsWith(Ls[n]))return!0;return!1},zc([h({defaultValue:!1})],t.prototype,"contentNotLoaded",void 0),t}(xn);function Uc(i,t){if(!i||!P.isUrlYoutubeVideo(i))return t?"":i;var e=i.toLocaleLowerCase();if(e.indexOf(Ms)>-1)return i;for(var n="",r=i.length-1;r>=0&&!(i[r]==="="||i[r]==="/");r--)n=i[r]+n;return Hc+Ms+"/"+n}x.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 oi("")},"nonvalue"),J.Instance.registerQuestion("image",function(i){return new oi(i)});/*! - * Signature Pad v4.2.0 | https://github.com/szimek/signature_pad - * (c) 2024 Szymon Nowak | Released under the MIT license - */class Tn{constructor(t,e,n,r){if(isNaN(t)||isNaN(e))throw new Error(`Point is invalid: (${t}, ${e})`);this.x=+t,this.y=+e,this.pressure=n||0,this.time=r||Date.now()}distanceTo(t){return Math.sqrt(Math.pow(this.x-t.x,2)+Math.pow(this.y-t.y,2))}equals(t){return this.x===t.x&&this.y===t.y&&this.pressure===t.pressure&&this.time===t.time}velocityFrom(t){return this.time!==t.time?this.distanceTo(t)/(this.time-t.time):0}}class si{static fromPoints(t,e){const n=this.calculateControlPoints(t[0],t[1],t[2]).c2,r=this.calculateControlPoints(t[1],t[2],t[3]).c1;return new si(t[1],n,r,t[2],e.start,e.end)}static calculateControlPoints(t,e,n){const r=t.x-e.x,o=t.y-e.y,s=e.x-n.x,a=e.y-n.y,l={x:(t.x+e.x)/2,y:(t.y+e.y)/2},u={x:(e.x+n.x)/2,y:(e.y+n.y)/2},d=Math.sqrt(r*r+o*o),v=Math.sqrt(s*s+a*a),V=l.x-u.x,T=l.y-u.y,R=v/(d+v),N={x:u.x+V*R,y:u.y+T*R},j=e.x-N.x,A=e.y-N.y;return{c1:new Tn(l.x+j,l.y+A),c2:new Tn(u.x+j,u.y+A)}}constructor(t,e,n,r,o,s){this.startPoint=t,this.control2=e,this.control1=n,this.endPoint=r,this.startWidth=o,this.endWidth=s}length(){let e=0,n,r;for(let o=0;o<=10;o+=1){const s=o/10,a=this.point(s,this.startPoint.x,this.control1.x,this.control2.x,this.endPoint.x),l=this.point(s,this.startPoint.y,this.control1.y,this.control2.y,this.endPoint.y);if(o>0){const u=a-n,d=l-r;e+=Math.sqrt(u*u+d*d)}n=a,r=l}return e}point(t,e,n,r,o){return e*(1-t)*(1-t)*(1-t)+3*n*(1-t)*(1-t)*t+3*r*(1-t)*t*t+o*t*t*t}}class Wc{constructor(){try{this._et=new EventTarget}catch{this._et=document}}addEventListener(t,e,n){this._et.addEventListener(t,e,n)}dispatchEvent(t){return this._et.dispatchEvent(t)}removeEventListener(t,e,n){this._et.removeEventListener(t,e,n)}}function $c(i,t=250){let e=0,n=null,r,o,s;const a=()=>{e=Date.now(),n=null,r=i.apply(o,s),n||(o=null,s=[])};return function(...u){const d=Date.now(),v=t-(d-e);return o=this,s=u,v<=0||v>t?(n&&(clearTimeout(n),n=null),e=d,r=i.apply(o,s),n||(o=null,s=[])):n||(n=window.setTimeout(a,v)),r}}class Rn extends Wc{constructor(t,e={}){super(),this.canvas=t,this._drawingStroke=!1,this._isEmpty=!0,this._lastPoints=[],this._data=[],this._lastVelocity=0,this._lastWidth=0,this._handleMouseDown=n=>{n.buttons===1&&this._strokeBegin(n)},this._handleMouseMove=n=>{this._strokeMoveUpdate(n)},this._handleMouseUp=n=>{n.buttons===1&&this._strokeEnd(n)},this._handleTouchStart=n=>{if(n.cancelable&&n.preventDefault(),n.targetTouches.length===1){const r=n.changedTouches[0];this._strokeBegin(r)}},this._handleTouchMove=n=>{n.cancelable&&n.preventDefault();const r=n.targetTouches[0];this._strokeMoveUpdate(r)},this._handleTouchEnd=n=>{if(n.target===this.canvas){n.cancelable&&n.preventDefault();const o=n.changedTouches[0];this._strokeEnd(o)}},this._handlePointerStart=n=>{n.preventDefault(),this._strokeBegin(n)},this._handlePointerMove=n=>{this._strokeMoveUpdate(n)},this._handlePointerEnd=n=>{this._drawingStroke&&(n.preventDefault(),this._strokeEnd(n))},this.velocityFilterWeight=e.velocityFilterWeight||.7,this.minWidth=e.minWidth||.5,this.maxWidth=e.maxWidth||2.5,this.throttle="throttle"in e?e.throttle:16,this.minDistance="minDistance"in e?e.minDistance:5,this.dotSize=e.dotSize||0,this.penColor=e.penColor||"black",this.backgroundColor=e.backgroundColor||"rgba(0,0,0,0)",this.compositeOperation=e.compositeOperation||"source-over",this.canvasContextOptions="canvasContextOptions"in e?e.canvasContextOptions:{},this._strokeMoveUpdate=this.throttle?$c(Rn.prototype._strokeUpdate,this.throttle):Rn.prototype._strokeUpdate,this._ctx=t.getContext("2d",this.canvasContextOptions),this.clear(),this.on()}clear(){const{_ctx:t,canvas:e}=this;t.fillStyle=this.backgroundColor,t.clearRect(0,0,e.width,e.height),t.fillRect(0,0,e.width,e.height),this._data=[],this._reset(this._getPointGroupOptions()),this._isEmpty=!0}fromDataURL(t,e={}){return new Promise((n,r)=>{const o=new Image,s=e.ratio||window.devicePixelRatio||1,a=e.width||this.canvas.width/s,l=e.height||this.canvas.height/s,u=e.xOffset||0,d=e.yOffset||0;this._reset(this._getPointGroupOptions()),o.onload=()=>{this._ctx.drawImage(o,u,d,a,l),n()},o.onerror=v=>{r(v)},o.crossOrigin="anonymous",o.src=t,this._isEmpty=!1})}toDataURL(t="image/png",e){switch(t){case"image/svg+xml":return typeof e!="object"&&(e=void 0),`data:image/svg+xml;base64,${btoa(this.toSVG(e))}`;default:return typeof e!="number"&&(e=void 0),this.canvas.toDataURL(t,e)}}on(){this.canvas.style.touchAction="none",this.canvas.style.msTouchAction="none",this.canvas.style.userSelect="none";const t=/Macintosh/.test(navigator.userAgent)&&"ontouchstart"in document;window.PointerEvent&&!t?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(t,{clear:e=!0}={}){e&&this.clear(),this._fromData(t,this._drawCurve.bind(this),this._drawDot.bind(this)),this._data=this._data.concat(t)}toData(){return this._data}_getPointGroupOptions(t){return{penColor:t&&"penColor"in t?t.penColor:this.penColor,dotSize:t&&"dotSize"in t?t.dotSize:this.dotSize,minWidth:t&&"minWidth"in t?t.minWidth:this.minWidth,maxWidth:t&&"maxWidth"in t?t.maxWidth:this.maxWidth,velocityFilterWeight:t&&"velocityFilterWeight"in t?t.velocityFilterWeight:this.velocityFilterWeight,compositeOperation:t&&"compositeOperation"in t?t.compositeOperation:this.compositeOperation}}_strokeBegin(t){if(!this.dispatchEvent(new CustomEvent("beginStroke",{detail:t,cancelable:!0})))return;this._drawingStroke=!0;const n=this._getPointGroupOptions(),r=Object.assign(Object.assign({},n),{points:[]});this._data.push(r),this._reset(n),this._strokeUpdate(t)}_strokeUpdate(t){if(!this._drawingStroke)return;if(this._data.length===0){this._strokeBegin(t);return}this.dispatchEvent(new CustomEvent("beforeUpdateStroke",{detail:t}));const e=t.clientX,n=t.clientY,r=t.pressure!==void 0?t.pressure:t.force!==void 0?t.force:0,o=this._createPoint(e,n,r),s=this._data[this._data.length-1],a=s.points,l=a.length>0&&a[a.length-1],u=l?o.distanceTo(l)<=this.minDistance:!1,d=this._getPointGroupOptions(s);if(!l||!(l&&u)){const v=this._addPoint(o,d);l?v&&this._drawCurve(v,d):this._drawDot(o,d),a.push({time:o.time,x:o.x,y:o.y,pressure:o.pressure})}this.dispatchEvent(new CustomEvent("afterUpdateStroke",{detail:t}))}_strokeEnd(t){this._drawingStroke&&(this._strokeUpdate(t),this._drawingStroke=!1,this.dispatchEvent(new CustomEvent("endStroke",{detail:t})))}_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(t){this._lastPoints=[],this._lastVelocity=0,this._lastWidth=(t.minWidth+t.maxWidth)/2,this._ctx.fillStyle=t.penColor,this._ctx.globalCompositeOperation=t.compositeOperation}_createPoint(t,e,n){const r=this.canvas.getBoundingClientRect();return new Tn(t-r.left,e-r.top,n,new Date().getTime())}_addPoint(t,e){const{_lastPoints:n}=this;if(n.push(t),n.length>2){n.length===3&&n.unshift(n[0]);const r=this._calculateCurveWidths(n[1],n[2],e),o=si.fromPoints(n,r);return n.shift(),o}return null}_calculateCurveWidths(t,e,n){const r=n.velocityFilterWeight*e.velocityFrom(t)+(1-n.velocityFilterWeight)*this._lastVelocity,o=this._strokeWidth(r,n),s={end:o,start:this._lastWidth};return this._lastVelocity=r,this._lastWidth=o,s}_strokeWidth(t,e){return Math.max(e.maxWidth/(t+1),e.minWidth)}_drawCurveSegment(t,e,n){const r=this._ctx;r.moveTo(t,e),r.arc(t,e,n,0,2*Math.PI,!1),this._isEmpty=!1}_drawCurve(t,e){const n=this._ctx,r=t.endWidth-t.startWidth,o=Math.ceil(t.length())*2;n.beginPath(),n.fillStyle=e.penColor;for(let s=0;s<o;s+=1){const a=s/o,l=a*a,u=l*a,d=1-a,v=d*d,V=v*d;let T=V*t.startPoint.x;T+=3*v*a*t.control1.x,T+=3*d*l*t.control2.x,T+=u*t.endPoint.x;let R=V*t.startPoint.y;R+=3*v*a*t.control1.y,R+=3*d*l*t.control2.y,R+=u*t.endPoint.y;const N=Math.min(t.startWidth+u*r,e.maxWidth);this._drawCurveSegment(T,R,N)}n.closePath(),n.fill()}_drawDot(t,e){const n=this._ctx,r=e.dotSize>0?e.dotSize:(e.minWidth+e.maxWidth)/2;n.beginPath(),this._drawCurveSegment(t.x,t.y,r),n.closePath(),n.fillStyle=e.penColor,n.fill()}_fromData(t,e,n){for(const r of t){const{points:o}=r,s=this._getPointGroupOptions(r);if(o.length>1)for(let a=0;a<o.length;a+=1){const l=o[a],u=new Tn(l.x,l.y,l.pressure,l.time);a===0&&this._reset(s);const d=this._addPoint(u,s);d&&e(d,s)}else this._reset(s),n(o[0],s)}}toSVG({includeBackgroundColor:t=!1}={}){const e=this._data,n=Math.max(window.devicePixelRatio||1,1),r=0,o=0,s=this.canvas.width/n,a=this.canvas.height/n,l=document.createElementNS("http://www.w3.org/2000/svg","svg");if(l.setAttribute("xmlns","http://www.w3.org/2000/svg"),l.setAttribute("xmlns:xlink","http://www.w3.org/1999/xlink"),l.setAttribute("viewBox",`${r} ${o} ${s} ${a}`),l.setAttribute("width",s.toString()),l.setAttribute("height",a.toString()),t&&this.backgroundColor){const u=document.createElement("rect");u.setAttribute("width","100%"),u.setAttribute("height","100%"),u.setAttribute("fill",this.backgroundColor),l.appendChild(u)}return this._fromData(e,(u,{penColor:d})=>{const v=document.createElement("path");if(!isNaN(u.control1.x)&&!isNaN(u.control1.y)&&!isNaN(u.control2.x)&&!isNaN(u.control2.y)){const V=`M ${u.startPoint.x.toFixed(3)},${u.startPoint.y.toFixed(3)} C ${u.control1.x.toFixed(3)},${u.control1.y.toFixed(3)} ${u.control2.x.toFixed(3)},${u.control2.y.toFixed(3)} ${u.endPoint.x.toFixed(3)},${u.endPoint.y.toFixed(3)}`;v.setAttribute("d",V),v.setAttribute("stroke-width",(u.endWidth*2.25).toFixed(3)),v.setAttribute("stroke",d),v.setAttribute("fill","none"),v.setAttribute("stroke-linecap","round"),l.appendChild(v)}},(u,{penColor:d,dotSize:v,minWidth:V,maxWidth:T})=>{const R=document.createElement("circle"),N=v>0?v:(V+T)/2;R.setAttribute("r",N.toString()),R.setAttribute("cx",u.x.toString()),R.setAttribute("cy",u.y.toString()),R.setAttribute("fill",d),l.appendChild(R)}),l.outerHTML}}var Jc=function(){var i=function(t,e){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(n[o]=r[o])},i(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");i(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),ke=function(i,t,e,n){var r=arguments.length,o=r<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,e):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(i,t,e,n);else for(var a=i.length-1;a>=0;a--)(s=i[a])&&(o=(r<3?s(o):r>3?s(t,e,o):s(t,e))||o);return r>3&&o&&Object.defineProperty(t,e,o),o},Gc=300,Kc=200,ai=function(i){Jc(t,i);function t(e){var n=i.call(this,e)||this;return n.valueIsUpdatingInternally=!1,n._loadedData=void 0,n.updateValueHandler=function(){n._loadedData=void 0,n.scaleCanvas(!1,!0),n.loadPreview(n.value)},n}return t.prototype.getPenColorFromTheme=function(){var e=this.survey;return!!e&&!!e.themeVariables&&e.themeVariables["--sjs-primary-backcolor"]},t.prototype.updateColors=function(e){var n=this.getPenColorFromTheme(),r=this.getPropertyByName("penColor");e.penColor=this.penColor||n||r.defaultValue||"#1ab394";var o=this.getPropertyByName("backgroundColor"),s=n?"transparent":void 0,a=this.backgroundImage?"transparent":this.backgroundColor;e.backgroundColor=a||s||o.defaultValue||"#ffffff"},t.prototype.getCssRoot=function(e){return new O().append(i.prototype.getCssRoot.call(this,e)).append(e.small,this.signatureWidth.toString()==="300").toString()},t.prototype.getFormat=function(){return this.dataFormat==="jpeg"?"image/jpeg":this.dataFormat==="svg"?"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(e){e&&(this.isDesignMode||this.initSignaturePad(e),this.element=e),i.prototype.afterRenderQuestionElement.call(this,e)},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,n){e===void 0&&(e=!0),n===void 0&&(n=!1);var r=this.canvas,o=r.offsetWidth/this.containerWidth;(this.scale!=o||n)&&(this.scale=o,r.style.width=this.renderedCanvasWidth,this.resizeCanvas(),this.signaturePad.minWidth=this.penMinWidth*o,this.signaturePad.maxWidth=this.penMaxWidth*o,r.getContext("2d").scale(1/o,1/o),e&&this.loadPreview(this.value))},t.prototype.fromUrl=function(e){var n=this;if(this.isFileLoading=!0,ou(e))this.fromDataUrl(e),this.isFileLoading=!1;else{var r=new Image;r.crossOrigin="anonymous",r.src=e,r.onload=function(){if(n.canvas){var o=I.createElement("canvas");o.width=n.containerWidth,o.height=n.containerHeight;var s=o.getContext("2d");s.drawImage(r,0,0);var a=o.toDataURL(n.getFormat());n.fromDataUrl(a)}n.isFileLoading=!1},r.onerror=function(){n.isFileLoading=!1}}},t.prototype.fromDataUrl=function(e){this._loadedData=e,this.signaturePad&&this.signaturePad.fromDataURL(e,{width:this.canvas.width*this.scale,height:this.canvas.height*this.scale})},Object.defineProperty(t.prototype,"loadedData",{get:function(){return this._loadedData},enumerable:!1,configurable:!0}),t.prototype.loadPreview=function(e){var n=this;if(!e){this.signaturePad&&this.canvas&&(this.canvas.getContext("2d").clearRect(0,0,this.canvas.width*this.scale,this.canvas.height*this.scale),this.signaturePad.clear()),this.valueWasChangedFromLastUpload=!1;return}if(this.storeDataAsText)this.fromDataUrl(e);else if(this.loadedData)this.fromDataUrl(this.loadedData);else{var r=e?[e]:[];this._previewLoader&&this._previewLoader.dispose(),this.isFileLoading=!0,this._previewLoader=new Is(this,function(o,s){o==="success"&&s&&s.length>0&&s[0].content?(n.fromDataUrl(s[0].content),n.isFileLoading=!1):o==="skipped"&&n.fromUrl(e),n._previewLoader.dispose(),n._previewLoader=void 0}),this._previewLoader.load(r)}},t.prototype.onChangeQuestionValue=function(e){i.prototype.onChangeQuestionValue.call(this,e),this.isLoadingFromJson||(this._loadedData=void 0,this.loadPreview(e))},t.prototype.onSurveyLoad=function(){i.prototype.onSurveyLoad.call(this),this.loadPreview(this.value)},t.prototype.initSignaturePad=function(e){var n=this,r=e.getElementsByTagName("canvas")[0];this.canvas=r,this.resizeCanvas();var o=new Rn(r,{backgroundColor:"#ffffff"});this.signaturePad=o,this.isInputReadOnly&&o.off(),this.readOnlyChangedCallback=function(){n.isInputReadOnly?o.off():o.on()},this.updateColors(o),o.addEventListener("beginStroke",function(){n.scaleCanvas(),n.isDrawingValue=!0,r.focus()},{once:!1}),o.addEventListener("endStroke",function(){n.isDrawingValue=!1,n.storeDataAsText?n.updateValue():n.valueWasChangedFromLastUpload=!0},{once:!1}),this.updateValueHandler(),this.readOnlyChangedCallback();var s=function(a,l){(l.name==="signatureWidth"||l.name==="signatureHeight")&&(n.valueIsUpdatingInternally||n.updateValueHandler())};this.onPropertyChanged.add(s),this.signaturePad.propertyChangedHandler=s},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",li(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||Kc},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"containerWidth",{get:function(){return this.signatureWidth||Gc},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(),n=this.isUploading;return!this.isInputReadOnly&&this.allowClear&&e&&!n},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,n=this.isEmpty(),r=this.isUploading,o=this.valueWasChangedFromLastUpload;return!e&&n&&!r&&!o},t.prototype.needShowPlaceholder=function(){return this.showPlaceholder&&this.nothingIsDrawn()},t.prototype.onBlurCore=function(e){if(i.prototype.onBlurCore.call(this,e),!this.storeDataAsText&&!this.element.contains(e.relatedTarget)){if(!this.valueWasChangedFromLastUpload)return;this.uploadFiles([Fc(this.signaturePad.toDataURL(this.getFormat()),this.name+"."+li(this.dataFormat),this.getFormat())]),this.valueWasChangedFromLastUpload=!1}},t.prototype.uploadResultItemToValue=function(e){return e.content},t.prototype.setValueFromResult=function(e){this.valueIsUpdatingInternally=!0,this.value=e!=null&&e.length?e.map(function(n){return n.content})[0]:void 0,this.valueIsUpdatingInternally=!1},t.prototype.clearValue=function(e){this.valueWasChangedFromLastUpload=!1,i.prototype.clearValue.call(this,e),this._loadedData=void 0,this.loadPreview(this.value)},t.prototype.endLoadingFromJson=function(){i.prototype.endLoadingFromJson.call(this),this.signatureWidth===300&&this.width&&typeof this.width=="number"&&this.width&&(Fe.warn("Use signatureWidth property to set width for the signature pad"),this.signatureWidth=this.width,this.width=void 0),this.signatureHeight===200&&this.height&&(Fe.warn("Use signatureHeight property to set width for the signature pad"),this.signatureHeight=this.height,this.height=void 0)},ke([h({defaultValue:!1})],t.prototype,"isDrawingValue",void 0),ke([h({defaultValue:!1})],t.prototype,"isReadyForUpload",void 0),ke([h({defaultValue:!1})],t.prototype,"valueWasChangedFromLastUpload",void 0),ke([h()],t.prototype,"signatureAutoScaleEnabled",void 0),ke([h()],t.prototype,"penMinWidth",void 0),ke([h()],t.prototype,"penMaxWidth",void 0),ke([h({})],t.prototype,"showPlaceholder",void 0),ke([h({localizable:{defaultStr:"signaturePlaceHolder"}})],t.prototype,"placeholder",void 0),ke([h({localizable:{defaultStr:"signaturePlaceHolderReadOnly"}})],t.prototype,"placeholderReadOnly",void 0),t}(Rs);function li(i){return i||(i="png"),i=i.replace("image/","").replace("+xml",""),i!=="jpeg"&&i!=="svg"&&(i="png"),i}x.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(i){return i.showPlaceholder}},{name:"placeholderReadOnly:text",serializationProperty:"locPlaceholderReadOnly",category:"general",dependsOn:"showPlaceholder",visibleIf:function(i){return i.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:"jpeg",text:"JPEG"},{value:"svg",text:"SVG"}],onSettingValue:function(i,t){return li(t)}},{name:"defaultValue",visible:!1},{name:"correctAnswer",visible:!1},{name:"storeDataAsText:boolean",default:!0},{name:"waitForUpload:boolean",default:!1}],function(){return new ai("")},"question"),J.Instance.registerQuestion("signaturepad",function(i){return new ai(i)});var js=function(){var i=function(t,e){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(n[o]=r[o])},i(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");i(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),Ut=function(i,t,e,n){var r=arguments.length,o=r<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,e):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(i,t,e,n);else for(var a=i.length-1;a>=0;a--)(s=i[a])&&(o=(r<3?s(o):r>3?s(t,e,o):s(t,e))||o);return r>3&&o&&Object.defineProperty(t,e,o),o},Yc=function(i,t){for(var e=0,n=t.length,r=i.length;e<n;e++,r++)i[r]=t[e];return i},Xc=function(i){js(t,i);function t(e,n,r){var o=i.call(this,r)||this;return o.data=e,o.panelItem=n,o.variableName=r,o.sharedQuestions={},o}return 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(e){var n=i.prototype.getQuestionByName.call(this,e);if(n)return n;var r=this.panelIndex;n=r>-1?this.data.getSharedQuestionFromArray(e,r):void 0;var o=n?n.name:e;return this.sharedQuestions[o]=e,n},t.prototype.getQuestionDisplayText=function(e){var n=this.sharedQuestions[e.name];if(!n)return i.prototype.getQuestionDisplayText.call(this,e);var r=this.panelItem.getValue(n);return e.getDisplayValue(!0,r)},t.prototype.onCustomProcessText=function(e){if(e.name==pe.IndexVariableName){var n=this.panelIndex;if(n>-1)return e.isExists=!0,e.value=n+1,!0}if(e.name==pe.VisibleIndexVariableName){var n=this.visiblePanelIndex;if(n>-1)return e.isExists=!0,e.value=n+1,!0}if(e.name.toLowerCase().indexOf(pe.ParentItemVariableName+".")==0){var r=this.data;if(r&&r.parentQuestion&&r.parent&&r.parent.data){var o=new t(r.parentQuestion,r.parent.data,pe.ItemVariableName),s=pe.ItemVariableName+e.name.substring(pe.ParentItemVariableName.length),a=o.processValue(s,e.returnDisplayValue);e.isExists=a.isExists,e.value=a.value}return!0}return!1},t}(mr),pe=function(){function i(t,e){this.data=t,this.panelValue=e,this.textPreProcessor=new Xc(t,this,i.ItemVariableName),this.setSurveyImpl()}return Object.defineProperty(i.prototype,"panel",{get:function(){return this.panelValue},enumerable:!1,configurable:!0}),i.prototype.setSurveyImpl=function(){this.panel.setSurveyImpl(this)},i.prototype.getValue=function(t){var e=this.getAllValues();return e[t]},i.prototype.setValue=function(t,e){var n=this.data.getPanelItemData(this),r=n?n[t]:void 0;if(!P.isTwoValueEquals(e,r,!1,!0,!1)){this.data.setPanelItemData(this,t,P.getUnbindValue(e));for(var o=this.panel.questions,s=i.ItemVariableName+"."+t,a=0;a<o.length;a++){var l=o[a];l.getValueName()!==t&&l.checkBindings(t,e),l.runTriggers(s,e)}}},i.prototype.getVariable=function(t){},i.prototype.setVariable=function(t,e){},i.prototype.getComment=function(t){var e=this.getValue(t+b.commentSuffix);return e||""},i.prototype.setComment=function(t,e,n){this.setValue(t+b.commentSuffix,e)},i.prototype.findQuestionByName=function(t){if(t){var e=i.ItemVariableName+".";if(t.indexOf(e)===0)return this.panel.getQuestionByName(t.substring(e.length));var n=this.getSurvey();return n?n.getQuestionByName(t):null}},i.prototype.getEditingSurveyElement=function(){},i.prototype.getAllValues=function(){return this.data.getPanelItemData(this)},i.prototype.getFilteredValues=function(){var t={},e=this.data&&this.data.getRootData()?this.data.getRootData().getFilteredValues():{};for(var n in e)t[n]=e[n];if(t[i.ItemVariableName]=this.getAllValues(),this.data){var r=i.IndexVariableName,o=i.VisibleIndexVariableName;delete t[r],delete t[o],t[r.toLowerCase()]=this.data.getItemIndex(this),t[o.toLowerCase()]=this.data.getVisibleItemIndex(this);var s=this.data;s&&s.parentQuestion&&s.parent&&(t[i.ParentItemVariableName]=s.parent.getValue())}return t},i.prototype.getFilteredProperties=function(){return this.data&&this.data.getRootData()?this.data.getRootData().getFilteredProperties():{survey:this.getSurvey()}},i.prototype.getSurveyData=function(){return this},i.prototype.getSurvey=function(){return this.data?this.data.getSurvey():null},i.prototype.getTextProcessor=function(){return this.textPreProcessor},i.ItemVariableName="panel",i.ParentItemVariableName="parentpanel",i.IndexVariableName="panelIndex",i.VisibleIndexVariableName="visiblePanelIndex",i}(),Zc=function(){function i(t){this.data=t}return i.prototype.getSurveyData=function(){return null},i.prototype.getSurvey=function(){return this.data.getSurvey()},i.prototype.getTextProcessor=function(){return null},i}(),ui=function(i){js(t,i);function t(e){var n=i.call(this,e)||this;return n._renderedPanels=[],n.isPanelsAnimationRunning=!1,n.isAddingNewPanels=!1,n.isSetPanelItemData={},n.createNewArray("panels",function(r){n.onPanelAdded(r)},function(r){n.onPanelRemoved(r)}),n.createNewArray("visiblePanels"),n.templateValue=n.createAndSetupNewPanelObject(),n.template.renderWidth="100%",n.template.selectedElementInDesign=n,n.template.addElementCallback=function(r){n.addOnPropertyChangedCallback(r),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(["newPanelPosition","displayMode","showProgressBar"],function(){n.updateFooterActions()}),n.registerPropertyChangedHandlers(["allowAddPanel"],function(){n.updateNoEntriesTextDefaultLoc()}),n.registerPropertyChangedHandlers(["minPanelCount"],function(){n.onMinPanelCountChanged()}),n.registerPropertyChangedHandlers(["maxPanelCount"],function(){n.onMaxPanelCountChanged()}),n}return 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 n=0;n<this.visiblePanelsCore.length;n++){var r=this.visiblePanelsCore[n].getFirstQuestionToFocus(e);if(r)return r}return this.showAddPanelButton&&(!e||this.currentErrorCount>0)?this:null},t.prototype.getFirstInputElementId=function(){return this.showAddPanelButton?this.addButtonId:i.prototype.getFirstInputElementId.call(this)},t.prototype.setSurveyImpl=function(e,n){i.prototype.setSurveyImpl.call(this,e,n),this.setTemplatePanelSurveyImpl(),this.setPanelsSurveyImpl()},t.prototype.assignOnPropertyChangedToTemplate=function(){for(var e=this.template.elements,n=0;n<e.length;n++)this.addOnPropertyChangedCallback(e[n])},t.prototype.addOnPropertyChangedCallback=function(e){var n=this;e.isQuestion&&e.setParentQuestion(this),e.onPropertyChanged.add(function(r,o){n.onTemplateElementPropertyChanged(r,o)}),e.isPanel&&(e.addElementCallback=function(r){n.addOnPropertyChangedCallback(r)})},t.prototype.onTemplateElementPropertyChanged=function(e,n){if(!(this.isLoadingFromJson||this.useTemplatePanel||this.panelsCore.length==0)){var r=x.findProperty(e.getType(),n.name);if(r)for(var o=this.panelsCore,s=0;s<o.length;s++){var a=o[s].getQuestionByName(e.name);a&&a[n.name]!==n.newValue&&(a[n.name]=n.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=[],n=0;n<this.panelsCore.length;n++)e.push(this.panelsCore[n].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 n=0,r=this.panelsCore,o=0;o<r.length&&r[o]!==e;o++)r[o].visible&&n++;this.visiblePanelsCore.splice(n,0,e),this.addTabFromToolbar(e,n),this.currentPanel||(this.currentPanel=e),this.updateRenderedPanels()}},t.prototype.onPanelRemoved=function(e){var n=this.onPanelRemovedCore(e);if(this.currentPanel===e){var r=this.visiblePanelsCore;n>=r.length&&(n=r.length-1),this.currentPanel=n>=0?r[n]:null}this.updateRenderedPanels()},t.prototype.onPanelRemovedCore=function(e){var n=this.visiblePanelsCore,r=n.indexOf(e);return r>-1&&(n.splice(r,1),this.removeTabFromToolbar(e)),r},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 n=this.getPropertyValue("currentPanel"),r=e?this.visiblePanelsCore.indexOf(e):-1;if(!(e&&r<0||e===n)&&(n&&n.onHidingContent(),this.setPropertyValue("currentPanel",e),this.updateRenderedPanels(),this.updateFooterActions(),this.updateTabToolbarItemsPressedState(),this.fireCallback(this.currentIndexChangedCallback),r>-1&&this.survey)){var o={panel:e,visiblePanelIndex:r};this.survey.dynamicPanelCurrentIndexChanged(this,o)}}},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){this.renderedPanels.length==0||e.length==0?(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,n=function(){if(e.isRenderModeList)return"";var r=new O,o=!1,s=e.renderedPanels.filter(function(l){return l!==e.currentPanel})[0],a=e.visiblePanels.indexOf(s);return a<0&&(o=!0,a=e.removedPanelIndex),r.append("sv-pd-animation-adding",!!e.focusNewPanelCallback).append("sv-pd-animation-removing",o).append("sv-pd-animation-left",a<=e.currentIndex).append("sv-pd-animation-right",a>e.currentIndex).toString()};return{getRerenderEvent:function(){return e.onElementRerendered},getAnimatedElement:function(r){var o,s;if(r&&e.cssContent){var a=be(e.cssContent);return(s=(o=e.getWrapperElement())===null||o===void 0?void 0:o.querySelector(":scope "+a+" #"+r.id))===null||s===void 0?void 0:s.parentElement}},getEnterOptions:function(){var r=new O().append(e.cssClasses.panelWrapperEnter).append(n()).toString();return{onBeforeRunAnimation:function(o){if(e.focusNewPanelCallback){var s=e.isRenderModeList?o:o.parentElement;le.ScrollElementToViewCore(s,!1,!1,{behavior:"smooth"})}!e.isRenderModeList&&o.parentElement?Mt(o.parentElement,{heightTo:o.offsetHeight+"px"}):Ae(o)},onAfterRunAnimation:function(o){Ce(o),o.parentElement&&Ce(o.parentElement)},cssClass:r}},getLeaveOptions:function(){var r=new O().append(e.cssClasses.panelWrapperLeave).append(n()).toString();return{onBeforeRunAnimation:function(o){!e.isRenderModeList&&o.parentElement?Mt(o.parentElement,{heightFrom:o.offsetHeight+"px"}):Ae(o)},onAfterRunAnimation:function(o){Ce(o),o.parentElement&&Ce(o.parentElement)},cssClass:r}},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?Qe:Yn)(this.getPanelsAnimationOptions(),function(n,r){e._renderedPanels=n,r||(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(){i.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 this.displayMode=="carousel"&&(this.progressBarLocation==="top"||this.progressBarLocation==="topBottom")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isProgressBottomShowing",{get:function(){return this.displayMode=="carousel"&&(this.progressBarLocation==="bottom"||this.progressBarLocation==="topBottom")},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 e===void 0&&(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:i.prototype.getValueCore.call(this)},t.prototype.setValueCore=function(e){this.isAddingNewPanels?(this.isNewPanelsValueChanged=!0,this.addingNewPanelsValue=e):i.prototype.setValueCore.call(this,e)},t.prototype.setIsMobile=function(e){i.prototype.setIsMobile.call(this,e),(this.panelsCore||[]).forEach(function(n){return n.getQuestions(!0).forEach(function(r){r.setIsMobile(e)})})},t.prototype.themeChanged=function(e){i.prototype.themeChanged.call(this,e),(this.panelsCore||[]).forEach(function(n){return n.getQuestions(!0).forEach(function(r){r.themeChanged(e)})})},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){this.setPropertyValue("panelCount",e);return}if(!(e==this.panelsCore.length||this.useTemplatePanel)){this.updateBindings("panelCount",e),this.prepareValueForPanelCreating();for(var n=this.panelCount;n<e;n++){var r=this.createNewPanel();this.panelsCore.push(r),this.displayMode=="list"&&this.panelsState!="default"&&(this.panelsState==="expanded"?r.expand():r.title&&r.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()}}},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 Zc(this))},t.prototype.setPanelsSurveyImpl=function(){for(var e=0;e<this.panelsCore.length;e++){var n=this.panelsCore[e];n!=this.template&&n.setSurveyImpl(n.data)}},t.prototype.setPanelsState=function(){if(!(this.useTemplatePanel||this.displayMode!="list"||!this.templateTitle))for(var e=0;e<this.panelsCore.length;e++){var n=this.panelsState;n==="firstExpanded"&&(n=e===0?"expanded":"collapsed"),this.panelsCore[e].state=n}},t.prototype.setValueBasedOnPanelCount=function(){var e=this.value;if((!e||!Array.isArray(e))&&(e=[]),e.length!=this.panelCount){for(var n=e.length;n<this.panelCount;n++){var r=this.panels[n].getValue(),o=P.isValueEmpty(r)?{}:r;e.push(o)}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),this.setPropertyValue("minPanelCount",e)},enumerable:!1,configurable:!0}),t.prototype.onMinPanelCountChanged=function(){var e=this.minPanelCount;e>this.maxPanelCount&&(this.maxPanelCount=e),this.panelCount<e&&(this.panelCount=e)},Object.defineProperty(t.prototype,"maxPanelCount",{get:function(){return this.getPropertyValue("maxPanelCount")},set:function(e){e<=0||(e>b.panel.maxPanelCount&&(e=b.panel.maxPanelCount),this.setPropertyValue("maxPanelCount",e),this.updateFooterActions())},enumerable:!1,configurable:!0}),t.prototype.onMaxPanelCountChanged=function(){var e=this.maxPanelCount;e<this.minPanelCount&&(this.minPanelCount=e),this.panelCount>e&&(this.panelCount=e),this.updateFooterActions()},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,"addButtonId",{get:function(){return this.id+"addPanel"},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 this.showQuestionNumbers==="onSurvey"},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.showProgressBar},set:function(e){this.showProgressBar=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"renderMode",{get:function(){var e=this.displayMode;if(e=="carousel"){var n=this.progressBarLocation;if(n=="top")return"progressTop";if(n=="bottom")return"progressBottom";if(n=="topBottom")return"progressTopBottom"}return e},set:function(e){(e||"").startsWith("progress")?(e=="progressTop"?this.progressBarLocation="top":e=="progressBottom"?this.progressBarLocation="bottom":e=="progressTopBottom"&&(this.progressBarLocation="topBottom"),this.displayMode="carousel"):this.displayMode=e},enumerable:!1,configurable:!0}),t.prototype.updatePanelView=function(){this.blockAnimations(),this.updateRenderedPanels(),this.releaseAnimations(),this.updatePanelsAnimation()},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 this.displayMode==="list"},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isRenderModeTab",{get:function(){return this.displayMode==="tab"},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 e==="left"||e==="top"},enumerable:!1,configurable:!0}),t.prototype.setVisibleIndex=function(e){if(!this.isVisible)return 0;for(var n=this.showQuestionNumbers==="onSurvey",r=n?e:0,o=this.isDesignMode?[this.template]:this.visiblePanelsCore,s=0;s<o.length;s++){var a=this.setPanelVisibleIndex(o[s],r,this.showQuestionNumbers!="off");n&&(r+=a)}return i.prototype.setVisibleIndex.call(this,n?-1:e),n?r-e:1},t.prototype.setPanelVisibleIndex=function(e,n,r){return r?e.setVisibleIndex(n):(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&&this.newPanelPosition!=="next"?!1:this.allowAddPanel&&!this.isReadOnly&&this.panelCount<this.maxPanelCount},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"canRemovePanel",{get:function(){return this.isDesignMode?!1:this.allowRemovePanel&&!this.isReadOnly&&this.panelCount>this.minPanelCount},enumerable:!1,configurable:!0}),t.prototype.rebuildPanels=function(){var e;if(!this.isLoadingFromJson){this.prepareValueForPanelCreating();var n=[];if(this.useTemplatePanel)new pe(this,this.template),n.push(this.template);else for(var r=0;r<this.panelCount;r++)this.createNewPanel(),n.push(this.createNewPanel());(e=this.panelsCore).splice.apply(e,Yc([0,this.panelsCore.length],n)),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 i.prototype.isDefaultValueEmpty.call(this)&&this.isValueEmpty(this.defaultPanelValue)},t.prototype.setDefaultValue=function(){if(this.isValueEmpty(this.defaultPanelValue)||!this.isValueEmpty(this.defaultValue)){i.prototype.setDefaultValue.call(this);return}if(!(!this.isEmpty()||this.panelCount==0)){for(var e=[],n=0;n<this.panelCount;n++)e.push(this.defaultPanelValue);this.value=e}},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 n=0;n<e.length;n++)if(!this.isRowEmpty(e[n]))return!1;return!0},t.prototype.getProgressInfo=function(){return le.getProgressInfoByElements(this.visiblePanelsCore,this.isRequired)},t.prototype.isRowEmpty=function(e){for(var n in e)if(e.hasOwnProperty(n))return!1;return!0},t.prototype.addPanelUI=function(){if(!this.canAddPanel||!this.canLeaveCurrentPanel())return null;var e=this.addPanel();return this.displayMode==="list"&&this.panelsState!=="default"&&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 n=this.currentIndex;return e===void 0&&(e=n<0?this.panelCount:n+1),(e<0||e>this.panelCount)&&(e=this.panelCount),this.updateValueOnAddingPanel(n<0?this.panelCount-1:n,e),this.isRenderModeList||(this.currentIndex=e),this.survey&&this.survey.dynamicPanelAdded(this),this.panelsCore[e]},t.prototype.updateValueOnAddingPanel=function(e,n){this.panelCount++;var r=this.value;if(!(!Array.isArray(r)||r.length!==this.panelCount)){var o=!1,s=this.panelCount-1;if(n<s){o=!0;var a=r[s];r.splice(s,1),r.splice(n,0,a)}if(this.isValueEmpty(this.defaultPanelValue)||(o=!0,this.copyValue(r[n],this.defaultPanelValue)),this.defaultValueFromLastPanel&&r.length>1){var l=e>-1&&e<=s?e:s;o=!0,this.copyValue(r[n],r[l])}o&&(this.value=r)}},t.prototype.canLeaveCurrentPanel=function(){return!(this.displayMode!=="list"&&this.currentPanel&&this.currentPanel.hasErrors(!0,!0))},t.prototype.copyValue=function(e,n){for(var r in n)e[r]=n[r]},t.prototype.removePanelUI=function(e){var n=this,r=this.getVisualPanelIndex(e);if(!(r<0||r>=this.visiblePanelCount)&&this.canRemovePanel){var o=function(){var s;n.removePanel(r);var a=n.visiblePanelCount,l=r>=a?a-1:r,u=a===0?n.addButtonId:l>-1?n.getPanelRemoveButtonId(n.visiblePanels[l]):"";u&&le.FocusElement(u,!0,(s=n.survey)===null||s===void 0?void 0:s.rootElement)};this.isRequireConfirmOnDelete(e)?At({message:this.confirmDeleteText,funcOnYes:function(){o()},locale:this.getLocale(),rootElement:this.survey.rootElement,cssClass:this.cssClasses.confirmDialog}):o()}},t.prototype.getPanelRemoveButtonId=function(e){return e.id+"_remove_button"},t.prototype.isRequireConfirmOnDelete=function(e){if(!this.confirmDelete)return!1;var n=this.getVisualPanelIndex(e);if(n<0||n>=this.visiblePanelCount)return!1;var r=this.visiblePanelsCore[n].getValue();return!this.isValueEmpty(r)&&(this.isValueEmpty(this.defaultPanelValue)||!this.isTwoValueEquals(r,this.defaultPanelValue))},t.prototype.goToNextPanel=function(){return this.currentIndex<0||!this.canLeaveCurrentPanel()?!1:(this.currentIndex++,!0)},t.prototype.goToPrevPanel=function(){this.currentIndex<0||this.currentIndex--},t.prototype.removePanel=function(s){var n=this.getVisualPanelIndex(s);if(!(n<0||n>=this.visiblePanelCount)){this.removedPanelIndex=n;var r=this.visiblePanelsCore[n],o=this.panelsCore.indexOf(r);if(!(o<0)&&!(this.survey&&!this.survey.dynamicPanelRemoving(this,o,r))){this.panelsCore.splice(o,1),this.updateBindings("panelCount",this.panelCount);var s=this.value;!s||!Array.isArray(s)||o>=s.length||(this.isValueChangingInternally=!0,s.splice(o,1),this.value=s,this.updateFooterActions(),this.fireCallback(this.panelCountChangedCallback),this.survey&&this.survey.dynamicPanelRemoved(this,o,r),this.isValueChangingInternally=!1)}}},t.prototype.getVisualPanelIndex=function(e){if(P.isNumber(e))return e;for(var n=this.visiblePanelsCore,r=0;r<n.length;r++)if(n[r]===e||n[r].data===e)return r;return-1},t.prototype.getPanelVisibleIndexById=function(e){for(var n=this.visiblePanelsCore,r=0;r<n.length;r++)if(n[r].id===e)return r;return-1},t.prototype.locStrsChanged=function(){i.prototype.locStrsChanged.call(this);for(var e=this.panelsCore,n=0;n<e.length;n++)e[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(){i.prototype.clearErrors.call(this);for(var e=0;e<this.panelsCore.length;e++)this.panelsCore[e].clearErrors()},t.prototype.getQuestionFromArray=function(e,n){return n<0||n>=this.panelsCore.length?null:this.panelsCore[n].getQuestionByName(e)},t.prototype.clearIncorrectValuesInPanel=function(e){var n=this.panelsCore[e];n.clearIncorrectValues();var r=this.value,o=r&&e<r.length?r[e]:null;if(o){var s=!1;for(var a in o)if(!this.getSharedQuestionFromArray(a,e)){var l=n.getQuestionByName(a);l||this.iscorrectValueWithPostPrefix(n,a,b.commentSuffix)||this.iscorrectValueWithPostPrefix(n,a,b.matrix.totalsSuffix)||(delete o[a],s=!0)}s&&(r[e]=o,this.value=r)}},t.prototype.iscorrectValueWithPostPrefix=function(e,n,r){return n.indexOf(r)!==n.length-r.length?!1:!!e.getQuestionByName(n.substring(0,n.indexOf(r)))},t.prototype.getSharedQuestionFromArray=function(e,n){return this.survey&&this.valueName?this.survey.getQuestionByValueNameFromArray(this.valueName,e,n):null},t.prototype.addConditionObjectsByContext=function(e,n){for(var r=n!=null&&n.isValidator?n.errorOwner:n,o=!!n&&(n===!0||this.template.questions.indexOf(r)>-1),s=new Array,a=this.template.questions,l=0;l<a.length;l++)a[l].addConditionObjectsByContext(s,n);for(var u=0;u<b.panel.maxPanelCountInCondition;u++)for(var d="["+u+"].",v=this.getValueName()+d,V=this.processedTitle+d,l=0;l<s.length;l++)s[l].context?e.push(s[l]):e.push({name:v+s[l].name,text:V+s[l].text,question:s[l].question});if(o){for(var v=n===!0?this.getValueName()+".":"",V=n===!0?this.processedTitle+".":"",l=0;l<s.length;l++)if(s[l].question!=n){var T={name:v+pe.ItemVariableName+"."+s[l].name,text:V+pe.ItemVariableName+"."+s[l].text,question:s[l].question};T.context=this,e.push(T)}}},t.prototype.collectNestedQuestionsCore=function(e,n){var r=n?this.visiblePanelsCore:this.panelsCore;Array.isArray(r)&&r.forEach(function(o){o.questions.forEach(function(s){return s.collectNestedQuestions(e,n)})})},t.prototype.getConditionJson=function(e,n){if(e===void 0&&(e=null),n===void 0&&(n=null),!n)return i.prototype.getConditionJson.call(this,e);var r=n,o=n.indexOf(".");o>-1&&(r=n.substring(0,o),n=n.substring(o+1));var s=this.template.getQuestionByName(r);return s?s.getConditionJson(e,n):null},t.prototype.onReadOnlyChanged=function(){var e=this.isReadOnly;this.template.readOnly=e;for(var n=0;n<this.panelsCore.length;n++)this.panelsCore[n].readOnly=e;this.updateNoEntriesTextDefaultLoc(),this.updateFooterActions(),i.prototype.onReadOnlyChanged.call(this)},t.prototype.updateNoEntriesTextDefaultLoc=function(){var e=this.getLocalizableString("noEntriesText");e&&(e.localizationName=this.isReadOnly||!this.allowAddPanel?"noEntriesReadonlyText":"noEntriesText")},t.prototype.onSurveyLoad=function(){this.template.readOnly=this.isReadOnly,this.template.onSurveyLoad(),this.panelCount<this.minPanelCount&&(this.panelCount=this.minPanelCount),this.panelCount>this.maxPanelCount&&(this.panelCount=this.maxPanelCount),this.buildPanelsFirstTime(),i.prototype.onSurveyLoad.call(this)},t.prototype.buildPanelsFirstTime=function(e){if(e===void 0&&(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 n=0;n<this.panelCount;n++)this.survey.dynamicPanelAdded(this);this.updateIsReady(),this.showAddPanelButton||this.updateNoEntriesTextDefaultLoc(),this.updateFooterActions(),this.isBuildingPanelsFirstTime=!1,this.releaseAnimations()}},Object.defineProperty(t.prototype,"showAddPanelButton",{get:function(){return this.allowAddPanel&&!this.isReadOnly},enumerable:!1,configurable:!0}),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.onFirstRenderingCore=function(){i.prototype.onFirstRenderingCore.call(this),this.buildPanelsFirstTime(),this.template.onFirstRendering();for(var e=0;e<this.panelsCore.length;e++)this.panelsCore[e].onFirstRendering()},t.prototype.localeChanged=function(){i.prototype.localeChanged.call(this);for(var e=0;e<this.panelsCore.length;e++)this.panelsCore[e].localeChanged()},t.prototype.runCondition=function(e,n){i.prototype.runCondition.call(this,e,n),this.runPanelsCondition(this.panelsCore,e,n)},t.prototype.runTriggers=function(e,n,r){i.prototype.runTriggers.call(this,e,n,r),this.visiblePanelsCore.forEach(function(o){o.questions.forEach(function(s){return s.runTriggers(e,n,r)})})},t.prototype.reRunCondition=function(){this.data&&this.runCondition(this.getDataFilteredValues(),this.getDataFilteredProperties())},t.prototype.runPanelsCondition=function(e,n,r){var o={};n&&n instanceof Object&&(o=JSON.parse(JSON.stringify(n))),this.parentQuestion&&this.parent&&(o[pe.ParentItemVariableName]=this.parent.getValue()),this.isValueChangingInternally=!0;for(var s=0;s<e.length;s++){var a=e[s],l=this.getPanelItemData(a.data),u=P.createCopy(o),d=pe.ItemVariableName;u[d]=l,u[pe.IndexVariableName.toLowerCase()]=s;var v=P.createCopy(r);v[d]=a,a.runCondition(u,v)}this.isValueChangingInternally=!1},t.prototype.onAnyValueChanged=function(e,n){i.prototype.onAnyValueChanged.call(this,e,n);for(var r=0;r<this.panelsCore.length;r++)this.panelsCore[r].onAnyValueChanged(e,n),this.panelsCore[r].onAnyValueChanged(pe.ItemVariableName,"")},t.prototype.hasKeysDuplicated=function(e,n){n===void 0&&(n=null);for(var r=[],o,s=0;s<this.panelsCore.length;s++)o=this.isValueDuplicated(this.panelsCore[s],r,n,e)||o;return o},t.prototype.updatePanelsContainsErrors=function(){for(var e=this.changingValueQuestion,n=e.parent;n;)n.updateContainsErrors(),n=n.parent;this.updateContainsErrors()},t.prototype.hasErrors=function(e,n){if(e===void 0&&(e=!0),n===void 0&&(n=null),this.isValueChangingInternally||this.isBuildingPanelsFirstTime)return!1;var r=!1;if(this.changingValueQuestion){var r=this.changingValueQuestion.hasErrors(e,n);r=this.hasKeysDuplicated(e,n)||r,this.updatePanelsContainsErrors()}else r=this.hasErrorInPanels(e,n);return i.prototype.hasErrors.call(this,e,n)||r},t.prototype.getContainsErrors=function(){var e=i.prototype.getContainsErrors.call(this);if(e)return e;for(var n=this.panelsCore,r=0;r<n.length;r++)if(n[r].containsErrors)return!0;return!1},t.prototype.getIsAnswered=function(){if(!i.prototype.getIsAnswered.call(this))return!1;for(var e=this.visiblePanelsCore,n=0;n<e.length;n++){var r=[];e[n].addQuestionsToList(r,!0);for(var o=0;o<r.length;o++)if(!r[o].isAnswered)return!1}return!0},t.prototype.clearValueOnHidding=function(e){if(!e){if(this.survey&&this.survey.getQuestionClearIfInvisible("onHidden")==="none")return;this.clearValueInPanelsIfInvisible("onHiddenContainer")}i.prototype.clearValueOnHidding.call(this,e)},t.prototype.clearValueIfInvisible=function(e){e===void 0&&(e="onHidden");var n=e==="onHidden"?"onHiddenContainer":e;this.clearValueInPanelsIfInvisible(n),i.prototype.clearValueIfInvisible.call(this,e)},t.prototype.clearValueInPanelsIfInvisible=function(e){for(var n=0;n<this.panelsCore.length;n++){var r=this.panelsCore[n],o=r.questions;this.isSetPanelItemData={};for(var s=0;s<o.length;s++){var a=o[s];a.visible&&!r.isVisible||(a.clearValueIfInvisible(e),this.isSetPanelItemData[a.getValueName()]=this.maxCheckCount+1)}}this.isSetPanelItemData={}},t.prototype.getIsRunningValidators=function(){if(i.prototype.getIsRunningValidators.call(this))return!0;for(var e=0;e<this.panelsCore.length;e++)for(var n=this.panelsCore[e].questions,r=0;r<n.length;r++)if(n[r].isRunningValidators)return!0;return!1},t.prototype.getAllErrors=function(){for(var e=i.prototype.getAllErrors.call(this),n=this.visiblePanelsCore,r=0;r<n.length;r++)for(var o=n[r].questions,s=0;s<o.length;s++){var a=o[s].getAllErrors();a&&a.length>0&&(e=e.concat(a))}return e},t.prototype.getDisplayValueCore=function(e,n){var r=this.getUnbindValue(n);if(!r||!Array.isArray(r))return r;for(var o=0;o<this.panelsCore.length&&o<r.length;o++){var s=r[o];s&&(r[o]=this.getPanelDisplayValue(o,s,e))}return r},t.prototype.getPanelDisplayValue=function(e,n,r){if(!n)return n;for(var o=this.panelsCore[e],s=Object.keys(n),a=0;a<s.length;a++){var l=s[a],u=o.getQuestionByValueName(l);if(u||(u=this.getSharedQuestionFromArray(l,e)),u){var d=u.getDisplayValue(r,n[l]);n[l]=d,r&&u.title&&u.title!==l&&(n[u.title]=d,delete n[l])}}return n},t.prototype.hasErrorInPanels=function(e,n){for(var r=!1,o=this.visiblePanels,s=[],a=0;a<o.length;a++)this.setOnCompleteAsyncInPanel(o[a]);for(var l=!!n&&n.focusOnFirstError,u=0;u<o.length;u++){var d=o[u].hasErrors(e,l,n);d=this.isValueDuplicated(o[u],s,n,e)||d,!this.isRenderModeList&&d&&!r&&l&&(this.currentIndex=u),r=d||r}return r},t.prototype.setOnCompleteAsyncInPanel=function(e){for(var n=this,r=e.questions,o=0;o<r.length;o++)r[o].onCompletedAsyncValidators=function(s){n.raiseOnCompletedAsyncValidators()}},t.prototype.isValueDuplicated=function(e,n,r,o){if(!this.keyName)return!1;var s=e.getQuestionByValueName(this.keyName);if(!s||s.isEmpty())return!1;var a=s.value;this.changingValueQuestion&&s!=this.changingValueQuestion&&s.hasErrors(o,r);for(var l=0;l<n.length;l++)if(a==n[l])return o&&s.addError(new bo(this.keyDuplicationError,this)),r&&!r.firstErrorQuestion&&(r.firstErrorQuestion=s),!0;return n.push(a),!1},t.prototype.getPanelActions=function(e){var n=this,r=e.footerActions;return this.panelRemoveButtonLocation!=="right"&&r.push(new $({id:"remove-panel-"+e.id,component:"sv-paneldynamic-remove-btn",visible:new te(function(){return[n.canRemovePanel,e.state!=="collapsed",n.panelRemoveButtonLocation!=="right"].every(function(o){return o===!0})}),data:{question:this,panel:e}})),this.survey&&(r=this.survey.getUpdatedPanelFooterActions(e,r,this)),r},t.prototype.createNewPanel=function(){var e=this,n=this.createAndSetupNewPanelObject(),r=this.template.toJSON();new fe().toObject(r,n),n.renderWidth="100%",n.updateCustomWidgets(),new pe(this,n),!this.isDesignMode&&!this.isReadOnly&&!this.isValueEmpty(n.getValue())&&this.runPanelsCondition([n],this.getDataFilteredValues(),this.getDataFilteredProperties());for(var o=n.questions,s=0;s<o.length;s++)o[s].setParentQuestion(this);return this.wasRendered&&(n.onFirstRendering(),n.locStrsChanged()),n.onGetFooterActionsCallback=function(){return e.getPanelActions(n)},n.onGetFooterToolbarCssCallback=function(){return e.cssClasses.panelFooter},n.registerPropertyChangedHandlers(["visible"],function(){n.visible?e.onPanelAdded(n):e.onPanelRemoved(n),e.updateFooterActions()}),n},t.prototype.createAndSetupNewPanelObject=function(){var e=this,n=this.createNewPanelObject();return n.isInteractiveDesignElement=!1,n.setParentQuestion(this),n.onGetQuestionTitleLocation=function(){return e.getTemplateQuestionTitleLocation()},n},t.prototype.getTemplateQuestionTitleLocation=function(){return this.templateTitleLocation!="default"?this.templateTitleLocation:this.getTitleLocationCore()},t.prototype.getChildErrorLocation=function(e){return this.templateErrorLocation!=="default"?this.templateErrorLocation:i.prototype.getChildErrorLocation.call(this,e)},t.prototype.createNewPanelObject=function(){return x.createClass("panel")},t.prototype.setPanelCountBasedOnValue=function(){if(!(this.isValueChangingInternally||this.useTemplatePanel)){var e=this.value,n=e&&Array.isArray(e)?e.length:0;n==0&&this.getPropertyValue("panelCount")>0&&(n=this.getPropertyValue("panelCount")),this.settingPanelCountBasedOnValue=!0,this.panelCount=n,this.settingPanelCountBasedOnValue=!1}},t.prototype.setQuestionValue=function(e){if(!this.settingPanelCountBasedOnValue){i.prototype.setQuestionValue.call(this,e,!1),this.setPanelCountBasedOnValue();for(var n=0;n<this.panelsCore.length;n++)this.panelUpdateValueFromSurvey(this.panelsCore[n]);this.updateIsAnswered()}},t.prototype.onSurveyValueChanged=function(e){if(!(e===void 0&&this.isAllPanelsEmpty())){i.prototype.onSurveyValueChanged.call(this,e);for(var n=0;n<this.panelsCore.length;n++)this.panelSurveyValueChanged(this.panelsCore[n]);e===void 0&&this.setValueBasedOnPanelCount(),this.updateIsReady()}},t.prototype.isAllPanelsEmpty=function(){for(var e=0;e<this.panelsCore.length;e++)if(!P.isValueEmpty(this.panelsCore[e].getValue()))return!1;return!0},t.prototype.panelUpdateValueFromSurvey=function(e){for(var n=e.questions,r=this.getPanelItemData(e.data),o=0;o<n.length;o++){var s=n[o];s.updateValueFromSurvey(r[s.getValueName()]),s.updateCommentFromSurvey(r[s.getValueName()+b.commentSuffix]),s.initDataUI()}},t.prototype.panelSurveyValueChanged=function(e){for(var n=e.questions,r=this.getPanelItemData(e.data),o=0;o<n.length;o++){var s=n[o];s.onSurveyValueChanged(r[s.getValueName()])}},t.prototype.onSetData=function(){i.prototype.onSetData.call(this),!this.isLoadingFromJson&&this.useTemplatePanel&&(this.setTemplatePanelSurveyImpl(),this.rebuildPanels())},t.prototype.isNewValueCorrect=function(e){return Array.isArray(e)},t.prototype.getItemIndex=function(e){var n=this.items.indexOf(e);return n>-1?n:this.items.length},t.prototype.getVisibleItemIndex=function(e){for(var n=this.visiblePanelsCore,r=0;r<n.length;r++)if(n[r].data===e)return r;return n.length},t.prototype.getPanelItemData=function(e){var n=this.items,r=n.indexOf(e),o=this.value;return r<0&&Array.isArray(o)&&o.length>n.length&&(r=n.length),r<0?{}:!o||!Array.isArray(o)||o.length<=r?{}:o[r]},t.prototype.setPanelItemData=function(e,n,r){if(!(this.isSetPanelItemData[n]>this.maxCheckCount)){this.isSetPanelItemData[n]||(this.isSetPanelItemData[n]=0),this.isSetPanelItemData[n]++;var o=this.items,s=o.indexOf(e);s<0&&(s=o.length);var a=this.getUnbindValue(this.value);if((!a||!Array.isArray(a))&&(a=[]),a.length<=s)for(var l=a.length;l<=s;l++)a.push({});if(a[s]||(a[s]={}),this.isValueEmpty(r)?delete a[s][n]:a[s][n]=r,s>=0&&s<this.panelsCore.length&&(this.changingValueQuestion=this.panelsCore[s].getQuestionByValueName(n)),this.value=a,this.changingValueQuestion=null,this.survey){var u={question:this,panel:e.panel,name:n,itemIndex:s,itemValue:a[s],value:r};this.survey.dynamicPanelItemValueChanged(this,u)}this.isSetPanelItemData[n]--,this.isSetPanelItemData[n]-1&&delete this.isSetPanelItemData[n]}},t.prototype.getRootData=function(){return this.data},t.prototype.getPlainData=function(e){e===void 0&&(e={includeEmpty:!0});var n=i.prototype.getPlainData.call(this,e);if(n){n.isNode=!0;var r=Array.isArray(n.data)?[].concat(n.data):[];n.data=this.panels.map(function(o,s){var a={name:o.name||s,title:o.title||"Panel",value:o.getValue(),displayValue:o.getValue(),getString:function(l){return typeof l=="object"?JSON.stringify(l):l},isNode:!0,data:o.questions.map(function(l){return l.getPlainData(e)}).filter(function(l){return!!l})};return(e.calculations||[]).forEach(function(l){a[l.propertyName]=o[l.propertyName]}),a}),n.data=n.data.concat(r)}return n},t.prototype.updateElementCss=function(e){i.prototype.updateElementCss.call(this,e);for(var n=0;n<this.panelsCore.length;n++){var r=this.panelsCore[n];r.updateElementCss(e)}},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 O().append(i.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 O().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 O().append(this.cssClasses.panelWrapper,!e||e.visible).append(this.cssClasses.panelWrapperList,this.isRenderModeList).append(this.cssClasses.panelWrapperInRow,this.panelRemoveButtonLocation==="right").toString()},t.prototype.getPanelRemoveButtonCss=function(){return new O().append(this.cssClasses.button).append(this.cssClasses.buttonRemove).append(this.cssClasses.buttonRemoveRight,this.panelRemoveButtonLocation==="right").toString()},t.prototype.getAddButtonCss=function(){return new O().append(this.cssClasses.button).append(this.cssClasses.buttonAdd).append(this.cssClasses.buttonAdd+"--list-mode",this.displayMode==="list").toString()},t.prototype.getPrevButtonCss=function(){return new O().append(this.cssClasses.buttonPrev).append(this.cssClasses.buttonPrevDisabled,!this.isPrevButtonVisible).toString()},t.prototype.getNextButtonCss=function(){return new O().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&&this.visiblePanelCount===0},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 en,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 n=[],r=new $({id:"sv-pd-prev-btn",title:this.panelPrevText,action:function(){e.goToPrevPanel()}}),o=new $({id:"sv-pd-next-btn",title:this.panelNextText,action:function(){e.goToNextPanel()}}),s=new $({id:"sv-pd-add-btn",component:"sv-paneldynamic-add-btn",data:{question:this}}),a=new $({id:"sv-prev-btn-icon",component:"sv-paneldynamic-prev-btn",data:{question:this}}),l=new $({id:"sv-pd-progress-text",component:"sv-paneldynamic-progress-text",data:{question:this}}),u=new $({id:"sv-pd-next-btn-icon",component:"sv-paneldynamic-next-btn",data:{question:this}});n.push(r,o,s,a,l,u),this.updateFooterActionsCallback=function(){var d=e.legacyNavigation,v=e.isRenderModeList,V=e.isMobile,T=!d&&!v;r.visible=T&&e.currentIndex>0,o.visible=T&&e.currentIndex<e.visiblePanelCount-1,o.needSpace=V&&o.visible&&r.visible,s.visible=e.canAddPanel,s.needSpace=e.isMobile&&!o.visible&&r.visible,l.visible=!e.isRenderModeList&&!V,l.needSpace=!d&&!e.isMobile;var R=d&&!v;a.visible=R,u.visible=R,a.needSpace=R},this.updateFooterActionsCallback(),this.footerToolbarValue.setItems(n)},t.prototype.createTabByPanel=function(e,n){var r=this;if(this.isRenderModeTab){var o=new Se(e,!0);o.onGetTextCallback=function(l){if(l||(l=r.locTabTitlePlaceholder.renderedHtml),!r.survey)return l;var u={title:l,panel:e,visiblePanelIndex:n};return r.survey.dynamicPanelGetTabTitle(r,u),u.title},o.sharedData=this.locTemplateTabTitle;var s=this.getPanelVisibleIndexById(e.id)===this.currentIndex,a=new $({id:e.id,pressed:s,locTitle:o,disableHide:s,action:function(){r.currentIndex=r.getPanelVisibleIndexById(a.id)}});return a}},t.prototype.getAdditionalTitleToolbarCss=function(e){var n=e??this.cssClasses;return new O().append(n.tabsRoot).append(n.tabsLeft,this.tabAlign==="left").append(n.tabsRight,this.tabAlign==="right").append(n.tabsCenter,this.tabAlign==="center").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(n){var r=n.id===e.id;n.pressed=r,n.disableHide=r,n.mode==="popup"&&n.disableHide&&n.raiseUpdate()})}},t.prototype.updateTabToolbar=function(){var e=this;if(this.isRenderModeTab){for(var n=[],r=this.visiblePanelsCore,o=function(l){s.visiblePanelsCore.forEach(function(u){return n.push(e.createTabByPanel(r[l],l))})},s=this,a=0;a<r.length;a++)o(a);this.additionalTitleToolbar.setItems(n)}},t.prototype.addTabFromToolbar=function(e,n){if(this.isRenderModeTab){var r=this.createTabByPanel(e,n);this.additionalTitleToolbar.actions.splice(n,0,r),this.updateTabToolbarItemsPressedState()}},t.prototype.removeTabFromToolbar=function(e){if(this.isRenderModeTab){var n=this.additionalTitleToolbar.getActionById(e.id);n&&(this.additionalTitleToolbar.actions.splice(this.additionalTitleToolbar.actions.indexOf(n),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&&this.visiblePanelCount==1?!1: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(e){var n=i.prototype.calcCssClasses.call(this,e),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=e.list),n},t.prototype.onMobileChanged=function(){i.prototype.onMobileChanged.call(this),this.updateFooterActions()},t.maxCheckCount=3,Ut([ae({})],t.prototype,"_renderedPanels",void 0),Ut([h({onSet:function(e,n){n.fireCallback(n.renderModeChangedCallback),n.updatePanelView()}})],t.prototype,"displayMode",void 0),Ut([h({onSet:function(e,n){n.fireCallback(n.currentIndexChangedCallback)}})],t.prototype,"showProgressBar",void 0),Ut([h({onSet:function(e,n){}})],t.prototype,"progressBarLocation",void 0),Ut([h({defaultValue:!1,onSet:function(e,n){n.updateFooterActions()}})],t.prototype,"legacyNavigation",void 0),t}(ue);x.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(i){return i.displayMode==="tab"}},{name:"tabTitlePlaceholder",serializationProperty:"locTabTitlePlaceholder",visibleIf:function(i){return i.displayMode==="tab"}},{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",defaultFunc:function(){return b.panel.maxPanelCount}},"defaultPanelValue:panelvalue","defaultValueFromLastPanel:boolean",{name:"panelsState",default:"default",choices:["default","collapsed","expanded","firstExpanded"],visibleIf:function(i){return i.displayMode==="list"}},{name:"keyName"},{name:"keyDuplicationError",serializationProperty:"locKeyDuplicationError"},{name:"confirmDelete:boolean"},{name:"confirmDeleteText",serializationProperty:"locConfirmDeleteText",visibleIf:function(i){return i.confirmDelete}},{name:"panelAddText",serializationProperty:"locPanelAddText",visibleIf:function(i){return i.allowAddPanel}},{name:"panelRemoveText",serializationProperty:"locPanelRemoveText",visibleIf:function(i){return i.allowRemovePanel}},{name:"panelPrevText",serializationProperty:"locPanelPrevText",visibleIf:function(i){return i.displayMode!=="list"}},{name:"panelNextText",serializationProperty:"locPanelNextText",visibleIf:function(i){return i.displayMode!=="list"}},{name:"showQuestionNumbers",default:"off",choices:["off","onPanel","onSurvey"]},{name:"showRangeInProgress:boolean",default:!0,visible:!1},{name:"renderMode",default:"list",choices:["list","progressTop","progressBottom","progressTopBottom","tab"],visible:!1},{name:"displayMode",default:"list",choices:["list","carousel","tab"]},{name:"showProgressBar:boolean",default:!0,visibleIf:function(i){return i.displayMode==="carousel"}},{name:"progressBarLocation",default:"top",choices:["top","bottom","topBottom"],visibleIf:function(i){return i.showProgressBar}},{name:"tabAlign",default:"center",choices:["left","center","right"],visibleIf:function(i){return i.displayMode==="tab"}},{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(i){return i.allowRemovePanel}}],function(){return new ui("")},"question"),J.Instance.registerQuestion("paneldynamic",function(i){return new ui(i)});var ef=function(){function i(){}return i.getProgressTextInBarCss=function(t){return new O().append(t.progressText).append(t.progressTextInBar).toString()},i.getProgressTextUnderBarCss=function(t){return new O().append(t.progressText).append(t.progressTextUnderBar).toString()},i}(),Ye=function(){var i=function(t,e){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(n[o]=r[o])},i(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");i(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),Ns=function(i){Ye(t,i);function t(){var e=i.call(this)||this;return e.idValue=t.idCounter++,e.registerPropertyChangedHandlers(["operator","value","name"],function(){e.oldPropertiesChanged()}),e.registerPropertyChangedHandlers(["expression"],function(){e.onExpressionChanged()}),e}return Object.defineProperty(t,"operators",{get:function(){return t.operatorsValue!=null||(t.operatorsValue={empty:function(e,n){return!e},notempty:function(e,n){return!!e},equal:function(e,n){return e==n},notequal:function(e,n){return e!=n},contains:function(e,n){return e&&e.indexOf&&e.indexOf(n)>-1},notcontains:function(e,n){return!e||!e.indexOf||e.indexOf(n)==-1},greater:function(e,n){return e>n},less:function(e,n){return e<n},greaterorequal:function(e,n){return e>=n},lessorequal:function(e,n){return e<=n}}),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",""),n=this.expression?this.expression:this.buildExpression();return n&&(e+=", "+n),e},Object.defineProperty(t.prototype,"isInternal",{get:function(){return this.isGhost===!0},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,n,r,o,s){s===void 0&&(s=null),this.isExecutingOnNextPage=e,this.canBeExecuted(e)&&(n&&!this.canBeExecutedOnComplete()||this.isCheckRequired(r)&&(this.conditionRunner?this.perform(o,s):this.canSuccessOnEmptyExpression()&&this.triggerResult(!0,o,s)))},t.prototype.canSuccessOnEmptyExpression=function(){return!1},t.prototype.check=function(e){var n=t.operators[this.operator](e,this.value);n?this.onSuccess({},null):this.onFailure()},Object.defineProperty(t.prototype,"requireValidQuestion",{get:function(){return!1},enumerable:!1,configurable:!0}),t.prototype.perform=function(e,n){var r=this;this.conditionRunner.onRunComplete=function(o){r.triggerResult(o,e,n)},this.conditionRunner.run(e,n)},t.prototype.triggerResult=function(e,n,r){e?(this.onSuccess(n,r),this.onSuccessExecuted()):this.onFailure()},t.prototype.onSuccess=function(e,n){},t.prototype.onFailure=function(){},t.prototype.onSuccessExecuted=function(){},t.prototype.endLoadingFromJson=function(){i.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+" "+Oe.toOperandString(this.value)},t.prototype.isCheckRequired=function(e){return e?(this.createConditionRunner(),this.conditionRunner&&this.conditionRunner.hasFunction()===!0?!0:new me().isAnyKeyChanged(e,this.getUsedVariables())):!1},t.prototype.getUsedVariables=function(){if(!this.conditionRunner)return[];var e=this.conditionRunner.getVariables();if(Array.isArray(e))for(var n="-unwrapped",r=e.length-1;r>=0;r--){var o=e[r];o.endsWith(n)&&e.push(o.substring(0,o.length-n.length))}return e},t.prototype.createConditionRunner=function(){if(!this.conditionRunner){var e=this.expression;e||(e=this.buildExpression()),e&&(this.conditionRunner=new de(e))}},Object.defineProperty(t.prototype,"isRequireValue",{get:function(){return this.operator!=="empty"&&this.operator!="notempty"},enumerable:!1,configurable:!0}),t.idCounter=1,t.operatorsValue=null,t}(z),ut=function(i){Ye(t,i);function t(){var e=i.call(this)||this;return e.ownerValue=null,e}return 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 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}(Ns),Fs=function(i){Ye(t,i);function t(){var e=i.call(this)||this;return e.pages=[],e.questions=[],e}return t.prototype.getType=function(){return"visibletrigger"},t.prototype.onSuccess=function(e,n){this.onTrigger(this.onItemSuccess)},t.prototype.onFailure=function(){this.onTrigger(this.onItemFailure)},t.prototype.onTrigger=function(e){if(this.owner)for(var n=this.owner.getObjects(this.pages,this.questions),r=0;r<n.length;r++)e(n[r])},t.prototype.onItemSuccess=function(e){e.visible=!0},t.prototype.onItemFailure=function(e){e.visible=!1},t}(ut),_s=function(i){Ye(t,i);function t(){return i.call(this)||this}return t.prototype.getType=function(){return"completetrigger"},Object.defineProperty(t.prototype,"requireValidQuestion",{get:function(){return!0},enumerable:!1,configurable:!0}),t.prototype.isRealExecution=function(){return!b.triggers.executeCompleteOnValueChanged===this.isExecutingOnNextPage},t.prototype.onSuccess=function(e,n){this.owner&&(this.isRealExecution()?this.owner.setCompleted(this):this.owner.canBeCompleted(this,!0))},t.prototype.onFailure=function(){this.owner.canBeCompleted(this,!1)},t}(ut),Bs=function(i){Ye(t,i);function t(){return i.call(this)||this}return t.prototype.getType=function(){return"setvaluetrigger"},t.prototype.canBeExecuted=function(e){return!e&&!!this.setToName},t.prototype.onPropertyValueChanged=function(e,n,r){if(i.prototype.onPropertyValueChanged.call(this,e,n,r),e==="setToName"){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,n){!this.setToName||!this.owner||this.owner.setTriggerValue(this.setToName,this.setValue,this.isVariable)},t}(ut),ks=function(i){Ye(t,i);function t(){return i.call(this)||this}return 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===!b.triggers.executeSkipOnValueChanged},t.prototype.onSuccess=function(e,n){!this.gotoName||!this.owner||this.owner.focusQuestion(this.gotoName)},t}(ut),qs=function(i){Ye(t,i);function t(){return i.call(this)||this}return 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,n){var r=this;if(!(!this.owner||!this.runExpression)){var o=new et(this.runExpression);o.canRun&&(o.onRunComplete=function(s){r.onCompleteRunExpression(s)},o.run(e,n))}},t.prototype.onCompleteRunExpression=function(e){this.setToName&&e!==void 0&&this.owner.setTriggerValue(this.setToName,P.convertValToQuestionVal(e),!1)},t}(ut),Qs=function(i){Ye(t,i);function t(){return i.call(this)||this}return 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,n){!this.setToName||!this.owner||this.owner.copyTriggerValue(this.setToName,this.fromName,this.copyDisplayValue)},t.prototype.canSuccessOnEmptyExpression=function(){return!0},t.prototype.getUsedVariables=function(){var e=i.prototype.getUsedVariables.call(this);return e.length===0&&this.fromName&&e.push(this.fromName),e},t}(ut);x.addClass("trigger",[{name:"operator",default:"equal",visible:!1},{name:"value",visible:!1},"expression:condition"]),x.addClass("surveytrigger",[{name:"name",visible:!1}],null,"trigger"),x.addClass("visibletrigger",["pages:pages","questions:questions"],function(){return new Fs},"surveytrigger"),x.addClass("completetrigger",[],function(){return new _s},"surveytrigger"),x.addClass("setvaluetrigger",[{name:"!setToName:questionvalue"},{name:"setValue:triggervalue",dependsOn:"setToName",visibleIf:function(i){return!!i&&!!i.setToName}},{name:"isVariable:boolean",visible:!1}],function(){return new Bs},"surveytrigger"),x.addClass("copyvaluetrigger",[{name:"!fromName:questionvalue"},{name:"!setToName:questionvalue"},{name:"copyDisplayValue:boolean",visible:!1}],function(){return new Qs},"surveytrigger"),x.addClass("skiptrigger",[{name:"!gotoName:question"}],function(){return new ks},"surveytrigger"),x.addClass("runexpressiontrigger",[{name:"setToName:questionvalue"},"runExpression:expression"],function(){return new qs},"surveytrigger");var zs=function(){var i=function(t,e){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(n[o]=r[o])},i(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");i(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),tf=function(i,t,e,n){var r=arguments.length,o=r<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,e):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(i,t,e,n);else for(var a=i.length-1;a>=0;a--)(s=i[a])&&(o=(r<3?s(o):r>3?s(t,e,o):s(t,e))||o);return r>3&&o&&Object.defineProperty(t,e,o),o},Hs=function(i){zs(t,i);function t(e,n){n===void 0&&(n=null);var r=i.call(this)||this;return r.closeOnCompleteTimeout=0,n?r.surveyValue=n:r.surveyValue=r.createSurvey(e),r.surveyValue.fitToContainer=!0,r.windowElement=I.createElement("div"),r.survey.onComplete.add(function(o,s){r.onSurveyComplete()}),r.registerPropertyChangedHandlers(["isShowing"],function(){r.showingChangedCallback&&r.showingChangedCallback()}),r.registerPropertyChangedHandlers(["isExpanded"],function(){r.onExpandedChanged()}),r.width=new te(function(){return r.survey.width}),r.width=r.survey.width,r.updateCss(),r.onCreating(),r}return 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=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 n=e.header;n&&(this.setPropertyValue("cssHeaderRoot",n.root),this.setPropertyValue("cssHeaderTitleCollapsed",n.titleCollapsed),this.setPropertyValue("cssHeaderButtonsContainer",n.buttonsContainer),this.setPropertyValue("cssHeaderCollapseButton",n.collapseButton),this.setPropertyValue("cssHeaderCloseButton",n.closeButton),this.setPropertyValue("cssHeaderFullScreenButton",n.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 Ue(e)},t.prototype.onSurveyComplete=function(){if(!(this.closeOnCompleteTimeout<0))if(this.closeOnCompleteTimeout==0)this.hide();else{var e=this,n=null,r=function(){e.hide(),clearInterval(n)};n=setInterval(r,this.closeOnCompleteTimeout*1e3)}},t.prototype.onScroll=function(){this.survey.onScroll()},tf([h()],t.prototype,"width",void 0),t}(z),nf=function(i){zs(t,i);function t(){return i!==null&&i.apply(this,arguments)||this}return t}(Hs),rf=function(){var i=function(t,e){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(n[o]=r[o])},i(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");i(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),ci=function(i){rf(t,i);function t(e){var n=i.call(this,e)||this;return n.onScrollOutsideCallback=function(r){n.preventScrollOuside(r,r.deltaY)},n}return t.prototype.getStyleClass=function(){return i.prototype.getStyleClass.call(this).append("sv-popup--modal",!this.isOverlay)},t.prototype.getShowFooter=function(){return!0},t.prototype.createFooterActionBar=function(){var e=this;i.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(){e.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(e){(e.key==="Escape"||e.keyCode===27)&&this.model.onCancel(),i.prototype.onKeyDown.call(this,e)},t.prototype.updateOnShowing=function(){this.container&&this.container.addEventListener("wheel",this.onScrollOutsideCallback,{passive:!1}),i.prototype.updateOnShowing.call(this)},t.prototype.updateOnHiding=function(){this.container&&this.container.removeEventListener("wheel",this.onScrollOutsideCallback),i.prototype.updateOnHiding.call(this)},t}(_r),fi=function(){return fi=Object.assign||function(i){for(var t,e=1,n=arguments.length;e<n;e++){t=arguments[e];for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(i[r]=t[r])}return i},fi.apply(this,arguments)};function of(i,t){var e,n=fi({},i);n.verticalPosition="top",n.horizontalPosition="left",n.showPointer=!1,n.isModal=!0,n.displayMode=i.displayMode||"popup";var r=new Et(i.componentName,i.data,n);r.isFocusedContent=(e=i.isFocusedContent)!==null&&e!==void 0?e:!0;var o=new ci(r);if(t&&t.appendChild){var s=I.createElement("div");t.appendChild(s),o.setComponentElement(s)}o.container||o.initializePopupContainer();var a=function(l,u){u.isVisible||s&&o.resetComponentElement(),o.onVisibilityChanged.remove(a)};return o.onVisibilityChanged.add(a),o}function sf(i){return i.isModal?new ci(i):new kr(i)}var Us=function(){var i=function(t,e){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(n[o]=r[o])},i(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");i(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),pi=function(i,t,e,n){var r=arguments.length,o=r<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,e):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(i,t,e,n);else for(var a=i.length-1;a>=0;a--)(s=i[a])&&(o=(r<3?s(o):r>3?s(t,e,o):s(t,e))||o);return r>3&&o&&Object.defineProperty(t,e,o),o},Ws=function(i){Us(t,i);function t(e,n,r){n===void 0&&(n=null),r===void 0&&(r="buttongroupitemvalue");var o=i.call(this,e,n,r)||this;return o.typeName=r,o}return t.prototype.getType=function(){return this.typeName?this.typeName:"buttongroupitemvalue"},pi([h()],t.prototype,"iconName",void 0),pi([h()],t.prototype,"iconSize",void 0),pi([h()],t.prototype,"showCaption",void 0),t}(k),$s=function(i){Us(t,i);function t(e){return i.call(this,e)||this}return t.prototype.getType=function(){return"buttongroup"},t.prototype.getItemValueType=function(){return"buttongroupitemvalue"},t.prototype.supportOther=function(){return!1},t}(kt);x.addClass("buttongroup",[{name:"choices:buttongroupitemvalue[]"}],function(){return new $s("")},"checkboxbase"),x.addClass("buttongroupitemvalue",[{name:"showCaption:boolean",default:!0},{name:"iconName:text"},{name:"iconSize:number"}],function(i){return new Ws(i)},"itemvalue");var af=function(){function i(t,e,n){this.question=t,this.item=e,this.index=n}return Object.defineProperty(i.prototype,"value",{get:function(){return this.item.value},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"iconName",{get:function(){return this.item.iconName},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"iconSize",{get:function(){return this.item.iconSize||24},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"caption",{get:function(){return this.item.locText},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"showCaption",{get:function(){return this.item.showCaption||this.item.showCaption===void 0},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"isRequired",{get:function(){return this.question.isRequired},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"selected",{get:function(){return this.question.isItemSelected(this.item)},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"readOnly",{get:function(){return this.question.isInputReadOnly||!this.item.isEnabled},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"name",{get:function(){return this.question.name+"_"+this.question.id},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"id",{get:function(){return this.question.inputId+"_"+this.index},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"hasErrors",{get:function(){return this.question.errors.length>0},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"describedBy",{get:function(){return this.question.errors.length>0?this.question.id+"_errors":null},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"labelClass",{get:function(){return new O().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(i.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}),i.prototype.onChange=function(){this.question.renderedValue=this.item.value},i}(),lf=function(){var i=function(t,e){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(n[o]=r[o])},i(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");i(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),uf=function(i,t,e,n){var r=arguments.length,o=r<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,e):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(i,t,e,n);else for(var a=i.length-1;a>=0;a--)(s=i[a])&&(o=(r<3?s(o):r>3?s(t,e,o):s(t,e))||o);return r>3&&o&&Object.defineProperty(t,e,o),o},En=function(i){lf(t,i);function t(){return i!==null&&i.apply(this,arguments)||this}return t.prototype.getSurvey=function(e){return this.owner},t.prototype.getType=function(){return"masksettings"},t.prototype.setData=function(e){var n=this,r=x.getProperties(this.getType());r.forEach(function(o){var s=e[o.name];n[o.name]=s!==void 0?s:o.getDefaultValue(n)})},t.prototype.getData=function(){var e=this,n={},r=x.getProperties(this.getType());return r.forEach(function(o){var s=e[o.name];o.isDefaultValue(s)||(n[o.name]=s)}),n},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"},t.prototype.getTypeForExpressions=function(){return"text"},uf([h()],t.prototype,"saveMaskedValue",void 0),t}(z);x.addClass("masksettings",[{name:"saveMaskedValue:boolean",visibleIf:function(i){return i?i.getType()!=="masksettings":!1}}],function(){return new En});var cf=function(){var i=function(t,e){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(n[o]=r[o])},i(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");i(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),ff=function(i,t,e,n){var r=arguments.length,o=r<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,e):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(i,t,e,n);else for(var a=i.length-1;a>=0;a--)(s=i[a])&&(o=(r<3?s(o):r>3?s(t,e,o):s(t,e))||o);return r>3&&o&&Object.defineProperty(t,e,o),o};function di(i){for(var t=[],e=!1,n=Object.keys(b.maskSettings.patternDefinitions),r=0;r<i.length;r++){var o=i[r];o===b.maskSettings.patternEscapeChar?e=!0:e?(e=!1,t.push({type:"fixed",value:o})):t.push({type:n.indexOf(o)!==-1?"regex":"const",value:o})}return t}function pf(i,t,e){for(var n=b.maskSettings.patternDefinitions[e.value];t<i.length;){if(i[t].match(n))return t;t++}return t}function df(i,t,e){for(var n=i??"",r="",o=0,s=typeof t=="string"?di(t):t,a=0;a<s.length;a++)switch(s[a].type){case"regex":if(o<n.length&&(o=pf(n,o,s[a])),o<n.length)r+=n[o];else if(e)r+=b.maskSettings.patternPlaceholderChar;else return r;o++;break;case"const":case"fixed":r+=s[a].value,s[a].value===n[o]&&o++;break}return r}function hi(i,t,e,n){n===void 0&&(n=!1);var r="";if(!i)return r;for(var o=typeof t=="string"?di(t):t,s=0;s<o.length;s++)if(o[s].type==="fixed"&&!n&&(r+=o[s].value),o[s].type==="regex"){var a=b.maskSettings.patternDefinitions[o[s].value];if(i[s]&&i[s].match(a))r+=i[s];else if(e){r="";break}else break}return r}var gi=function(i){cf(t,i);function t(){var e=i!==null&&i.apply(this,arguments)||this;return e.literals=[],e}return t.prototype.updateLiterals=function(){this.literals=di(this.pattern||"")},t.prototype.onPropertyValueChanged=function(e,n,r){e==="pattern"&&this.updateLiterals()},t.prototype.getType=function(){return"patternmask"},t.prototype.fromJSON=function(e,n){i.prototype.fromJSON.call(this,e,n),this.updateLiterals()},t.prototype._getMaskedValue=function(e,n){n===void 0&&(n=!1);var r=e??"";return df(r,this.literals,n)},t.prototype._getUnmaskedValue=function(e,n){n===void 0&&(n=!1);var r=e??"";return hi(r,this.literals,n)},t.prototype.processInput=function(e){var n={value:e.prevValue,caretPosition:e.selectionEnd,cancelPreventDefault:!1};if(!e.insertedChars&&e.selectionStart===e.selectionEnd)return n;var r=e.prevValue.slice(0,e.selectionStart)+(e.insertedChars||""),o=hi(e.prevValue.slice(0,e.selectionStart),this.literals.slice(0,e.selectionStart),!1),s=hi(e.prevValue.slice(e.selectionEnd),this.literals.slice(e.selectionEnd),!1,!0);return n.value=this._getMaskedValue(o+(e.insertedChars||"")+s,!0),!e.insertedChars&&e.inputDirection==="backward"?n.caretPosition=e.selectionStart:n.caretPosition=this._getMaskedValue(r).length,n},t.prototype.getMaskedValue=function(e){return this._getMaskedValue(e,!0)},t.prototype.getUnmaskedValue=function(e){return this._getUnmaskedValue(e,!0)},ff([h()],t.prototype,"pattern",void 0),t}(En);x.addClass("patternmask",[{name:"pattern"}],function(){return new gi},"masksettings");var hf=function(){var i=function(t,e){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(n[o]=r[o])},i(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");i(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),Vt=function(i,t,e,n){var r=arguments.length,o=r<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,e):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(i,t,e,n);else for(var a=i.length-1;a>=0;a--)(s=i[a])&&(o=(r<3?s(o):r>3?s(t,e,o):s(t,e))||o);return r>3&&o&&Object.defineProperty(t,e,o),o};function gf(i,t,e){t===void 0&&(t=!0),e===void 0&&(e=3);var n=[];if(t){for(var r=i.length-e;r>-e;r-=e)n.push(i.substring(r,r+e));n=n.reverse()}else for(var r=0;r<i.length;r+=e)n.push(i.substring(r,r+e));return n}var yi=function(i){hf(t,i);function t(){return i!==null&&i.apply(this,arguments)||this}return t.prototype.calccaretPosition=function(e,n,r){for(var o=e?this.displayNumber(this.parseNumber(e),!1).length:0,s=0,a=n.selectionStart,l=!n.insertedChars&&n.inputDirection==="forward",u=0;u<r.length;u++){var d=r[u];if(d!==this.thousandsSeparator&&s++,s===o+(l?1:0)){l?a=u:a=u+1;break}}return a},t.prototype.numericalCompositionIsEmpty=function(e){return!e.integralPart&&!e.fractionalPart},t.prototype.displayNumber=function(e,n,r){n===void 0&&(n=!0),r===void 0&&(r=!1);var o=e.integralPart;n&&o&&(o=gf(o).join(this.thousandsSeparator));var s=e.fractionalPart,a=e.isNegative?"-":"";if(s===""){if(r)return!o||o==="0"?o:a+o;var l=e.hasDecimalSeparator&&!r?this.decimalSeparator:"",u=o+l;return u==="0"?u:a+u}else return o=o||"0",s=s.substring(0,this.precision),[a+o,s].join(this.decimalSeparator)},t.prototype.convertNumber=function(e){var n,r=e.isNegative?"-":"";return e.fractionalPart?n=parseFloat(r+(e.integralPart||"0")+"."+e.fractionalPart.substring(0,this.precision)):n=parseInt(r+e.integralPart||"0"),n},t.prototype.validateNumber=function(e,n){var r=this.min||Number.MIN_SAFE_INTEGER,o=this.max||Number.MAX_SAFE_INTEGER;if(this.numericalCompositionIsEmpty(e))return!0;if(this.min!==void 0||this.max!==void 0){var s=this.convertNumber(e);if(Number.isNaN(s)||s>=r&&s<=o)return!0;if(!n){if(!e.hasDecimalSeparator&&s!=0){var a=s,l=s;if(s>0){if(s+1>r&&s<=o)return!0;for(;a=a*10+9,l=l*10,!(l>o);)if(a>r)return!0;return!1}if(s<0){if(s>=r&&s-1<o)return!0;for(;a=a*10,l=l*10-9,!(a<r);)if(l<o)return!0;return!1}}else{var u=Math.pow(.1,(e.fractionalPart||"").length);if(s>=0)return s+u>r&&s<=o;if(s<0)return s>=r&&s-u<o}return s>=0&&s<=o||s<0&&s>=r}return!1}return!0},t.prototype.parseNumber=function(e){for(var n={integralPart:"",fractionalPart:"",hasDecimalSeparator:!1,isNegative:!1},r=e==null?"":e.toString(),o=0,s=0;s<r.length;s++){var a=r[s];switch(a){case"-":{this.allowNegativeValues&&(this.min===void 0||this.min<0)&&o++;break}case this.decimalSeparator:{this.precision>0&&(n.hasDecimalSeparator=!0);break}case this.thousandsSeparator:break;default:a.match(zr)&&(n.hasDecimalSeparator?n.fractionalPart+=a:n.integralPart+=a)}}return n.isNegative=o%2!==0,n.integralPart.length>1&&n.integralPart[0]==="0"&&(n.integralPart=n.integralPart.slice(1)),n},t.prototype.getNumberMaskedValue=function(e,n){n===void 0&&(n=!1);var r=this.parseNumber(e);if(!this.validateNumber(r,n))return null;var o=this.displayNumber(r,!0,n);return o},t.prototype.getNumberUnmaskedValue=function(e){var n=this.parseNumber(e);if(!this.numericalCompositionIsEmpty(n))return this.convertNumber(n)},t.prototype.getTextAlignment=function(){return"right"},t.prototype.getMaskedValue=function(e){var n=e==null?"":e.toString();return n=n.replace(".",this.decimalSeparator),this.getNumberMaskedValue(n,!0)},t.prototype.getUnmaskedValue=function(e){return this.getNumberUnmaskedValue(e)},t.prototype.processInput=function(e){var n={value:e.prevValue,caretPosition:e.selectionEnd,cancelPreventDefault:!1},r=e.prevValue.slice(0,e.selectionStart)+(e.insertedChars||""),o=e.prevValue.slice(e.selectionEnd),s=r+o,a=this.parseNumber(s);if(!this.validateNumber(a,!1))return n;var l=this.getNumberMaskedValue(s),u=this.calccaretPosition(r,e,l);return n.value=l,n.caretPosition=u,n},t.prototype.getType=function(){return"numericmask"},t.prototype.isPropertyEmpty=function(e){return e===""||e===void 0||e===null},Vt([h()],t.prototype,"allowNegativeValues",void 0),Vt([h()],t.prototype,"decimalSeparator",void 0),Vt([h()],t.prototype,"precision",void 0),Vt([h()],t.prototype,"thousandsSeparator",void 0),Vt([h()],t.prototype,"min",void 0),Vt([h()],t.prototype,"max",void 0),t}(En);x.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 yi},"masksettings");var yf=function(){var i=function(t,e){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(n[o]=r[o])},i(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");i(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),In=function(){return In=Object.assign||function(i){for(var t,e=1,n=arguments.length;e<n;e++){t=arguments[e];for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(i[r]=t[r])}return i},In.apply(this,arguments)},Js=function(i,t,e,n){var r=arguments.length,o=r<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,e):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(i,t,e,n);else for(var a=i.length-1;a>=0;a--)(s=i[a])&&(o=(r<3?s(o):r>3?s(t,e,o):s(t,e))||o);return r>3&&o&&Object.defineProperty(t,e,o),o};function Gs(i,t){switch(i){case"hour":case"minute":case"second":case"day":case"month":return 2;case"timeMarker":case"year":return t;default:return 1}}function mf(i,t){var e=t;return i.count<i.maxCount&&(i.type==="day"&&parseInt(t[0])===0||i.type==="month"&&parseInt(t[0])===0)&&(e=t.slice(1,t.length)),e}function vf(i){for(var t=[],e,n=function(s,a,l){if(l===void 0&&(l=!1),e&&e===s){t[t.length-1].count++;var u=Gs(s,t[t.length-1].count);t[t.length-1].maxCount=u}else{var u=Gs(s,1);t.push({type:s,value:a,count:1,maxCount:u,upperCase:l})}},r=0;r<i.length;r++){var o=i[r];switch(o){case"m":n("month",o);break;case"d":n("day",o);break;case"y":n("year",o);break;case"h":n("hour",o,!1);break;case"H":n("hour",o,!0);break;case"M":n("minute",o);break;case"s":n("second",o);break;case"t":n("timeMarker",o);break;case"T":n("timeMarker",o,!0);break;default:t.push({type:"separator",value:o,count:1,maxCount:1,upperCase:!1});break}e=t[t.length-1].type}return t}var Ks=function(i){yf(t,i);function t(){var e=i!==null&&i.apply(this,arguments)||this;return e.defaultDate="1970-01-01T",e.turnOfTheCentury=68,e.twelve=12,e.lexems=[],e.inputDateTimeData=[],e.validBeginningOfNumbers={hour:1,hourU:2,minute:5,second:5,day:3,month:1},e}return Object.defineProperty(t.prototype,"hasDatePart",{get:function(){return this.lexems.some(function(e){return e.type==="day"||e.type==="month"||e.type==="year"})},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hasTimePart",{get:function(){return this.lexems.some(function(e){return e.type==="hour"||e.type==="minute"||e.type==="second"})},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"is12Hours",{get:function(){return this.lexems.filter(function(e){return e.type==="hour"&&!e.upperCase}).length>0},enumerable:!1,configurable:!0}),t.prototype.getType=function(){return"datetimemask"},t.prototype.getTypeForExpressions=function(){return this.hasTimePart?"datetime-local":"datetime"},t.prototype.updateLiterals=function(){this.lexems=vf(this.pattern||"")},t.prototype.leaveOnlyNumbers=function(e){for(var n="",r=0;r<e.length;r++)e[r].match(zr)&&(n+=e[r]);return n},t.prototype.getMaskedStrFromISO=function(e){var n=this,r=new Date(e);return this.initInputDateTimeData(),this.hasTimePart||(r=new Date(e+"T00:00:00")),this.hasDatePart||(r=new Date(this.defaultDate+e)),isNaN(r)||this.lexems.forEach(function(o,s){var a=n.inputDateTimeData[s];switch(a.isCompleted=!0,o.type){case"hour":{n.is12Hours?a.value=((r.getHours()-1)%n.twelve+1).toString():a.value=r.getHours().toString();break}case"minute":{a.value=r.getMinutes().toString();break}case"second":{a.value=r.getSeconds().toString();break}case"timeMarker":{var l=r.getHours()>=n.twelve?"pm":"am";a.value=o.upperCase?l.toUpperCase():l;break}case"day":{a.value=r.getDate().toString();break}case"month":{a.value=(r.getMonth()+1).toString();break}case"year":{var u=r.getFullYear();o.count==2&&(u=u%100),a.value=u.toString();break}}}),this.getFormatedString(!0)},t.prototype.initInputDateTimeData=function(){var e=this;this.inputDateTimeData=[],this.lexems.forEach(function(n){e.inputDateTimeData.push({lexem:n,isCompleted:!1,value:void 0})})},t.prototype.getISO_8601Format=function(e){var n=[],r=[];if(e.year!==void 0){var o=this.getPlaceholder(4,e.year.toString(),"0")+e.year;n.push(o)}if(e.month!==void 0&&e.year!==void 0){var s=this.getPlaceholder(2,e.month.toString(),"0")+e.month;n.push(s)}if(e.day!==void 0&&e.month!==void 0&&e.year!==void 0){var a=this.getPlaceholder(2,e.day.toString(),"0")+e.day;n.push(a)}if(e.hour!==void 0){var l=this.getPlaceholder(2,e.hour.toString(),"0")+e.hour;r.push(l)}if(e.minute!==void 0&&e.hour!==void 0){var u=this.getPlaceholder(2,e.minute.toString(),"0")+e.minute;r.push(u)}if(e.second!==void 0&&e.minute!==void 0&&e.hour!==void 0){var d=this.getPlaceholder(2,e.second.toString(),"0")+e.second;r.push(d)}var v=[];return n.length>0&&v.push(n.join("-")),r.length>1&&v.push(r.join(":")),v.join("T")},t.prototype.isYearValid=function(e){if(e.min===void 0&&e.max===void 0)return!1;var n=e.year.toString(),r=e.min.toISOString().slice(0,n.length),o=e.max.toISOString().slice(0,n.length);return e.year>=parseInt(r)&&e.year<=parseInt(o)},t.prototype.createIDateTimeCompositionWithDefaults=function(e,n){var r=e.day==29&&e.month==2,o=e.min.getFullYear(),s=e.max.getFullYear();r&&(o=Math.ceil(o/4)*4,s=Math.floor(o/4)*4,o>s&&(o=void 0,s=void 0));var a=e.year!==void 0?e.year:n?s:o,l=e.month!==void 0?e.month:n&&this.hasDatePart?12:1,u=e.day!==void 0?e.day:n&&this.hasDatePart?this.getMaxDateForMonth(a,l):1,d=e.hour!==void 0?e.hour:n?23:0,v=e.minute!==void 0?e.minute:n?59:0,V=e.second!==void 0?e.second:n?59:0;return{year:a,month:l,day:u,hour:d,minute:v,second:V}},t.prototype.getMaxDateForMonth=function(e,n){return n==2?e%4==0&&e%100!=0||e%400?29:28:[31,28,31,30,31,30,31,31,30,31,30,31][n-1]},t.prototype.isDateValid=function(e){var n=new Date(this.getISO_8601Format(this.createIDateTimeCompositionWithDefaults(e,!1))),r=new Date(this.getISO_8601Format(this.createIDateTimeCompositionWithDefaults(e,!0)));return!isNaN(n)&&(n.getDate()===e.day||e.day===void 0)&&(n.getMonth()===e.month-1||e.month===void 0)&&(n.getFullYear()===e.year||e.year===void 0)&&r>=e.min&&n<=e.max},t.prototype.getPlaceholder=function(e,n,r){var o=e-(n||"").length,s=o>0?r.repeat(o):"";return s},t.prototype.isDateValid12=function(e){return this.is12Hours?this.is12Hours&&e.hour>this.twelve?!1:e.timeMarker?e.timeMarker[0].toLowerCase()==="p"?(e.hour!==this.twelve&&(e.hour+=this.twelve),this.isDateValid(e)):(e.hour===this.twelve&&(e.hour=0),this.isDateValid(e)):this.isDateValid(e)?!0:(e.hour+=this.twelve,this.isDateValid(e)):this.isDateValid(e)},t.prototype.updateTimeMarkerInputDateTimeData=function(e,n){var r=e.value;if(r){var o="timeMarker",s=In({},n);s[o]=r,this.isDateValid12(s)?e.isCompleted=!0:r=r.slice(0,r.length-1),e.value=r||void 0,n[o]=r||void 0}},t.prototype.updateInputDateTimeData=function(e,n){var r=e.value;if(r){var o=e.lexem.type,s=In({},n);if(s[o]=parseInt(this.parseTwoDigitYear(e)),r.length===e.lexem.maxCount)if(this.isDateValid12(s)){e.isCompleted=!0,e.value=r||void 0,n[o]=parseInt(r)>0?parseInt(r):void 0;return}else r=r.slice(0,r.length-1);s[o]=parseInt(r);var a=parseInt(r[0]),l=this.validBeginningOfNumbers[o+(e.lexem.upperCase?"U":"")];o==="year"&&!this.isYearValid(s)?(r=r.slice(0,r.length-1),e.isCompleted=!1):l!==void 0&&a>l?this.isDateValid12(s)?e.isCompleted=!0:r=r.slice(0,r.length-1):l!==void 0&&a!==0&&a<=l&&(this.checkValidationDateTimePart(s,o,e),e.isCompleted&&!this.isDateValid12(s)&&(r=r.slice(0,r.length-1))),e.value=r||void 0,n[o]=parseInt(r)>0?parseInt(r):void 0}},t.prototype.checkValidationDateTimePart=function(e,n,r){var o=e[n],s=o*10,a=10;n==="month"&&(a=3),n==="hour"&&(a=this.is12Hours?3:5),r.isCompleted=!0;for(var l=0;l<a;l++)if(e[n]=s+l,this.isDateValid12(e)){r.isCompleted=!1;break}e[n]=o},t.prototype.getCorrectDatePartFormat=function(e,n){var r=e.lexem,o=e.value||"";if(o&&r.type==="timeMarker")return n&&(o=o+this.getPlaceholder(r.count,o,r.value)),o;if(o&&e.isCompleted&&(o=parseInt(o).toString()),o&&e.isCompleted){var s=this.getPlaceholder(r.count,o,"0");o=s+o}else o=mf(r,o),n&&(o+=this.getPlaceholder(r.count,o,r.value));return o},t.prototype.createIDateTimeComposition=function(){var e,n;this.hasDatePart?(e=this.min||"0001-01-01",n=this.max||"9999-12-31"):(e=this.defaultDate+(this.min||"00:00:00"),n=this.defaultDate+(this.max||"23:59:59"));var r={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(n)};return r},t.prototype.parseTwoDigitYear=function(e){var n=e.value;if(e.lexem.type!=="year"||e.lexem.count>2)return n;this.max&&this.max.length>=4&&(this.turnOfTheCentury=parseInt(this.max.slice(2,4)));var r=parseInt(n),o=(r>this.turnOfTheCentury?"19":"20")+n;return o},t.prototype.getFormatedString=function(e){var n="",r="",o=!1,s=this.inputDateTimeData.length-1;if(!e){var a=this.inputDateTimeData.filter(function(V){return!!V.value});s=this.inputDateTimeData.indexOf(a[a.length-1])}for(var l=0;l<this.inputDateTimeData.length;l++){var u=this.inputDateTimeData[l];switch(u.lexem.type){case"timeMarker":case"hour":case"minute":case"second":case"day":case"month":case"year":if(u.value===void 0&&!e)return n+=o?r:"",n;var d=e||s>l,v=this.getCorrectDatePartFormat(u,d);n+=r+v,o=u.isCompleted;break;case"separator":r=u.lexem.value;break}}return n},t.prototype.cleanTimeMarker=function(e,n){var r="";e=e.toUpperCase();for(var o=0;o<e.length;o++)(!r&&(e[o]=="P"||e[o]=="A")||r&&e[o]=="M")&&(r+=e[o]);return n?r=r.toUpperCase():r=r.toLowerCase(),r},t.prototype.setInputDateTimeData=function(e){var n=this,r=0;this.initInputDateTimeData(),this.lexems.forEach(function(o,s){if(e.length>0&&r<e.length){if(o.type==="separator")return;var a=n.inputDateTimeData[s],l=e[r],u=void 0;o.type==="timeMarker"?u=n.cleanTimeMarker(l,o.upperCase):u=n.leaveOnlyNumbers(l),a.value=u.slice(0,o.maxCount),r++}})},t.prototype._getMaskedValue=function(e,n){var r=this;n===void 0&&(n=!0);var o=e==null?"":e.toString(),s=this.getParts(o);this.setInputDateTimeData(s);var a=this.createIDateTimeComposition();this.inputDateTimeData.forEach(function(u){u.lexem.type==="timeMarker"?r.updateTimeMarkerInputDateTimeData(u,a):r.updateInputDateTimeData(u,a)});var l=this.getFormatedString(n);return l},t.prototype.getParts=function(e){for(var n=[],r=this.lexems.filter(function(v){return v.type!=="separator"}),o=this.lexems.filter(function(v){return v.type==="separator"}).map(function(v){return v.value}),s="",a=!1,l=!1,u=0;u<e.length;u++){var d=e[u];if(d.match(zr)||d===r[n.length].value||r[n.length].type==="timeMarker"?(a=!1,l=!1,s+=d):o.indexOf(d)!==-1?l||(a=!0,n.push(s),s=""):a||(l=!0,n.push(s),s=""),n.length>=r.length){a=!1;break}}return(s!=""||a)&&n.push(s),n},t.prototype.getUnmaskedValue=function(e){var n=this,r,o=e==null?"":e.toString(),s=this.getParts(o);this.setInputDateTimeData(s);var a=(r=this.inputDateTimeData.filter(function(d){return d.lexem.type==="timeMarker"})[0])===null||r===void 0?void 0:r.value.toLowerCase()[0],l=this.createIDateTimeComposition(),u=!1;return this.inputDateTimeData.forEach(function(d){var v=d.value;if(!(d.lexem.type=="timeMarker"||d.lexem.type=="separator")){if(!v||v.length<d.lexem.count){u=!0;return}var V=parseInt(n.parseTwoDigitYear(d));d.lexem.type=="hour"&&a==="p"&&V!=n.twelve&&(V+=n.twelve),l[d.lexem.type]=V}}),u?"":this.getISO_8601Format(l)},t.prototype.getMaskedValue=function(e){return this.getMaskedStrFromISO(e)},t.prototype.processInput=function(e){var n={value:e.prevValue,caretPosition:e.selectionEnd,cancelPreventDefault:!1},r=e.prevValue.slice(0,e.selectionStart),o=e.prevValue.slice(e.selectionEnd);return n.value=this._getMaskedValue(r+(e.insertedChars||"")+o),!e.insertedChars&&e.inputDirection==="backward"?n.caretPosition=e.selectionStart:n.caretPosition=this._getMaskedValue(r+(e.insertedChars||""),!1).length,n},Js([h()],t.prototype,"min",void 0),Js([h()],t.prototype,"max",void 0),t}(gi);x.addClass("datetimemask",[{name:"min",type:"datetime",enableIf:function(i){return!!i.pattern}},{name:"max",type:"datetime",enableIf:function(i){return!!i.pattern}}],function(){return new Ks},"patternmask");var bf=function(){var i=function(t,e){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(n[o]=r[o])},i(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");i(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),Ys=function(i,t,e,n){var r=arguments.length,o=r<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,e):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(i,t,e,n);else for(var a=i.length-1;a>=0;a--)(s=i[a])&&(o=(r<3?s(o):r>3?s(t,e,o):s(t,e))||o);return r>3&&o&&Object.defineProperty(t,e,o),o},Xs=function(i){bf(t,i);function t(){return i!==null&&i.apply(this,arguments)||this}return t.prototype.getType=function(){return"currencymask"},t.prototype.wrapText=function(e){var n=this.prefix||"",r=this.suffix||"",o=e;return o&&(o.indexOf(n)===-1&&(o=n+o),o.indexOf(r)===-1&&(o+=r),o)},t.prototype.unwrapInputArgs=function(e){var n=e.prevValue;if(n){if(this.prefix&&n.indexOf(this.prefix)!==-1){n=n.slice(n.indexOf(this.prefix)+this.prefix.length);var r=(this.prefix||"").length;e.selectionStart=Math.max(e.selectionStart-r,0),e.selectionEnd-=r}this.suffix&&n.indexOf(this.suffix)!==-1&&(n=n.slice(0,n.indexOf(this.suffix))),e.prevValue=n}},t.prototype.processInput=function(e){this.unwrapInputArgs(e);var n=i.prototype.processInput.call(this,e),r=(this.prefix||"").length;return n.value&&(n.caretPosition+=r),n.value=this.wrapText(n.value),n},t.prototype.getMaskedValue=function(e){var n=i.prototype.getMaskedValue.call(this,e);return this.wrapText(n)},Ys([h()],t.prototype,"prefix",void 0),Ys([h()],t.prototype,"suffix",void 0),t}(yi);x.addClass("currencymask",[{name:"prefix"},{name:"suffix"}],function(){return new Xs},"numericmask");var Wt,mi;Wt="1.12.20",b.version=Wt,mi="2025-01-21";function Cf(i,t){if(Wt!=i){var e="survey-core has version '"+Wt+"' and "+t+" has version '"+i+"'. SurveyJS libraries should have the same versions to work correctly.";console.error(e)}}function Pf(i){Zs(i)}function Zs(i){wf(i,ea,mi)}function Vf(i){return ea[i.toString()]===!0}var ea={};function wf(i,t,e){if(i){var n=function(s){var a={},l,u=0,d,v=0,V,T="",R=String.fromCharCode,N=s.length,j="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";for(l=0;l<64;l++)a[j.charAt(l)]=l;for(d=0;d<N;d++){var A=a[s.charAt(d)];for(u=(u<<6)+A,v+=6;v>=8;)((V=u>>>(v-=8)&255)||d<N-2)&&(T+=R(V))}return T},r=n(i);if(r){var o=r.indexOf(";");o<0||xf(r.substring(0,o))&&(r=r.substring(o+1),r.split(",").forEach(function(s){var a=s.indexOf("=");a>0&&(t[s.substring(0,a)]=new Date(e)<=new Date(s.substring(a+1)))}))}}}function xf(i){if(!i)return!0;var t="domains:",e=i.indexOf(t);if(e<0)return!0;var n=i.substring(e+t.length).toLowerCase().split(",");if(!Array.isArray(n)||n.length===0)return!0;var r=E.getLocation();if(r&&r.hostname){var o=r.hostname.toLowerCase();n.push("localhost");for(var s=0;s<n.length;s++)if(o.indexOf(n[s])>-1)return!0;return!1}return!0}var Of={"$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"},Sf={"$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"},Tf={"$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"},Rf={"$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"},Ef={"$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"},If={"$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"},Af={"$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"},Df={"$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"};function Lf(i,t){Object.keys(i||{}).forEach(function(e){var n=e.substring(1);t.style.setProperty("--"+n,i[e])})}var ta=function(){function i(){i.autoApplyTheme()}return i.autoApplyTheme=function(){if(!(se.currentType==="bootstrap"||se.currentType==="bootstrapmaterial")){var t=i.getIncludedThemeCss();t.length===1&&i.applyTheme(t[0].name)}},i.getAvailableThemes=function(){var t=se.getAvailableThemes().filter(function(e){return["defaultV2","default","modern"].indexOf(e)!==-1}).map(function(e){return{name:e,theme:se[e]}});return t},i.getIncludedThemeCss=function(){if(typeof b.environment>"u")return[];var t=b.environment.rootElement,e=i.getAvailableThemes(),n=Lt(t)?t.host:t;if(n){var r=getComputedStyle(n);if(r.length)return e.filter(function(o){return o.theme.variables&&r.getPropertyValue(o.theme.variables.themeMark)})}return[]},i.findSheet=function(t){if(typeof b.environment>"u")return null;for(var e=b.environment.root.styleSheets,n=0;n<e.length;n++)if(e[n].ownerNode&&e[n].ownerNode.id===t)return e[n];return null},i.createSheet=function(t){var e=b.environment.stylesSheetsMountContainer,n=I.createElement("style");return n.id=t,n.appendChild(new Text("")),Zn(e).appendChild(n),i.Logger&&i.Logger.log("style sheet "+t+" created"),n.sheet},i.applyTheme=function(t,e){if(t===void 0&&(t="default"),!(typeof b.environment>"u")){var n=b.environment.rootElement,r=Lt(n)?n.host:n;if(se.currentType=t,i.Enabled){if(t!=="bootstrap"&&t!=="bootstrapmaterial"){Lf(i.ThemeColors[t],r),i.Logger&&i.Logger.log("apply theme "+t+" completed");return}var o=i.ThemeCss[t];if(!o){se.currentType="defaultV2";return}i.insertStylesRulesIntoDocument();var s=e||i.ThemeSelector[t]||i.ThemeSelector.default,a=(t+s).trim(),l=i.findSheet(a);if(!l){l=i.createSheet(a);var u=i.ThemeColors[t]||i.ThemeColors.default;Object.keys(o).forEach(function(d){var v=o[d];Object.keys(u||{}).forEach(function(V){return v=v.replace(new RegExp("\\"+V,"g"),u[V])});try{d.indexOf("body")===0?l.insertRule(d+" { "+v+" }",0):l.insertRule(s+d+" { "+v+" }",0)}catch{}})}}i.Logger&&i.Logger.log("apply theme "+t+" completed")}},i.insertStylesRulesIntoDocument=function(){if(i.Enabled){var t=i.findSheet(i.SurveyJSStylesSheetId);t||(t=i.createSheet(i.SurveyJSStylesSheetId)),Object.keys(i.Styles).length&&Object.keys(i.Styles).forEach(function(e){try{t.insertRule(e+" { "+i.Styles[e]+" }",0)}catch{}}),Object.keys(i.Media).length&&Object.keys(i.Media).forEach(function(e){try{t.insertRule(i.Media[e].media+" { "+e+" { "+i.Media[e].style+" } }",0)}catch{}})}},i.SurveyJSStylesSheetId="surveyjs-styles",i.Styles={},i.Media={},i.ThemeColors={modern:Of,default:Sf,orange:Tf,darkblue:Rf,darkrose:Ef,stone:If,winter:Af,winterstone:Df},i.ThemeCss={},i.ThemeSelector={default:".sv_main ",modern:".sv-root-modern "},i.Enabled=!0,i}();Ue.prototype.onBeforeRunConstructor=function(){E.isAvailable()&&ta.autoApplyTheme()};var Xe={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",titleExpandableSvg:"sd-element__title-expandable-svg",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",titleExpandableSvg:"sd-element__title-expandable-svg",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",rootSelectToRankSwapAreas:"sv-ranking--select-to-rank-swap-areas",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:"sv_matrix_dynamic_button--add",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",draggedRow:"sv-matrixdynamic-dragged-row"},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"}};se.default=Xe,se.orange=Xe,se.darkblue=Xe,se.darkrose=Xe,se.stone=Xe,se.winter=Xe,se.winterstone=Xe;var na={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",titleExpandableSvg:"sd-element__title-expandable-svg",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",number:"sv-page__num",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",titleExpandableSvg:"sd-element__title-expandable-svg",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",rootSelectToRankSwapAreas:"sv-ranking--select-to-rank-swap-areas",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",draggedRow:"sv-matrixdynamic-dragged-row"},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"}};se.modern=na;var ra=function(){function i(){this.icons={},this.iconPrefix="icon-",this.onIconsChanged=new Ve}return i.prototype.processId=function(t,e){return t.indexOf(e)==0&&(t=t.substring(e.length)),t=nr[t]||t,t},i.prototype.registerIconFromSymbol=function(t,e){this.icons[t]=e},i.prototype.registerIconFromSvgViaElement=function(t,e,n){if(n===void 0&&(n=this.iconPrefix),!!I.isAvailable()){t=this.processId(t,n);var r=I.createElement("div");r.innerHTML=e;var o=I.createElement("symbol"),s=r.querySelector("svg");o.innerHTML=s.innerHTML;for(var a=0;a<s.attributes.length;a++)o.setAttributeNS("http://www.w3.org/2000/svg",s.attributes[a].name,s.attributes[a].value);o.id=n+t,this.registerIconFromSymbol(t,o.outerHTML)}},i.prototype.registerIconFromSvg=function(t,e,n){n===void 0&&(n=this.iconPrefix),t=this.processId(t,n);var r="<svg ",o="</svg>";e=e.trim();var s=e.toLowerCase();return s.substring(0,r.length)===r&&s.substring(s.length-o.length,s.length)===o?(this.registerIconFromSymbol(t,'<symbol id="'+n+t+'" '+e.substring(r.length,s.length-o.length)+"</symbol>"),!0):!1},i.prototype.registerIconsFromFolder=function(t){var e=this;t.keys().forEach(function(n){e.registerIconFromSvg(n.substring(2,n.length-4).toLowerCase(),t(n))})},i.prototype.registerIcons=function(t){for(var e in t)this.registerIconFromSvg(e,t[e]);this.updateMarkup()},i.prototype.iconsRenderedHtml=function(){var t=this;return Object.keys(this.icons).map(function(e){return t.icons[e]}).join("")},i.prototype.updateMarkup=function(){this.onIconsChanged.fire(this,{})},i}(),Mf=new ra,An={};function jf(i,t){An[i]||(An[i]={});var e=An[i];for(var n in t)e[n]=t[n]}}})})}(jn)),jn.exports}var oh=ih();const sh=nh({__proto__:null},[oh]);export{oh as a,ih as r,sh as s}; diff --git a/compendium_v2/static/third-party-licenses.txt b/compendium_v2/static/third-party-licenses.txt index 8b9385ac..7a76b720 100644 --- a/compendium_v2/static/third-party-licenses.txt +++ b/compendium_v2/static/third-party-licenses.txt @@ -139,7 +139,7 @@ SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. --- Name: react-router -Version: 7.1.3 +Version: 7.1.5 License: MIT Private: false Description: Declarative routing for React @@ -245,7 +245,7 @@ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. --- Name: react-bootstrap -Version: 2.10.8 +Version: 2.10.9 License: MIT Private: false Description: Bootstrap 5 components built with React @@ -392,7 +392,7 @@ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. --- Name: @restart/ui -Version: 1.9.3 +Version: 1.9.4 License: MIT Private: false Description: Utilities for creating robust overlay components @@ -1279,7 +1279,7 @@ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLI --- Name: survey-react-ui -Version: 1.12.20 +Version: 1.12.23 License: MIT Private: false Description: survey.js is a JavaScript Survey Library. It is a modern way to add a survey to your website. It uses JSON for survey metadata and results. @@ -1357,7 +1357,7 @@ SOFTWARE. --- Name: survey-core -Version: 1.12.20 +Version: 1.12.23 License: MIT Private: false Description: survey.js is a JavaScript Survey Library. It is a modern way to add a survey to your website. It uses JSON for survey metadata and results. -- GitLab