diff --git a/compendium-frontend/bun.lock b/compendium-frontend/bun.lock index 1583be58ea7837e608ffd142bd858f87258874c6..97deba23b1331a1b745c1b9019669a14f3f4846b 100644 --- a/compendium-frontend/bun.lock +++ b/compendium-frontend/bun.lock @@ -5,9 +5,9 @@ "name": "compendium-v2", "dependencies": { "bootstrap": "~5.3.3", - "bun-types": "~1.2.2", + "bun-types": "~1.2.3", "cartesian-product-multiple-arrays": "~1.0.9", - "chart.js": "~4.4.7", + "chart.js": "~4.4.8", "chartjs-plugin-datalabels": "~2.2.0", "html-to-image": "~1.11.13", "lodash": "~4.17.21", @@ -16,31 +16,31 @@ "react-chartjs-2": "~5.3.0", "react-dom": "~19.0.0", "react-hot-toast": "~2.5.2", - "react-icons": "~5.4.0", - "react-router-dom": "~7.1.5", - "survey-core": "~1.12.23", - "survey-react-ui": "~1.12.23", + "react-icons": "~5.5.0", + "react-router-dom": "~7.2.0", + "survey-core": "~1.12.24", + "survey-react-ui": "~1.12.24", "xlsx": "~0.18.5", }, "devDependencies": { - "@eslint/compat": "~1.2.6", - "@eslint/eslintrc": "~3.2.0", - "@eslint/js": "~9.20.0", + "@eslint/compat": "~1.2.7", + "@eslint/eslintrc": "~3.3.0", + "@eslint/js": "~9.21.0", "@types/react": "~19.0.10", "@types/react-dom": "~19.0.4", "@types/react-router-dom": "~5.3.3", - "@typescript-eslint/eslint-plugin": "~8.24.0", - "@typescript-eslint/parser": "~8.24.0", + "@typescript-eslint/eslint-plugin": "~8.24.1", + "@typescript-eslint/parser": "~8.24.1", "@vitejs/plugin-react": "~4.3.4", - "babel-plugin-react-compiler": "~19.0.0-beta-e552027-20250112", - "eslint": "~9.20.1", + "babel-plugin-react-compiler": "~19.0.0-beta-e1e972c-20250221", + "eslint": "~9.21.0", "eslint-plugin-react": "~7.37.4", - "eslint-plugin-react-compiler": "^19.0.0-beta-e552027-20250112", + "eslint-plugin-react-compiler": "^19.0.0-beta-e1e972c-20250221", "eslint-plugin-react-hooks": "~5.1.0", - "rollup-plugin-license": "~3.5.3", + "rollup-plugin-license": "~3.6.0", "sass": "^1.85.0", "typescript": "~5.7.3", - "vite": "~6.1.0", + "vite": "~6.1.1", }, }, }, @@ -153,19 +153,19 @@ "@eslint-community/regexpp": ["@eslint-community/regexpp@4.12.1", "", {}, "sha512-CCZCDJuduB9OUkFkY2IgppNZMi2lBQgD2qzwXkEia16cge2pijY/aXi96CJMquDMn3nJdlPV1A5KrJEXwfLNzQ=="], - "@eslint/compat": ["@eslint/compat@1.2.6", "", { "peerDependencies": { "eslint": "^9.10.0" }, "optionalPeers": ["eslint"] }, "sha512-k7HNCqApoDHM6XzT30zGoETj+D+uUcZUb+IVAJmar3u6bvHf7hhHJcWx09QHj4/a2qrKZMWU0E16tvkiAdv06Q=="], + "@eslint/compat": ["@eslint/compat@1.2.7", "", { "peerDependencies": { "eslint": "^9.10.0" }, "optionalPeers": ["eslint"] }, "sha512-xvv7hJE32yhegJ8xNAnb62ggiAwTYHBpUCWhRxEj/ksvgDJuSXfoDkBcRYaYNFiJ+jH0IE3K16hd+xXzhBgNbg=="], "@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.11.0", "", { "dependencies": { "@types/json-schema": "^7.0.15" } }, "sha512-DWUB2pksgNEb6Bz2fggIy1wh6fGgZP4Xyy/Mt0QZPiloKKXerbqq9D3SBQTlCRYOrcRPu4vuz+CGjwdfqxnoWA=="], + "@eslint/core": ["@eslint/core@0.12.0", "", { "dependencies": { "@types/json-schema": "^7.0.15" } }, "sha512-cmrR6pytBuSMTaBweKoGMwu3EiHiEC+DoyupPmlZ0HxBJBtIxwe+j/E4XPIKNx+Q74c8lXKPwYawBf5glsTkHg=="], - "@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/eslintrc": ["@eslint/eslintrc@3.3.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-yaVPAiNAalnCZedKLdR21GOGILMLKPyqSLWaAjQFvYA2i/ciDi8ArYVr69Anohb6cH2Ukhqti4aFnYyPm8wdwQ=="], - "@eslint/js": ["@eslint/js@9.20.0", "", {}, "sha512-iZA07H9io9Wn836aVTytRaNqh00Sad+EamwOVJT12GTLw1VGMFV/4JaME+JjLtr9fiGaoWgYnS54wrfWsSs4oQ=="], + "@eslint/js": ["@eslint/js@9.21.0", "", {}, "sha512-BqStZ3HX8Yz6LvsF5ByXYrtigrV5AXADWLAGc7PH/1SxOb7/FIYYMszZZWiUou/GB9P2lXWk2SV4d+Z8h0nknw=="], "@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=="], + "@eslint/plugin-kit": ["@eslint/plugin-kit@0.2.7", "", { "dependencies": { "@eslint/core": "^0.12.0", "levn": "^0.4.1" } }, "sha512-JubJ5B2pJ4k4yGxaNLdbjrnk9d/iDz6/q8wOilpIowd6PJPgaxCuHBnBszq7Ce2TyMrywm5r4PnKm6V3iiZF+g=="], "@humanfs/core": ["@humanfs/core@0.19.1", "", {}, "sha512-5DyQ4+1JEUzejeK1JGICcideyfUbGixgS9jNgex5nqkW+cY7WZhxBigmieN5Qnw9ZosSNVC9KQKyb+GUaGyKUA=="], @@ -173,7 +173,7 @@ "@humanwhocodes/module-importer": ["@humanwhocodes/module-importer@1.0.1", "", {}, "sha512-bxveV4V8v5Yb4ncFTT3rPSgZBOpCkjfK0y4oVVVJwIuDVBRMDXrPyXRL988i5ap9m9bnyEEjWfm5WkBmtffLfA=="], - "@humanwhocodes/retry": ["@humanwhocodes/retry@0.4.1", "", {}, "sha512-c7hNEllBlenFTHBky65mhq8WD2kbN9Q6gk0bTk8lSBvc554jpXSkST1iePudpt7+A/AQvuHs9EMqjHDXMY1lrA=="], + "@humanwhocodes/retry": ["@humanwhocodes/retry@0.4.2", "", {}, "sha512-xeO57FpIu4p1Ri3Jq/EXq4ClRm86dVF2z/+kvFnyqVYRavTZmaFaUBbWCOuuTh0o/g7DSsk6kc2vrS4Vl5oPOQ=="], "@jridgewell/gen-mapping": ["@jridgewell/gen-mapping@0.3.5", "", { "dependencies": { "@jridgewell/set-array": "^1.2.1", "@jridgewell/sourcemap-codec": "^1.4.10", "@jridgewell/trace-mapping": "^0.3.24" } }, "sha512-IzL8ZoEDIBRWEzlCcRhOaCupYyN5gdIK+Q6fbFdPDg6HqX6jpkItn7DFIpW9LQzXG6Df9sA7+OKnq0qlz/GaQg=="], @@ -303,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.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/eslint-plugin": ["@typescript-eslint/eslint-plugin@8.24.1", "", { "dependencies": { "@eslint-community/regexpp": "^4.10.0", "@typescript-eslint/scope-manager": "8.24.1", "@typescript-eslint/type-utils": "8.24.1", "@typescript-eslint/utils": "8.24.1", "@typescript-eslint/visitor-keys": "8.24.1", "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-ll1StnKtBigWIGqvYDVuDmXJHVH4zLVot1yQ4fJtLpL7qacwkxJc1T0bptqw+miBQ/QfUbhl1TcQ4accW5KUyA=="], - "@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/parser": ["@typescript-eslint/parser@8.24.1", "", { "dependencies": { "@typescript-eslint/scope-manager": "8.24.1", "@typescript-eslint/types": "8.24.1", "@typescript-eslint/typescript-estree": "8.24.1", "@typescript-eslint/visitor-keys": "8.24.1", "debug": "^4.3.4" }, "peerDependencies": { "eslint": "^8.57.0 || ^9.0.0", "typescript": ">=4.8.4 <5.8.0" } }, "sha512-Tqoa05bu+t5s8CTZFaGpCH2ub3QeT9YDkXbPd3uQ4SfsLoh1/vv2GEYAioPoxCWJJNsenXlC88tRjwoHNts1oQ=="], - "@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/scope-manager": ["@typescript-eslint/scope-manager@8.24.1", "", { "dependencies": { "@typescript-eslint/types": "8.24.1", "@typescript-eslint/visitor-keys": "8.24.1" } }, "sha512-OdQr6BNBzwRjNEXMQyaGyZzgg7wzjYKfX2ZBV3E04hUCBDv3GQCHiz9RpqdUIiVrMgJGkXm3tcEh4vFSHreS2Q=="], - "@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/type-utils": ["@typescript-eslint/type-utils@8.24.1", "", { "dependencies": { "@typescript-eslint/typescript-estree": "8.24.1", "@typescript-eslint/utils": "8.24.1", "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-/Do9fmNgCsQ+K4rCz0STI7lYB4phTtEXqqCAs3gZW0pnK7lWNkvWd5iW545GSmApm4AzmQXmSqXPO565B4WVrw=="], - "@typescript-eslint/types": ["@typescript-eslint/types@8.24.0", "", {}, "sha512-VacJCBTyje7HGAw7xp11q439A+zeGG0p0/p2zsZwpnMzjPB5WteaWqt4g2iysgGFafrqvyLWqq6ZPZAOCoefCw=="], + "@typescript-eslint/types": ["@typescript-eslint/types@8.24.1", "", {}, "sha512-9kqJ+2DkUXiuhoiYIUvIYjGcwle8pcPpdlfkemGvTObzgmYfJ5d0Qm6jwb4NBXP9W1I5tss0VIAnWFumz3mC5A=="], - "@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/typescript-estree": ["@typescript-eslint/typescript-estree@8.24.1", "", { "dependencies": { "@typescript-eslint/types": "8.24.1", "@typescript-eslint/visitor-keys": "8.24.1", "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-UPyy4MJ/0RE648DSKQe9g0VDSehPINiejjA6ElqnFaFIhI6ZEiZAkUI0D5MCk0bQcTf/LVqZStvQ6K4lPn/BRg=="], - "@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/utils": ["@typescript-eslint/utils@8.24.1", "", { "dependencies": { "@eslint-community/eslint-utils": "^4.4.0", "@typescript-eslint/scope-manager": "8.24.1", "@typescript-eslint/types": "8.24.1", "@typescript-eslint/typescript-estree": "8.24.1" }, "peerDependencies": { "eslint": "^8.57.0 || ^9.0.0", "typescript": ">=4.8.4 <5.8.0" } }, "sha512-OOcg3PMMQx9EXspId5iktsI3eMaXVwlhC8BvNnX6B5w9a4dVgpkQZuU8Hy67TolKcl+iFWq0XX+jbDGN4xWxjQ=="], - "@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=="], + "@typescript-eslint/visitor-keys": ["@typescript-eslint/visitor-keys@8.24.1", "", { "dependencies": { "@typescript-eslint/types": "8.24.1", "eslint-visitor-keys": "^4.2.0" } }, "sha512-EwVHlp5l+2vp8CoqJm9KikPZgi3gbdZAtabKT9KPShGeOcJhsv4Zdo3oc8T8I0uKEmYoU4ItyxbptjF08enaxg=="], "@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=="], @@ -351,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-e552027-20250112", "", { "dependencies": { "@babel/types": "^7.19.0" } }, "sha512-pUTT0mAZ4XLewC6bvqVeX015nVRLVultcSQlkzGdC10G6YV6K2h4E7cwGlLAuLKWTj3Z08mTO9uTnPP/opUBsg=="], + "babel-plugin-react-compiler": ["babel-plugin-react-compiler@19.0.0-beta-e1e972c-20250221", "", { "dependencies": { "@babel/types": "^7.19.0" } }, "sha512-m3Y8KdwBwKj9l6bf1XPO2xm0WWzv/cYJPurkwP5j8SADGor6l9CdQVksrcOGzU/4Rylfa+tXW6+xaR3vAKs7Hg=="], "balanced-match": ["balanced-match@1.0.2", "", {}, "sha512-3oSeUO0TMV67hN1AmbXsK4yaqU7tjiHlbxRDZOpH0KW9+CeX4bRAaX0Anxt0tx2MrpRpWwQaPwIlISEJhYU5Pw=="], @@ -363,7 +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=="], - "bun-types": ["bun-types@1.2.2", "", { "dependencies": { "@types/node": "*", "@types/ws": "~8.5.10" } }, "sha512-RCbMH5elr9gjgDGDhkTTugA21XtJAy/9jkKe/G3WR2q17VPGhcquf9Sir6uay9iW+7P/BV0CAHA1XlHXMAVKHg=="], + "bun-types": ["bun-types@1.2.3", "", { "dependencies": { "@types/node": "*", "@types/ws": "~8.5.10" } }, "sha512-P7AeyTseLKAvgaZqQrvp3RqFM3yN9PlcLuSTe7SoJOfZkER73mLdT2vEQi8U64S1YvM/ldcNiQjn0Sn7H9lGgg=="], "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=="], @@ -381,7 +381,7 @@ "chalk": ["chalk@4.1.2", "", { "dependencies": { "ansi-styles": "^4.1.0", "supports-color": "^7.1.0" } }, "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA=="], - "chart.js": ["chart.js@4.4.7", "", { "dependencies": { "@kurkle/color": "^0.3.0" } }, "sha512-pwkcKfdzTMAU/+jNosKhNL2bHtJc/sSmYgVbuGTEDhzkrhmyihmP7vUc/5ZK9WopidMDHNe3Wm7jOd/WhuHWuw=="], + "chart.js": ["chart.js@4.4.8", "", { "dependencies": { "@kurkle/color": "^0.3.0" } }, "sha512-IkGZlVpXP+83QpMm4uxEiGqSI7jFizwVtF3+n5Pc3k7sMO+tkd0qxh2OzLhenM0K80xtmAONWGBn082EiBQSDA=="], "chartjs-plugin-datalabels": ["chartjs-plugin-datalabels@2.2.0", "", { "peerDependencies": { "chart.js": ">=3.0.0" } }, "sha512-14ZU30lH7n89oq+A4bWaJPnAG8a7ZTk7dKf48YAzMvJjQtjrgg5Dpk9f+LbjCF6bpx3RAGTeL13IXpKQYyRvlw=="], @@ -457,11 +457,11 @@ "escape-string-regexp": ["escape-string-regexp@4.0.0", "", {}, "sha512-TtpcNJ3XAzx3Gq8sWRzJaVajRs0uVxA2YAkdb1jm2YkPz4G6egUFAyA3n5vtEIZefPk5Wa4UXbKuS5fKkJWdgA=="], - "eslint": ["eslint@9.20.1", "", { "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-m1mM33o6dBUjxl2qb6wv6nGNwCAsns1eKtaQ4l/NPHeTvhiUPbtdfMyktxN4B3fgHIgsYh1VT3V9txblpQHq+g=="], + "eslint": ["eslint@9.21.0", "", { "dependencies": { "@eslint-community/eslint-utils": "^4.2.0", "@eslint-community/regexpp": "^4.12.1", "@eslint/config-array": "^0.19.2", "@eslint/core": "^0.12.0", "@eslint/eslintrc": "^3.3.0", "@eslint/js": "9.21.0", "@eslint/plugin-kit": "^0.2.7", "@humanfs/node": "^0.16.6", "@humanwhocodes/module-importer": "^1.0.1", "@humanwhocodes/retry": "^0.4.2", "@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-KjeihdFqTPhOMXTt7StsDxriV4n66ueuF/jfPNC3j/lduHwr/ijDwJMsF+wyMJethgiKi5wniIE243vi07d3pg=="], "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-e552027-20250112", "", { "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-VjkIXHouCYyJHgk5HmZ1LH+fAK5CX+ULRX9iNYtwYJ+ljbivFhIT+JJyxNT/USQpCeS2Dt5ahjFeeMv0RRwTww=="], + "eslint-plugin-react-compiler": ["eslint-plugin-react-compiler@19.0.0-beta-e1e972c-20250221", "", { "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-qdkOo4TJqFfK5td7EVNxDG2zAY44qK+ew7GKZ+nybOS/ONHFVRnluMfC+yjqyBexlfDZJul5ZFzsANJDQa3WSw=="], "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=="], @@ -489,7 +489,7 @@ "fastq": ["fastq@1.18.0", "", { "dependencies": { "reusify": "^1.0.4" } }, "sha512-QKHXPW0hD8g4UET03SdOdunzSouc9N4AuHdsX8XNcTsuz+yYFILVNIX4l9yHABMhiEI9Db0JTTIpu0wB+Y1QQw=="], - "fdir": ["fdir@6.3.0", "", { "peerDependencies": { "picomatch": "^3 || ^4" }, "optionalPeers": ["picomatch"] }, "sha512-QOnuT+BOtivR77wYvCWHfGt9s4Pz1VIMbD463vegT5MLqNXy8rYFT/lPVEqf/bhYeT6qmqrNHhsX+rWwe3rOCQ=="], + "fdir": ["fdir@6.4.3", "", { "peerDependencies": { "picomatch": "^3 || ^4" }, "optionalPeers": ["picomatch"] }, "sha512-PMXmW2y1hDDfTSRc9gaXIuCCRpuoz3Kaz8cUelp3smouvfT632ozg2vrT6lJsHKKOF59YLbOGfAWGUcKEfRMQw=="], "file-entry-cache": ["file-entry-cache@8.0.0", "", { "dependencies": { "flat-cache": "^4.0.0" } }, "sha512-XXTUwCvisa5oacNGRP9SfNtYBNAMi+RPwBFmblZEF7N7swHYQS6/Zfk7SRwx4D5j3CH211YNRco1DEMNVfZCnQ=="], @@ -709,7 +709,7 @@ "possible-typed-array-names": ["possible-typed-array-names@1.0.0", "", {}, "sha512-d7Uw+eZoloe0EHDIYoe+bQ5WXnGMOpmiZFTuMWCwpjzzkL2nTjcKiAk4hh8TjnGye2TwWOk3UXucZ+3rbmBa8Q=="], - "postcss": ["postcss@8.5.1", "", { "dependencies": { "nanoid": "^3.3.8", "picocolors": "^1.1.1", "source-map-js": "^1.2.1" } }, "sha512-6oz2beyjc5VMn/KV1pPw8fliQkhBXrVn1Z3TVyqZxU8kZpzEKhBdmCFqI6ZbmGtamQvQGuU1sgPTk8ZrXDD7jQ=="], + "postcss": ["postcss@8.5.3", "", { "dependencies": { "nanoid": "^3.3.8", "picocolors": "^1.1.1", "source-map-js": "^1.2.1" } }, "sha512-dle9A3yYxlBSrt8Fu+IpjGT8SY8hN0mlaA6GY8t0P5PjIOZemULz/E2Bnm/2dcUOena75OTNkHI76uZBNUUq3A=="], "prelude-ls": ["prelude-ls@1.2.1", "", {}, "sha512-vkcDPrRZo1QZLbn5RLGPpg/WmIQ65qoWWhcGKf/b5eplkkarX0m9z8ppCat4mlOqUsWpyNuYgO3VRyrYHSzX5g=="], @@ -731,7 +731,7 @@ "react-hot-toast": ["react-hot-toast@2.5.2", "", { "dependencies": { "csstype": "^3.1.3", "goober": "^2.1.16" }, "peerDependencies": { "react": ">=16", "react-dom": ">=16" } }, "sha512-Tun3BbCxzmXXM7C+NI4qiv6lT0uwGh4oAfeJyNOjYUejTsm35mK9iCaYLGv8cBz9L5YxZLx/2ii7zsIwPtPUdw=="], - "react-icons": ["react-icons@5.4.0", "", { "peerDependencies": { "react": "*" } }, "sha512-7eltJxgVt7X64oHh6wSWNwwbKTCtMfK35hcjvJS0yxEAhPM8oUKdS3+kqaW1vicIltw+kR2unHaa12S9pPALoQ=="], + "react-icons": ["react-icons@5.5.0", "", { "peerDependencies": { "react": "*" } }, "sha512-MEFcXdkP3dLo8uumGI5xN3lDFNsRtrjbOEKDLD7yv76v4wpnEq2Lt2qeHaQOr34I/wPN3s3+N08WkQ+CW37Xiw=="], "react-is": ["react-is@16.13.1", "", {}, "sha512-24e6ynE2H+OKt4kqsOvNd8kBpV65zoxbA4BVsEOB3ARVWQki/DHzaUoC5KuON/BiccDaCCTZBuOcfZs70kR8bQ=="], @@ -739,9 +739,9 @@ "react-refresh": ["react-refresh@0.14.2", "", {}, "sha512-jCvmsr+1IUSMUyzOkRcvnVbX3ZYC6g9TDrDbFuFmRDq7PD4yaGbLKNQL6k2jnArV8hjYxh7hVhAZB6s9HDGpZA=="], - "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": ["react-router@7.2.0", "", { "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-fXyqzPgCPZbqhrk7k3hPcCpYIlQ2ugIXDboHUzhJISFVy2DEPsmHgN588MyGmkIOv3jDgNfUE3kJi83L28s/LQ=="], - "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-router-dom": ["react-router-dom@7.2.0", "", { "dependencies": { "react-router": "7.2.0" }, "peerDependencies": { "react": ">=18", "react-dom": ">=18" } }, "sha512-cU7lTxETGtQRQbafJubvZKHEn5izNABxZhBY0Jlzdv0gqQhCPQt2J8aN5ZPjS6mQOXn5NnirWNh+FpE8TTYN0Q=="], "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=="], @@ -761,7 +761,7 @@ "rollup": ["rollup@4.31.0", "", { "dependencies": { "@types/estree": "1.0.6" }, "optionalDependencies": { "@rollup/rollup-android-arm-eabi": "4.31.0", "@rollup/rollup-android-arm64": "4.31.0", "@rollup/rollup-darwin-arm64": "4.31.0", "@rollup/rollup-darwin-x64": "4.31.0", "@rollup/rollup-freebsd-arm64": "4.31.0", "@rollup/rollup-freebsd-x64": "4.31.0", "@rollup/rollup-linux-arm-gnueabihf": "4.31.0", "@rollup/rollup-linux-arm-musleabihf": "4.31.0", "@rollup/rollup-linux-arm64-gnu": "4.31.0", "@rollup/rollup-linux-arm64-musl": "4.31.0", "@rollup/rollup-linux-loongarch64-gnu": "4.31.0", "@rollup/rollup-linux-powerpc64le-gnu": "4.31.0", "@rollup/rollup-linux-riscv64-gnu": "4.31.0", "@rollup/rollup-linux-s390x-gnu": "4.31.0", "@rollup/rollup-linux-x64-gnu": "4.31.0", "@rollup/rollup-linux-x64-musl": "4.31.0", "@rollup/rollup-win32-arm64-msvc": "4.31.0", "@rollup/rollup-win32-ia32-msvc": "4.31.0", "@rollup/rollup-win32-x64-msvc": "4.31.0", "fsevents": "~2.3.2" }, "bin": "dist/bin/rollup" }, "sha512-9cCE8P4rZLx9+PjoyqHLs31V9a9Vpvfo4qNcs6JCiGWYhw2gijSetFbH6SSy1whnkgcefnUwr8sad7tgqsGvnw=="], - "rollup-plugin-license": ["rollup-plugin-license@3.5.3", "", { "dependencies": { "commenting": "~1.1.0", "fdir": "6.3.0", "lodash": "~4.17.21", "magic-string": "~0.30.0", "moment": "~2.30.1", "package-name-regex": "~2.0.6", "spdx-expression-validate": "~2.0.0", "spdx-satisfies": "~5.0.1" }, "peerDependencies": { "rollup": "^1.0.0 || ^2.0.0 || ^3.0.0 || ^4.0.0" } }, "sha512-r3wImZSo2d6sEk9BRJtlzeI/upjyjnpthy06Fdl0EzqRrlg3ULb9KQR7xHJI0zuayW/8bchEXSF5dO6dha4OyA=="], + "rollup-plugin-license": ["rollup-plugin-license@3.6.0", "", { "dependencies": { "commenting": "~1.1.0", "fdir": "^6.4.3", "lodash": "~4.17.21", "magic-string": "~0.30.0", "moment": "~2.30.1", "package-name-regex": "~2.0.6", "spdx-expression-validate": "~2.0.0", "spdx-satisfies": "~5.0.1" }, "peerDependencies": { "rollup": "^1.0.0 || ^2.0.0 || ^3.0.0 || ^4.0.0" } }, "sha512-1ieLxTCaigI5xokIfszVDRoy6c/Wmlot1fDEnea7Q/WXSR8AqOjYljHDLObAx7nFxHC2mbxT3QnTSPhaic2IYw=="], "run-parallel": ["run-parallel@1.2.0", "", { "dependencies": { "queue-microtask": "^1.2.2" } }, "sha512-5l4VyZR86LZ/lDxZTR6jqL8AFE2S0IFLMP26AbjsLVADxHdhB/c0GUsH+y39UfCi3dzz8OlQuPmnaJOMoDHQBA=="], @@ -831,9 +831,9 @@ "supports-preserve-symlinks-flag": ["supports-preserve-symlinks-flag@1.0.0", "", {}, "sha512-ot0WnXS9fgdkgIcePe6RHNk1WA8+muPa6cSjeR3V8K27q9BB1rTE3R1p7Hv0z1ZyAc8s6Vvv8DIyWf681MAt0w=="], - "survey-core": ["survey-core@1.12.23", "", {}, "sha512-/ZKLF+6xlVLyna4c4N3xWyrYRIlfT43C3ZjScrU/36QY5abpvLyEalHGMxu2rKcBNj1vyw5BwGccYf5DWs5RhQ=="], + "survey-core": ["survey-core@1.12.24", "", {}, "sha512-wctjd+Hv4fjrP2QDT/nlXfHq3KT7iDuxAClfflM3ztRM72FFJcvprNuZSkiHg0ow1Th59/zblqTnnz4qiCqXjg=="], - "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=="], + "survey-react-ui": ["survey-react-ui@1.12.24", "", { "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.24" } }, "sha512-t5zpTGh+Fo5rkKTgiWcBQNh9PQxy4fRkQX6qCPsA+NQE1yCCR3K1/heIfd8oeieV1kOwtO1e5DF1RSFpDoQReA=="], "to-regex-range": ["to-regex-range@5.0.1", "", { "dependencies": { "is-number": "^7.0.0" } }, "sha512-65P7iz6X5yEr1cwcgvQxbbIw7Uk3gOy5dIdtZ4rDveLqhrdJP+Li/Hx6tyK0NEb+2GCyneCMJiGqrADCSNk8sQ=="], @@ -865,7 +865,7 @@ "uri-js": ["uri-js@4.4.1", "", { "dependencies": { "punycode": "^2.1.0" } }, "sha512-7rKUyy33Q1yc98pQ1DAmLtwX109F7TIfWlW1Ydo8Wl1ii1SeHieeh0HHfPeL2fMXK6z0s8ecKs9frCuLJvndBg=="], - "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=="], + "vite": ["vite@6.1.1", "", { "dependencies": { "esbuild": "^0.24.2", "postcss": "^8.5.2", "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-4GgM54XrwRfrOp297aIYspIti66k56v16ZnqHvrIM7mG+HjDlAwS7p+Srr7J6fGvEdOJ5JcQ/D9T7HhtdXDTzA=="], "warning": ["warning@4.0.3", "", { "dependencies": { "loose-envify": "^1.0.0" } }, "sha512-rpJyN222KWIvHJ/F53XSZv0Zl/accqHR8et1kpaMTD/fLCRxtV8iX8czMzY7sVZupTI3zcUTg8eycS2kNF9l6w=="], @@ -899,8 +899,6 @@ "@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=="], diff --git a/compendium-frontend/package.json b/compendium-frontend/package.json index 0e8083eb0085f39867a8f47608247cf389a2f51b..8d433f7ae2b74224861fe198c9f549a303d2ae5b 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.6", - "@eslint/eslintrc": "~3.2.0", - "@eslint/js": "~9.20.0", + "@eslint/compat": "~1.2.7", + "@eslint/eslintrc": "~3.3.0", + "@eslint/js": "~9.21.0", "@types/react": "~19.0.10", "@types/react-dom": "~19.0.4", "@types/react-router-dom": "~5.3.3", - "@typescript-eslint/eslint-plugin": "~8.24.0", - "@typescript-eslint/parser": "~8.24.0", + "@typescript-eslint/eslint-plugin": "~8.24.1", + "@typescript-eslint/parser": "~8.24.1", "@vitejs/plugin-react": "~4.3.4", - "babel-plugin-react-compiler": "~19.0.0-beta-e552027-20250112", - "eslint": "~9.20.1", + "babel-plugin-react-compiler": "~19.0.0-beta-e1e972c-20250221", + "eslint": "~9.21.0", "eslint-plugin-react": "~7.37.4", - "eslint-plugin-react-compiler": "^19.0.0-beta-e552027-20250112", + "eslint-plugin-react-compiler": "^19.0.0-beta-e1e972c-20250221", "eslint-plugin-react-hooks": "~5.1.0", - "rollup-plugin-license": "~3.5.3", + "rollup-plugin-license": "~3.6.0", "sass": "^1.85.0", "typescript": "~5.7.3", - "vite": "~6.1.0" + "vite": "~6.1.1" }, "scripts": { "start": "vite", @@ -28,9 +28,9 @@ }, "dependencies": { "bootstrap": "~5.3.3", - "bun-types": "~1.2.2", + "bun-types": "~1.2.3", "cartesian-product-multiple-arrays": "~1.0.9", - "chart.js": "~4.4.7", + "chart.js": "~4.4.8", "chartjs-plugin-datalabels": "~2.2.0", "html-to-image": "~1.11.13", "lodash": "~4.17.21", @@ -39,10 +39,10 @@ "react-chartjs-2": "~5.3.0", "react-dom": "~19.0.0", "react-hot-toast": "~2.5.2", - "react-icons": "~5.4.0", - "react-router-dom": "~7.1.5", - "survey-core": "~1.12.23", - "survey-react-ui": "~1.12.23", + "react-icons": "~5.5.0", + "react-router-dom": "~7.2.0", + "survey-core": "~1.12.24", + "survey-react-ui": "~1.12.24", "xlsx": "~0.18.5" }, "description": "## development environment", diff --git a/compendium_v2/static/AlienWave-BRELP-Uq.js b/compendium_v2/static/AlienWave-BRELP-Uq.js deleted file mode 100644 index 506a20a902daf6fabcf24c1cca8286346380400d..0000000000000000000000000000000000000000 --- a/compendium_v2/static/AlienWave-BRELP-Uq.js +++ /dev/null @@ -1,9 +0,0 @@ -import{c as T,r as Y,F as S,j as v,t as j,S as E}from"./index-CgRqQtHZ.js";import{u as W,g as C,n as F,D as M,F as P,f as R}from"./useData-CnR6ocTl.js";import{P as L}from"./PillTable-DC6FlsPO.js";import"./SideBar-Dgfa8b_s.js";import"./xlsx-BHRztzV8.js";import"./index-DgKDGaow.js";import"./hook-DDOSKqdF.js";import"./ColorPill-BRQzvq49.js";import"./Table-ggua9_yJ.js";function K(){const e=T.c(30);let a;e[0]===Symbol.for("react.memo_cache_sentinel")?(a=d=>d.alien_wave_third_party!==null,e[0]=a):a=e[0];const x=a,{filterSelection:t,setFilterSelection:p}=Y.useContext(S),{data:_,years:w,nrens:y}=W("/api/alien-wave",p,x);let s,h;if(e[1]!==_||e[2]!==t.selectedNrens||e[3]!==t.selectedYears){let d;e[6]!==t.selectedNrens||e[7]!==t.selectedYears?(d=g=>t.selectedYears.includes(g.year)&&t.selectedNrens.includes(g.nren),e[6]=t.selectedNrens,e[7]=t.selectedYears,e[8]=d):d=e[8],s=_.filter(d);const D=C(s,"alien_wave_third_party");h=F(D,A),e[1]=_,e[2]=t.selectedNrens,e[3]=t.selectedYears,e[4]=s,e[5]=h}else s=e[4],h=e[5];const b=h;let n,m;e[9]===Symbol.for("react.memo_cache_sentinel")?(n=["Yes","Planned","No"],m=new Map([[n[0],"yes"],[n[1],"planned"],[n[2],"no"]]),e[9]=n,e[10]=m):(n=e[9],m=e[10]);const k=m;let i;e[11]!==w?(i=[...w],e[11]=w,e[12]=i):i=e[12];let r;e[13]!==y?(r=y.values(),e[13]=y,e[14]=r):r=e[14];let l;e[15]!==r?(l=[...r],e[15]=r,e[16]=l):l=e[16];let o;e[17]!==i||e[18]!==l?(o={availableYears:i,availableNrens:l},e[17]=i,e[18]=l,e[19]=o):o=e[19];let u;e[20]!==t||e[21]!==p||e[22]!==o?(u=v.jsx(P,{filterOptions:o,filterSelection:t,setFilterSelection:p,coloredYears:!0}),e[20]=t,e[21]=p,e[22]=o,e[23]=u):u=e[23];const N=u;let c;e[24]!==b?(c=v.jsx(R,{children:v.jsx(L,{columns:n,columnLookup:k,dataLookup:b})}),e[24]=b,e[25]=c):c=e[25];let f;return e[26]!==N||e[27]!==s||e[28]!==c?(f=v.jsx(M,{title:j["alien-wave"],description:`The table below shows NREN usage of alien wavelength or lightpath services provided by third parties. - It does not include alien waves used internally inside the NRENs own networks, as that is covered in another table. - In the optical network world, the term “alien wavelength” or “alien wave” (AW) is used to describe wavelengths in a - DWDM line system that pass through the network, i.e. they are not sourced/terminated by the line-system operator’s - equipment (hence “alien”). This setup is in contrast to traditional DWDM systems, where the DWDM light source - (transponder) operates in the same management domain as the amplifiers. - - Where NRENs have given the number of individual alien wavelength services, the figure is available in a hover-over - box. These are indicated by a black line around the coloured marker.`,category:E.Network,filter:N,data:s,filename:"alien_wave_nrens_per_year",children:c}),e[26]=N,e[27]=s,e[28]=c,e[29]=f):f=e[29],f}function A(e,a){if(a.nr_of_alien_wave_third_party_services)return`No. of alien wavelength services: ${a.nr_of_alien_wave_third_party_services} `}export{K as default}; diff --git a/compendium_v2/static/AlienWave-CpRPpDKT.js b/compendium_v2/static/AlienWave-CpRPpDKT.js new file mode 100644 index 0000000000000000000000000000000000000000..7598fb4f3a7abf1180a8fca1c4fda606f5901006 --- /dev/null +++ b/compendium_v2/static/AlienWave-CpRPpDKT.js @@ -0,0 +1,9 @@ +import{c as D,r as T,F as Y,j as v,t as j,S as E}from"./index-DBbSOdjk.js";import{u as S,g as W,n as C,D as F,F as M,f as P}from"./useData-CcKTpALT.js";import{P as R}from"./PillTable-CIcKqQJh.js";import"./SideBar-DfD7Pj8p.js";import"./xlsx-BHRztzV8.js";import"./index-DkYuYqrz.js";import"./hook-D9Tuu5oJ.js";import"./ColorPill-CuYEYQ56.js";import"./Table-DNomfHX4.js";function K(){const e=D.c(29),c=A,{filterSelection:t,setFilterSelection:d}=T.useContext(Y),{data:_,years:w,nrens:y}=S("/api/alien-wave",d,c);let a,p;if(e[0]!==_||e[1]!==t.selectedNrens||e[2]!==t.selectedYears){let f;e[5]!==t.selectedNrens||e[6]!==t.selectedYears?(f=g=>t.selectedYears.includes(g.year)&&t.selectedNrens.includes(g.nren),e[5]=t.selectedNrens,e[6]=t.selectedYears,e[7]=f):f=e[7],a=_.filter(f);const k=W(a,"alien_wave_third_party");p=C(k,L),e[0]=_,e[1]=t.selectedNrens,e[2]=t.selectedYears,e[3]=a,e[4]=p}else a=e[3],p=e[4];const N=p;let s,h;e[8]===Symbol.for("react.memo_cache_sentinel")?(s=["Yes","Planned","No"],h=new Map([[s[0],"yes"],[s[1],"planned"],[s[2],"no"]]),e[8]=s,e[9]=h):(s=e[8],h=e[9]);const x=h;let n;e[10]!==w?(n=[...w],e[10]=w,e[11]=n):n=e[11];let i;e[12]!==y?(i=y.values(),e[12]=y,e[13]=i):i=e[13];let r;e[14]!==i?(r=[...i],e[14]=i,e[15]=r):r=e[15];let l;e[16]!==n||e[17]!==r?(l={availableYears:n,availableNrens:r},e[16]=n,e[17]=r,e[18]=l):l=e[18];let u;e[19]!==t||e[20]!==d||e[21]!==l?(u=v.jsx(M,{filterOptions:l,filterSelection:t,setFilterSelection:d,coloredYears:!0}),e[19]=t,e[20]=d,e[21]=l,e[22]=u):u=e[22];const b=u;let o;e[23]!==N?(o=v.jsx(P,{children:v.jsx(R,{columns:s,columnLookup:x,dataLookup:N})}),e[23]=N,e[24]=o):o=e[24];let m;return e[25]!==b||e[26]!==a||e[27]!==o?(m=v.jsx(F,{title:j["alien-wave"],description:`The table below shows NREN usage of alien wavelength or lightpath services provided by third parties. + It does not include alien waves used internally inside the NRENs own networks, as that is covered in another table. + In the optical network world, the term “alien wavelength” or “alien wave” (AW) is used to describe wavelengths in a + DWDM line system that pass through the network, i.e. they are not sourced/terminated by the line-system operator’s + equipment (hence “alien”). This setup is in contrast to traditional DWDM systems, where the DWDM light source + (transponder) operates in the same management domain as the amplifiers. + + Where NRENs have given the number of individual alien wavelength services, the figure is available in a hover-over + box. These are indicated by a black line around the coloured marker.`,category:E.Network,filter:b,data:a,filename:"alien_wave_nrens_per_year",children:o}),e[25]=b,e[26]=a,e[27]=o,e[28]=m):m=e[28],m}function L(e,c){if(c.nr_of_alien_wave_third_party_services)return`No. of alien wavelength services: ${c.nr_of_alien_wave_third_party_services} `}function A(e){return e.alien_wave_third_party!==null}export{K as default}; diff --git a/compendium_v2/static/AlienWaveInternal-CpX7IEII.js b/compendium_v2/static/AlienWaveInternal-CpX7IEII.js deleted file mode 100644 index 31c5d1e9221523e066ed2ec8305cba1d76c53e70..0000000000000000000000000000000000000000 --- a/compendium_v2/static/AlienWaveInternal-CpX7IEII.js +++ /dev/null @@ -1,9 +0,0 @@ -import{c as k,r as Y,F as S,j as w,t as j,S as F}from"./index-CgRqQtHZ.js";import{u as M,g as T,D as W,F as C,f as E}from"./useData-CnR6ocTl.js";import{P}from"./PillTable-DC6FlsPO.js";import"./SideBar-Dgfa8b_s.js";import"./xlsx-BHRztzV8.js";import"./index-DgKDGaow.js";import"./hook-DDOSKqdF.js";import"./ColorPill-BRQzvq49.js";import"./Table-ggua9_yJ.js";function B(){const e=k.c(30);let m;e[0]===Symbol.for("react.memo_cache_sentinel")?(m=c=>c.alien_wave_internal!==null,e[0]=m):m=e[0];const N=m,{filterSelection:t,setFilterSelection:d}=Y.useContext(S),{data:v,years:g,nrens:x}=M("/api/alien-wave",d,N);let s,p;if(e[1]!==v||e[2]!==t.selectedNrens||e[3]!==t.selectedYears){let c;e[6]!==t.selectedNrens||e[7]!==t.selectedYears?(c=D=>t.selectedYears.includes(D.year)&&t.selectedNrens.includes(D.nren),e[6]=t.selectedNrens,e[7]=t.selectedYears,e[8]=c):c=e[8],s=v.filter(c),p=T(s,"alien_wave_internal"),e[1]=v,e[2]=t.selectedNrens,e[3]=t.selectedYears,e[4]=s,e[5]=p}else s=e[4],p=e[5];const y=p;let n,u;e[9]===Symbol.for("react.memo_cache_sentinel")?(n=["Yes","No"],u=new Map([[n[0],"True"],[n[1],"False"]]),e[9]=n,e[10]=u):(n=e[9],u=e[10]);const b=u;let a;e[11]!==g?(a=[...g],e[11]=g,e[12]=a):a=e[12];let l;e[13]!==x?(l=x.values(),e[13]=x,e[14]=l):l=e[14];let i;e[15]!==l?(i=[...l],e[15]=l,e[16]=i):i=e[16];let r;e[17]!==a||e[18]!==i?(r={availableYears:a,availableNrens:i},e[17]=a,e[18]=i,e[19]=r):r=e[19];let h;e[20]!==t||e[21]!==d||e[22]!==r?(h=w.jsx(C,{filterOptions:r,filterSelection:t,setFilterSelection:d,coloredYears:!0}),e[20]=t,e[21]=d,e[22]=r,e[23]=h):h=e[23];const _=h;let o;e[24]!==y?(o=w.jsx(E,{children:w.jsx(P,{columns:n,columnLookup:b,dataLookup:y})}),e[24]=y,e[25]=o):o=e[25];let f;return e[26]!==_||e[27]!==s||e[28]!==o?(f=w.jsx(W,{title:j["alien-wave-internal"],description:`The table below shows NREN usage of alien waves internally within their own networks. - This includes, for example, alien waves used between two equipment vendors, - eg. coloured optics on routes carried over DWDM (dense wavelength division multiplexing) equipment. - - In the optical network world, the term “alien wavelength” or “alien wave” (AW) is used to describe - wavelengths in a DWDM line system that pass through the network, i.e. they are not sourced/terminated - by the line-system operator’s equipment (hence “alien”). This setup is in contrast to traditional - DWDM systems, where the DWDM light source (transponder) operates in the same management domain - as the amplifiers.`,category:F.Network,filter:_,data:s,filename:"alien_wave_internal_nrens_per_year",children:o}),e[26]=_,e[27]=s,e[28]=o,e[29]=f):f=e[29],f}export{B as default}; diff --git a/compendium_v2/static/AlienWaveInternal-DDEuk0kg.js b/compendium_v2/static/AlienWaveInternal-DDEuk0kg.js new file mode 100644 index 0000000000000000000000000000000000000000..252b7d0531f5908600772276a8a4eacca21c27da --- /dev/null +++ b/compendium_v2/static/AlienWaveInternal-DDEuk0kg.js @@ -0,0 +1,9 @@ +import{c as b,r as k,F as Y,j as f,t as j,S as F}from"./index-DBbSOdjk.js";import{u as M,g as S,D as T,F as W,f as C}from"./useData-CcKTpALT.js";import{P as E}from"./PillTable-CIcKqQJh.js";import"./SideBar-DfD7Pj8p.js";import"./xlsx-BHRztzV8.js";import"./index-DkYuYqrz.js";import"./hook-D9Tuu5oJ.js";import"./ColorPill-CuYEYQ56.js";import"./Table-DNomfHX4.js";function B(){const e=b.c(29),N=P,{filterSelection:t,setFilterSelection:c}=k.useContext(Y),{data:w,years:v,nrens:g}=M("/api/alien-wave",c,N);let s,d;if(e[0]!==w||e[1]!==t.selectedNrens||e[2]!==t.selectedYears){let h;e[5]!==t.selectedNrens||e[6]!==t.selectedYears?(h=D=>t.selectedYears.includes(D.year)&&t.selectedNrens.includes(D.nren),e[5]=t.selectedNrens,e[6]=t.selectedYears,e[7]=h):h=e[7],s=w.filter(h),d=S(s,"alien_wave_internal"),e[0]=w,e[1]=t.selectedNrens,e[2]=t.selectedYears,e[3]=s,e[4]=d}else s=e[3],d=e[4];const x=d;let n,m;e[8]===Symbol.for("react.memo_cache_sentinel")?(n=["Yes","No"],m=new Map([[n[0],"True"],[n[1],"False"]]),e[8]=n,e[9]=m):(n=e[8],m=e[9]);const _=m;let a;e[10]!==v?(a=[...v],e[10]=v,e[11]=a):a=e[11];let l;e[12]!==g?(l=g.values(),e[12]=g,e[13]=l):l=e[13];let i;e[14]!==l?(i=[...l],e[14]=l,e[15]=i):i=e[15];let r;e[16]!==a||e[17]!==i?(r={availableYears:a,availableNrens:i},e[16]=a,e[17]=i,e[18]=r):r=e[18];let p;e[19]!==t||e[20]!==c||e[21]!==r?(p=f.jsx(W,{filterOptions:r,filterSelection:t,setFilterSelection:c,coloredYears:!0}),e[19]=t,e[20]=c,e[21]=r,e[22]=p):p=e[22];const y=p;let o;e[23]!==x?(o=f.jsx(C,{children:f.jsx(E,{columns:n,columnLookup:_,dataLookup:x})}),e[23]=x,e[24]=o):o=e[24];let u;return e[25]!==y||e[26]!==s||e[27]!==o?(u=f.jsx(T,{title:j["alien-wave-internal"],description:`The table below shows NREN usage of alien waves internally within their own networks. + This includes, for example, alien waves used between two equipment vendors, + eg. coloured optics on routes carried over DWDM (dense wavelength division multiplexing) equipment. + + In the optical network world, the term “alien wavelength” or “alien wave” (AW) is used to describe + wavelengths in a DWDM line system that pass through the network, i.e. they are not sourced/terminated + by the line-system operator’s equipment (hence “alien”). This setup is in contrast to traditional + DWDM systems, where the DWDM light source (transponder) operates in the same management domain + as the amplifiers.`,category:F.Network,filter:y,data:s,filename:"alien_wave_internal_nrens_per_year",children:o}),e[25]=y,e[26]=s,e[27]=o,e[28]=u):u=e[28],u}function P(e){return e.alien_wave_internal!==null}export{B as default}; diff --git a/compendium_v2/static/Audits-BguD3rzB.js b/compendium_v2/static/Audits-BguD3rzB.js deleted file mode 100644 index 81a66b9dbf5be0e5e0dcddd9dcb8a0f217324883..0000000000000000000000000000000000000000 --- a/compendium_v2/static/Audits-BguD3rzB.js +++ /dev/null @@ -1,5 +0,0 @@ -import{c as Y,r as w,F as j,j as x,t as F,S as P}from"./index-CgRqQtHZ.js";import{u as C,g as D,n as E,D as L,F as R,f as M}from"./useData-CnR6ocTl.js";import{P as A}from"./PillTable-DC6FlsPO.js";import"./SideBar-Dgfa8b_s.js";import"./xlsx-BHRztzV8.js";import"./index-DgKDGaow.js";import"./hook-DDOSKqdF.js";import"./ColorPill-BRQzvq49.js";import"./Table-ggua9_yJ.js";function K(){const e=Y.c(30);let s;e[0]===Symbol.for("react.memo_cache_sentinel")?(s=d=>d.audits!==null,e[0]=s):s=e[0];const k=s,{filterSelection:t,setFilterSelection:u}=w.useContext(j),{data:b,years:y,nrens:N}=C("/api/standards",u,k);let i,m;if(e[1]!==b||e[2]!==t.selectedNrens||e[3]!==t.selectedYears){let d;e[6]!==t.selectedNrens||e[7]!==t.selectedYears?(d=_=>t.selectedYears.includes(_.year)&&t.selectedNrens.includes(_.nren)&&_.audits!==null,e[6]=t.selectedNrens,e[7]=t.selectedYears,e[8]=d):d=e[8],i=b.filter(d);const T=D(i,"audits");m=E(T,I),e[1]=b,e[2]=t.selectedNrens,e[3]=t.selectedYears,e[4]=i,e[5]=m}else i=e[4],m=e[5];const g=m;let a,p;e[9]===Symbol.for("react.memo_cache_sentinel")?(a=["Yes","No"],p=new Map([[a[0],"True"],[a[1],"False"]]),e[9]=a,e[10]=p):(a=e[9],p=e[10]);const S=p;let r;e[11]!==y?(r=[...y],e[11]=y,e[12]=r):r=e[12];let l;e[13]!==N?(l=N.values(),e[13]=N,e[14]=l):l=e[14];let o;e[15]!==l?(o=[...l],e[15]=l,e[16]=o):o=e[16];let n;e[17]!==r||e[18]!==o?(n={availableYears:r,availableNrens:o},e[17]=r,e[18]=o,e[19]=n):n=e[19];let f;e[20]!==t||e[21]!==u||e[22]!==n?(f=x.jsx(R,{filterOptions:n,filterSelection:t,setFilterSelection:u,coloredYears:!0}),e[20]=t,e[21]=u,e[22]=n,e[23]=f):f=e[23];const v=f;let c;e[24]!==g?(c=x.jsx(M,{children:x.jsx(A,{columns:a,columnLookup:S,dataLookup:g})}),e[24]=g,e[25]=c):c=e[25];let h;return e[26]!==v||e[27]!==i||e[28]!==c?(h=x.jsx(L,{title:F.audits,description:`The table below shows whether NRENs have external and/or internal audits - of the information security management systems (eg. risk management and policies). - Where extra information has been provided, such as whether a certified security auditor - on ISP 27001 is performing the audits, it can be viewed by hovering over the indicator - mark ringed in black.`,category:P.Policy,filter:v,data:i,filename:"audits_nrens_per_year",children:c}),e[26]=v,e[27]=i,e[28]=c,e[29]=h):h=e[29],h}function I(e,s){if(s.audit_specifics)return s.audit_specifics}export{K as default}; diff --git a/compendium_v2/static/Audits-DrRfyBs4.js b/compendium_v2/static/Audits-DrRfyBs4.js new file mode 100644 index 0000000000000000000000000000000000000000..d1d86eba360b81a30369f9981f72942cc221076d --- /dev/null +++ b/compendium_v2/static/Audits-DrRfyBs4.js @@ -0,0 +1,5 @@ +import{c as _,r as w,F as S,j as x,t as j,S as F}from"./index-DBbSOdjk.js";import{u as P,g as C,n as D,D as E,F as L,f as R}from"./useData-CcKTpALT.js";import{P as M}from"./PillTable-CIcKqQJh.js";import"./SideBar-DfD7Pj8p.js";import"./xlsx-BHRztzV8.js";import"./index-DkYuYqrz.js";import"./hook-D9Tuu5oJ.js";import"./ColorPill-CuYEYQ56.js";import"./Table-DNomfHX4.js";function K(){const e=_.c(29),c=I,{filterSelection:t,setFilterSelection:d}=w.useContext(S),{data:b,years:y,nrens:N}=P("/api/standards",d,c);let s,u;if(e[0]!==b||e[1]!==t.selectedNrens||e[2]!==t.selectedYears){let h;e[5]!==t.selectedNrens||e[6]!==t.selectedYears?(h=k=>t.selectedYears.includes(k.year)&&t.selectedNrens.includes(k.nren)&&k.audits!==null,e[5]=t.selectedNrens,e[6]=t.selectedYears,e[7]=h):h=e[7],s=b.filter(h);const Y=C(s,"audits");u=D(Y,A),e[0]=b,e[1]=t.selectedNrens,e[2]=t.selectedYears,e[3]=s,e[4]=u}else s=e[3],u=e[4];const g=u;let i,p;e[8]===Symbol.for("react.memo_cache_sentinel")?(i=["Yes","No"],p=new Map([[i[0],"True"],[i[1],"False"]]),e[8]=i,e[9]=p):(i=e[8],p=e[9]);const T=p;let a;e[10]!==y?(a=[...y],e[10]=y,e[11]=a):a=e[11];let r;e[12]!==N?(r=N.values(),e[12]=N,e[13]=r):r=e[13];let l;e[14]!==r?(l=[...r],e[14]=r,e[15]=l):l=e[15];let o;e[16]!==a||e[17]!==l?(o={availableYears:a,availableNrens:l},e[16]=a,e[17]=l,e[18]=o):o=e[18];let m;e[19]!==t||e[20]!==d||e[21]!==o?(m=x.jsx(L,{filterOptions:o,filterSelection:t,setFilterSelection:d,coloredYears:!0}),e[19]=t,e[20]=d,e[21]=o,e[22]=m):m=e[22];const v=m;let n;e[23]!==g?(n=x.jsx(R,{children:x.jsx(M,{columns:i,columnLookup:T,dataLookup:g})}),e[23]=g,e[24]=n):n=e[24];let f;return e[25]!==v||e[26]!==s||e[27]!==n?(f=x.jsx(E,{title:j.audits,description:`The table below shows whether NRENs have external and/or internal audits + of the information security management systems (eg. risk management and policies). + Where extra information has been provided, such as whether a certified security auditor + on ISP 27001 is performing the audits, it can be viewed by hovering over the indicator + mark ringed in black.`,category:F.Policy,filter:v,data:s,filename:"audits_nrens_per_year",children:n}),e[25]=v,e[26]=s,e[27]=n,e[28]=f):f=e[28],f}function A(e,c){if(c.audit_specifics)return c.audit_specifics}function I(e){return e.audits!==null}export{K as default}; diff --git a/compendium_v2/static/Automation-CM48PgQO.js b/compendium_v2/static/Automation-7WUmNT-G.js similarity index 94% rename from compendium_v2/static/Automation-CM48PgQO.js rename to compendium_v2/static/Automation-7WUmNT-G.js index 3185e035e8bcf5c14cb3a7b86f513711a003d48f..d7b4b6c5180ea3f661acef9a1035fe0bd38de00b 100644 --- a/compendium_v2/static/Automation-CM48PgQO.js +++ b/compendium_v2/static/Automation-7WUmNT-G.js @@ -1,4 +1,4 @@ -import{c as ee,r as te,F as se,S as ne,j as t,t as le}from"./index-CgRqQtHZ.js";import{u as oe,g as re,F as ie,D as ae,f as ce}from"./useData-CnR6ocTl.js";import{C as Q}from"./ColorPill-BRQzvq49.js";import{T as he}from"./Table-ggua9_yJ.js";import"./SideBar-Dgfa8b_s.js";import"./xlsx-BHRztzV8.js";import"./index-DgKDGaow.js";import"./hook-DDOSKqdF.js";function we(){const e=ee.c(69),{filterSelection:l,setFilterSelection:p}=te.useContext(se),{data:U,years:c,nrens:R}=oe("/api/network-automation",p);let m,f,x,j,u,g,w,y,_,h,d,b,S,Y,v;if(e[0]!==l||e[1]!==R||e[2]!==U||e[3]!==p||e[4]!==c){let A;e[20]!==l.selectedNrens||e[21]!==l.selectedYears?(A=F=>l.selectedYears.includes(F.year)&&l.selectedNrens.includes(F.nren),e[20]=l.selectedNrens,e[21]=l.selectedYears,e[22]=A):A=e[22];const V=U.filter(A),X=re(V,"network_automation");let C;e[23]!==c?(C=[...c],e[23]=c,e[24]=C):C=e[24];let T;e[25]!==R?(T=R.values(),e[25]=R,e[26]=T):T=e[26];let D;e[27]!==T?(D=[...T],e[27]=T,e[28]=D):D=e[28];let $;e[29]!==C||e[30]!==D?($={availableYears:C,availableNrens:D},e[29]=C,e[30]=D,e[31]=$):$=e[31];let L;e[32]!==l||e[33]!==p||e[34]!==$?(L=t.jsx(ie,{filterOptions:$,filterSelection:l,setFilterSelection:p,coloredYears:!0}),e[32]=l,e[33]=p,e[34]=$,e[35]=L):L=e[35];const Z=L;let M;e[36]!==c?(M=F=>c.has(F),e[36]=c,e[37]=M):M=e[37];const W=[...l.selectedYears.filter(M)].sort();x=ae,b=le["network-automation"],S=`The table below shows which NRENs have, or plan to, automate their +import{c as ee,r as te,F as se,S as ne,j as t,t as le}from"./index-DBbSOdjk.js";import{u as oe,g as re,F as ie,D as ae,f as ce}from"./useData-CcKTpALT.js";import{C as Q}from"./ColorPill-CuYEYQ56.js";import{T as he}from"./Table-DNomfHX4.js";import"./SideBar-DfD7Pj8p.js";import"./xlsx-BHRztzV8.js";import"./index-DkYuYqrz.js";import"./hook-D9Tuu5oJ.js";function we(){const e=ee.c(69),{filterSelection:l,setFilterSelection:p}=te.useContext(se),{data:U,years:c,nrens:R}=oe("/api/network-automation",p);let m,f,x,j,u,g,w,y,_,h,d,b,S,Y,v;if(e[0]!==l||e[1]!==R||e[2]!==U||e[3]!==p||e[4]!==c){let A;e[20]!==l.selectedNrens||e[21]!==l.selectedYears?(A=F=>l.selectedYears.includes(F.year)&&l.selectedNrens.includes(F.nren),e[20]=l.selectedNrens,e[21]=l.selectedYears,e[22]=A):A=e[22];const V=U.filter(A),X=re(V,"network_automation");let C;e[23]!==c?(C=[...c],e[23]=c,e[24]=C):C=e[24];let T;e[25]!==R?(T=R.values(),e[25]=R,e[26]=T):T=e[26];let D;e[27]!==T?(D=[...T],e[27]=T,e[28]=D):D=e[28];let $;e[29]!==C||e[30]!==D?($={availableYears:C,availableNrens:D},e[29]=C,e[30]=D,e[31]=$):$=e[31];let L;e[32]!==l||e[33]!==p||e[34]!==$?(L=t.jsx(ie,{filterOptions:$,filterSelection:l,setFilterSelection:p,coloredYears:!0}),e[32]=l,e[33]=p,e[34]=$,e[35]=L):L=e[35];const Z=L;let M;e[36]!==c?(M=F=>c.has(F),e[36]=c,e[37]=M):M=e[37];const W=[...l.selectedYears.filter(M)].sort();x=ae,b=le["network-automation"],S=`The table below shows which NRENs have, or plan to, automate their operational processes, with specification of which processes, and the names of software and tools used for this given when appropriate. Where NRENs indicated that they are using automation for some network tasks, diff --git a/compendium_v2/static/Budget-CJwd467A.js b/compendium_v2/static/Budget-CVs5cg26.js similarity index 84% rename from compendium_v2/static/Budget-CJwd467A.js rename to compendium_v2/static/Budget-CVs5cg26.js index 017519808a62bdfe2c618a3bdb89cc08e8832716..a5014ed89bc5662cb5089cd8f1d2d3f7239b60e1 100644 --- a/compendium_v2/static/Budget-CJwd467A.js +++ b/compendium_v2/static/Budget-CVs5cg26.js @@ -1 +1 @@ -import{c as _,r as S,F as j,j as s,t as v,S as C}from"./index-CgRqQtHZ.js";import{L as R}from"./index-BMzrLxRb.js";import{C as L,a as w,L as D,P as F,b as P,p as M,c as O,d as T,u as B,e as G,D as k,F as q,f as A}from"./useData-CnR6ocTl.js";import{g as H}from"./charthelpers-D_bh9y-E.js";import"./SideBar-Dgfa8b_s.js";import"./xlsx-BHRztzV8.js";import"./index-DgKDGaow.js";import"./hook-DDOSKqdF.js";L.register(w,D,F,P,M,O,T);function Q(){const e=_.c(24),{filterSelection:t,setFilterSelection:o}=S.useContext(j),{data:m,nrens:b}=B("/api/budget",o);let a,l;if(e[0]!==m||e[1]!==t.selectedNrens){let h;e[4]!==t.selectedNrens?(h=E=>t.selectedNrens.includes(E.nren),e[4]=t.selectedNrens,e[5]=h):h=e[5],a=m.filter(h),l=G(a,"budget"),e[0]=m,e[1]=t.selectedNrens,e[2]=a,e[3]=l}else a=e[2],l=e[3];const N=l;let c;e[6]===Symbol.for("react.memo_cache_sentinel")?(c=[],e[6]=c):c=e[6];let i;e[7]!==b?(i=b.values(),e[7]=b,e[8]=i):i=e[8];let r;e[9]!==i?(r={availableYears:c,availableNrens:[...i]},e[9]=i,e[10]=r):r=e[10];let d;e[11]!==t||e[12]!==o||e[13]!==r?(d=s.jsx(q,{filterOptions:r,filterSelection:t,setFilterSelection:o}),e[11]=t,e[12]=o,e[13]=r,e[14]=d):d=e[14];const y=d;let f;e[15]===Symbol.for("react.memo_cache_sentinel")?(f=H({title:"Budget in M€",tooltipUnit:"M€",unit:"M€"}),e[15]=f):f=e[15];const x=f;let g;e[16]===Symbol.for("react.memo_cache_sentinel")?(g=s.jsx("br",{}),e[16]=g):g=e[16];let p;e[17]===Symbol.for("react.memo_cache_sentinel")?(p=s.jsxs("span",{children:["The graph shows NREN budgets per year (in millions Euro). When budgets are not per calendar year, the NREN is asked to provide figures of the budget that covers the largest part of the year, and to include any GÉANT subsidy they may receive.",g,"NRENs are free to decide how they define the part of their organisation dedicated to core NREN business, and the budget. The merging of different parts of a large NREN into a single organisation, with a single budget can lead to significant changes between years, as can receiving funding for specific time-bound projects.",s.jsx("br",{}),"Hovering over the graph data points shows the NREN budget for the year. Gaps indicate that the budget question was not filled in for a particular year."]}),e[17]=p):p=e[17];let n;e[18]!==N?(n=s.jsx(A,{children:s.jsx(R,{data:N,options:x})}),e[18]=N,e[19]=n):n=e[19];let u;return e[20]!==y||e[21]!==a||e[22]!==n?(u=s.jsx(k,{title:v.budget,description:p,category:C.Organisation,filter:y,data:a,filename:"budget_data",children:n}),e[20]=y,e[21]=a,e[22]=n,e[23]=u):u=e[23],u}export{Q as default}; +import{c as _,r as S,F as j,j as s,t as v,S as C}from"./index-DBbSOdjk.js";import{L as R}from"./index-DyJczNpq.js";import{C as L,a as w,L as D,P as F,b as P,p as M,c as O,d as T,u as B,e as G,D as k,F as q,f as A}from"./useData-CcKTpALT.js";import{g as H}from"./charthelpers-CHBq5wBZ.js";import"./SideBar-DfD7Pj8p.js";import"./xlsx-BHRztzV8.js";import"./index-DkYuYqrz.js";import"./hook-D9Tuu5oJ.js";L.register(w,D,F,P,M,O,T);function Q(){const e=_.c(24),{filterSelection:t,setFilterSelection:o}=S.useContext(j),{data:m,nrens:b}=B("/api/budget",o);let a,l;if(e[0]!==m||e[1]!==t.selectedNrens){let h;e[4]!==t.selectedNrens?(h=E=>t.selectedNrens.includes(E.nren),e[4]=t.selectedNrens,e[5]=h):h=e[5],a=m.filter(h),l=G(a,"budget"),e[0]=m,e[1]=t.selectedNrens,e[2]=a,e[3]=l}else a=e[2],l=e[3];const N=l;let c;e[6]===Symbol.for("react.memo_cache_sentinel")?(c=[],e[6]=c):c=e[6];let i;e[7]!==b?(i=b.values(),e[7]=b,e[8]=i):i=e[8];let r;e[9]!==i?(r={availableYears:c,availableNrens:[...i]},e[9]=i,e[10]=r):r=e[10];let d;e[11]!==t||e[12]!==o||e[13]!==r?(d=s.jsx(q,{filterOptions:r,filterSelection:t,setFilterSelection:o}),e[11]=t,e[12]=o,e[13]=r,e[14]=d):d=e[14];const y=d;let f;e[15]===Symbol.for("react.memo_cache_sentinel")?(f=H({title:"Budget in M€",tooltipUnit:"M€",unit:"M€"}),e[15]=f):f=e[15];const x=f;let g;e[16]===Symbol.for("react.memo_cache_sentinel")?(g=s.jsx("br",{}),e[16]=g):g=e[16];let p;e[17]===Symbol.for("react.memo_cache_sentinel")?(p=s.jsxs("span",{children:["The graph shows NREN budgets per year (in millions Euro). When budgets are not per calendar year, the NREN is asked to provide figures of the budget that covers the largest part of the year, and to include any GÉANT subsidy they may receive.",g,"NRENs are free to decide how they define the part of their organisation dedicated to core NREN business, and the budget. The merging of different parts of a large NREN into a single organisation, with a single budget can lead to significant changes between years, as can receiving funding for specific time-bound projects.",s.jsx("br",{}),"Hovering over the graph data points shows the NREN budget for the year. Gaps indicate that the budget question was not filled in for a particular year."]}),e[17]=p):p=e[17];let n;e[18]!==N?(n=s.jsx(A,{children:s.jsx(R,{data:N,options:x})}),e[18]=N,e[19]=n):n=e[19];let u;return e[20]!==y||e[21]!==a||e[22]!==n?(u=s.jsx(k,{title:v.budget,description:p,category:C.Organisation,filter:y,data:a,filename:"budget_data",children:n}),e[20]=y,e[21]=a,e[22]=n,e[23]=u):u=e[23],u}export{Q as default}; diff --git a/compendium_v2/static/BusinessContinuity-CGdkDX70.js b/compendium_v2/static/BusinessContinuity-CGdkDX70.js deleted file mode 100644 index e4cbf97f233fd2b41a2c1b808e03cf3395d405f1..0000000000000000000000000000000000000000 --- a/compendium_v2/static/BusinessContinuity-CGdkDX70.js +++ /dev/null @@ -1,5 +0,0 @@ -import{c as v,r as S,F as j,j as y,t as C,S as E}from"./index-CgRqQtHZ.js";import{u as F,g as P,n as D,D as L,F as R,f as M}from"./useData-CnR6ocTl.js";import{P as B}from"./PillTable-DC6FlsPO.js";import"./SideBar-Dgfa8b_s.js";import"./xlsx-BHRztzV8.js";import"./index-DgKDGaow.js";import"./hook-DDOSKqdF.js";import"./ColorPill-BRQzvq49.js";import"./Table-ggua9_yJ.js";function Q(){const e=v.c(30);let s;e[0]===Symbol.for("react.memo_cache_sentinel")?(s=u=>u.business_continuity_plans!==null,e[0]=s):s=e[0];const w=s,{filterSelection:t,setFilterSelection:p}=S.useContext(j),{data:b,years:_,nrens:x}=F("/api/standards",p,w);let n,d;if(e[1]!==b||e[2]!==t.selectedNrens||e[3]!==t.selectedYears){let u;e[6]!==t.selectedNrens||e[7]!==t.selectedYears?(u=k=>t.selectedYears.includes(k.year)&&t.selectedNrens.includes(k.nren)&&k.business_continuity_plans!==null,e[6]=t.selectedNrens,e[7]=t.selectedYears,e[8]=u):u=e[8],n=b.filter(u);const g=P(n,"business_continuity_plans");d=D(g,O),e[1]=b,e[2]=t.selectedNrens,e[3]=t.selectedYears,e[4]=n,e[5]=d}else n=e[4],d=e[5];const N=d;let i,f;e[9]===Symbol.for("react.memo_cache_sentinel")?(i=["Yes","No"],f=new Map([[i[0],"True"],[i[1],"False"]]),e[9]=i,e[10]=f):(i=e[9],f=e[10]);const Y=f;let l;e[11]!==_?(l=[..._],e[11]=_,e[12]=l):l=e[12];let o;e[13]!==x?(o=x.values(),e[13]=x,e[14]=o):o=e[14];let a;e[15]!==o?(a=[...o],e[15]=o,e[16]=a):a=e[16];let r;e[17]!==l||e[18]!==a?(r={availableYears:l,availableNrens:a},e[17]=l,e[18]=a,e[19]=r):r=e[19];let m;e[20]!==t||e[21]!==p||e[22]!==r?(m=y.jsx(R,{filterOptions:r,filterSelection:t,setFilterSelection:p,coloredYears:!0}),e[20]=t,e[21]=p,e[22]=r,e[23]=m):m=e[23];const T=m;let c;e[24]!==N?(c=y.jsx(M,{children:y.jsx(B,{columns:i,columnLookup:Y,dataLookup:N})}),e[24]=N,e[25]=c):c=e[25];let h;return e[26]!==T||e[27]!==n||e[28]!==c?(h=y.jsx(L,{title:C["business-continuity"],description:`The table below shows which NRENs have business continuity plans in place to - ensure business continuation and operations. Extra details about whether the NREN - complies with any international standards, and whether they test the continuity plans - regularly can be seen by hovering over the marker. The presence of this extra information - is denoted by a black ring around the marker.`,category:E.Policy,filter:T,data:n,filename:"business_continuity_nrens_per_year",children:c}),e[26]=T,e[27]=n,e[28]=c,e[29]=h):h=e[29],h}function O(e,s){if(s.business_continuity_plans_specifics)return s.business_continuity_plans_specifics}export{Q as default}; diff --git a/compendium_v2/static/BusinessContinuity-jrf4-tia.js b/compendium_v2/static/BusinessContinuity-jrf4-tia.js new file mode 100644 index 0000000000000000000000000000000000000000..72c5046988821e491861e9caa135c121fbe3ba5c --- /dev/null +++ b/compendium_v2/static/BusinessContinuity-jrf4-tia.js @@ -0,0 +1,5 @@ +import{c as g,r as v,F as j,j as y,t as C,S as E}from"./index-DBbSOdjk.js";import{u as F,g as S,n as P,D,F as L,f as R}from"./useData-CcKTpALT.js";import{P as M}from"./PillTable-CIcKqQJh.js";import"./SideBar-DfD7Pj8p.js";import"./xlsx-BHRztzV8.js";import"./index-DkYuYqrz.js";import"./hook-D9Tuu5oJ.js";import"./ColorPill-CuYEYQ56.js";import"./Table-DNomfHX4.js";function Q(){const e=g.c(29),c=O,{filterSelection:t,setFilterSelection:u}=v.useContext(j),{data:b,years:_,nrens:x}=F("/api/standards",u,c);let s,p;if(e[0]!==b||e[1]!==t.selectedNrens||e[2]!==t.selectedYears){let h;e[5]!==t.selectedNrens||e[6]!==t.selectedYears?(h=k=>t.selectedYears.includes(k.year)&&t.selectedNrens.includes(k.nren)&&k.business_continuity_plans!==null,e[5]=t.selectedNrens,e[6]=t.selectedYears,e[7]=h):h=e[7],s=b.filter(h);const Y=S(s,"business_continuity_plans");p=P(Y,B),e[0]=b,e[1]=t.selectedNrens,e[2]=t.selectedYears,e[3]=s,e[4]=p}else s=e[3],p=e[4];const N=p;let n,d;e[8]===Symbol.for("react.memo_cache_sentinel")?(n=["Yes","No"],d=new Map([[n[0],"True"],[n[1],"False"]]),e[8]=n,e[9]=d):(n=e[8],d=e[9]);const w=d;let i;e[10]!==_?(i=[..._],e[10]=_,e[11]=i):i=e[11];let l;e[12]!==x?(l=x.values(),e[12]=x,e[13]=l):l=e[13];let o;e[14]!==l?(o=[...l],e[14]=l,e[15]=o):o=e[15];let a;e[16]!==i||e[17]!==o?(a={availableYears:i,availableNrens:o},e[16]=i,e[17]=o,e[18]=a):a=e[18];let f;e[19]!==t||e[20]!==u||e[21]!==a?(f=y.jsx(L,{filterOptions:a,filterSelection:t,setFilterSelection:u,coloredYears:!0}),e[19]=t,e[20]=u,e[21]=a,e[22]=f):f=e[22];const T=f;let r;e[23]!==N?(r=y.jsx(R,{children:y.jsx(M,{columns:n,columnLookup:w,dataLookup:N})}),e[23]=N,e[24]=r):r=e[24];let m;return e[25]!==T||e[26]!==s||e[27]!==r?(m=y.jsx(D,{title:C["business-continuity"],description:`The table below shows which NRENs have business continuity plans in place to + ensure business continuation and operations. Extra details about whether the NREN + complies with any international standards, and whether they test the continuity plans + regularly can be seen by hovering over the marker. The presence of this extra information + is denoted by a black ring around the marker.`,category:E.Policy,filter:T,data:s,filename:"business_continuity_nrens_per_year",children:r}),e[25]=T,e[26]=s,e[27]=r,e[28]=m):m=e[28],m}function B(e,c){if(c.business_continuity_plans_specifics)return c.business_continuity_plans_specifics}function O(e){return e.business_continuity_plans!==null}export{Q as default}; diff --git a/compendium_v2/static/CapacityCoreIP-0WFrWZ8f.js b/compendium_v2/static/CapacityCoreIP-0WFrWZ8f.js deleted file mode 100644 index 214459fd335744ad9b8e25f81dd0e341d863066b..0000000000000000000000000000000000000000 --- a/compendium_v2/static/CapacityCoreIP-0WFrWZ8f.js +++ /dev/null @@ -1,3 +0,0 @@ -import{c as P,r as Y,F as I,j as y,S as G,t as R}from"./index-CgRqQtHZ.js";import{B as L}from"./index-BMzrLxRb.js";import{C as O,a as $,L as A,B as M,p as T,c as U,d as q,u as z,o as H,D as J,F as K,f as Q}from"./useData-CnR6ocTl.js";import{p as V}from"./chartjs-plugin-datalabels.esm-B3Gf8X6A.js";import{a as W}from"./charthelpers-D_bh9y-E.js";import"./SideBar-Dgfa8b_s.js";import"./xlsx-BHRztzV8.js";import"./index-DgKDGaow.js";import"./hook-DDOSKqdF.js";O.register($,A,M,T,U,q);function oe(){const e=P.c(39);let b;e[0]===Symbol.for("react.memo_cache_sentinel")?(b=n=>n.typical_backbone_capacity!=null,e[0]=b):b=e[0];const B=b,{filterSelection:t,setFilterSelection:s}=Y.useContext(I),{data:N,years:d,nrens:u}=z("/api/capacity",s,B);let i,l,a,g;if(e[1]!==N||e[2]!==t||e[3]!==u||e[4]!==s||e[5]!==d){let n;e[10]!==t.selectedNrens||e[11]!==t.selectedYears?(n=j=>t.selectedYears.includes(j.year)&&t.selectedNrens.includes(j.nren)&&B(j),e[10]=t.selectedNrens,e[11]=t.selectedYears,e[12]=n):n=e[12],a=N.filter(n),i=H(a,"typical_backbone_capacity","Backbone IP Capacity");let p;e[13]!==d?(p=[...d],e[13]=d,e[14]=p):p=e[14];let f;e[15]!==u?(f=u.values(),e[15]=u,e[16]=f):f=e[16];let m;e[17]!==f?(m=[...f],e[17]=f,e[18]=m):m=e[18];let h;e[19]!==p||e[20]!==m?(h={availableYears:p,availableNrens:m},e[19]=p,e[20]=m,e[21]=h):h=e[21];let S;e[22]!==t||e[23]!==s||e[24]!==h?(S=y.jsx(K,{filterOptions:h,filterSelection:t,setFilterSelection:s}),e[22]=t,e[23]=s,e[24]=h,e[25]=S):S=e[25],l=S,g=Array.from(new Set(a.map(X))),e[1]=N,e[2]=t,e[3]=u,e[4]=s,e[5]=d,e[6]=i,e[7]=l,e[8]=a,e[9]=g}else i=e[6],l=e[7],a=e[8],g=e[9];const w=g.length,D=Math.max(w*t.selectedYears.length*1.5+5,50),v=R["capacity-core-ip"],E=`The graph below shows the typical core usable backbone IP capacity of - NREN networks, expressed in Gbit/s. It refers to the circuit capacity, not the traffic over - the network.`;let _;e[26]===Symbol.for("react.memo_cache_sentinel")?(_=W({title:v,tooltipUnit:"Gbit/s",unit:"Gbit/s"}),e[26]=_):_=e[26];const F=_,k=`${D}rem`;let r;e[27]!==k?(r={height:k},e[27]=k,e[28]=r):r=e[28];let x;e[29]===Symbol.for("react.memo_cache_sentinel")?(x=[V],e[29]=x):x=e[29];let c;e[30]!==i?(c=y.jsx(L,{data:i,options:F,plugins:x}),e[30]=i,e[31]=c):c=e[31];let o;e[32]!==r||e[33]!==c?(o=y.jsx(Q,{children:y.jsx("div",{className:"chart-container",style:r,children:c})}),e[32]=r,e[33]=c,e[34]=o):o=e[34];let C;return e[35]!==l||e[36]!==a||e[37]!==o?(C=y.jsx(J,{title:v,description:E,category:G.Network,filter:l,data:a,filename:"capacity_core_ip",children:o}),e[35]=l,e[36]=a,e[37]=o,e[38]=C):C=e[38],C}function X(e){return e.nren}export{oe as default}; diff --git a/compendium_v2/static/CapacityCoreIP-Br9KX5yH.js b/compendium_v2/static/CapacityCoreIP-Br9KX5yH.js new file mode 100644 index 0000000000000000000000000000000000000000..6670b675d69e699e546777d2f7506134c6eeb78a --- /dev/null +++ b/compendium_v2/static/CapacityCoreIP-Br9KX5yH.js @@ -0,0 +1,3 @@ +import{c as F,r as P,F as Y,j as d,S as I,t as G}from"./index-DBbSOdjk.js";import{B as R}from"./index-DyJczNpq.js";import{C as L,a as O,L as $,B as A,p as M,c as T,d as U,u as q,o as z,D as H,F as J,f as K}from"./useData-CcKTpALT.js";import{p as Q}from"./chartjs-plugin-datalabels.esm-C6J4S2ma.js";import{a as V}from"./charthelpers-CHBq5wBZ.js";import"./SideBar-DfD7Pj8p.js";import"./xlsx-BHRztzV8.js";import"./index-DkYuYqrz.js";import"./hook-D9Tuu5oJ.js";L.register(O,$,A,M,T,U);function ne(){const e=F.c(38),j=X,{filterSelection:t,setFilterSelection:s}=P.useContext(Y),{data:N,years:h,nrens:u}=q("/api/capacity",s,j);let i,r,a,y;if(e[0]!==N||e[1]!==t||e[2]!==u||e[3]!==s||e[4]!==h){let _;e[9]!==t.selectedNrens||e[10]!==t.selectedYears?(_=k=>t.selectedYears.includes(k.year)&&t.selectedNrens.includes(k.nren)&&j(k),e[9]=t.selectedNrens,e[10]=t.selectedYears,e[11]=_):_=e[11],a=N.filter(_),i=z(a,"typical_backbone_capacity","Backbone IP Capacity");let o;e[12]!==h?(o=[...h],e[12]=h,e[13]=o):o=e[13];let p;e[14]!==u?(p=u.values(),e[14]=u,e[15]=p):p=e[15];let f;e[16]!==p?(f=[...p],e[16]=p,e[17]=f):f=e[17];let m;e[18]!==o||e[19]!==f?(m={availableYears:o,availableNrens:f},e[18]=o,e[19]=f,e[20]=m):m=e[20];let C;e[21]!==t||e[22]!==s||e[23]!==m?(C=d.jsx(J,{filterOptions:m,filterSelection:t,setFilterSelection:s}),e[21]=t,e[22]=s,e[23]=m,e[24]=C):C=e[24],r=C,y=Array.from(new Set(a.map(W))),e[0]=N,e[1]=t,e[2]=u,e[3]=s,e[4]=h,e[5]=i,e[6]=r,e[7]=a,e[8]=y}else i=e[5],r=e[6],a=e[7],y=e[8];const v=y.length,w=Math.max(v*t.selectedYears.length*1.5+5,50),B=G["capacity-core-ip"],D=`The graph below shows the typical core usable backbone IP capacity of + NREN networks, expressed in Gbit/s. It refers to the circuit capacity, not the traffic over + the network.`;let g;e[25]===Symbol.for("react.memo_cache_sentinel")?(g=V({title:B,tooltipUnit:"Gbit/s",unit:"Gbit/s"}),e[25]=g):g=e[25];const E=g,S=`${w}rem`;let l;e[26]!==S?(l={height:S},e[26]=S,e[27]=l):l=e[27];let b;e[28]===Symbol.for("react.memo_cache_sentinel")?(b=[Q],e[28]=b):b=e[28];let c;e[29]!==i?(c=d.jsx(R,{data:i,options:E,plugins:b}),e[29]=i,e[30]=c):c=e[30];let n;e[31]!==l||e[32]!==c?(n=d.jsx(K,{children:d.jsx("div",{className:"chart-container",style:l,children:c})}),e[31]=l,e[32]=c,e[33]=n):n=e[33];let x;return e[34]!==r||e[35]!==a||e[36]!==n?(x=d.jsx(H,{title:B,description:D,category:I.Network,filter:r,data:a,filename:"capacity_core_ip",children:n}),e[34]=r,e[35]=a,e[36]=n,e[37]=x):x=e[37],x}function W(e){return e.nren}function X(e){return e.typical_backbone_capacity!=null}export{ne as default}; diff --git a/compendium_v2/static/CapacityLargestLink-CZFVemiz.js b/compendium_v2/static/CapacityLargestLink-CZFVemiz.js deleted file mode 100644 index a522fbdc6cc30f75ebcce4a2ff8552044aeb24de..0000000000000000000000000000000000000000 --- a/compendium_v2/static/CapacityLargestLink-CZFVemiz.js +++ /dev/null @@ -1,3 +0,0 @@ -import{c as L,r as Y,F as G,j as u,S as R,t as O}from"./index-CgRqQtHZ.js";import{B as P}from"./index-BMzrLxRb.js";import{C as $,a as A,L as M,B as U,p as W,c as q,d as z,u as H,o as I,D as J,F as K,f as Q}from"./useData-CnR6ocTl.js";import{p as T}from"./chartjs-plugin-datalabels.esm-B3Gf8X6A.js";import{a as V}from"./charthelpers-D_bh9y-E.js";import"./SideBar-Dgfa8b_s.js";import"./xlsx-BHRztzV8.js";import"./index-DgKDGaow.js";import"./hook-DDOSKqdF.js";$.register(A,M,U,W,q,z);function ce(){const e=L.c(39);let y;e[0]===Symbol.for("react.memo_cache_sentinel")?(y=o=>o.largest_link_capacity!=null,e[0]=y):y=e[0];const j=y,{filterSelection:t,setFilterSelection:s}=Y.useContext(G),{data:b,years:h,nrens:g}=H("/api/capacity",s,j);let i,l,a,_;if(e[1]!==b||e[2]!==t||e[3]!==g||e[4]!==s||e[5]!==h){let o;e[10]!==t.selectedNrens||e[11]!==t.selectedYears?(o=v=>t.selectedYears.includes(v.year)&&t.selectedNrens.includes(v.nren)&&j(v),e[10]=t.selectedNrens,e[11]=t.selectedYears,e[12]=o):o=e[12],a=b.filter(o),i=I(a,"largest_link_capacity","Link capacity");let p;e[13]!==h?(p=[...h],e[13]=h,e[14]=p):p=e[14];let f;e[15]!==g?(f=g.values(),e[15]=g,e[16]=f):f=e[16];let m;e[17]!==f?(m=[...f],e[17]=f,e[18]=m):m=e[18];let d;e[19]!==p||e[20]!==m?(d={availableYears:p,availableNrens:m},e[19]=p,e[20]=m,e[21]=d):d=e[21];let S;e[22]!==t||e[23]!==s||e[24]!==d?(S=u.jsx(K,{filterOptions:d,filterSelection:t,setFilterSelection:s}),e[22]=t,e[23]=s,e[24]=d,e[25]=S):S=e[25],l=S,_=Array.from(new Set(a.map(X))),e[1]=b,e[2]=t,e[3]=g,e[4]=s,e[5]=h,e[6]=i,e[7]=l,e[8]=a,e[9]=_}else i=e[6],l=e[7],a=e[8],_=e[9];const B=_.length,D=Math.max(B*t.selectedYears.length*1.5+5,50),w=O["capacity-largest-link"],E=`NRENs were asked to give the capacity (in Gbits/s) of the largest link in - their network used for internet traffic (either shared or dedicated). While they were invited to - provide the sum of aggregated links, backup capacity was not to be included.`;let k;e[26]===Symbol.for("react.memo_cache_sentinel")?(k=V({title:w,tooltipUnit:"Gbit/s",unit:"Gbit/s"}),e[26]=k):k=e[26];const F=k,N=`${D}rem`;let r;e[27]!==N?(r={height:N},e[27]=N,e[28]=r):r=e[28];let x;e[29]===Symbol.for("react.memo_cache_sentinel")?(x=[T],e[29]=x):x=e[29];let n;e[30]!==i?(n=u.jsx(P,{data:i,options:F,plugins:x}),e[30]=i,e[31]=n):n=e[31];let c;e[32]!==r||e[33]!==n?(c=u.jsx(Q,{children:u.jsx("div",{className:"chart-container",style:r,children:n})}),e[32]=r,e[33]=n,e[34]=c):c=e[34];let C;return e[35]!==l||e[36]!==a||e[37]!==c?(C=u.jsx(J,{title:w,description:E,category:R.Network,filter:l,data:a,filename:"capacity_largest_link",children:c}),e[35]=l,e[36]=a,e[37]=c,e[38]=C):C=e[38],C}function X(e){return e.nren}export{ce as default}; diff --git a/compendium_v2/static/CapacityLargestLink-LEyWpKvI.js b/compendium_v2/static/CapacityLargestLink-LEyWpKvI.js new file mode 100644 index 0000000000000000000000000000000000000000..181aeaf062cf3fe142717a1b904c0658bb958ddc --- /dev/null +++ b/compendium_v2/static/CapacityLargestLink-LEyWpKvI.js @@ -0,0 +1,3 @@ +import{c as F,r as L,F as Y,j as g,S as G,t as R}from"./index-DBbSOdjk.js";import{B as O}from"./index-DyJczNpq.js";import{C as P,a as $,L as A,B as M,p as U,c as W,d as q,u as z,o as H,D as I,F as J,f as K}from"./useData-CcKTpALT.js";import{p as Q}from"./chartjs-plugin-datalabels.esm-C6J4S2ma.js";import{a as T}from"./charthelpers-CHBq5wBZ.js";import"./SideBar-DfD7Pj8p.js";import"./xlsx-BHRztzV8.js";import"./index-DkYuYqrz.js";import"./hook-D9Tuu5oJ.js";P.register($,A,M,U,W,q);function ce(){const e=F.c(38),v=X,{filterSelection:t,setFilterSelection:s}=L.useContext(Y),{data:N,years:m,nrens:u}=z("/api/capacity",s,v);let i,l,a,h;if(e[0]!==N||e[1]!==t||e[2]!==u||e[3]!==s||e[4]!==m){let x;e[9]!==t.selectedNrens||e[10]!==t.selectedYears?(x=b=>t.selectedYears.includes(b.year)&&t.selectedNrens.includes(b.nren)&&v(b),e[9]=t.selectedNrens,e[10]=t.selectedYears,e[11]=x):x=e[11],a=N.filter(x),i=H(a,"largest_link_capacity","Link capacity");let o;e[12]!==m?(o=[...m],e[12]=m,e[13]=o):o=e[13];let p;e[14]!==u?(p=u.values(),e[14]=u,e[15]=p):p=e[15];let f;e[16]!==p?(f=[...p],e[16]=p,e[17]=f):f=e[17];let d;e[18]!==o||e[19]!==f?(d={availableYears:o,availableNrens:f},e[18]=o,e[19]=f,e[20]=d):d=e[20];let C;e[21]!==t||e[22]!==s||e[23]!==d?(C=g.jsx(J,{filterOptions:d,filterSelection:t,setFilterSelection:s}),e[21]=t,e[22]=s,e[23]=d,e[24]=C):C=e[24],l=C,h=Array.from(new Set(a.map(V))),e[0]=N,e[1]=t,e[2]=u,e[3]=s,e[4]=m,e[5]=i,e[6]=l,e[7]=a,e[8]=h}else i=e[5],l=e[6],a=e[7],h=e[8];const w=h.length,B=Math.max(w*t.selectedYears.length*1.5+5,50),j=R["capacity-largest-link"],D=`NRENs were asked to give the capacity (in Gbits/s) of the largest link in + their network used for internet traffic (either shared or dedicated). While they were invited to + provide the sum of aggregated links, backup capacity was not to be included.`;let y;e[25]===Symbol.for("react.memo_cache_sentinel")?(y=T({title:j,tooltipUnit:"Gbit/s",unit:"Gbit/s"}),e[25]=y):y=e[25];const E=y,S=`${B}rem`;let r;e[26]!==S?(r={height:S},e[26]=S,e[27]=r):r=e[27];let _;e[28]===Symbol.for("react.memo_cache_sentinel")?(_=[Q],e[28]=_):_=e[28];let n;e[29]!==i?(n=g.jsx(O,{data:i,options:E,plugins:_}),e[29]=i,e[30]=n):n=e[30];let c;e[31]!==r||e[32]!==n?(c=g.jsx(K,{children:g.jsx("div",{className:"chart-container",style:r,children:n})}),e[31]=r,e[32]=n,e[33]=c):c=e[33];let k;return e[34]!==l||e[35]!==a||e[36]!==c?(k=g.jsx(I,{title:j,description:D,category:G.Network,filter:l,data:a,filename:"capacity_largest_link",children:c}),e[34]=l,e[35]=a,e[36]=c,e[37]=k):k=e[37],k}function V(e){return e.nren}function X(e){return e.largest_link_capacity!=null}export{ce as default}; diff --git a/compendium_v2/static/CentralProcurement-Bw5p4Y4D.js b/compendium_v2/static/CentralProcurement-Bw5p4Y4D.js deleted file mode 100644 index 267fc1f9ac665799688a8d8451f063585cbe9b15..0000000000000000000000000000000000000000 --- a/compendium_v2/static/CentralProcurement-Bw5p4Y4D.js +++ /dev/null @@ -1 +0,0 @@ -import{c as Y,r as I,F as T,j as h,S as $,t as L}from"./index-CgRqQtHZ.js";import{C as O,a as V,L as k,B as A,p as M,c as U,d as Z,u as q,o as z,D as G,F as H,f as J}from"./useData-CnR6ocTl.js";import{p as K}from"./chartjs-plugin-datalabels.esm-B3Gf8X6A.js";import{B as Q}from"./index-BMzrLxRb.js";import{a as W}from"./charthelpers-D_bh9y-E.js";import"./SideBar-Dgfa8b_s.js";import"./xlsx-BHRztzV8.js";import"./index-DgKDGaow.js";import"./hook-DDOSKqdF.js";O.register(V,k,A,M,U,Z);function ce(){const e=Y.c(40);let g;e[0]===Symbol.for("react.memo_cache_sentinel")?(g=s=>s.amount!=null,e[0]=g):g=e[0];const v=g,{filterSelection:t,setFilterSelection:l}=I.useContext(T),{data:w,years:d,nrens:y}=q("/api/central-procurement",l,v);let o,n,r,x;if(e[1]!==w||e[2]!==t||e[3]!==y||e[4]!==l||e[5]!==d){let s;e[10]!==t.selectedNrens||e[11]!==t.selectedYears?(s=j=>t.selectedYears.includes(j.year)&&t.selectedNrens.includes(j.nren),e[10]=t.selectedNrens,e[11]=t.selectedYears,e[12]=s):s=e[12],r=w.filter(s),o=z(r,"amount","Procurement Value");let a;e[13]!==d?(a=[...d],e[13]=d,e[14]=a):a=e[14];let f;e[15]!==y?(f=y.values(),e[15]=y,e[16]=f):f=e[16];let u;e[17]!==f?(u=[...f],e[17]=f,e[18]=u):u=e[18];let p;e[19]!==a||e[20]!==u?(p={availableYears:a,availableNrens:u},e[19]=a,e[20]=u,e[21]=p):p=e[21];let b;e[22]!==t||e[23]!==l||e[24]!==p?(b=h.jsx(H,{filterOptions:p,filterSelection:t,setFilterSelection:l}),e[22]=t,e[23]=l,e[24]=p,e[25]=b):b=e[25],n=b,x=Array.from(new Set(r.map(X))),e[1]=w,e[2]=t,e[3]=y,e[4]=l,e[5]=d,e[6]=o,e[7]=n,e[8]=r,e[9]=x}else o=e[6],n=e[7],r=e[8],x=e[9];const P=x.length,B=Math.max(P*t.selectedYears.length*1.5+5,50),D=L["central-procurement"];let N;e[26]===Symbol.for("react.memo_cache_sentinel")?(N=h.jsx("span",{children:"Some NRENs centrally procure software for their customers. The graph below shows the total value (in Euro) of software procured in the previous year by the NRENs. Please note you can only see the select NRENs which carry out this type of procurement. Those who do not offer this are not selectable."}),e[26]=N):N=e[26];const F=N;let S;e[27]===Symbol.for("react.memo_cache_sentinel")?(S=W({title:"Software Procurement Value",valueTransform(s){return`${new Intl.NumberFormat(void 0,{style:"currency",currency:"EUR",trailingZeroDisplay:"stripIfInteger"}).format(s)}`}}),e[27]=S):S=e[27];const R=S,E=`${B}rem`;let i;e[28]!==E?(i={height:E},e[28]=E,e[29]=i):i=e[29];let _;e[30]===Symbol.for("react.memo_cache_sentinel")?(_=[K],e[30]=_):_=e[30];let c;e[31]!==o?(c=h.jsx(Q,{data:o,options:R,plugins:_}),e[31]=o,e[32]=c):c=e[32];let m;e[33]!==i||e[34]!==c?(m=h.jsx(J,{children:h.jsx("div",{className:"chart-container",style:i,children:c})}),e[33]=i,e[34]=c,e[35]=m):m=e[35];let C;return e[36]!==n||e[37]!==r||e[38]!==m?(C=h.jsx(G,{title:D,description:F,category:$.Policy,filter:n,data:r,filename:"central_procurement",children:m}),e[36]=n,e[37]=r,e[38]=m,e[39]=C):C=e[39],C}function X(e){return e.nren}export{ce as default}; diff --git a/compendium_v2/static/CentralProcurement-C2sliv5Z.js b/compendium_v2/static/CentralProcurement-C2sliv5Z.js new file mode 100644 index 0000000000000000000000000000000000000000..17548f3c07b0d0235af7a8960044e61978f9acf7 --- /dev/null +++ b/compendium_v2/static/CentralProcurement-C2sliv5Z.js @@ -0,0 +1 @@ +import{c as R,r as Y,F as I,j as h,S as T,t as $}from"./index-DBbSOdjk.js";import{C as L,a as O,L as V,B as k,p as A,c as M,d as U,u as Z,o as q,D as z,F as G,f as H}from"./useData-CcKTpALT.js";import{p as J}from"./chartjs-plugin-datalabels.esm-C6J4S2ma.js";import{B as K}from"./index-DyJczNpq.js";import{a as Q}from"./charthelpers-CHBq5wBZ.js";import"./SideBar-DfD7Pj8p.js";import"./xlsx-BHRztzV8.js";import"./index-DkYuYqrz.js";import"./hook-D9Tuu5oJ.js";L.register(O,V,k,A,M,U);function ce(){const e=R.c(39),j=X,{filterSelection:t,setFilterSelection:a}=Y.useContext(I),{data:b,years:d,nrens:y}=Z("/api/central-procurement",a,j);let l,n,r,g;if(e[0]!==b||e[1]!==t||e[2]!==y||e[3]!==a||e[4]!==d){let m;e[9]!==t.selectedNrens||e[10]!==t.selectedYears?(m=E=>t.selectedYears.includes(E.year)&&t.selectedNrens.includes(E.nren),e[9]=t.selectedNrens,e[10]=t.selectedYears,e[11]=m):m=e[11],r=b.filter(m),l=q(r,"amount","Procurement Value");let s;e[12]!==d?(s=[...d],e[12]=d,e[13]=s):s=e[13];let f;e[14]!==y?(f=y.values(),e[14]=y,e[15]=f):f=e[15];let u;e[16]!==f?(u=[...f],e[16]=f,e[17]=u):u=e[17];let p;e[18]!==s||e[19]!==u?(p={availableYears:s,availableNrens:u},e[18]=s,e[19]=u,e[20]=p):p=e[20];let C;e[21]!==t||e[22]!==a||e[23]!==p?(C=h.jsx(G,{filterOptions:p,filterSelection:t,setFilterSelection:a}),e[21]=t,e[22]=a,e[23]=p,e[24]=C):C=e[24],n=C,g=Array.from(new Set(r.map(W))),e[0]=b,e[1]=t,e[2]=y,e[3]=a,e[4]=d,e[5]=l,e[6]=n,e[7]=r,e[8]=g}else l=e[5],n=e[6],r=e[7],g=e[8];const v=g.length,P=Math.max(v*t.selectedYears.length*1.5+5,50),B=$["central-procurement"];let x;e[25]===Symbol.for("react.memo_cache_sentinel")?(x=h.jsx("span",{children:"Some NRENs centrally procure software for their customers. The graph below shows the total value (in Euro) of software procured in the previous year by the NRENs. Please note you can only see the select NRENs which carry out this type of procurement. Those who do not offer this are not selectable."}),e[25]=x):x=e[25];const D=x;let N;e[26]===Symbol.for("react.memo_cache_sentinel")?(N=Q({title:"Software Procurement Value",valueTransform(m){return`${new Intl.NumberFormat(void 0,{style:"currency",currency:"EUR",trailingZeroDisplay:"stripIfInteger"}).format(m)}`}}),e[26]=N):N=e[26];const F=N,w=`${P}rem`;let o;e[27]!==w?(o={height:w},e[27]=w,e[28]=o):o=e[28];let S;e[29]===Symbol.for("react.memo_cache_sentinel")?(S=[J],e[29]=S):S=e[29];let i;e[30]!==l?(i=h.jsx(K,{data:l,options:F,plugins:S}),e[30]=l,e[31]=i):i=e[31];let c;e[32]!==o||e[33]!==i?(c=h.jsx(H,{children:h.jsx("div",{className:"chart-container",style:o,children:i})}),e[32]=o,e[33]=i,e[34]=c):c=e[34];let _;return e[35]!==n||e[36]!==r||e[37]!==c?(_=h.jsx(z,{title:B,description:D,category:T.Policy,filter:n,data:r,filename:"central_procurement",children:c}),e[35]=n,e[36]=r,e[37]=c,e[38]=_):_=e[38],_}function W(e){return e.nren}function X(e){return e.amount!=null}export{ce as default}; diff --git a/compendium_v2/static/CertificateProvider-B1guSjqT.js b/compendium_v2/static/CertificateProvider-Bvo47nf9.js similarity index 81% rename from compendium_v2/static/CertificateProvider-B1guSjqT.js rename to compendium_v2/static/CertificateProvider-Bvo47nf9.js index 20c1e2adc9ce670bcd1407fd888926f56266b4fd..9cd0c0ca4d195a428ae15bd696e51562e8d4d57c 100644 --- a/compendium_v2/static/CertificateProvider-B1guSjqT.js +++ b/compendium_v2/static/CertificateProvider-Bvo47nf9.js @@ -1 +1 @@ -import{c as _,r as Y,F as j,j as S,t as k,S as D}from"./index-CgRqQtHZ.js";import{u as E,g as P,D as T,F as w,f as F}from"./useData-CnR6ocTl.js";import{P as L}from"./PillTable-DC6FlsPO.js";import"./SideBar-Dgfa8b_s.js";import"./xlsx-BHRztzV8.js";import"./index-DgKDGaow.js";import"./hook-DDOSKqdF.js";import"./ColorPill-BRQzvq49.js";import"./Table-ggua9_yJ.js";function G(){const e=_.c(29),{filterSelection:t,setFilterSelection:c}=Y.useContext(j),{data:N,years:x,nrens:b}=E("/api/certificate-providers",c);let s,n;if(e[0]!==N||e[1]!==t.selectedNrens||e[2]!==t.selectedYears){let u;e[5]!==t.selectedNrens||e[6]!==t.selectedYears?(u=g=>t.selectedYears.includes(g.year)&&t.selectedNrens.includes(g.nren),e[5]=t.selectedNrens,e[6]=t.selectedYears,e[7]=u):u=e[7],s=N.filter(u),n=P(s,"provider_names"),e[0]=N,e[1]=t.selectedNrens,e[2]=t.selectedYears,e[3]=s,e[4]=n}else s=e[3],n=e[4];const v=n;let r;e[8]!==x?(r=[...x],e[8]=x,e[9]=r):r=e[9];let i;e[10]!==b?(i=b.values(),e[10]=b,e[11]=i):i=e[11];let l;e[12]!==i?(l=[...i],e[12]=i,e[13]=l):l=e[13];let o;e[14]!==r||e[15]!==l?(o={availableYears:r,availableNrens:l},e[14]=r,e[15]=l,e[16]=o):o=e[16];let f;e[17]!==t||e[18]!==c||e[19]!==o?(f=S.jsx(w,{filterOptions:o,filterSelection:t,setFilterSelection:c,coloredYears:!0}),e[17]=t,e[18]=c,e[19]=o,e[20]=f):f=e[20];const C=f;let d;e[21]===Symbol.for("react.memo_cache_sentinel")?(d=["TCS","Digicert","Sectigo (outside of TCS)","Let's Encrypt","Entrust Datacard"],e[21]=d):d=e[21];const h=d;let p;e[22]===Symbol.for("react.memo_cache_sentinel")?(p=new Map([["Sectigo (outside of TCS)","Sectigo"]]),e[22]=p):p=e[22];const y=p;let a;e[23]!==v?(a=S.jsx(F,{children:S.jsx(L,{columns:h,dataLookup:v,circle:!0,columnLookup:y})}),e[23]=v,e[24]=a):a=e[24];let m;return e[25]!==C||e[26]!==s||e[27]!==a?(m=S.jsx(T,{title:k["certificate-provider"],description:"The table below shows the kinds of Network Certificate Providers used by NRENs.",category:D.Network,filter:C,data:s,filename:"certificate_provider_nrens_per_year",children:a}),e[25]=C,e[26]=s,e[27]=a,e[28]=m):m=e[28],m}export{G as default}; +import{c as _,r as Y,F as j,j as S,t as k,S as D}from"./index-DBbSOdjk.js";import{u as E,g as P,D as T,F as w,f as F}from"./useData-CcKTpALT.js";import{P as L}from"./PillTable-CIcKqQJh.js";import"./SideBar-DfD7Pj8p.js";import"./xlsx-BHRztzV8.js";import"./index-DkYuYqrz.js";import"./hook-D9Tuu5oJ.js";import"./ColorPill-CuYEYQ56.js";import"./Table-DNomfHX4.js";function G(){const e=_.c(29),{filterSelection:t,setFilterSelection:c}=Y.useContext(j),{data:N,years:x,nrens:b}=E("/api/certificate-providers",c);let s,n;if(e[0]!==N||e[1]!==t.selectedNrens||e[2]!==t.selectedYears){let u;e[5]!==t.selectedNrens||e[6]!==t.selectedYears?(u=g=>t.selectedYears.includes(g.year)&&t.selectedNrens.includes(g.nren),e[5]=t.selectedNrens,e[6]=t.selectedYears,e[7]=u):u=e[7],s=N.filter(u),n=P(s,"provider_names"),e[0]=N,e[1]=t.selectedNrens,e[2]=t.selectedYears,e[3]=s,e[4]=n}else s=e[3],n=e[4];const v=n;let r;e[8]!==x?(r=[...x],e[8]=x,e[9]=r):r=e[9];let i;e[10]!==b?(i=b.values(),e[10]=b,e[11]=i):i=e[11];let l;e[12]!==i?(l=[...i],e[12]=i,e[13]=l):l=e[13];let o;e[14]!==r||e[15]!==l?(o={availableYears:r,availableNrens:l},e[14]=r,e[15]=l,e[16]=o):o=e[16];let f;e[17]!==t||e[18]!==c||e[19]!==o?(f=S.jsx(w,{filterOptions:o,filterSelection:t,setFilterSelection:c,coloredYears:!0}),e[17]=t,e[18]=c,e[19]=o,e[20]=f):f=e[20];const C=f;let d;e[21]===Symbol.for("react.memo_cache_sentinel")?(d=["TCS","Digicert","Sectigo (outside of TCS)","Let's Encrypt","Entrust Datacard"],e[21]=d):d=e[21];const h=d;let p;e[22]===Symbol.for("react.memo_cache_sentinel")?(p=new Map([["Sectigo (outside of TCS)","Sectigo"]]),e[22]=p):p=e[22];const y=p;let a;e[23]!==v?(a=S.jsx(F,{children:S.jsx(L,{columns:h,dataLookup:v,circle:!0,columnLookup:y})}),e[23]=v,e[24]=a):a=e[24];let m;return e[25]!==C||e[26]!==s||e[27]!==a?(m=S.jsx(T,{title:k["certificate-provider"],description:"The table below shows the kinds of Network Certificate Providers used by NRENs.",category:D.Network,filter:C,data:s,filename:"certificate_provider_nrens_per_year",children:a}),e[25]=C,e[26]=s,e[27]=a,e[28]=m):m=e[28],m}export{G as default}; diff --git a/compendium_v2/static/ChargingStructure-v8Ivek4k.js b/compendium_v2/static/ChargingStructure-CPkeaV7G.js similarity index 83% rename from compendium_v2/static/ChargingStructure-v8Ivek4k.js rename to compendium_v2/static/ChargingStructure-CPkeaV7G.js index 19a8f82fe69d4986745ada84b7bd861b876df924..91479751ad7192457efc36e631b09d27e2552e46 100644 --- a/compendium_v2/static/ChargingStructure-v8Ivek4k.js +++ b/compendium_v2/static/ChargingStructure-CPkeaV7G.js @@ -1,3 +1,3 @@ -import{c as Y,r as j,F as v,j as p,t as E,S as F}from"./index-CgRqQtHZ.js";import{u as D,g as R,D as k,F as w,f as P}from"./useData-CnR6ocTl.js";import{P as T}from"./PillTable-DC6FlsPO.js";import"./SideBar-Dgfa8b_s.js";import"./xlsx-BHRztzV8.js";import"./index-DgKDGaow.js";import"./hook-DDOSKqdF.js";import"./ColorPill-BRQzvq49.js";import"./Table-ggua9_yJ.js";function G(){const e=Y.c(29),C=L,{filterSelection:t,setFilterSelection:c}=j.useContext(v),{data:g,years:b,nrens:N}=D("/api/charging",c,C);let a,f;if(e[0]!==g||e[1]!==t.selectedNrens||e[2]!==t.selectedYears){let m;e[5]!==t.selectedNrens||e[6]!==t.selectedYears?(m=x=>t.selectedYears.includes(x.year)&&t.selectedNrens.includes(x.nren),e[5]=t.selectedNrens,e[6]=t.selectedYears,e[7]=m):m=e[7],a=g.filter(m),f=R(a,"fee_type"),e[0]=g,e[1]=t.selectedNrens,e[2]=t.selectedYears,e[3]=a,e[4]=f}else a=e[3],f=e[4];const _=f;let r;e[8]!==b?(r=[...b],e[8]=b,e[9]=r):r=e[9];let i;e[10]!==N?(i=N.values(),e[10]=N,e[11]=i):i=e[11];let l;e[12]!==i?(l=[...i],e[12]=i,e[13]=l):l=e[13];let n;e[14]!==r||e[15]!==l?(n={availableYears:r,availableNrens:l},e[14]=r,e[15]=l,e[16]=n):n=e[16];let u;e[17]!==t||e[18]!==c||e[19]!==n?(u=p.jsx(w,{filterOptions:n,filterSelection:t,setFilterSelection:c,coloredYears:!0}),e[17]=t,e[18]=c,e[19]=n,e[20]=u):u=e[20];const y=u;let s,d;e[21]===Symbol.for("react.memo_cache_sentinel")?(s=["Flat fee based on bandwidth","Usage based fee","Combination flat fee & usage basedfee","No Direct Charge","Other"],d=new Map([[s[0],"flat_fee"],[s[1],"usage_based_fee"],[s[2],"combination"],[s[3],"no_charge"],[s[4],"other"]]),e[21]=s,e[22]=d):(s=e[21],d=e[22]);const S=d;let o;e[23]!==_?(o=p.jsx(P,{children:p.jsx(T,{columns:s,dataLookup:_,columnLookup:S})}),e[23]=_,e[24]=o):o=e[24];let h;return e[25]!==y||e[26]!==a||e[27]!==o?(h=p.jsx(k,{title:E.charging,description:`The charging structure is the way in which NRENs charge their customers for the services they provide. +import{c as Y,r as j,F as v,j as p,t as E,S as F}from"./index-DBbSOdjk.js";import{u as D,g as R,D as k,F as w,f as P}from"./useData-CcKTpALT.js";import{P as T}from"./PillTable-CIcKqQJh.js";import"./SideBar-DfD7Pj8p.js";import"./xlsx-BHRztzV8.js";import"./index-DkYuYqrz.js";import"./hook-D9Tuu5oJ.js";import"./ColorPill-CuYEYQ56.js";import"./Table-DNomfHX4.js";function G(){const e=Y.c(29),C=L,{filterSelection:t,setFilterSelection:c}=j.useContext(v),{data:g,years:b,nrens:N}=D("/api/charging",c,C);let a,f;if(e[0]!==g||e[1]!==t.selectedNrens||e[2]!==t.selectedYears){let m;e[5]!==t.selectedNrens||e[6]!==t.selectedYears?(m=x=>t.selectedYears.includes(x.year)&&t.selectedNrens.includes(x.nren),e[5]=t.selectedNrens,e[6]=t.selectedYears,e[7]=m):m=e[7],a=g.filter(m),f=R(a,"fee_type"),e[0]=g,e[1]=t.selectedNrens,e[2]=t.selectedYears,e[3]=a,e[4]=f}else a=e[3],f=e[4];const _=f;let r;e[8]!==b?(r=[...b],e[8]=b,e[9]=r):r=e[9];let i;e[10]!==N?(i=N.values(),e[10]=N,e[11]=i):i=e[11];let l;e[12]!==i?(l=[...i],e[12]=i,e[13]=l):l=e[13];let n;e[14]!==r||e[15]!==l?(n={availableYears:r,availableNrens:l},e[14]=r,e[15]=l,e[16]=n):n=e[16];let u;e[17]!==t||e[18]!==c||e[19]!==n?(u=p.jsx(w,{filterOptions:n,filterSelection:t,setFilterSelection:c,coloredYears:!0}),e[17]=t,e[18]=c,e[19]=n,e[20]=u):u=e[20];const y=u;let s,d;e[21]===Symbol.for("react.memo_cache_sentinel")?(s=["Flat fee based on bandwidth","Usage based fee","Combination flat fee & usage basedfee","No Direct Charge","Other"],d=new Map([[s[0],"flat_fee"],[s[1],"usage_based_fee"],[s[2],"combination"],[s[3],"no_charge"],[s[4],"other"]]),e[21]=s,e[22]=d):(s=e[21],d=e[22]);const S=d;let o;e[23]!==_?(o=p.jsx(P,{children:p.jsx(T,{columns:s,dataLookup:_,columnLookup:S})}),e[23]=_,e[24]=o):o=e[24];let h;return e[25]!==y||e[26]!==a||e[27]!==o?(h=p.jsx(k,{title:E.charging,description:`The charging structure is the way in which NRENs charge their customers for the services they provide. The charging structure can be based on a flat fee, usage based fee, a combination of both, or no direct charge. By selecting multiple years and NRENs, the table can be used to compare the charging structure of NRENs.`,category:F.Organisation,filter:y,data:a,filename:"charging_mechanism_of_nrens_per_year",children:o}),e[25]=y,e[26]=a,e[27]=o,e[28]=h):h=e[28],h}function L(e){return e.fee_type!=null}export{G as default}; diff --git a/compendium_v2/static/ColorPill-BRQzvq49.js b/compendium_v2/static/ColorPill-CuYEYQ56.js similarity index 92% rename from compendium_v2/static/ColorPill-BRQzvq49.js rename to compendium_v2/static/ColorPill-CuYEYQ56.js index 32174fabad4b8e08c69997257781335955895426..57f13e5a47e097bbea221b737fbb40e2b75d0089 100644 --- a/compendium_v2/static/ColorPill-BRQzvq49.js +++ b/compendium_v2/static/ColorPill-CuYEYQ56.js @@ -1 +1 @@ -import{c as m,j as a}from"./index-CgRqQtHZ.js";function f(p){const t=m.c(10),{year:e,active:s,tooltip:i,rounded:c}=p,n=(c===void 0?!1:c)?"30px":"75px";let d;t[0]!==n?(d={width:n,height:"30px",margin:"2px"},t[0]=n,t[1]=d):d=t[1];const l=d;let o;t[2]!==s||t[3]!==l||t[4]!==i||t[5]!==e?(o=s&&i?a.jsx("div",{className:`rounded-pill bg-color-of-the-year-${e%9} bottom-tooltip pill-shadow`,style:l,"data-description":`${e}: ${i}`}):s?a.jsx("div",{className:`rounded-pill bg-color-of-the-year-${e%9} bottom-tooltip-small`,style:l,"data-description":e}):a.jsx("div",{className:"rounded-pill bg-color-of-the-year-blank",style:l}),t[2]=s,t[3]=l,t[4]=i,t[5]=e,t[6]=o):o=t[6];let r;return t[7]!==o||t[8]!==e?(r=a.jsx("div",{className:"d-inline-block",children:o},e),t[7]=o,t[8]=e,t[9]=r):r=t[9],r}export{f as C}; +import{c as m,j as a}from"./index-DBbSOdjk.js";function f(p){const t=m.c(10),{year:e,active:s,tooltip:i,rounded:c}=p,n=(c===void 0?!1:c)?"30px":"75px";let d;t[0]!==n?(d={width:n,height:"30px",margin:"2px"},t[0]=n,t[1]=d):d=t[1];const l=d;let o;t[2]!==s||t[3]!==l||t[4]!==i||t[5]!==e?(o=s&&i?a.jsx("div",{className:`rounded-pill bg-color-of-the-year-${e%9} bottom-tooltip pill-shadow`,style:l,"data-description":`${e}: ${i}`}):s?a.jsx("div",{className:`rounded-pill bg-color-of-the-year-${e%9} bottom-tooltip-small`,style:l,"data-description":e}):a.jsx("div",{className:"rounded-pill bg-color-of-the-year-blank",style:l}),t[2]=s,t[3]=l,t[4]=i,t[5]=e,t[6]=o):o=t[6];let r;return t[7]!==o||t[8]!==e?(r=a.jsx("div",{className:"d-inline-block",children:o},e),t[7]=o,t[8]=e,t[9]=r):r=t[9],r}export{f as C}; diff --git a/compendium_v2/static/ConnectedInstitutionsURLs-C5Vh7UoZ.js b/compendium_v2/static/ConnectedInstitutionsURLs-BmsNaWXO.js similarity index 78% rename from compendium_v2/static/ConnectedInstitutionsURLs-C5Vh7UoZ.js rename to compendium_v2/static/ConnectedInstitutionsURLs-BmsNaWXO.js index a06e8d0b4a0dd5b595a399c907428a22937671b1..8750ac9332eb0d6c9f79ef8da84723c75fbdf5c3 100644 --- a/compendium_v2/static/ConnectedInstitutionsURLs-C5Vh7UoZ.js +++ b/compendium_v2/static/ConnectedInstitutionsURLs-BmsNaWXO.js @@ -1 +1 @@ -import{c as g,r as y,F as C,j as x,t as L,S as R}from"./index-CgRqQtHZ.js";import{u as S,q as k,k as v,i as F,D as T,F as U,f as w,s as E}from"./useData-CnR6ocTl.js";import{N as O}from"./NrenYearTable-Q6UAdf8a.js";import"./SideBar-Dgfa8b_s.js";import"./xlsx-BHRztzV8.js";import"./index-DgKDGaow.js";import"./hook-DDOSKqdF.js";import"./Table-ggua9_yJ.js";function G(){const t=g.c(24),{filterSelection:e,setFilterSelection:s}=y.useContext(C),{data:i,nrens:a}=S("/api/institution-urls",s);let n,o,u;if(t[0]!==i||t[1]!==e||t[2]!==a||t[3]!==s){const j=i?k(i):[];let d;t[7]!==e.selectedNrens?(d=N=>e.selectedNrens.includes(N.nren),t[7]=e.selectedNrens,t[8]=d):d=t[8];const D=j.filter(d),h=v(D);n=F(h,_);let m;t[9]===Symbol.for("react.memo_cache_sentinel")?(m=[],t[9]=m):m=t[9];let l;t[10]!==a?(l=a.values(),t[10]=a,t[11]=l):l=t[11];let c;t[12]!==l?(c={availableYears:m,availableNrens:[...l]},t[12]=l,t[13]=c):c=t[13];let p;t[14]!==e||t[15]!==s||t[16]!==c?(p=x.jsx(U,{filterOptions:c,filterSelection:e,setFilterSelection:s}),t[14]=e,t[15]=s,t[16]=c,t[17]=p):p=t[17],o=p,u=D.map(Y),t[0]=i,t[1]=e,t[2]=a,t[3]=s,t[4]=n,t[5]=o,t[6]=u}else n=t[4],o=t[5],u=t[6];const b=u;let r;t[18]!==n?(r=x.jsx(w,{children:x.jsx(O,{data:n,columnTitle:"Institution URLs",keysAreURLs:!0,noDots:!0})}),t[18]=n,t[19]=r):r=t[19];let f;return t[20]!==b||t[21]!==o||t[22]!==r?(f=x.jsx(T,{title:L["institutions-urls"],description:"Many NRENs have a page on their website listing user institutions. Links to the pages are shown in the table below.",category:R.ConnectedUsers,filter:o,data:b,filename:"institution_urls",children:r}),t[20]=b,t[21]=o,t[22]=r,t[23]=f):f=t[23],f}function Y(t){return{...t,urls:(t.urls??[]).join(", ")}}function _(t,e){const s=E(e);if(s!=null)for(const[i,a]of Object.entries(s))t[i]=a}export{G as default}; +import{c as g,r as y,F as C,j as x,t as L,S as R}from"./index-DBbSOdjk.js";import{u as S,q as k,k as v,i as F,D as T,F as U,f as w,s as E}from"./useData-CcKTpALT.js";import{N as O}from"./NrenYearTable-C1JRhqy_.js";import"./SideBar-DfD7Pj8p.js";import"./xlsx-BHRztzV8.js";import"./index-DkYuYqrz.js";import"./hook-D9Tuu5oJ.js";import"./Table-DNomfHX4.js";function G(){const t=g.c(24),{filterSelection:e,setFilterSelection:s}=y.useContext(C),{data:i,nrens:a}=S("/api/institution-urls",s);let n,o,u;if(t[0]!==i||t[1]!==e||t[2]!==a||t[3]!==s){const j=i?k(i):[];let d;t[7]!==e.selectedNrens?(d=N=>e.selectedNrens.includes(N.nren),t[7]=e.selectedNrens,t[8]=d):d=t[8];const D=j.filter(d),h=v(D);n=F(h,_);let m;t[9]===Symbol.for("react.memo_cache_sentinel")?(m=[],t[9]=m):m=t[9];let l;t[10]!==a?(l=a.values(),t[10]=a,t[11]=l):l=t[11];let c;t[12]!==l?(c={availableYears:m,availableNrens:[...l]},t[12]=l,t[13]=c):c=t[13];let p;t[14]!==e||t[15]!==s||t[16]!==c?(p=x.jsx(U,{filterOptions:c,filterSelection:e,setFilterSelection:s}),t[14]=e,t[15]=s,t[16]=c,t[17]=p):p=t[17],o=p,u=D.map(Y),t[0]=i,t[1]=e,t[2]=a,t[3]=s,t[4]=n,t[5]=o,t[6]=u}else n=t[4],o=t[5],u=t[6];const b=u;let r;t[18]!==n?(r=x.jsx(w,{children:x.jsx(O,{data:n,columnTitle:"Institution URLs",keysAreURLs:!0,noDots:!0})}),t[18]=n,t[19]=r):r=t[19];let f;return t[20]!==b||t[21]!==o||t[22]!==r?(f=x.jsx(T,{title:L["institutions-urls"],description:"Many NRENs have a page on their website listing user institutions. Links to the pages are shown in the table below.",category:R.ConnectedUsers,filter:o,data:b,filename:"institution_urls",children:r}),t[20]=b,t[21]=o,t[22]=r,t[23]=f):f=t[23],f}function Y(t){return{...t,urls:(t.urls??[]).join(", ")}}function _(t,e){const s=E(e);if(s!=null)for(const[i,a]of Object.entries(s))t[i]=a}export{G as default}; diff --git a/compendium_v2/static/ConnectedUser-CWHDfZp4.js b/compendium_v2/static/ConnectedUser-CfYJAE0v.js similarity index 95% rename from compendium_v2/static/ConnectedUser-CWHDfZp4.js rename to compendium_v2/static/ConnectedUser-CfYJAE0v.js index 208c16e49860e91137046d384ce001fbaaf160c5..f5c0c7fe0f6e46dddf81113b11186a6b59ca61e9 100644 --- a/compendium_v2/static/ConnectedUser-CWHDfZp4.js +++ b/compendium_v2/static/ConnectedUser-CfYJAE0v.js @@ -1 +1 @@ -import{a as t,t as l,j as o,L as Y,c as F,r as U,F as D,S as A,b as T,d as P,U as j}from"./index-CgRqQtHZ.js";import{u as G,r as u,D as $,F as q,f as B}from"./useData-CnR6ocTl.js";import{S as z}from"./ScrollableMatrix-BVG39bM8.js";import"./SideBar-Dgfa8b_s.js";import"./xlsx-BHRztzV8.js";import"./index-DgKDGaow.js";import"./hook-DDOSKqdF.js";import"./Table-ggua9_yJ.js";const I={[t.ConnectedProportion]:l["connected-proportion"],[t.ConnectivityLevel]:l["connectivity-level"],[t.ConnectionCarrier]:l["connection-carrier"],[t.ConnectivityLoad]:l["connectivity-load"],[t.ConnectivityGrowth]:l["connectivity-growth"],[t.CommercialChargingLevel]:l["commercial-charging-level"],[t.CommercialConnectivity]:l["commercial-connectivity"]},H={[t.ConnectedProportion]:o.jsxs("span",{children:["European NRENs all have different connectivity remits, as is shown in the table below. The categories of institutions make use of the ISCED 2011 classification system, the UNESCO scheme for International Standard Classification of Education.",o.jsx("br",{}),"The table shows whether a particular category of institution falls within the connectivity remit of the NREN, the actual number of such institutions connected, the % market share this represents, and the actual number of end users served in the category."]}),[t.ConnectivityLevel]:o.jsxs("span",{children:["The table below shows the average level of connectivity for each category of institution. The connectivity remit of different NRENs is shown on a different page, and NRENs are asked, at a minimum, to provide information about the typical and highest capacities (in Mbit/s) at which Universities and Research Institutes are connected.",o.jsx("br",{}),"NRENs are also asked to show proportionally how many institutions are connected at the highest capacity they offer."]}),[t.ConnectionCarrier]:o.jsxs("span",{children:["The table below shows the different mechanisms employed by NRENs to carry traffic to the different types of users they serve. Not all NRENs connect all of the types of institution listed below - details of connectivity remits can be found here: ",o.jsx(Y,{to:"/connected-proportion",className:"",children:o.jsx("span",{children:I[t.ConnectedProportion]})})]}),[t.ConnectivityLoad]:o.jsx("span",{children:"The table below shows the traffic load in Mbit/s to and from institutions served by NRENs; both the average load, and peak load, when given. The types of institutions are broken down using the ISCED 2011 classification system (the UNESCO scheme for International Standard Classification of Education), plus other types."}),[t.ConnectivityGrowth]:o.jsx("span",{children:"The table below illustrates the anticipated traffic growth within NREN networks over the next three years."}),[t.CommercialChargingLevel]:o.jsx("span",{children:"The table below outlines the typical charging levels for various types of commercial connections."}),[t.CommercialConnectivity]:o.jsx("span",{children:"The table below outlines the types of commercial organizations NRENs connect."})},L={[t.ConnectedProportion]:{"Remit cover connectivity":"coverage","Number of institutions connected":"number_connected","Percentage market share of institutions connected":"market_share","Number of users served":"users_served"},[t.ConnectivityLevel]:{"Typical link speed (Mbit/s):":"typical_speed","Highest speed link (Mbit/s):":"highest_speed","Proportionally how many institutions in this category are connected at the highest capacity? (%):":"highest_speed_proportion"},[t.ConnectionCarrier]:{"Commercial Provider Backbone":"commercial_provider_backbone","NREN Local Loops":"nren_local_loops","Regional NREN Backbone":"regional_nren_backbone",MAN:"man",Other:"other"},[t.ConnectivityLoad]:{"Average Load From Institutions (Mbit/s)":"average_load_from_institutions","Average Load To Institutions (Mbit/s)":"average_load_to_institutions","Peak Load To Institution (Mbit/s)":"peak_load_to_institutions","Peak Load From Institution (Mbit/s)":"peak_load_from_institutions"},[t.ConnectivityGrowth]:{"Percentage growth":"growth"},[t.CommercialChargingLevel]:{"No charges applied if requested by R&E users":"no_charges_if_r_e_requested","Same charging model as for R&E users":"same_as_r_e_charges","Charges typically higher than for R&E users":"higher_than_r_e_charges","Charges typically lower than for R&E users":"lower_than_r_e_charges"},[t.CommercialConnectivity]:{"No - but we offer a direct or IX peering":"no_but_direct_peering","No - not eligible for policy reasons":"no_policy","No - financial restrictions (NREN is unable to charge/recover costs)":"no_financial","No - other reason / unsure":"no_other","Yes - National NREN access only":"yes_national_nren","Yes - Including transit to other networks":"yes_incl_other","Yes - only if sponsored by a connected institution":"yes_if_sponsored"}};function te(M){const e=F.c(36),{page:n}=M,O=`/api/connected-${n.toString()}`,{filterSelection:i,setFilterSelection:y}=U.useContext(D),{data:_,years:b,nrens:N}=G(O,y);let r,a,c,s;if(e[0]!==_||e[1]!==i.selectedNrens||e[2]!==i.selectedYears||e[3]!==n){let C;e[8]!==i.selectedNrens||e[9]!==i.selectedYears?(C=S=>i.selectedYears.includes(S.year)&&i.selectedNrens.includes(S.nren),e[8]=i.selectedNrens,e[9]=i.selectedYears,e[10]=C):C=e[10],s=_.filter(C),c=!1,n==t.CommercialConnectivity?(r=T,c=!0,a=u(s,Object.keys(T),void 0)):n==t.CommercialChargingLevel?(r=P,c=!0,a=u(s,Object.keys(P),void 0)):n==t.ConnectionCarrier?(r=j,c=!0,a=u(s,["carry_mechanism"],"user_category")):n==t.ConnectedProportion?(r=j,a=u(s,Object.values(L[n]),"user_category",!1)):(r=j,a=u(s,Object.values(L[n]),"user_category",!1)),e[0]=_,e[1]=i.selectedNrens,e[2]=i.selectedYears,e[3]=n,e[4]=r,e[5]=a,e[6]=c,e[7]=s}else r=e[4],a=e[5],c=e[6],s=e[7];let h;e[11]!==b?(h=[...b],e[11]=b,e[12]=h):h=e[12];let d;e[13]!==N?(d=N.values(),e[13]=N,e[14]=d):d=e[14];let f;e[15]!==d?(f=[...d],e[15]=d,e[16]=f):f=e[16];let p;e[17]!==h||e[18]!==f?(p={availableYears:h,availableNrens:f},e[17]=h,e[18]=f,e[19]=p):p=e[19];let g;e[20]!==i||e[21]!==y||e[22]!==p?(g=o.jsx(q,{filterOptions:p,filterSelection:i,setFilterSelection:y}),e[20]=i,e[21]=y,e[22]=p,e[23]=g):g=e[23];const w=g,E=L[n],k=`nren_connected_${n.toString()}`,x=I[n],R=H[n];let m;e[24]!==r||e[25]!==a||e[26]!==c||e[27]!==E?(m=o.jsx(B,{children:o.jsx(z,{dataLookup:a,rowInfo:E,isTickIcon:c,categoryLookup:r})}),e[24]=r,e[25]=a,e[26]=c,e[27]=E,e[28]=m):m=e[28];let v;return e[29]!==k||e[30]!==w||e[31]!==s||e[32]!==x||e[33]!==R||e[34]!==m?(v=o.jsx($,{title:x,description:R,category:A.ConnectedUsers,filter:w,data:s,filename:k,children:m}),e[29]=k,e[30]=w,e[31]=s,e[32]=x,e[33]=R,e[34]=m,e[35]=v):v=e[35],v}export{te as default}; +import{a as t,t as l,j as o,L as Y,c as F,r as U,F as D,S as A,b as T,d as P,U as j}from"./index-DBbSOdjk.js";import{u as G,r as u,D as $,F as q,f as B}from"./useData-CcKTpALT.js";import{S as z}from"./ScrollableMatrix-CNydABqZ.js";import"./SideBar-DfD7Pj8p.js";import"./xlsx-BHRztzV8.js";import"./index-DkYuYqrz.js";import"./hook-D9Tuu5oJ.js";import"./Table-DNomfHX4.js";const I={[t.ConnectedProportion]:l["connected-proportion"],[t.ConnectivityLevel]:l["connectivity-level"],[t.ConnectionCarrier]:l["connection-carrier"],[t.ConnectivityLoad]:l["connectivity-load"],[t.ConnectivityGrowth]:l["connectivity-growth"],[t.CommercialChargingLevel]:l["commercial-charging-level"],[t.CommercialConnectivity]:l["commercial-connectivity"]},H={[t.ConnectedProportion]:o.jsxs("span",{children:["European NRENs all have different connectivity remits, as is shown in the table below. The categories of institutions make use of the ISCED 2011 classification system, the UNESCO scheme for International Standard Classification of Education.",o.jsx("br",{}),"The table shows whether a particular category of institution falls within the connectivity remit of the NREN, the actual number of such institutions connected, the % market share this represents, and the actual number of end users served in the category."]}),[t.ConnectivityLevel]:o.jsxs("span",{children:["The table below shows the average level of connectivity for each category of institution. The connectivity remit of different NRENs is shown on a different page, and NRENs are asked, at a minimum, to provide information about the typical and highest capacities (in Mbit/s) at which Universities and Research Institutes are connected.",o.jsx("br",{}),"NRENs are also asked to show proportionally how many institutions are connected at the highest capacity they offer."]}),[t.ConnectionCarrier]:o.jsxs("span",{children:["The table below shows the different mechanisms employed by NRENs to carry traffic to the different types of users they serve. Not all NRENs connect all of the types of institution listed below - details of connectivity remits can be found here: ",o.jsx(Y,{to:"/connected-proportion",className:"",children:o.jsx("span",{children:I[t.ConnectedProportion]})})]}),[t.ConnectivityLoad]:o.jsx("span",{children:"The table below shows the traffic load in Mbit/s to and from institutions served by NRENs; both the average load, and peak load, when given. The types of institutions are broken down using the ISCED 2011 classification system (the UNESCO scheme for International Standard Classification of Education), plus other types."}),[t.ConnectivityGrowth]:o.jsx("span",{children:"The table below illustrates the anticipated traffic growth within NREN networks over the next three years."}),[t.CommercialChargingLevel]:o.jsx("span",{children:"The table below outlines the typical charging levels for various types of commercial connections."}),[t.CommercialConnectivity]:o.jsx("span",{children:"The table below outlines the types of commercial organizations NRENs connect."})},L={[t.ConnectedProportion]:{"Remit cover connectivity":"coverage","Number of institutions connected":"number_connected","Percentage market share of institutions connected":"market_share","Number of users served":"users_served"},[t.ConnectivityLevel]:{"Typical link speed (Mbit/s):":"typical_speed","Highest speed link (Mbit/s):":"highest_speed","Proportionally how many institutions in this category are connected at the highest capacity? (%):":"highest_speed_proportion"},[t.ConnectionCarrier]:{"Commercial Provider Backbone":"commercial_provider_backbone","NREN Local Loops":"nren_local_loops","Regional NREN Backbone":"regional_nren_backbone",MAN:"man",Other:"other"},[t.ConnectivityLoad]:{"Average Load From Institutions (Mbit/s)":"average_load_from_institutions","Average Load To Institutions (Mbit/s)":"average_load_to_institutions","Peak Load To Institution (Mbit/s)":"peak_load_to_institutions","Peak Load From Institution (Mbit/s)":"peak_load_from_institutions"},[t.ConnectivityGrowth]:{"Percentage growth":"growth"},[t.CommercialChargingLevel]:{"No charges applied if requested by R&E users":"no_charges_if_r_e_requested","Same charging model as for R&E users":"same_as_r_e_charges","Charges typically higher than for R&E users":"higher_than_r_e_charges","Charges typically lower than for R&E users":"lower_than_r_e_charges"},[t.CommercialConnectivity]:{"No - but we offer a direct or IX peering":"no_but_direct_peering","No - not eligible for policy reasons":"no_policy","No - financial restrictions (NREN is unable to charge/recover costs)":"no_financial","No - other reason / unsure":"no_other","Yes - National NREN access only":"yes_national_nren","Yes - Including transit to other networks":"yes_incl_other","Yes - only if sponsored by a connected institution":"yes_if_sponsored"}};function te(M){const e=F.c(36),{page:n}=M,O=`/api/connected-${n.toString()}`,{filterSelection:i,setFilterSelection:y}=U.useContext(D),{data:_,years:b,nrens:N}=G(O,y);let r,a,c,s;if(e[0]!==_||e[1]!==i.selectedNrens||e[2]!==i.selectedYears||e[3]!==n){let C;e[8]!==i.selectedNrens||e[9]!==i.selectedYears?(C=S=>i.selectedYears.includes(S.year)&&i.selectedNrens.includes(S.nren),e[8]=i.selectedNrens,e[9]=i.selectedYears,e[10]=C):C=e[10],s=_.filter(C),c=!1,n==t.CommercialConnectivity?(r=T,c=!0,a=u(s,Object.keys(T),void 0)):n==t.CommercialChargingLevel?(r=P,c=!0,a=u(s,Object.keys(P),void 0)):n==t.ConnectionCarrier?(r=j,c=!0,a=u(s,["carry_mechanism"],"user_category")):n==t.ConnectedProportion?(r=j,a=u(s,Object.values(L[n]),"user_category",!1)):(r=j,a=u(s,Object.values(L[n]),"user_category",!1)),e[0]=_,e[1]=i.selectedNrens,e[2]=i.selectedYears,e[3]=n,e[4]=r,e[5]=a,e[6]=c,e[7]=s}else r=e[4],a=e[5],c=e[6],s=e[7];let h;e[11]!==b?(h=[...b],e[11]=b,e[12]=h):h=e[12];let d;e[13]!==N?(d=N.values(),e[13]=N,e[14]=d):d=e[14];let f;e[15]!==d?(f=[...d],e[15]=d,e[16]=f):f=e[16];let p;e[17]!==h||e[18]!==f?(p={availableYears:h,availableNrens:f},e[17]=h,e[18]=f,e[19]=p):p=e[19];let g;e[20]!==i||e[21]!==y||e[22]!==p?(g=o.jsx(q,{filterOptions:p,filterSelection:i,setFilterSelection:y}),e[20]=i,e[21]=y,e[22]=p,e[23]=g):g=e[23];const w=g,E=L[n],k=`nren_connected_${n.toString()}`,x=I[n],R=H[n];let m;e[24]!==r||e[25]!==a||e[26]!==c||e[27]!==E?(m=o.jsx(B,{children:o.jsx(z,{dataLookup:a,rowInfo:E,isTickIcon:c,categoryLookup:r})}),e[24]=r,e[25]=a,e[26]=c,e[27]=E,e[28]=m):m=e[28];let v;return e[29]!==k||e[30]!==w||e[31]!==s||e[32]!==x||e[33]!==R||e[34]!==m?(v=o.jsx($,{title:x,description:R,category:A.ConnectedUsers,filter:w,data:s,filename:k,children:m}),e[29]=k,e[30]=w,e[31]=s,e[32]=x,e[33]=R,e[34]=m,e[35]=v):v=e[35],v}export{te as default}; diff --git a/compendium_v2/static/CorporateStrategy-B96fGlR3.js b/compendium_v2/static/CorporateStrategy-B96fGlR3.js new file mode 100644 index 0000000000000000000000000000000000000000..d1225269ef5040774563674a033cd9ecb9722c34 --- /dev/null +++ b/compendium_v2/static/CorporateStrategy-B96fGlR3.js @@ -0,0 +1,3 @@ +import{c as v,r as _,F as b,j as f,t as S,S as k}from"./index-DBbSOdjk.js";import{u as C,q as j,k as E,i as F,D as R,F as T,f as Y}from"./useData-CcKTpALT.js";import{N as w}from"./NrenYearTable-C1JRhqy_.js";import"./SideBar-DfD7Pj8p.js";import"./xlsx-BHRztzV8.js";import"./index-DkYuYqrz.js";import"./hook-D9Tuu5oJ.js";import"./Table-DNomfHX4.js";function H(){const e=v.c(21),u=P,{filterSelection:t,setFilterSelection:i}=_.useContext(b),{data:l,nrens:y}=C("/api/policy",i,u);let a,n;if(e[0]!==l||e[1]!==t.selectedNrens){const N=l?j(l):[];let d;e[4]!==t.selectedNrens?(d=D=>t.selectedNrens.includes(D.nren),e[4]=t.selectedNrens,e[5]=d):d=e[5],a=N.filter(d);const x=E(a);n=F(x,L),e[0]=l,e[1]=t.selectedNrens,e[2]=a,e[3]=n}else a=e[2],n=e[3];const g=n;let c;e[6]===Symbol.for("react.memo_cache_sentinel")?(c=[],e[6]=c):c=e[6];let s;e[7]!==y?(s=y.values(),e[7]=y,e[8]=s):s=e[8];let r;e[9]!==s?(r={availableYears:c,availableNrens:[...s]},e[9]=s,e[10]=r):r=e[10];let p;e[11]!==t||e[12]!==i||e[13]!==r?(p=f.jsx(T,{filterOptions:r,filterSelection:t,setFilterSelection:i}),e[11]=t,e[12]=i,e[13]=r,e[14]=p):p=e[14];const h=p;let o;e[15]!==g?(o=f.jsx(Y,{children:f.jsx(w,{data:g,columnTitle:"Corporate Strategy",noDots:!0,keysAreURLs:!0,removeDecoration:!0})}),e[15]=g,e[16]=o):o=e[16];let m;return e[17]!==h||e[18]!==a||e[19]!==o?(m=f.jsx(R,{title:S["corporate-strategy"],description:`The table below contains links to the NRENs most recent corporate strategic plans. + NRENs are asked if updates have been made to their corporate strategy over the previous year. + To avoid showing outdated links, only the most recent responses are shown.`,category:k.Policy,filter:h,data:a,filename:"nren_corporate_strategy",children:o}),e[17]=h,e[18]=a,e[19]=o,e[20]=m):m=e[20],m}function L(e,u){const t=u.strategic_plan;e[t]=t}function P(e){return!!e.strategic_plan}export{H as default}; diff --git a/compendium_v2/static/CorporateStrategy-TFD4Brq2.js b/compendium_v2/static/CorporateStrategy-TFD4Brq2.js deleted file mode 100644 index 3a70ab11b22ab2114b301fc5a19028612c36dcad..0000000000000000000000000000000000000000 --- a/compendium_v2/static/CorporateStrategy-TFD4Brq2.js +++ /dev/null @@ -1,3 +0,0 @@ -import{c as k,r as C,F as j,j as y,t as E,S as F}from"./index-CgRqQtHZ.js";import{u as R,q as T,k as Y,i as w,D as L,F as P,f as B}from"./useData-CnR6ocTl.js";import{N as q}from"./NrenYearTable-Q6UAdf8a.js";import"./SideBar-Dgfa8b_s.js";import"./xlsx-BHRztzV8.js";import"./index-DgKDGaow.js";import"./hook-DDOSKqdF.js";import"./Table-ggua9_yJ.js";function J(){const e=k.c(23);let l;e[0]===Symbol.for("react.memo_cache_sentinel")?(l=x=>!!x.strategic_plan,e[0]=l):l=e[0];const b=l,{filterSelection:t,setFilterSelection:i}=C.useContext(j),{data:n,nrens:h}=R("/api/policy",i,b);let a,c;if(e[1]!==n||e[2]!==t.selectedNrens){const x=n?T(n):[];let d;e[5]!==t.selectedNrens?(d=D=>t.selectedNrens.includes(D.nren),e[5]=t.selectedNrens,e[6]=d):d=e[6],a=x.filter(d);const v=Y(a);let u;e[7]===Symbol.for("react.memo_cache_sentinel")?(u=(D,S)=>{const _=S.strategic_plan;D[_]=_},e[7]=u):u=e[7],c=w(v,u),e[1]=n,e[2]=t.selectedNrens,e[3]=a,e[4]=c}else a=e[3],c=e[4];const g=c;let p;e[8]===Symbol.for("react.memo_cache_sentinel")?(p=[],e[8]=p):p=e[8];let s;e[9]!==h?(s=h.values(),e[9]=h,e[10]=s):s=e[10];let r;e[11]!==s?(r={availableYears:p,availableNrens:[...s]},e[11]=s,e[12]=r):r=e[12];let m;e[13]!==t||e[14]!==i||e[15]!==r?(m=y.jsx(P,{filterOptions:r,filterSelection:t,setFilterSelection:i}),e[13]=t,e[14]=i,e[15]=r,e[16]=m):m=e[16];const N=m;let o;e[17]!==g?(o=y.jsx(B,{children:y.jsx(q,{data:g,columnTitle:"Corporate Strategy",noDots:!0,keysAreURLs:!0,removeDecoration:!0})}),e[17]=g,e[18]=o):o=e[18];let f;return e[19]!==N||e[20]!==a||e[21]!==o?(f=y.jsx(L,{title:E["corporate-strategy"],description:`The table below contains links to the NRENs most recent corporate strategic plans. - NRENs are asked if updates have been made to their corporate strategy over the previous year. - To avoid showing outdated links, only the most recent responses are shown.`,category:F.Policy,filter:N,data:a,filename:"nren_corporate_strategy",children:o}),e[19]=N,e[20]=a,e[21]=o,e[22]=f):f=e[22],f}export{J as default}; diff --git a/compendium_v2/static/CrisisExercises-DA9zYjdU.js b/compendium_v2/static/CrisisExercises-D8VSuWUx.js similarity index 87% rename from compendium_v2/static/CrisisExercises-DA9zYjdU.js rename to compendium_v2/static/CrisisExercises-D8VSuWUx.js index 0c51f5105cde24a41a304220f06ac08ab51eb6ab..e9cee4b86879982757118de05b058212f4a72ac7 100644 --- a/compendium_v2/static/CrisisExercises-DA9zYjdU.js +++ b/compendium_v2/static/CrisisExercises-D8VSuWUx.js @@ -1,2 +1,2 @@ -import{c as P,r as S,F as D,S as L,j as W,t as M}from"./index-CgRqQtHZ.js";import{u as R,g as O,F as A,D as G,f as V}from"./useData-CnR6ocTl.js";import{P as $}from"./PillTable-DC6FlsPO.js";import"./SideBar-Dgfa8b_s.js";import"./xlsx-BHRztzV8.js";import"./index-DgKDGaow.js";import"./hook-DDOSKqdF.js";import"./ColorPill-BRQzvq49.js";import"./Table-ggua9_yJ.js";function Z(){const e=P.c(51),{filterSelection:t,setFilterSelection:i}=S.useContext(D),{data:C,years:E,nrens:T}=R("/api/crisis-exercises",i);let s,w;if(e[0]!==C||e[1]!==t.selectedNrens||e[2]!==t.selectedYears){let r;e[5]!==t.selectedNrens||e[6]!==t.selectedYears?(r=F=>t.selectedYears.includes(F.year)&&t.selectedNrens.includes(F.nren),e[5]=t.selectedNrens,e[6]=t.selectedYears,e[7]=r):r=e[7],s=C.filter(r),w=O(s,"exercise_descriptions"),e[0]=C,e[1]=t.selectedNrens,e[2]=t.selectedYears,e[3]=s,e[4]=w}else s=e[3],w=e[4];const Y=w;let a;e[8]!==E?(a=[...E],e[8]=E,e[9]=a):a=e[9];let l;e[10]!==T?(l=T.values(),e[10]=T,e[11]=l):l=e[11];let n;e[12]!==l?(n=[...l],e[12]=l,e[13]=n):n=e[13];let o;e[14]!==a||e[15]!==n?(o={availableYears:a,availableNrens:n},e[14]=a,e[15]=n,e[16]=o):o=e[16];let v;e[17]!==t||e[18]!==i||e[19]!==o?(v=W.jsx(A,{filterOptions:o,filterSelection:t,setFilterSelection:i,coloredYears:!0}),e[17]=t,e[18]=i,e[19]=o,e[20]=v):v=e[20];const k=v;let c,p,u,d,m,x,f,h,N,_,y;if(e[21]!==k||e[22]!==s){const r={geant_workshops:"We participate in GEANT Crisis workshops such as CLAW",national_excercises:"We participated in National crisis exercises ",tabletop_exercises:"We run our own tabletop exercises",simulation_excercises:"We run our own simulation exercises",other_excercises:"We have done/participated in other exercises or trainings",real_crisis:"We had a real crisis",internal_security_programme:"We run an internal security awareness programme",none:"No, we have not done any crisis exercises or trainings"};d=new Map(Object.entries(r).map(q)),u=G,N=M["crisis-exercise"],_=`Many NRENs run or participate in crisis exercises to test procedures and train employees. +import{c as P,r as S,F as D,S as L,j as W,t as M}from"./index-DBbSOdjk.js";import{u as R,g as O,F as A,D as G,f as V}from"./useData-CcKTpALT.js";import{P as $}from"./PillTable-CIcKqQJh.js";import"./SideBar-DfD7Pj8p.js";import"./xlsx-BHRztzV8.js";import"./index-DkYuYqrz.js";import"./hook-D9Tuu5oJ.js";import"./ColorPill-CuYEYQ56.js";import"./Table-DNomfHX4.js";function Z(){const e=P.c(51),{filterSelection:t,setFilterSelection:i}=S.useContext(D),{data:C,years:E,nrens:T}=R("/api/crisis-exercises",i);let s,w;if(e[0]!==C||e[1]!==t.selectedNrens||e[2]!==t.selectedYears){let r;e[5]!==t.selectedNrens||e[6]!==t.selectedYears?(r=F=>t.selectedYears.includes(F.year)&&t.selectedNrens.includes(F.nren),e[5]=t.selectedNrens,e[6]=t.selectedYears,e[7]=r):r=e[7],s=C.filter(r),w=O(s,"exercise_descriptions"),e[0]=C,e[1]=t.selectedNrens,e[2]=t.selectedYears,e[3]=s,e[4]=w}else s=e[3],w=e[4];const Y=w;let a;e[8]!==E?(a=[...E],e[8]=E,e[9]=a):a=e[9];let l;e[10]!==T?(l=T.values(),e[10]=T,e[11]=l):l=e[11];let n;e[12]!==l?(n=[...l],e[12]=l,e[13]=n):n=e[13];let o;e[14]!==a||e[15]!==n?(o={availableYears:a,availableNrens:n},e[14]=a,e[15]=n,e[16]=o):o=e[16];let v;e[17]!==t||e[18]!==i||e[19]!==o?(v=W.jsx(A,{filterOptions:o,filterSelection:t,setFilterSelection:i,coloredYears:!0}),e[17]=t,e[18]=i,e[19]=o,e[20]=v):v=e[20];const k=v;let c,p,u,d,m,x,f,h,N,_,y;if(e[21]!==k||e[22]!==s){const r={geant_workshops:"We participate in GEANT Crisis workshops such as CLAW",national_excercises:"We participated in National crisis exercises ",tabletop_exercises:"We run our own tabletop exercises",simulation_excercises:"We run our own simulation exercises",other_excercises:"We have done/participated in other exercises or trainings",real_crisis:"We had a real crisis",internal_security_programme:"We run an internal security awareness programme",none:"No, we have not done any crisis exercises or trainings"};d=new Map(Object.entries(r).map(q)),u=G,N=M["crisis-exercise"],_=`Many NRENs run or participate in crisis exercises to test procedures and train employees. The table below shows whether NRENs have run or participated in an exercise in the previous year. `,y=L.Policy,m=k,x=s,f="crisis_exercise_nrens_per_year",p=V,c=$,h=Object.values(r),e[21]=k,e[22]=s,e[23]=c,e[24]=p,e[25]=u,e[26]=d,e[27]=m,e[28]=x,e[29]=f,e[30]=h,e[31]=N,e[32]=_,e[33]=y}else c=e[23],p=e[24],u=e[25],d=e[26],m=e[27],x=e[28],f=e[29],h=e[30],N=e[31],_=e[32],y=e[33];let b;e[34]!==c||e[35]!==d||e[36]!==Y||e[37]!==h?(b=W.jsx(c,{columns:h,dataLookup:Y,circle:!0,columnLookup:d}),e[34]=c,e[35]=d,e[36]=Y,e[37]=h,e[38]=b):b=e[38];let g;e[39]!==p||e[40]!==b?(g=W.jsx(p,{children:b}),e[39]=p,e[40]=b,e[41]=g):g=e[41];let j;return e[42]!==u||e[43]!==m||e[44]!==x||e[45]!==f||e[46]!==g||e[47]!==N||e[48]!==_||e[49]!==y?(j=W.jsx(u,{title:N,description:_,category:y,filter:m,data:x,filename:f,children:g}),e[42]=u,e[43]=m,e[44]=x,e[45]=f,e[46]=g,e[47]=N,e[48]=_,e[49]=y,e[50]=j):j=e[50],j}function q(e){const[t,i]=e;return[i,t]}export{Z as default}; diff --git a/compendium_v2/static/CrisisManagement-Bbu9alPA.js b/compendium_v2/static/CrisisManagement-Bbu9alPA.js deleted file mode 100644 index efe50d31002a8e41d0be7960915ff45dbf906940..0000000000000000000000000000000000000000 --- a/compendium_v2/static/CrisisManagement-Bbu9alPA.js +++ /dev/null @@ -1 +0,0 @@ -import{c as C,r as F,F as v,j as x,t as P,S as k}from"./index-CgRqQtHZ.js";import{u as w,g as D,D as E,F as T,f as L}from"./useData-CnR6ocTl.js";import{P as M}from"./PillTable-DC6FlsPO.js";import"./SideBar-Dgfa8b_s.js";import"./xlsx-BHRztzV8.js";import"./index-DgKDGaow.js";import"./hook-DDOSKqdF.js";import"./ColorPill-BRQzvq49.js";import"./Table-ggua9_yJ.js";function H(){const e=C.c(30);let m;e[0]===Symbol.for("react.memo_cache_sentinel")?(m=c=>c.crisis_management_procedure!==null,e[0]=m):m=e[0];const S=m,{filterSelection:t,setFilterSelection:d}=F.useContext(v),{data:N,years:_,nrens:g}=w("/api/standards",d,S);let s,f;if(e[1]!==N||e[2]!==t.selectedNrens||e[3]!==t.selectedYears){let c;e[6]!==t.selectedNrens||e[7]!==t.selectedYears?(c=Y=>t.selectedYears.includes(Y.year)&&t.selectedNrens.includes(Y.nren)&&S(Y),e[6]=t.selectedNrens,e[7]=t.selectedYears,e[8]=c):c=e[8],s=N.filter(c),f=D(s,"crisis_management_procedure"),e[1]=N,e[2]=t.selectedNrens,e[3]=t.selectedYears,e[4]=s,e[5]=f}else s=e[4],f=e[5];const b=f;let l,p;e[9]===Symbol.for("react.memo_cache_sentinel")?(l=["Yes","No"],p=new Map([[l[0],"True"],[l[1],"False"]]),e[9]=l,e[10]=p):(l=e[9],p=e[10]);const j=p;let a;e[11]!==_?(a=[..._],e[11]=_,e[12]=a):a=e[12];let r;e[13]!==g?(r=g.values(),e[13]=g,e[14]=r):r=e[14];let i;e[15]!==r?(i=[...r],e[15]=r,e[16]=i):i=e[16];let n;e[17]!==a||e[18]!==i?(n={availableYears:a,availableNrens:i},e[17]=a,e[18]=i,e[19]=n):n=e[19];let u;e[20]!==t||e[21]!==d||e[22]!==n?(u=x.jsx(T,{filterOptions:n,filterSelection:t,setFilterSelection:d,coloredYears:!0}),e[20]=t,e[21]=d,e[22]=n,e[23]=u):u=e[23];const y=u;let o;e[24]!==b?(o=x.jsx(L,{children:x.jsx(M,{columns:l,columnLookup:j,dataLookup:b})}),e[24]=b,e[25]=o):o=e[25];let h;return e[26]!==y||e[27]!==s||e[28]!==o?(h=x.jsx(E,{title:P["crisis-management"],description:"The table below shows whether NRENs have a formal crisis management procedure.",category:k.Policy,filter:y,data:s,filename:"crisis_management_nrens_per_year",children:o}),e[26]=y,e[27]=s,e[28]=o,e[29]=h):h=e[29],h}export{H as default}; diff --git a/compendium_v2/static/CrisisManagement-DPAIuZEV.js b/compendium_v2/static/CrisisManagement-DPAIuZEV.js new file mode 100644 index 0000000000000000000000000000000000000000..ab3538240ead8f1832a295be0b74becc23073336 --- /dev/null +++ b/compendium_v2/static/CrisisManagement-DPAIuZEV.js @@ -0,0 +1 @@ +import{c as C,r as F,F as S,j as x,t as v,S as P}from"./index-DBbSOdjk.js";import{u as k,g as w,D,F as E,f as T}from"./useData-CcKTpALT.js";import{P as L}from"./PillTable-CIcKqQJh.js";import"./SideBar-DfD7Pj8p.js";import"./xlsx-BHRztzV8.js";import"./index-DkYuYqrz.js";import"./hook-D9Tuu5oJ.js";import"./ColorPill-CuYEYQ56.js";import"./Table-DNomfHX4.js";function H(){const e=C.c(29),y=M,{filterSelection:t,setFilterSelection:c}=F.useContext(S),{data:N,years:g,nrens:h}=k("/api/standards",c,y);let s,m;if(e[0]!==N||e[1]!==t.selectedNrens||e[2]!==t.selectedYears){let f;e[5]!==t.selectedNrens||e[6]!==t.selectedYears?(f=b=>t.selectedYears.includes(b.year)&&t.selectedNrens.includes(b.nren)&&y(b),e[5]=t.selectedNrens,e[6]=t.selectedYears,e[7]=f):f=e[7],s=N.filter(f),m=w(s,"crisis_management_procedure"),e[0]=N,e[1]=t.selectedNrens,e[2]=t.selectedYears,e[3]=s,e[4]=m}else s=e[3],m=e[4];const _=m;let r,d;e[8]===Symbol.for("react.memo_cache_sentinel")?(r=["Yes","No"],d=new Map([[r[0],"True"],[r[1],"False"]]),e[8]=r,e[9]=d):(r=e[8],d=e[9]);const j=d;let a;e[10]!==g?(a=[...g],e[10]=g,e[11]=a):a=e[11];let l;e[12]!==h?(l=h.values(),e[12]=h,e[13]=l):l=e[13];let i;e[14]!==l?(i=[...l],e[14]=l,e[15]=i):i=e[15];let n;e[16]!==a||e[17]!==i?(n={availableYears:a,availableNrens:i},e[16]=a,e[17]=i,e[18]=n):n=e[18];let p;e[19]!==t||e[20]!==c||e[21]!==n?(p=x.jsx(E,{filterOptions:n,filterSelection:t,setFilterSelection:c,coloredYears:!0}),e[19]=t,e[20]=c,e[21]=n,e[22]=p):p=e[22];const Y=p;let o;e[23]!==_?(o=x.jsx(T,{children:x.jsx(L,{columns:r,columnLookup:j,dataLookup:_})}),e[23]=_,e[24]=o):o=e[24];let u;return e[25]!==Y||e[26]!==s||e[27]!==o?(u=x.jsx(D,{title:v["crisis-management"],description:"The table below shows whether NRENs have a formal crisis management procedure.",category:P.Policy,filter:Y,data:s,filename:"crisis_management_nrens_per_year",children:o}),e[25]=Y,e[26]=s,e[27]=o,e[28]=u):u=e[28],u}function M(e){return e.crisis_management_procedure!==null}export{H as default}; diff --git a/compendium_v2/static/DZ9kPoxi.css b/compendium_v2/static/DaA47pDB.css similarity index 99% rename from compendium_v2/static/DZ9kPoxi.css rename to compendium_v2/static/DaA47pDB.css index 223b68e46621fe2ada7e271027e7a1ae1663506b..8ec1446c88cbd729708df076af35f17438c2d3a0 100644 --- a/compendium_v2/static/DZ9kPoxi.css +++ b/compendium_v2/static/DaA47pDB.css @@ -1,5 +1,5 @@ @charset "UTF-8";/*! -* surveyjs - Survey JavaScript library v1.12.23 +* surveyjs - Survey JavaScript library v1.12.24 * 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}@media screen and (max-width: 1080px){.downloadbutton{width:6.5rem}}.downloadbutton svg{margin-bottom:.25rem;margin-left:.1rem}.downloadimage{background-color:#00bfff;width:10rem}.downloadcsv{background-color:#071ddf}.downloadexcel{background-color:#33c481}.image-dropdown{margin:0;padding:0;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{justify-content:end}.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/DarkFibreInstalled-D8GnAYvV.js b/compendium_v2/static/DarkFibreInstalled-D8GnAYvV.js deleted file mode 100644 index 1253df2436dbb950092e50b82c911903addd8c43..0000000000000000000000000000000000000000 --- a/compendium_v2/static/DarkFibreInstalled-D8GnAYvV.js +++ /dev/null @@ -1 +0,0 @@ -import{c as N,r as j,F as D,j as n,t as F,S as L}from"./index-CgRqQtHZ.js";import{L as w}from"./index-BMzrLxRb.js";import{C as E,a as v,L as P,P as R,b as I,p as K,c as O,d as T,u as U,e as Y,D as $,F as q,f as z}from"./useData-CnR6ocTl.js";import{g as A}from"./charthelpers-D_bh9y-E.js";import"./SideBar-Dgfa8b_s.js";import"./xlsx-BHRztzV8.js";import"./index-DgKDGaow.js";import"./hook-DDOSKqdF.js";E.register(v,P,R,I,K,O,T);function X(){const e=N.c(24);let o;e[0]===Symbol.for("react.memo_cache_sentinel")?(o=r=>r.fibre_length_in_country!=null,e[0]=o):o=e[0];const k=o,{filterSelection:t,setFilterSelection:c}=j.useContext(D),{data:u,nrens:_}=U("/api/dark-fibre-installed",c,k);let i,f;if(e[1]!==u||e[2]!==t.selectedNrens){let r;e[5]!==t.selectedNrens?(r=y=>t.selectedNrens.includes(y.nren)&&k(y),e[5]=t.selectedNrens,e[6]=r):r=e[6],i=u.filter(r),f=Y(i,"fibre_length_in_country"),e[1]=u,e[2]=t.selectedNrens,e[3]=i,e[4]=f}else i=e[3],f=e[4];const g=f;let m;e[7]===Symbol.for("react.memo_cache_sentinel")?(m=[],e[7]=m):m=e[7];let s;e[8]!==_?(s=_.values(),e[8]=_,e[9]=s):s=e[9];let l;e[10]!==s?(l={availableYears:m,availableNrens:[...s]},e[10]=s,e[11]=l):l=e[11];let d;e[12]!==t||e[13]!==c||e[14]!==l?(d=n.jsx(q,{filterOptions:l,filterSelection:t,setFilterSelection:c}),e[12]=t,e[13]=c,e[14]=l,e[15]=d):d=e[15];const x=d;let p;e[16]===Symbol.for("react.memo_cache_sentinel")?(p=A({title:"Kilometres of Installed Dark Fibre",tooltipUnit:"km",unit:"km"}),e[16]=p):p=e[16];const S=p;let h;e[17]===Symbol.for("react.memo_cache_sentinel")?(h=n.jsx("span",{children:"This graph shows the number of Kilometres of dark fibre installed by NRENs within their own countries, which they own themselves. The distance is the number of kilometres of the fibre pairs, or if bidirectional traffic on a single fibre, it is treated as a fibre pair."}),e[17]=h):h=e[17];const C=h;let a;e[18]!==g?(a=n.jsx(z,{children:n.jsx(w,{data:g,options:S})}),e[18]=g,e[19]=a):a=e[19];let b;return e[20]!==x||e[21]!==i||e[22]!==a?(b=n.jsx($,{title:F["dark-fibre-installed"],description:C,category:L.Network,filter:x,data:i,filename:"dark_fibre_lease_installed",children:a}),e[20]=x,e[21]=i,e[22]=a,e[23]=b):b=e[23],b}export{X as default}; diff --git a/compendium_v2/static/DarkFibreInstalled-Dlwn_bKp.js b/compendium_v2/static/DarkFibreInstalled-Dlwn_bKp.js new file mode 100644 index 0000000000000000000000000000000000000000..31f137163294c62662cf051a0b553d378374b9fe --- /dev/null +++ b/compendium_v2/static/DarkFibreInstalled-Dlwn_bKp.js @@ -0,0 +1 @@ +import{c as N,r as S,F as j,j as l,t as D,S as F}from"./index-DBbSOdjk.js";import{L}from"./index-DyJczNpq.js";import{C as w,a as E,L as v,P,b as R,p as I,c as K,d as O,u as T,e as U,D as Y,F as $,f as q}from"./useData-CcKTpALT.js";import{g as z}from"./charthelpers-CHBq5wBZ.js";import"./SideBar-DfD7Pj8p.js";import"./xlsx-BHRztzV8.js";import"./index-DkYuYqrz.js";import"./hook-D9Tuu5oJ.js";w.register(E,v,P,R,I,K,O);function X(){const e=N.c(23),x=A,{filterSelection:t,setFilterSelection:n}=S.useContext(j),{data:u,nrens:b}=T("/api/dark-fibre-installed",n,x);let i,o;if(e[0]!==u||e[1]!==t.selectedNrens){let h;e[4]!==t.selectedNrens?(h=k=>t.selectedNrens.includes(k.nren)&&x(k),e[4]=t.selectedNrens,e[5]=h):h=e[5],i=u.filter(h),o=U(i,"fibre_length_in_country"),e[0]=u,e[1]=t.selectedNrens,e[2]=i,e[3]=o}else i=e[2],o=e[3];const _=o;let c;e[6]===Symbol.for("react.memo_cache_sentinel")?(c=[],e[6]=c):c=e[6];let s;e[7]!==b?(s=b.values(),e[7]=b,e[8]=s):s=e[8];let a;e[9]!==s?(a={availableYears:c,availableNrens:[...s]},e[9]=s,e[10]=a):a=e[10];let f;e[11]!==t||e[12]!==n||e[13]!==a?(f=l.jsx($,{filterOptions:a,filterSelection:t,setFilterSelection:n}),e[11]=t,e[12]=n,e[13]=a,e[14]=f):f=e[14];const g=f;let m;e[15]===Symbol.for("react.memo_cache_sentinel")?(m=z({title:"Kilometres of Installed Dark Fibre",tooltipUnit:"km",unit:"km"}),e[15]=m):m=e[15];const y=m;let d;e[16]===Symbol.for("react.memo_cache_sentinel")?(d=l.jsx("span",{children:"This graph shows the number of Kilometres of dark fibre installed by NRENs within their own countries, which they own themselves. The distance is the number of kilometres of the fibre pairs, or if bidirectional traffic on a single fibre, it is treated as a fibre pair."}),e[16]=d):d=e[16];const C=d;let r;e[17]!==_?(r=l.jsx(q,{children:l.jsx(L,{data:_,options:y})}),e[17]=_,e[18]=r):r=e[18];let p;return e[19]!==g||e[20]!==i||e[21]!==r?(p=l.jsx(Y,{title:D["dark-fibre-installed"],description:C,category:F.Network,filter:g,data:i,filename:"dark_fibre_lease_installed",children:r}),e[19]=g,e[20]=i,e[21]=r,e[22]=p):p=e[22],p}function A(e){return e.fibre_length_in_country!=null}export{X as default}; diff --git a/compendium_v2/static/DarkFibreLease-COoYzfsc.js b/compendium_v2/static/DarkFibreLease-rEaEK83T.js similarity index 85% rename from compendium_v2/static/DarkFibreLease-COoYzfsc.js rename to compendium_v2/static/DarkFibreLease-rEaEK83T.js index 58bf726e79e1114931d2e232929df3b28b6da3be..197d80c90130d23793341b2a261162d92ca8b940 100644 --- a/compendium_v2/static/DarkFibreLease-COoYzfsc.js +++ b/compendium_v2/static/DarkFibreLease-rEaEK83T.js @@ -1 +1 @@ -import{c as w,r as R,F as P,j as c,S as I,t as D}from"./index-CgRqQtHZ.js";import{L as U}from"./index-BMzrLxRb.js";import{C as K,a as O,L as T,P as $,b as A,p as Y,c as q,d as z,u as B,e as G,D as H,F as J,f as M}from"./useData-CnR6ocTl.js";import{g as Q}from"./charthelpers-D_bh9y-E.js";import"./SideBar-Dgfa8b_s.js";import"./xlsx-BHRztzV8.js";import"./index-DgKDGaow.js";import"./hook-DDOSKqdF.js";K.register(O,T,$,A,Y,q,z);function ae(E){const e=w.c(32),{national:f}=E,s=f?"fibre_length_in_country":"fibre_length_outside_country";let d;e[0]!==s?(d=o=>o[s]!=null,e[0]=s,e[1]=d):d=e[1];const a=d,{filterSelection:t,setFilterSelection:m}=R.useContext(P),{data:k,nrens:x}=B("/api/dark-fibre-lease",m,a);let i,p;if(e[2]!==k||e[3]!==s||e[4]!==t.selectedNrens||e[5]!==a){let o;e[8]!==t.selectedNrens||e[9]!==a?(o=j=>t.selectedNrens.includes(j.nren)&&a(j),e[8]=t.selectedNrens,e[9]=a,e[10]=o):o=e[10],i=k.filter(o),p=G(i,s),e[2]=k,e[3]=s,e[4]=t.selectedNrens,e[5]=a,e[6]=i,e[7]=p}else i=e[6],p=e[7];const N=p;let h;e[11]===Symbol.for("react.memo_cache_sentinel")?(h=[],e[11]=h):h=e[11];let l;e[12]!==x?(l=x.values(),e[12]=x,e[13]=l):l=e[13];let r;e[14]!==l?(r={availableYears:h,availableNrens:[...l]},e[14]=l,e[15]=r):r=e[15];let b;e[16]!==t||e[17]!==m||e[18]!==r?(b=c.jsx(J,{filterOptions:r,filterSelection:t,setFilterSelection:m}),e[16]=t,e[17]=m,e[18]=r,e[19]=b):b=e[19];const y=b;let u;e[20]===Symbol.for("react.memo_cache_sentinel")?(u=Q({title:"Kilometres of Leased Dark Fibre",tooltipUnit:"km",unit:"km"}),e[20]=u):u=e[20];const F=u,C=f?"within":"outside";let g;e[21]!==C?(g=c.jsxs("span",{children:["This graph shows the number of Kilometres of dark fibre leased by NRENs ",C," their own countries. Also included is fibre leased via an IRU (Indefeasible Right of Use), a type of long-term lease of a portion of the capacity of a cable. It does not however, include fibre NRENs have installed, and own, themselves. The distance is the number of kilometres of the fibre pairs, or if bidirectional traffic on a single fibre, it is treated as a fibre pair."]}),e[21]=C,e[22]=g):g=e[22];const L=g,S=f?D["dark-fibre-lease"]:D["dark-fibre-lease-international"],v=`dark_fibre_lease_${f?"national":"international"}`;let n;e[23]!==N?(n=c.jsx(M,{children:c.jsx(U,{data:N,options:F})}),e[23]=N,e[24]=n):n=e[24];let _;return e[25]!==L||e[26]!==y||e[27]!==i||e[28]!==S||e[29]!==v||e[30]!==n?(_=c.jsx(H,{title:S,description:L,category:I.Network,filter:y,data:i,filename:v,children:n}),e[25]=L,e[26]=y,e[27]=i,e[28]=S,e[29]=v,e[30]=n,e[31]=_):_=e[31],_}export{ae as default}; +import{c as w,r as R,F as P,j as c,S as I,t as D}from"./index-DBbSOdjk.js";import{L as U}from"./index-DyJczNpq.js";import{C as K,a as O,L as T,P as $,b as A,p as Y,c as q,d as z,u as B,e as G,D as H,F as J,f as M}from"./useData-CcKTpALT.js";import{g as Q}from"./charthelpers-CHBq5wBZ.js";import"./SideBar-DfD7Pj8p.js";import"./xlsx-BHRztzV8.js";import"./index-DkYuYqrz.js";import"./hook-D9Tuu5oJ.js";K.register(O,T,$,A,Y,q,z);function ae(E){const e=w.c(32),{national:f}=E,s=f?"fibre_length_in_country":"fibre_length_outside_country";let d;e[0]!==s?(d=o=>o[s]!=null,e[0]=s,e[1]=d):d=e[1];const a=d,{filterSelection:t,setFilterSelection:m}=R.useContext(P),{data:k,nrens:x}=B("/api/dark-fibre-lease",m,a);let i,p;if(e[2]!==k||e[3]!==s||e[4]!==t.selectedNrens||e[5]!==a){let o;e[8]!==t.selectedNrens||e[9]!==a?(o=j=>t.selectedNrens.includes(j.nren)&&a(j),e[8]=t.selectedNrens,e[9]=a,e[10]=o):o=e[10],i=k.filter(o),p=G(i,s),e[2]=k,e[3]=s,e[4]=t.selectedNrens,e[5]=a,e[6]=i,e[7]=p}else i=e[6],p=e[7];const N=p;let h;e[11]===Symbol.for("react.memo_cache_sentinel")?(h=[],e[11]=h):h=e[11];let l;e[12]!==x?(l=x.values(),e[12]=x,e[13]=l):l=e[13];let r;e[14]!==l?(r={availableYears:h,availableNrens:[...l]},e[14]=l,e[15]=r):r=e[15];let b;e[16]!==t||e[17]!==m||e[18]!==r?(b=c.jsx(J,{filterOptions:r,filterSelection:t,setFilterSelection:m}),e[16]=t,e[17]=m,e[18]=r,e[19]=b):b=e[19];const y=b;let u;e[20]===Symbol.for("react.memo_cache_sentinel")?(u=Q({title:"Kilometres of Leased Dark Fibre",tooltipUnit:"km",unit:"km"}),e[20]=u):u=e[20];const F=u,C=f?"within":"outside";let g;e[21]!==C?(g=c.jsxs("span",{children:["This graph shows the number of Kilometres of dark fibre leased by NRENs ",C," their own countries. Also included is fibre leased via an IRU (Indefeasible Right of Use), a type of long-term lease of a portion of the capacity of a cable. It does not however, include fibre NRENs have installed, and own, themselves. The distance is the number of kilometres of the fibre pairs, or if bidirectional traffic on a single fibre, it is treated as a fibre pair."]}),e[21]=C,e[22]=g):g=e[22];const L=g,S=f?D["dark-fibre-lease"]:D["dark-fibre-lease-international"],v=`dark_fibre_lease_${f?"national":"international"}`;let n;e[23]!==N?(n=c.jsx(M,{children:c.jsx(U,{data:N,options:F})}),e[23]=N,e[24]=n):n=e[24];let _;return e[25]!==L||e[26]!==y||e[27]!==i||e[28]!==S||e[29]!==v||e[30]!==n?(_=c.jsx(H,{title:S,description:L,category:I.Network,filter:y,data:i,filename:v,children:n}),e[25]=L,e[26]=y,e[27]=i,e[28]=S,e[29]=v,e[30]=n,e[31]=_):_=e[31],_}export{ae as default}; diff --git a/compendium_v2/static/ECProjects-BbCKqowm.js b/compendium_v2/static/ECProjects-CegfdWfI.js similarity index 84% rename from compendium_v2/static/ECProjects-BbCKqowm.js rename to compendium_v2/static/ECProjects-CegfdWfI.js index 3ae490dba52e2a1da00fbecdab9a18ab52d66f4f..a76bda0f0709fcc6402e71d3e9c58d00ae9b5c5f 100644 --- a/compendium_v2/static/ECProjects-BbCKqowm.js +++ b/compendium_v2/static/ECProjects-CegfdWfI.js @@ -1 +1 @@ -import{c as v,r as Y,F as y,j as u,S as C}from"./index-CgRqQtHZ.js";import{u as D,h as T,i as _,D as g,F,f as P}from"./useData-CnR6ocTl.js";import{N as R}from"./NrenYearTable-Q6UAdf8a.js";import"./SideBar-Dgfa8b_s.js";import"./xlsx-BHRztzV8.js";import"./index-DgKDGaow.js";import"./hook-DDOSKqdF.js";import"./Table-ggua9_yJ.js";function $(){const e=v.c(27),{filterSelection:t,setFilterSelection:s}=Y.useContext(y),{data:a,years:j,nrens:N}=D("/api/ec-project",s);let r,d;if(e[0]!==t.selectedNrens||e[1]!==t.selectedYears||e[2]!==a){let f;e[5]!==t.selectedNrens||e[6]!==t.selectedYears?(f=x=>t.selectedYears.includes(x.year)&&t.selectedNrens.includes(x.nren),e[5]=t.selectedNrens,e[6]=t.selectedYears,e[7]=f):f=e[7],r=a.filter(f);const E=T(r);d=_(E,S),e[0]=t.selectedNrens,e[1]=t.selectedYears,e[2]=a,e[3]=r,e[4]=d}else r=e[3],d=e[4];const b=d;let o;e[8]!==j?(o=[...j],e[8]=j,e[9]=o):o=e[9];let i;e[10]!==N?(i=N.values(),e[10]=N,e[11]=i):i=e[11];let n;e[12]!==i?(n=[...i],e[12]=i,e[13]=n):n=e[13];let l;e[14]!==o||e[15]!==n?(l={availableYears:o,availableNrens:n},e[14]=o,e[15]=n,e[16]=l):l=e[16];let p;e[17]!==t||e[18]!==s||e[19]!==l?(p=u.jsx(F,{filterOptions:l,filterSelection:t,setFilterSelection:s}),e[17]=t,e[18]=s,e[19]=l,e[20]=p):p=e[20];const h=p;let c;e[21]!==b?(c=u.jsx(P,{children:u.jsx(R,{data:b,columnTitle:"EC Project Membership",dottedBorder:!0})}),e[21]=b,e[22]=c):c=e[22];let m;return e[23]!==h||e[24]!==r||e[25]!==c?(m=u.jsx(g,{title:"NREN Involvement in European Commission Projects",description:"Many NRENs are involved in a number of different European Commission project, besides GÉANT. The list of projects in the table below is not necessarily exhaustive, but does contain projects the NRENs consider important or worthy of mention.",category:C.Organisation,filter:h,data:r,filename:"nren_involvement_in_european_commission_projects",children:c}),e[23]=h,e[24]=r,e[25]=c,e[26]=m):m=e[26],m}function S(e,t){const s=t.map(O).sort();s.length&&s.forEach(a=>{e[a]=a})}function O(e){return e.project}export{$ as default}; +import{c as v,r as Y,F as y,j as u,S as C}from"./index-DBbSOdjk.js";import{u as D,h as T,i as _,D as g,F,f as P}from"./useData-CcKTpALT.js";import{N as R}from"./NrenYearTable-C1JRhqy_.js";import"./SideBar-DfD7Pj8p.js";import"./xlsx-BHRztzV8.js";import"./index-DkYuYqrz.js";import"./hook-D9Tuu5oJ.js";import"./Table-DNomfHX4.js";function $(){const e=v.c(27),{filterSelection:t,setFilterSelection:s}=Y.useContext(y),{data:a,years:j,nrens:N}=D("/api/ec-project",s);let r,d;if(e[0]!==t.selectedNrens||e[1]!==t.selectedYears||e[2]!==a){let f;e[5]!==t.selectedNrens||e[6]!==t.selectedYears?(f=x=>t.selectedYears.includes(x.year)&&t.selectedNrens.includes(x.nren),e[5]=t.selectedNrens,e[6]=t.selectedYears,e[7]=f):f=e[7],r=a.filter(f);const E=T(r);d=_(E,S),e[0]=t.selectedNrens,e[1]=t.selectedYears,e[2]=a,e[3]=r,e[4]=d}else r=e[3],d=e[4];const b=d;let o;e[8]!==j?(o=[...j],e[8]=j,e[9]=o):o=e[9];let i;e[10]!==N?(i=N.values(),e[10]=N,e[11]=i):i=e[11];let n;e[12]!==i?(n=[...i],e[12]=i,e[13]=n):n=e[13];let l;e[14]!==o||e[15]!==n?(l={availableYears:o,availableNrens:n},e[14]=o,e[15]=n,e[16]=l):l=e[16];let p;e[17]!==t||e[18]!==s||e[19]!==l?(p=u.jsx(F,{filterOptions:l,filterSelection:t,setFilterSelection:s}),e[17]=t,e[18]=s,e[19]=l,e[20]=p):p=e[20];const h=p;let c;e[21]!==b?(c=u.jsx(P,{children:u.jsx(R,{data:b,columnTitle:"EC Project Membership",dottedBorder:!0})}),e[21]=b,e[22]=c):c=e[22];let m;return e[23]!==h||e[24]!==r||e[25]!==c?(m=u.jsx(g,{title:"NREN Involvement in European Commission Projects",description:"Many NRENs are involved in a number of different European Commission project, besides GÉANT. The list of projects in the table below is not necessarily exhaustive, but does contain projects the NRENs consider important or worthy of mention.",category:C.Organisation,filter:h,data:r,filename:"nren_involvement_in_european_commission_projects",children:c}),e[23]=h,e[24]=r,e[25]=c,e[26]=m):m=e[26],m}function S(e,t){const s=t.map(O).sort();s.length&&s.forEach(a=>{e[a]=a})}function O(e){return e.project}export{$ as default}; diff --git a/compendium_v2/static/EOSCListings-Dp6l-zo5.js b/compendium_v2/static/EOSCListings-cU4UG7og.js similarity index 81% rename from compendium_v2/static/EOSCListings-Dp6l-zo5.js rename to compendium_v2/static/EOSCListings-cU4UG7og.js index f4d317c2c098e9f67286d3df3275179f4cc3f748..15a2efde1e30f52d9fb6b8dd9c2066da8ac2e301 100644 --- a/compendium_v2/static/EOSCListings-Dp6l-zo5.js +++ b/compendium_v2/static/EOSCListings-cU4UG7og.js @@ -1 +1 @@ -import{c as Y,r as j,F as C,j as f,t as D,S as E}from"./index-CgRqQtHZ.js";import{u as _,h as F,i as R,D as L,F as k,f as O}from"./useData-CnR6ocTl.js";import{N as P}from"./NrenYearTable-Q6UAdf8a.js";import"./SideBar-Dgfa8b_s.js";import"./xlsx-BHRztzV8.js";import"./index-DgKDGaow.js";import"./hook-DDOSKqdF.js";import"./Table-ggua9_yJ.js";function H(){const e=Y.c(28),{filterSelection:t,setFilterSelection:l}=j.useContext(C),{data:a,years:N,nrens:x}=_("/api/eosc-listings",l);let s,d;if(e[0]!==a||e[1]!==t.selectedNrens||e[2]!==t.selectedYears){let h;e[5]!==t.selectedNrens||e[6]!==t.selectedYears?(h=b=>t.selectedYears.includes(b.year)&&t.selectedNrens.includes(b.nren),e[5]=t.selectedNrens,e[6]=t.selectedYears,e[7]=h):h=e[7],s=a.filter(h);const y=F(s);d=R(y,T),e[0]=a,e[1]=t.selectedNrens,e[2]=t.selectedYears,e[3]=s,e[4]=d}else s=e[3],d=e[4];const S=d;let i;e[8]!==N?(i=[...N],e[8]=N,e[9]=i):i=e[9];let r;e[10]!==x?(r=x.values(),e[10]=x,e[11]=r):r=e[11];let o;e[12]!==r?(o=[...r],e[12]=r,e[13]=o):o=e[13];let n;e[14]!==i||e[15]!==o?(n={availableYears:i,availableNrens:o},e[14]=i,e[15]=o,e[16]=n):n=e[16];let m;e[17]!==t||e[18]!==l||e[19]!==n?(m=f.jsx(k,{filterOptions:n,filterSelection:t,setFilterSelection:l}),e[17]=t,e[18]=l,e[19]=n,e[20]=m):m=e[20];const g=m;let p;e[21]===Symbol.for("react.memo_cache_sentinel")?(p=f.jsx("span",{children:"Some NRENs choose to list services on the EOSC portal, these can be seen in the table below. Click on the name of the NREN to expand the detail and see the names of the services they list."}),e[21]=p):p=e[21];const v=p;let c;e[22]!==S?(c=f.jsx(O,{children:f.jsx(P,{data:S,columnTitle:"Service Name",dottedBorder:!0,keysAreURLs:!0,noDots:!0})}),e[22]=S,e[23]=c):c=e[23];let u;return e[24]!==g||e[25]!==s||e[26]!==c?(u=f.jsx(L,{title:D.eosc_listings,description:v,category:E.Policy,filter:g,data:s,filename:"nren_eosc_listings",children:c}),e[24]=g,e[25]=s,e[26]=c,e[27]=u):u=e[27],u}function T(e,t){for(const l of t)for(const a of l.service_names)e[a]=a}export{H as default}; +import{c as Y,r as j,F as C,j as f,t as D,S as E}from"./index-DBbSOdjk.js";import{u as _,h as F,i as R,D as L,F as k,f as O}from"./useData-CcKTpALT.js";import{N as P}from"./NrenYearTable-C1JRhqy_.js";import"./SideBar-DfD7Pj8p.js";import"./xlsx-BHRztzV8.js";import"./index-DkYuYqrz.js";import"./hook-D9Tuu5oJ.js";import"./Table-DNomfHX4.js";function H(){const e=Y.c(28),{filterSelection:t,setFilterSelection:l}=j.useContext(C),{data:a,years:N,nrens:x}=_("/api/eosc-listings",l);let s,d;if(e[0]!==a||e[1]!==t.selectedNrens||e[2]!==t.selectedYears){let h;e[5]!==t.selectedNrens||e[6]!==t.selectedYears?(h=b=>t.selectedYears.includes(b.year)&&t.selectedNrens.includes(b.nren),e[5]=t.selectedNrens,e[6]=t.selectedYears,e[7]=h):h=e[7],s=a.filter(h);const y=F(s);d=R(y,T),e[0]=a,e[1]=t.selectedNrens,e[2]=t.selectedYears,e[3]=s,e[4]=d}else s=e[3],d=e[4];const S=d;let i;e[8]!==N?(i=[...N],e[8]=N,e[9]=i):i=e[9];let r;e[10]!==x?(r=x.values(),e[10]=x,e[11]=r):r=e[11];let o;e[12]!==r?(o=[...r],e[12]=r,e[13]=o):o=e[13];let n;e[14]!==i||e[15]!==o?(n={availableYears:i,availableNrens:o},e[14]=i,e[15]=o,e[16]=n):n=e[16];let m;e[17]!==t||e[18]!==l||e[19]!==n?(m=f.jsx(k,{filterOptions:n,filterSelection:t,setFilterSelection:l}),e[17]=t,e[18]=l,e[19]=n,e[20]=m):m=e[20];const g=m;let p;e[21]===Symbol.for("react.memo_cache_sentinel")?(p=f.jsx("span",{children:"Some NRENs choose to list services on the EOSC portal, these can be seen in the table below. Click on the name of the NREN to expand the detail and see the names of the services they list."}),e[21]=p):p=e[21];const v=p;let c;e[22]!==S?(c=f.jsx(O,{children:f.jsx(P,{data:S,columnTitle:"Service Name",dottedBorder:!0,keysAreURLs:!0,noDots:!0})}),e[22]=S,e[23]=c):c=e[23];let u;return e[24]!==g||e[25]!==s||e[26]!==c?(u=f.jsx(L,{title:D.eosc_listings,description:v,category:E.Policy,filter:g,data:s,filename:"nren_eosc_listings",children:c}),e[24]=g,e[25]=s,e[26]=c,e[27]=u):u=e[27],u}function T(e,t){for(const l of t)for(const a of l.service_names)e[a]=a}export{H as default}; diff --git a/compendium_v2/static/ExternalConnections-Be08dOIN.js b/compendium_v2/static/ExternalConnections-CQ5ri9Cp.js similarity index 93% rename from compendium_v2/static/ExternalConnections-Be08dOIN.js rename to compendium_v2/static/ExternalConnections-CQ5ri9Cp.js index 3f0b138648aa3378426b77a85abeaff79cedf46d..e784cb2fb9c2c2cbc5d3fbecd6ef16eb14ccefb2 100644 --- a/compendium_v2/static/ExternalConnections-Be08dOIN.js +++ b/compendium_v2/static/ExternalConnections-CQ5ri9Cp.js @@ -1 +1 @@ -import{c as _,j as r,e as C,r as S,F as E,t as w,S as D}from"./index-CgRqQtHZ.js";import{u as F,h as T,D as Y,F as R,f as L}from"./useData-CnR6ocTl.js";import{T as O}from"./Table-ggua9_yJ.js";import"./SideBar-Dgfa8b_s.js";import"./xlsx-BHRztzV8.js";import"./index-DgKDGaow.js";import"./hook-DDOSKqdF.js";function $(e){const t=_.c(8),{dataLookup:l,columnInfo:a}=e;if(!l){let s;return t[0]===Symbol.for("react.memo_cache_sentinel")?(s=r.jsx("div",{className:"matrix-border-round"}),t[0]=s):s=t[0],s}let d;if(t[1]!==a||t[2]!==l){let s;t[4]!==a?(s=j=>{const[i,h]=j;return r.jsx(C,{title:i,theme:"-table",startCollapsed:!0,children:r.jsx("div",{className:"scrollable-horizontal",children:Array.from(h.entries()).map(m=>{const[o,b]=m,x={"--before-color":`var(--color-of-the-year-muted-${o%9})`};return r.jsxs("div",{children:[r.jsx("span",{className:`scrollable-table-year color-of-the-year-${o%9} bold-caps-16pt pt-3 ps-3`,style:x,children:o}),r.jsx("div",{className:`colored-table bg-muted-color-of-the-year-${o%9}`,children:r.jsxs(O,{children:[r.jsx("thead",{children:r.jsx("tr",{children:Object.keys(a).map(c=>r.jsx("th",{style:{position:"relative"},children:r.jsx("span",{style:x,children:c})},c))})}),r.jsx("tbody",{children:b.map((c,k)=>r.jsx("tr",{children:Object.entries(a).map(u=>{const[g,f]=u,y=c[f];return r.jsx("td",{children:y},g)})},k))})]})})]},o)})})},i)},t[4]=a,t[5]=s):s=t[5],d=Array.from(l.entries()).map(s),t[1]=a,t[2]=l,t[3]=d}else d=t[3];const p=d;let n;return t[6]!==p?(n=r.jsx("div",{className:"matrix-border-round",children:p}),t[6]=p,t[7]=n):n=t[7],n}function q(){const e=_.c(29),{filterSelection:t,setFilterSelection:l}=S.useContext(E),{data:a,years:d,nrens:p}=F("/api/external-connections",l);let n,s;if(e[0]!==a||e[1]!==t.selectedNrens||e[2]!==t.selectedYears){let N;e[5]!==t.selectedNrens||e[6]!==t.selectedYears?(N=v=>t.selectedYears.includes(v.year)&&t.selectedNrens.includes(v.nren),e[5]=t.selectedNrens,e[6]=t.selectedYears,e[7]=N):N=e[7],n=a.filter(N),s=T([...n]),e[0]=a,e[1]=t.selectedNrens,e[2]=t.selectedYears,e[3]=n,e[4]=s}else n=e[3],s=e[4];const j=s;let i;e[8]!==d?(i=[...d],e[8]=d,e[9]=i):i=e[9];let h;e[10]!==p?(h=p.values(),e[10]=p,e[11]=h):h=e[11];let m;e[12]!==h?(m=[...h],e[12]=h,e[13]=m):m=e[13];let o;e[14]!==i||e[15]!==m?(o={availableYears:i,availableNrens:m},e[14]=i,e[15]=m,e[16]=o):o=e[16];let b;e[17]!==t||e[18]!==l||e[19]!==o?(b=r.jsx(R,{filterOptions:o,filterSelection:t,setFilterSelection:l,coloredYears:!0}),e[17]=t,e[18]=l,e[19]=o,e[20]=b):b=e[20];const x=b;let c;e[21]===Symbol.for("react.memo_cache_sentinel")?(c={"Link Name":"link_name","Capacity (Gbit/s)":"capacity","From Organisation":"from_organization","To Organisation":"to_organization","Interconnection Method":"interconnection_method"},e[21]=c):c=e[21];const k=c;let u;e[22]===Symbol.for("react.memo_cache_sentinel")?(u=r.jsxs(r.Fragment,{children:[r.jsx("p",{children:"The table below shows the operational external IP connections of each NREN. These include links to their regional backbone (ie. GÉANT), to other research locations, to the commercial internet, peerings to internet exchanges, cross-border dark fibre links, and any other links they may have."}),r.jsx("p",{children:"NRENs are asked to state the capacity for production purposes, not any additional link that may be there solely for the purpose of giving resilience. Cross-border fibre links are meant as those links which have been commissioned or established by the NREN from a point on their network, which is near the border to another point near the border on the network of a neighbouring NREN."})]}),e[22]=u):u=e[22];const g=u;let f;e[23]!==j?(f=r.jsx(L,{children:r.jsx($,{dataLookup:j,columnInfo:k})}),e[23]=j,e[24]=f):f=e[24];let y;return e[25]!==x||e[26]!==n||e[27]!==f?(y=r.jsx(Y,{title:w["external-connections"],description:g,category:D.Network,filter:x,data:n,filename:"nren_external_connections",children:f}),e[25]=x,e[26]=n,e[27]=f,e[28]=y):y=e[28],y}export{q as default}; +import{c as _,j as r,e as C,r as S,F as E,t as w,S as D}from"./index-DBbSOdjk.js";import{u as F,h as T,D as Y,F as R,f as L}from"./useData-CcKTpALT.js";import{T as O}from"./Table-DNomfHX4.js";import"./SideBar-DfD7Pj8p.js";import"./xlsx-BHRztzV8.js";import"./index-DkYuYqrz.js";import"./hook-D9Tuu5oJ.js";function $(e){const t=_.c(8),{dataLookup:l,columnInfo:a}=e;if(!l){let s;return t[0]===Symbol.for("react.memo_cache_sentinel")?(s=r.jsx("div",{className:"matrix-border-round"}),t[0]=s):s=t[0],s}let d;if(t[1]!==a||t[2]!==l){let s;t[4]!==a?(s=j=>{const[i,h]=j;return r.jsx(C,{title:i,theme:"-table",startCollapsed:!0,children:r.jsx("div",{className:"scrollable-horizontal",children:Array.from(h.entries()).map(m=>{const[o,b]=m,x={"--before-color":`var(--color-of-the-year-muted-${o%9})`};return r.jsxs("div",{children:[r.jsx("span",{className:`scrollable-table-year color-of-the-year-${o%9} bold-caps-16pt pt-3 ps-3`,style:x,children:o}),r.jsx("div",{className:`colored-table bg-muted-color-of-the-year-${o%9}`,children:r.jsxs(O,{children:[r.jsx("thead",{children:r.jsx("tr",{children:Object.keys(a).map(c=>r.jsx("th",{style:{position:"relative"},children:r.jsx("span",{style:x,children:c})},c))})}),r.jsx("tbody",{children:b.map((c,k)=>r.jsx("tr",{children:Object.entries(a).map(u=>{const[g,f]=u,y=c[f];return r.jsx("td",{children:y},g)})},k))})]})})]},o)})})},i)},t[4]=a,t[5]=s):s=t[5],d=Array.from(l.entries()).map(s),t[1]=a,t[2]=l,t[3]=d}else d=t[3];const p=d;let n;return t[6]!==p?(n=r.jsx("div",{className:"matrix-border-round",children:p}),t[6]=p,t[7]=n):n=t[7],n}function q(){const e=_.c(29),{filterSelection:t,setFilterSelection:l}=S.useContext(E),{data:a,years:d,nrens:p}=F("/api/external-connections",l);let n,s;if(e[0]!==a||e[1]!==t.selectedNrens||e[2]!==t.selectedYears){let N;e[5]!==t.selectedNrens||e[6]!==t.selectedYears?(N=v=>t.selectedYears.includes(v.year)&&t.selectedNrens.includes(v.nren),e[5]=t.selectedNrens,e[6]=t.selectedYears,e[7]=N):N=e[7],n=a.filter(N),s=T([...n]),e[0]=a,e[1]=t.selectedNrens,e[2]=t.selectedYears,e[3]=n,e[4]=s}else n=e[3],s=e[4];const j=s;let i;e[8]!==d?(i=[...d],e[8]=d,e[9]=i):i=e[9];let h;e[10]!==p?(h=p.values(),e[10]=p,e[11]=h):h=e[11];let m;e[12]!==h?(m=[...h],e[12]=h,e[13]=m):m=e[13];let o;e[14]!==i||e[15]!==m?(o={availableYears:i,availableNrens:m},e[14]=i,e[15]=m,e[16]=o):o=e[16];let b;e[17]!==t||e[18]!==l||e[19]!==o?(b=r.jsx(R,{filterOptions:o,filterSelection:t,setFilterSelection:l,coloredYears:!0}),e[17]=t,e[18]=l,e[19]=o,e[20]=b):b=e[20];const x=b;let c;e[21]===Symbol.for("react.memo_cache_sentinel")?(c={"Link Name":"link_name","Capacity (Gbit/s)":"capacity","From Organisation":"from_organization","To Organisation":"to_organization","Interconnection Method":"interconnection_method"},e[21]=c):c=e[21];const k=c;let u;e[22]===Symbol.for("react.memo_cache_sentinel")?(u=r.jsxs(r.Fragment,{children:[r.jsx("p",{children:"The table below shows the operational external IP connections of each NREN. These include links to their regional backbone (ie. GÉANT), to other research locations, to the commercial internet, peerings to internet exchanges, cross-border dark fibre links, and any other links they may have."}),r.jsx("p",{children:"NRENs are asked to state the capacity for production purposes, not any additional link that may be there solely for the purpose of giving resilience. Cross-border fibre links are meant as those links which have been commissioned or established by the NREN from a point on their network, which is near the border to another point near the border on the network of a neighbouring NREN."})]}),e[22]=u):u=e[22];const g=u;let f;e[23]!==j?(f=r.jsx(L,{children:r.jsx($,{dataLookup:j,columnInfo:k})}),e[23]=j,e[24]=f):f=e[24];let y;return e[25]!==x||e[26]!==n||e[27]!==f?(y=r.jsx(Y,{title:w["external-connections"],description:g,category:D.Network,filter:x,data:n,filename:"nren_external_connections",children:f}),e[25]=x,e[26]=n,e[27]=f,e[28]=y):y=e[28],y}export{q as default}; diff --git a/compendium_v2/static/FibreLight-DMXWEFDd.js b/compendium_v2/static/FibreLight-BhW_HRmH.js similarity index 82% rename from compendium_v2/static/FibreLight-DMXWEFDd.js rename to compendium_v2/static/FibreLight-BhW_HRmH.js index 632160f4c6b0f2ef01d805222f23b475f46c5977..523b3f7ca1b1e52f5d4bfe4a46511d67a24db22b 100644 --- a/compendium_v2/static/FibreLight-DMXWEFDd.js +++ b/compendium_v2/static/FibreLight-BhW_HRmH.js @@ -1,2 +1,2 @@ -import{c as Y,r as j,F as k,j as h,t as v,S as E}from"./index-CgRqQtHZ.js";import{u as F,g as S,D as R,F as C,f as D}from"./useData-CnR6ocTl.js";import{P as L}from"./PillTable-DC6FlsPO.js";import"./SideBar-Dgfa8b_s.js";import"./xlsx-BHRztzV8.js";import"./index-DgKDGaow.js";import"./hook-DDOSKqdF.js";import"./ColorPill-BRQzvq49.js";import"./Table-ggua9_yJ.js";function B(){const e=Y.c(29),{filterSelection:t,setFilterSelection:c}=j.useContext(k),{data:_,years:N,nrens:g}=F("/api/fibre-light",c);let s,p;if(e[0]!==_||e[1]!==t.selectedNrens||e[2]!==t.selectedYears){let m;e[5]!==t.selectedNrens||e[6]!==t.selectedYears?(m=b=>t.selectedYears.includes(b.year)&&t.selectedNrens.includes(b.nren),e[5]=t.selectedNrens,e[6]=t.selectedYears,e[7]=m):m=e[7],s=_.filter(m),p=S(s,"light_description"),e[0]=_,e[1]=t.selectedNrens,e[2]=t.selectedYears,e[3]=s,e[4]=p}else s=e[3],p=e[4];const w=p;let i;e[8]!==N?(i=[...N],e[8]=N,e[9]=i):i=e[9];let o;e[10]!==g?(o=g.values(),e[10]=g,e[11]=o):o=e[11];let n;e[12]!==o?(n=[...o],e[12]=o,e[13]=n):n=e[13];let l;e[14]!==i||e[15]!==n?(l={availableYears:i,availableNrens:n},e[14]=i,e[15]=n,e[16]=l):l=e[16];let d;e[17]!==t||e[18]!==c||e[19]!==l?(d=h.jsx(C,{filterOptions:l,filterSelection:t,setFilterSelection:c,coloredYears:!0}),e[17]=t,e[18]=c,e[19]=l,e[20]=d):d=e[20];const x=d;let r,f;e[21]===Symbol.for("react.memo_cache_sentinel")?(r=["NREN owns and operates equipment","NREN owns equipment and operation is outsourced","Ownership and management are out-sourced (turn-key model)"],f=new Map([[r[0],"nren_owns_and_operates"],[r[1],"nren_owns_outsourced_operation"],[r[2],"outsourced_ownership_and_operation"]]),e[21]=r,e[22]=f):(r=e[21],f=e[22]);const y=f;let a;e[23]!==w?(a=h.jsx(D,{children:h.jsx(L,{columns:r,dataLookup:w,columnLookup:y,circle:!0})}),e[23]=w,e[24]=a):a=e[24];let u;return e[25]!==x||e[26]!==s||e[27]!==a?(u=h.jsx(R,{title:v["fibre-light"],description:`This graphic shows the different ways NRENs can light their fibre networks. +import{c as Y,r as j,F as k,j as h,t as v,S as E}from"./index-DBbSOdjk.js";import{u as F,g as S,D as R,F as C,f as D}from"./useData-CcKTpALT.js";import{P as L}from"./PillTable-CIcKqQJh.js";import"./SideBar-DfD7Pj8p.js";import"./xlsx-BHRztzV8.js";import"./index-DkYuYqrz.js";import"./hook-D9Tuu5oJ.js";import"./ColorPill-CuYEYQ56.js";import"./Table-DNomfHX4.js";function B(){const e=Y.c(29),{filterSelection:t,setFilterSelection:c}=j.useContext(k),{data:_,years:N,nrens:g}=F("/api/fibre-light",c);let s,p;if(e[0]!==_||e[1]!==t.selectedNrens||e[2]!==t.selectedYears){let m;e[5]!==t.selectedNrens||e[6]!==t.selectedYears?(m=b=>t.selectedYears.includes(b.year)&&t.selectedNrens.includes(b.nren),e[5]=t.selectedNrens,e[6]=t.selectedYears,e[7]=m):m=e[7],s=_.filter(m),p=S(s,"light_description"),e[0]=_,e[1]=t.selectedNrens,e[2]=t.selectedYears,e[3]=s,e[4]=p}else s=e[3],p=e[4];const w=p;let i;e[8]!==N?(i=[...N],e[8]=N,e[9]=i):i=e[9];let o;e[10]!==g?(o=g.values(),e[10]=g,e[11]=o):o=e[11];let n;e[12]!==o?(n=[...o],e[12]=o,e[13]=n):n=e[13];let l;e[14]!==i||e[15]!==n?(l={availableYears:i,availableNrens:n},e[14]=i,e[15]=n,e[16]=l):l=e[16];let d;e[17]!==t||e[18]!==c||e[19]!==l?(d=h.jsx(C,{filterOptions:l,filterSelection:t,setFilterSelection:c,coloredYears:!0}),e[17]=t,e[18]=c,e[19]=l,e[20]=d):d=e[20];const x=d;let r,f;e[21]===Symbol.for("react.memo_cache_sentinel")?(r=["NREN owns and operates equipment","NREN owns equipment and operation is outsourced","Ownership and management are out-sourced (turn-key model)"],f=new Map([[r[0],"nren_owns_and_operates"],[r[1],"nren_owns_outsourced_operation"],[r[2],"outsourced_ownership_and_operation"]]),e[21]=r,e[22]=f):(r=e[21],f=e[22]);const y=f;let a;e[23]!==w?(a=h.jsx(D,{children:h.jsx(L,{columns:r,dataLookup:w,columnLookup:y,circle:!0})}),e[23]=w,e[24]=a):a=e[24];let u;return e[25]!==x||e[26]!==s||e[27]!==a?(u=h.jsx(R,{title:v["fibre-light"],description:`This graphic shows the different ways NRENs can light their fibre networks. The option 'Other' is given, with extra information if you hover over the icon.`,category:E.Network,filter:x,data:s,filename:"fibre_light_of_nrens_per_year",children:a}),e[25]=x,e[26]=s,e[27]=a,e[28]=u):u=e[28],u}export{B as default}; diff --git a/compendium_v2/static/FundingSource-DrmUzWVK.js b/compendium_v2/static/FundingSource-BB230uTC.js similarity index 94% rename from compendium_v2/static/FundingSource-DrmUzWVK.js rename to compendium_v2/static/FundingSource-BB230uTC.js index 355a61997f7a319970738648f9bfc1fd05c3137f..5bb8a6f09cb3673645f929189abbe7cb961a659c 100644 --- a/compendium_v2/static/FundingSource-DrmUzWVK.js +++ b/compendium_v2/static/FundingSource-BB230uTC.js @@ -1 +1 @@ -import{c as D,j as s,r as P,F as z,t as G,S as M,C as y,R as T}from"./index-CgRqQtHZ.js";import{B as H}from"./index-BMzrLxRb.js";import{C as N,a as W,L as q,B as J,p as K,c as Q,d as U,u as V,j as X,D as Z,F as I,f as ee}from"./useData-CnR6ocTl.js";import{p as te}from"./chartjs-plugin-datalabels.esm-B3Gf8X6A.js";import"./SideBar-Dgfa8b_s.js";import"./xlsx-BHRztzV8.js";import"./index-DgKDGaow.js";import"./hook-DDOSKqdF.js";function j(e){const t=D.c(6),{index:i,active:l}=e,n=l===void 0?!0:l;let a;t[0]!==n||t[1]!==i?(a=n?s.jsx("div",{className:`color-of-badge-${i%5}`,style:{width:"20px",height:"35px",margin:"2px"}}):s.jsx("div",{className:"color-of-badge-blank",style:{width:"15px",height:"30px",margin:"2px"}}),t[0]=n,t[1]=i,t[2]=a):a=t[2];let r;return t[3]!==i||t[4]!==a?(r=s.jsx("div",{className:"d-inline-block m-2",children:a},i),t[3]=i,t[4]=a,t[5]=r):r=t[5],r}N.register(W,q,J,K,Q,U);const se={maintainAspectRatio:!1,layout:{padding:{right:60}},animation:{duration:0},plugins:{legend:{display:!1},tooltip:{callbacks:{label:function(e){let t=e.dataset.label||"";return e.parsed.y!==null&&(t+=`: ${e.parsed.x}%`),t}}}},scales:{x:{position:"top",ticks:{callback:e=>`${e}%`,stepSize:10},max:100,min:0},xBottom:{ticks:{callback:e=>`${e}%`,stepSize:10},max:100,min:0,grid:{drawOnChartArea:!1},afterDataLimits:function(e){const t=Object.keys(N.instances);let i=-999999,l=999999;for(const n of t)N.instances[n]&&e.chart.scales.xBottom&&(l=Math.min(N.instances[n].scales.x.min,l),i=Math.max(N.instances[n].scales.x.max,i));e.chart.scales.xBottom.options.min=l,e.chart.scales.xBottom.options.max=i,e.chart.scales.xBottom.min=l,e.chart.scales.xBottom.max=i}},y:{ticks:{autoSkip:!1}}},indexAxis:"y"};function $(){const e=D.c(5);let t;e[0]===Symbol.for("react.memo_cache_sentinel")?(t=s.jsxs(y,{className:"d-flex align-items-center",children:[s.jsx(j,{index:0},0),"Client Institutions"]}),e[0]=t):t=e[0];let i;e[1]===Symbol.for("react.memo_cache_sentinel")?(i=s.jsxs(y,{className:"d-flex align-items-center",children:[s.jsx(j,{index:1},1),"Commercial"]}),e[1]=i):i=e[1];let l;e[2]===Symbol.for("react.memo_cache_sentinel")?(l=s.jsxs(y,{className:"d-flex align-items-center",children:[s.jsx(j,{index:2},2),"European Funding"]}),e[2]=l):l=e[2];let n;e[3]===Symbol.for("react.memo_cache_sentinel")?(n=s.jsxs(y,{className:"d-flex align-items-center",children:[s.jsx(j,{index:3},3),"Gov/Public Bodies"]}),e[3]=n):n=e[3];let a;return e[4]===Symbol.for("react.memo_cache_sentinel")?(a=s.jsx("div",{className:"d-flex justify-content-center bold-grey-12pt",children:s.jsxs(T,{xs:"auto",className:"border rounded-3 border-1 my-5 justify-content-center",children:[t,i,l,n,s.jsxs(y,{className:"d-flex align-items-center",children:[s.jsx(j,{index:4},4),"Other"]})]})}),e[4]=a):a=e[4],a}function ue(){const e=D.c(44),{filterSelection:t,setFilterSelection:i}=P.useContext(z),{data:l,years:n,nrens:a}=V("/api/funding",i);let r,c,o,_;if(e[0]!==t||e[1]!==l||e[2]!==a||e[3]!==i||e[4]!==n){let E;e[9]!==t.selectedNrens||e[10]!==t.selectedYears?(E=m=>t.selectedYears.includes(m.year)&&t.selectedNrens.includes(m.nren),e[9]=t.selectedNrens,e[10]=t.selectedYears,e[11]=E):E=e[11],o=l.filter(E),c=X(o),c.datasets.forEach(m=>{m.data=m.data.filter((ne,L)=>t.selectedNrens.includes(c.labels[L]))});let k;e[12]!==t.selectedNrens?(k=m=>t.selectedNrens.includes(m),e[12]=t.selectedNrens,e[13]=k):k=e[13],c.labels=c.labels.filter(k);let x;e[14]!==n?(x=[...n],e[14]=n,e[15]=x):x=e[15];let p;e[16]!==a?(p=a.values(),e[16]=a,e[17]=p):p=e[17];let g;e[18]!==p?(g=[...p],e[18]=p,e[19]=g):g=e[19];let b;e[20]!==x||e[21]!==g?(b={availableYears:x,availableNrens:g},e[20]=x,e[21]=g,e[22]=b):b=e[22];let F;e[23]!==t||e[24]!==i||e[25]!==b?(F=s.jsx(I,{filterOptions:b,filterSelection:t,setFilterSelection:i}),e[23]=t,e[24]=i,e[25]=b,e[26]=F):F=e[26],r=F,_=Array.from(new Set(o.map(ie))),e[0]=t,e[1]=l,e[2]=a,e[3]=i,e[4]=n,e[5]=r,e[6]=c,e[7]=o,e[8]=_}else r=e[5],c=e[6],o=e[7],_=e[8];const O=_.length,Y=t.selectedYears.length,A=O*Y*2+5;let S;e[27]===Symbol.for("react.memo_cache_sentinel")?(S=s.jsxs("span",{children:['The graph shows the percentage share of their income that NRENs derive from different sources, with any funding and NREN may receive from GÉANT included within "European funding". By "Client institutions" NRENs may be referring to universities, schools, research institutes, commercial clients, or other types of organisation. "Commercial services" include services such as being a domain registry, or security support.',s.jsx("br",{}),"Hovering over the graph bars will show the exact figures, per source. When viewing multiple years, it is advisable to restrict the number of NRENs being compared."]}),e[27]=S):S=e[27];let v;e[28]===Symbol.for("react.memo_cache_sentinel")?(v=s.jsx($,{}),e[28]=v):v=e[28];const R=`${A}rem`;let d;e[29]!==R?(d={height:R},e[29]=R,e[30]=d):d=e[30];let C;e[31]===Symbol.for("react.memo_cache_sentinel")?(C=[te],e[31]=C):C=e[31];let f;e[32]!==c?(f=s.jsx(H,{plugins:C,data:c,options:se}),e[32]=c,e[33]=f):f=e[33];let u;e[34]!==d||e[35]!==f?(u=s.jsx("div",{className:"chart-container",style:d,children:f}),e[34]=d,e[35]=f,e[36]=u):u=e[36];let B;e[37]===Symbol.for("react.memo_cache_sentinel")?(B=s.jsx($,{}),e[37]=B):B=e[37];let h;e[38]!==u?(h=s.jsxs(ee,{children:[v,u,B]}),e[38]=u,e[39]=h):h=e[39];let w;return e[40]!==r||e[41]!==o||e[42]!==h?(w=s.jsx(Z,{title:G.funding,description:S,category:M.Organisation,filter:r,data:o,filename:"income_source_of_nren_per_year",children:h}),e[40]=r,e[41]=o,e[42]=h,e[43]=w):w=e[43],w}function ie(e){return e.nren}export{ue as default}; +import{c as D,j as s,r as P,F as z,t as G,S as M,C as y,R as T}from"./index-DBbSOdjk.js";import{B as H}from"./index-DyJczNpq.js";import{C as N,a as W,L as q,B as J,p as K,c as Q,d as U,u as V,j as X,D as Z,F as I,f as ee}from"./useData-CcKTpALT.js";import{p as te}from"./chartjs-plugin-datalabels.esm-C6J4S2ma.js";import"./SideBar-DfD7Pj8p.js";import"./xlsx-BHRztzV8.js";import"./index-DkYuYqrz.js";import"./hook-D9Tuu5oJ.js";function j(e){const t=D.c(6),{index:i,active:l}=e,n=l===void 0?!0:l;let a;t[0]!==n||t[1]!==i?(a=n?s.jsx("div",{className:`color-of-badge-${i%5}`,style:{width:"20px",height:"35px",margin:"2px"}}):s.jsx("div",{className:"color-of-badge-blank",style:{width:"15px",height:"30px",margin:"2px"}}),t[0]=n,t[1]=i,t[2]=a):a=t[2];let r;return t[3]!==i||t[4]!==a?(r=s.jsx("div",{className:"d-inline-block m-2",children:a},i),t[3]=i,t[4]=a,t[5]=r):r=t[5],r}N.register(W,q,J,K,Q,U);const se={maintainAspectRatio:!1,layout:{padding:{right:60}},animation:{duration:0},plugins:{legend:{display:!1},tooltip:{callbacks:{label:function(e){let t=e.dataset.label||"";return e.parsed.y!==null&&(t+=`: ${e.parsed.x}%`),t}}}},scales:{x:{position:"top",ticks:{callback:e=>`${e}%`,stepSize:10},max:100,min:0},xBottom:{ticks:{callback:e=>`${e}%`,stepSize:10},max:100,min:0,grid:{drawOnChartArea:!1},afterDataLimits:function(e){const t=Object.keys(N.instances);let i=-999999,l=999999;for(const n of t)N.instances[n]&&e.chart.scales.xBottom&&(l=Math.min(N.instances[n].scales.x.min,l),i=Math.max(N.instances[n].scales.x.max,i));e.chart.scales.xBottom.options.min=l,e.chart.scales.xBottom.options.max=i,e.chart.scales.xBottom.min=l,e.chart.scales.xBottom.max=i}},y:{ticks:{autoSkip:!1}}},indexAxis:"y"};function $(){const e=D.c(5);let t;e[0]===Symbol.for("react.memo_cache_sentinel")?(t=s.jsxs(y,{className:"d-flex align-items-center",children:[s.jsx(j,{index:0},0),"Client Institutions"]}),e[0]=t):t=e[0];let i;e[1]===Symbol.for("react.memo_cache_sentinel")?(i=s.jsxs(y,{className:"d-flex align-items-center",children:[s.jsx(j,{index:1},1),"Commercial"]}),e[1]=i):i=e[1];let l;e[2]===Symbol.for("react.memo_cache_sentinel")?(l=s.jsxs(y,{className:"d-flex align-items-center",children:[s.jsx(j,{index:2},2),"European Funding"]}),e[2]=l):l=e[2];let n;e[3]===Symbol.for("react.memo_cache_sentinel")?(n=s.jsxs(y,{className:"d-flex align-items-center",children:[s.jsx(j,{index:3},3),"Gov/Public Bodies"]}),e[3]=n):n=e[3];let a;return e[4]===Symbol.for("react.memo_cache_sentinel")?(a=s.jsx("div",{className:"d-flex justify-content-center bold-grey-12pt",children:s.jsxs(T,{xs:"auto",className:"border rounded-3 border-1 my-5 justify-content-center",children:[t,i,l,n,s.jsxs(y,{className:"d-flex align-items-center",children:[s.jsx(j,{index:4},4),"Other"]})]})}),e[4]=a):a=e[4],a}function ue(){const e=D.c(44),{filterSelection:t,setFilterSelection:i}=P.useContext(z),{data:l,years:n,nrens:a}=V("/api/funding",i);let r,c,o,_;if(e[0]!==t||e[1]!==l||e[2]!==a||e[3]!==i||e[4]!==n){let E;e[9]!==t.selectedNrens||e[10]!==t.selectedYears?(E=m=>t.selectedYears.includes(m.year)&&t.selectedNrens.includes(m.nren),e[9]=t.selectedNrens,e[10]=t.selectedYears,e[11]=E):E=e[11],o=l.filter(E),c=X(o),c.datasets.forEach(m=>{m.data=m.data.filter((ne,L)=>t.selectedNrens.includes(c.labels[L]))});let k;e[12]!==t.selectedNrens?(k=m=>t.selectedNrens.includes(m),e[12]=t.selectedNrens,e[13]=k):k=e[13],c.labels=c.labels.filter(k);let x;e[14]!==n?(x=[...n],e[14]=n,e[15]=x):x=e[15];let p;e[16]!==a?(p=a.values(),e[16]=a,e[17]=p):p=e[17];let g;e[18]!==p?(g=[...p],e[18]=p,e[19]=g):g=e[19];let b;e[20]!==x||e[21]!==g?(b={availableYears:x,availableNrens:g},e[20]=x,e[21]=g,e[22]=b):b=e[22];let F;e[23]!==t||e[24]!==i||e[25]!==b?(F=s.jsx(I,{filterOptions:b,filterSelection:t,setFilterSelection:i}),e[23]=t,e[24]=i,e[25]=b,e[26]=F):F=e[26],r=F,_=Array.from(new Set(o.map(ie))),e[0]=t,e[1]=l,e[2]=a,e[3]=i,e[4]=n,e[5]=r,e[6]=c,e[7]=o,e[8]=_}else r=e[5],c=e[6],o=e[7],_=e[8];const O=_.length,Y=t.selectedYears.length,A=O*Y*2+5;let S;e[27]===Symbol.for("react.memo_cache_sentinel")?(S=s.jsxs("span",{children:['The graph shows the percentage share of their income that NRENs derive from different sources, with any funding and NREN may receive from GÉANT included within "European funding". By "Client institutions" NRENs may be referring to universities, schools, research institutes, commercial clients, or other types of organisation. "Commercial services" include services such as being a domain registry, or security support.',s.jsx("br",{}),"Hovering over the graph bars will show the exact figures, per source. When viewing multiple years, it is advisable to restrict the number of NRENs being compared."]}),e[27]=S):S=e[27];let v;e[28]===Symbol.for("react.memo_cache_sentinel")?(v=s.jsx($,{}),e[28]=v):v=e[28];const R=`${A}rem`;let d;e[29]!==R?(d={height:R},e[29]=R,e[30]=d):d=e[30];let C;e[31]===Symbol.for("react.memo_cache_sentinel")?(C=[te],e[31]=C):C=e[31];let f;e[32]!==c?(f=s.jsx(H,{plugins:C,data:c,options:se}),e[32]=c,e[33]=f):f=e[33];let u;e[34]!==d||e[35]!==f?(u=s.jsx("div",{className:"chart-container",style:d,children:f}),e[34]=d,e[35]=f,e[36]=u):u=e[36];let B;e[37]===Symbol.for("react.memo_cache_sentinel")?(B=s.jsx($,{}),e[37]=B):B=e[37];let h;e[38]!==u?(h=s.jsxs(ee,{children:[v,u,B]}),e[38]=u,e[39]=h):h=e[39];let w;return e[40]!==r||e[41]!==o||e[42]!==h?(w=s.jsx(Z,{title:G.funding,description:S,category:M.Organisation,filter:r,data:o,filename:"income_source_of_nren_per_year",children:h}),e[40]=r,e[41]=o,e[42]=h,e[43]=w):w=e[43],w}function ie(e){return e.nren}export{ue as default}; diff --git a/compendium_v2/static/HTMLLegendPlugin-Dd1EPe9c.js b/compendium_v2/static/HTMLLegendPlugin-Ci0zt1Jy.js similarity index 93% rename from compendium_v2/static/HTMLLegendPlugin-Dd1EPe9c.js rename to compendium_v2/static/HTMLLegendPlugin-Ci0zt1Jy.js index 825feab70f85c6dd67abd645285d25e765a5a743..5923668a1de4f0d1c81bafbb874b4fc5e8d5e2cf 100644 --- a/compendium_v2/static/HTMLLegendPlugin-Dd1EPe9c.js +++ b/compendium_v2/static/HTMLLegendPlugin-Ci0zt1Jy.js @@ -1 +1 @@ -import{c as g,j as p}from"./index-CgRqQtHZ.js";import{f as m,C as c}from"./useData-CnR6ocTl.js";const C=o=>{const e=g.c(8);let{children:s,location:t}=o;t||(t="both");const r=t==="top"||t==="both",a=t==="bottom"||t==="both";let n;e[0]!==r?(n=r&&p.jsx("div",{style:{paddingLeft:"33%",paddingTop:"2.5rem",paddingBottom:"1.5rem"},id:"legendtop"}),e[0]=r,e[1]=n):n=e[1];let l;e[2]!==a?(l=a&&p.jsx("div",{style:{paddingLeft:"33%",paddingTop:"1.5rem"},id:"legendbottom"}),e[2]=a,e[3]=l):l=e[3];let i;return e[4]!==s||e[5]!==n||e[6]!==l?(i=p.jsxs(m,{children:[n,s,l]}),e[4]=s,e[5]=n,e[6]=l,e[7]=i):i=e[7],i},u=(o,e)=>{const s=document.getElementById(e);if(!s)return null;let t=s.querySelector("ul");return t||(t=document.createElement("ul"),t.style.display="flex",t.style.flexDirection="row",t.style.margin="0",t.style.padding="0",s.appendChild(t)),t},b={id:"htmlLegend",afterUpdate(o,e,s){for(const t of s.containerIDs){const r=u(o,t);if(!r)return;for(;r.firstChild;)r.firstChild.remove();o.options.plugins.legend.labels.generateLabels(o).forEach(n=>{const l=document.createElement("li");l.style.alignItems="center",l.style.cursor="pointer",l.style.display="flex",l.style.flexDirection="row",l.style.marginLeft="10px",l.onclick=()=>{const{type:f}=o.config;f==="pie"||f==="doughnut"?o.toggleDataVisibility(n.index):o.setDatasetVisibility(n.datasetIndex,!o.isDatasetVisible(n.datasetIndex)),o.update()};const i=document.createElement("span");i.style.background=n.fillStyle,i.style.borderColor=n.strokeStyle,i.style.borderWidth=n.lineWidth+"px",i.style.display="inline-block",i.style.height="1rem",i.style.marginRight="10px",i.style.width="2.5rem";const d=document.createElement("p");d.style.color=n.fontColor,d.style.margin="0",d.style.padding="0",d.style.textDecoration=n.hidden?"line-through":"",d.style.fontSize=`${c.defaults.font.size}px`,d.style.fontFamily=`${c.defaults.font.family}`,d.style.fontWeight=`${c.defaults.font.weight}`;const y=document.createTextNode(n.text);d.appendChild(y),l.appendChild(i),l.appendChild(d),r.appendChild(l)})}}};export{C as W,b as h}; +import{c as g,j as p}from"./index-DBbSOdjk.js";import{f as m,C as c}from"./useData-CcKTpALT.js";const C=o=>{const e=g.c(8);let{children:s,location:t}=o;t||(t="both");const r=t==="top"||t==="both",a=t==="bottom"||t==="both";let n;e[0]!==r?(n=r&&p.jsx("div",{style:{paddingLeft:"33%",paddingTop:"2.5rem",paddingBottom:"1.5rem"},id:"legendtop"}),e[0]=r,e[1]=n):n=e[1];let l;e[2]!==a?(l=a&&p.jsx("div",{style:{paddingLeft:"33%",paddingTop:"1.5rem"},id:"legendbottom"}),e[2]=a,e[3]=l):l=e[3];let i;return e[4]!==s||e[5]!==n||e[6]!==l?(i=p.jsxs(m,{children:[n,s,l]}),e[4]=s,e[5]=n,e[6]=l,e[7]=i):i=e[7],i},u=(o,e)=>{const s=document.getElementById(e);if(!s)return null;let t=s.querySelector("ul");return t||(t=document.createElement("ul"),t.style.display="flex",t.style.flexDirection="row",t.style.margin="0",t.style.padding="0",s.appendChild(t)),t},b={id:"htmlLegend",afterUpdate(o,e,s){for(const t of s.containerIDs){const r=u(o,t);if(!r)return;for(;r.firstChild;)r.firstChild.remove();o.options.plugins.legend.labels.generateLabels(o).forEach(n=>{const l=document.createElement("li");l.style.alignItems="center",l.style.cursor="pointer",l.style.display="flex",l.style.flexDirection="row",l.style.marginLeft="10px",l.onclick=()=>{const{type:f}=o.config;f==="pie"||f==="doughnut"?o.toggleDataVisibility(n.index):o.setDatasetVisibility(n.datasetIndex,!o.isDatasetVisible(n.datasetIndex)),o.update()};const i=document.createElement("span");i.style.background=n.fillStyle,i.style.borderColor=n.strokeStyle,i.style.borderWidth=n.lineWidth+"px",i.style.display="inline-block",i.style.height="1rem",i.style.marginRight="10px",i.style.width="2.5rem";const d=document.createElement("p");d.style.color=n.fontColor,d.style.margin="0",d.style.padding="0",d.style.textDecoration=n.hidden?"line-through":"",d.style.fontSize=`${c.defaults.font.size}px`,d.style.fontFamily=`${c.defaults.font.family}`,d.style.fontWeight=`${c.defaults.font.weight}`;const y=document.createTextNode(n.text);d.appendChild(y),l.appendChild(i),l.appendChild(d),r.appendChild(l)})}}};export{C as W,b as h}; diff --git a/compendium_v2/static/IRUDuration-Df0Yk4t9.js b/compendium_v2/static/IRUDuration-Df0Yk4t9.js deleted file mode 100644 index 500c4ad7e461cc7a48072f08f1409a50554a8839..0000000000000000000000000000000000000000 --- a/compendium_v2/static/IRUDuration-Df0Yk4t9.js +++ /dev/null @@ -1 +0,0 @@ -import{c as C,r as D,F as L,j as n,t as R,S as j}from"./index-CgRqQtHZ.js";import{L as E}from"./index-BMzrLxRb.js";import{C as v,a as k,L as F,P as I,b as U,p as P,c as w,d as O,u as Y,e as T,D as $,F as q,f as z}from"./useData-CnR6ocTl.js";import{g as A}from"./charthelpers-D_bh9y-E.js";import"./SideBar-Dgfa8b_s.js";import"./xlsx-BHRztzV8.js";import"./index-DgKDGaow.js";import"./hook-DDOSKqdF.js";v.register(k,F,I,U,P,w,O);function W(){const e=C.c(24);let o;e[0]===Symbol.for("react.memo_cache_sentinel")?(o=r=>r.iru_duration!=null,e[0]=o):o=e[0];const N=o,{filterSelection:t,setFilterSelection:c}=D.useContext(L),{data:g,nrens:_}=Y("/api/dark-fibre-lease",c,N);let a,f;if(e[1]!==g||e[2]!==t.selectedNrens){let r;e[5]!==t.selectedNrens?(r=S=>t.selectedNrens.includes(S.nren),e[5]=t.selectedNrens,e[6]=r):r=e[6],a=g.filter(r),f=T(a,"iru_duration"),e[1]=g,e[2]=t.selectedNrens,e[3]=a,e[4]=f}else a=e[3],f=e[4];const x=f;let m;e[7]===Symbol.for("react.memo_cache_sentinel")?(m=[],e[7]=m):m=e[7];let s;e[8]!==_?(s=_.values(),e[8]=_,e[9]=s):s=e[9];let i;e[10]!==s?(i={availableYears:m,availableNrens:[...s]},e[10]=s,e[11]=i):i=e[11];let d;e[12]!==t||e[13]!==c||e[14]!==i?(d=n.jsx(q,{filterOptions:i,filterSelection:t,setFilterSelection:c}),e[12]=t,e[13]=c,e[14]=i,e[15]=d):d=e[15];const y=d;let p;e[16]===Symbol.for("react.memo_cache_sentinel")?(p=A({title:"Lease Duration In Years",tooltipUnit:"years",tickLimit:999}),e[16]=p):p=e[16];const b=p;let u;e[17]===Symbol.for("react.memo_cache_sentinel")?(u=n.jsx("span",{children:"NRENs sometimes take out an IRU (Indefeasible Right of Use), which is essentially a long-term lease, on a portion of the capacity of a cable rather than laying cable themselves. This graph shows the average duration, in years, of the IRUs of NRENs."}),e[17]=u):u=e[17];let l;e[18]!==x?(l=n.jsx(z,{children:n.jsx(E,{data:x,options:b})}),e[18]=x,e[19]=l):l=e[19];let h;return e[20]!==y||e[21]!==a||e[22]!==l?(h=n.jsx($,{title:R["iru-duration"],description:u,category:j.Network,filter:y,data:a,filename:"iru_duration_data",children:l}),e[20]=y,e[21]=a,e[22]=l,e[23]=h):h=e[23],h}export{W as default}; diff --git a/compendium_v2/static/IRUDuration-RAtcDfR4.js b/compendium_v2/static/IRUDuration-RAtcDfR4.js new file mode 100644 index 0000000000000000000000000000000000000000..4a04ec0bc892fbe450d52b899f388ac4bf3859de --- /dev/null +++ b/compendium_v2/static/IRUDuration-RAtcDfR4.js @@ -0,0 +1 @@ +import{c as C,r as S,F as D,j as l,t as L,S as R}from"./index-DBbSOdjk.js";import{L as j}from"./index-DyJczNpq.js";import{C as E,a as v,L as k,P as F,b as I,p as U,c as P,d as w,u as O,e as Y,D as T,F as $,f as q}from"./useData-CcKTpALT.js";import{g as z}from"./charthelpers-CHBq5wBZ.js";import"./SideBar-DfD7Pj8p.js";import"./xlsx-BHRztzV8.js";import"./index-DkYuYqrz.js";import"./hook-D9Tuu5oJ.js";E.register(v,k,F,I,U,P,w);function W(){const e=C.c(23),N=A,{filterSelection:t,setFilterSelection:n}=S.useContext(D),{data:h,nrens:g}=O("/api/dark-fibre-lease",n,N);let a,o;if(e[0]!==h||e[1]!==t.selectedNrens){let d;e[4]!==t.selectedNrens?(d=b=>t.selectedNrens.includes(b.nren),e[4]=t.selectedNrens,e[5]=d):d=e[5],a=h.filter(d),o=Y(a,"iru_duration"),e[0]=h,e[1]=t.selectedNrens,e[2]=a,e[3]=o}else a=e[2],o=e[3];const _=o;let c;e[6]===Symbol.for("react.memo_cache_sentinel")?(c=[],e[6]=c):c=e[6];let s;e[7]!==g?(s=g.values(),e[7]=g,e[8]=s):s=e[8];let i;e[9]!==s?(i={availableYears:c,availableNrens:[...s]},e[9]=s,e[10]=i):i=e[10];let f;e[11]!==t||e[12]!==n||e[13]!==i?(f=l.jsx($,{filterOptions:i,filterSelection:t,setFilterSelection:n}),e[11]=t,e[12]=n,e[13]=i,e[14]=f):f=e[14];const x=f;let m;e[15]===Symbol.for("react.memo_cache_sentinel")?(m=z({title:"Lease Duration In Years",tooltipUnit:"years",tickLimit:999}),e[15]=m):m=e[15];const y=m;let u;e[16]===Symbol.for("react.memo_cache_sentinel")?(u=l.jsx("span",{children:"NRENs sometimes take out an IRU (Indefeasible Right of Use), which is essentially a long-term lease, on a portion of the capacity of a cable rather than laying cable themselves. This graph shows the average duration, in years, of the IRUs of NRENs."}),e[16]=u):u=e[16];let r;e[17]!==_?(r=l.jsx(q,{children:l.jsx(j,{data:_,options:y})}),e[17]=_,e[18]=r):r=e[18];let p;return e[19]!==x||e[20]!==a||e[21]!==r?(p=l.jsx(T,{title:L["iru-duration"],description:u,category:R.Network,filter:x,data:a,filename:"iru_duration_data",children:r}),e[19]=x,e[20]=a,e[21]=r,e[22]=p):p=e[22],p}function A(e){return e.iru_duration!=null}export{W as default}; diff --git a/compendium_v2/static/Landing-DerYniG4.js b/compendium_v2/static/Landing-Dx2MGVWO.js similarity index 98% rename from compendium_v2/static/Landing-DerYniG4.js rename to compendium_v2/static/Landing-Dx2MGVWO.js index bb4465cafddbf3f8ed5ed20c6f28b3b8c08ef8b7..1f9b2db3f45eae5598baf273e4581ec208697aaf 100644 --- a/compendium_v2/static/Landing-DerYniG4.js +++ b/compendium_v2/static/Landing-Dx2MGVWO.js @@ -1 +1 @@ -import{c as Q,Q as K,r as L,a1 as X,D as Z,j as t,L as z,E as ee,R as te}from"./index-CgRqQtHZ.js";import{u as W,w as ne}from"./xlsx-BHRztzV8.js";import{S as re}from"./SurveySidebar-CfKoK4Gq.js";import{f as se,a as le}from"./survey-3meXCY6T.js";import{T as q}from"./Table-ggua9_yJ.js";import"./SideBar-Dgfa8b_s.js";const oe=()=>{const e=Q.c(32);let i;e[0]===Symbol.for("react.memo_cache_sentinel")?(i=[],e[0]=i):i=e[0];const[u,m]=L.useState(i);let n;e[1]===Symbol.for("react.memo_cache_sentinel")?(n=[],e[1]=n):n=e[1];const[a,h]=L.useState(n);let s;e[2]===Symbol.for("react.memo_cache_sentinel")?(s=function(){fetch("/api/nren-exclusions").then(de).then(r=>{m(r)}).catch(me)},e[2]=s):s=e[2];const c=s;let f,P;e[3]===Symbol.for("react.memo_cache_sentinel")?(f=()=>{fetch("/api/nren/list").then(he).then(l=>{const r=l.map(ue);h(r)}).catch(fe)},P=[],e[3]=f,e[4]=P):(f=e[3],P=e[4]),L.useEffect(f,P);let E;e[5]===Symbol.for("react.memo_cache_sentinel")?(E=async function(r,D){const N=await fetch("/api/nren-exclusions",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({nren:r,year:D})}),$=await N.json();N.ok?m($):alert($.message),document.getElementById("excludenren").value="",document.getElementById("excludeyear").value=""},e[5]=E):E=e[5];const G=E;let S;e[6]===Symbol.for("react.memo_cache_sentinel")?(S=async function(r,D){const N=await fetch("/api/nren-exclusions",{method:"DELETE",headers:{"Content-Type":"application/json"},body:JSON.stringify({nren:r,year:D})}),$=await N.json();N.ok?m($):alert($.message)},e[6]=S):S=e[6];const H=S;let w,M;e[7]===Symbol.for("react.memo_cache_sentinel")?(w=()=>{c()},M=[],e[7]=w,e[8]=M):(w=e[7],M=e[8]),L.useEffect(w,M);let x,C,k,R;e[9]===Symbol.for("react.memo_cache_sentinel")?(R=t.jsx("hr",{className:"fake-divider"}),x=t.jsx("h2",{children:"NREN Exclusions"}),C=t.jsx("p",{children:"Use this table to exclude data for a specific NREN and year."}),k=t.jsx("p",{children:"If an NREN shows up in this table, they will not be allowed to view/edit or answer their survey."}),e[9]=x,e[10]=C,e[11]=k,e[12]=R):(x=e[9],C=e[10],k=e[11],R=e[12]);let T;e[13]===Symbol.for("react.memo_cache_sentinel")?(T=t.jsx("thead",{children:t.jsxs("tr",{children:[t.jsx("th",{children:"NREN"}),t.jsx("th",{children:"Year"}),t.jsx("th",{children:"Actions"})]})}),e[13]=T):T=e[13];let A;e[14]===Symbol.for("react.memo_cache_sentinel")?(A=t.jsx("option",{value:"",children:"Select NREN"}),e[14]=A):A=e[14];let y;e[15]!==a?(y=a.map(xe),e[15]=a,e[16]=y):y=e[16];let p;e[17]!==y?(p=t.jsx("td",{children:t.jsxs("select",{id:"excludenren",children:[A,y]})}),e[17]=y,e[18]=p):p=e[18];let O;e[19]===Symbol.for("react.memo_cache_sentinel")?(O=t.jsx("td",{children:t.jsx("input",{id:"excludeyear",type:"year",name:"year"})}),e[19]=O):O=e[19];let I;e[20]===Symbol.for("react.memo_cache_sentinel")?(I=t.jsx("td",{children:t.jsx("button",{className:"btn btn-primary",onClick:()=>{const l=document.getElementById("excludenren").value,r=parseInt(document.getElementById("excludeyear").value);if(!l||!r){alert("Please enter an NREN and year");return}G(l,r)},children:"Add Exclusion"})}),e[20]=I):I=e[20];let j;e[21]!==p?(j=t.jsxs("tr",{children:[p,O,I]}),e[21]=p,e[22]=j):j=e[22];let b;if(e[23]!==u){let l;e[25]===Symbol.for("react.memo_cache_sentinel")?(l=r=>t.jsxs("tr",{children:[t.jsx("td",{children:r.nren}),t.jsx("td",{children:r.year}),t.jsx("td",{children:t.jsx("button",{className:"btn btn-danger",onClick:()=>H(r.nren,r.year),children:"Delete"})})]},r.nren+r.year),e[25]=l):l=e[25],b=u.map(l),e[23]=u,e[24]=b}else b=e[24];let d;e[26]!==j||e[27]!==b?(d=t.jsxs(q,{striped:!0,bordered:!0,responsive:!0,children:[T,t.jsxs("tbody",{children:[j,b]})]}),e[26]=j,e[27]=b,e[28]=d):d=e[28];let _;e[29]===Symbol.for("react.memo_cache_sentinel")?(_=t.jsx("hr",{className:"fake-divider"}),e[29]=_):_=e[29];let v;return e[30]!==d?(v=t.jsxs(t.Fragment,{children:[R,x,C,k,d,_]}),e[30]=d,e[31]=v):v=e[31],v},ce=()=>{const e=Q.c(7),[i,u]=L.useState();let m,n;e[0]===Symbol.for("react.memo_cache_sentinel")?(m=()=>{le().then(c=>{u(c[0])})},n=[],e[0]=m,e[1]=n):(m=e[0],n=e[1]),L.useEffect(m,n);let a;e[2]===Symbol.for("react.memo_cache_sentinel")?(a=t.jsx("thead",{children:t.jsxs("tr",{children:[t.jsx("th",{children:"(N)REN"}),t.jsx("th",{children:"Link"}),t.jsx("th",{children:"Survey Status"})]})}),e[2]=a):a=e[2];let h;e[3]!==i?(h=i&&i.responses.map(c=>t.jsxs("tr",{children:[t.jsx("td",{children:c.nren.name}),t.jsx("td",{children:t.jsx(z,{to:`/survey/response/${i.year}/${c.nren.name}`,children:t.jsx("span",{children:"Navigate to survey"})})}),t.jsx("td",{children:c.status})]},c.nren.id)),e[3]=i,e[4]=h):h=e[4];let s;return e[5]!==h?(s=t.jsxs(q,{striped:!0,bordered:!0,responsive:!0,children:[a,t.jsx("tbody",{children:h})]}),e[5]=h,e[6]=s):s=e[6],s};function ge(){const e=Q.c(40),{trackPageView:i}=K(),{user:u}=L.useContext(X),m=Z(),n=!!u.id,a=n?!!u.nrens.length:!1,h=a?u.nrens[0]:"",s=n?u.permissions.admin:!1,c=n?u.role==="observer":!1,[f,P]=L.useState(null);let E,G;e[0]!==i?(E=()=>{(async()=>{const N=await se();P(N)})(),i({documentTitle:"GEANT Survey Landing Page"})},G=[i],e[0]=i,e[1]=E,e[2]=G):(E=e[1],G=e[2]),L.useEffect(E,G);let S;e[3]!==h||e[4]!==f||e[5]!==m?(S=()=>{try{return m(`/survey/response/${f}/${h}`),t.jsx("li",{children:"Redirecting to survey..."})}catch(D){return console.error("Error navigating:",D),null}},e[3]=h,e[4]=f,e[5]=m,e[6]=S):S=e[6];const H=S;let w;if(e[7]===Symbol.for("react.memo_cache_sentinel")){const D=function(Y,F,g){const B=W.decode_range(Y["!ref"]??"");let J=-1;for(let o=B.s.c;o<=B.e.c;o++){const U=W.encode_cell({r:B.s.r,c:o}),V=Y[U];if(V&&typeof V.v=="string"&&V.v===F){J=o;break}}if(J===-1){console.error(`Column '${F}' not found.`);return}for(let o=B.s.r+1;o<=B.e.r;++o){const U=W.encode_cell({r:o,c:J});Y[U]&&Y[U].t==="n"&&(Y[U].z=g)}},N=function(Y){const F=W.book_new();Y.forEach(o=>{const U=W.json_to_sheet(o.data);o.meta&&D(U,o.meta.columnName,o.meta.format),W.book_append_sheet(F,U,o.name)});const g=ne(F,{bookType:"xlsx",type:"binary"}),B=new ArrayBuffer(g.length),J=new Uint8Array(B);for(let o=0;o<g.length;o++)J[o]=g.charCodeAt(o)&255;return new Blob([B],{type:"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet;charset=UTF-8"})};w=function(){fetch("/api/data-download").then(ae).then(Y=>{const F=N(Y),g=document.createElement("a");g.href=URL.createObjectURL(F),g.download="data.xlsx",document.body.appendChild(g),g.click(),document.body.removeChild(g)}).catch(ie)},e[7]=w}else w=e[7];const M=w;let x;e[8]!==s?(x=s&&t.jsx(re,{}),e[8]=s,e[9]=x):x=e[9];let C;e[10]===Symbol.for("react.memo_cache_sentinel")?(C=t.jsx("h1",{className:"geant-header",children:"THE GÉANT COMPENDIUM OF NRENS SURVEY"}),e[10]=C):C=e[10];let k,R;e[11]===Symbol.for("react.memo_cache_sentinel")?(k={maxWidth:"75rem"},R={textAlign:"left"},e[11]=k,e[12]=R):(k=e[11],R=e[12]);let T;e[13]===Symbol.for("react.memo_cache_sentinel")?(T=t.jsx("br",{}),e[13]=T):T=e[13];let A;e[14]===Symbol.for("react.memo_cache_sentinel")?(A=t.jsx("a",{href:"/login",children:"here"}),e[14]=A):A=e[14];let y;e[15]===Symbol.for("react.memo_cache_sentinel")?(y=t.jsx("br",{}),e[15]=y):y=e[15];let p;e[16]===Symbol.for("react.memo_cache_sentinel")?(p=t.jsx("br",{}),e[16]=p):p=e[16];let O,I,j,b;e[17]===Symbol.for("react.memo_cache_sentinel")?(O=t.jsxs("p",{style:R,children:["Hello,",T,"Welcome to the GÉANT Compendium Survey. (N)REN Compendium administrators can login via Single Sign On (SSO) ",A,", which will complete their registration to fill in the latest Compendium survey. This will send a notification to the Compendium administration team and they will assign you to your (N)REN.",y,"Once this step has been completed, you will receive an email from the administration team. We aim to get back to you the same working day, but sometimes may take a little longer.",p,"If you are not sure whether you are a Compendium Administrator for your (N)REN, please contact your GÉANT Partner Relations relationship manager.",t.jsx("br",{}),"Thank you."]}),I=t.jsx("span",{children:"Current registration status:"}),j=t.jsx("br",{}),b=t.jsx("br",{}),e[17]=O,e[18]=I,e[19]=j,e[20]=b):(O=e[17],I=e[18],j=e[19],b=e[20]);let d;e[21]!==f||e[22]!==a||e[23]!==s||e[24]!==c||e[25]!==n||e[26]!==H?(d=s?t.jsxs("ul",{children:[t.jsx("li",{children:t.jsx("span",{children:"You are logged in as a Compendium Administrator"})}),t.jsx("li",{children:t.jsxs("span",{children:["Click ",t.jsx(z,{to:"/survey/admin/surveys",children:"here"})," to access the survey management page."]})}),t.jsx("li",{children:t.jsxs("span",{children:["Click ",t.jsx(z,{to:"/survey/admin/users",children:"here"})," to access the user management page."]})}),t.jsx("li",{children:t.jsxs("span",{children:["Click ",t.jsx("a",{href:"#",onClick:M,children:"here"})," to do the full data download."]})})]}):t.jsxs("ul",{children:[f&&!s&&!c&&a&&H(),n?t.jsx("li",{children:t.jsx("span",{children:"You are logged in"})}):t.jsx("li",{children:t.jsx("span",{children:"You are not logged in"})}),n&&!c&&!a&&t.jsx("li",{children:t.jsx("span",{children:"Your access to the survey has not yet been approved"})}),n&&!c&&!a&&t.jsx("li",{children:t.jsx("span",{children:"Once you have been approved, you will immediately be directed to the relevant survey upon visiting this page"})}),n&&c&&t.jsx("li",{children:t.jsx("span",{children:"You have read-only access to the following surveys:"})})]}),e[21]=f,e[22]=a,e[23]=s,e[24]=c,e[25]=n,e[26]=H,e[27]=d):d=e[27];let _;e[28]!==s?(_=s&&t.jsx(oe,{}),e[28]=s,e[29]=_):_=e[29];let v;e[30]!==c||e[31]!==n?(v=n&&c&&t.jsx(ce,{}),e[30]=c,e[31]=n,e[32]=v):v=e[32];let l;e[33]!==d||e[34]!==_||e[35]!==v?(l=t.jsx(ee,{className:"py-5 grey-container",children:t.jsx(te,{children:t.jsxs("div",{className:"center-text",children:[C,t.jsxs("div",{className:"wordwrap pt-4",style:k,children:[O,I,j,b,d,_,v]})]})})}),e[33]=d,e[34]=_,e[35]=v,e[36]=l):l=e[36];let r;return e[37]!==l||e[38]!==x?(r=t.jsxs(t.Fragment,{children:[x,l]}),e[37]=l,e[38]=x,e[39]=r):r=e[39],r}function ie(e){console.error("Error fetching data:",e),alert("An error occurred while creating the data download Excel file.")}function ae(e){if(!e.ok)throw new Error("Network response was not ok");return e.json()}function de(e){return e.json()}function me(e){console.error("Error fetching NREN exclusions:",e)}function he(e){return e.json()}function ue(e){return e.name}function fe(e){console.error("Error fetching NRENs:",e)}function xe(e){return t.jsx("option",{value:e,children:e},e)}export{ge as default}; +import{c as Q,Q as K,r as L,a1 as X,D as Z,j as t,L as z,E as ee,R as te}from"./index-DBbSOdjk.js";import{u as W,w as ne}from"./xlsx-BHRztzV8.js";import{S as re}from"./SurveySidebar-C_LqylD3.js";import{f as se,a as le}from"./survey-3meXCY6T.js";import{T as q}from"./Table-DNomfHX4.js";import"./SideBar-DfD7Pj8p.js";const oe=()=>{const e=Q.c(32);let i;e[0]===Symbol.for("react.memo_cache_sentinel")?(i=[],e[0]=i):i=e[0];const[u,m]=L.useState(i);let n;e[1]===Symbol.for("react.memo_cache_sentinel")?(n=[],e[1]=n):n=e[1];const[a,h]=L.useState(n);let s;e[2]===Symbol.for("react.memo_cache_sentinel")?(s=function(){fetch("/api/nren-exclusions").then(de).then(r=>{m(r)}).catch(me)},e[2]=s):s=e[2];const c=s;let f,P;e[3]===Symbol.for("react.memo_cache_sentinel")?(f=()=>{fetch("/api/nren/list").then(he).then(l=>{const r=l.map(ue);h(r)}).catch(fe)},P=[],e[3]=f,e[4]=P):(f=e[3],P=e[4]),L.useEffect(f,P);let E;e[5]===Symbol.for("react.memo_cache_sentinel")?(E=async function(r,D){const N=await fetch("/api/nren-exclusions",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({nren:r,year:D})}),$=await N.json();N.ok?m($):alert($.message),document.getElementById("excludenren").value="",document.getElementById("excludeyear").value=""},e[5]=E):E=e[5];const G=E;let S;e[6]===Symbol.for("react.memo_cache_sentinel")?(S=async function(r,D){const N=await fetch("/api/nren-exclusions",{method:"DELETE",headers:{"Content-Type":"application/json"},body:JSON.stringify({nren:r,year:D})}),$=await N.json();N.ok?m($):alert($.message)},e[6]=S):S=e[6];const H=S;let w,M;e[7]===Symbol.for("react.memo_cache_sentinel")?(w=()=>{c()},M=[],e[7]=w,e[8]=M):(w=e[7],M=e[8]),L.useEffect(w,M);let x,C,k,R;e[9]===Symbol.for("react.memo_cache_sentinel")?(R=t.jsx("hr",{className:"fake-divider"}),x=t.jsx("h2",{children:"NREN Exclusions"}),C=t.jsx("p",{children:"Use this table to exclude data for a specific NREN and year."}),k=t.jsx("p",{children:"If an NREN shows up in this table, they will not be allowed to view/edit or answer their survey."}),e[9]=x,e[10]=C,e[11]=k,e[12]=R):(x=e[9],C=e[10],k=e[11],R=e[12]);let T;e[13]===Symbol.for("react.memo_cache_sentinel")?(T=t.jsx("thead",{children:t.jsxs("tr",{children:[t.jsx("th",{children:"NREN"}),t.jsx("th",{children:"Year"}),t.jsx("th",{children:"Actions"})]})}),e[13]=T):T=e[13];let A;e[14]===Symbol.for("react.memo_cache_sentinel")?(A=t.jsx("option",{value:"",children:"Select NREN"}),e[14]=A):A=e[14];let y;e[15]!==a?(y=a.map(xe),e[15]=a,e[16]=y):y=e[16];let p;e[17]!==y?(p=t.jsx("td",{children:t.jsxs("select",{id:"excludenren",children:[A,y]})}),e[17]=y,e[18]=p):p=e[18];let O;e[19]===Symbol.for("react.memo_cache_sentinel")?(O=t.jsx("td",{children:t.jsx("input",{id:"excludeyear",type:"year",name:"year"})}),e[19]=O):O=e[19];let I;e[20]===Symbol.for("react.memo_cache_sentinel")?(I=t.jsx("td",{children:t.jsx("button",{className:"btn btn-primary",onClick:()=>{const l=document.getElementById("excludenren").value,r=parseInt(document.getElementById("excludeyear").value);if(!l||!r){alert("Please enter an NREN and year");return}G(l,r)},children:"Add Exclusion"})}),e[20]=I):I=e[20];let j;e[21]!==p?(j=t.jsxs("tr",{children:[p,O,I]}),e[21]=p,e[22]=j):j=e[22];let b;if(e[23]!==u){let l;e[25]===Symbol.for("react.memo_cache_sentinel")?(l=r=>t.jsxs("tr",{children:[t.jsx("td",{children:r.nren}),t.jsx("td",{children:r.year}),t.jsx("td",{children:t.jsx("button",{className:"btn btn-danger",onClick:()=>H(r.nren,r.year),children:"Delete"})})]},r.nren+r.year),e[25]=l):l=e[25],b=u.map(l),e[23]=u,e[24]=b}else b=e[24];let d;e[26]!==j||e[27]!==b?(d=t.jsxs(q,{striped:!0,bordered:!0,responsive:!0,children:[T,t.jsxs("tbody",{children:[j,b]})]}),e[26]=j,e[27]=b,e[28]=d):d=e[28];let _;e[29]===Symbol.for("react.memo_cache_sentinel")?(_=t.jsx("hr",{className:"fake-divider"}),e[29]=_):_=e[29];let v;return e[30]!==d?(v=t.jsxs(t.Fragment,{children:[R,x,C,k,d,_]}),e[30]=d,e[31]=v):v=e[31],v},ce=()=>{const e=Q.c(7),[i,u]=L.useState();let m,n;e[0]===Symbol.for("react.memo_cache_sentinel")?(m=()=>{le().then(c=>{u(c[0])})},n=[],e[0]=m,e[1]=n):(m=e[0],n=e[1]),L.useEffect(m,n);let a;e[2]===Symbol.for("react.memo_cache_sentinel")?(a=t.jsx("thead",{children:t.jsxs("tr",{children:[t.jsx("th",{children:"(N)REN"}),t.jsx("th",{children:"Link"}),t.jsx("th",{children:"Survey Status"})]})}),e[2]=a):a=e[2];let h;e[3]!==i?(h=i&&i.responses.map(c=>t.jsxs("tr",{children:[t.jsx("td",{children:c.nren.name}),t.jsx("td",{children:t.jsx(z,{to:`/survey/response/${i.year}/${c.nren.name}`,children:t.jsx("span",{children:"Navigate to survey"})})}),t.jsx("td",{children:c.status})]},c.nren.id)),e[3]=i,e[4]=h):h=e[4];let s;return e[5]!==h?(s=t.jsxs(q,{striped:!0,bordered:!0,responsive:!0,children:[a,t.jsx("tbody",{children:h})]}),e[5]=h,e[6]=s):s=e[6],s};function ge(){const e=Q.c(40),{trackPageView:i}=K(),{user:u}=L.useContext(X),m=Z(),n=!!u.id,a=n?!!u.nrens.length:!1,h=a?u.nrens[0]:"",s=n?u.permissions.admin:!1,c=n?u.role==="observer":!1,[f,P]=L.useState(null);let E,G;e[0]!==i?(E=()=>{(async()=>{const N=await se();P(N)})(),i({documentTitle:"GEANT Survey Landing Page"})},G=[i],e[0]=i,e[1]=E,e[2]=G):(E=e[1],G=e[2]),L.useEffect(E,G);let S;e[3]!==h||e[4]!==f||e[5]!==m?(S=()=>{try{return m(`/survey/response/${f}/${h}`),t.jsx("li",{children:"Redirecting to survey..."})}catch(D){return console.error("Error navigating:",D),null}},e[3]=h,e[4]=f,e[5]=m,e[6]=S):S=e[6];const H=S;let w;if(e[7]===Symbol.for("react.memo_cache_sentinel")){const D=function(Y,F,g){const B=W.decode_range(Y["!ref"]??"");let J=-1;for(let o=B.s.c;o<=B.e.c;o++){const U=W.encode_cell({r:B.s.r,c:o}),V=Y[U];if(V&&typeof V.v=="string"&&V.v===F){J=o;break}}if(J===-1){console.error(`Column '${F}' not found.`);return}for(let o=B.s.r+1;o<=B.e.r;++o){const U=W.encode_cell({r:o,c:J});Y[U]&&Y[U].t==="n"&&(Y[U].z=g)}},N=function(Y){const F=W.book_new();Y.forEach(o=>{const U=W.json_to_sheet(o.data);o.meta&&D(U,o.meta.columnName,o.meta.format),W.book_append_sheet(F,U,o.name)});const g=ne(F,{bookType:"xlsx",type:"binary"}),B=new ArrayBuffer(g.length),J=new Uint8Array(B);for(let o=0;o<g.length;o++)J[o]=g.charCodeAt(o)&255;return new Blob([B],{type:"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet;charset=UTF-8"})};w=function(){fetch("/api/data-download").then(ae).then(Y=>{const F=N(Y),g=document.createElement("a");g.href=URL.createObjectURL(F),g.download="data.xlsx",document.body.appendChild(g),g.click(),document.body.removeChild(g)}).catch(ie)},e[7]=w}else w=e[7];const M=w;let x;e[8]!==s?(x=s&&t.jsx(re,{}),e[8]=s,e[9]=x):x=e[9];let C;e[10]===Symbol.for("react.memo_cache_sentinel")?(C=t.jsx("h1",{className:"geant-header",children:"THE GÉANT COMPENDIUM OF NRENS SURVEY"}),e[10]=C):C=e[10];let k,R;e[11]===Symbol.for("react.memo_cache_sentinel")?(k={maxWidth:"75rem"},R={textAlign:"left"},e[11]=k,e[12]=R):(k=e[11],R=e[12]);let T;e[13]===Symbol.for("react.memo_cache_sentinel")?(T=t.jsx("br",{}),e[13]=T):T=e[13];let A;e[14]===Symbol.for("react.memo_cache_sentinel")?(A=t.jsx("a",{href:"/login",children:"here"}),e[14]=A):A=e[14];let y;e[15]===Symbol.for("react.memo_cache_sentinel")?(y=t.jsx("br",{}),e[15]=y):y=e[15];let p;e[16]===Symbol.for("react.memo_cache_sentinel")?(p=t.jsx("br",{}),e[16]=p):p=e[16];let O,I,j,b;e[17]===Symbol.for("react.memo_cache_sentinel")?(O=t.jsxs("p",{style:R,children:["Hello,",T,"Welcome to the GÉANT Compendium Survey. (N)REN Compendium administrators can login via Single Sign On (SSO) ",A,", which will complete their registration to fill in the latest Compendium survey. This will send a notification to the Compendium administration team and they will assign you to your (N)REN.",y,"Once this step has been completed, you will receive an email from the administration team. We aim to get back to you the same working day, but sometimes may take a little longer.",p,"If you are not sure whether you are a Compendium Administrator for your (N)REN, please contact your GÉANT Partner Relations relationship manager.",t.jsx("br",{}),"Thank you."]}),I=t.jsx("span",{children:"Current registration status:"}),j=t.jsx("br",{}),b=t.jsx("br",{}),e[17]=O,e[18]=I,e[19]=j,e[20]=b):(O=e[17],I=e[18],j=e[19],b=e[20]);let d;e[21]!==f||e[22]!==a||e[23]!==s||e[24]!==c||e[25]!==n||e[26]!==H?(d=s?t.jsxs("ul",{children:[t.jsx("li",{children:t.jsx("span",{children:"You are logged in as a Compendium Administrator"})}),t.jsx("li",{children:t.jsxs("span",{children:["Click ",t.jsx(z,{to:"/survey/admin/surveys",children:"here"})," to access the survey management page."]})}),t.jsx("li",{children:t.jsxs("span",{children:["Click ",t.jsx(z,{to:"/survey/admin/users",children:"here"})," to access the user management page."]})}),t.jsx("li",{children:t.jsxs("span",{children:["Click ",t.jsx("a",{href:"#",onClick:M,children:"here"})," to do the full data download."]})})]}):t.jsxs("ul",{children:[f&&!s&&!c&&a&&H(),n?t.jsx("li",{children:t.jsx("span",{children:"You are logged in"})}):t.jsx("li",{children:t.jsx("span",{children:"You are not logged in"})}),n&&!c&&!a&&t.jsx("li",{children:t.jsx("span",{children:"Your access to the survey has not yet been approved"})}),n&&!c&&!a&&t.jsx("li",{children:t.jsx("span",{children:"Once you have been approved, you will immediately be directed to the relevant survey upon visiting this page"})}),n&&c&&t.jsx("li",{children:t.jsx("span",{children:"You have read-only access to the following surveys:"})})]}),e[21]=f,e[22]=a,e[23]=s,e[24]=c,e[25]=n,e[26]=H,e[27]=d):d=e[27];let _;e[28]!==s?(_=s&&t.jsx(oe,{}),e[28]=s,e[29]=_):_=e[29];let v;e[30]!==c||e[31]!==n?(v=n&&c&&t.jsx(ce,{}),e[30]=c,e[31]=n,e[32]=v):v=e[32];let l;e[33]!==d||e[34]!==_||e[35]!==v?(l=t.jsx(ee,{className:"py-5 grey-container",children:t.jsx(te,{children:t.jsxs("div",{className:"center-text",children:[C,t.jsxs("div",{className:"wordwrap pt-4",style:k,children:[O,I,j,b,d,_,v]})]})})}),e[33]=d,e[34]=_,e[35]=v,e[36]=l):l=e[36];let r;return e[37]!==l||e[38]!==x?(r=t.jsxs(t.Fragment,{children:[x,l]}),e[37]=l,e[38]=x,e[39]=r):r=e[39],r}function ie(e){console.error("Error fetching data:",e),alert("An error occurred while creating the data download Excel file.")}function ae(e){if(!e.ok)throw new Error("Network response was not ok");return e.json()}function de(e){return e.json()}function me(e){console.error("Error fetching NREN exclusions:",e)}function he(e){return e.json()}function ue(e){return e.name}function fe(e){console.error("Error fetching NRENs:",e)}function xe(e){return t.jsx("option",{value:e,children:e},e)}export{ge as default}; diff --git a/compendium_v2/static/MonitoringTools-D_0sqSLy.js b/compendium_v2/static/MonitoringTools-DrashCOV.js similarity index 84% rename from compendium_v2/static/MonitoringTools-D_0sqSLy.js rename to compendium_v2/static/MonitoringTools-DrashCOV.js index 9270859d3a3d85e8f92118ad5a1d027355cf17dc..e2605fe9606b91e3ba00e7f449247601d80aa0f2 100644 --- a/compendium_v2/static/MonitoringTools-D_0sqSLy.js +++ b/compendium_v2/static/MonitoringTools-DrashCOV.js @@ -1,2 +1,2 @@ -import{c as v,r as S,F as T,j as h,t as Y,S as j}from"./index-CgRqQtHZ.js";import{u as F,g as D,n as E,D as L,F as C,f as P}from"./useData-CnR6ocTl.js";import{P as R}from"./PillTable-DC6FlsPO.js";import"./SideBar-Dgfa8b_s.js";import"./xlsx-BHRztzV8.js";import"./index-DgKDGaow.js";import"./hook-DDOSKqdF.js";import"./ColorPill-BRQzvq49.js";import"./Table-ggua9_yJ.js";function J(){const e=v.c(29),{filterSelection:t,setFilterSelection:c}=S.useContext(T),{data:w,years:_,nrens:N}=F("/api/monitoring-tools",c);let s,f;if(e[0]!==w||e[1]!==t.selectedNrens||e[2]!==t.selectedYears){let u;e[5]!==t.selectedNrens||e[6]!==t.selectedYears?(u=x=>t.selectedYears.includes(x.year)&&t.selectedNrens.includes(x.nren),e[5]=t.selectedNrens,e[6]=t.selectedYears,e[7]=u):u=e[7],s=w.filter(u);const k=D(s,"tool_descriptions");f=E(k,M),e[0]=w,e[1]=t.selectedNrens,e[2]=t.selectedYears,e[3]=s,e[4]=f}else s=e[3],f=e[4];const g=f;let o,p;e[8]===Symbol.for("react.memo_cache_sentinel")?(o=["Looking Glass","Network or Services Status Dashboard","Historical traffic volume information","Netflow analysis tool"],p=new Map([[o[0],"looking_glass"],[o[1],"status_dashboard"],[o[2],"historical_traffic_volumes"],[o[3],"netflow_analysis"]]),e[8]=o,e[9]=p):(o=e[8],p=e[9]);const y=p;let l;e[10]!==_?(l=[..._],e[10]=_,e[11]=l):l=e[11];let i;e[12]!==N?(i=N.values(),e[12]=N,e[13]=i):i=e[13];let r;e[14]!==i?(r=[...i],e[14]=i,e[15]=r):r=e[15];let a;e[16]!==l||e[17]!==r?(a={availableYears:l,availableNrens:r},e[16]=l,e[17]=r,e[18]=a):a=e[18];let d;e[19]!==t||e[20]!==c||e[21]!==a?(d=h.jsx(C,{filterOptions:a,filterSelection:t,setFilterSelection:c,coloredYears:!0}),e[19]=t,e[20]=c,e[21]=a,e[22]=d):d=e[22];const b=d;let n;e[23]!==g?(n=h.jsx(P,{children:h.jsx(R,{columns:o,columnLookup:y,dataLookup:g})}),e[23]=g,e[24]=n):n=e[24];let m;return e[25]!==b||e[26]!==s||e[27]!==n?(m=h.jsx(L,{title:Y["monitoring-tools"],description:`The table below shows which tools the NREN offers to client institutions to allow them to monitor the network and troubleshoot any issues which arise. +import{c as v,r as S,F as T,j as h,t as Y,S as j}from"./index-DBbSOdjk.js";import{u as F,g as D,n as E,D as L,F as C,f as P}from"./useData-CcKTpALT.js";import{P as R}from"./PillTable-CIcKqQJh.js";import"./SideBar-DfD7Pj8p.js";import"./xlsx-BHRztzV8.js";import"./index-DkYuYqrz.js";import"./hook-D9Tuu5oJ.js";import"./ColorPill-CuYEYQ56.js";import"./Table-DNomfHX4.js";function J(){const e=v.c(29),{filterSelection:t,setFilterSelection:c}=S.useContext(T),{data:w,years:_,nrens:N}=F("/api/monitoring-tools",c);let s,f;if(e[0]!==w||e[1]!==t.selectedNrens||e[2]!==t.selectedYears){let u;e[5]!==t.selectedNrens||e[6]!==t.selectedYears?(u=x=>t.selectedYears.includes(x.year)&&t.selectedNrens.includes(x.nren),e[5]=t.selectedNrens,e[6]=t.selectedYears,e[7]=u):u=e[7],s=w.filter(u);const k=D(s,"tool_descriptions");f=E(k,M),e[0]=w,e[1]=t.selectedNrens,e[2]=t.selectedYears,e[3]=s,e[4]=f}else s=e[3],f=e[4];const g=f;let o,p;e[8]===Symbol.for("react.memo_cache_sentinel")?(o=["Looking Glass","Network or Services Status Dashboard","Historical traffic volume information","Netflow analysis tool"],p=new Map([[o[0],"looking_glass"],[o[1],"status_dashboard"],[o[2],"historical_traffic_volumes"],[o[3],"netflow_analysis"]]),e[8]=o,e[9]=p):(o=e[8],p=e[9]);const y=p;let l;e[10]!==_?(l=[..._],e[10]=_,e[11]=l):l=e[11];let i;e[12]!==N?(i=N.values(),e[12]=N,e[13]=i):i=e[13];let r;e[14]!==i?(r=[...i],e[14]=i,e[15]=r):r=e[15];let a;e[16]!==l||e[17]!==r?(a={availableYears:l,availableNrens:r},e[16]=l,e[17]=r,e[18]=a):a=e[18];let d;e[19]!==t||e[20]!==c||e[21]!==a?(d=h.jsx(C,{filterOptions:a,filterSelection:t,setFilterSelection:c,coloredYears:!0}),e[19]=t,e[20]=c,e[21]=a,e[22]=d):d=e[22];const b=d;let n;e[23]!==g?(n=h.jsx(P,{children:h.jsx(R,{columns:o,columnLookup:y,dataLookup:g})}),e[23]=g,e[24]=n):n=e[24];let m;return e[25]!==b||e[26]!==s||e[27]!==n?(m=h.jsx(L,{title:Y["monitoring-tools"],description:`The table below shows which tools the NREN offers to client institutions to allow them to monitor the network and troubleshoot any issues which arise. Four common tools are named, however NRENs also have the opportunity to add their own tools to the table.`,category:j.Network,filter:b,data:s,filename:"monitoring_tools_nrens_per_year",children:n}),e[25]=b,e[26]=s,e[27]=n,e[28]=m):m=e[28],m}function M(e,t){if(e==="netflow_analysis"&&t.netflow_processing_description)return t.netflow_processing_description}export{J as default}; diff --git a/compendium_v2/static/NetworkFunctionVirtualisation-DWB0GuJA.js b/compendium_v2/static/NetworkFunctionVirtualisation-DgYBul36.js similarity index 92% rename from compendium_v2/static/NetworkFunctionVirtualisation-DWB0GuJA.js rename to compendium_v2/static/NetworkFunctionVirtualisation-DgYBul36.js index dee6e4fc0bf3c65e4964369eb7a4ffd4d7e0990e..19c1aeaf0d25f58063c6a572185b00b241f5909e 100644 --- a/compendium_v2/static/NetworkFunctionVirtualisation-DWB0GuJA.js +++ b/compendium_v2/static/NetworkFunctionVirtualisation-DgYBul36.js @@ -1 +1 @@ -import{c as W,r as X,F as Z,S as k,j as t,t as ee}from"./index-CgRqQtHZ.js";import{u as te,g as se,F as le,D as re,f as ne}from"./useData-CnR6ocTl.js";import{C as I}from"./ColorPill-BRQzvq49.js";import{T as ae}from"./Table-ggua9_yJ.js";import"./SideBar-Dgfa8b_s.js";import"./xlsx-BHRztzV8.js";import"./index-DgKDGaow.js";import"./hook-DDOSKqdF.js";function ue(){const e=W.c(67),{filterSelection:n,setFilterSelection:h}=X.useContext(Z),{data:J,years:c,nrens:R}=te("/api/nfv",h);let f,p,x,j,m,u,g,v,b,o,d,w,S,Y,N;if(e[0]!==J||e[1]!==n||e[2]!==R||e[3]!==h||e[4]!==c){let A;e[20]!==n.selectedNrens||e[21]!==n.selectedYears?(A=E=>n.selectedYears.includes(E.year)&&n.selectedNrens.includes(E.nren),e[20]=n.selectedNrens,e[21]=n.selectedYears,e[22]=A):A=e[22];const K=J.filter(A),Q=se(K,"nfv_specifics");let C;e[23]!==c?(C=[...c],e[23]=c,e[24]=C):C=e[24];let T;e[25]!==R?(T=R.values(),e[25]=R,e[26]=T):T=e[26];let $;e[27]!==T?($=[...T],e[27]=T,e[28]=$):$=e[28];let D;e[29]!==C||e[30]!==$?(D={availableYears:C,availableNrens:$},e[29]=C,e[30]=$,e[31]=D):D=e[31];let L;e[32]!==n||e[33]!==h||e[34]!==D?(L=t.jsx(le,{filterOptions:D,filterSelection:n,setFilterSelection:h,coloredYears:!0}),e[32]=n,e[33]=h,e[34]=D,e[35]=L):L=e[35];const U=L;let O;e[36]!==c?(O=E=>c.has(E),e[36]=c,e[37]=O):O=e[37];const M=[...n.selectedYears.filter(O)].sort();x=re,w=ee.nfv,S="The table below shows the kinds of Network Function Virtualisation (NFV) used by NRENs.",Y=k.Network,N=U,u=K,g="network_function_virtualisation_nrens_per_year",p=ne,f=ae,m="charging-struct-table",v=!0,b=!0;let _;e[38]===Symbol.for("react.memo_cache_sentinel")?(_=t.jsx("col",{span:1,style:{width:"20%"}}),e[38]=_):_=e[38];let q;e[39]===Symbol.for("react.memo_cache_sentinel")?(q=t.jsx("col",{span:2,style:{width:"16%"}}),e[39]=q):q=e[39];let z;e[40]===Symbol.for("react.memo_cache_sentinel")?(z=t.jsx("col",{span:2,style:{width:"16%"}}),e[40]=z):z=e[40];let B;e[41]===Symbol.for("react.memo_cache_sentinel")?(B=t.jsx("col",{span:2,style:{width:"16%"}}),e[41]=B):B=e[41];let G;e[42]===Symbol.for("react.memo_cache_sentinel")?(G=t.jsx("col",{span:2,style:{width:"16%"}}),e[42]=G):G=e[42],e[43]===Symbol.for("react.memo_cache_sentinel")?(o=t.jsxs("colgroup",{children:[_,q,z,B,G,t.jsx("col",{span:2,style:{width:"16%"}})]}),d=t.jsxs("thead",{children:[t.jsxs("tr",{children:[t.jsx("th",{}),t.jsx("th",{colSpan:2,children:"Routers/switches"}),t.jsx("th",{colSpan:2,children:"Firewalls"}),t.jsx("th",{colSpan:2,children:"Load balancers"}),t.jsx("th",{colSpan:2,children:"VPN Concentrator Services"}),t.jsx("th",{colSpan:2,children:"Other"})]}),t.jsxs("tr",{children:[t.jsx("th",{}),t.jsx("th",{children:"Yes"}),t.jsx("th",{children:"Planned"}),t.jsx("th",{children:"Yes"}),t.jsx("th",{children:"Planned"}),t.jsx("th",{children:"Yes"}),t.jsx("th",{children:"Planned"}),t.jsx("th",{children:"Yes"}),t.jsx("th",{children:"Planned"}),t.jsx("th",{children:"Yes"}),t.jsx("th",{children:"Planned"})]})]}),e[43]=o,e[44]=d):(o=e[43],d=e[44]),j=Array.from(Q.entries()).map(E=>{const[H,i]=E;return t.jsxs("tr",{children:[t.jsx("td",{children:H}),["routers","firewalls","load_balancers","vpn_concentrators"].map(l=>t.jsxs(t.Fragment,{children:[t.jsx("td",{children:i.has(l)&&M.map(s=>{const a=i.get(l),r=a.get(s);return t.jsx(I,{year:s,active:a.has(s)&&!!(r&&r.nfv=="yes"),tooltip:"",rounded:!0},s)})},`${l}-yes`),t.jsx("td",{children:i.has(l)&&M.map(s=>{const a=i.get(l),r=a.get(s);return t.jsx(I,{year:s,active:a.has(s)&&!!(r&&r.nfv=="planned"),tooltip:"",rounded:!0},s)})},`${l}-planned`)]})),t.jsx("td",{children:Array.from(i.keys()).filter(ce).map(l=>t.jsx("div",{children:i.has(l)&&M.map(s=>{const a=i.get(l),r=a.get(s);return t.jsx(I,{year:s,active:a.has(s)&&!!(r&&(r==null?void 0:r.nfv)=="yes"),tooltip:l,rounded:!0},s)})},`${l}-yes`))},`${H}-other-yes`),t.jsx("td",{children:Array.from(i.keys()).filter(ie).map(l=>t.jsx("div",{children:i.has(l)&&M.map(s=>{const a=i.get(l),r=a.get(s);return t.jsx(I,{year:s,active:a.has(s)&&!!(r&&(r==null?void 0:r.nfv)=="planned"),tooltip:l,rounded:!0},s)})},`${l}-planned`))},`${H}-other-planned`)]},H)}),e[0]=J,e[1]=n,e[2]=R,e[3]=h,e[4]=c,e[5]=f,e[6]=p,e[7]=x,e[8]=j,e[9]=m,e[10]=u,e[11]=g,e[12]=v,e[13]=b,e[14]=o,e[15]=d,e[16]=w,e[17]=S,e[18]=Y,e[19]=N}else f=e[5],p=e[6],x=e[7],j=e[8],m=e[9],u=e[10],g=e[11],v=e[12],b=e[13],o=e[14],d=e[15],w=e[16],S=e[17],Y=e[18],N=e[19];let F;e[45]!==j?(F=t.jsx("tbody",{children:j}),e[45]=j,e[46]=F):F=e[46];let y;e[47]!==f||e[48]!==m||e[49]!==F||e[50]!==v||e[51]!==b||e[52]!==o||e[53]!==d?(y=t.jsxs(f,{className:m,striped:v,bordered:b,children:[o,d,F]}),e[47]=f,e[48]=m,e[49]=F,e[50]=v,e[51]=b,e[52]=o,e[53]=d,e[54]=y):y=e[54];let P;e[55]!==p||e[56]!==y?(P=t.jsx(p,{children:y}),e[55]=p,e[56]=y,e[57]=P):P=e[57];let V;return e[58]!==x||e[59]!==u||e[60]!==g||e[61]!==P||e[62]!==w||e[63]!==S||e[64]!==Y||e[65]!==N?(V=t.jsx(x,{title:w,description:S,category:Y,filter:N,data:u,filename:g,children:P}),e[58]=x,e[59]=u,e[60]=g,e[61]=P,e[62]=w,e[63]=S,e[64]=Y,e[65]=N,e[66]=V):V=e[66],V}function ie(e){return!["routers","firewalls","load_balancers","vpn_concentrators"].includes(e)}function ce(e){return!["routers","firewalls","load_balancers","vpn_concentrators"].includes(e)}export{ue as default}; +import{c as W,r as X,F as Z,S as k,j as t,t as ee}from"./index-DBbSOdjk.js";import{u as te,g as se,F as le,D as re,f as ne}from"./useData-CcKTpALT.js";import{C as I}from"./ColorPill-CuYEYQ56.js";import{T as ae}from"./Table-DNomfHX4.js";import"./SideBar-DfD7Pj8p.js";import"./xlsx-BHRztzV8.js";import"./index-DkYuYqrz.js";import"./hook-D9Tuu5oJ.js";function ue(){const e=W.c(67),{filterSelection:n,setFilterSelection:h}=X.useContext(Z),{data:J,years:c,nrens:R}=te("/api/nfv",h);let f,p,x,j,m,u,g,v,b,o,d,w,S,Y,N;if(e[0]!==J||e[1]!==n||e[2]!==R||e[3]!==h||e[4]!==c){let A;e[20]!==n.selectedNrens||e[21]!==n.selectedYears?(A=E=>n.selectedYears.includes(E.year)&&n.selectedNrens.includes(E.nren),e[20]=n.selectedNrens,e[21]=n.selectedYears,e[22]=A):A=e[22];const K=J.filter(A),Q=se(K,"nfv_specifics");let C;e[23]!==c?(C=[...c],e[23]=c,e[24]=C):C=e[24];let T;e[25]!==R?(T=R.values(),e[25]=R,e[26]=T):T=e[26];let $;e[27]!==T?($=[...T],e[27]=T,e[28]=$):$=e[28];let D;e[29]!==C||e[30]!==$?(D={availableYears:C,availableNrens:$},e[29]=C,e[30]=$,e[31]=D):D=e[31];let L;e[32]!==n||e[33]!==h||e[34]!==D?(L=t.jsx(le,{filterOptions:D,filterSelection:n,setFilterSelection:h,coloredYears:!0}),e[32]=n,e[33]=h,e[34]=D,e[35]=L):L=e[35];const U=L;let O;e[36]!==c?(O=E=>c.has(E),e[36]=c,e[37]=O):O=e[37];const M=[...n.selectedYears.filter(O)].sort();x=re,w=ee.nfv,S="The table below shows the kinds of Network Function Virtualisation (NFV) used by NRENs.",Y=k.Network,N=U,u=K,g="network_function_virtualisation_nrens_per_year",p=ne,f=ae,m="charging-struct-table",v=!0,b=!0;let _;e[38]===Symbol.for("react.memo_cache_sentinel")?(_=t.jsx("col",{span:1,style:{width:"20%"}}),e[38]=_):_=e[38];let q;e[39]===Symbol.for("react.memo_cache_sentinel")?(q=t.jsx("col",{span:2,style:{width:"16%"}}),e[39]=q):q=e[39];let z;e[40]===Symbol.for("react.memo_cache_sentinel")?(z=t.jsx("col",{span:2,style:{width:"16%"}}),e[40]=z):z=e[40];let B;e[41]===Symbol.for("react.memo_cache_sentinel")?(B=t.jsx("col",{span:2,style:{width:"16%"}}),e[41]=B):B=e[41];let G;e[42]===Symbol.for("react.memo_cache_sentinel")?(G=t.jsx("col",{span:2,style:{width:"16%"}}),e[42]=G):G=e[42],e[43]===Symbol.for("react.memo_cache_sentinel")?(o=t.jsxs("colgroup",{children:[_,q,z,B,G,t.jsx("col",{span:2,style:{width:"16%"}})]}),d=t.jsxs("thead",{children:[t.jsxs("tr",{children:[t.jsx("th",{}),t.jsx("th",{colSpan:2,children:"Routers/switches"}),t.jsx("th",{colSpan:2,children:"Firewalls"}),t.jsx("th",{colSpan:2,children:"Load balancers"}),t.jsx("th",{colSpan:2,children:"VPN Concentrator Services"}),t.jsx("th",{colSpan:2,children:"Other"})]}),t.jsxs("tr",{children:[t.jsx("th",{}),t.jsx("th",{children:"Yes"}),t.jsx("th",{children:"Planned"}),t.jsx("th",{children:"Yes"}),t.jsx("th",{children:"Planned"}),t.jsx("th",{children:"Yes"}),t.jsx("th",{children:"Planned"}),t.jsx("th",{children:"Yes"}),t.jsx("th",{children:"Planned"}),t.jsx("th",{children:"Yes"}),t.jsx("th",{children:"Planned"})]})]}),e[43]=o,e[44]=d):(o=e[43],d=e[44]),j=Array.from(Q.entries()).map(E=>{const[H,i]=E;return t.jsxs("tr",{children:[t.jsx("td",{children:H}),["routers","firewalls","load_balancers","vpn_concentrators"].map(l=>t.jsxs(t.Fragment,{children:[t.jsx("td",{children:i.has(l)&&M.map(s=>{const a=i.get(l),r=a.get(s);return t.jsx(I,{year:s,active:a.has(s)&&!!(r&&r.nfv=="yes"),tooltip:"",rounded:!0},s)})},`${l}-yes`),t.jsx("td",{children:i.has(l)&&M.map(s=>{const a=i.get(l),r=a.get(s);return t.jsx(I,{year:s,active:a.has(s)&&!!(r&&r.nfv=="planned"),tooltip:"",rounded:!0},s)})},`${l}-planned`)]})),t.jsx("td",{children:Array.from(i.keys()).filter(ce).map(l=>t.jsx("div",{children:i.has(l)&&M.map(s=>{const a=i.get(l),r=a.get(s);return t.jsx(I,{year:s,active:a.has(s)&&!!(r&&(r==null?void 0:r.nfv)=="yes"),tooltip:l,rounded:!0},s)})},`${l}-yes`))},`${H}-other-yes`),t.jsx("td",{children:Array.from(i.keys()).filter(ie).map(l=>t.jsx("div",{children:i.has(l)&&M.map(s=>{const a=i.get(l),r=a.get(s);return t.jsx(I,{year:s,active:a.has(s)&&!!(r&&(r==null?void 0:r.nfv)=="planned"),tooltip:l,rounded:!0},s)})},`${l}-planned`))},`${H}-other-planned`)]},H)}),e[0]=J,e[1]=n,e[2]=R,e[3]=h,e[4]=c,e[5]=f,e[6]=p,e[7]=x,e[8]=j,e[9]=m,e[10]=u,e[11]=g,e[12]=v,e[13]=b,e[14]=o,e[15]=d,e[16]=w,e[17]=S,e[18]=Y,e[19]=N}else f=e[5],p=e[6],x=e[7],j=e[8],m=e[9],u=e[10],g=e[11],v=e[12],b=e[13],o=e[14],d=e[15],w=e[16],S=e[17],Y=e[18],N=e[19];let F;e[45]!==j?(F=t.jsx("tbody",{children:j}),e[45]=j,e[46]=F):F=e[46];let y;e[47]!==f||e[48]!==m||e[49]!==F||e[50]!==v||e[51]!==b||e[52]!==o||e[53]!==d?(y=t.jsxs(f,{className:m,striped:v,bordered:b,children:[o,d,F]}),e[47]=f,e[48]=m,e[49]=F,e[50]=v,e[51]=b,e[52]=o,e[53]=d,e[54]=y):y=e[54];let P;e[55]!==p||e[56]!==y?(P=t.jsx(p,{children:y}),e[55]=p,e[56]=y,e[57]=P):P=e[57];let V;return e[58]!==x||e[59]!==u||e[60]!==g||e[61]!==P||e[62]!==w||e[63]!==S||e[64]!==Y||e[65]!==N?(V=t.jsx(x,{title:w,description:S,category:Y,filter:N,data:u,filename:g,children:P}),e[58]=x,e[59]=u,e[60]=g,e[61]=P,e[62]=w,e[63]=S,e[64]=Y,e[65]=N,e[66]=V):V=e[66],V}function ie(e){return!["routers","firewalls","load_balancers","vpn_concentrators"].includes(e)}function ce(e){return!["routers","firewalls","load_balancers","vpn_concentrators"].includes(e)}export{ue as default}; diff --git a/compendium_v2/static/NetworkMapUrls-I03XzNji.js b/compendium_v2/static/NetworkMapUrls-xqgin1fL.js similarity index 77% rename from compendium_v2/static/NetworkMapUrls-I03XzNji.js rename to compendium_v2/static/NetworkMapUrls-xqgin1fL.js index f2d65e6ad208c9140494ce0b9bd751e5fae6193a..68df5cfb8489d03d66d7b668f4da8b7c1a9689f1 100644 --- a/compendium_v2/static/NetworkMapUrls-I03XzNji.js +++ b/compendium_v2/static/NetworkMapUrls-xqgin1fL.js @@ -1 +1 @@ -import{c as b,r as h,F as j,j as u,t as y,S as _}from"./index-CgRqQtHZ.js";import{u as g,q as v,k as S,i as F,D as C,F as E,f as L,s as R}from"./useData-CnR6ocTl.js";import{N as T}from"./NrenYearTable-Q6UAdf8a.js";import"./SideBar-Dgfa8b_s.js";import"./xlsx-BHRztzV8.js";import"./index-DgKDGaow.js";import"./hook-DDOSKqdF.js";import"./Table-ggua9_yJ.js";function z(){const e=b.c(21),{filterSelection:t,setFilterSelection:r}=h.useContext(j),{data:a,nrens:i}=g("/api/network-map-urls",r);let s,c;if(e[0]!==a||e[1]!==t.selectedNrens){const x=a?v(a):[];let d;e[4]!==t.selectedNrens?(d=w=>t.selectedNrens.includes(w.nren),e[4]=t.selectedNrens,e[5]=d):d=e[5],s=x.filter(d);const D=S(s);c=F(D,Y),e[0]=a,e[1]=t.selectedNrens,e[2]=s,e[3]=c}else s=e[2],c=e[3];const k=c;let p;e[6]===Symbol.for("react.memo_cache_sentinel")?(p=[],e[6]=p):p=e[6];let o;e[7]!==i?(o=i.values(),e[7]=i,e[8]=o):o=e[8];let l;e[9]!==o?(l={availableYears:p,availableNrens:[...o]},e[9]=o,e[10]=l):l=e[10];let f;e[11]!==t||e[12]!==r||e[13]!==l?(f=u.jsx(E,{filterOptions:l,filterSelection:t,setFilterSelection:r,coloredYears:!0}),e[11]=t,e[12]=r,e[13]=l,e[14]=f):f=e[14];const N=f;let n;e[15]!==k?(n=u.jsx(L,{children:u.jsx(T,{data:k,columnTitle:"Network Map",dottedBorder:!0,noDots:!0,keysAreURLs:!0,removeDecoration:!0})}),e[15]=k,e[16]=n):n=e[16];let m;return e[17]!==N||e[18]!==s||e[19]!==n?(m=u.jsx(C,{title:y["network-map"],description:"This table provides links to NREN network maps, showing layers 1, 2, and 3 of their networks.",category:_.Network,filter:N,data:s,filename:"network_map_nrens_per_year",children:n}),e[17]=N,e[18]=s,e[19]=n,e[20]=m):m=e[20],m}function Y(e,t){const r=R(t);if(r!=null)for(const[a,i]of Object.entries(r))e[a]=i}export{z as default}; +import{c as b,r as h,F as j,j as u,t as y,S as _}from"./index-DBbSOdjk.js";import{u as g,q as v,k as S,i as F,D as C,F as E,f as L,s as R}from"./useData-CcKTpALT.js";import{N as T}from"./NrenYearTable-C1JRhqy_.js";import"./SideBar-DfD7Pj8p.js";import"./xlsx-BHRztzV8.js";import"./index-DkYuYqrz.js";import"./hook-D9Tuu5oJ.js";import"./Table-DNomfHX4.js";function z(){const e=b.c(21),{filterSelection:t,setFilterSelection:r}=h.useContext(j),{data:a,nrens:i}=g("/api/network-map-urls",r);let s,c;if(e[0]!==a||e[1]!==t.selectedNrens){const x=a?v(a):[];let d;e[4]!==t.selectedNrens?(d=w=>t.selectedNrens.includes(w.nren),e[4]=t.selectedNrens,e[5]=d):d=e[5],s=x.filter(d);const D=S(s);c=F(D,Y),e[0]=a,e[1]=t.selectedNrens,e[2]=s,e[3]=c}else s=e[2],c=e[3];const k=c;let p;e[6]===Symbol.for("react.memo_cache_sentinel")?(p=[],e[6]=p):p=e[6];let o;e[7]!==i?(o=i.values(),e[7]=i,e[8]=o):o=e[8];let l;e[9]!==o?(l={availableYears:p,availableNrens:[...o]},e[9]=o,e[10]=l):l=e[10];let f;e[11]!==t||e[12]!==r||e[13]!==l?(f=u.jsx(E,{filterOptions:l,filterSelection:t,setFilterSelection:r,coloredYears:!0}),e[11]=t,e[12]=r,e[13]=l,e[14]=f):f=e[14];const N=f;let n;e[15]!==k?(n=u.jsx(L,{children:u.jsx(T,{data:k,columnTitle:"Network Map",dottedBorder:!0,noDots:!0,keysAreURLs:!0,removeDecoration:!0})}),e[15]=k,e[16]=n):n=e[16];let m;return e[17]!==N||e[18]!==s||e[19]!==n?(m=u.jsx(C,{title:y["network-map"],description:"This table provides links to NREN network maps, showing layers 1, 2, and 3 of their networks.",category:_.Network,filter:N,data:s,filename:"network_map_nrens_per_year",children:n}),e[17]=N,e[18]=s,e[19]=n,e[20]=m):m=e[20],m}function Y(e,t){const r=R(t);if(r!=null)for(const[a,i]of Object.entries(r))e[a]=i}export{z as default}; diff --git a/compendium_v2/static/NonRAndEPeer-BizBxpTV.js b/compendium_v2/static/NonRAndEPeer-B8hczKc3.js similarity index 81% rename from compendium_v2/static/NonRAndEPeer-BizBxpTV.js rename to compendium_v2/static/NonRAndEPeer-B8hczKc3.js index d9b6adc60e203cfc033dd7d7f944cb17db30ba36..15bc5de0d5b46d6b72bf968ce65818ea41869dd0 100644 --- a/compendium_v2/static/NonRAndEPeer-BizBxpTV.js +++ b/compendium_v2/static/NonRAndEPeer-B8hczKc3.js @@ -1,2 +1,2 @@ -import{c as D,r as F,F as Y,j as u,S as v,t as k}from"./index-CgRqQtHZ.js";import{B as A}from"./index-BMzrLxRb.js";import{C as L,a as O,L as T,B as $,p as G,c as I,d as M,u as q,o as z,D as H,F as J,f as K}from"./useData-CnR6ocTl.js";import{p as Q}from"./chartjs-plugin-datalabels.esm-B3Gf8X6A.js";import{a as U}from"./charthelpers-D_bh9y-E.js";import"./SideBar-Dgfa8b_s.js";import"./xlsx-BHRztzV8.js";import"./index-DgKDGaow.js";import"./hook-DDOSKqdF.js";L.register(O,T,$,G,I,M);function ne(){const e=D.c(38),{filterSelection:t,setFilterSelection:r}=F.useContext(Y),{data:b,years:d,nrens:h}=q("/api/non-re-peers",r);let a,l,s,g;if(e[0]!==b||e[1]!==t||e[2]!==h||e[3]!==r||e[4]!==d){let S;e[9]!==t.selectedNrens||e[10]!==t.selectedYears?(S=E=>t.selectedYears.includes(E.year)&&t.selectedNrens.includes(E.nren),e[9]=t.selectedNrens,e[10]=t.selectedYears,e[11]=S):S=e[11],s=b.filter(S),a=z(s,"nr_of_non_r_and_e_peers","Number of Peers");let c;e[12]!==d?(c=[...d],e[12]=d,e[13]=c):c=e[13];let m;e[14]!==h?(m=h.values(),e[14]=h,e[15]=m):m=e[15];let p;e[16]!==m?(p=[...m],e[16]=m,e[17]=p):p=e[17];let f;e[18]!==c||e[19]!==p?(f={availableYears:c,availableNrens:p},e[18]=c,e[19]=p,e[20]=f):f=e[20];let C;e[21]!==t||e[22]!==r||e[23]!==f?(C=u.jsx(J,{filterOptions:f,filterSelection:t,setFilterSelection:r}),e[21]=t,e[22]=r,e[23]=f,e[24]=C):C=e[24],l=C,g=Array.from(new Set(s.map(V))),e[0]=b,e[1]=t,e[2]=h,e[3]=r,e[4]=d,e[5]=a,e[6]=l,e[7]=s,e[8]=g}else a=e[5],l=e[6],s=e[7],g=e[8];const j=g.length,w=Math.max(j*t.selectedYears.length*1.5+5,50),B=k["non-rne-peers"],P=`The graph below shows the number of non-Research and Education networks +import{c as D,r as F,F as Y,j as u,S as v,t as k}from"./index-DBbSOdjk.js";import{B as A}from"./index-DyJczNpq.js";import{C as L,a as O,L as T,B as $,p as G,c as I,d as M,u as q,o as z,D as H,F as J,f as K}from"./useData-CcKTpALT.js";import{p as Q}from"./chartjs-plugin-datalabels.esm-C6J4S2ma.js";import{a as U}from"./charthelpers-CHBq5wBZ.js";import"./SideBar-DfD7Pj8p.js";import"./xlsx-BHRztzV8.js";import"./index-DkYuYqrz.js";import"./hook-D9Tuu5oJ.js";L.register(O,T,$,G,I,M);function ne(){const e=D.c(38),{filterSelection:t,setFilterSelection:r}=F.useContext(Y),{data:b,years:d,nrens:h}=q("/api/non-re-peers",r);let a,l,s,g;if(e[0]!==b||e[1]!==t||e[2]!==h||e[3]!==r||e[4]!==d){let S;e[9]!==t.selectedNrens||e[10]!==t.selectedYears?(S=E=>t.selectedYears.includes(E.year)&&t.selectedNrens.includes(E.nren),e[9]=t.selectedNrens,e[10]=t.selectedYears,e[11]=S):S=e[11],s=b.filter(S),a=z(s,"nr_of_non_r_and_e_peers","Number of Peers");let c;e[12]!==d?(c=[...d],e[12]=d,e[13]=c):c=e[13];let m;e[14]!==h?(m=h.values(),e[14]=h,e[15]=m):m=e[15];let p;e[16]!==m?(p=[...m],e[16]=m,e[17]=p):p=e[17];let f;e[18]!==c||e[19]!==p?(f={availableYears:c,availableNrens:p},e[18]=c,e[19]=p,e[20]=f):f=e[20];let C;e[21]!==t||e[22]!==r||e[23]!==f?(C=u.jsx(J,{filterOptions:f,filterSelection:t,setFilterSelection:r}),e[21]=t,e[22]=r,e[23]=f,e[24]=C):C=e[24],l=C,g=Array.from(new Set(s.map(V))),e[0]=b,e[1]=t,e[2]=h,e[3]=r,e[4]=d,e[5]=a,e[6]=l,e[7]=s,e[8]=g}else a=e[5],l=e[6],s=e[7],g=e[8];const j=g.length,w=Math.max(j*t.selectedYears.length*1.5+5,50),B=k["non-rne-peers"],P=`The graph below shows the number of non-Research and Education networks NRENs peer with. This includes all direct IP-peerings to commercial networks, eg. Google`;let _;e[25]===Symbol.for("react.memo_cache_sentinel")?(_=U({title:"Number of Non-R&E Peers"}),e[25]=_):_=e[25];const R=_,y=`${w}rem`;let n;e[26]!==y?(n={height:y},e[26]=y,e[27]=n):n=e[27];let N;e[28]===Symbol.for("react.memo_cache_sentinel")?(N=[Q],e[28]=N):N=e[28];let i;e[29]!==a?(i=u.jsx(A,{data:a,options:R,plugins:N}),e[29]=a,e[30]=i):i=e[30];let o;e[31]!==n||e[32]!==i?(o=u.jsx(K,{children:u.jsx("div",{className:"chart-container",style:n,children:i})}),e[31]=n,e[32]=i,e[33]=o):o=e[33];let x;return e[34]!==l||e[35]!==s||e[36]!==o?(x=u.jsx(H,{title:B,description:P,category:v.Network,filter:l,data:s,filename:"non_r_and_e_peering",children:o}),e[34]=l,e[35]=s,e[36]=o,e[37]=x):x=e[37],x}function V(e){return e.nren}export{ne as default}; diff --git a/compendium_v2/static/NrenYearTable-Q6UAdf8a.js b/compendium_v2/static/NrenYearTable-C1JRhqy_.js similarity index 93% rename from compendium_v2/static/NrenYearTable-Q6UAdf8a.js rename to compendium_v2/static/NrenYearTable-C1JRhqy_.js index af59bdddef243f99058d974fc9872032180d6803..0d63ec0eac90e0d5a6a6466fbf5003d4d5c47854 100644 --- a/compendium_v2/static/NrenYearTable-Q6UAdf8a.js +++ b/compendium_v2/static/NrenYearTable-C1JRhqy_.js @@ -1 +1 @@ -import{c as j,j as r}from"./index-CgRqQtHZ.js";import{w as p}from"./useData-CnR6ocTl.js";import{T as u}from"./Table-ggua9_yJ.js";function N(f,e,s,l,t){return f?l.startsWith("http")?r.jsx("li",{children:r.jsx("a",{href:p(l),target:"_blank",rel:"noopener noreferrer",style:e,children:t})},s):r.jsx("li",{children:r.jsx("span",{children:t})},s):r.jsx("li",{children:r.jsx("span",{children:t})},s)}function b(f,{dottedBorder:e=!1,noDots:s=!1,keysAreURLs:l=!1,removeDecoration:t=!1}){return Array.from(f.entries()).map(([i,x])=>Array.from(x.entries()).map(([o,m],d)=>{const n={};return t&&(n.textDecoration="none"),r.jsxs("tr",{className:e?"dotted-border":"",children:[r.jsx("td",{className:"pt-3 nren-column text-nowrap",children:d===0&&i}),r.jsx("td",{className:"pt-3 year-column",children:o}),r.jsx("td",{className:"pt-3 blue-column",children:r.jsx("ul",{className:s?"no-list-style-type":"",children:Array.from(Object.entries(m)).map(([a,c],h)=>N(l,n,h,c,a))})})]},i+o)}))}function _(f){const e=j.c(15),{data:s,columnTitle:l,dottedBorder:t,noDots:i,keysAreURLs:x,removeDecoration:o}=f;let m;e[0]===Symbol.for("react.memo_cache_sentinel")?(m=r.jsx("th",{className:"nren-column",children:r.jsx("span",{children:"NREN"})}),e[0]=m):m=e[0];let d;e[1]===Symbol.for("react.memo_cache_sentinel")?(d=r.jsx("th",{className:"year-column",children:r.jsx("span",{children:"Year"})}),e[1]=d):d=e[1];let n;e[2]!==l?(n=r.jsx("thead",{children:r.jsxs("tr",{children:[m,d,r.jsx("th",{className:"blue-column",children:r.jsx("span",{children:l})})]})}),e[2]=l,e[3]=n):n=e[3];let a;e[4]!==s||e[5]!==t||e[6]!==x||e[7]!==i||e[8]!==o?(a=b(s,{dottedBorder:t,noDots:i,keysAreURLs:x,removeDecoration:o}),e[4]=s,e[5]=t,e[6]=x,e[7]=i,e[8]=o,e[9]=a):a=e[9];let c;e[10]!==a?(c=r.jsx("tbody",{children:a}),e[10]=a,e[11]=c):c=e[11];let h;return e[12]!==n||e[13]!==c?(h=r.jsxs(u,{borderless:!0,className:"compendium-table",children:[n,c]}),e[12]=n,e[13]=c,e[14]=h):h=e[14],h}export{_ as N}; +import{c as j,j as r}from"./index-DBbSOdjk.js";import{w as p}from"./useData-CcKTpALT.js";import{T as u}from"./Table-DNomfHX4.js";function N(f,e,s,l,t){return f?l.startsWith("http")?r.jsx("li",{children:r.jsx("a",{href:p(l),target:"_blank",rel:"noopener noreferrer",style:e,children:t})},s):r.jsx("li",{children:r.jsx("span",{children:t})},s):r.jsx("li",{children:r.jsx("span",{children:t})},s)}function b(f,{dottedBorder:e=!1,noDots:s=!1,keysAreURLs:l=!1,removeDecoration:t=!1}){return Array.from(f.entries()).map(([i,x])=>Array.from(x.entries()).map(([o,m],d)=>{const n={};return t&&(n.textDecoration="none"),r.jsxs("tr",{className:e?"dotted-border":"",children:[r.jsx("td",{className:"pt-3 nren-column text-nowrap",children:d===0&&i}),r.jsx("td",{className:"pt-3 year-column",children:o}),r.jsx("td",{className:"pt-3 blue-column",children:r.jsx("ul",{className:s?"no-list-style-type":"",children:Array.from(Object.entries(m)).map(([a,c],h)=>N(l,n,h,c,a))})})]},i+o)}))}function _(f){const e=j.c(15),{data:s,columnTitle:l,dottedBorder:t,noDots:i,keysAreURLs:x,removeDecoration:o}=f;let m;e[0]===Symbol.for("react.memo_cache_sentinel")?(m=r.jsx("th",{className:"nren-column",children:r.jsx("span",{children:"NREN"})}),e[0]=m):m=e[0];let d;e[1]===Symbol.for("react.memo_cache_sentinel")?(d=r.jsx("th",{className:"year-column",children:r.jsx("span",{children:"Year"})}),e[1]=d):d=e[1];let n;e[2]!==l?(n=r.jsx("thead",{children:r.jsxs("tr",{children:[m,d,r.jsx("th",{className:"blue-column",children:r.jsx("span",{children:l})})]})}),e[2]=l,e[3]=n):n=e[3];let a;e[4]!==s||e[5]!==t||e[6]!==x||e[7]!==i||e[8]!==o?(a=b(s,{dottedBorder:t,noDots:i,keysAreURLs:x,removeDecoration:o}),e[4]=s,e[5]=t,e[6]=x,e[7]=i,e[8]=o,e[9]=a):a=e[9];let c;e[10]!==a?(c=r.jsx("tbody",{children:a}),e[10]=a,e[11]=c):c=e[11];let h;return e[12]!==n||e[13]!==c?(h=r.jsxs(u,{borderless:!0,className:"compendium-table",children:[n,c]}),e[12]=n,e[13]=c,e[14]=h):h=e[14],h}export{_ as N}; diff --git a/compendium_v2/static/OPsAutomation-BUp22-K-.js b/compendium_v2/static/OPsAutomation-CaApYas2.js similarity index 82% rename from compendium_v2/static/OPsAutomation-BUp22-K-.js rename to compendium_v2/static/OPsAutomation-CaApYas2.js index 50eb95497c785edc1c4cfa48dc3ab09c393b3769..efcdc0d56dcfc11e588dc8f12c19213f3a7bad7d 100644 --- a/compendium_v2/static/OPsAutomation-BUp22-K-.js +++ b/compendium_v2/static/OPsAutomation-CaApYas2.js @@ -1,3 +1,3 @@ -import{c as y,r as P,F as S,j as h,t as g,S as k}from"./index-CgRqQtHZ.js";import{u as v,g as F,n as C,D,F as E,f as L}from"./useData-CnR6ocTl.js";import{P as R}from"./PillTable-DC6FlsPO.js";import"./SideBar-Dgfa8b_s.js";import"./xlsx-BHRztzV8.js";import"./index-DgKDGaow.js";import"./hook-DDOSKqdF.js";import"./ColorPill-BRQzvq49.js";import"./Table-ggua9_yJ.js";function J(){const e=y.c(29),{filterSelection:t,setFilterSelection:c}=P.useContext(S),{data:N,years:x,nrens:_}=v("/api/ops-automation",c);let s,p;if(e[0]!==N||e[1]!==t.selectedNrens||e[2]!==t.selectedYears){let d;e[5]!==t.selectedNrens||e[6]!==t.selectedYears?(d=b=>t.selectedYears.includes(b.year)&&t.selectedNrens.includes(b.nren),e[5]=t.selectedNrens,e[6]=t.selectedYears,e[7]=d):d=e[7],s=N.filter(d);const j=F(s,"ops_automation");p=C(j,M),e[0]=N,e[1]=t.selectedNrens,e[2]=t.selectedYears,e[3]=s,e[4]=p}else s=e[3],p=e[4];const w=p;let o,m;e[8]===Symbol.for("react.memo_cache_sentinel")?(o=["Yes","Planned","No"],m=new Map([[o[0],"yes"],[o[1],"planned"],[o[2],"no"]]),e[8]=o,e[9]=m):(o=e[8],m=e[9]);const T=m;let a;e[10]!==x?(a=[...x],e[10]=x,e[11]=a):a=e[11];let l;e[12]!==_?(l=_.values(),e[12]=_,e[13]=l):l=e[13];let i;e[14]!==l?(i=[...l],e[14]=l,e[15]=i):i=e[15];let r;e[16]!==a||e[17]!==i?(r={availableYears:a,availableNrens:i},e[16]=a,e[17]=i,e[18]=r):r=e[18];let u;e[19]!==t||e[20]!==c||e[21]!==r?(u=h.jsx(E,{filterOptions:r,filterSelection:t,setFilterSelection:c,coloredYears:!0}),e[19]=t,e[20]=c,e[21]=r,e[22]=u):u=e[22];const Y=u;let n;e[23]!==w?(n=h.jsx(L,{children:h.jsx(R,{columns:o,columnLookup:T,dataLookup:w})}),e[23]=w,e[24]=n):n=e[24];let f;return e[25]!==Y||e[26]!==s||e[27]!==n?(f=h.jsx(D,{title:g["ops-automation"],description:`The table below shows which NRENs have, or plan to, automate their +import{c as y,r as P,F as S,j as h,t as g,S as k}from"./index-DBbSOdjk.js";import{u as v,g as F,n as C,D,F as E,f as L}from"./useData-CcKTpALT.js";import{P as R}from"./PillTable-CIcKqQJh.js";import"./SideBar-DfD7Pj8p.js";import"./xlsx-BHRztzV8.js";import"./index-DkYuYqrz.js";import"./hook-D9Tuu5oJ.js";import"./ColorPill-CuYEYQ56.js";import"./Table-DNomfHX4.js";function J(){const e=y.c(29),{filterSelection:t,setFilterSelection:c}=P.useContext(S),{data:N,years:x,nrens:_}=v("/api/ops-automation",c);let s,p;if(e[0]!==N||e[1]!==t.selectedNrens||e[2]!==t.selectedYears){let d;e[5]!==t.selectedNrens||e[6]!==t.selectedYears?(d=b=>t.selectedYears.includes(b.year)&&t.selectedNrens.includes(b.nren),e[5]=t.selectedNrens,e[6]=t.selectedYears,e[7]=d):d=e[7],s=N.filter(d);const j=F(s,"ops_automation");p=C(j,M),e[0]=N,e[1]=t.selectedNrens,e[2]=t.selectedYears,e[3]=s,e[4]=p}else s=e[3],p=e[4];const w=p;let o,m;e[8]===Symbol.for("react.memo_cache_sentinel")?(o=["Yes","Planned","No"],m=new Map([[o[0],"yes"],[o[1],"planned"],[o[2],"no"]]),e[8]=o,e[9]=m):(o=e[8],m=e[9]);const T=m;let a;e[10]!==x?(a=[...x],e[10]=x,e[11]=a):a=e[11];let l;e[12]!==_?(l=_.values(),e[12]=_,e[13]=l):l=e[13];let i;e[14]!==l?(i=[...l],e[14]=l,e[15]=i):i=e[15];let r;e[16]!==a||e[17]!==i?(r={availableYears:a,availableNrens:i},e[16]=a,e[17]=i,e[18]=r):r=e[18];let u;e[19]!==t||e[20]!==c||e[21]!==r?(u=h.jsx(E,{filterOptions:r,filterSelection:t,setFilterSelection:c,coloredYears:!0}),e[19]=t,e[20]=c,e[21]=r,e[22]=u):u=e[22];const Y=u;let n;e[23]!==w?(n=h.jsx(L,{children:h.jsx(R,{columns:o,columnLookup:T,dataLookup:w})}),e[23]=w,e[24]=n):n=e[24];let f;return e[25]!==Y||e[26]!==s||e[27]!==n?(f=h.jsx(D,{title:g["ops-automation"],description:`The table below shows which NRENs have, or plan to, automate their operational processes, with specification of which processes, and the names of software and tools used for this given when appropriate.`,category:k.Network,filter:Y,data:s,filename:"ops_automation_nrens_per_year",children:n}),e[25]=Y,e[26]=s,e[27]=n,e[28]=f):f=e[28],f}function M(e,t){if(t.ops_automation_specifics)return t.ops_automation_specifics}export{J as default}; diff --git a/compendium_v2/static/ParentOrganisation-CjNuWZmv.js b/compendium_v2/static/ParentOrganisation-C_34aAmv.js similarity index 83% rename from compendium_v2/static/ParentOrganisation-CjNuWZmv.js rename to compendium_v2/static/ParentOrganisation-C_34aAmv.js index ad2995316087d5eb92e154157403228cd8fa1d93..38e2e1050cacefafb706de227ffb454f822372a6 100644 --- a/compendium_v2/static/ParentOrganisation-CjNuWZmv.js +++ b/compendium_v2/static/ParentOrganisation-C_34aAmv.js @@ -1 +1 @@ -import{c as b,r as y,F as j,j as p,S as v}from"./index-CgRqQtHZ.js";import{u as E,k as O,i as S,D as F,F as P,f as R}from"./useData-CnR6ocTl.js";import{N as w}from"./NrenYearTable-Q6UAdf8a.js";import"./SideBar-Dgfa8b_s.js";import"./xlsx-BHRztzV8.js";import"./index-DgKDGaow.js";import"./hook-DDOSKqdF.js";import"./Table-ggua9_yJ.js";function q(){const e=b.c(27),{filterSelection:t,setFilterSelection:a}=y.useContext(j),{data:u,years:g,nrens:N}=E("/api/parent-organizations",a);let s,c;if(e[0]!==t.selectedNrens||e[1]!==t.selectedYears||e[2]!==u){let m;e[5]!==t.selectedNrens||e[6]!==t.selectedYears?(m=h=>t.selectedYears.includes(h.year)&&t.selectedNrens.includes(h.nren),e[5]=t.selectedNrens,e[6]=t.selectedYears,e[7]=m):m=e[7],s=u.filter(m);const Y=O(s);c=S(Y,C),e[0]=t.selectedNrens,e[1]=t.selectedYears,e[2]=u,e[3]=s,e[4]=c}else s=e[3],c=e[4];const x=c;let r;e[8]!==g?(r=[...g],e[8]=g,e[9]=r):r=e[9];let i;e[10]!==N?(i=N.values(),e[10]=N,e[11]=i):i=e[11];let n;e[12]!==i?(n=[...i],e[12]=i,e[13]=n):n=e[13];let l;e[14]!==r||e[15]!==n?(l={availableYears:r,availableNrens:n},e[14]=r,e[15]=n,e[16]=l):l=e[16];let d;e[17]!==t||e[18]!==a||e[19]!==l?(d=p.jsx(P,{filterOptions:l,filterSelection:t,setFilterSelection:a,max1year:!0}),e[17]=t,e[18]=a,e[19]=l,e[20]=d):d=e[20];const D=d;let o;e[21]!==x?(o=p.jsx(R,{children:p.jsx(w,{data:x,columnTitle:"Parent Organisation",dottedBorder:!0,noDots:!0})}),e[21]=x,e[22]=o):o=e[22];let f;return e[23]!==D||e[24]!==s||e[25]!==o?(f=p.jsx(F,{title:"NREN Parent Organisations",description:"Some NRENs are part of larger organisations, including Ministries or universities. These are shown in the table below. Only NRENs who are managed in this way are available to select.",category:v.Organisation,filter:D,data:s,filename:"nren_parent_organisations",children:o}),e[23]=D,e[24]=s,e[25]=o,e[26]=f):f=e[26],f}function C(e,t){const a=t.name;e[a]=a}export{q as default}; +import{c as b,r as y,F as j,j as p,S as v}from"./index-DBbSOdjk.js";import{u as E,k as O,i as S,D as F,F as P,f as R}from"./useData-CcKTpALT.js";import{N as w}from"./NrenYearTable-C1JRhqy_.js";import"./SideBar-DfD7Pj8p.js";import"./xlsx-BHRztzV8.js";import"./index-DkYuYqrz.js";import"./hook-D9Tuu5oJ.js";import"./Table-DNomfHX4.js";function q(){const e=b.c(27),{filterSelection:t,setFilterSelection:a}=y.useContext(j),{data:u,years:g,nrens:N}=E("/api/parent-organizations",a);let s,c;if(e[0]!==t.selectedNrens||e[1]!==t.selectedYears||e[2]!==u){let m;e[5]!==t.selectedNrens||e[6]!==t.selectedYears?(m=h=>t.selectedYears.includes(h.year)&&t.selectedNrens.includes(h.nren),e[5]=t.selectedNrens,e[6]=t.selectedYears,e[7]=m):m=e[7],s=u.filter(m);const Y=O(s);c=S(Y,C),e[0]=t.selectedNrens,e[1]=t.selectedYears,e[2]=u,e[3]=s,e[4]=c}else s=e[3],c=e[4];const x=c;let r;e[8]!==g?(r=[...g],e[8]=g,e[9]=r):r=e[9];let i;e[10]!==N?(i=N.values(),e[10]=N,e[11]=i):i=e[11];let n;e[12]!==i?(n=[...i],e[12]=i,e[13]=n):n=e[13];let l;e[14]!==r||e[15]!==n?(l={availableYears:r,availableNrens:n},e[14]=r,e[15]=n,e[16]=l):l=e[16];let d;e[17]!==t||e[18]!==a||e[19]!==l?(d=p.jsx(P,{filterOptions:l,filterSelection:t,setFilterSelection:a,max1year:!0}),e[17]=t,e[18]=a,e[19]=l,e[20]=d):d=e[20];const D=d;let o;e[21]!==x?(o=p.jsx(R,{children:p.jsx(w,{data:x,columnTitle:"Parent Organisation",dottedBorder:!0,noDots:!0})}),e[21]=x,e[22]=o):o=e[22];let f;return e[23]!==D||e[24]!==s||e[25]!==o?(f=p.jsx(F,{title:"NREN Parent Organisations",description:"Some NRENs are part of larger organisations, including Ministries or universities. These are shown in the table below. Only NRENs who are managed in this way are available to select.",category:v.Organisation,filter:D,data:s,filename:"nren_parent_organisations",children:o}),e[23]=D,e[24]=s,e[25]=o,e[26]=f):f=e[26],f}function C(e,t){const a=t.name;e[a]=a}export{q as default}; diff --git a/compendium_v2/static/PassiveMonitoring-BIkXfdsN.js b/compendium_v2/static/PassiveMonitoring-HFCN_S9d.js similarity index 81% rename from compendium_v2/static/PassiveMonitoring-BIkXfdsN.js rename to compendium_v2/static/PassiveMonitoring-HFCN_S9d.js index 49dc84a51931216d89f035863319db2643122667..3adc74a8bec6716307ae4dd4a9be9539d08ebfbd 100644 --- a/compendium_v2/static/PassiveMonitoring-BIkXfdsN.js +++ b/compendium_v2/static/PassiveMonitoring-HFCN_S9d.js @@ -1 +1 @@ -import{c as Y,r as j,F as _,j as N,t as y,S as F}from"./index-CgRqQtHZ.js";import{u as T,g as k,D as w,F as A,f as C}from"./useData-CnR6ocTl.js";import{P as D}from"./PillTable-DC6FlsPO.js";import"./SideBar-Dgfa8b_s.js";import"./xlsx-BHRztzV8.js";import"./index-DgKDGaow.js";import"./hook-DDOSKqdF.js";import"./ColorPill-BRQzvq49.js";import"./Table-ggua9_yJ.js";function z(){const e=Y.c(29),{filterSelection:t,setFilterSelection:c}=j.useContext(_),{data:h,years:x,nrens:g}=T("/api/passive-monitoring",c);let o,p;if(e[0]!==h||e[1]!==t.selectedNrens||e[2]!==t.selectedYears){let u;e[5]!==t.selectedNrens||e[6]!==t.selectedYears?(u=S=>t.selectedYears.includes(S.year)&&t.selectedNrens.includes(S.nren),e[5]=t.selectedNrens,e[6]=t.selectedYears,e[7]=u):u=e[7],o=h.filter(u),p=k(o,"method",!0),e[0]=h,e[1]=t.selectedNrens,e[2]=t.selectedYears,e[3]=o,e[4]=p}else o=e[3],p=e[4];const v=p;let l;e[8]!==x?(l=[...x],e[8]=x,e[9]=l):l=e[9];let r;e[10]!==g?(r=g.values(),e[10]=g,e[11]=r):r=e[11];let i;e[12]!==r?(i=[...r],e[12]=r,e[13]=i):i=e[13];let a;e[14]!==l||e[15]!==i?(a={availableYears:l,availableNrens:i},e[14]=l,e[15]=i,e[16]=a):a=e[16];let m;e[17]!==t||e[18]!==c||e[19]!==a?(m=N.jsx(A,{filterOptions:a,filterSelection:t,setFilterSelection:c,coloredYears:!0}),e[17]=t,e[18]=c,e[19]=a,e[20]=m):m=e[20];const P=m;let s,f;e[21]===Symbol.for("react.memo_cache_sentinel")?(s=["No monitoring occurs","SPAN ports","Passive optical TAPS","Both SPAN ports and passive optical TAPS"],f=new Map([[s[0],"null"],[s[1],"span_ports"],[s[2],"taps"],[s[3],"both"]]),e[21]=s,e[22]=f):(s=e[21],f=e[22]);const b=f;let n;e[23]!==v?(n=N.jsx(C,{children:N.jsx(D,{columns:s,dataLookup:v,columnLookup:b})}),e[23]=v,e[24]=n):n=e[24];let d;return e[25]!==P||e[26]!==o||e[27]!==n?(d=N.jsx(w,{title:y["passive-monitoring"],description:"The table below shows the methods NRENs use for the passive monitoring of international traffic.",category:F.Network,filter:P,data:o,filename:"passive_monitoring_nrens_per_year",children:n}),e[25]=P,e[26]=o,e[27]=n,e[28]=d):d=e[28],d}export{z as default}; +import{c as Y,r as j,F as _,j as N,t as y,S as F}from"./index-DBbSOdjk.js";import{u as T,g as k,D as w,F as A,f as C}from"./useData-CcKTpALT.js";import{P as D}from"./PillTable-CIcKqQJh.js";import"./SideBar-DfD7Pj8p.js";import"./xlsx-BHRztzV8.js";import"./index-DkYuYqrz.js";import"./hook-D9Tuu5oJ.js";import"./ColorPill-CuYEYQ56.js";import"./Table-DNomfHX4.js";function z(){const e=Y.c(29),{filterSelection:t,setFilterSelection:c}=j.useContext(_),{data:h,years:x,nrens:g}=T("/api/passive-monitoring",c);let o,p;if(e[0]!==h||e[1]!==t.selectedNrens||e[2]!==t.selectedYears){let u;e[5]!==t.selectedNrens||e[6]!==t.selectedYears?(u=S=>t.selectedYears.includes(S.year)&&t.selectedNrens.includes(S.nren),e[5]=t.selectedNrens,e[6]=t.selectedYears,e[7]=u):u=e[7],o=h.filter(u),p=k(o,"method",!0),e[0]=h,e[1]=t.selectedNrens,e[2]=t.selectedYears,e[3]=o,e[4]=p}else o=e[3],p=e[4];const v=p;let l;e[8]!==x?(l=[...x],e[8]=x,e[9]=l):l=e[9];let r;e[10]!==g?(r=g.values(),e[10]=g,e[11]=r):r=e[11];let i;e[12]!==r?(i=[...r],e[12]=r,e[13]=i):i=e[13];let a;e[14]!==l||e[15]!==i?(a={availableYears:l,availableNrens:i},e[14]=l,e[15]=i,e[16]=a):a=e[16];let m;e[17]!==t||e[18]!==c||e[19]!==a?(m=N.jsx(A,{filterOptions:a,filterSelection:t,setFilterSelection:c,coloredYears:!0}),e[17]=t,e[18]=c,e[19]=a,e[20]=m):m=e[20];const P=m;let s,f;e[21]===Symbol.for("react.memo_cache_sentinel")?(s=["No monitoring occurs","SPAN ports","Passive optical TAPS","Both SPAN ports and passive optical TAPS"],f=new Map([[s[0],"null"],[s[1],"span_ports"],[s[2],"taps"],[s[3],"both"]]),e[21]=s,e[22]=f):(s=e[21],f=e[22]);const b=f;let n;e[23]!==v?(n=N.jsx(C,{children:N.jsx(D,{columns:s,dataLookup:v,columnLookup:b})}),e[23]=v,e[24]=n):n=e[24];let d;return e[25]!==P||e[26]!==o||e[27]!==n?(d=N.jsx(w,{title:y["passive-monitoring"],description:"The table below shows the methods NRENs use for the passive monitoring of international traffic.",category:F.Network,filter:P,data:o,filename:"passive_monitoring_nrens_per_year",children:n}),e[25]=P,e[26]=o,e[27]=n,e[28]=d):d=e[28],d}export{z as default}; diff --git a/compendium_v2/static/PertTeam-BCw_K3zx.js b/compendium_v2/static/PertTeam-CvKn3tG_.js similarity index 80% rename from compendium_v2/static/PertTeam-BCw_K3zx.js rename to compendium_v2/static/PertTeam-CvKn3tG_.js index 085e919ee523d889f1b7422812063148d3772633..a6fa52061eb7e59365fb154f167ede8398975c7e 100644 --- a/compendium_v2/static/PertTeam-BCw_K3zx.js +++ b/compendium_v2/static/PertTeam-CvKn3tG_.js @@ -1,2 +1,2 @@ -import{c as E,r as _,F as b,j as N,t as g,S as k}from"./index-CgRqQtHZ.js";import{u as v,g as F,D as R,F as T,f as C}from"./useData-CnR6ocTl.js";import{P as D}from"./PillTable-DC6FlsPO.js";import"./SideBar-Dgfa8b_s.js";import"./xlsx-BHRztzV8.js";import"./index-DgKDGaow.js";import"./hook-DDOSKqdF.js";import"./ColorPill-BRQzvq49.js";import"./Table-ggua9_yJ.js";function B(){const e=E.c(29),{filterSelection:t,setFilterSelection:c}=_.useContext(b),{data:x,years:P,nrens:Y}=v("/api/pert-team",c);let s,m;if(e[0]!==x||e[1]!==t.selectedNrens||e[2]!==t.selectedYears){let u;e[5]!==t.selectedNrens||e[6]!==t.selectedYears?(u=j=>t.selectedYears.includes(j.year)&&t.selectedNrens.includes(j.nren),e[5]=t.selectedNrens,e[6]=t.selectedYears,e[7]=u):u=e[7],s=x.filter(u),m=F(s,"pert_team"),e[0]=x,e[1]=t.selectedNrens,e[2]=t.selectedYears,e[3]=s,e[4]=m}else s=e[3],m=e[4];const h=m;let r,p;e[8]===Symbol.for("react.memo_cache_sentinel")?(r=["Yes","Planned","No"],p=new Map([[r[0],"yes"],[r[1],"planned"],[r[2],"no"]]),e[8]=r,e[9]=p):(r=e[8],p=e[9]);const y=p;let a;e[10]!==P?(a=[...P],e[10]=P,e[11]=a):a=e[11];let l;e[12]!==Y?(l=Y.values(),e[12]=Y,e[13]=l):l=e[13];let n;e[14]!==l?(n=[...l],e[14]=l,e[15]=n):n=e[15];let o;e[16]!==a||e[17]!==n?(o={availableYears:a,availableNrens:n},e[16]=a,e[17]=n,e[18]=o):o=e[18];let f;e[19]!==t||e[20]!==c||e[21]!==o?(f=N.jsx(T,{filterOptions:o,filterSelection:t,setFilterSelection:c,coloredYears:!0}),e[19]=t,e[20]=c,e[21]=o,e[22]=f):f=e[22];const S=f;let i;e[23]!==h?(i=N.jsx(C,{children:N.jsx(D,{columns:r,columnLookup:y,dataLookup:h})}),e[23]=h,e[24]=i):i=e[24];let d;return e[25]!==S||e[26]!==s||e[27]!==i?(d=N.jsx(R,{title:g["pert-team"],description:`Some NRENs have an in-house Performance Enhancement Response Team, +import{c as E,r as _,F as b,j as N,t as g,S as k}from"./index-DBbSOdjk.js";import{u as v,g as F,D as R,F as T,f as C}from"./useData-CcKTpALT.js";import{P as D}from"./PillTable-CIcKqQJh.js";import"./SideBar-DfD7Pj8p.js";import"./xlsx-BHRztzV8.js";import"./index-DkYuYqrz.js";import"./hook-D9Tuu5oJ.js";import"./ColorPill-CuYEYQ56.js";import"./Table-DNomfHX4.js";function B(){const e=E.c(29),{filterSelection:t,setFilterSelection:c}=_.useContext(b),{data:x,years:P,nrens:Y}=v("/api/pert-team",c);let s,m;if(e[0]!==x||e[1]!==t.selectedNrens||e[2]!==t.selectedYears){let u;e[5]!==t.selectedNrens||e[6]!==t.selectedYears?(u=j=>t.selectedYears.includes(j.year)&&t.selectedNrens.includes(j.nren),e[5]=t.selectedNrens,e[6]=t.selectedYears,e[7]=u):u=e[7],s=x.filter(u),m=F(s,"pert_team"),e[0]=x,e[1]=t.selectedNrens,e[2]=t.selectedYears,e[3]=s,e[4]=m}else s=e[3],m=e[4];const h=m;let r,p;e[8]===Symbol.for("react.memo_cache_sentinel")?(r=["Yes","Planned","No"],p=new Map([[r[0],"yes"],[r[1],"planned"],[r[2],"no"]]),e[8]=r,e[9]=p):(r=e[8],p=e[9]);const y=p;let a;e[10]!==P?(a=[...P],e[10]=P,e[11]=a):a=e[11];let l;e[12]!==Y?(l=Y.values(),e[12]=Y,e[13]=l):l=e[13];let n;e[14]!==l?(n=[...l],e[14]=l,e[15]=n):n=e[15];let o;e[16]!==a||e[17]!==n?(o={availableYears:a,availableNrens:n},e[16]=a,e[17]=n,e[18]=o):o=e[18];let f;e[19]!==t||e[20]!==c||e[21]!==o?(f=N.jsx(T,{filterOptions:o,filterSelection:t,setFilterSelection:c,coloredYears:!0}),e[19]=t,e[20]=c,e[21]=o,e[22]=f):f=e[22];const S=f;let i;e[23]!==h?(i=N.jsx(C,{children:N.jsx(D,{columns:r,columnLookup:y,dataLookup:h})}),e[23]=h,e[24]=i):i=e[24];let d;return e[25]!==S||e[26]!==s||e[27]!==i?(d=N.jsx(R,{title:g["pert-team"],description:`Some NRENs have an in-house Performance Enhancement Response Team, or PERT, to investigate network performance issues.`,category:k.Network,filter:S,data:s,filename:"pert_team_nrens_per_year",children:i}),e[25]=S,e[26]=s,e[27]=i,e[28]=d):d=e[28],d}export{B as default}; diff --git a/compendium_v2/static/PillTable-DC6FlsPO.js b/compendium_v2/static/PillTable-CIcKqQJh.js similarity index 90% rename from compendium_v2/static/PillTable-DC6FlsPO.js rename to compendium_v2/static/PillTable-CIcKqQJh.js index 7dfc8ace35caef4a059f8cfc6814f437a3c75861..2fafae3577aef9de0de000f26c6a0ea1c35f2e34 100644 --- a/compendium_v2/static/PillTable-DC6FlsPO.js +++ b/compendium_v2/static/PillTable-CIcKqQJh.js @@ -1 +1 @@ -import{j as t}from"./index-CgRqQtHZ.js";import{C as c}from"./ColorPill-BRQzvq49.js";import{T as u}from"./Table-ggua9_yJ.js";function b({columns:h,dataLookup:o,circle:p=!1,columnLookup:n=new Map}){const x=Array.from(new Set(Array.from(o.values()).flatMap(r=>Array.from(r.keys())))),d=h.map(r=>n.get(r)||r),j=Array.from(new Set(Array.from(o.values()).flatMap(r=>Array.from(r.values()).flatMap(e=>Array.from(e.keys()))))),f=x.filter(r=>{const e=n.get(r);return e?!d.includes(e):!d.includes(r)}).map(r=>n.get(r)||r);return t.jsxs(u,{className:"charging-struct-table",striped:!0,bordered:!0,children:[t.jsx("colgroup",{children:t.jsx("col",{span:1,style:{width:"12rem"}})}),t.jsx("thead",{children:t.jsxs("tr",{children:[t.jsx("th",{}),h.map(r=>t.jsx("th",{colSpan:1,children:r},r)),f.length?t.jsx("th",{children:"Other"}):null]})}),t.jsx("tbody",{children:Array.from(o.entries()).map(([r,e])=>t.jsxs("tr",{children:[t.jsx("td",{children:r}),d.map(s=>{const a=e.get(s);return a?t.jsx("td",{children:j.map(l=>{const i=a.get(l)||{};return t.jsx(c,{year:l,active:a.has(l),tooltip:i.tooltip,rounded:p},l)})},s):t.jsx("td",{},s)}),!!f.length&&t.jsx("td",{children:f.map(s=>{const a=e.get(s);return a?Array.from(Array.from(a.entries())).map(([i,m])=>t.jsx(c,{year:i,active:!0,tooltip:m.tooltip||s,rounded:p},i)):void 0})},`${r}-other`)]},r))})]})}export{b as P}; +import{j as t}from"./index-DBbSOdjk.js";import{C as c}from"./ColorPill-CuYEYQ56.js";import{T as u}from"./Table-DNomfHX4.js";function b({columns:h,dataLookup:o,circle:p=!1,columnLookup:n=new Map}){const x=Array.from(new Set(Array.from(o.values()).flatMap(r=>Array.from(r.keys())))),d=h.map(r=>n.get(r)||r),j=Array.from(new Set(Array.from(o.values()).flatMap(r=>Array.from(r.values()).flatMap(e=>Array.from(e.keys()))))),f=x.filter(r=>{const e=n.get(r);return e?!d.includes(e):!d.includes(r)}).map(r=>n.get(r)||r);return t.jsxs(u,{className:"charging-struct-table",striped:!0,bordered:!0,children:[t.jsx("colgroup",{children:t.jsx("col",{span:1,style:{width:"12rem"}})}),t.jsx("thead",{children:t.jsxs("tr",{children:[t.jsx("th",{}),h.map(r=>t.jsx("th",{colSpan:1,children:r},r)),f.length?t.jsx("th",{children:"Other"}):null]})}),t.jsx("tbody",{children:Array.from(o.entries()).map(([r,e])=>t.jsxs("tr",{children:[t.jsx("td",{children:r}),d.map(s=>{const a=e.get(s);return a?t.jsx("td",{children:j.map(l=>{const i=a.get(l)||{};return t.jsx(c,{year:l,active:a.has(l),tooltip:i.tooltip,rounded:p},l)})},s):t.jsx("td",{},s)}),!!f.length&&t.jsx("td",{children:f.map(s=>{const a=e.get(s);return a?Array.from(Array.from(a.entries())).map(([i,m])=>t.jsx(c,{year:i,active:!0,tooltip:m.tooltip||s,rounded:p},i)):void 0})},`${r}-other`)]},r))})]})}export{b as P}; diff --git a/compendium_v2/static/Policy-VM2zQrob.js b/compendium_v2/static/Policy-CuNV_l7a.js similarity index 80% rename from compendium_v2/static/Policy-VM2zQrob.js rename to compendium_v2/static/Policy-CuNV_l7a.js index c5a4e23f6a12d34897886d894b8267387f50db82..97aaddc4751716b19f3e4ffd5835ec3d83066fcd 100644 --- a/compendium_v2/static/Policy-VM2zQrob.js +++ b/compendium_v2/static/Policy-CuNV_l7a.js @@ -1 +1 @@ -import{c as h,r as v,F as E,j as y,t as _,S as b}from"./index-CgRqQtHZ.js";import{u as g,q as j,k,i as S,D as q,F as C,f as F}from"./useData-CnR6ocTl.js";import{N as R}from"./NrenYearTable-Q6UAdf8a.js";import"./SideBar-Dgfa8b_s.js";import"./xlsx-BHRztzV8.js";import"./index-DgKDGaow.js";import"./hook-DDOSKqdF.js";import"./Table-ggua9_yJ.js";function W(){const e=h.c(21),{filterSelection:t,setFilterSelection:n}=v.useContext(E),{data:a,nrens:c}=g("/api/policy",n);let i,o;if(e[0]!==a||e[1]!==t.selectedNrens){const D=a?j(a):[];let u;e[4]!==t.selectedNrens?(u=x=>t.selectedNrens.includes(x.nren),e[4]=t.selectedNrens,e[5]=u):u=e[5],i=D.filter(u);const P=k(i);o=S(P,T),e[0]=a,e[1]=t.selectedNrens,e[2]=i,e[3]=o}else i=e[2],o=e[3];const d=o;let p;e[6]===Symbol.for("react.memo_cache_sentinel")?(p=[],e[6]=p):p=e[6];let l;e[7]!==c?(l=c.values(),e[7]=c,e[8]=l):l=e[8];let s;e[9]!==l?(s={availableYears:p,availableNrens:[...l]},e[9]=l,e[10]=s):s=e[10];let f;e[11]!==t||e[12]!==n||e[13]!==s?(f=y.jsx(C,{filterOptions:s,filterSelection:t,setFilterSelection:n}),e[11]=t,e[12]=n,e[13]=s,e[14]=f):f=e[14];const N=f;let r;e[15]!==d?(r=y.jsx(F,{children:y.jsx(R,{data:d,columnTitle:"Policies",noDots:!0,dottedBorder:!0,keysAreURLs:!0,removeDecoration:!0})}),e[15]=d,e[16]=r):r=e[16];let m;return e[17]!==N||e[18]!==i||e[19]!==r?(m=y.jsx(q,{title:_.policy,description:"The table shows links to the NRENs policies. We only include links from the most recent response from each NREN.",category:b.Policy,filter:N,data:i,filename:"nren_policies",children:r}),e[17]=N,e[18]=i,e[19]=r,e[20]=m):m=e[20],m}function T(e,t){[["acceptable_use","Acceptable Use Policy"],["connectivity","Connectivity Policy"],["data_protection","Data Protection Policy"],["environmental","Environmental Policy"],["equal_opportunity","Equal Opportunity Policy"],["gender_equality","Gender Equality Plan"],["privacy_notice","Privacy Notice"]].forEach(a=>{const[c,i]=a,o=t[c];o&&(e[i]=o)})}export{W as default}; +import{c as h,r as v,F as E,j as y,t as _,S as b}from"./index-DBbSOdjk.js";import{u as g,q as j,k,i as S,D as q,F as C,f as F}from"./useData-CcKTpALT.js";import{N as R}from"./NrenYearTable-C1JRhqy_.js";import"./SideBar-DfD7Pj8p.js";import"./xlsx-BHRztzV8.js";import"./index-DkYuYqrz.js";import"./hook-D9Tuu5oJ.js";import"./Table-DNomfHX4.js";function W(){const e=h.c(21),{filterSelection:t,setFilterSelection:n}=v.useContext(E),{data:a,nrens:c}=g("/api/policy",n);let i,o;if(e[0]!==a||e[1]!==t.selectedNrens){const D=a?j(a):[];let u;e[4]!==t.selectedNrens?(u=x=>t.selectedNrens.includes(x.nren),e[4]=t.selectedNrens,e[5]=u):u=e[5],i=D.filter(u);const P=k(i);o=S(P,T),e[0]=a,e[1]=t.selectedNrens,e[2]=i,e[3]=o}else i=e[2],o=e[3];const d=o;let p;e[6]===Symbol.for("react.memo_cache_sentinel")?(p=[],e[6]=p):p=e[6];let l;e[7]!==c?(l=c.values(),e[7]=c,e[8]=l):l=e[8];let s;e[9]!==l?(s={availableYears:p,availableNrens:[...l]},e[9]=l,e[10]=s):s=e[10];let f;e[11]!==t||e[12]!==n||e[13]!==s?(f=y.jsx(C,{filterOptions:s,filterSelection:t,setFilterSelection:n}),e[11]=t,e[12]=n,e[13]=s,e[14]=f):f=e[14];const N=f;let r;e[15]!==d?(r=y.jsx(F,{children:y.jsx(R,{data:d,columnTitle:"Policies",noDots:!0,dottedBorder:!0,keysAreURLs:!0,removeDecoration:!0})}),e[15]=d,e[16]=r):r=e[16];let m;return e[17]!==N||e[18]!==i||e[19]!==r?(m=y.jsx(q,{title:_.policy,description:"The table shows links to the NRENs policies. We only include links from the most recent response from each NREN.",category:b.Policy,filter:N,data:i,filename:"nren_policies",children:r}),e[17]=N,e[18]=i,e[19]=r,e[20]=m):m=e[20],m}function T(e,t){[["acceptable_use","Acceptable Use Policy"],["connectivity","Connectivity Policy"],["data_protection","Data Protection Policy"],["environmental","Environmental Policy"],["equal_opportunity","Equal Opportunity Policy"],["gender_equality","Gender Equality Plan"],["privacy_notice","Privacy Notice"]].forEach(a=>{const[c,i]=a,o=t[c];o&&(e[i]=o)})}export{W as default}; diff --git a/compendium_v2/static/RemoteCampuses-DMXVocD3.js b/compendium_v2/static/RemoteCampuses-DMXVocD3.js deleted file mode 100644 index 9bcb3057a462443cce7728659558a302de063b6f..0000000000000000000000000000000000000000 --- a/compendium_v2/static/RemoteCampuses-DMXVocD3.js +++ /dev/null @@ -1 +0,0 @@ -import{c as S,j as n,r as D,F as R,t as E,S as g}from"./index-CgRqQtHZ.js";import{u as w,h as F,i as k,D as T,F as B,f as L}from"./useData-CnR6ocTl.js";import{T as O}from"./Table-ggua9_yJ.js";import"./SideBar-Dgfa8b_s.js";import"./xlsx-BHRztzV8.js";import"./index-DgKDGaow.js";import"./hook-DDOSKqdF.js";function $({data:e,dottedBorder:t=!1,columns:o}){return Array.from(e.entries()).map(([s,a])=>Array.from(a.entries()).map(([i,d],c)=>n.jsxs("tr",{className:t?"dotted-border":"",children:[n.jsx("td",{className:"pt-3 nren-column text-nowrap",children:c===0&&s}),n.jsx("td",{className:"pt-3 year-column",children:i}),Object.keys(o).map((r,l)=>n.jsx("td",{className:"pt-3 blue-column",children:d[r]},l))]},s+i)))}function A(e){const t=S.c(15),{data:o,dottedBorder:s,columns:a}=e;let i;t[0]===Symbol.for("react.memo_cache_sentinel")?(i=n.jsx("th",{className:"nren-column",children:n.jsx("span",{children:"NREN"})}),t[0]=i):i=t[0];let d;t[1]===Symbol.for("react.memo_cache_sentinel")?(d=n.jsx("th",{className:"year-column",children:n.jsx("span",{children:"Year"})}),t[1]=d):d=t[1];let c;t[2]!==a?(c=Object.values(a).map(P),t[2]=a,t[3]=c):c=t[3];let r;t[4]!==c?(r=n.jsx("thead",{children:n.jsxs("tr",{children:[i,d,c]})}),t[4]=c,t[5]=r):r=t[5];let l;t[6]!==a||t[7]!==o||t[8]!==s?(l=$({data:o,dottedBorder:s,columns:a}),t[6]=a,t[7]=o,t[8]=s,t[9]=l):l=t[9];let u;t[10]!==l?(u=n.jsx("tbody",{children:l}),t[10]=l,t[11]=u):u=t[11];let m;return t[12]!==r||t[13]!==u?(m=n.jsxs(O,{borderless:!0,className:"compendium-table",children:[r,u]}),t[12]=r,t[13]=u,t[14]=m):m=t[14],m}function P(e,t){return n.jsx("th",{className:"blue-column",children:n.jsx("span",{children:e})},t)}function Q(){const e=S.c(29);let t;e[0]===Symbol.for("react.memo_cache_sentinel")?(t=x=>!!x.remote_campus_connectivity,e[0]=t):t=e[0];const o=t,{filterSelection:s,setFilterSelection:a}=D.useContext(R),{data:i,years:d,nrens:c}=w("/api/remote-campuses",a,o);let r,l;if(e[1]!==i||e[2]!==s.selectedNrens||e[3]!==s.selectedYears){let x;e[6]!==s.selectedNrens||e[7]!==s.selectedYears?(x=C=>s.selectedYears.includes(C.year)&&s.selectedNrens.includes(C.nren),e[6]=s.selectedNrens,e[7]=s.selectedYears,e[8]=x):x=e[8],r=i.filter(x);const v=F(r);l=k(v,J),e[1]=i,e[2]=s.selectedNrens,e[3]=s.selectedYears,e[4]=r,e[5]=l}else r=e[4],l=e[5];const u=l;let m;e[9]!==d?(m=[...d],e[9]=d,e[10]=m):m=e[10];let f;e[11]!==c?(f=c.values(),e[11]=c,e[12]=f):f=e[12];let p;e[13]!==f?(p=[...f],e[13]=f,e[14]=p):p=e[14];let h;e[15]!==m||e[16]!==p?(h={availableYears:m,availableNrens:p},e[15]=m,e[16]=p,e[17]=h):h=e[17];let j;e[18]!==s||e[19]!==a||e[20]!==h?(j=n.jsx(B,{filterOptions:h,filterSelection:s,setFilterSelection:a}),e[18]=s,e[19]=a,e[20]=h,e[21]=j):j=e[21];const b=j;let N;e[22]===Symbol.for("react.memo_cache_sentinel")?(N={countries:"Countries with Remote Campuses",local_r_and_e_connection:"Local R&E Connection"},e[22]=N):N=e[22];const Y=N;let _;e[23]!==u?(_=n.jsx(L,{children:n.jsx(A,{data:u,columns:Y,dottedBorder:!0})}),e[23]=u,e[24]=_):_=e[24];let y;return e[25]!==b||e[26]!==r||e[27]!==_?(y=n.jsx(T,{title:E["remote-campuses"],description:"NRENs are asked whether they have remote campuses in other countries, and if so, to list the countries where they have remote campuses and whether they are connected to the local R&E network.",category:g.ConnectedUsers,filter:b,data:r,filename:"nren_remote_campuses",children:_}),e[25]=b,e[26]=r,e[27]=_,e[28]=y):y=e[28],y}function J(e,t){for(const o of t){if(!o.remote_campus_connectivity)continue;const s=o.connections.map(X).join(", ");e.countries=s,e.local_r_and_e_connection=o.connections.map(U).join(", ")}}function U(e){return e.local_r_and_e_connection?"Yes":"No"}function X(e){return e.country}export{Q as default}; diff --git a/compendium_v2/static/RemoteCampuses-NGRzWQf8.js b/compendium_v2/static/RemoteCampuses-NGRzWQf8.js new file mode 100644 index 0000000000000000000000000000000000000000..06bcf1e6607b91cad9bed058c8354904e81445cb --- /dev/null +++ b/compendium_v2/static/RemoteCampuses-NGRzWQf8.js @@ -0,0 +1 @@ +import{c as C,j as n,r as S,F as D,t as R,S as E}from"./index-DBbSOdjk.js";import{u as g,h as w,i as F,D as k,F as T,f as B}from"./useData-CcKTpALT.js";import{T as L}from"./Table-DNomfHX4.js";import"./SideBar-DfD7Pj8p.js";import"./xlsx-BHRztzV8.js";import"./index-DkYuYqrz.js";import"./hook-D9Tuu5oJ.js";function O({data:e,dottedBorder:t=!1,columns:s}){return Array.from(e.entries()).map(([a,o])=>Array.from(o.entries()).map(([m,u],r)=>n.jsxs("tr",{className:t?"dotted-border":"",children:[n.jsx("td",{className:"pt-3 nren-column text-nowrap",children:r===0&&a}),n.jsx("td",{className:"pt-3 year-column",children:m}),Object.keys(s).map((c,i)=>n.jsx("td",{className:"pt-3 blue-column",children:u[c]},i))]},a+m)))}function $(e){const t=C.c(15),{data:s,dottedBorder:a,columns:o}=e;let m;t[0]===Symbol.for("react.memo_cache_sentinel")?(m=n.jsx("th",{className:"nren-column",children:n.jsx("span",{children:"NREN"})}),t[0]=m):m=t[0];let u;t[1]===Symbol.for("react.memo_cache_sentinel")?(u=n.jsx("th",{className:"year-column",children:n.jsx("span",{children:"Year"})}),t[1]=u):u=t[1];let r;t[2]!==o?(r=Object.values(o).map(A),t[2]=o,t[3]=r):r=t[3];let c;t[4]!==r?(c=n.jsx("thead",{children:n.jsxs("tr",{children:[m,u,r]})}),t[4]=r,t[5]=c):c=t[5];let i;t[6]!==o||t[7]!==s||t[8]!==a?(i=O({data:s,dottedBorder:a,columns:o}),t[6]=o,t[7]=s,t[8]=a,t[9]=i):i=t[9];let l;t[10]!==i?(l=n.jsx("tbody",{children:i}),t[10]=i,t[11]=l):l=t[11];let d;return t[12]!==c||t[13]!==l?(d=n.jsxs(L,{borderless:!0,className:"compendium-table",children:[c,l]}),t[12]=c,t[13]=l,t[14]=d):d=t[14],d}function A(e,t){return n.jsx("th",{className:"blue-column",children:n.jsx("span",{children:e})},t)}function Q(){const e=C.c(28),t=X,{filterSelection:s,setFilterSelection:a}=S.useContext(D),{data:o,years:m,nrens:u}=g("/api/remote-campuses",a,t);let r,c;if(e[0]!==o||e[1]!==s.selectedNrens||e[2]!==s.selectedYears){let N;e[5]!==s.selectedNrens||e[6]!==s.selectedYears?(N=b=>s.selectedYears.includes(b.year)&&s.selectedNrens.includes(b.nren),e[5]=s.selectedNrens,e[6]=s.selectedYears,e[7]=N):N=e[7],r=o.filter(N);const v=w(r);c=F(v,P),e[0]=o,e[1]=s.selectedNrens,e[2]=s.selectedYears,e[3]=r,e[4]=c}else r=e[3],c=e[4];const i=c;let l;e[8]!==m?(l=[...m],e[8]=m,e[9]=l):l=e[9];let d;e[10]!==u?(d=u.values(),e[10]=u,e[11]=d):d=e[11];let f;e[12]!==d?(f=[...d],e[12]=d,e[13]=f):f=e[13];let p;e[14]!==l||e[15]!==f?(p={availableYears:l,availableNrens:f},e[14]=l,e[15]=f,e[16]=p):p=e[16];let _;e[17]!==s||e[18]!==a||e[19]!==p?(_=n.jsx(T,{filterOptions:p,filterSelection:s,setFilterSelection:a}),e[17]=s,e[18]=a,e[19]=p,e[20]=_):_=e[20];const y=_;let x;e[21]===Symbol.for("react.memo_cache_sentinel")?(x={countries:"Countries with Remote Campuses",local_r_and_e_connection:"Local R&E Connection"},e[21]=x):x=e[21];const Y=x;let h;e[22]!==i?(h=n.jsx(B,{children:n.jsx($,{data:i,columns:Y,dottedBorder:!0})}),e[22]=i,e[23]=h):h=e[23];let j;return e[24]!==y||e[25]!==r||e[26]!==h?(j=n.jsx(k,{title:R["remote-campuses"],description:"NRENs are asked whether they have remote campuses in other countries, and if so, to list the countries where they have remote campuses and whether they are connected to the local R&E network.",category:E.ConnectedUsers,filter:y,data:r,filename:"nren_remote_campuses",children:h}),e[24]=y,e[25]=r,e[26]=h,e[27]=j):j=e[27],j}function P(e,t){for(const s of t){if(!s.remote_campus_connectivity)continue;const a=s.connections.map(U).join(", ");e.countries=a,e.local_r_and_e_connection=s.connections.map(J).join(", ")}}function J(e){return e.local_r_and_e_connection?"Yes":"No"}function U(e){return e.country}function X(e){return!!e.remote_campus_connectivity}export{Q as default}; diff --git a/compendium_v2/static/ScrollableMatrix-BVG39bM8.js b/compendium_v2/static/ScrollableMatrix-CNydABqZ.js similarity index 94% rename from compendium_v2/static/ScrollableMatrix-BVG39bM8.js rename to compendium_v2/static/ScrollableMatrix-CNydABqZ.js index 66900c883cfab4685e23afc44fc11fa12ea14560..c451b1f661d9ec5d314f83afc4818fc505ad4064 100644 --- a/compendium_v2/static/ScrollableMatrix-BVG39bM8.js +++ b/compendium_v2/static/ScrollableMatrix-CNydABqZ.js @@ -1 +1 @@ -import{c as T,j as t,e as k}from"./index-CgRqQtHZ.js";import{T as A}from"./Table-ggua9_yJ.js";const L=t.jsx("span",{children:"✔"}),O=8;function V(r){const e=T.c(12),{dataLookup:n,rowInfo:s,categoryLookup:h,isTickIcon:b}=r,l=b===void 0?!1:b;if(!n){let c;return e[0]===Symbol.for("react.memo_cache_sentinel")?(c=t.jsx("div",{className:"matrix-border"}),e[0]=c):c=e[0],c}let d;if(e[1]!==h||e[2]!==n||e[3]!==l||e[4]!==s){let c;e[6]!==n||e[7]!==l||e[8]!==s?(c=v=>{const[p,E]=v,C=Object.entries(s).map(o=>{const[u,a]=o,i=[];return Array.from(n.entries()).sort(F).forEach(y=>{const[,_]=y;_.forEach(g=>{const f=g.get(p);if(!f)return;const N=f[a]!=null?Object.keys(f[a])[0]:null,I=N!=null&&l?L:N;i.push(I)})}),i.length?t.jsxs("tr",{children:[t.jsx("th",{className:"fixed-column",children:u}),i.map(D)]},u):null}),j=Array.from(n.entries()).sort(B).reduce((o,u)=>{const[a,i]=u;return Array.from(i.entries()).forEach(y=>{const[_,g]=y;g.get(p)&&(o[a]||(o[a]=[]),o[a].push(_))}),o},{});for(const o in j)j[o].sort($);return t.jsx(k,{title:E,startCollapsed:!0,theme:"-matrix",children:C?t.jsx("div",{className:"table-responsive",children:t.jsxs(A,{className:"matrix-table",bordered:!0,children:[t.jsx("thead",{children:(()=>{const o=Object.entries(j);return t.jsxs(t.Fragment,{children:[t.jsxs("tr",{children:[t.jsx("th",{className:"fixed-column"}),o.map(w)]}),t.jsxs("tr",{children:[t.jsx("th",{className:"fixed-column"}),o.flatMap(S)]})]})})()}),t.jsx("tbody",{children:C})]})}):t.jsx("div",{style:{paddingLeft:"5%"},children:t.jsx("p",{children:"No data available for this section."})})},p)},e[6]=n,e[7]=l,e[8]=s,e[9]=c):c=e[9],d=Object.entries(h).map(c),e[1]=h,e[2]=n,e[3]=l,e[4]=s,e[5]=d}else d=e[5];const x=d;let m;return e[10]!==x?(m=t.jsx("div",{className:"matrix-border",children:x}),e[10]=x,e[11]=m):m=e[11],m}function S(r){const[e,n]=r;return n.map(s=>t.jsx("th",{children:s},`${e}-${s}`))}function w(r){const[e,n]=r;return t.jsx("th",{colSpan:n.length,style:{width:`${n.length*O}rem`},children:e},e)}function $(r,e){return r-e}function B(r,e){const[n]=r,[s]=e;return n.localeCompare(s)}function D(r,e){return t.jsx("td",{children:r},e)}function F(r,e){const[n]=r,[s]=e;return n.localeCompare(s)}export{V as S}; +import{c as T,j as t,e as k}from"./index-DBbSOdjk.js";import{T as A}from"./Table-DNomfHX4.js";const L=t.jsx("span",{children:"✔"}),O=8;function V(r){const e=T.c(12),{dataLookup:n,rowInfo:s,categoryLookup:h,isTickIcon:b}=r,l=b===void 0?!1:b;if(!n){let c;return e[0]===Symbol.for("react.memo_cache_sentinel")?(c=t.jsx("div",{className:"matrix-border"}),e[0]=c):c=e[0],c}let d;if(e[1]!==h||e[2]!==n||e[3]!==l||e[4]!==s){let c;e[6]!==n||e[7]!==l||e[8]!==s?(c=v=>{const[p,E]=v,C=Object.entries(s).map(o=>{const[u,a]=o,i=[];return Array.from(n.entries()).sort(F).forEach(y=>{const[,_]=y;_.forEach(g=>{const f=g.get(p);if(!f)return;const N=f[a]!=null?Object.keys(f[a])[0]:null,I=N!=null&&l?L:N;i.push(I)})}),i.length?t.jsxs("tr",{children:[t.jsx("th",{className:"fixed-column",children:u}),i.map(D)]},u):null}),j=Array.from(n.entries()).sort(B).reduce((o,u)=>{const[a,i]=u;return Array.from(i.entries()).forEach(y=>{const[_,g]=y;g.get(p)&&(o[a]||(o[a]=[]),o[a].push(_))}),o},{});for(const o in j)j[o].sort($);return t.jsx(k,{title:E,startCollapsed:!0,theme:"-matrix",children:C?t.jsx("div",{className:"table-responsive",children:t.jsxs(A,{className:"matrix-table",bordered:!0,children:[t.jsx("thead",{children:(()=>{const o=Object.entries(j);return t.jsxs(t.Fragment,{children:[t.jsxs("tr",{children:[t.jsx("th",{className:"fixed-column"}),o.map(w)]}),t.jsxs("tr",{children:[t.jsx("th",{className:"fixed-column"}),o.flatMap(S)]})]})})()}),t.jsx("tbody",{children:C})]})}):t.jsx("div",{style:{paddingLeft:"5%"},children:t.jsx("p",{children:"No data available for this section."})})},p)},e[6]=n,e[7]=l,e[8]=s,e[9]=c):c=e[9],d=Object.entries(h).map(c),e[1]=h,e[2]=n,e[3]=l,e[4]=s,e[5]=d}else d=e[5];const x=d;let m;return e[10]!==x?(m=t.jsx("div",{className:"matrix-border",children:x}),e[10]=x,e[11]=m):m=e[11],m}function S(r){const[e,n]=r;return n.map(s=>t.jsx("th",{children:s},`${e}-${s}`))}function w(r){const[e,n]=r;return t.jsx("th",{colSpan:n.length,style:{width:`${n.length*O}rem`},children:e},e)}function $(r,e){return r-e}function B(r,e){const[n]=r,[s]=e;return n.localeCompare(s)}function D(r,e){return t.jsx("td",{children:r},e)}function F(r,e){const[n]=r,[s]=e;return n.localeCompare(s)}export{V as S}; diff --git a/compendium_v2/static/SecurityControls-BTdEPH5H.js b/compendium_v2/static/SecurityControls-C_redfTy.js similarity index 86% rename from compendium_v2/static/SecurityControls-BTdEPH5H.js rename to compendium_v2/static/SecurityControls-C_redfTy.js index be011f95e20eac0e0459b8d959e6fae22f7c74aa..625450c583d25578331f7c2d45fd6ba913c5b675 100644 --- a/compendium_v2/static/SecurityControls-BTdEPH5H.js +++ b/compendium_v2/static/SecurityControls-C_redfTy.js @@ -1,2 +1,2 @@ -import{c as T,r as E,F as L,S as A,j,t as I}from"./index-CgRqQtHZ.js";import{u as M,g as O,F as R,D as V,f as W}from"./useData-CnR6ocTl.js";import{P as $}from"./PillTable-DC6FlsPO.js";import"./SideBar-Dgfa8b_s.js";import"./xlsx-BHRztzV8.js";import"./index-DgKDGaow.js";import"./hook-DDOSKqdF.js";import"./ColorPill-BRQzvq49.js";import"./Table-ggua9_yJ.js";function Z(){const e=T.c(51),{filterSelection:t,setFilterSelection:i}=E.useContext(L),{data:w,years:D,nrens:Y}=M("/api/security-controls",i);let s,S;if(e[0]!==w||e[1]!==t.selectedNrens||e[2]!==t.selectedYears){let r;e[5]!==t.selectedNrens||e[6]!==t.selectedYears?(r=P=>t.selectedYears.includes(P.year)&&t.selectedNrens.includes(P.nren),e[5]=t.selectedNrens,e[6]=t.selectedYears,e[7]=r):r=e[7],s=w.filter(r),S=O(s,"security_control_descriptions"),e[0]=w,e[1]=t.selectedNrens,e[2]=t.selectedYears,e[3]=s,e[4]=S}else s=e[3],S=e[4];const C=S;let l;e[8]!==D?(l=[...D],e[8]=D,e[9]=l):l=e[9];let o;e[10]!==Y?(o=Y.values(),e[10]=Y,e[11]=o):o=e[11];let n;e[12]!==o?(n=[...o],e[12]=o,e[13]=n):n=e[13];let a;e[14]!==l||e[15]!==n?(a={availableYears:l,availableNrens:n},e[14]=l,e[15]=n,e[16]=a):a=e[16];let b;e[17]!==t||e[18]!==i||e[19]!==a?(b=j.jsx(R,{filterOptions:a,filterSelection:t,setFilterSelection:i,coloredYears:!0}),e[17]=t,e[18]=i,e[19]=a,e[20]=b):b=e[20];const F=b;let c,u,m,p,f,d,y,g,h,N,x;if(e[21]!==F||e[22]!==s){const r={anti_virus:"Anti Virus",anti_spam:"Anti-Spam",firewall:"Firewall",ddos_mitigation:"DDoS mitigation",monitoring:"Network monitoring",ips_ids:"IPS/IDS",acl:"ACL",segmentation:"Network segmentation",integrity_checking:"Integrity checking"};p=new Map(Object.entries(r).map(q)),m=V,h=I["security-control"],N=`The table below shows the different security controls, such as anti-virus, integrity checkers, and systemic firewalls used by +import{c as T,r as E,F as L,S as A,j,t as I}from"./index-DBbSOdjk.js";import{u as M,g as O,F as R,D as V,f as W}from"./useData-CcKTpALT.js";import{P as $}from"./PillTable-CIcKqQJh.js";import"./SideBar-DfD7Pj8p.js";import"./xlsx-BHRztzV8.js";import"./index-DkYuYqrz.js";import"./hook-D9Tuu5oJ.js";import"./ColorPill-CuYEYQ56.js";import"./Table-DNomfHX4.js";function Z(){const e=T.c(51),{filterSelection:t,setFilterSelection:i}=E.useContext(L),{data:w,years:D,nrens:Y}=M("/api/security-controls",i);let s,S;if(e[0]!==w||e[1]!==t.selectedNrens||e[2]!==t.selectedYears){let r;e[5]!==t.selectedNrens||e[6]!==t.selectedYears?(r=P=>t.selectedYears.includes(P.year)&&t.selectedNrens.includes(P.nren),e[5]=t.selectedNrens,e[6]=t.selectedYears,e[7]=r):r=e[7],s=w.filter(r),S=O(s,"security_control_descriptions"),e[0]=w,e[1]=t.selectedNrens,e[2]=t.selectedYears,e[3]=s,e[4]=S}else s=e[3],S=e[4];const C=S;let l;e[8]!==D?(l=[...D],e[8]=D,e[9]=l):l=e[9];let o;e[10]!==Y?(o=Y.values(),e[10]=Y,e[11]=o):o=e[11];let n;e[12]!==o?(n=[...o],e[12]=o,e[13]=n):n=e[13];let a;e[14]!==l||e[15]!==n?(a={availableYears:l,availableNrens:n},e[14]=l,e[15]=n,e[16]=a):a=e[16];let b;e[17]!==t||e[18]!==i||e[19]!==a?(b=j.jsx(R,{filterOptions:a,filterSelection:t,setFilterSelection:i,coloredYears:!0}),e[17]=t,e[18]=i,e[19]=a,e[20]=b):b=e[20];const F=b;let c,u,m,p,f,d,y,g,h,N,x;if(e[21]!==F||e[22]!==s){const r={anti_virus:"Anti Virus",anti_spam:"Anti-Spam",firewall:"Firewall",ddos_mitigation:"DDoS mitigation",monitoring:"Network monitoring",ips_ids:"IPS/IDS",acl:"ACL",segmentation:"Network segmentation",integrity_checking:"Integrity checking"};p=new Map(Object.entries(r).map(q)),m=V,h=I["security-control"],N=`The table below shows the different security controls, such as anti-virus, integrity checkers, and systemic firewalls used by NRENs to protect their assets. Where 'other' controls are mentioned, hover over the marker for more information.`,x=A.Policy,f=F,d=s,y="security_control_nrens_per_year",u=W,c=$,g=Object.values(r),e[21]=F,e[22]=s,e[23]=c,e[24]=u,e[25]=m,e[26]=p,e[27]=f,e[28]=d,e[29]=y,e[30]=g,e[31]=h,e[32]=N,e[33]=x}else c=e[23],u=e[24],m=e[25],p=e[26],f=e[27],d=e[28],y=e[29],g=e[30],h=e[31],N=e[32],x=e[33];let _;e[34]!==c||e[35]!==p||e[36]!==C||e[37]!==g?(_=j.jsx(c,{columns:g,dataLookup:C,circle:!0,columnLookup:p}),e[34]=c,e[35]=p,e[36]=C,e[37]=g,e[38]=_):_=e[38];let k;e[39]!==u||e[40]!==_?(k=j.jsx(u,{children:_}),e[39]=u,e[40]=_,e[41]=k):k=e[41];let v;return e[42]!==m||e[43]!==f||e[44]!==d||e[45]!==y||e[46]!==k||e[47]!==h||e[48]!==N||e[49]!==x?(v=j.jsx(m,{title:h,description:N,category:x,filter:f,data:d,filename:y,children:k}),e[42]=m,e[43]=f,e[44]=d,e[45]=y,e[46]=k,e[47]=h,e[48]=N,e[49]=x,e[50]=v):v=e[50],v}function q(e){const[t,i]=e;return[i,t]}export{Z as default}; diff --git a/compendium_v2/static/ServiceLevelTargets-BpkLKw_p.js b/compendium_v2/static/ServiceLevelTargets-CXuM4ENo.js similarity index 81% rename from compendium_v2/static/ServiceLevelTargets-BpkLKw_p.js rename to compendium_v2/static/ServiceLevelTargets-CXuM4ENo.js index bb990f9a8a795ae97806970bc3c77ee7a1ad760d..1175b43698e7614a5639c0873215b462591f5424 100644 --- a/compendium_v2/static/ServiceLevelTargets-BpkLKw_p.js +++ b/compendium_v2/static/ServiceLevelTargets-CXuM4ENo.js @@ -1,2 +1,2 @@ -import{c as y,r as j,F,j as v,t as T,S as _}from"./index-CgRqQtHZ.js";import{u as E,g as L,D as P,F as w,f as C}from"./useData-CnR6ocTl.js";import{P as D}from"./PillTable-DC6FlsPO.js";import"./SideBar-Dgfa8b_s.js";import"./xlsx-BHRztzV8.js";import"./index-DgKDGaow.js";import"./hook-DDOSKqdF.js";import"./ColorPill-BRQzvq49.js";import"./Table-ggua9_yJ.js";function A(){const e=y.c(29),{filterSelection:t,setFilterSelection:n}=j.useContext(F),{data:h,years:N,nrens:x}=E("/api/service-management",n);let s,f;if(e[0]!==h||e[1]!==t.selectedNrens||e[2]!==t.selectedYears){let p;e[5]!==t.selectedNrens||e[6]!==t.selectedYears?(p=Y=>t.selectedYears.includes(Y.year)&&t.selectedNrens.includes(Y.nren)&&Y.service_level_targets!==null,e[5]=t.selectedNrens,e[6]=t.selectedYears,e[7]=p):p=e[7],s=h.filter(p),f=L(s,"service_level_targets"),e[0]=h,e[1]=t.selectedNrens,e[2]=t.selectedYears,e[3]=s,e[4]=f}else s=e[3],f=e[4];const g=f;let l,d;e[8]===Symbol.for("react.memo_cache_sentinel")?(l=["Yes","No"],d=new Map([[l[0],"True"],[l[1],"False"]]),e[8]=l,e[9]=d):(l=e[8],d=e[9]);const b=d;let r;e[10]!==N?(r=[...N],e[10]=N,e[11]=r):r=e[11];let a;e[12]!==x?(a=x.values(),e[12]=x,e[13]=a):a=e[13];let i;e[14]!==a?(i=[...a],e[14]=a,e[15]=i):i=e[15];let o;e[16]!==r||e[17]!==i?(o={availableYears:r,availableNrens:i},e[16]=r,e[17]=i,e[18]=o):o=e[18];let m;e[19]!==t||e[20]!==n||e[21]!==o?(m=v.jsx(w,{filterOptions:o,filterSelection:t,setFilterSelection:n,coloredYears:!0}),e[19]=t,e[20]=n,e[21]=o,e[22]=m):m=e[22];const S=m;let c;e[23]!==g?(c=v.jsx(C,{children:v.jsx(D,{columns:l,columnLookup:b,dataLookup:g})}),e[23]=g,e[24]=c):c=e[24];let u;return e[25]!==S||e[26]!==s||e[27]!==c?(u=v.jsx(P,{title:T["service-level-targets"],description:`The table below shows which NRENs offer Service Levels Targets for their services. +import{c as y,r as j,F,j as v,t as T,S as _}from"./index-DBbSOdjk.js";import{u as E,g as L,D as P,F as w,f as C}from"./useData-CcKTpALT.js";import{P as D}from"./PillTable-CIcKqQJh.js";import"./SideBar-DfD7Pj8p.js";import"./xlsx-BHRztzV8.js";import"./index-DkYuYqrz.js";import"./hook-D9Tuu5oJ.js";import"./ColorPill-CuYEYQ56.js";import"./Table-DNomfHX4.js";function A(){const e=y.c(29),{filterSelection:t,setFilterSelection:n}=j.useContext(F),{data:h,years:N,nrens:x}=E("/api/service-management",n);let s,f;if(e[0]!==h||e[1]!==t.selectedNrens||e[2]!==t.selectedYears){let p;e[5]!==t.selectedNrens||e[6]!==t.selectedYears?(p=Y=>t.selectedYears.includes(Y.year)&&t.selectedNrens.includes(Y.nren)&&Y.service_level_targets!==null,e[5]=t.selectedNrens,e[6]=t.selectedYears,e[7]=p):p=e[7],s=h.filter(p),f=L(s,"service_level_targets"),e[0]=h,e[1]=t.selectedNrens,e[2]=t.selectedYears,e[3]=s,e[4]=f}else s=e[3],f=e[4];const g=f;let l,d;e[8]===Symbol.for("react.memo_cache_sentinel")?(l=["Yes","No"],d=new Map([[l[0],"True"],[l[1],"False"]]),e[8]=l,e[9]=d):(l=e[8],d=e[9]);const b=d;let r;e[10]!==N?(r=[...N],e[10]=N,e[11]=r):r=e[11];let a;e[12]!==x?(a=x.values(),e[12]=x,e[13]=a):a=e[13];let i;e[14]!==a?(i=[...a],e[14]=a,e[15]=i):i=e[15];let o;e[16]!==r||e[17]!==i?(o={availableYears:r,availableNrens:i},e[16]=r,e[17]=i,e[18]=o):o=e[18];let m;e[19]!==t||e[20]!==n||e[21]!==o?(m=v.jsx(w,{filterOptions:o,filterSelection:t,setFilterSelection:n,coloredYears:!0}),e[19]=t,e[20]=n,e[21]=o,e[22]=m):m=e[22];const S=m;let c;e[23]!==g?(c=v.jsx(C,{children:v.jsx(D,{columns:l,columnLookup:b,dataLookup:g})}),e[23]=g,e[24]=c):c=e[24];let u;return e[25]!==S||e[26]!==s||e[27]!==c?(u=v.jsx(P,{title:T["service-level-targets"],description:`The table below shows which NRENs offer Service Levels Targets for their services. If NRENs have never responded to this question in the survey, they are excluded. `,category:_.Policy,filter:S,data:s,filename:"service_level_targets",children:c}),e[25]=S,e[26]=s,e[27]=c,e[28]=u):u=e[28],u}export{A as default}; diff --git a/compendium_v2/static/ServiceManagementFramework-CsK8wuiB.js b/compendium_v2/static/ServiceManagementFramework-B5G4LhDr.js similarity index 81% rename from compendium_v2/static/ServiceManagementFramework-CsK8wuiB.js rename to compendium_v2/static/ServiceManagementFramework-B5G4LhDr.js index da8df5a51214eb8cbcd90412174c3d73c415a860..37a9d5d8a96a32ee332ae2a96a6d4a524a856641 100644 --- a/compendium_v2/static/ServiceManagementFramework-CsK8wuiB.js +++ b/compendium_v2/static/ServiceManagementFramework-B5G4LhDr.js @@ -1,2 +1,2 @@ -import{c as b,r as F,F as S,j as h,t as j,S as _}from"./index-CgRqQtHZ.js";import{u as y,g as E,D as P,F as C,f as D}from"./useData-CnR6ocTl.js";import{P as R}from"./PillTable-DC6FlsPO.js";import"./SideBar-Dgfa8b_s.js";import"./xlsx-BHRztzV8.js";import"./index-DgKDGaow.js";import"./hook-DDOSKqdF.js";import"./ColorPill-BRQzvq49.js";import"./Table-ggua9_yJ.js";function B(){const e=b.c(29),{filterSelection:t,setFilterSelection:c}=F.useContext(S),{data:v,years:N,nrens:w}=y("/api/service-management",c);let s,m;if(e[0]!==v||e[1]!==t.selectedNrens||e[2]!==t.selectedYears){let u;e[5]!==t.selectedNrens||e[6]!==t.selectedYears?(u=k=>t.selectedYears.includes(k.year)&&t.selectedNrens.includes(k.nren)&&k.service_management_framework!==null,e[5]=t.selectedNrens,e[6]=t.selectedYears,e[7]=u):u=e[7],s=v.filter(u),m=E(s,"service_management_framework"),e[0]=v,e[1]=t.selectedNrens,e[2]=t.selectedYears,e[3]=s,e[4]=m}else s=e[3],m=e[4];const g=m;let r,f;e[8]===Symbol.for("react.memo_cache_sentinel")?(r=["Yes","No"],f=new Map([[r[0],"True"],[r[1],"False"]]),e[8]=r,e[9]=f):(r=e[8],f=e[9]);const Y=f;let a;e[10]!==N?(a=[...N],e[10]=N,e[11]=a):a=e[11];let l;e[12]!==w?(l=w.values(),e[12]=w,e[13]=l):l=e[13];let i;e[14]!==l?(i=[...l],e[14]=l,e[15]=i):i=e[15];let o;e[16]!==a||e[17]!==i?(o={availableYears:a,availableNrens:i},e[16]=a,e[17]=i,e[18]=o):o=e[18];let p;e[19]!==t||e[20]!==c||e[21]!==o?(p=h.jsx(C,{filterOptions:o,filterSelection:t,setFilterSelection:c,coloredYears:!0}),e[19]=t,e[20]=c,e[21]=o,e[22]=p):p=e[22];const x=p;let n;e[23]!==g?(n=h.jsx(D,{children:h.jsx(R,{columns:r,columnLookup:Y,dataLookup:g})}),e[23]=g,e[24]=n):n=e[24];let d;return e[25]!==x||e[26]!==s||e[27]!==n?(d=h.jsx(P,{title:j["service-management-framework"],description:`The chart below shows which NRENs operate a formal service management framework +import{c as b,r as F,F as S,j as h,t as j,S as _}from"./index-DBbSOdjk.js";import{u as y,g as E,D as P,F as C,f as D}from"./useData-CcKTpALT.js";import{P as R}from"./PillTable-CIcKqQJh.js";import"./SideBar-DfD7Pj8p.js";import"./xlsx-BHRztzV8.js";import"./index-DkYuYqrz.js";import"./hook-D9Tuu5oJ.js";import"./ColorPill-CuYEYQ56.js";import"./Table-DNomfHX4.js";function B(){const e=b.c(29),{filterSelection:t,setFilterSelection:c}=F.useContext(S),{data:v,years:N,nrens:w}=y("/api/service-management",c);let s,m;if(e[0]!==v||e[1]!==t.selectedNrens||e[2]!==t.selectedYears){let u;e[5]!==t.selectedNrens||e[6]!==t.selectedYears?(u=k=>t.selectedYears.includes(k.year)&&t.selectedNrens.includes(k.nren)&&k.service_management_framework!==null,e[5]=t.selectedNrens,e[6]=t.selectedYears,e[7]=u):u=e[7],s=v.filter(u),m=E(s,"service_management_framework"),e[0]=v,e[1]=t.selectedNrens,e[2]=t.selectedYears,e[3]=s,e[4]=m}else s=e[3],m=e[4];const g=m;let r,f;e[8]===Symbol.for("react.memo_cache_sentinel")?(r=["Yes","No"],f=new Map([[r[0],"True"],[r[1],"False"]]),e[8]=r,e[9]=f):(r=e[8],f=e[9]);const Y=f;let a;e[10]!==N?(a=[...N],e[10]=N,e[11]=a):a=e[11];let l;e[12]!==w?(l=w.values(),e[12]=w,e[13]=l):l=e[13];let i;e[14]!==l?(i=[...l],e[14]=l,e[15]=i):i=e[15];let o;e[16]!==a||e[17]!==i?(o={availableYears:a,availableNrens:i},e[16]=a,e[17]=i,e[18]=o):o=e[18];let p;e[19]!==t||e[20]!==c||e[21]!==o?(p=h.jsx(C,{filterOptions:o,filterSelection:t,setFilterSelection:c,coloredYears:!0}),e[19]=t,e[20]=c,e[21]=o,e[22]=p):p=e[22];const x=p;let n;e[23]!==g?(n=h.jsx(D,{children:h.jsx(R,{columns:r,columnLookup:Y,dataLookup:g})}),e[23]=g,e[24]=n):n=e[24];let d;return e[25]!==x||e[26]!==s||e[27]!==n?(d=h.jsx(P,{title:j["service-management-framework"],description:`The chart below shows which NRENs operate a formal service management framework for all of their services. NRENs which have never answered this question cannot be selected.`,category:_.Policy,filter:x,data:s,filename:"service_management_framework",children:n}),e[25]=x,e[26]=s,e[27]=n,e[28]=d):d=e[28],d}export{B as default}; diff --git a/compendium_v2/static/Services-Bv2I_Kot.js b/compendium_v2/static/Services-2YDP1wpB.js similarity index 95% rename from compendium_v2/static/Services-Bv2I_Kot.js rename to compendium_v2/static/Services-2YDP1wpB.js index e72b82dde3d9a3f6e54520cf5994998960dad465..3999636b547f707c9f8f4002a3b4c6b57c977216 100644 --- a/compendium_v2/static/Services-Bv2I_Kot.js +++ b/compendium_v2/static/Services-2YDP1wpB.js @@ -1,4 +1,4 @@ -import{_ as se,c as U,j as s,r as ie,F as re,a0 as g,S as ae,t as N}from"./index-CgRqQtHZ.js";import{u as oe,g as le,F as ce,D as ne,f as de}from"./useData-CnR6ocTl.js";import{T as me}from"./Table-ggua9_yJ.js";import"./SideBar-Dgfa8b_s.js";import"./xlsx-BHRztzV8.js";import"./index-DgKDGaow.js";import"./hook-DDOSKqdF.js";function Q(v){return se({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{d:"m10 15.586-3.293-3.293-1.414 1.414L10 18.414l9.707-9.707-1.414-1.414z"},child:[]}]})(v)}function pe(v){const e=U.c(9),{year:i,active:t,serviceInfo:l,tickServiceIndex:u,current:a}=v;let r="No additional information available";if(l!==void 0){const x=l.service_name;let n=l.product_name,d=l.official_description,m=l.additional_information;(n!=""||d!=""||m!="")&&(n=n||"N/A",d=d||"N/A",m=m||"N/A",r=x+` +import{_ as se,c as U,j as s,r as ie,F as re,a0 as g,S as ae,t as N}from"./index-DBbSOdjk.js";import{u as oe,g as le,F as ce,D as ne,f as de}from"./useData-CcKTpALT.js";import{T as me}from"./Table-DNomfHX4.js";import"./SideBar-DfD7Pj8p.js";import"./xlsx-BHRztzV8.js";import"./index-DkYuYqrz.js";import"./hook-D9Tuu5oJ.js";function Q(v){return se({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{d:"m10 15.586-3.293-3.293-1.414 1.414L10 18.414l9.707-9.707-1.414-1.414z"},child:[]}]})(v)}function pe(v){const e=U.c(9),{year:i,active:t,serviceInfo:l,tickServiceIndex:u,current:a}=v;let r="No additional information available";if(l!==void 0){const x=l.service_name;let n=l.product_name,d=l.official_description,m=l.additional_information;(n!=""||d!=""||m!="")&&(n=n||"N/A",d=d||"N/A",m=m||"N/A",r=x+` `+n+` Description: `+d+` diff --git a/compendium_v2/static/ServicesOffered-DNJ8VoBZ.js b/compendium_v2/static/ServicesOffered-B_OBZM5I.js similarity index 86% rename from compendium_v2/static/ServicesOffered-DNJ8VoBZ.js rename to compendium_v2/static/ServicesOffered-B_OBZM5I.js index 1cd19dfdd84c0b6850c93ce3edba1337b7ca3fc1..1145e0915e64926c486f14baa446bb11e54438a3 100644 --- a/compendium_v2/static/ServicesOffered-DNJ8VoBZ.js +++ b/compendium_v2/static/ServicesOffered-B_OBZM5I.js @@ -1 +1 @@ -import{c as b,r as w,F as j,j as c,t as k,S as C,U as E}from"./index-CgRqQtHZ.js";import{u as Y,r as F,D as I,F as P,f as R}from"./useData-CnR6ocTl.js";import{S as D}from"./ScrollableMatrix-BVG39bM8.js";import"./SideBar-Dgfa8b_s.js";import"./xlsx-BHRztzV8.js";import"./index-DgKDGaow.js";import"./hook-DDOSKqdF.js";import"./Table-ggua9_yJ.js";function z(){const e=b.c(29),{filterSelection:t,setFilterSelection:n}=w.useContext(j),{data:h,years:g,nrens:v}=Y("/api/services-offered",n);let s,f;if(e[0]!==t.selectedNrens||e[1]!==t.selectedYears||e[2]!==h){let y;e[5]!==t.selectedNrens||e[6]!==t.selectedYears?(y=S=>t.selectedYears.includes(S.year)&&t.selectedNrens.includes(S.nren),e[5]=t.selectedNrens,e[6]=t.selectedYears,e[7]=y):y=e[7],s=h.filter(y),f=F(s,["service_category"],"user_category"),e[0]=t.selectedNrens,e[1]=t.selectedYears,e[2]=h,e[3]=s,e[4]=f}else s=e[3],f=e[4];const x=f;let r;e[8]!==g?(r=[...g],e[8]=g,e[9]=r):r=e[9];let i;e[10]!==v?(i=v.values(),e[10]=v,e[11]=i):i=e[11];let o;e[12]!==i?(o=[...i],e[12]=i,e[13]=o):o=e[13];let a;e[14]!==r||e[15]!==o?(a={availableYears:r,availableNrens:o},e[14]=r,e[15]=o,e[16]=a):a=e[16];let d;e[17]!==t||e[18]!==n||e[19]!==a?(d=c.jsx(P,{filterOptions:a,filterSelection:t,setFilterSelection:n}),e[17]=t,e[18]=n,e[19]=a,e[20]=d):d=e[20];const N=d;let p;e[21]===Symbol.for("react.memo_cache_sentinel")?(p={"Identity/T&I":"identity",Multimedia:"multimedia","Professional services":"professional_services","Network services":"network_services",Collaboration:"collaboration",Security:"security","Storage and Hosting":"storage_and_hosting","ISP support":"isp_support"},e[21]=p):p=e[21];const _=p;let u;e[22]===Symbol.for("react.memo_cache_sentinel")?(u=c.jsx("span",{children:"The table below shows the different types of users served by NRENs. Selecting the institution type will expand the detail to show the categories of services offered by NRENs, with a tick indicating that the NREN offers a specific category of service to the type of user."}),e[22]=u):u=e[22];let l;e[23]!==x?(l=c.jsx(R,{children:c.jsx(D,{dataLookup:x,rowInfo:_,categoryLookup:E,isTickIcon:!0})}),e[23]=x,e[24]=l):l=e[24];let m;return e[25]!==N||e[26]!==s||e[27]!==l?(m=c.jsx(I,{title:k["services-offered"],description:u,category:C.Policy,filter:N,data:s,filename:"nren_services_offered",children:l}),e[25]=N,e[26]=s,e[27]=l,e[28]=m):m=e[28],m}export{z as default}; +import{c as b,r as w,F as j,j as c,t as k,S as C,U as E}from"./index-DBbSOdjk.js";import{u as Y,r as F,D as I,F as P,f as R}from"./useData-CcKTpALT.js";import{S as D}from"./ScrollableMatrix-CNydABqZ.js";import"./SideBar-DfD7Pj8p.js";import"./xlsx-BHRztzV8.js";import"./index-DkYuYqrz.js";import"./hook-D9Tuu5oJ.js";import"./Table-DNomfHX4.js";function z(){const e=b.c(29),{filterSelection:t,setFilterSelection:n}=w.useContext(j),{data:h,years:g,nrens:v}=Y("/api/services-offered",n);let s,f;if(e[0]!==t.selectedNrens||e[1]!==t.selectedYears||e[2]!==h){let y;e[5]!==t.selectedNrens||e[6]!==t.selectedYears?(y=S=>t.selectedYears.includes(S.year)&&t.selectedNrens.includes(S.nren),e[5]=t.selectedNrens,e[6]=t.selectedYears,e[7]=y):y=e[7],s=h.filter(y),f=F(s,["service_category"],"user_category"),e[0]=t.selectedNrens,e[1]=t.selectedYears,e[2]=h,e[3]=s,e[4]=f}else s=e[3],f=e[4];const x=f;let r;e[8]!==g?(r=[...g],e[8]=g,e[9]=r):r=e[9];let i;e[10]!==v?(i=v.values(),e[10]=v,e[11]=i):i=e[11];let o;e[12]!==i?(o=[...i],e[12]=i,e[13]=o):o=e[13];let a;e[14]!==r||e[15]!==o?(a={availableYears:r,availableNrens:o},e[14]=r,e[15]=o,e[16]=a):a=e[16];let d;e[17]!==t||e[18]!==n||e[19]!==a?(d=c.jsx(P,{filterOptions:a,filterSelection:t,setFilterSelection:n}),e[17]=t,e[18]=n,e[19]=a,e[20]=d):d=e[20];const N=d;let p;e[21]===Symbol.for("react.memo_cache_sentinel")?(p={"Identity/T&I":"identity",Multimedia:"multimedia","Professional services":"professional_services","Network services":"network_services",Collaboration:"collaboration",Security:"security","Storage and Hosting":"storage_and_hosting","ISP support":"isp_support"},e[21]=p):p=e[21];const _=p;let u;e[22]===Symbol.for("react.memo_cache_sentinel")?(u=c.jsx("span",{children:"The table below shows the different types of users served by NRENs. Selecting the institution type will expand the detail to show the categories of services offered by NRENs, with a tick indicating that the NREN offers a specific category of service to the type of user."}),e[22]=u):u=e[22];let l;e[23]!==x?(l=c.jsx(R,{children:c.jsx(D,{dataLookup:x,rowInfo:_,categoryLookup:E,isTickIcon:!0})}),e[23]=x,e[24]=l):l=e[24];let m;return e[25]!==N||e[26]!==s||e[27]!==l?(m=c.jsx(I,{title:k["services-offered"],description:u,category:C.Policy,filter:N,data:s,filename:"nren_services_offered",children:l}),e[25]=N,e[26]=s,e[27]=l,e[28]=m):m=e[28],m}export{z as default}; diff --git a/compendium_v2/static/SideBar-Dgfa8b_s.js b/compendium_v2/static/SideBar-DfD7Pj8p.js similarity index 95% rename from compendium_v2/static/SideBar-Dgfa8b_s.js rename to compendium_v2/static/SideBar-DfD7Pj8p.js index 633616b2a71c93e54378473b3e715d2dc4e6c3b7..251e7fd45ca0a7d30507b01fd3a0d9ce77441412 100644 --- a/compendium_v2/static/SideBar-Dgfa8b_s.js +++ b/compendium_v2/static/SideBar-DfD7Pj8p.js @@ -1 +1 @@ -import{c as N,r as y,j as t,Y as S,Z as k}from"./index-CgRqQtHZ.js";const _=E=>{const e=N.c(23),{children:x,survey:m}=E,[s,b]=y.useState(!1);let d;e[0]!==s?(d=a=>{a.stopPropagation(),a.preventDefault(),b(!s)},e[0]=s,e[1]=d):d=e[1];const l=d;let f;e[2]===Symbol.for("react.memo_cache_sentinel")?(f=a=>{a.target.closest("#sidebar")||a.target.closest(".toggle-btn")||b(!1)},e[2]=f):f=e[2];const j=f;let p;e[3]===Symbol.for("react.memo_cache_sentinel")?(p=()=>(document.addEventListener("click",j),()=>{document.removeEventListener("click",j)}),e[3]=p):p=e[3],y.useEffect(p);let i;e[4]!==s||e[5]!==m?(i=[],s||i.push("no-sidebar"),m&&i.push("survey"),e[4]=s,e[5]=m,e[6]=i):i=e[6];const g=i.join(" ");let o;e[7]!==x?(o=t.jsx("div",{className:"menu-items",children:x}),e[7]=x,e[8]=o):o=e[8];let c;e[9]!==g||e[10]!==o?(c=t.jsx("nav",{className:g,id:"sidebar",children:o}),e[9]=g,e[10]=o,e[11]=c):c=e[11];const v=`toggle-btn${m?"-survey":""}`;let u;e[12]===Symbol.for("react.memo_cache_sentinel")?(u=t.jsx("span",{children:"MENU"}),e[12]=u):u=e[12];let n;e[13]!==s||e[14]!==l?(n=t.jsxs("div",{className:"toggle-btn-wrapper",children:[u," ",s?t.jsx(S,{style:{color:"white",paddingBottom:"3px",scale:"1.3"},onClick:l}):t.jsx(k,{style:{color:"white",paddingBottom:"3px",scale:"1.3"},onClick:l})]}),e[13]=s,e[14]=l,e[15]=n):n=e[15];let r;e[16]!==v||e[17]!==n||e[18]!==l?(r=t.jsx("div",{className:v,onClick:l,children:n}),e[16]=v,e[17]=n,e[18]=l,e[19]=r):r=e[19];let h;return e[20]!==r||e[21]!==c?(h=t.jsxs("div",{className:"sidebar-wrapper",children:[c,r]}),e[20]=r,e[21]=c,e[22]=h):h=e[22],h};export{_ as S}; +import{c as N,r as y,j as t,Y as S,Z as k}from"./index-DBbSOdjk.js";const _=E=>{const e=N.c(23),{children:x,survey:m}=E,[s,b]=y.useState(!1);let d;e[0]!==s?(d=a=>{a.stopPropagation(),a.preventDefault(),b(!s)},e[0]=s,e[1]=d):d=e[1];const l=d;let f;e[2]===Symbol.for("react.memo_cache_sentinel")?(f=a=>{a.target.closest("#sidebar")||a.target.closest(".toggle-btn")||b(!1)},e[2]=f):f=e[2];const j=f;let p;e[3]===Symbol.for("react.memo_cache_sentinel")?(p=()=>(document.addEventListener("click",j),()=>{document.removeEventListener("click",j)}),e[3]=p):p=e[3],y.useEffect(p);let i;e[4]!==s||e[5]!==m?(i=[],s||i.push("no-sidebar"),m&&i.push("survey"),e[4]=s,e[5]=m,e[6]=i):i=e[6];const g=i.join(" ");let o;e[7]!==x?(o=t.jsx("div",{className:"menu-items",children:x}),e[7]=x,e[8]=o):o=e[8];let c;e[9]!==g||e[10]!==o?(c=t.jsx("nav",{className:g,id:"sidebar",children:o}),e[9]=g,e[10]=o,e[11]=c):c=e[11];const v=`toggle-btn${m?"-survey":""}`;let u;e[12]===Symbol.for("react.memo_cache_sentinel")?(u=t.jsx("span",{children:"MENU"}),e[12]=u):u=e[12];let n;e[13]!==s||e[14]!==l?(n=t.jsxs("div",{className:"toggle-btn-wrapper",children:[u," ",s?t.jsx(S,{style:{color:"white",paddingBottom:"3px",scale:"1.3"},onClick:l}):t.jsx(k,{style:{color:"white",paddingBottom:"3px",scale:"1.3"},onClick:l})]}),e[13]=s,e[14]=l,e[15]=n):n=e[15];let r;e[16]!==v||e[17]!==n||e[18]!==l?(r=t.jsx("div",{className:v,onClick:l,children:n}),e[16]=v,e[17]=n,e[18]=l,e[19]=r):r=e[19];let h;return e[20]!==r||e[21]!==c?(h=t.jsxs("div",{className:"sidebar-wrapper",children:[c,r]}),e[20]=r,e[21]=c,e[22]=h):h=e[22],h};export{_ as S}; diff --git a/compendium_v2/static/SiemVendors-mvP4OqWO.js b/compendium_v2/static/SiemVendors-BCpq8Hqq.js similarity index 79% rename from compendium_v2/static/SiemVendors-mvP4OqWO.js rename to compendium_v2/static/SiemVendors-BCpq8Hqq.js index dab79a5f0776aa192eebe0cc66a5ea8c65b3864b..982b059d5b2e88ac74619812eec7e672dae6f459 100644 --- a/compendium_v2/static/SiemVendors-mvP4OqWO.js +++ b/compendium_v2/static/SiemVendors-BCpq8Hqq.js @@ -1 +1 @@ -import{c as Y,r as j,F as E,j as u,t as _,S as g}from"./index-CgRqQtHZ.js";import{u as k,g as C,D as F,F as D,f as P}from"./useData-CnR6ocTl.js";import{P as R}from"./PillTable-DC6FlsPO.js";import"./SideBar-Dgfa8b_s.js";import"./xlsx-BHRztzV8.js";import"./index-DgKDGaow.js";import"./hook-DDOSKqdF.js";import"./ColorPill-BRQzvq49.js";import"./Table-ggua9_yJ.js";function $(){const e=Y.c(28),{filterSelection:t,setFilterSelection:n}=j.useContext(E),{data:x,years:N,nrens:S}=k("/api/siem-vendors",n);let s,c;if(e[0]!==x||e[1]!==t.selectedNrens||e[2]!==t.selectedYears){let p;e[5]!==t.selectedNrens||e[6]!==t.selectedYears?(p=v=>t.selectedYears.includes(v.year)&&t.selectedNrens.includes(v.nren),e[5]=t.selectedNrens,e[6]=t.selectedYears,e[7]=p):p=e[7],s=x.filter(p),c=C(s,"vendor_names"),e[0]=x,e[1]=t.selectedNrens,e[2]=t.selectedYears,e[3]=s,e[4]=c}else s=e[3],c=e[4];const b=c;let r;e[8]!==N?(r=[...N],e[8]=N,e[9]=r):r=e[9];let l;e[10]!==S?(l=S.values(),e[10]=S,e[11]=l):l=e[11];let a;e[12]!==l?(a=[...l],e[12]=l,e[13]=a):a=e[13];let i;e[14]!==r||e[15]!==a?(i={availableYears:r,availableNrens:a},e[14]=r,e[15]=a,e[16]=i):i=e[16];let d;e[17]!==t||e[18]!==n||e[19]!==i?(d=u.jsx(D,{filterOptions:i,filterSelection:t,setFilterSelection:n,coloredYears:!0}),e[17]=t,e[18]=n,e[19]=i,e[20]=d):d=e[20];const h=d;let m;e[21]===Symbol.for("react.memo_cache_sentinel")?(m=["Splunk","IBM Qradar","Exabeam","LogRythm","Securonix"],e[21]=m):m=e[21];const y=m;let o;e[22]!==b?(o=u.jsx(P,{children:u.jsx(R,{columns:y,dataLookup:b,circle:!0})}),e[22]=b,e[23]=o):o=e[23];let f;return e[24]!==h||e[25]!==s||e[26]!==o?(f=u.jsx(F,{title:_["siem-vendors"],description:"The table below shows the kinds of vendors of SIEM/SOC systems used by NRENs.",category:g.Network,filter:h,data:s,filename:"siem_vendor_nrens_per_year",children:o}),e[24]=h,e[25]=s,e[26]=o,e[27]=f):f=e[27],f}export{$ as default}; +import{c as Y,r as j,F as E,j as u,t as _,S as g}from"./index-DBbSOdjk.js";import{u as k,g as C,D as F,F as D,f as P}from"./useData-CcKTpALT.js";import{P as R}from"./PillTable-CIcKqQJh.js";import"./SideBar-DfD7Pj8p.js";import"./xlsx-BHRztzV8.js";import"./index-DkYuYqrz.js";import"./hook-D9Tuu5oJ.js";import"./ColorPill-CuYEYQ56.js";import"./Table-DNomfHX4.js";function $(){const e=Y.c(28),{filterSelection:t,setFilterSelection:n}=j.useContext(E),{data:x,years:N,nrens:S}=k("/api/siem-vendors",n);let s,c;if(e[0]!==x||e[1]!==t.selectedNrens||e[2]!==t.selectedYears){let p;e[5]!==t.selectedNrens||e[6]!==t.selectedYears?(p=v=>t.selectedYears.includes(v.year)&&t.selectedNrens.includes(v.nren),e[5]=t.selectedNrens,e[6]=t.selectedYears,e[7]=p):p=e[7],s=x.filter(p),c=C(s,"vendor_names"),e[0]=x,e[1]=t.selectedNrens,e[2]=t.selectedYears,e[3]=s,e[4]=c}else s=e[3],c=e[4];const b=c;let r;e[8]!==N?(r=[...N],e[8]=N,e[9]=r):r=e[9];let l;e[10]!==S?(l=S.values(),e[10]=S,e[11]=l):l=e[11];let a;e[12]!==l?(a=[...l],e[12]=l,e[13]=a):a=e[13];let i;e[14]!==r||e[15]!==a?(i={availableYears:r,availableNrens:a},e[14]=r,e[15]=a,e[16]=i):i=e[16];let d;e[17]!==t||e[18]!==n||e[19]!==i?(d=u.jsx(D,{filterOptions:i,filterSelection:t,setFilterSelection:n,coloredYears:!0}),e[17]=t,e[18]=n,e[19]=i,e[20]=d):d=e[20];const h=d;let m;e[21]===Symbol.for("react.memo_cache_sentinel")?(m=["Splunk","IBM Qradar","Exabeam","LogRythm","Securonix"],e[21]=m):m=e[21];const y=m;let o;e[22]!==b?(o=u.jsx(P,{children:u.jsx(R,{columns:y,dataLookup:b,circle:!0})}),e[22]=b,e[23]=o):o=e[23];let f;return e[24]!==h||e[25]!==s||e[26]!==o?(f=u.jsx(F,{title:_["siem-vendors"],description:"The table below shows the kinds of vendors of SIEM/SOC systems used by NRENs.",category:g.Network,filter:h,data:s,filename:"siem_vendor_nrens_per_year",children:o}),e[24]=h,e[25]=s,e[26]=o,e[27]=f):f=e[27],f}export{$ as default}; diff --git a/compendium_v2/static/StaffGraph-CHHV0_ir.js b/compendium_v2/static/StaffGraph-BhGKlAbH.js similarity index 89% rename from compendium_v2/static/StaffGraph-CHHV0_ir.js rename to compendium_v2/static/StaffGraph-BhGKlAbH.js index 3e8ce4603082441f83dae1180a92062ade8d977a..7ba06cbca00f690e994fcb28b074c19f7387fa3f 100644 --- a/compendium_v2/static/StaffGraph-CHHV0_ir.js +++ b/compendium_v2/static/StaffGraph-BhGKlAbH.js @@ -1,4 +1,4 @@ -import{c as $,r as B,F as A,j as x,S as M,t as R}from"./index-CgRqQtHZ.js";import{B as P}from"./index-BMzrLxRb.js";import{C as g,a as q,L as W,B as G,p as V,c as z,d as H,u as J,l as K,D as Q,F as U}from"./useData-CnR6ocTl.js";import{h as X,W as Z}from"./HTMLLegendPlugin-Dd1EPe9c.js";import"./SideBar-Dgfa8b_s.js";import"./xlsx-BHRztzV8.js";import"./index-DgKDGaow.js";import"./hook-DDOSKqdF.js";g.register(q,W,G,V,z,H);const I={maintainAspectRatio:!1,animation:{duration:0},plugins:{htmlLegend:{containerIDs:["legendtop","legendbottom"]},legend:{display:!1},tooltip:{callbacks:{label:function(t){let e=t.dataset.label||"";return t.parsed.x!==null&&(e+=`: ${t.parsed.x}%`),e}}}},scales:{x:{position:"top",stacked:!0,ticks:{callback:(t,e)=>`${e*10}%`}},x2:{ticks:{callback:t=>typeof t=="number"?`${t}%`:t},grid:{drawOnChartArea:!1},afterDataLimits:function(t){const e=Object.keys(g.instances);let r=-999999,s=999999;for(const n of e)g.instances[n]&&t.chart.scales.x2&&(s=Math.min(g.instances[n].scales.x.min,s),r=Math.max(g.instances[n].scales.x.max,r));t.chart.scales.x2.options.min=s,t.chart.scales.x2.options.max=r,t.chart.scales.x2.min=s,t.chart.scales.x2.max=r}},y:{stacked:!0,ticks:{autoSkip:!1}}},indexAxis:"y"};function ce(t){const e=$.c(39),{roles:r}=t,s=r===void 0?!1:r;let n;e[0]!==s?(n=function(i){return s&&i.technical_fte>0&&i.non_technical_fte>0||!s&&i.permanent_fte>0&&i.subcontracted_fte>0},e[0]=s,e[1]=n):n=e[1];const Y=n,{filterSelection:a,setFilterSelection:y}=B.useContext(A),{data:k,years:S,nrens:w}=J("/api/staff",y,Y);let l,b;if(e[2]!==k||e[3]!==a.selectedNrens||e[4]!==a.selectedYears||e[5]!==s){let u;e[8]!==a.selectedNrens||e[9]!==a.selectedYears?(u=i=>a.selectedYears.includes(i.year)&&a.selectedNrens.includes(i.nren),e[8]=a.selectedNrens,e[9]=a.selectedYears,e[10]=u):u=e[10],l=k.filter(u),b=K(l,s,a.selectedYears[0]),e[2]=k,e[3]=a.selectedNrens,e[4]=a.selectedYears,e[5]=s,e[6]=l,e[7]=b}else l=e[6],b=e[7];const F=b;let c;e[11]!==S?(c=[...S],e[11]=S,e[12]=c):c=e[12];let o;e[13]!==w?(o=w.values(),e[13]=w,e[14]=o):o=e[14];let f;e[15]!==o?(f=[...o],e[15]=o,e[16]=f):f=e[16];let d;e[17]!==c||e[18]!==f?(d={availableYears:c,availableNrens:f},e[17]=c,e[18]=f,e[19]=d):d=e[19];let N;e[20]!==a||e[21]!==y||e[22]!==d?(N=x.jsx(U,{max1year:!0,filterOptions:d,filterSelection:a,setFilterSelection:y}),e[20]=a,e[21]=y,e[22]=d,e[23]=N):N=e[23];const T=N,L=l.length,O=Math.max(L*1.5,20),v=s?R.roles:R.employment,C=s?`The graph shows division of staff FTEs (Full Time Equivalents) between technical and non-techical role per NREN. +import{c as $,r as B,F as A,j as x,S as M,t as R}from"./index-DBbSOdjk.js";import{B as P}from"./index-DyJczNpq.js";import{C as g,a as q,L as W,B as G,p as V,c as z,d as H,u as J,l as K,D as Q,F as U}from"./useData-CcKTpALT.js";import{h as X,W as Z}from"./HTMLLegendPlugin-Ci0zt1Jy.js";import"./SideBar-DfD7Pj8p.js";import"./xlsx-BHRztzV8.js";import"./index-DkYuYqrz.js";import"./hook-D9Tuu5oJ.js";g.register(q,W,G,V,z,H);const I={maintainAspectRatio:!1,animation:{duration:0},plugins:{htmlLegend:{containerIDs:["legendtop","legendbottom"]},legend:{display:!1},tooltip:{callbacks:{label:function(t){let e=t.dataset.label||"";return t.parsed.x!==null&&(e+=`: ${t.parsed.x}%`),e}}}},scales:{x:{position:"top",stacked:!0,ticks:{callback:(t,e)=>`${e*10}%`}},x2:{ticks:{callback:t=>typeof t=="number"?`${t}%`:t},grid:{drawOnChartArea:!1},afterDataLimits:function(t){const e=Object.keys(g.instances);let r=-999999,s=999999;for(const n of e)g.instances[n]&&t.chart.scales.x2&&(s=Math.min(g.instances[n].scales.x.min,s),r=Math.max(g.instances[n].scales.x.max,r));t.chart.scales.x2.options.min=s,t.chart.scales.x2.options.max=r,t.chart.scales.x2.min=s,t.chart.scales.x2.max=r}},y:{stacked:!0,ticks:{autoSkip:!1}}},indexAxis:"y"};function ce(t){const e=$.c(39),{roles:r}=t,s=r===void 0?!1:r;let n;e[0]!==s?(n=function(i){return s&&i.technical_fte>0&&i.non_technical_fte>0||!s&&i.permanent_fte>0&&i.subcontracted_fte>0},e[0]=s,e[1]=n):n=e[1];const Y=n,{filterSelection:a,setFilterSelection:y}=B.useContext(A),{data:k,years:S,nrens:w}=J("/api/staff",y,Y);let l,b;if(e[2]!==k||e[3]!==a.selectedNrens||e[4]!==a.selectedYears||e[5]!==s){let u;e[8]!==a.selectedNrens||e[9]!==a.selectedYears?(u=i=>a.selectedYears.includes(i.year)&&a.selectedNrens.includes(i.nren),e[8]=a.selectedNrens,e[9]=a.selectedYears,e[10]=u):u=e[10],l=k.filter(u),b=K(l,s,a.selectedYears[0]),e[2]=k,e[3]=a.selectedNrens,e[4]=a.selectedYears,e[5]=s,e[6]=l,e[7]=b}else l=e[6],b=e[7];const F=b;let c;e[11]!==S?(c=[...S],e[11]=S,e[12]=c):c=e[12];let o;e[13]!==w?(o=w.values(),e[13]=w,e[14]=o):o=e[14];let f;e[15]!==o?(f=[...o],e[15]=o,e[16]=f):f=e[16];let d;e[17]!==c||e[18]!==f?(d={availableYears:c,availableNrens:f},e[17]=c,e[18]=f,e[19]=d):d=e[19];let N;e[20]!==a||e[21]!==y||e[22]!==d?(N=x.jsx(U,{max1year:!0,filterOptions:d,filterSelection:a,setFilterSelection:y}),e[20]=a,e[21]=y,e[22]=d,e[23]=N):N=e[23];const T=N,L=l.length,O=Math.max(L*1.5,20),v=s?R.roles:R.employment,C=s?`The graph shows division of staff FTEs (Full Time Equivalents) between technical and non-techical role per NREN. The exact figures of how many FTEs are dedicated to these two different functional areas can be accessed by downloading the data in either CSV or Excel format`:`The graph shows the percentage of NREN staff who are permanent, and those who are subcontracted. The structures and models of NRENs differ across the community, which is reflected in the types of employment offered. The NRENs are asked to provide the Full Time Equivalents (FTEs) rather absolute numbers of staff.`,j=s?"roles_of_nren_employees":"types_of_employment_for_nrens",D=`${O}rem`;let m;e[24]!==D?(m={height:D},e[24]=D,e[25]=m):m=e[25];let _;e[26]===Symbol.for("react.memo_cache_sentinel")?(_=[X],e[26]=_):_=e[26];let h;e[27]!==F?(h=x.jsx(P,{data:F,options:I,plugins:_}),e[27]=F,e[28]=h):h=e[28];let p;e[29]!==m||e[30]!==h?(p=x.jsx(Z,{children:x.jsx("div",{className:"chart-container",style:m,children:h})}),e[29]=m,e[30]=h,e[31]=p):p=e[31];let E;return e[32]!==C||e[33]!==j||e[34]!==T||e[35]!==l||e[36]!==p||e[37]!==v?(E=x.jsx(Q,{title:v,description:C,category:M.Organisation,filter:T,data:l,filename:j,children:p}),e[32]=C,e[33]=j,e[34]=T,e[35]=l,e[36]=p,e[37]=v,e[38]=E):E=e[38],E}export{ce as default}; diff --git a/compendium_v2/static/StaffGraphAbsolute-D7nFen-z.js b/compendium_v2/static/StaffGraphAbsolute-DYsL_bJE.js similarity index 86% rename from compendium_v2/static/StaffGraphAbsolute-D7nFen-z.js rename to compendium_v2/static/StaffGraphAbsolute-DYsL_bJE.js index 77f71b8f1ff01706394326a42673dc64c62f9713..e10d8c9125551481d1579bbb0347dd45c27d8642 100644 --- a/compendium_v2/static/StaffGraphAbsolute-D7nFen-z.js +++ b/compendium_v2/static/StaffGraphAbsolute-DYsL_bJE.js @@ -1 +1 @@ -import{c as D,r as Y,F as B,j as d,S as T,t as P}from"./index-CgRqQtHZ.js";import{B as A}from"./index-BMzrLxRb.js";import{C as O,a as q,L,B as $,p as k,c as G,d as M,u as W,m as z,D as H,F as I,f as J}from"./useData-CnR6ocTl.js";import{p as K}from"./chartjs-plugin-datalabels.esm-B3Gf8X6A.js";import{a as Q}from"./charthelpers-D_bh9y-E.js";import"./SideBar-Dgfa8b_s.js";import"./xlsx-BHRztzV8.js";import"./index-DgKDGaow.js";import"./hook-DDOSKqdF.js";O.register(q,L,$,k,G,M);function re(){const e=D.c(38),{filterSelection:t,setFilterSelection:a}=Y.useContext(B),{data:b,years:p,nrens:u}=W("/api/staff",a);let i,n,s,g;if(e[0]!==b||e[1]!==t||e[2]!==u||e[3]!==a||e[4]!==p){let E;e[9]!==t.selectedNrens||e[10]!==t.selectedYears?(E=v=>t.selectedYears.includes(v.year)&&t.selectedNrens.includes(v.nren),e[9]=t.selectedNrens,e[10]=t.selectedYears,e[11]=E):E=e[11],s=b.filter(E),n=z(s,t.selectedYears);let c;e[12]!==p?(c=[...p],e[12]=p,e[13]=c):c=e[13];let f;e[14]!==u?(f=u.values(),e[14]=u,e[15]=f):f=e[15];let m;e[16]!==f?(m=[...f],e[16]=f,e[17]=m):m=e[17];let h;e[18]!==c||e[19]!==m?(h={availableYears:c,availableNrens:m},e[18]=c,e[19]=m,e[20]=h):h=e[20];let S;e[21]!==t||e[22]!==a||e[23]!==h?(S=d.jsx(I,{filterOptions:h,filterSelection:t,setFilterSelection:a}),e[21]=t,e[22]=a,e[23]=h,e[24]=S):S=e[24],i=S,g=Array.from(new Set(s.map(U))),e[0]=b,e[1]=t,e[2]=u,e[3]=a,e[4]=p,e[5]=i,e[6]=n,e[7]=s,e[8]=g}else i=e[5],n=e[6],s=e[7],g=e[8];const R=g.length,w=Math.max(R*t.selectedYears.length*1.5+5,50),C=P["employee-count"],F='The graph shows the total number of employees (in FTEs) at each NREN. When filling in the survey, NRENs are asked about the number of staff engaged (whether permanent or subcontracted) in NREN activities. Please note that diversity within the NREN community means that there is not one single definition of what constitutes "NREN activities". Therefore due to differences in how their organisations are arranged, and the relationship, in some cases, with parent organisations, there can be inconsistencies in how NRENs approach this question.';let N;e[25]===Symbol.for("react.memo_cache_sentinel")?(N=Q({tooltipPrefix:"FTEs",title:"Full-Time Equivalents"}),e[25]=N):N=e[25];const j=N,_=`${w}rem`;let r;e[26]!==_?(r={height:_},e[26]=_,e[27]=r):r=e[27];let x;e[28]===Symbol.for("react.memo_cache_sentinel")?(x=[K],e[28]=x):x=e[28];let l;e[29]!==n?(l=d.jsx(A,{data:n,options:j,plugins:x}),e[29]=n,e[30]=l):l=e[30];let o;e[31]!==r||e[32]!==l?(o=d.jsx(J,{children:d.jsx("div",{className:"chart-container",style:r,children:l})}),e[31]=r,e[32]=l,e[33]=o):o=e[33];let y;return e[34]!==i||e[35]!==s||e[36]!==o?(y=d.jsx(H,{title:C,description:F,category:T.Organisation,filter:i,data:s,filename:"number_of_nren_employees",children:o}),e[34]=i,e[35]=s,e[36]=o,e[37]=y):y=e[37],y}function U(e){return e.nren}export{re as default}; +import{c as D,r as Y,F as B,j as d,S as T,t as P}from"./index-DBbSOdjk.js";import{B as A}from"./index-DyJczNpq.js";import{C as O,a as q,L,B as $,p as k,c as G,d as M,u as W,m as z,D as H,F as I,f as J}from"./useData-CcKTpALT.js";import{p as K}from"./chartjs-plugin-datalabels.esm-C6J4S2ma.js";import{a as Q}from"./charthelpers-CHBq5wBZ.js";import"./SideBar-DfD7Pj8p.js";import"./xlsx-BHRztzV8.js";import"./index-DkYuYqrz.js";import"./hook-D9Tuu5oJ.js";O.register(q,L,$,k,G,M);function re(){const e=D.c(38),{filterSelection:t,setFilterSelection:a}=Y.useContext(B),{data:b,years:p,nrens:u}=W("/api/staff",a);let i,n,s,g;if(e[0]!==b||e[1]!==t||e[2]!==u||e[3]!==a||e[4]!==p){let E;e[9]!==t.selectedNrens||e[10]!==t.selectedYears?(E=v=>t.selectedYears.includes(v.year)&&t.selectedNrens.includes(v.nren),e[9]=t.selectedNrens,e[10]=t.selectedYears,e[11]=E):E=e[11],s=b.filter(E),n=z(s,t.selectedYears);let c;e[12]!==p?(c=[...p],e[12]=p,e[13]=c):c=e[13];let f;e[14]!==u?(f=u.values(),e[14]=u,e[15]=f):f=e[15];let m;e[16]!==f?(m=[...f],e[16]=f,e[17]=m):m=e[17];let h;e[18]!==c||e[19]!==m?(h={availableYears:c,availableNrens:m},e[18]=c,e[19]=m,e[20]=h):h=e[20];let S;e[21]!==t||e[22]!==a||e[23]!==h?(S=d.jsx(I,{filterOptions:h,filterSelection:t,setFilterSelection:a}),e[21]=t,e[22]=a,e[23]=h,e[24]=S):S=e[24],i=S,g=Array.from(new Set(s.map(U))),e[0]=b,e[1]=t,e[2]=u,e[3]=a,e[4]=p,e[5]=i,e[6]=n,e[7]=s,e[8]=g}else i=e[5],n=e[6],s=e[7],g=e[8];const R=g.length,w=Math.max(R*t.selectedYears.length*1.5+5,50),C=P["employee-count"],F='The graph shows the total number of employees (in FTEs) at each NREN. When filling in the survey, NRENs are asked about the number of staff engaged (whether permanent or subcontracted) in NREN activities. Please note that diversity within the NREN community means that there is not one single definition of what constitutes "NREN activities". Therefore due to differences in how their organisations are arranged, and the relationship, in some cases, with parent organisations, there can be inconsistencies in how NRENs approach this question.';let N;e[25]===Symbol.for("react.memo_cache_sentinel")?(N=Q({tooltipPrefix:"FTEs",title:"Full-Time Equivalents"}),e[25]=N):N=e[25];const j=N,_=`${w}rem`;let r;e[26]!==_?(r={height:_},e[26]=_,e[27]=r):r=e[27];let x;e[28]===Symbol.for("react.memo_cache_sentinel")?(x=[K],e[28]=x):x=e[28];let l;e[29]!==n?(l=d.jsx(A,{data:n,options:j,plugins:x}),e[29]=n,e[30]=l):l=e[30];let o;e[31]!==r||e[32]!==l?(o=d.jsx(J,{children:d.jsx("div",{className:"chart-container",style:r,children:l})}),e[31]=r,e[32]=l,e[33]=o):o=e[33];let y;return e[34]!==i||e[35]!==s||e[36]!==o?(y=d.jsx(H,{title:C,description:F,category:T.Organisation,filter:i,data:s,filename:"number_of_nren_employees",children:o}),e[34]=i,e[35]=s,e[36]=o,e[37]=y):y=e[37],y}function U(e){return e.nren}export{re as default}; diff --git a/compendium_v2/static/SubOrganisation-ZY5wEKVP.js b/compendium_v2/static/SubOrganisation-Csf8sqHo.js similarity index 80% rename from compendium_v2/static/SubOrganisation-ZY5wEKVP.js rename to compendium_v2/static/SubOrganisation-Csf8sqHo.js index fe199ed5cc13de83040032f92e8ea84571951da4..9273fba9cce8961f7e8735b84a6e50fb8ae127d1 100644 --- a/compendium_v2/static/SubOrganisation-ZY5wEKVP.js +++ b/compendium_v2/static/SubOrganisation-Csf8sqHo.js @@ -1 +1 @@ -import{c as Y,r as y,F as C,j as p,t as S,S as j}from"./index-CgRqQtHZ.js";import{u as v,h as F,i as E,D as R,F as T,f as O}from"./useData-CnR6ocTl.js";import{N as P}from"./NrenYearTable-Q6UAdf8a.js";import"./SideBar-Dgfa8b_s.js";import"./xlsx-BHRztzV8.js";import"./index-DgKDGaow.js";import"./hook-DDOSKqdF.js";import"./Table-ggua9_yJ.js";function A(){const e=Y.c(27),{filterSelection:t,setFilterSelection:s}=y.useContext(C),{data:r,years:g,nrens:h}=v("/api/sub-organizations",s);let a,d;if(e[0]!==r||e[1]!==t.selectedNrens||e[2]!==t.selectedYears){let u;e[5]!==t.selectedNrens||e[6]!==t.selectedYears?(u=b=>t.selectedYears.includes(b.year)&&t.selectedNrens.includes(b.nren),e[5]=t.selectedNrens,e[6]=t.selectedYears,e[7]=u):u=e[7],a=r.filter(u);const D=F(a);d=E(D,$),e[0]=r,e[1]=t.selectedNrens,e[2]=t.selectedYears,e[3]=a,e[4]=d}else a=e[3],d=e[4];const x=d;let n;e[8]!==g?(n=[...g],e[8]=g,e[9]=n):n=e[9];let o;e[10]!==h?(o=h.values(),e[10]=h,e[11]=o):o=e[11];let i;e[12]!==o?(i=[...o],e[12]=o,e[13]=i):i=e[13];let l;e[14]!==n||e[15]!==i?(l={availableYears:n,availableNrens:i},e[14]=n,e[15]=i,e[16]=l):l=e[16];let f;e[17]!==t||e[18]!==s||e[19]!==l?(f=p.jsx(T,{filterOptions:l,filterSelection:t,setFilterSelection:s}),e[17]=t,e[18]=s,e[19]=l,e[20]=f):f=e[20];const N=f;let c;e[21]!==x?(c=p.jsx(O,{children:p.jsx(P,{data:x,columnTitle:"Suborganisation and Role",dottedBorder:!0})}),e[21]=x,e[22]=c):c=e[22];let m;return e[23]!==N||e[24]!==a||e[25]!==c?(m=p.jsx(R,{title:S.suborganisations,description:"NRENs are asked whether they have any sub-organisations, and to give the name and role of these organisations. These organisations can include HPC centres or IDC federations, amongst many others.",category:j.Organisation,filter:N,data:a,filename:"nren_suborganisations",children:c}),e[23]=N,e[24]=a,e[25]=c,e[26]=m):m=e[26],m}function $(e,t){for(const s of t.sort(k)){const r=`${s.name} (${s.role})`;e[r]=r}}function k(e,t){return e.name.localeCompare(t.name)}export{A as default}; +import{c as Y,r as y,F as C,j as p,t as S,S as j}from"./index-DBbSOdjk.js";import{u as v,h as F,i as E,D as R,F as T,f as O}from"./useData-CcKTpALT.js";import{N as P}from"./NrenYearTable-C1JRhqy_.js";import"./SideBar-DfD7Pj8p.js";import"./xlsx-BHRztzV8.js";import"./index-DkYuYqrz.js";import"./hook-D9Tuu5oJ.js";import"./Table-DNomfHX4.js";function A(){const e=Y.c(27),{filterSelection:t,setFilterSelection:s}=y.useContext(C),{data:r,years:g,nrens:h}=v("/api/sub-organizations",s);let a,d;if(e[0]!==r||e[1]!==t.selectedNrens||e[2]!==t.selectedYears){let u;e[5]!==t.selectedNrens||e[6]!==t.selectedYears?(u=b=>t.selectedYears.includes(b.year)&&t.selectedNrens.includes(b.nren),e[5]=t.selectedNrens,e[6]=t.selectedYears,e[7]=u):u=e[7],a=r.filter(u);const D=F(a);d=E(D,$),e[0]=r,e[1]=t.selectedNrens,e[2]=t.selectedYears,e[3]=a,e[4]=d}else a=e[3],d=e[4];const x=d;let n;e[8]!==g?(n=[...g],e[8]=g,e[9]=n):n=e[9];let o;e[10]!==h?(o=h.values(),e[10]=h,e[11]=o):o=e[11];let i;e[12]!==o?(i=[...o],e[12]=o,e[13]=i):i=e[13];let l;e[14]!==n||e[15]!==i?(l={availableYears:n,availableNrens:i},e[14]=n,e[15]=i,e[16]=l):l=e[16];let f;e[17]!==t||e[18]!==s||e[19]!==l?(f=p.jsx(T,{filterOptions:l,filterSelection:t,setFilterSelection:s}),e[17]=t,e[18]=s,e[19]=l,e[20]=f):f=e[20];const N=f;let c;e[21]!==x?(c=p.jsx(O,{children:p.jsx(P,{data:x,columnTitle:"Suborganisation and Role",dottedBorder:!0})}),e[21]=x,e[22]=c):c=e[22];let m;return e[23]!==N||e[24]!==a||e[25]!==c?(m=p.jsx(R,{title:S.suborganisations,description:"NRENs are asked whether they have any sub-organisations, and to give the name and role of these organisations. These organisations can include HPC centres or IDC federations, amongst many others.",category:j.Organisation,filter:N,data:a,filename:"nren_suborganisations",children:c}),e[23]=N,e[24]=a,e[25]=c,e[26]=m):m=e[26],m}function $(e,t){for(const s of t.sort(k)){const r=`${s.name} (${s.role})`;e[r]=r}}function k(e,t){return e.name.localeCompare(t.name)}export{A as default}; diff --git a/compendium_v2/static/SurveyContainerComponent-CbFnC4ad.js b/compendium_v2/static/SurveyContainerComponent-CbFnC4ad.js new file mode 100644 index 0000000000000000000000000000000000000000..244ea550d06d0b02f88c0494e26dbeaf5ac00450 --- /dev/null +++ b/compendium_v2/static/SurveyContainerComponent-CbFnC4ad.js @@ -0,0 +1,13 @@ +import{a3 as lo,a4 as co,c as Pe,r as F,j as L,C as po,E as st,R as fe,a1 as Hn,a5 as ho,a6 as fo,Q as mo}from"./index-DBbSOdjk.js";import{O as vo,V as A}from"./index-BYMaAaj9.js";import{r as yo,a as ue}from"./survey.core-Dz7VpPEK.js";import{V as we,v as go,o as Co}from"./validation-COFmylEH.js";import{S as xo}from"./SurveySidebar-C_LqylD3.js";import"./SideBar-DfD7Pj8p.js";var Re={exports:{}};/*! + * surveyjs - Survey JavaScript library v1.12.24 + * Copyright (c) 2015-2025 Devsoft Baltic OÜ - http://surveyjs.io/ + * License: MIT (http://www.opensource.org/licenses/mit-license.php) + */var wo=Re.exports,Nn;function Eo(){return Nn||(Nn=1,function(M,l){(function(x,C){M.exports=C(lo(),co(),yo())})(wo,function(m,x,C){return function(O){var h={};function d(a){if(h[a])return h[a].exports;var s=h[a]={i:a,l:!1,exports:{}};return O[a].call(s.exports,s,s.exports,d),s.l=!0,s.exports}return d.m=O,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(O,h,d){/*! + * surveyjs - Survey JavaScript library v1.12.24 + * Copyright (c) 2015-2025 Devsoft Baltic OÜ - http://surveyjs.io/ + * License: MIT (http://www.opensource.org/licenses/mit-license.php) + */(function(s,u){O.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(O,h,d){/*! + * surveyjs - Survey JavaScript library v1.12.24 + * Copyright (c) 2015-2025 Devsoft Baltic OÜ - http://surveyjs.io/ + * License: MIT (http://www.opensource.org/licenses/mit-license.php) + */(function(s,u){O.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(O,h,d){d.r(h),d.d(h,"Survey",function(){return De}),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 mt}),d.d(h,"SurveyPage",function(){return pt}),d.d(h,"SurveyRow",function(){return N}),d.d(h,"SurveyPanel",function(){return pe}),d.d(h,"SurveyFlowPanel",function(){return vt}),d.d(h,"SurveyQuestion",function(){return ce}),d.d(h,"SurveyElementErrors",function(){return ye}),d.d(h,"SurveyQuestionAndErrorsCell",function(){return lt}),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 je}),d.d(h,"SurveyQuestionComment",function(){return it}),d.d(h,"SurveyQuestionCheckbox",function(){return gt}),d.d(h,"SurveyQuestionCheckboxItem",function(){return Ve}),d.d(h,"SurveyQuestionRanking",function(){return Ct}),d.d(h,"SurveyQuestionRankingItem",function(){return xt}),d.d(h,"SurveyQuestionRankingItemContent",function(){return wt}),d.d(h,"RatingItem",function(){return qt}),d.d(h,"RatingItemStar",function(){return St}),d.d(h,"RatingItemSmiley",function(){return Ot}),d.d(h,"RatingDropdownItem",function(){return Lt}),d.d(h,"TagboxFilterString",function(){return Ze}),d.d(h,"SurveyQuestionOptionItem",function(){return Mt}),d.d(h,"SurveyQuestionDropdownBase",function(){return Le}),d.d(h,"SurveyQuestionDropdown",function(){return Qe}),d.d(h,"SurveyQuestionTagboxItem",function(){return It}),d.d(h,"SurveyQuestionTagbox",function(){return bt}),d.d(h,"SurveyQuestionDropdownSelect",function(){return Rt}),d.d(h,"SurveyQuestionMatrix",function(){return Pt}),d.d(h,"SurveyQuestionMatrixRow",function(){return Nt}),d.d(h,"SurveyQuestionMatrixCell",function(){return kt}),d.d(h,"SurveyQuestionHtml",function(){return jt}),d.d(h,"SurveyQuestionFile",function(){return Bt}),d.d(h,"SurveyFileChooseButton",function(){return Ue}),d.d(h,"SurveyFilePreview",function(){return Tt}),d.d(h,"SurveyQuestionMultipleText",function(){return Dt}),d.d(h,"SurveyQuestionRadiogroup",function(){return _t}),d.d(h,"SurveyQuestionRadioItem",function(){return Ke}),d.d(h,"SurveyQuestionText",function(){return At}),d.d(h,"SurveyQuestionBoolean",function(){return Me}),d.d(h,"SurveyQuestionBooleanCheckbox",function(){return Zt}),d.d(h,"SurveyQuestionBooleanRadio",function(){return Qt}),d.d(h,"SurveyQuestionEmpty",function(){return Ft}),d.d(h,"SurveyQuestionMatrixDropdownCell",function(){return Ut}),d.d(h,"SurveyQuestionMatrixDropdownBase",function(){return Ge}),d.d(h,"SurveyQuestionMatrixDropdown",function(){return zt}),d.d(h,"SurveyQuestionMatrixDynamic",function(){return $t}),d.d(h,"SurveyQuestionMatrixDynamicAddButton",function(){return Jt}),d.d(h,"SurveyQuestionPanelDynamic",function(){return en}),d.d(h,"SurveyProgress",function(){return Ce}),d.d(h,"SurveyProgressButtons",function(){return tn}),d.d(h,"SurveyProgressToc",function(){return rn}),d.d(h,"SurveyQuestionRating",function(){return on}),d.d(h,"SurveyQuestionRatingDropdown",function(){return sn}),d.d(h,"SurveyQuestionExpression",function(){return an}),d.d(h,"PopupSurvey",function(){return ln}),d.d(h,"SurveyWindow",function(){return Ur}),d.d(h,"ReactQuestionFactory",function(){return j}),d.d(h,"ReactElementFactory",function(){return c}),d.d(h,"SurveyQuestionImagePicker",function(){return pn}),d.d(h,"SurveyQuestionImage",function(){return dn}),d.d(h,"SurveyQuestionSignaturePad",function(){return hn}),d.d(h,"SurveyQuestionButtonGroup",function(){return Jr}),d.d(h,"SurveyQuestionCustom",function(){return vn}),d.d(h,"SurveyQuestionComposite",function(){return yn}),d.d(h,"Popup",function(){return Q}),d.d(h,"ListItemContent",function(){return gn}),d.d(h,"ListItemGroup",function(){return Cn}),d.d(h,"List",function(){return tt}),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 xn}),d.d(h,"SurveyHeader",function(){return Be}),d.d(h,"SvgIcon",function(){return I}),d.d(h,"SurveyQuestionMatrixDynamicRemoveButton",function(){return wn}),d.d(h,"SurveyQuestionMatrixDetailButton",function(){return En}),d.d(h,"SurveyQuestionMatrixDynamicDragDropIcon",function(){return Je}),d.d(h,"SurveyQuestionPanelDynamicAddButton",function(){return Yt}),d.d(h,"SurveyQuestionPanelDynamicRemoveButton",function(){return qn}),d.d(h,"SurveyQuestionPanelDynamicPrevButton",function(){return Xe}),d.d(h,"SurveyQuestionPanelDynamicNextButton",function(){return Ye}),d.d(h,"SurveyQuestionPanelDynamicProgressText",function(){return et}),d.d(h,"SurveyNavigationButton",function(){return Sn}),d.d(h,"QuestionErrorComponent",function(){return On}),d.d(h,"MatrixRow",function(){return $e}),d.d(h,"Skeleton",function(){return Ln}),d.d(h,"NotifierComponent",function(){return He}),d.d(h,"ComponentsContainer",function(){return z}),d.d(h,"CharacterCounterComponent",function(){return Ee}),d.d(h,"HeaderMobile",function(){return Mn}),d.d(h,"HeaderCell",function(){return In}),d.d(h,"Header",function(){return bn}),d.d(h,"SurveyLocStringViewer",function(){return nt}),d.d(h,"SurveyLocStringEditor",function(){return Rn}),d.d(h,"LoadingIndicatorComponent",function(){return We}),d.d(h,"SvgBundleComponent",function(){return dt}),d.d(h,"PopupModal",function(){return ht}),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 S={};return S[i]=p,S}))}}}}),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),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)}}(),q=function(r){k(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":e.name+this.index,onFocus:i,ref:this.rootRef},n)},t.prototype.createElement=function(e,n){if(!this.row.isNeedRender)return c.Instance.createElement(e.skeletonComponentName,{element:e,css:this.css});var o=e.getTemplate();return c.Instance.isElementRegistered(o)||(o="question"),c.Instance.createElement(o,{element:e,creator:this.creator,survey:this.survey,css:this.css})},t}(g),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)}}(),N=function(r){R(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){return s.createElement(q,{element:o,index:i,row:e.row,survey:e.survey,creator:e.creator,css:e.css,key:o.id})});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)}}(),V=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(N,{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)}}(),I=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(I,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(I,{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(I,{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),j=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}(),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)}}(),Ee=function(r){Tn(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 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)}}(),Ne=function(r){Dn(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(Ne,r)});var ke=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){ke(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(Ne,{viewModel:n}),e)},t}(D),je=function(r){ke(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(Ne,{viewModel:this.textAreaModel})},t}(w),qe=function(r){ke(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.getTextAreaModel=function(){return this.props.question.otherTextAreaModel},t}(je);j.Instance.registerQuestion("comment",function(r){return s.createElement(it,r)});var Vn=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)}}(),_n=function(r){Vn(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),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)}}(),at=function(r){An(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(_n,{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"),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(),S=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,"data-name":e.name},f,i,S,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(je,{question:this.question,cssClasses:e,otherCss:e.other,isDisplayMode:this.question.isInputReadOnly}))},t.prototype.renderHeader=function(e){return s.createElement(at,{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),ut=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),lt=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}(ut),ct=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),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){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}(V),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)}}(),Be=function(r){Qn(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(Be,r)});var 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)}}(),Wn=function(r){Fn(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),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)}}(),He=function(r){Un(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(He,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)}}(),z=function(r){zn(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 Kn=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){Kn(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),$n=d("react-dom"),Jn=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){Jn(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,S){S===void 0&&(S="popup");var B=Object(a.createDialogOptions)(o,i,p,f,void 0,void 0,v,b,S);return n.showDialog(B)},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($n.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),ft=d("./build/survey-core/icons/iconsV1.js"),Gn=d("./build/survey-core/icons/iconsV2.js"),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)}}(),Te=function(){return Te=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},Te.apply(this,arguments)};Object(a.addIconsToThemeSet)("v1",ft.icons),Object(a.addIconsToThemeSet)("v2",Gn.icons),a.SvgRegistry.registerIcons(ft.icons);var De=function(r){Yn(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(Be,{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(dt,null):null,s.createElement(ht,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(He,{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(Wn,null):null)),s.createElement(z,{survey:this.survey,container:"right"}))},t.prototype.renderPage=function(e){return s.createElement(pt,{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 j.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(De,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=Te({},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 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)}}(),Oe=function(r){Xn(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),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)}}(),mt=function(r){er(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(I,{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(mt,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)}}(),pe=function(r){tr(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(at,{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}(V);c.Instance.registerElement("panel",function(r){return s.createElement(pe,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)}}(),vt=function(r){nr(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(vt,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)}}(),gt=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.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),Ve=function(r){yt(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(Ve,r)}),j.Instance.registerQuestion("checkbox",function(r){return s.createElement(gt,r)});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)}}(),Ct=function(r){_e(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 S=e[b];i.push(f.renderItem(S,b,function(B){o.question.handleKeydown.call(o.question,B,S)},function(B){B.persist(),o.question.handlePointerDown.call(o.question,B,S,B.currentTarget)},function(B){B.persist(),o.question.handlePointerUp.call(o.question,B,S,B.currentTarget)},f.question.cssClasses,f.question.getItemClass(S),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,S){""+e.renderedId;var B=this.renderLocString(e.locText),X=n,_=this.question.getNumberByIndex(X),xe=this.question.getItemTabIndex(e),he=s.createElement(xt,{key:e.value,text:B,index:X,indexText:_,itemTabIndex:xe,handleKeydown:o,handlePointerDown:i,handlePointerUp:p,cssClasses:f,itemClass:v,question:b,unrankedItem:S,item:e}),Pn=this.question.survey,Ie=null;return Pn&&(Ie=y.wrapItemValue(Pn,he,this.question,e)),Ie??he},t}(P),xt=function(r){_e(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),wt=function(r){_e(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(wt,r)}),j.Instance.registerQuestion("ranking",function(r){return s.createElement(Ct,r)});var Et=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){Et(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),qt=function(r){Et(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}(Ae);c.Instance.registerElement("sv-rating-item",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,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(I,{className:"sv-star",size:"auto",iconName:this.question.itemStarIcon,title:this.item.text}),u.a.createElement(I,{className:"sv-star-2",size:"auto",iconName:this.question.itemStarIconAlt,title:this.item.text}))},t}(Ae);c.Instance.registerElement("sv-rating-item-star",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 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(I,{size:"auto",iconName:this.question.getItemSmileyIconName(this.item.itemValue),title:this.item.text}))},t}(Ae);c.Instance.registerElement("sv-rating-item-smiley",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)}}(),Lt=function(r){sr(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(Lt,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)}}(),Ze=function(r){ir(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);j.Instance.registerQuestion("sv-tagbox-filter",function(r){return s.createElement(Ze,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)}}(),Mt=function(r){ar(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),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)}}(),Le=function(r){ur(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(I,{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(I,{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),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)}}(),Qe=function(r){lr(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);j.Instance.registerQuestion("dropdown",function(r){return s.createElement(Qe,r)});var 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 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(I,{className:this.question.cssClasses.cleanItemButtonSvg,iconName:this.question.cssClasses.cleanItemButtonIconId,size:"auto"})))},t}(w),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.renderItem=function(e,n){var o=s.createElement(It,{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(Ze,{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);j.Instance.registerQuestion("tagbox",function(r){return s.createElement(bt,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)}}(),Rt=function(r){dr(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(Mt,{key:"item"+v,item:f})}));return s.createElement("div",{className:e.selectWrapper},p,this.createChevronButton())},t}(Qe);j.Instance.registerQuestion("sv-dropdown-select",function(r){return s.createElement(Rt,r)}),a.RendererFactory.Instance.registerRenderer("dropdown","select","sv-dropdown-select");var Fe=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){Fe(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),S={};this.question.columnMinWidth&&(S.minWidth=this.question.columnMinWidth,S.width=this.question.columnMinWidth),i.push(s.createElement("th",{className:this.question.cssClasses.headerCell,style:S,key:v},this.wrapCell({column:f},b,"column-header")))}for(var B=[],X=this.question.visibleRows,p=0;p<X.length;p++){var _=X[p],v="row-"+_.name+"-"+p;B.push(s.createElement(Nt,{key:v,question:this.question,cssClasses:n,row:_,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,B))))},t}(P),Nt=function(r){Fe(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,S=f.question.visibleColumns[v],B="value"+v,X=f.question.getItemClass(o,S);if(f.question.hasCellText){var _=function(he){return function(){return e.cellClick(o,he)}};b=s.createElement("td",{key:B,className:X,onClick:_?_(S):function(){}},f.renderLocString(f.question.getCellDisplayLocText(o.name,S)))}else{var xe=c.Instance.createElement(i,{question:f.question,row:f.row,column:S,columnIndex:v,cssClasses:f.cssClasses,cellChanged:function(){e.cellClick(e.row,S)}});b=s.createElement("td",{key:B,"data-responsive-title":S.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),kt=function(r){Fe(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(kt,r)}),j.Instance.registerQuestion("matrix",function(r){return s.createElement(Pt,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)}}(),jt=function(r){hr(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);j.Instance.registerQuestion("html",function(r){return s.createElement(jt,r)});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)}}(),We=function(r){fr(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(I,{iconName:"icon-loading",size:"auto"}))},t}(s.Component),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)}}(),Ue=function(r){mr(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(I,{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(Ue,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(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,S;return this.question.isReadOnlyAttr?S=s.createElement("input",{readOnly:!0,type:"file",className:this.isDisplayMode?this.question.getReadOnlyFileCss():this.question.cssClasses.fileInput,id:this.question.inputId,ref:function(B){return e.setControl(B)},style:this.isDisplayMode?{color:"transparent"}:{},multiple:this.question.allowMultiple,placeholder:this.question.title,accept:this.question.acceptedTypes}):this.question.isDisabledAttr?S=s.createElement("input",{disabled:!0,type:"file",className:this.isDisplayMode?this.question.getReadOnlyFileCss():this.question.cssClasses.fileInput,id:this.question.inputId,ref:function(B){return e.setControl(B)},style:this.isDisplayMode?{color:"transparent"}:{},multiple:this.question.allowMultiple,placeholder:this.question.title,accept:this.question.acceptedTypes}):this.question.hasFileUI?S=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(B){return e.setControl(B)},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}):S=null,s.createElement("div",{className:this.question.fileRootCss,ref:function(B){return e.setContent(B)}},S,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(Ue,{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(I,{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(We,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);j.Instance.registerQuestion("file",function(r){return s.createElement(Bt,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)}}(),Ht=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,"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(I,{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(I,{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),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)}}(),Cr=function(r){gr(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(Ht,{item:o,question:e.question,key:i})});return u.a.createElement("div",{className:this.page.css,id:this.page.id},n)},t}(g),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)}}(),Tt=function(r){xr(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(Cr,{page:o,question:e.question,key:o.id})}):this.question.previewValue.map(function(o,i){return u.a.createElement(Ht,{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(Tt,r)});var ze=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){ze(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(ct,{question:e.item.editor,creator:this.creator}):i=s.createElement(wr,{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),wr=function(r){ze(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(Er,{cssClasses:n,itemCss:this.question.getItemCss(),question:e.editor,creator:this.creator}))},t}(w),Er=function(r){ze(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}(ut);j.Instance.registerQuestion("multipletext",function(r){return s.createElement(Dt,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)}}(),_t=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,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),Ke=function(r){Vt(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(Ke,r)}),j.Instance.registerQuestion("radiogroup",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)}}(),At=function(r){qr(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);j.Instance.registerQuestion("text",function(r){return s.createElement(At,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)}}(),Me=function(r){Sr(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);j.Instance.registerQuestion("boolean",function(r){return s.createElement(Me,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)}}(),Zt=function(r){Or(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);j.Instance.registerQuestion("sv-boolean-checkbox",function(r){return s.createElement(Zt,r)}),a.RendererFactory.Instance.registerRenderer("boolean","checkbox","sv-boolean-checkbox");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.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);j.Instance.registerQuestion("sv-boolean-radio",function(r){return s.createElement(Qt,r)}),a.RendererFactory.Instance.registerRenderer("boolean","radio","sv-boolean-radio");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)}}(),Ft=function(r){Mr(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);j.Instance.registerQuestion("empty",function(r){return s.createElement(Ft,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(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($e,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)}}(),Je=function(r){br(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(Je,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)}}(),Rr=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",{}),S=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(S)}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($e,{model:n,parentMatrix:this.question},p))},t.prototype.renderCell=function(e,n,o){var i="cell"+e.id;if(e.hasQuestion)return s.createElement(Ut,{key:i,cssClasses:n,cell:e,creator:this.creator,reason:o});if(e.isErrorsCell&&e.isErrorsCell)return s.createElement(Nr,{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(Wt,{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(Je,{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),Ge=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(Rr,{question:this.question,creator:this.creator,wrapCell:function(o,i,p){return e.wrapCell(o,i,p)}}))},t}(P),Pr=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),Nr=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}(ct);c.Instance.registerElement("sv-matrixdynamic-actions-cell",function(r){return s.createElement(Pr,r)});var Wt=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),Ut=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(Wt,{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(Ve,{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(Ke,{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}(lt),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)}}(),zt=function(r){kr(t,r);function t(e){return r.call(this,e)||this}return t}(Ge);j.Instance.registerQuestion("matrixdropdown",function(r){return s.createElement(zt,r)});var Kt=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){Kt(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}(Ge);j.Instance.registerQuestion("matrixdynamic",function(r){return s.createElement($t,r)});var Jt=function(r){Kt(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(Jt,r)});var Gt=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){Gt(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),Yt=function(r){Gt(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(Yt,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.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(I,{iconName:this.question.cssClasses.progressBtnIcon,size:"auto"}))},t}(ge);c.Instance.registerElement("sv-paneldynamic-next-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(){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(I,{iconName:this.question.cssClasses.progressBtnIcon,size:"auto"}))},t}(ge);c.Instance.registerElement("sv-paneldynamic-prev-btn",function(r){return u.a.createElement(Xe,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)}}(),et=function(r){Hr(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(et,r)});var Xt=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){Xt(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,S){n.push(s.createElement(Tr,{key:b.id,element:b,question:e.question,index:S,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(et,{data:{question:this.question}})},t.prototype.rendrerPrevButton=function(){return s.createElement(Xe,{data:{question:this.question}})},t.prototype.rendrerNextButton=function(){return s.createElement(Ye,{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),Tr=function(r){Xt(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);j.Instance.registerQuestion("paneldynamic",function(r){return s.createElement(en,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)}}(),Ce=function(r){Dr(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 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(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(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)}}(),nn=function(r){_r(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(S){e.model.onItemHover(e.item)},onMouseLeave:function(S){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(S){e.model.onItemClick(e.item),S.stopPropagation()},onPointerDown:function(S){return e.model.onPointerDown(S,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(nn,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)}}(),tt=function(r){Ar(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(nn,{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(I,{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(I,{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(tt,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(){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(I,{iconName:e.icon,size:24}),s.createElement(Q,{model:e.popupModel})):n=s.createElement(tt,{model:e.listModel}),s.createElement("div",{className:e.containerCss},n)},t}(Oe);c.Instance.registerElement("sv-navigation-toc",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){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);j.Instance.registerQuestion("rating",function(r){return s.createElement(on,r)});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 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);j.Instance.registerQuestion("sv-rating-dropdown",function(r){return s.createElement(sn,r)}),a.RendererFactory.Instance.registerRenderer("rating","dropdown","sv-rating-dropdown");var Wr=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)}}(),an=function(r){Wr(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);j.Instance.registerQuestion("expression",function(r){return s.createElement(an,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)}}(),ln=function(r){un(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(I,{iconName:"icon-restore_16x16",size:16})},t.prototype.renderCollapseIcon=function(){return s.createElement(I,{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(I,{iconName:"icon-close_16x16",size:16}))},t.prototype.renderAllowFullScreenButon=function(e){var n;return e.isFullScreen?n=s.createElement(I,{iconName:"icon-back-to-panel_16x16",size:16}):n=s.createElement(I,{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}(De),Ur=function(r){un(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t}(ln),cn=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){cn(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(zr,{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),zr=function(r){cn(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},S=null;if(n.locImageLink.renderedHtml&&this.question.contentMode==="image"&&(S=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(_){e.question.onContentLoaded(n,_.nativeEvent)},onError:function(_){n.onErrorHandler(n,_.nativeEvent)}})),n.locImageLink.renderedHtml&&this.question.contentMode==="video"&&(S=s.createElement("video",{controls:!0,className:i.image,src:n.locImageLink.renderedHtml,width:this.question.renderedImageWidth,height:this.question.renderedImageHeight,style:b,onLoadedMetadata:function(_){e.question.onContentLoaded(n,_.nativeEvent)},onError:function(_){n.onErrorHandler(n,_.nativeEvent)}})),!n.locImageLink.renderedHtml||n.contentNotLoaded){var B={width:this.question.renderedImageWidth,height:this.question.renderedImageHeight,objectFit:this.question.imageFit};S=s.createElement("div",{className:i.itemNoImage,style:B},i.itemNoImageSvgIcon?s.createElement(I,{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":n.locText.renderedHtml,"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(I,{size:"auto",className:this.question.cssClasses.checkedItemSvgIcon,iconName:this.question.cssClasses.checkedItemSvgIconId}):null):null,S),v)));return X},t}(w);j.Instance.registerQuestion("imagepicker",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){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(I,{iconName:this.question.cssClasses.noImageSvgIconId,size:48}))),s.createElement("div",{className:this.question.cssClasses.root},i,p)},t}(P);j.Instance.registerQuestion("image",function(r){return s.createElement(dn,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)}}(),hn=function(r){$r(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(We,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(I,{iconName:this.question.cssClasses.clearButtonIconId,size:"auto"}):s.createElement("span",null,"✖")))},t}(P);j.Instance.registerQuestion("signaturepad",function(r){return s.createElement(hn,r)});var 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)}}(),Jr=function(r){fn(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(Gr,{key:e.question.inputId+"_"+o,item:n,question:e.question,index:o})})},t}(P),Gr=function(r){fn(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(I,{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),mn=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){mn(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),yn=function(r){mn(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);j.Instance.registerQuestion("custom",function(r){return s.createElement(vn,r)}),j.Instance.registerQuestion("composite",function(r){return s.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(){if(!this.item)return null;var e=this.renderLocString(this.item.locTitle,void 0,"locString"),n=this.item.iconName?u.a.createElement(I,{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(I,{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(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(){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(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){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(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.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(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(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(I,{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(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(){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(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)}}(),Sn=function(r){oo(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(Sn,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)}}(),nt=function(r){so(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(nt,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(){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(nt,{locStr:this.props.error.locText})))},t}(u.a.Component);c.Instance.registerElement("sv-question-error",function(r){return u.a.createElement(On,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)}}(),Ln=function(r){ao(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(Ln,r)});var rt=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){rt(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),In=function(r){rt(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),bn=function(r){rt(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(Mn,{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(In,{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(bn,r)});var uo=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){uo(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(Rn,r)}),Object(a.checkLibraryVersion)("1.12.24","survey-react-ui")},react:function(O,h){O.exports=m},"react-dom":function(O,h){O.exports=x},"survey-core":function(O,h){O.exports=C}})})}(Re)),Re.exports}var qo=Eo();function kn(M,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 jn(M,l){if(l.question.hideCheckboxLabels){const m=l.cssClasses;m.root+=" hidden-checkbox-labels"}}function So(M,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 Bn(M,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 O=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>${O(d)}</p>`:null).join("");l.html=h}function Oo(M){var h;const l=!!M.visibleIf,m='[data-name="'+M.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 O=(h=document.querySelector(m))==null?void 0:h.querySelector(".sv-question__content");O&&(O.style.display="none")}function ot(M,l,m){var d;m.verificationStatus.set(M.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"&&(M.validate(),ot(M,we.Verified,m))}):(x.innerHTML="Answer updated",x.className+=" verification-ok");const C='[data-name="'+M.name+'"]',O=(d=document.querySelector(C))==null?void 0:d.querySelector("h5"),h=O==null?void 0:O.querySelector(".verification");h?h.replaceWith(x):O==null||O.appendChild(x)}function Lo(M){const l=Pe.c(5),{surveyModel:m}=M;let x,C;l[0]!==m?(x=()=>{const h=(a,s)=>{m.verificationStatus.get(s.question.name)==we.Unverified&&ot(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?ot(s.question,u,m):c&&Oo(s.question)};m.onAfterRenderQuestion.hasFunc(d)||(m.onAfterRenderQuestion.add(d),m.onAfterRenderQuestion.add(So)),m.onValueChanged.hasFunc(h)||m.onValueChanged.add(h),m.onUpdateQuestionCssClasses.hasFunc(jn)||m.onUpdateQuestionCssClasses.add(jn),m.onMatrixAfterCellRender.hasFunc(kn)||m.onMatrixAfterCellRender.add(kn),m.onTextMarkdown.hasFunc(Bn)||m.onTextMarkdown.add(Bn)},C=[m],l[0]=m,l[1]=x,l[2]=C):(x=l[1],C=l[2]),F.useEffect(x,C);let O;return l[3]!==m?(O=L.jsx(qo.Survey,{model:m}),l[3]=m,l[4]=O):O=l[4],O}function Mo(M){const l=Pe.c(14),{surveyModel:m,pageNoSetter:x,pageNo:C}=M;let O;l[0]===Symbol.for("react.memo_cache_sentinel")?(O=[],l[0]=O):O=l[0];const[h,d]=F.useState(O),a=bo;let s,u;l[1]!==m?(s=()=>{const w=P=>{if(P&&P.pages){const D=[];P.pages.forEach(k=>{const q=k.questions.filter(Io),R=q.length,N=q.filter(a).length,H=R-N,V=N/R;D.push({completionPercentage:V*100,unansweredPercentage:H/R*100,totalPages:P.pages.length,pageTitle:k.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(po,{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(st,{className:"survey-progress",children:L.jsx(fe,{children:E})}),l[12]=E,l[13]=g):g=l[13],g}function Io(M){return M.startWithNewLine}function bo(M){return!(M.value===null||M.value===void 0||M.value===""||M.getType()==="checkbox"&&M.value.length==0||M.getType()==="multipletext"&&(Object.keys(M.value).length===1&&Object.values(M.value)[0]===void 0||Object.keys(M.value).length===0))}function Ro(M){const l=Pe.c(70),{surveyModel:m,surveyActions:x,year:C,nren:O,children:h,onPageChange:d}=M,{user:a}=F.useContext(Hn),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=Po;let k;l[7]!==P?(k=(me,Y)=>D(me,()=>P(Y)),l[7]=P,l[8]=k):k=l[8];const q=k;let R;l[9]!==u||l[10]!==g||l[11]!==c||l[12]!==a||l[13]!==s||l[14]!==q||l[15]!==m.editAllowed||l[16]!==m.visiblePages.length?(R=()=>L.jsxs("div",{className:"survey-edit-buttons-block",children:[!u&&!c&&m.editAllowed&&q("Start editing","startEdit"),!u&&c&&c==a.name&&q("Discard any unsaved changes and release your lock","releaseLock"),u&&q("Save progress","save"),u&&q("Save and stop editing","saveAndStopEdit"),u&&q("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]=q,l[15]=m.editAllowed,l[16]=m.visiblePages.length,l[17]=R):R=l[17];const N=R;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 V;l[20]!==O?(V=L.jsxs("span",{className:"survey-title-nren",children:[" ",O," "]}),l[20]=O,l[21]=V):V=l[21];let Z;l[22]!==y?(Z=L.jsxs("span",{children:[" - ",y]}),l[22]=y,l[23]=Z):Z=l[23];let I;l[24]!==H||l[25]!==V||l[26]!==Z?(I=L.jsxs("h2",{children:[H,V,Z]}),l[24]=H,l[25]=V,l[26]=Z,l[27]=I):I=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]!==I?(te=L.jsxs(fe,{className:"survey-content",children:[I,W,U,ee]}),l[41]=W,l[42]=U,l[43]=ee,l[44]=I,l[45]=te):te=l[45];let ne;l[46]!==N?(ne=L.jsx(fe,{children:N()}),l[46]=N,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(Mo,{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]!==N?(se=L.jsx(fe,{children:N()}),l[62]=N,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(st,{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 Po(M,l){return L.jsx("button",{className:"sv-btn sv-btn--navigation",onClick:l,children:M})}function No(M){const l=Pe.c(5),m=M.when,x=M.onPageExit;let C;l[0]!==m||l[1]!==x||l[2]!==M.message?(C=()=>{if(m()){const h=window.confirm(M.message);return h&&x(),!h}return!1},l[0]=m,l[1]=x,l[2]=M.message,l[3]=C):C=l[3],ho(C);let O;return l[4]===Symbol.for("react.memo_cache_sentinel")?(O=L.jsx("div",{}),l[4]=O):O=l[4],O}ue.Serializer.addProperty("itemvalue","customDescription:text");ue.Serializer.addProperty("question","hideCheckboxLabels:boolean");function be(M){const l=Object.create(M);return 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"),l}function Vo({loadFrom:M}){const[l,m]=F.useState(),{year:x,nren:C}=fo(),[O,h]=F.useState("loading survey..."),{user:d}=F.useContext(Hn),s=!!d.id?d.permissions.admin:!1;ue.FunctionFactory.Instance.hasFunction("validateQuestion")||ue.FunctionFactory.Instance.register("validateQuestion",go),ue.FunctionFactory.Instance.hasFunction("validateWebsiteUrl")||ue.FunctionFactory.Instance.register("validateWebsiteUrl",Co);const{trackPageView:u}=mo(),c=F.useCallback(k=>(k.preventDefault(),k.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 k(){const q=await fetch(M+x+(C?"/"+C:"")),R=await q.json();if(!q.ok)throw"message"in R?new Error(R.message):new Error(`Request failed with status ${q.status}`);const N=new ue.Model(R.model);N.setVariable("surveyyear",x),N.setVariable("previousyear",parseInt(x)-1),N.showNavigationButtons=!1,N.requiredText="",N.verificationStatus=new Map;for(const H in R.verification_status)N.verificationStatus.set(H,R.verification_status[H]);N.data=R.data,N.clearIncorrectValues(!0),N.currentPageNo=R.page,N.mode=R.mode,N.lockedBy=R.locked_by,N.status=R.status,N.editAllowed=R.edit_allowed,m(N)}k().catch(q=>h("Error when loading survey: "+q.message)).then(()=>{u({documentTitle:`Survey for ${C} (${x})`})})},[]),!l)return O;const g=async(k,q)=>{if(!C)return"Saving not available in inpect/try mode";const R={lock_uuid:k.lockUUID,new_state:q,data:k.data,page:k.currentPageNo,verification_status:Object.fromEntries(k.verificationStatus)};try{const N=await fetch("/api/response/save/"+x+"/"+C,{method:"POST",headers:{"Content-Type":"application/json; charset=utf-8"},body:JSON.stringify(R)}),H=await N.json();if(!N.ok)return H.message;const V=be(k);V.mode=H.mode,V.lockedBy=H.locked_by,V.status=H.status,m(V)}catch(N){return"Unknown Error: "+N.message}},w=(k,q=!0)=>{let R="";const N=(V,Z)=>{V.verificationStatus.get(Z.name)==we.Unverified&&(R==""&&(R=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!')};q&&l.onValidateQuestion.add(N);const H=k();return q&&l.onValidateQuestion.remove(N),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 q=await g(l,"editing");q?A("Failed saving survey: "+q):A("Survey saved!")},complete:async()=>{if(w(l.validate.bind(l,!0,!0))){const q=await g(l,"completed");q?A("Failed completing survey: "+q):(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 q=await g(l,"readonly");q?A("Failed saving survey: "+q):(A("Survey saved!"),removeEventListener("beforeunload",c,{capture:!0}),removeEventListener("pagehide",y))},startEdit:async()=>{const k=await fetch("/api/response/lock/"+x+"/"+C,{method:"POST"}),q=await k.json();if(!k.ok){A("Failed starting edit: "+q.message);return}addEventListener("pagehide",y),addEventListener("beforeunload",c,{capture:!0});for(const H in q.verification_status)l.verificationStatus.set(H,q.verification_status[H]);const R=be(l);if(R.data=q.data,R.clearIncorrectValues(!0),R.mode=q.mode,R.lockedBy=q.locked_by,R.lockUUID=q.lock_uuid,R.status=q.status,m(R),!w(l.validate.bind(l,!0,!0),!1)){A("Some fields are invalid, please correct them.");return}},releaseLock:async()=>{const k=await fetch("/api/response/unlock/"+x+"/"+C,{method:"POST"}),q=await k.json();if(!k.ok){A("Failed releasing lock: "+q.message);return}const R=be(l);R.mode=q.mode,R.lockedBy=q.locked_by,R.status=q.status,m(R)},validatePage:()=>{w(l.validatePage.bind(l))&&A("Page validation successful!")}},D=k=>{if(!l)return;const q=be(l);q.currentPageNo=k,m(q)};return L.jsxs(L.Fragment,{children:[s?L.jsx(xo,{}):null,L.jsxs(st,{className:"survey-container",children:[L.jsx(vo,{}),L.jsx(No,{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(Ro,{surveyModel:l,surveyActions:P,year:x,nren:C,onPageChange:D,children:L.jsx(Lo,{surveyModel:l})})]})]})}export{Vo as default}; diff --git a/compendium_v2/static/SurveyContainerComponent-Dir4_aWH.js b/compendium_v2/static/SurveyContainerComponent-Dir4_aWH.js deleted file mode 100644 index 3c20d8f91fe1afba6f956911580803e4f5770af9..0000000000000000000000000000000000000000 --- a/compendium_v2/static/SurveyContainerComponent-Dir4_aWH.js +++ /dev/null @@ -1,13 +0,0 @@ -import{a3 as lo,a4 as co,c as Pe,r as F,j as L,C as po,E as st,R as fe,a1 as Hn,a5 as ho,a6 as fo,Q as mo}from"./index-CgRqQtHZ.js";import{O as vo,V as A}from"./index-CoA_s7ES.js";import{r as yo,a as ue}from"./survey.core-D1mOb2z9.js";import{V as we,v as go,o as Co}from"./validation-COFmylEH.js";import{S as xo}from"./SurveySidebar-CfKoK4Gq.js";import"./SideBar-Dgfa8b_s.js";var Re={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 wo=Re.exports,Nn;function Eo(){return Nn||(Nn=1,function(M,l){(function(x,C){M.exports=C(lo(),co(),yo())})(wo,function(m,x,C){return function(O){var h={};function d(a){if(h[a])return h[a].exports;var s=h[a]={i:a,l:!1,exports:{}};return O[a].call(s.exports,s,s.exports,d),s.l=!0,s.exports}return d.m=O,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(O,h,d){/*! - * 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){O.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(O,h,d){/*! - * 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){O.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(O,h,d){d.r(h),d.d(h,"Survey",function(){return De}),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 mt}),d.d(h,"SurveyPage",function(){return pt}),d.d(h,"SurveyRow",function(){return N}),d.d(h,"SurveyPanel",function(){return pe}),d.d(h,"SurveyFlowPanel",function(){return vt}),d.d(h,"SurveyQuestion",function(){return ce}),d.d(h,"SurveyElementErrors",function(){return ye}),d.d(h,"SurveyQuestionAndErrorsCell",function(){return lt}),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 je}),d.d(h,"SurveyQuestionComment",function(){return it}),d.d(h,"SurveyQuestionCheckbox",function(){return gt}),d.d(h,"SurveyQuestionCheckboxItem",function(){return Ve}),d.d(h,"SurveyQuestionRanking",function(){return Ct}),d.d(h,"SurveyQuestionRankingItem",function(){return xt}),d.d(h,"SurveyQuestionRankingItemContent",function(){return wt}),d.d(h,"RatingItem",function(){return qt}),d.d(h,"RatingItemStar",function(){return St}),d.d(h,"RatingItemSmiley",function(){return Ot}),d.d(h,"RatingDropdownItem",function(){return Lt}),d.d(h,"TagboxFilterString",function(){return Ze}),d.d(h,"SurveyQuestionOptionItem",function(){return Mt}),d.d(h,"SurveyQuestionDropdownBase",function(){return Le}),d.d(h,"SurveyQuestionDropdown",function(){return Qe}),d.d(h,"SurveyQuestionTagboxItem",function(){return It}),d.d(h,"SurveyQuestionTagbox",function(){return bt}),d.d(h,"SurveyQuestionDropdownSelect",function(){return Rt}),d.d(h,"SurveyQuestionMatrix",function(){return Pt}),d.d(h,"SurveyQuestionMatrixRow",function(){return Nt}),d.d(h,"SurveyQuestionMatrixCell",function(){return kt}),d.d(h,"SurveyQuestionHtml",function(){return jt}),d.d(h,"SurveyQuestionFile",function(){return Bt}),d.d(h,"SurveyFileChooseButton",function(){return Ue}),d.d(h,"SurveyFilePreview",function(){return Tt}),d.d(h,"SurveyQuestionMultipleText",function(){return Dt}),d.d(h,"SurveyQuestionRadiogroup",function(){return _t}),d.d(h,"SurveyQuestionRadioItem",function(){return Ke}),d.d(h,"SurveyQuestionText",function(){return At}),d.d(h,"SurveyQuestionBoolean",function(){return Me}),d.d(h,"SurveyQuestionBooleanCheckbox",function(){return Zt}),d.d(h,"SurveyQuestionBooleanRadio",function(){return Qt}),d.d(h,"SurveyQuestionEmpty",function(){return Ft}),d.d(h,"SurveyQuestionMatrixDropdownCell",function(){return Ut}),d.d(h,"SurveyQuestionMatrixDropdownBase",function(){return Ge}),d.d(h,"SurveyQuestionMatrixDropdown",function(){return zt}),d.d(h,"SurveyQuestionMatrixDynamic",function(){return $t}),d.d(h,"SurveyQuestionMatrixDynamicAddButton",function(){return Jt}),d.d(h,"SurveyQuestionPanelDynamic",function(){return en}),d.d(h,"SurveyProgress",function(){return Ce}),d.d(h,"SurveyProgressButtons",function(){return tn}),d.d(h,"SurveyProgressToc",function(){return rn}),d.d(h,"SurveyQuestionRating",function(){return on}),d.d(h,"SurveyQuestionRatingDropdown",function(){return sn}),d.d(h,"SurveyQuestionExpression",function(){return an}),d.d(h,"PopupSurvey",function(){return ln}),d.d(h,"SurveyWindow",function(){return Ur}),d.d(h,"ReactQuestionFactory",function(){return j}),d.d(h,"ReactElementFactory",function(){return c}),d.d(h,"SurveyQuestionImagePicker",function(){return pn}),d.d(h,"SurveyQuestionImage",function(){return dn}),d.d(h,"SurveyQuestionSignaturePad",function(){return hn}),d.d(h,"SurveyQuestionButtonGroup",function(){return Jr}),d.d(h,"SurveyQuestionCustom",function(){return vn}),d.d(h,"SurveyQuestionComposite",function(){return yn}),d.d(h,"Popup",function(){return Q}),d.d(h,"ListItemContent",function(){return gn}),d.d(h,"ListItemGroup",function(){return Cn}),d.d(h,"List",function(){return tt}),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 xn}),d.d(h,"SurveyHeader",function(){return Be}),d.d(h,"SvgIcon",function(){return I}),d.d(h,"SurveyQuestionMatrixDynamicRemoveButton",function(){return wn}),d.d(h,"SurveyQuestionMatrixDetailButton",function(){return En}),d.d(h,"SurveyQuestionMatrixDynamicDragDropIcon",function(){return Je}),d.d(h,"SurveyQuestionPanelDynamicAddButton",function(){return Yt}),d.d(h,"SurveyQuestionPanelDynamicRemoveButton",function(){return qn}),d.d(h,"SurveyQuestionPanelDynamicPrevButton",function(){return Xe}),d.d(h,"SurveyQuestionPanelDynamicNextButton",function(){return Ye}),d.d(h,"SurveyQuestionPanelDynamicProgressText",function(){return et}),d.d(h,"SurveyNavigationButton",function(){return Sn}),d.d(h,"QuestionErrorComponent",function(){return On}),d.d(h,"MatrixRow",function(){return $e}),d.d(h,"Skeleton",function(){return Ln}),d.d(h,"NotifierComponent",function(){return He}),d.d(h,"ComponentsContainer",function(){return z}),d.d(h,"CharacterCounterComponent",function(){return Ee}),d.d(h,"HeaderMobile",function(){return Mn}),d.d(h,"HeaderCell",function(){return In}),d.d(h,"Header",function(){return bn}),d.d(h,"SurveyLocStringViewer",function(){return nt}),d.d(h,"SurveyLocStringEditor",function(){return Rn}),d.d(h,"LoadingIndicatorComponent",function(){return We}),d.d(h,"SvgBundleComponent",function(){return dt}),d.d(h,"PopupModal",function(){return ht}),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 S={};return S[i]=p,S}))}}}}),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),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)}}(),q=function(r){k(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),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)}}(),N=function(r){R(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(q,{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)}}(),V=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(N,{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)}}(),I=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(I,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(I,{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(I,{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),j=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}(),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)}}(),Ee=function(r){Tn(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 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)}}(),Ne=function(r){Dn(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(Ne,r)});var ke=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){ke(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(Ne,{viewModel:n}),e)},t}(D),je=function(r){ke(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(Ne,{viewModel:this.textAreaModel})},t}(w),qe=function(r){ke(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.getTextAreaModel=function(){return this.props.question.otherTextAreaModel},t}(je);j.Instance.registerQuestion("comment",function(r){return s.createElement(it,r)});var Vn=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)}}(),_n=function(r){Vn(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),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)}}(),at=function(r){An(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(_n,{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(),S=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,S,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(je,{question:this.question,cssClasses:e,otherCss:e.other,isDisplayMode:this.question.isInputReadOnly}))},t.prototype.renderHeader=function(e){return s.createElement(at,{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),ut=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),lt=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}(ut),ct=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),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){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}(V),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)}}(),Be=function(r){Qn(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(Be,r)});var 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)}}(),Wn=function(r){Fn(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),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)}}(),He=function(r){Un(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(He,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)}}(),z=function(r){zn(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 Kn=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){Kn(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),$n=d("react-dom"),Jn=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){Jn(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,S){S===void 0&&(S="popup");var B=Object(a.createDialogOptions)(o,i,p,f,void 0,void 0,v,b,S);return n.showDialog(B)},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($n.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),ft=d("./build/survey-core/icons/iconsV1.js"),Gn=d("./build/survey-core/icons/iconsV2.js"),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)}}(),Te=function(){return Te=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},Te.apply(this,arguments)};Object(a.addIconsToThemeSet)("v1",ft.icons),Object(a.addIconsToThemeSet)("v2",Gn.icons),a.SvgRegistry.registerIcons(ft.icons);var De=function(r){Yn(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(Be,{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(dt,null):null,s.createElement(ht,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(He,{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(Wn,null):null)),s.createElement(z,{survey:this.survey,container:"right"}))},t.prototype.renderPage=function(e){return s.createElement(pt,{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 j.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(De,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=Te({},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 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)}}(),Oe=function(r){Xn(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),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)}}(),mt=function(r){er(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(I,{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(mt,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)}}(),pe=function(r){tr(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(at,{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}(V);c.Instance.registerElement("panel",function(r){return s.createElement(pe,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)}}(),vt=function(r){nr(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(vt,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)}}(),gt=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.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),Ve=function(r){yt(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(Ve,r)}),j.Instance.registerQuestion("checkbox",function(r){return s.createElement(gt,r)});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)}}(),Ct=function(r){_e(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 S=e[b];i.push(f.renderItem(S,b,function(B){o.question.handleKeydown.call(o.question,B,S)},function(B){B.persist(),o.question.handlePointerDown.call(o.question,B,S,B.currentTarget)},function(B){B.persist(),o.question.handlePointerUp.call(o.question,B,S,B.currentTarget)},f.question.cssClasses,f.question.getItemClass(S),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,S){""+e.renderedId;var B=this.renderLocString(e.locText),X=n,_=this.question.getNumberByIndex(X),xe=this.question.getItemTabIndex(e),he=s.createElement(xt,{key:e.value,text:B,index:X,indexText:_,itemTabIndex:xe,handleKeydown:o,handlePointerDown:i,handlePointerUp:p,cssClasses:f,itemClass:v,question:b,unrankedItem:S,item:e}),Pn=this.question.survey,Ie=null;return Pn&&(Ie=y.wrapItemValue(Pn,he,this.question,e)),Ie??he},t}(P),xt=function(r){_e(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),wt=function(r){_e(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(wt,r)}),j.Instance.registerQuestion("ranking",function(r){return s.createElement(Ct,r)});var Et=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){Et(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),qt=function(r){Et(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}(Ae);c.Instance.registerElement("sv-rating-item",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,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(I,{className:"sv-star",size:"auto",iconName:this.question.itemStarIcon,title:this.item.text}),u.a.createElement(I,{className:"sv-star-2",size:"auto",iconName:this.question.itemStarIconAlt,title:this.item.text}))},t}(Ae);c.Instance.registerElement("sv-rating-item-star",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 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(I,{size:"auto",iconName:this.question.getItemSmileyIconName(this.item.itemValue),title:this.item.text}))},t}(Ae);c.Instance.registerElement("sv-rating-item-smiley",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)}}(),Lt=function(r){sr(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(Lt,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)}}(),Ze=function(r){ir(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);j.Instance.registerQuestion("sv-tagbox-filter",function(r){return s.createElement(Ze,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)}}(),Mt=function(r){ar(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),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)}}(),Le=function(r){ur(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(I,{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(I,{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),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)}}(),Qe=function(r){lr(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);j.Instance.registerQuestion("dropdown",function(r){return s.createElement(Qe,r)});var 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 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(I,{className:this.question.cssClasses.cleanItemButtonSvg,iconName:this.question.cssClasses.cleanItemButtonIconId,size:"auto"})))},t}(w),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.renderItem=function(e,n){var o=s.createElement(It,{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(Ze,{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);j.Instance.registerQuestion("tagbox",function(r){return s.createElement(bt,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)}}(),Rt=function(r){dr(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(Mt,{key:"item"+v,item:f})}));return s.createElement("div",{className:e.selectWrapper},p,this.createChevronButton())},t}(Qe);j.Instance.registerQuestion("sv-dropdown-select",function(r){return s.createElement(Rt,r)}),a.RendererFactory.Instance.registerRenderer("dropdown","select","sv-dropdown-select");var Fe=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){Fe(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),S={};this.question.columnMinWidth&&(S.minWidth=this.question.columnMinWidth,S.width=this.question.columnMinWidth),i.push(s.createElement("th",{className:this.question.cssClasses.headerCell,style:S,key:v},this.wrapCell({column:f},b,"column-header")))}for(var B=[],X=this.question.visibleRows,p=0;p<X.length;p++){var _=X[p],v="row-"+_.name+"-"+p;B.push(s.createElement(Nt,{key:v,question:this.question,cssClasses:n,row:_,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,B))))},t}(P),Nt=function(r){Fe(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,S=f.question.visibleColumns[v],B="value"+v,X=f.question.getItemClass(o,S);if(f.question.hasCellText){var _=function(he){return function(){return e.cellClick(o,he)}};b=s.createElement("td",{key:B,className:X,onClick:_?_(S):function(){}},f.renderLocString(f.question.getCellDisplayLocText(o.name,S)))}else{var xe=c.Instance.createElement(i,{question:f.question,row:f.row,column:S,columnIndex:v,cssClasses:f.cssClasses,cellChanged:function(){e.cellClick(e.row,S)}});b=s.createElement("td",{key:B,"data-responsive-title":S.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),kt=function(r){Fe(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(kt,r)}),j.Instance.registerQuestion("matrix",function(r){return s.createElement(Pt,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)}}(),jt=function(r){hr(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);j.Instance.registerQuestion("html",function(r){return s.createElement(jt,r)});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)}}(),We=function(r){fr(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(I,{iconName:"icon-loading",size:"auto"}))},t}(s.Component),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)}}(),Ue=function(r){mr(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(I,{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(Ue,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(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,S;return this.question.isReadOnlyAttr?S=s.createElement("input",{readOnly:!0,type:"file",className:this.isDisplayMode?this.question.getReadOnlyFileCss():this.question.cssClasses.fileInput,id:this.question.inputId,ref:function(B){return e.setControl(B)},style:this.isDisplayMode?{color:"transparent"}:{},multiple:this.question.allowMultiple,placeholder:this.question.title,accept:this.question.acceptedTypes}):this.question.isDisabledAttr?S=s.createElement("input",{disabled:!0,type:"file",className:this.isDisplayMode?this.question.getReadOnlyFileCss():this.question.cssClasses.fileInput,id:this.question.inputId,ref:function(B){return e.setControl(B)},style:this.isDisplayMode?{color:"transparent"}:{},multiple:this.question.allowMultiple,placeholder:this.question.title,accept:this.question.acceptedTypes}):this.question.hasFileUI?S=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(B){return e.setControl(B)},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}):S=null,s.createElement("div",{className:this.question.fileRootCss,ref:function(B){return e.setContent(B)}},S,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(Ue,{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(I,{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(We,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);j.Instance.registerQuestion("file",function(r){return s.createElement(Bt,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)}}(),Ht=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,"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(I,{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(I,{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),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)}}(),Cr=function(r){gr(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(Ht,{item:o,question:e.question,key:i})});return u.a.createElement("div",{className:this.page.css,id:this.page.id},n)},t}(g),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)}}(),Tt=function(r){xr(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(Cr,{page:o,question:e.question,key:o.id})}):this.question.previewValue.map(function(o,i){return u.a.createElement(Ht,{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(Tt,r)});var ze=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){ze(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(ct,{question:e.item.editor,creator:this.creator}):i=s.createElement(wr,{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),wr=function(r){ze(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(Er,{cssClasses:n,itemCss:this.question.getItemCss(),question:e.editor,creator:this.creator}))},t}(w),Er=function(r){ze(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}(ut);j.Instance.registerQuestion("multipletext",function(r){return s.createElement(Dt,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)}}(),_t=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,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),Ke=function(r){Vt(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(Ke,r)}),j.Instance.registerQuestion("radiogroup",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)}}(),At=function(r){qr(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);j.Instance.registerQuestion("text",function(r){return s.createElement(At,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)}}(),Me=function(r){Sr(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);j.Instance.registerQuestion("boolean",function(r){return s.createElement(Me,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)}}(),Zt=function(r){Or(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);j.Instance.registerQuestion("sv-boolean-checkbox",function(r){return s.createElement(Zt,r)}),a.RendererFactory.Instance.registerRenderer("boolean","checkbox","sv-boolean-checkbox");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.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);j.Instance.registerQuestion("sv-boolean-radio",function(r){return s.createElement(Qt,r)}),a.RendererFactory.Instance.registerRenderer("boolean","radio","sv-boolean-radio");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)}}(),Ft=function(r){Mr(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);j.Instance.registerQuestion("empty",function(r){return s.createElement(Ft,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(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($e,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)}}(),Je=function(r){br(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(Je,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)}}(),Rr=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",{}),S=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(S)}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($e,{model:n,parentMatrix:this.question},p))},t.prototype.renderCell=function(e,n,o){var i="cell"+e.id;if(e.hasQuestion)return s.createElement(Ut,{key:i,cssClasses:n,cell:e,creator:this.creator,reason:o});if(e.isErrorsCell&&e.isErrorsCell)return s.createElement(Nr,{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(Wt,{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(Je,{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),Ge=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(Rr,{question:this.question,creator:this.creator,wrapCell:function(o,i,p){return e.wrapCell(o,i,p)}}))},t}(P),Pr=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),Nr=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}(ct);c.Instance.registerElement("sv-matrixdynamic-actions-cell",function(r){return s.createElement(Pr,r)});var Wt=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),Ut=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(Wt,{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(Ve,{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(Ke,{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}(lt),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)}}(),zt=function(r){kr(t,r);function t(e){return r.call(this,e)||this}return t}(Ge);j.Instance.registerQuestion("matrixdropdown",function(r){return s.createElement(zt,r)});var Kt=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){Kt(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}(Ge);j.Instance.registerQuestion("matrixdynamic",function(r){return s.createElement($t,r)});var Jt=function(r){Kt(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(Jt,r)});var Gt=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){Gt(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),Yt=function(r){Gt(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(Yt,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.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(I,{iconName:this.question.cssClasses.progressBtnIcon,size:"auto"}))},t}(ge);c.Instance.registerElement("sv-paneldynamic-next-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(){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(I,{iconName:this.question.cssClasses.progressBtnIcon,size:"auto"}))},t}(ge);c.Instance.registerElement("sv-paneldynamic-prev-btn",function(r){return u.a.createElement(Xe,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)}}(),et=function(r){Hr(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(et,r)});var Xt=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){Xt(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,S){n.push(s.createElement(Tr,{key:b.id,element:b,question:e.question,index:S,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(et,{data:{question:this.question}})},t.prototype.rendrerPrevButton=function(){return s.createElement(Xe,{data:{question:this.question}})},t.prototype.rendrerNextButton=function(){return s.createElement(Ye,{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),Tr=function(r){Xt(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);j.Instance.registerQuestion("paneldynamic",function(r){return s.createElement(en,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)}}(),Ce=function(r){Dr(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 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(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(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)}}(),nn=function(r){_r(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(S){e.model.onItemHover(e.item)},onMouseLeave:function(S){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(S){e.model.onItemClick(e.item),S.stopPropagation()},onPointerDown:function(S){return e.model.onPointerDown(S,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(nn,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)}}(),tt=function(r){Ar(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(nn,{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(I,{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(I,{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(tt,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(){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(I,{iconName:e.icon,size:24}),s.createElement(Q,{model:e.popupModel})):n=s.createElement(tt,{model:e.listModel}),s.createElement("div",{className:e.containerCss},n)},t}(Oe);c.Instance.registerElement("sv-navigation-toc",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){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);j.Instance.registerQuestion("rating",function(r){return s.createElement(on,r)});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 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);j.Instance.registerQuestion("sv-rating-dropdown",function(r){return s.createElement(sn,r)}),a.RendererFactory.Instance.registerRenderer("rating","dropdown","sv-rating-dropdown");var Wr=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)}}(),an=function(r){Wr(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);j.Instance.registerQuestion("expression",function(r){return s.createElement(an,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)}}(),ln=function(r){un(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(I,{iconName:"icon-restore_16x16",size:16})},t.prototype.renderCollapseIcon=function(){return s.createElement(I,{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(I,{iconName:"icon-close_16x16",size:16}))},t.prototype.renderAllowFullScreenButon=function(e){var n;return e.isFullScreen?n=s.createElement(I,{iconName:"icon-back-to-panel_16x16",size:16}):n=s.createElement(I,{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}(De),Ur=function(r){un(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t}(ln),cn=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){cn(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(zr,{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),zr=function(r){cn(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},S=null;if(n.locImageLink.renderedHtml&&this.question.contentMode==="image"&&(S=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(_){e.question.onContentLoaded(n,_.nativeEvent)},onError:function(_){n.onErrorHandler(n,_.nativeEvent)}})),n.locImageLink.renderedHtml&&this.question.contentMode==="video"&&(S=s.createElement("video",{controls:!0,className:i.image,src:n.locImageLink.renderedHtml,width:this.question.renderedImageWidth,height:this.question.renderedImageHeight,style:b,onLoadedMetadata:function(_){e.question.onContentLoaded(n,_.nativeEvent)},onError:function(_){n.onErrorHandler(n,_.nativeEvent)}})),!n.locImageLink.renderedHtml||n.contentNotLoaded){var B={width:this.question.renderedImageWidth,height:this.question.renderedImageHeight,objectFit:this.question.imageFit};S=s.createElement("div",{className:i.itemNoImage,style:B},i.itemNoImageSvgIcon?s.createElement(I,{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(I,{size:"auto",className:this.question.cssClasses.checkedItemSvgIcon,iconName:this.question.cssClasses.checkedItemSvgIconId}):null):null,S),v)));return X},t}(w);j.Instance.registerQuestion("imagepicker",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){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(I,{iconName:this.question.cssClasses.noImageSvgIconId,size:48}))),s.createElement("div",{className:this.question.cssClasses.root},i,p)},t}(P);j.Instance.registerQuestion("image",function(r){return s.createElement(dn,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)}}(),hn=function(r){$r(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(We,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(I,{iconName:this.question.cssClasses.clearButtonIconId,size:"auto"}):s.createElement("span",null,"✖")))},t}(P);j.Instance.registerQuestion("signaturepad",function(r){return s.createElement(hn,r)});var 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)}}(),Jr=function(r){fn(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(Gr,{key:e.question.inputId+"_"+o,item:n,question:e.question,index:o})})},t}(P),Gr=function(r){fn(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(I,{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),mn=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){mn(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),yn=function(r){mn(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);j.Instance.registerQuestion("custom",function(r){return s.createElement(vn,r)}),j.Instance.registerQuestion("composite",function(r){return s.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(){if(!this.item)return null;var e=this.renderLocString(this.item.locTitle,void 0,"locString"),n=this.item.iconName?u.a.createElement(I,{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(I,{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(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(){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(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){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(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.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(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(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(I,{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(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(){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(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)}}(),Sn=function(r){oo(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(Sn,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)}}(),nt=function(r){so(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(nt,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(){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(nt,{locStr:this.props.error.locText})))},t}(u.a.Component);c.Instance.registerElement("sv-question-error",function(r){return u.a.createElement(On,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)}}(),Ln=function(r){ao(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(Ln,r)});var rt=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){rt(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),In=function(r){rt(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),bn=function(r){rt(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(Mn,{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(In,{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(bn,r)});var uo=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){uo(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(Rn,r)}),Object(a.checkLibraryVersion)("1.12.23","survey-react-ui")},react:function(O,h){O.exports=m},"react-dom":function(O,h){O.exports=x},"survey-core":function(O,h){O.exports=C}})})}(Re)),Re.exports}var qo=Eo();function kn(M,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 jn(M,l){if(l.question.hideCheckboxLabels){const m=l.cssClasses;m.root+=" hidden-checkbox-labels"}}function So(M,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 Bn(M,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 O=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>${O(d)}</p>`:null).join("");l.html=h}function Oo(M){var h;const l=!!M.visibleIf,m='[data-name="'+M.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 O=(h=document.querySelector(m))==null?void 0:h.querySelector(".sv-question__content");O&&(O.style.display="none")}function ot(M,l,m){var d;m.verificationStatus.set(M.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"&&(M.validate(),ot(M,we.Verified,m))}):(x.innerHTML="Answer updated",x.className+=" verification-ok");const C='[data-name="'+M.name+'"]',O=(d=document.querySelector(C))==null?void 0:d.querySelector("h5"),h=O==null?void 0:O.querySelector(".verification");h?h.replaceWith(x):O==null||O.appendChild(x)}function Lo(M){const l=Pe.c(5),{surveyModel:m}=M;let x,C;l[0]!==m?(x=()=>{const h=(a,s)=>{m.verificationStatus.get(s.question.name)==we.Unverified&&ot(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?ot(s.question,u,m):c&&Oo(s.question)};m.onAfterRenderQuestion.hasFunc(d)||(m.onAfterRenderQuestion.add(d),m.onAfterRenderQuestion.add(So)),m.onValueChanged.hasFunc(h)||m.onValueChanged.add(h),m.onUpdateQuestionCssClasses.hasFunc(jn)||m.onUpdateQuestionCssClasses.add(jn),m.onMatrixAfterCellRender.hasFunc(kn)||m.onMatrixAfterCellRender.add(kn),m.onTextMarkdown.hasFunc(Bn)||m.onTextMarkdown.add(Bn)},C=[m],l[0]=m,l[1]=x,l[2]=C):(x=l[1],C=l[2]),F.useEffect(x,C);let O;return l[3]!==m?(O=L.jsx(qo.Survey,{model:m}),l[3]=m,l[4]=O):O=l[4],O}function Mo(M){const l=Pe.c(14),{surveyModel:m,pageNoSetter:x,pageNo:C}=M;let O;l[0]===Symbol.for("react.memo_cache_sentinel")?(O=[],l[0]=O):O=l[0];const[h,d]=F.useState(O),a=bo;let s,u;l[1]!==m?(s=()=>{const w=P=>{if(P&&P.pages){const D=[];P.pages.forEach(k=>{const q=k.questions.filter(Io),R=q.length,N=q.filter(a).length,H=R-N,V=N/R;D.push({completionPercentage:V*100,unansweredPercentage:H/R*100,totalPages:P.pages.length,pageTitle:k.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(po,{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(st,{className:"survey-progress",children:L.jsx(fe,{children:E})}),l[12]=E,l[13]=g):g=l[13],g}function Io(M){return M.startWithNewLine}function bo(M){return!(M.value===null||M.value===void 0||M.value===""||M.getType()==="checkbox"&&M.value.length==0||M.getType()==="multipletext"&&(Object.keys(M.value).length===1&&Object.values(M.value)[0]===void 0||Object.keys(M.value).length===0))}function Ro(M){const l=Pe.c(70),{surveyModel:m,surveyActions:x,year:C,nren:O,children:h,onPageChange:d}=M,{user:a}=F.useContext(Hn),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=Po;let k;l[7]!==P?(k=(me,Y)=>D(me,()=>P(Y)),l[7]=P,l[8]=k):k=l[8];const q=k;let R;l[9]!==u||l[10]!==g||l[11]!==c||l[12]!==a||l[13]!==s||l[14]!==q||l[15]!==m.editAllowed||l[16]!==m.visiblePages.length?(R=()=>L.jsxs("div",{className:"survey-edit-buttons-block",children:[!u&&!c&&m.editAllowed&&q("Start editing","startEdit"),!u&&c&&c==a.name&&q("Discard any unsaved changes and release your lock","releaseLock"),u&&q("Save progress","save"),u&&q("Save and stop editing","saveAndStopEdit"),u&&q("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]=q,l[15]=m.editAllowed,l[16]=m.visiblePages.length,l[17]=R):R=l[17];const N=R;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 V;l[20]!==O?(V=L.jsxs("span",{className:"survey-title-nren",children:[" ",O," "]}),l[20]=O,l[21]=V):V=l[21];let Z;l[22]!==y?(Z=L.jsxs("span",{children:[" - ",y]}),l[22]=y,l[23]=Z):Z=l[23];let I;l[24]!==H||l[25]!==V||l[26]!==Z?(I=L.jsxs("h2",{children:[H,V,Z]}),l[24]=H,l[25]=V,l[26]=Z,l[27]=I):I=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]!==I?(te=L.jsxs(fe,{className:"survey-content",children:[I,W,U,ee]}),l[41]=W,l[42]=U,l[43]=ee,l[44]=I,l[45]=te):te=l[45];let ne;l[46]!==N?(ne=L.jsx(fe,{children:N()}),l[46]=N,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(Mo,{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]!==N?(se=L.jsx(fe,{children:N()}),l[62]=N,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(st,{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 Po(M,l){return L.jsx("button",{className:"sv-btn sv-btn--navigation",onClick:l,children:M})}function No(M){const l=Pe.c(5),m=M.when,x=M.onPageExit;let C;l[0]!==m||l[1]!==x||l[2]!==M.message?(C=()=>{if(m()){const h=window.confirm(M.message);return h&&x(),!h}return!1},l[0]=m,l[1]=x,l[2]=M.message,l[3]=C):C=l[3],ho(C);let O;return l[4]===Symbol.for("react.memo_cache_sentinel")?(O=L.jsx("div",{}),l[4]=O):O=l[4],O}ue.Serializer.addProperty("itemvalue","customDescription:text");ue.Serializer.addProperty("question","hideCheckboxLabels:boolean");function be(M){const l=Object.create(M);return 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"),l}function Vo({loadFrom:M}){const[l,m]=F.useState(),{year:x,nren:C}=fo(),[O,h]=F.useState("loading survey..."),{user:d}=F.useContext(Hn),s=!!d.id?d.permissions.admin:!1;ue.FunctionFactory.Instance.hasFunction("validateQuestion")||ue.FunctionFactory.Instance.register("validateQuestion",go),ue.FunctionFactory.Instance.hasFunction("validateWebsiteUrl")||ue.FunctionFactory.Instance.register("validateWebsiteUrl",Co);const{trackPageView:u}=mo(),c=F.useCallback(k=>(k.preventDefault(),k.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 k(){const q=await fetch(M+x+(C?"/"+C:"")),R=await q.json();if(!q.ok)throw"message"in R?new Error(R.message):new Error(`Request failed with status ${q.status}`);const N=new ue.Model(R.model);N.setVariable("surveyyear",x),N.setVariable("previousyear",parseInt(x)-1),N.showNavigationButtons=!1,N.requiredText="",N.verificationStatus=new Map;for(const H in R.verification_status)N.verificationStatus.set(H,R.verification_status[H]);N.data=R.data,N.clearIncorrectValues(!0),N.currentPageNo=R.page,N.mode=R.mode,N.lockedBy=R.locked_by,N.status=R.status,N.editAllowed=R.edit_allowed,m(N)}k().catch(q=>h("Error when loading survey: "+q.message)).then(()=>{u({documentTitle:`Survey for ${C} (${x})`})})},[]),!l)return O;const g=async(k,q)=>{if(!C)return"Saving not available in inpect/try mode";const R={lock_uuid:k.lockUUID,new_state:q,data:k.data,page:k.currentPageNo,verification_status:Object.fromEntries(k.verificationStatus)};try{const N=await fetch("/api/response/save/"+x+"/"+C,{method:"POST",headers:{"Content-Type":"application/json; charset=utf-8"},body:JSON.stringify(R)}),H=await N.json();if(!N.ok)return H.message;const V=be(k);V.mode=H.mode,V.lockedBy=H.locked_by,V.status=H.status,m(V)}catch(N){return"Unknown Error: "+N.message}},w=(k,q=!0)=>{let R="";const N=(V,Z)=>{V.verificationStatus.get(Z.name)==we.Unverified&&(R==""&&(R=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!')};q&&l.onValidateQuestion.add(N);const H=k();return q&&l.onValidateQuestion.remove(N),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 q=await g(l,"editing");q?A("Failed saving survey: "+q):A("Survey saved!")},complete:async()=>{if(w(l.validate.bind(l,!0,!0))){const q=await g(l,"completed");q?A("Failed completing survey: "+q):(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 q=await g(l,"readonly");q?A("Failed saving survey: "+q):(A("Survey saved!"),removeEventListener("beforeunload",c,{capture:!0}),removeEventListener("pagehide",y))},startEdit:async()=>{const k=await fetch("/api/response/lock/"+x+"/"+C,{method:"POST"}),q=await k.json();if(!k.ok){A("Failed starting edit: "+q.message);return}addEventListener("pagehide",y),addEventListener("beforeunload",c,{capture:!0});for(const H in q.verification_status)l.verificationStatus.set(H,q.verification_status[H]);const R=be(l);if(R.data=q.data,R.clearIncorrectValues(!0),R.mode=q.mode,R.lockedBy=q.locked_by,R.lockUUID=q.lock_uuid,R.status=q.status,m(R),!w(l.validate.bind(l,!0,!0),!1)){A("Some fields are invalid, please correct them.");return}},releaseLock:async()=>{const k=await fetch("/api/response/unlock/"+x+"/"+C,{method:"POST"}),q=await k.json();if(!k.ok){A("Failed releasing lock: "+q.message);return}const R=be(l);R.mode=q.mode,R.lockedBy=q.locked_by,R.status=q.status,m(R)},validatePage:()=>{w(l.validatePage.bind(l))&&A("Page validation successful!")}},D=k=>{if(!l)return;const q=be(l);q.currentPageNo=k,m(q)};return L.jsxs(L.Fragment,{children:[s?L.jsx(xo,{}):null,L.jsxs(st,{className:"survey-container",children:[L.jsx(vo,{}),L.jsx(No,{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(Ro,{surveyModel:l,surveyActions:P,year:x,nren:C,onPageChange:D,children:L.jsx(Lo,{surveyModel:l})})]})]})}export{Vo as default}; diff --git a/compendium_v2/static/SurveyManagementComponent-B655F2Jb.js b/compendium_v2/static/SurveyManagementComponent-Lo-9bnmr.js similarity index 96% rename from compendium_v2/static/SurveyManagementComponent-B655F2Jb.js rename to compendium_v2/static/SurveyManagementComponent-Lo-9bnmr.js index c0cbff49cfc31643283176ea018a69e4b6522ab9..79bbc87dfcf884e8667e9393db59c7dd63134ee8 100644 --- a/compendium_v2/static/SurveyManagementComponent-B655F2Jb.js +++ b/compendium_v2/static/SurveyManagementComponent-Lo-9bnmr.js @@ -1,3 +1,3 @@ -import{r as $,h as K,j as t,i as X,_ as Q,c as G,y,a7 as Y,L as W,E as q,R as Z}from"./index-CgRqQtHZ.js";import{A as F,l as ee}from"./lodash-CV_RFKCE.js";import{T as te}from"./Table-ggua9_yJ.js";import{V as h,O as se}from"./index-CoA_s7ES.js";import{v as ne,o as re,S as o}from"./validation-COFmylEH.js";import{a as V}from"./survey-3meXCY6T.js";import{S as ae}from"./SurveySidebar-CfKoK4Gq.js";import"./hook-DDOSKqdF.js";import"./SideBar-Dgfa8b_s.js";const H=$.forwardRef(({bsPrefix:e,variant:n,animation:l="border",size:r,as:i="div",className:c,...d},p)=>{e=K(e,"spinner");const f=`${e}-${l}`;return t.jsx(i,{ref:p,...d,className:X(c,f,r&&`${f}-${r}`,n&&`text-${n}`)})});H.displayName="Spinner";function ie(e){return Q({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 oe(e){return Q({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 D(e){const n=G.c(4),{status:l}=e;let r;n[0]===Symbol.for("react.memo_cache_sentinel")?(r=t.jsx(y,{variant:"success",size:"sm",children:t.jsx("strong",{children:"Completed"})}),n[0]=r):r=n[0];let i;n[1]===Symbol.for("react.memo_cache_sentinel")?(i=t.jsx(y,{variant:"warning",size:"sm",children:t.jsx("strong",{children:"Started"})}),n[1]=i):i=n[1];let c;n[2]===Symbol.for("react.memo_cache_sentinel")?(c=t.jsx(y,{variant:"danger",size:"sm",children:t.jsx("strong",{children:"Did not respond"})}),n[2]=c):c=n[2];let d;return n[3]===Symbol.for("react.memo_cache_sentinel")?(d={completed:r,started:i,"did not respond":c,"not started":t.jsx(y,{variant:"info",size:"sm",children:t.jsx("strong",{children:"Not started"})}),true:t.jsx(ie,{size:24,color:"green"}),false:t.jsx(oe,{size:24,color:"red"})},n[3]=d):d=n[3],d[l]||l}async function U(e,n){const{Model:l,FunctionFactory:r,Serializer:i}=await Y(async()=>{const{Model:j,FunctionFactory:w,Serializer:z}=await import("./survey.core-D1mOb2z9.js").then(A=>A.s);return{Model:j,FunctionFactory:w,Serializer:z}},[]);function c(){const j=i.getAllPropertiesByName("customDescription"),w=i.getAllPropertiesByName("hideCheckboxLabels");j.length||i.addProperty("itemvalue","customDescription:text"),w.length||i.addProperty("question","hideCheckboxLabels:boolean")}if(r.Instance.hasFunction("validateQuestion")||r.Instance.register("validateQuestion",ne),r.Instance.hasFunction("validateWebsiteUrl")||r.Instance.register("validateWebsiteUrl",re),!e||!n)return!0;const d=`/api/response/load/${e}/${n}`,p=await fetch(d),f=await p.json();if(!p.ok)throw"message"in f?new Error(f.message):new Error(`Request failed with status ${p.status}`);c();const u=new l(f.model);u.setVariable("surveyyear",e),u.setVariable("previousyear",parseInt(e)-1),u.showNavigationButtons=!1,u.requiredText="",u.data=f.data,u.clearIncorrectValues(!0);const E=u.validate.bind(u,!0,!0)();return(await fetch(`/api/response/validate/${e}/${n}`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({valid:E})})).ok?E:!0}function le(e,n,l){fetch("/api/survey/"+e+"/"+n+"/notes",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({notes:l||""})}).then(async r=>{const i=await r.json();r.ok?h.success("Notes saved"):h.error("Failed saving notes: "+i.message||r.statusText)}).catch(r=>{h.error("Failed saving notes: "+r)})}function C({text:e,helpText:n,onClick:l,enabled:r}){const[i,c]=$.useState(!1),d=async()=>{if(!i){c(!0);try{await l()}finally{c(!1)}}};return t.jsxs(y,{onClick:d,disabled:!r,style:{pointerEvents:"auto",marginLeft:".5rem"},title:n,children:[i&&t.jsx(H,{as:"span",animation:"border",size:"sm",role:"status","aria-hidden":"true"}),e]})}function we(){const e=G.c(21);let n;e[0]===Symbol.for("react.memo_cache_sentinel")?(n=[],e[0]=n):n=e[0];const[l,r]=$.useState(n),i=$.useRef(!1);let c,d;e[1]===Symbol.for("react.memo_cache_sentinel")?(c=()=>{V().then(x=>{r(x)})},d=[],e[1]=c,e[2]=d):(c=e[1],d=e[2]),$.useEffect(c,d);let p;e[3]===Symbol.for("react.memo_cache_sentinel")?(p=async function(s,m,a,v){const b=v===void 0?!1:v;try{b&&(s=s+"?dry_run=1");const g=await fetch(s,{method:"POST"}),O=await g.json();g.ok?(O.message&&console.log(O.message),b||h(a),V().then(J=>{r(J)})):h(m+O.message)}catch(g){h(m+g.message)}},e[3]=p):p=e[3];const f=p;let u;e[4]===Symbol.for("react.memo_cache_sentinel")?(u=async function(){await f("/api/survey/new","Failed creating new survey: ","Created new survey")},e[4]=u):u=e[4];const E=u;let N;e[5]===Symbol.for("react.memo_cache_sentinel")?(N=async function(s,m,a){const v=a===void 0?!1:a;if(i.current){h("Wait for status update to be finished...");return}i.current=!0,await f("/api/survey/"+m+"/"+s,"Error while updating "+s+" survey status to "+m+": ",s+" survey status updated to "+m,v),i.current=!1},e[5]=N):N=e[5];const j=N;let w;e[6]===Symbol.for("react.memo_cache_sentinel")?(w=async function(s,m){await f("/api/response/unlock/"+s+"/"+m,"Error while unlocking "+m+" "+s+" survey response: ",m+" "+s+" survey response unlocked")},e[6]=w):w=e[6];const z=w,A=l.length>0&&l.every(he),M=window.location.origin+"/data?preview";let P;e[7]===Symbol.for("react.memo_cache_sentinel")?(P=t.jsx(ae,{}),e[7]=P):P=e[7];let R;e[8]===Symbol.for("react.memo_cache_sentinel")?(R={maxWidth:"100rem"},e[8]=R):R=e[8];let T;e[9]===Symbol.for("react.memo_cache_sentinel")?(T=t.jsx(se,{}),e[9]=T):T=e[9];const B=!A;let I;e[10]===Symbol.for("react.memo_cache_sentinel")?(I={pointerEvents:"auto",width:"10rem",margin:"1rem"},e[10]=I):I=e[10];let S;e[11]!==B?(S=t.jsx(y,{onClick:E,disabled:B,style:I,title:"Create a new survey for the next year. Only possible if all current surveys are published.",children:"start new survey"}),e[11]=B,e[12]=S):S=e[12];let k;if(e[13]!==l){let x;e[15]===Symbol.for("react.memo_cache_sentinel")?(x=(s,m)=>t.jsxs(F.Item,{eventKey:m.toString(),children:[t.jsxs(F.Header,{children:[s.year," - ",s.status]}),t.jsxs(F.Body,{children:[t.jsxs("div",{style:{marginLeft:".5rem",marginBottom:"1rem"},children:[t.jsx(W,{to:`/survey/admin/edit/${s.year}`,target:"_blank",children:t.jsx(y,{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(W,{to:`/survey/admin/try/${s.year}`,target:"_blank",children:t.jsx(y,{style:{marginLeft:".5rem"},title:"Open the survey exactly as the nrens will see it, but without any nren data.",children:"Try Survey"})}),s.status==o.closed&&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==o.closed,onClick:()=>j(s.year,"open")}),s.status==o.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==o.open,onClick:()=>j(s.year,"close")}),(s.status==o.preview||s.status==o.published)&&t.jsx(C,{text:"Validate surveys",helpText:"Validate all survey responses. This will check if all required questions are answered and if the answers are in the correct format.",enabled:s.status==o.preview||s.status==o.published,onClick:async()=>{let a=!0;const v=[...s.responses].sort(de);for(const b of v){const g=await U(s.year,b.nren.name);g?h.success(`${b.nren.name} ${s.year} survey is valid.`):h.error(`${b.nren.name} ${s.year} survey is not valid.`),a=a&&g}a?h.success("All surveys are valid"):h.error(`Some surveys are not valid. +import{r as $,h as K,j as t,i as X,_ as Q,c as G,y,a7 as Y,L as W,E as q,R as Z}from"./index-DBbSOdjk.js";import{A as F,l as ee}from"./lodash-YlUwNVit.js";import{T as te}from"./Table-DNomfHX4.js";import{V as h,O as se}from"./index-BYMaAaj9.js";import{v as ne,o as re,S as o}from"./validation-COFmylEH.js";import{a as V}from"./survey-3meXCY6T.js";import{S as ae}from"./SurveySidebar-C_LqylD3.js";import"./hook-D9Tuu5oJ.js";import"./SideBar-DfD7Pj8p.js";const H=$.forwardRef(({bsPrefix:e,variant:n,animation:l="border",size:r,as:i="div",className:c,...d},p)=>{e=K(e,"spinner");const f=`${e}-${l}`;return t.jsx(i,{ref:p,...d,className:X(c,f,r&&`${f}-${r}`,n&&`text-${n}`)})});H.displayName="Spinner";function ie(e){return Q({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 oe(e){return Q({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 D(e){const n=G.c(4),{status:l}=e;let r;n[0]===Symbol.for("react.memo_cache_sentinel")?(r=t.jsx(y,{variant:"success",size:"sm",children:t.jsx("strong",{children:"Completed"})}),n[0]=r):r=n[0];let i;n[1]===Symbol.for("react.memo_cache_sentinel")?(i=t.jsx(y,{variant:"warning",size:"sm",children:t.jsx("strong",{children:"Started"})}),n[1]=i):i=n[1];let c;n[2]===Symbol.for("react.memo_cache_sentinel")?(c=t.jsx(y,{variant:"danger",size:"sm",children:t.jsx("strong",{children:"Did not respond"})}),n[2]=c):c=n[2];let d;return n[3]===Symbol.for("react.memo_cache_sentinel")?(d={completed:r,started:i,"did not respond":c,"not started":t.jsx(y,{variant:"info",size:"sm",children:t.jsx("strong",{children:"Not started"})}),true:t.jsx(ie,{size:24,color:"green"}),false:t.jsx(oe,{size:24,color:"red"})},n[3]=d):d=n[3],d[l]||l}async function U(e,n){const{Model:l,FunctionFactory:r,Serializer:i}=await Y(async()=>{const{Model:j,FunctionFactory:w,Serializer:z}=await import("./survey.core-Dz7VpPEK.js").then(A=>A.s);return{Model:j,FunctionFactory:w,Serializer:z}},[]);function c(){const j=i.getAllPropertiesByName("customDescription"),w=i.getAllPropertiesByName("hideCheckboxLabels");j.length||i.addProperty("itemvalue","customDescription:text"),w.length||i.addProperty("question","hideCheckboxLabels:boolean")}if(r.Instance.hasFunction("validateQuestion")||r.Instance.register("validateQuestion",ne),r.Instance.hasFunction("validateWebsiteUrl")||r.Instance.register("validateWebsiteUrl",re),!e||!n)return!0;const d=`/api/response/load/${e}/${n}`,p=await fetch(d),f=await p.json();if(!p.ok)throw"message"in f?new Error(f.message):new Error(`Request failed with status ${p.status}`);c();const u=new l(f.model);u.setVariable("surveyyear",e),u.setVariable("previousyear",parseInt(e)-1),u.showNavigationButtons=!1,u.requiredText="",u.data=f.data,u.clearIncorrectValues(!0);const E=u.validate.bind(u,!0,!0)();return(await fetch(`/api/response/validate/${e}/${n}`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({valid:E})})).ok?E:!0}function le(e,n,l){fetch("/api/survey/"+e+"/"+n+"/notes",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({notes:l||""})}).then(async r=>{const i=await r.json();r.ok?h.success("Notes saved"):h.error("Failed saving notes: "+i.message||r.statusText)}).catch(r=>{h.error("Failed saving notes: "+r)})}function C({text:e,helpText:n,onClick:l,enabled:r}){const[i,c]=$.useState(!1),d=async()=>{if(!i){c(!0);try{await l()}finally{c(!1)}}};return t.jsxs(y,{onClick:d,disabled:!r,style:{pointerEvents:"auto",marginLeft:".5rem"},title:n,children:[i&&t.jsx(H,{as:"span",animation:"border",size:"sm",role:"status","aria-hidden":"true"}),e]})}function we(){const e=G.c(21);let n;e[0]===Symbol.for("react.memo_cache_sentinel")?(n=[],e[0]=n):n=e[0];const[l,r]=$.useState(n),i=$.useRef(!1);let c,d;e[1]===Symbol.for("react.memo_cache_sentinel")?(c=()=>{V().then(x=>{r(x)})},d=[],e[1]=c,e[2]=d):(c=e[1],d=e[2]),$.useEffect(c,d);let p;e[3]===Symbol.for("react.memo_cache_sentinel")?(p=async function(s,m,a,v){const b=v===void 0?!1:v;try{b&&(s=s+"?dry_run=1");const g=await fetch(s,{method:"POST"}),O=await g.json();g.ok?(O.message&&console.log(O.message),b||h(a),V().then(J=>{r(J)})):h(m+O.message)}catch(g){h(m+g.message)}},e[3]=p):p=e[3];const f=p;let u;e[4]===Symbol.for("react.memo_cache_sentinel")?(u=async function(){await f("/api/survey/new","Failed creating new survey: ","Created new survey")},e[4]=u):u=e[4];const E=u;let N;e[5]===Symbol.for("react.memo_cache_sentinel")?(N=async function(s,m,a){const v=a===void 0?!1:a;if(i.current){h("Wait for status update to be finished...");return}i.current=!0,await f("/api/survey/"+m+"/"+s,"Error while updating "+s+" survey status to "+m+": ",s+" survey status updated to "+m,v),i.current=!1},e[5]=N):N=e[5];const j=N;let w;e[6]===Symbol.for("react.memo_cache_sentinel")?(w=async function(s,m){await f("/api/response/unlock/"+s+"/"+m,"Error while unlocking "+m+" "+s+" survey response: ",m+" "+s+" survey response unlocked")},e[6]=w):w=e[6];const z=w,A=l.length>0&&l.every(he),M=window.location.origin+"/data?preview";let P;e[7]===Symbol.for("react.memo_cache_sentinel")?(P=t.jsx(ae,{}),e[7]=P):P=e[7];let R;e[8]===Symbol.for("react.memo_cache_sentinel")?(R={maxWidth:"100rem"},e[8]=R):R=e[8];let T;e[9]===Symbol.for("react.memo_cache_sentinel")?(T=t.jsx(se,{}),e[9]=T):T=e[9];const B=!A;let I;e[10]===Symbol.for("react.memo_cache_sentinel")?(I={pointerEvents:"auto",width:"10rem",margin:"1rem"},e[10]=I):I=e[10];let S;e[11]!==B?(S=t.jsx(y,{onClick:E,disabled:B,style:I,title:"Create a new survey for the next year. Only possible if all current surveys are published.",children:"start new survey"}),e[11]=B,e[12]=S):S=e[12];let k;if(e[13]!==l){let x;e[15]===Symbol.for("react.memo_cache_sentinel")?(x=(s,m)=>t.jsxs(F.Item,{eventKey:m.toString(),children:[t.jsxs(F.Header,{children:[s.year," - ",s.status]}),t.jsxs(F.Body,{children:[t.jsxs("div",{style:{marginLeft:".5rem",marginBottom:"1rem"},children:[t.jsx(W,{to:`/survey/admin/edit/${s.year}`,target:"_blank",children:t.jsx(y,{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(W,{to:`/survey/admin/try/${s.year}`,target:"_blank",children:t.jsx(y,{style:{marginLeft:".5rem"},title:"Open the survey exactly as the nrens will see it, but without any nren data.",children:"Try Survey"})}),s.status==o.closed&&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==o.closed,onClick:()=>j(s.year,"open")}),s.status==o.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==o.open,onClick:()=>j(s.year,"close")}),(s.status==o.preview||s.status==o.published)&&t.jsx(C,{text:"Validate surveys",helpText:"Validate all survey responses. This will check if all required questions are answered and if the answers are in the correct format.",enabled:s.status==o.preview||s.status==o.published,onClick:async()=>{let a=!0;const v=[...s.responses].sort(de);for(const b of v){const g=await U(s.year,b.nren.name);g?h.success(`${b.nren.name} ${s.year} survey is valid.`):h.error(`${b.nren.name} ${s.year} survey is not valid.`),a=a&&g}a?h.success("All surveys are valid"):h.error(`Some surveys are not valid. Please check the responses`),V().then(b=>{r(b)})}}),(s.status==o.closed||s.status==o.preview)&&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==o.closed||s.status==o.preview,onClick:()=>j(s.year,"preview")}),(s.status==o.preview||s.status==o.published)&&t.jsxs(t.Fragment,{children:[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==o.preview||s.status==o.published,onClick:()=>j(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==o.preview||s.status==o.published,onClick:()=>j(s.year,"publish")}),s.status==o.preview&&t.jsxs("span",{children:[" Preview link: ",t.jsx("a",{href:M,children:M})]})]})]}),t.jsxs(te,{children:[t.jsxs("colgroup",{children:[t.jsx("col",{style:{width:"10%"}}),t.jsx("col",{style:{width:"10%"}}),t.jsx("col",{style:{width:"10%"}}),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:"Response Status"}),t.jsx("th",{children:"Response Valid"}),t.jsx("th",{children:"Lock"}),t.jsx("th",{children:"Management Notes"}),t.jsx("th",{children:"Actions"})]})}),t.jsx("tbody",{children:s.responses.map(a=>t.jsxs("tr",{children:[t.jsx("td",{children:a.nren.name}),t.jsx("td",{children:t.jsx(D,{status:a.status})}),t.jsx("td",{children:t.jsx(D,{status:a.valid?"true":"false"})}),t.jsx("td",{style:{textWrap:"wrap",wordWrap:"break-word",maxWidth:"10rem"},children:a.lock_description}),t.jsx("td",{children:"notes"in a&&t.jsx("textarea",{onInput:ee.debounce(v=>le(s.year,a.nren.id,v.target.value),1e3),style:{minWidth:"100%",minHeight:"5rem"},placeholder:"Notes for this survey",defaultValue:a.notes||""})}),t.jsxs("td",{children:[t.jsx(W,{to:`/survey/response/${s.year}/${a.nren.name}`,target:"_blank",children:t.jsx(y,{style:{pointerEvents:"auto",margin:".5rem"},title:"Open the responses of the NREN.",children:"open"})}),t.jsx(y,{onClick:()=>z(s.year,a.nren.name),disabled:a.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"}),a.status=="completed"&&t.jsx(y,{onClick:()=>{U(s.year,a.nren.name).then(v=>{v?h.success("Survey is valid"):h.error(`${a.nren.name} ${s.year} survey is not valid. Please check the response`),V().then(b=>{r(b)})}).catch(ce)},style:{pointerEvents:"auto"},children:"Validate Survey"})]})]},a.nren.id))})]})]})]},s.year),e[15]=x):x=e[15],k=l.map(x),e[13]=l,e[14]=k}else k=e[14];let _;e[16]!==k?(_=t.jsx(F,{defaultActiveKey:"0",children:k}),e[16]=k,e[17]=_):_=e[17];let L;return e[18]!==S||e[19]!==_?(L=t.jsxs(t.Fragment,{children:[P,t.jsx(q,{className:"py-5 grey-container",children:t.jsx(q,{style:R,children:t.jsxs(Z,{children:[T,S,_]})})})]}),e[18]=S,e[19]=_,e[20]=L):L=e[20],L}function ce(e){h.error("Failed validating survey: "+e)}function de(e,n){return e.nren.name.localeCompare(n.nren.name)}function he(e){return e.status==o.published}export{we as default}; diff --git a/compendium_v2/static/SurveySidebar-CfKoK4Gq.js b/compendium_v2/static/SurveySidebar-C_LqylD3.js similarity index 84% rename from compendium_v2/static/SurveySidebar-CfKoK4Gq.js rename to compendium_v2/static/SurveySidebar-C_LqylD3.js index efd67106c9801445672dafc5b6f7b2d2b0d13b1c..fc3758edff6e7f18ac7c70fee2d09dd6717f97d1 100644 --- a/compendium_v2/static/SurveySidebar-CfKoK4Gq.js +++ b/compendium_v2/static/SurveySidebar-C_LqylD3.js @@ -1 +1 @@ -import{c as a,j as s,a2 as m}from"./index-CgRqQtHZ.js";import{S as o}from"./SideBar-Dgfa8b_s.js";const h=()=>{const e=a.c(4);let r;e[0]===Symbol.for("react.memo_cache_sentinel")?(r=s.jsx("h5",{className:"section-title",children:"Management Links"}),e[0]=r):r=e[0];let t;e[1]===Symbol.for("react.memo_cache_sentinel")?(t=s.jsx(m,{to:"/survey",children:s.jsx("span",{children:"Survey Home"})}),e[1]=t):t=e[1];let n;e[2]===Symbol.for("react.memo_cache_sentinel")?(n=s.jsx(m,{to:"/survey/admin/users",children:s.jsx("span",{children:"Compendium User Management"})}),e[2]=n):n=e[2];let i;return e[3]===Symbol.for("react.memo_cache_sentinel")?(i=s.jsxs(o,{survey:!0,children:[r,t,n,s.jsx(m,{to:"/survey/admin/surveys",children:s.jsx("span",{children:"Compendium Survey Management"})})]}),e[3]=i):i=e[3],i};export{h as S}; +import{c as a,j as s,a2 as m}from"./index-DBbSOdjk.js";import{S as o}from"./SideBar-DfD7Pj8p.js";const h=()=>{const e=a.c(4);let r;e[0]===Symbol.for("react.memo_cache_sentinel")?(r=s.jsx("h5",{className:"section-title",children:"Management Links"}),e[0]=r):r=e[0];let t;e[1]===Symbol.for("react.memo_cache_sentinel")?(t=s.jsx(m,{to:"/survey",children:s.jsx("span",{children:"Survey Home"})}),e[1]=t):t=e[1];let n;e[2]===Symbol.for("react.memo_cache_sentinel")?(n=s.jsx(m,{to:"/survey/admin/users",children:s.jsx("span",{children:"Compendium User Management"})}),e[2]=n):n=e[2];let i;return e[3]===Symbol.for("react.memo_cache_sentinel")?(i=s.jsxs(o,{survey:!0,children:[r,t,n,s.jsx(m,{to:"/survey/admin/surveys",children:s.jsx("span",{children:"Compendium Survey Management"})})]}),e[3]=i):i=e[3],i};export{h as S}; diff --git a/compendium_v2/static/Table-ggua9_yJ.js b/compendium_v2/static/Table-DNomfHX4.js similarity index 88% rename from compendium_v2/static/Table-ggua9_yJ.js rename to compendium_v2/static/Table-DNomfHX4.js index 2f1b559eca6dd34f25655bce487c3d61048c5638..62e91950cf1f2ca5059ba3d1444b78d97fa008fa 100644 --- a/compendium_v2/static/Table-ggua9_yJ.js +++ b/compendium_v2/static/Table-DNomfHX4.js @@ -1 +1 @@ -import{r as m,h as j,i as u,j as l}from"./index-CgRqQtHZ.js";const N=m.forwardRef(({bsPrefix:c,className:f,striped:e,bordered:i,borderless:n,hover:d,size:a,variant:o,responsive:r,...x},p)=>{const s=j(c,"table"),b=u(f,s,o&&`${s}-${o}`,a&&`${s}-${a}`,e&&`${s}-${typeof e=="string"?`striped-${e}`:"striped"}`,i&&`${s}-bordered`,n&&`${s}-borderless`,d&&`${s}-hover`),$=l.jsx("table",{...x,className:b,ref:p});if(r){let t=`${s}-responsive`;return typeof r=="string"&&(t=`${t}-${r}`),l.jsx("div",{className:t,children:$})}return $});export{N as T}; +import{r as m,h as j,i as u,j as l}from"./index-DBbSOdjk.js";const N=m.forwardRef(({bsPrefix:c,className:f,striped:e,bordered:i,borderless:n,hover:d,size:a,variant:o,responsive:r,...x},p)=>{const s=j(c,"table"),b=u(f,s,o&&`${s}-${o}`,a&&`${s}-${a}`,e&&`${s}-${typeof e=="string"?`striped-${e}`:"striped"}`,i&&`${s}-bordered`,n&&`${s}-borderless`,d&&`${s}-hover`),$=l.jsx("table",{...x,className:b,ref:p});if(r){let t=`${s}-responsive`;return typeof r=="string"&&(t=`${t}-${r}`),l.jsx("div",{className:t,children:$})}return $});export{N as T}; diff --git a/compendium_v2/static/TrafficRatio-BApEJk3Q.js b/compendium_v2/static/TrafficRatio-hTxXFYQn.js similarity index 87% rename from compendium_v2/static/TrafficRatio-BApEJk3Q.js rename to compendium_v2/static/TrafficRatio-hTxXFYQn.js index aa24bcb1d871fff719e095147e23a83840d1be77..c164047022b9756e74f952b07715e05ecbd55aa9 100644 --- a/compendium_v2/static/TrafficRatio-BApEJk3Q.js +++ b/compendium_v2/static/TrafficRatio-hTxXFYQn.js @@ -1 +1 @@ -import{c as C,r as L,F as E,j as x,S as F,t as Y}from"./index-CgRqQtHZ.js";import{B as $}from"./index-BMzrLxRb.js";import{C as g,a as v,L as A,B,p as O,c as M,d as P,u as T,N as W,D as q,F as z}from"./useData-CnR6ocTl.js";import{h as G,W as H}from"./HTMLLegendPlugin-Dd1EPe9c.js";import"./SideBar-Dgfa8b_s.js";import"./xlsx-BHRztzV8.js";import"./index-DgKDGaow.js";import"./hook-DDOSKqdF.js";g.register(v,A,B,O,M,P);const J={maintainAspectRatio:!1,animation:{duration:0},plugins:{htmlLegend:{containerIDs:["legendtop","legendbottom"]},legend:{display:!1},tooltip:{callbacks:{label:function(e){let t=e.dataset.label||"";return e.parsed.x!==null&&(t+=`: ${e.parsed.x}%`),t}}}},scales:{x:{position:"top",stacked:!0,ticks:{callback:(e,t)=>`${t*10}%`}},x2:{ticks:{callback:e=>typeof e=="number"?`${e}%`:e},grid:{drawOnChartArea:!1},afterDataLimits:function(e){const t=Object.keys(g.instances);let a=-999999,i=999999;for(const s of t)g.instances[s]&&e.chart.scales.x2&&(i=Math.min(g.instances[s].scales.x.min,i),a=Math.max(g.instances[s].scales.x.max,a));e.chart.scales.x2.options.min=i,e.chart.scales.x2.options.max=a,e.chart.scales.x2.min=i,e.chart.scales.x2.max=a}},y:{stacked:!0,ticks:{autoSkip:!1}}},indexAxis:"y"};function ie(){const e=C.c(37),{filterSelection:t,setFilterSelection:a}=L.useContext(E),{data:i,years:s,nrens:n}=T("/api/traffic-ratio",a);let l,r,y,c;if(e[0]!==t||e[1]!==n||e[2]!==a||e[3]!==i||e[4]!==s){let b;e[9]!==t.selectedNrens||e[10]!==t.selectedYears?(b=S=>t.selectedYears.includes(S.year)&&t.selectedNrens.includes(S.nren),e[9]=t.selectedNrens,e[10]=t.selectedYears,e[11]=b):b=e[11],r=i.filter(b),c=W(r,t.selectedYears[0]);let d;e[12]!==s?(d=[...s],e[12]=s,e[13]=d):d=e[13];let p;e[14]!==n?(p=n.values(),e[14]=n,e[15]=p):p=e[15];let u;e[16]!==p?(u=[...p],e[16]=p,e[17]=u):u=e[17];let h;e[18]!==d||e[19]!==u?(h={availableYears:d,availableNrens:u},e[18]=d,e[19]=u,e[20]=h):h=e[20];let _;e[21]!==t||e[22]!==a||e[23]!==h?(_=x.jsx(z,{max1year:!0,filterOptions:h,filterSelection:t,setFilterSelection:a}),e[21]=t,e[22]=a,e[23]=h,e[24]=_):_=e[24],l=_,y=Array.from(new Set(r.map(Q))).map(S=>n.get(S)).filter(K),e[0]=t,e[1]=n,e[2]=a,e[3]=i,e[4]=s,e[5]=l,e[6]=r,e[7]=y,e[8]=c}else l=e[5],r=e[6],y=e[7],c=e[8];const j=y.length,R=Math.max(j*1.5,20),w=Y["traffic-ratio"],D=`${R}rem`;let o;e[25]!==D?(o={height:D},e[25]=D,e[26]=o):o=e[26];let k;e[27]===Symbol.for("react.memo_cache_sentinel")?(k=[G],e[27]=k):k=e[27];let f;e[28]!==c?(f=x.jsx($,{data:c,options:J,plugins:k}),e[28]=c,e[29]=f):f=e[29];let m;e[30]!==o||e[31]!==f?(m=x.jsx(H,{children:x.jsx("div",{className:"chart-container",style:o,children:f})}),e[30]=o,e[31]=f,e[32]=m):m=e[32];let N;return e[33]!==l||e[34]!==r||e[35]!==m?(N=x.jsx(q,{title:w,description:"The graph shows the ratio of commodity versus research and education traffic in NREN networks",category:F.Network,filter:l,data:r,filename:"types_of_traffic_in_nren_networks",children:m}),e[33]=l,e[34]=r,e[35]=m,e[36]=N):N=e[36],N}function K(e){return!!e}function Q(e){return e.nren}export{ie as default}; +import{c as C,r as L,F as E,j as x,S as F,t as Y}from"./index-DBbSOdjk.js";import{B as $}from"./index-DyJczNpq.js";import{C as g,a as v,L as A,B,p as O,c as M,d as P,u as T,N as W,D as q,F as z}from"./useData-CcKTpALT.js";import{h as G,W as H}from"./HTMLLegendPlugin-Ci0zt1Jy.js";import"./SideBar-DfD7Pj8p.js";import"./xlsx-BHRztzV8.js";import"./index-DkYuYqrz.js";import"./hook-D9Tuu5oJ.js";g.register(v,A,B,O,M,P);const J={maintainAspectRatio:!1,animation:{duration:0},plugins:{htmlLegend:{containerIDs:["legendtop","legendbottom"]},legend:{display:!1},tooltip:{callbacks:{label:function(e){let t=e.dataset.label||"";return e.parsed.x!==null&&(t+=`: ${e.parsed.x}%`),t}}}},scales:{x:{position:"top",stacked:!0,ticks:{callback:(e,t)=>`${t*10}%`}},x2:{ticks:{callback:e=>typeof e=="number"?`${e}%`:e},grid:{drawOnChartArea:!1},afterDataLimits:function(e){const t=Object.keys(g.instances);let a=-999999,i=999999;for(const s of t)g.instances[s]&&e.chart.scales.x2&&(i=Math.min(g.instances[s].scales.x.min,i),a=Math.max(g.instances[s].scales.x.max,a));e.chart.scales.x2.options.min=i,e.chart.scales.x2.options.max=a,e.chart.scales.x2.min=i,e.chart.scales.x2.max=a}},y:{stacked:!0,ticks:{autoSkip:!1}}},indexAxis:"y"};function ie(){const e=C.c(37),{filterSelection:t,setFilterSelection:a}=L.useContext(E),{data:i,years:s,nrens:n}=T("/api/traffic-ratio",a);let l,r,y,c;if(e[0]!==t||e[1]!==n||e[2]!==a||e[3]!==i||e[4]!==s){let b;e[9]!==t.selectedNrens||e[10]!==t.selectedYears?(b=S=>t.selectedYears.includes(S.year)&&t.selectedNrens.includes(S.nren),e[9]=t.selectedNrens,e[10]=t.selectedYears,e[11]=b):b=e[11],r=i.filter(b),c=W(r,t.selectedYears[0]);let d;e[12]!==s?(d=[...s],e[12]=s,e[13]=d):d=e[13];let p;e[14]!==n?(p=n.values(),e[14]=n,e[15]=p):p=e[15];let u;e[16]!==p?(u=[...p],e[16]=p,e[17]=u):u=e[17];let h;e[18]!==d||e[19]!==u?(h={availableYears:d,availableNrens:u},e[18]=d,e[19]=u,e[20]=h):h=e[20];let _;e[21]!==t||e[22]!==a||e[23]!==h?(_=x.jsx(z,{max1year:!0,filterOptions:h,filterSelection:t,setFilterSelection:a}),e[21]=t,e[22]=a,e[23]=h,e[24]=_):_=e[24],l=_,y=Array.from(new Set(r.map(Q))).map(S=>n.get(S)).filter(K),e[0]=t,e[1]=n,e[2]=a,e[3]=i,e[4]=s,e[5]=l,e[6]=r,e[7]=y,e[8]=c}else l=e[5],r=e[6],y=e[7],c=e[8];const j=y.length,R=Math.max(j*1.5,20),w=Y["traffic-ratio"],D=`${R}rem`;let o;e[25]!==D?(o={height:D},e[25]=D,e[26]=o):o=e[26];let k;e[27]===Symbol.for("react.memo_cache_sentinel")?(k=[G],e[27]=k):k=e[27];let f;e[28]!==c?(f=x.jsx($,{data:c,options:J,plugins:k}),e[28]=c,e[29]=f):f=e[29];let m;e[30]!==o||e[31]!==f?(m=x.jsx(H,{children:x.jsx("div",{className:"chart-container",style:o,children:f})}),e[30]=o,e[31]=f,e[32]=m):m=e[32];let N;return e[33]!==l||e[34]!==r||e[35]!==m?(N=x.jsx(q,{title:w,description:"The graph shows the ratio of commodity versus research and education traffic in NREN networks",category:F.Network,filter:l,data:r,filename:"types_of_traffic_in_nren_networks",children:m}),e[33]=l,e[34]=r,e[35]=m,e[36]=N):N=e[36],N}function K(e){return!!e}function Q(e){return e.nren}export{ie as default}; diff --git a/compendium_v2/static/TrafficUrl-BYhWwa71.js b/compendium_v2/static/TrafficUrl-DMw44Rpa.js similarity index 77% rename from compendium_v2/static/TrafficUrl-BYhWwa71.js rename to compendium_v2/static/TrafficUrl-DMw44Rpa.js index 30bba7dcc95ccc8a1091357467caaf5830733ea8..c2ac8fc1d92b122365595ab057ea8792fea748fa 100644 --- a/compendium_v2/static/TrafficUrl-BYhWwa71.js +++ b/compendium_v2/static/TrafficUrl-DMw44Rpa.js @@ -1 +1 @@ -import{c as j,r as k,F as S,j as p,t as _,S as g}from"./index-CgRqQtHZ.js";import{u as v,q as y,k as L,i as R,D as T,F,f as U,s as w}from"./useData-CnR6ocTl.js";import{N as C}from"./NrenYearTable-Q6UAdf8a.js";import"./SideBar-Dgfa8b_s.js";import"./xlsx-BHRztzV8.js";import"./index-DgKDGaow.js";import"./hook-DDOSKqdF.js";import"./Table-ggua9_yJ.js";function G(){const e=j.c(21),{filterSelection:t,setFilterSelection:s}=k.useContext(S),{data:r,nrens:n}=v("/api/traffic-stats",s);let a,c;if(e[0]!==r||e[1]!==t.selectedNrens){const D=r?y(r):[];let m;e[4]!==t.selectedNrens?(m=h=>t.selectedNrens.includes(h.nren),e[4]=t.selectedNrens,e[5]=m):m=e[5],a=D.filter(m);const b=L(a);c=R(b,E),e[0]=r,e[1]=t.selectedNrens,e[2]=a,e[3]=c}else a=e[2],c=e[3];const x=c;let f;e[6]===Symbol.for("react.memo_cache_sentinel")?(f=[],e[6]=f):f=e[6];let i;e[7]!==n?(i=n.values(),e[7]=n,e[8]=i):i=e[8];let l;e[9]!==i?(l={availableYears:f,availableNrens:[...i]},e[9]=i,e[10]=l):l=e[10];let u;e[11]!==t||e[12]!==s||e[13]!==l?(u=p.jsx(F,{filterOptions:l,filterSelection:t,setFilterSelection:s,coloredYears:!0}),e[11]=t,e[12]=s,e[13]=l,e[14]=u):u=e[14];const N=u;let o;e[15]!==x?(o=p.jsx(U,{children:p.jsx(C,{data:x,columnTitle:"Traffic Statistics URL",dottedBorder:!0,noDots:!0,keysAreURLs:!0,removeDecoration:!0})}),e[15]=x,e[16]=o):o=e[16];let d;return e[17]!==N||e[18]!==a||e[19]!==o?(d=p.jsx(T,{title:_["traffic-stats"],description:"This table shows the URL links to NREN websites showing traffic statistics, if available.",category:g.Network,filter:N,data:a,filename:"traffic_stats_nrens_per_year",children:o}),e[17]=N,e[18]=a,e[19]=o,e[20]=d):d=e[20],d}function E(e,t){const s=w(t);if(s!=null)for(const[r,n]of Object.entries(s))e[r]=n}export{G as default}; +import{c as j,r as k,F as S,j as p,t as _,S as g}from"./index-DBbSOdjk.js";import{u as v,q as y,k as L,i as R,D as T,F,f as U,s as w}from"./useData-CcKTpALT.js";import{N as C}from"./NrenYearTable-C1JRhqy_.js";import"./SideBar-DfD7Pj8p.js";import"./xlsx-BHRztzV8.js";import"./index-DkYuYqrz.js";import"./hook-D9Tuu5oJ.js";import"./Table-DNomfHX4.js";function G(){const e=j.c(21),{filterSelection:t,setFilterSelection:s}=k.useContext(S),{data:r,nrens:n}=v("/api/traffic-stats",s);let a,c;if(e[0]!==r||e[1]!==t.selectedNrens){const D=r?y(r):[];let m;e[4]!==t.selectedNrens?(m=h=>t.selectedNrens.includes(h.nren),e[4]=t.selectedNrens,e[5]=m):m=e[5],a=D.filter(m);const b=L(a);c=R(b,E),e[0]=r,e[1]=t.selectedNrens,e[2]=a,e[3]=c}else a=e[2],c=e[3];const x=c;let f;e[6]===Symbol.for("react.memo_cache_sentinel")?(f=[],e[6]=f):f=e[6];let i;e[7]!==n?(i=n.values(),e[7]=n,e[8]=i):i=e[8];let l;e[9]!==i?(l={availableYears:f,availableNrens:[...i]},e[9]=i,e[10]=l):l=e[10];let u;e[11]!==t||e[12]!==s||e[13]!==l?(u=p.jsx(F,{filterOptions:l,filterSelection:t,setFilterSelection:s,coloredYears:!0}),e[11]=t,e[12]=s,e[13]=l,e[14]=u):u=e[14];const N=u;let o;e[15]!==x?(o=p.jsx(U,{children:p.jsx(C,{data:x,columnTitle:"Traffic Statistics URL",dottedBorder:!0,noDots:!0,keysAreURLs:!0,removeDecoration:!0})}),e[15]=x,e[16]=o):o=e[16];let d;return e[17]!==N||e[18]!==a||e[19]!==o?(d=p.jsx(T,{title:_["traffic-stats"],description:"This table shows the URL links to NREN websites showing traffic statistics, if available.",category:g.Network,filter:N,data:a,filename:"traffic_stats_nrens_per_year",children:o}),e[17]=N,e[18]=a,e[19]=o,e[20]=d):d=e[20],d}function E(e,t){const s=w(t);if(s!=null)for(const[r,n]of Object.entries(s))e[r]=n}export{G as default}; diff --git a/compendium_v2/static/TrafficVolume-Bv0Lld1C.js b/compendium_v2/static/TrafficVolume-CBGOlk8Z.js similarity index 91% rename from compendium_v2/static/TrafficVolume-Bv0Lld1C.js rename to compendium_v2/static/TrafficVolume-CBGOlk8Z.js index bc4a05dd084f7d04b7dfdd0c9853267b541ef4da..7a988b0ab8fcb4f720b4042c32575425410ed11f 100644 --- a/compendium_v2/static/TrafficVolume-Bv0Lld1C.js +++ b/compendium_v2/static/TrafficVolume-CBGOlk8Z.js @@ -1 +1 @@ -import{c as A,r as G,F as U,j as t,t as Y,S as $,C as P,R as W}from"./index-CgRqQtHZ.js";import{L as k}from"./index-BMzrLxRb.js";import{C as q,a as H,L as I,P as J,b as K,p as M,c as Q,d as X,u as Z,e as v,D as ee,F as te,f as se}from"./useData-CnR6ocTl.js";import{g as le}from"./charthelpers-D_bh9y-E.js";import"./SideBar-Dgfa8b_s.js";import"./xlsx-BHRztzV8.js";import"./index-DgKDGaow.js";import"./hook-DDOSKqdF.js";q.register(H,I,J,K,M,Q,X);function de(){const e=A.c(47),{filterSelection:l,setFilterSelection:_}=G.useContext(U),{data:V,nrens:B}=Z("/api/traffic-volume",_);let o,a,s,g,i;if(e[0]!==V||e[1]!==l.selectedNrens){let r;e[7]!==l.selectedNrens?(r=O=>l.selectedNrens.includes(O.nren),e[7]=l.selectedNrens,e[8]=r):r=e[8],s=V.filter(r),o=v(s,"from_customers"),i=v(s,"to_customers"),a=v(s,"from_external"),g=v(s,"to_external"),e[0]=V,e[1]=l.selectedNrens,e[2]=o,e[3]=a,e[4]=s,e[5]=g,e[6]=i}else o=e[2],a=e[3],s=e[4],g=e[5],i=e[6];const F=g;let N;e[9]===Symbol.for("react.memo_cache_sentinel")?(N=le({title:"Traffic Volume in PB",tooltipUnit:"PB",valueTransform(r){return r?r/1e3:0}}),e[9]=N):N=e[9];const b=N;let j;e[10]===Symbol.for("react.memo_cache_sentinel")?(j=[],e[10]=j):j=e[10];let n;e[11]!==B?(n=B.values(),e[11]=B,e[12]=n):n=e[12];let c;e[13]!==n?(c={availableYears:j,availableNrens:[...n]},e[13]=n,e[14]=c):c=e[14];let S;e[15]!==l||e[16]!==_||e[17]!==c?(S=t.jsx(te,{filterOptions:c,filterSelection:l,setFilterSelection:_}),e[15]=l,e[16]=_,e[17]=c,e[18]=S):S=e[18];const z=S;let y;e[19]===Symbol.for("react.memo_cache_sentinel")?(y=t.jsx("span",{children:"The four graphs below show the estimates of total annual traffic in PB (1000 TB) to & from NREN customers, and to & from external networks. NREN customers are taken to mean sources that are part of the NREN's connectivity remit, while external networks are understood as outside sources including GÉANT, the general/commercial internet, internet exchanges, peerings, other NRENs, etc."}),e[19]=y):y=e[19];let T;e[20]===Symbol.for("react.memo_cache_sentinel")?(T={marginBottom:"30px"},e[20]=T):T=e[20];let E;e[21]===Symbol.for("react.memo_cache_sentinel")?(E=t.jsx("span",{style:{fontSize:"20px",color:"rgb(85, 96, 156)",fontWeight:"bold"},children:"Traffic from NREN customer"}),e[21]=E):E=e[21];let f;e[22]!==o?(f=t.jsxs(P,{children:[E,t.jsx(k,{data:o,options:b})]}),e[22]=o,e[23]=f):f=e[23];let C;e[24]===Symbol.for("react.memo_cache_sentinel")?(C=t.jsx("span",{style:{fontSize:"20px",color:"rgb(221, 100, 57)",fontWeight:"bold"},children:"Traffic to NREN customer"}),e[24]=C):C=e[24];let m;e[25]!==i?(m=t.jsxs(P,{children:[C,t.jsx(k,{data:i,options:b})]}),e[25]=i,e[26]=m):m=e[26];let d;e[27]!==m||e[28]!==f?(d=t.jsxs(W,{style:T,children:[f,m]}),e[27]=m,e[28]=f,e[29]=d):d=e[29];let R;e[30]===Symbol.for("react.memo_cache_sentinel")?(R={marginTop:"30px"},e[30]=R):R=e[30];let w;e[31]===Symbol.for("react.memo_cache_sentinel")?(w=t.jsx("span",{style:{fontSize:"20px",color:"rgb(63, 143, 77)",fontWeight:"bold"},children:"Traffic from external network"}),e[31]=w):w=e[31];let h;e[32]!==a?(h=t.jsxs(P,{children:[w,t.jsx(k,{data:a,options:b})]}),e[32]=a,e[33]=h):h=e[33];let D;e[34]===Symbol.for("react.memo_cache_sentinel")?(D=t.jsx("span",{style:{fontSize:"20px",color:"rgb(173, 48, 51)",fontWeight:"bold"},children:"Traffic to external network"}),e[34]=D):D=e[34];let x;e[35]!==F?(x=t.jsxs(P,{children:[D,t.jsx(k,{data:F,options:b})]}),e[35]=F,e[36]=x):x=e[36];let p;e[37]!==h||e[38]!==x?(p=t.jsxs(W,{style:R,children:[h,x]}),e[37]=h,e[38]=x,e[39]=p):p=e[39];let u;e[40]!==d||e[41]!==p?(u=t.jsxs(se,{children:[d,p]}),e[40]=d,e[41]=p,e[42]=u):u=e[42];let L;return e[43]!==z||e[44]!==s||e[45]!==u?(L=t.jsx(ee,{title:Y["traffic-volume"],description:y,category:$.Network,filter:z,data:s,filename:"NREN_traffic_estimates_data",children:u}),e[43]=z,e[44]=s,e[45]=u,e[46]=L):L=e[46],L}export{de as default}; +import{c as A,r as G,F as U,j as t,t as Y,S as $,C as P,R as W}from"./index-DBbSOdjk.js";import{L as k}from"./index-DyJczNpq.js";import{C as q,a as H,L as I,P as J,b as K,p as M,c as Q,d as X,u as Z,e as v,D as ee,F as te,f as se}from"./useData-CcKTpALT.js";import{g as le}from"./charthelpers-CHBq5wBZ.js";import"./SideBar-DfD7Pj8p.js";import"./xlsx-BHRztzV8.js";import"./index-DkYuYqrz.js";import"./hook-D9Tuu5oJ.js";q.register(H,I,J,K,M,Q,X);function de(){const e=A.c(47),{filterSelection:l,setFilterSelection:_}=G.useContext(U),{data:V,nrens:B}=Z("/api/traffic-volume",_);let o,a,s,g,i;if(e[0]!==V||e[1]!==l.selectedNrens){let r;e[7]!==l.selectedNrens?(r=O=>l.selectedNrens.includes(O.nren),e[7]=l.selectedNrens,e[8]=r):r=e[8],s=V.filter(r),o=v(s,"from_customers"),i=v(s,"to_customers"),a=v(s,"from_external"),g=v(s,"to_external"),e[0]=V,e[1]=l.selectedNrens,e[2]=o,e[3]=a,e[4]=s,e[5]=g,e[6]=i}else o=e[2],a=e[3],s=e[4],g=e[5],i=e[6];const F=g;let N;e[9]===Symbol.for("react.memo_cache_sentinel")?(N=le({title:"Traffic Volume in PB",tooltipUnit:"PB",valueTransform(r){return r?r/1e3:0}}),e[9]=N):N=e[9];const b=N;let j;e[10]===Symbol.for("react.memo_cache_sentinel")?(j=[],e[10]=j):j=e[10];let n;e[11]!==B?(n=B.values(),e[11]=B,e[12]=n):n=e[12];let c;e[13]!==n?(c={availableYears:j,availableNrens:[...n]},e[13]=n,e[14]=c):c=e[14];let S;e[15]!==l||e[16]!==_||e[17]!==c?(S=t.jsx(te,{filterOptions:c,filterSelection:l,setFilterSelection:_}),e[15]=l,e[16]=_,e[17]=c,e[18]=S):S=e[18];const z=S;let y;e[19]===Symbol.for("react.memo_cache_sentinel")?(y=t.jsx("span",{children:"The four graphs below show the estimates of total annual traffic in PB (1000 TB) to & from NREN customers, and to & from external networks. NREN customers are taken to mean sources that are part of the NREN's connectivity remit, while external networks are understood as outside sources including GÉANT, the general/commercial internet, internet exchanges, peerings, other NRENs, etc."}),e[19]=y):y=e[19];let T;e[20]===Symbol.for("react.memo_cache_sentinel")?(T={marginBottom:"30px"},e[20]=T):T=e[20];let E;e[21]===Symbol.for("react.memo_cache_sentinel")?(E=t.jsx("span",{style:{fontSize:"20px",color:"rgb(85, 96, 156)",fontWeight:"bold"},children:"Traffic from NREN customer"}),e[21]=E):E=e[21];let f;e[22]!==o?(f=t.jsxs(P,{children:[E,t.jsx(k,{data:o,options:b})]}),e[22]=o,e[23]=f):f=e[23];let C;e[24]===Symbol.for("react.memo_cache_sentinel")?(C=t.jsx("span",{style:{fontSize:"20px",color:"rgb(221, 100, 57)",fontWeight:"bold"},children:"Traffic to NREN customer"}),e[24]=C):C=e[24];let m;e[25]!==i?(m=t.jsxs(P,{children:[C,t.jsx(k,{data:i,options:b})]}),e[25]=i,e[26]=m):m=e[26];let d;e[27]!==m||e[28]!==f?(d=t.jsxs(W,{style:T,children:[f,m]}),e[27]=m,e[28]=f,e[29]=d):d=e[29];let R;e[30]===Symbol.for("react.memo_cache_sentinel")?(R={marginTop:"30px"},e[30]=R):R=e[30];let w;e[31]===Symbol.for("react.memo_cache_sentinel")?(w=t.jsx("span",{style:{fontSize:"20px",color:"rgb(63, 143, 77)",fontWeight:"bold"},children:"Traffic from external network"}),e[31]=w):w=e[31];let h;e[32]!==a?(h=t.jsxs(P,{children:[w,t.jsx(k,{data:a,options:b})]}),e[32]=a,e[33]=h):h=e[33];let D;e[34]===Symbol.for("react.memo_cache_sentinel")?(D=t.jsx("span",{style:{fontSize:"20px",color:"rgb(173, 48, 51)",fontWeight:"bold"},children:"Traffic to external network"}),e[34]=D):D=e[34];let x;e[35]!==F?(x=t.jsxs(P,{children:[D,t.jsx(k,{data:F,options:b})]}),e[35]=F,e[36]=x):x=e[36];let p;e[37]!==h||e[38]!==x?(p=t.jsxs(W,{style:R,children:[h,x]}),e[37]=h,e[38]=x,e[39]=p):p=e[39];let u;e[40]!==d||e[41]!==p?(u=t.jsxs(se,{children:[d,p]}),e[40]=d,e[41]=p,e[42]=u):u=e[42];let L;return e[43]!==z||e[44]!==s||e[45]!==u?(L=t.jsx(ee,{title:Y["traffic-volume"],description:y,category:$.Network,filter:z,data:s,filename:"NREN_traffic_estimates_data",children:u}),e[43]=z,e[44]=s,e[45]=u,e[46]=L):L=e[46],L}export{de as default}; diff --git a/compendium_v2/static/UserManagementComponent-yhMDIQhJ.js b/compendium_v2/static/UserManagementComponent-C2zXLwZT.js similarity index 96% rename from compendium_v2/static/UserManagementComponent-yhMDIQhJ.js rename to compendium_v2/static/UserManagementComponent-C2zXLwZT.js index 903807232c9cf9715dceba51090ee3f34bb916ba..8b88316900e4f1956e4076eb83da62206c169811 100644 --- a/compendium_v2/static/UserManagementComponent-yhMDIQhJ.js +++ b/compendium_v2/static/UserManagementComponent-C2zXLwZT.js @@ -1 +1 @@ -import{r as x,h as Te,j as t,i as ke,ai as Re,c as Ae,aj as Ve,a1 as De,W as Se,y as Ue,E as Ge,R as Be}from"./index-CgRqQtHZ.js";import{V as de,O as Me}from"./index-CoA_s7ES.js";import{S as We}from"./SurveySidebar-CfKoK4Gq.js";import{c as qe,a as Le}from"./index-DgKDGaow.js";import{A as ae,l as He}from"./lodash-CV_RFKCE.js";import{T as Je}from"./Table-ggua9_yJ.js";import"./SideBar-Dgfa8b_s.js";import"./hook-DDOSKqdF.js";const me=x.forwardRef(({className:e,bsPrefix:s,as:r="span",...c},l)=>(s=Te(s,"input-group-text"),t.jsx(r,{ref:l,className:ke(e,s),...c})));me.displayName="InputGroupText";const Ke=e=>t.jsx(me,{children:t.jsx(Re,{type:"checkbox",...e})}),Ye=e=>t.jsx(me,{children:t.jsx(Re,{type:"radio",...e})}),$e=x.forwardRef(({bsPrefix:e,size:s,hasValidation:r,className:c,as:l="div",...a},h)=>{e=Te(e,"input-group");const d=x.useMemo(()=>({}),[]);return t.jsx(qe.Provider,{value:d,children:t.jsx(l,{ref:h,...a,className:ke(c,e,s&&`${e}-${s}`,r&&"has-validation")})})});$e.displayName="InputGroup";const Ee=Object.assign($e,{Text:me,Radio:Ye,Checkbox:Ke});function Qe(e){const s=Ae.c(10),{getConfig:r,setConfig:c}=x.useContext(Ve);let l;s[0]!==r||s[1]!==e?(l=r(e),s[0]=r,s[1]=e,s[2]=l):l=s[2];const a=l;let h;s[3]!==e||s[4]!==c?(h=(M,N)=>c(e,M,N),s[3]=e,s[4]=c,s[5]=h):h=s[5];let d;return s[6]!==a||s[7]!==e||s[8]!==h?(d={[e]:a,setConfig:h},s[6]=a,s[7]=e,s[8]=h,s[9]=d):d=s[9],d}async function Xe(){try{return await(await fetch("/api/user/list")).json()}catch{return[]}}async function Ze(){try{return await(await fetch("/api/nren/list")).json()}catch{return[]}}async function ze(e,s){const r={id:e,...s},c={method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify(r)},l=await fetch(`/api/user/${e}`,c),a=await l.json();if(!l.ok)throw new Error(a.message);return de.success(a.message),a.user}async function Pe(e){if(!window.confirm(`Are you sure you want to delete ${e.name} (${e.email})?`))return!1;const r={method:"DELETE",headers:{"Content-Type":"application/json"}},c=await fetch(`/api/user/${e.id}`,r),l=await c.json();if(!c.ok)throw new Error(l.message);return de.success(l.message),!0}const L=(e,s)=>e.role!=="admin"&&s.role==="admin"?1:e.role==="admin"&&s.role!=="admin"?-1:e.role==="user"&&s.role!=="user"?1:s.role==="user"&&e.role!=="user"?-1:!e.permissions.active&&s.permissions.active?1:e.permissions.active&&!s.permissions.active?-1:e.name.localeCompare(s.name);function ut(){const e=Ae.c(88);let s;e[0]===Symbol.for("react.memo_cache_sentinel")?(s=[],e[0]=s):s=e[0];const[r,c]=x.useState(s);let l;e[1]===Symbol.for("react.memo_cache_sentinel")?(l=[],e[1]=l):l=e[1];const[a,h]=x.useState(l),{user:d,setUser:M}=x.useContext(De);let N;e[2]===Symbol.for("react.memo_cache_sentinel")?(N={column:"ID",asc:!0},e[2]=N):N=e[2];const[f,Ne]=x.useState(N),[I,Ie]=x.useState(""),{setConfig:H,user_management:U}=Qe("user_management");let J;e[3]!==H||e[4]!==U?(J=(o,u)=>{const m=U??{},p=m==null?void 0:m.shownColumns;if(!p){H({...m,shownColumns:{[o]:u}});return}H({...m,shownColumns:{...p,[o]:u}})},e[3]=H,e[4]=U,e[5]=J):J=e[5];const ue=J;let K;e[6]!==U?(K=o=>{const u=U;if(!u)return!0;const m=u.shownColumns;return m?m[o]??!0:!0},e[6]=U,e[7]=K):K=e[7];const i=K;let Y,Q;e[8]===Symbol.for("react.memo_cache_sentinel")?(Y=()=>{Xe().then(o=>{c(o)}),Ze().then(o=>{h(o.sort(nt))})},Q=[],e[8]=Y,e[9]=Q):(Y=e[8],Q=e[9]),x.useEffect(Y,Q);let X;e[10]!==d.id||e[11]!==M||e[12]!==r?(X=(o,u)=>{const m=r.findIndex(v=>v.id===u.id),p=[...r],{name:q}=o.target,_={};q==="active"?_[q]=o.target.checked:_[q]=o.target.value,ze(u.id,_).then(v=>{v.id===d.id?M(v):(p[m]=v,c(p))}).catch(st)},e[10]=d.id,e[11]=M,e[12]=r,e[13]=X):X=e[13];const W=X;let Z;e[14]!==a?(Z=o=>{var u;return(u=a.find(m=>m.id==o||m.name==o))==null?void 0:u.id},e[14]=a,e[15]=Z):Z=e[15];const fe=Z,Fe=tt,z=et;let E,T,k,j,y,g,R,A,C,w,b,$,F;if(e[16]!==I||e[17]!==fe||e[18]!==i||e[19]!==W||e[20]!==d||e[21]!==a||e[22]!==ue||e[23]!==f.asc||e[24]!==f.column||e[25]!==r){const o=["ID","Active","Role","Email","Full Name","OIDC Sub","NREN","Actions"],u={[o[1]]:Fe,[o[2]]:z("role"),[o[3]]:z("email"),[o[4]]:z("name"),[o[6]]:z("nrens")},m=n=>{n===f.column?Ne({column:n,asc:!f.asc}):Ne({column:n,asc:!0})},p={};Array.from(Object.keys(u)).includes(f.column)?p[f.column]={"aria-sort":f.asc?"ascending":"descending"}:p[o[0]]={"aria-sort":f.asc?"ascending":"descending"};const q=u[f.column]??L,v=(I?r.filter(n=>n.email.includes(I)||n.name.includes(I)):r).filter(n=>n.id!==d.id).sort(q);f.asc||v.reverse(),e[39]===Symbol.for("react.memo_cache_sentinel")?(w=t.jsx(We,{}),b=t.jsx(Me,{}),e[39]=w,e[40]=b):(w=e[39],b=e[40]),T=Ge,A="py-5 grey-container";let ee;e[41]===Symbol.for("react.memo_cache_sentinel")?(ee=t.jsx("div",{className:"text-center w-100 mb-3",children:t.jsx("h3",{children:"User Management Page"})}),e[41]=ee):ee=e[41];let te;e[42]===Symbol.for("react.memo_cache_sentinel")?(te={width:"30rem"},e[42]=te):te=e[42];let se;e[43]===Symbol.for("react.memo_cache_sentinel")?(se=t.jsxs(ae.Header,{children:[t.jsx("span",{className:"me-2",children:"Column Visibility"}),t.jsx("small",{className:"text-muted",children:"Choose which columns to display"})]}),e[43]=se):se=e[43];let ne;e[44]===Symbol.for("react.memo_cache_sentinel")?(ne=t.jsx("small",{className:"text-muted mb-2 d-block",children:"Select which columns you want to display in the table below. Unchecked columns will be hidden."}),e[44]=ne):ne=e[44];let oe;e[45]===Symbol.for("react.memo_cache_sentinel")?(oe={gridTemplateColumns:"repeat(auto-fill, minmax(150px, 1fr))",gap:"10px"},e[45]=oe):oe=e[45];const he=t.jsx("div",{className:"d-grid",style:oe,children:o.map(n=>t.jsx(Se.Check,{type:"checkbox",id:`column-${n}`,label:n,checked:i(n),onChange:S=>ue(n,S.target.checked)},n))});let B;e[46]!==he?(B=t.jsx(ae,{className:"mb-3",style:te,children:t.jsxs(ae.Item,{eventKey:"0",children:[se,t.jsx(ae.Body,{children:t.jsxs(Se.Control,{as:"div",className:"p-3",children:[ne,he]})})]})}),e[46]=he,e[47]=B):B=e[47];let re,le;e[48]===Symbol.for("react.memo_cache_sentinel")?(re={width:"30rem"},le=t.jsx(Ee.Text,{id:"search-text",children:"Search"}),e[48]=re,e[49]=le):(re=e[48],le=e[49]);let ie;e[50]===Symbol.for("react.memo_cache_sentinel")?(ie=t.jsx(Se.Control,{placeholder:"Search by email/name","aria-label":"Search",onInput:He.debounce(n=>Ie(n.target.value),200)}),e[50]=ie):ie=e[50];let ce;e[51]===Symbol.for("react.memo_cache_sentinel")?(ce=t.jsxs(Ee,{className:"mb-3",style:re,children:[le,ie,t.jsx(Ue,{variant:"outline-secondary",onClick:()=>{Ie("")},children:"Clear"})]}),e[51]=ce):ce=e[51],e[52]!==B?(C=t.jsxs(Be,{className:"d-flex justify-content-center align-items-center flex-column",children:[ee,B,ce]}),e[52]=B,e[53]=C):C=e[53],R="d-flex justify-content-center",e[54]===Symbol.for("react.memo_cache_sentinel")?(g={maxWidth:"100rem"},e[54]=g):g=e[54],E=Je,F="user-management-table",k=!0;const pe=i(o[0])&&t.jsx("col",{span:1,style:{width:"8rem"}}),xe=i(o[1])&&t.jsx("col",{span:1,style:{width:"3rem"}}),je=i(o[2])&&t.jsx("col",{span:1,style:{width:"4.5rem"}}),ye=i(o[3])&&t.jsx("col",{span:1,style:{width:"7rem"}}),ge=i(o[4])&&t.jsx("col",{span:1,style:{width:"5rem"}}),Ce=i(o[5])&&t.jsx("col",{span:1,style:{width:"5rem"}}),we=i(o[6])&&t.jsx("col",{span:1,style:{width:"6rem"}}),be=i(o[7])&&t.jsx("col",{span:1,style:{width:"3rem"}});e[55]!==pe||e[56]!==xe||e[57]!==je||e[58]!==ye||e[59]!==ge||e[60]!==Ce||e[61]!==we||e[62]!==be?(j=t.jsxs("colgroup",{children:[pe,xe,je,ye,ge,Ce,we,be]}),e[55]=pe,e[56]=xe,e[57]=je,e[58]=ye,e[59]=ge,e[60]=Ce,e[61]=we,e[62]=be,e[63]=j):j=e[63];const ve=t.jsx("tr",{children:o.map(n=>i(n)&&t.jsx("th",{...p[n],onClick:()=>m(n),className:"sortable fixed-column",style:{border:"1px solid #ddd"},children:n},n))});e[64]!==ve?(y=t.jsx("thead",{children:ve}),e[64]=ve,e[65]=y):y=e[65],$=t.jsx("tbody",{children:(I?[]:[d]).concat(v).map(n=>t.jsxs("tr",{style:{fontWeight:n.id==d.id?"bold":"normal"},children:[i(o[0])&&t.jsx("td",{style:{border:"1px dotted #ddd"},children:n.id}),i(o[1])&&t.jsx("td",{style:{border:"1px dotted #ddd"},children:n.id==d.id?t.jsx(Le,{}):t.jsx("input",{type:"checkbox",name:"active",checked:n.permissions.active,onChange:S=>W(S,n)})}),i(o[2])&&t.jsx("td",{style:{border:"1px dotted #ddd"},children:n.id==d.id?n.role.charAt(0).toUpperCase()+n.role.slice(1):t.jsxs("select",{name:"role",defaultValue:n.role,onChange:S=>W(S,n),style:{width:"100%"},children:[t.jsx("option",{value:"admin",children:"Admin"}),t.jsx("option",{value:"user",children:"User"}),t.jsx("option",{value:"observer",children:"Observer"})]})}),i(o[3])&&t.jsx("td",{style:{border:"1px dotted #ddd"},children:n.email}),i(o[4])&&t.jsx("td",{style:{border:"1px dotted #ddd"},children:n.name}),i(o[5])&&t.jsx("td",{style:{border:"1px dotted #ddd"},children:n.oidc_sub}),i(o[6])&&t.jsx("td",{style:{border:"1px dotted #ddd"},children:t.jsxs("select",{name:"nren",multiple:!1,value:n.nrens.length>0?fe(n.nrens[0]):"",onChange:S=>W(S,n),children:[t.jsx("option",{value:"",children:"Select NREN"}),a.map(_e)]})}),i(o[7])&&t.jsx("td",{style:{border:"1px dotted #ddd"},children:n.id!==d.id&&t.jsx(Ue,{variant:"danger",onClick:async()=>{if(n.id===d.id){de.error("You cannot delete yourself");return}await Pe(n)&&c(r.filter(Oe=>Oe.id!==n.id))},children:"Delete"})})]},n.id))}),e[16]=I,e[17]=fe,e[18]=i,e[19]=W,e[20]=d,e[21]=a,e[22]=ue,e[23]=f.asc,e[24]=f.column,e[25]=r,e[26]=E,e[27]=T,e[28]=k,e[29]=j,e[30]=y,e[31]=g,e[32]=R,e[33]=A,e[34]=C,e[35]=w,e[36]=b,e[37]=$,e[38]=F}else E=e[26],T=e[27],k=e[28],j=e[29],y=e[30],g=e[31],R=e[32],A=e[33],C=e[34],w=e[35],b=e[36],$=e[37],F=e[38];let O;e[66]!==E||e[67]!==k||e[68]!==j||e[69]!==y||e[70]!==$||e[71]!==F?(O=t.jsxs(E,{className:F,bordered:k,children:[j,y,$]}),e[66]=E,e[67]=k,e[68]=j,e[69]=y,e[70]=$,e[71]=F,e[72]=O):O=e[72];let V;e[73]!==g||e[74]!==O?(V=t.jsx("div",{style:g,children:O}),e[73]=g,e[74]=O,e[75]=V):V=e[75];let D;e[76]!==R||e[77]!==V?(D=t.jsx("div",{className:R,children:V}),e[76]=R,e[77]=V,e[78]=D):D=e[78];let G;e[79]!==T||e[80]!==A||e[81]!==C||e[82]!==D?(G=t.jsxs(T,{className:A,children:[C,D]}),e[79]=T,e[80]=A,e[81]=C,e[82]=D,e[83]=G):G=e[83];let P;return e[84]!==w||e[85]!==b||e[86]!==G?(P=t.jsxs(t.Fragment,{children:[w,b,G]}),e[84]=w,e[85]=b,e[86]=G,e[87]=P):P=e[87],P}function _e(e){return t.jsx("option",{value:e.id,children:e.name},e.id)}function et(e){return(s,r)=>{const c=s[e],l=r[e];if(e==="nrens")return s.nrens.length===0&&r.nrens.length===0?L(s,r):s.nrens.length===0?-1:r.nrens.length===0?1:s.nrens[0].localeCompare(r.nrens[0]);if(typeof c!="string"||typeof l!="string")return L(s,r);const a=c.localeCompare(l);return a===0?L(s,r):a}}function tt(e,s){return e.permissions.active&&!s.permissions.active?1:!e.permissions.active&&s.permissions.active?-1:L(e,s)}function st(e){de.error(e.message)}function nt(e,s){return e.name.localeCompare(s.name)}export{ut as default}; +import{r as x,h as Te,j as t,i as ke,ai as Re,c as Ae,aj as Ve,a1 as De,W as Se,y as Ue,E as Ge,R as Be}from"./index-DBbSOdjk.js";import{V as de,O as Me}from"./index-BYMaAaj9.js";import{S as We}from"./SurveySidebar-C_LqylD3.js";import{c as qe,a as Le}from"./index-DkYuYqrz.js";import{A as ae,l as He}from"./lodash-YlUwNVit.js";import{T as Je}from"./Table-DNomfHX4.js";import"./SideBar-DfD7Pj8p.js";import"./hook-D9Tuu5oJ.js";const me=x.forwardRef(({className:e,bsPrefix:s,as:r="span",...c},l)=>(s=Te(s,"input-group-text"),t.jsx(r,{ref:l,className:ke(e,s),...c})));me.displayName="InputGroupText";const Ke=e=>t.jsx(me,{children:t.jsx(Re,{type:"checkbox",...e})}),Ye=e=>t.jsx(me,{children:t.jsx(Re,{type:"radio",...e})}),$e=x.forwardRef(({bsPrefix:e,size:s,hasValidation:r,className:c,as:l="div",...a},h)=>{e=Te(e,"input-group");const d=x.useMemo(()=>({}),[]);return t.jsx(qe.Provider,{value:d,children:t.jsx(l,{ref:h,...a,className:ke(c,e,s&&`${e}-${s}`,r&&"has-validation")})})});$e.displayName="InputGroup";const Ee=Object.assign($e,{Text:me,Radio:Ye,Checkbox:Ke});function Qe(e){const s=Ae.c(10),{getConfig:r,setConfig:c}=x.useContext(Ve);let l;s[0]!==r||s[1]!==e?(l=r(e),s[0]=r,s[1]=e,s[2]=l):l=s[2];const a=l;let h;s[3]!==e||s[4]!==c?(h=(M,N)=>c(e,M,N),s[3]=e,s[4]=c,s[5]=h):h=s[5];let d;return s[6]!==a||s[7]!==e||s[8]!==h?(d={[e]:a,setConfig:h},s[6]=a,s[7]=e,s[8]=h,s[9]=d):d=s[9],d}async function Xe(){try{return await(await fetch("/api/user/list")).json()}catch{return[]}}async function Ze(){try{return await(await fetch("/api/nren/list")).json()}catch{return[]}}async function ze(e,s){const r={id:e,...s},c={method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify(r)},l=await fetch(`/api/user/${e}`,c),a=await l.json();if(!l.ok)throw new Error(a.message);return de.success(a.message),a.user}async function Pe(e){if(!window.confirm(`Are you sure you want to delete ${e.name} (${e.email})?`))return!1;const r={method:"DELETE",headers:{"Content-Type":"application/json"}},c=await fetch(`/api/user/${e.id}`,r),l=await c.json();if(!c.ok)throw new Error(l.message);return de.success(l.message),!0}const L=(e,s)=>e.role!=="admin"&&s.role==="admin"?1:e.role==="admin"&&s.role!=="admin"?-1:e.role==="user"&&s.role!=="user"?1:s.role==="user"&&e.role!=="user"?-1:!e.permissions.active&&s.permissions.active?1:e.permissions.active&&!s.permissions.active?-1:e.name.localeCompare(s.name);function ut(){const e=Ae.c(88);let s;e[0]===Symbol.for("react.memo_cache_sentinel")?(s=[],e[0]=s):s=e[0];const[r,c]=x.useState(s);let l;e[1]===Symbol.for("react.memo_cache_sentinel")?(l=[],e[1]=l):l=e[1];const[a,h]=x.useState(l),{user:d,setUser:M}=x.useContext(De);let N;e[2]===Symbol.for("react.memo_cache_sentinel")?(N={column:"ID",asc:!0},e[2]=N):N=e[2];const[f,Ne]=x.useState(N),[I,Ie]=x.useState(""),{setConfig:H,user_management:U}=Qe("user_management");let J;e[3]!==H||e[4]!==U?(J=(o,u)=>{const m=U??{},p=m==null?void 0:m.shownColumns;if(!p){H({...m,shownColumns:{[o]:u}});return}H({...m,shownColumns:{...p,[o]:u}})},e[3]=H,e[4]=U,e[5]=J):J=e[5];const ue=J;let K;e[6]!==U?(K=o=>{const u=U;if(!u)return!0;const m=u.shownColumns;return m?m[o]??!0:!0},e[6]=U,e[7]=K):K=e[7];const i=K;let Y,Q;e[8]===Symbol.for("react.memo_cache_sentinel")?(Y=()=>{Xe().then(o=>{c(o)}),Ze().then(o=>{h(o.sort(nt))})},Q=[],e[8]=Y,e[9]=Q):(Y=e[8],Q=e[9]),x.useEffect(Y,Q);let X;e[10]!==d.id||e[11]!==M||e[12]!==r?(X=(o,u)=>{const m=r.findIndex(v=>v.id===u.id),p=[...r],{name:q}=o.target,_={};q==="active"?_[q]=o.target.checked:_[q]=o.target.value,ze(u.id,_).then(v=>{v.id===d.id?M(v):(p[m]=v,c(p))}).catch(st)},e[10]=d.id,e[11]=M,e[12]=r,e[13]=X):X=e[13];const W=X;let Z;e[14]!==a?(Z=o=>{var u;return(u=a.find(m=>m.id==o||m.name==o))==null?void 0:u.id},e[14]=a,e[15]=Z):Z=e[15];const fe=Z,Fe=tt,z=et;let E,T,k,j,y,g,R,A,C,w,b,$,F;if(e[16]!==I||e[17]!==fe||e[18]!==i||e[19]!==W||e[20]!==d||e[21]!==a||e[22]!==ue||e[23]!==f.asc||e[24]!==f.column||e[25]!==r){const o=["ID","Active","Role","Email","Full Name","OIDC Sub","NREN","Actions"],u={[o[1]]:Fe,[o[2]]:z("role"),[o[3]]:z("email"),[o[4]]:z("name"),[o[6]]:z("nrens")},m=n=>{n===f.column?Ne({column:n,asc:!f.asc}):Ne({column:n,asc:!0})},p={};Array.from(Object.keys(u)).includes(f.column)?p[f.column]={"aria-sort":f.asc?"ascending":"descending"}:p[o[0]]={"aria-sort":f.asc?"ascending":"descending"};const q=u[f.column]??L,v=(I?r.filter(n=>n.email.includes(I)||n.name.includes(I)):r).filter(n=>n.id!==d.id).sort(q);f.asc||v.reverse(),e[39]===Symbol.for("react.memo_cache_sentinel")?(w=t.jsx(We,{}),b=t.jsx(Me,{}),e[39]=w,e[40]=b):(w=e[39],b=e[40]),T=Ge,A="py-5 grey-container";let ee;e[41]===Symbol.for("react.memo_cache_sentinel")?(ee=t.jsx("div",{className:"text-center w-100 mb-3",children:t.jsx("h3",{children:"User Management Page"})}),e[41]=ee):ee=e[41];let te;e[42]===Symbol.for("react.memo_cache_sentinel")?(te={width:"30rem"},e[42]=te):te=e[42];let se;e[43]===Symbol.for("react.memo_cache_sentinel")?(se=t.jsxs(ae.Header,{children:[t.jsx("span",{className:"me-2",children:"Column Visibility"}),t.jsx("small",{className:"text-muted",children:"Choose which columns to display"})]}),e[43]=se):se=e[43];let ne;e[44]===Symbol.for("react.memo_cache_sentinel")?(ne=t.jsx("small",{className:"text-muted mb-2 d-block",children:"Select which columns you want to display in the table below. Unchecked columns will be hidden."}),e[44]=ne):ne=e[44];let oe;e[45]===Symbol.for("react.memo_cache_sentinel")?(oe={gridTemplateColumns:"repeat(auto-fill, minmax(150px, 1fr))",gap:"10px"},e[45]=oe):oe=e[45];const he=t.jsx("div",{className:"d-grid",style:oe,children:o.map(n=>t.jsx(Se.Check,{type:"checkbox",id:`column-${n}`,label:n,checked:i(n),onChange:S=>ue(n,S.target.checked)},n))});let B;e[46]!==he?(B=t.jsx(ae,{className:"mb-3",style:te,children:t.jsxs(ae.Item,{eventKey:"0",children:[se,t.jsx(ae.Body,{children:t.jsxs(Se.Control,{as:"div",className:"p-3",children:[ne,he]})})]})}),e[46]=he,e[47]=B):B=e[47];let re,le;e[48]===Symbol.for("react.memo_cache_sentinel")?(re={width:"30rem"},le=t.jsx(Ee.Text,{id:"search-text",children:"Search"}),e[48]=re,e[49]=le):(re=e[48],le=e[49]);let ie;e[50]===Symbol.for("react.memo_cache_sentinel")?(ie=t.jsx(Se.Control,{placeholder:"Search by email/name","aria-label":"Search",onInput:He.debounce(n=>Ie(n.target.value),200)}),e[50]=ie):ie=e[50];let ce;e[51]===Symbol.for("react.memo_cache_sentinel")?(ce=t.jsxs(Ee,{className:"mb-3",style:re,children:[le,ie,t.jsx(Ue,{variant:"outline-secondary",onClick:()=>{Ie("")},children:"Clear"})]}),e[51]=ce):ce=e[51],e[52]!==B?(C=t.jsxs(Be,{className:"d-flex justify-content-center align-items-center flex-column",children:[ee,B,ce]}),e[52]=B,e[53]=C):C=e[53],R="d-flex justify-content-center",e[54]===Symbol.for("react.memo_cache_sentinel")?(g={maxWidth:"100rem"},e[54]=g):g=e[54],E=Je,F="user-management-table",k=!0;const pe=i(o[0])&&t.jsx("col",{span:1,style:{width:"8rem"}}),xe=i(o[1])&&t.jsx("col",{span:1,style:{width:"3rem"}}),je=i(o[2])&&t.jsx("col",{span:1,style:{width:"4.5rem"}}),ye=i(o[3])&&t.jsx("col",{span:1,style:{width:"7rem"}}),ge=i(o[4])&&t.jsx("col",{span:1,style:{width:"5rem"}}),Ce=i(o[5])&&t.jsx("col",{span:1,style:{width:"5rem"}}),we=i(o[6])&&t.jsx("col",{span:1,style:{width:"6rem"}}),be=i(o[7])&&t.jsx("col",{span:1,style:{width:"3rem"}});e[55]!==pe||e[56]!==xe||e[57]!==je||e[58]!==ye||e[59]!==ge||e[60]!==Ce||e[61]!==we||e[62]!==be?(j=t.jsxs("colgroup",{children:[pe,xe,je,ye,ge,Ce,we,be]}),e[55]=pe,e[56]=xe,e[57]=je,e[58]=ye,e[59]=ge,e[60]=Ce,e[61]=we,e[62]=be,e[63]=j):j=e[63];const ve=t.jsx("tr",{children:o.map(n=>i(n)&&t.jsx("th",{...p[n],onClick:()=>m(n),className:"sortable fixed-column",style:{border:"1px solid #ddd"},children:n},n))});e[64]!==ve?(y=t.jsx("thead",{children:ve}),e[64]=ve,e[65]=y):y=e[65],$=t.jsx("tbody",{children:(I?[]:[d]).concat(v).map(n=>t.jsxs("tr",{style:{fontWeight:n.id==d.id?"bold":"normal"},children:[i(o[0])&&t.jsx("td",{style:{border:"1px dotted #ddd"},children:n.id}),i(o[1])&&t.jsx("td",{style:{border:"1px dotted #ddd"},children:n.id==d.id?t.jsx(Le,{}):t.jsx("input",{type:"checkbox",name:"active",checked:n.permissions.active,onChange:S=>W(S,n)})}),i(o[2])&&t.jsx("td",{style:{border:"1px dotted #ddd"},children:n.id==d.id?n.role.charAt(0).toUpperCase()+n.role.slice(1):t.jsxs("select",{name:"role",defaultValue:n.role,onChange:S=>W(S,n),style:{width:"100%"},children:[t.jsx("option",{value:"admin",children:"Admin"}),t.jsx("option",{value:"user",children:"User"}),t.jsx("option",{value:"observer",children:"Observer"})]})}),i(o[3])&&t.jsx("td",{style:{border:"1px dotted #ddd"},children:n.email}),i(o[4])&&t.jsx("td",{style:{border:"1px dotted #ddd"},children:n.name}),i(o[5])&&t.jsx("td",{style:{border:"1px dotted #ddd"},children:n.oidc_sub}),i(o[6])&&t.jsx("td",{style:{border:"1px dotted #ddd"},children:t.jsxs("select",{name:"nren",multiple:!1,value:n.nrens.length>0?fe(n.nrens[0]):"",onChange:S=>W(S,n),children:[t.jsx("option",{value:"",children:"Select NREN"}),a.map(_e)]})}),i(o[7])&&t.jsx("td",{style:{border:"1px dotted #ddd"},children:n.id!==d.id&&t.jsx(Ue,{variant:"danger",onClick:async()=>{if(n.id===d.id){de.error("You cannot delete yourself");return}await Pe(n)&&c(r.filter(Oe=>Oe.id!==n.id))},children:"Delete"})})]},n.id))}),e[16]=I,e[17]=fe,e[18]=i,e[19]=W,e[20]=d,e[21]=a,e[22]=ue,e[23]=f.asc,e[24]=f.column,e[25]=r,e[26]=E,e[27]=T,e[28]=k,e[29]=j,e[30]=y,e[31]=g,e[32]=R,e[33]=A,e[34]=C,e[35]=w,e[36]=b,e[37]=$,e[38]=F}else E=e[26],T=e[27],k=e[28],j=e[29],y=e[30],g=e[31],R=e[32],A=e[33],C=e[34],w=e[35],b=e[36],$=e[37],F=e[38];let O;e[66]!==E||e[67]!==k||e[68]!==j||e[69]!==y||e[70]!==$||e[71]!==F?(O=t.jsxs(E,{className:F,bordered:k,children:[j,y,$]}),e[66]=E,e[67]=k,e[68]=j,e[69]=y,e[70]=$,e[71]=F,e[72]=O):O=e[72];let V;e[73]!==g||e[74]!==O?(V=t.jsx("div",{style:g,children:O}),e[73]=g,e[74]=O,e[75]=V):V=e[75];let D;e[76]!==R||e[77]!==V?(D=t.jsx("div",{className:R,children:V}),e[76]=R,e[77]=V,e[78]=D):D=e[78];let G;e[79]!==T||e[80]!==A||e[81]!==C||e[82]!==D?(G=t.jsxs(T,{className:A,children:[C,D]}),e[79]=T,e[80]=A,e[81]=C,e[82]=D,e[83]=G):G=e[83];let P;return e[84]!==w||e[85]!==b||e[86]!==G?(P=t.jsxs(t.Fragment,{children:[w,b,G]}),e[84]=w,e[85]=b,e[86]=G,e[87]=P):P=e[87],P}function _e(e){return t.jsx("option",{value:e.id,children:e.name},e.id)}function et(e){return(s,r)=>{const c=s[e],l=r[e];if(e==="nrens")return s.nrens.length===0&&r.nrens.length===0?L(s,r):s.nrens.length===0?-1:r.nrens.length===0?1:s.nrens[0].localeCompare(r.nrens[0]);if(typeof c!="string"||typeof l!="string")return L(s,r);const a=c.localeCompare(l);return a===0?L(s,r):a}}function tt(e,s){return e.permissions.active&&!s.permissions.active?1:!e.permissions.active&&s.permissions.active?-1:L(e,s)}function st(e){de.error(e.message)}function nt(e,s){return e.name.localeCompare(s.name)}export{ut as default}; diff --git a/compendium_v2/static/WeatherMap-CwN_0f8A.js b/compendium_v2/static/WeatherMap-C2uAbI_g.js similarity index 77% rename from compendium_v2/static/WeatherMap-CwN_0f8A.js rename to compendium_v2/static/WeatherMap-C2uAbI_g.js index 04c6ef4fb9f5e08ee9706463aef70b5d0f356471..d926dac36af2370c92db864d243b1e01ae6821de 100644 --- a/compendium_v2/static/WeatherMap-CwN_0f8A.js +++ b/compendium_v2/static/WeatherMap-C2uAbI_g.js @@ -1 +1 @@ -import{c as b,r as k,F as w,j as m,t as g,S as j}from"./index-CgRqQtHZ.js";import{u as S,q as v,k as y,i as F,D as L,F as R,f as C}from"./useData-CnR6ocTl.js";import{N as E}from"./NrenYearTable-Q6UAdf8a.js";import"./SideBar-Dgfa8b_s.js";import"./xlsx-BHRztzV8.js";import"./index-DgKDGaow.js";import"./hook-DDOSKqdF.js";import"./Table-ggua9_yJ.js";function O(){const e=b.c(21),{filterSelection:t,setFilterSelection:o}=k.useContext(w),{data:i,nrens:d}=S("/api/weather-map",o);let a,n;if(e[0]!==i||e[1]!==t.selectedNrens){const x=i?v(i):[];let u;e[4]!==t.selectedNrens?(u=_=>t.selectedNrens.includes(_.nren),e[4]=t.selectedNrens,e[5]=u):u=e[5],a=x.filter(u);const D=y(a);n=F(D,T),e[0]=i,e[1]=t.selectedNrens,e[2]=a,e[3]=n}else a=e[2],n=e[3];const h=n;let c;e[6]===Symbol.for("react.memo_cache_sentinel")?(c=[],e[6]=c):c=e[6];let s;e[7]!==d?(s=d.values(),e[7]=d,e[8]=s):s=e[8];let r;e[9]!==s?(r={availableYears:c,availableNrens:[...s]},e[9]=s,e[10]=r):r=e[10];let f;e[11]!==t||e[12]!==o||e[13]!==r?(f=m.jsx(R,{filterOptions:r,filterSelection:t,setFilterSelection:o,coloredYears:!0}),e[11]=t,e[12]=o,e[13]=r,e[14]=f):f=e[14];const N=f;let l;e[15]!==h?(l=m.jsx(C,{children:m.jsx(E,{data:h,columnTitle:"Network Weather Map",dottedBorder:!0,noDots:!0,keysAreURLs:!0,removeDecoration:!0})}),e[15]=h,e[16]=l):l=e[16];let p;return e[17]!==N||e[18]!==a||e[19]!==l?(p=m.jsx(L,{title:g["weather-map"],description:"This table shows the URL links to NREN websites showing weather map, if available.",category:j.Network,filter:N,data:a,filename:"weather_map_nrens_per_year",children:l}),e[17]=N,e[18]=a,e[19]=l,e[20]=p):p=e[20],p}function T(e,t){!!t.url&&(e[t.url]=t.url)}export{O as default}; +import{c as b,r as k,F as w,j as m,t as g,S as j}from"./index-DBbSOdjk.js";import{u as S,q as v,k as y,i as F,D as L,F as R,f as C}from"./useData-CcKTpALT.js";import{N as E}from"./NrenYearTable-C1JRhqy_.js";import"./SideBar-DfD7Pj8p.js";import"./xlsx-BHRztzV8.js";import"./index-DkYuYqrz.js";import"./hook-D9Tuu5oJ.js";import"./Table-DNomfHX4.js";function O(){const e=b.c(21),{filterSelection:t,setFilterSelection:o}=k.useContext(w),{data:i,nrens:d}=S("/api/weather-map",o);let a,n;if(e[0]!==i||e[1]!==t.selectedNrens){const x=i?v(i):[];let u;e[4]!==t.selectedNrens?(u=_=>t.selectedNrens.includes(_.nren),e[4]=t.selectedNrens,e[5]=u):u=e[5],a=x.filter(u);const D=y(a);n=F(D,T),e[0]=i,e[1]=t.selectedNrens,e[2]=a,e[3]=n}else a=e[2],n=e[3];const h=n;let c;e[6]===Symbol.for("react.memo_cache_sentinel")?(c=[],e[6]=c):c=e[6];let s;e[7]!==d?(s=d.values(),e[7]=d,e[8]=s):s=e[8];let r;e[9]!==s?(r={availableYears:c,availableNrens:[...s]},e[9]=s,e[10]=r):r=e[10];let f;e[11]!==t||e[12]!==o||e[13]!==r?(f=m.jsx(R,{filterOptions:r,filterSelection:t,setFilterSelection:o,coloredYears:!0}),e[11]=t,e[12]=o,e[13]=r,e[14]=f):f=e[14];const N=f;let l;e[15]!==h?(l=m.jsx(C,{children:m.jsx(E,{data:h,columnTitle:"Network Weather Map",dottedBorder:!0,noDots:!0,keysAreURLs:!0,removeDecoration:!0})}),e[15]=h,e[16]=l):l=e[16];let p;return e[17]!==N||e[18]!==a||e[19]!==l?(p=m.jsx(L,{title:g["weather-map"],description:"This table shows the URL links to NREN websites showing weather map, if available.",category:j.Network,filter:N,data:a,filename:"weather_map_nrens_per_year",children:l}),e[17]=N,e[18]=a,e[19]=l,e[20]=p):p=e[20],p}function T(e,t){!!t.url&&(e[t.url]=t.url)}export{O as default}; diff --git a/compendium_v2/static/charthelpers-D_bh9y-E.js b/compendium_v2/static/charthelpers-CHBq5wBZ.js similarity index 96% rename from compendium_v2/static/charthelpers-D_bh9y-E.js rename to compendium_v2/static/charthelpers-CHBq5wBZ.js index a53f8271cc5030866b5131238b19de3757377ce6..9e39b0fa8d73a07b1cfd25419b270f02ba21e3bc 100644 --- a/compendium_v2/static/charthelpers-D_bh9y-E.js +++ b/compendium_v2/static/charthelpers-CHBq5wBZ.js @@ -1 +1 @@ -import{C as l}from"./useData-CnR6ocTl.js";const x=({title:i,unit:c,tooltipPrefix:r,tooltipUnit:o,tickLimit:n,valueTransform:t})=>({responsive:!0,elements:{point:{pointStyle:"circle",pointRadius:4,pointBorderWidth:2,pointBackgroundColor:"white"}},animation:{duration:0},plugins:{legend:{display:!1},tooltip:{callbacks:{label:function(a){let s=r??(a.dataset.label||"");const e=t?t(a.parsed.y):a.parsed.y;return a.parsed.y!==null&&(s+=`: ${e} ${o||""}`),s}}}},scales:{y:{title:{display:!!i,text:i||""},ticks:{autoSkip:!0,maxTicksLimit:n,callback:a=>`${typeof a=="string"?a:t?t(a):a} ${c||""}`}}}}),y=({title:i,unit:c,tooltipPrefix:r,tooltipUnit:o,valueTransform:n})=>({maintainAspectRatio:!1,layout:{padding:{right:60}},animation:{duration:0},plugins:{legend:{display:!1},chartDataLabels:{font:{family:'"Open Sans", sans-serif'}},tooltip:{callbacks:{label:function(t){let a=r??(t.dataset.label||"");const s=n?n(t.parsed.x):t.parsed.x;return t.parsed.y!==null&&(a+=`: ${s} ${o||""}`),a}}}},scales:{x:{title:{display:!!i,text:i||""},position:"top",ticks:{callback:t=>t&&`${n?n(t):t} ${c||""}`}},x2:{title:{display:!!i,text:i||""},ticks:{callback:t=>t&&`${n?n(t):t} ${c||""}`},grid:{drawOnChartArea:!1},afterDataLimits:function(t){const a=Object.keys(l.instances);let s=-999999,e=999999;for(const d of a)l.instances[d]&&t.chart.scales.x2&&(e=Math.min(l.instances[d].scales.x.min,e),s=Math.max(l.instances[d].scales.x.max,s));t.chart.scales.x2.options.min=e,t.chart.scales.x2.options.max=s,t.chart.scales.x2.min=e,t.chart.scales.x2.max=s}},y:{stacked:!0,ticks:{autoSkip:!1}}},indexAxis:"y"});export{y as a,x as g}; +import{C as l}from"./useData-CcKTpALT.js";const x=({title:i,unit:c,tooltipPrefix:r,tooltipUnit:o,tickLimit:n,valueTransform:t})=>({responsive:!0,elements:{point:{pointStyle:"circle",pointRadius:4,pointBorderWidth:2,pointBackgroundColor:"white"}},animation:{duration:0},plugins:{legend:{display:!1},tooltip:{callbacks:{label:function(a){let s=r??(a.dataset.label||"");const e=t?t(a.parsed.y):a.parsed.y;return a.parsed.y!==null&&(s+=`: ${e} ${o||""}`),s}}}},scales:{y:{title:{display:!!i,text:i||""},ticks:{autoSkip:!0,maxTicksLimit:n,callback:a=>`${typeof a=="string"?a:t?t(a):a} ${c||""}`}}}}),y=({title:i,unit:c,tooltipPrefix:r,tooltipUnit:o,valueTransform:n})=>({maintainAspectRatio:!1,layout:{padding:{right:60}},animation:{duration:0},plugins:{legend:{display:!1},chartDataLabels:{font:{family:'"Open Sans", sans-serif'}},tooltip:{callbacks:{label:function(t){let a=r??(t.dataset.label||"");const s=n?n(t.parsed.x):t.parsed.x;return t.parsed.y!==null&&(a+=`: ${s} ${o||""}`),a}}}},scales:{x:{title:{display:!!i,text:i||""},position:"top",ticks:{callback:t=>t&&`${n?n(t):t} ${c||""}`}},x2:{title:{display:!!i,text:i||""},ticks:{callback:t=>t&&`${n?n(t):t} ${c||""}`},grid:{drawOnChartArea:!1},afterDataLimits:function(t){const a=Object.keys(l.instances);let s=-999999,e=999999;for(const d of a)l.instances[d]&&t.chart.scales.x2&&(e=Math.min(l.instances[d].scales.x.min,e),s=Math.max(l.instances[d].scales.x.max,s));t.chart.scales.x2.options.min=e,t.chart.scales.x2.options.max=s,t.chart.scales.x2.min=e,t.chart.scales.x2.max=s}},y:{stacked:!0,ticks:{autoSkip:!1}}},indexAxis:"y"});export{y as a,x as g}; diff --git a/compendium_v2/static/chartjs-plugin-datalabels.esm-B3Gf8X6A.js b/compendium_v2/static/chartjs-plugin-datalabels.esm-C6J4S2ma.js similarity index 99% rename from compendium_v2/static/chartjs-plugin-datalabels.esm-B3Gf8X6A.js rename to compendium_v2/static/chartjs-plugin-datalabels.esm-C6J4S2ma.js index f2d9b6d83aa1bef58225445d768a9c95d17b4a09..519fa347e4629c99a1ff69ff5626f40e822a6cd0 100644 --- a/compendium_v2/static/chartjs-plugin-datalabels.esm-B3Gf8X6A.js +++ b/compendium_v2/static/chartjs-plugin-datalabels.esm-C6J4S2ma.js @@ -1,4 +1,4 @@ -import{x as g,y as J,z as f,A as K,E as q,G as V,H as W,I as p,J as Y,P as Q,B as Z,K as ee,M as re}from"./useData-CnR6ocTl.js";/*! +import{x as g,y as J,z as f,A as K,E as q,G as V,H as W,I as p,J as Y,P as Q,B as Z,K as ee,M as re}from"./useData-CcKTpALT.js";/*! * chartjs-plugin-datalabels v2.2.0 * https://chartjs-plugin-datalabels.netlify.app * (c) 2017-2022 chartjs-plugin-datalabels contributors diff --git a/compendium_v2/static/hook-DDOSKqdF.js b/compendium_v2/static/hook-D9Tuu5oJ.js similarity index 94% rename from compendium_v2/static/hook-DDOSKqdF.js rename to compendium_v2/static/hook-D9Tuu5oJ.js index bd2c5cbefb9c70a7804cc54c88478d481f4e285b..16c4ce096c8a860f264e8030efd7e1fc87b48ce0 100644 --- a/compendium_v2/static/hook-DDOSKqdF.js +++ b/compendium_v2/static/hook-D9Tuu5oJ.js @@ -1 +1 @@ -import{$ as d,r as p}from"./index-CgRqQtHZ.js";function m(){return m=Object.assign?Object.assign.bind():function(r){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var e in n)({}).hasOwnProperty.call(n,e)&&(r[e]=n[e])}return r},m.apply(null,arguments)}function b(r){return"default"+r.charAt(0).toUpperCase()+r.substr(1)}function y(r){var t=P(r,"string");return typeof t=="symbol"?t:String(t)}function P(r,t){if(typeof r!="object"||r===null)return r;var n=r[Symbol.toPrimitive];if(n!==void 0){var e=n.call(r,t);if(typeof e!="object")return e;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(r)}function g(r,t,n){var e=p.useRef(r!==void 0),o=p.useState(t),a=o[0],f=o[1],i=r!==void 0,l=e.current;return e.current=i,!i&&l&&a!==t&&f(t),[i?r:a,p.useCallback(function(c){for(var u=arguments.length,v=new Array(u>1?u-1:0),s=1;s<u;s++)v[s-1]=arguments[s];n&&n.apply(void 0,[c].concat(v)),f(c)},[n])]}function j(r,t){return Object.keys(t).reduce(function(n,e){var o,a=n,f=a[b(e)],i=a[e],l=d(a,[b(e),e].map(y)),c=t[e],u=g(i,f,r[c]),v=u[0],s=u[1];return m({},l,(o={},o[e]=v,o[c]=s,o))},r)}export{j as u}; +import{$ as d,r as p}from"./index-DBbSOdjk.js";function m(){return m=Object.assign?Object.assign.bind():function(r){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var e in n)({}).hasOwnProperty.call(n,e)&&(r[e]=n[e])}return r},m.apply(null,arguments)}function b(r){return"default"+r.charAt(0).toUpperCase()+r.substr(1)}function y(r){var t=P(r,"string");return typeof t=="symbol"?t:String(t)}function P(r,t){if(typeof r!="object"||r===null)return r;var n=r[Symbol.toPrimitive];if(n!==void 0){var e=n.call(r,t);if(typeof e!="object")return e;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(r)}function g(r,t,n){var e=p.useRef(r!==void 0),o=p.useState(t),a=o[0],f=o[1],i=r!==void 0,l=e.current;return e.current=i,!i&&l&&a!==t&&f(t),[i?r:a,p.useCallback(function(c){for(var u=arguments.length,v=new Array(u>1?u-1:0),s=1;s<u;s++)v[s-1]=arguments[s];n&&n.apply(void 0,[c].concat(v)),f(c)},[n])]}function j(r,t){return Object.keys(t).reduce(function(n,e){var o,a=n,f=a[b(e)],i=a[e],l=d(a,[b(e),e].map(y)),c=t[e],u=g(i,f,r[c]),v=u[0],s=u[1];return m({},l,(o={},o[e]=v,o[c]=s,o))},r)}export{j as u}; diff --git a/compendium_v2/static/index-CoA_s7ES.js b/compendium_v2/static/index-BYMaAaj9.js similarity index 99% rename from compendium_v2/static/index-CoA_s7ES.js rename to compendium_v2/static/index-BYMaAaj9.js index bf945a372552ea18ba305fa8f621d8c17e9111cb..983535bdbf1bb77477527be98620ea3c6afe4e39 100644 --- a/compendium_v2/static/index-CoA_s7ES.js +++ b/compendium_v2/static/index-BYMaAaj9.js @@ -1,4 +1,4 @@ -import{r as c}from"./index-CgRqQtHZ.js";let T={data:""},F=e=>typeof window=="object"?((e?e.querySelector("#_goober"):window._goober)||Object.assign((e||document.head).appendChild(document.createElement("style")),{innerHTML:" ",id:"_goober"})).firstChild:e||T,_=/(?:([\u0080-\uFFFF\w-%@]+) *:? *([^{;]+?);|([^;}{]*?) *{)|(}\s*)/g,H=/\/\*[^]*?\*\/| +/g,z=/\n+/g,b=(e,t)=>{let r="",i="",n="";for(let a in e){let o=e[a];a[0]=="@"?a[1]=="i"?r=a+" "+o+";":i+=a[1]=="f"?b(o,a):a+"{"+b(o,a[1]=="k"?"":t)+"}":typeof o=="object"?i+=b(o,t?t.replace(/([^,])+/g,s=>a.replace(/([^,]*:\S+\([^)]*\))|([^,])+/g,l=>/&/.test(l)?l.replace(/&/g,s):s?s+" "+l:l)):a):o!=null&&(a=/^--/.test(a)?a:a.replace(/[A-Z]/g,"-$&").toLowerCase(),n+=b.p?b.p(a,o):a+":"+o+";")}return r+(t&&n?t+"{"+n+"}":n)+i},y={},P=e=>{if(typeof e=="object"){let t="";for(let r in e)t+=r+P(e[r]);return t}return e},L=(e,t,r,i,n)=>{let a=P(e),o=y[a]||(y[a]=(l=>{let d=0,u=11;for(;d<l.length;)u=101*u+l.charCodeAt(d++)>>>0;return"go"+u})(a));if(!y[o]){let l=a!==e?e:(d=>{let u,m,f=[{}];for(;u=_.exec(d.replace(H,""));)u[4]?f.shift():u[3]?(m=u[3].replace(z," ").trim(),f.unshift(f[0][m]=f[0][m]||{})):f[0][u[1]]=u[2].replace(z," ").trim();return f[0]})(e);y[o]=b(n?{["@keyframes "+o]:l}:l,r?"":"."+o)}let s=r&&y.g?y.g:null;return r&&(y.g=y[o]),((l,d,u,m)=>{m?d.data=d.data.replace(m,l):d.data.indexOf(l)===-1&&(d.data=u?l+d.data:d.data+l)})(y[o],t,i,s),o},R=(e,t,r)=>e.reduce((i,n,a)=>{let o=t[a];if(o&&o.call){let s=o(r),l=s&&s.props&&s.props.className||/^go/.test(s)&&s;o=l?"."+l:s&&typeof s=="object"?s.props?"":b(s,""):s===!1?"":s}return i+n+(o??"")},"");function j(e){let t=this||{},r=e.call?e(t.p):e;return L(r.unshift?r.raw?R(r,[].slice.call(arguments,1),t.p):r.reduce((i,n)=>Object.assign(i,n&&n.call?n(t.p):n),{}):r,F(t.target),t.g,t.o,t.k)}let I,A,N;j.bind({g:1});let h=j.bind({k:1});function U(e,t,r,i){b.p=t,I=e,A=r,N=i}function x(e,t){let r=this||{};return function(){let i=arguments;function n(a,o){let s=Object.assign({},a),l=s.className||n.className;r.p=Object.assign({theme:A&&A()},s),r.o=/ *go\d+/.test(l),s.className=j.apply(r,i)+(l?" "+l:"");let d=e;return e[0]&&(d=s.as||e,delete s.as),N&&d[0]&&N(s),I(d,s)}return n}}var V=e=>typeof e=="function",O=(e,t)=>V(e)?e(t):e,q=(()=>{let e=0;return()=>(++e).toString()})(),S=(()=>{let e;return()=>{if(e===void 0&&typeof window<"u"){let t=matchMedia("(prefers-reduced-motion: reduce)");e=!t||t.matches}return e}})(),Y=20,M=(e,t)=>{switch(t.type){case 0:return{...e,toasts:[t.toast,...e.toasts].slice(0,Y)};case 1:return{...e,toasts:e.toasts.map(a=>a.id===t.toast.id?{...a,...t.toast}:a)};case 2:let{toast:r}=t;return M(e,{type:e.toasts.find(a=>a.id===r.id)?1:0,toast:r});case 3:let{toastId:i}=t;return{...e,toasts:e.toasts.map(a=>a.id===i||i===void 0?{...a,dismissed:!0,visible:!1}:a)};case 4:return t.toastId===void 0?{...e,toasts:[]}:{...e,toasts:e.toasts.filter(a=>a.id!==t.toastId)};case 5:return{...e,pausedAt:t.time};case 6:let n=t.time-(e.pausedAt||0);return{...e,pausedAt:void 0,toasts:e.toasts.map(a=>({...a,pauseDuration:a.pauseDuration+n}))}}},D=[],v={toasts:[],pausedAt:void 0},w=e=>{v=M(v,e),D.forEach(t=>{t(v)})},Z={blank:4e3,error:4e3,success:2e3,loading:1/0,custom:4e3},B=(e={})=>{let[t,r]=c.useState(v),i=c.useRef(v);c.useEffect(()=>(i.current!==v&&r(v),D.push(r),()=>{let a=D.indexOf(r);a>-1&&D.splice(a,1)}),[]);let n=t.toasts.map(a=>{var o,s,l;return{...e,...e[a.type],...a,removeDelay:a.removeDelay||((o=e[a.type])==null?void 0:o.removeDelay)||(e==null?void 0:e.removeDelay),duration:a.duration||((s=e[a.type])==null?void 0:s.duration)||(e==null?void 0:e.duration)||Z[a.type],style:{...e.style,...(l=e[a.type])==null?void 0:l.style,...a.style}}});return{...t,toasts:n}},J=(e,t="blank",r)=>({createdAt:Date.now(),visible:!0,dismissed:!1,type:t,ariaProps:{role:"status","aria-live":"polite"},message:e,pauseDuration:0,...r,id:(r==null?void 0:r.id)||q()}),$=e=>(t,r)=>{let i=J(t,e,r);return w({type:2,toast:i}),i.id},p=(e,t)=>$("blank")(e,t);p.error=$("error");p.success=$("success");p.loading=$("loading");p.custom=$("custom");p.dismiss=e=>{w({type:3,toastId:e})};p.remove=e=>w({type:4,toastId:e});p.promise=(e,t,r)=>{let i=p.loading(t.loading,{...r,...r==null?void 0:r.loading});return typeof e=="function"&&(e=e()),e.then(n=>{let a=t.success?O(t.success,n):void 0;return a?p.success(a,{id:i,...r,...r==null?void 0:r.success}):p.dismiss(i),n}).catch(n=>{let a=t.error?O(t.error,n):void 0;a?p.error(a,{id:i,...r,...r==null?void 0:r.error}):p.dismiss(i)}),e};var K=(e,t)=>{w({type:1,toast:{id:e,height:t}})},W=()=>{w({type:5,time:Date.now()})},E=new Map,X=1e3,G=(e,t=X)=>{if(E.has(e))return;let r=setTimeout(()=>{E.delete(e),w({type:4,toastId:e})},t);E.set(e,r)},Q=e=>{let{toasts:t,pausedAt:r}=B(e);c.useEffect(()=>{if(r)return;let a=Date.now(),o=t.map(s=>{if(s.duration===1/0)return;let l=(s.duration||0)+s.pauseDuration-(a-s.createdAt);if(l<0){s.visible&&p.dismiss(s.id);return}return setTimeout(()=>p.dismiss(s.id),l)});return()=>{o.forEach(s=>s&&clearTimeout(s))}},[t,r]);let i=c.useCallback(()=>{r&&w({type:6,time:Date.now()})},[r]),n=c.useCallback((a,o)=>{let{reverseOrder:s=!1,gutter:l=8,defaultPosition:d}=o||{},u=t.filter(g=>(g.position||d)===(a.position||d)&&g.height),m=u.findIndex(g=>g.id===a.id),f=u.filter((g,C)=>C<m&&g.visible).length;return u.filter(g=>g.visible).slice(...s?[f+1]:[0,f]).reduce((g,C)=>g+(C.height||0)+l,0)},[t]);return c.useEffect(()=>{t.forEach(a=>{if(a.dismissed)G(a.id,a.removeDelay);else{let o=E.get(a.id);o&&(clearTimeout(o),E.delete(a.id))}})},[t]),{toasts:t,handlers:{updateHeight:K,startPause:W,endPause:i,calculateOffset:n}}},ee=h` +import{r as c}from"./index-DBbSOdjk.js";let T={data:""},F=e=>typeof window=="object"?((e?e.querySelector("#_goober"):window._goober)||Object.assign((e||document.head).appendChild(document.createElement("style")),{innerHTML:" ",id:"_goober"})).firstChild:e||T,_=/(?:([\u0080-\uFFFF\w-%@]+) *:? *([^{;]+?);|([^;}{]*?) *{)|(}\s*)/g,H=/\/\*[^]*?\*\/| +/g,z=/\n+/g,b=(e,t)=>{let r="",i="",n="";for(let a in e){let o=e[a];a[0]=="@"?a[1]=="i"?r=a+" "+o+";":i+=a[1]=="f"?b(o,a):a+"{"+b(o,a[1]=="k"?"":t)+"}":typeof o=="object"?i+=b(o,t?t.replace(/([^,])+/g,s=>a.replace(/([^,]*:\S+\([^)]*\))|([^,])+/g,l=>/&/.test(l)?l.replace(/&/g,s):s?s+" "+l:l)):a):o!=null&&(a=/^--/.test(a)?a:a.replace(/[A-Z]/g,"-$&").toLowerCase(),n+=b.p?b.p(a,o):a+":"+o+";")}return r+(t&&n?t+"{"+n+"}":n)+i},y={},P=e=>{if(typeof e=="object"){let t="";for(let r in e)t+=r+P(e[r]);return t}return e},L=(e,t,r,i,n)=>{let a=P(e),o=y[a]||(y[a]=(l=>{let d=0,u=11;for(;d<l.length;)u=101*u+l.charCodeAt(d++)>>>0;return"go"+u})(a));if(!y[o]){let l=a!==e?e:(d=>{let u,m,f=[{}];for(;u=_.exec(d.replace(H,""));)u[4]?f.shift():u[3]?(m=u[3].replace(z," ").trim(),f.unshift(f[0][m]=f[0][m]||{})):f[0][u[1]]=u[2].replace(z," ").trim();return f[0]})(e);y[o]=b(n?{["@keyframes "+o]:l}:l,r?"":"."+o)}let s=r&&y.g?y.g:null;return r&&(y.g=y[o]),((l,d,u,m)=>{m?d.data=d.data.replace(m,l):d.data.indexOf(l)===-1&&(d.data=u?l+d.data:d.data+l)})(y[o],t,i,s),o},R=(e,t,r)=>e.reduce((i,n,a)=>{let o=t[a];if(o&&o.call){let s=o(r),l=s&&s.props&&s.props.className||/^go/.test(s)&&s;o=l?"."+l:s&&typeof s=="object"?s.props?"":b(s,""):s===!1?"":s}return i+n+(o??"")},"");function j(e){let t=this||{},r=e.call?e(t.p):e;return L(r.unshift?r.raw?R(r,[].slice.call(arguments,1),t.p):r.reduce((i,n)=>Object.assign(i,n&&n.call?n(t.p):n),{}):r,F(t.target),t.g,t.o,t.k)}let I,A,N;j.bind({g:1});let h=j.bind({k:1});function U(e,t,r,i){b.p=t,I=e,A=r,N=i}function x(e,t){let r=this||{};return function(){let i=arguments;function n(a,o){let s=Object.assign({},a),l=s.className||n.className;r.p=Object.assign({theme:A&&A()},s),r.o=/ *go\d+/.test(l),s.className=j.apply(r,i)+(l?" "+l:"");let d=e;return e[0]&&(d=s.as||e,delete s.as),N&&d[0]&&N(s),I(d,s)}return n}}var V=e=>typeof e=="function",O=(e,t)=>V(e)?e(t):e,q=(()=>{let e=0;return()=>(++e).toString()})(),S=(()=>{let e;return()=>{if(e===void 0&&typeof window<"u"){let t=matchMedia("(prefers-reduced-motion: reduce)");e=!t||t.matches}return e}})(),Y=20,M=(e,t)=>{switch(t.type){case 0:return{...e,toasts:[t.toast,...e.toasts].slice(0,Y)};case 1:return{...e,toasts:e.toasts.map(a=>a.id===t.toast.id?{...a,...t.toast}:a)};case 2:let{toast:r}=t;return M(e,{type:e.toasts.find(a=>a.id===r.id)?1:0,toast:r});case 3:let{toastId:i}=t;return{...e,toasts:e.toasts.map(a=>a.id===i||i===void 0?{...a,dismissed:!0,visible:!1}:a)};case 4:return t.toastId===void 0?{...e,toasts:[]}:{...e,toasts:e.toasts.filter(a=>a.id!==t.toastId)};case 5:return{...e,pausedAt:t.time};case 6:let n=t.time-(e.pausedAt||0);return{...e,pausedAt:void 0,toasts:e.toasts.map(a=>({...a,pauseDuration:a.pauseDuration+n}))}}},D=[],v={toasts:[],pausedAt:void 0},w=e=>{v=M(v,e),D.forEach(t=>{t(v)})},Z={blank:4e3,error:4e3,success:2e3,loading:1/0,custom:4e3},B=(e={})=>{let[t,r]=c.useState(v),i=c.useRef(v);c.useEffect(()=>(i.current!==v&&r(v),D.push(r),()=>{let a=D.indexOf(r);a>-1&&D.splice(a,1)}),[]);let n=t.toasts.map(a=>{var o,s,l;return{...e,...e[a.type],...a,removeDelay:a.removeDelay||((o=e[a.type])==null?void 0:o.removeDelay)||(e==null?void 0:e.removeDelay),duration:a.duration||((s=e[a.type])==null?void 0:s.duration)||(e==null?void 0:e.duration)||Z[a.type],style:{...e.style,...(l=e[a.type])==null?void 0:l.style,...a.style}}});return{...t,toasts:n}},J=(e,t="blank",r)=>({createdAt:Date.now(),visible:!0,dismissed:!1,type:t,ariaProps:{role:"status","aria-live":"polite"},message:e,pauseDuration:0,...r,id:(r==null?void 0:r.id)||q()}),$=e=>(t,r)=>{let i=J(t,e,r);return w({type:2,toast:i}),i.id},p=(e,t)=>$("blank")(e,t);p.error=$("error");p.success=$("success");p.loading=$("loading");p.custom=$("custom");p.dismiss=e=>{w({type:3,toastId:e})};p.remove=e=>w({type:4,toastId:e});p.promise=(e,t,r)=>{let i=p.loading(t.loading,{...r,...r==null?void 0:r.loading});return typeof e=="function"&&(e=e()),e.then(n=>{let a=t.success?O(t.success,n):void 0;return a?p.success(a,{id:i,...r,...r==null?void 0:r.success}):p.dismiss(i),n}).catch(n=>{let a=t.error?O(t.error,n):void 0;a?p.error(a,{id:i,...r,...r==null?void 0:r.error}):p.dismiss(i)}),e};var K=(e,t)=>{w({type:1,toast:{id:e,height:t}})},W=()=>{w({type:5,time:Date.now()})},E=new Map,X=1e3,G=(e,t=X)=>{if(E.has(e))return;let r=setTimeout(()=>{E.delete(e),w({type:4,toastId:e})},t);E.set(e,r)},Q=e=>{let{toasts:t,pausedAt:r}=B(e);c.useEffect(()=>{if(r)return;let a=Date.now(),o=t.map(s=>{if(s.duration===1/0)return;let l=(s.duration||0)+s.pauseDuration-(a-s.createdAt);if(l<0){s.visible&&p.dismiss(s.id);return}return setTimeout(()=>p.dismiss(s.id),l)});return()=>{o.forEach(s=>s&&clearTimeout(s))}},[t,r]);let i=c.useCallback(()=>{r&&w({type:6,time:Date.now()})},[r]),n=c.useCallback((a,o)=>{let{reverseOrder:s=!1,gutter:l=8,defaultPosition:d}=o||{},u=t.filter(g=>(g.position||d)===(a.position||d)&&g.height),m=u.findIndex(g=>g.id===a.id),f=u.filter((g,C)=>C<m&&g.visible).length;return u.filter(g=>g.visible).slice(...s?[f+1]:[0,f]).reduce((g,C)=>g+(C.height||0)+l,0)},[t]);return c.useEffect(()=>{t.forEach(a=>{if(a.dismissed)G(a.id,a.removeDelay);else{let o=E.get(a.id);o&&(clearTimeout(o),E.delete(a.id))}})},[t]),{toasts:t,handlers:{updateHeight:K,startPause:W,endPause:i,calculateOffset:n}}},ee=h` from { transform: scale(0) rotate(45deg); opacity: 0; diff --git a/compendium_v2/static/index-CgRqQtHZ.js b/compendium_v2/static/index-DBbSOdjk.js similarity index 88% rename from compendium_v2/static/index-CgRqQtHZ.js rename to compendium_v2/static/index-DBbSOdjk.js index 7b3da77a4508f43411c5e2b6b9134b43fa6e87ef..7526ed3bc0add160ed7e5605c650224b74e7b49d 100644 --- a/compendium_v2/static/index-CgRqQtHZ.js +++ b/compendium_v2/static/index-DBbSOdjk.js @@ -1,4 +1,4 @@ -const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["Budget-CJwd467A.js","index-BMzrLxRb.js","useData-CnR6ocTl.js","SideBar-Dgfa8b_s.js","xlsx-BHRztzV8.js","index-DgKDGaow.js","hook-DDOSKqdF.js","charthelpers-D_bh9y-E.js","ChargingStructure-v8Ivek4k.js","PillTable-DC6FlsPO.js","ColorPill-BRQzvq49.js","Table-ggua9_yJ.js","ECProjects-BbCKqowm.js","NrenYearTable-Q6UAdf8a.js","FundingSource-DrmUzWVK.js","chartjs-plugin-datalabels.esm-B3Gf8X6A.js","ParentOrganisation-CjNuWZmv.js","StaffGraph-CHHV0_ir.js","HTMLLegendPlugin-Dd1EPe9c.js","StaffGraphAbsolute-D7nFen-z.js","SubOrganisation-ZY5wEKVP.js","Audits-BguD3rzB.js","BusinessContinuity-CGdkDX70.js","CentralProcurement-Bw5p4Y4D.js","CorporateStrategy-TFD4Brq2.js","CrisisExercises-DA9zYjdU.js","CrisisManagement-Bbu9alPA.js","EOSCListings-Dp6l-zo5.js","Policy-VM2zQrob.js","SecurityControls-BTdEPH5H.js","ServiceLevelTargets-BpkLKw_p.js","ServiceManagementFramework-CsK8wuiB.js","ServicesOffered-DNJ8VoBZ.js","ScrollableMatrix-BVG39bM8.js","ConnectedInstitutionsURLs-C5Vh7UoZ.js","ConnectedUser-CWHDfZp4.js","RemoteCampuses-DMXVocD3.js","AlienWave-BRELP-Uq.js","AlienWaveInternal-CpX7IEII.js","Automation-CM48PgQO.js","CapacityCoreIP-0WFrWZ8f.js","CapacityLargestLink-CZFVemiz.js","CertificateProvider-B1guSjqT.js","DarkFibreLease-COoYzfsc.js","DarkFibreInstalled-D8GnAYvV.js","ExternalConnections-Be08dOIN.js","FibreLight-DMXWEFDd.js","IRUDuration-Df0Yk4t9.js","MonitoringTools-D_0sqSLy.js","NetworkFunctionVirtualisation-DWB0GuJA.js","NetworkMapUrls-I03XzNji.js","NonRAndEPeer-BizBxpTV.js","OPsAutomation-BUp22-K-.js","PassiveMonitoring-BIkXfdsN.js","PertTeam-BCw_K3zx.js","SiemVendors-mvP4OqWO.js","TrafficRatio-BApEJk3Q.js","TrafficUrl-BYhWwa71.js","TrafficVolume-Bv0Lld1C.js","WeatherMap-CwN_0f8A.js","Services-Bv2I_Kot.js","Landing-DerYniG4.js","SurveySidebar-CfKoK4Gq.js","survey-3meXCY6T.js","SurveyContainerComponent-Dir4_aWH.js","index-CoA_s7ES.js","survey.core-D1mOb2z9.js","validation-COFmylEH.js","DZ9kPoxi.css","SurveyManagementComponent-B655F2Jb.js","lodash-CV_RFKCE.js","UserManagementComponent-yhMDIQhJ.js"])))=>i.map(i=>d[i]); +const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["Budget-CVs5cg26.js","index-DyJczNpq.js","useData-CcKTpALT.js","SideBar-DfD7Pj8p.js","xlsx-BHRztzV8.js","index-DkYuYqrz.js","hook-D9Tuu5oJ.js","charthelpers-CHBq5wBZ.js","ChargingStructure-CPkeaV7G.js","PillTable-CIcKqQJh.js","ColorPill-CuYEYQ56.js","Table-DNomfHX4.js","ECProjects-CegfdWfI.js","NrenYearTable-C1JRhqy_.js","FundingSource-BB230uTC.js","chartjs-plugin-datalabels.esm-C6J4S2ma.js","ParentOrganisation-C_34aAmv.js","StaffGraph-BhGKlAbH.js","HTMLLegendPlugin-Ci0zt1Jy.js","StaffGraphAbsolute-DYsL_bJE.js","SubOrganisation-Csf8sqHo.js","Audits-DrRfyBs4.js","BusinessContinuity-jrf4-tia.js","CentralProcurement-C2sliv5Z.js","CorporateStrategy-B96fGlR3.js","CrisisExercises-D8VSuWUx.js","CrisisManagement-DPAIuZEV.js","EOSCListings-cU4UG7og.js","Policy-CuNV_l7a.js","SecurityControls-C_redfTy.js","ServiceLevelTargets-CXuM4ENo.js","ServiceManagementFramework-B5G4LhDr.js","ServicesOffered-B_OBZM5I.js","ScrollableMatrix-CNydABqZ.js","ConnectedInstitutionsURLs-BmsNaWXO.js","ConnectedUser-CfYJAE0v.js","RemoteCampuses-NGRzWQf8.js","AlienWave-CpRPpDKT.js","AlienWaveInternal-DDEuk0kg.js","Automation-7WUmNT-G.js","CapacityCoreIP-Br9KX5yH.js","CapacityLargestLink-LEyWpKvI.js","CertificateProvider-Bvo47nf9.js","DarkFibreLease-rEaEK83T.js","DarkFibreInstalled-Dlwn_bKp.js","ExternalConnections-CQ5ri9Cp.js","FibreLight-BhW_HRmH.js","IRUDuration-RAtcDfR4.js","MonitoringTools-DrashCOV.js","NetworkFunctionVirtualisation-DgYBul36.js","NetworkMapUrls-xqgin1fL.js","NonRAndEPeer-B8hczKc3.js","OPsAutomation-CaApYas2.js","PassiveMonitoring-HFCN_S9d.js","PertTeam-CvKn3tG_.js","SiemVendors-BCpq8Hqq.js","TrafficRatio-hTxXFYQn.js","TrafficUrl-DMw44Rpa.js","TrafficVolume-CBGOlk8Z.js","WeatherMap-C2uAbI_g.js","Services-2YDP1wpB.js","Landing-Dx2MGVWO.js","SurveySidebar-C_LqylD3.js","survey-3meXCY6T.js","SurveyContainerComponent-CbFnC4ad.js","index-BYMaAaj9.js","survey.core-Dz7VpPEK.js","validation-COFmylEH.js","DaA47pDB.css","SurveyManagementComponent-Lo-9bnmr.js","lodash-YlUwNVit.js","UserManagementComponent-C2zXLwZT.js"])))=>i.map(i=>d[i]); var Kg=Object.defineProperty;var $g=(l,n,c)=>n in l?Kg(l,n,{enumerable:!0,configurable:!0,writable:!0,value:c}):l[n]=c;var wm=(l,n,c)=>$g(l,typeof n!="symbol"?n+"":n,c);(function(){const n=document.createElement("link").relList;if(n&&n.supports&&n.supports("modulepreload"))return;for(const u of document.querySelectorAll('link[rel="modulepreload"]'))s(u);new MutationObserver(u=>{for(const f of u)if(f.type==="childList")for(const d of f.addedNodes)d.tagName==="LINK"&&d.rel==="modulepreload"&&s(d)}).observe(document,{childList:!0,subtree:!0});function c(u){const f={};return u.integrity&&(f.integrity=u.integrity),u.referrerPolicy&&(f.referrerPolicy=u.referrerPolicy),u.crossOrigin==="use-credentials"?f.credentials="include":u.crossOrigin==="anonymous"?f.credentials="omit":f.credentials="same-origin",f}function s(u){if(u.ep)return;u.ep=!0;const f=c(u);fetch(u.href,f)}})();var U2=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function fr(l){return l&&l.__esModule&&Object.prototype.hasOwnProperty.call(l,"default")?l.default:l}var to={exports:{}},er={};/** * @license React * react-jsx-runtime.production.js @@ -15,7 +15,7 @@ var Kg=Object.defineProperty;var $g=(l,n,c)=>n in l?Kg(l,n,{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 zm;function Pg(){if(zm)return je;zm=1;var l=Symbol.for("react.transitional.element"),n=Symbol.for("react.portal"),c=Symbol.for("react.fragment"),s=Symbol.for("react.strict_mode"),u=Symbol.for("react.profiler"),f=Symbol.for("react.consumer"),d=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"),R=Symbol.iterator;function S(T){return T===null||typeof T!="object"?null:(T=R&&T[R]||T["@@iterator"],typeof T=="function"?T:null)}var _={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},O=Object.assign,H={};function U(T,Q,le){this.props=T,this.context=Q,this.refs=H,this.updater=le||_}U.prototype.isReactComponent={},U.prototype.setState=function(T,Q){if(typeof T!="object"&&typeof T!="function"&&T!=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,T,Q,"setState")},U.prototype.forceUpdate=function(T){this.updater.enqueueForceUpdate(this,T,"forceUpdate")};function M(){}M.prototype=U.prototype;function q(T,Q,le){this.props=T,this.context=Q,this.refs=H,this.updater=le||_}var Y=q.prototype=new M;Y.constructor=q,O(Y,U.prototype),Y.isPureReactComponent=!0;var J=Array.isArray,k={H:null,A:null,T:null,S:null},N=Object.prototype.hasOwnProperty;function W(T,Q,le,te,P,ge){return le=ge.ref,{$$typeof:l,type:T,key:Q,ref:le!==void 0?le:null,props:ge}}function ie(T,Q){return W(T.type,Q,void 0,void 0,void 0,T.props)}function X(T){return typeof T=="object"&&T!==null&&T.$$typeof===l}function I(T){var Q={"=":"=0",":":"=2"};return"$"+T.replace(/[=:]/g,function(le){return Q[le]})}var de=/\/+/g;function Ne(T,Q){return typeof T=="object"&&T!==null&&T.key!=null?I(""+T.key):Q.toString(36)}function Ye(){}function Be(T){switch(T.status){case"fulfilled":return T.value;case"rejected":throw T.reason;default:switch(typeof T.status=="string"?T.then(Ye,Ye):(T.status="pending",T.then(function(Q){T.status==="pending"&&(T.status="fulfilled",T.value=Q)},function(Q){T.status==="pending"&&(T.status="rejected",T.reason=Q)})),T.status){case"fulfilled":return T.value;case"rejected":throw T.reason}}throw T}function ze(T,Q,le,te,P){var ge=typeof T;(ge==="undefined"||ge==="boolean")&&(T=null);var ye=!1;if(T===null)ye=!0;else switch(ge){case"bigint":case"string":case"number":ye=!0;break;case"object":switch(T.$$typeof){case l:case n:ye=!0;break;case b:return ye=T._init,ze(ye(T._payload),Q,le,te,P)}}if(ye)return P=P(T),ye=te===""?"."+Ne(T,0):te,J(P)?(le="",ye!=null&&(le=ye.replace(de,"$&/")+"/"),ze(P,Q,le,"",function(Le){return Le})):P!=null&&(X(P)&&(P=ie(P,le+(P.key==null||T&&T.key===P.key?"":(""+P.key).replace(de,"$&/")+"/")+ye)),Q.push(P)),1;ye=0;var Je=te===""?".":te+":";if(J(T))for(var Ce=0;Ce<T.length;Ce++)te=T[Ce],ge=Je+Ne(te,Ce),ye+=ze(te,Q,le,ge,P);else if(Ce=S(T),typeof Ce=="function")for(T=Ce.call(T),Ce=0;!(te=T.next()).done;)te=te.value,ge=Je+Ne(te,Ce++),ye+=ze(te,Q,le,ge,P);else if(ge==="object"){if(typeof T.then=="function")return ze(Be(T),Q,le,te,P);throw Q=String(T),Error("Objects are not valid as a React child (found: "+(Q==="[object Object]"?"object with keys {"+Object.keys(T).join(", ")+"}":Q)+"). If you meant to render a collection of children, use an array instead.")}return ye}function K(T,Q,le){if(T==null)return T;var te=[],P=0;return ze(T,te,"","",function(ge){return Q.call(le,ge,P++)}),te}function ce(T){if(T._status===-1){var Q=T._result;Q=Q(),Q.then(function(le){(T._status===0||T._status===-1)&&(T._status=1,T._result=le)},function(le){(T._status===0||T._status===-1)&&(T._status=2,T._result=le)}),T._status===-1&&(T._status=0,T._result=Q)}if(T._status===1)return T._result.default;throw T._result}var ne=typeof reportError=="function"?reportError:function(T){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var Q=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof T=="object"&&T!==null&&typeof T.message=="string"?String(T.message):String(T),error:T});if(!window.dispatchEvent(Q))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",T);return}console.error(T)};function Re(){}return je.Children={map:K,forEach:function(T,Q,le){K(T,function(){Q.apply(this,arguments)},le)},count:function(T){var Q=0;return K(T,function(){Q++}),Q},toArray:function(T){return K(T,function(Q){return Q})||[]},only:function(T){if(!X(T))throw Error("React.Children.only expected to receive a single React element child.");return T}},je.Component=U,je.Fragment=c,je.Profiler=u,je.PureComponent=q,je.StrictMode=s,je.Suspense=v,je.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=k,je.act=function(){throw Error("act(...) is not supported in production builds of React.")},je.cache=function(T){return function(){return T.apply(null,arguments)}},je.cloneElement=function(T,Q,le){if(T==null)throw Error("The argument must be a React element, but you passed "+T+".");var te=O({},T.props),P=T.key,ge=void 0;if(Q!=null)for(ye in Q.ref!==void 0&&(ge=void 0),Q.key!==void 0&&(P=""+Q.key),Q)!N.call(Q,ye)||ye==="key"||ye==="__self"||ye==="__source"||ye==="ref"&&Q.ref===void 0||(te[ye]=Q[ye]);var ye=arguments.length-2;if(ye===1)te.children=le;else if(1<ye){for(var Je=Array(ye),Ce=0;Ce<ye;Ce++)Je[Ce]=arguments[Ce+2];te.children=Je}return W(T.type,P,void 0,void 0,ge,te)},je.createContext=function(T){return T={$$typeof:d,_currentValue:T,_currentValue2:T,_threadCount:0,Provider:null,Consumer:null},T.Provider=T,T.Consumer={$$typeof:f,_context:T},T},je.createElement=function(T,Q,le){var te,P={},ge=null;if(Q!=null)for(te in Q.key!==void 0&&(ge=""+Q.key),Q)N.call(Q,te)&&te!=="key"&&te!=="__self"&&te!=="__source"&&(P[te]=Q[te]);var ye=arguments.length-2;if(ye===1)P.children=le;else if(1<ye){for(var Je=Array(ye),Ce=0;Ce<ye;Ce++)Je[Ce]=arguments[Ce+2];P.children=Je}if(T&&T.defaultProps)for(te in ye=T.defaultProps,ye)P[te]===void 0&&(P[te]=ye[te]);return W(T,ge,void 0,void 0,null,P)},je.createRef=function(){return{current:null}},je.forwardRef=function(T){return{$$typeof:y,render:T}},je.isValidElement=X,je.lazy=function(T){return{$$typeof:b,_payload:{_status:-1,_result:T},_init:ce}},je.memo=function(T,Q){return{$$typeof:p,type:T,compare:Q===void 0?null:Q}},je.startTransition=function(T){var Q=k.T,le={};k.T=le;try{var te=T(),P=k.S;P!==null&&P(le,te),typeof te=="object"&&te!==null&&typeof te.then=="function"&&te.then(Re,ne)}catch(ge){ne(ge)}finally{k.T=Q}},je.unstable_useCacheRefresh=function(){return k.H.useCacheRefresh()},je.use=function(T){return k.H.use(T)},je.useActionState=function(T,Q,le){return k.H.useActionState(T,Q,le)},je.useCallback=function(T,Q){return k.H.useCallback(T,Q)},je.useContext=function(T){return k.H.useContext(T)},je.useDebugValue=function(){},je.useDeferredValue=function(T,Q){return k.H.useDeferredValue(T,Q)},je.useEffect=function(T,Q){return k.H.useEffect(T,Q)},je.useId=function(){return k.H.useId()},je.useImperativeHandle=function(T,Q,le){return k.H.useImperativeHandle(T,Q,le)},je.useInsertionEffect=function(T,Q){return k.H.useInsertionEffect(T,Q)},je.useLayoutEffect=function(T,Q){return k.H.useLayoutEffect(T,Q)},je.useMemo=function(T,Q){return k.H.useMemo(T,Q)},je.useOptimistic=function(T,Q){return k.H.useOptimistic(T,Q)},je.useReducer=function(T,Q,le){return k.H.useReducer(T,Q,le)},je.useRef=function(T){return k.H.useRef(T)},je.useState=function(T){return k.H.useState(T)},je.useSyncExternalStore=function(T,Q,le){return k.H.useSyncExternalStore(T,Q,le)},je.useTransition=function(){return k.H.useTransition()},je.version="19.0.0",je}var Lm;function ku(){return Lm||(Lm=1,no.exports=Pg()),no.exports}var g=ku();const Yt=fr(g);var ao={exports:{}},tr={},lo={exports:{}},io={};/** + */var zm;function Pg(){if(zm)return je;zm=1;var l=Symbol.for("react.transitional.element"),n=Symbol.for("react.portal"),c=Symbol.for("react.fragment"),s=Symbol.for("react.strict_mode"),u=Symbol.for("react.profiler"),f=Symbol.for("react.consumer"),d=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"),R=Symbol.iterator;function S(T){return T===null||typeof T!="object"?null:(T=R&&T[R]||T["@@iterator"],typeof T=="function"?T:null)}var _={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},O=Object.assign,H={};function U(T,Q,le){this.props=T,this.context=Q,this.refs=H,this.updater=le||_}U.prototype.isReactComponent={},U.prototype.setState=function(T,Q){if(typeof T!="object"&&typeof T!="function"&&T!=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,T,Q,"setState")},U.prototype.forceUpdate=function(T){this.updater.enqueueForceUpdate(this,T,"forceUpdate")};function M(){}M.prototype=U.prototype;function q(T,Q,le){this.props=T,this.context=Q,this.refs=H,this.updater=le||_}var Y=q.prototype=new M;Y.constructor=q,O(Y,U.prototype),Y.isPureReactComponent=!0;var J=Array.isArray,G={H:null,A:null,T:null,S:null},N=Object.prototype.hasOwnProperty;function W(T,Q,le,te,P,ge){return le=ge.ref,{$$typeof:l,type:T,key:Q,ref:le!==void 0?le:null,props:ge}}function ie(T,Q){return W(T.type,Q,void 0,void 0,void 0,T.props)}function X(T){return typeof T=="object"&&T!==null&&T.$$typeof===l}function I(T){var Q={"=":"=0",":":"=2"};return"$"+T.replace(/[=:]/g,function(le){return Q[le]})}var de=/\/+/g;function Ne(T,Q){return typeof T=="object"&&T!==null&&T.key!=null?I(""+T.key):Q.toString(36)}function Ye(){}function Be(T){switch(T.status){case"fulfilled":return T.value;case"rejected":throw T.reason;default:switch(typeof T.status=="string"?T.then(Ye,Ye):(T.status="pending",T.then(function(Q){T.status==="pending"&&(T.status="fulfilled",T.value=Q)},function(Q){T.status==="pending"&&(T.status="rejected",T.reason=Q)})),T.status){case"fulfilled":return T.value;case"rejected":throw T.reason}}throw T}function ze(T,Q,le,te,P){var ge=typeof T;(ge==="undefined"||ge==="boolean")&&(T=null);var ye=!1;if(T===null)ye=!0;else switch(ge){case"bigint":case"string":case"number":ye=!0;break;case"object":switch(T.$$typeof){case l:case n:ye=!0;break;case b:return ye=T._init,ze(ye(T._payload),Q,le,te,P)}}if(ye)return P=P(T),ye=te===""?"."+Ne(T,0):te,J(P)?(le="",ye!=null&&(le=ye.replace(de,"$&/")+"/"),ze(P,Q,le,"",function(Le){return Le})):P!=null&&(X(P)&&(P=ie(P,le+(P.key==null||T&&T.key===P.key?"":(""+P.key).replace(de,"$&/")+"/")+ye)),Q.push(P)),1;ye=0;var Je=te===""?".":te+":";if(J(T))for(var Ce=0;Ce<T.length;Ce++)te=T[Ce],ge=Je+Ne(te,Ce),ye+=ze(te,Q,le,ge,P);else if(Ce=S(T),typeof Ce=="function")for(T=Ce.call(T),Ce=0;!(te=T.next()).done;)te=te.value,ge=Je+Ne(te,Ce++),ye+=ze(te,Q,le,ge,P);else if(ge==="object"){if(typeof T.then=="function")return ze(Be(T),Q,le,te,P);throw Q=String(T),Error("Objects are not valid as a React child (found: "+(Q==="[object Object]"?"object with keys {"+Object.keys(T).join(", ")+"}":Q)+"). If you meant to render a collection of children, use an array instead.")}return ye}function K(T,Q,le){if(T==null)return T;var te=[],P=0;return ze(T,te,"","",function(ge){return Q.call(le,ge,P++)}),te}function ce(T){if(T._status===-1){var Q=T._result;Q=Q(),Q.then(function(le){(T._status===0||T._status===-1)&&(T._status=1,T._result=le)},function(le){(T._status===0||T._status===-1)&&(T._status=2,T._result=le)}),T._status===-1&&(T._status=0,T._result=Q)}if(T._status===1)return T._result.default;throw T._result}var ne=typeof reportError=="function"?reportError:function(T){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var Q=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof T=="object"&&T!==null&&typeof T.message=="string"?String(T.message):String(T),error:T});if(!window.dispatchEvent(Q))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",T);return}console.error(T)};function Re(){}return je.Children={map:K,forEach:function(T,Q,le){K(T,function(){Q.apply(this,arguments)},le)},count:function(T){var Q=0;return K(T,function(){Q++}),Q},toArray:function(T){return K(T,function(Q){return Q})||[]},only:function(T){if(!X(T))throw Error("React.Children.only expected to receive a single React element child.");return T}},je.Component=U,je.Fragment=c,je.Profiler=u,je.PureComponent=q,je.StrictMode=s,je.Suspense=v,je.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=G,je.act=function(){throw Error("act(...) is not supported in production builds of React.")},je.cache=function(T){return function(){return T.apply(null,arguments)}},je.cloneElement=function(T,Q,le){if(T==null)throw Error("The argument must be a React element, but you passed "+T+".");var te=O({},T.props),P=T.key,ge=void 0;if(Q!=null)for(ye in Q.ref!==void 0&&(ge=void 0),Q.key!==void 0&&(P=""+Q.key),Q)!N.call(Q,ye)||ye==="key"||ye==="__self"||ye==="__source"||ye==="ref"&&Q.ref===void 0||(te[ye]=Q[ye]);var ye=arguments.length-2;if(ye===1)te.children=le;else if(1<ye){for(var Je=Array(ye),Ce=0;Ce<ye;Ce++)Je[Ce]=arguments[Ce+2];te.children=Je}return W(T.type,P,void 0,void 0,ge,te)},je.createContext=function(T){return T={$$typeof:d,_currentValue:T,_currentValue2:T,_threadCount:0,Provider:null,Consumer:null},T.Provider=T,T.Consumer={$$typeof:f,_context:T},T},je.createElement=function(T,Q,le){var te,P={},ge=null;if(Q!=null)for(te in Q.key!==void 0&&(ge=""+Q.key),Q)N.call(Q,te)&&te!=="key"&&te!=="__self"&&te!=="__source"&&(P[te]=Q[te]);var ye=arguments.length-2;if(ye===1)P.children=le;else if(1<ye){for(var Je=Array(ye),Ce=0;Ce<ye;Ce++)Je[Ce]=arguments[Ce+2];P.children=Je}if(T&&T.defaultProps)for(te in ye=T.defaultProps,ye)P[te]===void 0&&(P[te]=ye[te]);return W(T,ge,void 0,void 0,null,P)},je.createRef=function(){return{current:null}},je.forwardRef=function(T){return{$$typeof:y,render:T}},je.isValidElement=X,je.lazy=function(T){return{$$typeof:b,_payload:{_status:-1,_result:T},_init:ce}},je.memo=function(T,Q){return{$$typeof:p,type:T,compare:Q===void 0?null:Q}},je.startTransition=function(T){var Q=G.T,le={};G.T=le;try{var te=T(),P=G.S;P!==null&&P(le,te),typeof te=="object"&&te!==null&&typeof te.then=="function"&&te.then(Re,ne)}catch(ge){ne(ge)}finally{G.T=Q}},je.unstable_useCacheRefresh=function(){return G.H.useCacheRefresh()},je.use=function(T){return G.H.use(T)},je.useActionState=function(T,Q,le){return G.H.useActionState(T,Q,le)},je.useCallback=function(T,Q){return G.H.useCallback(T,Q)},je.useContext=function(T){return G.H.useContext(T)},je.useDebugValue=function(){},je.useDeferredValue=function(T,Q){return G.H.useDeferredValue(T,Q)},je.useEffect=function(T,Q){return G.H.useEffect(T,Q)},je.useId=function(){return G.H.useId()},je.useImperativeHandle=function(T,Q,le){return G.H.useImperativeHandle(T,Q,le)},je.useInsertionEffect=function(T,Q){return G.H.useInsertionEffect(T,Q)},je.useLayoutEffect=function(T,Q){return G.H.useLayoutEffect(T,Q)},je.useMemo=function(T,Q){return G.H.useMemo(T,Q)},je.useOptimistic=function(T,Q){return G.H.useOptimistic(T,Q)},je.useReducer=function(T,Q,le){return G.H.useReducer(T,Q,le)},je.useRef=function(T){return G.H.useRef(T)},je.useState=function(T){return G.H.useState(T)},je.useSyncExternalStore=function(T,Q,le){return G.H.useSyncExternalStore(T,Q,le)},je.useTransition=function(){return G.H.useTransition()},je.version="19.0.0",je}var Lm;function Gu(){return Lm||(Lm=1,no.exports=Pg()),no.exports}var g=Gu();const Yt=fr(g);var ao={exports:{}},tr={},lo={exports:{}},io={};/** * @license React * scheduler.production.js * @@ -23,7 +23,7 @@ var Kg=Object.defineProperty;var $g=(l,n,c)=>n in l?Kg(l,n,{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 Um;function Wg(){return Um||(Um=1,function(l){function n(K,ce){var ne=K.length;K.push(ce);e:for(;0<ne;){var Re=ne-1>>>1,T=K[Re];if(0<u(T,ce))K[Re]=ce,K[ne]=T,ne=Re;else break e}}function c(K){return K.length===0?null:K[0]}function s(K){if(K.length===0)return null;var ce=K[0],ne=K.pop();if(ne!==ce){K[0]=ne;e:for(var Re=0,T=K.length,Q=T>>>1;Re<Q;){var le=2*(Re+1)-1,te=K[le],P=le+1,ge=K[P];if(0>u(te,ne))P<T&&0>u(ge,te)?(K[Re]=ge,K[P]=ne,Re=P):(K[Re]=te,K[le]=ne,Re=le);else if(P<T&&0>u(ge,ne))K[Re]=ge,K[P]=ne,Re=P;else break e}}return ce}function u(K,ce){var ne=K.sortIndex-ce.sortIndex;return ne!==0?ne:K.id-ce.id}if(l.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var f=performance;l.unstable_now=function(){return f.now()}}else{var d=Date,y=d.now();l.unstable_now=function(){return d.now()-y}}var v=[],p=[],b=1,R=null,S=3,_=!1,O=!1,H=!1,U=typeof setTimeout=="function"?setTimeout:null,M=typeof clearTimeout=="function"?clearTimeout:null,q=typeof setImmediate<"u"?setImmediate:null;function Y(K){for(var ce=c(p);ce!==null;){if(ce.callback===null)s(p);else if(ce.startTime<=K)s(p),ce.sortIndex=ce.expirationTime,n(v,ce);else break;ce=c(p)}}function J(K){if(H=!1,Y(K),!O)if(c(v)!==null)O=!0,Be();else{var ce=c(p);ce!==null&&ze(J,ce.startTime-K)}}var k=!1,N=-1,W=5,ie=-1;function X(){return!(l.unstable_now()-ie<W)}function I(){if(k){var K=l.unstable_now();ie=K;var ce=!0;try{e:{O=!1,H&&(H=!1,M(N),N=-1),_=!0;var ne=S;try{t:{for(Y(K),R=c(v);R!==null&&!(R.expirationTime>K&&X());){var Re=R.callback;if(typeof Re=="function"){R.callback=null,S=R.priorityLevel;var T=Re(R.expirationTime<=K);if(K=l.unstable_now(),typeof T=="function"){R.callback=T,Y(K),ce=!0;break t}R===c(v)&&s(v),Y(K)}else s(v);R=c(v)}if(R!==null)ce=!0;else{var Q=c(p);Q!==null&&ze(J,Q.startTime-K),ce=!1}}break e}finally{R=null,S=ne,_=!1}ce=void 0}}finally{ce?de():k=!1}}}var de;if(typeof q=="function")de=function(){q(I)};else if(typeof MessageChannel<"u"){var Ne=new MessageChannel,Ye=Ne.port2;Ne.port1.onmessage=I,de=function(){Ye.postMessage(null)}}else de=function(){U(I,0)};function Be(){k||(k=!0,de())}function ze(K,ce){N=U(function(){K(l.unstable_now())},ce)}l.unstable_IdlePriority=5,l.unstable_ImmediatePriority=1,l.unstable_LowPriority=4,l.unstable_NormalPriority=3,l.unstable_Profiling=null,l.unstable_UserBlockingPriority=2,l.unstable_cancelCallback=function(K){K.callback=null},l.unstable_continueExecution=function(){O||_||(O=!0,Be())},l.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"):W=0<K?Math.floor(1e3/K):5},l.unstable_getCurrentPriorityLevel=function(){return S},l.unstable_getFirstCallbackNode=function(){return c(v)},l.unstable_next=function(K){switch(S){case 1:case 2:case 3:var ce=3;break;default:ce=S}var ne=S;S=ce;try{return K()}finally{S=ne}},l.unstable_pauseExecution=function(){},l.unstable_requestPaint=function(){},l.unstable_runWithPriority=function(K,ce){switch(K){case 1:case 2:case 3:case 4:case 5:break;default:K=3}var ne=S;S=K;try{return ce()}finally{S=ne}},l.unstable_scheduleCallback=function(K,ce,ne){var Re=l.unstable_now();switch(typeof ne=="object"&&ne!==null?(ne=ne.delay,ne=typeof ne=="number"&&0<ne?Re+ne:Re):ne=Re,K){case 1:var T=-1;break;case 2:T=250;break;case 5:T=1073741823;break;case 4:T=1e4;break;default:T=5e3}return T=ne+T,K={id:b++,callback:ce,priorityLevel:K,startTime:ne,expirationTime:T,sortIndex:-1},ne>Re?(K.sortIndex=ne,n(p,K),c(v)===null&&K===c(p)&&(H?(M(N),N=-1):H=!0,ze(J,ne-Re))):(K.sortIndex=T,n(v,K),O||_||(O=!0,Be())),K},l.unstable_shouldYield=X,l.unstable_wrapCallback=function(K){var ce=S;return function(){var ne=S;S=ce;try{return K.apply(this,arguments)}finally{S=ne}}}}(io)),io}var Hm;function Ig(){return Hm||(Hm=1,lo.exports=Wg()),lo.exports}var ro={exports:{}},Vt={};/** + */var Um;function Wg(){return Um||(Um=1,function(l){function n(K,ce){var ne=K.length;K.push(ce);e:for(;0<ne;){var Re=ne-1>>>1,T=K[Re];if(0<u(T,ce))K[Re]=ce,K[ne]=T,ne=Re;else break e}}function c(K){return K.length===0?null:K[0]}function s(K){if(K.length===0)return null;var ce=K[0],ne=K.pop();if(ne!==ce){K[0]=ne;e:for(var Re=0,T=K.length,Q=T>>>1;Re<Q;){var le=2*(Re+1)-1,te=K[le],P=le+1,ge=K[P];if(0>u(te,ne))P<T&&0>u(ge,te)?(K[Re]=ge,K[P]=ne,Re=P):(K[Re]=te,K[le]=ne,Re=le);else if(P<T&&0>u(ge,ne))K[Re]=ge,K[P]=ne,Re=P;else break e}}return ce}function u(K,ce){var ne=K.sortIndex-ce.sortIndex;return ne!==0?ne:K.id-ce.id}if(l.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var f=performance;l.unstable_now=function(){return f.now()}}else{var d=Date,y=d.now();l.unstable_now=function(){return d.now()-y}}var v=[],p=[],b=1,R=null,S=3,_=!1,O=!1,H=!1,U=typeof setTimeout=="function"?setTimeout:null,M=typeof clearTimeout=="function"?clearTimeout:null,q=typeof setImmediate<"u"?setImmediate:null;function Y(K){for(var ce=c(p);ce!==null;){if(ce.callback===null)s(p);else if(ce.startTime<=K)s(p),ce.sortIndex=ce.expirationTime,n(v,ce);else break;ce=c(p)}}function J(K){if(H=!1,Y(K),!O)if(c(v)!==null)O=!0,Be();else{var ce=c(p);ce!==null&&ze(J,ce.startTime-K)}}var G=!1,N=-1,W=5,ie=-1;function X(){return!(l.unstable_now()-ie<W)}function I(){if(G){var K=l.unstable_now();ie=K;var ce=!0;try{e:{O=!1,H&&(H=!1,M(N),N=-1),_=!0;var ne=S;try{t:{for(Y(K),R=c(v);R!==null&&!(R.expirationTime>K&&X());){var Re=R.callback;if(typeof Re=="function"){R.callback=null,S=R.priorityLevel;var T=Re(R.expirationTime<=K);if(K=l.unstable_now(),typeof T=="function"){R.callback=T,Y(K),ce=!0;break t}R===c(v)&&s(v),Y(K)}else s(v);R=c(v)}if(R!==null)ce=!0;else{var Q=c(p);Q!==null&&ze(J,Q.startTime-K),ce=!1}}break e}finally{R=null,S=ne,_=!1}ce=void 0}}finally{ce?de():G=!1}}}var de;if(typeof q=="function")de=function(){q(I)};else if(typeof MessageChannel<"u"){var Ne=new MessageChannel,Ye=Ne.port2;Ne.port1.onmessage=I,de=function(){Ye.postMessage(null)}}else de=function(){U(I,0)};function Be(){G||(G=!0,de())}function ze(K,ce){N=U(function(){K(l.unstable_now())},ce)}l.unstable_IdlePriority=5,l.unstable_ImmediatePriority=1,l.unstable_LowPriority=4,l.unstable_NormalPriority=3,l.unstable_Profiling=null,l.unstable_UserBlockingPriority=2,l.unstable_cancelCallback=function(K){K.callback=null},l.unstable_continueExecution=function(){O||_||(O=!0,Be())},l.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"):W=0<K?Math.floor(1e3/K):5},l.unstable_getCurrentPriorityLevel=function(){return S},l.unstable_getFirstCallbackNode=function(){return c(v)},l.unstable_next=function(K){switch(S){case 1:case 2:case 3:var ce=3;break;default:ce=S}var ne=S;S=ce;try{return K()}finally{S=ne}},l.unstable_pauseExecution=function(){},l.unstable_requestPaint=function(){},l.unstable_runWithPriority=function(K,ce){switch(K){case 1:case 2:case 3:case 4:case 5:break;default:K=3}var ne=S;S=K;try{return ce()}finally{S=ne}},l.unstable_scheduleCallback=function(K,ce,ne){var Re=l.unstable_now();switch(typeof ne=="object"&&ne!==null?(ne=ne.delay,ne=typeof ne=="number"&&0<ne?Re+ne:Re):ne=Re,K){case 1:var T=-1;break;case 2:T=250;break;case 5:T=1073741823;break;case 4:T=1e4;break;default:T=5e3}return T=ne+T,K={id:b++,callback:ce,priorityLevel:K,startTime:ne,expirationTime:T,sortIndex:-1},ne>Re?(K.sortIndex=ne,n(p,K),c(v)===null&&K===c(p)&&(H?(M(N),N=-1):H=!0,ze(J,ne-Re))):(K.sortIndex=T,n(v,K),O||_||(O=!0,Be())),K},l.unstable_shouldYield=X,l.unstable_wrapCallback=function(K){var ce=S;return function(){var ne=S;S=ce;try{return K.apply(this,arguments)}finally{S=ne}}}}(io)),io}var Hm;function Ig(){return Hm||(Hm=1,lo.exports=Wg()),lo.exports}var ro={exports:{}},Vt={};/** * @license React * react-dom.production.js * @@ -31,7 +31,7 @@ var Kg=Object.defineProperty;var $g=(l,n,c)=>n in l?Kg(l,n,{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 Bm;function e1(){if(Bm)return Vt;Bm=1;var l=ku();function n(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 c(){}var s={d:{f:c,r:function(){throw Error(n(522))},D:c,C:c,L:c,m:c,X:c,S:c,M:c},p:0,findDOMNode:null},u=Symbol.for("react.portal");function f(v,p,b){var R=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:u,key:R==null?null:""+R,children:v,containerInfo:p,implementation:b}}var d=l.__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 Vt.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=s,Vt.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(n(299));return f(v,p,null,b)},Vt.flushSync=function(v){var p=d.T,b=s.p;try{if(d.T=null,s.p=2,v)return v()}finally{d.T=p,s.p=b,s.d.f()}},Vt.preconnect=function(v,p){typeof v=="string"&&(p?(p=p.crossOrigin,p=typeof p=="string"?p==="use-credentials"?p:"":void 0):p=null,s.d.C(v,p))},Vt.prefetchDNS=function(v){typeof v=="string"&&s.d.D(v)},Vt.preinit=function(v,p){if(typeof v=="string"&&p&&typeof p.as=="string"){var b=p.as,R=y(b,p.crossOrigin),S=typeof p.integrity=="string"?p.integrity:void 0,_=typeof p.fetchPriority=="string"?p.fetchPriority:void 0;b==="style"?s.d.S(v,typeof p.precedence=="string"?p.precedence:void 0,{crossOrigin:R,integrity:S,fetchPriority:_}):b==="script"&&s.d.X(v,{crossOrigin:R,integrity:S,fetchPriority:_,nonce:typeof p.nonce=="string"?p.nonce:void 0})}},Vt.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);s.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&&s.d.M(v)},Vt.preload=function(v,p){if(typeof v=="string"&&typeof p=="object"&&p!==null&&typeof p.as=="string"){var b=p.as,R=y(b,p.crossOrigin);s.d.L(v,b,{crossOrigin:R,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})}},Vt.preloadModule=function(v,p){if(typeof v=="string")if(p){var b=y(p.as,p.crossOrigin);s.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 s.d.m(v)},Vt.requestFormReset=function(v){s.d.r(v)},Vt.unstable_batchedUpdates=function(v,p){return v(p)},Vt.useFormState=function(v,p,b){return d.H.useFormState(v,p,b)},Vt.useFormStatus=function(){return d.H.useHostTransitionStatus()},Vt.version="19.0.0",Vt}var qm;function wy(){if(qm)return ro.exports;qm=1;function l(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(l)}catch(n){console.error(n)}}return l(),ro.exports=e1(),ro.exports}/** + */var Bm;function e1(){if(Bm)return Vt;Bm=1;var l=Gu();function n(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 c(){}var s={d:{f:c,r:function(){throw Error(n(522))},D:c,C:c,L:c,m:c,X:c,S:c,M:c},p:0,findDOMNode:null},u=Symbol.for("react.portal");function f(v,p,b){var R=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:u,key:R==null?null:""+R,children:v,containerInfo:p,implementation:b}}var d=l.__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 Vt.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=s,Vt.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(n(299));return f(v,p,null,b)},Vt.flushSync=function(v){var p=d.T,b=s.p;try{if(d.T=null,s.p=2,v)return v()}finally{d.T=p,s.p=b,s.d.f()}},Vt.preconnect=function(v,p){typeof v=="string"&&(p?(p=p.crossOrigin,p=typeof p=="string"?p==="use-credentials"?p:"":void 0):p=null,s.d.C(v,p))},Vt.prefetchDNS=function(v){typeof v=="string"&&s.d.D(v)},Vt.preinit=function(v,p){if(typeof v=="string"&&p&&typeof p.as=="string"){var b=p.as,R=y(b,p.crossOrigin),S=typeof p.integrity=="string"?p.integrity:void 0,_=typeof p.fetchPriority=="string"?p.fetchPriority:void 0;b==="style"?s.d.S(v,typeof p.precedence=="string"?p.precedence:void 0,{crossOrigin:R,integrity:S,fetchPriority:_}):b==="script"&&s.d.X(v,{crossOrigin:R,integrity:S,fetchPriority:_,nonce:typeof p.nonce=="string"?p.nonce:void 0})}},Vt.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);s.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&&s.d.M(v)},Vt.preload=function(v,p){if(typeof v=="string"&&typeof p=="object"&&p!==null&&typeof p.as=="string"){var b=p.as,R=y(b,p.crossOrigin);s.d.L(v,b,{crossOrigin:R,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})}},Vt.preloadModule=function(v,p){if(typeof v=="string")if(p){var b=y(p.as,p.crossOrigin);s.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 s.d.m(v)},Vt.requestFormReset=function(v){s.d.r(v)},Vt.unstable_batchedUpdates=function(v,p){return v(p)},Vt.useFormState=function(v,p,b){return d.H.useFormState(v,p,b)},Vt.useFormStatus=function(){return d.H.useHostTransitionStatus()},Vt.version="19.0.0",Vt}var qm;function wy(){if(qm)return ro.exports;qm=1;function l(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(l)}catch(n){console.error(n)}}return l(),ro.exports=e1(),ro.exports}/** * @license React * react-dom-client.production.js * @@ -39,15 +39,15 @@ var Kg=Object.defineProperty;var $g=(l,n,c)=>n in l?Kg(l,n,{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 Vm;function t1(){if(Vm)return tr;Vm=1;var l=Ig(),n=ku(),c=wy();function s(e){var t="https://react.dev/errors/"+e;if(1<arguments.length){t+="?args[]="+encodeURIComponent(arguments[1]);for(var a=2;a<arguments.length;a++)t+="&args[]="+encodeURIComponent(arguments[a])}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 u(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}var f=Symbol.for("react.element"),d=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"),R=Symbol.for("react.provider"),S=Symbol.for("react.consumer"),_=Symbol.for("react.context"),O=Symbol.for("react.forward_ref"),H=Symbol.for("react.suspense"),U=Symbol.for("react.suspense_list"),M=Symbol.for("react.memo"),q=Symbol.for("react.lazy"),Y=Symbol.for("react.offscreen"),J=Symbol.for("react.memo_cache_sentinel"),k=Symbol.iterator;function N(e){return e===null||typeof e!="object"?null:(e=k&&e[k]||e["@@iterator"],typeof e=="function"?e:null)}var W=Symbol.for("react.client.reference");function ie(e){if(e==null)return null;if(typeof e=="function")return e.$$typeof===W?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 H:return"Suspense";case U:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case _:return(e.displayName||"Context")+".Provider";case S:return(e._context.displayName||"Context")+".Consumer";case O:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case M:return t=e.displayName||null,t!==null?t:ie(e.type)||"Memo";case q:t=e._payload,e=e._init;try{return ie(e(t))}catch{}}return null}var X=n.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,I=Object.assign,de,Ne;function Ye(e){if(de===void 0)try{throw Error()}catch(a){var t=a.stack.trim().match(/\n( *(at )?)/);de=t&&t[1]||"",Ne=-1<a.stack.indexOf(` + */var Vm;function t1(){if(Vm)return tr;Vm=1;var l=Ig(),n=Gu(),c=wy();function s(e){var t="https://react.dev/errors/"+e;if(1<arguments.length){t+="?args[]="+encodeURIComponent(arguments[1]);for(var a=2;a<arguments.length;a++)t+="&args[]="+encodeURIComponent(arguments[a])}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 u(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}var f=Symbol.for("react.element"),d=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"),R=Symbol.for("react.provider"),S=Symbol.for("react.consumer"),_=Symbol.for("react.context"),O=Symbol.for("react.forward_ref"),H=Symbol.for("react.suspense"),U=Symbol.for("react.suspense_list"),M=Symbol.for("react.memo"),q=Symbol.for("react.lazy"),Y=Symbol.for("react.offscreen"),J=Symbol.for("react.memo_cache_sentinel"),G=Symbol.iterator;function N(e){return e===null||typeof e!="object"?null:(e=G&&e[G]||e["@@iterator"],typeof e=="function"?e:null)}var W=Symbol.for("react.client.reference");function ie(e){if(e==null)return null;if(typeof e=="function")return e.$$typeof===W?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 H:return"Suspense";case U:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case _:return(e.displayName||"Context")+".Provider";case S:return(e._context.displayName||"Context")+".Consumer";case O:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case M:return t=e.displayName||null,t!==null?t:ie(e.type)||"Memo";case q:t=e._payload,e=e._init;try{return ie(e(t))}catch{}}return null}var X=n.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,I=Object.assign,de,Ne;function Ye(e){if(de===void 0)try{throw Error()}catch(a){var t=a.stack.trim().match(/\n( *(at )?)/);de=t&&t[1]||"",Ne=-1<a.stack.indexOf(` at`)?" (<anonymous>)":-1<a.stack.indexOf("@")?"@unknown:0:0":""}return` `+de+e+Ne}var Be=!1;function ze(e,t){if(!e||Be)return"";Be=!0;var a=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var i={DetermineComponentFrameRoot:function(){try{if(t){var $=function(){throw Error()};if(Object.defineProperty($.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct($,[])}catch(V){var L=V}Reflect.construct(e,[],$)}else{try{$.call()}catch(V){L=V}e.call($.prototype)}}else{try{throw Error()}catch(V){L=V}($=e())&&typeof $.catch=="function"&&$.catch(function(){})}}catch(V){if(V&&L&&typeof V.stack=="string")return[V.stack,L.stack]}return[null,null]}};i.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var r=Object.getOwnPropertyDescriptor(i.DetermineComponentFrameRoot,"name");r&&r.configurable&&Object.defineProperty(i.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var o=i.DetermineComponentFrameRoot(),m=o[0],E=o[1];if(m&&E){var x=m.split(` `),D=E.split(` -`);for(r=i=0;i<x.length&&!x[i].includes("DetermineComponentFrameRoot");)i++;for(;r<D.length&&!D[r].includes("DetermineComponentFrameRoot");)r++;if(i===x.length||r===D.length)for(i=x.length-1,r=D.length-1;1<=i&&0<=r&&x[i]!==D[r];)r--;for(;1<=i&&0<=r;i--,r--)if(x[i]!==D[r]){if(i!==1||r!==1)do if(i--,r--,0>r||x[i]!==D[r]){var G=` -`+x[i].replace(" at new "," at ");return e.displayName&&G.includes("<anonymous>")&&(G=G.replace("<anonymous>",e.displayName)),G}while(1<=i&&0<=r);break}}}finally{Be=!1,Error.prepareStackTrace=a}return(a=e?e.displayName||e.name:"")?Ye(a):""}function K(e){switch(e.tag){case 26:case 27:case 5:return Ye(e.type);case 16:return Ye("Lazy");case 13:return Ye("Suspense");case 19:return Ye("SuspenseList");case 0:case 15:return e=ze(e.type,!1),e;case 11:return e=ze(e.type.render,!1),e;case 1:return e=ze(e.type,!0),e;default:return""}}function ce(e){try{var t="";do t+=K(e),e=e.return;while(e);return t}catch(a){return` +`);for(r=i=0;i<x.length&&!x[i].includes("DetermineComponentFrameRoot");)i++;for(;r<D.length&&!D[r].includes("DetermineComponentFrameRoot");)r++;if(i===x.length||r===D.length)for(i=x.length-1,r=D.length-1;1<=i&&0<=r&&x[i]!==D[r];)r--;for(;1<=i&&0<=r;i--,r--)if(x[i]!==D[r]){if(i!==1||r!==1)do if(i--,r--,0>r||x[i]!==D[r]){var k=` +`+x[i].replace(" at new "," at ");return e.displayName&&k.includes("<anonymous>")&&(k=k.replace("<anonymous>",e.displayName)),k}while(1<=i&&0<=r);break}}}finally{Be=!1,Error.prepareStackTrace=a}return(a=e?e.displayName||e.name:"")?Ye(a):""}function K(e){switch(e.tag){case 26:case 27:case 5:return Ye(e.type);case 16:return Ye("Lazy");case 13:return Ye("Suspense");case 19:return Ye("SuspenseList");case 0:case 15:return e=ze(e.type,!1),e;case 11:return e=ze(e.type.render,!1),e;case 1:return e=ze(e.type,!0),e;default:return""}}function ce(e){try{var t="";do t+=K(e),e=e.return;while(e);return t}catch(a){return` Error generating stack: `+a.message+` -`+a.stack}}function ne(e){var t=e,a=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,t.flags&4098&&(a=t.return),e=t.return;while(e)}return t.tag===3?a: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 T(e){if(ne(e)!==e)throw Error(s(188))}function Q(e){var t=e.alternate;if(!t){if(t=ne(e),t===null)throw Error(s(188));return t!==e?null:e}for(var a=e,i=t;;){var r=a.return;if(r===null)break;var o=r.alternate;if(o===null){if(i=r.return,i!==null){a=i;continue}break}if(r.child===o.child){for(o=r.child;o;){if(o===a)return T(r),e;if(o===i)return T(r),t;o=o.sibling}throw Error(s(188))}if(a.return!==i.return)a=r,i=o;else{for(var m=!1,E=r.child;E;){if(E===a){m=!0,a=r,i=o;break}if(E===i){m=!0,i=r,a=o;break}E=E.sibling}if(!m){for(E=o.child;E;){if(E===a){m=!0,a=o,i=r;break}if(E===i){m=!0,i=o,a=r;break}E=E.sibling}if(!m)throw Error(s(189))}}if(a.alternate!==i)throw Error(s(190))}if(a.tag!==3)throw Error(s(188));return a.stateNode.current===a?e:t}function le(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e;for(e=e.child;e!==null;){if(t=le(e),t!==null)return t;e=e.sibling}return null}var te=Array.isArray,P=c.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,ge={pending:!1,data:null,method:null,action:null},ye=[],Je=-1;function Ce(e){return{current:e}}function Le(e){0>Je||(e.current=ye[Je],ye[Je]=null,Je--)}function Ee(e,t){Je++,ye[Je]=e.current,e.current=t}var Ze=Ce(null),vt=Ce(null),it=Ce(null),lt=Ce(null);function De(e,t){switch(Ee(it,t),Ee(vt,e),Ee(Ze,null),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)&&(t=t.namespaceURI)?rm(t):0;break;default:if(e=e===8?t.parentNode:t,t=e.tagName,e=e.namespaceURI)e=rm(e),t=um(e,t);else switch(t){case"svg":t=1;break;case"math":t=2;break;default:t=0}}Le(Ze),Ee(Ze,t)}function Rt(){Le(Ze),Le(vt),Le(it)}function St(e){e.memoizedState!==null&&Ee(lt,e);var t=Ze.current,a=um(t,e.type);t!==a&&(Ee(vt,e),Ee(Ze,a))}function Pt(e){vt.current===e&&(Le(Ze),Le(vt)),lt.current===e&&(Le(lt),Fi._currentValue=ge)}var Zt=Object.prototype.hasOwnProperty,un=l.unstable_scheduleCallback,cn=l.unstable_cancelCallback,Ut=l.unstable_shouldYield,Ht=l.unstable_requestPaint,mt=l.unstable_now,Kt=l.unstable_getCurrentPriorityLevel,_e=l.unstable_ImmediatePriority,Ie=l.unstable_UserBlockingPriority,Gt=l.unstable_NormalPriority,ui=l.unstable_LowPriority,pr=l.unstable_IdlePriority,Mn=l.log,vr=l.unstable_setDisableYieldValue,ma=null,Bt=null;function Ju(e){if(Bt&&typeof Bt.onCommitFiberRoot=="function")try{Bt.onCommitFiberRoot(ma,e,void 0,(e.current.flags&128)===128)}catch{}}function Nn(e){if(typeof Mn=="function"&&vr(e),Bt&&typeof Bt.setStrictMode=="function")try{Bt.setStrictMode(ma,e)}catch{}}var Tt=Math.clz32?Math.clz32:Pu,gr=Math.log,ci=Math.LN2;function Pu(e){return e>>>=0,e===0?32:31-(gr(e)/ci|0)|0}var ka=128,bl=4194304;function zn(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 Qn(e,t){var a=e.pendingLanes;if(a===0)return 0;var i=0,r=e.suspendedLanes,o=e.pingedLanes,m=e.warmLanes;e=e.finishedLanes!==0;var E=a&134217727;return E!==0?(a=E&~r,a!==0?i=zn(a):(o&=E,o!==0?i=zn(o):e||(m=E&~m,m!==0&&(i=zn(m))))):(E=a&~r,E!==0?i=zn(E):o!==0?i=zn(o):e||(m=a&~m,m!==0&&(i=zn(m)))),i===0?0:t!==0&&t!==i&&!(t&r)&&(r=i&-i,m=t&-t,r>=m||r===32&&(m&4194176)!==0)?t:i}function Ln(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function Wu(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 Er(){var e=ka;return ka<<=1,!(ka&4194176)&&(ka=128),e}function C(){var e=bl;return bl<<=1,!(bl&62914560)&&(bl=4194304),e}function A(e){for(var t=[],a=0;31>a;a++)t.push(e);return t}function B(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function F(e,t,a,i,r,o){var m=e.pendingLanes;e.pendingLanes=a,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=a,e.entangledLanes&=a,e.errorRecoveryDisabledLanes&=a,e.shellSuspendCounter=0;var E=e.entanglements,x=e.expirationTimes,D=e.hiddenUpdates;for(a=m&~a;0<a;){var G=31-Tt(a),$=1<<G;E[G]=0,x[G]=-1;var L=D[G];if(L!==null)for(D[G]=null,G=0;G<L.length;G++){var V=L[G];V!==null&&(V.lane&=-536870913)}a&=~$}i!==0&&ae(e,i,0),o!==0&&r===0&&e.tag!==0&&(e.suspendedLanes|=o&~(m&~t))}function ae(e,t,a){e.pendingLanes|=t,e.suspendedLanes&=~t;var i=31-Tt(t);e.entangledLanes|=t,e.entanglements[i]=e.entanglements[i]|1073741824|a&4194218}function me(e,t){var a=e.entangledLanes|=t;for(e=e.entanglements;a;){var i=31-Tt(a),r=1<<i;r&t|e[i]&t&&(e[i]|=t),a&=~r}}function xe(e){return e&=-e,2<e?8<e?e&134217727?32:268435456:8:2}function re(){var e=P.p;return e!==0?e:(e=window.event,e===void 0?32:Tm(e.type))}function oe(e,t){var a=P.p;try{return P.p=e,t()}finally{P.p=a}}var ee=Math.random().toString(36).slice(2),fe="__reactFiber$"+ee,ve="__reactProps$"+ee,Xe="__reactContainer$"+ee,yt="__reactEvents$"+ee,at="__reactListeners$"+ee,Pe="__reactHandles$"+ee,ot="__reactResources$"+ee,sn="__reactMarker$"+ee;function Zn(e){delete e[fe],delete e[ve],delete e[yt],delete e[at],delete e[Pe]}function Dt(e){var t=e[fe];if(t)return t;for(var a=e.parentNode;a;){if(t=a[Xe]||a[fe]){if(a=t.alternate,t.child!==null||a!==null&&a.child!==null)for(e=om(e);e!==null;){if(a=e[fe])return a;e=om(e)}return t}e=a,a=e.parentNode}return null}function wt(e){if(e=e[fe]||e[Xe]){var t=e.tag;if(t===5||t===6||t===13||t===26||t===27||t===3)return e}return null}function Kn(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e.stateNode;throw Error(s(33))}function on(e){var t=e[ot];return t||(t=e[ot]={hoistableStyles:new Map,hoistableScripts:new Map}),t}function et(e){e[sn]=!0}var Xa=new Set,Qa={};function qe(e,t){rt(e,t),rt(e+"Capture",t)}function rt(e,t){for(Qa[e]=t,e=0;e<t.length;e++)Xa.add(t[e])}var $t=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Za=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]*$"),ut={},$n={};function br(e){return Zt.call($n,e)?!0:Zt.call(ut,e)?!1:Za.test(e)?$n[e]=!0:(ut[e]=!0,!1)}function Sl(e,t,a){if(br(t))if(a===null)e.removeAttribute(t);else{switch(typeof a){case"undefined":case"function":case"symbol":e.removeAttribute(t);return;case"boolean":var i=t.toLowerCase().slice(0,5);if(i!=="data-"&&i!=="aria-"){e.removeAttribute(t);return}}e.setAttribute(t,""+a)}}function Sr(e,t,a){if(a===null)e.removeAttribute(t);else{switch(typeof a){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(t);return}e.setAttribute(t,""+a)}}function Fn(e,t,a,i){if(i===null)e.removeAttribute(a);else{switch(typeof i){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(a);return}e.setAttributeNS(t,a,""+i)}}function fn(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function sf(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function Gp(e){var t=sf(e)?"checked":"value",a=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),i=""+e[t];if(!e.hasOwnProperty(t)&&typeof a<"u"&&typeof a.get=="function"&&typeof a.set=="function"){var r=a.get,o=a.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return r.call(this)},set:function(m){i=""+m,o.call(this,m)}}),Object.defineProperty(e,t,{enumerable:a.enumerable}),{getValue:function(){return i},setValue:function(m){i=""+m},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function xr(e){e._valueTracker||(e._valueTracker=Gp(e))}function of(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var a=t.getValue(),i="";return e&&(i=sf(e)?e.checked?"true":"false":e.value),e=i,e!==a?(t.setValue(e),!0):!1}function _r(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 kp=/[\n"\\]/g;function dn(e){return e.replace(kp,function(t){return"\\"+t.charCodeAt(0).toString(16)+" "})}function Iu(e,t,a,i,r,o,m,E){e.name="",m!=null&&typeof m!="function"&&typeof m!="symbol"&&typeof m!="boolean"?e.type=m:e.removeAttribute("type"),t!=null?m==="number"?(t===0&&e.value===""||e.value!=t)&&(e.value=""+fn(t)):e.value!==""+fn(t)&&(e.value=""+fn(t)):m!=="submit"&&m!=="reset"||e.removeAttribute("value"),t!=null?ec(e,m,fn(t)):a!=null?ec(e,m,fn(a)):i!=null&&e.removeAttribute("value"),r==null&&o!=null&&(e.defaultChecked=!!o),r!=null&&(e.checked=r&&typeof r!="function"&&typeof r!="symbol"),E!=null&&typeof E!="function"&&typeof E!="symbol"&&typeof E!="boolean"?e.name=""+fn(E):e.removeAttribute("name")}function ff(e,t,a,i,r,o,m,E){if(o!=null&&typeof o!="function"&&typeof o!="symbol"&&typeof o!="boolean"&&(e.type=o),t!=null||a!=null){if(!(o!=="submit"&&o!=="reset"||t!=null))return;a=a!=null?""+fn(a):"",t=t!=null?""+fn(t):a,E||t===e.value||(e.value=t),e.defaultValue=t}i=i??r,i=typeof i!="function"&&typeof i!="symbol"&&!!i,e.checked=E?e.checked:!!i,e.defaultChecked=!!i,m!=null&&typeof m!="function"&&typeof m!="symbol"&&typeof m!="boolean"&&(e.name=m)}function ec(e,t,a){t==="number"&&_r(e.ownerDocument)===e||e.defaultValue===""+a||(e.defaultValue=""+a)}function xl(e,t,a,i){if(e=e.options,t){t={};for(var r=0;r<a.length;r++)t["$"+a[r]]=!0;for(a=0;a<e.length;a++)r=t.hasOwnProperty("$"+e[a].value),e[a].selected!==r&&(e[a].selected=r),r&&i&&(e[a].defaultSelected=!0)}else{for(a=""+fn(a),t=null,r=0;r<e.length;r++){if(e[r].value===a){e[r].selected=!0,i&&(e[r].defaultSelected=!0);return}t!==null||e[r].disabled||(t=e[r])}t!==null&&(t.selected=!0)}}function df(e,t,a){if(t!=null&&(t=""+fn(t),t!==e.value&&(e.value=t),a==null)){e.defaultValue!==t&&(e.defaultValue=t);return}e.defaultValue=a!=null?""+fn(a):""}function hf(e,t,a,i){if(t==null){if(i!=null){if(a!=null)throw Error(s(92));if(te(i)){if(1<i.length)throw Error(s(93));i=i[0]}a=i}a==null&&(a=""),t=a}a=fn(t),e.defaultValue=a,i=e.textContent,i===a&&i!==""&&i!==null&&(e.value=i)}function _l(e,t){if(t){var a=e.firstChild;if(a&&a===e.lastChild&&a.nodeType===3){a.nodeValue=t;return}}e.textContent=t}var Xp=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 mf(e,t,a){var i=t.indexOf("--")===0;a==null||typeof a=="boolean"||a===""?i?e.setProperty(t,""):t==="float"?e.cssFloat="":e[t]="":i?e.setProperty(t,a):typeof a!="number"||a===0||Xp.has(t)?t==="float"?e.cssFloat=a:e[t]=(""+a).trim():e[t]=a+"px"}function yf(e,t,a){if(t!=null&&typeof t!="object")throw Error(s(62));if(e=e.style,a!=null){for(var i in a)!a.hasOwnProperty(i)||t!=null&&t.hasOwnProperty(i)||(i.indexOf("--")===0?e.setProperty(i,""):i==="float"?e.cssFloat="":e[i]="");for(var r in t)i=t[r],t.hasOwnProperty(r)&&a[r]!==i&&mf(e,r,i)}else for(var o in t)t.hasOwnProperty(o)&&mf(e,o,t[o])}function tc(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 Qp=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"]]),Zp=/^[\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 Rr(e){return Zp.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}var nc=null;function ac(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Rl=null,Tl=null;function pf(e){var t=wt(e);if(t&&(e=t.stateNode)){var a=e[ve]||null;e:switch(e=t.stateNode,t.type){case"input":if(Iu(e,a.value,a.defaultValue,a.defaultValue,a.checked,a.defaultChecked,a.type,a.name),t=a.name,a.type==="radio"&&t!=null){for(a=e;a.parentNode;)a=a.parentNode;for(a=a.querySelectorAll('input[name="'+dn(""+t)+'"][type="radio"]'),t=0;t<a.length;t++){var i=a[t];if(i!==e&&i.form===e.form){var r=i[ve]||null;if(!r)throw Error(s(90));Iu(i,r.value,r.defaultValue,r.defaultValue,r.checked,r.defaultChecked,r.type,r.name)}}for(t=0;t<a.length;t++)i=a[t],i.form===e.form&&of(i)}break e;case"textarea":df(e,a.value,a.defaultValue);break e;case"select":t=a.value,t!=null&&xl(e,!!a.multiple,t,!1)}}}var lc=!1;function vf(e,t,a){if(lc)return e(t,a);lc=!0;try{var i=e(t);return i}finally{if(lc=!1,(Rl!==null||Tl!==null)&&(uu(),Rl&&(t=Rl,e=Tl,Tl=Rl=null,pf(t),e)))for(t=0;t<e.length;t++)pf(e[t])}}function si(e,t){var a=e.stateNode;if(a===null)return null;var i=a[ve]||null;if(i===null)return null;a=i[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":(i=!i.disabled)||(e=e.type,i=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!i;break e;default:e=!1}if(e)return null;if(a&&typeof a!="function")throw Error(s(231,t,typeof a));return a}var ic=!1;if($t)try{var oi={};Object.defineProperty(oi,"passive",{get:function(){ic=!0}}),window.addEventListener("test",oi,oi),window.removeEventListener("test",oi,oi)}catch{ic=!1}var ya=null,rc=null,Tr=null;function gf(){if(Tr)return Tr;var e,t=rc,a=t.length,i,r="value"in ya?ya.value:ya.textContent,o=r.length;for(e=0;e<a&&t[e]===r[e];e++);var m=a-e;for(i=1;i<=m&&t[a-i]===r[o-i];i++);return Tr=r.slice(e,1<i?1-i:void 0)}function Nr(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 Cr(){return!0}function Ef(){return!1}function Ft(e){function t(a,i,r,o,m){this._reactName=a,this._targetInst=r,this.type=i,this.nativeEvent=o,this.target=m,this.currentTarget=null;for(var E in e)e.hasOwnProperty(E)&&(a=e[E],this[E]=a?a(o):o[E]);return this.isDefaultPrevented=(o.defaultPrevented!=null?o.defaultPrevented:o.returnValue===!1)?Cr:Ef,this.isPropagationStopped=Ef,this}return I(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var a=this.nativeEvent;a&&(a.preventDefault?a.preventDefault():typeof a.returnValue!="unknown"&&(a.returnValue=!1),this.isDefaultPrevented=Cr)},stopPropagation:function(){var a=this.nativeEvent;a&&(a.stopPropagation?a.stopPropagation():typeof a.cancelBubble!="unknown"&&(a.cancelBubble=!0),this.isPropagationStopped=Cr)},persist:function(){},isPersistent:Cr}),t}var Ka={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},jr=Ft(Ka),fi=I({},Ka,{view:0,detail:0}),Kp=Ft(fi),uc,cc,di,Or=I({},fi,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:oc,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!==di&&(di&&e.type==="mousemove"?(uc=e.screenX-di.screenX,cc=e.screenY-di.screenY):cc=uc=0,di=e),uc)},movementY:function(e){return"movementY"in e?e.movementY:cc}}),bf=Ft(Or),$p=I({},Or,{dataTransfer:0}),Fp=Ft($p),Jp=I({},fi,{relatedTarget:0}),sc=Ft(Jp),Pp=I({},Ka,{animationName:0,elapsedTime:0,pseudoElement:0}),Wp=Ft(Pp),Ip=I({},Ka,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),ev=Ft(Ip),tv=I({},Ka,{data:0}),Sf=Ft(tv),nv={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},av={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"},lv={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function iv(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=lv[e])?!!t[e]:!1}function oc(){return iv}var rv=I({},fi,{key:function(e){if(e.key){var t=nv[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=Nr(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?av[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:oc,charCode:function(e){return e.type==="keypress"?Nr(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?Nr(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),uv=Ft(rv),cv=I({},Or,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),xf=Ft(cv),sv=I({},fi,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:oc}),ov=Ft(sv),fv=I({},Ka,{propertyName:0,elapsedTime:0,pseudoElement:0}),dv=Ft(fv),hv=I({},Or,{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}),mv=Ft(hv),yv=I({},Ka,{newState:0,oldState:0}),pv=Ft(yv),vv=[9,13,27,32],fc=$t&&"CompositionEvent"in window,hi=null;$t&&"documentMode"in document&&(hi=document.documentMode);var gv=$t&&"TextEvent"in window&&!hi,_f=$t&&(!fc||hi&&8<hi&&11>=hi),Rf=" ",Tf=!1;function Nf(e,t){switch(e){case"keyup":return vv.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Cf(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Nl=!1;function Ev(e,t){switch(e){case"compositionend":return Cf(t);case"keypress":return t.which!==32?null:(Tf=!0,Rf);case"textInput":return e=t.data,e===Rf&&Tf?null:e;default:return null}}function bv(e,t){if(Nl)return e==="compositionend"||!fc&&Nf(e,t)?(e=gf(),Tr=rc=ya=null,Nl=!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 _f&&t.locale!=="ko"?null:t.data;default:return null}}var Sv={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 jf(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!Sv[e.type]:t==="textarea"}function Of(e,t,a,i){Rl?Tl?Tl.push(i):Tl=[i]:Rl=i,t=du(t,"onChange"),0<t.length&&(a=new jr("onChange","change",null,a,i),e.push({event:a,listeners:t}))}var mi=null,yi=null;function xv(e){tm(e,0)}function Dr(e){var t=Kn(e);if(of(t))return e}function Df(e,t){if(e==="change")return t}var wf=!1;if($t){var dc;if($t){var hc="oninput"in document;if(!hc){var Af=document.createElement("div");Af.setAttribute("oninput","return;"),hc=typeof Af.oninput=="function"}dc=hc}else dc=!1;wf=dc&&(!document.documentMode||9<document.documentMode)}function Mf(){mi&&(mi.detachEvent("onpropertychange",zf),yi=mi=null)}function zf(e){if(e.propertyName==="value"&&Dr(yi)){var t=[];Of(t,yi,e,ac(e)),vf(xv,t)}}function _v(e,t,a){e==="focusin"?(Mf(),mi=t,yi=a,mi.attachEvent("onpropertychange",zf)):e==="focusout"&&Mf()}function Rv(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return Dr(yi)}function Tv(e,t){if(e==="click")return Dr(t)}function Nv(e,t){if(e==="input"||e==="change")return Dr(t)}function Cv(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Wt=typeof Object.is=="function"?Object.is:Cv;function pi(e,t){if(Wt(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var a=Object.keys(e),i=Object.keys(t);if(a.length!==i.length)return!1;for(i=0;i<a.length;i++){var r=a[i];if(!Zt.call(t,r)||!Wt(e[r],t[r]))return!1}return!0}function Lf(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function Uf(e,t){var a=Lf(e);e=0;for(var i;a;){if(a.nodeType===3){if(i=e+a.textContent.length,e<=t&&i>=t)return{node:a,offset:t-e};e=i}e:{for(;a;){if(a.nextSibling){a=a.nextSibling;break e}a=a.parentNode}a=void 0}a=Lf(a)}}function Hf(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Hf(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Bf(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=_r(e.document);t instanceof e.HTMLIFrameElement;){try{var a=typeof t.contentWindow.location.href=="string"}catch{a=!1}if(a)e=t.contentWindow;else break;t=_r(e.document)}return t}function mc(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 jv(e,t){var a=Bf(t);t=e.focusedElem;var i=e.selectionRange;if(a!==t&&t&&t.ownerDocument&&Hf(t.ownerDocument.documentElement,t)){if(i!==null&&mc(t)){if(e=i.start,a=i.end,a===void 0&&(a=e),"selectionStart"in t)t.selectionStart=e,t.selectionEnd=Math.min(a,t.value.length);else if(a=(e=t.ownerDocument||document)&&e.defaultView||window,a.getSelection){a=a.getSelection();var r=t.textContent.length,o=Math.min(i.start,r);i=i.end===void 0?o:Math.min(i.end,r),!a.extend&&o>i&&(r=i,i=o,o=r),r=Uf(t,o);var m=Uf(t,i);r&&m&&(a.rangeCount!==1||a.anchorNode!==r.node||a.anchorOffset!==r.offset||a.focusNode!==m.node||a.focusOffset!==m.offset)&&(e=e.createRange(),e.setStart(r.node,r.offset),a.removeAllRanges(),o>i?(a.addRange(e),a.extend(m.node,m.offset)):(e.setEnd(m.node,m.offset),a.addRange(e)))}}for(e=[],a=t;a=a.parentNode;)a.nodeType===1&&e.push({element:a,left:a.scrollLeft,top:a.scrollTop});for(typeof t.focus=="function"&&t.focus(),t=0;t<e.length;t++)a=e[t],a.element.scrollLeft=a.left,a.element.scrollTop=a.top}}var Ov=$t&&"documentMode"in document&&11>=document.documentMode,Cl=null,yc=null,vi=null,pc=!1;function qf(e,t,a){var i=a.window===a?a.document:a.nodeType===9?a:a.ownerDocument;pc||Cl==null||Cl!==_r(i)||(i=Cl,"selectionStart"in i&&mc(i)?i={start:i.selectionStart,end:i.selectionEnd}:(i=(i.ownerDocument&&i.ownerDocument.defaultView||window).getSelection(),i={anchorNode:i.anchorNode,anchorOffset:i.anchorOffset,focusNode:i.focusNode,focusOffset:i.focusOffset}),vi&&pi(vi,i)||(vi=i,i=du(yc,"onSelect"),0<i.length&&(t=new jr("onSelect","select",null,t,a),e.push({event:t,listeners:i}),t.target=Cl)))}function $a(e,t){var a={};return a[e.toLowerCase()]=t.toLowerCase(),a["Webkit"+e]="webkit"+t,a["Moz"+e]="moz"+t,a}var jl={animationend:$a("Animation","AnimationEnd"),animationiteration:$a("Animation","AnimationIteration"),animationstart:$a("Animation","AnimationStart"),transitionrun:$a("Transition","TransitionRun"),transitionstart:$a("Transition","TransitionStart"),transitioncancel:$a("Transition","TransitionCancel"),transitionend:$a("Transition","TransitionEnd")},vc={},Vf={};$t&&(Vf=document.createElement("div").style,"AnimationEvent"in window||(delete jl.animationend.animation,delete jl.animationiteration.animation,delete jl.animationstart.animation),"TransitionEvent"in window||delete jl.transitionend.transition);function Fa(e){if(vc[e])return vc[e];if(!jl[e])return e;var t=jl[e],a;for(a in t)if(t.hasOwnProperty(a)&&a in Vf)return vc[e]=t[a];return e}var Yf=Fa("animationend"),Gf=Fa("animationiteration"),kf=Fa("animationstart"),Dv=Fa("transitionrun"),wv=Fa("transitionstart"),Av=Fa("transitioncancel"),Xf=Fa("transitionend"),Qf=new Map,Zf="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 Cn(e,t){Qf.set(e,t),qe(t,[e])}var hn=[],Ol=0,gc=0;function wr(){for(var e=Ol,t=gc=Ol=0;t<e;){var a=hn[t];hn[t++]=null;var i=hn[t];hn[t++]=null;var r=hn[t];hn[t++]=null;var o=hn[t];if(hn[t++]=null,i!==null&&r!==null){var m=i.pending;m===null?r.next=r:(r.next=m.next,m.next=r),i.pending=r}o!==0&&Kf(a,r,o)}}function Ar(e,t,a,i){hn[Ol++]=e,hn[Ol++]=t,hn[Ol++]=a,hn[Ol++]=i,gc|=i,e.lanes|=i,e=e.alternate,e!==null&&(e.lanes|=i)}function Ec(e,t,a,i){return Ar(e,t,a,i),Mr(e)}function pa(e,t){return Ar(e,null,null,t),Mr(e)}function Kf(e,t,a){e.lanes|=a;var i=e.alternate;i!==null&&(i.lanes|=a);for(var r=!1,o=e.return;o!==null;)o.childLanes|=a,i=o.alternate,i!==null&&(i.childLanes|=a),o.tag===22&&(e=o.stateNode,e===null||e._visibility&1||(r=!0)),e=o,o=o.return;r&&t!==null&&e.tag===3&&(o=e.stateNode,r=31-Tt(a),o=o.hiddenUpdates,e=o[r],e===null?o[r]=[t]:e.push(t),t.lane=a|536870912)}function Mr(e){if(50<Gi)throw Gi=0,Ts=null,Error(s(185));for(var t=e.return;t!==null;)e=t,t=e.return;return e.tag===3?e.stateNode:null}var Dl={},$f=new WeakMap;function mn(e,t){if(typeof e=="object"&&e!==null){var a=$f.get(e);return a!==void 0?a:(t={value:e,source:t,stack:ce(t)},$f.set(e,t),t)}return{value:e,source:t,stack:ce(t)}}var wl=[],Al=0,zr=null,Lr=0,yn=[],pn=0,Ja=null,Jn=1,Pn="";function Pa(e,t){wl[Al++]=Lr,wl[Al++]=zr,zr=e,Lr=t}function Ff(e,t,a){yn[pn++]=Jn,yn[pn++]=Pn,yn[pn++]=Ja,Ja=e;var i=Jn;e=Pn;var r=32-Tt(i)-1;i&=~(1<<r),a+=1;var o=32-Tt(t)+r;if(30<o){var m=r-r%5;o=(i&(1<<m)-1).toString(32),i>>=m,r-=m,Jn=1<<32-Tt(t)+r|a<<r|i,Pn=o+e}else Jn=1<<o|a<<r|i,Pn=e}function bc(e){e.return!==null&&(Pa(e,1),Ff(e,1,0))}function Sc(e){for(;e===zr;)zr=wl[--Al],wl[Al]=null,Lr=wl[--Al],wl[Al]=null;for(;e===Ja;)Ja=yn[--pn],yn[pn]=null,Pn=yn[--pn],yn[pn]=null,Jn=yn[--pn],yn[pn]=null}var kt=null,At=null,Ge=!1,jn=null,Un=!1,xc=Error(s(519));function Wa(e){var t=Error(s(418,""));throw bi(mn(t,e)),xc}function Jf(e){var t=e.stateNode,a=e.type,i=e.memoizedProps;switch(t[fe]=e,t[ve]=i,a){case"dialog":Ue("cancel",t),Ue("close",t);break;case"iframe":case"object":case"embed":Ue("load",t);break;case"video":case"audio":for(a=0;a<Xi.length;a++)Ue(Xi[a],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),ff(t,i.value,i.defaultValue,i.checked,i.defaultChecked,i.type,i.name,!0),xr(t);break;case"select":Ue("invalid",t);break;case"textarea":Ue("invalid",t),hf(t,i.value,i.defaultValue,i.children),xr(t)}a=i.children,typeof a!="string"&&typeof a!="number"&&typeof a!="bigint"||t.textContent===""+a||i.suppressHydrationWarning===!0||im(t.textContent,a)?(i.popover!=null&&(Ue("beforetoggle",t),Ue("toggle",t)),i.onScroll!=null&&Ue("scroll",t),i.onScrollEnd!=null&&Ue("scrollend",t),i.onClick!=null&&(t.onclick=hu),t=!0):t=!1,t||Wa(e)}function Pf(e){for(kt=e.return;kt;)switch(kt.tag){case 3:case 27:Un=!0;return;case 5:case 13:Un=!1;return;default:kt=kt.return}}function gi(e){if(e!==kt)return!1;if(!Ge)return Pf(e),Ge=!0,!1;var t=!1,a;if((a=e.tag!==3&&e.tag!==27)&&((a=e.tag===5)&&(a=e.type,a=!(a!=="form"&&a!=="button")||Gs(e.type,e.memoizedProps)),a=!a),a&&(t=!0),t&&At&&Wa(e),Pf(e),e.tag===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(s(317));e:{for(e=e.nextSibling,t=0;e;){if(e.nodeType===8)if(a=e.data,a==="/$"){if(t===0){At=Dn(e.nextSibling);break e}t--}else a!=="$"&&a!=="$!"&&a!=="$?"||t++;e=e.nextSibling}At=null}}else At=kt?Dn(e.stateNode.nextSibling):null;return!0}function Ei(){At=kt=null,Ge=!1}function bi(e){jn===null?jn=[e]:jn.push(e)}var Si=Error(s(460)),Wf=Error(s(474)),_c={then:function(){}};function If(e){return e=e.status,e==="fulfilled"||e==="rejected"}function Ur(){}function ed(e,t,a){switch(a=e[a],a===void 0?e.push(t):a!==t&&(t.then(Ur,Ur),t=a),t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,e===Si?Error(s(483)):e;default:if(typeof t.status=="string")t.then(Ur,Ur);else{if(e=tt,e!==null&&100<e.shellSuspendCounter)throw Error(s(482));e=t,e.status="pending",e.then(function(i){if(t.status==="pending"){var r=t;r.status="fulfilled",r.value=i}},function(i){if(t.status==="pending"){var r=t;r.status="rejected",r.reason=i}})}switch(t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,e===Si?Error(s(483)):e}throw xi=t,Si}}var xi=null;function td(){if(xi===null)throw Error(s(459));var e=xi;return xi=null,e}var Ml=null,_i=0;function Hr(e){var t=_i;return _i+=1,Ml===null&&(Ml=[]),ed(Ml,e,t)}function Ri(e,t){t=t.props.ref,e.ref=t!==void 0?t:null}function Br(e,t){throw t.$$typeof===f?Error(s(525)):(e=Object.prototype.toString.call(t),Error(s(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e)))}function nd(e){var t=e._init;return t(e._payload)}function ad(e){function t(w,j){if(e){var z=w.deletions;z===null?(w.deletions=[j],w.flags|=16):z.push(j)}}function a(w,j){if(!e)return null;for(;j!==null;)t(w,j),j=j.sibling;return null}function i(w){for(var j=new Map;w!==null;)w.key!==null?j.set(w.key,w):j.set(w.index,w),w=w.sibling;return j}function r(w,j){return w=ja(w,j),w.index=0,w.sibling=null,w}function o(w,j,z){return w.index=z,e?(z=w.alternate,z!==null?(z=z.index,z<j?(w.flags|=33554434,j):z):(w.flags|=33554434,j)):(w.flags|=1048576,j)}function m(w){return e&&w.alternate===null&&(w.flags|=33554434),w}function E(w,j,z,Z){return j===null||j.tag!==6?(j=vs(z,w.mode,Z),j.return=w,j):(j=r(j,z),j.return=w,j)}function x(w,j,z,Z){var ue=z.type;return ue===v?G(w,j,z.props.children,Z,z.key):j!==null&&(j.elementType===ue||typeof ue=="object"&&ue!==null&&ue.$$typeof===q&&nd(ue)===j.type)?(j=r(j,z.props),Ri(j,z),j.return=w,j):(j=nu(z.type,z.key,z.props,null,w.mode,Z),Ri(j,z),j.return=w,j)}function D(w,j,z,Z){return j===null||j.tag!==4||j.stateNode.containerInfo!==z.containerInfo||j.stateNode.implementation!==z.implementation?(j=gs(z,w.mode,Z),j.return=w,j):(j=r(j,z.children||[]),j.return=w,j)}function G(w,j,z,Z,ue){return j===null||j.tag!==7?(j=cl(z,w.mode,Z,ue),j.return=w,j):(j=r(j,z),j.return=w,j)}function $(w,j,z){if(typeof j=="string"&&j!==""||typeof j=="number"||typeof j=="bigint")return j=vs(""+j,w.mode,z),j.return=w,j;if(typeof j=="object"&&j!==null){switch(j.$$typeof){case d:return z=nu(j.type,j.key,j.props,null,w.mode,z),Ri(z,j),z.return=w,z;case y:return j=gs(j,w.mode,z),j.return=w,j;case q:var Z=j._init;return j=Z(j._payload),$(w,j,z)}if(te(j)||N(j))return j=cl(j,w.mode,z,null),j.return=w,j;if(typeof j.then=="function")return $(w,Hr(j),z);if(j.$$typeof===_)return $(w,Ir(w,j),z);Br(w,j)}return null}function L(w,j,z,Z){var ue=j!==null?j.key:null;if(typeof z=="string"&&z!==""||typeof z=="number"||typeof z=="bigint")return ue!==null?null:E(w,j,""+z,Z);if(typeof z=="object"&&z!==null){switch(z.$$typeof){case d:return z.key===ue?x(w,j,z,Z):null;case y:return z.key===ue?D(w,j,z,Z):null;case q:return ue=z._init,z=ue(z._payload),L(w,j,z,Z)}if(te(z)||N(z))return ue!==null?null:G(w,j,z,Z,null);if(typeof z.then=="function")return L(w,j,Hr(z),Z);if(z.$$typeof===_)return L(w,j,Ir(w,z),Z);Br(w,z)}return null}function V(w,j,z,Z,ue){if(typeof Z=="string"&&Z!==""||typeof Z=="number"||typeof Z=="bigint")return w=w.get(z)||null,E(j,w,""+Z,ue);if(typeof Z=="object"&&Z!==null){switch(Z.$$typeof){case d:return w=w.get(Z.key===null?z:Z.key)||null,x(j,w,Z,ue);case y:return w=w.get(Z.key===null?z:Z.key)||null,D(j,w,Z,ue);case q:var we=Z._init;return Z=we(Z._payload),V(w,j,z,Z,ue)}if(te(Z)||N(Z))return w=w.get(z)||null,G(j,w,Z,ue,null);if(typeof Z.then=="function")return V(w,j,z,Hr(Z),ue);if(Z.$$typeof===_)return V(w,j,z,Ir(j,Z),ue);Br(j,Z)}return null}function he(w,j,z,Z){for(var ue=null,we=null,pe=j,Se=j=0,jt=null;pe!==null&&Se<z.length;Se++){pe.index>Se?(jt=pe,pe=null):jt=pe.sibling;var ke=L(w,pe,z[Se],Z);if(ke===null){pe===null&&(pe=jt);break}e&&pe&&ke.alternate===null&&t(w,pe),j=o(ke,j,Se),we===null?ue=ke:we.sibling=ke,we=ke,pe=jt}if(Se===z.length)return a(w,pe),Ge&&Pa(w,Se),ue;if(pe===null){for(;Se<z.length;Se++)pe=$(w,z[Se],Z),pe!==null&&(j=o(pe,j,Se),we===null?ue=pe:we.sibling=pe,we=pe);return Ge&&Pa(w,Se),ue}for(pe=i(pe);Se<z.length;Se++)jt=V(pe,w,Se,z[Se],Z),jt!==null&&(e&&jt.alternate!==null&&pe.delete(jt.key===null?Se:jt.key),j=o(jt,j,Se),we===null?ue=jt:we.sibling=jt,we=jt);return e&&pe.forEach(function(La){return t(w,La)}),Ge&&Pa(w,Se),ue}function Te(w,j,z,Z){if(z==null)throw Error(s(151));for(var ue=null,we=null,pe=j,Se=j=0,jt=null,ke=z.next();pe!==null&&!ke.done;Se++,ke=z.next()){pe.index>Se?(jt=pe,pe=null):jt=pe.sibling;var La=L(w,pe,ke.value,Z);if(La===null){pe===null&&(pe=jt);break}e&&pe&&La.alternate===null&&t(w,pe),j=o(La,j,Se),we===null?ue=La:we.sibling=La,we=La,pe=jt}if(ke.done)return a(w,pe),Ge&&Pa(w,Se),ue;if(pe===null){for(;!ke.done;Se++,ke=z.next())ke=$(w,ke.value,Z),ke!==null&&(j=o(ke,j,Se),we===null?ue=ke:we.sibling=ke,we=ke);return Ge&&Pa(w,Se),ue}for(pe=i(pe);!ke.done;Se++,ke=z.next())ke=V(pe,w,Se,ke.value,Z),ke!==null&&(e&&ke.alternate!==null&&pe.delete(ke.key===null?Se:ke.key),j=o(ke,j,Se),we===null?ue=ke:we.sibling=ke,we=ke);return e&&pe.forEach(function(Zg){return t(w,Zg)}),Ge&&Pa(w,Se),ue}function ht(w,j,z,Z){if(typeof z=="object"&&z!==null&&z.type===v&&z.key===null&&(z=z.props.children),typeof z=="object"&&z!==null){switch(z.$$typeof){case d:e:{for(var ue=z.key;j!==null;){if(j.key===ue){if(ue=z.type,ue===v){if(j.tag===7){a(w,j.sibling),Z=r(j,z.props.children),Z.return=w,w=Z;break e}}else if(j.elementType===ue||typeof ue=="object"&&ue!==null&&ue.$$typeof===q&&nd(ue)===j.type){a(w,j.sibling),Z=r(j,z.props),Ri(Z,z),Z.return=w,w=Z;break e}a(w,j);break}else t(w,j);j=j.sibling}z.type===v?(Z=cl(z.props.children,w.mode,Z,z.key),Z.return=w,w=Z):(Z=nu(z.type,z.key,z.props,null,w.mode,Z),Ri(Z,z),Z.return=w,w=Z)}return m(w);case y:e:{for(ue=z.key;j!==null;){if(j.key===ue)if(j.tag===4&&j.stateNode.containerInfo===z.containerInfo&&j.stateNode.implementation===z.implementation){a(w,j.sibling),Z=r(j,z.children||[]),Z.return=w,w=Z;break e}else{a(w,j);break}else t(w,j);j=j.sibling}Z=gs(z,w.mode,Z),Z.return=w,w=Z}return m(w);case q:return ue=z._init,z=ue(z._payload),ht(w,j,z,Z)}if(te(z))return he(w,j,z,Z);if(N(z)){if(ue=N(z),typeof ue!="function")throw Error(s(150));return z=ue.call(z),Te(w,j,z,Z)}if(typeof z.then=="function")return ht(w,j,Hr(z),Z);if(z.$$typeof===_)return ht(w,j,Ir(w,z),Z);Br(w,z)}return typeof z=="string"&&z!==""||typeof z=="number"||typeof z=="bigint"?(z=""+z,j!==null&&j.tag===6?(a(w,j.sibling),Z=r(j,z),Z.return=w,w=Z):(a(w,j),Z=vs(z,w.mode,Z),Z.return=w,w=Z),m(w)):a(w,j)}return function(w,j,z,Z){try{_i=0;var ue=ht(w,j,z,Z);return Ml=null,ue}catch(pe){if(pe===Si)throw pe;var we=bn(29,pe,null,w.mode);return we.lanes=Z,we.return=w,we}finally{}}}var Ia=ad(!0),ld=ad(!1),zl=Ce(null),qr=Ce(0);function id(e,t){e=ca,Ee(qr,e),Ee(zl,t),ca=e|t.baseLanes}function Rc(){Ee(qr,ca),Ee(zl,zl.current)}function Tc(){ca=qr.current,Le(zl),Le(qr)}var vn=Ce(null),Hn=null;function va(e){var t=e.alternate;Ee(xt,xt.current&1),Ee(vn,e),Hn===null&&(t===null||zl.current!==null||t.memoizedState!==null)&&(Hn=e)}function rd(e){if(e.tag===22){if(Ee(xt,xt.current),Ee(vn,e),Hn===null){var t=e.alternate;t!==null&&t.memoizedState!==null&&(Hn=e)}}else ga()}function ga(){Ee(xt,xt.current),Ee(vn,vn.current)}function Wn(e){Le(vn),Hn===e&&(Hn=null),Le(xt)}var xt=Ce(0);function Vr(e){for(var t=e;t!==null;){if(t.tag===13){var a=t.memoizedState;if(a!==null&&(a=a.dehydrated,a===null||a.data==="$?"||a.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 Mv=typeof AbortController<"u"?AbortController:function(){var e=[],t=this.signal={aborted:!1,addEventListener:function(a,i){e.push(i)}};this.abort=function(){t.aborted=!0,e.forEach(function(a){return a()})}},zv=l.unstable_scheduleCallback,Lv=l.unstable_NormalPriority,_t={$$typeof:_,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function Nc(){return{controller:new Mv,data:new Map,refCount:0}}function Ti(e){e.refCount--,e.refCount===0&&zv(Lv,function(){e.controller.abort()})}var Ni=null,Cc=0,Ll=0,Ul=null;function Uv(e,t){if(Ni===null){var a=Ni=[];Cc=0,Ll=Ms(),Ul={status:"pending",value:void 0,then:function(i){a.push(i)}}}return Cc++,t.then(ud,ud),t}function ud(){if(--Cc===0&&Ni!==null){Ul!==null&&(Ul.status="fulfilled");var e=Ni;Ni=null,Ll=0,Ul=null;for(var t=0;t<e.length;t++)(0,e[t])()}}function Hv(e,t){var a=[],i={status:"pending",value:null,reason:null,then:function(r){a.push(r)}};return e.then(function(){i.status="fulfilled",i.value=t;for(var r=0;r<a.length;r++)(0,a[r])(t)},function(r){for(i.status="rejected",i.reason=r,r=0;r<a.length;r++)(0,a[r])(void 0)}),i}var cd=X.S;X.S=function(e,t){typeof t=="object"&&t!==null&&typeof t.then=="function"&&Uv(e,t),cd!==null&&cd(e,t)};var el=Ce(null);function jc(){var e=el.current;return e!==null?e:tt.pooledCache}function Yr(e,t){t===null?Ee(el,el.current):Ee(el,t.pool)}function sd(){var e=jc();return e===null?null:{parent:_t._currentValue,pool:e}}var Ea=0,Oe=null,$e=null,gt=null,Gr=!1,Hl=!1,tl=!1,kr=0,Ci=0,Bl=null,Bv=0;function pt(){throw Error(s(321))}function Oc(e,t){if(t===null)return!1;for(var a=0;a<t.length&&a<e.length;a++)if(!Wt(e[a],t[a]))return!1;return!0}function Dc(e,t,a,i,r,o){return Ea=o,Oe=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,X.H=e===null||e.memoizedState===null?nl:ba,tl=!1,o=a(i,r),tl=!1,Hl&&(o=fd(t,a,i,r)),od(e),o}function od(e){X.H=Bn;var t=$e!==null&&$e.next!==null;if(Ea=0,gt=$e=Oe=null,Gr=!1,Ci=0,Bl=null,t)throw Error(s(300));e===null||Nt||(e=e.dependencies,e!==null&&Wr(e)&&(Nt=!0))}function fd(e,t,a,i){Oe=e;var r=0;do{if(Hl&&(Bl=null),Ci=0,Hl=!1,25<=r)throw Error(s(301));if(r+=1,gt=$e=null,e.updateQueue!=null){var o=e.updateQueue;o.lastEffect=null,o.events=null,o.stores=null,o.memoCache!=null&&(o.memoCache.index=0)}X.H=al,o=t(a,i)}while(Hl);return o}function qv(){var e=X.H,t=e.useState()[0];return t=typeof t.then=="function"?ji(t):t,e=e.useState()[0],($e!==null?$e.memoizedState:null)!==e&&(Oe.flags|=1024),t}function wc(){var e=kr!==0;return kr=0,e}function Ac(e,t,a){t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~a}function Mc(e){if(Gr){for(e=e.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}Gr=!1}Ea=0,gt=$e=Oe=null,Hl=!1,Ci=kr=0,Bl=null}function Jt(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return gt===null?Oe.memoizedState=gt=e:gt=gt.next=e,gt}function Et(){if($e===null){var e=Oe.alternate;e=e!==null?e.memoizedState:null}else e=$e.next;var t=gt===null?Oe.memoizedState:gt.next;if(t!==null)gt=t,$e=e;else{if(e===null)throw Oe.alternate===null?Error(s(467)):Error(s(310));$e=e,e={memoizedState:$e.memoizedState,baseState:$e.baseState,baseQueue:$e.baseQueue,queue:$e.queue,next:null},gt===null?Oe.memoizedState=gt=e:gt=gt.next=e}return gt}var Xr;Xr=function(){return{lastEffect:null,events:null,stores:null,memoCache:null}};function ji(e){var t=Ci;return Ci+=1,Bl===null&&(Bl=[]),e=ed(Bl,e,t),t=Oe,(gt===null?t.memoizedState:gt.next)===null&&(t=t.alternate,X.H=t===null||t.memoizedState===null?nl:ba),e}function Qr(e){if(e!==null&&typeof e=="object"){if(typeof e.then=="function")return ji(e);if(e.$$typeof===_)return qt(e)}throw Error(s(438,String(e)))}function zc(e){var t=null,a=Oe.updateQueue;if(a!==null&&(t=a.memoCache),t==null){var i=Oe.alternate;i!==null&&(i=i.updateQueue,i!==null&&(i=i.memoCache,i!=null&&(t={data:i.data.map(function(r){return r.slice()}),index:0})))}if(t==null&&(t={data:[],index:0}),a===null&&(a=Xr(),Oe.updateQueue=a),a.memoCache=t,a=t.data[t.index],a===void 0)for(a=t.data[t.index]=Array(e),i=0;i<e;i++)a[i]=J;return t.index++,a}function In(e,t){return typeof t=="function"?t(e):t}function Zr(e){var t=Et();return Lc(t,$e,e)}function Lc(e,t,a){var i=e.queue;if(i===null)throw Error(s(311));i.lastRenderedReducer=a;var r=e.baseQueue,o=i.pending;if(o!==null){if(r!==null){var m=r.next;r.next=o.next,o.next=m}t.baseQueue=r=o,i.pending=null}if(o=e.baseState,r===null)e.memoizedState=o;else{t=r.next;var E=m=null,x=null,D=t,G=!1;do{var $=D.lane&-536870913;if($!==D.lane?(Ve&$)===$:(Ea&$)===$){var L=D.revertLane;if(L===0)x!==null&&(x=x.next={lane:0,revertLane:0,action:D.action,hasEagerState:D.hasEagerState,eagerState:D.eagerState,next:null}),$===Ll&&(G=!0);else if((Ea&L)===L){D=D.next,L===Ll&&(G=!0);continue}else $={lane:0,revertLane:D.revertLane,action:D.action,hasEagerState:D.hasEagerState,eagerState:D.eagerState,next:null},x===null?(E=x=$,m=o):x=x.next=$,Oe.lanes|=L,Oa|=L;$=D.action,tl&&a(o,$),o=D.hasEagerState?D.eagerState:a(o,$)}else L={lane:$,revertLane:D.revertLane,action:D.action,hasEagerState:D.hasEagerState,eagerState:D.eagerState,next:null},x===null?(E=x=L,m=o):x=x.next=L,Oe.lanes|=$,Oa|=$;D=D.next}while(D!==null&&D!==t);if(x===null?m=o:x.next=E,!Wt(o,e.memoizedState)&&(Nt=!0,G&&(a=Ul,a!==null)))throw a;e.memoizedState=o,e.baseState=m,e.baseQueue=x,i.lastRenderedState=o}return r===null&&(i.lanes=0),[e.memoizedState,i.dispatch]}function Uc(e){var t=Et(),a=t.queue;if(a===null)throw Error(s(311));a.lastRenderedReducer=e;var i=a.dispatch,r=a.pending,o=t.memoizedState;if(r!==null){a.pending=null;var m=r=r.next;do o=e(o,m.action),m=m.next;while(m!==r);Wt(o,t.memoizedState)||(Nt=!0),t.memoizedState=o,t.baseQueue===null&&(t.baseState=o),a.lastRenderedState=o}return[o,i]}function dd(e,t,a){var i=Oe,r=Et(),o=Ge;if(o){if(a===void 0)throw Error(s(407));a=a()}else a=t();var m=!Wt(($e||r).memoizedState,a);if(m&&(r.memoizedState=a,Nt=!0),r=r.queue,qc(yd.bind(null,i,r,e),[e]),r.getSnapshot!==t||m||gt!==null&>.memoizedState.tag&1){if(i.flags|=2048,ql(9,md.bind(null,i,r,a,t),{destroy:void 0},null),tt===null)throw Error(s(349));o||Ea&60||hd(i,t,a)}return a}function hd(e,t,a){e.flags|=16384,e={getSnapshot:t,value:a},t=Oe.updateQueue,t===null?(t=Xr(),Oe.updateQueue=t,t.stores=[e]):(a=t.stores,a===null?t.stores=[e]:a.push(e))}function md(e,t,a,i){t.value=a,t.getSnapshot=i,pd(t)&&vd(e)}function yd(e,t,a){return a(function(){pd(t)&&vd(e)})}function pd(e){var t=e.getSnapshot;e=e.value;try{var a=t();return!Wt(e,a)}catch{return!0}}function vd(e){var t=pa(e,2);t!==null&&Xt(t,e,2)}function Hc(e){var t=Jt();if(typeof e=="function"){var a=e;if(e=a(),tl){Nn(!0);try{a()}finally{Nn(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:In,lastRenderedState:e},t}function gd(e,t,a,i){return e.baseState=a,Lc(e,$e,typeof i=="function"?i:In)}function Vv(e,t,a,i,r){if(Fr(e))throw Error(s(485));if(e=t.action,e!==null){var o={payload:r,action:e,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(m){o.listeners.push(m)}};X.T!==null?a(!0):o.isTransition=!1,i(o),a=t.pending,a===null?(o.next=t.pending=o,Ed(t,o)):(o.next=a.next,t.pending=a.next=o)}}function Ed(e,t){var a=t.action,i=t.payload,r=e.state;if(t.isTransition){var o=X.T,m={};X.T=m;try{var E=a(r,i),x=X.S;x!==null&&x(m,E),bd(e,t,E)}catch(D){Bc(e,t,D)}finally{X.T=o}}else try{o=a(r,i),bd(e,t,o)}catch(D){Bc(e,t,D)}}function bd(e,t,a){a!==null&&typeof a=="object"&&typeof a.then=="function"?a.then(function(i){Sd(e,t,i)},function(i){return Bc(e,t,i)}):Sd(e,t,a)}function Sd(e,t,a){t.status="fulfilled",t.value=a,xd(t),e.state=a,t=e.pending,t!==null&&(a=t.next,a===t?e.pending=null:(a=a.next,t.next=a,Ed(e,a)))}function Bc(e,t,a){var i=e.pending;if(e.pending=null,i!==null){i=i.next;do t.status="rejected",t.reason=a,xd(t),t=t.next;while(t!==i)}e.action=null}function xd(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function _d(e,t){return t}function Rd(e,t){if(Ge){var a=tt.formState;if(a!==null){e:{var i=Oe;if(Ge){if(At){t:{for(var r=At,o=Un;r.nodeType!==8;){if(!o){r=null;break t}if(r=Dn(r.nextSibling),r===null){r=null;break t}}o=r.data,r=o==="F!"||o==="F"?r:null}if(r){At=Dn(r.nextSibling),i=r.data==="F!";break e}}Wa(i)}i=!1}i&&(t=a[0])}}return a=Jt(),a.memoizedState=a.baseState=t,i={pending:null,lanes:0,dispatch:null,lastRenderedReducer:_d,lastRenderedState:t},a.queue=i,a=Gd.bind(null,Oe,i),i.dispatch=a,i=Hc(!1),o=Xc.bind(null,Oe,!1,i.queue),i=Jt(),r={state:t,dispatch:null,action:e,pending:null},i.queue=r,a=Vv.bind(null,Oe,r,o,a),r.dispatch=a,i.memoizedState=e,[t,a,!1]}function Td(e){var t=Et();return Nd(t,$e,e)}function Nd(e,t,a){t=Lc(e,t,_d)[0],e=Zr(In)[0],t=typeof t=="object"&&t!==null&&typeof t.then=="function"?ji(t):t;var i=Et(),r=i.queue,o=r.dispatch;return a!==i.memoizedState&&(Oe.flags|=2048,ql(9,Yv.bind(null,r,a),{destroy:void 0},null)),[t,o,e]}function Yv(e,t){e.action=t}function Cd(e){var t=Et(),a=$e;if(a!==null)return Nd(t,a,e);Et(),t=t.memoizedState,a=Et();var i=a.queue.dispatch;return a.memoizedState=e,[t,i,!1]}function ql(e,t,a,i){return e={tag:e,create:t,inst:a,deps:i,next:null},t=Oe.updateQueue,t===null&&(t=Xr(),Oe.updateQueue=t),a=t.lastEffect,a===null?t.lastEffect=e.next=e:(i=a.next,a.next=e,e.next=i,t.lastEffect=e),e}function jd(){return Et().memoizedState}function Kr(e,t,a,i){var r=Jt();Oe.flags|=e,r.memoizedState=ql(1|t,a,{destroy:void 0},i===void 0?null:i)}function $r(e,t,a,i){var r=Et();i=i===void 0?null:i;var o=r.memoizedState.inst;$e!==null&&i!==null&&Oc(i,$e.memoizedState.deps)?r.memoizedState=ql(t,a,o,i):(Oe.flags|=e,r.memoizedState=ql(1|t,a,o,i))}function Od(e,t){Kr(8390656,8,e,t)}function qc(e,t){$r(2048,8,e,t)}function Dd(e,t){return $r(4,2,e,t)}function wd(e,t){return $r(4,4,e,t)}function Ad(e,t){if(typeof t=="function"){e=e();var a=t(e);return function(){typeof a=="function"?a():t(null)}}if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function Md(e,t,a){a=a!=null?a.concat([e]):null,$r(4,4,Ad.bind(null,t,e),a)}function Vc(){}function zd(e,t){var a=Et();t=t===void 0?null:t;var i=a.memoizedState;return t!==null&&Oc(t,i[1])?i[0]:(a.memoizedState=[e,t],e)}function Ld(e,t){var a=Et();t=t===void 0?null:t;var i=a.memoizedState;if(t!==null&&Oc(t,i[1]))return i[0];if(i=e(),tl){Nn(!0);try{e()}finally{Nn(!1)}}return a.memoizedState=[i,t],i}function Yc(e,t,a){return a===void 0||Ea&1073741824?e.memoizedState=t:(e.memoizedState=a,e=Hh(),Oe.lanes|=e,Oa|=e,a)}function Ud(e,t,a,i){return Wt(a,t)?a:zl.current!==null?(e=Yc(e,a,i),Wt(e,t)||(Nt=!0),e):Ea&42?(e=Hh(),Oe.lanes|=e,Oa|=e,t):(Nt=!0,e.memoizedState=a)}function Hd(e,t,a,i,r){var o=P.p;P.p=o!==0&&8>o?o:8;var m=X.T,E={};X.T=E,Xc(e,!1,t,a);try{var x=r(),D=X.S;if(D!==null&&D(E,x),x!==null&&typeof x=="object"&&typeof x.then=="function"){var G=Hv(x,i);Oi(e,t,G,nn(e))}else Oi(e,t,i,nn(e))}catch($){Oi(e,t,{then:function(){},status:"rejected",reason:$},nn())}finally{P.p=o,X.T=m}}function Gv(){}function Gc(e,t,a,i){if(e.tag!==5)throw Error(s(476));var r=Bd(e).queue;Hd(e,r,t,ge,a===null?Gv:function(){return qd(e),a(i)})}function Bd(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:In,lastRenderedState:ge},next:null};var a={};return t.next={memoizedState:a,baseState:a,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:In,lastRenderedState:a},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function qd(e){var t=Bd(e).next.queue;Oi(e,t,{},nn())}function kc(){return qt(Fi)}function Vd(){return Et().memoizedState}function Yd(){return Et().memoizedState}function kv(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var a=nn();e=_a(a);var i=Ra(t,e,a);i!==null&&(Xt(i,t,a),Ai(i,t,a)),t={cache:Nc()},e.payload=t;return}t=t.return}}function Xv(e,t,a){var i=nn();a={lane:i,revertLane:0,action:a,hasEagerState:!1,eagerState:null,next:null},Fr(e)?kd(t,a):(a=Ec(e,t,a,i),a!==null&&(Xt(a,e,i),Xd(a,t,i)))}function Gd(e,t,a){var i=nn();Oi(e,t,a,i)}function Oi(e,t,a,i){var r={lane:i,revertLane:0,action:a,hasEagerState:!1,eagerState:null,next:null};if(Fr(e))kd(t,r);else{var o=e.alternate;if(e.lanes===0&&(o===null||o.lanes===0)&&(o=t.lastRenderedReducer,o!==null))try{var m=t.lastRenderedState,E=o(m,a);if(r.hasEagerState=!0,r.eagerState=E,Wt(E,m))return Ar(e,t,r,0),tt===null&&wr(),!1}catch{}finally{}if(a=Ec(e,t,r,i),a!==null)return Xt(a,e,i),Xd(a,t,i),!0}return!1}function Xc(e,t,a,i){if(i={lane:2,revertLane:Ms(),action:i,hasEagerState:!1,eagerState:null,next:null},Fr(e)){if(t)throw Error(s(479))}else t=Ec(e,a,i,2),t!==null&&Xt(t,e,2)}function Fr(e){var t=e.alternate;return e===Oe||t!==null&&t===Oe}function kd(e,t){Hl=Gr=!0;var a=e.pending;a===null?t.next=t:(t.next=a.next,a.next=t),e.pending=t}function Xd(e,t,a){if(a&4194176){var i=t.lanes;i&=e.pendingLanes,a|=i,t.lanes=a,me(e,a)}}var Bn={readContext:qt,use:Qr,useCallback:pt,useContext:pt,useEffect:pt,useImperativeHandle:pt,useLayoutEffect:pt,useInsertionEffect:pt,useMemo:pt,useReducer:pt,useRef:pt,useState:pt,useDebugValue:pt,useDeferredValue:pt,useTransition:pt,useSyncExternalStore:pt,useId:pt};Bn.useCacheRefresh=pt,Bn.useMemoCache=pt,Bn.useHostTransitionStatus=pt,Bn.useFormState=pt,Bn.useActionState=pt,Bn.useOptimistic=pt;var nl={readContext:qt,use:Qr,useCallback:function(e,t){return Jt().memoizedState=[e,t===void 0?null:t],e},useContext:qt,useEffect:Od,useImperativeHandle:function(e,t,a){a=a!=null?a.concat([e]):null,Kr(4194308,4,Ad.bind(null,t,e),a)},useLayoutEffect:function(e,t){return Kr(4194308,4,e,t)},useInsertionEffect:function(e,t){Kr(4,2,e,t)},useMemo:function(e,t){var a=Jt();t=t===void 0?null:t;var i=e();if(tl){Nn(!0);try{e()}finally{Nn(!1)}}return a.memoizedState=[i,t],i},useReducer:function(e,t,a){var i=Jt();if(a!==void 0){var r=a(t);if(tl){Nn(!0);try{a(t)}finally{Nn(!1)}}}else r=t;return i.memoizedState=i.baseState=r,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:r},i.queue=e,e=e.dispatch=Xv.bind(null,Oe,e),[i.memoizedState,e]},useRef:function(e){var t=Jt();return e={current:e},t.memoizedState=e},useState:function(e){e=Hc(e);var t=e.queue,a=Gd.bind(null,Oe,t);return t.dispatch=a,[e.memoizedState,a]},useDebugValue:Vc,useDeferredValue:function(e,t){var a=Jt();return Yc(a,e,t)},useTransition:function(){var e=Hc(!1);return e=Hd.bind(null,Oe,e.queue,!0,!1),Jt().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,a){var i=Oe,r=Jt();if(Ge){if(a===void 0)throw Error(s(407));a=a()}else{if(a=t(),tt===null)throw Error(s(349));Ve&60||hd(i,t,a)}r.memoizedState=a;var o={value:a,getSnapshot:t};return r.queue=o,Od(yd.bind(null,i,o,e),[e]),i.flags|=2048,ql(9,md.bind(null,i,o,a,t),{destroy:void 0},null),a},useId:function(){var e=Jt(),t=tt.identifierPrefix;if(Ge){var a=Pn,i=Jn;a=(i&~(1<<32-Tt(i)-1)).toString(32)+a,t=":"+t+"R"+a,a=kr++,0<a&&(t+="H"+a.toString(32)),t+=":"}else a=Bv++,t=":"+t+"r"+a.toString(32)+":";return e.memoizedState=t},useCacheRefresh:function(){return Jt().memoizedState=kv.bind(null,Oe)}};nl.useMemoCache=zc,nl.useHostTransitionStatus=kc,nl.useFormState=Rd,nl.useActionState=Rd,nl.useOptimistic=function(e){var t=Jt();t.memoizedState=t.baseState=e;var a={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=a,t=Xc.bind(null,Oe,!0,a),a.dispatch=t,[e,t]};var ba={readContext:qt,use:Qr,useCallback:zd,useContext:qt,useEffect:qc,useImperativeHandle:Md,useInsertionEffect:Dd,useLayoutEffect:wd,useMemo:Ld,useReducer:Zr,useRef:jd,useState:function(){return Zr(In)},useDebugValue:Vc,useDeferredValue:function(e,t){var a=Et();return Ud(a,$e.memoizedState,e,t)},useTransition:function(){var e=Zr(In)[0],t=Et().memoizedState;return[typeof e=="boolean"?e:ji(e),t]},useSyncExternalStore:dd,useId:Vd};ba.useCacheRefresh=Yd,ba.useMemoCache=zc,ba.useHostTransitionStatus=kc,ba.useFormState=Td,ba.useActionState=Td,ba.useOptimistic=function(e,t){var a=Et();return gd(a,$e,e,t)};var al={readContext:qt,use:Qr,useCallback:zd,useContext:qt,useEffect:qc,useImperativeHandle:Md,useInsertionEffect:Dd,useLayoutEffect:wd,useMemo:Ld,useReducer:Uc,useRef:jd,useState:function(){return Uc(In)},useDebugValue:Vc,useDeferredValue:function(e,t){var a=Et();return $e===null?Yc(a,e,t):Ud(a,$e.memoizedState,e,t)},useTransition:function(){var e=Uc(In)[0],t=Et().memoizedState;return[typeof e=="boolean"?e:ji(e),t]},useSyncExternalStore:dd,useId:Vd};al.useCacheRefresh=Yd,al.useMemoCache=zc,al.useHostTransitionStatus=kc,al.useFormState=Cd,al.useActionState=Cd,al.useOptimistic=function(e,t){var a=Et();return $e!==null?gd(a,$e,e,t):(a.baseState=e,[e,a.queue.dispatch])};function Qc(e,t,a,i){t=e.memoizedState,a=a(i,t),a=a==null?t:I({},t,a),e.memoizedState=a,e.lanes===0&&(e.updateQueue.baseState=a)}var Zc={isMounted:function(e){return(e=e._reactInternals)?ne(e)===e:!1},enqueueSetState:function(e,t,a){e=e._reactInternals;var i=nn(),r=_a(i);r.payload=t,a!=null&&(r.callback=a),t=Ra(e,r,i),t!==null&&(Xt(t,e,i),Ai(t,e,i))},enqueueReplaceState:function(e,t,a){e=e._reactInternals;var i=nn(),r=_a(i);r.tag=1,r.payload=t,a!=null&&(r.callback=a),t=Ra(e,r,i),t!==null&&(Xt(t,e,i),Ai(t,e,i))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var a=nn(),i=_a(a);i.tag=2,t!=null&&(i.callback=t),t=Ra(e,i,a),t!==null&&(Xt(t,e,a),Ai(t,e,a))}};function Qd(e,t,a,i,r,o,m){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(i,o,m):t.prototype&&t.prototype.isPureReactComponent?!pi(a,i)||!pi(r,o):!0}function Zd(e,t,a,i){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(a,i),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(a,i),t.state!==e&&Zc.enqueueReplaceState(t,t.state,null)}function ll(e,t){var a=t;if("ref"in t){a={};for(var i in t)i!=="ref"&&(a[i]=t[i])}if(e=e.defaultProps){a===t&&(a=I({},a));for(var r in e)a[r]===void 0&&(a[r]=e[r])}return a}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 Kd(e){Jr(e)}function $d(e){console.error(e)}function Fd(e){Jr(e)}function Pr(e,t){try{var a=e.onUncaughtError;a(t.value,{componentStack:t.stack})}catch(i){setTimeout(function(){throw i})}}function Jd(e,t,a){try{var i=e.onCaughtError;i(a.value,{componentStack:a.stack,errorBoundary:t.tag===1?t.stateNode:null})}catch(r){setTimeout(function(){throw r})}}function Kc(e,t,a){return a=_a(a),a.tag=3,a.payload={element:null},a.callback=function(){Pr(e,t)},a}function Pd(e){return e=_a(e),e.tag=3,e}function Wd(e,t,a,i){var r=a.type.getDerivedStateFromError;if(typeof r=="function"){var o=i.value;e.payload=function(){return r(o)},e.callback=function(){Jd(t,a,i)}}var m=a.stateNode;m!==null&&typeof m.componentDidCatch=="function"&&(e.callback=function(){Jd(t,a,i),typeof r!="function"&&(Da===null?Da=new Set([this]):Da.add(this));var E=i.stack;this.componentDidCatch(i.value,{componentStack:E!==null?E:""})})}function Qv(e,t,a,i,r){if(a.flags|=32768,i!==null&&typeof i=="object"&&typeof i.then=="function"){if(t=a.alternate,t!==null&&wi(t,a,r,!0),a=vn.current,a!==null){switch(a.tag){case 13:return Hn===null?js():a.alternate===null&&dt===0&&(dt=3),a.flags&=-257,a.flags|=65536,a.lanes=r,i===_c?a.flags|=16384:(t=a.updateQueue,t===null?a.updateQueue=new Set([i]):t.add(i),Ds(e,i,r)),!1;case 22:return a.flags|=65536,i===_c?a.flags|=16384:(t=a.updateQueue,t===null?(t={transitions:null,markerInstances:null,retryQueue:new Set([i])},a.updateQueue=t):(a=t.retryQueue,a===null?t.retryQueue=new Set([i]):a.add(i)),Ds(e,i,r)),!1}throw Error(s(435,a.tag))}return Ds(e,i,r),js(),!1}if(Ge)return t=vn.current,t!==null?(!(t.flags&65536)&&(t.flags|=256),t.flags|=65536,t.lanes=r,i!==xc&&(e=Error(s(422),{cause:i}),bi(mn(e,a)))):(i!==xc&&(t=Error(s(423),{cause:i}),bi(mn(t,a))),e=e.current.alternate,e.flags|=65536,r&=-r,e.lanes|=r,i=mn(i,a),r=Kc(e.stateNode,i,r),cs(e,r),dt!==4&&(dt=2)),!1;var o=Error(s(520),{cause:i});if(o=mn(o,a),Vi===null?Vi=[o]:Vi.push(o),dt!==4&&(dt=2),t===null)return!0;i=mn(i,a),a=t;do{switch(a.tag){case 3:return a.flags|=65536,e=r&-r,a.lanes|=e,e=Kc(a.stateNode,i,e),cs(a,e),!1;case 1:if(t=a.type,o=a.stateNode,(a.flags&128)===0&&(typeof t.getDerivedStateFromError=="function"||o!==null&&typeof o.componentDidCatch=="function"&&(Da===null||!Da.has(o))))return a.flags|=65536,r&=-r,a.lanes|=r,r=Pd(r),Wd(r,e,a,i),cs(a,r),!1}a=a.return}while(a!==null);return!1}var Id=Error(s(461)),Nt=!1;function Mt(e,t,a,i){t.child=e===null?ld(t,null,a,i):Ia(t,e.child,a,i)}function eh(e,t,a,i,r){a=a.render;var o=t.ref;if("ref"in i){var m={};for(var E in i)E!=="ref"&&(m[E]=i[E])}else m=i;return rl(t),i=Dc(e,t,a,m,o,r),E=wc(),e!==null&&!Nt?(Ac(e,t,r),ea(e,t,r)):(Ge&&E&&bc(t),t.flags|=1,Mt(e,t,i,r),t.child)}function th(e,t,a,i,r){if(e===null){var o=a.type;return typeof o=="function"&&!ps(o)&&o.defaultProps===void 0&&a.compare===null?(t.tag=15,t.type=o,nh(e,t,o,i,r)):(e=nu(a.type,null,i,t,t.mode,r),e.ref=t.ref,e.return=t,t.child=e)}if(o=e.child,!ns(e,r)){var m=o.memoizedProps;if(a=a.compare,a=a!==null?a:pi,a(m,i)&&e.ref===t.ref)return ea(e,t,r)}return t.flags|=1,e=ja(o,i),e.ref=t.ref,e.return=t,t.child=e}function nh(e,t,a,i,r){if(e!==null){var o=e.memoizedProps;if(pi(o,i)&&e.ref===t.ref)if(Nt=!1,t.pendingProps=i=o,ns(e,r))e.flags&131072&&(Nt=!0);else return t.lanes=e.lanes,ea(e,t,r)}return $c(e,t,a,i,r)}function ah(e,t,a){var i=t.pendingProps,r=i.children,o=(t.stateNode._pendingVisibility&2)!==0,m=e!==null?e.memoizedState:null;if(Di(e,t),i.mode==="hidden"||o){if(t.flags&128){if(i=m!==null?m.baseLanes|a:a,e!==null){for(r=t.child=e.child,o=0;r!==null;)o=o|r.lanes|r.childLanes,r=r.sibling;t.childLanes=o&~i}else t.childLanes=0,t.child=null;return lh(e,t,i,a)}if(a&536870912)t.memoizedState={baseLanes:0,cachePool:null},e!==null&&Yr(t,m!==null?m.cachePool:null),m!==null?id(t,m):Rc(),rd(t);else return t.lanes=t.childLanes=536870912,lh(e,t,m!==null?m.baseLanes|a:a,a)}else m!==null?(Yr(t,m.cachePool),id(t,m),ga(),t.memoizedState=null):(e!==null&&Yr(t,null),Rc(),ga());return Mt(e,t,r,a),t.child}function lh(e,t,a,i){var r=jc();return r=r===null?null:{parent:_t._currentValue,pool:r},t.memoizedState={baseLanes:a,cachePool:r},e!==null&&Yr(t,null),Rc(),rd(t),e!==null&&wi(e,t,i,!0),null}function Di(e,t){var a=t.ref;if(a===null)e!==null&&e.ref!==null&&(t.flags|=2097664);else{if(typeof a!="function"&&typeof a!="object")throw Error(s(284));(e===null||e.ref!==a)&&(t.flags|=2097664)}}function $c(e,t,a,i,r){return rl(t),a=Dc(e,t,a,i,void 0,r),i=wc(),e!==null&&!Nt?(Ac(e,t,r),ea(e,t,r)):(Ge&&i&&bc(t),t.flags|=1,Mt(e,t,a,r),t.child)}function ih(e,t,a,i,r,o){return rl(t),t.updateQueue=null,a=fd(t,i,a,r),od(e),i=wc(),e!==null&&!Nt?(Ac(e,t,o),ea(e,t,o)):(Ge&&i&&bc(t),t.flags|=1,Mt(e,t,a,o),t.child)}function rh(e,t,a,i,r){if(rl(t),t.stateNode===null){var o=Dl,m=a.contextType;typeof m=="object"&&m!==null&&(o=qt(m)),o=new a(i,o),t.memoizedState=o.state!==null&&o.state!==void 0?o.state:null,o.updater=Zc,t.stateNode=o,o._reactInternals=t,o=t.stateNode,o.props=i,o.state=t.memoizedState,o.refs={},rs(t),m=a.contextType,o.context=typeof m=="object"&&m!==null?qt(m):Dl,o.state=t.memoizedState,m=a.getDerivedStateFromProps,typeof m=="function"&&(Qc(t,a,m,i),o.state=t.memoizedState),typeof a.getDerivedStateFromProps=="function"||typeof o.getSnapshotBeforeUpdate=="function"||typeof o.UNSAFE_componentWillMount!="function"&&typeof o.componentWillMount!="function"||(m=o.state,typeof o.componentWillMount=="function"&&o.componentWillMount(),typeof o.UNSAFE_componentWillMount=="function"&&o.UNSAFE_componentWillMount(),m!==o.state&&Zc.enqueueReplaceState(o,o.state,null),zi(t,i,o,r),Mi(),o.state=t.memoizedState),typeof o.componentDidMount=="function"&&(t.flags|=4194308),i=!0}else if(e===null){o=t.stateNode;var E=t.memoizedProps,x=ll(a,E);o.props=x;var D=o.context,G=a.contextType;m=Dl,typeof G=="object"&&G!==null&&(m=qt(G));var $=a.getDerivedStateFromProps;G=typeof $=="function"||typeof o.getSnapshotBeforeUpdate=="function",E=t.pendingProps!==E,G||typeof o.UNSAFE_componentWillReceiveProps!="function"&&typeof o.componentWillReceiveProps!="function"||(E||D!==m)&&Zd(t,o,i,m),xa=!1;var L=t.memoizedState;o.state=L,zi(t,i,o,r),Mi(),D=t.memoizedState,E||L!==D||xa?(typeof $=="function"&&(Qc(t,a,$,i),D=t.memoizedState),(x=xa||Qd(t,a,x,i,L,D,m))?(G||typeof o.UNSAFE_componentWillMount!="function"&&typeof o.componentWillMount!="function"||(typeof o.componentWillMount=="function"&&o.componentWillMount(),typeof o.UNSAFE_componentWillMount=="function"&&o.UNSAFE_componentWillMount()),typeof o.componentDidMount=="function"&&(t.flags|=4194308)):(typeof o.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=i,t.memoizedState=D),o.props=i,o.state=D,o.context=m,i=x):(typeof o.componentDidMount=="function"&&(t.flags|=4194308),i=!1)}else{o=t.stateNode,us(e,t),m=t.memoizedProps,G=ll(a,m),o.props=G,$=t.pendingProps,L=o.context,D=a.contextType,x=Dl,typeof D=="object"&&D!==null&&(x=qt(D)),E=a.getDerivedStateFromProps,(D=typeof E=="function"||typeof o.getSnapshotBeforeUpdate=="function")||typeof o.UNSAFE_componentWillReceiveProps!="function"&&typeof o.componentWillReceiveProps!="function"||(m!==$||L!==x)&&Zd(t,o,i,x),xa=!1,L=t.memoizedState,o.state=L,zi(t,i,o,r),Mi();var V=t.memoizedState;m!==$||L!==V||xa||e!==null&&e.dependencies!==null&&Wr(e.dependencies)?(typeof E=="function"&&(Qc(t,a,E,i),V=t.memoizedState),(G=xa||Qd(t,a,G,i,L,V,x)||e!==null&&e.dependencies!==null&&Wr(e.dependencies))?(D||typeof o.UNSAFE_componentWillUpdate!="function"&&typeof o.componentWillUpdate!="function"||(typeof o.componentWillUpdate=="function"&&o.componentWillUpdate(i,V,x),typeof o.UNSAFE_componentWillUpdate=="function"&&o.UNSAFE_componentWillUpdate(i,V,x)),typeof o.componentDidUpdate=="function"&&(t.flags|=4),typeof o.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof o.componentDidUpdate!="function"||m===e.memoizedProps&&L===e.memoizedState||(t.flags|=4),typeof o.getSnapshotBeforeUpdate!="function"||m===e.memoizedProps&&L===e.memoizedState||(t.flags|=1024),t.memoizedProps=i,t.memoizedState=V),o.props=i,o.state=V,o.context=x,i=G):(typeof o.componentDidUpdate!="function"||m===e.memoizedProps&&L===e.memoizedState||(t.flags|=4),typeof o.getSnapshotBeforeUpdate!="function"||m===e.memoizedProps&&L===e.memoizedState||(t.flags|=1024),i=!1)}return o=i,Di(e,t),i=(t.flags&128)!==0,o||i?(o=t.stateNode,a=i&&typeof a.getDerivedStateFromError!="function"?null:o.render(),t.flags|=1,e!==null&&i?(t.child=Ia(t,e.child,null,r),t.child=Ia(t,null,a,r)):Mt(e,t,a,r),t.memoizedState=o.state,e=t.child):e=ea(e,t,r),e}function uh(e,t,a,i){return Ei(),t.flags|=256,Mt(e,t,a,i),t.child}var Fc={dehydrated:null,treeContext:null,retryLane:0};function Jc(e){return{baseLanes:e,cachePool:sd()}}function Pc(e,t,a){return e=e!==null?e.childLanes&~a:0,t&&(e|=Sn),e}function ch(e,t,a){var i=t.pendingProps,r=!1,o=(t.flags&128)!==0,m;if((m=o)||(m=e!==null&&e.memoizedState===null?!1:(xt.current&2)!==0),m&&(r=!0,t.flags&=-129),m=(t.flags&32)!==0,t.flags&=-33,e===null){if(Ge){if(r?va(t):ga(),Ge){var E=At,x;if(x=E){e:{for(x=E,E=Un;x.nodeType!==8;){if(!E){E=null;break e}if(x=Dn(x.nextSibling),x===null){E=null;break e}}E=x}E!==null?(t.memoizedState={dehydrated:E,treeContext:Ja!==null?{id:Jn,overflow:Pn}:null,retryLane:536870912},x=bn(18,null,null,0),x.stateNode=E,x.return=t,t.child=x,kt=t,At=null,x=!0):x=!1}x||Wa(t)}if(E=t.memoizedState,E!==null&&(E=E.dehydrated,E!==null))return E.data==="$!"?t.lanes=16:t.lanes=536870912,null;Wn(t)}return E=i.children,i=i.fallback,r?(ga(),r=t.mode,E=Ic({mode:"hidden",children:E},r),i=cl(i,r,a,null),E.return=t,i.return=t,E.sibling=i,t.child=E,r=t.child,r.memoizedState=Jc(a),r.childLanes=Pc(e,m,a),t.memoizedState=Fc,i):(va(t),Wc(t,E))}if(x=e.memoizedState,x!==null&&(E=x.dehydrated,E!==null)){if(o)t.flags&256?(va(t),t.flags&=-257,t=es(e,t,a)):t.memoizedState!==null?(ga(),t.child=e.child,t.flags|=128,t=null):(ga(),r=i.fallback,E=t.mode,i=Ic({mode:"visible",children:i.children},E),r=cl(r,E,a,null),r.flags|=2,i.return=t,r.return=t,i.sibling=r,t.child=i,Ia(t,e.child,null,a),i=t.child,i.memoizedState=Jc(a),i.childLanes=Pc(e,m,a),t.memoizedState=Fc,t=r);else if(va(t),E.data==="$!"){if(m=E.nextSibling&&E.nextSibling.dataset,m)var D=m.dgst;m=D,i=Error(s(419)),i.stack="",i.digest=m,bi({value:i,source:null,stack:null}),t=es(e,t,a)}else if(Nt||wi(e,t,a,!1),m=(a&e.childLanes)!==0,Nt||m){if(m=tt,m!==null){if(i=a&-a,i&42)i=1;else switch(i){case 2:i=1;break;case 8:i=4;break;case 32:i=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:i=64;break;case 268435456:i=134217728;break;default:i=0}if(i=i&(m.suspendedLanes|a)?0:i,i!==0&&i!==x.retryLane)throw x.retryLane=i,pa(e,i),Xt(m,e,i),Id}E.data==="$?"||js(),t=es(e,t,a)}else E.data==="$?"?(t.flags|=128,t.child=e.child,t=rg.bind(null,e),E._reactRetry=t,t=null):(e=x.treeContext,At=Dn(E.nextSibling),kt=t,Ge=!0,jn=null,Un=!1,e!==null&&(yn[pn++]=Jn,yn[pn++]=Pn,yn[pn++]=Ja,Jn=e.id,Pn=e.overflow,Ja=t),t=Wc(t,i.children),t.flags|=4096);return t}return r?(ga(),r=i.fallback,E=t.mode,x=e.child,D=x.sibling,i=ja(x,{mode:"hidden",children:i.children}),i.subtreeFlags=x.subtreeFlags&31457280,D!==null?r=ja(D,r):(r=cl(r,E,a,null),r.flags|=2),r.return=t,i.return=t,i.sibling=r,t.child=i,i=r,r=t.child,E=e.child.memoizedState,E===null?E=Jc(a):(x=E.cachePool,x!==null?(D=_t._currentValue,x=x.parent!==D?{parent:D,pool:D}:x):x=sd(),E={baseLanes:E.baseLanes|a,cachePool:x}),r.memoizedState=E,r.childLanes=Pc(e,m,a),t.memoizedState=Fc,i):(va(t),a=e.child,e=a.sibling,a=ja(a,{mode:"visible",children:i.children}),a.return=t,a.sibling=null,e!==null&&(m=t.deletions,m===null?(t.deletions=[e],t.flags|=16):m.push(e)),t.child=a,t.memoizedState=null,a)}function Wc(e,t){return t=Ic({mode:"visible",children:t},e.mode),t.return=e,e.child=t}function Ic(e,t){return zh(e,t,0,null)}function es(e,t,a){return Ia(t,e.child,null,a),e=Wc(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function sh(e,t,a){e.lanes|=t;var i=e.alternate;i!==null&&(i.lanes|=t),ls(e.return,t,a)}function ts(e,t,a,i,r){var o=e.memoizedState;o===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:i,tail:a,tailMode:r}:(o.isBackwards=t,o.rendering=null,o.renderingStartTime=0,o.last=i,o.tail=a,o.tailMode=r)}function oh(e,t,a){var i=t.pendingProps,r=i.revealOrder,o=i.tail;if(Mt(e,t,i.children,a),i=xt.current,i&2)i=i&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&&sh(e,a,t);else if(e.tag===19)sh(e,a,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}i&=1}switch(Ee(xt,i),r){case"forwards":for(a=t.child,r=null;a!==null;)e=a.alternate,e!==null&&Vr(e)===null&&(r=a),a=a.sibling;a=r,a===null?(r=t.child,t.child=null):(r=a.sibling,a.sibling=null),ts(t,!1,r,a,o);break;case"backwards":for(a=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=a,a=r,r=e}ts(t,!0,a,null,o);break;case"together":ts(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function ea(e,t,a){if(e!==null&&(t.dependencies=e.dependencies),Oa|=t.lanes,!(a&t.childLanes))if(e!==null){if(wi(e,t,a,!1),(a&t.childLanes)===0)return null}else return null;if(e!==null&&t.child!==e.child)throw Error(s(153));if(t.child!==null){for(e=t.child,a=ja(e,e.pendingProps),t.child=a,a.return=t;e.sibling!==null;)e=e.sibling,a=a.sibling=ja(e,e.pendingProps),a.return=t;a.sibling=null}return t.child}function ns(e,t){return e.lanes&t?!0:(e=e.dependencies,!!(e!==null&&Wr(e)))}function Zv(e,t,a){switch(t.tag){case 3:De(t,t.stateNode.containerInfo),Sa(t,_t,e.memoizedState.cache),Ei();break;case 27:case 5:St(t);break;case 4:De(t,t.stateNode.containerInfo);break;case 10:Sa(t,t.type,t.memoizedProps.value);break;case 13:var i=t.memoizedState;if(i!==null)return i.dehydrated!==null?(va(t),t.flags|=128,null):a&t.child.childLanes?ch(e,t,a):(va(t),e=ea(e,t,a),e!==null?e.sibling:null);va(t);break;case 19:var r=(e.flags&128)!==0;if(i=(a&t.childLanes)!==0,i||(wi(e,t,a,!1),i=(a&t.childLanes)!==0),r){if(i)return oh(e,t,a);t.flags|=128}if(r=t.memoizedState,r!==null&&(r.rendering=null,r.tail=null,r.lastEffect=null),Ee(xt,xt.current),i)break;return null;case 22:case 23:return t.lanes=0,ah(e,t,a);case 24:Sa(t,_t,e.memoizedState.cache)}return ea(e,t,a)}function fh(e,t,a){if(e!==null)if(e.memoizedProps!==t.pendingProps)Nt=!0;else{if(!ns(e,a)&&!(t.flags&128))return Nt=!1,Zv(e,t,a);Nt=!!(e.flags&131072)}else Nt=!1,Ge&&t.flags&1048576&&Ff(t,Lr,t.index);switch(t.lanes=0,t.tag){case 16:e:{e=t.pendingProps;var i=t.elementType,r=i._init;if(i=r(i._payload),t.type=i,typeof i=="function")ps(i)?(e=ll(i,e),t.tag=1,t=rh(null,t,i,e,a)):(t.tag=0,t=$c(null,t,i,e,a));else{if(i!=null){if(r=i.$$typeof,r===O){t.tag=11,t=eh(null,t,i,e,a);break e}else if(r===M){t.tag=14,t=th(null,t,i,e,a);break e}}throw t=ie(i)||i,Error(s(306,t,""))}}return t;case 0:return $c(e,t,t.type,t.pendingProps,a);case 1:return i=t.type,r=ll(i,t.pendingProps),rh(e,t,i,r,a);case 3:e:{if(De(t,t.stateNode.containerInfo),e===null)throw Error(s(387));var o=t.pendingProps;r=t.memoizedState,i=r.element,us(e,t),zi(t,o,null,a);var m=t.memoizedState;if(o=m.cache,Sa(t,_t,o),o!==r.cache&&is(t,[_t],a,!0),Mi(),o=m.element,r.isDehydrated)if(r={element:o,isDehydrated:!1,cache:m.cache},t.updateQueue.baseState=r,t.memoizedState=r,t.flags&256){t=uh(e,t,o,a);break e}else if(o!==i){i=mn(Error(s(424)),t),bi(i),t=uh(e,t,o,a);break e}else for(At=Dn(t.stateNode.containerInfo.firstChild),kt=t,Ge=!0,jn=null,Un=!0,a=ld(t,null,o,a),t.child=a;a;)a.flags=a.flags&-3|4096,a=a.sibling;else{if(Ei(),o===i){t=ea(e,t,a);break e}Mt(e,t,o,a)}t=t.child}return t;case 26:return Di(e,t),e===null?(a=mm(t.type,null,t.pendingProps,null))?t.memoizedState=a:Ge||(a=t.type,e=t.pendingProps,i=mu(it.current).createElement(a),i[fe]=t,i[ve]=e,zt(i,a,e),et(i),t.stateNode=i):t.memoizedState=mm(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return St(t),e===null&&Ge&&(i=t.stateNode=fm(t.type,t.pendingProps,it.current),kt=t,Un=!0,At=Dn(i.firstChild)),i=t.pendingProps.children,e!==null||Ge?Mt(e,t,i,a):t.child=Ia(t,null,i,a),Di(e,t),t.child;case 5:return e===null&&Ge&&((r=i=At)&&(i=xg(i,t.type,t.pendingProps,Un),i!==null?(t.stateNode=i,kt=t,At=Dn(i.firstChild),Un=!1,r=!0):r=!1),r||Wa(t)),St(t),r=t.type,o=t.pendingProps,m=e!==null?e.memoizedProps:null,i=o.children,Gs(r,o)?i=null:m!==null&&Gs(r,m)&&(t.flags|=32),t.memoizedState!==null&&(r=Dc(e,t,qv,null,null,a),Fi._currentValue=r),Di(e,t),Mt(e,t,i,a),t.child;case 6:return e===null&&Ge&&((e=a=At)&&(a=_g(a,t.pendingProps,Un),a!==null?(t.stateNode=a,kt=t,At=null,e=!0):e=!1),e||Wa(t)),null;case 13:return ch(e,t,a);case 4:return De(t,t.stateNode.containerInfo),i=t.pendingProps,e===null?t.child=Ia(t,null,i,a):Mt(e,t,i,a),t.child;case 11:return eh(e,t,t.type,t.pendingProps,a);case 7:return Mt(e,t,t.pendingProps,a),t.child;case 8:return Mt(e,t,t.pendingProps.children,a),t.child;case 12:return Mt(e,t,t.pendingProps.children,a),t.child;case 10:return i=t.pendingProps,Sa(t,t.type,i.value),Mt(e,t,i.children,a),t.child;case 9:return r=t.type._context,i=t.pendingProps.children,rl(t),r=qt(r),i=i(r),t.flags|=1,Mt(e,t,i,a),t.child;case 14:return th(e,t,t.type,t.pendingProps,a);case 15:return nh(e,t,t.type,t.pendingProps,a);case 19:return oh(e,t,a);case 22:return ah(e,t,a);case 24:return rl(t),i=qt(_t),e===null?(r=jc(),r===null&&(r=tt,o=Nc(),r.pooledCache=o,o.refCount++,o!==null&&(r.pooledCacheLanes|=a),r=o),t.memoizedState={parent:i,cache:r},rs(t),Sa(t,_t,r)):(e.lanes&a&&(us(e,t),zi(t,null,null,a),Mi()),r=e.memoizedState,o=t.memoizedState,r.parent!==i?(r={parent:i,cache:i},t.memoizedState=r,t.lanes===0&&(t.memoizedState=t.updateQueue.baseState=r),Sa(t,_t,i)):(i=o.cache,Sa(t,_t,i),i!==r.cache&&is(t,[_t],a,!0))),Mt(e,t,t.pendingProps.children,a),t.child;case 29:throw t.pendingProps}throw Error(s(156,t.tag))}var as=Ce(null),il=null,ta=null;function Sa(e,t,a){Ee(as,t._currentValue),t._currentValue=a}function na(e){e._currentValue=as.current,Le(as)}function ls(e,t,a){for(;e!==null;){var i=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,i!==null&&(i.childLanes|=t)):i!==null&&(i.childLanes&t)!==t&&(i.childLanes|=t),e===a)break;e=e.return}}function is(e,t,a,i){var r=e.child;for(r!==null&&(r.return=e);r!==null;){var o=r.dependencies;if(o!==null){var m=r.child;o=o.firstContext;e:for(;o!==null;){var E=o;o=r;for(var x=0;x<t.length;x++)if(E.context===t[x]){o.lanes|=a,E=o.alternate,E!==null&&(E.lanes|=a),ls(o.return,a,e),i||(m=null);break e}o=E.next}}else if(r.tag===18){if(m=r.return,m===null)throw Error(s(341));m.lanes|=a,o=m.alternate,o!==null&&(o.lanes|=a),ls(m,a,e),m=null}else m=r.child;if(m!==null)m.return=r;else for(m=r;m!==null;){if(m===e){m=null;break}if(r=m.sibling,r!==null){r.return=m.return,m=r;break}m=m.return}r=m}}function wi(e,t,a,i){e=null;for(var r=t,o=!1;r!==null;){if(!o){if(r.flags&524288)o=!0;else if(r.flags&262144)break}if(r.tag===10){var m=r.alternate;if(m===null)throw Error(s(387));if(m=m.memoizedProps,m!==null){var E=r.type;Wt(r.pendingProps.value,m.value)||(e!==null?e.push(E):e=[E])}}else if(r===lt.current){if(m=r.alternate,m===null)throw Error(s(387));m.memoizedState.memoizedState!==r.memoizedState.memoizedState&&(e!==null?e.push(Fi):e=[Fi])}r=r.return}e!==null&&is(t,e,a,i),t.flags|=262144}function Wr(e){for(e=e.firstContext;e!==null;){if(!Wt(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function rl(e){il=e,ta=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function qt(e){return dh(il,e)}function Ir(e,t){return il===null&&rl(e),dh(e,t)}function dh(e,t){var a=t._currentValue;if(t={context:t,memoizedValue:a,next:null},ta===null){if(e===null)throw Error(s(308));ta=t,e.dependencies={lanes:0,firstContext:t},e.flags|=524288}else ta=ta.next=t;return a}var xa=!1;function rs(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function us(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 _a(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function Ra(e,t,a){var i=e.updateQueue;if(i===null)return null;if(i=i.shared,st&2){var r=i.pending;return r===null?t.next=t:(t.next=r.next,r.next=t),i.pending=t,t=Mr(e),Kf(e,null,a),t}return Ar(e,i,t,a),Mr(e)}function Ai(e,t,a){if(t=t.updateQueue,t!==null&&(t=t.shared,(a&4194176)!==0)){var i=t.lanes;i&=e.pendingLanes,a|=i,t.lanes=a,me(e,a)}}function cs(e,t){var a=e.updateQueue,i=e.alternate;if(i!==null&&(i=i.updateQueue,a===i)){var r=null,o=null;if(a=a.firstBaseUpdate,a!==null){do{var m={lane:a.lane,tag:a.tag,payload:a.payload,callback:null,next:null};o===null?r=o=m:o=o.next=m,a=a.next}while(a!==null);o===null?r=o=t:o=o.next=t}else r=o=t;a={baseState:i.baseState,firstBaseUpdate:r,lastBaseUpdate:o,shared:i.shared,callbacks:i.callbacks},e.updateQueue=a;return}e=a.lastBaseUpdate,e===null?a.firstBaseUpdate=t:e.next=t,a.lastBaseUpdate=t}var ss=!1;function Mi(){if(ss){var e=Ul;if(e!==null)throw e}}function zi(e,t,a,i){ss=!1;var r=e.updateQueue;xa=!1;var o=r.firstBaseUpdate,m=r.lastBaseUpdate,E=r.shared.pending;if(E!==null){r.shared.pending=null;var x=E,D=x.next;x.next=null,m===null?o=D:m.next=D,m=x;var G=e.alternate;G!==null&&(G=G.updateQueue,E=G.lastBaseUpdate,E!==m&&(E===null?G.firstBaseUpdate=D:E.next=D,G.lastBaseUpdate=x))}if(o!==null){var $=r.baseState;m=0,G=D=x=null,E=o;do{var L=E.lane&-536870913,V=L!==E.lane;if(V?(Ve&L)===L:(i&L)===L){L!==0&&L===Ll&&(ss=!0),G!==null&&(G=G.next={lane:0,tag:E.tag,payload:E.payload,callback:null,next:null});e:{var he=e,Te=E;L=t;var ht=a;switch(Te.tag){case 1:if(he=Te.payload,typeof he=="function"){$=he.call(ht,$,L);break e}$=he;break e;case 3:he.flags=he.flags&-65537|128;case 0:if(he=Te.payload,L=typeof he=="function"?he.call(ht,$,L):he,L==null)break e;$=I({},$,L);break e;case 2:xa=!0}}L=E.callback,L!==null&&(e.flags|=64,V&&(e.flags|=8192),V=r.callbacks,V===null?r.callbacks=[L]:V.push(L))}else V={lane:L,tag:E.tag,payload:E.payload,callback:E.callback,next:null},G===null?(D=G=V,x=$):G=G.next=V,m|=L;if(E=E.next,E===null){if(E=r.shared.pending,E===null)break;V=E,E=V.next,V.next=null,r.lastBaseUpdate=V,r.shared.pending=null}}while(!0);G===null&&(x=$),r.baseState=x,r.firstBaseUpdate=D,r.lastBaseUpdate=G,o===null&&(r.shared.lanes=0),Oa|=m,e.lanes=m,e.memoizedState=$}}function hh(e,t){if(typeof e!="function")throw Error(s(191,e));e.call(t)}function mh(e,t){var a=e.callbacks;if(a!==null)for(e.callbacks=null,e=0;e<a.length;e++)hh(a[e],t)}function Li(e,t){try{var a=t.updateQueue,i=a!==null?a.lastEffect:null;if(i!==null){var r=i.next;a=r;do{if((a.tag&e)===e){i=void 0;var o=a.create,m=a.inst;i=o(),m.destroy=i}a=a.next}while(a!==r)}}catch(E){We(t,t.return,E)}}function Ta(e,t,a){try{var i=t.updateQueue,r=i!==null?i.lastEffect:null;if(r!==null){var o=r.next;i=o;do{if((i.tag&e)===e){var m=i.inst,E=m.destroy;if(E!==void 0){m.destroy=void 0,r=t;var x=a;try{E()}catch(D){We(r,x,D)}}}i=i.next}while(i!==o)}}catch(D){We(t,t.return,D)}}function yh(e){var t=e.updateQueue;if(t!==null){var a=e.stateNode;try{mh(t,a)}catch(i){We(e,e.return,i)}}}function ph(e,t,a){a.props=ll(e.type,e.memoizedProps),a.state=e.memoizedState;try{a.componentWillUnmount()}catch(i){We(e,t,i)}}function ul(e,t){try{var a=e.ref;if(a!==null){var i=e.stateNode;switch(e.tag){case 26:case 27:case 5:var r=i;break;default:r=i}typeof a=="function"?e.refCleanup=a(r):a.current=r}}catch(o){We(e,t,o)}}function It(e,t){var a=e.ref,i=e.refCleanup;if(a!==null)if(typeof i=="function")try{i()}catch(r){We(e,t,r)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof a=="function")try{a(null)}catch(r){We(e,t,r)}else a.current=null}function vh(e){var t=e.type,a=e.memoizedProps,i=e.stateNode;try{e:switch(t){case"button":case"input":case"select":case"textarea":a.autoFocus&&i.focus();break e;case"img":a.src?i.src=a.src:a.srcSet&&(i.srcset=a.srcSet)}}catch(r){We(e,e.return,r)}}function gh(e,t,a){try{var i=e.stateNode;vg(i,e.type,a,t),i[ve]=t}catch(r){We(e,e.return,r)}}function Eh(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27||e.tag===4}function os(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Eh(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 fs(e,t,a){var i=e.tag;if(i===5||i===6)e=e.stateNode,t?a.nodeType===8?a.parentNode.insertBefore(e,t):a.insertBefore(e,t):(a.nodeType===8?(t=a.parentNode,t.insertBefore(e,a)):(t=a,t.appendChild(e)),a=a._reactRootContainer,a!=null||t.onclick!==null||(t.onclick=hu));else if(i!==4&&i!==27&&(e=e.child,e!==null))for(fs(e,t,a),e=e.sibling;e!==null;)fs(e,t,a),e=e.sibling}function eu(e,t,a){var i=e.tag;if(i===5||i===6)e=e.stateNode,t?a.insertBefore(e,t):a.appendChild(e);else if(i!==4&&i!==27&&(e=e.child,e!==null))for(eu(e,t,a),e=e.sibling;e!==null;)eu(e,t,a),e=e.sibling}var aa=!1,ft=!1,ds=!1,bh=typeof WeakSet=="function"?WeakSet:Set,Ct=null,Sh=!1;function Kv(e,t){if(e=e.containerInfo,Vs=bu,e=Bf(e),mc(e)){if("selectionStart"in e)var a={start:e.selectionStart,end:e.selectionEnd};else e:{a=(a=e.ownerDocument)&&a.defaultView||window;var i=a.getSelection&&a.getSelection();if(i&&i.rangeCount!==0){a=i.anchorNode;var r=i.anchorOffset,o=i.focusNode;i=i.focusOffset;try{a.nodeType,o.nodeType}catch{a=null;break e}var m=0,E=-1,x=-1,D=0,G=0,$=e,L=null;t:for(;;){for(var V;$!==a||r!==0&&$.nodeType!==3||(E=m+r),$!==o||i!==0&&$.nodeType!==3||(x=m+i),$.nodeType===3&&(m+=$.nodeValue.length),(V=$.firstChild)!==null;)L=$,$=V;for(;;){if($===e)break t;if(L===a&&++D===r&&(E=m),L===o&&++G===i&&(x=m),(V=$.nextSibling)!==null)break;$=L,L=$.parentNode}$=V}a=E===-1||x===-1?null:{start:E,end:x}}else a=null}a=a||{start:0,end:0}}else a=null;for(Ys={focusedElem:e,selectionRange:a},bu=!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,o=t.alternate,e=t.flags,t.tag){case 0:break;case 11:case 15:break;case 1:if(e&1024&&o!==null){e=void 0,a=t,r=o.memoizedProps,o=o.memoizedState,i=a.stateNode;try{var he=ll(a.type,r,a.elementType===a.type);e=i.getSnapshotBeforeUpdate(he,o),i.__reactInternalSnapshotBeforeUpdate=e}catch(Te){We(a,a.return,Te)}}break;case 3:if(e&1024){if(e=t.stateNode.containerInfo,a=e.nodeType,a===9)Qs(e);else if(a===1)switch(e.nodeName){case"HEAD":case"HTML":case"BODY":Qs(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(s(163))}if(e=t.sibling,e!==null){e.return=t.return,Ct=e;break}Ct=t.return}return he=Sh,Sh=!1,he}function xh(e,t,a){var i=a.flags;switch(a.tag){case 0:case 11:case 15:ia(e,a),i&4&&Li(5,a);break;case 1:if(ia(e,a),i&4)if(e=a.stateNode,t===null)try{e.componentDidMount()}catch(E){We(a,a.return,E)}else{var r=ll(a.type,t.memoizedProps);t=t.memoizedState;try{e.componentDidUpdate(r,t,e.__reactInternalSnapshotBeforeUpdate)}catch(E){We(a,a.return,E)}}i&64&&yh(a),i&512&&ul(a,a.return);break;case 3:if(ia(e,a),i&64&&(i=a.updateQueue,i!==null)){if(e=null,a.child!==null)switch(a.child.tag){case 27:case 5:e=a.child.stateNode;break;case 1:e=a.child.stateNode}try{mh(i,e)}catch(E){We(a,a.return,E)}}break;case 26:ia(e,a),i&512&&ul(a,a.return);break;case 27:case 5:ia(e,a),t===null&&i&4&&vh(a),i&512&&ul(a,a.return);break;case 12:ia(e,a);break;case 13:ia(e,a),i&4&&Th(e,a);break;case 22:if(r=a.memoizedState!==null||aa,!r){t=t!==null&&t.memoizedState!==null||ft;var o=aa,m=ft;aa=r,(ft=t)&&!m?Na(e,a,(a.subtreeFlags&8772)!==0):ia(e,a),aa=o,ft=m}i&512&&(a.memoizedProps.mode==="manual"?ul(a,a.return):It(a,a.return));break;default:ia(e,a)}}function _h(e){var t=e.alternate;t!==null&&(e.alternate=null,_h(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&Zn(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 bt=null,en=!1;function la(e,t,a){for(a=a.child;a!==null;)Rh(e,t,a),a=a.sibling}function Rh(e,t,a){if(Bt&&typeof Bt.onCommitFiberUnmount=="function")try{Bt.onCommitFiberUnmount(ma,a)}catch{}switch(a.tag){case 26:ft||It(a,t),la(e,t,a),a.memoizedState?a.memoizedState.count--:a.stateNode&&(a=a.stateNode,a.parentNode.removeChild(a));break;case 27:ft||It(a,t);var i=bt,r=en;for(bt=a.stateNode,la(e,t,a),a=a.stateNode,t=a.attributes;t.length;)a.removeAttributeNode(t[0]);Zn(a),bt=i,en=r;break;case 5:ft||It(a,t);case 6:r=bt;var o=en;if(bt=null,la(e,t,a),bt=r,en=o,bt!==null)if(en)try{e=bt,i=a.stateNode,e.nodeType===8?e.parentNode.removeChild(i):e.removeChild(i)}catch(m){We(a,t,m)}else try{bt.removeChild(a.stateNode)}catch(m){We(a,t,m)}break;case 18:bt!==null&&(en?(t=bt,a=a.stateNode,t.nodeType===8?Xs(t.parentNode,a):t.nodeType===1&&Xs(t,a),Ii(t)):Xs(bt,a.stateNode));break;case 4:i=bt,r=en,bt=a.stateNode.containerInfo,en=!0,la(e,t,a),bt=i,en=r;break;case 0:case 11:case 14:case 15:ft||Ta(2,a,t),ft||Ta(4,a,t),la(e,t,a);break;case 1:ft||(It(a,t),i=a.stateNode,typeof i.componentWillUnmount=="function"&&ph(a,t,i)),la(e,t,a);break;case 21:la(e,t,a);break;case 22:ft||It(a,t),ft=(i=ft)||a.memoizedState!==null,la(e,t,a),ft=i;break;default:la(e,t,a)}}function Th(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{Ii(e)}catch(a){We(t,t.return,a)}}function $v(e){switch(e.tag){case 13:case 19:var t=e.stateNode;return t===null&&(t=e.stateNode=new bh),t;case 22:return e=e.stateNode,t=e._retryCache,t===null&&(t=e._retryCache=new bh),t;default:throw Error(s(435,e.tag))}}function hs(e,t){var a=$v(e);t.forEach(function(i){var r=ug.bind(null,e,i);a.has(i)||(a.add(i),i.then(r,r))})}function gn(e,t){var a=t.deletions;if(a!==null)for(var i=0;i<a.length;i++){var r=a[i],o=e,m=t,E=m;e:for(;E!==null;){switch(E.tag){case 27:case 5:bt=E.stateNode,en=!1;break e;case 3:bt=E.stateNode.containerInfo,en=!0;break e;case 4:bt=E.stateNode.containerInfo,en=!0;break e}E=E.return}if(bt===null)throw Error(s(160));Rh(o,m,r),bt=null,en=!1,o=r.alternate,o!==null&&(o.return=null),r.return=null}if(t.subtreeFlags&13878)for(t=t.child;t!==null;)Nh(t,e),t=t.sibling}var On=null;function Nh(e,t){var a=e.alternate,i=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:gn(t,e),En(e),i&4&&(Ta(3,e,e.return),Li(3,e),Ta(5,e,e.return));break;case 1:gn(t,e),En(e),i&512&&(ft||a===null||It(a,a.return)),i&64&&aa&&(e=e.updateQueue,e!==null&&(i=e.callbacks,i!==null&&(a=e.shared.hiddenCallbacks,e.shared.hiddenCallbacks=a===null?i:a.concat(i))));break;case 26:var r=On;if(gn(t,e),En(e),i&512&&(ft||a===null||It(a,a.return)),i&4){var o=a!==null?a.memoizedState:null;if(i=e.memoizedState,a===null)if(i===null)if(e.stateNode===null){e:{i=e.type,a=e.memoizedProps,r=r.ownerDocument||r;t:switch(i){case"title":o=r.getElementsByTagName("title")[0],(!o||o[sn]||o[fe]||o.namespaceURI==="http://www.w3.org/2000/svg"||o.hasAttribute("itemprop"))&&(o=r.createElement(i),r.head.insertBefore(o,r.querySelector("head > title"))),zt(o,i,a),o[fe]=e,et(o),i=o;break e;case"link":var m=vm("link","href",r).get(i+(a.href||""));if(m){for(var E=0;E<m.length;E++)if(o=m[E],o.getAttribute("href")===(a.href==null?null:a.href)&&o.getAttribute("rel")===(a.rel==null?null:a.rel)&&o.getAttribute("title")===(a.title==null?null:a.title)&&o.getAttribute("crossorigin")===(a.crossOrigin==null?null:a.crossOrigin)){m.splice(E,1);break t}}o=r.createElement(i),zt(o,i,a),r.head.appendChild(o);break;case"meta":if(m=vm("meta","content",r).get(i+(a.content||""))){for(E=0;E<m.length;E++)if(o=m[E],o.getAttribute("content")===(a.content==null?null:""+a.content)&&o.getAttribute("name")===(a.name==null?null:a.name)&&o.getAttribute("property")===(a.property==null?null:a.property)&&o.getAttribute("http-equiv")===(a.httpEquiv==null?null:a.httpEquiv)&&o.getAttribute("charset")===(a.charSet==null?null:a.charSet)){m.splice(E,1);break t}}o=r.createElement(i),zt(o,i,a),r.head.appendChild(o);break;default:throw Error(s(468,i))}o[fe]=e,et(o),i=o}e.stateNode=i}else gm(r,e.type,e.stateNode);else e.stateNode=pm(r,i,e.memoizedProps);else o!==i?(o===null?a.stateNode!==null&&(a=a.stateNode,a.parentNode.removeChild(a)):o.count--,i===null?gm(r,e.type,e.stateNode):pm(r,i,e.memoizedProps)):i===null&&e.stateNode!==null&&gh(e,e.memoizedProps,a.memoizedProps)}break;case 27:if(i&4&&e.alternate===null){r=e.stateNode,o=e.memoizedProps;try{for(var x=r.firstChild;x;){var D=x.nextSibling,G=x.nodeName;x[sn]||G==="HEAD"||G==="BODY"||G==="SCRIPT"||G==="STYLE"||G==="LINK"&&x.rel.toLowerCase()==="stylesheet"||r.removeChild(x),x=D}for(var $=e.type,L=r.attributes;L.length;)r.removeAttributeNode(L[0]);zt(r,$,o),r[fe]=e,r[ve]=o}catch(he){We(e,e.return,he)}}case 5:if(gn(t,e),En(e),i&512&&(ft||a===null||It(a,a.return)),e.flags&32){r=e.stateNode;try{_l(r,"")}catch(he){We(e,e.return,he)}}i&4&&e.stateNode!=null&&(r=e.memoizedProps,gh(e,r,a!==null?a.memoizedProps:r)),i&1024&&(ds=!0);break;case 6:if(gn(t,e),En(e),i&4){if(e.stateNode===null)throw Error(s(162));i=e.memoizedProps,a=e.stateNode;try{a.nodeValue=i}catch(he){We(e,e.return,he)}}break;case 3:if(vu=null,r=On,On=yu(t.containerInfo),gn(t,e),On=r,En(e),i&4&&a!==null&&a.memoizedState.isDehydrated)try{Ii(t.containerInfo)}catch(he){We(e,e.return,he)}ds&&(ds=!1,Ch(e));break;case 4:i=On,On=yu(e.stateNode.containerInfo),gn(t,e),En(e),On=i;break;case 12:gn(t,e),En(e);break;case 13:gn(t,e),En(e),e.child.flags&8192&&e.memoizedState!==null!=(a!==null&&a.memoizedState!==null)&&(xs=mt()),i&4&&(i=e.updateQueue,i!==null&&(e.updateQueue=null,hs(e,i)));break;case 22:if(i&512&&(ft||a===null||It(a,a.return)),x=e.memoizedState!==null,D=a!==null&&a.memoizedState!==null,G=aa,$=ft,aa=G||x,ft=$||D,gn(t,e),ft=$,aa=G,En(e),t=e.stateNode,t._current=e,t._visibility&=-3,t._visibility|=t._pendingVisibility&2,i&8192&&(t._visibility=x?t._visibility&-2:t._visibility|1,x&&(t=aa||ft,a===null||D||t||Vl(e)),e.memoizedProps===null||e.memoizedProps.mode!=="manual"))e:for(a=null,t=e;;){if(t.tag===5||t.tag===26||t.tag===27){if(a===null){D=a=t;try{if(r=D.stateNode,x)o=r.style,typeof o.setProperty=="function"?o.setProperty("display","none","important"):o.display="none";else{m=D.stateNode,E=D.memoizedProps.style;var V=E!=null&&E.hasOwnProperty("display")?E.display:null;m.style.display=V==null||typeof V=="boolean"?"":(""+V).trim()}}catch(he){We(D,D.return,he)}}}else if(t.tag===6){if(a===null){D=t;try{D.stateNode.nodeValue=x?"":D.memoizedProps}catch(he){We(D,D.return,he)}}}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;a===t&&(a=null),t=t.return}a===t&&(a=null),t.sibling.return=t.return,t=t.sibling}i&4&&(i=e.updateQueue,i!==null&&(a=i.retryQueue,a!==null&&(i.retryQueue=null,hs(e,a))));break;case 19:gn(t,e),En(e),i&4&&(i=e.updateQueue,i!==null&&(e.updateQueue=null,hs(e,i)));break;case 21:break;default:gn(t,e),En(e)}}function En(e){var t=e.flags;if(t&2){try{if(e.tag!==27){e:{for(var a=e.return;a!==null;){if(Eh(a)){var i=a;break e}a=a.return}throw Error(s(160))}switch(i.tag){case 27:var r=i.stateNode,o=os(e);eu(e,o,r);break;case 5:var m=i.stateNode;i.flags&32&&(_l(m,""),i.flags&=-33);var E=os(e);eu(e,E,m);break;case 3:case 4:var x=i.stateNode.containerInfo,D=os(e);fs(e,D,x);break;default:throw Error(s(161))}}}catch(G){We(e,e.return,G)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function Ch(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;Ch(t),t.tag===5&&t.flags&1024&&t.stateNode.reset(),e=e.sibling}}function ia(e,t){if(t.subtreeFlags&8772)for(t=t.child;t!==null;)xh(e,t.alternate,t),t=t.sibling}function Vl(e){for(e=e.child;e!==null;){var t=e;switch(t.tag){case 0:case 11:case 14:case 15:Ta(4,t,t.return),Vl(t);break;case 1:It(t,t.return);var a=t.stateNode;typeof a.componentWillUnmount=="function"&&ph(t,t.return,a),Vl(t);break;case 26:case 27:case 5:It(t,t.return),Vl(t);break;case 22:It(t,t.return),t.memoizedState===null&&Vl(t);break;default:Vl(t)}e=e.sibling}}function Na(e,t,a){for(a=a&&(t.subtreeFlags&8772)!==0,t=t.child;t!==null;){var i=t.alternate,r=e,o=t,m=o.flags;switch(o.tag){case 0:case 11:case 15:Na(r,o,a),Li(4,o);break;case 1:if(Na(r,o,a),i=o,r=i.stateNode,typeof r.componentDidMount=="function")try{r.componentDidMount()}catch(D){We(i,i.return,D)}if(i=o,r=i.updateQueue,r!==null){var E=i.stateNode;try{var x=r.shared.hiddenCallbacks;if(x!==null)for(r.shared.hiddenCallbacks=null,r=0;r<x.length;r++)hh(x[r],E)}catch(D){We(i,i.return,D)}}a&&m&64&&yh(o),ul(o,o.return);break;case 26:case 27:case 5:Na(r,o,a),a&&i===null&&m&4&&vh(o),ul(o,o.return);break;case 12:Na(r,o,a);break;case 13:Na(r,o,a),a&&m&4&&Th(r,o);break;case 22:o.memoizedState===null&&Na(r,o,a),ul(o,o.return);break;default:Na(r,o,a)}t=t.sibling}}function ms(e,t){var a=null;e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(a=e.memoizedState.cachePool.pool),e=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(e=t.memoizedState.cachePool.pool),e!==a&&(e!=null&&e.refCount++,a!=null&&Ti(a))}function ys(e,t){e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&Ti(e))}function Ca(e,t,a,i){if(t.subtreeFlags&10256)for(t=t.child;t!==null;)jh(e,t,a,i),t=t.sibling}function jh(e,t,a,i){var r=t.flags;switch(t.tag){case 0:case 11:case 15:Ca(e,t,a,i),r&2048&&Li(9,t);break;case 3:Ca(e,t,a,i),r&2048&&(e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&Ti(e)));break;case 12:if(r&2048){Ca(e,t,a,i),e=t.stateNode;try{var o=t.memoizedProps,m=o.id,E=o.onPostCommit;typeof E=="function"&&E(m,t.alternate===null?"mount":"update",e.passiveEffectDuration,-0)}catch(x){We(t,t.return,x)}}else Ca(e,t,a,i);break;case 23:break;case 22:o=t.stateNode,t.memoizedState!==null?o._visibility&4?Ca(e,t,a,i):Ui(e,t):o._visibility&4?Ca(e,t,a,i):(o._visibility|=4,Yl(e,t,a,i,(t.subtreeFlags&10256)!==0)),r&2048&&ms(t.alternate,t);break;case 24:Ca(e,t,a,i),r&2048&&ys(t.alternate,t);break;default:Ca(e,t,a,i)}}function Yl(e,t,a,i,r){for(r=r&&(t.subtreeFlags&10256)!==0,t=t.child;t!==null;){var o=e,m=t,E=a,x=i,D=m.flags;switch(m.tag){case 0:case 11:case 15:Yl(o,m,E,x,r),Li(8,m);break;case 23:break;case 22:var G=m.stateNode;m.memoizedState!==null?G._visibility&4?Yl(o,m,E,x,r):Ui(o,m):(G._visibility|=4,Yl(o,m,E,x,r)),r&&D&2048&&ms(m.alternate,m);break;case 24:Yl(o,m,E,x,r),r&&D&2048&&ys(m.alternate,m);break;default:Yl(o,m,E,x,r)}t=t.sibling}}function Ui(e,t){if(t.subtreeFlags&10256)for(t=t.child;t!==null;){var a=e,i=t,r=i.flags;switch(i.tag){case 22:Ui(a,i),r&2048&&ms(i.alternate,i);break;case 24:Ui(a,i),r&2048&&ys(i.alternate,i);break;default:Ui(a,i)}t=t.sibling}}var Hi=8192;function Gl(e){if(e.subtreeFlags&Hi)for(e=e.child;e!==null;)Oh(e),e=e.sibling}function Oh(e){switch(e.tag){case 26:Gl(e),e.flags&Hi&&e.memoizedState!==null&&Ug(On,e.memoizedState,e.memoizedProps);break;case 5:Gl(e);break;case 3:case 4:var t=On;On=yu(e.stateNode.containerInfo),Gl(e),On=t;break;case 22:e.memoizedState===null&&(t=e.alternate,t!==null&&t.memoizedState!==null?(t=Hi,Hi=16777216,Gl(e),Hi=t):Gl(e));break;default:Gl(e)}}function Dh(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 Bi(e){var t=e.deletions;if(e.flags&16){if(t!==null)for(var a=0;a<t.length;a++){var i=t[a];Ct=i,Ah(i,e)}Dh(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)wh(e),e=e.sibling}function wh(e){switch(e.tag){case 0:case 11:case 15:Bi(e),e.flags&2048&&Ta(9,e,e.return);break;case 3:Bi(e);break;case 12:Bi(e);break;case 22:var t=e.stateNode;e.memoizedState!==null&&t._visibility&4&&(e.return===null||e.return.tag!==13)?(t._visibility&=-5,tu(e)):Bi(e);break;default:Bi(e)}}function tu(e){var t=e.deletions;if(e.flags&16){if(t!==null)for(var a=0;a<t.length;a++){var i=t[a];Ct=i,Ah(i,e)}Dh(e)}for(e=e.child;e!==null;){switch(t=e,t.tag){case 0:case 11:case 15:Ta(8,t,t.return),tu(t);break;case 22:a=t.stateNode,a._visibility&4&&(a._visibility&=-5,tu(t));break;default:tu(t)}e=e.sibling}}function Ah(e,t){for(;Ct!==null;){var a=Ct;switch(a.tag){case 0:case 11:case 15:Ta(8,a,t);break;case 23:case 22:if(a.memoizedState!==null&&a.memoizedState.cachePool!==null){var i=a.memoizedState.cachePool.pool;i!=null&&i.refCount++}break;case 24:Ti(a.memoizedState.cache)}if(i=a.child,i!==null)i.return=a,Ct=i;else e:for(a=e;Ct!==null;){i=Ct;var r=i.sibling,o=i.return;if(_h(i),i===a){Ct=null;break e}if(r!==null){r.return=o,Ct=r;break e}Ct=o}}}function Fv(e,t,a,i){this.tag=e,this.key=a,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=i,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function bn(e,t,a,i){return new Fv(e,t,a,i)}function ps(e){return e=e.prototype,!(!e||!e.isReactComponent)}function ja(e,t){var a=e.alternate;return a===null?(a=bn(e.tag,t,e.key,e.mode),a.elementType=e.elementType,a.type=e.type,a.stateNode=e.stateNode,a.alternate=e,e.alternate=a):(a.pendingProps=t,a.type=e.type,a.flags=0,a.subtreeFlags=0,a.deletions=null),a.flags=e.flags&31457280,a.childLanes=e.childLanes,a.lanes=e.lanes,a.child=e.child,a.memoizedProps=e.memoizedProps,a.memoizedState=e.memoizedState,a.updateQueue=e.updateQueue,t=e.dependencies,a.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},a.sibling=e.sibling,a.index=e.index,a.ref=e.ref,a.refCleanup=e.refCleanup,a}function Mh(e,t){e.flags&=31457282;var a=e.alternate;return a===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=a.childLanes,e.lanes=a.lanes,e.child=a.child,e.subtreeFlags=0,e.deletions=null,e.memoizedProps=a.memoizedProps,e.memoizedState=a.memoizedState,e.updateQueue=a.updateQueue,e.type=a.type,t=a.dependencies,e.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext}),e}function nu(e,t,a,i,r,o){var m=0;if(i=e,typeof e=="function")ps(e)&&(m=1);else if(typeof e=="string")m=zg(e,a,Ze.current)?26:e==="html"||e==="head"||e==="body"?27:5;else e:switch(e){case v:return cl(a.children,r,o,t);case p:m=8,r|=24;break;case b:return e=bn(12,a,t,r|2),e.elementType=b,e.lanes=o,e;case H:return e=bn(13,a,t,r),e.elementType=H,e.lanes=o,e;case U:return e=bn(19,a,t,r),e.elementType=U,e.lanes=o,e;case Y:return zh(a,r,o,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case R:case _:m=10;break e;case S:m=9;break e;case O:m=11;break e;case M:m=14;break e;case q:m=16,i=null;break e}m=29,a=Error(s(130,e===null?"null":typeof e,"")),i=null}return t=bn(m,a,t,r),t.elementType=e,t.type=i,t.lanes=o,t}function cl(e,t,a,i){return e=bn(7,e,i,t),e.lanes=a,e}function zh(e,t,a,i){e=bn(22,e,i,t),e.elementType=Y,e.lanes=a;var r={_visibility:1,_pendingVisibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null,_current:null,detach:function(){var o=r._current;if(o===null)throw Error(s(456));if(!(r._pendingVisibility&2)){var m=pa(o,2);m!==null&&(r._pendingVisibility|=2,Xt(m,o,2))}},attach:function(){var o=r._current;if(o===null)throw Error(s(456));if(r._pendingVisibility&2){var m=pa(o,2);m!==null&&(r._pendingVisibility&=-3,Xt(m,o,2))}}};return e.stateNode=r,e}function vs(e,t,a){return e=bn(6,e,null,t),e.lanes=a,e}function gs(e,t,a){return t=bn(4,e.children!==null?e.children:[],e.key,t),t.lanes=a,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function ra(e){e.flags|=4}function Lh(e,t){if(t.type!=="stylesheet"||t.state.loading&4)e.flags&=-16777217;else if(e.flags|=16777216,!Em(t)){if(t=vn.current,t!==null&&((Ve&4194176)===Ve?Hn!==null:(Ve&62914560)!==Ve&&!(Ve&536870912)||t!==Hn))throw xi=_c,Wf;e.flags|=8192}}function au(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag!==22?C():536870912,e.lanes|=t,Xl|=t)}function qi(e,t){if(!Ge)switch(e.tailMode){case"hidden":t=e.tail;for(var a=null;t!==null;)t.alternate!==null&&(a=t),t=t.sibling;a===null?e.tail=null:a.sibling=null;break;case"collapsed":a=e.tail;for(var i=null;a!==null;)a.alternate!==null&&(i=a),a=a.sibling;i===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:i.sibling=null}}function ct(e){var t=e.alternate!==null&&e.alternate.child===e.child,a=0,i=0;if(t)for(var r=e.child;r!==null;)a|=r.lanes|r.childLanes,i|=r.subtreeFlags&31457280,i|=r.flags&31457280,r.return=e,r=r.sibling;else for(r=e.child;r!==null;)a|=r.lanes|r.childLanes,i|=r.subtreeFlags,i|=r.flags,r.return=e,r=r.sibling;return e.subtreeFlags|=i,e.childLanes=a,t}function Jv(e,t,a){var i=t.pendingProps;switch(Sc(t),t.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return ct(t),null;case 1:return ct(t),null;case 3:return a=t.stateNode,i=null,e!==null&&(i=e.memoizedState.cache),t.memoizedState.cache!==i&&(t.flags|=2048),na(_t),Rt(),a.pendingContext&&(a.context=a.pendingContext,a.pendingContext=null),(e===null||e.child===null)&&(gi(t)?ra(t):e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,jn!==null&&(Ns(jn),jn=null))),ct(t),null;case 26:return a=t.memoizedState,e===null?(ra(t),a!==null?(ct(t),Lh(t,a)):(ct(t),t.flags&=-16777217)):a?a!==e.memoizedState?(ra(t),ct(t),Lh(t,a)):(ct(t),t.flags&=-16777217):(e.memoizedProps!==i&&ra(t),ct(t),t.flags&=-16777217),null;case 27:Pt(t),a=it.current;var r=t.type;if(e!==null&&t.stateNode!=null)e.memoizedProps!==i&&ra(t);else{if(!i){if(t.stateNode===null)throw Error(s(166));return ct(t),null}e=Ze.current,gi(t)?Jf(t):(e=fm(r,i,a),t.stateNode=e,ra(t))}return ct(t),null;case 5:if(Pt(t),a=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==i&&ra(t);else{if(!i){if(t.stateNode===null)throw Error(s(166));return ct(t),null}if(e=Ze.current,gi(t))Jf(t);else{switch(r=mu(it.current),e){case 1:e=r.createElementNS("http://www.w3.org/2000/svg",a);break;case 2:e=r.createElementNS("http://www.w3.org/1998/Math/MathML",a);break;default:switch(a){case"svg":e=r.createElementNS("http://www.w3.org/2000/svg",a);break;case"math":e=r.createElementNS("http://www.w3.org/1998/Math/MathML",a);break;case"script":e=r.createElement("div"),e.innerHTML="<script><\/script>",e=e.removeChild(e.firstChild);break;case"select":e=typeof i.is=="string"?r.createElement("select",{is:i.is}):r.createElement("select"),i.multiple?e.multiple=!0:i.size&&(e.size=i.size);break;default:e=typeof i.is=="string"?r.createElement(a,{is:i.is}):r.createElement(a)}}e[fe]=t,e[ve]=i;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(zt(e,a,i),a){case"button":case"input":case"select":case"textarea":e=!!i.autoFocus;break e;case"img":e=!0;break e;default:e=!1}e&&ra(t)}}return ct(t),t.flags&=-16777217,null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==i&&ra(t);else{if(typeof i!="string"&&t.stateNode===null)throw Error(s(166));if(e=it.current,gi(t)){if(e=t.stateNode,a=t.memoizedProps,i=null,r=kt,r!==null)switch(r.tag){case 27:case 5:i=r.memoizedProps}e[fe]=t,e=!!(e.nodeValue===a||i!==null&&i.suppressHydrationWarning===!0||im(e.nodeValue,a)),e||Wa(t)}else e=mu(e).createTextNode(i),e[fe]=t,t.stateNode=e}return ct(t),null;case 13:if(i=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(r=gi(t),i!==null&&i.dehydrated!==null){if(e===null){if(!r)throw Error(s(318));if(r=t.memoizedState,r=r!==null?r.dehydrated:null,!r)throw Error(s(317));r[fe]=t}else Ei(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;ct(t),r=!1}else jn!==null&&(Ns(jn),jn=null),r=!0;if(!r)return t.flags&256?(Wn(t),t):(Wn(t),null)}if(Wn(t),t.flags&128)return t.lanes=a,t;if(a=i!==null,e=e!==null&&e.memoizedState!==null,a){i=t.child,r=null,i.alternate!==null&&i.alternate.memoizedState!==null&&i.alternate.memoizedState.cachePool!==null&&(r=i.alternate.memoizedState.cachePool.pool);var o=null;i.memoizedState!==null&&i.memoizedState.cachePool!==null&&(o=i.memoizedState.cachePool.pool),o!==r&&(i.flags|=2048)}return a!==e&&a&&(t.child.flags|=8192),au(t,t.updateQueue),ct(t),null;case 4:return Rt(),e===null&&Hs(t.stateNode.containerInfo),ct(t),null;case 10:return na(t.type),ct(t),null;case 19:if(Le(xt),r=t.memoizedState,r===null)return ct(t),null;if(i=(t.flags&128)!==0,o=r.rendering,o===null)if(i)qi(r,!1);else{if(dt!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(o=Vr(e),o!==null){for(t.flags|=128,qi(r,!1),e=o.updateQueue,t.updateQueue=e,au(t,e),t.subtreeFlags=0,e=a,a=t.child;a!==null;)Mh(a,e),a=a.sibling;return Ee(xt,xt.current&1|2),t.child}e=e.sibling}r.tail!==null&&mt()>lu&&(t.flags|=128,i=!0,qi(r,!1),t.lanes=4194304)}else{if(!i)if(e=Vr(o),e!==null){if(t.flags|=128,i=!0,e=e.updateQueue,t.updateQueue=e,au(t,e),qi(r,!0),r.tail===null&&r.tailMode==="hidden"&&!o.alternate&&!Ge)return ct(t),null}else 2*mt()-r.renderingStartTime>lu&&a!==536870912&&(t.flags|=128,i=!0,qi(r,!1),t.lanes=4194304);r.isBackwards?(o.sibling=t.child,t.child=o):(e=r.last,e!==null?e.sibling=o:t.child=o,r.last=o)}return r.tail!==null?(t=r.tail,r.rendering=t,r.tail=t.sibling,r.renderingStartTime=mt(),t.sibling=null,e=xt.current,Ee(xt,i?e&1|2:e&1),t):(ct(t),null);case 22:case 23:return Wn(t),Tc(),i=t.memoizedState!==null,e!==null?e.memoizedState!==null!==i&&(t.flags|=8192):i&&(t.flags|=8192),i?a&536870912&&!(t.flags&128)&&(ct(t),t.subtreeFlags&6&&(t.flags|=8192)):ct(t),a=t.updateQueue,a!==null&&au(t,a.retryQueue),a=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(a=e.memoizedState.cachePool.pool),i=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(i=t.memoizedState.cachePool.pool),i!==a&&(t.flags|=2048),e!==null&&Le(el),null;case 24:return a=null,e!==null&&(a=e.memoizedState.cache),t.memoizedState.cache!==a&&(t.flags|=2048),na(_t),ct(t),null;case 25:return null}throw Error(s(156,t.tag))}function Pv(e,t){switch(Sc(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return na(_t),Rt(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return Pt(t),null;case 13:if(Wn(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(s(340));Ei()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return Le(xt),null;case 4:return Rt(),null;case 10:return na(t.type),null;case 22:case 23:return Wn(t),Tc(),e!==null&&Le(el),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return na(_t),null;case 25:return null;default:return null}}function Uh(e,t){switch(Sc(t),t.tag){case 3:na(_t),Rt();break;case 26:case 27:case 5:Pt(t);break;case 4:Rt();break;case 13:Wn(t);break;case 19:Le(xt);break;case 10:na(t.type);break;case 22:case 23:Wn(t),Tc(),e!==null&&Le(el);break;case 24:na(_t)}}var Wv={getCacheForType:function(e){var t=qt(_t),a=t.data.get(e);return a===void 0&&(a=e(),t.data.set(e,a)),a}},Iv=typeof WeakMap=="function"?WeakMap:Map,st=0,tt=null,Me=null,Ve=0,nt=0,tn=null,ua=!1,kl=!1,Es=!1,ca=0,dt=0,Oa=0,sl=0,bs=0,Sn=0,Xl=0,Vi=null,qn=null,Ss=!1,xs=0,lu=1/0,iu=null,Da=null,ru=!1,ol=null,Yi=0,_s=0,Rs=null,Gi=0,Ts=null;function nn(){if(st&2&&Ve!==0)return Ve&-Ve;if(X.T!==null){var e=Ll;return e!==0?e:Ms()}return re()}function Hh(){Sn===0&&(Sn=!(Ve&536870912)||Ge?Er():536870912);var e=vn.current;return e!==null&&(e.flags|=32),Sn}function Xt(e,t,a){(e===tt&&nt===2||e.cancelPendingCommit!==null)&&(Ql(e,0),sa(e,Ve,Sn,!1)),B(e,a),(!(st&2)||e!==tt)&&(e===tt&&(!(st&2)&&(sl|=a),dt===4&&sa(e,Ve,Sn,!1)),Vn(e))}function Bh(e,t,a){if(st&6)throw Error(s(327));var i=!a&&(t&60)===0&&(t&e.expiredLanes)===0||Ln(e,t),r=i?ng(e,t):Os(e,t,!0),o=i;do{if(r===0){kl&&!i&&sa(e,t,0,!1);break}else if(r===6)sa(e,t,0,!ua);else{if(a=e.current.alternate,o&&!eg(a)){r=Os(e,t,!1),o=!1;continue}if(r===2){if(o=t,e.errorRecoveryDisabledLanes&o)var m=0;else m=e.pendingLanes&-536870913,m=m!==0?m:m&536870912?536870912:0;if(m!==0){t=m;e:{var E=e;r=Vi;var x=E.current.memoizedState.isDehydrated;if(x&&(Ql(E,m).flags|=256),m=Os(E,m,!1),m!==2){if(Es&&!x){E.errorRecoveryDisabledLanes|=o,sl|=o,r=4;break e}o=qn,qn=r,o!==null&&Ns(o)}r=m}if(o=!1,r!==2)continue}}if(r===1){Ql(e,0),sa(e,t,0,!0);break}e:{switch(i=e,r){case 0:case 1:throw Error(s(345));case 4:if((t&4194176)===t){sa(i,t,Sn,!ua);break e}break;case 2:qn=null;break;case 3:case 5:break;default:throw Error(s(329))}if(i.finishedWork=a,i.finishedLanes=t,(t&62914560)===t&&(o=xs+300-mt(),10<o)){if(sa(i,t,Sn,!ua),Qn(i,0)!==0)break e;i.timeoutHandle=cm(qh.bind(null,i,a,qn,iu,Ss,t,Sn,sl,Xl,ua,2,-0,0),o);break e}qh(i,a,qn,iu,Ss,t,Sn,sl,Xl,ua,0,-0,0)}}break}while(!0);Vn(e)}function Ns(e){qn===null?qn=e:qn.push.apply(qn,e)}function qh(e,t,a,i,r,o,m,E,x,D,G,$,L){var V=t.subtreeFlags;if((V&8192||(V&16785408)===16785408)&&($i={stylesheets:null,count:0,unsuspend:Lg},Oh(t),t=Hg(),t!==null)){e.cancelPendingCommit=t(Zh.bind(null,e,a,i,r,m,E,x,1,$,L)),sa(e,o,m,!D);return}Zh(e,a,i,r,m,E,x,G,$,L)}function eg(e){for(var t=e;;){var a=t.tag;if((a===0||a===11||a===15)&&t.flags&16384&&(a=t.updateQueue,a!==null&&(a=a.stores,a!==null)))for(var i=0;i<a.length;i++){var r=a[i],o=r.getSnapshot;r=r.value;try{if(!Wt(o(),r))return!1}catch{return!1}}if(a=t.child,t.subtreeFlags&16384&&a!==null)a.return=t,t=a;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 sa(e,t,a,i){t&=~bs,t&=~sl,e.suspendedLanes|=t,e.pingedLanes&=~t,i&&(e.warmLanes|=t),i=e.expirationTimes;for(var r=t;0<r;){var o=31-Tt(r),m=1<<o;i[o]=-1,r&=~m}a!==0&&ae(e,a,t)}function uu(){return st&6?!0:(ki(0),!1)}function Cs(){if(Me!==null){if(nt===0)var e=Me.return;else e=Me,ta=il=null,Mc(e),Ml=null,_i=0,e=Me;for(;e!==null;)Uh(e.alternate,e),e=e.return;Me=null}}function Ql(e,t){e.finishedWork=null,e.finishedLanes=0;var a=e.timeoutHandle;a!==-1&&(e.timeoutHandle=-1,Eg(a)),a=e.cancelPendingCommit,a!==null&&(e.cancelPendingCommit=null,a()),Cs(),tt=e,Me=a=ja(e.current,null),Ve=t,nt=0,tn=null,ua=!1,kl=Ln(e,t),Es=!1,Xl=Sn=bs=sl=Oa=dt=0,qn=Vi=null,Ss=!1,t&8&&(t|=t&32);var i=e.entangledLanes;if(i!==0)for(e=e.entanglements,i&=t;0<i;){var r=31-Tt(i),o=1<<r;t|=e[r],i&=~o}return ca=t,wr(),a}function Vh(e,t){Oe=null,X.H=Bn,t===Si?(t=td(),nt=3):t===Wf?(t=td(),nt=4):nt=t===Id?8:t!==null&&typeof t=="object"&&typeof t.then=="function"?6:1,tn=t,Me===null&&(dt=1,Pr(e,mn(t,e.current)))}function Yh(){var e=X.H;return X.H=Bn,e===null?Bn:e}function Gh(){var e=X.A;return X.A=Wv,e}function js(){dt=4,ua||(Ve&4194176)!==Ve&&vn.current!==null||(kl=!0),!(Oa&134217727)&&!(sl&134217727)||tt===null||sa(tt,Ve,Sn,!1)}function Os(e,t,a){var i=st;st|=2;var r=Yh(),o=Gh();(tt!==e||Ve!==t)&&(iu=null,Ql(e,t)),t=!1;var m=dt;e:do try{if(nt!==0&&Me!==null){var E=Me,x=tn;switch(nt){case 8:Cs(),m=6;break e;case 3:case 2:case 6:vn.current===null&&(t=!0);var D=nt;if(nt=0,tn=null,Zl(e,E,x,D),a&&kl){m=0;break e}break;default:D=nt,nt=0,tn=null,Zl(e,E,x,D)}}tg(),m=dt;break}catch(G){Vh(e,G)}while(!0);return t&&e.shellSuspendCounter++,ta=il=null,st=i,X.H=r,X.A=o,Me===null&&(tt=null,Ve=0,wr()),m}function tg(){for(;Me!==null;)kh(Me)}function ng(e,t){var a=st;st|=2;var i=Yh(),r=Gh();tt!==e||Ve!==t?(iu=null,lu=mt()+500,Ql(e,t)):kl=Ln(e,t);e:do try{if(nt!==0&&Me!==null){t=Me;var o=tn;t:switch(nt){case 1:nt=0,tn=null,Zl(e,t,o,1);break;case 2:if(If(o)){nt=0,tn=null,Xh(t);break}t=function(){nt===2&&tt===e&&(nt=7),Vn(e)},o.then(t,t);break e;case 3:nt=7;break e;case 4:nt=5;break e;case 7:If(o)?(nt=0,tn=null,Xh(t)):(nt=0,tn=null,Zl(e,t,o,7));break;case 5:var m=null;switch(Me.tag){case 26:m=Me.memoizedState;case 5:case 27:var E=Me;if(!m||Em(m)){nt=0,tn=null;var x=E.sibling;if(x!==null)Me=x;else{var D=E.return;D!==null?(Me=D,cu(D)):Me=null}break t}}nt=0,tn=null,Zl(e,t,o,5);break;case 6:nt=0,tn=null,Zl(e,t,o,6);break;case 8:Cs(),dt=6;break e;default:throw Error(s(462))}}ag();break}catch(G){Vh(e,G)}while(!0);return ta=il=null,X.H=i,X.A=r,st=a,Me!==null?0:(tt=null,Ve=0,wr(),dt)}function ag(){for(;Me!==null&&!Ut();)kh(Me)}function kh(e){var t=fh(e.alternate,e,ca);e.memoizedProps=e.pendingProps,t===null?cu(e):Me=t}function Xh(e){var t=e,a=t.alternate;switch(t.tag){case 15:case 0:t=ih(a,t,t.pendingProps,t.type,void 0,Ve);break;case 11:t=ih(a,t,t.pendingProps,t.type.render,t.ref,Ve);break;case 5:Mc(t);default:Uh(a,t),t=Me=Mh(t,ca),t=fh(a,t,ca)}e.memoizedProps=e.pendingProps,t===null?cu(e):Me=t}function Zl(e,t,a,i){ta=il=null,Mc(t),Ml=null,_i=0;var r=t.return;try{if(Qv(e,r,t,a,Ve)){dt=1,Pr(e,mn(a,e.current)),Me=null;return}}catch(o){if(r!==null)throw Me=r,o;dt=1,Pr(e,mn(a,e.current)),Me=null;return}t.flags&32768?(Ge||i===1?e=!0:kl||Ve&536870912?e=!1:(ua=e=!0,(i===2||i===3||i===6)&&(i=vn.current,i!==null&&i.tag===13&&(i.flags|=16384))),Qh(t,e)):cu(t)}function cu(e){var t=e;do{if(t.flags&32768){Qh(t,ua);return}e=t.return;var a=Jv(t.alternate,t,ca);if(a!==null){Me=a;return}if(t=t.sibling,t!==null){Me=t;return}Me=t=e}while(t!==null);dt===0&&(dt=5)}function Qh(e,t){do{var a=Pv(e.alternate,e);if(a!==null){a.flags&=32767,Me=a;return}if(a=e.return,a!==null&&(a.flags|=32768,a.subtreeFlags=0,a.deletions=null),!t&&(e=e.sibling,e!==null)){Me=e;return}Me=e=a}while(e!==null);dt=6,Me=null}function Zh(e,t,a,i,r,o,m,E,x,D){var G=X.T,$=P.p;try{P.p=2,X.T=null,lg(e,t,a,i,$,r,o,m,E,x,D)}finally{X.T=G,P.p=$}}function lg(e,t,a,i,r,o,m,E){do Kl();while(ol!==null);if(st&6)throw Error(s(327));var x=e.finishedWork;if(i=e.finishedLanes,x===null)return null;if(e.finishedWork=null,e.finishedLanes=0,x===e.current)throw Error(s(177));e.callbackNode=null,e.callbackPriority=0,e.cancelPendingCommit=null;var D=x.lanes|x.childLanes;if(D|=gc,F(e,i,D,o,m,E),e===tt&&(Me=tt=null,Ve=0),!(x.subtreeFlags&10256)&&!(x.flags&10256)||ru||(ru=!0,_s=D,Rs=a,cg(Gt,function(){return Kl(),null})),a=(x.flags&15990)!==0,x.subtreeFlags&15990||a?(a=X.T,X.T=null,o=P.p,P.p=2,m=st,st|=4,Kv(e,x),Nh(x,e),jv(Ys,e.containerInfo),bu=!!Vs,Ys=Vs=null,e.current=x,xh(e,x.alternate,x),Ht(),st=m,P.p=o,X.T=a):e.current=x,ru?(ru=!1,ol=e,Yi=i):Kh(e,D),D=e.pendingLanes,D===0&&(Da=null),Ju(x.stateNode),Vn(e),t!==null)for(r=e.onRecoverableError,x=0;x<t.length;x++)D=t[x],r(D.value,{componentStack:D.stack});return Yi&3&&Kl(),D=e.pendingLanes,i&4194218&&D&42?e===Ts?Gi++:(Gi=0,Ts=e):Gi=0,ki(0),null}function Kh(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,Ti(t)))}function Kl(){if(ol!==null){var e=ol,t=_s;_s=0;var a=xe(Yi),i=X.T,r=P.p;try{if(P.p=32>a?32:a,X.T=null,ol===null)var o=!1;else{a=Rs,Rs=null;var m=ol,E=Yi;if(ol=null,Yi=0,st&6)throw Error(s(331));var x=st;if(st|=4,wh(m.current),jh(m,m.current,E,a),st=x,ki(0,!1),Bt&&typeof Bt.onPostCommitFiberRoot=="function")try{Bt.onPostCommitFiberRoot(ma,m)}catch{}o=!0}return o}finally{P.p=r,X.T=i,Kh(e,t)}}return!1}function $h(e,t,a){t=mn(a,t),t=Kc(e.stateNode,t,2),e=Ra(e,t,2),e!==null&&(B(e,2),Vn(e))}function We(e,t,a){if(e.tag===3)$h(e,e,a);else for(;t!==null;){if(t.tag===3){$h(t,e,a);break}else if(t.tag===1){var i=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof i.componentDidCatch=="function"&&(Da===null||!Da.has(i))){e=mn(a,e),a=Pd(2),i=Ra(t,a,2),i!==null&&(Wd(a,i,t,e),B(i,2),Vn(i));break}}t=t.return}}function Ds(e,t,a){var i=e.pingCache;if(i===null){i=e.pingCache=new Iv;var r=new Set;i.set(t,r)}else r=i.get(t),r===void 0&&(r=new Set,i.set(t,r));r.has(a)||(Es=!0,r.add(a),e=ig.bind(null,e,t,a),t.then(e,e))}function ig(e,t,a){var i=e.pingCache;i!==null&&i.delete(t),e.pingedLanes|=e.suspendedLanes&a,e.warmLanes&=~a,tt===e&&(Ve&a)===a&&(dt===4||dt===3&&(Ve&62914560)===Ve&&300>mt()-xs?!(st&2)&&Ql(e,0):bs|=a,Xl===Ve&&(Xl=0)),Vn(e)}function Fh(e,t){t===0&&(t=C()),e=pa(e,t),e!==null&&(B(e,t),Vn(e))}function rg(e){var t=e.memoizedState,a=0;t!==null&&(a=t.retryLane),Fh(e,a)}function ug(e,t){var a=0;switch(e.tag){case 13:var i=e.stateNode,r=e.memoizedState;r!==null&&(a=r.retryLane);break;case 19:i=e.stateNode;break;case 22:i=e.stateNode._retryCache;break;default:throw Error(s(314))}i!==null&&i.delete(t),Fh(e,a)}function cg(e,t){return un(e,t)}var su=null,$l=null,ws=!1,ou=!1,As=!1,fl=0;function Vn(e){e!==$l&&e.next===null&&($l===null?su=$l=e:$l=$l.next=e),ou=!0,ws||(ws=!0,og(sg))}function ki(e,t){if(!As&&ou){As=!0;do for(var a=!1,i=su;i!==null;){if(e!==0){var r=i.pendingLanes;if(r===0)var o=0;else{var m=i.suspendedLanes,E=i.pingedLanes;o=(1<<31-Tt(42|e)+1)-1,o&=r&~(m&~E),o=o&201326677?o&201326677|1:o?o|2:0}o!==0&&(a=!0,Wh(i,o))}else o=Ve,o=Qn(i,i===tt?o:0),!(o&3)||Ln(i,o)||(a=!0,Wh(i,o));i=i.next}while(a);As=!1}}function sg(){ou=ws=!1;var e=0;fl!==0&&(gg()&&(e=fl),fl=0);for(var t=mt(),a=null,i=su;i!==null;){var r=i.next,o=Jh(i,t);o===0?(i.next=null,a===null?su=r:a.next=r,r===null&&($l=a)):(a=i,(e!==0||o&3)&&(ou=!0)),i=r}ki(e)}function Jh(e,t){for(var a=e.suspendedLanes,i=e.pingedLanes,r=e.expirationTimes,o=e.pendingLanes&-62914561;0<o;){var m=31-Tt(o),E=1<<m,x=r[m];x===-1?(!(E&a)||E&i)&&(r[m]=Wu(E,t)):x<=t&&(e.expiredLanes|=E),o&=~E}if(t=tt,a=Ve,a=Qn(e,e===t?a:0),i=e.callbackNode,a===0||e===t&&nt===2||e.cancelPendingCommit!==null)return i!==null&&i!==null&&cn(i),e.callbackNode=null,e.callbackPriority=0;if(!(a&3)||Ln(e,a)){if(t=a&-a,t===e.callbackPriority)return t;switch(i!==null&&cn(i),xe(a)){case 2:case 8:a=Ie;break;case 32:a=Gt;break;case 268435456:a=pr;break;default:a=Gt}return i=Ph.bind(null,e),a=un(a,i),e.callbackPriority=t,e.callbackNode=a,t}return i!==null&&i!==null&&cn(i),e.callbackPriority=2,e.callbackNode=null,2}function Ph(e,t){var a=e.callbackNode;if(Kl()&&e.callbackNode!==a)return null;var i=Ve;return i=Qn(e,e===tt?i:0),i===0?null:(Bh(e,i,t),Jh(e,mt()),e.callbackNode!=null&&e.callbackNode===a?Ph.bind(null,e):null)}function Wh(e,t){if(Kl())return null;Bh(e,t,!0)}function og(e){bg(function(){st&6?un(_e,e):e()})}function Ms(){return fl===0&&(fl=Er()),fl}function Ih(e){return e==null||typeof e=="symbol"||typeof e=="boolean"?null:typeof e=="function"?e:Rr(""+e)}function em(e,t){var a=t.ownerDocument.createElement("input");return a.name=t.name,a.value=t.value,e.id&&a.setAttribute("form",e.id),t.parentNode.insertBefore(a,t),e=new FormData(e),a.parentNode.removeChild(a),e}function fg(e,t,a,i,r){if(t==="submit"&&a&&a.stateNode===r){var o=Ih((r[ve]||null).action),m=i.submitter;m&&(t=(t=m[ve]||null)?Ih(t.formAction):m.getAttribute("formAction"),t!==null&&(o=t,m=null));var E=new jr("action","action",null,i,r);e.push({event:E,listeners:[{instance:null,listener:function(){if(i.defaultPrevented){if(fl!==0){var x=m?em(r,m):new FormData(r);Gc(a,{pending:!0,data:x,method:r.method,action:o},null,x)}}else typeof o=="function"&&(E.preventDefault(),x=m?em(r,m):new FormData(r),Gc(a,{pending:!0,data:x,method:r.method,action:o},o,x))},currentTarget:r}]})}}for(var zs=0;zs<Zf.length;zs++){var Ls=Zf[zs],dg=Ls.toLowerCase(),hg=Ls[0].toUpperCase()+Ls.slice(1);Cn(dg,"on"+hg)}Cn(Yf,"onAnimationEnd"),Cn(Gf,"onAnimationIteration"),Cn(kf,"onAnimationStart"),Cn("dblclick","onDoubleClick"),Cn("focusin","onFocus"),Cn("focusout","onBlur"),Cn(Dv,"onTransitionRun"),Cn(wv,"onTransitionStart"),Cn(Av,"onTransitionCancel"),Cn(Xf,"onTransitionEnd"),rt("onMouseEnter",["mouseout","mouseover"]),rt("onMouseLeave",["mouseout","mouseover"]),rt("onPointerEnter",["pointerout","pointerover"]),rt("onPointerLeave",["pointerout","pointerover"]),qe("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),qe("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),qe("onBeforeInput",["compositionend","keypress","textInput","paste"]),qe("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),qe("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),qe("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Xi="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(" "),mg=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(Xi));function tm(e,t){t=(t&4)!==0;for(var a=0;a<e.length;a++){var i=e[a],r=i.event;i=i.listeners;e:{var o=void 0;if(t)for(var m=i.length-1;0<=m;m--){var E=i[m],x=E.instance,D=E.currentTarget;if(E=E.listener,x!==o&&r.isPropagationStopped())break e;o=E,r.currentTarget=D;try{o(r)}catch(G){Jr(G)}r.currentTarget=null,o=x}else for(m=0;m<i.length;m++){if(E=i[m],x=E.instance,D=E.currentTarget,E=E.listener,x!==o&&r.isPropagationStopped())break e;o=E,r.currentTarget=D;try{o(r)}catch(G){Jr(G)}r.currentTarget=null,o=x}}}}function Ue(e,t){var a=t[yt];a===void 0&&(a=t[yt]=new Set);var i=e+"__bubble";a.has(i)||(nm(t,e,2,!1),a.add(i))}function Us(e,t,a){var i=0;t&&(i|=4),nm(a,e,i,t)}var fu="_reactListening"+Math.random().toString(36).slice(2);function Hs(e){if(!e[fu]){e[fu]=!0,Xa.forEach(function(a){a!=="selectionchange"&&(mg.has(a)||Us(a,!1,e),Us(a,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[fu]||(t[fu]=!0,Us("selectionchange",!1,t))}}function nm(e,t,a,i){switch(Tm(t)){case 2:var r=Vg;break;case 8:r=Yg;break;default:r=Js}a=r.bind(null,t,a,e),r=void 0,!ic||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(r=!0),i?r!==void 0?e.addEventListener(t,a,{capture:!0,passive:r}):e.addEventListener(t,a,!0):r!==void 0?e.addEventListener(t,a,{passive:r}):e.addEventListener(t,a,!1)}function Bs(e,t,a,i,r){var o=i;if(!(t&1)&&!(t&2)&&i!==null)e:for(;;){if(i===null)return;var m=i.tag;if(m===3||m===4){var E=i.stateNode.containerInfo;if(E===r||E.nodeType===8&&E.parentNode===r)break;if(m===4)for(m=i.return;m!==null;){var x=m.tag;if((x===3||x===4)&&(x=m.stateNode.containerInfo,x===r||x.nodeType===8&&x.parentNode===r))return;m=m.return}for(;E!==null;){if(m=Dt(E),m===null)return;if(x=m.tag,x===5||x===6||x===26||x===27){i=o=m;continue e}E=E.parentNode}}i=i.return}vf(function(){var D=o,G=ac(a),$=[];e:{var L=Qf.get(e);if(L!==void 0){var V=jr,he=e;switch(e){case"keypress":if(Nr(a)===0)break e;case"keydown":case"keyup":V=uv;break;case"focusin":he="focus",V=sc;break;case"focusout":he="blur",V=sc;break;case"beforeblur":case"afterblur":V=sc;break;case"click":if(a.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":V=bf;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":V=Fp;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":V=ov;break;case Yf:case Gf:case kf:V=Wp;break;case Xf:V=dv;break;case"scroll":case"scrollend":V=Kp;break;case"wheel":V=mv;break;case"copy":case"cut":case"paste":V=ev;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":V=xf;break;case"toggle":case"beforetoggle":V=pv}var Te=(t&4)!==0,ht=!Te&&(e==="scroll"||e==="scrollend"),w=Te?L!==null?L+"Capture":null:L;Te=[];for(var j=D,z;j!==null;){var Z=j;if(z=Z.stateNode,Z=Z.tag,Z!==5&&Z!==26&&Z!==27||z===null||w===null||(Z=si(j,w),Z!=null&&Te.push(Qi(j,Z,z))),ht)break;j=j.return}0<Te.length&&(L=new V(L,he,null,a,G),$.push({event:L,listeners:Te}))}}if(!(t&7)){e:{if(L=e==="mouseover"||e==="pointerover",V=e==="mouseout"||e==="pointerout",L&&a!==nc&&(he=a.relatedTarget||a.fromElement)&&(Dt(he)||he[Xe]))break e;if((V||L)&&(L=G.window===G?G:(L=G.ownerDocument)?L.defaultView||L.parentWindow:window,V?(he=a.relatedTarget||a.toElement,V=D,he=he?Dt(he):null,he!==null&&(ht=ne(he),Te=he.tag,he!==ht||Te!==5&&Te!==27&&Te!==6)&&(he=null)):(V=null,he=D),V!==he)){if(Te=bf,Z="onMouseLeave",w="onMouseEnter",j="mouse",(e==="pointerout"||e==="pointerover")&&(Te=xf,Z="onPointerLeave",w="onPointerEnter",j="pointer"),ht=V==null?L:Kn(V),z=he==null?L:Kn(he),L=new Te(Z,j+"leave",V,a,G),L.target=ht,L.relatedTarget=z,Z=null,Dt(G)===D&&(Te=new Te(w,j+"enter",he,a,G),Te.target=z,Te.relatedTarget=ht,Z=Te),ht=Z,V&&he)t:{for(Te=V,w=he,j=0,z=Te;z;z=Fl(z))j++;for(z=0,Z=w;Z;Z=Fl(Z))z++;for(;0<j-z;)Te=Fl(Te),j--;for(;0<z-j;)w=Fl(w),z--;for(;j--;){if(Te===w||w!==null&&Te===w.alternate)break t;Te=Fl(Te),w=Fl(w)}Te=null}else Te=null;V!==null&&am($,L,V,Te,!1),he!==null&&ht!==null&&am($,ht,he,Te,!0)}}e:{if(L=D?Kn(D):window,V=L.nodeName&&L.nodeName.toLowerCase(),V==="select"||V==="input"&&L.type==="file")var ue=Df;else if(jf(L))if(wf)ue=Nv;else{ue=Rv;var we=_v}else V=L.nodeName,!V||V.toLowerCase()!=="input"||L.type!=="checkbox"&&L.type!=="radio"?D&&tc(D.elementType)&&(ue=Df):ue=Tv;if(ue&&(ue=ue(e,D))){Of($,ue,a,G);break e}we&&we(e,L,D),e==="focusout"&&D&&L.type==="number"&&D.memoizedProps.value!=null&&ec(L,"number",L.value)}switch(we=D?Kn(D):window,e){case"focusin":(jf(we)||we.contentEditable==="true")&&(Cl=we,yc=D,vi=null);break;case"focusout":vi=yc=Cl=null;break;case"mousedown":pc=!0;break;case"contextmenu":case"mouseup":case"dragend":pc=!1,qf($,a,G);break;case"selectionchange":if(Ov)break;case"keydown":case"keyup":qf($,a,G)}var pe;if(fc)e:{switch(e){case"compositionstart":var Se="onCompositionStart";break e;case"compositionend":Se="onCompositionEnd";break e;case"compositionupdate":Se="onCompositionUpdate";break e}Se=void 0}else Nl?Nf(e,a)&&(Se="onCompositionEnd"):e==="keydown"&&a.keyCode===229&&(Se="onCompositionStart");Se&&(_f&&a.locale!=="ko"&&(Nl||Se!=="onCompositionStart"?Se==="onCompositionEnd"&&Nl&&(pe=gf()):(ya=G,rc="value"in ya?ya.value:ya.textContent,Nl=!0)),we=du(D,Se),0<we.length&&(Se=new Sf(Se,e,null,a,G),$.push({event:Se,listeners:we}),pe?Se.data=pe:(pe=Cf(a),pe!==null&&(Se.data=pe)))),(pe=gv?Ev(e,a):bv(e,a))&&(Se=du(D,"onBeforeInput"),0<Se.length&&(we=new Sf("onBeforeInput","beforeinput",null,a,G),$.push({event:we,listeners:Se}),we.data=pe)),fg($,e,D,a,G)}tm($,t)})}function Qi(e,t,a){return{instance:e,listener:t,currentTarget:a}}function du(e,t){for(var a=t+"Capture",i=[];e!==null;){var r=e,o=r.stateNode;r=r.tag,r!==5&&r!==26&&r!==27||o===null||(r=si(e,a),r!=null&&i.unshift(Qi(e,r,o)),r=si(e,t),r!=null&&i.push(Qi(e,r,o))),e=e.return}return i}function Fl(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function am(e,t,a,i,r){for(var o=t._reactName,m=[];a!==null&&a!==i;){var E=a,x=E.alternate,D=E.stateNode;if(E=E.tag,x!==null&&x===i)break;E!==5&&E!==26&&E!==27||D===null||(x=D,r?(D=si(a,o),D!=null&&m.unshift(Qi(a,D,x))):r||(D=si(a,o),D!=null&&m.push(Qi(a,D,x)))),a=a.return}m.length!==0&&e.push({event:t,listeners:m})}var yg=/\r\n?/g,pg=/\u0000|\uFFFD/g;function lm(e){return(typeof e=="string"?e:""+e).replace(yg,` -`).replace(pg,"")}function im(e,t){return t=lm(t),lm(e)===t}function hu(){}function Fe(e,t,a,i,r,o){switch(a){case"children":typeof i=="string"?t==="body"||t==="textarea"&&i===""||_l(e,i):(typeof i=="number"||typeof i=="bigint")&&t!=="body"&&_l(e,""+i);break;case"className":Sr(e,"class",i);break;case"tabIndex":Sr(e,"tabindex",i);break;case"dir":case"role":case"viewBox":case"width":case"height":Sr(e,a,i);break;case"style":yf(e,i,o);break;case"data":if(t!=="object"){Sr(e,"data",i);break}case"src":case"href":if(i===""&&(t!=="a"||a!=="href")){e.removeAttribute(a);break}if(i==null||typeof i=="function"||typeof i=="symbol"||typeof i=="boolean"){e.removeAttribute(a);break}i=Rr(""+i),e.setAttribute(a,i);break;case"action":case"formAction":if(typeof i=="function"){e.setAttribute(a,"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 o=="function"&&(a==="formAction"?(t!=="input"&&Fe(e,t,"name",r.name,r,null),Fe(e,t,"formEncType",r.formEncType,r,null),Fe(e,t,"formMethod",r.formMethod,r,null),Fe(e,t,"formTarget",r.formTarget,r,null)):(Fe(e,t,"encType",r.encType,r,null),Fe(e,t,"method",r.method,r,null),Fe(e,t,"target",r.target,r,null)));if(i==null||typeof i=="symbol"||typeof i=="boolean"){e.removeAttribute(a);break}i=Rr(""+i),e.setAttribute(a,i);break;case"onClick":i!=null&&(e.onclick=hu);break;case"onScroll":i!=null&&Ue("scroll",e);break;case"onScrollEnd":i!=null&&Ue("scrollend",e);break;case"dangerouslySetInnerHTML":if(i!=null){if(typeof i!="object"||!("__html"in i))throw Error(s(61));if(a=i.__html,a!=null){if(r.children!=null)throw Error(s(60));e.innerHTML=a}}break;case"multiple":e.multiple=i&&typeof i!="function"&&typeof i!="symbol";break;case"muted":e.muted=i&&typeof i!="function"&&typeof i!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(i==null||typeof i=="function"||typeof i=="boolean"||typeof i=="symbol"){e.removeAttribute("xlink:href");break}a=Rr(""+i),e.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",a);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":i!=null&&typeof i!="function"&&typeof i!="symbol"?e.setAttribute(a,""+i):e.removeAttribute(a);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":i&&typeof i!="function"&&typeof i!="symbol"?e.setAttribute(a,""):e.removeAttribute(a);break;case"capture":case"download":i===!0?e.setAttribute(a,""):i!==!1&&i!=null&&typeof i!="function"&&typeof i!="symbol"?e.setAttribute(a,i):e.removeAttribute(a);break;case"cols":case"rows":case"size":case"span":i!=null&&typeof i!="function"&&typeof i!="symbol"&&!isNaN(i)&&1<=i?e.setAttribute(a,i):e.removeAttribute(a);break;case"rowSpan":case"start":i==null||typeof i=="function"||typeof i=="symbol"||isNaN(i)?e.removeAttribute(a):e.setAttribute(a,i);break;case"popover":Ue("beforetoggle",e),Ue("toggle",e),Sl(e,"popover",i);break;case"xlinkActuate":Fn(e,"http://www.w3.org/1999/xlink","xlink:actuate",i);break;case"xlinkArcrole":Fn(e,"http://www.w3.org/1999/xlink","xlink:arcrole",i);break;case"xlinkRole":Fn(e,"http://www.w3.org/1999/xlink","xlink:role",i);break;case"xlinkShow":Fn(e,"http://www.w3.org/1999/xlink","xlink:show",i);break;case"xlinkTitle":Fn(e,"http://www.w3.org/1999/xlink","xlink:title",i);break;case"xlinkType":Fn(e,"http://www.w3.org/1999/xlink","xlink:type",i);break;case"xmlBase":Fn(e,"http://www.w3.org/XML/1998/namespace","xml:base",i);break;case"xmlLang":Fn(e,"http://www.w3.org/XML/1998/namespace","xml:lang",i);break;case"xmlSpace":Fn(e,"http://www.w3.org/XML/1998/namespace","xml:space",i);break;case"is":Sl(e,"is",i);break;case"innerText":case"textContent":break;default:(!(2<a.length)||a[0]!=="o"&&a[0]!=="O"||a[1]!=="n"&&a[1]!=="N")&&(a=Qp.get(a)||a,Sl(e,a,i))}}function qs(e,t,a,i,r,o){switch(a){case"style":yf(e,i,o);break;case"dangerouslySetInnerHTML":if(i!=null){if(typeof i!="object"||!("__html"in i))throw Error(s(61));if(a=i.__html,a!=null){if(r.children!=null)throw Error(s(60));e.innerHTML=a}}break;case"children":typeof i=="string"?_l(e,i):(typeof i=="number"||typeof i=="bigint")&&_l(e,""+i);break;case"onScroll":i!=null&&Ue("scroll",e);break;case"onScrollEnd":i!=null&&Ue("scrollend",e);break;case"onClick":i!=null&&(e.onclick=hu);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!Qa.hasOwnProperty(a))e:{if(a[0]==="o"&&a[1]==="n"&&(r=a.endsWith("Capture"),t=a.slice(2,r?a.length-7:void 0),o=e[ve]||null,o=o!=null?o[a]:null,typeof o=="function"&&e.removeEventListener(t,o,r),typeof i=="function")){typeof o!="function"&&o!==null&&(a in e?e[a]=null:e.hasAttribute(a)&&e.removeAttribute(a)),e.addEventListener(t,i,r);break e}a in e?e[a]=i:i===!0?e.setAttribute(a,""):Sl(e,a,i)}}}function zt(e,t,a){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 i=!1,r=!1,o;for(o in a)if(a.hasOwnProperty(o)){var m=a[o];if(m!=null)switch(o){case"src":i=!0;break;case"srcSet":r=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(s(137,t));default:Fe(e,t,o,m,a,null)}}r&&Fe(e,t,"srcSet",a.srcSet,a,null),i&&Fe(e,t,"src",a.src,a,null);return;case"input":Ue("invalid",e);var E=o=m=r=null,x=null,D=null;for(i in a)if(a.hasOwnProperty(i)){var G=a[i];if(G!=null)switch(i){case"name":r=G;break;case"type":m=G;break;case"checked":x=G;break;case"defaultChecked":D=G;break;case"value":o=G;break;case"defaultValue":E=G;break;case"children":case"dangerouslySetInnerHTML":if(G!=null)throw Error(s(137,t));break;default:Fe(e,t,i,G,a,null)}}ff(e,o,E,x,D,m,r,!1),xr(e);return;case"select":Ue("invalid",e),i=m=o=null;for(r in a)if(a.hasOwnProperty(r)&&(E=a[r],E!=null))switch(r){case"value":o=E;break;case"defaultValue":m=E;break;case"multiple":i=E;default:Fe(e,t,r,E,a,null)}t=o,a=m,e.multiple=!!i,t!=null?xl(e,!!i,t,!1):a!=null&&xl(e,!!i,a,!0);return;case"textarea":Ue("invalid",e),o=r=i=null;for(m in a)if(a.hasOwnProperty(m)&&(E=a[m],E!=null))switch(m){case"value":i=E;break;case"defaultValue":r=E;break;case"children":o=E;break;case"dangerouslySetInnerHTML":if(E!=null)throw Error(s(91));break;default:Fe(e,t,m,E,a,null)}hf(e,i,r,o),xr(e);return;case"option":for(x in a)if(a.hasOwnProperty(x)&&(i=a[x],i!=null))switch(x){case"selected":e.selected=i&&typeof i!="function"&&typeof i!="symbol";break;default:Fe(e,t,x,i,a,null)}return;case"dialog":Ue("cancel",e),Ue("close",e);break;case"iframe":case"object":Ue("load",e);break;case"video":case"audio":for(i=0;i<Xi.length;i++)Ue(Xi[i],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(D in a)if(a.hasOwnProperty(D)&&(i=a[D],i!=null))switch(D){case"children":case"dangerouslySetInnerHTML":throw Error(s(137,t));default:Fe(e,t,D,i,a,null)}return;default:if(tc(t)){for(G in a)a.hasOwnProperty(G)&&(i=a[G],i!==void 0&&qs(e,t,G,i,a,void 0));return}}for(E in a)a.hasOwnProperty(E)&&(i=a[E],i!=null&&Fe(e,t,E,i,a,null))}function vg(e,t,a,i){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var r=null,o=null,m=null,E=null,x=null,D=null,G=null;for(V in a){var $=a[V];if(a.hasOwnProperty(V)&&$!=null)switch(V){case"checked":break;case"value":break;case"defaultValue":x=$;default:i.hasOwnProperty(V)||Fe(e,t,V,null,i,$)}}for(var L in i){var V=i[L];if($=a[L],i.hasOwnProperty(L)&&(V!=null||$!=null))switch(L){case"type":o=V;break;case"name":r=V;break;case"checked":D=V;break;case"defaultChecked":G=V;break;case"value":m=V;break;case"defaultValue":E=V;break;case"children":case"dangerouslySetInnerHTML":if(V!=null)throw Error(s(137,t));break;default:V!==$&&Fe(e,t,L,V,i,$)}}Iu(e,m,E,x,D,G,o,r);return;case"select":V=m=E=L=null;for(o in a)if(x=a[o],a.hasOwnProperty(o)&&x!=null)switch(o){case"value":break;case"multiple":V=x;default:i.hasOwnProperty(o)||Fe(e,t,o,null,i,x)}for(r in i)if(o=i[r],x=a[r],i.hasOwnProperty(r)&&(o!=null||x!=null))switch(r){case"value":L=o;break;case"defaultValue":E=o;break;case"multiple":m=o;default:o!==x&&Fe(e,t,r,o,i,x)}t=E,a=m,i=V,L!=null?xl(e,!!a,L,!1):!!i!=!!a&&(t!=null?xl(e,!!a,t,!0):xl(e,!!a,a?[]:"",!1));return;case"textarea":V=L=null;for(E in a)if(r=a[E],a.hasOwnProperty(E)&&r!=null&&!i.hasOwnProperty(E))switch(E){case"value":break;case"children":break;default:Fe(e,t,E,null,i,r)}for(m in i)if(r=i[m],o=a[m],i.hasOwnProperty(m)&&(r!=null||o!=null))switch(m){case"value":L=r;break;case"defaultValue":V=r;break;case"children":break;case"dangerouslySetInnerHTML":if(r!=null)throw Error(s(91));break;default:r!==o&&Fe(e,t,m,r,i,o)}df(e,L,V);return;case"option":for(var he in a)if(L=a[he],a.hasOwnProperty(he)&&L!=null&&!i.hasOwnProperty(he))switch(he){case"selected":e.selected=!1;break;default:Fe(e,t,he,null,i,L)}for(x in i)if(L=i[x],V=a[x],i.hasOwnProperty(x)&&L!==V&&(L!=null||V!=null))switch(x){case"selected":e.selected=L&&typeof L!="function"&&typeof L!="symbol";break;default:Fe(e,t,x,L,i,V)}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 Te in a)L=a[Te],a.hasOwnProperty(Te)&&L!=null&&!i.hasOwnProperty(Te)&&Fe(e,t,Te,null,i,L);for(D in i)if(L=i[D],V=a[D],i.hasOwnProperty(D)&&L!==V&&(L!=null||V!=null))switch(D){case"children":case"dangerouslySetInnerHTML":if(L!=null)throw Error(s(137,t));break;default:Fe(e,t,D,L,i,V)}return;default:if(tc(t)){for(var ht in a)L=a[ht],a.hasOwnProperty(ht)&&L!==void 0&&!i.hasOwnProperty(ht)&&qs(e,t,ht,void 0,i,L);for(G in i)L=i[G],V=a[G],!i.hasOwnProperty(G)||L===V||L===void 0&&V===void 0||qs(e,t,G,L,i,V);return}}for(var w in a)L=a[w],a.hasOwnProperty(w)&&L!=null&&!i.hasOwnProperty(w)&&Fe(e,t,w,null,i,L);for($ in i)L=i[$],V=a[$],!i.hasOwnProperty($)||L===V||L==null&&V==null||Fe(e,t,$,L,i,V)}var Vs=null,Ys=null;function mu(e){return e.nodeType===9?e:e.ownerDocument}function rm(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 um(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 Gs(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 gg(){var e=window.event;return e&&e.type==="popstate"?e===ks?!1:(ks=e,!0):(ks=null,!1)}var cm=typeof setTimeout=="function"?setTimeout:void 0,Eg=typeof clearTimeout=="function"?clearTimeout:void 0,sm=typeof Promise=="function"?Promise:void 0,bg=typeof queueMicrotask=="function"?queueMicrotask:typeof sm<"u"?function(e){return sm.resolve(null).then(e).catch(Sg)}:cm;function Sg(e){setTimeout(function(){throw e})}function Xs(e,t){var a=t,i=0;do{var r=a.nextSibling;if(e.removeChild(a),r&&r.nodeType===8)if(a=r.data,a==="/$"){if(i===0){e.removeChild(r),Ii(t);return}i--}else a!=="$"&&a!=="$?"&&a!=="$!"||i++;a=r}while(a);Ii(t)}function Qs(e){var t=e.firstChild;for(t&&t.nodeType===10&&(t=t.nextSibling);t;){var a=t;switch(t=t.nextSibling,a.nodeName){case"HTML":case"HEAD":case"BODY":Qs(a),Zn(a);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(a.rel.toLowerCase()==="stylesheet")continue}e.removeChild(a)}}function xg(e,t,a,i){for(;e.nodeType===1;){var r=a;if(e.nodeName.toLowerCase()!==t.toLowerCase()){if(!i&&(e.nodeName!=="INPUT"||e.type!=="hidden"))break}else if(i){if(!e[sn])switch(t){case"meta":if(!e.hasAttribute("itemprop"))break;return e;case"link":if(o=e.getAttribute("rel"),o==="stylesheet"&&e.hasAttribute("data-precedence"))break;if(o!==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(o=e.getAttribute("src"),(o!==(r.src==null?null:r.src)||e.getAttribute("type")!==(r.type==null?null:r.type)||e.getAttribute("crossorigin")!==(r.crossOrigin==null?null:r.crossOrigin))&&o&&e.hasAttribute("async")&&!e.hasAttribute("itemprop"))break;return e;default:return e}}else if(t==="input"&&e.type==="hidden"){var o=r.name==null?null:""+r.name;if(r.type==="hidden"&&e.getAttribute("name")===o)return e}else return e;if(e=Dn(e.nextSibling),e===null)break}return null}function _g(e,t,a){if(t==="")return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!a||(e=Dn(e.nextSibling),e===null))return null;return e}function Dn(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 om(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var a=e.data;if(a==="$"||a==="$!"||a==="$?"){if(t===0)return e;t--}else a==="/$"&&t++}e=e.previousSibling}return null}function fm(e,t,a){switch(t=mu(a),e){case"html":if(e=t.documentElement,!e)throw Error(s(452));return e;case"head":if(e=t.head,!e)throw Error(s(453));return e;case"body":if(e=t.body,!e)throw Error(s(454));return e;default:throw Error(s(451))}}var xn=new Map,dm=new Set;function yu(e){return typeof e.getRootNode=="function"?e.getRootNode():e.ownerDocument}var oa=P.d;P.d={f:Rg,r:Tg,D:Ng,C:Cg,L:jg,m:Og,X:wg,S:Dg,M:Ag};function Rg(){var e=oa.f(),t=uu();return e||t}function Tg(e){var t=wt(e);t!==null&&t.tag===5&&t.type==="form"?qd(t):oa.r(e)}var Jl=typeof document>"u"?null:document;function hm(e,t,a){var i=Jl;if(i&&typeof t=="string"&&t){var r=dn(t);r='link[rel="'+e+'"][href="'+r+'"]',typeof a=="string"&&(r+='[crossorigin="'+a+'"]'),dm.has(r)||(dm.add(r),e={rel:e,crossOrigin:a,href:t},i.querySelector(r)===null&&(t=i.createElement("link"),zt(t,"link",e),et(t),i.head.appendChild(t)))}}function Ng(e){oa.D(e),hm("dns-prefetch",e,null)}function Cg(e,t){oa.C(e,t),hm("preconnect",e,t)}function jg(e,t,a){oa.L(e,t,a);var i=Jl;if(i&&e&&t){var r='link[rel="preload"][as="'+dn(t)+'"]';t==="image"&&a&&a.imageSrcSet?(r+='[imagesrcset="'+dn(a.imageSrcSet)+'"]',typeof a.imageSizes=="string"&&(r+='[imagesizes="'+dn(a.imageSizes)+'"]')):r+='[href="'+dn(e)+'"]';var o=r;switch(t){case"style":o=Pl(e);break;case"script":o=Wl(e)}xn.has(o)||(e=I({rel:"preload",href:t==="image"&&a&&a.imageSrcSet?void 0:e,as:t},a),xn.set(o,e),i.querySelector(r)!==null||t==="style"&&i.querySelector(Zi(o))||t==="script"&&i.querySelector(Ki(o))||(t=i.createElement("link"),zt(t,"link",e),et(t),i.head.appendChild(t)))}}function Og(e,t){oa.m(e,t);var a=Jl;if(a&&e){var i=t&&typeof t.as=="string"?t.as:"script",r='link[rel="modulepreload"][as="'+dn(i)+'"][href="'+dn(e)+'"]',o=r;switch(i){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":o=Wl(e)}if(!xn.has(o)&&(e=I({rel:"modulepreload",href:e},t),xn.set(o,e),a.querySelector(r)===null)){switch(i){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(a.querySelector(Ki(o)))return}i=a.createElement("link"),zt(i,"link",e),et(i),a.head.appendChild(i)}}}function Dg(e,t,a){oa.S(e,t,a);var i=Jl;if(i&&e){var r=on(i).hoistableStyles,o=Pl(e);t=t||"default";var m=r.get(o);if(!m){var E={loading:0,preload:null};if(m=i.querySelector(Zi(o)))E.loading=5;else{e=I({rel:"stylesheet",href:e,"data-precedence":t},a),(a=xn.get(o))&&Zs(e,a);var x=m=i.createElement("link");et(x),zt(x,"link",e),x._p=new Promise(function(D,G){x.onload=D,x.onerror=G}),x.addEventListener("load",function(){E.loading|=1}),x.addEventListener("error",function(){E.loading|=2}),E.loading|=4,pu(m,t,i)}m={type:"stylesheet",instance:m,count:1,state:E},r.set(o,m)}}}function wg(e,t){oa.X(e,t);var a=Jl;if(a&&e){var i=on(a).hoistableScripts,r=Wl(e),o=i.get(r);o||(o=a.querySelector(Ki(r)),o||(e=I({src:e,async:!0},t),(t=xn.get(r))&&Ks(e,t),o=a.createElement("script"),et(o),zt(o,"link",e),a.head.appendChild(o)),o={type:"script",instance:o,count:1,state:null},i.set(r,o))}}function Ag(e,t){oa.M(e,t);var a=Jl;if(a&&e){var i=on(a).hoistableScripts,r=Wl(e),o=i.get(r);o||(o=a.querySelector(Ki(r)),o||(e=I({src:e,async:!0,type:"module"},t),(t=xn.get(r))&&Ks(e,t),o=a.createElement("script"),et(o),zt(o,"link",e),a.head.appendChild(o)),o={type:"script",instance:o,count:1,state:null},i.set(r,o))}}function mm(e,t,a,i){var r=(r=it.current)?yu(r):null;if(!r)throw Error(s(446));switch(e){case"meta":case"title":return null;case"style":return typeof a.precedence=="string"&&typeof a.href=="string"?(t=Pl(a.href),a=on(r).hoistableStyles,i=a.get(t),i||(i={type:"style",instance:null,count:0,state:null},a.set(t,i)),i):{type:"void",instance:null,count:0,state:null};case"link":if(a.rel==="stylesheet"&&typeof a.href=="string"&&typeof a.precedence=="string"){e=Pl(a.href);var o=on(r).hoistableStyles,m=o.get(e);if(m||(r=r.ownerDocument||r,m={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},o.set(e,m),(o=r.querySelector(Zi(e)))&&!o._p&&(m.instance=o,m.state.loading=5),xn.has(e)||(a={rel:"preload",as:"style",href:a.href,crossOrigin:a.crossOrigin,integrity:a.integrity,media:a.media,hrefLang:a.hrefLang,referrerPolicy:a.referrerPolicy},xn.set(e,a),o||Mg(r,e,a,m.state))),t&&i===null)throw Error(s(528,""));return m}if(t&&i!==null)throw Error(s(529,""));return null;case"script":return t=a.async,a=a.src,typeof a=="string"&&t&&typeof t!="function"&&typeof t!="symbol"?(t=Wl(a),a=on(r).hoistableScripts,i=a.get(t),i||(i={type:"script",instance:null,count:0,state:null},a.set(t,i)),i):{type:"void",instance:null,count:0,state:null};default:throw Error(s(444,e))}}function Pl(e){return'href="'+dn(e)+'"'}function Zi(e){return'link[rel="stylesheet"]['+e+"]"}function ym(e){return I({},e,{"data-precedence":e.precedence,precedence:null})}function Mg(e,t,a,i){e.querySelector('link[rel="preload"][as="style"]['+t+"]")?i.loading=1:(t=e.createElement("link"),i.preload=t,t.addEventListener("load",function(){return i.loading|=1}),t.addEventListener("error",function(){return i.loading|=2}),zt(t,"link",a),et(t),e.head.appendChild(t))}function Wl(e){return'[src="'+dn(e)+'"]'}function Ki(e){return"script[async]"+e}function pm(e,t,a){if(t.count++,t.instance===null)switch(t.type){case"style":var i=e.querySelector('style[data-href~="'+dn(a.href)+'"]');if(i)return t.instance=i,et(i),i;var r=I({},a,{"data-href":a.href,"data-precedence":a.precedence,href:null,precedence:null});return i=(e.ownerDocument||e).createElement("style"),et(i),zt(i,"style",r),pu(i,a.precedence,e),t.instance=i;case"stylesheet":r=Pl(a.href);var o=e.querySelector(Zi(r));if(o)return t.state.loading|=4,t.instance=o,et(o),o;i=ym(a),(r=xn.get(r))&&Zs(i,r),o=(e.ownerDocument||e).createElement("link"),et(o);var m=o;return m._p=new Promise(function(E,x){m.onload=E,m.onerror=x}),zt(o,"link",i),t.state.loading|=4,pu(o,a.precedence,e),t.instance=o;case"script":return o=Wl(a.src),(r=e.querySelector(Ki(o)))?(t.instance=r,et(r),r):(i=a,(r=xn.get(o))&&(i=I({},a),Ks(i,r)),e=e.ownerDocument||e,r=e.createElement("script"),et(r),zt(r,"link",i),e.head.appendChild(r),t.instance=r);case"void":return null;default:throw Error(s(443,t.type))}else t.type==="stylesheet"&&!(t.state.loading&4)&&(i=t.instance,t.state.loading|=4,pu(i,a.precedence,e));return t.instance}function pu(e,t,a){for(var i=a.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),r=i.length?i[i.length-1]:null,o=r,m=0;m<i.length;m++){var E=i[m];if(E.dataset.precedence===t)o=E;else if(o!==r)break}o?o.parentNode.insertBefore(e,o.nextSibling):(t=a.nodeType===9?a.head:a,t.insertBefore(e,t.firstChild))}function Zs(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.title==null&&(e.title=t.title)}function Ks(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.integrity==null&&(e.integrity=t.integrity)}var vu=null;function vm(e,t,a){if(vu===null){var i=new Map,r=vu=new Map;r.set(a,i)}else r=vu,i=r.get(a),i||(i=new Map,r.set(a,i));if(i.has(e))return i;for(i.set(e,null),a=a.getElementsByTagName(e),r=0;r<a.length;r++){var o=a[r];if(!(o[sn]||o[fe]||e==="link"&&o.getAttribute("rel")==="stylesheet")&&o.namespaceURI!=="http://www.w3.org/2000/svg"){var m=o.getAttribute(t)||"";m=e+m;var E=i.get(m);E?E.push(o):i.set(m,[o])}}return i}function gm(e,t,a){e=e.ownerDocument||e,e.head.insertBefore(a,t==="title"?e.querySelector("head > title"):null)}function zg(e,t,a){if(a===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 Em(e){return!(e.type==="stylesheet"&&!(e.state.loading&3))}var $i=null;function Lg(){}function Ug(e,t,a){if($i===null)throw Error(s(475));var i=$i;if(t.type==="stylesheet"&&(typeof a.media!="string"||matchMedia(a.media).matches!==!1)&&!(t.state.loading&4)){if(t.instance===null){var r=Pl(a.href),o=e.querySelector(Zi(r));if(o){e=o._p,e!==null&&typeof e=="object"&&typeof e.then=="function"&&(i.count++,i=gu.bind(i),e.then(i,i)),t.state.loading|=4,t.instance=o,et(o);return}o=e.ownerDocument||e,a=ym(a),(r=xn.get(r))&&Zs(a,r),o=o.createElement("link"),et(o);var m=o;m._p=new Promise(function(E,x){m.onload=E,m.onerror=x}),zt(o,"link",a),t.instance=o}i.stylesheets===null&&(i.stylesheets=new Map),i.stylesheets.set(t,e),(e=t.state.preload)&&!(t.state.loading&3)&&(i.count++,t=gu.bind(i),e.addEventListener("load",t),e.addEventListener("error",t))}}function Hg(){if($i===null)throw Error(s(475));var e=$i;return e.stylesheets&&e.count===0&&$s(e,e.stylesheets),0<e.count?function(t){var a=setTimeout(function(){if(e.stylesheets&&$s(e,e.stylesheets),e.unsuspend){var i=e.unsuspend;e.unsuspend=null,i()}},6e4);return e.unsuspend=t,function(){e.unsuspend=null,clearTimeout(a)}}:null}function gu(){if(this.count--,this.count===0){if(this.stylesheets)$s(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var Eu=null;function $s(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,Eu=new Map,t.forEach(Bg,e),Eu=null,gu.call(e))}function Bg(e,t){if(!(t.state.loading&4)){var a=Eu.get(e);if(a)var i=a.get(null);else{a=new Map,Eu.set(e,a);for(var r=e.querySelectorAll("link[data-precedence],style[data-precedence]"),o=0;o<r.length;o++){var m=r[o];(m.nodeName==="LINK"||m.getAttribute("media")!=="not all")&&(a.set(m.dataset.precedence,m),i=m)}i&&a.set(null,i)}r=t.instance,m=r.getAttribute("data-precedence"),o=a.get(m)||i,o===i&&a.set(null,r),a.set(m,r),this.count++,i=gu.bind(this),r.addEventListener("load",i),r.addEventListener("error",i),o?o.parentNode.insertBefore(r,o.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(r,e.firstChild)),t.state.loading|=4}}var Fi={$$typeof:_,Provider:null,Consumer:null,_currentValue:ge,_currentValue2:ge,_threadCount:0};function qg(e,t,a,i,r,o,m,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=i,this.onUncaughtError=r,this.onCaughtError=o,this.onRecoverableError=m,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=E,this.incompleteTransitions=new Map}function bm(e,t,a,i,r,o,m,E,x,D,G,$){return e=new qg(e,t,a,m,E,x,D,$),t=1,o===!0&&(t|=24),o=bn(3,null,null,t),e.current=o,o.stateNode=e,t=Nc(),t.refCount++,e.pooledCache=t,t.refCount++,o.memoizedState={element:i,isDehydrated:a,cache:t},rs(o),e}function Sm(e){return e?(e=Dl,e):Dl}function xm(e,t,a,i,r,o){r=Sm(r),i.context===null?i.context=r:i.pendingContext=r,i=_a(t),i.payload={element:a},o=o===void 0?null:o,o!==null&&(i.callback=o),a=Ra(e,i,t),a!==null&&(Xt(a,e,t),Ai(a,e,t))}function _m(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var a=e.retryLane;e.retryLane=a!==0&&a<t?a:t}}function Fs(e,t){_m(e,t),(e=e.alternate)&&_m(e,t)}function Rm(e){if(e.tag===13){var t=pa(e,67108864);t!==null&&Xt(t,e,67108864),Fs(e,67108864)}}var bu=!0;function Vg(e,t,a,i){var r=X.T;X.T=null;var o=P.p;try{P.p=2,Js(e,t,a,i)}finally{P.p=o,X.T=r}}function Yg(e,t,a,i){var r=X.T;X.T=null;var o=P.p;try{P.p=8,Js(e,t,a,i)}finally{P.p=o,X.T=r}}function Js(e,t,a,i){if(bu){var r=Ps(i);if(r===null)Bs(e,t,i,Su,a),Nm(e,i);else if(kg(r,e,t,a,i))i.stopPropagation();else if(Nm(e,i),t&4&&-1<Gg.indexOf(e)){for(;r!==null;){var o=wt(r);if(o!==null)switch(o.tag){case 3:if(o=o.stateNode,o.current.memoizedState.isDehydrated){var m=zn(o.pendingLanes);if(m!==0){var E=o;for(E.pendingLanes|=2,E.entangledLanes|=2;m;){var x=1<<31-Tt(m);E.entanglements[1]|=x,m&=~x}Vn(o),!(st&6)&&(lu=mt()+500,ki(0))}}break;case 13:E=pa(o,2),E!==null&&Xt(E,o,2),uu(),Fs(o,2)}if(o=Ps(i),o===null&&Bs(e,t,i,Su,a),o===r)break;r=o}r!==null&&i.stopPropagation()}else Bs(e,t,i,null,a)}}function Ps(e){return e=ac(e),Ws(e)}var Su=null;function Ws(e){if(Su=null,e=Dt(e),e!==null){var t=ne(e);if(t===null)e=null;else{var a=t.tag;if(a===13){if(e=Re(t),e!==null)return e;e=null}else if(a===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null)}}return Su=e,null}function Tm(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(Kt()){case _e:return 2;case Ie:return 8;case Gt:case ui:return 32;case pr:return 268435456;default:return 32}default:return 32}}var Is=!1,wa=null,Aa=null,Ma=null,Ji=new Map,Pi=new Map,za=[],Gg="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 Nm(e,t){switch(e){case"focusin":case"focusout":wa=null;break;case"dragenter":case"dragleave":Aa=null;break;case"mouseover":case"mouseout":Ma=null;break;case"pointerover":case"pointerout":Ji.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Pi.delete(t.pointerId)}}function Wi(e,t,a,i,r,o){return e===null||e.nativeEvent!==o?(e={blockedOn:t,domEventName:a,eventSystemFlags:i,nativeEvent:o,targetContainers:[r]},t!==null&&(t=wt(t),t!==null&&Rm(t)),e):(e.eventSystemFlags|=i,t=e.targetContainers,r!==null&&t.indexOf(r)===-1&&t.push(r),e)}function kg(e,t,a,i,r){switch(t){case"focusin":return wa=Wi(wa,e,t,a,i,r),!0;case"dragenter":return Aa=Wi(Aa,e,t,a,i,r),!0;case"mouseover":return Ma=Wi(Ma,e,t,a,i,r),!0;case"pointerover":var o=r.pointerId;return Ji.set(o,Wi(Ji.get(o)||null,e,t,a,i,r)),!0;case"gotpointercapture":return o=r.pointerId,Pi.set(o,Wi(Pi.get(o)||null,e,t,a,i,r)),!0}return!1}function Cm(e){var t=Dt(e.target);if(t!==null){var a=ne(t);if(a!==null){if(t=a.tag,t===13){if(t=Re(a),t!==null){e.blockedOn=t,oe(e.priority,function(){if(a.tag===13){var i=nn(),r=pa(a,i);r!==null&&Xt(r,a,i),Fs(a,i)}});return}}else if(t===3&&a.stateNode.current.memoizedState.isDehydrated){e.blockedOn=a.tag===3?a.stateNode.containerInfo:null;return}}}e.blockedOn=null}function xu(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var a=Ps(e.nativeEvent);if(a===null){a=e.nativeEvent;var i=new a.constructor(a.type,a);nc=i,a.target.dispatchEvent(i),nc=null}else return t=wt(a),t!==null&&Rm(t),e.blockedOn=a,!1;t.shift()}return!0}function jm(e,t,a){xu(e)&&a.delete(t)}function Xg(){Is=!1,wa!==null&&xu(wa)&&(wa=null),Aa!==null&&xu(Aa)&&(Aa=null),Ma!==null&&xu(Ma)&&(Ma=null),Ji.forEach(jm),Pi.forEach(jm)}function _u(e,t){e.blockedOn===t&&(e.blockedOn=null,Is||(Is=!0,l.unstable_scheduleCallback(l.unstable_NormalPriority,Xg)))}var Ru=null;function Om(e){Ru!==e&&(Ru=e,l.unstable_scheduleCallback(l.unstable_NormalPriority,function(){Ru===e&&(Ru=null);for(var t=0;t<e.length;t+=3){var a=e[t],i=e[t+1],r=e[t+2];if(typeof i!="function"){if(Ws(i||a)===null)continue;break}var o=wt(a);o!==null&&(e.splice(t,3),t-=3,Gc(o,{pending:!0,data:r,method:a.method,action:i},i,r))}}))}function Ii(e){function t(x){return _u(x,e)}wa!==null&&_u(wa,e),Aa!==null&&_u(Aa,e),Ma!==null&&_u(Ma,e),Ji.forEach(t),Pi.forEach(t);for(var a=0;a<za.length;a++){var i=za[a];i.blockedOn===e&&(i.blockedOn=null)}for(;0<za.length&&(a=za[0],a.blockedOn===null);)Cm(a),a.blockedOn===null&&za.shift();if(a=(e.ownerDocument||e).$$reactFormReplay,a!=null)for(i=0;i<a.length;i+=3){var r=a[i],o=a[i+1],m=r[ve]||null;if(typeof o=="function")m||Om(a);else if(m){var E=null;if(o&&o.hasAttribute("formAction")){if(r=o,m=o[ve]||null)E=m.formAction;else if(Ws(r)!==null)continue}else E=m.action;typeof E=="function"?a[i+1]=E:(a.splice(i,3),i-=3),Om(a)}}}function eo(e){this._internalRoot=e}Tu.prototype.render=eo.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(s(409));var a=t.current,i=nn();xm(a,i,e,t,null,null)},Tu.prototype.unmount=eo.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;e.tag===0&&Kl(),xm(e.current,2,null,e,null,null),uu(),t[Xe]=null}};function Tu(e){this._internalRoot=e}Tu.prototype.unstable_scheduleHydration=function(e){if(e){var t=re();e={blockedOn:null,target:e,priority:t};for(var a=0;a<za.length&&t!==0&&t<za[a].priority;a++);za.splice(a,0,e),a===0&&Cm(e)}};var Dm=n.version;if(Dm!=="19.0.0")throw Error(s(527,Dm,"19.0.0"));P.findDOMNode=function(e){var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(s(188)):(e=Object.keys(e).join(","),Error(s(268,e)));return e=Q(t),e=e!==null?le(e):null,e=e===null?null:e.stateNode,e};var Qg={bundleType:0,version:"19.0.0",rendererPackageName:"react-dom",currentDispatcherRef:X,findFiberByHostInstance:Dt,reconcilerVersion:"19.0.0"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Nu=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Nu.isDisabled&&Nu.supportsFiber)try{ma=Nu.inject(Qg),Bt=Nu}catch{}}return tr.createRoot=function(e,t){if(!u(e))throw Error(s(299));var a=!1,i="",r=Kd,o=$d,m=Fd,E=null;return t!=null&&(t.unstable_strictMode===!0&&(a=!0),t.identifierPrefix!==void 0&&(i=t.identifierPrefix),t.onUncaughtError!==void 0&&(r=t.onUncaughtError),t.onCaughtError!==void 0&&(o=t.onCaughtError),t.onRecoverableError!==void 0&&(m=t.onRecoverableError),t.unstable_transitionCallbacks!==void 0&&(E=t.unstable_transitionCallbacks)),t=bm(e,1,!1,null,null,a,i,r,o,m,E,null),e[Xe]=t.current,Hs(e.nodeType===8?e.parentNode:e),new eo(t)},tr.hydrateRoot=function(e,t,a){if(!u(e))throw Error(s(299));var i=!1,r="",o=Kd,m=$d,E=Fd,x=null,D=null;return a!=null&&(a.unstable_strictMode===!0&&(i=!0),a.identifierPrefix!==void 0&&(r=a.identifierPrefix),a.onUncaughtError!==void 0&&(o=a.onUncaughtError),a.onCaughtError!==void 0&&(m=a.onCaughtError),a.onRecoverableError!==void 0&&(E=a.onRecoverableError),a.unstable_transitionCallbacks!==void 0&&(x=a.unstable_transitionCallbacks),a.formState!==void 0&&(D=a.formState)),t=bm(e,1,!0,t,a??null,i,r,o,m,E,x,D),t.context=Sm(null),a=t.current,i=nn(),r=_a(i),r.callback=null,Ra(a,r,i),t.current.lanes=i,B(t,i),Vn(t),e[Xe]=t.current,Hs(e),new Tu(t)},tr.version="19.0.0",tr}var Ym;function n1(){if(Ym)return ao.exports;Ym=1;function l(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(l)}catch(n){console.error(n)}}return l(),ao.exports=t1(),ao.exports}var a1=n1();const l1="modulepreload",i1=function(l){return"/static/"+l},Gm={},be=function(n,c,s){let u=Promise.resolve();if(c&&c.length>0){document.getElementsByTagName("link");const d=document.querySelector("meta[property=csp-nonce]"),y=(d==null?void 0:d.nonce)||(d==null?void 0:d.getAttribute("nonce"));u=Promise.allSettled(c.map(v=>{if(v=i1(v),v in Gm)return;Gm[v]=!0;const p=v.endsWith(".css"),b=p?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${v}"]${b}`))return;const R=document.createElement("link");if(R.rel=p?"stylesheet":l1,p||(R.as="script"),R.crossOrigin="",R.href=v,y&&R.setAttribute("nonce",y),document.head.appendChild(R),p)return new Promise((S,_)=>{R.addEventListener("load",S),R.addEventListener("error",()=>_(new Error(`Unable to preload CSS for ${v}`)))})}))}function f(d){const y=new Event("vite:preloadError",{cancelable:!0});if(y.payload=d,window.dispatchEvent(y),!y.defaultPrevented)throw d}return u.then(d=>{for(const y of d||[])y.status==="rejected"&&f(y.reason);return n().catch(f)})};var uo={exports:{}},co={};/** +`+a.stack}}function ne(e){var t=e,a=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,t.flags&4098&&(a=t.return),e=t.return;while(e)}return t.tag===3?a: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 T(e){if(ne(e)!==e)throw Error(s(188))}function Q(e){var t=e.alternate;if(!t){if(t=ne(e),t===null)throw Error(s(188));return t!==e?null:e}for(var a=e,i=t;;){var r=a.return;if(r===null)break;var o=r.alternate;if(o===null){if(i=r.return,i!==null){a=i;continue}break}if(r.child===o.child){for(o=r.child;o;){if(o===a)return T(r),e;if(o===i)return T(r),t;o=o.sibling}throw Error(s(188))}if(a.return!==i.return)a=r,i=o;else{for(var m=!1,E=r.child;E;){if(E===a){m=!0,a=r,i=o;break}if(E===i){m=!0,i=r,a=o;break}E=E.sibling}if(!m){for(E=o.child;E;){if(E===a){m=!0,a=o,i=r;break}if(E===i){m=!0,i=o,a=r;break}E=E.sibling}if(!m)throw Error(s(189))}}if(a.alternate!==i)throw Error(s(190))}if(a.tag!==3)throw Error(s(188));return a.stateNode.current===a?e:t}function le(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e;for(e=e.child;e!==null;){if(t=le(e),t!==null)return t;e=e.sibling}return null}var te=Array.isArray,P=c.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,ge={pending:!1,data:null,method:null,action:null},ye=[],Je=-1;function Ce(e){return{current:e}}function Le(e){0>Je||(e.current=ye[Je],ye[Je]=null,Je--)}function Ee(e,t){Je++,ye[Je]=e.current,e.current=t}var Ze=Ce(null),vt=Ce(null),it=Ce(null),lt=Ce(null);function De(e,t){switch(Ee(it,t),Ee(vt,e),Ee(Ze,null),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)&&(t=t.namespaceURI)?rm(t):0;break;default:if(e=e===8?t.parentNode:t,t=e.tagName,e=e.namespaceURI)e=rm(e),t=um(e,t);else switch(t){case"svg":t=1;break;case"math":t=2;break;default:t=0}}Le(Ze),Ee(Ze,t)}function Rt(){Le(Ze),Le(vt),Le(it)}function St(e){e.memoizedState!==null&&Ee(lt,e);var t=Ze.current,a=um(t,e.type);t!==a&&(Ee(vt,e),Ee(Ze,a))}function Pt(e){vt.current===e&&(Le(Ze),Le(vt)),lt.current===e&&(Le(lt),Fi._currentValue=ge)}var Zt=Object.prototype.hasOwnProperty,un=l.unstable_scheduleCallback,cn=l.unstable_cancelCallback,Ut=l.unstable_shouldYield,Ht=l.unstable_requestPaint,mt=l.unstable_now,Kt=l.unstable_getCurrentPriorityLevel,_e=l.unstable_ImmediatePriority,Ie=l.unstable_UserBlockingPriority,kt=l.unstable_NormalPriority,ui=l.unstable_LowPriority,pr=l.unstable_IdlePriority,Mn=l.log,vr=l.unstable_setDisableYieldValue,ma=null,Bt=null;function Ju(e){if(Bt&&typeof Bt.onCommitFiberRoot=="function")try{Bt.onCommitFiberRoot(ma,e,void 0,(e.current.flags&128)===128)}catch{}}function Nn(e){if(typeof Mn=="function"&&vr(e),Bt&&typeof Bt.setStrictMode=="function")try{Bt.setStrictMode(ma,e)}catch{}}var Tt=Math.clz32?Math.clz32:Pu,gr=Math.log,ci=Math.LN2;function Pu(e){return e>>>=0,e===0?32:31-(gr(e)/ci|0)|0}var Ga=128,bl=4194304;function zn(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 Qn(e,t){var a=e.pendingLanes;if(a===0)return 0;var i=0,r=e.suspendedLanes,o=e.pingedLanes,m=e.warmLanes;e=e.finishedLanes!==0;var E=a&134217727;return E!==0?(a=E&~r,a!==0?i=zn(a):(o&=E,o!==0?i=zn(o):e||(m=E&~m,m!==0&&(i=zn(m))))):(E=a&~r,E!==0?i=zn(E):o!==0?i=zn(o):e||(m=a&~m,m!==0&&(i=zn(m)))),i===0?0:t!==0&&t!==i&&!(t&r)&&(r=i&-i,m=t&-t,r>=m||r===32&&(m&4194176)!==0)?t:i}function Ln(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function Wu(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 Er(){var e=Ga;return Ga<<=1,!(Ga&4194176)&&(Ga=128),e}function C(){var e=bl;return bl<<=1,!(bl&62914560)&&(bl=4194304),e}function A(e){for(var t=[],a=0;31>a;a++)t.push(e);return t}function B(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function F(e,t,a,i,r,o){var m=e.pendingLanes;e.pendingLanes=a,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=a,e.entangledLanes&=a,e.errorRecoveryDisabledLanes&=a,e.shellSuspendCounter=0;var E=e.entanglements,x=e.expirationTimes,D=e.hiddenUpdates;for(a=m&~a;0<a;){var k=31-Tt(a),$=1<<k;E[k]=0,x[k]=-1;var L=D[k];if(L!==null)for(D[k]=null,k=0;k<L.length;k++){var V=L[k];V!==null&&(V.lane&=-536870913)}a&=~$}i!==0&&ae(e,i,0),o!==0&&r===0&&e.tag!==0&&(e.suspendedLanes|=o&~(m&~t))}function ae(e,t,a){e.pendingLanes|=t,e.suspendedLanes&=~t;var i=31-Tt(t);e.entangledLanes|=t,e.entanglements[i]=e.entanglements[i]|1073741824|a&4194218}function me(e,t){var a=e.entangledLanes|=t;for(e=e.entanglements;a;){var i=31-Tt(a),r=1<<i;r&t|e[i]&t&&(e[i]|=t),a&=~r}}function xe(e){return e&=-e,2<e?8<e?e&134217727?32:268435456:8:2}function re(){var e=P.p;return e!==0?e:(e=window.event,e===void 0?32:Tm(e.type))}function oe(e,t){var a=P.p;try{return P.p=e,t()}finally{P.p=a}}var ee=Math.random().toString(36).slice(2),fe="__reactFiber$"+ee,ve="__reactProps$"+ee,Xe="__reactContainer$"+ee,yt="__reactEvents$"+ee,at="__reactListeners$"+ee,Pe="__reactHandles$"+ee,ot="__reactResources$"+ee,sn="__reactMarker$"+ee;function Zn(e){delete e[fe],delete e[ve],delete e[yt],delete e[at],delete e[Pe]}function Dt(e){var t=e[fe];if(t)return t;for(var a=e.parentNode;a;){if(t=a[Xe]||a[fe]){if(a=t.alternate,t.child!==null||a!==null&&a.child!==null)for(e=om(e);e!==null;){if(a=e[fe])return a;e=om(e)}return t}e=a,a=e.parentNode}return null}function wt(e){if(e=e[fe]||e[Xe]){var t=e.tag;if(t===5||t===6||t===13||t===26||t===27||t===3)return e}return null}function Kn(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e.stateNode;throw Error(s(33))}function on(e){var t=e[ot];return t||(t=e[ot]={hoistableStyles:new Map,hoistableScripts:new Map}),t}function et(e){e[sn]=!0}var Xa=new Set,Qa={};function qe(e,t){rt(e,t),rt(e+"Capture",t)}function rt(e,t){for(Qa[e]=t,e=0;e<t.length;e++)Xa.add(t[e])}var $t=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Za=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]*$"),ut={},$n={};function br(e){return Zt.call($n,e)?!0:Zt.call(ut,e)?!1:Za.test(e)?$n[e]=!0:(ut[e]=!0,!1)}function Sl(e,t,a){if(br(t))if(a===null)e.removeAttribute(t);else{switch(typeof a){case"undefined":case"function":case"symbol":e.removeAttribute(t);return;case"boolean":var i=t.toLowerCase().slice(0,5);if(i!=="data-"&&i!=="aria-"){e.removeAttribute(t);return}}e.setAttribute(t,""+a)}}function Sr(e,t,a){if(a===null)e.removeAttribute(t);else{switch(typeof a){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(t);return}e.setAttribute(t,""+a)}}function Fn(e,t,a,i){if(i===null)e.removeAttribute(a);else{switch(typeof i){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(a);return}e.setAttributeNS(t,a,""+i)}}function fn(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function sf(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function kp(e){var t=sf(e)?"checked":"value",a=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),i=""+e[t];if(!e.hasOwnProperty(t)&&typeof a<"u"&&typeof a.get=="function"&&typeof a.set=="function"){var r=a.get,o=a.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return r.call(this)},set:function(m){i=""+m,o.call(this,m)}}),Object.defineProperty(e,t,{enumerable:a.enumerable}),{getValue:function(){return i},setValue:function(m){i=""+m},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function xr(e){e._valueTracker||(e._valueTracker=kp(e))}function of(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var a=t.getValue(),i="";return e&&(i=sf(e)?e.checked?"true":"false":e.value),e=i,e!==a?(t.setValue(e),!0):!1}function _r(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 Gp=/[\n"\\]/g;function dn(e){return e.replace(Gp,function(t){return"\\"+t.charCodeAt(0).toString(16)+" "})}function Iu(e,t,a,i,r,o,m,E){e.name="",m!=null&&typeof m!="function"&&typeof m!="symbol"&&typeof m!="boolean"?e.type=m:e.removeAttribute("type"),t!=null?m==="number"?(t===0&&e.value===""||e.value!=t)&&(e.value=""+fn(t)):e.value!==""+fn(t)&&(e.value=""+fn(t)):m!=="submit"&&m!=="reset"||e.removeAttribute("value"),t!=null?ec(e,m,fn(t)):a!=null?ec(e,m,fn(a)):i!=null&&e.removeAttribute("value"),r==null&&o!=null&&(e.defaultChecked=!!o),r!=null&&(e.checked=r&&typeof r!="function"&&typeof r!="symbol"),E!=null&&typeof E!="function"&&typeof E!="symbol"&&typeof E!="boolean"?e.name=""+fn(E):e.removeAttribute("name")}function ff(e,t,a,i,r,o,m,E){if(o!=null&&typeof o!="function"&&typeof o!="symbol"&&typeof o!="boolean"&&(e.type=o),t!=null||a!=null){if(!(o!=="submit"&&o!=="reset"||t!=null))return;a=a!=null?""+fn(a):"",t=t!=null?""+fn(t):a,E||t===e.value||(e.value=t),e.defaultValue=t}i=i??r,i=typeof i!="function"&&typeof i!="symbol"&&!!i,e.checked=E?e.checked:!!i,e.defaultChecked=!!i,m!=null&&typeof m!="function"&&typeof m!="symbol"&&typeof m!="boolean"&&(e.name=m)}function ec(e,t,a){t==="number"&&_r(e.ownerDocument)===e||e.defaultValue===""+a||(e.defaultValue=""+a)}function xl(e,t,a,i){if(e=e.options,t){t={};for(var r=0;r<a.length;r++)t["$"+a[r]]=!0;for(a=0;a<e.length;a++)r=t.hasOwnProperty("$"+e[a].value),e[a].selected!==r&&(e[a].selected=r),r&&i&&(e[a].defaultSelected=!0)}else{for(a=""+fn(a),t=null,r=0;r<e.length;r++){if(e[r].value===a){e[r].selected=!0,i&&(e[r].defaultSelected=!0);return}t!==null||e[r].disabled||(t=e[r])}t!==null&&(t.selected=!0)}}function df(e,t,a){if(t!=null&&(t=""+fn(t),t!==e.value&&(e.value=t),a==null)){e.defaultValue!==t&&(e.defaultValue=t);return}e.defaultValue=a!=null?""+fn(a):""}function hf(e,t,a,i){if(t==null){if(i!=null){if(a!=null)throw Error(s(92));if(te(i)){if(1<i.length)throw Error(s(93));i=i[0]}a=i}a==null&&(a=""),t=a}a=fn(t),e.defaultValue=a,i=e.textContent,i===a&&i!==""&&i!==null&&(e.value=i)}function _l(e,t){if(t){var a=e.firstChild;if(a&&a===e.lastChild&&a.nodeType===3){a.nodeValue=t;return}}e.textContent=t}var Xp=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 mf(e,t,a){var i=t.indexOf("--")===0;a==null||typeof a=="boolean"||a===""?i?e.setProperty(t,""):t==="float"?e.cssFloat="":e[t]="":i?e.setProperty(t,a):typeof a!="number"||a===0||Xp.has(t)?t==="float"?e.cssFloat=a:e[t]=(""+a).trim():e[t]=a+"px"}function yf(e,t,a){if(t!=null&&typeof t!="object")throw Error(s(62));if(e=e.style,a!=null){for(var i in a)!a.hasOwnProperty(i)||t!=null&&t.hasOwnProperty(i)||(i.indexOf("--")===0?e.setProperty(i,""):i==="float"?e.cssFloat="":e[i]="");for(var r in t)i=t[r],t.hasOwnProperty(r)&&a[r]!==i&&mf(e,r,i)}else for(var o in t)t.hasOwnProperty(o)&&mf(e,o,t[o])}function tc(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 Qp=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"]]),Zp=/^[\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 Rr(e){return Zp.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}var nc=null;function ac(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Rl=null,Tl=null;function pf(e){var t=wt(e);if(t&&(e=t.stateNode)){var a=e[ve]||null;e:switch(e=t.stateNode,t.type){case"input":if(Iu(e,a.value,a.defaultValue,a.defaultValue,a.checked,a.defaultChecked,a.type,a.name),t=a.name,a.type==="radio"&&t!=null){for(a=e;a.parentNode;)a=a.parentNode;for(a=a.querySelectorAll('input[name="'+dn(""+t)+'"][type="radio"]'),t=0;t<a.length;t++){var i=a[t];if(i!==e&&i.form===e.form){var r=i[ve]||null;if(!r)throw Error(s(90));Iu(i,r.value,r.defaultValue,r.defaultValue,r.checked,r.defaultChecked,r.type,r.name)}}for(t=0;t<a.length;t++)i=a[t],i.form===e.form&&of(i)}break e;case"textarea":df(e,a.value,a.defaultValue);break e;case"select":t=a.value,t!=null&&xl(e,!!a.multiple,t,!1)}}}var lc=!1;function vf(e,t,a){if(lc)return e(t,a);lc=!0;try{var i=e(t);return i}finally{if(lc=!1,(Rl!==null||Tl!==null)&&(uu(),Rl&&(t=Rl,e=Tl,Tl=Rl=null,pf(t),e)))for(t=0;t<e.length;t++)pf(e[t])}}function si(e,t){var a=e.stateNode;if(a===null)return null;var i=a[ve]||null;if(i===null)return null;a=i[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":(i=!i.disabled)||(e=e.type,i=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!i;break e;default:e=!1}if(e)return null;if(a&&typeof a!="function")throw Error(s(231,t,typeof a));return a}var ic=!1;if($t)try{var oi={};Object.defineProperty(oi,"passive",{get:function(){ic=!0}}),window.addEventListener("test",oi,oi),window.removeEventListener("test",oi,oi)}catch{ic=!1}var ya=null,rc=null,Tr=null;function gf(){if(Tr)return Tr;var e,t=rc,a=t.length,i,r="value"in ya?ya.value:ya.textContent,o=r.length;for(e=0;e<a&&t[e]===r[e];e++);var m=a-e;for(i=1;i<=m&&t[a-i]===r[o-i];i++);return Tr=r.slice(e,1<i?1-i:void 0)}function Nr(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 Cr(){return!0}function Ef(){return!1}function Ft(e){function t(a,i,r,o,m){this._reactName=a,this._targetInst=r,this.type=i,this.nativeEvent=o,this.target=m,this.currentTarget=null;for(var E in e)e.hasOwnProperty(E)&&(a=e[E],this[E]=a?a(o):o[E]);return this.isDefaultPrevented=(o.defaultPrevented!=null?o.defaultPrevented:o.returnValue===!1)?Cr:Ef,this.isPropagationStopped=Ef,this}return I(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var a=this.nativeEvent;a&&(a.preventDefault?a.preventDefault():typeof a.returnValue!="unknown"&&(a.returnValue=!1),this.isDefaultPrevented=Cr)},stopPropagation:function(){var a=this.nativeEvent;a&&(a.stopPropagation?a.stopPropagation():typeof a.cancelBubble!="unknown"&&(a.cancelBubble=!0),this.isPropagationStopped=Cr)},persist:function(){},isPersistent:Cr}),t}var Ka={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},jr=Ft(Ka),fi=I({},Ka,{view:0,detail:0}),Kp=Ft(fi),uc,cc,di,Or=I({},fi,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:oc,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!==di&&(di&&e.type==="mousemove"?(uc=e.screenX-di.screenX,cc=e.screenY-di.screenY):cc=uc=0,di=e),uc)},movementY:function(e){return"movementY"in e?e.movementY:cc}}),bf=Ft(Or),$p=I({},Or,{dataTransfer:0}),Fp=Ft($p),Jp=I({},fi,{relatedTarget:0}),sc=Ft(Jp),Pp=I({},Ka,{animationName:0,elapsedTime:0,pseudoElement:0}),Wp=Ft(Pp),Ip=I({},Ka,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),ev=Ft(Ip),tv=I({},Ka,{data:0}),Sf=Ft(tv),nv={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},av={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"},lv={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function iv(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=lv[e])?!!t[e]:!1}function oc(){return iv}var rv=I({},fi,{key:function(e){if(e.key){var t=nv[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=Nr(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?av[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:oc,charCode:function(e){return e.type==="keypress"?Nr(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?Nr(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),uv=Ft(rv),cv=I({},Or,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),xf=Ft(cv),sv=I({},fi,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:oc}),ov=Ft(sv),fv=I({},Ka,{propertyName:0,elapsedTime:0,pseudoElement:0}),dv=Ft(fv),hv=I({},Or,{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}),mv=Ft(hv),yv=I({},Ka,{newState:0,oldState:0}),pv=Ft(yv),vv=[9,13,27,32],fc=$t&&"CompositionEvent"in window,hi=null;$t&&"documentMode"in document&&(hi=document.documentMode);var gv=$t&&"TextEvent"in window&&!hi,_f=$t&&(!fc||hi&&8<hi&&11>=hi),Rf=" ",Tf=!1;function Nf(e,t){switch(e){case"keyup":return vv.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Cf(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Nl=!1;function Ev(e,t){switch(e){case"compositionend":return Cf(t);case"keypress":return t.which!==32?null:(Tf=!0,Rf);case"textInput":return e=t.data,e===Rf&&Tf?null:e;default:return null}}function bv(e,t){if(Nl)return e==="compositionend"||!fc&&Nf(e,t)?(e=gf(),Tr=rc=ya=null,Nl=!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 _f&&t.locale!=="ko"?null:t.data;default:return null}}var Sv={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 jf(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!Sv[e.type]:t==="textarea"}function Of(e,t,a,i){Rl?Tl?Tl.push(i):Tl=[i]:Rl=i,t=du(t,"onChange"),0<t.length&&(a=new jr("onChange","change",null,a,i),e.push({event:a,listeners:t}))}var mi=null,yi=null;function xv(e){tm(e,0)}function Dr(e){var t=Kn(e);if(of(t))return e}function Df(e,t){if(e==="change")return t}var wf=!1;if($t){var dc;if($t){var hc="oninput"in document;if(!hc){var Af=document.createElement("div");Af.setAttribute("oninput","return;"),hc=typeof Af.oninput=="function"}dc=hc}else dc=!1;wf=dc&&(!document.documentMode||9<document.documentMode)}function Mf(){mi&&(mi.detachEvent("onpropertychange",zf),yi=mi=null)}function zf(e){if(e.propertyName==="value"&&Dr(yi)){var t=[];Of(t,yi,e,ac(e)),vf(xv,t)}}function _v(e,t,a){e==="focusin"?(Mf(),mi=t,yi=a,mi.attachEvent("onpropertychange",zf)):e==="focusout"&&Mf()}function Rv(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return Dr(yi)}function Tv(e,t){if(e==="click")return Dr(t)}function Nv(e,t){if(e==="input"||e==="change")return Dr(t)}function Cv(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Wt=typeof Object.is=="function"?Object.is:Cv;function pi(e,t){if(Wt(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var a=Object.keys(e),i=Object.keys(t);if(a.length!==i.length)return!1;for(i=0;i<a.length;i++){var r=a[i];if(!Zt.call(t,r)||!Wt(e[r],t[r]))return!1}return!0}function Lf(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function Uf(e,t){var a=Lf(e);e=0;for(var i;a;){if(a.nodeType===3){if(i=e+a.textContent.length,e<=t&&i>=t)return{node:a,offset:t-e};e=i}e:{for(;a;){if(a.nextSibling){a=a.nextSibling;break e}a=a.parentNode}a=void 0}a=Lf(a)}}function Hf(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Hf(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Bf(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=_r(e.document);t instanceof e.HTMLIFrameElement;){try{var a=typeof t.contentWindow.location.href=="string"}catch{a=!1}if(a)e=t.contentWindow;else break;t=_r(e.document)}return t}function mc(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 jv(e,t){var a=Bf(t);t=e.focusedElem;var i=e.selectionRange;if(a!==t&&t&&t.ownerDocument&&Hf(t.ownerDocument.documentElement,t)){if(i!==null&&mc(t)){if(e=i.start,a=i.end,a===void 0&&(a=e),"selectionStart"in t)t.selectionStart=e,t.selectionEnd=Math.min(a,t.value.length);else if(a=(e=t.ownerDocument||document)&&e.defaultView||window,a.getSelection){a=a.getSelection();var r=t.textContent.length,o=Math.min(i.start,r);i=i.end===void 0?o:Math.min(i.end,r),!a.extend&&o>i&&(r=i,i=o,o=r),r=Uf(t,o);var m=Uf(t,i);r&&m&&(a.rangeCount!==1||a.anchorNode!==r.node||a.anchorOffset!==r.offset||a.focusNode!==m.node||a.focusOffset!==m.offset)&&(e=e.createRange(),e.setStart(r.node,r.offset),a.removeAllRanges(),o>i?(a.addRange(e),a.extend(m.node,m.offset)):(e.setEnd(m.node,m.offset),a.addRange(e)))}}for(e=[],a=t;a=a.parentNode;)a.nodeType===1&&e.push({element:a,left:a.scrollLeft,top:a.scrollTop});for(typeof t.focus=="function"&&t.focus(),t=0;t<e.length;t++)a=e[t],a.element.scrollLeft=a.left,a.element.scrollTop=a.top}}var Ov=$t&&"documentMode"in document&&11>=document.documentMode,Cl=null,yc=null,vi=null,pc=!1;function qf(e,t,a){var i=a.window===a?a.document:a.nodeType===9?a:a.ownerDocument;pc||Cl==null||Cl!==_r(i)||(i=Cl,"selectionStart"in i&&mc(i)?i={start:i.selectionStart,end:i.selectionEnd}:(i=(i.ownerDocument&&i.ownerDocument.defaultView||window).getSelection(),i={anchorNode:i.anchorNode,anchorOffset:i.anchorOffset,focusNode:i.focusNode,focusOffset:i.focusOffset}),vi&&pi(vi,i)||(vi=i,i=du(yc,"onSelect"),0<i.length&&(t=new jr("onSelect","select",null,t,a),e.push({event:t,listeners:i}),t.target=Cl)))}function $a(e,t){var a={};return a[e.toLowerCase()]=t.toLowerCase(),a["Webkit"+e]="webkit"+t,a["Moz"+e]="moz"+t,a}var jl={animationend:$a("Animation","AnimationEnd"),animationiteration:$a("Animation","AnimationIteration"),animationstart:$a("Animation","AnimationStart"),transitionrun:$a("Transition","TransitionRun"),transitionstart:$a("Transition","TransitionStart"),transitioncancel:$a("Transition","TransitionCancel"),transitionend:$a("Transition","TransitionEnd")},vc={},Vf={};$t&&(Vf=document.createElement("div").style,"AnimationEvent"in window||(delete jl.animationend.animation,delete jl.animationiteration.animation,delete jl.animationstart.animation),"TransitionEvent"in window||delete jl.transitionend.transition);function Fa(e){if(vc[e])return vc[e];if(!jl[e])return e;var t=jl[e],a;for(a in t)if(t.hasOwnProperty(a)&&a in Vf)return vc[e]=t[a];return e}var Yf=Fa("animationend"),kf=Fa("animationiteration"),Gf=Fa("animationstart"),Dv=Fa("transitionrun"),wv=Fa("transitionstart"),Av=Fa("transitioncancel"),Xf=Fa("transitionend"),Qf=new Map,Zf="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 Cn(e,t){Qf.set(e,t),qe(t,[e])}var hn=[],Ol=0,gc=0;function wr(){for(var e=Ol,t=gc=Ol=0;t<e;){var a=hn[t];hn[t++]=null;var i=hn[t];hn[t++]=null;var r=hn[t];hn[t++]=null;var o=hn[t];if(hn[t++]=null,i!==null&&r!==null){var m=i.pending;m===null?r.next=r:(r.next=m.next,m.next=r),i.pending=r}o!==0&&Kf(a,r,o)}}function Ar(e,t,a,i){hn[Ol++]=e,hn[Ol++]=t,hn[Ol++]=a,hn[Ol++]=i,gc|=i,e.lanes|=i,e=e.alternate,e!==null&&(e.lanes|=i)}function Ec(e,t,a,i){return Ar(e,t,a,i),Mr(e)}function pa(e,t){return Ar(e,null,null,t),Mr(e)}function Kf(e,t,a){e.lanes|=a;var i=e.alternate;i!==null&&(i.lanes|=a);for(var r=!1,o=e.return;o!==null;)o.childLanes|=a,i=o.alternate,i!==null&&(i.childLanes|=a),o.tag===22&&(e=o.stateNode,e===null||e._visibility&1||(r=!0)),e=o,o=o.return;r&&t!==null&&e.tag===3&&(o=e.stateNode,r=31-Tt(a),o=o.hiddenUpdates,e=o[r],e===null?o[r]=[t]:e.push(t),t.lane=a|536870912)}function Mr(e){if(50<ki)throw ki=0,Ts=null,Error(s(185));for(var t=e.return;t!==null;)e=t,t=e.return;return e.tag===3?e.stateNode:null}var Dl={},$f=new WeakMap;function mn(e,t){if(typeof e=="object"&&e!==null){var a=$f.get(e);return a!==void 0?a:(t={value:e,source:t,stack:ce(t)},$f.set(e,t),t)}return{value:e,source:t,stack:ce(t)}}var wl=[],Al=0,zr=null,Lr=0,yn=[],pn=0,Ja=null,Jn=1,Pn="";function Pa(e,t){wl[Al++]=Lr,wl[Al++]=zr,zr=e,Lr=t}function Ff(e,t,a){yn[pn++]=Jn,yn[pn++]=Pn,yn[pn++]=Ja,Ja=e;var i=Jn;e=Pn;var r=32-Tt(i)-1;i&=~(1<<r),a+=1;var o=32-Tt(t)+r;if(30<o){var m=r-r%5;o=(i&(1<<m)-1).toString(32),i>>=m,r-=m,Jn=1<<32-Tt(t)+r|a<<r|i,Pn=o+e}else Jn=1<<o|a<<r|i,Pn=e}function bc(e){e.return!==null&&(Pa(e,1),Ff(e,1,0))}function Sc(e){for(;e===zr;)zr=wl[--Al],wl[Al]=null,Lr=wl[--Al],wl[Al]=null;for(;e===Ja;)Ja=yn[--pn],yn[pn]=null,Pn=yn[--pn],yn[pn]=null,Jn=yn[--pn],yn[pn]=null}var Gt=null,At=null,ke=!1,jn=null,Un=!1,xc=Error(s(519));function Wa(e){var t=Error(s(418,""));throw bi(mn(t,e)),xc}function Jf(e){var t=e.stateNode,a=e.type,i=e.memoizedProps;switch(t[fe]=e,t[ve]=i,a){case"dialog":Ue("cancel",t),Ue("close",t);break;case"iframe":case"object":case"embed":Ue("load",t);break;case"video":case"audio":for(a=0;a<Xi.length;a++)Ue(Xi[a],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),ff(t,i.value,i.defaultValue,i.checked,i.defaultChecked,i.type,i.name,!0),xr(t);break;case"select":Ue("invalid",t);break;case"textarea":Ue("invalid",t),hf(t,i.value,i.defaultValue,i.children),xr(t)}a=i.children,typeof a!="string"&&typeof a!="number"&&typeof a!="bigint"||t.textContent===""+a||i.suppressHydrationWarning===!0||im(t.textContent,a)?(i.popover!=null&&(Ue("beforetoggle",t),Ue("toggle",t)),i.onScroll!=null&&Ue("scroll",t),i.onScrollEnd!=null&&Ue("scrollend",t),i.onClick!=null&&(t.onclick=hu),t=!0):t=!1,t||Wa(e)}function Pf(e){for(Gt=e.return;Gt;)switch(Gt.tag){case 3:case 27:Un=!0;return;case 5:case 13:Un=!1;return;default:Gt=Gt.return}}function gi(e){if(e!==Gt)return!1;if(!ke)return Pf(e),ke=!0,!1;var t=!1,a;if((a=e.tag!==3&&e.tag!==27)&&((a=e.tag===5)&&(a=e.type,a=!(a!=="form"&&a!=="button")||ks(e.type,e.memoizedProps)),a=!a),a&&(t=!0),t&&At&&Wa(e),Pf(e),e.tag===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(s(317));e:{for(e=e.nextSibling,t=0;e;){if(e.nodeType===8)if(a=e.data,a==="/$"){if(t===0){At=Dn(e.nextSibling);break e}t--}else a!=="$"&&a!=="$!"&&a!=="$?"||t++;e=e.nextSibling}At=null}}else At=Gt?Dn(e.stateNode.nextSibling):null;return!0}function Ei(){At=Gt=null,ke=!1}function bi(e){jn===null?jn=[e]:jn.push(e)}var Si=Error(s(460)),Wf=Error(s(474)),_c={then:function(){}};function If(e){return e=e.status,e==="fulfilled"||e==="rejected"}function Ur(){}function ed(e,t,a){switch(a=e[a],a===void 0?e.push(t):a!==t&&(t.then(Ur,Ur),t=a),t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,e===Si?Error(s(483)):e;default:if(typeof t.status=="string")t.then(Ur,Ur);else{if(e=tt,e!==null&&100<e.shellSuspendCounter)throw Error(s(482));e=t,e.status="pending",e.then(function(i){if(t.status==="pending"){var r=t;r.status="fulfilled",r.value=i}},function(i){if(t.status==="pending"){var r=t;r.status="rejected",r.reason=i}})}switch(t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,e===Si?Error(s(483)):e}throw xi=t,Si}}var xi=null;function td(){if(xi===null)throw Error(s(459));var e=xi;return xi=null,e}var Ml=null,_i=0;function Hr(e){var t=_i;return _i+=1,Ml===null&&(Ml=[]),ed(Ml,e,t)}function Ri(e,t){t=t.props.ref,e.ref=t!==void 0?t:null}function Br(e,t){throw t.$$typeof===f?Error(s(525)):(e=Object.prototype.toString.call(t),Error(s(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e)))}function nd(e){var t=e._init;return t(e._payload)}function ad(e){function t(w,j){if(e){var z=w.deletions;z===null?(w.deletions=[j],w.flags|=16):z.push(j)}}function a(w,j){if(!e)return null;for(;j!==null;)t(w,j),j=j.sibling;return null}function i(w){for(var j=new Map;w!==null;)w.key!==null?j.set(w.key,w):j.set(w.index,w),w=w.sibling;return j}function r(w,j){return w=ja(w,j),w.index=0,w.sibling=null,w}function o(w,j,z){return w.index=z,e?(z=w.alternate,z!==null?(z=z.index,z<j?(w.flags|=33554434,j):z):(w.flags|=33554434,j)):(w.flags|=1048576,j)}function m(w){return e&&w.alternate===null&&(w.flags|=33554434),w}function E(w,j,z,Z){return j===null||j.tag!==6?(j=vs(z,w.mode,Z),j.return=w,j):(j=r(j,z),j.return=w,j)}function x(w,j,z,Z){var ue=z.type;return ue===v?k(w,j,z.props.children,Z,z.key):j!==null&&(j.elementType===ue||typeof ue=="object"&&ue!==null&&ue.$$typeof===q&&nd(ue)===j.type)?(j=r(j,z.props),Ri(j,z),j.return=w,j):(j=nu(z.type,z.key,z.props,null,w.mode,Z),Ri(j,z),j.return=w,j)}function D(w,j,z,Z){return j===null||j.tag!==4||j.stateNode.containerInfo!==z.containerInfo||j.stateNode.implementation!==z.implementation?(j=gs(z,w.mode,Z),j.return=w,j):(j=r(j,z.children||[]),j.return=w,j)}function k(w,j,z,Z,ue){return j===null||j.tag!==7?(j=cl(z,w.mode,Z,ue),j.return=w,j):(j=r(j,z),j.return=w,j)}function $(w,j,z){if(typeof j=="string"&&j!==""||typeof j=="number"||typeof j=="bigint")return j=vs(""+j,w.mode,z),j.return=w,j;if(typeof j=="object"&&j!==null){switch(j.$$typeof){case d:return z=nu(j.type,j.key,j.props,null,w.mode,z),Ri(z,j),z.return=w,z;case y:return j=gs(j,w.mode,z),j.return=w,j;case q:var Z=j._init;return j=Z(j._payload),$(w,j,z)}if(te(j)||N(j))return j=cl(j,w.mode,z,null),j.return=w,j;if(typeof j.then=="function")return $(w,Hr(j),z);if(j.$$typeof===_)return $(w,Ir(w,j),z);Br(w,j)}return null}function L(w,j,z,Z){var ue=j!==null?j.key:null;if(typeof z=="string"&&z!==""||typeof z=="number"||typeof z=="bigint")return ue!==null?null:E(w,j,""+z,Z);if(typeof z=="object"&&z!==null){switch(z.$$typeof){case d:return z.key===ue?x(w,j,z,Z):null;case y:return z.key===ue?D(w,j,z,Z):null;case q:return ue=z._init,z=ue(z._payload),L(w,j,z,Z)}if(te(z)||N(z))return ue!==null?null:k(w,j,z,Z,null);if(typeof z.then=="function")return L(w,j,Hr(z),Z);if(z.$$typeof===_)return L(w,j,Ir(w,z),Z);Br(w,z)}return null}function V(w,j,z,Z,ue){if(typeof Z=="string"&&Z!==""||typeof Z=="number"||typeof Z=="bigint")return w=w.get(z)||null,E(j,w,""+Z,ue);if(typeof Z=="object"&&Z!==null){switch(Z.$$typeof){case d:return w=w.get(Z.key===null?z:Z.key)||null,x(j,w,Z,ue);case y:return w=w.get(Z.key===null?z:Z.key)||null,D(j,w,Z,ue);case q:var we=Z._init;return Z=we(Z._payload),V(w,j,z,Z,ue)}if(te(Z)||N(Z))return w=w.get(z)||null,k(j,w,Z,ue,null);if(typeof Z.then=="function")return V(w,j,z,Hr(Z),ue);if(Z.$$typeof===_)return V(w,j,z,Ir(j,Z),ue);Br(j,Z)}return null}function he(w,j,z,Z){for(var ue=null,we=null,pe=j,Se=j=0,jt=null;pe!==null&&Se<z.length;Se++){pe.index>Se?(jt=pe,pe=null):jt=pe.sibling;var Ge=L(w,pe,z[Se],Z);if(Ge===null){pe===null&&(pe=jt);break}e&&pe&&Ge.alternate===null&&t(w,pe),j=o(Ge,j,Se),we===null?ue=Ge:we.sibling=Ge,we=Ge,pe=jt}if(Se===z.length)return a(w,pe),ke&&Pa(w,Se),ue;if(pe===null){for(;Se<z.length;Se++)pe=$(w,z[Se],Z),pe!==null&&(j=o(pe,j,Se),we===null?ue=pe:we.sibling=pe,we=pe);return ke&&Pa(w,Se),ue}for(pe=i(pe);Se<z.length;Se++)jt=V(pe,w,Se,z[Se],Z),jt!==null&&(e&&jt.alternate!==null&&pe.delete(jt.key===null?Se:jt.key),j=o(jt,j,Se),we===null?ue=jt:we.sibling=jt,we=jt);return e&&pe.forEach(function(La){return t(w,La)}),ke&&Pa(w,Se),ue}function Te(w,j,z,Z){if(z==null)throw Error(s(151));for(var ue=null,we=null,pe=j,Se=j=0,jt=null,Ge=z.next();pe!==null&&!Ge.done;Se++,Ge=z.next()){pe.index>Se?(jt=pe,pe=null):jt=pe.sibling;var La=L(w,pe,Ge.value,Z);if(La===null){pe===null&&(pe=jt);break}e&&pe&&La.alternate===null&&t(w,pe),j=o(La,j,Se),we===null?ue=La:we.sibling=La,we=La,pe=jt}if(Ge.done)return a(w,pe),ke&&Pa(w,Se),ue;if(pe===null){for(;!Ge.done;Se++,Ge=z.next())Ge=$(w,Ge.value,Z),Ge!==null&&(j=o(Ge,j,Se),we===null?ue=Ge:we.sibling=Ge,we=Ge);return ke&&Pa(w,Se),ue}for(pe=i(pe);!Ge.done;Se++,Ge=z.next())Ge=V(pe,w,Se,Ge.value,Z),Ge!==null&&(e&&Ge.alternate!==null&&pe.delete(Ge.key===null?Se:Ge.key),j=o(Ge,j,Se),we===null?ue=Ge:we.sibling=Ge,we=Ge);return e&&pe.forEach(function(Zg){return t(w,Zg)}),ke&&Pa(w,Se),ue}function ht(w,j,z,Z){if(typeof z=="object"&&z!==null&&z.type===v&&z.key===null&&(z=z.props.children),typeof z=="object"&&z!==null){switch(z.$$typeof){case d:e:{for(var ue=z.key;j!==null;){if(j.key===ue){if(ue=z.type,ue===v){if(j.tag===7){a(w,j.sibling),Z=r(j,z.props.children),Z.return=w,w=Z;break e}}else if(j.elementType===ue||typeof ue=="object"&&ue!==null&&ue.$$typeof===q&&nd(ue)===j.type){a(w,j.sibling),Z=r(j,z.props),Ri(Z,z),Z.return=w,w=Z;break e}a(w,j);break}else t(w,j);j=j.sibling}z.type===v?(Z=cl(z.props.children,w.mode,Z,z.key),Z.return=w,w=Z):(Z=nu(z.type,z.key,z.props,null,w.mode,Z),Ri(Z,z),Z.return=w,w=Z)}return m(w);case y:e:{for(ue=z.key;j!==null;){if(j.key===ue)if(j.tag===4&&j.stateNode.containerInfo===z.containerInfo&&j.stateNode.implementation===z.implementation){a(w,j.sibling),Z=r(j,z.children||[]),Z.return=w,w=Z;break e}else{a(w,j);break}else t(w,j);j=j.sibling}Z=gs(z,w.mode,Z),Z.return=w,w=Z}return m(w);case q:return ue=z._init,z=ue(z._payload),ht(w,j,z,Z)}if(te(z))return he(w,j,z,Z);if(N(z)){if(ue=N(z),typeof ue!="function")throw Error(s(150));return z=ue.call(z),Te(w,j,z,Z)}if(typeof z.then=="function")return ht(w,j,Hr(z),Z);if(z.$$typeof===_)return ht(w,j,Ir(w,z),Z);Br(w,z)}return typeof z=="string"&&z!==""||typeof z=="number"||typeof z=="bigint"?(z=""+z,j!==null&&j.tag===6?(a(w,j.sibling),Z=r(j,z),Z.return=w,w=Z):(a(w,j),Z=vs(z,w.mode,Z),Z.return=w,w=Z),m(w)):a(w,j)}return function(w,j,z,Z){try{_i=0;var ue=ht(w,j,z,Z);return Ml=null,ue}catch(pe){if(pe===Si)throw pe;var we=bn(29,pe,null,w.mode);return we.lanes=Z,we.return=w,we}finally{}}}var Ia=ad(!0),ld=ad(!1),zl=Ce(null),qr=Ce(0);function id(e,t){e=ca,Ee(qr,e),Ee(zl,t),ca=e|t.baseLanes}function Rc(){Ee(qr,ca),Ee(zl,zl.current)}function Tc(){ca=qr.current,Le(zl),Le(qr)}var vn=Ce(null),Hn=null;function va(e){var t=e.alternate;Ee(xt,xt.current&1),Ee(vn,e),Hn===null&&(t===null||zl.current!==null||t.memoizedState!==null)&&(Hn=e)}function rd(e){if(e.tag===22){if(Ee(xt,xt.current),Ee(vn,e),Hn===null){var t=e.alternate;t!==null&&t.memoizedState!==null&&(Hn=e)}}else ga()}function ga(){Ee(xt,xt.current),Ee(vn,vn.current)}function Wn(e){Le(vn),Hn===e&&(Hn=null),Le(xt)}var xt=Ce(0);function Vr(e){for(var t=e;t!==null;){if(t.tag===13){var a=t.memoizedState;if(a!==null&&(a=a.dehydrated,a===null||a.data==="$?"||a.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 Mv=typeof AbortController<"u"?AbortController:function(){var e=[],t=this.signal={aborted:!1,addEventListener:function(a,i){e.push(i)}};this.abort=function(){t.aborted=!0,e.forEach(function(a){return a()})}},zv=l.unstable_scheduleCallback,Lv=l.unstable_NormalPriority,_t={$$typeof:_,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function Nc(){return{controller:new Mv,data:new Map,refCount:0}}function Ti(e){e.refCount--,e.refCount===0&&zv(Lv,function(){e.controller.abort()})}var Ni=null,Cc=0,Ll=0,Ul=null;function Uv(e,t){if(Ni===null){var a=Ni=[];Cc=0,Ll=Ms(),Ul={status:"pending",value:void 0,then:function(i){a.push(i)}}}return Cc++,t.then(ud,ud),t}function ud(){if(--Cc===0&&Ni!==null){Ul!==null&&(Ul.status="fulfilled");var e=Ni;Ni=null,Ll=0,Ul=null;for(var t=0;t<e.length;t++)(0,e[t])()}}function Hv(e,t){var a=[],i={status:"pending",value:null,reason:null,then:function(r){a.push(r)}};return e.then(function(){i.status="fulfilled",i.value=t;for(var r=0;r<a.length;r++)(0,a[r])(t)},function(r){for(i.status="rejected",i.reason=r,r=0;r<a.length;r++)(0,a[r])(void 0)}),i}var cd=X.S;X.S=function(e,t){typeof t=="object"&&t!==null&&typeof t.then=="function"&&Uv(e,t),cd!==null&&cd(e,t)};var el=Ce(null);function jc(){var e=el.current;return e!==null?e:tt.pooledCache}function Yr(e,t){t===null?Ee(el,el.current):Ee(el,t.pool)}function sd(){var e=jc();return e===null?null:{parent:_t._currentValue,pool:e}}var Ea=0,Oe=null,$e=null,gt=null,kr=!1,Hl=!1,tl=!1,Gr=0,Ci=0,Bl=null,Bv=0;function pt(){throw Error(s(321))}function Oc(e,t){if(t===null)return!1;for(var a=0;a<t.length&&a<e.length;a++)if(!Wt(e[a],t[a]))return!1;return!0}function Dc(e,t,a,i,r,o){return Ea=o,Oe=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,X.H=e===null||e.memoizedState===null?nl:ba,tl=!1,o=a(i,r),tl=!1,Hl&&(o=fd(t,a,i,r)),od(e),o}function od(e){X.H=Bn;var t=$e!==null&&$e.next!==null;if(Ea=0,gt=$e=Oe=null,kr=!1,Ci=0,Bl=null,t)throw Error(s(300));e===null||Nt||(e=e.dependencies,e!==null&&Wr(e)&&(Nt=!0))}function fd(e,t,a,i){Oe=e;var r=0;do{if(Hl&&(Bl=null),Ci=0,Hl=!1,25<=r)throw Error(s(301));if(r+=1,gt=$e=null,e.updateQueue!=null){var o=e.updateQueue;o.lastEffect=null,o.events=null,o.stores=null,o.memoCache!=null&&(o.memoCache.index=0)}X.H=al,o=t(a,i)}while(Hl);return o}function qv(){var e=X.H,t=e.useState()[0];return t=typeof t.then=="function"?ji(t):t,e=e.useState()[0],($e!==null?$e.memoizedState:null)!==e&&(Oe.flags|=1024),t}function wc(){var e=Gr!==0;return Gr=0,e}function Ac(e,t,a){t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~a}function Mc(e){if(kr){for(e=e.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}kr=!1}Ea=0,gt=$e=Oe=null,Hl=!1,Ci=Gr=0,Bl=null}function Jt(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return gt===null?Oe.memoizedState=gt=e:gt=gt.next=e,gt}function Et(){if($e===null){var e=Oe.alternate;e=e!==null?e.memoizedState:null}else e=$e.next;var t=gt===null?Oe.memoizedState:gt.next;if(t!==null)gt=t,$e=e;else{if(e===null)throw Oe.alternate===null?Error(s(467)):Error(s(310));$e=e,e={memoizedState:$e.memoizedState,baseState:$e.baseState,baseQueue:$e.baseQueue,queue:$e.queue,next:null},gt===null?Oe.memoizedState=gt=e:gt=gt.next=e}return gt}var Xr;Xr=function(){return{lastEffect:null,events:null,stores:null,memoCache:null}};function ji(e){var t=Ci;return Ci+=1,Bl===null&&(Bl=[]),e=ed(Bl,e,t),t=Oe,(gt===null?t.memoizedState:gt.next)===null&&(t=t.alternate,X.H=t===null||t.memoizedState===null?nl:ba),e}function Qr(e){if(e!==null&&typeof e=="object"){if(typeof e.then=="function")return ji(e);if(e.$$typeof===_)return qt(e)}throw Error(s(438,String(e)))}function zc(e){var t=null,a=Oe.updateQueue;if(a!==null&&(t=a.memoCache),t==null){var i=Oe.alternate;i!==null&&(i=i.updateQueue,i!==null&&(i=i.memoCache,i!=null&&(t={data:i.data.map(function(r){return r.slice()}),index:0})))}if(t==null&&(t={data:[],index:0}),a===null&&(a=Xr(),Oe.updateQueue=a),a.memoCache=t,a=t.data[t.index],a===void 0)for(a=t.data[t.index]=Array(e),i=0;i<e;i++)a[i]=J;return t.index++,a}function In(e,t){return typeof t=="function"?t(e):t}function Zr(e){var t=Et();return Lc(t,$e,e)}function Lc(e,t,a){var i=e.queue;if(i===null)throw Error(s(311));i.lastRenderedReducer=a;var r=e.baseQueue,o=i.pending;if(o!==null){if(r!==null){var m=r.next;r.next=o.next,o.next=m}t.baseQueue=r=o,i.pending=null}if(o=e.baseState,r===null)e.memoizedState=o;else{t=r.next;var E=m=null,x=null,D=t,k=!1;do{var $=D.lane&-536870913;if($!==D.lane?(Ve&$)===$:(Ea&$)===$){var L=D.revertLane;if(L===0)x!==null&&(x=x.next={lane:0,revertLane:0,action:D.action,hasEagerState:D.hasEagerState,eagerState:D.eagerState,next:null}),$===Ll&&(k=!0);else if((Ea&L)===L){D=D.next,L===Ll&&(k=!0);continue}else $={lane:0,revertLane:D.revertLane,action:D.action,hasEagerState:D.hasEagerState,eagerState:D.eagerState,next:null},x===null?(E=x=$,m=o):x=x.next=$,Oe.lanes|=L,Oa|=L;$=D.action,tl&&a(o,$),o=D.hasEagerState?D.eagerState:a(o,$)}else L={lane:$,revertLane:D.revertLane,action:D.action,hasEagerState:D.hasEagerState,eagerState:D.eagerState,next:null},x===null?(E=x=L,m=o):x=x.next=L,Oe.lanes|=$,Oa|=$;D=D.next}while(D!==null&&D!==t);if(x===null?m=o:x.next=E,!Wt(o,e.memoizedState)&&(Nt=!0,k&&(a=Ul,a!==null)))throw a;e.memoizedState=o,e.baseState=m,e.baseQueue=x,i.lastRenderedState=o}return r===null&&(i.lanes=0),[e.memoizedState,i.dispatch]}function Uc(e){var t=Et(),a=t.queue;if(a===null)throw Error(s(311));a.lastRenderedReducer=e;var i=a.dispatch,r=a.pending,o=t.memoizedState;if(r!==null){a.pending=null;var m=r=r.next;do o=e(o,m.action),m=m.next;while(m!==r);Wt(o,t.memoizedState)||(Nt=!0),t.memoizedState=o,t.baseQueue===null&&(t.baseState=o),a.lastRenderedState=o}return[o,i]}function dd(e,t,a){var i=Oe,r=Et(),o=ke;if(o){if(a===void 0)throw Error(s(407));a=a()}else a=t();var m=!Wt(($e||r).memoizedState,a);if(m&&(r.memoizedState=a,Nt=!0),r=r.queue,qc(yd.bind(null,i,r,e),[e]),r.getSnapshot!==t||m||gt!==null&>.memoizedState.tag&1){if(i.flags|=2048,ql(9,md.bind(null,i,r,a,t),{destroy:void 0},null),tt===null)throw Error(s(349));o||Ea&60||hd(i,t,a)}return a}function hd(e,t,a){e.flags|=16384,e={getSnapshot:t,value:a},t=Oe.updateQueue,t===null?(t=Xr(),Oe.updateQueue=t,t.stores=[e]):(a=t.stores,a===null?t.stores=[e]:a.push(e))}function md(e,t,a,i){t.value=a,t.getSnapshot=i,pd(t)&&vd(e)}function yd(e,t,a){return a(function(){pd(t)&&vd(e)})}function pd(e){var t=e.getSnapshot;e=e.value;try{var a=t();return!Wt(e,a)}catch{return!0}}function vd(e){var t=pa(e,2);t!==null&&Xt(t,e,2)}function Hc(e){var t=Jt();if(typeof e=="function"){var a=e;if(e=a(),tl){Nn(!0);try{a()}finally{Nn(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:In,lastRenderedState:e},t}function gd(e,t,a,i){return e.baseState=a,Lc(e,$e,typeof i=="function"?i:In)}function Vv(e,t,a,i,r){if(Fr(e))throw Error(s(485));if(e=t.action,e!==null){var o={payload:r,action:e,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(m){o.listeners.push(m)}};X.T!==null?a(!0):o.isTransition=!1,i(o),a=t.pending,a===null?(o.next=t.pending=o,Ed(t,o)):(o.next=a.next,t.pending=a.next=o)}}function Ed(e,t){var a=t.action,i=t.payload,r=e.state;if(t.isTransition){var o=X.T,m={};X.T=m;try{var E=a(r,i),x=X.S;x!==null&&x(m,E),bd(e,t,E)}catch(D){Bc(e,t,D)}finally{X.T=o}}else try{o=a(r,i),bd(e,t,o)}catch(D){Bc(e,t,D)}}function bd(e,t,a){a!==null&&typeof a=="object"&&typeof a.then=="function"?a.then(function(i){Sd(e,t,i)},function(i){return Bc(e,t,i)}):Sd(e,t,a)}function Sd(e,t,a){t.status="fulfilled",t.value=a,xd(t),e.state=a,t=e.pending,t!==null&&(a=t.next,a===t?e.pending=null:(a=a.next,t.next=a,Ed(e,a)))}function Bc(e,t,a){var i=e.pending;if(e.pending=null,i!==null){i=i.next;do t.status="rejected",t.reason=a,xd(t),t=t.next;while(t!==i)}e.action=null}function xd(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function _d(e,t){return t}function Rd(e,t){if(ke){var a=tt.formState;if(a!==null){e:{var i=Oe;if(ke){if(At){t:{for(var r=At,o=Un;r.nodeType!==8;){if(!o){r=null;break t}if(r=Dn(r.nextSibling),r===null){r=null;break t}}o=r.data,r=o==="F!"||o==="F"?r:null}if(r){At=Dn(r.nextSibling),i=r.data==="F!";break e}}Wa(i)}i=!1}i&&(t=a[0])}}return a=Jt(),a.memoizedState=a.baseState=t,i={pending:null,lanes:0,dispatch:null,lastRenderedReducer:_d,lastRenderedState:t},a.queue=i,a=kd.bind(null,Oe,i),i.dispatch=a,i=Hc(!1),o=Xc.bind(null,Oe,!1,i.queue),i=Jt(),r={state:t,dispatch:null,action:e,pending:null},i.queue=r,a=Vv.bind(null,Oe,r,o,a),r.dispatch=a,i.memoizedState=e,[t,a,!1]}function Td(e){var t=Et();return Nd(t,$e,e)}function Nd(e,t,a){t=Lc(e,t,_d)[0],e=Zr(In)[0],t=typeof t=="object"&&t!==null&&typeof t.then=="function"?ji(t):t;var i=Et(),r=i.queue,o=r.dispatch;return a!==i.memoizedState&&(Oe.flags|=2048,ql(9,Yv.bind(null,r,a),{destroy:void 0},null)),[t,o,e]}function Yv(e,t){e.action=t}function Cd(e){var t=Et(),a=$e;if(a!==null)return Nd(t,a,e);Et(),t=t.memoizedState,a=Et();var i=a.queue.dispatch;return a.memoizedState=e,[t,i,!1]}function ql(e,t,a,i){return e={tag:e,create:t,inst:a,deps:i,next:null},t=Oe.updateQueue,t===null&&(t=Xr(),Oe.updateQueue=t),a=t.lastEffect,a===null?t.lastEffect=e.next=e:(i=a.next,a.next=e,e.next=i,t.lastEffect=e),e}function jd(){return Et().memoizedState}function Kr(e,t,a,i){var r=Jt();Oe.flags|=e,r.memoizedState=ql(1|t,a,{destroy:void 0},i===void 0?null:i)}function $r(e,t,a,i){var r=Et();i=i===void 0?null:i;var o=r.memoizedState.inst;$e!==null&&i!==null&&Oc(i,$e.memoizedState.deps)?r.memoizedState=ql(t,a,o,i):(Oe.flags|=e,r.memoizedState=ql(1|t,a,o,i))}function Od(e,t){Kr(8390656,8,e,t)}function qc(e,t){$r(2048,8,e,t)}function Dd(e,t){return $r(4,2,e,t)}function wd(e,t){return $r(4,4,e,t)}function Ad(e,t){if(typeof t=="function"){e=e();var a=t(e);return function(){typeof a=="function"?a():t(null)}}if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function Md(e,t,a){a=a!=null?a.concat([e]):null,$r(4,4,Ad.bind(null,t,e),a)}function Vc(){}function zd(e,t){var a=Et();t=t===void 0?null:t;var i=a.memoizedState;return t!==null&&Oc(t,i[1])?i[0]:(a.memoizedState=[e,t],e)}function Ld(e,t){var a=Et();t=t===void 0?null:t;var i=a.memoizedState;if(t!==null&&Oc(t,i[1]))return i[0];if(i=e(),tl){Nn(!0);try{e()}finally{Nn(!1)}}return a.memoizedState=[i,t],i}function Yc(e,t,a){return a===void 0||Ea&1073741824?e.memoizedState=t:(e.memoizedState=a,e=Hh(),Oe.lanes|=e,Oa|=e,a)}function Ud(e,t,a,i){return Wt(a,t)?a:zl.current!==null?(e=Yc(e,a,i),Wt(e,t)||(Nt=!0),e):Ea&42?(e=Hh(),Oe.lanes|=e,Oa|=e,t):(Nt=!0,e.memoizedState=a)}function Hd(e,t,a,i,r){var o=P.p;P.p=o!==0&&8>o?o:8;var m=X.T,E={};X.T=E,Xc(e,!1,t,a);try{var x=r(),D=X.S;if(D!==null&&D(E,x),x!==null&&typeof x=="object"&&typeof x.then=="function"){var k=Hv(x,i);Oi(e,t,k,nn(e))}else Oi(e,t,i,nn(e))}catch($){Oi(e,t,{then:function(){},status:"rejected",reason:$},nn())}finally{P.p=o,X.T=m}}function kv(){}function kc(e,t,a,i){if(e.tag!==5)throw Error(s(476));var r=Bd(e).queue;Hd(e,r,t,ge,a===null?kv:function(){return qd(e),a(i)})}function Bd(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:In,lastRenderedState:ge},next:null};var a={};return t.next={memoizedState:a,baseState:a,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:In,lastRenderedState:a},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function qd(e){var t=Bd(e).next.queue;Oi(e,t,{},nn())}function Gc(){return qt(Fi)}function Vd(){return Et().memoizedState}function Yd(){return Et().memoizedState}function Gv(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var a=nn();e=_a(a);var i=Ra(t,e,a);i!==null&&(Xt(i,t,a),Ai(i,t,a)),t={cache:Nc()},e.payload=t;return}t=t.return}}function Xv(e,t,a){var i=nn();a={lane:i,revertLane:0,action:a,hasEagerState:!1,eagerState:null,next:null},Fr(e)?Gd(t,a):(a=Ec(e,t,a,i),a!==null&&(Xt(a,e,i),Xd(a,t,i)))}function kd(e,t,a){var i=nn();Oi(e,t,a,i)}function Oi(e,t,a,i){var r={lane:i,revertLane:0,action:a,hasEagerState:!1,eagerState:null,next:null};if(Fr(e))Gd(t,r);else{var o=e.alternate;if(e.lanes===0&&(o===null||o.lanes===0)&&(o=t.lastRenderedReducer,o!==null))try{var m=t.lastRenderedState,E=o(m,a);if(r.hasEagerState=!0,r.eagerState=E,Wt(E,m))return Ar(e,t,r,0),tt===null&&wr(),!1}catch{}finally{}if(a=Ec(e,t,r,i),a!==null)return Xt(a,e,i),Xd(a,t,i),!0}return!1}function Xc(e,t,a,i){if(i={lane:2,revertLane:Ms(),action:i,hasEagerState:!1,eagerState:null,next:null},Fr(e)){if(t)throw Error(s(479))}else t=Ec(e,a,i,2),t!==null&&Xt(t,e,2)}function Fr(e){var t=e.alternate;return e===Oe||t!==null&&t===Oe}function Gd(e,t){Hl=kr=!0;var a=e.pending;a===null?t.next=t:(t.next=a.next,a.next=t),e.pending=t}function Xd(e,t,a){if(a&4194176){var i=t.lanes;i&=e.pendingLanes,a|=i,t.lanes=a,me(e,a)}}var Bn={readContext:qt,use:Qr,useCallback:pt,useContext:pt,useEffect:pt,useImperativeHandle:pt,useLayoutEffect:pt,useInsertionEffect:pt,useMemo:pt,useReducer:pt,useRef:pt,useState:pt,useDebugValue:pt,useDeferredValue:pt,useTransition:pt,useSyncExternalStore:pt,useId:pt};Bn.useCacheRefresh=pt,Bn.useMemoCache=pt,Bn.useHostTransitionStatus=pt,Bn.useFormState=pt,Bn.useActionState=pt,Bn.useOptimistic=pt;var nl={readContext:qt,use:Qr,useCallback:function(e,t){return Jt().memoizedState=[e,t===void 0?null:t],e},useContext:qt,useEffect:Od,useImperativeHandle:function(e,t,a){a=a!=null?a.concat([e]):null,Kr(4194308,4,Ad.bind(null,t,e),a)},useLayoutEffect:function(e,t){return Kr(4194308,4,e,t)},useInsertionEffect:function(e,t){Kr(4,2,e,t)},useMemo:function(e,t){var a=Jt();t=t===void 0?null:t;var i=e();if(tl){Nn(!0);try{e()}finally{Nn(!1)}}return a.memoizedState=[i,t],i},useReducer:function(e,t,a){var i=Jt();if(a!==void 0){var r=a(t);if(tl){Nn(!0);try{a(t)}finally{Nn(!1)}}}else r=t;return i.memoizedState=i.baseState=r,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:r},i.queue=e,e=e.dispatch=Xv.bind(null,Oe,e),[i.memoizedState,e]},useRef:function(e){var t=Jt();return e={current:e},t.memoizedState=e},useState:function(e){e=Hc(e);var t=e.queue,a=kd.bind(null,Oe,t);return t.dispatch=a,[e.memoizedState,a]},useDebugValue:Vc,useDeferredValue:function(e,t){var a=Jt();return Yc(a,e,t)},useTransition:function(){var e=Hc(!1);return e=Hd.bind(null,Oe,e.queue,!0,!1),Jt().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,a){var i=Oe,r=Jt();if(ke){if(a===void 0)throw Error(s(407));a=a()}else{if(a=t(),tt===null)throw Error(s(349));Ve&60||hd(i,t,a)}r.memoizedState=a;var o={value:a,getSnapshot:t};return r.queue=o,Od(yd.bind(null,i,o,e),[e]),i.flags|=2048,ql(9,md.bind(null,i,o,a,t),{destroy:void 0},null),a},useId:function(){var e=Jt(),t=tt.identifierPrefix;if(ke){var a=Pn,i=Jn;a=(i&~(1<<32-Tt(i)-1)).toString(32)+a,t=":"+t+"R"+a,a=Gr++,0<a&&(t+="H"+a.toString(32)),t+=":"}else a=Bv++,t=":"+t+"r"+a.toString(32)+":";return e.memoizedState=t},useCacheRefresh:function(){return Jt().memoizedState=Gv.bind(null,Oe)}};nl.useMemoCache=zc,nl.useHostTransitionStatus=Gc,nl.useFormState=Rd,nl.useActionState=Rd,nl.useOptimistic=function(e){var t=Jt();t.memoizedState=t.baseState=e;var a={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=a,t=Xc.bind(null,Oe,!0,a),a.dispatch=t,[e,t]};var ba={readContext:qt,use:Qr,useCallback:zd,useContext:qt,useEffect:qc,useImperativeHandle:Md,useInsertionEffect:Dd,useLayoutEffect:wd,useMemo:Ld,useReducer:Zr,useRef:jd,useState:function(){return Zr(In)},useDebugValue:Vc,useDeferredValue:function(e,t){var a=Et();return Ud(a,$e.memoizedState,e,t)},useTransition:function(){var e=Zr(In)[0],t=Et().memoizedState;return[typeof e=="boolean"?e:ji(e),t]},useSyncExternalStore:dd,useId:Vd};ba.useCacheRefresh=Yd,ba.useMemoCache=zc,ba.useHostTransitionStatus=Gc,ba.useFormState=Td,ba.useActionState=Td,ba.useOptimistic=function(e,t){var a=Et();return gd(a,$e,e,t)};var al={readContext:qt,use:Qr,useCallback:zd,useContext:qt,useEffect:qc,useImperativeHandle:Md,useInsertionEffect:Dd,useLayoutEffect:wd,useMemo:Ld,useReducer:Uc,useRef:jd,useState:function(){return Uc(In)},useDebugValue:Vc,useDeferredValue:function(e,t){var a=Et();return $e===null?Yc(a,e,t):Ud(a,$e.memoizedState,e,t)},useTransition:function(){var e=Uc(In)[0],t=Et().memoizedState;return[typeof e=="boolean"?e:ji(e),t]},useSyncExternalStore:dd,useId:Vd};al.useCacheRefresh=Yd,al.useMemoCache=zc,al.useHostTransitionStatus=Gc,al.useFormState=Cd,al.useActionState=Cd,al.useOptimistic=function(e,t){var a=Et();return $e!==null?gd(a,$e,e,t):(a.baseState=e,[e,a.queue.dispatch])};function Qc(e,t,a,i){t=e.memoizedState,a=a(i,t),a=a==null?t:I({},t,a),e.memoizedState=a,e.lanes===0&&(e.updateQueue.baseState=a)}var Zc={isMounted:function(e){return(e=e._reactInternals)?ne(e)===e:!1},enqueueSetState:function(e,t,a){e=e._reactInternals;var i=nn(),r=_a(i);r.payload=t,a!=null&&(r.callback=a),t=Ra(e,r,i),t!==null&&(Xt(t,e,i),Ai(t,e,i))},enqueueReplaceState:function(e,t,a){e=e._reactInternals;var i=nn(),r=_a(i);r.tag=1,r.payload=t,a!=null&&(r.callback=a),t=Ra(e,r,i),t!==null&&(Xt(t,e,i),Ai(t,e,i))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var a=nn(),i=_a(a);i.tag=2,t!=null&&(i.callback=t),t=Ra(e,i,a),t!==null&&(Xt(t,e,a),Ai(t,e,a))}};function Qd(e,t,a,i,r,o,m){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(i,o,m):t.prototype&&t.prototype.isPureReactComponent?!pi(a,i)||!pi(r,o):!0}function Zd(e,t,a,i){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(a,i),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(a,i),t.state!==e&&Zc.enqueueReplaceState(t,t.state,null)}function ll(e,t){var a=t;if("ref"in t){a={};for(var i in t)i!=="ref"&&(a[i]=t[i])}if(e=e.defaultProps){a===t&&(a=I({},a));for(var r in e)a[r]===void 0&&(a[r]=e[r])}return a}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 Kd(e){Jr(e)}function $d(e){console.error(e)}function Fd(e){Jr(e)}function Pr(e,t){try{var a=e.onUncaughtError;a(t.value,{componentStack:t.stack})}catch(i){setTimeout(function(){throw i})}}function Jd(e,t,a){try{var i=e.onCaughtError;i(a.value,{componentStack:a.stack,errorBoundary:t.tag===1?t.stateNode:null})}catch(r){setTimeout(function(){throw r})}}function Kc(e,t,a){return a=_a(a),a.tag=3,a.payload={element:null},a.callback=function(){Pr(e,t)},a}function Pd(e){return e=_a(e),e.tag=3,e}function Wd(e,t,a,i){var r=a.type.getDerivedStateFromError;if(typeof r=="function"){var o=i.value;e.payload=function(){return r(o)},e.callback=function(){Jd(t,a,i)}}var m=a.stateNode;m!==null&&typeof m.componentDidCatch=="function"&&(e.callback=function(){Jd(t,a,i),typeof r!="function"&&(Da===null?Da=new Set([this]):Da.add(this));var E=i.stack;this.componentDidCatch(i.value,{componentStack:E!==null?E:""})})}function Qv(e,t,a,i,r){if(a.flags|=32768,i!==null&&typeof i=="object"&&typeof i.then=="function"){if(t=a.alternate,t!==null&&wi(t,a,r,!0),a=vn.current,a!==null){switch(a.tag){case 13:return Hn===null?js():a.alternate===null&&dt===0&&(dt=3),a.flags&=-257,a.flags|=65536,a.lanes=r,i===_c?a.flags|=16384:(t=a.updateQueue,t===null?a.updateQueue=new Set([i]):t.add(i),Ds(e,i,r)),!1;case 22:return a.flags|=65536,i===_c?a.flags|=16384:(t=a.updateQueue,t===null?(t={transitions:null,markerInstances:null,retryQueue:new Set([i])},a.updateQueue=t):(a=t.retryQueue,a===null?t.retryQueue=new Set([i]):a.add(i)),Ds(e,i,r)),!1}throw Error(s(435,a.tag))}return Ds(e,i,r),js(),!1}if(ke)return t=vn.current,t!==null?(!(t.flags&65536)&&(t.flags|=256),t.flags|=65536,t.lanes=r,i!==xc&&(e=Error(s(422),{cause:i}),bi(mn(e,a)))):(i!==xc&&(t=Error(s(423),{cause:i}),bi(mn(t,a))),e=e.current.alternate,e.flags|=65536,r&=-r,e.lanes|=r,i=mn(i,a),r=Kc(e.stateNode,i,r),cs(e,r),dt!==4&&(dt=2)),!1;var o=Error(s(520),{cause:i});if(o=mn(o,a),Vi===null?Vi=[o]:Vi.push(o),dt!==4&&(dt=2),t===null)return!0;i=mn(i,a),a=t;do{switch(a.tag){case 3:return a.flags|=65536,e=r&-r,a.lanes|=e,e=Kc(a.stateNode,i,e),cs(a,e),!1;case 1:if(t=a.type,o=a.stateNode,(a.flags&128)===0&&(typeof t.getDerivedStateFromError=="function"||o!==null&&typeof o.componentDidCatch=="function"&&(Da===null||!Da.has(o))))return a.flags|=65536,r&=-r,a.lanes|=r,r=Pd(r),Wd(r,e,a,i),cs(a,r),!1}a=a.return}while(a!==null);return!1}var Id=Error(s(461)),Nt=!1;function Mt(e,t,a,i){t.child=e===null?ld(t,null,a,i):Ia(t,e.child,a,i)}function eh(e,t,a,i,r){a=a.render;var o=t.ref;if("ref"in i){var m={};for(var E in i)E!=="ref"&&(m[E]=i[E])}else m=i;return rl(t),i=Dc(e,t,a,m,o,r),E=wc(),e!==null&&!Nt?(Ac(e,t,r),ea(e,t,r)):(ke&&E&&bc(t),t.flags|=1,Mt(e,t,i,r),t.child)}function th(e,t,a,i,r){if(e===null){var o=a.type;return typeof o=="function"&&!ps(o)&&o.defaultProps===void 0&&a.compare===null?(t.tag=15,t.type=o,nh(e,t,o,i,r)):(e=nu(a.type,null,i,t,t.mode,r),e.ref=t.ref,e.return=t,t.child=e)}if(o=e.child,!ns(e,r)){var m=o.memoizedProps;if(a=a.compare,a=a!==null?a:pi,a(m,i)&&e.ref===t.ref)return ea(e,t,r)}return t.flags|=1,e=ja(o,i),e.ref=t.ref,e.return=t,t.child=e}function nh(e,t,a,i,r){if(e!==null){var o=e.memoizedProps;if(pi(o,i)&&e.ref===t.ref)if(Nt=!1,t.pendingProps=i=o,ns(e,r))e.flags&131072&&(Nt=!0);else return t.lanes=e.lanes,ea(e,t,r)}return $c(e,t,a,i,r)}function ah(e,t,a){var i=t.pendingProps,r=i.children,o=(t.stateNode._pendingVisibility&2)!==0,m=e!==null?e.memoizedState:null;if(Di(e,t),i.mode==="hidden"||o){if(t.flags&128){if(i=m!==null?m.baseLanes|a:a,e!==null){for(r=t.child=e.child,o=0;r!==null;)o=o|r.lanes|r.childLanes,r=r.sibling;t.childLanes=o&~i}else t.childLanes=0,t.child=null;return lh(e,t,i,a)}if(a&536870912)t.memoizedState={baseLanes:0,cachePool:null},e!==null&&Yr(t,m!==null?m.cachePool:null),m!==null?id(t,m):Rc(),rd(t);else return t.lanes=t.childLanes=536870912,lh(e,t,m!==null?m.baseLanes|a:a,a)}else m!==null?(Yr(t,m.cachePool),id(t,m),ga(),t.memoizedState=null):(e!==null&&Yr(t,null),Rc(),ga());return Mt(e,t,r,a),t.child}function lh(e,t,a,i){var r=jc();return r=r===null?null:{parent:_t._currentValue,pool:r},t.memoizedState={baseLanes:a,cachePool:r},e!==null&&Yr(t,null),Rc(),rd(t),e!==null&&wi(e,t,i,!0),null}function Di(e,t){var a=t.ref;if(a===null)e!==null&&e.ref!==null&&(t.flags|=2097664);else{if(typeof a!="function"&&typeof a!="object")throw Error(s(284));(e===null||e.ref!==a)&&(t.flags|=2097664)}}function $c(e,t,a,i,r){return rl(t),a=Dc(e,t,a,i,void 0,r),i=wc(),e!==null&&!Nt?(Ac(e,t,r),ea(e,t,r)):(ke&&i&&bc(t),t.flags|=1,Mt(e,t,a,r),t.child)}function ih(e,t,a,i,r,o){return rl(t),t.updateQueue=null,a=fd(t,i,a,r),od(e),i=wc(),e!==null&&!Nt?(Ac(e,t,o),ea(e,t,o)):(ke&&i&&bc(t),t.flags|=1,Mt(e,t,a,o),t.child)}function rh(e,t,a,i,r){if(rl(t),t.stateNode===null){var o=Dl,m=a.contextType;typeof m=="object"&&m!==null&&(o=qt(m)),o=new a(i,o),t.memoizedState=o.state!==null&&o.state!==void 0?o.state:null,o.updater=Zc,t.stateNode=o,o._reactInternals=t,o=t.stateNode,o.props=i,o.state=t.memoizedState,o.refs={},rs(t),m=a.contextType,o.context=typeof m=="object"&&m!==null?qt(m):Dl,o.state=t.memoizedState,m=a.getDerivedStateFromProps,typeof m=="function"&&(Qc(t,a,m,i),o.state=t.memoizedState),typeof a.getDerivedStateFromProps=="function"||typeof o.getSnapshotBeforeUpdate=="function"||typeof o.UNSAFE_componentWillMount!="function"&&typeof o.componentWillMount!="function"||(m=o.state,typeof o.componentWillMount=="function"&&o.componentWillMount(),typeof o.UNSAFE_componentWillMount=="function"&&o.UNSAFE_componentWillMount(),m!==o.state&&Zc.enqueueReplaceState(o,o.state,null),zi(t,i,o,r),Mi(),o.state=t.memoizedState),typeof o.componentDidMount=="function"&&(t.flags|=4194308),i=!0}else if(e===null){o=t.stateNode;var E=t.memoizedProps,x=ll(a,E);o.props=x;var D=o.context,k=a.contextType;m=Dl,typeof k=="object"&&k!==null&&(m=qt(k));var $=a.getDerivedStateFromProps;k=typeof $=="function"||typeof o.getSnapshotBeforeUpdate=="function",E=t.pendingProps!==E,k||typeof o.UNSAFE_componentWillReceiveProps!="function"&&typeof o.componentWillReceiveProps!="function"||(E||D!==m)&&Zd(t,o,i,m),xa=!1;var L=t.memoizedState;o.state=L,zi(t,i,o,r),Mi(),D=t.memoizedState,E||L!==D||xa?(typeof $=="function"&&(Qc(t,a,$,i),D=t.memoizedState),(x=xa||Qd(t,a,x,i,L,D,m))?(k||typeof o.UNSAFE_componentWillMount!="function"&&typeof o.componentWillMount!="function"||(typeof o.componentWillMount=="function"&&o.componentWillMount(),typeof o.UNSAFE_componentWillMount=="function"&&o.UNSAFE_componentWillMount()),typeof o.componentDidMount=="function"&&(t.flags|=4194308)):(typeof o.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=i,t.memoizedState=D),o.props=i,o.state=D,o.context=m,i=x):(typeof o.componentDidMount=="function"&&(t.flags|=4194308),i=!1)}else{o=t.stateNode,us(e,t),m=t.memoizedProps,k=ll(a,m),o.props=k,$=t.pendingProps,L=o.context,D=a.contextType,x=Dl,typeof D=="object"&&D!==null&&(x=qt(D)),E=a.getDerivedStateFromProps,(D=typeof E=="function"||typeof o.getSnapshotBeforeUpdate=="function")||typeof o.UNSAFE_componentWillReceiveProps!="function"&&typeof o.componentWillReceiveProps!="function"||(m!==$||L!==x)&&Zd(t,o,i,x),xa=!1,L=t.memoizedState,o.state=L,zi(t,i,o,r),Mi();var V=t.memoizedState;m!==$||L!==V||xa||e!==null&&e.dependencies!==null&&Wr(e.dependencies)?(typeof E=="function"&&(Qc(t,a,E,i),V=t.memoizedState),(k=xa||Qd(t,a,k,i,L,V,x)||e!==null&&e.dependencies!==null&&Wr(e.dependencies))?(D||typeof o.UNSAFE_componentWillUpdate!="function"&&typeof o.componentWillUpdate!="function"||(typeof o.componentWillUpdate=="function"&&o.componentWillUpdate(i,V,x),typeof o.UNSAFE_componentWillUpdate=="function"&&o.UNSAFE_componentWillUpdate(i,V,x)),typeof o.componentDidUpdate=="function"&&(t.flags|=4),typeof o.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof o.componentDidUpdate!="function"||m===e.memoizedProps&&L===e.memoizedState||(t.flags|=4),typeof o.getSnapshotBeforeUpdate!="function"||m===e.memoizedProps&&L===e.memoizedState||(t.flags|=1024),t.memoizedProps=i,t.memoizedState=V),o.props=i,o.state=V,o.context=x,i=k):(typeof o.componentDidUpdate!="function"||m===e.memoizedProps&&L===e.memoizedState||(t.flags|=4),typeof o.getSnapshotBeforeUpdate!="function"||m===e.memoizedProps&&L===e.memoizedState||(t.flags|=1024),i=!1)}return o=i,Di(e,t),i=(t.flags&128)!==0,o||i?(o=t.stateNode,a=i&&typeof a.getDerivedStateFromError!="function"?null:o.render(),t.flags|=1,e!==null&&i?(t.child=Ia(t,e.child,null,r),t.child=Ia(t,null,a,r)):Mt(e,t,a,r),t.memoizedState=o.state,e=t.child):e=ea(e,t,r),e}function uh(e,t,a,i){return Ei(),t.flags|=256,Mt(e,t,a,i),t.child}var Fc={dehydrated:null,treeContext:null,retryLane:0};function Jc(e){return{baseLanes:e,cachePool:sd()}}function Pc(e,t,a){return e=e!==null?e.childLanes&~a:0,t&&(e|=Sn),e}function ch(e,t,a){var i=t.pendingProps,r=!1,o=(t.flags&128)!==0,m;if((m=o)||(m=e!==null&&e.memoizedState===null?!1:(xt.current&2)!==0),m&&(r=!0,t.flags&=-129),m=(t.flags&32)!==0,t.flags&=-33,e===null){if(ke){if(r?va(t):ga(),ke){var E=At,x;if(x=E){e:{for(x=E,E=Un;x.nodeType!==8;){if(!E){E=null;break e}if(x=Dn(x.nextSibling),x===null){E=null;break e}}E=x}E!==null?(t.memoizedState={dehydrated:E,treeContext:Ja!==null?{id:Jn,overflow:Pn}:null,retryLane:536870912},x=bn(18,null,null,0),x.stateNode=E,x.return=t,t.child=x,Gt=t,At=null,x=!0):x=!1}x||Wa(t)}if(E=t.memoizedState,E!==null&&(E=E.dehydrated,E!==null))return E.data==="$!"?t.lanes=16:t.lanes=536870912,null;Wn(t)}return E=i.children,i=i.fallback,r?(ga(),r=t.mode,E=Ic({mode:"hidden",children:E},r),i=cl(i,r,a,null),E.return=t,i.return=t,E.sibling=i,t.child=E,r=t.child,r.memoizedState=Jc(a),r.childLanes=Pc(e,m,a),t.memoizedState=Fc,i):(va(t),Wc(t,E))}if(x=e.memoizedState,x!==null&&(E=x.dehydrated,E!==null)){if(o)t.flags&256?(va(t),t.flags&=-257,t=es(e,t,a)):t.memoizedState!==null?(ga(),t.child=e.child,t.flags|=128,t=null):(ga(),r=i.fallback,E=t.mode,i=Ic({mode:"visible",children:i.children},E),r=cl(r,E,a,null),r.flags|=2,i.return=t,r.return=t,i.sibling=r,t.child=i,Ia(t,e.child,null,a),i=t.child,i.memoizedState=Jc(a),i.childLanes=Pc(e,m,a),t.memoizedState=Fc,t=r);else if(va(t),E.data==="$!"){if(m=E.nextSibling&&E.nextSibling.dataset,m)var D=m.dgst;m=D,i=Error(s(419)),i.stack="",i.digest=m,bi({value:i,source:null,stack:null}),t=es(e,t,a)}else if(Nt||wi(e,t,a,!1),m=(a&e.childLanes)!==0,Nt||m){if(m=tt,m!==null){if(i=a&-a,i&42)i=1;else switch(i){case 2:i=1;break;case 8:i=4;break;case 32:i=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:i=64;break;case 268435456:i=134217728;break;default:i=0}if(i=i&(m.suspendedLanes|a)?0:i,i!==0&&i!==x.retryLane)throw x.retryLane=i,pa(e,i),Xt(m,e,i),Id}E.data==="$?"||js(),t=es(e,t,a)}else E.data==="$?"?(t.flags|=128,t.child=e.child,t=rg.bind(null,e),E._reactRetry=t,t=null):(e=x.treeContext,At=Dn(E.nextSibling),Gt=t,ke=!0,jn=null,Un=!1,e!==null&&(yn[pn++]=Jn,yn[pn++]=Pn,yn[pn++]=Ja,Jn=e.id,Pn=e.overflow,Ja=t),t=Wc(t,i.children),t.flags|=4096);return t}return r?(ga(),r=i.fallback,E=t.mode,x=e.child,D=x.sibling,i=ja(x,{mode:"hidden",children:i.children}),i.subtreeFlags=x.subtreeFlags&31457280,D!==null?r=ja(D,r):(r=cl(r,E,a,null),r.flags|=2),r.return=t,i.return=t,i.sibling=r,t.child=i,i=r,r=t.child,E=e.child.memoizedState,E===null?E=Jc(a):(x=E.cachePool,x!==null?(D=_t._currentValue,x=x.parent!==D?{parent:D,pool:D}:x):x=sd(),E={baseLanes:E.baseLanes|a,cachePool:x}),r.memoizedState=E,r.childLanes=Pc(e,m,a),t.memoizedState=Fc,i):(va(t),a=e.child,e=a.sibling,a=ja(a,{mode:"visible",children:i.children}),a.return=t,a.sibling=null,e!==null&&(m=t.deletions,m===null?(t.deletions=[e],t.flags|=16):m.push(e)),t.child=a,t.memoizedState=null,a)}function Wc(e,t){return t=Ic({mode:"visible",children:t},e.mode),t.return=e,e.child=t}function Ic(e,t){return zh(e,t,0,null)}function es(e,t,a){return Ia(t,e.child,null,a),e=Wc(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function sh(e,t,a){e.lanes|=t;var i=e.alternate;i!==null&&(i.lanes|=t),ls(e.return,t,a)}function ts(e,t,a,i,r){var o=e.memoizedState;o===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:i,tail:a,tailMode:r}:(o.isBackwards=t,o.rendering=null,o.renderingStartTime=0,o.last=i,o.tail=a,o.tailMode=r)}function oh(e,t,a){var i=t.pendingProps,r=i.revealOrder,o=i.tail;if(Mt(e,t,i.children,a),i=xt.current,i&2)i=i&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&&sh(e,a,t);else if(e.tag===19)sh(e,a,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}i&=1}switch(Ee(xt,i),r){case"forwards":for(a=t.child,r=null;a!==null;)e=a.alternate,e!==null&&Vr(e)===null&&(r=a),a=a.sibling;a=r,a===null?(r=t.child,t.child=null):(r=a.sibling,a.sibling=null),ts(t,!1,r,a,o);break;case"backwards":for(a=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=a,a=r,r=e}ts(t,!0,a,null,o);break;case"together":ts(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function ea(e,t,a){if(e!==null&&(t.dependencies=e.dependencies),Oa|=t.lanes,!(a&t.childLanes))if(e!==null){if(wi(e,t,a,!1),(a&t.childLanes)===0)return null}else return null;if(e!==null&&t.child!==e.child)throw Error(s(153));if(t.child!==null){for(e=t.child,a=ja(e,e.pendingProps),t.child=a,a.return=t;e.sibling!==null;)e=e.sibling,a=a.sibling=ja(e,e.pendingProps),a.return=t;a.sibling=null}return t.child}function ns(e,t){return e.lanes&t?!0:(e=e.dependencies,!!(e!==null&&Wr(e)))}function Zv(e,t,a){switch(t.tag){case 3:De(t,t.stateNode.containerInfo),Sa(t,_t,e.memoizedState.cache),Ei();break;case 27:case 5:St(t);break;case 4:De(t,t.stateNode.containerInfo);break;case 10:Sa(t,t.type,t.memoizedProps.value);break;case 13:var i=t.memoizedState;if(i!==null)return i.dehydrated!==null?(va(t),t.flags|=128,null):a&t.child.childLanes?ch(e,t,a):(va(t),e=ea(e,t,a),e!==null?e.sibling:null);va(t);break;case 19:var r=(e.flags&128)!==0;if(i=(a&t.childLanes)!==0,i||(wi(e,t,a,!1),i=(a&t.childLanes)!==0),r){if(i)return oh(e,t,a);t.flags|=128}if(r=t.memoizedState,r!==null&&(r.rendering=null,r.tail=null,r.lastEffect=null),Ee(xt,xt.current),i)break;return null;case 22:case 23:return t.lanes=0,ah(e,t,a);case 24:Sa(t,_t,e.memoizedState.cache)}return ea(e,t,a)}function fh(e,t,a){if(e!==null)if(e.memoizedProps!==t.pendingProps)Nt=!0;else{if(!ns(e,a)&&!(t.flags&128))return Nt=!1,Zv(e,t,a);Nt=!!(e.flags&131072)}else Nt=!1,ke&&t.flags&1048576&&Ff(t,Lr,t.index);switch(t.lanes=0,t.tag){case 16:e:{e=t.pendingProps;var i=t.elementType,r=i._init;if(i=r(i._payload),t.type=i,typeof i=="function")ps(i)?(e=ll(i,e),t.tag=1,t=rh(null,t,i,e,a)):(t.tag=0,t=$c(null,t,i,e,a));else{if(i!=null){if(r=i.$$typeof,r===O){t.tag=11,t=eh(null,t,i,e,a);break e}else if(r===M){t.tag=14,t=th(null,t,i,e,a);break e}}throw t=ie(i)||i,Error(s(306,t,""))}}return t;case 0:return $c(e,t,t.type,t.pendingProps,a);case 1:return i=t.type,r=ll(i,t.pendingProps),rh(e,t,i,r,a);case 3:e:{if(De(t,t.stateNode.containerInfo),e===null)throw Error(s(387));var o=t.pendingProps;r=t.memoizedState,i=r.element,us(e,t),zi(t,o,null,a);var m=t.memoizedState;if(o=m.cache,Sa(t,_t,o),o!==r.cache&&is(t,[_t],a,!0),Mi(),o=m.element,r.isDehydrated)if(r={element:o,isDehydrated:!1,cache:m.cache},t.updateQueue.baseState=r,t.memoizedState=r,t.flags&256){t=uh(e,t,o,a);break e}else if(o!==i){i=mn(Error(s(424)),t),bi(i),t=uh(e,t,o,a);break e}else for(At=Dn(t.stateNode.containerInfo.firstChild),Gt=t,ke=!0,jn=null,Un=!0,a=ld(t,null,o,a),t.child=a;a;)a.flags=a.flags&-3|4096,a=a.sibling;else{if(Ei(),o===i){t=ea(e,t,a);break e}Mt(e,t,o,a)}t=t.child}return t;case 26:return Di(e,t),e===null?(a=mm(t.type,null,t.pendingProps,null))?t.memoizedState=a:ke||(a=t.type,e=t.pendingProps,i=mu(it.current).createElement(a),i[fe]=t,i[ve]=e,zt(i,a,e),et(i),t.stateNode=i):t.memoizedState=mm(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return St(t),e===null&&ke&&(i=t.stateNode=fm(t.type,t.pendingProps,it.current),Gt=t,Un=!0,At=Dn(i.firstChild)),i=t.pendingProps.children,e!==null||ke?Mt(e,t,i,a):t.child=Ia(t,null,i,a),Di(e,t),t.child;case 5:return e===null&&ke&&((r=i=At)&&(i=xg(i,t.type,t.pendingProps,Un),i!==null?(t.stateNode=i,Gt=t,At=Dn(i.firstChild),Un=!1,r=!0):r=!1),r||Wa(t)),St(t),r=t.type,o=t.pendingProps,m=e!==null?e.memoizedProps:null,i=o.children,ks(r,o)?i=null:m!==null&&ks(r,m)&&(t.flags|=32),t.memoizedState!==null&&(r=Dc(e,t,qv,null,null,a),Fi._currentValue=r),Di(e,t),Mt(e,t,i,a),t.child;case 6:return e===null&&ke&&((e=a=At)&&(a=_g(a,t.pendingProps,Un),a!==null?(t.stateNode=a,Gt=t,At=null,e=!0):e=!1),e||Wa(t)),null;case 13:return ch(e,t,a);case 4:return De(t,t.stateNode.containerInfo),i=t.pendingProps,e===null?t.child=Ia(t,null,i,a):Mt(e,t,i,a),t.child;case 11:return eh(e,t,t.type,t.pendingProps,a);case 7:return Mt(e,t,t.pendingProps,a),t.child;case 8:return Mt(e,t,t.pendingProps.children,a),t.child;case 12:return Mt(e,t,t.pendingProps.children,a),t.child;case 10:return i=t.pendingProps,Sa(t,t.type,i.value),Mt(e,t,i.children,a),t.child;case 9:return r=t.type._context,i=t.pendingProps.children,rl(t),r=qt(r),i=i(r),t.flags|=1,Mt(e,t,i,a),t.child;case 14:return th(e,t,t.type,t.pendingProps,a);case 15:return nh(e,t,t.type,t.pendingProps,a);case 19:return oh(e,t,a);case 22:return ah(e,t,a);case 24:return rl(t),i=qt(_t),e===null?(r=jc(),r===null&&(r=tt,o=Nc(),r.pooledCache=o,o.refCount++,o!==null&&(r.pooledCacheLanes|=a),r=o),t.memoizedState={parent:i,cache:r},rs(t),Sa(t,_t,r)):(e.lanes&a&&(us(e,t),zi(t,null,null,a),Mi()),r=e.memoizedState,o=t.memoizedState,r.parent!==i?(r={parent:i,cache:i},t.memoizedState=r,t.lanes===0&&(t.memoizedState=t.updateQueue.baseState=r),Sa(t,_t,i)):(i=o.cache,Sa(t,_t,i),i!==r.cache&&is(t,[_t],a,!0))),Mt(e,t,t.pendingProps.children,a),t.child;case 29:throw t.pendingProps}throw Error(s(156,t.tag))}var as=Ce(null),il=null,ta=null;function Sa(e,t,a){Ee(as,t._currentValue),t._currentValue=a}function na(e){e._currentValue=as.current,Le(as)}function ls(e,t,a){for(;e!==null;){var i=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,i!==null&&(i.childLanes|=t)):i!==null&&(i.childLanes&t)!==t&&(i.childLanes|=t),e===a)break;e=e.return}}function is(e,t,a,i){var r=e.child;for(r!==null&&(r.return=e);r!==null;){var o=r.dependencies;if(o!==null){var m=r.child;o=o.firstContext;e:for(;o!==null;){var E=o;o=r;for(var x=0;x<t.length;x++)if(E.context===t[x]){o.lanes|=a,E=o.alternate,E!==null&&(E.lanes|=a),ls(o.return,a,e),i||(m=null);break e}o=E.next}}else if(r.tag===18){if(m=r.return,m===null)throw Error(s(341));m.lanes|=a,o=m.alternate,o!==null&&(o.lanes|=a),ls(m,a,e),m=null}else m=r.child;if(m!==null)m.return=r;else for(m=r;m!==null;){if(m===e){m=null;break}if(r=m.sibling,r!==null){r.return=m.return,m=r;break}m=m.return}r=m}}function wi(e,t,a,i){e=null;for(var r=t,o=!1;r!==null;){if(!o){if(r.flags&524288)o=!0;else if(r.flags&262144)break}if(r.tag===10){var m=r.alternate;if(m===null)throw Error(s(387));if(m=m.memoizedProps,m!==null){var E=r.type;Wt(r.pendingProps.value,m.value)||(e!==null?e.push(E):e=[E])}}else if(r===lt.current){if(m=r.alternate,m===null)throw Error(s(387));m.memoizedState.memoizedState!==r.memoizedState.memoizedState&&(e!==null?e.push(Fi):e=[Fi])}r=r.return}e!==null&&is(t,e,a,i),t.flags|=262144}function Wr(e){for(e=e.firstContext;e!==null;){if(!Wt(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function rl(e){il=e,ta=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function qt(e){return dh(il,e)}function Ir(e,t){return il===null&&rl(e),dh(e,t)}function dh(e,t){var a=t._currentValue;if(t={context:t,memoizedValue:a,next:null},ta===null){if(e===null)throw Error(s(308));ta=t,e.dependencies={lanes:0,firstContext:t},e.flags|=524288}else ta=ta.next=t;return a}var xa=!1;function rs(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function us(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 _a(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function Ra(e,t,a){var i=e.updateQueue;if(i===null)return null;if(i=i.shared,st&2){var r=i.pending;return r===null?t.next=t:(t.next=r.next,r.next=t),i.pending=t,t=Mr(e),Kf(e,null,a),t}return Ar(e,i,t,a),Mr(e)}function Ai(e,t,a){if(t=t.updateQueue,t!==null&&(t=t.shared,(a&4194176)!==0)){var i=t.lanes;i&=e.pendingLanes,a|=i,t.lanes=a,me(e,a)}}function cs(e,t){var a=e.updateQueue,i=e.alternate;if(i!==null&&(i=i.updateQueue,a===i)){var r=null,o=null;if(a=a.firstBaseUpdate,a!==null){do{var m={lane:a.lane,tag:a.tag,payload:a.payload,callback:null,next:null};o===null?r=o=m:o=o.next=m,a=a.next}while(a!==null);o===null?r=o=t:o=o.next=t}else r=o=t;a={baseState:i.baseState,firstBaseUpdate:r,lastBaseUpdate:o,shared:i.shared,callbacks:i.callbacks},e.updateQueue=a;return}e=a.lastBaseUpdate,e===null?a.firstBaseUpdate=t:e.next=t,a.lastBaseUpdate=t}var ss=!1;function Mi(){if(ss){var e=Ul;if(e!==null)throw e}}function zi(e,t,a,i){ss=!1;var r=e.updateQueue;xa=!1;var o=r.firstBaseUpdate,m=r.lastBaseUpdate,E=r.shared.pending;if(E!==null){r.shared.pending=null;var x=E,D=x.next;x.next=null,m===null?o=D:m.next=D,m=x;var k=e.alternate;k!==null&&(k=k.updateQueue,E=k.lastBaseUpdate,E!==m&&(E===null?k.firstBaseUpdate=D:E.next=D,k.lastBaseUpdate=x))}if(o!==null){var $=r.baseState;m=0,k=D=x=null,E=o;do{var L=E.lane&-536870913,V=L!==E.lane;if(V?(Ve&L)===L:(i&L)===L){L!==0&&L===Ll&&(ss=!0),k!==null&&(k=k.next={lane:0,tag:E.tag,payload:E.payload,callback:null,next:null});e:{var he=e,Te=E;L=t;var ht=a;switch(Te.tag){case 1:if(he=Te.payload,typeof he=="function"){$=he.call(ht,$,L);break e}$=he;break e;case 3:he.flags=he.flags&-65537|128;case 0:if(he=Te.payload,L=typeof he=="function"?he.call(ht,$,L):he,L==null)break e;$=I({},$,L);break e;case 2:xa=!0}}L=E.callback,L!==null&&(e.flags|=64,V&&(e.flags|=8192),V=r.callbacks,V===null?r.callbacks=[L]:V.push(L))}else V={lane:L,tag:E.tag,payload:E.payload,callback:E.callback,next:null},k===null?(D=k=V,x=$):k=k.next=V,m|=L;if(E=E.next,E===null){if(E=r.shared.pending,E===null)break;V=E,E=V.next,V.next=null,r.lastBaseUpdate=V,r.shared.pending=null}}while(!0);k===null&&(x=$),r.baseState=x,r.firstBaseUpdate=D,r.lastBaseUpdate=k,o===null&&(r.shared.lanes=0),Oa|=m,e.lanes=m,e.memoizedState=$}}function hh(e,t){if(typeof e!="function")throw Error(s(191,e));e.call(t)}function mh(e,t){var a=e.callbacks;if(a!==null)for(e.callbacks=null,e=0;e<a.length;e++)hh(a[e],t)}function Li(e,t){try{var a=t.updateQueue,i=a!==null?a.lastEffect:null;if(i!==null){var r=i.next;a=r;do{if((a.tag&e)===e){i=void 0;var o=a.create,m=a.inst;i=o(),m.destroy=i}a=a.next}while(a!==r)}}catch(E){We(t,t.return,E)}}function Ta(e,t,a){try{var i=t.updateQueue,r=i!==null?i.lastEffect:null;if(r!==null){var o=r.next;i=o;do{if((i.tag&e)===e){var m=i.inst,E=m.destroy;if(E!==void 0){m.destroy=void 0,r=t;var x=a;try{E()}catch(D){We(r,x,D)}}}i=i.next}while(i!==o)}}catch(D){We(t,t.return,D)}}function yh(e){var t=e.updateQueue;if(t!==null){var a=e.stateNode;try{mh(t,a)}catch(i){We(e,e.return,i)}}}function ph(e,t,a){a.props=ll(e.type,e.memoizedProps),a.state=e.memoizedState;try{a.componentWillUnmount()}catch(i){We(e,t,i)}}function ul(e,t){try{var a=e.ref;if(a!==null){var i=e.stateNode;switch(e.tag){case 26:case 27:case 5:var r=i;break;default:r=i}typeof a=="function"?e.refCleanup=a(r):a.current=r}}catch(o){We(e,t,o)}}function It(e,t){var a=e.ref,i=e.refCleanup;if(a!==null)if(typeof i=="function")try{i()}catch(r){We(e,t,r)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof a=="function")try{a(null)}catch(r){We(e,t,r)}else a.current=null}function vh(e){var t=e.type,a=e.memoizedProps,i=e.stateNode;try{e:switch(t){case"button":case"input":case"select":case"textarea":a.autoFocus&&i.focus();break e;case"img":a.src?i.src=a.src:a.srcSet&&(i.srcset=a.srcSet)}}catch(r){We(e,e.return,r)}}function gh(e,t,a){try{var i=e.stateNode;vg(i,e.type,a,t),i[ve]=t}catch(r){We(e,e.return,r)}}function Eh(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27||e.tag===4}function os(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Eh(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 fs(e,t,a){var i=e.tag;if(i===5||i===6)e=e.stateNode,t?a.nodeType===8?a.parentNode.insertBefore(e,t):a.insertBefore(e,t):(a.nodeType===8?(t=a.parentNode,t.insertBefore(e,a)):(t=a,t.appendChild(e)),a=a._reactRootContainer,a!=null||t.onclick!==null||(t.onclick=hu));else if(i!==4&&i!==27&&(e=e.child,e!==null))for(fs(e,t,a),e=e.sibling;e!==null;)fs(e,t,a),e=e.sibling}function eu(e,t,a){var i=e.tag;if(i===5||i===6)e=e.stateNode,t?a.insertBefore(e,t):a.appendChild(e);else if(i!==4&&i!==27&&(e=e.child,e!==null))for(eu(e,t,a),e=e.sibling;e!==null;)eu(e,t,a),e=e.sibling}var aa=!1,ft=!1,ds=!1,bh=typeof WeakSet=="function"?WeakSet:Set,Ct=null,Sh=!1;function Kv(e,t){if(e=e.containerInfo,Vs=bu,e=Bf(e),mc(e)){if("selectionStart"in e)var a={start:e.selectionStart,end:e.selectionEnd};else e:{a=(a=e.ownerDocument)&&a.defaultView||window;var i=a.getSelection&&a.getSelection();if(i&&i.rangeCount!==0){a=i.anchorNode;var r=i.anchorOffset,o=i.focusNode;i=i.focusOffset;try{a.nodeType,o.nodeType}catch{a=null;break e}var m=0,E=-1,x=-1,D=0,k=0,$=e,L=null;t:for(;;){for(var V;$!==a||r!==0&&$.nodeType!==3||(E=m+r),$!==o||i!==0&&$.nodeType!==3||(x=m+i),$.nodeType===3&&(m+=$.nodeValue.length),(V=$.firstChild)!==null;)L=$,$=V;for(;;){if($===e)break t;if(L===a&&++D===r&&(E=m),L===o&&++k===i&&(x=m),(V=$.nextSibling)!==null)break;$=L,L=$.parentNode}$=V}a=E===-1||x===-1?null:{start:E,end:x}}else a=null}a=a||{start:0,end:0}}else a=null;for(Ys={focusedElem:e,selectionRange:a},bu=!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,o=t.alternate,e=t.flags,t.tag){case 0:break;case 11:case 15:break;case 1:if(e&1024&&o!==null){e=void 0,a=t,r=o.memoizedProps,o=o.memoizedState,i=a.stateNode;try{var he=ll(a.type,r,a.elementType===a.type);e=i.getSnapshotBeforeUpdate(he,o),i.__reactInternalSnapshotBeforeUpdate=e}catch(Te){We(a,a.return,Te)}}break;case 3:if(e&1024){if(e=t.stateNode.containerInfo,a=e.nodeType,a===9)Qs(e);else if(a===1)switch(e.nodeName){case"HEAD":case"HTML":case"BODY":Qs(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(s(163))}if(e=t.sibling,e!==null){e.return=t.return,Ct=e;break}Ct=t.return}return he=Sh,Sh=!1,he}function xh(e,t,a){var i=a.flags;switch(a.tag){case 0:case 11:case 15:ia(e,a),i&4&&Li(5,a);break;case 1:if(ia(e,a),i&4)if(e=a.stateNode,t===null)try{e.componentDidMount()}catch(E){We(a,a.return,E)}else{var r=ll(a.type,t.memoizedProps);t=t.memoizedState;try{e.componentDidUpdate(r,t,e.__reactInternalSnapshotBeforeUpdate)}catch(E){We(a,a.return,E)}}i&64&&yh(a),i&512&&ul(a,a.return);break;case 3:if(ia(e,a),i&64&&(i=a.updateQueue,i!==null)){if(e=null,a.child!==null)switch(a.child.tag){case 27:case 5:e=a.child.stateNode;break;case 1:e=a.child.stateNode}try{mh(i,e)}catch(E){We(a,a.return,E)}}break;case 26:ia(e,a),i&512&&ul(a,a.return);break;case 27:case 5:ia(e,a),t===null&&i&4&&vh(a),i&512&&ul(a,a.return);break;case 12:ia(e,a);break;case 13:ia(e,a),i&4&&Th(e,a);break;case 22:if(r=a.memoizedState!==null||aa,!r){t=t!==null&&t.memoizedState!==null||ft;var o=aa,m=ft;aa=r,(ft=t)&&!m?Na(e,a,(a.subtreeFlags&8772)!==0):ia(e,a),aa=o,ft=m}i&512&&(a.memoizedProps.mode==="manual"?ul(a,a.return):It(a,a.return));break;default:ia(e,a)}}function _h(e){var t=e.alternate;t!==null&&(e.alternate=null,_h(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&Zn(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 bt=null,en=!1;function la(e,t,a){for(a=a.child;a!==null;)Rh(e,t,a),a=a.sibling}function Rh(e,t,a){if(Bt&&typeof Bt.onCommitFiberUnmount=="function")try{Bt.onCommitFiberUnmount(ma,a)}catch{}switch(a.tag){case 26:ft||It(a,t),la(e,t,a),a.memoizedState?a.memoizedState.count--:a.stateNode&&(a=a.stateNode,a.parentNode.removeChild(a));break;case 27:ft||It(a,t);var i=bt,r=en;for(bt=a.stateNode,la(e,t,a),a=a.stateNode,t=a.attributes;t.length;)a.removeAttributeNode(t[0]);Zn(a),bt=i,en=r;break;case 5:ft||It(a,t);case 6:r=bt;var o=en;if(bt=null,la(e,t,a),bt=r,en=o,bt!==null)if(en)try{e=bt,i=a.stateNode,e.nodeType===8?e.parentNode.removeChild(i):e.removeChild(i)}catch(m){We(a,t,m)}else try{bt.removeChild(a.stateNode)}catch(m){We(a,t,m)}break;case 18:bt!==null&&(en?(t=bt,a=a.stateNode,t.nodeType===8?Xs(t.parentNode,a):t.nodeType===1&&Xs(t,a),Ii(t)):Xs(bt,a.stateNode));break;case 4:i=bt,r=en,bt=a.stateNode.containerInfo,en=!0,la(e,t,a),bt=i,en=r;break;case 0:case 11:case 14:case 15:ft||Ta(2,a,t),ft||Ta(4,a,t),la(e,t,a);break;case 1:ft||(It(a,t),i=a.stateNode,typeof i.componentWillUnmount=="function"&&ph(a,t,i)),la(e,t,a);break;case 21:la(e,t,a);break;case 22:ft||It(a,t),ft=(i=ft)||a.memoizedState!==null,la(e,t,a),ft=i;break;default:la(e,t,a)}}function Th(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{Ii(e)}catch(a){We(t,t.return,a)}}function $v(e){switch(e.tag){case 13:case 19:var t=e.stateNode;return t===null&&(t=e.stateNode=new bh),t;case 22:return e=e.stateNode,t=e._retryCache,t===null&&(t=e._retryCache=new bh),t;default:throw Error(s(435,e.tag))}}function hs(e,t){var a=$v(e);t.forEach(function(i){var r=ug.bind(null,e,i);a.has(i)||(a.add(i),i.then(r,r))})}function gn(e,t){var a=t.deletions;if(a!==null)for(var i=0;i<a.length;i++){var r=a[i],o=e,m=t,E=m;e:for(;E!==null;){switch(E.tag){case 27:case 5:bt=E.stateNode,en=!1;break e;case 3:bt=E.stateNode.containerInfo,en=!0;break e;case 4:bt=E.stateNode.containerInfo,en=!0;break e}E=E.return}if(bt===null)throw Error(s(160));Rh(o,m,r),bt=null,en=!1,o=r.alternate,o!==null&&(o.return=null),r.return=null}if(t.subtreeFlags&13878)for(t=t.child;t!==null;)Nh(t,e),t=t.sibling}var On=null;function Nh(e,t){var a=e.alternate,i=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:gn(t,e),En(e),i&4&&(Ta(3,e,e.return),Li(3,e),Ta(5,e,e.return));break;case 1:gn(t,e),En(e),i&512&&(ft||a===null||It(a,a.return)),i&64&&aa&&(e=e.updateQueue,e!==null&&(i=e.callbacks,i!==null&&(a=e.shared.hiddenCallbacks,e.shared.hiddenCallbacks=a===null?i:a.concat(i))));break;case 26:var r=On;if(gn(t,e),En(e),i&512&&(ft||a===null||It(a,a.return)),i&4){var o=a!==null?a.memoizedState:null;if(i=e.memoizedState,a===null)if(i===null)if(e.stateNode===null){e:{i=e.type,a=e.memoizedProps,r=r.ownerDocument||r;t:switch(i){case"title":o=r.getElementsByTagName("title")[0],(!o||o[sn]||o[fe]||o.namespaceURI==="http://www.w3.org/2000/svg"||o.hasAttribute("itemprop"))&&(o=r.createElement(i),r.head.insertBefore(o,r.querySelector("head > title"))),zt(o,i,a),o[fe]=e,et(o),i=o;break e;case"link":var m=vm("link","href",r).get(i+(a.href||""));if(m){for(var E=0;E<m.length;E++)if(o=m[E],o.getAttribute("href")===(a.href==null?null:a.href)&&o.getAttribute("rel")===(a.rel==null?null:a.rel)&&o.getAttribute("title")===(a.title==null?null:a.title)&&o.getAttribute("crossorigin")===(a.crossOrigin==null?null:a.crossOrigin)){m.splice(E,1);break t}}o=r.createElement(i),zt(o,i,a),r.head.appendChild(o);break;case"meta":if(m=vm("meta","content",r).get(i+(a.content||""))){for(E=0;E<m.length;E++)if(o=m[E],o.getAttribute("content")===(a.content==null?null:""+a.content)&&o.getAttribute("name")===(a.name==null?null:a.name)&&o.getAttribute("property")===(a.property==null?null:a.property)&&o.getAttribute("http-equiv")===(a.httpEquiv==null?null:a.httpEquiv)&&o.getAttribute("charset")===(a.charSet==null?null:a.charSet)){m.splice(E,1);break t}}o=r.createElement(i),zt(o,i,a),r.head.appendChild(o);break;default:throw Error(s(468,i))}o[fe]=e,et(o),i=o}e.stateNode=i}else gm(r,e.type,e.stateNode);else e.stateNode=pm(r,i,e.memoizedProps);else o!==i?(o===null?a.stateNode!==null&&(a=a.stateNode,a.parentNode.removeChild(a)):o.count--,i===null?gm(r,e.type,e.stateNode):pm(r,i,e.memoizedProps)):i===null&&e.stateNode!==null&&gh(e,e.memoizedProps,a.memoizedProps)}break;case 27:if(i&4&&e.alternate===null){r=e.stateNode,o=e.memoizedProps;try{for(var x=r.firstChild;x;){var D=x.nextSibling,k=x.nodeName;x[sn]||k==="HEAD"||k==="BODY"||k==="SCRIPT"||k==="STYLE"||k==="LINK"&&x.rel.toLowerCase()==="stylesheet"||r.removeChild(x),x=D}for(var $=e.type,L=r.attributes;L.length;)r.removeAttributeNode(L[0]);zt(r,$,o),r[fe]=e,r[ve]=o}catch(he){We(e,e.return,he)}}case 5:if(gn(t,e),En(e),i&512&&(ft||a===null||It(a,a.return)),e.flags&32){r=e.stateNode;try{_l(r,"")}catch(he){We(e,e.return,he)}}i&4&&e.stateNode!=null&&(r=e.memoizedProps,gh(e,r,a!==null?a.memoizedProps:r)),i&1024&&(ds=!0);break;case 6:if(gn(t,e),En(e),i&4){if(e.stateNode===null)throw Error(s(162));i=e.memoizedProps,a=e.stateNode;try{a.nodeValue=i}catch(he){We(e,e.return,he)}}break;case 3:if(vu=null,r=On,On=yu(t.containerInfo),gn(t,e),On=r,En(e),i&4&&a!==null&&a.memoizedState.isDehydrated)try{Ii(t.containerInfo)}catch(he){We(e,e.return,he)}ds&&(ds=!1,Ch(e));break;case 4:i=On,On=yu(e.stateNode.containerInfo),gn(t,e),En(e),On=i;break;case 12:gn(t,e),En(e);break;case 13:gn(t,e),En(e),e.child.flags&8192&&e.memoizedState!==null!=(a!==null&&a.memoizedState!==null)&&(xs=mt()),i&4&&(i=e.updateQueue,i!==null&&(e.updateQueue=null,hs(e,i)));break;case 22:if(i&512&&(ft||a===null||It(a,a.return)),x=e.memoizedState!==null,D=a!==null&&a.memoizedState!==null,k=aa,$=ft,aa=k||x,ft=$||D,gn(t,e),ft=$,aa=k,En(e),t=e.stateNode,t._current=e,t._visibility&=-3,t._visibility|=t._pendingVisibility&2,i&8192&&(t._visibility=x?t._visibility&-2:t._visibility|1,x&&(t=aa||ft,a===null||D||t||Vl(e)),e.memoizedProps===null||e.memoizedProps.mode!=="manual"))e:for(a=null,t=e;;){if(t.tag===5||t.tag===26||t.tag===27){if(a===null){D=a=t;try{if(r=D.stateNode,x)o=r.style,typeof o.setProperty=="function"?o.setProperty("display","none","important"):o.display="none";else{m=D.stateNode,E=D.memoizedProps.style;var V=E!=null&&E.hasOwnProperty("display")?E.display:null;m.style.display=V==null||typeof V=="boolean"?"":(""+V).trim()}}catch(he){We(D,D.return,he)}}}else if(t.tag===6){if(a===null){D=t;try{D.stateNode.nodeValue=x?"":D.memoizedProps}catch(he){We(D,D.return,he)}}}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;a===t&&(a=null),t=t.return}a===t&&(a=null),t.sibling.return=t.return,t=t.sibling}i&4&&(i=e.updateQueue,i!==null&&(a=i.retryQueue,a!==null&&(i.retryQueue=null,hs(e,a))));break;case 19:gn(t,e),En(e),i&4&&(i=e.updateQueue,i!==null&&(e.updateQueue=null,hs(e,i)));break;case 21:break;default:gn(t,e),En(e)}}function En(e){var t=e.flags;if(t&2){try{if(e.tag!==27){e:{for(var a=e.return;a!==null;){if(Eh(a)){var i=a;break e}a=a.return}throw Error(s(160))}switch(i.tag){case 27:var r=i.stateNode,o=os(e);eu(e,o,r);break;case 5:var m=i.stateNode;i.flags&32&&(_l(m,""),i.flags&=-33);var E=os(e);eu(e,E,m);break;case 3:case 4:var x=i.stateNode.containerInfo,D=os(e);fs(e,D,x);break;default:throw Error(s(161))}}}catch(k){We(e,e.return,k)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function Ch(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;Ch(t),t.tag===5&&t.flags&1024&&t.stateNode.reset(),e=e.sibling}}function ia(e,t){if(t.subtreeFlags&8772)for(t=t.child;t!==null;)xh(e,t.alternate,t),t=t.sibling}function Vl(e){for(e=e.child;e!==null;){var t=e;switch(t.tag){case 0:case 11:case 14:case 15:Ta(4,t,t.return),Vl(t);break;case 1:It(t,t.return);var a=t.stateNode;typeof a.componentWillUnmount=="function"&&ph(t,t.return,a),Vl(t);break;case 26:case 27:case 5:It(t,t.return),Vl(t);break;case 22:It(t,t.return),t.memoizedState===null&&Vl(t);break;default:Vl(t)}e=e.sibling}}function Na(e,t,a){for(a=a&&(t.subtreeFlags&8772)!==0,t=t.child;t!==null;){var i=t.alternate,r=e,o=t,m=o.flags;switch(o.tag){case 0:case 11:case 15:Na(r,o,a),Li(4,o);break;case 1:if(Na(r,o,a),i=o,r=i.stateNode,typeof r.componentDidMount=="function")try{r.componentDidMount()}catch(D){We(i,i.return,D)}if(i=o,r=i.updateQueue,r!==null){var E=i.stateNode;try{var x=r.shared.hiddenCallbacks;if(x!==null)for(r.shared.hiddenCallbacks=null,r=0;r<x.length;r++)hh(x[r],E)}catch(D){We(i,i.return,D)}}a&&m&64&&yh(o),ul(o,o.return);break;case 26:case 27:case 5:Na(r,o,a),a&&i===null&&m&4&&vh(o),ul(o,o.return);break;case 12:Na(r,o,a);break;case 13:Na(r,o,a),a&&m&4&&Th(r,o);break;case 22:o.memoizedState===null&&Na(r,o,a),ul(o,o.return);break;default:Na(r,o,a)}t=t.sibling}}function ms(e,t){var a=null;e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(a=e.memoizedState.cachePool.pool),e=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(e=t.memoizedState.cachePool.pool),e!==a&&(e!=null&&e.refCount++,a!=null&&Ti(a))}function ys(e,t){e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&Ti(e))}function Ca(e,t,a,i){if(t.subtreeFlags&10256)for(t=t.child;t!==null;)jh(e,t,a,i),t=t.sibling}function jh(e,t,a,i){var r=t.flags;switch(t.tag){case 0:case 11:case 15:Ca(e,t,a,i),r&2048&&Li(9,t);break;case 3:Ca(e,t,a,i),r&2048&&(e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&Ti(e)));break;case 12:if(r&2048){Ca(e,t,a,i),e=t.stateNode;try{var o=t.memoizedProps,m=o.id,E=o.onPostCommit;typeof E=="function"&&E(m,t.alternate===null?"mount":"update",e.passiveEffectDuration,-0)}catch(x){We(t,t.return,x)}}else Ca(e,t,a,i);break;case 23:break;case 22:o=t.stateNode,t.memoizedState!==null?o._visibility&4?Ca(e,t,a,i):Ui(e,t):o._visibility&4?Ca(e,t,a,i):(o._visibility|=4,Yl(e,t,a,i,(t.subtreeFlags&10256)!==0)),r&2048&&ms(t.alternate,t);break;case 24:Ca(e,t,a,i),r&2048&&ys(t.alternate,t);break;default:Ca(e,t,a,i)}}function Yl(e,t,a,i,r){for(r=r&&(t.subtreeFlags&10256)!==0,t=t.child;t!==null;){var o=e,m=t,E=a,x=i,D=m.flags;switch(m.tag){case 0:case 11:case 15:Yl(o,m,E,x,r),Li(8,m);break;case 23:break;case 22:var k=m.stateNode;m.memoizedState!==null?k._visibility&4?Yl(o,m,E,x,r):Ui(o,m):(k._visibility|=4,Yl(o,m,E,x,r)),r&&D&2048&&ms(m.alternate,m);break;case 24:Yl(o,m,E,x,r),r&&D&2048&&ys(m.alternate,m);break;default:Yl(o,m,E,x,r)}t=t.sibling}}function Ui(e,t){if(t.subtreeFlags&10256)for(t=t.child;t!==null;){var a=e,i=t,r=i.flags;switch(i.tag){case 22:Ui(a,i),r&2048&&ms(i.alternate,i);break;case 24:Ui(a,i),r&2048&&ys(i.alternate,i);break;default:Ui(a,i)}t=t.sibling}}var Hi=8192;function kl(e){if(e.subtreeFlags&Hi)for(e=e.child;e!==null;)Oh(e),e=e.sibling}function Oh(e){switch(e.tag){case 26:kl(e),e.flags&Hi&&e.memoizedState!==null&&Ug(On,e.memoizedState,e.memoizedProps);break;case 5:kl(e);break;case 3:case 4:var t=On;On=yu(e.stateNode.containerInfo),kl(e),On=t;break;case 22:e.memoizedState===null&&(t=e.alternate,t!==null&&t.memoizedState!==null?(t=Hi,Hi=16777216,kl(e),Hi=t):kl(e));break;default:kl(e)}}function Dh(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 Bi(e){var t=e.deletions;if(e.flags&16){if(t!==null)for(var a=0;a<t.length;a++){var i=t[a];Ct=i,Ah(i,e)}Dh(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)wh(e),e=e.sibling}function wh(e){switch(e.tag){case 0:case 11:case 15:Bi(e),e.flags&2048&&Ta(9,e,e.return);break;case 3:Bi(e);break;case 12:Bi(e);break;case 22:var t=e.stateNode;e.memoizedState!==null&&t._visibility&4&&(e.return===null||e.return.tag!==13)?(t._visibility&=-5,tu(e)):Bi(e);break;default:Bi(e)}}function tu(e){var t=e.deletions;if(e.flags&16){if(t!==null)for(var a=0;a<t.length;a++){var i=t[a];Ct=i,Ah(i,e)}Dh(e)}for(e=e.child;e!==null;){switch(t=e,t.tag){case 0:case 11:case 15:Ta(8,t,t.return),tu(t);break;case 22:a=t.stateNode,a._visibility&4&&(a._visibility&=-5,tu(t));break;default:tu(t)}e=e.sibling}}function Ah(e,t){for(;Ct!==null;){var a=Ct;switch(a.tag){case 0:case 11:case 15:Ta(8,a,t);break;case 23:case 22:if(a.memoizedState!==null&&a.memoizedState.cachePool!==null){var i=a.memoizedState.cachePool.pool;i!=null&&i.refCount++}break;case 24:Ti(a.memoizedState.cache)}if(i=a.child,i!==null)i.return=a,Ct=i;else e:for(a=e;Ct!==null;){i=Ct;var r=i.sibling,o=i.return;if(_h(i),i===a){Ct=null;break e}if(r!==null){r.return=o,Ct=r;break e}Ct=o}}}function Fv(e,t,a,i){this.tag=e,this.key=a,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=i,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function bn(e,t,a,i){return new Fv(e,t,a,i)}function ps(e){return e=e.prototype,!(!e||!e.isReactComponent)}function ja(e,t){var a=e.alternate;return a===null?(a=bn(e.tag,t,e.key,e.mode),a.elementType=e.elementType,a.type=e.type,a.stateNode=e.stateNode,a.alternate=e,e.alternate=a):(a.pendingProps=t,a.type=e.type,a.flags=0,a.subtreeFlags=0,a.deletions=null),a.flags=e.flags&31457280,a.childLanes=e.childLanes,a.lanes=e.lanes,a.child=e.child,a.memoizedProps=e.memoizedProps,a.memoizedState=e.memoizedState,a.updateQueue=e.updateQueue,t=e.dependencies,a.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},a.sibling=e.sibling,a.index=e.index,a.ref=e.ref,a.refCleanup=e.refCleanup,a}function Mh(e,t){e.flags&=31457282;var a=e.alternate;return a===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=a.childLanes,e.lanes=a.lanes,e.child=a.child,e.subtreeFlags=0,e.deletions=null,e.memoizedProps=a.memoizedProps,e.memoizedState=a.memoizedState,e.updateQueue=a.updateQueue,e.type=a.type,t=a.dependencies,e.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext}),e}function nu(e,t,a,i,r,o){var m=0;if(i=e,typeof e=="function")ps(e)&&(m=1);else if(typeof e=="string")m=zg(e,a,Ze.current)?26:e==="html"||e==="head"||e==="body"?27:5;else e:switch(e){case v:return cl(a.children,r,o,t);case p:m=8,r|=24;break;case b:return e=bn(12,a,t,r|2),e.elementType=b,e.lanes=o,e;case H:return e=bn(13,a,t,r),e.elementType=H,e.lanes=o,e;case U:return e=bn(19,a,t,r),e.elementType=U,e.lanes=o,e;case Y:return zh(a,r,o,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case R:case _:m=10;break e;case S:m=9;break e;case O:m=11;break e;case M:m=14;break e;case q:m=16,i=null;break e}m=29,a=Error(s(130,e===null?"null":typeof e,"")),i=null}return t=bn(m,a,t,r),t.elementType=e,t.type=i,t.lanes=o,t}function cl(e,t,a,i){return e=bn(7,e,i,t),e.lanes=a,e}function zh(e,t,a,i){e=bn(22,e,i,t),e.elementType=Y,e.lanes=a;var r={_visibility:1,_pendingVisibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null,_current:null,detach:function(){var o=r._current;if(o===null)throw Error(s(456));if(!(r._pendingVisibility&2)){var m=pa(o,2);m!==null&&(r._pendingVisibility|=2,Xt(m,o,2))}},attach:function(){var o=r._current;if(o===null)throw Error(s(456));if(r._pendingVisibility&2){var m=pa(o,2);m!==null&&(r._pendingVisibility&=-3,Xt(m,o,2))}}};return e.stateNode=r,e}function vs(e,t,a){return e=bn(6,e,null,t),e.lanes=a,e}function gs(e,t,a){return t=bn(4,e.children!==null?e.children:[],e.key,t),t.lanes=a,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function ra(e){e.flags|=4}function Lh(e,t){if(t.type!=="stylesheet"||t.state.loading&4)e.flags&=-16777217;else if(e.flags|=16777216,!Em(t)){if(t=vn.current,t!==null&&((Ve&4194176)===Ve?Hn!==null:(Ve&62914560)!==Ve&&!(Ve&536870912)||t!==Hn))throw xi=_c,Wf;e.flags|=8192}}function au(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag!==22?C():536870912,e.lanes|=t,Xl|=t)}function qi(e,t){if(!ke)switch(e.tailMode){case"hidden":t=e.tail;for(var a=null;t!==null;)t.alternate!==null&&(a=t),t=t.sibling;a===null?e.tail=null:a.sibling=null;break;case"collapsed":a=e.tail;for(var i=null;a!==null;)a.alternate!==null&&(i=a),a=a.sibling;i===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:i.sibling=null}}function ct(e){var t=e.alternate!==null&&e.alternate.child===e.child,a=0,i=0;if(t)for(var r=e.child;r!==null;)a|=r.lanes|r.childLanes,i|=r.subtreeFlags&31457280,i|=r.flags&31457280,r.return=e,r=r.sibling;else for(r=e.child;r!==null;)a|=r.lanes|r.childLanes,i|=r.subtreeFlags,i|=r.flags,r.return=e,r=r.sibling;return e.subtreeFlags|=i,e.childLanes=a,t}function Jv(e,t,a){var i=t.pendingProps;switch(Sc(t),t.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return ct(t),null;case 1:return ct(t),null;case 3:return a=t.stateNode,i=null,e!==null&&(i=e.memoizedState.cache),t.memoizedState.cache!==i&&(t.flags|=2048),na(_t),Rt(),a.pendingContext&&(a.context=a.pendingContext,a.pendingContext=null),(e===null||e.child===null)&&(gi(t)?ra(t):e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,jn!==null&&(Ns(jn),jn=null))),ct(t),null;case 26:return a=t.memoizedState,e===null?(ra(t),a!==null?(ct(t),Lh(t,a)):(ct(t),t.flags&=-16777217)):a?a!==e.memoizedState?(ra(t),ct(t),Lh(t,a)):(ct(t),t.flags&=-16777217):(e.memoizedProps!==i&&ra(t),ct(t),t.flags&=-16777217),null;case 27:Pt(t),a=it.current;var r=t.type;if(e!==null&&t.stateNode!=null)e.memoizedProps!==i&&ra(t);else{if(!i){if(t.stateNode===null)throw Error(s(166));return ct(t),null}e=Ze.current,gi(t)?Jf(t):(e=fm(r,i,a),t.stateNode=e,ra(t))}return ct(t),null;case 5:if(Pt(t),a=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==i&&ra(t);else{if(!i){if(t.stateNode===null)throw Error(s(166));return ct(t),null}if(e=Ze.current,gi(t))Jf(t);else{switch(r=mu(it.current),e){case 1:e=r.createElementNS("http://www.w3.org/2000/svg",a);break;case 2:e=r.createElementNS("http://www.w3.org/1998/Math/MathML",a);break;default:switch(a){case"svg":e=r.createElementNS("http://www.w3.org/2000/svg",a);break;case"math":e=r.createElementNS("http://www.w3.org/1998/Math/MathML",a);break;case"script":e=r.createElement("div"),e.innerHTML="<script><\/script>",e=e.removeChild(e.firstChild);break;case"select":e=typeof i.is=="string"?r.createElement("select",{is:i.is}):r.createElement("select"),i.multiple?e.multiple=!0:i.size&&(e.size=i.size);break;default:e=typeof i.is=="string"?r.createElement(a,{is:i.is}):r.createElement(a)}}e[fe]=t,e[ve]=i;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(zt(e,a,i),a){case"button":case"input":case"select":case"textarea":e=!!i.autoFocus;break e;case"img":e=!0;break e;default:e=!1}e&&ra(t)}}return ct(t),t.flags&=-16777217,null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==i&&ra(t);else{if(typeof i!="string"&&t.stateNode===null)throw Error(s(166));if(e=it.current,gi(t)){if(e=t.stateNode,a=t.memoizedProps,i=null,r=Gt,r!==null)switch(r.tag){case 27:case 5:i=r.memoizedProps}e[fe]=t,e=!!(e.nodeValue===a||i!==null&&i.suppressHydrationWarning===!0||im(e.nodeValue,a)),e||Wa(t)}else e=mu(e).createTextNode(i),e[fe]=t,t.stateNode=e}return ct(t),null;case 13:if(i=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(r=gi(t),i!==null&&i.dehydrated!==null){if(e===null){if(!r)throw Error(s(318));if(r=t.memoizedState,r=r!==null?r.dehydrated:null,!r)throw Error(s(317));r[fe]=t}else Ei(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;ct(t),r=!1}else jn!==null&&(Ns(jn),jn=null),r=!0;if(!r)return t.flags&256?(Wn(t),t):(Wn(t),null)}if(Wn(t),t.flags&128)return t.lanes=a,t;if(a=i!==null,e=e!==null&&e.memoizedState!==null,a){i=t.child,r=null,i.alternate!==null&&i.alternate.memoizedState!==null&&i.alternate.memoizedState.cachePool!==null&&(r=i.alternate.memoizedState.cachePool.pool);var o=null;i.memoizedState!==null&&i.memoizedState.cachePool!==null&&(o=i.memoizedState.cachePool.pool),o!==r&&(i.flags|=2048)}return a!==e&&a&&(t.child.flags|=8192),au(t,t.updateQueue),ct(t),null;case 4:return Rt(),e===null&&Hs(t.stateNode.containerInfo),ct(t),null;case 10:return na(t.type),ct(t),null;case 19:if(Le(xt),r=t.memoizedState,r===null)return ct(t),null;if(i=(t.flags&128)!==0,o=r.rendering,o===null)if(i)qi(r,!1);else{if(dt!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(o=Vr(e),o!==null){for(t.flags|=128,qi(r,!1),e=o.updateQueue,t.updateQueue=e,au(t,e),t.subtreeFlags=0,e=a,a=t.child;a!==null;)Mh(a,e),a=a.sibling;return Ee(xt,xt.current&1|2),t.child}e=e.sibling}r.tail!==null&&mt()>lu&&(t.flags|=128,i=!0,qi(r,!1),t.lanes=4194304)}else{if(!i)if(e=Vr(o),e!==null){if(t.flags|=128,i=!0,e=e.updateQueue,t.updateQueue=e,au(t,e),qi(r,!0),r.tail===null&&r.tailMode==="hidden"&&!o.alternate&&!ke)return ct(t),null}else 2*mt()-r.renderingStartTime>lu&&a!==536870912&&(t.flags|=128,i=!0,qi(r,!1),t.lanes=4194304);r.isBackwards?(o.sibling=t.child,t.child=o):(e=r.last,e!==null?e.sibling=o:t.child=o,r.last=o)}return r.tail!==null?(t=r.tail,r.rendering=t,r.tail=t.sibling,r.renderingStartTime=mt(),t.sibling=null,e=xt.current,Ee(xt,i?e&1|2:e&1),t):(ct(t),null);case 22:case 23:return Wn(t),Tc(),i=t.memoizedState!==null,e!==null?e.memoizedState!==null!==i&&(t.flags|=8192):i&&(t.flags|=8192),i?a&536870912&&!(t.flags&128)&&(ct(t),t.subtreeFlags&6&&(t.flags|=8192)):ct(t),a=t.updateQueue,a!==null&&au(t,a.retryQueue),a=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(a=e.memoizedState.cachePool.pool),i=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(i=t.memoizedState.cachePool.pool),i!==a&&(t.flags|=2048),e!==null&&Le(el),null;case 24:return a=null,e!==null&&(a=e.memoizedState.cache),t.memoizedState.cache!==a&&(t.flags|=2048),na(_t),ct(t),null;case 25:return null}throw Error(s(156,t.tag))}function Pv(e,t){switch(Sc(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return na(_t),Rt(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return Pt(t),null;case 13:if(Wn(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(s(340));Ei()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return Le(xt),null;case 4:return Rt(),null;case 10:return na(t.type),null;case 22:case 23:return Wn(t),Tc(),e!==null&&Le(el),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return na(_t),null;case 25:return null;default:return null}}function Uh(e,t){switch(Sc(t),t.tag){case 3:na(_t),Rt();break;case 26:case 27:case 5:Pt(t);break;case 4:Rt();break;case 13:Wn(t);break;case 19:Le(xt);break;case 10:na(t.type);break;case 22:case 23:Wn(t),Tc(),e!==null&&Le(el);break;case 24:na(_t)}}var Wv={getCacheForType:function(e){var t=qt(_t),a=t.data.get(e);return a===void 0&&(a=e(),t.data.set(e,a)),a}},Iv=typeof WeakMap=="function"?WeakMap:Map,st=0,tt=null,Me=null,Ve=0,nt=0,tn=null,ua=!1,Gl=!1,Es=!1,ca=0,dt=0,Oa=0,sl=0,bs=0,Sn=0,Xl=0,Vi=null,qn=null,Ss=!1,xs=0,lu=1/0,iu=null,Da=null,ru=!1,ol=null,Yi=0,_s=0,Rs=null,ki=0,Ts=null;function nn(){if(st&2&&Ve!==0)return Ve&-Ve;if(X.T!==null){var e=Ll;return e!==0?e:Ms()}return re()}function Hh(){Sn===0&&(Sn=!(Ve&536870912)||ke?Er():536870912);var e=vn.current;return e!==null&&(e.flags|=32),Sn}function Xt(e,t,a){(e===tt&&nt===2||e.cancelPendingCommit!==null)&&(Ql(e,0),sa(e,Ve,Sn,!1)),B(e,a),(!(st&2)||e!==tt)&&(e===tt&&(!(st&2)&&(sl|=a),dt===4&&sa(e,Ve,Sn,!1)),Vn(e))}function Bh(e,t,a){if(st&6)throw Error(s(327));var i=!a&&(t&60)===0&&(t&e.expiredLanes)===0||Ln(e,t),r=i?ng(e,t):Os(e,t,!0),o=i;do{if(r===0){Gl&&!i&&sa(e,t,0,!1);break}else if(r===6)sa(e,t,0,!ua);else{if(a=e.current.alternate,o&&!eg(a)){r=Os(e,t,!1),o=!1;continue}if(r===2){if(o=t,e.errorRecoveryDisabledLanes&o)var m=0;else m=e.pendingLanes&-536870913,m=m!==0?m:m&536870912?536870912:0;if(m!==0){t=m;e:{var E=e;r=Vi;var x=E.current.memoizedState.isDehydrated;if(x&&(Ql(E,m).flags|=256),m=Os(E,m,!1),m!==2){if(Es&&!x){E.errorRecoveryDisabledLanes|=o,sl|=o,r=4;break e}o=qn,qn=r,o!==null&&Ns(o)}r=m}if(o=!1,r!==2)continue}}if(r===1){Ql(e,0),sa(e,t,0,!0);break}e:{switch(i=e,r){case 0:case 1:throw Error(s(345));case 4:if((t&4194176)===t){sa(i,t,Sn,!ua);break e}break;case 2:qn=null;break;case 3:case 5:break;default:throw Error(s(329))}if(i.finishedWork=a,i.finishedLanes=t,(t&62914560)===t&&(o=xs+300-mt(),10<o)){if(sa(i,t,Sn,!ua),Qn(i,0)!==0)break e;i.timeoutHandle=cm(qh.bind(null,i,a,qn,iu,Ss,t,Sn,sl,Xl,ua,2,-0,0),o);break e}qh(i,a,qn,iu,Ss,t,Sn,sl,Xl,ua,0,-0,0)}}break}while(!0);Vn(e)}function Ns(e){qn===null?qn=e:qn.push.apply(qn,e)}function qh(e,t,a,i,r,o,m,E,x,D,k,$,L){var V=t.subtreeFlags;if((V&8192||(V&16785408)===16785408)&&($i={stylesheets:null,count:0,unsuspend:Lg},Oh(t),t=Hg(),t!==null)){e.cancelPendingCommit=t(Zh.bind(null,e,a,i,r,m,E,x,1,$,L)),sa(e,o,m,!D);return}Zh(e,a,i,r,m,E,x,k,$,L)}function eg(e){for(var t=e;;){var a=t.tag;if((a===0||a===11||a===15)&&t.flags&16384&&(a=t.updateQueue,a!==null&&(a=a.stores,a!==null)))for(var i=0;i<a.length;i++){var r=a[i],o=r.getSnapshot;r=r.value;try{if(!Wt(o(),r))return!1}catch{return!1}}if(a=t.child,t.subtreeFlags&16384&&a!==null)a.return=t,t=a;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 sa(e,t,a,i){t&=~bs,t&=~sl,e.suspendedLanes|=t,e.pingedLanes&=~t,i&&(e.warmLanes|=t),i=e.expirationTimes;for(var r=t;0<r;){var o=31-Tt(r),m=1<<o;i[o]=-1,r&=~m}a!==0&&ae(e,a,t)}function uu(){return st&6?!0:(Gi(0),!1)}function Cs(){if(Me!==null){if(nt===0)var e=Me.return;else e=Me,ta=il=null,Mc(e),Ml=null,_i=0,e=Me;for(;e!==null;)Uh(e.alternate,e),e=e.return;Me=null}}function Ql(e,t){e.finishedWork=null,e.finishedLanes=0;var a=e.timeoutHandle;a!==-1&&(e.timeoutHandle=-1,Eg(a)),a=e.cancelPendingCommit,a!==null&&(e.cancelPendingCommit=null,a()),Cs(),tt=e,Me=a=ja(e.current,null),Ve=t,nt=0,tn=null,ua=!1,Gl=Ln(e,t),Es=!1,Xl=Sn=bs=sl=Oa=dt=0,qn=Vi=null,Ss=!1,t&8&&(t|=t&32);var i=e.entangledLanes;if(i!==0)for(e=e.entanglements,i&=t;0<i;){var r=31-Tt(i),o=1<<r;t|=e[r],i&=~o}return ca=t,wr(),a}function Vh(e,t){Oe=null,X.H=Bn,t===Si?(t=td(),nt=3):t===Wf?(t=td(),nt=4):nt=t===Id?8:t!==null&&typeof t=="object"&&typeof t.then=="function"?6:1,tn=t,Me===null&&(dt=1,Pr(e,mn(t,e.current)))}function Yh(){var e=X.H;return X.H=Bn,e===null?Bn:e}function kh(){var e=X.A;return X.A=Wv,e}function js(){dt=4,ua||(Ve&4194176)!==Ve&&vn.current!==null||(Gl=!0),!(Oa&134217727)&&!(sl&134217727)||tt===null||sa(tt,Ve,Sn,!1)}function Os(e,t,a){var i=st;st|=2;var r=Yh(),o=kh();(tt!==e||Ve!==t)&&(iu=null,Ql(e,t)),t=!1;var m=dt;e:do try{if(nt!==0&&Me!==null){var E=Me,x=tn;switch(nt){case 8:Cs(),m=6;break e;case 3:case 2:case 6:vn.current===null&&(t=!0);var D=nt;if(nt=0,tn=null,Zl(e,E,x,D),a&&Gl){m=0;break e}break;default:D=nt,nt=0,tn=null,Zl(e,E,x,D)}}tg(),m=dt;break}catch(k){Vh(e,k)}while(!0);return t&&e.shellSuspendCounter++,ta=il=null,st=i,X.H=r,X.A=o,Me===null&&(tt=null,Ve=0,wr()),m}function tg(){for(;Me!==null;)Gh(Me)}function ng(e,t){var a=st;st|=2;var i=Yh(),r=kh();tt!==e||Ve!==t?(iu=null,lu=mt()+500,Ql(e,t)):Gl=Ln(e,t);e:do try{if(nt!==0&&Me!==null){t=Me;var o=tn;t:switch(nt){case 1:nt=0,tn=null,Zl(e,t,o,1);break;case 2:if(If(o)){nt=0,tn=null,Xh(t);break}t=function(){nt===2&&tt===e&&(nt=7),Vn(e)},o.then(t,t);break e;case 3:nt=7;break e;case 4:nt=5;break e;case 7:If(o)?(nt=0,tn=null,Xh(t)):(nt=0,tn=null,Zl(e,t,o,7));break;case 5:var m=null;switch(Me.tag){case 26:m=Me.memoizedState;case 5:case 27:var E=Me;if(!m||Em(m)){nt=0,tn=null;var x=E.sibling;if(x!==null)Me=x;else{var D=E.return;D!==null?(Me=D,cu(D)):Me=null}break t}}nt=0,tn=null,Zl(e,t,o,5);break;case 6:nt=0,tn=null,Zl(e,t,o,6);break;case 8:Cs(),dt=6;break e;default:throw Error(s(462))}}ag();break}catch(k){Vh(e,k)}while(!0);return ta=il=null,X.H=i,X.A=r,st=a,Me!==null?0:(tt=null,Ve=0,wr(),dt)}function ag(){for(;Me!==null&&!Ut();)Gh(Me)}function Gh(e){var t=fh(e.alternate,e,ca);e.memoizedProps=e.pendingProps,t===null?cu(e):Me=t}function Xh(e){var t=e,a=t.alternate;switch(t.tag){case 15:case 0:t=ih(a,t,t.pendingProps,t.type,void 0,Ve);break;case 11:t=ih(a,t,t.pendingProps,t.type.render,t.ref,Ve);break;case 5:Mc(t);default:Uh(a,t),t=Me=Mh(t,ca),t=fh(a,t,ca)}e.memoizedProps=e.pendingProps,t===null?cu(e):Me=t}function Zl(e,t,a,i){ta=il=null,Mc(t),Ml=null,_i=0;var r=t.return;try{if(Qv(e,r,t,a,Ve)){dt=1,Pr(e,mn(a,e.current)),Me=null;return}}catch(o){if(r!==null)throw Me=r,o;dt=1,Pr(e,mn(a,e.current)),Me=null;return}t.flags&32768?(ke||i===1?e=!0:Gl||Ve&536870912?e=!1:(ua=e=!0,(i===2||i===3||i===6)&&(i=vn.current,i!==null&&i.tag===13&&(i.flags|=16384))),Qh(t,e)):cu(t)}function cu(e){var t=e;do{if(t.flags&32768){Qh(t,ua);return}e=t.return;var a=Jv(t.alternate,t,ca);if(a!==null){Me=a;return}if(t=t.sibling,t!==null){Me=t;return}Me=t=e}while(t!==null);dt===0&&(dt=5)}function Qh(e,t){do{var a=Pv(e.alternate,e);if(a!==null){a.flags&=32767,Me=a;return}if(a=e.return,a!==null&&(a.flags|=32768,a.subtreeFlags=0,a.deletions=null),!t&&(e=e.sibling,e!==null)){Me=e;return}Me=e=a}while(e!==null);dt=6,Me=null}function Zh(e,t,a,i,r,o,m,E,x,D){var k=X.T,$=P.p;try{P.p=2,X.T=null,lg(e,t,a,i,$,r,o,m,E,x,D)}finally{X.T=k,P.p=$}}function lg(e,t,a,i,r,o,m,E){do Kl();while(ol!==null);if(st&6)throw Error(s(327));var x=e.finishedWork;if(i=e.finishedLanes,x===null)return null;if(e.finishedWork=null,e.finishedLanes=0,x===e.current)throw Error(s(177));e.callbackNode=null,e.callbackPriority=0,e.cancelPendingCommit=null;var D=x.lanes|x.childLanes;if(D|=gc,F(e,i,D,o,m,E),e===tt&&(Me=tt=null,Ve=0),!(x.subtreeFlags&10256)&&!(x.flags&10256)||ru||(ru=!0,_s=D,Rs=a,cg(kt,function(){return Kl(),null})),a=(x.flags&15990)!==0,x.subtreeFlags&15990||a?(a=X.T,X.T=null,o=P.p,P.p=2,m=st,st|=4,Kv(e,x),Nh(x,e),jv(Ys,e.containerInfo),bu=!!Vs,Ys=Vs=null,e.current=x,xh(e,x.alternate,x),Ht(),st=m,P.p=o,X.T=a):e.current=x,ru?(ru=!1,ol=e,Yi=i):Kh(e,D),D=e.pendingLanes,D===0&&(Da=null),Ju(x.stateNode),Vn(e),t!==null)for(r=e.onRecoverableError,x=0;x<t.length;x++)D=t[x],r(D.value,{componentStack:D.stack});return Yi&3&&Kl(),D=e.pendingLanes,i&4194218&&D&42?e===Ts?ki++:(ki=0,Ts=e):ki=0,Gi(0),null}function Kh(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,Ti(t)))}function Kl(){if(ol!==null){var e=ol,t=_s;_s=0;var a=xe(Yi),i=X.T,r=P.p;try{if(P.p=32>a?32:a,X.T=null,ol===null)var o=!1;else{a=Rs,Rs=null;var m=ol,E=Yi;if(ol=null,Yi=0,st&6)throw Error(s(331));var x=st;if(st|=4,wh(m.current),jh(m,m.current,E,a),st=x,Gi(0,!1),Bt&&typeof Bt.onPostCommitFiberRoot=="function")try{Bt.onPostCommitFiberRoot(ma,m)}catch{}o=!0}return o}finally{P.p=r,X.T=i,Kh(e,t)}}return!1}function $h(e,t,a){t=mn(a,t),t=Kc(e.stateNode,t,2),e=Ra(e,t,2),e!==null&&(B(e,2),Vn(e))}function We(e,t,a){if(e.tag===3)$h(e,e,a);else for(;t!==null;){if(t.tag===3){$h(t,e,a);break}else if(t.tag===1){var i=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof i.componentDidCatch=="function"&&(Da===null||!Da.has(i))){e=mn(a,e),a=Pd(2),i=Ra(t,a,2),i!==null&&(Wd(a,i,t,e),B(i,2),Vn(i));break}}t=t.return}}function Ds(e,t,a){var i=e.pingCache;if(i===null){i=e.pingCache=new Iv;var r=new Set;i.set(t,r)}else r=i.get(t),r===void 0&&(r=new Set,i.set(t,r));r.has(a)||(Es=!0,r.add(a),e=ig.bind(null,e,t,a),t.then(e,e))}function ig(e,t,a){var i=e.pingCache;i!==null&&i.delete(t),e.pingedLanes|=e.suspendedLanes&a,e.warmLanes&=~a,tt===e&&(Ve&a)===a&&(dt===4||dt===3&&(Ve&62914560)===Ve&&300>mt()-xs?!(st&2)&&Ql(e,0):bs|=a,Xl===Ve&&(Xl=0)),Vn(e)}function Fh(e,t){t===0&&(t=C()),e=pa(e,t),e!==null&&(B(e,t),Vn(e))}function rg(e){var t=e.memoizedState,a=0;t!==null&&(a=t.retryLane),Fh(e,a)}function ug(e,t){var a=0;switch(e.tag){case 13:var i=e.stateNode,r=e.memoizedState;r!==null&&(a=r.retryLane);break;case 19:i=e.stateNode;break;case 22:i=e.stateNode._retryCache;break;default:throw Error(s(314))}i!==null&&i.delete(t),Fh(e,a)}function cg(e,t){return un(e,t)}var su=null,$l=null,ws=!1,ou=!1,As=!1,fl=0;function Vn(e){e!==$l&&e.next===null&&($l===null?su=$l=e:$l=$l.next=e),ou=!0,ws||(ws=!0,og(sg))}function Gi(e,t){if(!As&&ou){As=!0;do for(var a=!1,i=su;i!==null;){if(e!==0){var r=i.pendingLanes;if(r===0)var o=0;else{var m=i.suspendedLanes,E=i.pingedLanes;o=(1<<31-Tt(42|e)+1)-1,o&=r&~(m&~E),o=o&201326677?o&201326677|1:o?o|2:0}o!==0&&(a=!0,Wh(i,o))}else o=Ve,o=Qn(i,i===tt?o:0),!(o&3)||Ln(i,o)||(a=!0,Wh(i,o));i=i.next}while(a);As=!1}}function sg(){ou=ws=!1;var e=0;fl!==0&&(gg()&&(e=fl),fl=0);for(var t=mt(),a=null,i=su;i!==null;){var r=i.next,o=Jh(i,t);o===0?(i.next=null,a===null?su=r:a.next=r,r===null&&($l=a)):(a=i,(e!==0||o&3)&&(ou=!0)),i=r}Gi(e)}function Jh(e,t){for(var a=e.suspendedLanes,i=e.pingedLanes,r=e.expirationTimes,o=e.pendingLanes&-62914561;0<o;){var m=31-Tt(o),E=1<<m,x=r[m];x===-1?(!(E&a)||E&i)&&(r[m]=Wu(E,t)):x<=t&&(e.expiredLanes|=E),o&=~E}if(t=tt,a=Ve,a=Qn(e,e===t?a:0),i=e.callbackNode,a===0||e===t&&nt===2||e.cancelPendingCommit!==null)return i!==null&&i!==null&&cn(i),e.callbackNode=null,e.callbackPriority=0;if(!(a&3)||Ln(e,a)){if(t=a&-a,t===e.callbackPriority)return t;switch(i!==null&&cn(i),xe(a)){case 2:case 8:a=Ie;break;case 32:a=kt;break;case 268435456:a=pr;break;default:a=kt}return i=Ph.bind(null,e),a=un(a,i),e.callbackPriority=t,e.callbackNode=a,t}return i!==null&&i!==null&&cn(i),e.callbackPriority=2,e.callbackNode=null,2}function Ph(e,t){var a=e.callbackNode;if(Kl()&&e.callbackNode!==a)return null;var i=Ve;return i=Qn(e,e===tt?i:0),i===0?null:(Bh(e,i,t),Jh(e,mt()),e.callbackNode!=null&&e.callbackNode===a?Ph.bind(null,e):null)}function Wh(e,t){if(Kl())return null;Bh(e,t,!0)}function og(e){bg(function(){st&6?un(_e,e):e()})}function Ms(){return fl===0&&(fl=Er()),fl}function Ih(e){return e==null||typeof e=="symbol"||typeof e=="boolean"?null:typeof e=="function"?e:Rr(""+e)}function em(e,t){var a=t.ownerDocument.createElement("input");return a.name=t.name,a.value=t.value,e.id&&a.setAttribute("form",e.id),t.parentNode.insertBefore(a,t),e=new FormData(e),a.parentNode.removeChild(a),e}function fg(e,t,a,i,r){if(t==="submit"&&a&&a.stateNode===r){var o=Ih((r[ve]||null).action),m=i.submitter;m&&(t=(t=m[ve]||null)?Ih(t.formAction):m.getAttribute("formAction"),t!==null&&(o=t,m=null));var E=new jr("action","action",null,i,r);e.push({event:E,listeners:[{instance:null,listener:function(){if(i.defaultPrevented){if(fl!==0){var x=m?em(r,m):new FormData(r);kc(a,{pending:!0,data:x,method:r.method,action:o},null,x)}}else typeof o=="function"&&(E.preventDefault(),x=m?em(r,m):new FormData(r),kc(a,{pending:!0,data:x,method:r.method,action:o},o,x))},currentTarget:r}]})}}for(var zs=0;zs<Zf.length;zs++){var Ls=Zf[zs],dg=Ls.toLowerCase(),hg=Ls[0].toUpperCase()+Ls.slice(1);Cn(dg,"on"+hg)}Cn(Yf,"onAnimationEnd"),Cn(kf,"onAnimationIteration"),Cn(Gf,"onAnimationStart"),Cn("dblclick","onDoubleClick"),Cn("focusin","onFocus"),Cn("focusout","onBlur"),Cn(Dv,"onTransitionRun"),Cn(wv,"onTransitionStart"),Cn(Av,"onTransitionCancel"),Cn(Xf,"onTransitionEnd"),rt("onMouseEnter",["mouseout","mouseover"]),rt("onMouseLeave",["mouseout","mouseover"]),rt("onPointerEnter",["pointerout","pointerover"]),rt("onPointerLeave",["pointerout","pointerover"]),qe("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),qe("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),qe("onBeforeInput",["compositionend","keypress","textInput","paste"]),qe("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),qe("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),qe("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Xi="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(" "),mg=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(Xi));function tm(e,t){t=(t&4)!==0;for(var a=0;a<e.length;a++){var i=e[a],r=i.event;i=i.listeners;e:{var o=void 0;if(t)for(var m=i.length-1;0<=m;m--){var E=i[m],x=E.instance,D=E.currentTarget;if(E=E.listener,x!==o&&r.isPropagationStopped())break e;o=E,r.currentTarget=D;try{o(r)}catch(k){Jr(k)}r.currentTarget=null,o=x}else for(m=0;m<i.length;m++){if(E=i[m],x=E.instance,D=E.currentTarget,E=E.listener,x!==o&&r.isPropagationStopped())break e;o=E,r.currentTarget=D;try{o(r)}catch(k){Jr(k)}r.currentTarget=null,o=x}}}}function Ue(e,t){var a=t[yt];a===void 0&&(a=t[yt]=new Set);var i=e+"__bubble";a.has(i)||(nm(t,e,2,!1),a.add(i))}function Us(e,t,a){var i=0;t&&(i|=4),nm(a,e,i,t)}var fu="_reactListening"+Math.random().toString(36).slice(2);function Hs(e){if(!e[fu]){e[fu]=!0,Xa.forEach(function(a){a!=="selectionchange"&&(mg.has(a)||Us(a,!1,e),Us(a,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[fu]||(t[fu]=!0,Us("selectionchange",!1,t))}}function nm(e,t,a,i){switch(Tm(t)){case 2:var r=Vg;break;case 8:r=Yg;break;default:r=Js}a=r.bind(null,t,a,e),r=void 0,!ic||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(r=!0),i?r!==void 0?e.addEventListener(t,a,{capture:!0,passive:r}):e.addEventListener(t,a,!0):r!==void 0?e.addEventListener(t,a,{passive:r}):e.addEventListener(t,a,!1)}function Bs(e,t,a,i,r){var o=i;if(!(t&1)&&!(t&2)&&i!==null)e:for(;;){if(i===null)return;var m=i.tag;if(m===3||m===4){var E=i.stateNode.containerInfo;if(E===r||E.nodeType===8&&E.parentNode===r)break;if(m===4)for(m=i.return;m!==null;){var x=m.tag;if((x===3||x===4)&&(x=m.stateNode.containerInfo,x===r||x.nodeType===8&&x.parentNode===r))return;m=m.return}for(;E!==null;){if(m=Dt(E),m===null)return;if(x=m.tag,x===5||x===6||x===26||x===27){i=o=m;continue e}E=E.parentNode}}i=i.return}vf(function(){var D=o,k=ac(a),$=[];e:{var L=Qf.get(e);if(L!==void 0){var V=jr,he=e;switch(e){case"keypress":if(Nr(a)===0)break e;case"keydown":case"keyup":V=uv;break;case"focusin":he="focus",V=sc;break;case"focusout":he="blur",V=sc;break;case"beforeblur":case"afterblur":V=sc;break;case"click":if(a.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":V=bf;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":V=Fp;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":V=ov;break;case Yf:case kf:case Gf:V=Wp;break;case Xf:V=dv;break;case"scroll":case"scrollend":V=Kp;break;case"wheel":V=mv;break;case"copy":case"cut":case"paste":V=ev;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":V=xf;break;case"toggle":case"beforetoggle":V=pv}var Te=(t&4)!==0,ht=!Te&&(e==="scroll"||e==="scrollend"),w=Te?L!==null?L+"Capture":null:L;Te=[];for(var j=D,z;j!==null;){var Z=j;if(z=Z.stateNode,Z=Z.tag,Z!==5&&Z!==26&&Z!==27||z===null||w===null||(Z=si(j,w),Z!=null&&Te.push(Qi(j,Z,z))),ht)break;j=j.return}0<Te.length&&(L=new V(L,he,null,a,k),$.push({event:L,listeners:Te}))}}if(!(t&7)){e:{if(L=e==="mouseover"||e==="pointerover",V=e==="mouseout"||e==="pointerout",L&&a!==nc&&(he=a.relatedTarget||a.fromElement)&&(Dt(he)||he[Xe]))break e;if((V||L)&&(L=k.window===k?k:(L=k.ownerDocument)?L.defaultView||L.parentWindow:window,V?(he=a.relatedTarget||a.toElement,V=D,he=he?Dt(he):null,he!==null&&(ht=ne(he),Te=he.tag,he!==ht||Te!==5&&Te!==27&&Te!==6)&&(he=null)):(V=null,he=D),V!==he)){if(Te=bf,Z="onMouseLeave",w="onMouseEnter",j="mouse",(e==="pointerout"||e==="pointerover")&&(Te=xf,Z="onPointerLeave",w="onPointerEnter",j="pointer"),ht=V==null?L:Kn(V),z=he==null?L:Kn(he),L=new Te(Z,j+"leave",V,a,k),L.target=ht,L.relatedTarget=z,Z=null,Dt(k)===D&&(Te=new Te(w,j+"enter",he,a,k),Te.target=z,Te.relatedTarget=ht,Z=Te),ht=Z,V&&he)t:{for(Te=V,w=he,j=0,z=Te;z;z=Fl(z))j++;for(z=0,Z=w;Z;Z=Fl(Z))z++;for(;0<j-z;)Te=Fl(Te),j--;for(;0<z-j;)w=Fl(w),z--;for(;j--;){if(Te===w||w!==null&&Te===w.alternate)break t;Te=Fl(Te),w=Fl(w)}Te=null}else Te=null;V!==null&&am($,L,V,Te,!1),he!==null&&ht!==null&&am($,ht,he,Te,!0)}}e:{if(L=D?Kn(D):window,V=L.nodeName&&L.nodeName.toLowerCase(),V==="select"||V==="input"&&L.type==="file")var ue=Df;else if(jf(L))if(wf)ue=Nv;else{ue=Rv;var we=_v}else V=L.nodeName,!V||V.toLowerCase()!=="input"||L.type!=="checkbox"&&L.type!=="radio"?D&&tc(D.elementType)&&(ue=Df):ue=Tv;if(ue&&(ue=ue(e,D))){Of($,ue,a,k);break e}we&&we(e,L,D),e==="focusout"&&D&&L.type==="number"&&D.memoizedProps.value!=null&&ec(L,"number",L.value)}switch(we=D?Kn(D):window,e){case"focusin":(jf(we)||we.contentEditable==="true")&&(Cl=we,yc=D,vi=null);break;case"focusout":vi=yc=Cl=null;break;case"mousedown":pc=!0;break;case"contextmenu":case"mouseup":case"dragend":pc=!1,qf($,a,k);break;case"selectionchange":if(Ov)break;case"keydown":case"keyup":qf($,a,k)}var pe;if(fc)e:{switch(e){case"compositionstart":var Se="onCompositionStart";break e;case"compositionend":Se="onCompositionEnd";break e;case"compositionupdate":Se="onCompositionUpdate";break e}Se=void 0}else Nl?Nf(e,a)&&(Se="onCompositionEnd"):e==="keydown"&&a.keyCode===229&&(Se="onCompositionStart");Se&&(_f&&a.locale!=="ko"&&(Nl||Se!=="onCompositionStart"?Se==="onCompositionEnd"&&Nl&&(pe=gf()):(ya=k,rc="value"in ya?ya.value:ya.textContent,Nl=!0)),we=du(D,Se),0<we.length&&(Se=new Sf(Se,e,null,a,k),$.push({event:Se,listeners:we}),pe?Se.data=pe:(pe=Cf(a),pe!==null&&(Se.data=pe)))),(pe=gv?Ev(e,a):bv(e,a))&&(Se=du(D,"onBeforeInput"),0<Se.length&&(we=new Sf("onBeforeInput","beforeinput",null,a,k),$.push({event:we,listeners:Se}),we.data=pe)),fg($,e,D,a,k)}tm($,t)})}function Qi(e,t,a){return{instance:e,listener:t,currentTarget:a}}function du(e,t){for(var a=t+"Capture",i=[];e!==null;){var r=e,o=r.stateNode;r=r.tag,r!==5&&r!==26&&r!==27||o===null||(r=si(e,a),r!=null&&i.unshift(Qi(e,r,o)),r=si(e,t),r!=null&&i.push(Qi(e,r,o))),e=e.return}return i}function Fl(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function am(e,t,a,i,r){for(var o=t._reactName,m=[];a!==null&&a!==i;){var E=a,x=E.alternate,D=E.stateNode;if(E=E.tag,x!==null&&x===i)break;E!==5&&E!==26&&E!==27||D===null||(x=D,r?(D=si(a,o),D!=null&&m.unshift(Qi(a,D,x))):r||(D=si(a,o),D!=null&&m.push(Qi(a,D,x)))),a=a.return}m.length!==0&&e.push({event:t,listeners:m})}var yg=/\r\n?/g,pg=/\u0000|\uFFFD/g;function lm(e){return(typeof e=="string"?e:""+e).replace(yg,` +`).replace(pg,"")}function im(e,t){return t=lm(t),lm(e)===t}function hu(){}function Fe(e,t,a,i,r,o){switch(a){case"children":typeof i=="string"?t==="body"||t==="textarea"&&i===""||_l(e,i):(typeof i=="number"||typeof i=="bigint")&&t!=="body"&&_l(e,""+i);break;case"className":Sr(e,"class",i);break;case"tabIndex":Sr(e,"tabindex",i);break;case"dir":case"role":case"viewBox":case"width":case"height":Sr(e,a,i);break;case"style":yf(e,i,o);break;case"data":if(t!=="object"){Sr(e,"data",i);break}case"src":case"href":if(i===""&&(t!=="a"||a!=="href")){e.removeAttribute(a);break}if(i==null||typeof i=="function"||typeof i=="symbol"||typeof i=="boolean"){e.removeAttribute(a);break}i=Rr(""+i),e.setAttribute(a,i);break;case"action":case"formAction":if(typeof i=="function"){e.setAttribute(a,"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 o=="function"&&(a==="formAction"?(t!=="input"&&Fe(e,t,"name",r.name,r,null),Fe(e,t,"formEncType",r.formEncType,r,null),Fe(e,t,"formMethod",r.formMethod,r,null),Fe(e,t,"formTarget",r.formTarget,r,null)):(Fe(e,t,"encType",r.encType,r,null),Fe(e,t,"method",r.method,r,null),Fe(e,t,"target",r.target,r,null)));if(i==null||typeof i=="symbol"||typeof i=="boolean"){e.removeAttribute(a);break}i=Rr(""+i),e.setAttribute(a,i);break;case"onClick":i!=null&&(e.onclick=hu);break;case"onScroll":i!=null&&Ue("scroll",e);break;case"onScrollEnd":i!=null&&Ue("scrollend",e);break;case"dangerouslySetInnerHTML":if(i!=null){if(typeof i!="object"||!("__html"in i))throw Error(s(61));if(a=i.__html,a!=null){if(r.children!=null)throw Error(s(60));e.innerHTML=a}}break;case"multiple":e.multiple=i&&typeof i!="function"&&typeof i!="symbol";break;case"muted":e.muted=i&&typeof i!="function"&&typeof i!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(i==null||typeof i=="function"||typeof i=="boolean"||typeof i=="symbol"){e.removeAttribute("xlink:href");break}a=Rr(""+i),e.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",a);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":i!=null&&typeof i!="function"&&typeof i!="symbol"?e.setAttribute(a,""+i):e.removeAttribute(a);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":i&&typeof i!="function"&&typeof i!="symbol"?e.setAttribute(a,""):e.removeAttribute(a);break;case"capture":case"download":i===!0?e.setAttribute(a,""):i!==!1&&i!=null&&typeof i!="function"&&typeof i!="symbol"?e.setAttribute(a,i):e.removeAttribute(a);break;case"cols":case"rows":case"size":case"span":i!=null&&typeof i!="function"&&typeof i!="symbol"&&!isNaN(i)&&1<=i?e.setAttribute(a,i):e.removeAttribute(a);break;case"rowSpan":case"start":i==null||typeof i=="function"||typeof i=="symbol"||isNaN(i)?e.removeAttribute(a):e.setAttribute(a,i);break;case"popover":Ue("beforetoggle",e),Ue("toggle",e),Sl(e,"popover",i);break;case"xlinkActuate":Fn(e,"http://www.w3.org/1999/xlink","xlink:actuate",i);break;case"xlinkArcrole":Fn(e,"http://www.w3.org/1999/xlink","xlink:arcrole",i);break;case"xlinkRole":Fn(e,"http://www.w3.org/1999/xlink","xlink:role",i);break;case"xlinkShow":Fn(e,"http://www.w3.org/1999/xlink","xlink:show",i);break;case"xlinkTitle":Fn(e,"http://www.w3.org/1999/xlink","xlink:title",i);break;case"xlinkType":Fn(e,"http://www.w3.org/1999/xlink","xlink:type",i);break;case"xmlBase":Fn(e,"http://www.w3.org/XML/1998/namespace","xml:base",i);break;case"xmlLang":Fn(e,"http://www.w3.org/XML/1998/namespace","xml:lang",i);break;case"xmlSpace":Fn(e,"http://www.w3.org/XML/1998/namespace","xml:space",i);break;case"is":Sl(e,"is",i);break;case"innerText":case"textContent":break;default:(!(2<a.length)||a[0]!=="o"&&a[0]!=="O"||a[1]!=="n"&&a[1]!=="N")&&(a=Qp.get(a)||a,Sl(e,a,i))}}function qs(e,t,a,i,r,o){switch(a){case"style":yf(e,i,o);break;case"dangerouslySetInnerHTML":if(i!=null){if(typeof i!="object"||!("__html"in i))throw Error(s(61));if(a=i.__html,a!=null){if(r.children!=null)throw Error(s(60));e.innerHTML=a}}break;case"children":typeof i=="string"?_l(e,i):(typeof i=="number"||typeof i=="bigint")&&_l(e,""+i);break;case"onScroll":i!=null&&Ue("scroll",e);break;case"onScrollEnd":i!=null&&Ue("scrollend",e);break;case"onClick":i!=null&&(e.onclick=hu);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!Qa.hasOwnProperty(a))e:{if(a[0]==="o"&&a[1]==="n"&&(r=a.endsWith("Capture"),t=a.slice(2,r?a.length-7:void 0),o=e[ve]||null,o=o!=null?o[a]:null,typeof o=="function"&&e.removeEventListener(t,o,r),typeof i=="function")){typeof o!="function"&&o!==null&&(a in e?e[a]=null:e.hasAttribute(a)&&e.removeAttribute(a)),e.addEventListener(t,i,r);break e}a in e?e[a]=i:i===!0?e.setAttribute(a,""):Sl(e,a,i)}}}function zt(e,t,a){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 i=!1,r=!1,o;for(o in a)if(a.hasOwnProperty(o)){var m=a[o];if(m!=null)switch(o){case"src":i=!0;break;case"srcSet":r=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(s(137,t));default:Fe(e,t,o,m,a,null)}}r&&Fe(e,t,"srcSet",a.srcSet,a,null),i&&Fe(e,t,"src",a.src,a,null);return;case"input":Ue("invalid",e);var E=o=m=r=null,x=null,D=null;for(i in a)if(a.hasOwnProperty(i)){var k=a[i];if(k!=null)switch(i){case"name":r=k;break;case"type":m=k;break;case"checked":x=k;break;case"defaultChecked":D=k;break;case"value":o=k;break;case"defaultValue":E=k;break;case"children":case"dangerouslySetInnerHTML":if(k!=null)throw Error(s(137,t));break;default:Fe(e,t,i,k,a,null)}}ff(e,o,E,x,D,m,r,!1),xr(e);return;case"select":Ue("invalid",e),i=m=o=null;for(r in a)if(a.hasOwnProperty(r)&&(E=a[r],E!=null))switch(r){case"value":o=E;break;case"defaultValue":m=E;break;case"multiple":i=E;default:Fe(e,t,r,E,a,null)}t=o,a=m,e.multiple=!!i,t!=null?xl(e,!!i,t,!1):a!=null&&xl(e,!!i,a,!0);return;case"textarea":Ue("invalid",e),o=r=i=null;for(m in a)if(a.hasOwnProperty(m)&&(E=a[m],E!=null))switch(m){case"value":i=E;break;case"defaultValue":r=E;break;case"children":o=E;break;case"dangerouslySetInnerHTML":if(E!=null)throw Error(s(91));break;default:Fe(e,t,m,E,a,null)}hf(e,i,r,o),xr(e);return;case"option":for(x in a)if(a.hasOwnProperty(x)&&(i=a[x],i!=null))switch(x){case"selected":e.selected=i&&typeof i!="function"&&typeof i!="symbol";break;default:Fe(e,t,x,i,a,null)}return;case"dialog":Ue("cancel",e),Ue("close",e);break;case"iframe":case"object":Ue("load",e);break;case"video":case"audio":for(i=0;i<Xi.length;i++)Ue(Xi[i],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(D in a)if(a.hasOwnProperty(D)&&(i=a[D],i!=null))switch(D){case"children":case"dangerouslySetInnerHTML":throw Error(s(137,t));default:Fe(e,t,D,i,a,null)}return;default:if(tc(t)){for(k in a)a.hasOwnProperty(k)&&(i=a[k],i!==void 0&&qs(e,t,k,i,a,void 0));return}}for(E in a)a.hasOwnProperty(E)&&(i=a[E],i!=null&&Fe(e,t,E,i,a,null))}function vg(e,t,a,i){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var r=null,o=null,m=null,E=null,x=null,D=null,k=null;for(V in a){var $=a[V];if(a.hasOwnProperty(V)&&$!=null)switch(V){case"checked":break;case"value":break;case"defaultValue":x=$;default:i.hasOwnProperty(V)||Fe(e,t,V,null,i,$)}}for(var L in i){var V=i[L];if($=a[L],i.hasOwnProperty(L)&&(V!=null||$!=null))switch(L){case"type":o=V;break;case"name":r=V;break;case"checked":D=V;break;case"defaultChecked":k=V;break;case"value":m=V;break;case"defaultValue":E=V;break;case"children":case"dangerouslySetInnerHTML":if(V!=null)throw Error(s(137,t));break;default:V!==$&&Fe(e,t,L,V,i,$)}}Iu(e,m,E,x,D,k,o,r);return;case"select":V=m=E=L=null;for(o in a)if(x=a[o],a.hasOwnProperty(o)&&x!=null)switch(o){case"value":break;case"multiple":V=x;default:i.hasOwnProperty(o)||Fe(e,t,o,null,i,x)}for(r in i)if(o=i[r],x=a[r],i.hasOwnProperty(r)&&(o!=null||x!=null))switch(r){case"value":L=o;break;case"defaultValue":E=o;break;case"multiple":m=o;default:o!==x&&Fe(e,t,r,o,i,x)}t=E,a=m,i=V,L!=null?xl(e,!!a,L,!1):!!i!=!!a&&(t!=null?xl(e,!!a,t,!0):xl(e,!!a,a?[]:"",!1));return;case"textarea":V=L=null;for(E in a)if(r=a[E],a.hasOwnProperty(E)&&r!=null&&!i.hasOwnProperty(E))switch(E){case"value":break;case"children":break;default:Fe(e,t,E,null,i,r)}for(m in i)if(r=i[m],o=a[m],i.hasOwnProperty(m)&&(r!=null||o!=null))switch(m){case"value":L=r;break;case"defaultValue":V=r;break;case"children":break;case"dangerouslySetInnerHTML":if(r!=null)throw Error(s(91));break;default:r!==o&&Fe(e,t,m,r,i,o)}df(e,L,V);return;case"option":for(var he in a)if(L=a[he],a.hasOwnProperty(he)&&L!=null&&!i.hasOwnProperty(he))switch(he){case"selected":e.selected=!1;break;default:Fe(e,t,he,null,i,L)}for(x in i)if(L=i[x],V=a[x],i.hasOwnProperty(x)&&L!==V&&(L!=null||V!=null))switch(x){case"selected":e.selected=L&&typeof L!="function"&&typeof L!="symbol";break;default:Fe(e,t,x,L,i,V)}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 Te in a)L=a[Te],a.hasOwnProperty(Te)&&L!=null&&!i.hasOwnProperty(Te)&&Fe(e,t,Te,null,i,L);for(D in i)if(L=i[D],V=a[D],i.hasOwnProperty(D)&&L!==V&&(L!=null||V!=null))switch(D){case"children":case"dangerouslySetInnerHTML":if(L!=null)throw Error(s(137,t));break;default:Fe(e,t,D,L,i,V)}return;default:if(tc(t)){for(var ht in a)L=a[ht],a.hasOwnProperty(ht)&&L!==void 0&&!i.hasOwnProperty(ht)&&qs(e,t,ht,void 0,i,L);for(k in i)L=i[k],V=a[k],!i.hasOwnProperty(k)||L===V||L===void 0&&V===void 0||qs(e,t,k,L,i,V);return}}for(var w in a)L=a[w],a.hasOwnProperty(w)&&L!=null&&!i.hasOwnProperty(w)&&Fe(e,t,w,null,i,L);for($ in i)L=i[$],V=a[$],!i.hasOwnProperty($)||L===V||L==null&&V==null||Fe(e,t,$,L,i,V)}var Vs=null,Ys=null;function mu(e){return e.nodeType===9?e:e.ownerDocument}function rm(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 um(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 Gs=null;function gg(){var e=window.event;return e&&e.type==="popstate"?e===Gs?!1:(Gs=e,!0):(Gs=null,!1)}var cm=typeof setTimeout=="function"?setTimeout:void 0,Eg=typeof clearTimeout=="function"?clearTimeout:void 0,sm=typeof Promise=="function"?Promise:void 0,bg=typeof queueMicrotask=="function"?queueMicrotask:typeof sm<"u"?function(e){return sm.resolve(null).then(e).catch(Sg)}:cm;function Sg(e){setTimeout(function(){throw e})}function Xs(e,t){var a=t,i=0;do{var r=a.nextSibling;if(e.removeChild(a),r&&r.nodeType===8)if(a=r.data,a==="/$"){if(i===0){e.removeChild(r),Ii(t);return}i--}else a!=="$"&&a!=="$?"&&a!=="$!"||i++;a=r}while(a);Ii(t)}function Qs(e){var t=e.firstChild;for(t&&t.nodeType===10&&(t=t.nextSibling);t;){var a=t;switch(t=t.nextSibling,a.nodeName){case"HTML":case"HEAD":case"BODY":Qs(a),Zn(a);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(a.rel.toLowerCase()==="stylesheet")continue}e.removeChild(a)}}function xg(e,t,a,i){for(;e.nodeType===1;){var r=a;if(e.nodeName.toLowerCase()!==t.toLowerCase()){if(!i&&(e.nodeName!=="INPUT"||e.type!=="hidden"))break}else if(i){if(!e[sn])switch(t){case"meta":if(!e.hasAttribute("itemprop"))break;return e;case"link":if(o=e.getAttribute("rel"),o==="stylesheet"&&e.hasAttribute("data-precedence"))break;if(o!==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(o=e.getAttribute("src"),(o!==(r.src==null?null:r.src)||e.getAttribute("type")!==(r.type==null?null:r.type)||e.getAttribute("crossorigin")!==(r.crossOrigin==null?null:r.crossOrigin))&&o&&e.hasAttribute("async")&&!e.hasAttribute("itemprop"))break;return e;default:return e}}else if(t==="input"&&e.type==="hidden"){var o=r.name==null?null:""+r.name;if(r.type==="hidden"&&e.getAttribute("name")===o)return e}else return e;if(e=Dn(e.nextSibling),e===null)break}return null}function _g(e,t,a){if(t==="")return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!a||(e=Dn(e.nextSibling),e===null))return null;return e}function Dn(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 om(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var a=e.data;if(a==="$"||a==="$!"||a==="$?"){if(t===0)return e;t--}else a==="/$"&&t++}e=e.previousSibling}return null}function fm(e,t,a){switch(t=mu(a),e){case"html":if(e=t.documentElement,!e)throw Error(s(452));return e;case"head":if(e=t.head,!e)throw Error(s(453));return e;case"body":if(e=t.body,!e)throw Error(s(454));return e;default:throw Error(s(451))}}var xn=new Map,dm=new Set;function yu(e){return typeof e.getRootNode=="function"?e.getRootNode():e.ownerDocument}var oa=P.d;P.d={f:Rg,r:Tg,D:Ng,C:Cg,L:jg,m:Og,X:wg,S:Dg,M:Ag};function Rg(){var e=oa.f(),t=uu();return e||t}function Tg(e){var t=wt(e);t!==null&&t.tag===5&&t.type==="form"?qd(t):oa.r(e)}var Jl=typeof document>"u"?null:document;function hm(e,t,a){var i=Jl;if(i&&typeof t=="string"&&t){var r=dn(t);r='link[rel="'+e+'"][href="'+r+'"]',typeof a=="string"&&(r+='[crossorigin="'+a+'"]'),dm.has(r)||(dm.add(r),e={rel:e,crossOrigin:a,href:t},i.querySelector(r)===null&&(t=i.createElement("link"),zt(t,"link",e),et(t),i.head.appendChild(t)))}}function Ng(e){oa.D(e),hm("dns-prefetch",e,null)}function Cg(e,t){oa.C(e,t),hm("preconnect",e,t)}function jg(e,t,a){oa.L(e,t,a);var i=Jl;if(i&&e&&t){var r='link[rel="preload"][as="'+dn(t)+'"]';t==="image"&&a&&a.imageSrcSet?(r+='[imagesrcset="'+dn(a.imageSrcSet)+'"]',typeof a.imageSizes=="string"&&(r+='[imagesizes="'+dn(a.imageSizes)+'"]')):r+='[href="'+dn(e)+'"]';var o=r;switch(t){case"style":o=Pl(e);break;case"script":o=Wl(e)}xn.has(o)||(e=I({rel:"preload",href:t==="image"&&a&&a.imageSrcSet?void 0:e,as:t},a),xn.set(o,e),i.querySelector(r)!==null||t==="style"&&i.querySelector(Zi(o))||t==="script"&&i.querySelector(Ki(o))||(t=i.createElement("link"),zt(t,"link",e),et(t),i.head.appendChild(t)))}}function Og(e,t){oa.m(e,t);var a=Jl;if(a&&e){var i=t&&typeof t.as=="string"?t.as:"script",r='link[rel="modulepreload"][as="'+dn(i)+'"][href="'+dn(e)+'"]',o=r;switch(i){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":o=Wl(e)}if(!xn.has(o)&&(e=I({rel:"modulepreload",href:e},t),xn.set(o,e),a.querySelector(r)===null)){switch(i){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(a.querySelector(Ki(o)))return}i=a.createElement("link"),zt(i,"link",e),et(i),a.head.appendChild(i)}}}function Dg(e,t,a){oa.S(e,t,a);var i=Jl;if(i&&e){var r=on(i).hoistableStyles,o=Pl(e);t=t||"default";var m=r.get(o);if(!m){var E={loading:0,preload:null};if(m=i.querySelector(Zi(o)))E.loading=5;else{e=I({rel:"stylesheet",href:e,"data-precedence":t},a),(a=xn.get(o))&&Zs(e,a);var x=m=i.createElement("link");et(x),zt(x,"link",e),x._p=new Promise(function(D,k){x.onload=D,x.onerror=k}),x.addEventListener("load",function(){E.loading|=1}),x.addEventListener("error",function(){E.loading|=2}),E.loading|=4,pu(m,t,i)}m={type:"stylesheet",instance:m,count:1,state:E},r.set(o,m)}}}function wg(e,t){oa.X(e,t);var a=Jl;if(a&&e){var i=on(a).hoistableScripts,r=Wl(e),o=i.get(r);o||(o=a.querySelector(Ki(r)),o||(e=I({src:e,async:!0},t),(t=xn.get(r))&&Ks(e,t),o=a.createElement("script"),et(o),zt(o,"link",e),a.head.appendChild(o)),o={type:"script",instance:o,count:1,state:null},i.set(r,o))}}function Ag(e,t){oa.M(e,t);var a=Jl;if(a&&e){var i=on(a).hoistableScripts,r=Wl(e),o=i.get(r);o||(o=a.querySelector(Ki(r)),o||(e=I({src:e,async:!0,type:"module"},t),(t=xn.get(r))&&Ks(e,t),o=a.createElement("script"),et(o),zt(o,"link",e),a.head.appendChild(o)),o={type:"script",instance:o,count:1,state:null},i.set(r,o))}}function mm(e,t,a,i){var r=(r=it.current)?yu(r):null;if(!r)throw Error(s(446));switch(e){case"meta":case"title":return null;case"style":return typeof a.precedence=="string"&&typeof a.href=="string"?(t=Pl(a.href),a=on(r).hoistableStyles,i=a.get(t),i||(i={type:"style",instance:null,count:0,state:null},a.set(t,i)),i):{type:"void",instance:null,count:0,state:null};case"link":if(a.rel==="stylesheet"&&typeof a.href=="string"&&typeof a.precedence=="string"){e=Pl(a.href);var o=on(r).hoistableStyles,m=o.get(e);if(m||(r=r.ownerDocument||r,m={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},o.set(e,m),(o=r.querySelector(Zi(e)))&&!o._p&&(m.instance=o,m.state.loading=5),xn.has(e)||(a={rel:"preload",as:"style",href:a.href,crossOrigin:a.crossOrigin,integrity:a.integrity,media:a.media,hrefLang:a.hrefLang,referrerPolicy:a.referrerPolicy},xn.set(e,a),o||Mg(r,e,a,m.state))),t&&i===null)throw Error(s(528,""));return m}if(t&&i!==null)throw Error(s(529,""));return null;case"script":return t=a.async,a=a.src,typeof a=="string"&&t&&typeof t!="function"&&typeof t!="symbol"?(t=Wl(a),a=on(r).hoistableScripts,i=a.get(t),i||(i={type:"script",instance:null,count:0,state:null},a.set(t,i)),i):{type:"void",instance:null,count:0,state:null};default:throw Error(s(444,e))}}function Pl(e){return'href="'+dn(e)+'"'}function Zi(e){return'link[rel="stylesheet"]['+e+"]"}function ym(e){return I({},e,{"data-precedence":e.precedence,precedence:null})}function Mg(e,t,a,i){e.querySelector('link[rel="preload"][as="style"]['+t+"]")?i.loading=1:(t=e.createElement("link"),i.preload=t,t.addEventListener("load",function(){return i.loading|=1}),t.addEventListener("error",function(){return i.loading|=2}),zt(t,"link",a),et(t),e.head.appendChild(t))}function Wl(e){return'[src="'+dn(e)+'"]'}function Ki(e){return"script[async]"+e}function pm(e,t,a){if(t.count++,t.instance===null)switch(t.type){case"style":var i=e.querySelector('style[data-href~="'+dn(a.href)+'"]');if(i)return t.instance=i,et(i),i;var r=I({},a,{"data-href":a.href,"data-precedence":a.precedence,href:null,precedence:null});return i=(e.ownerDocument||e).createElement("style"),et(i),zt(i,"style",r),pu(i,a.precedence,e),t.instance=i;case"stylesheet":r=Pl(a.href);var o=e.querySelector(Zi(r));if(o)return t.state.loading|=4,t.instance=o,et(o),o;i=ym(a),(r=xn.get(r))&&Zs(i,r),o=(e.ownerDocument||e).createElement("link"),et(o);var m=o;return m._p=new Promise(function(E,x){m.onload=E,m.onerror=x}),zt(o,"link",i),t.state.loading|=4,pu(o,a.precedence,e),t.instance=o;case"script":return o=Wl(a.src),(r=e.querySelector(Ki(o)))?(t.instance=r,et(r),r):(i=a,(r=xn.get(o))&&(i=I({},a),Ks(i,r)),e=e.ownerDocument||e,r=e.createElement("script"),et(r),zt(r,"link",i),e.head.appendChild(r),t.instance=r);case"void":return null;default:throw Error(s(443,t.type))}else t.type==="stylesheet"&&!(t.state.loading&4)&&(i=t.instance,t.state.loading|=4,pu(i,a.precedence,e));return t.instance}function pu(e,t,a){for(var i=a.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),r=i.length?i[i.length-1]:null,o=r,m=0;m<i.length;m++){var E=i[m];if(E.dataset.precedence===t)o=E;else if(o!==r)break}o?o.parentNode.insertBefore(e,o.nextSibling):(t=a.nodeType===9?a.head:a,t.insertBefore(e,t.firstChild))}function Zs(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.title==null&&(e.title=t.title)}function Ks(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.integrity==null&&(e.integrity=t.integrity)}var vu=null;function vm(e,t,a){if(vu===null){var i=new Map,r=vu=new Map;r.set(a,i)}else r=vu,i=r.get(a),i||(i=new Map,r.set(a,i));if(i.has(e))return i;for(i.set(e,null),a=a.getElementsByTagName(e),r=0;r<a.length;r++){var o=a[r];if(!(o[sn]||o[fe]||e==="link"&&o.getAttribute("rel")==="stylesheet")&&o.namespaceURI!=="http://www.w3.org/2000/svg"){var m=o.getAttribute(t)||"";m=e+m;var E=i.get(m);E?E.push(o):i.set(m,[o])}}return i}function gm(e,t,a){e=e.ownerDocument||e,e.head.insertBefore(a,t==="title"?e.querySelector("head > title"):null)}function zg(e,t,a){if(a===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 Em(e){return!(e.type==="stylesheet"&&!(e.state.loading&3))}var $i=null;function Lg(){}function Ug(e,t,a){if($i===null)throw Error(s(475));var i=$i;if(t.type==="stylesheet"&&(typeof a.media!="string"||matchMedia(a.media).matches!==!1)&&!(t.state.loading&4)){if(t.instance===null){var r=Pl(a.href),o=e.querySelector(Zi(r));if(o){e=o._p,e!==null&&typeof e=="object"&&typeof e.then=="function"&&(i.count++,i=gu.bind(i),e.then(i,i)),t.state.loading|=4,t.instance=o,et(o);return}o=e.ownerDocument||e,a=ym(a),(r=xn.get(r))&&Zs(a,r),o=o.createElement("link"),et(o);var m=o;m._p=new Promise(function(E,x){m.onload=E,m.onerror=x}),zt(o,"link",a),t.instance=o}i.stylesheets===null&&(i.stylesheets=new Map),i.stylesheets.set(t,e),(e=t.state.preload)&&!(t.state.loading&3)&&(i.count++,t=gu.bind(i),e.addEventListener("load",t),e.addEventListener("error",t))}}function Hg(){if($i===null)throw Error(s(475));var e=$i;return e.stylesheets&&e.count===0&&$s(e,e.stylesheets),0<e.count?function(t){var a=setTimeout(function(){if(e.stylesheets&&$s(e,e.stylesheets),e.unsuspend){var i=e.unsuspend;e.unsuspend=null,i()}},6e4);return e.unsuspend=t,function(){e.unsuspend=null,clearTimeout(a)}}:null}function gu(){if(this.count--,this.count===0){if(this.stylesheets)$s(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var Eu=null;function $s(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,Eu=new Map,t.forEach(Bg,e),Eu=null,gu.call(e))}function Bg(e,t){if(!(t.state.loading&4)){var a=Eu.get(e);if(a)var i=a.get(null);else{a=new Map,Eu.set(e,a);for(var r=e.querySelectorAll("link[data-precedence],style[data-precedence]"),o=0;o<r.length;o++){var m=r[o];(m.nodeName==="LINK"||m.getAttribute("media")!=="not all")&&(a.set(m.dataset.precedence,m),i=m)}i&&a.set(null,i)}r=t.instance,m=r.getAttribute("data-precedence"),o=a.get(m)||i,o===i&&a.set(null,r),a.set(m,r),this.count++,i=gu.bind(this),r.addEventListener("load",i),r.addEventListener("error",i),o?o.parentNode.insertBefore(r,o.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(r,e.firstChild)),t.state.loading|=4}}var Fi={$$typeof:_,Provider:null,Consumer:null,_currentValue:ge,_currentValue2:ge,_threadCount:0};function qg(e,t,a,i,r,o,m,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=i,this.onUncaughtError=r,this.onCaughtError=o,this.onRecoverableError=m,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=E,this.incompleteTransitions=new Map}function bm(e,t,a,i,r,o,m,E,x,D,k,$){return e=new qg(e,t,a,m,E,x,D,$),t=1,o===!0&&(t|=24),o=bn(3,null,null,t),e.current=o,o.stateNode=e,t=Nc(),t.refCount++,e.pooledCache=t,t.refCount++,o.memoizedState={element:i,isDehydrated:a,cache:t},rs(o),e}function Sm(e){return e?(e=Dl,e):Dl}function xm(e,t,a,i,r,o){r=Sm(r),i.context===null?i.context=r:i.pendingContext=r,i=_a(t),i.payload={element:a},o=o===void 0?null:o,o!==null&&(i.callback=o),a=Ra(e,i,t),a!==null&&(Xt(a,e,t),Ai(a,e,t))}function _m(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var a=e.retryLane;e.retryLane=a!==0&&a<t?a:t}}function Fs(e,t){_m(e,t),(e=e.alternate)&&_m(e,t)}function Rm(e){if(e.tag===13){var t=pa(e,67108864);t!==null&&Xt(t,e,67108864),Fs(e,67108864)}}var bu=!0;function Vg(e,t,a,i){var r=X.T;X.T=null;var o=P.p;try{P.p=2,Js(e,t,a,i)}finally{P.p=o,X.T=r}}function Yg(e,t,a,i){var r=X.T;X.T=null;var o=P.p;try{P.p=8,Js(e,t,a,i)}finally{P.p=o,X.T=r}}function Js(e,t,a,i){if(bu){var r=Ps(i);if(r===null)Bs(e,t,i,Su,a),Nm(e,i);else if(Gg(r,e,t,a,i))i.stopPropagation();else if(Nm(e,i),t&4&&-1<kg.indexOf(e)){for(;r!==null;){var o=wt(r);if(o!==null)switch(o.tag){case 3:if(o=o.stateNode,o.current.memoizedState.isDehydrated){var m=zn(o.pendingLanes);if(m!==0){var E=o;for(E.pendingLanes|=2,E.entangledLanes|=2;m;){var x=1<<31-Tt(m);E.entanglements[1]|=x,m&=~x}Vn(o),!(st&6)&&(lu=mt()+500,Gi(0))}}break;case 13:E=pa(o,2),E!==null&&Xt(E,o,2),uu(),Fs(o,2)}if(o=Ps(i),o===null&&Bs(e,t,i,Su,a),o===r)break;r=o}r!==null&&i.stopPropagation()}else Bs(e,t,i,null,a)}}function Ps(e){return e=ac(e),Ws(e)}var Su=null;function Ws(e){if(Su=null,e=Dt(e),e!==null){var t=ne(e);if(t===null)e=null;else{var a=t.tag;if(a===13){if(e=Re(t),e!==null)return e;e=null}else if(a===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null)}}return Su=e,null}function Tm(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(Kt()){case _e:return 2;case Ie:return 8;case kt:case ui:return 32;case pr:return 268435456;default:return 32}default:return 32}}var Is=!1,wa=null,Aa=null,Ma=null,Ji=new Map,Pi=new Map,za=[],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 Nm(e,t){switch(e){case"focusin":case"focusout":wa=null;break;case"dragenter":case"dragleave":Aa=null;break;case"mouseover":case"mouseout":Ma=null;break;case"pointerover":case"pointerout":Ji.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Pi.delete(t.pointerId)}}function Wi(e,t,a,i,r,o){return e===null||e.nativeEvent!==o?(e={blockedOn:t,domEventName:a,eventSystemFlags:i,nativeEvent:o,targetContainers:[r]},t!==null&&(t=wt(t),t!==null&&Rm(t)),e):(e.eventSystemFlags|=i,t=e.targetContainers,r!==null&&t.indexOf(r)===-1&&t.push(r),e)}function Gg(e,t,a,i,r){switch(t){case"focusin":return wa=Wi(wa,e,t,a,i,r),!0;case"dragenter":return Aa=Wi(Aa,e,t,a,i,r),!0;case"mouseover":return Ma=Wi(Ma,e,t,a,i,r),!0;case"pointerover":var o=r.pointerId;return Ji.set(o,Wi(Ji.get(o)||null,e,t,a,i,r)),!0;case"gotpointercapture":return o=r.pointerId,Pi.set(o,Wi(Pi.get(o)||null,e,t,a,i,r)),!0}return!1}function Cm(e){var t=Dt(e.target);if(t!==null){var a=ne(t);if(a!==null){if(t=a.tag,t===13){if(t=Re(a),t!==null){e.blockedOn=t,oe(e.priority,function(){if(a.tag===13){var i=nn(),r=pa(a,i);r!==null&&Xt(r,a,i),Fs(a,i)}});return}}else if(t===3&&a.stateNode.current.memoizedState.isDehydrated){e.blockedOn=a.tag===3?a.stateNode.containerInfo:null;return}}}e.blockedOn=null}function xu(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var a=Ps(e.nativeEvent);if(a===null){a=e.nativeEvent;var i=new a.constructor(a.type,a);nc=i,a.target.dispatchEvent(i),nc=null}else return t=wt(a),t!==null&&Rm(t),e.blockedOn=a,!1;t.shift()}return!0}function jm(e,t,a){xu(e)&&a.delete(t)}function Xg(){Is=!1,wa!==null&&xu(wa)&&(wa=null),Aa!==null&&xu(Aa)&&(Aa=null),Ma!==null&&xu(Ma)&&(Ma=null),Ji.forEach(jm),Pi.forEach(jm)}function _u(e,t){e.blockedOn===t&&(e.blockedOn=null,Is||(Is=!0,l.unstable_scheduleCallback(l.unstable_NormalPriority,Xg)))}var Ru=null;function Om(e){Ru!==e&&(Ru=e,l.unstable_scheduleCallback(l.unstable_NormalPriority,function(){Ru===e&&(Ru=null);for(var t=0;t<e.length;t+=3){var a=e[t],i=e[t+1],r=e[t+2];if(typeof i!="function"){if(Ws(i||a)===null)continue;break}var o=wt(a);o!==null&&(e.splice(t,3),t-=3,kc(o,{pending:!0,data:r,method:a.method,action:i},i,r))}}))}function Ii(e){function t(x){return _u(x,e)}wa!==null&&_u(wa,e),Aa!==null&&_u(Aa,e),Ma!==null&&_u(Ma,e),Ji.forEach(t),Pi.forEach(t);for(var a=0;a<za.length;a++){var i=za[a];i.blockedOn===e&&(i.blockedOn=null)}for(;0<za.length&&(a=za[0],a.blockedOn===null);)Cm(a),a.blockedOn===null&&za.shift();if(a=(e.ownerDocument||e).$$reactFormReplay,a!=null)for(i=0;i<a.length;i+=3){var r=a[i],o=a[i+1],m=r[ve]||null;if(typeof o=="function")m||Om(a);else if(m){var E=null;if(o&&o.hasAttribute("formAction")){if(r=o,m=o[ve]||null)E=m.formAction;else if(Ws(r)!==null)continue}else E=m.action;typeof E=="function"?a[i+1]=E:(a.splice(i,3),i-=3),Om(a)}}}function eo(e){this._internalRoot=e}Tu.prototype.render=eo.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(s(409));var a=t.current,i=nn();xm(a,i,e,t,null,null)},Tu.prototype.unmount=eo.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;e.tag===0&&Kl(),xm(e.current,2,null,e,null,null),uu(),t[Xe]=null}};function Tu(e){this._internalRoot=e}Tu.prototype.unstable_scheduleHydration=function(e){if(e){var t=re();e={blockedOn:null,target:e,priority:t};for(var a=0;a<za.length&&t!==0&&t<za[a].priority;a++);za.splice(a,0,e),a===0&&Cm(e)}};var Dm=n.version;if(Dm!=="19.0.0")throw Error(s(527,Dm,"19.0.0"));P.findDOMNode=function(e){var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(s(188)):(e=Object.keys(e).join(","),Error(s(268,e)));return e=Q(t),e=e!==null?le(e):null,e=e===null?null:e.stateNode,e};var Qg={bundleType:0,version:"19.0.0",rendererPackageName:"react-dom",currentDispatcherRef:X,findFiberByHostInstance:Dt,reconcilerVersion:"19.0.0"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Nu=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Nu.isDisabled&&Nu.supportsFiber)try{ma=Nu.inject(Qg),Bt=Nu}catch{}}return tr.createRoot=function(e,t){if(!u(e))throw Error(s(299));var a=!1,i="",r=Kd,o=$d,m=Fd,E=null;return t!=null&&(t.unstable_strictMode===!0&&(a=!0),t.identifierPrefix!==void 0&&(i=t.identifierPrefix),t.onUncaughtError!==void 0&&(r=t.onUncaughtError),t.onCaughtError!==void 0&&(o=t.onCaughtError),t.onRecoverableError!==void 0&&(m=t.onRecoverableError),t.unstable_transitionCallbacks!==void 0&&(E=t.unstable_transitionCallbacks)),t=bm(e,1,!1,null,null,a,i,r,o,m,E,null),e[Xe]=t.current,Hs(e.nodeType===8?e.parentNode:e),new eo(t)},tr.hydrateRoot=function(e,t,a){if(!u(e))throw Error(s(299));var i=!1,r="",o=Kd,m=$d,E=Fd,x=null,D=null;return a!=null&&(a.unstable_strictMode===!0&&(i=!0),a.identifierPrefix!==void 0&&(r=a.identifierPrefix),a.onUncaughtError!==void 0&&(o=a.onUncaughtError),a.onCaughtError!==void 0&&(m=a.onCaughtError),a.onRecoverableError!==void 0&&(E=a.onRecoverableError),a.unstable_transitionCallbacks!==void 0&&(x=a.unstable_transitionCallbacks),a.formState!==void 0&&(D=a.formState)),t=bm(e,1,!0,t,a??null,i,r,o,m,E,x,D),t.context=Sm(null),a=t.current,i=nn(),r=_a(i),r.callback=null,Ra(a,r,i),t.current.lanes=i,B(t,i),Vn(t),e[Xe]=t.current,Hs(e),new Tu(t)},tr.version="19.0.0",tr}var Ym;function n1(){if(Ym)return ao.exports;Ym=1;function l(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(l)}catch(n){console.error(n)}}return l(),ao.exports=t1(),ao.exports}var a1=n1();const l1="modulepreload",i1=function(l){return"/static/"+l},km={},be=function(n,c,s){let u=Promise.resolve();if(c&&c.length>0){document.getElementsByTagName("link");const d=document.querySelector("meta[property=csp-nonce]"),y=(d==null?void 0:d.nonce)||(d==null?void 0:d.getAttribute("nonce"));u=Promise.allSettled(c.map(v=>{if(v=i1(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 R=document.createElement("link");if(R.rel=p?"stylesheet":l1,p||(R.as="script"),R.crossOrigin="",R.href=v,y&&R.setAttribute("nonce",y),document.head.appendChild(R),p)return new Promise((S,_)=>{R.addEventListener("load",S),R.addEventListener("error",()=>_(new Error(`Unable to preload CSS for ${v}`)))})}))}function f(d){const y=new Event("vite:preloadError",{cancelable:!0});if(y.payload=d,window.dispatchEvent(y),!y.defaultPrevented)throw d}return u.then(d=>{for(const y of d||[])y.status==="rejected"&&f(y.reason);return n().catch(f)})};var uo={exports:{}},co={};/** * @license React * react-compiler-runtime.production.js * @@ -55,8 +55,8 @@ Error generating stack: `+a.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 r1(){if(km)return co;km=1;var l=ku().__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;return co.c=function(n){return l.H.useMemoCache(n)},co}var Xm;function u1(){return Xm||(Xm=1,uo.exports=r1()),uo.exports}var Ke=u1(),nr={},Qm;function c1(){if(Qm)return nr;Qm=1,Object.defineProperty(nr,"__esModule",{value:!0}),nr.parse=d,nr.serialize=p;const l=/^[\u0021-\u003A\u003C\u003E-\u007E]+$/,n=/^[\u0021-\u003A\u003C-\u007E]*$/,c=/^([.]?[a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?)([.][a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?)*$/i,s=/^[\u0020-\u003A\u003D-\u007E]*$/,u=Object.prototype.toString,f=(()=>{const S=function(){};return S.prototype=Object.create(null),S})();function d(S,_){const O=new f,H=S.length;if(H<2)return O;const U=(_==null?void 0:_.decode)||b;let M=0;do{const q=S.indexOf("=",M);if(q===-1)break;const Y=S.indexOf(";",M),J=Y===-1?H:Y;if(q>J){M=S.lastIndexOf(";",q-1)+1;continue}const k=y(S,M,q),N=v(S,q,k),W=S.slice(k,N);if(O[W]===void 0){let ie=y(S,q+1,J),X=v(S,J,ie);const I=U(S.slice(ie,X));O[W]=I}M=J+1}while(M<H);return O}function y(S,_,O){do{const H=S.charCodeAt(_);if(H!==32&&H!==9)return _}while(++_<O);return O}function v(S,_,O){for(;_>O;){const H=S.charCodeAt(--_);if(H!==32&&H!==9)return _+1}return O}function p(S,_,O){const H=(O==null?void 0:O.encode)||encodeURIComponent;if(!l.test(S))throw new TypeError(`argument name is invalid: ${S}`);const U=H(_);if(!n.test(U))throw new TypeError(`argument val is invalid: ${_}`);let M=S+"="+U;if(!O)return M;if(O.maxAge!==void 0){if(!Number.isInteger(O.maxAge))throw new TypeError(`option maxAge is invalid: ${O.maxAge}`);M+="; Max-Age="+O.maxAge}if(O.domain){if(!c.test(O.domain))throw new TypeError(`option domain is invalid: ${O.domain}`);M+="; Domain="+O.domain}if(O.path){if(!s.test(O.path))throw new TypeError(`option path is invalid: ${O.path}`);M+="; Path="+O.path}if(O.expires){if(!R(O.expires)||!Number.isFinite(O.expires.valueOf()))throw new TypeError(`option expires is invalid: ${O.expires}`);M+="; Expires="+O.expires.toUTCString()}if(O.httpOnly&&(M+="; HttpOnly"),O.secure&&(M+="; Secure"),O.partitioned&&(M+="; Partitioned"),O.priority)switch(typeof O.priority=="string"?O.priority.toLowerCase():void 0){case"low":M+="; Priority=Low";break;case"medium":M+="; Priority=Medium";break;case"high":M+="; Priority=High";break;default:throw new TypeError(`option priority is invalid: ${O.priority}`)}if(O.sameSite)switch(typeof O.sameSite=="string"?O.sameSite.toLowerCase():O.sameSite){case!0:case"strict":M+="; SameSite=Strict";break;case"lax":M+="; SameSite=Lax";break;case"none":M+="; SameSite=None";break;default:throw new TypeError(`option sameSite is invalid: ${O.sameSite}`)}return M}function b(S){if(S.indexOf("%")===-1)return S;try{return decodeURIComponent(S)}catch{return S}}function R(S){return u.call(S)==="[object Date]"}return nr}c1();/** - * react-router v7.1.5 + */var Gm;function r1(){if(Gm)return co;Gm=1;var l=Gu().__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;return co.c=function(n){return l.H.useMemoCache(n)},co}var Xm;function u1(){return Xm||(Xm=1,uo.exports=r1()),uo.exports}var Ke=u1(),nr={},Qm;function c1(){if(Qm)return nr;Qm=1,Object.defineProperty(nr,"__esModule",{value:!0}),nr.parse=d,nr.serialize=p;const l=/^[\u0021-\u003A\u003C\u003E-\u007E]+$/,n=/^[\u0021-\u003A\u003C-\u007E]*$/,c=/^([.]?[a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?)([.][a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?)*$/i,s=/^[\u0020-\u003A\u003D-\u007E]*$/,u=Object.prototype.toString,f=(()=>{const S=function(){};return S.prototype=Object.create(null),S})();function d(S,_){const O=new f,H=S.length;if(H<2)return O;const U=(_==null?void 0:_.decode)||b;let M=0;do{const q=S.indexOf("=",M);if(q===-1)break;const Y=S.indexOf(";",M),J=Y===-1?H:Y;if(q>J){M=S.lastIndexOf(";",q-1)+1;continue}const G=y(S,M,q),N=v(S,q,G),W=S.slice(G,N);if(O[W]===void 0){let ie=y(S,q+1,J),X=v(S,J,ie);const I=U(S.slice(ie,X));O[W]=I}M=J+1}while(M<H);return O}function y(S,_,O){do{const H=S.charCodeAt(_);if(H!==32&&H!==9)return _}while(++_<O);return O}function v(S,_,O){for(;_>O;){const H=S.charCodeAt(--_);if(H!==32&&H!==9)return _+1}return O}function p(S,_,O){const H=(O==null?void 0:O.encode)||encodeURIComponent;if(!l.test(S))throw new TypeError(`argument name is invalid: ${S}`);const U=H(_);if(!n.test(U))throw new TypeError(`argument val is invalid: ${_}`);let M=S+"="+U;if(!O)return M;if(O.maxAge!==void 0){if(!Number.isInteger(O.maxAge))throw new TypeError(`option maxAge is invalid: ${O.maxAge}`);M+="; Max-Age="+O.maxAge}if(O.domain){if(!c.test(O.domain))throw new TypeError(`option domain is invalid: ${O.domain}`);M+="; Domain="+O.domain}if(O.path){if(!s.test(O.path))throw new TypeError(`option path is invalid: ${O.path}`);M+="; Path="+O.path}if(O.expires){if(!R(O.expires)||!Number.isFinite(O.expires.valueOf()))throw new TypeError(`option expires is invalid: ${O.expires}`);M+="; Expires="+O.expires.toUTCString()}if(O.httpOnly&&(M+="; HttpOnly"),O.secure&&(M+="; Secure"),O.partitioned&&(M+="; Partitioned"),O.priority)switch(typeof O.priority=="string"?O.priority.toLowerCase():void 0){case"low":M+="; Priority=Low";break;case"medium":M+="; Priority=Medium";break;case"high":M+="; Priority=High";break;default:throw new TypeError(`option priority is invalid: ${O.priority}`)}if(O.sameSite)switch(typeof O.sameSite=="string"?O.sameSite.toLowerCase():O.sameSite){case!0:case"strict":M+="; SameSite=Strict";break;case"lax":M+="; SameSite=Lax";break;case"none":M+="; SameSite=None";break;default:throw new TypeError(`option sameSite is invalid: ${O.sameSite}`)}return M}function b(S){if(S.indexOf("%")===-1)return S;try{return decodeURIComponent(S)}catch{return S}}function R(S){return u.call(S)==="[object Date]"}return nr}c1();/** + * react-router v7.2.0 * * Copyright (c) Remix Software Inc. * @@ -64,11 +64,11 @@ Error generating stack: `+a.message+` * LICENSE.md file in the root directory of this source tree. * * @license MIT - */var Zm="popstate";function s1(l={}){function n(s,u){let{pathname:f,search:d,hash:y}=s.location;return sr("",{pathname:f,search:d,hash:y},u.state&&u.state.usr||null,u.state&&u.state.key||"default")}function c(s,u){return typeof u=="string"?u:Va(u)}return f1(n,c,null,l)}function He(l,n){if(l===!1||l===null||typeof l>"u")throw new Error(n)}function Ot(l,n){if(!l){typeof console<"u"&&console.warn(n);try{throw new Error(n)}catch{}}}function o1(){return Math.random().toString(36).substring(2,10)}function Km(l,n){return{usr:l.state,key:l.key,idx:n}}function sr(l,n,c=null,s){return{pathname:typeof l=="string"?l:l.pathname,search:"",hash:"",...typeof n=="string"?Ga(n):n,state:c,key:n&&n.key||s||o1()}}function Va({pathname:l="/",search:n="",hash:c=""}){return n&&n!=="?"&&(l+=n.charAt(0)==="?"?n:"?"+n),c&&c!=="#"&&(l+=c.charAt(0)==="#"?c:"#"+c),l}function Ga(l){let n={};if(l){let c=l.indexOf("#");c>=0&&(n.hash=l.substring(c),l=l.substring(0,c));let s=l.indexOf("?");s>=0&&(n.search=l.substring(s),l=l.substring(0,s)),l&&(n.pathname=l)}return n}function f1(l,n,c,s={}){let{window:u=document.defaultView,v5Compat:f=!1}=s,d=u.history,y="POP",v=null,p=b();p==null&&(p=0,d.replaceState({...d.state,idx:p},""));function b(){return(d.state||{idx:null}).idx}function R(){y="POP";let U=b(),M=U==null?null:U-p;p=U,v&&v({action:y,location:H.location,delta:M})}function S(U,M){y="PUSH";let q=sr(H.location,U,M);p=b()+1;let Y=Km(q,p),J=H.createHref(q);try{d.pushState(Y,"",J)}catch(k){if(k instanceof DOMException&&k.name==="DataCloneError")throw k;u.location.assign(J)}f&&v&&v({action:y,location:H.location,delta:1})}function _(U,M){y="REPLACE";let q=sr(H.location,U,M);p=b();let Y=Km(q,p),J=H.createHref(q);d.replaceState(Y,"",J),f&&v&&v({action:y,location:H.location,delta:0})}function O(U){let M=u.location.origin!=="null"?u.location.origin:u.location.href,q=typeof U=="string"?U:Va(U);return q=q.replace(/ $/,"%20"),He(M,`No window.location.(origin|href) available to create URL for href: ${q}`),new URL(q,M)}let H={get action(){return y},get location(){return l(u,d)},listen(U){if(v)throw new Error("A history only accepts one active listener");return u.addEventListener(Zm,R),v=U,()=>{u.removeEventListener(Zm,R),v=null}},createHref(U){return n(u,U)},createURL:O,encodeLocation(U){let M=O(U);return{pathname:M.pathname,search:M.search,hash:M.hash}},push:S,replace:_,go(U){return d.go(U)}};return H}var d1=new Set(["lazy","caseSensitive","path","id","index","children"]);function h1(l){return l.index===!0}function Lu(l,n,c=[],s={}){return l.map((u,f)=>{let d=[...c,String(f)],y=typeof u.id=="string"?u.id:d.join("-");if(He(u.index!==!0||!u.children,"Cannot specify children on an index route"),He(!s[y],`Found a route id collision on id "${y}". Route id's must be globally unique within Data Router usages`),h1(u)){let v={...u,...n(u),id:y};return s[y]=v,v}else{let v={...u,...n(u),id:y,children:void 0};return s[y]=v,u.children&&(v.children=Lu(u.children,n,d,s)),v}})}function qa(l,n,c="/"){return Au(l,n,c,!1)}function Au(l,n,c,s){let u=typeof n=="string"?Ga(n):n,f=rn(u.pathname||"/",c);if(f==null)return null;let d=Ay(l);y1(d);let y=null;for(let v=0;y==null&&v<d.length;++v){let p=N1(f);y=R1(d[v],p,s)}return y}function m1(l,n){let{route:c,pathname:s,params:u}=l;return{id:c.id,pathname:s,params:u,data:n[c.id],handle:c.handle}}function Ay(l,n=[],c=[],s=""){let u=(f,d,y)=>{let v={relativePath:y===void 0?f.path||"":y,caseSensitive:f.caseSensitive===!0,childrenIndex:d,route:f};v.relativePath.startsWith("/")&&(He(v.relativePath.startsWith(s),`Absolute route path "${v.relativePath}" nested under path "${s}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),v.relativePath=v.relativePath.slice(s.length));let p=Gn([s,v.relativePath]),b=c.concat(v);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 "${p}".`),Ay(f.children,n,b,p)),!(f.path==null&&!f.index)&&n.push({path:p,score:x1(p,f.index),routesMeta:b})};return l.forEach((f,d)=>{var y;if(f.path===""||!((y=f.path)!=null&&y.includes("?")))u(f,d);else for(let v of My(f.path))u(f,d,v)}),n}function My(l){let n=l.split("/");if(n.length===0)return[];let[c,...s]=n,u=c.endsWith("?"),f=c.replace(/\?$/,"");if(s.length===0)return u?[f,""]:[f];let d=My(s.join("/")),y=[];return y.push(...d.map(v=>v===""?f:[f,v].join("/"))),u&&y.push(...d),y.map(v=>l.startsWith("/")&&v===""?"/":v)}function y1(l){l.sort((n,c)=>n.score!==c.score?c.score-n.score:_1(n.routesMeta.map(s=>s.childrenIndex),c.routesMeta.map(s=>s.childrenIndex)))}var p1=/^:[\w-]+$/,v1=3,g1=2,E1=1,b1=10,S1=-2,$m=l=>l==="*";function x1(l,n){let c=l.split("/"),s=c.length;return c.some($m)&&(s+=S1),n&&(s+=g1),c.filter(u=>!$m(u)).reduce((u,f)=>u+(p1.test(f)?v1:f===""?E1:b1),s)}function _1(l,n){return l.length===n.length&&l.slice(0,-1).every((s,u)=>s===n[u])?l[l.length-1]-n[n.length-1]:0}function R1(l,n,c=!1){let{routesMeta:s}=l,u={},f="/",d=[];for(let y=0;y<s.length;++y){let v=s[y],p=y===s.length-1,b=f==="/"?n:n.slice(f.length)||"/",R=Uu({path:v.relativePath,caseSensitive:v.caseSensitive,end:p},b),S=v.route;if(!R&&p&&c&&!s[s.length-1].route.index&&(R=Uu({path:v.relativePath,caseSensitive:v.caseSensitive,end:!1},b)),!R)return null;Object.assign(u,R.params),d.push({params:u,pathname:Gn([f,R.pathname]),pathnameBase:O1(Gn([f,R.pathnameBase])),route:S}),R.pathnameBase!=="/"&&(f=Gn([f,R.pathnameBase]))}return d}function Uu(l,n){typeof l=="string"&&(l={path:l,caseSensitive:!1,end:!0});let[c,s]=T1(l.path,l.caseSensitive,l.end),u=n.match(c);if(!u)return null;let f=u[0],d=f.replace(/(.)\/+$/,"$1"),y=u.slice(1);return{params:s.reduce((p,{paramName:b,isOptional:R},S)=>{if(b==="*"){let O=y[S]||"";d=f.slice(0,f.length-O.length).replace(/(.)\/+$/,"$1")}const _=y[S];return R&&!_?p[b]=void 0:p[b]=(_||"").replace(/%2F/g,"/"),p},{}),pathname:f,pathnameBase:d,pattern:l}}function T1(l,n=!1,c=!0){Ot(l==="*"||!l.endsWith("*")||l.endsWith("/*"),`Route path "${l}" will be treated as if it were "${l.replace(/\*$/,"/*")}" because the \`*\` character must always follow a \`/\` in the pattern. To get rid of this warning, please change the route path to "${l.replace(/\*$/,"/*")}".`);let s=[],u="^"+l.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(d,y,v)=>(s.push({paramName:y,isOptional:v!=null}),v?"/?([^\\/]+)?":"/([^\\/]+)"));return l.endsWith("*")?(s.push({paramName:"*"}),u+=l==="*"||l==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):c?u+="\\/*$":l!==""&&l!=="/"&&(u+="(?:(?=\\/|$))"),[new RegExp(u,n?void 0:"i"),s]}function N1(l){try{return l.split("/").map(n=>decodeURIComponent(n).replace(/\//g,"%2F")).join("/")}catch(n){return Ot(!1,`The URL path "${l}" could not be decoded because it is a malformed URL segment. This is probably due to a bad percent encoding (${n}).`),l}}function rn(l,n){if(n==="/")return l;if(!l.toLowerCase().startsWith(n.toLowerCase()))return null;let c=n.endsWith("/")?n.length-1:n.length,s=l.charAt(c);return s&&s!=="/"?null:l.slice(c)||"/"}function C1(l,n="/"){let{pathname:c,search:s="",hash:u=""}=typeof l=="string"?Ga(l):l;return{pathname:c?c.startsWith("/")?c:j1(c,n):n,search:D1(s),hash:w1(u)}}function j1(l,n){let c=n.replace(/\/+$/,"").split("/");return l.split("/").forEach(u=>{u===".."?c.length>1&&c.pop():u!=="."&&c.push(u)}),c.length>1?c.join("/"):"/"}function so(l,n,c,s){return`Cannot include a '${l}' character in a manually specified \`to.${n}\` field [${JSON.stringify(s)}]. Please separate it out to the \`to.${c}\` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.`}function zy(l){return l.filter((n,c)=>c===0||n.route.path&&n.route.path.length>0)}function qo(l){let n=zy(l);return n.map((c,s)=>s===n.length-1?c.pathname:c.pathnameBase)}function Vo(l,n,c,s=!1){let u;typeof l=="string"?u=Ga(l):(u={...l},He(!u.pathname||!u.pathname.includes("?"),so("?","pathname","search",u)),He(!u.pathname||!u.pathname.includes("#"),so("#","pathname","hash",u)),He(!u.search||!u.search.includes("#"),so("#","search","hash",u)));let f=l===""||u.pathname==="",d=f?"/":u.pathname,y;if(d==null)y=c;else{let R=n.length-1;if(!s&&d.startsWith("..")){let S=d.split("/");for(;S[0]==="..";)S.shift(),R-=1;u.pathname=S.join("/")}y=R>=0?n[R]:"/"}let v=C1(u,y),p=d&&d!=="/"&&d.endsWith("/"),b=(f||d===".")&&c.endsWith("/");return!v.pathname.endsWith("/")&&(p||b)&&(v.pathname+="/"),v}var Gn=l=>l.join("/").replace(/\/\/+/g,"/"),O1=l=>l.replace(/\/+$/,"").replace(/^\/*/,"/"),D1=l=>!l||l==="?"?"":l.startsWith("?")?l:"?"+l,w1=l=>!l||l==="#"?"":l.startsWith("#")?l:"#"+l,Hu=class{constructor(l,n,c,s=!1){this.status=l,this.statusText=n||"",this.internal=s,c instanceof Error?(this.data=c.toString(),this.error=c):this.data=c}};function or(l){return l!=null&&typeof l.status=="number"&&typeof l.statusText=="string"&&typeof l.internal=="boolean"&&"data"in l}var Ly=["POST","PUT","PATCH","DELETE"],A1=new Set(Ly),M1=["GET",...Ly],z1=new Set(M1),L1=new Set([301,302,303,307,308]),U1=new Set([307,308]),oo={state:"idle",location:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},H1={state:"idle",data:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},ai={state:"unblocked",proceed:void 0,reset:void 0,location:void 0},Yo=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,B1=l=>({hasErrorBoundary:!!l.hasErrorBoundary}),Uy="remix-router-transitions",Hy=Symbol("ResetLoaderData");function q1(l){const n=l.window?l.window:typeof window<"u"?window:void 0,c=typeof n<"u"&&typeof n.document<"u"&&typeof n.document.createElement<"u";He(l.routes.length>0,"You must provide a non-empty routes array to createRouter");let s=l.mapRouteProperties||B1,u={},f=Lu(l.routes,s,void 0,u),d,y=l.basename||"/",v=l.dataStrategy||X1,p=l.patchRoutesOnNavigation,b={...l.future},R=null,S=new Set,_=null,O=null,H=null,U=l.hydrationData!=null,M=qa(f,l.history.location,y),q=!1,Y=null;if(M==null&&!p){let C=_n(404,{pathname:l.history.location.pathname}),{matches:A,route:B}=iy(f);M=A,Y={[B.id]:C}}M&&!l.hydrationData&&Qn(M,f,l.history.location.pathname).active&&(M=null);let J;if(M)if(M.some(C=>C.route.lazy))J=!1;else if(!M.some(C=>C.route.loader))J=!0;else{let C=l.hydrationData?l.hydrationData.loaderData:null,A=l.hydrationData?l.hydrationData.errors:null;if(A){let B=M.findIndex(F=>A[F.route.id]!==void 0);J=M.slice(0,B+1).every(F=>!jo(F.route,C,A))}else J=M.every(B=>!jo(B.route,C,A))}else{J=!1,M=[];let C=Qn(null,f,l.history.location.pathname);C.active&&C.matches&&(q=!0,M=C.matches)}let k,N={historyAction:l.history.action,location:l.history.location,matches:M,initialized:J,navigation:oo,restoreScrollPosition:l.hydrationData!=null?!1:null,preventScrollReset:!1,revalidation:"idle",loaderData:l.hydrationData&&l.hydrationData.loaderData||{},actionData:l.hydrationData&&l.hydrationData.actionData||null,errors:l.hydrationData&&l.hydrationData.errors||Y,fetchers:new Map,blockers:new Map},W="POP",ie=!1,X,I=!1,de=new Map,Ne=null,Ye=!1,Be=!1,ze=new Set,K=new Map,ce=0,ne=-1,Re=new Map,T=new Set,Q=new Map,le=new Map,te=new Set,P=new Map,ge,ye=null;function Je(){if(R=l.history.listen(({action:C,location:A,delta:B})=>{if(ge){ge(),ge=void 0;return}Ot(P.size===0||B!=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 F=gr({currentLocation:N.location,nextLocation:A,historyAction:C});if(F&&B!=null){let ae=new Promise(me=>{ge=me});l.history.go(B*-1),Tt(F,{state:"blocked",location:A,proceed(){Tt(F,{state:"proceeding",proceed:void 0,reset:void 0,location:A}),ae.then(()=>l.history.go(B))},reset(){let me=new Map(N.blockers);me.set(F,ai),Ee({blockers:me})}});return}return lt(C,A)}),c){t0(n,de);let C=()=>n0(n,de);n.addEventListener("pagehide",C),Ne=()=>n.removeEventListener("pagehide",C)}return N.initialized||lt("POP",N.location,{initialHydration:!0}),k}function Ce(){R&&R(),Ne&&Ne(),S.clear(),X&&X.abort(),N.fetchers.forEach((C,A)=>ui(A)),N.blockers.forEach((C,A)=>Nn(A))}function Le(C){return S.add(C),()=>S.delete(C)}function Ee(C,A={}){N={...N,...C};let B=[],F=[];N.fetchers.forEach((ae,me)=>{ae.state==="idle"&&(te.has(me)?B.push(me):F.push(me))}),te.forEach(ae=>{!N.fetchers.has(ae)&&!K.has(ae)&&B.push(ae)}),[...S].forEach(ae=>ae(N,{deletedFetchers:B,viewTransitionOpts:A.viewTransitionOpts,flushSync:A.flushSync===!0})),B.forEach(ae=>ui(ae)),F.forEach(ae=>N.fetchers.delete(ae))}function Ze(C,A,{flushSync:B}={}){var ee,fe;let F=N.actionData!=null&&N.navigation.formMethod!=null&&wn(N.navigation.formMethod)&&N.navigation.state==="loading"&&((ee=C.state)==null?void 0:ee._isRedirect)!==!0,ae;A.actionData?Object.keys(A.actionData).length>0?ae=A.actionData:ae=null:F?ae=N.actionData:ae=null;let me=A.loaderData?ay(N.loaderData,A.loaderData,A.matches||[],A.errors):N.loaderData,xe=N.blockers;xe.size>0&&(xe=new Map(xe),xe.forEach((ve,Xe)=>xe.set(Xe,ai)));let re=ie===!0||N.navigation.formMethod!=null&&wn(N.navigation.formMethod)&&((fe=C.state)==null?void 0:fe._isRedirect)!==!0;d&&(f=d,d=void 0),Ye||W==="POP"||(W==="PUSH"?l.history.push(C,C.state):W==="REPLACE"&&l.history.replace(C,C.state));let oe;if(W==="POP"){let ve=de.get(N.location.pathname);ve&&ve.has(C.pathname)?oe={currentLocation:N.location,nextLocation:C}:de.has(C.pathname)&&(oe={currentLocation:C,nextLocation:N.location})}else if(I){let ve=de.get(N.location.pathname);ve?ve.add(C.pathname):(ve=new Set([C.pathname]),de.set(N.location.pathname,ve)),oe={currentLocation:N.location,nextLocation:C}}Ee({...A,actionData:ae,loaderData:me,historyAction:W,location:C,initialized:!0,navigation:oo,revalidation:"idle",restoreScrollPosition:zn(C,A.matches||N.matches),preventScrollReset:re,blockers:xe},{viewTransitionOpts:oe,flushSync:B===!0}),W="POP",ie=!1,I=!1,Ye=!1,Be=!1,ye==null||ye.resolve(),ye=null}async function vt(C,A){if(typeof C=="number"){l.history.go(C);return}let B=Co(N.location,N.matches,y,C,A==null?void 0:A.fromRouteId,A==null?void 0:A.relative),{path:F,submission:ae,error:me}=Fm(!1,B,A),xe=N.location,re=sr(N.location,F,A&&A.state);re={...re,...l.history.encodeLocation(re)};let oe=A&&A.replace!=null?A.replace:void 0,ee="PUSH";oe===!0?ee="REPLACE":oe===!1||ae!=null&&wn(ae.formMethod)&&ae.formAction===N.location.pathname+N.location.search&&(ee="REPLACE");let fe=A&&"preventScrollReset"in A?A.preventScrollReset===!0:void 0,ve=(A&&A.flushSync)===!0,Xe=gr({currentLocation:xe,nextLocation:re,historyAction:ee});if(Xe){Tt(Xe,{state:"blocked",location:re,proceed(){Tt(Xe,{state:"proceeding",proceed:void 0,reset:void 0,location:re}),vt(C,A)},reset(){let yt=new Map(N.blockers);yt.set(Xe,ai),Ee({blockers:yt})}});return}await lt(ee,re,{submission:ae,pendingError:me,preventScrollReset:fe,replace:A&&A.replace,enableViewTransition:A&&A.viewTransition,flushSync:ve})}function it(){ye||(ye=a0()),Kt(),Ee({revalidation:"loading"});let C=ye.promise;return N.navigation.state==="submitting"?C:N.navigation.state==="idle"?(lt(N.historyAction,N.location,{startUninterruptedRevalidation:!0}),C):(lt(W||N.historyAction,N.navigation.location,{overrideNavigation:N.navigation,enableViewTransition:I===!0}),C)}async function lt(C,A,B){X&&X.abort(),X=null,W=C,Ye=(B&&B.startUninterruptedRevalidation)===!0,bl(N.location,N.matches),ie=(B&&B.preventScrollReset)===!0,I=(B&&B.enableViewTransition)===!0;let F=d||f,ae=B&&B.overrideNavigation,me=B!=null&&B.initialHydration&&N.matches&&N.matches.length>0&&!q?N.matches:qa(F,A,y),xe=(B&&B.flushSync)===!0;if(me&&N.initialized&&!Be&&J1(N.location,A)&&!(B&&B.submission&&wn(B.submission.formMethod))){Ze(A,{matches:me},{flushSync:xe});return}let re=Qn(me,F,A.pathname);if(re.active&&re.matches&&(me=re.matches),!me){let{error:at,notFoundMatches:Pe,route:ot}=ci(A.pathname);Ze(A,{matches:Pe,loaderData:{},errors:{[ot.id]:at}},{flushSync:xe});return}X=new AbortController;let oe=Il(l.history,A,X.signal,B&&B.submission),ee;if(B&&B.pendingError)ee=[ml(me).route.id,{type:"error",error:B.pendingError}];else if(B&&B.submission&&wn(B.submission.formMethod)){let at=await De(oe,A,B.submission,me,re.active,{replace:B.replace,flushSync:xe});if(at.shortCircuited)return;if(at.pendingActionResult){let[Pe,ot]=at.pendingActionResult;if(an(ot)&&or(ot.error)&&ot.error.status===404){X=null,Ze(A,{matches:at.matches,loaderData:{},errors:{[Pe]:ot.error}});return}}me=at.matches||me,ee=at.pendingActionResult,ae=fo(A,B.submission),xe=!1,re.active=!1,oe=Il(l.history,oe.url,oe.signal)}let{shortCircuited:fe,matches:ve,loaderData:Xe,errors:yt}=await Rt(oe,A,me,re.active,ae,B&&B.submission,B&&B.fetcherSubmission,B&&B.replace,B&&B.initialHydration===!0,xe,ee);fe||(X=null,Ze(A,{matches:ve||me,...ly(ee),loaderData:Xe,errors:yt}))}async function De(C,A,B,F,ae,me={}){Kt();let xe=I1(A,B);if(Ee({navigation:xe},{flushSync:me.flushSync===!0}),ae){let ee=await Ln(F,A.pathname,C.signal);if(ee.type==="aborted")return{shortCircuited:!0};if(ee.type==="error"){let fe=ml(ee.partialMatches).route.id;return{matches:ee.partialMatches,pendingActionResult:[fe,{type:"error",error:ee.error}]}}else if(ee.matches)F=ee.matches;else{let{notFoundMatches:fe,error:ve,route:Xe}=ci(A.pathname);return{matches:fe,pendingActionResult:[Xe.id,{type:"error",error:ve}]}}}let re,oe=ur(F,A);if(!oe.route.action&&!oe.route.lazy)re={type:"error",error:_n(405,{method:C.method,pathname:A.pathname,routeId:oe.route.id})};else if(re=(await Ht("action",N,C,[oe],F,null))[oe.route.id],C.signal.aborted)return{shortCircuited:!0};if(vl(re)){let ee;return me&&me.replace!=null?ee=me.replace:ee=ey(re.response.headers.get("Location"),new URL(C.url),y)===N.location.pathname+N.location.search,await Ut(C,re,!0,{submission:B,replace:ee}),{shortCircuited:!0}}if(an(re)){let ee=ml(F,oe.route.id);return(me&&me.replace)!==!0&&(W="PUSH"),{matches:F,pendingActionResult:[ee.route.id,re]}}return{matches:F,pendingActionResult:[oe.route.id,re]}}async function Rt(C,A,B,F,ae,me,xe,re,oe,ee,fe){let ve=ae||fo(A,me),Xe=me||xe||uy(ve),yt=!Ye&&!oe;if(F){if(yt){let rt=St(fe);Ee({navigation:ve,...rt!==void 0?{actionData:rt}:{}},{flushSync:ee})}let qe=await Ln(B,A.pathname,C.signal);if(qe.type==="aborted")return{shortCircuited:!0};if(qe.type==="error"){let rt=ml(qe.partialMatches).route.id;return{matches:qe.partialMatches,loaderData:{},errors:{[rt]:qe.error}}}else if(qe.matches)B=qe.matches;else{let{error:rt,notFoundMatches:$t,route:Za}=ci(A.pathname);return{matches:$t,loaderData:{},errors:{[Za.id]:rt}}}}let at=d||f,[Pe,ot]=Pm(l.history,N,B,Xe,A,oe===!0,Be,ze,te,Q,T,at,y,fe);if(ne=++ce,Pe.length===0&&ot.length===0){let qe=ma();return Ze(A,{matches:B,loaderData:{},errors:fe&&an(fe[1])?{[fe[0]]:fe[1].error}:null,...ly(fe),...qe?{fetchers:new Map(N.fetchers)}:{}},{flushSync:ee}),{shortCircuited:!0}}if(yt){let qe={};if(!F){qe.navigation=ve;let rt=St(fe);rt!==void 0&&(qe.actionData=rt)}ot.length>0&&(qe.fetchers=Pt(ot)),Ee(qe,{flushSync:ee})}ot.forEach(qe=>{Mn(qe.key),qe.controller&&K.set(qe.key,qe.controller)});let sn=()=>ot.forEach(qe=>Mn(qe.key));X&&X.signal.addEventListener("abort",sn);let{loaderResults:Zn,fetcherResults:Dt}=await mt(N,B,Pe,ot,C);if(C.signal.aborted)return{shortCircuited:!0};X&&X.signal.removeEventListener("abort",sn),ot.forEach(qe=>K.delete(qe.key));let wt=Cu(Zn);if(wt)return await Ut(C,wt.result,!0,{replace:re}),{shortCircuited:!0};if(wt=Cu(Dt),wt)return T.add(wt.key),await Ut(C,wt.result,!0,{replace:re}),{shortCircuited:!0};let{loaderData:Kn,errors:on}=ny(N,B,Zn,fe,ot,Dt);oe&&N.errors&&(on={...N.errors,...on});let et=ma(),Xa=Bt(ne),Qa=et||Xa||ot.length>0;return{matches:B,loaderData:Kn,errors:on,...Qa?{fetchers:new Map(N.fetchers)}:{}}}function St(C){if(C&&!an(C[1]))return{[C[0]]:C[1].data};if(N.actionData)return Object.keys(N.actionData).length===0?null:N.actionData}function Pt(C){return C.forEach(A=>{let B=N.fetchers.get(A.key),F=ar(void 0,B?B.data:void 0);N.fetchers.set(A.key,F)}),new Map(N.fetchers)}async function Zt(C,A,B,F){Mn(C);let ae=(F&&F.flushSync)===!0,me=d||f,xe=Co(N.location,N.matches,y,B,A,F==null?void 0:F.relative),re=qa(me,xe,y),oe=Qn(re,me,xe);if(oe.active&&oe.matches&&(re=oe.matches),!re){Ie(C,A,_n(404,{pathname:xe}),{flushSync:ae});return}let{path:ee,submission:fe,error:ve}=Fm(!0,xe,F);if(ve){Ie(C,A,ve,{flushSync:ae});return}let Xe=ur(re,ee),yt=(F&&F.preventScrollReset)===!0;if(fe&&wn(fe.formMethod)){await un(C,A,ee,Xe,re,oe.active,ae,yt,fe);return}Q.set(C,{routeId:A,path:ee}),await cn(C,A,ee,Xe,re,oe.active,ae,yt,fe)}async function un(C,A,B,F,ae,me,xe,re,oe){Kt(),Q.delete(C);function ee(ut){if(!ut.route.action&&!ut.route.lazy){let $n=_n(405,{method:oe.formMethod,pathname:B,routeId:A});return Ie(C,A,$n,{flushSync:xe}),!0}return!1}if(!me&&ee(F))return;let fe=N.fetchers.get(C);_e(C,e0(oe,fe),{flushSync:xe});let ve=new AbortController,Xe=Il(l.history,B,ve.signal,oe);if(me){let ut=await Ln(ae,B,Xe.signal);if(ut.type==="aborted")return;if(ut.type==="error"){Ie(C,A,ut.error,{flushSync:xe});return}else if(ut.matches){if(ae=ut.matches,F=ur(ae,B),ee(F))return}else{Ie(C,A,_n(404,{pathname:B}),{flushSync:xe});return}}K.set(C,ve);let yt=ce,Pe=(await Ht("action",N,Xe,[F],ae,C))[F.route.id];if(Xe.signal.aborted){K.get(C)===ve&&K.delete(C);return}if(te.has(C)){if(vl(Pe)||an(Pe)){_e(C,Ha(void 0));return}}else{if(vl(Pe))if(K.delete(C),ne>yt){_e(C,Ha(void 0));return}else return T.add(C),_e(C,ar(oe)),Ut(Xe,Pe,!1,{fetcherSubmission:oe,preventScrollReset:re});if(an(Pe)){Ie(C,A,Pe.error);return}}let ot=N.navigation.location||N.location,sn=Il(l.history,ot,ve.signal),Zn=d||f,Dt=N.navigation.state!=="idle"?qa(Zn,N.navigation.location,y):N.matches;He(Dt,"Didn't find any matches after fetcher action");let wt=++ce;Re.set(C,wt);let Kn=ar(oe,Pe.data);N.fetchers.set(C,Kn);let[on,et]=Pm(l.history,N,Dt,oe,ot,!1,Be,ze,te,Q,T,Zn,y,[F.route.id,Pe]);et.filter(ut=>ut.key!==C).forEach(ut=>{let $n=ut.key,br=N.fetchers.get($n),Sl=ar(void 0,br?br.data:void 0);N.fetchers.set($n,Sl),Mn($n),ut.controller&&K.set($n,ut.controller)}),Ee({fetchers:new Map(N.fetchers)});let Xa=()=>et.forEach(ut=>Mn(ut.key));ve.signal.addEventListener("abort",Xa);let{loaderResults:Qa,fetcherResults:qe}=await mt(N,Dt,on,et,sn);if(ve.signal.aborted)return;ve.signal.removeEventListener("abort",Xa),Re.delete(C),K.delete(C),et.forEach(ut=>K.delete(ut.key));let rt=Cu(Qa);if(rt)return Ut(sn,rt.result,!1,{preventScrollReset:re});if(rt=Cu(qe),rt)return T.add(rt.key),Ut(sn,rt.result,!1,{preventScrollReset:re});let{loaderData:$t,errors:Za}=ny(N,Dt,Qa,void 0,et,qe);if(N.fetchers.has(C)){let ut=Ha(Pe.data);N.fetchers.set(C,ut)}Bt(wt),N.navigation.state==="loading"&&wt>ne?(He(W,"Expected pending action"),X&&X.abort(),Ze(N.navigation.location,{matches:Dt,loaderData:$t,errors:Za,fetchers:new Map(N.fetchers)})):(Ee({errors:Za,loaderData:ay(N.loaderData,$t,Dt,Za),fetchers:new Map(N.fetchers)}),Be=!1)}async function cn(C,A,B,F,ae,me,xe,re,oe){let ee=N.fetchers.get(C);_e(C,ar(oe,ee?ee.data:void 0),{flushSync:xe});let fe=new AbortController,ve=Il(l.history,B,fe.signal);if(me){let Pe=await Ln(ae,B,ve.signal);if(Pe.type==="aborted")return;if(Pe.type==="error"){Ie(C,A,Pe.error,{flushSync:xe});return}else if(Pe.matches)ae=Pe.matches,F=ur(ae,B);else{Ie(C,A,_n(404,{pathname:B}),{flushSync:xe});return}}K.set(C,fe);let Xe=ce,at=(await Ht("loader",N,ve,[F],ae,C))[F.route.id];if(K.get(C)===fe&&K.delete(C),!ve.signal.aborted){if(te.has(C)){_e(C,Ha(void 0));return}if(vl(at))if(ne>Xe){_e(C,Ha(void 0));return}else{T.add(C),await Ut(ve,at,!1,{preventScrollReset:re});return}if(an(at)){Ie(C,A,at.error);return}_e(C,Ha(at.data))}}async function Ut(C,A,B,{submission:F,fetcherSubmission:ae,preventScrollReset:me,replace:xe}={}){A.response.headers.has("X-Remix-Revalidate")&&(Be=!0);let re=A.response.headers.get("Location");He(re,"Expected a Location header on the redirect Response"),re=ey(re,new URL(C.url),y);let oe=sr(N.location,re,{_isRedirect:!0});if(c){let at=!1;if(A.response.headers.has("X-Remix-Reload-Document"))at=!0;else if(Yo.test(re)){const Pe=l.history.createURL(re);at=Pe.origin!==n.location.origin||rn(Pe.pathname,y)==null}if(at){xe?n.location.replace(re):n.location.assign(re);return}}X=null;let ee=xe===!0||A.response.headers.has("X-Remix-Replace")?"REPLACE":"PUSH",{formMethod:fe,formAction:ve,formEncType:Xe}=N.navigation;!F&&!ae&&fe&&ve&&Xe&&(F=uy(N.navigation));let yt=F||ae;if(U1.has(A.response.status)&&yt&&wn(yt.formMethod))await lt(ee,oe,{submission:{...yt,formAction:re},preventScrollReset:me||ie,enableViewTransition:B?I:void 0});else{let at=fo(oe,F);await lt(ee,oe,{overrideNavigation:at,fetcherSubmission:ae,preventScrollReset:me||ie,enableViewTransition:B?I:void 0})}}async function Ht(C,A,B,F,ae,me){let xe,re={};try{xe=await Q1(v,C,A,B,F,ae,me,u,s)}catch(oe){return F.forEach(ee=>{re[ee.route.id]={type:"error",error:oe}}),re}for(let[oe,ee]of Object.entries(xe))if(P1(ee)){let fe=ee.result;re[oe]={type:"redirect",response:$1(fe,B,oe,ae,y)}}else re[oe]=await K1(ee);return re}async function mt(C,A,B,F,ae){let me=Ht("loader",C,ae,B,A,null),xe=Promise.all(F.map(async ee=>{if(ee.matches&&ee.match&&ee.controller){let ve=(await Ht("loader",C,Il(l.history,ee.path,ee.controller.signal),[ee.match],ee.matches,ee.key))[ee.match.route.id];return{[ee.key]:ve}}else return Promise.resolve({[ee.key]:{type:"error",error:_n(404,{pathname:ee.path})}})})),re=await me,oe=(await xe).reduce((ee,fe)=>Object.assign(ee,fe),{});return{loaderResults:re,fetcherResults:oe}}function Kt(){Be=!0,Q.forEach((C,A)=>{K.has(A)&&ze.add(A),Mn(A)})}function _e(C,A,B={}){N.fetchers.set(C,A),Ee({fetchers:new Map(N.fetchers)},{flushSync:(B&&B.flushSync)===!0})}function Ie(C,A,B,F={}){let ae=ml(N.matches,A);ui(C),Ee({errors:{[ae.route.id]:B},fetchers:new Map(N.fetchers)},{flushSync:(F&&F.flushSync)===!0})}function Gt(C){return le.set(C,(le.get(C)||0)+1),te.has(C)&&te.delete(C),N.fetchers.get(C)||H1}function ui(C){let A=N.fetchers.get(C);K.has(C)&&!(A&&A.state==="loading"&&Re.has(C))&&Mn(C),Q.delete(C),Re.delete(C),T.delete(C),te.delete(C),ze.delete(C),N.fetchers.delete(C)}function pr(C){let A=(le.get(C)||0)-1;A<=0?(le.delete(C),te.add(C)):le.set(C,A),Ee({fetchers:new Map(N.fetchers)})}function Mn(C){let A=K.get(C);A&&(A.abort(),K.delete(C))}function vr(C){for(let A of C){let B=Gt(A),F=Ha(B.data);N.fetchers.set(A,F)}}function ma(){let C=[],A=!1;for(let B of T){let F=N.fetchers.get(B);He(F,`Expected fetcher: ${B}`),F.state==="loading"&&(T.delete(B),C.push(B),A=!0)}return vr(C),A}function Bt(C){let A=[];for(let[B,F]of Re)if(F<C){let ae=N.fetchers.get(B);He(ae,`Expected fetcher: ${B}`),ae.state==="loading"&&(Mn(B),Re.delete(B),A.push(B))}return vr(A),A.length>0}function Ju(C,A){let B=N.blockers.get(C)||ai;return P.get(C)!==A&&P.set(C,A),B}function Nn(C){N.blockers.delete(C),P.delete(C)}function Tt(C,A){let B=N.blockers.get(C)||ai;He(B.state==="unblocked"&&A.state==="blocked"||B.state==="blocked"&&A.state==="blocked"||B.state==="blocked"&&A.state==="proceeding"||B.state==="blocked"&&A.state==="unblocked"||B.state==="proceeding"&&A.state==="unblocked",`Invalid blocker state transition: ${B.state} -> ${A.state}`);let F=new Map(N.blockers);F.set(C,A),Ee({blockers:F})}function gr({currentLocation:C,nextLocation:A,historyAction:B}){if(P.size===0)return;P.size>1&&Ot(!1,"A router only supports one blocker at a time");let F=Array.from(P.entries()),[ae,me]=F[F.length-1],xe=N.blockers.get(ae);if(!(xe&&xe.state==="proceeding")&&me({currentLocation:C,nextLocation:A,historyAction:B}))return ae}function ci(C){let A=_n(404,{pathname:C}),B=d||f,{matches:F,route:ae}=iy(B);return{notFoundMatches:F,route:ae,error:A}}function Pu(C,A,B){if(_=C,H=A,O=B||null,!U&&N.navigation===oo){U=!0;let F=zn(N.location,N.matches);F!=null&&Ee({restoreScrollPosition:F})}return()=>{_=null,H=null,O=null}}function ka(C,A){return O&&O(C,A.map(F=>m1(F,N.loaderData)))||C.key}function bl(C,A){if(_&&H){let B=ka(C,A);_[B]=H()}}function zn(C,A){if(_){let B=ka(C,A),F=_[B];if(typeof F=="number")return F}return null}function Qn(C,A,B){if(p)if(C){if(Object.keys(C[0].params).length>0)return{active:!0,matches:Au(A,B,y,!0)}}else return{active:!0,matches:Au(A,B,y,!0)||[]};return{active:!1,matches:null}}async function Ln(C,A,B){if(!p)return{type:"success",matches:C};let F=C;for(;;){let ae=d==null,me=d||f,xe=u;try{await p({path:A,matches:F,patch:(ee,fe)=>{B.aborted||Im(ee,fe,me,xe,s)}})}catch(ee){return{type:"error",error:ee,partialMatches:F}}finally{ae&&!B.aborted&&(f=[...f])}if(B.aborted)return{type:"aborted"};let re=qa(me,A,y);if(re)return{type:"success",matches:re};let oe=Au(me,A,y,!0);if(!oe||F.length===oe.length&&F.every((ee,fe)=>ee.route.id===oe[fe].route.id))return{type:"success",matches:null};F=oe}}function Wu(C){u={},d=Lu(C,s,void 0,u)}function Er(C,A){let B=d==null;Im(C,A,d||f,u,s),B&&(f=[...f],Ee({}))}return k={get basename(){return y},get future(){return b},get state(){return N},get routes(){return f},get window(){return n},initialize:Je,subscribe:Le,enableScrollRestoration:Pu,navigate:vt,fetch:Zt,revalidate:it,createHref:C=>l.history.createHref(C),encodeLocation:C=>l.history.encodeLocation(C),getFetcher:Gt,deleteFetcher:pr,dispose:Ce,getBlocker:Ju,deleteBlocker:Nn,patchRoutes:Er,_internalFetchControllers:K,_internalSetRoutes:Wu},k}function V1(l){return l!=null&&("formData"in l&&l.formData!=null||"body"in l&&l.body!==void 0)}function Co(l,n,c,s,u,f){let d,y;if(u){d=[];for(let p of n)if(d.push(p),p.route.id===u){y=p;break}}else d=n,y=n[n.length-1];let v=Vo(s||".",qo(d),rn(l.pathname,c)||l.pathname,f==="path");if(s==null&&(v.search=l.search,v.hash=l.hash),(s==null||s===""||s===".")&&y){let p=Go(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),R=b.getAll("index");b.delete("index"),R.filter(_=>_).forEach(_=>b.append("index",_));let S=b.toString();v.search=S?`?${S}`:""}}return c!=="/"&&(v.pathname=v.pathname==="/"?c:Gn([c,v.pathname])),Va(v)}function Fm(l,n,c){if(!c||!V1(c))return{path:n};if(c.formMethod&&!W1(c.formMethod))return{path:n,error:_n(405,{method:c.formMethod})};let s=()=>({path:n,error:_n(400,{type:"invalid-body"})}),f=(c.formMethod||"get").toUpperCase(),d=qy(n);if(c.body!==void 0){if(c.formEncType==="text/plain"){if(!wn(f))return s();let R=typeof c.body=="string"?c.body:c.body instanceof FormData||c.body instanceof URLSearchParams?Array.from(c.body.entries()).reduce((S,[_,O])=>`${S}${_}=${O} -`,""):String(c.body);return{path:n,submission:{formMethod:f,formAction:d,formEncType:c.formEncType,formData:void 0,json:void 0,text:R}}}else if(c.formEncType==="application/json"){if(!wn(f))return s();try{let R=typeof c.body=="string"?JSON.parse(c.body):c.body;return{path:n,submission:{formMethod:f,formAction:d,formEncType:c.formEncType,formData:void 0,json:R,text:void 0}}}catch{return s()}}}He(typeof FormData=="function","FormData is not available in this environment");let y,v;if(c.formData)y=Oo(c.formData),v=c.formData;else if(c.body instanceof FormData)y=Oo(c.body),v=c.body;else if(c.body instanceof URLSearchParams)y=c.body,v=ty(y);else if(c.body==null)y=new URLSearchParams,v=new FormData;else try{y=new URLSearchParams(c.body),v=ty(y)}catch{return s()}let p={formMethod:f,formAction:d,formEncType:c&&c.formEncType||"application/x-www-form-urlencoded",formData:v,json:void 0,text:void 0};if(wn(p.formMethod))return{path:n,submission:p};let b=Ga(n);return l&&b.search&&Go(b.search)&&y.append("index",""),b.search=`?${y}`,{path:Va(b),submission:p}}function Jm(l,n,c=!1){let s=l.findIndex(u=>u.route.id===n);return s>=0?l.slice(0,c?s+1:s):l}function Pm(l,n,c,s,u,f,d,y,v,p,b,R,S,_){let O=_?an(_[1])?_[1].error:_[1].data:void 0,H=l.createURL(n.location),U=l.createURL(u),M=c;f&&n.errors?M=Jm(c,Object.keys(n.errors)[0],!0):_&&an(_[1])&&(M=Jm(c,_[0]));let q=_?_[1].statusCode:void 0,Y=q&&q>=400,J=M.filter((N,W)=>{let{route:ie}=N;if(ie.lazy)return!0;if(ie.loader==null)return!1;if(f)return jo(ie,n.loaderData,n.errors);if(Y1(n.loaderData,n.matches[W],N))return!0;let X=n.matches[W],I=N;return Wm(N,{currentUrl:H,currentParams:X.params,nextUrl:U,nextParams:I.params,...s,actionResult:O,actionStatus:q,defaultShouldRevalidate:Y?!1:d||H.pathname+H.search===U.pathname+U.search||H.search!==U.search||G1(X,I)})}),k=[];return p.forEach((N,W)=>{if(f||!c.some(Ne=>Ne.route.id===N.routeId)||v.has(W))return;let ie=qa(R,N.path,S);if(!ie){k.push({key:W,routeId:N.routeId,path:N.path,matches:null,match:null,controller:null});return}let X=n.fetchers.get(W),I=ur(ie,N.path),de=!1;b.has(W)?de=!1:y.has(W)?(y.delete(W),de=!0):X&&X.state!=="idle"&&X.data===void 0?de=d:de=Wm(I,{currentUrl:H,currentParams:n.matches[n.matches.length-1].params,nextUrl:U,nextParams:c[c.length-1].params,...s,actionResult:O,actionStatus:q,defaultShouldRevalidate:Y?!1:d}),de&&k.push({key:W,routeId:N.routeId,path:N.path,matches:ie,match:I,controller:new AbortController})}),[J,k]}function jo(l,n,c){if(l.lazy)return!0;if(!l.loader)return!1;let s=n!=null&&n[l.id]!==void 0,u=c!=null&&c[l.id]!==void 0;return!s&&u?!1:typeof l.loader=="function"&&l.loader.hydrate===!0?!0:!s&&!u}function Y1(l,n,c){let s=!n||c.route.id!==n.route.id,u=!l.hasOwnProperty(c.route.id);return s||u}function G1(l,n){let c=l.route.path;return l.pathname!==n.pathname||c!=null&&c.endsWith("*")&&l.params["*"]!==n.params["*"]}function Wm(l,n){if(l.route.shouldRevalidate){let c=l.route.shouldRevalidate(n);if(typeof c=="boolean")return c}return n.defaultShouldRevalidate}function Im(l,n,c,s,u){let f;if(l){let v=s[l];He(v,`No route found to patch children into: routeId = ${l}`),v.children||(v.children=[]),f=v.children}else f=c;let d=n.filter(v=>!f.some(p=>By(v,p))),y=Lu(d,u,[l||"_","patch",String((f==null?void 0:f.length)||"0")],s);f.push(...y)}function By(l,n){return"id"in l&&"id"in n&&l.id===n.id?!0:l.index===n.index&&l.path===n.path&&l.caseSensitive===n.caseSensitive?(!l.children||l.children.length===0)&&(!n.children||n.children.length===0)?!0:l.children.every((c,s)=>{var u;return(u=n.children)==null?void 0:u.some(f=>By(c,f))}):!1}async function k1(l,n,c){if(!l.lazy)return;let s=await l.lazy();if(!l.lazy)return;let u=c[l.id];He(u,"No route found in manifest");let f={};for(let d in s){let v=u[d]!==void 0&&d!=="hasErrorBoundary";Ot(!v,`Route "${u.id}" has a static property "${d}" defined but its lazy function is also returning a value for this property. The lazy route property "${d}" will be ignored.`),!v&&!d1.has(d)&&(f[d]=s[d])}Object.assign(u,f),Object.assign(u,{...n(u),lazy:void 0})}async function X1({matches:l}){let n=l.filter(s=>s.shouldLoad);return(await Promise.all(n.map(s=>s.resolve()))).reduce((s,u,f)=>Object.assign(s,{[n[f].route.id]:u}),{})}async function Q1(l,n,c,s,u,f,d,y,v,p){let b=f.map(_=>_.route.lazy?k1(_.route,v,y):void 0),R=f.map((_,O)=>{let H=b[O],U=u.some(q=>q.route.id===_.route.id);return{..._,shouldLoad:U,resolve:async q=>(q&&s.method==="GET"&&(_.route.lazy||_.route.loader)&&(U=!0),U?Z1(n,s,_,H,q,p):Promise.resolve({type:"data",result:void 0}))}}),S=await l({matches:R,request:s,params:f[0].params,fetcherKey:d,context:p});try{await Promise.all(b)}catch{}return S}async function Z1(l,n,c,s,u,f){let d,y,v=p=>{let b,R=new Promise((O,H)=>b=H);y=()=>b(),n.signal.addEventListener("abort",y);let S=O=>typeof p!="function"?Promise.reject(new Error(`You cannot call the handler for a route which defines a boolean "${l}" [routeId: ${c.route.id}]`)):p({request:n,params:c.params,context:f},...O!==void 0?[O]:[]),_=(async()=>{try{return{type:"data",result:await(u?u(H=>S(H)):S())}}catch(O){return{type:"error",result:O}}})();return Promise.race([_,R])};try{let p=c.route[l];if(s)if(p){let b,[R]=await Promise.all([v(p).catch(S=>{b=S}),s]);if(b!==void 0)throw b;d=R}else if(await s,p=c.route[l],p)d=await v(p);else if(l==="action"){let b=new URL(n.url),R=b.pathname+b.search;throw _n(405,{method:n.method,pathname:R,routeId:c.route.id})}else return{type:"data",result:void 0};else if(p)d=await v(p);else{let b=new URL(n.url),R=b.pathname+b.search;throw _n(404,{pathname:R})}}catch(p){return{type:"error",result:p}}finally{y&&n.signal.removeEventListener("abort",y)}return d}async function K1(l){var s,u,f,d,y,v;let{result:n,type:c}=l;if(Vy(n)){let p;try{let b=n.headers.get("Content-Type");b&&/\bapplication\/json\b/.test(b)?n.body==null?p=null:p=await n.json():p=await n.text()}catch(b){return{type:"error",error:b}}return c==="error"?{type:"error",error:new Hu(n.status,n.statusText,p),statusCode:n.status,headers:n.headers}:{type:"data",data:p,statusCode:n.status,headers:n.headers}}return c==="error"?ry(n)?n.data instanceof Error?{type:"error",error:n.data,statusCode:(s=n.init)==null?void 0:s.status,headers:(u=n.init)!=null&&u.headers?new Headers(n.init.headers):void 0}:{type:"error",error:new Hu(((f=n.init)==null?void 0:f.status)||500,void 0,n.data),statusCode:or(n)?n.status:void 0,headers:(d=n.init)!=null&&d.headers?new Headers(n.init.headers):void 0}:{type:"error",error:n,statusCode:or(n)?n.status:void 0}:ry(n)?{type:"data",data:n.data,statusCode:(y=n.init)==null?void 0:y.status,headers:(v=n.init)!=null&&v.headers?new Headers(n.init.headers):void 0}:{type:"data",data:n}}function $1(l,n,c,s,u){let f=l.headers.get("Location");if(He(f,"Redirects returned/thrown from loaders/actions must have a Location header"),!Yo.test(f)){let d=s.slice(0,s.findIndex(y=>y.route.id===c)+1);f=Co(new URL(n.url),d,u,f),l.headers.set("Location",f)}return l}function ey(l,n,c){if(Yo.test(l)){let s=l,u=s.startsWith("//")?new URL(n.protocol+s):new URL(s),f=rn(u.pathname,c)!=null;if(u.origin===n.origin&&f)return u.pathname+u.search+u.hash}return l}function Il(l,n,c,s){let u=l.createURL(qy(n)).toString(),f={signal:c};if(s&&wn(s.formMethod)){let{formMethod:d,formEncType:y}=s;f.method=d.toUpperCase(),y==="application/json"?(f.headers=new Headers({"Content-Type":y}),f.body=JSON.stringify(s.json)):y==="text/plain"?f.body=s.text:y==="application/x-www-form-urlencoded"&&s.formData?f.body=Oo(s.formData):f.body=s.formData}return new Request(u,f)}function Oo(l){let n=new URLSearchParams;for(let[c,s]of l.entries())n.append(c,typeof s=="string"?s:s.name);return n}function ty(l){let n=new FormData;for(let[c,s]of l.entries())n.append(c,s);return n}function F1(l,n,c,s=!1,u=!1){let f={},d=null,y,v=!1,p={},b=c&&an(c[1])?c[1].error:void 0;return l.forEach(R=>{if(!(R.route.id in n))return;let S=R.route.id,_=n[S];if(He(!vl(_),"Cannot handle redirect results in processLoaderData"),an(_)){let O=_.error;if(b!==void 0&&(O=b,b=void 0),d=d||{},u)d[S]=O;else{let H=ml(l,S);d[H.route.id]==null&&(d[H.route.id]=O)}s||(f[S]=Hy),v||(v=!0,y=or(_.error)?_.error.status:500),_.headers&&(p[S]=_.headers)}else f[S]=_.data,_.statusCode&&_.statusCode!==200&&!v&&(y=_.statusCode),_.headers&&(p[S]=_.headers)}),b!==void 0&&c&&(d={[c[0]]:b},f[c[0]]=void 0),{loaderData:f,errors:d,statusCode:y||200,loaderHeaders:p}}function ny(l,n,c,s,u,f){let{loaderData:d,errors:y}=F1(n,c,s);return u.forEach(v=>{let{key:p,match:b,controller:R}=v,S=f[p];if(He(S,"Did not find corresponding fetcher result"),!(R&&R.signal.aborted))if(an(S)){let _=ml(l.matches,b==null?void 0:b.route.id);y&&y[_.route.id]||(y={...y,[_.route.id]:S.error}),l.fetchers.delete(p)}else if(vl(S))He(!1,"Unhandled fetcher revalidation redirect");else{let _=Ha(S.data);l.fetchers.set(p,_)}}),{loaderData:d,errors:y}}function ay(l,n,c,s){let u=Object.entries(n).filter(([,f])=>f!==Hy).reduce((f,[d,y])=>(f[d]=y,f),{});for(let f of c){let d=f.route.id;if(!n.hasOwnProperty(d)&&l.hasOwnProperty(d)&&f.route.loader&&(u[d]=l[d]),s&&s.hasOwnProperty(d))break}return u}function ly(l){return l?an(l[1])?{actionData:{}}:{actionData:{[l[0]]:l[1].data}}:{}}function ml(l,n){return(n?l.slice(0,l.findIndex(s=>s.route.id===n)+1):[...l]).reverse().find(s=>s.route.hasErrorBoundary===!0)||l[0]}function iy(l){let n=l.length===1?l[0]:l.find(c=>c.index||!c.path||c.path==="/")||{id:"__shim-error-route__"};return{matches:[{params:{},pathname:"",pathnameBase:"",route:n}],route:n}}function _n(l,{pathname:n,routeId:c,method:s,type:u,message:f}={}){let d="Unknown Server Error",y="Unknown @remix-run/router error";return l===400?(d="Bad Request",s&&n&&c?y=`You made a ${s} request to "${n}" but did not provide a \`loader\` for route "${c}", so there is no way to handle the request.`:u==="invalid-body"&&(y="Unable to encode submission body")):l===403?(d="Forbidden",y=`Route "${c}" does not match URL "${n}"`):l===404?(d="Not Found",y=`No route matches URL "${n}"`):l===405&&(d="Method Not Allowed",s&&n&&c?y=`You made a ${s.toUpperCase()} request to "${n}" but did not provide an \`action\` for route "${c}", so there is no way to handle the request.`:s&&(y=`Invalid request method "${s.toUpperCase()}"`)),new Hu(l||500,d,new Error(y),!0)}function Cu(l){let n=Object.entries(l);for(let c=n.length-1;c>=0;c--){let[s,u]=n[c];if(vl(u))return{key:s,result:u}}}function qy(l){let n=typeof l=="string"?Ga(l):l;return Va({...n,hash:""})}function J1(l,n){return l.pathname!==n.pathname||l.search!==n.search?!1:l.hash===""?n.hash!=="":l.hash===n.hash?!0:n.hash!==""}function P1(l){return Vy(l.result)&&L1.has(l.result.status)}function an(l){return l.type==="error"}function vl(l){return(l&&l.type)==="redirect"}function ry(l){return typeof l=="object"&&l!=null&&"type"in l&&"data"in l&&"init"in l&&l.type==="DataWithResponseInit"}function Vy(l){return l!=null&&typeof l.status=="number"&&typeof l.statusText=="string"&&typeof l.headers=="object"&&typeof l.body<"u"}function W1(l){return z1.has(l.toUpperCase())}function wn(l){return A1.has(l.toUpperCase())}function Go(l){return new URLSearchParams(l).getAll("index").some(n=>n==="")}function ur(l,n){let c=typeof n=="string"?Ga(n).search:n.search;if(l[l.length-1].route.index&&Go(c||""))return l[l.length-1];let s=zy(l);return s[s.length-1]}function uy(l){let{formMethod:n,formAction:c,formEncType:s,text:u,formData:f,json:d}=l;if(!(!n||!c||!s)){if(u!=null)return{formMethod:n,formAction:c,formEncType:s,formData:void 0,json:void 0,text:u};if(f!=null)return{formMethod:n,formAction:c,formEncType:s,formData:f,json:void 0,text:void 0};if(d!==void 0)return{formMethod:n,formAction:c,formEncType:s,formData:void 0,json:d,text:void 0}}}function fo(l,n){return n?{state:"loading",location:l,formMethod:n.formMethod,formAction:n.formAction,formEncType:n.formEncType,formData:n.formData,json:n.json,text:n.text}:{state:"loading",location:l,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0}}function I1(l,n){return{state:"submitting",location:l,formMethod:n.formMethod,formAction:n.formAction,formEncType:n.formEncType,formData:n.formData,json:n.json,text:n.text}}function ar(l,n){return l?{state:"loading",formMethod:l.formMethod,formAction:l.formAction,formEncType:l.formEncType,formData:l.formData,json:l.json,text:l.text,data:n}:{state:"loading",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:n}}function e0(l,n){return{state:"submitting",formMethod:l.formMethod,formAction:l.formAction,formEncType:l.formEncType,formData:l.formData,json:l.json,text:l.text,data:n?n.data:void 0}}function Ha(l){return{state:"idle",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:l}}function t0(l,n){try{let c=l.sessionStorage.getItem(Uy);if(c){let s=JSON.parse(c);for(let[u,f]of Object.entries(s||{}))f&&Array.isArray(f)&&n.set(u,new Set(f||[]))}}catch{}}function n0(l,n){if(n.size>0){let c={};for(let[s,u]of n)c[s]=[...u];try{l.sessionStorage.setItem(Uy,JSON.stringify(c))}catch(s){Ot(!1,`Failed to save applied view transitions in sessionStorage (${s}).`)}}}function a0(){let l,n,c=new Promise((s,u)=>{l=async f=>{s(f);try{await c}catch{}},n=async f=>{u(f);try{await c}catch{}}});return{promise:c,resolve:l,reject:n}}var El=g.createContext(null);El.displayName="DataRouter";var dr=g.createContext(null);dr.displayName="DataRouterState";var ko=g.createContext({isTransitioning:!1});ko.displayName="ViewTransition";var Yy=g.createContext(new Map);Yy.displayName="Fetchers";var l0=g.createContext(null);l0.displayName="Await";var kn=g.createContext(null);kn.displayName="Navigation";var Xu=g.createContext(null);Xu.displayName="Location";var An=g.createContext({outlet:null,matches:[],isDataRoute:!1});An.displayName="Route";var Xo=g.createContext(null);Xo.displayName="RouteError";function i0(l,{relative:n}={}){He(hr(),"useHref() may be used only in the context of a <Router> component.");let{basename:c,navigator:s}=g.useContext(kn),{hash:u,pathname:f,search:d}=mr(l,{relative:n}),y=f;return c!=="/"&&(y=f==="/"?c:Gn([c,f])),s.createHref({pathname:y,search:d,hash:u})}function hr(){return g.useContext(Xu)!=null}function Xn(){return He(hr(),"useLocation() may be used only in the context of a <Router> component."),g.useContext(Xu).location}var Gy="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function ky(l){g.useContext(kn).static||g.useLayoutEffect(l)}function Xy(){let{isDataRoute:l}=g.useContext(An);return l?E0():r0()}function r0(){He(hr(),"useNavigate() may be used only in the context of a <Router> component.");let l=g.useContext(El),{basename:n,navigator:c}=g.useContext(kn),{matches:s}=g.useContext(An),{pathname:u}=Xn(),f=JSON.stringify(qo(s)),d=g.useRef(!1);return ky(()=>{d.current=!0}),g.useCallback((v,p={})=>{if(Ot(d.current,Gy),!d.current)return;if(typeof v=="number"){c.go(v);return}let b=Vo(v,JSON.parse(f),u,p.relative==="path");l==null&&n!=="/"&&(b.pathname=b.pathname==="/"?n:Gn([n,b.pathname])),(p.replace?c.replace:c.push)(b,p.state,p)},[n,c,f,u,l])}var u0=g.createContext(null);function c0(l){let n=g.useContext(An).outlet;return n&&g.createElement(u0.Provider,{value:l},n)}function H2(){let{matches:l}=g.useContext(An),n=l[l.length-1];return n?n.params:{}}function mr(l,{relative:n}={}){let{matches:c}=g.useContext(An),{pathname:s}=Xn(),u=JSON.stringify(qo(c));return g.useMemo(()=>Vo(l,JSON.parse(u),s,n==="path"),[l,u,s,n])}function s0(l,n,c,s){He(hr(),"useRoutes() may be used only in the context of a <Router> component.");let{navigator:u,static:f}=g.useContext(kn),{matches:d}=g.useContext(An),y=d[d.length-1],v=y?y.params:{},p=y?y.pathname:"/",b=y?y.pathnameBase:"/",R=y&&y.route;{let q=R&&R.path||"";Ky(p,!R||q.endsWith("*")||q.endsWith("*?"),`You rendered descendant <Routes> (or called \`useRoutes()\`) at "${p}" (under <Route path="${q}">) 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 Zm="popstate";function s1(l={}){function n(s,u){let{pathname:f,search:d,hash:y}=s.location;return sr("",{pathname:f,search:d,hash:y},u.state&&u.state.usr||null,u.state&&u.state.key||"default")}function c(s,u){return typeof u=="string"?u:Va(u)}return f1(n,c,null,l)}function He(l,n){if(l===!1||l===null||typeof l>"u")throw new Error(n)}function Ot(l,n){if(!l){typeof console<"u"&&console.warn(n);try{throw new Error(n)}catch{}}}function o1(){return Math.random().toString(36).substring(2,10)}function Km(l,n){return{usr:l.state,key:l.key,idx:n}}function sr(l,n,c=null,s){return{pathname:typeof l=="string"?l:l.pathname,search:"",hash:"",...typeof n=="string"?ka(n):n,state:c,key:n&&n.key||s||o1()}}function Va({pathname:l="/",search:n="",hash:c=""}){return n&&n!=="?"&&(l+=n.charAt(0)==="?"?n:"?"+n),c&&c!=="#"&&(l+=c.charAt(0)==="#"?c:"#"+c),l}function ka(l){let n={};if(l){let c=l.indexOf("#");c>=0&&(n.hash=l.substring(c),l=l.substring(0,c));let s=l.indexOf("?");s>=0&&(n.search=l.substring(s),l=l.substring(0,s)),l&&(n.pathname=l)}return n}function f1(l,n,c,s={}){let{window:u=document.defaultView,v5Compat:f=!1}=s,d=u.history,y="POP",v=null,p=b();p==null&&(p=0,d.replaceState({...d.state,idx:p},""));function b(){return(d.state||{idx:null}).idx}function R(){y="POP";let U=b(),M=U==null?null:U-p;p=U,v&&v({action:y,location:H.location,delta:M})}function S(U,M){y="PUSH";let q=sr(H.location,U,M);p=b()+1;let Y=Km(q,p),J=H.createHref(q);try{d.pushState(Y,"",J)}catch(G){if(G instanceof DOMException&&G.name==="DataCloneError")throw G;u.location.assign(J)}f&&v&&v({action:y,location:H.location,delta:1})}function _(U,M){y="REPLACE";let q=sr(H.location,U,M);p=b();let Y=Km(q,p),J=H.createHref(q);d.replaceState(Y,"",J),f&&v&&v({action:y,location:H.location,delta:0})}function O(U){let M=u.location.origin!=="null"?u.location.origin:u.location.href,q=typeof U=="string"?U:Va(U);return q=q.replace(/ $/,"%20"),He(M,`No window.location.(origin|href) available to create URL for href: ${q}`),new URL(q,M)}let H={get action(){return y},get location(){return l(u,d)},listen(U){if(v)throw new Error("A history only accepts one active listener");return u.addEventListener(Zm,R),v=U,()=>{u.removeEventListener(Zm,R),v=null}},createHref(U){return n(u,U)},createURL:O,encodeLocation(U){let M=O(U);return{pathname:M.pathname,search:M.search,hash:M.hash}},push:S,replace:_,go(U){return d.go(U)}};return H}var d1=new Set(["lazy","caseSensitive","path","id","index","children"]);function h1(l){return l.index===!0}function Lu(l,n,c=[],s={}){return l.map((u,f)=>{let d=[...c,String(f)],y=typeof u.id=="string"?u.id:d.join("-");if(He(u.index!==!0||!u.children,"Cannot specify children on an index route"),He(!s[y],`Found a route id collision on id "${y}". Route id's must be globally unique within Data Router usages`),h1(u)){let v={...u,...n(u),id:y};return s[y]=v,v}else{let v={...u,...n(u),id:y,children:void 0};return s[y]=v,u.children&&(v.children=Lu(u.children,n,d,s)),v}})}function qa(l,n,c="/"){return Au(l,n,c,!1)}function Au(l,n,c,s){let u=typeof n=="string"?ka(n):n,f=rn(u.pathname||"/",c);if(f==null)return null;let d=Ay(l);y1(d);let y=null;for(let v=0;y==null&&v<d.length;++v){let p=N1(f);y=R1(d[v],p,s)}return y}function m1(l,n){let{route:c,pathname:s,params:u}=l;return{id:c.id,pathname:s,params:u,data:n[c.id],handle:c.handle}}function Ay(l,n=[],c=[],s=""){let u=(f,d,y)=>{let v={relativePath:y===void 0?f.path||"":y,caseSensitive:f.caseSensitive===!0,childrenIndex:d,route:f};v.relativePath.startsWith("/")&&(He(v.relativePath.startsWith(s),`Absolute route path "${v.relativePath}" nested under path "${s}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),v.relativePath=v.relativePath.slice(s.length));let p=kn([s,v.relativePath]),b=c.concat(v);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 "${p}".`),Ay(f.children,n,b,p)),!(f.path==null&&!f.index)&&n.push({path:p,score:x1(p,f.index),routesMeta:b})};return l.forEach((f,d)=>{var y;if(f.path===""||!((y=f.path)!=null&&y.includes("?")))u(f,d);else for(let v of My(f.path))u(f,d,v)}),n}function My(l){let n=l.split("/");if(n.length===0)return[];let[c,...s]=n,u=c.endsWith("?"),f=c.replace(/\?$/,"");if(s.length===0)return u?[f,""]:[f];let d=My(s.join("/")),y=[];return y.push(...d.map(v=>v===""?f:[f,v].join("/"))),u&&y.push(...d),y.map(v=>l.startsWith("/")&&v===""?"/":v)}function y1(l){l.sort((n,c)=>n.score!==c.score?c.score-n.score:_1(n.routesMeta.map(s=>s.childrenIndex),c.routesMeta.map(s=>s.childrenIndex)))}var p1=/^:[\w-]+$/,v1=3,g1=2,E1=1,b1=10,S1=-2,$m=l=>l==="*";function x1(l,n){let c=l.split("/"),s=c.length;return c.some($m)&&(s+=S1),n&&(s+=g1),c.filter(u=>!$m(u)).reduce((u,f)=>u+(p1.test(f)?v1:f===""?E1:b1),s)}function _1(l,n){return l.length===n.length&&l.slice(0,-1).every((s,u)=>s===n[u])?l[l.length-1]-n[n.length-1]:0}function R1(l,n,c=!1){let{routesMeta:s}=l,u={},f="/",d=[];for(let y=0;y<s.length;++y){let v=s[y],p=y===s.length-1,b=f==="/"?n:n.slice(f.length)||"/",R=Uu({path:v.relativePath,caseSensitive:v.caseSensitive,end:p},b),S=v.route;if(!R&&p&&c&&!s[s.length-1].route.index&&(R=Uu({path:v.relativePath,caseSensitive:v.caseSensitive,end:!1},b)),!R)return null;Object.assign(u,R.params),d.push({params:u,pathname:kn([f,R.pathname]),pathnameBase:O1(kn([f,R.pathnameBase])),route:S}),R.pathnameBase!=="/"&&(f=kn([f,R.pathnameBase]))}return d}function Uu(l,n){typeof l=="string"&&(l={path:l,caseSensitive:!1,end:!0});let[c,s]=T1(l.path,l.caseSensitive,l.end),u=n.match(c);if(!u)return null;let f=u[0],d=f.replace(/(.)\/+$/,"$1"),y=u.slice(1);return{params:s.reduce((p,{paramName:b,isOptional:R},S)=>{if(b==="*"){let O=y[S]||"";d=f.slice(0,f.length-O.length).replace(/(.)\/+$/,"$1")}const _=y[S];return R&&!_?p[b]=void 0:p[b]=(_||"").replace(/%2F/g,"/"),p},{}),pathname:f,pathnameBase:d,pattern:l}}function T1(l,n=!1,c=!0){Ot(l==="*"||!l.endsWith("*")||l.endsWith("/*"),`Route path "${l}" will be treated as if it were "${l.replace(/\*$/,"/*")}" because the \`*\` character must always follow a \`/\` in the pattern. To get rid of this warning, please change the route path to "${l.replace(/\*$/,"/*")}".`);let s=[],u="^"+l.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(d,y,v)=>(s.push({paramName:y,isOptional:v!=null}),v?"/?([^\\/]+)?":"/([^\\/]+)"));return l.endsWith("*")?(s.push({paramName:"*"}),u+=l==="*"||l==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):c?u+="\\/*$":l!==""&&l!=="/"&&(u+="(?:(?=\\/|$))"),[new RegExp(u,n?void 0:"i"),s]}function N1(l){try{return l.split("/").map(n=>decodeURIComponent(n).replace(/\//g,"%2F")).join("/")}catch(n){return Ot(!1,`The URL path "${l}" could not be decoded because it is a malformed URL segment. This is probably due to a bad percent encoding (${n}).`),l}}function rn(l,n){if(n==="/")return l;if(!l.toLowerCase().startsWith(n.toLowerCase()))return null;let c=n.endsWith("/")?n.length-1:n.length,s=l.charAt(c);return s&&s!=="/"?null:l.slice(c)||"/"}function C1(l,n="/"){let{pathname:c,search:s="",hash:u=""}=typeof l=="string"?ka(l):l;return{pathname:c?c.startsWith("/")?c:j1(c,n):n,search:D1(s),hash:w1(u)}}function j1(l,n){let c=n.replace(/\/+$/,"").split("/");return l.split("/").forEach(u=>{u===".."?c.length>1&&c.pop():u!=="."&&c.push(u)}),c.length>1?c.join("/"):"/"}function so(l,n,c,s){return`Cannot include a '${l}' character in a manually specified \`to.${n}\` field [${JSON.stringify(s)}]. Please separate it out to the \`to.${c}\` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.`}function zy(l){return l.filter((n,c)=>c===0||n.route.path&&n.route.path.length>0)}function qo(l){let n=zy(l);return n.map((c,s)=>s===n.length-1?c.pathname:c.pathnameBase)}function Vo(l,n,c,s=!1){let u;typeof l=="string"?u=ka(l):(u={...l},He(!u.pathname||!u.pathname.includes("?"),so("?","pathname","search",u)),He(!u.pathname||!u.pathname.includes("#"),so("#","pathname","hash",u)),He(!u.search||!u.search.includes("#"),so("#","search","hash",u)));let f=l===""||u.pathname==="",d=f?"/":u.pathname,y;if(d==null)y=c;else{let R=n.length-1;if(!s&&d.startsWith("..")){let S=d.split("/");for(;S[0]==="..";)S.shift(),R-=1;u.pathname=S.join("/")}y=R>=0?n[R]:"/"}let v=C1(u,y),p=d&&d!=="/"&&d.endsWith("/"),b=(f||d===".")&&c.endsWith("/");return!v.pathname.endsWith("/")&&(p||b)&&(v.pathname+="/"),v}var kn=l=>l.join("/").replace(/\/\/+/g,"/"),O1=l=>l.replace(/\/+$/,"").replace(/^\/*/,"/"),D1=l=>!l||l==="?"?"":l.startsWith("?")?l:"?"+l,w1=l=>!l||l==="#"?"":l.startsWith("#")?l:"#"+l,Hu=class{constructor(l,n,c,s=!1){this.status=l,this.statusText=n||"",this.internal=s,c instanceof Error?(this.data=c.toString(),this.error=c):this.data=c}};function or(l){return l!=null&&typeof l.status=="number"&&typeof l.statusText=="string"&&typeof l.internal=="boolean"&&"data"in l}var Ly=["POST","PUT","PATCH","DELETE"],A1=new Set(Ly),M1=["GET",...Ly],z1=new Set(M1),L1=new Set([301,302,303,307,308]),U1=new Set([307,308]),oo={state:"idle",location:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},H1={state:"idle",data:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},ai={state:"unblocked",proceed:void 0,reset:void 0,location:void 0},Yo=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,B1=l=>({hasErrorBoundary:!!l.hasErrorBoundary}),Uy="remix-router-transitions",Hy=Symbol("ResetLoaderData");function q1(l){const n=l.window?l.window:typeof window<"u"?window:void 0,c=typeof n<"u"&&typeof n.document<"u"&&typeof n.document.createElement<"u";He(l.routes.length>0,"You must provide a non-empty routes array to createRouter");let s=l.mapRouteProperties||B1,u={},f=Lu(l.routes,s,void 0,u),d,y=l.basename||"/",v=l.dataStrategy||X1,p=l.patchRoutesOnNavigation,b={...l.future},R=null,S=new Set,_=null,O=null,H=null,U=l.hydrationData!=null,M=qa(f,l.history.location,y),q=!1,Y=null;if(M==null&&!p){let C=_n(404,{pathname:l.history.location.pathname}),{matches:A,route:B}=iy(f);M=A,Y={[B.id]:C}}M&&!l.hydrationData&&Qn(M,f,l.history.location.pathname).active&&(M=null);let J;if(M)if(M.some(C=>C.route.lazy))J=!1;else if(!M.some(C=>C.route.loader))J=!0;else{let C=l.hydrationData?l.hydrationData.loaderData:null,A=l.hydrationData?l.hydrationData.errors:null;if(A){let B=M.findIndex(F=>A[F.route.id]!==void 0);J=M.slice(0,B+1).every(F=>!jo(F.route,C,A))}else J=M.every(B=>!jo(B.route,C,A))}else{J=!1,M=[];let C=Qn(null,f,l.history.location.pathname);C.active&&C.matches&&(q=!0,M=C.matches)}let G,N={historyAction:l.history.action,location:l.history.location,matches:M,initialized:J,navigation:oo,restoreScrollPosition:l.hydrationData!=null?!1:null,preventScrollReset:!1,revalidation:"idle",loaderData:l.hydrationData&&l.hydrationData.loaderData||{},actionData:l.hydrationData&&l.hydrationData.actionData||null,errors:l.hydrationData&&l.hydrationData.errors||Y,fetchers:new Map,blockers:new Map},W="POP",ie=!1,X,I=!1,de=new Map,Ne=null,Ye=!1,Be=!1,ze=new Set,K=new Map,ce=0,ne=-1,Re=new Map,T=new Set,Q=new Map,le=new Map,te=new Set,P=new Map,ge,ye=null;function Je(){if(R=l.history.listen(({action:C,location:A,delta:B})=>{if(ge){ge(),ge=void 0;return}Ot(P.size===0||B!=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 F=gr({currentLocation:N.location,nextLocation:A,historyAction:C});if(F&&B!=null){let ae=new Promise(me=>{ge=me});l.history.go(B*-1),Tt(F,{state:"blocked",location:A,proceed(){Tt(F,{state:"proceeding",proceed:void 0,reset:void 0,location:A}),ae.then(()=>l.history.go(B))},reset(){let me=new Map(N.blockers);me.set(F,ai),Ee({blockers:me})}});return}return lt(C,A)}),c){t0(n,de);let C=()=>n0(n,de);n.addEventListener("pagehide",C),Ne=()=>n.removeEventListener("pagehide",C)}return N.initialized||lt("POP",N.location,{initialHydration:!0}),G}function Ce(){R&&R(),Ne&&Ne(),S.clear(),X&&X.abort(),N.fetchers.forEach((C,A)=>ui(A)),N.blockers.forEach((C,A)=>Nn(A))}function Le(C){return S.add(C),()=>S.delete(C)}function Ee(C,A={}){N={...N,...C};let B=[],F=[];N.fetchers.forEach((ae,me)=>{ae.state==="idle"&&(te.has(me)?B.push(me):F.push(me))}),te.forEach(ae=>{!N.fetchers.has(ae)&&!K.has(ae)&&B.push(ae)}),[...S].forEach(ae=>ae(N,{deletedFetchers:B,viewTransitionOpts:A.viewTransitionOpts,flushSync:A.flushSync===!0})),B.forEach(ae=>ui(ae)),F.forEach(ae=>N.fetchers.delete(ae))}function Ze(C,A,{flushSync:B}={}){var ee,fe;let F=N.actionData!=null&&N.navigation.formMethod!=null&&wn(N.navigation.formMethod)&&N.navigation.state==="loading"&&((ee=C.state)==null?void 0:ee._isRedirect)!==!0,ae;A.actionData?Object.keys(A.actionData).length>0?ae=A.actionData:ae=null:F?ae=N.actionData:ae=null;let me=A.loaderData?ay(N.loaderData,A.loaderData,A.matches||[],A.errors):N.loaderData,xe=N.blockers;xe.size>0&&(xe=new Map(xe),xe.forEach((ve,Xe)=>xe.set(Xe,ai)));let re=ie===!0||N.navigation.formMethod!=null&&wn(N.navigation.formMethod)&&((fe=C.state)==null?void 0:fe._isRedirect)!==!0;d&&(f=d,d=void 0),Ye||W==="POP"||(W==="PUSH"?l.history.push(C,C.state):W==="REPLACE"&&l.history.replace(C,C.state));let oe;if(W==="POP"){let ve=de.get(N.location.pathname);ve&&ve.has(C.pathname)?oe={currentLocation:N.location,nextLocation:C}:de.has(C.pathname)&&(oe={currentLocation:C,nextLocation:N.location})}else if(I){let ve=de.get(N.location.pathname);ve?ve.add(C.pathname):(ve=new Set([C.pathname]),de.set(N.location.pathname,ve)),oe={currentLocation:N.location,nextLocation:C}}Ee({...A,actionData:ae,loaderData:me,historyAction:W,location:C,initialized:!0,navigation:oo,revalidation:"idle",restoreScrollPosition:zn(C,A.matches||N.matches),preventScrollReset:re,blockers:xe},{viewTransitionOpts:oe,flushSync:B===!0}),W="POP",ie=!1,I=!1,Ye=!1,Be=!1,ye==null||ye.resolve(),ye=null}async function vt(C,A){if(typeof C=="number"){l.history.go(C);return}let B=Co(N.location,N.matches,y,C,A==null?void 0:A.fromRouteId,A==null?void 0:A.relative),{path:F,submission:ae,error:me}=Fm(!1,B,A),xe=N.location,re=sr(N.location,F,A&&A.state);re={...re,...l.history.encodeLocation(re)};let oe=A&&A.replace!=null?A.replace:void 0,ee="PUSH";oe===!0?ee="REPLACE":oe===!1||ae!=null&&wn(ae.formMethod)&&ae.formAction===N.location.pathname+N.location.search&&(ee="REPLACE");let fe=A&&"preventScrollReset"in A?A.preventScrollReset===!0:void 0,ve=(A&&A.flushSync)===!0,Xe=gr({currentLocation:xe,nextLocation:re,historyAction:ee});if(Xe){Tt(Xe,{state:"blocked",location:re,proceed(){Tt(Xe,{state:"proceeding",proceed:void 0,reset:void 0,location:re}),vt(C,A)},reset(){let yt=new Map(N.blockers);yt.set(Xe,ai),Ee({blockers:yt})}});return}await lt(ee,re,{submission:ae,pendingError:me,preventScrollReset:fe,replace:A&&A.replace,enableViewTransition:A&&A.viewTransition,flushSync:ve})}function it(){ye||(ye=a0()),Kt(),Ee({revalidation:"loading"});let C=ye.promise;return N.navigation.state==="submitting"?C:N.navigation.state==="idle"?(lt(N.historyAction,N.location,{startUninterruptedRevalidation:!0}),C):(lt(W||N.historyAction,N.navigation.location,{overrideNavigation:N.navigation,enableViewTransition:I===!0}),C)}async function lt(C,A,B){X&&X.abort(),X=null,W=C,Ye=(B&&B.startUninterruptedRevalidation)===!0,bl(N.location,N.matches),ie=(B&&B.preventScrollReset)===!0,I=(B&&B.enableViewTransition)===!0;let F=d||f,ae=B&&B.overrideNavigation,me=B!=null&&B.initialHydration&&N.matches&&N.matches.length>0&&!q?N.matches:qa(F,A,y),xe=(B&&B.flushSync)===!0;if(me&&N.initialized&&!Be&&J1(N.location,A)&&!(B&&B.submission&&wn(B.submission.formMethod))){Ze(A,{matches:me},{flushSync:xe});return}let re=Qn(me,F,A.pathname);if(re.active&&re.matches&&(me=re.matches),!me){let{error:at,notFoundMatches:Pe,route:ot}=ci(A.pathname);Ze(A,{matches:Pe,loaderData:{},errors:{[ot.id]:at}},{flushSync:xe});return}X=new AbortController;let oe=Il(l.history,A,X.signal,B&&B.submission),ee;if(B&&B.pendingError)ee=[ml(me).route.id,{type:"error",error:B.pendingError}];else if(B&&B.submission&&wn(B.submission.formMethod)){let at=await De(oe,A,B.submission,me,re.active,{replace:B.replace,flushSync:xe});if(at.shortCircuited)return;if(at.pendingActionResult){let[Pe,ot]=at.pendingActionResult;if(an(ot)&&or(ot.error)&&ot.error.status===404){X=null,Ze(A,{matches:at.matches,loaderData:{},errors:{[Pe]:ot.error}});return}}me=at.matches||me,ee=at.pendingActionResult,ae=fo(A,B.submission),xe=!1,re.active=!1,oe=Il(l.history,oe.url,oe.signal)}let{shortCircuited:fe,matches:ve,loaderData:Xe,errors:yt}=await Rt(oe,A,me,re.active,ae,B&&B.submission,B&&B.fetcherSubmission,B&&B.replace,B&&B.initialHydration===!0,xe,ee);fe||(X=null,Ze(A,{matches:ve||me,...ly(ee),loaderData:Xe,errors:yt}))}async function De(C,A,B,F,ae,me={}){Kt();let xe=I1(A,B);if(Ee({navigation:xe},{flushSync:me.flushSync===!0}),ae){let ee=await Ln(F,A.pathname,C.signal);if(ee.type==="aborted")return{shortCircuited:!0};if(ee.type==="error"){let fe=ml(ee.partialMatches).route.id;return{matches:ee.partialMatches,pendingActionResult:[fe,{type:"error",error:ee.error}]}}else if(ee.matches)F=ee.matches;else{let{notFoundMatches:fe,error:ve,route:Xe}=ci(A.pathname);return{matches:fe,pendingActionResult:[Xe.id,{type:"error",error:ve}]}}}let re,oe=ur(F,A);if(!oe.route.action&&!oe.route.lazy)re={type:"error",error:_n(405,{method:C.method,pathname:A.pathname,routeId:oe.route.id})};else if(re=(await Ht("action",N,C,[oe],F,null))[oe.route.id],C.signal.aborted)return{shortCircuited:!0};if(vl(re)){let ee;return me&&me.replace!=null?ee=me.replace:ee=ey(re.response.headers.get("Location"),new URL(C.url),y)===N.location.pathname+N.location.search,await Ut(C,re,!0,{submission:B,replace:ee}),{shortCircuited:!0}}if(an(re)){let ee=ml(F,oe.route.id);return(me&&me.replace)!==!0&&(W="PUSH"),{matches:F,pendingActionResult:[ee.route.id,re]}}return{matches:F,pendingActionResult:[oe.route.id,re]}}async function Rt(C,A,B,F,ae,me,xe,re,oe,ee,fe){let ve=ae||fo(A,me),Xe=me||xe||uy(ve),yt=!Ye&&!oe;if(F){if(yt){let rt=St(fe);Ee({navigation:ve,...rt!==void 0?{actionData:rt}:{}},{flushSync:ee})}let qe=await Ln(B,A.pathname,C.signal);if(qe.type==="aborted")return{shortCircuited:!0};if(qe.type==="error"){let rt=ml(qe.partialMatches).route.id;return{matches:qe.partialMatches,loaderData:{},errors:{[rt]:qe.error}}}else if(qe.matches)B=qe.matches;else{let{error:rt,notFoundMatches:$t,route:Za}=ci(A.pathname);return{matches:$t,loaderData:{},errors:{[Za.id]:rt}}}}let at=d||f,[Pe,ot]=Pm(l.history,N,B,Xe,A,oe===!0,Be,ze,te,Q,T,at,y,fe);if(ne=++ce,Pe.length===0&&ot.length===0){let qe=ma();return Ze(A,{matches:B,loaderData:{},errors:fe&&an(fe[1])?{[fe[0]]:fe[1].error}:null,...ly(fe),...qe?{fetchers:new Map(N.fetchers)}:{}},{flushSync:ee}),{shortCircuited:!0}}if(yt){let qe={};if(!F){qe.navigation=ve;let rt=St(fe);rt!==void 0&&(qe.actionData=rt)}ot.length>0&&(qe.fetchers=Pt(ot)),Ee(qe,{flushSync:ee})}ot.forEach(qe=>{Mn(qe.key),qe.controller&&K.set(qe.key,qe.controller)});let sn=()=>ot.forEach(qe=>Mn(qe.key));X&&X.signal.addEventListener("abort",sn);let{loaderResults:Zn,fetcherResults:Dt}=await mt(N,B,Pe,ot,C);if(C.signal.aborted)return{shortCircuited:!0};X&&X.signal.removeEventListener("abort",sn),ot.forEach(qe=>K.delete(qe.key));let wt=Cu(Zn);if(wt)return await Ut(C,wt.result,!0,{replace:re}),{shortCircuited:!0};if(wt=Cu(Dt),wt)return T.add(wt.key),await Ut(C,wt.result,!0,{replace:re}),{shortCircuited:!0};let{loaderData:Kn,errors:on}=ny(N,B,Zn,fe,ot,Dt);oe&&N.errors&&(on={...N.errors,...on});let et=ma(),Xa=Bt(ne),Qa=et||Xa||ot.length>0;return{matches:B,loaderData:Kn,errors:on,...Qa?{fetchers:new Map(N.fetchers)}:{}}}function St(C){if(C&&!an(C[1]))return{[C[0]]:C[1].data};if(N.actionData)return Object.keys(N.actionData).length===0?null:N.actionData}function Pt(C){return C.forEach(A=>{let B=N.fetchers.get(A.key),F=ar(void 0,B?B.data:void 0);N.fetchers.set(A.key,F)}),new Map(N.fetchers)}async function Zt(C,A,B,F){Mn(C);let ae=(F&&F.flushSync)===!0,me=d||f,xe=Co(N.location,N.matches,y,B,A,F==null?void 0:F.relative),re=qa(me,xe,y),oe=Qn(re,me,xe);if(oe.active&&oe.matches&&(re=oe.matches),!re){Ie(C,A,_n(404,{pathname:xe}),{flushSync:ae});return}let{path:ee,submission:fe,error:ve}=Fm(!0,xe,F);if(ve){Ie(C,A,ve,{flushSync:ae});return}let Xe=ur(re,ee),yt=(F&&F.preventScrollReset)===!0;if(fe&&wn(fe.formMethod)){await un(C,A,ee,Xe,re,oe.active,ae,yt,fe);return}Q.set(C,{routeId:A,path:ee}),await cn(C,A,ee,Xe,re,oe.active,ae,yt,fe)}async function un(C,A,B,F,ae,me,xe,re,oe){Kt(),Q.delete(C);function ee(ut){if(!ut.route.action&&!ut.route.lazy){let $n=_n(405,{method:oe.formMethod,pathname:B,routeId:A});return Ie(C,A,$n,{flushSync:xe}),!0}return!1}if(!me&&ee(F))return;let fe=N.fetchers.get(C);_e(C,e0(oe,fe),{flushSync:xe});let ve=new AbortController,Xe=Il(l.history,B,ve.signal,oe);if(me){let ut=await Ln(ae,B,Xe.signal);if(ut.type==="aborted")return;if(ut.type==="error"){Ie(C,A,ut.error,{flushSync:xe});return}else if(ut.matches){if(ae=ut.matches,F=ur(ae,B),ee(F))return}else{Ie(C,A,_n(404,{pathname:B}),{flushSync:xe});return}}K.set(C,ve);let yt=ce,Pe=(await Ht("action",N,Xe,[F],ae,C))[F.route.id];if(Xe.signal.aborted){K.get(C)===ve&&K.delete(C);return}if(te.has(C)){if(vl(Pe)||an(Pe)){_e(C,Ha(void 0));return}}else{if(vl(Pe))if(K.delete(C),ne>yt){_e(C,Ha(void 0));return}else return T.add(C),_e(C,ar(oe)),Ut(Xe,Pe,!1,{fetcherSubmission:oe,preventScrollReset:re});if(an(Pe)){Ie(C,A,Pe.error);return}}let ot=N.navigation.location||N.location,sn=Il(l.history,ot,ve.signal),Zn=d||f,Dt=N.navigation.state!=="idle"?qa(Zn,N.navigation.location,y):N.matches;He(Dt,"Didn't find any matches after fetcher action");let wt=++ce;Re.set(C,wt);let Kn=ar(oe,Pe.data);N.fetchers.set(C,Kn);let[on,et]=Pm(l.history,N,Dt,oe,ot,!1,Be,ze,te,Q,T,Zn,y,[F.route.id,Pe]);et.filter(ut=>ut.key!==C).forEach(ut=>{let $n=ut.key,br=N.fetchers.get($n),Sl=ar(void 0,br?br.data:void 0);N.fetchers.set($n,Sl),Mn($n),ut.controller&&K.set($n,ut.controller)}),Ee({fetchers:new Map(N.fetchers)});let Xa=()=>et.forEach(ut=>Mn(ut.key));ve.signal.addEventListener("abort",Xa);let{loaderResults:Qa,fetcherResults:qe}=await mt(N,Dt,on,et,sn);if(ve.signal.aborted)return;ve.signal.removeEventListener("abort",Xa),Re.delete(C),K.delete(C),et.forEach(ut=>K.delete(ut.key));let rt=Cu(Qa);if(rt)return Ut(sn,rt.result,!1,{preventScrollReset:re});if(rt=Cu(qe),rt)return T.add(rt.key),Ut(sn,rt.result,!1,{preventScrollReset:re});let{loaderData:$t,errors:Za}=ny(N,Dt,Qa,void 0,et,qe);if(N.fetchers.has(C)){let ut=Ha(Pe.data);N.fetchers.set(C,ut)}Bt(wt),N.navigation.state==="loading"&&wt>ne?(He(W,"Expected pending action"),X&&X.abort(),Ze(N.navigation.location,{matches:Dt,loaderData:$t,errors:Za,fetchers:new Map(N.fetchers)})):(Ee({errors:Za,loaderData:ay(N.loaderData,$t,Dt,Za),fetchers:new Map(N.fetchers)}),Be=!1)}async function cn(C,A,B,F,ae,me,xe,re,oe){let ee=N.fetchers.get(C);_e(C,ar(oe,ee?ee.data:void 0),{flushSync:xe});let fe=new AbortController,ve=Il(l.history,B,fe.signal);if(me){let Pe=await Ln(ae,B,ve.signal);if(Pe.type==="aborted")return;if(Pe.type==="error"){Ie(C,A,Pe.error,{flushSync:xe});return}else if(Pe.matches)ae=Pe.matches,F=ur(ae,B);else{Ie(C,A,_n(404,{pathname:B}),{flushSync:xe});return}}K.set(C,fe);let Xe=ce,at=(await Ht("loader",N,ve,[F],ae,C))[F.route.id];if(K.get(C)===fe&&K.delete(C),!ve.signal.aborted){if(te.has(C)){_e(C,Ha(void 0));return}if(vl(at))if(ne>Xe){_e(C,Ha(void 0));return}else{T.add(C),await Ut(ve,at,!1,{preventScrollReset:re});return}if(an(at)){Ie(C,A,at.error);return}_e(C,Ha(at.data))}}async function Ut(C,A,B,{submission:F,fetcherSubmission:ae,preventScrollReset:me,replace:xe}={}){A.response.headers.has("X-Remix-Revalidate")&&(Be=!0);let re=A.response.headers.get("Location");He(re,"Expected a Location header on the redirect Response"),re=ey(re,new URL(C.url),y);let oe=sr(N.location,re,{_isRedirect:!0});if(c){let at=!1;if(A.response.headers.has("X-Remix-Reload-Document"))at=!0;else if(Yo.test(re)){const Pe=l.history.createURL(re);at=Pe.origin!==n.location.origin||rn(Pe.pathname,y)==null}if(at){xe?n.location.replace(re):n.location.assign(re);return}}X=null;let ee=xe===!0||A.response.headers.has("X-Remix-Replace")?"REPLACE":"PUSH",{formMethod:fe,formAction:ve,formEncType:Xe}=N.navigation;!F&&!ae&&fe&&ve&&Xe&&(F=uy(N.navigation));let yt=F||ae;if(U1.has(A.response.status)&&yt&&wn(yt.formMethod))await lt(ee,oe,{submission:{...yt,formAction:re},preventScrollReset:me||ie,enableViewTransition:B?I:void 0});else{let at=fo(oe,F);await lt(ee,oe,{overrideNavigation:at,fetcherSubmission:ae,preventScrollReset:me||ie,enableViewTransition:B?I:void 0})}}async function Ht(C,A,B,F,ae,me){let xe,re={};try{xe=await Q1(v,C,A,B,F,ae,me,u,s)}catch(oe){return F.forEach(ee=>{re[ee.route.id]={type:"error",error:oe}}),re}for(let[oe,ee]of Object.entries(xe))if(P1(ee)){let fe=ee.result;re[oe]={type:"redirect",response:$1(fe,B,oe,ae,y)}}else re[oe]=await K1(ee);return re}async function mt(C,A,B,F,ae){let me=Ht("loader",C,ae,B,A,null),xe=Promise.all(F.map(async ee=>{if(ee.matches&&ee.match&&ee.controller){let ve=(await Ht("loader",C,Il(l.history,ee.path,ee.controller.signal),[ee.match],ee.matches,ee.key))[ee.match.route.id];return{[ee.key]:ve}}else return Promise.resolve({[ee.key]:{type:"error",error:_n(404,{pathname:ee.path})}})})),re=await me,oe=(await xe).reduce((ee,fe)=>Object.assign(ee,fe),{});return{loaderResults:re,fetcherResults:oe}}function Kt(){Be=!0,Q.forEach((C,A)=>{K.has(A)&&ze.add(A),Mn(A)})}function _e(C,A,B={}){N.fetchers.set(C,A),Ee({fetchers:new Map(N.fetchers)},{flushSync:(B&&B.flushSync)===!0})}function Ie(C,A,B,F={}){let ae=ml(N.matches,A);ui(C),Ee({errors:{[ae.route.id]:B},fetchers:new Map(N.fetchers)},{flushSync:(F&&F.flushSync)===!0})}function kt(C){return le.set(C,(le.get(C)||0)+1),te.has(C)&&te.delete(C),N.fetchers.get(C)||H1}function ui(C){let A=N.fetchers.get(C);K.has(C)&&!(A&&A.state==="loading"&&Re.has(C))&&Mn(C),Q.delete(C),Re.delete(C),T.delete(C),te.delete(C),ze.delete(C),N.fetchers.delete(C)}function pr(C){let A=(le.get(C)||0)-1;A<=0?(le.delete(C),te.add(C)):le.set(C,A),Ee({fetchers:new Map(N.fetchers)})}function Mn(C){let A=K.get(C);A&&(A.abort(),K.delete(C))}function vr(C){for(let A of C){let B=kt(A),F=Ha(B.data);N.fetchers.set(A,F)}}function ma(){let C=[],A=!1;for(let B of T){let F=N.fetchers.get(B);He(F,`Expected fetcher: ${B}`),F.state==="loading"&&(T.delete(B),C.push(B),A=!0)}return vr(C),A}function Bt(C){let A=[];for(let[B,F]of Re)if(F<C){let ae=N.fetchers.get(B);He(ae,`Expected fetcher: ${B}`),ae.state==="loading"&&(Mn(B),Re.delete(B),A.push(B))}return vr(A),A.length>0}function Ju(C,A){let B=N.blockers.get(C)||ai;return P.get(C)!==A&&P.set(C,A),B}function Nn(C){N.blockers.delete(C),P.delete(C)}function Tt(C,A){let B=N.blockers.get(C)||ai;He(B.state==="unblocked"&&A.state==="blocked"||B.state==="blocked"&&A.state==="blocked"||B.state==="blocked"&&A.state==="proceeding"||B.state==="blocked"&&A.state==="unblocked"||B.state==="proceeding"&&A.state==="unblocked",`Invalid blocker state transition: ${B.state} -> ${A.state}`);let F=new Map(N.blockers);F.set(C,A),Ee({blockers:F})}function gr({currentLocation:C,nextLocation:A,historyAction:B}){if(P.size===0)return;P.size>1&&Ot(!1,"A router only supports one blocker at a time");let F=Array.from(P.entries()),[ae,me]=F[F.length-1],xe=N.blockers.get(ae);if(!(xe&&xe.state==="proceeding")&&me({currentLocation:C,nextLocation:A,historyAction:B}))return ae}function ci(C){let A=_n(404,{pathname:C}),B=d||f,{matches:F,route:ae}=iy(B);return{notFoundMatches:F,route:ae,error:A}}function Pu(C,A,B){if(_=C,H=A,O=B||null,!U&&N.navigation===oo){U=!0;let F=zn(N.location,N.matches);F!=null&&Ee({restoreScrollPosition:F})}return()=>{_=null,H=null,O=null}}function Ga(C,A){return O&&O(C,A.map(F=>m1(F,N.loaderData)))||C.key}function bl(C,A){if(_&&H){let B=Ga(C,A);_[B]=H()}}function zn(C,A){if(_){let B=Ga(C,A),F=_[B];if(typeof F=="number")return F}return null}function Qn(C,A,B){if(p)if(C){if(Object.keys(C[0].params).length>0)return{active:!0,matches:Au(A,B,y,!0)}}else return{active:!0,matches:Au(A,B,y,!0)||[]};return{active:!1,matches:null}}async function Ln(C,A,B){if(!p)return{type:"success",matches:C};let F=C;for(;;){let ae=d==null,me=d||f,xe=u;try{await p({signal:B,path:A,matches:F,patch:(ee,fe)=>{B.aborted||Im(ee,fe,me,xe,s)}})}catch(ee){return{type:"error",error:ee,partialMatches:F}}finally{ae&&!B.aborted&&(f=[...f])}if(B.aborted)return{type:"aborted"};let re=qa(me,A,y);if(re)return{type:"success",matches:re};let oe=Au(me,A,y,!0);if(!oe||F.length===oe.length&&F.every((ee,fe)=>ee.route.id===oe[fe].route.id))return{type:"success",matches:null};F=oe}}function Wu(C){u={},d=Lu(C,s,void 0,u)}function Er(C,A){let B=d==null;Im(C,A,d||f,u,s),B&&(f=[...f],Ee({}))}return G={get basename(){return y},get future(){return b},get state(){return N},get routes(){return f},get window(){return n},initialize:Je,subscribe:Le,enableScrollRestoration:Pu,navigate:vt,fetch:Zt,revalidate:it,createHref:C=>l.history.createHref(C),encodeLocation:C=>l.history.encodeLocation(C),getFetcher:kt,deleteFetcher:pr,dispose:Ce,getBlocker:Ju,deleteBlocker:Nn,patchRoutes:Er,_internalFetchControllers:K,_internalSetRoutes:Wu},G}function V1(l){return l!=null&&("formData"in l&&l.formData!=null||"body"in l&&l.body!==void 0)}function Co(l,n,c,s,u,f){let d,y;if(u){d=[];for(let p of n)if(d.push(p),p.route.id===u){y=p;break}}else d=n,y=n[n.length-1];let v=Vo(s||".",qo(d),rn(l.pathname,c)||l.pathname,f==="path");if(s==null&&(v.search=l.search,v.hash=l.hash),(s==null||s===""||s===".")&&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),R=b.getAll("index");b.delete("index"),R.filter(_=>_).forEach(_=>b.append("index",_));let S=b.toString();v.search=S?`?${S}`:""}}return c!=="/"&&(v.pathname=v.pathname==="/"?c:kn([c,v.pathname])),Va(v)}function Fm(l,n,c){if(!c||!V1(c))return{path:n};if(c.formMethod&&!W1(c.formMethod))return{path:n,error:_n(405,{method:c.formMethod})};let s=()=>({path:n,error:_n(400,{type:"invalid-body"})}),f=(c.formMethod||"get").toUpperCase(),d=qy(n);if(c.body!==void 0){if(c.formEncType==="text/plain"){if(!wn(f))return s();let R=typeof c.body=="string"?c.body:c.body instanceof FormData||c.body instanceof URLSearchParams?Array.from(c.body.entries()).reduce((S,[_,O])=>`${S}${_}=${O} +`,""):String(c.body);return{path:n,submission:{formMethod:f,formAction:d,formEncType:c.formEncType,formData:void 0,json:void 0,text:R}}}else if(c.formEncType==="application/json"){if(!wn(f))return s();try{let R=typeof c.body=="string"?JSON.parse(c.body):c.body;return{path:n,submission:{formMethod:f,formAction:d,formEncType:c.formEncType,formData:void 0,json:R,text:void 0}}}catch{return s()}}}He(typeof FormData=="function","FormData is not available in this environment");let y,v;if(c.formData)y=Oo(c.formData),v=c.formData;else if(c.body instanceof FormData)y=Oo(c.body),v=c.body;else if(c.body instanceof URLSearchParams)y=c.body,v=ty(y);else if(c.body==null)y=new URLSearchParams,v=new FormData;else try{y=new URLSearchParams(c.body),v=ty(y)}catch{return s()}let p={formMethod:f,formAction:d,formEncType:c&&c.formEncType||"application/x-www-form-urlencoded",formData:v,json:void 0,text:void 0};if(wn(p.formMethod))return{path:n,submission:p};let b=ka(n);return l&&b.search&&ko(b.search)&&y.append("index",""),b.search=`?${y}`,{path:Va(b),submission:p}}function Jm(l,n,c=!1){let s=l.findIndex(u=>u.route.id===n);return s>=0?l.slice(0,c?s+1:s):l}function Pm(l,n,c,s,u,f,d,y,v,p,b,R,S,_){let O=_?an(_[1])?_[1].error:_[1].data:void 0,H=l.createURL(n.location),U=l.createURL(u),M=c;f&&n.errors?M=Jm(c,Object.keys(n.errors)[0],!0):_&&an(_[1])&&(M=Jm(c,_[0]));let q=_?_[1].statusCode:void 0,Y=q&&q>=400,J=M.filter((N,W)=>{let{route:ie}=N;if(ie.lazy)return!0;if(ie.loader==null)return!1;if(f)return jo(ie,n.loaderData,n.errors);if(Y1(n.loaderData,n.matches[W],N))return!0;let X=n.matches[W],I=N;return Wm(N,{currentUrl:H,currentParams:X.params,nextUrl:U,nextParams:I.params,...s,actionResult:O,actionStatus:q,defaultShouldRevalidate:Y?!1:d||H.pathname+H.search===U.pathname+U.search||H.search!==U.search||k1(X,I)})}),G=[];return p.forEach((N,W)=>{if(f||!c.some(Ne=>Ne.route.id===N.routeId)||v.has(W))return;let ie=qa(R,N.path,S);if(!ie){G.push({key:W,routeId:N.routeId,path:N.path,matches:null,match:null,controller:null});return}let X=n.fetchers.get(W),I=ur(ie,N.path),de=!1;b.has(W)?de=!1:y.has(W)?(y.delete(W),de=!0):X&&X.state!=="idle"&&X.data===void 0?de=d:de=Wm(I,{currentUrl:H,currentParams:n.matches[n.matches.length-1].params,nextUrl:U,nextParams:c[c.length-1].params,...s,actionResult:O,actionStatus:q,defaultShouldRevalidate:Y?!1:d}),de&&G.push({key:W,routeId:N.routeId,path:N.path,matches:ie,match:I,controller:new AbortController})}),[J,G]}function jo(l,n,c){if(l.lazy)return!0;if(!l.loader)return!1;let s=n!=null&&n[l.id]!==void 0,u=c!=null&&c[l.id]!==void 0;return!s&&u?!1:typeof l.loader=="function"&&l.loader.hydrate===!0?!0:!s&&!u}function Y1(l,n,c){let s=!n||c.route.id!==n.route.id,u=!l.hasOwnProperty(c.route.id);return s||u}function k1(l,n){let c=l.route.path;return l.pathname!==n.pathname||c!=null&&c.endsWith("*")&&l.params["*"]!==n.params["*"]}function Wm(l,n){if(l.route.shouldRevalidate){let c=l.route.shouldRevalidate(n);if(typeof c=="boolean")return c}return n.defaultShouldRevalidate}function Im(l,n,c,s,u){let f;if(l){let v=s[l];He(v,`No route found to patch children into: routeId = ${l}`),v.children||(v.children=[]),f=v.children}else f=c;let d=n.filter(v=>!f.some(p=>By(v,p))),y=Lu(d,u,[l||"_","patch",String((f==null?void 0:f.length)||"0")],s);f.push(...y)}function By(l,n){return"id"in l&&"id"in n&&l.id===n.id?!0:l.index===n.index&&l.path===n.path&&l.caseSensitive===n.caseSensitive?(!l.children||l.children.length===0)&&(!n.children||n.children.length===0)?!0:l.children.every((c,s)=>{var u;return(u=n.children)==null?void 0:u.some(f=>By(c,f))}):!1}async function G1(l,n,c){if(!l.lazy)return;let s=await l.lazy();if(!l.lazy)return;let u=c[l.id];He(u,"No route found in manifest");let f={};for(let d in s){let v=u[d]!==void 0&&d!=="hasErrorBoundary";Ot(!v,`Route "${u.id}" has a static property "${d}" defined but its lazy function is also returning a value for this property. The lazy route property "${d}" will be ignored.`),!v&&!d1.has(d)&&(f[d]=s[d])}Object.assign(u,f),Object.assign(u,{...n(u),lazy:void 0})}async function X1({matches:l}){let n=l.filter(s=>s.shouldLoad);return(await Promise.all(n.map(s=>s.resolve()))).reduce((s,u,f)=>Object.assign(s,{[n[f].route.id]:u}),{})}async function Q1(l,n,c,s,u,f,d,y,v,p){let b=f.map(_=>_.route.lazy?G1(_.route,v,y):void 0),R=f.map((_,O)=>{let H=b[O],U=u.some(q=>q.route.id===_.route.id);return{..._,shouldLoad:U,resolve:async q=>(q&&s.method==="GET"&&(_.route.lazy||_.route.loader)&&(U=!0),U?Z1(n,s,_,H,q,p):Promise.resolve({type:"data",result:void 0}))}}),S=await l({matches:R,request:s,params:f[0].params,fetcherKey:d,context:p});try{await Promise.all(b)}catch{}return S}async function Z1(l,n,c,s,u,f){let d,y,v=p=>{let b,R=new Promise((O,H)=>b=H);y=()=>b(),n.signal.addEventListener("abort",y);let S=O=>typeof p!="function"?Promise.reject(new Error(`You cannot call the handler for a route which defines a boolean "${l}" [routeId: ${c.route.id}]`)):p({request:n,params:c.params,context:f},...O!==void 0?[O]:[]),_=(async()=>{try{return{type:"data",result:await(u?u(H=>S(H)):S())}}catch(O){return{type:"error",result:O}}})();return Promise.race([_,R])};try{let p=c.route[l];if(s)if(p){let b,[R]=await Promise.all([v(p).catch(S=>{b=S}),s]);if(b!==void 0)throw b;d=R}else if(await s,p=c.route[l],p)d=await v(p);else if(l==="action"){let b=new URL(n.url),R=b.pathname+b.search;throw _n(405,{method:n.method,pathname:R,routeId:c.route.id})}else return{type:"data",result:void 0};else if(p)d=await v(p);else{let b=new URL(n.url),R=b.pathname+b.search;throw _n(404,{pathname:R})}}catch(p){return{type:"error",result:p}}finally{y&&n.signal.removeEventListener("abort",y)}return d}async function K1(l){var s,u,f,d,y,v;let{result:n,type:c}=l;if(Vy(n)){let p;try{let b=n.headers.get("Content-Type");b&&/\bapplication\/json\b/.test(b)?n.body==null?p=null:p=await n.json():p=await n.text()}catch(b){return{type:"error",error:b}}return c==="error"?{type:"error",error:new Hu(n.status,n.statusText,p),statusCode:n.status,headers:n.headers}:{type:"data",data:p,statusCode:n.status,headers:n.headers}}return c==="error"?ry(n)?n.data instanceof Error?{type:"error",error:n.data,statusCode:(s=n.init)==null?void 0:s.status,headers:(u=n.init)!=null&&u.headers?new Headers(n.init.headers):void 0}:{type:"error",error:new Hu(((f=n.init)==null?void 0:f.status)||500,void 0,n.data),statusCode:or(n)?n.status:void 0,headers:(d=n.init)!=null&&d.headers?new Headers(n.init.headers):void 0}:{type:"error",error:n,statusCode:or(n)?n.status:void 0}:ry(n)?{type:"data",data:n.data,statusCode:(y=n.init)==null?void 0:y.status,headers:(v=n.init)!=null&&v.headers?new Headers(n.init.headers):void 0}:{type:"data",data:n}}function $1(l,n,c,s,u){let f=l.headers.get("Location");if(He(f,"Redirects returned/thrown from loaders/actions must have a Location header"),!Yo.test(f)){let d=s.slice(0,s.findIndex(y=>y.route.id===c)+1);f=Co(new URL(n.url),d,u,f),l.headers.set("Location",f)}return l}function ey(l,n,c){if(Yo.test(l)){let s=l,u=s.startsWith("//")?new URL(n.protocol+s):new URL(s),f=rn(u.pathname,c)!=null;if(u.origin===n.origin&&f)return u.pathname+u.search+u.hash}return l}function Il(l,n,c,s){let u=l.createURL(qy(n)).toString(),f={signal:c};if(s&&wn(s.formMethod)){let{formMethod:d,formEncType:y}=s;f.method=d.toUpperCase(),y==="application/json"?(f.headers=new Headers({"Content-Type":y}),f.body=JSON.stringify(s.json)):y==="text/plain"?f.body=s.text:y==="application/x-www-form-urlencoded"&&s.formData?f.body=Oo(s.formData):f.body=s.formData}return new Request(u,f)}function Oo(l){let n=new URLSearchParams;for(let[c,s]of l.entries())n.append(c,typeof s=="string"?s:s.name);return n}function ty(l){let n=new FormData;for(let[c,s]of l.entries())n.append(c,s);return n}function F1(l,n,c,s=!1,u=!1){let f={},d=null,y,v=!1,p={},b=c&&an(c[1])?c[1].error:void 0;return l.forEach(R=>{if(!(R.route.id in n))return;let S=R.route.id,_=n[S];if(He(!vl(_),"Cannot handle redirect results in processLoaderData"),an(_)){let O=_.error;if(b!==void 0&&(O=b,b=void 0),d=d||{},u)d[S]=O;else{let H=ml(l,S);d[H.route.id]==null&&(d[H.route.id]=O)}s||(f[S]=Hy),v||(v=!0,y=or(_.error)?_.error.status:500),_.headers&&(p[S]=_.headers)}else f[S]=_.data,_.statusCode&&_.statusCode!==200&&!v&&(y=_.statusCode),_.headers&&(p[S]=_.headers)}),b!==void 0&&c&&(d={[c[0]]:b},f[c[0]]=void 0),{loaderData:f,errors:d,statusCode:y||200,loaderHeaders:p}}function ny(l,n,c,s,u,f){let{loaderData:d,errors:y}=F1(n,c,s);return u.forEach(v=>{let{key:p,match:b,controller:R}=v,S=f[p];if(He(S,"Did not find corresponding fetcher result"),!(R&&R.signal.aborted))if(an(S)){let _=ml(l.matches,b==null?void 0:b.route.id);y&&y[_.route.id]||(y={...y,[_.route.id]:S.error}),l.fetchers.delete(p)}else if(vl(S))He(!1,"Unhandled fetcher revalidation redirect");else{let _=Ha(S.data);l.fetchers.set(p,_)}}),{loaderData:d,errors:y}}function ay(l,n,c,s){let u=Object.entries(n).filter(([,f])=>f!==Hy).reduce((f,[d,y])=>(f[d]=y,f),{});for(let f of c){let d=f.route.id;if(!n.hasOwnProperty(d)&&l.hasOwnProperty(d)&&f.route.loader&&(u[d]=l[d]),s&&s.hasOwnProperty(d))break}return u}function ly(l){return l?an(l[1])?{actionData:{}}:{actionData:{[l[0]]:l[1].data}}:{}}function ml(l,n){return(n?l.slice(0,l.findIndex(s=>s.route.id===n)+1):[...l]).reverse().find(s=>s.route.hasErrorBoundary===!0)||l[0]}function iy(l){let n=l.length===1?l[0]:l.find(c=>c.index||!c.path||c.path==="/")||{id:"__shim-error-route__"};return{matches:[{params:{},pathname:"",pathnameBase:"",route:n}],route:n}}function _n(l,{pathname:n,routeId:c,method:s,type:u,message:f}={}){let d="Unknown Server Error",y="Unknown @remix-run/router error";return l===400?(d="Bad Request",s&&n&&c?y=`You made a ${s} request to "${n}" but did not provide a \`loader\` for route "${c}", so there is no way to handle the request.`:u==="invalid-body"&&(y="Unable to encode submission body")):l===403?(d="Forbidden",y=`Route "${c}" does not match URL "${n}"`):l===404?(d="Not Found",y=`No route matches URL "${n}"`):l===405&&(d="Method Not Allowed",s&&n&&c?y=`You made a ${s.toUpperCase()} request to "${n}" but did not provide an \`action\` for route "${c}", so there is no way to handle the request.`:s&&(y=`Invalid request method "${s.toUpperCase()}"`)),new Hu(l||500,d,new Error(y),!0)}function Cu(l){let n=Object.entries(l);for(let c=n.length-1;c>=0;c--){let[s,u]=n[c];if(vl(u))return{key:s,result:u}}}function qy(l){let n=typeof l=="string"?ka(l):l;return Va({...n,hash:""})}function J1(l,n){return l.pathname!==n.pathname||l.search!==n.search?!1:l.hash===""?n.hash!=="":l.hash===n.hash?!0:n.hash!==""}function P1(l){return Vy(l.result)&&L1.has(l.result.status)}function an(l){return l.type==="error"}function vl(l){return(l&&l.type)==="redirect"}function ry(l){return typeof l=="object"&&l!=null&&"type"in l&&"data"in l&&"init"in l&&l.type==="DataWithResponseInit"}function Vy(l){return l!=null&&typeof l.status=="number"&&typeof l.statusText=="string"&&typeof l.headers=="object"&&typeof l.body<"u"}function W1(l){return z1.has(l.toUpperCase())}function wn(l){return A1.has(l.toUpperCase())}function ko(l){return new URLSearchParams(l).getAll("index").some(n=>n==="")}function ur(l,n){let c=typeof n=="string"?ka(n).search:n.search;if(l[l.length-1].route.index&&ko(c||""))return l[l.length-1];let s=zy(l);return s[s.length-1]}function uy(l){let{formMethod:n,formAction:c,formEncType:s,text:u,formData:f,json:d}=l;if(!(!n||!c||!s)){if(u!=null)return{formMethod:n,formAction:c,formEncType:s,formData:void 0,json:void 0,text:u};if(f!=null)return{formMethod:n,formAction:c,formEncType:s,formData:f,json:void 0,text:void 0};if(d!==void 0)return{formMethod:n,formAction:c,formEncType:s,formData:void 0,json:d,text:void 0}}}function fo(l,n){return n?{state:"loading",location:l,formMethod:n.formMethod,formAction:n.formAction,formEncType:n.formEncType,formData:n.formData,json:n.json,text:n.text}:{state:"loading",location:l,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0}}function I1(l,n){return{state:"submitting",location:l,formMethod:n.formMethod,formAction:n.formAction,formEncType:n.formEncType,formData:n.formData,json:n.json,text:n.text}}function ar(l,n){return l?{state:"loading",formMethod:l.formMethod,formAction:l.formAction,formEncType:l.formEncType,formData:l.formData,json:l.json,text:l.text,data:n}:{state:"loading",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:n}}function e0(l,n){return{state:"submitting",formMethod:l.formMethod,formAction:l.formAction,formEncType:l.formEncType,formData:l.formData,json:l.json,text:l.text,data:n?n.data:void 0}}function Ha(l){return{state:"idle",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:l}}function t0(l,n){try{let c=l.sessionStorage.getItem(Uy);if(c){let s=JSON.parse(c);for(let[u,f]of Object.entries(s||{}))f&&Array.isArray(f)&&n.set(u,new Set(f||[]))}}catch{}}function n0(l,n){if(n.size>0){let c={};for(let[s,u]of n)c[s]=[...u];try{l.sessionStorage.setItem(Uy,JSON.stringify(c))}catch(s){Ot(!1,`Failed to save applied view transitions in sessionStorage (${s}).`)}}}function a0(){let l,n,c=new Promise((s,u)=>{l=async f=>{s(f);try{await c}catch{}},n=async f=>{u(f);try{await c}catch{}}});return{promise:c,resolve:l,reject:n}}var El=g.createContext(null);El.displayName="DataRouter";var dr=g.createContext(null);dr.displayName="DataRouterState";var Go=g.createContext({isTransitioning:!1});Go.displayName="ViewTransition";var Yy=g.createContext(new Map);Yy.displayName="Fetchers";var l0=g.createContext(null);l0.displayName="Await";var Gn=g.createContext(null);Gn.displayName="Navigation";var Xu=g.createContext(null);Xu.displayName="Location";var An=g.createContext({outlet:null,matches:[],isDataRoute:!1});An.displayName="Route";var Xo=g.createContext(null);Xo.displayName="RouteError";function i0(l,{relative:n}={}){He(hr(),"useHref() may be used only in the context of a <Router> component.");let{basename:c,navigator:s}=g.useContext(Gn),{hash:u,pathname:f,search:d}=mr(l,{relative:n}),y=f;return c!=="/"&&(y=f==="/"?c:kn([c,f])),s.createHref({pathname:y,search:d,hash:u})}function hr(){return g.useContext(Xu)!=null}function Xn(){return He(hr(),"useLocation() may be used only in the context of a <Router> component."),g.useContext(Xu).location}var ky="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function Gy(l){g.useContext(Gn).static||g.useLayoutEffect(l)}function Xy(){let{isDataRoute:l}=g.useContext(An);return l?E0():r0()}function r0(){He(hr(),"useNavigate() may be used only in the context of a <Router> component.");let l=g.useContext(El),{basename:n,navigator:c}=g.useContext(Gn),{matches:s}=g.useContext(An),{pathname:u}=Xn(),f=JSON.stringify(qo(s)),d=g.useRef(!1);return Gy(()=>{d.current=!0}),g.useCallback((v,p={})=>{if(Ot(d.current,ky),!d.current)return;if(typeof v=="number"){c.go(v);return}let b=Vo(v,JSON.parse(f),u,p.relative==="path");l==null&&n!=="/"&&(b.pathname=b.pathname==="/"?n:kn([n,b.pathname])),(p.replace?c.replace:c.push)(b,p.state,p)},[n,c,f,u,l])}var u0=g.createContext(null);function c0(l){let n=g.useContext(An).outlet;return n&&g.createElement(u0.Provider,{value:l},n)}function H2(){let{matches:l}=g.useContext(An),n=l[l.length-1];return n?n.params:{}}function mr(l,{relative:n}={}){let{matches:c}=g.useContext(An),{pathname:s}=Xn(),u=JSON.stringify(qo(c));return g.useMemo(()=>Vo(l,JSON.parse(u),s,n==="path"),[l,u,s,n])}function s0(l,n,c,s){He(hr(),"useRoutes() may be used only in the context of a <Router> component.");let{navigator:u,static:f}=g.useContext(Gn),{matches:d}=g.useContext(An),y=d[d.length-1],v=y?y.params:{},p=y?y.pathname:"/",b=y?y.pathnameBase:"/",R=y&&y.route;{let q=R&&R.path||"";Ky(p,!R||q.endsWith("*")||q.endsWith("*?"),`You rendered descendant <Routes> (or called \`useRoutes()\`) at "${p}" (under <Route path="${q}">) 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="${q}"> to <Route path="${q==="/"?"*":`${q}/*`}">.`)}let S=Xn(),_;_=S;let O=_.pathname||"/",H=O;if(b!=="/"){let q=b.replace(/^\//,"").split("/");H="/"+O.replace(/^\//,"").split("/").slice(q.length).join("/")}let U=!f&&c&&c.matches&&c.matches.length>0?c.matches:qa(l,{pathname:H});return Ot(R||U!=null,`No routes matched location "${_.pathname}${_.search}${_.hash}" `),Ot(U==null||U[U.length-1].route.element!==void 0||U[U.length-1].route.Component!==void 0||U[U.length-1].route.lazy!==void 0,`Matched leaf route at location "${_.pathname}${_.search}${_.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.`),m0(U&&U.map(q=>Object.assign({},q,{params:Object.assign({},v,q.params),pathname:Gn([b,u.encodeLocation?u.encodeLocation(q.pathname).pathname:q.pathname]),pathnameBase:q.pathnameBase==="/"?b:Gn([b,u.encodeLocation?u.encodeLocation(q.pathnameBase).pathname:q.pathnameBase])})),d,c,s)}function o0(){let l=v0(),n=or(l)?`${l.status} ${l.statusText}`:l instanceof Error?l.message:JSON.stringify(l),c=l instanceof Error?l.stack:null,s="rgba(200,200,200, 0.5)",u={padding:"0.5rem",backgroundColor:s},f={padding:"2px 4px",backgroundColor:s},d=null;return console.error("Error handled by React Router default ErrorBoundary:",l),d=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"}},n),c?g.createElement("pre",{style:u},c):null,d)}var f0=g.createElement(o0,null),d0=class extends g.Component{constructor(l){super(l),this.state={location:l.location,revalidation:l.revalidation,error:l.error}}static getDerivedStateFromError(l){return{error:l}}static getDerivedStateFromProps(l,n){return n.location!==l.location||n.revalidation!=="idle"&&l.revalidation==="idle"?{error:l.error,location:l.location,revalidation:l.revalidation}:{error:l.error!==void 0?l.error:n.error,location:n.location,revalidation:l.revalidation||n.revalidation}}componentDidCatch(l,n){console.error("React Router caught the following error during render",l,n)}render(){return this.state.error!==void 0?g.createElement(An.Provider,{value:this.props.routeContext},g.createElement(Xo.Provider,{value:this.state.error,children:this.props.component})):this.props.children}};function h0({routeContext:l,match:n,children:c}){let s=g.useContext(El);return s&&s.static&&s.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(s.staticContext._deepestRenderedBoundaryId=n.route.id),g.createElement(An.Provider,{value:l},c)}function m0(l,n=[],c=null,s=null){if(l==null){if(!c)return null;if(c.errors)l=c.matches;else if(n.length===0&&!c.initialized&&c.matches.length>0)l=c.matches;else return null}let u=l,f=c==null?void 0:c.errors;if(f!=null){let v=u.findIndex(p=>p.route.id&&(f==null?void 0:f[p.route.id])!==void 0);He(v>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(f).join(",")}`),u=u.slice(0,Math.min(u.length,v+1))}let d=!1,y=-1;if(c)for(let v=0;v<u.length;v++){let p=u[v];if((p.route.HydrateFallback||p.route.hydrateFallbackElement)&&(y=v),p.route.id){let{loaderData:b,errors:R}=c,S=p.route.loader&&!b.hasOwnProperty(p.route.id)&&(!R||R[p.route.id]===void 0);if(p.route.lazy||S){d=!0,y>=0?u=u.slice(0,y+1):u=[u[0]];break}}}return u.reduceRight((v,p,b)=>{let R,S=!1,_=null,O=null;c&&(R=f&&p.route.id?f[p.route.id]:void 0,_=p.route.errorElement||f0,d&&(y<0&&b===0?(Ky("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),S=!0,O=null):y===b&&(S=!0,O=p.route.hydrateFallbackElement||null)));let H=n.concat(u.slice(0,b+1)),U=()=>{let M;return R?M=_:S?M=O:p.route.Component?M=g.createElement(p.route.Component,null):p.route.element?M=p.route.element:M=v,g.createElement(h0,{match:p,routeContext:{outlet:v,matches:H,isDataRoute:c!=null},children:M})};return c&&(p.route.ErrorBoundary||p.route.errorElement||b===0)?g.createElement(d0,{location:c.location,revalidation:c.revalidation,component:_,error:R,children:U(),routeContext:{outlet:null,matches:H,isDataRoute:!0}}):U()},null)}function Qo(l){return`${l} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function Qy(l){let n=g.useContext(El);return He(n,Qo(l)),n}function Zy(l){let n=g.useContext(dr);return He(n,Qo(l)),n}function y0(l){let n=g.useContext(An);return He(n,Qo(l)),n}function Zo(l){let n=y0(l),c=n.matches[n.matches.length-1];return He(c.route.id,`${l} can only be used on routes that contain a unique "id"`),c.route.id}function p0(){return Zo("useRouteId")}function v0(){var s;let l=g.useContext(Xo),n=Zy("useRouteError"),c=Zo("useRouteError");return l!==void 0?l:(s=n.errors)==null?void 0:s[c]}var g0=0;function B2(l){let{router:n,basename:c}=Qy("useBlocker"),s=Zy("useBlocker"),[u,f]=g.useState(""),d=g.useCallback(y=>{if(typeof l!="function")return!!l;if(c==="/")return l(y);let{currentLocation:v,nextLocation:p,historyAction:b}=y;return l({currentLocation:{...v,pathname:rn(v.pathname,c)||v.pathname},nextLocation:{...p,pathname:rn(p.pathname,c)||p.pathname},historyAction:b})},[c,l]);return g.useEffect(()=>{let y=String(++g0);return f(y),()=>n.deleteBlocker(y)},[n]),g.useEffect(()=>{u!==""&&n.getBlocker(u,d)},[n,u,d]),u&&s.blockers.has(u)?s.blockers.get(u):ai}function E0(){let{router:l}=Qy("useNavigate"),n=Zo("useNavigate"),c=g.useRef(!1);return ky(()=>{c.current=!0}),g.useCallback(async(u,f={})=>{Ot(c.current,Gy),c.current&&(typeof u=="number"?l.navigate(u):await l.navigate(u,{fromRouteId:n,...f}))},[l,n])}var cy={};function Ky(l,n,c){!n&&!cy[l]&&(cy[l]=!0,Ot(!1,c))}var sy={};function oy(l,n){!l&&!sy[n]&&(sy[n]=!0,console.warn(n))}function b0(l){let n={hasErrorBoundary:l.hasErrorBoundary||l.ErrorBoundary!=null||l.errorElement!=null};return l.Component&&(l.element&&Ot(!1,"You should not include both `Component` and `element` on your route - `Component` will be used."),Object.assign(n,{element:g.createElement(l.Component),Component:void 0})),l.HydrateFallback&&(l.hydrateFallbackElement&&Ot(!1,"You should not include both `HydrateFallback` and `hydrateFallbackElement` on your route - `HydrateFallback` will be used."),Object.assign(n,{hydrateFallbackElement:g.createElement(l.HydrateFallback),HydrateFallback:void 0})),l.ErrorBoundary&&(l.errorElement&&Ot(!1,"You should not include both `ErrorBoundary` and `errorElement` on your route - `ErrorBoundary` will be used."),Object.assign(n,{errorElement:g.createElement(l.ErrorBoundary),ErrorBoundary:void 0})),n}var S0=class{constructor(){this.status="pending",this.promise=new Promise((l,n)=>{this.resolve=c=>{this.status==="pending"&&(this.status="resolved",l(c))},this.reject=c=>{this.status==="pending"&&(this.status="rejected",n(c))}})}};function x0({router:l,flushSync:n}){let[c,s]=g.useState(l.state),[u,f]=g.useState(),[d,y]=g.useState({isTransitioning:!1}),[v,p]=g.useState(),[b,R]=g.useState(),[S,_]=g.useState(),O=g.useRef(new Map),H=g.useCallback((Y,{deletedFetchers:J,flushSync:k,viewTransitionOpts:N})=>{Y.fetchers.forEach((ie,X)=>{ie.data!==void 0&&O.current.set(X,ie.data)}),J.forEach(ie=>O.current.delete(ie)),oy(k===!1||n!=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 W=l.window!=null&&l.window.document!=null&&typeof l.window.document.startViewTransition=="function";if(oy(N==null||W,"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."),!N||!W){n&&k?n(()=>s(Y)):g.startTransition(()=>s(Y));return}if(n&&k){n(()=>{b&&(v&&v.resolve(),b.skipTransition()),y({isTransitioning:!0,flushSync:!0,currentLocation:N.currentLocation,nextLocation:N.nextLocation})});let ie=l.window.document.startViewTransition(()=>{n(()=>s(Y))});ie.finished.finally(()=>{n(()=>{p(void 0),R(void 0),f(void 0),y({isTransitioning:!1})})}),n(()=>R(ie));return}b?(v&&v.resolve(),b.skipTransition(),_({state:Y,currentLocation:N.currentLocation,nextLocation:N.nextLocation})):(f(Y),y({isTransitioning:!0,flushSync:!1,currentLocation:N.currentLocation,nextLocation:N.nextLocation}))},[l.window,n,b,v]);g.useLayoutEffect(()=>l.subscribe(H),[l,H]),g.useEffect(()=>{d.isTransitioning&&!d.flushSync&&p(new S0)},[d]),g.useEffect(()=>{if(v&&u&&l.window){let Y=u,J=v.promise,k=l.window.document.startViewTransition(async()=>{g.startTransition(()=>s(Y)),await J});k.finished.finally(()=>{p(void 0),R(void 0),f(void 0),y({isTransitioning:!1})}),R(k)}},[u,v,l.window]),g.useEffect(()=>{v&&u&&c.location.key===u.location.key&&v.resolve()},[v,b,c.location,u]),g.useEffect(()=>{!d.isTransitioning&&S&&(f(S.state),y({isTransitioning:!0,flushSync:!1,currentLocation:S.currentLocation,nextLocation:S.nextLocation}),_(void 0))},[d.isTransitioning,S]);let U=g.useMemo(()=>({createHref:l.createHref,encodeLocation:l.encodeLocation,go:Y=>l.navigate(Y),push:(Y,J,k)=>l.navigate(Y,{state:J,preventScrollReset:k==null?void 0:k.preventScrollReset}),replace:(Y,J,k)=>l.navigate(Y,{replace:!0,state:J,preventScrollReset:k==null?void 0:k.preventScrollReset})}),[l]),M=l.basename||"/",q=g.useMemo(()=>({router:l,navigator:U,static:!1,basename:M}),[l,U,M]);return g.createElement(g.Fragment,null,g.createElement(El.Provider,{value:q},g.createElement(dr.Provider,{value:c},g.createElement(Yy.Provider,{value:O.current},g.createElement(ko.Provider,{value:d},g.createElement(N0,{basename:M,location:c.location,navigationType:c.historyAction,navigator:U},g.createElement(_0,{routes:l.routes,future:l.future,state:c})))))),null)}var _0=g.memo(R0);function R0({routes:l,future:n,state:c}){return s0(l,void 0,c,n)}function T0(l){return c0(l.context)}function N0({basename:l="/",children:n=null,location:c,navigationType:s="POP",navigator:u,static:f=!1}){He(!hr(),"You cannot render a <Router> inside another <Router>. You should never have more than one in your app.");let d=l.replace(/^\/*/,"/"),y=g.useMemo(()=>({basename:d,navigator:u,static:f,future:{}}),[d,u,f]);typeof c=="string"&&(c=Ga(c));let{pathname:v="/",search:p="",hash:b="",state:R=null,key:S="default"}=c,_=g.useMemo(()=>{let O=rn(v,d);return O==null?null:{location:{pathname:O,search:p,hash:b,state:R,key:S},navigationType:s}},[d,v,p,b,R,S,s]);return Ot(_!=null,`<Router basename="${d}"> 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.`),_==null?null:g.createElement(kn.Provider,{value:y},g.createElement(Xu.Provider,{children:n,value:_}))}var Mu="get",zu="application/x-www-form-urlencoded";function Qu(l){return l!=null&&typeof l.tagName=="string"}function C0(l){return Qu(l)&&l.tagName.toLowerCase()==="button"}function j0(l){return Qu(l)&&l.tagName.toLowerCase()==="form"}function O0(l){return Qu(l)&&l.tagName.toLowerCase()==="input"}function D0(l){return!!(l.metaKey||l.altKey||l.ctrlKey||l.shiftKey)}function w0(l,n){return l.button===0&&(!n||n==="_self")&&!D0(l)}function Do(l=""){return new URLSearchParams(typeof l=="string"||Array.isArray(l)||l instanceof URLSearchParams?l:Object.keys(l).reduce((n,c)=>{let s=l[c];return n.concat(Array.isArray(s)?s.map(u=>[c,u]):[[c,s]])},[]))}function A0(l,n){let c=Do(l);return n&&n.forEach((s,u)=>{c.has(u)||n.getAll(u).forEach(f=>{c.append(u,f)})}),c}var ju=null;function M0(){if(ju===null)try{new FormData(document.createElement("form"),0),ju=!1}catch{ju=!0}return ju}var z0=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function ho(l){return l!=null&&!z0.has(l)?(Ot(!1,`"${l}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${zu}"`),null):l}function L0(l,n){let c,s,u,f,d;if(j0(l)){let y=l.getAttribute("action");s=y?rn(y,n):null,c=l.getAttribute("method")||Mu,u=ho(l.getAttribute("enctype"))||zu,f=new FormData(l)}else if(C0(l)||O0(l)&&(l.type==="submit"||l.type==="image")){let y=l.form;if(y==null)throw new Error('Cannot submit a <button> or <input type="submit"> without a <form>');let v=l.getAttribute("formaction")||y.getAttribute("action");if(s=v?rn(v,n):null,c=l.getAttribute("formmethod")||y.getAttribute("method")||Mu,u=ho(l.getAttribute("formenctype"))||ho(y.getAttribute("enctype"))||zu,f=new FormData(y,l),!M0()){let{name:p,type:b,value:R}=l;if(b==="image"){let S=p?`${p}.`:"";f.append(`${S}x`,"0"),f.append(`${S}y`,"0")}else p&&f.append(p,R)}}else{if(Qu(l))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');c=Mu,s=null,u=zu,d=l}return f&&u==="text/plain"&&(d=f,f=void 0),{action:s,method:c.toLowerCase(),encType:u,formData:f,body:d}}function Ko(l,n){if(l===!1||l===null||typeof l>"u")throw new Error(n)}async function U0(l,n){if(l.id in n)return n[l.id];try{let c=await import(l.module);return n[l.id]=c,c}catch(c){return console.error(`Error loading route module \`${l.module}\`, reloading page...`),console.error(c),window.__reactRouterContext&&window.__reactRouterContext.isSpaMode,window.location.reload(),new Promise(()=>{})}}function H0(l){return l==null?!1:l.href==null?l.rel==="preload"&&typeof l.imageSrcSet=="string"&&typeof l.imageSizes=="string":typeof l.rel=="string"&&typeof l.href=="string"}async function B0(l,n,c){let s=await Promise.all(l.map(async u=>{let f=n.routes[u.route.id];if(f){let d=await U0(f,c);return d.links?d.links():[]}return[]}));return G0(s.flat(1).filter(H0).filter(u=>u.rel==="stylesheet"||u.rel==="preload").map(u=>u.rel==="stylesheet"?{...u,rel:"prefetch",as:"style"}:{...u,rel:"prefetch"}))}function fy(l,n,c,s,u,f){let d=(v,p)=>c[p]?v.route.id!==c[p].route.id:!0,y=(v,p)=>{var b;return c[p].pathname!==v.pathname||((b=c[p].route.path)==null?void 0:b.endsWith("*"))&&c[p].params["*"]!==v.params["*"]};return f==="assets"?n.filter((v,p)=>d(v,p)||y(v,p)):f==="data"?n.filter((v,p)=>{var R;let b=s.routes[v.route.id];if(!b||!b.hasLoader)return!1;if(d(v,p)||y(v,p))return!0;if(v.route.shouldRevalidate){let S=v.route.shouldRevalidate({currentUrl:new URL(u.pathname+u.search+u.hash,window.origin),currentParams:((R=c[0])==null?void 0:R.params)||{},nextUrl:new URL(l,window.origin),nextParams:v.params,defaultShouldRevalidate:!0});if(typeof S=="boolean")return S}return!0}):[]}function q0(l,n){return V0(l.map(c=>{let s=n.routes[c.route.id];if(!s)return[];let u=[s.module];return s.imports&&(u=u.concat(s.imports)),u}).flat(1))}function V0(l){return[...new Set(l)]}function Y0(l){let n={},c=Object.keys(l).sort();for(let s of c)n[s]=l[s];return n}function G0(l,n){let c=new Set;return new Set(n),l.reduce((s,u)=>{let f=JSON.stringify(Y0(u));return c.has(f)||(c.add(f),s.push({key:f,link:u})),s},[])}function k0(l){let n=typeof l=="string"?new URL(l,typeof window>"u"?"server://singlefetch/":window.location.origin):l;return n.pathname==="/"?n.pathname="_root.data":n.pathname=`${n.pathname.replace(/\/$/,"")}.data`,n}function X0(){let l=g.useContext(El);return Ko(l,"You must render this element inside a <DataRouterContext.Provider> element"),l}function Q0(){let l=g.useContext(dr);return Ko(l,"You must render this element inside a <DataRouterStateContext.Provider> element"),l}var $o=g.createContext(void 0);$o.displayName="FrameworkContext";function $y(){let l=g.useContext($o);return Ko(l,"You must render this element inside a <HydratedRouter> element"),l}function Z0(l,n){let c=g.useContext($o),[s,u]=g.useState(!1),[f,d]=g.useState(!1),{onFocus:y,onBlur:v,onMouseEnter:p,onMouseLeave:b,onTouchStart:R}=n,S=g.useRef(null);g.useEffect(()=>{if(l==="render"&&d(!0),l==="viewport"){let H=M=>{M.forEach(q=>{d(q.isIntersecting)})},U=new IntersectionObserver(H,{threshold:.5});return S.current&&U.observe(S.current),()=>{U.disconnect()}}},[l]),g.useEffect(()=>{if(s){let H=setTimeout(()=>{d(!0)},100);return()=>{clearTimeout(H)}}},[s]);let _=()=>{u(!0)},O=()=>{u(!1),d(!1)};return c?l!=="intent"?[f,S,{}]:[f,S,{onFocus:lr(y,_),onBlur:lr(v,O),onMouseEnter:lr(p,_),onMouseLeave:lr(b,O),onTouchStart:lr(R,_)}]:[!1,S,{}]}function lr(l,n){return c=>{l&&l(c),c.defaultPrevented||n(c)}}function K0({page:l,...n}){let{router:c}=X0(),s=g.useMemo(()=>qa(c.routes,l,c.basename),[c.routes,l,c.basename]);return s?g.createElement(F0,{page:l,matches:s,...n}):null}function $0(l){let{manifest:n,routeModules:c}=$y(),[s,u]=g.useState([]);return g.useEffect(()=>{let f=!1;return B0(l,n,c).then(d=>{f||u(d)}),()=>{f=!0}},[l,n,c]),s}function F0({page:l,matches:n,...c}){let s=Xn(),{manifest:u,routeModules:f}=$y(),{loaderData:d,matches:y}=Q0(),v=g.useMemo(()=>fy(l,n,y,u,s,"data"),[l,n,y,u,s]),p=g.useMemo(()=>fy(l,n,y,u,s,"assets"),[l,n,y,u,s]),b=g.useMemo(()=>{if(l===s.pathname+s.search+s.hash)return[];let _=new Set,O=!1;if(n.forEach(U=>{var q;let M=u.routes[U.route.id];!M||!M.hasLoader||(!v.some(Y=>Y.route.id===U.route.id)&&U.route.id in d&&((q=f[U.route.id])!=null&&q.shouldRevalidate)||M.hasClientLoader?O=!0:_.add(U.route.id))}),_.size===0)return[];let H=k0(l);return O&&_.size>0&&H.searchParams.set("_routes",n.filter(U=>_.has(U.route.id)).map(U=>U.route.id).join(",")),[H.pathname+H.search]},[d,s,u,v,n,l,f]),R=g.useMemo(()=>q0(p,u),[p,u]),S=$0(p);return g.createElement(g.Fragment,null,b.map(_=>g.createElement("link",{key:_,rel:"prefetch",as:"fetch",href:_,...c})),R.map(_=>g.createElement("link",{key:_,rel:"modulepreload",href:_,...c})),S.map(({key:_,link:O})=>g.createElement("link",{key:_,...O})))}function J0(...l){return n=>{l.forEach(c=>{typeof c=="function"?c(n):c!=null&&(c.current=n)})}}var Fy=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";try{Fy&&(window.__reactRouterVersion="7.1.5")}catch{}function P0(l,n){return q1({basename:n==null?void 0:n.basename,future:n==null?void 0:n.future,history:s1({window:n==null?void 0:n.window}),hydrationData:W0(),routes:l,mapRouteProperties:b0,dataStrategy:n==null?void 0:n.dataStrategy,patchRoutesOnNavigation:n==null?void 0:n.patchRoutesOnNavigation,window:n==null?void 0:n.window}).initialize()}function W0(){let l=window==null?void 0:window.__staticRouterHydrationData;return l&&l.errors&&(l={...l,errors:I0(l.errors)}),l}function I0(l){if(!l)return null;let n=Object.entries(l),c={};for(let[s,u]of n)if(u&&u.__type==="RouteErrorResponse")c[s]=new Hu(u.status,u.statusText,u.data,u.internal===!0);else if(u&&u.__type==="Error"){if(u.__subType){let f=window[u.__subType];if(typeof f=="function")try{let d=new f(u.message);d.stack="",c[s]=d}catch{}}if(c[s]==null){let f=new Error(u.message);f.stack="",c[s]=f}}else c[s]=u;return c}var Jy=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,Tn=g.forwardRef(function({onClick:n,discover:c="render",prefetch:s="none",relative:u,reloadDocument:f,replace:d,state:y,target:v,to:p,preventScrollReset:b,viewTransition:R,...S},_){let{basename:O}=g.useContext(kn),H=typeof p=="string"&&Jy.test(p),U,M=!1;if(typeof p=="string"&&H&&(U=p,Fy))try{let X=new URL(window.location.href),I=p.startsWith("//")?new URL(X.protocol+p):new URL(p),de=rn(I.pathname,O);I.origin===X.origin&&de!=null?p=de+I.search+I.hash:M=!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 q=i0(p,{relative:u}),[Y,J,k]=Z0(s,S),N=aE(p,{replace:d,state:y,target:v,preventScrollReset:b,relative:u,viewTransition:R});function W(X){n&&n(X),X.defaultPrevented||N(X)}let ie=g.createElement("a",{...S,...k,href:U||q,onClick:M||f?n:W,ref:J0(_,J),target:v,"data-discover":!H&&c==="render"?"true":void 0});return Y&&!H?g.createElement(g.Fragment,null,ie,g.createElement(K0,{page:q})):ie});Tn.displayName="Link";var eE=g.forwardRef(function({"aria-current":n="page",caseSensitive:c=!1,className:s="",end:u=!1,style:f,to:d,viewTransition:y,children:v,...p},b){let R=mr(d,{relative:p.relative}),S=Xn(),_=g.useContext(dr),{navigator:O,basename:H}=g.useContext(kn),U=_!=null&&sE(R)&&y===!0,M=O.encodeLocation?O.encodeLocation(R).pathname:R.pathname,q=S.pathname,Y=_&&_.navigation&&_.navigation.location?_.navigation.location.pathname:null;c||(q=q.toLowerCase(),Y=Y?Y.toLowerCase():null,M=M.toLowerCase()),Y&&H&&(Y=rn(Y,H)||Y);const J=M!=="/"&&M.endsWith("/")?M.length-1:M.length;let k=q===M||!u&&q.startsWith(M)&&q.charAt(J)==="/",N=Y!=null&&(Y===M||!u&&Y.startsWith(M)&&Y.charAt(M.length)==="/"),W={isActive:k,isPending:N,isTransitioning:U},ie=k?n:void 0,X;typeof s=="function"?X=s(W):X=[s,k?"active":null,N?"pending":null,U?"transitioning":null].filter(Boolean).join(" ");let I=typeof f=="function"?f(W):f;return g.createElement(Tn,{...p,"aria-current":ie,className:X,ref:b,style:I,to:d,viewTransition:y},typeof v=="function"?v(W):v)});eE.displayName="NavLink";var tE=g.forwardRef(({discover:l="render",fetcherKey:n,navigate:c,reloadDocument:s,replace:u,state:f,method:d=Mu,action:y,onSubmit:v,relative:p,preventScrollReset:b,viewTransition:R,...S},_)=>{let O=uE(),H=cE(y,{relative:p}),U=d.toLowerCase()==="get"?"get":"post",M=typeof y=="string"&&Jy.test(y),q=Y=>{if(v&&v(Y),Y.defaultPrevented)return;Y.preventDefault();let J=Y.nativeEvent.submitter,k=(J==null?void 0:J.getAttribute("formmethod"))||d;O(J||Y.currentTarget,{fetcherKey:n,method:k,navigate:c,replace:u,state:f,relative:p,preventScrollReset:b,viewTransition:R})};return g.createElement("form",{ref:_,method:U,action:H,onSubmit:s?v:q,...S,"data-discover":!M&&l==="render"?"true":void 0})});tE.displayName="Form";function nE(l){return`${l} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function Py(l){let n=g.useContext(El);return He(n,nE(l)),n}function aE(l,{target:n,replace:c,state:s,preventScrollReset:u,relative:f,viewTransition:d}={}){let y=Xy(),v=Xn(),p=mr(l,{relative:f});return g.useCallback(b=>{if(w0(b,n)){b.preventDefault();let R=c!==void 0?c:Va(v)===Va(p);y(l,{replace:R,state:s,preventScrollReset:u,relative:f,viewTransition:d})}},[v,y,p,c,s,n,l,u,f,d])}function lE(l){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 n=g.useRef(Do(l)),c=g.useRef(!1),s=Xn(),u=g.useMemo(()=>A0(s.search,c.current?null:n.current),[s.search]),f=Xy(),d=g.useCallback((y,v)=>{const p=Do(typeof y=="function"?y(u):y);c.current=!0,f("?"+p,v)},[f,u]);return[u,d]}var iE=0,rE=()=>`__${String(++iE)}__`;function uE(){let{router:l}=Py("useSubmit"),{basename:n}=g.useContext(kn),c=p0();return g.useCallback(async(s,u={})=>{let{action:f,method:d,encType:y,formData:v,body:p}=L0(s,n);if(u.navigate===!1){let b=u.fetcherKey||rE();await l.fetch(b,c,u.action||f,{preventScrollReset:u.preventScrollReset,formData:v,body:p,formMethod:u.method||d,formEncType:u.encType||y,flushSync:u.flushSync})}else await l.navigate(u.action||f,{preventScrollReset:u.preventScrollReset,formData:v,body:p,formMethod:u.method||d,formEncType:u.encType||y,replace:u.replace,state:u.state,fromRouteId:c,flushSync:u.flushSync,viewTransition:u.viewTransition})},[l,n,c])}function cE(l,{relative:n}={}){let{basename:c}=g.useContext(kn),s=g.useContext(An);He(s,"useFormAction must be used inside a RouteContext");let[u]=s.matches.slice(-1),f={...mr(l||".",{relative:n})},d=Xn();if(l==null){f.search=d.search;let y=new URLSearchParams(f.search),v=y.getAll("index");if(v.some(b=>b==="")){y.delete("index"),v.filter(R=>R).forEach(R=>y.append("index",R));let b=y.toString();f.search=b?`?${b}`:""}}return(!l||l===".")&&u.route.index&&(f.search=f.search?f.search.replace(/^\?/,"?index&"):"?index"),c!=="/"&&(f.pathname=f.pathname==="/"?c:Gn([c,f.pathname])),Va(f)}function sE(l,n={}){let c=g.useContext(ko);He(c!=null,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?");let{basename:s}=Py("useViewTransitionState"),u=mr(l,{relative:n.relative});if(!c.isTransitioning)return!1;let f=rn(c.currentLocation.pathname,s)||c.currentLocation.pathname,d=rn(c.nextLocation.pathname,s)||c.nextLocation.pathname;return Uu(u.pathname,d)!=null||Uu(u.pathname,f)!=null}new TextEncoder;var Wy=wy();const ii=fr(Wy);/** - * react-router v7.1.5 +Please change the parent <Route path="${q}"> to <Route path="${q==="/"?"*":`${q}/*`}">.`)}let S=Xn(),_;_=S;let O=_.pathname||"/",H=O;if(b!=="/"){let q=b.replace(/^\//,"").split("/");H="/"+O.replace(/^\//,"").split("/").slice(q.length).join("/")}let U=!f&&c&&c.matches&&c.matches.length>0?c.matches:qa(l,{pathname:H});return Ot(R||U!=null,`No routes matched location "${_.pathname}${_.search}${_.hash}" `),Ot(U==null||U[U.length-1].route.element!==void 0||U[U.length-1].route.Component!==void 0||U[U.length-1].route.lazy!==void 0,`Matched leaf route at location "${_.pathname}${_.search}${_.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.`),m0(U&&U.map(q=>Object.assign({},q,{params:Object.assign({},v,q.params),pathname:kn([b,u.encodeLocation?u.encodeLocation(q.pathname).pathname:q.pathname]),pathnameBase:q.pathnameBase==="/"?b:kn([b,u.encodeLocation?u.encodeLocation(q.pathnameBase).pathname:q.pathnameBase])})),d,c,s)}function o0(){let l=v0(),n=or(l)?`${l.status} ${l.statusText}`:l instanceof Error?l.message:JSON.stringify(l),c=l instanceof Error?l.stack:null,s="rgba(200,200,200, 0.5)",u={padding:"0.5rem",backgroundColor:s},f={padding:"2px 4px",backgroundColor:s},d=null;return console.error("Error handled by React Router default ErrorBoundary:",l),d=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"}},n),c?g.createElement("pre",{style:u},c):null,d)}var f0=g.createElement(o0,null),d0=class extends g.Component{constructor(l){super(l),this.state={location:l.location,revalidation:l.revalidation,error:l.error}}static getDerivedStateFromError(l){return{error:l}}static getDerivedStateFromProps(l,n){return n.location!==l.location||n.revalidation!=="idle"&&l.revalidation==="idle"?{error:l.error,location:l.location,revalidation:l.revalidation}:{error:l.error!==void 0?l.error:n.error,location:n.location,revalidation:l.revalidation||n.revalidation}}componentDidCatch(l,n){console.error("React Router caught the following error during render",l,n)}render(){return this.state.error!==void 0?g.createElement(An.Provider,{value:this.props.routeContext},g.createElement(Xo.Provider,{value:this.state.error,children:this.props.component})):this.props.children}};function h0({routeContext:l,match:n,children:c}){let s=g.useContext(El);return s&&s.static&&s.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(s.staticContext._deepestRenderedBoundaryId=n.route.id),g.createElement(An.Provider,{value:l},c)}function m0(l,n=[],c=null,s=null){if(l==null){if(!c)return null;if(c.errors)l=c.matches;else if(n.length===0&&!c.initialized&&c.matches.length>0)l=c.matches;else return null}let u=l,f=c==null?void 0:c.errors;if(f!=null){let v=u.findIndex(p=>p.route.id&&(f==null?void 0:f[p.route.id])!==void 0);He(v>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(f).join(",")}`),u=u.slice(0,Math.min(u.length,v+1))}let d=!1,y=-1;if(c)for(let v=0;v<u.length;v++){let p=u[v];if((p.route.HydrateFallback||p.route.hydrateFallbackElement)&&(y=v),p.route.id){let{loaderData:b,errors:R}=c,S=p.route.loader&&!b.hasOwnProperty(p.route.id)&&(!R||R[p.route.id]===void 0);if(p.route.lazy||S){d=!0,y>=0?u=u.slice(0,y+1):u=[u[0]];break}}}return u.reduceRight((v,p,b)=>{let R,S=!1,_=null,O=null;c&&(R=f&&p.route.id?f[p.route.id]:void 0,_=p.route.errorElement||f0,d&&(y<0&&b===0?(Ky("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),S=!0,O=null):y===b&&(S=!0,O=p.route.hydrateFallbackElement||null)));let H=n.concat(u.slice(0,b+1)),U=()=>{let M;return R?M=_:S?M=O:p.route.Component?M=g.createElement(p.route.Component,null):p.route.element?M=p.route.element:M=v,g.createElement(h0,{match:p,routeContext:{outlet:v,matches:H,isDataRoute:c!=null},children:M})};return c&&(p.route.ErrorBoundary||p.route.errorElement||b===0)?g.createElement(d0,{location:c.location,revalidation:c.revalidation,component:_,error:R,children:U(),routeContext:{outlet:null,matches:H,isDataRoute:!0}}):U()},null)}function Qo(l){return`${l} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function Qy(l){let n=g.useContext(El);return He(n,Qo(l)),n}function Zy(l){let n=g.useContext(dr);return He(n,Qo(l)),n}function y0(l){let n=g.useContext(An);return He(n,Qo(l)),n}function Zo(l){let n=y0(l),c=n.matches[n.matches.length-1];return He(c.route.id,`${l} can only be used on routes that contain a unique "id"`),c.route.id}function p0(){return Zo("useRouteId")}function v0(){var s;let l=g.useContext(Xo),n=Zy("useRouteError"),c=Zo("useRouteError");return l!==void 0?l:(s=n.errors)==null?void 0:s[c]}var g0=0;function B2(l){let{router:n,basename:c}=Qy("useBlocker"),s=Zy("useBlocker"),[u,f]=g.useState(""),d=g.useCallback(y=>{if(typeof l!="function")return!!l;if(c==="/")return l(y);let{currentLocation:v,nextLocation:p,historyAction:b}=y;return l({currentLocation:{...v,pathname:rn(v.pathname,c)||v.pathname},nextLocation:{...p,pathname:rn(p.pathname,c)||p.pathname},historyAction:b})},[c,l]);return g.useEffect(()=>{let y=String(++g0);return f(y),()=>n.deleteBlocker(y)},[n]),g.useEffect(()=>{u!==""&&n.getBlocker(u,d)},[n,u,d]),u&&s.blockers.has(u)?s.blockers.get(u):ai}function E0(){let{router:l}=Qy("useNavigate"),n=Zo("useNavigate"),c=g.useRef(!1);return Gy(()=>{c.current=!0}),g.useCallback(async(u,f={})=>{Ot(c.current,ky),c.current&&(typeof u=="number"?l.navigate(u):await l.navigate(u,{fromRouteId:n,...f}))},[l,n])}var cy={};function Ky(l,n,c){!n&&!cy[l]&&(cy[l]=!0,Ot(!1,c))}var sy={};function oy(l,n){!l&&!sy[n]&&(sy[n]=!0,console.warn(n))}function b0(l){let n={hasErrorBoundary:l.hasErrorBoundary||l.ErrorBoundary!=null||l.errorElement!=null};return l.Component&&(l.element&&Ot(!1,"You should not include both `Component` and `element` on your route - `Component` will be used."),Object.assign(n,{element:g.createElement(l.Component),Component:void 0})),l.HydrateFallback&&(l.hydrateFallbackElement&&Ot(!1,"You should not include both `HydrateFallback` and `hydrateFallbackElement` on your route - `HydrateFallback` will be used."),Object.assign(n,{hydrateFallbackElement:g.createElement(l.HydrateFallback),HydrateFallback:void 0})),l.ErrorBoundary&&(l.errorElement&&Ot(!1,"You should not include both `ErrorBoundary` and `errorElement` on your route - `ErrorBoundary` will be used."),Object.assign(n,{errorElement:g.createElement(l.ErrorBoundary),ErrorBoundary:void 0})),n}var S0=class{constructor(){this.status="pending",this.promise=new Promise((l,n)=>{this.resolve=c=>{this.status==="pending"&&(this.status="resolved",l(c))},this.reject=c=>{this.status==="pending"&&(this.status="rejected",n(c))}})}};function x0({router:l,flushSync:n}){let[c,s]=g.useState(l.state),[u,f]=g.useState(),[d,y]=g.useState({isTransitioning:!1}),[v,p]=g.useState(),[b,R]=g.useState(),[S,_]=g.useState(),O=g.useRef(new Map),H=g.useCallback((Y,{deletedFetchers:J,flushSync:G,viewTransitionOpts:N})=>{Y.fetchers.forEach((ie,X)=>{ie.data!==void 0&&O.current.set(X,ie.data)}),J.forEach(ie=>O.current.delete(ie)),oy(G===!1||n!=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 W=l.window!=null&&l.window.document!=null&&typeof l.window.document.startViewTransition=="function";if(oy(N==null||W,"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."),!N||!W){n&&G?n(()=>s(Y)):g.startTransition(()=>s(Y));return}if(n&&G){n(()=>{b&&(v&&v.resolve(),b.skipTransition()),y({isTransitioning:!0,flushSync:!0,currentLocation:N.currentLocation,nextLocation:N.nextLocation})});let ie=l.window.document.startViewTransition(()=>{n(()=>s(Y))});ie.finished.finally(()=>{n(()=>{p(void 0),R(void 0),f(void 0),y({isTransitioning:!1})})}),n(()=>R(ie));return}b?(v&&v.resolve(),b.skipTransition(),_({state:Y,currentLocation:N.currentLocation,nextLocation:N.nextLocation})):(f(Y),y({isTransitioning:!0,flushSync:!1,currentLocation:N.currentLocation,nextLocation:N.nextLocation}))},[l.window,n,b,v]);g.useLayoutEffect(()=>l.subscribe(H),[l,H]),g.useEffect(()=>{d.isTransitioning&&!d.flushSync&&p(new S0)},[d]),g.useEffect(()=>{if(v&&u&&l.window){let Y=u,J=v.promise,G=l.window.document.startViewTransition(async()=>{g.startTransition(()=>s(Y)),await J});G.finished.finally(()=>{p(void 0),R(void 0),f(void 0),y({isTransitioning:!1})}),R(G)}},[u,v,l.window]),g.useEffect(()=>{v&&u&&c.location.key===u.location.key&&v.resolve()},[v,b,c.location,u]),g.useEffect(()=>{!d.isTransitioning&&S&&(f(S.state),y({isTransitioning:!0,flushSync:!1,currentLocation:S.currentLocation,nextLocation:S.nextLocation}),_(void 0))},[d.isTransitioning,S]);let U=g.useMemo(()=>({createHref:l.createHref,encodeLocation:l.encodeLocation,go:Y=>l.navigate(Y),push:(Y,J,G)=>l.navigate(Y,{state:J,preventScrollReset:G==null?void 0:G.preventScrollReset}),replace:(Y,J,G)=>l.navigate(Y,{replace:!0,state:J,preventScrollReset:G==null?void 0:G.preventScrollReset})}),[l]),M=l.basename||"/",q=g.useMemo(()=>({router:l,navigator:U,static:!1,basename:M}),[l,U,M]);return g.createElement(g.Fragment,null,g.createElement(El.Provider,{value:q},g.createElement(dr.Provider,{value:c},g.createElement(Yy.Provider,{value:O.current},g.createElement(Go.Provider,{value:d},g.createElement(N0,{basename:M,location:c.location,navigationType:c.historyAction,navigator:U},g.createElement(_0,{routes:l.routes,future:l.future,state:c})))))),null)}var _0=g.memo(R0);function R0({routes:l,future:n,state:c}){return s0(l,void 0,c,n)}function T0(l){return c0(l.context)}function N0({basename:l="/",children:n=null,location:c,navigationType:s="POP",navigator:u,static:f=!1}){He(!hr(),"You cannot render a <Router> inside another <Router>. You should never have more than one in your app.");let d=l.replace(/^\/*/,"/"),y=g.useMemo(()=>({basename:d,navigator:u,static:f,future:{}}),[d,u,f]);typeof c=="string"&&(c=ka(c));let{pathname:v="/",search:p="",hash:b="",state:R=null,key:S="default"}=c,_=g.useMemo(()=>{let O=rn(v,d);return O==null?null:{location:{pathname:O,search:p,hash:b,state:R,key:S},navigationType:s}},[d,v,p,b,R,S,s]);return Ot(_!=null,`<Router basename="${d}"> 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.`),_==null?null:g.createElement(Gn.Provider,{value:y},g.createElement(Xu.Provider,{children:n,value:_}))}var Mu="get",zu="application/x-www-form-urlencoded";function Qu(l){return l!=null&&typeof l.tagName=="string"}function C0(l){return Qu(l)&&l.tagName.toLowerCase()==="button"}function j0(l){return Qu(l)&&l.tagName.toLowerCase()==="form"}function O0(l){return Qu(l)&&l.tagName.toLowerCase()==="input"}function D0(l){return!!(l.metaKey||l.altKey||l.ctrlKey||l.shiftKey)}function w0(l,n){return l.button===0&&(!n||n==="_self")&&!D0(l)}function Do(l=""){return new URLSearchParams(typeof l=="string"||Array.isArray(l)||l instanceof URLSearchParams?l:Object.keys(l).reduce((n,c)=>{let s=l[c];return n.concat(Array.isArray(s)?s.map(u=>[c,u]):[[c,s]])},[]))}function A0(l,n){let c=Do(l);return n&&n.forEach((s,u)=>{c.has(u)||n.getAll(u).forEach(f=>{c.append(u,f)})}),c}var ju=null;function M0(){if(ju===null)try{new FormData(document.createElement("form"),0),ju=!1}catch{ju=!0}return ju}var z0=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function ho(l){return l!=null&&!z0.has(l)?(Ot(!1,`"${l}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${zu}"`),null):l}function L0(l,n){let c,s,u,f,d;if(j0(l)){let y=l.getAttribute("action");s=y?rn(y,n):null,c=l.getAttribute("method")||Mu,u=ho(l.getAttribute("enctype"))||zu,f=new FormData(l)}else if(C0(l)||O0(l)&&(l.type==="submit"||l.type==="image")){let y=l.form;if(y==null)throw new Error('Cannot submit a <button> or <input type="submit"> without a <form>');let v=l.getAttribute("formaction")||y.getAttribute("action");if(s=v?rn(v,n):null,c=l.getAttribute("formmethod")||y.getAttribute("method")||Mu,u=ho(l.getAttribute("formenctype"))||ho(y.getAttribute("enctype"))||zu,f=new FormData(y,l),!M0()){let{name:p,type:b,value:R}=l;if(b==="image"){let S=p?`${p}.`:"";f.append(`${S}x`,"0"),f.append(`${S}y`,"0")}else p&&f.append(p,R)}}else{if(Qu(l))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');c=Mu,s=null,u=zu,d=l}return f&&u==="text/plain"&&(d=f,f=void 0),{action:s,method:c.toLowerCase(),encType:u,formData:f,body:d}}function Ko(l,n){if(l===!1||l===null||typeof l>"u")throw new Error(n)}async function U0(l,n){if(l.id in n)return n[l.id];try{let c=await import(l.module);return n[l.id]=c,c}catch(c){return console.error(`Error loading route module \`${l.module}\`, reloading page...`),console.error(c),window.__reactRouterContext&&window.__reactRouterContext.isSpaMode,window.location.reload(),new Promise(()=>{})}}function H0(l){return l==null?!1:l.href==null?l.rel==="preload"&&typeof l.imageSrcSet=="string"&&typeof l.imageSizes=="string":typeof l.rel=="string"&&typeof l.href=="string"}async function B0(l,n,c){let s=await Promise.all(l.map(async u=>{let f=n.routes[u.route.id];if(f){let d=await U0(f,c);return d.links?d.links():[]}return[]}));return k0(s.flat(1).filter(H0).filter(u=>u.rel==="stylesheet"||u.rel==="preload").map(u=>u.rel==="stylesheet"?{...u,rel:"prefetch",as:"style"}:{...u,rel:"prefetch"}))}function fy(l,n,c,s,u,f){let d=(v,p)=>c[p]?v.route.id!==c[p].route.id:!0,y=(v,p)=>{var b;return c[p].pathname!==v.pathname||((b=c[p].route.path)==null?void 0:b.endsWith("*"))&&c[p].params["*"]!==v.params["*"]};return f==="assets"?n.filter((v,p)=>d(v,p)||y(v,p)):f==="data"?n.filter((v,p)=>{var R;let b=s.routes[v.route.id];if(!b||!b.hasLoader)return!1;if(d(v,p)||y(v,p))return!0;if(v.route.shouldRevalidate){let S=v.route.shouldRevalidate({currentUrl:new URL(u.pathname+u.search+u.hash,window.origin),currentParams:((R=c[0])==null?void 0:R.params)||{},nextUrl:new URL(l,window.origin),nextParams:v.params,defaultShouldRevalidate:!0});if(typeof S=="boolean")return S}return!0}):[]}function q0(l,n,{includeHydrateFallback:c}={}){return V0(l.map(s=>{let u=n.routes[s.route.id];if(!u)return[];let f=[u.module];return u.clientActionModule&&(f=f.concat(u.clientActionModule)),u.clientLoaderModule&&(f=f.concat(u.clientLoaderModule)),c&&u.hydrateFallbackModule&&(f=f.concat(u.hydrateFallbackModule)),u.imports&&(f=f.concat(u.imports)),f}).flat(1))}function V0(l){return[...new Set(l)]}function Y0(l){let n={},c=Object.keys(l).sort();for(let s of c)n[s]=l[s];return n}function k0(l,n){let c=new Set;return new Set(n),l.reduce((s,u)=>{let f=JSON.stringify(Y0(u));return c.has(f)||(c.add(f),s.push({key:f,link:u})),s},[])}function G0(l){let n=typeof l=="string"?new URL(l,typeof window>"u"?"server://singlefetch/":window.location.origin):l;return n.pathname==="/"?n.pathname="_root.data":n.pathname=`${n.pathname.replace(/\/$/,"")}.data`,n}function X0(){let l=g.useContext(El);return Ko(l,"You must render this element inside a <DataRouterContext.Provider> element"),l}function Q0(){let l=g.useContext(dr);return Ko(l,"You must render this element inside a <DataRouterStateContext.Provider> element"),l}var $o=g.createContext(void 0);$o.displayName="FrameworkContext";function $y(){let l=g.useContext($o);return Ko(l,"You must render this element inside a <HydratedRouter> element"),l}function Z0(l,n){let c=g.useContext($o),[s,u]=g.useState(!1),[f,d]=g.useState(!1),{onFocus:y,onBlur:v,onMouseEnter:p,onMouseLeave:b,onTouchStart:R}=n,S=g.useRef(null);g.useEffect(()=>{if(l==="render"&&d(!0),l==="viewport"){let H=M=>{M.forEach(q=>{d(q.isIntersecting)})},U=new IntersectionObserver(H,{threshold:.5});return S.current&&U.observe(S.current),()=>{U.disconnect()}}},[l]),g.useEffect(()=>{if(s){let H=setTimeout(()=>{d(!0)},100);return()=>{clearTimeout(H)}}},[s]);let _=()=>{u(!0)},O=()=>{u(!1),d(!1)};return c?l!=="intent"?[f,S,{}]:[f,S,{onFocus:lr(y,_),onBlur:lr(v,O),onMouseEnter:lr(p,_),onMouseLeave:lr(b,O),onTouchStart:lr(R,_)}]:[!1,S,{}]}function lr(l,n){return c=>{l&&l(c),c.defaultPrevented||n(c)}}function K0({page:l,...n}){let{router:c}=X0(),s=g.useMemo(()=>qa(c.routes,l,c.basename),[c.routes,l,c.basename]);return s?g.createElement(F0,{page:l,matches:s,...n}):null}function $0(l){let{manifest:n,routeModules:c}=$y(),[s,u]=g.useState([]);return g.useEffect(()=>{let f=!1;return B0(l,n,c).then(d=>{f||u(d)}),()=>{f=!0}},[l,n,c]),s}function F0({page:l,matches:n,...c}){let s=Xn(),{manifest:u,routeModules:f}=$y(),{loaderData:d,matches:y}=Q0(),v=g.useMemo(()=>fy(l,n,y,u,s,"data"),[l,n,y,u,s]),p=g.useMemo(()=>fy(l,n,y,u,s,"assets"),[l,n,y,u,s]),b=g.useMemo(()=>{if(l===s.pathname+s.search+s.hash)return[];let _=new Set,O=!1;if(n.forEach(U=>{var q;let M=u.routes[U.route.id];!M||!M.hasLoader||(!v.some(Y=>Y.route.id===U.route.id)&&U.route.id in d&&((q=f[U.route.id])!=null&&q.shouldRevalidate)||M.hasClientLoader?O=!0:_.add(U.route.id))}),_.size===0)return[];let H=G0(l);return O&&_.size>0&&H.searchParams.set("_routes",n.filter(U=>_.has(U.route.id)).map(U=>U.route.id).join(",")),[H.pathname+H.search]},[d,s,u,v,n,l,f]),R=g.useMemo(()=>q0(p,u),[p,u]),S=$0(p);return g.createElement(g.Fragment,null,b.map(_=>g.createElement("link",{key:_,rel:"prefetch",as:"fetch",href:_,...c})),R.map(_=>g.createElement("link",{key:_,rel:"modulepreload",href:_,...c})),S.map(({key:_,link:O})=>g.createElement("link",{key:_,...O})))}function J0(...l){return n=>{l.forEach(c=>{typeof c=="function"?c(n):c!=null&&(c.current=n)})}}var Fy=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";try{Fy&&(window.__reactRouterVersion="7.2.0")}catch{}function P0(l,n){return q1({basename:n==null?void 0:n.basename,future:n==null?void 0:n.future,history:s1({window:n==null?void 0:n.window}),hydrationData:W0(),routes:l,mapRouteProperties:b0,dataStrategy:n==null?void 0:n.dataStrategy,patchRoutesOnNavigation:n==null?void 0:n.patchRoutesOnNavigation,window:n==null?void 0:n.window}).initialize()}function W0(){let l=window==null?void 0:window.__staticRouterHydrationData;return l&&l.errors&&(l={...l,errors:I0(l.errors)}),l}function I0(l){if(!l)return null;let n=Object.entries(l),c={};for(let[s,u]of n)if(u&&u.__type==="RouteErrorResponse")c[s]=new Hu(u.status,u.statusText,u.data,u.internal===!0);else if(u&&u.__type==="Error"){if(u.__subType){let f=window[u.__subType];if(typeof f=="function")try{let d=new f(u.message);d.stack="",c[s]=d}catch{}}if(c[s]==null){let f=new Error(u.message);f.stack="",c[s]=f}}else c[s]=u;return c}var Jy=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,Tn=g.forwardRef(function({onClick:n,discover:c="render",prefetch:s="none",relative:u,reloadDocument:f,replace:d,state:y,target:v,to:p,preventScrollReset:b,viewTransition:R,...S},_){let{basename:O}=g.useContext(Gn),H=typeof p=="string"&&Jy.test(p),U,M=!1;if(typeof p=="string"&&H&&(U=p,Fy))try{let X=new URL(window.location.href),I=p.startsWith("//")?new URL(X.protocol+p):new URL(p),de=rn(I.pathname,O);I.origin===X.origin&&de!=null?p=de+I.search+I.hash:M=!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 q=i0(p,{relative:u}),[Y,J,G]=Z0(s,S),N=aE(p,{replace:d,state:y,target:v,preventScrollReset:b,relative:u,viewTransition:R});function W(X){n&&n(X),X.defaultPrevented||N(X)}let ie=g.createElement("a",{...S,...G,href:U||q,onClick:M||f?n:W,ref:J0(_,J),target:v,"data-discover":!H&&c==="render"?"true":void 0});return Y&&!H?g.createElement(g.Fragment,null,ie,g.createElement(K0,{page:q})):ie});Tn.displayName="Link";var eE=g.forwardRef(function({"aria-current":n="page",caseSensitive:c=!1,className:s="",end:u=!1,style:f,to:d,viewTransition:y,children:v,...p},b){let R=mr(d,{relative:p.relative}),S=Xn(),_=g.useContext(dr),{navigator:O,basename:H}=g.useContext(Gn),U=_!=null&&sE(R)&&y===!0,M=O.encodeLocation?O.encodeLocation(R).pathname:R.pathname,q=S.pathname,Y=_&&_.navigation&&_.navigation.location?_.navigation.location.pathname:null;c||(q=q.toLowerCase(),Y=Y?Y.toLowerCase():null,M=M.toLowerCase()),Y&&H&&(Y=rn(Y,H)||Y);const J=M!=="/"&&M.endsWith("/")?M.length-1:M.length;let G=q===M||!u&&q.startsWith(M)&&q.charAt(J)==="/",N=Y!=null&&(Y===M||!u&&Y.startsWith(M)&&Y.charAt(M.length)==="/"),W={isActive:G,isPending:N,isTransitioning:U},ie=G?n:void 0,X;typeof s=="function"?X=s(W):X=[s,G?"active":null,N?"pending":null,U?"transitioning":null].filter(Boolean).join(" ");let I=typeof f=="function"?f(W):f;return g.createElement(Tn,{...p,"aria-current":ie,className:X,ref:b,style:I,to:d,viewTransition:y},typeof v=="function"?v(W):v)});eE.displayName="NavLink";var tE=g.forwardRef(({discover:l="render",fetcherKey:n,navigate:c,reloadDocument:s,replace:u,state:f,method:d=Mu,action:y,onSubmit:v,relative:p,preventScrollReset:b,viewTransition:R,...S},_)=>{let O=uE(),H=cE(y,{relative:p}),U=d.toLowerCase()==="get"?"get":"post",M=typeof y=="string"&&Jy.test(y),q=Y=>{if(v&&v(Y),Y.defaultPrevented)return;Y.preventDefault();let J=Y.nativeEvent.submitter,G=(J==null?void 0:J.getAttribute("formmethod"))||d;O(J||Y.currentTarget,{fetcherKey:n,method:G,navigate:c,replace:u,state:f,relative:p,preventScrollReset:b,viewTransition:R})};return g.createElement("form",{ref:_,method:U,action:H,onSubmit:s?v:q,...S,"data-discover":!M&&l==="render"?"true":void 0})});tE.displayName="Form";function nE(l){return`${l} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function Py(l){let n=g.useContext(El);return He(n,nE(l)),n}function aE(l,{target:n,replace:c,state:s,preventScrollReset:u,relative:f,viewTransition:d}={}){let y=Xy(),v=Xn(),p=mr(l,{relative:f});return g.useCallback(b=>{if(w0(b,n)){b.preventDefault();let R=c!==void 0?c:Va(v)===Va(p);y(l,{replace:R,state:s,preventScrollReset:u,relative:f,viewTransition:d})}},[v,y,p,c,s,n,l,u,f,d])}function lE(l){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 n=g.useRef(Do(l)),c=g.useRef(!1),s=Xn(),u=g.useMemo(()=>A0(s.search,c.current?null:n.current),[s.search]),f=Xy(),d=g.useCallback((y,v)=>{const p=Do(typeof y=="function"?y(u):y);c.current=!0,f("?"+p,v)},[f,u]);return[u,d]}var iE=0,rE=()=>`__${String(++iE)}__`;function uE(){let{router:l}=Py("useSubmit"),{basename:n}=g.useContext(Gn),c=p0();return g.useCallback(async(s,u={})=>{let{action:f,method:d,encType:y,formData:v,body:p}=L0(s,n);if(u.navigate===!1){let b=u.fetcherKey||rE();await l.fetch(b,c,u.action||f,{preventScrollReset:u.preventScrollReset,formData:v,body:p,formMethod:u.method||d,formEncType:u.encType||y,flushSync:u.flushSync})}else await l.navigate(u.action||f,{preventScrollReset:u.preventScrollReset,formData:v,body:p,formMethod:u.method||d,formEncType:u.encType||y,replace:u.replace,state:u.state,fromRouteId:c,flushSync:u.flushSync,viewTransition:u.viewTransition})},[l,n,c])}function cE(l,{relative:n}={}){let{basename:c}=g.useContext(Gn),s=g.useContext(An);He(s,"useFormAction must be used inside a RouteContext");let[u]=s.matches.slice(-1),f={...mr(l||".",{relative:n})},d=Xn();if(l==null){f.search=d.search;let y=new URLSearchParams(f.search),v=y.getAll("index");if(v.some(b=>b==="")){y.delete("index"),v.filter(R=>R).forEach(R=>y.append("index",R));let b=y.toString();f.search=b?`?${b}`:""}}return(!l||l===".")&&u.route.index&&(f.search=f.search?f.search.replace(/^\?/,"?index&"):"?index"),c!=="/"&&(f.pathname=f.pathname==="/"?c:kn([c,f.pathname])),Va(f)}function sE(l,n={}){let c=g.useContext(Go);He(c!=null,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?");let{basename:s}=Py("useViewTransitionState"),u=mr(l,{relative:n.relative});if(!c.isTransitioning)return!1;let f=rn(c.currentLocation.pathname,s)||c.currentLocation.pathname,d=rn(c.nextLocation.pathname,s)||c.nextLocation.pathname;return Uu(u.pathname,d)!=null||Uu(u.pathname,f)!=null}new TextEncoder;var Wy=wy();const ii=fr(Wy);/** + * react-router v7.2.0 * * Copyright (c) Remix Software Inc. * @@ -80,4 +80,4 @@ Please change the parent <Route path="${q}"> to <Route path="${q==="/"?"*":`${q} Copyright (c) 2018 Jed Watson. Licensed under the MIT License (MIT), see http://jedwatson.github.io/classnames -*/var dy;function AE(){return dy||(dy=1,function(l){(function(){var n={}.hasOwnProperty;function c(){for(var f="",d=0;d<arguments.length;d++){var y=arguments[d];y&&(f=u(f,s(y)))}return f}function s(f){if(typeof f=="string"||typeof f=="number")return f;if(typeof f!="object")return"";if(Array.isArray(f))return c.apply(null,f);if(f.toString!==Object.prototype.toString&&!f.toString.toString().includes("[native code]"))return f.toString();var d="";for(var y in f)n.call(f,y)&&f[y]&&(d=u(d,y));return d}function u(f,d){return d?f?f+" "+d:f+d:f}l.exports?(c.default=c,l.exports=c):window.classNames=c})()}(po)),po.exports}var ME=AE();const Ae=fr(ME);function zE(l,n){if(l==null)return{};var c={};for(var s in l)if({}.hasOwnProperty.call(l,s)){if(n.includes(s))continue;c[s]=l[s]}return c}function Ao(l,n){return Ao=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(c,s){return c.__proto__=s,c},Ao(l,n)}function LE(l,n){l.prototype=Object.create(n.prototype),l.prototype.constructor=l,Ao(l,n)}const UE=["xxl","xl","lg","md","sm","xs"],HE="xs",Zu=g.createContext({prefixes:{},breakpoints:UE,minBreakpoint:HE});function Qe(l,n){const{prefixes:c}=g.useContext(Zu);return l||c[n]||n}function tp(){const{breakpoints:l}=g.useContext(Zu);return l}function np(){const{minBreakpoint:l}=g.useContext(Zu);return l}function BE(){const{dir:l}=g.useContext(Zu);return l==="rtl"}function Ku(l){return l&&l.ownerDocument||document}function qE(l){var n=Ku(l);return n&&n.defaultView||window}function VE(l,n){return qE(l).getComputedStyle(l,n)}var YE=/([A-Z])/g;function GE(l){return l.replace(YE,"-$1").toLowerCase()}var kE=/^ms-/;function Ou(l){return GE(l).replace(kE,"-ms-")}var XE=/^((translate|rotate|scale)(X|Y|Z|3d)?|matrix(3d)?|perspective|skew(X|Y)?)$/i;function QE(l){return!!(l&&XE.test(l))}function gl(l,n){var c="",s="";if(typeof n=="string")return l.style.getPropertyValue(Ou(n))||VE(l).getPropertyValue(Ou(n));Object.keys(n).forEach(function(u){var f=n[u];!f&&f!==0?l.style.removeProperty(Ou(u)):QE(u)?s+=u+"("+f+") ":c+=Ou(u)+": "+f+";"}),s&&(c+="transform: "+s+";"),l.style.cssText+=";"+c}var vo={exports:{}},go,hy;function ZE(){if(hy)return go;hy=1;var l="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return go=l,go}var Eo,my;function KE(){if(my)return Eo;my=1;var l=ZE();function n(){}function c(){}return c.resetWarningCache=n,Eo=function(){function s(d,y,v,p,b,R){if(R!==l){var S=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 S.name="Invariant Violation",S}}s.isRequired=s;function u(){return s}var f={array:s,bigint:s,bool:s,func:s,number:s,object:s,string:s,symbol:s,any:s,arrayOf:u,element:s,elementType:s,instanceOf:u,node:s,objectOf:u,oneOf:u,oneOfType:u,shape:u,exact:u,checkPropTypes:c,resetWarningCache:n};return f.PropTypes=f,f},Eo}var yy;function $E(){return yy||(yy=1,vo.exports=KE()()),vo.exports}var FE=$E();const fa=fr(FE),py={disabled:!1},ap=Yt.createContext(null);var JE=function(n){return n.scrollTop},cr="unmounted",hl="exited",Ba="entering",yl="entered",Mo="exiting",ha=function(l){LE(n,l);function n(s,u){var f;f=l.call(this,s,u)||this;var d=u,y=d&&!d.isMounting?s.enter:s.appear,v;return f.appearStatus=null,s.in?y?(v=hl,f.appearStatus=Ba):v=yl:s.unmountOnExit||s.mountOnEnter?v=cr:v=hl,f.state={status:v},f.nextCallback=null,f}n.getDerivedStateFromProps=function(u,f){var d=u.in;return d&&f.status===cr?{status:hl}:null};var c=n.prototype;return c.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},c.componentDidUpdate=function(u){var f=null;if(u!==this.props){var d=this.state.status;this.props.in?d!==Ba&&d!==yl&&(f=Ba):(d===Ba||d===yl)&&(f=Mo)}this.updateStatus(!1,f)},c.componentWillUnmount=function(){this.cancelNextCallback()},c.getTimeouts=function(){var u=this.props.timeout,f,d,y;return f=d=y=u,u!=null&&typeof u!="number"&&(f=u.exit,d=u.enter,y=u.appear!==void 0?u.appear:d),{exit:f,enter:d,appear:y}},c.updateStatus=function(u,f){if(u===void 0&&(u=!1),f!==null)if(this.cancelNextCallback(),f===Ba){if(this.props.unmountOnExit||this.props.mountOnEnter){var d=this.props.nodeRef?this.props.nodeRef.current:ii.findDOMNode(this);d&&JE(d)}this.performEnter(u)}else this.performExit();else this.props.unmountOnExit&&this.state.status===hl&&this.setState({status:cr})},c.performEnter=function(u){var f=this,d=this.props.enter,y=this.context?this.context.isMounting:u,v=this.props.nodeRef?[y]:[ii.findDOMNode(this),y],p=v[0],b=v[1],R=this.getTimeouts(),S=y?R.appear:R.enter;if(!u&&!d||py.disabled){this.safeSetState({status:yl},function(){f.props.onEntered(p)});return}this.props.onEnter(p,b),this.safeSetState({status:Ba},function(){f.props.onEntering(p,b),f.onTransitionEnd(S,function(){f.safeSetState({status:yl},function(){f.props.onEntered(p,b)})})})},c.performExit=function(){var u=this,f=this.props.exit,d=this.getTimeouts(),y=this.props.nodeRef?void 0:ii.findDOMNode(this);if(!f||py.disabled){this.safeSetState({status:hl},function(){u.props.onExited(y)});return}this.props.onExit(y),this.safeSetState({status:Mo},function(){u.props.onExiting(y),u.onTransitionEnd(d.exit,function(){u.safeSetState({status:hl},function(){u.props.onExited(y)})})})},c.cancelNextCallback=function(){this.nextCallback!==null&&(this.nextCallback.cancel(),this.nextCallback=null)},c.safeSetState=function(u,f){f=this.setNextCallback(f),this.setState(u,f)},c.setNextCallback=function(u){var f=this,d=!0;return this.nextCallback=function(y){d&&(d=!1,f.nextCallback=null,u(y))},this.nextCallback.cancel=function(){d=!1},this.nextCallback},c.onTransitionEnd=function(u,f){this.setNextCallback(f);var d=this.props.nodeRef?this.props.nodeRef.current:ii.findDOMNode(this),y=u==null&&!this.props.addEndListener;if(!d||y){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var v=this.props.nodeRef?[this.nextCallback]:[d,this.nextCallback],p=v[0],b=v[1];this.props.addEndListener(p,b)}u!=null&&setTimeout(this.nextCallback,u)},c.render=function(){var u=this.state.status;if(u===cr)return null;var f=this.props,d=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=zE(f,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return Yt.createElement(ap.Provider,{value:null},typeof d=="function"?d(u,y):Yt.cloneElement(Yt.Children.only(d),y))},n}(Yt.Component);ha.contextType=ap;ha.propTypes={};function ei(){}ha.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:ei,onEntering:ei,onEntered:ei,onExit:ei,onExiting:ei,onExited:ei};ha.UNMOUNTED=cr;ha.EXITED=hl;ha.ENTERING=Ba;ha.ENTERED=yl;ha.EXITING=Mo;function PE(l){return l.code==="Escape"||l.keyCode===27}function WE(){const l=g.version.split(".");return{major:+l[0],minor:+l[1],patch:+l[2]}}function $u(l){if(!l||typeof l=="function")return null;const{major:n}=WE();return n>=19?l.props.ref:l.ref}const ri=!!(typeof window<"u"&&window.document&&window.document.createElement);var zo=!1,Lo=!1;try{var bo={get passive(){return zo=!0},get once(){return Lo=zo=!0}};ri&&(window.addEventListener("test",bo,bo),window.removeEventListener("test",bo,!0))}catch{}function lp(l,n,c,s){if(s&&typeof s!="boolean"&&!Lo){var u=s.once,f=s.capture,d=c;!Lo&&u&&(d=c.__once||function y(v){this.removeEventListener(n,y,f),c.call(this,v)},c.__once=d),l.addEventListener(n,d,zo?s:f)}l.addEventListener(n,c,s)}function Uo(l,n,c,s){var u=s&&typeof s!="boolean"?s.capture:s;l.removeEventListener(n,c,u),c.__once&&l.removeEventListener(n,c.__once,u)}function Bu(l,n,c,s){return lp(l,n,c,s),function(){Uo(l,n,c,s)}}function IE(l,n,c,s){if(s===void 0&&(s=!0),l){var u=document.createEvent("HTMLEvents");u.initEvent(n,c,s),l.dispatchEvent(u)}}function eb(l){var n=gl(l,"transitionDuration")||"",c=n.indexOf("ms")===-1?1e3:1;return parseFloat(n)*c}function tb(l,n,c){c===void 0&&(c=5);var s=!1,u=setTimeout(function(){s||IE(l,"transitionend",!0)},n+c),f=Bu(l,"transitionend",function(){s=!0},{once:!0});return function(){clearTimeout(u),f()}}function ip(l,n,c,s){c==null&&(c=eb(l)||0);var u=tb(l,c,s),f=Bu(l,"transitionend",n);return function(){u(),f()}}function vy(l,n){const c=gl(l,n)||"",s=c.indexOf("ms")===-1?1e3:1;return parseFloat(c)*s}function nb(l,n){const c=vy(l,"transitionDuration"),s=vy(l,"transitionDelay"),u=ip(l,f=>{f.target===l&&(u(),n(f))},c+s)}function ab(l){l.offsetHeight}const gy=l=>!l||typeof l=="function"?l:n=>{l.current=n};function lb(l,n){const c=gy(l),s=gy(n);return u=>{c&&c(u),s&&s(u)}}function rp(l,n){return g.useMemo(()=>lb(l,n),[l,n])}function ib(l){return l&&"setState"in l?ii.findDOMNode(l):l??null}const rb=Yt.forwardRef(({onEnter:l,onEntering:n,onEntered:c,onExit:s,onExiting:u,onExited:f,addEndListener:d,children:y,childRef:v,...p},b)=>{const R=g.useRef(null),S=rp(R,v),_=N=>{S(ib(N))},O=N=>W=>{N&&R.current&&N(R.current,W)},H=g.useCallback(O(l),[l]),U=g.useCallback(O(n),[n]),M=g.useCallback(O(c),[c]),q=g.useCallback(O(s),[s]),Y=g.useCallback(O(u),[u]),J=g.useCallback(O(f),[f]),k=g.useCallback(O(d),[d]);return h.jsx(ha,{ref:b,...p,onEnter:H,onEntered:M,onEntering:U,onExit:q,onExited:J,onExiting:Y,addEndListener:k,nodeRef:R,children:typeof y=="function"?(N,W)=>y(N,{...W,ref:_}):Yt.cloneElement(y,{ref:_})})});function ub(l){const n=g.useRef(l);return g.useEffect(()=>{n.current=l},[l]),n}function Ho(l){const n=ub(l);return g.useCallback(function(...c){return n.current&&n.current(...c)},[n])}const Po=l=>g.forwardRef((n,c)=>h.jsx("div",{...n,ref:c,className:Ae(n.className,l)}));function cb(l){const n=g.useRef(l);return g.useEffect(()=>{n.current=l},[l]),n}function pl(l){const n=cb(l);return g.useCallback(function(...c){return n.current&&n.current(...c)},[n])}function sb(){const l=g.useRef(!0),n=g.useRef(()=>l.current);return g.useEffect(()=>(l.current=!0,()=>{l.current=!1}),[]),n.current}function ob(l){const n=g.useRef(null);return g.useEffect(()=>{n.current=l}),n.current}const fb=typeof global<"u"&&global.navigator&&global.navigator.product==="ReactNative",db=typeof document<"u",Ey=db||fb?g.useLayoutEffect:g.useEffect,hb=["as","disabled"];function mb(l,n){if(l==null)return{};var c={};for(var s in l)if({}.hasOwnProperty.call(l,s)){if(n.indexOf(s)>=0)continue;c[s]=l[s]}return c}function yb(l){return!l||l.trim()==="#"}function up({tagName:l,disabled:n,href:c,target:s,rel:u,role:f,onClick:d,tabIndex:y=0,type:v}){l||(c!=null||s!=null||u!=null?l="a":l="button");const p={tagName:l};if(l==="button")return[{type:v||"button",disabled:n},p];const b=S=>{if((n||l==="a"&&yb(c))&&S.preventDefault(),n){S.stopPropagation();return}d==null||d(S)},R=S=>{S.key===" "&&(S.preventDefault(),b(S))};return l==="a"&&(c||(c="#"),n&&(c=void 0)),[{role:f??"button",disabled:void 0,tabIndex:n?void 0:y,href:c,target:l==="a"?s:void 0,"aria-disabled":n||void 0,rel:l==="a"?u:void 0,onClick:b,onKeyDown:R},p]}const pb=g.forwardRef((l,n)=>{let{as:c,disabled:s}=l,u=mb(l,hb);const[f,{tagName:d}]=up(Object.assign({tagName:c,disabled:s},u));return h.jsx(d,Object.assign({},u,f,{ref:n}))});pb.displayName="Button";const vb={[Ba]:"show",[yl]:"show"},Wo=g.forwardRef(({className:l,children:n,transitionClasses:c={},onEnter:s,...u},f)=>{const d={in:!1,timeout:300,mountOnEnter:!1,unmountOnExit:!1,appear:!1,...u},y=g.useCallback((v,p)=>{ab(v),s==null||s(v,p)},[s]);return h.jsx(rb,{ref:f,addEndListener:nb,...d,onEnter:y,childRef:$u(n),children:(v,p)=>g.cloneElement(n,{...p,className:Ae("fade",l,n.props.className,vb[v],c[v])})})});Wo.displayName="Fade";const gb={"aria-label":fa.string,onClick:fa.func,variant:fa.oneOf(["white"])},Io=g.forwardRef(({className:l,variant:n,"aria-label":c="Close",...s},u)=>h.jsx("button",{ref:u,type:"button",className:Ae("btn-close",n&&`btn-close-${n}`,l),"aria-label":c,...s}));Io.displayName="CloseButton";Io.propTypes=gb;const Bo=g.forwardRef(({as:l,bsPrefix:n,variant:c="primary",size:s,active:u=!1,disabled:f=!1,className:d,...y},v)=>{const p=Qe(n,"btn"),[b,{tagName:R}]=up({tagName:l,disabled:f,...y}),S=R;return h.jsx(S,{...b,...y,ref:v,disabled:f,className:Ae(d,p,u&&"active",c&&`${p}-${c}`,s&&`${p}-${s}`,y.href&&f&&"disabled")})});Bo.displayName="Button";const ef=g.forwardRef(({className:l,bsPrefix:n,as:c="div",...s},u)=>(n=Qe(n,"card-body"),h.jsx(c,{ref:u,className:Ae(l,n),...s})));ef.displayName="CardBody";const cp=g.forwardRef(({className:l,bsPrefix:n,as:c="div",...s},u)=>(n=Qe(n,"card-footer"),h.jsx(c,{ref:u,className:Ae(l,n),...s})));cp.displayName="CardFooter";const sp=g.createContext(null);sp.displayName="CardHeaderContext";const op=g.forwardRef(({bsPrefix:l,className:n,as:c="div",...s},u)=>{const f=Qe(l,"card-header"),d=g.useMemo(()=>({cardHeaderBsPrefix:f}),[f]);return h.jsx(sp.Provider,{value:d,children:h.jsx(c,{ref:u,...s,className:Ae(n,f)})})});op.displayName="CardHeader";const fp=g.forwardRef(({bsPrefix:l,className:n,variant:c,as:s="img",...u},f)=>{const d=Qe(l,"card-img");return h.jsx(s,{ref:f,className:Ae(c?`${d}-${c}`:d,n),...u})});fp.displayName="CardImg";const dp=g.forwardRef(({className:l,bsPrefix:n,as:c="div",...s},u)=>(n=Qe(n,"card-img-overlay"),h.jsx(c,{ref:u,className:Ae(l,n),...s})));dp.displayName="CardImgOverlay";const hp=g.forwardRef(({className:l,bsPrefix:n,as:c="a",...s},u)=>(n=Qe(n,"card-link"),h.jsx(c,{ref:u,className:Ae(l,n),...s})));hp.displayName="CardLink";const Eb=Po("h6"),mp=g.forwardRef(({className:l,bsPrefix:n,as:c=Eb,...s},u)=>(n=Qe(n,"card-subtitle"),h.jsx(c,{ref:u,className:Ae(l,n),...s})));mp.displayName="CardSubtitle";const yp=g.forwardRef(({className:l,bsPrefix:n,as:c="p",...s},u)=>(n=Qe(n,"card-text"),h.jsx(c,{ref:u,className:Ae(l,n),...s})));yp.displayName="CardText";const bb=Po("h5"),pp=g.forwardRef(({className:l,bsPrefix:n,as:c=bb,...s},u)=>(n=Qe(n,"card-title"),h.jsx(c,{ref:u,className:Ae(l,n),...s})));pp.displayName="CardTitle";const vp=g.forwardRef(({bsPrefix:l,className:n,bg:c,text:s,border:u,body:f=!1,children:d,as:y="div",...v},p)=>{const b=Qe(l,"card");return h.jsx(y,{ref:p,...v,className:Ae(n,b,c&&`bg-${c}`,s&&`text-${s}`,u&&`border-${u}`),children:f?h.jsx(ef,{children:d}):d})});vp.displayName="Card";const Yn=Object.assign(vp,{Img:fp,Title:pp,Subtitle:mp,Body:ef,Link:hp,Text:yp,Header:op,Footer:cp,ImgOverlay:dp});function Sb(l){const n=g.useRef(l);return n.current=l,n}function xb(l){const n=Sb(l);g.useEffect(()=>()=>n.current(),[])}function _b(l,n){return g.Children.toArray(l).some(c=>g.isValidElement(c)&&c.type===n)}function Rb({as:l,bsPrefix:n,className:c,...s}){n=Qe(n,"col");const u=tp(),f=np(),d=[],y=[];return u.forEach(v=>{const p=s[v];delete s[v];let b,R,S;typeof p=="object"&&p!=null?{span:b,offset:R,order:S}=p:b=p;const _=v!==f?`-${v}`:"";b&&d.push(b===!0?`${n}${_}`:`${n}${_}-${b}`),S!=null&&y.push(`order${_}-${S}`),R!=null&&y.push(`offset${_}-${R}`)}),[{...s,className:Ae(c,...d,...y)},{as:l,bsPrefix:n,spans:d}]}const ln=g.forwardRef((l,n)=>{const[{className:c,...s},{as:u="div",bsPrefix:f,spans:d}]=Rb(l);return h.jsx(u,{...s,ref:n,className:Ae(c,!d.length&&f)})});ln.displayName="Col";const Ya=g.forwardRef(({bsPrefix:l,fluid:n=!1,as:c="div",className:s,...u},f)=>{const d=Qe(l,"container"),y=typeof n=="string"?`-${n}`:"-fluid";return h.jsx(c,{ref:f,...u,className:Ae(s,n?`${d}${y}`:d)})});Ya.displayName="Container";var Tb=Function.prototype.bind.call(Function.prototype.call,[].slice);function ti(l,n){return Tb(l.querySelectorAll(n))}function by(l,n){if(l.contains)return l.contains(n);if(l.compareDocumentPosition)return l===n||!!(l.compareDocumentPosition(n)&16)}var So,Sy;function Nb(){if(Sy)return So;Sy=1;var l=function(){};return So=l,So}var Cb=Nb();const q2=fr(Cb),jb="data-rr-ui-";function Ob(l){return`${jb}${l}`}const gp=g.createContext(ri?window:void 0);gp.Provider;function tf(){return g.useContext(gp)}const Db={type:fa.string,tooltip:fa.bool,as:fa.elementType},Fu=g.forwardRef(({as:l="div",className:n,type:c="valid",tooltip:s=!1,...u},f)=>h.jsx(l,{...u,ref:f,className:Ae(n,`${c}-${s?"tooltip":"feedback"}`)}));Fu.displayName="Feedback";Fu.propTypes=Db;const da=g.createContext({}),nf=g.forwardRef(({id:l,bsPrefix:n,className:c,type:s="checkbox",isValid:u=!1,isInvalid:f=!1,as:d="input",...y},v)=>{const{controlId:p}=g.useContext(da);return n=Qe(n,"form-check-input"),h.jsx(d,{...y,ref:v,type:s,id:l||p,className:Ae(c,n,u&&"is-valid",f&&"is-invalid")})});nf.displayName="FormCheckInput";const qu=g.forwardRef(({bsPrefix:l,className:n,htmlFor:c,...s},u)=>{const{controlId:f}=g.useContext(da);return l=Qe(l,"form-check-label"),h.jsx("label",{...s,ref:u,htmlFor:c||f,className:Ae(n,l)})});qu.displayName="FormCheckLabel";const Ep=g.forwardRef(({id:l,bsPrefix:n,bsSwitchPrefix:c,inline:s=!1,reverse:u=!1,disabled:f=!1,isValid:d=!1,isInvalid:y=!1,feedbackTooltip:v=!1,feedback:p,feedbackType:b,className:R,style:S,title:_="",type:O="checkbox",label:H,children:U,as:M="input",...q},Y)=>{n=Qe(n,"form-check"),c=Qe(c,"form-switch");const{controlId:J}=g.useContext(da),k=g.useMemo(()=>({controlId:l||J}),[J,l]),N=!U&&H!=null&&H!==!1||_b(U,qu),W=h.jsx(nf,{...q,type:O==="switch"?"checkbox":O,ref:Y,isValid:d,isInvalid:y,disabled:f,as:M});return h.jsx(da.Provider,{value:k,children:h.jsx("div",{style:S,className:Ae(R,N&&n,s&&`${n}-inline`,u&&`${n}-reverse`,O==="switch"&&c),children:U||h.jsxs(h.Fragment,{children:[W,N&&h.jsx(qu,{title:_,children:H}),p&&h.jsx(Fu,{type:b,tooltip:v,children:p})]})})})});Ep.displayName="FormCheck";const Vu=Object.assign(Ep,{Input:nf,Label:qu}),bp=g.forwardRef(({bsPrefix:l,type:n,size:c,htmlSize:s,id:u,className:f,isValid:d=!1,isInvalid:y=!1,plaintext:v,readOnly:p,as:b="input",...R},S)=>{const{controlId:_}=g.useContext(da);return l=Qe(l,"form-control"),h.jsx(b,{...R,type:n,size:s,ref:S,readOnly:p,id:u||_,className:Ae(f,v?`${l}-plaintext`:l,c&&`${l}-${c}`,n==="color"&&`${l}-color`,d&&"is-valid",y&&"is-invalid")})});bp.displayName="FormControl";const wb=Object.assign(bp,{Feedback:Fu}),Sp=g.forwardRef(({className:l,bsPrefix:n,as:c="div",...s},u)=>(n=Qe(n,"form-floating"),h.jsx(c,{ref:u,className:Ae(l,n),...s})));Sp.displayName="FormFloating";const af=g.forwardRef(({controlId:l,as:n="div",...c},s)=>{const u=g.useMemo(()=>({controlId:l}),[l]);return h.jsx(da.Provider,{value:u,children:h.jsx(n,{...c,ref:s})})});af.displayName="FormGroup";const xp=g.forwardRef(({as:l="label",bsPrefix:n,column:c=!1,visuallyHidden:s=!1,className:u,htmlFor:f,...d},y)=>{const{controlId:v}=g.useContext(da);n=Qe(n,"form-label");let p="col-form-label";typeof c=="string"&&(p=`${p} ${p}-${c}`);const b=Ae(u,n,s&&"visually-hidden",c&&p);return f=f||v,c?h.jsx(ln,{ref:y,as:"label",className:b,htmlFor:f,...d}):h.jsx(l,{ref:y,className:b,htmlFor:f,...d})});xp.displayName="FormLabel";const _p=g.forwardRef(({bsPrefix:l,className:n,id:c,...s},u)=>{const{controlId:f}=g.useContext(da);return l=Qe(l,"form-range"),h.jsx("input",{...s,type:"range",ref:u,className:Ae(n,l),id:c||f})});_p.displayName="FormRange";const Rp=g.forwardRef(({bsPrefix:l,size:n,htmlSize:c,className:s,isValid:u=!1,isInvalid:f=!1,id:d,...y},v)=>{const{controlId:p}=g.useContext(da);return l=Qe(l,"form-select"),h.jsx("select",{...y,size:c,ref:v,className:Ae(s,l,n&&`${l}-${n}`,u&&"is-valid",f&&"is-invalid"),id:d||p})});Rp.displayName="FormSelect";const Tp=g.forwardRef(({bsPrefix:l,className:n,as:c="small",muted:s,...u},f)=>(l=Qe(l,"form-text"),h.jsx(c,{...u,ref:f,className:Ae(n,l,s&&"text-muted")})));Tp.displayName="FormText";const Np=g.forwardRef((l,n)=>h.jsx(Vu,{...l,ref:n,type:"switch"}));Np.displayName="Switch";const Ab=Object.assign(Np,{Input:Vu.Input,Label:Vu.Label}),Cp=g.forwardRef(({bsPrefix:l,className:n,children:c,controlId:s,label:u,...f},d)=>(l=Qe(l,"form-floating"),h.jsxs(af,{ref:d,className:Ae(n,l),controlId:s,...f,children:[c,h.jsx("label",{htmlFor:s,children:u})]})));Cp.displayName="FloatingLabel";const Mb={_ref:fa.any,validated:fa.bool,as:fa.elementType},lf=g.forwardRef(({className:l,validated:n,as:c="form",...s},u)=>h.jsx(c,{...s,ref:u,className:Ae(l,n&&"was-validated")}));lf.displayName="Form";lf.propTypes=Mb;const Du=Object.assign(lf,{Group:af,Control:wb,Floating:Sp,Check:Vu,Switch:Ab,Label:xp,Text:Tp,Range:_p,Select:Rp,FloatingLabel:Cp}),xy=l=>!l||typeof l=="function"?l:n=>{l.current=n};function zb(l,n){const c=xy(l),s=xy(n);return u=>{c&&c(u),s&&s(u)}}function rf(l,n){return g.useMemo(()=>zb(l,n),[l,n])}var wu;function _y(l){if((!wu&&wu!==0||l)&&ri){var n=document.createElement("div");n.style.position="absolute",n.style.top="-9999px",n.style.width="50px",n.style.height="50px",n.style.overflow="scroll",document.body.appendChild(n),wu=n.offsetWidth-n.clientWidth,document.body.removeChild(n)}return wu}function Lb(){return g.useState(null)}function xo(l){l===void 0&&(l=Ku());try{var n=l.activeElement;return!n||!n.nodeName?null:n}catch{return l.body}}function Ub(l){const n=g.useRef(l);return n.current=l,n}function Hb(l){const n=Ub(l);g.useEffect(()=>()=>n.current(),[])}function Bb(l=document){const n=l.defaultView;return Math.abs(n.innerWidth-l.documentElement.clientWidth)}const Ry=Ob("modal-open");class uf{constructor({ownerDocument:n,handleContainerOverflow:c=!0,isRTL:s=!1}={}){this.handleContainerOverflow=c,this.isRTL=s,this.modals=[],this.ownerDocument=n}getScrollbarWidth(){return Bb(this.ownerDocument)}getElement(){return(this.ownerDocument||document).body}setModalAttributes(n){}removeModalAttributes(n){}setContainerStyle(n){const c={overflow:"hidden"},s=this.isRTL?"paddingLeft":"paddingRight",u=this.getElement();n.style={overflow:u.style.overflow,[s]:u.style[s]},n.scrollBarWidth&&(c[s]=`${parseInt(gl(u,s)||"0",10)+n.scrollBarWidth}px`),u.setAttribute(Ry,""),gl(u,c)}reset(){[...this.modals].forEach(n=>this.remove(n))}removeContainerStyle(n){const c=this.getElement();c.removeAttribute(Ry),Object.assign(c.style,n.style)}add(n){let c=this.modals.indexOf(n);return c!==-1||(c=this.modals.length,this.modals.push(n),this.setModalAttributes(n),c!==0)||(this.state={scrollBarWidth:this.getScrollbarWidth(),style:{}},this.handleContainerOverflow&&this.setContainerStyle(this.state)),c}remove(n){const c=this.modals.indexOf(n);c!==-1&&(this.modals.splice(c,1),!this.modals.length&&this.handleContainerOverflow&&this.removeContainerStyle(this.state),this.removeModalAttributes(n))}isTopModal(n){return!!this.modals.length&&this.modals[this.modals.length-1]===n}}const _o=(l,n)=>ri?l==null?(n||Ku()).body:(typeof l=="function"&&(l=l()),l&&"current"in l&&(l=l.current),l&&("nodeType"in l||l.getBoundingClientRect)?l:null):null;function qb(l,n){const c=tf(),[s,u]=g.useState(()=>_o(l,c==null?void 0:c.document));if(!s){const f=_o(l);f&&u(f)}return g.useEffect(()=>{},[n,s]),g.useEffect(()=>{const f=_o(l);f!==s&&u(f)},[l,s]),s}function Vb({children:l,in:n,onExited:c,mountOnEnter:s,unmountOnExit:u}){const f=g.useRef(null),d=g.useRef(n),y=pl(c);g.useEffect(()=>{n?d.current=!0:y(f.current)},[n,y]);const v=rf(f,$u(l)),p=g.cloneElement(l,{ref:v});return n?p:u||!d.current&&s?null:p}const Yb=["onEnter","onEntering","onEntered","onExit","onExiting","onExited","addEndListener","children"];function Gb(l,n){if(l==null)return{};var c={};for(var s in l)if({}.hasOwnProperty.call(l,s)){if(n.indexOf(s)>=0)continue;c[s]=l[s]}return c}function kb(l){let{onEnter:n,onEntering:c,onEntered:s,onExit:u,onExiting:f,onExited:d,addEndListener:y,children:v}=l,p=Gb(l,Yb);const b=g.useRef(null),R=rf(b,$u(v)),S=J=>k=>{J&&b.current&&J(b.current,k)},_=g.useCallback(S(n),[n]),O=g.useCallback(S(c),[c]),H=g.useCallback(S(s),[s]),U=g.useCallback(S(u),[u]),M=g.useCallback(S(f),[f]),q=g.useCallback(S(d),[d]),Y=g.useCallback(S(y),[y]);return Object.assign({},p,{nodeRef:b},n&&{onEnter:_},c&&{onEntering:O},s&&{onEntered:H},u&&{onExit:U},f&&{onExiting:M},d&&{onExited:q},y&&{addEndListener:Y},{children:typeof v=="function"?(J,k)=>v(J,Object.assign({},k,{ref:R})):g.cloneElement(v,{ref:R})})}const Xb=["component"];function Qb(l,n){if(l==null)return{};var c={};for(var s in l)if({}.hasOwnProperty.call(l,s)){if(n.indexOf(s)>=0)continue;c[s]=l[s]}return c}const Zb=g.forwardRef((l,n)=>{let{component:c}=l,s=Qb(l,Xb);const u=kb(s);return h.jsx(c,Object.assign({ref:n},u))});function Kb({in:l,onTransition:n}){const c=g.useRef(null),s=g.useRef(!0),u=pl(n);return Ey(()=>{if(!c.current)return;let f=!1;return u({in:l,element:c.current,initial:s.current,isStale:()=>f}),()=>{f=!0}},[l,u]),Ey(()=>(s.current=!1,()=>{s.current=!0}),[]),c}function $b({children:l,in:n,onExited:c,onEntered:s,transition:u}){const[f,d]=g.useState(!n);n&&f&&d(!1);const y=Kb({in:!!n,onTransition:p=>{const b=()=>{p.isStale()||(p.in?s==null||s(p.element,p.initial):(d(!0),c==null||c(p.element)))};Promise.resolve(u(p)).then(b,R=>{throw p.in||d(!0),R})}}),v=rf(y,$u(l));return f&&!n?null:g.cloneElement(l,{ref:v})}function Ty(l,n,c){return l?h.jsx(Zb,Object.assign({},c,{component:l})):n?h.jsx($b,Object.assign({},c,{transition:n})):h.jsx(Vb,Object.assign({},c))}const Fb=["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 Jb(l,n){if(l==null)return{};var c={};for(var s in l)if({}.hasOwnProperty.call(l,s)){if(n.indexOf(s)>=0)continue;c[s]=l[s]}return c}let Ro;function Pb(l){return Ro||(Ro=new uf({ownerDocument:l==null?void 0:l.document})),Ro}function Wb(l){const n=tf(),c=l||Pb(n),s=g.useRef({dialog:null,backdrop:null});return Object.assign(s.current,{add:()=>c.add(s.current),remove:()=>c.remove(s.current),isTopModal:()=>c.isTopModal(s.current),setDialogRef:g.useCallback(u=>{s.current.dialog=u},[]),setBackdropRef:g.useCallback(u=>{s.current.backdrop=u},[])})}const jp=g.forwardRef((l,n)=>{let{show:c=!1,role:s="dialog",className:u,style:f,children:d,backdrop:y=!0,keyboard:v=!0,onBackdropClick:p,onEscapeKeyDown:b,transition:R,runTransition:S,backdropTransition:_,runBackdropTransition:O,autoFocus:H=!0,enforceFocus:U=!0,restoreFocus:M=!0,restoreFocusOptions:q,renderDialog:Y,renderBackdrop:J=De=>h.jsx("div",Object.assign({},De)),manager:k,container:N,onShow:W,onHide:ie=()=>{},onExit:X,onExited:I,onExiting:de,onEnter:Ne,onEntering:Ye,onEntered:Be}=l,ze=Jb(l,Fb);const K=tf(),ce=qb(N),ne=Wb(k),Re=sb(),T=ob(c),[Q,le]=g.useState(!c),te=g.useRef(null);g.useImperativeHandle(n,()=>ne,[ne]),ri&&!T&&c&&(te.current=xo(K==null?void 0:K.document)),c&&Q&&le(!1);const P=pl(()=>{if(ne.add(),Ee.current=Bu(document,"keydown",Ce),Le.current=Bu(document,"focus",()=>setTimeout(ye),!0),W&&W(),H){var De,Rt;const St=xo((De=(Rt=ne.dialog)==null?void 0:Rt.ownerDocument)!=null?De:K==null?void 0:K.document);ne.dialog&&St&&!by(ne.dialog,St)&&(te.current=St,ne.dialog.focus())}}),ge=pl(()=>{if(ne.remove(),Ee.current==null||Ee.current(),Le.current==null||Le.current(),M){var De;(De=te.current)==null||De.focus==null||De.focus(q),te.current=null}});g.useEffect(()=>{!c||!ce||P()},[c,ce,P]),g.useEffect(()=>{Q&&ge()},[Q,ge]),Hb(()=>{ge()});const ye=pl(()=>{if(!U||!Re()||!ne.isTopModal())return;const De=xo(K==null?void 0:K.document);ne.dialog&&De&&!by(ne.dialog,De)&&ne.dialog.focus()}),Je=pl(De=>{De.target===De.currentTarget&&(p==null||p(De),y===!0&&ie())}),Ce=pl(De=>{v&&PE(De)&&ne.isTopModal()&&(b==null||b(De),De.defaultPrevented||ie())}),Le=g.useRef(),Ee=g.useRef(),Ze=(...De)=>{le(!0),I==null||I(...De)};if(!ce)return null;const vt=Object.assign({role:s,ref:ne.setDialogRef,"aria-modal":s==="dialog"?!0:void 0},ze,{style:f,className:u,tabIndex:-1});let it=Y?Y(vt):h.jsx("div",Object.assign({},vt,{children:g.cloneElement(d,{role:"document"})}));it=Ty(R,S,{unmountOnExit:!0,mountOnEnter:!0,appear:!0,in:!!c,onExit:X,onExiting:de,onExited:Ze,onEnter:Ne,onEntering:Ye,onEntered:Be,children:it});let lt=null;return y&&(lt=J({ref:ne.setBackdropRef,onClick:Je}),lt=Ty(_,O,{in:!!c,appear:!0,mountOnEnter:!0,unmountOnExit:!0,children:lt})),h.jsx(h.Fragment,{children:ii.createPortal(h.jsxs(h.Fragment,{children:[lt,it]}),ce)})});jp.displayName="Modal";const Ib=Object.assign(jp,{Manager:uf});function eS(l,n){return l.classList?l.classList.contains(n):(" "+(l.className.baseVal||l.className)+" ").indexOf(" "+n+" ")!==-1}function tS(l,n){l.classList?l.classList.add(n):eS(l,n)||(typeof l.className=="string"?l.className=l.className+" "+n:l.setAttribute("class",(l.className&&l.className.baseVal||"")+" "+n))}function Ny(l,n){return l.replace(new RegExp("(^|\\s)"+n+"(?:\\s|$)","g"),"$1").replace(/\s+/g," ").replace(/^\s*|\s*$/g,"")}function nS(l,n){l.classList?l.classList.remove(n):typeof l.className=="string"?l.className=Ny(l.className,n):l.setAttribute("class",Ny(l.className&&l.className.baseVal||"",n))}const ni={FIXED_CONTENT:".fixed-top, .fixed-bottom, .is-fixed, .sticky-top",STICKY_CONTENT:".sticky-top",NAVBAR_TOGGLER:".navbar-toggler"};class aS extends uf{adjustAndStore(n,c,s){const u=c.style[n];c.dataset[n]=u,gl(c,{[n]:`${parseFloat(gl(c,n))+s}px`})}restore(n,c){const s=c.dataset[n];s!==void 0&&(delete c.dataset[n],gl(c,{[n]:s}))}setContainerStyle(n){super.setContainerStyle(n);const c=this.getElement();if(tS(c,"modal-open"),!n.scrollBarWidth)return;const s=this.isRTL?"paddingLeft":"paddingRight",u=this.isRTL?"marginLeft":"marginRight";ti(c,ni.FIXED_CONTENT).forEach(f=>this.adjustAndStore(s,f,n.scrollBarWidth)),ti(c,ni.STICKY_CONTENT).forEach(f=>this.adjustAndStore(u,f,-n.scrollBarWidth)),ti(c,ni.NAVBAR_TOGGLER).forEach(f=>this.adjustAndStore(u,f,n.scrollBarWidth))}removeContainerStyle(n){super.removeContainerStyle(n);const c=this.getElement();nS(c,"modal-open");const s=this.isRTL?"paddingLeft":"paddingRight",u=this.isRTL?"marginLeft":"marginRight";ti(c,ni.FIXED_CONTENT).forEach(f=>this.restore(s,f)),ti(c,ni.STICKY_CONTENT).forEach(f=>this.restore(u,f)),ti(c,ni.NAVBAR_TOGGLER).forEach(f=>this.restore(u,f))}}let To;function lS(l){return To||(To=new aS(l)),To}const Op=g.forwardRef(({className:l,bsPrefix:n,as:c="div",...s},u)=>(n=Qe(n,"modal-body"),h.jsx(c,{ref:u,className:Ae(l,n),...s})));Op.displayName="ModalBody";const Dp=g.createContext({onHide(){}}),cf=g.forwardRef(({bsPrefix:l,className:n,contentClassName:c,centered:s,size:u,fullscreen:f,children:d,scrollable:y,...v},p)=>{l=Qe(l,"modal");const b=`${l}-dialog`,R=typeof f=="string"?`${l}-fullscreen-${f}`:`${l}-fullscreen`;return h.jsx("div",{...v,ref:p,className:Ae(b,n,u&&`${l}-${u}`,s&&`${b}-centered`,y&&`${b}-scrollable`,f&&R),children:h.jsx("div",{className:Ae(`${l}-content`,c),children:d})})});cf.displayName="ModalDialog";const wp=g.forwardRef(({className:l,bsPrefix:n,as:c="div",...s},u)=>(n=Qe(n,"modal-footer"),h.jsx(c,{ref:u,className:Ae(l,n),...s})));wp.displayName="ModalFooter";const iS=g.forwardRef(({closeLabel:l="Close",closeVariant:n,closeButton:c=!1,onHide:s,children:u,...f},d)=>{const y=g.useContext(Dp),v=Ho(()=>{y==null||y.onHide(),s==null||s()});return h.jsxs("div",{ref:d,...f,children:[u,c&&h.jsx(Io,{"aria-label":l,variant:n,onClick:v})]})}),Ap=g.forwardRef(({bsPrefix:l,className:n,closeLabel:c="Close",closeButton:s=!1,...u},f)=>(l=Qe(l,"modal-header"),h.jsx(iS,{ref:f,...u,className:Ae(n,l),closeLabel:c,closeButton:s})));Ap.displayName="ModalHeader";const rS=Po("h4"),Mp=g.forwardRef(({className:l,bsPrefix:n,as:c=rS,...s},u)=>(n=Qe(n,"modal-title"),h.jsx(c,{ref:u,className:Ae(l,n),...s})));Mp.displayName="ModalTitle";function uS(l){return h.jsx(Wo,{...l,timeout:null})}function cS(l){return h.jsx(Wo,{...l,timeout:null})}const zp=g.forwardRef(({bsPrefix:l,className:n,style:c,dialogClassName:s,contentClassName:u,children:f,dialogAs:d=cf,"data-bs-theme":y,"aria-labelledby":v,"aria-describedby":p,"aria-label":b,show:R=!1,animation:S=!0,backdrop:_=!0,keyboard:O=!0,onEscapeKeyDown:H,onShow:U,onHide:M,container:q,autoFocus:Y=!0,enforceFocus:J=!0,restoreFocus:k=!0,restoreFocusOptions:N,onEntered:W,onExit:ie,onExiting:X,onEnter:I,onEntering:de,onExited:Ne,backdropClassName:Ye,manager:Be,...ze},K)=>{const[ce,ne]=g.useState({}),[Re,T]=g.useState(!1),Q=g.useRef(!1),le=g.useRef(!1),te=g.useRef(null),[P,ge]=Lb(),ye=rp(K,ge),Je=Ho(M),Ce=BE();l=Qe(l,"modal");const Le=g.useMemo(()=>({onHide:Je}),[Je]);function Ee(){return Be||lS({isRTL:Ce})}function Ze(_e){if(!ri)return;const Ie=Ee().getScrollbarWidth()>0,Gt=_e.scrollHeight>Ku(_e).documentElement.clientHeight;ne({paddingRight:Ie&&!Gt?_y():void 0,paddingLeft:!Ie&&Gt?_y():void 0})}const vt=Ho(()=>{P&&Ze(P.dialog)});xb(()=>{Uo(window,"resize",vt),te.current==null||te.current()});const it=()=>{Q.current=!0},lt=_e=>{Q.current&&P&&_e.target===P.dialog&&(le.current=!0),Q.current=!1},De=()=>{T(!0),te.current=ip(P.dialog,()=>{T(!1)})},Rt=_e=>{_e.target===_e.currentTarget&&De()},St=_e=>{if(_==="static"){Rt(_e);return}if(le.current||_e.target!==_e.currentTarget){le.current=!1;return}M==null||M()},Pt=_e=>{O?H==null||H(_e):(_e.preventDefault(),_==="static"&&De())},Zt=(_e,Ie)=>{_e&&Ze(_e),I==null||I(_e,Ie)},un=_e=>{te.current==null||te.current(),ie==null||ie(_e)},cn=(_e,Ie)=>{de==null||de(_e,Ie),lp(window,"resize",vt)},Ut=_e=>{_e&&(_e.style.display=""),Ne==null||Ne(_e),Uo(window,"resize",vt)},Ht=g.useCallback(_e=>h.jsx("div",{..._e,className:Ae(`${l}-backdrop`,Ye,!S&&"show")}),[S,Ye,l]),mt={...c,...ce};mt.display="block";const Kt=_e=>h.jsx("div",{role:"dialog",..._e,style:mt,className:Ae(n,l,Re&&`${l}-static`,!S&&"show"),onClick:_?St:void 0,onMouseUp:lt,"data-bs-theme":y,"aria-label":b,"aria-labelledby":v,"aria-describedby":p,children:h.jsx(d,{...ze,onMouseDown:it,className:s,contentClassName:u,children:f})});return h.jsx(Dp.Provider,{value:Le,children:h.jsx(Ib,{show:R,ref:ye,backdrop:_,container:q,keyboard:!0,autoFocus:Y,enforceFocus:J,restoreFocus:k,restoreFocusOptions:N,onEscapeKeyDown:Pt,onShow:U,onHide:M,onEnter:Zt,onEntering:cn,onEntered:W,onExit:un,onExiting:X,onExited:Ut,manager:Ee(),transition:S?uS:void 0,backdropTransition:S?cS:void 0,renderBackdrop:Ht,renderDialog:Kt})})});zp.displayName="Modal";const ir=Object.assign(zp,{Body:Op,Header:Ap,Title:Mp,Footer:wp,Dialog:cf,TRANSITION_DURATION:300,BACKDROP_TRANSITION_DURATION:150}),Rn=g.forwardRef(({bsPrefix:l,className:n,as:c="div",...s},u)=>{const f=Qe(l,"row"),d=tp(),y=np(),v=`${f}-cols`,p=[];return d.forEach(b=>{const R=s[b];delete s[b];let S;R!=null&&typeof R=="object"?{cols:S}=R:S=R;const _=b!==y?`-${b}`:"";S!=null&&p.push(`${v}${_}-${S}`)}),h.jsx(c,{ref:u,...s,className:Ae(n,f,...p)})});Rn.displayName="Row";const sS="/static/DY3vaYXT.svg";function oS(){const l=Ke.c(6),{user:n}=g.useContext(Fo),{pathname:c}=Xn();let s;l[0]===Symbol.for("react.memo_cache_sentinel")?(s=h.jsx(ln,{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:sS,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(Tn,{className:"nav-link-entry",to:"/",children:"COMPENDIUM"})})]})]})})}),l[0]=s):s=l[0];let u;l[1]!==c||l[2]!==n.permissions.admin?(u=n.permissions.admin&&!c.includes("survey")&&h.jsx("div",{className:"nav-link",style:{float:"right"},children:h.jsx(Tn,{className:"nav-link-entry",to:"/survey",children:h.jsx("span",{children:"Go to Survey"})})}),l[1]=c,l[2]=n.permissions.admin,l[3]=u):u=l[3];let f;return l[4]!==u?(f=h.jsx("div",{className:"external-page-nav-bar",children:h.jsx(Ya,{children:h.jsxs(Rn,{children:[s,h.jsx(ln,{xs:2,children:u})]})})}),l[4]=u,l[5]=f):f=l[5],f}const fS="/static/A3T3A-a_.svg",dS="/static/DOOiIGTs.png";function hS(){const l=Ke.c(9);let n;l[0]===Symbol.for("react.memo_cache_sentinel")?(n=h.jsx("a",{href:"https://geant.org",children:h.jsx("img",{src:fS,className:"m-3",style:{maxWidth:"100px"},alt:"GÉANT Logo"})}),l[0]=n):n=l[0];let c;l[1]===Symbol.for("react.memo_cache_sentinel")?(c=h.jsxs(ln,{children:[n,h.jsx("img",{src:dS,className:"m-3",style:{maxWidth:"200px"},alt:"European Union Flag"})]}),l[1]=c):c=l[1];let s,u;l[2]===Symbol.for("react.memo_cache_sentinel")?(s=h.jsx("a",{className:"mx-3 footer-link",href:"https://geant.org/Disclaimer/",children:"Disclaimer"}),u=h.jsx("wbr",{}),l[2]=s,l[3]=u):(s=l[2],u=l[3]);let f,d;l[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"}),d=h.jsx("wbr",{}),l[4]=f,l[5]=d):(f=l[4],d=l[5]);let y,v;l[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",{}),l[6]=y,l[7]=v):(y=l[6],v=l[7]);let p;return l[8]===Symbol.for("react.memo_cache_sentinel")?(p=h.jsx("footer",{className:"page-footer pt-3",children:h.jsx(Ya,{children:h.jsxs(Rn,{children:[c,h.jsx(ln,{className:"mt-4 text-end",children:h.jsxs("span",{children:[s,u,"|",f,d,"|",y,v,"|",h.jsx("a",{className:"mx-3 footer-link",style:{cursor:"pointer"},onClick:mS,children:"Analytics Consent"})]})})]})})}),l[8]=p):p=l[8],p}function mS(){localStorage.removeItem("matomo_consent"),window.location.reload()}const Lp="/static/C4lsyu6A.svg",Up="/static/DhA-EmEc.svg";function Hp(){const l=Ke.c(16),n=g.useContext(ep);let c;l[0]!==n?(c=O=>n==null?void 0:n.trackPageView(O),l[0]=n,l[1]=c):c=l[1];const s=c;let u;l[2]!==n?(u=O=>n==null?void 0:n.trackEvent(O),l[2]=n,l[3]=u):u=l[3];const f=u;let d;l[4]!==n?(d=()=>n==null?void 0:n.trackEvents(),l[4]=n,l[5]=d):d=l[5];const y=d;let v;l[6]!==n?(v=O=>n==null?void 0:n.trackLink(O),l[6]=n,l[7]=v):v=l[7];const p=v,b=yS;let R;l[8]!==n?(R=(O,...H)=>{const U=H;n==null||n.pushInstruction(O,...U)},l[8]=n,l[9]=R):R=l[9];const S=R;let _;return l[10]!==S||l[11]!==f||l[12]!==y||l[13]!==p||l[14]!==s?(_={trackEvent:f,trackEvents:y,trackPageView:s,trackLink:p,enableLinkTracking:b,pushInstruction:S},l[10]=S,l[11]=f,l[12]=y,l[13]=p,l[14]=s,l[15]=_):_=l[15],_}function yS(){}function Bp(){const l=Ke.c(13),{trackPageView:n}=Hp();let c,s;l[0]!==n?(c=()=>{n({documentTitle:"GEANT Compendium Landing Page"})},s=[n],l[0]=n,l[1]=c,l[2]=s):(c=l[1],s=l[2]),g.useEffect(c,s);let u;l[3]===Symbol.for("react.memo_cache_sentinel")?(u=h.jsx("h1",{className:"geant-header",children:"THE GÉANT COMPENDIUM OF NRENS"}),l[3]=u):u=l[3];let f;l[4]===Symbol.for("react.memo_cache_sentinel")?(f=h.jsx(Rn,{children:h.jsxs("div",{className:"center-text",children:[u,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."})]})]})}),l[4]=f):f=l[4];let d;l[5]===Symbol.for("react.memo_cache_sentinel")?(d={backgroundColor:"white"},l[5]=d):d=l[5];let y;l[6]===Symbol.for("react.memo_cache_sentinel")?(y={width:"18rem"},l[6]=y):y=l[6];let v;l[7]===Symbol.for("react.memo_cache_sentinel")?(v=h.jsx(Yn.Img,{src:Lp}),l[7]=v):v=l[7];let p;l[8]===Symbol.for("react.memo_cache_sentinel")?(p=h.jsx(Yn.Title,{children:"Compendium Data"}),l[8]=p):p=l[8];let b;l[9]===Symbol.for("react.memo_cache_sentinel")?(b=h.jsx(ln,{align:"center",children:h.jsx(Yn,{border:"light",style:y,children:h.jsxs(Tn,{to:"/data",className:"link-text",children:[v,h.jsxs(Yn.Body,{children:[p,h.jsx(Yn.Text,{children:h.jsx("span",{children:"Statistical representation of the annual Compendium Survey data is available here"})})]})]})})}),l[9]=b):b=l[9];let R;l[10]===Symbol.for("react.memo_cache_sentinel")?(R={width:"18rem"},l[10]=R):R=l[10];let S;l[11]===Symbol.for("react.memo_cache_sentinel")?(S=h.jsx(Yn.Img,{src:Up}),l[11]=S):S=l[11];let _;return l[12]===Symbol.for("react.memo_cache_sentinel")?(_=h.jsxs(Ya,{className:"py-5 grey-container",children:[f,h.jsx(Rn,{children:h.jsx(ln,{children:h.jsx(Ya,{style:d,className:"rounded-border",children:h.jsxs(Rn,{className:"justify-content-md-center",children:[b,h.jsx(ln,{align:"center",children:h.jsx(Yn,{border:"light",style:R,children:h.jsxs("a",{href:"https://resources.geant.org/geant-compendia/",className:"link-text",target:"_blank",rel:"noreferrer",children:[S,h.jsxs(Yn.Body,{children:[h.jsx(Yn.Title,{children:"Compendium Reports"}),h.jsx(Yn.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"})]})]})})})]})})})})]}),l[12]=_):_=l[12],_}var qp={color:void 0,size:void 0,className:void 0,style:void 0,attr:void 0},Cy=Yt.createContext&&Yt.createContext(qp),pS=["attr","size","title"];function vS(l,n){if(l==null)return{};var c=gS(l,n),s,u;if(Object.getOwnPropertySymbols){var f=Object.getOwnPropertySymbols(l);for(u=0;u<f.length;u++)s=f[u],!(n.indexOf(s)>=0)&&Object.prototype.propertyIsEnumerable.call(l,s)&&(c[s]=l[s])}return c}function gS(l,n){if(l==null)return{};var c={};for(var s in l)if(Object.prototype.hasOwnProperty.call(l,s)){if(n.indexOf(s)>=0)continue;c[s]=l[s]}return c}function Yu(){return Yu=Object.assign?Object.assign.bind():function(l){for(var n=1;n<arguments.length;n++){var c=arguments[n];for(var s in c)Object.prototype.hasOwnProperty.call(c,s)&&(l[s]=c[s])}return l},Yu.apply(this,arguments)}function jy(l,n){var c=Object.keys(l);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(l);n&&(s=s.filter(function(u){return Object.getOwnPropertyDescriptor(l,u).enumerable})),c.push.apply(c,s)}return c}function Gu(l){for(var n=1;n<arguments.length;n++){var c=arguments[n]!=null?arguments[n]:{};n%2?jy(Object(c),!0).forEach(function(s){ES(l,s,c[s])}):Object.getOwnPropertyDescriptors?Object.defineProperties(l,Object.getOwnPropertyDescriptors(c)):jy(Object(c)).forEach(function(s){Object.defineProperty(l,s,Object.getOwnPropertyDescriptor(c,s))})}return l}function ES(l,n,c){return n=bS(n),n in l?Object.defineProperty(l,n,{value:c,enumerable:!0,configurable:!0,writable:!0}):l[n]=c,l}function bS(l){var n=SS(l,"string");return typeof n=="symbol"?n:n+""}function SS(l,n){if(typeof l!="object"||!l)return l;var c=l[Symbol.toPrimitive];if(c!==void 0){var s=c.call(l,n||"default");if(typeof s!="object")return s;throw new TypeError("@@toPrimitive must return a primitive value.")}return(n==="string"?String:Number)(l)}function Vp(l){return l&&l.map((n,c)=>Yt.createElement(n.tag,Gu({key:c},n.attr),Vp(n.child)))}function Yp(l){return n=>Yt.createElement(xS,Yu({attr:Gu({},l.attr)},n),Vp(l.child))}function xS(l){var n=c=>{var{attr:s,size:u,title:f}=l,d=vS(l,pS),y=u||c.size||"1em",v;return c.className&&(v=c.className),l.className&&(v=(v?v+" ":"")+l.className),Yt.createElement("svg",Yu({stroke:"currentColor",fill:"currentColor",strokeWidth:"0"},c.attr,s,d,{className:v,style:Gu(Gu({color:l.color||c.color},c.style),l.style),height:y,width:y,xmlns:"http://www.w3.org/2000/svg"}),f&&Yt.createElement("title",null,f),l.children)};return Cy!==void 0?Yt.createElement(Cy.Consumer,null,c=>n(c)):n(qp)}function _S(l){return Yp({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:[]}]})(l)}function RS(l){return Yp({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:[]}]})(l)}const rr=l=>{const n=Ke.c(23),{title:c,children:s,startCollapsed:u,theme:f}=l,d=f===void 0?"":f,[y,v]=g.useState(!!u);let p;n[0]===Symbol.for("react.memo_cache_sentinel")?(p={color:"white",paddingBottom:"3px",marginTop:"3px",marginLeft:"3px",scale:"1.3"},n[0]=p):p=n[0];let b=p;if(d){let k;n[1]===Symbol.for("react.memo_cache_sentinel")?(k={...b,color:"black",fontWeight:"bold"},n[1]=k):k=n[1],b=k}const R=`collapsible-box${d} p-0`;let S;n[2]!==c?(S=h.jsx(ln,{children:h.jsx("h1",{className:"bold-caps-16pt dark-teal pt-3 ps-3",children:c})}),n[2]=c,n[3]=S):S=n[3];const _=`toggle-btn${d} p-${d?3:2}`;let O;n[4]!==y?(O=()=>v(!y),n[4]=y,n[5]=O):O=n[5];let H;n[6]!==y||n[7]!==b?(H=y?h.jsx(RS,{style:b}):h.jsx(_S,{style:b}),n[6]=y,n[7]=b,n[8]=H):H=n[8];let U;n[9]!==_||n[10]!==O||n[11]!==H?(U=h.jsx(ln,{className:"flex-grow-0 flex-shrink-1",children:h.jsx("div",{className:_,onClick:O,children:H})}),n[9]=_,n[10]=O,n[11]=H,n[12]=U):U=n[12];let M;n[13]!==S||n[14]!==U?(M=h.jsxs(Rn,{children:[S,U]}),n[13]=S,n[14]=U,n[15]=M):M=n[15];const q=`collapsible-content${y?" collapsed":""}`;let Y;n[16]!==s||n[17]!==q?(Y=h.jsx("div",{className:q,children:s}),n[16]=s,n[17]=q,n[18]=Y):Y=n[18];let J;return n[19]!==Y||n[20]!==R||n[21]!==M?(J=h.jsxs("div",{className:R,children:[M,Y]}),n[19]=Y,n[20]=R,n[21]=M,n[22]=J):J=n[22],J};function TS(l){const n=Ke.c(8),{section:c}=l;let s;n[0]===Symbol.for("react.memo_cache_sentinel")?(s={display:"flex",alignSelf:"right",lineHeight:"1.5rem",marginTop:"0.5rem"},n[0]=s):s=n[0];let u,f;n[1]===Symbol.for("react.memo_cache_sentinel")?(u=h.jsx("br",{}),f={float:"right"},n[1]=u,n[2]=f):(u=n[1],f=n[2]);let d;n[3]!==c?(d=h.jsx("div",{style:s,children:h.jsxs("span",{children:["Compendium ",u,h.jsx("span",{style:f,children:c})]})}),n[3]=c,n[4]=d):d=n[4];let y;n[5]===Symbol.for("react.memo_cache_sentinel")?(y=h.jsx("img",{src:Up,style:{maxWidth:"4rem"},alt:"Compendium Data logo"}),n[5]=y):y=n[5];let v;return n[6]!==d?(v=h.jsxs("div",{className:"bold-caps-17pt section-container",children:[d,y]}),n[6]=d,n[7]=v):v=n[7],v}function NS(l){const n=Ke.c(14),{type:c}=l;let s="";c=="data"?s=" compendium-data-header":c=="reports"&&(s=" compendium-reports-header");let u;n[0]===Symbol.for("react.memo_cache_sentinel")?(u={marginTop:"0.5rem"},n[0]=u):u=n[0];const f=c==="data"?"/data":"/";let d;n[1]===Symbol.for("react.memo_cache_sentinel")?(d={textDecoration:"none",color:"white"},n[1]=d):d=n[1];const y=c==="data"?"Data":"Reports";let v;n[2]!==y?(v=h.jsxs("span",{children:["Compendium ",y]}),n[2]=y,n[3]=v):v=n[3];let p;n[4]!==f||n[5]!==v?(p=h.jsx(ln,{sm:8,children:h.jsx("h1",{className:"bold-caps-30pt",style:u,children:h.jsx(Tn,{to:f,style:d,children:v})})}),n[4]=f,n[5]=v,n[6]=p):p=n[6];let b;n[7]===Symbol.for("react.memo_cache_sentinel")?(b={color:"inherit"},n[7]=b):b=n[7];let R;n[8]===Symbol.for("react.memo_cache_sentinel")?(R=h.jsx(ln,{sm:4,children:h.jsx("a",{style:b,href:"https://resources.geant.org/geant-compendia/",target:"_blank",rel:"noreferrer",children:h.jsx(TS,{section:"Reports"})})}),n[8]=R):R=n[8];let S;n[9]!==p?(S=h.jsx(Ya,{children:h.jsxs(Rn,{children:[p,R]})}),n[9]=p,n[10]=S):S=n[10];let _;return n[11]!==s||n[12]!==S?(_=h.jsx("div",{className:s,children:S}),n[11]=s,n[12]=S,n[13]=_):_=n[13],_}function CS(l){const n=Ke.c(8),{children:c,type:s}=l;let u="";s=="data"?u=" compendium-data-banner":s=="reports"&&(u=" compendium-reports-banner");let f,d;n[0]===Symbol.for("react.memo_cache_sentinel")?(f=h.jsx("img",{src:Lp,style:{maxWidth:"7rem",marginBottom:"1rem"},alt:"Compendium Data logo"}),d={display:"flex",alignSelf:"right"},n[0]=f,n[1]=d):(f=n[0],d=n[1]);let y;n[2]===Symbol.for("react.memo_cache_sentinel")?(y={paddingTop:"1rem"},n[2]=y):y=n[2];let v;n[3]!==c?(v=h.jsx(Ya,{children:h.jsx(Rn,{children:h.jsx(Rn,{children:h.jsxs("div",{className:"section-container",children:[f,h.jsx("div",{style:d,children:h.jsx("div",{className:"center-text",style:y,children:c})})]})})})}),n[3]=c,n[4]=v):v=n[4];let p;return n[5]!==u||n[6]!==v?(p=h.jsx("div",{className:u,children:v}),n[5]=u,n[6]=v,n[7]=p):p=n[7],p}var li=(l=>(l.Organisation="ORGANISATION",l.Policy="STANDARDS AND POLICIES",l.ConnectedUsers="CONNECTED USERS",l.Network="NETWORK",l.Services="SERVICES",l))(li||{}),jS=(l=>(l.CSV="CSV",l.EXCEL="EXCEL",l))(jS||{}),OS=(l=>(l.PNG="png",l.JPEG="jpeg",l.SVG="svg",l))(OS||{});const V2={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"},Y2={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"},G2={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 DS(){const l=Ke.c(7),{preview:n,setPreview:c}=g.useContext(Iy),{user:s}=g.useContext(Fo),[u]=lE();let f;l[0]!==u?(f=u.get("preview"),l[0]=u,l[1]=f):f=l[1];const d=f;let y,v;return l[2]!==d||l[3]!==c||l[4]!==s?(y=()=>{d!==null&&(s.permissions.admin||s.role=="observer")&&c(!0)},v=[d,c,s],l[2]=d,l[3]=c,l[4]=s,l[5]=y,l[6]=v):(y=l[5],v=l[6]),g.useEffect(y,v),n}function yr(l){const n=Ke.c(9),{to:c,children:s}=l,u=window.location.pathname===c,f=g.useRef(null);let d,y;n[0]!==u?(d=()=>{u&&f.current&&f.current.scrollIntoView({behavior:"smooth",block:"center"})},y=[u],n[0]=u,n[1]=d,n[2]=y):(d=n[1],y=n[2]),g.useEffect(d,y);let v;n[3]!==s||n[4]!==u?(v=u?h.jsx("b",{children:s}):s,n[3]=s,n[4]=u,n[5]=v):v=n[5];let p;return n[6]!==v||n[7]!==c?(p=h.jsx(Rn,{children:h.jsx(Tn,{to:c,className:"link-text-underline",ref:f,children:v})}),n[6]=v,n[7]=c,n[8]=p):p=n[8],p}const se={budget:"Budget of NRENs per Year",funding:"Income Source of NRENs",charging:"Charging Mechanism of NRENs","employee-count":"Number of NREN Employees",roles:"Roles of NREN employees (Technical v. Non-Technical)",employment:"Types of Employment within NRENs",suborganisations:"NREN Sub-Organisations",parentorganisation:"NREN Parent Organisations","ec-projects":"NREN Involvement in European Commission Projects",policy:"NREN Policies",audits:"External and Internal Audits of Information Security Management Systems","business-continuity":"NREN Business Continuity Planning","central-procurement":"Value of Software Procured for Customers by NRENs","crisis-management":"Crisis Management Procedures","crisis-exercise":"Crisis Exercises - NREN Operation and Participation",eosc_listings:"NREN Services Listed on the EOSC Portal","security-control":"Security Controls Used by NRENs","services-offered":"Services Offered by NRENs by Types of Users","corporate-strategy":"NREN Corporate Strategies","service-level-targets":"NRENs Offering Service Level Targets","service-management-framework":"NRENs Operating a Formal Service Management Framework","institutions-urls":"Webpages Listing Institutions and Organisations Connected to NREN Networks","connected-proportion":"Proportion of Different Categories of Institutions Served by NRENs","connectivity-level":"Level of IP Connectivity by Institution Type","connection-carrier":"Methods of Carrying IP Traffic to Users","connectivity-load":"Connectivity Load","connectivity-growth":"Connectivity Growth","remote-campuses":"NREN Connectivity to Remote Campuses in Other Countries","commercial-charging-level":"Commercial Charging Level","commercial-connectivity":"Commercial Connectivity","traffic-volume":"NREN Traffic - NREN Customers & External Networks","iru-duration":"Average Duration of IRU leases of Fibre by NRENs","fibre-light":"Approaches to lighting NREN fibre networks","dark-fibre-lease":"Kilometres of Leased Dark Fibre (National)","dark-fibre-lease-international":"Kilometres of Leased Dark Fibre (International)","dark-fibre-installed":"Kilometres of Installed Dark Fibre","network-map":"NREN Network Maps","monitoring-tools":"Tools for Monitoring or Troubleshooting the Network - Offered to Client Institutions","pert-team":"NRENs with Performance Enhancement Response Teams","passive-monitoring":"Methods for Passively Monitoring International Traffic","traffic-stats":"Traffic Statistics","weather-map":"NREN Online Network Weather Maps","certificate-provider":"Certification Services used by NRENs","siem-vendors":"Vendors of SIEM/SOC systems used by NRENs","alien-wave":"NREN Use of 3rd Party Alienwave/Lightpath Services","alien-wave-internal":"Internal NREN Use of Alien Waves","capacity-largest-link":"Capacity of the Largest Link in an NREN Network","external-connections":"NREN External IP Connections","capacity-core-ip":"NREN Core IP Capacity","non-rne-peers":"Number of Non-R&E Networks NRENs Peer With","traffic-ratio":"Types of traffic in NREN networks (Commodity v. Research & Education)","ops-automation":"NREN Automation of Operational Processes","network-automation":"Network Tasks for which NRENs Use Automation",nfv:"Kinds of Network Function Virtualisation used by NRENs","network-services":"NREN Network services matrix","isp-support-services":"NREN ISP support services matrix","security-services":"NREN Security services matrix","identity-services":"NREN Identity services matrix","collaboration-services":"NREN Collaboration services matrix","multimedia-services":"NREN Multimedia services matrix","storage-and-hosting-services":"NREN Storage and hosting services matrix","professional-services":"NREN Professional services matrix"};function wS(l){const n=Ke.c(52),{sidebar:c}=l,s=c===void 0?!1:c,u=s?yr:Tn,f=s?"":"link-text-underline";let d;n[0]!==s?(d=s&&h.jsx("h5",{children:"Organisation"}),n[0]=s,n[1]=d):d=n[1];let y;n[2]===Symbol.for("react.memo_cache_sentinel")?(y=h.jsx("h6",{className:"section-title",children:"Budget, Income and Billing"}),n[2]=y):y=n[2];let v;n[3]===Symbol.for("react.memo_cache_sentinel")?(v=h.jsx("span",{children:se.budget}),n[3]=v):v=n[3];let p;n[4]!==u||n[5]!==f?(p=h.jsx(u,{to:"/budget",className:f,children:v}),n[4]=u,n[5]=f,n[6]=p):p=n[6];let b;n[7]===Symbol.for("react.memo_cache_sentinel")?(b=h.jsx("span",{children:se.funding}),n[7]=b):b=n[7];let R;n[8]!==u||n[9]!==f?(R=h.jsx(u,{to:"/funding",className:f,children:b}),n[8]=u,n[9]=f,n[10]=R):R=n[10];let S;n[11]===Symbol.for("react.memo_cache_sentinel")?(S=h.jsx("span",{children:se.charging}),n[11]=S):S=n[11];let _;n[12]!==u||n[13]!==f?(_=h.jsx(u,{to:"/charging",className:f,children:S}),n[12]=u,n[13]=f,n[14]=_):_=n[14];let O,H;n[15]===Symbol.for("react.memo_cache_sentinel")?(O=h.jsx("hr",{className:"fake-divider"}),H=h.jsx("h6",{className:"section-title",children:"Staff and Projects"}),n[15]=O,n[16]=H):(O=n[15],H=n[16]);let U;n[17]===Symbol.for("react.memo_cache_sentinel")?(U=h.jsx("span",{children:se["employee-count"]}),n[17]=U):U=n[17];let M;n[18]!==u||n[19]!==f?(M=h.jsx(u,{to:"/employee-count",className:f,children:U}),n[18]=u,n[19]=f,n[20]=M):M=n[20];let q;n[21]===Symbol.for("react.memo_cache_sentinel")?(q=h.jsx("span",{children:se.employment}),n[21]=q):q=n[21];let Y;n[22]!==u||n[23]!==f?(Y=h.jsx(u,{to:"/employment",className:f,children:q}),n[22]=u,n[23]=f,n[24]=Y):Y=n[24];let J;n[25]===Symbol.for("react.memo_cache_sentinel")?(J=h.jsx("span",{children:se.roles}),n[25]=J):J=n[25];let k;n[26]!==u||n[27]!==f?(k=h.jsx(u,{to:"/roles",className:f,children:J}),n[26]=u,n[27]=f,n[28]=k):k=n[28];let N;n[29]===Symbol.for("react.memo_cache_sentinel")?(N=h.jsx("span",{children:se.parentorganisation}),n[29]=N):N=n[29];let W;n[30]!==u||n[31]!==f?(W=h.jsx(u,{to:"/parentorganisation",className:f,children:N}),n[30]=u,n[31]=f,n[32]=W):W=n[32];let ie;n[33]===Symbol.for("react.memo_cache_sentinel")?(ie=h.jsx("span",{children:se.suborganisations}),n[33]=ie):ie=n[33];let X;n[34]!==u||n[35]!==f?(X=h.jsx(u,{to:"/suborganisations",className:f,children:ie}),n[34]=u,n[35]=f,n[36]=X):X=n[36];let I;n[37]===Symbol.for("react.memo_cache_sentinel")?(I=h.jsx("span",{children:se["ec-projects"]}),n[37]=I):I=n[37];let de;n[38]!==u||n[39]!==f?(de=h.jsx(u,{to:"/ec-projects",className:f,children:I}),n[38]=u,n[39]=f,n[40]=de):de=n[40];let Ne;return n[41]!==M||n[42]!==Y||n[43]!==k||n[44]!==W||n[45]!==d||n[46]!==X||n[47]!==de||n[48]!==p||n[49]!==R||n[50]!==_?(Ne=h.jsxs(h.Fragment,{children:[d,y,p,R,_,O,H,M,Y,k,W,X,de]}),n[41]=M,n[42]=Y,n[43]=k,n[44]=W,n[45]=d,n[46]=X,n[47]=de,n[48]=p,n[49]=R,n[50]=_,n[51]=Ne):Ne=n[51],Ne}function AS(l){const n=Ke.c(61),{sidebar:c}=l,s=c===void 0?!1:c,u=s?yr:Tn,f=s?"":"link-text-underline";let d;n[0]!==s?(d=s&&h.jsx("h5",{children:"Standards And Policies"}),n[0]=s,n[1]=d):d=n[1];let y;n[2]===Symbol.for("react.memo_cache_sentinel")?(y=h.jsx("h6",{className:"section-title",children:"Policy & Portfolio"}),n[2]=y):y=n[2];let v;n[3]===Symbol.for("react.memo_cache_sentinel")?(v=h.jsx("span",{children:se["corporate-strategy"]}),n[3]=v):v=n[3];let p;n[4]!==u||n[5]!==f?(p=h.jsx(u,{to:"/corporate-strategy",className:f,children:v}),n[4]=u,n[5]=f,n[6]=p):p=n[6];let b;n[7]===Symbol.for("react.memo_cache_sentinel")?(b=h.jsx("span",{children:se.policy}),n[7]=b):b=n[7];let R;n[8]!==u||n[9]!==f?(R=h.jsx(u,{to:"/policy",className:f,children:b}),n[8]=u,n[9]=f,n[10]=R):R=n[10];let S;n[11]===Symbol.for("react.memo_cache_sentinel")?(S=h.jsx("span",{children:se["central-procurement"]}),n[11]=S):S=n[11];let _;n[12]!==u||n[13]!==f?(_=h.jsx(u,{to:"/central-procurement",className:f,children:S}),n[12]=u,n[13]=f,n[14]=_):_=n[14];let O;n[15]===Symbol.for("react.memo_cache_sentinel")?(O=h.jsx("span",{children:se["service-management-framework"]}),n[15]=O):O=n[15];let H;n[16]!==u||n[17]!==f?(H=h.jsx(u,{to:"/service-management-framework",className:f,children:O}),n[16]=u,n[17]=f,n[18]=H):H=n[18];let U;n[19]===Symbol.for("react.memo_cache_sentinel")?(U=h.jsx("span",{children:se["service-level-targets"]}),n[19]=U):U=n[19];let M;n[20]!==u||n[21]!==f?(M=h.jsx(u,{to:"/service-level-targets",className:f,children:U}),n[20]=u,n[21]=f,n[22]=M):M=n[22];let q;n[23]===Symbol.for("react.memo_cache_sentinel")?(q=h.jsx("span",{children:se["services-offered"]}),n[23]=q):q=n[23];let Y;n[24]!==u||n[25]!==f?(Y=h.jsx(u,{to:"/services-offered",className:f,children:q}),n[24]=u,n[25]=f,n[26]=Y):Y=n[26];let J;n[27]===Symbol.for("react.memo_cache_sentinel")?(J=h.jsx("h6",{className:"section-title",children:"Standards"}),n[27]=J):J=n[27];let k;n[28]===Symbol.for("react.memo_cache_sentinel")?(k=h.jsx("span",{children:se.audits}),n[28]=k):k=n[28];let N;n[29]!==u||n[30]!==f?(N=h.jsx(u,{to:"/audits",className:f,children:k}),n[29]=u,n[30]=f,n[31]=N):N=n[31];let W;n[32]===Symbol.for("react.memo_cache_sentinel")?(W=h.jsx("span",{children:se["business-continuity"]}),n[32]=W):W=n[32];let ie;n[33]!==u||n[34]!==f?(ie=h.jsx(u,{to:"/business-continuity",className:f,children:W}),n[33]=u,n[34]=f,n[35]=ie):ie=n[35];let X;n[36]===Symbol.for("react.memo_cache_sentinel")?(X=h.jsx("span",{children:se["crisis-management"]}),n[36]=X):X=n[36];let I;n[37]!==u||n[38]!==f?(I=h.jsx(u,{to:"/crisis-management",className:f,children:X}),n[37]=u,n[38]=f,n[39]=I):I=n[39];let de;n[40]===Symbol.for("react.memo_cache_sentinel")?(de=h.jsx("span",{children:se["crisis-exercise"]}),n[40]=de):de=n[40];let Ne;n[41]!==u||n[42]!==f?(Ne=h.jsx(u,{to:"/crisis-exercise",className:f,children:de}),n[41]=u,n[42]=f,n[43]=Ne):Ne=n[43];let Ye;n[44]===Symbol.for("react.memo_cache_sentinel")?(Ye=h.jsx("span",{children:se["security-control"]}),n[44]=Ye):Ye=n[44];let Be;n[45]!==u||n[46]!==f?(Be=h.jsx(u,{to:"/security-control",className:f,children:Ye}),n[45]=u,n[46]=f,n[47]=Be):Be=n[47];let ze;return n[48]!==H||n[49]!==M||n[50]!==Y||n[51]!==N||n[52]!==d||n[53]!==ie||n[54]!==I||n[55]!==Ne||n[56]!==Be||n[57]!==p||n[58]!==R||n[59]!==_?(ze=h.jsxs(h.Fragment,{children:[d,y,p,R,_,H,M,Y,J,N,ie,I,Ne,Be]}),n[48]=H,n[49]=M,n[50]=Y,n[51]=N,n[52]=d,n[53]=ie,n[54]=I,n[55]=Ne,n[56]=Be,n[57]=p,n[58]=R,n[59]=_,n[60]=ze):ze=n[60],ze}function MS(l){const n=Ke.c(52),{sidebar:c}=l,s=c===void 0?!1:c,u=s?yr:Tn,f=s?"":"link-text-underline";let d;n[0]!==s?(d=s&&h.jsx("h5",{children:"Connected Users"}),n[0]=s,n[1]=d):d=n[1];let y;n[2]===Symbol.for("react.memo_cache_sentinel")?(y=h.jsx("h6",{className:"section-title",children:"Connected Users"}),n[2]=y):y=n[2];let v;n[3]===Symbol.for("react.memo_cache_sentinel")?(v=h.jsx("span",{children:se["institutions-urls"]}),n[3]=v):v=n[3];let p;n[4]!==u||n[5]!==f?(p=h.jsx(u,{to:"/institutions-urls",className:f,children:v}),n[4]=u,n[5]=f,n[6]=p):p=n[6];let b;n[7]===Symbol.for("react.memo_cache_sentinel")?(b=h.jsx("span",{children:se["connected-proportion"]}),n[7]=b):b=n[7];let R;n[8]!==u||n[9]!==f?(R=h.jsx(u,{to:"/connected-proportion",className:f,children:b}),n[8]=u,n[9]=f,n[10]=R):R=n[10];let S;n[11]===Symbol.for("react.memo_cache_sentinel")?(S=h.jsx("span",{children:se["connectivity-level"]}),n[11]=S):S=n[11];let _;n[12]!==u||n[13]!==f?(_=h.jsx(u,{to:"/connectivity-level",className:f,children:S}),n[12]=u,n[13]=f,n[14]=_):_=n[14];let O;n[15]===Symbol.for("react.memo_cache_sentinel")?(O=h.jsx("span",{children:se["connection-carrier"]}),n[15]=O):O=n[15];let H;n[16]!==u||n[17]!==f?(H=h.jsx(u,{to:"/connection-carrier",className:f,children:O}),n[16]=u,n[17]=f,n[18]=H):H=n[18];let U;n[19]===Symbol.for("react.memo_cache_sentinel")?(U=h.jsx("span",{children:se["connectivity-load"]}),n[19]=U):U=n[19];let M;n[20]!==u||n[21]!==f?(M=h.jsx(u,{to:"/connectivity-load",className:f,children:U}),n[20]=u,n[21]=f,n[22]=M):M=n[22];let q;n[23]===Symbol.for("react.memo_cache_sentinel")?(q=h.jsx("span",{children:se["connectivity-growth"]}),n[23]=q):q=n[23];let Y;n[24]!==u||n[25]!==f?(Y=h.jsx(u,{to:"/connectivity-growth",className:f,children:q}),n[24]=u,n[25]=f,n[26]=Y):Y=n[26];let J;n[27]===Symbol.for("react.memo_cache_sentinel")?(J=h.jsx("span",{children:se["remote-campuses"]}),n[27]=J):J=n[27];let k;n[28]!==u||n[29]!==f?(k=h.jsx(u,{to:"/remote-campuses",className:f,children:J}),n[28]=u,n[29]=f,n[30]=k):k=n[30];let N,W;n[31]===Symbol.for("react.memo_cache_sentinel")?(N=h.jsx("hr",{className:"fake-divider"}),W=h.jsx("h6",{className:"section-title",children:"Connected Users - Commercial"}),n[31]=N,n[32]=W):(N=n[31],W=n[32]);let ie;n[33]===Symbol.for("react.memo_cache_sentinel")?(ie=h.jsx("span",{children:se["commercial-charging-level"]}),n[33]=ie):ie=n[33];let X;n[34]!==u||n[35]!==f?(X=h.jsx(u,{to:"/commercial-charging-level",className:f,children:ie}),n[34]=u,n[35]=f,n[36]=X):X=n[36];let I;n[37]===Symbol.for("react.memo_cache_sentinel")?(I=h.jsx("span",{children:se["commercial-connectivity"]}),n[37]=I):I=n[37];let de;n[38]!==u||n[39]!==f?(de=h.jsx(u,{to:"/commercial-connectivity",className:f,children:I}),n[38]=u,n[39]=f,n[40]=de):de=n[40];let Ne;return n[41]!==H||n[42]!==M||n[43]!==Y||n[44]!==k||n[45]!==d||n[46]!==X||n[47]!==de||n[48]!==p||n[49]!==R||n[50]!==_?(Ne=h.jsxs(h.Fragment,{children:[d,y,p,R,_,H,M,Y,k,N,W,X,de]}),n[41]=H,n[42]=M,n[43]=Y,n[44]=k,n[45]=d,n[46]=X,n[47]=de,n[48]=p,n[49]=R,n[50]=_,n[51]=Ne):Ne=n[51],Ne}function zS(l){const n=Ke.c(133),{sidebar:c}=l,s=c===void 0?!1:c,u=s?yr:Tn,f=s?"":"link-text-underline";let d;n[0]!==s?(d=s&&h.jsx("h5",{children:"Network"}),n[0]=s,n[1]=d):d=n[1];let y;n[2]===Symbol.for("react.memo_cache_sentinel")?(y=h.jsx("h6",{className:"section-title",children:"Connectivity"}),n[2]=y):y=n[2];let v;n[3]===Symbol.for("react.memo_cache_sentinel")?(v=h.jsx("span",{children:se["dark-fibre-lease"]}),n[3]=v):v=n[3];let p;n[4]!==u||n[5]!==f?(p=h.jsx(u,{to:"/dark-fibre-lease",className:f,children:v}),n[4]=u,n[5]=f,n[6]=p):p=n[6];let b;n[7]===Symbol.for("react.memo_cache_sentinel")?(b=h.jsx("span",{children:se["dark-fibre-lease-international"]}),n[7]=b):b=n[7];let R;n[8]!==u||n[9]!==f?(R=h.jsx(u,{to:"/dark-fibre-lease-international",className:f,children:b}),n[8]=u,n[9]=f,n[10]=R):R=n[10];let S;n[11]===Symbol.for("react.memo_cache_sentinel")?(S=h.jsx("span",{children:se["iru-duration"]}),n[11]=S):S=n[11];let _;n[12]!==u||n[13]!==f?(_=h.jsx(u,{to:"/iru-duration",className:f,children:S}),n[12]=u,n[13]=f,n[14]=_):_=n[14];let O;n[15]===Symbol.for("react.memo_cache_sentinel")?(O=h.jsx("span",{children:se["dark-fibre-installed"]}),n[15]=O):O=n[15];let H;n[16]!==u||n[17]!==f?(H=h.jsx(u,{to:"/dark-fibre-installed",className:f,children:O}),n[16]=u,n[17]=f,n[18]=H):H=n[18];let U;n[19]===Symbol.for("react.memo_cache_sentinel")?(U=h.jsx("span",{children:se["fibre-light"]}),n[19]=U):U=n[19];let M;n[20]!==u||n[21]!==f?(M=h.jsx(u,{to:"/fibre-light",className:f,children:U}),n[20]=u,n[21]=f,n[22]=M):M=n[22];let q;n[23]===Symbol.for("react.memo_cache_sentinel")?(q=h.jsx("span",{children:se["network-map"]}),n[23]=q):q=n[23];let Y;n[24]!==u||n[25]!==f?(Y=h.jsx(u,{to:"/network-map",className:f,children:q}),n[24]=u,n[25]=f,n[26]=Y):Y=n[26];let J,k;n[27]===Symbol.for("react.memo_cache_sentinel")?(J=h.jsx("hr",{className:"fake-divider"}),k=h.jsx("h6",{className:"section-title",children:"Performance Monitoring & Management"}),n[27]=J,n[28]=k):(J=n[27],k=n[28]);let N;n[29]===Symbol.for("react.memo_cache_sentinel")?(N=h.jsx("span",{children:se["monitoring-tools"]}),n[29]=N):N=n[29];let W;n[30]!==u||n[31]!==f?(W=h.jsx(u,{to:"/monitoring-tools",className:f,children:N}),n[30]=u,n[31]=f,n[32]=W):W=n[32];let ie;n[33]===Symbol.for("react.memo_cache_sentinel")?(ie=h.jsx("span",{children:se["passive-monitoring"]}),n[33]=ie):ie=n[33];let X;n[34]!==u||n[35]!==f?(X=h.jsx(u,{to:"/passive-monitoring",className:f,children:ie}),n[34]=u,n[35]=f,n[36]=X):X=n[36];let I;n[37]===Symbol.for("react.memo_cache_sentinel")?(I=h.jsx("span",{children:se["traffic-stats"]}),n[37]=I):I=n[37];let de;n[38]!==u||n[39]!==f?(de=h.jsx(u,{to:"/traffic-stats",className:f,children:I}),n[38]=u,n[39]=f,n[40]=de):de=n[40];let Ne;n[41]===Symbol.for("react.memo_cache_sentinel")?(Ne=h.jsx("span",{children:se["siem-vendors"]}),n[41]=Ne):Ne=n[41];let Ye;n[42]!==u||n[43]!==f?(Ye=h.jsx(u,{to:"/siem-vendors",className:f,children:Ne}),n[42]=u,n[43]=f,n[44]=Ye):Ye=n[44];let Be;n[45]===Symbol.for("react.memo_cache_sentinel")?(Be=h.jsx("span",{children:se["certificate-provider"]}),n[45]=Be):Be=n[45];let ze;n[46]!==u||n[47]!==f?(ze=h.jsx(u,{to:"/certificate-providers",className:f,children:Be}),n[46]=u,n[47]=f,n[48]=ze):ze=n[48];let K;n[49]===Symbol.for("react.memo_cache_sentinel")?(K=h.jsx("span",{children:se["weather-map"]}),n[49]=K):K=n[49];let ce;n[50]!==u||n[51]!==f?(ce=h.jsx(u,{to:"/weather-map",className:f,children:K}),n[50]=u,n[51]=f,n[52]=ce):ce=n[52];let ne;n[53]===Symbol.for("react.memo_cache_sentinel")?(ne=h.jsx("span",{children:se["pert-team"]}),n[53]=ne):ne=n[53];let Re;n[54]!==u||n[55]!==f?(Re=h.jsx(u,{to:"/pert-team",className:f,children:ne}),n[54]=u,n[55]=f,n[56]=Re):Re=n[56];let T,Q;n[57]===Symbol.for("react.memo_cache_sentinel")?(T=h.jsx("hr",{className:"fake-divider"}),Q=h.jsx("h6",{className:"section-title",children:"Alienwave"}),n[57]=T,n[58]=Q):(T=n[57],Q=n[58]);let le;n[59]===Symbol.for("react.memo_cache_sentinel")?(le=h.jsx("span",{children:se["alien-wave"]}),n[59]=le):le=n[59];let te;n[60]!==u||n[61]!==f?(te=h.jsx(u,{to:"/alien-wave",className:f,children:le}),n[60]=u,n[61]=f,n[62]=te):te=n[62];let P;n[63]===Symbol.for("react.memo_cache_sentinel")?(P=h.jsx("span",{children:se["alien-wave-internal"]}),n[63]=P):P=n[63];let ge;n[64]!==u||n[65]!==f?(ge=h.jsx(u,{to:"/alien-wave-internal",className:f,children:P}),n[64]=u,n[65]=f,n[66]=ge):ge=n[66];let ye,Je;n[67]===Symbol.for("react.memo_cache_sentinel")?(ye=h.jsx("hr",{className:"fake-divider"}),Je=h.jsx("h6",{className:"section-title",children:"Capacity"}),n[67]=ye,n[68]=Je):(ye=n[67],Je=n[68]);let Ce;n[69]===Symbol.for("react.memo_cache_sentinel")?(Ce=h.jsx("span",{children:se["capacity-largest-link"]}),n[69]=Ce):Ce=n[69];let Le;n[70]!==u||n[71]!==f?(Le=h.jsx(u,{to:"/capacity-largest-link",className:f,children:Ce}),n[70]=u,n[71]=f,n[72]=Le):Le=n[72];let Ee;n[73]===Symbol.for("react.memo_cache_sentinel")?(Ee=h.jsx("span",{children:se["capacity-core-ip"]}),n[73]=Ee):Ee=n[73];let Ze;n[74]!==u||n[75]!==f?(Ze=h.jsx(u,{to:"/capacity-core-ip",className:f,children:Ee}),n[74]=u,n[75]=f,n[76]=Ze):Ze=n[76];let vt;n[77]===Symbol.for("react.memo_cache_sentinel")?(vt=h.jsx("span",{children:se["external-connections"]}),n[77]=vt):vt=n[77];let it;n[78]!==u||n[79]!==f?(it=h.jsx(u,{to:"/external-connections",className:f,children:vt}),n[78]=u,n[79]=f,n[80]=it):it=n[80];let lt;n[81]===Symbol.for("react.memo_cache_sentinel")?(lt=h.jsx("span",{children:se["non-rne-peers"]}),n[81]=lt):lt=n[81];let De;n[82]!==u||n[83]!==f?(De=h.jsx(u,{to:"/non-rne-peers",className:f,children:lt}),n[82]=u,n[83]=f,n[84]=De):De=n[84];let Rt;n[85]===Symbol.for("react.memo_cache_sentinel")?(Rt=h.jsx("span",{children:se["traffic-volume"]}),n[85]=Rt):Rt=n[85];let St;n[86]!==u||n[87]!==f?(St=h.jsx(u,{to:"/traffic-volume",className:f,children:Rt}),n[86]=u,n[87]=f,n[88]=St):St=n[88];let Pt;n[89]===Symbol.for("react.memo_cache_sentinel")?(Pt=h.jsx("span",{children:se["traffic-ratio"]}),n[89]=Pt):Pt=n[89];let Zt;n[90]!==u||n[91]!==f?(Zt=h.jsx(u,{to:"/traffic-ratio",className:f,children:Pt}),n[90]=u,n[91]=f,n[92]=Zt):Zt=n[92];let un,cn;n[93]===Symbol.for("react.memo_cache_sentinel")?(un=h.jsx("hr",{className:"fake-divider"}),cn=h.jsx("h6",{className:"section-title",children:"Software-Defined Networking (SDN) & Network Function Virtualisation(NFV)"}),n[93]=un,n[94]=cn):(un=n[93],cn=n[94]);let Ut;n[95]===Symbol.for("react.memo_cache_sentinel")?(Ut=h.jsx("span",{children:se["ops-automation"]}),n[95]=Ut):Ut=n[95];let Ht;n[96]!==u||n[97]!==f?(Ht=h.jsx(u,{to:"/ops-automation",className:f,children:Ut}),n[96]=u,n[97]=f,n[98]=Ht):Ht=n[98];let mt;n[99]===Symbol.for("react.memo_cache_sentinel")?(mt=h.jsx("span",{children:se.nfv}),n[99]=mt):mt=n[99];let Kt;n[100]!==u||n[101]!==f?(Kt=h.jsx(u,{to:"/nfv",className:f,children:mt}),n[100]=u,n[101]=f,n[102]=Kt):Kt=n[102];let _e;n[103]===Symbol.for("react.memo_cache_sentinel")?(_e=h.jsx("span",{children:se["network-automation"]}),n[103]=_e):_e=n[103];let Ie;n[104]!==u||n[105]!==f?(Ie=h.jsx(u,{to:"/network-automation",className:f,children:_e}),n[104]=u,n[105]=f,n[106]=Ie):Ie=n[106];let Gt;return n[107]!==H||n[108]!==M||n[109]!==Y||n[110]!==W||n[111]!==d||n[112]!==X||n[113]!==de||n[114]!==Ye||n[115]!==ze||n[116]!==ce||n[117]!==Re||n[118]!==te||n[119]!==ge||n[120]!==Le||n[121]!==Ze||n[122]!==it||n[123]!==De||n[124]!==St||n[125]!==p||n[126]!==Zt||n[127]!==Ht||n[128]!==Kt||n[129]!==Ie||n[130]!==R||n[131]!==_?(Gt=h.jsxs(h.Fragment,{children:[d,y,p,R,_,H,M,Y,J,k,W,X,de,Ye,ze,ce,Re,T,Q,te,ge,ye,Je,Le,Ze,it,De,St,Zt,un,cn,Ht,Kt,Ie]}),n[107]=H,n[108]=M,n[109]=Y,n[110]=W,n[111]=d,n[112]=X,n[113]=de,n[114]=Ye,n[115]=ze,n[116]=ce,n[117]=Re,n[118]=te,n[119]=ge,n[120]=Le,n[121]=Ze,n[122]=it,n[123]=De,n[124]=St,n[125]=p,n[126]=Zt,n[127]=Ht,n[128]=Kt,n[129]=Ie,n[130]=R,n[131]=_,n[132]=Gt):Gt=n[132],Gt}function LS(l){const n=Ke.c(44),{sidebar:c}=l,s=c===void 0?!1:c,u=s?yr:Tn,f=s?"":"link-text-underline";let d;n[0]!==s?(d=s&&h.jsx("h5",{children:"Services"}),n[0]=s,n[1]=d):d=n[1];let y;n[2]===Symbol.for("react.memo_cache_sentinel")?(y=h.jsx("span",{children:se["network-services"]}),n[2]=y):y=n[2];let v;n[3]!==u||n[4]!==f?(v=h.jsx(u,{to:"/network-services",className:f,children:y}),n[3]=u,n[4]=f,n[5]=v):v=n[5];let p;n[6]===Symbol.for("react.memo_cache_sentinel")?(p=h.jsx("span",{children:se["isp-support-services"]}),n[6]=p):p=n[6];let b;n[7]!==u||n[8]!==f?(b=h.jsx(u,{to:"/isp-support-services",className:f,children:p}),n[7]=u,n[8]=f,n[9]=b):b=n[9];let R;n[10]===Symbol.for("react.memo_cache_sentinel")?(R=h.jsx("span",{children:se["security-services"]}),n[10]=R):R=n[10];let S;n[11]!==u||n[12]!==f?(S=h.jsx(u,{to:"/security-services",className:f,children:R}),n[11]=u,n[12]=f,n[13]=S):S=n[13];let _;n[14]===Symbol.for("react.memo_cache_sentinel")?(_=h.jsx("span",{children:se["identity-services"]}),n[14]=_):_=n[14];let O;n[15]!==u||n[16]!==f?(O=h.jsx(u,{to:"/identity-services",className:f,children:_}),n[15]=u,n[16]=f,n[17]=O):O=n[17];let H;n[18]===Symbol.for("react.memo_cache_sentinel")?(H=h.jsx("span",{children:se["storage-and-hosting-services"]}),n[18]=H):H=n[18];let U;n[19]!==u||n[20]!==f?(U=h.jsx(u,{to:"/storage-and-hosting-services",className:f,children:H}),n[19]=u,n[20]=f,n[21]=U):U=n[21];let M;n[22]===Symbol.for("react.memo_cache_sentinel")?(M=h.jsx("span",{children:se["multimedia-services"]}),n[22]=M):M=n[22];let q;n[23]!==u||n[24]!==f?(q=h.jsx(u,{to:"/multimedia-services",className:f,children:M}),n[23]=u,n[24]=f,n[25]=q):q=n[25];let Y;n[26]===Symbol.for("react.memo_cache_sentinel")?(Y=h.jsx("span",{children:se["collaboration-services"]}),n[26]=Y):Y=n[26];let J;n[27]!==u||n[28]!==f?(J=h.jsx(u,{to:"/collaboration-services",className:f,children:Y}),n[27]=u,n[28]=f,n[29]=J):J=n[29];let k;n[30]===Symbol.for("react.memo_cache_sentinel")?(k=h.jsx("span",{children:se["professional-services"]}),n[30]=k):k=n[30];let N;n[31]!==u||n[32]!==f?(N=h.jsx(u,{to:"/professional-services",className:f,children:k}),n[31]=u,n[32]=f,n[33]=N):N=n[33];let W;return n[34]!==O||n[35]!==U||n[36]!==q||n[37]!==J||n[38]!==N||n[39]!==d||n[40]!==v||n[41]!==b||n[42]!==S?(W=h.jsxs(h.Fragment,{children:[d,v,b,S,O,U,q,J,N]}),n[34]=O,n[35]=U,n[36]=q,n[37]=J,n[38]=N,n[39]=d,n[40]=v,n[41]=b,n[42]=S,n[43]=W):W=n[43],W}function US(){const l=Ke.c(10);DS();const{trackPageView:n}=Hp();let c,s;l[0]!==n?(c=()=>{n({documentTitle:"Compendium Data"})},s=[n],l[0]=n,l[1]=c,l[2]=s):(c=l[1],s=l[2]),Yt.useEffect(c,s);let u;l[3]===Symbol.for("react.memo_cache_sentinel")?(u=h.jsx(NS,{type:"data"}),l[3]=u):u=l[3];let f;l[4]===Symbol.for("react.memo_cache_sentinel")?(f=h.jsx(CS,{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."})}),l[4]=f):f=l[4];let d;l[5]===Symbol.for("react.memo_cache_sentinel")?(d=h.jsx(rr,{title:li.Organisation,children:h.jsx(wS,{})}),l[5]=d):d=l[5];let y;l[6]===Symbol.for("react.memo_cache_sentinel")?(y=h.jsx(rr,{title:li.Policy,startCollapsed:!0,children:h.jsx(AS,{})}),l[6]=y):y=l[6];let v;l[7]===Symbol.for("react.memo_cache_sentinel")?(v=h.jsx(rr,{title:li.ConnectedUsers,startCollapsed:!0,children:h.jsx(MS,{})}),l[7]=v):v=l[7];let p;l[8]===Symbol.for("react.memo_cache_sentinel")?(p=h.jsx(rr,{title:li.Network,startCollapsed:!0,children:h.jsx(zS,{})}),l[8]=p):p=l[8];let b;return l[9]===Symbol.for("react.memo_cache_sentinel")?(b=h.jsxs(h.Fragment,{children:[u,f,h.jsx(Ya,{className:"mt-5 mb-5",children:h.jsxs(Rn,{children:[d,y,v,p,h.jsx(rr,{title:li.Services,startCollapsed:!0,children:h.jsx(LS,{})})]})})]}),l[9]=b):b=l[9],b}const HS=()=>{const l=Ke.c(26),{consent:n,setConsent:c}=g.useContext(Jo),[s,u]=g.useState(n===null);let f;l[0]===Symbol.for("react.memo_cache_sentinel")?(f=()=>{u(!1),window.location.reload()},l[0]=f):f=l[0];const d=f,[y,v]=g.useState(!0);let p;l[1]!==c?(p=N=>{const W=new Date;W.setDate(W.getDate()+30),localStorage.setItem("matomo_consent",JSON.stringify({consent:N,expiry:W})),c(N)},l[1]=c,l[2]=p):p=l[2];const b=p;let R;l[3]===Symbol.for("react.memo_cache_sentinel")?(R=h.jsx(ir.Header,{closeButton:!0,children:h.jsx(ir.Title,{children:"Privacy on this site"})}),l[3]=R):R=l[3];let S;l[4]===Symbol.for("react.memo_cache_sentinel")?(S=h.jsx("a",{href:"https://geant.org/Privacy-Notice/",children:"Privacy Policy"}),l[4]=S):S=l[4];let _;l[5]===Symbol.for("react.memo_cache_sentinel")?(_=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 ",S,".",h.jsx("br",{}),"Below, you can choose to accept or decline to have this data collected."]}),l[5]=_):_=l[5];let O;l[6]!==y?(O=()=>v(!y),l[6]=y,l[7]=O):O=l[7];let H;l[8]!==y||l[9]!==O?(H=h.jsx(Du.Check,{type:"checkbox",label:"Analytics",checked:y,onChange:O}),l[8]=y,l[9]=O,l[10]=H):H=l[10];let U;l[11]===Symbol.for("react.memo_cache_sentinel")?(U=h.jsx(Du.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."}),l[11]=U):U=l[11];let M;l[12]!==H?(M=h.jsxs(ir.Body,{children:[_,h.jsx(Du,{children:h.jsxs(Du.Group,{className:"mb-3",children:[H,U]})})]}),l[12]=H,l[13]=M):M=l[13];let q;l[14]!==b?(q=h.jsx(Bo,{variant:"secondary",onClick:()=>{b(!1),d()},children:"Decline all"}),l[14]=b,l[15]=q):q=l[15];let Y;l[16]!==y||l[17]!==b?(Y=h.jsx(Bo,{variant:"primary",onClick:()=>{b(y),d()},children:"Save consent for 30 days"}),l[16]=y,l[17]=b,l[18]=Y):Y=l[18];let J;l[19]!==Y||l[20]!==q?(J=h.jsxs(ir.Footer,{children:[q,Y]}),l[19]=Y,l[20]=q,l[21]=J):J=l[21];let k;return l[22]!==s||l[23]!==J||l[24]!==M?(k=h.jsxs(ir,{show:s,centered:!0,children:[R,M,J]}),l[22]=s,l[23]=J,l[24]=M,l[25]=k):k=l[25],k},BS=g.lazy(()=>be(()=>import("./Budget-CJwd467A.js"),__vite__mapDeps([0,1,2,3,4,5,6,7]))),qS=g.lazy(()=>be(()=>import("./ChargingStructure-v8Ivek4k.js"),__vite__mapDeps([8,2,3,4,5,6,9,10,11]))),VS=g.lazy(()=>be(()=>import("./ECProjects-BbCKqowm.js"),__vite__mapDeps([12,2,3,4,5,6,13,11]))),YS=g.lazy(()=>be(()=>import("./FundingSource-DrmUzWVK.js"),__vite__mapDeps([14,1,2,3,4,5,6,15]))),GS=g.lazy(()=>be(()=>import("./ParentOrganisation-CjNuWZmv.js"),__vite__mapDeps([16,2,3,4,5,6,13,11]))),Oy=g.lazy(()=>be(()=>import("./StaffGraph-CHHV0_ir.js"),__vite__mapDeps([17,1,2,3,4,5,6,18]))),kS=g.lazy(()=>be(()=>import("./StaffGraphAbsolute-D7nFen-z.js"),__vite__mapDeps([19,1,2,3,4,5,6,15,7]))),XS=g.lazy(()=>be(()=>import("./SubOrganisation-ZY5wEKVP.js"),__vite__mapDeps([20,2,3,4,5,6,13,11]))),QS=g.lazy(()=>be(()=>import("./Audits-BguD3rzB.js"),__vite__mapDeps([21,2,3,4,5,6,9,10,11]))),ZS=g.lazy(()=>be(()=>import("./BusinessContinuity-CGdkDX70.js"),__vite__mapDeps([22,2,3,4,5,6,9,10,11]))),KS=g.lazy(()=>be(()=>import("./CentralProcurement-Bw5p4Y4D.js"),__vite__mapDeps([23,2,3,4,5,6,15,1,7]))),$S=g.lazy(()=>be(()=>import("./CorporateStrategy-TFD4Brq2.js"),__vite__mapDeps([24,2,3,4,5,6,13,11]))),FS=g.lazy(()=>be(()=>import("./CrisisExercises-DA9zYjdU.js"),__vite__mapDeps([25,2,3,4,5,6,9,10,11]))),JS=g.lazy(()=>be(()=>import("./CrisisManagement-Bbu9alPA.js"),__vite__mapDeps([26,2,3,4,5,6,9,10,11]))),PS=g.lazy(()=>be(()=>import("./EOSCListings-Dp6l-zo5.js"),__vite__mapDeps([27,2,3,4,5,6,13,11]))),WS=g.lazy(()=>be(()=>import("./Policy-VM2zQrob.js"),__vite__mapDeps([28,2,3,4,5,6,13,11]))),IS=g.lazy(()=>be(()=>import("./SecurityControls-BTdEPH5H.js"),__vite__mapDeps([29,2,3,4,5,6,9,10,11]))),e2=g.lazy(()=>be(()=>import("./ServiceLevelTargets-BpkLKw_p.js"),__vite__mapDeps([30,2,3,4,5,6,9,10,11]))),t2=g.lazy(()=>be(()=>import("./ServiceManagementFramework-CsK8wuiB.js"),__vite__mapDeps([31,2,3,4,5,6,9,10,11]))),n2=g.lazy(()=>be(()=>import("./ServicesOffered-DNJ8VoBZ.js"),__vite__mapDeps([32,2,3,4,5,6,33,11]))),a2=g.lazy(()=>be(()=>import("./ConnectedInstitutionsURLs-C5Vh7UoZ.js"),__vite__mapDeps([34,2,3,4,5,6,13,11]))),dl=g.lazy(()=>be(()=>import("./ConnectedUser-CWHDfZp4.js"),__vite__mapDeps([35,2,3,4,5,6,33,11]))),l2=g.lazy(()=>be(()=>import("./RemoteCampuses-DMXVocD3.js"),__vite__mapDeps([36,2,3,4,5,6,11]))),i2=g.lazy(()=>be(()=>import("./AlienWave-BRELP-Uq.js"),__vite__mapDeps([37,2,3,4,5,6,9,10,11]))),r2=g.lazy(()=>be(()=>import("./AlienWaveInternal-CpX7IEII.js"),__vite__mapDeps([38,2,3,4,5,6,9,10,11]))),u2=g.lazy(()=>be(()=>import("./Automation-CM48PgQO.js"),__vite__mapDeps([39,2,3,4,5,6,10,11]))),c2=g.lazy(()=>be(()=>import("./CapacityCoreIP-0WFrWZ8f.js"),__vite__mapDeps([40,1,2,3,4,5,6,15,7]))),s2=g.lazy(()=>be(()=>import("./CapacityLargestLink-CZFVemiz.js"),__vite__mapDeps([41,1,2,3,4,5,6,15,7]))),o2=g.lazy(()=>be(()=>import("./CertificateProvider-B1guSjqT.js"),__vite__mapDeps([42,2,3,4,5,6,9,10,11]))),Dy=g.lazy(()=>be(()=>import("./DarkFibreLease-COoYzfsc.js"),__vite__mapDeps([43,1,2,3,4,5,6,7]))),f2=g.lazy(()=>be(()=>import("./DarkFibreInstalled-D8GnAYvV.js"),__vite__mapDeps([44,1,2,3,4,5,6,7]))),d2=g.lazy(()=>be(()=>import("./ExternalConnections-Be08dOIN.js"),__vite__mapDeps([45,2,3,4,5,6,11]))),h2=g.lazy(()=>be(()=>import("./FibreLight-DMXWEFDd.js"),__vite__mapDeps([46,2,3,4,5,6,9,10,11]))),m2=g.lazy(()=>be(()=>import("./IRUDuration-Df0Yk4t9.js"),__vite__mapDeps([47,1,2,3,4,5,6,7]))),y2=g.lazy(()=>be(()=>import("./MonitoringTools-D_0sqSLy.js"),__vite__mapDeps([48,2,3,4,5,6,9,10,11]))),p2=g.lazy(()=>be(()=>import("./NetworkFunctionVirtualisation-DWB0GuJA.js"),__vite__mapDeps([49,2,3,4,5,6,10,11]))),v2=g.lazy(()=>be(()=>import("./NetworkMapUrls-I03XzNji.js"),__vite__mapDeps([50,2,3,4,5,6,13,11]))),g2=g.lazy(()=>be(()=>import("./NonRAndEPeer-BizBxpTV.js"),__vite__mapDeps([51,1,2,3,4,5,6,15,7]))),E2=g.lazy(()=>be(()=>import("./OPsAutomation-BUp22-K-.js"),__vite__mapDeps([52,2,3,4,5,6,9,10,11]))),b2=g.lazy(()=>be(()=>import("./PassiveMonitoring-BIkXfdsN.js"),__vite__mapDeps([53,2,3,4,5,6,9,10,11]))),S2=g.lazy(()=>be(()=>import("./PertTeam-BCw_K3zx.js"),__vite__mapDeps([54,2,3,4,5,6,9,10,11]))),x2=g.lazy(()=>be(()=>import("./SiemVendors-mvP4OqWO.js"),__vite__mapDeps([55,2,3,4,5,6,9,10,11]))),_2=g.lazy(()=>be(()=>import("./TrafficRatio-BApEJk3Q.js"),__vite__mapDeps([56,1,2,3,4,5,6,18]))),R2=g.lazy(()=>be(()=>import("./TrafficUrl-BYhWwa71.js"),__vite__mapDeps([57,2,3,4,5,6,13,11]))),T2=g.lazy(()=>be(()=>import("./TrafficVolume-Bv0Lld1C.js"),__vite__mapDeps([58,1,2,3,4,5,6,7]))),N2=g.lazy(()=>be(()=>import("./WeatherMap-CwN_0f8A.js"),__vite__mapDeps([59,2,3,4,5,6,13,11]))),Ua=g.lazy(()=>be(()=>import("./Services-Bv2I_Kot.js"),__vite__mapDeps([60,2,3,4,5,6,11]))),C2=g.lazy(()=>be(()=>import("./Landing-DerYniG4.js"),__vite__mapDeps([61,4,62,3,63,11]))),No=g.lazy(()=>be(()=>import("./SurveyContainerComponent-Dir4_aWH.js"),__vite__mapDeps([64,65,66,67,62,3,68]))),j2=g.lazy(()=>be(()=>import("./SurveyManagementComponent-B655F2Jb.js"),__vite__mapDeps([69,70,6,11,65,67,63,62,3]))),O2=g.lazy(()=>be(()=>import("./UserManagementComponent-yhMDIQhJ.js"),__vite__mapDeps([71,65,62,3,5,70,6,11]))),D2=()=>{const l=Ke.c(9),{pathname:n}=Xn(),c=n!=="/";let s;l[0]===Symbol.for("react.memo_cache_sentinel")?(s=h.jsx(oS,{}),l[0]=s):s=l[0];let u;l[1]!==c?(u=h.jsx("main",{className:"grow",children:c?h.jsx(T0,{}):h.jsx(Bp,{})}),l[1]=c,l[2]=u):u=l[2];let f;l[3]===Symbol.for("react.memo_cache_sentinel")?(f=h.jsx(HS,{}),l[3]=f):f=l[3];let d;l[4]!==u?(d=h.jsxs(wE,{children:[s,u,f]}),l[4]=u,l[5]=d):d=l[5];let y;l[6]===Symbol.for("react.memo_cache_sentinel")?(y=h.jsx(hS,{}),l[6]=y):y=l[6];let v;return l[7]!==d?(v=h.jsxs(h.Fragment,{children:[d,y]}),l[7]=d,l[8]=v):v=l[8],v},w2=P0([{path:"",element:h.jsx(D2,{}),children:[{path:"/budget",element:h.jsx(BS,{})},{path:"/funding",element:h.jsx(YS,{})},{path:"/employment",element:h.jsx(Oy,{},"staffgraph")},{path:"/traffic-ratio",element:h.jsx(_2,{})},{path:"/roles",element:h.jsx(Oy,{roles:!0},"staffgraphroles")},{path:"/employee-count",element:h.jsx(kS,{})},{path:"/charging",element:h.jsx(qS,{})},{path:"/suborganisations",element:h.jsx(XS,{})},{path:"/parentorganisation",element:h.jsx(GS,{})},{path:"/ec-projects",element:h.jsx(VS,{})},{path:"/policy",element:h.jsx(WS,{})},{path:"/traffic-volume",element:h.jsx(T2,{})},{path:"/data",element:h.jsx(US,{})},{path:"/institutions-urls",element:h.jsx(a2,{})},{path:"/connected-proportion",element:h.jsx(dl,{page:Qt.ConnectedProportion},Qt.ConnectedProportion)},{path:"/connectivity-level",element:h.jsx(dl,{page:Qt.ConnectivityLevel},Qt.ConnectivityLevel)},{path:"/connectivity-growth",element:h.jsx(dl,{page:Qt.ConnectivityGrowth},Qt.ConnectivityGrowth)},{path:"/connection-carrier",element:h.jsx(dl,{page:Qt.ConnectionCarrier},Qt.ConnectionCarrier)},{path:"/connectivity-load",element:h.jsx(dl,{page:Qt.ConnectivityLoad},Qt.ConnectivityLoad)},{path:"/commercial-charging-level",element:h.jsx(dl,{page:Qt.CommercialChargingLevel},Qt.CommercialChargingLevel)},{path:"/commercial-connectivity",element:h.jsx(dl,{page:Qt.CommercialConnectivity},Qt.CommercialConnectivity)},{path:"/network-services",element:h.jsx(Ua,{category:Lt.network_services},Lt.network_services)},{path:"/isp-support-services",element:h.jsx(Ua,{category:Lt.isp_support},Lt.isp_support)},{path:"/security-services",element:h.jsx(Ua,{category:Lt.security},Lt.security)},{path:"/identity-services",element:h.jsx(Ua,{category:Lt.identity},Lt.identity)},{path:"/collaboration-services",element:h.jsx(Ua,{category:Lt.collaboration},Lt.collaboration)},{path:"/multimedia-services",element:h.jsx(Ua,{category:Lt.multimedia},Lt.multimedia)},{path:"/storage-and-hosting-services",element:h.jsx(Ua,{category:Lt.storage_and_hosting},Lt.storage_and_hosting)},{path:"/professional-services",element:h.jsx(Ua,{category:Lt.professional_services},Lt.professional_services)},{path:"/dark-fibre-lease",element:h.jsx(Dy,{national:!0},"darkfibrenational")},{path:"/dark-fibre-lease-international",element:h.jsx(Dy,{},"darkfibreinternational")},{path:"/dark-fibre-installed",element:h.jsx(f2,{})},{path:"/remote-campuses",element:h.jsx(l2,{})},{path:"/eosc-listings",element:h.jsx(PS,{})},{path:"/fibre-light",element:h.jsx(h2,{})},{path:"/monitoring-tools",element:h.jsx(y2,{})},{path:"/pert-team",element:h.jsx(S2,{})},{path:"/passive-monitoring",element:h.jsx(b2,{})},{path:"/alien-wave",element:h.jsx(i2,{})},{path:"/alien-wave-internal",element:h.jsx(r2,{})},{path:"/external-connections",element:h.jsx(d2,{})},{path:"/ops-automation",element:h.jsx(E2,{})},{path:"/network-automation",element:h.jsx(u2,{})},{path:"/traffic-stats",element:h.jsx(R2,{})},{path:"/weather-map",element:h.jsx(N2,{})},{path:"/network-map",element:h.jsx(v2,{})},{path:"/nfv",element:h.jsx(p2,{})},{path:"/certificate-providers",element:h.jsx(o2,{})},{path:"/siem-vendors",element:h.jsx(x2,{})},{path:"/capacity-largest-link",element:h.jsx(s2,{})},{path:"/capacity-core-ip",element:h.jsx(c2,{})},{path:"/non-rne-peers",element:h.jsx(g2,{})},{path:"/iru-duration",element:h.jsx(m2,{})},{path:"/audits",element:h.jsx(QS,{})},{path:"/business-continuity",element:h.jsx(ZS,{})},{path:"/crisis-management",element:h.jsx(JS,{})},{path:"/crisis-exercise",element:h.jsx(FS,{})},{path:"/central-procurement",element:h.jsx(KS,{})},{path:"/security-control",element:h.jsx(IS,{})},{path:"/services-offered",element:h.jsx(n2,{})},{path:"/service-management-framework",element:h.jsx(t2,{})},{path:"/service-level-targets",element:h.jsx(e2,{})},{path:"/corporate-strategy",element:h.jsx($S,{})},{path:"/survey/admin/surveys",element:h.jsx(j2,{})},{path:"/survey/admin/users",element:h.jsx(O2,{})},{path:"/survey/admin/inspect/:year",element:h.jsx(No,{loadFrom:"/api/response/inspect/"})},{path:"/survey/admin/try/:year",element:h.jsx(No,{loadFrom:"/api/response/try/"})},{path:"/survey/response/:year/:nren",element:h.jsx(No,{loadFrom:"/api/response/load/"})},{path:"/survey/*",element:h.jsx(C2,{})},{path:"/*",element:h.jsx(Bp,{})}]}]);function A2(){const l=Ke.c(1);let n;return l[0]===Symbol.for("react.memo_cache_sentinel")?(n=h.jsx("div",{className:"app",children:h.jsx(oE,{router:w2})}),l[0]=n):n=l[0],n}const M2=document.getElementById("root"),z2=a1.createRoot(M2);z2.render(h.jsx(Yt.StrictMode,{children:h.jsx(A2,{})}));export{zE as $,Ho as A,pb as B,ln as C,Xy as D,Ya as E,yE as F,MS as G,LS as H,jS as I,vE as J,OS as K,Tn as L,Iy as M,zS as N,wS as O,AS as P,Hp as Q,Rn as R,li as S,NS as T,V2 as U,SE as V,Du as W,DS as X,_S as Y,RS as Z,Yp as _,Qt as a,Lt as a0,Fo as a1,yr as a2,ku as a3,wy as a4,B2 as a5,H2 as a6,be as a7,rb as a8,nb as a9,$u as aa,gl as ab,hl as ac,Mo as ad,Ba as ae,yl as af,ab as ag,U2 as ah,nf as ai,OE as aj,Y2 as b,Ke as c,G2 as d,rr as e,Yt as f,up as g,Qe as h,Ae as i,h as j,sb as k,by as l,Bu as m,Ob as n,Ku as o,tf as p,ob as q,g as r,ti as s,se as t,pl as u,lp as v,q2 as w,rp as x,Bo as y,BE as z}; +*/var dy;function AE(){return dy||(dy=1,function(l){(function(){var n={}.hasOwnProperty;function c(){for(var f="",d=0;d<arguments.length;d++){var y=arguments[d];y&&(f=u(f,s(y)))}return f}function s(f){if(typeof f=="string"||typeof f=="number")return f;if(typeof f!="object")return"";if(Array.isArray(f))return c.apply(null,f);if(f.toString!==Object.prototype.toString&&!f.toString.toString().includes("[native code]"))return f.toString();var d="";for(var y in f)n.call(f,y)&&f[y]&&(d=u(d,y));return d}function u(f,d){return d?f?f+" "+d:f+d:f}l.exports?(c.default=c,l.exports=c):window.classNames=c})()}(po)),po.exports}var ME=AE();const Ae=fr(ME);function zE(l,n){if(l==null)return{};var c={};for(var s in l)if({}.hasOwnProperty.call(l,s)){if(n.includes(s))continue;c[s]=l[s]}return c}function Ao(l,n){return Ao=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(c,s){return c.__proto__=s,c},Ao(l,n)}function LE(l,n){l.prototype=Object.create(n.prototype),l.prototype.constructor=l,Ao(l,n)}const UE=["xxl","xl","lg","md","sm","xs"],HE="xs",Zu=g.createContext({prefixes:{},breakpoints:UE,minBreakpoint:HE});function Qe(l,n){const{prefixes:c}=g.useContext(Zu);return l||c[n]||n}function tp(){const{breakpoints:l}=g.useContext(Zu);return l}function np(){const{minBreakpoint:l}=g.useContext(Zu);return l}function BE(){const{dir:l}=g.useContext(Zu);return l==="rtl"}function Ku(l){return l&&l.ownerDocument||document}function qE(l){var n=Ku(l);return n&&n.defaultView||window}function VE(l,n){return qE(l).getComputedStyle(l,n)}var YE=/([A-Z])/g;function kE(l){return l.replace(YE,"-$1").toLowerCase()}var GE=/^ms-/;function Ou(l){return kE(l).replace(GE,"-ms-")}var XE=/^((translate|rotate|scale)(X|Y|Z|3d)?|matrix(3d)?|perspective|skew(X|Y)?)$/i;function QE(l){return!!(l&&XE.test(l))}function gl(l,n){var c="",s="";if(typeof n=="string")return l.style.getPropertyValue(Ou(n))||VE(l).getPropertyValue(Ou(n));Object.keys(n).forEach(function(u){var f=n[u];!f&&f!==0?l.style.removeProperty(Ou(u)):QE(u)?s+=u+"("+f+") ":c+=Ou(u)+": "+f+";"}),s&&(c+="transform: "+s+";"),l.style.cssText+=";"+c}var vo={exports:{}},go,hy;function ZE(){if(hy)return go;hy=1;var l="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return go=l,go}var Eo,my;function KE(){if(my)return Eo;my=1;var l=ZE();function n(){}function c(){}return c.resetWarningCache=n,Eo=function(){function s(d,y,v,p,b,R){if(R!==l){var S=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 S.name="Invariant Violation",S}}s.isRequired=s;function u(){return s}var f={array:s,bigint:s,bool:s,func:s,number:s,object:s,string:s,symbol:s,any:s,arrayOf:u,element:s,elementType:s,instanceOf:u,node:s,objectOf:u,oneOf:u,oneOfType:u,shape:u,exact:u,checkPropTypes:c,resetWarningCache:n};return f.PropTypes=f,f},Eo}var yy;function $E(){return yy||(yy=1,vo.exports=KE()()),vo.exports}var FE=$E();const fa=fr(FE),py={disabled:!1},ap=Yt.createContext(null);var JE=function(n){return n.scrollTop},cr="unmounted",hl="exited",Ba="entering",yl="entered",Mo="exiting",ha=function(l){LE(n,l);function n(s,u){var f;f=l.call(this,s,u)||this;var d=u,y=d&&!d.isMounting?s.enter:s.appear,v;return f.appearStatus=null,s.in?y?(v=hl,f.appearStatus=Ba):v=yl:s.unmountOnExit||s.mountOnEnter?v=cr:v=hl,f.state={status:v},f.nextCallback=null,f}n.getDerivedStateFromProps=function(u,f){var d=u.in;return d&&f.status===cr?{status:hl}:null};var c=n.prototype;return c.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},c.componentDidUpdate=function(u){var f=null;if(u!==this.props){var d=this.state.status;this.props.in?d!==Ba&&d!==yl&&(f=Ba):(d===Ba||d===yl)&&(f=Mo)}this.updateStatus(!1,f)},c.componentWillUnmount=function(){this.cancelNextCallback()},c.getTimeouts=function(){var u=this.props.timeout,f,d,y;return f=d=y=u,u!=null&&typeof u!="number"&&(f=u.exit,d=u.enter,y=u.appear!==void 0?u.appear:d),{exit:f,enter:d,appear:y}},c.updateStatus=function(u,f){if(u===void 0&&(u=!1),f!==null)if(this.cancelNextCallback(),f===Ba){if(this.props.unmountOnExit||this.props.mountOnEnter){var d=this.props.nodeRef?this.props.nodeRef.current:ii.findDOMNode(this);d&&JE(d)}this.performEnter(u)}else this.performExit();else this.props.unmountOnExit&&this.state.status===hl&&this.setState({status:cr})},c.performEnter=function(u){var f=this,d=this.props.enter,y=this.context?this.context.isMounting:u,v=this.props.nodeRef?[y]:[ii.findDOMNode(this),y],p=v[0],b=v[1],R=this.getTimeouts(),S=y?R.appear:R.enter;if(!u&&!d||py.disabled){this.safeSetState({status:yl},function(){f.props.onEntered(p)});return}this.props.onEnter(p,b),this.safeSetState({status:Ba},function(){f.props.onEntering(p,b),f.onTransitionEnd(S,function(){f.safeSetState({status:yl},function(){f.props.onEntered(p,b)})})})},c.performExit=function(){var u=this,f=this.props.exit,d=this.getTimeouts(),y=this.props.nodeRef?void 0:ii.findDOMNode(this);if(!f||py.disabled){this.safeSetState({status:hl},function(){u.props.onExited(y)});return}this.props.onExit(y),this.safeSetState({status:Mo},function(){u.props.onExiting(y),u.onTransitionEnd(d.exit,function(){u.safeSetState({status:hl},function(){u.props.onExited(y)})})})},c.cancelNextCallback=function(){this.nextCallback!==null&&(this.nextCallback.cancel(),this.nextCallback=null)},c.safeSetState=function(u,f){f=this.setNextCallback(f),this.setState(u,f)},c.setNextCallback=function(u){var f=this,d=!0;return this.nextCallback=function(y){d&&(d=!1,f.nextCallback=null,u(y))},this.nextCallback.cancel=function(){d=!1},this.nextCallback},c.onTransitionEnd=function(u,f){this.setNextCallback(f);var d=this.props.nodeRef?this.props.nodeRef.current:ii.findDOMNode(this),y=u==null&&!this.props.addEndListener;if(!d||y){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var v=this.props.nodeRef?[this.nextCallback]:[d,this.nextCallback],p=v[0],b=v[1];this.props.addEndListener(p,b)}u!=null&&setTimeout(this.nextCallback,u)},c.render=function(){var u=this.state.status;if(u===cr)return null;var f=this.props,d=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=zE(f,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return Yt.createElement(ap.Provider,{value:null},typeof d=="function"?d(u,y):Yt.cloneElement(Yt.Children.only(d),y))},n}(Yt.Component);ha.contextType=ap;ha.propTypes={};function ei(){}ha.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:ei,onEntering:ei,onEntered:ei,onExit:ei,onExiting:ei,onExited:ei};ha.UNMOUNTED=cr;ha.EXITED=hl;ha.ENTERING=Ba;ha.ENTERED=yl;ha.EXITING=Mo;function PE(l){return l.code==="Escape"||l.keyCode===27}function WE(){const l=g.version.split(".");return{major:+l[0],minor:+l[1],patch:+l[2]}}function $u(l){if(!l||typeof l=="function")return null;const{major:n}=WE();return n>=19?l.props.ref:l.ref}const ri=!!(typeof window<"u"&&window.document&&window.document.createElement);var zo=!1,Lo=!1;try{var bo={get passive(){return zo=!0},get once(){return Lo=zo=!0}};ri&&(window.addEventListener("test",bo,bo),window.removeEventListener("test",bo,!0))}catch{}function lp(l,n,c,s){if(s&&typeof s!="boolean"&&!Lo){var u=s.once,f=s.capture,d=c;!Lo&&u&&(d=c.__once||function y(v){this.removeEventListener(n,y,f),c.call(this,v)},c.__once=d),l.addEventListener(n,d,zo?s:f)}l.addEventListener(n,c,s)}function Uo(l,n,c,s){var u=s&&typeof s!="boolean"?s.capture:s;l.removeEventListener(n,c,u),c.__once&&l.removeEventListener(n,c.__once,u)}function Bu(l,n,c,s){return lp(l,n,c,s),function(){Uo(l,n,c,s)}}function IE(l,n,c,s){if(s===void 0&&(s=!0),l){var u=document.createEvent("HTMLEvents");u.initEvent(n,c,s),l.dispatchEvent(u)}}function eb(l){var n=gl(l,"transitionDuration")||"",c=n.indexOf("ms")===-1?1e3:1;return parseFloat(n)*c}function tb(l,n,c){c===void 0&&(c=5);var s=!1,u=setTimeout(function(){s||IE(l,"transitionend",!0)},n+c),f=Bu(l,"transitionend",function(){s=!0},{once:!0});return function(){clearTimeout(u),f()}}function ip(l,n,c,s){c==null&&(c=eb(l)||0);var u=tb(l,c,s),f=Bu(l,"transitionend",n);return function(){u(),f()}}function vy(l,n){const c=gl(l,n)||"",s=c.indexOf("ms")===-1?1e3:1;return parseFloat(c)*s}function nb(l,n){const c=vy(l,"transitionDuration"),s=vy(l,"transitionDelay"),u=ip(l,f=>{f.target===l&&(u(),n(f))},c+s)}function ab(l){l.offsetHeight}const gy=l=>!l||typeof l=="function"?l:n=>{l.current=n};function lb(l,n){const c=gy(l),s=gy(n);return u=>{c&&c(u),s&&s(u)}}function rp(l,n){return g.useMemo(()=>lb(l,n),[l,n])}function ib(l){return l&&"setState"in l?ii.findDOMNode(l):l??null}const rb=Yt.forwardRef(({onEnter:l,onEntering:n,onEntered:c,onExit:s,onExiting:u,onExited:f,addEndListener:d,children:y,childRef:v,...p},b)=>{const R=g.useRef(null),S=rp(R,v),_=N=>{S(ib(N))},O=N=>W=>{N&&R.current&&N(R.current,W)},H=g.useCallback(O(l),[l]),U=g.useCallback(O(n),[n]),M=g.useCallback(O(c),[c]),q=g.useCallback(O(s),[s]),Y=g.useCallback(O(u),[u]),J=g.useCallback(O(f),[f]),G=g.useCallback(O(d),[d]);return h.jsx(ha,{ref:b,...p,onEnter:H,onEntered:M,onEntering:U,onExit:q,onExited:J,onExiting:Y,addEndListener:G,nodeRef:R,children:typeof y=="function"?(N,W)=>y(N,{...W,ref:_}):Yt.cloneElement(y,{ref:_})})});function ub(l){const n=g.useRef(l);return g.useEffect(()=>{n.current=l},[l]),n}function Ho(l){const n=ub(l);return g.useCallback(function(...c){return n.current&&n.current(...c)},[n])}const Po=l=>g.forwardRef((n,c)=>h.jsx("div",{...n,ref:c,className:Ae(n.className,l)}));function cb(l){const n=g.useRef(l);return g.useEffect(()=>{n.current=l},[l]),n}function pl(l){const n=cb(l);return g.useCallback(function(...c){return n.current&&n.current(...c)},[n])}function sb(){const l=g.useRef(!0),n=g.useRef(()=>l.current);return g.useEffect(()=>(l.current=!0,()=>{l.current=!1}),[]),n.current}function ob(l){const n=g.useRef(null);return g.useEffect(()=>{n.current=l}),n.current}const fb=typeof global<"u"&&global.navigator&&global.navigator.product==="ReactNative",db=typeof document<"u",Ey=db||fb?g.useLayoutEffect:g.useEffect,hb=["as","disabled"];function mb(l,n){if(l==null)return{};var c={};for(var s in l)if({}.hasOwnProperty.call(l,s)){if(n.indexOf(s)>=0)continue;c[s]=l[s]}return c}function yb(l){return!l||l.trim()==="#"}function up({tagName:l,disabled:n,href:c,target:s,rel:u,role:f,onClick:d,tabIndex:y=0,type:v}){l||(c!=null||s!=null||u!=null?l="a":l="button");const p={tagName:l};if(l==="button")return[{type:v||"button",disabled:n},p];const b=S=>{if((n||l==="a"&&yb(c))&&S.preventDefault(),n){S.stopPropagation();return}d==null||d(S)},R=S=>{S.key===" "&&(S.preventDefault(),b(S))};return l==="a"&&(c||(c="#"),n&&(c=void 0)),[{role:f??"button",disabled:void 0,tabIndex:n?void 0:y,href:c,target:l==="a"?s:void 0,"aria-disabled":n||void 0,rel:l==="a"?u:void 0,onClick:b,onKeyDown:R},p]}const pb=g.forwardRef((l,n)=>{let{as:c,disabled:s}=l,u=mb(l,hb);const[f,{tagName:d}]=up(Object.assign({tagName:c,disabled:s},u));return h.jsx(d,Object.assign({},u,f,{ref:n}))});pb.displayName="Button";const vb={[Ba]:"show",[yl]:"show"},Wo=g.forwardRef(({className:l,children:n,transitionClasses:c={},onEnter:s,...u},f)=>{const d={in:!1,timeout:300,mountOnEnter:!1,unmountOnExit:!1,appear:!1,...u},y=g.useCallback((v,p)=>{ab(v),s==null||s(v,p)},[s]);return h.jsx(rb,{ref:f,addEndListener:nb,...d,onEnter:y,childRef:$u(n),children:(v,p)=>g.cloneElement(n,{...p,className:Ae("fade",l,n.props.className,vb[v],c[v])})})});Wo.displayName="Fade";const gb={"aria-label":fa.string,onClick:fa.func,variant:fa.oneOf(["white"])},Io=g.forwardRef(({className:l,variant:n,"aria-label":c="Close",...s},u)=>h.jsx("button",{ref:u,type:"button",className:Ae("btn-close",n&&`btn-close-${n}`,l),"aria-label":c,...s}));Io.displayName="CloseButton";Io.propTypes=gb;const Bo=g.forwardRef(({as:l,bsPrefix:n,variant:c="primary",size:s,active:u=!1,disabled:f=!1,className:d,...y},v)=>{const p=Qe(n,"btn"),[b,{tagName:R}]=up({tagName:l,disabled:f,...y}),S=R;return h.jsx(S,{...b,...y,ref:v,disabled:f,className:Ae(d,p,u&&"active",c&&`${p}-${c}`,s&&`${p}-${s}`,y.href&&f&&"disabled")})});Bo.displayName="Button";const ef=g.forwardRef(({className:l,bsPrefix:n,as:c="div",...s},u)=>(n=Qe(n,"card-body"),h.jsx(c,{ref:u,className:Ae(l,n),...s})));ef.displayName="CardBody";const cp=g.forwardRef(({className:l,bsPrefix:n,as:c="div",...s},u)=>(n=Qe(n,"card-footer"),h.jsx(c,{ref:u,className:Ae(l,n),...s})));cp.displayName="CardFooter";const sp=g.createContext(null);sp.displayName="CardHeaderContext";const op=g.forwardRef(({bsPrefix:l,className:n,as:c="div",...s},u)=>{const f=Qe(l,"card-header"),d=g.useMemo(()=>({cardHeaderBsPrefix:f}),[f]);return h.jsx(sp.Provider,{value:d,children:h.jsx(c,{ref:u,...s,className:Ae(n,f)})})});op.displayName="CardHeader";const fp=g.forwardRef(({bsPrefix:l,className:n,variant:c,as:s="img",...u},f)=>{const d=Qe(l,"card-img");return h.jsx(s,{ref:f,className:Ae(c?`${d}-${c}`:d,n),...u})});fp.displayName="CardImg";const dp=g.forwardRef(({className:l,bsPrefix:n,as:c="div",...s},u)=>(n=Qe(n,"card-img-overlay"),h.jsx(c,{ref:u,className:Ae(l,n),...s})));dp.displayName="CardImgOverlay";const hp=g.forwardRef(({className:l,bsPrefix:n,as:c="a",...s},u)=>(n=Qe(n,"card-link"),h.jsx(c,{ref:u,className:Ae(l,n),...s})));hp.displayName="CardLink";const Eb=Po("h6"),mp=g.forwardRef(({className:l,bsPrefix:n,as:c=Eb,...s},u)=>(n=Qe(n,"card-subtitle"),h.jsx(c,{ref:u,className:Ae(l,n),...s})));mp.displayName="CardSubtitle";const yp=g.forwardRef(({className:l,bsPrefix:n,as:c="p",...s},u)=>(n=Qe(n,"card-text"),h.jsx(c,{ref:u,className:Ae(l,n),...s})));yp.displayName="CardText";const bb=Po("h5"),pp=g.forwardRef(({className:l,bsPrefix:n,as:c=bb,...s},u)=>(n=Qe(n,"card-title"),h.jsx(c,{ref:u,className:Ae(l,n),...s})));pp.displayName="CardTitle";const vp=g.forwardRef(({bsPrefix:l,className:n,bg:c,text:s,border:u,body:f=!1,children:d,as:y="div",...v},p)=>{const b=Qe(l,"card");return h.jsx(y,{ref:p,...v,className:Ae(n,b,c&&`bg-${c}`,s&&`text-${s}`,u&&`border-${u}`),children:f?h.jsx(ef,{children:d}):d})});vp.displayName="Card";const Yn=Object.assign(vp,{Img:fp,Title:pp,Subtitle:mp,Body:ef,Link:hp,Text:yp,Header:op,Footer:cp,ImgOverlay:dp});function Sb(l){const n=g.useRef(l);return n.current=l,n}function xb(l){const n=Sb(l);g.useEffect(()=>()=>n.current(),[])}function _b(l,n){return g.Children.toArray(l).some(c=>g.isValidElement(c)&&c.type===n)}function Rb({as:l,bsPrefix:n,className:c,...s}){n=Qe(n,"col");const u=tp(),f=np(),d=[],y=[];return u.forEach(v=>{const p=s[v];delete s[v];let b,R,S;typeof p=="object"&&p!=null?{span:b,offset:R,order:S}=p:b=p;const _=v!==f?`-${v}`:"";b&&d.push(b===!0?`${n}${_}`:`${n}${_}-${b}`),S!=null&&y.push(`order${_}-${S}`),R!=null&&y.push(`offset${_}-${R}`)}),[{...s,className:Ae(c,...d,...y)},{as:l,bsPrefix:n,spans:d}]}const ln=g.forwardRef((l,n)=>{const[{className:c,...s},{as:u="div",bsPrefix:f,spans:d}]=Rb(l);return h.jsx(u,{...s,ref:n,className:Ae(c,!d.length&&f)})});ln.displayName="Col";const Ya=g.forwardRef(({bsPrefix:l,fluid:n=!1,as:c="div",className:s,...u},f)=>{const d=Qe(l,"container"),y=typeof n=="string"?`-${n}`:"-fluid";return h.jsx(c,{ref:f,...u,className:Ae(s,n?`${d}${y}`:d)})});Ya.displayName="Container";var Tb=Function.prototype.bind.call(Function.prototype.call,[].slice);function ti(l,n){return Tb(l.querySelectorAll(n))}function by(l,n){if(l.contains)return l.contains(n);if(l.compareDocumentPosition)return l===n||!!(l.compareDocumentPosition(n)&16)}var So,Sy;function Nb(){if(Sy)return So;Sy=1;var l=function(){};return So=l,So}var Cb=Nb();const q2=fr(Cb),jb="data-rr-ui-";function Ob(l){return`${jb}${l}`}const gp=g.createContext(ri?window:void 0);gp.Provider;function tf(){return g.useContext(gp)}const Db={type:fa.string,tooltip:fa.bool,as:fa.elementType},Fu=g.forwardRef(({as:l="div",className:n,type:c="valid",tooltip:s=!1,...u},f)=>h.jsx(l,{...u,ref:f,className:Ae(n,`${c}-${s?"tooltip":"feedback"}`)}));Fu.displayName="Feedback";Fu.propTypes=Db;const da=g.createContext({}),nf=g.forwardRef(({id:l,bsPrefix:n,className:c,type:s="checkbox",isValid:u=!1,isInvalid:f=!1,as:d="input",...y},v)=>{const{controlId:p}=g.useContext(da);return n=Qe(n,"form-check-input"),h.jsx(d,{...y,ref:v,type:s,id:l||p,className:Ae(c,n,u&&"is-valid",f&&"is-invalid")})});nf.displayName="FormCheckInput";const qu=g.forwardRef(({bsPrefix:l,className:n,htmlFor:c,...s},u)=>{const{controlId:f}=g.useContext(da);return l=Qe(l,"form-check-label"),h.jsx("label",{...s,ref:u,htmlFor:c||f,className:Ae(n,l)})});qu.displayName="FormCheckLabel";const Ep=g.forwardRef(({id:l,bsPrefix:n,bsSwitchPrefix:c,inline:s=!1,reverse:u=!1,disabled:f=!1,isValid:d=!1,isInvalid:y=!1,feedbackTooltip:v=!1,feedback:p,feedbackType:b,className:R,style:S,title:_="",type:O="checkbox",label:H,children:U,as:M="input",...q},Y)=>{n=Qe(n,"form-check"),c=Qe(c,"form-switch");const{controlId:J}=g.useContext(da),G=g.useMemo(()=>({controlId:l||J}),[J,l]),N=!U&&H!=null&&H!==!1||_b(U,qu),W=h.jsx(nf,{...q,type:O==="switch"?"checkbox":O,ref:Y,isValid:d,isInvalid:y,disabled:f,as:M});return h.jsx(da.Provider,{value:G,children:h.jsx("div",{style:S,className:Ae(R,N&&n,s&&`${n}-inline`,u&&`${n}-reverse`,O==="switch"&&c),children:U||h.jsxs(h.Fragment,{children:[W,N&&h.jsx(qu,{title:_,children:H}),p&&h.jsx(Fu,{type:b,tooltip:v,children:p})]})})})});Ep.displayName="FormCheck";const Vu=Object.assign(Ep,{Input:nf,Label:qu}),bp=g.forwardRef(({bsPrefix:l,type:n,size:c,htmlSize:s,id:u,className:f,isValid:d=!1,isInvalid:y=!1,plaintext:v,readOnly:p,as:b="input",...R},S)=>{const{controlId:_}=g.useContext(da);return l=Qe(l,"form-control"),h.jsx(b,{...R,type:n,size:s,ref:S,readOnly:p,id:u||_,className:Ae(f,v?`${l}-plaintext`:l,c&&`${l}-${c}`,n==="color"&&`${l}-color`,d&&"is-valid",y&&"is-invalid")})});bp.displayName="FormControl";const wb=Object.assign(bp,{Feedback:Fu}),Sp=g.forwardRef(({className:l,bsPrefix:n,as:c="div",...s},u)=>(n=Qe(n,"form-floating"),h.jsx(c,{ref:u,className:Ae(l,n),...s})));Sp.displayName="FormFloating";const af=g.forwardRef(({controlId:l,as:n="div",...c},s)=>{const u=g.useMemo(()=>({controlId:l}),[l]);return h.jsx(da.Provider,{value:u,children:h.jsx(n,{...c,ref:s})})});af.displayName="FormGroup";const xp=g.forwardRef(({as:l="label",bsPrefix:n,column:c=!1,visuallyHidden:s=!1,className:u,htmlFor:f,...d},y)=>{const{controlId:v}=g.useContext(da);n=Qe(n,"form-label");let p="col-form-label";typeof c=="string"&&(p=`${p} ${p}-${c}`);const b=Ae(u,n,s&&"visually-hidden",c&&p);return f=f||v,c?h.jsx(ln,{ref:y,as:"label",className:b,htmlFor:f,...d}):h.jsx(l,{ref:y,className:b,htmlFor:f,...d})});xp.displayName="FormLabel";const _p=g.forwardRef(({bsPrefix:l,className:n,id:c,...s},u)=>{const{controlId:f}=g.useContext(da);return l=Qe(l,"form-range"),h.jsx("input",{...s,type:"range",ref:u,className:Ae(n,l),id:c||f})});_p.displayName="FormRange";const Rp=g.forwardRef(({bsPrefix:l,size:n,htmlSize:c,className:s,isValid:u=!1,isInvalid:f=!1,id:d,...y},v)=>{const{controlId:p}=g.useContext(da);return l=Qe(l,"form-select"),h.jsx("select",{...y,size:c,ref:v,className:Ae(s,l,n&&`${l}-${n}`,u&&"is-valid",f&&"is-invalid"),id:d||p})});Rp.displayName="FormSelect";const Tp=g.forwardRef(({bsPrefix:l,className:n,as:c="small",muted:s,...u},f)=>(l=Qe(l,"form-text"),h.jsx(c,{...u,ref:f,className:Ae(n,l,s&&"text-muted")})));Tp.displayName="FormText";const Np=g.forwardRef((l,n)=>h.jsx(Vu,{...l,ref:n,type:"switch"}));Np.displayName="Switch";const Ab=Object.assign(Np,{Input:Vu.Input,Label:Vu.Label}),Cp=g.forwardRef(({bsPrefix:l,className:n,children:c,controlId:s,label:u,...f},d)=>(l=Qe(l,"form-floating"),h.jsxs(af,{ref:d,className:Ae(n,l),controlId:s,...f,children:[c,h.jsx("label",{htmlFor:s,children:u})]})));Cp.displayName="FloatingLabel";const Mb={_ref:fa.any,validated:fa.bool,as:fa.elementType},lf=g.forwardRef(({className:l,validated:n,as:c="form",...s},u)=>h.jsx(c,{...s,ref:u,className:Ae(l,n&&"was-validated")}));lf.displayName="Form";lf.propTypes=Mb;const Du=Object.assign(lf,{Group:af,Control:wb,Floating:Sp,Check:Vu,Switch:Ab,Label:xp,Text:Tp,Range:_p,Select:Rp,FloatingLabel:Cp}),xy=l=>!l||typeof l=="function"?l:n=>{l.current=n};function zb(l,n){const c=xy(l),s=xy(n);return u=>{c&&c(u),s&&s(u)}}function rf(l,n){return g.useMemo(()=>zb(l,n),[l,n])}var wu;function _y(l){if((!wu&&wu!==0||l)&&ri){var n=document.createElement("div");n.style.position="absolute",n.style.top="-9999px",n.style.width="50px",n.style.height="50px",n.style.overflow="scroll",document.body.appendChild(n),wu=n.offsetWidth-n.clientWidth,document.body.removeChild(n)}return wu}function Lb(){return g.useState(null)}function xo(l){l===void 0&&(l=Ku());try{var n=l.activeElement;return!n||!n.nodeName?null:n}catch{return l.body}}function Ub(l){const n=g.useRef(l);return n.current=l,n}function Hb(l){const n=Ub(l);g.useEffect(()=>()=>n.current(),[])}function Bb(l=document){const n=l.defaultView;return Math.abs(n.innerWidth-l.documentElement.clientWidth)}const Ry=Ob("modal-open");class uf{constructor({ownerDocument:n,handleContainerOverflow:c=!0,isRTL:s=!1}={}){this.handleContainerOverflow=c,this.isRTL=s,this.modals=[],this.ownerDocument=n}getScrollbarWidth(){return Bb(this.ownerDocument)}getElement(){return(this.ownerDocument||document).body}setModalAttributes(n){}removeModalAttributes(n){}setContainerStyle(n){const c={overflow:"hidden"},s=this.isRTL?"paddingLeft":"paddingRight",u=this.getElement();n.style={overflow:u.style.overflow,[s]:u.style[s]},n.scrollBarWidth&&(c[s]=`${parseInt(gl(u,s)||"0",10)+n.scrollBarWidth}px`),u.setAttribute(Ry,""),gl(u,c)}reset(){[...this.modals].forEach(n=>this.remove(n))}removeContainerStyle(n){const c=this.getElement();c.removeAttribute(Ry),Object.assign(c.style,n.style)}add(n){let c=this.modals.indexOf(n);return c!==-1||(c=this.modals.length,this.modals.push(n),this.setModalAttributes(n),c!==0)||(this.state={scrollBarWidth:this.getScrollbarWidth(),style:{}},this.handleContainerOverflow&&this.setContainerStyle(this.state)),c}remove(n){const c=this.modals.indexOf(n);c!==-1&&(this.modals.splice(c,1),!this.modals.length&&this.handleContainerOverflow&&this.removeContainerStyle(this.state),this.removeModalAttributes(n))}isTopModal(n){return!!this.modals.length&&this.modals[this.modals.length-1]===n}}const _o=(l,n)=>ri?l==null?(n||Ku()).body:(typeof l=="function"&&(l=l()),l&&"current"in l&&(l=l.current),l&&("nodeType"in l||l.getBoundingClientRect)?l:null):null;function qb(l,n){const c=tf(),[s,u]=g.useState(()=>_o(l,c==null?void 0:c.document));if(!s){const f=_o(l);f&&u(f)}return g.useEffect(()=>{},[n,s]),g.useEffect(()=>{const f=_o(l);f!==s&&u(f)},[l,s]),s}function Vb({children:l,in:n,onExited:c,mountOnEnter:s,unmountOnExit:u}){const f=g.useRef(null),d=g.useRef(n),y=pl(c);g.useEffect(()=>{n?d.current=!0:y(f.current)},[n,y]);const v=rf(f,$u(l)),p=g.cloneElement(l,{ref:v});return n?p:u||!d.current&&s?null:p}const Yb=["onEnter","onEntering","onEntered","onExit","onExiting","onExited","addEndListener","children"];function kb(l,n){if(l==null)return{};var c={};for(var s in l)if({}.hasOwnProperty.call(l,s)){if(n.indexOf(s)>=0)continue;c[s]=l[s]}return c}function Gb(l){let{onEnter:n,onEntering:c,onEntered:s,onExit:u,onExiting:f,onExited:d,addEndListener:y,children:v}=l,p=kb(l,Yb);const b=g.useRef(null),R=rf(b,$u(v)),S=J=>G=>{J&&b.current&&J(b.current,G)},_=g.useCallback(S(n),[n]),O=g.useCallback(S(c),[c]),H=g.useCallback(S(s),[s]),U=g.useCallback(S(u),[u]),M=g.useCallback(S(f),[f]),q=g.useCallback(S(d),[d]),Y=g.useCallback(S(y),[y]);return Object.assign({},p,{nodeRef:b},n&&{onEnter:_},c&&{onEntering:O},s&&{onEntered:H},u&&{onExit:U},f&&{onExiting:M},d&&{onExited:q},y&&{addEndListener:Y},{children:typeof v=="function"?(J,G)=>v(J,Object.assign({},G,{ref:R})):g.cloneElement(v,{ref:R})})}const Xb=["component"];function Qb(l,n){if(l==null)return{};var c={};for(var s in l)if({}.hasOwnProperty.call(l,s)){if(n.indexOf(s)>=0)continue;c[s]=l[s]}return c}const Zb=g.forwardRef((l,n)=>{let{component:c}=l,s=Qb(l,Xb);const u=Gb(s);return h.jsx(c,Object.assign({ref:n},u))});function Kb({in:l,onTransition:n}){const c=g.useRef(null),s=g.useRef(!0),u=pl(n);return Ey(()=>{if(!c.current)return;let f=!1;return u({in:l,element:c.current,initial:s.current,isStale:()=>f}),()=>{f=!0}},[l,u]),Ey(()=>(s.current=!1,()=>{s.current=!0}),[]),c}function $b({children:l,in:n,onExited:c,onEntered:s,transition:u}){const[f,d]=g.useState(!n);n&&f&&d(!1);const y=Kb({in:!!n,onTransition:p=>{const b=()=>{p.isStale()||(p.in?s==null||s(p.element,p.initial):(d(!0),c==null||c(p.element)))};Promise.resolve(u(p)).then(b,R=>{throw p.in||d(!0),R})}}),v=rf(y,$u(l));return f&&!n?null:g.cloneElement(l,{ref:v})}function Ty(l,n,c){return l?h.jsx(Zb,Object.assign({},c,{component:l})):n?h.jsx($b,Object.assign({},c,{transition:n})):h.jsx(Vb,Object.assign({},c))}const Fb=["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 Jb(l,n){if(l==null)return{};var c={};for(var s in l)if({}.hasOwnProperty.call(l,s)){if(n.indexOf(s)>=0)continue;c[s]=l[s]}return c}let Ro;function Pb(l){return Ro||(Ro=new uf({ownerDocument:l==null?void 0:l.document})),Ro}function Wb(l){const n=tf(),c=l||Pb(n),s=g.useRef({dialog:null,backdrop:null});return Object.assign(s.current,{add:()=>c.add(s.current),remove:()=>c.remove(s.current),isTopModal:()=>c.isTopModal(s.current),setDialogRef:g.useCallback(u=>{s.current.dialog=u},[]),setBackdropRef:g.useCallback(u=>{s.current.backdrop=u},[])})}const jp=g.forwardRef((l,n)=>{let{show:c=!1,role:s="dialog",className:u,style:f,children:d,backdrop:y=!0,keyboard:v=!0,onBackdropClick:p,onEscapeKeyDown:b,transition:R,runTransition:S,backdropTransition:_,runBackdropTransition:O,autoFocus:H=!0,enforceFocus:U=!0,restoreFocus:M=!0,restoreFocusOptions:q,renderDialog:Y,renderBackdrop:J=De=>h.jsx("div",Object.assign({},De)),manager:G,container:N,onShow:W,onHide:ie=()=>{},onExit:X,onExited:I,onExiting:de,onEnter:Ne,onEntering:Ye,onEntered:Be}=l,ze=Jb(l,Fb);const K=tf(),ce=qb(N),ne=Wb(G),Re=sb(),T=ob(c),[Q,le]=g.useState(!c),te=g.useRef(null);g.useImperativeHandle(n,()=>ne,[ne]),ri&&!T&&c&&(te.current=xo(K==null?void 0:K.document)),c&&Q&&le(!1);const P=pl(()=>{if(ne.add(),Ee.current=Bu(document,"keydown",Ce),Le.current=Bu(document,"focus",()=>setTimeout(ye),!0),W&&W(),H){var De,Rt;const St=xo((De=(Rt=ne.dialog)==null?void 0:Rt.ownerDocument)!=null?De:K==null?void 0:K.document);ne.dialog&&St&&!by(ne.dialog,St)&&(te.current=St,ne.dialog.focus())}}),ge=pl(()=>{if(ne.remove(),Ee.current==null||Ee.current(),Le.current==null||Le.current(),M){var De;(De=te.current)==null||De.focus==null||De.focus(q),te.current=null}});g.useEffect(()=>{!c||!ce||P()},[c,ce,P]),g.useEffect(()=>{Q&&ge()},[Q,ge]),Hb(()=>{ge()});const ye=pl(()=>{if(!U||!Re()||!ne.isTopModal())return;const De=xo(K==null?void 0:K.document);ne.dialog&&De&&!by(ne.dialog,De)&&ne.dialog.focus()}),Je=pl(De=>{De.target===De.currentTarget&&(p==null||p(De),y===!0&&ie())}),Ce=pl(De=>{v&&PE(De)&&ne.isTopModal()&&(b==null||b(De),De.defaultPrevented||ie())}),Le=g.useRef(),Ee=g.useRef(),Ze=(...De)=>{le(!0),I==null||I(...De)};if(!ce)return null;const vt=Object.assign({role:s,ref:ne.setDialogRef,"aria-modal":s==="dialog"?!0:void 0},ze,{style:f,className:u,tabIndex:-1});let it=Y?Y(vt):h.jsx("div",Object.assign({},vt,{children:g.cloneElement(d,{role:"document"})}));it=Ty(R,S,{unmountOnExit:!0,mountOnEnter:!0,appear:!0,in:!!c,onExit:X,onExiting:de,onExited:Ze,onEnter:Ne,onEntering:Ye,onEntered:Be,children:it});let lt=null;return y&&(lt=J({ref:ne.setBackdropRef,onClick:Je}),lt=Ty(_,O,{in:!!c,appear:!0,mountOnEnter:!0,unmountOnExit:!0,children:lt})),h.jsx(h.Fragment,{children:ii.createPortal(h.jsxs(h.Fragment,{children:[lt,it]}),ce)})});jp.displayName="Modal";const Ib=Object.assign(jp,{Manager:uf});function eS(l,n){return l.classList?l.classList.contains(n):(" "+(l.className.baseVal||l.className)+" ").indexOf(" "+n+" ")!==-1}function tS(l,n){l.classList?l.classList.add(n):eS(l,n)||(typeof l.className=="string"?l.className=l.className+" "+n:l.setAttribute("class",(l.className&&l.className.baseVal||"")+" "+n))}function Ny(l,n){return l.replace(new RegExp("(^|\\s)"+n+"(?:\\s|$)","g"),"$1").replace(/\s+/g," ").replace(/^\s*|\s*$/g,"")}function nS(l,n){l.classList?l.classList.remove(n):typeof l.className=="string"?l.className=Ny(l.className,n):l.setAttribute("class",Ny(l.className&&l.className.baseVal||"",n))}const ni={FIXED_CONTENT:".fixed-top, .fixed-bottom, .is-fixed, .sticky-top",STICKY_CONTENT:".sticky-top",NAVBAR_TOGGLER:".navbar-toggler"};class aS extends uf{adjustAndStore(n,c,s){const u=c.style[n];c.dataset[n]=u,gl(c,{[n]:`${parseFloat(gl(c,n))+s}px`})}restore(n,c){const s=c.dataset[n];s!==void 0&&(delete c.dataset[n],gl(c,{[n]:s}))}setContainerStyle(n){super.setContainerStyle(n);const c=this.getElement();if(tS(c,"modal-open"),!n.scrollBarWidth)return;const s=this.isRTL?"paddingLeft":"paddingRight",u=this.isRTL?"marginLeft":"marginRight";ti(c,ni.FIXED_CONTENT).forEach(f=>this.adjustAndStore(s,f,n.scrollBarWidth)),ti(c,ni.STICKY_CONTENT).forEach(f=>this.adjustAndStore(u,f,-n.scrollBarWidth)),ti(c,ni.NAVBAR_TOGGLER).forEach(f=>this.adjustAndStore(u,f,n.scrollBarWidth))}removeContainerStyle(n){super.removeContainerStyle(n);const c=this.getElement();nS(c,"modal-open");const s=this.isRTL?"paddingLeft":"paddingRight",u=this.isRTL?"marginLeft":"marginRight";ti(c,ni.FIXED_CONTENT).forEach(f=>this.restore(s,f)),ti(c,ni.STICKY_CONTENT).forEach(f=>this.restore(u,f)),ti(c,ni.NAVBAR_TOGGLER).forEach(f=>this.restore(u,f))}}let To;function lS(l){return To||(To=new aS(l)),To}const Op=g.forwardRef(({className:l,bsPrefix:n,as:c="div",...s},u)=>(n=Qe(n,"modal-body"),h.jsx(c,{ref:u,className:Ae(l,n),...s})));Op.displayName="ModalBody";const Dp=g.createContext({onHide(){}}),cf=g.forwardRef(({bsPrefix:l,className:n,contentClassName:c,centered:s,size:u,fullscreen:f,children:d,scrollable:y,...v},p)=>{l=Qe(l,"modal");const b=`${l}-dialog`,R=typeof f=="string"?`${l}-fullscreen-${f}`:`${l}-fullscreen`;return h.jsx("div",{...v,ref:p,className:Ae(b,n,u&&`${l}-${u}`,s&&`${b}-centered`,y&&`${b}-scrollable`,f&&R),children:h.jsx("div",{className:Ae(`${l}-content`,c),children:d})})});cf.displayName="ModalDialog";const wp=g.forwardRef(({className:l,bsPrefix:n,as:c="div",...s},u)=>(n=Qe(n,"modal-footer"),h.jsx(c,{ref:u,className:Ae(l,n),...s})));wp.displayName="ModalFooter";const iS=g.forwardRef(({closeLabel:l="Close",closeVariant:n,closeButton:c=!1,onHide:s,children:u,...f},d)=>{const y=g.useContext(Dp),v=Ho(()=>{y==null||y.onHide(),s==null||s()});return h.jsxs("div",{ref:d,...f,children:[u,c&&h.jsx(Io,{"aria-label":l,variant:n,onClick:v})]})}),Ap=g.forwardRef(({bsPrefix:l,className:n,closeLabel:c="Close",closeButton:s=!1,...u},f)=>(l=Qe(l,"modal-header"),h.jsx(iS,{ref:f,...u,className:Ae(n,l),closeLabel:c,closeButton:s})));Ap.displayName="ModalHeader";const rS=Po("h4"),Mp=g.forwardRef(({className:l,bsPrefix:n,as:c=rS,...s},u)=>(n=Qe(n,"modal-title"),h.jsx(c,{ref:u,className:Ae(l,n),...s})));Mp.displayName="ModalTitle";function uS(l){return h.jsx(Wo,{...l,timeout:null})}function cS(l){return h.jsx(Wo,{...l,timeout:null})}const zp=g.forwardRef(({bsPrefix:l,className:n,style:c,dialogClassName:s,contentClassName:u,children:f,dialogAs:d=cf,"data-bs-theme":y,"aria-labelledby":v,"aria-describedby":p,"aria-label":b,show:R=!1,animation:S=!0,backdrop:_=!0,keyboard:O=!0,onEscapeKeyDown:H,onShow:U,onHide:M,container:q,autoFocus:Y=!0,enforceFocus:J=!0,restoreFocus:G=!0,restoreFocusOptions:N,onEntered:W,onExit:ie,onExiting:X,onEnter:I,onEntering:de,onExited:Ne,backdropClassName:Ye,manager:Be,...ze},K)=>{const[ce,ne]=g.useState({}),[Re,T]=g.useState(!1),Q=g.useRef(!1),le=g.useRef(!1),te=g.useRef(null),[P,ge]=Lb(),ye=rp(K,ge),Je=Ho(M),Ce=BE();l=Qe(l,"modal");const Le=g.useMemo(()=>({onHide:Je}),[Je]);function Ee(){return Be||lS({isRTL:Ce})}function Ze(_e){if(!ri)return;const Ie=Ee().getScrollbarWidth()>0,kt=_e.scrollHeight>Ku(_e).documentElement.clientHeight;ne({paddingRight:Ie&&!kt?_y():void 0,paddingLeft:!Ie&&kt?_y():void 0})}const vt=Ho(()=>{P&&Ze(P.dialog)});xb(()=>{Uo(window,"resize",vt),te.current==null||te.current()});const it=()=>{Q.current=!0},lt=_e=>{Q.current&&P&&_e.target===P.dialog&&(le.current=!0),Q.current=!1},De=()=>{T(!0),te.current=ip(P.dialog,()=>{T(!1)})},Rt=_e=>{_e.target===_e.currentTarget&&De()},St=_e=>{if(_==="static"){Rt(_e);return}if(le.current||_e.target!==_e.currentTarget){le.current=!1;return}M==null||M()},Pt=_e=>{O?H==null||H(_e):(_e.preventDefault(),_==="static"&&De())},Zt=(_e,Ie)=>{_e&&Ze(_e),I==null||I(_e,Ie)},un=_e=>{te.current==null||te.current(),ie==null||ie(_e)},cn=(_e,Ie)=>{de==null||de(_e,Ie),lp(window,"resize",vt)},Ut=_e=>{_e&&(_e.style.display=""),Ne==null||Ne(_e),Uo(window,"resize",vt)},Ht=g.useCallback(_e=>h.jsx("div",{..._e,className:Ae(`${l}-backdrop`,Ye,!S&&"show")}),[S,Ye,l]),mt={...c,...ce};mt.display="block";const Kt=_e=>h.jsx("div",{role:"dialog",..._e,style:mt,className:Ae(n,l,Re&&`${l}-static`,!S&&"show"),onClick:_?St:void 0,onMouseUp:lt,"data-bs-theme":y,"aria-label":b,"aria-labelledby":v,"aria-describedby":p,children:h.jsx(d,{...ze,onMouseDown:it,className:s,contentClassName:u,children:f})});return h.jsx(Dp.Provider,{value:Le,children:h.jsx(Ib,{show:R,ref:ye,backdrop:_,container:q,keyboard:!0,autoFocus:Y,enforceFocus:J,restoreFocus:G,restoreFocusOptions:N,onEscapeKeyDown:Pt,onShow:U,onHide:M,onEnter:Zt,onEntering:cn,onEntered:W,onExit:un,onExiting:X,onExited:Ut,manager:Ee(),transition:S?uS:void 0,backdropTransition:S?cS:void 0,renderBackdrop:Ht,renderDialog:Kt})})});zp.displayName="Modal";const ir=Object.assign(zp,{Body:Op,Header:Ap,Title:Mp,Footer:wp,Dialog:cf,TRANSITION_DURATION:300,BACKDROP_TRANSITION_DURATION:150}),Rn=g.forwardRef(({bsPrefix:l,className:n,as:c="div",...s},u)=>{const f=Qe(l,"row"),d=tp(),y=np(),v=`${f}-cols`,p=[];return d.forEach(b=>{const R=s[b];delete s[b];let S;R!=null&&typeof R=="object"?{cols:S}=R:S=R;const _=b!==y?`-${b}`:"";S!=null&&p.push(`${v}${_}-${S}`)}),h.jsx(c,{ref:u,...s,className:Ae(n,f,...p)})});Rn.displayName="Row";const sS="/static/DY3vaYXT.svg";function oS(){const l=Ke.c(6),{user:n}=g.useContext(Fo),{pathname:c}=Xn();let s;l[0]===Symbol.for("react.memo_cache_sentinel")?(s=h.jsx(ln,{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:sS,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(Tn,{className:"nav-link-entry",to:"/",children:"COMPENDIUM"})})]})]})})}),l[0]=s):s=l[0];let u;l[1]!==c||l[2]!==n.permissions.admin?(u=n.permissions.admin&&!c.includes("survey")&&h.jsx("div",{className:"nav-link",style:{float:"right"},children:h.jsx(Tn,{className:"nav-link-entry",to:"/survey",children:h.jsx("span",{children:"Go to Survey"})})}),l[1]=c,l[2]=n.permissions.admin,l[3]=u):u=l[3];let f;return l[4]!==u?(f=h.jsx("div",{className:"external-page-nav-bar",children:h.jsx(Ya,{children:h.jsxs(Rn,{children:[s,h.jsx(ln,{xs:2,children:u})]})})}),l[4]=u,l[5]=f):f=l[5],f}const fS="/static/A3T3A-a_.svg",dS="/static/DOOiIGTs.png";function hS(){const l=Ke.c(9);let n;l[0]===Symbol.for("react.memo_cache_sentinel")?(n=h.jsx("a",{href:"https://geant.org",children:h.jsx("img",{src:fS,className:"m-3",style:{maxWidth:"100px"},alt:"GÉANT Logo"})}),l[0]=n):n=l[0];let c;l[1]===Symbol.for("react.memo_cache_sentinel")?(c=h.jsxs(ln,{children:[n,h.jsx("img",{src:dS,className:"m-3",style:{maxWidth:"200px"},alt:"European Union Flag"})]}),l[1]=c):c=l[1];let s,u;l[2]===Symbol.for("react.memo_cache_sentinel")?(s=h.jsx("a",{className:"mx-3 footer-link",href:"https://geant.org/Disclaimer/",children:"Disclaimer"}),u=h.jsx("wbr",{}),l[2]=s,l[3]=u):(s=l[2],u=l[3]);let f,d;l[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"}),d=h.jsx("wbr",{}),l[4]=f,l[5]=d):(f=l[4],d=l[5]);let y,v;l[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",{}),l[6]=y,l[7]=v):(y=l[6],v=l[7]);let p;return l[8]===Symbol.for("react.memo_cache_sentinel")?(p=h.jsx("footer",{className:"page-footer pt-3",children:h.jsx(Ya,{children:h.jsxs(Rn,{children:[c,h.jsx(ln,{className:"mt-4 text-end",children:h.jsxs("span",{children:[s,u,"|",f,d,"|",y,v,"|",h.jsx("a",{className:"mx-3 footer-link",style:{cursor:"pointer"},onClick:mS,children:"Analytics Consent"})]})})]})})}),l[8]=p):p=l[8],p}function mS(){localStorage.removeItem("matomo_consent"),window.location.reload()}const Lp="/static/C4lsyu6A.svg",Up="/static/DhA-EmEc.svg";function Hp(){const l=Ke.c(16),n=g.useContext(ep);let c;l[0]!==n?(c=O=>n==null?void 0:n.trackPageView(O),l[0]=n,l[1]=c):c=l[1];const s=c;let u;l[2]!==n?(u=O=>n==null?void 0:n.trackEvent(O),l[2]=n,l[3]=u):u=l[3];const f=u;let d;l[4]!==n?(d=()=>n==null?void 0:n.trackEvents(),l[4]=n,l[5]=d):d=l[5];const y=d;let v;l[6]!==n?(v=O=>n==null?void 0:n.trackLink(O),l[6]=n,l[7]=v):v=l[7];const p=v,b=yS;let R;l[8]!==n?(R=(O,...H)=>{const U=H;n==null||n.pushInstruction(O,...U)},l[8]=n,l[9]=R):R=l[9];const S=R;let _;return l[10]!==S||l[11]!==f||l[12]!==y||l[13]!==p||l[14]!==s?(_={trackEvent:f,trackEvents:y,trackPageView:s,trackLink:p,enableLinkTracking:b,pushInstruction:S},l[10]=S,l[11]=f,l[12]=y,l[13]=p,l[14]=s,l[15]=_):_=l[15],_}function yS(){}function Bp(){const l=Ke.c(13),{trackPageView:n}=Hp();let c,s;l[0]!==n?(c=()=>{n({documentTitle:"GEANT Compendium Landing Page"})},s=[n],l[0]=n,l[1]=c,l[2]=s):(c=l[1],s=l[2]),g.useEffect(c,s);let u;l[3]===Symbol.for("react.memo_cache_sentinel")?(u=h.jsx("h1",{className:"geant-header",children:"THE GÉANT COMPENDIUM OF NRENS"}),l[3]=u):u=l[3];let f;l[4]===Symbol.for("react.memo_cache_sentinel")?(f=h.jsx(Rn,{children:h.jsxs("div",{className:"center-text",children:[u,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."})]})]})}),l[4]=f):f=l[4];let d;l[5]===Symbol.for("react.memo_cache_sentinel")?(d={backgroundColor:"white"},l[5]=d):d=l[5];let y;l[6]===Symbol.for("react.memo_cache_sentinel")?(y={width:"18rem"},l[6]=y):y=l[6];let v;l[7]===Symbol.for("react.memo_cache_sentinel")?(v=h.jsx(Yn.Img,{src:Lp}),l[7]=v):v=l[7];let p;l[8]===Symbol.for("react.memo_cache_sentinel")?(p=h.jsx(Yn.Title,{children:"Compendium Data"}),l[8]=p):p=l[8];let b;l[9]===Symbol.for("react.memo_cache_sentinel")?(b=h.jsx(ln,{align:"center",children:h.jsx(Yn,{border:"light",style:y,children:h.jsxs(Tn,{to:"/data",className:"link-text",children:[v,h.jsxs(Yn.Body,{children:[p,h.jsx(Yn.Text,{children:h.jsx("span",{children:"Statistical representation of the annual Compendium Survey data is available here"})})]})]})})}),l[9]=b):b=l[9];let R;l[10]===Symbol.for("react.memo_cache_sentinel")?(R={width:"18rem"},l[10]=R):R=l[10];let S;l[11]===Symbol.for("react.memo_cache_sentinel")?(S=h.jsx(Yn.Img,{src:Up}),l[11]=S):S=l[11];let _;return l[12]===Symbol.for("react.memo_cache_sentinel")?(_=h.jsxs(Ya,{className:"py-5 grey-container",children:[f,h.jsx(Rn,{children:h.jsx(ln,{children:h.jsx(Ya,{style:d,className:"rounded-border",children:h.jsxs(Rn,{className:"justify-content-md-center",children:[b,h.jsx(ln,{align:"center",children:h.jsx(Yn,{border:"light",style:R,children:h.jsxs("a",{href:"https://resources.geant.org/geant-compendia/",className:"link-text",target:"_blank",rel:"noreferrer",children:[S,h.jsxs(Yn.Body,{children:[h.jsx(Yn.Title,{children:"Compendium Reports"}),h.jsx(Yn.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"})]})]})})})]})})})})]}),l[12]=_):_=l[12],_}var qp={color:void 0,size:void 0,className:void 0,style:void 0,attr:void 0},Cy=Yt.createContext&&Yt.createContext(qp),pS=["attr","size","title"];function vS(l,n){if(l==null)return{};var c=gS(l,n),s,u;if(Object.getOwnPropertySymbols){var f=Object.getOwnPropertySymbols(l);for(u=0;u<f.length;u++)s=f[u],!(n.indexOf(s)>=0)&&Object.prototype.propertyIsEnumerable.call(l,s)&&(c[s]=l[s])}return c}function gS(l,n){if(l==null)return{};var c={};for(var s in l)if(Object.prototype.hasOwnProperty.call(l,s)){if(n.indexOf(s)>=0)continue;c[s]=l[s]}return c}function Yu(){return Yu=Object.assign?Object.assign.bind():function(l){for(var n=1;n<arguments.length;n++){var c=arguments[n];for(var s in c)Object.prototype.hasOwnProperty.call(c,s)&&(l[s]=c[s])}return l},Yu.apply(this,arguments)}function jy(l,n){var c=Object.keys(l);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(l);n&&(s=s.filter(function(u){return Object.getOwnPropertyDescriptor(l,u).enumerable})),c.push.apply(c,s)}return c}function ku(l){for(var n=1;n<arguments.length;n++){var c=arguments[n]!=null?arguments[n]:{};n%2?jy(Object(c),!0).forEach(function(s){ES(l,s,c[s])}):Object.getOwnPropertyDescriptors?Object.defineProperties(l,Object.getOwnPropertyDescriptors(c)):jy(Object(c)).forEach(function(s){Object.defineProperty(l,s,Object.getOwnPropertyDescriptor(c,s))})}return l}function ES(l,n,c){return n=bS(n),n in l?Object.defineProperty(l,n,{value:c,enumerable:!0,configurable:!0,writable:!0}):l[n]=c,l}function bS(l){var n=SS(l,"string");return typeof n=="symbol"?n:n+""}function SS(l,n){if(typeof l!="object"||!l)return l;var c=l[Symbol.toPrimitive];if(c!==void 0){var s=c.call(l,n||"default");if(typeof s!="object")return s;throw new TypeError("@@toPrimitive must return a primitive value.")}return(n==="string"?String:Number)(l)}function Vp(l){return l&&l.map((n,c)=>Yt.createElement(n.tag,ku({key:c},n.attr),Vp(n.child)))}function Yp(l){return n=>Yt.createElement(xS,Yu({attr:ku({},l.attr)},n),Vp(l.child))}function xS(l){var n=c=>{var{attr:s,size:u,title:f}=l,d=vS(l,pS),y=u||c.size||"1em",v;return c.className&&(v=c.className),l.className&&(v=(v?v+" ":"")+l.className),Yt.createElement("svg",Yu({stroke:"currentColor",fill:"currentColor",strokeWidth:"0"},c.attr,s,d,{className:v,style:ku(ku({color:l.color||c.color},c.style),l.style),height:y,width:y,xmlns:"http://www.w3.org/2000/svg"}),f&&Yt.createElement("title",null,f),l.children)};return Cy!==void 0?Yt.createElement(Cy.Consumer,null,c=>n(c)):n(qp)}function _S(l){return Yp({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:[]}]})(l)}function RS(l){return Yp({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:[]}]})(l)}const rr=l=>{const n=Ke.c(23),{title:c,children:s,startCollapsed:u,theme:f}=l,d=f===void 0?"":f,[y,v]=g.useState(!!u);let p;n[0]===Symbol.for("react.memo_cache_sentinel")?(p={color:"white",paddingBottom:"3px",marginTop:"3px",marginLeft:"3px",scale:"1.3"},n[0]=p):p=n[0];let b=p;if(d){let G;n[1]===Symbol.for("react.memo_cache_sentinel")?(G={...b,color:"black",fontWeight:"bold"},n[1]=G):G=n[1],b=G}const R=`collapsible-box${d} p-0`;let S;n[2]!==c?(S=h.jsx(ln,{children:h.jsx("h1",{className:"bold-caps-16pt dark-teal pt-3 ps-3",children:c})}),n[2]=c,n[3]=S):S=n[3];const _=`toggle-btn${d} p-${d?3:2}`;let O;n[4]!==y?(O=()=>v(!y),n[4]=y,n[5]=O):O=n[5];let H;n[6]!==y||n[7]!==b?(H=y?h.jsx(RS,{style:b}):h.jsx(_S,{style:b}),n[6]=y,n[7]=b,n[8]=H):H=n[8];let U;n[9]!==_||n[10]!==O||n[11]!==H?(U=h.jsx(ln,{className:"flex-grow-0 flex-shrink-1",children:h.jsx("div",{className:_,onClick:O,children:H})}),n[9]=_,n[10]=O,n[11]=H,n[12]=U):U=n[12];let M;n[13]!==S||n[14]!==U?(M=h.jsxs(Rn,{children:[S,U]}),n[13]=S,n[14]=U,n[15]=M):M=n[15];const q=`collapsible-content${y?" collapsed":""}`;let Y;n[16]!==s||n[17]!==q?(Y=h.jsx("div",{className:q,children:s}),n[16]=s,n[17]=q,n[18]=Y):Y=n[18];let J;return n[19]!==Y||n[20]!==R||n[21]!==M?(J=h.jsxs("div",{className:R,children:[M,Y]}),n[19]=Y,n[20]=R,n[21]=M,n[22]=J):J=n[22],J};function TS(l){const n=Ke.c(8),{section:c}=l;let s;n[0]===Symbol.for("react.memo_cache_sentinel")?(s={display:"flex",alignSelf:"right",lineHeight:"1.5rem",marginTop:"0.5rem"},n[0]=s):s=n[0];let u,f;n[1]===Symbol.for("react.memo_cache_sentinel")?(u=h.jsx("br",{}),f={float:"right"},n[1]=u,n[2]=f):(u=n[1],f=n[2]);let d;n[3]!==c?(d=h.jsx("div",{style:s,children:h.jsxs("span",{children:["Compendium ",u,h.jsx("span",{style:f,children:c})]})}),n[3]=c,n[4]=d):d=n[4];let y;n[5]===Symbol.for("react.memo_cache_sentinel")?(y=h.jsx("img",{src:Up,style:{maxWidth:"4rem"},alt:"Compendium Data logo"}),n[5]=y):y=n[5];let v;return n[6]!==d?(v=h.jsxs("div",{className:"bold-caps-17pt section-container",children:[d,y]}),n[6]=d,n[7]=v):v=n[7],v}function NS(l){const n=Ke.c(14),{type:c}=l;let s="";c=="data"?s=" compendium-data-header":c=="reports"&&(s=" compendium-reports-header");let u;n[0]===Symbol.for("react.memo_cache_sentinel")?(u={marginTop:"0.5rem"},n[0]=u):u=n[0];const f=c==="data"?"/data":"/";let d;n[1]===Symbol.for("react.memo_cache_sentinel")?(d={textDecoration:"none",color:"white"},n[1]=d):d=n[1];const y=c==="data"?"Data":"Reports";let v;n[2]!==y?(v=h.jsxs("span",{children:["Compendium ",y]}),n[2]=y,n[3]=v):v=n[3];let p;n[4]!==f||n[5]!==v?(p=h.jsx(ln,{sm:8,children:h.jsx("h1",{className:"bold-caps-30pt",style:u,children:h.jsx(Tn,{to:f,style:d,children:v})})}),n[4]=f,n[5]=v,n[6]=p):p=n[6];let b;n[7]===Symbol.for("react.memo_cache_sentinel")?(b={color:"inherit"},n[7]=b):b=n[7];let R;n[8]===Symbol.for("react.memo_cache_sentinel")?(R=h.jsx(ln,{sm:4,children:h.jsx("a",{style:b,href:"https://resources.geant.org/geant-compendia/",target:"_blank",rel:"noreferrer",children:h.jsx(TS,{section:"Reports"})})}),n[8]=R):R=n[8];let S;n[9]!==p?(S=h.jsx(Ya,{children:h.jsxs(Rn,{children:[p,R]})}),n[9]=p,n[10]=S):S=n[10];let _;return n[11]!==s||n[12]!==S?(_=h.jsx("div",{className:s,children:S}),n[11]=s,n[12]=S,n[13]=_):_=n[13],_}function CS(l){const n=Ke.c(8),{children:c,type:s}=l;let u="";s=="data"?u=" compendium-data-banner":s=="reports"&&(u=" compendium-reports-banner");let f,d;n[0]===Symbol.for("react.memo_cache_sentinel")?(f=h.jsx("img",{src:Lp,style:{maxWidth:"7rem",marginBottom:"1rem"},alt:"Compendium Data logo"}),d={display:"flex",alignSelf:"right"},n[0]=f,n[1]=d):(f=n[0],d=n[1]);let y;n[2]===Symbol.for("react.memo_cache_sentinel")?(y={paddingTop:"1rem"},n[2]=y):y=n[2];let v;n[3]!==c?(v=h.jsx(Ya,{children:h.jsx(Rn,{children:h.jsx(Rn,{children:h.jsxs("div",{className:"section-container",children:[f,h.jsx("div",{style:d,children:h.jsx("div",{className:"center-text",style:y,children:c})})]})})})}),n[3]=c,n[4]=v):v=n[4];let p;return n[5]!==u||n[6]!==v?(p=h.jsx("div",{className:u,children:v}),n[5]=u,n[6]=v,n[7]=p):p=n[7],p}var li=(l=>(l.Organisation="ORGANISATION",l.Policy="STANDARDS AND POLICIES",l.ConnectedUsers="CONNECTED USERS",l.Network="NETWORK",l.Services="SERVICES",l))(li||{}),jS=(l=>(l.CSV="CSV",l.EXCEL="EXCEL",l))(jS||{}),OS=(l=>(l.PNG="png",l.JPEG="jpeg",l.SVG="svg",l))(OS||{});const V2={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"},Y2={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"},k2={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 DS(){const l=Ke.c(7),{preview:n,setPreview:c}=g.useContext(Iy),{user:s}=g.useContext(Fo),[u]=lE();let f;l[0]!==u?(f=u.get("preview"),l[0]=u,l[1]=f):f=l[1];const d=f;let y,v;return l[2]!==d||l[3]!==c||l[4]!==s?(y=()=>{d!==null&&(s.permissions.admin||s.role=="observer")&&c(!0)},v=[d,c,s],l[2]=d,l[3]=c,l[4]=s,l[5]=y,l[6]=v):(y=l[5],v=l[6]),g.useEffect(y,v),n}function yr(l){const n=Ke.c(9),{to:c,children:s}=l,u=window.location.pathname===c,f=g.useRef(null);let d,y;n[0]!==u?(d=()=>{u&&f.current&&f.current.scrollIntoView({behavior:"smooth",block:"center"})},y=[u],n[0]=u,n[1]=d,n[2]=y):(d=n[1],y=n[2]),g.useEffect(d,y);let v;n[3]!==s||n[4]!==u?(v=u?h.jsx("b",{children:s}):s,n[3]=s,n[4]=u,n[5]=v):v=n[5];let p;return n[6]!==v||n[7]!==c?(p=h.jsx(Rn,{children:h.jsx(Tn,{to:c,className:"link-text-underline",ref:f,children:v})}),n[6]=v,n[7]=c,n[8]=p):p=n[8],p}const se={budget:"Budget of NRENs per Year",funding:"Income Source of NRENs",charging:"Charging Mechanism of NRENs","employee-count":"Number of NREN Employees",roles:"Roles of NREN employees (Technical v. Non-Technical)",employment:"Types of Employment within NRENs",suborganisations:"NREN Sub-Organisations",parentorganisation:"NREN Parent Organisations","ec-projects":"NREN Involvement in European Commission Projects",policy:"NREN Policies",audits:"External and Internal Audits of Information Security Management Systems","business-continuity":"NREN Business Continuity Planning","central-procurement":"Value of Software Procured for Customers by NRENs","crisis-management":"Crisis Management Procedures","crisis-exercise":"Crisis Exercises - NREN Operation and Participation",eosc_listings:"NREN Services Listed on the EOSC Portal","security-control":"Security Controls Used by NRENs","services-offered":"Services Offered by NRENs by Types of Users","corporate-strategy":"NREN Corporate Strategies","service-level-targets":"NRENs Offering Service Level Targets","service-management-framework":"NRENs Operating a Formal Service Management Framework","institutions-urls":"Webpages Listing Institutions and Organisations Connected to NREN Networks","connected-proportion":"Proportion of Different Categories of Institutions Served by NRENs","connectivity-level":"Level of IP Connectivity by Institution Type","connection-carrier":"Methods of Carrying IP Traffic to Users","connectivity-load":"Connectivity Load","connectivity-growth":"Connectivity Growth","remote-campuses":"NREN Connectivity to Remote Campuses in Other Countries","commercial-charging-level":"Commercial Charging Level","commercial-connectivity":"Commercial Connectivity","traffic-volume":"NREN Traffic - NREN Customers & External Networks","iru-duration":"Average Duration of IRU leases of Fibre by NRENs","fibre-light":"Approaches to lighting NREN fibre networks","dark-fibre-lease":"Kilometres of Leased Dark Fibre (National)","dark-fibre-lease-international":"Kilometres of Leased Dark Fibre (International)","dark-fibre-installed":"Kilometres of Installed Dark Fibre","network-map":"NREN Network Maps","monitoring-tools":"Tools for Monitoring or Troubleshooting the Network - Offered to Client Institutions","pert-team":"NRENs with Performance Enhancement Response Teams","passive-monitoring":"Methods for Passively Monitoring International Traffic","traffic-stats":"Traffic Statistics","weather-map":"NREN Online Network Weather Maps","certificate-provider":"Certification Services used by NRENs","siem-vendors":"Vendors of SIEM/SOC systems used by NRENs","alien-wave":"NREN Use of 3rd Party Alienwave/Lightpath Services","alien-wave-internal":"Internal NREN Use of Alien Waves","capacity-largest-link":"Capacity of the Largest Link in an NREN Network","external-connections":"NREN External IP Connections","capacity-core-ip":"NREN Core IP Capacity","non-rne-peers":"Number of Non-R&E Networks NRENs Peer With","traffic-ratio":"Types of traffic in NREN networks (Commodity v. Research & Education)","ops-automation":"NREN Automation of Operational Processes","network-automation":"Network Tasks for which NRENs Use Automation",nfv:"Kinds of Network Function Virtualisation used by NRENs","network-services":"NREN Network services matrix","isp-support-services":"NREN ISP support services matrix","security-services":"NREN Security services matrix","identity-services":"NREN Identity services matrix","collaboration-services":"NREN Collaboration services matrix","multimedia-services":"NREN Multimedia services matrix","storage-and-hosting-services":"NREN Storage and hosting services matrix","professional-services":"NREN Professional services matrix"};function wS(l){const n=Ke.c(52),{sidebar:c}=l,s=c===void 0?!1:c,u=s?yr:Tn,f=s?"":"link-text-underline";let d;n[0]!==s?(d=s&&h.jsx("h5",{children:"Organisation"}),n[0]=s,n[1]=d):d=n[1];let y;n[2]===Symbol.for("react.memo_cache_sentinel")?(y=h.jsx("h6",{className:"section-title",children:"Budget, Income and Billing"}),n[2]=y):y=n[2];let v;n[3]===Symbol.for("react.memo_cache_sentinel")?(v=h.jsx("span",{children:se.budget}),n[3]=v):v=n[3];let p;n[4]!==u||n[5]!==f?(p=h.jsx(u,{to:"/budget",className:f,children:v}),n[4]=u,n[5]=f,n[6]=p):p=n[6];let b;n[7]===Symbol.for("react.memo_cache_sentinel")?(b=h.jsx("span",{children:se.funding}),n[7]=b):b=n[7];let R;n[8]!==u||n[9]!==f?(R=h.jsx(u,{to:"/funding",className:f,children:b}),n[8]=u,n[9]=f,n[10]=R):R=n[10];let S;n[11]===Symbol.for("react.memo_cache_sentinel")?(S=h.jsx("span",{children:se.charging}),n[11]=S):S=n[11];let _;n[12]!==u||n[13]!==f?(_=h.jsx(u,{to:"/charging",className:f,children:S}),n[12]=u,n[13]=f,n[14]=_):_=n[14];let O,H;n[15]===Symbol.for("react.memo_cache_sentinel")?(O=h.jsx("hr",{className:"fake-divider"}),H=h.jsx("h6",{className:"section-title",children:"Staff and Projects"}),n[15]=O,n[16]=H):(O=n[15],H=n[16]);let U;n[17]===Symbol.for("react.memo_cache_sentinel")?(U=h.jsx("span",{children:se["employee-count"]}),n[17]=U):U=n[17];let M;n[18]!==u||n[19]!==f?(M=h.jsx(u,{to:"/employee-count",className:f,children:U}),n[18]=u,n[19]=f,n[20]=M):M=n[20];let q;n[21]===Symbol.for("react.memo_cache_sentinel")?(q=h.jsx("span",{children:se.employment}),n[21]=q):q=n[21];let Y;n[22]!==u||n[23]!==f?(Y=h.jsx(u,{to:"/employment",className:f,children:q}),n[22]=u,n[23]=f,n[24]=Y):Y=n[24];let J;n[25]===Symbol.for("react.memo_cache_sentinel")?(J=h.jsx("span",{children:se.roles}),n[25]=J):J=n[25];let G;n[26]!==u||n[27]!==f?(G=h.jsx(u,{to:"/roles",className:f,children:J}),n[26]=u,n[27]=f,n[28]=G):G=n[28];let N;n[29]===Symbol.for("react.memo_cache_sentinel")?(N=h.jsx("span",{children:se.parentorganisation}),n[29]=N):N=n[29];let W;n[30]!==u||n[31]!==f?(W=h.jsx(u,{to:"/parentorganisation",className:f,children:N}),n[30]=u,n[31]=f,n[32]=W):W=n[32];let ie;n[33]===Symbol.for("react.memo_cache_sentinel")?(ie=h.jsx("span",{children:se.suborganisations}),n[33]=ie):ie=n[33];let X;n[34]!==u||n[35]!==f?(X=h.jsx(u,{to:"/suborganisations",className:f,children:ie}),n[34]=u,n[35]=f,n[36]=X):X=n[36];let I;n[37]===Symbol.for("react.memo_cache_sentinel")?(I=h.jsx("span",{children:se["ec-projects"]}),n[37]=I):I=n[37];let de;n[38]!==u||n[39]!==f?(de=h.jsx(u,{to:"/ec-projects",className:f,children:I}),n[38]=u,n[39]=f,n[40]=de):de=n[40];let Ne;return n[41]!==M||n[42]!==Y||n[43]!==G||n[44]!==W||n[45]!==d||n[46]!==X||n[47]!==de||n[48]!==p||n[49]!==R||n[50]!==_?(Ne=h.jsxs(h.Fragment,{children:[d,y,p,R,_,O,H,M,Y,G,W,X,de]}),n[41]=M,n[42]=Y,n[43]=G,n[44]=W,n[45]=d,n[46]=X,n[47]=de,n[48]=p,n[49]=R,n[50]=_,n[51]=Ne):Ne=n[51],Ne}function AS(l){const n=Ke.c(61),{sidebar:c}=l,s=c===void 0?!1:c,u=s?yr:Tn,f=s?"":"link-text-underline";let d;n[0]!==s?(d=s&&h.jsx("h5",{children:"Standards And Policies"}),n[0]=s,n[1]=d):d=n[1];let y;n[2]===Symbol.for("react.memo_cache_sentinel")?(y=h.jsx("h6",{className:"section-title",children:"Policy & Portfolio"}),n[2]=y):y=n[2];let v;n[3]===Symbol.for("react.memo_cache_sentinel")?(v=h.jsx("span",{children:se["corporate-strategy"]}),n[3]=v):v=n[3];let p;n[4]!==u||n[5]!==f?(p=h.jsx(u,{to:"/corporate-strategy",className:f,children:v}),n[4]=u,n[5]=f,n[6]=p):p=n[6];let b;n[7]===Symbol.for("react.memo_cache_sentinel")?(b=h.jsx("span",{children:se.policy}),n[7]=b):b=n[7];let R;n[8]!==u||n[9]!==f?(R=h.jsx(u,{to:"/policy",className:f,children:b}),n[8]=u,n[9]=f,n[10]=R):R=n[10];let S;n[11]===Symbol.for("react.memo_cache_sentinel")?(S=h.jsx("span",{children:se["central-procurement"]}),n[11]=S):S=n[11];let _;n[12]!==u||n[13]!==f?(_=h.jsx(u,{to:"/central-procurement",className:f,children:S}),n[12]=u,n[13]=f,n[14]=_):_=n[14];let O;n[15]===Symbol.for("react.memo_cache_sentinel")?(O=h.jsx("span",{children:se["service-management-framework"]}),n[15]=O):O=n[15];let H;n[16]!==u||n[17]!==f?(H=h.jsx(u,{to:"/service-management-framework",className:f,children:O}),n[16]=u,n[17]=f,n[18]=H):H=n[18];let U;n[19]===Symbol.for("react.memo_cache_sentinel")?(U=h.jsx("span",{children:se["service-level-targets"]}),n[19]=U):U=n[19];let M;n[20]!==u||n[21]!==f?(M=h.jsx(u,{to:"/service-level-targets",className:f,children:U}),n[20]=u,n[21]=f,n[22]=M):M=n[22];let q;n[23]===Symbol.for("react.memo_cache_sentinel")?(q=h.jsx("span",{children:se["services-offered"]}),n[23]=q):q=n[23];let Y;n[24]!==u||n[25]!==f?(Y=h.jsx(u,{to:"/services-offered",className:f,children:q}),n[24]=u,n[25]=f,n[26]=Y):Y=n[26];let J;n[27]===Symbol.for("react.memo_cache_sentinel")?(J=h.jsx("h6",{className:"section-title",children:"Standards"}),n[27]=J):J=n[27];let G;n[28]===Symbol.for("react.memo_cache_sentinel")?(G=h.jsx("span",{children:se.audits}),n[28]=G):G=n[28];let N;n[29]!==u||n[30]!==f?(N=h.jsx(u,{to:"/audits",className:f,children:G}),n[29]=u,n[30]=f,n[31]=N):N=n[31];let W;n[32]===Symbol.for("react.memo_cache_sentinel")?(W=h.jsx("span",{children:se["business-continuity"]}),n[32]=W):W=n[32];let ie;n[33]!==u||n[34]!==f?(ie=h.jsx(u,{to:"/business-continuity",className:f,children:W}),n[33]=u,n[34]=f,n[35]=ie):ie=n[35];let X;n[36]===Symbol.for("react.memo_cache_sentinel")?(X=h.jsx("span",{children:se["crisis-management"]}),n[36]=X):X=n[36];let I;n[37]!==u||n[38]!==f?(I=h.jsx(u,{to:"/crisis-management",className:f,children:X}),n[37]=u,n[38]=f,n[39]=I):I=n[39];let de;n[40]===Symbol.for("react.memo_cache_sentinel")?(de=h.jsx("span",{children:se["crisis-exercise"]}),n[40]=de):de=n[40];let Ne;n[41]!==u||n[42]!==f?(Ne=h.jsx(u,{to:"/crisis-exercise",className:f,children:de}),n[41]=u,n[42]=f,n[43]=Ne):Ne=n[43];let Ye;n[44]===Symbol.for("react.memo_cache_sentinel")?(Ye=h.jsx("span",{children:se["security-control"]}),n[44]=Ye):Ye=n[44];let Be;n[45]!==u||n[46]!==f?(Be=h.jsx(u,{to:"/security-control",className:f,children:Ye}),n[45]=u,n[46]=f,n[47]=Be):Be=n[47];let ze;return n[48]!==H||n[49]!==M||n[50]!==Y||n[51]!==N||n[52]!==d||n[53]!==ie||n[54]!==I||n[55]!==Ne||n[56]!==Be||n[57]!==p||n[58]!==R||n[59]!==_?(ze=h.jsxs(h.Fragment,{children:[d,y,p,R,_,H,M,Y,J,N,ie,I,Ne,Be]}),n[48]=H,n[49]=M,n[50]=Y,n[51]=N,n[52]=d,n[53]=ie,n[54]=I,n[55]=Ne,n[56]=Be,n[57]=p,n[58]=R,n[59]=_,n[60]=ze):ze=n[60],ze}function MS(l){const n=Ke.c(52),{sidebar:c}=l,s=c===void 0?!1:c,u=s?yr:Tn,f=s?"":"link-text-underline";let d;n[0]!==s?(d=s&&h.jsx("h5",{children:"Connected Users"}),n[0]=s,n[1]=d):d=n[1];let y;n[2]===Symbol.for("react.memo_cache_sentinel")?(y=h.jsx("h6",{className:"section-title",children:"Connected Users"}),n[2]=y):y=n[2];let v;n[3]===Symbol.for("react.memo_cache_sentinel")?(v=h.jsx("span",{children:se["institutions-urls"]}),n[3]=v):v=n[3];let p;n[4]!==u||n[5]!==f?(p=h.jsx(u,{to:"/institutions-urls",className:f,children:v}),n[4]=u,n[5]=f,n[6]=p):p=n[6];let b;n[7]===Symbol.for("react.memo_cache_sentinel")?(b=h.jsx("span",{children:se["connected-proportion"]}),n[7]=b):b=n[7];let R;n[8]!==u||n[9]!==f?(R=h.jsx(u,{to:"/connected-proportion",className:f,children:b}),n[8]=u,n[9]=f,n[10]=R):R=n[10];let S;n[11]===Symbol.for("react.memo_cache_sentinel")?(S=h.jsx("span",{children:se["connectivity-level"]}),n[11]=S):S=n[11];let _;n[12]!==u||n[13]!==f?(_=h.jsx(u,{to:"/connectivity-level",className:f,children:S}),n[12]=u,n[13]=f,n[14]=_):_=n[14];let O;n[15]===Symbol.for("react.memo_cache_sentinel")?(O=h.jsx("span",{children:se["connection-carrier"]}),n[15]=O):O=n[15];let H;n[16]!==u||n[17]!==f?(H=h.jsx(u,{to:"/connection-carrier",className:f,children:O}),n[16]=u,n[17]=f,n[18]=H):H=n[18];let U;n[19]===Symbol.for("react.memo_cache_sentinel")?(U=h.jsx("span",{children:se["connectivity-load"]}),n[19]=U):U=n[19];let M;n[20]!==u||n[21]!==f?(M=h.jsx(u,{to:"/connectivity-load",className:f,children:U}),n[20]=u,n[21]=f,n[22]=M):M=n[22];let q;n[23]===Symbol.for("react.memo_cache_sentinel")?(q=h.jsx("span",{children:se["connectivity-growth"]}),n[23]=q):q=n[23];let Y;n[24]!==u||n[25]!==f?(Y=h.jsx(u,{to:"/connectivity-growth",className:f,children:q}),n[24]=u,n[25]=f,n[26]=Y):Y=n[26];let J;n[27]===Symbol.for("react.memo_cache_sentinel")?(J=h.jsx("span",{children:se["remote-campuses"]}),n[27]=J):J=n[27];let G;n[28]!==u||n[29]!==f?(G=h.jsx(u,{to:"/remote-campuses",className:f,children:J}),n[28]=u,n[29]=f,n[30]=G):G=n[30];let N,W;n[31]===Symbol.for("react.memo_cache_sentinel")?(N=h.jsx("hr",{className:"fake-divider"}),W=h.jsx("h6",{className:"section-title",children:"Connected Users - Commercial"}),n[31]=N,n[32]=W):(N=n[31],W=n[32]);let ie;n[33]===Symbol.for("react.memo_cache_sentinel")?(ie=h.jsx("span",{children:se["commercial-charging-level"]}),n[33]=ie):ie=n[33];let X;n[34]!==u||n[35]!==f?(X=h.jsx(u,{to:"/commercial-charging-level",className:f,children:ie}),n[34]=u,n[35]=f,n[36]=X):X=n[36];let I;n[37]===Symbol.for("react.memo_cache_sentinel")?(I=h.jsx("span",{children:se["commercial-connectivity"]}),n[37]=I):I=n[37];let de;n[38]!==u||n[39]!==f?(de=h.jsx(u,{to:"/commercial-connectivity",className:f,children:I}),n[38]=u,n[39]=f,n[40]=de):de=n[40];let Ne;return n[41]!==H||n[42]!==M||n[43]!==Y||n[44]!==G||n[45]!==d||n[46]!==X||n[47]!==de||n[48]!==p||n[49]!==R||n[50]!==_?(Ne=h.jsxs(h.Fragment,{children:[d,y,p,R,_,H,M,Y,G,N,W,X,de]}),n[41]=H,n[42]=M,n[43]=Y,n[44]=G,n[45]=d,n[46]=X,n[47]=de,n[48]=p,n[49]=R,n[50]=_,n[51]=Ne):Ne=n[51],Ne}function zS(l){const n=Ke.c(133),{sidebar:c}=l,s=c===void 0?!1:c,u=s?yr:Tn,f=s?"":"link-text-underline";let d;n[0]!==s?(d=s&&h.jsx("h5",{children:"Network"}),n[0]=s,n[1]=d):d=n[1];let y;n[2]===Symbol.for("react.memo_cache_sentinel")?(y=h.jsx("h6",{className:"section-title",children:"Connectivity"}),n[2]=y):y=n[2];let v;n[3]===Symbol.for("react.memo_cache_sentinel")?(v=h.jsx("span",{children:se["dark-fibre-lease"]}),n[3]=v):v=n[3];let p;n[4]!==u||n[5]!==f?(p=h.jsx(u,{to:"/dark-fibre-lease",className:f,children:v}),n[4]=u,n[5]=f,n[6]=p):p=n[6];let b;n[7]===Symbol.for("react.memo_cache_sentinel")?(b=h.jsx("span",{children:se["dark-fibre-lease-international"]}),n[7]=b):b=n[7];let R;n[8]!==u||n[9]!==f?(R=h.jsx(u,{to:"/dark-fibre-lease-international",className:f,children:b}),n[8]=u,n[9]=f,n[10]=R):R=n[10];let S;n[11]===Symbol.for("react.memo_cache_sentinel")?(S=h.jsx("span",{children:se["iru-duration"]}),n[11]=S):S=n[11];let _;n[12]!==u||n[13]!==f?(_=h.jsx(u,{to:"/iru-duration",className:f,children:S}),n[12]=u,n[13]=f,n[14]=_):_=n[14];let O;n[15]===Symbol.for("react.memo_cache_sentinel")?(O=h.jsx("span",{children:se["dark-fibre-installed"]}),n[15]=O):O=n[15];let H;n[16]!==u||n[17]!==f?(H=h.jsx(u,{to:"/dark-fibre-installed",className:f,children:O}),n[16]=u,n[17]=f,n[18]=H):H=n[18];let U;n[19]===Symbol.for("react.memo_cache_sentinel")?(U=h.jsx("span",{children:se["fibre-light"]}),n[19]=U):U=n[19];let M;n[20]!==u||n[21]!==f?(M=h.jsx(u,{to:"/fibre-light",className:f,children:U}),n[20]=u,n[21]=f,n[22]=M):M=n[22];let q;n[23]===Symbol.for("react.memo_cache_sentinel")?(q=h.jsx("span",{children:se["network-map"]}),n[23]=q):q=n[23];let Y;n[24]!==u||n[25]!==f?(Y=h.jsx(u,{to:"/network-map",className:f,children:q}),n[24]=u,n[25]=f,n[26]=Y):Y=n[26];let J,G;n[27]===Symbol.for("react.memo_cache_sentinel")?(J=h.jsx("hr",{className:"fake-divider"}),G=h.jsx("h6",{className:"section-title",children:"Performance Monitoring & Management"}),n[27]=J,n[28]=G):(J=n[27],G=n[28]);let N;n[29]===Symbol.for("react.memo_cache_sentinel")?(N=h.jsx("span",{children:se["monitoring-tools"]}),n[29]=N):N=n[29];let W;n[30]!==u||n[31]!==f?(W=h.jsx(u,{to:"/monitoring-tools",className:f,children:N}),n[30]=u,n[31]=f,n[32]=W):W=n[32];let ie;n[33]===Symbol.for("react.memo_cache_sentinel")?(ie=h.jsx("span",{children:se["passive-monitoring"]}),n[33]=ie):ie=n[33];let X;n[34]!==u||n[35]!==f?(X=h.jsx(u,{to:"/passive-monitoring",className:f,children:ie}),n[34]=u,n[35]=f,n[36]=X):X=n[36];let I;n[37]===Symbol.for("react.memo_cache_sentinel")?(I=h.jsx("span",{children:se["traffic-stats"]}),n[37]=I):I=n[37];let de;n[38]!==u||n[39]!==f?(de=h.jsx(u,{to:"/traffic-stats",className:f,children:I}),n[38]=u,n[39]=f,n[40]=de):de=n[40];let Ne;n[41]===Symbol.for("react.memo_cache_sentinel")?(Ne=h.jsx("span",{children:se["siem-vendors"]}),n[41]=Ne):Ne=n[41];let Ye;n[42]!==u||n[43]!==f?(Ye=h.jsx(u,{to:"/siem-vendors",className:f,children:Ne}),n[42]=u,n[43]=f,n[44]=Ye):Ye=n[44];let Be;n[45]===Symbol.for("react.memo_cache_sentinel")?(Be=h.jsx("span",{children:se["certificate-provider"]}),n[45]=Be):Be=n[45];let ze;n[46]!==u||n[47]!==f?(ze=h.jsx(u,{to:"/certificate-providers",className:f,children:Be}),n[46]=u,n[47]=f,n[48]=ze):ze=n[48];let K;n[49]===Symbol.for("react.memo_cache_sentinel")?(K=h.jsx("span",{children:se["weather-map"]}),n[49]=K):K=n[49];let ce;n[50]!==u||n[51]!==f?(ce=h.jsx(u,{to:"/weather-map",className:f,children:K}),n[50]=u,n[51]=f,n[52]=ce):ce=n[52];let ne;n[53]===Symbol.for("react.memo_cache_sentinel")?(ne=h.jsx("span",{children:se["pert-team"]}),n[53]=ne):ne=n[53];let Re;n[54]!==u||n[55]!==f?(Re=h.jsx(u,{to:"/pert-team",className:f,children:ne}),n[54]=u,n[55]=f,n[56]=Re):Re=n[56];let T,Q;n[57]===Symbol.for("react.memo_cache_sentinel")?(T=h.jsx("hr",{className:"fake-divider"}),Q=h.jsx("h6",{className:"section-title",children:"Alienwave"}),n[57]=T,n[58]=Q):(T=n[57],Q=n[58]);let le;n[59]===Symbol.for("react.memo_cache_sentinel")?(le=h.jsx("span",{children:se["alien-wave"]}),n[59]=le):le=n[59];let te;n[60]!==u||n[61]!==f?(te=h.jsx(u,{to:"/alien-wave",className:f,children:le}),n[60]=u,n[61]=f,n[62]=te):te=n[62];let P;n[63]===Symbol.for("react.memo_cache_sentinel")?(P=h.jsx("span",{children:se["alien-wave-internal"]}),n[63]=P):P=n[63];let ge;n[64]!==u||n[65]!==f?(ge=h.jsx(u,{to:"/alien-wave-internal",className:f,children:P}),n[64]=u,n[65]=f,n[66]=ge):ge=n[66];let ye,Je;n[67]===Symbol.for("react.memo_cache_sentinel")?(ye=h.jsx("hr",{className:"fake-divider"}),Je=h.jsx("h6",{className:"section-title",children:"Capacity"}),n[67]=ye,n[68]=Je):(ye=n[67],Je=n[68]);let Ce;n[69]===Symbol.for("react.memo_cache_sentinel")?(Ce=h.jsx("span",{children:se["capacity-largest-link"]}),n[69]=Ce):Ce=n[69];let Le;n[70]!==u||n[71]!==f?(Le=h.jsx(u,{to:"/capacity-largest-link",className:f,children:Ce}),n[70]=u,n[71]=f,n[72]=Le):Le=n[72];let Ee;n[73]===Symbol.for("react.memo_cache_sentinel")?(Ee=h.jsx("span",{children:se["capacity-core-ip"]}),n[73]=Ee):Ee=n[73];let Ze;n[74]!==u||n[75]!==f?(Ze=h.jsx(u,{to:"/capacity-core-ip",className:f,children:Ee}),n[74]=u,n[75]=f,n[76]=Ze):Ze=n[76];let vt;n[77]===Symbol.for("react.memo_cache_sentinel")?(vt=h.jsx("span",{children:se["external-connections"]}),n[77]=vt):vt=n[77];let it;n[78]!==u||n[79]!==f?(it=h.jsx(u,{to:"/external-connections",className:f,children:vt}),n[78]=u,n[79]=f,n[80]=it):it=n[80];let lt;n[81]===Symbol.for("react.memo_cache_sentinel")?(lt=h.jsx("span",{children:se["non-rne-peers"]}),n[81]=lt):lt=n[81];let De;n[82]!==u||n[83]!==f?(De=h.jsx(u,{to:"/non-rne-peers",className:f,children:lt}),n[82]=u,n[83]=f,n[84]=De):De=n[84];let Rt;n[85]===Symbol.for("react.memo_cache_sentinel")?(Rt=h.jsx("span",{children:se["traffic-volume"]}),n[85]=Rt):Rt=n[85];let St;n[86]!==u||n[87]!==f?(St=h.jsx(u,{to:"/traffic-volume",className:f,children:Rt}),n[86]=u,n[87]=f,n[88]=St):St=n[88];let Pt;n[89]===Symbol.for("react.memo_cache_sentinel")?(Pt=h.jsx("span",{children:se["traffic-ratio"]}),n[89]=Pt):Pt=n[89];let Zt;n[90]!==u||n[91]!==f?(Zt=h.jsx(u,{to:"/traffic-ratio",className:f,children:Pt}),n[90]=u,n[91]=f,n[92]=Zt):Zt=n[92];let un,cn;n[93]===Symbol.for("react.memo_cache_sentinel")?(un=h.jsx("hr",{className:"fake-divider"}),cn=h.jsx("h6",{className:"section-title",children:"Software-Defined Networking (SDN) & Network Function Virtualisation(NFV)"}),n[93]=un,n[94]=cn):(un=n[93],cn=n[94]);let Ut;n[95]===Symbol.for("react.memo_cache_sentinel")?(Ut=h.jsx("span",{children:se["ops-automation"]}),n[95]=Ut):Ut=n[95];let Ht;n[96]!==u||n[97]!==f?(Ht=h.jsx(u,{to:"/ops-automation",className:f,children:Ut}),n[96]=u,n[97]=f,n[98]=Ht):Ht=n[98];let mt;n[99]===Symbol.for("react.memo_cache_sentinel")?(mt=h.jsx("span",{children:se.nfv}),n[99]=mt):mt=n[99];let Kt;n[100]!==u||n[101]!==f?(Kt=h.jsx(u,{to:"/nfv",className:f,children:mt}),n[100]=u,n[101]=f,n[102]=Kt):Kt=n[102];let _e;n[103]===Symbol.for("react.memo_cache_sentinel")?(_e=h.jsx("span",{children:se["network-automation"]}),n[103]=_e):_e=n[103];let Ie;n[104]!==u||n[105]!==f?(Ie=h.jsx(u,{to:"/network-automation",className:f,children:_e}),n[104]=u,n[105]=f,n[106]=Ie):Ie=n[106];let kt;return n[107]!==H||n[108]!==M||n[109]!==Y||n[110]!==W||n[111]!==d||n[112]!==X||n[113]!==de||n[114]!==Ye||n[115]!==ze||n[116]!==ce||n[117]!==Re||n[118]!==te||n[119]!==ge||n[120]!==Le||n[121]!==Ze||n[122]!==it||n[123]!==De||n[124]!==St||n[125]!==p||n[126]!==Zt||n[127]!==Ht||n[128]!==Kt||n[129]!==Ie||n[130]!==R||n[131]!==_?(kt=h.jsxs(h.Fragment,{children:[d,y,p,R,_,H,M,Y,J,G,W,X,de,Ye,ze,ce,Re,T,Q,te,ge,ye,Je,Le,Ze,it,De,St,Zt,un,cn,Ht,Kt,Ie]}),n[107]=H,n[108]=M,n[109]=Y,n[110]=W,n[111]=d,n[112]=X,n[113]=de,n[114]=Ye,n[115]=ze,n[116]=ce,n[117]=Re,n[118]=te,n[119]=ge,n[120]=Le,n[121]=Ze,n[122]=it,n[123]=De,n[124]=St,n[125]=p,n[126]=Zt,n[127]=Ht,n[128]=Kt,n[129]=Ie,n[130]=R,n[131]=_,n[132]=kt):kt=n[132],kt}function LS(l){const n=Ke.c(44),{sidebar:c}=l,s=c===void 0?!1:c,u=s?yr:Tn,f=s?"":"link-text-underline";let d;n[0]!==s?(d=s&&h.jsx("h5",{children:"Services"}),n[0]=s,n[1]=d):d=n[1];let y;n[2]===Symbol.for("react.memo_cache_sentinel")?(y=h.jsx("span",{children:se["network-services"]}),n[2]=y):y=n[2];let v;n[3]!==u||n[4]!==f?(v=h.jsx(u,{to:"/network-services",className:f,children:y}),n[3]=u,n[4]=f,n[5]=v):v=n[5];let p;n[6]===Symbol.for("react.memo_cache_sentinel")?(p=h.jsx("span",{children:se["isp-support-services"]}),n[6]=p):p=n[6];let b;n[7]!==u||n[8]!==f?(b=h.jsx(u,{to:"/isp-support-services",className:f,children:p}),n[7]=u,n[8]=f,n[9]=b):b=n[9];let R;n[10]===Symbol.for("react.memo_cache_sentinel")?(R=h.jsx("span",{children:se["security-services"]}),n[10]=R):R=n[10];let S;n[11]!==u||n[12]!==f?(S=h.jsx(u,{to:"/security-services",className:f,children:R}),n[11]=u,n[12]=f,n[13]=S):S=n[13];let _;n[14]===Symbol.for("react.memo_cache_sentinel")?(_=h.jsx("span",{children:se["identity-services"]}),n[14]=_):_=n[14];let O;n[15]!==u||n[16]!==f?(O=h.jsx(u,{to:"/identity-services",className:f,children:_}),n[15]=u,n[16]=f,n[17]=O):O=n[17];let H;n[18]===Symbol.for("react.memo_cache_sentinel")?(H=h.jsx("span",{children:se["storage-and-hosting-services"]}),n[18]=H):H=n[18];let U;n[19]!==u||n[20]!==f?(U=h.jsx(u,{to:"/storage-and-hosting-services",className:f,children:H}),n[19]=u,n[20]=f,n[21]=U):U=n[21];let M;n[22]===Symbol.for("react.memo_cache_sentinel")?(M=h.jsx("span",{children:se["multimedia-services"]}),n[22]=M):M=n[22];let q;n[23]!==u||n[24]!==f?(q=h.jsx(u,{to:"/multimedia-services",className:f,children:M}),n[23]=u,n[24]=f,n[25]=q):q=n[25];let Y;n[26]===Symbol.for("react.memo_cache_sentinel")?(Y=h.jsx("span",{children:se["collaboration-services"]}),n[26]=Y):Y=n[26];let J;n[27]!==u||n[28]!==f?(J=h.jsx(u,{to:"/collaboration-services",className:f,children:Y}),n[27]=u,n[28]=f,n[29]=J):J=n[29];let G;n[30]===Symbol.for("react.memo_cache_sentinel")?(G=h.jsx("span",{children:se["professional-services"]}),n[30]=G):G=n[30];let N;n[31]!==u||n[32]!==f?(N=h.jsx(u,{to:"/professional-services",className:f,children:G}),n[31]=u,n[32]=f,n[33]=N):N=n[33];let W;return n[34]!==O||n[35]!==U||n[36]!==q||n[37]!==J||n[38]!==N||n[39]!==d||n[40]!==v||n[41]!==b||n[42]!==S?(W=h.jsxs(h.Fragment,{children:[d,v,b,S,O,U,q,J,N]}),n[34]=O,n[35]=U,n[36]=q,n[37]=J,n[38]=N,n[39]=d,n[40]=v,n[41]=b,n[42]=S,n[43]=W):W=n[43],W}function US(){const l=Ke.c(10);DS();const{trackPageView:n}=Hp();let c,s;l[0]!==n?(c=()=>{n({documentTitle:"Compendium Data"})},s=[n],l[0]=n,l[1]=c,l[2]=s):(c=l[1],s=l[2]),Yt.useEffect(c,s);let u;l[3]===Symbol.for("react.memo_cache_sentinel")?(u=h.jsx(NS,{type:"data"}),l[3]=u):u=l[3];let f;l[4]===Symbol.for("react.memo_cache_sentinel")?(f=h.jsx(CS,{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."})}),l[4]=f):f=l[4];let d;l[5]===Symbol.for("react.memo_cache_sentinel")?(d=h.jsx(rr,{title:li.Organisation,children:h.jsx(wS,{})}),l[5]=d):d=l[5];let y;l[6]===Symbol.for("react.memo_cache_sentinel")?(y=h.jsx(rr,{title:li.Policy,startCollapsed:!0,children:h.jsx(AS,{})}),l[6]=y):y=l[6];let v;l[7]===Symbol.for("react.memo_cache_sentinel")?(v=h.jsx(rr,{title:li.ConnectedUsers,startCollapsed:!0,children:h.jsx(MS,{})}),l[7]=v):v=l[7];let p;l[8]===Symbol.for("react.memo_cache_sentinel")?(p=h.jsx(rr,{title:li.Network,startCollapsed:!0,children:h.jsx(zS,{})}),l[8]=p):p=l[8];let b;return l[9]===Symbol.for("react.memo_cache_sentinel")?(b=h.jsxs(h.Fragment,{children:[u,f,h.jsx(Ya,{className:"mt-5 mb-5",children:h.jsxs(Rn,{children:[d,y,v,p,h.jsx(rr,{title:li.Services,startCollapsed:!0,children:h.jsx(LS,{})})]})})]}),l[9]=b):b=l[9],b}const HS=()=>{const l=Ke.c(26),{consent:n,setConsent:c}=g.useContext(Jo),[s,u]=g.useState(n===null);let f;l[0]===Symbol.for("react.memo_cache_sentinel")?(f=()=>{u(!1),window.location.reload()},l[0]=f):f=l[0];const d=f,[y,v]=g.useState(!0);let p;l[1]!==c?(p=N=>{const W=new Date;W.setDate(W.getDate()+30),localStorage.setItem("matomo_consent",JSON.stringify({consent:N,expiry:W})),c(N)},l[1]=c,l[2]=p):p=l[2];const b=p;let R;l[3]===Symbol.for("react.memo_cache_sentinel")?(R=h.jsx(ir.Header,{closeButton:!0,children:h.jsx(ir.Title,{children:"Privacy on this site"})}),l[3]=R):R=l[3];let S;l[4]===Symbol.for("react.memo_cache_sentinel")?(S=h.jsx("a",{href:"https://geant.org/Privacy-Notice/",children:"Privacy Policy"}),l[4]=S):S=l[4];let _;l[5]===Symbol.for("react.memo_cache_sentinel")?(_=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 ",S,".",h.jsx("br",{}),"Below, you can choose to accept or decline to have this data collected."]}),l[5]=_):_=l[5];let O;l[6]!==y?(O=()=>v(!y),l[6]=y,l[7]=O):O=l[7];let H;l[8]!==y||l[9]!==O?(H=h.jsx(Du.Check,{type:"checkbox",label:"Analytics",checked:y,onChange:O}),l[8]=y,l[9]=O,l[10]=H):H=l[10];let U;l[11]===Symbol.for("react.memo_cache_sentinel")?(U=h.jsx(Du.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."}),l[11]=U):U=l[11];let M;l[12]!==H?(M=h.jsxs(ir.Body,{children:[_,h.jsx(Du,{children:h.jsxs(Du.Group,{className:"mb-3",children:[H,U]})})]}),l[12]=H,l[13]=M):M=l[13];let q;l[14]!==b?(q=h.jsx(Bo,{variant:"secondary",onClick:()=>{b(!1),d()},children:"Decline all"}),l[14]=b,l[15]=q):q=l[15];let Y;l[16]!==y||l[17]!==b?(Y=h.jsx(Bo,{variant:"primary",onClick:()=>{b(y),d()},children:"Save consent for 30 days"}),l[16]=y,l[17]=b,l[18]=Y):Y=l[18];let J;l[19]!==Y||l[20]!==q?(J=h.jsxs(ir.Footer,{children:[q,Y]}),l[19]=Y,l[20]=q,l[21]=J):J=l[21];let G;return l[22]!==s||l[23]!==J||l[24]!==M?(G=h.jsxs(ir,{show:s,centered:!0,children:[R,M,J]}),l[22]=s,l[23]=J,l[24]=M,l[25]=G):G=l[25],G},BS=g.lazy(()=>be(()=>import("./Budget-CVs5cg26.js"),__vite__mapDeps([0,1,2,3,4,5,6,7]))),qS=g.lazy(()=>be(()=>import("./ChargingStructure-CPkeaV7G.js"),__vite__mapDeps([8,2,3,4,5,6,9,10,11]))),VS=g.lazy(()=>be(()=>import("./ECProjects-CegfdWfI.js"),__vite__mapDeps([12,2,3,4,5,6,13,11]))),YS=g.lazy(()=>be(()=>import("./FundingSource-BB230uTC.js"),__vite__mapDeps([14,1,2,3,4,5,6,15]))),kS=g.lazy(()=>be(()=>import("./ParentOrganisation-C_34aAmv.js"),__vite__mapDeps([16,2,3,4,5,6,13,11]))),Oy=g.lazy(()=>be(()=>import("./StaffGraph-BhGKlAbH.js"),__vite__mapDeps([17,1,2,3,4,5,6,18]))),GS=g.lazy(()=>be(()=>import("./StaffGraphAbsolute-DYsL_bJE.js"),__vite__mapDeps([19,1,2,3,4,5,6,15,7]))),XS=g.lazy(()=>be(()=>import("./SubOrganisation-Csf8sqHo.js"),__vite__mapDeps([20,2,3,4,5,6,13,11]))),QS=g.lazy(()=>be(()=>import("./Audits-DrRfyBs4.js"),__vite__mapDeps([21,2,3,4,5,6,9,10,11]))),ZS=g.lazy(()=>be(()=>import("./BusinessContinuity-jrf4-tia.js"),__vite__mapDeps([22,2,3,4,5,6,9,10,11]))),KS=g.lazy(()=>be(()=>import("./CentralProcurement-C2sliv5Z.js"),__vite__mapDeps([23,2,3,4,5,6,15,1,7]))),$S=g.lazy(()=>be(()=>import("./CorporateStrategy-B96fGlR3.js"),__vite__mapDeps([24,2,3,4,5,6,13,11]))),FS=g.lazy(()=>be(()=>import("./CrisisExercises-D8VSuWUx.js"),__vite__mapDeps([25,2,3,4,5,6,9,10,11]))),JS=g.lazy(()=>be(()=>import("./CrisisManagement-DPAIuZEV.js"),__vite__mapDeps([26,2,3,4,5,6,9,10,11]))),PS=g.lazy(()=>be(()=>import("./EOSCListings-cU4UG7og.js"),__vite__mapDeps([27,2,3,4,5,6,13,11]))),WS=g.lazy(()=>be(()=>import("./Policy-CuNV_l7a.js"),__vite__mapDeps([28,2,3,4,5,6,13,11]))),IS=g.lazy(()=>be(()=>import("./SecurityControls-C_redfTy.js"),__vite__mapDeps([29,2,3,4,5,6,9,10,11]))),e2=g.lazy(()=>be(()=>import("./ServiceLevelTargets-CXuM4ENo.js"),__vite__mapDeps([30,2,3,4,5,6,9,10,11]))),t2=g.lazy(()=>be(()=>import("./ServiceManagementFramework-B5G4LhDr.js"),__vite__mapDeps([31,2,3,4,5,6,9,10,11]))),n2=g.lazy(()=>be(()=>import("./ServicesOffered-B_OBZM5I.js"),__vite__mapDeps([32,2,3,4,5,6,33,11]))),a2=g.lazy(()=>be(()=>import("./ConnectedInstitutionsURLs-BmsNaWXO.js"),__vite__mapDeps([34,2,3,4,5,6,13,11]))),dl=g.lazy(()=>be(()=>import("./ConnectedUser-CfYJAE0v.js"),__vite__mapDeps([35,2,3,4,5,6,33,11]))),l2=g.lazy(()=>be(()=>import("./RemoteCampuses-NGRzWQf8.js"),__vite__mapDeps([36,2,3,4,5,6,11]))),i2=g.lazy(()=>be(()=>import("./AlienWave-CpRPpDKT.js"),__vite__mapDeps([37,2,3,4,5,6,9,10,11]))),r2=g.lazy(()=>be(()=>import("./AlienWaveInternal-DDEuk0kg.js"),__vite__mapDeps([38,2,3,4,5,6,9,10,11]))),u2=g.lazy(()=>be(()=>import("./Automation-7WUmNT-G.js"),__vite__mapDeps([39,2,3,4,5,6,10,11]))),c2=g.lazy(()=>be(()=>import("./CapacityCoreIP-Br9KX5yH.js"),__vite__mapDeps([40,1,2,3,4,5,6,15,7]))),s2=g.lazy(()=>be(()=>import("./CapacityLargestLink-LEyWpKvI.js"),__vite__mapDeps([41,1,2,3,4,5,6,15,7]))),o2=g.lazy(()=>be(()=>import("./CertificateProvider-Bvo47nf9.js"),__vite__mapDeps([42,2,3,4,5,6,9,10,11]))),Dy=g.lazy(()=>be(()=>import("./DarkFibreLease-rEaEK83T.js"),__vite__mapDeps([43,1,2,3,4,5,6,7]))),f2=g.lazy(()=>be(()=>import("./DarkFibreInstalled-Dlwn_bKp.js"),__vite__mapDeps([44,1,2,3,4,5,6,7]))),d2=g.lazy(()=>be(()=>import("./ExternalConnections-CQ5ri9Cp.js"),__vite__mapDeps([45,2,3,4,5,6,11]))),h2=g.lazy(()=>be(()=>import("./FibreLight-BhW_HRmH.js"),__vite__mapDeps([46,2,3,4,5,6,9,10,11]))),m2=g.lazy(()=>be(()=>import("./IRUDuration-RAtcDfR4.js"),__vite__mapDeps([47,1,2,3,4,5,6,7]))),y2=g.lazy(()=>be(()=>import("./MonitoringTools-DrashCOV.js"),__vite__mapDeps([48,2,3,4,5,6,9,10,11]))),p2=g.lazy(()=>be(()=>import("./NetworkFunctionVirtualisation-DgYBul36.js"),__vite__mapDeps([49,2,3,4,5,6,10,11]))),v2=g.lazy(()=>be(()=>import("./NetworkMapUrls-xqgin1fL.js"),__vite__mapDeps([50,2,3,4,5,6,13,11]))),g2=g.lazy(()=>be(()=>import("./NonRAndEPeer-B8hczKc3.js"),__vite__mapDeps([51,1,2,3,4,5,6,15,7]))),E2=g.lazy(()=>be(()=>import("./OPsAutomation-CaApYas2.js"),__vite__mapDeps([52,2,3,4,5,6,9,10,11]))),b2=g.lazy(()=>be(()=>import("./PassiveMonitoring-HFCN_S9d.js"),__vite__mapDeps([53,2,3,4,5,6,9,10,11]))),S2=g.lazy(()=>be(()=>import("./PertTeam-CvKn3tG_.js"),__vite__mapDeps([54,2,3,4,5,6,9,10,11]))),x2=g.lazy(()=>be(()=>import("./SiemVendors-BCpq8Hqq.js"),__vite__mapDeps([55,2,3,4,5,6,9,10,11]))),_2=g.lazy(()=>be(()=>import("./TrafficRatio-hTxXFYQn.js"),__vite__mapDeps([56,1,2,3,4,5,6,18]))),R2=g.lazy(()=>be(()=>import("./TrafficUrl-DMw44Rpa.js"),__vite__mapDeps([57,2,3,4,5,6,13,11]))),T2=g.lazy(()=>be(()=>import("./TrafficVolume-CBGOlk8Z.js"),__vite__mapDeps([58,1,2,3,4,5,6,7]))),N2=g.lazy(()=>be(()=>import("./WeatherMap-C2uAbI_g.js"),__vite__mapDeps([59,2,3,4,5,6,13,11]))),Ua=g.lazy(()=>be(()=>import("./Services-2YDP1wpB.js"),__vite__mapDeps([60,2,3,4,5,6,11]))),C2=g.lazy(()=>be(()=>import("./Landing-Dx2MGVWO.js"),__vite__mapDeps([61,4,62,3,63,11]))),No=g.lazy(()=>be(()=>import("./SurveyContainerComponent-CbFnC4ad.js"),__vite__mapDeps([64,65,66,67,62,3,68]))),j2=g.lazy(()=>be(()=>import("./SurveyManagementComponent-Lo-9bnmr.js"),__vite__mapDeps([69,70,6,11,65,67,63,62,3]))),O2=g.lazy(()=>be(()=>import("./UserManagementComponent-C2zXLwZT.js"),__vite__mapDeps([71,65,62,3,5,70,6,11]))),D2=()=>{const l=Ke.c(9),{pathname:n}=Xn(),c=n!=="/";let s;l[0]===Symbol.for("react.memo_cache_sentinel")?(s=h.jsx(oS,{}),l[0]=s):s=l[0];let u;l[1]!==c?(u=h.jsx("main",{className:"grow",children:c?h.jsx(T0,{}):h.jsx(Bp,{})}),l[1]=c,l[2]=u):u=l[2];let f;l[3]===Symbol.for("react.memo_cache_sentinel")?(f=h.jsx(HS,{}),l[3]=f):f=l[3];let d;l[4]!==u?(d=h.jsxs(wE,{children:[s,u,f]}),l[4]=u,l[5]=d):d=l[5];let y;l[6]===Symbol.for("react.memo_cache_sentinel")?(y=h.jsx(hS,{}),l[6]=y):y=l[6];let v;return l[7]!==d?(v=h.jsxs(h.Fragment,{children:[d,y]}),l[7]=d,l[8]=v):v=l[8],v},w2=P0([{path:"",element:h.jsx(D2,{}),children:[{path:"/budget",element:h.jsx(BS,{})},{path:"/funding",element:h.jsx(YS,{})},{path:"/employment",element:h.jsx(Oy,{},"staffgraph")},{path:"/traffic-ratio",element:h.jsx(_2,{})},{path:"/roles",element:h.jsx(Oy,{roles:!0},"staffgraphroles")},{path:"/employee-count",element:h.jsx(GS,{})},{path:"/charging",element:h.jsx(qS,{})},{path:"/suborganisations",element:h.jsx(XS,{})},{path:"/parentorganisation",element:h.jsx(kS,{})},{path:"/ec-projects",element:h.jsx(VS,{})},{path:"/policy",element:h.jsx(WS,{})},{path:"/traffic-volume",element:h.jsx(T2,{})},{path:"/data",element:h.jsx(US,{})},{path:"/institutions-urls",element:h.jsx(a2,{})},{path:"/connected-proportion",element:h.jsx(dl,{page:Qt.ConnectedProportion},Qt.ConnectedProportion)},{path:"/connectivity-level",element:h.jsx(dl,{page:Qt.ConnectivityLevel},Qt.ConnectivityLevel)},{path:"/connectivity-growth",element:h.jsx(dl,{page:Qt.ConnectivityGrowth},Qt.ConnectivityGrowth)},{path:"/connection-carrier",element:h.jsx(dl,{page:Qt.ConnectionCarrier},Qt.ConnectionCarrier)},{path:"/connectivity-load",element:h.jsx(dl,{page:Qt.ConnectivityLoad},Qt.ConnectivityLoad)},{path:"/commercial-charging-level",element:h.jsx(dl,{page:Qt.CommercialChargingLevel},Qt.CommercialChargingLevel)},{path:"/commercial-connectivity",element:h.jsx(dl,{page:Qt.CommercialConnectivity},Qt.CommercialConnectivity)},{path:"/network-services",element:h.jsx(Ua,{category:Lt.network_services},Lt.network_services)},{path:"/isp-support-services",element:h.jsx(Ua,{category:Lt.isp_support},Lt.isp_support)},{path:"/security-services",element:h.jsx(Ua,{category:Lt.security},Lt.security)},{path:"/identity-services",element:h.jsx(Ua,{category:Lt.identity},Lt.identity)},{path:"/collaboration-services",element:h.jsx(Ua,{category:Lt.collaboration},Lt.collaboration)},{path:"/multimedia-services",element:h.jsx(Ua,{category:Lt.multimedia},Lt.multimedia)},{path:"/storage-and-hosting-services",element:h.jsx(Ua,{category:Lt.storage_and_hosting},Lt.storage_and_hosting)},{path:"/professional-services",element:h.jsx(Ua,{category:Lt.professional_services},Lt.professional_services)},{path:"/dark-fibre-lease",element:h.jsx(Dy,{national:!0},"darkfibrenational")},{path:"/dark-fibre-lease-international",element:h.jsx(Dy,{},"darkfibreinternational")},{path:"/dark-fibre-installed",element:h.jsx(f2,{})},{path:"/remote-campuses",element:h.jsx(l2,{})},{path:"/eosc-listings",element:h.jsx(PS,{})},{path:"/fibre-light",element:h.jsx(h2,{})},{path:"/monitoring-tools",element:h.jsx(y2,{})},{path:"/pert-team",element:h.jsx(S2,{})},{path:"/passive-monitoring",element:h.jsx(b2,{})},{path:"/alien-wave",element:h.jsx(i2,{})},{path:"/alien-wave-internal",element:h.jsx(r2,{})},{path:"/external-connections",element:h.jsx(d2,{})},{path:"/ops-automation",element:h.jsx(E2,{})},{path:"/network-automation",element:h.jsx(u2,{})},{path:"/traffic-stats",element:h.jsx(R2,{})},{path:"/weather-map",element:h.jsx(N2,{})},{path:"/network-map",element:h.jsx(v2,{})},{path:"/nfv",element:h.jsx(p2,{})},{path:"/certificate-providers",element:h.jsx(o2,{})},{path:"/siem-vendors",element:h.jsx(x2,{})},{path:"/capacity-largest-link",element:h.jsx(s2,{})},{path:"/capacity-core-ip",element:h.jsx(c2,{})},{path:"/non-rne-peers",element:h.jsx(g2,{})},{path:"/iru-duration",element:h.jsx(m2,{})},{path:"/audits",element:h.jsx(QS,{})},{path:"/business-continuity",element:h.jsx(ZS,{})},{path:"/crisis-management",element:h.jsx(JS,{})},{path:"/crisis-exercise",element:h.jsx(FS,{})},{path:"/central-procurement",element:h.jsx(KS,{})},{path:"/security-control",element:h.jsx(IS,{})},{path:"/services-offered",element:h.jsx(n2,{})},{path:"/service-management-framework",element:h.jsx(t2,{})},{path:"/service-level-targets",element:h.jsx(e2,{})},{path:"/corporate-strategy",element:h.jsx($S,{})},{path:"/survey/admin/surveys",element:h.jsx(j2,{})},{path:"/survey/admin/users",element:h.jsx(O2,{})},{path:"/survey/admin/inspect/:year",element:h.jsx(No,{loadFrom:"/api/response/inspect/"})},{path:"/survey/admin/try/:year",element:h.jsx(No,{loadFrom:"/api/response/try/"})},{path:"/survey/response/:year/:nren",element:h.jsx(No,{loadFrom:"/api/response/load/"})},{path:"/survey/*",element:h.jsx(C2,{})},{path:"/*",element:h.jsx(Bp,{})}]}]);function A2(){const l=Ke.c(1);let n;return l[0]===Symbol.for("react.memo_cache_sentinel")?(n=h.jsx("div",{className:"app",children:h.jsx(oE,{router:w2})}),l[0]=n):n=l[0],n}const M2=document.getElementById("root"),z2=a1.createRoot(M2);z2.render(h.jsx(Yt.StrictMode,{children:h.jsx(A2,{})}));export{zE as $,Ho as A,pb as B,ln as C,Xy as D,Ya as E,yE as F,MS as G,LS as H,jS as I,vE as J,OS as K,Tn as L,Iy as M,zS as N,wS as O,AS as P,Hp as Q,Rn as R,li as S,NS as T,V2 as U,SE as V,Du as W,DS as X,_S as Y,RS as Z,Yp as _,Qt as a,Lt as a0,Fo as a1,yr as a2,Gu as a3,wy as a4,B2 as a5,H2 as a6,be as a7,rb as a8,nb as a9,$u as aa,gl as ab,hl as ac,Mo as ad,Ba as ae,yl as af,ab as ag,U2 as ah,nf as ai,OE as aj,Y2 as b,Ke as c,k2 as d,rr as e,Yt as f,up as g,Qe as h,Ae as i,h as j,sb as k,by as l,Bu as m,Ob as n,Ku as o,tf as p,ob as q,g as r,ti as s,se as t,pl as u,lp as v,q2 as w,rp as x,Bo as y,BE as z}; diff --git a/compendium_v2/static/index-DgKDGaow.js b/compendium_v2/static/index-DkYuYqrz.js similarity index 94% rename from compendium_v2/static/index-DgKDGaow.js rename to compendium_v2/static/index-DkYuYqrz.js index 513236c2e80860e20332f9a9c82f6b0a03e6b1c5..a3e292016fd6f1642f2ec2dd0a5ddbf27e14322e 100644 --- a/compendium_v2/static/index-DgKDGaow.js +++ b/compendium_v2/static/index-DkYuYqrz.js @@ -1 +1 @@ -import{r as a,_ as c}from"./index-CgRqQtHZ.js";const o=a.createContext(null);o.displayName="InputGroupContext";function n(t){return c({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M173.898 439.404l-166.4-166.4c-9.997-9.997-9.997-26.206 0-36.204l36.203-36.204c9.997-9.998 26.207-9.998 36.204 0L192 312.69 432.095 72.596c9.997-9.997 26.207-9.997 36.204 0l36.203 36.204c9.997 9.997 9.997 26.206 0 36.204l-294.4 294.401c-9.998 9.997-26.207 9.997-36.204-.001z"},child:[]}]})(t)}function e(t){return c({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M216 0h80c13.3 0 24 10.7 24 24v168h87.7c17.8 0 26.7 21.5 14.1 34.1L269.7 378.3c-7.5 7.5-19.8 7.5-27.3 0L90.1 226.1c-12.6-12.6-3.7-34.1 14.1-34.1H192V24c0-13.3 10.7-24 24-24zm296 376v112c0 13.3-10.7 24-24 24H24c-13.3 0-24-10.7-24-24V376c0-13.3 10.7-24 24-24h146.7l49 49c20.1 20.1 52.5 20.1 72.6 0l49-49H488c13.3 0 24 10.7 24 24zm-124 88c0-11-9-20-20-20s-20 9-20 20 9 20 20 20 20-9 20-20zm64 0c0-11-9-20-20-20s-20 9-20 20 9 20 20 20 20-9 20-20z"},child:[]}]})(t)}export{e as F,n as a,o as c}; +import{r as a,_ as c}from"./index-DBbSOdjk.js";const o=a.createContext(null);o.displayName="InputGroupContext";function n(t){return c({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M173.898 439.404l-166.4-166.4c-9.997-9.997-9.997-26.206 0-36.204l36.203-36.204c9.997-9.998 26.207-9.998 36.204 0L192 312.69 432.095 72.596c9.997-9.997 26.207-9.997 36.204 0l36.203 36.204c9.997 9.997 9.997 26.206 0 36.204l-294.4 294.401c-9.998 9.997-26.207 9.997-36.204-.001z"},child:[]}]})(t)}function e(t){return c({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M216 0h80c13.3 0 24 10.7 24 24v168h87.7c17.8 0 26.7 21.5 14.1 34.1L269.7 378.3c-7.5 7.5-19.8 7.5-27.3 0L90.1 226.1c-12.6-12.6-3.7-34.1 14.1-34.1H192V24c0-13.3 10.7-24 24-24zm296 376v112c0 13.3-10.7 24-24 24H24c-13.3 0-24-10.7-24-24V376c0-13.3 10.7-24 24-24h146.7l49 49c20.1 20.1 52.5 20.1 72.6 0l49-49H488c13.3 0 24 10.7 24 24zm-124 88c0-11-9-20-20-20s-20 9-20 20 9 20 20 20 20-9 20-20zm64 0c0-11-9-20-20-20s-20 9-20 20 9 20 20 20 20-9 20-20z"},child:[]}]})(t)}export{e as F,n as a,o as c}; diff --git a/compendium_v2/static/index-BMzrLxRb.js b/compendium_v2/static/index-DyJczNpq.js similarity index 92% rename from compendium_v2/static/index-BMzrLxRb.js rename to compendium_v2/static/index-DyJczNpq.js index 9aef131f26d84364669f2c367ef1bcc460a08e55..5193bdc3e1cd93a3fff7e93e27a94110fbf2178a 100644 --- a/compendium_v2/static/index-BMzrLxRb.js +++ b/compendium_v2/static/index-DyJczNpq.js @@ -1 +1 @@ -import{r as a,f as h}from"./index-CgRqQtHZ.js";import{C as b,t as L,v}from"./useData-CnR6ocTl.js";const C="label";function m(t,e){typeof t=="function"?t(e):t&&(t.current=e)}function B(t,e){const n=t.options;n&&e&&Object.assign(n,e)}function y(t,e){t.labels=e}function E(t,e){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:C;const o=[];t.datasets=e.map(s=>{const u=t.datasets.find(i=>i[n]===s[n]);return!u||!s.data||o.includes(u)?{...s}:(o.push(u),Object.assign(u,s),u)})}function T(t){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:C;const n={labels:[],datasets:[]};return y(n,t.labels),E(n,t.datasets,e),n}function j(t,e){const{height:n=150,width:o=300,redraw:s=!1,datasetIdKey:u,type:i,data:c,options:f,plugins:w=[],fallbackContent:I,updateMode:g,...K}=t,l=a.useRef(null),r=a.useRef(null),d=()=>{l.current&&(r.current=new b(l.current,{type:i,data:T(c,u),options:f&&{...f},plugins:w}),m(e,r.current))},p=()=>{m(e,null),r.current&&(r.current.destroy(),r.current=null)};return a.useEffect(()=>{!s&&r.current&&f&&B(r.current,f)},[s,f]),a.useEffect(()=>{!s&&r.current&&y(r.current.config.data,c.labels)},[s,c.labels]),a.useEffect(()=>{!s&&r.current&&c.datasets&&E(r.current.config.data,c.datasets,u)},[s,c.datasets]),a.useEffect(()=>{r.current&&(s?(p(),setTimeout(d)):r.current.update(g))},[s,f,c.labels,c.datasets,g]),a.useEffect(()=>{r.current&&(p(),setTimeout(d))},[i]),a.useEffect(()=>(d(),()=>p()),[]),h.createElement("canvas",{ref:l,role:"img",height:n,width:o,...K},I)}const D=a.forwardRef(j);function R(t,e){return b.register(e),a.forwardRef((n,o)=>h.createElement(D,{...n,ref:o,type:t}))}const M=R("line",L),P=R("bar",v);export{P as B,M as L}; +import{r as a,f as h}from"./index-DBbSOdjk.js";import{C as b,t as L,v}from"./useData-CcKTpALT.js";const C="label";function m(t,e){typeof t=="function"?t(e):t&&(t.current=e)}function B(t,e){const n=t.options;n&&e&&Object.assign(n,e)}function y(t,e){t.labels=e}function E(t,e){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:C;const o=[];t.datasets=e.map(s=>{const u=t.datasets.find(i=>i[n]===s[n]);return!u||!s.data||o.includes(u)?{...s}:(o.push(u),Object.assign(u,s),u)})}function T(t){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:C;const n={labels:[],datasets:[]};return y(n,t.labels),E(n,t.datasets,e),n}function j(t,e){const{height:n=150,width:o=300,redraw:s=!1,datasetIdKey:u,type:i,data:c,options:f,plugins:w=[],fallbackContent:I,updateMode:g,...K}=t,l=a.useRef(null),r=a.useRef(null),d=()=>{l.current&&(r.current=new b(l.current,{type:i,data:T(c,u),options:f&&{...f},plugins:w}),m(e,r.current))},p=()=>{m(e,null),r.current&&(r.current.destroy(),r.current=null)};return a.useEffect(()=>{!s&&r.current&&f&&B(r.current,f)},[s,f]),a.useEffect(()=>{!s&&r.current&&y(r.current.config.data,c.labels)},[s,c.labels]),a.useEffect(()=>{!s&&r.current&&c.datasets&&E(r.current.config.data,c.datasets,u)},[s,c.datasets]),a.useEffect(()=>{r.current&&(s?(p(),setTimeout(d)):r.current.update(g))},[s,f,c.labels,c.datasets,g]),a.useEffect(()=>{r.current&&(p(),setTimeout(d))},[i]),a.useEffect(()=>(d(),()=>p()),[]),h.createElement("canvas",{ref:l,role:"img",height:n,width:o,...K},I)}const D=a.forwardRef(j);function R(t,e){return b.register(e),a.forwardRef((n,o)=>h.createElement(D,{...n,ref:o,type:t}))}const M=R("line",L),P=R("bar",v);export{P as B,M as L}; diff --git a/compendium_v2/static/index.html b/compendium_v2/static/index.html index ef76bce10e5fea07dcba02712850cb6302e2d900..ed8305588505ef75c9c37110e0e9ba9fcde043eb 100644 --- a/compendium_v2/static/index.html +++ b/compendium_v2/static/index.html @@ -5,7 +5,7 @@ <meta name="viewport" content="width=device-width, initial-scale=.5"/> <meta name="description" content="The GÉANT Compendium of National Research and Education Networks in Europe is the result of a broad, collective effort to portray the networks of the research and education community in Europe and beyond. The annual NREN Compendium survey invites the world's NRENs to provide detailed information about their network, equipment and users. The results from this survey are highlighted in these studies."/> <title>The GÉANT Compendium</title> - <script type="module" crossorigin src="/static/index-CgRqQtHZ.js"></script> + <script type="module" crossorigin src="/static/index-DBbSOdjk.js"></script> <link rel="stylesheet" crossorigin href="/static/index-Cv7xX6AU.css"> </head> <body> diff --git a/compendium_v2/static/lodash-CV_RFKCE.js b/compendium_v2/static/lodash-YlUwNVit.js similarity index 99% rename from compendium_v2/static/lodash-CV_RFKCE.js rename to compendium_v2/static/lodash-YlUwNVit.js index f9640f8e26fda801a3e135c95fd151983871b851..b2ad7e6804a4c579d0ac978eda437c83f2c2da0b 100644 --- a/compendium_v2/static/lodash-CV_RFKCE.js +++ b/compendium_v2/static/lodash-YlUwNVit.js @@ -1,4 +1,4 @@ -import{f as vo,r as X,j as On,a8 as A_,a9 as y_,aa as m_,i as Et,ab as xo,ac as E_,ad as R_,ae as I_,af as C_,ag as S_,h as $t,ah as cr}from"./index-CgRqQtHZ.js";import{u as T_}from"./hook-DDOSKqdF.js";function he(...W){return W.filter(I=>I!=null).reduce((I,o)=>{if(typeof o!="function")throw new Error("Invalid Argument Type, must only provide functions, undefined, or null.");return I===null?o:function(...U){I.apply(this,U),o.apply(this,U)}},null)}const L_={height:["marginTop","marginBottom"],width:["marginLeft","marginRight"]};function O_(W,I){const o=`offset${W[0].toUpperCase()}${W.slice(1)}`,$=I[o],U=L_[W];return $+parseInt(xo(I,U[0]),10)+parseInt(xo(I,U[1]),10)}const W_={[E_]:"collapse",[R_]:"collapsing",[I_]:"collapsing",[C_]:"collapse show"},B_=vo.forwardRef(({onEnter:W,onEntering:I,onEntered:o,onExit:$,onExiting:U,className:k,children:L,dimension:nn="height",in:rn=!1,timeout:ht=300,mountOnEnter:Wn=!1,unmountOnExit:an=!1,appear:_e=!1,getDimensionValue:Kn=O_,...zn},Rt)=>{const N=typeof nn=="function"?nn():nn,et=X.useMemo(()=>he(J=>{J.style[N]="0"},W),[N,W]),de=X.useMemo(()=>he(J=>{const _n=`scroll${N[0].toUpperCase()}${N.slice(1)}`;J.style[N]=`${J[_n]}px`},I),[N,I]),Bn=X.useMemo(()=>he(J=>{J.style[N]=null},o),[N,o]),gt=X.useMemo(()=>he(J=>{J.style[N]=`${Kn(N,J)}px`,S_(J)},$),[$,Kn,N]),Mn=X.useMemo(()=>he(J=>{J.style[N]=null},U),[N,U]);return On.jsx(A_,{ref:Rt,addEndListener:y_,...zn,"aria-expanded":zn.role?rn:null,onEnter:et,onEntering:de,onEntered:Bn,onExit:gt,onExiting:Mn,childRef:m_(L),in:rn,timeout:ht,mountOnEnter:Wn,unmountOnExit:an,appear:_e,children:(J,_n)=>vo.cloneElement(L,{..._n,className:Et(k,L.props.className,W_[J],N==="width"&&"collapse-horizontal")})})});function Ao(W,I){return Array.isArray(W)?W.includes(I):W===I}const pe=X.createContext({});pe.displayName="AccordionContext";const bi=X.forwardRef(({as:W="div",bsPrefix:I,className:o,children:$,eventKey:U,...k},L)=>{const{activeEventKey:nn}=X.useContext(pe);return I=$t(I,"accordion-collapse"),On.jsx(B_,{ref:L,in:Ao(nn,U),...k,className:Et(o,I),children:On.jsx(W,{children:X.Children.only($)})})});bi.displayName="AccordionCollapse";const hr=X.createContext({eventKey:""});hr.displayName="AccordionItemContext";const yo=X.forwardRef(({as:W="div",bsPrefix:I,className:o,onEnter:$,onEntering:U,onEntered:k,onExit:L,onExiting:nn,onExited:rn,...ht},Wn)=>{I=$t(I,"accordion-body");const{eventKey:an}=X.useContext(hr);return On.jsx(bi,{eventKey:an,onEnter:$,onEntering:U,onEntered:k,onExit:L,onExiting:nn,onExited:rn,children:On.jsx(W,{ref:Wn,...ht,className:Et(o,I)})})});yo.displayName="AccordionBody";function M_(W,I){const{activeEventKey:o,onSelect:$,alwaysOpen:U}=X.useContext(pe);return k=>{let L=W===o?null:W;U&&(Array.isArray(o)?o.includes(W)?L=o.filter(nn=>nn!==W):L=[...o,W]:L=[W]),$==null||$(L,k),I==null||I(k)}}const Pi=X.forwardRef(({as:W="button",bsPrefix:I,className:o,onClick:$,...U},k)=>{I=$t(I,"accordion-button");const{eventKey:L}=X.useContext(hr),nn=M_(L,$),{activeEventKey:rn}=X.useContext(pe);return W==="button"&&(U.type="button"),On.jsx(W,{ref:k,onClick:nn,...U,"aria-expanded":Array.isArray(rn)?rn.includes(L):L===rn,className:Et(o,I,!Ao(rn,L)&&"collapsed")})});Pi.displayName="AccordionButton";const mo=X.forwardRef(({as:W="h2","aria-controls":I,bsPrefix:o,className:$,children:U,onClick:k,...L},nn)=>(o=$t(o,"accordion-header"),On.jsx(W,{ref:nn,...L,className:Et($,o),children:On.jsx(Pi,{onClick:k,"aria-controls":I,children:U})})));mo.displayName="AccordionHeader";const Eo=X.forwardRef(({as:W="div",bsPrefix:I,className:o,eventKey:$,...U},k)=>{I=$t(I,"accordion-item");const L=X.useMemo(()=>({eventKey:$}),[$]);return On.jsx(hr.Provider,{value:L,children:On.jsx(W,{ref:k,...U,className:Et(o,I)})})});Eo.displayName="AccordionItem";const Ro=X.forwardRef((W,I)=>{const{as:o="div",activeKey:$,bsPrefix:U,className:k,onSelect:L,flush:nn,alwaysOpen:rn,...ht}=T_(W,{activeKey:"onSelect"}),Wn=$t(U,"accordion"),an=X.useMemo(()=>({activeEventKey:$,onSelect:L,alwaysOpen:rn}),[$,L,rn]);return On.jsx(pe.Provider,{value:an,children:On.jsx(o,{ref:I,...ht,className:Et(k,Wn,nn&&`${Wn}-flush`)})})});Ro.displayName="Accordion";const D_=Object.assign(Ro,{Button:Pi,Collapse:bi,Item:Eo,Header:mo,Body:yo});var ge={exports:{}};/** +import{f as vo,r as X,j as On,a8 as A_,a9 as y_,aa as m_,i as Et,ab as xo,ac as E_,ad as R_,ae as I_,af as C_,ag as S_,h as $t,ah as cr}from"./index-DBbSOdjk.js";import{u as T_}from"./hook-D9Tuu5oJ.js";function he(...W){return W.filter(I=>I!=null).reduce((I,o)=>{if(typeof o!="function")throw new Error("Invalid Argument Type, must only provide functions, undefined, or null.");return I===null?o:function(...U){I.apply(this,U),o.apply(this,U)}},null)}const L_={height:["marginTop","marginBottom"],width:["marginLeft","marginRight"]};function O_(W,I){const o=`offset${W[0].toUpperCase()}${W.slice(1)}`,$=I[o],U=L_[W];return $+parseInt(xo(I,U[0]),10)+parseInt(xo(I,U[1]),10)}const W_={[E_]:"collapse",[R_]:"collapsing",[I_]:"collapsing",[C_]:"collapse show"},B_=vo.forwardRef(({onEnter:W,onEntering:I,onEntered:o,onExit:$,onExiting:U,className:k,children:L,dimension:nn="height",in:rn=!1,timeout:ht=300,mountOnEnter:Wn=!1,unmountOnExit:an=!1,appear:_e=!1,getDimensionValue:Kn=O_,...zn},Rt)=>{const N=typeof nn=="function"?nn():nn,et=X.useMemo(()=>he(J=>{J.style[N]="0"},W),[N,W]),de=X.useMemo(()=>he(J=>{const _n=`scroll${N[0].toUpperCase()}${N.slice(1)}`;J.style[N]=`${J[_n]}px`},I),[N,I]),Bn=X.useMemo(()=>he(J=>{J.style[N]=null},o),[N,o]),gt=X.useMemo(()=>he(J=>{J.style[N]=`${Kn(N,J)}px`,S_(J)},$),[$,Kn,N]),Mn=X.useMemo(()=>he(J=>{J.style[N]=null},U),[N,U]);return On.jsx(A_,{ref:Rt,addEndListener:y_,...zn,"aria-expanded":zn.role?rn:null,onEnter:et,onEntering:de,onEntered:Bn,onExit:gt,onExiting:Mn,childRef:m_(L),in:rn,timeout:ht,mountOnEnter:Wn,unmountOnExit:an,appear:_e,children:(J,_n)=>vo.cloneElement(L,{..._n,className:Et(k,L.props.className,W_[J],N==="width"&&"collapse-horizontal")})})});function Ao(W,I){return Array.isArray(W)?W.includes(I):W===I}const pe=X.createContext({});pe.displayName="AccordionContext";const bi=X.forwardRef(({as:W="div",bsPrefix:I,className:o,children:$,eventKey:U,...k},L)=>{const{activeEventKey:nn}=X.useContext(pe);return I=$t(I,"accordion-collapse"),On.jsx(B_,{ref:L,in:Ao(nn,U),...k,className:Et(o,I),children:On.jsx(W,{children:X.Children.only($)})})});bi.displayName="AccordionCollapse";const hr=X.createContext({eventKey:""});hr.displayName="AccordionItemContext";const yo=X.forwardRef(({as:W="div",bsPrefix:I,className:o,onEnter:$,onEntering:U,onEntered:k,onExit:L,onExiting:nn,onExited:rn,...ht},Wn)=>{I=$t(I,"accordion-body");const{eventKey:an}=X.useContext(hr);return On.jsx(bi,{eventKey:an,onEnter:$,onEntering:U,onEntered:k,onExit:L,onExiting:nn,onExited:rn,children:On.jsx(W,{ref:Wn,...ht,className:Et(o,I)})})});yo.displayName="AccordionBody";function M_(W,I){const{activeEventKey:o,onSelect:$,alwaysOpen:U}=X.useContext(pe);return k=>{let L=W===o?null:W;U&&(Array.isArray(o)?o.includes(W)?L=o.filter(nn=>nn!==W):L=[...o,W]:L=[W]),$==null||$(L,k),I==null||I(k)}}const Pi=X.forwardRef(({as:W="button",bsPrefix:I,className:o,onClick:$,...U},k)=>{I=$t(I,"accordion-button");const{eventKey:L}=X.useContext(hr),nn=M_(L,$),{activeEventKey:rn}=X.useContext(pe);return W==="button"&&(U.type="button"),On.jsx(W,{ref:k,onClick:nn,...U,"aria-expanded":Array.isArray(rn)?rn.includes(L):L===rn,className:Et(o,I,!Ao(rn,L)&&"collapsed")})});Pi.displayName="AccordionButton";const mo=X.forwardRef(({as:W="h2","aria-controls":I,bsPrefix:o,className:$,children:U,onClick:k,...L},nn)=>(o=$t(o,"accordion-header"),On.jsx(W,{ref:nn,...L,className:Et($,o),children:On.jsx(Pi,{onClick:k,"aria-controls":I,children:U})})));mo.displayName="AccordionHeader";const Eo=X.forwardRef(({as:W="div",bsPrefix:I,className:o,eventKey:$,...U},k)=>{I=$t(I,"accordion-item");const L=X.useMemo(()=>({eventKey:$}),[$]);return On.jsx(hr.Provider,{value:L,children:On.jsx(W,{ref:k,...U,className:Et(o,I)})})});Eo.displayName="AccordionItem";const Ro=X.forwardRef((W,I)=>{const{as:o="div",activeKey:$,bsPrefix:U,className:k,onSelect:L,flush:nn,alwaysOpen:rn,...ht}=T_(W,{activeKey:"onSelect"}),Wn=$t(U,"accordion"),an=X.useMemo(()=>({activeEventKey:$,onSelect:L,alwaysOpen:rn}),[$,L,rn]);return On.jsx(pe.Provider,{value:an,children:On.jsx(o,{ref:I,...ht,className:Et(k,Wn,nn&&`${Wn}-flush`)})})});Ro.displayName="Accordion";const D_=Object.assign(Ro,{Button:Pi,Collapse:bi,Item:Eo,Header:mo,Body:yo});var ge={exports:{}};/** * @license * Lodash <https://lodash.com/> * Copyright OpenJS Foundation and other contributors <https://openjsf.org/> diff --git a/compendium_v2/static/survey.core-D1mOb2z9.js b/compendium_v2/static/survey.core-Dz7VpPEK.js similarity index 64% rename from compendium_v2/static/survey.core-D1mOb2z9.js rename to compendium_v2/static/survey.core-Dz7VpPEK.js index a27a8d757617673c5f4bf4cd01cdb5000f43c3f0..3756a52f3920fa229cc48ad098d5766321b6eb3a 100644 --- a/compendium_v2/static/survey.core-D1mOb2z9.js +++ b/compendium_v2/static/survey.core-Dz7VpPEK.js @@ -1,16 +1,16 @@ 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 + * surveyjs - Survey JavaScript library v1.12.24 * 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. + */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 W}),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(` +`,"\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 W(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 W(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 W({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)}}(),$=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 W(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,$([h()],t.prototype,"tooltip",void 0),$([h()],t.prototype,"showTitle",void 0),$([h()],t.prototype,"innerCss",void 0),$([h()],t.prototype,"active",void 0),$([h()],t.prototype,"pressed",void 0),$([h()],t.prototype,"popupModel",void 0),$([h()],t.prototype,"needSeparator",void 0),$([h()],t.prototype,"template",void 0),$([h({defaultValue:"large"})],t.prototype,"mode",void 0),$([h()],t.prototype,"visibleIndex",void 0),$([h()],t.prototype,"disableTabStop",void 0),$([h()],t.prototype,"disableShrink",void 0),$([h()],t.prototype,"disableHide",void 0),$([h({defaultValue:!1})],t.prototype,"needSpace",void 0),$([h()],t.prototype,"ariaChecked",void 0),$([h()],t.prototype,"ariaExpanded",void 0),$([h({defaultValue:"button"})],t.prototype,"ariaRole",void 0),$([h()],t.prototype,"iconName",void 0),$([h({defaultValue:24})],t.prototype,"iconSize",void 0),$([h()],t.prototype,"markerIconName",void 0),$([h()],t.prototype,"css",void 0),$([h({defaultValue:!1})],t.prototype,"isPressed",void 0),$([h({defaultValue:!1})],t.prototype,"isHovered",void 0),t}(z),W=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()},$([h()],t.prototype,"id",void 0),$([h({defaultValue:!0,onSet:function(e,n){n.raiseUpdate()}})],t.prototype,"_visible",void 0),$([h({onSet:function(e,n){n.locTooltipChanged()}})],t.prototype,"locTooltipName",void 0),$([h()],t.prototype,"_enabled",void 0),$([h()],t.prototype,"action",void 0),$([h()],t.prototype,"onFocus",void 0),$([h()],t.prototype,"_component",void 0),$([h()],t.prototype,"items",void 0),$([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.isCollapsed},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()),this.blockAnimations(),this.renderedIsExpanded=!this.isCollapsed,this.releaseAnimations()},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=` +`):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){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 W({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 W({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 W({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 W({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.value,o=this.getRowValueCore(n[e],r);return this.isValueSurveyElement(r)?o:P.getUnbindValue(o)},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; @@ -19,7 +19,7 @@ Click the button below to add a new entry.`,noEntriesReadonlyText:"No entries",t 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=` + `,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){var n=this.getIsContentVisible(e);return this.visible&&n},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 W({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 W({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 W({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 W({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 W({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 W({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},t.prototype.hasErrors=function(e,n){return e===void 0&&(e=!0),n===void 0&&(n=null),(!n||n.isOnValueChanged!==!0)&&this.clearIncorrectValues(),i.prototype.hasErrors.call(this,e,n)},Object.defineProperty(t.prototype,"isUsingCarryForward",{get:function(){return!!this.carryForwardQuestionType},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"carryForwardQuestionType",{get:function(){return this.getPropertyValue("carryForwardQuestionType")},enumerable:!1,configurable:!0}),t.prototype.setCarryForwardQuestionType=function(e,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; @@ -27,10 +27,10 @@ Click the button below to add a new entry.`,noEntriesReadonlyText:"No entries",t 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 + `;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.visibleChoices,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)});/*! +`},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 W({id:"fileIndex",title:n.getFileIndexCaption(),enabled:!1}),n.prevFileAction=new W({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 W({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 W({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 W({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 W({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 W({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 W({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 W({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 W({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}; + */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}(W),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 W({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 W({id:"sv-pd-prev-btn",title:this.panelPrevText,action:function(){e.goToPrevPanel()}}),o=new W({id:"sv-pd-next-btn",title:this.panelNextText,action:function(){e.goToNextPanel()}}),s=new W({id:"sv-pd-add-btn",component:"sv-paneldynamic-add-btn",data:{question:this}}),a=new W({id:"sv-prev-btn-icon",component:"sv-paneldynamic-prev-btn",data:{question:this}}),l=new W({id:"sv-pd-progress-text",component:"sv-paneldynamic-progress-text",data:{question:this}}),u=new W({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.24",b.version=Wt,vi="2025-02-19";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/third-party-licenses.txt b/compendium_v2/static/third-party-licenses.txt index 6b6c0b714919323399a8a9e60aaae9241091c1ee..c4397831bc5b5084673134653e84d9a1509f32dc 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.5 +Version: 7.2.0 License: MIT Private: false Description: Declarative routing for React @@ -495,7 +495,7 @@ SOFTWARE. --- Name: react-icons -Version: 5.4.0 +Version: 5.5.0 License: MIT Private: false Description: SVG React icons of popular icon packs using ES6 imports @@ -974,7 +974,7 @@ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLI --- Name: chart.js -Version: 4.4.7 +Version: 4.4.8 License: MIT Private: false Description: Simple HTML5 charts using the canvas element. @@ -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.23 +Version: 1.12.24 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.23 +Version: 1.12.24 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. diff --git a/compendium_v2/static/useData-CcKTpALT.js b/compendium_v2/static/useData-CcKTpALT.js new file mode 100644 index 0000000000000000000000000000000000000000..95cba3a28d3b6b5fa3dfc18a64397d14746fd092 --- /dev/null +++ b/compendium_v2/static/useData-CcKTpALT.js @@ -0,0 +1,20 @@ +var Wa=Object.defineProperty;var Va=(e,t,n)=>t in e?Wa(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var R=(e,t,n)=>Va(e,typeof t!="symbol"?t+"":t,n);import{r as E,u as Wt,g as Ya,j as M,h as qt,i as Kt,k as Ua,w as Xa,l as bs,o as qa,m as fn,f as ue,n as lr,B as Ka,p as Ga,q as Ja,s as xs,v as Za,x as cr,y as Ft,z as Qa,A as tl,c as wt,D as el,S as G,E as hr,R as se,O as nl,P as il,G as sl,N as ol,H as rl,I as ve,J as ur,K as ge,M as al,Q as ll,T as cl,L as hl,V as ul,C as ys,W as Zn,X as dl}from"./index-DBbSOdjk.js";import{S as rn}from"./SideBar-DfD7Pj8p.js";import{u as Qn,w as fl}from"./xlsx-BHRztzV8.js";import{c as dr,F as fr}from"./index-DkYuYqrz.js";import{u as pl}from"./hook-D9Tuu5oJ.js";function gl(){return E.useState(null)}function ml(e,t,n,i=!1){const s=Wt(n);E.useEffect(()=>{const o=typeof e=="function"?e():e;return o.addEventListener(t,s,i),()=>o.removeEventListener(t,s,i)},[e])}const bl=["onKeyDown"];function xl(e,t){if(e==null)return{};var n={};for(var i in e)if({}.hasOwnProperty.call(e,i)){if(t.indexOf(i)>=0)continue;n[i]=e[i]}return n}function yl(e){return!e||e.trim()==="#"}const pr=E.forwardRef((e,t)=>{let{onKeyDown:n}=e,i=xl(e,bl);const[s]=Ya(Object.assign({tagName:"a"},i)),o=Wt(r=>{s.onKeyDown(r),n==null||n(r)});return yl(i.href)||i.role==="button"?M.jsx("a",Object.assign({ref:t},i,s,{onKeyDown:o})):M.jsx("a",Object.assign({ref:t},i,{onKeyDown:n}))});pr.displayName="Anchor";const Ri=E.forwardRef(({bsPrefix:e,className:t,role:n="toolbar",...i},s)=>{const o=qt(e,"btn-toolbar");return M.jsx("div",{...i,ref:s,className:Kt(t,o),role:n})});Ri.displayName="ButtonToolbar";function vl(e,t,n){const i=E.useRef(e!==void 0),[s,o]=E.useState(t),r=e!==void 0,a=i.current;return i.current=r,!r&&a&&s!==t&&o(t),[r?e:s,E.useCallback((...l)=>{const[c,...h]=l;let u=n==null?void 0:n(c,...h);return o(c),u},[n])]}function _l(){const[,e]=E.useReducer(t=>t+1,0);return e}const Un=E.createContext(null);var vs=Object.prototype.hasOwnProperty;function _s(e,t,n){for(n of e.keys())if(We(n,t))return n}function We(e,t){var n,i,s;if(e===t)return!0;if(e&&t&&(n=e.constructor)===t.constructor){if(n===Date)return e.getTime()===t.getTime();if(n===RegExp)return e.toString()===t.toString();if(n===Array){if((i=e.length)===t.length)for(;i--&&We(e[i],t[i]););return i===-1}if(n===Set){if(e.size!==t.size)return!1;for(i of e)if(s=i,s&&typeof s=="object"&&(s=_s(t,s),!s)||!t.has(s))return!1;return!0}if(n===Map){if(e.size!==t.size)return!1;for(i of e)if(s=i[0],s&&typeof s=="object"&&(s=_s(t,s),!s)||!We(i[1],t.get(s)))return!1;return!0}if(n===ArrayBuffer)e=new Uint8Array(e),t=new Uint8Array(t);else if(n===DataView){if((i=e.byteLength)===t.byteLength)for(;i--&&e.getInt8(i)===t.getInt8(i););return i===-1}if(ArrayBuffer.isView(e)){if((i=e.byteLength)===t.byteLength)for(;i--&&e[i]===t[i];);return i===-1}if(!n||typeof e=="object"){i=0;for(n in e)if(vs.call(e,n)&&++i&&!vs.call(t,n)||!(n in t)||!We(e[n],t[n]))return!1;return Object.keys(t).length===i}}return e!==e&&t!==t}function wl(e){const t=Ua();return[e[0],E.useCallback(n=>{if(t())return e[1](n)},[t,e[1]])]}var ut="top",xt="bottom",yt="right",dt="left",Li="auto",an=[ut,xt,yt,dt],ke="start",Ge="end",Sl="clippingParents",gr="viewport",Le="popper",kl="reference",ws=an.reduce(function(e,t){return e.concat([t+"-"+ke,t+"-"+Ge])},[]),mr=[].concat(an,[Li]).reduce(function(e,t){return e.concat([t,t+"-"+ke,t+"-"+Ge])},[]),Ml="beforeRead",Cl="read",Pl="afterRead",Ol="beforeMain",Dl="main",El="afterMain",Al="beforeWrite",Tl="write",Rl="afterWrite",Ll=[Ml,Cl,Pl,Ol,Dl,El,Al,Tl,Rl];function Pt(e){return e.split("-")[0]}function gt(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function de(e){var t=gt(e).Element;return e instanceof t||e instanceof Element}function Ot(e){var t=gt(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function Fi(e){if(typeof ShadowRoot>"u")return!1;var t=gt(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}var ce=Math.max,Fn=Math.min,Me=Math.round;function vi(){var e=navigator.userAgentData;return e!=null&&e.brands&&Array.isArray(e.brands)?e.brands.map(function(t){return t.brand+"/"+t.version}).join(" "):navigator.userAgent}function br(){return!/^((?!chrome|android).)*safari/i.test(vi())}function Ce(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!1);var i=e.getBoundingClientRect(),s=1,o=1;t&&Ot(e)&&(s=e.offsetWidth>0&&Me(i.width)/e.offsetWidth||1,o=e.offsetHeight>0&&Me(i.height)/e.offsetHeight||1);var r=de(e)?gt(e):window,a=r.visualViewport,l=!br()&&n,c=(i.left+(l&&a?a.offsetLeft:0))/s,h=(i.top+(l&&a?a.offsetTop:0))/o,u=i.width/s,d=i.height/o;return{width:u,height:d,top:h,right:c+u,bottom:h+d,left:c,x:c,y:h}}function Ii(e){var t=Ce(e),n=e.offsetWidth,i=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-i)<=1&&(i=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:i}}function xr(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&Fi(n)){var i=t;do{if(i&&e.isSameNode(i))return!0;i=i.parentNode||i.host}while(i)}return!1}function Ut(e){return e?(e.nodeName||"").toLowerCase():null}function It(e){return gt(e).getComputedStyle(e)}function Fl(e){return["table","td","th"].indexOf(Ut(e))>=0}function Gt(e){return((de(e)?e.ownerDocument:e.document)||window.document).documentElement}function Xn(e){return Ut(e)==="html"?e:e.assignedSlot||e.parentNode||(Fi(e)?e.host:null)||Gt(e)}function Ss(e){return!Ot(e)||It(e).position==="fixed"?null:e.offsetParent}function Il(e){var t=/firefox/i.test(vi()),n=/Trident/i.test(vi());if(n&&Ot(e)){var i=It(e);if(i.position==="fixed")return null}var s=Xn(e);for(Fi(s)&&(s=s.host);Ot(s)&&["html","body"].indexOf(Ut(s))<0;){var o=It(s);if(o.transform!=="none"||o.perspective!=="none"||o.contain==="paint"||["transform","perspective"].indexOf(o.willChange)!==-1||t&&o.willChange==="filter"||t&&o.filter&&o.filter!=="none")return s;s=s.parentNode}return null}function ln(e){for(var t=gt(e),n=Ss(e);n&&Fl(n)&&It(n).position==="static";)n=Ss(n);return n&&(Ut(n)==="html"||Ut(n)==="body"&&It(n).position==="static")?t:n||Il(e)||t}function ji(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function Ve(e,t,n){return ce(e,Fn(t,n))}function jl(e,t,n){var i=Ve(e,t,n);return i>n?n:i}function yr(){return{top:0,right:0,bottom:0,left:0}}function vr(e){return Object.assign({},yr(),e)}function _r(e,t){return t.reduce(function(n,i){return n[i]=e,n},{})}var $l=function(t,n){return t=typeof t=="function"?t(Object.assign({},n.rects,{placement:n.placement})):t,vr(typeof t!="number"?t:_r(t,an))};function zl(e){var t,n=e.state,i=e.name,s=e.options,o=n.elements.arrow,r=n.modifiersData.popperOffsets,a=Pt(n.placement),l=ji(a),c=[dt,yt].indexOf(a)>=0,h=c?"height":"width";if(!(!o||!r)){var u=$l(s.padding,n),d=Ii(o),f=l==="y"?ut:dt,g=l==="y"?xt:yt,m=n.rects.reference[h]+n.rects.reference[l]-r[l]-n.rects.popper[h],p=r[l]-n.rects.reference[l],b=ln(o),x=b?l==="y"?b.clientHeight||0:b.clientWidth||0:0,v=m/2-p/2,_=u[f],y=x-d[h]-u[g],w=x/2-d[h]/2+v,k=Ve(_,w,y),S=l;n.modifiersData[i]=(t={},t[S]=k,t.centerOffset=k-w,t)}}function Nl(e){var t=e.state,n=e.options,i=n.element,s=i===void 0?"[data-popper-arrow]":i;s!=null&&(typeof s=="string"&&(s=t.elements.popper.querySelector(s),!s)||xr(t.elements.popper,s)&&(t.elements.arrow=s))}const Bl={name:"arrow",enabled:!0,phase:"main",fn:zl,effect:Nl,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function Pe(e){return e.split("-")[1]}var Hl={top:"auto",right:"auto",bottom:"auto",left:"auto"};function Wl(e,t){var n=e.x,i=e.y,s=t.devicePixelRatio||1;return{x:Me(n*s)/s||0,y:Me(i*s)/s||0}}function ks(e){var t,n=e.popper,i=e.popperRect,s=e.placement,o=e.variation,r=e.offsets,a=e.position,l=e.gpuAcceleration,c=e.adaptive,h=e.roundOffsets,u=e.isFixed,d=r.x,f=d===void 0?0:d,g=r.y,m=g===void 0?0:g,p=typeof h=="function"?h({x:f,y:m}):{x:f,y:m};f=p.x,m=p.y;var b=r.hasOwnProperty("x"),x=r.hasOwnProperty("y"),v=dt,_=ut,y=window;if(c){var w=ln(n),k="clientHeight",S="clientWidth";if(w===gt(n)&&(w=Gt(n),It(w).position!=="static"&&a==="absolute"&&(k="scrollHeight",S="scrollWidth")),w=w,s===ut||(s===dt||s===yt)&&o===Ge){_=xt;var C=u&&w===y&&y.visualViewport?y.visualViewport.height:w[k];m-=C-i.height,m*=l?1:-1}if(s===dt||(s===ut||s===xt)&&o===Ge){v=yt;var D=u&&w===y&&y.visualViewport?y.visualViewport.width:w[S];f-=D-i.width,f*=l?1:-1}}var P=Object.assign({position:a},c&&Hl),O=h===!0?Wl({x:f,y:m},gt(n)):{x:f,y:m};if(f=O.x,m=O.y,l){var A;return Object.assign({},P,(A={},A[_]=x?"0":"",A[v]=b?"0":"",A.transform=(y.devicePixelRatio||1)<=1?"translate("+f+"px, "+m+"px)":"translate3d("+f+"px, "+m+"px, 0)",A))}return Object.assign({},P,(t={},t[_]=x?m+"px":"",t[v]=b?f+"px":"",t.transform="",t))}function Vl(e){var t=e.state,n=e.options,i=n.gpuAcceleration,s=i===void 0?!0:i,o=n.adaptive,r=o===void 0?!0:o,a=n.roundOffsets,l=a===void 0?!0:a,c={placement:Pt(t.placement),variation:Pe(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:s,isFixed:t.options.strategy==="fixed"};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,ks(Object.assign({},c,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:r,roundOffsets:l})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,ks(Object.assign({},c,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:l})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}const Yl={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:Vl,data:{}};var pn={passive:!0};function Ul(e){var t=e.state,n=e.instance,i=e.options,s=i.scroll,o=s===void 0?!0:s,r=i.resize,a=r===void 0?!0:r,l=gt(t.elements.popper),c=[].concat(t.scrollParents.reference,t.scrollParents.popper);return o&&c.forEach(function(h){h.addEventListener("scroll",n.update,pn)}),a&&l.addEventListener("resize",n.update,pn),function(){o&&c.forEach(function(h){h.removeEventListener("scroll",n.update,pn)}),a&&l.removeEventListener("resize",n.update,pn)}}const Xl={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:Ul,data:{}};var ql={left:"right",right:"left",bottom:"top",top:"bottom"};function Tn(e){return e.replace(/left|right|bottom|top/g,function(t){return ql[t]})}var Kl={start:"end",end:"start"};function Ms(e){return e.replace(/start|end/g,function(t){return Kl[t]})}function $i(e){var t=gt(e),n=t.pageXOffset,i=t.pageYOffset;return{scrollLeft:n,scrollTop:i}}function zi(e){return Ce(Gt(e)).left+$i(e).scrollLeft}function Gl(e,t){var n=gt(e),i=Gt(e),s=n.visualViewport,o=i.clientWidth,r=i.clientHeight,a=0,l=0;if(s){o=s.width,r=s.height;var c=br();(c||!c&&t==="fixed")&&(a=s.offsetLeft,l=s.offsetTop)}return{width:o,height:r,x:a+zi(e),y:l}}function Jl(e){var t,n=Gt(e),i=$i(e),s=(t=e.ownerDocument)==null?void 0:t.body,o=ce(n.scrollWidth,n.clientWidth,s?s.scrollWidth:0,s?s.clientWidth:0),r=ce(n.scrollHeight,n.clientHeight,s?s.scrollHeight:0,s?s.clientHeight:0),a=-i.scrollLeft+zi(e),l=-i.scrollTop;return It(s||n).direction==="rtl"&&(a+=ce(n.clientWidth,s?s.clientWidth:0)-o),{width:o,height:r,x:a,y:l}}function Ni(e){var t=It(e),n=t.overflow,i=t.overflowX,s=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+s+i)}function wr(e){return["html","body","#document"].indexOf(Ut(e))>=0?e.ownerDocument.body:Ot(e)&&Ni(e)?e:wr(Xn(e))}function Ye(e,t){var n;t===void 0&&(t=[]);var i=wr(e),s=i===((n=e.ownerDocument)==null?void 0:n.body),o=gt(i),r=s?[o].concat(o.visualViewport||[],Ni(i)?i:[]):i,a=t.concat(r);return s?a:a.concat(Ye(Xn(r)))}function _i(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function Zl(e,t){var n=Ce(e,!1,t==="fixed");return n.top=n.top+e.clientTop,n.left=n.left+e.clientLeft,n.bottom=n.top+e.clientHeight,n.right=n.left+e.clientWidth,n.width=e.clientWidth,n.height=e.clientHeight,n.x=n.left,n.y=n.top,n}function Cs(e,t,n){return t===gr?_i(Gl(e,n)):de(t)?Zl(t,n):_i(Jl(Gt(e)))}function Ql(e){var t=Ye(Xn(e)),n=["absolute","fixed"].indexOf(It(e).position)>=0,i=n&&Ot(e)?ln(e):e;return de(i)?t.filter(function(s){return de(s)&&xr(s,i)&&Ut(s)!=="body"}):[]}function tc(e,t,n,i){var s=t==="clippingParents"?Ql(e):[].concat(t),o=[].concat(s,[n]),r=o[0],a=o.reduce(function(l,c){var h=Cs(e,c,i);return l.top=ce(h.top,l.top),l.right=Fn(h.right,l.right),l.bottom=Fn(h.bottom,l.bottom),l.left=ce(h.left,l.left),l},Cs(e,r,i));return a.width=a.right-a.left,a.height=a.bottom-a.top,a.x=a.left,a.y=a.top,a}function Sr(e){var t=e.reference,n=e.element,i=e.placement,s=i?Pt(i):null,o=i?Pe(i):null,r=t.x+t.width/2-n.width/2,a=t.y+t.height/2-n.height/2,l;switch(s){case ut:l={x:r,y:t.y-n.height};break;case xt:l={x:r,y:t.y+t.height};break;case yt:l={x:t.x+t.width,y:a};break;case dt:l={x:t.x-n.width,y:a};break;default:l={x:t.x,y:t.y}}var c=s?ji(s):null;if(c!=null){var h=c==="y"?"height":"width";switch(o){case ke:l[c]=l[c]-(t[h]/2-n[h]/2);break;case Ge:l[c]=l[c]+(t[h]/2-n[h]/2);break}}return l}function Je(e,t){t===void 0&&(t={});var n=t,i=n.placement,s=i===void 0?e.placement:i,o=n.strategy,r=o===void 0?e.strategy:o,a=n.boundary,l=a===void 0?Sl:a,c=n.rootBoundary,h=c===void 0?gr:c,u=n.elementContext,d=u===void 0?Le:u,f=n.altBoundary,g=f===void 0?!1:f,m=n.padding,p=m===void 0?0:m,b=vr(typeof p!="number"?p:_r(p,an)),x=d===Le?kl:Le,v=e.rects.popper,_=e.elements[g?x:d],y=tc(de(_)?_:_.contextElement||Gt(e.elements.popper),l,h,r),w=Ce(e.elements.reference),k=Sr({reference:w,element:v,strategy:"absolute",placement:s}),S=_i(Object.assign({},v,k)),C=d===Le?S:w,D={top:y.top-C.top+b.top,bottom:C.bottom-y.bottom+b.bottom,left:y.left-C.left+b.left,right:C.right-y.right+b.right},P=e.modifiersData.offset;if(d===Le&&P){var O=P[s];Object.keys(D).forEach(function(A){var I=[yt,xt].indexOf(A)>=0?1:-1,T=[ut,xt].indexOf(A)>=0?"y":"x";D[A]+=O[T]*I})}return D}function ec(e,t){t===void 0&&(t={});var n=t,i=n.placement,s=n.boundary,o=n.rootBoundary,r=n.padding,a=n.flipVariations,l=n.allowedAutoPlacements,c=l===void 0?mr:l,h=Pe(i),u=h?a?ws:ws.filter(function(g){return Pe(g)===h}):an,d=u.filter(function(g){return c.indexOf(g)>=0});d.length===0&&(d=u);var f=d.reduce(function(g,m){return g[m]=Je(e,{placement:m,boundary:s,rootBoundary:o,padding:r})[Pt(m)],g},{});return Object.keys(f).sort(function(g,m){return f[g]-f[m]})}function nc(e){if(Pt(e)===Li)return[];var t=Tn(e);return[Ms(e),t,Ms(t)]}function ic(e){var t=e.state,n=e.options,i=e.name;if(!t.modifiersData[i]._skip){for(var s=n.mainAxis,o=s===void 0?!0:s,r=n.altAxis,a=r===void 0?!0:r,l=n.fallbackPlacements,c=n.padding,h=n.boundary,u=n.rootBoundary,d=n.altBoundary,f=n.flipVariations,g=f===void 0?!0:f,m=n.allowedAutoPlacements,p=t.options.placement,b=Pt(p),x=b===p,v=l||(x||!g?[Tn(p)]:nc(p)),_=[p].concat(v).reduce(function(U,X){return U.concat(Pt(X)===Li?ec(t,{placement:X,boundary:h,rootBoundary:u,padding:c,flipVariations:g,allowedAutoPlacements:m}):X)},[]),y=t.rects.reference,w=t.rects.popper,k=new Map,S=!0,C=_[0],D=0;D<_.length;D++){var P=_[D],O=Pt(P),A=Pe(P)===ke,I=[ut,xt].indexOf(O)>=0,T=I?"width":"height",L=Je(t,{placement:P,boundary:h,rootBoundary:u,altBoundary:d,padding:c}),F=I?A?yt:dt:A?xt:ut;y[T]>w[T]&&(F=Tn(F));var H=Tn(F),$=[];if(o&&$.push(L[O]<=0),a&&$.push(L[F]<=0,L[H]<=0),$.every(function(U){return U})){C=P,S=!1;break}k.set(P,$)}if(S)for(var N=g?3:1,tt=function(X){var K=_.find(function(Et){var W=k.get(Et);if(W)return W.slice(0,X).every(function(et){return et})});if(K)return C=K,"break"},Q=N;Q>0;Q--){var nt=tt(Q);if(nt==="break")break}t.placement!==C&&(t.modifiersData[i]._skip=!0,t.placement=C,t.reset=!0)}}const sc={name:"flip",enabled:!0,phase:"main",fn:ic,requiresIfExists:["offset"],data:{_skip:!1}};function Ps(e,t,n){return n===void 0&&(n={x:0,y:0}),{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function Os(e){return[ut,yt,xt,dt].some(function(t){return e[t]>=0})}function oc(e){var t=e.state,n=e.name,i=t.rects.reference,s=t.rects.popper,o=t.modifiersData.preventOverflow,r=Je(t,{elementContext:"reference"}),a=Je(t,{altBoundary:!0}),l=Ps(r,i),c=Ps(a,s,o),h=Os(l),u=Os(c);t.modifiersData[n]={referenceClippingOffsets:l,popperEscapeOffsets:c,isReferenceHidden:h,hasPopperEscaped:u},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":h,"data-popper-escaped":u})}const rc={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:oc};function ac(e,t,n){var i=Pt(e),s=[dt,ut].indexOf(i)>=0?-1:1,o=typeof n=="function"?n(Object.assign({},t,{placement:e})):n,r=o[0],a=o[1];return r=r||0,a=(a||0)*s,[dt,yt].indexOf(i)>=0?{x:a,y:r}:{x:r,y:a}}function lc(e){var t=e.state,n=e.options,i=e.name,s=n.offset,o=s===void 0?[0,0]:s,r=mr.reduce(function(h,u){return h[u]=ac(u,t.rects,o),h},{}),a=r[t.placement],l=a.x,c=a.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=l,t.modifiersData.popperOffsets.y+=c),t.modifiersData[i]=r}const cc={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:lc};function hc(e){var t=e.state,n=e.name;t.modifiersData[n]=Sr({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})}const uc={name:"popperOffsets",enabled:!0,phase:"read",fn:hc,data:{}};function dc(e){return e==="x"?"y":"x"}function fc(e){var t=e.state,n=e.options,i=e.name,s=n.mainAxis,o=s===void 0?!0:s,r=n.altAxis,a=r===void 0?!1:r,l=n.boundary,c=n.rootBoundary,h=n.altBoundary,u=n.padding,d=n.tether,f=d===void 0?!0:d,g=n.tetherOffset,m=g===void 0?0:g,p=Je(t,{boundary:l,rootBoundary:c,padding:u,altBoundary:h}),b=Pt(t.placement),x=Pe(t.placement),v=!x,_=ji(b),y=dc(_),w=t.modifiersData.popperOffsets,k=t.rects.reference,S=t.rects.popper,C=typeof m=="function"?m(Object.assign({},t.rects,{placement:t.placement})):m,D=typeof C=="number"?{mainAxis:C,altAxis:C}:Object.assign({mainAxis:0,altAxis:0},C),P=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,O={x:0,y:0};if(w){if(o){var A,I=_==="y"?ut:dt,T=_==="y"?xt:yt,L=_==="y"?"height":"width",F=w[_],H=F+p[I],$=F-p[T],N=f?-S[L]/2:0,tt=x===ke?k[L]:S[L],Q=x===ke?-S[L]:-k[L],nt=t.elements.arrow,U=f&&nt?Ii(nt):{width:0,height:0},X=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:yr(),K=X[I],Et=X[T],W=Ve(0,k[L],U[L]),et=v?k[L]/2-N-W-K-D.mainAxis:tt-W-K-D.mainAxis,Re=v?-k[L]/2+N+W+Et+D.mainAxis:Q+W+Et+D.mainAxis,$t=t.elements.arrow&&ln(t.elements.arrow),Jt=$t?_==="y"?$t.clientTop||0:$t.clientLeft||0:0,Zt=(A=P==null?void 0:P[_])!=null?A:0,lt=F+et-Zt-Jt,Na=F+Re-Zt,cs=Ve(f?Fn(H,lt):H,F,f?ce($,Na):$);w[_]=cs,O[_]=cs-F}if(a){var hs,Ba=_==="x"?ut:dt,Ha=_==="x"?xt:yt,Qt=w[y],dn=y==="y"?"height":"width",us=Qt+p[Ba],ds=Qt-p[Ha],Jn=[ut,dt].indexOf(b)!==-1,fs=(hs=P==null?void 0:P[y])!=null?hs:0,ps=Jn?us:Qt-k[dn]-S[dn]-fs+D.altAxis,gs=Jn?Qt+k[dn]+S[dn]-fs-D.altAxis:ds,ms=f&&Jn?jl(ps,Qt,gs):Ve(f?ps:us,Qt,f?gs:ds);w[y]=ms,O[y]=ms-Qt}t.modifiersData[i]=O}}const pc={name:"preventOverflow",enabled:!0,phase:"main",fn:fc,requiresIfExists:["offset"]};function gc(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function mc(e){return e===gt(e)||!Ot(e)?$i(e):gc(e)}function bc(e){var t=e.getBoundingClientRect(),n=Me(t.width)/e.offsetWidth||1,i=Me(t.height)/e.offsetHeight||1;return n!==1||i!==1}function xc(e,t,n){n===void 0&&(n=!1);var i=Ot(t),s=Ot(t)&&bc(t),o=Gt(t),r=Ce(e,s,n),a={scrollLeft:0,scrollTop:0},l={x:0,y:0};return(i||!i&&!n)&&((Ut(t)!=="body"||Ni(o))&&(a=mc(t)),Ot(t)?(l=Ce(t,!0),l.x+=t.clientLeft,l.y+=t.clientTop):o&&(l.x=zi(o))),{x:r.left+a.scrollLeft-l.x,y:r.top+a.scrollTop-l.y,width:r.width,height:r.height}}function yc(e){var t=new Map,n=new Set,i=[];e.forEach(function(o){t.set(o.name,o)});function s(o){n.add(o.name);var r=[].concat(o.requires||[],o.requiresIfExists||[]);r.forEach(function(a){if(!n.has(a)){var l=t.get(a);l&&s(l)}}),i.push(o)}return e.forEach(function(o){n.has(o.name)||s(o)}),i}function vc(e){var t=yc(e);return Ll.reduce(function(n,i){return n.concat(t.filter(function(s){return s.phase===i}))},[])}function _c(e){var t;return function(){return t||(t=new Promise(function(n){Promise.resolve().then(function(){t=void 0,n(e())})})),t}}function wc(e){var t=e.reduce(function(n,i){var s=n[i.name];return n[i.name]=s?Object.assign({},s,i,{options:Object.assign({},s.options,i.options),data:Object.assign({},s.data,i.data)}):i,n},{});return Object.keys(t).map(function(n){return t[n]})}var Ds={placement:"bottom",modifiers:[],strategy:"absolute"};function Es(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return!t.some(function(i){return!(i&&typeof i.getBoundingClientRect=="function")})}function Sc(e){e===void 0&&(e={});var t=e,n=t.defaultModifiers,i=n===void 0?[]:n,s=t.defaultOptions,o=s===void 0?Ds:s;return function(a,l,c){c===void 0&&(c=o);var h={placement:"bottom",orderedModifiers:[],options:Object.assign({},Ds,o),modifiersData:{},elements:{reference:a,popper:l},attributes:{},styles:{}},u=[],d=!1,f={state:h,setOptions:function(b){var x=typeof b=="function"?b(h.options):b;m(),h.options=Object.assign({},o,h.options,x),h.scrollParents={reference:de(a)?Ye(a):a.contextElement?Ye(a.contextElement):[],popper:Ye(l)};var v=vc(wc([].concat(i,h.options.modifiers)));return h.orderedModifiers=v.filter(function(_){return _.enabled}),g(),f.update()},forceUpdate:function(){if(!d){var b=h.elements,x=b.reference,v=b.popper;if(Es(x,v)){h.rects={reference:xc(x,ln(v),h.options.strategy==="fixed"),popper:Ii(v)},h.reset=!1,h.placement=h.options.placement,h.orderedModifiers.forEach(function(D){return h.modifiersData[D.name]=Object.assign({},D.data)});for(var _=0;_<h.orderedModifiers.length;_++){if(h.reset===!0){h.reset=!1,_=-1;continue}var y=h.orderedModifiers[_],w=y.fn,k=y.options,S=k===void 0?{}:k,C=y.name;typeof w=="function"&&(h=w({state:h,options:S,name:C,instance:f})||h)}}}},update:_c(function(){return new Promise(function(p){f.forceUpdate(),p(h)})}),destroy:function(){m(),d=!0}};if(!Es(a,l))return f;f.setOptions(c).then(function(p){!d&&c.onFirstUpdate&&c.onFirstUpdate(p)});function g(){h.orderedModifiers.forEach(function(p){var b=p.name,x=p.options,v=x===void 0?{}:x,_=p.effect;if(typeof _=="function"){var y=_({state:h,name:b,instance:f,options:v}),w=function(){};u.push(y||w)}})}function m(){u.forEach(function(p){return p()}),u=[]}return f}}const kc=Sc({defaultModifiers:[rc,uc,Yl,Xl,cc,sc,pc,Bl]}),Mc=["enabled","placement","strategy","modifiers"];function Cc(e,t){if(e==null)return{};var n={};for(var i in e)if({}.hasOwnProperty.call(e,i)){if(t.indexOf(i)>=0)continue;n[i]=e[i]}return n}const Pc={name:"applyStyles",enabled:!1,phase:"afterWrite",fn:()=>{}},Oc={name:"ariaDescribedBy",enabled:!0,phase:"afterWrite",effect:({state:e})=>()=>{const{reference:t,popper:n}=e.elements;if("removeAttribute"in t){const i=(t.getAttribute("aria-describedby")||"").split(",").filter(s=>s.trim()!==n.id);i.length?t.setAttribute("aria-describedby",i.join(",")):t.removeAttribute("aria-describedby")}},fn:({state:e})=>{var t;const{popper:n,reference:i}=e.elements,s=(t=n.getAttribute("role"))==null?void 0:t.toLowerCase();if(n.id&&s==="tooltip"&&"setAttribute"in i){const o=i.getAttribute("aria-describedby");if(o&&o.split(",").indexOf(n.id)!==-1)return;i.setAttribute("aria-describedby",o?`${o},${n.id}`:n.id)}}},Dc=[];function Ec(e,t,n={}){let{enabled:i=!0,placement:s="bottom",strategy:o="absolute",modifiers:r=Dc}=n,a=Cc(n,Mc);const l=E.useRef(r),c=E.useRef(),h=E.useCallback(()=>{var p;(p=c.current)==null||p.update()},[]),u=E.useCallback(()=>{var p;(p=c.current)==null||p.forceUpdate()},[]),[d,f]=wl(E.useState({placement:s,update:h,forceUpdate:u,attributes:{},styles:{popper:{},arrow:{}}})),g=E.useMemo(()=>({name:"updateStateModifier",enabled:!0,phase:"write",requires:["computeStyles"],fn:({state:p})=>{const b={},x={};Object.keys(p.elements).forEach(v=>{b[v]=p.styles[v],x[v]=p.attributes[v]}),f({state:p,styles:b,attributes:x,update:h,forceUpdate:u,placement:p.placement})}}),[h,u,f]),m=E.useMemo(()=>(We(l.current,r)||(l.current=r),l.current),[r]);return E.useEffect(()=>{!c.current||!i||c.current.setOptions({placement:s,strategy:o,modifiers:[...m,g,Pc]})},[o,s,g,i,m]),E.useEffect(()=>{if(!(!i||e==null||t==null))return c.current=kc(e,t,Object.assign({},a,{placement:s,strategy:o,modifiers:[...m,Oc,g]})),()=>{c.current!=null&&(c.current.destroy(),c.current=void 0,f(p=>Object.assign({},p,{attributes:{},styles:{popper:{}}})))}},[i,e,t]),d}const As=()=>{};function Ac(e){return e.button===0}function Tc(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}const ti=e=>e&&("current"in e?e.current:e),Ts={click:"mousedown",mouseup:"mousedown",pointerup:"pointerdown"};function Rc(e,t=As,{disabled:n,clickTrigger:i="click"}={}){const s=E.useRef(!1),o=E.useRef(!1),r=E.useCallback(c=>{const h=ti(e);Xa(!!h,"ClickOutside captured a close event but does not have a ref to compare it to. useClickOutside(), should be passed a ref that resolves to a DOM node"),s.current=!h||Tc(c)||!Ac(c)||!!bs(h,c.target)||o.current,o.current=!1},[e]),a=Wt(c=>{const h=ti(e);h&&bs(h,c.target)?o.current=!0:o.current=!1}),l=Wt(c=>{s.current||t(c)});E.useEffect(()=>{var c,h;if(n||e==null)return;const u=qa(ti(e)),d=u.defaultView||window;let f=(c=d.event)!=null?c:(h=d.parent)==null?void 0:h.event,g=null;Ts[i]&&(g=fn(u,Ts[i],a,!0));const m=fn(u,i,r,!0),p=fn(u,i,x=>{if(x===f){f=void 0;return}l(x)});let b=[];return"ontouchstart"in u.documentElement&&(b=[].slice.call(u.body.children).map(x=>fn(x,"mousemove",As))),()=>{g==null||g(),m(),p(),b.forEach(x=>x())}},[e,n,i,r,a,l])}function Lc(e){const t={};return Array.isArray(e)?(e==null||e.forEach(n=>{t[n.name]=n}),t):e||t}function Fc(e={}){return Array.isArray(e)?e:Object.keys(e).map(t=>(e[t].name=t,e[t]))}function Ic({enabled:e,enableEvents:t,placement:n,flip:i,offset:s,fixed:o,containerPadding:r,arrowElement:a,popperConfig:l={}}){var c,h,u,d,f;const g=Lc(l.modifiers);return Object.assign({},l,{placement:n,enabled:e,strategy:o?"fixed":l.strategy,modifiers:Fc(Object.assign({},g,{eventListeners:{enabled:t,options:(c=g.eventListeners)==null?void 0:c.options},preventOverflow:Object.assign({},g.preventOverflow,{options:r?Object.assign({padding:r},(h=g.preventOverflow)==null?void 0:h.options):(u=g.preventOverflow)==null?void 0:u.options}),offset:{options:Object.assign({offset:s},(d=g.offset)==null?void 0:d.options)},arrow:Object.assign({},g.arrow,{enabled:!!a,options:Object.assign({},(f=g.arrow)==null?void 0:f.options,{element:a})}),flip:Object.assign({enabled:!!i},g.flip)}))})}const jc=["children","usePopper"];function $c(e,t){if(e==null)return{};var n={};for(var i in e)if({}.hasOwnProperty.call(e,i)){if(t.indexOf(i)>=0)continue;n[i]=e[i]}return n}const zc=()=>{};function kr(e={}){const t=E.useContext(Un),[n,i]=gl(),s=E.useRef(!1),{flip:o,offset:r,rootCloseEvent:a,fixed:l=!1,placement:c,popperConfig:h={},enableEventListeners:u=!0,usePopper:d=!!t}=e,f=(t==null?void 0:t.show)==null?!!e.show:t.show;f&&!s.current&&(s.current=!0);const g=w=>{t==null||t.toggle(!1,w)},{placement:m,setMenu:p,menuElement:b,toggleElement:x}=t||{},v=Ec(x,b,Ic({placement:c||m||"bottom-start",enabled:d,enableEvents:u??f,offset:r,flip:o,fixed:l,arrowElement:n,popperConfig:h})),_=Object.assign({ref:p||zc,"aria-labelledby":x==null?void 0:x.id},v.attributes.popper,{style:v.styles.popper}),y={show:f,placement:m,hasShown:s.current,toggle:t==null?void 0:t.toggle,popper:d?v:null,arrowProps:d?Object.assign({ref:i},v.attributes.arrow,{style:v.styles.arrow}):{}};return Rc(b,g,{clickTrigger:a,disabled:!f}),[_,y]}function Mr(e){let{children:t,usePopper:n=!0}=e,i=$c(e,jc);const[s,o]=kr(Object.assign({},i,{usePopper:n}));return M.jsx(M.Fragment,{children:t(s,o)})}Mr.displayName="DropdownMenu";const Bi={prefix:String(Math.round(Math.random()*1e10)),current:0},Cr=ue.createContext(Bi),Nc=ue.createContext(!1);let Bc=!!(typeof window<"u"&&window.document&&window.document.createElement),ei=new WeakMap;function Hc(e=!1){let t=E.useContext(Cr),n=E.useRef(null);if(n.current===null&&!e){var i,s;let o=(s=ue.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED)===null||s===void 0||(i=s.ReactCurrentOwner)===null||i===void 0?void 0:i.current;if(o){let r=ei.get(o);r==null?ei.set(o,{id:t.current,state:o.memoizedState}):o.memoizedState!==r.state&&(t.current=r.id,ei.delete(o))}n.current=++t.current}return n.current}function Wc(e){let t=E.useContext(Cr);t===Bi&&!Bc&&console.warn("When server rendering, you must wrap your application in an <SSRProvider> to ensure consistent ids are generated between the client and server.");let n=Hc(!!e),i=`react-aria${t.prefix}`;return e||`${i}-${n}`}function Vc(e){let t=ue.useId(),[n]=E.useState(Kc()),i=n?"react-aria":`react-aria${Bi.prefix}`;return e||`${i}-${t}`}const Yc=typeof ue.useId=="function"?Vc:Wc;function Uc(){return!1}function Xc(){return!0}function qc(e){return()=>{}}function Kc(){return typeof ue.useSyncExternalStore=="function"?ue.useSyncExternalStore(qc,Uc,Xc):E.useContext(Nc)}const Pr=e=>{var t;return((t=e.getAttribute("role"))==null?void 0:t.toLowerCase())==="menu"},Rs=()=>{};function Or(){const e=Yc(),{show:t=!1,toggle:n=Rs,setToggle:i,menuElement:s}=E.useContext(Un)||{},o=E.useCallback(a=>{n(!t,a)},[t,n]),r={id:e,ref:i||Rs,onClick:o,"aria-expanded":!!t};return s&&Pr(s)&&(r["aria-haspopup"]=!0),[r,{show:t,toggle:n}]}function Dr({children:e}){const[t,n]=Or();return M.jsx(M.Fragment,{children:e(t,n)})}Dr.displayName="DropdownToggle";const wi=E.createContext(null),Ls=(e,t=null)=>e!=null?String(e):t||null,Er=E.createContext(null);Er.displayName="NavContext";const Gc=["eventKey","disabled","onClick","active","as"];function Jc(e,t){if(e==null)return{};var n={};for(var i in e)if({}.hasOwnProperty.call(e,i)){if(t.indexOf(i)>=0)continue;n[i]=e[i]}return n}function Ar({key:e,href:t,active:n,disabled:i,onClick:s}){const o=E.useContext(wi),r=E.useContext(Er),{activeKey:a}=r||{},l=Ls(e,t),c=n==null&&e!=null?Ls(a)===l:n;return[{onClick:Wt(u=>{i||(s==null||s(u),o&&!u.isPropagationStopped()&&o(l,u))}),"aria-disabled":i||void 0,"aria-selected":c,[lr("dropdown-item")]:""},{isActive:c}]}const Tr=E.forwardRef((e,t)=>{let{eventKey:n,disabled:i,onClick:s,active:o,as:r=Ka}=e,a=Jc(e,Gc);const[l]=Ar({key:n,href:a.href,disabled:i,onClick:s,active:o});return M.jsx(r,Object.assign({},a,{ref:t},l))});Tr.displayName="DropdownItem";function Fs(){const e=_l(),t=E.useRef(null),n=E.useCallback(i=>{t.current=i,e()},[e]);return[t,n]}function cn({defaultShow:e,show:t,onSelect:n,onToggle:i,itemSelector:s=`* [${lr("dropdown-item")}]`,focusFirstItemOnShow:o,placement:r="bottom-start",children:a}){const l=Ga(),[c,h]=vl(t,e,i),[u,d]=Fs(),f=u.current,[g,m]=Fs(),p=g.current,b=Ja(c),x=E.useRef(null),v=E.useRef(!1),_=E.useContext(wi),y=E.useCallback((P,O,A=O==null?void 0:O.type)=>{h(P,{originalEvent:O,source:A})},[h]),w=Wt((P,O)=>{n==null||n(P,O),y(!1,O,"select"),O.isPropagationStopped()||_==null||_(P,O)}),k=E.useMemo(()=>({toggle:y,placement:r,show:c,menuElement:f,toggleElement:p,setMenu:d,setToggle:m}),[y,r,c,f,p,d,m]);f&&b&&!c&&(v.current=f.contains(f.ownerDocument.activeElement));const S=Wt(()=>{p&&p.focus&&p.focus()}),C=Wt(()=>{const P=x.current;let O=o;if(O==null&&(O=u.current&&Pr(u.current)?"keyboard":!1),O===!1||O==="keyboard"&&!/^key.+$/.test(P))return;const A=xs(u.current,s)[0];A&&A.focus&&A.focus()});E.useEffect(()=>{c?C():v.current&&(v.current=!1,S())},[c,v,S,C]),E.useEffect(()=>{x.current=null});const D=(P,O)=>{if(!u.current)return null;const A=xs(u.current,s);let I=A.indexOf(P)+O;return I=Math.max(0,Math.min(I,A.length)),A[I]};return ml(E.useCallback(()=>l.document,[l]),"keydown",P=>{var O,A;const{key:I}=P,T=P.target,L=(O=u.current)==null?void 0:O.contains(T),F=(A=g.current)==null?void 0:A.contains(T);if(/input|textarea/i.test(T.tagName)&&(I===" "||I!=="Escape"&&L||I==="Escape"&&T.type==="search")||!L&&!F||I==="Tab"&&(!u.current||!c))return;x.current=P.type;const $={originalEvent:P,source:P.type};switch(I){case"ArrowUp":{const N=D(T,-1);N&&N.focus&&N.focus(),P.preventDefault();return}case"ArrowDown":if(P.preventDefault(),!c)h(!0,$);else{const N=D(T,1);N&&N.focus&&N.focus()}return;case"Tab":Za(T.ownerDocument,"keyup",N=>{var tt;(N.key==="Tab"&&!N.target||!((tt=u.current)!=null&&tt.contains(N.target)))&&h(!1,$)},{once:!0});break;case"Escape":I==="Escape"&&(P.preventDefault(),P.stopPropagation()),h(!1,$);break}}),M.jsx(wi.Provider,{value:w,children:M.jsx(Un.Provider,{value:k,children:a})})}cn.displayName="Dropdown";cn.Menu=Mr;cn.Toggle=Dr;cn.Item=Tr;const Hi=E.createContext({});Hi.displayName="DropdownContext";const Rr=E.forwardRef(({className:e,bsPrefix:t,as:n="hr",role:i="separator",...s},o)=>(t=qt(t,"dropdown-divider"),M.jsx(n,{ref:o,className:Kt(e,t),role:i,...s})));Rr.displayName="DropdownDivider";const Lr=E.forwardRef(({className:e,bsPrefix:t,as:n="div",role:i="heading",...s},o)=>(t=qt(t,"dropdown-header"),M.jsx(n,{ref:o,className:Kt(e,t),role:i,...s})));Lr.displayName="DropdownHeader";const Fr=E.forwardRef(({bsPrefix:e,className:t,eventKey:n,disabled:i=!1,onClick:s,active:o,as:r=pr,...a},l)=>{const c=qt(e,"dropdown-item"),[h,u]=Ar({key:n,href:a.href,disabled:i,onClick:s,active:o});return M.jsx(r,{...a,...h,ref:l,className:Kt(t,c,u.isActive&&"active",i&&"disabled")})});Fr.displayName="DropdownItem";const Ir=E.forwardRef(({className:e,bsPrefix:t,as:n="span",...i},s)=>(t=qt(t,"dropdown-item-text"),M.jsx(n,{ref:s,className:Kt(e,t),...i})));Ir.displayName="DropdownItemText";const Zc=typeof global<"u"&&global.navigator&&global.navigator.product==="ReactNative",Qc=typeof document<"u",th=Qc||Zc?E.useLayoutEffect:E.useEffect,jr=E.createContext(null);jr.displayName="NavbarContext";function $r(e,t){return e}function zr(e,t,n){const i=n?"top-end":"top-start",s=n?"top-start":"top-end",o=n?"bottom-end":"bottom-start",r=n?"bottom-start":"bottom-end",a=n?"right-start":"left-start",l=n?"right-end":"left-end",c=n?"left-start":"right-start",h=n?"left-end":"right-end";let u=e?r:o;return t==="up"?u=e?s:i:t==="end"?u=e?h:c:t==="start"?u=e?l:a:t==="down-centered"?u="bottom":t==="up-centered"&&(u="top"),u}const Nr=E.forwardRef(({bsPrefix:e,className:t,align:n,rootCloseEvent:i,flip:s=!0,show:o,renderOnMount:r,as:a="div",popperConfig:l,variant:c,...h},u)=>{let d=!1;const f=E.useContext(jr),g=qt(e,"dropdown-menu"),{align:m,drop:p,isRTL:b}=E.useContext(Hi);n=n||m;const x=E.useContext(dr),v=[];if(n)if(typeof n=="object"){const P=Object.keys(n);if(P.length){const O=P[0],A=n[O];d=A==="start",v.push(`${g}-${O}-${A}`)}}else n==="end"&&(d=!0);const _=zr(d,p,b),[y,{hasShown:w,popper:k,show:S,toggle:C}]=kr({flip:s,rootCloseEvent:i,show:o,usePopper:!f&&v.length===0,offset:[0,2],popperConfig:l,placement:_});if(y.ref=cr($r(u),y.ref),th(()=>{S&&(k==null||k.update())},[S]),!w&&!r&&!x)return null;typeof a!="string"&&(y.show=S,y.close=()=>C==null?void 0:C(!1),y.align=n);let D=h.style;return k!=null&&k.placement&&(D={...h.style,...y.style},h["x-placement"]=k.placement),M.jsx(a,{...h,...y,style:D,...(v.length||f)&&{"data-bs-popper":"static"},className:Kt(t,g,S&&"show",d&&`${g}-end`,c&&`${g}-${c}`,...v)})});Nr.displayName="DropdownMenu";const Br=E.forwardRef(({bsPrefix:e,split:t,className:n,childBsPrefix:i,as:s=Ft,...o},r)=>{const a=qt(e,"dropdown-toggle"),l=E.useContext(Un);i!==void 0&&(o.bsPrefix=i);const[c]=Or();return c.ref=cr(c.ref,$r(r)),M.jsx(s,{className:Kt(n,a,t&&`${a}-split`,(l==null?void 0:l.show)&&"show"),...c,...o})});Br.displayName="DropdownToggle";const Hr=E.forwardRef((e,t)=>{const{bsPrefix:n,drop:i="down",show:s,className:o,align:r="start",onSelect:a,onToggle:l,focusFirstItemOnShow:c,as:h="div",navbar:u,autoClose:d=!0,...f}=pl(e,{show:"onToggle"}),g=E.useContext(dr),m=qt(n,"dropdown"),p=Qa(),b=k=>d===!1?k==="click":d==="inside"?k!=="rootClose":d==="outside"?k!=="select":!0,x=tl((k,S)=>{var C;!((C=S.originalEvent)==null||(C=C.target)==null)&&C.classList.contains("dropdown-toggle")&&S.source==="mousedown"||(S.originalEvent.currentTarget===document&&(S.source!=="keydown"||S.originalEvent.key==="Escape")&&(S.source="rootClose"),b(S.source)&&(l==null||l(k,S)))}),_=zr(r==="end",i,p),y=E.useMemo(()=>({align:r,drop:i,isRTL:p}),[r,i,p]),w={down:m,"down-centered":`${m}-center`,up:"dropup","up-centered":"dropup-center dropup",end:"dropend",start:"dropstart"};return M.jsx(Hi.Provider,{value:y,children:M.jsx(cn,{placement:_,show:s,onSelect:a,onToggle:x,focusFirstItemOnShow:c,itemSelector:`.${m}-item:not(.disabled):not(:disabled)`,children:g?f.children:M.jsx(h,{...f,ref:t,className:Kt(o,s&&"show",w[i])})})})});Hr.displayName="Dropdown";const ni=Object.assign(Hr,{Toggle:Br,Menu:Nr,Item:Fr,ItemText:Ir,Divider:Rr,Header:Lr});/*! + * @kurkle/color v0.3.2 + * https://github.com/kurkle/color#readme + * (c) 2023 Jukka Kurkela + * Released under the MIT License + */function hn(e){return e+.5|0}const Nt=(e,t,n)=>Math.max(Math.min(e,n),t);function Ne(e){return Nt(hn(e*2.55),0,255)}function Vt(e){return Nt(hn(e*255),0,255)}function Lt(e){return Nt(hn(e/2.55)/100,0,1)}function Is(e){return Nt(hn(e*100),0,100)}const mt={0:0,1:1,2:2,3:3,4:4,5:5,6:6,7:7,8:8,9:9,A:10,B:11,C:12,D:13,E:14,F:15,a:10,b:11,c:12,d:13,e:14,f:15},Si=[..."0123456789ABCDEF"],eh=e=>Si[e&15],nh=e=>Si[(e&240)>>4]+Si[e&15],gn=e=>(e&240)>>4===(e&15),ih=e=>gn(e.r)&&gn(e.g)&&gn(e.b)&&gn(e.a);function sh(e){var t=e.length,n;return e[0]==="#"&&(t===4||t===5?n={r:255&mt[e[1]]*17,g:255&mt[e[2]]*17,b:255&mt[e[3]]*17,a:t===5?mt[e[4]]*17:255}:(t===7||t===9)&&(n={r:mt[e[1]]<<4|mt[e[2]],g:mt[e[3]]<<4|mt[e[4]],b:mt[e[5]]<<4|mt[e[6]],a:t===9?mt[e[7]]<<4|mt[e[8]]:255})),n}const oh=(e,t)=>e<255?t(e):"";function rh(e){var t=ih(e)?eh:nh;return e?"#"+t(e.r)+t(e.g)+t(e.b)+oh(e.a,t):void 0}const ah=/^(hsla?|hwb|hsv)\(\s*([-+.e\d]+)(?:deg)?[\s,]+([-+.e\d]+)%[\s,]+([-+.e\d]+)%(?:[\s,]+([-+.e\d]+)(%)?)?\s*\)$/;function Wr(e,t,n){const i=t*Math.min(n,1-n),s=(o,r=(o+e/30)%12)=>n-i*Math.max(Math.min(r-3,9-r,1),-1);return[s(0),s(8),s(4)]}function lh(e,t,n){const i=(s,o=(s+e/60)%6)=>n-n*t*Math.max(Math.min(o,4-o,1),0);return[i(5),i(3),i(1)]}function ch(e,t,n){const i=Wr(e,1,.5);let s;for(t+n>1&&(s=1/(t+n),t*=s,n*=s),s=0;s<3;s++)i[s]*=1-t-n,i[s]+=t;return i}function hh(e,t,n,i,s){return e===s?(t-n)/i+(t<n?6:0):t===s?(n-e)/i+2:(e-t)/i+4}function Wi(e){const n=e.r/255,i=e.g/255,s=e.b/255,o=Math.max(n,i,s),r=Math.min(n,i,s),a=(o+r)/2;let l,c,h;return o!==r&&(h=o-r,c=a>.5?h/(2-o-r):h/(o+r),l=hh(n,i,s,h,o),l=l*60+.5),[l|0,c||0,a]}function Vi(e,t,n,i){return(Array.isArray(t)?e(t[0],t[1],t[2]):e(t,n,i)).map(Vt)}function Yi(e,t,n){return Vi(Wr,e,t,n)}function uh(e,t,n){return Vi(ch,e,t,n)}function dh(e,t,n){return Vi(lh,e,t,n)}function Vr(e){return(e%360+360)%360}function fh(e){const t=ah.exec(e);let n=255,i;if(!t)return;t[5]!==i&&(n=t[6]?Ne(+t[5]):Vt(+t[5]));const s=Vr(+t[2]),o=+t[3]/100,r=+t[4]/100;return t[1]==="hwb"?i=uh(s,o,r):t[1]==="hsv"?i=dh(s,o,r):i=Yi(s,o,r),{r:i[0],g:i[1],b:i[2],a:n}}function ph(e,t){var n=Wi(e);n[0]=Vr(n[0]+t),n=Yi(n),e.r=n[0],e.g=n[1],e.b=n[2]}function gh(e){if(!e)return;const t=Wi(e),n=t[0],i=Is(t[1]),s=Is(t[2]);return e.a<255?`hsla(${n}, ${i}%, ${s}%, ${Lt(e.a)})`:`hsl(${n}, ${i}%, ${s}%)`}const js={x:"dark",Z:"light",Y:"re",X:"blu",W:"gr",V:"medium",U:"slate",A:"ee",T:"ol",S:"or",B:"ra",C:"lateg",D:"ights",R:"in",Q:"turquois",E:"hi",P:"ro",O:"al",N:"le",M:"de",L:"yello",F:"en",K:"ch",G:"arks",H:"ea",I:"ightg",J:"wh"},$s={OiceXe:"f0f8ff",antiquewEte:"faebd7",aqua:"ffff",aquamarRe:"7fffd4",azuY:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"0",blanKedOmond:"ffebcd",Xe:"ff",XeviTet:"8a2be2",bPwn:"a52a2a",burlywood:"deb887",caMtXe:"5f9ea0",KartYuse:"7fff00",KocTate:"d2691e",cSO:"ff7f50",cSnflowerXe:"6495ed",cSnsilk:"fff8dc",crimson:"dc143c",cyan:"ffff",xXe:"8b",xcyan:"8b8b",xgTMnPd:"b8860b",xWay:"a9a9a9",xgYF:"6400",xgYy:"a9a9a9",xkhaki:"bdb76b",xmagFta:"8b008b",xTivegYF:"556b2f",xSange:"ff8c00",xScEd:"9932cc",xYd:"8b0000",xsOmon:"e9967a",xsHgYF:"8fbc8f",xUXe:"483d8b",xUWay:"2f4f4f",xUgYy:"2f4f4f",xQe:"ced1",xviTet:"9400d3",dAppRk:"ff1493",dApskyXe:"bfff",dimWay:"696969",dimgYy:"696969",dodgerXe:"1e90ff",fiYbrick:"b22222",flSOwEte:"fffaf0",foYstWAn:"228b22",fuKsia:"ff00ff",gaRsbSo:"dcdcdc",ghostwEte:"f8f8ff",gTd:"ffd700",gTMnPd:"daa520",Way:"808080",gYF:"8000",gYFLw:"adff2f",gYy:"808080",honeyMw:"f0fff0",hotpRk:"ff69b4",RdianYd:"cd5c5c",Rdigo:"4b0082",ivSy:"fffff0",khaki:"f0e68c",lavFMr:"e6e6fa",lavFMrXsh:"fff0f5",lawngYF:"7cfc00",NmoncEffon:"fffacd",ZXe:"add8e6",ZcSO:"f08080",Zcyan:"e0ffff",ZgTMnPdLw:"fafad2",ZWay:"d3d3d3",ZgYF:"90ee90",ZgYy:"d3d3d3",ZpRk:"ffb6c1",ZsOmon:"ffa07a",ZsHgYF:"20b2aa",ZskyXe:"87cefa",ZUWay:"778899",ZUgYy:"778899",ZstAlXe:"b0c4de",ZLw:"ffffe0",lime:"ff00",limegYF:"32cd32",lRF:"faf0e6",magFta:"ff00ff",maPon:"800000",VaquamarRe:"66cdaa",VXe:"cd",VScEd:"ba55d3",VpurpN:"9370db",VsHgYF:"3cb371",VUXe:"7b68ee",VsprRggYF:"fa9a",VQe:"48d1cc",VviTetYd:"c71585",midnightXe:"191970",mRtcYam:"f5fffa",mistyPse:"ffe4e1",moccasR:"ffe4b5",navajowEte:"ffdead",navy:"80",Tdlace:"fdf5e6",Tive:"808000",TivedBb:"6b8e23",Sange:"ffa500",SangeYd:"ff4500",ScEd:"da70d6",pOegTMnPd:"eee8aa",pOegYF:"98fb98",pOeQe:"afeeee",pOeviTetYd:"db7093",papayawEp:"ffefd5",pHKpuff:"ffdab9",peru:"cd853f",pRk:"ffc0cb",plum:"dda0dd",powMrXe:"b0e0e6",purpN:"800080",YbeccapurpN:"663399",Yd:"ff0000",Psybrown:"bc8f8f",PyOXe:"4169e1",saddNbPwn:"8b4513",sOmon:"fa8072",sandybPwn:"f4a460",sHgYF:"2e8b57",sHshell:"fff5ee",siFna:"a0522d",silver:"c0c0c0",skyXe:"87ceeb",UXe:"6a5acd",UWay:"708090",UgYy:"708090",snow:"fffafa",sprRggYF:"ff7f",stAlXe:"4682b4",tan:"d2b48c",teO:"8080",tEstN:"d8bfd8",tomato:"ff6347",Qe:"40e0d0",viTet:"ee82ee",JHt:"f5deb3",wEte:"ffffff",wEtesmoke:"f5f5f5",Lw:"ffff00",LwgYF:"9acd32"};function mh(){const e={},t=Object.keys($s),n=Object.keys(js);let i,s,o,r,a;for(i=0;i<t.length;i++){for(r=a=t[i],s=0;s<n.length;s++)o=n[s],a=a.replace(o,js[o]);o=parseInt($s[r],16),e[a]=[o>>16&255,o>>8&255,o&255]}return e}let mn;function bh(e){mn||(mn=mh(),mn.transparent=[0,0,0,0]);const t=mn[e.toLowerCase()];return t&&{r:t[0],g:t[1],b:t[2],a:t.length===4?t[3]:255}}const xh=/^rgba?\(\s*([-+.\d]+)(%)?[\s,]+([-+.e\d]+)(%)?[\s,]+([-+.e\d]+)(%)?(?:[\s,/]+([-+.e\d]+)(%)?)?\s*\)$/;function yh(e){const t=xh.exec(e);let n=255,i,s,o;if(t){if(t[7]!==i){const r=+t[7];n=t[8]?Ne(r):Nt(r*255,0,255)}return i=+t[1],s=+t[3],o=+t[5],i=255&(t[2]?Ne(i):Nt(i,0,255)),s=255&(t[4]?Ne(s):Nt(s,0,255)),o=255&(t[6]?Ne(o):Nt(o,0,255)),{r:i,g:s,b:o,a:n}}}function vh(e){return e&&(e.a<255?`rgba(${e.r}, ${e.g}, ${e.b}, ${Lt(e.a)})`:`rgb(${e.r}, ${e.g}, ${e.b})`)}const ii=e=>e<=.0031308?e*12.92:Math.pow(e,1/2.4)*1.055-.055,me=e=>e<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4);function _h(e,t,n){const i=me(Lt(e.r)),s=me(Lt(e.g)),o=me(Lt(e.b));return{r:Vt(ii(i+n*(me(Lt(t.r))-i))),g:Vt(ii(s+n*(me(Lt(t.g))-s))),b:Vt(ii(o+n*(me(Lt(t.b))-o))),a:e.a+n*(t.a-e.a)}}function bn(e,t,n){if(e){let i=Wi(e);i[t]=Math.max(0,Math.min(i[t]+i[t]*n,t===0?360:1)),i=Yi(i),e.r=i[0],e.g=i[1],e.b=i[2]}}function Yr(e,t){return e&&Object.assign(t||{},e)}function zs(e){var t={r:0,g:0,b:0,a:255};return Array.isArray(e)?e.length>=3&&(t={r:e[0],g:e[1],b:e[2],a:255},e.length>3&&(t.a=Vt(e[3]))):(t=Yr(e,{r:0,g:0,b:0,a:1}),t.a=Vt(t.a)),t}function wh(e){return e.charAt(0)==="r"?yh(e):fh(e)}class Ze{constructor(t){if(t instanceof Ze)return t;const n=typeof t;let i;n==="object"?i=zs(t):n==="string"&&(i=sh(t)||bh(t)||wh(t)),this._rgb=i,this._valid=!!i}get valid(){return this._valid}get rgb(){var t=Yr(this._rgb);return t&&(t.a=Lt(t.a)),t}set rgb(t){this._rgb=zs(t)}rgbString(){return this._valid?vh(this._rgb):void 0}hexString(){return this._valid?rh(this._rgb):void 0}hslString(){return this._valid?gh(this._rgb):void 0}mix(t,n){if(t){const i=this.rgb,s=t.rgb;let o;const r=n===o?.5:n,a=2*r-1,l=i.a-s.a,c=((a*l===-1?a:(a+l)/(1+a*l))+1)/2;o=1-c,i.r=255&c*i.r+o*s.r+.5,i.g=255&c*i.g+o*s.g+.5,i.b=255&c*i.b+o*s.b+.5,i.a=r*i.a+(1-r)*s.a,this.rgb=i}return this}interpolate(t,n){return t&&(this._rgb=_h(this._rgb,t._rgb,n)),this}clone(){return new Ze(this.rgb)}alpha(t){return this._rgb.a=Vt(t),this}clearer(t){const n=this._rgb;return n.a*=1-t,this}greyscale(){const t=this._rgb,n=hn(t.r*.3+t.g*.59+t.b*.11);return t.r=t.g=t.b=n,this}opaquer(t){const n=this._rgb;return n.a*=1+t,this}negate(){const t=this._rgb;return t.r=255-t.r,t.g=255-t.g,t.b=255-t.b,this}lighten(t){return bn(this._rgb,2,t),this}darken(t){return bn(this._rgb,2,-t),this}saturate(t){return bn(this._rgb,1,t),this}desaturate(t){return bn(this._rgb,1,-t),this}rotate(t){return ph(this._rgb,t),this}}/*! + * Chart.js v4.4.8 + * https://www.chartjs.org + * (c) 2025 Chart.js Contributors + * Released under the MIT License + */function At(){}const Sh=(()=>{let e=0;return()=>e++})();function B(e){return e==null}function J(e){if(Array.isArray&&Array.isArray(e))return!0;const t=Object.prototype.toString.call(e);return t.slice(0,7)==="[object"&&t.slice(-6)==="Array]"}function z(e){return e!==null&&Object.prototype.toString.call(e)==="[object Object]"}function vt(e){return(typeof e=="number"||e instanceof Number)&&isFinite(+e)}function St(e,t){return vt(e)?e:t}function j(e,t){return typeof e>"u"?t:e}const kh=(e,t)=>typeof e=="string"&&e.endsWith("%")?parseFloat(e)/100*t:+e;function Y(e,t,n){if(e&&typeof e.call=="function")return e.apply(n,t)}function V(e,t,n,i){let s,o,r;if(J(e))for(o=e.length,s=0;s<o;s++)t.call(n,e[s],s);else if(z(e))for(r=Object.keys(e),o=r.length,s=0;s<o;s++)t.call(n,e[r[s]],r[s])}function In(e,t){let n,i,s,o;if(!e||!t||e.length!==t.length)return!1;for(n=0,i=e.length;n<i;++n)if(s=e[n],o=t[n],s.datasetIndex!==o.datasetIndex||s.index!==o.index)return!1;return!0}function jn(e){if(J(e))return e.map(jn);if(z(e)){const t=Object.create(null),n=Object.keys(e),i=n.length;let s=0;for(;s<i;++s)t[n[s]]=jn(e[n[s]]);return t}return e}function Ur(e){return["__proto__","prototype","constructor"].indexOf(e)===-1}function Mh(e,t,n,i){if(!Ur(e))return;const s=t[e],o=n[e];z(s)&&z(o)?Qe(s,o,i):t[e]=jn(o)}function Qe(e,t,n){const i=J(t)?t:[t],s=i.length;if(!z(e))return e;n=n||{};const o=n.merger||Mh;let r;for(let a=0;a<s;++a){if(r=i[a],!z(r))continue;const l=Object.keys(r);for(let c=0,h=l.length;c<h;++c)o(l[c],e,r,n)}return e}function Ue(e,t){return Qe(e,t,{merger:Ch})}function Ch(e,t,n){if(!Ur(e))return;const i=t[e],s=n[e];z(i)&&z(s)?Ue(i,s):Object.prototype.hasOwnProperty.call(t,e)||(t[e]=jn(s))}const Ns={"":e=>e,x:e=>e.x,y:e=>e.y};function Ph(e){const t=e.split("."),n=[];let i="";for(const s of t)i+=s,i.endsWith("\\")?i=i.slice(0,-1)+".":(n.push(i),i="");return n}function Oh(e){const t=Ph(e);return n=>{for(const i of t){if(i==="")break;n=n&&n[i]}return n}}function Oe(e,t){return(Ns[t]||(Ns[t]=Oh(t)))(e)}function Ui(e){return e.charAt(0).toUpperCase()+e.slice(1)}const tn=e=>typeof e<"u",Xt=e=>typeof e=="function",Bs=(e,t)=>{if(e.size!==t.size)return!1;for(const n of e)if(!t.has(n))return!1;return!0};function Dh(e){return e.type==="mouseup"||e.type==="click"||e.type==="contextmenu"}const Z=Math.PI,st=2*Z,Eh=st+Z,$n=Number.POSITIVE_INFINITY,Ah=Z/180,it=Z/2,te=Z/4,Hs=Z*2/3,ki=Math.log10,Dt=Math.sign;function Xe(e,t,n){return Math.abs(e-t)<n}function Ws(e){const t=Math.round(e);e=Xe(e,t,e/1e3)?t:e;const n=Math.pow(10,Math.floor(ki(e))),i=e/n;return(i<=1?1:i<=2?2:i<=5?5:10)*n}function Th(e){const t=[],n=Math.sqrt(e);let i;for(i=1;i<n;i++)e%i===0&&(t.push(i),t.push(e/i));return n===(n|0)&&t.push(n),t.sort((s,o)=>s-o).pop(),t}function Rh(e){return typeof e=="symbol"||typeof e=="object"&&e!==null&&!(Symbol.toPrimitive in e||"toString"in e||"valueOf"in e)}function en(e){return!Rh(e)&&!isNaN(parseFloat(e))&&isFinite(e)}function Lh(e,t){const n=Math.round(e);return n-t<=e&&n+t>=e}function Fh(e,t,n){let i,s,o;for(i=0,s=e.length;i<s;i++)o=e[i][n],isNaN(o)||(t.min=Math.min(t.min,o),t.max=Math.max(t.max,o))}function ae(e){return e*(Z/180)}function Ih(e){return e*(180/Z)}function Vs(e){if(!vt(e))return;let t=1,n=0;for(;Math.round(e*t)/t!==e;)t*=10,n++;return n}function Xr(e,t){const n=t.x-e.x,i=t.y-e.y,s=Math.sqrt(n*n+i*i);let o=Math.atan2(i,n);return o<-.5*Z&&(o+=st),{angle:o,distance:s}}function Mi(e,t){return Math.sqrt(Math.pow(t.x-e.x,2)+Math.pow(t.y-e.y,2))}function jh(e,t){return(e-t+Eh)%st-Z}function zt(e){return(e%st+st)%st}function Xi(e,t,n,i){const s=zt(e),o=zt(t),r=zt(n),a=zt(o-s),l=zt(r-s),c=zt(s-o),h=zt(s-r);return s===o||s===r||i&&o===r||a>l&&c<h}function rt(e,t,n){return Math.max(t,Math.min(n,e))}function $h(e){return rt(e,-32768,32767)}function Bt(e,t,n,i=1e-6){return e>=Math.min(t,n)-i&&e<=Math.max(t,n)+i}function qi(e,t,n){n=n||(r=>e[r]<t);let i=e.length-1,s=0,o;for(;i-s>1;)o=s+i>>1,n(o)?s=o:i=o;return{lo:s,hi:i}}const le=(e,t,n,i)=>qi(e,n,i?s=>{const o=e[s][t];return o<n||o===n&&e[s+1][t]===n}:s=>e[s][t]<n),zh=(e,t,n)=>qi(e,n,i=>e[i][t]>=n);function Nh(e,t,n){let i=0,s=e.length;for(;i<s&&e[i]<t;)i++;for(;s>i&&e[s-1]>n;)s--;return i>0||s<e.length?e.slice(i,s):e}const qr=["push","pop","shift","splice","unshift"];function Bh(e,t){if(e._chartjs){e._chartjs.listeners.push(t);return}Object.defineProperty(e,"_chartjs",{configurable:!0,enumerable:!1,value:{listeners:[t]}}),qr.forEach(n=>{const i="_onData"+Ui(n),s=e[n];Object.defineProperty(e,n,{configurable:!0,enumerable:!1,value(...o){const r=s.apply(this,o);return e._chartjs.listeners.forEach(a=>{typeof a[i]=="function"&&a[i](...o)}),r}})})}function Ys(e,t){const n=e._chartjs;if(!n)return;const i=n.listeners,s=i.indexOf(t);s!==-1&&i.splice(s,1),!(i.length>0)&&(qr.forEach(o=>{delete e[o]}),delete e._chartjs)}function Kr(e){const t=new Set(e);return t.size===e.length?e:Array.from(t)}const Gr=function(){return typeof window>"u"?function(e){return e()}:window.requestAnimationFrame}();function Jr(e,t){let n=[],i=!1;return function(...s){n=s,i||(i=!0,Gr.call(window,()=>{i=!1,e.apply(t,n)}))}}function Hh(e,t){let n;return function(...i){return t?(clearTimeout(n),n=setTimeout(e,t,i)):e.apply(this,i),t}}const Ki=e=>e==="start"?"left":e==="end"?"right":"center",ot=(e,t,n)=>e==="start"?t:e==="end"?n:(t+n)/2,Wh=(e,t,n,i)=>e===(i?"left":"right")?n:e==="center"?(t+n)/2:t;function Vh(e,t,n){const i=t.length;let s=0,o=i;if(e._sorted){const{iScale:r,vScale:a,_parsed:l}=e,c=e.dataset&&e.dataset.options?e.dataset.options.spanGaps:null,h=r.axis,{min:u,max:d,minDefined:f,maxDefined:g}=r.getUserBounds();if(f){if(s=Math.min(le(l,h,u).lo,n?i:le(t,h,r.getPixelForValue(u)).lo),c){const m=l.slice(0,s+1).reverse().findIndex(p=>!B(p[a.axis]));s-=Math.max(0,m)}s=rt(s,0,i-1)}if(g){let m=Math.max(le(l,r.axis,d,!0).hi+1,n?0:le(t,h,r.getPixelForValue(d),!0).hi+1);if(c){const p=l.slice(m-1).findIndex(b=>!B(b[a.axis]));m+=Math.max(0,p)}o=rt(m,s,i)-s}else o=i-s}return{start:s,count:o}}function Yh(e){const{xScale:t,yScale:n,_scaleRanges:i}=e,s={xmin:t.min,xmax:t.max,ymin:n.min,ymax:n.max};if(!i)return e._scaleRanges=s,!0;const o=i.xmin!==t.min||i.xmax!==t.max||i.ymin!==n.min||i.ymax!==n.max;return Object.assign(i,s),o}const xn=e=>e===0||e===1,Us=(e,t,n)=>-(Math.pow(2,10*(e-=1))*Math.sin((e-t)*st/n)),Xs=(e,t,n)=>Math.pow(2,-10*e)*Math.sin((e-t)*st/n)+1,qe={linear:e=>e,easeInQuad:e=>e*e,easeOutQuad:e=>-e*(e-2),easeInOutQuad:e=>(e/=.5)<1?.5*e*e:-.5*(--e*(e-2)-1),easeInCubic:e=>e*e*e,easeOutCubic:e=>(e-=1)*e*e+1,easeInOutCubic:e=>(e/=.5)<1?.5*e*e*e:.5*((e-=2)*e*e+2),easeInQuart:e=>e*e*e*e,easeOutQuart:e=>-((e-=1)*e*e*e-1),easeInOutQuart:e=>(e/=.5)<1?.5*e*e*e*e:-.5*((e-=2)*e*e*e-2),easeInQuint:e=>e*e*e*e*e,easeOutQuint:e=>(e-=1)*e*e*e*e+1,easeInOutQuint:e=>(e/=.5)<1?.5*e*e*e*e*e:.5*((e-=2)*e*e*e*e+2),easeInSine:e=>-Math.cos(e*it)+1,easeOutSine:e=>Math.sin(e*it),easeInOutSine:e=>-.5*(Math.cos(Z*e)-1),easeInExpo:e=>e===0?0:Math.pow(2,10*(e-1)),easeOutExpo:e=>e===1?1:-Math.pow(2,-10*e)+1,easeInOutExpo:e=>xn(e)?e:e<.5?.5*Math.pow(2,10*(e*2-1)):.5*(-Math.pow(2,-10*(e*2-1))+2),easeInCirc:e=>e>=1?e:-(Math.sqrt(1-e*e)-1),easeOutCirc:e=>Math.sqrt(1-(e-=1)*e),easeInOutCirc:e=>(e/=.5)<1?-.5*(Math.sqrt(1-e*e)-1):.5*(Math.sqrt(1-(e-=2)*e)+1),easeInElastic:e=>xn(e)?e:Us(e,.075,.3),easeOutElastic:e=>xn(e)?e:Xs(e,.075,.3),easeInOutElastic(e){return xn(e)?e:e<.5?.5*Us(e*2,.1125,.45):.5+.5*Xs(e*2-1,.1125,.45)},easeInBack(e){return e*e*((1.70158+1)*e-1.70158)},easeOutBack(e){return(e-=1)*e*((1.70158+1)*e+1.70158)+1},easeInOutBack(e){let t=1.70158;return(e/=.5)<1?.5*(e*e*(((t*=1.525)+1)*e-t)):.5*((e-=2)*e*(((t*=1.525)+1)*e+t)+2)},easeInBounce:e=>1-qe.easeOutBounce(1-e),easeOutBounce(e){return e<1/2.75?7.5625*e*e:e<2/2.75?7.5625*(e-=1.5/2.75)*e+.75:e<2.5/2.75?7.5625*(e-=2.25/2.75)*e+.9375:7.5625*(e-=2.625/2.75)*e+.984375},easeInOutBounce:e=>e<.5?qe.easeInBounce(e*2)*.5:qe.easeOutBounce(e*2-1)*.5+.5};function Gi(e){if(e&&typeof e=="object"){const t=e.toString();return t==="[object CanvasPattern]"||t==="[object CanvasGradient]"}return!1}function qs(e){return Gi(e)?e:new Ze(e)}function si(e){return Gi(e)?e:new Ze(e).saturate(.5).darken(.1).hexString()}const Uh=["x","y","borderWidth","radius","tension"],Xh=["color","borderColor","backgroundColor"];function qh(e){e.set("animation",{delay:void 0,duration:1e3,easing:"easeOutQuart",fn:void 0,from:void 0,loop:void 0,to:void 0,type:void 0}),e.describe("animation",{_fallback:!1,_indexable:!1,_scriptable:t=>t!=="onProgress"&&t!=="onComplete"&&t!=="fn"}),e.set("animations",{colors:{type:"color",properties:Xh},numbers:{type:"number",properties:Uh}}),e.describe("animations",{_fallback:"animation"}),e.set("transitions",{active:{animation:{duration:400}},resize:{animation:{duration:0}},show:{animations:{colors:{from:"transparent"},visible:{type:"boolean",duration:0}}},hide:{animations:{colors:{to:"transparent"},visible:{type:"boolean",easing:"linear",fn:t=>t|0}}}})}function Kh(e){e.set("layout",{autoPadding:!0,padding:{top:0,right:0,bottom:0,left:0}})}const Ks=new Map;function Gh(e,t){t=t||{};const n=e+JSON.stringify(t);let i=Ks.get(n);return i||(i=new Intl.NumberFormat(e,t),Ks.set(n,i)),i}function Zr(e,t,n){return Gh(t,n).format(e)}const Qr={values(e){return J(e)?e:""+e},numeric(e,t,n){if(e===0)return"0";const i=this.chart.options.locale;let s,o=e;if(n.length>1){const c=Math.max(Math.abs(n[0].value),Math.abs(n[n.length-1].value));(c<1e-4||c>1e15)&&(s="scientific"),o=Jh(e,n)}const r=ki(Math.abs(o)),a=isNaN(r)?1:Math.max(Math.min(-1*Math.floor(r),20),0),l={notation:s,minimumFractionDigits:a,maximumFractionDigits:a};return Object.assign(l,this.options.ticks.format),Zr(e,i,l)},logarithmic(e,t,n){if(e===0)return"0";const i=n[t].significand||e/Math.pow(10,Math.floor(ki(e)));return[1,2,3,5,10,15].includes(i)||t>.8*n.length?Qr.numeric.call(this,e,t,n):""}};function Jh(e,t){let n=t.length>3?t[2].value-t[1].value:t[1].value-t[0].value;return Math.abs(n)>=1&&e!==Math.floor(e)&&(n=e-Math.floor(e)),n}var ta={formatters:Qr};function Zh(e){e.set("scale",{display:!0,offset:!1,reverse:!1,beginAtZero:!1,bounds:"ticks",clip:!0,grace:0,grid:{display:!0,lineWidth:1,drawOnChartArea:!0,drawTicks:!0,tickLength:8,tickWidth:(t,n)=>n.lineWidth,tickColor:(t,n)=>n.color,offset:!1},border:{display:!0,dash:[],dashOffset:0,width:1},title:{display:!1,text:"",padding:{top:4,bottom:4}},ticks:{minRotation:0,maxRotation:50,mirror:!1,textStrokeWidth:0,textStrokeColor:"",padding:3,display:!0,autoSkip:!0,autoSkipPadding:3,labelOffset:0,callback:ta.formatters.values,minor:{},major:{},align:"center",crossAlign:"near",showLabelBackdrop:!1,backdropColor:"rgba(255, 255, 255, 0.75)",backdropPadding:2}}),e.route("scale.ticks","color","","color"),e.route("scale.grid","color","","borderColor"),e.route("scale.border","color","","borderColor"),e.route("scale.title","color","","color"),e.describe("scale",{_fallback:!1,_scriptable:t=>!t.startsWith("before")&&!t.startsWith("after")&&t!=="callback"&&t!=="parser",_indexable:t=>t!=="borderDash"&&t!=="tickBorderDash"&&t!=="dash"}),e.describe("scales",{_fallback:"scale"}),e.describe("scale.ticks",{_scriptable:t=>t!=="backdropPadding"&&t!=="callback",_indexable:t=>t!=="backdropPadding"})}const fe=Object.create(null),Ci=Object.create(null);function Ke(e,t){if(!t)return e;const n=t.split(".");for(let i=0,s=n.length;i<s;++i){const o=n[i];e=e[o]||(e[o]=Object.create(null))}return e}function oi(e,t,n){return typeof t=="string"?Qe(Ke(e,t),n):Qe(Ke(e,""),t)}class Qh{constructor(t,n){this.animation=void 0,this.backgroundColor="rgba(0,0,0,0.1)",this.borderColor="rgba(0,0,0,0.1)",this.color="#666",this.datasets={},this.devicePixelRatio=i=>i.chart.platform.getDevicePixelRatio(),this.elements={},this.events=["mousemove","mouseout","click","touchstart","touchmove"],this.font={family:"'Helvetica Neue', 'Helvetica', 'Arial', sans-serif",size:12,style:"normal",lineHeight:1.2,weight:null},this.hover={},this.hoverBackgroundColor=(i,s)=>si(s.backgroundColor),this.hoverBorderColor=(i,s)=>si(s.borderColor),this.hoverColor=(i,s)=>si(s.color),this.indexAxis="x",this.interaction={mode:"nearest",intersect:!0,includeInvisible:!1},this.maintainAspectRatio=!0,this.onHover=null,this.onClick=null,this.parsing=!0,this.plugins={},this.responsive=!0,this.scale=void 0,this.scales={},this.showLine=!0,this.drawActiveElementsOnTop=!0,this.describe(t),this.apply(n)}set(t,n){return oi(this,t,n)}get(t){return Ke(this,t)}describe(t,n){return oi(Ci,t,n)}override(t,n){return oi(fe,t,n)}route(t,n,i,s){const o=Ke(this,t),r=Ke(this,i),a="_"+n;Object.defineProperties(o,{[a]:{value:o[n],writable:!0},[n]:{enumerable:!0,get(){const l=this[a],c=r[s];return z(l)?Object.assign({},c,l):j(l,c)},set(l){this[a]=l}}})}apply(t){t.forEach(n=>n(this))}}var q=new Qh({_scriptable:e=>!e.startsWith("on"),_indexable:e=>e!=="events",hover:{_fallback:"interaction"},interaction:{_scriptable:!1,_indexable:!1}},[qh,Kh,Zh]);function tu(e){return!e||B(e.size)||B(e.family)?null:(e.style?e.style+" ":"")+(e.weight?e.weight+" ":"")+e.size+"px "+e.family}function Gs(e,t,n,i,s){let o=t[s];return o||(o=t[s]=e.measureText(s).width,n.push(s)),o>i&&(i=o),i}function ee(e,t,n){const i=e.currentDevicePixelRatio,s=n!==0?Math.max(n/2,.5):0;return Math.round((t-s)*i)/i+s}function Js(e,t){!t&&!e||(t=t||e.getContext("2d"),t.save(),t.resetTransform(),t.clearRect(0,0,e.width,e.height),t.restore())}function Pi(e,t,n,i){ea(e,t,n,i,null)}function ea(e,t,n,i,s){let o,r,a,l,c,h,u,d;const f=t.pointStyle,g=t.rotation,m=t.radius;let p=(g||0)*Ah;if(f&&typeof f=="object"&&(o=f.toString(),o==="[object HTMLImageElement]"||o==="[object HTMLCanvasElement]")){e.save(),e.translate(n,i),e.rotate(p),e.drawImage(f,-f.width/2,-f.height/2,f.width,f.height),e.restore();return}if(!(isNaN(m)||m<=0)){switch(e.beginPath(),f){default:s?e.ellipse(n,i,s/2,m,0,0,st):e.arc(n,i,m,0,st),e.closePath();break;case"triangle":h=s?s/2:m,e.moveTo(n+Math.sin(p)*h,i-Math.cos(p)*m),p+=Hs,e.lineTo(n+Math.sin(p)*h,i-Math.cos(p)*m),p+=Hs,e.lineTo(n+Math.sin(p)*h,i-Math.cos(p)*m),e.closePath();break;case"rectRounded":c=m*.516,l=m-c,r=Math.cos(p+te)*l,u=Math.cos(p+te)*(s?s/2-c:l),a=Math.sin(p+te)*l,d=Math.sin(p+te)*(s?s/2-c:l),e.arc(n-u,i-a,c,p-Z,p-it),e.arc(n+d,i-r,c,p-it,p),e.arc(n+u,i+a,c,p,p+it),e.arc(n-d,i+r,c,p+it,p+Z),e.closePath();break;case"rect":if(!g){l=Math.SQRT1_2*m,h=s?s/2:l,e.rect(n-h,i-l,2*h,2*l);break}p+=te;case"rectRot":u=Math.cos(p)*(s?s/2:m),r=Math.cos(p)*m,a=Math.sin(p)*m,d=Math.sin(p)*(s?s/2:m),e.moveTo(n-u,i-a),e.lineTo(n+d,i-r),e.lineTo(n+u,i+a),e.lineTo(n-d,i+r),e.closePath();break;case"crossRot":p+=te;case"cross":u=Math.cos(p)*(s?s/2:m),r=Math.cos(p)*m,a=Math.sin(p)*m,d=Math.sin(p)*(s?s/2:m),e.moveTo(n-u,i-a),e.lineTo(n+u,i+a),e.moveTo(n+d,i-r),e.lineTo(n-d,i+r);break;case"star":u=Math.cos(p)*(s?s/2:m),r=Math.cos(p)*m,a=Math.sin(p)*m,d=Math.sin(p)*(s?s/2:m),e.moveTo(n-u,i-a),e.lineTo(n+u,i+a),e.moveTo(n+d,i-r),e.lineTo(n-d,i+r),p+=te,u=Math.cos(p)*(s?s/2:m),r=Math.cos(p)*m,a=Math.sin(p)*m,d=Math.sin(p)*(s?s/2:m),e.moveTo(n-u,i-a),e.lineTo(n+u,i+a),e.moveTo(n+d,i-r),e.lineTo(n-d,i+r);break;case"line":r=s?s/2:Math.cos(p)*m,a=Math.sin(p)*m,e.moveTo(n-r,i-a),e.lineTo(n+r,i+a);break;case"dash":e.moveTo(n,i),e.lineTo(n+Math.cos(p)*(s?s/2:m),i+Math.sin(p)*m);break;case!1:e.closePath();break}e.fill(),t.borderWidth>0&&e.stroke()}}function nn(e,t,n){return n=n||.5,!t||e&&e.x>t.left-n&&e.x<t.right+n&&e.y>t.top-n&&e.y<t.bottom+n}function Ji(e,t){e.save(),e.beginPath(),e.rect(t.left,t.top,t.right-t.left,t.bottom-t.top),e.clip()}function Zi(e){e.restore()}function eu(e,t,n,i,s){if(!t)return e.lineTo(n.x,n.y);if(s==="middle"){const o=(t.x+n.x)/2;e.lineTo(o,t.y),e.lineTo(o,n.y)}else s==="after"!=!!i?e.lineTo(t.x,n.y):e.lineTo(n.x,t.y);e.lineTo(n.x,n.y)}function nu(e,t,n,i){if(!t)return e.lineTo(n.x,n.y);e.bezierCurveTo(i?t.cp1x:t.cp2x,i?t.cp1y:t.cp2y,i?n.cp2x:n.cp1x,i?n.cp2y:n.cp1y,n.x,n.y)}function iu(e,t){t.translation&&e.translate(t.translation[0],t.translation[1]),B(t.rotation)||e.rotate(t.rotation),t.color&&(e.fillStyle=t.color),t.textAlign&&(e.textAlign=t.textAlign),t.textBaseline&&(e.textBaseline=t.textBaseline)}function su(e,t,n,i,s){if(s.strikethrough||s.underline){const o=e.measureText(i),r=t-o.actualBoundingBoxLeft,a=t+o.actualBoundingBoxRight,l=n-o.actualBoundingBoxAscent,c=n+o.actualBoundingBoxDescent,h=s.strikethrough?(l+c)/2:c;e.strokeStyle=e.fillStyle,e.beginPath(),e.lineWidth=s.decorationWidth||2,e.moveTo(r,h),e.lineTo(a,h),e.stroke()}}function ou(e,t){const n=e.fillStyle;e.fillStyle=t.color,e.fillRect(t.left,t.top,t.width,t.height),e.fillStyle=n}function sn(e,t,n,i,s,o={}){const r=J(t)?t:[t],a=o.strokeWidth>0&&o.strokeColor!=="";let l,c;for(e.save(),e.font=s.string,iu(e,o),l=0;l<r.length;++l)c=r[l],o.backdrop&&ou(e,o.backdrop),a&&(o.strokeColor&&(e.strokeStyle=o.strokeColor),B(o.strokeWidth)||(e.lineWidth=o.strokeWidth),e.strokeText(c,n,i,o.maxWidth)),e.fillText(c,n,i,o.maxWidth),su(e,n,i,c,o),i+=Number(s.lineHeight);e.restore()}function zn(e,t){const{x:n,y:i,w:s,h:o,radius:r}=t;e.arc(n+r.topLeft,i+r.topLeft,r.topLeft,1.5*Z,Z,!0),e.lineTo(n,i+o-r.bottomLeft),e.arc(n+r.bottomLeft,i+o-r.bottomLeft,r.bottomLeft,Z,it,!0),e.lineTo(n+s-r.bottomRight,i+o),e.arc(n+s-r.bottomRight,i+o-r.bottomRight,r.bottomRight,it,0,!0),e.lineTo(n+s,i+r.topRight),e.arc(n+s-r.topRight,i+r.topRight,r.topRight,0,-it,!0),e.lineTo(n+r.topLeft,i)}const ru=/^(normal|(\d+(?:\.\d+)?)(px|em|%)?)$/,au=/^(normal|italic|initial|inherit|unset|(oblique( -?[0-9]?[0-9]deg)?))$/;function lu(e,t){const n=(""+e).match(ru);if(!n||n[1]==="normal")return t*1.2;switch(e=+n[2],n[3]){case"px":return e;case"%":e/=100;break}return t*e}const cu=e=>+e||0;function Qi(e,t){const n={},i=z(t),s=i?Object.keys(t):t,o=z(e)?i?r=>j(e[r],e[t[r]]):r=>e[r]:()=>e;for(const r of s)n[r]=cu(o(r));return n}function na(e){return Qi(e,{top:"y",right:"x",bottom:"y",left:"x"})}function _e(e){return Qi(e,["topLeft","topRight","bottomLeft","bottomRight"])}function _t(e){const t=na(e);return t.width=t.left+t.right,t.height=t.top+t.bottom,t}function at(e,t){e=e||{},t=t||q.font;let n=j(e.size,t.size);typeof n=="string"&&(n=parseInt(n,10));let i=j(e.style,t.style);i&&!(""+i).match(au)&&(console.warn('Invalid font style specified: "'+i+'"'),i=void 0);const s={family:j(e.family,t.family),lineHeight:lu(j(e.lineHeight,t.lineHeight),n),size:n,style:i,weight:j(e.weight,t.weight),string:""};return s.string=tu(s),s}function yn(e,t,n,i){let s,o,r;for(s=0,o=e.length;s<o;++s)if(r=e[s],r!==void 0&&(t!==void 0&&typeof r=="function"&&(r=r(t)),n!==void 0&&J(r)&&(r=r[n%r.length]),r!==void 0))return r}function hu(e,t,n){const{min:i,max:s}=e,o=kh(t,(s-i)/2),r=(a,l)=>n&&a===0?0:a+l;return{min:r(i,-Math.abs(o)),max:r(s,o)}}function pe(e,t){return Object.assign(Object.create(e),t)}function ts(e,t=[""],n,i,s=()=>e[0]){const o=n||e;typeof i>"u"&&(i=ra("_fallback",e));const r={[Symbol.toStringTag]:"Object",_cacheable:!0,_scopes:e,_rootScopes:o,_fallback:i,_getTarget:s,override:a=>ts([a,...e],t,o,i)};return new Proxy(r,{deleteProperty(a,l){return delete a[l],delete a._keys,delete e[0][l],!0},get(a,l){return sa(a,l,()=>xu(l,t,e,a))},getOwnPropertyDescriptor(a,l){return Reflect.getOwnPropertyDescriptor(a._scopes[0],l)},getPrototypeOf(){return Reflect.getPrototypeOf(e[0])},has(a,l){return Qs(a).includes(l)},ownKeys(a){return Qs(a)},set(a,l,c){const h=a._storage||(a._storage=s());return a[l]=h[l]=c,delete a._keys,!0}})}function De(e,t,n,i){const s={_cacheable:!1,_proxy:e,_context:t,_subProxy:n,_stack:new Set,_descriptors:ia(e,i),setContext:o=>De(e,o,n,i),override:o=>De(e.override(o),t,n,i)};return new Proxy(s,{deleteProperty(o,r){return delete o[r],delete e[r],!0},get(o,r,a){return sa(o,r,()=>du(o,r,a))},getOwnPropertyDescriptor(o,r){return o._descriptors.allKeys?Reflect.has(e,r)?{enumerable:!0,configurable:!0}:void 0:Reflect.getOwnPropertyDescriptor(e,r)},getPrototypeOf(){return Reflect.getPrototypeOf(e)},has(o,r){return Reflect.has(e,r)},ownKeys(){return Reflect.ownKeys(e)},set(o,r,a){return e[r]=a,delete o[r],!0}})}function ia(e,t={scriptable:!0,indexable:!0}){const{_scriptable:n=t.scriptable,_indexable:i=t.indexable,_allKeys:s=t.allKeys}=e;return{allKeys:s,scriptable:n,indexable:i,isScriptable:Xt(n)?n:()=>n,isIndexable:Xt(i)?i:()=>i}}const uu=(e,t)=>e?e+Ui(t):t,es=(e,t)=>z(t)&&e!=="adapters"&&(Object.getPrototypeOf(t)===null||t.constructor===Object);function sa(e,t,n){if(Object.prototype.hasOwnProperty.call(e,t)||t==="constructor")return e[t];const i=n();return e[t]=i,i}function du(e,t,n){const{_proxy:i,_context:s,_subProxy:o,_descriptors:r}=e;let a=i[t];return Xt(a)&&r.isScriptable(t)&&(a=fu(t,a,e,n)),J(a)&&a.length&&(a=pu(t,a,e,r.isIndexable)),es(t,a)&&(a=De(a,s,o&&o[t],r)),a}function fu(e,t,n,i){const{_proxy:s,_context:o,_subProxy:r,_stack:a}=n;if(a.has(e))throw new Error("Recursion detected: "+Array.from(a).join("->")+"->"+e);a.add(e);let l=t(o,r||i);return a.delete(e),es(e,l)&&(l=ns(s._scopes,s,e,l)),l}function pu(e,t,n,i){const{_proxy:s,_context:o,_subProxy:r,_descriptors:a}=n;if(typeof o.index<"u"&&i(e))return t[o.index%t.length];if(z(t[0])){const l=t,c=s._scopes.filter(h=>h!==l);t=[];for(const h of l){const u=ns(c,s,e,h);t.push(De(u,o,r&&r[e],a))}}return t}function oa(e,t,n){return Xt(e)?e(t,n):e}const gu=(e,t)=>e===!0?t:typeof e=="string"?Oe(t,e):void 0;function mu(e,t,n,i,s){for(const o of t){const r=gu(n,o);if(r){e.add(r);const a=oa(r._fallback,n,s);if(typeof a<"u"&&a!==n&&a!==i)return a}else if(r===!1&&typeof i<"u"&&n!==i)return null}return!1}function ns(e,t,n,i){const s=t._rootScopes,o=oa(t._fallback,n,i),r=[...e,...s],a=new Set;a.add(i);let l=Zs(a,r,n,o||n,i);return l===null||typeof o<"u"&&o!==n&&(l=Zs(a,r,o,l,i),l===null)?!1:ts(Array.from(a),[""],s,o,()=>bu(t,n,i))}function Zs(e,t,n,i,s){for(;n;)n=mu(e,t,n,i,s);return n}function bu(e,t,n){const i=e._getTarget();t in i||(i[t]={});const s=i[t];return J(s)&&z(n)?n:s||{}}function xu(e,t,n,i){let s;for(const o of t)if(s=ra(uu(o,e),n),typeof s<"u")return es(e,s)?ns(n,i,e,s):s}function ra(e,t){for(const n of t){if(!n)continue;const i=n[e];if(typeof i<"u")return i}}function Qs(e){let t=e._keys;return t||(t=e._keys=yu(e._scopes)),t}function yu(e){const t=new Set;for(const n of e)for(const i of Object.keys(n).filter(s=>!s.startsWith("_")))t.add(i);return Array.from(t)}const vu=Number.EPSILON||1e-14,Ee=(e,t)=>t<e.length&&!e[t].skip&&e[t],aa=e=>e==="x"?"y":"x";function _u(e,t,n,i){const s=e.skip?t:e,o=t,r=n.skip?t:n,a=Mi(o,s),l=Mi(r,o);let c=a/(a+l),h=l/(a+l);c=isNaN(c)?0:c,h=isNaN(h)?0:h;const u=i*c,d=i*h;return{previous:{x:o.x-u*(r.x-s.x),y:o.y-u*(r.y-s.y)},next:{x:o.x+d*(r.x-s.x),y:o.y+d*(r.y-s.y)}}}function wu(e,t,n){const i=e.length;let s,o,r,a,l,c=Ee(e,0);for(let h=0;h<i-1;++h)if(l=c,c=Ee(e,h+1),!(!l||!c)){if(Xe(t[h],0,vu)){n[h]=n[h+1]=0;continue}s=n[h]/t[h],o=n[h+1]/t[h],a=Math.pow(s,2)+Math.pow(o,2),!(a<=9)&&(r=3/Math.sqrt(a),n[h]=s*r*t[h],n[h+1]=o*r*t[h])}}function Su(e,t,n="x"){const i=aa(n),s=e.length;let o,r,a,l=Ee(e,0);for(let c=0;c<s;++c){if(r=a,a=l,l=Ee(e,c+1),!a)continue;const h=a[n],u=a[i];r&&(o=(h-r[n])/3,a[`cp1${n}`]=h-o,a[`cp1${i}`]=u-o*t[c]),l&&(o=(l[n]-h)/3,a[`cp2${n}`]=h+o,a[`cp2${i}`]=u+o*t[c])}}function ku(e,t="x"){const n=aa(t),i=e.length,s=Array(i).fill(0),o=Array(i);let r,a,l,c=Ee(e,0);for(r=0;r<i;++r)if(a=l,l=c,c=Ee(e,r+1),!!l){if(c){const h=c[t]-l[t];s[r]=h!==0?(c[n]-l[n])/h:0}o[r]=a?c?Dt(s[r-1])!==Dt(s[r])?0:(s[r-1]+s[r])/2:s[r-1]:s[r]}wu(e,s,o),Su(e,o,t)}function vn(e,t,n){return Math.max(Math.min(e,n),t)}function Mu(e,t){let n,i,s,o,r,a=nn(e[0],t);for(n=0,i=e.length;n<i;++n)r=o,o=a,a=n<i-1&&nn(e[n+1],t),o&&(s=e[n],r&&(s.cp1x=vn(s.cp1x,t.left,t.right),s.cp1y=vn(s.cp1y,t.top,t.bottom)),a&&(s.cp2x=vn(s.cp2x,t.left,t.right),s.cp2y=vn(s.cp2y,t.top,t.bottom)))}function Cu(e,t,n,i,s){let o,r,a,l;if(t.spanGaps&&(e=e.filter(c=>!c.skip)),t.cubicInterpolationMode==="monotone")ku(e,s);else{let c=i?e[e.length-1]:e[0];for(o=0,r=e.length;o<r;++o)a=e[o],l=_u(c,a,e[Math.min(o+1,r-(i?0:1))%r],t.tension),a.cp1x=l.previous.x,a.cp1y=l.previous.y,a.cp2x=l.next.x,a.cp2y=l.next.y,c=a}t.capBezierPoints&&Mu(e,n)}function is(){return typeof window<"u"&&typeof document<"u"}function ss(e){let t=e.parentNode;return t&&t.toString()==="[object ShadowRoot]"&&(t=t.host),t}function Nn(e,t,n){let i;return typeof e=="string"?(i=parseInt(e,10),e.indexOf("%")!==-1&&(i=i/100*t.parentNode[n])):i=e,i}const qn=e=>e.ownerDocument.defaultView.getComputedStyle(e,null);function Pu(e,t){return qn(e).getPropertyValue(t)}const Ou=["top","right","bottom","left"];function he(e,t,n){const i={};n=n?"-"+n:"";for(let s=0;s<4;s++){const o=Ou[s];i[o]=parseFloat(e[t+"-"+o+n])||0}return i.width=i.left+i.right,i.height=i.top+i.bottom,i}const Du=(e,t,n)=>(e>0||t>0)&&(!n||!n.shadowRoot);function Eu(e,t){const n=e.touches,i=n&&n.length?n[0]:e,{offsetX:s,offsetY:o}=i;let r=!1,a,l;if(Du(s,o,e.target))a=s,l=o;else{const c=t.getBoundingClientRect();a=i.clientX-c.left,l=i.clientY-c.top,r=!0}return{x:a,y:l,box:r}}function oe(e,t){if("native"in e)return e;const{canvas:n,currentDevicePixelRatio:i}=t,s=qn(n),o=s.boxSizing==="border-box",r=he(s,"padding"),a=he(s,"border","width"),{x:l,y:c,box:h}=Eu(e,n),u=r.left+(h&&a.left),d=r.top+(h&&a.top);let{width:f,height:g}=t;return o&&(f-=r.width+a.width,g-=r.height+a.height),{x:Math.round((l-u)/f*n.width/i),y:Math.round((c-d)/g*n.height/i)}}function Au(e,t,n){let i,s;if(t===void 0||n===void 0){const o=e&&ss(e);if(!o)t=e.clientWidth,n=e.clientHeight;else{const r=o.getBoundingClientRect(),a=qn(o),l=he(a,"border","width"),c=he(a,"padding");t=r.width-c.width-l.width,n=r.height-c.height-l.height,i=Nn(a.maxWidth,o,"clientWidth"),s=Nn(a.maxHeight,o,"clientHeight")}}return{width:t,height:n,maxWidth:i||$n,maxHeight:s||$n}}const _n=e=>Math.round(e*10)/10;function Tu(e,t,n,i){const s=qn(e),o=he(s,"margin"),r=Nn(s.maxWidth,e,"clientWidth")||$n,a=Nn(s.maxHeight,e,"clientHeight")||$n,l=Au(e,t,n);let{width:c,height:h}=l;if(s.boxSizing==="content-box"){const d=he(s,"border","width"),f=he(s,"padding");c-=f.width+d.width,h-=f.height+d.height}return c=Math.max(0,c-o.width),h=Math.max(0,i?c/i:h-o.height),c=_n(Math.min(c,r,l.maxWidth)),h=_n(Math.min(h,a,l.maxHeight)),c&&!h&&(h=_n(c/2)),(t!==void 0||n!==void 0)&&i&&l.height&&h>l.height&&(h=l.height,c=_n(Math.floor(h*i))),{width:c,height:h}}function to(e,t,n){const i=t||1,s=Math.floor(e.height*i),o=Math.floor(e.width*i);e.height=Math.floor(e.height),e.width=Math.floor(e.width);const r=e.canvas;return r.style&&(n||!r.style.height&&!r.style.width)&&(r.style.height=`${e.height}px`,r.style.width=`${e.width}px`),e.currentDevicePixelRatio!==i||r.height!==s||r.width!==o?(e.currentDevicePixelRatio=i,r.height=s,r.width=o,e.ctx.setTransform(i,0,0,i,0,0),!0):!1}const Ru=function(){let e=!1;try{const t={get passive(){return e=!0,!1}};is()&&(window.addEventListener("test",null,t),window.removeEventListener("test",null,t))}catch{}return e}();function eo(e,t){const n=Pu(e,t),i=n&&n.match(/^(\d+)(\.\d+)?px$/);return i?+i[1]:void 0}function re(e,t,n,i){return{x:e.x+n*(t.x-e.x),y:e.y+n*(t.y-e.y)}}function Lu(e,t,n,i){return{x:e.x+n*(t.x-e.x),y:i==="middle"?n<.5?e.y:t.y:i==="after"?n<1?e.y:t.y:n>0?t.y:e.y}}function Fu(e,t,n,i){const s={x:e.cp2x,y:e.cp2y},o={x:t.cp1x,y:t.cp1y},r=re(e,s,n),a=re(s,o,n),l=re(o,t,n),c=re(r,a,n),h=re(a,l,n);return re(c,h,n)}const Iu=function(e,t){return{x(n){return e+e+t-n},setWidth(n){t=n},textAlign(n){return n==="center"?n:n==="right"?"left":"right"},xPlus(n,i){return n-i},leftForLtr(n,i){return n-i}}},ju=function(){return{x(e){return e},setWidth(e){},textAlign(e){return e},xPlus(e,t){return e+t},leftForLtr(e,t){return e}}};function we(e,t,n){return e?Iu(t,n):ju()}function la(e,t){let n,i;(t==="ltr"||t==="rtl")&&(n=e.canvas.style,i=[n.getPropertyValue("direction"),n.getPropertyPriority("direction")],n.setProperty("direction",t,"important"),e.prevTextDirection=i)}function ca(e,t){t!==void 0&&(delete e.prevTextDirection,e.canvas.style.setProperty("direction",t[0],t[1]))}function ha(e){return e==="angle"?{between:Xi,compare:jh,normalize:zt}:{between:Bt,compare:(t,n)=>t-n,normalize:t=>t}}function no({start:e,end:t,count:n,loop:i,style:s}){return{start:e%n,end:t%n,loop:i&&(t-e+1)%n===0,style:s}}function $u(e,t,n){const{property:i,start:s,end:o}=n,{between:r,normalize:a}=ha(i),l=t.length;let{start:c,end:h,loop:u}=e,d,f;if(u){for(c+=l,h+=l,d=0,f=l;d<f&&r(a(t[c%l][i]),s,o);++d)c--,h--;c%=l,h%=l}return h<c&&(h+=l),{start:c,end:h,loop:u,style:e.style}}function zu(e,t,n){if(!n)return[e];const{property:i,start:s,end:o}=n,r=t.length,{compare:a,between:l,normalize:c}=ha(i),{start:h,end:u,loop:d,style:f}=$u(e,t,n),g=[];let m=!1,p=null,b,x,v;const _=()=>l(s,v,b)&&a(s,v)!==0,y=()=>a(o,b)===0||l(o,v,b),w=()=>m||_(),k=()=>!m||y();for(let S=h,C=h;S<=u;++S)x=t[S%r],!x.skip&&(b=c(x[i]),b!==v&&(m=l(b,s,o),p===null&&w()&&(p=a(b,s)===0?S:C),p!==null&&k()&&(g.push(no({start:p,end:S,loop:d,count:r,style:f})),p=null),C=S,v=b));return p!==null&&g.push(no({start:p,end:u,loop:d,count:r,style:f})),g}function Nu(e,t){const n=[],i=e.segments;for(let s=0;s<i.length;s++){const o=zu(i[s],e.points,t);o.length&&n.push(...o)}return n}function Bu(e,t,n,i){let s=0,o=t-1;if(n&&!i)for(;s<t&&!e[s].skip;)s++;for(;s<t&&e[s].skip;)s++;for(s%=t,n&&(o+=s);o>s&&e[o%t].skip;)o--;return o%=t,{start:s,end:o}}function Hu(e,t,n,i){const s=e.length,o=[];let r=t,a=e[t],l;for(l=t+1;l<=n;++l){const c=e[l%s];c.skip||c.stop?a.skip||(i=!1,o.push({start:t%s,end:(l-1)%s,loop:i}),t=r=c.stop?l:null):(r=l,a.skip&&(t=l)),a=c}return r!==null&&o.push({start:t%s,end:r%s,loop:i}),o}function Wu(e,t){const n=e.points,i=e.options.spanGaps,s=n.length;if(!s)return[];const o=!!e._loop,{start:r,end:a}=Bu(n,s,o,i);if(i===!0)return io(e,[{start:r,end:a,loop:o}],n,t);const l=a<r?a+s:a,c=!!e._fullLoop&&r===0&&a===s-1;return io(e,Hu(n,r,l,c),n,t)}function io(e,t,n,i){return!i||!i.setContext||!n?t:Vu(e,t,n,i)}function Vu(e,t,n,i){const s=e._chart.getContext(),o=so(e.options),{_datasetIndex:r,options:{spanGaps:a}}=e,l=n.length,c=[];let h=o,u=t[0].start,d=u;function f(g,m,p,b){const x=a?-1:1;if(g!==m){for(g+=l;n[g%l].skip;)g-=x;for(;n[m%l].skip;)m+=x;g%l!==m%l&&(c.push({start:g%l,end:m%l,loop:p,style:b}),h=b,u=m%l)}}for(const g of t){u=a?u:g.start;let m=n[u%l],p;for(d=u+1;d<=g.end;d++){const b=n[d%l];p=so(i.setContext(pe(s,{type:"segment",p0:m,p1:b,p0DataIndex:(d-1)%l,p1DataIndex:d%l,datasetIndex:r}))),Yu(p,h)&&f(u,d-1,g.loop,h),m=b,h=p}u<d-1&&f(u,d-1,g.loop,h)}return c}function so(e){return{backgroundColor:e.backgroundColor,borderCapStyle:e.borderCapStyle,borderDash:e.borderDash,borderDashOffset:e.borderDashOffset,borderJoinStyle:e.borderJoinStyle,borderWidth:e.borderWidth,borderColor:e.borderColor}}function Yu(e,t){if(!t)return!1;const n=[],i=function(s,o){return Gi(o)?(n.includes(o)||n.push(o),n.indexOf(o)):o};return JSON.stringify(e,i)!==JSON.stringify(t,i)}/*! + * Chart.js v4.4.8 + * https://www.chartjs.org + * (c) 2025 Chart.js Contributors + * Released under the MIT License + */class Uu{constructor(){this._request=null,this._charts=new Map,this._running=!1,this._lastDate=void 0}_notify(t,n,i,s){const o=n.listeners[s],r=n.duration;o.forEach(a=>a({chart:t,initial:n.initial,numSteps:r,currentStep:Math.min(i-n.start,r)}))}_refresh(){this._request||(this._running=!0,this._request=Gr.call(window,()=>{this._update(),this._request=null,this._running&&this._refresh()}))}_update(t=Date.now()){let n=0;this._charts.forEach((i,s)=>{if(!i.running||!i.items.length)return;const o=i.items;let r=o.length-1,a=!1,l;for(;r>=0;--r)l=o[r],l._active?(l._total>i.duration&&(i.duration=l._total),l.tick(t),a=!0):(o[r]=o[o.length-1],o.pop());a&&(s.draw(),this._notify(s,i,t,"progress")),o.length||(i.running=!1,this._notify(s,i,t,"complete"),i.initial=!1),n+=o.length}),this._lastDate=t,n===0&&(this._running=!1)}_getAnims(t){const n=this._charts;let i=n.get(t);return i||(i={running:!1,initial:!0,items:[],listeners:{complete:[],progress:[]}},n.set(t,i)),i}listen(t,n,i){this._getAnims(t).listeners[n].push(i)}add(t,n){!n||!n.length||this._getAnims(t).items.push(...n)}has(t){return this._getAnims(t).items.length>0}start(t){const n=this._charts.get(t);n&&(n.running=!0,n.start=Date.now(),n.duration=n.items.reduce((i,s)=>Math.max(i,s._duration),0),this._refresh())}running(t){if(!this._running)return!1;const n=this._charts.get(t);return!(!n||!n.running||!n.items.length)}stop(t){const n=this._charts.get(t);if(!n||!n.items.length)return;const i=n.items;let s=i.length-1;for(;s>=0;--s)i[s].cancel();n.items=[],this._notify(t,n,Date.now(),"complete")}remove(t){return this._charts.delete(t)}}var Tt=new Uu;const oo="transparent",Xu={boolean(e,t,n){return n>.5?t:e},color(e,t,n){const i=qs(e||oo),s=i.valid&&qs(t||oo);return s&&s.valid?s.mix(i,n).hexString():t},number(e,t,n){return e+(t-e)*n}};class qu{constructor(t,n,i,s){const o=n[i];s=yn([t.to,s,o,t.from]);const r=yn([t.from,o,s]);this._active=!0,this._fn=t.fn||Xu[t.type||typeof r],this._easing=qe[t.easing]||qe.linear,this._start=Math.floor(Date.now()+(t.delay||0)),this._duration=this._total=Math.floor(t.duration),this._loop=!!t.loop,this._target=n,this._prop=i,this._from=r,this._to=s,this._promises=void 0}active(){return this._active}update(t,n,i){if(this._active){this._notify(!1);const s=this._target[this._prop],o=i-this._start,r=this._duration-o;this._start=i,this._duration=Math.floor(Math.max(r,t.duration)),this._total+=o,this._loop=!!t.loop,this._to=yn([t.to,n,s,t.from]),this._from=yn([t.from,s,n])}}cancel(){this._active&&(this.tick(Date.now()),this._active=!1,this._notify(!1))}tick(t){const n=t-this._start,i=this._duration,s=this._prop,o=this._from,r=this._loop,a=this._to;let l;if(this._active=o!==a&&(r||n<i),!this._active){this._target[s]=a,this._notify(!0);return}if(n<0){this._target[s]=o;return}l=n/i%2,l=r&&l>1?2-l:l,l=this._easing(Math.min(1,Math.max(0,l))),this._target[s]=this._fn(o,a,l)}wait(){const t=this._promises||(this._promises=[]);return new Promise((n,i)=>{t.push({res:n,rej:i})})}_notify(t){const n=t?"res":"rej",i=this._promises||[];for(let s=0;s<i.length;s++)i[s][n]()}}class ua{constructor(t,n){this._chart=t,this._properties=new Map,this.configure(n)}configure(t){if(!z(t))return;const n=Object.keys(q.animation),i=this._properties;Object.getOwnPropertyNames(t).forEach(s=>{const o=t[s];if(!z(o))return;const r={};for(const a of n)r[a]=o[a];(J(o.properties)&&o.properties||[s]).forEach(a=>{(a===s||!i.has(a))&&i.set(a,r)})})}_animateOptions(t,n){const i=n.options,s=Gu(t,i);if(!s)return[];const o=this._createAnimations(s,i);return i.$shared&&Ku(t.options.$animations,i).then(()=>{t.options=i},()=>{}),o}_createAnimations(t,n){const i=this._properties,s=[],o=t.$animations||(t.$animations={}),r=Object.keys(n),a=Date.now();let l;for(l=r.length-1;l>=0;--l){const c=r[l];if(c.charAt(0)==="$")continue;if(c==="options"){s.push(...this._animateOptions(t,n));continue}const h=n[c];let u=o[c];const d=i.get(c);if(u)if(d&&u.active()){u.update(d,h,a);continue}else u.cancel();if(!d||!d.duration){t[c]=h;continue}o[c]=u=new qu(d,t,c,h),s.push(u)}return s}update(t,n){if(this._properties.size===0){Object.assign(t,n);return}const i=this._createAnimations(t,n);if(i.length)return Tt.add(this._chart,i),!0}}function Ku(e,t){const n=[],i=Object.keys(t);for(let s=0;s<i.length;s++){const o=e[i[s]];o&&o.active()&&n.push(o.wait())}return Promise.all(n)}function Gu(e,t){if(!t)return;let n=e.options;if(!n){e.options=t;return}return n.$shared&&(e.options=n=Object.assign({},n,{$shared:!1,$animations:{}})),n}function ro(e,t){const n=e&&e.options||{},i=n.reverse,s=n.min===void 0?t:0,o=n.max===void 0?t:0;return{start:i?o:s,end:i?s:o}}function Ju(e,t,n){if(n===!1)return!1;const i=ro(e,n),s=ro(t,n);return{top:s.end,right:i.end,bottom:s.start,left:i.start}}function Zu(e){let t,n,i,s;return z(e)?(t=e.top,n=e.right,i=e.bottom,s=e.left):t=n=i=s=e,{top:t,right:n,bottom:i,left:s,disabled:e===!1}}function da(e,t){const n=[],i=e._getSortedDatasetMetas(t);let s,o;for(s=0,o=i.length;s<o;++s)n.push(i[s].index);return n}function ao(e,t,n,i={}){const s=e.keys,o=i.mode==="single";let r,a,l,c;if(t===null)return;let h=!1;for(r=0,a=s.length;r<a;++r){if(l=+s[r],l===n){if(h=!0,i.all)continue;break}c=e.values[l],vt(c)&&(o||t===0||Dt(t)===Dt(c))&&(t+=c)}return!h&&!i.all?0:t}function Qu(e,t){const{iScale:n,vScale:i}=t,s=n.axis==="x"?"x":"y",o=i.axis==="x"?"x":"y",r=Object.keys(e),a=new Array(r.length);let l,c,h;for(l=0,c=r.length;l<c;++l)h=r[l],a[l]={[s]:h,[o]:e[h]};return a}function ri(e,t){const n=e&&e.options.stacked;return n||n===void 0&&t.stack!==void 0}function td(e,t,n){return`${e.id}.${t.id}.${n.stack||n.type}`}function ed(e){const{min:t,max:n,minDefined:i,maxDefined:s}=e.getUserBounds();return{min:i?t:Number.NEGATIVE_INFINITY,max:s?n:Number.POSITIVE_INFINITY}}function nd(e,t,n){const i=e[t]||(e[t]={});return i[n]||(i[n]={})}function lo(e,t,n,i){for(const s of t.getMatchingVisibleMetas(i).reverse()){const o=e[s.index];if(n&&o>0||!n&&o<0)return s.index}return null}function co(e,t){const{chart:n,_cachedMeta:i}=e,s=n._stacks||(n._stacks={}),{iScale:o,vScale:r,index:a}=i,l=o.axis,c=r.axis,h=td(o,r,i),u=t.length;let d;for(let f=0;f<u;++f){const g=t[f],{[l]:m,[c]:p}=g,b=g._stacks||(g._stacks={});d=b[c]=nd(s,h,m),d[a]=p,d._top=lo(d,r,!0,i.type),d._bottom=lo(d,r,!1,i.type);const x=d._visualValues||(d._visualValues={});x[a]=p}}function ai(e,t){const n=e.scales;return Object.keys(n).filter(i=>n[i].axis===t).shift()}function id(e,t){return pe(e,{active:!1,dataset:void 0,datasetIndex:t,index:t,mode:"default",type:"dataset"})}function sd(e,t,n){return pe(e,{active:!1,dataIndex:t,parsed:void 0,raw:void 0,element:n,index:t,mode:"default",type:"data"})}function Fe(e,t){const n=e.controller.index,i=e.vScale&&e.vScale.axis;if(i){t=t||e._parsed;for(const s of t){const o=s._stacks;if(!o||o[i]===void 0||o[i][n]===void 0)return;delete o[i][n],o[i]._visualValues!==void 0&&o[i]._visualValues[n]!==void 0&&delete o[i]._visualValues[n]}}}const li=e=>e==="reset"||e==="none",ho=(e,t)=>t?e:Object.assign({},e),od=(e,t,n)=>e&&!t.hidden&&t._stacked&&{keys:da(n,!0),values:null};class Se{constructor(t,n){this.chart=t,this._ctx=t.ctx,this.index=n,this._cachedDataOpts={},this._cachedMeta=this.getMeta(),this._type=this._cachedMeta.type,this.options=void 0,this._parsing=!1,this._data=void 0,this._objectData=void 0,this._sharedOptions=void 0,this._drawStart=void 0,this._drawCount=void 0,this.enableOptionSharing=!1,this.supportsDecimation=!1,this.$context=void 0,this._syncList=[],this.datasetElementType=new.target.datasetElementType,this.dataElementType=new.target.dataElementType,this.initialize()}initialize(){const t=this._cachedMeta;this.configure(),this.linkScales(),t._stacked=ri(t.vScale,t),this.addElements(),this.options.fill&&!this.chart.isPluginEnabled("filler")&&console.warn("Tried to use the 'fill' option without the 'Filler' plugin enabled. Please import and register the 'Filler' plugin and make sure it is not disabled in the options")}updateIndex(t){this.index!==t&&Fe(this._cachedMeta),this.index=t}linkScales(){const t=this.chart,n=this._cachedMeta,i=this.getDataset(),s=(u,d,f,g)=>u==="x"?d:u==="r"?g:f,o=n.xAxisID=j(i.xAxisID,ai(t,"x")),r=n.yAxisID=j(i.yAxisID,ai(t,"y")),a=n.rAxisID=j(i.rAxisID,ai(t,"r")),l=n.indexAxis,c=n.iAxisID=s(l,o,r,a),h=n.vAxisID=s(l,r,o,a);n.xScale=this.getScaleForId(o),n.yScale=this.getScaleForId(r),n.rScale=this.getScaleForId(a),n.iScale=this.getScaleForId(c),n.vScale=this.getScaleForId(h)}getDataset(){return this.chart.data.datasets[this.index]}getMeta(){return this.chart.getDatasetMeta(this.index)}getScaleForId(t){return this.chart.scales[t]}_getOtherScale(t){const n=this._cachedMeta;return t===n.iScale?n.vScale:n.iScale}reset(){this._update("reset")}_destroy(){const t=this._cachedMeta;this._data&&Ys(this._data,this),t._stacked&&Fe(t)}_dataCheck(){const t=this.getDataset(),n=t.data||(t.data=[]),i=this._data;if(z(n)){const s=this._cachedMeta;this._data=Qu(n,s)}else if(i!==n){if(i){Ys(i,this);const s=this._cachedMeta;Fe(s),s._parsed=[]}n&&Object.isExtensible(n)&&Bh(n,this),this._syncList=[],this._data=n}}addElements(){const t=this._cachedMeta;this._dataCheck(),this.datasetElementType&&(t.dataset=new this.datasetElementType)}buildOrUpdateElements(t){const n=this._cachedMeta,i=this.getDataset();let s=!1;this._dataCheck();const o=n._stacked;n._stacked=ri(n.vScale,n),n.stack!==i.stack&&(s=!0,Fe(n),n.stack=i.stack),this._resyncElements(t),(s||o!==n._stacked)&&(co(this,n._parsed),n._stacked=ri(n.vScale,n))}configure(){const t=this.chart.config,n=t.datasetScopeKeys(this._type),i=t.getOptionScopes(this.getDataset(),n,!0);this.options=t.createResolver(i,this.getContext()),this._parsing=this.options.parsing,this._cachedDataOpts={}}parse(t,n){const{_cachedMeta:i,_data:s}=this,{iScale:o,_stacked:r}=i,a=o.axis;let l=t===0&&n===s.length?!0:i._sorted,c=t>0&&i._parsed[t-1],h,u,d;if(this._parsing===!1)i._parsed=s,i._sorted=!0,d=s;else{J(s[t])?d=this.parseArrayData(i,s,t,n):z(s[t])?d=this.parseObjectData(i,s,t,n):d=this.parsePrimitiveData(i,s,t,n);const f=()=>u[a]===null||c&&u[a]<c[a];for(h=0;h<n;++h)i._parsed[h+t]=u=d[h],l&&(f()&&(l=!1),c=u);i._sorted=l}r&&co(this,d)}parsePrimitiveData(t,n,i,s){const{iScale:o,vScale:r}=t,a=o.axis,l=r.axis,c=o.getLabels(),h=o===r,u=new Array(s);let d,f,g;for(d=0,f=s;d<f;++d)g=d+i,u[d]={[a]:h||o.parse(c[g],g),[l]:r.parse(n[g],g)};return u}parseArrayData(t,n,i,s){const{xScale:o,yScale:r}=t,a=new Array(s);let l,c,h,u;for(l=0,c=s;l<c;++l)h=l+i,u=n[h],a[l]={x:o.parse(u[0],h),y:r.parse(u[1],h)};return a}parseObjectData(t,n,i,s){const{xScale:o,yScale:r}=t,{xAxisKey:a="x",yAxisKey:l="y"}=this._parsing,c=new Array(s);let h,u,d,f;for(h=0,u=s;h<u;++h)d=h+i,f=n[d],c[h]={x:o.parse(Oe(f,a),d),y:r.parse(Oe(f,l),d)};return c}getParsed(t){return this._cachedMeta._parsed[t]}getDataElement(t){return this._cachedMeta.data[t]}applyStack(t,n,i){const s=this.chart,o=this._cachedMeta,r=n[t.axis],a={keys:da(s,!0),values:n._stacks[t.axis]._visualValues};return ao(a,r,o.index,{mode:i})}updateRangeFromParsed(t,n,i,s){const o=i[n.axis];let r=o===null?NaN:o;const a=s&&i._stacks[n.axis];s&&a&&(s.values=a,r=ao(s,o,this._cachedMeta.index)),t.min=Math.min(t.min,r),t.max=Math.max(t.max,r)}getMinMax(t,n){const i=this._cachedMeta,s=i._parsed,o=i._sorted&&t===i.iScale,r=s.length,a=this._getOtherScale(t),l=od(n,i,this.chart),c={min:Number.POSITIVE_INFINITY,max:Number.NEGATIVE_INFINITY},{min:h,max:u}=ed(a);let d,f;function g(){f=s[d];const m=f[a.axis];return!vt(f[t.axis])||h>m||u<m}for(d=0;d<r&&!(!g()&&(this.updateRangeFromParsed(c,t,f,l),o));++d);if(o){for(d=r-1;d>=0;--d)if(!g()){this.updateRangeFromParsed(c,t,f,l);break}}return c}getAllParsedValues(t){const n=this._cachedMeta._parsed,i=[];let s,o,r;for(s=0,o=n.length;s<o;++s)r=n[s][t.axis],vt(r)&&i.push(r);return i}getMaxOverflow(){return!1}getLabelAndValue(t){const n=this._cachedMeta,i=n.iScale,s=n.vScale,o=this.getParsed(t);return{label:i?""+i.getLabelForValue(o[i.axis]):"",value:s?""+s.getLabelForValue(o[s.axis]):""}}_update(t){const n=this._cachedMeta;this.update(t||"default"),n._clip=Zu(j(this.options.clip,Ju(n.xScale,n.yScale,this.getMaxOverflow())))}update(t){}draw(){const t=this._ctx,n=this.chart,i=this._cachedMeta,s=i.data||[],o=n.chartArea,r=[],a=this._drawStart||0,l=this._drawCount||s.length-a,c=this.options.drawActiveElementsOnTop;let h;for(i.dataset&&i.dataset.draw(t,o,a,l),h=a;h<a+l;++h){const u=s[h];u.hidden||(u.active&&c?r.push(u):u.draw(t,o))}for(h=0;h<r.length;++h)r[h].draw(t,o)}getStyle(t,n){const i=n?"active":"default";return t===void 0&&this._cachedMeta.dataset?this.resolveDatasetElementOptions(i):this.resolveDataElementOptions(t||0,i)}getContext(t,n,i){const s=this.getDataset();let o;if(t>=0&&t<this._cachedMeta.data.length){const r=this._cachedMeta.data[t];o=r.$context||(r.$context=sd(this.getContext(),t,r)),o.parsed=this.getParsed(t),o.raw=s.data[t],o.index=o.dataIndex=t}else o=this.$context||(this.$context=id(this.chart.getContext(),this.index)),o.dataset=s,o.index=o.datasetIndex=this.index;return o.active=!!n,o.mode=i,o}resolveDatasetElementOptions(t){return this._resolveElementOptions(this.datasetElementType.id,t)}resolveDataElementOptions(t,n){return this._resolveElementOptions(this.dataElementType.id,n,t)}_resolveElementOptions(t,n="default",i){const s=n==="active",o=this._cachedDataOpts,r=t+"-"+n,a=o[r],l=this.enableOptionSharing&&tn(i);if(a)return ho(a,l);const c=this.chart.config,h=c.datasetElementScopeKeys(this._type,t),u=s?[`${t}Hover`,"hover",t,""]:[t,""],d=c.getOptionScopes(this.getDataset(),h),f=Object.keys(q.elements[t]),g=()=>this.getContext(i,s,n),m=c.resolveNamedOptions(d,f,g,u);return m.$shared&&(m.$shared=l,o[r]=Object.freeze(ho(m,l))),m}_resolveAnimations(t,n,i){const s=this.chart,o=this._cachedDataOpts,r=`animation-${n}`,a=o[r];if(a)return a;let l;if(s.options.animation!==!1){const h=this.chart.config,u=h.datasetAnimationScopeKeys(this._type,n),d=h.getOptionScopes(this.getDataset(),u);l=h.createResolver(d,this.getContext(t,i,n))}const c=new ua(s,l&&l.animations);return l&&l._cacheable&&(o[r]=Object.freeze(c)),c}getSharedOptions(t){if(t.$shared)return this._sharedOptions||(this._sharedOptions=Object.assign({},t))}includeOptions(t,n){return!n||li(t)||this.chart._animationsDisabled}_getSharedOptions(t,n){const i=this.resolveDataElementOptions(t,n),s=this._sharedOptions,o=this.getSharedOptions(i),r=this.includeOptions(n,o)||o!==s;return this.updateSharedOptions(o,n,i),{sharedOptions:o,includeOptions:r}}updateElement(t,n,i,s){li(s)?Object.assign(t,i):this._resolveAnimations(n,s).update(t,i)}updateSharedOptions(t,n,i){t&&!li(n)&&this._resolveAnimations(void 0,n).update(t,i)}_setStyle(t,n,i,s){t.active=s;const o=this.getStyle(n,s);this._resolveAnimations(n,i,s).update(t,{options:!s&&this.getSharedOptions(o)||o})}removeHoverStyle(t,n,i){this._setStyle(t,i,"active",!1)}setHoverStyle(t,n,i){this._setStyle(t,i,"active",!0)}_removeDatasetHoverStyle(){const t=this._cachedMeta.dataset;t&&this._setStyle(t,void 0,"active",!1)}_setDatasetHoverStyle(){const t=this._cachedMeta.dataset;t&&this._setStyle(t,void 0,"active",!0)}_resyncElements(t){const n=this._data,i=this._cachedMeta.data;for(const[a,l,c]of this._syncList)this[a](l,c);this._syncList=[];const s=i.length,o=n.length,r=Math.min(o,s);r&&this.parse(0,r),o>s?this._insertElements(s,o-s,t):o<s&&this._removeElements(o,s-o)}_insertElements(t,n,i=!0){const s=this._cachedMeta,o=s.data,r=t+n;let a;const l=c=>{for(c.length+=n,a=c.length-1;a>=r;a--)c[a]=c[a-n]};for(l(o),a=t;a<r;++a)o[a]=new this.dataElementType;this._parsing&&l(s._parsed),this.parse(t,n),i&&this.updateElements(o,t,n,"reset")}updateElements(t,n,i,s){}_removeElements(t,n){const i=this._cachedMeta;if(this._parsing){const s=i._parsed.splice(t,n);i._stacked&&Fe(i,s)}i.data.splice(t,n)}_sync(t){if(this._parsing)this._syncList.push(t);else{const[n,i,s]=t;this[n](i,s)}this.chart._dataChanges.push([this.index,...t])}_onDataPush(){const t=arguments.length;this._sync(["_insertElements",this.getDataset().data.length-t,t])}_onDataPop(){this._sync(["_removeElements",this._cachedMeta.data.length-1,1])}_onDataShift(){this._sync(["_removeElements",0,1])}_onDataSplice(t,n){n&&this._sync(["_removeElements",t,n]);const i=arguments.length-2;i&&this._sync(["_insertElements",t,i])}_onDataUnshift(){this._sync(["_insertElements",0,arguments.length])}}R(Se,"defaults",{}),R(Se,"datasetElementType",null),R(Se,"dataElementType",null);function rd(e,t){if(!e._cache.$bar){const n=e.getMatchingVisibleMetas(t);let i=[];for(let s=0,o=n.length;s<o;s++)i=i.concat(n[s].controller.getAllParsedValues(e));e._cache.$bar=Kr(i.sort((s,o)=>s-o))}return e._cache.$bar}function ad(e){const t=e.iScale,n=rd(t,e.type);let i=t._length,s,o,r,a;const l=()=>{r===32767||r===-32768||(tn(a)&&(i=Math.min(i,Math.abs(r-a)||i)),a=r)};for(s=0,o=n.length;s<o;++s)r=t.getPixelForValue(n[s]),l();for(a=void 0,s=0,o=t.ticks.length;s<o;++s)r=t.getPixelForTick(s),l();return i}function ld(e,t,n,i){const s=n.barThickness;let o,r;return B(s)?(o=t.min*n.categoryPercentage,r=n.barPercentage):(o=s*i,r=1),{chunk:o/i,ratio:r,start:t.pixels[e]-o/2}}function cd(e,t,n,i){const s=t.pixels,o=s[e];let r=e>0?s[e-1]:null,a=e<s.length-1?s[e+1]:null;const l=n.categoryPercentage;r===null&&(r=o-(a===null?t.end-t.start:a-o)),a===null&&(a=o+o-r);const c=o-(o-Math.min(r,a))/2*l;return{chunk:Math.abs(a-r)/2*l/i,ratio:n.barPercentage,start:c}}function hd(e,t,n,i){const s=n.parse(e[0],i),o=n.parse(e[1],i),r=Math.min(s,o),a=Math.max(s,o);let l=r,c=a;Math.abs(r)>Math.abs(a)&&(l=a,c=r),t[n.axis]=c,t._custom={barStart:l,barEnd:c,start:s,end:o,min:r,max:a}}function fa(e,t,n,i){return J(e)?hd(e,t,n,i):t[n.axis]=n.parse(e,i),t}function uo(e,t,n,i){const s=e.iScale,o=e.vScale,r=s.getLabels(),a=s===o,l=[];let c,h,u,d;for(c=n,h=n+i;c<h;++c)d=t[c],u={},u[s.axis]=a||s.parse(r[c],c),l.push(fa(d,u,o,c));return l}function ci(e){return e&&e.barStart!==void 0&&e.barEnd!==void 0}function ud(e,t,n){return e!==0?Dt(e):(t.isHorizontal()?1:-1)*(t.min>=n?1:-1)}function dd(e){let t,n,i,s,o;return e.horizontal?(t=e.base>e.x,n="left",i="right"):(t=e.base<e.y,n="bottom",i="top"),t?(s="end",o="start"):(s="start",o="end"),{start:n,end:i,reverse:t,top:s,bottom:o}}function fd(e,t,n,i){let s=t.borderSkipped;const o={};if(!s){e.borderSkipped=o;return}if(s===!0){e.borderSkipped={top:!0,right:!0,bottom:!0,left:!0};return}const{start:r,end:a,reverse:l,top:c,bottom:h}=dd(e);s==="middle"&&n&&(e.enableBorderRadius=!0,(n._top||0)===i?s=c:(n._bottom||0)===i?s=h:(o[fo(h,r,a,l)]=!0,s=c)),o[fo(s,r,a,l)]=!0,e.borderSkipped=o}function fo(e,t,n,i){return i?(e=pd(e,t,n),e=po(e,n,t)):e=po(e,t,n),e}function pd(e,t,n){return e===t?n:e===n?t:e}function po(e,t,n){return e==="start"?t:e==="end"?n:e}function gd(e,{inflateAmount:t},n){e.inflateAmount=t==="auto"?n===1?.33:0:t}class hi extends Se{parsePrimitiveData(t,n,i,s){return uo(t,n,i,s)}parseArrayData(t,n,i,s){return uo(t,n,i,s)}parseObjectData(t,n,i,s){const{iScale:o,vScale:r}=t,{xAxisKey:a="x",yAxisKey:l="y"}=this._parsing,c=o.axis==="x"?a:l,h=r.axis==="x"?a:l,u=[];let d,f,g,m;for(d=i,f=i+s;d<f;++d)m=n[d],g={},g[o.axis]=o.parse(Oe(m,c),d),u.push(fa(Oe(m,h),g,r,d));return u}updateRangeFromParsed(t,n,i,s){super.updateRangeFromParsed(t,n,i,s);const o=i._custom;o&&n===this._cachedMeta.vScale&&(t.min=Math.min(t.min,o.min),t.max=Math.max(t.max,o.max))}getMaxOverflow(){return 0}getLabelAndValue(t){const n=this._cachedMeta,{iScale:i,vScale:s}=n,o=this.getParsed(t),r=o._custom,a=ci(r)?"["+r.start+", "+r.end+"]":""+s.getLabelForValue(o[s.axis]);return{label:""+i.getLabelForValue(o[i.axis]),value:a}}initialize(){this.enableOptionSharing=!0,super.initialize();const t=this._cachedMeta;t.stack=this.getDataset().stack}update(t){const n=this._cachedMeta;this.updateElements(n.data,0,n.data.length,t)}updateElements(t,n,i,s){const o=s==="reset",{index:r,_cachedMeta:{vScale:a}}=this,l=a.getBasePixel(),c=a.isHorizontal(),h=this._getRuler(),{sharedOptions:u,includeOptions:d}=this._getSharedOptions(n,s);for(let f=n;f<n+i;f++){const g=this.getParsed(f),m=o||B(g[a.axis])?{base:l,head:l}:this._calculateBarValuePixels(f),p=this._calculateBarIndexPixels(f,h),b=(g._stacks||{})[a.axis],x={horizontal:c,base:m.base,enableBorderRadius:!b||ci(g._custom)||r===b._top||r===b._bottom,x:c?m.head:p.center,y:c?p.center:m.head,height:c?p.size:Math.abs(m.size),width:c?Math.abs(m.size):p.size};d&&(x.options=u||this.resolveDataElementOptions(f,t[f].active?"active":s));const v=x.options||t[f].options;fd(x,v,b,r),gd(x,v,h.ratio),this.updateElement(t[f],f,x,s)}}_getStacks(t,n){const{iScale:i}=this._cachedMeta,s=i.getMatchingVisibleMetas(this._type).filter(h=>h.controller.options.grouped),o=i.options.stacked,r=[],a=this._cachedMeta.controller.getParsed(n),l=a&&a[i.axis],c=h=>{const u=h._parsed.find(f=>f[i.axis]===l),d=u&&u[h.vScale.axis];if(B(d)||isNaN(d))return!0};for(const h of s)if(!(n!==void 0&&c(h))&&((o===!1||r.indexOf(h.stack)===-1||o===void 0&&h.stack===void 0)&&r.push(h.stack),h.index===t))break;return r.length||r.push(void 0),r}_getStackCount(t){return this._getStacks(void 0,t).length}_getStackIndex(t,n,i){const s=this._getStacks(t,i),o=n!==void 0?s.indexOf(n):-1;return o===-1?s.length-1:o}_getRuler(){const t=this.options,n=this._cachedMeta,i=n.iScale,s=[];let o,r;for(o=0,r=n.data.length;o<r;++o)s.push(i.getPixelForValue(this.getParsed(o)[i.axis],o));const a=t.barThickness;return{min:a||ad(n),pixels:s,start:i._startPixel,end:i._endPixel,stackCount:this._getStackCount(),scale:i,grouped:t.grouped,ratio:a?1:t.categoryPercentage*t.barPercentage}}_calculateBarValuePixels(t){const{_cachedMeta:{vScale:n,_stacked:i,index:s},options:{base:o,minBarLength:r}}=this,a=o||0,l=this.getParsed(t),c=l._custom,h=ci(c);let u=l[n.axis],d=0,f=i?this.applyStack(n,l,i):u,g,m;f!==u&&(d=f-u,f=u),h&&(u=c.barStart,f=c.barEnd-c.barStart,u!==0&&Dt(u)!==Dt(c.barEnd)&&(d=0),d+=u);const p=!B(o)&&!h?o:d;let b=n.getPixelForValue(p);if(this.chart.getDataVisibility(t)?g=n.getPixelForValue(d+f):g=b,m=g-b,Math.abs(m)<r){m=ud(m,n,a)*r,u===a&&(b-=m/2);const x=n.getPixelForDecimal(0),v=n.getPixelForDecimal(1),_=Math.min(x,v),y=Math.max(x,v);b=Math.max(Math.min(b,y),_),g=b+m,i&&!h&&(l._stacks[n.axis]._visualValues[s]=n.getValueForPixel(g)-n.getValueForPixel(b))}if(b===n.getPixelForValue(a)){const x=Dt(m)*n.getLineWidthForValue(a)/2;b+=x,m-=x}return{size:m,base:b,head:g,center:g+m/2}}_calculateBarIndexPixels(t,n){const i=n.scale,s=this.options,o=s.skipNull,r=j(s.maxBarThickness,1/0);let a,l;if(n.grouped){const c=o?this._getStackCount(t):n.stackCount,h=s.barThickness==="flex"?cd(t,n,s,c):ld(t,n,s,c),u=this._getStackIndex(this.index,this._cachedMeta.stack,o?t:void 0);a=h.start+h.chunk*u+h.chunk/2,l=Math.min(r,h.chunk*h.ratio)}else a=i.getPixelForValue(this.getParsed(t)[i.axis],t),l=Math.min(r,n.min*n.ratio);return{base:a-l/2,head:a+l/2,center:a,size:l}}draw(){const t=this._cachedMeta,n=t.vScale,i=t.data,s=i.length;let o=0;for(;o<s;++o)this.getParsed(o)[n.axis]!==null&&!i[o].hidden&&i[o].draw(this._ctx)}}R(hi,"id","bar"),R(hi,"defaults",{datasetElementType:!1,dataElementType:"bar",categoryPercentage:.8,barPercentage:.9,grouped:!0,animations:{numbers:{type:"number",properties:["x","y","base","width","height"]}}}),R(hi,"overrides",{scales:{_index_:{type:"category",offset:!0,grid:{offset:!0}},_value_:{type:"linear",beginAtZero:!0}}});class ui extends Se{initialize(){this.enableOptionSharing=!0,this.supportsDecimation=!0,super.initialize()}update(t){const n=this._cachedMeta,{dataset:i,data:s=[],_dataset:o}=n,r=this.chart._animationsDisabled;let{start:a,count:l}=Vh(n,s,r);this._drawStart=a,this._drawCount=l,Yh(n)&&(a=0,l=s.length),i._chart=this.chart,i._datasetIndex=this.index,i._decimated=!!o._decimated,i.points=s;const c=this.resolveDatasetElementOptions(t);this.options.showLine||(c.borderWidth=0),c.segment=this.options.segment,this.updateElement(i,void 0,{animated:!r,options:c},t),this.updateElements(s,a,l,t)}updateElements(t,n,i,s){const o=s==="reset",{iScale:r,vScale:a,_stacked:l,_dataset:c}=this._cachedMeta,{sharedOptions:h,includeOptions:u}=this._getSharedOptions(n,s),d=r.axis,f=a.axis,{spanGaps:g,segment:m}=this.options,p=en(g)?g:Number.POSITIVE_INFINITY,b=this.chart._animationsDisabled||o||s==="none",x=n+i,v=t.length;let _=n>0&&this.getParsed(n-1);for(let y=0;y<v;++y){const w=t[y],k=b?w:{};if(y<n||y>=x){k.skip=!0;continue}const S=this.getParsed(y),C=B(S[f]),D=k[d]=r.getPixelForValue(S[d],y),P=k[f]=o||C?a.getBasePixel():a.getPixelForValue(l?this.applyStack(a,S,l):S[f],y);k.skip=isNaN(D)||isNaN(P)||C,k.stop=y>0&&Math.abs(S[d]-_[d])>p,m&&(k.parsed=S,k.raw=c.data[y]),u&&(k.options=h||this.resolveDataElementOptions(y,w.active?"active":s)),b||this.updateElement(w,y,k,s),_=S}}getMaxOverflow(){const t=this._cachedMeta,n=t.dataset,i=n.options&&n.options.borderWidth||0,s=t.data||[];if(!s.length)return i;const o=s[0].size(this.resolveDataElementOptions(0)),r=s[s.length-1].size(this.resolveDataElementOptions(s.length-1));return Math.max(i,o,r)/2}draw(){const t=this._cachedMeta;t.dataset.updateControlPoints(this.chart.chartArea,t.iScale.axis),super.draw()}}R(ui,"id","line"),R(ui,"defaults",{datasetElementType:"line",dataElementType:"point",showLine:!0,spanGaps:!1}),R(ui,"overrides",{scales:{_index_:{type:"category"},_value_:{type:"linear"}}});function ne(){throw new Error("This method is not implemented: Check that a complete date adapter is provided.")}class os{constructor(t){R(this,"options");this.options=t||{}}static override(t){Object.assign(os.prototype,t)}init(){}formats(){return ne()}parse(){return ne()}format(){return ne()}add(){return ne()}diff(){return ne()}startOf(){return ne()}endOf(){return ne()}}var md={_date:os};function bd(e,t,n,i){const{controller:s,data:o,_sorted:r}=e,a=s._cachedMeta.iScale,l=e.dataset&&e.dataset.options?e.dataset.options.spanGaps:null;if(a&&t===a.axis&&t!=="r"&&r&&o.length){const c=a._reversePixels?zh:le;if(i){if(s._sharedOptions){const h=o[0],u=typeof h.getRange=="function"&&h.getRange(t);if(u){const d=c(o,t,n-u),f=c(o,t,n+u);return{lo:d.lo,hi:f.hi}}}}else{const h=c(o,t,n);if(l){const{vScale:u}=s._cachedMeta,{_parsed:d}=e,f=d.slice(0,h.lo+1).reverse().findIndex(m=>!B(m[u.axis]));h.lo-=Math.max(0,f);const g=d.slice(h.hi).findIndex(m=>!B(m[u.axis]));h.hi+=Math.max(0,g)}return h}}return{lo:0,hi:o.length-1}}function un(e,t,n,i,s){const o=e.getSortedVisibleDatasetMetas(),r=n[t];for(let a=0,l=o.length;a<l;++a){const{index:c,data:h}=o[a],{lo:u,hi:d}=bd(o[a],t,r,s);for(let f=u;f<=d;++f){const g=h[f];g.skip||i(g,c,f)}}}function xd(e){const t=e.indexOf("x")!==-1,n=e.indexOf("y")!==-1;return function(i,s){const o=t?Math.abs(i.x-s.x):0,r=n?Math.abs(i.y-s.y):0;return Math.sqrt(Math.pow(o,2)+Math.pow(r,2))}}function di(e,t,n,i,s){const o=[];return!s&&!e.isPointInArea(t)||un(e,n,t,function(a,l,c){!s&&!nn(a,e.chartArea,0)||a.inRange(t.x,t.y,i)&&o.push({element:a,datasetIndex:l,index:c})},!0),o}function yd(e,t,n,i){let s=[];function o(r,a,l){const{startAngle:c,endAngle:h}=r.getProps(["startAngle","endAngle"],i),{angle:u}=Xr(r,{x:t.x,y:t.y});Xi(u,c,h)&&s.push({element:r,datasetIndex:a,index:l})}return un(e,n,t,o),s}function vd(e,t,n,i,s,o){let r=[];const a=xd(n);let l=Number.POSITIVE_INFINITY;function c(h,u,d){const f=h.inRange(t.x,t.y,s);if(i&&!f)return;const g=h.getCenterPoint(s);if(!(!!o||e.isPointInArea(g))&&!f)return;const p=a(t,g);p<l?(r=[{element:h,datasetIndex:u,index:d}],l=p):p===l&&r.push({element:h,datasetIndex:u,index:d})}return un(e,n,t,c),r}function fi(e,t,n,i,s,o){return!o&&!e.isPointInArea(t)?[]:n==="r"&&!i?yd(e,t,n,s):vd(e,t,n,i,s,o)}function go(e,t,n,i,s){const o=[],r=n==="x"?"inXRange":"inYRange";let a=!1;return un(e,n,t,(l,c,h)=>{l[r]&&l[r](t[n],s)&&(o.push({element:l,datasetIndex:c,index:h}),a=a||l.inRange(t.x,t.y,s))}),i&&!a?[]:o}var _d={evaluateInteractionItems:un,modes:{index(e,t,n,i){const s=oe(t,e),o=n.axis||"x",r=n.includeInvisible||!1,a=n.intersect?di(e,s,o,i,r):fi(e,s,o,!1,i,r),l=[];return a.length?(e.getSortedVisibleDatasetMetas().forEach(c=>{const h=a[0].index,u=c.data[h];u&&!u.skip&&l.push({element:u,datasetIndex:c.index,index:h})}),l):[]},dataset(e,t,n,i){const s=oe(t,e),o=n.axis||"xy",r=n.includeInvisible||!1;let a=n.intersect?di(e,s,o,i,r):fi(e,s,o,!1,i,r);if(a.length>0){const l=a[0].datasetIndex,c=e.getDatasetMeta(l).data;a=[];for(let h=0;h<c.length;++h)a.push({element:c[h],datasetIndex:l,index:h})}return a},point(e,t,n,i){const s=oe(t,e),o=n.axis||"xy",r=n.includeInvisible||!1;return di(e,s,o,i,r)},nearest(e,t,n,i){const s=oe(t,e),o=n.axis||"xy",r=n.includeInvisible||!1;return fi(e,s,o,n.intersect,i,r)},x(e,t,n,i){const s=oe(t,e);return go(e,s,"x",n.intersect,i)},y(e,t,n,i){const s=oe(t,e);return go(e,s,"y",n.intersect,i)}}};const pa=["left","top","right","bottom"];function Ie(e,t){return e.filter(n=>n.pos===t)}function mo(e,t){return e.filter(n=>pa.indexOf(n.pos)===-1&&n.box.axis===t)}function je(e,t){return e.sort((n,i)=>{const s=t?i:n,o=t?n:i;return s.weight===o.weight?s.index-o.index:s.weight-o.weight})}function wd(e){const t=[];let n,i,s,o,r,a;for(n=0,i=(e||[]).length;n<i;++n)s=e[n],{position:o,options:{stack:r,stackWeight:a=1}}=s,t.push({index:n,box:s,pos:o,horizontal:s.isHorizontal(),weight:s.weight,stack:r&&o+r,stackWeight:a});return t}function Sd(e){const t={};for(const n of e){const{stack:i,pos:s,stackWeight:o}=n;if(!i||!pa.includes(s))continue;const r=t[i]||(t[i]={count:0,placed:0,weight:0,size:0});r.count++,r.weight+=o}return t}function kd(e,t){const n=Sd(e),{vBoxMaxWidth:i,hBoxMaxHeight:s}=t;let o,r,a;for(o=0,r=e.length;o<r;++o){a=e[o];const{fullSize:l}=a.box,c=n[a.stack],h=c&&a.stackWeight/c.weight;a.horizontal?(a.width=h?h*i:l&&t.availableWidth,a.height=s):(a.width=i,a.height=h?h*s:l&&t.availableHeight)}return n}function Md(e){const t=wd(e),n=je(t.filter(c=>c.box.fullSize),!0),i=je(Ie(t,"left"),!0),s=je(Ie(t,"right")),o=je(Ie(t,"top"),!0),r=je(Ie(t,"bottom")),a=mo(t,"x"),l=mo(t,"y");return{fullSize:n,leftAndTop:i.concat(o),rightAndBottom:s.concat(l).concat(r).concat(a),chartArea:Ie(t,"chartArea"),vertical:i.concat(s).concat(l),horizontal:o.concat(r).concat(a)}}function bo(e,t,n,i){return Math.max(e[n],t[n])+Math.max(e[i],t[i])}function ga(e,t){e.top=Math.max(e.top,t.top),e.left=Math.max(e.left,t.left),e.bottom=Math.max(e.bottom,t.bottom),e.right=Math.max(e.right,t.right)}function Cd(e,t,n,i){const{pos:s,box:o}=n,r=e.maxPadding;if(!z(s)){n.size&&(e[s]-=n.size);const u=i[n.stack]||{size:0,count:1};u.size=Math.max(u.size,n.horizontal?o.height:o.width),n.size=u.size/u.count,e[s]+=n.size}o.getPadding&&ga(r,o.getPadding());const a=Math.max(0,t.outerWidth-bo(r,e,"left","right")),l=Math.max(0,t.outerHeight-bo(r,e,"top","bottom")),c=a!==e.w,h=l!==e.h;return e.w=a,e.h=l,n.horizontal?{same:c,other:h}:{same:h,other:c}}function Pd(e){const t=e.maxPadding;function n(i){const s=Math.max(t[i]-e[i],0);return e[i]+=s,s}e.y+=n("top"),e.x+=n("left"),n("right"),n("bottom")}function Od(e,t){const n=t.maxPadding;function i(s){const o={left:0,top:0,right:0,bottom:0};return s.forEach(r=>{o[r]=Math.max(t[r],n[r])}),o}return i(e?["left","right"]:["top","bottom"])}function Be(e,t,n,i){const s=[];let o,r,a,l,c,h;for(o=0,r=e.length,c=0;o<r;++o){a=e[o],l=a.box,l.update(a.width||t.w,a.height||t.h,Od(a.horizontal,t));const{same:u,other:d}=Cd(t,n,a,i);c|=u&&s.length,h=h||d,l.fullSize||s.push(a)}return c&&Be(s,t,n,i)||h}function wn(e,t,n,i,s){e.top=n,e.left=t,e.right=t+i,e.bottom=n+s,e.width=i,e.height=s}function xo(e,t,n,i){const s=n.padding;let{x:o,y:r}=t;for(const a of e){const l=a.box,c=i[a.stack]||{count:1,placed:0,weight:1},h=a.stackWeight/c.weight||1;if(a.horizontal){const u=t.w*h,d=c.size||l.height;tn(c.start)&&(r=c.start),l.fullSize?wn(l,s.left,r,n.outerWidth-s.right-s.left,d):wn(l,t.left+c.placed,r,u,d),c.start=r,c.placed+=u,r=l.bottom}else{const u=t.h*h,d=c.size||l.width;tn(c.start)&&(o=c.start),l.fullSize?wn(l,o,s.top,d,n.outerHeight-s.bottom-s.top):wn(l,o,t.top+c.placed,d,u),c.start=o,c.placed+=u,o=l.right}}t.x=o,t.y=r}var bt={addBox(e,t){e.boxes||(e.boxes=[]),t.fullSize=t.fullSize||!1,t.position=t.position||"top",t.weight=t.weight||0,t._layers=t._layers||function(){return[{z:0,draw(n){t.draw(n)}}]},e.boxes.push(t)},removeBox(e,t){const n=e.boxes?e.boxes.indexOf(t):-1;n!==-1&&e.boxes.splice(n,1)},configure(e,t,n){t.fullSize=n.fullSize,t.position=n.position,t.weight=n.weight},update(e,t,n,i){if(!e)return;const s=_t(e.options.layout.padding),o=Math.max(t-s.width,0),r=Math.max(n-s.height,0),a=Md(e.boxes),l=a.vertical,c=a.horizontal;V(e.boxes,m=>{typeof m.beforeLayout=="function"&&m.beforeLayout()});const h=l.reduce((m,p)=>p.box.options&&p.box.options.display===!1?m:m+1,0)||1,u=Object.freeze({outerWidth:t,outerHeight:n,padding:s,availableWidth:o,availableHeight:r,vBoxMaxWidth:o/2/h,hBoxMaxHeight:r/2}),d=Object.assign({},s);ga(d,_t(i));const f=Object.assign({maxPadding:d,w:o,h:r,x:s.left,y:s.top},s),g=kd(l.concat(c),u);Be(a.fullSize,f,u,g),Be(l,f,u,g),Be(c,f,u,g)&&Be(l,f,u,g),Pd(f),xo(a.leftAndTop,f,u,g),f.x+=f.w,f.y+=f.h,xo(a.rightAndBottom,f,u,g),e.chartArea={left:f.left,top:f.top,right:f.left+f.w,bottom:f.top+f.h,height:f.h,width:f.w},V(a.chartArea,m=>{const p=m.box;Object.assign(p,e.chartArea),p.update(f.w,f.h,{left:0,top:0,right:0,bottom:0})})}};class ma{acquireContext(t,n){}releaseContext(t){return!1}addEventListener(t,n,i){}removeEventListener(t,n,i){}getDevicePixelRatio(){return 1}getMaximumSize(t,n,i,s){return n=Math.max(0,n||t.width),i=i||t.height,{width:n,height:Math.max(0,s?Math.floor(n/s):i)}}isAttached(t){return!0}updateConfig(t){}}class Dd extends ma{acquireContext(t){return t&&t.getContext&&t.getContext("2d")||null}updateConfig(t){t.options.animation=!1}}const Rn="$chartjs",Ed={touchstart:"mousedown",touchmove:"mousemove",touchend:"mouseup",pointerenter:"mouseenter",pointerdown:"mousedown",pointermove:"mousemove",pointerup:"mouseup",pointerleave:"mouseout",pointerout:"mouseout"},yo=e=>e===null||e==="";function Ad(e,t){const n=e.style,i=e.getAttribute("height"),s=e.getAttribute("width");if(e[Rn]={initial:{height:i,width:s,style:{display:n.display,height:n.height,width:n.width}}},n.display=n.display||"block",n.boxSizing=n.boxSizing||"border-box",yo(s)){const o=eo(e,"width");o!==void 0&&(e.width=o)}if(yo(i))if(e.style.height==="")e.height=e.width/(t||2);else{const o=eo(e,"height");o!==void 0&&(e.height=o)}return e}const ba=Ru?{passive:!0}:!1;function Td(e,t,n){e&&e.addEventListener(t,n,ba)}function Rd(e,t,n){e&&e.canvas&&e.canvas.removeEventListener(t,n,ba)}function Ld(e,t){const n=Ed[e.type]||e.type,{x:i,y:s}=oe(e,t);return{type:n,chart:t,native:e,x:i!==void 0?i:null,y:s!==void 0?s:null}}function Bn(e,t){for(const n of e)if(n===t||n.contains(t))return!0}function Fd(e,t,n){const i=e.canvas,s=new MutationObserver(o=>{let r=!1;for(const a of o)r=r||Bn(a.addedNodes,i),r=r&&!Bn(a.removedNodes,i);r&&n()});return s.observe(document,{childList:!0,subtree:!0}),s}function Id(e,t,n){const i=e.canvas,s=new MutationObserver(o=>{let r=!1;for(const a of o)r=r||Bn(a.removedNodes,i),r=r&&!Bn(a.addedNodes,i);r&&n()});return s.observe(document,{childList:!0,subtree:!0}),s}const on=new Map;let vo=0;function xa(){const e=window.devicePixelRatio;e!==vo&&(vo=e,on.forEach((t,n)=>{n.currentDevicePixelRatio!==e&&t()}))}function jd(e,t){on.size||window.addEventListener("resize",xa),on.set(e,t)}function $d(e){on.delete(e),on.size||window.removeEventListener("resize",xa)}function zd(e,t,n){const i=e.canvas,s=i&&ss(i);if(!s)return;const o=Jr((a,l)=>{const c=s.clientWidth;n(a,l),c<s.clientWidth&&n()},window),r=new ResizeObserver(a=>{const l=a[0],c=l.contentRect.width,h=l.contentRect.height;c===0&&h===0||o(c,h)});return r.observe(s),jd(e,o),r}function pi(e,t,n){n&&n.disconnect(),t==="resize"&&$d(e)}function Nd(e,t,n){const i=e.canvas,s=Jr(o=>{e.ctx!==null&&n(Ld(o,e))},e);return Td(i,t,s),s}class Bd extends ma{acquireContext(t,n){const i=t&&t.getContext&&t.getContext("2d");return i&&i.canvas===t?(Ad(t,n),i):null}releaseContext(t){const n=t.canvas;if(!n[Rn])return!1;const i=n[Rn].initial;["height","width"].forEach(o=>{const r=i[o];B(r)?n.removeAttribute(o):n.setAttribute(o,r)});const s=i.style||{};return Object.keys(s).forEach(o=>{n.style[o]=s[o]}),n.width=n.width,delete n[Rn],!0}addEventListener(t,n,i){this.removeEventListener(t,n);const s=t.$proxies||(t.$proxies={}),r={attach:Fd,detach:Id,resize:zd}[n]||Nd;s[n]=r(t,n,i)}removeEventListener(t,n){const i=t.$proxies||(t.$proxies={}),s=i[n];if(!s)return;({attach:pi,detach:pi,resize:pi}[n]||Rd)(t,n,s),i[n]=void 0}getDevicePixelRatio(){return window.devicePixelRatio}getMaximumSize(t,n,i,s){return Tu(t,n,i,s)}isAttached(t){const n=t&&ss(t);return!!(n&&n.isConnected)}}function Hd(e){return!is()||typeof OffscreenCanvas<"u"&&e instanceof OffscreenCanvas?Dd:Bd}var An;let jt=(An=class{constructor(){R(this,"x");R(this,"y");R(this,"active",!1);R(this,"options");R(this,"$animations")}tooltipPosition(t){const{x:n,y:i}=this.getProps(["x","y"],t);return{x:n,y:i}}hasValue(){return en(this.x)&&en(this.y)}getProps(t,n){const i=this.$animations;if(!n||!i)return this;const s={};return t.forEach(o=>{s[o]=i[o]&&i[o].active()?i[o]._to:this[o]}),s}},R(An,"defaults",{}),R(An,"defaultRoutes"),An);function Wd(e,t){const n=e.options.ticks,i=Vd(e),s=Math.min(n.maxTicksLimit||i,i),o=n.major.enabled?Ud(t):[],r=o.length,a=o[0],l=o[r-1],c=[];if(r>s)return Xd(t,c,o,r/s),c;const h=Yd(o,t,s);if(r>0){let u,d;const f=r>1?Math.round((l-a)/(r-1)):null;for(Sn(t,c,h,B(f)?0:a-f,a),u=0,d=r-1;u<d;u++)Sn(t,c,h,o[u],o[u+1]);return Sn(t,c,h,l,B(f)?t.length:l+f),c}return Sn(t,c,h),c}function Vd(e){const t=e.options.offset,n=e._tickSize(),i=e._length/n+(t?0:1),s=e._maxLength/n;return Math.floor(Math.min(i,s))}function Yd(e,t,n){const i=qd(e),s=t.length/n;if(!i)return Math.max(s,1);const o=Th(i);for(let r=0,a=o.length-1;r<a;r++){const l=o[r];if(l>s)return l}return Math.max(s,1)}function Ud(e){const t=[];let n,i;for(n=0,i=e.length;n<i;n++)e[n].major&&t.push(n);return t}function Xd(e,t,n,i){let s=0,o=n[0],r;for(i=Math.ceil(i),r=0;r<e.length;r++)r===o&&(t.push(e[r]),s++,o=n[s*i])}function Sn(e,t,n,i,s){const o=j(i,0),r=Math.min(j(s,e.length),e.length);let a=0,l,c,h;for(n=Math.ceil(n),s&&(l=s-i,n=l/Math.floor(l/n)),h=o;h<0;)a++,h=Math.round(o+a*n);for(c=Math.max(o,0);c<r;c++)c===h&&(t.push(e[c]),a++,h=Math.round(o+a*n))}function qd(e){const t=e.length;let n,i;if(t<2)return!1;for(i=e[0],n=1;n<t;++n)if(e[n]-e[n-1]!==i)return!1;return i}const Kd=e=>e==="left"?"right":e==="right"?"left":e,_o=(e,t,n)=>t==="top"||t==="left"?e[t]+n:e[t]-n,wo=(e,t)=>Math.min(t||e,e);function So(e,t){const n=[],i=e.length/t,s=e.length;let o=0;for(;o<s;o+=i)n.push(e[Math.floor(o)]);return n}function Gd(e,t,n){const i=e.ticks.length,s=Math.min(t,i-1),o=e._startPixel,r=e._endPixel,a=1e-6;let l=e.getPixelForTick(s),c;if(!(n&&(i===1?c=Math.max(l-o,r-l):t===0?c=(e.getPixelForTick(1)-l)/2:c=(l-e.getPixelForTick(s-1))/2,l+=s<t?c:-c,l<o-a||l>r+a)))return l}function Jd(e,t){V(e,n=>{const i=n.gc,s=i.length/2;let o;if(s>t){for(o=0;o<s;++o)delete n.data[i[o]];i.splice(0,s)}})}function $e(e){return e.drawTicks?e.tickLength:0}function ko(e,t){if(!e.display)return 0;const n=at(e.font,t),i=_t(e.padding);return(J(e.text)?e.text.length:1)*n.lineHeight+i.height}function Zd(e,t){return pe(e,{scale:t,type:"scale"})}function Qd(e,t,n){return pe(e,{tick:n,index:t,type:"tick"})}function tf(e,t,n){let i=Ki(e);return(n&&t!=="right"||!n&&t==="right")&&(i=Kd(i)),i}function ef(e,t,n,i){const{top:s,left:o,bottom:r,right:a,chart:l}=e,{chartArea:c,scales:h}=l;let u=0,d,f,g;const m=r-s,p=a-o;if(e.isHorizontal()){if(f=ot(i,o,a),z(n)){const b=Object.keys(n)[0],x=n[b];g=h[b].getPixelForValue(x)+m-t}else n==="center"?g=(c.bottom+c.top)/2+m-t:g=_o(e,n,t);d=a-o}else{if(z(n)){const b=Object.keys(n)[0],x=n[b];f=h[b].getPixelForValue(x)-p+t}else n==="center"?f=(c.left+c.right)/2-p+t:f=_o(e,n,t);g=ot(i,r,s),u=n==="left"?-it:it}return{titleX:f,titleY:g,maxWidth:d,rotation:u}}class Ae extends jt{constructor(t){super(),this.id=t.id,this.type=t.type,this.options=void 0,this.ctx=t.ctx,this.chart=t.chart,this.top=void 0,this.bottom=void 0,this.left=void 0,this.right=void 0,this.width=void 0,this.height=void 0,this._margins={left:0,right:0,top:0,bottom:0},this.maxWidth=void 0,this.maxHeight=void 0,this.paddingTop=void 0,this.paddingBottom=void 0,this.paddingLeft=void 0,this.paddingRight=void 0,this.axis=void 0,this.labelRotation=void 0,this.min=void 0,this.max=void 0,this._range=void 0,this.ticks=[],this._gridLineItems=null,this._labelItems=null,this._labelSizes=null,this._length=0,this._maxLength=0,this._longestTextCache={},this._startPixel=void 0,this._endPixel=void 0,this._reversePixels=!1,this._userMax=void 0,this._userMin=void 0,this._suggestedMax=void 0,this._suggestedMin=void 0,this._ticksLength=0,this._borderValue=0,this._cache={},this._dataLimitsCached=!1,this.$context=void 0}init(t){this.options=t.setContext(this.getContext()),this.axis=t.axis,this._userMin=this.parse(t.min),this._userMax=this.parse(t.max),this._suggestedMin=this.parse(t.suggestedMin),this._suggestedMax=this.parse(t.suggestedMax)}parse(t,n){return t}getUserBounds(){let{_userMin:t,_userMax:n,_suggestedMin:i,_suggestedMax:s}=this;return t=St(t,Number.POSITIVE_INFINITY),n=St(n,Number.NEGATIVE_INFINITY),i=St(i,Number.POSITIVE_INFINITY),s=St(s,Number.NEGATIVE_INFINITY),{min:St(t,i),max:St(n,s),minDefined:vt(t),maxDefined:vt(n)}}getMinMax(t){let{min:n,max:i,minDefined:s,maxDefined:o}=this.getUserBounds(),r;if(s&&o)return{min:n,max:i};const a=this.getMatchingVisibleMetas();for(let l=0,c=a.length;l<c;++l)r=a[l].controller.getMinMax(this,t),s||(n=Math.min(n,r.min)),o||(i=Math.max(i,r.max));return n=o&&n>i?i:n,i=s&&n>i?n:i,{min:St(n,St(i,n)),max:St(i,St(n,i))}}getPadding(){return{left:this.paddingLeft||0,top:this.paddingTop||0,right:this.paddingRight||0,bottom:this.paddingBottom||0}}getTicks(){return this.ticks}getLabels(){const t=this.chart.data;return this.options.labels||(this.isHorizontal()?t.xLabels:t.yLabels)||t.labels||[]}getLabelItems(t=this.chart.chartArea){return this._labelItems||(this._labelItems=this._computeLabelItems(t))}beforeLayout(){this._cache={},this._dataLimitsCached=!1}beforeUpdate(){Y(this.options.beforeUpdate,[this])}update(t,n,i){const{beginAtZero:s,grace:o,ticks:r}=this.options,a=r.sampleSize;this.beforeUpdate(),this.maxWidth=t,this.maxHeight=n,this._margins=i=Object.assign({left:0,right:0,top:0,bottom:0},i),this.ticks=null,this._labelSizes=null,this._gridLineItems=null,this._labelItems=null,this.beforeSetDimensions(),this.setDimensions(),this.afterSetDimensions(),this._maxLength=this.isHorizontal()?this.width+i.left+i.right:this.height+i.top+i.bottom,this._dataLimitsCached||(this.beforeDataLimits(),this.determineDataLimits(),this.afterDataLimits(),this._range=hu(this,o,s),this._dataLimitsCached=!0),this.beforeBuildTicks(),this.ticks=this.buildTicks()||[],this.afterBuildTicks();const l=a<this.ticks.length;this._convertTicksToLabels(l?So(this.ticks,a):this.ticks),this.configure(),this.beforeCalculateLabelRotation(),this.calculateLabelRotation(),this.afterCalculateLabelRotation(),r.display&&(r.autoSkip||r.source==="auto")&&(this.ticks=Wd(this,this.ticks),this._labelSizes=null,this.afterAutoSkip()),l&&this._convertTicksToLabels(this.ticks),this.beforeFit(),this.fit(),this.afterFit(),this.afterUpdate()}configure(){let t=this.options.reverse,n,i;this.isHorizontal()?(n=this.left,i=this.right):(n=this.top,i=this.bottom,t=!t),this._startPixel=n,this._endPixel=i,this._reversePixels=t,this._length=i-n,this._alignToPixels=this.options.alignToPixels}afterUpdate(){Y(this.options.afterUpdate,[this])}beforeSetDimensions(){Y(this.options.beforeSetDimensions,[this])}setDimensions(){this.isHorizontal()?(this.width=this.maxWidth,this.left=0,this.right=this.width):(this.height=this.maxHeight,this.top=0,this.bottom=this.height),this.paddingLeft=0,this.paddingTop=0,this.paddingRight=0,this.paddingBottom=0}afterSetDimensions(){Y(this.options.afterSetDimensions,[this])}_callHooks(t){this.chart.notifyPlugins(t,this.getContext()),Y(this.options[t],[this])}beforeDataLimits(){this._callHooks("beforeDataLimits")}determineDataLimits(){}afterDataLimits(){this._callHooks("afterDataLimits")}beforeBuildTicks(){this._callHooks("beforeBuildTicks")}buildTicks(){return[]}afterBuildTicks(){this._callHooks("afterBuildTicks")}beforeTickToLabelConversion(){Y(this.options.beforeTickToLabelConversion,[this])}generateTickLabels(t){const n=this.options.ticks;let i,s,o;for(i=0,s=t.length;i<s;i++)o=t[i],o.label=Y(n.callback,[o.value,i,t],this)}afterTickToLabelConversion(){Y(this.options.afterTickToLabelConversion,[this])}beforeCalculateLabelRotation(){Y(this.options.beforeCalculateLabelRotation,[this])}calculateLabelRotation(){const t=this.options,n=t.ticks,i=wo(this.ticks.length,t.ticks.maxTicksLimit),s=n.minRotation||0,o=n.maxRotation;let r=s,a,l,c;if(!this._isVisible()||!n.display||s>=o||i<=1||!this.isHorizontal()){this.labelRotation=s;return}const h=this._getLabelSizes(),u=h.widest.width,d=h.highest.height,f=rt(this.chart.width-u,0,this.maxWidth);a=t.offset?this.maxWidth/i:f/(i-1),u+6>a&&(a=f/(i-(t.offset?.5:1)),l=this.maxHeight-$e(t.grid)-n.padding-ko(t.title,this.chart.options.font),c=Math.sqrt(u*u+d*d),r=Ih(Math.min(Math.asin(rt((h.highest.height+6)/a,-1,1)),Math.asin(rt(l/c,-1,1))-Math.asin(rt(d/c,-1,1)))),r=Math.max(s,Math.min(o,r))),this.labelRotation=r}afterCalculateLabelRotation(){Y(this.options.afterCalculateLabelRotation,[this])}afterAutoSkip(){}beforeFit(){Y(this.options.beforeFit,[this])}fit(){const t={width:0,height:0},{chart:n,options:{ticks:i,title:s,grid:o}}=this,r=this._isVisible(),a=this.isHorizontal();if(r){const l=ko(s,n.options.font);if(a?(t.width=this.maxWidth,t.height=$e(o)+l):(t.height=this.maxHeight,t.width=$e(o)+l),i.display&&this.ticks.length){const{first:c,last:h,widest:u,highest:d}=this._getLabelSizes(),f=i.padding*2,g=ae(this.labelRotation),m=Math.cos(g),p=Math.sin(g);if(a){const b=i.mirror?0:p*u.width+m*d.height;t.height=Math.min(this.maxHeight,t.height+b+f)}else{const b=i.mirror?0:m*u.width+p*d.height;t.width=Math.min(this.maxWidth,t.width+b+f)}this._calculatePadding(c,h,p,m)}}this._handleMargins(),a?(this.width=this._length=n.width-this._margins.left-this._margins.right,this.height=t.height):(this.width=t.width,this.height=this._length=n.height-this._margins.top-this._margins.bottom)}_calculatePadding(t,n,i,s){const{ticks:{align:o,padding:r},position:a}=this.options,l=this.labelRotation!==0,c=a!=="top"&&this.axis==="x";if(this.isHorizontal()){const h=this.getPixelForTick(0)-this.left,u=this.right-this.getPixelForTick(this.ticks.length-1);let d=0,f=0;l?c?(d=s*t.width,f=i*n.height):(d=i*t.height,f=s*n.width):o==="start"?f=n.width:o==="end"?d=t.width:o!=="inner"&&(d=t.width/2,f=n.width/2),this.paddingLeft=Math.max((d-h+r)*this.width/(this.width-h),0),this.paddingRight=Math.max((f-u+r)*this.width/(this.width-u),0)}else{let h=n.height/2,u=t.height/2;o==="start"?(h=0,u=t.height):o==="end"&&(h=n.height,u=0),this.paddingTop=h+r,this.paddingBottom=u+r}}_handleMargins(){this._margins&&(this._margins.left=Math.max(this.paddingLeft,this._margins.left),this._margins.top=Math.max(this.paddingTop,this._margins.top),this._margins.right=Math.max(this.paddingRight,this._margins.right),this._margins.bottom=Math.max(this.paddingBottom,this._margins.bottom))}afterFit(){Y(this.options.afterFit,[this])}isHorizontal(){const{axis:t,position:n}=this.options;return n==="top"||n==="bottom"||t==="x"}isFullSize(){return this.options.fullSize}_convertTicksToLabels(t){this.beforeTickToLabelConversion(),this.generateTickLabels(t);let n,i;for(n=0,i=t.length;n<i;n++)B(t[n].label)&&(t.splice(n,1),i--,n--);this.afterTickToLabelConversion()}_getLabelSizes(){let t=this._labelSizes;if(!t){const n=this.options.ticks.sampleSize;let i=this.ticks;n<i.length&&(i=So(i,n)),this._labelSizes=t=this._computeLabelSizes(i,i.length,this.options.ticks.maxTicksLimit)}return t}_computeLabelSizes(t,n,i){const{ctx:s,_longestTextCache:o}=this,r=[],a=[],l=Math.floor(n/wo(n,i));let c=0,h=0,u,d,f,g,m,p,b,x,v,_,y;for(u=0;u<n;u+=l){if(g=t[u].label,m=this._resolveTickFontOptions(u),s.font=p=m.string,b=o[p]=o[p]||{data:{},gc:[]},x=m.lineHeight,v=_=0,!B(g)&&!J(g))v=Gs(s,b.data,b.gc,v,g),_=x;else if(J(g))for(d=0,f=g.length;d<f;++d)y=g[d],!B(y)&&!J(y)&&(v=Gs(s,b.data,b.gc,v,y),_+=x);r.push(v),a.push(_),c=Math.max(v,c),h=Math.max(_,h)}Jd(o,n);const w=r.indexOf(c),k=a.indexOf(h),S=C=>({width:r[C]||0,height:a[C]||0});return{first:S(0),last:S(n-1),widest:S(w),highest:S(k),widths:r,heights:a}}getLabelForValue(t){return t}getPixelForValue(t,n){return NaN}getValueForPixel(t){}getPixelForTick(t){const n=this.ticks;return t<0||t>n.length-1?null:this.getPixelForValue(n[t].value)}getPixelForDecimal(t){this._reversePixels&&(t=1-t);const n=this._startPixel+t*this._length;return $h(this._alignToPixels?ee(this.chart,n,0):n)}getDecimalForPixel(t){const n=(t-this._startPixel)/this._length;return this._reversePixels?1-n:n}getBasePixel(){return this.getPixelForValue(this.getBaseValue())}getBaseValue(){const{min:t,max:n}=this;return t<0&&n<0?n:t>0&&n>0?t:0}getContext(t){const n=this.ticks||[];if(t>=0&&t<n.length){const i=n[t];return i.$context||(i.$context=Qd(this.getContext(),t,i))}return this.$context||(this.$context=Zd(this.chart.getContext(),this))}_tickSize(){const t=this.options.ticks,n=ae(this.labelRotation),i=Math.abs(Math.cos(n)),s=Math.abs(Math.sin(n)),o=this._getLabelSizes(),r=t.autoSkipPadding||0,a=o?o.widest.width+r:0,l=o?o.highest.height+r:0;return this.isHorizontal()?l*i>a*s?a/i:l/s:l*s<a*i?l/i:a/s}_isVisible(){const t=this.options.display;return t!=="auto"?!!t:this.getMatchingVisibleMetas().length>0}_computeGridLineItems(t){const n=this.axis,i=this.chart,s=this.options,{grid:o,position:r,border:a}=s,l=o.offset,c=this.isHorizontal(),u=this.ticks.length+(l?1:0),d=$e(o),f=[],g=a.setContext(this.getContext()),m=g.display?g.width:0,p=m/2,b=function(L){return ee(i,L,m)};let x,v,_,y,w,k,S,C,D,P,O,A;if(r==="top")x=b(this.bottom),k=this.bottom-d,C=x-p,P=b(t.top)+p,A=t.bottom;else if(r==="bottom")x=b(this.top),P=t.top,A=b(t.bottom)-p,k=x+p,C=this.top+d;else if(r==="left")x=b(this.right),w=this.right-d,S=x-p,D=b(t.left)+p,O=t.right;else if(r==="right")x=b(this.left),D=t.left,O=b(t.right)-p,w=x+p,S=this.left+d;else if(n==="x"){if(r==="center")x=b((t.top+t.bottom)/2+.5);else if(z(r)){const L=Object.keys(r)[0],F=r[L];x=b(this.chart.scales[L].getPixelForValue(F))}P=t.top,A=t.bottom,k=x+p,C=k+d}else if(n==="y"){if(r==="center")x=b((t.left+t.right)/2);else if(z(r)){const L=Object.keys(r)[0],F=r[L];x=b(this.chart.scales[L].getPixelForValue(F))}w=x-p,S=w-d,D=t.left,O=t.right}const I=j(s.ticks.maxTicksLimit,u),T=Math.max(1,Math.ceil(u/I));for(v=0;v<u;v+=T){const L=this.getContext(v),F=o.setContext(L),H=a.setContext(L),$=F.lineWidth,N=F.color,tt=H.dash||[],Q=H.dashOffset,nt=F.tickWidth,U=F.tickColor,X=F.tickBorderDash||[],K=F.tickBorderDashOffset;_=Gd(this,v,l),_!==void 0&&(y=ee(i,_,$),c?w=S=D=O=y:k=C=P=A=y,f.push({tx1:w,ty1:k,tx2:S,ty2:C,x1:D,y1:P,x2:O,y2:A,width:$,color:N,borderDash:tt,borderDashOffset:Q,tickWidth:nt,tickColor:U,tickBorderDash:X,tickBorderDashOffset:K}))}return this._ticksLength=u,this._borderValue=x,f}_computeLabelItems(t){const n=this.axis,i=this.options,{position:s,ticks:o}=i,r=this.isHorizontal(),a=this.ticks,{align:l,crossAlign:c,padding:h,mirror:u}=o,d=$e(i.grid),f=d+h,g=u?-h:f,m=-ae(this.labelRotation),p=[];let b,x,v,_,y,w,k,S,C,D,P,O,A="middle";if(s==="top")w=this.bottom-g,k=this._getXAxisLabelAlignment();else if(s==="bottom")w=this.top+g,k=this._getXAxisLabelAlignment();else if(s==="left"){const T=this._getYAxisLabelAlignment(d);k=T.textAlign,y=T.x}else if(s==="right"){const T=this._getYAxisLabelAlignment(d);k=T.textAlign,y=T.x}else if(n==="x"){if(s==="center")w=(t.top+t.bottom)/2+f;else if(z(s)){const T=Object.keys(s)[0],L=s[T];w=this.chart.scales[T].getPixelForValue(L)+f}k=this._getXAxisLabelAlignment()}else if(n==="y"){if(s==="center")y=(t.left+t.right)/2-f;else if(z(s)){const T=Object.keys(s)[0],L=s[T];y=this.chart.scales[T].getPixelForValue(L)}k=this._getYAxisLabelAlignment(d).textAlign}n==="y"&&(l==="start"?A="top":l==="end"&&(A="bottom"));const I=this._getLabelSizes();for(b=0,x=a.length;b<x;++b){v=a[b],_=v.label;const T=o.setContext(this.getContext(b));S=this.getPixelForTick(b)+o.labelOffset,C=this._resolveTickFontOptions(b),D=C.lineHeight,P=J(_)?_.length:1;const L=P/2,F=T.color,H=T.textStrokeColor,$=T.textStrokeWidth;let N=k;r?(y=S,k==="inner"&&(b===x-1?N=this.options.reverse?"left":"right":b===0?N=this.options.reverse?"right":"left":N="center"),s==="top"?c==="near"||m!==0?O=-P*D+D/2:c==="center"?O=-I.highest.height/2-L*D+D:O=-I.highest.height+D/2:c==="near"||m!==0?O=D/2:c==="center"?O=I.highest.height/2-L*D:O=I.highest.height-P*D,u&&(O*=-1),m!==0&&!T.showLabelBackdrop&&(y+=D/2*Math.sin(m))):(w=S,O=(1-P)*D/2);let tt;if(T.showLabelBackdrop){const Q=_t(T.backdropPadding),nt=I.heights[b],U=I.widths[b];let X=O-Q.top,K=0-Q.left;switch(A){case"middle":X-=nt/2;break;case"bottom":X-=nt;break}switch(k){case"center":K-=U/2;break;case"right":K-=U;break;case"inner":b===x-1?K-=U:b>0&&(K-=U/2);break}tt={left:K,top:X,width:U+Q.width,height:nt+Q.height,color:T.backdropColor}}p.push({label:_,font:C,textOffset:O,options:{rotation:m,color:F,strokeColor:H,strokeWidth:$,textAlign:N,textBaseline:A,translation:[y,w],backdrop:tt}})}return p}_getXAxisLabelAlignment(){const{position:t,ticks:n}=this.options;if(-ae(this.labelRotation))return t==="top"?"left":"right";let s="center";return n.align==="start"?s="left":n.align==="end"?s="right":n.align==="inner"&&(s="inner"),s}_getYAxisLabelAlignment(t){const{position:n,ticks:{crossAlign:i,mirror:s,padding:o}}=this.options,r=this._getLabelSizes(),a=t+o,l=r.widest.width;let c,h;return n==="left"?s?(h=this.right+o,i==="near"?c="left":i==="center"?(c="center",h+=l/2):(c="right",h+=l)):(h=this.right-a,i==="near"?c="right":i==="center"?(c="center",h-=l/2):(c="left",h=this.left)):n==="right"?s?(h=this.left+o,i==="near"?c="right":i==="center"?(c="center",h-=l/2):(c="left",h-=l)):(h=this.left+a,i==="near"?c="left":i==="center"?(c="center",h+=l/2):(c="right",h=this.right)):c="right",{textAlign:c,x:h}}_computeLabelArea(){if(this.options.ticks.mirror)return;const t=this.chart,n=this.options.position;if(n==="left"||n==="right")return{top:0,left:this.left,bottom:t.height,right:this.right};if(n==="top"||n==="bottom")return{top:this.top,left:0,bottom:this.bottom,right:t.width}}drawBackground(){const{ctx:t,options:{backgroundColor:n},left:i,top:s,width:o,height:r}=this;n&&(t.save(),t.fillStyle=n,t.fillRect(i,s,o,r),t.restore())}getLineWidthForValue(t){const n=this.options.grid;if(!this._isVisible()||!n.display)return 0;const s=this.ticks.findIndex(o=>o.value===t);return s>=0?n.setContext(this.getContext(s)).lineWidth:0}drawGrid(t){const n=this.options.grid,i=this.ctx,s=this._gridLineItems||(this._gridLineItems=this._computeGridLineItems(t));let o,r;const a=(l,c,h)=>{!h.width||!h.color||(i.save(),i.lineWidth=h.width,i.strokeStyle=h.color,i.setLineDash(h.borderDash||[]),i.lineDashOffset=h.borderDashOffset,i.beginPath(),i.moveTo(l.x,l.y),i.lineTo(c.x,c.y),i.stroke(),i.restore())};if(n.display)for(o=0,r=s.length;o<r;++o){const l=s[o];n.drawOnChartArea&&a({x:l.x1,y:l.y1},{x:l.x2,y:l.y2},l),n.drawTicks&&a({x:l.tx1,y:l.ty1},{x:l.tx2,y:l.ty2},{color:l.tickColor,width:l.tickWidth,borderDash:l.tickBorderDash,borderDashOffset:l.tickBorderDashOffset})}}drawBorder(){const{chart:t,ctx:n,options:{border:i,grid:s}}=this,o=i.setContext(this.getContext()),r=i.display?o.width:0;if(!r)return;const a=s.setContext(this.getContext(0)).lineWidth,l=this._borderValue;let c,h,u,d;this.isHorizontal()?(c=ee(t,this.left,r)-r/2,h=ee(t,this.right,a)+a/2,u=d=l):(u=ee(t,this.top,r)-r/2,d=ee(t,this.bottom,a)+a/2,c=h=l),n.save(),n.lineWidth=o.width,n.strokeStyle=o.color,n.beginPath(),n.moveTo(c,u),n.lineTo(h,d),n.stroke(),n.restore()}drawLabels(t){if(!this.options.ticks.display)return;const i=this.ctx,s=this._computeLabelArea();s&&Ji(i,s);const o=this.getLabelItems(t);for(const r of o){const a=r.options,l=r.font,c=r.label,h=r.textOffset;sn(i,c,0,h,l,a)}s&&Zi(i)}drawTitle(){const{ctx:t,options:{position:n,title:i,reverse:s}}=this;if(!i.display)return;const o=at(i.font),r=_t(i.padding),a=i.align;let l=o.lineHeight/2;n==="bottom"||n==="center"||z(n)?(l+=r.bottom,J(i.text)&&(l+=o.lineHeight*(i.text.length-1))):l+=r.top;const{titleX:c,titleY:h,maxWidth:u,rotation:d}=ef(this,l,n,a);sn(t,i.text,0,0,o,{color:i.color,maxWidth:u,rotation:d,textAlign:tf(a,n,s),textBaseline:"middle",translation:[c,h]})}draw(t){this._isVisible()&&(this.drawBackground(),this.drawGrid(t),this.drawBorder(),this.drawTitle(),this.drawLabels(t))}_layers(){const t=this.options,n=t.ticks&&t.ticks.z||0,i=j(t.grid&&t.grid.z,-1),s=j(t.border&&t.border.z,0);return!this._isVisible()||this.draw!==Ae.prototype.draw?[{z:n,draw:o=>{this.draw(o)}}]:[{z:i,draw:o=>{this.drawBackground(),this.drawGrid(o),this.drawTitle()}},{z:s,draw:()=>{this.drawBorder()}},{z:n,draw:o=>{this.drawLabels(o)}}]}getMatchingVisibleMetas(t){const n=this.chart.getSortedVisibleDatasetMetas(),i=this.axis+"AxisID",s=[];let o,r;for(o=0,r=n.length;o<r;++o){const a=n[o];a[i]===this.id&&(!t||a.type===t)&&s.push(a)}return s}_resolveTickFontOptions(t){const n=this.options.ticks.setContext(this.getContext(t));return at(n.font)}_maxDigits(){const t=this._resolveTickFontOptions(0).lineHeight;return(this.isHorizontal()?this.width:this.height)/t}}class kn{constructor(t,n,i){this.type=t,this.scope=n,this.override=i,this.items=Object.create(null)}isForType(t){return Object.prototype.isPrototypeOf.call(this.type.prototype,t.prototype)}register(t){const n=Object.getPrototypeOf(t);let i;of(n)&&(i=this.register(n));const s=this.items,o=t.id,r=this.scope+"."+o;if(!o)throw new Error("class does not have id: "+t);return o in s||(s[o]=t,nf(t,r,i),this.override&&q.override(t.id,t.overrides)),r}get(t){return this.items[t]}unregister(t){const n=this.items,i=t.id,s=this.scope;i in n&&delete n[i],s&&i in q[s]&&(delete q[s][i],this.override&&delete fe[i])}}function nf(e,t,n){const i=Qe(Object.create(null),[n?q.get(n):{},q.get(t),e.defaults]);q.set(t,i),e.defaultRoutes&&sf(t,e.defaultRoutes),e.descriptors&&q.describe(t,e.descriptors)}function sf(e,t){Object.keys(t).forEach(n=>{const i=n.split("."),s=i.pop(),o=[e].concat(i).join("."),r=t[n].split("."),a=r.pop(),l=r.join(".");q.route(o,s,l,a)})}function of(e){return"id"in e&&"defaults"in e}class rf{constructor(){this.controllers=new kn(Se,"datasets",!0),this.elements=new kn(jt,"elements"),this.plugins=new kn(Object,"plugins"),this.scales=new kn(Ae,"scales"),this._typedRegistries=[this.controllers,this.scales,this.elements]}add(...t){this._each("register",t)}remove(...t){this._each("unregister",t)}addControllers(...t){this._each("register",t,this.controllers)}addElements(...t){this._each("register",t,this.elements)}addPlugins(...t){this._each("register",t,this.plugins)}addScales(...t){this._each("register",t,this.scales)}getController(t){return this._get(t,this.controllers,"controller")}getElement(t){return this._get(t,this.elements,"element")}getPlugin(t){return this._get(t,this.plugins,"plugin")}getScale(t){return this._get(t,this.scales,"scale")}removeControllers(...t){this._each("unregister",t,this.controllers)}removeElements(...t){this._each("unregister",t,this.elements)}removePlugins(...t){this._each("unregister",t,this.plugins)}removeScales(...t){this._each("unregister",t,this.scales)}_each(t,n,i){[...n].forEach(s=>{const o=i||this._getRegistryForType(s);i||o.isForType(s)||o===this.plugins&&s.id?this._exec(t,o,s):V(s,r=>{const a=i||this._getRegistryForType(r);this._exec(t,a,r)})})}_exec(t,n,i){const s=Ui(t);Y(i["before"+s],[],i),n[t](i),Y(i["after"+s],[],i)}_getRegistryForType(t){for(let n=0;n<this._typedRegistries.length;n++){const i=this._typedRegistries[n];if(i.isForType(t))return i}return this.plugins}_get(t,n,i){const s=n.get(t);if(s===void 0)throw new Error('"'+t+'" is not a registered '+i+".");return s}}var Mt=new rf;class af{constructor(){this._init=[]}notify(t,n,i,s){n==="beforeInit"&&(this._init=this._createDescriptors(t,!0),this._notify(this._init,t,"install"));const o=s?this._descriptors(t).filter(s):this._descriptors(t),r=this._notify(o,t,n,i);return n==="afterDestroy"&&(this._notify(o,t,"stop"),this._notify(this._init,t,"uninstall")),r}_notify(t,n,i,s){s=s||{};for(const o of t){const r=o.plugin,a=r[i],l=[n,s,o.options];if(Y(a,l,r)===!1&&s.cancelable)return!1}return!0}invalidate(){B(this._cache)||(this._oldCache=this._cache,this._cache=void 0)}_descriptors(t){if(this._cache)return this._cache;const n=this._cache=this._createDescriptors(t);return this._notifyStateChanges(t),n}_createDescriptors(t,n){const i=t&&t.config,s=j(i.options&&i.options.plugins,{}),o=lf(i);return s===!1&&!n?[]:hf(t,o,s,n)}_notifyStateChanges(t){const n=this._oldCache||[],i=this._cache,s=(o,r)=>o.filter(a=>!r.some(l=>a.plugin.id===l.plugin.id));this._notify(s(n,i),t,"stop"),this._notify(s(i,n),t,"start")}}function lf(e){const t={},n=[],i=Object.keys(Mt.plugins.items);for(let o=0;o<i.length;o++)n.push(Mt.getPlugin(i[o]));const s=e.plugins||[];for(let o=0;o<s.length;o++){const r=s[o];n.indexOf(r)===-1&&(n.push(r),t[r.id]=!0)}return{plugins:n,localIds:t}}function cf(e,t){return!t&&e===!1?null:e===!0?{}:e}function hf(e,{plugins:t,localIds:n},i,s){const o=[],r=e.getContext();for(const a of t){const l=a.id,c=cf(i[l],s);c!==null&&o.push({plugin:a,options:uf(e.config,{plugin:a,local:n[l]},c,r)})}return o}function uf(e,{plugin:t,local:n},i,s){const o=e.pluginScopeKeys(t),r=e.getOptionScopes(i,o);return n&&t.defaults&&r.push(t.defaults),e.createResolver(r,s,[""],{scriptable:!1,indexable:!1,allKeys:!0})}function Oi(e,t){const n=q.datasets[e]||{};return((t.datasets||{})[e]||{}).indexAxis||t.indexAxis||n.indexAxis||"x"}function df(e,t){let n=e;return e==="_index_"?n=t:e==="_value_"&&(n=t==="x"?"y":"x"),n}function ff(e,t){return e===t?"_index_":"_value_"}function Mo(e){if(e==="x"||e==="y"||e==="r")return e}function pf(e){if(e==="top"||e==="bottom")return"x";if(e==="left"||e==="right")return"y"}function Di(e,...t){if(Mo(e))return e;for(const n of t){const i=n.axis||pf(n.position)||e.length>1&&Mo(e[0].toLowerCase());if(i)return i}throw new Error(`Cannot determine type of '${e}' axis. Please provide 'axis' or 'position' option.`)}function Co(e,t,n){if(n[t+"AxisID"]===e)return{axis:t}}function gf(e,t){if(t.data&&t.data.datasets){const n=t.data.datasets.filter(i=>i.xAxisID===e||i.yAxisID===e);if(n.length)return Co(e,"x",n[0])||Co(e,"y",n[0])}return{}}function mf(e,t){const n=fe[e.type]||{scales:{}},i=t.scales||{},s=Oi(e.type,t),o=Object.create(null);return Object.keys(i).forEach(r=>{const a=i[r];if(!z(a))return console.error(`Invalid scale configuration for scale: ${r}`);if(a._proxy)return console.warn(`Ignoring resolver passed as options for scale: ${r}`);const l=Di(r,a,gf(r,e),q.scales[a.type]),c=ff(l,s),h=n.scales||{};o[r]=Ue(Object.create(null),[{axis:l},a,h[l],h[c]])}),e.data.datasets.forEach(r=>{const a=r.type||e.type,l=r.indexAxis||Oi(a,t),h=(fe[a]||{}).scales||{};Object.keys(h).forEach(u=>{const d=df(u,l),f=r[d+"AxisID"]||d;o[f]=o[f]||Object.create(null),Ue(o[f],[{axis:d},i[f],h[u]])})}),Object.keys(o).forEach(r=>{const a=o[r];Ue(a,[q.scales[a.type],q.scale])}),o}function ya(e){const t=e.options||(e.options={});t.plugins=j(t.plugins,{}),t.scales=mf(e,t)}function va(e){return e=e||{},e.datasets=e.datasets||[],e.labels=e.labels||[],e}function bf(e){return e=e||{},e.data=va(e.data),ya(e),e}const Po=new Map,_a=new Set;function Mn(e,t){let n=Po.get(e);return n||(n=t(),Po.set(e,n),_a.add(n)),n}const ze=(e,t,n)=>{const i=Oe(t,n);i!==void 0&&e.add(i)};class xf{constructor(t){this._config=bf(t),this._scopeCache=new Map,this._resolverCache=new Map}get platform(){return this._config.platform}get type(){return this._config.type}set type(t){this._config.type=t}get data(){return this._config.data}set data(t){this._config.data=va(t)}get options(){return this._config.options}set options(t){this._config.options=t}get plugins(){return this._config.plugins}update(){const t=this._config;this.clearCache(),ya(t)}clearCache(){this._scopeCache.clear(),this._resolverCache.clear()}datasetScopeKeys(t){return Mn(t,()=>[[`datasets.${t}`,""]])}datasetAnimationScopeKeys(t,n){return Mn(`${t}.transition.${n}`,()=>[[`datasets.${t}.transitions.${n}`,`transitions.${n}`],[`datasets.${t}`,""]])}datasetElementScopeKeys(t,n){return Mn(`${t}-${n}`,()=>[[`datasets.${t}.elements.${n}`,`datasets.${t}`,`elements.${n}`,""]])}pluginScopeKeys(t){const n=t.id,i=this.type;return Mn(`${i}-plugin-${n}`,()=>[[`plugins.${n}`,...t.additionalOptionScopes||[]]])}_cachedScopes(t,n){const i=this._scopeCache;let s=i.get(t);return(!s||n)&&(s=new Map,i.set(t,s)),s}getOptionScopes(t,n,i){const{options:s,type:o}=this,r=this._cachedScopes(t,i),a=r.get(n);if(a)return a;const l=new Set;n.forEach(h=>{t&&(l.add(t),h.forEach(u=>ze(l,t,u))),h.forEach(u=>ze(l,s,u)),h.forEach(u=>ze(l,fe[o]||{},u)),h.forEach(u=>ze(l,q,u)),h.forEach(u=>ze(l,Ci,u))});const c=Array.from(l);return c.length===0&&c.push(Object.create(null)),_a.has(n)&&r.set(n,c),c}chartOptionScopes(){const{options:t,type:n}=this;return[t,fe[n]||{},q.datasets[n]||{},{type:n},q,Ci]}resolveNamedOptions(t,n,i,s=[""]){const o={$shared:!0},{resolver:r,subPrefixes:a}=Oo(this._resolverCache,t,s);let l=r;if(vf(r,n)){o.$shared=!1,i=Xt(i)?i():i;const c=this.createResolver(t,i,a);l=De(r,i,c)}for(const c of n)o[c]=l[c];return o}createResolver(t,n,i=[""],s){const{resolver:o}=Oo(this._resolverCache,t,i);return z(n)?De(o,n,void 0,s):o}}function Oo(e,t,n){let i=e.get(t);i||(i=new Map,e.set(t,i));const s=n.join();let o=i.get(s);return o||(o={resolver:ts(t,n),subPrefixes:n.filter(a=>!a.toLowerCase().includes("hover"))},i.set(s,o)),o}const yf=e=>z(e)&&Object.getOwnPropertyNames(e).some(t=>Xt(e[t]));function vf(e,t){const{isScriptable:n,isIndexable:i}=ia(e);for(const s of t){const o=n(s),r=i(s),a=(r||o)&&e[s];if(o&&(Xt(a)||yf(a))||r&&J(a))return!0}return!1}var _f="4.4.8";const wf=["top","bottom","left","right","chartArea"];function Do(e,t){return e==="top"||e==="bottom"||wf.indexOf(e)===-1&&t==="x"}function Eo(e,t){return function(n,i){return n[e]===i[e]?n[t]-i[t]:n[e]-i[e]}}function Ao(e){const t=e.chart,n=t.options.animation;t.notifyPlugins("afterRender"),Y(n&&n.onComplete,[e],t)}function Sf(e){const t=e.chart,n=t.options.animation;Y(n&&n.onProgress,[e],t)}function wa(e){return is()&&typeof e=="string"?e=document.getElementById(e):e&&e.length&&(e=e[0]),e&&e.canvas&&(e=e.canvas),e}const Ln={},To=e=>{const t=wa(e);return Object.values(Ln).filter(n=>n.canvas===t).pop()};function kf(e,t,n){const i=Object.keys(e);for(const s of i){const o=+s;if(o>=t){const r=e[s];delete e[s],(n>0||o>t)&&(e[o+n]=r)}}}function Mf(e,t,n,i){return!n||e.type==="mouseout"?null:i?t:e}function Cn(e,t,n){return e.options.clip?e[n]:t[n]}function Cf(e,t){const{xScale:n,yScale:i}=e;return n&&i?{left:Cn(n,t,"left"),right:Cn(n,t,"right"),top:Cn(i,t,"top"),bottom:Cn(i,t,"bottom")}:t}class Ct{static register(...t){Mt.add(...t),Ro()}static unregister(...t){Mt.remove(...t),Ro()}constructor(t,n){const i=this.config=new xf(n),s=wa(t),o=To(s);if(o)throw new Error("Canvas is already in use. Chart with ID '"+o.id+"' must be destroyed before the canvas with ID '"+o.canvas.id+"' can be reused.");const r=i.createResolver(i.chartOptionScopes(),this.getContext());this.platform=new(i.platform||Hd(s)),this.platform.updateConfig(i);const a=this.platform.acquireContext(s,r.aspectRatio),l=a&&a.canvas,c=l&&l.height,h=l&&l.width;if(this.id=Sh(),this.ctx=a,this.canvas=l,this.width=h,this.height=c,this._options=r,this._aspectRatio=this.aspectRatio,this._layers=[],this._metasets=[],this._stacks=void 0,this.boxes=[],this.currentDevicePixelRatio=void 0,this.chartArea=void 0,this._active=[],this._lastEvent=void 0,this._listeners={},this._responsiveListeners=void 0,this._sortedMetasets=[],this.scales={},this._plugins=new af,this.$proxies={},this._hiddenIndices={},this.attached=!1,this._animationsDisabled=void 0,this.$context=void 0,this._doResize=Hh(u=>this.update(u),r.resizeDelay||0),this._dataChanges=[],Ln[this.id]=this,!a||!l){console.error("Failed to create chart: can't acquire context from the given item");return}Tt.listen(this,"complete",Ao),Tt.listen(this,"progress",Sf),this._initialize(),this.attached&&this.update()}get aspectRatio(){const{options:{aspectRatio:t,maintainAspectRatio:n},width:i,height:s,_aspectRatio:o}=this;return B(t)?n&&o?o:s?i/s:null:t}get data(){return this.config.data}set data(t){this.config.data=t}get options(){return this._options}set options(t){this.config.options=t}get registry(){return Mt}_initialize(){return this.notifyPlugins("beforeInit"),this.options.responsive?this.resize():to(this,this.options.devicePixelRatio),this.bindEvents(),this.notifyPlugins("afterInit"),this}clear(){return Js(this.canvas,this.ctx),this}stop(){return Tt.stop(this),this}resize(t,n){Tt.running(this)?this._resizeBeforeDraw={width:t,height:n}:this._resize(t,n)}_resize(t,n){const i=this.options,s=this.canvas,o=i.maintainAspectRatio&&this.aspectRatio,r=this.platform.getMaximumSize(s,t,n,o),a=i.devicePixelRatio||this.platform.getDevicePixelRatio(),l=this.width?"resize":"attach";this.width=r.width,this.height=r.height,this._aspectRatio=this.aspectRatio,to(this,a,!0)&&(this.notifyPlugins("resize",{size:r}),Y(i.onResize,[this,r],this),this.attached&&this._doResize(l)&&this.render())}ensureScalesHaveIDs(){const n=this.options.scales||{};V(n,(i,s)=>{i.id=s})}buildOrUpdateScales(){const t=this.options,n=t.scales,i=this.scales,s=Object.keys(i).reduce((r,a)=>(r[a]=!1,r),{});let o=[];n&&(o=o.concat(Object.keys(n).map(r=>{const a=n[r],l=Di(r,a),c=l==="r",h=l==="x";return{options:a,dposition:c?"chartArea":h?"bottom":"left",dtype:c?"radialLinear":h?"category":"linear"}}))),V(o,r=>{const a=r.options,l=a.id,c=Di(l,a),h=j(a.type,r.dtype);(a.position===void 0||Do(a.position,c)!==Do(r.dposition))&&(a.position=r.dposition),s[l]=!0;let u=null;if(l in i&&i[l].type===h)u=i[l];else{const d=Mt.getScale(h);u=new d({id:l,type:h,ctx:this.ctx,chart:this}),i[u.id]=u}u.init(a,t)}),V(s,(r,a)=>{r||delete i[a]}),V(i,r=>{bt.configure(this,r,r.options),bt.addBox(this,r)})}_updateMetasets(){const t=this._metasets,n=this.data.datasets.length,i=t.length;if(t.sort((s,o)=>s.index-o.index),i>n){for(let s=n;s<i;++s)this._destroyDatasetMeta(s);t.splice(n,i-n)}this._sortedMetasets=t.slice(0).sort(Eo("order","index"))}_removeUnreferencedMetasets(){const{_metasets:t,data:{datasets:n}}=this;t.length>n.length&&delete this._stacks,t.forEach((i,s)=>{n.filter(o=>o===i._dataset).length===0&&this._destroyDatasetMeta(s)})}buildOrUpdateControllers(){const t=[],n=this.data.datasets;let i,s;for(this._removeUnreferencedMetasets(),i=0,s=n.length;i<s;i++){const o=n[i];let r=this.getDatasetMeta(i);const a=o.type||this.config.type;if(r.type&&r.type!==a&&(this._destroyDatasetMeta(i),r=this.getDatasetMeta(i)),r.type=a,r.indexAxis=o.indexAxis||Oi(a,this.options),r.order=o.order||0,r.index=i,r.label=""+o.label,r.visible=this.isDatasetVisible(i),r.controller)r.controller.updateIndex(i),r.controller.linkScales();else{const l=Mt.getController(a),{datasetElementType:c,dataElementType:h}=q.datasets[a];Object.assign(l,{dataElementType:Mt.getElement(h),datasetElementType:c&&Mt.getElement(c)}),r.controller=new l(this,i),t.push(r.controller)}}return this._updateMetasets(),t}_resetElements(){V(this.data.datasets,(t,n)=>{this.getDatasetMeta(n).controller.reset()},this)}reset(){this._resetElements(),this.notifyPlugins("reset")}update(t){const n=this.config;n.update();const i=this._options=n.createResolver(n.chartOptionScopes(),this.getContext()),s=this._animationsDisabled=!i.animation;if(this._updateScales(),this._checkEventBindings(),this._updateHiddenIndices(),this._plugins.invalidate(),this.notifyPlugins("beforeUpdate",{mode:t,cancelable:!0})===!1)return;const o=this.buildOrUpdateControllers();this.notifyPlugins("beforeElementsUpdate");let r=0;for(let c=0,h=this.data.datasets.length;c<h;c++){const{controller:u}=this.getDatasetMeta(c),d=!s&&o.indexOf(u)===-1;u.buildOrUpdateElements(d),r=Math.max(+u.getMaxOverflow(),r)}r=this._minPadding=i.layout.autoPadding?r:0,this._updateLayout(r),s||V(o,c=>{c.reset()}),this._updateDatasets(t),this.notifyPlugins("afterUpdate",{mode:t}),this._layers.sort(Eo("z","_idx"));const{_active:a,_lastEvent:l}=this;l?this._eventHandler(l,!0):a.length&&this._updateHoverStyles(a,a,!0),this.render()}_updateScales(){V(this.scales,t=>{bt.removeBox(this,t)}),this.ensureScalesHaveIDs(),this.buildOrUpdateScales()}_checkEventBindings(){const t=this.options,n=new Set(Object.keys(this._listeners)),i=new Set(t.events);(!Bs(n,i)||!!this._responsiveListeners!==t.responsive)&&(this.unbindEvents(),this.bindEvents())}_updateHiddenIndices(){const{_hiddenIndices:t}=this,n=this._getUniformDataChanges()||[];for(const{method:i,start:s,count:o}of n){const r=i==="_removeElements"?-o:o;kf(t,s,r)}}_getUniformDataChanges(){const t=this._dataChanges;if(!t||!t.length)return;this._dataChanges=[];const n=this.data.datasets.length,i=o=>new Set(t.filter(r=>r[0]===o).map((r,a)=>a+","+r.splice(1).join(","))),s=i(0);for(let o=1;o<n;o++)if(!Bs(s,i(o)))return;return Array.from(s).map(o=>o.split(",")).map(o=>({method:o[1],start:+o[2],count:+o[3]}))}_updateLayout(t){if(this.notifyPlugins("beforeLayout",{cancelable:!0})===!1)return;bt.update(this,this.width,this.height,t);const n=this.chartArea,i=n.width<=0||n.height<=0;this._layers=[],V(this.boxes,s=>{i&&s.position==="chartArea"||(s.configure&&s.configure(),this._layers.push(...s._layers()))},this),this._layers.forEach((s,o)=>{s._idx=o}),this.notifyPlugins("afterLayout")}_updateDatasets(t){if(this.notifyPlugins("beforeDatasetsUpdate",{mode:t,cancelable:!0})!==!1){for(let n=0,i=this.data.datasets.length;n<i;++n)this.getDatasetMeta(n).controller.configure();for(let n=0,i=this.data.datasets.length;n<i;++n)this._updateDataset(n,Xt(t)?t({datasetIndex:n}):t);this.notifyPlugins("afterDatasetsUpdate",{mode:t})}}_updateDataset(t,n){const i=this.getDatasetMeta(t),s={meta:i,index:t,mode:n,cancelable:!0};this.notifyPlugins("beforeDatasetUpdate",s)!==!1&&(i.controller._update(n),s.cancelable=!1,this.notifyPlugins("afterDatasetUpdate",s))}render(){this.notifyPlugins("beforeRender",{cancelable:!0})!==!1&&(Tt.has(this)?this.attached&&!Tt.running(this)&&Tt.start(this):(this.draw(),Ao({chart:this})))}draw(){let t;if(this._resizeBeforeDraw){const{width:i,height:s}=this._resizeBeforeDraw;this._resizeBeforeDraw=null,this._resize(i,s)}if(this.clear(),this.width<=0||this.height<=0||this.notifyPlugins("beforeDraw",{cancelable:!0})===!1)return;const n=this._layers;for(t=0;t<n.length&&n[t].z<=0;++t)n[t].draw(this.chartArea);for(this._drawDatasets();t<n.length;++t)n[t].draw(this.chartArea);this.notifyPlugins("afterDraw")}_getSortedDatasetMetas(t){const n=this._sortedMetasets,i=[];let s,o;for(s=0,o=n.length;s<o;++s){const r=n[s];(!t||r.visible)&&i.push(r)}return i}getSortedVisibleDatasetMetas(){return this._getSortedDatasetMetas(!0)}_drawDatasets(){if(this.notifyPlugins("beforeDatasetsDraw",{cancelable:!0})===!1)return;const t=this.getSortedVisibleDatasetMetas();for(let n=t.length-1;n>=0;--n)this._drawDataset(t[n]);this.notifyPlugins("afterDatasetsDraw")}_drawDataset(t){const n=this.ctx,i=t._clip,s=!i.disabled,o=Cf(t,this.chartArea),r={meta:t,index:t.index,cancelable:!0};this.notifyPlugins("beforeDatasetDraw",r)!==!1&&(s&&Ji(n,{left:i.left===!1?0:o.left-i.left,right:i.right===!1?this.width:o.right+i.right,top:i.top===!1?0:o.top-i.top,bottom:i.bottom===!1?this.height:o.bottom+i.bottom}),t.controller.draw(),s&&Zi(n),r.cancelable=!1,this.notifyPlugins("afterDatasetDraw",r))}isPointInArea(t){return nn(t,this.chartArea,this._minPadding)}getElementsAtEventForMode(t,n,i,s){const o=_d.modes[n];return typeof o=="function"?o(this,t,i,s):[]}getDatasetMeta(t){const n=this.data.datasets[t],i=this._metasets;let s=i.filter(o=>o&&o._dataset===n).pop();return s||(s={type:null,data:[],dataset:null,controller:null,hidden:null,xAxisID:null,yAxisID:null,order:n&&n.order||0,index:t,_dataset:n,_parsed:[],_sorted:!1},i.push(s)),s}getContext(){return this.$context||(this.$context=pe(null,{chart:this,type:"chart"}))}getVisibleDatasetCount(){return this.getSortedVisibleDatasetMetas().length}isDatasetVisible(t){const n=this.data.datasets[t];if(!n)return!1;const i=this.getDatasetMeta(t);return typeof i.hidden=="boolean"?!i.hidden:!n.hidden}setDatasetVisibility(t,n){const i=this.getDatasetMeta(t);i.hidden=!n}toggleDataVisibility(t){this._hiddenIndices[t]=!this._hiddenIndices[t]}getDataVisibility(t){return!this._hiddenIndices[t]}_updateVisibility(t,n,i){const s=i?"show":"hide",o=this.getDatasetMeta(t),r=o.controller._resolveAnimations(void 0,s);tn(n)?(o.data[n].hidden=!i,this.update()):(this.setDatasetVisibility(t,i),r.update(o,{visible:i}),this.update(a=>a.datasetIndex===t?s:void 0))}hide(t,n){this._updateVisibility(t,n,!1)}show(t,n){this._updateVisibility(t,n,!0)}_destroyDatasetMeta(t){const n=this._metasets[t];n&&n.controller&&n.controller._destroy(),delete this._metasets[t]}_stop(){let t,n;for(this.stop(),Tt.remove(this),t=0,n=this.data.datasets.length;t<n;++t)this._destroyDatasetMeta(t)}destroy(){this.notifyPlugins("beforeDestroy");const{canvas:t,ctx:n}=this;this._stop(),this.config.clearCache(),t&&(this.unbindEvents(),Js(t,n),this.platform.releaseContext(n),this.canvas=null,this.ctx=null),delete Ln[this.id],this.notifyPlugins("afterDestroy")}toBase64Image(...t){return this.canvas.toDataURL(...t)}bindEvents(){this.bindUserEvents(),this.options.responsive?this.bindResponsiveEvents():this.attached=!0}bindUserEvents(){const t=this._listeners,n=this.platform,i=(o,r)=>{n.addEventListener(this,o,r),t[o]=r},s=(o,r,a)=>{o.offsetX=r,o.offsetY=a,this._eventHandler(o)};V(this.options.events,o=>i(o,s))}bindResponsiveEvents(){this._responsiveListeners||(this._responsiveListeners={});const t=this._responsiveListeners,n=this.platform,i=(l,c)=>{n.addEventListener(this,l,c),t[l]=c},s=(l,c)=>{t[l]&&(n.removeEventListener(this,l,c),delete t[l])},o=(l,c)=>{this.canvas&&this.resize(l,c)};let r;const a=()=>{s("attach",a),this.attached=!0,this.resize(),i("resize",o),i("detach",r)};r=()=>{this.attached=!1,s("resize",o),this._stop(),this._resize(0,0),i("attach",a)},n.isAttached(this.canvas)?a():r()}unbindEvents(){V(this._listeners,(t,n)=>{this.platform.removeEventListener(this,n,t)}),this._listeners={},V(this._responsiveListeners,(t,n)=>{this.platform.removeEventListener(this,n,t)}),this._responsiveListeners=void 0}updateHoverStyle(t,n,i){const s=i?"set":"remove";let o,r,a,l;for(n==="dataset"&&(o=this.getDatasetMeta(t[0].datasetIndex),o.controller["_"+s+"DatasetHoverStyle"]()),a=0,l=t.length;a<l;++a){r=t[a];const c=r&&this.getDatasetMeta(r.datasetIndex).controller;c&&c[s+"HoverStyle"](r.element,r.datasetIndex,r.index)}}getActiveElements(){return this._active||[]}setActiveElements(t){const n=this._active||[],i=t.map(({datasetIndex:o,index:r})=>{const a=this.getDatasetMeta(o);if(!a)throw new Error("No dataset found at index "+o);return{datasetIndex:o,element:a.data[r],index:r}});!In(i,n)&&(this._active=i,this._lastEvent=null,this._updateHoverStyles(i,n))}notifyPlugins(t,n,i){return this._plugins.notify(this,t,n,i)}isPluginEnabled(t){return this._plugins._cache.filter(n=>n.plugin.id===t).length===1}_updateHoverStyles(t,n,i){const s=this.options.hover,o=(l,c)=>l.filter(h=>!c.some(u=>h.datasetIndex===u.datasetIndex&&h.index===u.index)),r=o(n,t),a=i?t:o(t,n);r.length&&this.updateHoverStyle(r,s.mode,!1),a.length&&s.mode&&this.updateHoverStyle(a,s.mode,!0)}_eventHandler(t,n){const i={event:t,replay:n,cancelable:!0,inChartArea:this.isPointInArea(t)},s=r=>(r.options.events||this.options.events).includes(t.native.type);if(this.notifyPlugins("beforeEvent",i,s)===!1)return;const o=this._handleEvent(t,n,i.inChartArea);return i.cancelable=!1,this.notifyPlugins("afterEvent",i,s),(o||i.changed)&&this.render(),this}_handleEvent(t,n,i){const{_active:s=[],options:o}=this,r=n,a=this._getActiveElements(t,s,i,r),l=Dh(t),c=Mf(t,this._lastEvent,i,l);i&&(this._lastEvent=null,Y(o.onHover,[t,a,this],this),l&&Y(o.onClick,[t,a,this],this));const h=!In(a,s);return(h||n)&&(this._active=a,this._updateHoverStyles(a,s,n)),this._lastEvent=c,h}_getActiveElements(t,n,i,s){if(t.type==="mouseout")return[];if(!i)return n;const o=this.options.hover;return this.getElementsAtEventForMode(t,o.mode,o,s)}}R(Ct,"defaults",q),R(Ct,"instances",Ln),R(Ct,"overrides",fe),R(Ct,"registry",Mt),R(Ct,"version",_f),R(Ct,"getChart",To);function Ro(){return V(Ct.instances,e=>e._plugins.invalidate())}function Pf(e,t,n){const{startAngle:i,pixelMargin:s,x:o,y:r,outerRadius:a,innerRadius:l}=t;let c=s/a;e.beginPath(),e.arc(o,r,a,i-c,n+c),l>s?(c=s/l,e.arc(o,r,l,n+c,i-c,!0)):e.arc(o,r,s,n+it,i-it),e.closePath(),e.clip()}function Of(e){return Qi(e,["outerStart","outerEnd","innerStart","innerEnd"])}function Df(e,t,n,i){const s=Of(e.options.borderRadius),o=(n-t)/2,r=Math.min(o,i*t/2),a=l=>{const c=(n-Math.min(o,l))*i/2;return rt(l,0,Math.min(o,c))};return{outerStart:a(s.outerStart),outerEnd:a(s.outerEnd),innerStart:rt(s.innerStart,0,r),innerEnd:rt(s.innerEnd,0,r)}}function be(e,t,n,i){return{x:n+e*Math.cos(t),y:i+e*Math.sin(t)}}function Hn(e,t,n,i,s,o){const{x:r,y:a,startAngle:l,pixelMargin:c,innerRadius:h}=t,u=Math.max(t.outerRadius+i+n-c,0),d=h>0?h+i+n+c:0;let f=0;const g=s-l;if(i){const T=h>0?h-i:0,L=u>0?u-i:0,F=(T+L)/2,H=F!==0?g*F/(F+i):g;f=(g-H)/2}const m=Math.max(.001,g*u-n/Z)/u,p=(g-m)/2,b=l+p+f,x=s-p-f,{outerStart:v,outerEnd:_,innerStart:y,innerEnd:w}=Df(t,d,u,x-b),k=u-v,S=u-_,C=b+v/k,D=x-_/S,P=d+y,O=d+w,A=b+y/P,I=x-w/O;if(e.beginPath(),o){const T=(C+D)/2;if(e.arc(r,a,u,C,T),e.arc(r,a,u,T,D),_>0){const $=be(S,D,r,a);e.arc($.x,$.y,_,D,x+it)}const L=be(O,x,r,a);if(e.lineTo(L.x,L.y),w>0){const $=be(O,I,r,a);e.arc($.x,$.y,w,x+it,I+Math.PI)}const F=(x-w/d+(b+y/d))/2;if(e.arc(r,a,d,x-w/d,F,!0),e.arc(r,a,d,F,b+y/d,!0),y>0){const $=be(P,A,r,a);e.arc($.x,$.y,y,A+Math.PI,b-it)}const H=be(k,b,r,a);if(e.lineTo(H.x,H.y),v>0){const $=be(k,C,r,a);e.arc($.x,$.y,v,b-it,C)}}else{e.moveTo(r,a);const T=Math.cos(C)*u+r,L=Math.sin(C)*u+a;e.lineTo(T,L);const F=Math.cos(D)*u+r,H=Math.sin(D)*u+a;e.lineTo(F,H)}e.closePath()}function Ef(e,t,n,i,s){const{fullCircles:o,startAngle:r,circumference:a}=t;let l=t.endAngle;if(o){Hn(e,t,n,i,l,s);for(let c=0;c<o;++c)e.fill();isNaN(a)||(l=r+(a%st||st))}return Hn(e,t,n,i,l,s),e.fill(),l}function Af(e,t,n,i,s){const{fullCircles:o,startAngle:r,circumference:a,options:l}=t,{borderWidth:c,borderJoinStyle:h,borderDash:u,borderDashOffset:d}=l,f=l.borderAlign==="inner";if(!c)return;e.setLineDash(u||[]),e.lineDashOffset=d,f?(e.lineWidth=c*2,e.lineJoin=h||"round"):(e.lineWidth=c,e.lineJoin=h||"bevel");let g=t.endAngle;if(o){Hn(e,t,n,i,g,s);for(let m=0;m<o;++m)e.stroke();isNaN(a)||(g=r+(a%st||st))}f&&Pf(e,t,g),o||(Hn(e,t,n,i,g,s),e.stroke())}class Pn extends jt{constructor(n){super();R(this,"circumference");R(this,"endAngle");R(this,"fullCircles");R(this,"innerRadius");R(this,"outerRadius");R(this,"pixelMargin");R(this,"startAngle");this.options=void 0,this.circumference=void 0,this.startAngle=void 0,this.endAngle=void 0,this.innerRadius=void 0,this.outerRadius=void 0,this.pixelMargin=0,this.fullCircles=0,n&&Object.assign(this,n)}inRange(n,i,s){const o=this.getProps(["x","y"],s),{angle:r,distance:a}=Xr(o,{x:n,y:i}),{startAngle:l,endAngle:c,innerRadius:h,outerRadius:u,circumference:d}=this.getProps(["startAngle","endAngle","innerRadius","outerRadius","circumference"],s),f=(this.options.spacing+this.options.borderWidth)/2,g=j(d,c-l),m=Xi(r,l,c)&&l!==c,p=g>=st||m,b=Bt(a,h+f,u+f);return p&&b}getCenterPoint(n){const{x:i,y:s,startAngle:o,endAngle:r,innerRadius:a,outerRadius:l}=this.getProps(["x","y","startAngle","endAngle","innerRadius","outerRadius"],n),{offset:c,spacing:h}=this.options,u=(o+r)/2,d=(a+l+h+c)/2;return{x:i+Math.cos(u)*d,y:s+Math.sin(u)*d}}tooltipPosition(n){return this.getCenterPoint(n)}draw(n){const{options:i,circumference:s}=this,o=(i.offset||0)/4,r=(i.spacing||0)/2,a=i.circular;if(this.pixelMargin=i.borderAlign==="inner"?.33:0,this.fullCircles=s>st?Math.floor(s/st):0,s===0||this.innerRadius<0||this.outerRadius<0)return;n.save();const l=(this.startAngle+this.endAngle)/2;n.translate(Math.cos(l)*o,Math.sin(l)*o);const c=1-Math.sin(Math.min(Z,s||0)),h=o*c;n.fillStyle=i.backgroundColor,n.strokeStyle=i.borderColor,Ef(n,this,h,r,a),Af(n,this,h,r,a),n.restore()}}R(Pn,"id","arc"),R(Pn,"defaults",{borderAlign:"center",borderColor:"#fff",borderDash:[],borderDashOffset:0,borderJoinStyle:void 0,borderRadius:0,borderWidth:2,offset:0,spacing:0,angle:void 0,circular:!0}),R(Pn,"defaultRoutes",{backgroundColor:"backgroundColor"}),R(Pn,"descriptors",{_scriptable:!0,_indexable:n=>n!=="borderDash"});function Sa(e,t,n=t){e.lineCap=j(n.borderCapStyle,t.borderCapStyle),e.setLineDash(j(n.borderDash,t.borderDash)),e.lineDashOffset=j(n.borderDashOffset,t.borderDashOffset),e.lineJoin=j(n.borderJoinStyle,t.borderJoinStyle),e.lineWidth=j(n.borderWidth,t.borderWidth),e.strokeStyle=j(n.borderColor,t.borderColor)}function Tf(e,t,n){e.lineTo(n.x,n.y)}function Rf(e){return e.stepped?eu:e.tension||e.cubicInterpolationMode==="monotone"?nu:Tf}function ka(e,t,n={}){const i=e.length,{start:s=0,end:o=i-1}=n,{start:r,end:a}=t,l=Math.max(s,r),c=Math.min(o,a),h=s<r&&o<r||s>a&&o>a;return{count:i,start:l,loop:t.loop,ilen:c<l&&!h?i+c-l:c-l}}function Lf(e,t,n,i){const{points:s,options:o}=t,{count:r,start:a,loop:l,ilen:c}=ka(s,n,i),h=Rf(o);let{move:u=!0,reverse:d}=i||{},f,g,m;for(f=0;f<=c;++f)g=s[(a+(d?c-f:f))%r],!g.skip&&(u?(e.moveTo(g.x,g.y),u=!1):h(e,m,g,d,o.stepped),m=g);return l&&(g=s[(a+(d?c:0))%r],h(e,m,g,d,o.stepped)),!!l}function Ff(e,t,n,i){const s=t.points,{count:o,start:r,ilen:a}=ka(s,n,i),{move:l=!0,reverse:c}=i||{};let h=0,u=0,d,f,g,m,p,b;const x=_=>(r+(c?a-_:_))%o,v=()=>{m!==p&&(e.lineTo(h,p),e.lineTo(h,m),e.lineTo(h,b))};for(l&&(f=s[x(0)],e.moveTo(f.x,f.y)),d=0;d<=a;++d){if(f=s[x(d)],f.skip)continue;const _=f.x,y=f.y,w=_|0;w===g?(y<m?m=y:y>p&&(p=y),h=(u*h+_)/++u):(v(),e.lineTo(_,y),g=w,u=0,m=p=y),b=y}v()}function Ei(e){const t=e.options,n=t.borderDash&&t.borderDash.length;return!e._decimated&&!e._loop&&!t.tension&&t.cubicInterpolationMode!=="monotone"&&!t.stepped&&!n?Ff:Lf}function If(e){return e.stepped?Lu:e.tension||e.cubicInterpolationMode==="monotone"?Fu:re}function jf(e,t,n,i){let s=t._path;s||(s=t._path=new Path2D,t.path(s,n,i)&&s.closePath()),Sa(e,t.options),e.stroke(s)}function $f(e,t,n,i){const{segments:s,options:o}=t,r=Ei(t);for(const a of s)Sa(e,o,a.style),e.beginPath(),r(e,t,a,{start:n,end:n+i-1})&&e.closePath(),e.stroke()}const zf=typeof Path2D=="function";function Nf(e,t,n,i){zf&&!t.options.segment?jf(e,t,n,i):$f(e,t,n,i)}class On extends jt{constructor(t){super(),this.animated=!0,this.options=void 0,this._chart=void 0,this._loop=void 0,this._fullLoop=void 0,this._path=void 0,this._points=void 0,this._segments=void 0,this._decimated=!1,this._pointsUpdated=!1,this._datasetIndex=void 0,t&&Object.assign(this,t)}updateControlPoints(t,n){const i=this.options;if((i.tension||i.cubicInterpolationMode==="monotone")&&!i.stepped&&!this._pointsUpdated){const s=i.spanGaps?this._loop:this._fullLoop;Cu(this._points,i,t,s,n),this._pointsUpdated=!0}}set points(t){this._points=t,delete this._segments,delete this._path,this._pointsUpdated=!1}get points(){return this._points}get segments(){return this._segments||(this._segments=Wu(this,this.options.segment))}first(){const t=this.segments,n=this.points;return t.length&&n[t[0].start]}last(){const t=this.segments,n=this.points,i=t.length;return i&&n[t[i-1].end]}interpolate(t,n){const i=this.options,s=t[n],o=this.points,r=Nu(this,{property:n,start:s,end:s});if(!r.length)return;const a=[],l=If(i);let c,h;for(c=0,h=r.length;c<h;++c){const{start:u,end:d}=r[c],f=o[u],g=o[d];if(f===g){a.push(f);continue}const m=Math.abs((s-f[n])/(g[n]-f[n])),p=l(f,g,m,i.stepped);p[n]=t[n],a.push(p)}return a.length===1?a[0]:a}pathSegment(t,n,i){return Ei(this)(t,this,n,i)}path(t,n,i){const s=this.segments,o=Ei(this);let r=this._loop;n=n||0,i=i||this.points.length-n;for(const a of s)r&=o(t,this,a,{start:n,end:n+i-1});return!!r}draw(t,n,i,s){const o=this.options||{};(this.points||[]).length&&o.borderWidth&&(t.save(),Nf(t,this,i,s),t.restore()),this.animated&&(this._pointsUpdated=!1,this._path=void 0)}}R(On,"id","line"),R(On,"defaults",{borderCapStyle:"butt",borderDash:[],borderDashOffset:0,borderJoinStyle:"miter",borderWidth:3,capBezierPoints:!0,cubicInterpolationMode:"default",fill:!1,spanGaps:!1,stepped:!1,tension:0}),R(On,"defaultRoutes",{backgroundColor:"backgroundColor",borderColor:"borderColor"}),R(On,"descriptors",{_scriptable:!0,_indexable:t=>t!=="borderDash"&&t!=="fill"});function Lo(e,t,n,i){const s=e.options,{[n]:o}=e.getProps([n],i);return Math.abs(t-o)<s.radius+s.hitRadius}class gi extends jt{constructor(n){super();R(this,"parsed");R(this,"skip");R(this,"stop");this.options=void 0,this.parsed=void 0,this.skip=void 0,this.stop=void 0,n&&Object.assign(this,n)}inRange(n,i,s){const o=this.options,{x:r,y:a}=this.getProps(["x","y"],s);return Math.pow(n-r,2)+Math.pow(i-a,2)<Math.pow(o.hitRadius+o.radius,2)}inXRange(n,i){return Lo(this,n,"x",i)}inYRange(n,i){return Lo(this,n,"y",i)}getCenterPoint(n){const{x:i,y:s}=this.getProps(["x","y"],n);return{x:i,y:s}}size(n){n=n||this.options||{};let i=n.radius||0;i=Math.max(i,i&&n.hoverRadius||0);const s=i&&n.borderWidth||0;return(i+s)*2}draw(n,i){const s=this.options;this.skip||s.radius<.1||!nn(this,i,this.size(s)/2)||(n.strokeStyle=s.borderColor,n.lineWidth=s.borderWidth,n.fillStyle=s.backgroundColor,Pi(n,s,this.x,this.y))}getRange(){const n=this.options||{};return n.radius+n.hitRadius}}R(gi,"id","point"),R(gi,"defaults",{borderWidth:1,hitRadius:1,hoverBorderWidth:1,hoverRadius:4,pointStyle:"circle",radius:3,rotation:0}),R(gi,"defaultRoutes",{backgroundColor:"backgroundColor",borderColor:"borderColor"});function Ma(e,t){const{x:n,y:i,base:s,width:o,height:r}=e.getProps(["x","y","base","width","height"],t);let a,l,c,h,u;return e.horizontal?(u=r/2,a=Math.min(n,s),l=Math.max(n,s),c=i-u,h=i+u):(u=o/2,a=n-u,l=n+u,c=Math.min(i,s),h=Math.max(i,s)),{left:a,top:c,right:l,bottom:h}}function Ht(e,t,n,i){return e?0:rt(t,n,i)}function Bf(e,t,n){const i=e.options.borderWidth,s=e.borderSkipped,o=na(i);return{t:Ht(s.top,o.top,0,n),r:Ht(s.right,o.right,0,t),b:Ht(s.bottom,o.bottom,0,n),l:Ht(s.left,o.left,0,t)}}function Hf(e,t,n){const{enableBorderRadius:i}=e.getProps(["enableBorderRadius"]),s=e.options.borderRadius,o=_e(s),r=Math.min(t,n),a=e.borderSkipped,l=i||z(s);return{topLeft:Ht(!l||a.top||a.left,o.topLeft,0,r),topRight:Ht(!l||a.top||a.right,o.topRight,0,r),bottomLeft:Ht(!l||a.bottom||a.left,o.bottomLeft,0,r),bottomRight:Ht(!l||a.bottom||a.right,o.bottomRight,0,r)}}function Wf(e){const t=Ma(e),n=t.right-t.left,i=t.bottom-t.top,s=Bf(e,n/2,i/2),o=Hf(e,n/2,i/2);return{outer:{x:t.left,y:t.top,w:n,h:i,radius:o},inner:{x:t.left+s.l,y:t.top+s.t,w:n-s.l-s.r,h:i-s.t-s.b,radius:{topLeft:Math.max(0,o.topLeft-Math.max(s.t,s.l)),topRight:Math.max(0,o.topRight-Math.max(s.t,s.r)),bottomLeft:Math.max(0,o.bottomLeft-Math.max(s.b,s.l)),bottomRight:Math.max(0,o.bottomRight-Math.max(s.b,s.r))}}}}function mi(e,t,n,i){const s=t===null,o=n===null,a=e&&!(s&&o)&&Ma(e,i);return a&&(s||Bt(t,a.left,a.right))&&(o||Bt(n,a.top,a.bottom))}function Vf(e){return e.topLeft||e.topRight||e.bottomLeft||e.bottomRight}function Yf(e,t){e.rect(t.x,t.y,t.w,t.h)}function bi(e,t,n={}){const i=e.x!==n.x?-t:0,s=e.y!==n.y?-t:0,o=(e.x+e.w!==n.x+n.w?t:0)-i,r=(e.y+e.h!==n.y+n.h?t:0)-s;return{x:e.x+i,y:e.y+s,w:e.w+o,h:e.h+r,radius:e.radius}}class xi extends jt{constructor(t){super(),this.options=void 0,this.horizontal=void 0,this.base=void 0,this.width=void 0,this.height=void 0,this.inflateAmount=void 0,t&&Object.assign(this,t)}draw(t){const{inflateAmount:n,options:{borderColor:i,backgroundColor:s}}=this,{inner:o,outer:r}=Wf(this),a=Vf(r.radius)?zn:Yf;t.save(),(r.w!==o.w||r.h!==o.h)&&(t.beginPath(),a(t,bi(r,n,o)),t.clip(),a(t,bi(o,-n,r)),t.fillStyle=i,t.fill("evenodd")),t.beginPath(),a(t,bi(o,n)),t.fillStyle=s,t.fill(),t.restore()}inRange(t,n,i){return mi(this,t,n,i)}inXRange(t,n){return mi(this,t,null,n)}inYRange(t,n){return mi(this,null,t,n)}getCenterPoint(t){const{x:n,y:i,base:s,horizontal:o}=this.getProps(["x","y","base","horizontal"],t);return{x:o?(n+s)/2:n,y:o?i:(i+s)/2}}getRange(t){return t==="x"?this.width/2:this.height/2}}R(xi,"id","bar"),R(xi,"defaults",{borderSkipped:"start",borderWidth:0,borderRadius:0,inflateAmount:"auto",pointStyle:void 0}),R(xi,"defaultRoutes",{backgroundColor:"backgroundColor",borderColor:"borderColor"});const Fo=(e,t)=>{let{boxHeight:n=t,boxWidth:i=t}=e;return e.usePointStyle&&(n=Math.min(n,t),i=e.pointStyleWidth||Math.min(i,t)),{boxWidth:i,boxHeight:n,itemHeight:Math.max(t,n)}},Uf=(e,t)=>e!==null&&t!==null&&e.datasetIndex===t.datasetIndex&&e.index===t.index;class Io extends jt{constructor(t){super(),this._added=!1,this.legendHitBoxes=[],this._hoveredItem=null,this.doughnutMode=!1,this.chart=t.chart,this.options=t.options,this.ctx=t.ctx,this.legendItems=void 0,this.columnSizes=void 0,this.lineWidths=void 0,this.maxHeight=void 0,this.maxWidth=void 0,this.top=void 0,this.bottom=void 0,this.left=void 0,this.right=void 0,this.height=void 0,this.width=void 0,this._margins=void 0,this.position=void 0,this.weight=void 0,this.fullSize=void 0}update(t,n,i){this.maxWidth=t,this.maxHeight=n,this._margins=i,this.setDimensions(),this.buildLabels(),this.fit()}setDimensions(){this.isHorizontal()?(this.width=this.maxWidth,this.left=this._margins.left,this.right=this.width):(this.height=this.maxHeight,this.top=this._margins.top,this.bottom=this.height)}buildLabels(){const t=this.options.labels||{};let n=Y(t.generateLabels,[this.chart],this)||[];t.filter&&(n=n.filter(i=>t.filter(i,this.chart.data))),t.sort&&(n=n.sort((i,s)=>t.sort(i,s,this.chart.data))),this.options.reverse&&n.reverse(),this.legendItems=n}fit(){const{options:t,ctx:n}=this;if(!t.display){this.width=this.height=0;return}const i=t.labels,s=at(i.font),o=s.size,r=this._computeTitleHeight(),{boxWidth:a,itemHeight:l}=Fo(i,o);let c,h;n.font=s.string,this.isHorizontal()?(c=this.maxWidth,h=this._fitRows(r,o,a,l)+10):(h=this.maxHeight,c=this._fitCols(r,s,a,l)+10),this.width=Math.min(c,t.maxWidth||this.maxWidth),this.height=Math.min(h,t.maxHeight||this.maxHeight)}_fitRows(t,n,i,s){const{ctx:o,maxWidth:r,options:{labels:{padding:a}}}=this,l=this.legendHitBoxes=[],c=this.lineWidths=[0],h=s+a;let u=t;o.textAlign="left",o.textBaseline="middle";let d=-1,f=-h;return this.legendItems.forEach((g,m)=>{const p=i+n/2+o.measureText(g.text).width;(m===0||c[c.length-1]+p+2*a>r)&&(u+=h,c[c.length-(m>0?0:1)]=0,f+=h,d++),l[m]={left:0,top:f,row:d,width:p,height:s},c[c.length-1]+=p+a}),u}_fitCols(t,n,i,s){const{ctx:o,maxHeight:r,options:{labels:{padding:a}}}=this,l=this.legendHitBoxes=[],c=this.columnSizes=[],h=r-t;let u=a,d=0,f=0,g=0,m=0;return this.legendItems.forEach((p,b)=>{const{itemWidth:x,itemHeight:v}=Xf(i,n,o,p,s);b>0&&f+v+2*a>h&&(u+=d+a,c.push({width:d,height:f}),g+=d+a,m++,d=f=0),l[b]={left:g,top:f,col:m,width:x,height:v},d=Math.max(d,x),f+=v+a}),u+=d,c.push({width:d,height:f}),u}adjustHitBoxes(){if(!this.options.display)return;const t=this._computeTitleHeight(),{legendHitBoxes:n,options:{align:i,labels:{padding:s},rtl:o}}=this,r=we(o,this.left,this.width);if(this.isHorizontal()){let a=0,l=ot(i,this.left+s,this.right-this.lineWidths[a]);for(const c of n)a!==c.row&&(a=c.row,l=ot(i,this.left+s,this.right-this.lineWidths[a])),c.top+=this.top+t+s,c.left=r.leftForLtr(r.x(l),c.width),l+=c.width+s}else{let a=0,l=ot(i,this.top+t+s,this.bottom-this.columnSizes[a].height);for(const c of n)c.col!==a&&(a=c.col,l=ot(i,this.top+t+s,this.bottom-this.columnSizes[a].height)),c.top=l,c.left+=this.left+s,c.left=r.leftForLtr(r.x(c.left),c.width),l+=c.height+s}}isHorizontal(){return this.options.position==="top"||this.options.position==="bottom"}draw(){if(this.options.display){const t=this.ctx;Ji(t,this),this._draw(),Zi(t)}}_draw(){const{options:t,columnSizes:n,lineWidths:i,ctx:s}=this,{align:o,labels:r}=t,a=q.color,l=we(t.rtl,this.left,this.width),c=at(r.font),{padding:h}=r,u=c.size,d=u/2;let f;this.drawTitle(),s.textAlign=l.textAlign("left"),s.textBaseline="middle",s.lineWidth=.5,s.font=c.string;const{boxWidth:g,boxHeight:m,itemHeight:p}=Fo(r,u),b=function(w,k,S){if(isNaN(g)||g<=0||isNaN(m)||m<0)return;s.save();const C=j(S.lineWidth,1);if(s.fillStyle=j(S.fillStyle,a),s.lineCap=j(S.lineCap,"butt"),s.lineDashOffset=j(S.lineDashOffset,0),s.lineJoin=j(S.lineJoin,"miter"),s.lineWidth=C,s.strokeStyle=j(S.strokeStyle,a),s.setLineDash(j(S.lineDash,[])),r.usePointStyle){const D={radius:m*Math.SQRT2/2,pointStyle:S.pointStyle,rotation:S.rotation,borderWidth:C},P=l.xPlus(w,g/2),O=k+d;ea(s,D,P,O,r.pointStyleWidth&&g)}else{const D=k+Math.max((u-m)/2,0),P=l.leftForLtr(w,g),O=_e(S.borderRadius);s.beginPath(),Object.values(O).some(A=>A!==0)?zn(s,{x:P,y:D,w:g,h:m,radius:O}):s.rect(P,D,g,m),s.fill(),C!==0&&s.stroke()}s.restore()},x=function(w,k,S){sn(s,S.text,w,k+p/2,c,{strikethrough:S.hidden,textAlign:l.textAlign(S.textAlign)})},v=this.isHorizontal(),_=this._computeTitleHeight();v?f={x:ot(o,this.left+h,this.right-i[0]),y:this.top+h+_,line:0}:f={x:this.left+h,y:ot(o,this.top+_+h,this.bottom-n[0].height),line:0},la(this.ctx,t.textDirection);const y=p+h;this.legendItems.forEach((w,k)=>{s.strokeStyle=w.fontColor,s.fillStyle=w.fontColor;const S=s.measureText(w.text).width,C=l.textAlign(w.textAlign||(w.textAlign=r.textAlign)),D=g+d+S;let P=f.x,O=f.y;l.setWidth(this.width),v?k>0&&P+D+h>this.right&&(O=f.y+=y,f.line++,P=f.x=ot(o,this.left+h,this.right-i[f.line])):k>0&&O+y>this.bottom&&(P=f.x=P+n[f.line].width+h,f.line++,O=f.y=ot(o,this.top+_+h,this.bottom-n[f.line].height));const A=l.x(P);if(b(A,O,w),P=Wh(C,P+g+d,v?P+D:this.right,t.rtl),x(l.x(P),O,w),v)f.x+=D+h;else if(typeof w.text!="string"){const I=c.lineHeight;f.y+=Ca(w,I)+h}else f.y+=y}),ca(this.ctx,t.textDirection)}drawTitle(){const t=this.options,n=t.title,i=at(n.font),s=_t(n.padding);if(!n.display)return;const o=we(t.rtl,this.left,this.width),r=this.ctx,a=n.position,l=i.size/2,c=s.top+l;let h,u=this.left,d=this.width;if(this.isHorizontal())d=Math.max(...this.lineWidths),h=this.top+c,u=ot(t.align,u,this.right-d);else{const g=this.columnSizes.reduce((m,p)=>Math.max(m,p.height),0);h=c+ot(t.align,this.top,this.bottom-g-t.labels.padding-this._computeTitleHeight())}const f=ot(a,u,u+d);r.textAlign=o.textAlign(Ki(a)),r.textBaseline="middle",r.strokeStyle=n.color,r.fillStyle=n.color,r.font=i.string,sn(r,n.text,f,h,i)}_computeTitleHeight(){const t=this.options.title,n=at(t.font),i=_t(t.padding);return t.display?n.lineHeight+i.height:0}_getLegendItemAt(t,n){let i,s,o;if(Bt(t,this.left,this.right)&&Bt(n,this.top,this.bottom)){for(o=this.legendHitBoxes,i=0;i<o.length;++i)if(s=o[i],Bt(t,s.left,s.left+s.width)&&Bt(n,s.top,s.top+s.height))return this.legendItems[i]}return null}handleEvent(t){const n=this.options;if(!Gf(t.type,n))return;const i=this._getLegendItemAt(t.x,t.y);if(t.type==="mousemove"||t.type==="mouseout"){const s=this._hoveredItem,o=Uf(s,i);s&&!o&&Y(n.onLeave,[t,s,this],this),this._hoveredItem=i,i&&!o&&Y(n.onHover,[t,i,this],this)}else i&&Y(n.onClick,[t,i,this],this)}}function Xf(e,t,n,i,s){const o=qf(i,e,t,n),r=Kf(s,i,t.lineHeight);return{itemWidth:o,itemHeight:r}}function qf(e,t,n,i){let s=e.text;return s&&typeof s!="string"&&(s=s.reduce((o,r)=>o.length>r.length?o:r)),t+n.size/2+i.measureText(s).width}function Kf(e,t,n){let i=e;return typeof t.text!="string"&&(i=Ca(t,n)),i}function Ca(e,t){const n=e.text?e.text.length:0;return t*n}function Gf(e,t){return!!((e==="mousemove"||e==="mouseout")&&(t.onHover||t.onLeave)||t.onClick&&(e==="click"||e==="mouseup"))}var Dg={id:"legend",_element:Io,start(e,t,n){const i=e.legend=new Io({ctx:e.ctx,options:n,chart:e});bt.configure(e,i,n),bt.addBox(e,i)},stop(e){bt.removeBox(e,e.legend),delete e.legend},beforeUpdate(e,t,n){const i=e.legend;bt.configure(e,i,n),i.options=n},afterUpdate(e){const t=e.legend;t.buildLabels(),t.adjustHitBoxes()},afterEvent(e,t){t.replay||e.legend.handleEvent(t.event)},defaults:{display:!0,position:"top",align:"center",fullSize:!0,reverse:!1,weight:1e3,onClick(e,t,n){const i=t.datasetIndex,s=n.chart;s.isDatasetVisible(i)?(s.hide(i),t.hidden=!0):(s.show(i),t.hidden=!1)},onHover:null,onLeave:null,labels:{color:e=>e.chart.options.color,boxWidth:40,padding:10,generateLabels(e){const t=e.data.datasets,{labels:{usePointStyle:n,pointStyle:i,textAlign:s,color:o,useBorderRadius:r,borderRadius:a}}=e.legend.options;return e._getSortedDatasetMetas().map(l=>{const c=l.controller.getStyle(n?0:void 0),h=_t(c.borderWidth);return{text:t[l.index].label,fillStyle:c.backgroundColor,fontColor:o,hidden:!l.visible,lineCap:c.borderCapStyle,lineDash:c.borderDash,lineDashOffset:c.borderDashOffset,lineJoin:c.borderJoinStyle,lineWidth:(h.width+h.height)/4,strokeStyle:c.borderColor,pointStyle:i||c.pointStyle,rotation:c.rotation,textAlign:s||c.textAlign,borderRadius:r&&(a||c.borderRadius),datasetIndex:l.index}},this)}},title:{color:e=>e.chart.options.color,display:!1,position:"center",text:""}},descriptors:{_scriptable:e=>!e.startsWith("on"),labels:{_scriptable:e=>!["generateLabels","filter","sort"].includes(e)}}};class Pa extends jt{constructor(t){super(),this.chart=t.chart,this.options=t.options,this.ctx=t.ctx,this._padding=void 0,this.top=void 0,this.bottom=void 0,this.left=void 0,this.right=void 0,this.width=void 0,this.height=void 0,this.position=void 0,this.weight=void 0,this.fullSize=void 0}update(t,n){const i=this.options;if(this.left=0,this.top=0,!i.display){this.width=this.height=this.right=this.bottom=0;return}this.width=this.right=t,this.height=this.bottom=n;const s=J(i.text)?i.text.length:1;this._padding=_t(i.padding);const o=s*at(i.font).lineHeight+this._padding.height;this.isHorizontal()?this.height=o:this.width=o}isHorizontal(){const t=this.options.position;return t==="top"||t==="bottom"}_drawArgs(t){const{top:n,left:i,bottom:s,right:o,options:r}=this,a=r.align;let l=0,c,h,u;return this.isHorizontal()?(h=ot(a,i,o),u=n+t,c=o-i):(r.position==="left"?(h=i+t,u=ot(a,s,n),l=Z*-.5):(h=o-t,u=ot(a,n,s),l=Z*.5),c=s-n),{titleX:h,titleY:u,maxWidth:c,rotation:l}}draw(){const t=this.ctx,n=this.options;if(!n.display)return;const i=at(n.font),o=i.lineHeight/2+this._padding.top,{titleX:r,titleY:a,maxWidth:l,rotation:c}=this._drawArgs(o);sn(t,n.text,0,0,i,{color:n.color,maxWidth:l,rotation:c,textAlign:Ki(n.align),textBaseline:"middle",translation:[r,a]})}}function Jf(e,t){const n=new Pa({ctx:e.ctx,options:t,chart:e});bt.configure(e,n,t),bt.addBox(e,n),e.titleBlock=n}var Eg={id:"title",_element:Pa,start(e,t,n){Jf(e,n)},stop(e){const t=e.titleBlock;bt.removeBox(e,t),delete e.titleBlock},beforeUpdate(e,t,n){const i=e.titleBlock;bt.configure(e,i,n),i.options=n},defaults:{align:"center",display:!1,font:{weight:"bold"},fullSize:!0,padding:10,position:"top",text:"",weight:2e3},defaultRoutes:{color:"color"},descriptors:{_scriptable:!0,_indexable:!1}};const He={average(e){if(!e.length)return!1;let t,n,i=new Set,s=0,o=0;for(t=0,n=e.length;t<n;++t){const a=e[t].element;if(a&&a.hasValue()){const l=a.tooltipPosition();i.add(l.x),s+=l.y,++o}}return o===0||i.size===0?!1:{x:[...i].reduce((a,l)=>a+l)/i.size,y:s/o}},nearest(e,t){if(!e.length)return!1;let n=t.x,i=t.y,s=Number.POSITIVE_INFINITY,o,r,a;for(o=0,r=e.length;o<r;++o){const l=e[o].element;if(l&&l.hasValue()){const c=l.getCenterPoint(),h=Mi(t,c);h<s&&(s=h,a=l)}}if(a){const l=a.tooltipPosition();n=l.x,i=l.y}return{x:n,y:i}}};function kt(e,t){return t&&(J(t)?Array.prototype.push.apply(e,t):e.push(t)),e}function Rt(e){return(typeof e=="string"||e instanceof String)&&e.indexOf(` +`)>-1?e.split(` +`):e}function Zf(e,t){const{element:n,datasetIndex:i,index:s}=t,o=e.getDatasetMeta(i).controller,{label:r,value:a}=o.getLabelAndValue(s);return{chart:e,label:r,parsed:o.getParsed(s),raw:e.data.datasets[i].data[s],formattedValue:a,dataset:o.getDataset(),dataIndex:s,datasetIndex:i,element:n}}function jo(e,t){const n=e.chart.ctx,{body:i,footer:s,title:o}=e,{boxWidth:r,boxHeight:a}=t,l=at(t.bodyFont),c=at(t.titleFont),h=at(t.footerFont),u=o.length,d=s.length,f=i.length,g=_t(t.padding);let m=g.height,p=0,b=i.reduce((_,y)=>_+y.before.length+y.lines.length+y.after.length,0);if(b+=e.beforeBody.length+e.afterBody.length,u&&(m+=u*c.lineHeight+(u-1)*t.titleSpacing+t.titleMarginBottom),b){const _=t.displayColors?Math.max(a,l.lineHeight):l.lineHeight;m+=f*_+(b-f)*l.lineHeight+(b-1)*t.bodySpacing}d&&(m+=t.footerMarginTop+d*h.lineHeight+(d-1)*t.footerSpacing);let x=0;const v=function(_){p=Math.max(p,n.measureText(_).width+x)};return n.save(),n.font=c.string,V(e.title,v),n.font=l.string,V(e.beforeBody.concat(e.afterBody),v),x=t.displayColors?r+2+t.boxPadding:0,V(i,_=>{V(_.before,v),V(_.lines,v),V(_.after,v)}),x=0,n.font=h.string,V(e.footer,v),n.restore(),p+=g.width,{width:p,height:m}}function Qf(e,t){const{y:n,height:i}=t;return n<i/2?"top":n>e.height-i/2?"bottom":"center"}function tp(e,t,n,i){const{x:s,width:o}=i,r=n.caretSize+n.caretPadding;if(e==="left"&&s+o+r>t.width||e==="right"&&s-o-r<0)return!0}function ep(e,t,n,i){const{x:s,width:o}=n,{width:r,chartArea:{left:a,right:l}}=e;let c="center";return i==="center"?c=s<=(a+l)/2?"left":"right":s<=o/2?c="left":s>=r-o/2&&(c="right"),tp(c,e,t,n)&&(c="center"),c}function $o(e,t,n){const i=n.yAlign||t.yAlign||Qf(e,n);return{xAlign:n.xAlign||t.xAlign||ep(e,t,n,i),yAlign:i}}function np(e,t){let{x:n,width:i}=e;return t==="right"?n-=i:t==="center"&&(n-=i/2),n}function ip(e,t,n){let{y:i,height:s}=e;return t==="top"?i+=n:t==="bottom"?i-=s+n:i-=s/2,i}function zo(e,t,n,i){const{caretSize:s,caretPadding:o,cornerRadius:r}=e,{xAlign:a,yAlign:l}=n,c=s+o,{topLeft:h,topRight:u,bottomLeft:d,bottomRight:f}=_e(r);let g=np(t,a);const m=ip(t,l,c);return l==="center"?a==="left"?g+=c:a==="right"&&(g-=c):a==="left"?g-=Math.max(h,d)+s:a==="right"&&(g+=Math.max(u,f)+s),{x:rt(g,0,i.width-t.width),y:rt(m,0,i.height-t.height)}}function Dn(e,t,n){const i=_t(n.padding);return t==="center"?e.x+e.width/2:t==="right"?e.x+e.width-i.right:e.x+i.left}function No(e){return kt([],Rt(e))}function sp(e,t,n){return pe(e,{tooltip:t,tooltipItems:n,type:"tooltip"})}function Bo(e,t){const n=t&&t.dataset&&t.dataset.tooltip&&t.dataset.tooltip.callbacks;return n?e.override(n):e}const Oa={beforeTitle:At,title(e){if(e.length>0){const t=e[0],n=t.chart.data.labels,i=n?n.length:0;if(this&&this.options&&this.options.mode==="dataset")return t.dataset.label||"";if(t.label)return t.label;if(i>0&&t.dataIndex<i)return n[t.dataIndex]}return""},afterTitle:At,beforeBody:At,beforeLabel:At,label(e){if(this&&this.options&&this.options.mode==="dataset")return e.label+": "+e.formattedValue||e.formattedValue;let t=e.dataset.label||"";t&&(t+=": ");const n=e.formattedValue;return B(n)||(t+=n),t},labelColor(e){const n=e.chart.getDatasetMeta(e.datasetIndex).controller.getStyle(e.dataIndex);return{borderColor:n.borderColor,backgroundColor:n.backgroundColor,borderWidth:n.borderWidth,borderDash:n.borderDash,borderDashOffset:n.borderDashOffset,borderRadius:0}},labelTextColor(){return this.options.bodyColor},labelPointStyle(e){const n=e.chart.getDatasetMeta(e.datasetIndex).controller.getStyle(e.dataIndex);return{pointStyle:n.pointStyle,rotation:n.rotation}},afterLabel:At,afterBody:At,beforeFooter:At,footer:At,afterFooter:At};function ct(e,t,n,i){const s=e[t].call(n,i);return typeof s>"u"?Oa[t].call(n,i):s}class Ai extends jt{constructor(t){super(),this.opacity=0,this._active=[],this._eventPosition=void 0,this._size=void 0,this._cachedAnimations=void 0,this._tooltipItems=[],this.$animations=void 0,this.$context=void 0,this.chart=t.chart,this.options=t.options,this.dataPoints=void 0,this.title=void 0,this.beforeBody=void 0,this.body=void 0,this.afterBody=void 0,this.footer=void 0,this.xAlign=void 0,this.yAlign=void 0,this.x=void 0,this.y=void 0,this.height=void 0,this.width=void 0,this.caretX=void 0,this.caretY=void 0,this.labelColors=void 0,this.labelPointStyles=void 0,this.labelTextColors=void 0}initialize(t){this.options=t,this._cachedAnimations=void 0,this.$context=void 0}_resolveAnimations(){const t=this._cachedAnimations;if(t)return t;const n=this.chart,i=this.options.setContext(this.getContext()),s=i.enabled&&n.options.animation&&i.animations,o=new ua(this.chart,s);return s._cacheable&&(this._cachedAnimations=Object.freeze(o)),o}getContext(){return this.$context||(this.$context=sp(this.chart.getContext(),this,this._tooltipItems))}getTitle(t,n){const{callbacks:i}=n,s=ct(i,"beforeTitle",this,t),o=ct(i,"title",this,t),r=ct(i,"afterTitle",this,t);let a=[];return a=kt(a,Rt(s)),a=kt(a,Rt(o)),a=kt(a,Rt(r)),a}getBeforeBody(t,n){return No(ct(n.callbacks,"beforeBody",this,t))}getBody(t,n){const{callbacks:i}=n,s=[];return V(t,o=>{const r={before:[],lines:[],after:[]},a=Bo(i,o);kt(r.before,Rt(ct(a,"beforeLabel",this,o))),kt(r.lines,ct(a,"label",this,o)),kt(r.after,Rt(ct(a,"afterLabel",this,o))),s.push(r)}),s}getAfterBody(t,n){return No(ct(n.callbacks,"afterBody",this,t))}getFooter(t,n){const{callbacks:i}=n,s=ct(i,"beforeFooter",this,t),o=ct(i,"footer",this,t),r=ct(i,"afterFooter",this,t);let a=[];return a=kt(a,Rt(s)),a=kt(a,Rt(o)),a=kt(a,Rt(r)),a}_createItems(t){const n=this._active,i=this.chart.data,s=[],o=[],r=[];let a=[],l,c;for(l=0,c=n.length;l<c;++l)a.push(Zf(this.chart,n[l]));return t.filter&&(a=a.filter((h,u,d)=>t.filter(h,u,d,i))),t.itemSort&&(a=a.sort((h,u)=>t.itemSort(h,u,i))),V(a,h=>{const u=Bo(t.callbacks,h);s.push(ct(u,"labelColor",this,h)),o.push(ct(u,"labelPointStyle",this,h)),r.push(ct(u,"labelTextColor",this,h))}),this.labelColors=s,this.labelPointStyles=o,this.labelTextColors=r,this.dataPoints=a,a}update(t,n){const i=this.options.setContext(this.getContext()),s=this._active;let o,r=[];if(!s.length)this.opacity!==0&&(o={opacity:0});else{const a=He[i.position].call(this,s,this._eventPosition);r=this._createItems(i),this.title=this.getTitle(r,i),this.beforeBody=this.getBeforeBody(r,i),this.body=this.getBody(r,i),this.afterBody=this.getAfterBody(r,i),this.footer=this.getFooter(r,i);const l=this._size=jo(this,i),c=Object.assign({},a,l),h=$o(this.chart,i,c),u=zo(i,c,h,this.chart);this.xAlign=h.xAlign,this.yAlign=h.yAlign,o={opacity:1,x:u.x,y:u.y,width:l.width,height:l.height,caretX:a.x,caretY:a.y}}this._tooltipItems=r,this.$context=void 0,o&&this._resolveAnimations().update(this,o),t&&i.external&&i.external.call(this,{chart:this.chart,tooltip:this,replay:n})}drawCaret(t,n,i,s){const o=this.getCaretPosition(t,i,s);n.lineTo(o.x1,o.y1),n.lineTo(o.x2,o.y2),n.lineTo(o.x3,o.y3)}getCaretPosition(t,n,i){const{xAlign:s,yAlign:o}=this,{caretSize:r,cornerRadius:a}=i,{topLeft:l,topRight:c,bottomLeft:h,bottomRight:u}=_e(a),{x:d,y:f}=t,{width:g,height:m}=n;let p,b,x,v,_,y;return o==="center"?(_=f+m/2,s==="left"?(p=d,b=p-r,v=_+r,y=_-r):(p=d+g,b=p+r,v=_-r,y=_+r),x=p):(s==="left"?b=d+Math.max(l,h)+r:s==="right"?b=d+g-Math.max(c,u)-r:b=this.caretX,o==="top"?(v=f,_=v-r,p=b-r,x=b+r):(v=f+m,_=v+r,p=b+r,x=b-r),y=v),{x1:p,x2:b,x3:x,y1:v,y2:_,y3:y}}drawTitle(t,n,i){const s=this.title,o=s.length;let r,a,l;if(o){const c=we(i.rtl,this.x,this.width);for(t.x=Dn(this,i.titleAlign,i),n.textAlign=c.textAlign(i.titleAlign),n.textBaseline="middle",r=at(i.titleFont),a=i.titleSpacing,n.fillStyle=i.titleColor,n.font=r.string,l=0;l<o;++l)n.fillText(s[l],c.x(t.x),t.y+r.lineHeight/2),t.y+=r.lineHeight+a,l+1===o&&(t.y+=i.titleMarginBottom-a)}}_drawColorBox(t,n,i,s,o){const r=this.labelColors[i],a=this.labelPointStyles[i],{boxHeight:l,boxWidth:c}=o,h=at(o.bodyFont),u=Dn(this,"left",o),d=s.x(u),f=l<h.lineHeight?(h.lineHeight-l)/2:0,g=n.y+f;if(o.usePointStyle){const m={radius:Math.min(c,l)/2,pointStyle:a.pointStyle,rotation:a.rotation,borderWidth:1},p=s.leftForLtr(d,c)+c/2,b=g+l/2;t.strokeStyle=o.multiKeyBackground,t.fillStyle=o.multiKeyBackground,Pi(t,m,p,b),t.strokeStyle=r.borderColor,t.fillStyle=r.backgroundColor,Pi(t,m,p,b)}else{t.lineWidth=z(r.borderWidth)?Math.max(...Object.values(r.borderWidth)):r.borderWidth||1,t.strokeStyle=r.borderColor,t.setLineDash(r.borderDash||[]),t.lineDashOffset=r.borderDashOffset||0;const m=s.leftForLtr(d,c),p=s.leftForLtr(s.xPlus(d,1),c-2),b=_e(r.borderRadius);Object.values(b).some(x=>x!==0)?(t.beginPath(),t.fillStyle=o.multiKeyBackground,zn(t,{x:m,y:g,w:c,h:l,radius:b}),t.fill(),t.stroke(),t.fillStyle=r.backgroundColor,t.beginPath(),zn(t,{x:p,y:g+1,w:c-2,h:l-2,radius:b}),t.fill()):(t.fillStyle=o.multiKeyBackground,t.fillRect(m,g,c,l),t.strokeRect(m,g,c,l),t.fillStyle=r.backgroundColor,t.fillRect(p,g+1,c-2,l-2))}t.fillStyle=this.labelTextColors[i]}drawBody(t,n,i){const{body:s}=this,{bodySpacing:o,bodyAlign:r,displayColors:a,boxHeight:l,boxWidth:c,boxPadding:h}=i,u=at(i.bodyFont);let d=u.lineHeight,f=0;const g=we(i.rtl,this.x,this.width),m=function(S){n.fillText(S,g.x(t.x+f),t.y+d/2),t.y+=d+o},p=g.textAlign(r);let b,x,v,_,y,w,k;for(n.textAlign=r,n.textBaseline="middle",n.font=u.string,t.x=Dn(this,p,i),n.fillStyle=i.bodyColor,V(this.beforeBody,m),f=a&&p!=="right"?r==="center"?c/2+h:c+2+h:0,_=0,w=s.length;_<w;++_){for(b=s[_],x=this.labelTextColors[_],n.fillStyle=x,V(b.before,m),v=b.lines,a&&v.length&&(this._drawColorBox(n,t,_,g,i),d=Math.max(u.lineHeight,l)),y=0,k=v.length;y<k;++y)m(v[y]),d=u.lineHeight;V(b.after,m)}f=0,d=u.lineHeight,V(this.afterBody,m),t.y-=o}drawFooter(t,n,i){const s=this.footer,o=s.length;let r,a;if(o){const l=we(i.rtl,this.x,this.width);for(t.x=Dn(this,i.footerAlign,i),t.y+=i.footerMarginTop,n.textAlign=l.textAlign(i.footerAlign),n.textBaseline="middle",r=at(i.footerFont),n.fillStyle=i.footerColor,n.font=r.string,a=0;a<o;++a)n.fillText(s[a],l.x(t.x),t.y+r.lineHeight/2),t.y+=r.lineHeight+i.footerSpacing}}drawBackground(t,n,i,s){const{xAlign:o,yAlign:r}=this,{x:a,y:l}=t,{width:c,height:h}=i,{topLeft:u,topRight:d,bottomLeft:f,bottomRight:g}=_e(s.cornerRadius);n.fillStyle=s.backgroundColor,n.strokeStyle=s.borderColor,n.lineWidth=s.borderWidth,n.beginPath(),n.moveTo(a+u,l),r==="top"&&this.drawCaret(t,n,i,s),n.lineTo(a+c-d,l),n.quadraticCurveTo(a+c,l,a+c,l+d),r==="center"&&o==="right"&&this.drawCaret(t,n,i,s),n.lineTo(a+c,l+h-g),n.quadraticCurveTo(a+c,l+h,a+c-g,l+h),r==="bottom"&&this.drawCaret(t,n,i,s),n.lineTo(a+f,l+h),n.quadraticCurveTo(a,l+h,a,l+h-f),r==="center"&&o==="left"&&this.drawCaret(t,n,i,s),n.lineTo(a,l+u),n.quadraticCurveTo(a,l,a+u,l),n.closePath(),n.fill(),s.borderWidth>0&&n.stroke()}_updateAnimationTarget(t){const n=this.chart,i=this.$animations,s=i&&i.x,o=i&&i.y;if(s||o){const r=He[t.position].call(this,this._active,this._eventPosition);if(!r)return;const a=this._size=jo(this,t),l=Object.assign({},r,this._size),c=$o(n,t,l),h=zo(t,l,c,n);(s._to!==h.x||o._to!==h.y)&&(this.xAlign=c.xAlign,this.yAlign=c.yAlign,this.width=a.width,this.height=a.height,this.caretX=r.x,this.caretY=r.y,this._resolveAnimations().update(this,h))}}_willRender(){return!!this.opacity}draw(t){const n=this.options.setContext(this.getContext());let i=this.opacity;if(!i)return;this._updateAnimationTarget(n);const s={width:this.width,height:this.height},o={x:this.x,y:this.y};i=Math.abs(i)<.001?0:i;const r=_t(n.padding),a=this.title.length||this.beforeBody.length||this.body.length||this.afterBody.length||this.footer.length;n.enabled&&a&&(t.save(),t.globalAlpha=i,this.drawBackground(o,t,s,n),la(t,n.textDirection),o.y+=r.top,this.drawTitle(o,t,n),this.drawBody(o,t,n),this.drawFooter(o,t,n),ca(t,n.textDirection),t.restore())}getActiveElements(){return this._active||[]}setActiveElements(t,n){const i=this._active,s=t.map(({datasetIndex:a,index:l})=>{const c=this.chart.getDatasetMeta(a);if(!c)throw new Error("Cannot find a dataset at index "+a);return{datasetIndex:a,element:c.data[l],index:l}}),o=!In(i,s),r=this._positionChanged(s,n);(o||r)&&(this._active=s,this._eventPosition=n,this._ignoreReplayEvents=!0,this.update(!0))}handleEvent(t,n,i=!0){if(n&&this._ignoreReplayEvents)return!1;this._ignoreReplayEvents=!1;const s=this.options,o=this._active||[],r=this._getActiveElements(t,o,n,i),a=this._positionChanged(r,t),l=n||!In(r,o)||a;return l&&(this._active=r,(s.enabled||s.external)&&(this._eventPosition={x:t.x,y:t.y},this.update(!0,n))),l}_getActiveElements(t,n,i,s){const o=this.options;if(t.type==="mouseout")return[];if(!s)return n.filter(a=>this.chart.data.datasets[a.datasetIndex]&&this.chart.getDatasetMeta(a.datasetIndex).controller.getParsed(a.index)!==void 0);const r=this.chart.getElementsAtEventForMode(t,o.mode,o,i);return o.reverse&&r.reverse(),r}_positionChanged(t,n){const{caretX:i,caretY:s,options:o}=this,r=He[o.position].call(this,t,n);return r!==!1&&(i!==r.x||s!==r.y)}}R(Ai,"positioners",He);var Ag={id:"tooltip",_element:Ai,positioners:He,afterInit(e,t,n){n&&(e.tooltip=new Ai({chart:e,options:n}))},beforeUpdate(e,t,n){e.tooltip&&e.tooltip.initialize(n)},reset(e,t,n){e.tooltip&&e.tooltip.initialize(n)},afterDraw(e){const t=e.tooltip;if(t&&t._willRender()){const n={tooltip:t};if(e.notifyPlugins("beforeTooltipDraw",{...n,cancelable:!0})===!1)return;t.draw(e.ctx),e.notifyPlugins("afterTooltipDraw",n)}},afterEvent(e,t){if(e.tooltip){const n=t.replay;e.tooltip.handleEvent(t.event,n,t.inChartArea)&&(t.changed=!0)}},defaults:{enabled:!0,external:null,position:"average",backgroundColor:"rgba(0,0,0,0.8)",titleColor:"#fff",titleFont:{weight:"bold"},titleSpacing:2,titleMarginBottom:6,titleAlign:"left",bodyColor:"#fff",bodySpacing:2,bodyFont:{},bodyAlign:"left",footerColor:"#fff",footerSpacing:2,footerMarginTop:6,footerFont:{weight:"bold"},footerAlign:"left",padding:6,caretPadding:2,caretSize:5,cornerRadius:6,boxHeight:(e,t)=>t.bodyFont.size,boxWidth:(e,t)=>t.bodyFont.size,multiKeyBackground:"#fff",displayColors:!0,boxPadding:0,borderColor:"rgba(0,0,0,0)",borderWidth:0,animation:{duration:400,easing:"easeOutQuart"},animations:{numbers:{type:"number",properties:["x","y","width","height","caretX","caretY"]},opacity:{easing:"linear",duration:200}},callbacks:Oa},defaultRoutes:{bodyFont:"font",footerFont:"font",titleFont:"font"},descriptors:{_scriptable:e=>e!=="filter"&&e!=="itemSort"&&e!=="external",_indexable:!1,callbacks:{_scriptable:!1,_indexable:!1},animation:{_fallback:!1},animations:{_fallback:"animation"}},additionalOptionScopes:["interaction"]};const op=(e,t,n,i)=>(typeof t=="string"?(n=e.push(t)-1,i.unshift({index:n,label:t})):isNaN(t)&&(n=null),n);function rp(e,t,n,i){const s=e.indexOf(t);if(s===-1)return op(e,t,n,i);const o=e.lastIndexOf(t);return s!==o?n:s}const ap=(e,t)=>e===null?null:rt(Math.round(e),0,t);function Ho(e){const t=this.getLabels();return e>=0&&e<t.length?t[e]:e}class Wo extends Ae{constructor(t){super(t),this._startValue=void 0,this._valueRange=0,this._addedLabels=[]}init(t){const n=this._addedLabels;if(n.length){const i=this.getLabels();for(const{index:s,label:o}of n)i[s]===o&&i.splice(s,1);this._addedLabels=[]}super.init(t)}parse(t,n){if(B(t))return null;const i=this.getLabels();return n=isFinite(n)&&i[n]===t?n:rp(i,t,j(n,t),this._addedLabels),ap(n,i.length-1)}determineDataLimits(){const{minDefined:t,maxDefined:n}=this.getUserBounds();let{min:i,max:s}=this.getMinMax(!0);this.options.bounds==="ticks"&&(t||(i=0),n||(s=this.getLabels().length-1)),this.min=i,this.max=s}buildTicks(){const t=this.min,n=this.max,i=this.options.offset,s=[];let o=this.getLabels();o=t===0&&n===o.length-1?o:o.slice(t,n+1),this._valueRange=Math.max(o.length-(i?0:1),1),this._startValue=this.min-(i?.5:0);for(let r=t;r<=n;r++)s.push({value:r});return s}getLabelForValue(t){return Ho.call(this,t)}configure(){super.configure(),this.isHorizontal()||(this._reversePixels=!this._reversePixels)}getPixelForValue(t){return typeof t!="number"&&(t=this.parse(t)),t===null?NaN:this.getPixelForDecimal((t-this._startValue)/this._valueRange)}getPixelForTick(t){const n=this.ticks;return t<0||t>n.length-1?null:this.getPixelForValue(n[t].value)}getValueForPixel(t){return Math.round(this._startValue+this.getDecimalForPixel(t)*this._valueRange)}getBasePixel(){return this.bottom}}R(Wo,"id","category"),R(Wo,"defaults",{ticks:{callback:Ho}});function lp(e,t){const n=[],{bounds:s,step:o,min:r,max:a,precision:l,count:c,maxTicks:h,maxDigits:u,includeBounds:d}=e,f=o||1,g=h-1,{min:m,max:p}=t,b=!B(r),x=!B(a),v=!B(c),_=(p-m)/(u+1);let y=Ws((p-m)/g/f)*f,w,k,S,C;if(y<1e-14&&!b&&!x)return[{value:m},{value:p}];C=Math.ceil(p/y)-Math.floor(m/y),C>g&&(y=Ws(C*y/g/f)*f),B(l)||(w=Math.pow(10,l),y=Math.ceil(y*w)/w),s==="ticks"?(k=Math.floor(m/y)*y,S=Math.ceil(p/y)*y):(k=m,S=p),b&&x&&o&&Lh((a-r)/o,y/1e3)?(C=Math.round(Math.min((a-r)/y,h)),y=(a-r)/C,k=r,S=a):v?(k=b?r:k,S=x?a:S,C=c-1,y=(S-k)/C):(C=(S-k)/y,Xe(C,Math.round(C),y/1e3)?C=Math.round(C):C=Math.ceil(C));const D=Math.max(Vs(y),Vs(k));w=Math.pow(10,B(l)?D:l),k=Math.round(k*w)/w,S=Math.round(S*w)/w;let P=0;for(b&&(d&&k!==r?(n.push({value:r}),k<r&&P++,Xe(Math.round((k+P*y)*w)/w,r,Vo(r,_,e))&&P++):k<r&&P++);P<C;++P){const O=Math.round((k+P*y)*w)/w;if(x&&O>a)break;n.push({value:O})}return x&&d&&S!==a?n.length&&Xe(n[n.length-1].value,a,Vo(a,_,e))?n[n.length-1].value=a:n.push({value:a}):(!x||S===a)&&n.push({value:S}),n}function Vo(e,t,{horizontal:n,minRotation:i}){const s=ae(i),o=(n?Math.sin(s):Math.cos(s))||.001,r=.75*t*(""+e).length;return Math.min(t/o,r)}class cp extends Ae{constructor(t){super(t),this.start=void 0,this.end=void 0,this._startValue=void 0,this._endValue=void 0,this._valueRange=0}parse(t,n){return B(t)||(typeof t=="number"||t instanceof Number)&&!isFinite(+t)?null:+t}handleTickRangeOptions(){const{beginAtZero:t}=this.options,{minDefined:n,maxDefined:i}=this.getUserBounds();let{min:s,max:o}=this;const r=l=>s=n?s:l,a=l=>o=i?o:l;if(t){const l=Dt(s),c=Dt(o);l<0&&c<0?a(0):l>0&&c>0&&r(0)}if(s===o){let l=o===0?1:Math.abs(o*.05);a(o+l),t||r(s-l)}this.min=s,this.max=o}getTickLimit(){const t=this.options.ticks;let{maxTicksLimit:n,stepSize:i}=t,s;return i?(s=Math.ceil(this.max/i)-Math.floor(this.min/i)+1,s>1e3&&(console.warn(`scales.${this.id}.ticks.stepSize: ${i} would result generating up to ${s} ticks. Limiting to 1000.`),s=1e3)):(s=this.computeTickLimit(),n=n||11),n&&(s=Math.min(n,s)),s}computeTickLimit(){return Number.POSITIVE_INFINITY}buildTicks(){const t=this.options,n=t.ticks;let i=this.getTickLimit();i=Math.max(2,i);const s={maxTicks:i,bounds:t.bounds,min:t.min,max:t.max,precision:n.precision,step:n.stepSize,count:n.count,maxDigits:this._maxDigits(),horizontal:this.isHorizontal(),minRotation:n.minRotation||0,includeBounds:n.includeBounds!==!1},o=this._range||this,r=lp(s,o);return t.bounds==="ticks"&&Fh(r,this,"value"),t.reverse?(r.reverse(),this.start=this.max,this.end=this.min):(this.start=this.min,this.end=this.max),r}configure(){const t=this.ticks;let n=this.min,i=this.max;if(super.configure(),this.options.offset&&t.length){const s=(i-n)/Math.max(t.length-1,1)/2;n-=s,i+=s}this._startValue=n,this._endValue=i,this._valueRange=i-n}getLabelForValue(t){return Zr(t,this.chart.options.locale,this.options.ticks.format)}}class Yo extends cp{determineDataLimits(){const{min:t,max:n}=this.getMinMax(!0);this.min=vt(t)?t:0,this.max=vt(n)?n:1,this.handleTickRangeOptions()}computeTickLimit(){const t=this.isHorizontal(),n=t?this.width:this.height,i=ae(this.options.ticks.minRotation),s=(t?Math.sin(i):Math.cos(i))||.001,o=this._resolveTickFontOptions(0);return Math.ceil(n/Math.min(40,o.lineHeight/s))}getPixelForValue(t){return t===null?NaN:this.getPixelForDecimal((t-this._startValue)/this._valueRange)}getValueForPixel(t){return this._startValue+this.getDecimalForPixel(t)*this._valueRange}}R(Yo,"id","linear"),R(Yo,"defaults",{ticks:{callback:ta.formatters.numeric}});const Kn={millisecond:{common:!0,size:1,steps:1e3},second:{common:!0,size:1e3,steps:60},minute:{common:!0,size:6e4,steps:60},hour:{common:!0,size:36e5,steps:24},day:{common:!0,size:864e5,steps:30},week:{common:!1,size:6048e5,steps:4},month:{common:!0,size:2628e6,steps:12},quarter:{common:!1,size:7884e6,steps:4},year:{common:!0,size:3154e7}},ht=Object.keys(Kn);function Uo(e,t){return e-t}function Xo(e,t){if(B(t))return null;const n=e._adapter,{parser:i,round:s,isoWeekday:o}=e._parseOpts;let r=t;return typeof i=="function"&&(r=i(r)),vt(r)||(r=typeof i=="string"?n.parse(r,i):n.parse(r)),r===null?null:(s&&(r=s==="week"&&(en(o)||o===!0)?n.startOf(r,"isoWeek",o):n.startOf(r,s)),+r)}function qo(e,t,n,i){const s=ht.length;for(let o=ht.indexOf(e);o<s-1;++o){const r=Kn[ht[o]],a=r.steps?r.steps:Number.MAX_SAFE_INTEGER;if(r.common&&Math.ceil((n-t)/(a*r.size))<=i)return ht[o]}return ht[s-1]}function hp(e,t,n,i,s){for(let o=ht.length-1;o>=ht.indexOf(n);o--){const r=ht[o];if(Kn[r].common&&e._adapter.diff(s,i,r)>=t-1)return r}return ht[n?ht.indexOf(n):0]}function up(e){for(let t=ht.indexOf(e)+1,n=ht.length;t<n;++t)if(Kn[ht[t]].common)return ht[t]}function Ko(e,t,n){if(!n)e[t]=!0;else if(n.length){const{lo:i,hi:s}=qi(n,t),o=n[i]>=t?n[i]:n[s];e[o]=!0}}function dp(e,t,n,i){const s=e._adapter,o=+s.startOf(t[0].value,i),r=t[t.length-1].value;let a,l;for(a=o;a<=r;a=+s.add(a,1,i))l=n[a],l>=0&&(t[l].major=!0);return t}function Go(e,t,n){const i=[],s={},o=t.length;let r,a;for(r=0;r<o;++r)a=t[r],s[a]=r,i.push({value:a,major:!1});return o===0||!n?i:dp(e,i,s,n)}class Wn extends Ae{constructor(t){super(t),this._cache={data:[],labels:[],all:[]},this._unit="day",this._majorUnit=void 0,this._offsets={},this._normalized=!1,this._parseOpts=void 0}init(t,n={}){const i=t.time||(t.time={}),s=this._adapter=new md._date(t.adapters.date);s.init(n),Ue(i.displayFormats,s.formats()),this._parseOpts={parser:i.parser,round:i.round,isoWeekday:i.isoWeekday},super.init(t),this._normalized=n.normalized}parse(t,n){return t===void 0?null:Xo(this,t)}beforeLayout(){super.beforeLayout(),this._cache={data:[],labels:[],all:[]}}determineDataLimits(){const t=this.options,n=this._adapter,i=t.time.unit||"day";let{min:s,max:o,minDefined:r,maxDefined:a}=this.getUserBounds();function l(c){!r&&!isNaN(c.min)&&(s=Math.min(s,c.min)),!a&&!isNaN(c.max)&&(o=Math.max(o,c.max))}(!r||!a)&&(l(this._getLabelBounds()),(t.bounds!=="ticks"||t.ticks.source!=="labels")&&l(this.getMinMax(!1))),s=vt(s)&&!isNaN(s)?s:+n.startOf(Date.now(),i),o=vt(o)&&!isNaN(o)?o:+n.endOf(Date.now(),i)+1,this.min=Math.min(s,o-1),this.max=Math.max(s+1,o)}_getLabelBounds(){const t=this.getLabelTimestamps();let n=Number.POSITIVE_INFINITY,i=Number.NEGATIVE_INFINITY;return t.length&&(n=t[0],i=t[t.length-1]),{min:n,max:i}}buildTicks(){const t=this.options,n=t.time,i=t.ticks,s=i.source==="labels"?this.getLabelTimestamps():this._generate();t.bounds==="ticks"&&s.length&&(this.min=this._userMin||s[0],this.max=this._userMax||s[s.length-1]);const o=this.min,r=this.max,a=Nh(s,o,r);return this._unit=n.unit||(i.autoSkip?qo(n.minUnit,this.min,this.max,this._getLabelCapacity(o)):hp(this,a.length,n.minUnit,this.min,this.max)),this._majorUnit=!i.major.enabled||this._unit==="year"?void 0:up(this._unit),this.initOffsets(s),t.reverse&&a.reverse(),Go(this,a,this._majorUnit)}afterAutoSkip(){this.options.offsetAfterAutoskip&&this.initOffsets(this.ticks.map(t=>+t.value))}initOffsets(t=[]){let n=0,i=0,s,o;this.options.offset&&t.length&&(s=this.getDecimalForValue(t[0]),t.length===1?n=1-s:n=(this.getDecimalForValue(t[1])-s)/2,o=this.getDecimalForValue(t[t.length-1]),t.length===1?i=o:i=(o-this.getDecimalForValue(t[t.length-2]))/2);const r=t.length<3?.5:.25;n=rt(n,0,r),i=rt(i,0,r),this._offsets={start:n,end:i,factor:1/(n+1+i)}}_generate(){const t=this._adapter,n=this.min,i=this.max,s=this.options,o=s.time,r=o.unit||qo(o.minUnit,n,i,this._getLabelCapacity(n)),a=j(s.ticks.stepSize,1),l=r==="week"?o.isoWeekday:!1,c=en(l)||l===!0,h={};let u=n,d,f;if(c&&(u=+t.startOf(u,"isoWeek",l)),u=+t.startOf(u,c?"day":r),t.diff(i,n,r)>1e5*a)throw new Error(n+" and "+i+" are too far apart with stepSize of "+a+" "+r);const g=s.ticks.source==="data"&&this.getDataTimestamps();for(d=u,f=0;d<i;d=+t.add(d,a,r),f++)Ko(h,d,g);return(d===i||s.bounds==="ticks"||f===1)&&Ko(h,d,g),Object.keys(h).sort(Uo).map(m=>+m)}getLabelForValue(t){const n=this._adapter,i=this.options.time;return i.tooltipFormat?n.format(t,i.tooltipFormat):n.format(t,i.displayFormats.datetime)}format(t,n){const s=this.options.time.displayFormats,o=this._unit,r=n||s[o];return this._adapter.format(t,r)}_tickFormatFunction(t,n,i,s){const o=this.options,r=o.ticks.callback;if(r)return Y(r,[t,n,i],this);const a=o.time.displayFormats,l=this._unit,c=this._majorUnit,h=l&&a[l],u=c&&a[c],d=i[n],f=c&&u&&d&&d.major;return this._adapter.format(t,s||(f?u:h))}generateTickLabels(t){let n,i,s;for(n=0,i=t.length;n<i;++n)s=t[n],s.label=this._tickFormatFunction(s.value,n,t)}getDecimalForValue(t){return t===null?NaN:(t-this.min)/(this.max-this.min)}getPixelForValue(t){const n=this._offsets,i=this.getDecimalForValue(t);return this.getPixelForDecimal((n.start+i)*n.factor)}getValueForPixel(t){const n=this._offsets,i=this.getDecimalForPixel(t)/n.factor-n.end;return this.min+i*(this.max-this.min)}_getLabelSize(t){const n=this.options.ticks,i=this.ctx.measureText(t).width,s=ae(this.isHorizontal()?n.maxRotation:n.minRotation),o=Math.cos(s),r=Math.sin(s),a=this._resolveTickFontOptions(0).size;return{w:i*o+a*r,h:i*r+a*o}}_getLabelCapacity(t){const n=this.options.time,i=n.displayFormats,s=i[n.unit]||i.millisecond,o=this._tickFormatFunction(t,0,Go(this,[t],this._majorUnit),s),r=this._getLabelSize(o),a=Math.floor(this.isHorizontal()?this.width/r.w:this.height/r.h)-1;return a>0?a:1}getDataTimestamps(){let t=this._cache.data||[],n,i;if(t.length)return t;const s=this.getMatchingVisibleMetas();if(this._normalized&&s.length)return this._cache.data=s[0].controller.getAllParsedValues(this);for(n=0,i=s.length;n<i;++n)t=t.concat(s[n].controller.getAllParsedValues(this));return this._cache.data=this.normalize(t)}getLabelTimestamps(){const t=this._cache.labels||[];let n,i;if(t.length)return t;const s=this.getLabels();for(n=0,i=s.length;n<i;++n)t.push(Xo(this,s[n]));return this._cache.labels=this._normalized?t:this.normalize(t)}normalize(t){return Kr(t.sort(Uo))}}R(Wn,"id","time"),R(Wn,"defaults",{bounds:"data",adapters:{},time:{parser:!1,unit:!1,round:!1,isoWeekday:!1,minUnit:"millisecond",displayFormats:{}},ticks:{source:"auto",callback:!1,major:{enabled:!1}}});function En(e,t,n){let i=0,s=e.length-1,o,r,a,l;n?(t>=e[i].pos&&t<=e[s].pos&&({lo:i,hi:s}=le(e,"pos",t)),{pos:o,time:a}=e[i],{pos:r,time:l}=e[s]):(t>=e[i].time&&t<=e[s].time&&({lo:i,hi:s}=le(e,"time",t)),{time:o,pos:a}=e[i],{time:r,pos:l}=e[s]);const c=r-o;return c?a+(l-a)*(t-o)/c:a}class Jo extends Wn{constructor(t){super(t),this._table=[],this._minPos=void 0,this._tableRange=void 0}initOffsets(){const t=this._getTimestampsForTable(),n=this._table=this.buildLookupTable(t);this._minPos=En(n,this.min),this._tableRange=En(n,this.max)-this._minPos,super.initOffsets(t)}buildLookupTable(t){const{min:n,max:i}=this,s=[],o=[];let r,a,l,c,h;for(r=0,a=t.length;r<a;++r)c=t[r],c>=n&&c<=i&&s.push(c);if(s.length<2)return[{time:n,pos:0},{time:i,pos:1}];for(r=0,a=s.length;r<a;++r)h=s[r+1],l=s[r-1],c=s[r],Math.round((h+l)/2)!==c&&o.push({time:c,pos:r/(a-1)});return o}_generate(){const t=this.min,n=this.max;let i=super.getDataTimestamps();return(!i.includes(t)||!i.length)&&i.splice(0,0,t),(!i.includes(n)||i.length===1)&&i.push(n),i.sort((s,o)=>s-o)}_getTimestampsForTable(){let t=this._cache.all||[];if(t.length)return t;const n=this.getDataTimestamps(),i=this.getLabelTimestamps();return n.length&&i.length?t=this.normalize(n.concat(i)):t=n.length?n:i,t=this._cache.all=t,t}getDecimalForValue(t){return(En(this._table,t)-this._minPos)/this._tableRange}getValueForPixel(t){const n=this._offsets,i=this.getDecimalForPixel(t)/n.factor-n.end;return En(this._table,i*this._tableRange+this._minPos,!0)}}R(Jo,"id","timeseries"),R(Jo,"defaults",Wn.defaults);var ie={},Zo;function fp(){if(Zo)return ie;Zo=1,Object.defineProperty(ie,"__esModule",{value:!0}),ie.cartesianProductGenerator=ie.cartesianProduct=void 0;function e(...i){if(!Array.isArray(i))throw new TypeError("Please, send an array.");const[s,o,...r]=i,a=n(s,o);return r.length?e(a,...r):a}ie.cartesianProduct=e;function*t(...i){if(!Array.isArray(i))throw new TypeError("Please, send an array.");const[s,o,...r]=i,a=n(s,o);yield a,r.length&&(yield*t(a,...r))}ie.cartesianProductGenerator=t;function n(i,s){const o=[];for(let r=0;r<i.length;r++){if(!s){o.push([i[r]]);continue}for(let a=0;a<s.length;a++)Array.isArray(i[r])?o.push([...i[r],s[a]]):o.push([i[r],s[a]])}return o}return ie}var rs=fp();const pp=function(e){let t=0;for(let i=0;i<e.length;i++)t=e.charCodeAt(i)+((t<<5)-t);let n="#";for(let i=0;i<3;i++){const o="00"+(t>>i*8&255).toString(16);n+=o.substring(o.length-2)}return n};function Tg(e,t=(n,i)=>{}){const n=new Map;for(const[i,s]of e){const o=new Map;for(const[r,a]of s){const l=new Map;for(const[c,h]of a){const u=t(r,h);if(u){l.set(c,{tooltip:u});continue}l.set(c,{})}o.set(r,l)}n.set(i,o)}return n}function Rg(e){const t=new Map;return e.forEach(n=>{const i=t.get(n.nren);(!i||i.year<n.year)&&t.set(n.nren,n)}),Array.from(t.values())}function Lg(e){return e.match(/^[a-zA-Z]+:\/\//)?e:"https://"+e}const Fg=e=>{const t={};return!e.urls&&!e.url||(e.urls&&e.urls.forEach(n=>{t[n]=n}),e.url&&(t[e.url]=e.url)),t};function Ig(e){const t=new Map;return e.forEach(n=>{let i=t.get(n.nren);i||(i=new Map);let s=i.get(n.year);s||(s=[]),s.push(n),i.set(n.year,s),t.set(n.nren,i)}),t}function Te(e){const t=new Map;return e.forEach(n=>{let i=t.get(n.nren);i||(i=new Map),i.set(n.year,n),t.set(n.nren,i)}),t}function jg(e,t){const n=new Map;return e.forEach((i,s)=>{const o=new Map;Array.from(i.keys()).sort((a,l)=>l-a).forEach(a=>{const l=i.get(a),c=o.get(a)||{};t(c,l),Object.keys(c).length>0&&o.set(a,c)}),n.set(s,o)}),n}function $g(e,t,n=!1){const i=new Map;return e.forEach(s=>{const o=a=>{let l=i.get(s.nren);l||(l=new Map);let c=l.get(a);c||(c=new Map),c.set(s.year,s),l.set(a,c),i.set(s.nren,l)};let r=s[t];typeof r=="boolean"&&(r=r?"True":"False"),n&&r==null&&(r=`${r}`),Array.isArray(r)?r.forEach(o):o(r)}),i}function zg(e,t,n,i=!0,s){const o=new Map,r=(a,l,c)=>{a.forEach(h=>{let u=l?h[l]:c;typeof u=="boolean"&&(u=u?"True":"False");const d=h.nren,f=h.year,g=o.get(d)||new Map,m=g.get(f)||new Map,p=m.get(u)||{},b=h[c];if(b==null)return;const x=i?b:c,v=p[x]||{};v[`${b}`]=b,p[x]=v,m.set(u,p),g.set(f,m),o.set(d,g)})};if(n)for(const a of t)r(e,n,a);else for(const a of t)r(e,void 0,a);return o}const Ng=e=>{function t(){const u=(f,g,m)=>"#"+[f,g,m].map(p=>{const b=p.toString(16);return b.length===1?"0"+b:b}).join(""),d=new Map;return d.set("client_institutions",u(157,40,114)),d.set("commercial",u(241,224,79)),d.set("european_funding",u(219,42,76)),d.set("gov_public_bodies",u(237,141,24)),d.set("other",u(137,166,121)),d}const n=Te(e),i=t(),s=[...new Set(e.map(u=>u.year))].sort(),o=[...new Set(e.map(u=>u.nren))].sort(),r={client_institutions:"Client Institutions",commercial:"Commercial",european_funding:"European Funding",gov_public_bodies:"Government/Public Bodies",other:"Other"},a=Object.keys(r),l=rs.cartesianProduct(Object.keys(r),s).reduce((u,[d,f])=>{const g=`${d},${f}`;return u[g]={},u},{});return n.forEach((u,d)=>{u.forEach((f,g)=>{const m=a.map(b=>f[b]||0);if(m.reduce((b,x)=>b+x,0)!==0)for(const b of a){const x=`${b},${g}`,v=a.indexOf(b);l[x][d]=m[v]}})}),{datasets:Array.from(Object.entries(l)).map(([u,d])=>{const[f,g]=u.split(",");return{backgroundColor:i.get(f)||"black",label:r[f]+" ("+g+")",data:o.map(p=>d[p]),stack:g,borderSkipped:!0,barPercentage:.8,borderWidth:.5,categoryPercentage:.8,hidden:!1,datalabels:{display:f==a[0],formatter:function(p,b){return b.dataset.stack},font:{family:'"Open Sans", sans-serif',size:16,weight:"700"},anchor:"start",align:"end",offset:function(p){return p.chart.chartArea.width}}}}),labels:o.map(u=>u.toString())}};function Bg(e,t){const n=[...new Set(e.map(r=>r.year))].sort(),i=[...new Set(e.map(r=>r.nren))].sort(),s=Te(e);return{datasets:i.map(r=>{const a=pp(r);return{backgroundColor:a,borderColor:a,data:n.map(l=>{const c=s.get(r);if(!c)return null;const h=c.get(l);return h?h[t]:null}),label:r,hidden:!1}}),labels:n.map(r=>r.toString())}}const Hg=(e,t,n)=>{let i;t?i=["Technical FTE","Non-technical FTE"]:i=["Permanent FTE","Subcontracted FTE"];const s={"Technical FTE":"technical_fte","Non-technical FTE":"non_technical_fte","Permanent FTE":"permanent_fte","Subcontracted FTE":"subcontracted_fte"},[o,r]=i,[a,l]=[s[o],s[r]];function c(p){const b=p[a],x=p[l],v=b+x,_=(b/v||0)*100,y=(x/v||0)*100,w={};return w[o]=Math.round(Math.floor(_*100))/100,w[r]=Math.round(Math.floor(y*100))/100,w}const h=Te(e),u=[n].sort(),d=[...new Set(e.map(p=>p.nren))].sort((p,b)=>p.localeCompare(b));return{datasets:rs.cartesianProduct(i,u).map(function([p,b]){let x="";return p==="Technical FTE"?x="rgba(40, 40, 250, 0.8)":p==="Permanent FTE"?x="rgba(159, 129, 235, 1)":p==="Subcontracted FTE"?x="rgba(173, 216, 229, 1)":p==="Non-technical FTE"&&(x="rgba(116, 216, 242, 0.54)"),{backgroundColor:x,label:`${p} (${b})`,data:d.map(v=>{const _=h.get(v).get(b);return _?c(_)[p]:0}),stack:b,borderRadius:10,borderSkipped:!0,barPercentage:.8,borderWidth:.5,categoryPercentage:.8,hidden:!1}}),labels:d}},Wg=(e,t)=>{const n=["Research & Education","Commodity"],i={"Research & Education":"r_and_e_percentage",Commodity:"commodity_percentage"},s=Te(e),o=[t].sort(),r=[...new Set(e.map(h=>h.nren))].sort((h,u)=>h.localeCompare(u));return{datasets:rs.cartesianProduct(n,o).map(function([h,u]){let d="";return h==="Research & Education"?d="rgba(40, 40, 250, 0.8)":h==="Commodity"&&(d="rgba(116, 216, 242, 0.54)"),{backgroundColor:d,label:`${h} (${u})`,data:r.map(f=>{const g=s.get(f).get(u);return g?g[i[h]]:0}),stack:u,borderRadius:10,borderSkipped:!0,barPercentage:.8,borderWidth:.5,categoryPercentage:.8,hidden:!1}}),labels:r}},Vg=(e,t)=>{const n=["Permanent FTE","Subcontracted FTE"],i={"Technical FTE":"technical_fte","Non-technical FTE":"non_technical_fte","Permanent FTE":"permanent_fte","Subcontracted FTE":"subcontracted_fte"},[s,o]=n,[r,a]=[i[s],i[o]],l=Te(e),c=[...new Set(e.map(f=>f.nren))].sort((f,g)=>f.localeCompare(g));function h(f,g){return{backgroundColor:"rgba(219, 42, 76, 1)",label:`Number of FTEs (${f})`,data:c.map(p=>{const b=l.get(p).get(f);return b?(b[r]??0)+(b[a]??0):0}),stack:`${f}`,borderRadius:10,borderSkipped:!0,barPercentage:.8,borderWidth:.5,categoryPercentage:.8,hidden:!1,datalabels:{display:!0,formatter:function(p,b){return b.dataset.stack},font:{family:'"Open Sans", sans-serif',size:16,weight:"700"},anchor:"start",align:"end",offset:function(p){return p.chart.chartArea.width}}}}return{datasets:t.sort().map(h),labels:c}},Yg=(e,t,n)=>{const i=Te(e),s=[...new Set(e.map(l=>l.nren))].sort((l,c)=>l.localeCompare(c)),o=[...new Set(e.map(l=>l.year))].sort();function r(l,c){return{backgroundColor:"rgba(219, 42, 76, 1)",label:`${n} (${l})`,data:s.map(u=>{const d=i.get(u).get(l);return d?d[t]??0:0}),stack:`${l}`,borderRadius:10,borderSkipped:!0,barPercentage:.8,borderWidth:.5,categoryPercentage:.8,hidden:!1,datalabels:{display:!0,formatter:function(u,d){return d.dataset.stack},font:{family:'"Open Sans", sans-serif',size:16,weight:"700"},anchor:"start",align:"end",offset:function(u){return u.chart.chartArea.width}}}}return{datasets:o.sort().map(r),labels:s}},gp=e=>{const t=wt.c(41),{activeCategory:n}=e,i=el();let s;t[0]!==n||t[1]!==i?(s=()=>i(n===G.Organisation?".":"/funding"),t[0]=n,t[1]=i,t[2]=s):s=t[2];const o=n===G.Organisation;let r;t[3]===Symbol.for("react.memo_cache_sentinel")?(r=M.jsx("span",{children:G.Organisation}),t[3]=r):r=t[3];let a;t[4]!==s||t[5]!==o?(a=M.jsx(Ft,{onClick:s,variant:"nav-box",active:o,children:r}),t[4]=s,t[5]=o,t[6]=a):a=t[6];let l;t[7]!==n||t[8]!==i?(l=()=>i(n===G.Policy?".":"/corporate-strategy"),t[7]=n,t[8]=i,t[9]=l):l=t[9];const c=n===G.Policy;let h;t[10]===Symbol.for("react.memo_cache_sentinel")?(h=M.jsx("span",{children:G.Policy}),t[10]=h):h=t[10];let u;t[11]!==l||t[12]!==c?(u=M.jsx(Ft,{onClick:l,variant:"nav-box",active:c,children:h}),t[11]=l,t[12]=c,t[13]=u):u=t[13];let d;t[14]!==n||t[15]!==i?(d=()=>i(n===G.ConnectedUsers?".":"/institutions-urls"),t[14]=n,t[15]=i,t[16]=d):d=t[16];const f=n===G.ConnectedUsers;let g;t[17]===Symbol.for("react.memo_cache_sentinel")?(g=M.jsx("span",{children:G.ConnectedUsers}),t[17]=g):g=t[17];let m;t[18]!==f||t[19]!==d?(m=M.jsx(Ft,{onClick:d,variant:"nav-box",active:f,children:g}),t[18]=f,t[19]=d,t[20]=m):m=t[20];let p;t[21]!==n||t[22]!==i?(p=()=>i(n===G.Network?".":"/dark-fibre-lease"),t[21]=n,t[22]=i,t[23]=p):p=t[23];const b=n===G.Network;let x;t[24]===Symbol.for("react.memo_cache_sentinel")?(x=M.jsx("span",{children:G.Network}),t[24]=x):x=t[24];let v;t[25]!==p||t[26]!==b?(v=M.jsx(Ft,{onClick:p,variant:"nav-box",active:b,children:x}),t[25]=p,t[26]=b,t[27]=v):v=t[27];let _;t[28]!==n||t[29]!==i?(_=()=>i(n===G.Services?".":"/network-services"),t[28]=n,t[29]=i,t[30]=_):_=t[30];const y=n===G.Services;let w;t[31]===Symbol.for("react.memo_cache_sentinel")?(w=M.jsx("span",{children:G.Services}),t[31]=w):w=t[31];let k;t[32]!==_||t[33]!==y?(k=M.jsx(Ft,{onClick:_,variant:"nav-box",active:y,children:w}),t[32]=_,t[33]=y,t[34]=k):k=t[34];let S;return t[35]!==m||t[36]!==v||t[37]!==k||t[38]!==a||t[39]!==u?(S=M.jsx(hr,{children:M.jsx(se,{children:M.jsxs(Ri,{className:"navbox-bar gap-2 m-3",children:[a,u,m,v,k]})})}),t[35]=m,t[36]=v,t[37]=k,t[38]=a,t[39]=u,t[40]=S):S=t[40],S},mp=()=>{const e=wt.c(1);let t;return e[0]===Symbol.for("react.memo_cache_sentinel")?(t=M.jsx(rn,{children:M.jsx(nl,{sidebar:!0})}),e[0]=t):t=e[0],t},bp=()=>{const e=wt.c(1);let t;return e[0]===Symbol.for("react.memo_cache_sentinel")?(t=M.jsx(rn,{children:M.jsx(il,{sidebar:!0})}),e[0]=t):t=e[0],t},xp=()=>{const e=wt.c(1);let t;return e[0]===Symbol.for("react.memo_cache_sentinel")?(t=M.jsx(rn,{children:M.jsx(sl,{sidebar:!0})}),e[0]=t):t=e[0],t},yp=()=>{const e=wt.c(1);let t;return e[0]===Symbol.for("react.memo_cache_sentinel")?(t=M.jsx(rn,{children:M.jsx(ol,{sidebar:!0})}),e[0]=t):t=e[0],t},vp=()=>{const e=wt.c(1);let t;return e[0]===Symbol.for("react.memo_cache_sentinel")?(t=M.jsx(rn,{children:M.jsx(rl,{sidebar:!0})}),e[0]=t):t=e[0],t};function _p(e,t){return e.map(n=>t.map(i=>{const s=n[i];return s===null?"":typeof s=="string"?`"${s.replace(/"/g,'""')}"`:s}).join(","))}function wp(e){if(!e.length)return"";const t=Object.keys(e[0]),n=_p(e,t);return[t.join(","),...n].join(`\r +`)}function Sp(e,t="Sheet1"){const n=Qn.json_to_sheet(e),i=Qn.book_new();Qn.book_append_sheet(i,n,t);const s=fl(i,{bookType:"xlsx",type:"binary"}),o=new ArrayBuffer(s.length),r=new Uint8Array(o);for(let a=0;a<s.length;a++)r[a]=s.charCodeAt(a)&255;return new Blob([o],{type:"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet;charset=UTF-8"})}const Qo=({data:e,filename:t,exportType:n})=>{const i=()=>{let o,r,a;switch(n){case ve.EXCEL:{o=Sp(e),r="xlsx",a="application/vnd.openxmlformats-officedocument.spreadsheetml.sheet;charset=UTF-8";break}case ve.CSV:default:{o=wp(e),r="csv",a="text/csv;charset=UTF-8";break}}const l=new Blob([o],{type:a});t=t.endsWith(r)?t:`${t}.${r}`;const c=document.createElement("a");c.href=URL.createObjectURL(l),c.download=t,document.body.appendChild(c),c.click(),document.body.removeChild(c)};let s="downloadbutton";return n===ve.CSV?s+=" downloadcsv":n===ve.EXCEL&&(s+=" downloadexcel"),M.jsxs("button",{className:s,onClick:i,children:[n," ",M.jsx(fr,{})]})};function kp(e,t){if(e.match(/^[a-z]+:\/\//i))return e;if(e.match(/^\/\//))return window.location.protocol+e;if(e.match(/^[a-z]+:/i))return e;const n=document.implementation.createHTMLDocument(),i=n.createElement("base"),s=n.createElement("a");return n.head.appendChild(i),n.body.appendChild(s),t&&(i.href=t),s.href=e,s.href}const Mp=(()=>{let e=0;const t=()=>`0000${(Math.random()*36**4<<0).toString(36)}`.slice(-4);return()=>(e+=1,`u${t()}${e}`)})();function Yt(e){const t=[];for(let n=0,i=e.length;n<i;n++)t.push(e[n]);return t}let xe=null;function Da(e={}){return xe||(e.includeStyleProperties?(xe=e.includeStyleProperties,xe):(xe=Yt(window.getComputedStyle(document.documentElement)),xe))}function Vn(e,t){const i=(e.ownerDocument.defaultView||window).getComputedStyle(e).getPropertyValue(t);return i?parseFloat(i.replace("px","")):0}function Cp(e){const t=Vn(e,"border-left-width"),n=Vn(e,"border-right-width");return e.clientWidth+t+n}function Pp(e){const t=Vn(e,"border-top-width"),n=Vn(e,"border-bottom-width");return e.clientHeight+t+n}function Ea(e,t={}){const n=t.width||Cp(e),i=t.height||Pp(e);return{width:n,height:i}}function Op(){let e,t;try{t=process}catch{}const n=t&&t.env?t.env.devicePixelRatio:null;return n&&(e=parseInt(n,10),Number.isNaN(e)&&(e=1)),e||window.devicePixelRatio||1}const pt=16384;function Dp(e){(e.width>pt||e.height>pt)&&(e.width>pt&&e.height>pt?e.width>e.height?(e.height*=pt/e.width,e.width=pt):(e.width*=pt/e.height,e.height=pt):e.width>pt?(e.height*=pt/e.width,e.width=pt):(e.width*=pt/e.height,e.height=pt))}function Yn(e){return new Promise((t,n)=>{const i=new Image;i.onload=()=>{i.decode().then(()=>{requestAnimationFrame(()=>t(i))})},i.onerror=n,i.crossOrigin="anonymous",i.decoding="async",i.src=e})}async function Ep(e){return Promise.resolve().then(()=>new XMLSerializer().serializeToString(e)).then(encodeURIComponent).then(t=>`data:image/svg+xml;charset=utf-8,${t}`)}async function Ap(e,t,n){const i="http://www.w3.org/2000/svg",s=document.createElementNS(i,"svg"),o=document.createElementNS(i,"foreignObject");return s.setAttribute("width",`${t}`),s.setAttribute("height",`${n}`),s.setAttribute("viewBox",`0 0 ${t} ${n}`),o.setAttribute("width","100%"),o.setAttribute("height","100%"),o.setAttribute("x","0"),o.setAttribute("y","0"),o.setAttribute("externalResourcesRequired","true"),s.appendChild(o),o.appendChild(e),Ep(s)}const ft=(e,t)=>{if(e instanceof t)return!0;const n=Object.getPrototypeOf(e);return n===null?!1:n.constructor.name===t.name||ft(n,t)};function Tp(e){const t=e.getPropertyValue("content");return`${e.cssText} content: '${t.replace(/'|"/g,"")}';`}function Rp(e,t){return Da(t).map(n=>{const i=e.getPropertyValue(n),s=e.getPropertyPriority(n);return`${n}: ${i}${s?" !important":""};`}).join(" ")}function Lp(e,t,n,i){const s=`.${e}:${t}`,o=n.cssText?Tp(n):Rp(n,i);return document.createTextNode(`${s}{${o}}`)}function tr(e,t,n,i){const s=window.getComputedStyle(e,n),o=s.getPropertyValue("content");if(o===""||o==="none")return;const r=Mp();try{t.className=`${t.className} ${r}`}catch{return}const a=document.createElement("style");a.appendChild(Lp(r,n,s,i)),t.appendChild(a)}function Fp(e,t,n){tr(e,t,":before",n),tr(e,t,":after",n)}const er="application/font-woff",nr="image/jpeg",Ip={woff:er,woff2:er,ttf:"application/font-truetype",eot:"application/vnd.ms-fontobject",png:"image/png",jpg:nr,jpeg:nr,gif:"image/gif",tiff:"image/tiff",svg:"image/svg+xml",webp:"image/webp"};function jp(e){const t=/\.([^./]*?)$/g.exec(e);return t?t[1]:""}function as(e){const t=jp(e).toLowerCase();return Ip[t]||""}function $p(e){return e.split(/,/)[1]}function Ti(e){return e.search(/^(data:)/)!==-1}function zp(e,t){return`data:${t};base64,${e}`}async function Aa(e,t,n){const i=await fetch(e,t);if(i.status===404)throw new Error(`Resource "${i.url}" not found`);const s=await i.blob();return new Promise((o,r)=>{const a=new FileReader;a.onerror=r,a.onloadend=()=>{try{o(n({res:i,result:a.result}))}catch(l){r(l)}},a.readAsDataURL(s)})}const yi={};function Np(e,t,n){let i=e.replace(/\?.*/,"");return n&&(i=e),/ttf|otf|eot|woff2?/i.test(i)&&(i=i.replace(/.*\//,"")),t?`[${t}]${i}`:i}async function ls(e,t,n){const i=Np(e,t,n.includeQueryParams);if(yi[i]!=null)return yi[i];n.cacheBust&&(e+=(/\?/.test(e)?"&":"?")+new Date().getTime());let s;try{const o=await Aa(e,n.fetchRequestInit,({res:r,result:a})=>(t||(t=r.headers.get("Content-Type")||""),$p(a)));s=zp(o,t)}catch(o){s=n.imagePlaceholder||"";let r=`Failed to fetch resource: ${e}`;o&&(r=typeof o=="string"?o:o.message),r&&console.warn(r)}return yi[i]=s,s}async function Bp(e){const t=e.toDataURL();return t==="data:,"?e.cloneNode(!1):Yn(t)}async function Hp(e,t){if(e.currentSrc){const o=document.createElement("canvas"),r=o.getContext("2d");o.width=e.clientWidth,o.height=e.clientHeight,r==null||r.drawImage(e,0,0,o.width,o.height);const a=o.toDataURL();return Yn(a)}const n=e.poster,i=as(n),s=await ls(n,i,t);return Yn(s)}async function Wp(e,t){var n;try{if(!((n=e==null?void 0:e.contentDocument)===null||n===void 0)&&n.body)return await Gn(e.contentDocument.body,t,!0)}catch{}return e.cloneNode(!1)}async function Vp(e,t){return ft(e,HTMLCanvasElement)?Bp(e):ft(e,HTMLVideoElement)?Hp(e,t):ft(e,HTMLIFrameElement)?Wp(e,t):e.cloneNode(Ta(e))}const Yp=e=>e.tagName!=null&&e.tagName.toUpperCase()==="SLOT",Ta=e=>e.tagName!=null&&e.tagName.toUpperCase()==="SVG";async function Up(e,t,n){var i,s;if(Ta(t))return t;let o=[];return Yp(e)&&e.assignedNodes?o=Yt(e.assignedNodes()):ft(e,HTMLIFrameElement)&&(!((i=e.contentDocument)===null||i===void 0)&&i.body)?o=Yt(e.contentDocument.body.childNodes):o=Yt(((s=e.shadowRoot)!==null&&s!==void 0?s:e).childNodes),o.length===0||ft(e,HTMLVideoElement)||await o.reduce((r,a)=>r.then(()=>Gn(a,n)).then(l=>{l&&t.appendChild(l)}),Promise.resolve()),t}function Xp(e,t,n){const i=t.style;if(!i)return;const s=window.getComputedStyle(e);s.cssText?(i.cssText=s.cssText,i.transformOrigin=s.transformOrigin):Da(n).forEach(o=>{let r=s.getPropertyValue(o);o==="font-size"&&r.endsWith("px")&&(r=`${Math.floor(parseFloat(r.substring(0,r.length-2)))-.1}px`),ft(e,HTMLIFrameElement)&&o==="display"&&r==="inline"&&(r="block"),o==="d"&&t.getAttribute("d")&&(r=`path(${t.getAttribute("d")})`),i.setProperty(o,r,s.getPropertyPriority(o))})}function qp(e,t){ft(e,HTMLTextAreaElement)&&(t.innerHTML=e.value),ft(e,HTMLInputElement)&&t.setAttribute("value",e.value)}function Kp(e,t){if(ft(e,HTMLSelectElement)){const n=t,i=Array.from(n.children).find(s=>e.value===s.getAttribute("value"));i&&i.setAttribute("selected","")}}function Gp(e,t,n){return ft(t,Element)&&(Xp(e,t,n),Fp(e,t,n),qp(e,t),Kp(e,t)),t}async function Jp(e,t){const n=e.querySelectorAll?e.querySelectorAll("use"):[];if(n.length===0)return e;const i={};for(let o=0;o<n.length;o++){const a=n[o].getAttribute("xlink:href");if(a){const l=e.querySelector(a),c=document.querySelector(a);!l&&c&&!i[a]&&(i[a]=await Gn(c,t,!0))}}const s=Object.values(i);if(s.length){const o="http://www.w3.org/1999/xhtml",r=document.createElementNS(o,"svg");r.setAttribute("xmlns",o),r.style.position="absolute",r.style.width="0",r.style.height="0",r.style.overflow="hidden",r.style.display="none";const a=document.createElementNS(o,"defs");r.appendChild(a);for(let l=0;l<s.length;l++)a.appendChild(s[l]);e.appendChild(r)}return e}async function Gn(e,t,n){return!n&&t.filter&&!t.filter(e)?null:Promise.resolve(e).then(i=>Vp(i,t)).then(i=>Up(e,i,t)).then(i=>Gp(e,i,t)).then(i=>Jp(i,t))}const Ra=/url\((['"]?)([^'"]+?)\1\)/g,Zp=/url\([^)]+\)\s*format\((["']?)([^"']+)\1\)/g,Qp=/src:\s*(?:url\([^)]+\)\s*format\([^)]+\)[,;]\s*)+/g;function tg(e){const t=e.replace(/([.*+?^${}()|\[\]\/\\])/g,"\\$1");return new RegExp(`(url\\(['"]?)(${t})(['"]?\\))`,"g")}function eg(e){const t=[];return e.replace(Ra,(n,i,s)=>(t.push(s),n)),t.filter(n=>!Ti(n))}async function ng(e,t,n,i,s){try{const o=n?kp(t,n):t,r=as(t);let a;return s||(a=await ls(o,r,i)),e.replace(tg(t),`$1${a}$3`)}catch{}return e}function ig(e,{preferredFontFormat:t}){return t?e.replace(Qp,n=>{for(;;){const[i,,s]=Zp.exec(n)||[];if(!s)return"";if(s===t)return`src: ${i};`}}):e}function La(e){return e.search(Ra)!==-1}async function Fa(e,t,n){if(!La(e))return e;const i=ig(e,n);return eg(i).reduce((o,r)=>o.then(a=>ng(a,r,t,n)),Promise.resolve(i))}async function ye(e,t,n){var i;const s=(i=t.style)===null||i===void 0?void 0:i.getPropertyValue(e);if(s){const o=await Fa(s,null,n);return t.style.setProperty(e,o,t.style.getPropertyPriority(e)),!0}return!1}async function sg(e,t){await ye("background",e,t)||await ye("background-image",e,t),await ye("mask",e,t)||await ye("-webkit-mask",e,t)||await ye("mask-image",e,t)||await ye("-webkit-mask-image",e,t)}async function og(e,t){const n=ft(e,HTMLImageElement);if(!(n&&!Ti(e.src))&&!(ft(e,SVGImageElement)&&!Ti(e.href.baseVal)))return;const i=n?e.src:e.href.baseVal,s=await ls(i,as(i),t);await new Promise((o,r)=>{e.onload=o,e.onerror=t.onImageErrorHandler?(...l)=>{try{o(t.onImageErrorHandler(...l))}catch(c){r(c)}}:r;const a=e;a.decode&&(a.decode=o),a.loading==="lazy"&&(a.loading="eager"),n?(e.srcset="",e.src=s):e.href.baseVal=s})}async function rg(e,t){const i=Yt(e.childNodes).map(s=>Ia(s,t));await Promise.all(i).then(()=>e)}async function Ia(e,t){ft(e,Element)&&(await sg(e,t),await og(e,t),await rg(e,t))}function ag(e,t){const{style:n}=e;t.backgroundColor&&(n.backgroundColor=t.backgroundColor),t.width&&(n.width=`${t.width}px`),t.height&&(n.height=`${t.height}px`);const i=t.style;return i!=null&&Object.keys(i).forEach(s=>{n[s]=i[s]}),e}const ir={};async function sr(e){let t=ir[e];if(t!=null)return t;const i=await(await fetch(e)).text();return t={url:e,cssText:i},ir[e]=t,t}async function or(e,t){let n=e.cssText;const i=/url\(["']?([^"')]+)["']?\)/g,o=(n.match(/url\([^)]+\)/g)||[]).map(async r=>{let a=r.replace(i,"$1");return a.startsWith("https://")||(a=new URL(a,e.url).href),Aa(a,t.fetchRequestInit,({result:l})=>(n=n.replace(r,`url(${l})`),[r,l]))});return Promise.all(o).then(()=>n)}function rr(e){if(e==null)return[];const t=[],n=/(\/\*[\s\S]*?\*\/)/gi;let i=e.replace(n,"");const s=new RegExp("((@.*?keyframes [\\s\\S]*?){([\\s\\S]*?}\\s*?)})","gi");for(;;){const l=s.exec(i);if(l===null)break;t.push(l[0])}i=i.replace(s,"");const o=/@import[\s\S]*?url\([^)]*\)[\s\S]*?;/gi,r="((\\s*?(?:\\/\\*[\\s\\S]*?\\*\\/)?\\s*?@media[\\s\\S]*?){([\\s\\S]*?)}\\s*?})|(([\\s\\S]*?){([\\s\\S]*?)})",a=new RegExp(r,"gi");for(;;){let l=o.exec(i);if(l===null){if(l=a.exec(i),l===null)break;o.lastIndex=a.lastIndex}else a.lastIndex=o.lastIndex;t.push(l[0])}return t}async function lg(e,t){const n=[],i=[];return e.forEach(s=>{if("cssRules"in s)try{Yt(s.cssRules||[]).forEach((o,r)=>{if(o.type===CSSRule.IMPORT_RULE){let a=r+1;const l=o.href,c=sr(l).then(h=>or(h,t)).then(h=>rr(h).forEach(u=>{try{s.insertRule(u,u.startsWith("@import")?a+=1:s.cssRules.length)}catch(d){console.error("Error inserting rule from remote css",{rule:u,error:d})}})).catch(h=>{console.error("Error loading remote css",h.toString())});i.push(c)}})}catch(o){const r=e.find(a=>a.href==null)||document.styleSheets[0];s.href!=null&&i.push(sr(s.href).then(a=>or(a,t)).then(a=>rr(a).forEach(l=>{r.insertRule(l,r.cssRules.length)})).catch(a=>{console.error("Error loading remote stylesheet",a)})),console.error("Error inlining remote css file",o)}}),Promise.all(i).then(()=>(e.forEach(s=>{if("cssRules"in s)try{Yt(s.cssRules||[]).forEach(o=>{n.push(o)})}catch(o){console.error(`Error while reading CSS rules from ${s.href}`,o)}}),n))}function cg(e){return e.filter(t=>t.type===CSSRule.FONT_FACE_RULE).filter(t=>La(t.style.getPropertyValue("src")))}async function hg(e,t){if(e.ownerDocument==null)throw new Error("Provided element is not within a Document");const n=Yt(e.ownerDocument.styleSheets),i=await lg(n,t);return cg(i)}function ja(e){return e.trim().replace(/["']/g,"")}function ug(e){const t=new Set;function n(i){(i.style.fontFamily||getComputedStyle(i).fontFamily).split(",").forEach(o=>{t.add(ja(o))}),Array.from(i.children).forEach(o=>{o instanceof HTMLElement&&n(o)})}return n(e),t}async function dg(e,t){const n=await hg(e,t),i=ug(e);return(await Promise.all(n.filter(o=>i.has(ja(o.style.fontFamily))).map(o=>{const r=o.parentStyleSheet?o.parentStyleSheet.href:null;return Fa(o.cssText,r,t)}))).join(` +`)}async function fg(e,t){const n=t.fontEmbedCSS!=null?t.fontEmbedCSS:t.skipFonts?null:await dg(e,t);if(n){const i=document.createElement("style"),s=document.createTextNode(n);i.appendChild(s),e.firstChild?e.insertBefore(i,e.firstChild):e.appendChild(i)}}async function $a(e,t={}){const{width:n,height:i}=Ea(e,t),s=await Gn(e,t,!0);return await fg(s,t),await Ia(s,t),ag(s,t),await Ap(s,n,i)}async function za(e,t={}){const{width:n,height:i}=Ea(e,t),s=await $a(e,t),o=await Yn(s),r=document.createElement("canvas"),a=r.getContext("2d"),l=t.pixelRatio||Op(),c=t.canvasWidth||n,h=t.canvasHeight||i;return r.width=c*l,r.height=h*l,t.skipAutoScale||Dp(r),r.style.width=`${c}`,r.style.height=`${h}`,t.backgroundColor&&(a.fillStyle=t.backgroundColor,a.fillRect(0,0,r.width,r.height)),a.drawImage(o,0,0,r.width,r.height),r}async function pg(e,t={}){return(await za(e,t)).toDataURL()}async function gg(e,t={}){return(await za(e,t)).toDataURL("image/jpeg",t.quality||1)}const mg=e=>{const t=wt.c(17),{filename:n}=e,i=E.useContext(ur),[s,o]=E.useState(!1),r=E.useRef(null);let a;t[0]!==i||t[1]!==n?(a=async v=>{if(i!=null&&i.current){o(!1);const _={transform:"scale(1)","transform-origin":"top left",background:"white"};let y;t:switch(v){case ge.JPEG:{y=await gg(i.current,{quality:.95,style:_});break t}case ge.SVG:{y=await $a(i.current,{style:_});break t}case ge.PNG:default:y=await pg(i.current,{style:_})}const w=document.createElement("a");w.href=typeof y=="string"?y:URL.createObjectURL(y),w.download=`${n}.${v}`,document.body.appendChild(w),w.click(),document.body.removeChild(w)}},t[0]=i,t[1]=n,t[2]=a):a=t[2];const l=a;let c;t[3]!==s?(c=()=>{o(!s)},t[3]=s,t[4]=c):c=t[4];const h=c;let u;t[5]===Symbol.for("react.memo_cache_sentinel")?(u=v=>{r.current&&!r.current.contains(v.target)&&o(!1)},t[5]=u):u=t[5];const d=u;let f,g;t[6]===Symbol.for("react.memo_cache_sentinel")?(f=()=>(document.addEventListener("mousedown",d),()=>{document.removeEventListener("mousedown",d)}),g=[],t[6]=f,t[7]=g):(f=t[6],g=t[7]),E.useEffect(f,g);let m;t[8]===Symbol.for("react.memo_cache_sentinel")?(m=M.jsx(fr,{}),t[8]=m):m=t[8];let p;t[9]!==h?(p=M.jsxs("button",{className:"downloadbutton downloadimage",onClick:h,children:["IMAGE ",m]}),t[9]=h,t[10]=p):p=t[10];let b;t[11]!==l||t[12]!==s?(b=s&&M.jsxs("div",{className:"image-options",children:[M.jsx("div",{className:"imageoption downloadpng",onClick:()=>l(ge.PNG),children:M.jsx("span",{children:"PNG"})}),M.jsx("div",{className:"imageoption downloadjpeg",onClick:()=>l(ge.JPEG),children:M.jsx("span",{children:"JPEG"})}),M.jsx("div",{className:"imageoption downloadsvg",onClick:()=>l(ge.SVG),children:M.jsx("span",{children:"SVG"})})]}),t[11]=l,t[12]=s,t[13]=b):b=t[13];let x;return t[14]!==p||t[15]!==b?(x=M.jsxs("div",{className:"image-dropdown",ref:r,children:[p,b]}),t[14]=p,t[15]=b,t[16]=x):x=t[16],x};Ct.defaults.font.size=16;Ct.defaults.font.family="Open Sans";Ct.defaults.font.weight=700;function Ug(e){const t=wt.c(55),{title:n,description:i,filter:s,children:o,category:r,data:a,filename:l}=e,{preview:c,setPreview:h}=E.useContext(al),u=window.location.origin+window.location.pathname,{trackPageView:d}=ll();let f,g;t[0]!==n||t[1]!==d?(f=()=>{d({documentTitle:n})},g=[d,n],t[0]=n,t[1]=d,t[2]=f,t[3]=g):(f=t[2],g=t[3]),E.useEffect(f,g);let m;t[4]!==r?(m=r===G.Organisation&&M.jsx(mp,{}),t[4]=r,t[5]=m):m=t[5];let p;t[6]!==r?(p=r===G.Policy&&M.jsx(bp,{}),t[6]=r,t[7]=p):p=t[7];let b;t[8]!==r?(b=r===G.Network&&M.jsx(yp,{}),t[8]=r,t[9]=b):b=t[9];let x;t[10]!==r?(x=r===G.ConnectedUsers&&M.jsx(xp,{}),t[10]=r,t[11]=x):x=t[11];let v;t[12]!==r?(v=r===G.Services&&M.jsx(vp,{}),t[12]=r,t[13]=v):v=t[13];let _;t[14]===Symbol.for("react.memo_cache_sentinel")?(_=M.jsx(cl,{type:"data"}),t[14]=_):_=t[14];let y;t[15]!==c||t[16]!==h?(y=c&&M.jsx(se,{className:"preview-banner",children:M.jsxs("span",{children:["You are viewing a preview of the website which includes pre-published survey data. ",M.jsx(hl,{to:u,onClick:()=>h(!1),children:"Click here"})," to deactivate preview mode."]})}),t[15]=c,t[16]=h,t[17]=y):y=t[17];let w;t[18]!==r?(w=M.jsx(gp,{activeCategory:r}),t[18]=r,t[19]=w):w=t[19];let k;t[20]!==n?(k=M.jsx(se,{children:M.jsx("h3",{className:"m-1",children:n})}),t[20]=n,t[21]=k):k=t[21];let S;t[22]!==i?(S=M.jsx(se,{children:M.jsx("p",{className:"p-md-4",children:i})}),t[22]=i,t[23]=S):S=t[23];const C=`${l}.csv`;let D;t[24]!==a||t[25]!==C?(D=M.jsx(Qo,{data:a,filename:C,exportType:ve.CSV}),t[24]=a,t[25]=C,t[26]=D):D=t[26];const P=`${l}.xlsx`;let O;t[27]!==a||t[28]!==P?(O=M.jsx(Qo,{data:a,filename:P,exportType:ve.EXCEL}),t[27]=a,t[28]=P,t[29]=O):O=t[29];let A;t[30]!==l?(A=M.jsx(mg,{filename:l}),t[30]=l,t[31]=A):A=t[31];let I;t[32]!==D||t[33]!==O||t[34]!==A?(I=M.jsxs(se,{className:"downloadcontainer",children:[D,O,A]}),t[32]=D,t[33]=O,t[34]=A,t[35]=I):I=t[35];let T;t[36]!==s?(T=M.jsx(se,{children:s}),t[36]=s,t[37]=T):T=t[37];let L;t[38]!==o?(L=M.jsx(se,{children:o}),t[38]=o,t[39]=L):L=t[39];let F;t[40]!==k||t[41]!==S||t[42]!==I||t[43]!==T||t[44]!==L?(F=M.jsxs(hr,{className:"mb-5 grow",children:[k,S,I,T,L]}),t[40]=k,t[41]=S,t[42]=I,t[43]=T,t[44]=L,t[45]=F):F=t[45];let H;return t[46]!==w||t[47]!==F||t[48]!==m||t[49]!==p||t[50]!==b||t[51]!==x||t[52]!==v||t[53]!==y?(H=M.jsxs(M.Fragment,{children:[m,p,b,x,v,_,y,w,F]}),t[46]=w,t[47]=F,t[48]=m,t[49]=p,t[50]=b,t[51]=x,t[52]=v,t[53]=y,t[54]=H):H=t[54],H}function Xg(e){const t=wt.c(81),{filterOptions:n,filterSelection:i,setFilterSelection:s,max1year:o,coloredYears:r}=e,a=o===void 0?!1:o,l=r===void 0?!1:r,[c,h]=E.useState(!0),{nrens:u}=E.useContext(ul);let d,f;if(t[0]===Symbol.for("react.memo_cache_sentinel")?(d=()=>{const W=()=>h(window.innerWidth>=992);return window.addEventListener("resize",W),()=>{window.removeEventListener("resize",W)}},f=[],t[0]=d,t[1]=f):(d=t[0],f=t[1]),E.useEffect(d,f),a&&i.selectedYears.length>1){const W=Math.max(...i.selectedYears);s({selectedYears:[W],selectedNrens:[...i.selectedNrens]})}let g;t[2]!==i.selectedNrens||t[3]!==i.selectedYears||t[4]!==s?(g=W=>{i.selectedNrens.includes(W)?s({selectedYears:[...i.selectedYears],selectedNrens:i.selectedNrens.filter(et=>et!==W)}):s({selectedYears:[...i.selectedYears],selectedNrens:[...i.selectedNrens,W]})},t[2]=i.selectedNrens,t[3]=i.selectedYears,t[4]=s,t[5]=g):g=t[5];const m=g;let p;t[6]!==i.selectedNrens||t[7]!==i.selectedYears||t[8]!==a||t[9]!==s?(p=W=>{i.selectedYears.includes(W)?s({selectedYears:i.selectedYears.filter(et=>et!==W),selectedNrens:[...i.selectedNrens]}):s({selectedYears:a?[W]:[...i.selectedYears,W],selectedNrens:[...i.selectedNrens]})},t[6]=i.selectedNrens,t[7]=i.selectedYears,t[8]=a,t[9]=s,t[10]=p):p=t[10];const b=p;let x;t[11]!==n.availableNrens||t[12]!==i.selectedYears||t[13]!==s?(x=()=>{s({selectedYears:[...i.selectedYears],selectedNrens:n.availableNrens.map(yg)})},t[11]=n.availableNrens,t[12]=i.selectedYears,t[13]=s,t[14]=x):x=t[14];const v=x;let _;t[15]!==i.selectedYears||t[16]!==s?(_=()=>{s({selectedYears:[...i.selectedYears],selectedNrens:[]})},t[15]=i.selectedYears,t[16]=s,t[17]=_):_=t[17];const y=_,w=c?3:2,k=Math.ceil(u.length/w);let S,C,D,P,O,A,I,T,L,F;if(t[18]!==n.availableNrens||t[19]!==i.selectedNrens||t[20]!==m||t[21]!==w||t[22]!==k||t[23]!==u){const W=Array.from(Array(w),xg);u.sort(bg).forEach((Jt,Zt)=>{const lt=Math.floor(Zt/k);W[lt].push(Jt)});let et;t[34]!==n.availableNrens?(et=Jt=>n.availableNrens.find(lt=>lt.name===Jt.name)!==void 0,t[34]=n.availableNrens,t[35]=et):et=t[35];const Re=et;D=ys,L=3,C=ni,A="outside",I="m-3",t[36]===Symbol.for("react.memo_cache_sentinel")?(T=M.jsx(ni.Toggle,{id:"nren-dropdown-toggle",variant:"compendium",children:"Select NRENs "}),t[36]=T):T=t[36],S=ni.Menu,t[37]===Symbol.for("react.memo_cache_sentinel")?(O={borderRadius:0},t[37]=O):O=t[37],F="d-flex fit-max-content mt-4 mx-3";let $t;t[38]!==i.selectedNrens||t[39]!==m||t[40]!==Re?($t=(Jt,Zt)=>M.jsx("div",{className:"flex-fill",children:Jt.map(lt=>M.jsx("div",{className:"filter-dropdown-item flex-fill py-1 px-3",children:M.jsxs(Zn.Check,{type:"checkbox",children:[M.jsx(Zn.Check.Input,{id:lt.name,readOnly:!0,type:"checkbox",onClick:()=>m(lt.name),checked:i.selectedNrens.includes(lt.name),className:"nren-checkbox",disabled:!Re(lt)}),M.jsxs(Zn.Check.Label,{htmlFor:lt.name,className:"nren-checkbox-label",children:[lt.name," ",M.jsxs("span",{style:{fontWeight:"lighter"},children:["(",lt.country,")"]})]})]})},lt.name))},Zt),t[38]=i.selectedNrens,t[39]=m,t[40]=Re,t[41]=$t):$t=t[41],P=W.map($t),t[18]=n.availableNrens,t[19]=i.selectedNrens,t[20]=m,t[21]=w,t[22]=k,t[23]=u,t[24]=S,t[25]=C,t[26]=D,t[27]=P,t[28]=O,t[29]=A,t[30]=I,t[31]=T,t[32]=L,t[33]=F}else S=t[24],C=t[25],D=t[26],P=t[27],O=t[28],A=t[29],I=t[30],T=t[31],L=t[32],F=t[33];let H;t[42]!==P||t[43]!==F?(H=M.jsx("div",{className:F,children:P}),t[42]=P,t[43]=F,t[44]=H):H=t[44];let $;t[45]!==v?($=M.jsx(Ft,{variant:"compendium",className:"flex-fill",onClick:v,children:"Select all NRENs"}),t[45]=v,t[46]=$):$=t[46];let N;t[47]!==y?(N=M.jsx(Ft,{variant:"compendium",className:"flex-fill",onClick:y,children:"Unselect all NRENs"}),t[47]=y,t[48]=N):N=t[48];let tt;t[49]!==$||t[50]!==N?(tt=M.jsxs("div",{className:"d-flex fit-max-content gap-2 mx-4 my-3",children:[$,N]}),t[49]=$,t[50]=N,t[51]=tt):tt=t[51];let Q;t[52]!==S||t[53]!==O||t[54]!==H||t[55]!==tt?(Q=M.jsxs(S,{style:O,children:[H,tt]}),t[52]=S,t[53]=O,t[54]=H,t[55]=tt,t[56]=Q):Q=t[56];let nt;t[57]!==C||t[58]!==A||t[59]!==I||t[60]!==T||t[61]!==Q?(nt=M.jsxs(C,{autoClose:A,className:I,children:[T,Q]}),t[57]=C,t[58]=A,t[59]=I,t[60]=T,t[61]=Q,t[62]=nt):nt=t[62];let U;t[63]!==D||t[64]!==L||t[65]!==nt?(U=M.jsx(D,{xs:L,children:nt}),t[63]=D,t[64]=L,t[65]=nt,t[66]=U):U=t[66];let X;if(t[67]!==l||t[68]!==n.availableYears||t[69]!==i.selectedYears||t[70]!==b){let W;t[72]!==l||t[73]!==i.selectedYears||t[74]!==b?(W=et=>M.jsx(Ft,{variant:l?"compendium-year-"+et%9:"compendium-year",active:i.selectedYears.includes(et),onClick:()=>b(et),children:et},et),t[72]=l,t[73]=i.selectedYears,t[74]=b,t[75]=W):W=t[75],X=n.availableYears.sort().map(W),t[67]=l,t[68]=n.availableYears,t[69]=i.selectedYears,t[70]=b,t[71]=X}else X=t[71];let K;t[76]!==X?(K=M.jsx(ys,{children:M.jsx(Ri,{className:"d-flex justify-content-end gap-2 m-3",children:X})}),t[76]=X,t[77]=K):K=t[77];let Et;return t[78]!==U||t[79]!==K?(Et=M.jsxs(M.Fragment,{children:[U,K]}),t[78]=U,t[79]=K,t[80]=Et):Et=t[80],Et}function bg(e,t){return e.name.localeCompare(t.name)}function xg(){return[]}function yg(e){return e.name}const qg=e=>{const t=wt.c(3),{children:n}=e,i=E.useContext(ur);let s;return t[0]!==n||t[1]!==i?(s=M.jsx("div",{ref:i,children:n}),t[0]=n,t[1]=i,t[2]=s):s=t[2],s};function ar(e){const t=new Set,n=new Map;return e.forEach(i=>{t.add(i.year),n.set(i.nren,{name:i.nren,country:i.nren_country})}),{years:t,nrens:n}}function Kg(e,t,n){const i=wt.c(14),s=n===void 0?_g:n;let o;i[0]===Symbol.for("react.memo_cache_sentinel")?(o=[],i[0]=o):o=i[0];const[r,a]=E.useState(o),l=dl(),c=e+(l?"?preview":"");let h;i[1]!==c||i[2]!==t||i[3]!==s?(h=()=>{fetch(c).then(vg).then(b=>{const x=b.filter(s);a(x);const{years:v,nrens:_}=ar(x);t(y=>{const k=y.selectedYears.filter(D=>v.has(D)).length?y.selectedYears:[Math.max(...v)],C=y.selectedNrens.filter(D=>_.has(D)).length?y.selectedNrens:[..._.keys()];return{selectedYears:k,selectedNrens:C}})})},i[1]=c,i[2]=t,i[3]=s,i[4]=h):h=i[4];let u;i[5]!==c||i[6]!==t?(u=[c,t],i[5]=c,i[6]=t,i[7]=u):u=i[7],E.useEffect(h,u);let d,f;i[8]!==r?(f=ar(r),i[8]=r,i[9]=f):f=i[9],d=f;const{years:g,nrens:m}=d;let p;return i[10]!==r||i[11]!==m||i[12]!==g?(p={data:r,years:g,nrens:m},i[10]=r,i[11]=m,i[12]=g,i[13]=p):p=i[13],p}function vg(e){return e.json()}function _g(){return!0}export{q as A,xi as B,Ct as C,Ug as D,_t as E,Xg as F,j as G,Y as H,B as I,Pn as J,V as K,Yo as L,z as M,Wg as N,gi as P,Wo as a,On as b,Ag as c,Dg as d,Bg as e,qg as f,$g as g,Ig as h,jg as i,Ng as j,Te as k,Hg as l,Vg as m,Tg as n,Yg as o,Eg as p,Rg as q,zg as r,Fg as s,ui as t,Kg as u,hi as v,Lg as w,Qe as x,at as y,yn as z}; diff --git a/compendium_v2/static/useData-CnR6ocTl.js b/compendium_v2/static/useData-CnR6ocTl.js deleted file mode 100644 index 4fe6b37bb867c09b957fc367225207a76ddfb170..0000000000000000000000000000000000000000 --- a/compendium_v2/static/useData-CnR6ocTl.js +++ /dev/null @@ -1,20 +0,0 @@ -var Wa=Object.defineProperty;var Va=(e,t,n)=>t in e?Wa(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var R=(e,t,n)=>Va(e,typeof t!="symbol"?t+"":t,n);import{r as E,u as Wt,g as Ya,j as M,h as qt,i as Kt,k as Ua,w as Xa,l as bs,o as qa,m as fn,f as ue,n as lr,B as Ka,p as Ga,q as Ja,s as xs,v as Za,x as cr,y as Ft,z as Qa,A as tl,c as wt,D as el,S as G,E as hr,R as se,O as nl,P as il,G as sl,N as ol,H as rl,I as ve,J as ur,K as ge,M as al,Q as ll,T as cl,L as hl,V as ul,C as ys,W as Zn,X as dl}from"./index-CgRqQtHZ.js";import{S as rn}from"./SideBar-Dgfa8b_s.js";import{u as Qn,w as fl}from"./xlsx-BHRztzV8.js";import{c as dr,F as fr}from"./index-DgKDGaow.js";import{u as pl}from"./hook-DDOSKqdF.js";function gl(){return E.useState(null)}function ml(e,t,n,i=!1){const s=Wt(n);E.useEffect(()=>{const o=typeof e=="function"?e():e;return o.addEventListener(t,s,i),()=>o.removeEventListener(t,s,i)},[e])}const bl=["onKeyDown"];function xl(e,t){if(e==null)return{};var n={};for(var i in e)if({}.hasOwnProperty.call(e,i)){if(t.indexOf(i)>=0)continue;n[i]=e[i]}return n}function yl(e){return!e||e.trim()==="#"}const pr=E.forwardRef((e,t)=>{let{onKeyDown:n}=e,i=xl(e,bl);const[s]=Ya(Object.assign({tagName:"a"},i)),o=Wt(r=>{s.onKeyDown(r),n==null||n(r)});return yl(i.href)||i.role==="button"?M.jsx("a",Object.assign({ref:t},i,s,{onKeyDown:o})):M.jsx("a",Object.assign({ref:t},i,{onKeyDown:n}))});pr.displayName="Anchor";const Ri=E.forwardRef(({bsPrefix:e,className:t,role:n="toolbar",...i},s)=>{const o=qt(e,"btn-toolbar");return M.jsx("div",{...i,ref:s,className:Kt(t,o),role:n})});Ri.displayName="ButtonToolbar";function vl(e,t,n){const i=E.useRef(e!==void 0),[s,o]=E.useState(t),r=e!==void 0,a=i.current;return i.current=r,!r&&a&&s!==t&&o(t),[r?e:s,E.useCallback((...l)=>{const[c,...h]=l;let u=n==null?void 0:n(c,...h);return o(c),u},[n])]}function _l(){const[,e]=E.useReducer(t=>t+1,0);return e}const Un=E.createContext(null);var vs=Object.prototype.hasOwnProperty;function _s(e,t,n){for(n of e.keys())if(We(n,t))return n}function We(e,t){var n,i,s;if(e===t)return!0;if(e&&t&&(n=e.constructor)===t.constructor){if(n===Date)return e.getTime()===t.getTime();if(n===RegExp)return e.toString()===t.toString();if(n===Array){if((i=e.length)===t.length)for(;i--&&We(e[i],t[i]););return i===-1}if(n===Set){if(e.size!==t.size)return!1;for(i of e)if(s=i,s&&typeof s=="object"&&(s=_s(t,s),!s)||!t.has(s))return!1;return!0}if(n===Map){if(e.size!==t.size)return!1;for(i of e)if(s=i[0],s&&typeof s=="object"&&(s=_s(t,s),!s)||!We(i[1],t.get(s)))return!1;return!0}if(n===ArrayBuffer)e=new Uint8Array(e),t=new Uint8Array(t);else if(n===DataView){if((i=e.byteLength)===t.byteLength)for(;i--&&e.getInt8(i)===t.getInt8(i););return i===-1}if(ArrayBuffer.isView(e)){if((i=e.byteLength)===t.byteLength)for(;i--&&e[i]===t[i];);return i===-1}if(!n||typeof e=="object"){i=0;for(n in e)if(vs.call(e,n)&&++i&&!vs.call(t,n)||!(n in t)||!We(e[n],t[n]))return!1;return Object.keys(t).length===i}}return e!==e&&t!==t}function wl(e){const t=Ua();return[e[0],E.useCallback(n=>{if(t())return e[1](n)},[t,e[1]])]}var ut="top",xt="bottom",yt="right",dt="left",Li="auto",an=[ut,xt,yt,dt],ke="start",Ge="end",Sl="clippingParents",gr="viewport",Le="popper",kl="reference",ws=an.reduce(function(e,t){return e.concat([t+"-"+ke,t+"-"+Ge])},[]),mr=[].concat(an,[Li]).reduce(function(e,t){return e.concat([t,t+"-"+ke,t+"-"+Ge])},[]),Ml="beforeRead",Cl="read",Pl="afterRead",Ol="beforeMain",Dl="main",El="afterMain",Al="beforeWrite",Tl="write",Rl="afterWrite",Ll=[Ml,Cl,Pl,Ol,Dl,El,Al,Tl,Rl];function Pt(e){return e.split("-")[0]}function gt(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function de(e){var t=gt(e).Element;return e instanceof t||e instanceof Element}function Ot(e){var t=gt(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function Fi(e){if(typeof ShadowRoot>"u")return!1;var t=gt(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}var ce=Math.max,Fn=Math.min,Me=Math.round;function vi(){var e=navigator.userAgentData;return e!=null&&e.brands&&Array.isArray(e.brands)?e.brands.map(function(t){return t.brand+"/"+t.version}).join(" "):navigator.userAgent}function br(){return!/^((?!chrome|android).)*safari/i.test(vi())}function Ce(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!1);var i=e.getBoundingClientRect(),s=1,o=1;t&&Ot(e)&&(s=e.offsetWidth>0&&Me(i.width)/e.offsetWidth||1,o=e.offsetHeight>0&&Me(i.height)/e.offsetHeight||1);var r=de(e)?gt(e):window,a=r.visualViewport,l=!br()&&n,c=(i.left+(l&&a?a.offsetLeft:0))/s,h=(i.top+(l&&a?a.offsetTop:0))/o,u=i.width/s,d=i.height/o;return{width:u,height:d,top:h,right:c+u,bottom:h+d,left:c,x:c,y:h}}function Ii(e){var t=Ce(e),n=e.offsetWidth,i=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-i)<=1&&(i=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:i}}function xr(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&Fi(n)){var i=t;do{if(i&&e.isSameNode(i))return!0;i=i.parentNode||i.host}while(i)}return!1}function Ut(e){return e?(e.nodeName||"").toLowerCase():null}function It(e){return gt(e).getComputedStyle(e)}function Fl(e){return["table","td","th"].indexOf(Ut(e))>=0}function Gt(e){return((de(e)?e.ownerDocument:e.document)||window.document).documentElement}function Xn(e){return Ut(e)==="html"?e:e.assignedSlot||e.parentNode||(Fi(e)?e.host:null)||Gt(e)}function Ss(e){return!Ot(e)||It(e).position==="fixed"?null:e.offsetParent}function Il(e){var t=/firefox/i.test(vi()),n=/Trident/i.test(vi());if(n&&Ot(e)){var i=It(e);if(i.position==="fixed")return null}var s=Xn(e);for(Fi(s)&&(s=s.host);Ot(s)&&["html","body"].indexOf(Ut(s))<0;){var o=It(s);if(o.transform!=="none"||o.perspective!=="none"||o.contain==="paint"||["transform","perspective"].indexOf(o.willChange)!==-1||t&&o.willChange==="filter"||t&&o.filter&&o.filter!=="none")return s;s=s.parentNode}return null}function ln(e){for(var t=gt(e),n=Ss(e);n&&Fl(n)&&It(n).position==="static";)n=Ss(n);return n&&(Ut(n)==="html"||Ut(n)==="body"&&It(n).position==="static")?t:n||Il(e)||t}function ji(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function Ve(e,t,n){return ce(e,Fn(t,n))}function jl(e,t,n){var i=Ve(e,t,n);return i>n?n:i}function yr(){return{top:0,right:0,bottom:0,left:0}}function vr(e){return Object.assign({},yr(),e)}function _r(e,t){return t.reduce(function(n,i){return n[i]=e,n},{})}var $l=function(t,n){return t=typeof t=="function"?t(Object.assign({},n.rects,{placement:n.placement})):t,vr(typeof t!="number"?t:_r(t,an))};function zl(e){var t,n=e.state,i=e.name,s=e.options,o=n.elements.arrow,r=n.modifiersData.popperOffsets,a=Pt(n.placement),l=ji(a),c=[dt,yt].indexOf(a)>=0,h=c?"height":"width";if(!(!o||!r)){var u=$l(s.padding,n),d=Ii(o),f=l==="y"?ut:dt,g=l==="y"?xt:yt,m=n.rects.reference[h]+n.rects.reference[l]-r[l]-n.rects.popper[h],p=r[l]-n.rects.reference[l],b=ln(o),x=b?l==="y"?b.clientHeight||0:b.clientWidth||0:0,v=m/2-p/2,_=u[f],y=x-d[h]-u[g],w=x/2-d[h]/2+v,k=Ve(_,w,y),S=l;n.modifiersData[i]=(t={},t[S]=k,t.centerOffset=k-w,t)}}function Bl(e){var t=e.state,n=e.options,i=n.element,s=i===void 0?"[data-popper-arrow]":i;s!=null&&(typeof s=="string"&&(s=t.elements.popper.querySelector(s),!s)||xr(t.elements.popper,s)&&(t.elements.arrow=s))}const Nl={name:"arrow",enabled:!0,phase:"main",fn:zl,effect:Bl,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function Pe(e){return e.split("-")[1]}var Hl={top:"auto",right:"auto",bottom:"auto",left:"auto"};function Wl(e,t){var n=e.x,i=e.y,s=t.devicePixelRatio||1;return{x:Me(n*s)/s||0,y:Me(i*s)/s||0}}function ks(e){var t,n=e.popper,i=e.popperRect,s=e.placement,o=e.variation,r=e.offsets,a=e.position,l=e.gpuAcceleration,c=e.adaptive,h=e.roundOffsets,u=e.isFixed,d=r.x,f=d===void 0?0:d,g=r.y,m=g===void 0?0:g,p=typeof h=="function"?h({x:f,y:m}):{x:f,y:m};f=p.x,m=p.y;var b=r.hasOwnProperty("x"),x=r.hasOwnProperty("y"),v=dt,_=ut,y=window;if(c){var w=ln(n),k="clientHeight",S="clientWidth";if(w===gt(n)&&(w=Gt(n),It(w).position!=="static"&&a==="absolute"&&(k="scrollHeight",S="scrollWidth")),w=w,s===ut||(s===dt||s===yt)&&o===Ge){_=xt;var C=u&&w===y&&y.visualViewport?y.visualViewport.height:w[k];m-=C-i.height,m*=l?1:-1}if(s===dt||(s===ut||s===xt)&&o===Ge){v=yt;var D=u&&w===y&&y.visualViewport?y.visualViewport.width:w[S];f-=D-i.width,f*=l?1:-1}}var P=Object.assign({position:a},c&&Hl),O=h===!0?Wl({x:f,y:m},gt(n)):{x:f,y:m};if(f=O.x,m=O.y,l){var A;return Object.assign({},P,(A={},A[_]=x?"0":"",A[v]=b?"0":"",A.transform=(y.devicePixelRatio||1)<=1?"translate("+f+"px, "+m+"px)":"translate3d("+f+"px, "+m+"px, 0)",A))}return Object.assign({},P,(t={},t[_]=x?m+"px":"",t[v]=b?f+"px":"",t.transform="",t))}function Vl(e){var t=e.state,n=e.options,i=n.gpuAcceleration,s=i===void 0?!0:i,o=n.adaptive,r=o===void 0?!0:o,a=n.roundOffsets,l=a===void 0?!0:a,c={placement:Pt(t.placement),variation:Pe(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:s,isFixed:t.options.strategy==="fixed"};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,ks(Object.assign({},c,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:r,roundOffsets:l})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,ks(Object.assign({},c,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:l})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}const Yl={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:Vl,data:{}};var pn={passive:!0};function Ul(e){var t=e.state,n=e.instance,i=e.options,s=i.scroll,o=s===void 0?!0:s,r=i.resize,a=r===void 0?!0:r,l=gt(t.elements.popper),c=[].concat(t.scrollParents.reference,t.scrollParents.popper);return o&&c.forEach(function(h){h.addEventListener("scroll",n.update,pn)}),a&&l.addEventListener("resize",n.update,pn),function(){o&&c.forEach(function(h){h.removeEventListener("scroll",n.update,pn)}),a&&l.removeEventListener("resize",n.update,pn)}}const Xl={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:Ul,data:{}};var ql={left:"right",right:"left",bottom:"top",top:"bottom"};function Tn(e){return e.replace(/left|right|bottom|top/g,function(t){return ql[t]})}var Kl={start:"end",end:"start"};function Ms(e){return e.replace(/start|end/g,function(t){return Kl[t]})}function $i(e){var t=gt(e),n=t.pageXOffset,i=t.pageYOffset;return{scrollLeft:n,scrollTop:i}}function zi(e){return Ce(Gt(e)).left+$i(e).scrollLeft}function Gl(e,t){var n=gt(e),i=Gt(e),s=n.visualViewport,o=i.clientWidth,r=i.clientHeight,a=0,l=0;if(s){o=s.width,r=s.height;var c=br();(c||!c&&t==="fixed")&&(a=s.offsetLeft,l=s.offsetTop)}return{width:o,height:r,x:a+zi(e),y:l}}function Jl(e){var t,n=Gt(e),i=$i(e),s=(t=e.ownerDocument)==null?void 0:t.body,o=ce(n.scrollWidth,n.clientWidth,s?s.scrollWidth:0,s?s.clientWidth:0),r=ce(n.scrollHeight,n.clientHeight,s?s.scrollHeight:0,s?s.clientHeight:0),a=-i.scrollLeft+zi(e),l=-i.scrollTop;return It(s||n).direction==="rtl"&&(a+=ce(n.clientWidth,s?s.clientWidth:0)-o),{width:o,height:r,x:a,y:l}}function Bi(e){var t=It(e),n=t.overflow,i=t.overflowX,s=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+s+i)}function wr(e){return["html","body","#document"].indexOf(Ut(e))>=0?e.ownerDocument.body:Ot(e)&&Bi(e)?e:wr(Xn(e))}function Ye(e,t){var n;t===void 0&&(t=[]);var i=wr(e),s=i===((n=e.ownerDocument)==null?void 0:n.body),o=gt(i),r=s?[o].concat(o.visualViewport||[],Bi(i)?i:[]):i,a=t.concat(r);return s?a:a.concat(Ye(Xn(r)))}function _i(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function Zl(e,t){var n=Ce(e,!1,t==="fixed");return n.top=n.top+e.clientTop,n.left=n.left+e.clientLeft,n.bottom=n.top+e.clientHeight,n.right=n.left+e.clientWidth,n.width=e.clientWidth,n.height=e.clientHeight,n.x=n.left,n.y=n.top,n}function Cs(e,t,n){return t===gr?_i(Gl(e,n)):de(t)?Zl(t,n):_i(Jl(Gt(e)))}function Ql(e){var t=Ye(Xn(e)),n=["absolute","fixed"].indexOf(It(e).position)>=0,i=n&&Ot(e)?ln(e):e;return de(i)?t.filter(function(s){return de(s)&&xr(s,i)&&Ut(s)!=="body"}):[]}function tc(e,t,n,i){var s=t==="clippingParents"?Ql(e):[].concat(t),o=[].concat(s,[n]),r=o[0],a=o.reduce(function(l,c){var h=Cs(e,c,i);return l.top=ce(h.top,l.top),l.right=Fn(h.right,l.right),l.bottom=Fn(h.bottom,l.bottom),l.left=ce(h.left,l.left),l},Cs(e,r,i));return a.width=a.right-a.left,a.height=a.bottom-a.top,a.x=a.left,a.y=a.top,a}function Sr(e){var t=e.reference,n=e.element,i=e.placement,s=i?Pt(i):null,o=i?Pe(i):null,r=t.x+t.width/2-n.width/2,a=t.y+t.height/2-n.height/2,l;switch(s){case ut:l={x:r,y:t.y-n.height};break;case xt:l={x:r,y:t.y+t.height};break;case yt:l={x:t.x+t.width,y:a};break;case dt:l={x:t.x-n.width,y:a};break;default:l={x:t.x,y:t.y}}var c=s?ji(s):null;if(c!=null){var h=c==="y"?"height":"width";switch(o){case ke:l[c]=l[c]-(t[h]/2-n[h]/2);break;case Ge:l[c]=l[c]+(t[h]/2-n[h]/2);break}}return l}function Je(e,t){t===void 0&&(t={});var n=t,i=n.placement,s=i===void 0?e.placement:i,o=n.strategy,r=o===void 0?e.strategy:o,a=n.boundary,l=a===void 0?Sl:a,c=n.rootBoundary,h=c===void 0?gr:c,u=n.elementContext,d=u===void 0?Le:u,f=n.altBoundary,g=f===void 0?!1:f,m=n.padding,p=m===void 0?0:m,b=vr(typeof p!="number"?p:_r(p,an)),x=d===Le?kl:Le,v=e.rects.popper,_=e.elements[g?x:d],y=tc(de(_)?_:_.contextElement||Gt(e.elements.popper),l,h,r),w=Ce(e.elements.reference),k=Sr({reference:w,element:v,strategy:"absolute",placement:s}),S=_i(Object.assign({},v,k)),C=d===Le?S:w,D={top:y.top-C.top+b.top,bottom:C.bottom-y.bottom+b.bottom,left:y.left-C.left+b.left,right:C.right-y.right+b.right},P=e.modifiersData.offset;if(d===Le&&P){var O=P[s];Object.keys(D).forEach(function(A){var I=[yt,xt].indexOf(A)>=0?1:-1,T=[ut,xt].indexOf(A)>=0?"y":"x";D[A]+=O[T]*I})}return D}function ec(e,t){t===void 0&&(t={});var n=t,i=n.placement,s=n.boundary,o=n.rootBoundary,r=n.padding,a=n.flipVariations,l=n.allowedAutoPlacements,c=l===void 0?mr:l,h=Pe(i),u=h?a?ws:ws.filter(function(g){return Pe(g)===h}):an,d=u.filter(function(g){return c.indexOf(g)>=0});d.length===0&&(d=u);var f=d.reduce(function(g,m){return g[m]=Je(e,{placement:m,boundary:s,rootBoundary:o,padding:r})[Pt(m)],g},{});return Object.keys(f).sort(function(g,m){return f[g]-f[m]})}function nc(e){if(Pt(e)===Li)return[];var t=Tn(e);return[Ms(e),t,Ms(t)]}function ic(e){var t=e.state,n=e.options,i=e.name;if(!t.modifiersData[i]._skip){for(var s=n.mainAxis,o=s===void 0?!0:s,r=n.altAxis,a=r===void 0?!0:r,l=n.fallbackPlacements,c=n.padding,h=n.boundary,u=n.rootBoundary,d=n.altBoundary,f=n.flipVariations,g=f===void 0?!0:f,m=n.allowedAutoPlacements,p=t.options.placement,b=Pt(p),x=b===p,v=l||(x||!g?[Tn(p)]:nc(p)),_=[p].concat(v).reduce(function(U,X){return U.concat(Pt(X)===Li?ec(t,{placement:X,boundary:h,rootBoundary:u,padding:c,flipVariations:g,allowedAutoPlacements:m}):X)},[]),y=t.rects.reference,w=t.rects.popper,k=new Map,S=!0,C=_[0],D=0;D<_.length;D++){var P=_[D],O=Pt(P),A=Pe(P)===ke,I=[ut,xt].indexOf(O)>=0,T=I?"width":"height",L=Je(t,{placement:P,boundary:h,rootBoundary:u,altBoundary:d,padding:c}),F=I?A?yt:dt:A?xt:ut;y[T]>w[T]&&(F=Tn(F));var N=Tn(F),$=[];if(o&&$.push(L[O]<=0),a&&$.push(L[F]<=0,L[N]<=0),$.every(function(U){return U})){C=P,S=!1;break}k.set(P,$)}if(S)for(var B=g?3:1,tt=function(X){var K=_.find(function(Et){var H=k.get(Et);if(H)return H.slice(0,X).every(function(et){return et})});if(K)return C=K,"break"},Q=B;Q>0;Q--){var nt=tt(Q);if(nt==="break")break}t.placement!==C&&(t.modifiersData[i]._skip=!0,t.placement=C,t.reset=!0)}}const sc={name:"flip",enabled:!0,phase:"main",fn:ic,requiresIfExists:["offset"],data:{_skip:!1}};function Ps(e,t,n){return n===void 0&&(n={x:0,y:0}),{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function Os(e){return[ut,yt,xt,dt].some(function(t){return e[t]>=0})}function oc(e){var t=e.state,n=e.name,i=t.rects.reference,s=t.rects.popper,o=t.modifiersData.preventOverflow,r=Je(t,{elementContext:"reference"}),a=Je(t,{altBoundary:!0}),l=Ps(r,i),c=Ps(a,s,o),h=Os(l),u=Os(c);t.modifiersData[n]={referenceClippingOffsets:l,popperEscapeOffsets:c,isReferenceHidden:h,hasPopperEscaped:u},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":h,"data-popper-escaped":u})}const rc={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:oc};function ac(e,t,n){var i=Pt(e),s=[dt,ut].indexOf(i)>=0?-1:1,o=typeof n=="function"?n(Object.assign({},t,{placement:e})):n,r=o[0],a=o[1];return r=r||0,a=(a||0)*s,[dt,yt].indexOf(i)>=0?{x:a,y:r}:{x:r,y:a}}function lc(e){var t=e.state,n=e.options,i=e.name,s=n.offset,o=s===void 0?[0,0]:s,r=mr.reduce(function(h,u){return h[u]=ac(u,t.rects,o),h},{}),a=r[t.placement],l=a.x,c=a.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=l,t.modifiersData.popperOffsets.y+=c),t.modifiersData[i]=r}const cc={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:lc};function hc(e){var t=e.state,n=e.name;t.modifiersData[n]=Sr({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})}const uc={name:"popperOffsets",enabled:!0,phase:"read",fn:hc,data:{}};function dc(e){return e==="x"?"y":"x"}function fc(e){var t=e.state,n=e.options,i=e.name,s=n.mainAxis,o=s===void 0?!0:s,r=n.altAxis,a=r===void 0?!1:r,l=n.boundary,c=n.rootBoundary,h=n.altBoundary,u=n.padding,d=n.tether,f=d===void 0?!0:d,g=n.tetherOffset,m=g===void 0?0:g,p=Je(t,{boundary:l,rootBoundary:c,padding:u,altBoundary:h}),b=Pt(t.placement),x=Pe(t.placement),v=!x,_=ji(b),y=dc(_),w=t.modifiersData.popperOffsets,k=t.rects.reference,S=t.rects.popper,C=typeof m=="function"?m(Object.assign({},t.rects,{placement:t.placement})):m,D=typeof C=="number"?{mainAxis:C,altAxis:C}:Object.assign({mainAxis:0,altAxis:0},C),P=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,O={x:0,y:0};if(w){if(o){var A,I=_==="y"?ut:dt,T=_==="y"?xt:yt,L=_==="y"?"height":"width",F=w[_],N=F+p[I],$=F-p[T],B=f?-S[L]/2:0,tt=x===ke?k[L]:S[L],Q=x===ke?-S[L]:-k[L],nt=t.elements.arrow,U=f&&nt?Ii(nt):{width:0,height:0},X=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:yr(),K=X[I],Et=X[T],H=Ve(0,k[L],U[L]),et=v?k[L]/2-B-H-K-D.mainAxis:tt-H-K-D.mainAxis,Re=v?-k[L]/2+B+H+Et+D.mainAxis:Q+H+Et+D.mainAxis,$t=t.elements.arrow&&ln(t.elements.arrow),Jt=$t?_==="y"?$t.clientTop||0:$t.clientLeft||0:0,Zt=(A=P==null?void 0:P[_])!=null?A:0,lt=F+et-Zt-Jt,Ba=F+Re-Zt,cs=Ve(f?Fn(N,lt):N,F,f?ce($,Ba):$);w[_]=cs,O[_]=cs-F}if(a){var hs,Na=_==="x"?ut:dt,Ha=_==="x"?xt:yt,Qt=w[y],dn=y==="y"?"height":"width",us=Qt+p[Na],ds=Qt-p[Ha],Jn=[ut,dt].indexOf(b)!==-1,fs=(hs=P==null?void 0:P[y])!=null?hs:0,ps=Jn?us:Qt-k[dn]-S[dn]-fs+D.altAxis,gs=Jn?Qt+k[dn]+S[dn]-fs-D.altAxis:ds,ms=f&&Jn?jl(ps,Qt,gs):Ve(f?ps:us,Qt,f?gs:ds);w[y]=ms,O[y]=ms-Qt}t.modifiersData[i]=O}}const pc={name:"preventOverflow",enabled:!0,phase:"main",fn:fc,requiresIfExists:["offset"]};function gc(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function mc(e){return e===gt(e)||!Ot(e)?$i(e):gc(e)}function bc(e){var t=e.getBoundingClientRect(),n=Me(t.width)/e.offsetWidth||1,i=Me(t.height)/e.offsetHeight||1;return n!==1||i!==1}function xc(e,t,n){n===void 0&&(n=!1);var i=Ot(t),s=Ot(t)&&bc(t),o=Gt(t),r=Ce(e,s,n),a={scrollLeft:0,scrollTop:0},l={x:0,y:0};return(i||!i&&!n)&&((Ut(t)!=="body"||Bi(o))&&(a=mc(t)),Ot(t)?(l=Ce(t,!0),l.x+=t.clientLeft,l.y+=t.clientTop):o&&(l.x=zi(o))),{x:r.left+a.scrollLeft-l.x,y:r.top+a.scrollTop-l.y,width:r.width,height:r.height}}function yc(e){var t=new Map,n=new Set,i=[];e.forEach(function(o){t.set(o.name,o)});function s(o){n.add(o.name);var r=[].concat(o.requires||[],o.requiresIfExists||[]);r.forEach(function(a){if(!n.has(a)){var l=t.get(a);l&&s(l)}}),i.push(o)}return e.forEach(function(o){n.has(o.name)||s(o)}),i}function vc(e){var t=yc(e);return Ll.reduce(function(n,i){return n.concat(t.filter(function(s){return s.phase===i}))},[])}function _c(e){var t;return function(){return t||(t=new Promise(function(n){Promise.resolve().then(function(){t=void 0,n(e())})})),t}}function wc(e){var t=e.reduce(function(n,i){var s=n[i.name];return n[i.name]=s?Object.assign({},s,i,{options:Object.assign({},s.options,i.options),data:Object.assign({},s.data,i.data)}):i,n},{});return Object.keys(t).map(function(n){return t[n]})}var Ds={placement:"bottom",modifiers:[],strategy:"absolute"};function Es(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return!t.some(function(i){return!(i&&typeof i.getBoundingClientRect=="function")})}function Sc(e){e===void 0&&(e={});var t=e,n=t.defaultModifiers,i=n===void 0?[]:n,s=t.defaultOptions,o=s===void 0?Ds:s;return function(a,l,c){c===void 0&&(c=o);var h={placement:"bottom",orderedModifiers:[],options:Object.assign({},Ds,o),modifiersData:{},elements:{reference:a,popper:l},attributes:{},styles:{}},u=[],d=!1,f={state:h,setOptions:function(b){var x=typeof b=="function"?b(h.options):b;m(),h.options=Object.assign({},o,h.options,x),h.scrollParents={reference:de(a)?Ye(a):a.contextElement?Ye(a.contextElement):[],popper:Ye(l)};var v=vc(wc([].concat(i,h.options.modifiers)));return h.orderedModifiers=v.filter(function(_){return _.enabled}),g(),f.update()},forceUpdate:function(){if(!d){var b=h.elements,x=b.reference,v=b.popper;if(Es(x,v)){h.rects={reference:xc(x,ln(v),h.options.strategy==="fixed"),popper:Ii(v)},h.reset=!1,h.placement=h.options.placement,h.orderedModifiers.forEach(function(D){return h.modifiersData[D.name]=Object.assign({},D.data)});for(var _=0;_<h.orderedModifiers.length;_++){if(h.reset===!0){h.reset=!1,_=-1;continue}var y=h.orderedModifiers[_],w=y.fn,k=y.options,S=k===void 0?{}:k,C=y.name;typeof w=="function"&&(h=w({state:h,options:S,name:C,instance:f})||h)}}}},update:_c(function(){return new Promise(function(p){f.forceUpdate(),p(h)})}),destroy:function(){m(),d=!0}};if(!Es(a,l))return f;f.setOptions(c).then(function(p){!d&&c.onFirstUpdate&&c.onFirstUpdate(p)});function g(){h.orderedModifiers.forEach(function(p){var b=p.name,x=p.options,v=x===void 0?{}:x,_=p.effect;if(typeof _=="function"){var y=_({state:h,name:b,instance:f,options:v}),w=function(){};u.push(y||w)}})}function m(){u.forEach(function(p){return p()}),u=[]}return f}}const kc=Sc({defaultModifiers:[rc,uc,Yl,Xl,cc,sc,pc,Nl]}),Mc=["enabled","placement","strategy","modifiers"];function Cc(e,t){if(e==null)return{};var n={};for(var i in e)if({}.hasOwnProperty.call(e,i)){if(t.indexOf(i)>=0)continue;n[i]=e[i]}return n}const Pc={name:"applyStyles",enabled:!1,phase:"afterWrite",fn:()=>{}},Oc={name:"ariaDescribedBy",enabled:!0,phase:"afterWrite",effect:({state:e})=>()=>{const{reference:t,popper:n}=e.elements;if("removeAttribute"in t){const i=(t.getAttribute("aria-describedby")||"").split(",").filter(s=>s.trim()!==n.id);i.length?t.setAttribute("aria-describedby",i.join(",")):t.removeAttribute("aria-describedby")}},fn:({state:e})=>{var t;const{popper:n,reference:i}=e.elements,s=(t=n.getAttribute("role"))==null?void 0:t.toLowerCase();if(n.id&&s==="tooltip"&&"setAttribute"in i){const o=i.getAttribute("aria-describedby");if(o&&o.split(",").indexOf(n.id)!==-1)return;i.setAttribute("aria-describedby",o?`${o},${n.id}`:n.id)}}},Dc=[];function Ec(e,t,n={}){let{enabled:i=!0,placement:s="bottom",strategy:o="absolute",modifiers:r=Dc}=n,a=Cc(n,Mc);const l=E.useRef(r),c=E.useRef(),h=E.useCallback(()=>{var p;(p=c.current)==null||p.update()},[]),u=E.useCallback(()=>{var p;(p=c.current)==null||p.forceUpdate()},[]),[d,f]=wl(E.useState({placement:s,update:h,forceUpdate:u,attributes:{},styles:{popper:{},arrow:{}}})),g=E.useMemo(()=>({name:"updateStateModifier",enabled:!0,phase:"write",requires:["computeStyles"],fn:({state:p})=>{const b={},x={};Object.keys(p.elements).forEach(v=>{b[v]=p.styles[v],x[v]=p.attributes[v]}),f({state:p,styles:b,attributes:x,update:h,forceUpdate:u,placement:p.placement})}}),[h,u,f]),m=E.useMemo(()=>(We(l.current,r)||(l.current=r),l.current),[r]);return E.useEffect(()=>{!c.current||!i||c.current.setOptions({placement:s,strategy:o,modifiers:[...m,g,Pc]})},[o,s,g,i,m]),E.useEffect(()=>{if(!(!i||e==null||t==null))return c.current=kc(e,t,Object.assign({},a,{placement:s,strategy:o,modifiers:[...m,Oc,g]})),()=>{c.current!=null&&(c.current.destroy(),c.current=void 0,f(p=>Object.assign({},p,{attributes:{},styles:{popper:{}}})))}},[i,e,t]),d}const As=()=>{};function Ac(e){return e.button===0}function Tc(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}const ti=e=>e&&("current"in e?e.current:e),Ts={click:"mousedown",mouseup:"mousedown",pointerup:"pointerdown"};function Rc(e,t=As,{disabled:n,clickTrigger:i="click"}={}){const s=E.useRef(!1),o=E.useRef(!1),r=E.useCallback(c=>{const h=ti(e);Xa(!!h,"ClickOutside captured a close event but does not have a ref to compare it to. useClickOutside(), should be passed a ref that resolves to a DOM node"),s.current=!h||Tc(c)||!Ac(c)||!!bs(h,c.target)||o.current,o.current=!1},[e]),a=Wt(c=>{const h=ti(e);h&&bs(h,c.target)?o.current=!0:o.current=!1}),l=Wt(c=>{s.current||t(c)});E.useEffect(()=>{var c,h;if(n||e==null)return;const u=qa(ti(e)),d=u.defaultView||window;let f=(c=d.event)!=null?c:(h=d.parent)==null?void 0:h.event,g=null;Ts[i]&&(g=fn(u,Ts[i],a,!0));const m=fn(u,i,r,!0),p=fn(u,i,x=>{if(x===f){f=void 0;return}l(x)});let b=[];return"ontouchstart"in u.documentElement&&(b=[].slice.call(u.body.children).map(x=>fn(x,"mousemove",As))),()=>{g==null||g(),m(),p(),b.forEach(x=>x())}},[e,n,i,r,a,l])}function Lc(e){const t={};return Array.isArray(e)?(e==null||e.forEach(n=>{t[n.name]=n}),t):e||t}function Fc(e={}){return Array.isArray(e)?e:Object.keys(e).map(t=>(e[t].name=t,e[t]))}function Ic({enabled:e,enableEvents:t,placement:n,flip:i,offset:s,fixed:o,containerPadding:r,arrowElement:a,popperConfig:l={}}){var c,h,u,d,f;const g=Lc(l.modifiers);return Object.assign({},l,{placement:n,enabled:e,strategy:o?"fixed":l.strategy,modifiers:Fc(Object.assign({},g,{eventListeners:{enabled:t,options:(c=g.eventListeners)==null?void 0:c.options},preventOverflow:Object.assign({},g.preventOverflow,{options:r?Object.assign({padding:r},(h=g.preventOverflow)==null?void 0:h.options):(u=g.preventOverflow)==null?void 0:u.options}),offset:{options:Object.assign({offset:s},(d=g.offset)==null?void 0:d.options)},arrow:Object.assign({},g.arrow,{enabled:!!a,options:Object.assign({},(f=g.arrow)==null?void 0:f.options,{element:a})}),flip:Object.assign({enabled:!!i},g.flip)}))})}const jc=["children","usePopper"];function $c(e,t){if(e==null)return{};var n={};for(var i in e)if({}.hasOwnProperty.call(e,i)){if(t.indexOf(i)>=0)continue;n[i]=e[i]}return n}const zc=()=>{};function kr(e={}){const t=E.useContext(Un),[n,i]=gl(),s=E.useRef(!1),{flip:o,offset:r,rootCloseEvent:a,fixed:l=!1,placement:c,popperConfig:h={},enableEventListeners:u=!0,usePopper:d=!!t}=e,f=(t==null?void 0:t.show)==null?!!e.show:t.show;f&&!s.current&&(s.current=!0);const g=w=>{t==null||t.toggle(!1,w)},{placement:m,setMenu:p,menuElement:b,toggleElement:x}=t||{},v=Ec(x,b,Ic({placement:c||m||"bottom-start",enabled:d,enableEvents:u??f,offset:r,flip:o,fixed:l,arrowElement:n,popperConfig:h})),_=Object.assign({ref:p||zc,"aria-labelledby":x==null?void 0:x.id},v.attributes.popper,{style:v.styles.popper}),y={show:f,placement:m,hasShown:s.current,toggle:t==null?void 0:t.toggle,popper:d?v:null,arrowProps:d?Object.assign({ref:i},v.attributes.arrow,{style:v.styles.arrow}):{}};return Rc(b,g,{clickTrigger:a,disabled:!f}),[_,y]}function Mr(e){let{children:t,usePopper:n=!0}=e,i=$c(e,jc);const[s,o]=kr(Object.assign({},i,{usePopper:n}));return M.jsx(M.Fragment,{children:t(s,o)})}Mr.displayName="DropdownMenu";const Ni={prefix:String(Math.round(Math.random()*1e10)),current:0},Cr=ue.createContext(Ni),Bc=ue.createContext(!1);let Nc=!!(typeof window<"u"&&window.document&&window.document.createElement),ei=new WeakMap;function Hc(e=!1){let t=E.useContext(Cr),n=E.useRef(null);if(n.current===null&&!e){var i,s;let o=(s=ue.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED)===null||s===void 0||(i=s.ReactCurrentOwner)===null||i===void 0?void 0:i.current;if(o){let r=ei.get(o);r==null?ei.set(o,{id:t.current,state:o.memoizedState}):o.memoizedState!==r.state&&(t.current=r.id,ei.delete(o))}n.current=++t.current}return n.current}function Wc(e){let t=E.useContext(Cr);t===Ni&&!Nc&&console.warn("When server rendering, you must wrap your application in an <SSRProvider> to ensure consistent ids are generated between the client and server.");let n=Hc(!!e),i=`react-aria${t.prefix}`;return e||`${i}-${n}`}function Vc(e){let t=ue.useId(),[n]=E.useState(Kc()),i=n?"react-aria":`react-aria${Ni.prefix}`;return e||`${i}-${t}`}const Yc=typeof ue.useId=="function"?Vc:Wc;function Uc(){return!1}function Xc(){return!0}function qc(e){return()=>{}}function Kc(){return typeof ue.useSyncExternalStore=="function"?ue.useSyncExternalStore(qc,Uc,Xc):E.useContext(Bc)}const Pr=e=>{var t;return((t=e.getAttribute("role"))==null?void 0:t.toLowerCase())==="menu"},Rs=()=>{};function Or(){const e=Yc(),{show:t=!1,toggle:n=Rs,setToggle:i,menuElement:s}=E.useContext(Un)||{},o=E.useCallback(a=>{n(!t,a)},[t,n]),r={id:e,ref:i||Rs,onClick:o,"aria-expanded":!!t};return s&&Pr(s)&&(r["aria-haspopup"]=!0),[r,{show:t,toggle:n}]}function Dr({children:e}){const[t,n]=Or();return M.jsx(M.Fragment,{children:e(t,n)})}Dr.displayName="DropdownToggle";const wi=E.createContext(null),Ls=(e,t=null)=>e!=null?String(e):t||null,Er=E.createContext(null);Er.displayName="NavContext";const Gc=["eventKey","disabled","onClick","active","as"];function Jc(e,t){if(e==null)return{};var n={};for(var i in e)if({}.hasOwnProperty.call(e,i)){if(t.indexOf(i)>=0)continue;n[i]=e[i]}return n}function Ar({key:e,href:t,active:n,disabled:i,onClick:s}){const o=E.useContext(wi),r=E.useContext(Er),{activeKey:a}=r||{},l=Ls(e,t),c=n==null&&e!=null?Ls(a)===l:n;return[{onClick:Wt(u=>{i||(s==null||s(u),o&&!u.isPropagationStopped()&&o(l,u))}),"aria-disabled":i||void 0,"aria-selected":c,[lr("dropdown-item")]:""},{isActive:c}]}const Tr=E.forwardRef((e,t)=>{let{eventKey:n,disabled:i,onClick:s,active:o,as:r=Ka}=e,a=Jc(e,Gc);const[l]=Ar({key:n,href:a.href,disabled:i,onClick:s,active:o});return M.jsx(r,Object.assign({},a,{ref:t},l))});Tr.displayName="DropdownItem";function Fs(){const e=_l(),t=E.useRef(null),n=E.useCallback(i=>{t.current=i,e()},[e]);return[t,n]}function cn({defaultShow:e,show:t,onSelect:n,onToggle:i,itemSelector:s=`* [${lr("dropdown-item")}]`,focusFirstItemOnShow:o,placement:r="bottom-start",children:a}){const l=Ga(),[c,h]=vl(t,e,i),[u,d]=Fs(),f=u.current,[g,m]=Fs(),p=g.current,b=Ja(c),x=E.useRef(null),v=E.useRef(!1),_=E.useContext(wi),y=E.useCallback((P,O,A=O==null?void 0:O.type)=>{h(P,{originalEvent:O,source:A})},[h]),w=Wt((P,O)=>{n==null||n(P,O),y(!1,O,"select"),O.isPropagationStopped()||_==null||_(P,O)}),k=E.useMemo(()=>({toggle:y,placement:r,show:c,menuElement:f,toggleElement:p,setMenu:d,setToggle:m}),[y,r,c,f,p,d,m]);f&&b&&!c&&(v.current=f.contains(f.ownerDocument.activeElement));const S=Wt(()=>{p&&p.focus&&p.focus()}),C=Wt(()=>{const P=x.current;let O=o;if(O==null&&(O=u.current&&Pr(u.current)?"keyboard":!1),O===!1||O==="keyboard"&&!/^key.+$/.test(P))return;const A=xs(u.current,s)[0];A&&A.focus&&A.focus()});E.useEffect(()=>{c?C():v.current&&(v.current=!1,S())},[c,v,S,C]),E.useEffect(()=>{x.current=null});const D=(P,O)=>{if(!u.current)return null;const A=xs(u.current,s);let I=A.indexOf(P)+O;return I=Math.max(0,Math.min(I,A.length)),A[I]};return ml(E.useCallback(()=>l.document,[l]),"keydown",P=>{var O,A;const{key:I}=P,T=P.target,L=(O=u.current)==null?void 0:O.contains(T),F=(A=g.current)==null?void 0:A.contains(T);if(/input|textarea/i.test(T.tagName)&&(I===" "||I!=="Escape"&&L||I==="Escape"&&T.type==="search")||!L&&!F||I==="Tab"&&(!u.current||!c))return;x.current=P.type;const $={originalEvent:P,source:P.type};switch(I){case"ArrowUp":{const B=D(T,-1);B&&B.focus&&B.focus(),P.preventDefault();return}case"ArrowDown":if(P.preventDefault(),!c)h(!0,$);else{const B=D(T,1);B&&B.focus&&B.focus()}return;case"Tab":Za(T.ownerDocument,"keyup",B=>{var tt;(B.key==="Tab"&&!B.target||!((tt=u.current)!=null&&tt.contains(B.target)))&&h(!1,$)},{once:!0});break;case"Escape":I==="Escape"&&(P.preventDefault(),P.stopPropagation()),h(!1,$);break}}),M.jsx(wi.Provider,{value:w,children:M.jsx(Un.Provider,{value:k,children:a})})}cn.displayName="Dropdown";cn.Menu=Mr;cn.Toggle=Dr;cn.Item=Tr;const Hi=E.createContext({});Hi.displayName="DropdownContext";const Rr=E.forwardRef(({className:e,bsPrefix:t,as:n="hr",role:i="separator",...s},o)=>(t=qt(t,"dropdown-divider"),M.jsx(n,{ref:o,className:Kt(e,t),role:i,...s})));Rr.displayName="DropdownDivider";const Lr=E.forwardRef(({className:e,bsPrefix:t,as:n="div",role:i="heading",...s},o)=>(t=qt(t,"dropdown-header"),M.jsx(n,{ref:o,className:Kt(e,t),role:i,...s})));Lr.displayName="DropdownHeader";const Fr=E.forwardRef(({bsPrefix:e,className:t,eventKey:n,disabled:i=!1,onClick:s,active:o,as:r=pr,...a},l)=>{const c=qt(e,"dropdown-item"),[h,u]=Ar({key:n,href:a.href,disabled:i,onClick:s,active:o});return M.jsx(r,{...a,...h,ref:l,className:Kt(t,c,u.isActive&&"active",i&&"disabled")})});Fr.displayName="DropdownItem";const Ir=E.forwardRef(({className:e,bsPrefix:t,as:n="span",...i},s)=>(t=qt(t,"dropdown-item-text"),M.jsx(n,{ref:s,className:Kt(e,t),...i})));Ir.displayName="DropdownItemText";const Zc=typeof global<"u"&&global.navigator&&global.navigator.product==="ReactNative",Qc=typeof document<"u",th=Qc||Zc?E.useLayoutEffect:E.useEffect,jr=E.createContext(null);jr.displayName="NavbarContext";function $r(e,t){return e}function zr(e,t,n){const i=n?"top-end":"top-start",s=n?"top-start":"top-end",o=n?"bottom-end":"bottom-start",r=n?"bottom-start":"bottom-end",a=n?"right-start":"left-start",l=n?"right-end":"left-end",c=n?"left-start":"right-start",h=n?"left-end":"right-end";let u=e?r:o;return t==="up"?u=e?s:i:t==="end"?u=e?h:c:t==="start"?u=e?l:a:t==="down-centered"?u="bottom":t==="up-centered"&&(u="top"),u}const Br=E.forwardRef(({bsPrefix:e,className:t,align:n,rootCloseEvent:i,flip:s=!0,show:o,renderOnMount:r,as:a="div",popperConfig:l,variant:c,...h},u)=>{let d=!1;const f=E.useContext(jr),g=qt(e,"dropdown-menu"),{align:m,drop:p,isRTL:b}=E.useContext(Hi);n=n||m;const x=E.useContext(dr),v=[];if(n)if(typeof n=="object"){const P=Object.keys(n);if(P.length){const O=P[0],A=n[O];d=A==="start",v.push(`${g}-${O}-${A}`)}}else n==="end"&&(d=!0);const _=zr(d,p,b),[y,{hasShown:w,popper:k,show:S,toggle:C}]=kr({flip:s,rootCloseEvent:i,show:o,usePopper:!f&&v.length===0,offset:[0,2],popperConfig:l,placement:_});if(y.ref=cr($r(u),y.ref),th(()=>{S&&(k==null||k.update())},[S]),!w&&!r&&!x)return null;typeof a!="string"&&(y.show=S,y.close=()=>C==null?void 0:C(!1),y.align=n);let D=h.style;return k!=null&&k.placement&&(D={...h.style,...y.style},h["x-placement"]=k.placement),M.jsx(a,{...h,...y,style:D,...(v.length||f)&&{"data-bs-popper":"static"},className:Kt(t,g,S&&"show",d&&`${g}-end`,c&&`${g}-${c}`,...v)})});Br.displayName="DropdownMenu";const Nr=E.forwardRef(({bsPrefix:e,split:t,className:n,childBsPrefix:i,as:s=Ft,...o},r)=>{const a=qt(e,"dropdown-toggle"),l=E.useContext(Un);i!==void 0&&(o.bsPrefix=i);const[c]=Or();return c.ref=cr(c.ref,$r(r)),M.jsx(s,{className:Kt(n,a,t&&`${a}-split`,(l==null?void 0:l.show)&&"show"),...c,...o})});Nr.displayName="DropdownToggle";const Hr=E.forwardRef((e,t)=>{const{bsPrefix:n,drop:i="down",show:s,className:o,align:r="start",onSelect:a,onToggle:l,focusFirstItemOnShow:c,as:h="div",navbar:u,autoClose:d=!0,...f}=pl(e,{show:"onToggle"}),g=E.useContext(dr),m=qt(n,"dropdown"),p=Qa(),b=k=>d===!1?k==="click":d==="inside"?k!=="rootClose":d==="outside"?k!=="select":!0,x=tl((k,S)=>{var C;!((C=S.originalEvent)==null||(C=C.target)==null)&&C.classList.contains("dropdown-toggle")&&S.source==="mousedown"||(S.originalEvent.currentTarget===document&&(S.source!=="keydown"||S.originalEvent.key==="Escape")&&(S.source="rootClose"),b(S.source)&&(l==null||l(k,S)))}),_=zr(r==="end",i,p),y=E.useMemo(()=>({align:r,drop:i,isRTL:p}),[r,i,p]),w={down:m,"down-centered":`${m}-center`,up:"dropup","up-centered":"dropup-center dropup",end:"dropend",start:"dropstart"};return M.jsx(Hi.Provider,{value:y,children:M.jsx(cn,{placement:_,show:s,onSelect:a,onToggle:x,focusFirstItemOnShow:c,itemSelector:`.${m}-item:not(.disabled):not(:disabled)`,children:g?f.children:M.jsx(h,{...f,ref:t,className:Kt(o,s&&"show",w[i])})})})});Hr.displayName="Dropdown";const ni=Object.assign(Hr,{Toggle:Nr,Menu:Br,Item:Fr,ItemText:Ir,Divider:Rr,Header:Lr});/*! - * @kurkle/color v0.3.2 - * https://github.com/kurkle/color#readme - * (c) 2023 Jukka Kurkela - * Released under the MIT License - */function hn(e){return e+.5|0}const Bt=(e,t,n)=>Math.max(Math.min(e,n),t);function Be(e){return Bt(hn(e*2.55),0,255)}function Vt(e){return Bt(hn(e*255),0,255)}function Lt(e){return Bt(hn(e/2.55)/100,0,1)}function Is(e){return Bt(hn(e*100),0,100)}const mt={0:0,1:1,2:2,3:3,4:4,5:5,6:6,7:7,8:8,9:9,A:10,B:11,C:12,D:13,E:14,F:15,a:10,b:11,c:12,d:13,e:14,f:15},Si=[..."0123456789ABCDEF"],eh=e=>Si[e&15],nh=e=>Si[(e&240)>>4]+Si[e&15],gn=e=>(e&240)>>4===(e&15),ih=e=>gn(e.r)&&gn(e.g)&&gn(e.b)&&gn(e.a);function sh(e){var t=e.length,n;return e[0]==="#"&&(t===4||t===5?n={r:255&mt[e[1]]*17,g:255&mt[e[2]]*17,b:255&mt[e[3]]*17,a:t===5?mt[e[4]]*17:255}:(t===7||t===9)&&(n={r:mt[e[1]]<<4|mt[e[2]],g:mt[e[3]]<<4|mt[e[4]],b:mt[e[5]]<<4|mt[e[6]],a:t===9?mt[e[7]]<<4|mt[e[8]]:255})),n}const oh=(e,t)=>e<255?t(e):"";function rh(e){var t=ih(e)?eh:nh;return e?"#"+t(e.r)+t(e.g)+t(e.b)+oh(e.a,t):void 0}const ah=/^(hsla?|hwb|hsv)\(\s*([-+.e\d]+)(?:deg)?[\s,]+([-+.e\d]+)%[\s,]+([-+.e\d]+)%(?:[\s,]+([-+.e\d]+)(%)?)?\s*\)$/;function Wr(e,t,n){const i=t*Math.min(n,1-n),s=(o,r=(o+e/30)%12)=>n-i*Math.max(Math.min(r-3,9-r,1),-1);return[s(0),s(8),s(4)]}function lh(e,t,n){const i=(s,o=(s+e/60)%6)=>n-n*t*Math.max(Math.min(o,4-o,1),0);return[i(5),i(3),i(1)]}function ch(e,t,n){const i=Wr(e,1,.5);let s;for(t+n>1&&(s=1/(t+n),t*=s,n*=s),s=0;s<3;s++)i[s]*=1-t-n,i[s]+=t;return i}function hh(e,t,n,i,s){return e===s?(t-n)/i+(t<n?6:0):t===s?(n-e)/i+2:(e-t)/i+4}function Wi(e){const n=e.r/255,i=e.g/255,s=e.b/255,o=Math.max(n,i,s),r=Math.min(n,i,s),a=(o+r)/2;let l,c,h;return o!==r&&(h=o-r,c=a>.5?h/(2-o-r):h/(o+r),l=hh(n,i,s,h,o),l=l*60+.5),[l|0,c||0,a]}function Vi(e,t,n,i){return(Array.isArray(t)?e(t[0],t[1],t[2]):e(t,n,i)).map(Vt)}function Yi(e,t,n){return Vi(Wr,e,t,n)}function uh(e,t,n){return Vi(ch,e,t,n)}function dh(e,t,n){return Vi(lh,e,t,n)}function Vr(e){return(e%360+360)%360}function fh(e){const t=ah.exec(e);let n=255,i;if(!t)return;t[5]!==i&&(n=t[6]?Be(+t[5]):Vt(+t[5]));const s=Vr(+t[2]),o=+t[3]/100,r=+t[4]/100;return t[1]==="hwb"?i=uh(s,o,r):t[1]==="hsv"?i=dh(s,o,r):i=Yi(s,o,r),{r:i[0],g:i[1],b:i[2],a:n}}function ph(e,t){var n=Wi(e);n[0]=Vr(n[0]+t),n=Yi(n),e.r=n[0],e.g=n[1],e.b=n[2]}function gh(e){if(!e)return;const t=Wi(e),n=t[0],i=Is(t[1]),s=Is(t[2]);return e.a<255?`hsla(${n}, ${i}%, ${s}%, ${Lt(e.a)})`:`hsl(${n}, ${i}%, ${s}%)`}const js={x:"dark",Z:"light",Y:"re",X:"blu",W:"gr",V:"medium",U:"slate",A:"ee",T:"ol",S:"or",B:"ra",C:"lateg",D:"ights",R:"in",Q:"turquois",E:"hi",P:"ro",O:"al",N:"le",M:"de",L:"yello",F:"en",K:"ch",G:"arks",H:"ea",I:"ightg",J:"wh"},$s={OiceXe:"f0f8ff",antiquewEte:"faebd7",aqua:"ffff",aquamarRe:"7fffd4",azuY:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"0",blanKedOmond:"ffebcd",Xe:"ff",XeviTet:"8a2be2",bPwn:"a52a2a",burlywood:"deb887",caMtXe:"5f9ea0",KartYuse:"7fff00",KocTate:"d2691e",cSO:"ff7f50",cSnflowerXe:"6495ed",cSnsilk:"fff8dc",crimson:"dc143c",cyan:"ffff",xXe:"8b",xcyan:"8b8b",xgTMnPd:"b8860b",xWay:"a9a9a9",xgYF:"6400",xgYy:"a9a9a9",xkhaki:"bdb76b",xmagFta:"8b008b",xTivegYF:"556b2f",xSange:"ff8c00",xScEd:"9932cc",xYd:"8b0000",xsOmon:"e9967a",xsHgYF:"8fbc8f",xUXe:"483d8b",xUWay:"2f4f4f",xUgYy:"2f4f4f",xQe:"ced1",xviTet:"9400d3",dAppRk:"ff1493",dApskyXe:"bfff",dimWay:"696969",dimgYy:"696969",dodgerXe:"1e90ff",fiYbrick:"b22222",flSOwEte:"fffaf0",foYstWAn:"228b22",fuKsia:"ff00ff",gaRsbSo:"dcdcdc",ghostwEte:"f8f8ff",gTd:"ffd700",gTMnPd:"daa520",Way:"808080",gYF:"8000",gYFLw:"adff2f",gYy:"808080",honeyMw:"f0fff0",hotpRk:"ff69b4",RdianYd:"cd5c5c",Rdigo:"4b0082",ivSy:"fffff0",khaki:"f0e68c",lavFMr:"e6e6fa",lavFMrXsh:"fff0f5",lawngYF:"7cfc00",NmoncEffon:"fffacd",ZXe:"add8e6",ZcSO:"f08080",Zcyan:"e0ffff",ZgTMnPdLw:"fafad2",ZWay:"d3d3d3",ZgYF:"90ee90",ZgYy:"d3d3d3",ZpRk:"ffb6c1",ZsOmon:"ffa07a",ZsHgYF:"20b2aa",ZskyXe:"87cefa",ZUWay:"778899",ZUgYy:"778899",ZstAlXe:"b0c4de",ZLw:"ffffe0",lime:"ff00",limegYF:"32cd32",lRF:"faf0e6",magFta:"ff00ff",maPon:"800000",VaquamarRe:"66cdaa",VXe:"cd",VScEd:"ba55d3",VpurpN:"9370db",VsHgYF:"3cb371",VUXe:"7b68ee",VsprRggYF:"fa9a",VQe:"48d1cc",VviTetYd:"c71585",midnightXe:"191970",mRtcYam:"f5fffa",mistyPse:"ffe4e1",moccasR:"ffe4b5",navajowEte:"ffdead",navy:"80",Tdlace:"fdf5e6",Tive:"808000",TivedBb:"6b8e23",Sange:"ffa500",SangeYd:"ff4500",ScEd:"da70d6",pOegTMnPd:"eee8aa",pOegYF:"98fb98",pOeQe:"afeeee",pOeviTetYd:"db7093",papayawEp:"ffefd5",pHKpuff:"ffdab9",peru:"cd853f",pRk:"ffc0cb",plum:"dda0dd",powMrXe:"b0e0e6",purpN:"800080",YbeccapurpN:"663399",Yd:"ff0000",Psybrown:"bc8f8f",PyOXe:"4169e1",saddNbPwn:"8b4513",sOmon:"fa8072",sandybPwn:"f4a460",sHgYF:"2e8b57",sHshell:"fff5ee",siFna:"a0522d",silver:"c0c0c0",skyXe:"87ceeb",UXe:"6a5acd",UWay:"708090",UgYy:"708090",snow:"fffafa",sprRggYF:"ff7f",stAlXe:"4682b4",tan:"d2b48c",teO:"8080",tEstN:"d8bfd8",tomato:"ff6347",Qe:"40e0d0",viTet:"ee82ee",JHt:"f5deb3",wEte:"ffffff",wEtesmoke:"f5f5f5",Lw:"ffff00",LwgYF:"9acd32"};function mh(){const e={},t=Object.keys($s),n=Object.keys(js);let i,s,o,r,a;for(i=0;i<t.length;i++){for(r=a=t[i],s=0;s<n.length;s++)o=n[s],a=a.replace(o,js[o]);o=parseInt($s[r],16),e[a]=[o>>16&255,o>>8&255,o&255]}return e}let mn;function bh(e){mn||(mn=mh(),mn.transparent=[0,0,0,0]);const t=mn[e.toLowerCase()];return t&&{r:t[0],g:t[1],b:t[2],a:t.length===4?t[3]:255}}const xh=/^rgba?\(\s*([-+.\d]+)(%)?[\s,]+([-+.e\d]+)(%)?[\s,]+([-+.e\d]+)(%)?(?:[\s,/]+([-+.e\d]+)(%)?)?\s*\)$/;function yh(e){const t=xh.exec(e);let n=255,i,s,o;if(t){if(t[7]!==i){const r=+t[7];n=t[8]?Be(r):Bt(r*255,0,255)}return i=+t[1],s=+t[3],o=+t[5],i=255&(t[2]?Be(i):Bt(i,0,255)),s=255&(t[4]?Be(s):Bt(s,0,255)),o=255&(t[6]?Be(o):Bt(o,0,255)),{r:i,g:s,b:o,a:n}}}function vh(e){return e&&(e.a<255?`rgba(${e.r}, ${e.g}, ${e.b}, ${Lt(e.a)})`:`rgb(${e.r}, ${e.g}, ${e.b})`)}const ii=e=>e<=.0031308?e*12.92:Math.pow(e,1/2.4)*1.055-.055,me=e=>e<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4);function _h(e,t,n){const i=me(Lt(e.r)),s=me(Lt(e.g)),o=me(Lt(e.b));return{r:Vt(ii(i+n*(me(Lt(t.r))-i))),g:Vt(ii(s+n*(me(Lt(t.g))-s))),b:Vt(ii(o+n*(me(Lt(t.b))-o))),a:e.a+n*(t.a-e.a)}}function bn(e,t,n){if(e){let i=Wi(e);i[t]=Math.max(0,Math.min(i[t]+i[t]*n,t===0?360:1)),i=Yi(i),e.r=i[0],e.g=i[1],e.b=i[2]}}function Yr(e,t){return e&&Object.assign(t||{},e)}function zs(e){var t={r:0,g:0,b:0,a:255};return Array.isArray(e)?e.length>=3&&(t={r:e[0],g:e[1],b:e[2],a:255},e.length>3&&(t.a=Vt(e[3]))):(t=Yr(e,{r:0,g:0,b:0,a:1}),t.a=Vt(t.a)),t}function wh(e){return e.charAt(0)==="r"?yh(e):fh(e)}class Ze{constructor(t){if(t instanceof Ze)return t;const n=typeof t;let i;n==="object"?i=zs(t):n==="string"&&(i=sh(t)||bh(t)||wh(t)),this._rgb=i,this._valid=!!i}get valid(){return this._valid}get rgb(){var t=Yr(this._rgb);return t&&(t.a=Lt(t.a)),t}set rgb(t){this._rgb=zs(t)}rgbString(){return this._valid?vh(this._rgb):void 0}hexString(){return this._valid?rh(this._rgb):void 0}hslString(){return this._valid?gh(this._rgb):void 0}mix(t,n){if(t){const i=this.rgb,s=t.rgb;let o;const r=n===o?.5:n,a=2*r-1,l=i.a-s.a,c=((a*l===-1?a:(a+l)/(1+a*l))+1)/2;o=1-c,i.r=255&c*i.r+o*s.r+.5,i.g=255&c*i.g+o*s.g+.5,i.b=255&c*i.b+o*s.b+.5,i.a=r*i.a+(1-r)*s.a,this.rgb=i}return this}interpolate(t,n){return t&&(this._rgb=_h(this._rgb,t._rgb,n)),this}clone(){return new Ze(this.rgb)}alpha(t){return this._rgb.a=Vt(t),this}clearer(t){const n=this._rgb;return n.a*=1-t,this}greyscale(){const t=this._rgb,n=hn(t.r*.3+t.g*.59+t.b*.11);return t.r=t.g=t.b=n,this}opaquer(t){const n=this._rgb;return n.a*=1+t,this}negate(){const t=this._rgb;return t.r=255-t.r,t.g=255-t.g,t.b=255-t.b,this}lighten(t){return bn(this._rgb,2,t),this}darken(t){return bn(this._rgb,2,-t),this}saturate(t){return bn(this._rgb,1,t),this}desaturate(t){return bn(this._rgb,1,-t),this}rotate(t){return ph(this._rgb,t),this}}/*! - * Chart.js v4.4.7 - * https://www.chartjs.org - * (c) 2024 Chart.js Contributors - * Released under the MIT License - */function At(){}const Sh=(()=>{let e=0;return()=>e++})();function V(e){return e==null}function J(e){if(Array.isArray&&Array.isArray(e))return!0;const t=Object.prototype.toString.call(e);return t.slice(0,7)==="[object"&&t.slice(-6)==="Array]"}function z(e){return e!==null&&Object.prototype.toString.call(e)==="[object Object]"}function vt(e){return(typeof e=="number"||e instanceof Number)&&isFinite(+e)}function St(e,t){return vt(e)?e:t}function j(e,t){return typeof e>"u"?t:e}const kh=(e,t)=>typeof e=="string"&&e.endsWith("%")?parseFloat(e)/100*t:+e;function Y(e,t,n){if(e&&typeof e.call=="function")return e.apply(n,t)}function W(e,t,n,i){let s,o,r;if(J(e))for(o=e.length,s=0;s<o;s++)t.call(n,e[s],s);else if(z(e))for(r=Object.keys(e),o=r.length,s=0;s<o;s++)t.call(n,e[r[s]],r[s])}function In(e,t){let n,i,s,o;if(!e||!t||e.length!==t.length)return!1;for(n=0,i=e.length;n<i;++n)if(s=e[n],o=t[n],s.datasetIndex!==o.datasetIndex||s.index!==o.index)return!1;return!0}function jn(e){if(J(e))return e.map(jn);if(z(e)){const t=Object.create(null),n=Object.keys(e),i=n.length;let s=0;for(;s<i;++s)t[n[s]]=jn(e[n[s]]);return t}return e}function Ur(e){return["__proto__","prototype","constructor"].indexOf(e)===-1}function Mh(e,t,n,i){if(!Ur(e))return;const s=t[e],o=n[e];z(s)&&z(o)?Qe(s,o,i):t[e]=jn(o)}function Qe(e,t,n){const i=J(t)?t:[t],s=i.length;if(!z(e))return e;n=n||{};const o=n.merger||Mh;let r;for(let a=0;a<s;++a){if(r=i[a],!z(r))continue;const l=Object.keys(r);for(let c=0,h=l.length;c<h;++c)o(l[c],e,r,n)}return e}function Ue(e,t){return Qe(e,t,{merger:Ch})}function Ch(e,t,n){if(!Ur(e))return;const i=t[e],s=n[e];z(i)&&z(s)?Ue(i,s):Object.prototype.hasOwnProperty.call(t,e)||(t[e]=jn(s))}const Bs={"":e=>e,x:e=>e.x,y:e=>e.y};function Ph(e){const t=e.split("."),n=[];let i="";for(const s of t)i+=s,i.endsWith("\\")?i=i.slice(0,-1)+".":(n.push(i),i="");return n}function Oh(e){const t=Ph(e);return n=>{for(const i of t){if(i==="")break;n=n&&n[i]}return n}}function Oe(e,t){return(Bs[t]||(Bs[t]=Oh(t)))(e)}function Ui(e){return e.charAt(0).toUpperCase()+e.slice(1)}const tn=e=>typeof e<"u",Xt=e=>typeof e=="function",Ns=(e,t)=>{if(e.size!==t.size)return!1;for(const n of e)if(!t.has(n))return!1;return!0};function Dh(e){return e.type==="mouseup"||e.type==="click"||e.type==="contextmenu"}const Z=Math.PI,st=2*Z,Eh=st+Z,$n=Number.POSITIVE_INFINITY,Ah=Z/180,it=Z/2,te=Z/4,Hs=Z*2/3,ki=Math.log10,Dt=Math.sign;function Xe(e,t,n){return Math.abs(e-t)<n}function Ws(e){const t=Math.round(e);e=Xe(e,t,e/1e3)?t:e;const n=Math.pow(10,Math.floor(ki(e))),i=e/n;return(i<=1?1:i<=2?2:i<=5?5:10)*n}function Th(e){const t=[],n=Math.sqrt(e);let i;for(i=1;i<n;i++)e%i===0&&(t.push(i),t.push(e/i));return n===(n|0)&&t.push(n),t.sort((s,o)=>s-o).pop(),t}function en(e){return!isNaN(parseFloat(e))&&isFinite(e)}function Rh(e,t){const n=Math.round(e);return n-t<=e&&n+t>=e}function Lh(e,t,n){let i,s,o;for(i=0,s=e.length;i<s;i++)o=e[i][n],isNaN(o)||(t.min=Math.min(t.min,o),t.max=Math.max(t.max,o))}function ae(e){return e*(Z/180)}function Fh(e){return e*(180/Z)}function Vs(e){if(!vt(e))return;let t=1,n=0;for(;Math.round(e*t)/t!==e;)t*=10,n++;return n}function Xr(e,t){const n=t.x-e.x,i=t.y-e.y,s=Math.sqrt(n*n+i*i);let o=Math.atan2(i,n);return o<-.5*Z&&(o+=st),{angle:o,distance:s}}function Mi(e,t){return Math.sqrt(Math.pow(t.x-e.x,2)+Math.pow(t.y-e.y,2))}function Ih(e,t){return(e-t+Eh)%st-Z}function zt(e){return(e%st+st)%st}function Xi(e,t,n,i){const s=zt(e),o=zt(t),r=zt(n),a=zt(o-s),l=zt(r-s),c=zt(s-o),h=zt(s-r);return s===o||s===r||i&&o===r||a>l&&c<h}function rt(e,t,n){return Math.max(t,Math.min(n,e))}function jh(e){return rt(e,-32768,32767)}function Nt(e,t,n,i=1e-6){return e>=Math.min(t,n)-i&&e<=Math.max(t,n)+i}function qi(e,t,n){n=n||(r=>e[r]<t);let i=e.length-1,s=0,o;for(;i-s>1;)o=s+i>>1,n(o)?s=o:i=o;return{lo:s,hi:i}}const le=(e,t,n,i)=>qi(e,n,i?s=>{const o=e[s][t];return o<n||o===n&&e[s+1][t]===n}:s=>e[s][t]<n),$h=(e,t,n)=>qi(e,n,i=>e[i][t]>=n);function zh(e,t,n){let i=0,s=e.length;for(;i<s&&e[i]<t;)i++;for(;s>i&&e[s-1]>n;)s--;return i>0||s<e.length?e.slice(i,s):e}const qr=["push","pop","shift","splice","unshift"];function Bh(e,t){if(e._chartjs){e._chartjs.listeners.push(t);return}Object.defineProperty(e,"_chartjs",{configurable:!0,enumerable:!1,value:{listeners:[t]}}),qr.forEach(n=>{const i="_onData"+Ui(n),s=e[n];Object.defineProperty(e,n,{configurable:!0,enumerable:!1,value(...o){const r=s.apply(this,o);return e._chartjs.listeners.forEach(a=>{typeof a[i]=="function"&&a[i](...o)}),r}})})}function Ys(e,t){const n=e._chartjs;if(!n)return;const i=n.listeners,s=i.indexOf(t);s!==-1&&i.splice(s,1),!(i.length>0)&&(qr.forEach(o=>{delete e[o]}),delete e._chartjs)}function Kr(e){const t=new Set(e);return t.size===e.length?e:Array.from(t)}const Gr=function(){return typeof window>"u"?function(e){return e()}:window.requestAnimationFrame}();function Jr(e,t){let n=[],i=!1;return function(...s){n=s,i||(i=!0,Gr.call(window,()=>{i=!1,e.apply(t,n)}))}}function Nh(e,t){let n;return function(...i){return t?(clearTimeout(n),n=setTimeout(e,t,i)):e.apply(this,i),t}}const Ki=e=>e==="start"?"left":e==="end"?"right":"center",ot=(e,t,n)=>e==="start"?t:e==="end"?n:(t+n)/2,Hh=(e,t,n,i)=>e===(i?"left":"right")?n:e==="center"?(t+n)/2:t;function Wh(e,t,n){const i=t.length;let s=0,o=i;if(e._sorted){const{iScale:r,_parsed:a}=e,l=r.axis,{min:c,max:h,minDefined:u,maxDefined:d}=r.getUserBounds();u&&(s=rt(Math.min(le(a,l,c).lo,n?i:le(t,l,r.getPixelForValue(c)).lo),0,i-1)),d?o=rt(Math.max(le(a,r.axis,h,!0).hi+1,n?0:le(t,l,r.getPixelForValue(h),!0).hi+1),s,i)-s:o=i-s}return{start:s,count:o}}function Vh(e){const{xScale:t,yScale:n,_scaleRanges:i}=e,s={xmin:t.min,xmax:t.max,ymin:n.min,ymax:n.max};if(!i)return e._scaleRanges=s,!0;const o=i.xmin!==t.min||i.xmax!==t.max||i.ymin!==n.min||i.ymax!==n.max;return Object.assign(i,s),o}const xn=e=>e===0||e===1,Us=(e,t,n)=>-(Math.pow(2,10*(e-=1))*Math.sin((e-t)*st/n)),Xs=(e,t,n)=>Math.pow(2,-10*e)*Math.sin((e-t)*st/n)+1,qe={linear:e=>e,easeInQuad:e=>e*e,easeOutQuad:e=>-e*(e-2),easeInOutQuad:e=>(e/=.5)<1?.5*e*e:-.5*(--e*(e-2)-1),easeInCubic:e=>e*e*e,easeOutCubic:e=>(e-=1)*e*e+1,easeInOutCubic:e=>(e/=.5)<1?.5*e*e*e:.5*((e-=2)*e*e+2),easeInQuart:e=>e*e*e*e,easeOutQuart:e=>-((e-=1)*e*e*e-1),easeInOutQuart:e=>(e/=.5)<1?.5*e*e*e*e:-.5*((e-=2)*e*e*e-2),easeInQuint:e=>e*e*e*e*e,easeOutQuint:e=>(e-=1)*e*e*e*e+1,easeInOutQuint:e=>(e/=.5)<1?.5*e*e*e*e*e:.5*((e-=2)*e*e*e*e+2),easeInSine:e=>-Math.cos(e*it)+1,easeOutSine:e=>Math.sin(e*it),easeInOutSine:e=>-.5*(Math.cos(Z*e)-1),easeInExpo:e=>e===0?0:Math.pow(2,10*(e-1)),easeOutExpo:e=>e===1?1:-Math.pow(2,-10*e)+1,easeInOutExpo:e=>xn(e)?e:e<.5?.5*Math.pow(2,10*(e*2-1)):.5*(-Math.pow(2,-10*(e*2-1))+2),easeInCirc:e=>e>=1?e:-(Math.sqrt(1-e*e)-1),easeOutCirc:e=>Math.sqrt(1-(e-=1)*e),easeInOutCirc:e=>(e/=.5)<1?-.5*(Math.sqrt(1-e*e)-1):.5*(Math.sqrt(1-(e-=2)*e)+1),easeInElastic:e=>xn(e)?e:Us(e,.075,.3),easeOutElastic:e=>xn(e)?e:Xs(e,.075,.3),easeInOutElastic(e){return xn(e)?e:e<.5?.5*Us(e*2,.1125,.45):.5+.5*Xs(e*2-1,.1125,.45)},easeInBack(e){return e*e*((1.70158+1)*e-1.70158)},easeOutBack(e){return(e-=1)*e*((1.70158+1)*e+1.70158)+1},easeInOutBack(e){let t=1.70158;return(e/=.5)<1?.5*(e*e*(((t*=1.525)+1)*e-t)):.5*((e-=2)*e*(((t*=1.525)+1)*e+t)+2)},easeInBounce:e=>1-qe.easeOutBounce(1-e),easeOutBounce(e){return e<1/2.75?7.5625*e*e:e<2/2.75?7.5625*(e-=1.5/2.75)*e+.75:e<2.5/2.75?7.5625*(e-=2.25/2.75)*e+.9375:7.5625*(e-=2.625/2.75)*e+.984375},easeInOutBounce:e=>e<.5?qe.easeInBounce(e*2)*.5:qe.easeOutBounce(e*2-1)*.5+.5};function Gi(e){if(e&&typeof e=="object"){const t=e.toString();return t==="[object CanvasPattern]"||t==="[object CanvasGradient]"}return!1}function qs(e){return Gi(e)?e:new Ze(e)}function si(e){return Gi(e)?e:new Ze(e).saturate(.5).darken(.1).hexString()}const Yh=["x","y","borderWidth","radius","tension"],Uh=["color","borderColor","backgroundColor"];function Xh(e){e.set("animation",{delay:void 0,duration:1e3,easing:"easeOutQuart",fn:void 0,from:void 0,loop:void 0,to:void 0,type:void 0}),e.describe("animation",{_fallback:!1,_indexable:!1,_scriptable:t=>t!=="onProgress"&&t!=="onComplete"&&t!=="fn"}),e.set("animations",{colors:{type:"color",properties:Uh},numbers:{type:"number",properties:Yh}}),e.describe("animations",{_fallback:"animation"}),e.set("transitions",{active:{animation:{duration:400}},resize:{animation:{duration:0}},show:{animations:{colors:{from:"transparent"},visible:{type:"boolean",duration:0}}},hide:{animations:{colors:{to:"transparent"},visible:{type:"boolean",easing:"linear",fn:t=>t|0}}}})}function qh(e){e.set("layout",{autoPadding:!0,padding:{top:0,right:0,bottom:0,left:0}})}const Ks=new Map;function Kh(e,t){t=t||{};const n=e+JSON.stringify(t);let i=Ks.get(n);return i||(i=new Intl.NumberFormat(e,t),Ks.set(n,i)),i}function Zr(e,t,n){return Kh(t,n).format(e)}const Qr={values(e){return J(e)?e:""+e},numeric(e,t,n){if(e===0)return"0";const i=this.chart.options.locale;let s,o=e;if(n.length>1){const c=Math.max(Math.abs(n[0].value),Math.abs(n[n.length-1].value));(c<1e-4||c>1e15)&&(s="scientific"),o=Gh(e,n)}const r=ki(Math.abs(o)),a=isNaN(r)?1:Math.max(Math.min(-1*Math.floor(r),20),0),l={notation:s,minimumFractionDigits:a,maximumFractionDigits:a};return Object.assign(l,this.options.ticks.format),Zr(e,i,l)},logarithmic(e,t,n){if(e===0)return"0";const i=n[t].significand||e/Math.pow(10,Math.floor(ki(e)));return[1,2,3,5,10,15].includes(i)||t>.8*n.length?Qr.numeric.call(this,e,t,n):""}};function Gh(e,t){let n=t.length>3?t[2].value-t[1].value:t[1].value-t[0].value;return Math.abs(n)>=1&&e!==Math.floor(e)&&(n=e-Math.floor(e)),n}var ta={formatters:Qr};function Jh(e){e.set("scale",{display:!0,offset:!1,reverse:!1,beginAtZero:!1,bounds:"ticks",clip:!0,grace:0,grid:{display:!0,lineWidth:1,drawOnChartArea:!0,drawTicks:!0,tickLength:8,tickWidth:(t,n)=>n.lineWidth,tickColor:(t,n)=>n.color,offset:!1},border:{display:!0,dash:[],dashOffset:0,width:1},title:{display:!1,text:"",padding:{top:4,bottom:4}},ticks:{minRotation:0,maxRotation:50,mirror:!1,textStrokeWidth:0,textStrokeColor:"",padding:3,display:!0,autoSkip:!0,autoSkipPadding:3,labelOffset:0,callback:ta.formatters.values,minor:{},major:{},align:"center",crossAlign:"near",showLabelBackdrop:!1,backdropColor:"rgba(255, 255, 255, 0.75)",backdropPadding:2}}),e.route("scale.ticks","color","","color"),e.route("scale.grid","color","","borderColor"),e.route("scale.border","color","","borderColor"),e.route("scale.title","color","","color"),e.describe("scale",{_fallback:!1,_scriptable:t=>!t.startsWith("before")&&!t.startsWith("after")&&t!=="callback"&&t!=="parser",_indexable:t=>t!=="borderDash"&&t!=="tickBorderDash"&&t!=="dash"}),e.describe("scales",{_fallback:"scale"}),e.describe("scale.ticks",{_scriptable:t=>t!=="backdropPadding"&&t!=="callback",_indexable:t=>t!=="backdropPadding"})}const fe=Object.create(null),Ci=Object.create(null);function Ke(e,t){if(!t)return e;const n=t.split(".");for(let i=0,s=n.length;i<s;++i){const o=n[i];e=e[o]||(e[o]=Object.create(null))}return e}function oi(e,t,n){return typeof t=="string"?Qe(Ke(e,t),n):Qe(Ke(e,""),t)}class Zh{constructor(t,n){this.animation=void 0,this.backgroundColor="rgba(0,0,0,0.1)",this.borderColor="rgba(0,0,0,0.1)",this.color="#666",this.datasets={},this.devicePixelRatio=i=>i.chart.platform.getDevicePixelRatio(),this.elements={},this.events=["mousemove","mouseout","click","touchstart","touchmove"],this.font={family:"'Helvetica Neue', 'Helvetica', 'Arial', sans-serif",size:12,style:"normal",lineHeight:1.2,weight:null},this.hover={},this.hoverBackgroundColor=(i,s)=>si(s.backgroundColor),this.hoverBorderColor=(i,s)=>si(s.borderColor),this.hoverColor=(i,s)=>si(s.color),this.indexAxis="x",this.interaction={mode:"nearest",intersect:!0,includeInvisible:!1},this.maintainAspectRatio=!0,this.onHover=null,this.onClick=null,this.parsing=!0,this.plugins={},this.responsive=!0,this.scale=void 0,this.scales={},this.showLine=!0,this.drawActiveElementsOnTop=!0,this.describe(t),this.apply(n)}set(t,n){return oi(this,t,n)}get(t){return Ke(this,t)}describe(t,n){return oi(Ci,t,n)}override(t,n){return oi(fe,t,n)}route(t,n,i,s){const o=Ke(this,t),r=Ke(this,i),a="_"+n;Object.defineProperties(o,{[a]:{value:o[n],writable:!0},[n]:{enumerable:!0,get(){const l=this[a],c=r[s];return z(l)?Object.assign({},c,l):j(l,c)},set(l){this[a]=l}}})}apply(t){t.forEach(n=>n(this))}}var q=new Zh({_scriptable:e=>!e.startsWith("on"),_indexable:e=>e!=="events",hover:{_fallback:"interaction"},interaction:{_scriptable:!1,_indexable:!1}},[Xh,qh,Jh]);function Qh(e){return!e||V(e.size)||V(e.family)?null:(e.style?e.style+" ":"")+(e.weight?e.weight+" ":"")+e.size+"px "+e.family}function Gs(e,t,n,i,s){let o=t[s];return o||(o=t[s]=e.measureText(s).width,n.push(s)),o>i&&(i=o),i}function ee(e,t,n){const i=e.currentDevicePixelRatio,s=n!==0?Math.max(n/2,.5):0;return Math.round((t-s)*i)/i+s}function Js(e,t){!t&&!e||(t=t||e.getContext("2d"),t.save(),t.resetTransform(),t.clearRect(0,0,e.width,e.height),t.restore())}function Pi(e,t,n,i){ea(e,t,n,i,null)}function ea(e,t,n,i,s){let o,r,a,l,c,h,u,d;const f=t.pointStyle,g=t.rotation,m=t.radius;let p=(g||0)*Ah;if(f&&typeof f=="object"&&(o=f.toString(),o==="[object HTMLImageElement]"||o==="[object HTMLCanvasElement]")){e.save(),e.translate(n,i),e.rotate(p),e.drawImage(f,-f.width/2,-f.height/2,f.width,f.height),e.restore();return}if(!(isNaN(m)||m<=0)){switch(e.beginPath(),f){default:s?e.ellipse(n,i,s/2,m,0,0,st):e.arc(n,i,m,0,st),e.closePath();break;case"triangle":h=s?s/2:m,e.moveTo(n+Math.sin(p)*h,i-Math.cos(p)*m),p+=Hs,e.lineTo(n+Math.sin(p)*h,i-Math.cos(p)*m),p+=Hs,e.lineTo(n+Math.sin(p)*h,i-Math.cos(p)*m),e.closePath();break;case"rectRounded":c=m*.516,l=m-c,r=Math.cos(p+te)*l,u=Math.cos(p+te)*(s?s/2-c:l),a=Math.sin(p+te)*l,d=Math.sin(p+te)*(s?s/2-c:l),e.arc(n-u,i-a,c,p-Z,p-it),e.arc(n+d,i-r,c,p-it,p),e.arc(n+u,i+a,c,p,p+it),e.arc(n-d,i+r,c,p+it,p+Z),e.closePath();break;case"rect":if(!g){l=Math.SQRT1_2*m,h=s?s/2:l,e.rect(n-h,i-l,2*h,2*l);break}p+=te;case"rectRot":u=Math.cos(p)*(s?s/2:m),r=Math.cos(p)*m,a=Math.sin(p)*m,d=Math.sin(p)*(s?s/2:m),e.moveTo(n-u,i-a),e.lineTo(n+d,i-r),e.lineTo(n+u,i+a),e.lineTo(n-d,i+r),e.closePath();break;case"crossRot":p+=te;case"cross":u=Math.cos(p)*(s?s/2:m),r=Math.cos(p)*m,a=Math.sin(p)*m,d=Math.sin(p)*(s?s/2:m),e.moveTo(n-u,i-a),e.lineTo(n+u,i+a),e.moveTo(n+d,i-r),e.lineTo(n-d,i+r);break;case"star":u=Math.cos(p)*(s?s/2:m),r=Math.cos(p)*m,a=Math.sin(p)*m,d=Math.sin(p)*(s?s/2:m),e.moveTo(n-u,i-a),e.lineTo(n+u,i+a),e.moveTo(n+d,i-r),e.lineTo(n-d,i+r),p+=te,u=Math.cos(p)*(s?s/2:m),r=Math.cos(p)*m,a=Math.sin(p)*m,d=Math.sin(p)*(s?s/2:m),e.moveTo(n-u,i-a),e.lineTo(n+u,i+a),e.moveTo(n+d,i-r),e.lineTo(n-d,i+r);break;case"line":r=s?s/2:Math.cos(p)*m,a=Math.sin(p)*m,e.moveTo(n-r,i-a),e.lineTo(n+r,i+a);break;case"dash":e.moveTo(n,i),e.lineTo(n+Math.cos(p)*(s?s/2:m),i+Math.sin(p)*m);break;case!1:e.closePath();break}e.fill(),t.borderWidth>0&&e.stroke()}}function nn(e,t,n){return n=n||.5,!t||e&&e.x>t.left-n&&e.x<t.right+n&&e.y>t.top-n&&e.y<t.bottom+n}function Ji(e,t){e.save(),e.beginPath(),e.rect(t.left,t.top,t.right-t.left,t.bottom-t.top),e.clip()}function Zi(e){e.restore()}function tu(e,t,n,i,s){if(!t)return e.lineTo(n.x,n.y);if(s==="middle"){const o=(t.x+n.x)/2;e.lineTo(o,t.y),e.lineTo(o,n.y)}else s==="after"!=!!i?e.lineTo(t.x,n.y):e.lineTo(n.x,t.y);e.lineTo(n.x,n.y)}function eu(e,t,n,i){if(!t)return e.lineTo(n.x,n.y);e.bezierCurveTo(i?t.cp1x:t.cp2x,i?t.cp1y:t.cp2y,i?n.cp2x:n.cp1x,i?n.cp2y:n.cp1y,n.x,n.y)}function nu(e,t){t.translation&&e.translate(t.translation[0],t.translation[1]),V(t.rotation)||e.rotate(t.rotation),t.color&&(e.fillStyle=t.color),t.textAlign&&(e.textAlign=t.textAlign),t.textBaseline&&(e.textBaseline=t.textBaseline)}function iu(e,t,n,i,s){if(s.strikethrough||s.underline){const o=e.measureText(i),r=t-o.actualBoundingBoxLeft,a=t+o.actualBoundingBoxRight,l=n-o.actualBoundingBoxAscent,c=n+o.actualBoundingBoxDescent,h=s.strikethrough?(l+c)/2:c;e.strokeStyle=e.fillStyle,e.beginPath(),e.lineWidth=s.decorationWidth||2,e.moveTo(r,h),e.lineTo(a,h),e.stroke()}}function su(e,t){const n=e.fillStyle;e.fillStyle=t.color,e.fillRect(t.left,t.top,t.width,t.height),e.fillStyle=n}function sn(e,t,n,i,s,o={}){const r=J(t)?t:[t],a=o.strokeWidth>0&&o.strokeColor!=="";let l,c;for(e.save(),e.font=s.string,nu(e,o),l=0;l<r.length;++l)c=r[l],o.backdrop&&su(e,o.backdrop),a&&(o.strokeColor&&(e.strokeStyle=o.strokeColor),V(o.strokeWidth)||(e.lineWidth=o.strokeWidth),e.strokeText(c,n,i,o.maxWidth)),e.fillText(c,n,i,o.maxWidth),iu(e,n,i,c,o),i+=Number(s.lineHeight);e.restore()}function zn(e,t){const{x:n,y:i,w:s,h:o,radius:r}=t;e.arc(n+r.topLeft,i+r.topLeft,r.topLeft,1.5*Z,Z,!0),e.lineTo(n,i+o-r.bottomLeft),e.arc(n+r.bottomLeft,i+o-r.bottomLeft,r.bottomLeft,Z,it,!0),e.lineTo(n+s-r.bottomRight,i+o),e.arc(n+s-r.bottomRight,i+o-r.bottomRight,r.bottomRight,it,0,!0),e.lineTo(n+s,i+r.topRight),e.arc(n+s-r.topRight,i+r.topRight,r.topRight,0,-it,!0),e.lineTo(n+r.topLeft,i)}const ou=/^(normal|(\d+(?:\.\d+)?)(px|em|%)?)$/,ru=/^(normal|italic|initial|inherit|unset|(oblique( -?[0-9]?[0-9]deg)?))$/;function au(e,t){const n=(""+e).match(ou);if(!n||n[1]==="normal")return t*1.2;switch(e=+n[2],n[3]){case"px":return e;case"%":e/=100;break}return t*e}const lu=e=>+e||0;function Qi(e,t){const n={},i=z(t),s=i?Object.keys(t):t,o=z(e)?i?r=>j(e[r],e[t[r]]):r=>e[r]:()=>e;for(const r of s)n[r]=lu(o(r));return n}function na(e){return Qi(e,{top:"y",right:"x",bottom:"y",left:"x"})}function _e(e){return Qi(e,["topLeft","topRight","bottomLeft","bottomRight"])}function _t(e){const t=na(e);return t.width=t.left+t.right,t.height=t.top+t.bottom,t}function at(e,t){e=e||{},t=t||q.font;let n=j(e.size,t.size);typeof n=="string"&&(n=parseInt(n,10));let i=j(e.style,t.style);i&&!(""+i).match(ru)&&(console.warn('Invalid font style specified: "'+i+'"'),i=void 0);const s={family:j(e.family,t.family),lineHeight:au(j(e.lineHeight,t.lineHeight),n),size:n,style:i,weight:j(e.weight,t.weight),string:""};return s.string=Qh(s),s}function yn(e,t,n,i){let s,o,r;for(s=0,o=e.length;s<o;++s)if(r=e[s],r!==void 0&&(t!==void 0&&typeof r=="function"&&(r=r(t)),n!==void 0&&J(r)&&(r=r[n%r.length]),r!==void 0))return r}function cu(e,t,n){const{min:i,max:s}=e,o=kh(t,(s-i)/2),r=(a,l)=>n&&a===0?0:a+l;return{min:r(i,-Math.abs(o)),max:r(s,o)}}function pe(e,t){return Object.assign(Object.create(e),t)}function ts(e,t=[""],n,i,s=()=>e[0]){const o=n||e;typeof i>"u"&&(i=ra("_fallback",e));const r={[Symbol.toStringTag]:"Object",_cacheable:!0,_scopes:e,_rootScopes:o,_fallback:i,_getTarget:s,override:a=>ts([a,...e],t,o,i)};return new Proxy(r,{deleteProperty(a,l){return delete a[l],delete a._keys,delete e[0][l],!0},get(a,l){return sa(a,l,()=>bu(l,t,e,a))},getOwnPropertyDescriptor(a,l){return Reflect.getOwnPropertyDescriptor(a._scopes[0],l)},getPrototypeOf(){return Reflect.getPrototypeOf(e[0])},has(a,l){return Qs(a).includes(l)},ownKeys(a){return Qs(a)},set(a,l,c){const h=a._storage||(a._storage=s());return a[l]=h[l]=c,delete a._keys,!0}})}function De(e,t,n,i){const s={_cacheable:!1,_proxy:e,_context:t,_subProxy:n,_stack:new Set,_descriptors:ia(e,i),setContext:o=>De(e,o,n,i),override:o=>De(e.override(o),t,n,i)};return new Proxy(s,{deleteProperty(o,r){return delete o[r],delete e[r],!0},get(o,r,a){return sa(o,r,()=>uu(o,r,a))},getOwnPropertyDescriptor(o,r){return o._descriptors.allKeys?Reflect.has(e,r)?{enumerable:!0,configurable:!0}:void 0:Reflect.getOwnPropertyDescriptor(e,r)},getPrototypeOf(){return Reflect.getPrototypeOf(e)},has(o,r){return Reflect.has(e,r)},ownKeys(){return Reflect.ownKeys(e)},set(o,r,a){return e[r]=a,delete o[r],!0}})}function ia(e,t={scriptable:!0,indexable:!0}){const{_scriptable:n=t.scriptable,_indexable:i=t.indexable,_allKeys:s=t.allKeys}=e;return{allKeys:s,scriptable:n,indexable:i,isScriptable:Xt(n)?n:()=>n,isIndexable:Xt(i)?i:()=>i}}const hu=(e,t)=>e?e+Ui(t):t,es=(e,t)=>z(t)&&e!=="adapters"&&(Object.getPrototypeOf(t)===null||t.constructor===Object);function sa(e,t,n){if(Object.prototype.hasOwnProperty.call(e,t)||t==="constructor")return e[t];const i=n();return e[t]=i,i}function uu(e,t,n){const{_proxy:i,_context:s,_subProxy:o,_descriptors:r}=e;let a=i[t];return Xt(a)&&r.isScriptable(t)&&(a=du(t,a,e,n)),J(a)&&a.length&&(a=fu(t,a,e,r.isIndexable)),es(t,a)&&(a=De(a,s,o&&o[t],r)),a}function du(e,t,n,i){const{_proxy:s,_context:o,_subProxy:r,_stack:a}=n;if(a.has(e))throw new Error("Recursion detected: "+Array.from(a).join("->")+"->"+e);a.add(e);let l=t(o,r||i);return a.delete(e),es(e,l)&&(l=ns(s._scopes,s,e,l)),l}function fu(e,t,n,i){const{_proxy:s,_context:o,_subProxy:r,_descriptors:a}=n;if(typeof o.index<"u"&&i(e))return t[o.index%t.length];if(z(t[0])){const l=t,c=s._scopes.filter(h=>h!==l);t=[];for(const h of l){const u=ns(c,s,e,h);t.push(De(u,o,r&&r[e],a))}}return t}function oa(e,t,n){return Xt(e)?e(t,n):e}const pu=(e,t)=>e===!0?t:typeof e=="string"?Oe(t,e):void 0;function gu(e,t,n,i,s){for(const o of t){const r=pu(n,o);if(r){e.add(r);const a=oa(r._fallback,n,s);if(typeof a<"u"&&a!==n&&a!==i)return a}else if(r===!1&&typeof i<"u"&&n!==i)return null}return!1}function ns(e,t,n,i){const s=t._rootScopes,o=oa(t._fallback,n,i),r=[...e,...s],a=new Set;a.add(i);let l=Zs(a,r,n,o||n,i);return l===null||typeof o<"u"&&o!==n&&(l=Zs(a,r,o,l,i),l===null)?!1:ts(Array.from(a),[""],s,o,()=>mu(t,n,i))}function Zs(e,t,n,i,s){for(;n;)n=gu(e,t,n,i,s);return n}function mu(e,t,n){const i=e._getTarget();t in i||(i[t]={});const s=i[t];return J(s)&&z(n)?n:s||{}}function bu(e,t,n,i){let s;for(const o of t)if(s=ra(hu(o,e),n),typeof s<"u")return es(e,s)?ns(n,i,e,s):s}function ra(e,t){for(const n of t){if(!n)continue;const i=n[e];if(typeof i<"u")return i}}function Qs(e){let t=e._keys;return t||(t=e._keys=xu(e._scopes)),t}function xu(e){const t=new Set;for(const n of e)for(const i of Object.keys(n).filter(s=>!s.startsWith("_")))t.add(i);return Array.from(t)}const yu=Number.EPSILON||1e-14,Ee=(e,t)=>t<e.length&&!e[t].skip&&e[t],aa=e=>e==="x"?"y":"x";function vu(e,t,n,i){const s=e.skip?t:e,o=t,r=n.skip?t:n,a=Mi(o,s),l=Mi(r,o);let c=a/(a+l),h=l/(a+l);c=isNaN(c)?0:c,h=isNaN(h)?0:h;const u=i*c,d=i*h;return{previous:{x:o.x-u*(r.x-s.x),y:o.y-u*(r.y-s.y)},next:{x:o.x+d*(r.x-s.x),y:o.y+d*(r.y-s.y)}}}function _u(e,t,n){const i=e.length;let s,o,r,a,l,c=Ee(e,0);for(let h=0;h<i-1;++h)if(l=c,c=Ee(e,h+1),!(!l||!c)){if(Xe(t[h],0,yu)){n[h]=n[h+1]=0;continue}s=n[h]/t[h],o=n[h+1]/t[h],a=Math.pow(s,2)+Math.pow(o,2),!(a<=9)&&(r=3/Math.sqrt(a),n[h]=s*r*t[h],n[h+1]=o*r*t[h])}}function wu(e,t,n="x"){const i=aa(n),s=e.length;let o,r,a,l=Ee(e,0);for(let c=0;c<s;++c){if(r=a,a=l,l=Ee(e,c+1),!a)continue;const h=a[n],u=a[i];r&&(o=(h-r[n])/3,a[`cp1${n}`]=h-o,a[`cp1${i}`]=u-o*t[c]),l&&(o=(l[n]-h)/3,a[`cp2${n}`]=h+o,a[`cp2${i}`]=u+o*t[c])}}function Su(e,t="x"){const n=aa(t),i=e.length,s=Array(i).fill(0),o=Array(i);let r,a,l,c=Ee(e,0);for(r=0;r<i;++r)if(a=l,l=c,c=Ee(e,r+1),!!l){if(c){const h=c[t]-l[t];s[r]=h!==0?(c[n]-l[n])/h:0}o[r]=a?c?Dt(s[r-1])!==Dt(s[r])?0:(s[r-1]+s[r])/2:s[r-1]:s[r]}_u(e,s,o),wu(e,o,t)}function vn(e,t,n){return Math.max(Math.min(e,n),t)}function ku(e,t){let n,i,s,o,r,a=nn(e[0],t);for(n=0,i=e.length;n<i;++n)r=o,o=a,a=n<i-1&&nn(e[n+1],t),o&&(s=e[n],r&&(s.cp1x=vn(s.cp1x,t.left,t.right),s.cp1y=vn(s.cp1y,t.top,t.bottom)),a&&(s.cp2x=vn(s.cp2x,t.left,t.right),s.cp2y=vn(s.cp2y,t.top,t.bottom)))}function Mu(e,t,n,i,s){let o,r,a,l;if(t.spanGaps&&(e=e.filter(c=>!c.skip)),t.cubicInterpolationMode==="monotone")Su(e,s);else{let c=i?e[e.length-1]:e[0];for(o=0,r=e.length;o<r;++o)a=e[o],l=vu(c,a,e[Math.min(o+1,r-(i?0:1))%r],t.tension),a.cp1x=l.previous.x,a.cp1y=l.previous.y,a.cp2x=l.next.x,a.cp2y=l.next.y,c=a}t.capBezierPoints&&ku(e,n)}function is(){return typeof window<"u"&&typeof document<"u"}function ss(e){let t=e.parentNode;return t&&t.toString()==="[object ShadowRoot]"&&(t=t.host),t}function Bn(e,t,n){let i;return typeof e=="string"?(i=parseInt(e,10),e.indexOf("%")!==-1&&(i=i/100*t.parentNode[n])):i=e,i}const qn=e=>e.ownerDocument.defaultView.getComputedStyle(e,null);function Cu(e,t){return qn(e).getPropertyValue(t)}const Pu=["top","right","bottom","left"];function he(e,t,n){const i={};n=n?"-"+n:"";for(let s=0;s<4;s++){const o=Pu[s];i[o]=parseFloat(e[t+"-"+o+n])||0}return i.width=i.left+i.right,i.height=i.top+i.bottom,i}const Ou=(e,t,n)=>(e>0||t>0)&&(!n||!n.shadowRoot);function Du(e,t){const n=e.touches,i=n&&n.length?n[0]:e,{offsetX:s,offsetY:o}=i;let r=!1,a,l;if(Ou(s,o,e.target))a=s,l=o;else{const c=t.getBoundingClientRect();a=i.clientX-c.left,l=i.clientY-c.top,r=!0}return{x:a,y:l,box:r}}function oe(e,t){if("native"in e)return e;const{canvas:n,currentDevicePixelRatio:i}=t,s=qn(n),o=s.boxSizing==="border-box",r=he(s,"padding"),a=he(s,"border","width"),{x:l,y:c,box:h}=Du(e,n),u=r.left+(h&&a.left),d=r.top+(h&&a.top);let{width:f,height:g}=t;return o&&(f-=r.width+a.width,g-=r.height+a.height),{x:Math.round((l-u)/f*n.width/i),y:Math.round((c-d)/g*n.height/i)}}function Eu(e,t,n){let i,s;if(t===void 0||n===void 0){const o=e&&ss(e);if(!o)t=e.clientWidth,n=e.clientHeight;else{const r=o.getBoundingClientRect(),a=qn(o),l=he(a,"border","width"),c=he(a,"padding");t=r.width-c.width-l.width,n=r.height-c.height-l.height,i=Bn(a.maxWidth,o,"clientWidth"),s=Bn(a.maxHeight,o,"clientHeight")}}return{width:t,height:n,maxWidth:i||$n,maxHeight:s||$n}}const _n=e=>Math.round(e*10)/10;function Au(e,t,n,i){const s=qn(e),o=he(s,"margin"),r=Bn(s.maxWidth,e,"clientWidth")||$n,a=Bn(s.maxHeight,e,"clientHeight")||$n,l=Eu(e,t,n);let{width:c,height:h}=l;if(s.boxSizing==="content-box"){const d=he(s,"border","width"),f=he(s,"padding");c-=f.width+d.width,h-=f.height+d.height}return c=Math.max(0,c-o.width),h=Math.max(0,i?c/i:h-o.height),c=_n(Math.min(c,r,l.maxWidth)),h=_n(Math.min(h,a,l.maxHeight)),c&&!h&&(h=_n(c/2)),(t!==void 0||n!==void 0)&&i&&l.height&&h>l.height&&(h=l.height,c=_n(Math.floor(h*i))),{width:c,height:h}}function to(e,t,n){const i=t||1,s=Math.floor(e.height*i),o=Math.floor(e.width*i);e.height=Math.floor(e.height),e.width=Math.floor(e.width);const r=e.canvas;return r.style&&(n||!r.style.height&&!r.style.width)&&(r.style.height=`${e.height}px`,r.style.width=`${e.width}px`),e.currentDevicePixelRatio!==i||r.height!==s||r.width!==o?(e.currentDevicePixelRatio=i,r.height=s,r.width=o,e.ctx.setTransform(i,0,0,i,0,0),!0):!1}const Tu=function(){let e=!1;try{const t={get passive(){return e=!0,!1}};is()&&(window.addEventListener("test",null,t),window.removeEventListener("test",null,t))}catch{}return e}();function eo(e,t){const n=Cu(e,t),i=n&&n.match(/^(\d+)(\.\d+)?px$/);return i?+i[1]:void 0}function re(e,t,n,i){return{x:e.x+n*(t.x-e.x),y:e.y+n*(t.y-e.y)}}function Ru(e,t,n,i){return{x:e.x+n*(t.x-e.x),y:i==="middle"?n<.5?e.y:t.y:i==="after"?n<1?e.y:t.y:n>0?t.y:e.y}}function Lu(e,t,n,i){const s={x:e.cp2x,y:e.cp2y},o={x:t.cp1x,y:t.cp1y},r=re(e,s,n),a=re(s,o,n),l=re(o,t,n),c=re(r,a,n),h=re(a,l,n);return re(c,h,n)}const Fu=function(e,t){return{x(n){return e+e+t-n},setWidth(n){t=n},textAlign(n){return n==="center"?n:n==="right"?"left":"right"},xPlus(n,i){return n-i},leftForLtr(n,i){return n-i}}},Iu=function(){return{x(e){return e},setWidth(e){},textAlign(e){return e},xPlus(e,t){return e+t},leftForLtr(e,t){return e}}};function we(e,t,n){return e?Fu(t,n):Iu()}function la(e,t){let n,i;(t==="ltr"||t==="rtl")&&(n=e.canvas.style,i=[n.getPropertyValue("direction"),n.getPropertyPriority("direction")],n.setProperty("direction",t,"important"),e.prevTextDirection=i)}function ca(e,t){t!==void 0&&(delete e.prevTextDirection,e.canvas.style.setProperty("direction",t[0],t[1]))}function ha(e){return e==="angle"?{between:Xi,compare:Ih,normalize:zt}:{between:Nt,compare:(t,n)=>t-n,normalize:t=>t}}function no({start:e,end:t,count:n,loop:i,style:s}){return{start:e%n,end:t%n,loop:i&&(t-e+1)%n===0,style:s}}function ju(e,t,n){const{property:i,start:s,end:o}=n,{between:r,normalize:a}=ha(i),l=t.length;let{start:c,end:h,loop:u}=e,d,f;if(u){for(c+=l,h+=l,d=0,f=l;d<f&&r(a(t[c%l][i]),s,o);++d)c--,h--;c%=l,h%=l}return h<c&&(h+=l),{start:c,end:h,loop:u,style:e.style}}function $u(e,t,n){if(!n)return[e];const{property:i,start:s,end:o}=n,r=t.length,{compare:a,between:l,normalize:c}=ha(i),{start:h,end:u,loop:d,style:f}=ju(e,t,n),g=[];let m=!1,p=null,b,x,v;const _=()=>l(s,v,b)&&a(s,v)!==0,y=()=>a(o,b)===0||l(o,v,b),w=()=>m||_(),k=()=>!m||y();for(let S=h,C=h;S<=u;++S)x=t[S%r],!x.skip&&(b=c(x[i]),b!==v&&(m=l(b,s,o),p===null&&w()&&(p=a(b,s)===0?S:C),p!==null&&k()&&(g.push(no({start:p,end:S,loop:d,count:r,style:f})),p=null),C=S,v=b));return p!==null&&g.push(no({start:p,end:u,loop:d,count:r,style:f})),g}function zu(e,t){const n=[],i=e.segments;for(let s=0;s<i.length;s++){const o=$u(i[s],e.points,t);o.length&&n.push(...o)}return n}function Bu(e,t,n,i){let s=0,o=t-1;if(n&&!i)for(;s<t&&!e[s].skip;)s++;for(;s<t&&e[s].skip;)s++;for(s%=t,n&&(o+=s);o>s&&e[o%t].skip;)o--;return o%=t,{start:s,end:o}}function Nu(e,t,n,i){const s=e.length,o=[];let r=t,a=e[t],l;for(l=t+1;l<=n;++l){const c=e[l%s];c.skip||c.stop?a.skip||(i=!1,o.push({start:t%s,end:(l-1)%s,loop:i}),t=r=c.stop?l:null):(r=l,a.skip&&(t=l)),a=c}return r!==null&&o.push({start:t%s,end:r%s,loop:i}),o}function Hu(e,t){const n=e.points,i=e.options.spanGaps,s=n.length;if(!s)return[];const o=!!e._loop,{start:r,end:a}=Bu(n,s,o,i);if(i===!0)return io(e,[{start:r,end:a,loop:o}],n,t);const l=a<r?a+s:a,c=!!e._fullLoop&&r===0&&a===s-1;return io(e,Nu(n,r,l,c),n,t)}function io(e,t,n,i){return!i||!i.setContext||!n?t:Wu(e,t,n,i)}function Wu(e,t,n,i){const s=e._chart.getContext(),o=so(e.options),{_datasetIndex:r,options:{spanGaps:a}}=e,l=n.length,c=[];let h=o,u=t[0].start,d=u;function f(g,m,p,b){const x=a?-1:1;if(g!==m){for(g+=l;n[g%l].skip;)g-=x;for(;n[m%l].skip;)m+=x;g%l!==m%l&&(c.push({start:g%l,end:m%l,loop:p,style:b}),h=b,u=m%l)}}for(const g of t){u=a?u:g.start;let m=n[u%l],p;for(d=u+1;d<=g.end;d++){const b=n[d%l];p=so(i.setContext(pe(s,{type:"segment",p0:m,p1:b,p0DataIndex:(d-1)%l,p1DataIndex:d%l,datasetIndex:r}))),Vu(p,h)&&f(u,d-1,g.loop,h),m=b,h=p}u<d-1&&f(u,d-1,g.loop,h)}return c}function so(e){return{backgroundColor:e.backgroundColor,borderCapStyle:e.borderCapStyle,borderDash:e.borderDash,borderDashOffset:e.borderDashOffset,borderJoinStyle:e.borderJoinStyle,borderWidth:e.borderWidth,borderColor:e.borderColor}}function Vu(e,t){if(!t)return!1;const n=[],i=function(s,o){return Gi(o)?(n.includes(o)||n.push(o),n.indexOf(o)):o};return JSON.stringify(e,i)!==JSON.stringify(t,i)}/*! - * Chart.js v4.4.7 - * https://www.chartjs.org - * (c) 2024 Chart.js Contributors - * Released under the MIT License - */class Yu{constructor(){this._request=null,this._charts=new Map,this._running=!1,this._lastDate=void 0}_notify(t,n,i,s){const o=n.listeners[s],r=n.duration;o.forEach(a=>a({chart:t,initial:n.initial,numSteps:r,currentStep:Math.min(i-n.start,r)}))}_refresh(){this._request||(this._running=!0,this._request=Gr.call(window,()=>{this._update(),this._request=null,this._running&&this._refresh()}))}_update(t=Date.now()){let n=0;this._charts.forEach((i,s)=>{if(!i.running||!i.items.length)return;const o=i.items;let r=o.length-1,a=!1,l;for(;r>=0;--r)l=o[r],l._active?(l._total>i.duration&&(i.duration=l._total),l.tick(t),a=!0):(o[r]=o[o.length-1],o.pop());a&&(s.draw(),this._notify(s,i,t,"progress")),o.length||(i.running=!1,this._notify(s,i,t,"complete"),i.initial=!1),n+=o.length}),this._lastDate=t,n===0&&(this._running=!1)}_getAnims(t){const n=this._charts;let i=n.get(t);return i||(i={running:!1,initial:!0,items:[],listeners:{complete:[],progress:[]}},n.set(t,i)),i}listen(t,n,i){this._getAnims(t).listeners[n].push(i)}add(t,n){!n||!n.length||this._getAnims(t).items.push(...n)}has(t){return this._getAnims(t).items.length>0}start(t){const n=this._charts.get(t);n&&(n.running=!0,n.start=Date.now(),n.duration=n.items.reduce((i,s)=>Math.max(i,s._duration),0),this._refresh())}running(t){if(!this._running)return!1;const n=this._charts.get(t);return!(!n||!n.running||!n.items.length)}stop(t){const n=this._charts.get(t);if(!n||!n.items.length)return;const i=n.items;let s=i.length-1;for(;s>=0;--s)i[s].cancel();n.items=[],this._notify(t,n,Date.now(),"complete")}remove(t){return this._charts.delete(t)}}var Tt=new Yu;const oo="transparent",Uu={boolean(e,t,n){return n>.5?t:e},color(e,t,n){const i=qs(e||oo),s=i.valid&&qs(t||oo);return s&&s.valid?s.mix(i,n).hexString():t},number(e,t,n){return e+(t-e)*n}};class Xu{constructor(t,n,i,s){const o=n[i];s=yn([t.to,s,o,t.from]);const r=yn([t.from,o,s]);this._active=!0,this._fn=t.fn||Uu[t.type||typeof r],this._easing=qe[t.easing]||qe.linear,this._start=Math.floor(Date.now()+(t.delay||0)),this._duration=this._total=Math.floor(t.duration),this._loop=!!t.loop,this._target=n,this._prop=i,this._from=r,this._to=s,this._promises=void 0}active(){return this._active}update(t,n,i){if(this._active){this._notify(!1);const s=this._target[this._prop],o=i-this._start,r=this._duration-o;this._start=i,this._duration=Math.floor(Math.max(r,t.duration)),this._total+=o,this._loop=!!t.loop,this._to=yn([t.to,n,s,t.from]),this._from=yn([t.from,s,n])}}cancel(){this._active&&(this.tick(Date.now()),this._active=!1,this._notify(!1))}tick(t){const n=t-this._start,i=this._duration,s=this._prop,o=this._from,r=this._loop,a=this._to;let l;if(this._active=o!==a&&(r||n<i),!this._active){this._target[s]=a,this._notify(!0);return}if(n<0){this._target[s]=o;return}l=n/i%2,l=r&&l>1?2-l:l,l=this._easing(Math.min(1,Math.max(0,l))),this._target[s]=this._fn(o,a,l)}wait(){const t=this._promises||(this._promises=[]);return new Promise((n,i)=>{t.push({res:n,rej:i})})}_notify(t){const n=t?"res":"rej",i=this._promises||[];for(let s=0;s<i.length;s++)i[s][n]()}}class ua{constructor(t,n){this._chart=t,this._properties=new Map,this.configure(n)}configure(t){if(!z(t))return;const n=Object.keys(q.animation),i=this._properties;Object.getOwnPropertyNames(t).forEach(s=>{const o=t[s];if(!z(o))return;const r={};for(const a of n)r[a]=o[a];(J(o.properties)&&o.properties||[s]).forEach(a=>{(a===s||!i.has(a))&&i.set(a,r)})})}_animateOptions(t,n){const i=n.options,s=Ku(t,i);if(!s)return[];const o=this._createAnimations(s,i);return i.$shared&&qu(t.options.$animations,i).then(()=>{t.options=i},()=>{}),o}_createAnimations(t,n){const i=this._properties,s=[],o=t.$animations||(t.$animations={}),r=Object.keys(n),a=Date.now();let l;for(l=r.length-1;l>=0;--l){const c=r[l];if(c.charAt(0)==="$")continue;if(c==="options"){s.push(...this._animateOptions(t,n));continue}const h=n[c];let u=o[c];const d=i.get(c);if(u)if(d&&u.active()){u.update(d,h,a);continue}else u.cancel();if(!d||!d.duration){t[c]=h;continue}o[c]=u=new Xu(d,t,c,h),s.push(u)}return s}update(t,n){if(this._properties.size===0){Object.assign(t,n);return}const i=this._createAnimations(t,n);if(i.length)return Tt.add(this._chart,i),!0}}function qu(e,t){const n=[],i=Object.keys(t);for(let s=0;s<i.length;s++){const o=e[i[s]];o&&o.active()&&n.push(o.wait())}return Promise.all(n)}function Ku(e,t){if(!t)return;let n=e.options;if(!n){e.options=t;return}return n.$shared&&(e.options=n=Object.assign({},n,{$shared:!1,$animations:{}})),n}function ro(e,t){const n=e&&e.options||{},i=n.reverse,s=n.min===void 0?t:0,o=n.max===void 0?t:0;return{start:i?o:s,end:i?s:o}}function Gu(e,t,n){if(n===!1)return!1;const i=ro(e,n),s=ro(t,n);return{top:s.end,right:i.end,bottom:s.start,left:i.start}}function Ju(e){let t,n,i,s;return z(e)?(t=e.top,n=e.right,i=e.bottom,s=e.left):t=n=i=s=e,{top:t,right:n,bottom:i,left:s,disabled:e===!1}}function da(e,t){const n=[],i=e._getSortedDatasetMetas(t);let s,o;for(s=0,o=i.length;s<o;++s)n.push(i[s].index);return n}function ao(e,t,n,i={}){const s=e.keys,o=i.mode==="single";let r,a,l,c;if(t===null)return;let h=!1;for(r=0,a=s.length;r<a;++r){if(l=+s[r],l===n){if(h=!0,i.all)continue;break}c=e.values[l],vt(c)&&(o||t===0||Dt(t)===Dt(c))&&(t+=c)}return!h&&!i.all?0:t}function Zu(e,t){const{iScale:n,vScale:i}=t,s=n.axis==="x"?"x":"y",o=i.axis==="x"?"x":"y",r=Object.keys(e),a=new Array(r.length);let l,c,h;for(l=0,c=r.length;l<c;++l)h=r[l],a[l]={[s]:h,[o]:e[h]};return a}function ri(e,t){const n=e&&e.options.stacked;return n||n===void 0&&t.stack!==void 0}function Qu(e,t,n){return`${e.id}.${t.id}.${n.stack||n.type}`}function td(e){const{min:t,max:n,minDefined:i,maxDefined:s}=e.getUserBounds();return{min:i?t:Number.NEGATIVE_INFINITY,max:s?n:Number.POSITIVE_INFINITY}}function ed(e,t,n){const i=e[t]||(e[t]={});return i[n]||(i[n]={})}function lo(e,t,n,i){for(const s of t.getMatchingVisibleMetas(i).reverse()){const o=e[s.index];if(n&&o>0||!n&&o<0)return s.index}return null}function co(e,t){const{chart:n,_cachedMeta:i}=e,s=n._stacks||(n._stacks={}),{iScale:o,vScale:r,index:a}=i,l=o.axis,c=r.axis,h=Qu(o,r,i),u=t.length;let d;for(let f=0;f<u;++f){const g=t[f],{[l]:m,[c]:p}=g,b=g._stacks||(g._stacks={});d=b[c]=ed(s,h,m),d[a]=p,d._top=lo(d,r,!0,i.type),d._bottom=lo(d,r,!1,i.type);const x=d._visualValues||(d._visualValues={});x[a]=p}}function ai(e,t){const n=e.scales;return Object.keys(n).filter(i=>n[i].axis===t).shift()}function nd(e,t){return pe(e,{active:!1,dataset:void 0,datasetIndex:t,index:t,mode:"default",type:"dataset"})}function id(e,t,n){return pe(e,{active:!1,dataIndex:t,parsed:void 0,raw:void 0,element:n,index:t,mode:"default",type:"data"})}function Fe(e,t){const n=e.controller.index,i=e.vScale&&e.vScale.axis;if(i){t=t||e._parsed;for(const s of t){const o=s._stacks;if(!o||o[i]===void 0||o[i][n]===void 0)return;delete o[i][n],o[i]._visualValues!==void 0&&o[i]._visualValues[n]!==void 0&&delete o[i]._visualValues[n]}}}const li=e=>e==="reset"||e==="none",ho=(e,t)=>t?e:Object.assign({},e),sd=(e,t,n)=>e&&!t.hidden&&t._stacked&&{keys:da(n,!0),values:null};class Se{constructor(t,n){this.chart=t,this._ctx=t.ctx,this.index=n,this._cachedDataOpts={},this._cachedMeta=this.getMeta(),this._type=this._cachedMeta.type,this.options=void 0,this._parsing=!1,this._data=void 0,this._objectData=void 0,this._sharedOptions=void 0,this._drawStart=void 0,this._drawCount=void 0,this.enableOptionSharing=!1,this.supportsDecimation=!1,this.$context=void 0,this._syncList=[],this.datasetElementType=new.target.datasetElementType,this.dataElementType=new.target.dataElementType,this.initialize()}initialize(){const t=this._cachedMeta;this.configure(),this.linkScales(),t._stacked=ri(t.vScale,t),this.addElements(),this.options.fill&&!this.chart.isPluginEnabled("filler")&&console.warn("Tried to use the 'fill' option without the 'Filler' plugin enabled. Please import and register the 'Filler' plugin and make sure it is not disabled in the options")}updateIndex(t){this.index!==t&&Fe(this._cachedMeta),this.index=t}linkScales(){const t=this.chart,n=this._cachedMeta,i=this.getDataset(),s=(u,d,f,g)=>u==="x"?d:u==="r"?g:f,o=n.xAxisID=j(i.xAxisID,ai(t,"x")),r=n.yAxisID=j(i.yAxisID,ai(t,"y")),a=n.rAxisID=j(i.rAxisID,ai(t,"r")),l=n.indexAxis,c=n.iAxisID=s(l,o,r,a),h=n.vAxisID=s(l,r,o,a);n.xScale=this.getScaleForId(o),n.yScale=this.getScaleForId(r),n.rScale=this.getScaleForId(a),n.iScale=this.getScaleForId(c),n.vScale=this.getScaleForId(h)}getDataset(){return this.chart.data.datasets[this.index]}getMeta(){return this.chart.getDatasetMeta(this.index)}getScaleForId(t){return this.chart.scales[t]}_getOtherScale(t){const n=this._cachedMeta;return t===n.iScale?n.vScale:n.iScale}reset(){this._update("reset")}_destroy(){const t=this._cachedMeta;this._data&&Ys(this._data,this),t._stacked&&Fe(t)}_dataCheck(){const t=this.getDataset(),n=t.data||(t.data=[]),i=this._data;if(z(n)){const s=this._cachedMeta;this._data=Zu(n,s)}else if(i!==n){if(i){Ys(i,this);const s=this._cachedMeta;Fe(s),s._parsed=[]}n&&Object.isExtensible(n)&&Bh(n,this),this._syncList=[],this._data=n}}addElements(){const t=this._cachedMeta;this._dataCheck(),this.datasetElementType&&(t.dataset=new this.datasetElementType)}buildOrUpdateElements(t){const n=this._cachedMeta,i=this.getDataset();let s=!1;this._dataCheck();const o=n._stacked;n._stacked=ri(n.vScale,n),n.stack!==i.stack&&(s=!0,Fe(n),n.stack=i.stack),this._resyncElements(t),(s||o!==n._stacked)&&(co(this,n._parsed),n._stacked=ri(n.vScale,n))}configure(){const t=this.chart.config,n=t.datasetScopeKeys(this._type),i=t.getOptionScopes(this.getDataset(),n,!0);this.options=t.createResolver(i,this.getContext()),this._parsing=this.options.parsing,this._cachedDataOpts={}}parse(t,n){const{_cachedMeta:i,_data:s}=this,{iScale:o,_stacked:r}=i,a=o.axis;let l=t===0&&n===s.length?!0:i._sorted,c=t>0&&i._parsed[t-1],h,u,d;if(this._parsing===!1)i._parsed=s,i._sorted=!0,d=s;else{J(s[t])?d=this.parseArrayData(i,s,t,n):z(s[t])?d=this.parseObjectData(i,s,t,n):d=this.parsePrimitiveData(i,s,t,n);const f=()=>u[a]===null||c&&u[a]<c[a];for(h=0;h<n;++h)i._parsed[h+t]=u=d[h],l&&(f()&&(l=!1),c=u);i._sorted=l}r&&co(this,d)}parsePrimitiveData(t,n,i,s){const{iScale:o,vScale:r}=t,a=o.axis,l=r.axis,c=o.getLabels(),h=o===r,u=new Array(s);let d,f,g;for(d=0,f=s;d<f;++d)g=d+i,u[d]={[a]:h||o.parse(c[g],g),[l]:r.parse(n[g],g)};return u}parseArrayData(t,n,i,s){const{xScale:o,yScale:r}=t,a=new Array(s);let l,c,h,u;for(l=0,c=s;l<c;++l)h=l+i,u=n[h],a[l]={x:o.parse(u[0],h),y:r.parse(u[1],h)};return a}parseObjectData(t,n,i,s){const{xScale:o,yScale:r}=t,{xAxisKey:a="x",yAxisKey:l="y"}=this._parsing,c=new Array(s);let h,u,d,f;for(h=0,u=s;h<u;++h)d=h+i,f=n[d],c[h]={x:o.parse(Oe(f,a),d),y:r.parse(Oe(f,l),d)};return c}getParsed(t){return this._cachedMeta._parsed[t]}getDataElement(t){return this._cachedMeta.data[t]}applyStack(t,n,i){const s=this.chart,o=this._cachedMeta,r=n[t.axis],a={keys:da(s,!0),values:n._stacks[t.axis]._visualValues};return ao(a,r,o.index,{mode:i})}updateRangeFromParsed(t,n,i,s){const o=i[n.axis];let r=o===null?NaN:o;const a=s&&i._stacks[n.axis];s&&a&&(s.values=a,r=ao(s,o,this._cachedMeta.index)),t.min=Math.min(t.min,r),t.max=Math.max(t.max,r)}getMinMax(t,n){const i=this._cachedMeta,s=i._parsed,o=i._sorted&&t===i.iScale,r=s.length,a=this._getOtherScale(t),l=sd(n,i,this.chart),c={min:Number.POSITIVE_INFINITY,max:Number.NEGATIVE_INFINITY},{min:h,max:u}=td(a);let d,f;function g(){f=s[d];const m=f[a.axis];return!vt(f[t.axis])||h>m||u<m}for(d=0;d<r&&!(!g()&&(this.updateRangeFromParsed(c,t,f,l),o));++d);if(o){for(d=r-1;d>=0;--d)if(!g()){this.updateRangeFromParsed(c,t,f,l);break}}return c}getAllParsedValues(t){const n=this._cachedMeta._parsed,i=[];let s,o,r;for(s=0,o=n.length;s<o;++s)r=n[s][t.axis],vt(r)&&i.push(r);return i}getMaxOverflow(){return!1}getLabelAndValue(t){const n=this._cachedMeta,i=n.iScale,s=n.vScale,o=this.getParsed(t);return{label:i?""+i.getLabelForValue(o[i.axis]):"",value:s?""+s.getLabelForValue(o[s.axis]):""}}_update(t){const n=this._cachedMeta;this.update(t||"default"),n._clip=Ju(j(this.options.clip,Gu(n.xScale,n.yScale,this.getMaxOverflow())))}update(t){}draw(){const t=this._ctx,n=this.chart,i=this._cachedMeta,s=i.data||[],o=n.chartArea,r=[],a=this._drawStart||0,l=this._drawCount||s.length-a,c=this.options.drawActiveElementsOnTop;let h;for(i.dataset&&i.dataset.draw(t,o,a,l),h=a;h<a+l;++h){const u=s[h];u.hidden||(u.active&&c?r.push(u):u.draw(t,o))}for(h=0;h<r.length;++h)r[h].draw(t,o)}getStyle(t,n){const i=n?"active":"default";return t===void 0&&this._cachedMeta.dataset?this.resolveDatasetElementOptions(i):this.resolveDataElementOptions(t||0,i)}getContext(t,n,i){const s=this.getDataset();let o;if(t>=0&&t<this._cachedMeta.data.length){const r=this._cachedMeta.data[t];o=r.$context||(r.$context=id(this.getContext(),t,r)),o.parsed=this.getParsed(t),o.raw=s.data[t],o.index=o.dataIndex=t}else o=this.$context||(this.$context=nd(this.chart.getContext(),this.index)),o.dataset=s,o.index=o.datasetIndex=this.index;return o.active=!!n,o.mode=i,o}resolveDatasetElementOptions(t){return this._resolveElementOptions(this.datasetElementType.id,t)}resolveDataElementOptions(t,n){return this._resolveElementOptions(this.dataElementType.id,n,t)}_resolveElementOptions(t,n="default",i){const s=n==="active",o=this._cachedDataOpts,r=t+"-"+n,a=o[r],l=this.enableOptionSharing&&tn(i);if(a)return ho(a,l);const c=this.chart.config,h=c.datasetElementScopeKeys(this._type,t),u=s?[`${t}Hover`,"hover",t,""]:[t,""],d=c.getOptionScopes(this.getDataset(),h),f=Object.keys(q.elements[t]),g=()=>this.getContext(i,s,n),m=c.resolveNamedOptions(d,f,g,u);return m.$shared&&(m.$shared=l,o[r]=Object.freeze(ho(m,l))),m}_resolveAnimations(t,n,i){const s=this.chart,o=this._cachedDataOpts,r=`animation-${n}`,a=o[r];if(a)return a;let l;if(s.options.animation!==!1){const h=this.chart.config,u=h.datasetAnimationScopeKeys(this._type,n),d=h.getOptionScopes(this.getDataset(),u);l=h.createResolver(d,this.getContext(t,i,n))}const c=new ua(s,l&&l.animations);return l&&l._cacheable&&(o[r]=Object.freeze(c)),c}getSharedOptions(t){if(t.$shared)return this._sharedOptions||(this._sharedOptions=Object.assign({},t))}includeOptions(t,n){return!n||li(t)||this.chart._animationsDisabled}_getSharedOptions(t,n){const i=this.resolveDataElementOptions(t,n),s=this._sharedOptions,o=this.getSharedOptions(i),r=this.includeOptions(n,o)||o!==s;return this.updateSharedOptions(o,n,i),{sharedOptions:o,includeOptions:r}}updateElement(t,n,i,s){li(s)?Object.assign(t,i):this._resolveAnimations(n,s).update(t,i)}updateSharedOptions(t,n,i){t&&!li(n)&&this._resolveAnimations(void 0,n).update(t,i)}_setStyle(t,n,i,s){t.active=s;const o=this.getStyle(n,s);this._resolveAnimations(n,i,s).update(t,{options:!s&&this.getSharedOptions(o)||o})}removeHoverStyle(t,n,i){this._setStyle(t,i,"active",!1)}setHoverStyle(t,n,i){this._setStyle(t,i,"active",!0)}_removeDatasetHoverStyle(){const t=this._cachedMeta.dataset;t&&this._setStyle(t,void 0,"active",!1)}_setDatasetHoverStyle(){const t=this._cachedMeta.dataset;t&&this._setStyle(t,void 0,"active",!0)}_resyncElements(t){const n=this._data,i=this._cachedMeta.data;for(const[a,l,c]of this._syncList)this[a](l,c);this._syncList=[];const s=i.length,o=n.length,r=Math.min(o,s);r&&this.parse(0,r),o>s?this._insertElements(s,o-s,t):o<s&&this._removeElements(o,s-o)}_insertElements(t,n,i=!0){const s=this._cachedMeta,o=s.data,r=t+n;let a;const l=c=>{for(c.length+=n,a=c.length-1;a>=r;a--)c[a]=c[a-n]};for(l(o),a=t;a<r;++a)o[a]=new this.dataElementType;this._parsing&&l(s._parsed),this.parse(t,n),i&&this.updateElements(o,t,n,"reset")}updateElements(t,n,i,s){}_removeElements(t,n){const i=this._cachedMeta;if(this._parsing){const s=i._parsed.splice(t,n);i._stacked&&Fe(i,s)}i.data.splice(t,n)}_sync(t){if(this._parsing)this._syncList.push(t);else{const[n,i,s]=t;this[n](i,s)}this.chart._dataChanges.push([this.index,...t])}_onDataPush(){const t=arguments.length;this._sync(["_insertElements",this.getDataset().data.length-t,t])}_onDataPop(){this._sync(["_removeElements",this._cachedMeta.data.length-1,1])}_onDataShift(){this._sync(["_removeElements",0,1])}_onDataSplice(t,n){n&&this._sync(["_removeElements",t,n]);const i=arguments.length-2;i&&this._sync(["_insertElements",t,i])}_onDataUnshift(){this._sync(["_insertElements",0,arguments.length])}}R(Se,"defaults",{}),R(Se,"datasetElementType",null),R(Se,"dataElementType",null);function od(e,t){if(!e._cache.$bar){const n=e.getMatchingVisibleMetas(t);let i=[];for(let s=0,o=n.length;s<o;s++)i=i.concat(n[s].controller.getAllParsedValues(e));e._cache.$bar=Kr(i.sort((s,o)=>s-o))}return e._cache.$bar}function rd(e){const t=e.iScale,n=od(t,e.type);let i=t._length,s,o,r,a;const l=()=>{r===32767||r===-32768||(tn(a)&&(i=Math.min(i,Math.abs(r-a)||i)),a=r)};for(s=0,o=n.length;s<o;++s)r=t.getPixelForValue(n[s]),l();for(a=void 0,s=0,o=t.ticks.length;s<o;++s)r=t.getPixelForTick(s),l();return i}function ad(e,t,n,i){const s=n.barThickness;let o,r;return V(s)?(o=t.min*n.categoryPercentage,r=n.barPercentage):(o=s*i,r=1),{chunk:o/i,ratio:r,start:t.pixels[e]-o/2}}function ld(e,t,n,i){const s=t.pixels,o=s[e];let r=e>0?s[e-1]:null,a=e<s.length-1?s[e+1]:null;const l=n.categoryPercentage;r===null&&(r=o-(a===null?t.end-t.start:a-o)),a===null&&(a=o+o-r);const c=o-(o-Math.min(r,a))/2*l;return{chunk:Math.abs(a-r)/2*l/i,ratio:n.barPercentage,start:c}}function cd(e,t,n,i){const s=n.parse(e[0],i),o=n.parse(e[1],i),r=Math.min(s,o),a=Math.max(s,o);let l=r,c=a;Math.abs(r)>Math.abs(a)&&(l=a,c=r),t[n.axis]=c,t._custom={barStart:l,barEnd:c,start:s,end:o,min:r,max:a}}function fa(e,t,n,i){return J(e)?cd(e,t,n,i):t[n.axis]=n.parse(e,i),t}function uo(e,t,n,i){const s=e.iScale,o=e.vScale,r=s.getLabels(),a=s===o,l=[];let c,h,u,d;for(c=n,h=n+i;c<h;++c)d=t[c],u={},u[s.axis]=a||s.parse(r[c],c),l.push(fa(d,u,o,c));return l}function ci(e){return e&&e.barStart!==void 0&&e.barEnd!==void 0}function hd(e,t,n){return e!==0?Dt(e):(t.isHorizontal()?1:-1)*(t.min>=n?1:-1)}function ud(e){let t,n,i,s,o;return e.horizontal?(t=e.base>e.x,n="left",i="right"):(t=e.base<e.y,n="bottom",i="top"),t?(s="end",o="start"):(s="start",o="end"),{start:n,end:i,reverse:t,top:s,bottom:o}}function dd(e,t,n,i){let s=t.borderSkipped;const o={};if(!s){e.borderSkipped=o;return}if(s===!0){e.borderSkipped={top:!0,right:!0,bottom:!0,left:!0};return}const{start:r,end:a,reverse:l,top:c,bottom:h}=ud(e);s==="middle"&&n&&(e.enableBorderRadius=!0,(n._top||0)===i?s=c:(n._bottom||0)===i?s=h:(o[fo(h,r,a,l)]=!0,s=c)),o[fo(s,r,a,l)]=!0,e.borderSkipped=o}function fo(e,t,n,i){return i?(e=fd(e,t,n),e=po(e,n,t)):e=po(e,t,n),e}function fd(e,t,n){return e===t?n:e===n?t:e}function po(e,t,n){return e==="start"?t:e==="end"?n:e}function pd(e,{inflateAmount:t},n){e.inflateAmount=t==="auto"?n===1?.33:0:t}class hi extends Se{parsePrimitiveData(t,n,i,s){return uo(t,n,i,s)}parseArrayData(t,n,i,s){return uo(t,n,i,s)}parseObjectData(t,n,i,s){const{iScale:o,vScale:r}=t,{xAxisKey:a="x",yAxisKey:l="y"}=this._parsing,c=o.axis==="x"?a:l,h=r.axis==="x"?a:l,u=[];let d,f,g,m;for(d=i,f=i+s;d<f;++d)m=n[d],g={},g[o.axis]=o.parse(Oe(m,c),d),u.push(fa(Oe(m,h),g,r,d));return u}updateRangeFromParsed(t,n,i,s){super.updateRangeFromParsed(t,n,i,s);const o=i._custom;o&&n===this._cachedMeta.vScale&&(t.min=Math.min(t.min,o.min),t.max=Math.max(t.max,o.max))}getMaxOverflow(){return 0}getLabelAndValue(t){const n=this._cachedMeta,{iScale:i,vScale:s}=n,o=this.getParsed(t),r=o._custom,a=ci(r)?"["+r.start+", "+r.end+"]":""+s.getLabelForValue(o[s.axis]);return{label:""+i.getLabelForValue(o[i.axis]),value:a}}initialize(){this.enableOptionSharing=!0,super.initialize();const t=this._cachedMeta;t.stack=this.getDataset().stack}update(t){const n=this._cachedMeta;this.updateElements(n.data,0,n.data.length,t)}updateElements(t,n,i,s){const o=s==="reset",{index:r,_cachedMeta:{vScale:a}}=this,l=a.getBasePixel(),c=a.isHorizontal(),h=this._getRuler(),{sharedOptions:u,includeOptions:d}=this._getSharedOptions(n,s);for(let f=n;f<n+i;f++){const g=this.getParsed(f),m=o||V(g[a.axis])?{base:l,head:l}:this._calculateBarValuePixels(f),p=this._calculateBarIndexPixels(f,h),b=(g._stacks||{})[a.axis],x={horizontal:c,base:m.base,enableBorderRadius:!b||ci(g._custom)||r===b._top||r===b._bottom,x:c?m.head:p.center,y:c?p.center:m.head,height:c?p.size:Math.abs(m.size),width:c?Math.abs(m.size):p.size};d&&(x.options=u||this.resolveDataElementOptions(f,t[f].active?"active":s));const v=x.options||t[f].options;dd(x,v,b,r),pd(x,v,h.ratio),this.updateElement(t[f],f,x,s)}}_getStacks(t,n){const{iScale:i}=this._cachedMeta,s=i.getMatchingVisibleMetas(this._type).filter(h=>h.controller.options.grouped),o=i.options.stacked,r=[],a=this._cachedMeta.controller.getParsed(n),l=a&&a[i.axis],c=h=>{const u=h._parsed.find(f=>f[i.axis]===l),d=u&&u[h.vScale.axis];if(V(d)||isNaN(d))return!0};for(const h of s)if(!(n!==void 0&&c(h))&&((o===!1||r.indexOf(h.stack)===-1||o===void 0&&h.stack===void 0)&&r.push(h.stack),h.index===t))break;return r.length||r.push(void 0),r}_getStackCount(t){return this._getStacks(void 0,t).length}_getStackIndex(t,n,i){const s=this._getStacks(t,i),o=n!==void 0?s.indexOf(n):-1;return o===-1?s.length-1:o}_getRuler(){const t=this.options,n=this._cachedMeta,i=n.iScale,s=[];let o,r;for(o=0,r=n.data.length;o<r;++o)s.push(i.getPixelForValue(this.getParsed(o)[i.axis],o));const a=t.barThickness;return{min:a||rd(n),pixels:s,start:i._startPixel,end:i._endPixel,stackCount:this._getStackCount(),scale:i,grouped:t.grouped,ratio:a?1:t.categoryPercentage*t.barPercentage}}_calculateBarValuePixels(t){const{_cachedMeta:{vScale:n,_stacked:i,index:s},options:{base:o,minBarLength:r}}=this,a=o||0,l=this.getParsed(t),c=l._custom,h=ci(c);let u=l[n.axis],d=0,f=i?this.applyStack(n,l,i):u,g,m;f!==u&&(d=f-u,f=u),h&&(u=c.barStart,f=c.barEnd-c.barStart,u!==0&&Dt(u)!==Dt(c.barEnd)&&(d=0),d+=u);const p=!V(o)&&!h?o:d;let b=n.getPixelForValue(p);if(this.chart.getDataVisibility(t)?g=n.getPixelForValue(d+f):g=b,m=g-b,Math.abs(m)<r){m=hd(m,n,a)*r,u===a&&(b-=m/2);const x=n.getPixelForDecimal(0),v=n.getPixelForDecimal(1),_=Math.min(x,v),y=Math.max(x,v);b=Math.max(Math.min(b,y),_),g=b+m,i&&!h&&(l._stacks[n.axis]._visualValues[s]=n.getValueForPixel(g)-n.getValueForPixel(b))}if(b===n.getPixelForValue(a)){const x=Dt(m)*n.getLineWidthForValue(a)/2;b+=x,m-=x}return{size:m,base:b,head:g,center:g+m/2}}_calculateBarIndexPixels(t,n){const i=n.scale,s=this.options,o=s.skipNull,r=j(s.maxBarThickness,1/0);let a,l;if(n.grouped){const c=o?this._getStackCount(t):n.stackCount,h=s.barThickness==="flex"?ld(t,n,s,c):ad(t,n,s,c),u=this._getStackIndex(this.index,this._cachedMeta.stack,o?t:void 0);a=h.start+h.chunk*u+h.chunk/2,l=Math.min(r,h.chunk*h.ratio)}else a=i.getPixelForValue(this.getParsed(t)[i.axis],t),l=Math.min(r,n.min*n.ratio);return{base:a-l/2,head:a+l/2,center:a,size:l}}draw(){const t=this._cachedMeta,n=t.vScale,i=t.data,s=i.length;let o=0;for(;o<s;++o)this.getParsed(o)[n.axis]!==null&&!i[o].hidden&&i[o].draw(this._ctx)}}R(hi,"id","bar"),R(hi,"defaults",{datasetElementType:!1,dataElementType:"bar",categoryPercentage:.8,barPercentage:.9,grouped:!0,animations:{numbers:{type:"number",properties:["x","y","base","width","height"]}}}),R(hi,"overrides",{scales:{_index_:{type:"category",offset:!0,grid:{offset:!0}},_value_:{type:"linear",beginAtZero:!0}}});class ui extends Se{initialize(){this.enableOptionSharing=!0,this.supportsDecimation=!0,super.initialize()}update(t){const n=this._cachedMeta,{dataset:i,data:s=[],_dataset:o}=n,r=this.chart._animationsDisabled;let{start:a,count:l}=Wh(n,s,r);this._drawStart=a,this._drawCount=l,Vh(n)&&(a=0,l=s.length),i._chart=this.chart,i._datasetIndex=this.index,i._decimated=!!o._decimated,i.points=s;const c=this.resolveDatasetElementOptions(t);this.options.showLine||(c.borderWidth=0),c.segment=this.options.segment,this.updateElement(i,void 0,{animated:!r,options:c},t),this.updateElements(s,a,l,t)}updateElements(t,n,i,s){const o=s==="reset",{iScale:r,vScale:a,_stacked:l,_dataset:c}=this._cachedMeta,{sharedOptions:h,includeOptions:u}=this._getSharedOptions(n,s),d=r.axis,f=a.axis,{spanGaps:g,segment:m}=this.options,p=en(g)?g:Number.POSITIVE_INFINITY,b=this.chart._animationsDisabled||o||s==="none",x=n+i,v=t.length;let _=n>0&&this.getParsed(n-1);for(let y=0;y<v;++y){const w=t[y],k=b?w:{};if(y<n||y>=x){k.skip=!0;continue}const S=this.getParsed(y),C=V(S[f]),D=k[d]=r.getPixelForValue(S[d],y),P=k[f]=o||C?a.getBasePixel():a.getPixelForValue(l?this.applyStack(a,S,l):S[f],y);k.skip=isNaN(D)||isNaN(P)||C,k.stop=y>0&&Math.abs(S[d]-_[d])>p,m&&(k.parsed=S,k.raw=c.data[y]),u&&(k.options=h||this.resolveDataElementOptions(y,w.active?"active":s)),b||this.updateElement(w,y,k,s),_=S}}getMaxOverflow(){const t=this._cachedMeta,n=t.dataset,i=n.options&&n.options.borderWidth||0,s=t.data||[];if(!s.length)return i;const o=s[0].size(this.resolveDataElementOptions(0)),r=s[s.length-1].size(this.resolveDataElementOptions(s.length-1));return Math.max(i,o,r)/2}draw(){const t=this._cachedMeta;t.dataset.updateControlPoints(this.chart.chartArea,t.iScale.axis),super.draw()}}R(ui,"id","line"),R(ui,"defaults",{datasetElementType:"line",dataElementType:"point",showLine:!0,spanGaps:!1}),R(ui,"overrides",{scales:{_index_:{type:"category"},_value_:{type:"linear"}}});function ne(){throw new Error("This method is not implemented: Check that a complete date adapter is provided.")}class os{constructor(t){R(this,"options");this.options=t||{}}static override(t){Object.assign(os.prototype,t)}init(){}formats(){return ne()}parse(){return ne()}format(){return ne()}add(){return ne()}diff(){return ne()}startOf(){return ne()}endOf(){return ne()}}var gd={_date:os};function md(e,t,n,i){const{controller:s,data:o,_sorted:r}=e,a=s._cachedMeta.iScale;if(a&&t===a.axis&&t!=="r"&&r&&o.length){const l=a._reversePixels?$h:le;if(i){if(s._sharedOptions){const c=o[0],h=typeof c.getRange=="function"&&c.getRange(t);if(h){const u=l(o,t,n-h),d=l(o,t,n+h);return{lo:u.lo,hi:d.hi}}}}else return l(o,t,n)}return{lo:0,hi:o.length-1}}function un(e,t,n,i,s){const o=e.getSortedVisibleDatasetMetas(),r=n[t];for(let a=0,l=o.length;a<l;++a){const{index:c,data:h}=o[a],{lo:u,hi:d}=md(o[a],t,r,s);for(let f=u;f<=d;++f){const g=h[f];g.skip||i(g,c,f)}}}function bd(e){const t=e.indexOf("x")!==-1,n=e.indexOf("y")!==-1;return function(i,s){const o=t?Math.abs(i.x-s.x):0,r=n?Math.abs(i.y-s.y):0;return Math.sqrt(Math.pow(o,2)+Math.pow(r,2))}}function di(e,t,n,i,s){const o=[];return!s&&!e.isPointInArea(t)||un(e,n,t,function(a,l,c){!s&&!nn(a,e.chartArea,0)||a.inRange(t.x,t.y,i)&&o.push({element:a,datasetIndex:l,index:c})},!0),o}function xd(e,t,n,i){let s=[];function o(r,a,l){const{startAngle:c,endAngle:h}=r.getProps(["startAngle","endAngle"],i),{angle:u}=Xr(r,{x:t.x,y:t.y});Xi(u,c,h)&&s.push({element:r,datasetIndex:a,index:l})}return un(e,n,t,o),s}function yd(e,t,n,i,s,o){let r=[];const a=bd(n);let l=Number.POSITIVE_INFINITY;function c(h,u,d){const f=h.inRange(t.x,t.y,s);if(i&&!f)return;const g=h.getCenterPoint(s);if(!(!!o||e.isPointInArea(g))&&!f)return;const p=a(t,g);p<l?(r=[{element:h,datasetIndex:u,index:d}],l=p):p===l&&r.push({element:h,datasetIndex:u,index:d})}return un(e,n,t,c),r}function fi(e,t,n,i,s,o){return!o&&!e.isPointInArea(t)?[]:n==="r"&&!i?xd(e,t,n,s):yd(e,t,n,i,s,o)}function go(e,t,n,i,s){const o=[],r=n==="x"?"inXRange":"inYRange";let a=!1;return un(e,n,t,(l,c,h)=>{l[r]&&l[r](t[n],s)&&(o.push({element:l,datasetIndex:c,index:h}),a=a||l.inRange(t.x,t.y,s))}),i&&!a?[]:o}var vd={evaluateInteractionItems:un,modes:{index(e,t,n,i){const s=oe(t,e),o=n.axis||"x",r=n.includeInvisible||!1,a=n.intersect?di(e,s,o,i,r):fi(e,s,o,!1,i,r),l=[];return a.length?(e.getSortedVisibleDatasetMetas().forEach(c=>{const h=a[0].index,u=c.data[h];u&&!u.skip&&l.push({element:u,datasetIndex:c.index,index:h})}),l):[]},dataset(e,t,n,i){const s=oe(t,e),o=n.axis||"xy",r=n.includeInvisible||!1;let a=n.intersect?di(e,s,o,i,r):fi(e,s,o,!1,i,r);if(a.length>0){const l=a[0].datasetIndex,c=e.getDatasetMeta(l).data;a=[];for(let h=0;h<c.length;++h)a.push({element:c[h],datasetIndex:l,index:h})}return a},point(e,t,n,i){const s=oe(t,e),o=n.axis||"xy",r=n.includeInvisible||!1;return di(e,s,o,i,r)},nearest(e,t,n,i){const s=oe(t,e),o=n.axis||"xy",r=n.includeInvisible||!1;return fi(e,s,o,n.intersect,i,r)},x(e,t,n,i){const s=oe(t,e);return go(e,s,"x",n.intersect,i)},y(e,t,n,i){const s=oe(t,e);return go(e,s,"y",n.intersect,i)}}};const pa=["left","top","right","bottom"];function Ie(e,t){return e.filter(n=>n.pos===t)}function mo(e,t){return e.filter(n=>pa.indexOf(n.pos)===-1&&n.box.axis===t)}function je(e,t){return e.sort((n,i)=>{const s=t?i:n,o=t?n:i;return s.weight===o.weight?s.index-o.index:s.weight-o.weight})}function _d(e){const t=[];let n,i,s,o,r,a;for(n=0,i=(e||[]).length;n<i;++n)s=e[n],{position:o,options:{stack:r,stackWeight:a=1}}=s,t.push({index:n,box:s,pos:o,horizontal:s.isHorizontal(),weight:s.weight,stack:r&&o+r,stackWeight:a});return t}function wd(e){const t={};for(const n of e){const{stack:i,pos:s,stackWeight:o}=n;if(!i||!pa.includes(s))continue;const r=t[i]||(t[i]={count:0,placed:0,weight:0,size:0});r.count++,r.weight+=o}return t}function Sd(e,t){const n=wd(e),{vBoxMaxWidth:i,hBoxMaxHeight:s}=t;let o,r,a;for(o=0,r=e.length;o<r;++o){a=e[o];const{fullSize:l}=a.box,c=n[a.stack],h=c&&a.stackWeight/c.weight;a.horizontal?(a.width=h?h*i:l&&t.availableWidth,a.height=s):(a.width=i,a.height=h?h*s:l&&t.availableHeight)}return n}function kd(e){const t=_d(e),n=je(t.filter(c=>c.box.fullSize),!0),i=je(Ie(t,"left"),!0),s=je(Ie(t,"right")),o=je(Ie(t,"top"),!0),r=je(Ie(t,"bottom")),a=mo(t,"x"),l=mo(t,"y");return{fullSize:n,leftAndTop:i.concat(o),rightAndBottom:s.concat(l).concat(r).concat(a),chartArea:Ie(t,"chartArea"),vertical:i.concat(s).concat(l),horizontal:o.concat(r).concat(a)}}function bo(e,t,n,i){return Math.max(e[n],t[n])+Math.max(e[i],t[i])}function ga(e,t){e.top=Math.max(e.top,t.top),e.left=Math.max(e.left,t.left),e.bottom=Math.max(e.bottom,t.bottom),e.right=Math.max(e.right,t.right)}function Md(e,t,n,i){const{pos:s,box:o}=n,r=e.maxPadding;if(!z(s)){n.size&&(e[s]-=n.size);const u=i[n.stack]||{size:0,count:1};u.size=Math.max(u.size,n.horizontal?o.height:o.width),n.size=u.size/u.count,e[s]+=n.size}o.getPadding&&ga(r,o.getPadding());const a=Math.max(0,t.outerWidth-bo(r,e,"left","right")),l=Math.max(0,t.outerHeight-bo(r,e,"top","bottom")),c=a!==e.w,h=l!==e.h;return e.w=a,e.h=l,n.horizontal?{same:c,other:h}:{same:h,other:c}}function Cd(e){const t=e.maxPadding;function n(i){const s=Math.max(t[i]-e[i],0);return e[i]+=s,s}e.y+=n("top"),e.x+=n("left"),n("right"),n("bottom")}function Pd(e,t){const n=t.maxPadding;function i(s){const o={left:0,top:0,right:0,bottom:0};return s.forEach(r=>{o[r]=Math.max(t[r],n[r])}),o}return i(e?["left","right"]:["top","bottom"])}function Ne(e,t,n,i){const s=[];let o,r,a,l,c,h;for(o=0,r=e.length,c=0;o<r;++o){a=e[o],l=a.box,l.update(a.width||t.w,a.height||t.h,Pd(a.horizontal,t));const{same:u,other:d}=Md(t,n,a,i);c|=u&&s.length,h=h||d,l.fullSize||s.push(a)}return c&&Ne(s,t,n,i)||h}function wn(e,t,n,i,s){e.top=n,e.left=t,e.right=t+i,e.bottom=n+s,e.width=i,e.height=s}function xo(e,t,n,i){const s=n.padding;let{x:o,y:r}=t;for(const a of e){const l=a.box,c=i[a.stack]||{count:1,placed:0,weight:1},h=a.stackWeight/c.weight||1;if(a.horizontal){const u=t.w*h,d=c.size||l.height;tn(c.start)&&(r=c.start),l.fullSize?wn(l,s.left,r,n.outerWidth-s.right-s.left,d):wn(l,t.left+c.placed,r,u,d),c.start=r,c.placed+=u,r=l.bottom}else{const u=t.h*h,d=c.size||l.width;tn(c.start)&&(o=c.start),l.fullSize?wn(l,o,s.top,d,n.outerHeight-s.bottom-s.top):wn(l,o,t.top+c.placed,d,u),c.start=o,c.placed+=u,o=l.right}}t.x=o,t.y=r}var bt={addBox(e,t){e.boxes||(e.boxes=[]),t.fullSize=t.fullSize||!1,t.position=t.position||"top",t.weight=t.weight||0,t._layers=t._layers||function(){return[{z:0,draw(n){t.draw(n)}}]},e.boxes.push(t)},removeBox(e,t){const n=e.boxes?e.boxes.indexOf(t):-1;n!==-1&&e.boxes.splice(n,1)},configure(e,t,n){t.fullSize=n.fullSize,t.position=n.position,t.weight=n.weight},update(e,t,n,i){if(!e)return;const s=_t(e.options.layout.padding),o=Math.max(t-s.width,0),r=Math.max(n-s.height,0),a=kd(e.boxes),l=a.vertical,c=a.horizontal;W(e.boxes,m=>{typeof m.beforeLayout=="function"&&m.beforeLayout()});const h=l.reduce((m,p)=>p.box.options&&p.box.options.display===!1?m:m+1,0)||1,u=Object.freeze({outerWidth:t,outerHeight:n,padding:s,availableWidth:o,availableHeight:r,vBoxMaxWidth:o/2/h,hBoxMaxHeight:r/2}),d=Object.assign({},s);ga(d,_t(i));const f=Object.assign({maxPadding:d,w:o,h:r,x:s.left,y:s.top},s),g=Sd(l.concat(c),u);Ne(a.fullSize,f,u,g),Ne(l,f,u,g),Ne(c,f,u,g)&&Ne(l,f,u,g),Cd(f),xo(a.leftAndTop,f,u,g),f.x+=f.w,f.y+=f.h,xo(a.rightAndBottom,f,u,g),e.chartArea={left:f.left,top:f.top,right:f.left+f.w,bottom:f.top+f.h,height:f.h,width:f.w},W(a.chartArea,m=>{const p=m.box;Object.assign(p,e.chartArea),p.update(f.w,f.h,{left:0,top:0,right:0,bottom:0})})}};class ma{acquireContext(t,n){}releaseContext(t){return!1}addEventListener(t,n,i){}removeEventListener(t,n,i){}getDevicePixelRatio(){return 1}getMaximumSize(t,n,i,s){return n=Math.max(0,n||t.width),i=i||t.height,{width:n,height:Math.max(0,s?Math.floor(n/s):i)}}isAttached(t){return!0}updateConfig(t){}}class Od extends ma{acquireContext(t){return t&&t.getContext&&t.getContext("2d")||null}updateConfig(t){t.options.animation=!1}}const Rn="$chartjs",Dd={touchstart:"mousedown",touchmove:"mousemove",touchend:"mouseup",pointerenter:"mouseenter",pointerdown:"mousedown",pointermove:"mousemove",pointerup:"mouseup",pointerleave:"mouseout",pointerout:"mouseout"},yo=e=>e===null||e==="";function Ed(e,t){const n=e.style,i=e.getAttribute("height"),s=e.getAttribute("width");if(e[Rn]={initial:{height:i,width:s,style:{display:n.display,height:n.height,width:n.width}}},n.display=n.display||"block",n.boxSizing=n.boxSizing||"border-box",yo(s)){const o=eo(e,"width");o!==void 0&&(e.width=o)}if(yo(i))if(e.style.height==="")e.height=e.width/(t||2);else{const o=eo(e,"height");o!==void 0&&(e.height=o)}return e}const ba=Tu?{passive:!0}:!1;function Ad(e,t,n){e&&e.addEventListener(t,n,ba)}function Td(e,t,n){e&&e.canvas&&e.canvas.removeEventListener(t,n,ba)}function Rd(e,t){const n=Dd[e.type]||e.type,{x:i,y:s}=oe(e,t);return{type:n,chart:t,native:e,x:i!==void 0?i:null,y:s!==void 0?s:null}}function Nn(e,t){for(const n of e)if(n===t||n.contains(t))return!0}function Ld(e,t,n){const i=e.canvas,s=new MutationObserver(o=>{let r=!1;for(const a of o)r=r||Nn(a.addedNodes,i),r=r&&!Nn(a.removedNodes,i);r&&n()});return s.observe(document,{childList:!0,subtree:!0}),s}function Fd(e,t,n){const i=e.canvas,s=new MutationObserver(o=>{let r=!1;for(const a of o)r=r||Nn(a.removedNodes,i),r=r&&!Nn(a.addedNodes,i);r&&n()});return s.observe(document,{childList:!0,subtree:!0}),s}const on=new Map;let vo=0;function xa(){const e=window.devicePixelRatio;e!==vo&&(vo=e,on.forEach((t,n)=>{n.currentDevicePixelRatio!==e&&t()}))}function Id(e,t){on.size||window.addEventListener("resize",xa),on.set(e,t)}function jd(e){on.delete(e),on.size||window.removeEventListener("resize",xa)}function $d(e,t,n){const i=e.canvas,s=i&&ss(i);if(!s)return;const o=Jr((a,l)=>{const c=s.clientWidth;n(a,l),c<s.clientWidth&&n()},window),r=new ResizeObserver(a=>{const l=a[0],c=l.contentRect.width,h=l.contentRect.height;c===0&&h===0||o(c,h)});return r.observe(s),Id(e,o),r}function pi(e,t,n){n&&n.disconnect(),t==="resize"&&jd(e)}function zd(e,t,n){const i=e.canvas,s=Jr(o=>{e.ctx!==null&&n(Rd(o,e))},e);return Ad(i,t,s),s}class Bd extends ma{acquireContext(t,n){const i=t&&t.getContext&&t.getContext("2d");return i&&i.canvas===t?(Ed(t,n),i):null}releaseContext(t){const n=t.canvas;if(!n[Rn])return!1;const i=n[Rn].initial;["height","width"].forEach(o=>{const r=i[o];V(r)?n.removeAttribute(o):n.setAttribute(o,r)});const s=i.style||{};return Object.keys(s).forEach(o=>{n.style[o]=s[o]}),n.width=n.width,delete n[Rn],!0}addEventListener(t,n,i){this.removeEventListener(t,n);const s=t.$proxies||(t.$proxies={}),r={attach:Ld,detach:Fd,resize:$d}[n]||zd;s[n]=r(t,n,i)}removeEventListener(t,n){const i=t.$proxies||(t.$proxies={}),s=i[n];if(!s)return;({attach:pi,detach:pi,resize:pi}[n]||Td)(t,n,s),i[n]=void 0}getDevicePixelRatio(){return window.devicePixelRatio}getMaximumSize(t,n,i,s){return Au(t,n,i,s)}isAttached(t){const n=t&&ss(t);return!!(n&&n.isConnected)}}function Nd(e){return!is()||typeof OffscreenCanvas<"u"&&e instanceof OffscreenCanvas?Od:Bd}var An;let jt=(An=class{constructor(){R(this,"x");R(this,"y");R(this,"active",!1);R(this,"options");R(this,"$animations")}tooltipPosition(t){const{x:n,y:i}=this.getProps(["x","y"],t);return{x:n,y:i}}hasValue(){return en(this.x)&&en(this.y)}getProps(t,n){const i=this.$animations;if(!n||!i)return this;const s={};return t.forEach(o=>{s[o]=i[o]&&i[o].active()?i[o]._to:this[o]}),s}},R(An,"defaults",{}),R(An,"defaultRoutes"),An);function Hd(e,t){const n=e.options.ticks,i=Wd(e),s=Math.min(n.maxTicksLimit||i,i),o=n.major.enabled?Yd(t):[],r=o.length,a=o[0],l=o[r-1],c=[];if(r>s)return Ud(t,c,o,r/s),c;const h=Vd(o,t,s);if(r>0){let u,d;const f=r>1?Math.round((l-a)/(r-1)):null;for(Sn(t,c,h,V(f)?0:a-f,a),u=0,d=r-1;u<d;u++)Sn(t,c,h,o[u],o[u+1]);return Sn(t,c,h,l,V(f)?t.length:l+f),c}return Sn(t,c,h),c}function Wd(e){const t=e.options.offset,n=e._tickSize(),i=e._length/n+(t?0:1),s=e._maxLength/n;return Math.floor(Math.min(i,s))}function Vd(e,t,n){const i=Xd(e),s=t.length/n;if(!i)return Math.max(s,1);const o=Th(i);for(let r=0,a=o.length-1;r<a;r++){const l=o[r];if(l>s)return l}return Math.max(s,1)}function Yd(e){const t=[];let n,i;for(n=0,i=e.length;n<i;n++)e[n].major&&t.push(n);return t}function Ud(e,t,n,i){let s=0,o=n[0],r;for(i=Math.ceil(i),r=0;r<e.length;r++)r===o&&(t.push(e[r]),s++,o=n[s*i])}function Sn(e,t,n,i,s){const o=j(i,0),r=Math.min(j(s,e.length),e.length);let a=0,l,c,h;for(n=Math.ceil(n),s&&(l=s-i,n=l/Math.floor(l/n)),h=o;h<0;)a++,h=Math.round(o+a*n);for(c=Math.max(o,0);c<r;c++)c===h&&(t.push(e[c]),a++,h=Math.round(o+a*n))}function Xd(e){const t=e.length;let n,i;if(t<2)return!1;for(i=e[0],n=1;n<t;++n)if(e[n]-e[n-1]!==i)return!1;return i}const qd=e=>e==="left"?"right":e==="right"?"left":e,_o=(e,t,n)=>t==="top"||t==="left"?e[t]+n:e[t]-n,wo=(e,t)=>Math.min(t||e,e);function So(e,t){const n=[],i=e.length/t,s=e.length;let o=0;for(;o<s;o+=i)n.push(e[Math.floor(o)]);return n}function Kd(e,t,n){const i=e.ticks.length,s=Math.min(t,i-1),o=e._startPixel,r=e._endPixel,a=1e-6;let l=e.getPixelForTick(s),c;if(!(n&&(i===1?c=Math.max(l-o,r-l):t===0?c=(e.getPixelForTick(1)-l)/2:c=(l-e.getPixelForTick(s-1))/2,l+=s<t?c:-c,l<o-a||l>r+a)))return l}function Gd(e,t){W(e,n=>{const i=n.gc,s=i.length/2;let o;if(s>t){for(o=0;o<s;++o)delete n.data[i[o]];i.splice(0,s)}})}function $e(e){return e.drawTicks?e.tickLength:0}function ko(e,t){if(!e.display)return 0;const n=at(e.font,t),i=_t(e.padding);return(J(e.text)?e.text.length:1)*n.lineHeight+i.height}function Jd(e,t){return pe(e,{scale:t,type:"scale"})}function Zd(e,t,n){return pe(e,{tick:n,index:t,type:"tick"})}function Qd(e,t,n){let i=Ki(e);return(n&&t!=="right"||!n&&t==="right")&&(i=qd(i)),i}function tf(e,t,n,i){const{top:s,left:o,bottom:r,right:a,chart:l}=e,{chartArea:c,scales:h}=l;let u=0,d,f,g;const m=r-s,p=a-o;if(e.isHorizontal()){if(f=ot(i,o,a),z(n)){const b=Object.keys(n)[0],x=n[b];g=h[b].getPixelForValue(x)+m-t}else n==="center"?g=(c.bottom+c.top)/2+m-t:g=_o(e,n,t);d=a-o}else{if(z(n)){const b=Object.keys(n)[0],x=n[b];f=h[b].getPixelForValue(x)-p+t}else n==="center"?f=(c.left+c.right)/2-p+t:f=_o(e,n,t);g=ot(i,r,s),u=n==="left"?-it:it}return{titleX:f,titleY:g,maxWidth:d,rotation:u}}class Ae extends jt{constructor(t){super(),this.id=t.id,this.type=t.type,this.options=void 0,this.ctx=t.ctx,this.chart=t.chart,this.top=void 0,this.bottom=void 0,this.left=void 0,this.right=void 0,this.width=void 0,this.height=void 0,this._margins={left:0,right:0,top:0,bottom:0},this.maxWidth=void 0,this.maxHeight=void 0,this.paddingTop=void 0,this.paddingBottom=void 0,this.paddingLeft=void 0,this.paddingRight=void 0,this.axis=void 0,this.labelRotation=void 0,this.min=void 0,this.max=void 0,this._range=void 0,this.ticks=[],this._gridLineItems=null,this._labelItems=null,this._labelSizes=null,this._length=0,this._maxLength=0,this._longestTextCache={},this._startPixel=void 0,this._endPixel=void 0,this._reversePixels=!1,this._userMax=void 0,this._userMin=void 0,this._suggestedMax=void 0,this._suggestedMin=void 0,this._ticksLength=0,this._borderValue=0,this._cache={},this._dataLimitsCached=!1,this.$context=void 0}init(t){this.options=t.setContext(this.getContext()),this.axis=t.axis,this._userMin=this.parse(t.min),this._userMax=this.parse(t.max),this._suggestedMin=this.parse(t.suggestedMin),this._suggestedMax=this.parse(t.suggestedMax)}parse(t,n){return t}getUserBounds(){let{_userMin:t,_userMax:n,_suggestedMin:i,_suggestedMax:s}=this;return t=St(t,Number.POSITIVE_INFINITY),n=St(n,Number.NEGATIVE_INFINITY),i=St(i,Number.POSITIVE_INFINITY),s=St(s,Number.NEGATIVE_INFINITY),{min:St(t,i),max:St(n,s),minDefined:vt(t),maxDefined:vt(n)}}getMinMax(t){let{min:n,max:i,minDefined:s,maxDefined:o}=this.getUserBounds(),r;if(s&&o)return{min:n,max:i};const a=this.getMatchingVisibleMetas();for(let l=0,c=a.length;l<c;++l)r=a[l].controller.getMinMax(this,t),s||(n=Math.min(n,r.min)),o||(i=Math.max(i,r.max));return n=o&&n>i?i:n,i=s&&n>i?n:i,{min:St(n,St(i,n)),max:St(i,St(n,i))}}getPadding(){return{left:this.paddingLeft||0,top:this.paddingTop||0,right:this.paddingRight||0,bottom:this.paddingBottom||0}}getTicks(){return this.ticks}getLabels(){const t=this.chart.data;return this.options.labels||(this.isHorizontal()?t.xLabels:t.yLabels)||t.labels||[]}getLabelItems(t=this.chart.chartArea){return this._labelItems||(this._labelItems=this._computeLabelItems(t))}beforeLayout(){this._cache={},this._dataLimitsCached=!1}beforeUpdate(){Y(this.options.beforeUpdate,[this])}update(t,n,i){const{beginAtZero:s,grace:o,ticks:r}=this.options,a=r.sampleSize;this.beforeUpdate(),this.maxWidth=t,this.maxHeight=n,this._margins=i=Object.assign({left:0,right:0,top:0,bottom:0},i),this.ticks=null,this._labelSizes=null,this._gridLineItems=null,this._labelItems=null,this.beforeSetDimensions(),this.setDimensions(),this.afterSetDimensions(),this._maxLength=this.isHorizontal()?this.width+i.left+i.right:this.height+i.top+i.bottom,this._dataLimitsCached||(this.beforeDataLimits(),this.determineDataLimits(),this.afterDataLimits(),this._range=cu(this,o,s),this._dataLimitsCached=!0),this.beforeBuildTicks(),this.ticks=this.buildTicks()||[],this.afterBuildTicks();const l=a<this.ticks.length;this._convertTicksToLabels(l?So(this.ticks,a):this.ticks),this.configure(),this.beforeCalculateLabelRotation(),this.calculateLabelRotation(),this.afterCalculateLabelRotation(),r.display&&(r.autoSkip||r.source==="auto")&&(this.ticks=Hd(this,this.ticks),this._labelSizes=null,this.afterAutoSkip()),l&&this._convertTicksToLabels(this.ticks),this.beforeFit(),this.fit(),this.afterFit(),this.afterUpdate()}configure(){let t=this.options.reverse,n,i;this.isHorizontal()?(n=this.left,i=this.right):(n=this.top,i=this.bottom,t=!t),this._startPixel=n,this._endPixel=i,this._reversePixels=t,this._length=i-n,this._alignToPixels=this.options.alignToPixels}afterUpdate(){Y(this.options.afterUpdate,[this])}beforeSetDimensions(){Y(this.options.beforeSetDimensions,[this])}setDimensions(){this.isHorizontal()?(this.width=this.maxWidth,this.left=0,this.right=this.width):(this.height=this.maxHeight,this.top=0,this.bottom=this.height),this.paddingLeft=0,this.paddingTop=0,this.paddingRight=0,this.paddingBottom=0}afterSetDimensions(){Y(this.options.afterSetDimensions,[this])}_callHooks(t){this.chart.notifyPlugins(t,this.getContext()),Y(this.options[t],[this])}beforeDataLimits(){this._callHooks("beforeDataLimits")}determineDataLimits(){}afterDataLimits(){this._callHooks("afterDataLimits")}beforeBuildTicks(){this._callHooks("beforeBuildTicks")}buildTicks(){return[]}afterBuildTicks(){this._callHooks("afterBuildTicks")}beforeTickToLabelConversion(){Y(this.options.beforeTickToLabelConversion,[this])}generateTickLabels(t){const n=this.options.ticks;let i,s,o;for(i=0,s=t.length;i<s;i++)o=t[i],o.label=Y(n.callback,[o.value,i,t],this)}afterTickToLabelConversion(){Y(this.options.afterTickToLabelConversion,[this])}beforeCalculateLabelRotation(){Y(this.options.beforeCalculateLabelRotation,[this])}calculateLabelRotation(){const t=this.options,n=t.ticks,i=wo(this.ticks.length,t.ticks.maxTicksLimit),s=n.minRotation||0,o=n.maxRotation;let r=s,a,l,c;if(!this._isVisible()||!n.display||s>=o||i<=1||!this.isHorizontal()){this.labelRotation=s;return}const h=this._getLabelSizes(),u=h.widest.width,d=h.highest.height,f=rt(this.chart.width-u,0,this.maxWidth);a=t.offset?this.maxWidth/i:f/(i-1),u+6>a&&(a=f/(i-(t.offset?.5:1)),l=this.maxHeight-$e(t.grid)-n.padding-ko(t.title,this.chart.options.font),c=Math.sqrt(u*u+d*d),r=Fh(Math.min(Math.asin(rt((h.highest.height+6)/a,-1,1)),Math.asin(rt(l/c,-1,1))-Math.asin(rt(d/c,-1,1)))),r=Math.max(s,Math.min(o,r))),this.labelRotation=r}afterCalculateLabelRotation(){Y(this.options.afterCalculateLabelRotation,[this])}afterAutoSkip(){}beforeFit(){Y(this.options.beforeFit,[this])}fit(){const t={width:0,height:0},{chart:n,options:{ticks:i,title:s,grid:o}}=this,r=this._isVisible(),a=this.isHorizontal();if(r){const l=ko(s,n.options.font);if(a?(t.width=this.maxWidth,t.height=$e(o)+l):(t.height=this.maxHeight,t.width=$e(o)+l),i.display&&this.ticks.length){const{first:c,last:h,widest:u,highest:d}=this._getLabelSizes(),f=i.padding*2,g=ae(this.labelRotation),m=Math.cos(g),p=Math.sin(g);if(a){const b=i.mirror?0:p*u.width+m*d.height;t.height=Math.min(this.maxHeight,t.height+b+f)}else{const b=i.mirror?0:m*u.width+p*d.height;t.width=Math.min(this.maxWidth,t.width+b+f)}this._calculatePadding(c,h,p,m)}}this._handleMargins(),a?(this.width=this._length=n.width-this._margins.left-this._margins.right,this.height=t.height):(this.width=t.width,this.height=this._length=n.height-this._margins.top-this._margins.bottom)}_calculatePadding(t,n,i,s){const{ticks:{align:o,padding:r},position:a}=this.options,l=this.labelRotation!==0,c=a!=="top"&&this.axis==="x";if(this.isHorizontal()){const h=this.getPixelForTick(0)-this.left,u=this.right-this.getPixelForTick(this.ticks.length-1);let d=0,f=0;l?c?(d=s*t.width,f=i*n.height):(d=i*t.height,f=s*n.width):o==="start"?f=n.width:o==="end"?d=t.width:o!=="inner"&&(d=t.width/2,f=n.width/2),this.paddingLeft=Math.max((d-h+r)*this.width/(this.width-h),0),this.paddingRight=Math.max((f-u+r)*this.width/(this.width-u),0)}else{let h=n.height/2,u=t.height/2;o==="start"?(h=0,u=t.height):o==="end"&&(h=n.height,u=0),this.paddingTop=h+r,this.paddingBottom=u+r}}_handleMargins(){this._margins&&(this._margins.left=Math.max(this.paddingLeft,this._margins.left),this._margins.top=Math.max(this.paddingTop,this._margins.top),this._margins.right=Math.max(this.paddingRight,this._margins.right),this._margins.bottom=Math.max(this.paddingBottom,this._margins.bottom))}afterFit(){Y(this.options.afterFit,[this])}isHorizontal(){const{axis:t,position:n}=this.options;return n==="top"||n==="bottom"||t==="x"}isFullSize(){return this.options.fullSize}_convertTicksToLabels(t){this.beforeTickToLabelConversion(),this.generateTickLabels(t);let n,i;for(n=0,i=t.length;n<i;n++)V(t[n].label)&&(t.splice(n,1),i--,n--);this.afterTickToLabelConversion()}_getLabelSizes(){let t=this._labelSizes;if(!t){const n=this.options.ticks.sampleSize;let i=this.ticks;n<i.length&&(i=So(i,n)),this._labelSizes=t=this._computeLabelSizes(i,i.length,this.options.ticks.maxTicksLimit)}return t}_computeLabelSizes(t,n,i){const{ctx:s,_longestTextCache:o}=this,r=[],a=[],l=Math.floor(n/wo(n,i));let c=0,h=0,u,d,f,g,m,p,b,x,v,_,y;for(u=0;u<n;u+=l){if(g=t[u].label,m=this._resolveTickFontOptions(u),s.font=p=m.string,b=o[p]=o[p]||{data:{},gc:[]},x=m.lineHeight,v=_=0,!V(g)&&!J(g))v=Gs(s,b.data,b.gc,v,g),_=x;else if(J(g))for(d=0,f=g.length;d<f;++d)y=g[d],!V(y)&&!J(y)&&(v=Gs(s,b.data,b.gc,v,y),_+=x);r.push(v),a.push(_),c=Math.max(v,c),h=Math.max(_,h)}Gd(o,n);const w=r.indexOf(c),k=a.indexOf(h),S=C=>({width:r[C]||0,height:a[C]||0});return{first:S(0),last:S(n-1),widest:S(w),highest:S(k),widths:r,heights:a}}getLabelForValue(t){return t}getPixelForValue(t,n){return NaN}getValueForPixel(t){}getPixelForTick(t){const n=this.ticks;return t<0||t>n.length-1?null:this.getPixelForValue(n[t].value)}getPixelForDecimal(t){this._reversePixels&&(t=1-t);const n=this._startPixel+t*this._length;return jh(this._alignToPixels?ee(this.chart,n,0):n)}getDecimalForPixel(t){const n=(t-this._startPixel)/this._length;return this._reversePixels?1-n:n}getBasePixel(){return this.getPixelForValue(this.getBaseValue())}getBaseValue(){const{min:t,max:n}=this;return t<0&&n<0?n:t>0&&n>0?t:0}getContext(t){const n=this.ticks||[];if(t>=0&&t<n.length){const i=n[t];return i.$context||(i.$context=Zd(this.getContext(),t,i))}return this.$context||(this.$context=Jd(this.chart.getContext(),this))}_tickSize(){const t=this.options.ticks,n=ae(this.labelRotation),i=Math.abs(Math.cos(n)),s=Math.abs(Math.sin(n)),o=this._getLabelSizes(),r=t.autoSkipPadding||0,a=o?o.widest.width+r:0,l=o?o.highest.height+r:0;return this.isHorizontal()?l*i>a*s?a/i:l/s:l*s<a*i?l/i:a/s}_isVisible(){const t=this.options.display;return t!=="auto"?!!t:this.getMatchingVisibleMetas().length>0}_computeGridLineItems(t){const n=this.axis,i=this.chart,s=this.options,{grid:o,position:r,border:a}=s,l=o.offset,c=this.isHorizontal(),u=this.ticks.length+(l?1:0),d=$e(o),f=[],g=a.setContext(this.getContext()),m=g.display?g.width:0,p=m/2,b=function(L){return ee(i,L,m)};let x,v,_,y,w,k,S,C,D,P,O,A;if(r==="top")x=b(this.bottom),k=this.bottom-d,C=x-p,P=b(t.top)+p,A=t.bottom;else if(r==="bottom")x=b(this.top),P=t.top,A=b(t.bottom)-p,k=x+p,C=this.top+d;else if(r==="left")x=b(this.right),w=this.right-d,S=x-p,D=b(t.left)+p,O=t.right;else if(r==="right")x=b(this.left),D=t.left,O=b(t.right)-p,w=x+p,S=this.left+d;else if(n==="x"){if(r==="center")x=b((t.top+t.bottom)/2+.5);else if(z(r)){const L=Object.keys(r)[0],F=r[L];x=b(this.chart.scales[L].getPixelForValue(F))}P=t.top,A=t.bottom,k=x+p,C=k+d}else if(n==="y"){if(r==="center")x=b((t.left+t.right)/2);else if(z(r)){const L=Object.keys(r)[0],F=r[L];x=b(this.chart.scales[L].getPixelForValue(F))}w=x-p,S=w-d,D=t.left,O=t.right}const I=j(s.ticks.maxTicksLimit,u),T=Math.max(1,Math.ceil(u/I));for(v=0;v<u;v+=T){const L=this.getContext(v),F=o.setContext(L),N=a.setContext(L),$=F.lineWidth,B=F.color,tt=N.dash||[],Q=N.dashOffset,nt=F.tickWidth,U=F.tickColor,X=F.tickBorderDash||[],K=F.tickBorderDashOffset;_=Kd(this,v,l),_!==void 0&&(y=ee(i,_,$),c?w=S=D=O=y:k=C=P=A=y,f.push({tx1:w,ty1:k,tx2:S,ty2:C,x1:D,y1:P,x2:O,y2:A,width:$,color:B,borderDash:tt,borderDashOffset:Q,tickWidth:nt,tickColor:U,tickBorderDash:X,tickBorderDashOffset:K}))}return this._ticksLength=u,this._borderValue=x,f}_computeLabelItems(t){const n=this.axis,i=this.options,{position:s,ticks:o}=i,r=this.isHorizontal(),a=this.ticks,{align:l,crossAlign:c,padding:h,mirror:u}=o,d=$e(i.grid),f=d+h,g=u?-h:f,m=-ae(this.labelRotation),p=[];let b,x,v,_,y,w,k,S,C,D,P,O,A="middle";if(s==="top")w=this.bottom-g,k=this._getXAxisLabelAlignment();else if(s==="bottom")w=this.top+g,k=this._getXAxisLabelAlignment();else if(s==="left"){const T=this._getYAxisLabelAlignment(d);k=T.textAlign,y=T.x}else if(s==="right"){const T=this._getYAxisLabelAlignment(d);k=T.textAlign,y=T.x}else if(n==="x"){if(s==="center")w=(t.top+t.bottom)/2+f;else if(z(s)){const T=Object.keys(s)[0],L=s[T];w=this.chart.scales[T].getPixelForValue(L)+f}k=this._getXAxisLabelAlignment()}else if(n==="y"){if(s==="center")y=(t.left+t.right)/2-f;else if(z(s)){const T=Object.keys(s)[0],L=s[T];y=this.chart.scales[T].getPixelForValue(L)}k=this._getYAxisLabelAlignment(d).textAlign}n==="y"&&(l==="start"?A="top":l==="end"&&(A="bottom"));const I=this._getLabelSizes();for(b=0,x=a.length;b<x;++b){v=a[b],_=v.label;const T=o.setContext(this.getContext(b));S=this.getPixelForTick(b)+o.labelOffset,C=this._resolveTickFontOptions(b),D=C.lineHeight,P=J(_)?_.length:1;const L=P/2,F=T.color,N=T.textStrokeColor,$=T.textStrokeWidth;let B=k;r?(y=S,k==="inner"&&(b===x-1?B=this.options.reverse?"left":"right":b===0?B=this.options.reverse?"right":"left":B="center"),s==="top"?c==="near"||m!==0?O=-P*D+D/2:c==="center"?O=-I.highest.height/2-L*D+D:O=-I.highest.height+D/2:c==="near"||m!==0?O=D/2:c==="center"?O=I.highest.height/2-L*D:O=I.highest.height-P*D,u&&(O*=-1),m!==0&&!T.showLabelBackdrop&&(y+=D/2*Math.sin(m))):(w=S,O=(1-P)*D/2);let tt;if(T.showLabelBackdrop){const Q=_t(T.backdropPadding),nt=I.heights[b],U=I.widths[b];let X=O-Q.top,K=0-Q.left;switch(A){case"middle":X-=nt/2;break;case"bottom":X-=nt;break}switch(k){case"center":K-=U/2;break;case"right":K-=U;break;case"inner":b===x-1?K-=U:b>0&&(K-=U/2);break}tt={left:K,top:X,width:U+Q.width,height:nt+Q.height,color:T.backdropColor}}p.push({label:_,font:C,textOffset:O,options:{rotation:m,color:F,strokeColor:N,strokeWidth:$,textAlign:B,textBaseline:A,translation:[y,w],backdrop:tt}})}return p}_getXAxisLabelAlignment(){const{position:t,ticks:n}=this.options;if(-ae(this.labelRotation))return t==="top"?"left":"right";let s="center";return n.align==="start"?s="left":n.align==="end"?s="right":n.align==="inner"&&(s="inner"),s}_getYAxisLabelAlignment(t){const{position:n,ticks:{crossAlign:i,mirror:s,padding:o}}=this.options,r=this._getLabelSizes(),a=t+o,l=r.widest.width;let c,h;return n==="left"?s?(h=this.right+o,i==="near"?c="left":i==="center"?(c="center",h+=l/2):(c="right",h+=l)):(h=this.right-a,i==="near"?c="right":i==="center"?(c="center",h-=l/2):(c="left",h=this.left)):n==="right"?s?(h=this.left+o,i==="near"?c="right":i==="center"?(c="center",h-=l/2):(c="left",h-=l)):(h=this.left+a,i==="near"?c="left":i==="center"?(c="center",h+=l/2):(c="right",h=this.right)):c="right",{textAlign:c,x:h}}_computeLabelArea(){if(this.options.ticks.mirror)return;const t=this.chart,n=this.options.position;if(n==="left"||n==="right")return{top:0,left:this.left,bottom:t.height,right:this.right};if(n==="top"||n==="bottom")return{top:this.top,left:0,bottom:this.bottom,right:t.width}}drawBackground(){const{ctx:t,options:{backgroundColor:n},left:i,top:s,width:o,height:r}=this;n&&(t.save(),t.fillStyle=n,t.fillRect(i,s,o,r),t.restore())}getLineWidthForValue(t){const n=this.options.grid;if(!this._isVisible()||!n.display)return 0;const s=this.ticks.findIndex(o=>o.value===t);return s>=0?n.setContext(this.getContext(s)).lineWidth:0}drawGrid(t){const n=this.options.grid,i=this.ctx,s=this._gridLineItems||(this._gridLineItems=this._computeGridLineItems(t));let o,r;const a=(l,c,h)=>{!h.width||!h.color||(i.save(),i.lineWidth=h.width,i.strokeStyle=h.color,i.setLineDash(h.borderDash||[]),i.lineDashOffset=h.borderDashOffset,i.beginPath(),i.moveTo(l.x,l.y),i.lineTo(c.x,c.y),i.stroke(),i.restore())};if(n.display)for(o=0,r=s.length;o<r;++o){const l=s[o];n.drawOnChartArea&&a({x:l.x1,y:l.y1},{x:l.x2,y:l.y2},l),n.drawTicks&&a({x:l.tx1,y:l.ty1},{x:l.tx2,y:l.ty2},{color:l.tickColor,width:l.tickWidth,borderDash:l.tickBorderDash,borderDashOffset:l.tickBorderDashOffset})}}drawBorder(){const{chart:t,ctx:n,options:{border:i,grid:s}}=this,o=i.setContext(this.getContext()),r=i.display?o.width:0;if(!r)return;const a=s.setContext(this.getContext(0)).lineWidth,l=this._borderValue;let c,h,u,d;this.isHorizontal()?(c=ee(t,this.left,r)-r/2,h=ee(t,this.right,a)+a/2,u=d=l):(u=ee(t,this.top,r)-r/2,d=ee(t,this.bottom,a)+a/2,c=h=l),n.save(),n.lineWidth=o.width,n.strokeStyle=o.color,n.beginPath(),n.moveTo(c,u),n.lineTo(h,d),n.stroke(),n.restore()}drawLabels(t){if(!this.options.ticks.display)return;const i=this.ctx,s=this._computeLabelArea();s&&Ji(i,s);const o=this.getLabelItems(t);for(const r of o){const a=r.options,l=r.font,c=r.label,h=r.textOffset;sn(i,c,0,h,l,a)}s&&Zi(i)}drawTitle(){const{ctx:t,options:{position:n,title:i,reverse:s}}=this;if(!i.display)return;const o=at(i.font),r=_t(i.padding),a=i.align;let l=o.lineHeight/2;n==="bottom"||n==="center"||z(n)?(l+=r.bottom,J(i.text)&&(l+=o.lineHeight*(i.text.length-1))):l+=r.top;const{titleX:c,titleY:h,maxWidth:u,rotation:d}=tf(this,l,n,a);sn(t,i.text,0,0,o,{color:i.color,maxWidth:u,rotation:d,textAlign:Qd(a,n,s),textBaseline:"middle",translation:[c,h]})}draw(t){this._isVisible()&&(this.drawBackground(),this.drawGrid(t),this.drawBorder(),this.drawTitle(),this.drawLabels(t))}_layers(){const t=this.options,n=t.ticks&&t.ticks.z||0,i=j(t.grid&&t.grid.z,-1),s=j(t.border&&t.border.z,0);return!this._isVisible()||this.draw!==Ae.prototype.draw?[{z:n,draw:o=>{this.draw(o)}}]:[{z:i,draw:o=>{this.drawBackground(),this.drawGrid(o),this.drawTitle()}},{z:s,draw:()=>{this.drawBorder()}},{z:n,draw:o=>{this.drawLabels(o)}}]}getMatchingVisibleMetas(t){const n=this.chart.getSortedVisibleDatasetMetas(),i=this.axis+"AxisID",s=[];let o,r;for(o=0,r=n.length;o<r;++o){const a=n[o];a[i]===this.id&&(!t||a.type===t)&&s.push(a)}return s}_resolveTickFontOptions(t){const n=this.options.ticks.setContext(this.getContext(t));return at(n.font)}_maxDigits(){const t=this._resolveTickFontOptions(0).lineHeight;return(this.isHorizontal()?this.width:this.height)/t}}class kn{constructor(t,n,i){this.type=t,this.scope=n,this.override=i,this.items=Object.create(null)}isForType(t){return Object.prototype.isPrototypeOf.call(this.type.prototype,t.prototype)}register(t){const n=Object.getPrototypeOf(t);let i;sf(n)&&(i=this.register(n));const s=this.items,o=t.id,r=this.scope+"."+o;if(!o)throw new Error("class does not have id: "+t);return o in s||(s[o]=t,ef(t,r,i),this.override&&q.override(t.id,t.overrides)),r}get(t){return this.items[t]}unregister(t){const n=this.items,i=t.id,s=this.scope;i in n&&delete n[i],s&&i in q[s]&&(delete q[s][i],this.override&&delete fe[i])}}function ef(e,t,n){const i=Qe(Object.create(null),[n?q.get(n):{},q.get(t),e.defaults]);q.set(t,i),e.defaultRoutes&&nf(t,e.defaultRoutes),e.descriptors&&q.describe(t,e.descriptors)}function nf(e,t){Object.keys(t).forEach(n=>{const i=n.split("."),s=i.pop(),o=[e].concat(i).join("."),r=t[n].split("."),a=r.pop(),l=r.join(".");q.route(o,s,l,a)})}function sf(e){return"id"in e&&"defaults"in e}class of{constructor(){this.controllers=new kn(Se,"datasets",!0),this.elements=new kn(jt,"elements"),this.plugins=new kn(Object,"plugins"),this.scales=new kn(Ae,"scales"),this._typedRegistries=[this.controllers,this.scales,this.elements]}add(...t){this._each("register",t)}remove(...t){this._each("unregister",t)}addControllers(...t){this._each("register",t,this.controllers)}addElements(...t){this._each("register",t,this.elements)}addPlugins(...t){this._each("register",t,this.plugins)}addScales(...t){this._each("register",t,this.scales)}getController(t){return this._get(t,this.controllers,"controller")}getElement(t){return this._get(t,this.elements,"element")}getPlugin(t){return this._get(t,this.plugins,"plugin")}getScale(t){return this._get(t,this.scales,"scale")}removeControllers(...t){this._each("unregister",t,this.controllers)}removeElements(...t){this._each("unregister",t,this.elements)}removePlugins(...t){this._each("unregister",t,this.plugins)}removeScales(...t){this._each("unregister",t,this.scales)}_each(t,n,i){[...n].forEach(s=>{const o=i||this._getRegistryForType(s);i||o.isForType(s)||o===this.plugins&&s.id?this._exec(t,o,s):W(s,r=>{const a=i||this._getRegistryForType(r);this._exec(t,a,r)})})}_exec(t,n,i){const s=Ui(t);Y(i["before"+s],[],i),n[t](i),Y(i["after"+s],[],i)}_getRegistryForType(t){for(let n=0;n<this._typedRegistries.length;n++){const i=this._typedRegistries[n];if(i.isForType(t))return i}return this.plugins}_get(t,n,i){const s=n.get(t);if(s===void 0)throw new Error('"'+t+'" is not a registered '+i+".");return s}}var Mt=new of;class rf{constructor(){this._init=[]}notify(t,n,i,s){n==="beforeInit"&&(this._init=this._createDescriptors(t,!0),this._notify(this._init,t,"install"));const o=s?this._descriptors(t).filter(s):this._descriptors(t),r=this._notify(o,t,n,i);return n==="afterDestroy"&&(this._notify(o,t,"stop"),this._notify(this._init,t,"uninstall")),r}_notify(t,n,i,s){s=s||{};for(const o of t){const r=o.plugin,a=r[i],l=[n,s,o.options];if(Y(a,l,r)===!1&&s.cancelable)return!1}return!0}invalidate(){V(this._cache)||(this._oldCache=this._cache,this._cache=void 0)}_descriptors(t){if(this._cache)return this._cache;const n=this._cache=this._createDescriptors(t);return this._notifyStateChanges(t),n}_createDescriptors(t,n){const i=t&&t.config,s=j(i.options&&i.options.plugins,{}),o=af(i);return s===!1&&!n?[]:cf(t,o,s,n)}_notifyStateChanges(t){const n=this._oldCache||[],i=this._cache,s=(o,r)=>o.filter(a=>!r.some(l=>a.plugin.id===l.plugin.id));this._notify(s(n,i),t,"stop"),this._notify(s(i,n),t,"start")}}function af(e){const t={},n=[],i=Object.keys(Mt.plugins.items);for(let o=0;o<i.length;o++)n.push(Mt.getPlugin(i[o]));const s=e.plugins||[];for(let o=0;o<s.length;o++){const r=s[o];n.indexOf(r)===-1&&(n.push(r),t[r.id]=!0)}return{plugins:n,localIds:t}}function lf(e,t){return!t&&e===!1?null:e===!0?{}:e}function cf(e,{plugins:t,localIds:n},i,s){const o=[],r=e.getContext();for(const a of t){const l=a.id,c=lf(i[l],s);c!==null&&o.push({plugin:a,options:hf(e.config,{plugin:a,local:n[l]},c,r)})}return o}function hf(e,{plugin:t,local:n},i,s){const o=e.pluginScopeKeys(t),r=e.getOptionScopes(i,o);return n&&t.defaults&&r.push(t.defaults),e.createResolver(r,s,[""],{scriptable:!1,indexable:!1,allKeys:!0})}function Oi(e,t){const n=q.datasets[e]||{};return((t.datasets||{})[e]||{}).indexAxis||t.indexAxis||n.indexAxis||"x"}function uf(e,t){let n=e;return e==="_index_"?n=t:e==="_value_"&&(n=t==="x"?"y":"x"),n}function df(e,t){return e===t?"_index_":"_value_"}function Mo(e){if(e==="x"||e==="y"||e==="r")return e}function ff(e){if(e==="top"||e==="bottom")return"x";if(e==="left"||e==="right")return"y"}function Di(e,...t){if(Mo(e))return e;for(const n of t){const i=n.axis||ff(n.position)||e.length>1&&Mo(e[0].toLowerCase());if(i)return i}throw new Error(`Cannot determine type of '${e}' axis. Please provide 'axis' or 'position' option.`)}function Co(e,t,n){if(n[t+"AxisID"]===e)return{axis:t}}function pf(e,t){if(t.data&&t.data.datasets){const n=t.data.datasets.filter(i=>i.xAxisID===e||i.yAxisID===e);if(n.length)return Co(e,"x",n[0])||Co(e,"y",n[0])}return{}}function gf(e,t){const n=fe[e.type]||{scales:{}},i=t.scales||{},s=Oi(e.type,t),o=Object.create(null);return Object.keys(i).forEach(r=>{const a=i[r];if(!z(a))return console.error(`Invalid scale configuration for scale: ${r}`);if(a._proxy)return console.warn(`Ignoring resolver passed as options for scale: ${r}`);const l=Di(r,a,pf(r,e),q.scales[a.type]),c=df(l,s),h=n.scales||{};o[r]=Ue(Object.create(null),[{axis:l},a,h[l],h[c]])}),e.data.datasets.forEach(r=>{const a=r.type||e.type,l=r.indexAxis||Oi(a,t),h=(fe[a]||{}).scales||{};Object.keys(h).forEach(u=>{const d=uf(u,l),f=r[d+"AxisID"]||d;o[f]=o[f]||Object.create(null),Ue(o[f],[{axis:d},i[f],h[u]])})}),Object.keys(o).forEach(r=>{const a=o[r];Ue(a,[q.scales[a.type],q.scale])}),o}function ya(e){const t=e.options||(e.options={});t.plugins=j(t.plugins,{}),t.scales=gf(e,t)}function va(e){return e=e||{},e.datasets=e.datasets||[],e.labels=e.labels||[],e}function mf(e){return e=e||{},e.data=va(e.data),ya(e),e}const Po=new Map,_a=new Set;function Mn(e,t){let n=Po.get(e);return n||(n=t(),Po.set(e,n),_a.add(n)),n}const ze=(e,t,n)=>{const i=Oe(t,n);i!==void 0&&e.add(i)};class bf{constructor(t){this._config=mf(t),this._scopeCache=new Map,this._resolverCache=new Map}get platform(){return this._config.platform}get type(){return this._config.type}set type(t){this._config.type=t}get data(){return this._config.data}set data(t){this._config.data=va(t)}get options(){return this._config.options}set options(t){this._config.options=t}get plugins(){return this._config.plugins}update(){const t=this._config;this.clearCache(),ya(t)}clearCache(){this._scopeCache.clear(),this._resolverCache.clear()}datasetScopeKeys(t){return Mn(t,()=>[[`datasets.${t}`,""]])}datasetAnimationScopeKeys(t,n){return Mn(`${t}.transition.${n}`,()=>[[`datasets.${t}.transitions.${n}`,`transitions.${n}`],[`datasets.${t}`,""]])}datasetElementScopeKeys(t,n){return Mn(`${t}-${n}`,()=>[[`datasets.${t}.elements.${n}`,`datasets.${t}`,`elements.${n}`,""]])}pluginScopeKeys(t){const n=t.id,i=this.type;return Mn(`${i}-plugin-${n}`,()=>[[`plugins.${n}`,...t.additionalOptionScopes||[]]])}_cachedScopes(t,n){const i=this._scopeCache;let s=i.get(t);return(!s||n)&&(s=new Map,i.set(t,s)),s}getOptionScopes(t,n,i){const{options:s,type:o}=this,r=this._cachedScopes(t,i),a=r.get(n);if(a)return a;const l=new Set;n.forEach(h=>{t&&(l.add(t),h.forEach(u=>ze(l,t,u))),h.forEach(u=>ze(l,s,u)),h.forEach(u=>ze(l,fe[o]||{},u)),h.forEach(u=>ze(l,q,u)),h.forEach(u=>ze(l,Ci,u))});const c=Array.from(l);return c.length===0&&c.push(Object.create(null)),_a.has(n)&&r.set(n,c),c}chartOptionScopes(){const{options:t,type:n}=this;return[t,fe[n]||{},q.datasets[n]||{},{type:n},q,Ci]}resolveNamedOptions(t,n,i,s=[""]){const o={$shared:!0},{resolver:r,subPrefixes:a}=Oo(this._resolverCache,t,s);let l=r;if(yf(r,n)){o.$shared=!1,i=Xt(i)?i():i;const c=this.createResolver(t,i,a);l=De(r,i,c)}for(const c of n)o[c]=l[c];return o}createResolver(t,n,i=[""],s){const{resolver:o}=Oo(this._resolverCache,t,i);return z(n)?De(o,n,void 0,s):o}}function Oo(e,t,n){let i=e.get(t);i||(i=new Map,e.set(t,i));const s=n.join();let o=i.get(s);return o||(o={resolver:ts(t,n),subPrefixes:n.filter(a=>!a.toLowerCase().includes("hover"))},i.set(s,o)),o}const xf=e=>z(e)&&Object.getOwnPropertyNames(e).some(t=>Xt(e[t]));function yf(e,t){const{isScriptable:n,isIndexable:i}=ia(e);for(const s of t){const o=n(s),r=i(s),a=(r||o)&&e[s];if(o&&(Xt(a)||xf(a))||r&&J(a))return!0}return!1}var vf="4.4.7";const _f=["top","bottom","left","right","chartArea"];function Do(e,t){return e==="top"||e==="bottom"||_f.indexOf(e)===-1&&t==="x"}function Eo(e,t){return function(n,i){return n[e]===i[e]?n[t]-i[t]:n[e]-i[e]}}function Ao(e){const t=e.chart,n=t.options.animation;t.notifyPlugins("afterRender"),Y(n&&n.onComplete,[e],t)}function wf(e){const t=e.chart,n=t.options.animation;Y(n&&n.onProgress,[e],t)}function wa(e){return is()&&typeof e=="string"?e=document.getElementById(e):e&&e.length&&(e=e[0]),e&&e.canvas&&(e=e.canvas),e}const Ln={},To=e=>{const t=wa(e);return Object.values(Ln).filter(n=>n.canvas===t).pop()};function Sf(e,t,n){const i=Object.keys(e);for(const s of i){const o=+s;if(o>=t){const r=e[s];delete e[s],(n>0||o>t)&&(e[o+n]=r)}}}function kf(e,t,n,i){return!n||e.type==="mouseout"?null:i?t:e}function Cn(e,t,n){return e.options.clip?e[n]:t[n]}function Mf(e,t){const{xScale:n,yScale:i}=e;return n&&i?{left:Cn(n,t,"left"),right:Cn(n,t,"right"),top:Cn(i,t,"top"),bottom:Cn(i,t,"bottom")}:t}class Ct{static register(...t){Mt.add(...t),Ro()}static unregister(...t){Mt.remove(...t),Ro()}constructor(t,n){const i=this.config=new bf(n),s=wa(t),o=To(s);if(o)throw new Error("Canvas is already in use. Chart with ID '"+o.id+"' must be destroyed before the canvas with ID '"+o.canvas.id+"' can be reused.");const r=i.createResolver(i.chartOptionScopes(),this.getContext());this.platform=new(i.platform||Nd(s)),this.platform.updateConfig(i);const a=this.platform.acquireContext(s,r.aspectRatio),l=a&&a.canvas,c=l&&l.height,h=l&&l.width;if(this.id=Sh(),this.ctx=a,this.canvas=l,this.width=h,this.height=c,this._options=r,this._aspectRatio=this.aspectRatio,this._layers=[],this._metasets=[],this._stacks=void 0,this.boxes=[],this.currentDevicePixelRatio=void 0,this.chartArea=void 0,this._active=[],this._lastEvent=void 0,this._listeners={},this._responsiveListeners=void 0,this._sortedMetasets=[],this.scales={},this._plugins=new rf,this.$proxies={},this._hiddenIndices={},this.attached=!1,this._animationsDisabled=void 0,this.$context=void 0,this._doResize=Nh(u=>this.update(u),r.resizeDelay||0),this._dataChanges=[],Ln[this.id]=this,!a||!l){console.error("Failed to create chart: can't acquire context from the given item");return}Tt.listen(this,"complete",Ao),Tt.listen(this,"progress",wf),this._initialize(),this.attached&&this.update()}get aspectRatio(){const{options:{aspectRatio:t,maintainAspectRatio:n},width:i,height:s,_aspectRatio:o}=this;return V(t)?n&&o?o:s?i/s:null:t}get data(){return this.config.data}set data(t){this.config.data=t}get options(){return this._options}set options(t){this.config.options=t}get registry(){return Mt}_initialize(){return this.notifyPlugins("beforeInit"),this.options.responsive?this.resize():to(this,this.options.devicePixelRatio),this.bindEvents(),this.notifyPlugins("afterInit"),this}clear(){return Js(this.canvas,this.ctx),this}stop(){return Tt.stop(this),this}resize(t,n){Tt.running(this)?this._resizeBeforeDraw={width:t,height:n}:this._resize(t,n)}_resize(t,n){const i=this.options,s=this.canvas,o=i.maintainAspectRatio&&this.aspectRatio,r=this.platform.getMaximumSize(s,t,n,o),a=i.devicePixelRatio||this.platform.getDevicePixelRatio(),l=this.width?"resize":"attach";this.width=r.width,this.height=r.height,this._aspectRatio=this.aspectRatio,to(this,a,!0)&&(this.notifyPlugins("resize",{size:r}),Y(i.onResize,[this,r],this),this.attached&&this._doResize(l)&&this.render())}ensureScalesHaveIDs(){const n=this.options.scales||{};W(n,(i,s)=>{i.id=s})}buildOrUpdateScales(){const t=this.options,n=t.scales,i=this.scales,s=Object.keys(i).reduce((r,a)=>(r[a]=!1,r),{});let o=[];n&&(o=o.concat(Object.keys(n).map(r=>{const a=n[r],l=Di(r,a),c=l==="r",h=l==="x";return{options:a,dposition:c?"chartArea":h?"bottom":"left",dtype:c?"radialLinear":h?"category":"linear"}}))),W(o,r=>{const a=r.options,l=a.id,c=Di(l,a),h=j(a.type,r.dtype);(a.position===void 0||Do(a.position,c)!==Do(r.dposition))&&(a.position=r.dposition),s[l]=!0;let u=null;if(l in i&&i[l].type===h)u=i[l];else{const d=Mt.getScale(h);u=new d({id:l,type:h,ctx:this.ctx,chart:this}),i[u.id]=u}u.init(a,t)}),W(s,(r,a)=>{r||delete i[a]}),W(i,r=>{bt.configure(this,r,r.options),bt.addBox(this,r)})}_updateMetasets(){const t=this._metasets,n=this.data.datasets.length,i=t.length;if(t.sort((s,o)=>s.index-o.index),i>n){for(let s=n;s<i;++s)this._destroyDatasetMeta(s);t.splice(n,i-n)}this._sortedMetasets=t.slice(0).sort(Eo("order","index"))}_removeUnreferencedMetasets(){const{_metasets:t,data:{datasets:n}}=this;t.length>n.length&&delete this._stacks,t.forEach((i,s)=>{n.filter(o=>o===i._dataset).length===0&&this._destroyDatasetMeta(s)})}buildOrUpdateControllers(){const t=[],n=this.data.datasets;let i,s;for(this._removeUnreferencedMetasets(),i=0,s=n.length;i<s;i++){const o=n[i];let r=this.getDatasetMeta(i);const a=o.type||this.config.type;if(r.type&&r.type!==a&&(this._destroyDatasetMeta(i),r=this.getDatasetMeta(i)),r.type=a,r.indexAxis=o.indexAxis||Oi(a,this.options),r.order=o.order||0,r.index=i,r.label=""+o.label,r.visible=this.isDatasetVisible(i),r.controller)r.controller.updateIndex(i),r.controller.linkScales();else{const l=Mt.getController(a),{datasetElementType:c,dataElementType:h}=q.datasets[a];Object.assign(l,{dataElementType:Mt.getElement(h),datasetElementType:c&&Mt.getElement(c)}),r.controller=new l(this,i),t.push(r.controller)}}return this._updateMetasets(),t}_resetElements(){W(this.data.datasets,(t,n)=>{this.getDatasetMeta(n).controller.reset()},this)}reset(){this._resetElements(),this.notifyPlugins("reset")}update(t){const n=this.config;n.update();const i=this._options=n.createResolver(n.chartOptionScopes(),this.getContext()),s=this._animationsDisabled=!i.animation;if(this._updateScales(),this._checkEventBindings(),this._updateHiddenIndices(),this._plugins.invalidate(),this.notifyPlugins("beforeUpdate",{mode:t,cancelable:!0})===!1)return;const o=this.buildOrUpdateControllers();this.notifyPlugins("beforeElementsUpdate");let r=0;for(let c=0,h=this.data.datasets.length;c<h;c++){const{controller:u}=this.getDatasetMeta(c),d=!s&&o.indexOf(u)===-1;u.buildOrUpdateElements(d),r=Math.max(+u.getMaxOverflow(),r)}r=this._minPadding=i.layout.autoPadding?r:0,this._updateLayout(r),s||W(o,c=>{c.reset()}),this._updateDatasets(t),this.notifyPlugins("afterUpdate",{mode:t}),this._layers.sort(Eo("z","_idx"));const{_active:a,_lastEvent:l}=this;l?this._eventHandler(l,!0):a.length&&this._updateHoverStyles(a,a,!0),this.render()}_updateScales(){W(this.scales,t=>{bt.removeBox(this,t)}),this.ensureScalesHaveIDs(),this.buildOrUpdateScales()}_checkEventBindings(){const t=this.options,n=new Set(Object.keys(this._listeners)),i=new Set(t.events);(!Ns(n,i)||!!this._responsiveListeners!==t.responsive)&&(this.unbindEvents(),this.bindEvents())}_updateHiddenIndices(){const{_hiddenIndices:t}=this,n=this._getUniformDataChanges()||[];for(const{method:i,start:s,count:o}of n){const r=i==="_removeElements"?-o:o;Sf(t,s,r)}}_getUniformDataChanges(){const t=this._dataChanges;if(!t||!t.length)return;this._dataChanges=[];const n=this.data.datasets.length,i=o=>new Set(t.filter(r=>r[0]===o).map((r,a)=>a+","+r.splice(1).join(","))),s=i(0);for(let o=1;o<n;o++)if(!Ns(s,i(o)))return;return Array.from(s).map(o=>o.split(",")).map(o=>({method:o[1],start:+o[2],count:+o[3]}))}_updateLayout(t){if(this.notifyPlugins("beforeLayout",{cancelable:!0})===!1)return;bt.update(this,this.width,this.height,t);const n=this.chartArea,i=n.width<=0||n.height<=0;this._layers=[],W(this.boxes,s=>{i&&s.position==="chartArea"||(s.configure&&s.configure(),this._layers.push(...s._layers()))},this),this._layers.forEach((s,o)=>{s._idx=o}),this.notifyPlugins("afterLayout")}_updateDatasets(t){if(this.notifyPlugins("beforeDatasetsUpdate",{mode:t,cancelable:!0})!==!1){for(let n=0,i=this.data.datasets.length;n<i;++n)this.getDatasetMeta(n).controller.configure();for(let n=0,i=this.data.datasets.length;n<i;++n)this._updateDataset(n,Xt(t)?t({datasetIndex:n}):t);this.notifyPlugins("afterDatasetsUpdate",{mode:t})}}_updateDataset(t,n){const i=this.getDatasetMeta(t),s={meta:i,index:t,mode:n,cancelable:!0};this.notifyPlugins("beforeDatasetUpdate",s)!==!1&&(i.controller._update(n),s.cancelable=!1,this.notifyPlugins("afterDatasetUpdate",s))}render(){this.notifyPlugins("beforeRender",{cancelable:!0})!==!1&&(Tt.has(this)?this.attached&&!Tt.running(this)&&Tt.start(this):(this.draw(),Ao({chart:this})))}draw(){let t;if(this._resizeBeforeDraw){const{width:i,height:s}=this._resizeBeforeDraw;this._resizeBeforeDraw=null,this._resize(i,s)}if(this.clear(),this.width<=0||this.height<=0||this.notifyPlugins("beforeDraw",{cancelable:!0})===!1)return;const n=this._layers;for(t=0;t<n.length&&n[t].z<=0;++t)n[t].draw(this.chartArea);for(this._drawDatasets();t<n.length;++t)n[t].draw(this.chartArea);this.notifyPlugins("afterDraw")}_getSortedDatasetMetas(t){const n=this._sortedMetasets,i=[];let s,o;for(s=0,o=n.length;s<o;++s){const r=n[s];(!t||r.visible)&&i.push(r)}return i}getSortedVisibleDatasetMetas(){return this._getSortedDatasetMetas(!0)}_drawDatasets(){if(this.notifyPlugins("beforeDatasetsDraw",{cancelable:!0})===!1)return;const t=this.getSortedVisibleDatasetMetas();for(let n=t.length-1;n>=0;--n)this._drawDataset(t[n]);this.notifyPlugins("afterDatasetsDraw")}_drawDataset(t){const n=this.ctx,i=t._clip,s=!i.disabled,o=Mf(t,this.chartArea),r={meta:t,index:t.index,cancelable:!0};this.notifyPlugins("beforeDatasetDraw",r)!==!1&&(s&&Ji(n,{left:i.left===!1?0:o.left-i.left,right:i.right===!1?this.width:o.right+i.right,top:i.top===!1?0:o.top-i.top,bottom:i.bottom===!1?this.height:o.bottom+i.bottom}),t.controller.draw(),s&&Zi(n),r.cancelable=!1,this.notifyPlugins("afterDatasetDraw",r))}isPointInArea(t){return nn(t,this.chartArea,this._minPadding)}getElementsAtEventForMode(t,n,i,s){const o=vd.modes[n];return typeof o=="function"?o(this,t,i,s):[]}getDatasetMeta(t){const n=this.data.datasets[t],i=this._metasets;let s=i.filter(o=>o&&o._dataset===n).pop();return s||(s={type:null,data:[],dataset:null,controller:null,hidden:null,xAxisID:null,yAxisID:null,order:n&&n.order||0,index:t,_dataset:n,_parsed:[],_sorted:!1},i.push(s)),s}getContext(){return this.$context||(this.$context=pe(null,{chart:this,type:"chart"}))}getVisibleDatasetCount(){return this.getSortedVisibleDatasetMetas().length}isDatasetVisible(t){const n=this.data.datasets[t];if(!n)return!1;const i=this.getDatasetMeta(t);return typeof i.hidden=="boolean"?!i.hidden:!n.hidden}setDatasetVisibility(t,n){const i=this.getDatasetMeta(t);i.hidden=!n}toggleDataVisibility(t){this._hiddenIndices[t]=!this._hiddenIndices[t]}getDataVisibility(t){return!this._hiddenIndices[t]}_updateVisibility(t,n,i){const s=i?"show":"hide",o=this.getDatasetMeta(t),r=o.controller._resolveAnimations(void 0,s);tn(n)?(o.data[n].hidden=!i,this.update()):(this.setDatasetVisibility(t,i),r.update(o,{visible:i}),this.update(a=>a.datasetIndex===t?s:void 0))}hide(t,n){this._updateVisibility(t,n,!1)}show(t,n){this._updateVisibility(t,n,!0)}_destroyDatasetMeta(t){const n=this._metasets[t];n&&n.controller&&n.controller._destroy(),delete this._metasets[t]}_stop(){let t,n;for(this.stop(),Tt.remove(this),t=0,n=this.data.datasets.length;t<n;++t)this._destroyDatasetMeta(t)}destroy(){this.notifyPlugins("beforeDestroy");const{canvas:t,ctx:n}=this;this._stop(),this.config.clearCache(),t&&(this.unbindEvents(),Js(t,n),this.platform.releaseContext(n),this.canvas=null,this.ctx=null),delete Ln[this.id],this.notifyPlugins("afterDestroy")}toBase64Image(...t){return this.canvas.toDataURL(...t)}bindEvents(){this.bindUserEvents(),this.options.responsive?this.bindResponsiveEvents():this.attached=!0}bindUserEvents(){const t=this._listeners,n=this.platform,i=(o,r)=>{n.addEventListener(this,o,r),t[o]=r},s=(o,r,a)=>{o.offsetX=r,o.offsetY=a,this._eventHandler(o)};W(this.options.events,o=>i(o,s))}bindResponsiveEvents(){this._responsiveListeners||(this._responsiveListeners={});const t=this._responsiveListeners,n=this.platform,i=(l,c)=>{n.addEventListener(this,l,c),t[l]=c},s=(l,c)=>{t[l]&&(n.removeEventListener(this,l,c),delete t[l])},o=(l,c)=>{this.canvas&&this.resize(l,c)};let r;const a=()=>{s("attach",a),this.attached=!0,this.resize(),i("resize",o),i("detach",r)};r=()=>{this.attached=!1,s("resize",o),this._stop(),this._resize(0,0),i("attach",a)},n.isAttached(this.canvas)?a():r()}unbindEvents(){W(this._listeners,(t,n)=>{this.platform.removeEventListener(this,n,t)}),this._listeners={},W(this._responsiveListeners,(t,n)=>{this.platform.removeEventListener(this,n,t)}),this._responsiveListeners=void 0}updateHoverStyle(t,n,i){const s=i?"set":"remove";let o,r,a,l;for(n==="dataset"&&(o=this.getDatasetMeta(t[0].datasetIndex),o.controller["_"+s+"DatasetHoverStyle"]()),a=0,l=t.length;a<l;++a){r=t[a];const c=r&&this.getDatasetMeta(r.datasetIndex).controller;c&&c[s+"HoverStyle"](r.element,r.datasetIndex,r.index)}}getActiveElements(){return this._active||[]}setActiveElements(t){const n=this._active||[],i=t.map(({datasetIndex:o,index:r})=>{const a=this.getDatasetMeta(o);if(!a)throw new Error("No dataset found at index "+o);return{datasetIndex:o,element:a.data[r],index:r}});!In(i,n)&&(this._active=i,this._lastEvent=null,this._updateHoverStyles(i,n))}notifyPlugins(t,n,i){return this._plugins.notify(this,t,n,i)}isPluginEnabled(t){return this._plugins._cache.filter(n=>n.plugin.id===t).length===1}_updateHoverStyles(t,n,i){const s=this.options.hover,o=(l,c)=>l.filter(h=>!c.some(u=>h.datasetIndex===u.datasetIndex&&h.index===u.index)),r=o(n,t),a=i?t:o(t,n);r.length&&this.updateHoverStyle(r,s.mode,!1),a.length&&s.mode&&this.updateHoverStyle(a,s.mode,!0)}_eventHandler(t,n){const i={event:t,replay:n,cancelable:!0,inChartArea:this.isPointInArea(t)},s=r=>(r.options.events||this.options.events).includes(t.native.type);if(this.notifyPlugins("beforeEvent",i,s)===!1)return;const o=this._handleEvent(t,n,i.inChartArea);return i.cancelable=!1,this.notifyPlugins("afterEvent",i,s),(o||i.changed)&&this.render(),this}_handleEvent(t,n,i){const{_active:s=[],options:o}=this,r=n,a=this._getActiveElements(t,s,i,r),l=Dh(t),c=kf(t,this._lastEvent,i,l);i&&(this._lastEvent=null,Y(o.onHover,[t,a,this],this),l&&Y(o.onClick,[t,a,this],this));const h=!In(a,s);return(h||n)&&(this._active=a,this._updateHoverStyles(a,s,n)),this._lastEvent=c,h}_getActiveElements(t,n,i,s){if(t.type==="mouseout")return[];if(!i)return n;const o=this.options.hover;return this.getElementsAtEventForMode(t,o.mode,o,s)}}R(Ct,"defaults",q),R(Ct,"instances",Ln),R(Ct,"overrides",fe),R(Ct,"registry",Mt),R(Ct,"version",vf),R(Ct,"getChart",To);function Ro(){return W(Ct.instances,e=>e._plugins.invalidate())}function Cf(e,t,n){const{startAngle:i,pixelMargin:s,x:o,y:r,outerRadius:a,innerRadius:l}=t;let c=s/a;e.beginPath(),e.arc(o,r,a,i-c,n+c),l>s?(c=s/l,e.arc(o,r,l,n+c,i-c,!0)):e.arc(o,r,s,n+it,i-it),e.closePath(),e.clip()}function Pf(e){return Qi(e,["outerStart","outerEnd","innerStart","innerEnd"])}function Of(e,t,n,i){const s=Pf(e.options.borderRadius),o=(n-t)/2,r=Math.min(o,i*t/2),a=l=>{const c=(n-Math.min(o,l))*i/2;return rt(l,0,Math.min(o,c))};return{outerStart:a(s.outerStart),outerEnd:a(s.outerEnd),innerStart:rt(s.innerStart,0,r),innerEnd:rt(s.innerEnd,0,r)}}function be(e,t,n,i){return{x:n+e*Math.cos(t),y:i+e*Math.sin(t)}}function Hn(e,t,n,i,s,o){const{x:r,y:a,startAngle:l,pixelMargin:c,innerRadius:h}=t,u=Math.max(t.outerRadius+i+n-c,0),d=h>0?h+i+n+c:0;let f=0;const g=s-l;if(i){const T=h>0?h-i:0,L=u>0?u-i:0,F=(T+L)/2,N=F!==0?g*F/(F+i):g;f=(g-N)/2}const m=Math.max(.001,g*u-n/Z)/u,p=(g-m)/2,b=l+p+f,x=s-p-f,{outerStart:v,outerEnd:_,innerStart:y,innerEnd:w}=Of(t,d,u,x-b),k=u-v,S=u-_,C=b+v/k,D=x-_/S,P=d+y,O=d+w,A=b+y/P,I=x-w/O;if(e.beginPath(),o){const T=(C+D)/2;if(e.arc(r,a,u,C,T),e.arc(r,a,u,T,D),_>0){const $=be(S,D,r,a);e.arc($.x,$.y,_,D,x+it)}const L=be(O,x,r,a);if(e.lineTo(L.x,L.y),w>0){const $=be(O,I,r,a);e.arc($.x,$.y,w,x+it,I+Math.PI)}const F=(x-w/d+(b+y/d))/2;if(e.arc(r,a,d,x-w/d,F,!0),e.arc(r,a,d,F,b+y/d,!0),y>0){const $=be(P,A,r,a);e.arc($.x,$.y,y,A+Math.PI,b-it)}const N=be(k,b,r,a);if(e.lineTo(N.x,N.y),v>0){const $=be(k,C,r,a);e.arc($.x,$.y,v,b-it,C)}}else{e.moveTo(r,a);const T=Math.cos(C)*u+r,L=Math.sin(C)*u+a;e.lineTo(T,L);const F=Math.cos(D)*u+r,N=Math.sin(D)*u+a;e.lineTo(F,N)}e.closePath()}function Df(e,t,n,i,s){const{fullCircles:o,startAngle:r,circumference:a}=t;let l=t.endAngle;if(o){Hn(e,t,n,i,l,s);for(let c=0;c<o;++c)e.fill();isNaN(a)||(l=r+(a%st||st))}return Hn(e,t,n,i,l,s),e.fill(),l}function Ef(e,t,n,i,s){const{fullCircles:o,startAngle:r,circumference:a,options:l}=t,{borderWidth:c,borderJoinStyle:h,borderDash:u,borderDashOffset:d}=l,f=l.borderAlign==="inner";if(!c)return;e.setLineDash(u||[]),e.lineDashOffset=d,f?(e.lineWidth=c*2,e.lineJoin=h||"round"):(e.lineWidth=c,e.lineJoin=h||"bevel");let g=t.endAngle;if(o){Hn(e,t,n,i,g,s);for(let m=0;m<o;++m)e.stroke();isNaN(a)||(g=r+(a%st||st))}f&&Cf(e,t,g),o||(Hn(e,t,n,i,g,s),e.stroke())}class Pn extends jt{constructor(n){super();R(this,"circumference");R(this,"endAngle");R(this,"fullCircles");R(this,"innerRadius");R(this,"outerRadius");R(this,"pixelMargin");R(this,"startAngle");this.options=void 0,this.circumference=void 0,this.startAngle=void 0,this.endAngle=void 0,this.innerRadius=void 0,this.outerRadius=void 0,this.pixelMargin=0,this.fullCircles=0,n&&Object.assign(this,n)}inRange(n,i,s){const o=this.getProps(["x","y"],s),{angle:r,distance:a}=Xr(o,{x:n,y:i}),{startAngle:l,endAngle:c,innerRadius:h,outerRadius:u,circumference:d}=this.getProps(["startAngle","endAngle","innerRadius","outerRadius","circumference"],s),f=(this.options.spacing+this.options.borderWidth)/2,g=j(d,c-l),m=Xi(r,l,c)&&l!==c,p=g>=st||m,b=Nt(a,h+f,u+f);return p&&b}getCenterPoint(n){const{x:i,y:s,startAngle:o,endAngle:r,innerRadius:a,outerRadius:l}=this.getProps(["x","y","startAngle","endAngle","innerRadius","outerRadius"],n),{offset:c,spacing:h}=this.options,u=(o+r)/2,d=(a+l+h+c)/2;return{x:i+Math.cos(u)*d,y:s+Math.sin(u)*d}}tooltipPosition(n){return this.getCenterPoint(n)}draw(n){const{options:i,circumference:s}=this,o=(i.offset||0)/4,r=(i.spacing||0)/2,a=i.circular;if(this.pixelMargin=i.borderAlign==="inner"?.33:0,this.fullCircles=s>st?Math.floor(s/st):0,s===0||this.innerRadius<0||this.outerRadius<0)return;n.save();const l=(this.startAngle+this.endAngle)/2;n.translate(Math.cos(l)*o,Math.sin(l)*o);const c=1-Math.sin(Math.min(Z,s||0)),h=o*c;n.fillStyle=i.backgroundColor,n.strokeStyle=i.borderColor,Df(n,this,h,r,a),Ef(n,this,h,r,a),n.restore()}}R(Pn,"id","arc"),R(Pn,"defaults",{borderAlign:"center",borderColor:"#fff",borderDash:[],borderDashOffset:0,borderJoinStyle:void 0,borderRadius:0,borderWidth:2,offset:0,spacing:0,angle:void 0,circular:!0}),R(Pn,"defaultRoutes",{backgroundColor:"backgroundColor"}),R(Pn,"descriptors",{_scriptable:!0,_indexable:n=>n!=="borderDash"});function Sa(e,t,n=t){e.lineCap=j(n.borderCapStyle,t.borderCapStyle),e.setLineDash(j(n.borderDash,t.borderDash)),e.lineDashOffset=j(n.borderDashOffset,t.borderDashOffset),e.lineJoin=j(n.borderJoinStyle,t.borderJoinStyle),e.lineWidth=j(n.borderWidth,t.borderWidth),e.strokeStyle=j(n.borderColor,t.borderColor)}function Af(e,t,n){e.lineTo(n.x,n.y)}function Tf(e){return e.stepped?tu:e.tension||e.cubicInterpolationMode==="monotone"?eu:Af}function ka(e,t,n={}){const i=e.length,{start:s=0,end:o=i-1}=n,{start:r,end:a}=t,l=Math.max(s,r),c=Math.min(o,a),h=s<r&&o<r||s>a&&o>a;return{count:i,start:l,loop:t.loop,ilen:c<l&&!h?i+c-l:c-l}}function Rf(e,t,n,i){const{points:s,options:o}=t,{count:r,start:a,loop:l,ilen:c}=ka(s,n,i),h=Tf(o);let{move:u=!0,reverse:d}=i||{},f,g,m;for(f=0;f<=c;++f)g=s[(a+(d?c-f:f))%r],!g.skip&&(u?(e.moveTo(g.x,g.y),u=!1):h(e,m,g,d,o.stepped),m=g);return l&&(g=s[(a+(d?c:0))%r],h(e,m,g,d,o.stepped)),!!l}function Lf(e,t,n,i){const s=t.points,{count:o,start:r,ilen:a}=ka(s,n,i),{move:l=!0,reverse:c}=i||{};let h=0,u=0,d,f,g,m,p,b;const x=_=>(r+(c?a-_:_))%o,v=()=>{m!==p&&(e.lineTo(h,p),e.lineTo(h,m),e.lineTo(h,b))};for(l&&(f=s[x(0)],e.moveTo(f.x,f.y)),d=0;d<=a;++d){if(f=s[x(d)],f.skip)continue;const _=f.x,y=f.y,w=_|0;w===g?(y<m?m=y:y>p&&(p=y),h=(u*h+_)/++u):(v(),e.lineTo(_,y),g=w,u=0,m=p=y),b=y}v()}function Ei(e){const t=e.options,n=t.borderDash&&t.borderDash.length;return!e._decimated&&!e._loop&&!t.tension&&t.cubicInterpolationMode!=="monotone"&&!t.stepped&&!n?Lf:Rf}function Ff(e){return e.stepped?Ru:e.tension||e.cubicInterpolationMode==="monotone"?Lu:re}function If(e,t,n,i){let s=t._path;s||(s=t._path=new Path2D,t.path(s,n,i)&&s.closePath()),Sa(e,t.options),e.stroke(s)}function jf(e,t,n,i){const{segments:s,options:o}=t,r=Ei(t);for(const a of s)Sa(e,o,a.style),e.beginPath(),r(e,t,a,{start:n,end:n+i-1})&&e.closePath(),e.stroke()}const $f=typeof Path2D=="function";function zf(e,t,n,i){$f&&!t.options.segment?If(e,t,n,i):jf(e,t,n,i)}class On extends jt{constructor(t){super(),this.animated=!0,this.options=void 0,this._chart=void 0,this._loop=void 0,this._fullLoop=void 0,this._path=void 0,this._points=void 0,this._segments=void 0,this._decimated=!1,this._pointsUpdated=!1,this._datasetIndex=void 0,t&&Object.assign(this,t)}updateControlPoints(t,n){const i=this.options;if((i.tension||i.cubicInterpolationMode==="monotone")&&!i.stepped&&!this._pointsUpdated){const s=i.spanGaps?this._loop:this._fullLoop;Mu(this._points,i,t,s,n),this._pointsUpdated=!0}}set points(t){this._points=t,delete this._segments,delete this._path,this._pointsUpdated=!1}get points(){return this._points}get segments(){return this._segments||(this._segments=Hu(this,this.options.segment))}first(){const t=this.segments,n=this.points;return t.length&&n[t[0].start]}last(){const t=this.segments,n=this.points,i=t.length;return i&&n[t[i-1].end]}interpolate(t,n){const i=this.options,s=t[n],o=this.points,r=zu(this,{property:n,start:s,end:s});if(!r.length)return;const a=[],l=Ff(i);let c,h;for(c=0,h=r.length;c<h;++c){const{start:u,end:d}=r[c],f=o[u],g=o[d];if(f===g){a.push(f);continue}const m=Math.abs((s-f[n])/(g[n]-f[n])),p=l(f,g,m,i.stepped);p[n]=t[n],a.push(p)}return a.length===1?a[0]:a}pathSegment(t,n,i){return Ei(this)(t,this,n,i)}path(t,n,i){const s=this.segments,o=Ei(this);let r=this._loop;n=n||0,i=i||this.points.length-n;for(const a of s)r&=o(t,this,a,{start:n,end:n+i-1});return!!r}draw(t,n,i,s){const o=this.options||{};(this.points||[]).length&&o.borderWidth&&(t.save(),zf(t,this,i,s),t.restore()),this.animated&&(this._pointsUpdated=!1,this._path=void 0)}}R(On,"id","line"),R(On,"defaults",{borderCapStyle:"butt",borderDash:[],borderDashOffset:0,borderJoinStyle:"miter",borderWidth:3,capBezierPoints:!0,cubicInterpolationMode:"default",fill:!1,spanGaps:!1,stepped:!1,tension:0}),R(On,"defaultRoutes",{backgroundColor:"backgroundColor",borderColor:"borderColor"}),R(On,"descriptors",{_scriptable:!0,_indexable:t=>t!=="borderDash"&&t!=="fill"});function Lo(e,t,n,i){const s=e.options,{[n]:o}=e.getProps([n],i);return Math.abs(t-o)<s.radius+s.hitRadius}class gi extends jt{constructor(n){super();R(this,"parsed");R(this,"skip");R(this,"stop");this.options=void 0,this.parsed=void 0,this.skip=void 0,this.stop=void 0,n&&Object.assign(this,n)}inRange(n,i,s){const o=this.options,{x:r,y:a}=this.getProps(["x","y"],s);return Math.pow(n-r,2)+Math.pow(i-a,2)<Math.pow(o.hitRadius+o.radius,2)}inXRange(n,i){return Lo(this,n,"x",i)}inYRange(n,i){return Lo(this,n,"y",i)}getCenterPoint(n){const{x:i,y:s}=this.getProps(["x","y"],n);return{x:i,y:s}}size(n){n=n||this.options||{};let i=n.radius||0;i=Math.max(i,i&&n.hoverRadius||0);const s=i&&n.borderWidth||0;return(i+s)*2}draw(n,i){const s=this.options;this.skip||s.radius<.1||!nn(this,i,this.size(s)/2)||(n.strokeStyle=s.borderColor,n.lineWidth=s.borderWidth,n.fillStyle=s.backgroundColor,Pi(n,s,this.x,this.y))}getRange(){const n=this.options||{};return n.radius+n.hitRadius}}R(gi,"id","point"),R(gi,"defaults",{borderWidth:1,hitRadius:1,hoverBorderWidth:1,hoverRadius:4,pointStyle:"circle",radius:3,rotation:0}),R(gi,"defaultRoutes",{backgroundColor:"backgroundColor",borderColor:"borderColor"});function Ma(e,t){const{x:n,y:i,base:s,width:o,height:r}=e.getProps(["x","y","base","width","height"],t);let a,l,c,h,u;return e.horizontal?(u=r/2,a=Math.min(n,s),l=Math.max(n,s),c=i-u,h=i+u):(u=o/2,a=n-u,l=n+u,c=Math.min(i,s),h=Math.max(i,s)),{left:a,top:c,right:l,bottom:h}}function Ht(e,t,n,i){return e?0:rt(t,n,i)}function Bf(e,t,n){const i=e.options.borderWidth,s=e.borderSkipped,o=na(i);return{t:Ht(s.top,o.top,0,n),r:Ht(s.right,o.right,0,t),b:Ht(s.bottom,o.bottom,0,n),l:Ht(s.left,o.left,0,t)}}function Nf(e,t,n){const{enableBorderRadius:i}=e.getProps(["enableBorderRadius"]),s=e.options.borderRadius,o=_e(s),r=Math.min(t,n),a=e.borderSkipped,l=i||z(s);return{topLeft:Ht(!l||a.top||a.left,o.topLeft,0,r),topRight:Ht(!l||a.top||a.right,o.topRight,0,r),bottomLeft:Ht(!l||a.bottom||a.left,o.bottomLeft,0,r),bottomRight:Ht(!l||a.bottom||a.right,o.bottomRight,0,r)}}function Hf(e){const t=Ma(e),n=t.right-t.left,i=t.bottom-t.top,s=Bf(e,n/2,i/2),o=Nf(e,n/2,i/2);return{outer:{x:t.left,y:t.top,w:n,h:i,radius:o},inner:{x:t.left+s.l,y:t.top+s.t,w:n-s.l-s.r,h:i-s.t-s.b,radius:{topLeft:Math.max(0,o.topLeft-Math.max(s.t,s.l)),topRight:Math.max(0,o.topRight-Math.max(s.t,s.r)),bottomLeft:Math.max(0,o.bottomLeft-Math.max(s.b,s.l)),bottomRight:Math.max(0,o.bottomRight-Math.max(s.b,s.r))}}}}function mi(e,t,n,i){const s=t===null,o=n===null,a=e&&!(s&&o)&&Ma(e,i);return a&&(s||Nt(t,a.left,a.right))&&(o||Nt(n,a.top,a.bottom))}function Wf(e){return e.topLeft||e.topRight||e.bottomLeft||e.bottomRight}function Vf(e,t){e.rect(t.x,t.y,t.w,t.h)}function bi(e,t,n={}){const i=e.x!==n.x?-t:0,s=e.y!==n.y?-t:0,o=(e.x+e.w!==n.x+n.w?t:0)-i,r=(e.y+e.h!==n.y+n.h?t:0)-s;return{x:e.x+i,y:e.y+s,w:e.w+o,h:e.h+r,radius:e.radius}}class xi extends jt{constructor(t){super(),this.options=void 0,this.horizontal=void 0,this.base=void 0,this.width=void 0,this.height=void 0,this.inflateAmount=void 0,t&&Object.assign(this,t)}draw(t){const{inflateAmount:n,options:{borderColor:i,backgroundColor:s}}=this,{inner:o,outer:r}=Hf(this),a=Wf(r.radius)?zn:Vf;t.save(),(r.w!==o.w||r.h!==o.h)&&(t.beginPath(),a(t,bi(r,n,o)),t.clip(),a(t,bi(o,-n,r)),t.fillStyle=i,t.fill("evenodd")),t.beginPath(),a(t,bi(o,n)),t.fillStyle=s,t.fill(),t.restore()}inRange(t,n,i){return mi(this,t,n,i)}inXRange(t,n){return mi(this,t,null,n)}inYRange(t,n){return mi(this,null,t,n)}getCenterPoint(t){const{x:n,y:i,base:s,horizontal:o}=this.getProps(["x","y","base","horizontal"],t);return{x:o?(n+s)/2:n,y:o?i:(i+s)/2}}getRange(t){return t==="x"?this.width/2:this.height/2}}R(xi,"id","bar"),R(xi,"defaults",{borderSkipped:"start",borderWidth:0,borderRadius:0,inflateAmount:"auto",pointStyle:void 0}),R(xi,"defaultRoutes",{backgroundColor:"backgroundColor",borderColor:"borderColor"});const Fo=(e,t)=>{let{boxHeight:n=t,boxWidth:i=t}=e;return e.usePointStyle&&(n=Math.min(n,t),i=e.pointStyleWidth||Math.min(i,t)),{boxWidth:i,boxHeight:n,itemHeight:Math.max(t,n)}},Yf=(e,t)=>e!==null&&t!==null&&e.datasetIndex===t.datasetIndex&&e.index===t.index;class Io extends jt{constructor(t){super(),this._added=!1,this.legendHitBoxes=[],this._hoveredItem=null,this.doughnutMode=!1,this.chart=t.chart,this.options=t.options,this.ctx=t.ctx,this.legendItems=void 0,this.columnSizes=void 0,this.lineWidths=void 0,this.maxHeight=void 0,this.maxWidth=void 0,this.top=void 0,this.bottom=void 0,this.left=void 0,this.right=void 0,this.height=void 0,this.width=void 0,this._margins=void 0,this.position=void 0,this.weight=void 0,this.fullSize=void 0}update(t,n,i){this.maxWidth=t,this.maxHeight=n,this._margins=i,this.setDimensions(),this.buildLabels(),this.fit()}setDimensions(){this.isHorizontal()?(this.width=this.maxWidth,this.left=this._margins.left,this.right=this.width):(this.height=this.maxHeight,this.top=this._margins.top,this.bottom=this.height)}buildLabels(){const t=this.options.labels||{};let n=Y(t.generateLabels,[this.chart],this)||[];t.filter&&(n=n.filter(i=>t.filter(i,this.chart.data))),t.sort&&(n=n.sort((i,s)=>t.sort(i,s,this.chart.data))),this.options.reverse&&n.reverse(),this.legendItems=n}fit(){const{options:t,ctx:n}=this;if(!t.display){this.width=this.height=0;return}const i=t.labels,s=at(i.font),o=s.size,r=this._computeTitleHeight(),{boxWidth:a,itemHeight:l}=Fo(i,o);let c,h;n.font=s.string,this.isHorizontal()?(c=this.maxWidth,h=this._fitRows(r,o,a,l)+10):(h=this.maxHeight,c=this._fitCols(r,s,a,l)+10),this.width=Math.min(c,t.maxWidth||this.maxWidth),this.height=Math.min(h,t.maxHeight||this.maxHeight)}_fitRows(t,n,i,s){const{ctx:o,maxWidth:r,options:{labels:{padding:a}}}=this,l=this.legendHitBoxes=[],c=this.lineWidths=[0],h=s+a;let u=t;o.textAlign="left",o.textBaseline="middle";let d=-1,f=-h;return this.legendItems.forEach((g,m)=>{const p=i+n/2+o.measureText(g.text).width;(m===0||c[c.length-1]+p+2*a>r)&&(u+=h,c[c.length-(m>0?0:1)]=0,f+=h,d++),l[m]={left:0,top:f,row:d,width:p,height:s},c[c.length-1]+=p+a}),u}_fitCols(t,n,i,s){const{ctx:o,maxHeight:r,options:{labels:{padding:a}}}=this,l=this.legendHitBoxes=[],c=this.columnSizes=[],h=r-t;let u=a,d=0,f=0,g=0,m=0;return this.legendItems.forEach((p,b)=>{const{itemWidth:x,itemHeight:v}=Uf(i,n,o,p,s);b>0&&f+v+2*a>h&&(u+=d+a,c.push({width:d,height:f}),g+=d+a,m++,d=f=0),l[b]={left:g,top:f,col:m,width:x,height:v},d=Math.max(d,x),f+=v+a}),u+=d,c.push({width:d,height:f}),u}adjustHitBoxes(){if(!this.options.display)return;const t=this._computeTitleHeight(),{legendHitBoxes:n,options:{align:i,labels:{padding:s},rtl:o}}=this,r=we(o,this.left,this.width);if(this.isHorizontal()){let a=0,l=ot(i,this.left+s,this.right-this.lineWidths[a]);for(const c of n)a!==c.row&&(a=c.row,l=ot(i,this.left+s,this.right-this.lineWidths[a])),c.top+=this.top+t+s,c.left=r.leftForLtr(r.x(l),c.width),l+=c.width+s}else{let a=0,l=ot(i,this.top+t+s,this.bottom-this.columnSizes[a].height);for(const c of n)c.col!==a&&(a=c.col,l=ot(i,this.top+t+s,this.bottom-this.columnSizes[a].height)),c.top=l,c.left+=this.left+s,c.left=r.leftForLtr(r.x(c.left),c.width),l+=c.height+s}}isHorizontal(){return this.options.position==="top"||this.options.position==="bottom"}draw(){if(this.options.display){const t=this.ctx;Ji(t,this),this._draw(),Zi(t)}}_draw(){const{options:t,columnSizes:n,lineWidths:i,ctx:s}=this,{align:o,labels:r}=t,a=q.color,l=we(t.rtl,this.left,this.width),c=at(r.font),{padding:h}=r,u=c.size,d=u/2;let f;this.drawTitle(),s.textAlign=l.textAlign("left"),s.textBaseline="middle",s.lineWidth=.5,s.font=c.string;const{boxWidth:g,boxHeight:m,itemHeight:p}=Fo(r,u),b=function(w,k,S){if(isNaN(g)||g<=0||isNaN(m)||m<0)return;s.save();const C=j(S.lineWidth,1);if(s.fillStyle=j(S.fillStyle,a),s.lineCap=j(S.lineCap,"butt"),s.lineDashOffset=j(S.lineDashOffset,0),s.lineJoin=j(S.lineJoin,"miter"),s.lineWidth=C,s.strokeStyle=j(S.strokeStyle,a),s.setLineDash(j(S.lineDash,[])),r.usePointStyle){const D={radius:m*Math.SQRT2/2,pointStyle:S.pointStyle,rotation:S.rotation,borderWidth:C},P=l.xPlus(w,g/2),O=k+d;ea(s,D,P,O,r.pointStyleWidth&&g)}else{const D=k+Math.max((u-m)/2,0),P=l.leftForLtr(w,g),O=_e(S.borderRadius);s.beginPath(),Object.values(O).some(A=>A!==0)?zn(s,{x:P,y:D,w:g,h:m,radius:O}):s.rect(P,D,g,m),s.fill(),C!==0&&s.stroke()}s.restore()},x=function(w,k,S){sn(s,S.text,w,k+p/2,c,{strikethrough:S.hidden,textAlign:l.textAlign(S.textAlign)})},v=this.isHorizontal(),_=this._computeTitleHeight();v?f={x:ot(o,this.left+h,this.right-i[0]),y:this.top+h+_,line:0}:f={x:this.left+h,y:ot(o,this.top+_+h,this.bottom-n[0].height),line:0},la(this.ctx,t.textDirection);const y=p+h;this.legendItems.forEach((w,k)=>{s.strokeStyle=w.fontColor,s.fillStyle=w.fontColor;const S=s.measureText(w.text).width,C=l.textAlign(w.textAlign||(w.textAlign=r.textAlign)),D=g+d+S;let P=f.x,O=f.y;l.setWidth(this.width),v?k>0&&P+D+h>this.right&&(O=f.y+=y,f.line++,P=f.x=ot(o,this.left+h,this.right-i[f.line])):k>0&&O+y>this.bottom&&(P=f.x=P+n[f.line].width+h,f.line++,O=f.y=ot(o,this.top+_+h,this.bottom-n[f.line].height));const A=l.x(P);if(b(A,O,w),P=Hh(C,P+g+d,v?P+D:this.right,t.rtl),x(l.x(P),O,w),v)f.x+=D+h;else if(typeof w.text!="string"){const I=c.lineHeight;f.y+=Ca(w,I)+h}else f.y+=y}),ca(this.ctx,t.textDirection)}drawTitle(){const t=this.options,n=t.title,i=at(n.font),s=_t(n.padding);if(!n.display)return;const o=we(t.rtl,this.left,this.width),r=this.ctx,a=n.position,l=i.size/2,c=s.top+l;let h,u=this.left,d=this.width;if(this.isHorizontal())d=Math.max(...this.lineWidths),h=this.top+c,u=ot(t.align,u,this.right-d);else{const g=this.columnSizes.reduce((m,p)=>Math.max(m,p.height),0);h=c+ot(t.align,this.top,this.bottom-g-t.labels.padding-this._computeTitleHeight())}const f=ot(a,u,u+d);r.textAlign=o.textAlign(Ki(a)),r.textBaseline="middle",r.strokeStyle=n.color,r.fillStyle=n.color,r.font=i.string,sn(r,n.text,f,h,i)}_computeTitleHeight(){const t=this.options.title,n=at(t.font),i=_t(t.padding);return t.display?n.lineHeight+i.height:0}_getLegendItemAt(t,n){let i,s,o;if(Nt(t,this.left,this.right)&&Nt(n,this.top,this.bottom)){for(o=this.legendHitBoxes,i=0;i<o.length;++i)if(s=o[i],Nt(t,s.left,s.left+s.width)&&Nt(n,s.top,s.top+s.height))return this.legendItems[i]}return null}handleEvent(t){const n=this.options;if(!Kf(t.type,n))return;const i=this._getLegendItemAt(t.x,t.y);if(t.type==="mousemove"||t.type==="mouseout"){const s=this._hoveredItem,o=Yf(s,i);s&&!o&&Y(n.onLeave,[t,s,this],this),this._hoveredItem=i,i&&!o&&Y(n.onHover,[t,i,this],this)}else i&&Y(n.onClick,[t,i,this],this)}}function Uf(e,t,n,i,s){const o=Xf(i,e,t,n),r=qf(s,i,t.lineHeight);return{itemWidth:o,itemHeight:r}}function Xf(e,t,n,i){let s=e.text;return s&&typeof s!="string"&&(s=s.reduce((o,r)=>o.length>r.length?o:r)),t+n.size/2+i.measureText(s).width}function qf(e,t,n){let i=e;return typeof t.text!="string"&&(i=Ca(t,n)),i}function Ca(e,t){const n=e.text?e.text.length:0;return t*n}function Kf(e,t){return!!((e==="mousemove"||e==="mouseout")&&(t.onHover||t.onLeave)||t.onClick&&(e==="click"||e==="mouseup"))}var Og={id:"legend",_element:Io,start(e,t,n){const i=e.legend=new Io({ctx:e.ctx,options:n,chart:e});bt.configure(e,i,n),bt.addBox(e,i)},stop(e){bt.removeBox(e,e.legend),delete e.legend},beforeUpdate(e,t,n){const i=e.legend;bt.configure(e,i,n),i.options=n},afterUpdate(e){const t=e.legend;t.buildLabels(),t.adjustHitBoxes()},afterEvent(e,t){t.replay||e.legend.handleEvent(t.event)},defaults:{display:!0,position:"top",align:"center",fullSize:!0,reverse:!1,weight:1e3,onClick(e,t,n){const i=t.datasetIndex,s=n.chart;s.isDatasetVisible(i)?(s.hide(i),t.hidden=!0):(s.show(i),t.hidden=!1)},onHover:null,onLeave:null,labels:{color:e=>e.chart.options.color,boxWidth:40,padding:10,generateLabels(e){const t=e.data.datasets,{labels:{usePointStyle:n,pointStyle:i,textAlign:s,color:o,useBorderRadius:r,borderRadius:a}}=e.legend.options;return e._getSortedDatasetMetas().map(l=>{const c=l.controller.getStyle(n?0:void 0),h=_t(c.borderWidth);return{text:t[l.index].label,fillStyle:c.backgroundColor,fontColor:o,hidden:!l.visible,lineCap:c.borderCapStyle,lineDash:c.borderDash,lineDashOffset:c.borderDashOffset,lineJoin:c.borderJoinStyle,lineWidth:(h.width+h.height)/4,strokeStyle:c.borderColor,pointStyle:i||c.pointStyle,rotation:c.rotation,textAlign:s||c.textAlign,borderRadius:r&&(a||c.borderRadius),datasetIndex:l.index}},this)}},title:{color:e=>e.chart.options.color,display:!1,position:"center",text:""}},descriptors:{_scriptable:e=>!e.startsWith("on"),labels:{_scriptable:e=>!["generateLabels","filter","sort"].includes(e)}}};class Pa extends jt{constructor(t){super(),this.chart=t.chart,this.options=t.options,this.ctx=t.ctx,this._padding=void 0,this.top=void 0,this.bottom=void 0,this.left=void 0,this.right=void 0,this.width=void 0,this.height=void 0,this.position=void 0,this.weight=void 0,this.fullSize=void 0}update(t,n){const i=this.options;if(this.left=0,this.top=0,!i.display){this.width=this.height=this.right=this.bottom=0;return}this.width=this.right=t,this.height=this.bottom=n;const s=J(i.text)?i.text.length:1;this._padding=_t(i.padding);const o=s*at(i.font).lineHeight+this._padding.height;this.isHorizontal()?this.height=o:this.width=o}isHorizontal(){const t=this.options.position;return t==="top"||t==="bottom"}_drawArgs(t){const{top:n,left:i,bottom:s,right:o,options:r}=this,a=r.align;let l=0,c,h,u;return this.isHorizontal()?(h=ot(a,i,o),u=n+t,c=o-i):(r.position==="left"?(h=i+t,u=ot(a,s,n),l=Z*-.5):(h=o-t,u=ot(a,n,s),l=Z*.5),c=s-n),{titleX:h,titleY:u,maxWidth:c,rotation:l}}draw(){const t=this.ctx,n=this.options;if(!n.display)return;const i=at(n.font),o=i.lineHeight/2+this._padding.top,{titleX:r,titleY:a,maxWidth:l,rotation:c}=this._drawArgs(o);sn(t,n.text,0,0,i,{color:n.color,maxWidth:l,rotation:c,textAlign:Ki(n.align),textBaseline:"middle",translation:[r,a]})}}function Gf(e,t){const n=new Pa({ctx:e.ctx,options:t,chart:e});bt.configure(e,n,t),bt.addBox(e,n),e.titleBlock=n}var Dg={id:"title",_element:Pa,start(e,t,n){Gf(e,n)},stop(e){const t=e.titleBlock;bt.removeBox(e,t),delete e.titleBlock},beforeUpdate(e,t,n){const i=e.titleBlock;bt.configure(e,i,n),i.options=n},defaults:{align:"center",display:!1,font:{weight:"bold"},fullSize:!0,padding:10,position:"top",text:"",weight:2e3},defaultRoutes:{color:"color"},descriptors:{_scriptable:!0,_indexable:!1}};const He={average(e){if(!e.length)return!1;let t,n,i=new Set,s=0,o=0;for(t=0,n=e.length;t<n;++t){const a=e[t].element;if(a&&a.hasValue()){const l=a.tooltipPosition();i.add(l.x),s+=l.y,++o}}return o===0||i.size===0?!1:{x:[...i].reduce((a,l)=>a+l)/i.size,y:s/o}},nearest(e,t){if(!e.length)return!1;let n=t.x,i=t.y,s=Number.POSITIVE_INFINITY,o,r,a;for(o=0,r=e.length;o<r;++o){const l=e[o].element;if(l&&l.hasValue()){const c=l.getCenterPoint(),h=Mi(t,c);h<s&&(s=h,a=l)}}if(a){const l=a.tooltipPosition();n=l.x,i=l.y}return{x:n,y:i}}};function kt(e,t){return t&&(J(t)?Array.prototype.push.apply(e,t):e.push(t)),e}function Rt(e){return(typeof e=="string"||e instanceof String)&&e.indexOf(` -`)>-1?e.split(` -`):e}function Jf(e,t){const{element:n,datasetIndex:i,index:s}=t,o=e.getDatasetMeta(i).controller,{label:r,value:a}=o.getLabelAndValue(s);return{chart:e,label:r,parsed:o.getParsed(s),raw:e.data.datasets[i].data[s],formattedValue:a,dataset:o.getDataset(),dataIndex:s,datasetIndex:i,element:n}}function jo(e,t){const n=e.chart.ctx,{body:i,footer:s,title:o}=e,{boxWidth:r,boxHeight:a}=t,l=at(t.bodyFont),c=at(t.titleFont),h=at(t.footerFont),u=o.length,d=s.length,f=i.length,g=_t(t.padding);let m=g.height,p=0,b=i.reduce((_,y)=>_+y.before.length+y.lines.length+y.after.length,0);if(b+=e.beforeBody.length+e.afterBody.length,u&&(m+=u*c.lineHeight+(u-1)*t.titleSpacing+t.titleMarginBottom),b){const _=t.displayColors?Math.max(a,l.lineHeight):l.lineHeight;m+=f*_+(b-f)*l.lineHeight+(b-1)*t.bodySpacing}d&&(m+=t.footerMarginTop+d*h.lineHeight+(d-1)*t.footerSpacing);let x=0;const v=function(_){p=Math.max(p,n.measureText(_).width+x)};return n.save(),n.font=c.string,W(e.title,v),n.font=l.string,W(e.beforeBody.concat(e.afterBody),v),x=t.displayColors?r+2+t.boxPadding:0,W(i,_=>{W(_.before,v),W(_.lines,v),W(_.after,v)}),x=0,n.font=h.string,W(e.footer,v),n.restore(),p+=g.width,{width:p,height:m}}function Zf(e,t){const{y:n,height:i}=t;return n<i/2?"top":n>e.height-i/2?"bottom":"center"}function Qf(e,t,n,i){const{x:s,width:o}=i,r=n.caretSize+n.caretPadding;if(e==="left"&&s+o+r>t.width||e==="right"&&s-o-r<0)return!0}function tp(e,t,n,i){const{x:s,width:o}=n,{width:r,chartArea:{left:a,right:l}}=e;let c="center";return i==="center"?c=s<=(a+l)/2?"left":"right":s<=o/2?c="left":s>=r-o/2&&(c="right"),Qf(c,e,t,n)&&(c="center"),c}function $o(e,t,n){const i=n.yAlign||t.yAlign||Zf(e,n);return{xAlign:n.xAlign||t.xAlign||tp(e,t,n,i),yAlign:i}}function ep(e,t){let{x:n,width:i}=e;return t==="right"?n-=i:t==="center"&&(n-=i/2),n}function np(e,t,n){let{y:i,height:s}=e;return t==="top"?i+=n:t==="bottom"?i-=s+n:i-=s/2,i}function zo(e,t,n,i){const{caretSize:s,caretPadding:o,cornerRadius:r}=e,{xAlign:a,yAlign:l}=n,c=s+o,{topLeft:h,topRight:u,bottomLeft:d,bottomRight:f}=_e(r);let g=ep(t,a);const m=np(t,l,c);return l==="center"?a==="left"?g+=c:a==="right"&&(g-=c):a==="left"?g-=Math.max(h,d)+s:a==="right"&&(g+=Math.max(u,f)+s),{x:rt(g,0,i.width-t.width),y:rt(m,0,i.height-t.height)}}function Dn(e,t,n){const i=_t(n.padding);return t==="center"?e.x+e.width/2:t==="right"?e.x+e.width-i.right:e.x+i.left}function Bo(e){return kt([],Rt(e))}function ip(e,t,n){return pe(e,{tooltip:t,tooltipItems:n,type:"tooltip"})}function No(e,t){const n=t&&t.dataset&&t.dataset.tooltip&&t.dataset.tooltip.callbacks;return n?e.override(n):e}const Oa={beforeTitle:At,title(e){if(e.length>0){const t=e[0],n=t.chart.data.labels,i=n?n.length:0;if(this&&this.options&&this.options.mode==="dataset")return t.dataset.label||"";if(t.label)return t.label;if(i>0&&t.dataIndex<i)return n[t.dataIndex]}return""},afterTitle:At,beforeBody:At,beforeLabel:At,label(e){if(this&&this.options&&this.options.mode==="dataset")return e.label+": "+e.formattedValue||e.formattedValue;let t=e.dataset.label||"";t&&(t+=": ");const n=e.formattedValue;return V(n)||(t+=n),t},labelColor(e){const n=e.chart.getDatasetMeta(e.datasetIndex).controller.getStyle(e.dataIndex);return{borderColor:n.borderColor,backgroundColor:n.backgroundColor,borderWidth:n.borderWidth,borderDash:n.borderDash,borderDashOffset:n.borderDashOffset,borderRadius:0}},labelTextColor(){return this.options.bodyColor},labelPointStyle(e){const n=e.chart.getDatasetMeta(e.datasetIndex).controller.getStyle(e.dataIndex);return{pointStyle:n.pointStyle,rotation:n.rotation}},afterLabel:At,afterBody:At,beforeFooter:At,footer:At,afterFooter:At};function ct(e,t,n,i){const s=e[t].call(n,i);return typeof s>"u"?Oa[t].call(n,i):s}class Ai extends jt{constructor(t){super(),this.opacity=0,this._active=[],this._eventPosition=void 0,this._size=void 0,this._cachedAnimations=void 0,this._tooltipItems=[],this.$animations=void 0,this.$context=void 0,this.chart=t.chart,this.options=t.options,this.dataPoints=void 0,this.title=void 0,this.beforeBody=void 0,this.body=void 0,this.afterBody=void 0,this.footer=void 0,this.xAlign=void 0,this.yAlign=void 0,this.x=void 0,this.y=void 0,this.height=void 0,this.width=void 0,this.caretX=void 0,this.caretY=void 0,this.labelColors=void 0,this.labelPointStyles=void 0,this.labelTextColors=void 0}initialize(t){this.options=t,this._cachedAnimations=void 0,this.$context=void 0}_resolveAnimations(){const t=this._cachedAnimations;if(t)return t;const n=this.chart,i=this.options.setContext(this.getContext()),s=i.enabled&&n.options.animation&&i.animations,o=new ua(this.chart,s);return s._cacheable&&(this._cachedAnimations=Object.freeze(o)),o}getContext(){return this.$context||(this.$context=ip(this.chart.getContext(),this,this._tooltipItems))}getTitle(t,n){const{callbacks:i}=n,s=ct(i,"beforeTitle",this,t),o=ct(i,"title",this,t),r=ct(i,"afterTitle",this,t);let a=[];return a=kt(a,Rt(s)),a=kt(a,Rt(o)),a=kt(a,Rt(r)),a}getBeforeBody(t,n){return Bo(ct(n.callbacks,"beforeBody",this,t))}getBody(t,n){const{callbacks:i}=n,s=[];return W(t,o=>{const r={before:[],lines:[],after:[]},a=No(i,o);kt(r.before,Rt(ct(a,"beforeLabel",this,o))),kt(r.lines,ct(a,"label",this,o)),kt(r.after,Rt(ct(a,"afterLabel",this,o))),s.push(r)}),s}getAfterBody(t,n){return Bo(ct(n.callbacks,"afterBody",this,t))}getFooter(t,n){const{callbacks:i}=n,s=ct(i,"beforeFooter",this,t),o=ct(i,"footer",this,t),r=ct(i,"afterFooter",this,t);let a=[];return a=kt(a,Rt(s)),a=kt(a,Rt(o)),a=kt(a,Rt(r)),a}_createItems(t){const n=this._active,i=this.chart.data,s=[],o=[],r=[];let a=[],l,c;for(l=0,c=n.length;l<c;++l)a.push(Jf(this.chart,n[l]));return t.filter&&(a=a.filter((h,u,d)=>t.filter(h,u,d,i))),t.itemSort&&(a=a.sort((h,u)=>t.itemSort(h,u,i))),W(a,h=>{const u=No(t.callbacks,h);s.push(ct(u,"labelColor",this,h)),o.push(ct(u,"labelPointStyle",this,h)),r.push(ct(u,"labelTextColor",this,h))}),this.labelColors=s,this.labelPointStyles=o,this.labelTextColors=r,this.dataPoints=a,a}update(t,n){const i=this.options.setContext(this.getContext()),s=this._active;let o,r=[];if(!s.length)this.opacity!==0&&(o={opacity:0});else{const a=He[i.position].call(this,s,this._eventPosition);r=this._createItems(i),this.title=this.getTitle(r,i),this.beforeBody=this.getBeforeBody(r,i),this.body=this.getBody(r,i),this.afterBody=this.getAfterBody(r,i),this.footer=this.getFooter(r,i);const l=this._size=jo(this,i),c=Object.assign({},a,l),h=$o(this.chart,i,c),u=zo(i,c,h,this.chart);this.xAlign=h.xAlign,this.yAlign=h.yAlign,o={opacity:1,x:u.x,y:u.y,width:l.width,height:l.height,caretX:a.x,caretY:a.y}}this._tooltipItems=r,this.$context=void 0,o&&this._resolveAnimations().update(this,o),t&&i.external&&i.external.call(this,{chart:this.chart,tooltip:this,replay:n})}drawCaret(t,n,i,s){const o=this.getCaretPosition(t,i,s);n.lineTo(o.x1,o.y1),n.lineTo(o.x2,o.y2),n.lineTo(o.x3,o.y3)}getCaretPosition(t,n,i){const{xAlign:s,yAlign:o}=this,{caretSize:r,cornerRadius:a}=i,{topLeft:l,topRight:c,bottomLeft:h,bottomRight:u}=_e(a),{x:d,y:f}=t,{width:g,height:m}=n;let p,b,x,v,_,y;return o==="center"?(_=f+m/2,s==="left"?(p=d,b=p-r,v=_+r,y=_-r):(p=d+g,b=p+r,v=_-r,y=_+r),x=p):(s==="left"?b=d+Math.max(l,h)+r:s==="right"?b=d+g-Math.max(c,u)-r:b=this.caretX,o==="top"?(v=f,_=v-r,p=b-r,x=b+r):(v=f+m,_=v+r,p=b+r,x=b-r),y=v),{x1:p,x2:b,x3:x,y1:v,y2:_,y3:y}}drawTitle(t,n,i){const s=this.title,o=s.length;let r,a,l;if(o){const c=we(i.rtl,this.x,this.width);for(t.x=Dn(this,i.titleAlign,i),n.textAlign=c.textAlign(i.titleAlign),n.textBaseline="middle",r=at(i.titleFont),a=i.titleSpacing,n.fillStyle=i.titleColor,n.font=r.string,l=0;l<o;++l)n.fillText(s[l],c.x(t.x),t.y+r.lineHeight/2),t.y+=r.lineHeight+a,l+1===o&&(t.y+=i.titleMarginBottom-a)}}_drawColorBox(t,n,i,s,o){const r=this.labelColors[i],a=this.labelPointStyles[i],{boxHeight:l,boxWidth:c}=o,h=at(o.bodyFont),u=Dn(this,"left",o),d=s.x(u),f=l<h.lineHeight?(h.lineHeight-l)/2:0,g=n.y+f;if(o.usePointStyle){const m={radius:Math.min(c,l)/2,pointStyle:a.pointStyle,rotation:a.rotation,borderWidth:1},p=s.leftForLtr(d,c)+c/2,b=g+l/2;t.strokeStyle=o.multiKeyBackground,t.fillStyle=o.multiKeyBackground,Pi(t,m,p,b),t.strokeStyle=r.borderColor,t.fillStyle=r.backgroundColor,Pi(t,m,p,b)}else{t.lineWidth=z(r.borderWidth)?Math.max(...Object.values(r.borderWidth)):r.borderWidth||1,t.strokeStyle=r.borderColor,t.setLineDash(r.borderDash||[]),t.lineDashOffset=r.borderDashOffset||0;const m=s.leftForLtr(d,c),p=s.leftForLtr(s.xPlus(d,1),c-2),b=_e(r.borderRadius);Object.values(b).some(x=>x!==0)?(t.beginPath(),t.fillStyle=o.multiKeyBackground,zn(t,{x:m,y:g,w:c,h:l,radius:b}),t.fill(),t.stroke(),t.fillStyle=r.backgroundColor,t.beginPath(),zn(t,{x:p,y:g+1,w:c-2,h:l-2,radius:b}),t.fill()):(t.fillStyle=o.multiKeyBackground,t.fillRect(m,g,c,l),t.strokeRect(m,g,c,l),t.fillStyle=r.backgroundColor,t.fillRect(p,g+1,c-2,l-2))}t.fillStyle=this.labelTextColors[i]}drawBody(t,n,i){const{body:s}=this,{bodySpacing:o,bodyAlign:r,displayColors:a,boxHeight:l,boxWidth:c,boxPadding:h}=i,u=at(i.bodyFont);let d=u.lineHeight,f=0;const g=we(i.rtl,this.x,this.width),m=function(S){n.fillText(S,g.x(t.x+f),t.y+d/2),t.y+=d+o},p=g.textAlign(r);let b,x,v,_,y,w,k;for(n.textAlign=r,n.textBaseline="middle",n.font=u.string,t.x=Dn(this,p,i),n.fillStyle=i.bodyColor,W(this.beforeBody,m),f=a&&p!=="right"?r==="center"?c/2+h:c+2+h:0,_=0,w=s.length;_<w;++_){for(b=s[_],x=this.labelTextColors[_],n.fillStyle=x,W(b.before,m),v=b.lines,a&&v.length&&(this._drawColorBox(n,t,_,g,i),d=Math.max(u.lineHeight,l)),y=0,k=v.length;y<k;++y)m(v[y]),d=u.lineHeight;W(b.after,m)}f=0,d=u.lineHeight,W(this.afterBody,m),t.y-=o}drawFooter(t,n,i){const s=this.footer,o=s.length;let r,a;if(o){const l=we(i.rtl,this.x,this.width);for(t.x=Dn(this,i.footerAlign,i),t.y+=i.footerMarginTop,n.textAlign=l.textAlign(i.footerAlign),n.textBaseline="middle",r=at(i.footerFont),n.fillStyle=i.footerColor,n.font=r.string,a=0;a<o;++a)n.fillText(s[a],l.x(t.x),t.y+r.lineHeight/2),t.y+=r.lineHeight+i.footerSpacing}}drawBackground(t,n,i,s){const{xAlign:o,yAlign:r}=this,{x:a,y:l}=t,{width:c,height:h}=i,{topLeft:u,topRight:d,bottomLeft:f,bottomRight:g}=_e(s.cornerRadius);n.fillStyle=s.backgroundColor,n.strokeStyle=s.borderColor,n.lineWidth=s.borderWidth,n.beginPath(),n.moveTo(a+u,l),r==="top"&&this.drawCaret(t,n,i,s),n.lineTo(a+c-d,l),n.quadraticCurveTo(a+c,l,a+c,l+d),r==="center"&&o==="right"&&this.drawCaret(t,n,i,s),n.lineTo(a+c,l+h-g),n.quadraticCurveTo(a+c,l+h,a+c-g,l+h),r==="bottom"&&this.drawCaret(t,n,i,s),n.lineTo(a+f,l+h),n.quadraticCurveTo(a,l+h,a,l+h-f),r==="center"&&o==="left"&&this.drawCaret(t,n,i,s),n.lineTo(a,l+u),n.quadraticCurveTo(a,l,a+u,l),n.closePath(),n.fill(),s.borderWidth>0&&n.stroke()}_updateAnimationTarget(t){const n=this.chart,i=this.$animations,s=i&&i.x,o=i&&i.y;if(s||o){const r=He[t.position].call(this,this._active,this._eventPosition);if(!r)return;const a=this._size=jo(this,t),l=Object.assign({},r,this._size),c=$o(n,t,l),h=zo(t,l,c,n);(s._to!==h.x||o._to!==h.y)&&(this.xAlign=c.xAlign,this.yAlign=c.yAlign,this.width=a.width,this.height=a.height,this.caretX=r.x,this.caretY=r.y,this._resolveAnimations().update(this,h))}}_willRender(){return!!this.opacity}draw(t){const n=this.options.setContext(this.getContext());let i=this.opacity;if(!i)return;this._updateAnimationTarget(n);const s={width:this.width,height:this.height},o={x:this.x,y:this.y};i=Math.abs(i)<.001?0:i;const r=_t(n.padding),a=this.title.length||this.beforeBody.length||this.body.length||this.afterBody.length||this.footer.length;n.enabled&&a&&(t.save(),t.globalAlpha=i,this.drawBackground(o,t,s,n),la(t,n.textDirection),o.y+=r.top,this.drawTitle(o,t,n),this.drawBody(o,t,n),this.drawFooter(o,t,n),ca(t,n.textDirection),t.restore())}getActiveElements(){return this._active||[]}setActiveElements(t,n){const i=this._active,s=t.map(({datasetIndex:a,index:l})=>{const c=this.chart.getDatasetMeta(a);if(!c)throw new Error("Cannot find a dataset at index "+a);return{datasetIndex:a,element:c.data[l],index:l}}),o=!In(i,s),r=this._positionChanged(s,n);(o||r)&&(this._active=s,this._eventPosition=n,this._ignoreReplayEvents=!0,this.update(!0))}handleEvent(t,n,i=!0){if(n&&this._ignoreReplayEvents)return!1;this._ignoreReplayEvents=!1;const s=this.options,o=this._active||[],r=this._getActiveElements(t,o,n,i),a=this._positionChanged(r,t),l=n||!In(r,o)||a;return l&&(this._active=r,(s.enabled||s.external)&&(this._eventPosition={x:t.x,y:t.y},this.update(!0,n))),l}_getActiveElements(t,n,i,s){const o=this.options;if(t.type==="mouseout")return[];if(!s)return n.filter(a=>this.chart.data.datasets[a.datasetIndex]&&this.chart.getDatasetMeta(a.datasetIndex).controller.getParsed(a.index)!==void 0);const r=this.chart.getElementsAtEventForMode(t,o.mode,o,i);return o.reverse&&r.reverse(),r}_positionChanged(t,n){const{caretX:i,caretY:s,options:o}=this,r=He[o.position].call(this,t,n);return r!==!1&&(i!==r.x||s!==r.y)}}R(Ai,"positioners",He);var Eg={id:"tooltip",_element:Ai,positioners:He,afterInit(e,t,n){n&&(e.tooltip=new Ai({chart:e,options:n}))},beforeUpdate(e,t,n){e.tooltip&&e.tooltip.initialize(n)},reset(e,t,n){e.tooltip&&e.tooltip.initialize(n)},afterDraw(e){const t=e.tooltip;if(t&&t._willRender()){const n={tooltip:t};if(e.notifyPlugins("beforeTooltipDraw",{...n,cancelable:!0})===!1)return;t.draw(e.ctx),e.notifyPlugins("afterTooltipDraw",n)}},afterEvent(e,t){if(e.tooltip){const n=t.replay;e.tooltip.handleEvent(t.event,n,t.inChartArea)&&(t.changed=!0)}},defaults:{enabled:!0,external:null,position:"average",backgroundColor:"rgba(0,0,0,0.8)",titleColor:"#fff",titleFont:{weight:"bold"},titleSpacing:2,titleMarginBottom:6,titleAlign:"left",bodyColor:"#fff",bodySpacing:2,bodyFont:{},bodyAlign:"left",footerColor:"#fff",footerSpacing:2,footerMarginTop:6,footerFont:{weight:"bold"},footerAlign:"left",padding:6,caretPadding:2,caretSize:5,cornerRadius:6,boxHeight:(e,t)=>t.bodyFont.size,boxWidth:(e,t)=>t.bodyFont.size,multiKeyBackground:"#fff",displayColors:!0,boxPadding:0,borderColor:"rgba(0,0,0,0)",borderWidth:0,animation:{duration:400,easing:"easeOutQuart"},animations:{numbers:{type:"number",properties:["x","y","width","height","caretX","caretY"]},opacity:{easing:"linear",duration:200}},callbacks:Oa},defaultRoutes:{bodyFont:"font",footerFont:"font",titleFont:"font"},descriptors:{_scriptable:e=>e!=="filter"&&e!=="itemSort"&&e!=="external",_indexable:!1,callbacks:{_scriptable:!1,_indexable:!1},animation:{_fallback:!1},animations:{_fallback:"animation"}},additionalOptionScopes:["interaction"]};const sp=(e,t,n,i)=>(typeof t=="string"?(n=e.push(t)-1,i.unshift({index:n,label:t})):isNaN(t)&&(n=null),n);function op(e,t,n,i){const s=e.indexOf(t);if(s===-1)return sp(e,t,n,i);const o=e.lastIndexOf(t);return s!==o?n:s}const rp=(e,t)=>e===null?null:rt(Math.round(e),0,t);function Ho(e){const t=this.getLabels();return e>=0&&e<t.length?t[e]:e}class Wo extends Ae{constructor(t){super(t),this._startValue=void 0,this._valueRange=0,this._addedLabels=[]}init(t){const n=this._addedLabels;if(n.length){const i=this.getLabels();for(const{index:s,label:o}of n)i[s]===o&&i.splice(s,1);this._addedLabels=[]}super.init(t)}parse(t,n){if(V(t))return null;const i=this.getLabels();return n=isFinite(n)&&i[n]===t?n:op(i,t,j(n,t),this._addedLabels),rp(n,i.length-1)}determineDataLimits(){const{minDefined:t,maxDefined:n}=this.getUserBounds();let{min:i,max:s}=this.getMinMax(!0);this.options.bounds==="ticks"&&(t||(i=0),n||(s=this.getLabels().length-1)),this.min=i,this.max=s}buildTicks(){const t=this.min,n=this.max,i=this.options.offset,s=[];let o=this.getLabels();o=t===0&&n===o.length-1?o:o.slice(t,n+1),this._valueRange=Math.max(o.length-(i?0:1),1),this._startValue=this.min-(i?.5:0);for(let r=t;r<=n;r++)s.push({value:r});return s}getLabelForValue(t){return Ho.call(this,t)}configure(){super.configure(),this.isHorizontal()||(this._reversePixels=!this._reversePixels)}getPixelForValue(t){return typeof t!="number"&&(t=this.parse(t)),t===null?NaN:this.getPixelForDecimal((t-this._startValue)/this._valueRange)}getPixelForTick(t){const n=this.ticks;return t<0||t>n.length-1?null:this.getPixelForValue(n[t].value)}getValueForPixel(t){return Math.round(this._startValue+this.getDecimalForPixel(t)*this._valueRange)}getBasePixel(){return this.bottom}}R(Wo,"id","category"),R(Wo,"defaults",{ticks:{callback:Ho}});function ap(e,t){const n=[],{bounds:s,step:o,min:r,max:a,precision:l,count:c,maxTicks:h,maxDigits:u,includeBounds:d}=e,f=o||1,g=h-1,{min:m,max:p}=t,b=!V(r),x=!V(a),v=!V(c),_=(p-m)/(u+1);let y=Ws((p-m)/g/f)*f,w,k,S,C;if(y<1e-14&&!b&&!x)return[{value:m},{value:p}];C=Math.ceil(p/y)-Math.floor(m/y),C>g&&(y=Ws(C*y/g/f)*f),V(l)||(w=Math.pow(10,l),y=Math.ceil(y*w)/w),s==="ticks"?(k=Math.floor(m/y)*y,S=Math.ceil(p/y)*y):(k=m,S=p),b&&x&&o&&Rh((a-r)/o,y/1e3)?(C=Math.round(Math.min((a-r)/y,h)),y=(a-r)/C,k=r,S=a):v?(k=b?r:k,S=x?a:S,C=c-1,y=(S-k)/C):(C=(S-k)/y,Xe(C,Math.round(C),y/1e3)?C=Math.round(C):C=Math.ceil(C));const D=Math.max(Vs(y),Vs(k));w=Math.pow(10,V(l)?D:l),k=Math.round(k*w)/w,S=Math.round(S*w)/w;let P=0;for(b&&(d&&k!==r?(n.push({value:r}),k<r&&P++,Xe(Math.round((k+P*y)*w)/w,r,Vo(r,_,e))&&P++):k<r&&P++);P<C;++P){const O=Math.round((k+P*y)*w)/w;if(x&&O>a)break;n.push({value:O})}return x&&d&&S!==a?n.length&&Xe(n[n.length-1].value,a,Vo(a,_,e))?n[n.length-1].value=a:n.push({value:a}):(!x||S===a)&&n.push({value:S}),n}function Vo(e,t,{horizontal:n,minRotation:i}){const s=ae(i),o=(n?Math.sin(s):Math.cos(s))||.001,r=.75*t*(""+e).length;return Math.min(t/o,r)}class lp extends Ae{constructor(t){super(t),this.start=void 0,this.end=void 0,this._startValue=void 0,this._endValue=void 0,this._valueRange=0}parse(t,n){return V(t)||(typeof t=="number"||t instanceof Number)&&!isFinite(+t)?null:+t}handleTickRangeOptions(){const{beginAtZero:t}=this.options,{minDefined:n,maxDefined:i}=this.getUserBounds();let{min:s,max:o}=this;const r=l=>s=n?s:l,a=l=>o=i?o:l;if(t){const l=Dt(s),c=Dt(o);l<0&&c<0?a(0):l>0&&c>0&&r(0)}if(s===o){let l=o===0?1:Math.abs(o*.05);a(o+l),t||r(s-l)}this.min=s,this.max=o}getTickLimit(){const t=this.options.ticks;let{maxTicksLimit:n,stepSize:i}=t,s;return i?(s=Math.ceil(this.max/i)-Math.floor(this.min/i)+1,s>1e3&&(console.warn(`scales.${this.id}.ticks.stepSize: ${i} would result generating up to ${s} ticks. Limiting to 1000.`),s=1e3)):(s=this.computeTickLimit(),n=n||11),n&&(s=Math.min(n,s)),s}computeTickLimit(){return Number.POSITIVE_INFINITY}buildTicks(){const t=this.options,n=t.ticks;let i=this.getTickLimit();i=Math.max(2,i);const s={maxTicks:i,bounds:t.bounds,min:t.min,max:t.max,precision:n.precision,step:n.stepSize,count:n.count,maxDigits:this._maxDigits(),horizontal:this.isHorizontal(),minRotation:n.minRotation||0,includeBounds:n.includeBounds!==!1},o=this._range||this,r=ap(s,o);return t.bounds==="ticks"&&Lh(r,this,"value"),t.reverse?(r.reverse(),this.start=this.max,this.end=this.min):(this.start=this.min,this.end=this.max),r}configure(){const t=this.ticks;let n=this.min,i=this.max;if(super.configure(),this.options.offset&&t.length){const s=(i-n)/Math.max(t.length-1,1)/2;n-=s,i+=s}this._startValue=n,this._endValue=i,this._valueRange=i-n}getLabelForValue(t){return Zr(t,this.chart.options.locale,this.options.ticks.format)}}class Yo extends lp{determineDataLimits(){const{min:t,max:n}=this.getMinMax(!0);this.min=vt(t)?t:0,this.max=vt(n)?n:1,this.handleTickRangeOptions()}computeTickLimit(){const t=this.isHorizontal(),n=t?this.width:this.height,i=ae(this.options.ticks.minRotation),s=(t?Math.sin(i):Math.cos(i))||.001,o=this._resolveTickFontOptions(0);return Math.ceil(n/Math.min(40,o.lineHeight/s))}getPixelForValue(t){return t===null?NaN:this.getPixelForDecimal((t-this._startValue)/this._valueRange)}getValueForPixel(t){return this._startValue+this.getDecimalForPixel(t)*this._valueRange}}R(Yo,"id","linear"),R(Yo,"defaults",{ticks:{callback:ta.formatters.numeric}});const Kn={millisecond:{common:!0,size:1,steps:1e3},second:{common:!0,size:1e3,steps:60},minute:{common:!0,size:6e4,steps:60},hour:{common:!0,size:36e5,steps:24},day:{common:!0,size:864e5,steps:30},week:{common:!1,size:6048e5,steps:4},month:{common:!0,size:2628e6,steps:12},quarter:{common:!1,size:7884e6,steps:4},year:{common:!0,size:3154e7}},ht=Object.keys(Kn);function Uo(e,t){return e-t}function Xo(e,t){if(V(t))return null;const n=e._adapter,{parser:i,round:s,isoWeekday:o}=e._parseOpts;let r=t;return typeof i=="function"&&(r=i(r)),vt(r)||(r=typeof i=="string"?n.parse(r,i):n.parse(r)),r===null?null:(s&&(r=s==="week"&&(en(o)||o===!0)?n.startOf(r,"isoWeek",o):n.startOf(r,s)),+r)}function qo(e,t,n,i){const s=ht.length;for(let o=ht.indexOf(e);o<s-1;++o){const r=Kn[ht[o]],a=r.steps?r.steps:Number.MAX_SAFE_INTEGER;if(r.common&&Math.ceil((n-t)/(a*r.size))<=i)return ht[o]}return ht[s-1]}function cp(e,t,n,i,s){for(let o=ht.length-1;o>=ht.indexOf(n);o--){const r=ht[o];if(Kn[r].common&&e._adapter.diff(s,i,r)>=t-1)return r}return ht[n?ht.indexOf(n):0]}function hp(e){for(let t=ht.indexOf(e)+1,n=ht.length;t<n;++t)if(Kn[ht[t]].common)return ht[t]}function Ko(e,t,n){if(!n)e[t]=!0;else if(n.length){const{lo:i,hi:s}=qi(n,t),o=n[i]>=t?n[i]:n[s];e[o]=!0}}function up(e,t,n,i){const s=e._adapter,o=+s.startOf(t[0].value,i),r=t[t.length-1].value;let a,l;for(a=o;a<=r;a=+s.add(a,1,i))l=n[a],l>=0&&(t[l].major=!0);return t}function Go(e,t,n){const i=[],s={},o=t.length;let r,a;for(r=0;r<o;++r)a=t[r],s[a]=r,i.push({value:a,major:!1});return o===0||!n?i:up(e,i,s,n)}class Wn extends Ae{constructor(t){super(t),this._cache={data:[],labels:[],all:[]},this._unit="day",this._majorUnit=void 0,this._offsets={},this._normalized=!1,this._parseOpts=void 0}init(t,n={}){const i=t.time||(t.time={}),s=this._adapter=new gd._date(t.adapters.date);s.init(n),Ue(i.displayFormats,s.formats()),this._parseOpts={parser:i.parser,round:i.round,isoWeekday:i.isoWeekday},super.init(t),this._normalized=n.normalized}parse(t,n){return t===void 0?null:Xo(this,t)}beforeLayout(){super.beforeLayout(),this._cache={data:[],labels:[],all:[]}}determineDataLimits(){const t=this.options,n=this._adapter,i=t.time.unit||"day";let{min:s,max:o,minDefined:r,maxDefined:a}=this.getUserBounds();function l(c){!r&&!isNaN(c.min)&&(s=Math.min(s,c.min)),!a&&!isNaN(c.max)&&(o=Math.max(o,c.max))}(!r||!a)&&(l(this._getLabelBounds()),(t.bounds!=="ticks"||t.ticks.source!=="labels")&&l(this.getMinMax(!1))),s=vt(s)&&!isNaN(s)?s:+n.startOf(Date.now(),i),o=vt(o)&&!isNaN(o)?o:+n.endOf(Date.now(),i)+1,this.min=Math.min(s,o-1),this.max=Math.max(s+1,o)}_getLabelBounds(){const t=this.getLabelTimestamps();let n=Number.POSITIVE_INFINITY,i=Number.NEGATIVE_INFINITY;return t.length&&(n=t[0],i=t[t.length-1]),{min:n,max:i}}buildTicks(){const t=this.options,n=t.time,i=t.ticks,s=i.source==="labels"?this.getLabelTimestamps():this._generate();t.bounds==="ticks"&&s.length&&(this.min=this._userMin||s[0],this.max=this._userMax||s[s.length-1]);const o=this.min,r=this.max,a=zh(s,o,r);return this._unit=n.unit||(i.autoSkip?qo(n.minUnit,this.min,this.max,this._getLabelCapacity(o)):cp(this,a.length,n.minUnit,this.min,this.max)),this._majorUnit=!i.major.enabled||this._unit==="year"?void 0:hp(this._unit),this.initOffsets(s),t.reverse&&a.reverse(),Go(this,a,this._majorUnit)}afterAutoSkip(){this.options.offsetAfterAutoskip&&this.initOffsets(this.ticks.map(t=>+t.value))}initOffsets(t=[]){let n=0,i=0,s,o;this.options.offset&&t.length&&(s=this.getDecimalForValue(t[0]),t.length===1?n=1-s:n=(this.getDecimalForValue(t[1])-s)/2,o=this.getDecimalForValue(t[t.length-1]),t.length===1?i=o:i=(o-this.getDecimalForValue(t[t.length-2]))/2);const r=t.length<3?.5:.25;n=rt(n,0,r),i=rt(i,0,r),this._offsets={start:n,end:i,factor:1/(n+1+i)}}_generate(){const t=this._adapter,n=this.min,i=this.max,s=this.options,o=s.time,r=o.unit||qo(o.minUnit,n,i,this._getLabelCapacity(n)),a=j(s.ticks.stepSize,1),l=r==="week"?o.isoWeekday:!1,c=en(l)||l===!0,h={};let u=n,d,f;if(c&&(u=+t.startOf(u,"isoWeek",l)),u=+t.startOf(u,c?"day":r),t.diff(i,n,r)>1e5*a)throw new Error(n+" and "+i+" are too far apart with stepSize of "+a+" "+r);const g=s.ticks.source==="data"&&this.getDataTimestamps();for(d=u,f=0;d<i;d=+t.add(d,a,r),f++)Ko(h,d,g);return(d===i||s.bounds==="ticks"||f===1)&&Ko(h,d,g),Object.keys(h).sort(Uo).map(m=>+m)}getLabelForValue(t){const n=this._adapter,i=this.options.time;return i.tooltipFormat?n.format(t,i.tooltipFormat):n.format(t,i.displayFormats.datetime)}format(t,n){const s=this.options.time.displayFormats,o=this._unit,r=n||s[o];return this._adapter.format(t,r)}_tickFormatFunction(t,n,i,s){const o=this.options,r=o.ticks.callback;if(r)return Y(r,[t,n,i],this);const a=o.time.displayFormats,l=this._unit,c=this._majorUnit,h=l&&a[l],u=c&&a[c],d=i[n],f=c&&u&&d&&d.major;return this._adapter.format(t,s||(f?u:h))}generateTickLabels(t){let n,i,s;for(n=0,i=t.length;n<i;++n)s=t[n],s.label=this._tickFormatFunction(s.value,n,t)}getDecimalForValue(t){return t===null?NaN:(t-this.min)/(this.max-this.min)}getPixelForValue(t){const n=this._offsets,i=this.getDecimalForValue(t);return this.getPixelForDecimal((n.start+i)*n.factor)}getValueForPixel(t){const n=this._offsets,i=this.getDecimalForPixel(t)/n.factor-n.end;return this.min+i*(this.max-this.min)}_getLabelSize(t){const n=this.options.ticks,i=this.ctx.measureText(t).width,s=ae(this.isHorizontal()?n.maxRotation:n.minRotation),o=Math.cos(s),r=Math.sin(s),a=this._resolveTickFontOptions(0).size;return{w:i*o+a*r,h:i*r+a*o}}_getLabelCapacity(t){const n=this.options.time,i=n.displayFormats,s=i[n.unit]||i.millisecond,o=this._tickFormatFunction(t,0,Go(this,[t],this._majorUnit),s),r=this._getLabelSize(o),a=Math.floor(this.isHorizontal()?this.width/r.w:this.height/r.h)-1;return a>0?a:1}getDataTimestamps(){let t=this._cache.data||[],n,i;if(t.length)return t;const s=this.getMatchingVisibleMetas();if(this._normalized&&s.length)return this._cache.data=s[0].controller.getAllParsedValues(this);for(n=0,i=s.length;n<i;++n)t=t.concat(s[n].controller.getAllParsedValues(this));return this._cache.data=this.normalize(t)}getLabelTimestamps(){const t=this._cache.labels||[];let n,i;if(t.length)return t;const s=this.getLabels();for(n=0,i=s.length;n<i;++n)t.push(Xo(this,s[n]));return this._cache.labels=this._normalized?t:this.normalize(t)}normalize(t){return Kr(t.sort(Uo))}}R(Wn,"id","time"),R(Wn,"defaults",{bounds:"data",adapters:{},time:{parser:!1,unit:!1,round:!1,isoWeekday:!1,minUnit:"millisecond",displayFormats:{}},ticks:{source:"auto",callback:!1,major:{enabled:!1}}});function En(e,t,n){let i=0,s=e.length-1,o,r,a,l;n?(t>=e[i].pos&&t<=e[s].pos&&({lo:i,hi:s}=le(e,"pos",t)),{pos:o,time:a}=e[i],{pos:r,time:l}=e[s]):(t>=e[i].time&&t<=e[s].time&&({lo:i,hi:s}=le(e,"time",t)),{time:o,pos:a}=e[i],{time:r,pos:l}=e[s]);const c=r-o;return c?a+(l-a)*(t-o)/c:a}class Jo extends Wn{constructor(t){super(t),this._table=[],this._minPos=void 0,this._tableRange=void 0}initOffsets(){const t=this._getTimestampsForTable(),n=this._table=this.buildLookupTable(t);this._minPos=En(n,this.min),this._tableRange=En(n,this.max)-this._minPos,super.initOffsets(t)}buildLookupTable(t){const{min:n,max:i}=this,s=[],o=[];let r,a,l,c,h;for(r=0,a=t.length;r<a;++r)c=t[r],c>=n&&c<=i&&s.push(c);if(s.length<2)return[{time:n,pos:0},{time:i,pos:1}];for(r=0,a=s.length;r<a;++r)h=s[r+1],l=s[r-1],c=s[r],Math.round((h+l)/2)!==c&&o.push({time:c,pos:r/(a-1)});return o}_generate(){const t=this.min,n=this.max;let i=super.getDataTimestamps();return(!i.includes(t)||!i.length)&&i.splice(0,0,t),(!i.includes(n)||i.length===1)&&i.push(n),i.sort((s,o)=>s-o)}_getTimestampsForTable(){let t=this._cache.all||[];if(t.length)return t;const n=this.getDataTimestamps(),i=this.getLabelTimestamps();return n.length&&i.length?t=this.normalize(n.concat(i)):t=n.length?n:i,t=this._cache.all=t,t}getDecimalForValue(t){return(En(this._table,t)-this._minPos)/this._tableRange}getValueForPixel(t){const n=this._offsets,i=this.getDecimalForPixel(t)/n.factor-n.end;return En(this._table,i*this._tableRange+this._minPos,!0)}}R(Jo,"id","timeseries"),R(Jo,"defaults",Wn.defaults);var ie={},Zo;function dp(){if(Zo)return ie;Zo=1,Object.defineProperty(ie,"__esModule",{value:!0}),ie.cartesianProductGenerator=ie.cartesianProduct=void 0;function e(...i){if(!Array.isArray(i))throw new TypeError("Please, send an array.");const[s,o,...r]=i,a=n(s,o);return r.length?e(a,...r):a}ie.cartesianProduct=e;function*t(...i){if(!Array.isArray(i))throw new TypeError("Please, send an array.");const[s,o,...r]=i,a=n(s,o);yield a,r.length&&(yield*t(a,...r))}ie.cartesianProductGenerator=t;function n(i,s){const o=[];for(let r=0;r<i.length;r++){if(!s){o.push([i[r]]);continue}for(let a=0;a<s.length;a++)Array.isArray(i[r])?o.push([...i[r],s[a]]):o.push([i[r],s[a]])}return o}return ie}var rs=dp();const fp=function(e){let t=0;for(let i=0;i<e.length;i++)t=e.charCodeAt(i)+((t<<5)-t);let n="#";for(let i=0;i<3;i++){const o="00"+(t>>i*8&255).toString(16);n+=o.substring(o.length-2)}return n};function Ag(e,t=(n,i)=>{}){const n=new Map;for(const[i,s]of e){const o=new Map;for(const[r,a]of s){const l=new Map;for(const[c,h]of a){const u=t(r,h);if(u){l.set(c,{tooltip:u});continue}l.set(c,{})}o.set(r,l)}n.set(i,o)}return n}function Tg(e){const t=new Map;return e.forEach(n=>{const i=t.get(n.nren);(!i||i.year<n.year)&&t.set(n.nren,n)}),Array.from(t.values())}function Rg(e){return e.match(/^[a-zA-Z]+:\/\//)?e:"https://"+e}const Lg=e=>{const t={};return!e.urls&&!e.url||(e.urls&&e.urls.forEach(n=>{t[n]=n}),e.url&&(t[e.url]=e.url)),t};function Fg(e){const t=new Map;return e.forEach(n=>{let i=t.get(n.nren);i||(i=new Map);let s=i.get(n.year);s||(s=[]),s.push(n),i.set(n.year,s),t.set(n.nren,i)}),t}function Te(e){const t=new Map;return e.forEach(n=>{let i=t.get(n.nren);i||(i=new Map),i.set(n.year,n),t.set(n.nren,i)}),t}function Ig(e,t){const n=new Map;return e.forEach((i,s)=>{const o=new Map;Array.from(i.keys()).sort((a,l)=>l-a).forEach(a=>{const l=i.get(a),c=o.get(a)||{};t(c,l),Object.keys(c).length>0&&o.set(a,c)}),n.set(s,o)}),n}function jg(e,t,n=!1){const i=new Map;return e.forEach(s=>{const o=a=>{let l=i.get(s.nren);l||(l=new Map);let c=l.get(a);c||(c=new Map),c.set(s.year,s),l.set(a,c),i.set(s.nren,l)};let r=s[t];typeof r=="boolean"&&(r=r?"True":"False"),n&&r==null&&(r=`${r}`),Array.isArray(r)?r.forEach(o):o(r)}),i}function $g(e,t,n,i=!0,s){const o=new Map,r=(a,l,c)=>{a.forEach(h=>{let u=l?h[l]:c;typeof u=="boolean"&&(u=u?"True":"False");const d=h.nren,f=h.year,g=o.get(d)||new Map,m=g.get(f)||new Map,p=m.get(u)||{},b=h[c];if(b==null)return;const x=i?b:c,v=p[x]||{};v[`${b}`]=b,p[x]=v,m.set(u,p),g.set(f,m),o.set(d,g)})};if(n)for(const a of t)r(e,n,a);else for(const a of t)r(e,void 0,a);return o}const zg=e=>{function t(){const u=(f,g,m)=>"#"+[f,g,m].map(p=>{const b=p.toString(16);return b.length===1?"0"+b:b}).join(""),d=new Map;return d.set("client_institutions",u(157,40,114)),d.set("commercial",u(241,224,79)),d.set("european_funding",u(219,42,76)),d.set("gov_public_bodies",u(237,141,24)),d.set("other",u(137,166,121)),d}const n=Te(e),i=t(),s=[...new Set(e.map(u=>u.year))].sort(),o=[...new Set(e.map(u=>u.nren))].sort(),r={client_institutions:"Client Institutions",commercial:"Commercial",european_funding:"European Funding",gov_public_bodies:"Government/Public Bodies",other:"Other"},a=Object.keys(r),l=rs.cartesianProduct(Object.keys(r),s).reduce((u,[d,f])=>{const g=`${d},${f}`;return u[g]={},u},{});return n.forEach((u,d)=>{u.forEach((f,g)=>{const m=a.map(b=>f[b]||0);if(m.reduce((b,x)=>b+x,0)!==0)for(const b of a){const x=`${b},${g}`,v=a.indexOf(b);l[x][d]=m[v]}})}),{datasets:Array.from(Object.entries(l)).map(([u,d])=>{const[f,g]=u.split(",");return{backgroundColor:i.get(f)||"black",label:r[f]+" ("+g+")",data:o.map(p=>d[p]),stack:g,borderSkipped:!0,barPercentage:.8,borderWidth:.5,categoryPercentage:.8,hidden:!1,datalabels:{display:f==a[0],formatter:function(p,b){return b.dataset.stack},font:{family:'"Open Sans", sans-serif',size:16,weight:"700"},anchor:"start",align:"end",offset:function(p){return p.chart.chartArea.width}}}}),labels:o.map(u=>u.toString())}};function Bg(e,t){const n=[...new Set(e.map(r=>r.year))].sort(),i=[...new Set(e.map(r=>r.nren))].sort(),s=Te(e);return{datasets:i.map(r=>{const a=fp(r);return{backgroundColor:a,borderColor:a,data:n.map(l=>{const c=s.get(r);if(!c)return null;const h=c.get(l);return h?h[t]:null}),label:r,hidden:!1}}),labels:n.map(r=>r.toString())}}const Ng=(e,t,n)=>{let i;t?i=["Technical FTE","Non-technical FTE"]:i=["Permanent FTE","Subcontracted FTE"];const s={"Technical FTE":"technical_fte","Non-technical FTE":"non_technical_fte","Permanent FTE":"permanent_fte","Subcontracted FTE":"subcontracted_fte"},[o,r]=i,[a,l]=[s[o],s[r]];function c(p){const b=p[a],x=p[l],v=b+x,_=(b/v||0)*100,y=(x/v||0)*100,w={};return w[o]=Math.round(Math.floor(_*100))/100,w[r]=Math.round(Math.floor(y*100))/100,w}const h=Te(e),u=[n].sort(),d=[...new Set(e.map(p=>p.nren))].sort((p,b)=>p.localeCompare(b));return{datasets:rs.cartesianProduct(i,u).map(function([p,b]){let x="";return p==="Technical FTE"?x="rgba(40, 40, 250, 0.8)":p==="Permanent FTE"?x="rgba(159, 129, 235, 1)":p==="Subcontracted FTE"?x="rgba(173, 216, 229, 1)":p==="Non-technical FTE"&&(x="rgba(116, 216, 242, 0.54)"),{backgroundColor:x,label:`${p} (${b})`,data:d.map(v=>{const _=h.get(v).get(b);return _?c(_)[p]:0}),stack:b,borderRadius:10,borderSkipped:!0,barPercentage:.8,borderWidth:.5,categoryPercentage:.8,hidden:!1}}),labels:d}},Hg=(e,t)=>{const n=["Research & Education","Commodity"],i={"Research & Education":"r_and_e_percentage",Commodity:"commodity_percentage"},s=Te(e),o=[t].sort(),r=[...new Set(e.map(h=>h.nren))].sort((h,u)=>h.localeCompare(u));return{datasets:rs.cartesianProduct(n,o).map(function([h,u]){let d="";return h==="Research & Education"?d="rgba(40, 40, 250, 0.8)":h==="Commodity"&&(d="rgba(116, 216, 242, 0.54)"),{backgroundColor:d,label:`${h} (${u})`,data:r.map(f=>{const g=s.get(f).get(u);return g?g[i[h]]:0}),stack:u,borderRadius:10,borderSkipped:!0,barPercentage:.8,borderWidth:.5,categoryPercentage:.8,hidden:!1}}),labels:r}},Wg=(e,t)=>{const n=["Permanent FTE","Subcontracted FTE"],i={"Technical FTE":"technical_fte","Non-technical FTE":"non_technical_fte","Permanent FTE":"permanent_fte","Subcontracted FTE":"subcontracted_fte"},[s,o]=n,[r,a]=[i[s],i[o]],l=Te(e),c=[...new Set(e.map(f=>f.nren))].sort((f,g)=>f.localeCompare(g));function h(f,g){return{backgroundColor:"rgba(219, 42, 76, 1)",label:`Number of FTEs (${f})`,data:c.map(p=>{const b=l.get(p).get(f);return b?(b[r]??0)+(b[a]??0):0}),stack:`${f}`,borderRadius:10,borderSkipped:!0,barPercentage:.8,borderWidth:.5,categoryPercentage:.8,hidden:!1,datalabels:{display:!0,formatter:function(p,b){return b.dataset.stack},font:{family:'"Open Sans", sans-serif',size:16,weight:"700"},anchor:"start",align:"end",offset:function(p){return p.chart.chartArea.width}}}}return{datasets:t.sort().map(h),labels:c}},Vg=(e,t,n)=>{const i=Te(e),s=[...new Set(e.map(l=>l.nren))].sort((l,c)=>l.localeCompare(c)),o=[...new Set(e.map(l=>l.year))].sort();function r(l,c){return{backgroundColor:"rgba(219, 42, 76, 1)",label:`${n} (${l})`,data:s.map(u=>{const d=i.get(u).get(l);return d?d[t]??0:0}),stack:`${l}`,borderRadius:10,borderSkipped:!0,barPercentage:.8,borderWidth:.5,categoryPercentage:.8,hidden:!1,datalabels:{display:!0,formatter:function(u,d){return d.dataset.stack},font:{family:'"Open Sans", sans-serif',size:16,weight:"700"},anchor:"start",align:"end",offset:function(u){return u.chart.chartArea.width}}}}return{datasets:o.sort().map(r),labels:s}},pp=e=>{const t=wt.c(41),{activeCategory:n}=e,i=el();let s;t[0]!==n||t[1]!==i?(s=()=>i(n===G.Organisation?".":"/funding"),t[0]=n,t[1]=i,t[2]=s):s=t[2];const o=n===G.Organisation;let r;t[3]===Symbol.for("react.memo_cache_sentinel")?(r=M.jsx("span",{children:G.Organisation}),t[3]=r):r=t[3];let a;t[4]!==s||t[5]!==o?(a=M.jsx(Ft,{onClick:s,variant:"nav-box",active:o,children:r}),t[4]=s,t[5]=o,t[6]=a):a=t[6];let l;t[7]!==n||t[8]!==i?(l=()=>i(n===G.Policy?".":"/corporate-strategy"),t[7]=n,t[8]=i,t[9]=l):l=t[9];const c=n===G.Policy;let h;t[10]===Symbol.for("react.memo_cache_sentinel")?(h=M.jsx("span",{children:G.Policy}),t[10]=h):h=t[10];let u;t[11]!==l||t[12]!==c?(u=M.jsx(Ft,{onClick:l,variant:"nav-box",active:c,children:h}),t[11]=l,t[12]=c,t[13]=u):u=t[13];let d;t[14]!==n||t[15]!==i?(d=()=>i(n===G.ConnectedUsers?".":"/institutions-urls"),t[14]=n,t[15]=i,t[16]=d):d=t[16];const f=n===G.ConnectedUsers;let g;t[17]===Symbol.for("react.memo_cache_sentinel")?(g=M.jsx("span",{children:G.ConnectedUsers}),t[17]=g):g=t[17];let m;t[18]!==f||t[19]!==d?(m=M.jsx(Ft,{onClick:d,variant:"nav-box",active:f,children:g}),t[18]=f,t[19]=d,t[20]=m):m=t[20];let p;t[21]!==n||t[22]!==i?(p=()=>i(n===G.Network?".":"/dark-fibre-lease"),t[21]=n,t[22]=i,t[23]=p):p=t[23];const b=n===G.Network;let x;t[24]===Symbol.for("react.memo_cache_sentinel")?(x=M.jsx("span",{children:G.Network}),t[24]=x):x=t[24];let v;t[25]!==p||t[26]!==b?(v=M.jsx(Ft,{onClick:p,variant:"nav-box",active:b,children:x}),t[25]=p,t[26]=b,t[27]=v):v=t[27];let _;t[28]!==n||t[29]!==i?(_=()=>i(n===G.Services?".":"/network-services"),t[28]=n,t[29]=i,t[30]=_):_=t[30];const y=n===G.Services;let w;t[31]===Symbol.for("react.memo_cache_sentinel")?(w=M.jsx("span",{children:G.Services}),t[31]=w):w=t[31];let k;t[32]!==_||t[33]!==y?(k=M.jsx(Ft,{onClick:_,variant:"nav-box",active:y,children:w}),t[32]=_,t[33]=y,t[34]=k):k=t[34];let S;return t[35]!==m||t[36]!==v||t[37]!==k||t[38]!==a||t[39]!==u?(S=M.jsx(hr,{children:M.jsx(se,{children:M.jsxs(Ri,{className:"navbox-bar gap-2 m-3",children:[a,u,m,v,k]})})}),t[35]=m,t[36]=v,t[37]=k,t[38]=a,t[39]=u,t[40]=S):S=t[40],S},gp=()=>{const e=wt.c(1);let t;return e[0]===Symbol.for("react.memo_cache_sentinel")?(t=M.jsx(rn,{children:M.jsx(nl,{sidebar:!0})}),e[0]=t):t=e[0],t},mp=()=>{const e=wt.c(1);let t;return e[0]===Symbol.for("react.memo_cache_sentinel")?(t=M.jsx(rn,{children:M.jsx(il,{sidebar:!0})}),e[0]=t):t=e[0],t},bp=()=>{const e=wt.c(1);let t;return e[0]===Symbol.for("react.memo_cache_sentinel")?(t=M.jsx(rn,{children:M.jsx(sl,{sidebar:!0})}),e[0]=t):t=e[0],t},xp=()=>{const e=wt.c(1);let t;return e[0]===Symbol.for("react.memo_cache_sentinel")?(t=M.jsx(rn,{children:M.jsx(ol,{sidebar:!0})}),e[0]=t):t=e[0],t},yp=()=>{const e=wt.c(1);let t;return e[0]===Symbol.for("react.memo_cache_sentinel")?(t=M.jsx(rn,{children:M.jsx(rl,{sidebar:!0})}),e[0]=t):t=e[0],t};function vp(e,t){return e.map(n=>t.map(i=>{const s=n[i];return s===null?"":typeof s=="string"?`"${s.replace(/"/g,'""')}"`:s}).join(","))}function _p(e){if(!e.length)return"";const t=Object.keys(e[0]),n=vp(e,t);return[t.join(","),...n].join(`\r -`)}function wp(e,t="Sheet1"){const n=Qn.json_to_sheet(e),i=Qn.book_new();Qn.book_append_sheet(i,n,t);const s=fl(i,{bookType:"xlsx",type:"binary"}),o=new ArrayBuffer(s.length),r=new Uint8Array(o);for(let a=0;a<s.length;a++)r[a]=s.charCodeAt(a)&255;return new Blob([o],{type:"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet;charset=UTF-8"})}const Qo=({data:e,filename:t,exportType:n})=>{const i=()=>{let o,r,a;switch(n){case ve.EXCEL:{o=wp(e),r="xlsx",a="application/vnd.openxmlformats-officedocument.spreadsheetml.sheet;charset=UTF-8";break}case ve.CSV:default:{o=_p(e),r="csv",a="text/csv;charset=UTF-8";break}}const l=new Blob([o],{type:a});t=t.endsWith(r)?t:`${t}.${r}`;const c=document.createElement("a");c.href=URL.createObjectURL(l),c.download=t,document.body.appendChild(c),c.click(),document.body.removeChild(c)};let s="downloadbutton";return n===ve.CSV?s+=" downloadcsv":n===ve.EXCEL&&(s+=" downloadexcel"),M.jsxs("button",{className:s,onClick:i,children:[n," ",M.jsx(fr,{})]})};function Sp(e,t){if(e.match(/^[a-z]+:\/\//i))return e;if(e.match(/^\/\//))return window.location.protocol+e;if(e.match(/^[a-z]+:/i))return e;const n=document.implementation.createHTMLDocument(),i=n.createElement("base"),s=n.createElement("a");return n.head.appendChild(i),n.body.appendChild(s),t&&(i.href=t),s.href=e,s.href}const kp=(()=>{let e=0;const t=()=>`0000${(Math.random()*36**4<<0).toString(36)}`.slice(-4);return()=>(e+=1,`u${t()}${e}`)})();function Yt(e){const t=[];for(let n=0,i=e.length;n<i;n++)t.push(e[n]);return t}let xe=null;function Da(e={}){return xe||(e.includeStyleProperties?(xe=e.includeStyleProperties,xe):(xe=Yt(window.getComputedStyle(document.documentElement)),xe))}function Vn(e,t){const i=(e.ownerDocument.defaultView||window).getComputedStyle(e).getPropertyValue(t);return i?parseFloat(i.replace("px","")):0}function Mp(e){const t=Vn(e,"border-left-width"),n=Vn(e,"border-right-width");return e.clientWidth+t+n}function Cp(e){const t=Vn(e,"border-top-width"),n=Vn(e,"border-bottom-width");return e.clientHeight+t+n}function Ea(e,t={}){const n=t.width||Mp(e),i=t.height||Cp(e);return{width:n,height:i}}function Pp(){let e,t;try{t=process}catch{}const n=t&&t.env?t.env.devicePixelRatio:null;return n&&(e=parseInt(n,10),Number.isNaN(e)&&(e=1)),e||window.devicePixelRatio||1}const pt=16384;function Op(e){(e.width>pt||e.height>pt)&&(e.width>pt&&e.height>pt?e.width>e.height?(e.height*=pt/e.width,e.width=pt):(e.width*=pt/e.height,e.height=pt):e.width>pt?(e.height*=pt/e.width,e.width=pt):(e.width*=pt/e.height,e.height=pt))}function Yn(e){return new Promise((t,n)=>{const i=new Image;i.onload=()=>{i.decode().then(()=>{requestAnimationFrame(()=>t(i))})},i.onerror=n,i.crossOrigin="anonymous",i.decoding="async",i.src=e})}async function Dp(e){return Promise.resolve().then(()=>new XMLSerializer().serializeToString(e)).then(encodeURIComponent).then(t=>`data:image/svg+xml;charset=utf-8,${t}`)}async function Ep(e,t,n){const i="http://www.w3.org/2000/svg",s=document.createElementNS(i,"svg"),o=document.createElementNS(i,"foreignObject");return s.setAttribute("width",`${t}`),s.setAttribute("height",`${n}`),s.setAttribute("viewBox",`0 0 ${t} ${n}`),o.setAttribute("width","100%"),o.setAttribute("height","100%"),o.setAttribute("x","0"),o.setAttribute("y","0"),o.setAttribute("externalResourcesRequired","true"),s.appendChild(o),o.appendChild(e),Dp(s)}const ft=(e,t)=>{if(e instanceof t)return!0;const n=Object.getPrototypeOf(e);return n===null?!1:n.constructor.name===t.name||ft(n,t)};function Ap(e){const t=e.getPropertyValue("content");return`${e.cssText} content: '${t.replace(/'|"/g,"")}';`}function Tp(e,t){return Da(t).map(n=>{const i=e.getPropertyValue(n),s=e.getPropertyPriority(n);return`${n}: ${i}${s?" !important":""};`}).join(" ")}function Rp(e,t,n,i){const s=`.${e}:${t}`,o=n.cssText?Ap(n):Tp(n,i);return document.createTextNode(`${s}{${o}}`)}function tr(e,t,n,i){const s=window.getComputedStyle(e,n),o=s.getPropertyValue("content");if(o===""||o==="none")return;const r=kp();try{t.className=`${t.className} ${r}`}catch{return}const a=document.createElement("style");a.appendChild(Rp(r,n,s,i)),t.appendChild(a)}function Lp(e,t,n){tr(e,t,":before",n),tr(e,t,":after",n)}const er="application/font-woff",nr="image/jpeg",Fp={woff:er,woff2:er,ttf:"application/font-truetype",eot:"application/vnd.ms-fontobject",png:"image/png",jpg:nr,jpeg:nr,gif:"image/gif",tiff:"image/tiff",svg:"image/svg+xml",webp:"image/webp"};function Ip(e){const t=/\.([^./]*?)$/g.exec(e);return t?t[1]:""}function as(e){const t=Ip(e).toLowerCase();return Fp[t]||""}function jp(e){return e.split(/,/)[1]}function Ti(e){return e.search(/^(data:)/)!==-1}function $p(e,t){return`data:${t};base64,${e}`}async function Aa(e,t,n){const i=await fetch(e,t);if(i.status===404)throw new Error(`Resource "${i.url}" not found`);const s=await i.blob();return new Promise((o,r)=>{const a=new FileReader;a.onerror=r,a.onloadend=()=>{try{o(n({res:i,result:a.result}))}catch(l){r(l)}},a.readAsDataURL(s)})}const yi={};function zp(e,t,n){let i=e.replace(/\?.*/,"");return n&&(i=e),/ttf|otf|eot|woff2?/i.test(i)&&(i=i.replace(/.*\//,"")),t?`[${t}]${i}`:i}async function ls(e,t,n){const i=zp(e,t,n.includeQueryParams);if(yi[i]!=null)return yi[i];n.cacheBust&&(e+=(/\?/.test(e)?"&":"?")+new Date().getTime());let s;try{const o=await Aa(e,n.fetchRequestInit,({res:r,result:a})=>(t||(t=r.headers.get("Content-Type")||""),jp(a)));s=$p(o,t)}catch(o){s=n.imagePlaceholder||"";let r=`Failed to fetch resource: ${e}`;o&&(r=typeof o=="string"?o:o.message),r&&console.warn(r)}return yi[i]=s,s}async function Bp(e){const t=e.toDataURL();return t==="data:,"?e.cloneNode(!1):Yn(t)}async function Np(e,t){if(e.currentSrc){const o=document.createElement("canvas"),r=o.getContext("2d");o.width=e.clientWidth,o.height=e.clientHeight,r==null||r.drawImage(e,0,0,o.width,o.height);const a=o.toDataURL();return Yn(a)}const n=e.poster,i=as(n),s=await ls(n,i,t);return Yn(s)}async function Hp(e,t){var n;try{if(!((n=e==null?void 0:e.contentDocument)===null||n===void 0)&&n.body)return await Gn(e.contentDocument.body,t,!0)}catch{}return e.cloneNode(!1)}async function Wp(e,t){return ft(e,HTMLCanvasElement)?Bp(e):ft(e,HTMLVideoElement)?Np(e,t):ft(e,HTMLIFrameElement)?Hp(e,t):e.cloneNode(Ta(e))}const Vp=e=>e.tagName!=null&&e.tagName.toUpperCase()==="SLOT",Ta=e=>e.tagName!=null&&e.tagName.toUpperCase()==="SVG";async function Yp(e,t,n){var i,s;if(Ta(t))return t;let o=[];return Vp(e)&&e.assignedNodes?o=Yt(e.assignedNodes()):ft(e,HTMLIFrameElement)&&(!((i=e.contentDocument)===null||i===void 0)&&i.body)?o=Yt(e.contentDocument.body.childNodes):o=Yt(((s=e.shadowRoot)!==null&&s!==void 0?s:e).childNodes),o.length===0||ft(e,HTMLVideoElement)||await o.reduce((r,a)=>r.then(()=>Gn(a,n)).then(l=>{l&&t.appendChild(l)}),Promise.resolve()),t}function Up(e,t,n){const i=t.style;if(!i)return;const s=window.getComputedStyle(e);s.cssText?(i.cssText=s.cssText,i.transformOrigin=s.transformOrigin):Da(n).forEach(o=>{let r=s.getPropertyValue(o);o==="font-size"&&r.endsWith("px")&&(r=`${Math.floor(parseFloat(r.substring(0,r.length-2)))-.1}px`),ft(e,HTMLIFrameElement)&&o==="display"&&r==="inline"&&(r="block"),o==="d"&&t.getAttribute("d")&&(r=`path(${t.getAttribute("d")})`),i.setProperty(o,r,s.getPropertyPriority(o))})}function Xp(e,t){ft(e,HTMLTextAreaElement)&&(t.innerHTML=e.value),ft(e,HTMLInputElement)&&t.setAttribute("value",e.value)}function qp(e,t){if(ft(e,HTMLSelectElement)){const n=t,i=Array.from(n.children).find(s=>e.value===s.getAttribute("value"));i&&i.setAttribute("selected","")}}function Kp(e,t,n){return ft(t,Element)&&(Up(e,t,n),Lp(e,t,n),Xp(e,t),qp(e,t)),t}async function Gp(e,t){const n=e.querySelectorAll?e.querySelectorAll("use"):[];if(n.length===0)return e;const i={};for(let o=0;o<n.length;o++){const a=n[o].getAttribute("xlink:href");if(a){const l=e.querySelector(a),c=document.querySelector(a);!l&&c&&!i[a]&&(i[a]=await Gn(c,t,!0))}}const s=Object.values(i);if(s.length){const o="http://www.w3.org/1999/xhtml",r=document.createElementNS(o,"svg");r.setAttribute("xmlns",o),r.style.position="absolute",r.style.width="0",r.style.height="0",r.style.overflow="hidden",r.style.display="none";const a=document.createElementNS(o,"defs");r.appendChild(a);for(let l=0;l<s.length;l++)a.appendChild(s[l]);e.appendChild(r)}return e}async function Gn(e,t,n){return!n&&t.filter&&!t.filter(e)?null:Promise.resolve(e).then(i=>Wp(i,t)).then(i=>Yp(e,i,t)).then(i=>Kp(e,i,t)).then(i=>Gp(i,t))}const Ra=/url\((['"]?)([^'"]+?)\1\)/g,Jp=/url\([^)]+\)\s*format\((["']?)([^"']+)\1\)/g,Zp=/src:\s*(?:url\([^)]+\)\s*format\([^)]+\)[,;]\s*)+/g;function Qp(e){const t=e.replace(/([.*+?^${}()|\[\]\/\\])/g,"\\$1");return new RegExp(`(url\\(['"]?)(${t})(['"]?\\))`,"g")}function tg(e){const t=[];return e.replace(Ra,(n,i,s)=>(t.push(s),n)),t.filter(n=>!Ti(n))}async function eg(e,t,n,i,s){try{const o=n?Sp(t,n):t,r=as(t);let a;return s||(a=await ls(o,r,i)),e.replace(Qp(t),`$1${a}$3`)}catch{}return e}function ng(e,{preferredFontFormat:t}){return t?e.replace(Zp,n=>{for(;;){const[i,,s]=Jp.exec(n)||[];if(!s)return"";if(s===t)return`src: ${i};`}}):e}function La(e){return e.search(Ra)!==-1}async function Fa(e,t,n){if(!La(e))return e;const i=ng(e,n);return tg(i).reduce((o,r)=>o.then(a=>eg(a,r,t,n)),Promise.resolve(i))}async function ye(e,t,n){var i;const s=(i=t.style)===null||i===void 0?void 0:i.getPropertyValue(e);if(s){const o=await Fa(s,null,n);return t.style.setProperty(e,o,t.style.getPropertyPriority(e)),!0}return!1}async function ig(e,t){await ye("background",e,t)||await ye("background-image",e,t),await ye("mask",e,t)||await ye("-webkit-mask",e,t)||await ye("mask-image",e,t)||await ye("-webkit-mask-image",e,t)}async function sg(e,t){const n=ft(e,HTMLImageElement);if(!(n&&!Ti(e.src))&&!(ft(e,SVGImageElement)&&!Ti(e.href.baseVal)))return;const i=n?e.src:e.href.baseVal,s=await ls(i,as(i),t);await new Promise((o,r)=>{e.onload=o,e.onerror=t.onImageErrorHandler?(...l)=>{try{o(t.onImageErrorHandler(...l))}catch(c){r(c)}}:r;const a=e;a.decode&&(a.decode=o),a.loading==="lazy"&&(a.loading="eager"),n?(e.srcset="",e.src=s):e.href.baseVal=s})}async function og(e,t){const i=Yt(e.childNodes).map(s=>Ia(s,t));await Promise.all(i).then(()=>e)}async function Ia(e,t){ft(e,Element)&&(await ig(e,t),await sg(e,t),await og(e,t))}function rg(e,t){const{style:n}=e;t.backgroundColor&&(n.backgroundColor=t.backgroundColor),t.width&&(n.width=`${t.width}px`),t.height&&(n.height=`${t.height}px`);const i=t.style;return i!=null&&Object.keys(i).forEach(s=>{n[s]=i[s]}),e}const ir={};async function sr(e){let t=ir[e];if(t!=null)return t;const i=await(await fetch(e)).text();return t={url:e,cssText:i},ir[e]=t,t}async function or(e,t){let n=e.cssText;const i=/url\(["']?([^"')]+)["']?\)/g,o=(n.match(/url\([^)]+\)/g)||[]).map(async r=>{let a=r.replace(i,"$1");return a.startsWith("https://")||(a=new URL(a,e.url).href),Aa(a,t.fetchRequestInit,({result:l})=>(n=n.replace(r,`url(${l})`),[r,l]))});return Promise.all(o).then(()=>n)}function rr(e){if(e==null)return[];const t=[],n=/(\/\*[\s\S]*?\*\/)/gi;let i=e.replace(n,"");const s=new RegExp("((@.*?keyframes [\\s\\S]*?){([\\s\\S]*?}\\s*?)})","gi");for(;;){const l=s.exec(i);if(l===null)break;t.push(l[0])}i=i.replace(s,"");const o=/@import[\s\S]*?url\([^)]*\)[\s\S]*?;/gi,r="((\\s*?(?:\\/\\*[\\s\\S]*?\\*\\/)?\\s*?@media[\\s\\S]*?){([\\s\\S]*?)}\\s*?})|(([\\s\\S]*?){([\\s\\S]*?)})",a=new RegExp(r,"gi");for(;;){let l=o.exec(i);if(l===null){if(l=a.exec(i),l===null)break;o.lastIndex=a.lastIndex}else a.lastIndex=o.lastIndex;t.push(l[0])}return t}async function ag(e,t){const n=[],i=[];return e.forEach(s=>{if("cssRules"in s)try{Yt(s.cssRules||[]).forEach((o,r)=>{if(o.type===CSSRule.IMPORT_RULE){let a=r+1;const l=o.href,c=sr(l).then(h=>or(h,t)).then(h=>rr(h).forEach(u=>{try{s.insertRule(u,u.startsWith("@import")?a+=1:s.cssRules.length)}catch(d){console.error("Error inserting rule from remote css",{rule:u,error:d})}})).catch(h=>{console.error("Error loading remote css",h.toString())});i.push(c)}})}catch(o){const r=e.find(a=>a.href==null)||document.styleSheets[0];s.href!=null&&i.push(sr(s.href).then(a=>or(a,t)).then(a=>rr(a).forEach(l=>{r.insertRule(l,r.cssRules.length)})).catch(a=>{console.error("Error loading remote stylesheet",a)})),console.error("Error inlining remote css file",o)}}),Promise.all(i).then(()=>(e.forEach(s=>{if("cssRules"in s)try{Yt(s.cssRules||[]).forEach(o=>{n.push(o)})}catch(o){console.error(`Error while reading CSS rules from ${s.href}`,o)}}),n))}function lg(e){return e.filter(t=>t.type===CSSRule.FONT_FACE_RULE).filter(t=>La(t.style.getPropertyValue("src")))}async function cg(e,t){if(e.ownerDocument==null)throw new Error("Provided element is not within a Document");const n=Yt(e.ownerDocument.styleSheets),i=await ag(n,t);return lg(i)}function ja(e){return e.trim().replace(/["']/g,"")}function hg(e){const t=new Set;function n(i){(i.style.fontFamily||getComputedStyle(i).fontFamily).split(",").forEach(o=>{t.add(ja(o))}),Array.from(i.children).forEach(o=>{o instanceof HTMLElement&&n(o)})}return n(e),t}async function ug(e,t){const n=await cg(e,t),i=hg(e);return(await Promise.all(n.filter(o=>i.has(ja(o.style.fontFamily))).map(o=>{const r=o.parentStyleSheet?o.parentStyleSheet.href:null;return Fa(o.cssText,r,t)}))).join(` -`)}async function dg(e,t){const n=t.fontEmbedCSS!=null?t.fontEmbedCSS:t.skipFonts?null:await ug(e,t);if(n){const i=document.createElement("style"),s=document.createTextNode(n);i.appendChild(s),e.firstChild?e.insertBefore(i,e.firstChild):e.appendChild(i)}}async function $a(e,t={}){const{width:n,height:i}=Ea(e,t),s=await Gn(e,t,!0);return await dg(s,t),await Ia(s,t),rg(s,t),await Ep(s,n,i)}async function za(e,t={}){const{width:n,height:i}=Ea(e,t),s=await $a(e,t),o=await Yn(s),r=document.createElement("canvas"),a=r.getContext("2d"),l=t.pixelRatio||Pp(),c=t.canvasWidth||n,h=t.canvasHeight||i;return r.width=c*l,r.height=h*l,t.skipAutoScale||Op(r),r.style.width=`${c}`,r.style.height=`${h}`,t.backgroundColor&&(a.fillStyle=t.backgroundColor,a.fillRect(0,0,r.width,r.height)),a.drawImage(o,0,0,r.width,r.height),r}async function fg(e,t={}){return(await za(e,t)).toDataURL()}async function pg(e,t={}){return(await za(e,t)).toDataURL("image/jpeg",t.quality||1)}const gg=e=>{const t=wt.c(17),{filename:n}=e,i=E.useContext(ur),[s,o]=E.useState(!1),r=E.useRef(null);let a;t[0]!==i||t[1]!==n?(a=async v=>{if(i!=null&&i.current){o(!1);const _={transform:"scale(1)","transform-origin":"top left",background:"white"};let y;t:switch(v){case ge.JPEG:{y=await pg(i.current,{quality:.95,style:_});break t}case ge.SVG:{y=await $a(i.current,{style:_});break t}case ge.PNG:default:y=await fg(i.current,{style:_})}const w=document.createElement("a");w.href=typeof y=="string"?y:URL.createObjectURL(y),w.download=`${n}.${v}`,document.body.appendChild(w),w.click(),document.body.removeChild(w)}},t[0]=i,t[1]=n,t[2]=a):a=t[2];const l=a;let c;t[3]!==s?(c=()=>{o(!s)},t[3]=s,t[4]=c):c=t[4];const h=c;let u;t[5]===Symbol.for("react.memo_cache_sentinel")?(u=v=>{r.current&&!r.current.contains(v.target)&&o(!1)},t[5]=u):u=t[5];const d=u;let f,g;t[6]===Symbol.for("react.memo_cache_sentinel")?(f=()=>(document.addEventListener("mousedown",d),()=>{document.removeEventListener("mousedown",d)}),g=[],t[6]=f,t[7]=g):(f=t[6],g=t[7]),E.useEffect(f,g);let m;t[8]===Symbol.for("react.memo_cache_sentinel")?(m=M.jsx(fr,{}),t[8]=m):m=t[8];let p;t[9]!==h?(p=M.jsxs("button",{className:"downloadbutton downloadimage",onClick:h,children:["IMAGE ",m]}),t[9]=h,t[10]=p):p=t[10];let b;t[11]!==l||t[12]!==s?(b=s&&M.jsxs("div",{className:"image-options",children:[M.jsx("div",{className:"imageoption downloadpng",onClick:()=>l(ge.PNG),children:M.jsx("span",{children:"PNG"})}),M.jsx("div",{className:"imageoption downloadjpeg",onClick:()=>l(ge.JPEG),children:M.jsx("span",{children:"JPEG"})}),M.jsx("div",{className:"imageoption downloadsvg",onClick:()=>l(ge.SVG),children:M.jsx("span",{children:"SVG"})})]}),t[11]=l,t[12]=s,t[13]=b):b=t[13];let x;return t[14]!==p||t[15]!==b?(x=M.jsxs("div",{className:"image-dropdown",ref:r,children:[p,b]}),t[14]=p,t[15]=b,t[16]=x):x=t[16],x};Ct.defaults.font.size=16;Ct.defaults.font.family="Open Sans";Ct.defaults.font.weight=700;function Yg(e){const t=wt.c(55),{title:n,description:i,filter:s,children:o,category:r,data:a,filename:l}=e,{preview:c,setPreview:h}=E.useContext(al),u=window.location.origin+window.location.pathname,{trackPageView:d}=ll();let f,g;t[0]!==n||t[1]!==d?(f=()=>{d({documentTitle:n})},g=[d,n],t[0]=n,t[1]=d,t[2]=f,t[3]=g):(f=t[2],g=t[3]),E.useEffect(f,g);let m;t[4]!==r?(m=r===G.Organisation&&M.jsx(gp,{}),t[4]=r,t[5]=m):m=t[5];let p;t[6]!==r?(p=r===G.Policy&&M.jsx(mp,{}),t[6]=r,t[7]=p):p=t[7];let b;t[8]!==r?(b=r===G.Network&&M.jsx(xp,{}),t[8]=r,t[9]=b):b=t[9];let x;t[10]!==r?(x=r===G.ConnectedUsers&&M.jsx(bp,{}),t[10]=r,t[11]=x):x=t[11];let v;t[12]!==r?(v=r===G.Services&&M.jsx(yp,{}),t[12]=r,t[13]=v):v=t[13];let _;t[14]===Symbol.for("react.memo_cache_sentinel")?(_=M.jsx(cl,{type:"data"}),t[14]=_):_=t[14];let y;t[15]!==c||t[16]!==h?(y=c&&M.jsx(se,{className:"preview-banner",children:M.jsxs("span",{children:["You are viewing a preview of the website which includes pre-published survey data. ",M.jsx(hl,{to:u,onClick:()=>h(!1),children:"Click here"})," to deactivate preview mode."]})}),t[15]=c,t[16]=h,t[17]=y):y=t[17];let w;t[18]!==r?(w=M.jsx(pp,{activeCategory:r}),t[18]=r,t[19]=w):w=t[19];let k;t[20]!==n?(k=M.jsx(se,{children:M.jsx("h3",{className:"m-1",children:n})}),t[20]=n,t[21]=k):k=t[21];let S;t[22]!==i?(S=M.jsx(se,{children:M.jsx("p",{className:"p-md-4",children:i})}),t[22]=i,t[23]=S):S=t[23];const C=`${l}.csv`;let D;t[24]!==a||t[25]!==C?(D=M.jsx(Qo,{data:a,filename:C,exportType:ve.CSV}),t[24]=a,t[25]=C,t[26]=D):D=t[26];const P=`${l}.xlsx`;let O;t[27]!==a||t[28]!==P?(O=M.jsx(Qo,{data:a,filename:P,exportType:ve.EXCEL}),t[27]=a,t[28]=P,t[29]=O):O=t[29];let A;t[30]!==l?(A=M.jsx(gg,{filename:l}),t[30]=l,t[31]=A):A=t[31];let I;t[32]!==D||t[33]!==O||t[34]!==A?(I=M.jsxs(se,{className:"downloadcontainer",children:[D,O,A]}),t[32]=D,t[33]=O,t[34]=A,t[35]=I):I=t[35];let T;t[36]!==s?(T=M.jsx(se,{children:s}),t[36]=s,t[37]=T):T=t[37];let L;t[38]!==o?(L=M.jsx(se,{children:o}),t[38]=o,t[39]=L):L=t[39];let F;t[40]!==k||t[41]!==S||t[42]!==I||t[43]!==T||t[44]!==L?(F=M.jsxs(hr,{className:"mb-5 grow",children:[k,S,I,T,L]}),t[40]=k,t[41]=S,t[42]=I,t[43]=T,t[44]=L,t[45]=F):F=t[45];let N;return t[46]!==w||t[47]!==F||t[48]!==m||t[49]!==p||t[50]!==b||t[51]!==x||t[52]!==v||t[53]!==y?(N=M.jsxs(M.Fragment,{children:[m,p,b,x,v,_,y,w,F]}),t[46]=w,t[47]=F,t[48]=m,t[49]=p,t[50]=b,t[51]=x,t[52]=v,t[53]=y,t[54]=N):N=t[54],N}function Ug(e){const t=wt.c(81),{filterOptions:n,filterSelection:i,setFilterSelection:s,max1year:o,coloredYears:r}=e,a=o===void 0?!1:o,l=r===void 0?!1:r,[c,h]=E.useState(!0),{nrens:u}=E.useContext(ul);let d,f;if(t[0]===Symbol.for("react.memo_cache_sentinel")?(d=()=>{const H=()=>h(window.innerWidth>=992);return window.addEventListener("resize",H),()=>{window.removeEventListener("resize",H)}},f=[],t[0]=d,t[1]=f):(d=t[0],f=t[1]),E.useEffect(d,f),a&&i.selectedYears.length>1){const H=Math.max(...i.selectedYears);s({selectedYears:[H],selectedNrens:[...i.selectedNrens]})}let g;t[2]!==i.selectedNrens||t[3]!==i.selectedYears||t[4]!==s?(g=H=>{i.selectedNrens.includes(H)?s({selectedYears:[...i.selectedYears],selectedNrens:i.selectedNrens.filter(et=>et!==H)}):s({selectedYears:[...i.selectedYears],selectedNrens:[...i.selectedNrens,H]})},t[2]=i.selectedNrens,t[3]=i.selectedYears,t[4]=s,t[5]=g):g=t[5];const m=g;let p;t[6]!==i.selectedNrens||t[7]!==i.selectedYears||t[8]!==a||t[9]!==s?(p=H=>{i.selectedYears.includes(H)?s({selectedYears:i.selectedYears.filter(et=>et!==H),selectedNrens:[...i.selectedNrens]}):s({selectedYears:a?[H]:[...i.selectedYears,H],selectedNrens:[...i.selectedNrens]})},t[6]=i.selectedNrens,t[7]=i.selectedYears,t[8]=a,t[9]=s,t[10]=p):p=t[10];const b=p;let x;t[11]!==n.availableNrens||t[12]!==i.selectedYears||t[13]!==s?(x=()=>{s({selectedYears:[...i.selectedYears],selectedNrens:n.availableNrens.map(xg)})},t[11]=n.availableNrens,t[12]=i.selectedYears,t[13]=s,t[14]=x):x=t[14];const v=x;let _;t[15]!==i.selectedYears||t[16]!==s?(_=()=>{s({selectedYears:[...i.selectedYears],selectedNrens:[]})},t[15]=i.selectedYears,t[16]=s,t[17]=_):_=t[17];const y=_,w=c?3:2,k=Math.ceil(u.length/w);let S,C,D,P,O,A,I,T,L,F;if(t[18]!==n.availableNrens||t[19]!==i.selectedNrens||t[20]!==m||t[21]!==w||t[22]!==k||t[23]!==u){const H=Array.from(Array(w),bg);u.sort(mg).forEach((Jt,Zt)=>{const lt=Math.floor(Zt/k);H[lt].push(Jt)});let et;t[34]!==n.availableNrens?(et=Jt=>n.availableNrens.find(lt=>lt.name===Jt.name)!==void 0,t[34]=n.availableNrens,t[35]=et):et=t[35];const Re=et;D=ys,L=3,C=ni,A="outside",I="m-3",t[36]===Symbol.for("react.memo_cache_sentinel")?(T=M.jsx(ni.Toggle,{id:"nren-dropdown-toggle",variant:"compendium",children:"Select NRENs "}),t[36]=T):T=t[36],S=ni.Menu,t[37]===Symbol.for("react.memo_cache_sentinel")?(O={borderRadius:0},t[37]=O):O=t[37],F="d-flex fit-max-content mt-4 mx-3";let $t;t[38]!==i.selectedNrens||t[39]!==m||t[40]!==Re?($t=(Jt,Zt)=>M.jsx("div",{className:"flex-fill",children:Jt.map(lt=>M.jsx("div",{className:"filter-dropdown-item flex-fill py-1 px-3",children:M.jsxs(Zn.Check,{type:"checkbox",children:[M.jsx(Zn.Check.Input,{id:lt.name,readOnly:!0,type:"checkbox",onClick:()=>m(lt.name),checked:i.selectedNrens.includes(lt.name),className:"nren-checkbox",disabled:!Re(lt)}),M.jsxs(Zn.Check.Label,{htmlFor:lt.name,className:"nren-checkbox-label",children:[lt.name," ",M.jsxs("span",{style:{fontWeight:"lighter"},children:["(",lt.country,")"]})]})]})},lt.name))},Zt),t[38]=i.selectedNrens,t[39]=m,t[40]=Re,t[41]=$t):$t=t[41],P=H.map($t),t[18]=n.availableNrens,t[19]=i.selectedNrens,t[20]=m,t[21]=w,t[22]=k,t[23]=u,t[24]=S,t[25]=C,t[26]=D,t[27]=P,t[28]=O,t[29]=A,t[30]=I,t[31]=T,t[32]=L,t[33]=F}else S=t[24],C=t[25],D=t[26],P=t[27],O=t[28],A=t[29],I=t[30],T=t[31],L=t[32],F=t[33];let N;t[42]!==P||t[43]!==F?(N=M.jsx("div",{className:F,children:P}),t[42]=P,t[43]=F,t[44]=N):N=t[44];let $;t[45]!==v?($=M.jsx(Ft,{variant:"compendium",className:"flex-fill",onClick:v,children:"Select all NRENs"}),t[45]=v,t[46]=$):$=t[46];let B;t[47]!==y?(B=M.jsx(Ft,{variant:"compendium",className:"flex-fill",onClick:y,children:"Unselect all NRENs"}),t[47]=y,t[48]=B):B=t[48];let tt;t[49]!==$||t[50]!==B?(tt=M.jsxs("div",{className:"d-flex fit-max-content gap-2 mx-4 my-3",children:[$,B]}),t[49]=$,t[50]=B,t[51]=tt):tt=t[51];let Q;t[52]!==S||t[53]!==O||t[54]!==N||t[55]!==tt?(Q=M.jsxs(S,{style:O,children:[N,tt]}),t[52]=S,t[53]=O,t[54]=N,t[55]=tt,t[56]=Q):Q=t[56];let nt;t[57]!==C||t[58]!==A||t[59]!==I||t[60]!==T||t[61]!==Q?(nt=M.jsxs(C,{autoClose:A,className:I,children:[T,Q]}),t[57]=C,t[58]=A,t[59]=I,t[60]=T,t[61]=Q,t[62]=nt):nt=t[62];let U;t[63]!==D||t[64]!==L||t[65]!==nt?(U=M.jsx(D,{xs:L,children:nt}),t[63]=D,t[64]=L,t[65]=nt,t[66]=U):U=t[66];let X;if(t[67]!==l||t[68]!==n.availableYears||t[69]!==i.selectedYears||t[70]!==b){let H;t[72]!==l||t[73]!==i.selectedYears||t[74]!==b?(H=et=>M.jsx(Ft,{variant:l?"compendium-year-"+et%9:"compendium-year",active:i.selectedYears.includes(et),onClick:()=>b(et),children:et},et),t[72]=l,t[73]=i.selectedYears,t[74]=b,t[75]=H):H=t[75],X=n.availableYears.sort().map(H),t[67]=l,t[68]=n.availableYears,t[69]=i.selectedYears,t[70]=b,t[71]=X}else X=t[71];let K;t[76]!==X?(K=M.jsx(ys,{children:M.jsx(Ri,{className:"d-flex justify-content-end gap-2 m-3",children:X})}),t[76]=X,t[77]=K):K=t[77];let Et;return t[78]!==U||t[79]!==K?(Et=M.jsxs(M.Fragment,{children:[U,K]}),t[78]=U,t[79]=K,t[80]=Et):Et=t[80],Et}function mg(e,t){return e.name.localeCompare(t.name)}function bg(){return[]}function xg(e){return e.name}const Xg=e=>{const t=wt.c(3),{children:n}=e,i=E.useContext(ur);let s;return t[0]!==n||t[1]!==i?(s=M.jsx("div",{ref:i,children:n}),t[0]=n,t[1]=i,t[2]=s):s=t[2],s};function ar(e){const t=new Set,n=new Map;return e.forEach(i=>{t.add(i.year),n.set(i.nren,{name:i.nren,country:i.nren_country})}),{years:t,nrens:n}}function qg(e,t,n){const i=wt.c(14),s=n===void 0?vg:n;let o;i[0]===Symbol.for("react.memo_cache_sentinel")?(o=[],i[0]=o):o=i[0];const[r,a]=E.useState(o),l=dl(),c=e+(l?"?preview":"");let h;i[1]!==c||i[2]!==t||i[3]!==s?(h=()=>{fetch(c).then(yg).then(b=>{const x=b.filter(s);a(x);const{years:v,nrens:_}=ar(x);t(y=>{const k=y.selectedYears.filter(D=>v.has(D)).length?y.selectedYears:[Math.max(...v)],C=y.selectedNrens.filter(D=>_.has(D)).length?y.selectedNrens:[..._.keys()];return{selectedYears:k,selectedNrens:C}})})},i[1]=c,i[2]=t,i[3]=s,i[4]=h):h=i[4];let u;i[5]!==c||i[6]!==t?(u=[c,t],i[5]=c,i[6]=t,i[7]=u):u=i[7],E.useEffect(h,u);let d,f;i[8]!==r?(f=ar(r),i[8]=r,i[9]=f):f=i[9],d=f;const{years:g,nrens:m}=d;let p;return i[10]!==r||i[11]!==m||i[12]!==g?(p={data:r,years:g,nrens:m},i[10]=r,i[11]=m,i[12]=g,i[13]=p):p=i[13],p}function yg(e){return e.json()}function vg(){return!0}export{q as A,xi as B,Ct as C,Yg as D,_t as E,Ug as F,j as G,Y as H,V as I,Pn as J,W as K,Yo as L,z as M,Hg as N,gi as P,Wo as a,On as b,Eg as c,Og as d,Bg as e,Xg as f,jg as g,Fg as h,Ig as i,zg as j,Te as k,Ng as l,Wg as m,Ag as n,Vg as o,Dg as p,Tg as q,$g as r,Lg as s,ui as t,qg as u,hi as v,Rg as w,Qe as x,at as y,yn as z};