diff --git a/Changelog.md b/Changelog.md
index fc42d6a39e199cfe76bc48a24a94993e967eefdc..e4a3140f4878795479fd040b6ffe82e2db70243c 100644
--- a/Changelog.md
+++ b/Changelog.md
@@ -2,6 +2,9 @@
 
 All notable changes to this project will be documented in this file.
 
+## [0.46] - 2024-01-26
+- COMP-288: Mass data download
+
 ## [0.45] - 2024-01-18
 - COMP-329: Fix hook and bundle
 
diff --git a/compendium_v2/routes/api.py b/compendium_v2/routes/api.py
index 105e8f01cb74452d87d381c1f5037219bc503142..b45cf0c5049c52107f3bf75ed57bec0d2fee9e54 100644
--- a/compendium_v2/routes/api.py
+++ b/compendium_v2/routes/api.py
@@ -18,6 +18,7 @@ from compendium_v2.routes.traffic import routes as traffic_routes
 from compendium_v2.routes.institutions_urls import routes as institutions_urls_routes
 from compendium_v2.routes.nren_services import routes as nren_services_routes
 from compendium_v2.routes.connectivity import routes as connectivity
+from compendium_v2.routes.data_download import routes as data_download
 
 routes = Blueprint('compendium-v2-api', __name__)
 routes.register_blueprint(budget_routes, url_prefix='/budget')
@@ -35,6 +36,7 @@ routes.register_blueprint(traffic_routes, url_prefix='/traffic')
 routes.register_blueprint(institutions_urls_routes, url_prefix='/institutions-urls')
 routes.register_blueprint(nren_services_routes, url_prefix='/nren-services')
 routes.register_blueprint(connectivity, url_prefix='/connectivity')
+routes.register_blueprint(data_download, url_prefix='/data-download')
 
 logger = logging.getLogger(__name__)
 
diff --git a/compendium_v2/routes/budget.py b/compendium_v2/routes/budget.py
index b0cff93d8f4bbffcd7a9754f61392d94055c8820..fc4558103ffa5e1bd305e14de82e17adebea31ce 100644
--- a/compendium_v2/routes/budget.py
+++ b/compendium_v2/routes/budget.py
@@ -32,6 +32,15 @@ BUDGET_RESPONSE_SCHEMA = {
 }
 
 
+def extract_data(entry: BudgetEntry):
+    return {
+            'nren': entry.nren.name,
+            'nren_country': entry.nren.country,
+            'budget': float(entry.budget),
+            'year': entry.year,
+    }
+
+
 @routes.route('/', methods=['GET'])
 @common.require_accepts_json
 def budget_view() -> Any:
@@ -45,17 +54,8 @@ def budget_view() -> Any:
 
     :return:
     """
-
-    def _extract_data(entry: BudgetEntry):
-        return {
-            'nren': entry.nren.name,
-            'nren_country': entry.nren.country,
-            'budget': float(entry.budget),
-            'year': entry.year,
-        }
-
     entries = sorted(
-        [_extract_data(entry) for entry in common.get_data(BudgetEntry)],
+        [extract_data(entry) for entry in common.get_data(BudgetEntry)],
         key=lambda d: (d['year'], d['nren'])
     )
     return jsonify(entries)
diff --git a/compendium_v2/routes/charging.py b/compendium_v2/routes/charging.py
index 8c40679b4521c945ccdc19932ad60cb6642b356b..a340c8bc666cbeaddb2228c45c6231b3d23bb0f1 100644
--- a/compendium_v2/routes/charging.py
+++ b/compendium_v2/routes/charging.py
@@ -1,11 +1,9 @@
 import logging
 from typing import Any
 
-from flask import Blueprint, jsonify
-
 from compendium_v2.db.presentation_models import ChargingStructure
 from compendium_v2.routes import common
-
+from flask import Blueprint, jsonify
 
 routes = Blueprint('charging', __name__)
 logger = logging.getLogger(__name__)
@@ -32,6 +30,15 @@ CHARGING_STRUCTURE_RESPONSE_SCHEMA = {
 }
 
 
+def extract_data(entry: ChargingStructure):
+    return {
+        'nren': entry.nren.name,
+        'nren_country': entry.nren.country,
+        'year': int(entry.year),
+        'fee_type': entry.fee_type.value if entry.fee_type is not None else None,
+    }
+
+
 @routes.route('/', methods=['GET'])
 @common.require_accepts_json
 def charging_structure_view() -> Any:
@@ -46,16 +53,8 @@ def charging_structure_view() -> Any:
     :return:
     """
 
-    def _extract_data(entry: ChargingStructure):
-        return {
-            'nren': entry.nren.name,
-            'nren_country': entry.nren.country,
-            'year': int(entry.year),
-            'fee_type': entry.fee_type.value if entry.fee_type is not None else None,
-        }
-
     entries = sorted(
-        [_extract_data(entry) for entry in common.get_data(ChargingStructure)],
+        [extract_data(entry) for entry in common.get_data(ChargingStructure)],
         key=lambda d: (d['nren'], d['year'])
     )
     return jsonify(entries)
diff --git a/compendium_v2/routes/common.py b/compendium_v2/routes/common.py
index 866ccd5e90ba22b1b8de2166f04b744757a4fa48..53d3b6eac29d9ffa23ad4739a177f9cd13d714b7 100644
--- a/compendium_v2/routes/common.py
+++ b/compendium_v2/routes/common.py
@@ -69,3 +69,22 @@ def get_data(table_class):
     if not preview:
         select_statement = select_statement.where(table_class.year.not_in(select(PreviewYear.year)))
     return db.session.scalars(select_statement)
+
+
+def fetch_data_from_table(table_model, extract_function):
+    # Assuming 'table_model' has a relationship with NREN
+    entries = (
+        db.session.query(table_model)
+        .outerjoin(NREN, table_model.nren_id == NREN.id)
+        .order_by(NREN.name.asc(), table_model.year.desc())
+    )
+
+    is_admin = (not current_user.is_anonymous) and current_user.is_admin
+    preview = is_admin and request.args.get('preview') is not None
+
+    if not preview:
+        preview_subquery = select(PreviewYear.year).correlate(None)
+        entries = entries.filter(~table_model.year.in_(preview_subquery))
+
+    entries = entries.all()
+    return [extract_function(entry) for entry in entries]
diff --git a/compendium_v2/routes/connectivity.py b/compendium_v2/routes/connectivity.py
index 64692d9f8fd6621add1aedc419b9813383e8c162..080a526ccc51197d3a3833ab1a32224641f2e09c 100644
--- a/compendium_v2/routes/connectivity.py
+++ b/compendium_v2/routes/connectivity.py
@@ -204,6 +204,24 @@ COMMERCIAL_CHARGING_LEVEL_RESPONSE_SCHEMA = {
 }
 
 
+def connected_proportion_extract_data(connected_proportion: ConnectedProportion):
+    data = {
+        'nren': connected_proportion.nren.name,
+        'nren_country': connected_proportion.nren.country,
+        'year': connected_proportion.year,
+        'user_category': connected_proportion.user_category.value
+        if connected_proportion.user_category is not None else None,
+        'coverage': connected_proportion.coverage.value
+        if connected_proportion.coverage is not None else ConnectivityCoverage.unsure.value,
+        'number_connected': connected_proportion.number_connected,
+        'market_share': connected_proportion.market_share,
+        'users_served': connected_proportion.users_served
+
+    }
+
+    return data
+
+
 @routes.route('/proportion', methods=['GET'])
 @common.require_accepts_json
 def connected_proportion_view() -> Any:
@@ -219,25 +237,20 @@ def connected_proportion_view() -> Any:
     :return:
     """
 
-    def _extract_data(connected_proportion: ConnectedProportion):
-        data = {
-            'nren': connected_proportion.nren.name,
-            'nren_country': connected_proportion.nren.country,
-            'year': connected_proportion.year,
-            'user_category': connected_proportion.user_category.value
-            if connected_proportion.user_category is not None else None,
-            'coverage': connected_proportion.coverage.value
-            if connected_proportion.coverage is not None else ConnectivityCoverage.unsure.value,
-            'number_connected': connected_proportion.number_connected,
-            'market_share': connected_proportion.market_share,
-            'users_served': connected_proportion.users_served
-
-        }
+    entries = [connected_proportion_extract_data(entry) for entry in common.get_data(ConnectedProportion)]
+    return jsonify(entries)
 
-        return data
 
-    entries = [_extract_data(entry) for entry in common.get_data(ConnectedProportion)]
-    return jsonify(entries)
+def connectivity_level_extract_data(connectivity_level: ConnectivityLevel):
+    return {
+        'nren': connectivity_level.nren.name,
+        'nren_country': connectivity_level.nren.country,
+        'year': connectivity_level.year,
+        'user_category': connectivity_level.user_category.value,
+        'typical_speed': connectivity_level.typical_speed,
+        'highest_speed': connectivity_level.highest_speed,
+        'highest_speed_proportion': connectivity_level.highest_speed_proportion,
+    }
 
 
 @routes.route('/level', methods=['GET'])
@@ -254,20 +267,19 @@ def connectivity_level_view() -> Any:
 
     :return:
     """
+    entries = [connectivity_level_extract_data(entry) for entry in common.get_data(ConnectivityLevel)]
+    return jsonify(entries)
 
-    def _extract_data(connectivity_level: ConnectivityLevel):
-        return {
-            'nren': connectivity_level.nren.name,
-            'nren_country': connectivity_level.nren.country,
-            'year': connectivity_level.year,
-            'user_category': connectivity_level.user_category.value,
-            'typical_speed': connectivity_level.typical_speed,
-            'highest_speed': connectivity_level.highest_speed,
-            'highest_speed_proportion': connectivity_level.highest_speed_proportion,
-        }
 
-    entries = [_extract_data(entry) for entry in common.get_data(ConnectivityLevel)]
-    return jsonify(entries)
+def connection_carrier_extract_data(connection_carrier: ConnectionCarrier):
+    return {
+        'nren': connection_carrier.nren.name,
+        'nren_country': connection_carrier.nren.country,
+        'year': connection_carrier.year,
+        'user_category': connection_carrier.user_category.value,
+        'carry_mechanism': connection_carrier.carry_mechanism.value
+        if connection_carrier.carry_mechanism is not None else CarryMechanism.other.value,
+    }
 
 
 @routes.route('/carrier', methods=['GET'])
@@ -285,20 +297,23 @@ def connectection_carrier_view() -> Any:
     :return:
     """
 
-    def _extract_data(connection_carrier: ConnectionCarrier):
-        return {
-            'nren': connection_carrier.nren.name,
-            'nren_country': connection_carrier.nren.country,
-            'year': connection_carrier.year,
-            'user_category': connection_carrier.user_category.value,
-            'carry_mechanism': connection_carrier.carry_mechanism.value
-            if connection_carrier.carry_mechanism is not None else CarryMechanism.other.value,
-        }
-
-    entries = [_extract_data(entry) for entry in common.get_data(ConnectionCarrier)]
+    entries = [connection_carrier_extract_data(entry) for entry in common.get_data(ConnectionCarrier)]
     return jsonify(entries)
 
 
+def connectivity_load_extract_data(connectivity_load: ConnectivityLoad):
+    return {
+        'nren': connectivity_load.nren.name,
+        'nren_country': connectivity_load.nren.country,
+        'year': connectivity_load.year,
+        'user_category': connectivity_load.user_category.value,
+        'average_load_from_institutions': connectivity_load.average_load_from_institutions,
+        'average_load_to_institutions': connectivity_load.average_load_to_institutions,
+        'peak_load_from_institutions': connectivity_load.peak_load_from_institutions,
+        'peak_load_to_institutions': connectivity_load.peak_load_to_institutions,
+    }
+
+
 @routes.route('/load', methods=['GET'])
 @common.require_accepts_json
 def connectivity_load_view() -> Any:
@@ -314,22 +329,20 @@ def connectivity_load_view() -> Any:
     :return:
     """
 
-    def _extract_data(connectivity_load: ConnectivityLoad):
-        return {
-            'nren': connectivity_load.nren.name,
-            'nren_country': connectivity_load.nren.country,
-            'year': connectivity_load.year,
-            'user_category': connectivity_load.user_category.value,
-            'average_load_from_institutions': connectivity_load.average_load_from_institutions,
-            'average_load_to_institutions': connectivity_load.average_load_to_institutions,
-            'peak_load_from_institutions': connectivity_load.peak_load_from_institutions,
-            'peak_load_to_institutions': connectivity_load.peak_load_to_institutions,
-        }
-
-    entries = [_extract_data(entry) for entry in common.get_data(ConnectivityLoad)]
+    entries = [connectivity_load_extract_data(entry) for entry in common.get_data(ConnectivityLoad)]
     return jsonify(entries)
 
 
+def connectivity_growth_extract_data(connectivity_growth: ConnectivityGrowth):
+    return {
+        'nren': connectivity_growth.nren.name,
+        'nren_country': connectivity_growth.nren.country,
+        'year': connectivity_growth.year,
+        'user_category': connectivity_growth.user_category.value,
+        'growth': connectivity_growth.growth,
+    }
+
+
 @routes.route('/growth', methods=['GET'])
 @common.require_accepts_json
 def connectivity_growth_view() -> Any:
@@ -344,18 +357,26 @@ def connectivity_growth_view() -> Any:
 
     :return:
     """
+    entries = [connectivity_growth_extract_data(entry) for entry in common.get_data(ConnectivityGrowth)]
+    return jsonify(entries)
 
-    def _extract_data(connectivity_growth: ConnectivityGrowth):
-        return {
-            'nren': connectivity_growth.nren.name,
-            'nren_country': connectivity_growth.nren.country,
-            'year': connectivity_growth.year,
-            'user_category': connectivity_growth.user_category.value,
-            'growth': connectivity_growth.growth,
-        }
 
-    entries = [_extract_data(entry) for entry in common.get_data(ConnectivityGrowth)]
-    return jsonify(entries)
+def commercial_connectivity_extract_data(commercial_connectivity: CommercialConnectivity):
+    return {
+        'nren': commercial_connectivity.nren.name,
+        'nren_country': commercial_connectivity.nren.country,
+        'year': commercial_connectivity.year,
+        'commercial_r_and_e': commercial_connectivity.commercial_r_and_e.value
+        if commercial_connectivity.commercial_r_and_e is not None else None,
+        'commercial_general': commercial_connectivity.commercial_general.value
+        if commercial_connectivity.commercial_general is not None else None,
+        'commercial_collaboration': commercial_connectivity.commercial_collaboration.value
+        if commercial_connectivity.commercial_collaboration is not None else None,
+        'commercial_service_provider': commercial_connectivity.commercial_service_provider.value
+        if commercial_connectivity.commercial_service_provider is not None else None,
+        'university_spin_off': commercial_connectivity.university_spin_off.value
+        if commercial_connectivity.university_spin_off is not None else None,
+    }
 
 
 @routes.route('/commercial', methods=['GET'])
@@ -373,27 +394,24 @@ def commercial_connectivity_view() -> Any:
     :return:
     """
 
-    def _extract_data(commercial_connectivity: CommercialConnectivity):
-        return {
-            'nren': commercial_connectivity.nren.name,
-            'nren_country': commercial_connectivity.nren.country,
-            'year': commercial_connectivity.year,
-            'commercial_r_and_e': commercial_connectivity.commercial_r_and_e.value
-            if commercial_connectivity.commercial_r_and_e is not None else None,
-            'commercial_general': commercial_connectivity.commercial_general.value
-            if commercial_connectivity.commercial_general is not None else None,
-            'commercial_collaboration': commercial_connectivity.commercial_collaboration.value
-            if commercial_connectivity.commercial_collaboration is not None else None,
-            'commercial_service_provider': commercial_connectivity.commercial_service_provider.value
-            if commercial_connectivity.commercial_service_provider is not None else None,
-            'university_spin_off': commercial_connectivity.university_spin_off.value
-            if commercial_connectivity.university_spin_off is not None else None,
-        }
-
-    entries = [_extract_data(entry) for entry in common.get_data(CommercialConnectivity)]
+    entries = [commercial_connectivity_extract_data(entry) for entry in common.get_data(CommercialConnectivity)]
     return jsonify(entries)
 
 
+def commercial_charging_level_extract_data(commercial_charging_level: CommercialChargingLevel):
+    return {
+        'nren': commercial_charging_level.nren.name,
+        'nren_country': commercial_charging_level.nren.country,
+        'year': commercial_charging_level.year,
+        'collaboration': commercial_charging_level.collaboration.value
+        if commercial_charging_level.collaboration is not None else None,
+        'service_supplier': commercial_charging_level.service_supplier.value
+        if commercial_charging_level.service_supplier is not None else None,
+        'direct_peering': commercial_charging_level.direct_peering.value
+        if commercial_charging_level.direct_peering is not None else None,
+    }
+
+
 @routes.route('/charging', methods=['GET'])
 @common.require_accepts_json
 def commercial_charging_level_view() -> Any:
@@ -409,18 +427,5 @@ def commercial_charging_level_view() -> Any:
     :return:
     """
 
-    def _extract_data(commercial_charging_level: CommercialChargingLevel):
-        return {
-            'nren': commercial_charging_level.nren.name,
-            'nren_country': commercial_charging_level.nren.country,
-            'year': commercial_charging_level.year,
-            'collaboration': commercial_charging_level.collaboration.value
-            if commercial_charging_level.collaboration is not None else None,
-            'service_supplier': commercial_charging_level.service_supplier.value
-            if commercial_charging_level.service_supplier is not None else None,
-            'direct_peering': commercial_charging_level.direct_peering.value
-            if commercial_charging_level.direct_peering is not None else None,
-        }
-
-    entries = [_extract_data(entry) for entry in common.get_data(CommercialChargingLevel)]
+    entries = [commercial_charging_level_extract_data(entry) for entry in common.get_data(CommercialChargingLevel)]
     return jsonify(entries)
diff --git a/compendium_v2/routes/data_download.py b/compendium_v2/routes/data_download.py
new file mode 100644
index 0000000000000000000000000000000000000000..a36f505afd4443f88f8902fbcb9fb1eb7be78c83
--- /dev/null
+++ b/compendium_v2/routes/data_download.py
@@ -0,0 +1,110 @@
+import logging
+from typing import List, Optional, Dict, Any, Sequence
+
+from compendium_v2.db.presentation_models import BudgetEntry, CommercialChargingLevel, CommercialConnectivity, \
+    ConnectedProportion, ConnectionCarrier, ConnectivityGrowth, ConnectivityLevel, ConnectivityLoad, ECProject, \
+    FundingSource, ChargingStructure, InstitutionURLs, NRENService, NrenStaff, ParentOrganization, SubOrganization, \
+    TrafficVolume, Policy
+from compendium_v2.routes import common
+from compendium_v2.routes.budget import extract_data as budget_view
+from compendium_v2.routes.charging import extract_data as charging_view
+from compendium_v2.routes.common import fetch_data_from_table
+from compendium_v2.routes.connectivity import commercial_charging_level_extract_data
+from compendium_v2.routes.connectivity import commercial_connectivity_extract_data
+from compendium_v2.routes.connectivity import connected_proportion_extract_data
+from compendium_v2.routes.connectivity import connection_carrier_extract_data
+from compendium_v2.routes.connectivity import connectivity_growth_extract_data
+from compendium_v2.routes.connectivity import connectivity_level_extract_data
+from compendium_v2.routes.connectivity import connectivity_load_extract_data
+from compendium_v2.routes.ec_projects import ec_project_extract_data
+from compendium_v2.routes.funding import extract_data as funding_view
+from compendium_v2.routes.institutions_urls import institution_extract_data
+from compendium_v2.routes.nren_services import nren_service_extract_data
+from compendium_v2.routes.organization import extract_parent_organization, extract_sub_organization
+from compendium_v2.routes.policy import policy_extract_data
+from compendium_v2.routes.staff import staff_extract_data
+from compendium_v2.routes.traffic import traffic_volume_extract_data
+from flask import Blueprint
+
+routes = Blueprint('data_download', __name__)
+logger = logging.getLogger(__name__)
+
+
+@routes.route('/', methods=['GET'])
+@common.require_accepts_json
+def fetch_and_combine_data() -> Sequence[Optional[Dict[str, Any]]]:
+    result_set: List[Optional[Dict[str, Any]]] = []
+
+    # Fetch and extract data from the BudgetEntry table and add it to the result set
+    entries = fetch_data_from_table(BudgetEntry, budget_view)
+    result_set.append({'name': 'Budget', 'data': entries})
+
+    # Fetch and extract data from the FundingSource table and add it to the result set
+    entries = fetch_data_from_table(FundingSource, funding_view)
+    result_set.append({'name': 'Funding Source', 'data': entries})
+
+    # Fetch and extract data from the ChargingStructure table and add it to the result set
+    entries = fetch_data_from_table(ChargingStructure, charging_view)
+    result_set.append({'name': 'Charging Structure', 'data': entries})
+
+    # Fetch and extract data from the CommercialChargingLevel table and add it to the result set
+    entries = fetch_data_from_table(CommercialChargingLevel, commercial_charging_level_extract_data)
+    result_set.append({'name': 'Commercial Charging Level', 'data': entries})
+
+    # Fetch and extract data from the ConnectedProportion table and add it to the result set
+    entries = fetch_data_from_table(ConnectedProportion, connected_proportion_extract_data)
+    result_set.append({'name': 'Connected Proportion', 'data': entries})
+
+    # Fetch and extract data from the ConnectivityLevel table and add it to the result set
+    entries = fetch_data_from_table(ConnectivityLevel, connectivity_level_extract_data)
+    result_set.append({'name': 'Connectivity Level', 'data': entries})
+
+    # Fetch and extract data from the ConnectionCarrier table and add it to the result set
+    entries = fetch_data_from_table(ConnectionCarrier, connection_carrier_extract_data)
+    result_set.append({'name': 'Connection Carrier', 'data': entries})
+
+    # Fetch and extract data from the ConnectivityLoad table and add it to the result set
+    entries = fetch_data_from_table(ConnectivityLoad, connectivity_load_extract_data)
+    result_set.append({'name': 'Connectivity Load', 'data': entries})
+
+    # Fetch and extract data from the ConnectivityGrowth table
+    entries = fetch_data_from_table(ConnectivityGrowth, connectivity_growth_extract_data)
+    result_set.append({'name': 'Connectivity Growth', 'data': entries})
+
+    # Fetch and extract data from the CommercialConnectivity table and add it to the result set
+    entries = fetch_data_from_table(CommercialConnectivity, commercial_connectivity_extract_data)
+    result_set.append({'name': 'Commercial Connectivity', 'data': entries})
+
+    # Fetch and extract data from the ECProject table and add it to the result set
+    entries = fetch_data_from_table(ECProject, ec_project_extract_data)
+    result_set.append({'name': 'EC Project', 'data': entries})
+
+    # Fetch and extract data from the InstitutionURLs table and add it to the result set
+    entries = fetch_data_from_table(InstitutionURLs, institution_extract_data)
+    result_set.append({'name': 'Institutions', 'data': entries})
+
+    # Fetch and extract data from the NRENService table and add it to the result set
+    entries = fetch_data_from_table(NRENService, nren_service_extract_data)
+    result_set.append({'name': 'Service', 'data': entries})
+
+    # Fetch and extract data from the ParentOrganization table and add it to the result set
+    entries = fetch_data_from_table(ParentOrganization, extract_parent_organization)
+    result_set.append({'name': 'Parent Organization', 'data': entries})
+
+    # Fetch and extract data from the SubOrganization table and add it to the result set
+    entries = fetch_data_from_table(SubOrganization, extract_sub_organization)
+    result_set.append({'name': 'Sub-Organization', 'data': entries})
+
+    # Fetch and extract data from the Policy table and add it to the result set
+    entries = fetch_data_from_table(Policy, policy_extract_data)
+    result_set.append({'name': 'Policy', 'data': entries})
+
+    # Fetch and extract data from the NrenStaff table and add it to the result set
+    entries = fetch_data_from_table(NrenStaff, staff_extract_data)
+    result_set.append({'name': 'Staff', 'data': entries})
+
+    # Fetch and extract data from the TrafficVolume table and add it to the result set
+    entries = fetch_data_from_table(TrafficVolume, traffic_volume_extract_data)
+    result_set.append({'name': 'Traffic Volume', 'data': entries})
+
+    return result_set
diff --git a/compendium_v2/routes/ec_projects.py b/compendium_v2/routes/ec_projects.py
index 501d2206bdf3238a738b5a71af14bea75aa3f68a..4b072198e0fccfba64c7b946b601706d757731ac 100644
--- a/compendium_v2/routes/ec_projects.py
+++ b/compendium_v2/routes/ec_projects.py
@@ -1,11 +1,9 @@
 import logging
 from typing import Any
 
-from flask import Blueprint, jsonify
-
 from compendium_v2.db.presentation_models import ECProject
 from compendium_v2.routes import common
-
+from flask import Blueprint, jsonify
 
 routes = Blueprint('ec-projects', __name__)
 logger = logging.getLogger(__name__)
@@ -32,6 +30,15 @@ EC_PROJECTS_RESPONSE_SCHEMA = {
 }
 
 
+def ec_project_extract_data(entry: ECProject):
+    return {
+        'nren': entry.nren.name,
+        'nren_country': entry.nren.country,
+        'year': entry.year,
+        'project': entry.project
+    }
+
+
 @routes.route('/', methods=['GET'])
 @common.require_accepts_json
 def ec_projects_view() -> Any:
@@ -47,16 +54,8 @@ def ec_projects_view() -> Any:
     :return:
     """
 
-    def _extract_project(entry: ECProject):
-        return {
-            'nren': entry.nren.name,
-            'nren_country': entry.nren.country,
-            'year': entry.year,
-            'project': entry.project
-        }
-
     result = sorted(
-        [_extract_project(project) for project in common.get_data(ECProject)],
+        [ec_project_extract_data(project) for project in common.get_data(ECProject)],
         key=lambda d: (d['nren'], d['year'], d['project'])
     )
     return jsonify(result)
diff --git a/compendium_v2/routes/funding.py b/compendium_v2/routes/funding.py
index 0c1101900f038bc198e689d21e10962921022e9a..904f21e1cb458cf3df15a396f012bdb6d4a56ecf 100644
--- a/compendium_v2/routes/funding.py
+++ b/compendium_v2/routes/funding.py
@@ -1,11 +1,9 @@
 import logging
-
-from flask import Blueprint, jsonify
-
-from compendium_v2.routes import common
-from compendium_v2.db.presentation_models import FundingSource
 from typing import Any
 
+from compendium_v2.db.presentation_models import FundingSource
+from compendium_v2.routes import common
+from flask import Blueprint, jsonify
 
 routes = Blueprint('funding', __name__)
 logger = logging.getLogger(__name__)
@@ -37,6 +35,19 @@ FUNDING_RESPONSE_SCHEMA = {
 }
 
 
+def extract_data(entry: FundingSource):
+    return {
+        'nren': entry.nren.name,
+        'nren_country': entry.nren.country,
+        'year': entry.year,
+        'client_institutions': float(entry.client_institutions),
+        'european_funding': float(entry.european_funding),
+        'gov_public_bodies': float(entry.gov_public_bodies),
+        'commercial': float(entry.commercial),
+        'other': float(entry.other)
+    }
+
+
 @routes.route('/', methods=['GET'])
 @common.require_accepts_json
 def funding_source_view() -> Any:
@@ -51,20 +62,8 @@ def funding_source_view() -> Any:
     :return:
     """
 
-    def _extract_data(entry: FundingSource):
-        return {
-            'nren': entry.nren.name,
-            'nren_country': entry.nren.country,
-            'year': entry.year,
-            'client_institutions': float(entry.client_institutions),
-            'european_funding': float(entry.european_funding),
-            'gov_public_bodies': float(entry.gov_public_bodies),
-            'commercial': float(entry.commercial),
-            'other': float(entry.other)
-        }
-
     entries = sorted(
-        [_extract_data(entry) for entry in common.get_data(FundingSource)],
+        [extract_data(entry) for entry in common.get_data(FundingSource)],
         key=lambda d: (d['nren'], d['year'])
     )
     return jsonify(entries)
diff --git a/compendium_v2/routes/institutions_urls.py b/compendium_v2/routes/institutions_urls.py
index 45c71287bb1ed025810df7377e0d2c4f39a6a352..6b13487d8d7d0ac2ba426cc39824cc6759138f97 100644
--- a/compendium_v2/routes/institutions_urls.py
+++ b/compendium_v2/routes/institutions_urls.py
@@ -1,9 +1,8 @@
 from typing import Any
 
-from flask import Blueprint, jsonify
-
 from compendium_v2.db.presentation_models import InstitutionURLs
 from compendium_v2.routes import common
+from flask import Blueprint, jsonify
 
 routes = Blueprint('institutions-urls', __name__)
 
@@ -27,6 +26,15 @@ INSTITUTION_URLS_RESPONSE_SCHEMA = {
 }
 
 
+def institution_extract_data(institution: InstitutionURLs) -> dict:
+    return {
+        'nren': institution.nren.name,
+        'nren_country': institution.nren.country,
+        'year': institution.year,
+        'urls': institution.urls
+    }
+
+
 @routes.route('/', methods=['GET'])
 @common.require_accepts_json
 def institutions_urls_view() -> Any:
@@ -46,18 +54,10 @@ def institutions_urls_view() -> Any:
     :return:
     """
 
-    def _extract_data(institution: InstitutionURLs) -> dict:
-        return {
-            'nren': institution.nren.name,
-            'nren_country': institution.nren.country,
-            'year': institution.year,
-            'urls': institution.urls
-        }
-
     entries = []
     records = common.get_data(InstitutionURLs)
 
     for entry in records:
-        entries.append(_extract_data(entry))
+        entries.append(institution_extract_data(entry))
 
     return jsonify(entries)
diff --git a/compendium_v2/routes/nren_services.py b/compendium_v2/routes/nren_services.py
index f4ed08b9a7242e9111e68988e06b29c27abd4fa6..6488f6a90f2f71b534ebd5d90b9ca4ddddb92f93 100644
--- a/compendium_v2/routes/nren_services.py
+++ b/compendium_v2/routes/nren_services.py
@@ -33,6 +33,20 @@ NREN_SERVICES_RESPONSE_SCHEMA = {
 }
 
 
+def nren_service_extract_data(nren_service: NRENService) -> dict:
+    return {
+        'nren': nren_service.nren.name,
+        'nren_country': nren_service.nren.country,
+        'year': nren_service.year,
+        'product_name': nren_service.product_name,
+        'additional_information': nren_service.additional_information,
+        'official_description': nren_service.official_description,
+        'service_name': nren_service.service.name,
+        'service_category': nren_service.service.category.value,
+        'service_description': nren_service.service.description
+    }
+
+
 @routes.route('/', methods=['GET'])
 @common.require_accepts_json
 def nren_service_view() -> Any:
@@ -47,20 +61,6 @@ def nren_service_view() -> Any:
 
     :return:
     """
-
-    def _extract_data(nren_service: NRENService) -> dict:
-        return {
-            'nren': nren_service.nren.name,
-            'nren_country': nren_service.nren.country,
-            'year': nren_service.year,
-            'product_name': nren_service.product_name,
-            'additional_information': nren_service.additional_information,
-            'official_description': nren_service.official_description,
-            'service_name': nren_service.service.name,
-            'service_category': nren_service.service.category.value,
-            'service_description': nren_service.service.description
-        }
-
-    entries = [_extract_data(entry) for entry in common.get_data(NRENService)]
+    entries = [nren_service_extract_data(entry) for entry in common.get_data(NRENService)]
 
     return jsonify(entries)
diff --git a/compendium_v2/routes/organization.py b/compendium_v2/routes/organization.py
index b39f7fd859b3a3f3261cf26f3381b03bb641fe40..d870dcdb69c917d3d1025612626ad4c960e20c09 100644
--- a/compendium_v2/routes/organization.py
+++ b/compendium_v2/routes/organization.py
@@ -6,7 +6,6 @@ from flask import Blueprint, jsonify
 from compendium_v2.db.presentation_models import ParentOrganization, SubOrganization
 from compendium_v2.routes import common
 
-
 routes = Blueprint('organization', __name__)
 logger = logging.getLogger(__name__)
 
@@ -49,6 +48,15 @@ ORGANIZATION_RESPONSE_SCHEMA = {
 }
 
 
+def extract_parent_organization(entry: ParentOrganization):
+    return {
+        'nren': entry.nren.name,
+        'nren_country': entry.nren.country,
+        'year': entry.year,
+        'name': entry.organization
+    }
+
+
 @routes.route('/parent', methods=['GET'])
 @common.require_accepts_json
 def parent_organization_view() -> Any:
@@ -64,22 +72,24 @@ def parent_organization_view() -> Any:
     :return:
     """
 
-    def _extract_parent(entry: ParentOrganization):
-        return {
-            'nren': entry.nren.name,
-            'nren_country': entry.nren.country,
-            'year': entry.year,
-            'name': entry.organization
-        }
-
     result = sorted(
-        [_extract_parent(org) for org in common.get_data(ParentOrganization)],
+        [extract_parent_organization(org) for org in common.get_data(ParentOrganization)],
         key=lambda d: (d['nren'], d['year'], d['name'])
     )
 
     return jsonify(result)
 
 
+def extract_sub_organization(entry: SubOrganization):
+    return {
+        'nren': entry.nren.name,
+        'nren_country': entry.nren.country,
+        'year': entry.year,
+        'name': entry.organization,
+        'role': entry.role
+    }
+
+
 @routes.route('/sub', methods=['GET'])
 @common.require_accepts_json
 def sub_organization_view() -> Any:
@@ -95,17 +105,8 @@ def sub_organization_view() -> Any:
     :return:
     """
 
-    def _extract_sub(entry: SubOrganization):
-        return {
-            'nren': entry.nren.name,
-            'nren_country': entry.nren.country,
-            'year': entry.year,
-            'name': entry.organization,
-            'role': entry.role
-        }
-
     result = sorted(
-        [_extract_sub(org) for org in common.get_data(SubOrganization)],
+        [extract_sub_organization(org) for org in common.get_data(SubOrganization)],
         key=lambda d: (d['nren'], d['year'], d['name'])
     )
     return jsonify(result)
diff --git a/compendium_v2/routes/policy.py b/compendium_v2/routes/policy.py
index a97dcf224517acf82519f9f77f932d476a353735..1bd10ae139e2f1f8092afa48228fd3e3d242433b 100644
--- a/compendium_v2/routes/policy.py
+++ b/compendium_v2/routes/policy.py
@@ -37,6 +37,22 @@ POLICY_RESPONSE_SCHEMA = {
 }
 
 
+def policy_extract_data(entry: Policy):
+    return {
+        'nren': entry.nren.name,
+        'nren_country': entry.nren.country,
+        'year': entry.year,
+        'strategic_plan': entry.strategic_plan,
+        'environmental': entry.environmental,
+        'equal_opportunity': entry.equal_opportunity,
+        'connectivity': entry.connectivity,
+        'acceptable_use': entry.acceptable_use,
+        'privacy_notice': entry.privacy_notice,
+        'data_protection': entry.data_protection,
+        'gender_equality': entry.gender_equality
+    }
+
+
 @routes.route('/', methods=['GET'])
 @common.require_accepts_json
 def policy_view() -> Any:
@@ -52,20 +68,5 @@ def policy_view() -> Any:
     :return:
     """
 
-    def _extract_data(entry: Policy):
-        return {
-            'nren': entry.nren.name,
-            'nren_country': entry.nren.country,
-            'year': entry.year,
-            'strategic_plan': entry.strategic_plan,
-            'environmental': entry.environmental,
-            'equal_opportunity': entry.equal_opportunity,
-            'connectivity': entry.connectivity,
-            'acceptable_use': entry.acceptable_use,
-            'privacy_notice': entry.privacy_notice,
-            'data_protection': entry.data_protection,
-            'gender_equality': entry.gender_equality
-        }
-
-    entries = [_extract_data(entry) for entry in common.get_data(Policy)]
+    entries = [policy_extract_data(entry) for entry in common.get_data(Policy)]
     return jsonify(entries)
diff --git a/compendium_v2/routes/staff.py b/compendium_v2/routes/staff.py
index 3a23cd6503dd12fc91ad6411cb9023372f191e70..7e2cd343db68422d8f2a5d71a139cabaae3b7104 100644
--- a/compendium_v2/routes/staff.py
+++ b/compendium_v2/routes/staff.py
@@ -6,7 +6,6 @@ from compendium_v2.db.presentation_models import NrenStaff
 from compendium_v2.routes import common
 from typing import Any
 
-
 routes = Blueprint('staff', __name__)
 logger = logging.getLogger(__name__)
 
@@ -36,6 +35,18 @@ STAFF_RESPONSE_SCHEMA = {
 }
 
 
+def staff_extract_data(entry: NrenStaff):
+    return {
+        'nren': entry.nren.name,
+        'nren_country': entry.nren.country,
+        'year': entry.year,
+        'permanent_fte': float(entry.permanent_fte),
+        'subcontracted_fte': float(entry.subcontracted_fte),
+        'technical_fte': float(entry.technical_fte),
+        'non_technical_fte': float(entry.non_technical_fte)
+    }
+
+
 @routes.route('/', methods=['GET'])
 @common.require_accepts_json
 def staff_view() -> Any:
@@ -50,16 +61,5 @@ def staff_view() -> Any:
     :return:
     """
 
-    def _extract_data(entry: NrenStaff):
-        return {
-            'nren': entry.nren.name,
-            'nren_country': entry.nren.country,
-            'year': entry.year,
-            'permanent_fte': float(entry.permanent_fte),
-            'subcontracted_fte': float(entry.subcontracted_fte),
-            'technical_fte': float(entry.technical_fte),
-            'non_technical_fte': float(entry.non_technical_fte)
-        }
-
-    entries = [_extract_data(entry) for entry in common.get_data(NrenStaff)]
+    entries = [staff_extract_data(entry) for entry in common.get_data(NrenStaff)]
     return jsonify(entries)
diff --git a/compendium_v2/routes/traffic.py b/compendium_v2/routes/traffic.py
index 56668fc41cf347be32c08afece9e773244cd7417..2df586d57961205a22d49f4b912ca6c4d3987e6f 100644
--- a/compendium_v2/routes/traffic.py
+++ b/compendium_v2/routes/traffic.py
@@ -6,7 +6,6 @@ from compendium_v2.routes import common
 from compendium_v2.db.presentation_models import TrafficVolume
 from typing import Any
 
-
 routes = Blueprint('traffic', __name__)
 logger = logging.getLogger(__name__)
 
@@ -36,6 +35,18 @@ TRAFFIC_RESPONSE_SCHEMA = {
 }
 
 
+def traffic_volume_extract_data(entry: TrafficVolume):
+    return {
+        'nren': entry.nren.name,
+        'nren_country': entry.nren.country,
+        'year': entry.year,
+        'to_customers': float(entry.to_customers),
+        'from_customers': float(entry.from_customers),
+        'to_external': float(entry.to_external),
+        'from_external': float(entry.from_external)
+    }
+
+
 @routes.route('/', methods=['GET'])
 @common.require_accepts_json
 def traffic_volume_view() -> Any:
@@ -50,19 +61,8 @@ def traffic_volume_view() -> Any:
     :return:
     """
 
-    def _extract_data(entry: TrafficVolume):
-        return {
-            'nren': entry.nren.name,
-            'nren_country': entry.nren.country,
-            'year': entry.year,
-            'to_customers': float(entry.to_customers),
-            'from_customers': float(entry.from_customers),
-            'to_external': float(entry.to_external),
-            'from_external': float(entry.from_external)
-        }
-
     entries = sorted(
-        [_extract_data(entry) for entry in common.get_data(TrafficVolume)],
+        [traffic_volume_extract_data(entry) for entry in common.get_data(TrafficVolume)],
         key=lambda d: (d['nren'], d['year'])
     )
     return jsonify(entries)
diff --git a/compendium_v2/static/survey-bundle.js b/compendium_v2/static/survey-bundle.js
index 0b94ffa6da18b5ac529e13a61e1ee286f95cf430..9b58ee3c038d86e41321741e2f3561df6647cc15 100644
--- a/compendium_v2/static/survey-bundle.js
+++ b/compendium_v2/static/survey-bundle.js
@@ -1,5 +1,5 @@
 /*! For license information please see survey-bundle.js.LICENSE.txt */
-(()=>{var e={184:(e,t)=>{var n;!function(){"use strict";var r={}.hasOwnProperty;function o(){for(var e=[],t=0;t<arguments.length;t++){var n=arguments[t];if(n){var i=typeof n;if("string"===i||"number"===i)e.push(n);else if(Array.isArray(n)){if(n.length){var s=o.apply(null,n);s&&e.push(s)}}else if("object"===i){if(n.toString!==Object.prototype.toString&&!n.toString.toString().includes("[native code]")){e.push(n.toString());continue}for(var a in n)r.call(n,a)&&n[a]&&e.push(a)}}}return e.join(" ")}e.exports?(o.default=o,e.exports=o):void 0===(n=function(){return o}.apply(t,[]))||(e.exports=n)}()},143:e=>{"use strict";e.exports=function(e,t,n,r,o,i,s,a){if(!e){var l;if(void 0===t)l=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var u=[n,r,o,i,s,a],c=0;(l=new Error(t.replace(/%s/g,(function(){return u[c++]})))).name="Invariant Violation"}throw l.framesToPop=1,l}}},448:(e,t,n)=>{"use strict";var r=n(294),o=n(840);function i(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var s=new Set,a={};function l(e,t){u(e,t),u(e+"Capture",t)}function u(e,t){for(a[e]=t,e=0;e<t.length;e++)s.add(t[e])}var c=!("undefined"==typeof window||void 0===window.document||void 0===window.document.createElement),p=Object.prototype.hasOwnProperty,d=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,h={},f={};function g(e,t,n,r,o,i,s){this.acceptsBooleans=2===t||3===t||4===t,this.attributeName=r,this.attributeNamespace=o,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=i,this.removeEmptyString=s}var m={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach((function(e){m[e]=new g(e,0,!1,e,null,!1,!1)})),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach((function(e){var t=e[0];m[t]=new g(t,1,!1,e[1],null,!1,!1)})),["contentEditable","draggable","spellCheck","value"].forEach((function(e){m[e]=new g(e,2,!1,e.toLowerCase(),null,!1,!1)})),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach((function(e){m[e]=new g(e,2,!1,e,null,!1,!1)})),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach((function(e){m[e]=new g(e,3,!1,e.toLowerCase(),null,!1,!1)})),["checked","multiple","muted","selected"].forEach((function(e){m[e]=new g(e,3,!0,e,null,!1,!1)})),["capture","download"].forEach((function(e){m[e]=new g(e,4,!1,e,null,!1,!1)})),["cols","rows","size","span"].forEach((function(e){m[e]=new g(e,6,!1,e,null,!1,!1)})),["rowSpan","start"].forEach((function(e){m[e]=new g(e,5,!1,e.toLowerCase(),null,!1,!1)}));var y=/[\-:]([a-z])/g;function v(e){return e[1].toUpperCase()}function b(e,t,n,r){var o=m.hasOwnProperty(t)?m[t]:null;(null!==o?0!==o.type:r||!(2<t.length)||"o"!==t[0]&&"O"!==t[0]||"n"!==t[1]&&"N"!==t[1])&&(function(e,t,n,r){if(null==t||function(e,t,n,r){if(null!==n&&0===n.type)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return!r&&(null!==n?!n.acceptsBooleans:"data-"!==(e=e.toLowerCase().slice(0,5))&&"aria-"!==e);default:return!1}}(e,t,n,r))return!0;if(r)return!1;if(null!==n)switch(n.type){case 3:return!t;case 4:return!1===t;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}(t,n,o,r)&&(n=null),r||null===o?function(e){return!!p.call(f,e)||!p.call(h,e)&&(d.test(e)?f[e]=!0:(h[e]=!0,!1))}(t)&&(null===n?e.removeAttribute(t):e.setAttribute(t,""+n)):o.mustUseProperty?e[o.propertyName]=null===n?3!==o.type&&"":n:(t=o.attributeName,r=o.attributeNamespace,null===n?e.removeAttribute(t):(n=3===(o=o.type)||4===o&&!0===n?"":""+n,r?e.setAttributeNS(r,t,n):e.setAttribute(t,n))))}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach((function(e){var t=e.replace(y,v);m[t]=new g(t,1,!1,e,null,!1,!1)})),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach((function(e){var t=e.replace(y,v);m[t]=new g(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)})),["xml:base","xml:lang","xml:space"].forEach((function(e){var t=e.replace(y,v);m[t]=new g(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)})),["tabIndex","crossOrigin"].forEach((function(e){m[e]=new g(e,1,!1,e.toLowerCase(),null,!1,!1)})),m.xlinkHref=new g("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach((function(e){m[e]=new g(e,1,!1,e.toLowerCase(),null,!0,!0)}));var C=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,w=Symbol.for("react.element"),x=Symbol.for("react.portal"),P=Symbol.for("react.fragment"),S=Symbol.for("react.strict_mode"),V=Symbol.for("react.profiler"),E=Symbol.for("react.provider"),O=Symbol.for("react.context"),T=Symbol.for("react.forward_ref"),_=Symbol.for("react.suspense"),R=Symbol.for("react.suspense_list"),I=Symbol.for("react.memo"),D=Symbol.for("react.lazy");Symbol.for("react.scope"),Symbol.for("react.debug_trace_mode");var j=Symbol.for("react.offscreen");Symbol.for("react.legacy_hidden"),Symbol.for("react.cache"),Symbol.for("react.tracing_marker");var k=Symbol.iterator;function M(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=k&&e[k]||e["@@iterator"])?e:null}var L,q=Object.assign;function N(e){if(void 0===L)try{throw Error()}catch(e){var t=e.stack.trim().match(/\n( *(at )?)/);L=t&&t[1]||""}return"\n"+L+e}var A=!1;function B(e,t){if(!e||A)return"";A=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),"object"==typeof Reflect&&Reflect.construct){try{Reflect.construct(t,[])}catch(e){var r=e}Reflect.construct(e,[],t)}else{try{t.call()}catch(e){r=e}e.call(t.prototype)}else{try{throw Error()}catch(e){r=e}e()}}catch(t){if(t&&r&&"string"==typeof t.stack){for(var o=t.stack.split("\n"),i=r.stack.split("\n"),s=o.length-1,a=i.length-1;1<=s&&0<=a&&o[s]!==i[a];)a--;for(;1<=s&&0<=a;s--,a--)if(o[s]!==i[a]){if(1!==s||1!==a)do{if(s--,0>--a||o[s]!==i[a]){var l="\n"+o[s].replace(" at new "," at ");return e.displayName&&l.includes("<anonymous>")&&(l=l.replace("<anonymous>",e.displayName)),l}}while(1<=s&&0<=a);break}}}finally{A=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?N(e):""}function F(e){switch(e.tag){case 5:return N(e.type);case 16:return N("Lazy");case 13:return N("Suspense");case 19:return N("SuspenseList");case 0:case 2:case 15:return B(e.type,!1);case 11:return B(e.type.render,!1);case 1:return B(e.type,!0);default:return""}}function Q(e){if(null==e)return null;if("function"==typeof e)return e.displayName||e.name||null;if("string"==typeof e)return e;switch(e){case P:return"Fragment";case x:return"Portal";case V:return"Profiler";case S:return"StrictMode";case _:return"Suspense";case R:return"SuspenseList"}if("object"==typeof e)switch(e.$$typeof){case O:return(e.displayName||"Context")+".Consumer";case E:return(e._context.displayName||"Context")+".Provider";case T:var t=e.render;return(e=e.displayName)||(e=""!==(e=t.displayName||t.name||"")?"ForwardRef("+e+")":"ForwardRef"),e;case I:return null!==(t=e.displayName||null)?t:Q(e.type)||"Memo";case D:t=e._payload,e=e._init;try{return Q(e(t))}catch(e){}}return null}function z(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=(e=t.render).displayName||e.name||"",t.displayName||(""!==e?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return Q(t);case 8:return t===S?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if("function"==typeof t)return t.displayName||t.name||null;if("string"==typeof t)return t}return null}function H(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":case"object":return e;default:return""}}function U(e){var t=e.type;return(e=e.nodeName)&&"input"===e.toLowerCase()&&("checkbox"===t||"radio"===t)}function W(e){e._valueTracker||(e._valueTracker=function(e){var t=U(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&void 0!==n&&"function"==typeof n.get&&"function"==typeof n.set){var o=n.get,i=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return o.call(this)},set:function(e){r=""+e,i.call(this,e)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(e){r=""+e},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}(e))}function J(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=U(e)?e.checked?"true":"false":e.value),(e=r)!==n&&(t.setValue(e),!0)}function $(e){if(void 0===(e=e||("undefined"!=typeof document?document:void 0)))return null;try{return e.activeElement||e.body}catch(t){return e.body}}function G(e,t){var n=t.checked;return q({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:null!=n?n:e._wrapperState.initialChecked})}function K(e,t){var n=null==t.defaultValue?"":t.defaultValue,r=null!=t.checked?t.checked:t.defaultChecked;n=H(null!=t.value?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:"checkbox"===t.type||"radio"===t.type?null!=t.checked:null!=t.value}}function Z(e,t){null!=(t=t.checked)&&b(e,"checked",t,!1)}function Y(e,t){Z(e,t);var n=H(t.value),r=t.type;if(null!=n)"number"===r?(0===n&&""===e.value||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if("submit"===r||"reset"===r)return void e.removeAttribute("value");t.hasOwnProperty("value")?ee(e,t.type,n):t.hasOwnProperty("defaultValue")&&ee(e,t.type,H(t.defaultValue)),null==t.checked&&null!=t.defaultChecked&&(e.defaultChecked=!!t.defaultChecked)}function X(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!("submit"!==r&&"reset"!==r||void 0!==t.value&&null!==t.value))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}""!==(n=e.name)&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,""!==n&&(e.name=n)}function ee(e,t,n){"number"===t&&$(e.ownerDocument)===e||(null==n?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var te=Array.isArray;function ne(e,t,n,r){if(e=e.options,t){t={};for(var o=0;o<n.length;o++)t["$"+n[o]]=!0;for(n=0;n<e.length;n++)o=t.hasOwnProperty("$"+e[n].value),e[n].selected!==o&&(e[n].selected=o),o&&r&&(e[n].defaultSelected=!0)}else{for(n=""+H(n),t=null,o=0;o<e.length;o++){if(e[o].value===n)return e[o].selected=!0,void(r&&(e[o].defaultSelected=!0));null!==t||e[o].disabled||(t=e[o])}null!==t&&(t.selected=!0)}}function re(e,t){if(null!=t.dangerouslySetInnerHTML)throw Error(i(91));return q({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function oe(e,t){var n=t.value;if(null==n){if(n=t.children,t=t.defaultValue,null!=n){if(null!=t)throw Error(i(92));if(te(n)){if(1<n.length)throw Error(i(93));n=n[0]}t=n}null==t&&(t=""),n=t}e._wrapperState={initialValue:H(n)}}function ie(e,t){var n=H(t.value),r=H(t.defaultValue);null!=n&&((n=""+n)!==e.value&&(e.value=n),null==t.defaultValue&&e.defaultValue!==n&&(e.defaultValue=n)),null!=r&&(e.defaultValue=""+r)}function se(e){var t=e.textContent;t===e._wrapperState.initialValue&&""!==t&&null!==t&&(e.value=t)}function ae(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function le(e,t){return null==e||"http://www.w3.org/1999/xhtml"===e?ae(t):"http://www.w3.org/2000/svg"===e&&"foreignObject"===t?"http://www.w3.org/1999/xhtml":e}var ue,ce,pe=(ce=function(e,t){if("http://www.w3.org/2000/svg"!==e.namespaceURI||"innerHTML"in e)e.innerHTML=t;else{for((ue=ue||document.createElement("div")).innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=ue.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}},"undefined"!=typeof MSApp&&MSApp.execUnsafeLocalFunction?function(e,t,n,r){MSApp.execUnsafeLocalFunction((function(){return ce(e,t)}))}:ce);function de(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&3===n.nodeType)return void(n.nodeValue=t)}e.textContent=t}var he={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},fe=["Webkit","ms","Moz","O"];function ge(e,t,n){return null==t||"boolean"==typeof t||""===t?"":n||"number"!=typeof t||0===t||he.hasOwnProperty(e)&&he[e]?(""+t).trim():t+"px"}function me(e,t){for(var n in e=e.style,t)if(t.hasOwnProperty(n)){var r=0===n.indexOf("--"),o=ge(n,t[n],r);"float"===n&&(n="cssFloat"),r?e.setProperty(n,o):e[n]=o}}Object.keys(he).forEach((function(e){fe.forEach((function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),he[t]=he[e]}))}));var ye=q({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function ve(e,t){if(t){if(ye[e]&&(null!=t.children||null!=t.dangerouslySetInnerHTML))throw Error(i(137,e));if(null!=t.dangerouslySetInnerHTML){if(null!=t.children)throw Error(i(60));if("object"!=typeof t.dangerouslySetInnerHTML||!("__html"in t.dangerouslySetInnerHTML))throw Error(i(61))}if(null!=t.style&&"object"!=typeof t.style)throw Error(i(62))}}function be(e,t){if(-1===e.indexOf("-"))return"string"==typeof t.is;switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var Ce=null;function we(e){return(e=e.target||e.srcElement||window).correspondingUseElement&&(e=e.correspondingUseElement),3===e.nodeType?e.parentNode:e}var xe=null,Pe=null,Se=null;function Ve(e){if(e=Co(e)){if("function"!=typeof xe)throw Error(i(280));var t=e.stateNode;t&&(t=xo(t),xe(e.stateNode,e.type,t))}}function Ee(e){Pe?Se?Se.push(e):Se=[e]:Pe=e}function Oe(){if(Pe){var e=Pe,t=Se;if(Se=Pe=null,Ve(e),t)for(e=0;e<t.length;e++)Ve(t[e])}}function Te(e,t){return e(t)}function _e(){}var Re=!1;function Ie(e,t,n){if(Re)return e(t,n);Re=!0;try{return Te(e,t,n)}finally{Re=!1,(null!==Pe||null!==Se)&&(_e(),Oe())}}function De(e,t){var n=e.stateNode;if(null===n)return null;var r=xo(n);if(null===r)return null;n=r[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(r=!r.disabled)||(r=!("button"===(e=e.type)||"input"===e||"select"===e||"textarea"===e)),e=!r;break e;default:e=!1}if(e)return null;if(n&&"function"!=typeof n)throw Error(i(231,t,typeof n));return n}var je=!1;if(c)try{var ke={};Object.defineProperty(ke,"passive",{get:function(){je=!0}}),window.addEventListener("test",ke,ke),window.removeEventListener("test",ke,ke)}catch(ce){je=!1}function Me(e,t,n,r,o,i,s,a,l){var u=Array.prototype.slice.call(arguments,3);try{t.apply(n,u)}catch(e){this.onError(e)}}var Le=!1,qe=null,Ne=!1,Ae=null,Be={onError:function(e){Le=!0,qe=e}};function Fe(e,t,n,r,o,i,s,a,l){Le=!1,qe=null,Me.apply(Be,arguments)}function Qe(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do{0!=(4098&(t=e).flags)&&(n=t.return),e=t.return}while(e)}return 3===t.tag?n:null}function ze(e){if(13===e.tag){var t=e.memoizedState;if(null===t&&null!==(e=e.alternate)&&(t=e.memoizedState),null!==t)return t.dehydrated}return null}function He(e){if(Qe(e)!==e)throw Error(i(188))}function Ue(e){return null!==(e=function(e){var t=e.alternate;if(!t){if(null===(t=Qe(e)))throw Error(i(188));return t!==e?null:e}for(var n=e,r=t;;){var o=n.return;if(null===o)break;var s=o.alternate;if(null===s){if(null!==(r=o.return)){n=r;continue}break}if(o.child===s.child){for(s=o.child;s;){if(s===n)return He(o),e;if(s===r)return He(o),t;s=s.sibling}throw Error(i(188))}if(n.return!==r.return)n=o,r=s;else{for(var a=!1,l=o.child;l;){if(l===n){a=!0,n=o,r=s;break}if(l===r){a=!0,r=o,n=s;break}l=l.sibling}if(!a){for(l=s.child;l;){if(l===n){a=!0,n=s,r=o;break}if(l===r){a=!0,r=s,n=o;break}l=l.sibling}if(!a)throw Error(i(189))}}if(n.alternate!==r)throw Error(i(190))}if(3!==n.tag)throw Error(i(188));return n.stateNode.current===n?e:t}(e))?We(e):null}function We(e){if(5===e.tag||6===e.tag)return e;for(e=e.child;null!==e;){var t=We(e);if(null!==t)return t;e=e.sibling}return null}var Je=o.unstable_scheduleCallback,$e=o.unstable_cancelCallback,Ge=o.unstable_shouldYield,Ke=o.unstable_requestPaint,Ze=o.unstable_now,Ye=o.unstable_getCurrentPriorityLevel,Xe=o.unstable_ImmediatePriority,et=o.unstable_UserBlockingPriority,tt=o.unstable_NormalPriority,nt=o.unstable_LowPriority,rt=o.unstable_IdlePriority,ot=null,it=null,st=Math.clz32?Math.clz32:function(e){return 0===(e>>>=0)?32:31-(at(e)/lt|0)|0},at=Math.log,lt=Math.LN2,ut=64,ct=4194304;function pt(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return 4194240&e;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return 130023424&e;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function dt(e,t){var n=e.pendingLanes;if(0===n)return 0;var r=0,o=e.suspendedLanes,i=e.pingedLanes,s=268435455&n;if(0!==s){var a=s&~o;0!==a?r=pt(a):0!=(i&=s)&&(r=pt(i))}else 0!=(s=n&~o)?r=pt(s):0!==i&&(r=pt(i));if(0===r)return 0;if(0!==t&&t!==r&&0==(t&o)&&((o=r&-r)>=(i=t&-t)||16===o&&0!=(4194240&i)))return t;if(0!=(4&r)&&(r|=16&n),0!==(t=e.entangledLanes))for(e=e.entanglements,t&=r;0<t;)o=1<<(n=31-st(t)),r|=e[n],t&=~o;return r}function ht(e,t){switch(e){case 1:case 2:case 4:return t+250;case 8:case 16:case 32:case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;default:return-1}}function ft(e){return 0!=(e=-1073741825&e.pendingLanes)?e:1073741824&e?1073741824:0}function gt(){var e=ut;return 0==(4194240&(ut<<=1))&&(ut=64),e}function mt(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function yt(e,t,n){e.pendingLanes|=t,536870912!==t&&(e.suspendedLanes=0,e.pingedLanes=0),(e=e.eventTimes)[t=31-st(t)]=n}function vt(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-st(n),o=1<<r;o&t|e[r]&t&&(e[r]|=t),n&=~o}}var bt=0;function Ct(e){return 1<(e&=-e)?4<e?0!=(268435455&e)?16:536870912:4:1}var wt,xt,Pt,St,Vt,Et=!1,Ot=[],Tt=null,_t=null,Rt=null,It=new Map,Dt=new Map,jt=[],kt="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset submit".split(" ");function Mt(e,t){switch(e){case"focusin":case"focusout":Tt=null;break;case"dragenter":case"dragleave":_t=null;break;case"mouseover":case"mouseout":Rt=null;break;case"pointerover":case"pointerout":It.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Dt.delete(t.pointerId)}}function Lt(e,t,n,r,o,i){return null===e||e.nativeEvent!==i?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:i,targetContainers:[o]},null!==t&&null!==(t=Co(t))&&xt(t),e):(e.eventSystemFlags|=r,t=e.targetContainers,null!==o&&-1===t.indexOf(o)&&t.push(o),e)}function qt(e){var t=bo(e.target);if(null!==t){var n=Qe(t);if(null!==n)if(13===(t=n.tag)){if(null!==(t=ze(n)))return e.blockedOn=t,void Vt(e.priority,(function(){Pt(n)}))}else if(3===t&&n.stateNode.current.memoizedState.isDehydrated)return void(e.blockedOn=3===n.tag?n.stateNode.containerInfo:null)}e.blockedOn=null}function Nt(e){if(null!==e.blockedOn)return!1;for(var t=e.targetContainers;0<t.length;){var n=Gt(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(null!==n)return null!==(t=Co(n))&&xt(t),e.blockedOn=n,!1;var r=new(n=e.nativeEvent).constructor(n.type,n);Ce=r,n.target.dispatchEvent(r),Ce=null,t.shift()}return!0}function At(e,t,n){Nt(e)&&n.delete(t)}function Bt(){Et=!1,null!==Tt&&Nt(Tt)&&(Tt=null),null!==_t&&Nt(_t)&&(_t=null),null!==Rt&&Nt(Rt)&&(Rt=null),It.forEach(At),Dt.forEach(At)}function Ft(e,t){e.blockedOn===t&&(e.blockedOn=null,Et||(Et=!0,o.unstable_scheduleCallback(o.unstable_NormalPriority,Bt)))}function Qt(e){function t(t){return Ft(t,e)}if(0<Ot.length){Ft(Ot[0],e);for(var n=1;n<Ot.length;n++){var r=Ot[n];r.blockedOn===e&&(r.blockedOn=null)}}for(null!==Tt&&Ft(Tt,e),null!==_t&&Ft(_t,e),null!==Rt&&Ft(Rt,e),It.forEach(t),Dt.forEach(t),n=0;n<jt.length;n++)(r=jt[n]).blockedOn===e&&(r.blockedOn=null);for(;0<jt.length&&null===(n=jt[0]).blockedOn;)qt(n),null===n.blockedOn&&jt.shift()}var zt=C.ReactCurrentBatchConfig,Ht=!0;function Ut(e,t,n,r){var o=bt,i=zt.transition;zt.transition=null;try{bt=1,Jt(e,t,n,r)}finally{bt=o,zt.transition=i}}function Wt(e,t,n,r){var o=bt,i=zt.transition;zt.transition=null;try{bt=4,Jt(e,t,n,r)}finally{bt=o,zt.transition=i}}function Jt(e,t,n,r){if(Ht){var o=Gt(e,t,n,r);if(null===o)Hr(e,t,r,$t,n),Mt(e,r);else if(function(e,t,n,r,o){switch(t){case"focusin":return Tt=Lt(Tt,e,t,n,r,o),!0;case"dragenter":return _t=Lt(_t,e,t,n,r,o),!0;case"mouseover":return Rt=Lt(Rt,e,t,n,r,o),!0;case"pointerover":var i=o.pointerId;return It.set(i,Lt(It.get(i)||null,e,t,n,r,o)),!0;case"gotpointercapture":return i=o.pointerId,Dt.set(i,Lt(Dt.get(i)||null,e,t,n,r,o)),!0}return!1}(o,e,t,n,r))r.stopPropagation();else if(Mt(e,r),4&t&&-1<kt.indexOf(e)){for(;null!==o;){var i=Co(o);if(null!==i&&wt(i),null===(i=Gt(e,t,n,r))&&Hr(e,t,r,$t,n),i===o)break;o=i}null!==o&&r.stopPropagation()}else Hr(e,t,r,null,n)}}var $t=null;function Gt(e,t,n,r){if($t=null,null!==(e=bo(e=we(r))))if(null===(t=Qe(e)))e=null;else if(13===(n=t.tag)){if(null!==(e=ze(t)))return e;e=null}else if(3===n){if(t.stateNode.current.memoizedState.isDehydrated)return 3===t.tag?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null);return $t=e,null}function Kt(e){switch(e){case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 1;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"toggle":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 4;case"message":switch(Ye()){case Xe:return 1;case et:return 4;case tt:case nt:return 16;case rt:return 536870912;default:return 16}default:return 16}}var Zt=null,Yt=null,Xt=null;function en(){if(Xt)return Xt;var e,t,n=Yt,r=n.length,o="value"in Zt?Zt.value:Zt.textContent,i=o.length;for(e=0;e<r&&n[e]===o[e];e++);var s=r-e;for(t=1;t<=s&&n[r-t]===o[i-t];t++);return Xt=o.slice(e,1<t?1-t:void 0)}function tn(e){var t=e.keyCode;return"charCode"in e?0===(e=e.charCode)&&13===t&&(e=13):e=t,10===e&&(e=13),32<=e||13===e?e:0}function nn(){return!0}function rn(){return!1}function on(e){function t(t,n,r,o,i){for(var s in this._reactName=t,this._targetInst=r,this.type=n,this.nativeEvent=o,this.target=i,this.currentTarget=null,e)e.hasOwnProperty(s)&&(t=e[s],this[s]=t?t(o):o[s]);return this.isDefaultPrevented=(null!=o.defaultPrevented?o.defaultPrevented:!1===o.returnValue)?nn:rn,this.isPropagationStopped=rn,this}return q(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var e=this.nativeEvent;e&&(e.preventDefault?e.preventDefault():"unknown"!=typeof e.returnValue&&(e.returnValue=!1),this.isDefaultPrevented=nn)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():"unknown"!=typeof e.cancelBubble&&(e.cancelBubble=!0),this.isPropagationStopped=nn)},persist:function(){},isPersistent:nn}),t}var sn,an,ln,un={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},cn=on(un),pn=q({},un,{view:0,detail:0}),dn=on(pn),hn=q({},pn,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Vn,button:0,buttons:0,relatedTarget:function(e){return void 0===e.relatedTarget?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==ln&&(ln&&"mousemove"===e.type?(sn=e.screenX-ln.screenX,an=e.screenY-ln.screenY):an=sn=0,ln=e),sn)},movementY:function(e){return"movementY"in e?e.movementY:an}}),fn=on(hn),gn=on(q({},hn,{dataTransfer:0})),mn=on(q({},pn,{relatedTarget:0})),yn=on(q({},un,{animationName:0,elapsedTime:0,pseudoElement:0})),vn=q({},un,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),bn=on(vn),Cn=on(q({},un,{data:0})),wn={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},xn={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},Pn={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Sn(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):!!(e=Pn[e])&&!!t[e]}function Vn(){return Sn}var En=q({},pn,{key:function(e){if(e.key){var t=wn[e.key]||e.key;if("Unidentified"!==t)return t}return"keypress"===e.type?13===(e=tn(e))?"Enter":String.fromCharCode(e):"keydown"===e.type||"keyup"===e.type?xn[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Vn,charCode:function(e){return"keypress"===e.type?tn(e):0},keyCode:function(e){return"keydown"===e.type||"keyup"===e.type?e.keyCode:0},which:function(e){return"keypress"===e.type?tn(e):"keydown"===e.type||"keyup"===e.type?e.keyCode:0}}),On=on(En),Tn=on(q({},hn,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0})),_n=on(q({},pn,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Vn})),Rn=on(q({},un,{propertyName:0,elapsedTime:0,pseudoElement:0})),In=q({},hn,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),Dn=on(In),jn=[9,13,27,32],kn=c&&"CompositionEvent"in window,Mn=null;c&&"documentMode"in document&&(Mn=document.documentMode);var Ln=c&&"TextEvent"in window&&!Mn,qn=c&&(!kn||Mn&&8<Mn&&11>=Mn),Nn=String.fromCharCode(32),An=!1;function Bn(e,t){switch(e){case"keyup":return-1!==jn.indexOf(t.keyCode);case"keydown":return 229!==t.keyCode;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Fn(e){return"object"==typeof(e=e.detail)&&"data"in e?e.data:null}var Qn=!1,zn={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function Hn(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return"input"===t?!!zn[e.type]:"textarea"===t}function Un(e,t,n,r){Ee(r),0<(t=Wr(t,"onChange")).length&&(n=new cn("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var Wn=null,Jn=null;function $n(e){Nr(e,0)}function Gn(e){if(J(wo(e)))return e}function Kn(e,t){if("change"===e)return t}var Zn=!1;if(c){var Yn;if(c){var Xn="oninput"in document;if(!Xn){var er=document.createElement("div");er.setAttribute("oninput","return;"),Xn="function"==typeof er.oninput}Yn=Xn}else Yn=!1;Zn=Yn&&(!document.documentMode||9<document.documentMode)}function tr(){Wn&&(Wn.detachEvent("onpropertychange",nr),Jn=Wn=null)}function nr(e){if("value"===e.propertyName&&Gn(Jn)){var t=[];Un(t,Jn,e,we(e)),Ie($n,t)}}function rr(e,t,n){"focusin"===e?(tr(),Jn=n,(Wn=t).attachEvent("onpropertychange",nr)):"focusout"===e&&tr()}function or(e){if("selectionchange"===e||"keyup"===e||"keydown"===e)return Gn(Jn)}function ir(e,t){if("click"===e)return Gn(t)}function sr(e,t){if("input"===e||"change"===e)return Gn(t)}var ar="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t};function lr(e,t){if(ar(e,t))return!0;if("object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++){var o=n[r];if(!p.call(t,o)||!ar(e[o],t[o]))return!1}return!0}function ur(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function cr(e,t){var n,r=ur(e);for(e=0;r;){if(3===r.nodeType){if(n=e+r.textContent.length,e<=t&&n>=t)return{node:r,offset:t-e};e=n}e:{for(;r;){if(r.nextSibling){r=r.nextSibling;break e}r=r.parentNode}r=void 0}r=ur(r)}}function pr(e,t){return!(!e||!t)&&(e===t||(!e||3!==e.nodeType)&&(t&&3===t.nodeType?pr(e,t.parentNode):"contains"in e?e.contains(t):!!e.compareDocumentPosition&&!!(16&e.compareDocumentPosition(t))))}function dr(){for(var e=window,t=$();t instanceof e.HTMLIFrameElement;){try{var n="string"==typeof t.contentWindow.location.href}catch(e){n=!1}if(!n)break;t=$((e=t.contentWindow).document)}return t}function hr(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&("input"===t&&("text"===e.type||"search"===e.type||"tel"===e.type||"url"===e.type||"password"===e.type)||"textarea"===t||"true"===e.contentEditable)}function fr(e){var t=dr(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&pr(n.ownerDocument.documentElement,n)){if(null!==r&&hr(n))if(t=r.start,void 0===(e=r.end)&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if((e=(t=n.ownerDocument||document)&&t.defaultView||window).getSelection){e=e.getSelection();var o=n.textContent.length,i=Math.min(r.start,o);r=void 0===r.end?i:Math.min(r.end,o),!e.extend&&i>r&&(o=r,r=i,i=o),o=cr(n,i);var s=cr(n,r);o&&s&&(1!==e.rangeCount||e.anchorNode!==o.node||e.anchorOffset!==o.offset||e.focusNode!==s.node||e.focusOffset!==s.offset)&&((t=t.createRange()).setStart(o.node,o.offset),e.removeAllRanges(),i>r?(e.addRange(t),e.extend(s.node,s.offset)):(t.setEnd(s.node,s.offset),e.addRange(t)))}for(t=[],e=n;e=e.parentNode;)1===e.nodeType&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for("function"==typeof n.focus&&n.focus(),n=0;n<t.length;n++)(e=t[n]).element.scrollLeft=e.left,e.element.scrollTop=e.top}}var gr=c&&"documentMode"in document&&11>=document.documentMode,mr=null,yr=null,vr=null,br=!1;function Cr(e,t,n){var r=n.window===n?n.document:9===n.nodeType?n:n.ownerDocument;br||null==mr||mr!==$(r)||(r="selectionStart"in(r=mr)&&hr(r)?{start:r.selectionStart,end:r.selectionEnd}:{anchorNode:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection()).anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset},vr&&lr(vr,r)||(vr=r,0<(r=Wr(yr,"onSelect")).length&&(t=new cn("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=mr)))}function wr(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var xr={animationend:wr("Animation","AnimationEnd"),animationiteration:wr("Animation","AnimationIteration"),animationstart:wr("Animation","AnimationStart"),transitionend:wr("Transition","TransitionEnd")},Pr={},Sr={};function Vr(e){if(Pr[e])return Pr[e];if(!xr[e])return e;var t,n=xr[e];for(t in n)if(n.hasOwnProperty(t)&&t in Sr)return Pr[e]=n[t];return e}c&&(Sr=document.createElement("div").style,"AnimationEvent"in window||(delete xr.animationend.animation,delete xr.animationiteration.animation,delete xr.animationstart.animation),"TransitionEvent"in window||delete xr.transitionend.transition);var Er=Vr("animationend"),Or=Vr("animationiteration"),Tr=Vr("animationstart"),_r=Vr("transitionend"),Rr=new Map,Ir="abort auxClick cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");function Dr(e,t){Rr.set(e,t),l(t,[e])}for(var jr=0;jr<Ir.length;jr++){var kr=Ir[jr];Dr(kr.toLowerCase(),"on"+(kr[0].toUpperCase()+kr.slice(1)))}Dr(Er,"onAnimationEnd"),Dr(Or,"onAnimationIteration"),Dr(Tr,"onAnimationStart"),Dr("dblclick","onDoubleClick"),Dr("focusin","onFocus"),Dr("focusout","onBlur"),Dr(_r,"onTransitionEnd"),u("onMouseEnter",["mouseout","mouseover"]),u("onMouseLeave",["mouseout","mouseover"]),u("onPointerEnter",["pointerout","pointerover"]),u("onPointerLeave",["pointerout","pointerover"]),l("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),l("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),l("onBeforeInput",["compositionend","keypress","textInput","paste"]),l("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),l("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),l("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Mr="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(" "),Lr=new Set("cancel close invalid load scroll toggle".split(" ").concat(Mr));function qr(e,t,n){var r=e.type||"unknown-event";e.currentTarget=n,function(e,t,n,r,o,s,a,l,u){if(Fe.apply(this,arguments),Le){if(!Le)throw Error(i(198));var c=qe;Le=!1,qe=null,Ne||(Ne=!0,Ae=c)}}(r,t,void 0,e),e.currentTarget=null}function Nr(e,t){t=0!=(4&t);for(var n=0;n<e.length;n++){var r=e[n],o=r.event;r=r.listeners;e:{var i=void 0;if(t)for(var s=r.length-1;0<=s;s--){var a=r[s],l=a.instance,u=a.currentTarget;if(a=a.listener,l!==i&&o.isPropagationStopped())break e;qr(o,a,u),i=l}else for(s=0;s<r.length;s++){if(l=(a=r[s]).instance,u=a.currentTarget,a=a.listener,l!==i&&o.isPropagationStopped())break e;qr(o,a,u),i=l}}}if(Ne)throw e=Ae,Ne=!1,Ae=null,e}function Ar(e,t){var n=t[mo];void 0===n&&(n=t[mo]=new Set);var r=e+"__bubble";n.has(r)||(zr(t,e,2,!1),n.add(r))}function Br(e,t,n){var r=0;t&&(r|=4),zr(n,e,r,t)}var Fr="_reactListening"+Math.random().toString(36).slice(2);function Qr(e){if(!e[Fr]){e[Fr]=!0,s.forEach((function(t){"selectionchange"!==t&&(Lr.has(t)||Br(t,!1,e),Br(t,!0,e))}));var t=9===e.nodeType?e:e.ownerDocument;null===t||t[Fr]||(t[Fr]=!0,Br("selectionchange",!1,t))}}function zr(e,t,n,r){switch(Kt(t)){case 1:var o=Ut;break;case 4:o=Wt;break;default:o=Jt}n=o.bind(null,t,n,e),o=void 0,!je||"touchstart"!==t&&"touchmove"!==t&&"wheel"!==t||(o=!0),r?void 0!==o?e.addEventListener(t,n,{capture:!0,passive:o}):e.addEventListener(t,n,!0):void 0!==o?e.addEventListener(t,n,{passive:o}):e.addEventListener(t,n,!1)}function Hr(e,t,n,r,o){var i=r;if(0==(1&t)&&0==(2&t)&&null!==r)e:for(;;){if(null===r)return;var s=r.tag;if(3===s||4===s){var a=r.stateNode.containerInfo;if(a===o||8===a.nodeType&&a.parentNode===o)break;if(4===s)for(s=r.return;null!==s;){var l=s.tag;if((3===l||4===l)&&((l=s.stateNode.containerInfo)===o||8===l.nodeType&&l.parentNode===o))return;s=s.return}for(;null!==a;){if(null===(s=bo(a)))return;if(5===(l=s.tag)||6===l){r=i=s;continue e}a=a.parentNode}}r=r.return}Ie((function(){var r=i,o=we(n),s=[];e:{var a=Rr.get(e);if(void 0!==a){var l=cn,u=e;switch(e){case"keypress":if(0===tn(n))break e;case"keydown":case"keyup":l=On;break;case"focusin":u="focus",l=mn;break;case"focusout":u="blur",l=mn;break;case"beforeblur":case"afterblur":l=mn;break;case"click":if(2===n.button)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":l=fn;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":l=gn;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":l=_n;break;case Er:case Or:case Tr:l=yn;break;case _r:l=Rn;break;case"scroll":l=dn;break;case"wheel":l=Dn;break;case"copy":case"cut":case"paste":l=bn;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":l=Tn}var c=0!=(4&t),p=!c&&"scroll"===e,d=c?null!==a?a+"Capture":null:a;c=[];for(var h,f=r;null!==f;){var g=(h=f).stateNode;if(5===h.tag&&null!==g&&(h=g,null!==d&&null!=(g=De(f,d))&&c.push(Ur(f,g,h))),p)break;f=f.return}0<c.length&&(a=new l(a,u,null,n,o),s.push({event:a,listeners:c}))}}if(0==(7&t)){if(l="mouseout"===e||"pointerout"===e,(!(a="mouseover"===e||"pointerover"===e)||n===Ce||!(u=n.relatedTarget||n.fromElement)||!bo(u)&&!u[go])&&(l||a)&&(a=o.window===o?o:(a=o.ownerDocument)?a.defaultView||a.parentWindow:window,l?(l=r,null!==(u=(u=n.relatedTarget||n.toElement)?bo(u):null)&&(u!==(p=Qe(u))||5!==u.tag&&6!==u.tag)&&(u=null)):(l=null,u=r),l!==u)){if(c=fn,g="onMouseLeave",d="onMouseEnter",f="mouse","pointerout"!==e&&"pointerover"!==e||(c=Tn,g="onPointerLeave",d="onPointerEnter",f="pointer"),p=null==l?a:wo(l),h=null==u?a:wo(u),(a=new c(g,f+"leave",l,n,o)).target=p,a.relatedTarget=h,g=null,bo(o)===r&&((c=new c(d,f+"enter",u,n,o)).target=h,c.relatedTarget=p,g=c),p=g,l&&u)e:{for(d=u,f=0,h=c=l;h;h=Jr(h))f++;for(h=0,g=d;g;g=Jr(g))h++;for(;0<f-h;)c=Jr(c),f--;for(;0<h-f;)d=Jr(d),h--;for(;f--;){if(c===d||null!==d&&c===d.alternate)break e;c=Jr(c),d=Jr(d)}c=null}else c=null;null!==l&&$r(s,a,l,c,!1),null!==u&&null!==p&&$r(s,p,u,c,!0)}if("select"===(l=(a=r?wo(r):window).nodeName&&a.nodeName.toLowerCase())||"input"===l&&"file"===a.type)var m=Kn;else if(Hn(a))if(Zn)m=sr;else{m=or;var y=rr}else(l=a.nodeName)&&"input"===l.toLowerCase()&&("checkbox"===a.type||"radio"===a.type)&&(m=ir);switch(m&&(m=m(e,r))?Un(s,m,n,o):(y&&y(e,a,r),"focusout"===e&&(y=a._wrapperState)&&y.controlled&&"number"===a.type&&ee(a,"number",a.value)),y=r?wo(r):window,e){case"focusin":(Hn(y)||"true"===y.contentEditable)&&(mr=y,yr=r,vr=null);break;case"focusout":vr=yr=mr=null;break;case"mousedown":br=!0;break;case"contextmenu":case"mouseup":case"dragend":br=!1,Cr(s,n,o);break;case"selectionchange":if(gr)break;case"keydown":case"keyup":Cr(s,n,o)}var v;if(kn)e:{switch(e){case"compositionstart":var b="onCompositionStart";break e;case"compositionend":b="onCompositionEnd";break e;case"compositionupdate":b="onCompositionUpdate";break e}b=void 0}else Qn?Bn(e,n)&&(b="onCompositionEnd"):"keydown"===e&&229===n.keyCode&&(b="onCompositionStart");b&&(qn&&"ko"!==n.locale&&(Qn||"onCompositionStart"!==b?"onCompositionEnd"===b&&Qn&&(v=en()):(Yt="value"in(Zt=o)?Zt.value:Zt.textContent,Qn=!0)),0<(y=Wr(r,b)).length&&(b=new Cn(b,e,null,n,o),s.push({event:b,listeners:y}),(v||null!==(v=Fn(n)))&&(b.data=v))),(v=Ln?function(e,t){switch(e){case"compositionend":return Fn(t);case"keypress":return 32!==t.which?null:(An=!0,Nn);case"textInput":return(e=t.data)===Nn&&An?null:e;default:return null}}(e,n):function(e,t){if(Qn)return"compositionend"===e||!kn&&Bn(e,t)?(e=en(),Xt=Yt=Zt=null,Qn=!1,e):null;switch(e){case"paste":default:return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return qn&&"ko"!==t.locale?null:t.data}}(e,n))&&0<(r=Wr(r,"onBeforeInput")).length&&(o=new Cn("onBeforeInput","beforeinput",null,n,o),s.push({event:o,listeners:r}),o.data=v)}Nr(s,t)}))}function Ur(e,t,n){return{instance:e,listener:t,currentTarget:n}}function Wr(e,t){for(var n=t+"Capture",r=[];null!==e;){var o=e,i=o.stateNode;5===o.tag&&null!==i&&(o=i,null!=(i=De(e,n))&&r.unshift(Ur(e,i,o)),null!=(i=De(e,t))&&r.push(Ur(e,i,o))),e=e.return}return r}function Jr(e){if(null===e)return null;do{e=e.return}while(e&&5!==e.tag);return e||null}function $r(e,t,n,r,o){for(var i=t._reactName,s=[];null!==n&&n!==r;){var a=n,l=a.alternate,u=a.stateNode;if(null!==l&&l===r)break;5===a.tag&&null!==u&&(a=u,o?null!=(l=De(n,i))&&s.unshift(Ur(n,l,a)):o||null!=(l=De(n,i))&&s.push(Ur(n,l,a))),n=n.return}0!==s.length&&e.push({event:t,listeners:s})}var Gr=/\r\n?/g,Kr=/\u0000|\uFFFD/g;function Zr(e){return("string"==typeof e?e:""+e).replace(Gr,"\n").replace(Kr,"")}function Yr(e,t,n){if(t=Zr(t),Zr(e)!==t&&n)throw Error(i(425))}function Xr(){}var eo=null,to=null;function no(e,t){return"textarea"===e||"noscript"===e||"string"==typeof t.children||"number"==typeof t.children||"object"==typeof t.dangerouslySetInnerHTML&&null!==t.dangerouslySetInnerHTML&&null!=t.dangerouslySetInnerHTML.__html}var ro="function"==typeof setTimeout?setTimeout:void 0,oo="function"==typeof clearTimeout?clearTimeout:void 0,io="function"==typeof Promise?Promise:void 0,so="function"==typeof queueMicrotask?queueMicrotask:void 0!==io?function(e){return io.resolve(null).then(e).catch(ao)}:ro;function ao(e){setTimeout((function(){throw e}))}function lo(e,t){var n=t,r=0;do{var o=n.nextSibling;if(e.removeChild(n),o&&8===o.nodeType)if("/$"===(n=o.data)){if(0===r)return e.removeChild(o),void Qt(t);r--}else"$"!==n&&"$?"!==n&&"$!"!==n||r++;n=o}while(n);Qt(t)}function uo(e){for(;null!=e;e=e.nextSibling){var t=e.nodeType;if(1===t||3===t)break;if(8===t){if("$"===(t=e.data)||"$!"===t||"$?"===t)break;if("/$"===t)return null}}return e}function co(e){e=e.previousSibling;for(var t=0;e;){if(8===e.nodeType){var n=e.data;if("$"===n||"$!"===n||"$?"===n){if(0===t)return e;t--}else"/$"===n&&t++}e=e.previousSibling}return null}var po=Math.random().toString(36).slice(2),ho="__reactFiber$"+po,fo="__reactProps$"+po,go="__reactContainer$"+po,mo="__reactEvents$"+po,yo="__reactListeners$"+po,vo="__reactHandles$"+po;function bo(e){var t=e[ho];if(t)return t;for(var n=e.parentNode;n;){if(t=n[go]||n[ho]){if(n=t.alternate,null!==t.child||null!==n&&null!==n.child)for(e=co(e);null!==e;){if(n=e[ho])return n;e=co(e)}return t}n=(e=n).parentNode}return null}function Co(e){return!(e=e[ho]||e[go])||5!==e.tag&&6!==e.tag&&13!==e.tag&&3!==e.tag?null:e}function wo(e){if(5===e.tag||6===e.tag)return e.stateNode;throw Error(i(33))}function xo(e){return e[fo]||null}var Po=[],So=-1;function Vo(e){return{current:e}}function Eo(e){0>So||(e.current=Po[So],Po[So]=null,So--)}function Oo(e,t){So++,Po[So]=e.current,e.current=t}var To={},_o=Vo(To),Ro=Vo(!1),Io=To;function Do(e,t){var n=e.type.contextTypes;if(!n)return To;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var o,i={};for(o in n)i[o]=t[o];return r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=i),i}function jo(e){return null!=e.childContextTypes}function ko(){Eo(Ro),Eo(_o)}function Mo(e,t,n){if(_o.current!==To)throw Error(i(168));Oo(_o,t),Oo(Ro,n)}function Lo(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,"function"!=typeof r.getChildContext)return n;for(var o in r=r.getChildContext())if(!(o in t))throw Error(i(108,z(e)||"Unknown",o));return q({},n,r)}function qo(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||To,Io=_o.current,Oo(_o,e),Oo(Ro,Ro.current),!0}function No(e,t,n){var r=e.stateNode;if(!r)throw Error(i(169));n?(e=Lo(e,t,Io),r.__reactInternalMemoizedMergedChildContext=e,Eo(Ro),Eo(_o),Oo(_o,e)):Eo(Ro),Oo(Ro,n)}var Ao=null,Bo=!1,Fo=!1;function Qo(e){null===Ao?Ao=[e]:Ao.push(e)}function zo(){if(!Fo&&null!==Ao){Fo=!0;var e=0,t=bt;try{var n=Ao;for(bt=1;e<n.length;e++){var r=n[e];do{r=r(!0)}while(null!==r)}Ao=null,Bo=!1}catch(t){throw null!==Ao&&(Ao=Ao.slice(e+1)),Je(Xe,zo),t}finally{bt=t,Fo=!1}}return null}var Ho=[],Uo=0,Wo=null,Jo=0,$o=[],Go=0,Ko=null,Zo=1,Yo="";function Xo(e,t){Ho[Uo++]=Jo,Ho[Uo++]=Wo,Wo=e,Jo=t}function ei(e,t,n){$o[Go++]=Zo,$o[Go++]=Yo,$o[Go++]=Ko,Ko=e;var r=Zo;e=Yo;var o=32-st(r)-1;r&=~(1<<o),n+=1;var i=32-st(t)+o;if(30<i){var s=o-o%5;i=(r&(1<<s)-1).toString(32),r>>=s,o-=s,Zo=1<<32-st(t)+o|n<<o|r,Yo=i+e}else Zo=1<<i|n<<o|r,Yo=e}function ti(e){null!==e.return&&(Xo(e,1),ei(e,1,0))}function ni(e){for(;e===Wo;)Wo=Ho[--Uo],Ho[Uo]=null,Jo=Ho[--Uo],Ho[Uo]=null;for(;e===Ko;)Ko=$o[--Go],$o[Go]=null,Yo=$o[--Go],$o[Go]=null,Zo=$o[--Go],$o[Go]=null}var ri=null,oi=null,ii=!1,si=null;function ai(e,t){var n=Du(5,null,null,0);n.elementType="DELETED",n.stateNode=t,n.return=e,null===(t=e.deletions)?(e.deletions=[n],e.flags|=16):t.push(n)}function li(e,t){switch(e.tag){case 5:var n=e.type;return null!==(t=1!==t.nodeType||n.toLowerCase()!==t.nodeName.toLowerCase()?null:t)&&(e.stateNode=t,ri=e,oi=uo(t.firstChild),!0);case 6:return null!==(t=""===e.pendingProps||3!==t.nodeType?null:t)&&(e.stateNode=t,ri=e,oi=null,!0);case 13:return null!==(t=8!==t.nodeType?null:t)&&(n=null!==Ko?{id:Zo,overflow:Yo}:null,e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},(n=Du(18,null,null,0)).stateNode=t,n.return=e,e.child=n,ri=e,oi=null,!0);default:return!1}}function ui(e){return 0!=(1&e.mode)&&0==(128&e.flags)}function ci(e){if(ii){var t=oi;if(t){var n=t;if(!li(e,t)){if(ui(e))throw Error(i(418));t=uo(n.nextSibling);var r=ri;t&&li(e,t)?ai(r,n):(e.flags=-4097&e.flags|2,ii=!1,ri=e)}}else{if(ui(e))throw Error(i(418));e.flags=-4097&e.flags|2,ii=!1,ri=e}}}function pi(e){for(e=e.return;null!==e&&5!==e.tag&&3!==e.tag&&13!==e.tag;)e=e.return;ri=e}function di(e){if(e!==ri)return!1;if(!ii)return pi(e),ii=!0,!1;var t;if((t=3!==e.tag)&&!(t=5!==e.tag)&&(t="head"!==(t=e.type)&&"body"!==t&&!no(e.type,e.memoizedProps)),t&&(t=oi)){if(ui(e))throw hi(),Error(i(418));for(;t;)ai(e,t),t=uo(t.nextSibling)}if(pi(e),13===e.tag){if(!(e=null!==(e=e.memoizedState)?e.dehydrated:null))throw Error(i(317));e:{for(e=e.nextSibling,t=0;e;){if(8===e.nodeType){var n=e.data;if("/$"===n){if(0===t){oi=uo(e.nextSibling);break e}t--}else"$"!==n&&"$!"!==n&&"$?"!==n||t++}e=e.nextSibling}oi=null}}else oi=ri?uo(e.stateNode.nextSibling):null;return!0}function hi(){for(var e=oi;e;)e=uo(e.nextSibling)}function fi(){oi=ri=null,ii=!1}function gi(e){null===si?si=[e]:si.push(e)}var mi=C.ReactCurrentBatchConfig;function yi(e,t){if(e&&e.defaultProps){for(var n in t=q({},t),e=e.defaultProps)void 0===t[n]&&(t[n]=e[n]);return t}return t}var vi=Vo(null),bi=null,Ci=null,wi=null;function xi(){wi=Ci=bi=null}function Pi(e){var t=vi.current;Eo(vi),e._currentValue=t}function Si(e,t,n){for(;null!==e;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,null!==r&&(r.childLanes|=t)):null!==r&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===n)break;e=e.return}}function Vi(e,t){bi=e,wi=Ci=null,null!==(e=e.dependencies)&&null!==e.firstContext&&(0!=(e.lanes&t)&&(Ca=!0),e.firstContext=null)}function Ei(e){var t=e._currentValue;if(wi!==e)if(e={context:e,memoizedValue:t,next:null},null===Ci){if(null===bi)throw Error(i(308));Ci=e,bi.dependencies={lanes:0,firstContext:e}}else Ci=Ci.next=e;return t}var Oi=null;function Ti(e){null===Oi?Oi=[e]:Oi.push(e)}function _i(e,t,n,r){var o=t.interleaved;return null===o?(n.next=n,Ti(t)):(n.next=o.next,o.next=n),t.interleaved=n,Ri(e,r)}function Ri(e,t){e.lanes|=t;var n=e.alternate;for(null!==n&&(n.lanes|=t),n=e,e=e.return;null!==e;)e.childLanes|=t,null!==(n=e.alternate)&&(n.childLanes|=t),n=e,e=e.return;return 3===n.tag?n.stateNode:null}var Ii=!1;function Di(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function ji(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function ki(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function Mi(e,t,n){var r=e.updateQueue;if(null===r)return null;if(r=r.shared,0!=(2&_l)){var o=r.pending;return null===o?t.next=t:(t.next=o.next,o.next=t),r.pending=t,Ri(e,n)}return null===(o=r.interleaved)?(t.next=t,Ti(r)):(t.next=o.next,o.next=t),r.interleaved=t,Ri(e,n)}function Li(e,t,n){if(null!==(t=t.updateQueue)&&(t=t.shared,0!=(4194240&n))){var r=t.lanes;n|=r&=e.pendingLanes,t.lanes=n,vt(e,n)}}function qi(e,t){var n=e.updateQueue,r=e.alternate;if(null!==r&&n===(r=r.updateQueue)){var o=null,i=null;if(null!==(n=n.firstBaseUpdate)){do{var s={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};null===i?o=i=s:i=i.next=s,n=n.next}while(null!==n);null===i?o=i=t:i=i.next=t}else o=i=t;return n={baseState:r.baseState,firstBaseUpdate:o,lastBaseUpdate:i,shared:r.shared,effects:r.effects},void(e.updateQueue=n)}null===(e=n.lastBaseUpdate)?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function Ni(e,t,n,r){var o=e.updateQueue;Ii=!1;var i=o.firstBaseUpdate,s=o.lastBaseUpdate,a=o.shared.pending;if(null!==a){o.shared.pending=null;var l=a,u=l.next;l.next=null,null===s?i=u:s.next=u,s=l;var c=e.alternate;null!==c&&(a=(c=c.updateQueue).lastBaseUpdate)!==s&&(null===a?c.firstBaseUpdate=u:a.next=u,c.lastBaseUpdate=l)}if(null!==i){var p=o.baseState;for(s=0,c=u=l=null,a=i;;){var d=a.lane,h=a.eventTime;if((r&d)===d){null!==c&&(c=c.next={eventTime:h,lane:0,tag:a.tag,payload:a.payload,callback:a.callback,next:null});e:{var f=e,g=a;switch(d=t,h=n,g.tag){case 1:if("function"==typeof(f=g.payload)){p=f.call(h,p,d);break e}p=f;break e;case 3:f.flags=-65537&f.flags|128;case 0:if(null==(d="function"==typeof(f=g.payload)?f.call(h,p,d):f))break e;p=q({},p,d);break e;case 2:Ii=!0}}null!==a.callback&&0!==a.lane&&(e.flags|=64,null===(d=o.effects)?o.effects=[a]:d.push(a))}else h={eventTime:h,lane:d,tag:a.tag,payload:a.payload,callback:a.callback,next:null},null===c?(u=c=h,l=p):c=c.next=h,s|=d;if(null===(a=a.next)){if(null===(a=o.shared.pending))break;a=(d=a).next,d.next=null,o.lastBaseUpdate=d,o.shared.pending=null}}if(null===c&&(l=p),o.baseState=l,o.firstBaseUpdate=u,o.lastBaseUpdate=c,null!==(t=o.shared.interleaved)){o=t;do{s|=o.lane,o=o.next}while(o!==t)}else null===i&&(o.shared.lanes=0);ql|=s,e.lanes=s,e.memoizedState=p}}function Ai(e,t,n){if(e=t.effects,t.effects=null,null!==e)for(t=0;t<e.length;t++){var r=e[t],o=r.callback;if(null!==o){if(r.callback=null,r=n,"function"!=typeof o)throw Error(i(191,o));o.call(r)}}}var Bi=(new r.Component).refs;function Fi(e,t,n,r){n=null==(n=n(r,t=e.memoizedState))?t:q({},t,n),e.memoizedState=n,0===e.lanes&&(e.updateQueue.baseState=n)}var Qi={isMounted:function(e){return!!(e=e._reactInternals)&&Qe(e)===e},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=tu(),o=nu(e),i=ki(r,o);i.payload=t,null!=n&&(i.callback=n),null!==(t=Mi(e,i,o))&&(ru(t,e,o,r),Li(t,e,o))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=tu(),o=nu(e),i=ki(r,o);i.tag=1,i.payload=t,null!=n&&(i.callback=n),null!==(t=Mi(e,i,o))&&(ru(t,e,o,r),Li(t,e,o))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=tu(),r=nu(e),o=ki(n,r);o.tag=2,null!=t&&(o.callback=t),null!==(t=Mi(e,o,r))&&(ru(t,e,r,n),Li(t,e,r))}};function zi(e,t,n,r,o,i,s){return"function"==typeof(e=e.stateNode).shouldComponentUpdate?e.shouldComponentUpdate(r,i,s):!(t.prototype&&t.prototype.isPureReactComponent&&lr(n,r)&&lr(o,i))}function Hi(e,t,n){var r=!1,o=To,i=t.contextType;return"object"==typeof i&&null!==i?i=Ei(i):(o=jo(t)?Io:_o.current,i=(r=null!=(r=t.contextTypes))?Do(e,o):To),t=new t(n,i),e.memoizedState=null!==t.state&&void 0!==t.state?t.state:null,t.updater=Qi,e.stateNode=t,t._reactInternals=e,r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=o,e.__reactInternalMemoizedMaskedChildContext=i),t}function Ui(e,t,n,r){e=t.state,"function"==typeof t.componentWillReceiveProps&&t.componentWillReceiveProps(n,r),"function"==typeof t.UNSAFE_componentWillReceiveProps&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&Qi.enqueueReplaceState(t,t.state,null)}function Wi(e,t,n,r){var o=e.stateNode;o.props=n,o.state=e.memoizedState,o.refs=Bi,Di(e);var i=t.contextType;"object"==typeof i&&null!==i?o.context=Ei(i):(i=jo(t)?Io:_o.current,o.context=Do(e,i)),o.state=e.memoizedState,"function"==typeof(i=t.getDerivedStateFromProps)&&(Fi(e,t,i,n),o.state=e.memoizedState),"function"==typeof t.getDerivedStateFromProps||"function"==typeof o.getSnapshotBeforeUpdate||"function"!=typeof o.UNSAFE_componentWillMount&&"function"!=typeof o.componentWillMount||(t=o.state,"function"==typeof o.componentWillMount&&o.componentWillMount(),"function"==typeof o.UNSAFE_componentWillMount&&o.UNSAFE_componentWillMount(),t!==o.state&&Qi.enqueueReplaceState(o,o.state,null),Ni(e,n,o,r),o.state=e.memoizedState),"function"==typeof o.componentDidMount&&(e.flags|=4194308)}function Ji(e,t,n){if(null!==(e=n.ref)&&"function"!=typeof e&&"object"!=typeof e){if(n._owner){if(n=n._owner){if(1!==n.tag)throw Error(i(309));var r=n.stateNode}if(!r)throw Error(i(147,e));var o=r,s=""+e;return null!==t&&null!==t.ref&&"function"==typeof t.ref&&t.ref._stringRef===s?t.ref:(t=function(e){var t=o.refs;t===Bi&&(t=o.refs={}),null===e?delete t[s]:t[s]=e},t._stringRef=s,t)}if("string"!=typeof e)throw Error(i(284));if(!n._owner)throw Error(i(290,e))}return e}function $i(e,t){throw e=Object.prototype.toString.call(t),Error(i(31,"[object Object]"===e?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function Gi(e){return(0,e._init)(e._payload)}function Ki(e){function t(t,n){if(e){var r=t.deletions;null===r?(t.deletions=[n],t.flags|=16):r.push(n)}}function n(n,r){if(!e)return null;for(;null!==r;)t(n,r),r=r.sibling;return null}function r(e,t){for(e=new Map;null!==t;)null!==t.key?e.set(t.key,t):e.set(t.index,t),t=t.sibling;return e}function o(e,t){return(e=ku(e,t)).index=0,e.sibling=null,e}function s(t,n,r){return t.index=r,e?null!==(r=t.alternate)?(r=r.index)<n?(t.flags|=2,n):r:(t.flags|=2,n):(t.flags|=1048576,n)}function a(t){return e&&null===t.alternate&&(t.flags|=2),t}function l(e,t,n,r){return null===t||6!==t.tag?((t=Nu(n,e.mode,r)).return=e,t):((t=o(t,n)).return=e,t)}function u(e,t,n,r){var i=n.type;return i===P?p(e,t,n.props.children,r,n.key):null!==t&&(t.elementType===i||"object"==typeof i&&null!==i&&i.$$typeof===D&&Gi(i)===t.type)?((r=o(t,n.props)).ref=Ji(e,t,n),r.return=e,r):((r=Mu(n.type,n.key,n.props,null,e.mode,r)).ref=Ji(e,t,n),r.return=e,r)}function c(e,t,n,r){return null===t||4!==t.tag||t.stateNode.containerInfo!==n.containerInfo||t.stateNode.implementation!==n.implementation?((t=Au(n,e.mode,r)).return=e,t):((t=o(t,n.children||[])).return=e,t)}function p(e,t,n,r,i){return null===t||7!==t.tag?((t=Lu(n,e.mode,r,i)).return=e,t):((t=o(t,n)).return=e,t)}function d(e,t,n){if("string"==typeof t&&""!==t||"number"==typeof t)return(t=Nu(""+t,e.mode,n)).return=e,t;if("object"==typeof t&&null!==t){switch(t.$$typeof){case w:return(n=Mu(t.type,t.key,t.props,null,e.mode,n)).ref=Ji(e,null,t),n.return=e,n;case x:return(t=Au(t,e.mode,n)).return=e,t;case D:return d(e,(0,t._init)(t._payload),n)}if(te(t)||M(t))return(t=Lu(t,e.mode,n,null)).return=e,t;$i(e,t)}return null}function h(e,t,n,r){var o=null!==t?t.key:null;if("string"==typeof n&&""!==n||"number"==typeof n)return null!==o?null:l(e,t,""+n,r);if("object"==typeof n&&null!==n){switch(n.$$typeof){case w:return n.key===o?u(e,t,n,r):null;case x:return n.key===o?c(e,t,n,r):null;case D:return h(e,t,(o=n._init)(n._payload),r)}if(te(n)||M(n))return null!==o?null:p(e,t,n,r,null);$i(e,n)}return null}function f(e,t,n,r,o){if("string"==typeof r&&""!==r||"number"==typeof r)return l(t,e=e.get(n)||null,""+r,o);if("object"==typeof r&&null!==r){switch(r.$$typeof){case w:return u(t,e=e.get(null===r.key?n:r.key)||null,r,o);case x:return c(t,e=e.get(null===r.key?n:r.key)||null,r,o);case D:return f(e,t,n,(0,r._init)(r._payload),o)}if(te(r)||M(r))return p(t,e=e.get(n)||null,r,o,null);$i(t,r)}return null}function g(o,i,a,l){for(var u=null,c=null,p=i,g=i=0,m=null;null!==p&&g<a.length;g++){p.index>g?(m=p,p=null):m=p.sibling;var y=h(o,p,a[g],l);if(null===y){null===p&&(p=m);break}e&&p&&null===y.alternate&&t(o,p),i=s(y,i,g),null===c?u=y:c.sibling=y,c=y,p=m}if(g===a.length)return n(o,p),ii&&Xo(o,g),u;if(null===p){for(;g<a.length;g++)null!==(p=d(o,a[g],l))&&(i=s(p,i,g),null===c?u=p:c.sibling=p,c=p);return ii&&Xo(o,g),u}for(p=r(o,p);g<a.length;g++)null!==(m=f(p,o,g,a[g],l))&&(e&&null!==m.alternate&&p.delete(null===m.key?g:m.key),i=s(m,i,g),null===c?u=m:c.sibling=m,c=m);return e&&p.forEach((function(e){return t(o,e)})),ii&&Xo(o,g),u}function m(o,a,l,u){var c=M(l);if("function"!=typeof c)throw Error(i(150));if(null==(l=c.call(l)))throw Error(i(151));for(var p=c=null,g=a,m=a=0,y=null,v=l.next();null!==g&&!v.done;m++,v=l.next()){g.index>m?(y=g,g=null):y=g.sibling;var b=h(o,g,v.value,u);if(null===b){null===g&&(g=y);break}e&&g&&null===b.alternate&&t(o,g),a=s(b,a,m),null===p?c=b:p.sibling=b,p=b,g=y}if(v.done)return n(o,g),ii&&Xo(o,m),c;if(null===g){for(;!v.done;m++,v=l.next())null!==(v=d(o,v.value,u))&&(a=s(v,a,m),null===p?c=v:p.sibling=v,p=v);return ii&&Xo(o,m),c}for(g=r(o,g);!v.done;m++,v=l.next())null!==(v=f(g,o,m,v.value,u))&&(e&&null!==v.alternate&&g.delete(null===v.key?m:v.key),a=s(v,a,m),null===p?c=v:p.sibling=v,p=v);return e&&g.forEach((function(e){return t(o,e)})),ii&&Xo(o,m),c}return function e(r,i,s,l){if("object"==typeof s&&null!==s&&s.type===P&&null===s.key&&(s=s.props.children),"object"==typeof s&&null!==s){switch(s.$$typeof){case w:e:{for(var u=s.key,c=i;null!==c;){if(c.key===u){if((u=s.type)===P){if(7===c.tag){n(r,c.sibling),(i=o(c,s.props.children)).return=r,r=i;break e}}else if(c.elementType===u||"object"==typeof u&&null!==u&&u.$$typeof===D&&Gi(u)===c.type){n(r,c.sibling),(i=o(c,s.props)).ref=Ji(r,c,s),i.return=r,r=i;break e}n(r,c);break}t(r,c),c=c.sibling}s.type===P?((i=Lu(s.props.children,r.mode,l,s.key)).return=r,r=i):((l=Mu(s.type,s.key,s.props,null,r.mode,l)).ref=Ji(r,i,s),l.return=r,r=l)}return a(r);case x:e:{for(c=s.key;null!==i;){if(i.key===c){if(4===i.tag&&i.stateNode.containerInfo===s.containerInfo&&i.stateNode.implementation===s.implementation){n(r,i.sibling),(i=o(i,s.children||[])).return=r,r=i;break e}n(r,i);break}t(r,i),i=i.sibling}(i=Au(s,r.mode,l)).return=r,r=i}return a(r);case D:return e(r,i,(c=s._init)(s._payload),l)}if(te(s))return g(r,i,s,l);if(M(s))return m(r,i,s,l);$i(r,s)}return"string"==typeof s&&""!==s||"number"==typeof s?(s=""+s,null!==i&&6===i.tag?(n(r,i.sibling),(i=o(i,s)).return=r,r=i):(n(r,i),(i=Nu(s,r.mode,l)).return=r,r=i),a(r)):n(r,i)}}var Zi=Ki(!0),Yi=Ki(!1),Xi={},es=Vo(Xi),ts=Vo(Xi),ns=Vo(Xi);function rs(e){if(e===Xi)throw Error(i(174));return e}function os(e,t){switch(Oo(ns,t),Oo(ts,e),Oo(es,Xi),e=t.nodeType){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:le(null,"");break;default:t=le(t=(e=8===e?t.parentNode:t).namespaceURI||null,e=e.tagName)}Eo(es),Oo(es,t)}function is(){Eo(es),Eo(ts),Eo(ns)}function ss(e){rs(ns.current);var t=rs(es.current),n=le(t,e.type);t!==n&&(Oo(ts,e),Oo(es,n))}function as(e){ts.current===e&&(Eo(es),Eo(ts))}var ls=Vo(0);function us(e){for(var t=e;null!==t;){if(13===t.tag){var n=t.memoizedState;if(null!==n&&(null===(n=n.dehydrated)||"$?"===n.data||"$!"===n.data))return t}else if(19===t.tag&&void 0!==t.memoizedProps.revealOrder){if(0!=(128&t.flags))return t}else if(null!==t.child){t.child.return=t,t=t.child;continue}if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var cs=[];function ps(){for(var e=0;e<cs.length;e++)cs[e]._workInProgressVersionPrimary=null;cs.length=0}var ds=C.ReactCurrentDispatcher,hs=C.ReactCurrentBatchConfig,fs=0,gs=null,ms=null,ys=null,vs=!1,bs=!1,Cs=0,ws=0;function xs(){throw Error(i(321))}function Ps(e,t){if(null===t)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!ar(e[n],t[n]))return!1;return!0}function Ss(e,t,n,r,o,s){if(fs=s,gs=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,ds.current=null===e||null===e.memoizedState?aa:la,e=n(r,o),bs){s=0;do{if(bs=!1,Cs=0,25<=s)throw Error(i(301));s+=1,ys=ms=null,t.updateQueue=null,ds.current=ua,e=n(r,o)}while(bs)}if(ds.current=sa,t=null!==ms&&null!==ms.next,fs=0,ys=ms=gs=null,vs=!1,t)throw Error(i(300));return e}function Vs(){var e=0!==Cs;return Cs=0,e}function Es(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return null===ys?gs.memoizedState=ys=e:ys=ys.next=e,ys}function Os(){if(null===ms){var e=gs.alternate;e=null!==e?e.memoizedState:null}else e=ms.next;var t=null===ys?gs.memoizedState:ys.next;if(null!==t)ys=t,ms=e;else{if(null===e)throw Error(i(310));e={memoizedState:(ms=e).memoizedState,baseState:ms.baseState,baseQueue:ms.baseQueue,queue:ms.queue,next:null},null===ys?gs.memoizedState=ys=e:ys=ys.next=e}return ys}function Ts(e,t){return"function"==typeof t?t(e):t}function _s(e){var t=Os(),n=t.queue;if(null===n)throw Error(i(311));n.lastRenderedReducer=e;var r=ms,o=r.baseQueue,s=n.pending;if(null!==s){if(null!==o){var a=o.next;o.next=s.next,s.next=a}r.baseQueue=o=s,n.pending=null}if(null!==o){s=o.next,r=r.baseState;var l=a=null,u=null,c=s;do{var p=c.lane;if((fs&p)===p)null!==u&&(u=u.next={lane:0,action:c.action,hasEagerState:c.hasEagerState,eagerState:c.eagerState,next:null}),r=c.hasEagerState?c.eagerState:e(r,c.action);else{var d={lane:p,action:c.action,hasEagerState:c.hasEagerState,eagerState:c.eagerState,next:null};null===u?(l=u=d,a=r):u=u.next=d,gs.lanes|=p,ql|=p}c=c.next}while(null!==c&&c!==s);null===u?a=r:u.next=l,ar(r,t.memoizedState)||(Ca=!0),t.memoizedState=r,t.baseState=a,t.baseQueue=u,n.lastRenderedState=r}if(null!==(e=n.interleaved)){o=e;do{s=o.lane,gs.lanes|=s,ql|=s,o=o.next}while(o!==e)}else null===o&&(n.lanes=0);return[t.memoizedState,n.dispatch]}function Rs(e){var t=Os(),n=t.queue;if(null===n)throw Error(i(311));n.lastRenderedReducer=e;var r=n.dispatch,o=n.pending,s=t.memoizedState;if(null!==o){n.pending=null;var a=o=o.next;do{s=e(s,a.action),a=a.next}while(a!==o);ar(s,t.memoizedState)||(Ca=!0),t.memoizedState=s,null===t.baseQueue&&(t.baseState=s),n.lastRenderedState=s}return[s,r]}function Is(){}function Ds(e,t){var n=gs,r=Os(),o=t(),s=!ar(r.memoizedState,o);if(s&&(r.memoizedState=o,Ca=!0),r=r.queue,Hs(Ms.bind(null,n,r,e),[e]),r.getSnapshot!==t||s||null!==ys&&1&ys.memoizedState.tag){if(n.flags|=2048,As(9,ks.bind(null,n,r,o,t),void 0,null),null===Rl)throw Error(i(349));0!=(30&fs)||js(n,t,o)}return o}function js(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},null===(t=gs.updateQueue)?(t={lastEffect:null,stores:null},gs.updateQueue=t,t.stores=[e]):null===(n=t.stores)?t.stores=[e]:n.push(e)}function ks(e,t,n,r){t.value=n,t.getSnapshot=r,Ls(t)&&qs(e)}function Ms(e,t,n){return n((function(){Ls(t)&&qs(e)}))}function Ls(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!ar(e,n)}catch(e){return!0}}function qs(e){var t=Ri(e,1);null!==t&&ru(t,e,1,-1)}function Ns(e){var t=Es();return"function"==typeof e&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:Ts,lastRenderedState:e},t.queue=e,e=e.dispatch=na.bind(null,gs,e),[t.memoizedState,e]}function As(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},null===(t=gs.updateQueue)?(t={lastEffect:null,stores:null},gs.updateQueue=t,t.lastEffect=e.next=e):null===(n=t.lastEffect)?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e),e}function Bs(){return Os().memoizedState}function Fs(e,t,n,r){var o=Es();gs.flags|=e,o.memoizedState=As(1|t,n,void 0,void 0===r?null:r)}function Qs(e,t,n,r){var o=Os();r=void 0===r?null:r;var i=void 0;if(null!==ms){var s=ms.memoizedState;if(i=s.destroy,null!==r&&Ps(r,s.deps))return void(o.memoizedState=As(t,n,i,r))}gs.flags|=e,o.memoizedState=As(1|t,n,i,r)}function zs(e,t){return Fs(8390656,8,e,t)}function Hs(e,t){return Qs(2048,8,e,t)}function Us(e,t){return Qs(4,2,e,t)}function Ws(e,t){return Qs(4,4,e,t)}function Js(e,t){return"function"==typeof t?(e=e(),t(e),function(){t(null)}):null!=t?(e=e(),t.current=e,function(){t.current=null}):void 0}function $s(e,t,n){return n=null!=n?n.concat([e]):null,Qs(4,4,Js.bind(null,t,e),n)}function Gs(){}function Ks(e,t){var n=Os();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&Ps(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function Zs(e,t){var n=Os();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&Ps(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function Ys(e,t,n){return 0==(21&fs)?(e.baseState&&(e.baseState=!1,Ca=!0),e.memoizedState=n):(ar(n,t)||(n=gt(),gs.lanes|=n,ql|=n,e.baseState=!0),t)}function Xs(e,t){var n=bt;bt=0!==n&&4>n?n:4,e(!0);var r=hs.transition;hs.transition={};try{e(!1),t()}finally{bt=n,hs.transition=r}}function ea(){return Os().memoizedState}function ta(e,t,n){var r=nu(e);n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},ra(e)?oa(t,n):null!==(n=_i(e,t,n,r))&&(ru(n,e,r,tu()),ia(n,t,r))}function na(e,t,n){var r=nu(e),o={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(ra(e))oa(t,o);else{var i=e.alternate;if(0===e.lanes&&(null===i||0===i.lanes)&&null!==(i=t.lastRenderedReducer))try{var s=t.lastRenderedState,a=i(s,n);if(o.hasEagerState=!0,o.eagerState=a,ar(a,s)){var l=t.interleaved;return null===l?(o.next=o,Ti(t)):(o.next=l.next,l.next=o),void(t.interleaved=o)}}catch(e){}null!==(n=_i(e,t,o,r))&&(ru(n,e,r,o=tu()),ia(n,t,r))}}function ra(e){var t=e.alternate;return e===gs||null!==t&&t===gs}function oa(e,t){bs=vs=!0;var n=e.pending;null===n?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function ia(e,t,n){if(0!=(4194240&n)){var r=t.lanes;n|=r&=e.pendingLanes,t.lanes=n,vt(e,n)}}var sa={readContext:Ei,useCallback:xs,useContext:xs,useEffect:xs,useImperativeHandle:xs,useInsertionEffect:xs,useLayoutEffect:xs,useMemo:xs,useReducer:xs,useRef:xs,useState:xs,useDebugValue:xs,useDeferredValue:xs,useTransition:xs,useMutableSource:xs,useSyncExternalStore:xs,useId:xs,unstable_isNewReconciler:!1},aa={readContext:Ei,useCallback:function(e,t){return Es().memoizedState=[e,void 0===t?null:t],e},useContext:Ei,useEffect:zs,useImperativeHandle:function(e,t,n){return n=null!=n?n.concat([e]):null,Fs(4194308,4,Js.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Fs(4194308,4,e,t)},useInsertionEffect:function(e,t){return Fs(4,2,e,t)},useMemo:function(e,t){var n=Es();return t=void 0===t?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=Es();return t=void 0!==n?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=ta.bind(null,gs,e),[r.memoizedState,e]},useRef:function(e){return e={current:e},Es().memoizedState=e},useState:Ns,useDebugValue:Gs,useDeferredValue:function(e){return Es().memoizedState=e},useTransition:function(){var e=Ns(!1),t=e[0];return e=Xs.bind(null,e[1]),Es().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=gs,o=Es();if(ii){if(void 0===n)throw Error(i(407));n=n()}else{if(n=t(),null===Rl)throw Error(i(349));0!=(30&fs)||js(r,t,n)}o.memoizedState=n;var s={value:n,getSnapshot:t};return o.queue=s,zs(Ms.bind(null,r,s,e),[e]),r.flags|=2048,As(9,ks.bind(null,r,s,n,t),void 0,null),n},useId:function(){var e=Es(),t=Rl.identifierPrefix;if(ii){var n=Yo;t=":"+t+"R"+(n=(Zo&~(1<<32-st(Zo)-1)).toString(32)+n),0<(n=Cs++)&&(t+="H"+n.toString(32)),t+=":"}else t=":"+t+"r"+(n=ws++).toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},la={readContext:Ei,useCallback:Ks,useContext:Ei,useEffect:Hs,useImperativeHandle:$s,useInsertionEffect:Us,useLayoutEffect:Ws,useMemo:Zs,useReducer:_s,useRef:Bs,useState:function(){return _s(Ts)},useDebugValue:Gs,useDeferredValue:function(e){return Ys(Os(),ms.memoizedState,e)},useTransition:function(){return[_s(Ts)[0],Os().memoizedState]},useMutableSource:Is,useSyncExternalStore:Ds,useId:ea,unstable_isNewReconciler:!1},ua={readContext:Ei,useCallback:Ks,useContext:Ei,useEffect:Hs,useImperativeHandle:$s,useInsertionEffect:Us,useLayoutEffect:Ws,useMemo:Zs,useReducer:Rs,useRef:Bs,useState:function(){return Rs(Ts)},useDebugValue:Gs,useDeferredValue:function(e){var t=Os();return null===ms?t.memoizedState=e:Ys(t,ms.memoizedState,e)},useTransition:function(){return[Rs(Ts)[0],Os().memoizedState]},useMutableSource:Is,useSyncExternalStore:Ds,useId:ea,unstable_isNewReconciler:!1};function ca(e,t){try{var n="",r=t;do{n+=F(r),r=r.return}while(r);var o=n}catch(e){o="\nError generating stack: "+e.message+"\n"+e.stack}return{value:e,source:t,stack:o,digest:null}}function pa(e,t,n){return{value:e,source:null,stack:null!=n?n:null,digest:null!=t?t:null}}function da(e,t){try{console.error(t.value)}catch(e){setTimeout((function(){throw e}))}}var ha="function"==typeof WeakMap?WeakMap:Map;function fa(e,t,n){(n=ki(-1,n)).tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){Ul||(Ul=!0,Wl=r),da(0,t)},n}function ga(e,t,n){(n=ki(-1,n)).tag=3;var r=e.type.getDerivedStateFromError;if("function"==typeof r){var o=t.value;n.payload=function(){return r(o)},n.callback=function(){da(0,t)}}var i=e.stateNode;return null!==i&&"function"==typeof i.componentDidCatch&&(n.callback=function(){da(0,t),"function"!=typeof r&&(null===Jl?Jl=new Set([this]):Jl.add(this));var e=t.stack;this.componentDidCatch(t.value,{componentStack:null!==e?e:""})}),n}function ma(e,t,n){var r=e.pingCache;if(null===r){r=e.pingCache=new ha;var o=new Set;r.set(t,o)}else void 0===(o=r.get(t))&&(o=new Set,r.set(t,o));o.has(n)||(o.add(n),e=Eu.bind(null,e,t,n),t.then(e,e))}function ya(e){do{var t;if((t=13===e.tag)&&(t=null===(t=e.memoizedState)||null!==t.dehydrated),t)return e;e=e.return}while(null!==e);return null}function va(e,t,n,r,o){return 0==(1&e.mode)?(e===t?e.flags|=65536:(e.flags|=128,n.flags|=131072,n.flags&=-52805,1===n.tag&&(null===n.alternate?n.tag=17:((t=ki(-1,1)).tag=2,Mi(n,t,1))),n.lanes|=1),e):(e.flags|=65536,e.lanes=o,e)}var ba=C.ReactCurrentOwner,Ca=!1;function wa(e,t,n,r){t.child=null===e?Yi(t,null,n,r):Zi(t,e.child,n,r)}function xa(e,t,n,r,o){n=n.render;var i=t.ref;return Vi(t,o),r=Ss(e,t,n,r,i,o),n=Vs(),null===e||Ca?(ii&&n&&ti(t),t.flags|=1,wa(e,t,r,o),t.child):(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,Ua(e,t,o))}function Pa(e,t,n,r,o){if(null===e){var i=n.type;return"function"!=typeof i||ju(i)||void 0!==i.defaultProps||null!==n.compare||void 0!==n.defaultProps?((e=Mu(n.type,null,r,t,t.mode,o)).ref=t.ref,e.return=t,t.child=e):(t.tag=15,t.type=i,Sa(e,t,i,r,o))}if(i=e.child,0==(e.lanes&o)){var s=i.memoizedProps;if((n=null!==(n=n.compare)?n:lr)(s,r)&&e.ref===t.ref)return Ua(e,t,o)}return t.flags|=1,(e=ku(i,r)).ref=t.ref,e.return=t,t.child=e}function Sa(e,t,n,r,o){if(null!==e){var i=e.memoizedProps;if(lr(i,r)&&e.ref===t.ref){if(Ca=!1,t.pendingProps=r=i,0==(e.lanes&o))return t.lanes=e.lanes,Ua(e,t,o);0!=(131072&e.flags)&&(Ca=!0)}}return Oa(e,t,n,r,o)}function Va(e,t,n){var r=t.pendingProps,o=r.children,i=null!==e?e.memoizedState:null;if("hidden"===r.mode)if(0==(1&t.mode))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},Oo(kl,jl),jl|=n;else{if(0==(1073741824&n))return e=null!==i?i.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,Oo(kl,jl),jl|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=null!==i?i.baseLanes:n,Oo(kl,jl),jl|=r}else null!==i?(r=i.baseLanes|n,t.memoizedState=null):r=n,Oo(kl,jl),jl|=r;return wa(e,t,o,n),t.child}function Ea(e,t){var n=t.ref;(null===e&&null!==n||null!==e&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function Oa(e,t,n,r,o){var i=jo(n)?Io:_o.current;return i=Do(t,i),Vi(t,o),n=Ss(e,t,n,r,i,o),r=Vs(),null===e||Ca?(ii&&r&&ti(t),t.flags|=1,wa(e,t,n,o),t.child):(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,Ua(e,t,o))}function Ta(e,t,n,r,o){if(jo(n)){var i=!0;qo(t)}else i=!1;if(Vi(t,o),null===t.stateNode)Ha(e,t),Hi(t,n,r),Wi(t,n,r,o),r=!0;else if(null===e){var s=t.stateNode,a=t.memoizedProps;s.props=a;var l=s.context,u=n.contextType;u="object"==typeof u&&null!==u?Ei(u):Do(t,u=jo(n)?Io:_o.current);var c=n.getDerivedStateFromProps,p="function"==typeof c||"function"==typeof s.getSnapshotBeforeUpdate;p||"function"!=typeof s.UNSAFE_componentWillReceiveProps&&"function"!=typeof s.componentWillReceiveProps||(a!==r||l!==u)&&Ui(t,s,r,u),Ii=!1;var d=t.memoizedState;s.state=d,Ni(t,r,s,o),l=t.memoizedState,a!==r||d!==l||Ro.current||Ii?("function"==typeof c&&(Fi(t,n,c,r),l=t.memoizedState),(a=Ii||zi(t,n,a,r,d,l,u))?(p||"function"!=typeof s.UNSAFE_componentWillMount&&"function"!=typeof s.componentWillMount||("function"==typeof s.componentWillMount&&s.componentWillMount(),"function"==typeof s.UNSAFE_componentWillMount&&s.UNSAFE_componentWillMount()),"function"==typeof s.componentDidMount&&(t.flags|=4194308)):("function"==typeof s.componentDidMount&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=l),s.props=r,s.state=l,s.context=u,r=a):("function"==typeof s.componentDidMount&&(t.flags|=4194308),r=!1)}else{s=t.stateNode,ji(e,t),a=t.memoizedProps,u=t.type===t.elementType?a:yi(t.type,a),s.props=u,p=t.pendingProps,d=s.context,l="object"==typeof(l=n.contextType)&&null!==l?Ei(l):Do(t,l=jo(n)?Io:_o.current);var h=n.getDerivedStateFromProps;(c="function"==typeof h||"function"==typeof s.getSnapshotBeforeUpdate)||"function"!=typeof s.UNSAFE_componentWillReceiveProps&&"function"!=typeof s.componentWillReceiveProps||(a!==p||d!==l)&&Ui(t,s,r,l),Ii=!1,d=t.memoizedState,s.state=d,Ni(t,r,s,o);var f=t.memoizedState;a!==p||d!==f||Ro.current||Ii?("function"==typeof h&&(Fi(t,n,h,r),f=t.memoizedState),(u=Ii||zi(t,n,u,r,d,f,l)||!1)?(c||"function"!=typeof s.UNSAFE_componentWillUpdate&&"function"!=typeof s.componentWillUpdate||("function"==typeof s.componentWillUpdate&&s.componentWillUpdate(r,f,l),"function"==typeof s.UNSAFE_componentWillUpdate&&s.UNSAFE_componentWillUpdate(r,f,l)),"function"==typeof s.componentDidUpdate&&(t.flags|=4),"function"==typeof s.getSnapshotBeforeUpdate&&(t.flags|=1024)):("function"!=typeof s.componentDidUpdate||a===e.memoizedProps&&d===e.memoizedState||(t.flags|=4),"function"!=typeof s.getSnapshotBeforeUpdate||a===e.memoizedProps&&d===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=f),s.props=r,s.state=f,s.context=l,r=u):("function"!=typeof s.componentDidUpdate||a===e.memoizedProps&&d===e.memoizedState||(t.flags|=4),"function"!=typeof s.getSnapshotBeforeUpdate||a===e.memoizedProps&&d===e.memoizedState||(t.flags|=1024),r=!1)}return _a(e,t,n,r,i,o)}function _a(e,t,n,r,o,i){Ea(e,t);var s=0!=(128&t.flags);if(!r&&!s)return o&&No(t,n,!1),Ua(e,t,i);r=t.stateNode,ba.current=t;var a=s&&"function"!=typeof n.getDerivedStateFromError?null:r.render();return t.flags|=1,null!==e&&s?(t.child=Zi(t,e.child,null,i),t.child=Zi(t,null,a,i)):wa(e,t,a,i),t.memoizedState=r.state,o&&No(t,n,!0),t.child}function Ra(e){var t=e.stateNode;t.pendingContext?Mo(0,t.pendingContext,t.pendingContext!==t.context):t.context&&Mo(0,t.context,!1),os(e,t.containerInfo)}function Ia(e,t,n,r,o){return fi(),gi(o),t.flags|=256,wa(e,t,n,r),t.child}var Da,ja,ka,Ma,La={dehydrated:null,treeContext:null,retryLane:0};function qa(e){return{baseLanes:e,cachePool:null,transitions:null}}function Na(e,t,n){var r,o=t.pendingProps,s=ls.current,a=!1,l=0!=(128&t.flags);if((r=l)||(r=(null===e||null!==e.memoizedState)&&0!=(2&s)),r?(a=!0,t.flags&=-129):null!==e&&null===e.memoizedState||(s|=1),Oo(ls,1&s),null===e)return ci(t),null!==(e=t.memoizedState)&&null!==(e=e.dehydrated)?(0==(1&t.mode)?t.lanes=1:"$!"===e.data?t.lanes=8:t.lanes=1073741824,null):(l=o.children,e=o.fallback,a?(o=t.mode,a=t.child,l={mode:"hidden",children:l},0==(1&o)&&null!==a?(a.childLanes=0,a.pendingProps=l):a=qu(l,o,0,null),e=Lu(e,o,n,null),a.return=t,e.return=t,a.sibling=e,t.child=a,t.child.memoizedState=qa(n),t.memoizedState=La,e):Aa(t,l));if(null!==(s=e.memoizedState)&&null!==(r=s.dehydrated))return function(e,t,n,r,o,s,a){if(n)return 256&t.flags?(t.flags&=-257,Ba(e,t,a,r=pa(Error(i(422))))):null!==t.memoizedState?(t.child=e.child,t.flags|=128,null):(s=r.fallback,o=t.mode,r=qu({mode:"visible",children:r.children},o,0,null),(s=Lu(s,o,a,null)).flags|=2,r.return=t,s.return=t,r.sibling=s,t.child=r,0!=(1&t.mode)&&Zi(t,e.child,null,a),t.child.memoizedState=qa(a),t.memoizedState=La,s);if(0==(1&t.mode))return Ba(e,t,a,null);if("$!"===o.data){if(r=o.nextSibling&&o.nextSibling.dataset)var l=r.dgst;return r=l,Ba(e,t,a,r=pa(s=Error(i(419)),r,void 0))}if(l=0!=(a&e.childLanes),Ca||l){if(null!==(r=Rl)){switch(a&-a){case 4:o=2;break;case 16:o=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:o=32;break;case 536870912:o=268435456;break;default:o=0}0!==(o=0!=(o&(r.suspendedLanes|a))?0:o)&&o!==s.retryLane&&(s.retryLane=o,Ri(e,o),ru(r,e,o,-1))}return mu(),Ba(e,t,a,r=pa(Error(i(421))))}return"$?"===o.data?(t.flags|=128,t.child=e.child,t=Tu.bind(null,e),o._reactRetry=t,null):(e=s.treeContext,oi=uo(o.nextSibling),ri=t,ii=!0,si=null,null!==e&&($o[Go++]=Zo,$o[Go++]=Yo,$o[Go++]=Ko,Zo=e.id,Yo=e.overflow,Ko=t),(t=Aa(t,r.children)).flags|=4096,t)}(e,t,l,o,r,s,n);if(a){a=o.fallback,l=t.mode,r=(s=e.child).sibling;var u={mode:"hidden",children:o.children};return 0==(1&l)&&t.child!==s?((o=t.child).childLanes=0,o.pendingProps=u,t.deletions=null):(o=ku(s,u)).subtreeFlags=14680064&s.subtreeFlags,null!==r?a=ku(r,a):(a=Lu(a,l,n,null)).flags|=2,a.return=t,o.return=t,o.sibling=a,t.child=o,o=a,a=t.child,l=null===(l=e.child.memoizedState)?qa(n):{baseLanes:l.baseLanes|n,cachePool:null,transitions:l.transitions},a.memoizedState=l,a.childLanes=e.childLanes&~n,t.memoizedState=La,o}return e=(a=e.child).sibling,o=ku(a,{mode:"visible",children:o.children}),0==(1&t.mode)&&(o.lanes=n),o.return=t,o.sibling=null,null!==e&&(null===(n=t.deletions)?(t.deletions=[e],t.flags|=16):n.push(e)),t.child=o,t.memoizedState=null,o}function Aa(e,t){return(t=qu({mode:"visible",children:t},e.mode,0,null)).return=e,e.child=t}function Ba(e,t,n,r){return null!==r&&gi(r),Zi(t,e.child,null,n),(e=Aa(t,t.pendingProps.children)).flags|=2,t.memoizedState=null,e}function Fa(e,t,n){e.lanes|=t;var r=e.alternate;null!==r&&(r.lanes|=t),Si(e.return,t,n)}function Qa(e,t,n,r,o){var i=e.memoizedState;null===i?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:o}:(i.isBackwards=t,i.rendering=null,i.renderingStartTime=0,i.last=r,i.tail=n,i.tailMode=o)}function za(e,t,n){var r=t.pendingProps,o=r.revealOrder,i=r.tail;if(wa(e,t,r.children,n),0!=(2&(r=ls.current)))r=1&r|2,t.flags|=128;else{if(null!==e&&0!=(128&e.flags))e:for(e=t.child;null!==e;){if(13===e.tag)null!==e.memoizedState&&Fa(e,n,t);else if(19===e.tag)Fa(e,n,t);else if(null!==e.child){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;null===e.sibling;){if(null===e.return||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=1}if(Oo(ls,r),0==(1&t.mode))t.memoizedState=null;else switch(o){case"forwards":for(n=t.child,o=null;null!==n;)null!==(e=n.alternate)&&null===us(e)&&(o=n),n=n.sibling;null===(n=o)?(o=t.child,t.child=null):(o=n.sibling,n.sibling=null),Qa(t,!1,o,n,i);break;case"backwards":for(n=null,o=t.child,t.child=null;null!==o;){if(null!==(e=o.alternate)&&null===us(e)){t.child=o;break}e=o.sibling,o.sibling=n,n=o,o=e}Qa(t,!0,n,null,i);break;case"together":Qa(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function Ha(e,t){0==(1&t.mode)&&null!==e&&(e.alternate=null,t.alternate=null,t.flags|=2)}function Ua(e,t,n){if(null!==e&&(t.dependencies=e.dependencies),ql|=t.lanes,0==(n&t.childLanes))return null;if(null!==e&&t.child!==e.child)throw Error(i(153));if(null!==t.child){for(n=ku(e=t.child,e.pendingProps),t.child=n,n.return=t;null!==e.sibling;)e=e.sibling,(n=n.sibling=ku(e,e.pendingProps)).return=t;n.sibling=null}return t.child}function Wa(e,t){if(!ii)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;null!==t;)null!==t.alternate&&(n=t),t=t.sibling;null===n?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var r=null;null!==n;)null!==n.alternate&&(r=n),n=n.sibling;null===r?t||null===e.tail?e.tail=null:e.tail.sibling=null:r.sibling=null}}function Ja(e){var t=null!==e.alternate&&e.alternate.child===e.child,n=0,r=0;if(t)for(var o=e.child;null!==o;)n|=o.lanes|o.childLanes,r|=14680064&o.subtreeFlags,r|=14680064&o.flags,o.return=e,o=o.sibling;else for(o=e.child;null!==o;)n|=o.lanes|o.childLanes,r|=o.subtreeFlags,r|=o.flags,o.return=e,o=o.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function $a(e,t,n){var r=t.pendingProps;switch(ni(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Ja(t),null;case 1:case 17:return jo(t.type)&&ko(),Ja(t),null;case 3:return r=t.stateNode,is(),Eo(Ro),Eo(_o),ps(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),null!==e&&null!==e.child||(di(t)?t.flags|=4:null===e||e.memoizedState.isDehydrated&&0==(256&t.flags)||(t.flags|=1024,null!==si&&(au(si),si=null))),ja(e,t),Ja(t),null;case 5:as(t);var o=rs(ns.current);if(n=t.type,null!==e&&null!=t.stateNode)ka(e,t,n,r,o),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!r){if(null===t.stateNode)throw Error(i(166));return Ja(t),null}if(e=rs(es.current),di(t)){r=t.stateNode,n=t.type;var s=t.memoizedProps;switch(r[ho]=t,r[fo]=s,e=0!=(1&t.mode),n){case"dialog":Ar("cancel",r),Ar("close",r);break;case"iframe":case"object":case"embed":Ar("load",r);break;case"video":case"audio":for(o=0;o<Mr.length;o++)Ar(Mr[o],r);break;case"source":Ar("error",r);break;case"img":case"image":case"link":Ar("error",r),Ar("load",r);break;case"details":Ar("toggle",r);break;case"input":K(r,s),Ar("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!s.multiple},Ar("invalid",r);break;case"textarea":oe(r,s),Ar("invalid",r)}for(var l in ve(n,s),o=null,s)if(s.hasOwnProperty(l)){var u=s[l];"children"===l?"string"==typeof u?r.textContent!==u&&(!0!==s.suppressHydrationWarning&&Yr(r.textContent,u,e),o=["children",u]):"number"==typeof u&&r.textContent!==""+u&&(!0!==s.suppressHydrationWarning&&Yr(r.textContent,u,e),o=["children",""+u]):a.hasOwnProperty(l)&&null!=u&&"onScroll"===l&&Ar("scroll",r)}switch(n){case"input":W(r),X(r,s,!0);break;case"textarea":W(r),se(r);break;case"select":case"option":break;default:"function"==typeof s.onClick&&(r.onclick=Xr)}r=o,t.updateQueue=r,null!==r&&(t.flags|=4)}else{l=9===o.nodeType?o:o.ownerDocument,"http://www.w3.org/1999/xhtml"===e&&(e=ae(n)),"http://www.w3.org/1999/xhtml"===e?"script"===n?((e=l.createElement("div")).innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):"string"==typeof r.is?e=l.createElement(n,{is:r.is}):(e=l.createElement(n),"select"===n&&(l=e,r.multiple?l.multiple=!0:r.size&&(l.size=r.size))):e=l.createElementNS(e,n),e[ho]=t,e[fo]=r,Da(e,t,!1,!1),t.stateNode=e;e:{switch(l=be(n,r),n){case"dialog":Ar("cancel",e),Ar("close",e),o=r;break;case"iframe":case"object":case"embed":Ar("load",e),o=r;break;case"video":case"audio":for(o=0;o<Mr.length;o++)Ar(Mr[o],e);o=r;break;case"source":Ar("error",e),o=r;break;case"img":case"image":case"link":Ar("error",e),Ar("load",e),o=r;break;case"details":Ar("toggle",e),o=r;break;case"input":K(e,r),o=G(e,r),Ar("invalid",e);break;case"option":default:o=r;break;case"select":e._wrapperState={wasMultiple:!!r.multiple},o=q({},r,{value:void 0}),Ar("invalid",e);break;case"textarea":oe(e,r),o=re(e,r),Ar("invalid",e)}for(s in ve(n,o),u=o)if(u.hasOwnProperty(s)){var c=u[s];"style"===s?me(e,c):"dangerouslySetInnerHTML"===s?null!=(c=c?c.__html:void 0)&&pe(e,c):"children"===s?"string"==typeof c?("textarea"!==n||""!==c)&&de(e,c):"number"==typeof c&&de(e,""+c):"suppressContentEditableWarning"!==s&&"suppressHydrationWarning"!==s&&"autoFocus"!==s&&(a.hasOwnProperty(s)?null!=c&&"onScroll"===s&&Ar("scroll",e):null!=c&&b(e,s,c,l))}switch(n){case"input":W(e),X(e,r,!1);break;case"textarea":W(e),se(e);break;case"option":null!=r.value&&e.setAttribute("value",""+H(r.value));break;case"select":e.multiple=!!r.multiple,null!=(s=r.value)?ne(e,!!r.multiple,s,!1):null!=r.defaultValue&&ne(e,!!r.multiple,r.defaultValue,!0);break;default:"function"==typeof o.onClick&&(e.onclick=Xr)}switch(n){case"button":case"input":case"select":case"textarea":r=!!r.autoFocus;break e;case"img":r=!0;break e;default:r=!1}}r&&(t.flags|=4)}null!==t.ref&&(t.flags|=512,t.flags|=2097152)}return Ja(t),null;case 6:if(e&&null!=t.stateNode)Ma(e,t,e.memoizedProps,r);else{if("string"!=typeof r&&null===t.stateNode)throw Error(i(166));if(n=rs(ns.current),rs(es.current),di(t)){if(r=t.stateNode,n=t.memoizedProps,r[ho]=t,(s=r.nodeValue!==n)&&null!==(e=ri))switch(e.tag){case 3:Yr(r.nodeValue,n,0!=(1&e.mode));break;case 5:!0!==e.memoizedProps.suppressHydrationWarning&&Yr(r.nodeValue,n,0!=(1&e.mode))}s&&(t.flags|=4)}else(r=(9===n.nodeType?n:n.ownerDocument).createTextNode(r))[ho]=t,t.stateNode=r}return Ja(t),null;case 13:if(Eo(ls),r=t.memoizedState,null===e||null!==e.memoizedState&&null!==e.memoizedState.dehydrated){if(ii&&null!==oi&&0!=(1&t.mode)&&0==(128&t.flags))hi(),fi(),t.flags|=98560,s=!1;else if(s=di(t),null!==r&&null!==r.dehydrated){if(null===e){if(!s)throw Error(i(318));if(!(s=null!==(s=t.memoizedState)?s.dehydrated:null))throw Error(i(317));s[ho]=t}else fi(),0==(128&t.flags)&&(t.memoizedState=null),t.flags|=4;Ja(t),s=!1}else null!==si&&(au(si),si=null),s=!0;if(!s)return 65536&t.flags?t:null}return 0!=(128&t.flags)?(t.lanes=n,t):((r=null!==r)!=(null!==e&&null!==e.memoizedState)&&r&&(t.child.flags|=8192,0!=(1&t.mode)&&(null===e||0!=(1&ls.current)?0===Ml&&(Ml=3):mu())),null!==t.updateQueue&&(t.flags|=4),Ja(t),null);case 4:return is(),ja(e,t),null===e&&Qr(t.stateNode.containerInfo),Ja(t),null;case 10:return Pi(t.type._context),Ja(t),null;case 19:if(Eo(ls),null===(s=t.memoizedState))return Ja(t),null;if(r=0!=(128&t.flags),null===(l=s.rendering))if(r)Wa(s,!1);else{if(0!==Ml||null!==e&&0!=(128&e.flags))for(e=t.child;null!==e;){if(null!==(l=us(e))){for(t.flags|=128,Wa(s,!1),null!==(r=l.updateQueue)&&(t.updateQueue=r,t.flags|=4),t.subtreeFlags=0,r=n,n=t.child;null!==n;)e=r,(s=n).flags&=14680066,null===(l=s.alternate)?(s.childLanes=0,s.lanes=e,s.child=null,s.subtreeFlags=0,s.memoizedProps=null,s.memoizedState=null,s.updateQueue=null,s.dependencies=null,s.stateNode=null):(s.childLanes=l.childLanes,s.lanes=l.lanes,s.child=l.child,s.subtreeFlags=0,s.deletions=null,s.memoizedProps=l.memoizedProps,s.memoizedState=l.memoizedState,s.updateQueue=l.updateQueue,s.type=l.type,e=l.dependencies,s.dependencies=null===e?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return Oo(ls,1&ls.current|2),t.child}e=e.sibling}null!==s.tail&&Ze()>zl&&(t.flags|=128,r=!0,Wa(s,!1),t.lanes=4194304)}else{if(!r)if(null!==(e=us(l))){if(t.flags|=128,r=!0,null!==(n=e.updateQueue)&&(t.updateQueue=n,t.flags|=4),Wa(s,!0),null===s.tail&&"hidden"===s.tailMode&&!l.alternate&&!ii)return Ja(t),null}else 2*Ze()-s.renderingStartTime>zl&&1073741824!==n&&(t.flags|=128,r=!0,Wa(s,!1),t.lanes=4194304);s.isBackwards?(l.sibling=t.child,t.child=l):(null!==(n=s.last)?n.sibling=l:t.child=l,s.last=l)}return null!==s.tail?(t=s.tail,s.rendering=t,s.tail=t.sibling,s.renderingStartTime=Ze(),t.sibling=null,n=ls.current,Oo(ls,r?1&n|2:1&n),t):(Ja(t),null);case 22:case 23:return du(),r=null!==t.memoizedState,null!==e&&null!==e.memoizedState!==r&&(t.flags|=8192),r&&0!=(1&t.mode)?0!=(1073741824&jl)&&(Ja(t),6&t.subtreeFlags&&(t.flags|=8192)):Ja(t),null;case 24:case 25:return null}throw Error(i(156,t.tag))}function Ga(e,t){switch(ni(t),t.tag){case 1:return jo(t.type)&&ko(),65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 3:return is(),Eo(Ro),Eo(_o),ps(),0!=(65536&(e=t.flags))&&0==(128&e)?(t.flags=-65537&e|128,t):null;case 5:return as(t),null;case 13:if(Eo(ls),null!==(e=t.memoizedState)&&null!==e.dehydrated){if(null===t.alternate)throw Error(i(340));fi()}return 65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 19:return Eo(ls),null;case 4:return is(),null;case 10:return Pi(t.type._context),null;case 22:case 23:return du(),null;default:return null}}Da=function(e,t){for(var n=t.child;null!==n;){if(5===n.tag||6===n.tag)e.appendChild(n.stateNode);else if(4!==n.tag&&null!==n.child){n.child.return=n,n=n.child;continue}if(n===t)break;for(;null===n.sibling;){if(null===n.return||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}},ja=function(){},ka=function(e,t,n,r){var o=e.memoizedProps;if(o!==r){e=t.stateNode,rs(es.current);var i,s=null;switch(n){case"input":o=G(e,o),r=G(e,r),s=[];break;case"select":o=q({},o,{value:void 0}),r=q({},r,{value:void 0}),s=[];break;case"textarea":o=re(e,o),r=re(e,r),s=[];break;default:"function"!=typeof o.onClick&&"function"==typeof r.onClick&&(e.onclick=Xr)}for(c in ve(n,r),n=null,o)if(!r.hasOwnProperty(c)&&o.hasOwnProperty(c)&&null!=o[c])if("style"===c){var l=o[c];for(i in l)l.hasOwnProperty(i)&&(n||(n={}),n[i]="")}else"dangerouslySetInnerHTML"!==c&&"children"!==c&&"suppressContentEditableWarning"!==c&&"suppressHydrationWarning"!==c&&"autoFocus"!==c&&(a.hasOwnProperty(c)?s||(s=[]):(s=s||[]).push(c,null));for(c in r){var u=r[c];if(l=null!=o?o[c]:void 0,r.hasOwnProperty(c)&&u!==l&&(null!=u||null!=l))if("style"===c)if(l){for(i in l)!l.hasOwnProperty(i)||u&&u.hasOwnProperty(i)||(n||(n={}),n[i]="");for(i in u)u.hasOwnProperty(i)&&l[i]!==u[i]&&(n||(n={}),n[i]=u[i])}else n||(s||(s=[]),s.push(c,n)),n=u;else"dangerouslySetInnerHTML"===c?(u=u?u.__html:void 0,l=l?l.__html:void 0,null!=u&&l!==u&&(s=s||[]).push(c,u)):"children"===c?"string"!=typeof u&&"number"!=typeof u||(s=s||[]).push(c,""+u):"suppressContentEditableWarning"!==c&&"suppressHydrationWarning"!==c&&(a.hasOwnProperty(c)?(null!=u&&"onScroll"===c&&Ar("scroll",e),s||l===u||(s=[])):(s=s||[]).push(c,u))}n&&(s=s||[]).push("style",n);var c=s;(t.updateQueue=c)&&(t.flags|=4)}},Ma=function(e,t,n,r){n!==r&&(t.flags|=4)};var Ka=!1,Za=!1,Ya="function"==typeof WeakSet?WeakSet:Set,Xa=null;function el(e,t){var n=e.ref;if(null!==n)if("function"==typeof n)try{n(null)}catch(n){Vu(e,t,n)}else n.current=null}function tl(e,t,n){try{n()}catch(n){Vu(e,t,n)}}var nl=!1;function rl(e,t,n){var r=t.updateQueue;if(null!==(r=null!==r?r.lastEffect:null)){var o=r=r.next;do{if((o.tag&e)===e){var i=o.destroy;o.destroy=void 0,void 0!==i&&tl(t,n,i)}o=o.next}while(o!==r)}}function ol(e,t){if(null!==(t=null!==(t=t.updateQueue)?t.lastEffect:null)){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function il(e){var t=e.ref;if(null!==t){var n=e.stateNode;e.tag,e=n,"function"==typeof t?t(e):t.current=e}}function sl(e){var t=e.alternate;null!==t&&(e.alternate=null,sl(t)),e.child=null,e.deletions=null,e.sibling=null,5===e.tag&&null!==(t=e.stateNode)&&(delete t[ho],delete t[fo],delete t[mo],delete t[yo],delete t[vo]),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function al(e){return 5===e.tag||3===e.tag||4===e.tag}function ll(e){e:for(;;){for(;null===e.sibling;){if(null===e.return||al(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;5!==e.tag&&6!==e.tag&&18!==e.tag;){if(2&e.flags)continue e;if(null===e.child||4===e.tag)continue e;e.child.return=e,e=e.child}if(!(2&e.flags))return e.stateNode}}function ul(e,t,n){var r=e.tag;if(5===r||6===r)e=e.stateNode,t?8===n.nodeType?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(8===n.nodeType?(t=n.parentNode).insertBefore(e,n):(t=n).appendChild(e),null!=(n=n._reactRootContainer)||null!==t.onclick||(t.onclick=Xr));else if(4!==r&&null!==(e=e.child))for(ul(e,t,n),e=e.sibling;null!==e;)ul(e,t,n),e=e.sibling}function cl(e,t,n){var r=e.tag;if(5===r||6===r)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(4!==r&&null!==(e=e.child))for(cl(e,t,n),e=e.sibling;null!==e;)cl(e,t,n),e=e.sibling}var pl=null,dl=!1;function hl(e,t,n){for(n=n.child;null!==n;)fl(e,t,n),n=n.sibling}function fl(e,t,n){if(it&&"function"==typeof it.onCommitFiberUnmount)try{it.onCommitFiberUnmount(ot,n)}catch(e){}switch(n.tag){case 5:Za||el(n,t);case 6:var r=pl,o=dl;pl=null,hl(e,t,n),dl=o,null!==(pl=r)&&(dl?(e=pl,n=n.stateNode,8===e.nodeType?e.parentNode.removeChild(n):e.removeChild(n)):pl.removeChild(n.stateNode));break;case 18:null!==pl&&(dl?(e=pl,n=n.stateNode,8===e.nodeType?lo(e.parentNode,n):1===e.nodeType&&lo(e,n),Qt(e)):lo(pl,n.stateNode));break;case 4:r=pl,o=dl,pl=n.stateNode.containerInfo,dl=!0,hl(e,t,n),pl=r,dl=o;break;case 0:case 11:case 14:case 15:if(!Za&&null!==(r=n.updateQueue)&&null!==(r=r.lastEffect)){o=r=r.next;do{var i=o,s=i.destroy;i=i.tag,void 0!==s&&(0!=(2&i)||0!=(4&i))&&tl(n,t,s),o=o.next}while(o!==r)}hl(e,t,n);break;case 1:if(!Za&&(el(n,t),"function"==typeof(r=n.stateNode).componentWillUnmount))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(e){Vu(n,t,e)}hl(e,t,n);break;case 21:hl(e,t,n);break;case 22:1&n.mode?(Za=(r=Za)||null!==n.memoizedState,hl(e,t,n),Za=r):hl(e,t,n);break;default:hl(e,t,n)}}function gl(e){var t=e.updateQueue;if(null!==t){e.updateQueue=null;var n=e.stateNode;null===n&&(n=e.stateNode=new Ya),t.forEach((function(t){var r=_u.bind(null,e,t);n.has(t)||(n.add(t),t.then(r,r))}))}}function ml(e,t){var n=t.deletions;if(null!==n)for(var r=0;r<n.length;r++){var o=n[r];try{var s=e,a=t,l=a;e:for(;null!==l;){switch(l.tag){case 5:pl=l.stateNode,dl=!1;break e;case 3:case 4:pl=l.stateNode.containerInfo,dl=!0;break e}l=l.return}if(null===pl)throw Error(i(160));fl(s,a,o),pl=null,dl=!1;var u=o.alternate;null!==u&&(u.return=null),o.return=null}catch(e){Vu(o,t,e)}}if(12854&t.subtreeFlags)for(t=t.child;null!==t;)yl(t,e),t=t.sibling}function yl(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(ml(t,e),vl(e),4&r){try{rl(3,e,e.return),ol(3,e)}catch(t){Vu(e,e.return,t)}try{rl(5,e,e.return)}catch(t){Vu(e,e.return,t)}}break;case 1:ml(t,e),vl(e),512&r&&null!==n&&el(n,n.return);break;case 5:if(ml(t,e),vl(e),512&r&&null!==n&&el(n,n.return),32&e.flags){var o=e.stateNode;try{de(o,"")}catch(t){Vu(e,e.return,t)}}if(4&r&&null!=(o=e.stateNode)){var s=e.memoizedProps,a=null!==n?n.memoizedProps:s,l=e.type,u=e.updateQueue;if(e.updateQueue=null,null!==u)try{"input"===l&&"radio"===s.type&&null!=s.name&&Z(o,s),be(l,a);var c=be(l,s);for(a=0;a<u.length;a+=2){var p=u[a],d=u[a+1];"style"===p?me(o,d):"dangerouslySetInnerHTML"===p?pe(o,d):"children"===p?de(o,d):b(o,p,d,c)}switch(l){case"input":Y(o,s);break;case"textarea":ie(o,s);break;case"select":var h=o._wrapperState.wasMultiple;o._wrapperState.wasMultiple=!!s.multiple;var f=s.value;null!=f?ne(o,!!s.multiple,f,!1):h!==!!s.multiple&&(null!=s.defaultValue?ne(o,!!s.multiple,s.defaultValue,!0):ne(o,!!s.multiple,s.multiple?[]:"",!1))}o[fo]=s}catch(t){Vu(e,e.return,t)}}break;case 6:if(ml(t,e),vl(e),4&r){if(null===e.stateNode)throw Error(i(162));o=e.stateNode,s=e.memoizedProps;try{o.nodeValue=s}catch(t){Vu(e,e.return,t)}}break;case 3:if(ml(t,e),vl(e),4&r&&null!==n&&n.memoizedState.isDehydrated)try{Qt(t.containerInfo)}catch(t){Vu(e,e.return,t)}break;case 4:default:ml(t,e),vl(e);break;case 13:ml(t,e),vl(e),8192&(o=e.child).flags&&(s=null!==o.memoizedState,o.stateNode.isHidden=s,!s||null!==o.alternate&&null!==o.alternate.memoizedState||(Ql=Ze())),4&r&&gl(e);break;case 22:if(p=null!==n&&null!==n.memoizedState,1&e.mode?(Za=(c=Za)||p,ml(t,e),Za=c):ml(t,e),vl(e),8192&r){if(c=null!==e.memoizedState,(e.stateNode.isHidden=c)&&!p&&0!=(1&e.mode))for(Xa=e,p=e.child;null!==p;){for(d=Xa=p;null!==Xa;){switch(f=(h=Xa).child,h.tag){case 0:case 11:case 14:case 15:rl(4,h,h.return);break;case 1:el(h,h.return);var g=h.stateNode;if("function"==typeof g.componentWillUnmount){r=h,n=h.return;try{t=r,g.props=t.memoizedProps,g.state=t.memoizedState,g.componentWillUnmount()}catch(e){Vu(r,n,e)}}break;case 5:el(h,h.return);break;case 22:if(null!==h.memoizedState){xl(d);continue}}null!==f?(f.return=h,Xa=f):xl(d)}p=p.sibling}e:for(p=null,d=e;;){if(5===d.tag){if(null===p){p=d;try{o=d.stateNode,c?"function"==typeof(s=o.style).setProperty?s.setProperty("display","none","important"):s.display="none":(l=d.stateNode,a=null!=(u=d.memoizedProps.style)&&u.hasOwnProperty("display")?u.display:null,l.style.display=ge("display",a))}catch(t){Vu(e,e.return,t)}}}else if(6===d.tag){if(null===p)try{d.stateNode.nodeValue=c?"":d.memoizedProps}catch(t){Vu(e,e.return,t)}}else if((22!==d.tag&&23!==d.tag||null===d.memoizedState||d===e)&&null!==d.child){d.child.return=d,d=d.child;continue}if(d===e)break e;for(;null===d.sibling;){if(null===d.return||d.return===e)break e;p===d&&(p=null),d=d.return}p===d&&(p=null),d.sibling.return=d.return,d=d.sibling}}break;case 19:ml(t,e),vl(e),4&r&&gl(e);case 21:}}function vl(e){var t=e.flags;if(2&t){try{e:{for(var n=e.return;null!==n;){if(al(n)){var r=n;break e}n=n.return}throw Error(i(160))}switch(r.tag){case 5:var o=r.stateNode;32&r.flags&&(de(o,""),r.flags&=-33),cl(e,ll(e),o);break;case 3:case 4:var s=r.stateNode.containerInfo;ul(e,ll(e),s);break;default:throw Error(i(161))}}catch(t){Vu(e,e.return,t)}e.flags&=-3}4096&t&&(e.flags&=-4097)}function bl(e,t,n){Xa=e,Cl(e,t,n)}function Cl(e,t,n){for(var r=0!=(1&e.mode);null!==Xa;){var o=Xa,i=o.child;if(22===o.tag&&r){var s=null!==o.memoizedState||Ka;if(!s){var a=o.alternate,l=null!==a&&null!==a.memoizedState||Za;a=Ka;var u=Za;if(Ka=s,(Za=l)&&!u)for(Xa=o;null!==Xa;)l=(s=Xa).child,22===s.tag&&null!==s.memoizedState?Pl(o):null!==l?(l.return=s,Xa=l):Pl(o);for(;null!==i;)Xa=i,Cl(i,t,n),i=i.sibling;Xa=o,Ka=a,Za=u}wl(e)}else 0!=(8772&o.subtreeFlags)&&null!==i?(i.return=o,Xa=i):wl(e)}}function wl(e){for(;null!==Xa;){var t=Xa;if(0!=(8772&t.flags)){var n=t.alternate;try{if(0!=(8772&t.flags))switch(t.tag){case 0:case 11:case 15:Za||ol(5,t);break;case 1:var r=t.stateNode;if(4&t.flags&&!Za)if(null===n)r.componentDidMount();else{var o=t.elementType===t.type?n.memoizedProps:yi(t.type,n.memoizedProps);r.componentDidUpdate(o,n.memoizedState,r.__reactInternalSnapshotBeforeUpdate)}var s=t.updateQueue;null!==s&&Ai(t,s,r);break;case 3:var a=t.updateQueue;if(null!==a){if(n=null,null!==t.child)switch(t.child.tag){case 5:case 1:n=t.child.stateNode}Ai(t,a,n)}break;case 5:var l=t.stateNode;if(null===n&&4&t.flags){n=l;var u=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":u.autoFocus&&n.focus();break;case"img":u.src&&(n.src=u.src)}}break;case 6:case 4:case 12:case 19:case 17:case 21:case 22:case 23:case 25:break;case 13:if(null===t.memoizedState){var c=t.alternate;if(null!==c){var p=c.memoizedState;if(null!==p){var d=p.dehydrated;null!==d&&Qt(d)}}}break;default:throw Error(i(163))}Za||512&t.flags&&il(t)}catch(e){Vu(t,t.return,e)}}if(t===e){Xa=null;break}if(null!==(n=t.sibling)){n.return=t.return,Xa=n;break}Xa=t.return}}function xl(e){for(;null!==Xa;){var t=Xa;if(t===e){Xa=null;break}var n=t.sibling;if(null!==n){n.return=t.return,Xa=n;break}Xa=t.return}}function Pl(e){for(;null!==Xa;){var t=Xa;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{ol(4,t)}catch(e){Vu(t,n,e)}break;case 1:var r=t.stateNode;if("function"==typeof r.componentDidMount){var o=t.return;try{r.componentDidMount()}catch(e){Vu(t,o,e)}}var i=t.return;try{il(t)}catch(e){Vu(t,i,e)}break;case 5:var s=t.return;try{il(t)}catch(e){Vu(t,s,e)}}}catch(e){Vu(t,t.return,e)}if(t===e){Xa=null;break}var a=t.sibling;if(null!==a){a.return=t.return,Xa=a;break}Xa=t.return}}var Sl,Vl=Math.ceil,El=C.ReactCurrentDispatcher,Ol=C.ReactCurrentOwner,Tl=C.ReactCurrentBatchConfig,_l=0,Rl=null,Il=null,Dl=0,jl=0,kl=Vo(0),Ml=0,Ll=null,ql=0,Nl=0,Al=0,Bl=null,Fl=null,Ql=0,zl=1/0,Hl=null,Ul=!1,Wl=null,Jl=null,$l=!1,Gl=null,Kl=0,Zl=0,Yl=null,Xl=-1,eu=0;function tu(){return 0!=(6&_l)?Ze():-1!==Xl?Xl:Xl=Ze()}function nu(e){return 0==(1&e.mode)?1:0!=(2&_l)&&0!==Dl?Dl&-Dl:null!==mi.transition?(0===eu&&(eu=gt()),eu):0!==(e=bt)?e:e=void 0===(e=window.event)?16:Kt(e.type)}function ru(e,t,n,r){if(50<Zl)throw Zl=0,Yl=null,Error(i(185));yt(e,n,r),0!=(2&_l)&&e===Rl||(e===Rl&&(0==(2&_l)&&(Nl|=n),4===Ml&&lu(e,Dl)),ou(e,r),1===n&&0===_l&&0==(1&t.mode)&&(zl=Ze()+500,Bo&&zo()))}function ou(e,t){var n=e.callbackNode;!function(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,o=e.expirationTimes,i=e.pendingLanes;0<i;){var s=31-st(i),a=1<<s,l=o[s];-1===l?0!=(a&n)&&0==(a&r)||(o[s]=ht(a,t)):l<=t&&(e.expiredLanes|=a),i&=~a}}(e,t);var r=dt(e,e===Rl?Dl:0);if(0===r)null!==n&&$e(n),e.callbackNode=null,e.callbackPriority=0;else if(t=r&-r,e.callbackPriority!==t){if(null!=n&&$e(n),1===t)0===e.tag?function(e){Bo=!0,Qo(e)}(uu.bind(null,e)):Qo(uu.bind(null,e)),so((function(){0==(6&_l)&&zo()})),n=null;else{switch(Ct(r)){case 1:n=Xe;break;case 4:n=et;break;case 16:default:n=tt;break;case 536870912:n=rt}n=Ru(n,iu.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function iu(e,t){if(Xl=-1,eu=0,0!=(6&_l))throw Error(i(327));var n=e.callbackNode;if(Pu()&&e.callbackNode!==n)return null;var r=dt(e,e===Rl?Dl:0);if(0===r)return null;if(0!=(30&r)||0!=(r&e.expiredLanes)||t)t=yu(e,r);else{t=r;var o=_l;_l|=2;var s=gu();for(Rl===e&&Dl===t||(Hl=null,zl=Ze()+500,hu(e,t));;)try{bu();break}catch(t){fu(e,t)}xi(),El.current=s,_l=o,null!==Il?t=0:(Rl=null,Dl=0,t=Ml)}if(0!==t){if(2===t&&0!==(o=ft(e))&&(r=o,t=su(e,o)),1===t)throw n=Ll,hu(e,0),lu(e,r),ou(e,Ze()),n;if(6===t)lu(e,r);else{if(o=e.current.alternate,0==(30&r)&&!function(e){for(var t=e;;){if(16384&t.flags){var n=t.updateQueue;if(null!==n&&null!==(n=n.stores))for(var r=0;r<n.length;r++){var o=n[r],i=o.getSnapshot;o=o.value;try{if(!ar(i(),o))return!1}catch(e){return!1}}}if(n=t.child,16384&t.subtreeFlags&&null!==n)n.return=t,t=n;else{if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}(o)&&(2===(t=yu(e,r))&&0!==(s=ft(e))&&(r=s,t=su(e,s)),1===t))throw n=Ll,hu(e,0),lu(e,r),ou(e,Ze()),n;switch(e.finishedWork=o,e.finishedLanes=r,t){case 0:case 1:throw Error(i(345));case 2:case 5:xu(e,Fl,Hl);break;case 3:if(lu(e,r),(130023424&r)===r&&10<(t=Ql+500-Ze())){if(0!==dt(e,0))break;if(((o=e.suspendedLanes)&r)!==r){tu(),e.pingedLanes|=e.suspendedLanes&o;break}e.timeoutHandle=ro(xu.bind(null,e,Fl,Hl),t);break}xu(e,Fl,Hl);break;case 4:if(lu(e,r),(4194240&r)===r)break;for(t=e.eventTimes,o=-1;0<r;){var a=31-st(r);s=1<<a,(a=t[a])>o&&(o=a),r&=~s}if(r=o,10<(r=(120>(r=Ze()-r)?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*Vl(r/1960))-r)){e.timeoutHandle=ro(xu.bind(null,e,Fl,Hl),r);break}xu(e,Fl,Hl);break;default:throw Error(i(329))}}}return ou(e,Ze()),e.callbackNode===n?iu.bind(null,e):null}function su(e,t){var n=Bl;return e.current.memoizedState.isDehydrated&&(hu(e,t).flags|=256),2!==(e=yu(e,t))&&(t=Fl,Fl=n,null!==t&&au(t)),e}function au(e){null===Fl?Fl=e:Fl.push.apply(Fl,e)}function lu(e,t){for(t&=~Al,t&=~Nl,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-st(t),r=1<<n;e[n]=-1,t&=~r}}function uu(e){if(0!=(6&_l))throw Error(i(327));Pu();var t=dt(e,0);if(0==(1&t))return ou(e,Ze()),null;var n=yu(e,t);if(0!==e.tag&&2===n){var r=ft(e);0!==r&&(t=r,n=su(e,r))}if(1===n)throw n=Ll,hu(e,0),lu(e,t),ou(e,Ze()),n;if(6===n)throw Error(i(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,xu(e,Fl,Hl),ou(e,Ze()),null}function cu(e,t){var n=_l;_l|=1;try{return e(t)}finally{0===(_l=n)&&(zl=Ze()+500,Bo&&zo())}}function pu(e){null!==Gl&&0===Gl.tag&&0==(6&_l)&&Pu();var t=_l;_l|=1;var n=Tl.transition,r=bt;try{if(Tl.transition=null,bt=1,e)return e()}finally{bt=r,Tl.transition=n,0==(6&(_l=t))&&zo()}}function du(){jl=kl.current,Eo(kl)}function hu(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(-1!==n&&(e.timeoutHandle=-1,oo(n)),null!==Il)for(n=Il.return;null!==n;){var r=n;switch(ni(r),r.tag){case 1:null!=(r=r.type.childContextTypes)&&ko();break;case 3:is(),Eo(Ro),Eo(_o),ps();break;case 5:as(r);break;case 4:is();break;case 13:case 19:Eo(ls);break;case 10:Pi(r.type._context);break;case 22:case 23:du()}n=n.return}if(Rl=e,Il=e=ku(e.current,null),Dl=jl=t,Ml=0,Ll=null,Al=Nl=ql=0,Fl=Bl=null,null!==Oi){for(t=0;t<Oi.length;t++)if(null!==(r=(n=Oi[t]).interleaved)){n.interleaved=null;var o=r.next,i=n.pending;if(null!==i){var s=i.next;i.next=o,r.next=s}n.pending=r}Oi=null}return e}function fu(e,t){for(;;){var n=Il;try{if(xi(),ds.current=sa,vs){for(var r=gs.memoizedState;null!==r;){var o=r.queue;null!==o&&(o.pending=null),r=r.next}vs=!1}if(fs=0,ys=ms=gs=null,bs=!1,Cs=0,Ol.current=null,null===n||null===n.return){Ml=1,Ll=t,Il=null;break}e:{var s=e,a=n.return,l=n,u=t;if(t=Dl,l.flags|=32768,null!==u&&"object"==typeof u&&"function"==typeof u.then){var c=u,p=l,d=p.tag;if(0==(1&p.mode)&&(0===d||11===d||15===d)){var h=p.alternate;h?(p.updateQueue=h.updateQueue,p.memoizedState=h.memoizedState,p.lanes=h.lanes):(p.updateQueue=null,p.memoizedState=null)}var f=ya(a);if(null!==f){f.flags&=-257,va(f,a,l,0,t),1&f.mode&&ma(s,c,t),u=c;var g=(t=f).updateQueue;if(null===g){var m=new Set;m.add(u),t.updateQueue=m}else g.add(u);break e}if(0==(1&t)){ma(s,c,t),mu();break e}u=Error(i(426))}else if(ii&&1&l.mode){var y=ya(a);if(null!==y){0==(65536&y.flags)&&(y.flags|=256),va(y,a,l,0,t),gi(ca(u,l));break e}}s=u=ca(u,l),4!==Ml&&(Ml=2),null===Bl?Bl=[s]:Bl.push(s),s=a;do{switch(s.tag){case 3:s.flags|=65536,t&=-t,s.lanes|=t,qi(s,fa(0,u,t));break e;case 1:l=u;var v=s.type,b=s.stateNode;if(0==(128&s.flags)&&("function"==typeof v.getDerivedStateFromError||null!==b&&"function"==typeof b.componentDidCatch&&(null===Jl||!Jl.has(b)))){s.flags|=65536,t&=-t,s.lanes|=t,qi(s,ga(s,l,t));break e}}s=s.return}while(null!==s)}wu(n)}catch(e){t=e,Il===n&&null!==n&&(Il=n=n.return);continue}break}}function gu(){var e=El.current;return El.current=sa,null===e?sa:e}function mu(){0!==Ml&&3!==Ml&&2!==Ml||(Ml=4),null===Rl||0==(268435455&ql)&&0==(268435455&Nl)||lu(Rl,Dl)}function yu(e,t){var n=_l;_l|=2;var r=gu();for(Rl===e&&Dl===t||(Hl=null,hu(e,t));;)try{vu();break}catch(t){fu(e,t)}if(xi(),_l=n,El.current=r,null!==Il)throw Error(i(261));return Rl=null,Dl=0,Ml}function vu(){for(;null!==Il;)Cu(Il)}function bu(){for(;null!==Il&&!Ge();)Cu(Il)}function Cu(e){var t=Sl(e.alternate,e,jl);e.memoizedProps=e.pendingProps,null===t?wu(e):Il=t,Ol.current=null}function wu(e){var t=e;do{var n=t.alternate;if(e=t.return,0==(32768&t.flags)){if(null!==(n=$a(n,t,jl)))return void(Il=n)}else{if(null!==(n=Ga(n,t)))return n.flags&=32767,void(Il=n);if(null===e)return Ml=6,void(Il=null);e.flags|=32768,e.subtreeFlags=0,e.deletions=null}if(null!==(t=t.sibling))return void(Il=t);Il=t=e}while(null!==t);0===Ml&&(Ml=5)}function xu(e,t,n){var r=bt,o=Tl.transition;try{Tl.transition=null,bt=1,function(e,t,n,r){do{Pu()}while(null!==Gl);if(0!=(6&_l))throw Error(i(327));n=e.finishedWork;var o=e.finishedLanes;if(null===n)return null;if(e.finishedWork=null,e.finishedLanes=0,n===e.current)throw Error(i(177));e.callbackNode=null,e.callbackPriority=0;var s=n.lanes|n.childLanes;if(function(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0<n;){var o=31-st(n),i=1<<o;t[o]=0,r[o]=-1,e[o]=-1,n&=~i}}(e,s),e===Rl&&(Il=Rl=null,Dl=0),0==(2064&n.subtreeFlags)&&0==(2064&n.flags)||$l||($l=!0,Ru(tt,(function(){return Pu(),null}))),s=0!=(15990&n.flags),0!=(15990&n.subtreeFlags)||s){s=Tl.transition,Tl.transition=null;var a=bt;bt=1;var l=_l;_l|=4,Ol.current=null,function(e,t){if(eo=Ht,hr(e=dr())){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{var r=(n=(n=e.ownerDocument)&&n.defaultView||window).getSelection&&n.getSelection();if(r&&0!==r.rangeCount){n=r.anchorNode;var o=r.anchorOffset,s=r.focusNode;r=r.focusOffset;try{n.nodeType,s.nodeType}catch(e){n=null;break e}var a=0,l=-1,u=-1,c=0,p=0,d=e,h=null;t:for(;;){for(var f;d!==n||0!==o&&3!==d.nodeType||(l=a+o),d!==s||0!==r&&3!==d.nodeType||(u=a+r),3===d.nodeType&&(a+=d.nodeValue.length),null!==(f=d.firstChild);)h=d,d=f;for(;;){if(d===e)break t;if(h===n&&++c===o&&(l=a),h===s&&++p===r&&(u=a),null!==(f=d.nextSibling))break;h=(d=h).parentNode}d=f}n=-1===l||-1===u?null:{start:l,end:u}}else n=null}n=n||{start:0,end:0}}else n=null;for(to={focusedElem:e,selectionRange:n},Ht=!1,Xa=t;null!==Xa;)if(e=(t=Xa).child,0!=(1028&t.subtreeFlags)&&null!==e)e.return=t,Xa=e;else for(;null!==Xa;){t=Xa;try{var g=t.alternate;if(0!=(1024&t.flags))switch(t.tag){case 0:case 11:case 15:case 5:case 6:case 4:case 17:break;case 1:if(null!==g){var m=g.memoizedProps,y=g.memoizedState,v=t.stateNode,b=v.getSnapshotBeforeUpdate(t.elementType===t.type?m:yi(t.type,m),y);v.__reactInternalSnapshotBeforeUpdate=b}break;case 3:var C=t.stateNode.containerInfo;1===C.nodeType?C.textContent="":9===C.nodeType&&C.documentElement&&C.removeChild(C.documentElement);break;default:throw Error(i(163))}}catch(e){Vu(t,t.return,e)}if(null!==(e=t.sibling)){e.return=t.return,Xa=e;break}Xa=t.return}g=nl,nl=!1}(e,n),yl(n,e),fr(to),Ht=!!eo,to=eo=null,e.current=n,bl(n,e,o),Ke(),_l=l,bt=a,Tl.transition=s}else e.current=n;if($l&&($l=!1,Gl=e,Kl=o),0===(s=e.pendingLanes)&&(Jl=null),function(e){if(it&&"function"==typeof it.onCommitFiberRoot)try{it.onCommitFiberRoot(ot,e,void 0,128==(128&e.current.flags))}catch(e){}}(n.stateNode),ou(e,Ze()),null!==t)for(r=e.onRecoverableError,n=0;n<t.length;n++)r((o=t[n]).value,{componentStack:o.stack,digest:o.digest});if(Ul)throw Ul=!1,e=Wl,Wl=null,e;0!=(1&Kl)&&0!==e.tag&&Pu(),0!=(1&(s=e.pendingLanes))?e===Yl?Zl++:(Zl=0,Yl=e):Zl=0,zo()}(e,t,n,r)}finally{Tl.transition=o,bt=r}return null}function Pu(){if(null!==Gl){var e=Ct(Kl),t=Tl.transition,n=bt;try{if(Tl.transition=null,bt=16>e?16:e,null===Gl)var r=!1;else{if(e=Gl,Gl=null,Kl=0,0!=(6&_l))throw Error(i(331));var o=_l;for(_l|=4,Xa=e.current;null!==Xa;){var s=Xa,a=s.child;if(0!=(16&Xa.flags)){var l=s.deletions;if(null!==l){for(var u=0;u<l.length;u++){var c=l[u];for(Xa=c;null!==Xa;){var p=Xa;switch(p.tag){case 0:case 11:case 15:rl(8,p,s)}var d=p.child;if(null!==d)d.return=p,Xa=d;else for(;null!==Xa;){var h=(p=Xa).sibling,f=p.return;if(sl(p),p===c){Xa=null;break}if(null!==h){h.return=f,Xa=h;break}Xa=f}}}var g=s.alternate;if(null!==g){var m=g.child;if(null!==m){g.child=null;do{var y=m.sibling;m.sibling=null,m=y}while(null!==m)}}Xa=s}}if(0!=(2064&s.subtreeFlags)&&null!==a)a.return=s,Xa=a;else e:for(;null!==Xa;){if(0!=(2048&(s=Xa).flags))switch(s.tag){case 0:case 11:case 15:rl(9,s,s.return)}var v=s.sibling;if(null!==v){v.return=s.return,Xa=v;break e}Xa=s.return}}var b=e.current;for(Xa=b;null!==Xa;){var C=(a=Xa).child;if(0!=(2064&a.subtreeFlags)&&null!==C)C.return=a,Xa=C;else e:for(a=b;null!==Xa;){if(0!=(2048&(l=Xa).flags))try{switch(l.tag){case 0:case 11:case 15:ol(9,l)}}catch(e){Vu(l,l.return,e)}if(l===a){Xa=null;break e}var w=l.sibling;if(null!==w){w.return=l.return,Xa=w;break e}Xa=l.return}}if(_l=o,zo(),it&&"function"==typeof it.onPostCommitFiberRoot)try{it.onPostCommitFiberRoot(ot,e)}catch(e){}r=!0}return r}finally{bt=n,Tl.transition=t}}return!1}function Su(e,t,n){e=Mi(e,t=fa(0,t=ca(n,t),1),1),t=tu(),null!==e&&(yt(e,1,t),ou(e,t))}function Vu(e,t,n){if(3===e.tag)Su(e,e,n);else for(;null!==t;){if(3===t.tag){Su(t,e,n);break}if(1===t.tag){var r=t.stateNode;if("function"==typeof t.type.getDerivedStateFromError||"function"==typeof r.componentDidCatch&&(null===Jl||!Jl.has(r))){t=Mi(t,e=ga(t,e=ca(n,e),1),1),e=tu(),null!==t&&(yt(t,1,e),ou(t,e));break}}t=t.return}}function Eu(e,t,n){var r=e.pingCache;null!==r&&r.delete(t),t=tu(),e.pingedLanes|=e.suspendedLanes&n,Rl===e&&(Dl&n)===n&&(4===Ml||3===Ml&&(130023424&Dl)===Dl&&500>Ze()-Ql?hu(e,0):Al|=n),ou(e,t)}function Ou(e,t){0===t&&(0==(1&e.mode)?t=1:(t=ct,0==(130023424&(ct<<=1))&&(ct=4194304)));var n=tu();null!==(e=Ri(e,t))&&(yt(e,t,n),ou(e,n))}function Tu(e){var t=e.memoizedState,n=0;null!==t&&(n=t.retryLane),Ou(e,n)}function _u(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,o=e.memoizedState;null!==o&&(n=o.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(i(314))}null!==r&&r.delete(t),Ou(e,n)}function Ru(e,t){return Je(e,t)}function Iu(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Du(e,t,n,r){return new Iu(e,t,n,r)}function ju(e){return!(!(e=e.prototype)||!e.isReactComponent)}function ku(e,t){var n=e.alternate;return null===n?((n=Du(e.tag,t,e.key,e.mode)).elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=14680064&e.flags,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=null===t?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function Mu(e,t,n,r,o,s){var a=2;if(r=e,"function"==typeof e)ju(e)&&(a=1);else if("string"==typeof e)a=5;else e:switch(e){case P:return Lu(n.children,o,s,t);case S:a=8,o|=8;break;case V:return(e=Du(12,n,t,2|o)).elementType=V,e.lanes=s,e;case _:return(e=Du(13,n,t,o)).elementType=_,e.lanes=s,e;case R:return(e=Du(19,n,t,o)).elementType=R,e.lanes=s,e;case j:return qu(n,o,s,t);default:if("object"==typeof e&&null!==e)switch(e.$$typeof){case E:a=10;break e;case O:a=9;break e;case T:a=11;break e;case I:a=14;break e;case D:a=16,r=null;break e}throw Error(i(130,null==e?e:typeof e,""))}return(t=Du(a,n,t,o)).elementType=e,t.type=r,t.lanes=s,t}function Lu(e,t,n,r){return(e=Du(7,e,r,t)).lanes=n,e}function qu(e,t,n,r){return(e=Du(22,e,r,t)).elementType=j,e.lanes=n,e.stateNode={isHidden:!1},e}function Nu(e,t,n){return(e=Du(6,e,null,t)).lanes=n,e}function Au(e,t,n){return(t=Du(4,null!==e.children?e.children:[],e.key,t)).lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function Bu(e,t,n,r,o){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=mt(0),this.expirationTimes=mt(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=mt(0),this.identifierPrefix=r,this.onRecoverableError=o,this.mutableSourceEagerHydrationData=null}function Fu(e,t,n,r,o,i,s,a,l){return e=new Bu(e,t,n,a,l),1===t?(t=1,!0===i&&(t|=8)):t=0,i=Du(3,null,null,t),e.current=i,i.stateNode=e,i.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},Di(i),e}function Qu(e){if(!e)return To;e:{if(Qe(e=e._reactInternals)!==e||1!==e.tag)throw Error(i(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(jo(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(null!==t);throw Error(i(171))}if(1===e.tag){var n=e.type;if(jo(n))return Lo(e,n,t)}return t}function zu(e,t,n,r,o,i,s,a,l){return(e=Fu(n,r,!0,e,0,i,0,a,l)).context=Qu(null),n=e.current,(i=ki(r=tu(),o=nu(n))).callback=null!=t?t:null,Mi(n,i,o),e.current.lanes=o,yt(e,o,r),ou(e,r),e}function Hu(e,t,n,r){var o=t.current,i=tu(),s=nu(o);return n=Qu(n),null===t.context?t.context=n:t.pendingContext=n,(t=ki(i,s)).payload={element:e},null!==(r=void 0===r?null:r)&&(t.callback=r),null!==(e=Mi(o,t,s))&&(ru(e,o,s,i),Li(e,o,s)),s}function Uu(e){return(e=e.current).child?(e.child.tag,e.child.stateNode):null}function Wu(e,t){if(null!==(e=e.memoizedState)&&null!==e.dehydrated){var n=e.retryLane;e.retryLane=0!==n&&n<t?n:t}}function Ju(e,t){Wu(e,t),(e=e.alternate)&&Wu(e,t)}Sl=function(e,t,n){if(null!==e)if(e.memoizedProps!==t.pendingProps||Ro.current)Ca=!0;else{if(0==(e.lanes&n)&&0==(128&t.flags))return Ca=!1,function(e,t,n){switch(t.tag){case 3:Ra(t),fi();break;case 5:ss(t);break;case 1:jo(t.type)&&qo(t);break;case 4:os(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,o=t.memoizedProps.value;Oo(vi,r._currentValue),r._currentValue=o;break;case 13:if(null!==(r=t.memoizedState))return null!==r.dehydrated?(Oo(ls,1&ls.current),t.flags|=128,null):0!=(n&t.child.childLanes)?Na(e,t,n):(Oo(ls,1&ls.current),null!==(e=Ua(e,t,n))?e.sibling:null);Oo(ls,1&ls.current);break;case 19:if(r=0!=(n&t.childLanes),0!=(128&e.flags)){if(r)return za(e,t,n);t.flags|=128}if(null!==(o=t.memoizedState)&&(o.rendering=null,o.tail=null,o.lastEffect=null),Oo(ls,ls.current),r)break;return null;case 22:case 23:return t.lanes=0,Va(e,t,n)}return Ua(e,t,n)}(e,t,n);Ca=0!=(131072&e.flags)}else Ca=!1,ii&&0!=(1048576&t.flags)&&ei(t,Jo,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;Ha(e,t),e=t.pendingProps;var o=Do(t,_o.current);Vi(t,n),o=Ss(null,t,r,e,o,n);var s=Vs();return t.flags|=1,"object"==typeof o&&null!==o&&"function"==typeof o.render&&void 0===o.$$typeof?(t.tag=1,t.memoizedState=null,t.updateQueue=null,jo(r)?(s=!0,qo(t)):s=!1,t.memoizedState=null!==o.state&&void 0!==o.state?o.state:null,Di(t),o.updater=Qi,t.stateNode=o,o._reactInternals=t,Wi(t,r,e,n),t=_a(null,t,r,!0,s,n)):(t.tag=0,ii&&s&&ti(t),wa(null,t,o,n),t=t.child),t;case 16:r=t.elementType;e:{switch(Ha(e,t),e=t.pendingProps,r=(o=r._init)(r._payload),t.type=r,o=t.tag=function(e){if("function"==typeof e)return ju(e)?1:0;if(null!=e){if((e=e.$$typeof)===T)return 11;if(e===I)return 14}return 2}(r),e=yi(r,e),o){case 0:t=Oa(null,t,r,e,n);break e;case 1:t=Ta(null,t,r,e,n);break e;case 11:t=xa(null,t,r,e,n);break e;case 14:t=Pa(null,t,r,yi(r.type,e),n);break e}throw Error(i(306,r,""))}return t;case 0:return r=t.type,o=t.pendingProps,Oa(e,t,r,o=t.elementType===r?o:yi(r,o),n);case 1:return r=t.type,o=t.pendingProps,Ta(e,t,r,o=t.elementType===r?o:yi(r,o),n);case 3:e:{if(Ra(t),null===e)throw Error(i(387));r=t.pendingProps,o=(s=t.memoizedState).element,ji(e,t),Ni(t,r,null,n);var a=t.memoizedState;if(r=a.element,s.isDehydrated){if(s={element:r,isDehydrated:!1,cache:a.cache,pendingSuspenseBoundaries:a.pendingSuspenseBoundaries,transitions:a.transitions},t.updateQueue.baseState=s,t.memoizedState=s,256&t.flags){t=Ia(e,t,r,n,o=ca(Error(i(423)),t));break e}if(r!==o){t=Ia(e,t,r,n,o=ca(Error(i(424)),t));break e}for(oi=uo(t.stateNode.containerInfo.firstChild),ri=t,ii=!0,si=null,n=Yi(t,null,r,n),t.child=n;n;)n.flags=-3&n.flags|4096,n=n.sibling}else{if(fi(),r===o){t=Ua(e,t,n);break e}wa(e,t,r,n)}t=t.child}return t;case 5:return ss(t),null===e&&ci(t),r=t.type,o=t.pendingProps,s=null!==e?e.memoizedProps:null,a=o.children,no(r,o)?a=null:null!==s&&no(r,s)&&(t.flags|=32),Ea(e,t),wa(e,t,a,n),t.child;case 6:return null===e&&ci(t),null;case 13:return Na(e,t,n);case 4:return os(t,t.stateNode.containerInfo),r=t.pendingProps,null===e?t.child=Zi(t,null,r,n):wa(e,t,r,n),t.child;case 11:return r=t.type,o=t.pendingProps,xa(e,t,r,o=t.elementType===r?o:yi(r,o),n);case 7:return wa(e,t,t.pendingProps,n),t.child;case 8:case 12:return wa(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,o=t.pendingProps,s=t.memoizedProps,a=o.value,Oo(vi,r._currentValue),r._currentValue=a,null!==s)if(ar(s.value,a)){if(s.children===o.children&&!Ro.current){t=Ua(e,t,n);break e}}else for(null!==(s=t.child)&&(s.return=t);null!==s;){var l=s.dependencies;if(null!==l){a=s.child;for(var u=l.firstContext;null!==u;){if(u.context===r){if(1===s.tag){(u=ki(-1,n&-n)).tag=2;var c=s.updateQueue;if(null!==c){var p=(c=c.shared).pending;null===p?u.next=u:(u.next=p.next,p.next=u),c.pending=u}}s.lanes|=n,null!==(u=s.alternate)&&(u.lanes|=n),Si(s.return,n,t),l.lanes|=n;break}u=u.next}}else if(10===s.tag)a=s.type===t.type?null:s.child;else if(18===s.tag){if(null===(a=s.return))throw Error(i(341));a.lanes|=n,null!==(l=a.alternate)&&(l.lanes|=n),Si(a,n,t),a=s.sibling}else a=s.child;if(null!==a)a.return=s;else for(a=s;null!==a;){if(a===t){a=null;break}if(null!==(s=a.sibling)){s.return=a.return,a=s;break}a=a.return}s=a}wa(e,t,o.children,n),t=t.child}return t;case 9:return o=t.type,r=t.pendingProps.children,Vi(t,n),r=r(o=Ei(o)),t.flags|=1,wa(e,t,r,n),t.child;case 14:return o=yi(r=t.type,t.pendingProps),Pa(e,t,r,o=yi(r.type,o),n);case 15:return Sa(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:yi(r,o),Ha(e,t),t.tag=1,jo(r)?(e=!0,qo(t)):e=!1,Vi(t,n),Hi(t,r,o),Wi(t,r,o,n),_a(null,t,r,!0,e,n);case 19:return za(e,t,n);case 22:return Va(e,t,n)}throw Error(i(156,t.tag))};var $u="function"==typeof reportError?reportError:function(e){console.error(e)};function Gu(e){this._internalRoot=e}function Ku(e){this._internalRoot=e}function Zu(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType)}function Yu(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType&&(8!==e.nodeType||" react-mount-point-unstable "!==e.nodeValue))}function Xu(){}function ec(e,t,n,r,o){var i=n._reactRootContainer;if(i){var s=i;if("function"==typeof o){var a=o;o=function(){var e=Uu(s);a.call(e)}}Hu(t,s,e,o)}else s=function(e,t,n,r,o){if(o){if("function"==typeof r){var i=r;r=function(){var e=Uu(s);i.call(e)}}var s=zu(t,r,e,0,null,!1,0,"",Xu);return e._reactRootContainer=s,e[go]=s.current,Qr(8===e.nodeType?e.parentNode:e),pu(),s}for(;o=e.lastChild;)e.removeChild(o);if("function"==typeof r){var a=r;r=function(){var e=Uu(l);a.call(e)}}var l=Fu(e,0,!1,null,0,!1,0,"",Xu);return e._reactRootContainer=l,e[go]=l.current,Qr(8===e.nodeType?e.parentNode:e),pu((function(){Hu(t,l,n,r)})),l}(n,t,e,o,r);return Uu(s)}Ku.prototype.render=Gu.prototype.render=function(e){var t=this._internalRoot;if(null===t)throw Error(i(409));Hu(e,t,null,null)},Ku.prototype.unmount=Gu.prototype.unmount=function(){var e=this._internalRoot;if(null!==e){this._internalRoot=null;var t=e.containerInfo;pu((function(){Hu(null,e,null,null)})),t[go]=null}},Ku.prototype.unstable_scheduleHydration=function(e){if(e){var t=St();e={blockedOn:null,target:e,priority:t};for(var n=0;n<jt.length&&0!==t&&t<jt[n].priority;n++);jt.splice(n,0,e),0===n&&qt(e)}},wt=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=pt(t.pendingLanes);0!==n&&(vt(t,1|n),ou(t,Ze()),0==(6&_l)&&(zl=Ze()+500,zo()))}break;case 13:pu((function(){var t=Ri(e,1);if(null!==t){var n=tu();ru(t,e,1,n)}})),Ju(e,1)}},xt=function(e){if(13===e.tag){var t=Ri(e,134217728);null!==t&&ru(t,e,134217728,tu()),Ju(e,134217728)}},Pt=function(e){if(13===e.tag){var t=nu(e),n=Ri(e,t);null!==n&&ru(n,e,t,tu()),Ju(e,t)}},St=function(){return bt},Vt=function(e,t){var n=bt;try{return bt=e,t()}finally{bt=n}},xe=function(e,t,n){switch(t){case"input":if(Y(e,n),t=n.name,"radio"===n.type&&null!=t){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var o=xo(r);if(!o)throw Error(i(90));J(r),Y(r,o)}}}break;case"textarea":ie(e,n);break;case"select":null!=(t=n.value)&&ne(e,!!n.multiple,t,!1)}},Te=cu,_e=pu;var tc={usingClientEntryPoint:!1,Events:[Co,wo,xo,Ee,Oe,cu]},nc={findFiberByHostInstance:bo,bundleType:0,version:"18.2.0",rendererPackageName:"react-dom"},rc={bundleType:nc.bundleType,version:nc.version,rendererPackageName:nc.rendererPackageName,rendererConfig:nc.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:C.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return null===(e=Ue(e))?null:e.stateNode},findFiberByHostInstance:nc.findFiberByHostInstance||function(){return null},findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.2.0-next-9e3b772b8-20220608"};if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__){var oc=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!oc.isDisabled&&oc.supportsFiber)try{ot=oc.inject(rc),it=oc}catch(ce){}}t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=tc,t.createPortal=function(e,t){var n=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null;if(!Zu(t))throw Error(i(200));return function(e,t,n){var r=3<arguments.length&&void 0!==arguments[3]?arguments[3]:null;return{$$typeof:x,key:null==r?null:""+r,children:e,containerInfo:t,implementation:n}}(e,t,null,n)},t.createRoot=function(e,t){if(!Zu(e))throw Error(i(299));var n=!1,r="",o=$u;return null!=t&&(!0===t.unstable_strictMode&&(n=!0),void 0!==t.identifierPrefix&&(r=t.identifierPrefix),void 0!==t.onRecoverableError&&(o=t.onRecoverableError)),t=Fu(e,1,!1,null,0,n,0,r,o),e[go]=t.current,Qr(8===e.nodeType?e.parentNode:e),new Gu(t)},t.findDOMNode=function(e){if(null==e)return null;if(1===e.nodeType)return e;var t=e._reactInternals;if(void 0===t){if("function"==typeof e.render)throw Error(i(188));throw e=Object.keys(e).join(","),Error(i(268,e))}return null===(e=Ue(t))?null:e.stateNode},t.flushSync=function(e){return pu(e)},t.hydrate=function(e,t,n){if(!Yu(t))throw Error(i(200));return ec(null,e,t,!0,n)},t.hydrateRoot=function(e,t,n){if(!Zu(e))throw Error(i(405));var r=null!=n&&n.hydratedSources||null,o=!1,s="",a=$u;if(null!=n&&(!0===n.unstable_strictMode&&(o=!0),void 0!==n.identifierPrefix&&(s=n.identifierPrefix),void 0!==n.onRecoverableError&&(a=n.onRecoverableError)),t=zu(t,null,e,1,null!=n?n:null,o,0,s,a),e[go]=t.current,Qr(e),r)for(e=0;e<r.length;e++)o=(o=(n=r[e])._getVersion)(n._source),null==t.mutableSourceEagerHydrationData?t.mutableSourceEagerHydrationData=[n,o]:t.mutableSourceEagerHydrationData.push(n,o);return new Ku(t)},t.render=function(e,t,n){if(!Yu(t))throw Error(i(200));return ec(null,e,t,!1,n)},t.unmountComponentAtNode=function(e){if(!Yu(e))throw Error(i(40));return!!e._reactRootContainer&&(pu((function(){ec(null,null,e,!1,(function(){e._reactRootContainer=null,e[go]=null}))})),!0)},t.unstable_batchedUpdates=cu,t.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!Yu(n))throw Error(i(200));if(null==e||void 0===e._reactInternals)throw Error(i(38));return ec(e,t,n,!1,r)},t.version="18.2.0-next-9e3b772b8-20220608"},745:(e,t,n)=>{"use strict";var r=n(935);t.s=r.createRoot,r.hydrateRoot},935:(e,t,n)=>{"use strict";!function e(){if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE)try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(e){console.error(e)}}(),e.exports=n(448)},251:(e,t,n)=>{"use strict";var r=n(294),o=Symbol.for("react.element"),i=(Symbol.for("react.fragment"),Object.prototype.hasOwnProperty),s=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,a={key:!0,ref:!0,__self:!0,__source:!0};t.jsx=function(e,t,n){var r,l={},u=null,c=null;for(r in void 0!==n&&(u=""+n),void 0!==t.key&&(u=""+t.key),void 0!==t.ref&&(c=t.ref),t)i.call(t,r)&&!a.hasOwnProperty(r)&&(l[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps)void 0===l[r]&&(l[r]=t[r]);return{$$typeof:o,type:e,key:u,ref:c,props:l,_owner:s.current}}},408:(e,t)=>{"use strict";var n=Symbol.for("react.element"),r=Symbol.for("react.portal"),o=Symbol.for("react.fragment"),i=Symbol.for("react.strict_mode"),s=Symbol.for("react.profiler"),a=Symbol.for("react.provider"),l=Symbol.for("react.context"),u=Symbol.for("react.forward_ref"),c=Symbol.for("react.suspense"),p=Symbol.for("react.memo"),d=Symbol.for("react.lazy"),h=Symbol.iterator,f={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},g=Object.assign,m={};function y(e,t,n){this.props=e,this.context=t,this.refs=m,this.updater=n||f}function v(){}function b(e,t,n){this.props=e,this.context=t,this.refs=m,this.updater=n||f}y.prototype.isReactComponent={},y.prototype.setState=function(e,t){if("object"!=typeof e&&"function"!=typeof e&&null!=e)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")},y.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},v.prototype=y.prototype;var C=b.prototype=new v;C.constructor=b,g(C,y.prototype),C.isPureReactComponent=!0;var w=Array.isArray,x=Object.prototype.hasOwnProperty,P={current:null},S={key:!0,ref:!0,__self:!0,__source:!0};function V(e,t,r){var o,i={},s=null,a=null;if(null!=t)for(o in void 0!==t.ref&&(a=t.ref),void 0!==t.key&&(s=""+t.key),t)x.call(t,o)&&!S.hasOwnProperty(o)&&(i[o]=t[o]);var l=arguments.length-2;if(1===l)i.children=r;else if(1<l){for(var u=Array(l),c=0;c<l;c++)u[c]=arguments[c+2];i.children=u}if(e&&e.defaultProps)for(o in l=e.defaultProps)void 0===i[o]&&(i[o]=l[o]);return{$$typeof:n,type:e,key:s,ref:a,props:i,_owner:P.current}}function E(e){return"object"==typeof e&&null!==e&&e.$$typeof===n}var O=/\/+/g;function T(e,t){return"object"==typeof e&&null!==e&&null!=e.key?function(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,(function(e){return t[e]}))}(""+e.key):t.toString(36)}function _(e,t,o,i,s){var a=typeof e;"undefined"!==a&&"boolean"!==a||(e=null);var l=!1;if(null===e)l=!0;else switch(a){case"string":case"number":l=!0;break;case"object":switch(e.$$typeof){case n:case r:l=!0}}if(l)return s=s(l=e),e=""===i?"."+T(l,0):i,w(s)?(o="",null!=e&&(o=e.replace(O,"$&/")+"/"),_(s,t,o,"",(function(e){return e}))):null!=s&&(E(s)&&(s=function(e,t){return{$$typeof:n,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}(s,o+(!s.key||l&&l.key===s.key?"":(""+s.key).replace(O,"$&/")+"/")+e)),t.push(s)),1;if(l=0,i=""===i?".":i+":",w(e))for(var u=0;u<e.length;u++){var c=i+T(a=e[u],u);l+=_(a,t,o,c,s)}else if(c=function(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=h&&e[h]||e["@@iterator"])?e:null}(e),"function"==typeof c)for(e=c.call(e),u=0;!(a=e.next()).done;)l+=_(a=a.value,t,o,c=i+T(a,u++),s);else if("object"===a)throw t=String(e),Error("Objects are not valid as a React child (found: "+("[object Object]"===t?"object with keys {"+Object.keys(e).join(", ")+"}":t)+"). If you meant to render a collection of children, use an array instead.");return l}function R(e,t,n){if(null==e)return e;var r=[],o=0;return _(e,r,"","",(function(e){return t.call(n,e,o++)})),r}function I(e){if(-1===e._status){var t=e._result;(t=t()).then((function(t){0!==e._status&&-1!==e._status||(e._status=1,e._result=t)}),(function(t){0!==e._status&&-1!==e._status||(e._status=2,e._result=t)})),-1===e._status&&(e._status=0,e._result=t)}if(1===e._status)return e._result.default;throw e._result}var D={current:null},j={transition:null},k={ReactCurrentDispatcher:D,ReactCurrentBatchConfig:j,ReactCurrentOwner:P};t.Children={map:R,forEach:function(e,t,n){R(e,(function(){t.apply(this,arguments)}),n)},count:function(e){var t=0;return R(e,(function(){t++})),t},toArray:function(e){return R(e,(function(e){return e}))||[]},only:function(e){if(!E(e))throw Error("React.Children.only expected to receive a single React element child.");return e}},t.Component=y,t.Fragment=o,t.Profiler=s,t.PureComponent=b,t.StrictMode=i,t.Suspense=c,t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=k,t.cloneElement=function(e,t,r){if(null==e)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+e+".");var o=g({},e.props),i=e.key,s=e.ref,a=e._owner;if(null!=t){if(void 0!==t.ref&&(s=t.ref,a=P.current),void 0!==t.key&&(i=""+t.key),e.type&&e.type.defaultProps)var l=e.type.defaultProps;for(u in t)x.call(t,u)&&!S.hasOwnProperty(u)&&(o[u]=void 0===t[u]&&void 0!==l?l[u]:t[u])}var u=arguments.length-2;if(1===u)o.children=r;else if(1<u){l=Array(u);for(var c=0;c<u;c++)l[c]=arguments[c+2];o.children=l}return{$$typeof:n,type:e.type,key:i,ref:s,props:o,_owner:a}},t.createContext=function(e){return(e={$$typeof:l,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null}).Provider={$$typeof:a,_context:e},e.Consumer=e},t.createElement=V,t.createFactory=function(e){var t=V.bind(null,e);return t.type=e,t},t.createRef=function(){return{current:null}},t.forwardRef=function(e){return{$$typeof:u,render:e}},t.isValidElement=E,t.lazy=function(e){return{$$typeof:d,_payload:{_status:-1,_result:e},_init:I}},t.memo=function(e,t){return{$$typeof:p,type:e,compare:void 0===t?null:t}},t.startTransition=function(e){var t=j.transition;j.transition={};try{e()}finally{j.transition=t}},t.unstable_act=function(){throw Error("act(...) is not supported in production builds of React.")},t.useCallback=function(e,t){return D.current.useCallback(e,t)},t.useContext=function(e){return D.current.useContext(e)},t.useDebugValue=function(){},t.useDeferredValue=function(e){return D.current.useDeferredValue(e)},t.useEffect=function(e,t){return D.current.useEffect(e,t)},t.useId=function(){return D.current.useId()},t.useImperativeHandle=function(e,t,n){return D.current.useImperativeHandle(e,t,n)},t.useInsertionEffect=function(e,t){return D.current.useInsertionEffect(e,t)},t.useLayoutEffect=function(e,t){return D.current.useLayoutEffect(e,t)},t.useMemo=function(e,t){return D.current.useMemo(e,t)},t.useReducer=function(e,t,n){return D.current.useReducer(e,t,n)},t.useRef=function(e){return D.current.useRef(e)},t.useState=function(e){return D.current.useState(e)},t.useSyncExternalStore=function(e,t,n){return D.current.useSyncExternalStore(e,t,n)},t.useTransition=function(){return D.current.useTransition()},t.version="18.2.0"},294:(e,t,n)=>{"use strict";e.exports=n(408)},893:(e,t,n)=>{"use strict";e.exports=n(251)},53:(e,t)=>{"use strict";function n(e,t){var n=e.length;e.push(t);e:for(;0<n;){var r=n-1>>>1,o=e[r];if(!(0<i(o,t)))break e;e[r]=t,e[n]=o,n=r}}function r(e){return 0===e.length?null:e[0]}function o(e){if(0===e.length)return null;var t=e[0],n=e.pop();if(n!==t){e[0]=n;e:for(var r=0,o=e.length,s=o>>>1;r<s;){var a=2*(r+1)-1,l=e[a],u=a+1,c=e[u];if(0>i(l,n))u<o&&0>i(c,l)?(e[r]=c,e[u]=n,r=u):(e[r]=l,e[a]=n,r=a);else{if(!(u<o&&0>i(c,n)))break e;e[r]=c,e[u]=n,r=u}}}return t}function i(e,t){var n=e.sortIndex-t.sortIndex;return 0!==n?n:e.id-t.id}if("object"==typeof performance&&"function"==typeof performance.now){var s=performance;t.unstable_now=function(){return s.now()}}else{var a=Date,l=a.now();t.unstable_now=function(){return a.now()-l}}var u=[],c=[],p=1,d=null,h=3,f=!1,g=!1,m=!1,y="function"==typeof setTimeout?setTimeout:null,v="function"==typeof clearTimeout?clearTimeout:null,b="undefined"!=typeof setImmediate?setImmediate:null;function C(e){for(var t=r(c);null!==t;){if(null===t.callback)o(c);else{if(!(t.startTime<=e))break;o(c),t.sortIndex=t.expirationTime,n(u,t)}t=r(c)}}function w(e){if(m=!1,C(e),!g)if(null!==r(u))g=!0,j(x);else{var t=r(c);null!==t&&k(w,t.startTime-e)}}function x(e,n){g=!1,m&&(m=!1,v(E),E=-1),f=!0;var i=h;try{for(C(n),d=r(u);null!==d&&(!(d.expirationTime>n)||e&&!_());){var s=d.callback;if("function"==typeof s){d.callback=null,h=d.priorityLevel;var a=s(d.expirationTime<=n);n=t.unstable_now(),"function"==typeof a?d.callback=a:d===r(u)&&o(u),C(n)}else o(u);d=r(u)}if(null!==d)var l=!0;else{var p=r(c);null!==p&&k(w,p.startTime-n),l=!1}return l}finally{d=null,h=i,f=!1}}"undefined"!=typeof navigator&&void 0!==navigator.scheduling&&void 0!==navigator.scheduling.isInputPending&&navigator.scheduling.isInputPending.bind(navigator.scheduling);var P,S=!1,V=null,E=-1,O=5,T=-1;function _(){return!(t.unstable_now()-T<O)}function R(){if(null!==V){var e=t.unstable_now();T=e;var n=!0;try{n=V(!0,e)}finally{n?P():(S=!1,V=null)}}else S=!1}if("function"==typeof b)P=function(){b(R)};else if("undefined"!=typeof MessageChannel){var I=new MessageChannel,D=I.port2;I.port1.onmessage=R,P=function(){D.postMessage(null)}}else P=function(){y(R,0)};function j(e){V=e,S||(S=!0,P())}function k(e,n){E=y((function(){e(t.unstable_now())}),n)}t.unstable_IdlePriority=5,t.unstable_ImmediatePriority=1,t.unstable_LowPriority=4,t.unstable_NormalPriority=3,t.unstable_Profiling=null,t.unstable_UserBlockingPriority=2,t.unstable_cancelCallback=function(e){e.callback=null},t.unstable_continueExecution=function(){g||f||(g=!0,j(x))},t.unstable_forceFrameRate=function(e){0>e||125<e?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):O=0<e?Math.floor(1e3/e):5},t.unstable_getCurrentPriorityLevel=function(){return h},t.unstable_getFirstCallbackNode=function(){return r(u)},t.unstable_next=function(e){switch(h){case 1:case 2:case 3:var t=3;break;default:t=h}var n=h;h=t;try{return e()}finally{h=n}},t.unstable_pauseExecution=function(){},t.unstable_requestPaint=function(){},t.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var n=h;h=e;try{return t()}finally{h=n}},t.unstable_scheduleCallback=function(e,o,i){var s=t.unstable_now();switch(i="object"==typeof i&&null!==i&&"number"==typeof(i=i.delay)&&0<i?s+i:s,e){case 1:var a=-1;break;case 2:a=250;break;case 5:a=1073741823;break;case 4:a=1e4;break;default:a=5e3}return e={id:p++,callback:o,priorityLevel:e,startTime:i,expirationTime:a=i+a,sortIndex:-1},i>s?(e.sortIndex=i,n(c,e),null===r(u)&&e===r(c)&&(m?(v(E),E=-1):m=!0,k(w,i-s))):(e.sortIndex=a,n(u,e),g||f||(g=!0,j(x))),e},t.unstable_shouldYield=_,t.unstable_wrapCallback=function(e){var t=h;return function(){var n=h;h=t;try{return e.apply(this,arguments)}finally{h=n}}}},840:(e,t,n)=>{"use strict";e.exports=n(53)},535:function(e){var t;t=function(){return function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)n.d(r,o,function(t){return e[t]}.bind(null,o));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s="./src/entries/core.ts")}({"./node_modules/signature_pad/dist/signature_pad.js":function(e,t,n){"use strict";n.r(t),n.d(t,"default",(function(){return s}));class r{constructor(e,t,n,r){if(isNaN(e)||isNaN(t))throw new Error(`Point is invalid: (${e}, ${t})`);this.x=+e,this.y=+t,this.pressure=n||0,this.time=r||Date.now()}distanceTo(e){return Math.sqrt(Math.pow(this.x-e.x,2)+Math.pow(this.y-e.y,2))}equals(e){return this.x===e.x&&this.y===e.y&&this.pressure===e.pressure&&this.time===e.time}velocityFrom(e){return this.time!==e.time?this.distanceTo(e)/(this.time-e.time):0}}class o{constructor(e,t,n,r,o,i){this.startPoint=e,this.control2=t,this.control1=n,this.endPoint=r,this.startWidth=o,this.endWidth=i}static fromPoints(e,t){const n=this.calculateControlPoints(e[0],e[1],e[2]).c2,r=this.calculateControlPoints(e[1],e[2],e[3]).c1;return new o(e[1],n,r,e[2],t.start,t.end)}static calculateControlPoints(e,t,n){const o=e.x-t.x,i=e.y-t.y,s=t.x-n.x,a=t.y-n.y,l=(e.x+t.x)/2,u=(e.y+t.y)/2,c=(t.x+n.x)/2,p=(t.y+n.y)/2,d=Math.sqrt(o*o+i*i),h=Math.sqrt(s*s+a*a),f=h/(d+h),g=c+(l-c)*f,m=p+(u-p)*f,y=t.x-g,v=t.y-m;return{c1:new r(l+y,u+v),c2:new r(c+y,p+v)}}length(){let e,t,n=0;for(let r=0;r<=10;r+=1){const o=r/10,i=this.point(o,this.startPoint.x,this.control1.x,this.control2.x,this.endPoint.x),s=this.point(o,this.startPoint.y,this.control1.y,this.control2.y,this.endPoint.y);if(r>0){const r=i-e,o=s-t;n+=Math.sqrt(r*r+o*o)}e=i,t=s}return n}point(e,t,n,r,o){return t*(1-e)*(1-e)*(1-e)+3*n*(1-e)*(1-e)*e+3*r*(1-e)*e*e+o*e*e*e}}class i{constructor(){try{this._et=new EventTarget}catch(e){this._et=document}}addEventListener(e,t,n){this._et.addEventListener(e,t,n)}dispatchEvent(e){return this._et.dispatchEvent(e)}removeEventListener(e,t,n){this._et.removeEventListener(e,t,n)}}class s extends i{constructor(e,t={}){super(),this.canvas=e,this._drawningStroke=!1,this._isEmpty=!0,this._lastPoints=[],this._data=[],this._lastVelocity=0,this._lastWidth=0,this._handleMouseDown=e=>{1===e.buttons&&(this._drawningStroke=!0,this._strokeBegin(e))},this._handleMouseMove=e=>{this._drawningStroke&&this._strokeMoveUpdate(e)},this._handleMouseUp=e=>{1===e.buttons&&this._drawningStroke&&(this._drawningStroke=!1,this._strokeEnd(e))},this._handleTouchStart=e=>{if(e.cancelable&&e.preventDefault(),1===e.targetTouches.length){const t=e.changedTouches[0];this._strokeBegin(t)}},this._handleTouchMove=e=>{e.cancelable&&e.preventDefault();const t=e.targetTouches[0];this._strokeMoveUpdate(t)},this._handleTouchEnd=e=>{if(e.target===this.canvas){e.cancelable&&e.preventDefault();const t=e.changedTouches[0];this._strokeEnd(t)}},this._handlePointerStart=e=>{this._drawningStroke=!0,e.preventDefault(),this._strokeBegin(e)},this._handlePointerMove=e=>{this._drawningStroke&&(e.preventDefault(),this._strokeMoveUpdate(e))},this._handlePointerEnd=e=>{this._drawningStroke&&(e.preventDefault(),this._drawningStroke=!1,this._strokeEnd(e))},this.velocityFilterWeight=t.velocityFilterWeight||.7,this.minWidth=t.minWidth||.5,this.maxWidth=t.maxWidth||2.5,this.throttle="throttle"in t?t.throttle:16,this.minDistance="minDistance"in t?t.minDistance:5,this.dotSize=t.dotSize||0,this.penColor=t.penColor||"black",this.backgroundColor=t.backgroundColor||"rgba(0,0,0,0)",this.compositeOperation=t.compositeOperation||"source-over",this._strokeMoveUpdate=this.throttle?function(e,t=250){let n,r,o,i=0,s=null;const a=()=>{i=Date.now(),s=null,n=e.apply(r,o),s||(r=null,o=[])};return function(...l){const u=Date.now(),c=t-(u-i);return r=this,o=l,c<=0||c>t?(s&&(clearTimeout(s),s=null),i=u,n=e.apply(r,o),s||(r=null,o=[])):s||(s=window.setTimeout(a,c)),n}}(s.prototype._strokeUpdate,this.throttle):s.prototype._strokeUpdate,this._ctx=e.getContext("2d"),this.clear(),this.on()}clear(){const{_ctx:e,canvas:t}=this;e.fillStyle=this.backgroundColor,e.clearRect(0,0,t.width,t.height),e.fillRect(0,0,t.width,t.height),this._data=[],this._reset(this._getPointGroupOptions()),this._isEmpty=!0}fromDataURL(e,t={}){return new Promise(((n,r)=>{const o=new Image,i=t.ratio||window.devicePixelRatio||1,s=t.width||this.canvas.width/i,a=t.height||this.canvas.height/i,l=t.xOffset||0,u=t.yOffset||0;this._reset(this._getPointGroupOptions()),o.onload=()=>{this._ctx.drawImage(o,l,u,s,a),n()},o.onerror=e=>{r(e)},o.crossOrigin="anonymous",o.src=e,this._isEmpty=!1}))}toDataURL(e="image/png",t){return"image/svg+xml"===e?("object"!=typeof t&&(t=void 0),`data:image/svg+xml;base64,${btoa(this.toSVG(t))}`):("number"!=typeof t&&(t=void 0),this.canvas.toDataURL(e,t))}on(){this.canvas.style.touchAction="none",this.canvas.style.msTouchAction="none",this.canvas.style.userSelect="none";const e=/Macintosh/.test(navigator.userAgent)&&"ontouchstart"in document;window.PointerEvent&&!e?this._handlePointerEvents():(this._handleMouseEvents(),"ontouchstart"in window&&this._handleTouchEvents())}off(){this.canvas.style.touchAction="auto",this.canvas.style.msTouchAction="auto",this.canvas.style.userSelect="auto",this.canvas.removeEventListener("pointerdown",this._handlePointerStart),this.canvas.removeEventListener("pointermove",this._handlePointerMove),this.canvas.ownerDocument.removeEventListener("pointerup",this._handlePointerEnd),this.canvas.removeEventListener("mousedown",this._handleMouseDown),this.canvas.removeEventListener("mousemove",this._handleMouseMove),this.canvas.ownerDocument.removeEventListener("mouseup",this._handleMouseUp),this.canvas.removeEventListener("touchstart",this._handleTouchStart),this.canvas.removeEventListener("touchmove",this._handleTouchMove),this.canvas.removeEventListener("touchend",this._handleTouchEnd)}isEmpty(){return this._isEmpty}fromData(e,{clear:t=!0}={}){t&&this.clear(),this._fromData(e,this._drawCurve.bind(this),this._drawDot.bind(this)),this._data=this._data.concat(e)}toData(){return this._data}_getPointGroupOptions(e){return{penColor:e&&"penColor"in e?e.penColor:this.penColor,dotSize:e&&"dotSize"in e?e.dotSize:this.dotSize,minWidth:e&&"minWidth"in e?e.minWidth:this.minWidth,maxWidth:e&&"maxWidth"in e?e.maxWidth:this.maxWidth,velocityFilterWeight:e&&"velocityFilterWeight"in e?e.velocityFilterWeight:this.velocityFilterWeight,compositeOperation:e&&"compositeOperation"in e?e.compositeOperation:this.compositeOperation}}_strokeBegin(e){this.dispatchEvent(new CustomEvent("beginStroke",{detail:e}));const t=this._getPointGroupOptions(),n=Object.assign(Object.assign({},t),{points:[]});this._data.push(n),this._reset(t),this._strokeUpdate(e)}_strokeUpdate(e){if(0===this._data.length)return void this._strokeBegin(e);this.dispatchEvent(new CustomEvent("beforeUpdateStroke",{detail:e}));const t=e.clientX,n=e.clientY,r=void 0!==e.pressure?e.pressure:void 0!==e.force?e.force:0,o=this._createPoint(t,n,r),i=this._data[this._data.length-1],s=i.points,a=s.length>0&&s[s.length-1],l=!!a&&o.distanceTo(a)<=this.minDistance,u=this._getPointGroupOptions(i);if(!a||!a||!l){const e=this._addPoint(o,u);a?e&&this._drawCurve(e,u):this._drawDot(o,u),s.push({time:o.time,x:o.x,y:o.y,pressure:o.pressure})}this.dispatchEvent(new CustomEvent("afterUpdateStroke",{detail:e}))}_strokeEnd(e){this._strokeUpdate(e),this.dispatchEvent(new CustomEvent("endStroke",{detail:e}))}_handlePointerEvents(){this._drawningStroke=!1,this.canvas.addEventListener("pointerdown",this._handlePointerStart),this.canvas.addEventListener("pointermove",this._handlePointerMove),this.canvas.ownerDocument.addEventListener("pointerup",this._handlePointerEnd)}_handleMouseEvents(){this._drawningStroke=!1,this.canvas.addEventListener("mousedown",this._handleMouseDown),this.canvas.addEventListener("mousemove",this._handleMouseMove),this.canvas.ownerDocument.addEventListener("mouseup",this._handleMouseUp)}_handleTouchEvents(){this.canvas.addEventListener("touchstart",this._handleTouchStart),this.canvas.addEventListener("touchmove",this._handleTouchMove),this.canvas.addEventListener("touchend",this._handleTouchEnd)}_reset(e){this._lastPoints=[],this._lastVelocity=0,this._lastWidth=(e.minWidth+e.maxWidth)/2,this._ctx.fillStyle=e.penColor,this._ctx.globalCompositeOperation=e.compositeOperation}_createPoint(e,t,n){const o=this.canvas.getBoundingClientRect();return new r(e-o.left,t-o.top,n,(new Date).getTime())}_addPoint(e,t){const{_lastPoints:n}=this;if(n.push(e),n.length>2){3===n.length&&n.unshift(n[0]);const e=this._calculateCurveWidths(n[1],n[2],t),r=o.fromPoints(n,e);return n.shift(),r}return null}_calculateCurveWidths(e,t,n){const r=n.velocityFilterWeight*t.velocityFrom(e)+(1-n.velocityFilterWeight)*this._lastVelocity,o=this._strokeWidth(r,n),i={end:o,start:this._lastWidth};return this._lastVelocity=r,this._lastWidth=o,i}_strokeWidth(e,t){return Math.max(t.maxWidth/(e+1),t.minWidth)}_drawCurveSegment(e,t,n){const r=this._ctx;r.moveTo(e,t),r.arc(e,t,n,0,2*Math.PI,!1),this._isEmpty=!1}_drawCurve(e,t){const n=this._ctx,r=e.endWidth-e.startWidth,o=2*Math.ceil(e.length());n.beginPath(),n.fillStyle=t.penColor;for(let n=0;n<o;n+=1){const i=n/o,s=i*i,a=s*i,l=1-i,u=l*l,c=u*l;let p=c*e.startPoint.x;p+=3*u*i*e.control1.x,p+=3*l*s*e.control2.x,p+=a*e.endPoint.x;let d=c*e.startPoint.y;d+=3*u*i*e.control1.y,d+=3*l*s*e.control2.y,d+=a*e.endPoint.y;const h=Math.min(e.startWidth+a*r,t.maxWidth);this._drawCurveSegment(p,d,h)}n.closePath(),n.fill()}_drawDot(e,t){const n=this._ctx,r=t.dotSize>0?t.dotSize:(t.minWidth+t.maxWidth)/2;n.beginPath(),this._drawCurveSegment(e.x,e.y,r),n.closePath(),n.fillStyle=t.penColor,n.fill()}_fromData(e,t,n){for(const o of e){const{points:e}=o,i=this._getPointGroupOptions(o);if(e.length>1)for(let n=0;n<e.length;n+=1){const o=e[n],s=new r(o.x,o.y,o.pressure,o.time);0===n&&this._reset(i);const a=this._addPoint(s,i);a&&t(a,i)}else this._reset(i),n(e[0],i)}}toSVG({includeBackgroundColor:e=!1}={}){const t=this._data,n=Math.max(window.devicePixelRatio||1,1),r=this.canvas.width/n,o=this.canvas.height/n,i=document.createElementNS("http://www.w3.org/2000/svg","svg");if(i.setAttribute("xmlns","http://www.w3.org/2000/svg"),i.setAttribute("xmlns:xlink","http://www.w3.org/1999/xlink"),i.setAttribute("viewBox",`0 0 ${r} ${o}`),i.setAttribute("width",r.toString()),i.setAttribute("height",o.toString()),e&&this.backgroundColor){const e=document.createElement("rect");e.setAttribute("width","100%"),e.setAttribute("height","100%"),e.setAttribute("fill",this.backgroundColor),i.appendChild(e)}return this._fromData(t,((e,{penColor:t})=>{const n=document.createElement("path");if(!(isNaN(e.control1.x)||isNaN(e.control1.y)||isNaN(e.control2.x)||isNaN(e.control2.y))){const r=`M ${e.startPoint.x.toFixed(3)},${e.startPoint.y.toFixed(3)} C ${e.control1.x.toFixed(3)},${e.control1.y.toFixed(3)} ${e.control2.x.toFixed(3)},${e.control2.y.toFixed(3)} ${e.endPoint.x.toFixed(3)},${e.endPoint.y.toFixed(3)}`;n.setAttribute("d",r),n.setAttribute("stroke-width",(2.25*e.endWidth).toFixed(3)),n.setAttribute("stroke",t),n.setAttribute("fill","none"),n.setAttribute("stroke-linecap","round"),i.appendChild(n)}}),((e,{penColor:t,dotSize:n,minWidth:r,maxWidth:o})=>{const s=document.createElement("circle"),a=n>0?n:(r+o)/2;s.setAttribute("r",a.toString()),s.setAttribute("cx",e.x.toString()),s.setAttribute("cy",e.y.toString()),s.setAttribute("fill",t),i.appendChild(s)})),i.outerHTML}}},"./src/actions/action.ts":function(e,t,n){"use strict";n.r(t),n.d(t,"createDropdownActionModel",(function(){return h})),n.d(t,"createDropdownActionModelAdvanced",(function(){return f})),n.d(t,"getActionDropdownButtonTarget",(function(){return g})),n.d(t,"BaseAction",(function(){return m})),n.d(t,"Action",(function(){return y})),n.d(t,"ActionDropdownViewModel",(function(){return v}));var r,o=n("./src/base.ts"),i=n("./src/surveyStrings.ts"),s=n("./src/jsonobject.ts"),a=n("./src/list.ts"),l=n("./src/popup.ts"),u=n("./src/utils/cssClassBuilder.ts"),c=n("./src/actions/container.ts"),p=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),d=function(e,t,n,r){var o,i=arguments.length,s=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,r);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(i<3?o(s):i>3?o(t,n,s):o(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s};function h(e,t,n){return f(e,t,t,n)}function f(e,t,n,r){var o=new a.ListModel(t.items,(function(e){t.onSelectionChanged(e),i.toggleVisibility()}),t.allowSelection,t.selectedItem,t.onFilterStringChangedCallback);o.locOwner=r;var i=new l.PopupModel("sv-list",{model:o},null==n?void 0:n.verticalPosition,null==n?void 0:n.horizontalPosition,null==n?void 0:n.showPointer,null==n?void 0:n.isModal,null==n?void 0:n.onCancel,null==n?void 0:n.onApply,null==n?void 0:n.onHide,null==n?void 0:n.onShow,null==n?void 0:n.cssClass,null==n?void 0:n.title);i.displayMode=null==n?void 0:n.displayMode;var s=Object.assign({},e,{component:"sv-action-bar-item-dropdown",popupModel:i,action:function(t,n){e.action&&e.action(),i.isFocusedContent=!n||o.showFilter,i.toggleVisibility(),o.scrollToSelectedItem()}}),u=new y(s);return u.data=o,u}function g(e){return null==e?void 0:e.previousElementSibling}var m=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.iconSize=24,t}return p(t,e),Object.defineProperty(t.prototype,"visible",{get:function(){return this.getVisible()},set:function(e){this.setVisible(e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"enabled",{get:function(){return this.getEnabled()},set:function(e){this.setEnabled(e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"component",{get:function(){return this.getComponent()},set:function(e){this.setComponent(e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locTitle",{get:function(){return this.getLocTitle()},set:function(e){this.setLocTitle(e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"title",{get:function(){return this.getTitle()},set:function(e){this.setTitle(e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"cssClasses",{get:function(){return this.cssClassesValue||c.defaultActionBarCss},set:function(e){this.cssClassesValue=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isVisible",{get:function(){return this.visible&&"popup"!==this.mode&&"removed"!==this.mode},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"disabled",{get:function(){return void 0!==this.enabled&&!this.enabled},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"canShrink",{get:function(){return!!this.iconName},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hasTitle",{get:function(){return("small"!=this.mode&&(this.showTitle||void 0===this.showTitle)||!this.iconName)&&!!this.title},enumerable:!1,configurable:!0}),t.prototype.getActionBarItemTitleCss=function(){return(new u.CssClassBuilder).append(this.cssClasses.itemTitle).append(this.cssClasses.itemTitleWithIcon,!!this.iconName).toString()},t.prototype.getActionBarItemCss=function(){return(new u.CssClassBuilder).append(this.cssClasses.item).append(this.cssClasses.itemAsIcon,!this.hasTitle).append(this.cssClasses.itemActive,!!this.active).append(this.cssClasses.itemPressed,!!this.pressed).append(this.innerCss).toString()},t.prototype.getActionRootCss=function(){return(new u.CssClassBuilder).append("sv-action").append(this.css).append("sv-action--space",this.needSpace).append("sv-action--hidden",!this.isVisible).toString()},t.prototype.getTooltip=function(){return this.tooltip||this.title},t.prototype.getIsTrusted=function(e){return e.originalEvent?e.originalEvent.isTrusted:e.isTrusted},d([Object(s.property)()],t.prototype,"tooltip",void 0),d([Object(s.property)()],t.prototype,"showTitle",void 0),d([Object(s.property)()],t.prototype,"innerCss",void 0),d([Object(s.property)()],t.prototype,"active",void 0),d([Object(s.property)()],t.prototype,"pressed",void 0),d([Object(s.property)()],t.prototype,"data",void 0),d([Object(s.property)()],t.prototype,"popupModel",void 0),d([Object(s.property)()],t.prototype,"needSeparator",void 0),d([Object(s.property)()],t.prototype,"template",void 0),d([Object(s.property)({defaultValue:"large"})],t.prototype,"mode",void 0),d([Object(s.property)()],t.prototype,"visibleIndex",void 0),d([Object(s.property)()],t.prototype,"disableTabStop",void 0),d([Object(s.property)()],t.prototype,"disableShrink",void 0),d([Object(s.property)()],t.prototype,"disableHide",void 0),d([Object(s.property)({defaultValue:!1})],t.prototype,"needSpace",void 0),d([Object(s.property)()],t.prototype,"ariaChecked",void 0),d([Object(s.property)()],t.prototype,"ariaExpanded",void 0),d([Object(s.property)({defaultValue:"button"})],t.prototype,"ariaRole",void 0),d([Object(s.property)()],t.prototype,"iconName",void 0),d([Object(s.property)()],t.prototype,"iconSize",void 0),d([Object(s.property)()],t.prototype,"css",void 0),t}(o.Base),y=function(e){function t(t){var n=e.call(this)||this;if(n.innerItem=t,n.locTitleChanged=function(){var e=n.locTitle.renderedHtml;n.setPropertyValue("_title",e||void 0)},n.locTitle=t?t.locTitle:null,t)for(var r in t)n[r]=t[r];return n.locTitleName&&n.locTitleChanged(),n.registerFunctionOnPropertyValueChanged("_title",(function(){n.raiseUpdate(!0)})),n.locStrChangedInPopupModel(),n}return p(t,e),t.prototype.raiseUpdate=function(e){void 0===e&&(e=!1),this.updateCallback&&this.updateCallback(e)},t.prototype.createLocTitle=function(){return this.createLocalizableString("title",this,!0)},t.prototype.getLocTitle=function(){return this.locTitleValue},t.prototype.setLocTitle=function(e){e||this.locTitleValue||(e=this.createLocTitle()),this.locTitleValue&&this.locTitleValue.onStringChanged.remove(this.locTitleChanged),this.locTitleValue=e,this.locTitleValue.onStringChanged.add(this.locTitleChanged),this.locTitleChanged()},t.prototype.getTitle=function(){return this._title},t.prototype.setTitle=function(e){this._title=e},Object.defineProperty(t.prototype,"locTitleName",{get:function(){return this.locTitle.localizationName},set:function(e){this.locTitle.localizationName=e},enumerable:!1,configurable:!0}),t.prototype.locStrsChanged=function(){e.prototype.locStrsChanged.call(this),this.locTooltipChanged(),this.locStrChangedInPopupModel()},t.prototype.locStrChangedInPopupModel=function(){if(this.popupModel&&this.popupModel.contentComponentData&&this.popupModel.contentComponentData.model){var e=this.popupModel.contentComponentData.model;Array.isArray(e.actions)&&e.actions.forEach((function(e){e.locStrsChanged&&e.locStrsChanged()}))}},t.prototype.locTooltipChanged=function(){this.locTooltipName&&(this.tooltip=i.surveyLocalization.getString(this.locTooltipName,this.locTitle.locale))},t.prototype.getLocale=function(){return this.owner?this.owner.getLocale():""},t.prototype.getMarkdownHtml=function(e,t){return this.owner?this.owner.getMarkdownHtml(e,t):void 0},t.prototype.getProcessedText=function(e){return this.owner?this.owner.getProcessedText(e):e},t.prototype.getRenderer=function(e){return this.owner?this.owner.getRenderer(e):null},t.prototype.getRendererContext=function(e){return this.owner?this.owner.getRendererContext(e):e},t.prototype.setVisible=function(e){this._visible=e},t.prototype.getVisible=function(){return this._visible},t.prototype.setEnabled=function(e){this._enabled=e},t.prototype.getEnabled=function(){return this._enabled},t.prototype.setComponent=function(e){this._component=e},t.prototype.getComponent=function(){return this._component},d([Object(s.property)()],t.prototype,"id",void 0),d([Object(s.property)({defaultValue:!0,onSet:function(e,t){t.raiseUpdate()}})],t.prototype,"_visible",void 0),d([Object(s.property)({onSet:function(e,t){t.locTooltipChanged()}})],t.prototype,"locTooltipName",void 0),d([Object(s.property)()],t.prototype,"_enabled",void 0),d([Object(s.property)()],t.prototype,"action",void 0),d([Object(s.property)()],t.prototype,"_component",void 0),d([Object(s.property)()],t.prototype,"items",void 0),d([Object(s.property)({onSet:function(e,t){t.locTitleValue.text!==e&&(t.locTitleValue.text=e)}})],t.prototype,"_title",void 0),t}(m),v=function(){function e(e){this.item=e,this.funcKey="sv-dropdown-action",this.setupPopupCallbacks()}return e.prototype.setupPopupCallbacks=function(){var e=this,t=this.popupModel=this.item.popupModel;t&&t.registerPropertyChangedHandlers(["isVisible"],(function(){t.isVisible?e.item.pressed=!0:e.item.pressed=!1}),this.funcKey)},e.prototype.removePopupCallbacks=function(){this.popupModel&&this.popupModel.unregisterPropertyChangedHandlers(["isVisible"],this.funcKey)},e.prototype.dispose=function(){this.removePopupCallbacks()},e}()},"./src/actions/adaptive-container.ts":function(e,t,n){"use strict";n.r(t),n.d(t,"AdaptiveActionContainer",(function(){return u}));var r,o=n("./src/utils/responsivity-manager.ts"),i=n("./src/actions/action.ts"),s=n("./src/actions/container.ts"),a=n("./src/surveyStrings.ts"),l=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),u=function(e){function t(){var n=e.call(this)||this;return n.minVisibleItemsCount=0,n.isResponsivenessDisabled=!1,n.dotsItem=Object(i.createDropdownActionModelAdvanced)({id:"dotsItem-id"+t.ContainerID++,css:"sv-dots",innerCss:"sv-dots__item",iconName:"icon-more",visible:!1,tooltip:a.surveyLocalization.getString("more")},{items:[],onSelectionChanged:function(e){n.hiddenItemSelected(e)},allowSelection:!1}),n}return l(t,e),t.prototype.hideItemsGreaterN=function(e){var t=this.visibleActions.filter((function(e){return!e.disableHide}));e=Math.max(e,this.minVisibleItemsCount-(this.visibleActions.length-t.length));var n=[];t.forEach((function(t){e<=0&&(t.mode="popup",n.push(t.innerItem)),e--})),this.hiddenItemsListModel.setItems(n)},t.prototype.getVisibleItemsCount=function(e){this.visibleActions.filter((function(e){return e.disableHide})).forEach((function(t){return e-=t.minDimension}));for(var t=this.visibleActions.filter((function(e){return!e.disableHide})).map((function(e){return e.minDimension})),n=0,r=0;r<t.length;r++)if((n+=t[r])>e)return r;return r},t.prototype.updateItemMode=function(e,t){for(var n=this.visibleActions,r=n.length-1;r>=0;r--)t>e&&!n[r].disableShrink?(t-=n[r].maxDimension-n[r].minDimension,n[r].mode="small"):n[r].mode="large";if(t>e){var o=this.visibleActions.filter((function(e){return e.removePriority}));for(o.sort((function(e,t){return e.removePriority-t.removePriority})),r=0;r<o.length;r++)t>e&&(t-=n[r].disableShrink?o[r].maxDimension:o[r].minDimension,o[r].mode="removed")}},Object.defineProperty(t.prototype,"hiddenItemsListModel",{get:function(){return this.dotsItem.data},enumerable:!1,configurable:!0}),t.prototype.hiddenItemSelected=function(e){e&&"function"==typeof e.action&&e.action()},t.prototype.onSet=function(){var t=this;this.actions.forEach((function(e){return e.updateCallback=function(e){return t.raiseUpdate(e)}})),e.prototype.onSet.call(this)},t.prototype.onPush=function(t){var n=this;t.updateCallback=function(e){return n.raiseUpdate(e)},e.prototype.onPush.call(this,t)},t.prototype.getRenderedActions=function(){return 1===this.actions.length&&this.actions[0].iconName?this.actions:this.actions.concat([this.dotsItem])},t.prototype.raiseUpdate=function(t){this.isResponsivenessDisabled||e.prototype.raiseUpdate.call(this,t)},t.prototype.fit=function(e,t){if(!(e<=0)){this.dotsItem.visible=!1;var n=0,r=0;this.visibleActions.forEach((function(e){n+=e.minDimension,r+=e.maxDimension})),e>=r?this.setActionsMode("large"):e<n?(this.setActionsMode("small"),this.hideItemsGreaterN(this.getVisibleItemsCount(e-t)),this.dotsItem.visible=!0):this.updateItemMode(e,r)}},t.prototype.initResponsivityManager=function(e){this.responsivityManager=new o.ResponsivityManager(e,this,":scope > .sv-action:not(.sv-dots) > .sv-action__content")},t.prototype.resetResponsivityManager=function(){this.responsivityManager&&(this.responsivityManager.dispose(),this.responsivityManager=void 0)},t.prototype.setActionsMode=function(e){this.actions.forEach((function(t){return t.mode=e}))},t.prototype.dispose=function(){e.prototype.dispose.call(this),this.resetResponsivityManager()},t.ContainerID=1,t}(s.ActionContainer)},"./src/actions/container.ts":function(e,t,n){"use strict";n.r(t),n.d(t,"defaultActionBarCss",(function(){return p})),n.d(t,"ActionContainer",(function(){return d}));var r,o=n("./src/jsonobject.ts"),i=n("./src/base.ts"),s=n("./src/actions/action.ts"),a=n("./src/utils/cssClassBuilder.ts"),l=n("./src/utils/utils.ts"),u=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),c=function(e,t,n,r){var o,i=arguments.length,s=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,r);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(i<3?o(s):i>3?o(t,n,s):o(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},p={root:"sv-action-bar",defaultSizeMode:"sv-action-bar--default-size-mode",smallSizeMode:"sv-action-bar--small-size-mode",item:"sv-action-bar-item",itemActive:"sv-action-bar-item--active",itemPressed:"sv-action-bar-item--pressed",itemIcon:"sv-action-bar-item__icon",itemTitle:"sv-action-bar-item__title",itemTitleWithIcon:"sv-action-bar-item__title--with-icon"},d=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.sizeMode="default",t}return u(t,e),t.prototype.getMarkdownHtml=function(e,t){return this.locOwner?this.locOwner.getMarkdownHtml(e,t):void 0},t.prototype.getRenderer=function(e){return this.locOwner?this.locOwner.getRenderer(e):null},t.prototype.getRendererContext=function(e){return this.locOwner?this.locOwner.getRendererContext(e):e},t.prototype.getProcessedText=function(e){return this.locOwner?this.locOwner.getProcessedText(e):e},t.prototype.getLocale=function(){return this.locOwner?this.locOwner.getLocale():""},t.prototype.getRenderedActions=function(){return this.actions},t.prototype.locStrsChanged=function(){e.prototype.locStrsChanged.call(this),this.actions.forEach((function(e){e.locTitle&&e.locTitle.strChanged(),e.locStrsChanged()}))},t.prototype.raiseUpdate=function(e){this.isEmpty=!this.actions.some((function(e){return e.visible})),this.updateCallback&&this.updateCallback(e)},t.prototype.onSet=function(){var e=this;this.actions.forEach((function(t){e.setActionCssClasses(t)})),this.raiseUpdate(!0)},t.prototype.onPush=function(e){this.setActionCssClasses(e),e.owner=this,this.raiseUpdate(!0)},t.prototype.onRemove=function(e){e.owner=null,this.raiseUpdate(!0)},t.prototype.setActionCssClasses=function(e){e.cssClasses=this.cssClasses},Object.defineProperty(t.prototype,"hasActions",{get:function(){return(this.actions||[]).length>0},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"renderedActions",{get:function(){return this.getRenderedActions()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"visibleActions",{get:function(){return this.actions.filter((function(e){return!1!==e.visible}))},enumerable:!1,configurable:!0}),t.prototype.getRootCss=function(){var e="small"===this.sizeMode?this.cssClasses.smallSizeMode:this.cssClasses.defaultSizeMode;return(new a.CssClassBuilder).append(this.cssClasses.root+(e?" "+e:"")+(this.containerCss?" "+this.containerCss:"")).append(this.cssClasses.root+"--empty",this.isEmpty).toString()},t.prototype.getDefaultCssClasses=function(){return p},Object.defineProperty(t.prototype,"cssClasses",{get:function(){return this.cssClassesValue||(this.cssClassesValue=this.getDefaultCssClasses()),this.cssClassesValue},set:function(e){var t=this;this.cssClassesValue={},this.copyCssClasses(this.cssClassesValue,this.getDefaultCssClasses()),Object(l.mergeValues)(e,this.cssClasses),this.actions.forEach((function(e){t.setActionCssClasses(e)}))},enumerable:!1,configurable:!0}),t.prototype.createAction=function(e){return e instanceof s.BaseAction?e:new s.Action(e)},t.prototype.addAction=function(e,t){void 0===t&&(t=!0);var n=this.createAction(e);return this.actions.push(n),this.sortItems(),n},t.prototype.sortItems=function(){this.actions=[].concat(this.actions.filter((function(e){return void 0===e.visibleIndex||e.visibleIndex>=0}))).sort((function(e,t){return e.visibleIndex-t.visibleIndex}))},t.prototype.setItems=function(e,t){var n=this;void 0===t&&(t=!0),this.actions=e.map((function(e){return n.createAction(e)})),t&&this.sortItems()},t.prototype.initResponsivityManager=function(e){},t.prototype.resetResponsivityManager=function(){},t.prototype.getActionById=function(e){for(var t=0;t<this.actions.length;t++)if(this.actions[t].id===e)return this.actions[t];return null},t.prototype.dispose=function(){e.prototype.dispose.call(this),this.actions.forEach((function(e){return e.dispose()})),this.actions.length=0},c([Object(o.propertyArray)({onSet:function(e,t){t.onSet()},onPush:function(e,t,n){n.onPush(e)},onRemove:function(e,t,n){n.onRemove(e)}})],t.prototype,"actions",void 0),c([Object(o.property)({})],t.prototype,"containerCss",void 0),c([Object(o.property)({defaultValue:!1})],t.prototype,"isEmpty",void 0),t}(i.Base)},"./src/base.ts":function(e,t,n){"use strict";n.r(t),n.d(t,"Bindings",(function(){return d})),n.d(t,"Dependencies",(function(){return h})),n.d(t,"ComputedUpdater",(function(){return f})),n.d(t,"Base",(function(){return g})),n.d(t,"ArrayChanges",(function(){return m})),n.d(t,"Event",(function(){return y})),n.d(t,"EventBase",(function(){return v}));var r,o=n("./src/localizablestring.ts"),i=n("./src/helpers.ts"),s=n("./src/jsonobject.ts"),a=n("./src/settings.ts"),l=n("./src/conditions.ts"),u=n("./src/surveyStrings.ts"),c=n("./src/console-warnings.ts"),p=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),d=function(){function e(e){this.obj=e,this.properties=null,this.values=null}return e.prototype.getType=function(){return"bindings"},e.prototype.getNames=function(){var e=[];this.fillProperties();for(var t=0;t<this.properties.length;t++)this.properties[t].isVisible("",this.obj)&&e.push(this.properties[t].name);return e},e.prototype.getProperties=function(){var e=[];this.fillProperties();for(var t=0;t<this.properties.length;t++)e.push(this.properties[t]);return e},e.prototype.setBinding=function(e,t){this.values||(this.values={});var n=this.getJson();n!==t&&(t?this.values[e]=t:(delete this.values[e],0==Object.keys(this.values).length&&(this.values=null)),this.onChangedJSON(n))},e.prototype.clearBinding=function(e){this.setBinding(e,"")},e.prototype.isEmpty=function(){if(!this.values)return!0;for(var e in this.values)return!1;return!0},e.prototype.getValueNameByPropertyName=function(e){if(this.values)return this.values[e]},e.prototype.getPropertiesByValueName=function(e){if(!this.values)return[];var t=[];for(var n in this.values)this.values[n]==e&&t.push(n);return t},e.prototype.getJson=function(){if(!this.isEmpty()){var e={};for(var t in this.values)e[t]=this.values[t];return e}},e.prototype.setJson=function(e){var t=this.getJson();if(this.values=null,e)for(var n in this.values={},e)this.values[n]=e[n];this.onChangedJSON(t)},e.prototype.fillProperties=function(){if(null===this.properties){this.properties=[];for(var e=s.Serializer.getPropertiesByObj(this.obj),t=0;t<e.length;t++)e[t].isBindable&&this.properties.push(e[t])}},e.prototype.onChangedJSON=function(e){this.obj&&this.obj.onBindingChanged(e,this.getJson())},e}(),h=function(){function e(t,n,r){this.currentDependency=t,this.target=n,this.property=r,this.dependencies=[],this.id=""+ ++e.DependenciesCount}return e.prototype.addDependency=function(e,t){this.target===e&&this.property===t||this.dependencies.some((function(n){return n.obj===e&&n.prop===t}))||(this.dependencies.push({obj:e,prop:t,id:this.id}),e.registerPropertyChangedHandlers([t],this.currentDependency,this.id))},e.prototype.dispose=function(){this.dependencies.forEach((function(e){e.obj.unregisterPropertyChangedHandlers([e.prop],e.id)}))},e.DependenciesCount=0,e}(),f=function(){function e(t){this._updater=t,this.dependencies=void 0,this.type=e.ComputedUpdaterType}return Object.defineProperty(e.prototype,"updater",{get:function(){return this._updater},enumerable:!1,configurable:!0}),e.prototype.setDependencies=function(e){this.clearDependencies(),this.dependencies=e},e.prototype.getDependencies=function(){return this.dependencies},e.prototype.clearDependencies=function(){this.dependencies&&(this.dependencies.dispose(),this.dependencies=void 0)},e.prototype.dispose=function(){this.clearDependencies()},e.ComputedUpdaterType="__dependency_computed",e}(),g=function(){function e(){this.propertyHash=e.createPropertiesHash(),this.eventList=[],this.isLoadingFromJsonValue=!1,this.loadingOwner=null,this.onPropertyChanged=this.addEvent(),this.onItemValuePropertyChanged=this.addEvent(),this.isCreating=!0,this.bindingsValue=new d(this),s.CustomPropertiesCollection.createProperties(this),this.onBaseCreating(),this.isCreating=!1}return e.finishCollectDependencies=function(){var t=e.currentDependencis;return e.currentDependencis=void 0,t},e.startCollectDependencies=function(t,n,r){if(void 0!==e.currentDependencis)throw new Error("Attempt to collect nested dependencies. Nested dependencies are not supported.");e.currentDependencis=new h(t,n,r)},e.collectDependency=function(t,n){void 0!==e.currentDependencis&&e.currentDependencis.addDependency(t,n)},Object.defineProperty(e,"commentSuffix",{get:function(){return a.settings.commentSuffix},set:function(e){a.settings.commentSuffix=e},enumerable:!1,configurable:!0}),Object.defineProperty(e,"commentPrefix",{get:function(){return e.commentSuffix},set:function(t){e.commentSuffix=t},enumerable:!1,configurable:!0}),e.prototype.isValueEmpty=function(e,t){return void 0===t&&(t=!0),t&&(e=this.trimValue(e)),i.Helpers.isValueEmpty(e)},e.prototype.trimValue=function(e){return e&&("string"==typeof e||e instanceof String)?e.trim():e},e.prototype.isPropertyEmpty=function(e){return""!==e&&this.isValueEmpty(e)},e.createPropertiesHash=function(){return{}},e.prototype.dispose=function(){for(var e=0;e<this.eventList.length;e++)this.eventList[e].clear();this.onPropertyValueChangedCallback=void 0,this.isDisposedValue=!0},Object.defineProperty(e.prototype,"isDisposed",{get:function(){return!0===this.isDisposedValue},enumerable:!1,configurable:!0}),e.prototype.addEvent=function(){var e=new v;return this.eventList.push(e),e},e.prototype.onBaseCreating=function(){},e.prototype.getType=function(){return"base"},e.prototype.isDescendantOf=function(e){return s.Serializer.isDescendantOf(this.getType(),e)},e.prototype.getSurvey=function(e){return void 0===e&&(e=!1),null},Object.defineProperty(e.prototype,"isDesignMode",{get:function(){var e=this.getSurvey();return!!e&&e.isDesignMode},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"inSurvey",{get:function(){return!!this.getSurvey(!0)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"bindings",{get:function(){return this.bindingsValue},enumerable:!1,configurable:!0}),e.prototype.checkBindings=function(e,t){},e.prototype.updateBindings=function(e,t){var n=this.bindings.getValueNameByPropertyName(e);n&&this.updateBindingValue(n,t)},e.prototype.updateBindingValue=function(e,t){},e.prototype.getTemplate=function(){return this.getType()},Object.defineProperty(e.prototype,"isLoadingFromJson",{get:function(){return this.isLoadingFromJsonValue||this.getIsLoadingFromJson()},enumerable:!1,configurable:!0}),e.prototype.getIsLoadingFromJson=function(){return!(!this.loadingOwner||!this.loadingOwner.isLoadingFromJson)||this.isLoadingFromJsonValue},e.prototype.startLoadingFromJson=function(e){this.isLoadingFromJsonValue=!0,this.jsonObj=e},e.prototype.endLoadingFromJson=function(){this.isLoadingFromJsonValue=!1},e.prototype.toJSON=function(){return(new s.JsonObject).toJsonObject(this)},e.prototype.fromJSON=function(e){(new s.JsonObject).toObject(e,this),this.onSurveyLoad()},e.prototype.onSurveyLoad=function(){},e.prototype.clone=function(){var e=s.Serializer.createClass(this.getType());return e.fromJSON(this.toJSON()),e},e.prototype.getPropertyByName=function(e){var t=this.getType();return this.classMetaData&&this.classMetaData.name===t||(this.classMetaData=s.Serializer.findClass(t)),this.classMetaData?this.classMetaData.findProperty(e):null},e.prototype.isPropertyVisible=function(e){var t=this.getPropertyByName(e);return!!t&&t.isVisible("",this)},e.createProgressInfo=function(){return{questionCount:0,answeredQuestionCount:0,requiredQuestionCount:0,requiredAnsweredQuestionCount:0}},e.prototype.getProgressInfo=function(){return e.createProgressInfo()},e.prototype.localeChanged=function(){},e.prototype.locStrsChanged=function(){if(this.arraysInfo)for(var t in this.arraysInfo)if((r=this.arraysInfo[t])&&r.isItemValues){var n=this.getPropertyValue(t);n&&e.itemValueLocStrChanged&&e.itemValueLocStrChanged(n)}if(this.localizableStrings)for(var t in this.localizableStrings){var r;(r=this.getLocalizableString(t))&&r.strChanged()}},e.prototype.getPropertyValue=function(e,t){void 0===t&&(t=null);var n=this.getPropertyValueWithoutDefault(e);if(this.isPropertyEmpty(n)){var r=this.localizableStrings?this.localizableStrings[e]:void 0;if(r)return r.text;if(null!=t)return t;var o=this.getDefaultValueFromProperty(e);if(void 0!==o)return o}return n},e.prototype.getDefaultValueFromProperty=function(e){var t=this.getPropertyByName(e);if(!(!t||t.isCustom&&this.isCreating)){var n=t.defaultValue;return this.isPropertyEmpty(n)||Array.isArray(n)?"boolean"!=t.type&&"switch"!=t.type&&(t.isCustom&&t.onGetValue?t.onGetValue(this):void 0):n}},e.prototype.getPropertyValueWithoutDefault=function(e){return this.getPropertyValueCore(this.propertyHash,e)},e.prototype.getPropertyValueCore=function(t,n){return this.isLoadingFromJson||e.collectDependency(this,n),this.getPropertyValueCoreHandler?this.getPropertyValueCoreHandler(t,n):t[n]},e.prototype.geValueFromHash=function(){return this.propertyHash.value},e.prototype.setPropertyValueCore=function(e,t,n){this.setPropertyValueCoreHandler?this.isDisposedValue?c.ConsoleWarnings.disposedObjectChangedProperty(t,this.getType()):this.setPropertyValueCoreHandler(e,t,n):e[t]=n},Object.defineProperty(e.prototype,"isEditingSurveyElement",{get:function(){var e=this.getSurvey();return!!e&&e.isEditingSurveyElement},enumerable:!1,configurable:!0}),e.prototype.iteratePropertiesHash=function(e){var t=this,n=[];for(var r in this.propertyHash)"value"===r&&this.isEditingSurveyElement&&Array.isArray(this.value)||n.push(r);n.forEach((function(n){return e(t.propertyHash,n)}))},e.prototype.setPropertyValue=function(e,t){if(!this.isLoadingFromJson){var n=this.getPropertyByName(e);n&&(t=n.settingValue(this,t))}var r=this.getPropertyValue(e);if(r&&Array.isArray(r)&&this.arraysInfo&&(!t||Array.isArray(t))){if(this.isTwoValueEquals(r,t))return;this.setArrayPropertyDirectly(e,t)}else this.setPropertyValueDirectly(e,t),this.isDisposedValue||this.isTwoValueEquals(r,t)||this.propertyValueChanged(e,r,t)},e.prototype.setArrayPropertyDirectly=function(e,t,n){void 0===n&&(n=!0);var r=this.arraysInfo[e];this.setArray(e,this.getPropertyValue(e),t,!!r&&r.isItemValues,r?n&&r.onPush:null)},e.prototype.setPropertyValueDirectly=function(e,t){this.setPropertyValueCore(this.propertyHash,e,t)},e.prototype.clearPropertyValue=function(e){this.setPropertyValueCore(this.propertyHash,e,null),delete this.propertyHash[e]},e.prototype.onPropertyValueChangedCallback=function(e,t,n,r,o){},e.prototype.itemValuePropertyChanged=function(e,t,n,r){this.onItemValuePropertyChanged.fire(this,{obj:e,name:t,oldValue:n,newValue:r,propertyName:e.ownerPropertyName})},e.prototype.onPropertyValueChanged=function(e,t,n){},e.prototype.propertyValueChanged=function(e,t,n,r,o){if(!this.isLoadingFromJson&&(this.updateBindings(e,n),this.onPropertyValueChanged(e,t,n),this.onPropertyChanged.fire(this,{name:e,oldValue:t,newValue:n}),this.doPropertyValueChangedCallback(e,t,n,r,this),this.checkConditionPropertyChanged(e),this.onPropChangeFunctions))for(var i=0;i<this.onPropChangeFunctions.length;i++)this.onPropChangeFunctions[i].name==e&&this.onPropChangeFunctions[i].func(n)},e.prototype.onBindingChanged=function(e,t){this.isLoadingFromJson||this.doPropertyValueChangedCallback("bindings",e,t)},Object.defineProperty(e.prototype,"isInternal",{get:function(){return!1},enumerable:!1,configurable:!0}),e.prototype.doPropertyValueChangedCallback=function(e,t,n,r,o){if(!this.isInternal){o||(o=this);var i=this.getSurvey();i||(i=this),i.onPropertyValueChangedCallback&&i.onPropertyValueChangedCallback(e,t,n,o,r),i!==this&&this.onPropertyValueChangedCallback&&this.onPropertyValueChangedCallback(e,t,n,o,r)}},e.prototype.addExpressionProperty=function(e,t,n){this.expressionInfo||(this.expressionInfo={}),this.expressionInfo[e]={onExecute:t,canRun:n}},e.prototype.getDataFilteredValues=function(){return{}},e.prototype.getDataFilteredProperties=function(){return{}},e.prototype.runConditionCore=function(e,t){if(this.expressionInfo)for(var n in this.expressionInfo)this.runConditionItemCore(n,e,t)},e.prototype.canRunConditions=function(){return!this.isDesignMode},e.prototype.checkConditionPropertyChanged=function(e){this.expressionInfo&&this.expressionInfo[e]&&this.canRunConditions()&&this.runConditionItemCore(e,this.getDataFilteredValues(),this.getDataFilteredProperties())},e.prototype.runConditionItemCore=function(e,t,n){var r=this,o=this.expressionInfo[e],i=this.getPropertyValue(e);i&&(o.canRun&&!o.canRun(this)||(o.runner||(o.runner=new l.ExpressionRunner(i),o.runner.onRunComplete=function(e){o.onExecute(r,e)}),o.runner.expression=i,o.runner.run(t,n)))},e.prototype.registerPropertyChangedHandlers=function(e,t,n){void 0===n&&(n=null);for(var r=0;r<e.length;r++)this.registerFunctionOnPropertyValueChanged(e[r],t,n)},e.prototype.unregisterPropertyChangedHandlers=function(e,t){void 0===t&&(t=null);for(var n=0;n<e.length;n++)this.unRegisterFunctionOnPropertyValueChanged(e[n],t)},e.prototype.registerFunctionOnPropertyValueChanged=function(e,t,n){if(void 0===n&&(n=null),this.onPropChangeFunctions||(this.onPropChangeFunctions=[]),n)for(var r=0;r<this.onPropChangeFunctions.length;r++){var o=this.onPropChangeFunctions[r];if(o.name==e&&o.key==n)return void(o.func=t)}this.onPropChangeFunctions.push({name:e,func:t,key:n})},e.prototype.registerFunctionOnPropertiesValueChanged=function(e,t,n){void 0===n&&(n=null),this.registerPropertyChangedHandlers(e,t,n)},e.prototype.unRegisterFunctionOnPropertyValueChanged=function(e,t){if(void 0===t&&(t=null),this.onPropChangeFunctions)for(var n=0;n<this.onPropChangeFunctions.length;n++){var r=this.onPropChangeFunctions[n];if(r.name==e&&r.key==t)return void this.onPropChangeFunctions.splice(n,1)}},e.prototype.unRegisterFunctionOnPropertiesValueChanged=function(e,t){void 0===t&&(t=null),this.unregisterPropertyChangedHandlers(e,t)},e.prototype.createCustomLocalizableObj=function(e){this.getLocalizableString(e)||this.createLocalizableString(e,this,!1,!0)},e.prototype.getLocale=function(){var e=this.getSurvey();return e?e.getLocale():""},e.prototype.getLocalizationString=function(e){return u.surveyLocalization.getString(e,this.getLocale())},e.prototype.getLocalizationFormatString=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];var r=this.getLocalizationString(e);return r&&r.format?r.format.apply(r,t):""},e.prototype.createLocalizableString=function(e,t,n,r){var i=this;void 0===n&&(n=!1),void 0===r&&(r=!1);var s=new o.LocalizableString(t,n,e);r&&(s.localizationName=!0===r?e:r),s.onStrChanged=function(t,n){i.propertyValueChanged(e,t,n)},this.localizableStrings||(this.localizableStrings={}),this.localizableStrings[e]=s;var a=this.getPropertyByName(e);return s.disableLocalization=a&&!1===a.isLocalizable,s},e.prototype.getLocalizableString=function(e){return this.localizableStrings?this.localizableStrings[e]:null},e.prototype.getLocalizableStringText=function(t,n){void 0===n&&(n=""),e.collectDependency(this,t);var r=this.getLocalizableString(t);return r?r.text||n:""},e.prototype.setLocalizableStringText=function(e,t){var n=this.getLocalizableString(e);n&&n.text!=t&&(n.text=t)},e.prototype.addUsedLocales=function(e){if(this.localizableStrings)for(var t in this.localizableStrings)(o=this.getLocalizableString(t))&&this.AddLocStringToUsedLocales(o,e);if(this.arraysInfo)for(var t in this.arraysInfo){var n=this.getPropertyValue(t);if(n&&n.length)for(var r=0;r<n.length;r++){var o;(o=n[r])&&o.addUsedLocales&&o.addUsedLocales(e)}}},e.prototype.searchText=function(e,t){var n=[];this.getSearchableLocalizedStrings(n);for(var r=0;r<n.length;r++)n[r].setFindText(e)&&t.push({element:this,str:n[r]})},e.prototype.getSearchableLocalizedStrings=function(e){if(this.localizableStrings){var t=[];this.getSearchableLocKeys(t);for(var n=0;n<t.length;n++){var r=this.getLocalizableString(t[n]);r&&e.push(r)}}if(this.arraysInfo){var o=[];for(this.getSearchableItemValueKeys(o),n=0;n<o.length;n++){var i=this.getPropertyValue(o[n]);if(i)for(var s=0;s<i.length;s++)e.push(i[s].locText)}}},e.prototype.getSearchableLocKeys=function(e){},e.prototype.getSearchableItemValueKeys=function(e){},e.prototype.AddLocStringToUsedLocales=function(e,t){for(var n=e.getLocales(),r=0;r<n.length;r++)t.indexOf(n[r])<0&&t.push(n[r])},e.prototype.createItemValues=function(e){var t=this,n=this.createNewArray(e,(function(n){if(n.locOwner=t,n.ownerPropertyName=e,"function"==typeof n.getSurvey){var r=n.getSurvey();r&&"function"==typeof r.makeReactive&&r.makeReactive(n)}}));return this.arraysInfo[e].isItemValues=!0,n},e.prototype.notifyArrayChanged=function(e,t){e.onArrayChanged&&e.onArrayChanged(t)},e.prototype.createNewArrayCore=function(e){var t=null;return this.createArrayCoreHandler&&(t=this.createArrayCoreHandler(this.propertyHash,e)),t||(t=new Array,this.setPropertyValueCore(this.propertyHash,e,t)),t},e.prototype.ensureArray=function(e,t,n){if(void 0===t&&(t=null),void 0===n&&(n=null),!this.arraysInfo||!this.arraysInfo[e])return this.createNewArray(e,t,n)},e.prototype.createNewArray=function(e,t,n){void 0===t&&(t=null),void 0===n&&(n=null);var r=this.createNewArrayCore(e);this.arraysInfo||(this.arraysInfo={}),this.arraysInfo[e]={onPush:t,isItemValues:!1};var o=this;return r.push=function(n){var i=Object.getPrototypeOf(r).push.call(r,n);if(!o.isDisposedValue){t&&t(n,r.length-1);var s=new m(r.length-1,0,[n],[]);o.propertyValueChanged(e,r,r,s),o.notifyArrayChanged(r,s)}return i},r.shift=function(){var t=Object.getPrototypeOf(r).shift.call(r);if(!o.isDisposedValue&&t){n&&n(t);var i=new m(r.length-1,1,[],[]);o.propertyValueChanged(e,r,r,i),o.notifyArrayChanged(r,i)}return t},r.unshift=function(n){var i=Object.getPrototypeOf(r).unshift.call(r,n);if(!o.isDisposedValue){t&&t(n,r.length-1);var s=new m(0,0,[n],[]);o.propertyValueChanged(e,r,r,s),o.notifyArrayChanged(r,s)}return i},r.pop=function(){var t=Object.getPrototypeOf(r).pop.call(r);if(!o.isDisposedValue){n&&n(t);var i=new m(r.length-1,1,[],[]);o.propertyValueChanged(e,r,r,i),o.notifyArrayChanged(r,i)}return t},r.splice=function(i,s){for(var a,l=[],u=2;u<arguments.length;u++)l[u-2]=arguments[u];i||(i=0),s||(s=0);var c=(a=Object.getPrototypeOf(r).splice).call.apply(a,function(e,t){for(var n=0,r=t.length,o=e.length;n<r;n++,o++)e[o]=t[n];return e}([r,i,s],l));if(l||(l=[]),!o.isDisposedValue){if(n&&c)for(var p=0;p<c.length;p++)n(c[p]);if(t)for(p=0;p<l.length;p++)t(l[p],i+p);var d=new m(i,s,l,c);o.propertyValueChanged(e,r,r,d),o.notifyArrayChanged(r,d)}return c},r},e.prototype.getItemValueType=function(){},e.prototype.setArray=function(t,n,r,o,i){var s=[].concat(n);if(Object.getPrototypeOf(n).splice.call(n,0,n.length),r)for(var a=0;a<r.length;a++){var l=r[a];o&&e.createItemValue&&(l=e.createItemValue(l,this.getItemValueType())),Object.getPrototypeOf(n).push.call(n,l),i&&i(n[a])}var u=new m(0,s.length,n,s);this.propertyValueChanged(t,s,n,u),this.notifyArrayChanged(n,u)},e.prototype.isTwoValueEquals=function(e,t,n,r){return void 0===n&&(n=!1),void 0===r&&(r=!1),i.Helpers.isTwoValueEquals(e,t,!1,!n,r)},e.copyObject=function(e,t){for(var n in t){var r=t[n];"object"==typeof r&&(r={},this.copyObject(r,t[n])),e[n]=r}},e.prototype.copyCssClasses=function(t,n){n&&("string"==typeof n||n instanceof String?t.root=n:e.copyObject(t,n))},e.prototype.getValueInLowCase=function(e){return e&&"string"==typeof e?e.toLowerCase():e},e.prototype.getElementsInDesign=function(e){return void 0===e&&(e=!1),[]},e.currentDependencis=void 0,e}(),m=function(e,t,n,r){this.index=e,this.deleteCount=t,this.itemsToAdd=n,this.deletedItems=r},y=function(){function e(){}return Object.defineProperty(e.prototype,"isEmpty",{get:function(){return 0===this.length},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"length",{get:function(){return this.callbacks?this.callbacks.length:0},enumerable:!1,configurable:!0}),e.prototype.fireByCreatingOptions=function(e,t){if(this.callbacks)for(var n=0;n<this.callbacks.length;n++)if(this.callbacks[n](e,t()),!this.callbacks)return},e.prototype.fire=function(e,t){if(this.callbacks)for(var n=0;n<this.callbacks.length;n++)if(this.callbacks[n](e,t),!this.callbacks)return},e.prototype.clear=function(){this.callbacks=void 0},e.prototype.add=function(e){this.hasFunc(e)||(this.callbacks||(this.callbacks=new Array),this.callbacks.push(e),this.fireCallbackChanged())},e.prototype.remove=function(e){if(this.hasFunc(e)){var t=this.callbacks.indexOf(e,0);this.callbacks.splice(t,1),this.fireCallbackChanged()}},e.prototype.hasFunc=function(e){return null!=this.callbacks&&this.callbacks.indexOf(e,0)>-1},e.prototype.fireCallbackChanged=function(){this.onCallbacksChanged&&this.onCallbacksChanged()},e}(),v=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return p(t,e),t}(y)},"./src/calculatedValue.ts":function(e,t,n){"use strict";n.r(t),n.d(t,"CalculatedValue",(function(){return u}));var r,o=n("./src/helpers.ts"),i=n("./src/base.ts"),s=n("./src/conditions.ts"),a=n("./src/jsonobject.ts"),l=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),u=function(e){function t(t,n){void 0===t&&(t=null),void 0===n&&(n=null);var r=e.call(this)||this;return r.expressionIsRunning=!1,r.isCalculated=!1,t&&(r.name=t),n&&(r.expression=n),r}return l(t,e),t.prototype.setOwner=function(e){this.data=e,this.rerunExpression()},t.prototype.getType=function(){return"calculatedvalue"},t.prototype.getSurvey=function(e){return void 0===e&&(e=!1),this.data&&this.data.getSurvey?this.data.getSurvey():null},Object.defineProperty(t.prototype,"owner",{get:function(){return this.data},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"name",{get:function(){return this.getPropertyValue("name")||""},set:function(e){this.setPropertyValue("name",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"includeIntoResult",{get:function(){return this.getPropertyValue("includeIntoResult")},set:function(e){this.setPropertyValue("includeIntoResult",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"expression",{get:function(){return this.getPropertyValue("expression")||""},set:function(e){this.setPropertyValue("expression",e),this.rerunExpression()},enumerable:!1,configurable:!0}),t.prototype.locCalculation=function(){this.expressionIsRunning=!0},t.prototype.unlocCalculation=function(){this.expressionIsRunning=!1},t.prototype.resetCalculation=function(){this.isCalculated=!1},t.prototype.doCalculation=function(e,t,n){this.isCalculated||(this.runExpressionCore(e,t,n),this.isCalculated=!0)},t.prototype.runExpression=function(e,t){this.runExpressionCore(null,e,t)},Object.defineProperty(t.prototype,"value",{get:function(){if(this.data)return this.data.getVariable(this.name)},enumerable:!1,configurable:!0}),t.prototype.setValue=function(e){this.data&&this.data.setVariable(this.name,e)},Object.defineProperty(t.prototype,"canRunExpression",{get:function(){return!(!this.data||this.isLoadingFromJson||!this.expression||this.expressionIsRunning||!this.name)},enumerable:!1,configurable:!0}),t.prototype.rerunExpression=function(){this.canRunExpression&&this.runExpression(this.data.getFilteredValues(),this.data.getFilteredProperties())},t.prototype.runExpressionCore=function(e,t,n){this.canRunExpression&&(this.ensureExpression(t),this.locCalculation(),e&&this.runDependentExpressions(e,t,n),this.expressionRunner.run(t,n))},t.prototype.runDependentExpressions=function(e,t,n){var r=this.expressionRunner.getVariables();if(r)for(var o=0;o<e.length;o++){var i=e[o];i===this||r.indexOf(i.name)<0||(i.doCalculation(e,t,n),t[i.name]=i.value)}},t.prototype.ensureExpression=function(e){var t=this;this.expressionRunner||(this.expressionRunner=new s.ExpressionRunner(this.expression),this.expressionRunner.onRunComplete=function(e){o.Helpers.isTwoValueEquals(e,t.value,!1,!0,!1)||t.setValue(e),t.unlocCalculation()})},t}(i.Base);a.Serializer.addClass("calculatedvalue",[{name:"!name",isUnique:!0},"expression:expression","includeIntoResult:boolean"],(function(){return new u}),"base")},"./src/choicesRestful.ts":function(e,t,n){"use strict";n.r(t),n.d(t,"ChoicesRestful",(function(){return p})),n.d(t,"ChoicesRestfull",(function(){return d}));var r,o=n("./src/base.ts"),i=n("./src/itemvalue.ts"),s=n("./src/jsonobject.ts"),a=n("./src/error.ts"),l=n("./src/settings.ts"),u=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),c=function(){function e(){this.parser=new DOMParser}return e.prototype.assignValue=function(e,t,n){Array.isArray(e[t])?e[t].push(n):void 0!==e[t]?e[t]=[e[t]].concat(n):"object"==typeof n&&1===Object.keys(n).length&&Object.keys(n)[0]===t?e[t]=n[t]:e[t]=n},e.prototype.xml2Json=function(e,t){if(e.children&&e.children.length>0)for(var n=0;n<e.children.length;n++){var r=e.children[n],o={};this.xml2Json(r,o),this.assignValue(t,r.nodeName,o)}else this.assignValue(t,e.nodeName,e.textContent)},e.prototype.parseXmlString=function(e){var t=this.parser.parseFromString(e,"text/xml"),n={};return this.xml2Json(t,n),n},e}(),p=function(e){function t(){var t=e.call(this)||this;return t.lastObjHash="",t.isRunningValue=!1,t.processedUrl="",t.processedPath="",t.isUsingCacheFromUrl=void 0,t.error=null,t.createItemValue=function(e){return new i.ItemValue(e)},t}return u(t,e),Object.defineProperty(t,"EncodeParameters",{get:function(){return l.settings.web.encodeUrlParams},set:function(e){l.settings.web.encodeUrlParams=e},enumerable:!1,configurable:!0}),t.clearCache=function(){t.itemsResult={},t.sendingSameRequests={}},t.addSameRequest=function(e){if(!e.isUsingCache)return!1;var n=e.objHash,r=t.sendingSameRequests[n];return r?(r.push(e),e.isRunningValue=!0,!0):(t.sendingSameRequests[e.objHash]=[],!1)},t.unregisterSameRequests=function(e,n){if(e.isUsingCache){var r=t.sendingSameRequests[e.objHash];if(delete t.sendingSameRequests[e.objHash],r)for(var o=0;o<r.length;o++)r[o].isRunningValue=!1,r[o].getResultCallback&&r[o].getResultCallback(n)}},t.getCachedItemsResult=function(e){var n=e.objHash,r=t.itemsResult[n];return!!r&&(e.getResultCallback&&e.getResultCallback(r),!0)},t.prototype.getSurvey=function(e){return void 0===e&&(e=!1),this.owner?this.owner.survey:null},t.prototype.run=function(e){if(void 0===e&&(e=null),this.url&&this.getResultCallback){if(this.processedText(e),!this.processedUrl)return this.doEmptyResultCallback({}),void(this.lastObjHash=this.objHash);this.lastObjHash!==this.objHash&&(this.lastObjHash=this.objHash,this.error=null,this.useChangedItemsResults()||t.addSameRequest(this)||this.sendRequest())}},Object.defineProperty(t.prototype,"isUsingCache",{get:function(){return!0===this.isUsingCacheFromUrl||!1!==this.isUsingCacheFromUrl&&l.settings.web.cacheLoadedChoices},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isRunning",{get:function(){return this.getIsRunning()},enumerable:!1,configurable:!0}),t.prototype.getIsRunning=function(){return this.isRunningValue},Object.defineProperty(t.prototype,"isWaitingForParameters",{get:function(){return this.url&&!this.processedUrl},enumerable:!1,configurable:!0}),t.prototype.useChangedItemsResults=function(){return t.getCachedItemsResult(this)},t.prototype.doEmptyResultCallback=function(e){var t=[];this.updateResultCallback&&(t=this.updateResultCallback(t,e)),this.getResultCallback(t)},t.prototype.processedText=function(e){var n=this.url;if(n&&(n=n.replace(t.cacheText,"").replace(t.noCacheText,"")),e){var r=e.processTextEx(n,!1,l.settings.web.encodeUrlParams),o=e.processTextEx(this.path,!1,l.settings.web.encodeUrlParams);r.hasAllValuesOnLastRun&&o.hasAllValuesOnLastRun?(this.processedUrl=r.text,this.processedPath=o.text):(this.processedUrl="",this.processedPath="")}else this.processedUrl=n,this.processedPath=this.path;this.onProcessedUrlCallback&&this.onProcessedUrlCallback(this.processedUrl,this.processedPath)},t.prototype.parseResponse=function(e){var t;if(e&&"function"==typeof e.indexOf&&0===e.indexOf("<"))t=(new c).parseXmlString(e);else try{t=JSON.parse(e)}catch(n){t=(e||"").split("\n").map((function(e){return e.trim(" ")})).filter((function(e){return!!e}))}return t},t.prototype.sendRequest=function(){var e=new XMLHttpRequest;e.open("GET",this.processedUrl),e.setRequestHeader("Content-Type","application/x-www-form-urlencoded");var n=this,r=this.objHash;e.onload=function(){n.beforeLoadRequest(),200===e.status?n.onLoad(n.parseResponse(e.response),r):n.onError(e.statusText,e.responseText)};var o={request:e};t.onBeforeSendRequest&&t.onBeforeSendRequest(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||this.valueName||this.titleName||this.imageLinkName)},enumerable:!1,configurable:!0}),t.prototype.getCustomPropertiesNames=function(){for(var e=this.getCustomProperties(),t=new Array,n=0;n<e.length;n++)t.push(this.getCustomPropertyName(e[n].name));return t},t.prototype.getCustomPropertyName=function(e){return e+"Name"},t.prototype.getCustomProperties=function(){for(var e=s.Serializer.getProperties(this.itemValueType),t=[],n=0;n<e.length;n++)"value"!==e[n].name&&"text"!==e[n].name&&"visibleIf"!==e[n].name&&"enableIf"!==e[n].name&&t.push(e[n]);return t},t.prototype.setData=function(e){this.clear(),e.url&&(this.url=e.url),e.path&&(this.path=e.path),e.valueName&&(this.valueName=e.valueName),e.titleName&&(this.titleName=e.titleName),e.imageLinkName&&(this.imageLinkName=e.imageLinkName),void 0!==e.allowEmptyResponse&&(this.allowEmptyResponse=e.allowEmptyResponse),void 0!==e.attachOriginalItems&&(this.attachOriginalItems=e.attachOriginalItems);for(var t=this.getCustomPropertiesNames(),n=0;n<t.length;n++)e[t[n]]&&(this[t[n]]=e[t[n]])},t.prototype.getData=function(){if(this.isEmpty)return null;var e={};this.url&&(e.url=this.url),this.path&&(e.path=this.path),this.valueName&&(e.valueName=this.valueName),this.titleName&&(e.titleName=this.titleName),this.imageLinkName&&(e.imageLinkName=this.imageLinkName),this.allowEmptyResponse&&(e.allowEmptyResponse=this.allowEmptyResponse),this.attachOriginalItems&&(e.attachOriginalItems=this.attachOriginalItems);for(var t=this.getCustomPropertiesNames(),n=0;n<t.length;n++)this[t[n]]&&(e[t[n]]=this[t[n]]);return e},Object.defineProperty(t.prototype,"url",{get:function(){return this.getPropertyValue("url","")},set:function(e){this.setPropertyValue("url",e),this.isUsingCacheFromUrl=void 0,e&&(e.indexOf(t.cacheText)>-1?this.isUsingCacheFromUrl=!0:e.indexOf(t.noCacheText)>-1&&(this.isUsingCacheFromUrl=!1))},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"path",{get:function(){return this.getPropertyValue("path","")},set:function(e){this.setPropertyValue("path",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"valueName",{get:function(){return this.getPropertyValue("valueName","")},set:function(e){this.setPropertyValue("valueName",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"titleName",{get:function(){return this.getPropertyValue("titleName","")},set:function(e){this.setPropertyValue("titleName",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"imageLinkName",{get:function(){return this.getPropertyValue("imageLinkName","")},set:function(e){this.setPropertyValue("imageLinkName",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"allowEmptyResponse",{get:function(){return this.getPropertyValue("allowEmptyResponse")},set:function(e){this.setPropertyValue("allowEmptyResponse",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"attachOriginalItems",{get:function(){return this.getPropertyValue("attachOriginalItems")},set:function(e){this.setPropertyValue("attachOriginalItems",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"itemValueType",{get:function(){if(!this.owner)return"itemvalue";var e=s.Serializer.findProperty(this.owner.getType(),"choices");return e?"itemvalue[]"==e.type?"itemvalue":e.type:"itemvalue"},enumerable:!1,configurable:!0}),t.prototype.clear=function(){this.url="",this.path="",this.valueName="",this.titleName="",this.imageLinkName="";for(var e=this.getCustomPropertiesNames(),t=0;t<e.length;t++)this[e[t]]&&(this[e[t]]="")},t.prototype.beforeSendRequest=function(){this.isRunningValue=!0,this.beforeSendRequestCallback&&this.beforeSendRequestCallback()},t.prototype.beforeLoadRequest=function(){this.isRunningValue=!1},t.prototype.onLoad=function(e,n){void 0===n&&(n=null),n||(n=this.objHash);var r=new Array,o=this.getResultAfterPath(e);if(o&&o.length)for(var i=0;i<o.length;i++){var s=o[i];if(s){var l=this.getItemValueCallback?this.getItemValueCallback(s):this.getValue(s),u=this.createItemValue(l);this.setTitle(u,s),this.setCustomProperties(u,s),this.attachOriginalItems&&(u.originalItem=s);var c=this.getImageLink(s);c&&(u.imageLink=c),r.push(u)}}else this.allowEmptyResponse||(this.error=new a.WebRequestEmptyError(null,this.owner));this.updateResultCallback&&(r=this.updateResultCallback(r,e)),this.isUsingCache&&(t.itemsResult[n]=r),this.callResultCallback(r,n),t.unregisterSameRequests(this,r)},t.prototype.callResultCallback=function(e,t){t==this.objHash&&this.getResultCallback(e)},t.prototype.setCustomProperties=function(e,t){for(var n=this.getCustomProperties(),r=0;r<n.length;r++){var o=n[r],i=this.getValueCore(t,this.getPropertyBinding(o.name));this.isValueEmpty(i)||(e[o.name]=i)}},t.prototype.getPropertyBinding=function(e){return this[this.getCustomPropertyName(e)]?this[this.getCustomPropertyName(e)]:this[e]?this[e]:e},t.prototype.onError=function(e,n){this.error=new a.WebRequestError(e,n,this.owner),this.doEmptyResultCallback(n),t.unregisterSameRequests(this,[])},t.prototype.getResultAfterPath=function(e){if(!e)return e;if(!this.processedPath)return e;for(var t=this.getPathes(),n=0;n<t.length;n++)if(!(e=e[t[n]]))return null;return e},t.prototype.getPathes=function(){var e=[];return 0==(e=this.processedPath.indexOf(";")>-1?this.path.split(";"):this.processedPath.split(",")).length&&e.push(this.processedPath),e},t.prototype.getValue=function(e){return e?this.valueName?this.getValueCore(e,this.valueName):e instanceof Object?Object.keys(e).length<1?null:e[Object.keys(e)[0]]:e:null},t.prototype.setTitle=function(e,t){var n=this.titleName?this.titleName:"title",r=this.getValueCore(t,n);r&&("string"==typeof r?e.text=r:e.locText.setJson(r))},t.prototype.getImageLink=function(e){var t=this.imageLinkName?this.imageLinkName:"imageLink";return this.getValueCore(e,t)},t.prototype.getValueCore=function(e,t){if(!e)return null;if(t.indexOf(".")<0)return e[t];for(var n=t.split("."),r=0;r<n.length;r++)if(!(e=e[n[r]]))return null;return e},Object.defineProperty(t.prototype,"objHash",{get:function(){return this.processedUrl+";"+this.processedPath+";"+this.valueName+";"+this.titleName+";"+this.imageLinkName},enumerable:!1,configurable:!0}),t.cacheText="{CACHE}",t.noCacheText="{NOCACHE}",t.itemsResult={},t.sendingSameRequests={},t}(o.Base),d=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return u(t,e),Object.defineProperty(t,"EncodeParameters",{get:function(){return p.EncodeParameters},set:function(e){p.EncodeParameters=e},enumerable:!1,configurable:!0}),t.clearCache=function(){p.clearCache()},Object.defineProperty(t,"onBeforeSendRequest",{get:function(){return p.onBeforeSendRequest},set:function(e){p.onBeforeSendRequest=e},enumerable:!1,configurable:!0}),t}(p);s.Serializer.addClass("choicesByUrl",["url","path","valueName","titleName",{name:"imageLinkName",visibleIf:function(e){return!!e&&!!e.owner&&"imagepicker"==e.owner.getType()}},{name:"allowEmptyResponse:boolean"},{name:"attachOriginalItems:boolean",visible:!1}],(function(){return new p}))},"./src/conditionProcessValue.ts":function(e,t,n){"use strict";n.r(t),n.d(t,"ProcessValue",(function(){return i}));var r=n("./src/helpers.ts"),o="@survey",i=function(){function e(){this.values=null,this.properties=null}return e.prototype.getFirstName=function(e,t){if(void 0===t&&(t=null),!e)return e;var n="";if(t&&(n=this.getFirstPropertyName(e,t)))return n;for(var r=0;r<e.length;r++){var o=e[r];if("."==o||"["==o)break;n+=o}return n},e.prototype.hasValue=function(e,t){return void 0===t&&(t=null),t||(t=this.values),this.getValueCore(e,t).hasValue},e.prototype.getValue=function(e,t){return void 0===t&&(t=null),t||(t=this.values),this.getValueCore(e,t).value},e.prototype.setValue=function(e,t,n){if(t){var r=this.getNonNestedObject(e,t,!0);r&&(e=r.value,t=r.text,e&&t&&(e[t]=n))}},e.prototype.getValueInfo=function(e){if(e.path)return e.value=this.getValueFromPath(e.path,this.values),e.hasValue=null!==e.value&&!r.Helpers.isValueEmpty(e.value),void(!e.hasValue&&e.path.length>1&&"length"==e.path[e.path.length-1]&&(e.hasValue=!0,e.value=0));var t=this.getValueCore(e.name,this.values);e.value=t.value,e.hasValue=t.hasValue,e.path=t.hasValue?t.path:null,e.sctrictCompare=t.sctrictCompare},e.prototype.getValueFromPath=function(e,t){if(2===e.length&&e[0]===o)return this.getValueFromSurvey(e[1]);for(var n=0;t&&n<e.length;){var i=e[n];if(r.Helpers.isNumber(i)&&Array.isArray(t)&&i>=t.length)return null;t=t[i],n++}return t},e.prototype.getValueCore=function(e,t){var n=this.getQuestionDirectly(e);if(n)return{hasValue:!0,value:n.value,path:[e],sctrictCompare:n.requireStrictCompare};var r=this.getValueFromValues(e,t);if(e&&!r.hasValue){var i=this.getValueFromSurvey(e);void 0!==i&&(r.hasValue=!0,r.value=i,r.path=[o,e])}return r},e.prototype.getQuestionDirectly=function(e){if(this.properties&&this.properties.survey)return this.properties.survey.getQuestionByValueName(e)},e.prototype.getValueFromSurvey=function(e){if(this.properties&&this.properties.survey)return this.properties.survey.getBuiltInVariableValue(e.toLocaleLowerCase())},e.prototype.getValueFromValues=function(e,t){var n={hasValue:!1,value:null,path:null},o=t;if(!o&&0!==o&&!1!==o)return n;e&&e.lastIndexOf(".length")>-1&&e.lastIndexOf(".length")===e.length-7&&(n.value=0,n.hasValue=!0);var i=this.getNonNestedObject(o,e,!1);return i?(n.path=i.path,n.value=i.text?this.getObjectValue(i.value,i.text):i.value,n.hasValue=!r.Helpers.isValueEmpty(n.value),n):n},e.prototype.getNonNestedObject=function(e,t,n){for(var o=this.getFirstPropertyName(t,e,n),i=o?[o]:null;t!=o&&e;){if("["==t[0]){var s=this.getObjInArray(e,t);if(!s)return null;e=s.value,t=s.text,i.push(s.index)}else{if(!o&&t==this.getFirstName(t))return{value:e,text:t,path:i};if(e=this.getObjectValue(e,o),r.Helpers.isValueEmpty(e)&&!n)return null;t=t.substring(o.length)}t&&"."==t[0]&&(t=t.substring(1)),(o=this.getFirstPropertyName(t,e,n))&&i.push(o)}return{value:e,text:t,path:i}},e.prototype.getObjInArray=function(e,t){if(!Array.isArray(e))return null;for(var n=1,r="";n<t.length&&"]"!=t[n];)r+=t[n],n++;return t=n<t.length?t.substring(n+1):"",(n=this.getIntValue(r))<0||n>=e.length?null:{value:e[n],text:t,index:n}},e.prototype.getFirstPropertyName=function(e,t,n){if(void 0===n&&(n=!1),!e)return e;if(t||(t={}),t.hasOwnProperty(e))return e;var r=e.toLowerCase(),o=r[0],i=o.toUpperCase();for(var s in t){var a=s[0];if(a===i||a===o){var l=s.toLowerCase();if(l==r)return s;if(r.length<=l.length)continue;var u=r[l.length];if("."!=u&&"["!=u)continue;if(l==r.substring(0,l.length))return s}}if(n&&"["!==e[0]){var c=e.indexOf(".");return c>-1&&(t[e=e.substring(0,c)]={}),e}return""},e.prototype.getObjectValue=function(e,t){return t?e[t]:null},e.prototype.getIntValue=function(e){return"0"==e||(0|e)>0&&e%1==0?Number(e):-1},e}()},"./src/conditions.ts":function(e,t,n){"use strict";n.r(t),n.d(t,"ExpressionExecutor",(function(){return a})),n.d(t,"ExpressionRunnerBase",(function(){return l})),n.d(t,"ConditionRunner",(function(){return u})),n.d(t,"ExpressionRunner",(function(){return c}));var r,o=n("./src/conditionProcessValue.ts"),i=n("./src/conditionsParser.ts"),s=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),a=function(){function e(e){this.processValue=new o.ProcessValue,this.parser=new i.ConditionsParser,this.isAsyncValue=!1,this.hasFunctionValue=!1,this.setExpression(e)}return Object.defineProperty(e.prototype,"expression",{get:function(){return this.expressionValue},enumerable:!1,configurable:!0}),e.prototype.setExpression=function(e){this.expression!==e&&(this.expressionValue=e,this.operand=this.parser.parseExpression(e),this.hasFunctionValue=!!this.canRun()&&this.operand.hasFunction(),this.isAsyncValue=!!this.hasFunction()&&this.operand.hasAsyncFunction())},e.prototype.getVariables=function(){if(!this.operand)return[];var e=[];return this.operand.setVariables(e),e},e.prototype.hasFunction=function(){return this.hasFunctionValue},Object.defineProperty(e.prototype,"isAsync",{get:function(){return this.isAsyncValue},enumerable:!1,configurable:!0}),e.prototype.canRun=function(){return!!this.operand},e.prototype.run=function(e,t){var n=this;if(void 0===t&&(t=null),!this.operand)return null;if(this.processValue.values=e,this.processValue.properties=t,!this.isAsync)return this.runValues();this.asyncFuncList=[],this.operand.addToAsyncList(this.asyncFuncList);for(var r=0;r<this.asyncFuncList.length;r++)this.asyncFuncList[r].onAsyncReady=function(){n.doAsyncFunctionReady()};for(r=0;r<this.asyncFuncList.length;r++)this.asyncFuncList[r].evaluateAsync(this.processValue);return!1},e.prototype.doAsyncFunctionReady=function(){for(var e=0;e<this.asyncFuncList.length;e++)if(!this.asyncFuncList[e].isReady)return;this.runValues()},e.prototype.runValues=function(){var e=this.operand.evaluate(this.processValue);return this.onComplete&&this.onComplete(e),e},e.createExpressionExecutor=function(t){return new e(t)},e}(),l=function(){function e(e){this.expression=e}return Object.defineProperty(e.prototype,"expression",{get:function(){return this.expressionExecutor?this.expressionExecutor.expression:""},set:function(e){var t=this;this.expressionExecutor&&e===this.expression||(this.expressionExecutor=a.createExpressionExecutor(e),this.expressionExecutor.onComplete=function(e){t.doOnComplete(e)})},enumerable:!1,configurable:!0}),e.prototype.getVariables=function(){return this.expressionExecutor.getVariables()},e.prototype.hasFunction=function(){return this.expressionExecutor.hasFunction()},Object.defineProperty(e.prototype,"isAsync",{get:function(){return this.expressionExecutor.isAsync},enumerable:!1,configurable:!0}),e.prototype.canRun=function(){return this.expressionExecutor.canRun()},e.prototype.runCore=function(e,t){return void 0===t&&(t=null),this.expressionExecutor.run(e,t)},e.prototype.doOnComplete=function(e){},e}(),u=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return s(t,e),t.prototype.run=function(e,t){return void 0===t&&(t=null),1==this.runCore(e,t)},t.prototype.doOnComplete=function(e){this.onRunComplete&&this.onRunComplete(1==e)},t}(l),c=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return s(t,e),t.prototype.run=function(e,t){return void 0===t&&(t=null),this.runCore(e,t)},t.prototype.doOnComplete=function(e){this.onRunComplete&&this.onRunComplete(e)},t}(l)},"./src/conditionsParser.ts":function(e,t,n){"use strict";n.r(t),n.d(t,"ConditionsParserError",(function(){return o})),n.d(t,"ConditionsParser",(function(){return i}));var r=n("./src/expressions/expressionParser.ts"),o=function(e,t){this.at=e,this.code=t},i=function(){function e(){}return e.prototype.patchExpression=function(e){return e.replace(/=>/g,">=").replace(/=</g,"<=").replace(/<>/g,"!=").replace(/equals/g,"equal ").replace(/notequals/g,"notequal ")},e.prototype.createCondition=function(e){return this.parseExpression(e)},e.prototype.parseExpression=function(t){try{var n=e.parserCache[t];return void 0===n&&((n=Object(r.parse)(this.patchExpression(t))).hasAsyncFunction()||(e.parserCache[t]=n)),n}catch(e){e instanceof r.SyntaxError&&(this.conditionError=new o(e.location.start.offset,e.message))}},Object.defineProperty(e.prototype,"error",{get:function(){return this.conditionError},enumerable:!1,configurable:!0}),e.parserCache={},e}()},"./src/console-warnings.ts":function(e,t,n){"use strict";n.r(t),n.d(t,"ConsoleWarnings",(function(){return r}));var r=function(){function e(){}return e.disposedObjectChangedProperty=function(t,n){e.warn('An attempt to set a property "'+t+'" of a disposed object "'+n+'"')},e.inCorrectQuestionValue=function(t,n){var r=JSON.stringify(n,null,3);e.warn("An attempt to assign an incorrect value"+r+' to the following question: "'+t+'"')},e.warn=function(e){console.warn(e)},e}()},"./src/defaultCss/cssmodern.ts":function(e,t,n){"use strict";n.r(t),n.d(t,"modernCss",(function(){return o}));var r=n("./src/defaultCss/defaultV2Css.ts"),o={root:"sv-root-modern",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-components-column sv-components-column--expandable sv-body",bodyEmpty:"sv-body sv-body--empty",footer:"sv-footer sv-body__footer sv-clearfix",title:"",description:"",logo:"sv-logo",logoImage:"sv-logo__image",headerText:"sv-header__text",navigationButton:"sv-btn sv-btn--navigation",completedPage:"sv-completedpage",navigation:{complete:"sv-footer__complete-btn",prev:"sv-footer__prev-btn",next:"sv-footer__next-btn",start:"sv-footer__start-btn",preview:"sv-footer__preview-btn",edit:"sv-footer__edit-btn"},panel:{title:"sv-title sv-panel__title",titleExpandable:"sv-panel__title--expandable",titleExpanded:"sv-panel__title--expanded",titleCollapsed:"sv-panel__title--collapsed",titleOnError:"sv-panel__title--error",description:"sv-description sv-panel__description",container:"sv-panel sv-row__panel",content:"sv-panel__content",icon:"sv-panel__icon",iconExpanded:"sv-panel__icon--expanded",footer:"sv-panel__footer",requiredText:"sv-panel__required-text",number:"sv-question__num"},paneldynamic:{root:"sv-paneldynamic",navigation:"sv-paneldynamic__navigation",title:"sv-title sv-question__title",button:"sv-btn",buttonRemove:"sv-paneldynamic__remove-btn",buttonRemoveRight:"sv-paneldynamic__remove-btn--right",buttonAdd:"sv-paneldynamic__add-btn",progressTop:"sv-paneldynamic__progress sv-paneldynamic__progress--top",progressBottom:"sv-paneldynamic__progress sv-paneldynamic__progress--bottom",buttonPrev:"sv-paneldynamic__prev-btn",buttonNext:"sv-paneldynamic__next-btn",buttonPrevDisabled:"sv-paneldynamic__prev-btn--disabled",buttonNextDisabled:"sv-paneldynamic__next-btn--disabled",progressContainer:"sv-paneldynamic__progress-container",progress:"sv-progress",progressBar:"sv-progress__bar",progressText:"sv-paneldynamic__progress-text",separator:"sv-paneldynamic__separator",panelWrapper:"sv-paneldynamic__panel-wrapper",panelWrapperInRow:"sv-paneldynamic__panel-wrapper--in-row",progressBtnIcon:"icon-progressbutton",footer:""},progress:"sv-progress sv-body__progress",progressBar:"sv-progress__bar",progressText:"sv-progress__text",progressTextInBar:"sv-hidden",progressButtonsContainerCenter:"sv_progress-buttons__container-center",progressButtonsContainer:"sv_progress-buttons__container",progressButtonsImageButtonLeft:"sv_progress-buttons__image-button-left",progressButtonsImageButtonRight:"sv_progress-buttons__image-button-right",progressButtonsImageButtonHidden:"sv_progress-buttons__image-button--hidden",progressButtonsListContainer:"sv_progress-buttons__list-container",progressButtonsList:"sv_progress-buttons__list",progressButtonsListElementPassed:"sv_progress-buttons__list-element--passed",progressButtonsListElementCurrent:"sv_progress-buttons__list-element--current",progressButtonsListElementNonClickable:"sv_progress-buttons__list-element--nonclickable",progressButtonsPageTitle:"sv_progress-buttons__page-title",progressButtonsPageDescription:"sv_progress-buttons__page-description",page:{root:"sv-page sv-body__page",title:"sv-title sv-page__title",description:"sv-description sv-page__description"},pageTitle:"sv-title sv-page__title",pageDescription:"sv-description sv-page__description",row:"sv-row sv-clearfix",question:{mainRoot:"sv-question sv-row__question",flowRoot:"sv-question sv-row__question sv-row__question--flow",asCell:"sv-table__cell",header:"sv-question__header",headerLeft:"sv-question__header--location--left",headerTop:"sv-question__header--location--top",headerBottom:"sv-question__header--location--bottom",content:"sv-question__content",contentLeft:"sv-question__content--left",titleLeftRoot:"",answered:"sv-question--answered",titleOnAnswer:"sv-question__title--answer",titleOnError:"sv-question__title--error",title:"sv-title sv-question__title",titleExpandable:"sv-question__title--expandable",titleExpanded:"sv-question__title--expanded",titleCollapsed:"sv-question__title--collapsed",icon:"sv-question__icon",iconExpanded:"sv-question__icon--expanded",requiredText:"sv-question__required-text",number:"sv-question__num",description:"sv-description sv-question__description",descriptionUnderInput:"sv-description sv-question__description",comment:"sv-comment",required:"sv-question--required",titleRequired:"sv-question__title--required",indent:20,footer:"sv-question__footer",formGroup:"sv-question__form-group",hasError:"",disabled:"sv-question--disabled"},image:{root:"sv-image",image:"sv_image_image"},error:{root:"sv-question__erbox",icon:"",item:"",locationTop:"sv-question__erbox--location--top",locationBottom:"sv-question__erbox--location--bottom"},checkbox:{root:"sv-selectbase",item:"sv-item sv-checkbox sv-selectbase__item",itemSelectAll:"sv-checkbox--selectall",itemNone:"sv-checkbox--none",itemDisabled:"sv-item--disabled sv-checkbox--disabled",itemChecked:"sv-checkbox--checked",itemHover:"sv-checkbox--allowhover",itemInline:"sv-selectbase__item--inline",label:"sv-selectbase__label",labelChecked:"",itemControl:"sv-visuallyhidden sv-item__control",itemDecorator:"sv-item__svg sv-checkbox__svg",itemSvgIconId:"#icon-moderncheck",controlLabel:"sv-item__control-label",materialDecorator:"sv-item__decorator sv-selectbase__decorator sv-checkbox__decorator",other:"sv-comment sv-question__other",column:"sv-selectbase__column"},ranking:{root:"sv-ranking",rootMobileMod:"sv-ranking--mobile",rootDragMod:"sv-ranking--drag",rootDisabled:"sv-ranking--disabled",rootDragHandleAreaIcon:"sv-ranking--drag-handle-area-icon",rootSelectToRankMod:"sv-ranking--select-to-rank",rootSelectToRankAlignVertical:"sv-ranking--select-to-rank-vertical",rootSelectToRankAlignHorizontal:"sv-ranking--select-to-rank-horizontal",item:"sv-ranking-item",itemContent:"sv-ranking-item__content",itemIndex:"sv-ranking-item__index",itemIndexEmptyMode:"sv-ranking-item__index--empty",controlLabel:"sv-ranking-item__text",itemGhostNode:"sv-ranking-item__ghost",itemIconContainer:"sv-ranking-item__icon-container",itemIcon:"sv-ranking-item__icon",itemIconHoverMod:"sv-ranking-item__icon--hover",itemIconFocusMod:"sv-ranking-item__icon--focus",itemGhostMod:"sv-ranking-item--ghost",itemDragMod:"sv-ranking-item--drag",container:"sv-ranking__container",containerEmptyMode:"sv-ranking__container--empty",containerFromMode:"sv-ranking__container--from",containerToMode:"sv-ranking__container--to",containerPlaceholder:"sv-ranking__container-placeholder",containersDivider:"sv-ranking__containers-divider"},radiogroup:{root:"sv-selectbase",item:"sv-item sv-radio sv-selectbase__item",itemInline:"sv-selectbase__item--inline",label:"sv-selectbase__label",labelChecked:"",itemDisabled:"sv-item--disabled sv-radio--disabled",itemChecked:"sv-radio--checked",itemHover:"sv-radio--allowhover",itemControl:"sv-visuallyhidden sv-item__control",itemDecorator:"sv-item__svg sv-radio__svg",itemSvgIconId:"#icon-modernradio",controlLabel:"sv-item__control-label",materialDecorator:"sv-item__decorator sv-selectbase__decorator sv-radio__decorator",other:"sv-comment sv-question__other",clearButton:"sv-btn sv-selectbase__clear-btn",column:"sv-selectbase__column"},buttongroup:{root:"sv-button-group",item:"sv-button-group__item",itemIcon:"sv-button-group__item-icon",itemDecorator:"sv-button-group__item-decorator",itemCaption:"sv-button-group__item-caption",itemSelected:"sv-button-group__item--selected",itemHover:"sv-button-group__item--hover",itemDisabled:"sv-button-group__item--disabled",itemControl:"sv-visuallyhidden"},boolean:{root:"sv_qbln",rootRadio:"sv_qbln",small:"sv-row__question--small",item:"sv-boolean sv-item",control:"sv-visuallyhidden",itemChecked:"sv-boolean--checked",itemIndeterminate:"sv-boolean--indeterminate",itemDisabled:"sv-item--disabled sv-boolean--disabled",switch:"sv-boolean__switch",slider:"sv-boolean__slider",label:"sv-boolean__label",disabledLabel:"sv-boolean__label--disabled",sliderGhost:"sv-boolean__thumb-ghost",rootCheckbox:"sv_qbln",checkboxItem:"sv-boolean sv-item",checkboxItemChecked:"sv-boolean--checked",controlCheckbox:"sv-visuallyhidden",checkboxControlLabel:"sv-boolean__label",checkboxItemIndeterminate:"sv-boolean--indeterminate",checkboxItemDisabled:"sv-item--disabled sv-boolean--disabled",checkboxMaterialDecorator:"sv-item__decorator sv-boolean__decorator ",checkboxItemDecorator:"sv-item__svg  sv-boolean__svg",indeterminatePath:"sv-boolean__indeterminate-path",svgIconCheckedId:"#icon-modernbooleancheckchecked",svgIconUncheckedId:"#icon-modernbooleancheckunchecked",svgIconIndId:"#icon-modernbooleancheckind"},text:{root:"sv-text",small:"sv-row__question--small",remainingCharacterCounter:"sv-remaining-character-counter",onError:"sv-text--error"},multipletext:{root:"sv-multipletext",item:"sv-multipletext__item",itemLabel:"sv-multipletext__item-label",itemTitle:"sv-multipletext__item-title",row:"sv-multipletext__row",cell:"sv-multipletext__cell"},dropdown:{root:"",popup:"sv-dropdown-popup",small:"sv-row__question--small",control:"sv-dropdown",selectWrapper:"",other:"sv-comment sv-question__other",onError:"sv-dropdown--error",cleanButton:"sv-dropdown_clean-button",cleanButtonSvg:"sv-dropdown_clean-button-svg",cleanButtonIconId:"icon-clear_16x16",filterStringInput:"sv-dropdown__filter-string-input",controlValue:"sv-dropdown__value",controlInputFieldComponent:"sv_dropdown_control__input-field-component",hintPrefix:"sv-dropdown__hint-prefix",hintSuffix:"sv-dropdown__hint-suffix"},tagbox:{root:"",popup:"sv-dropdown-popup",small:"sv-row__question--small",selectWrapper:"sv_select_wrapper sv-tagbox_wrapper",other:"sv-input sv-comment sv-selectbase__other",cleanButton:"sv-tagbox_clean-button sv-dropdown_clean-button",cleanButtonSvg:"sv-tagbox_clean-button-svg sv-dropdown_clean-button-svg",cleanButtonIconId:"icon-clear_16x16",cleanItemButton:"sv-tagbox__item_clean-button",cleanItemButtonSvg:"sv-tagbox__item_clean-button-svg",cleanItemButtonIconId:"icon-clear_16x16",control:"sv-input sv-tagbox sv-dropdown",controlValue:"sv-tagbox__value sv-dropdown__value",controlEmpty:"sv-dropdown--empty sv-tagbox--empty",placeholderInput:"sv-tagbox__placeholder",filterStringInput:"sv-tagbox__filter-string-input sv-dropdown__filter-string-input"},imagepicker:{root:"sv-selectbase sv-imagepicker",column:"sv-selectbase__column",item:"sv-imagepicker__item",itemInline:"sv-imagepicker__item--inline",itemChecked:"sv-imagepicker__item--checked",itemDisabled:"sv-imagepicker__item--disabled",itemHover:"sv-imagepicker__item--allowhover",label:"sv-imagepicker__label",itemControl:"sv-imagepicker__control sv-visuallyhidden",image:"sv-imagepicker__image",itemText:"sv-imagepicker__text",clearButton:"sv-btn",other:"sv-comment sv-question__other"},matrix:{tableWrapper:"sv-matrix",root:"sv-table sv-matrix-root",rowError:"sv-matrix__row--error",cell:"sv-table__cell sv-matrix__cell",headerCell:"sv-table__cell sv-table__cell--header",label:"sv-item sv-radio sv-matrix__label",itemValue:"sv-visuallyhidden sv-item__control sv-radio__control",itemChecked:"sv-radio--checked",itemDisabled:"sv-item--disabled sv-radio--disabled",itemHover:"sv-radio--allowhover",materialDecorator:"sv-item__decorator sv-radio__decorator",itemDecorator:"sv-item__svg sv-radio__svg",cellText:"sv-matrix__text",cellTextSelected:"sv-matrix__text--checked",cellTextDisabled:"sv-matrix__text--disabled",cellResponsiveTitle:"sv-hidden",itemSvgIconId:"#icon-modernradio"},matrixdropdown:{root:"sv-table sv-matrixdropdown",cell:"sv-table__cell",headerCell:"sv-table__cell sv-table__cell--header",row:"sv-table__row",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",headerCell:"sv-table__cell sv-table__cell--header",button:"sv-btn",buttonAdd:"sv-matrixdynamic__add-btn",buttonRemove:"sv-matrixdynamic__remove-btn",iconAdd:"",iconRemove:"",iconDrag:"sv-matrixdynamic__drag-icon",row:"sv-table__row",detailRow:"sv-table__row--detail",detailCell:"sv-table__cell--detail",choiceCell:"sv-table__cell--choice",detailButton:"sv-table__cell--detail-button",detailButtonExpanded:"sv-table__cell--detail-button--expanded",detailIcon:"sv-detail-panel__icon",detailIconExpanded:"sv-detail-panel__icon--expanded",detailPanelCell:"sv-table__cell--detail-panel",actionsCell:"sv-table__cell sv-table__cell--actions",emptyRowsSection:"sv-table__empty--rows--section",emptyRowsText:"sv-table__empty--rows--text",emptyRowsButton:"",ghostRow:"sv-matrix-row--drag-drop-ghost-mod"},rating:{root:"sv-rating",item:"sv-rating__item",selected:"sv-rating__item--selected",minText:"sv-rating__min-text",itemText:"sv-rating__item-text",maxText:"sv-rating__max-text",itemDisabled:"sv-rating--disabled",filterStringInput:"sv-dropdown__filter-string-input",control:"sv-dropdown",cleanButton:"sv-dropdown_clean-button",cleanButtonSvg:"sv-dropdown_clean-button-svg",cleanButtonIconId:"icon-clear_16x16",controlValue:"sv-dropdown__value",controlInputFieldComponent:"sv_dropdown_control__input-field-component",itemSmiley:"sv-rating__item-smiley",itemStar:"sv-rating__item-star",itemSmileySelected:"sv-rating__item-smiley--selected",itemStarSelected:"sv-rating__item-star--selected"},comment:{root:"sv-comment",small:"sv-row__question--small",remainingCharacterCounter:"sv-remaining-character-counter"},expression:"",file:{root:"sv-file",other:"sv-comment sv-question__other",placeholderInput:"sv-visuallyhidden",preview:"sv-file__preview",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",clearButton:"sjs_sp_clear"},saveData:{root:"sv-save-data_root",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",body:"sv_window_content",header:{root:"sv_window_title",title:"",button:"",buttonExpanded:"",buttonCollapsed:""}},variables:{mobileWidth:"--sv-mobile-width",themeMark:"--sv-modern-mark"}};r.surveyCss.modern=o},"./src/defaultCss/cssstandard.ts":function(e,t,n){"use strict";n.r(t),n.d(t,"defaultStandardCss",(function(){return o}));var r=n("./src/defaultCss/defaultV2Css.ts"),o={root:"sv_main sv_default_css",container:"sv_container",header:"sv_header",bodyContainer:"sv-components-row",body:"sv-components-column sv-components-column--expandable sv_body",bodyEmpty:"sv_body sv_body_empty",footer:"sv_nav",title:"",description:"",logo:"sv_logo",logoImage:"sv_logo__image",headerText:"sv_header__text",navigationButton:"sv_nav_btn",completedPage:"sv_completed_page",navigation:{complete:"sv_complete_btn",prev:"sv_prev_btn",next:"sv_next_btn",start:"sv_start_btn",preview:"sv_preview_btn",edit:"sv_edit_btn"},progress:"sv_progress",progressBar:"sv_progress_bar",progressTextInBar:"sv-hidden",progressButtonsContainerCenter:"sv_progress-buttons__container-center",progressButtonsContainer:"sv_progress-buttons__container",progressButtonsImageButtonLeft:"sv_progress-buttons__image-button-left",progressButtonsImageButtonRight:"sv_progress-buttons__image-button-right",progressButtonsImageButtonHidden:"sv_progress-buttons__image-button--hidden",progressButtonsListContainer:"sv_progress-buttons__list-container",progressButtonsList:"sv_progress-buttons__list",progressButtonsListElementPassed:"sv_progress-buttons__list-element--passed",progressButtonsListElementCurrent:"sv_progress-buttons__list-element--current",progressButtonsListElementNonClickable:"sv_progress-buttons__list-element--nonclickable",progressButtonsPageTitle:"sv_progress-buttons__page-title",progressButtonsPageDescription:"sv_progress-buttons__page-description",page:{root:"sv_p_root",title:"sv_page_title",description:""},pageTitle:"sv_page_title",pageDescription:"",row:"sv_row",question:{mainRoot:"sv_q sv_qstn",flowRoot:"sv_q_flow sv_qstn",header:"",headerLeft:"title-left",content:"",contentLeft:"content-left",titleLeftRoot:"sv_qstn_left",requiredText:"sv_q_required_text",title:"sv_q_title",titleExpandable:"sv_q_title_expandable",titleExpanded:"sv_q_title_expanded",titleCollapsed:"sv_q_title_collapsed",number:"sv_q_num",description:"sv_q_description",comment:"",required:"",titleRequired:"",hasError:"",indent:20,footer:"sv_q_footer",formGroup:"form-group",asCell:"sv_matrix_cell",icon:"sv_question_icon",iconExpanded:"sv_expanded",disabled:"sv_q--disabled"},panel:{title:"sv_p_title",titleExpandable:"sv_p_title_expandable",titleExpanded:"sv_p_title_expanded",titleCollapsed:"sv_p_title_collapsed",titleOnError:"",icon:"sv_panel_icon",iconExpanded:"sv_expanded",description:"sv_p_description",container:"sv_p_container",footer:"sv_p_footer",number:"sv_q_num",requiredText:"sv_q_required_text"},error:{root:"sv_q_erbox",icon:"",item:"",locationTop:"sv_qstn_error_top",locationBottom:"sv_qstn_error_bottom"},boolean:{root:"sv_qcbc sv_qbln",rootRadio:"sv_qcbc sv_qbln",item:"sv-boolean",control:"sv-visuallyhidden",itemChecked:"sv-boolean--checked checked",itemIndeterminate:"sv-boolean--indeterminate",itemDisabled:"sv-boolean--disabled",switch:"sv-boolean__switch",slider:"sv-boolean__slider",label:"sv-boolean__label ",disabledLabel:"sv-boolean__label--disabled",sliderGhost:"sv-boolean__thumb-ghost",rootCheckbox:"sv_qcbc sv_qbln",checkboxItem:"sv-boolean",checkboxItemChecked:"sv-boolean--checked",controlCheckbox:"sv-visuallyvisible",checkboxControlLabel:"sv-boolean__label",checkboxItemIndeterminate:"sv-boolean--indeterminate",checkboxItemDisabled:"sv-item--disabled sv-boolean--disabled",checkboxMaterialDecorator:"sv-item__decorator sv-boolean__decorator",checkboxItemDecorator:"sv-item__svg sv-boolean__svg"},checkbox:{root:"sv_qcbc sv_qcbx",item:"sv_q_checkbox",itemSelectAll:"sv_q_checkbox_selectall",itemNone:"sv_q_checkbox_none",itemChecked:"checked",itemInline:"sv_q_checkbox_inline",label:"sv_q_checkbox_label",labelChecked:"",itemControl:"sv_q_checkbox_control_item",itemDecorator:"sv-hidden",controlLabel:"sv_q_checkbox_control_label",other:"sv_q_other sv_q_checkbox_other",column:"sv_q_select_column"},ranking:{root:"sv-ranking",rootMobileMod:"sv-ranking--mobile",rootDragMod:"sv-ranking--drag",rootDisabled:"sv-ranking--disabled",rootDragHandleAreaIcon:"sv-ranking--drag-handle-area-icon",rootSelectToRankMod:"sv-ranking--select-to-rank",rootSelectToRankAlignVertical:"sv-ranking--select-to-rank-vertical",rootSelectToRankAlignHorizontal:"sv-ranking--select-to-rank-horizontal",item:"sv-ranking-item",itemContent:"sv-ranking-item__content",itemIndex:"sv-ranking-item__index",itemIndexEmptyMode:"sv-ranking-item__index--empty",controlLabel:"sv-ranking-item__text",itemGhostNode:"sv-ranking-item__ghost",itemIconContainer:"sv-ranking-item__icon-container",itemIcon:"sv-ranking-item__icon",itemIconHoverMod:"sv-ranking-item__icon--hover",itemIconFocusMod:"sv-ranking-item__icon--focus",itemGhostMod:"sv-ranking-item--ghost",itemDragMod:"sv-ranking-item--drag",container:"sv-ranking__container",containerEmptyMode:"sv-ranking__container--empty",containerFromMode:"sv-ranking__container--from",containerToMode:"sv-ranking__container--to",containerPlaceholder:"sv-ranking__container-placeholder",containersDivider:"sv-ranking__containers-divider"},comment:{remainingCharacterCounter:"sv-remaining-character-counter"},dropdown:{root:"",popup:"sv-dropdown-popup",control:"sv_q_dropdown_control",controlInputFieldComponent:"sv_q_dropdown_control__input-field-component",selectWrapper:"sv_select_wrapper",other:"sv_q_dd_other",cleanButton:"sv_q_dropdown_clean-button",cleanButtonSvg:"sv_q_dropdown_clean-button-svg",cleanButtonIconId:"icon-clear_16x16",controlValue:"sv_q_dropdown__value",filterStringInput:"sv_q_dropdown__filter-string-input",hintPrefix:"sv_q_dropdown__hint-prefix",hintSuffix:"sv_q_dropdown__hint-suffix"},html:{root:""},image:{root:"sv_q_image",image:"sv_image_image",noImage:"sv-image__no-image",noImageSvgIconId:"icon-no-image"},matrix:{root:"sv_q_matrix",label:"sv_q_m_label",itemChecked:"checked",itemDecorator:"sv-hidden",cell:"sv_q_m_cell",cellText:"sv_q_m_cell_text",cellTextSelected:"sv_q_m_cell_selected",cellLabel:"sv_q_m_cell_label",cellResponsiveTitle:"sv-hidden"},matrixdropdown:{root:"sv_q_matrix_dropdown",cell:"sv_matrix_cell",headerCell:"sv_matrix_cell_header",row:"sv_matrix_row",rowAdditional:"sv-matrix__row--additional",detailRow:"sv_matrix_detail_row",detailRowText:"sv_matrix_cell_detail_rowtext",detailCell:"sv_matrix_cell_detail",choiceCell:"sv-table__cell--choice",detailButton:"sv_matrix_cell_detail_button",detailButtonExpanded:"sv_matrix_cell_detail_button_expanded",detailIcon:"sv_detail_panel_icon",detailIconExpanded:"sv_detail_expanded",detailPanelCell:"sv_matrix_cell_detail_panel",actionsCell:"sv_matrix_cell sv_matrix_cell_actions"},matrixdynamic:{root:"sv_q_matrix_dynamic",button:"sv_matrix_dynamic_button",buttonAdd:"",buttonRemove:"",iconAdd:"",iconRemove:"",iconDrag:"sv-matrixdynamic__drag-icon",cell:"sv_matrix_cell",headerCell:"sv_matrix_cell_header",row:"sv_matrix_row",detailRow:"sv_matrix_detail_row",detailCell:"sv_matrix_cell_detail",choiceCell:"sv-table__cell--choice",detailButton:"sv_matrix_cell_detail_button",detailButtonExpanded:"sv_matrix_cell_detail_button_expanded",detailIcon:"sv_detail_panel_icon",detailIconExpanded:"sv_detail_expanded",detailPanelCell:"sv_matrix_cell_detail_panel",actionsCell:"sv_matrix_cell sv_matrix_cell_actions",emptyRowsSection:"sv_matrix_empty_rows_section",emptyRowsText:"sv_matrix_empty_rows_text",emptyRowsButton:"",ghostRow:"sv-matrix-row--drag-drop-ghost-mod"},paneldynamic:{root:"sv_panel_dynamic",title:"sv_p_title",header:"sv-paneldynamic__header sv_header",headerTab:"sv-paneldynamic__header-tab",button:"",buttonAdd:"sv-paneldynamic__add-btn",buttonRemove:"sv_p_remove_btn",buttonRemoveRight:"sv_p_remove_btn_right",buttonPrev:"sv-paneldynamic__prev-btn",buttonPrevDisabled:"sv-paneldynamic__prev-btn--disabled",buttonNextDisabled:"sv-paneldynamic__next-btn--disabled",buttonNext:"sv-paneldynamic__next-btn",progressContainer:"sv-paneldynamic__progress-container",progress:"sv-progress",progressBar:"sv-progress__bar",progressText:"sv-paneldynamic__progress-text",panelWrapper:"sv_p_wrapper",panelWrapperInRow:"sv_p_wrapper_in_row",footer:"",progressBtnIcon:"icon-progressbutton"},multipletext:{root:"sv_q_mt",itemTitle:"sv_q_mt_title",item:"sv_q_mt_item",row:"sv_q_mt_row",itemLabel:"sv_q_mt_label",itemValue:"sv_q_mt_item_value sv_q_text_root"},radiogroup:{root:"sv_qcbc",item:"sv_q_radiogroup",itemChecked:"checked",itemInline:"sv_q_radiogroup_inline",itemDecorator:"sv-hidden",label:"sv_q_radiogroup_label",labelChecked:"",itemControl:"sv_q_radiogroup_control_item",controlLabel:"",other:"sv_q_other sv_q_radiogroup_other",clearButton:"sv_q_radiogroup_clear",column:"sv_q_select_column"},buttongroup:{root:"sv-button-group",item:"sv-button-group__item",itemIcon:"sv-button-group__item-icon",itemDecorator:"sv-button-group__item-decorator",itemCaption:"sv-button-group__item-caption",itemHover:"sv-button-group__item--hover",itemSelected:"sv-button-group__item--selected",itemDisabled:"sv-button-group__item--disabled",itemControl:"sv-visuallyhidden"},imagepicker:{root:"sv_imgsel",item:"sv_q_imgsel",itemChecked:"checked",label:"sv_q_imgsel_label",itemControl:"sv_q_imgsel_control_item",image:"sv_q_imgsel_image",itemInline:"sv_q_imagepicker_inline",itemText:"sv_q_imgsel_text",clearButton:"sv_q_radiogroup_clear",column:"sv_q_select_column",itemNoImage:"sv_q_imgsel__no-image",itemNoImageSvgIcon:"sv_q_imgsel__no-image-svg",itemNoImageSvgIconId:"icon-no-image"},rating:{root:"sv_q_rating",item:"sv_q_rating_item",itemFixedSize:"sv_q_rating_item_fixed",selected:"active",minText:"sv_q_rating_min_text",itemText:"sv_q_rating_item_text",maxText:"sv_q_rating_max_text",itemStar:"sv_q_rating__item-star",itemStarSelected:"sv_q_rating__item-star--selected",itemSmiley:"sv_q_rating__item-smiley",itemSmileySelected:"sv_q_rating__item-smiley--selected"},text:{root:"sv_q_text_root",remainingCharacterCounter:"sv-remaining-character-counter"},expression:"",file:{root:"sv_q_file",placeholderInput:"sv-visuallyhidden",preview:"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",clearButton:"sjs_sp_clear"},saveData:{root:"sv-save-data_root",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",body:"sv_window_content",header:{root:"sv_window_title",title:"",button:"",buttonExpanded:"",buttonCollapsed:""}},variables:{mobileWidth:"--sv-mobile-width",themeMark:"--sv-default-mark"},tagbox:{root:"",popup:"sv-dropdown-popup",small:"sv_q_row__question--small",selectWrapper:"sv_select_wrapper sv_q_tagbox_wrapper",other:"sv_q_input sv_q_comment sv_q_selectbase__other",cleanButton:"sv_q_tagbox_clean-button sv_q_dropdown_clean-button",cleanButtonSvg:"sv_q_tagbox_clean-button-svg sv_q_dropdown_clean-button-svg",cleanButtonIconId:"icon-clear_16x16",cleanItemButton:"sv_q_tagbox-item_clean-button",cleanItemButtonSvg:"sv_q_tagbox-item_clean-button-svg",cleanItemButtonIconId:"icon-clear_16x16",control:"sv_q_input sv_q_tagbox sv_q_dropdown_control",controlValue:"sv_q_tagbox__value sv_q_dropdown__value",controlEmpty:"sv_q_dropdown--empty sv_q_tagbox--empty",placeholderInput:"sv_q_tagbox__placeholder",filterStringInput:"sv_q_tagbox__filter-string-input sv_q_dropdown__filter-string-input",hint:"sv_q_tagbox__hint",hintPrefix:"sv_q_dropdown__hint-prefix sv_q_tagbox__hint-prefix",hintSuffix:"sv_q_dropdown__hint-suffix sv_q_tagbox__hint-suffix",hintSuffixWrapper:"sv_q_tagbox__hint-suffix-wrapper"}};r.surveyCss.default=o,r.surveyCss.orange=o,r.surveyCss.darkblue=o,r.surveyCss.darkrose=o,r.surveyCss.stone=o,r.surveyCss.winter=o,r.surveyCss.winterstone=o},"./src/defaultCss/defaultV2Css.ts":function(e,t,n){"use strict";n.r(t),n.d(t,"surveyCss",(function(){return r})),n.d(t,"defaultV2Css",(function(){return o})),n.d(t,"defaultV2ThemeName",(function(){return i}));var r={currentType:"",getCss:function(){var e=this.currentType?this[this.currentType]:o;return e||(e=o),e},getAvailableThemes:function(){return Object.keys(this).filter((function(e){return-1===["currentType","getCss","getAvailableThemes"].indexOf(e)}))}},o={root:"sd-root-modern",rootMobile:"sd-root-modern--mobile",rootReadOnly:"sd-root--readonly",rootCompact:"sd-root--compact",rootBackgroundImage:"sd-root_background-image",container:"sd-container-modern",header:"sd-title sd-container-modern__title",bodyContainer:"sv-components-row",body:"sv-components-column sv-components-column--expandable 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",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",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:""},panel:{asPage:"sd-panel--as-page",number:"sd-element__num",title:"sd-title sd-element__title sd-panel__title",titleExpandable:"sd-element__title--expandable",titleNumInline:"sd-element__title--num-inline",titleExpanded:"sd-element__title--expanded",titleCollapsed:"sd-element__title--collapsed",titleDisabled:"sd-element__title--disabled",titleOnExpand:"sd-panel__title--expanded",titleOnError:"sd-panel__title--error",titleBar:"sd-action-title-bar",description:"sd-description sd-panel__description",container:"sd-element sd-element--complex sd-panel sd-row__panel",withFrame:"sd-element--with-frame",content:"sd-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",nested:"sd-element--nested",invisible:"sd-element--invisible",navigationButton:"",compact:"sd-element--with-frame sd-element--compact"},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",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",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",panelWrapperInRow:"sd-paneldynamic__panel-wrapper--in-row",progressBtnIcon:"icon-progressbuttonv2",noEntriesPlaceholder:"sd-paneldynamic__placeholder sd-question__placeholder",compact:"sd-element--with-frame sd-element--compact",tabsRoot:"sd-tabs-toolbar",tabsLeft:"sd-tabs-toolbar--left",tabsRight:"sd-tabs-toolbar--right",tabsCenter:"sd-tabs-toolbar--center",tabs:{item:"sd-tab-item",itemPressed:"sd-tab-item--pressed",itemAsIcon:"sd-tab-item--icon",itemIcon:"sd-tab-item__icon",itemTitle:"sd-tab-item__title"}},progress:"sd-progress sd-body__progress",progressTop:"sd-body__progress--top",progressBottom:"sd-body__progress--bottom",progressBar:"sd-progress__bar",progressText:"sd-progress__text",progressButtonsContainerCenter:"sd-progress-buttons__container-center",progressButtonsContainer:"sd-progress-buttons__container",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"},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",pageRow:"sd-page__row",question:{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-question__content",contentLeft:"sd-question__content--left",titleNumInline:"sd-element__title--num-inline",titleLeftRoot:"sd-question--left",titleOnAnswer:"sd-question__title--answer",titleOnError:"sd-question__title--error",title:"sd-title sd-element__title sd-question__title",titleExpandable:"sd-element__title--expandable",titleExpanded:"sd-element__title--expanded",titleCollapsed:"sd-element__title--collapsed",titleDisabled:"sd-element__title--disabled",titleBar:"sd-action-title-bar",requiredText:"sd-question__required-text",number:"sd-element__num",description:"sd-description sd-question__description",descriptionUnderInput:"sd-description sd-question__description sd-question__description--under-input",comment:"sd-input sd-comment",other:"sd-input sd-comment",required:"sd-question--required",titleRequired:"sd-question__title--required",indent:20,footer:"sd-question__footer",commentArea:"sd-question__comment-area",formGroup:"sd-question__form-group",hasError:"sd-question--error",collapsed:"sd-element--collapsed",expanded:"sd-element--expanded",nested:"sd-element--nested",invisible:"sd-element--invisible",composite:"sd-element--complex",disabled:"sd-question--disabled"},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:""},error:{root:"sd-question__erbox",icon:"",item:"",tooltip:"sd-question__erbox--tooltip",outsideQuestion:"sd-question__erbox--outside-question",aboveQuestion:"sd-question__erbox--above-question",belowQuestion:"sd-question__erbox--below-question",locationTop:"sd-question__erbox--location--top",locationBottom:"sd-question__erbox--location--bottom"},checkbox:{root:"sd-selectbase",rootRow:"sd-selectbase--row",rootMultiColumn:"sd-selectbase--multi-column",item:"sd-item sd-checkbox sd-selectbase__item",itemOnError:"sd-item--error",itemSelectAll:"sd-checkbox--selectall",itemNone:"sd-checkbox--none",itemDisabled:"sd-item--disabled sd-checkbox--disabled",itemChecked:"sd-item--checked sd-checkbox--checked",itemHover:"sd-item--allowhover sd-checkbox--allowhover",itemInline:"sd-selectbase__item--inline",label:"sd-selectbase__label",labelChecked:"",itemControl:"sd-visuallyhidden sd-item__control sd-checkbox__control",itemDecorator:"sd-item__svg sd-checkbox__svg",itemSvgIconId:"#icon-v2check",controlLabel:"sd-item__control-label",materialDecorator:"sd-item__decorator sd-checkbox__decorator",other:"sd-input sd-comment sd-selectbase__other",column:"sd-selectbase__column"},radiogroup:{root:"sd-selectbase",rootRow:"sd-selectbase--row",rootMultiColumn:"sd-selectbase--multi-column",item:"sd-item sd-radio sd-selectbase__item",itemOnError:"sd-item--error",itemInline:"sd-selectbase__item--inline",label:"sd-selectbase__label",labelChecked:"",itemDisabled:"sd-item--disabled sd-radio--disabled",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",itemIndeterminate:"sd-boolean--indeterminate",itemDisabled:"sd-boolean--disabled",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",sliderText:"sd-boolean__thumb-text",slider:"sd-boolean__thumb",sliderGhost:"sd-boolean__thumb-ghost",radioItem:"sd-item",radioItemChecked:"sd-item--checked sd-radio--checked",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-checkbox--disabled",controlCheckbox:"sd-visuallyhidden sd-item__control sd-checkbox__control",checkboxMaterialDecorator:"sd-item__decorator sd-checkbox__decorator",checkboxControlLabel:"sd-item__control-label",svgIconCheckedId:"#icon-v2check"},text:{root:"sd-input sd-text",small:"sd-row__question--small",controlDisabled:"sd-input--disabled",content:"sd-text__content sd-question__content",remainingCharacterCounter:"sd-remaining-character-counter",onError:"sd-input--error"},multipletext:{root:"sd-multipletext",itemLabel:"sd-multipletext__item-container sd-input",itemLabelOnError:"sd-multipletext__item-container--error",item:"sd-multipletext__item",itemTitle:"sd-multipletext__item-title",content:"sd-multipletext__content sd-question__content",row:"sd-multipletext__row",cell:"sd-multipletext__cell"},dropdown:{root:"sd-selectbase",popup:"sv-dropdown-popup",small:"sd-row__question--small",selectWrapper:"sv-dropdown_select-wrapper",other:"sd-input sd-comment sd-selectbase__other",onError:"sd-input--error",label:"sd-selectbase__label",item:"sd-item sd-radio sd-selectbase__item",itemDisabled:"sd-item--disabled sd-radio--disabled",itemChecked:"sd-item--checked sd-radio--checked",itemHover:"sd-item--allowhover sd-radio--allowhover",itemControl:"sd-visuallyhidden sd-item__control sd-radio__control",itemDecorator:"sd-item__svg sd-radio__svg",cleanButton:"sd-dropdown_clean-button",cleanButtonSvg:"sd-dropdown_clean-button-svg",cleanButtonIconId:"icon-clear",chevronButton:"sd-dropdown_chevron-button",chevronButtonSvg:"sd-dropdown_chevron-button-svg",chevronButtonIconId:"icon-chevron",control:"sd-input sd-dropdown",controlInputFieldComponent:"sd-dropdown__input-field-component",controlValue:"sd-dropdown__value",controlDisabled:"sd-input--disabled",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",itemHover:"sd-imagepicker__item--allowhover",label:"sd-imagepicker__label",itemDecorator:"sd-imagepicker__item-decorator",imageContainer:"sd-imagepicker__image-container",itemControl:"sd-imagepicker__control sd-visuallyhidden",image:"sd-imagepicker__image",itemText:"sd-imagepicker__text",other:"sd-input sd-comment",itemNoImage:"sd-imagepicker__no-image",itemNoImageSvgIcon:"sd-imagepicker__no-image-svg",itemNoImageSvgIconId:"icon-no-image",column:"sd-selectbase__column sd-imagepicker__column",checkedItemDecorator:"sd-imagepicker__check-decorator",checkedItemSvgIcon:"sd-imagepicker__check-icon",checkedItemSvgIconId:"icon-v2check_24x24"},matrix:{mainRoot:"sd-element sd-question sd-row__question sd-element--complex sd-question--complex sd-question--table",tableWrapper:"sd-matrix sd-table-wrapper",root:"sd-table sd-matrix__table",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",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",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",rootVerticalAlignTop:"sd-table--align-top",rootVerticalAlignMiddle:"sd-table--align-middle",tableWrapper:"sd-table-wrapper",rootAlternateRows:"sd-table--alternate-rows",cell:"sd-table__cell",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",headerCell:"sd-table__cell sd-table__cell--header",rowTextCell:"sd-table__cell sd-table__cell--row-text",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",actionsCell:"sd-table__cell sd-table__cell--actions",emptyCell:"sd-table__cell--empty",verticalCell:"sd-table__cell--vertical",cellQuestionWrapper:"sd-table__question-wrapper",compact:"sd-element--with-frame sd-element--compact"},matrixdynamic:{mainRoot:"sd-element sd-question sd-row__question sd-element--complex sd-question--complex sd-question--table",rootScroll:"sd-question--scroll",empty:"sd-question--empty",root:"sd-table sd-matrixdynamic",tableWrapper:"sd-table-wrapper",content:"sd-matrixdynamic__content sd-question__content",cell:"sd-table__cell",row:"sd-table__row",itemCell:"sd-table__cell--item",headerCell:"sd-table__cell sd-table__cell--header",rowTextCell:"sd-table__cell sd-table__cell--row-text",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",actionsCell:"sd-table__cell sd-table__cell--actions",buttonAdd:"sd-matrixdynamic__add-btn",buttonRemove:"sd-action--negative sd-matrixdynamic__remove-btn",iconAdd:"",iconRemove:"",dragElementDecorator:"sd-drag-element__svg",iconDragElement:"#icon-v2dragelement_16x16",footer:"sd-matrixdynamic__footer",emptyRowsSection:"sd-matrixdynamic__placeholder sd-question__placeholder",iconDrag:"sv-matrixdynamic__drag-icon",ghostRow:"sv-matrix-row--drag-drop-ghost-mod",emptyCell:"sd-table__cell--empty",verticalCell:"sd-table__cell--vertical",cellQuestionWrapper:"sd-table__question-wrapper",errorsCell:"sd-table__cell--error",errorsCellTop:"sd-table__cell--error-top",errorsCellBottom:"sd-table__cell--error-bottom",compact:"sd-element--with-frame sd-element--compact"},rating:{rootDropdown:"sd-scrollable-container sd-scrollable-container--compact sd-selectbase",root:"sd-scrollable-container sd-rating",rootWrappable:"sd-scrollable-container sd-rating sd-rating--wrappable",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",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",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",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",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",content:"sd-comment__content sd-question__content",remainingCharacterCounter:"sd-remaining-character-counter",onError:"sd-input--error"},expression:"sd-expression",file:{root:"sd-file",other:"sd-input sd-comment",placeholderInput:"sd-visuallyhidden",preview:"sd-file__preview",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-context-btn sd-file__choose-btn--icon",chooseFileIconId:"icon-choosefile",disabled:"sd-file__choose-btn--disabled",removeButton:"sd-context-btn sd-context-btn--negative sd-file__btn sd-file__clean-btn",removeButtonBottom:"",removeButtonIconId:"icon-clear",removeFile:"sd-hidden",removeFileSvg:"",removeFileSvgIconId:"icon-delete",wrapper:"sd-file__wrapper",defaultImage:"sd-file__default-image",defaultImageIconId:"icon-defaultfile",leftIconId:"icon-arrowleft",rightIconId:"icon-arrowright",removeFileButton:"sd-context-btn sd-context-btn--negative sd-file__remove-file-button",dragAreaPlaceholder:"sd-file__drag-area-placeholder",imageWrapper:"sd-file__image-wrapper",single:"sd-file--single",singleImage:"sd-file--single-image",mobile:"sd-file--mobile"},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",clearButton:"sjs_sp_clear sd-context-btn sd-context-btn--negative sd-signaturepad__clear",clearButtonIconId:"icon-clear"},saveData:{root:"sv-save-data_root",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",body:"sv_window_content",header:{root:"sv_window_title",title:"",button:"sv_window_button",buttonExpanded:"",buttonCollapsed:""}},ranking:{root:"sv-ranking",rootMobileMod:"sv-ranking--mobile",rootDragMod:"sv-ranking--drag",rootDisabled:"sd-ranking--disabled",rootDesignMode:"sv-ranking--design-mode",rootDragHandleAreaIcon:"sv-ranking--drag-handle-area-icon",rootSelectToRankMod:"sv-ranking--select-to-rank",rootSelectToRankAlignVertical:"sv-ranking--select-to-rank-vertical",rootSelectToRankAlignHorizontal:"sv-ranking--select-to-rank-horizontal",item:"sv-ranking-item",itemContent:"sv-ranking-item__content 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",controlLabel:"sv-ranking-item__text",itemGhostNode:"sv-ranking-item__ghost",itemIconContainer:"sv-ranking-item__icon-container",itemIcon:"sv-ranking-item__icon",itemIconHoverMod:"sv-ranking-item__icon--hover",itemIconFocusMod:"sv-ranking-item__icon--focus",itemGhostMod:"sv-ranking-item--ghost",itemDragMod:"sv-ranking--drag",itemOnError:"sv-ranking-item--error",container:"sv-ranking__container",containerEmptyMode:"sv-ranking__container--empty",containerFromMode:"sv-ranking__container--from",containerToMode:"sv-ranking__container--to",containerPlaceholder:"sv-ranking__container-placeholder",containersDivider:"sv-ranking__containers-divider"},buttongroup:{root:"sv-button-group",item:"sv-button-group__item",itemIcon:"sv-button-group__item-icon",itemDecorator:"sv-button-group__item-decorator",itemCaption:"sv-button-group__item-caption",itemHover:"sv-button-group__item--hover",itemSelected:"sv-button-group__item--selected",itemDisabled:"sv-button-group__item--disabled",itemControl:"sv-visuallyhidden"},list:{root:"sv-list__container sd-list",item:"sv-list__item sd-list__item",itemBody:"sv-list__item-body sd-list__item-body",itemSelected:"sv-list__item--selected sd-list__item--selected",itemFocused:"sv-list__item--focused sd-list__item--focused"},actionBar:{root:"sd-action-bar",item:"sd-action",defaultSizeMode:"",smallSizeMode:"",itemPressed:"sd-action--pressed",itemAsIcon:"sd-action--icon",itemIcon:"sd-action__icon",itemTitle:"sd-action__title"},variables:{mobileWidth:"--sd-mobile-width",themeMark:"--sv-defaultV2-mark"},tagbox:{root:"sd-selectbase",popup:"sv-dropdown-popup",small:"sd-row__question--small",selectWrapper:"sv-dropdown_select-wrapper",other:"sd-input sd-comment sd-selectbase__other",onError:"sd-input--error",label:"sd-selectbase__label",itemSvgIconId:"#icon-v2check",item:"sd-item sd-checkbox sd-selectbase__item",itemDisabled:"sd-item--disabled sd-checkbox--disabled",itemChecked:"sd-item--checked sd-checkbox--checked",itemHover:"sd-item--allowhover sd-checkbox--allowhover",itemControl:"sd-visuallyhidden sd-item__control sd-checkbox__control",itemDecorator:"sd-item__svg sd-checkbox__svg",cleanButton:"sd-tagbox_clean-button sd-dropdown_clean-button",cleanButtonSvg:"sd-tagbox_clean-button-svg sd-dropdown_clean-button-svg",cleanButtonIconId:"icon-clear",cleanItemButton:"sd-tagbox-item_clean-button",cleanItemButtonSvg:"sd-tagbox-item_clean-button-svg",cleanItemButtonIconId:"icon-clear_16x16",chevronButton:"sd-dropdown_chevron-button",chevronButtonSvg:"sd-dropdown_chevron-button-svg",chevronButtonIconId:"icon-chevron",control:"sd-input sd-tagbox sd-dropdown",controlValue:"sd-tagbox__value sd-dropdown__value",controlValueItems:"sd-tagbox__value-items",placeholderInput:"sd-tagbox__placeholder",controlDisabled:"sd-input--disabled",controlEmpty:"sd-dropdown--empty sd-tagbox--empty",controlLabel:"sd-item__control-label",filterStringInput:"sd-tagbox__filter-string-input sd-dropdown__filter-string-input",materialDecorator:"sd-item__decorator sd-checkbox__decorator",hint:"sd-tagbox__hint",hintPrefix:"sd-dropdown__hint-prefix sd-tagbox__hint-prefix",hintSuffix:"sd-dropdown__hint-suffix sd-tagbox__hint-suffix",hintSuffixWrapper:"sd-tagbox__hint-suffix-wrapper"}},i="defaultV2";r[i]=o},"./src/defaultTitle.ts":function(e,t,n){"use strict";n.r(t),n.d(t,"DefaultTitleModel",(function(){return o}));var r=n("./src/utils/cssClassBuilder.ts"),o=function(){function e(){}return e.getIconCss=function(e,t){return(new r.CssClassBuilder).append(e.icon).append(e.iconExpanded,!t).toString()},e}()},"./src/drag-drop-helper-v1.ts":function(e,t,n){"use strict";n.r(t),n.d(t,"DragDropInfo",(function(){return r}));var r=function(e,t,n){void 0===n&&(n=-1),this.source=e,this.target=t,this.nestedPanelDepth=n}},"./src/drag-drop-page-helper-v1.ts":function(e,t,n){"use strict";n.r(t),n.d(t,"DragDropPageHelperV1",(function(){return i}));var r=n("./src/drag-drop-helper-v1.ts"),o=n("./src/settings.ts"),i=function(){function e(e){this.page=e}return e.prototype.getDragDropInfo=function(){return this.dragDropInfo},e.prototype.dragDropStart=function(e,t,n){void 0===n&&(n=-1),this.dragDropInfo=new r.DragDropInfo(e,t,n)},e.prototype.dragDropMoveTo=function(e,t,n){if(void 0===t&&(t=!1),void 0===n&&(n=!1),!this.dragDropInfo)return!1;if(this.dragDropInfo.destination=e,this.dragDropInfo.isBottom=t,this.dragDropInfo.isEdge=n,this.correctDragDropInfo(this.dragDropInfo),!this.dragDropCanDropTagert())return!1;if(!this.dragDropCanDropSource()||!this.dragDropAllowFromSurvey()){if(this.dragDropInfo.source){var r=this.page.dragDropFindRow(this.dragDropInfo.target);this.page.updateRowsRemoveElementFromRow(this.dragDropInfo.target,r)}return!1}return this.page.dragDropAddTarget(this.dragDropInfo),!0},e.prototype.correctDragDropInfo=function(e){if(e.destination){var t=e.destination.isPanel?e.destination:null;t&&(e.target.isLayoutTypeSupported(t.getChildrenLayoutType())||(e.isEdge=!0))}},e.prototype.dragDropAllowFromSurvey=function(){var e=this.dragDropInfo.destination;if(!e||!this.page.survey)return!0;var t=null,n=null,r=e.isPage||!this.dragDropInfo.isEdge&&e.isPanel?e:e.parent;if(!e.isPage){var o=e.parent;if(o){var i=o.elements,s=i.indexOf(e);s>-1&&(t=e,n=e,this.dragDropInfo.isBottom?t=s<i.length-1?i[s+1]:null:n=s>0?i[s-1]:null)}}var a={allow:!0,target:this.dragDropInfo.target,source:this.dragDropInfo.source,parent:r,insertAfter:n,insertBefore:t};return this.page.survey.dragAndDropAllow(a)},e.prototype.dragDropFinish=function(e){if(void 0===e&&(e=!1),this.dragDropInfo){var t=this.dragDropInfo.target,n=this.dragDropInfo.source,r=this.dragDropInfo.destination,i=this.page.dragDropFindRow(t),s=this.dragDropGetElementIndex(t,i);this.page.updateRowsRemoveElementFromRow(t,i);var a=[],l=[];if(!e&&i){if(this.page.isDesignMode&&o.settings.supportCreatorV2){var u=n&&n.parent&&n.parent.dragDropFindRow(n);i.panel.elements[s]&&i.panel.elements[s].startWithNewLine&&i.elements.length>1&&i.panel.elements[s]===r&&(a.push(t),l.push(i.panel.elements[s])),!(t.startWithNewLine&&i.elements.length>1)||i.panel.elements[s]&&i.panel.elements[s].startWithNewLine||l.push(t),u&&u.elements[0]===n&&u.elements[1]&&a.push(u.elements[1]),i.elements.length<=1&&a.push(t),t.startWithNewLine&&i.elements.length>1&&i.elements[0]!==r&&l.push(t)}n&&n.parent&&(this.page.survey.startMovingQuestion(),i.panel==n.parent?(i.panel.dragDropMoveElement(n,t,s),s=-1):n.parent.removeElement(n)),s>-1&&i.panel.addElement(t,s),this.page.survey.stopMovingQuestion()}return a.map((function(e){e.startWithNewLine=!0})),l.map((function(e){e.startWithNewLine=!1})),this.dragDropInfo=null,e?null:t}},e.prototype.dragDropGetElementIndex=function(e,t){if(!t)return-1;var n=t.elements.indexOf(e);if(0==t.index)return n;var r=t.panel.rows[t.index-1],o=r.elements[r.elements.length-1];return n+t.panel.elements.indexOf(o)+1},e.prototype.dragDropCanDropTagert=function(){var e=this.dragDropInfo.destination;return!(e&&!e.isPage)||this.dragDropCanDropCore(this.dragDropInfo.target,e)},e.prototype.dragDropCanDropSource=function(){var e=this.dragDropInfo.source;if(!e)return!0;var t=this.dragDropInfo.destination;if(!this.dragDropCanDropCore(e,t))return!1;if(this.page.isDesignMode&&o.settings.supportCreatorV2){if(this.page.dragDropFindRow(e)!==this.page.dragDropFindRow(t)){if(!e.startWithNewLine&&t.startWithNewLine)return!0;if(e.startWithNewLine&&!t.startWithNewLine)return!0}var n=this.page.dragDropFindRow(t);if(n&&1==n.elements.length)return!0}return this.dragDropCanDropNotNext(e,t,this.dragDropInfo.isEdge,this.dragDropInfo.isBottom)},e.prototype.dragDropCanDropCore=function(e,t){if(!t)return!0;if(this.dragDropIsSameElement(t,e))return!1;if(e.isPanel){var n=e;if(n.containsElement(t)||n.getElementByName(t.name))return!1}return!0},e.prototype.dragDropCanDropNotNext=function(e,t,n,r){if(!t||t.isPanel&&!n)return!0;if(void 0===e.parent||e.parent!==t.parent)return!0;var o=e.parent,i=o.elements.indexOf(e),s=o.elements.indexOf(t);return s<i&&!r&&s--,r&&s++,i<s?s-i>1:i-s>0},e.prototype.dragDropIsSameElement=function(e,t){return e==t||e.name==t.name},e}()},"./src/drag-drop-panel-helper-v1.ts":function(e,t,n){"use strict";n.r(t),n.d(t,"DragDropPanelHelperV1",(function(){return i}));var r=n("./src/drag-drop-helper-v1.ts"),o=n("./src/settings.ts"),i=function(){function e(e){this.panel=e}return e.prototype.dragDropAddTarget=function(e){var t=this.dragDropFindRow(e.target);this.dragDropAddTargetToRow(e,t)&&this.panel.updateRowsRemoveElementFromRow(e.target,t)},e.prototype.dragDropFindRow=function(e){if(!e||e.isPage)return null;for(var t=e,n=this.panel.rows,r=0;r<n.length;r++)if(n[r].elements.indexOf(t)>-1)return n[r];for(r=0;r<this.panel.elements.length;r++){var o=this.panel.elements[r].getPanel();if(o){var i=o.dragDropFindRow(t);if(i)return i}}return null},e.prototype.dragDropMoveElement=function(e,t,n){n>e.parent.elements.indexOf(e)&&n--,this.panel.removeElement(e),this.panel.addElement(t,n)},e.prototype.updateRowsOnElementAdded=function(e,t,n,o){n||((n=new r.DragDropInfo(null,e)).target=e,n.isEdge=this.panel.elements.length>1,this.panel.elements.length<2?n.destination=o:(n.isBottom=t>0,n.destination=0==t?this.panel.elements[1]:this.panel.elements[t-1])),this.dragDropAddTargetToRow(n,null)},e.prototype.dragDropAddTargetToRow=function(e,t){if(!e.destination)return!0;if(this.dragDropAddTargetToEmptyPanel(e))return!0;var n=e.destination,r=this.dragDropFindRow(n);return!r||(e.target.startWithNewLine?this.dragDropAddTargetToNewRow(e,r,t):this.dragDropAddTargetToExistingRow(e,r,t))},e.prototype.dragDropAddTargetToEmptyPanel=function(e){if(e.destination.isPage)return this.dragDropAddTargetToEmptyPanelCore(this.panel.root,e.target,e.isBottom),!0;var t=e.destination;if(t.isPanel&&!e.isEdge){var n=t;if(e.target.template===t)return!1;if(e.nestedPanelDepth<0||e.nestedPanelDepth>=n.depth)return this.dragDropAddTargetToEmptyPanelCore(t,e.target,e.isBottom),!0}return!1},e.prototype.dragDropAddTargetToExistingRow=function(e,t,n){var r=t.elements.indexOf(e.destination);if(0==r&&!e.isBottom)if(this.panel.isDesignMode&&o.settings.supportCreatorV2);else if(t.elements[0].startWithNewLine)return t.index>0?(e.isBottom=!0,t=t.panel.rows[t.index-1],e.destination=t.elements[t.elements.length-1],this.dragDropAddTargetToExistingRow(e,t,n)):this.dragDropAddTargetToNewRow(e,t,n);var i=-1;n==t&&(i=t.elements.indexOf(e.target)),e.isBottom&&r++;var s=this.panel.findRowByElement(e.source);return(s!=t||s.elements.indexOf(e.source)!=r)&&r!=i&&(i>-1&&(t.elements.splice(i,1),i<r&&r--),t.elements.splice(r,0,e.target),t.updateVisible(),i<0)},e.prototype.dragDropAddTargetToNewRow=function(e,t,n){var r=t.panel.createRowAndSetLazy(t.panel.rows.length);this.panel.isDesignMode&&o.settings.supportCreatorV2&&r.setIsLazyRendering(!1),r.addElement(e.target);var i=t.index;if(e.isBottom&&i++,n&&n.panel==r.panel&&n.index==i)return!1;var s=this.panel.findRowByElement(e.source);return!(s&&s.panel==r.panel&&1==s.elements.length&&s.index==i||(t.panel.rows.splice(i,0,r),0))},e.prototype.dragDropAddTargetToEmptyPanelCore=function(e,t,n){var r=e.createRow();r.addElement(t),0==e.elements.length||n?e.rows.push(r):e.rows.splice(0,0,r)},e}()},"./src/dragdrop/choices.ts":function(e,t,n){"use strict";n.r(t),n.d(t,"DragDropChoices",(function(){return s}));var r,o=n("./src/dragdrop/core.ts"),i=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),s=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.doDragOver=function(){"imagepicker"!==t.parentElement.getType()&&(t.domAdapter.draggedElementShortcut.querySelector(".svc-item-value-controls__button").style.cursor="grabbing")},t.doBanDropHere=function(){"imagepicker"!==t.parentElement.getType()&&(t.domAdapter.draggedElementShortcut.querySelector(".svc-item-value-controls__button").style.cursor="not-allowed")},t}return i(t,e),Object.defineProperty(t.prototype,"draggedElementType",{get:function(){return"item-value"},enumerable:!1,configurable:!0}),t.prototype.createDraggedElementShortcut=function(e,t,n){if("imagepicker"===this.parentElement.getType())return this.createImagePickerShortcut(this.draggedElement,e,t,n);var r=document.createElement("div");r.style.cssText=" \n          cursor: grabbing;\n          position: absolute;\n          z-index: 10000;\n          font-family: var(--font-family, 'Open Sans');\n        ";var o=t.closest("[data-sv-drop-target-item-value]").cloneNode(!0);o.style.cssText="\n      min-width: 100px;\n      box-shadow: var(--sjs-shadow-large, 0px 8px 16px 0px rgba(0, 0, 0, 0.1)), var(--sjs-shadow-medium, 0px 2px 6px 0px rgba(0, 0, 0, 0.1));\n      background-color: var(--sjs-general-backcolor, var(--background, #fff));\n      border-radius: calc(4.5 * var(--sjs-base-unit, var(--base-unit, 8px)));\n      padding-right: calc(2* var(--sjs-base-unit, var(--base-unit, 8px)));\n      margin-left: 0;\n    ",o.querySelector(".svc-item-value-controls__drag-icon").style.visibility="visible",o.querySelector(".svc-item-value-controls__remove").style.backgroundColor="transparent",o.classList.remove("svc-item-value--moveup"),o.classList.remove("svc-item-value--movedown"),this.draggedElement.isDragDropMoveDown=!1,this.draggedElement.isDragDropMoveUp=!1,r.appendChild(o);var i=t.getBoundingClientRect();return r.shortcutXOffset=n.clientX-i.x,r.shortcutYOffset=n.clientY-i.y,this.isBottom=null,r},t.prototype.createImagePickerShortcut=function(e,t,n,r){var o=document.createElement("div");o.style.cssText=" \n      cursor: grabbing;\n      position: absolute;\n      z-index: 10000;\n      box-shadow: var(--sjs-shadow-large, 0px 8px 16px 0px rgba(0, 0, 0, 0.1)), var(--sjs-shadow-medium, 0px 2px 6px 0px rgba(0, 0, 0, 0.1));\n      background-color: var(--sjs-general-backcolor, var(--background, #fff));\n      padding: calc(0.5 * var(--sjs-base-unit, var(--base-unit, 8px)));\n      border-radius: calc(0.5 * var(--sjs-base-unit, var(--base-unit, 8px)));\n    ";var i=n.closest("[data-sv-drop-target-item-value]"),s=i.querySelector(".svc-image-item-value-controls"),a=i.querySelector(".sd-imagepicker__image-container"),l=i.querySelector(e.imageLink?"img":".sd-imagepicker__no-image").cloneNode(!0);return s.style.display="none",a.style.width=l.width+"px",a.style.height=l.height+"px",l.style.objectFit="cover",l.style.borderRadius="4px",o.appendChild(l),o},t.prototype.getDropTargetByDataAttributeValue=function(e){return this.parentElement.choices.filter((function(t){return""+t.value==e}))[0]},t.prototype.getVisibleChoices=function(){var e=this.parentElement;return"ranking"===e.getType()?e.rankingChoices:e.visibleChoices},t.prototype.isDropTargetValid=function(e,t){var n=this.getVisibleChoices();if("imagepicker"!==this.parentElement.getType()){var r=n.indexOf(this.dropTarget),o=n.indexOf(this.draggedElement);if(o>r&&this.dropTarget.isDragDropMoveUp)return this.dropTarget.isDragDropMoveUp=!1,!1;if(o<r&&this.dropTarget.isDragDropMoveDown)return this.dropTarget.isDragDropMoveDown=!1,!1}return-1!==n.indexOf(e)},t.prototype.calculateIsBottom=function(e){var t=this.getVisibleChoices();return t.indexOf(this.dropTarget)-t.indexOf(this.draggedElement)>0},t.prototype.afterDragOver=function(t){if(!this.isDropTargetDoesntChanged(this.isBottom)&&this.dropTarget!==this.draggedElement){var n=this.getVisibleChoices(),r=n.indexOf(this.dropTarget),o=n.indexOf(this.draggedElement);n.splice(o,1),n.splice(r,0,this.draggedElement),"imagepicker"!==this.parentElement.getType()&&(o!==r&&(t.classList.remove("svc-item-value--moveup"),t.classList.remove("svc-item-value--movedown"),this.dropTarget.isDragDropMoveDown=!1,this.dropTarget.isDragDropMoveUp=!1),o>r&&(this.dropTarget.isDragDropMoveDown=!0),o<r&&(this.dropTarget.isDragDropMoveUp=!0),e.prototype.ghostPositionChanged.call(this))}},t.prototype.doDrop=function(){var e=this.parentElement.choices,t=this.getVisibleChoices().filter((function(t){return-1!==e.indexOf(t)})),n=e.indexOf(this.draggedElement),r=t.indexOf(this.draggedElement);return e.splice(n,1),e.splice(r,0,this.draggedElement),this.parentElement},t.prototype.clear=function(){this.parentElement&&this.updateVisibleChoices(this.parentElement),e.prototype.clear.call(this)},t.prototype.updateVisibleChoices=function(e){"ranking"===e.getType()?e.updateRankingChoices():e.updateVisibleChoices()},t}(o.DragDropCore)},"./src/dragdrop/core.ts":function(e,t,n){"use strict";n.r(t),n.d(t,"DragDropCore",(function(){return i}));var r=n("./src/base.ts"),o=n("./src/dragdrop/dom-adapter.ts"),i=function(){function e(e,t,n,i){var s=this;this.surveyValue=e,this.creator=t,this._isBottom=null,this.onGhostPositionChanged=new r.EventBase,this.onDragStart=new r.EventBase,this.onDragEnd=new r.EventBase,this.onBeforeDrop=this.onDragStart,this.onAfterDrop=this.onDragEnd,this.draggedElement=null,this.dropTarget=null,this.prevDropTarget=null,this.allowDropHere=!1,this.banDropHere=function(){s.allowDropHere=!1,s.doBanDropHere(),s.dropTarget=null,s.domAdapter.draggedElementShortcut.style.cursor="not-allowed",s.isBottom=null},this.doBanDropHere=function(){},this.domAdapter=i||new o.DragDropDOMAdapter(this,n)}return Object.defineProperty(e.prototype,"isBottom",{get:function(){return!!this._isBottom},set:function(e){this._isBottom=e,this.ghostPositionChanged()},enumerable:!1,configurable:!0}),e.prototype.ghostPositionChanged=function(){this.onGhostPositionChanged.fire({},{})},Object.defineProperty(e.prototype,"dropTargetDataAttributeName",{get:function(){return"[data-sv-drop-target-"+this.draggedElementType+"]"},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"survey",{get:function(){return this.surveyValue||this.creator.survey},enumerable:!1,configurable:!0}),e.prototype.startDrag=function(e,t,n,r,o){var i;void 0===o&&(o=!1),this.domAdapter.rootContainer=null===(i=this.survey)||void 0===i?void 0:i.rootElement,this.domAdapter.startDrag(e,t,n,r,o)},e.prototype.dragInit=function(e,t,n,r){this.draggedElement=t,this.parentElement=n;var o=this.getShortcutText(this.draggedElement);this.domAdapter.draggedElementShortcut=this.createDraggedElementShortcut(o,r,e),this.onStartDrag(e)},e.prototype.onStartDrag=function(e){},e.prototype.isDropTargetDoesntChanged=function(e){return this.dropTarget===this.prevDropTarget&&e===this.isBottom},e.prototype.getShortcutText=function(e){return e.shortcutText},e.prototype.createDraggedElementShortcut=function(e,t,n){var r=document.createElement("div");return r.innerText=e,r.className=this.getDraggedElementClass(),r},e.prototype.getDraggedElementClass=function(){return"sv-dragged-element-shortcut"},e.prototype.doDragOver=function(){},e.prototype.afterDragOver=function(e){},e.prototype.findDropTargetNodeFromPoint=function(e,t){this.domAdapter.draggedElementShortcut.hidden=!0;var n=document.elementFromPoint(e,t);return this.domAdapter.draggedElementShortcut.hidden=!1,n?this.findDropTargetNodeByDragOverNode(n):null},e.prototype.getDataAttributeValueByNode=function(e){var t=this,n="svDropTarget";return this.draggedElementType.split("-").forEach((function(e){n+=t.capitalizeFirstLetter(e)})),e.dataset[n]},e.prototype.getDropTargetByNode=function(e,t){var n=this.getDataAttributeValueByNode(e);return this.getDropTargetByDataAttributeValue(n,e,t)},e.prototype.capitalizeFirstLetter=function(e){return e.charAt(0).toUpperCase()+e.slice(1)},e.prototype.calculateVerticalMiddleOfHTMLElement=function(e){var t=e.getBoundingClientRect();return t.y+t.height/2},e.prototype.calculateHorizontalMiddleOfHTMLElement=function(e){var t=e.getBoundingClientRect();return t.x+t.width/2},e.prototype.calculateIsBottom=function(e,t){return!1},e.prototype.findDropTargetNodeByDragOverNode=function(e){return e.closest(this.dropTargetDataAttributeName)},e.prototype.dragOver=function(e){var t=this.findDropTargetNodeFromPoint(e.clientX,e.clientY);if(t){this.dropTarget=this.getDropTargetByNode(t,e);var n=this.isDropTargetValid(this.dropTarget,t);if(this.doDragOver(),n){var r=this.calculateIsBottom(e.clientY,t);this.allowDropHere=!0,this.isDropTargetDoesntChanged(r)||(this.isBottom=null,this.isBottom=r,this.afterDragOver(t),this.prevDropTarget=this.dropTarget)}else this.banDropHere()}else this.banDropHere()},e.prototype.drop=function(){if(this.allowDropHere){var e=this.draggedElement.parent;this.onDragStart.fire(this,{fromElement:e,draggedElement:this.draggedElement});var t=this.doDrop();this.onDragEnd.fire(this,{fromElement:e,draggedElement:t,toElement:this.dropTarget})}},e.prototype.clear=function(){this.dropTarget=null,this.draggedElement=null,this.isBottom=null,this.parentElement=null},e}()},"./src/dragdrop/dom-adapter.ts":function(e,t,n){"use strict";n.r(t),n.d(t,"DragDropDOMAdapter",(function(){return s}));var r=n("./src/utils/utils.ts"),o=n("./src/utils/devices.ts"),i=n("./src/settings.ts");"undefined"!=typeof window&&window.addEventListener("touchmove",(function(e){s.PreventScrolling&&e.preventDefault()}),{passive:!1});var s=function(){function e(t,n){var r=this;this.dd=t,this.longTap=n,this.scrollIntervalId=null,this.stopLongTapIfMoveEnough=function(e){e.preventDefault(),r.currentX=e.pageX,r.currentY=e.pageY,r.isMicroMovement||(document.body.style.setProperty("touch-action",""),document.body.style.setProperty("user-select",""),document.body.style.setProperty("-webkit-user-select",""),r.stopLongTap())},this.stopLongTap=function(e){clearTimeout(r.timeoutID),r.timeoutID=null,document.removeEventListener("pointerup",r.stopLongTap),document.removeEventListener("pointermove",r.stopLongTapIfMoveEnough)},this.handlePointerCancel=function(e){r.clear()},this.handleEscapeButton=function(e){27==e.keyCode&&r.clear()},this.onContextMenu=function(e){e.preventDefault(),e.stopPropagation()},this.dragOver=function(e){r.moveShortcutElement(e),r.draggedElementShortcut.style.cursor="grabbing",r.dd.dragOver(e)},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),o.IsTouch&&r.draggedElementShortcut.removeEventListener("contextmenu",r.onContextMenu),r.draggedElementShortcut.parentElement.removeChild(r.draggedElementShortcut),r.dd.clear(),r.draggedElementShortcut=null,r.scrollIntervalId=null,o.IsTouch&&(r.savedTargetNode&&r.savedTargetNode.parentElement.removeChild(r.savedTargetNode),e.PreventScrolling=!1),document.body.style.setProperty("touch-action",""),document.body.style.setProperty("user-select",""),document.body.style.setProperty("-webkit-user-select","")},this.drop=function(){r.dd.drop(),r.clear()},this.draggedElementShortcut=null}return Object.defineProperty(e.prototype,"rootElement",{get:function(){return Object(r.isShadowDOM)(i.settings.environment.root)?i.settings.environment.root.host:this.rootContainer||i.settings.environment.root.documentElement||document.body},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"isMicroMovement",{get:function(){var e=Math.abs(this.currentX-this.startX),t=Math.abs(this.currentY-this.startY);return e<5&&t<5},enumerable:!1,configurable:!0}),e.prototype.startLongTapProcessing=function(e,t,n,r,o){var i=this;void 0===o&&(o=!1),this.startX=e.pageX,this.startY=e.pageY,document.body.style.setProperty("touch-action","none","important"),document.body.style.setProperty("user-select","none","important"),document.body.style.setProperty("-webkit-user-select","none","important"),this.timeoutID=setTimeout((function(){i.doStartDrag(e,t,n,r),o||(i.savedTargetNode=e.target,i.savedTargetNode.style.cssText="\n          position: absolute;\n          height: 1px!important;\n          width: 1px!important;\n          overflow: hidden;\n          clip: rect(1px 1px 1px 1px);\n          clip: rect(1px, 1px, 1px, 1px);\n        ",i.rootElement.appendChild(i.savedTargetNode)),i.stopLongTap()}),this.longTap?500:0),document.addEventListener("pointerup",this.stopLongTap),document.addEventListener("pointermove",this.stopLongTapIfMoveEnough)},e.prototype.moveShortcutElement=function(e){var t=this.rootElement.getBoundingClientRect().x,n=this.rootElement.getBoundingClientRect().y;this.doScroll(e.clientY,e.clientX);var r=this.draggedElementShortcut.offsetHeight,o=this.draggedElementShortcut.offsetWidth,i=this.draggedElementShortcut.shortcutXOffset||o/2,s=this.draggedElementShortcut.shortcutYOffset||r/2;0!==document.querySelectorAll("[dir='rtl']").length&&(i=o/2,s=r/2);var a=document.documentElement.clientHeight,l=document.documentElement.clientWidth,u=e.pageX,c=e.pageY,p=e.clientX,d=e.clientY,h=this.getShortcutBottomCoordinate(d,r,s);return this.getShortcutRightCoordinate(p,o,i)>=l?(this.draggedElementShortcut.style.left=l-o-t+"px",void(this.draggedElementShortcut.style.top=d-s-n+"px")):p-i<=0?(this.draggedElementShortcut.style.left=u-p-t+"px",void(this.draggedElementShortcut.style.top=d-n-s+"px")):h>=a?(this.draggedElementShortcut.style.left=p-i-t+"px",void(this.draggedElementShortcut.style.top=a-r-n+"px")):d-s<=0?(this.draggedElementShortcut.style.left=p-i-t+"px",void(this.draggedElementShortcut.style.top=c-d-n+"px")):(this.draggedElementShortcut.style.left=p-t-i+"px",void(this.draggedElementShortcut.style.top=d-n-s+"px"))},e.prototype.getShortcutBottomCoordinate=function(e,t,n){return e+t-n},e.prototype.getShortcutRightCoordinate=function(e,t,n){return e+t-n},e.prototype.doScroll=function(e,t){var n=this;cancelAnimationFrame(this.scrollIntervalId);var o=100;this.draggedElementShortcut.hidden=!0;var i=document.elementFromPoint(t,e);this.draggedElementShortcut.hidden=!1;var s,a,l,u,c=Object(r.findScrollableParent)(i);"HTML"===c.tagName?(s=0,a=document.documentElement.clientHeight,l=0,u=document.documentElement.clientWidth):(s=c.getBoundingClientRect().top,a=c.getBoundingClientRect().bottom,l=c.getBoundingClientRect().left,u=c.getBoundingClientRect().right);var p=function(){e-s<=o?c.scrollTop-=15:a-e<=o?c.scrollTop+=15:u-t<=o?c.scrollLeft+=15:t-l<=o&&(c.scrollLeft-=15),n.scrollIntervalId=requestAnimationFrame(p)};this.scrollIntervalId=requestAnimationFrame(p)},e.prototype.doStartDrag=function(t,n,r,i){o.IsTouch&&(e.PreventScrolling=!0),3!==t.which&&(this.dd.dragInit(t,n,r,i),this.rootElement.append(this.draggedElementShortcut),this.moveShortcutElement(t),document.addEventListener("pointermove",this.dragOver),document.addEventListener("pointercancel",this.handlePointerCancel),document.addEventListener("keydown",this.handleEscapeButton),document.addEventListener("pointerup",this.drop),o.IsTouch?this.draggedElementShortcut.addEventListener("contextmenu",this.onContextMenu):this.draggedElementShortcut.addEventListener("pointerup",this.drop))},e.prototype.startDrag=function(e,t,n,r,i){void 0===i&&(i=!1),o.IsTouch?this.startLongTapProcessing(e,t,n,r,i):this.doStartDrag(e,t,n,r)},e.PreventScrolling=!1,e}()},"./src/dragdrop/matrix-rows.ts":function(e,t,n){"use strict";n.r(t),n.d(t,"DragDropMatrixRows",(function(){return s}));var r,o=n("./src/dragdrop/core.ts"),i=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),s=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.fromIndex=null,t.toIndex=null,t.doDrop=function(){return t.parentElement.moveRowByIndex(t.fromIndex,t.toIndex),t.parentElement},t}return i(t,e),Object.defineProperty(t.prototype,"draggedElementType",{get:function(){return"matrix-row"},enumerable:!1,configurable:!0}),t.prototype.onStartDrag=function(){this.restoreUserSelectValue=document.body.style.userSelect,document.body.style.userSelect="none"},t.prototype.createDraggedElementShortcut=function(e,t,n){var r=this,o=document.createElement("div");if(o.style.cssText=" \n          cursor: grabbing;\n          position: absolute;\n          z-index: 10000;\n          font-family: var(--font-family, 'Open Sans');\n        ",t){var i=t.closest("[data-sv-drop-target-matrix-row]"),s=i.cloneNode(!0);s.style.cssText="\n        box-shadow: var(--sjs-shadow-large, 0px 8px 16px 0px rgba(0, 0, 0, 0.1)), var(--sjs-shadow-medium, 0px 2px 6px 0px rgba(0, 0, 0, 0.1));\n        background-color: var(--sjs-general-backcolor, var(--background, #fff));\n        display: flex;\n        flex-grow: 0;\n        flex-shrink: 0;\n        align-items: center;\n        line-height: 0;\n        width: "+i.offsetWidth+"px;\n      ",s.classList.remove("sv-matrix__drag-drop--moveup"),s.classList.remove("sv-matrix__drag-drop--movedown"),this.draggedElement.isDragDropMoveDown=!1,this.draggedElement.isDragDropMoveUp=!1,o.appendChild(s);var a=t.getBoundingClientRect();o.shortcutXOffset=n.clientX-a.x,o.shortcutYOffset=n.clientY-a.y}return this.parentElement.renderedTable.rows.forEach((function(e,t){e.row===r.draggedElement&&(e.isGhostRow=!0)})),this.fromIndex=this.parentElement.visibleRows.indexOf(this.draggedElement),o},t.prototype.getDropTargetByDataAttributeValue=function(e){return this.parentElement.renderedTable.rows.filter((function(t){return t.row&&t.row.id===e}))[0].row},t.prototype.isDropTargetValid=function(e,t){return!0},t.prototype.calculateIsBottom=function(e){var t=this.parentElement.renderedTable.rows.map((function(e){return e.row}));return t.indexOf(this.dropTarget)-t.indexOf(this.draggedElement)>0},t.prototype.afterDragOver=function(t){var n=this;if(!this.isDropTargetDoesntChanged(this.isBottom)&&this.dropTarget!==this.draggedElement){var r,o,i,s=this.parentElement.renderedTable.rows;s.forEach((function(e,t){e.row===n.dropTarget&&(r=t),e.row===n.draggedElement&&(o=t,(i=e).isGhostRow=!0)})),s.splice(o,1),s.splice(r,0,i),this.toIndex=this.parentElement.visibleRows.indexOf(this.dropTarget),e.prototype.ghostPositionChanged.call(this)}},t.prototype.clear=function(){this.parentElement.renderedTable.rows.forEach((function(e){e.isGhostRow=!1})),this.parentElement.clearOnDrop(),this.fromIndex=null,this.toIndex=null,document.body.style.userSelect=this.restoreUserSelectValue||"initial",e.prototype.clear.call(this)},t}(o.DragDropCore)},"./src/dragdrop/ranking-choices.ts":function(e,t,n){"use strict";n.r(t),n.d(t,"DragDropRankingChoices",(function(){return l}));var r,o=n("./src/dragdrop/choices.ts"),i=n("./src/utils/cssClassBuilder.ts"),s=n("./src/utils/devices.ts"),a=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),l=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.isDragOverRootNode=!1,t.doDragOver=function(){t.domAdapter.draggedElementShortcut.querySelector(".sv-ranking-item").style.cursor="grabbing"},t.doBanDropHere=function(){t.isDragOverRootNode?t.allowDropHere=!0:t.domAdapter.draggedElementShortcut.querySelector(".sv-ranking-item").style.cursor="not-allowed"},t.doDrop=function(){return t.parentElement.setValue(),t.parentElement},t}return a(t,e),Object.defineProperty(t.prototype,"draggedElementType",{get:function(){return"ranking-item"},enumerable:!1,configurable:!0}),t.prototype.createDraggedElementShortcut=function(e,t,n){var r=document.createElement("div");r.className=this.shortcutClass+" sv-ranking-shortcut",r.style.cssText=" \n          cursor: grabbing;\n          position: absolute;\n          z-index: 10000;\n          border-radius: calc(12.5 * var(--sjs-base-unit, var(--base-unit, 8px)));\n          min-width: 100px;\n          box-shadow: var(--sjs-shadow-medium, 0px 2px 6px 0px rgba(0, 0, 0, 0.1)), var(--sjs-shadow-large, 0px 8px 16px 0px rgba(0, 0, 0, 0.1));\n          background-color: var(--sjs-general-backcolor, var(--background, #fff));\n          font-family: var(--font-family, 'Open Sans');\n        ";var o=t.cloneNode(!0);r.appendChild(o);var i=t.getBoundingClientRect();return r.shortcutXOffset=n.clientX-i.x,r.shortcutYOffset=n.clientY-i.y,this.parentElement&&this.parentElement.useFullItemSizeForShortcut&&(r.style.width=t.offsetWidth+"px",r.style.height=t.offsetHeight+"px"),r},Object.defineProperty(t.prototype,"shortcutClass",{get:function(){return(new i.CssClassBuilder).append(this.parentElement.cssClasses.root).append(this.parentElement.cssClasses.rootMobileMod,s.IsMobile).toString()},enumerable:!1,configurable:!0}),t.prototype.getDropTargetByDataAttributeValue=function(e){return this.parentElement.rankingChoices[e]},t.prototype.findDropTargetNodeByDragOverNode=function(t){return this.isDragOverRootNode=this.getIsDragOverRootNode(t),e.prototype.findDropTargetNodeByDragOverNode.call(this,t)},t.prototype.getIsDragOverRootNode=function(e){return"string"==typeof e.className&&-1!==e.className.indexOf("sv-ranking")},t.prototype.isDropTargetValid=function(e,t){var n=this.parentElement.rankingChoices,r=n.indexOf(this.dropTarget),o=n.indexOf(this.draggedElement);return o>r&&t.classList.contains("sv-dragdrop-moveup")||o<r&&t.classList.contains("sv-dragdrop-movedown")?(this.parentElement.dropTargetNodeMove=null,!1):-1!==n.indexOf(e)},t.prototype.calculateIsBottom=function(e){var t=this.parentElement.rankingChoices;return t.indexOf(this.dropTarget)-t.indexOf(this.draggedElement)>0},t.prototype.afterDragOver=function(e){var t=this.parentElement.rankingChoices,n=t.indexOf(this.dropTarget),r=t.indexOf(this.draggedElement);t.splice(r,1),t.splice(n,0,this.draggedElement),this.parentElement.setPropertyValue("rankingChoices",t),this.updateDraggedElementShortcut(n+1),r!==n&&(e.classList.remove("sv-dragdrop-moveup"),e.classList.remove("sv-dragdrop-movedown"),this.parentElement.dropTargetNodeMove=null),r>n&&(this.parentElement.dropTargetNodeMove="down"),r<n&&(this.parentElement.dropTargetNodeMove="up")},t.prototype.updateDraggedElementShortcut=function(e){var t=null!==e?e+"":"";this.domAdapter.draggedElementShortcut.querySelector(".sv-ranking-item__index").innerText=t},t.prototype.ghostPositionChanged=function(){this.parentElement.currentDropTarget=this.draggedElement,e.prototype.ghostPositionChanged.call(this)},t.prototype.clear=function(){this.parentElement&&(this.parentElement.dropTargetNodeMove=null,this.parentElement.updateRankingChoices(!0)),e.prototype.clear.call(this)},t}(o.DragDropChoices)},"./src/dragdrop/ranking-select-to-rank.ts":function(e,t,n){"use strict";n.r(t),n.d(t,"DragDropRankingSelectToRank",(function(){return s}));var r,o=n("./src/dragdrop/ranking-choices.ts"),i=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),s=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i(t,e),t.prototype.onStartDrag=function(e){var t=e.target.closest(".sv-ranking__container--from");t&&(t.style.minHeight=t.offsetHeight+"px")},t.prototype.findDropTargetNodeByDragOverNode=function(t){if("from-container"===t.dataset.ranking||"to-container"===t.dataset.ranking)return t;if(this.parentElement.isEmpty()){var n=t.closest("[data-ranking='to-container']"),r=t.closest("[data-ranking='from-container']");return n||r||null}return e.prototype.findDropTargetNodeByDragOverNode.call(this,t)},t.prototype.getDropTargetByDataAttributeValue=function(e){return this.parentElement.rankingChoices[e]||this.parentElement.unRankingChoices[e]},t.prototype.getDropTargetByNode=function(t,n){return"to-container"===t.dataset.ranking?"to-container":"from-container"===t.dataset.ranking||t.closest("[data-ranking='from-container']")?"from-container":e.prototype.getDropTargetByNode.call(this,t,n)},t.prototype.isDropTargetValid=function(t,n){return"to-container"===t||"from-container"===t||e.prototype.isDropTargetValid.call(this,t,n)},t.prototype.afterDragOver=function(e){var t=this.parentElement,n=t.rankingChoices,r=t.unRankingChoices;this.isDraggedElementUnranked&&this.isDropTargetRanked?this.doRankBetween(e,r,n,this.selectToRank):this.isDraggedElementRanked&&this.isDropTargetRanked?this.doRankBetween(e,n,n,this.reorderRankedItem):!this.isDraggedElementRanked||this.isDropTargetRanked||this.doRankBetween(e,n,r,this.unselectFromRank)},t.prototype.doRankBetween=function(e,t,n,r){var o=this.parentElement,i=t.indexOf(this.draggedElement),s=n.indexOf(this.dropTarget);-1===s&&(s=n.length),r(o,i,s),this.doUIEffects(e,i,s)},t.prototype.doUIEffects=function(e,t,n){var r=this.parentElement,o="to-container"===this.dropTarget&&r.isEmpty(),i=!this.isDropTargetUnranked||o?n+1:null;this.updateDraggedElementShortcut(i),t!==n&&(e.classList.remove("sv-dragdrop-moveup"),e.classList.remove("sv-dragdrop-movedown"),r.dropTargetNodeMove=null),t>n&&(r.dropTargetNodeMove="down"),t<n&&(r.dropTargetNodeMove="up")},Object.defineProperty(t.prototype,"isDraggedElementRanked",{get:function(){return-1!==this.parentElement.rankingChoices.indexOf(this.draggedElement)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isDropTargetRanked",{get:function(){return"to-container"===this.dropTarget||-1!==this.parentElement.rankingChoices.indexOf(this.dropTarget)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isDraggedElementUnranked",{get:function(){return!this.isDraggedElementRanked},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isDropTargetUnranked",{get:function(){return!this.isDropTargetRanked},enumerable:!1,configurable:!0}),t.prototype.selectToRank=function(e,t,n){var r=e.rankingChoices,o=e.unRankingChoices[t];r.splice(n,0,o),e.setPropertyValue("rankingChoices",r)},t.prototype.unselectFromRank=function(e,t,n){var r=e.rankingChoices;r.splice(t,1),e.setPropertyValue("rankingChoices",r)},t.prototype.reorderRankedItem=function(e,t,n){var r=e.rankingChoices,o=r[t];r.splice(t,1),r.splice(n,0,o),e.setPropertyValue("rankingChoices",r)},t}(o.DragDropRankingChoices)},"./src/dropdownListModel.ts":function(e,t,n){"use strict";n.r(t),n.d(t,"DropdownListModel",(function(){return g}));var r,o=n("./src/base.ts"),i=n("./src/itemvalue.ts"),s=n("./src/jsonobject.ts"),a=n("./src/list.ts"),l=n("./src/popup.ts"),u=n("./src/question_dropdown.ts"),c=n("./src/utils/cssClassBuilder.ts"),p=n("./src/utils/devices.ts"),d=n("./src/utils/utils.ts"),h=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),f=function(e,t,n,r){var o,i=arguments.length,s=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,r);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(i<3?o(s):i>3?o(t,n,s):o(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},g=function(e){function t(t,n){var r=e.call(this)||this;return r.question=t,r.onSelectionChanged=n,r.minPageSize=25,r.loadingItemHeight=40,r._markdownMode=!1,r.selectedItemSelector=".sv-list__item--selected",r.itemSelector=".sv-list__item",r.itemsSettings={skip:0,take:0,totalCount:0,items:[]},r.isRunningLoadQuestionChoices=!1,r.popupCssClasses="sv-single-select-list",r.listModelFilterStringChanged=function(e){r.filterString!==e&&(r.filterString=e)},t.onPropertyChanged.add((function(e,t){r.onPropertyChangedHandler(e,t)})),r.showInputFieldComponent=r.question.showInputFieldComponent,r.listModel=r.createListModel(),r.updateAfterListModelCreated(r.listModel),r.setSearchEnabled(r.question.searchEnabled),r.createPopup(),r.resetItemsSettings(),r}return h(t,e),Object.defineProperty(t.prototype,"focusFirstInputSelector",{get:function(){return this.getFocusFirstInputSelector()},enumerable:!1,configurable:!0}),t.prototype.getFocusFirstInputSelector=function(){return p.IsTouch?this.isValueEmpty(this.question.value)?this.itemSelector:this.selectedItemSelector:!this.listModel.showFilter&&this.question.value?this.selectedItemSelector:""},t.prototype.resetItemsSettings=function(){this.itemsSettings.skip=0,this.itemsSettings.take=Math.max(this.minPageSize,this.question.choicesLazyLoadPageSize),this.itemsSettings.totalCount=0,this.itemsSettings.items=[]},t.prototype.setItems=function(e,t){this.itemsSettings.items=[].concat(this.itemsSettings.items,e),this.itemsSettings.totalCount=t,this.listModel.isAllDataLoaded=this.question.choicesLazyLoadEnabled&&this.itemsSettings.items.length==this.itemsSettings.totalCount,this.question.choices=this.itemsSettings.items},t.prototype.updateQuestionChoices=function(e){var t=this;if(!this.isRunningLoadQuestionChoices){var n=this.itemsSettings.skip+1<this.itemsSettings.totalCount;this.itemsSettings.skip&&!n||(this.isRunningLoadQuestionChoices=!0,this.question.survey.loadQuestionChoices({question:this.question,filter:this.filterString,skip:this.itemsSettings.skip,take:this.itemsSettings.take,setItems:function(n,r){t.isRunningLoadQuestionChoices=!1,t.setItems(n||[],r||0),t.popupRecalculatePosition(t.itemsSettings.skip===t.itemsSettings.take),e&&e()}}),this.itemsSettings.skip+=this.itemsSettings.take)}},t.prototype.updatePopupFocusFirstInputSelector=function(){this._popupModel.focusFirstInputSelector=this.focusFirstInputSelector},t.prototype.createPopup=function(){var e=this;this._popupModel=new l.PopupModel("sv-list",{model:this.listModel},"bottom","center",!1),this._popupModel.displayMode=p.IsTouch?"overlay":"popup",this._popupModel.positionMode="fixed",this._popupModel.isFocusedContainer=!1,this._popupModel.isFocusedContent=p.IsTouch,this._popupModel.setWidthByTarget=!p.IsTouch,this.updatePopupFocusFirstInputSelector(),this.listModel.registerPropertyChangedHandlers(["showFilter"],(function(){e.updatePopupFocusFirstInputSelector()})),this._popupModel.cssClass=this.popupCssClasses,this._popupModel.onVisibilityChanged.add((function(t,n){n.isVisible&&(e.listModel.renderElements=!0),n.isVisible&&e.question.choicesLazyLoadEnabled&&(e.listModel.actions=[],e.updateQuestionChoices()),n.isVisible&&e.question.onOpenedCallBack&&(e.updatePopupFocusFirstInputSelector(),e.question.onOpenedCallBack()),n.isVisible||(e.onHidePopup(),e.question.choicesLazyLoadEnabled&&e.resetItemsSettings()),e.question.processPopupVisiblilityChanged(e.popupModel,n.isVisible)}))},t.prototype.setFilterStringToListModel=function(e){var t=this;if(this.listModel.filterString=e,this.listModel.resetFocusedItem(),this.question.selectedItem&&this.question.selectedItem.text.indexOf(e)>=0)return this.listModel.focusedItem=this.getAvailableItems().filter((function(e){return e.id==t.question.selectedItem.value}))[0],void(this.listModel.filterString&&this.listModel.actions.map((function(e){return e.selectedValue=!1})));this.listModel.focusedItem&&this.listModel.isItemVisible(this.listModel.focusedItem)||this.listModel.focusFirstVisibleItem()},t.prototype.popupRecalculatePosition=function(e){var t=this;setTimeout((function(){t.popupModel.recalculatePosition(e)}),1)},t.prototype.onHidePopup=function(){this.resetFilterString(),this.question.suggestedItem=null,this.listModel.refresh()},t.prototype.getAvailableItems=function(){return this.question.visibleChoices},t.prototype.createListModel=function(){var e=this,t=this.getAvailableItems(),n=this.onSelectionChanged;n||(n=function(t){e.question.value=t.id,e.question.searchEnabled&&e.applyInputString(t),e._popupModel.toggleVisibility()});var r=new a.ListModel(t,n,!1,void 0,this.question.choicesLazyLoadEnabled?this.listModelFilterStringChanged:void 0,this.listElementId);return r.renderElements=!1,r.forceShowFilter=!0,r.areSameItemsCallback=function(e,t){return e===t},r},t.prototype.updateAfterListModelCreated=function(e){var t=this;e.isItemSelected=function(e){return!!e.selected},e.locOwner=this.question,e.onPropertyChanged.add((function(e,n){"hasVerticalScroller"==n.name&&(t.hasScroll=n.newValue)})),e.isAllDataLoaded=!this.question.choicesLazyLoadEnabled},t.prototype.updateCssClasses=function(e,t){this.popupModel.cssClass=(new c.CssClassBuilder).append(e).append(this.popupCssClasses).toString(),this.listModel.cssClasses=t},t.prototype.resetFilterString=function(){this.filterString&&(this.filterString=void 0)},t.prototype.clear=function(){this.inputString=null,this.hintString="",this.resetFilterString()},t.prototype.onSetFilterString=function(){var e=this;this.filterString&&!this.popupModel.isVisible&&(this.popupModel.isVisible=!0);var t=function(){e.setFilterStringToListModel(e.filterString),e.popupRecalculatePosition(!0)};this.question.choicesLazyLoadEnabled?(this.resetItemsSettings(),this.updateQuestionChoices(t)):t()},Object.defineProperty(t.prototype,"isAllDataLoaded",{get:function(){return!!this.itemsSettings.totalCount&&this.itemsSettings.items.length==this.itemsSettings.totalCount},enumerable:!1,configurable:!0}),t.prototype.applyInputString=function(e){(null==e?void 0:e.locText.hasHtml)||this.question.inputFieldComponentName?(this._markdownMode=!0,this.inputString="",this.hintString=""):(this.inputString=null==e?void 0:e.title,this.hintString=null==e?void 0:e.title)},t.prototype.fixInputCase=function(){var e=this.hintStringMiddle;e&&this.inputString!=e&&(this.inputString=e)},t.prototype.applyHintString=function(e){(null==e?void 0:e.locText.hasHtml)||this.question.inputFieldComponentName?(this._markdownMode=!0,this.hintString=""):this.hintString=null==e?void 0:e.title},Object.defineProperty(t.prototype,"inputStringRendered",{get:function(){return this.inputString||""},set:function(e){this.inputString=e,this.filterString=e,this.applyHintString(this.listModel.focusedItem||this.question.selectedItem)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"placeholderRendered",{get:function(){return this.hintString?"":this.question.readOnlyText},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"listElementId",{get:function(){return this.question.inputId+"_list"},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hintStringLC",{get:function(){var e;return(null===(e=this.hintString)||void 0===e?void 0:e.toLowerCase())||""},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"inputStringLC",{get:function(){var e;return(null===(e=this.inputString)||void 0===e?void 0:e.toLowerCase())||""},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"showHintPrefix",{get:function(){return!!this.inputString&&this.hintStringLC.indexOf(this.inputStringLC)>0},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hintStringPrefix",{get:function(){return this.inputString?this.hintString.substring(0,this.hintStringLC.indexOf(this.inputStringLC)):null},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"showHintString",{get:function(){return!!this.question.searchEnabled&&this.hintStringLC&&this.hintStringLC.indexOf(this.inputStringLC)>=0||!this.question.searchEnabled&&this.hintStringLC&&this.question.isEmpty()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hintStringSuffix",{get:function(){return this.hintString.substring(this.hintStringLC.indexOf(this.inputStringLC)+this.inputStringLC.length)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hintStringMiddle",{get:function(){var e=this.hintStringLC.indexOf(this.inputStringLC);return-1==e?null:this.hintString.substring(e,e+this.inputStringLC.length)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"popupModel",{get:function(){return this._popupModel},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"inputReadOnly",{get:function(){return this.question.isInputReadOnly||this.searchEnabled},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 p.IsTouch?"none":"text"},enumerable:!1,configurable:!0}),t.prototype.setSearchEnabled=function(e){this.listModel.searchEnabled=p.IsTouch,this.listModel.showSearchClearButton=p.IsTouch,this.searchEnabled=e},t.prototype.updateItems=function(){this.listModel.setItems(this.getAvailableItems())},t.prototype.onClick=function(e){if(!this.question.readOnly&&(this._popupModel.toggleVisibility(),this.focusItemOnClickAndPopup(),this.searchEnabled&&e&&e.target)){var t=e.target.querySelector("input");t&&t.focus()}},t.prototype.onPropertyChangedHandler=function(e,t){"value"==t.name&&(this.showInputFieldComponent=this.question.showInputFieldComponent)},t.prototype.focusItemOnClickAndPopup=function(){this._popupModel.isVisible&&this.question.value&&this.changeSelectionWithKeyboard(!1)},t.prototype.onClear=function(e){this.question.clearValue(),this._popupModel.isVisible=!1,e&&(e.preventDefault(),e.stopPropagation())},t.prototype.getSelectedAction=function(){return this.question.selectedItem||null},t.prototype.changeSelectionWithKeyboard=function(e){var t,n=this.listModel.focusedItem;!n&&this.question.selectedItem?i.ItemValue.getItemByValue(this.question.choices,this.question.value)&&(this.listModel.focusedItem=this.question.selectedItem):e?this.listModel.focusPrevVisibleItem():this.listModel.focusNextVisibleItem(),this.beforeScrollToFocusedItem(n),this.scrollToFocusedItem(),this.afterScrollToFocusedItem(),this.ariaActivedescendant=null===(t=this.listModel.focusedItem)||void 0===t?void 0:t.elementId},t.prototype.beforeScrollToFocusedItem=function(e){this.question.value&&e&&(e.selectedValue=!1,this.listModel.focusedItem.selectedValue=!this.listModel.filterString,this.question.suggestedItem=this.listModel.focusedItem)},t.prototype.afterScrollToFocusedItem=function(){var e;this.question.value&&!this.listModel.filterString&&this.question.searchEnabled?this.applyInputString(this.listModel.focusedItem||this.question.selectedItem):this.applyHintString(this.listModel.focusedItem||this.question.selectedItem),this.fixInputCase(),this.ariaActivedescendant=null===(e=this.listModel.focusedItem)||void 0===e?void 0:e.elementId},t.prototype.keyHandler=function(e){var t=e.which||e.keyCode;if(this.popupModel.isVisible&&38===e.keyCode?(this.changeSelectionWithKeyboard(!0),e.preventDefault(),e.stopPropagation()):40===e.keyCode&&(this.popupModel.isVisible||this.popupModel.toggleVisibility(),this.changeSelectionWithKeyboard(!1),e.preventDefault(),e.stopPropagation()),9===e.keyCode)this.popupModel.isVisible=!1;else if(this.popupModel.isVisible||13!==e.keyCode&&32!==e.keyCode)if(!this.popupModel.isVisible||13!==e.keyCode&&(32!==e.keyCode||this.question.searchEnabled&&this.inputString))if(46===t||8===t)this.searchEnabled||this.onClear(e);else if(27===e.keyCode)this._popupModel.isVisible=!1,this.hintString="",this.onEscape();else{if((38===e.keyCode||40===e.keyCode||32===e.keyCode&&!this.question.searchEnabled)&&(e.preventDefault(),e.stopPropagation()),32===e.keyCode&&this.question.searchEnabled)return;Object(d.doKey2ClickUp)(e,{processEsc:!1,disableTabStop:this.question.isInputReadOnly})}else 13===e.keyCode&&this.question.searchEnabled&&!this.inputString&&this.question instanceof u.QuestionDropdownModel&&!this._markdownMode&&this.question.value?(this._popupModel.isVisible=!1,this.onClear(e),this.question.survey.questionEditFinishCallback(this.question,e)):(this.listModel.selectFocusedItem(),this.onFocus(e),this.question.survey.questionEditFinishCallback(this.question,e)),e.preventDefault(),e.stopPropagation();else this.popupModel.toggleVisibility(),this.changeSelectionWithKeyboard(!1),e.preventDefault(),e.stopPropagation()},t.prototype.onEscape=function(){this.question.searchEnabled&&this.applyInputString(this.question.selectedItem)},t.prototype.onScroll=function(e){var t=e.target;t.scrollHeight-(t.scrollTop+t.offsetHeight)<=this.loadingItemHeight&&this.updateQuestionChoices()},t.prototype.onBlur=function(e){this.focused=!1,this.popupModel.isVisible&&p.IsTouch?this._popupModel.isVisible=!0:(this.resetFilterString(),this.inputString=null,this.hintString="",Object(d.doKey2ClickBlur)(e),this._popupModel.isVisible=!1,e.stopPropagation())},t.prototype.onFocus=function(e){this.focused=!0,this.setInputStringFromSelectedItem(this.question.selectedItem)},t.prototype.setInputStringFromSelectedItem=function(e){this.focused&&(this.question.searchEnabled&&e?this.applyInputString(e):this.inputString=null)},t.prototype.dispose=function(){e.prototype.dispose.call(this),this.listModel&&this.listModel.dispose(),this.popupModel&&this.popupModel.dispose()},t.prototype.scrollToFocusedItem=function(){this.listModel.scrollToFocusedItem()},f([Object(s.property)({defaultValue:!0})],t.prototype,"searchEnabled",void 0),f([Object(s.property)({defaultValue:"",onSet:function(e,t){t.onSetFilterString()}})],t.prototype,"filterString",void 0),f([Object(s.property)({defaultValue:"",onSet:function(e,t){t.question.inputHasValue=!!e}})],t.prototype,"inputString",void 0),f([Object(s.property)({})],t.prototype,"showInputFieldComponent",void 0),f([Object(s.property)()],t.prototype,"ariaActivedescendant",void 0),f([Object(s.property)({defaultValue:!1,onSet:function(e,t){e?t.listModel.addScrollEventListener((function(e){t.onScroll(e)})):t.listModel.removeScrollEventListener()}})],t.prototype,"hasScroll",void 0),f([Object(s.property)({defaultValue:""})],t.prototype,"hintString",void 0),t}(o.Base)},"./src/dropdownMultiSelectListModel.ts":function(e,t,n){"use strict";n.r(t),n.d(t,"DropdownMultiSelectListModel",(function(){return d}));var r,o=n("./src/base.ts"),i=n("./src/dropdownListModel.ts"),s=n("./src/jsonobject.ts"),a=n("./src/multiSelectListModel.ts"),l=n("./src/settings.ts"),u=n("./src/utils/devices.ts"),c=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),p=function(e,t,n,r){var o,i=arguments.length,s=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,r);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(i<3?o(s):i>3?o(t,n,s):o(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},d=function(e){function t(t,n){var r=e.call(this,t,n)||this;return r.popupCssClasses="sv-multi-select-list",r.setHideSelectedItems(t.hideSelectedItems),r.syncFilterStringPlaceholder(),r.closeOnSelect=t.closeOnSelect,r}return c(t,e),t.prototype.updateListState=function(){this.listModel.updateState(),this.syncFilterStringPlaceholder()},t.prototype.syncFilterStringPlaceholder=function(){this.getSelectedActions().length||this.question.selectedItems.length||this.listModel.focusedItem?this.filterStringPlaceholder=void 0:this.filterStringPlaceholder=this.question.placeholder},t.prototype.getSelectedActions=function(){return this.listModel.actions.filter((function(e){return e.selected}))},t.prototype.getFocusFirstInputSelector=function(){return this.listModel.hideSelectedItems&&u.IsTouch&&!this.isValueEmpty(this.question.value)?this.itemSelector:e.prototype.getFocusFirstInputSelector.call(this)},t.prototype.createListModel=function(){var e=this,t=this.getAvailableItems(),n=this.onSelectionChanged;n||(n=function(t,n){e.resetFilterString(),"selectall"===t.value?e.selectAllItems():"added"===n&&t.value===l.settings.noneItemValue?e.selectNoneItem():"added"===n?e.selectItem(t.value):"removed"===n&&e.deselectItem(t.value),e.popupRecalculatePosition(!1),e.closeOnSelect&&(e.popupModel.isVisible=!1)});var r=new a.MultiSelectListModel(t,n,!1,void 0,this.question.choicesLazyLoadEnabled?this.listModelFilterStringChanged:void 0,this.listElementId);return r.forceShowFilter=!0,r},t.prototype.resetFilterString=function(){e.prototype.resetFilterString.call(this),this.inputString=null,this.hintString=""},Object.defineProperty(t.prototype,"shouldResetAfterCancel",{get:function(){return u.IsTouch&&!this.closeOnSelect},enumerable:!1,configurable:!0}),t.prototype.createPopup=function(){var t=this;e.prototype.createPopup.call(this),this.popupModel.onFooterActionsCreated.add((function(e,n){t.shouldResetAfterCancel&&n.actions.push({id:"sv-dropdown-done-button",title:t.doneButtonCaption,innerCss:"sv-popup__button--done",needSpace:!0,action:function(){t.popupModel.isVisible=!1},enabled:new o.ComputedUpdater((function(){return!t.isTwoValueEquals(t.question.renderedValue,t.previousValue)}))})})),this.popupModel.onVisibilityChanged.add((function(e,n){t.shouldResetAfterCancel&&n.isVisible&&(t.previousValue=[].concat(t.question.renderedValue||[]))})),this.popupModel.onCancel=function(){t.shouldResetAfterCancel&&(t.question.renderedValue=t.previousValue,t.updateListState())}},t.prototype.selectAllItems=function(){this.question.toggleSelectAll(),this.updateListState()},t.prototype.selectNoneItem=function(){this.question.renderedValue=[l.settings.noneItemValue],this.updateListState()},t.prototype.selectItem=function(e){var t=[].concat(this.question.renderedValue||[]);t.push(e),this.question.renderedValue=t,this.updateListState()},t.prototype.deselectItem=function(e){var t=[].concat(this.question.renderedValue||[]);t.splice(t.indexOf(e),1),this.question.renderedValue=t,this.applyHintString(this.listModel.focusedItem),this.updateListState()},t.prototype.clear=function(){e.prototype.clear.call(this),this.syncFilterStringPlaceholder()},t.prototype.onClear=function(t){e.prototype.onClear.call(this,t),this.updateListState()},t.prototype.setHideSelectedItems=function(e){this.listModel.hideSelectedItems=e,this.updateListState()},t.prototype.removeLastSelectedItem=function(){this.deselectItem(this.question.renderedValue[this.question.renderedValue.length-1]),this.popupRecalculatePosition(!1)},t.prototype.inputKeyHandler=function(e){8!==e.keyCode||this.filterString||(this.removeLastSelectedItem(),e.preventDefault(),e.stopPropagation())},t.prototype.setInputStringFromSelectedItem=function(e){this.question.searchEnabled&&(this.inputString=null)},t.prototype.focusItemOnClickAndPopup=function(){},t.prototype.onEscape=function(){},t.prototype.beforeScrollToFocusedItem=function(e){},t.prototype.afterScrollToFocusedItem=function(){var e;(null===(e=this.listModel.focusedItem)||void 0===e?void 0:e.selected)?this.hintString="":this.applyHintString(this.listModel.focusedItem||this.question.selectedItem),this.syncFilterStringPlaceholder()},t.prototype.onPropertyChangedHandler=function(t,n){e.prototype.onPropertyChangedHandler.call(this,t,n),"value"!==n.name&&"renderedValue"!==n.name||this.syncFilterStringPlaceholder()},p([Object(s.property)({defaultValue:""})],t.prototype,"filterStringPlaceholder",void 0),p([Object(s.property)({defaultValue:!0})],t.prototype,"closeOnSelect",void 0),p([Object(s.property)()],t.prototype,"previousValue",void 0),p([Object(s.property)({localizable:{defaultStr:"tagboxDoneButtonCaption"}})],t.prototype,"doneButtonCaption",void 0),t}(i.DropdownListModel)},"./src/dxSurveyService.ts":function(e,t,n){"use strict";n.r(t),n.d(t,"dxSurveyService",(function(){return o}));var r=n("./src/settings.ts"),o=function(){function e(){}return Object.defineProperty(e,"serviceUrl",{get:function(){return r.settings.web.surveyServiceUrl},set:function(e){r.settings.web.surveyServiceUrl=e},enumerable:!1,configurable:!0}),e.prototype.loadSurvey=function(t,n){var r=new XMLHttpRequest;r.open("GET",e.serviceUrl+"/getSurvey?surveyId="+t),r.setRequestHeader("Content-Type","application/x-www-form-urlencoded"),r.onload=function(){var e=JSON.parse(r.response);n(200==r.status,e,r.response)},r.send()},e.prototype.getSurveyJsonAndIsCompleted=function(t,n,r){var o=new XMLHttpRequest;o.open("GET",e.serviceUrl+"/getSurveyAndIsCompleted?surveyId="+t+"&clientId="+n),o.setRequestHeader("Content-Type","application/x-www-form-urlencoded"),o.onload=function(){var e=JSON.parse(o.response),t=e?e.survey:null,n=e?e.isCompleted:null;r(200==o.status,t,n,o.response)},o.send()},e.prototype.sendResult=function(t,n,r,o,i){void 0===o&&(o=null),void 0===i&&(i=!1);var s=new XMLHttpRequest;s.open("POST",e.serviceUrl+"/post/"),s.setRequestHeader("Content-Type","application/json; charset=utf-8");var a={postId:t,surveyResult:JSON.stringify(n)};o&&(a.clientId=o),i&&(a.isPartialCompleted=!0);var l=JSON.stringify(a);s.onload=s.onerror=function(){r&&r(200===s.status,s.response,s)},s.send(l)},e.prototype.sendFile=function(t,n,r){var o=new XMLHttpRequest;o.onload=o.onerror=function(){r&&r(200==o.status,JSON.parse(o.response))},o.open("POST",e.serviceUrl+"/upload/",!0);var i=new FormData;i.append("file",n),i.append("postId",t),o.send(i)},e.prototype.getResult=function(t,n,r){var o=new XMLHttpRequest,i="resultId="+t+"&name="+n;o.open("GET",e.serviceUrl+"/getResult?"+i),o.setRequestHeader("Content-Type","application/x-www-form-urlencoded"),o.onload=function(){var e=null,t=null;if(200==o.status)for(var n in t=[],(e=JSON.parse(o.response)).QuestionResult){var i={name:n,value:e.QuestionResult[n]};t.push(i)}r(200==o.status,e,t,o.response)},o.send()},e.prototype.isCompleted=function(t,n,r){var o=new XMLHttpRequest,i="resultId="+t+"&clientId="+n;o.open("GET",e.serviceUrl+"/isCompleted?"+i),o.setRequestHeader("Content-Type","application/x-www-form-urlencoded"),o.onload=function(){var e=null;200==o.status&&(e=JSON.parse(o.response)),r(200==o.status,e,o.response)},o.send()},e}()},"./src/element-helper.ts":function(e,t,n){"use strict";n.r(t),n.d(t,"ElementHelper",(function(){return r}));var r=function(){function e(){}return e.focusElement=function(e){e&&e.focus()},e.visibility=function(e){var t=window.getComputedStyle(e);return"none"!==t.display&&"hidden"!==t.visibility&&(!e.parentElement||this.visibility(e.parentElement))},e.getNextElementPreorder=function(e){var t=e.nextElementSibling?e.nextElementSibling:e.parentElement.firstElementChild;return this.visibility(t)?t:this.getNextElementPreorder(t)},e.getNextElementPostorder=function(e){var t=e.previousElementSibling?e.previousElementSibling:e.parentElement.lastElementChild;return this.visibility(t)?t:this.getNextElementPostorder(t)},e.hasHorizontalScroller=function(e){return!!e&&e.scrollWidth>e.offsetWidth},e.hasVerticalScroller=function(e){return!!e&&e.scrollHeight>e.offsetHeight},e}()},"./src/entries/chunks/model.ts":function(e,t,n){"use strict";n.r(t),n.d(t,"Version",(function(){return je})),n.d(t,"ReleaseDate",(function(){return ke})),n.d(t,"checkLibraryVersion",(function(){return Le})),n.d(t,"setLicenseKey",(function(){return qe})),n.d(t,"hasLicense",(function(){return Ne}));var r=n("./src/settings.ts");n.d(t,"settings",(function(){return r.settings}));var o=n("./src/helpers.ts");n.d(t,"Helpers",(function(){return o.Helpers}));var i=n("./src/validator.ts");n.d(t,"AnswerCountValidator",(function(){return i.AnswerCountValidator})),n.d(t,"EmailValidator",(function(){return i.EmailValidator})),n.d(t,"NumericValidator",(function(){return i.NumericValidator})),n.d(t,"RegexValidator",(function(){return i.RegexValidator})),n.d(t,"SurveyValidator",(function(){return i.SurveyValidator})),n.d(t,"TextValidator",(function(){return i.TextValidator})),n.d(t,"ValidatorResult",(function(){return i.ValidatorResult})),n.d(t,"ExpressionValidator",(function(){return i.ExpressionValidator})),n.d(t,"ValidatorRunner",(function(){return i.ValidatorRunner}));var s=n("./src/itemvalue.ts");n.d(t,"ItemValue",(function(){return s.ItemValue}));var a=n("./src/base.ts");n.d(t,"Base",(function(){return a.Base})),n.d(t,"Event",(function(){return a.Event})),n.d(t,"EventBase",(function(){return a.EventBase})),n.d(t,"ArrayChanges",(function(){return a.ArrayChanges})),n.d(t,"ComputedUpdater",(function(){return a.ComputedUpdater}));var l=n("./src/survey-error.ts");n.d(t,"SurveyError",(function(){return l.SurveyError}));var u=n("./src/survey-element.ts");n.d(t,"SurveyElementCore",(function(){return u.SurveyElementCore})),n.d(t,"SurveyElement",(function(){return u.SurveyElement})),n.d(t,"DragTypeOverMeEnum",(function(){return u.DragTypeOverMeEnum}));var c=n("./src/calculatedValue.ts");n.d(t,"CalculatedValue",(function(){return c.CalculatedValue}));var p=n("./src/error.ts");n.d(t,"CustomError",(function(){return p.CustomError})),n.d(t,"AnswerRequiredError",(function(){return p.AnswerRequiredError})),n.d(t,"OneAnswerRequiredError",(function(){return p.OneAnswerRequiredError})),n.d(t,"RequreNumericError",(function(){return p.RequreNumericError})),n.d(t,"ExceedSizeError",(function(){return p.ExceedSizeError}));var d=n("./src/localizablestring.ts");n.d(t,"LocalizableString",(function(){return d.LocalizableString})),n.d(t,"LocalizableStrings",(function(){return d.LocalizableStrings}));var h=n("./src/expressionItems.ts");n.d(t,"HtmlConditionItem",(function(){return h.HtmlConditionItem})),n.d(t,"UrlConditionItem",(function(){return h.UrlConditionItem}));var f=n("./src/choicesRestful.ts");n.d(t,"ChoicesRestful",(function(){return f.ChoicesRestful})),n.d(t,"ChoicesRestfull",(function(){return f.ChoicesRestfull}));var g=n("./src/functionsfactory.ts");n.d(t,"FunctionFactory",(function(){return g.FunctionFactory})),n.d(t,"registerFunction",(function(){return g.registerFunction}));var m=n("./src/conditions.ts");n.d(t,"ConditionRunner",(function(){return m.ConditionRunner})),n.d(t,"ExpressionRunner",(function(){return m.ExpressionRunner})),n.d(t,"ExpressionExecutor",(function(){return m.ExpressionExecutor}));var y=n("./src/expressions/expressions.ts");n.d(t,"Operand",(function(){return y.Operand})),n.d(t,"Const",(function(){return y.Const})),n.d(t,"BinaryOperand",(function(){return y.BinaryOperand})),n.d(t,"Variable",(function(){return y.Variable})),n.d(t,"FunctionOperand",(function(){return y.FunctionOperand})),n.d(t,"ArrayOperand",(function(){return y.ArrayOperand})),n.d(t,"UnaryOperand",(function(){return y.UnaryOperand}));var v=n("./src/conditionsParser.ts");n.d(t,"ConditionsParser",(function(){return v.ConditionsParser}));var b=n("./src/conditionProcessValue.ts");n.d(t,"ProcessValue",(function(){return b.ProcessValue}));var C=n("./src/jsonobject.ts");n.d(t,"JsonError",(function(){return C.JsonError})),n.d(t,"JsonIncorrectTypeError",(function(){return C.JsonIncorrectTypeError})),n.d(t,"JsonMetadata",(function(){return C.JsonMetadata})),n.d(t,"JsonMetadataClass",(function(){return C.JsonMetadataClass})),n.d(t,"JsonMissingTypeError",(function(){return C.JsonMissingTypeError})),n.d(t,"JsonMissingTypeErrorBase",(function(){return C.JsonMissingTypeErrorBase})),n.d(t,"JsonObject",(function(){return C.JsonObject})),n.d(t,"JsonObjectProperty",(function(){return C.JsonObjectProperty})),n.d(t,"JsonRequiredPropertyError",(function(){return C.JsonRequiredPropertyError})),n.d(t,"JsonUnknownPropertyError",(function(){return C.JsonUnknownPropertyError})),n.d(t,"Serializer",(function(){return C.Serializer})),n.d(t,"property",(function(){return C.property})),n.d(t,"propertyArray",(function(){return C.propertyArray}));var w=n("./src/question_matrixdropdownbase.ts");n.d(t,"MatrixDropdownCell",(function(){return w.MatrixDropdownCell})),n.d(t,"MatrixDropdownRowModelBase",(function(){return w.MatrixDropdownRowModelBase})),n.d(t,"QuestionMatrixDropdownModelBase",(function(){return w.QuestionMatrixDropdownModelBase}));var x=n("./src/question_matrixdropdowncolumn.ts");n.d(t,"MatrixDropdownColumn",(function(){return x.MatrixDropdownColumn})),n.d(t,"matrixDropdownColumnTypes",(function(){return x.matrixDropdownColumnTypes}));var P=n("./src/question_matrixdropdownrendered.ts");n.d(t,"QuestionMatrixDropdownRenderedCell",(function(){return P.QuestionMatrixDropdownRenderedCell})),n.d(t,"QuestionMatrixDropdownRenderedRow",(function(){return P.QuestionMatrixDropdownRenderedRow})),n.d(t,"QuestionMatrixDropdownRenderedTable",(function(){return P.QuestionMatrixDropdownRenderedTable}));var S=n("./src/question_matrixdropdown.ts");n.d(t,"MatrixDropdownRowModel",(function(){return S.MatrixDropdownRowModel})),n.d(t,"QuestionMatrixDropdownModel",(function(){return S.QuestionMatrixDropdownModel}));var V=n("./src/question_matrixdynamic.ts");n.d(t,"MatrixDynamicRowModel",(function(){return V.MatrixDynamicRowModel})),n.d(t,"QuestionMatrixDynamicModel",(function(){return V.QuestionMatrixDynamicModel}));var E=n("./src/question_matrix.ts");n.d(t,"MatrixRowModel",(function(){return E.MatrixRowModel})),n.d(t,"MatrixCells",(function(){return E.MatrixCells})),n.d(t,"QuestionMatrixModel",(function(){return E.QuestionMatrixModel}));var O=n("./src/martixBase.ts");n.d(t,"QuestionMatrixBaseModel",(function(){return O.QuestionMatrixBaseModel}));var T=n("./src/question_multipletext.ts");n.d(t,"MultipleTextItemModel",(function(){return T.MultipleTextItemModel})),n.d(t,"QuestionMultipleTextModel",(function(){return T.QuestionMultipleTextModel})),n.d(t,"MultipleTextEditorModel",(function(){return T.MultipleTextEditorModel}));var _=n("./src/panel.ts");n.d(t,"PanelModel",(function(){return _.PanelModel})),n.d(t,"PanelModelBase",(function(){return _.PanelModelBase})),n.d(t,"QuestionRowModel",(function(){return _.QuestionRowModel}));var R=n("./src/flowpanel.ts");n.d(t,"FlowPanelModel",(function(){return R.FlowPanelModel}));var I=n("./src/page.ts");n.d(t,"PageModel",(function(){return I.PageModel})),n("./src/template-renderer.ts");var D=n("./src/defaultTitle.ts");n.d(t,"DefaultTitleModel",(function(){return D.DefaultTitleModel}));var j=n("./src/question.ts");n.d(t,"Question",(function(){return j.Question}));var k=n("./src/questionnonvalue.ts");n.d(t,"QuestionNonValue",(function(){return k.QuestionNonValue}));var M=n("./src/question_empty.ts");n.d(t,"QuestionEmptyModel",(function(){return M.QuestionEmptyModel}));var L=n("./src/question_baseselect.ts");n.d(t,"QuestionCheckboxBase",(function(){return L.QuestionCheckboxBase})),n.d(t,"QuestionSelectBase",(function(){return L.QuestionSelectBase}));var q=n("./src/question_checkbox.ts");n.d(t,"QuestionCheckboxModel",(function(){return q.QuestionCheckboxModel}));var N=n("./src/question_tagbox.ts");n.d(t,"QuestionTagboxModel",(function(){return N.QuestionTagboxModel}));var A=n("./src/question_ranking.ts");n.d(t,"QuestionRankingModel",(function(){return A.QuestionRankingModel}));var B=n("./src/question_comment.ts");n.d(t,"QuestionCommentModel",(function(){return B.QuestionCommentModel}));var F=n("./src/question_dropdown.ts");n.d(t,"QuestionDropdownModel",(function(){return F.QuestionDropdownModel}));var Q=n("./src/questionfactory.ts");n.d(t,"QuestionFactory",(function(){return Q.QuestionFactory})),n.d(t,"ElementFactory",(function(){return Q.ElementFactory}));var z=n("./src/question_file.ts");n.d(t,"QuestionFileModel",(function(){return z.QuestionFileModel}));var H=n("./src/question_html.ts");n.d(t,"QuestionHtmlModel",(function(){return H.QuestionHtmlModel}));var U=n("./src/question_radiogroup.ts");n.d(t,"QuestionRadiogroupModel",(function(){return U.QuestionRadiogroupModel}));var W=n("./src/question_rating.ts");n.d(t,"QuestionRatingModel",(function(){return W.QuestionRatingModel})),n.d(t,"RenderedRatingItem",(function(){return W.RenderedRatingItem}));var J=n("./src/question_expression.ts");n.d(t,"QuestionExpressionModel",(function(){return J.QuestionExpressionModel}));var $=n("./src/question_textbase.ts");n.d(t,"QuestionTextBase",(function(){return $.QuestionTextBase})),n.d(t,"CharacterCounter",(function(){return $.CharacterCounter}));var G=n("./src/question_text.ts");n.d(t,"QuestionTextModel",(function(){return G.QuestionTextModel}));var K=n("./src/question_boolean.ts");n.d(t,"QuestionBooleanModel",(function(){return K.QuestionBooleanModel}));var Z=n("./src/question_imagepicker.ts");n.d(t,"QuestionImagePickerModel",(function(){return Z.QuestionImagePickerModel})),n.d(t,"ImageItemValue",(function(){return Z.ImageItemValue}));var Y=n("./src/question_image.ts");n.d(t,"QuestionImageModel",(function(){return Y.QuestionImageModel}));var X=n("./src/question_signaturepad.ts");n.d(t,"QuestionSignaturePadModel",(function(){return X.QuestionSignaturePadModel}));var ee=n("./src/question_paneldynamic.ts");n.d(t,"QuestionPanelDynamicModel",(function(){return ee.QuestionPanelDynamicModel})),n.d(t,"QuestionPanelDynamicItem",(function(){return ee.QuestionPanelDynamicItem}));var te=n("./src/surveytimer.ts");n.d(t,"SurveyTimer",(function(){return te.SurveyTimer}));var ne=n("./src/surveyTimerModel.ts");n.d(t,"SurveyTimerModel",(function(){return ne.SurveyTimerModel}));var re=n("./src/surveyToc.ts");n.d(t,"tryNavigateToPage",(function(){return re.tryNavigateToPage})),n.d(t,"tryFocusPage",(function(){return re.tryFocusPage})),n.d(t,"createTOCListModel",(function(){return re.createTOCListModel})),n.d(t,"getTocRootCss",(function(){return re.getTocRootCss})),n.d(t,"TOCModel",(function(){return re.TOCModel}));var oe=n("./src/surveyProgress.ts");n.d(t,"SurveyProgressModel",(function(){return oe.SurveyProgressModel}));var ie=n("./src/surveyProgressButtons.ts");n.d(t,"SurveyProgressButtonsModel",(function(){return ie.SurveyProgressButtonsModel})),n("./src/themes.ts");var se=n("./src/survey.ts");n.d(t,"SurveyModel",(function(){return se.SurveyModel})),n("./src/survey-events-api.ts");var ae=n("./src/trigger.ts");n.d(t,"SurveyTrigger",(function(){return ae.SurveyTrigger})),n.d(t,"SurveyTriggerComplete",(function(){return ae.SurveyTriggerComplete})),n.d(t,"SurveyTriggerSetValue",(function(){return ae.SurveyTriggerSetValue})),n.d(t,"SurveyTriggerVisible",(function(){return ae.SurveyTriggerVisible})),n.d(t,"SurveyTriggerCopyValue",(function(){return ae.SurveyTriggerCopyValue})),n.d(t,"SurveyTriggerRunExpression",(function(){return ae.SurveyTriggerRunExpression})),n.d(t,"Trigger",(function(){return ae.Trigger}));var le=n("./src/popup-survey.ts");n.d(t,"PopupSurveyModel",(function(){return le.PopupSurveyModel})),n.d(t,"SurveyWindowModel",(function(){return le.SurveyWindowModel}));var ue=n("./src/textPreProcessor.ts");n.d(t,"TextPreProcessor",(function(){return ue.TextPreProcessor}));var ce=n("./src/notifier.ts");n.d(t,"Notifier",(function(){return ce.Notifier}));var pe=n("./src/dxSurveyService.ts");n.d(t,"dxSurveyService",(function(){return pe.dxSurveyService}));var de=n("./src/localization/english.ts");n.d(t,"englishStrings",(function(){return de.englishStrings}));var he=n("./src/surveyStrings.ts");n.d(t,"surveyLocalization",(function(){return he.surveyLocalization})),n.d(t,"surveyStrings",(function(){return he.surveyStrings}));var fe=n("./src/questionCustomWidgets.ts");n.d(t,"QuestionCustomWidget",(function(){return fe.QuestionCustomWidget})),n.d(t,"CustomWidgetCollection",(function(){return fe.CustomWidgetCollection}));var ge=n("./src/question_custom.ts");n.d(t,"QuestionCustomModel",(function(){return ge.QuestionCustomModel})),n.d(t,"QuestionCompositeModel",(function(){return ge.QuestionCompositeModel})),n.d(t,"ComponentQuestionJSON",(function(){return ge.ComponentQuestionJSON})),n.d(t,"ComponentCollection",(function(){return ge.ComponentCollection}));var me=n("./src/stylesmanager.ts");n.d(t,"StylesManager",(function(){return me.StylesManager}));var ye=n("./src/list.ts");n.d(t,"ListModel",(function(){return ye.ListModel}));var ve=n("./src/multiSelectListModel.ts");n.d(t,"MultiSelectListModel",(function(){return ve.MultiSelectListModel}));var be=n("./src/popup.ts");n.d(t,"PopupModel",(function(){return be.PopupModel})),n.d(t,"createDialogOptions",(function(){return be.createDialogOptions}));var Ce=n("./src/popup-view-model.ts");n.d(t,"PopupBaseViewModel",(function(){return Ce.PopupBaseViewModel}));var we=n("./src/popup-dropdown-view-model.ts");n.d(t,"PopupDropdownViewModel",(function(){return we.PopupDropdownViewModel}));var xe=n("./src/popup-modal-view-model.ts");n.d(t,"PopupModalViewModel",(function(){return xe.PopupModalViewModel}));var Pe=n("./src/popup-utils.ts");n.d(t,"createPopupViewModel",(function(){return Pe.createPopupViewModel})),n.d(t,"createPopupModalViewModel",(function(){return Pe.createPopupModalViewModel}));var Se=n("./src/dropdownListModel.ts");n.d(t,"DropdownListModel",(function(){return Se.DropdownListModel}));var Ve=n("./src/dropdownMultiSelectListModel.ts");n.d(t,"DropdownMultiSelectListModel",(function(){return Ve.DropdownMultiSelectListModel}));var Ee=n("./src/question_buttongroup.ts");n.d(t,"QuestionButtonGroupModel",(function(){return Ee.QuestionButtonGroupModel})),n.d(t,"ButtonGroupItemModel",(function(){return Ee.ButtonGroupItemModel})),n.d(t,"ButtonGroupItemValue",(function(){return Ee.ButtonGroupItemValue}));var Oe=n("./src/utils/devices.ts");n.d(t,"IsMobile",(function(){return Oe.IsMobile})),n.d(t,"IsTouch",(function(){return Oe.IsTouch})),n.d(t,"_setIsTouch",(function(){return Oe._setIsTouch}));var Te=n("./src/utils/utils.ts");n.d(t,"confirmAction",(function(){return Te.confirmAction})),n.d(t,"detectIEOrEdge",(function(){return Te.detectIEOrEdge})),n.d(t,"doKey2ClickUp",(function(){return Te.doKey2ClickUp})),n.d(t,"doKey2ClickDown",(function(){return Te.doKey2ClickDown})),n.d(t,"doKey2ClickBlur",(function(){return Te.doKey2ClickBlur})),n.d(t,"loadFileFromBase64",(function(){return Te.loadFileFromBase64})),n.d(t,"increaseHeightByContent",(function(){return Te.increaseHeightByContent})),n.d(t,"createSvg",(function(){return Te.createSvg})),n.d(t,"sanitizeEditableContent",(function(){return Te.sanitizeEditableContent}));var _e=n("./src/utils/cssClassBuilder.ts");n.d(t,"CssClassBuilder",(function(){return _e.CssClassBuilder}));var Re=n("./src/defaultCss/defaultV2Css.ts");n.d(t,"surveyCss",(function(){return Re.surveyCss})),n.d(t,"defaultV2Css",(function(){return Re.defaultV2Css})),n.d(t,"defaultV2ThemeName",(function(){return Re.defaultV2ThemeName}));var Ie=n("./src/dragdrop/core.ts");n.d(t,"DragDropCore",(function(){return Ie.DragDropCore}));var De=n("./src/dragdrop/choices.ts");n.d(t,"DragDropChoices",(function(){return De.DragDropChoices}));var je,ke,Me=n("./src/dragdrop/ranking-select-to-rank.ts");function Le(e,t){if(je!=e){var n="survey-core has version '"+je+"' and "+t+" has version '"+e+"'. SurveyJS libraries should have the same versions to work correctly.";console.error(n)}}function qe(e){!function(e,t,n){if(e){var r=function(e){var t,n,r,o={},i=0,s=0,a="",l=String.fromCharCode,u=e.length;for(t=0;t<64;t++)o["ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt(t)]=t;for(n=0;n<u;n++)for(i=(i<<6)+o[e.charAt(n)],s+=6;s>=8;)((r=i>>>(s-=8)&255)||n<u-2)&&(a+=l(r));return a}(e);if(r){var o=r.indexOf(";");o<0||(r=r.substring(o+1)).split(",").forEach((function(e){var r=e.indexOf("=");r>0&&(t[e.substring(0,r)]=new Date(n)<=new Date(e.substring(r+1)))}))}}}(e,Ae,ke)}function Ne(e){return!0===Ae[e.toString()]}n.d(t,"DragDropRankingSelectToRank",(function(){return Me.DragDropRankingSelectToRank})),je="1.9.103",ke="2023-08-15";var Ae={}},"./src/entries/core-wo-model.ts":function(e,t,n){"use strict";n.r(t);var r=n("./src/entries/chunks/model.ts");n.d(t,"Version",(function(){return r.Version})),n.d(t,"ReleaseDate",(function(){return r.ReleaseDate})),n.d(t,"checkLibraryVersion",(function(){return r.checkLibraryVersion})),n.d(t,"setLicenseKey",(function(){return r.setLicenseKey})),n.d(t,"hasLicense",(function(){return r.hasLicense})),n.d(t,"settings",(function(){return r.settings})),n.d(t,"Helpers",(function(){return r.Helpers})),n.d(t,"AnswerCountValidator",(function(){return r.AnswerCountValidator})),n.d(t,"EmailValidator",(function(){return r.EmailValidator})),n.d(t,"NumericValidator",(function(){return r.NumericValidator})),n.d(t,"RegexValidator",(function(){return r.RegexValidator})),n.d(t,"SurveyValidator",(function(){return r.SurveyValidator})),n.d(t,"TextValidator",(function(){return r.TextValidator})),n.d(t,"ValidatorResult",(function(){return r.ValidatorResult})),n.d(t,"ExpressionValidator",(function(){return r.ExpressionValidator})),n.d(t,"ValidatorRunner",(function(){return r.ValidatorRunner})),n.d(t,"ItemValue",(function(){return r.ItemValue})),n.d(t,"Base",(function(){return r.Base})),n.d(t,"Event",(function(){return r.Event})),n.d(t,"EventBase",(function(){return r.EventBase})),n.d(t,"ArrayChanges",(function(){return r.ArrayChanges})),n.d(t,"ComputedUpdater",(function(){return r.ComputedUpdater})),n.d(t,"SurveyError",(function(){return r.SurveyError})),n.d(t,"SurveyElementCore",(function(){return r.SurveyElementCore})),n.d(t,"SurveyElement",(function(){return r.SurveyElement})),n.d(t,"DragTypeOverMeEnum",(function(){return r.DragTypeOverMeEnum})),n.d(t,"CalculatedValue",(function(){return r.CalculatedValue})),n.d(t,"CustomError",(function(){return r.CustomError})),n.d(t,"AnswerRequiredError",(function(){return r.AnswerRequiredError})),n.d(t,"OneAnswerRequiredError",(function(){return r.OneAnswerRequiredError})),n.d(t,"RequreNumericError",(function(){return r.RequreNumericError})),n.d(t,"ExceedSizeError",(function(){return r.ExceedSizeError})),n.d(t,"LocalizableString",(function(){return r.LocalizableString})),n.d(t,"LocalizableStrings",(function(){return r.LocalizableStrings})),n.d(t,"HtmlConditionItem",(function(){return r.HtmlConditionItem})),n.d(t,"UrlConditionItem",(function(){return r.UrlConditionItem})),n.d(t,"ChoicesRestful",(function(){return r.ChoicesRestful})),n.d(t,"ChoicesRestfull",(function(){return r.ChoicesRestfull})),n.d(t,"FunctionFactory",(function(){return r.FunctionFactory})),n.d(t,"registerFunction",(function(){return r.registerFunction})),n.d(t,"ConditionRunner",(function(){return r.ConditionRunner})),n.d(t,"ExpressionRunner",(function(){return r.ExpressionRunner})),n.d(t,"ExpressionExecutor",(function(){return r.ExpressionExecutor})),n.d(t,"Operand",(function(){return r.Operand})),n.d(t,"Const",(function(){return r.Const})),n.d(t,"BinaryOperand",(function(){return r.BinaryOperand})),n.d(t,"Variable",(function(){return r.Variable})),n.d(t,"FunctionOperand",(function(){return r.FunctionOperand})),n.d(t,"ArrayOperand",(function(){return r.ArrayOperand})),n.d(t,"UnaryOperand",(function(){return r.UnaryOperand})),n.d(t,"ConditionsParser",(function(){return r.ConditionsParser})),n.d(t,"ProcessValue",(function(){return r.ProcessValue})),n.d(t,"JsonError",(function(){return r.JsonError})),n.d(t,"JsonIncorrectTypeError",(function(){return r.JsonIncorrectTypeError})),n.d(t,"JsonMetadata",(function(){return r.JsonMetadata})),n.d(t,"JsonMetadataClass",(function(){return r.JsonMetadataClass})),n.d(t,"JsonMissingTypeError",(function(){return r.JsonMissingTypeError})),n.d(t,"JsonMissingTypeErrorBase",(function(){return r.JsonMissingTypeErrorBase})),n.d(t,"JsonObject",(function(){return r.JsonObject})),n.d(t,"JsonObjectProperty",(function(){return r.JsonObjectProperty})),n.d(t,"JsonRequiredPropertyError",(function(){return r.JsonRequiredPropertyError})),n.d(t,"JsonUnknownPropertyError",(function(){return r.JsonUnknownPropertyError})),n.d(t,"Serializer",(function(){return r.Serializer})),n.d(t,"property",(function(){return r.property})),n.d(t,"propertyArray",(function(){return r.propertyArray})),n.d(t,"MatrixDropdownCell",(function(){return r.MatrixDropdownCell})),n.d(t,"MatrixDropdownRowModelBase",(function(){return r.MatrixDropdownRowModelBase})),n.d(t,"QuestionMatrixDropdownModelBase",(function(){return r.QuestionMatrixDropdownModelBase})),n.d(t,"MatrixDropdownColumn",(function(){return r.MatrixDropdownColumn})),n.d(t,"matrixDropdownColumnTypes",(function(){return r.matrixDropdownColumnTypes})),n.d(t,"QuestionMatrixDropdownRenderedCell",(function(){return r.QuestionMatrixDropdownRenderedCell})),n.d(t,"QuestionMatrixDropdownRenderedRow",(function(){return r.QuestionMatrixDropdownRenderedRow})),n.d(t,"QuestionMatrixDropdownRenderedTable",(function(){return r.QuestionMatrixDropdownRenderedTable})),n.d(t,"MatrixDropdownRowModel",(function(){return r.MatrixDropdownRowModel})),n.d(t,"QuestionMatrixDropdownModel",(function(){return r.QuestionMatrixDropdownModel})),n.d(t,"MatrixDynamicRowModel",(function(){return r.MatrixDynamicRowModel})),n.d(t,"QuestionMatrixDynamicModel",(function(){return r.QuestionMatrixDynamicModel})),n.d(t,"MatrixRowModel",(function(){return r.MatrixRowModel})),n.d(t,"MatrixCells",(function(){return r.MatrixCells})),n.d(t,"QuestionMatrixModel",(function(){return r.QuestionMatrixModel})),n.d(t,"QuestionMatrixBaseModel",(function(){return r.QuestionMatrixBaseModel})),n.d(t,"MultipleTextItemModel",(function(){return r.MultipleTextItemModel})),n.d(t,"QuestionMultipleTextModel",(function(){return r.QuestionMultipleTextModel})),n.d(t,"MultipleTextEditorModel",(function(){return r.MultipleTextEditorModel})),n.d(t,"PanelModel",(function(){return r.PanelModel})),n.d(t,"PanelModelBase",(function(){return r.PanelModelBase})),n.d(t,"QuestionRowModel",(function(){return r.QuestionRowModel})),n.d(t,"FlowPanelModel",(function(){return r.FlowPanelModel})),n.d(t,"PageModel",(function(){return r.PageModel})),n.d(t,"DefaultTitleModel",(function(){return r.DefaultTitleModel})),n.d(t,"Question",(function(){return r.Question})),n.d(t,"QuestionNonValue",(function(){return r.QuestionNonValue})),n.d(t,"QuestionEmptyModel",(function(){return r.QuestionEmptyModel})),n.d(t,"QuestionCheckboxBase",(function(){return r.QuestionCheckboxBase})),n.d(t,"QuestionSelectBase",(function(){return r.QuestionSelectBase})),n.d(t,"QuestionCheckboxModel",(function(){return r.QuestionCheckboxModel})),n.d(t,"QuestionTagboxModel",(function(){return r.QuestionTagboxModel})),n.d(t,"QuestionRankingModel",(function(){return r.QuestionRankingModel})),n.d(t,"QuestionCommentModel",(function(){return r.QuestionCommentModel})),n.d(t,"QuestionDropdownModel",(function(){return r.QuestionDropdownModel})),n.d(t,"QuestionFactory",(function(){return r.QuestionFactory})),n.d(t,"ElementFactory",(function(){return r.ElementFactory})),n.d(t,"QuestionFileModel",(function(){return r.QuestionFileModel})),n.d(t,"QuestionHtmlModel",(function(){return r.QuestionHtmlModel})),n.d(t,"QuestionRadiogroupModel",(function(){return r.QuestionRadiogroupModel})),n.d(t,"QuestionRatingModel",(function(){return r.QuestionRatingModel})),n.d(t,"RenderedRatingItem",(function(){return r.RenderedRatingItem})),n.d(t,"QuestionExpressionModel",(function(){return r.QuestionExpressionModel})),n.d(t,"QuestionTextBase",(function(){return r.QuestionTextBase})),n.d(t,"CharacterCounter",(function(){return r.CharacterCounter})),n.d(t,"QuestionTextModel",(function(){return r.QuestionTextModel})),n.d(t,"QuestionBooleanModel",(function(){return r.QuestionBooleanModel})),n.d(t,"QuestionImagePickerModel",(function(){return r.QuestionImagePickerModel})),n.d(t,"ImageItemValue",(function(){return r.ImageItemValue})),n.d(t,"QuestionImageModel",(function(){return r.QuestionImageModel})),n.d(t,"QuestionSignaturePadModel",(function(){return r.QuestionSignaturePadModel})),n.d(t,"QuestionPanelDynamicModel",(function(){return r.QuestionPanelDynamicModel})),n.d(t,"QuestionPanelDynamicItem",(function(){return r.QuestionPanelDynamicItem})),n.d(t,"SurveyTimer",(function(){return r.SurveyTimer})),n.d(t,"SurveyTimerModel",(function(){return r.SurveyTimerModel})),n.d(t,"tryNavigateToPage",(function(){return r.tryNavigateToPage})),n.d(t,"tryFocusPage",(function(){return r.tryFocusPage})),n.d(t,"createTOCListModel",(function(){return r.createTOCListModel})),n.d(t,"getTocRootCss",(function(){return r.getTocRootCss})),n.d(t,"TOCModel",(function(){return r.TOCModel})),n.d(t,"SurveyProgressModel",(function(){return r.SurveyProgressModel})),n.d(t,"SurveyProgressButtonsModel",(function(){return r.SurveyProgressButtonsModel})),n.d(t,"SurveyModel",(function(){return r.SurveyModel})),n.d(t,"SurveyTrigger",(function(){return r.SurveyTrigger})),n.d(t,"SurveyTriggerComplete",(function(){return r.SurveyTriggerComplete})),n.d(t,"SurveyTriggerSetValue",(function(){return r.SurveyTriggerSetValue})),n.d(t,"SurveyTriggerVisible",(function(){return r.SurveyTriggerVisible})),n.d(t,"SurveyTriggerCopyValue",(function(){return r.SurveyTriggerCopyValue})),n.d(t,"SurveyTriggerRunExpression",(function(){return r.SurveyTriggerRunExpression})),n.d(t,"Trigger",(function(){return r.Trigger})),n.d(t,"PopupSurveyModel",(function(){return r.PopupSurveyModel})),n.d(t,"SurveyWindowModel",(function(){return r.SurveyWindowModel})),n.d(t,"TextPreProcessor",(function(){return r.TextPreProcessor})),n.d(t,"Notifier",(function(){return r.Notifier})),n.d(t,"dxSurveyService",(function(){return r.dxSurveyService})),n.d(t,"englishStrings",(function(){return r.englishStrings})),n.d(t,"surveyLocalization",(function(){return r.surveyLocalization})),n.d(t,"surveyStrings",(function(){return r.surveyStrings})),n.d(t,"QuestionCustomWidget",(function(){return r.QuestionCustomWidget})),n.d(t,"CustomWidgetCollection",(function(){return r.CustomWidgetCollection})),n.d(t,"QuestionCustomModel",(function(){return r.QuestionCustomModel})),n.d(t,"QuestionCompositeModel",(function(){return r.QuestionCompositeModel})),n.d(t,"ComponentQuestionJSON",(function(){return r.ComponentQuestionJSON})),n.d(t,"ComponentCollection",(function(){return r.ComponentCollection})),n.d(t,"StylesManager",(function(){return r.StylesManager})),n.d(t,"ListModel",(function(){return r.ListModel})),n.d(t,"MultiSelectListModel",(function(){return r.MultiSelectListModel})),n.d(t,"PopupModel",(function(){return r.PopupModel})),n.d(t,"createDialogOptions",(function(){return r.createDialogOptions})),n.d(t,"PopupBaseViewModel",(function(){return r.PopupBaseViewModel})),n.d(t,"PopupDropdownViewModel",(function(){return r.PopupDropdownViewModel})),n.d(t,"PopupModalViewModel",(function(){return r.PopupModalViewModel})),n.d(t,"createPopupViewModel",(function(){return r.createPopupViewModel})),n.d(t,"createPopupModalViewModel",(function(){return r.createPopupModalViewModel})),n.d(t,"DropdownListModel",(function(){return r.DropdownListModel})),n.d(t,"DropdownMultiSelectListModel",(function(){return r.DropdownMultiSelectListModel})),n.d(t,"QuestionButtonGroupModel",(function(){return r.QuestionButtonGroupModel})),n.d(t,"ButtonGroupItemModel",(function(){return r.ButtonGroupItemModel})),n.d(t,"ButtonGroupItemValue",(function(){return r.ButtonGroupItemValue})),n.d(t,"IsMobile",(function(){return r.IsMobile})),n.d(t,"IsTouch",(function(){return r.IsTouch})),n.d(t,"_setIsTouch",(function(){return r._setIsTouch})),n.d(t,"confirmAction",(function(){return r.confirmAction})),n.d(t,"detectIEOrEdge",(function(){return r.detectIEOrEdge})),n.d(t,"doKey2ClickUp",(function(){return r.doKey2ClickUp})),n.d(t,"doKey2ClickDown",(function(){return r.doKey2ClickDown})),n.d(t,"doKey2ClickBlur",(function(){return r.doKey2ClickBlur})),n.d(t,"loadFileFromBase64",(function(){return r.loadFileFromBase64})),n.d(t,"increaseHeightByContent",(function(){return r.increaseHeightByContent})),n.d(t,"createSvg",(function(){return r.createSvg})),n.d(t,"sanitizeEditableContent",(function(){return r.sanitizeEditableContent})),n.d(t,"CssClassBuilder",(function(){return r.CssClassBuilder})),n.d(t,"surveyCss",(function(){return r.surveyCss})),n.d(t,"defaultV2Css",(function(){return r.defaultV2Css})),n.d(t,"defaultV2ThemeName",(function(){return r.defaultV2ThemeName})),n.d(t,"DragDropCore",(function(){return r.DragDropCore})),n.d(t,"DragDropChoices",(function(){return r.DragDropChoices})),n.d(t,"DragDropRankingSelectToRank",(function(){return r.DragDropRankingSelectToRank}));var o=n("./src/defaultCss/cssstandard.ts");n.d(t,"defaultStandardCss",(function(){return o.defaultStandardCss}));var i=n("./src/defaultCss/cssmodern.ts");n.d(t,"modernCss",(function(){return i.modernCss}));var s=n("./src/svgbundle.ts");n.d(t,"SvgIconRegistry",(function(){return s.SvgIconRegistry})),n.d(t,"SvgRegistry",(function(){return s.SvgRegistry})),n.d(t,"SvgBundleViewModel",(function(){return s.SvgBundleViewModel}));var a=n("./src/rendererFactory.ts");n.d(t,"RendererFactory",(function(){return a.RendererFactory}));var l=n("./src/utils/responsivity-manager.ts");n.d(t,"ResponsivityManager",(function(){return l.ResponsivityManager})),n.d(t,"VerticalResponsivityManager",(function(){return l.VerticalResponsivityManager}));var u=n("./src/utils/utils.ts");n.d(t,"unwrap",(function(){return u.unwrap})),n.d(t,"getOriginalEvent",(function(){return u.getOriginalEvent})),n.d(t,"getElement",(function(){return u.getElement}));var c=n("./src/actions/action.ts");n.d(t,"createDropdownActionModel",(function(){return c.createDropdownActionModel})),n.d(t,"createDropdownActionModelAdvanced",(function(){return c.createDropdownActionModelAdvanced})),n.d(t,"getActionDropdownButtonTarget",(function(){return c.getActionDropdownButtonTarget})),n.d(t,"BaseAction",(function(){return c.BaseAction})),n.d(t,"Action",(function(){return c.Action})),n.d(t,"ActionDropdownViewModel",(function(){return c.ActionDropdownViewModel}));var p=n("./src/actions/adaptive-container.ts");n.d(t,"AdaptiveActionContainer",(function(){return p.AdaptiveActionContainer}));var d=n("./src/actions/container.ts");n.d(t,"defaultActionBarCss",(function(){return d.defaultActionBarCss})),n.d(t,"ActionContainer",(function(){return d.ActionContainer}));var h=n("./src/utils/tooltip.ts");n.d(t,"TooltipManager",(function(){return h.TooltipManager}));var f=n("./src/utils/dragOrClickHelper.ts");n.d(t,"DragOrClickHelper",(function(){return f.DragOrClickHelper}))},"./src/entries/core.ts":function(e,t,n){"use strict";n.r(t);var r=n("./src/entries/core-wo-model.ts");n.d(t,"Version",(function(){return r.Version})),n.d(t,"ReleaseDate",(function(){return r.ReleaseDate})),n.d(t,"checkLibraryVersion",(function(){return r.checkLibraryVersion})),n.d(t,"setLicenseKey",(function(){return r.setLicenseKey})),n.d(t,"hasLicense",(function(){return r.hasLicense})),n.d(t,"settings",(function(){return r.settings})),n.d(t,"Helpers",(function(){return r.Helpers})),n.d(t,"AnswerCountValidator",(function(){return r.AnswerCountValidator})),n.d(t,"EmailValidator",(function(){return r.EmailValidator})),n.d(t,"NumericValidator",(function(){return r.NumericValidator})),n.d(t,"RegexValidator",(function(){return r.RegexValidator})),n.d(t,"SurveyValidator",(function(){return r.SurveyValidator})),n.d(t,"TextValidator",(function(){return r.TextValidator})),n.d(t,"ValidatorResult",(function(){return r.ValidatorResult})),n.d(t,"ExpressionValidator",(function(){return r.ExpressionValidator})),n.d(t,"ValidatorRunner",(function(){return r.ValidatorRunner})),n.d(t,"ItemValue",(function(){return r.ItemValue})),n.d(t,"Base",(function(){return r.Base})),n.d(t,"Event",(function(){return r.Event})),n.d(t,"EventBase",(function(){return r.EventBase})),n.d(t,"ArrayChanges",(function(){return r.ArrayChanges})),n.d(t,"ComputedUpdater",(function(){return r.ComputedUpdater})),n.d(t,"SurveyError",(function(){return r.SurveyError})),n.d(t,"SurveyElementCore",(function(){return r.SurveyElementCore})),n.d(t,"SurveyElement",(function(){return r.SurveyElement})),n.d(t,"DragTypeOverMeEnum",(function(){return r.DragTypeOverMeEnum})),n.d(t,"CalculatedValue",(function(){return r.CalculatedValue})),n.d(t,"CustomError",(function(){return r.CustomError})),n.d(t,"AnswerRequiredError",(function(){return r.AnswerRequiredError})),n.d(t,"OneAnswerRequiredError",(function(){return r.OneAnswerRequiredError})),n.d(t,"RequreNumericError",(function(){return r.RequreNumericError})),n.d(t,"ExceedSizeError",(function(){return r.ExceedSizeError})),n.d(t,"LocalizableString",(function(){return r.LocalizableString})),n.d(t,"LocalizableStrings",(function(){return r.LocalizableStrings})),n.d(t,"HtmlConditionItem",(function(){return r.HtmlConditionItem})),n.d(t,"UrlConditionItem",(function(){return r.UrlConditionItem})),n.d(t,"ChoicesRestful",(function(){return r.ChoicesRestful})),n.d(t,"ChoicesRestfull",(function(){return r.ChoicesRestfull})),n.d(t,"FunctionFactory",(function(){return r.FunctionFactory})),n.d(t,"registerFunction",(function(){return r.registerFunction})),n.d(t,"ConditionRunner",(function(){return r.ConditionRunner})),n.d(t,"ExpressionRunner",(function(){return r.ExpressionRunner})),n.d(t,"ExpressionExecutor",(function(){return r.ExpressionExecutor})),n.d(t,"Operand",(function(){return r.Operand})),n.d(t,"Const",(function(){return r.Const})),n.d(t,"BinaryOperand",(function(){return r.BinaryOperand})),n.d(t,"Variable",(function(){return r.Variable})),n.d(t,"FunctionOperand",(function(){return r.FunctionOperand})),n.d(t,"ArrayOperand",(function(){return r.ArrayOperand})),n.d(t,"UnaryOperand",(function(){return r.UnaryOperand})),n.d(t,"ConditionsParser",(function(){return r.ConditionsParser})),n.d(t,"ProcessValue",(function(){return r.ProcessValue})),n.d(t,"JsonError",(function(){return r.JsonError})),n.d(t,"JsonIncorrectTypeError",(function(){return r.JsonIncorrectTypeError})),n.d(t,"JsonMetadata",(function(){return r.JsonMetadata})),n.d(t,"JsonMetadataClass",(function(){return r.JsonMetadataClass})),n.d(t,"JsonMissingTypeError",(function(){return r.JsonMissingTypeError})),n.d(t,"JsonMissingTypeErrorBase",(function(){return r.JsonMissingTypeErrorBase})),n.d(t,"JsonObject",(function(){return r.JsonObject})),n.d(t,"JsonObjectProperty",(function(){return r.JsonObjectProperty})),n.d(t,"JsonRequiredPropertyError",(function(){return r.JsonRequiredPropertyError})),n.d(t,"JsonUnknownPropertyError",(function(){return r.JsonUnknownPropertyError})),n.d(t,"Serializer",(function(){return r.Serializer})),n.d(t,"property",(function(){return r.property})),n.d(t,"propertyArray",(function(){return r.propertyArray})),n.d(t,"MatrixDropdownCell",(function(){return r.MatrixDropdownCell})),n.d(t,"MatrixDropdownRowModelBase",(function(){return r.MatrixDropdownRowModelBase})),n.d(t,"QuestionMatrixDropdownModelBase",(function(){return r.QuestionMatrixDropdownModelBase})),n.d(t,"MatrixDropdownColumn",(function(){return r.MatrixDropdownColumn})),n.d(t,"matrixDropdownColumnTypes",(function(){return r.matrixDropdownColumnTypes})),n.d(t,"QuestionMatrixDropdownRenderedCell",(function(){return r.QuestionMatrixDropdownRenderedCell})),n.d(t,"QuestionMatrixDropdownRenderedRow",(function(){return r.QuestionMatrixDropdownRenderedRow})),n.d(t,"QuestionMatrixDropdownRenderedTable",(function(){return r.QuestionMatrixDropdownRenderedTable})),n.d(t,"MatrixDropdownRowModel",(function(){return r.MatrixDropdownRowModel})),n.d(t,"QuestionMatrixDropdownModel",(function(){return r.QuestionMatrixDropdownModel})),n.d(t,"MatrixDynamicRowModel",(function(){return r.MatrixDynamicRowModel})),n.d(t,"QuestionMatrixDynamicModel",(function(){return r.QuestionMatrixDynamicModel})),n.d(t,"MatrixRowModel",(function(){return r.MatrixRowModel})),n.d(t,"MatrixCells",(function(){return r.MatrixCells})),n.d(t,"QuestionMatrixModel",(function(){return r.QuestionMatrixModel})),n.d(t,"QuestionMatrixBaseModel",(function(){return r.QuestionMatrixBaseModel})),n.d(t,"MultipleTextItemModel",(function(){return r.MultipleTextItemModel})),n.d(t,"QuestionMultipleTextModel",(function(){return r.QuestionMultipleTextModel})),n.d(t,"MultipleTextEditorModel",(function(){return r.MultipleTextEditorModel})),n.d(t,"PanelModel",(function(){return r.PanelModel})),n.d(t,"PanelModelBase",(function(){return r.PanelModelBase})),n.d(t,"QuestionRowModel",(function(){return r.QuestionRowModel})),n.d(t,"FlowPanelModel",(function(){return r.FlowPanelModel})),n.d(t,"PageModel",(function(){return r.PageModel})),n.d(t,"DefaultTitleModel",(function(){return r.DefaultTitleModel})),n.d(t,"Question",(function(){return r.Question})),n.d(t,"QuestionNonValue",(function(){return r.QuestionNonValue})),n.d(t,"QuestionEmptyModel",(function(){return r.QuestionEmptyModel})),n.d(t,"QuestionCheckboxBase",(function(){return r.QuestionCheckboxBase})),n.d(t,"QuestionSelectBase",(function(){return r.QuestionSelectBase})),n.d(t,"QuestionCheckboxModel",(function(){return r.QuestionCheckboxModel})),n.d(t,"QuestionTagboxModel",(function(){return r.QuestionTagboxModel})),n.d(t,"QuestionRankingModel",(function(){return r.QuestionRankingModel})),n.d(t,"QuestionCommentModel",(function(){return r.QuestionCommentModel})),n.d(t,"QuestionDropdownModel",(function(){return r.QuestionDropdownModel})),n.d(t,"QuestionFactory",(function(){return r.QuestionFactory})),n.d(t,"ElementFactory",(function(){return r.ElementFactory})),n.d(t,"QuestionFileModel",(function(){return r.QuestionFileModel})),n.d(t,"QuestionHtmlModel",(function(){return r.QuestionHtmlModel})),n.d(t,"QuestionRadiogroupModel",(function(){return r.QuestionRadiogroupModel})),n.d(t,"QuestionRatingModel",(function(){return r.QuestionRatingModel})),n.d(t,"RenderedRatingItem",(function(){return r.RenderedRatingItem})),n.d(t,"QuestionExpressionModel",(function(){return r.QuestionExpressionModel})),n.d(t,"QuestionTextBase",(function(){return r.QuestionTextBase})),n.d(t,"CharacterCounter",(function(){return r.CharacterCounter})),n.d(t,"QuestionTextModel",(function(){return r.QuestionTextModel})),n.d(t,"QuestionBooleanModel",(function(){return r.QuestionBooleanModel})),n.d(t,"QuestionImagePickerModel",(function(){return r.QuestionImagePickerModel})),n.d(t,"ImageItemValue",(function(){return r.ImageItemValue})),n.d(t,"QuestionImageModel",(function(){return r.QuestionImageModel})),n.d(t,"QuestionSignaturePadModel",(function(){return r.QuestionSignaturePadModel})),n.d(t,"QuestionPanelDynamicModel",(function(){return r.QuestionPanelDynamicModel})),n.d(t,"QuestionPanelDynamicItem",(function(){return r.QuestionPanelDynamicItem})),n.d(t,"SurveyTimer",(function(){return r.SurveyTimer})),n.d(t,"SurveyTimerModel",(function(){return r.SurveyTimerModel})),n.d(t,"tryNavigateToPage",(function(){return r.tryNavigateToPage})),n.d(t,"tryFocusPage",(function(){return r.tryFocusPage})),n.d(t,"createTOCListModel",(function(){return r.createTOCListModel})),n.d(t,"getTocRootCss",(function(){return r.getTocRootCss})),n.d(t,"TOCModel",(function(){return r.TOCModel})),n.d(t,"SurveyProgressModel",(function(){return r.SurveyProgressModel})),n.d(t,"SurveyProgressButtonsModel",(function(){return r.SurveyProgressButtonsModel})),n.d(t,"SurveyModel",(function(){return r.SurveyModel})),n.d(t,"SurveyTrigger",(function(){return r.SurveyTrigger})),n.d(t,"SurveyTriggerComplete",(function(){return r.SurveyTriggerComplete})),n.d(t,"SurveyTriggerSetValue",(function(){return r.SurveyTriggerSetValue})),n.d(t,"SurveyTriggerVisible",(function(){return r.SurveyTriggerVisible})),n.d(t,"SurveyTriggerCopyValue",(function(){return r.SurveyTriggerCopyValue})),n.d(t,"SurveyTriggerRunExpression",(function(){return r.SurveyTriggerRunExpression})),n.d(t,"Trigger",(function(){return r.Trigger})),n.d(t,"PopupSurveyModel",(function(){return r.PopupSurveyModel})),n.d(t,"SurveyWindowModel",(function(){return r.SurveyWindowModel})),n.d(t,"TextPreProcessor",(function(){return r.TextPreProcessor})),n.d(t,"Notifier",(function(){return r.Notifier})),n.d(t,"dxSurveyService",(function(){return r.dxSurveyService})),n.d(t,"englishStrings",(function(){return r.englishStrings})),n.d(t,"surveyLocalization",(function(){return r.surveyLocalization})),n.d(t,"surveyStrings",(function(){return r.surveyStrings})),n.d(t,"QuestionCustomWidget",(function(){return r.QuestionCustomWidget})),n.d(t,"CustomWidgetCollection",(function(){return r.CustomWidgetCollection})),n.d(t,"QuestionCustomModel",(function(){return r.QuestionCustomModel})),n.d(t,"QuestionCompositeModel",(function(){return r.QuestionCompositeModel})),n.d(t,"ComponentQuestionJSON",(function(){return r.ComponentQuestionJSON})),n.d(t,"ComponentCollection",(function(){return r.ComponentCollection})),n.d(t,"StylesManager",(function(){return r.StylesManager})),n.d(t,"ListModel",(function(){return r.ListModel})),n.d(t,"MultiSelectListModel",(function(){return r.MultiSelectListModel})),n.d(t,"PopupModel",(function(){return r.PopupModel})),n.d(t,"createDialogOptions",(function(){return r.createDialogOptions})),n.d(t,"PopupBaseViewModel",(function(){return r.PopupBaseViewModel})),n.d(t,"PopupDropdownViewModel",(function(){return r.PopupDropdownViewModel})),n.d(t,"PopupModalViewModel",(function(){return r.PopupModalViewModel})),n.d(t,"createPopupViewModel",(function(){return r.createPopupViewModel})),n.d(t,"createPopupModalViewModel",(function(){return r.createPopupModalViewModel})),n.d(t,"DropdownListModel",(function(){return r.DropdownListModel})),n.d(t,"DropdownMultiSelectListModel",(function(){return r.DropdownMultiSelectListModel})),n.d(t,"QuestionButtonGroupModel",(function(){return r.QuestionButtonGroupModel})),n.d(t,"ButtonGroupItemModel",(function(){return r.ButtonGroupItemModel})),n.d(t,"ButtonGroupItemValue",(function(){return r.ButtonGroupItemValue})),n.d(t,"IsMobile",(function(){return r.IsMobile})),n.d(t,"IsTouch",(function(){return r.IsTouch})),n.d(t,"_setIsTouch",(function(){return r._setIsTouch})),n.d(t,"confirmAction",(function(){return r.confirmAction})),n.d(t,"detectIEOrEdge",(function(){return r.detectIEOrEdge})),n.d(t,"doKey2ClickUp",(function(){return r.doKey2ClickUp})),n.d(t,"doKey2ClickDown",(function(){return r.doKey2ClickDown})),n.d(t,"doKey2ClickBlur",(function(){return r.doKey2ClickBlur})),n.d(t,"loadFileFromBase64",(function(){return r.loadFileFromBase64})),n.d(t,"increaseHeightByContent",(function(){return r.increaseHeightByContent})),n.d(t,"createSvg",(function(){return r.createSvg})),n.d(t,"sanitizeEditableContent",(function(){return r.sanitizeEditableContent})),n.d(t,"CssClassBuilder",(function(){return r.CssClassBuilder})),n.d(t,"surveyCss",(function(){return r.surveyCss})),n.d(t,"defaultV2Css",(function(){return r.defaultV2Css})),n.d(t,"defaultV2ThemeName",(function(){return r.defaultV2ThemeName})),n.d(t,"DragDropCore",(function(){return r.DragDropCore})),n.d(t,"DragDropChoices",(function(){return r.DragDropChoices})),n.d(t,"DragDropRankingSelectToRank",(function(){return r.DragDropRankingSelectToRank})),n.d(t,"defaultStandardCss",(function(){return r.defaultStandardCss})),n.d(t,"modernCss",(function(){return r.modernCss})),n.d(t,"SvgIconRegistry",(function(){return r.SvgIconRegistry})),n.d(t,"SvgRegistry",(function(){return r.SvgRegistry})),n.d(t,"SvgBundleViewModel",(function(){return r.SvgBundleViewModel})),n.d(t,"RendererFactory",(function(){return r.RendererFactory})),n.d(t,"ResponsivityManager",(function(){return r.ResponsivityManager})),n.d(t,"VerticalResponsivityManager",(function(){return r.VerticalResponsivityManager})),n.d(t,"unwrap",(function(){return r.unwrap})),n.d(t,"getOriginalEvent",(function(){return r.getOriginalEvent})),n.d(t,"getElement",(function(){return r.getElement})),n.d(t,"createDropdownActionModel",(function(){return r.createDropdownActionModel})),n.d(t,"createDropdownActionModelAdvanced",(function(){return r.createDropdownActionModelAdvanced})),n.d(t,"getActionDropdownButtonTarget",(function(){return r.getActionDropdownButtonTarget})),n.d(t,"BaseAction",(function(){return r.BaseAction})),n.d(t,"Action",(function(){return r.Action})),n.d(t,"ActionDropdownViewModel",(function(){return r.ActionDropdownViewModel})),n.d(t,"AdaptiveActionContainer",(function(){return r.AdaptiveActionContainer})),n.d(t,"defaultActionBarCss",(function(){return r.defaultActionBarCss})),n.d(t,"ActionContainer",(function(){return r.ActionContainer})),n.d(t,"TooltipManager",(function(){return r.TooltipManager})),n.d(t,"DragOrClickHelper",(function(){return r.DragOrClickHelper}));var o=n("./src/survey.ts");n.d(t,"Model",(function(){return o.SurveyModel}))},"./src/error.ts":function(e,t,n){"use strict";n.r(t),n.d(t,"AnswerRequiredError",(function(){return a})),n.d(t,"OneAnswerRequiredError",(function(){return l})),n.d(t,"RequreNumericError",(function(){return u})),n.d(t,"ExceedSizeError",(function(){return c})),n.d(t,"WebRequestError",(function(){return p})),n.d(t,"WebRequestEmptyError",(function(){return d})),n.d(t,"OtherEmptyError",(function(){return h})),n.d(t,"UploadingFileError",(function(){return f})),n.d(t,"RequiredInAllRowsError",(function(){return g})),n.d(t,"MinRowCountError",(function(){return m})),n.d(t,"KeyDuplicationError",(function(){return y})),n.d(t,"CustomError",(function(){return v}));var r,o=n("./src/surveyStrings.ts"),i=n("./src/survey-error.ts"),s=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),a=function(e){function t(t,n){void 0===t&&(t=null),void 0===n&&(n=null);var r=e.call(this,t,n)||this;return r.text=t,r}return s(t,e),t.prototype.getErrorType=function(){return"required"},t.prototype.getDefaultText=function(){return this.getLocalizationString("requiredError")},t}(i.SurveyError),l=function(e){function t(t,n){void 0===t&&(t=null),void 0===n&&(n=null);var r=e.call(this,t,n)||this;return r.text=t,r}return s(t,e),t.prototype.getErrorType=function(){return"requireoneanswer"},t.prototype.getDefaultText=function(){return this.getLocalizationString("requiredErrorInPanel")},t}(i.SurveyError),u=function(e){function t(t,n){void 0===t&&(t=null),void 0===n&&(n=null);var r=e.call(this,t,n)||this;return r.text=t,r}return s(t,e),t.prototype.getErrorType=function(){return"requirenumeric"},t.prototype.getDefaultText=function(){return this.getLocalizationString("numericError")},t}(i.SurveyError),c=function(e){function t(t,n){void 0===n&&(n=null);var r=e.call(this,null,n)||this;return r.maxSize=t,r.locText.text=r.getText(),r}return s(t,e),t.prototype.getErrorType=function(){return"exceedsize"},t.prototype.getDefaultText=function(){return o.surveyLocalization.getString("exceedMaxSize").format(this.getTextSize())},t.prototype.getTextSize=function(){if(0===this.maxSize)return"0 Byte";var e=Math.floor(Math.log(this.maxSize)/Math.log(1024));return(this.maxSize/Math.pow(1024,e)).toFixed([0,0,2,3,3][e])+" "+["Bytes","KB","MB","GB","TB"][e]},t}(i.SurveyError),p=function(e){function t(t,n,r){void 0===r&&(r=null);var o=e.call(this,null,r)||this;return o.status=t,o.response=n,o}return s(t,e),t.prototype.getErrorType=function(){return"webrequest"},t.prototype.getDefaultText=function(){var e=this.getLocalizationString("urlRequestError");return e?e.format(this.status,this.response):""},t}(i.SurveyError),d=function(e){function t(t,n){void 0===n&&(n=null);var r=e.call(this,t,n)||this;return r.text=t,r}return s(t,e),t.prototype.getErrorType=function(){return"webrequestempty"},t.prototype.getDefaultText=function(){return this.getLocalizationString("urlGetChoicesError")},t}(i.SurveyError),h=function(e){function t(t,n){void 0===n&&(n=null);var r=e.call(this,t,n)||this;return r.text=t,r}return s(t,e),t.prototype.getErrorType=function(){return"otherempty"},t.prototype.getDefaultText=function(){return this.getLocalizationString("otherRequiredError")},t}(i.SurveyError),f=function(e){function t(t,n){void 0===n&&(n=null);var r=e.call(this,t,n)||this;return r.text=t,r}return s(t,e),t.prototype.getErrorType=function(){return"uploadingfile"},t.prototype.getDefaultText=function(){return this.getLocalizationString("uploadingFile")},t}(i.SurveyError),g=function(e){function t(t,n){void 0===n&&(n=null);var r=e.call(this,t,n)||this;return r.text=t,r}return s(t,e),t.prototype.getErrorType=function(){return"requiredinallrowserror"},t.prototype.getDefaultText=function(){return this.getLocalizationString("requiredInAllRowsError")},t}(i.SurveyError),m=function(e){function t(t,n){void 0===n&&(n=null);var r=e.call(this,null,n)||this;return r.minRowCount=t,r}return s(t,e),t.prototype.getErrorType=function(){return"minrowcounterror"},t.prototype.getDefaultText=function(){return o.surveyLocalization.getString("minRowCountError").format(this.minRowCount)},t}(i.SurveyError),y=function(e){function t(t,n){void 0===n&&(n=null);var r=e.call(this,t,n)||this;return r.text=t,r}return s(t,e),t.prototype.getErrorType=function(){return"keyduplicationerror"},t.prototype.getDefaultText=function(){return this.getLocalizationString("keyDuplicationError")},t}(i.SurveyError),v=function(e){function t(t,n){void 0===n&&(n=null);var r=e.call(this,t,n)||this;return r.text=t,r}return s(t,e),t.prototype.getErrorType=function(){return"custom"},t}(i.SurveyError)},"./src/expressionItems.ts":function(e,t,n){"use strict";n.r(t),n.d(t,"ExpressionItem",(function(){return l})),n.d(t,"HtmlConditionItem",(function(){return u})),n.d(t,"UrlConditionItem",(function(){return c}));var r,o=n("./src/jsonobject.ts"),i=n("./src/base.ts"),s=n("./src/conditions.ts"),a=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),l=function(e){function t(t){void 0===t&&(t=null);var n=e.call(this)||this;return n.expression=t,n}return a(t,e),t.prototype.getType=function(){return"expressionitem"},t.prototype.runCondition=function(e,t){return!!this.expression&&new s.ConditionRunner(this.expression).run(e,t)},Object.defineProperty(t.prototype,"expression",{get:function(){return this.getPropertyValue("expression","")},set:function(e){this.setPropertyValue("expression",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locHtml",{get:function(){return this.getLocalizableString("html")},enumerable:!1,configurable:!0}),t.prototype.getLocale=function(){return this.locOwner?this.locOwner.getLocale():""},t.prototype.getMarkdownHtml=function(e,t){return this.locOwner?this.locOwner.getMarkdownHtml(e,t):void 0},t.prototype.getRenderer=function(e){return this.locOwner?this.locOwner.getRenderer(e):null},t.prototype.getRendererContext=function(e){return this.locOwner?this.locOwner.getRendererContext(e):e},t.prototype.getProcessedText=function(e){return this.locOwner?this.locOwner.getProcessedText(e):e},t.prototype.getSurvey=function(e){return void 0===e&&(e=!1),this.locOwner},t}(i.Base),u=function(e){function t(t,n){void 0===t&&(t=null),void 0===n&&(n=null);var r=e.call(this,t)||this;return r.createLocalizableString("html",r),r.html=n,r}return a(t,e),t.prototype.getType=function(){return"htmlconditionitem"},Object.defineProperty(t.prototype,"html",{get:function(){return this.getLocalizableStringText("html")},set:function(e){this.setLocalizableStringText("html",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locHtml",{get:function(){return this.getLocalizableString("html")},enumerable:!1,configurable:!0}),t}(l),c=function(e){function t(t,n){void 0===t&&(t=null),void 0===n&&(n=null);var r=e.call(this,t)||this;return r.createLocalizableString("url",r),r.url=n,r}return a(t,e),t.prototype.getType=function(){return"urlconditionitem"},Object.defineProperty(t.prototype,"url",{get:function(){return this.getLocalizableStringText("url")},set:function(e){this.setLocalizableStringText("url",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locUrl",{get:function(){return this.getLocalizableString("url")},enumerable:!1,configurable:!0}),t}(l);o.Serializer.addClass("expressionitem",["expression:condition"],(function(){return new l}),"base"),o.Serializer.addClass("htmlconditionitem",[{name:"html:html",serializationProperty:"locHtml"}],(function(){return new u}),"expressionitem"),o.Serializer.addClass("urlconditionitem",[{name:"url:string",serializationProperty:"locUrl"}],(function(){return new c}),"expressionitem")},"./src/expressions/expressionParser.ts":function(e,t,n){"use strict";n.r(t),n.d(t,"SyntaxError",(function(){return s})),n.d(t,"parse",(function(){return a}));var r,o=n("./src/expressions/expressions.ts"),i=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),s=function(e){function t(n,r,o,i){var s=e.call(this)||this;return s.message=n,s.expected=r,s.found=o,s.location=i,s.name="SyntaxError","function"==typeof Error.captureStackTrace&&Error.captureStackTrace(s,t),s}return i(t,e),t.buildMessage=function(e,t){function n(e){return e.charCodeAt(0).toString(16).toUpperCase()}function r(e){return e.replace(/\\/g,"\\\\").replace(/"/g,'\\"').replace(/\0/g,"\\0").replace(/\t/g,"\\t").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/[\x00-\x0F]/g,(function(e){return"\\x0"+n(e)})).replace(/[\x10-\x1F\x7F-\x9F]/g,(function(e){return"\\x"+n(e)}))}function o(e){return e.replace(/\\/g,"\\\\").replace(/\]/g,"\\]").replace(/\^/g,"\\^").replace(/-/g,"\\-").replace(/\0/g,"\\0").replace(/\t/g,"\\t").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/[\x00-\x0F]/g,(function(e){return"\\x0"+n(e)})).replace(/[\x10-\x1F\x7F-\x9F]/g,(function(e){return"\\x"+n(e)}))}function i(e){switch(e.type){case"literal":return'"'+r(e.text)+'"';case"class":var t=e.parts.map((function(e){return Array.isArray(e)?o(e[0])+"-"+o(e[1]):o(e)}));return"["+(e.inverted?"^":"")+t+"]";case"any":return"any character";case"end":return"end of input";case"other":return e.description}}return"Expected "+function(e){var t,n,r=e.map(i);if(r.sort(),r.length>0){for(t=1,n=1;t<r.length;t++)r[t-1]!==r[t]&&(r[n]=r[t],n++);r.length=n}switch(r.length){case 1:return r[0];case 2:return r[0]+" or "+r[1];default:return r.slice(0,-1).join(", ")+", or "+r[r.length-1]}}(e)+" but "+((s=t)?'"'+r(s)+'"':"end of input")+" found.";var s},t}(Error),a=function(e,t){t=void 0!==t?t:{};var n,r,i,a,l={},u={Expression:jn},c=jn,p=function(e,t){return rr(e,t,!0)},d="||",h=Tn("||",!1),f="or",g=Tn("or",!0),m=function(){return"or"},y="&&",v=Tn("&&",!1),b="and",C=Tn("and",!0),w=function(){return"and"},x=function(e,t){return rr(e,t)},P="<=",S=Tn("<=",!1),V="lessorequal",E=Tn("lessorequal",!0),O=function(){return"lessorequal"},T=">=",_=Tn(">=",!1),R="greaterorequal",I=Tn("greaterorequal",!0),D=function(){return"greaterorequal"},j="==",k=Tn("==",!1),M="equal",L=Tn("equal",!0),q=function(){return"equal"},N="=",A=Tn("=",!1),B="!=",F=Tn("!=",!1),Q="notequal",z=Tn("notequal",!0),H=function(){return"notequal"},U="<",W=Tn("<",!1),J="less",$=Tn("less",!0),G=function(){return"less"},K=">",Z=Tn(">",!1),Y="greater",X=Tn("greater",!0),ee=function(){return"greater"},te="+",ne=Tn("+",!1),re=function(){return"plus"},oe="-",ie=Tn("-",!1),se=function(){return"minus"},ae="*",le=Tn("*",!1),ue=function(){return"mul"},ce="/",pe=Tn("/",!1),de=function(){return"div"},he="%",fe=Tn("%",!1),ge=function(){return"mod"},me="^",ye=Tn("^",!1),ve="power",be=Tn("power",!0),Ce=function(){return"power"},we="*=",xe=Tn("*=",!1),Pe="contains",Se=Tn("contains",!0),Ve="contain",Ee=Tn("contain",!0),Oe=function(){return"contains"},Te="notcontains",_e=Tn("notcontains",!0),Re="notcontain",Ie=Tn("notcontain",!0),De=function(){return"notcontains"},je="anyof",ke=Tn("anyof",!0),Me=function(){return"anyof"},Le="allof",qe=Tn("allof",!0),Ne=function(){return"allof"},Ae="(",Be=Tn("(",!1),Fe=")",Qe=Tn(")",!1),ze=function(e){return e},He=function(e,t){return new o.FunctionOperand(e,t)},Ue="!",We=Tn("!",!1),Je="negate",$e=Tn("negate",!0),Ge=function(e){return new o.UnaryOperand(e,"negate")},Ke=function(e,t){return new o.UnaryOperand(e,t)},Ze="empty",Ye=Tn("empty",!0),Xe=function(){return"empty"},et="notempty",tt=Tn("notempty",!0),nt=function(){return"notempty"},rt="undefined",ot=Tn("undefined",!1),it="null",st=Tn("null",!1),at=function(){return null},lt=function(e){return new o.Const(e)},ut="{",ct=Tn("{",!1),pt="}",dt=Tn("}",!1),ht=function(e){return new o.Variable(e)},ft=function(e){return e},gt="''",mt=Tn("''",!1),yt=function(){return""},vt='""',bt=Tn('""',!1),Ct="'",wt=Tn("'",!1),xt=function(e){return"'"+e+"'"},Pt='"',St=Tn('"',!1),Vt="[",Et=Tn("[",!1),Ot="]",Tt=Tn("]",!1),_t=function(e){return e},Rt=",",It=Tn(",",!1),Dt=function(e,t){if(null==e)return new o.ArrayOperand([]);var n=[e];if(Array.isArray(t))for(var r=function(e){return[].concat.apply([],e)}(t),i=3;i<r.length;i+=4)n.push(r[i]);return new o.ArrayOperand(n)},jt="true",kt=Tn("true",!0),Mt=function(){return!0},Lt="false",qt=Tn("false",!0),Nt=function(){return!1},At="0x",Bt=Tn("0x",!1),Ft=function(){return parseInt(On(),16)},Qt=/^[\-]/,zt=_n(["-"],!1,!1),Ht=function(e,t){return null==e?t:-t},Ut=".",Wt=Tn(".",!1),Jt=function(){return parseFloat(On())},$t=function(){return parseInt(On(),10)},Gt="0",Kt=Tn("0",!1),Zt=function(){return 0},Yt=function(e){return e.join("")},Xt="\\'",en=Tn("\\'",!1),tn=function(){return"'"},nn='\\"',rn=Tn('\\"',!1),on=function(){return'"'},sn=/^[^"']/,an=_n(['"',"'"],!0,!1),ln=function(){return On()},un=/^[^{}]/,cn=_n(["{","}"],!0,!1),pn=/^[0-9]/,dn=_n([["0","9"]],!1,!1),hn=/^[1-9]/,fn=_n([["1","9"]],!1,!1),gn=/^[a-zA-Z_]/,mn=_n([["a","z"],["A","Z"],"_"],!1,!1),yn={type:"other",description:"whitespace"},vn=/^[ \t\n\r]/,bn=_n([" ","\t","\n","\r"],!1,!1),Cn=0,wn=0,xn=[{line:1,column:1}],Pn=0,Sn=[],Vn=0,En={};if(void 0!==t.startRule){if(!(t.startRule in u))throw new Error("Can't start parsing from rule \""+t.startRule+'".');c=u[t.startRule]}function On(){return e.substring(wn,Cn)}function Tn(e,t){return{type:"literal",text:e,ignoreCase:t}}function _n(e,t,n){return{type:"class",parts:e,inverted:t,ignoreCase:n}}function Rn(t){var n,r=xn[t];if(r)return r;for(n=t-1;!xn[n];)n--;for(r={line:(r=xn[n]).line,column:r.column};n<t;)10===e.charCodeAt(n)?(r.line++,r.column=1):r.column++,n++;return xn[t]=r,r}function In(e,t){var n=Rn(e),r=Rn(t);return{start:{offset:e,line:n.line,column:n.column},end:{offset:t,line:r.line,column:r.column}}}function Dn(e){Cn<Pn||(Cn>Pn&&(Pn=Cn,Sn=[]),Sn.push(e))}function jn(){var e,t,n,r,o,i,s,a,u=34*Cn+0,c=En[u];if(c)return Cn=c.nextPos,c.result;if(e=Cn,nr()!==l)if((t=Mn())!==l){for(n=[],r=Cn,(o=nr())!==l&&(i=kn())!==l&&(s=nr())!==l&&(a=Mn())!==l?r=o=[o,i,s,a]:(Cn=r,r=l);r!==l;)n.push(r),r=Cn,(o=nr())!==l&&(i=kn())!==l&&(s=nr())!==l&&(a=Mn())!==l?r=o=[o,i,s,a]:(Cn=r,r=l);n!==l&&(r=nr())!==l?(wn=e,e=p(t,n)):(Cn=e,e=l)}else Cn=e,e=l;else Cn=e,e=l;return En[u]={nextPos:Cn,result:e},e}function kn(){var t,n,r=34*Cn+1,o=En[r];return o?(Cn=o.nextPos,o.result):(t=Cn,e.substr(Cn,2)===d?(n=d,Cn+=2):(n=l,0===Vn&&Dn(h)),n===l&&(e.substr(Cn,2).toLowerCase()===f?(n=e.substr(Cn,2),Cn+=2):(n=l,0===Vn&&Dn(g))),n!==l&&(wn=t,n=m()),t=n,En[r]={nextPos:Cn,result:t},t)}function Mn(){var e,t,n,r,o,i,s,a,u=34*Cn+2,c=En[u];if(c)return Cn=c.nextPos,c.result;if(e=Cn,(t=qn())!==l){for(n=[],r=Cn,(o=nr())!==l&&(i=Ln())!==l&&(s=nr())!==l&&(a=qn())!==l?r=o=[o,i,s,a]:(Cn=r,r=l);r!==l;)n.push(r),r=Cn,(o=nr())!==l&&(i=Ln())!==l&&(s=nr())!==l&&(a=qn())!==l?r=o=[o,i,s,a]:(Cn=r,r=l);n!==l?(wn=e,e=t=p(t,n)):(Cn=e,e=l)}else Cn=e,e=l;return En[u]={nextPos:Cn,result:e},e}function Ln(){var t,n,r=34*Cn+3,o=En[r];return o?(Cn=o.nextPos,o.result):(t=Cn,e.substr(Cn,2)===y?(n=y,Cn+=2):(n=l,0===Vn&&Dn(v)),n===l&&(e.substr(Cn,3).toLowerCase()===b?(n=e.substr(Cn,3),Cn+=3):(n=l,0===Vn&&Dn(C))),n!==l&&(wn=t,n=w()),t=n,En[r]={nextPos:Cn,result:t},t)}function qn(){var e,t,n,r,o,i,s,a,u=34*Cn+4,c=En[u];if(c)return Cn=c.nextPos,c.result;if(e=Cn,(t=An())!==l){for(n=[],r=Cn,(o=nr())!==l&&(i=Nn())!==l&&(s=nr())!==l&&(a=An())!==l?r=o=[o,i,s,a]:(Cn=r,r=l);r!==l;)n.push(r),r=Cn,(o=nr())!==l&&(i=Nn())!==l&&(s=nr())!==l&&(a=An())!==l?r=o=[o,i,s,a]:(Cn=r,r=l);n!==l?(wn=e,e=t=x(t,n)):(Cn=e,e=l)}else Cn=e,e=l;return En[u]={nextPos:Cn,result:e},e}function Nn(){var t,n,r=34*Cn+5,o=En[r];return o?(Cn=o.nextPos,o.result):(t=Cn,e.substr(Cn,2)===P?(n=P,Cn+=2):(n=l,0===Vn&&Dn(S)),n===l&&(e.substr(Cn,11).toLowerCase()===V?(n=e.substr(Cn,11),Cn+=11):(n=l,0===Vn&&Dn(E))),n!==l&&(wn=t,n=O()),(t=n)===l&&(t=Cn,e.substr(Cn,2)===T?(n=T,Cn+=2):(n=l,0===Vn&&Dn(_)),n===l&&(e.substr(Cn,14).toLowerCase()===R?(n=e.substr(Cn,14),Cn+=14):(n=l,0===Vn&&Dn(I))),n!==l&&(wn=t,n=D()),(t=n)===l&&(t=Cn,e.substr(Cn,2)===j?(n=j,Cn+=2):(n=l,0===Vn&&Dn(k)),n===l&&(e.substr(Cn,5).toLowerCase()===M?(n=e.substr(Cn,5),Cn+=5):(n=l,0===Vn&&Dn(L))),n!==l&&(wn=t,n=q()),(t=n)===l&&(t=Cn,61===e.charCodeAt(Cn)?(n=N,Cn++):(n=l,0===Vn&&Dn(A)),n===l&&(e.substr(Cn,5).toLowerCase()===M?(n=e.substr(Cn,5),Cn+=5):(n=l,0===Vn&&Dn(L))),n!==l&&(wn=t,n=q()),(t=n)===l&&(t=Cn,e.substr(Cn,2)===B?(n=B,Cn+=2):(n=l,0===Vn&&Dn(F)),n===l&&(e.substr(Cn,8).toLowerCase()===Q?(n=e.substr(Cn,8),Cn+=8):(n=l,0===Vn&&Dn(z))),n!==l&&(wn=t,n=H()),(t=n)===l&&(t=Cn,60===e.charCodeAt(Cn)?(n=U,Cn++):(n=l,0===Vn&&Dn(W)),n===l&&(e.substr(Cn,4).toLowerCase()===J?(n=e.substr(Cn,4),Cn+=4):(n=l,0===Vn&&Dn($))),n!==l&&(wn=t,n=G()),(t=n)===l&&(t=Cn,62===e.charCodeAt(Cn)?(n=K,Cn++):(n=l,0===Vn&&Dn(Z)),n===l&&(e.substr(Cn,7).toLowerCase()===Y?(n=e.substr(Cn,7),Cn+=7):(n=l,0===Vn&&Dn(X))),n!==l&&(wn=t,n=ee()),t=n)))))),En[r]={nextPos:Cn,result:t},t)}function An(){var e,t,n,r,o,i,s,a,u=34*Cn+6,c=En[u];if(c)return Cn=c.nextPos,c.result;if(e=Cn,(t=Fn())!==l){for(n=[],r=Cn,(o=nr())!==l&&(i=Bn())!==l&&(s=nr())!==l&&(a=Fn())!==l?r=o=[o,i,s,a]:(Cn=r,r=l);r!==l;)n.push(r),r=Cn,(o=nr())!==l&&(i=Bn())!==l&&(s=nr())!==l&&(a=Fn())!==l?r=o=[o,i,s,a]:(Cn=r,r=l);n!==l?(wn=e,e=t=p(t,n)):(Cn=e,e=l)}else Cn=e,e=l;return En[u]={nextPos:Cn,result:e},e}function Bn(){var t,n,r=34*Cn+7,o=En[r];return o?(Cn=o.nextPos,o.result):(t=Cn,43===e.charCodeAt(Cn)?(n=te,Cn++):(n=l,0===Vn&&Dn(ne)),n!==l&&(wn=t,n=re()),(t=n)===l&&(t=Cn,45===e.charCodeAt(Cn)?(n=oe,Cn++):(n=l,0===Vn&&Dn(ie)),n!==l&&(wn=t,n=se()),t=n),En[r]={nextPos:Cn,result:t},t)}function Fn(){var e,t,n,r,o,i,s,a,u=34*Cn+8,c=En[u];if(c)return Cn=c.nextPos,c.result;if(e=Cn,(t=zn())!==l){for(n=[],r=Cn,(o=nr())!==l&&(i=Qn())!==l&&(s=nr())!==l&&(a=zn())!==l?r=o=[o,i,s,a]:(Cn=r,r=l);r!==l;)n.push(r),r=Cn,(o=nr())!==l&&(i=Qn())!==l&&(s=nr())!==l&&(a=zn())!==l?r=o=[o,i,s,a]:(Cn=r,r=l);n!==l?(wn=e,e=t=p(t,n)):(Cn=e,e=l)}else Cn=e,e=l;return En[u]={nextPos:Cn,result:e},e}function Qn(){var t,n,r=34*Cn+9,o=En[r];return o?(Cn=o.nextPos,o.result):(t=Cn,42===e.charCodeAt(Cn)?(n=ae,Cn++):(n=l,0===Vn&&Dn(le)),n!==l&&(wn=t,n=ue()),(t=n)===l&&(t=Cn,47===e.charCodeAt(Cn)?(n=ce,Cn++):(n=l,0===Vn&&Dn(pe)),n!==l&&(wn=t,n=de()),(t=n)===l&&(t=Cn,37===e.charCodeAt(Cn)?(n=he,Cn++):(n=l,0===Vn&&Dn(fe)),n!==l&&(wn=t,n=ge()),t=n)),En[r]={nextPos:Cn,result:t},t)}function zn(){var e,t,n,r,o,i,s,a,u=34*Cn+10,c=En[u];if(c)return Cn=c.nextPos,c.result;if(e=Cn,(t=Un())!==l){for(n=[],r=Cn,(o=nr())!==l&&(i=Hn())!==l&&(s=nr())!==l&&(a=Un())!==l?r=o=[o,i,s,a]:(Cn=r,r=l);r!==l;)n.push(r),r=Cn,(o=nr())!==l&&(i=Hn())!==l&&(s=nr())!==l&&(a=Un())!==l?r=o=[o,i,s,a]:(Cn=r,r=l);n!==l?(wn=e,e=t=p(t,n)):(Cn=e,e=l)}else Cn=e,e=l;return En[u]={nextPos:Cn,result:e},e}function Hn(){var t,n,r=34*Cn+11,o=En[r];return o?(Cn=o.nextPos,o.result):(t=Cn,94===e.charCodeAt(Cn)?(n=me,Cn++):(n=l,0===Vn&&Dn(ye)),n===l&&(e.substr(Cn,5).toLowerCase()===ve?(n=e.substr(Cn,5),Cn+=5):(n=l,0===Vn&&Dn(be))),n!==l&&(wn=t,n=Ce()),t=n,En[r]={nextPos:Cn,result:t},t)}function Un(){var e,t,n,r,o,i,s,a,u=34*Cn+12,c=En[u];if(c)return Cn=c.nextPos,c.result;if(e=Cn,(t=Jn())!==l){for(n=[],r=Cn,(o=nr())!==l&&(i=Wn())!==l&&(s=nr())!==l?((a=Jn())===l&&(a=null),a!==l?r=o=[o,i,s,a]:(Cn=r,r=l)):(Cn=r,r=l);r!==l;)n.push(r),r=Cn,(o=nr())!==l&&(i=Wn())!==l&&(s=nr())!==l?((a=Jn())===l&&(a=null),a!==l?r=o=[o,i,s,a]:(Cn=r,r=l)):(Cn=r,r=l);n!==l?(wn=e,e=t=x(t,n)):(Cn=e,e=l)}else Cn=e,e=l;return En[u]={nextPos:Cn,result:e},e}function Wn(){var t,n,r=34*Cn+13,o=En[r];return o?(Cn=o.nextPos,o.result):(t=Cn,e.substr(Cn,2)===we?(n=we,Cn+=2):(n=l,0===Vn&&Dn(xe)),n===l&&(e.substr(Cn,8).toLowerCase()===Pe?(n=e.substr(Cn,8),Cn+=8):(n=l,0===Vn&&Dn(Se)),n===l&&(e.substr(Cn,7).toLowerCase()===Ve?(n=e.substr(Cn,7),Cn+=7):(n=l,0===Vn&&Dn(Ee)))),n!==l&&(wn=t,n=Oe()),(t=n)===l&&(t=Cn,e.substr(Cn,11).toLowerCase()===Te?(n=e.substr(Cn,11),Cn+=11):(n=l,0===Vn&&Dn(_e)),n===l&&(e.substr(Cn,10).toLowerCase()===Re?(n=e.substr(Cn,10),Cn+=10):(n=l,0===Vn&&Dn(Ie))),n!==l&&(wn=t,n=De()),(t=n)===l&&(t=Cn,e.substr(Cn,5).toLowerCase()===je?(n=e.substr(Cn,5),Cn+=5):(n=l,0===Vn&&Dn(ke)),n!==l&&(wn=t,n=Me()),(t=n)===l&&(t=Cn,e.substr(Cn,5).toLowerCase()===Le?(n=e.substr(Cn,5),Cn+=5):(n=l,0===Vn&&Dn(qe)),n!==l&&(wn=t,n=Ne()),t=n))),En[r]={nextPos:Cn,result:t},t)}function Jn(){var t,n,r,o,i=34*Cn+14,s=En[i];return s?(Cn=s.nextPos,s.result):(t=Cn,40===e.charCodeAt(Cn)?(n=Ae,Cn++):(n=l,0===Vn&&Dn(Be)),n!==l&&nr()!==l&&(r=jn())!==l&&nr()!==l?(41===e.charCodeAt(Cn)?(o=Fe,Cn++):(o=l,0===Vn&&Dn(Qe)),o===l&&(o=null),o!==l?(wn=t,t=n=ze(r)):(Cn=t,t=l)):(Cn=t,t=l),t===l&&(t=function(){var t,n,r,o,i,s=34*Cn+15,a=En[s];return a?(Cn=a.nextPos,a.result):(t=Cn,(n=Xn())!==l?(40===e.charCodeAt(Cn)?(r=Ae,Cn++):(r=l,0===Vn&&Dn(Be)),r!==l&&(o=Gn())!==l?(41===e.charCodeAt(Cn)?(i=Fe,Cn++):(i=l,0===Vn&&Dn(Qe)),i===l&&(i=null),i!==l?(wn=t,t=n=He(n,o)):(Cn=t,t=l)):(Cn=t,t=l)):(Cn=t,t=l),En[s]={nextPos:Cn,result:t},t)}(),t===l&&(t=function(){var t,n,r,o=34*Cn+16,i=En[o];return i?(Cn=i.nextPos,i.result):(t=Cn,33===e.charCodeAt(Cn)?(n=Ue,Cn++):(n=l,0===Vn&&Dn(We)),n===l&&(e.substr(Cn,6).toLowerCase()===Je?(n=e.substr(Cn,6),Cn+=6):(n=l,0===Vn&&Dn($e))),n!==l&&nr()!==l&&(r=jn())!==l?(wn=t,t=n=Ge(r)):(Cn=t,t=l),t===l&&(t=Cn,(n=$n())!==l&&nr()!==l?(r=function(){var t,n,r=34*Cn+17,o=En[r];return o?(Cn=o.nextPos,o.result):(t=Cn,e.substr(Cn,5).toLowerCase()===Ze?(n=e.substr(Cn,5),Cn+=5):(n=l,0===Vn&&Dn(Ye)),n!==l&&(wn=t,n=Xe()),(t=n)===l&&(t=Cn,e.substr(Cn,8).toLowerCase()===et?(n=e.substr(Cn,8),Cn+=8):(n=l,0===Vn&&Dn(tt)),n!==l&&(wn=t,n=nt()),t=n),En[r]={nextPos:Cn,result:t},t)}(),r!==l?(wn=t,t=n=Ke(n,r)):(Cn=t,t=l)):(Cn=t,t=l)),En[o]={nextPos:Cn,result:t},t)}(),t===l&&(t=$n())===l&&(t=function(){var t,n,r,o,i=34*Cn+20,s=En[i];return s?(Cn=s.nextPos,s.result):(t=Cn,91===e.charCodeAt(Cn)?(n=Vt,Cn++):(n=l,0===Vn&&Dn(Et)),n!==l&&(r=Gn())!==l?(93===e.charCodeAt(Cn)?(o=Ot,Cn++):(o=l,0===Vn&&Dn(Tt)),o!==l?(wn=t,t=n=_t(r)):(Cn=t,t=l)):(Cn=t,t=l),En[i]={nextPos:Cn,result:t},t)}()))),En[i]={nextPos:Cn,result:t},t)}function $n(){var t,n,r,o,i=34*Cn+18,s=En[i];return s?(Cn=s.nextPos,s.result):(t=Cn,nr()!==l?(e.substr(Cn,9)===rt?(n=rt,Cn+=9):(n=l,0===Vn&&Dn(ot)),n===l&&(e.substr(Cn,4)===it?(n=it,Cn+=4):(n=l,0===Vn&&Dn(st))),n!==l?(wn=t,t=at()):(Cn=t,t=l)):(Cn=t,t=l),t===l&&(t=Cn,nr()!==l?(n=function(){var t,n,r,o,i=34*Cn+19,s=En[i];return s?(Cn=s.nextPos,s.result):(t=Cn,n=function(){var t,n,r=34*Cn+22,o=En[r];return o?(Cn=o.nextPos,o.result):(t=Cn,e.substr(Cn,4).toLowerCase()===jt?(n=e.substr(Cn,4),Cn+=4):(n=l,0===Vn&&Dn(kt)),n!==l&&(wn=t,n=Mt()),(t=n)===l&&(t=Cn,e.substr(Cn,5).toLowerCase()===Lt?(n=e.substr(Cn,5),Cn+=5):(n=l,0===Vn&&Dn(qt)),n!==l&&(wn=t,n=Nt()),t=n),En[r]={nextPos:Cn,result:t},t)}(),n!==l&&(wn=t,n=ft(n)),(t=n)===l&&(t=Cn,n=function(){var t,n,r,o=34*Cn+23,i=En[o];return i?(Cn=i.nextPos,i.result):(t=Cn,e.substr(Cn,2)===At?(n=At,Cn+=2):(n=l,0===Vn&&Dn(Bt)),n!==l&&(r=er())!==l?(wn=t,t=n=Ft()):(Cn=t,t=l),t===l&&(t=Cn,Qt.test(e.charAt(Cn))?(n=e.charAt(Cn),Cn++):(n=l,0===Vn&&Dn(zt)),n===l&&(n=null),n!==l?(r=function(){var t,n,r,o=34*Cn+24,i=En[o];return i?(Cn=i.nextPos,i.result):(t=Cn,(n=er())!==l?(46===e.charCodeAt(Cn)?(r=Ut,Cn++):(r=l,0===Vn&&Dn(Wt)),r!==l&&er()!==l?(wn=t,t=n=Jt()):(Cn=t,t=l)):(Cn=t,t=l),t===l&&(t=Cn,n=function(){var t,n,r=34*Cn+31,o=En[r];if(o)return Cn=o.nextPos,o.result;if(t=[],hn.test(e.charAt(Cn))?(n=e.charAt(Cn),Cn++):(n=l,0===Vn&&Dn(fn)),n!==l)for(;n!==l;)t.push(n),hn.test(e.charAt(Cn))?(n=e.charAt(Cn),Cn++):(n=l,0===Vn&&Dn(fn));else t=l;return En[r]={nextPos:Cn,result:t},t}(),n!==l?((r=er())===l&&(r=null),r!==l?(wn=t,t=n=$t()):(Cn=t,t=l)):(Cn=t,t=l),t===l&&(t=Cn,48===e.charCodeAt(Cn)?(n=Gt,Cn++):(n=l,0===Vn&&Dn(Kt)),n!==l&&(wn=t,n=Zt()),t=n)),En[o]={nextPos:Cn,result:t},t)}(),r!==l?(wn=t,t=n=Ht(n,r)):(Cn=t,t=l)):(Cn=t,t=l)),En[o]={nextPos:Cn,result:t},t)}(),n!==l&&(wn=t,n=ft(n)),(t=n)===l&&(t=Cn,(n=Xn())!==l&&(wn=t,n=ft(n)),(t=n)===l&&(t=Cn,e.substr(Cn,2)===gt?(n=gt,Cn+=2):(n=l,0===Vn&&Dn(mt)),n!==l&&(wn=t,n=yt()),(t=n)===l&&(t=Cn,e.substr(Cn,2)===vt?(n=vt,Cn+=2):(n=l,0===Vn&&Dn(bt)),n!==l&&(wn=t,n=yt()),(t=n)===l&&(t=Cn,39===e.charCodeAt(Cn)?(n=Ct,Cn++):(n=l,0===Vn&&Dn(wt)),n!==l&&(r=Kn())!==l?(39===e.charCodeAt(Cn)?(o=Ct,Cn++):(o=l,0===Vn&&Dn(wt)),o!==l?(wn=t,t=n=xt(r)):(Cn=t,t=l)):(Cn=t,t=l),t===l&&(t=Cn,34===e.charCodeAt(Cn)?(n=Pt,Cn++):(n=l,0===Vn&&Dn(St)),n!==l&&(r=Kn())!==l?(34===e.charCodeAt(Cn)?(o=Pt,Cn++):(o=l,0===Vn&&Dn(St)),o!==l?(wn=t,t=n=xt(r)):(Cn=t,t=l)):(Cn=t,t=l))))))),En[i]={nextPos:Cn,result:t},t)}(),n!==l?(wn=t,t=lt(n)):(Cn=t,t=l)):(Cn=t,t=l),t===l&&(t=Cn,nr()!==l?(123===e.charCodeAt(Cn)?(n=ut,Cn++):(n=l,0===Vn&&Dn(ct)),n!==l?(r=function(){var e,t,n,r=34*Cn+25,o=En[r];if(o)return Cn=o.nextPos,o.result;if(e=Cn,t=[],(n=Yn())!==l)for(;n!==l;)t.push(n),n=Yn();else t=l;return t!==l&&(wn=e,t=Yt(t)),e=t,En[r]={nextPos:Cn,result:e},e}(),r!==l?(125===e.charCodeAt(Cn)?(o=pt,Cn++):(o=l,0===Vn&&Dn(dt)),o!==l?(wn=t,t=ht(r)):(Cn=t,t=l)):(Cn=t,t=l)):(Cn=t,t=l)):(Cn=t,t=l))),En[i]={nextPos:Cn,result:t},t)}function Gn(){var t,n,r,o,i,s,a,u,c=34*Cn+21,p=En[c];if(p)return Cn=p.nextPos,p.result;if(t=Cn,(n=jn())===l&&(n=null),n!==l){for(r=[],o=Cn,(i=nr())!==l?(44===e.charCodeAt(Cn)?(s=Rt,Cn++):(s=l,0===Vn&&Dn(It)),s!==l&&(a=nr())!==l&&(u=jn())!==l?o=i=[i,s,a,u]:(Cn=o,o=l)):(Cn=o,o=l);o!==l;)r.push(o),o=Cn,(i=nr())!==l?(44===e.charCodeAt(Cn)?(s=Rt,Cn++):(s=l,0===Vn&&Dn(It)),s!==l&&(a=nr())!==l&&(u=jn())!==l?o=i=[i,s,a,u]:(Cn=o,o=l)):(Cn=o,o=l);r!==l?(wn=t,t=n=Dt(n,r)):(Cn=t,t=l)}else Cn=t,t=l;return En[c]={nextPos:Cn,result:t},t}function Kn(){var e,t,n,r=34*Cn+26,o=En[r];if(o)return Cn=o.nextPos,o.result;if(e=Cn,t=[],(n=Zn())!==l)for(;n!==l;)t.push(n),n=Zn();else t=l;return t!==l&&(wn=e,t=Yt(t)),e=t,En[r]={nextPos:Cn,result:e},e}function Zn(){var t,n,r=34*Cn+27,o=En[r];return o?(Cn=o.nextPos,o.result):(t=Cn,e.substr(Cn,2)===Xt?(n=Xt,Cn+=2):(n=l,0===Vn&&Dn(en)),n!==l&&(wn=t,n=tn()),(t=n)===l&&(t=Cn,e.substr(Cn,2)===nn?(n=nn,Cn+=2):(n=l,0===Vn&&Dn(rn)),n!==l&&(wn=t,n=on()),(t=n)===l&&(t=Cn,sn.test(e.charAt(Cn))?(n=e.charAt(Cn),Cn++):(n=l,0===Vn&&Dn(an)),n!==l&&(wn=t,n=ln()),t=n)),En[r]={nextPos:Cn,result:t},t)}function Yn(){var t,n,r=34*Cn+28,o=En[r];return o?(Cn=o.nextPos,o.result):(t=Cn,un.test(e.charAt(Cn))?(n=e.charAt(Cn),Cn++):(n=l,0===Vn&&Dn(cn)),n!==l&&(wn=t,n=ln()),t=n,En[r]={nextPos:Cn,result:t},t)}function Xn(){var e,t,n,r,o,i,s=34*Cn+29,a=En[s];if(a)return Cn=a.nextPos,a.result;if(e=Cn,tr()!==l){if(t=[],n=Cn,(r=er())!==l){for(o=[],i=tr();i!==l;)o.push(i),i=tr();o!==l?n=r=[r,o]:(Cn=n,n=l)}else Cn=n,n=l;for(;n!==l;)if(t.push(n),n=Cn,(r=er())!==l){for(o=[],i=tr();i!==l;)o.push(i),i=tr();o!==l?n=r=[r,o]:(Cn=n,n=l)}else Cn=n,n=l;t!==l?(wn=e,e=ln()):(Cn=e,e=l)}else Cn=e,e=l;return En[s]={nextPos:Cn,result:e},e}function er(){var t,n,r=34*Cn+30,o=En[r];if(o)return Cn=o.nextPos,o.result;if(t=[],pn.test(e.charAt(Cn))?(n=e.charAt(Cn),Cn++):(n=l,0===Vn&&Dn(dn)),n!==l)for(;n!==l;)t.push(n),pn.test(e.charAt(Cn))?(n=e.charAt(Cn),Cn++):(n=l,0===Vn&&Dn(dn));else t=l;return En[r]={nextPos:Cn,result:t},t}function tr(){var t,n,r=34*Cn+32,o=En[r];if(o)return Cn=o.nextPos,o.result;if(t=[],gn.test(e.charAt(Cn))?(n=e.charAt(Cn),Cn++):(n=l,0===Vn&&Dn(mn)),n!==l)for(;n!==l;)t.push(n),gn.test(e.charAt(Cn))?(n=e.charAt(Cn),Cn++):(n=l,0===Vn&&Dn(mn));else t=l;return En[r]={nextPos:Cn,result:t},t}function nr(){var t,n,r=34*Cn+33,o=En[r];if(o)return Cn=o.nextPos,o.result;for(Vn++,t=[],vn.test(e.charAt(Cn))?(n=e.charAt(Cn),Cn++):(n=l,0===Vn&&Dn(bn));n!==l;)t.push(n),vn.test(e.charAt(Cn))?(n=e.charAt(Cn),Cn++):(n=l,0===Vn&&Dn(bn));return Vn--,t===l&&(n=l,0===Vn&&Dn(yn)),En[r]={nextPos:Cn,result:t},t}function rr(e,t,n){return void 0===n&&(n=!1),t.reduce((function(e,t){return new o.BinaryOperand(t[1],e,t[3],n)}),e)}if((n=c())!==l&&Cn===e.length)return n;throw n!==l&&Cn<e.length&&Dn({type:"end"}),r=Sn,i=Pn<e.length?e.charAt(Pn):null,a=Pn<e.length?In(Pn,Pn+1):In(Pn,Pn),new s(s.buildMessage(r,i),r,i,a)}},"./src/expressions/expressions.ts":function(e,t,n){"use strict";n.r(t),n.d(t,"Operand",(function(){return u})),n.d(t,"BinaryOperand",(function(){return c})),n.d(t,"UnaryOperand",(function(){return p})),n.d(t,"ArrayOperand",(function(){return d})),n.d(t,"Const",(function(){return h})),n.d(t,"Variable",(function(){return f})),n.d(t,"FunctionOperand",(function(){return g})),n.d(t,"OperandMaker",(function(){return m}));var r,o=n("./src/helpers.ts"),i=n("./src/functionsfactory.ts"),s=n("./src/conditionProcessValue.ts"),a=n("./src/settings.ts"),l=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),u=function(){function e(){}return e.prototype.toString=function(e){return void 0===e&&(e=void 0),""},e.prototype.hasFunction=function(){return!1},e.prototype.hasAsyncFunction=function(){return!1},e.prototype.addToAsyncList=function(e){},e.prototype.isEqual=function(e){return!!e&&e.getType()===this.getType()&&this.isContentEqual(e)},e.prototype.areOperatorsEquals=function(e,t){return!e&&!t||!!e&&e.isEqual(t)},e}(),c=function(e){function t(t,n,r,o){void 0===n&&(n=null),void 0===r&&(r=null),void 0===o&&(o=!1);var i=e.call(this)||this;return i.operatorName=t,i.left=n,i.right=r,i.isArithmeticValue=o,i.consumer=o?m.binaryFunctions.arithmeticOp(t):m.binaryFunctions[t],null==i.consumer&&m.throwInvalidOperatorError(t),i}return l(t,e),Object.defineProperty(t.prototype,"requireStrictCompare",{get:function(){return this.getIsOperandRequireStrict(this.left)||this.getIsOperandRequireStrict(this.right)},enumerable:!1,configurable:!0}),t.prototype.getIsOperandRequireStrict=function(e){return!!e&&e.requireStrictCompare},t.prototype.getType=function(){return"binary"},Object.defineProperty(t.prototype,"isArithmetic",{get:function(){return this.isArithmeticValue},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isConjunction",{get:function(){return"or"==this.operatorName||"and"==this.operatorName},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"conjunction",{get:function(){return this.isConjunction?this.operatorName:""},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"operator",{get:function(){return this.operatorName},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"leftOperand",{get:function(){return this.left},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"rightOperand",{get:function(){return this.right},enumerable:!1,configurable:!0}),t.prototype.isContentEqual=function(e){var t=e;return t.operator===this.operator&&this.areOperatorsEquals(this.left,t.left)&&this.areOperatorsEquals(this.right,t.right)},t.prototype.evaluateParam=function(e,t){return null==e?null:e.evaluate(t)},t.prototype.evaluate=function(e){return this.consumer.call(this,this.evaluateParam(this.left,e),this.evaluateParam(this.right,e),this.requireStrictCompare)},t.prototype.toString=function(e){if(void 0===e&&(e=void 0),e){var t=e(this);if(t)return t}return"("+m.safeToString(this.left,e)+" "+m.operatorToString(this.operatorName)+" "+m.safeToString(this.right,e)+")"},t.prototype.setVariables=function(e){null!=this.left&&this.left.setVariables(e),null!=this.right&&this.right.setVariables(e)},t.prototype.hasFunction=function(){return!!this.left&&this.left.hasFunction()||!!this.right&&this.right.hasFunction()},t.prototype.hasAsyncFunction=function(){return!!this.left&&this.left.hasAsyncFunction()||!!this.right&&this.right.hasAsyncFunction()},t.prototype.addToAsyncList=function(e){this.left&&this.left.addToAsyncList(e),this.right&&this.right.addToAsyncList(e)},t}(u),p=function(e){function t(t,n){var r=e.call(this)||this;return r.expressionValue=t,r.operatorName=n,r.consumer=m.unaryFunctions[n],null==r.consumer&&m.throwInvalidOperatorError(n),r}return l(t,e),Object.defineProperty(t.prototype,"operator",{get:function(){return this.operatorName},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"expression",{get:function(){return this.expressionValue},enumerable:!1,configurable:!0}),t.prototype.getType=function(){return"unary"},t.prototype.toString=function(e){if(void 0===e&&(e=void 0),e){var t=e(this);if(t)return t}return m.operatorToString(this.operatorName)+" "+this.expression.toString(e)},t.prototype.isContentEqual=function(e){var t=e;return t.operator==this.operator&&this.areOperatorsEquals(this.expression,t.expression)},t.prototype.evaluate=function(e){var t=this.expression.evaluate(e);return this.consumer.call(this,t)},t.prototype.setVariables=function(e){this.expression.setVariables(e)},t}(u),d=function(e){function t(t){var n=e.call(this)||this;return n.values=t,n}return l(t,e),t.prototype.getType=function(){return"array"},t.prototype.toString=function(e){if(void 0===e&&(e=void 0),e){var t=e(this);if(t)return t}return"["+this.values.map((function(t){return t.toString(e)})).join(", ")+"]"},t.prototype.evaluate=function(e){return this.values.map((function(t){return t.evaluate(e)}))},t.prototype.setVariables=function(e){this.values.forEach((function(t){t.setVariables(e)}))},t.prototype.hasFunction=function(){return this.values.some((function(e){return e.hasFunction()}))},t.prototype.hasAsyncFunction=function(){return this.values.some((function(e){return e.hasAsyncFunction()}))},t.prototype.addToAsyncList=function(e){this.values.forEach((function(t){return t.addToAsyncList(e)}))},t.prototype.isContentEqual=function(e){var t=e;if(t.values.length!==this.values.length)return!1;for(var n=0;n<this.values.length;n++)if(!t.values[n].isEqual(this.values[n]))return!1;return!0},t}(u),h=function(e){function t(t){var n=e.call(this)||this;return n.value=t,n}return l(t,e),t.prototype.getType=function(){return"const"},t.prototype.toString=function(e){if(void 0===e&&(e=void 0),e){var t=e(this);if(t)return t}return this.value.toString()},Object.defineProperty(t.prototype,"correctValue",{get:function(){return this.getCorrectValue(this.value)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"requireStrictCompare",{get:function(){return!1},enumerable:!1,configurable:!0}),t.prototype.evaluate=function(){return this.getCorrectValue(this.value)},t.prototype.setVariables=function(e){},t.prototype.getCorrectValue=function(e){return e&&"string"==typeof e?this.isBooleanValue(e)?"true"===e.toLowerCase():e.length>1&&this.isQuote(e[0])&&this.isQuote(e[e.length-1])?e.substring(1,e.length-1):m.isNumeric(e)?0==e.indexOf("0x")?parseInt(e):e.length>1&&"0"==e[0]?e:parseFloat(e):e:e},t.prototype.isContentEqual=function(e){return e.value==this.value},t.prototype.isQuote=function(e){return"'"==e||'"'==e},t.prototype.isBooleanValue=function(e){return e&&("true"===e.toLowerCase()||"false"===e.toLowerCase())},t}(u),f=function(e){function t(n){var r=e.call(this,n)||this;return r.variableName=n,r.valueInfo={},r.useValueAsItIs=!1,r.variableName&&r.variableName.length>1&&r.variableName[0]===t.DisableConversionChar&&(r.variableName=r.variableName.substring(1),r.useValueAsItIs=!0),r}return l(t,e),Object.defineProperty(t,"DisableConversionChar",{get:function(){return a.settings.expressionDisableConversionChar},set:function(e){a.settings.expressionDisableConversionChar=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"requireStrictCompare",{get:function(){return!0===this.valueInfo.sctrictCompare},enumerable:!1,configurable:!0}),t.prototype.getType=function(){return"variable"},t.prototype.toString=function(e){if(void 0===e&&(e=void 0),e){var n=e(this);if(n)return n}return"{"+(this.useValueAsItIs?t.DisableConversionChar:"")+this.variableName+"}"},Object.defineProperty(t.prototype,"variable",{get:function(){return this.variableName},enumerable:!1,configurable:!0}),t.prototype.evaluate=function(e){return this.valueInfo.name=this.variableName,e.getValueInfo(this.valueInfo),this.valueInfo.hasValue?this.getCorrectValue(this.valueInfo.value):null},t.prototype.setVariables=function(e){e.push(this.variableName)},t.prototype.getCorrectValue=function(t){return this.useValueAsItIs?t:e.prototype.getCorrectValue.call(this,t)},t.prototype.isContentEqual=function(e){return e.variable==this.variable},t}(h),g=function(e){function t(t,n){var r=e.call(this)||this;return r.originalValue=t,r.parameters=n,r.isReadyValue=!1,Array.isArray(n)&&0===n.length&&(r.parameters=new d([])),r}return l(t,e),t.prototype.getType=function(){return"function"},t.prototype.evaluateAsync=function(e){var t=this;this.isReadyValue=!1;var n=new s.ProcessValue;n.values=o.Helpers.createCopy(e.values),n.properties=o.Helpers.createCopy(e.properties),n.properties.returnResult=function(e){t.asynResult=e,t.isReadyValue=!0,t.onAsyncReady()},this.evaluateCore(n)},t.prototype.evaluate=function(e){return this.isReady?this.asynResult:this.evaluateCore(e)},t.prototype.evaluateCore=function(e){return i.FunctionFactory.Instance.run(this.originalValue,this.parameters.evaluate(e),e.properties)},t.prototype.toString=function(e){if(void 0===e&&(e=void 0),e){var t=e(this);if(t)return t}return this.originalValue+"("+this.parameters.toString(e)+")"},t.prototype.setVariables=function(e){this.parameters.setVariables(e)},Object.defineProperty(t.prototype,"isReady",{get:function(){return this.isReadyValue},enumerable:!1,configurable:!0}),t.prototype.hasFunction=function(){return!0},t.prototype.hasAsyncFunction=function(){return i.FunctionFactory.Instance.isAsyncFunction(this.originalValue)},t.prototype.addToAsyncList=function(e){this.hasAsyncFunction()&&e.push(this)},t.prototype.isContentEqual=function(e){var t=e;return t.originalValue==this.originalValue&&this.areOperatorsEquals(t.parameters,this.parameters)},t}(u),m=function(){function e(){}return e.throwInvalidOperatorError=function(e){throw new Error("Invalid operator: '"+e+"'")},e.safeToString=function(e,t){return null==e?"":e.toString(t)},e.toOperandString=function(t){return!t||e.isNumeric(t)||e.isBooleanValue(t)||(t="'"+t+"'"),t},e.isSpaceString=function(e){return!!e&&!e.replace(" ","")},e.isNumeric=function(t){return(!t||!(t.indexOf("-")>-1||t.indexOf("+")>1||t.indexOf("*")>-1||t.indexOf("^")>-1||t.indexOf("/")>-1||t.indexOf("%")>-1))&&!e.isSpaceString(t)&&o.Helpers.isNumber(t)},e.isBooleanValue=function(e){return!!e&&("true"===e.toLowerCase()||"false"===e.toLowerCase())},e.countDecimals=function(e){if(o.Helpers.isNumber(e)&&Math.floor(e)!==e){var t=e.toString().split(".");return t.length>1&&t[1].length||0}return 0},e.plusMinus=function(t,n,r){var o=e.countDecimals(t),i=e.countDecimals(n);if(o>0||i>0){var s=Math.max(o,i);r=parseFloat(r.toFixed(s))}return r},e.isTwoValueEquals=function(e,t,n){return void 0===n&&(n=!0),"undefined"===e&&(e=void 0),"undefined"===t&&(t=void 0),o.Helpers.isTwoValueEquals(e,t,n)},e.operatorToString=function(t){var n=e.signs[t];return null==n?t:n},e.convertValForDateCompare=function(e,t){if(t instanceof Date&&"string"==typeof e){var n=new Date(e);return n.setHours(0,0,0),n}return e},e.unaryFunctions={empty:function(e){return o.Helpers.isValueEmpty(e)},notempty:function(t){return!e.unaryFunctions.empty(t)},negate:function(e){return!e}},e.binaryFunctions={arithmeticOp:function(t){var n=function(e,t){return o.Helpers.isValueEmpty(e)?"number"==typeof t?0:"string"==typeof e?e:"string"==typeof t?"":Array.isArray(t)?[]:0:e};return function(r,o){r=n(r,o),o=n(o,r);var i=e.binaryFunctions[t];return null==i?null:i.call(this,r,o)}},and:function(e,t){return e&&t},or:function(e,t){return e||t},plus:function(e,t){return o.Helpers.sumAnyValues(e,t)},minus:function(e,t){return o.Helpers.correctAfterPlusMinis(e,t,e-t)},mul:function(e,t){return o.Helpers.correctAfterMultiple(e,t,e*t)},div:function(e,t){return t?e/t:null},mod:function(e,t){return t?e%t:null},power:function(e,t){return Math.pow(e,t)},greater:function(t,n){return null!=t&&null!=n&&(t=e.convertValForDateCompare(t,n))>e.convertValForDateCompare(n,t)},less:function(t,n){return null!=t&&null!=n&&(t=e.convertValForDateCompare(t,n))<e.convertValForDateCompare(n,t)},greaterorequal:function(t,n){return!!e.binaryFunctions.equal(t,n)||e.binaryFunctions.greater(t,n)},lessorequal:function(t,n){return!!e.binaryFunctions.equal(t,n)||e.binaryFunctions.less(t,n)},equal:function(t,n,r){return t=e.convertValForDateCompare(t,n),n=e.convertValForDateCompare(n,t),e.isTwoValueEquals(t,n,!0!==r)},notequal:function(t,n){return!e.binaryFunctions.equal(t,n)},contains:function(t,n){return e.binaryFunctions.containsCore(t,n,!0)},notcontains:function(t,n){return!t&&!o.Helpers.isValueEmpty(n)||e.binaryFunctions.containsCore(t,n,!1)},anyof:function(t,n){if(o.Helpers.isValueEmpty(t)&&o.Helpers.isValueEmpty(n))return!0;if(o.Helpers.isValueEmpty(t)||!Array.isArray(t)&&0===t.length)return!1;if(o.Helpers.isValueEmpty(n))return!0;if(!Array.isArray(t))return e.binaryFunctions.contains(n,t);if(!Array.isArray(n))return e.binaryFunctions.contains(t,n);for(var r=0;r<n.length;r++)if(e.binaryFunctions.contains(t,n[r]))return!0;return!1},allof:function(t,n){if(!t&&!o.Helpers.isValueEmpty(n))return!1;if(!Array.isArray(n))return e.binaryFunctions.contains(t,n);for(var r=0;r<n.length;r++)if(!e.binaryFunctions.contains(t,n[r]))return!1;return!0},containsCore:function(t,n,r){if(!t&&0!==t&&!1!==t)return!1;if(t.length||(t=t.toString(),("string"==typeof n||n instanceof String)&&(t=t.toUpperCase(),n=n.toUpperCase())),"string"==typeof t||t instanceof String){if(!n)return!1;n=n.toString();var o=t.indexOf(n)>-1;return r?o:!o}for(var i=Array.isArray(n)?n:[n],s=0;s<i.length;s++){var a=0;for(n=i[s];a<t.length&&!e.isTwoValueEquals(t[a],n);a++);if(a==t.length)return!r}return r}},e.signs={less:"<",lessorequal:"<=",greater:">",greaterorequal:">=",equal:"==",notequal:"!=",plus:"+",minus:"-",mul:"*",div:"/",and:"and",or:"or",power:"^",mod:"%",negate:"!"},e}()},"./src/flowpanel.ts":function(e,t,n){"use strict";n.r(t),n.d(t,"FlowPanelModel",(function(){return a}));var r,o=n("./src/jsonobject.ts"),i=n("./src/panel.ts"),s=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),a=function(e){function t(t){void 0===t&&(t="");var n=e.call(this,t)||this;return n.createLocalizableString("content",n,!0),n.registerPropertyChangedHandlers(["content"],(function(){n.onContentChanged()})),n}return s(t,e),t.prototype.getType=function(){return"flowpanel"},t.prototype.getChildrenLayoutType=function(){return"flow"},t.prototype.onSurveyLoad=function(){e.prototype.onSurveyLoad.call(this),this.onContentChanged()},Object.defineProperty(t.prototype,"content",{get:function(){return this.getLocalizableStringText("content")},set:function(e){this.setLocalizableStringText("content",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locContent",{get:function(){return this.getLocalizableString("content")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"html",{get:function(){return this.getPropertyValue("html","")},set:function(e){this.setPropertyValue("html",e)},enumerable:!1,configurable:!0}),t.prototype.onContentChanged=function(){var e;e=this.onCustomHtmlProducing?this.onCustomHtmlProducing():this.produceHtml(),this.html=e,this.contentChangedCallback&&this.contentChangedCallback()},t.prototype.produceHtml=function(){for(var e=[],t=/{(.*?(element:)[^$].*?)}/g,n=this.content,r=0,o=null;null!==(o=t.exec(n));){o.index>r&&(e.push(n.substring(r,o.index)),r=o.index);var i=this.getQuestionFromText(o[0]);i?e.push(this.getHtmlForQuestion(i)):e.push(n.substring(r,o.index+o[0].length)),r=o.index+o[0].length}return r<n.length&&e.push(n.substring(r,n.length)),e.join("").replace(new RegExp("<br>","g"),"<br/>")},t.prototype.getQuestionFromText=function(e){return e=(e=e.substring(1,e.length-1)).replace(t.contentElementNamePrefix,"").trim(),this.getQuestionByName(e)},t.prototype.getHtmlForQuestion=function(e){return this.onGetHtmlForQuestion?this.onGetHtmlForQuestion(e):""},t.prototype.getQuestionHtmlId=function(e){return this.name+"_"+e.id},t.prototype.onAddElement=function(t,n){e.prototype.onAddElement.call(this,t,n),this.addElementToContent(t),t.renderWidth=""},t.prototype.onRemoveElement=function(t){var n=this.getElementContentText(t);this.content=this.content.replace(n,""),e.prototype.onRemoveElement.call(this,t)},t.prototype.dragDropMoveElement=function(e,t,n){},t.prototype.addElementToContent=function(e){if(!this.isLoadingFromJson){var t=this.getElementContentText(e);this.insertTextAtCursor(t)||(this.content=this.content+t)}},t.prototype.insertTextAtCursor=function(e,t){if(void 0===t&&(t=null),!this.isDesignMode||"undefined"==typeof document||!window.getSelection)return!1;var n=window.getSelection();if(n.getRangeAt&&n.rangeCount){var r=n.getRangeAt(0);if(r.deleteContents(),r.insertNode(document.createTextNode(e)),this.getContent){var o=this.getContent(t);this.content=o}return!0}return!1},t.prototype.getElementContentText=function(e){return"{"+t.contentElementNamePrefix+e.name+"}"},t.contentElementNamePrefix="element:",t}(i.PanelModel);o.Serializer.addClass("flowpanel",[{name:"content:html",serializationProperty:"locContent"}],(function(){return new a}),"panel")},"./src/functionsfactory.ts":function(e,t,n){"use strict";n.r(t),n.d(t,"FunctionFactory",(function(){return i})),n.d(t,"registerFunction",(function(){return s}));var r=n("./src/helpers.ts"),o=n("./src/settings.ts"),i=function(){function e(){this.functionHash={},this.isAsyncHash={}}return e.prototype.register=function(e,t,n){void 0===n&&(n=!1),this.functionHash[e]=t,n&&(this.isAsyncHash[e]=!0)},e.prototype.unregister=function(e){delete this.functionHash[e],delete this.isAsyncHash[e]},e.prototype.hasFunction=function(e){return!!this.functionHash[e]},e.prototype.isAsyncFunction=function(e){return!!this.isAsyncHash[e]},e.prototype.clear=function(){this.functionHash={}},e.prototype.getAll=function(){var e=[];for(var t in this.functionHash)e.push(t);return e.sort()},e.prototype.run=function(e,t,n){void 0===n&&(n=null);var r=this.functionHash[e];if(!r)return null;var o={func:r};if(n)for(var i in n)o[i]=n[i];return o.func(t)},e.Instance=new e,e}(),s=i.Instance.register;function a(e,t){if(null!=e)if(Array.isArray(e))for(var n=0;n<e.length;n++)a(e[n],t);else r.Helpers.isNumber(e)&&(e=r.Helpers.getNumber(e)),t.push(e)}function l(e){var t=[];a(e,t);for(var n=0,o=0;o<t.length;o++)n=r.Helpers.correctAfterPlusMinis(n,t[o],n+t[o]);return n}function u(e,t){var n=[];a(e,n);for(var r=void 0,o=0;o<n.length;o++)void 0===r&&(r=n[o]),t?r>n[o]&&(r=n[o]):r<n[o]&&(r=n[o]);return r}function c(e,t,n,o,i){return!e||r.Helpers.isValueEmpty(e[t])?n:o(n,i?"string"==typeof(s=e[t])?r.Helpers.isNumber(s)?r.Helpers.getNumber(s):void 0:s:1);var s}function p(e,t,n){void 0===n&&(n=!0);var r=function(e){if(2!=e.length)return null;var t=e[0];if(!t)return null;if(!Array.isArray(t)&&!Array.isArray(Object.keys(t)))return null;var n=e[1];return"string"==typeof n||n instanceof String?{data:t,name:n}:null}(e);if(r){var o=void 0;if(Array.isArray(r.data))for(var i=0;i<r.data.length;i++)o=c(r.data[i],r.name,o,t,n);else for(var s in r.data)o=c(r.data[s],r.name,o,t,n);return o}}function d(e){var t=p(e,(function(e,t){return null==e&&(e=0),null==t||null==t?e:r.Helpers.correctAfterPlusMinis(e,t,e+t)}));return void 0!==t?t:0}function h(e){var t=p(e,(function(e,t){return null==e&&(e=0),null==t||null==t?e:e+1}),!1);return void 0!==t?t:0}function f(e){if(!e)return!1;for(var t=e.questions,n=0;n<t.length;n++)if(!t[n].validate(!1))return!1;return!0}function g(e){var t=new Date;return o.settings.localization.useLocalTimeZone?t.setHours(0,0,0,0):t.setUTCHours(0,0,0,0),Array.isArray(e)&&1==e.length&&t.setDate(t.getDate()+e[0]),t}function m(e){var t=g(void 0);return e&&e[0]&&(t=new Date(e[0])),t}i.Instance.register("sum",l),i.Instance.register("min",(function(e){return u(e,!0)})),i.Instance.register("max",(function(e){return u(e,!1)})),i.Instance.register("count",(function(e){var t=[];return a(e,t),t.length})),i.Instance.register("avg",(function(e){var t=[];a(e,t);var n=l(e);return t.length>0?n/t.length:0})),i.Instance.register("sumInArray",d),i.Instance.register("minInArray",(function(e){return p(e,(function(e,t){return null==e?t:null==t||null==t||e<t?e:t}))})),i.Instance.register("maxInArray",(function(e){return p(e,(function(e,t){return null==e?t:null==t||null==t||e>t?e:t}))})),i.Instance.register("countInArray",h),i.Instance.register("avgInArray",(function(e){var t=h(e);return 0==t?0:d(e)/t})),i.Instance.register("iif",(function(e){return e||3===e.length?e[0]?e[1]:e[2]:""})),i.Instance.register("getDate",(function(e){return!e&&e.length<1?null:e[0]?new Date(e[0]):null})),i.Instance.register("age",(function(e){if(!e&&e.length<1)return null;if(!e[0])return null;var t=new Date(e[0]),n=new Date,r=n.getFullYear()-t.getFullYear(),o=n.getMonth()-t.getMonth();return(o<0||0===o&&n.getDate()<t.getDate())&&(r-=r>0?1:0),r})),i.Instance.register("isContainerReady",(function(e){if(!e&&e.length<1)return!1;if(!e[0]||!this.survey)return!1;var t=e[0],n=this.survey.getPageByName(t);if(n||(n=this.survey.getPanelByName(t)),!n){var r=this.survey.getQuestionByName(t);if(!r||!Array.isArray(r.panels))return!1;if(!(e.length>1)){for(var o=0;o<r.panels.length;o++)if(!f(r.panels[o]))return!1;return!0}e[1]<r.panels.length&&(n=r.panels[e[1]])}return f(n)})),i.Instance.register("isDisplayMode",(function(){return this.survey&&this.survey.isDisplayMode})),i.Instance.register("currentDate",(function(){return new Date})),i.Instance.register("today",g),i.Instance.register("getYear",(function(e){if(1===e.length&&e[0])return new Date(e[0]).getFullYear()})),i.Instance.register("currentYear",(function(){return(new Date).getFullYear()})),i.Instance.register("diffDays",(function(e){if(!Array.isArray(e)||2!==e.length)return 0;if(!e[0]||!e[1])return 0;var t=new Date(e[0]),n=new Date(e[1]),r=Math.abs(n-t);return Math.ceil(r/864e5)})),i.Instance.register("year",(function(e){return m(e).getFullYear()})),i.Instance.register("month",(function(e){return m(e).getMonth()+1})),i.Instance.register("day",(function(e){return m(e).getDate()})),i.Instance.register("weekday",(function(e){return m(e).getDay()}))},"./src/helpers.ts":function(e,t,n){"use strict";n.r(t),n.d(t,"Helpers",(function(){return o}));var r=n("./src/settings.ts"),o=function(){function e(){}return e.isValueEmpty=function(t){if(Array.isArray(t)&&0===t.length)return!0;if(t&&e.isValueObject(t)&&t.constructor===Object){for(var n in t)if(!e.isValueEmpty(t[n]))return!1;return!0}return!t&&0!==t&&!1!==t},e.isArrayContainsEqual=function(t,n){if(!Array.isArray(t)||!Array.isArray(n))return!1;if(t.length!==n.length)return!1;for(var r=0;r<t.length;r++){for(var o=0;o<n.length&&!e.isTwoValueEquals(t[r],n[o]);o++);if(o===n.length)return!1}return!0},e.isArraysEqual=function(t,n,r,o,i){if(void 0===r&&(r=!1),!Array.isArray(t)||!Array.isArray(n))return!1;if(t.length!==n.length)return!1;if(r){for(var s=[],a=[],l=0;l<t.length;l++)s.push(t[l]),a.push(n[l]);s.sort(),a.sort(),t=s,n=a}for(l=0;l<t.length;l++)if(!e.isTwoValueEquals(t[l],n[l],r,o,i))return!1;return!0},e.compareStrings=function(e,t){var n=r.settings.comparator.normalizeTextCallback;if(e&&(e=n(e,"compare").trim()),t&&(t=n(t,"compare").trim()),!e&&!t)return 0;if(!e)return-1;if(!t)return 1;if(e===t)return 0;for(var o=-1,i=0;i<e.length&&i<t.length;i++){if(this.isCharDigit(e[i])&&this.isCharDigit(t[i])){o=i;break}if(e[i]!==t[i])break}if(o>-1){var s=this.getNumberFromStr(e,o),a=this.getNumberFromStr(t,o);if(!Number.isNaN(s)&&!Number.isNaN(a)&&s!==a)return s>a?1:-1}return e>t?1:-1},e.isTwoValueEquals=function(t,n,o,i,s){if(void 0===o&&(o=!1),t===n)return!0;if(Array.isArray(t)&&0===t.length&&void 0===n)return!0;if(Array.isArray(n)&&0===n.length&&void 0===t)return!0;if(null==t&&""===n)return!0;if(null==n&&""===t)return!0;if(void 0===s&&(s=r.settings.comparator.trimStrings),void 0===i&&(i=r.settings.comparator.caseSensitive),"string"==typeof t&&"string"==typeof n){var a=r.settings.comparator.normalizeTextCallback;return t=a(t,"compare"),n=a(n,"compare"),s&&(t=t.trim(),n=n.trim()),i||(t=t.toLowerCase(),n=n.toLowerCase()),t===n}if(t instanceof Date&&n instanceof Date)return t.getTime()==n.getTime();if(e.isConvertibleToNumber(t)&&e.isConvertibleToNumber(n)&&parseInt(t)===parseInt(n)&&parseFloat(t)===parseFloat(n))return!0;if(!e.isValueEmpty(t)&&e.isValueEmpty(n)||e.isValueEmpty(t)&&!e.isValueEmpty(n))return!1;if((!0===t||!1===t)&&"string"==typeof n)return t.toString()===n.toLocaleLowerCase();if((!0===n||!1===n)&&"string"==typeof t)return n.toString()===t.toLocaleLowerCase();if(!e.isValueObject(t)&&!e.isValueObject(n))return t==n;if(!e.isValueObject(t)||!e.isValueObject(n))return!1;if(t.equals)return t.equals(n);if(t.toJSON&&n.toJSON&&t.getType&&n.getType)return!t.isDiposed&&!n.isDiposed&&t.getType()===n.getType()&&(!t.name||t.name===n.name)&&this.isTwoValueEquals(t.toJSON(),n.toJSON(),o,i,s);if(Array.isArray(t)&&Array.isArray(n))return e.isArraysEqual(t,n,o,i,s);if(t.equalsTo&&n.equalsTo)return t.equalsTo(n);for(var l in t)if(t.hasOwnProperty(l)){if(!n.hasOwnProperty(l))return!1;if(!this.isTwoValueEquals(t[l],n[l],o,i,s))return!1}for(l in n)if(n.hasOwnProperty(l)&&!t.hasOwnProperty(l))return!1;return!0},e.randomizeArray=function(e){for(var t=e.length-1;t>0;t--){var n=Math.floor(Math.random()*(t+1)),r=e[t];e[t]=e[n],e[n]=r}return e},e.getUnbindValue=function(t){if(Array.isArray(t)){for(var n=[],r=0;r<t.length;r++)n.push(e.getUnbindValue(t[r]));return n}return!t||!e.isValueObject(t)||t instanceof Date?t:JSON.parse(JSON.stringify(t))},e.createCopy=function(e){var t={};if(!e)return t;for(var n in e)t[n]=e[n];return t},e.isConvertibleToNumber=function(e){return null!=e&&!Array.isArray(e)&&!isNaN(e)},e.isValueObject=function(e){return e instanceof Object},e.isNumber=function(e){return!isNaN(this.getNumber(e))},e.getNumber=function(e){if("string"==typeof e&&e&&0==e.indexOf("0x")&&e.length>32)return NaN;e=this.prepareStringToNumber(e);var t=parseFloat(e);return isNaN(t)||!isFinite(e)?NaN:t},e.prepareStringToNumber=function(e){if("string"!=typeof e||!e)return e;var t=e.indexOf(",");return t>-1&&e.indexOf(",",t+1)<0?e.replace(",","."):e},e.getMaxLength=function(e,t){return e<0&&(e=t),e>0?e:null},e.getRemainingCharacterCounterText=function(e,t){return!t||t<=0||!r.settings.showMaxLengthIndicator?"":[e?e.length:"0",t].join("/")},e.getNumberByIndex=function(t,n){if(t<0)return"";var r=1,o="",i=".",s=!0,a="A",l="";if(n){for(var u=(l=n).length-1,c=!1,p=0;p<l.length;p++)if(e.isCharDigit(l[p])){c=!0;break}for(var d=function(){return c&&!e.isCharDigit(l[u])||e.isCharNotLetterAndDigit(l[u])};u>=0&&d();)u--;var h="";for(u<l.length-1&&(h=l.substring(u+1),l=l.substring(0,u+1)),u=l.length-1;u>=0&&!d()&&(u--,c););a=l.substring(u+1),o=l.substring(0,u+1),parseInt(a)?r=parseInt(a):1==a.length&&(s=!1),(h||o)&&(i=h)}if(s){for(var f=(t+r).toString();f.length<a.length;)f="0"+f;return o+f+i}return o+String.fromCharCode(a.charCodeAt(0)+t)+i},e.isCharNotLetterAndDigit=function(t){return t.toUpperCase()==t.toLowerCase()&&!e.isCharDigit(t)},e.isCharDigit=function(e){return e>="0"&&e<="9"},e.getNumberFromStr=function(e,t){if(!this.isCharDigit(e[t]))return NaN;for(var n="";t<e.length&&this.isCharDigit(e[t]);)n+=e[t],t++;return n?this.getNumber(n):NaN},e.countDecimals=function(t){if(e.isNumber(t)&&Math.floor(t)!==t){var n=t.toString().split(".");return n.length>1&&n[1].length||0}return 0},e.correctAfterPlusMinis=function(t,n,r){var o=e.countDecimals(t),i=e.countDecimals(n);if(o>0||i>0){var s=Math.max(o,i);r=parseFloat(r.toFixed(s))}return r},e.sumAnyValues=function(t,n){if(!e.isNumber(t)||!e.isNumber(n)){if(Array.isArray(t)&&Array.isArray(n))return[].concat(t).concat(n);if(Array.isArray(t)||Array.isArray(n)){var r=Array.isArray(t)?t:n,o=r===t?n:t;if("string"==typeof o){var i=r.join(", ");return r===t?i+o:o+i}if("number"==typeof o){for(var s=0,a=0;a<r.length;a++)"number"==typeof r[a]&&(s=e.correctAfterPlusMinis(s,r[a],s+r[a]));return e.correctAfterPlusMinis(s,o,s+o)}}return t+n}return e.correctAfterPlusMinis(t,n,t+n)},e.correctAfterMultiple=function(t,n,r){var o=e.countDecimals(t)+e.countDecimals(n);return o>0&&(r=parseFloat(r.toFixed(o))),r},e.convertArrayValueToObject=function(t,n,r){void 0===r&&(r=void 0);var o=new Array;if(!t||!Array.isArray(t))return o;for(var i=0;i<t.length;i++){var s=void 0;Array.isArray(r)&&(s=e.findObjByPropValue(r,n,t[i])),s||((s={})[n]=t[i]),o.push(s)}return o},e.findObjByPropValue=function(t,n,r){for(var o=0;o<t.length;o++)if(e.isTwoValueEquals(t[o][n],r))return t[o]},e.convertArrayObjectToValue=function(t,n){var r=new Array;if(!t||!Array.isArray(t))return r;for(var o=0;o<t.length;o++){var i=t[o]?t[o][n]:void 0;e.isValueEmpty(i)||r.push(i)}return r},e.convertDateToString=function(e){var t=function(e){return e<10?"0"+e.toString():e.toString()};return e.getFullYear()+"-"+t(e.getMonth()+1)+"-"+t(e.getDate())},e.convertDateTimeToString=function(e){var t=function(e){return e<10?"0"+e.toString():e.toString()};return this.convertDateToString(e)+" "+t(e.getHours())+":"+t(e.getMinutes())},e.convertValToQuestionVal=function(t,n){return t instanceof Date?"datetime-local"===n?e.convertDateTimeToString(t):e.convertDateToString(t):t},e}();String.prototype.format||(String.prototype.format=function(){var e=arguments;return this.replace(/{(\d+)}/g,(function(t,n){return void 0!==e[n]?e[n]:t}))})},"./src/images sync \\.svg$":function(e,t,n){var r={"./ArrowDown_34x34.svg":"./src/images/ArrowDown_34x34.svg","./ArrowLeft.svg":"./src/images/ArrowLeft.svg","./ArrowRight.svg":"./src/images/ArrowRight.svg","./Arrow_downGREY_10x10.svg":"./src/images/Arrow_downGREY_10x10.svg","./ChooseFile.svg":"./src/images/ChooseFile.svg","./Clear.svg":"./src/images/Clear.svg","./DefaultFile.svg":"./src/images/DefaultFile.svg","./Delete.svg":"./src/images/Delete.svg","./Down_34x34.svg":"./src/images/Down_34x34.svg","./Left.svg":"./src/images/Left.svg","./ModernBooleanCheckChecked.svg":"./src/images/ModernBooleanCheckChecked.svg","./ModernBooleanCheckInd.svg":"./src/images/ModernBooleanCheckInd.svg","./ModernBooleanCheckUnchecked.svg":"./src/images/ModernBooleanCheckUnchecked.svg","./ModernCheck.svg":"./src/images/ModernCheck.svg","./ModernRadio.svg":"./src/images/ModernRadio.svg","./More.svg":"./src/images/More.svg","./NavMenu_24x24.svg":"./src/images/NavMenu_24x24.svg","./ProgressButton.svg":"./src/images/ProgressButton.svg","./ProgressButtonV2.svg":"./src/images/ProgressButtonV2.svg","./RemoveFile.svg":"./src/images/RemoveFile.svg","./Right.svg":"./src/images/Right.svg","./SearchClear.svg":"./src/images/SearchClear.svg","./TimerCircle.svg":"./src/images/TimerCircle.svg","./V2Check.svg":"./src/images/V2Check.svg","./V2Check_24x24.svg":"./src/images/V2Check_24x24.svg","./V2DragElement_16x16.svg":"./src/images/V2DragElement_16x16.svg","./chevron.svg":"./src/images/chevron.svg","./clear_16x16.svg":"./src/images/clear_16x16.svg","./collapseDetail.svg":"./src/images/collapseDetail.svg","./expandDetail.svg":"./src/images/expandDetail.svg","./no-image.svg":"./src/images/no-image.svg","./rating-star-2.svg":"./src/images/rating-star-2.svg","./rating-star-small-2.svg":"./src/images/rating-star-small-2.svg","./rating-star-small.svg":"./src/images/rating-star-small.svg","./rating-star.svg":"./src/images/rating-star.svg","./search.svg":"./src/images/search.svg"};function o(e){var t=i(e);return n(t)}function i(e){if(!n.o(r,e)){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}return r[e]}o.keys=function(){return Object.keys(r)},o.resolve=i,e.exports=o,o.id="./src/images sync \\.svg$"},"./src/images/ArrowDown_34x34.svg":function(e,t){e.exports='<svg version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" viewBox="0 0 34 34" xml:space="preserve"><polygon class="st0" points="12,16 14,14 17,17 20,14 22,16 17,21 "></polygon></svg>'},"./src/images/ArrowLeft.svg":function(e,t){e.exports='<svg viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg"><path d="M15 8.99999H4.39998L8.69998 13.3L7.29998 14.7L0.599976 7.99999L7.29998 1.29999L8.69998 2.69999L4.39998 6.99999H15V8.99999Z"></path></svg>'},"./src/images/ArrowRight.svg":function(e,t){e.exports='<svg viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg"><path d="M1 6.99999H11.6L7.3 2.69999L8.7 1.29999L15.4 7.99999L8.7 14.7L7.3 13.3L11.6 8.99999H1V6.99999Z"></path></svg>'},"./src/images/Arrow_downGREY_10x10.svg":function(e,t){e.exports='<svg version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" viewBox="0 0 10 10" xml:space="preserve"><polygon class="st0" points="2,2 0,4 5,9 10,4 8,2 5,5 "></polygon></svg>'},"./src/images/ChooseFile.svg":function(e,t){e.exports='<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path d="M22 9V7C22 5.9 21.1 5 20 5H12L10 3H4C2.9 3 2 3.9 2 5V9V10V21H22L24 9H22ZM4 5H9.2L10.6 6.4L11.2 7H12H20V9H4V5ZM20.3 19H4V11H21.6L20.3 19Z"></path></svg>'},"./src/images/Clear.svg":function(e,t){e.exports='<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path d="M22.6 8.6L16.4 2.4C16 2 15.5 1.8 15 1.8C14.5 1.8 14 2 13.6 2.4L1.4 14.6C0.600003 15.4 0.600003 16.6 1.4 17.4L6 22H12L22.6 11.4C23.3 10.6 23.3 9.3 22.6 8.6ZM11.1 20H6.8L2.8 16L6.2 12.6L12.4 18.8L11.1 20ZM13.8 17.4L7.6 11.2L15 3.8L21.2 10L13.8 17.4ZM16 20H23V22H14L16 20Z"></path></svg>'},"./src/images/DefaultFile.svg":function(e,t){e.exports='<svg viewBox="0 0 56 68" fill="none" xmlns="http://www.w3.org/2000/svg"><g clip-path="url(#clip0_9011_41219)"><path d="M54.83 10.83L45.17 1.17C44.7982 0.798664 44.357 0.504208 43.8714 0.303455C43.3858 0.102703 42.8654 -0.000411943 42.34 1.2368e-06H6C4.4087 1.2368e-06 2.88257 0.632142 1.75735 1.75736C0.632136 2.88258 0 4.4087 0 6V62C0 63.5913 0.632136 65.1174 1.75735 66.2426C2.88257 67.3679 4.4087 68 6 68H50C51.5913 68 53.1174 67.3679 54.2426 66.2426C55.3679 65.1174 56 63.5913 56 62V13.66C56.0004 13.1346 55.8973 12.6142 55.6965 12.1286C55.4958 11.643 55.2013 11.2018 54.83 10.83ZM44 2.83L53.17 12H48C46.9391 12 45.9217 11.5786 45.1716 10.8284C44.4214 10.0783 44 9.06087 44 8V2.83ZM54 62C54 63.0609 53.5786 64.0783 52.8284 64.8284C52.0783 65.5786 51.0609 66 50 66H6C4.93913 66 3.92172 65.5786 3.17157 64.8284C2.42142 64.0783 2 63.0609 2 62V6C2 4.93914 2.42142 3.92172 3.17157 3.17157C3.92172 2.42143 4.93913 2 6 2H42V8C42 9.5913 42.6321 11.1174 43.7574 12.2426C44.8826 13.3679 46.4087 14 48 14H54V62ZM14 24H42V26H14V24ZM14 30H42V32H14V30ZM14 36H42V38H14V36ZM14 42H42V44H14V42Z" fill="#909090"></path></g><defs><clipPath id="clip0_9011_41219"><rect width="56" height="68" fill="white"></rect></clipPath></defs></svg>'},"./src/images/Delete.svg":function(e,t){e.exports='<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path d="M22 4H20H16V2C16 0.9 15.1 0 14 0H10C8.9 0 8 0.9 8 2V4H4H2V6H4V20C4 21.1 4.9 22 6 22H18C19.1 22 20 21.1 20 20V6H22V4ZM10 2H14V4H10V2ZM18 20H6V6H8H16H18V20ZM14 8H16V18H14V8ZM11 8H13V18H11V8ZM8 8H10V18H8V8Z"></path></svg>'},"./src/images/Down_34x34.svg":function(e,t){e.exports='<svg version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" viewBox="0 0 34 34" xml:space="preserve"><g><path class="st0" d="M33,34H0V0h33c0.6,0,1,0.4,1,1v32C34,33.6,33.6,34,33,34z"></path><polygon class="st1" points="12,16 14,14 17,17 20,14 22,16 17,21 "></polygon></g></svg>'},"./src/images/Left.svg":function(e,t){e.exports='<svg version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" viewBox="0 0 16 16" xml:space="preserve"><polygon points="11,12 9,14 3,8 9,2 11,4 7,8 "></polygon></svg>'},"./src/images/ModernBooleanCheckChecked.svg":function(e,t){e.exports='<svg version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" viewBox="0 0 24 24"><polygon points="19,10 14,10 14,5 10,5 10,10 5,10 5,14 10,14 10,19 14,19 14,14 19,14 "></polygon></svg>'},"./src/images/ModernBooleanCheckInd.svg":function(e,t){e.exports='<svg version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" viewBox="0 0 24 24"><path d="M22,0H2C0.9,0,0,0.9,0,2v20c0,1.1,0.9,2,2,2h20c1.1,0,2-0.9,2-2V2C24,0.9,23.1,0,22,0z M21,18L6,3h15V18z M3,6l15,15H3V6z"></path></svg>'},"./src/images/ModernBooleanCheckUnchecked.svg":function(e,t){e.exports='<svg version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" viewBox="0 0 24 24"><rect x="5" y="10" width="14" height="4"></rect></svg>'},"./src/images/ModernCheck.svg":function(e,t){e.exports='<svg viewBox="0 0 24 24"><path d="M5,13l2-2l3,3l7-7l2,2l-9,9L5,13z"></path></svg>'},"./src/images/ModernRadio.svg":function(e,t){e.exports='<svg viewBox="-12 -12 24 24"><circle r="6" cx="0" cy="0"></circle></svg>'},"./src/images/More.svg":function(e,t){e.exports='<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path d="M6 12C6 13.1 5.1 14 4 14C2.9 14 2 13.1 2 12C2 10.9 2.9 10 4 10C5.1 10 6 10.9 6 12ZM12 10C10.9 10 10 10.9 10 12C10 13.1 10.9 14 12 14C13.1 14 14 13.1 14 12C14 10.9 13.1 10 12 10ZM20 10C18.9 10 18 10.9 18 12C18 13.1 18.9 14 20 14C21.1 14 22 13.1 22 12C22 10.9 21.1 10 20 10Z"></path></svg>'},"./src/images/NavMenu_24x24.svg":function(e,t){e.exports='<svg viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M16 7H2V5H16V7ZM2 11V13H22V11H2ZM2 19H10V17H2V19Z" fill="black" fill-opacity="0.45"></path></svg>'},"./src/images/ProgressButton.svg":function(e,t){e.exports='<svg viewBox="0 0 10 10"><polygon points="2,2 0,4 5,9 10,4 8,2 5,5 "></polygon></svg>'},"./src/images/ProgressButtonV2.svg":function(e,t){e.exports='<svg viewBox="0 0 16 16"><path d="M15 8.99999H4.39998L8.69998 13.3L7.29998 14.7L0.599976 7.99999L7.29998 1.29999L8.69998 2.69999L4.39998 6.99999H15V8.99999Z"></path></svg>'},"./src/images/RemoveFile.svg":function(e,t){e.exports='<svg viewBox="0 0 16 16"><path d="M8,2C4.7,2,2,4.7,2,8s2.7,6,6,6s6-2.7,6-6S11.3,2,8,2z M11,10l-1,1L8,9l-2,2l-1-1l2-2L5,6l1-1l2,2l2-2l1,1L9,8 L11,10z"></path></svg>'},"./src/images/Right.svg":function(e,t){e.exports='<svg version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" viewBox="0 0 16 16" xml:space="preserve"><polygon points="5,4 7,2 13,8 7,14 5,12 9,8 "></polygon></svg>'},"./src/images/SearchClear.svg":function(e,t){e.exports='<svg viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg"><path d="M13.35 3.34999L12.65 2.64999L8.05002 7.24999L3.35002 2.64999L2.65002 3.34999L7.25002 8.04999L2.65002 12.65L3.35002 13.35L8.05002 8.74999L12.65 13.35L13.35 12.65L8.75002 8.04999L13.35 3.34999Z"></path></svg>'},"./src/images/TimerCircle.svg":function(e,t){e.exports='<svg xmlns="http://www.w3.org/2000/svg" version="1.1" viewBox="0 0 160 160"><circle cx="80" cy="80" r="70" style="stroke: var(--sd-timer-stroke-background-color); stroke-width: var(--sd-timer-stroke-background-width)" stroke-dasharray="none" stroke-dashoffset="none"></circle><circle cx="80" cy="80" r="70"></circle></svg>'},"./src/images/V2Check.svg":function(e,t){e.exports='<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M8.00001 15.8L2.60001 10.4L4.00001 9L8.00001 13L16 5L17.4 6.4L8.00001 15.8Z"></path></svg>'},"./src/images/V2Check_24x24.svg":function(e,t){e.exports='<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path d="M9 20.1L1 12L3.1 9.9L9 15.9L20.9 4L23 6.1L9 20.1Z"></path></svg>'},"./src/images/V2DragElement_16x16.svg":function(e,t){e.exports='<svg viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg"><path d="M2 4C2 3.73478 2.10536 3.48043 2.29289 3.29289C2.48043 3.10536 2.73478 3 3 3H13C13.2652 3 13.5196 3.10536 13.7071 3.29289C13.8946 3.48043 14 3.73478 14 4C14 4.26522 13.8946 4.51957 13.7071 4.70711C13.5196 4.89464 13.2652 5 13 5H3C2.73478 5 2.48043 4.89464 2.29289 4.70711C2.10536 4.51957 2 4.26522 2 4ZM13 7H3C2.73478 7 2.48043 7.10536 2.29289 7.29289C2.10536 7.48043 2 7.73478 2 8C2 8.26522 2.10536 8.51957 2.29289 8.70711C2.48043 8.89464 2.73478 9 3 9H13C13.2652 9 13.5196 8.89464 13.7071 8.70711C13.8946 8.51957 14 8.26522 14 8C14 7.73478 13.8946 7.48043 13.7071 7.29289C13.5196 7.10536 13.2652 7 13 7ZM13 11H3C2.73478 11 2.48043 11.1054 2.29289 11.2929C2.10536 11.4804 2 11.7348 2 12C2 12.2652 2.10536 12.5196 2.29289 12.7071C2.48043 12.8946 2.73478 13 3 13H13C13.2652 13 13.5196 12.8946 13.7071 12.7071C13.8946 12.5196 14 12.2652 14 12C14 11.7348 13.8946 11.4804 13.7071 11.2929C13.5196 11.1054 13.2652 11 13 11Z"></path></svg>'},"./src/images/chevron.svg":function(e,t){e.exports='<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path d="M12 15L17 10H7L12 15Z"></path></svg>'},"./src/images/clear_16x16.svg":function(e,t){e.exports='<svg viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg"><path d="M13.35 3.34999L12.65 2.64999L8.05002 7.24999L3.35002 2.64999L2.65002 3.34999L7.25002 8.04999L2.65002 12.65L3.35002 13.35L8.05002 8.74999L12.65 13.35L13.35 12.65L8.75002 8.04999L13.35 3.34999Z"></path></svg>'},"./src/images/collapseDetail.svg":function(e,t){e.exports='<svg viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg"><path d="M13 7H3V9H13V7Z"></path></svg>'},"./src/images/expandDetail.svg":function(e,t){e.exports='<svg viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg"><path d="M13 7H9V3H7V7H3V9H7V13H9V9H13V7Z"></path></svg>'},"./src/images/no-image.svg":function(e,t){e.exports='<svg viewBox="0 0 48 48"><g opacity="0.5"><path d="M14 17.01C14 16.4167 14.1759 15.8366 14.5056 15.3433C14.8352 14.8499 15.3038 14.4654 15.8519 14.2384C16.4001 14.0113 17.0033 13.9519 17.5853 14.0676C18.1672 14.1834 18.7018 14.4691 19.1213 14.8887C19.5409 15.3082 19.8266 15.8428 19.9424 16.4247C20.0581 17.0067 19.9987 17.6099 19.7716 18.1581C19.5446 18.7062 19.1601 19.1748 18.6667 19.5044C18.1734 19.8341 17.5933 20.01 17 20.01C16.2044 20.01 15.4413 19.6939 14.8787 19.1313C14.3161 18.5687 14 17.8056 14 17.01ZM27.09 24.14L20 36.01H36L27.09 24.14ZM36.72 8.14L35.57 10.01H36C36.5304 10.01 37.0391 10.2207 37.4142 10.5958C37.7893 10.9709 38 11.4796 38 12.01V36.01C38 36.5404 37.7893 37.0491 37.4142 37.4242C37.0391 37.7993 36.5304 38.01 36 38.01H18.77L17.57 40.01H36C37.0609 40.01 38.0783 39.5886 38.8284 38.8384C39.5786 38.0883 40 37.0709 40 36.01V12.01C39.9966 11.0765 39.6668 10.1737 39.0678 9.45778C38.4688 8.74188 37.6382 8.25802 36.72 8.09V8.14ZM36.86 4.5L12.86 44.5L11.14 43.5L13.23 40.01H12C10.9391 40.01 9.92172 39.5886 9.17157 38.8384C8.42143 38.0883 8 37.0709 8 36.01V12.01C8 10.9491 8.42143 9.93172 9.17157 9.18157C9.92172 8.43143 10.9391 8.01 12 8.01H32.43L35.14 3.5L36.86 4.5ZM14.43 38.01L15.63 36.01H12L19 27.01L20.56 27.8L31.23 10.01H12C11.4696 10.01 10.9609 10.2207 10.5858 10.5958C10.2107 10.9709 10 11.4796 10 12.01V36.01C10 36.5404 10.2107 37.0491 10.5858 37.4242C10.9609 37.7993 11.4696 38.01 12 38.01H14.43Z"></path></g></svg>'},"./src/images/rating-star-2.svg":function(e,t){e.exports='<svg viewBox="0 0 48 48" xmlns="http://www.w3.org/2000/svg"><g><path d="M24 39.5057L11.7226 45.9839C10.4095 46.6739 8.87606 45.5622 9.12525 44.096L11.4734 30.373L1.54411 20.6556C0.480254 19.6207 1.06489 17.8095 2.53128 17.5986L16.2559 15.5957L22.3994 3.10891C23.0512 1.77685 24.9488 1.77685 25.6102 3.10891L31.7441 15.5957L45.4687 17.5986C46.9351 17.8095 47.5197 19.6207 46.4559 20.6556L36.5266 30.373L38.8748 44.096C39.1239 45.5622 37.5905 46.6835 36.2774 45.9839L24 39.5057Z" fill="none" stroke-width="2"></path><path d="M24.4663 34.6154L24 34.3695L23.5336 34.6154L14.4788 39.389L16.2156 29.2691L16.3044 28.7517L15.9289 28.3848L8.57358 21.1966L18.7249 19.7094L19.245 19.6332L19.4772 19.1616L24 9.97413L28.5228 19.1616L28.755 19.6332L29.275 19.7094L39.4264 21.1966L32.0711 28.3848L31.6956 28.7517L31.7844 29.2691L33.5211 39.389L24.4663 34.6154Z" stroke-width="2"></path></g></svg>'},"./src/images/rating-star-small-2.svg":function(e,t){e.exports='<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path d="M12 19.3373L6.13001 22.4373C5.50001 22.7673 4.77001 22.2373 4.89001 21.5373L6.01001 14.9773L1.26001 10.3273C0.750007 9.83728 1.03001 8.96728 1.73001 8.86728L8.29001 7.90728L11.23 1.93728C11.54 1.29728 12.45 1.29728 12.77 1.93728L15.7 7.90728L22.26 8.86728C22.96 8.96728 23.24 9.83728 22.73 10.3273L17.98 14.9773L19.1 21.5373C19.22 22.2373 18.49 22.7773 17.86 22.4373L11.99 19.3373H12Z" fill="none" stroke-width="2"></path><path d="M12 15.9472L8.58001 17.7572L9.23001 13.9272L6.45001 11.2072L10.29 10.6472L12 7.17725L13.71 10.6472L17.55 11.2072L14.77 13.9272L15.42 17.7572L12 15.9472Z"></path></svg>'},"./src/images/rating-star-small.svg":function(e,t){e.exports='<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><g><path d="M12 19.3373L6.13001 22.4373C5.50001 22.7673 4.77001 22.2373 4.89001 21.5373L6.01001 14.9773L1.26001 10.3273C0.750007 9.83728 1.03001 8.96728 1.73001 8.86728L8.29001 7.90728L11.23 1.93728C11.54 1.29728 12.45 1.29728 12.77 1.93728L15.7 7.90728L22.26 8.86728C22.96 8.96728 23.24 9.83728 22.73 10.3273L17.98 14.9773L19.1 21.5373C19.22 22.2373 18.49 22.7773 17.86 22.4373L11.99 19.3373H12Z" stroke-width="2"></path></g></svg>'},"./src/images/rating-star.svg":function(e,t){e.exports='<svg viewBox="0 0 48 48" xmlns="http://www.w3.org/2000/svg"><g><path d="M24 39.5057L11.7226 45.9839C10.4095 46.6739 8.87606 45.5622 9.12525 44.096L11.4734 30.373L1.54411 20.6556C0.480254 19.6207 1.06489 17.8095 2.53128 17.5986L16.2559 15.5957L22.3994 3.10891C23.0512 1.77685 24.9488 1.77685 25.6102 3.10891L31.7441 15.5957L45.4687 17.5986C46.9351 17.8095 47.5197 19.6207 46.4559 20.6556L36.5266 30.373L38.8748 44.096C39.1239 45.5622 37.5905 46.6835 36.2774 45.9839L24 39.5057Z" stroke-width="2"></path></g></svg>'},"./src/images/search.svg":function(e,t){e.exports='<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path d="M14 2C9.6 2 6 5.6 6 10C6 11.8 6.6 13.5 7.7 14.9L2.3 20.3C1.9 20.7 1.9 21.3 2.3 21.7C2.5 21.9 2.7 22 3 22C3.3 22 3.5 21.9 3.7 21.7L9.1 16.3C10.5 17.4 12.2 18 14 18C18.4 18 22 14.4 22 10C22 5.6 18.4 2 14 2ZM14 16C10.7 16 8 13.3 8 10C8 6.7 10.7 4 14 4C17.3 4 20 6.7 20 10C20 13.3 17.3 16 14 16Z"></path></svg>'},"./src/images/smiley sync \\.svg$":function(e,t,n){var r={"./average.svg":"./src/images/smiley/average.svg","./excellent.svg":"./src/images/smiley/excellent.svg","./good.svg":"./src/images/smiley/good.svg","./normal.svg":"./src/images/smiley/normal.svg","./not-good.svg":"./src/images/smiley/not-good.svg","./perfect.svg":"./src/images/smiley/perfect.svg","./poor.svg":"./src/images/smiley/poor.svg","./terrible.svg":"./src/images/smiley/terrible.svg","./very-good.svg":"./src/images/smiley/very-good.svg","./very-poor.svg":"./src/images/smiley/very-poor.svg"};function o(e){var t=i(e);return n(t)}function i(e){if(!n.o(r,e)){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}return r[e]}o.keys=function(){return Object.keys(r)},o.resolve=i,e.exports=o,o.id="./src/images/smiley sync \\.svg$"},"./src/images/smiley/average.svg":function(e,t){e.exports='<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path d="M7.00572 7C6.45572 7 6.00572 6.55 6.00572 6V2C6.00572 1.45 6.45572 1 7.00572 1C7.55572 1 8.00572 1.45 8.00572 2V6C8.00572 6.55 7.55572 7 7.00572 7ZM18.0057 6V2C18.0057 1.45 17.5557 1 17.0057 1C16.4557 1 16.0057 1.45 16.0057 2V6C16.0057 6.55 16.4557 7 17.0057 7C17.5557 7 18.0057 6.55 18.0057 6ZM19.9457 21.33C20.1257 20.81 19.8557 20.24 19.3357 20.05C14.5457 18.35 9.45572 18.35 4.66572 20.05C4.14572 20.23 3.87572 20.81 4.05572 21.33C4.23572 21.85 4.80572 22.12 5.33572 21.94C9.69572 20.4 14.3057 20.4 18.6657 21.94C18.7757 21.98 18.8857 22 18.9957 22C19.4057 22 19.7957 21.74 19.9357 21.33H19.9457Z"></path></svg>'},"./src/images/smiley/excellent.svg":function(e,t){e.exports='<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path d="M12.01 24C6.85767 24 1.15509 20.96 0.0145752 14.16C-0.0354475 13.87 0.0445888 13.57 0.234675 13.35C0.424761 13.13 0.704888 13 0.995019 13H23.005C23.2951 13 23.5752 13.13 23.7653 13.35C23.9554 13.57 24.0354 13.87 23.9854 14.16C22.8549 20.95 17.1423 24 11.99 24H12.01ZM2.25559 15C3.61621 19.82 8.0182 22 12.01 22C16.0018 22 20.4038 19.82 21.7644 15H2.25559ZM8.00819 6V2C8.00819 1.45 7.55799 1 7.00774 1C6.45749 1 6.00729 1.45 6.00729 2V6C6.00729 6.55 6.45749 7 7.00774 7C7.55799 7 8.00819 6.55 8.00819 6ZM18.0127 6V2C18.0127 1.45 17.5625 1 17.0123 1C16.462 1 16.0118 1.45 16.0118 2V6C16.0118 6.55 16.462 7 17.0123 7C17.5625 7 18.0127 6.55 18.0127 6Z"></path></svg>'},"./src/images/smiley/good.svg":function(e,t){e.exports='<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path d="M12.0022 23.99C11.452 23.99 11.0018 23.5402 11.0018 22.9904C11.0018 22.4407 11.452 21.9909 12.0022 21.9909C16.3137 21.9909 21.0755 19.472 22.0158 13.8344C22.1058 13.2947 22.616 12.9248 23.1662 13.0148C23.7064 13.1047 24.0765 13.6245 23.9865 14.1643C22.8561 20.9513 17.144 24 11.9922 24L12.0022 23.99ZM8.00072 5.99783V1.99957C8.00072 1.4498 7.55056 1 7.00036 1C6.45016 1 6 1.4498 6 1.99957V5.99783C6 6.54759 6.45016 6.99739 7.00036 6.99739C7.55056 6.99739 8.00072 6.54759 8.00072 5.99783ZM18.0043 5.99783V1.99957C18.0043 1.4498 17.5542 1 17.004 1C16.4538 1 16.0036 1.4498 16.0036 1.99957V5.99783C16.0036 6.54759 16.4538 6.99739 17.004 6.99739C17.5542 6.99739 18.0043 6.54759 18.0043 5.99783Z"></path></svg>'},"./src/images/smiley/normal.svg":function(e,t){e.exports='<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path d="M7 7C6.45 7 6 6.55 6 6V2C6 1.45 6.45 1 7 1C7.55 1 8 1.45 8 2V6C8 6.55 7.55 7 7 7ZM18 6V2C18 1.45 17.55 1 17 1C16.45 1 16 1.45 16 2V6C16 6.55 16.45 7 17 7C17.55 7 18 6.55 18 6ZM21 21C21 20.45 20.55 20 20 20H4C3.45 20 3 20.45 3 21C3 21.55 3.45 22 4 22H20C20.55 22 21 21.55 21 21Z"></path></svg>'},"./src/images/smiley/not-good.svg":function(e,t){e.exports='<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path d="M7.06927 7C6.51927 7 6.06927 6.55 6.06927 6V2C6.06927 1.45 6.51927 1 7.06927 1C7.61927 1 8.06927 1.45 8.06927 2V6C8.06927 6.55 7.61927 7 7.06927 7ZM18.0693 6V2C18.0693 1.45 17.6193 1 17.0693 1C16.5193 1 16.0693 1.45 16.0693 2V6C16.0693 6.55 16.5193 7 17.0693 7C17.6193 7 18.0693 6.55 18.0693 6ZM22.5693 21.9C23.0693 21.66 23.2793 21.07 23.0393 20.57C21.1093 16.52 16.9093 14 12.0693 14C7.22927 14 3.02927 16.52 1.09927 20.57C0.859273 21.07 1.06927 21.67 1.56927 21.9C2.06927 22.14 2.65927 21.93 2.89927 21.43C4.49927 18.08 8.00927 16 12.0593 16C16.1093 16 19.6293 18.08 21.2193 21.43C21.3893 21.79 21.7493 22 22.1193 22C22.2593 22 22.4093 21.97 22.5493 21.9H22.5693Z"></path></svg>'},"./src/images/smiley/perfect.svg":function(e,t){e.exports='<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path d="M12.01 23C6.85721 23 1.15412 19.9621 0.0134987 13.1669C-0.0765501 12.6272 0.293651 12.1076 0.833944 12.0177C1.38424 11.9277 1.89452 12.2975 1.98457 12.8371C2.92508 18.4732 7.69767 20.9914 12 20.9914C16.3023 20.9914 21.0749 18.4732 22.0154 12.8371C22.1055 12.2975 22.6158 11.9277 23.1661 12.0177C23.7063 12.1076 24.0765 12.6272 23.9865 13.1669C22.8559 19.9521 17.1428 23 11.99 23H12.01ZM21.165 6.15177C22.3056 5.01257 22.3056 3.16386 21.165 2.02465L21.0049 1.85477C19.9143 0.765533 18.1633 0.725561 17.0227 1.71487C15.8821 0.715568 14.1312 0.765533 13.0406 1.85477L12.8705 2.01466C11.7299 3.15386 11.7299 5.00257 12.8705 6.14178L17.0227 10.2889L21.175 6.14178L21.165 6.15177ZM15.742 3.27378L17.0127 4.54289L18.2834 3.27378C18.6436 2.91403 19.2239 2.91403 19.5841 3.27378L19.7442 3.43367C20.1044 3.79342 20.1044 4.37301 19.7442 4.73276L17.0127 7.46086L14.2812 4.73276C13.921 4.37301 13.921 3.79342 14.2812 3.43367L14.4413 3.27378C14.6214 3.09391 14.8515 3.00397 15.0917 3.00397C15.3318 3.00397 15.5619 3.09391 15.742 3.27378ZM11.1595 6.15177C12.3002 5.01257 12.3002 3.16386 11.1595 2.02465L10.9995 1.85477C9.90886 0.765533 8.15792 0.725561 7.0173 1.71487C5.87668 0.715568 4.12573 0.765533 3.03514 1.85477L2.86505 2.01466C1.72443 3.15386 1.72443 5.00257 2.86505 6.14178L7.0173 10.2889L11.1695 6.14178L11.1595 6.15177ZM5.7366 3.27378L7.00729 4.54289L8.27798 3.27378C8.63818 2.91403 9.21849 2.91403 9.57869 3.27378L9.73877 3.43367C10.099 3.79342 10.099 4.37301 9.73877 4.73276L7.00729 7.46086L4.27581 4.73276C3.91562 4.37301 3.91562 3.79342 4.27581 3.43367L4.4359 3.27378C4.61599 3.09391 4.84612 3.00397 5.08625 3.00397C5.32638 3.00397 5.5565 3.09391 5.7366 3.27378Z"></path></svg>'},"./src/images/smiley/poor.svg":function(e,t){e.exports='<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path d="M7.01915 7C6.46961 7 6.01998 6.55 6.01998 6V2C6.01998 1.45 6.46961 1 7.01915 1C7.56869 1 8.01832 1.45 8.01832 2V6C8.01832 6.55 7.56869 7 7.01915 7ZM18.01 6V2C18.01 1.45 17.5604 1 17.0108 1C16.4613 1 16.0117 1.45 16.0117 2V6C16.0117 6.55 16.4613 7 17.0108 7C17.5604 7 18.01 6.55 18.01 6ZM16.4213 21.58L18.01 19.99L19.2989 21.28C19.6886 21.67 20.3181 21.67 20.7077 21.28C21.0974 20.89 21.0974 20.26 20.7077 19.87L19.4188 18.58C18.6395 17.8 17.3705 17.8 16.5912 18.58L15.0025 20.17L13.4138 18.58C12.6345 17.8 11.3655 17.8 10.5862 18.58L8.9975 20.17L7.40883 18.58C6.62948 17.8 5.36053 17.8 4.58118 18.58L3.29226 19.87C2.90258 20.26 2.90258 20.89 3.29226 21.28C3.68193 21.67 4.31141 21.67 4.70108 21.28L5.99001 19.99L7.57868 21.58C8.35803 22.36 9.62698 22.36 10.4063 21.58L11.995 19.99L13.5837 21.58C13.9734 21.97 14.4829 22.16 14.9925 22.16C15.5021 22.16 16.0117 21.97 16.4013 21.58H16.4213Z"></path></svg>'},"./src/images/smiley/terrible.svg":function(e,t){e.exports='<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path d="M4 4.9938C4 4.44362 4.45 3.99348 5 3.99348H6.59L5.3 2.70306C4.91 2.31293 4.91 1.68272 5.3 1.2926C5.69 0.902468 6.32 0.902468 6.71 1.2926L9.71 4.29357C9.8 4.3836 9.88 4.49364 9.93 4.62368C10.03 4.86376 10.03 5.14385 9.93 5.38393C9.88 5.50397 9.81 5.614 9.71 5.71404L6.71 8.71501C6.51 8.91508 6.26 9.00511 6 9.00511C5.74 9.00511 5.49 8.90508 5.29 8.71501C4.9 8.32489 4.9 7.69468 5.29 7.30456L6.58 6.01413H4.99C4.44 6.01413 3.99 5.56399 3.99 5.01381L4 4.9938ZM14.08 5.37393C14.13 5.49397 14.2 5.604 14.3 5.70403L17.3 8.70501C17.5 8.90508 17.75 8.99511 18.01 8.99511C18.27 8.99511 18.52 8.89507 18.72 8.70501C19.11 8.31488 19.11 7.68468 18.72 7.29455L17.43 6.00413H19.02C19.57 6.00413 20.02 5.55399 20.02 5.00381C20.02 4.45363 19.57 4.00348 19.02 4.00348H17.43L18.72 2.71306C19.11 2.32293 19.11 1.69273 18.72 1.3026C18.33 0.912471 17.7 0.912471 17.31 1.3026L14.31 4.30358C14.22 4.39361 14.14 4.50364 14.09 4.63368C13.99 4.87376 13.99 5.15385 14.09 5.39393L14.08 5.37393ZM22 14.9971V20.999C22 22.6496 20.65 24 19 24H5C3.35 24 2 22.6496 2 20.999V14.9971C2 13.3465 3.35 11.9961 5 11.9961H19C20.65 11.9961 22 13.3465 22 14.9971ZM19 13.9967H16V16.9977H20V14.9971C20 14.4469 19.55 13.9967 19 13.9967ZM14 16.9977V13.9967H10V16.9977H14ZM10 18.9984V21.9993H14V18.9984H10ZM4 14.9971V16.9977H8V13.9967H5C4.45 13.9967 4 14.4469 4 14.9971ZM5 21.9993H8V18.9984H4V20.999C4 21.5492 4.45 21.9993 5 21.9993ZM20 20.999V18.9984H16V21.9993H19C19.55 21.9993 20 21.5492 20 20.999Z"></path></svg>'},"./src/images/smiley/very-good.svg":function(e,t){e.exports='<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path d="M12.01 24C6.85721 24 1.15412 20.96 0.0134987 14.16C-0.0765501 13.62 0.293651 13.1 0.833944 13.01C1.38424 12.92 1.89452 13.29 1.98457 13.83C2.92508 19.47 7.69767 21.99 12 21.99C16.3023 21.99 21.0749 19.47 22.0154 13.83C22.1055 13.29 22.6158 12.92 23.1661 13.01C23.7063 13.1 24.0765 13.62 23.9865 14.16C22.8559 20.95 17.1428 24 11.99 24H12.01ZM8.00783 6V2C8.00783 1.45 7.55759 1 7.00729 1C6.45699 1 6.00675 1.45 6.00675 2V6C6.00675 6.55 6.45699 7 7.00729 7C7.55759 7 8.00783 6.55 8.00783 6ZM18.0133 6V2C18.0133 1.45 17.563 1 17.0127 1C16.4624 1 16.0122 1.45 16.0122 2V6C16.0122 6.55 16.4624 7 17.0127 7C17.563 7 18.0133 6.55 18.0133 6Z"></path></svg>'},"./src/images/smiley/very-poor.svg":function(e,t){e.exports='<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><g clip-path="url(#clip0_15894_140103)"><path d="M4.88291 4.50999C4.47291 4.50999 4.08291 4.24999 3.94291 3.83999C3.76291 3.31999 4.03291 2.74999 4.55291 2.56999L8.32291 1.24999C8.84291 1.05999 9.41291 1.33999 9.59291 1.85999C9.77291 2.37999 9.50291 2.94999 8.98291 3.12999L5.20291 4.44999C5.09291 4.48999 4.98291 4.50999 4.87291 4.50999H4.88291ZM19.8129 3.88999C20.0229 3.37999 19.7729 2.78999 19.2629 2.58999L15.5529 1.06999C15.0429 0.859992 14.4529 1.10999 14.2529 1.61999C14.0429 2.12999 14.2929 2.71999 14.8029 2.91999L18.5029 4.42999C18.6229 4.47999 18.7529 4.49999 18.8829 4.49999C19.2729 4.49999 19.6529 4.26999 19.8129 3.87999V3.88999ZM3.50291 5.99999C2.64291 6.36999 1.79291 6.87999 1.00291 7.47999C0.79291 7.63999 0.64291 7.86999 0.59291 8.13999C0.48291 8.72999 0.87291 9.28999 1.45291 9.39999C2.04291 9.50999 2.60291 9.11999 2.71291 8.53999C2.87291 7.68999 3.12291 6.82999 3.50291 5.98999V5.99999ZM21.0429 8.54999C21.6029 10.48 24.2429 8.83999 22.7529 7.47999C21.9629 6.87999 21.1129 6.36999 20.2529 5.99999C20.6329 6.83999 20.8829 7.69999 21.0429 8.54999ZM21.5729 13.2C21.2529 14.2 22.5429 15.09 23.3629 14.39C23.8529 14 23.9229 13.29 23.5429 12.81C21.7429 10.67 22.1329 10.55 21.5829 13.2H21.5729ZM1.75291 11C1.22291 11.79 -0.14709 12.64 0.0129102 13.75C0.15291 14.36 0.75291 14.74 1.35291 14.6C2.98291 14.1 1.80291 12.22 1.75291 11ZM19.8829 17C19.8829 13.14 16.2929 9.99999 11.8829 9.99999C7.47291 9.99999 3.88291 13.14 3.88291 17C3.88291 20.86 7.47291 24 11.8829 24C16.2929 24 19.8829 20.86 19.8829 17ZM17.8829 17C17.8829 19.76 15.1929 22 11.8829 22C8.57291 22 5.88291 19.76 5.88291 17C5.88291 14.24 8.57291 12 11.8829 12C15.1929 12 17.8829 14.24 17.8829 17Z"></path></g><defs><clipPath id="clip0_15894_140103"><rect width="24" height="24" fill="white"></rect></clipPath></defs></svg>'},"./src/itemvalue.ts":function(e,t,n){"use strict";n.r(t),n.d(t,"ItemValue",(function(){return f}));var r,o=n("./src/localizablestring.ts"),i=n("./src/jsonobject.ts"),s=n("./src/helpers.ts"),a=n("./src/conditions.ts"),l=n("./src/base.ts"),u=n("./src/settings.ts"),c=n("./src/actions/action.ts"),p=n("./src/question.ts"),d=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),h=function(e,t,n,r){var o,i=arguments.length,s=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,r);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(i<3?o(s):i>3?o(t,n,s):o(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},f=function(e){function t(t,n,r){void 0===n&&(n=null),void 0===r&&(r="itemvalue");var a=e.call(this)||this;return a.typeName=r,a.ownerPropertyName="",a.locTextValue=new o.LocalizableString(a,!0,"text"),a.locTextValue.onStrChanged=function(e,t){t==a.value&&(t=void 0),a.propertyValueChanged("text",e,t)},a.locTextValue.onGetTextCallback=function(e){return e||(s.Helpers.isValueEmpty(a.value)?null:a.value.toString())},n&&(a.locText.text=n),t&&"object"==typeof t?a.setData(t):a.value=t,"itemvalue"!=a.getType()&&i.CustomPropertiesCollection.createProperties(a),a.data=a,a.onCreating(),a}return d(t,e),t.prototype.getMarkdownHtml=function(e,t){return this.locOwner?this.locOwner.getMarkdownHtml(e,t):void 0},t.prototype.getRenderer=function(e){return this.locOwner?this.locOwner.getRenderer(e):null},t.prototype.getRendererContext=function(e){return this.locOwner?this.locOwner.getRendererContext(e):e},t.prototype.getProcessedText=function(e){return this.locOwner?this.locOwner.getProcessedText(e):e},Object.defineProperty(t,"Separator",{get:function(){return u.settings.itemValueSeparator},set:function(e){u.settings.itemValueSeparator=e},enumerable:!1,configurable:!0}),t.setData=function(e,t,n){e.length=0;for(var r=0;r<t.length;r++){var o=t[r],s=o&&"function"==typeof o.getType?o.getType():null!=n?n:"itemvalue",a=i.Serializer.createClass(s);a.setData(o),o.originalItem&&(a.originalItem=o.originalItem),e.push(a)}},t.getData=function(e){for(var t=[],n=0;n<e.length;n++)t.push(e[n].getData());return t},t.getItemByValue=function(e,t){if(!Array.isArray(e))return null;for(var n=s.Helpers.isValueEmpty(t),r=0;r<e.length;r++){if(n&&s.Helpers.isValueEmpty(e[r].value))return e[r];if(s.Helpers.isTwoValueEquals(e[r].value,t,!1,!0,!1))return e[r]}return null},t.getTextOrHtmlByValue=function(e,n){var r=t.getItemByValue(e,n);return null!==r?r.locText.textOrHtml:""},t.locStrsChanged=function(e){for(var t=0;t<e.length;t++)e[t].locStrsChanged()},t.runConditionsForItems=function(e,n,r,o,i,s,a){return void 0===s&&(s=!0),t.runConditionsForItemsCore(e,n,r,o,i,!0,s,a)},t.runEnabledConditionsForItems=function(e,n,r,o,i){return t.runConditionsForItemsCore(e,null,n,r,o,!1,!0,i)},t.runConditionsForItemsCore=function(e,t,n,r,o,i,s,a){void 0===s&&(s=!0),r||(r={});for(var l=r.item,u=r.choice,c=!1,p=0;p<e.length;p++){var d=e[p];r.item=d.value,r.choice=d.value;var h=!(!s||!d.getConditionRunner)&&d.getConditionRunner(i);h||(h=n);var f=!0;h&&(f=h.run(r,o)),a&&(f=a(d,f)),t&&f&&t.push(d),f!=(i?d.isVisible:d.isEnabled)&&(c=!0,i?d.setIsVisible&&d.setIsVisible(f):d.setIsEnabled&&d.setIsEnabled(f))}return l?r.item=l:delete r.item,u?r.choice=u:delete r.choice,c},t.prototype.onCreating=function(){},t.prototype.getType=function(){return this.typeName?this.typeName:"itemvalue"},t.prototype.getSurvey=function(e){return void 0===e&&(e=!1),this.locOwner&&this.locOwner.getSurvey?this.locOwner.getSurvey():null},t.prototype.getLocale=function(){return this.locOwner&&this.locOwner.getLocale?this.locOwner.getLocale():""},Object.defineProperty(t.prototype,"isInternal",{get:function(){return!0===this.isGhost},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locText",{get:function(){return this.locTextValue},enumerable:!1,configurable:!0}),t.prototype.setLocText=function(e){this.locTextValue=e},Object.defineProperty(t.prototype,"locOwner",{get:function(){return this._locOwner},set:function(e){this._locOwner=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"value",{get:function(){return this.getPropertyValue("value")},set:function(e){var t=void 0;if(!s.Helpers.isValueEmpty(e)){var n=e.toString(),r=n.indexOf(u.settings.itemValueSeparator);r>-1&&(e=n.slice(0,r),t=n.slice(r+1))}this.setPropertyValue("value",e),t&&(this.text=t),this.id=this.value},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hasText",{get:function(){return!!this.locText.pureText},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"pureText",{get:function(){return this.locText.pureText},set:function(e){this.text=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"text",{get:function(){return this.locText.calculatedText},set:function(e){this.locText.text=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"calculatedText",{get:function(){return this.locText.calculatedText},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"shortcutText",{get:function(){return this.text},enumerable:!1,configurable:!0}),t.prototype.canSerializeValue=function(){var e=this.value;return null!=e&&!Array.isArray(e)&&"object"!=typeof e},t.prototype.getData=function(){var e=this.toJSON();if(e.value&&e.value.pos&&delete e.value.pos,s.Helpers.isValueEmpty(e.value))return e;var t=this.canSerializeValue();return t&&(u.settings.serialization.itemValueSerializeAsObject||u.settings.serialization.itemValueSerializeDisplayText)||1!=Object.keys(e).length?(u.settings.serialization.itemValueSerializeDisplayText&&void 0===e.text&&t&&(e.text=this.value.toString()),e):this.value},t.prototype.toJSON=function(){var e={},t=i.Serializer.getProperties(this.getType());t&&0!=t.length||(t=i.Serializer.getProperties("itemvalue"));for(var n=new i.JsonObject,r=0;r<t.length;r++){var o=t[r];"text"===o.name&&!this.locText.hasNonDefaultText()&&s.Helpers.isTwoValueEquals(this.value,this.text,!1,!0,!1)||n.valueToJson(this,e,o)}return e},t.prototype.setData=function(e){if(!s.Helpers.isValueEmpty(e)){if(void 0===e.value&&void 0!==e.text&&1===Object.keys(e).length&&(e.value=e.text),void 0!==e.value){var t;t="function"==typeof e.toJSON?e.toJSON():e,(new i.JsonObject).toObject(t,this)}else this.value=e;this.locText.strChanged()}},Object.defineProperty(t.prototype,"visibleIf",{get:function(){return this.getPropertyValue("visibleIf","")},set:function(e){this.setPropertyValue("visibleIf",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"enableIf",{get:function(){return this.getPropertyValue("enableIf","")},set:function(e){this.setPropertyValue("enableIf",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isVisible",{get:function(){return this.getPropertyValue("isVisible",!0)},enumerable:!1,configurable:!0}),t.prototype.setIsVisible=function(e){this.setPropertyValue("isVisible",e)},Object.defineProperty(t.prototype,"isEnabled",{get:function(){return this.getPropertyValue("isEnabled",!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(){e.prototype.locStrsChanged.call(this),this.locText.strChanged()},t.prototype.onPropertyValueChanged=function(e,t,n){"value"!==e||this.hasText||this.locText.strChanged();var r="itemValuePropertyChanged";this.locOwner&&this.locOwner[r]&&this.locOwner[r](this,e,t,n)},t.prototype.getConditionRunner=function(e){return e?this.getVisibleConditionRunner():this.getEnableConditionRunner()},t.prototype.getVisibleConditionRunner=function(){return this.visibleIf?(this.visibleConditionRunner||(this.visibleConditionRunner=new a.ConditionRunner(this.visibleIf)),this.visibleConditionRunner.expression=this.visibleIf,this.visibleConditionRunner):null},t.prototype.getEnableConditionRunner=function(){return this.enableIf?(this.enableConditionRunner||(this.enableConditionRunner=new a.ConditionRunner(this.enableIf)),this.enableConditionRunner.expression=this.enableIf,this.enableConditionRunner):null},Object.defineProperty(t.prototype,"selected",{get:function(){var e=this,t=this._locOwner;return t instanceof p.Question&&t.isItemSelected&&void 0===this.selectedValue&&(this.selectedValue=new l.ComputedUpdater((function(){return t.isItemSelected(e)}))),this.selectedValue},enumerable:!1,configurable:!0}),t.prototype.getComponent=function(){return this._locOwner instanceof p.Question?this.componentValue||this._locOwner.itemComponent:this.componentValue},t.prototype.setComponent=function(e){this.componentValue=e},t.prototype.getEnabled=function(){return this.isEnabled},t.prototype.setEnabled=function(e){this.setIsEnabled(e)},t.prototype.getVisible=function(){var e=void 0===this.isVisible||this.isVisible,t=void 0===this._visible||this._visible;return e&&t},t.prototype.setVisible=function(e){this._visible=e},t.prototype.getLocTitle=function(){return this.locText},t.prototype.getTitle=function(){return this.text},t.prototype.setLocTitle=function(e){},t.prototype.setTitle=function(e){},h([Object(i.property)({defaultValue:!0})],t.prototype,"_visible",void 0),h([Object(i.property)()],t.prototype,"selectedValue",void 0),h([Object(i.property)()],t.prototype,"icon",void 0),t}(c.BaseAction);l.Base.createItemValue=function(e,t){var n=null;return(n=t?i.JsonObject.metaData.createClass(t,{}):"function"==typeof e.getType?new f(null,void 0,e.getType()):new f(null)).setData(e),n},l.Base.itemValueLocStrChanged=function(e){f.locStrsChanged(e)},i.JsonObjectProperty.getItemValuesDefaultValue=function(e,t){var n=new Array;return f.setData(n,Array.isArray(e)?e:[],t),n},i.Serializer.addClass("itemvalue",[{name:"!value",isUnique:!0},{name:"text",serializationProperty:"locText"},{name:"visibleIf:condition",showMode:"form"},{name:"enableIf:condition",showMode:"form",visibleIf:function(e){return!e||"rateValues"!==e.ownerPropertyName}}],(function(e){return new f(e)}))},"./src/jsonobject.ts":function(e,t,n){"use strict";n.r(t),n.d(t,"property",(function(){return c})),n.d(t,"propertyArray",(function(){return d})),n.d(t,"JsonObjectProperty",(function(){return h})),n.d(t,"CustomPropertiesCollection",(function(){return f})),n.d(t,"JsonMetadataClass",(function(){return g})),n.d(t,"JsonMetadata",(function(){return m})),n.d(t,"JsonError",(function(){return y})),n.d(t,"JsonUnknownPropertyError",(function(){return v})),n.d(t,"JsonMissingTypeErrorBase",(function(){return b})),n.d(t,"JsonMissingTypeError",(function(){return C})),n.d(t,"JsonIncorrectTypeError",(function(){return w})),n.d(t,"JsonRequiredPropertyError",(function(){return x})),n.d(t,"JsonObject",(function(){return P})),n.d(t,"Serializer",(function(){return S}));var r,o=n("./src/surveyStrings.ts"),i=n("./src/base.ts"),s=n("./src/helpers.ts"),a=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),l=function(e,t){for(var n=0,r=t.length,o=e.length;n<r;n++,o++)e[o]=t[n];return e};function u(e,t,n){var r=e.getLocalizableString(n);r||(r=e.createLocalizableString(n,e,!0),"object"==typeof t.localizable&&"function"==typeof t.localizable.onGetTextCallback&&(r.onGetTextCallback=t.localizable.onGetTextCallback))}function c(e){return function(t,n){var r=function(e,t){if(t&&"object"==typeof t&&t.type===i.ComputedUpdater.ComputedUpdaterType){i.Base.startCollectDependencies((function(){return e[n]=t.updater()}),e,n);var r=t.updater(),o=i.Base.finishCollectDependencies();return t.setDependencies(o),r}return t};e&&e.localizable?(Object.defineProperty(t,n,{get:function(){return function(e,t,n){u(e,t,n);var r=e.getLocalizableStringText(n);if(r)return r;if("object"==typeof t.localizable&&t.localizable.defaultStr){var i=e.getLocale?e.getLocale():"";return o.surveyLocalization.getString(t.localizable.defaultStr,i)}return""}(this,e,n)},set:function(t){u(this,e,n);var o=r(this,t);this.setLocalizableStringText(n,o),e&&e.onSet&&e.onSet(o,this)}}),Object.defineProperty(t,"object"==typeof e.localizable&&e.localizable.name?e.localizable.name:"loc"+n.charAt(0).toUpperCase()+n.slice(1),{get:function(){return u(this,e,n),this.getLocalizableString(n)}})):Object.defineProperty(t,n,{get:function(){var t=null;return e&&("function"==typeof e.getDefaultValue&&(t=e.getDefaultValue(this)),void 0!==e.defaultValue&&(t=e.defaultValue)),this.getPropertyValue(n,t)},set:function(t){var o=r(this,t);this.setPropertyValue(n,o),e&&e.onSet&&e.onSet(o,this)}})}}function p(e,t,n){e.ensureArray(n,(function(n,r){var o=t?t.onPush:null;o&&o(n,r,e)}),(function(n,r){var o=t?t.onRemove:null;o&&o(n,r,e)}))}function d(e){return function(t,n){Object.defineProperty(t,n,{get:function(){return p(this,e,n),this.getPropertyValue(n)},set:function(t){p(this,e,n);var r=this.getPropertyValue(n);t!==r&&(r?r.splice.apply(r,l([0,r.length],t||[])):this.setPropertyValue(n,t),e&&e.onSet&&e.onSet(t,this))}})}}var h=function(){function e(t,n,r){void 0===r&&(r=!1),this.name=n,this.isRequiredValue=!1,this.isUniqueValue=!1,this.isSerializable=!0,this.isLightSerializable=!0,this.isCustom=!1,this.isDynamicChoices=!1,this.isBindable=!1,this.category="",this.categoryIndex=-1,this.visibleIndex=-1,this.maxLength=-1,this.isArray=!1,this.classInfoValue=t,this.isRequiredValue=r,this.idValue=e.Index++}return Object.defineProperty(e.prototype,"id",{get:function(){return this.idValue},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"classInfo",{get:function(){return this.classInfoValue},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"type",{get:function(){return this.typeValue?this.typeValue:"string"},set:function(e){"itemvalues"===e&&(e="itemvalue[]"),"textitems"===e&&(e="textitem[]"),this.typeValue=e,this.typeValue.indexOf("[]")===this.typeValue.length-2&&(this.isArray=!0,this.className=this.typeValue.substring(0,this.typeValue.length-2))},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"isRequired",{get:function(){return this.isRequiredValue},set:function(e){this.isRequiredValue=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"isUnique",{get:function(){return this.isUniqueValue},set:function(e){this.isUniqueValue=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"uniquePropertyName",{get:function(){return this.uniquePropertyValue},set:function(e){this.uniquePropertyValue=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"hasToUseGetValue",{get:function(){return this.onGetValue||this.serializationProperty},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"defaultValue",{get:function(){var t=this.defaultValueFunc?this.defaultValueFunc():this.defaultValueValue;return e.getItemValuesDefaultValue&&P.metaData.isDescendantOf(this.className,"itemvalue")&&(t=e.getItemValuesDefaultValue(this.defaultValueValue||[],this.className)),t},set:function(e){this.defaultValueValue=e},enumerable:!1,configurable:!0}),e.prototype.isDefaultValue=function(e){return s.Helpers.isValueEmpty(this.defaultValue)?!1===e&&("boolean"==this.type||"switch"==this.type)||""===e||s.Helpers.isValueEmpty(e):s.Helpers.isTwoValueEquals(e,this.defaultValue,!1,!0,!1)},e.prototype.getValue=function(e){return this.onGetValue?this.onGetValue(e):this.serializationProperty&&e[this.serializationProperty]?e[this.serializationProperty].getJson():e[this.name]},e.prototype.getPropertyValue=function(e){return this.isLocalizable?e[this.serializationProperty]?e[this.serializationProperty].text:null:this.getValue(e)},Object.defineProperty(e.prototype,"hasToUseSetValue",{get:function(){return this.onSetValue||this.serializationProperty},enumerable:!1,configurable:!0}),e.prototype.settingValue=function(e,t){return!this.onSettingValue||e.isLoadingFromJson?t:this.onSettingValue(e,t)},e.prototype.setValue=function(e,t,n){this.onSetValue?this.onSetValue(e,t,n):this.serializationProperty&&e[this.serializationProperty]?e[this.serializationProperty].setJson(t):(t&&"string"==typeof t&&("number"==this.type&&(t=parseInt(t)),"boolean"!=this.type&&"switch"!=this.type||(t="true"===t.toLowerCase())),e[this.name]=t)},e.prototype.getObjType=function(e){return this.classNamePart?e.replace(this.classNamePart,""):e},Object.defineProperty(e.prototype,"choices",{get:function(){return this.getChoices(null)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"hasChoices",{get:function(){return!!this.choicesValue||!!this.choicesfunc},enumerable:!1,configurable:!0}),e.prototype.getChoices=function(e,t){return void 0===t&&(t=null),null!=this.choicesValue?this.choicesValue:null!=this.choicesfunc?this.choicesfunc(e,t):null},e.prototype.setChoices=function(e,t){void 0===t&&(t=null),this.choicesValue=e,this.choicesfunc=t},e.prototype.getBaseValue=function(){return this.baseValue?"function"==typeof this.baseValue?this.baseValue():this.baseValue:""},e.prototype.setBaseValue=function(e){this.baseValue=e},Object.defineProperty(e.prototype,"readOnly",{get:function(){return null!=this.readOnlyValue&&this.readOnlyValue},set:function(e){this.readOnlyValue=e},enumerable:!1,configurable:!0}),e.prototype.isVisible=function(e,t){void 0===t&&(t=null);var n=!this.layout||this.layout==e;return!(!this.visible||!n)&&(!this.visibleIf||!t||this.visibleIf(t))},Object.defineProperty(e.prototype,"visible",{get:function(){return null==this.visibleValue||this.visibleValue},set:function(e){this.visibleValue=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"isLocalizable",{get:function(){return null!=this.isLocalizableValue&&this.isLocalizableValue},set:function(e){this.isLocalizableValue=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"dataList",{get:function(){return Array.isArray(this.dataListValue)?this.dataListValue:[]},set:function(e){this.dataListValue=e},enumerable:!1,configurable:!0}),e.prototype.mergeWith=function(t){for(var n=e.mergableValues,r=0;r<n.length;r++)this.mergeValue(t,n[r])},e.prototype.addDependedProperty=function(e){this.dependedProperties||(this.dependedProperties=[]),this.dependedProperties.indexOf(e)<0&&this.dependedProperties.push(e)},e.prototype.getDependedProperties=function(){return this.dependedProperties?this.dependedProperties:[]},e.prototype.schemaType=function(){if("choicesByUrl"!==this.className)return"string"===this.className?this.className:this.className||this.baseClassName?"array":"switch"==this.type?"boolean":"boolean"==this.type||"number"==this.type?this.type:"string"},e.prototype.schemaRef=function(){if(this.className)return this.className},e.prototype.mergeValue=function(e,t){null==this[t]&&null!=e[t]&&(this[t]=e[t])},e.Index=1,e.mergableValues=["typeValue","choicesValue","baseValue","readOnlyValue","visibleValue","isSerializable","isLightSerializable","isCustom","isBindable","isUnique","uniquePropertyName","isDynamicChoices","isLocalizableValue","className","alternativeName","layout","classNamePart","baseClassName","defaultValue","defaultValueFunc","serializationProperty","onGetValue","onSetValue","onSettingValue","displayName","category","categoryIndex","visibleIndex","nextToProperty","overridingProperty","showMode","dependedProperties","visibleIf","onExecuteExpression","onPropertyEditorUpdate","maxLength","maxValue","minValue","dataListValue"],e}(),f=function(){function e(){}return e.addProperty=function(t,n){t=t.toLowerCase();var r=e.properties;r[t]||(r[t]=[]),r[t].push(n)},e.removeProperty=function(t,n){t=t.toLowerCase();var r=e.properties;if(r[t])for(var o=r[t],i=0;i<o.length;i++)if(o[i].name==n){r[t].splice(i,1);break}},e.removeAllProperties=function(t){t=t.toLowerCase(),delete e.properties[t]},e.addClass=function(t,n){t=t.toLowerCase(),n&&(n=n.toLowerCase()),e.parentClasses[t]=n},e.getProperties=function(t){t=t.toLowerCase();for(var n=[],r=e.properties;t;){var o=r[t];if(o)for(var i=0;i<o.length;i++)n.push(o[i]);t=e.parentClasses[t]}return n},e.createProperties=function(t){t&&t.getType&&e.createPropertiesCore(t,t.getType())},e.createPropertiesCore=function(t,n){var r=e.properties;r[n]&&e.createPropertiesInObj(t,r[n]);var o=e.parentClasses[n];o&&e.createPropertiesCore(t,o)},e.createPropertiesInObj=function(t,n){for(var r=0;r<n.length;r++)e.createPropertyInObj(t,n[r])},e.createPropertyInObj=function(t,n){if(!(e.checkIsPropertyExists(t,n.name)||n.serializationProperty&&e.checkIsPropertyExists(t,n.serializationProperty))){if(n.isLocalizable&&n.serializationProperty&&t.createCustomLocalizableObj){t.createCustomLocalizableObj(n.name);var r={get:function(){return t.getLocalizableString(n.name)}};Object.defineProperty(t,n.serializationProperty,r);var o={get:function(){return t.getLocalizableStringText(n.name,n.defaultValue)},set:function(e){t.setLocalizableStringText(n.name,e)}};Object.defineProperty(t,n.name,o)}else{var i=n.defaultValue,s=n.isArray||"multiplevalues"===n.type;"function"==typeof t.createNewArray&&(P.metaData.isDescendantOf(n.className,"itemvalue")?(t.createNewArray(n.name,(function(e){e.locOwner=t,e.ownerPropertyName=n.name})),s=!0):s&&t.createNewArray(n.name),s&&(Array.isArray(i)&&t.setPropertyValue(n.name,i),i=null)),t.getPropertyValue&&t.setPropertyValue&&(o={get:function(){return n.onGetValue?n.onGetValue(t):t.getPropertyValue(n.name,i)},set:function(e){n.onSetValue?n.onSetValue(t,e,null):t.setPropertyValue(n.name,e)}},Object.defineProperty(t,n.name,o))}"condition"!==n.type&&"expression"!==n.type||n.onExecuteExpression&&t.addExpressionProperty(n.name,n.onExecuteExpression)}},e.checkIsPropertyExists=function(e,t){return e.hasOwnProperty(t)||e[t]},e.properties={},e.parentClasses={},e}(),g=function(){function e(e,t,n,r){void 0===n&&(n=null),void 0===r&&(r=null),this.name=e,this.creator=n,this.parentName=r,e=e.toLowerCase(),this.isCustomValue=!n&&"survey"!==e,this.parentName&&(this.parentName=this.parentName.toLowerCase(),f.addClass(e,this.parentName),n&&this.makeParentRegularClass()),this.properties=new Array;for(var o=0;o<t.length;o++)this.createProperty(t[o],this.isCustom)}return e.prototype.find=function(e){for(var t=0;t<this.properties.length;t++)if(this.properties[t].name==e)return this.properties[t];return null},e.prototype.findProperty=function(e){return this.fillAllProperties(),this.hashProperties[e]},e.prototype.getAllProperties=function(){return this.fillAllProperties(),this.allProperties},e.prototype.resetAllProperties=function(){this.allProperties=void 0,this.hashProperties=void 0;for(var e=S.getChildrenClasses(this.name),t=0;t<e.length;t++)e[t].resetAllProperties()},Object.defineProperty(e.prototype,"isCustom",{get:function(){return this.isCustomValue},enumerable:!1,configurable:!0}),e.prototype.fillAllProperties=function(){var e=this;if(!this.allProperties){this.allProperties=[],this.hashProperties={};var t={};this.properties.forEach((function(e){return t[e.name]=e}));var n=this.parentName?S.findClass(this.parentName):null;n&&n.getAllProperties().forEach((function(n){var r=t[n.name];r?(r.mergeWith(n),e.addPropCore(r)):e.addPropCore(n)})),this.properties.forEach((function(t){e.hashProperties[t.name]||e.addPropCore(t)}))}},e.prototype.addPropCore=function(e){this.allProperties.push(e),this.hashProperties[e.name]=e,e.alternativeName&&(this.hashProperties[e.alternativeName]=e)},e.prototype.isOverridedProp=function(e){return!!this.parentName&&!!S.findProperty(this.parentName,e)},e.prototype.hasRegularChildClass=function(){if(this.isCustom){this.isCustomValue=!1;for(var e=0;e<this.properties.length;e++)this.properties[e].isCustom=!1;f.removeAllProperties(this.name),this.makeParentRegularClass()}},e.prototype.makeParentRegularClass=function(){if(this.parentName){var e=S.findClass(this.parentName);e&&e.hasRegularChildClass()}},e.prototype.createProperty=function(t,n){void 0===n&&(n=!1);var r="string"==typeof t?t:t.name;if(r){var o=null,i=r.indexOf(e.typeSymbol);i>-1&&(o=r.substring(i+1),r=r.substring(0,i));var a=this.getIsPropertyNameRequired(r)||!!t.isRequired;r=this.getPropertyName(r);var l=new h(this,r,a);if(o&&(l.type=o),"object"==typeof t){if(t.type&&(l.type=t.type),void 0!==t.default&&(l.defaultValue=t.default),void 0!==t.defaultFunc&&(l.defaultValueFunc=t.defaultFunc),s.Helpers.isValueEmpty(t.isSerializable)||(l.isSerializable=t.isSerializable),s.Helpers.isValueEmpty(t.isLightSerializable)||(l.isLightSerializable=t.isLightSerializable),s.Helpers.isValueEmpty(t.maxLength)||(l.maxLength=t.maxLength),s.Helpers.isValueEmpty(t.displayName)||(l.displayName=t.displayName),s.Helpers.isValueEmpty(t.category)||(l.category=t.category),s.Helpers.isValueEmpty(t.categoryIndex)||(l.categoryIndex=t.categoryIndex),s.Helpers.isValueEmpty(t.nextToProperty)||(l.nextToProperty=t.nextToProperty),s.Helpers.isValueEmpty(t.overridingProperty)||(l.overridingProperty=t.overridingProperty),s.Helpers.isValueEmpty(t.visibleIndex)||(l.visibleIndex=t.visibleIndex),s.Helpers.isValueEmpty(t.showMode)||(l.showMode=t.showMode),s.Helpers.isValueEmpty(t.maxValue)||(l.maxValue=t.maxValue),s.Helpers.isValueEmpty(t.minValue)||(l.minValue=t.minValue),s.Helpers.isValueEmpty(t.dataList)||(l.dataList=t.dataList),s.Helpers.isValueEmpty(t.isDynamicChoices)||(l.isDynamicChoices=t.isDynamicChoices),s.Helpers.isValueEmpty(t.isBindable)||(l.isBindable=t.isBindable),s.Helpers.isValueEmpty(t.isUnique)||(l.isUnique=t.isUnique),s.Helpers.isValueEmpty(t.uniqueProperty)||(l.uniquePropertyName=t.uniqueProperty),s.Helpers.isValueEmpty(t.isArray)||(l.isArray=t.isArray),!0!==t.visible&&!1!==t.visible||(l.visible=t.visible),t.visibleIf&&(l.visibleIf=t.visibleIf),t.onExecuteExpression&&(l.onExecuteExpression=t.onExecuteExpression),t.onPropertyEditorUpdate&&(l.onPropertyEditorUpdate=t.onPropertyEditorUpdate),!0===t.readOnly&&(l.readOnly=!0),t.choices){var u="function"==typeof t.choices?t.choices:null,c="function"!=typeof t.choices?t.choices:null;l.setChoices(c,u)}t.baseValue&&l.setBaseValue(t.baseValue),t.onGetValue&&(l.onGetValue=t.onGetValue),t.onSetValue&&(l.onSetValue=t.onSetValue),t.onSettingValue&&(l.onSettingValue=t.onSettingValue),t.isLocalizable&&(t.serializationProperty="loc"+l.name),t.serializationProperty&&(l.serializationProperty=t.serializationProperty,l.serializationProperty&&0==l.serializationProperty.indexOf("loc")&&(l.isLocalizable=!0)),t.isLocalizable&&(l.isLocalizable=t.isLocalizable),t.className&&(l.className=t.className),t.baseClassName&&(l.baseClassName=t.baseClassName),t.classNamePart&&(l.classNamePart=t.classNamePart),t.alternativeName&&(l.alternativeName=t.alternativeName),t.layout&&(l.layout=t.layout),t.dependsOn&&this.addDependsOnProperties(l,t.dependsOn)}return this.properties.push(l),n&&!this.isOverridedProp(l.name)&&(l.isCustom=!0,f.addProperty(this.name,l)),l}},e.prototype.addDependsOnProperties=function(e,t){if(Array.isArray(t))for(var n=0;n<t.length;n++)this.addDependsOnProperty(e,t[n]);else this.addDependsOnProperty(e,t)},e.prototype.addDependsOnProperty=function(e,t){var n=this.find(t);n||(n=S.findProperty(this.parentName,t)),n&&n.addDependedProperty(e.name)},e.prototype.getIsPropertyNameRequired=function(t){return t.length>0&&t[0]==e.requiredSymbol},e.prototype.getPropertyName=function(e){return this.getIsPropertyNameRequired(e)?e=e.slice(1):e},e.requiredSymbol="!",e.typeSymbol=":",e}(),m=function(){function e(){this.classes={},this.alternativeNames={},this.childrenClasses={}}return e.prototype.getObjPropertyValue=function(e,t){if(this.isObjWrapper(e)){var n=e.getOriginalObj();if(r=S.findProperty(n.getType(),t))return this.getObjPropertyValueCore(n,r)}var r;return(r=S.findProperty(e.getType(),t))?this.getObjPropertyValueCore(e,r):e[t]},e.prototype.setObjPropertyValue=function(e,t,n){if(e[t]!==n)if(e[t]&&e[t].setJson)e[t].setJson(n);else{if(Array.isArray(n)){for(var r=[],o=0;o<n.length;o++)r.push(n[o]);n=r}e[t]=n}},e.prototype.getObjPropertyValueCore=function(e,t){if(!t.isSerializable)return e[t.name];if(t.isLocalizable){if(t.isArray)return e[t.name];if(t.serializationProperty)return e[t.serializationProperty].text}return e.getPropertyValue(t.name)},e.prototype.isObjWrapper=function(e){return!!e.getOriginalObj&&!!e.getOriginalObj()},e.prototype.addClass=function(e,t,n,r){void 0===n&&(n=null),void 0===r&&(r=null),e=e.toLowerCase();var o=new g(e,t,n,r);return this.classes[e]=o,r&&(r=r.toLowerCase(),this.childrenClasses[r]||(this.childrenClasses[r]=[]),this.childrenClasses[r].push(o)),o},e.prototype.removeClass=function(e){var t=this.findClass(e);if(t&&(delete this.classes[t.name],t.parentName)){var n=this.childrenClasses[t.parentName].indexOf(t);n>-1&&this.childrenClasses[t.parentName].splice(n,1)}},e.prototype.overrideClassCreatore=function(e,t){this.overrideClassCreator(e,t)},e.prototype.overrideClassCreator=function(e,t){e=e.toLowerCase();var n=this.findClass(e);n&&(n.creator=t)},e.prototype.getProperties=function(e){var t=this.findClass(e);return t?t.getAllProperties():[]},e.prototype.getPropertiesByObj=function(e){if(!e||!e.getType)return[];for(var t={},n=this.getProperties(e.getType()),r=0;r<n.length;r++)t[n[r].name]=n[r];var o=e.getDynamicType?this.getProperties(e.getDynamicType()):null;if(o&&o.length>0)for(r=0;r<o.length;r++){var i=o[r];t[i.name]||(t[i.name]=i)}return Object.keys(t).map((function(e){return t[e]}))},e.prototype.getDynamicPropertiesByObj=function(e,t){if(void 0===t&&(t=null),!e||!e.getType||!e.getDynamicType&&!t)return[];var n=t||e.getDynamicType();if(!n)return[];var r=this.getProperties(n);if(!r||0==r.length)return[];for(var o={},i=this.getProperties(e.getType()),s=0;s<i.length;s++)o[i[s].name]=i[s];var a=[];for(s=0;s<r.length;s++){var l=r[s];o[l.name]||a.push(l)}return a},e.prototype.hasOriginalProperty=function(e,t){return!!this.getOriginalProperty(e,t)},e.prototype.getOriginalProperty=function(e,t){return this.findProperty(e.getType(),t)||(this.isObjWrapper(e)?this.findProperty(e.getOriginalObj().getType(),t):null)},e.prototype.getProperty=function(e,t){var n=this.findProperty(e,t);if(!n)return n;var r=this.findClass(e);if(n.classInfo===r)return n;var o=new h(r,n.name,n.isRequired);return o.mergeWith(n),o.isArray=n.isArray,r.properties.push(o),r.resetAllProperties(),o},e.prototype.findProperty=function(e,t){var n=this.findClass(e);return n?n.findProperty(t):null},e.prototype.findProperties=function(e,t){var n=new Array,r=this.findClass(e);if(!r)return n;for(var o=0;o<t.length;o++){var i=r.findProperty(t[o]);i&&n.push(i)}return n},e.prototype.getAllPropertiesByName=function(e){for(var t=new Array,n=this.getAllClasses(),r=0;r<n.length;r++)for(var o=this.findClass(n[r]),i=0;i<o.properties.length;i++)if(o.properties[i].name==e){t.push(o.properties[i]);break}return t},e.prototype.getAllClasses=function(){var e=new Array;for(var t in this.classes)e.push(t);return e},e.prototype.createClass=function(e,t){void 0===t&&(t=void 0),e=e.toLowerCase();var n=this.findClass(e);if(!n)return null;if(n.creator)return n.creator(t);for(var r=n.parentName;r;){if(!(n=this.findClass(r)))return null;if(r=n.parentName,n.creator)return this.createCustomType(e,n.creator,t)}return null},e.prototype.createCustomType=function(e,t,n){void 0===n&&(n=void 0),e=e.toLowerCase();var r=t(n),o=e,i=r.getTemplate?r.getTemplate():r.getType();return r.getType=function(){return o},r.getTemplate=function(){return i},f.createProperties(r),r},e.prototype.getChildrenClasses=function(e,t){void 0===t&&(t=!1),e=e.toLowerCase();var n=[];return this.fillChildrenClasses(e,t,n),n},e.prototype.getRequiredProperties=function(e){for(var t=this.getProperties(e),n=[],r=0;r<t.length;r++)t[r].isRequired&&n.push(t[r].name);return n},e.prototype.addProperties=function(e,t){e=e.toLowerCase();for(var n=this.findClass(e),r=0;r<t.length;r++)this.addCustomPropertyCore(n,t[r])},e.prototype.addProperty=function(e,t){return this.addCustomPropertyCore(this.findClass(e),t)},e.prototype.addCustomPropertyCore=function(e,t){if(!e)return null;var n=e.createProperty(t,!0);return n&&e.resetAllProperties(),n},e.prototype.removeProperty=function(e,t){var n=this.findClass(e);if(!n)return!1;var r=n.find(t);r&&(this.removePropertyFromClass(n,r),n.resetAllProperties(),f.removeProperty(n.name,t))},e.prototype.removePropertyFromClass=function(e,t){var n=e.properties.indexOf(t);n<0||e.properties.splice(n,1)},e.prototype.fillChildrenClasses=function(e,t,n){var r=this.childrenClasses[e];if(r)for(var o=0;o<r.length;o++)t&&!r[o].creator||n.push(r[o]),this.fillChildrenClasses(r[o].name,t,n)},e.prototype.findClass=function(e){e=e.toLowerCase();var t=this.classes[e];if(!t){var n=this.alternativeNames[e];if(n&&n!=e)return this.findClass(n)}return t},e.prototype.isDescendantOf=function(e,t){if(!e||!t)return!1;e=e.toLowerCase(),t=t.toLowerCase();var n=this.findClass(e);if(!n)return!1;var r=n;do{if(r.name===t)return!0;r=this.classes[r.parentName]}while(r);return!1},e.prototype.addAlterNativeClassName=function(e,t){this.alternativeNames[t.toLowerCase()]=e.toLowerCase()},e.prototype.generateSchema=function(e){void 0===e&&(e=void 0),e||(e="survey");var t=this.findClass(e);if(!t)return null;var n={$schema:"http://json-schema.org/draft-07/schema#",title:"SurveyJS Library json schema",type:"object",properties:{},definitions:{locstring:this.generateLocStrClass()}};return this.generateSchemaProperties(t,n,n.definitions,!0),n},e.prototype.generateLocStrClass=function(){var e={},t=S.findProperty("survey","locale");if(t){var n=t.getChoices(null);Array.isArray(n)&&(n.indexOf("en")<0&&n.splice(0,0,"en"),n.splice(0,0,"default"),n.forEach((function(t){t&&(e[t]={type:"string"})})))}return{$id:"locstring",type:"object",properties:e}},e.prototype.generateSchemaProperties=function(e,t,n,r){if(e){var o=t.properties,i=[];"question"!==e.name&&"panel"!==e.name||(o.type={type:"string"},i.push("type"));for(var s=0;s<e.properties.length;s++){var a=e.properties[s];e.parentName&&S.findProperty(e.parentName,a.name)||(o[a.name]=this.generateSchemaProperty(a,n,r),a.isRequired&&i.push(a.name))}i.length>0&&(t.required=i)}},e.prototype.generateSchemaProperty=function(e,t,n){if(e.isLocalizable)return{oneOf:[{type:"string"},{$ref:this.getChemeRefName("locstring",n)}]};var r=e.schemaType(),o=e.schemaRef(),i={};if(r&&(i.type=r),e.hasChoices){var s=e.getChoices(null);Array.isArray(s)&&s.length>0&&(i.enum=s)}if(o&&("array"===r?"string"===e.className?i.items={type:e.className}:i.items={$ref:this.getChemeRefName(e.className,n)}:i.$ref=this.getChemeRefName(o,n),this.generateChemaClass(e.className,t,!1)),e.baseClassName){var a=this.getChildrenClasses(e.baseClassName,!0);"question"==e.baseClassName&&a.push(this.findClass("panel")),i.items={anyOf:[]};for(var l=0;l<a.length;l++){var u=a[l].name;i.items.anyOf.push({$ref:this.getChemeRefName(u,n)}),this.generateChemaClass(u,t,!1)}}return i},e.prototype.getChemeRefName=function(e,t){return"#/definitions/"+e},e.prototype.generateChemaClass=function(e,t,n){if(!t[e]){var r=this.findClass(e);if(r){var o=!!r.parentName&&"base"!=r.parentName;o&&this.generateChemaClass(r.parentName,t,n);var i={type:"object",$id:e};t[e]=i;var s={properties:{}};this.generateSchemaProperties(r,s,t,n),o?i.allOf=[{$ref:this.getChemeRefName(r.parentName,n)},{properties:s.properties}]:i.properties=s.properties,Array.isArray(s.required)&&(i.required=s.required)}}},e}(),y=function(){function e(e,t){this.type=e,this.message=t,this.description="",this.at=-1,this.end=-1}return e.prototype.getFullDescription=function(){return this.message+(this.description?"\n"+this.description:"")},e}(),v=function(e){function t(t,n){var r=e.call(this,"unknownproperty","The property '"+t+"' in class '"+n+"' is unknown.")||this;r.propertyName=t,r.className=n;var o=P.metaData.getProperties(n);if(o){r.description="The list of available properties are: ";for(var i=0;i<o.length;i++)i>0&&(r.description+=", "),r.description+=o[i].name;r.description+="."}return r}return a(t,e),t}(y),b=function(e){function t(t,n,r){var o=e.call(this,n,r)||this;o.baseClassName=t,o.type=n,o.message=r,o.description="The following types are available: ";for(var i=P.metaData.getChildrenClasses(t,!0),s=0;s<i.length;s++)s>0&&(o.description+=", "),o.description+="'"+i[s].name+"'";return o.description+=".",o}return a(t,e),t}(y),C=function(e){function t(t,n){var r=e.call(this,n,"missingtypeproperty","The property type is missing in the object. Please take a look at property: '"+t+"'.")||this;return r.propertyName=t,r.baseClassName=n,r}return a(t,e),t}(b),w=function(e){function t(t,n){var r=e.call(this,n,"incorrecttypeproperty","The property type is incorrect in the object. Please take a look at property: '"+t+"'.")||this;return r.propertyName=t,r.baseClassName=n,r}return a(t,e),t}(b),x=function(e){function t(t,n){var r=e.call(this,"requiredproperty","The property '"+t+"' is required in class '"+n+"'.")||this;return r.propertyName=t,r.className=n,r}return a(t,e),t}(y),P=function(){function e(){this.errors=new Array,this.lightSerializing=!1}return Object.defineProperty(e,"metaData",{get:function(){return e.metaDataValue},enumerable:!1,configurable:!0}),e.prototype.toJsonObject=function(e,t){return void 0===t&&(t=!1),this.toJsonObjectCore(e,null,t)},e.prototype.toObject=function(e,t){this.toObjectCore(e,t);var n=this.getRequiredError(t,e);n&&this.addNewError(n,e,t)},e.prototype.toObjectCore=function(t,n){if(t){var r=null,o=void 0,i=!0;if(n.getType&&(o=n.getType(),r=e.metaData.getProperties(o),i=!!o&&!e.metaData.isDescendantOf(o,"itemvalue")),r){for(var s in n.startLoadingFromJson&&n.startLoadingFromJson(t),r=this.addDynamicProperties(n,t,r),t)if(s!==e.typePropertyName)if(s!==e.positionPropertyName){var a=this.findProperty(r,s);a?this.valueToObj(t[s],n,a):i&&this.addNewError(new v(s.toString(),o),t,n)}else n[s]=t[s];n.endLoadingFromJson&&n.endLoadingFromJson()}}},e.prototype.toJsonObjectCore=function(t,n,r){if(void 0===r&&(r=!1),!t||!t.getType)return t;if("function"==typeof t.getData)return t.getData();var o={};return null==n||n.className||(o[e.typePropertyName]=n.getObjType(t.getType())),this.propertiesToJson(t,e.metaData.getProperties(t.getType()),o,r),this.propertiesToJson(t,this.getDynamicProperties(t),o,r),o},e.prototype.getDynamicProperties=function(e){return S.getDynamicPropertiesByObj(e)},e.prototype.addDynamicProperties=function(e,t,n){if(!e.getDynamicPropertyName)return n;var r=e.getDynamicPropertyName();if(!r)return n;t[r]&&(e[r]=t[r]);for(var o=this.getDynamicProperties(e),i=[],s=0;s<n.length;s++)i.push(n[s]);for(s=0;s<o.length;s++)i.push(o[s]);return i},e.prototype.propertiesToJson=function(e,t,n,r){void 0===r&&(r=!1);for(var o=0;o<t.length;o++)this.valueToJson(e,n,t[o],r)},e.prototype.valueToJson=function(e,t,n,r){if(void 0===r&&(r=!1),!(!1===n.isSerializable||!1===n.isLightSerializable&&this.lightSerializing)){var o=n.getValue(e);if(r||!n.isDefaultValue(o)){if(this.isValueArray(o)){for(var i=[],s=0;s<o.length;s++)i.push(this.toJsonObjectCore(o[s],n,r));o=i.length>0?i:null}else o=this.toJsonObjectCore(o,n,r);var a="function"==typeof e.getPropertyValue&&null!==e.getPropertyValue(n.name,null);(r&&a||!n.isDefaultValue(o))&&(S.onSerializingProperty&&S.onSerializingProperty(e,n,o,t)||(t[n.name]=o))}}},e.prototype.valueToObj=function(e,t,n){if(null!=e)if(this.removePos(n,e),null!=n&&n.hasToUseSetValue)n.setValue(t,e,this);else if(this.isValueArray(e))this.valueToArray(e,t,n.name,n);else{var r=this.createNewObj(e,n);r.newObj&&(this.toObjectCore(e,r.newObj),e=r.newObj),r.error||(null!=n?n.setValue(t,e,this):t[n.name]=e)}},e.prototype.removePos=function(e,t){!e||!e.type||e.type.indexOf("value")<0||this.removePosFromObj(t)},e.prototype.removePosFromObj=function(t){if(t){if(Array.isArray(t))for(var n=0;n<t.length;n++)this.removePosFromObj(t[n]);t[e.positionPropertyName]&&delete t[e.positionPropertyName]}},e.prototype.isValueArray=function(e){return e&&Array.isArray(e)},e.prototype.createNewObj=function(t,n){var r={newObj:null,error:null},o=this.getClassNameForNewObj(t,n);return r.newObj=o?e.metaData.createClass(o,t):null,r.error=this.checkNewObjectOnErrors(r.newObj,t,n,o),r},e.prototype.getClassNameForNewObj=function(t,n){var r=null!=n&&n.className?n.className:void 0;if(r||(r=t[e.typePropertyName]),!r)return r;r=r.toLowerCase();var o=n.classNamePart;return o&&r.indexOf(o)<0&&(r+=o),r},e.prototype.checkNewObjectOnErrors=function(e,t,n,r){var o=null;return e?o=this.getRequiredError(e,t):n.baseClassName&&(o=r?new w(n.name,n.baseClassName):new C(n.name,n.baseClassName)),o&&this.addNewError(o,t,e),o},e.prototype.getRequiredError=function(t,n){if(!t.getType||"function"==typeof t.getData)return null;var r=t.getType(),o=e.metaData.getRequiredProperties(r);if(!Array.isArray(o))return null;for(var i=0;i<o.length;i++){var a=S.findProperty(r,o[i]);if(a&&s.Helpers.isValueEmpty(a.defaultValue)&&!n[a.name])return new x(a.name,r)}return null},e.prototype.addNewError=function(t,n,r){if(t.jsonObj=n,t.element=r,this.errors.push(t),n){var o=n[e.positionPropertyName];o&&(t.at=o.start,t.end=o.end)}},e.prototype.valueToArray=function(e,t,n,r){if(!t[n]||this.isValueArray(t[n])){t[n]&&e.length>0&&t[n].splice(0,t[n].length);var o=t[n]?t[n]:[];this.addValuesIntoArray(e,o,r),t[n]||(t[n]=o)}},e.prototype.addValuesIntoArray=function(e,t,n){for(var r=0;r<e.length;r++){var o=this.createNewObj(e[r],n);o.newObj?(e[r].name&&(o.newObj.name=e[r].name),e[r].valueName&&(o.newObj.valueName=e[r].valueName.toString()),t.push(o.newObj),this.toObjectCore(e[r],o.newObj)):o.error||t.push(e[r])}},e.prototype.findProperty=function(e,t){if(!e)return null;for(var n=0;n<e.length;n++){var r=e[n];if(r.name==t||r.alternativeName==t)return r}return null},e.typePropertyName="type",e.positionPropertyName="pos",e.metaDataValue=new m,e}(),S=P.metaData},"./src/list.ts":function(e,t,n){"use strict";n.r(t),n.d(t,"defaultListCss",(function(){return h})),n.d(t,"ListModel",(function(){return f}));var r,o=n("./src/jsonobject.ts"),i=n("./src/actions/container.ts"),s=n("./src/actions/action.ts"),a=n("./src/utils/cssClassBuilder.ts"),l=n("./src/element-helper.ts"),u=n("./src/utils/utils.ts"),c=n("./src/settings.ts"),p=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),d=function(e,t,n,r){var o,i=arguments.length,s=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,r);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(i<3?o(s):i>3?o(t,n,s):o(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},h={root:"sv-list__container",item:"sv-list__item",searchClearButtonIcon:"sv-list__filter-clear-button",loadingIndicator:"sv-list__loading-indicator",itemSelected:"sv-list__item--selected",itemWithIcon:"sv-list__item--with-icon",itemDisabled:"sv-list__item--disabled",itemFocused:"sv-list__item--focused",itemIcon:"sv-list__item-icon",itemSeparator:"sv-list__item-separator",itemBody:"sv-list__item-body",itemsContainer:"sv-list",itemsContainerFiltering:"sv-list--filtering",filter:"sv-list__filter",filterIcon:"sv-list__filter-icon",filterInput:"sv-list__input",emptyContainer:"sv-list__empty-container",emptyText:"sv-list__empty-text"},f=function(e){function t(n,r,o,i,s,l){var u=e.call(this)||this;return u.onSelectionChanged=r,u.allowSelection=o,u.onFilterStringChangedCallback=s,u.elementId=l,u.onItemClick=function(e){u.isItemDisabled(e)||(u.isExpanded=!1,u.allowSelection&&(u.selectedItem=e),u.onSelectionChanged&&u.onSelectionChanged(e))},u.isItemDisabled=function(e){return void 0!==e.enabled&&!e.enabled},u.isItemSelected=function(e){return u.areSameItems(u.selectedItem,e)},u.isItemFocused=function(e){return u.areSameItems(u.focusedItem,e)},u.getListClass=function(){return(new a.CssClassBuilder).append(u.cssClasses.itemsContainer).append(u.cssClasses.itemsContainerFiltering,!!u.filterString&&u.visibleActions.length!==u.visibleItems.length).toString()},u.getItemClass=function(e){return(new a.CssClassBuilder).append(u.cssClasses.item).append(u.cssClasses.itemWithIcon,!!e.iconName).append(u.cssClasses.itemDisabled,u.isItemDisabled(e)).append(u.cssClasses.itemFocused,u.isItemFocused(e)).append(u.cssClasses.itemSelected,u.isItemSelected(e)).append(e.css).toString()},u.getItemIndent=function(e){return((e.level||0)+1)*t.INDENT+"px"},u.setItems(n),u.selectedItem=i,u}return p(t,e),t.prototype.hasText=function(e,t){if(!t)return!0;var n=(e.title||"").toLocaleLowerCase();return(n=c.settings.comparator.normalizeTextCallback(n,"filter")).indexOf(t.toLocaleLowerCase())>-1},t.prototype.isItemVisible=function(e){return e.visible&&(!this.shouldProcessFilter||this.hasText(e,this.filterString))},Object.defineProperty(t.prototype,"visibleItems",{get:function(){var e=this;return this.visibleActions.filter((function(t){return e.isItemVisible(t)}))},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"shouldProcessFilter",{get:function(){return!this.onFilterStringChangedCallback},enumerable:!1,configurable:!0}),t.prototype.onFilterStringChanged=function(e){var t=this;this.onFilterStringChangedCallback&&this.onFilterStringChangedCallback(e),this.isEmpty=0===this.renderedActions.filter((function(e){return t.isItemVisible(e)})).length},t.prototype.scrollToItem=function(e,t){var n=this;void 0===t&&(t=0),setTimeout((function(){if(n.listContainerHtmlElement){var r=n.listContainerHtmlElement.querySelector("."+e);r&&setTimeout((function(){r.scrollIntoView({behavior:"smooth",block:"nearest",inline:"start"})}),t)}}),t)},t.prototype.setItems=function(t,n){var r=this;void 0===n&&(n=!0),e.prototype.setItems.call(this,t,n),this.elementId&&this.renderedActions.forEach((function(e){e.elementId=r.elementId+e.id})),!this.isAllDataLoaded&&this.actions.length&&this.actions.push(this.loadingIndicator)},t.prototype.onSet=function(){this.showFilter=this.searchEnabled&&(this.forceShowFilter||(this.actions||[]).length>t.MINELEMENTCOUNT),e.prototype.onSet.call(this)},t.prototype.getDefaultCssClasses=function(){return h},t.prototype.areSameItems=function(e,t){return this.areSameItemsCallback?this.areSameItemsCallback(e,t):!!e&&!!t&&e.id==t.id},Object.defineProperty(t.prototype,"filterStringPlaceholder",{get:function(){return this.getLocalizationString("filterStringPlaceholder")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"emptyMessage",{get:function(){return this.isAllDataLoaded?this.getLocalizationString("emptyMessage"):this.loadingText},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"scrollableContainer",{get:function(){return this.listContainerHtmlElement.querySelector("."+this.getDefaultCssClasses().itemsContainer)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"loadingText",{get:function(){return this.getLocalizationString("loadingFile")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"loadingIndicator",{get:function(){return this.loadingIndicatorValue||(this.loadingIndicatorValue=new s.Action({id:"loadingIndicator",title:this.loadingText,action:function(){},css:this.cssClasses.loadingIndicator})),this.loadingIndicatorValue},enumerable:!1,configurable:!0}),t.prototype.goToItems=function(e){if("ArrowDown"===e.key||40===e.keyCode){var t=e.target.parentElement.parentElement.querySelector("ul"),n=Object(u.getFirstVisibleChild)(t);t&&n&&(l.ElementHelper.focusElement(n),e.preventDefault())}},t.prototype.onMouseMove=function(e){this.resetFocusedItem()},t.prototype.onKeyDown=function(e){var t=e.target;"ArrowDown"===e.key||40===e.keyCode?(l.ElementHelper.focusElement(l.ElementHelper.getNextElementPreorder(t)),e.preventDefault()):"ArrowUp"!==e.key&&38!==e.keyCode||(l.ElementHelper.focusElement(l.ElementHelper.getNextElementPostorder(t)),e.preventDefault())},t.prototype.onPointerDown=function(e,t){},t.prototype.refresh=function(){this.filterString="",this.resetFocusedItem()},t.prototype.onClickSearchClearButton=function(e){e.currentTarget.parentElement.querySelector("input").focus(),this.refresh()},t.prototype.resetFocusedItem=function(){this.focusedItem=void 0},t.prototype.focusFirstVisibleItem=function(){this.focusedItem=this.visibleItems[0]},t.prototype.focusLastVisibleItem=function(){this.focusedItem=this.visibleItems[this.visibleItems.length-1]},t.prototype.initFocusedItem=function(){var e=this;this.focusedItem=this.visibleItems.filter((function(t){return t.visible&&e.isItemSelected(t)}))[0],this.focusedItem||this.focusFirstVisibleItem()},t.prototype.focusNextVisibleItem=function(){if(this.focusedItem){var e=this.visibleItems,t=e.indexOf(this.focusedItem),n=e[t+1];n?this.focusedItem=n:this.focusFirstVisibleItem()}else this.initFocusedItem()},t.prototype.focusPrevVisibleItem=function(){if(this.focusedItem){var e=this.visibleItems,t=e.indexOf(this.focusedItem),n=e[t-1];n?this.focusedItem=n:this.focusLastVisibleItem()}else this.initFocusedItem()},t.prototype.selectFocusedItem=function(){this.focusedItem&&this.onItemClick(this.focusedItem)},t.prototype.initListContainerHtmlElement=function(e){this.listContainerHtmlElement=e},t.prototype.onLastItemRended=function(e){this.isAllDataLoaded||e===this.actions[this.actions.length-1]&&this.listContainerHtmlElement&&(this.hasVerticalScroller=l.ElementHelper.hasVerticalScroller(this.scrollableContainer))},t.prototype.scrollToFocusedItem=function(){this.scrollToItem(this.getDefaultCssClasses().itemFocused)},t.prototype.scrollToSelectedItem=function(){this.scrollToItem(this.getDefaultCssClasses().itemSelected,110)},t.prototype.addScrollEventListener=function(e){e&&(this.scrollHandler=e),this.scrollHandler&&this.scrollableContainer.addEventListener("scroll",this.scrollHandler)},t.prototype.removeScrollEventListener=function(){this.scrollHandler&&this.scrollableContainer.removeEventListener("scroll",this.scrollHandler)},t.prototype.dispose=function(){e.prototype.dispose.call(this),this.loadingIndicatorValue&&this.loadingIndicatorValue.dispose()},t.INDENT=16,t.MINELEMENTCOUNT=10,d([Object(o.property)({defaultValue:!0,onSet:function(e,t){t.onSet()}})],t.prototype,"searchEnabled",void 0),d([Object(o.property)({defaultValue:!1})],t.prototype,"showFilter",void 0),d([Object(o.property)({defaultValue:!1})],t.prototype,"forceShowFilter",void 0),d([Object(o.property)({defaultValue:!1})],t.prototype,"isExpanded",void 0),d([Object(o.property)({})],t.prototype,"selectedItem",void 0),d([Object(o.property)()],t.prototype,"focusedItem",void 0),d([Object(o.property)({onSet:function(e,t){t.onFilterStringChanged(t.filterString)}})],t.prototype,"filterString",void 0),d([Object(o.property)({defaultValue:!1})],t.prototype,"hasVerticalScroller",void 0),d([Object(o.property)({defaultValue:!0})],t.prototype,"isAllDataLoaded",void 0),d([Object(o.property)({defaultValue:!1})],t.prototype,"showSearchClearButton",void 0),d([Object(o.property)({defaultValue:!0})],t.prototype,"renderElements",void 0),t}(i.ActionContainer)},"./src/localizablestring.ts":function(e,t,n){"use strict";n.r(t),n.d(t,"LocalizableString",(function(){return a})),n.d(t,"LocalizableStrings",(function(){return l}));var r=n("./src/helpers.ts"),o=n("./src/surveyStrings.ts"),i=n("./src/settings.ts"),s=n("./src/base.ts"),a=function(){function e(e,t,n){void 0===t&&(t=!1),this.owner=e,this.useMarkdown=t,this.name=n,this.values={},this.htmlValues={},this.onStringChanged=new s.EventBase,this.onCreating()}return Object.defineProperty(e,"defaultLocale",{get:function(){return i.settings.localization.defaultLocaleName},set:function(e){i.settings.localization.defaultLocaleName=e},enumerable:!1,configurable:!0}),e.prototype.getIsMultiple=function(){return!1},Object.defineProperty(e.prototype,"locale",{get:function(){if(this.owner&&this.owner.getLocale){var e=this.owner.getLocale();if(e||!this.sharedData)return e}return this.sharedData?this.sharedData.locale:""},enumerable:!1,configurable:!0}),e.prototype.strChanged=function(){this.searchableText=void 0,void 0!==this.renderedText&&(this.calculatedTextValue=this.calcText(),this.renderedText!==this.calculatedTextValue&&(this.renderedText=void 0,this.calculatedTextValue=void 0),this.htmlValues={},this.onChanged(),this.onStringChanged.fire(this,{}))},Object.defineProperty(e.prototype,"text",{get:function(){return this.pureText},set:function(e){this.setLocaleText(this.locale,e)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"calculatedText",{get:function(){return this.renderedText=void 0!==this.calculatedTextValue?this.calculatedTextValue:this.calcText(),this.calculatedTextValue=void 0,this.renderedText},enumerable:!1,configurable:!0}),e.prototype.calcText=function(){var e=this.pureText;return e&&this.owner&&this.owner.getProcessedText&&e.indexOf("{")>-1&&(e=this.owner.getProcessedText(e)),this.onGetTextCallback&&(e=this.onGetTextCallback(e)),e},Object.defineProperty(e.prototype,"pureText",{get:function(){var e=this.locale;e||(e=this.defaultLoc);var t=this.getValue(e);if(t||e!==this.defaultLoc||(t=this.getValue(o.surveyLocalization.defaultLocale)),!t){var n=this.getRootDialect(e);n&&(t=this.getValue(n))}return t||e===this.defaultLoc||(t=this.getValue(this.defaultLoc)),!t&&this.getLocalizationName()&&(t=this.getLocalizationStr(),this.onGetLocalizationTextCallback&&(t=this.onGetLocalizationTextCallback(t))),t||(t=""),t},enumerable:!1,configurable:!0}),e.prototype.getRootDialect=function(e){if(!e)return e;var t=e.indexOf("-");return t>-1?e.substring(0,t):""},e.prototype.getLocalizationName=function(){return this.sharedData?this.sharedData.localizationName:this.localizationName},e.prototype.getLocalizationStr=function(){var e=this.getLocalizationName();return e?o.surveyLocalization.getString(e,this.locale):""},Object.defineProperty(e.prototype,"hasHtml",{get:function(){return this.hasHtmlValue()},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"html",{get:function(){return this.hasHtml?this.getHtmlValue():""},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"isEmpty",{get:function(){return 0==this.getValuesKeys().length},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"textOrHtml",{get:function(){return this.hasHtml?this.getHtmlValue():this.calculatedText},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"renderedHtml",{get:function(){return this.textOrHtml},enumerable:!1,configurable:!0}),e.prototype.getLocaleText=function(e){return e||(e=this.defaultLoc),this.getValue(e)||""},e.prototype.getLocaleTextWithDefault=function(e){var t=this.getLocaleText(e);return!t&&this.onGetDefaultTextCallback?this.onGetDefaultTextCallback():t},e.prototype.setLocaleText=function(e,t){if(e=this.getValueLoc(e),this.storeDefaultText||t!=this.getLocaleTextWithDefault(e)){if(i.settings.localization.storeDuplicatedTranslations||!t||!e||e==this.defaultLoc||this.getValue(e)||t!=this.getLocaleText(this.defaultLoc)){var n=this.curLocale;e||(e=this.defaultLoc);var r=this.onStrChanged&&e===n?this.pureText:void 0;delete this.htmlValues[e],t?"string"==typeof t&&(this.canRemoveLocValue(e,t)?this.setLocaleText(e,null):(this.setValue(e,t),e==this.defaultLoc&&this.deleteValuesEqualsToDefault(t))):this.getValue(e)&&this.deleteValue(e),this.fireStrChanged(e,r)}}else{if(t||e&&e!==this.defaultLoc)return;var s=o.surveyLocalization.defaultLocale,a=this.getValue(s);s&&a&&(this.setValue(s,t),this.fireStrChanged(s,a))}},Object.defineProperty(e.prototype,"curLocale",{get:function(){return this.locale?this.locale:this.defaultLoc},enumerable:!1,configurable:!0}),e.prototype.canRemoveLocValue=function(e,t){if(i.settings.localization.storeDuplicatedTranslations)return!1;if(e===this.defaultLoc)return!1;var n=this.getRootDialect(e);if(n){var r=this.getLocaleText(n);return r?r==t:this.canRemoveLocValue(n,t)}return t==this.getLocaleText(this.defaultLoc)},e.prototype.fireStrChanged=function(e,t){if(this.strChanged(),this.onStrChanged){var n=this.pureText;e===this.curLocale&&t===n||this.onStrChanged(t,n)}},e.prototype.hasNonDefaultText=function(){var e=this.getValuesKeys();return 0!=e.length&&(e.length>1||e[0]!=this.defaultLoc)},e.prototype.getLocales=function(){var e=this.getValuesKeys();return 0==e.length?[]:e},e.prototype.getJson=function(){if(this.sharedData)return this.sharedData.getJson();var e=this.getValuesKeys();return 0==e.length?null:1!=e.length||e[0]!=i.settings.localization.defaultLocaleName||i.settings.serialization.localizableStringSerializeAsObject?this.values:this.values[e[0]]},e.prototype.setJson=function(e){if(this.sharedData)this.sharedData.setJson(e);else if(this.values={},this.htmlValues={},e){if("string"==typeof e)this.setLocaleText(null,e);else for(var t in e)this.setLocaleText(t,e[t]);this.strChanged()}},Object.defineProperty(e.prototype,"renderAs",{get:function(){return this.owner&&"function"==typeof this.owner.getRenderer&&this.owner.getRenderer(this.name)||e.defaultRenderer},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"renderAsData",{get:function(){return this.owner&&"function"==typeof this.owner.getRendererContext&&this.owner.getRendererContext(this)||this},enumerable:!1,configurable:!0}),e.prototype.equals=function(e){return this.sharedData?this.sharedData.equals(e):!(!e||!e.values)&&r.Helpers.isTwoValueEquals(this.values,e.values,!1,!0,!1)},e.prototype.setFindText=function(e){if(this.searchText!=e){if(this.searchText=e,!this.searchableText){var t=this.textOrHtml;this.searchableText=t?t.toLowerCase():""}var n=this.searchableText,r=n&&e?n.indexOf(e):void 0;return r<0&&(r=void 0),null==r&&this.searchIndex==r||(this.searchIndex=r,this.onSearchChanged&&this.onSearchChanged()),null!=this.searchIndex}},e.prototype.onChanged=function(){},e.prototype.onCreating=function(){},e.prototype.hasHtmlValue=function(){if(!this.owner||!this.useMarkdown)return!1;var e=this.locale;if(e||(e=this.defaultLoc),void 0!==this.htmlValues[e])return!!this.htmlValues[e];var t=this.calculatedText;if(!t)return!1;if(this.getLocalizationName()&&t===this.getLocalizationStr())return!1;var n=this.owner.getMarkdownHtml(t,this.name);return this.htmlValues[e]=n,!!n},e.prototype.getHtmlValue=function(){var e=this.locale;return e||(e=this.defaultLoc),this.htmlValues[e]},e.prototype.deleteValuesEqualsToDefault=function(e){if(!i.settings.localization.storeDuplicatedTranslations)for(var t=this.getValuesKeys(),n=0;n<t.length;n++)t[n]!=this.defaultLoc&&this.getValue(t[n])==e&&this.deleteValue(t[n])},e.prototype.getValue=function(e){return this.sharedData?this.sharedData.getValue(e):this.values[this.getValueLoc(e)]},e.prototype.setValue=function(e,t){this.sharedData?this.sharedData.setValue(e,t):this.values[this.getValueLoc(e)]=t},e.prototype.deleteValue=function(e){this.sharedData?this.sharedData.deleteValue(e):delete this.values[this.getValueLoc(e)]},e.prototype.getValueLoc=function(e){return this.disableLocalization?i.settings.localization.defaultLocaleName:e},e.prototype.getValuesKeys=function(){return this.sharedData?this.sharedData.getValuesKeys():Object.keys(this.values)},Object.defineProperty(e.prototype,"defaultLoc",{get:function(){return i.settings.localization.defaultLocaleName},enumerable:!1,configurable:!0}),e.SerializeAsObject=!1,e.defaultRenderer="sv-string-viewer",e.editableRenderer="sv-string-editor",e}(),l=function(){function e(e){this.owner=e,this.values={}}return e.prototype.getIsMultiple=function(){return!0},Object.defineProperty(e.prototype,"locale",{get:function(){return this.owner&&this.owner.getLocale?this.owner.getLocale():""},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"value",{get:function(){return this.getValue("")},set:function(e){this.setValue("",e)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"text",{get:function(){return Array.isArray(this.value)?this.value.join("\n"):""},set:function(e){this.value=e?e.split("\n"):[]},enumerable:!1,configurable:!0}),e.prototype.getLocaleText=function(e){var t=this.getValueCore(e,!e||e===this.locale);return t&&Array.isArray(t)&&0!=t.length?t.join("\n"):""},e.prototype.setLocaleText=function(e,t){var n=t?t.split("\n"):null;this.setValue(e,n)},e.prototype.getValue=function(e){return this.getValueCore(e)},e.prototype.getValueCore=function(e,t){if(void 0===t&&(t=!0),e=this.getLocale(e),this.values[e])return this.values[e];if(t){var n=i.settings.localization.defaultLocaleName;if(e!==n&&this.values[n])return this.values[n]}return[]},e.prototype.setValue=function(e,t){e=this.getLocale(e);var n=r.Helpers.createCopy(this.values);t&&0!=t.length?this.values[e]=t:delete this.values[e],this.onValueChanged&&this.onValueChanged(n,this.values)},e.prototype.hasValue=function(e){return void 0===e&&(e=""),!this.isEmpty&&this.getValue(e).length>0},Object.defineProperty(e.prototype,"isEmpty",{get:function(){return 0==this.getValuesKeys().length},enumerable:!1,configurable:!0}),e.prototype.getLocale=function(e){return e||(e=this.locale)||i.settings.localization.defaultLocaleName},e.prototype.getLocales=function(){var e=this.getValuesKeys();return 0==e.length?[]:e},e.prototype.getJson=function(){var e=this.getValuesKeys();return 0==e.length?null:1!=e.length||e[0]!=i.settings.localization.defaultLocaleName||i.settings.serialization.localizableStringSerializeAsObject?r.Helpers.createCopy(this.values):this.values[e[0]]},e.prototype.setJson=function(e){if(this.values={},e)if(Array.isArray(e))this.setValue(null,e);else for(var t in e)this.setValue(t,e[t])},e.prototype.getValuesKeys=function(){return Object.keys(this.values)},e}()},"./src/localization/english.ts":function(e,t,n){"use strict";n.r(t),n.d(t,"englishStrings",(function(){return r}));var r={pagePrevText:"Previous",pageNextText:"Next",completeText:"Complete",previewText:"Preview",editText:"Edit",startSurveyText:"Start",otherItemText:"Other (describe)",noneItemText:"None",selectAllItemText:"Select All",progressText:"Page {0} of {1}",indexText:"{0} of {1}",panelDynamicProgressText:"{0} of {1}",panelDynamicTabTextFormat:"Panel {panelIndex}",questionsProgressText:"Answered {0}/{1} questions",emptySurvey:"The survey doesn't contain visible pages or questions.",completingSurvey:"Thank you for completing the survey",completingSurveyBefore:"Our records show that 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.",numericError:"The value should be numeric.",minError:"The value should not be less than {0}",maxError:"The value should not be greater than {0}",textMinLength:"Please enter at least {0} character(s).",textMaxLength:"Please enter no more than {0} character(s).",textMinMaxLength:"Please enter at least {0} and no more than {1} characters.",minRowCountError:"Please fill in at least {0} row(s).",minSelectError:"Please select at least {0} variant(s).",maxSelectError:"Please select no more than {0} variant(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}.",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 chosen",fileDragAreaPlaceholder:"Drag and drop a file here or click the button below and choose a file to upload.",confirmDelete:"Do you want to delete the 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",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!",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",chooseFileCaption:"Choose file",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:"There are no entries yet.\nClick the button below to add a new entry.",noEntriesReadonlyText:"There are no entries.",more:"More",tagboxDoneButtonCaption:"OK",selectToRankEmptyRankedAreaText:"All choices are ranked",selectToRankEmptyUnrankedAreaText:"Drag and drop choices here to rank them"}},"./src/martixBase.ts":function(e,t,n){"use strict";n.r(t),n.d(t,"QuestionMatrixBaseModel",(function(){return d}));var r,o=n("./src/itemvalue.ts"),i=n("./src/question.ts"),s=n("./src/jsonobject.ts"),a=n("./src/conditions.ts"),l=n("./src/helpers.ts"),u=n("./src/utils/cssClassBuilder.ts"),c=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),p=function(e,t,n,r){var o,i=arguments.length,s=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,r);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(i<3?o(s):i>3?o(t,n,s):o(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},d=function(e){function t(t){var n=e.call(this,t)||this;return n.generatedVisibleRows=null,n.generatedTotalRow=null,n.filteredRows=null,n.filteredColumns=null,n.columns=n.createColumnValues(),n.rows=n.createItemValues("rows"),n}return c(t,e),t.prototype.createColumnValues=function(){return this.createItemValues("columns")},t.prototype.getType=function(){return"matrixbase"},t.prototype.endLoadingFromJson=function(){e.prototype.endLoadingFromJson.call(this),this.updateVisibilityBasedOnRows()},Object.defineProperty(t.prototype,"isCompositeQuestion",{get:function(){return!0},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"showHeader",{get:function(){return this.getPropertyValue("showHeader")},set:function(e){this.setPropertyValue("showHeader",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"columns",{get:function(){return this.getPropertyValue("columns")},set:function(e){this.setPropertyValue("columns",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"visibleColumns",{get:function(){return this.filteredColumns?this.filteredColumns:this.columns},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"rows",{get:function(){return this.getPropertyValue("rows")},set:function(e){var t=this.processRowsOnSet(e);this.setPropertyValue("rows",t),this.filterItems()},enumerable:!1,configurable:!0}),t.prototype.processRowsOnSet=function(e){return e},t.prototype.getVisibleRows=function(){return[]},Object.defineProperty(t.prototype,"visibleRows",{get:function(){return this.getVisibleRows()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"rowsVisibleIf",{get:function(){return this.getPropertyValue("rowsVisibleIf","")},set:function(e){this.setPropertyValue("rowsVisibleIf",e),this.filterItems()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"columnsVisibleIf",{get:function(){return this.getPropertyValue("columnsVisibleIf","")},set:function(e){this.setPropertyValue("columnsVisibleIf",e),this.filterItems()},enumerable:!1,configurable:!0}),t.prototype.runCondition=function(t,n){e.prototype.runCondition.call(this,t,n),this.runItemsCondition(t,n)},t.prototype.filterItems=function(){return this.areInvisibleElementsShowing?(this.onRowsChanged(),!1):!(this.isLoadingFromJson||!this.data)&&this.runItemsCondition(this.getDataFilteredValues(),this.getDataFilteredProperties())},t.prototype.onColumnsChanged=function(){},t.prototype.onRowsChanged=function(){this.updateVisibilityBasedOnRows(),this.fireCallback(this.visibleRowsChangedCallback)},t.prototype.updateVisibilityBasedOnRows=function(){this.hideIfRowsEmpty&&(this.visible=this.rows.length>0&&(!this.filteredRows||this.filteredRows.length>0))},t.prototype.shouldRunColumnExpression=function(){return!this.survey||!this.survey.areInvisibleElementsShowing},t.prototype.hasRowsAsItems=function(){return!0},t.prototype.runItemsCondition=function(e,t){var n=null;if(this.filteredRows&&!l.Helpers.isValueEmpty(this.defaultValue)){n=[];for(var r=0;r<this.filteredRows.length;r++)n.push(this.filteredRows[r])}var o=this.hasRowsAsItems()&&this.runConditionsForRows(e,t),i=this.runConditionsForColumns(e,t);return(o=i||o)&&(this.isClearValueOnHidden&&(this.filteredColumns||this.filteredRows)&&this.clearIncorrectValues(),n&&this.restoreNewVisibleRowsValues(n),this.clearGeneratedRows(),i&&this.onColumnsChanged(),this.onRowsChanged()),o},t.prototype.clearGeneratedRows=function(){this.generatedVisibleRows=null},t.prototype.runConditionsForRows=function(e,t){var n=!!this.survey&&this.survey.areInvisibleElementsShowing,r=!n&&this.rowsVisibleIf?new a.ConditionRunner(this.rowsVisibleIf):null;this.filteredRows=[];var i=o.ItemValue.runConditionsForItems(this.rows,this.filteredRows,r,e,t,!n);return this.filteredRows.length===this.rows.length&&(this.filteredRows=null),i},t.prototype.runConditionsForColumns=function(e,t){var n=this.survey&&!this.survey.areInvisibleElementsShowing&&this.columnsVisibleIf?new a.ConditionRunner(this.columnsVisibleIf):null;this.filteredColumns=[];var r=o.ItemValue.runConditionsForItems(this.columns,this.filteredColumns,n,e,t,this.shouldRunColumnExpression());return this.filteredColumns.length===this.columns.length&&(this.filteredColumns=null),r},t.prototype.clearIncorrectValues=function(){var t=this.value;if(t){var n=null,r=!1,i=this.filteredRows?this.filteredRows:this.rows,s=this.filteredColumns?this.filteredColumns:this.columns;for(var a in t)o.ItemValue.getItemByValue(i,a)&&o.ItemValue.getItemByValue(s,t[a])?(null==n&&(n={}),n[a]=t[a]):r=!0;r&&(this.value=n),e.prototype.clearIncorrectValues.call(this)}},t.prototype.clearInvisibleValuesInRows=function(){if(!this.isEmpty()){for(var e=this.getUnbindValue(this.value),t=this.rows,n=0;n<t.length;n++){var r=t[n].value;e[r]&&!t[n].isVisible&&delete e[r]}this.isTwoValueEquals(e,this.value)||(this.value=e)}},t.prototype.restoreNewVisibleRowsValues=function(e){var t=this.filteredRows?this.filteredRows:this.rows,n=this.defaultValue,r=this.getUnbindValue(this.value),i=!1;for(var s in n)o.ItemValue.getItemByValue(t,s)&&!o.ItemValue.getItemByValue(e,s)&&(null==r&&(r={}),r[s]=n[s],i=!0);i&&(this.value=r)},t.prototype.needResponsiveWidth=function(){return!0},t.prototype.getTableCss=function(){return(new u.CssClassBuilder).append(this.cssClasses.root).append(this.cssClasses.rootAlternateRows,this.alternateRows).append(this.cssClasses.rootVerticalAlignTop,"top"===this.verticalAlign).append(this.cssClasses.rootVerticalAlignMiddle,"middle"===this.verticalAlign).toString()},Object.defineProperty(t.prototype,"columnMinWidth",{get:function(){return this.getPropertyValue("columnMinWidth","")},set:function(e){this.setPropertyValue("columnMinWidth",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"rowTitleWidth",{get:function(){return this.getPropertyValue("rowTitleWidth","")},set:function(e){this.setPropertyValue("rowTitleWidth",e)},enumerable:!1,configurable:!0}),p([Object(s.property)({defaultValue:"middle"})],t.prototype,"verticalAlign",void 0),p([Object(s.property)()],t.prototype,"alternateRows",void 0),t}(i.Question);s.Serializer.addClass("matrixbase",[{name:"showCommentArea:switch",layout:"row",visible:!0,category:"general"},"columnsVisibleIf:condition","rowsVisibleIf:condition","columnMinWidth",{name:"showHeader:boolean",default:!0},{name:"verticalAlign",choices:["top","middle"],default:"middle"},{name:"alternateRows:boolean",default:!1}],void 0,"question")},"./src/multiSelectListModel.ts":function(e,t,n){"use strict";n.r(t),n.d(t,"MultiSelectListModel",(function(){return a}));var r,o=n("./src/jsonobject.ts"),i=n("./src/list.ts"),s=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),a=function(e){function t(t,n,r,o,i,s){var a=e.call(this,t,n,r,void 0,i,s)||this;return a.onItemClick=function(e){a.isItemDisabled(e)||(a.isExpanded=!1,a.isItemSelected(e)?(a.selectedItems.splice(a.selectedItems.indexOf(e),1)[0],a.onSelectionChanged&&a.onSelectionChanged(e,"removed")):(a.selectedItems.push(e),a.onSelectionChanged&&a.onSelectionChanged(e,"added")))},a.isItemDisabled=function(e){return void 0!==e.enabled&&!e.enabled},a.isItemSelected=function(e){return!!a.allowSelection&&a.selectedItems.filter((function(t){return a.areSameItems(t,e)})).length>0},a.setSelectedItems(o||[]),a}return s(t,e),t.prototype.updateItemState=function(){var e=this;this.actions.forEach((function(t){var n=e.isItemSelected(t);t.visible=!e.hideSelectedItems||!n}))},t.prototype.updateState=function(){var e=this;this.updateItemState(),this.isEmpty=0===this.renderedActions.filter((function(t){return e.isItemVisible(t)})).length},t.prototype.setSelectedItems=function(e){this.selectedItems=e,this.updateState()},t.prototype.selectFocusedItem=function(){e.prototype.selectFocusedItem.call(this),this.hideSelectedItems&&this.focusNextVisibleItem()},function(e,t,n,r){var o,i=arguments.length,s=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,r);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(i<3?o(s):i>3?o(t,n,s):o(t,n))||s);i>3&&s&&Object.defineProperty(t,n,s)}([Object(o.property)()],t.prototype,"hideSelectedItems",void 0),t}(i.ListModel)},"./src/notifier.ts":function(e,t,n){"use strict";n.r(t),n.d(t,"Notifier",(function(){return p}));var r,o=n("./src/base.ts"),i=n("./src/settings.ts"),s=n("./src/jsonobject.ts"),a=n("./src/utils/cssClassBuilder.ts"),l=n("./src/actions/container.ts"),u=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),c=function(e,t,n,r){var o,i=arguments.length,s=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,r);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(i<3?o(s):i>3?o(t,n,s):o(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},p=function(e){function t(t){var n=e.call(this)||this;return n.cssClasses=t,n.timeout=i.settings.notifications.lifetime,n.timer=void 0,n.actionsVisibility={},n.actionBar=new l.ActionContainer,n.actionBar.updateCallback=function(e){n.actionBar.actions.forEach((function(e){return e.cssClasses={}}))},n.css=n.cssClasses.root,n}return u(t,e),t.prototype.getCssClass=function(e){return(new a.CssClassBuilder).append(this.cssClasses.root).append(this.cssClasses.info,"error"!==e&&"success"!==e).append(this.cssClasses.error,"error"===e).append(this.cssClasses.success,"success"===e).append(this.cssClasses.shown,this.active).toString()},t.prototype.updateActionsVisibility=function(e){var t=this;this.actionBar.actions.forEach((function(n){return n.visible=t.actionsVisibility[n.id]===e}))},t.prototype.notify=function(e,t,n){var r=this;void 0===t&&(t="info"),void 0===n&&(n=!1),this.isDisplayed=!0,setTimeout((function(){r.updateActionsVisibility(t),r.message=e,r.active=!0,r.css=r.getCssClass(t),r.timer&&(clearTimeout(r.timer),r.timer=void 0),n||(r.timer=setTimeout((function(){r.timer=void 0,r.active=!1,r.css=r.getCssClass(t)}),r.timeout))}),1)},t.prototype.addAction=function(e,t){e.visible=!1,e.innerCss=this.cssClasses.button;var n=this.actionBar.addAction(e);this.actionsVisibility[n.id]=t},c([Object(s.property)({defaultValue:!1})],t.prototype,"active",void 0),c([Object(s.property)({defaultValue:!1})],t.prototype,"isDisplayed",void 0),c([Object(s.property)()],t.prototype,"message",void 0),c([Object(s.property)()],t.prototype,"css",void 0),t}(o.Base)},"./src/page.ts":function(e,t,n){"use strict";n.r(t),n.d(t,"PageModel",(function(){return u}));var r,o=n("./src/jsonobject.ts"),i=n("./src/panel.ts"),s=n("./src/utils/cssClassBuilder.ts"),a=n("./src/drag-drop-page-helper-v1.ts"),l=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),u=function(e){function t(t){void 0===t&&(t="");var n=e.call(this,t)||this;return n.hasShownValue=!1,n.timeSpent=0,n.locTitle.onGetTextCallback=function(e){return n.canShowPageNumber()&&e?n.num+". "+e:e},n.createLocalizableString("navigationTitle",n,!0),n.createLocalizableString("navigationDescription",n,!0),n.dragDropPageHelper=new a.DragDropPageHelperV1(n),n}return l(t,e),t.prototype.getType=function(){return"page"},t.prototype.toString=function(){return this.name},Object.defineProperty(t.prototype,"isPage",{get:function(){return!0},enumerable:!1,configurable:!0}),t.prototype.canShowPageNumber=function(){return this.survey&&this.survey.showPageNumbers},t.prototype.canShowTitle=function(){return this.survey&&this.survey.showPageTitles},Object.defineProperty(t.prototype,"navigationTitle",{get:function(){return this.getLocalizableStringText("navigationTitle")},set:function(e){this.setLocalizableStringText("navigationTitle",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locNavigationTitle",{get:function(){return this.getLocalizableString("navigationTitle")},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.strChanged(),this.locNavigationDescription.strChanged()},Object.defineProperty(t.prototype,"passed",{get:function(){return this.getPropertyValue("passed",!1)},set:function(e){this.setPropertyValue("passed",e)},enumerable:!1,configurable:!0}),t.prototype.removeFromParent=function(){this.survey&&this.removeSelfFromList(this.survey.pages)},t.prototype.onFirstRendering=function(){this.wasShown||e.prototype.onFirstRendering.call(this)},Object.defineProperty(t.prototype,"visibleIndex",{get:function(){return this.getPropertyValue("visibleIndex",-1)},set:function(e){this.setPropertyValue("visibleIndex",e)},enumerable:!1,configurable:!0}),t.prototype.canRenderFirstRows=function(){return!this.isDesignMode||0==this.visibleIndex},Object.defineProperty(t.prototype,"isStartPage",{get:function(){return this.survey&&this.survey.isPageStarted(this)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isStarted",{get:function(){return this.isStartPage},enumerable:!1,configurable:!0}),t.prototype.calcCssClasses=function(e){var t={page:{},pageTitle:"",pageDescription:"",row:"",rowMultiple:"",pageRow:"",rowCompact:""};return this.copyCssClasses(t.page,e.page),e.pageTitle&&(t.pageTitle=e.pageTitle),e.pageDescription&&(t.pageDescription=e.pageDescription),e.row&&(t.row=e.row),e.pageRow&&(t.pageRow=e.pageRow),e.rowMultiple&&(t.rowMultiple=e.rowMultiple),e.rowCompact&&(t.rowCompact=e.rowCompact),this.survey&&this.survey.updatePageCssClasses(this,t),t},Object.defineProperty(t.prototype,"cssTitle",{get:function(){return this.cssClasses.page?(new s.CssClassBuilder).append(this.cssClasses.page.title).toString():""},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"cssRoot",{get:function(){return this.cssClasses.page&&this.survey?(new s.CssClassBuilder).append(this.cssClasses.page.root).append(this.cssClasses.page.emptyHeaderRoot,!(this.survey.renderedHasHeader||this.survey.isShowProgressBarOnTop&&!this.survey.isStaring)).toString():""},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"navigationButtonsVisibility",{get:function(){return this.getPropertyValue("navigationButtonsVisibility")},set:function(e){this.setPropertyValue("navigationButtonsVisibility",e.toLowerCase())},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isActive",{get:function(){return!!this.survey&&this.survey.currentPage===this},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"wasShown",{get:function(){return this.hasShownValue},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hasShown",{get:function(){return this.wasShown},enumerable:!1,configurable:!0}),t.prototype.setWasShown=function(e){if(e!=this.hasShownValue&&(this.hasShownValue=e,!this.isDesignMode&&!0===e)){for(var t=this.elements,n=0;n<t.length;n++)t[n].isPanel&&t[n].randomizeElements(this.areQuestionsRandomized);this.randomizeElements(this.areQuestionsRandomized)}},t.prototype.scrollToTop=function(){this.survey&&this.survey.scrollElementToTop(this,null,this,this.id)},t.prototype.getAllPanels=function(e,t){void 0===e&&(e=!1),void 0===t&&(t=!1);var n=new Array;return this.addPanelsIntoList(n,e,t),n},t.prototype.getPanels=function(e,t){return void 0===e&&(e=!1),void 0===t&&(t=!1),this.getAllPanels(e,t)},Object.defineProperty(t.prototype,"maxTimeToFinish",{get:function(){return this.getPropertyValue("maxTimeToFinish",0)},set:function(e){this.setPropertyValue("maxTimeToFinish",e)},enumerable:!1,configurable:!0}),t.prototype.onNumChanged=function(e){},t.prototype.onVisibleChanged=function(){this.isRandomizing||(e.prototype.onVisibleChanged.call(this),null!=this.survey&&this.survey.pageVisibilityChanged(this,this.isVisible))},t.prototype.getDragDropInfo=function(){return this.dragDropPageHelper.getDragDropInfo()},t.prototype.dragDropStart=function(e,t,n){void 0===n&&(n=-1),this.dragDropPageHelper.dragDropStart(e,t,n)},t.prototype.dragDropMoveTo=function(e,t,n){return void 0===t&&(t=!1),void 0===n&&(n=!1),this.dragDropPageHelper.dragDropMoveTo(e,t,n)},t.prototype.dragDropFinish=function(e){return void 0===e&&(e=!1),this.dragDropPageHelper.dragDropFinish(e)},t.prototype.ensureRowsVisibility=function(){e.prototype.ensureRowsVisibility.call(this),this.getPanels().forEach((function(e){return e.ensureRowsVisibility()}))},function(e,t,n,r){var o,i=arguments.length,s=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,r);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(i<3?o(s):i>3?o(t,n,s):o(t,n))||s);i>3&&s&&Object.defineProperty(t,n,s)}([Object(o.property)({defaultValue:-1,onSet:function(e,t){return t.onNumChanged(e)}})],t.prototype,"num",void 0),t}(i.PanelModelBase);o.Serializer.addClass("page",[{name:"navigationButtonsVisibility",default:"inherit",choices:["inherit","show","hide"]},{name:"maxTimeToFinish:number",default:0,minValue:0},{name:"navigationTitle",visibleIf:function(e){return!!e.survey&&("buttons"===e.survey.progressBarType||e.survey.showTOC)},serializationProperty:"locNavigationTitle"},{name:"navigationDescription",visibleIf:function(e){return!!e.survey&&"buttons"===e.survey.progressBarType},serializationProperty:"locNavigationDescription"},{name:"title:text",serializationProperty:"locTitle"},{name:"description:text",serializationProperty:"locDescription"}],(function(){return new u}),"panelbase")},"./src/panel.ts":function(e,t,n){"use strict";n.r(t),n.d(t,"QuestionRowModel",(function(){return y})),n.d(t,"PanelModelBase",(function(){return v})),n.d(t,"PanelModel",(function(){return b}));var r,o=n("./src/jsonobject.ts"),i=n("./src/helpers.ts"),s=n("./src/base.ts"),a=n("./src/survey-element.ts"),l=n("./src/question.ts"),u=n("./src/questionfactory.ts"),c=n("./src/error.ts"),p=n("./src/settings.ts"),d=n("./src/utils/utils.ts"),h=n("./src/utils/cssClassBuilder.ts"),f=n("./src/drag-drop-panel-helper-v1.ts"),g=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),m=function(e,t,n,r){var o,i=arguments.length,s=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,r);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(i<3?o(s):i>3?o(t,n,s):o(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},y=function(e){function t(n){var r=e.call(this)||this;return r.panel=n,r._scrollableParent=void 0,r._updateVisibility=void 0,r.idValue=t.getRowId(),r.visible=n.areInvisibleElementsShowing,r.createNewArray("elements"),r.createNewArray("visibleElements"),r}return g(t,e),t.getRowId=function(){return"pr_"+t.rowCounter++},t.prototype.startLazyRendering=function(e,t){var n=this;void 0===t&&(t=d.findScrollableParent),this._scrollableParent=t(e),this._scrollableParent===document.documentElement&&(this._scrollableParent=window);var r=this._scrollableParent.scrollHeight>this._scrollableParent.clientHeight;this.isNeedRender=!r,r&&(this._updateVisibility=function(){var t=Object(d.isElementVisible)(e,50);!n.isNeedRender&&t&&(n.isNeedRender=!0,n.stopLazyRendering())},setTimeout((function(){n._scrollableParent&&n._scrollableParent.addEventListener&&n._scrollableParent.addEventListener("scroll",n._updateVisibility),n.ensureVisibility()}),10))},t.prototype.ensureVisibility=function(){this._updateVisibility&&this._updateVisibility()},t.prototype.stopLazyRendering=function(){this._scrollableParent&&this._updateVisibility&&this._scrollableParent.removeEventListener&&this._scrollableParent.removeEventListener("scroll",this._updateVisibility),this._scrollableParent=void 0,this._updateVisibility=void 0},t.prototype.setIsLazyRendering=function(e){this.isLazyRenderingValue=e,this.isNeedRender=!e},t.prototype.isLazyRendering=function(){return!0===this.isLazyRenderingValue},Object.defineProperty(t.prototype,"id",{get:function(){return this.idValue},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"elements",{get:function(){return this.getPropertyValue("elements")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"visibleElements",{get:function(){return this.getPropertyValue("visibleElements")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"visible",{get:function(){return this.getPropertyValue("visible",!0)},set:function(e){this.setPropertyValue("visible",e)},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(){var e=this.calcVisible();this.setWidth(),this.visible=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(){var e,t=this.visibleElements.length;if(0!=t){for(var n=1===this.visibleElements.length,r=0,o=[],i=0;i<this.elements.length;i++)if((a=this.elements[i]).isVisible){a.isSingleInRow=n;var s=this.getElementWidth(a);s&&(a.renderWidth=this.getRenderedWidthFromWidth(s),o.push(a)),r<t-1&&!this.panel.isDefaultV2Theme&&!(null===(e=this.panel.parentQuestion)||void 0===e?void 0:e.isDefaultV2Theme)?a.rightIndent=1:a.rightIndent=0,r++}else a.renderWidth="";for(i=0;i<this.elements.length;i++){var a;!(a=this.elements[i]).isVisible||o.indexOf(a)>-1||(0==o.length?a.renderWidth=Number.parseFloat((100/t).toFixed(6))+"%":a.renderWidth=this.getRenderedCalcWidth(a,o,t))}}},t.prototype.getRenderedCalcWidth=function(e,t,n){for(var r="100%",o=0;o<t.length;o++)r+=" - "+t[o].renderWidth;var i=n-t.length;return i>1&&(r="("+r+")/"+i.toString()),"calc("+r+")"},t.prototype.getElementWidth=function(e){var t=e.width;return t&&"string"==typeof t?t.trim():""},t.prototype.getRenderedWidthFromWidth=function(e){return i.Helpers.isNumber(e)?e+"px":e},t.prototype.calcVisible=function(){for(var e=[],t=0;t<this.elements.length;t++)this.elements[t].isVisible&&e.push(this.elements[t]);return this.needToUpdateVisibleElements(e)&&this.setPropertyValue("visibleElements",e),e.length>0},t.prototype.needToUpdateVisibleElements=function(e){if(e.length!==this.visibleElements.length)return!0;for(var t=0;t<e.length;t++)if(e[t]!==this.visibleElements[t])return!0;return!1},t.prototype.dispose=function(){e.prototype.dispose.call(this),this.stopLazyRendering()},t.prototype.getRowCss=function(){return(new h.CssClassBuilder).append(this.panel.cssClasses.row).append(this.panel.cssClasses.rowCompact,this.panel.isCompact).append(this.panel.cssClasses.pageRow,this.panel.isPage||!!this.panel.originalPage&&!this.panel.survey.isShowingPreview).append(this.panel.cssClasses.rowMultiple,this.visibleElements.length>1).toString()},t.rowCounter=100,m([Object(o.property)({defaultValue:null})],t.prototype,"dragTypeOverMe",void 0),t}(s.Base),v=function(e){function t(n){void 0===n&&(n="");var r=e.call(this,n)||this;return r.isQuestionsReady=!1,r.questionsValue=new Array,r.isRandomizing=!1,r.createNewArray("rows"),r.elementsValue=r.createNewArray("elements",r.onAddElement.bind(r),r.onRemoveElement.bind(r)),r.id=t.getPanelId(),r.addExpressionProperty("visibleIf",(function(e,t){r.visible=!0===t}),(function(e){return!r.areInvisibleElementsShowing})),r.addExpressionProperty("enableIf",(function(e,t){r.readOnly=!1===t})),r.addExpressionProperty("requiredIf",(function(e,t){r.isRequired=!0===t})),r.createLocalizableString("requiredErrorText",r),r.registerPropertyChangedHandlers(["questionTitleLocation"],(function(){r.onVisibleChanged.bind(r),r.updateElementCss(!0)})),r.registerPropertyChangedHandlers(["questionStartIndex","showQuestionNumbers"],(function(){r.updateVisibleIndexes()})),r.dragDropPanelHelper=new f.DragDropPanelHelperV1(r),r}return g(t,e),t.getPanelId=function(){return"sp_"+t.panelCounter++},t.prototype.getType=function(){return"panelbase"},t.prototype.setSurveyImpl=function(t,n){e.prototype.setSurveyImpl.call(this,t,n),this.isDesignMode&&this.onVisibleChanged();for(var r=0;r<this.elements.length;r++)this.elements[r].setSurveyImpl(t,n)},t.prototype.endLoadingFromJson=function(){e.prototype.endLoadingFromJson.call(this),this.updateDescriptionVisibility(this.description),this.markQuestionListDirty(),this.onRowsChanged()},Object.defineProperty(t.prototype,"hasTitle",{get:function(){return this.canShowTitle()&&this.locTitle.textOrHtml.length>0||this.showTitle&&this.isDesignMode&&p.settings.designMode.showEmptyTitles},enumerable:!1,configurable:!0}),t.prototype.delete=function(){this.removeFromParent(),this.dispose()},t.prototype.removeFromParent=function(){},t.prototype.canShowTitle=function(){return!0},Object.defineProperty(t.prototype,"_showDescription",{get:function(){return this.survey&&this.survey.showPageTitles&&this.hasDescription||this.showDescription&&this.isDesignMode&&p.settings.designMode.showEmptyTitles&&p.settings.designMode.showEmptyDescriptions},enumerable:!1,configurable:!0}),t.prototype.localeChanged=function(){e.prototype.localeChanged.call(this);for(var t=0;t<this.elements.length;t++)this.elements[t].localeChanged()},t.prototype.locStrsChanged=function(){e.prototype.locStrsChanged.call(this);for(var t=0;t<this.elements.length;t++)this.elements[t].locStrsChanged()},Object.defineProperty(t.prototype,"requiredText",{get:function(){return this.survey&&this.isRequired?this.survey.requiredText:""},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"titlePattern",{get:function(){return this.survey?this.survey.questionTitlePattern:"numTitleRequire"},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isRequireTextOnStart",{get:function(){return this.isRequired&&"requireNumTitle"==this.titlePattern},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isRequireTextBeforeTitle",{get:function(){return this.isRequired&&"numRequireTitle"==this.titlePattern},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isRequireTextAfterTitle",{get:function(){return this.isRequired&&"numTitleRequire"==this.titlePattern},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"requiredErrorText",{get:function(){return this.getLocalizableStringText("requiredErrorText")},set:function(e){this.setLocalizableStringText("requiredErrorText",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locRequiredErrorText",{get:function(){return this.getLocalizableString("requiredErrorText")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"questionsOrder",{get:function(){return this.getPropertyValue("questionsOrder")},set:function(e){this.setPropertyValue("questionsOrder",e)},enumerable:!1,configurable:!0}),t.prototype.canRandomize=function(e){return e&&"initial"!==this.questionsOrder||"random"===this.questionsOrder},t.prototype.randomizeElements=function(e){if(this.canRandomize(e)&&!this.isRandomizing){this.isRandomizing=!0;for(var t=[],n=this.elements,r=0;r<n.length;r++)t.push(n[r]);var o=i.Helpers.randomizeArray(t);this.setArrayPropertyDirectly("elements",o,!1),this.updateRows(),this.updateVisibleIndexes(),this.isRandomizing=!1}},Object.defineProperty(t.prototype,"areQuestionsRandomized",{get:function(){return"random"==("default"==this.questionsOrder&&this.survey?this.survey.questionsOrder:this.questionsOrder)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"parent",{get:function(){return this.getPropertyValue("parent",null)},set:function(e){this.setPropertyValue("parent",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"depth",{get:function(){return null==this.parent?0:this.parent.depth+1},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"visibleIf",{get:function(){return this.getPropertyValue("visibleIf","")},set:function(e){this.setPropertyValue("visibleIf",e)},enumerable:!1,configurable:!0}),t.prototype.calcCssClasses=function(e){var t={panel:{},error:{},row:"",rowMultiple:"",pageRow:"",rowCompact:""};return this.copyCssClasses(t.panel,e.panel),this.copyCssClasses(t.error,e.error),e.pageRow&&(t.pageRow=e.pageRow),e.rowCompact&&(t.rowCompact=e.rowCompact),e.row&&(t.row=e.row),e.rowMultiple&&(t.rowMultiple=e.rowMultiple),this.survey&&this.survey.updatePanelCssClasses(this,t),t},Object.defineProperty(t.prototype,"id",{get:function(){return this.getPropertyValue("id")},set:function(e){this.setPropertyValue("id",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isPanel",{get:function(){return!1},enumerable:!1,configurable:!0}),t.prototype.getPanel=function(){return this},t.prototype.getLayoutType=function(){return"row"},t.prototype.isLayoutTypeSupported=function(e){return"flow"!==e},Object.defineProperty(t.prototype,"questions",{get:function(){if(!this.isQuestionsReady){this.questionsValue=[];for(var e=0;e<this.elements.length;e++){var t=this.elements[e];if(t.isPanel)for(var n=t.questions,r=0;r<n.length;r++)this.questionsValue.push(n[r]);else this.questionsValue.push(t)}this.isQuestionsReady=!0}return this.questionsValue},enumerable:!1,configurable:!0}),t.prototype.getQuestions=function(e){var t=this.questions;if(!e)return t;var n=[];return t.forEach((function(e){n.push(e),e.getNestedQuestions().forEach((function(e){return n.push(e)}))})),n},t.prototype.getValidName=function(e){return e?e.trim():e},t.prototype.getQuestionByName=function(e){for(var t=this.questions,n=0;n<t.length;n++)if(t[n].name==e)return t[n];return null},t.prototype.getElementByName=function(e){for(var t=this.elements,n=0;n<t.length;n++){var r=t[n];if(r.name==e)return r;var o=r.getPanel();if(o){var i=o.getElementByName(e);if(i)return i}}return null},t.prototype.getQuestionByValueName=function(e){for(var t=this.questions,n=0;n<t.length;n++)if(t[n].getValueName()==e)return t[n];return null},t.prototype.getValue=function(){var e={};return this.collectValues(e,0),e},t.prototype.collectValues=function(e,t){var n=this.elements;0===t&&(n=this.questions);for(var r=0;r<n.length;r++){var o=n[r];if(o.isPanel||o.isPage){var i={};o.collectValues(i,t-1)&&(e[o.name]=i)}else{var a=o;if(!a.isEmpty()){var l=a.getValueName();if(e[l]=a.value,this.data){var u=this.data.getComment(l);u&&(e[l+s.Base.commentSuffix]=u)}}}}return!0},t.prototype.getDisplayValue=function(e){for(var t={},n=this.questions,r=0;r<n.length;r++){var o=n[r];o.isEmpty()||(t[e?o.title:o.getValueName()]=o.getDisplayValue(e))}return t},t.prototype.getComments=function(){var e={};if(!this.data)return e;for(var t=this.questions,n=0;n<t.length;n++){var r=t[n],o=this.data.getComment(r.getValueName());o&&(e[r.getValueName()]=o)}return e},t.prototype.clearIncorrectValues=function(){for(var e=0;e<this.elements.length;e++)this.elements[e].clearIncorrectValues()},t.prototype.clearErrors=function(){for(var e=0;e<this.elements.length;e++)this.elements[e].clearErrors();this.errors=[]},t.prototype.markQuestionListDirty=function(){this.isQuestionsReady=!1,this.parent&&this.parent.markQuestionListDirty()},Object.defineProperty(t.prototype,"elements",{get:function(){return this.elementsValue},enumerable:!1,configurable:!0}),t.prototype.getElementsInDesign=function(e){return void 0===e&&(e=!1),this.elements},t.prototype.containsElement=function(e){for(var t=0;t<this.elements.length;t++){var n=this.elements[t];if(n==e)return!0;var r=n.getPanel();if(r&&r.containsElement(e))return!0}return!1},Object.defineProperty(t.prototype,"isRequired",{get:function(){return this.getPropertyValue("isRequired")},set:function(e){this.setPropertyValue("isRequired",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"requiredIf",{get:function(){return this.getPropertyValue("requiredIf","")},set:function(e){this.setPropertyValue("requiredIf",e)},enumerable:!1,configurable:!0}),t.prototype.searchText=function(t,n){e.prototype.searchText.call(this,t,n);for(var r=0;r<this.elements.length;r++)this.elements[r].searchText(t,n)},t.prototype.hasErrors=function(e,t,n){return void 0===e&&(e=!0),void 0===t&&(t=!1),void 0===n&&(n=null),!this.validate(e,t,n)},t.prototype.validate=function(e,t,n){return void 0===e&&(e=!0),void 0===t&&(t=!1),void 0===n&&(n=null),!0!==(n=n||{fireCallback:e,focuseOnFirstError:t,firstErrorQuestion:null,result:!1}).result&&(n.result=!1),this.hasErrorsCore(n),n.firstErrorQuestion&&n.firstErrorQuestion.focus(!0),!n.result},t.prototype.validateContainerOnly=function(){this.hasErrorsInPanels({fireCallback:!0}),this.parent&&this.parent.validateContainerOnly()},t.prototype.hasErrorsInPanels=function(e){var t=[];if(this.hasRequiredError(e,t),this.survey){var n=this.survey.validatePanel(this);n&&(t.push(n),e.result=!0)}e.fireCallback&&(this.survey&&this.survey.beforeSettingPanelErrors(this,t),this.errors=t)},t.prototype.getErrorCustomText=function(e,t){return this.survey?this.survey.getSurveyErrorCustomText(this,e,t):e},t.prototype.hasRequiredError=function(e,t){if(this.isRequired){var n=[];if(this.addQuestionsToList(n,!0),0!=n.length){for(var r=0;r<n.length;r++)if(!n[r].isEmpty())return;e.result=!0,t.push(new c.OneAnswerRequiredError(this.requiredErrorText,this)),e.focuseOnFirstError&&!e.firstErrorQuestion&&(e.firstErrorQuestion=n[0])}}},t.prototype.hasErrorsCore=function(e){for(var t=this.elements,n=null,r=0;r<t.length;r++)if((n=t[r]).isVisible)if(n.isPanel)n.hasErrorsCore(e);else{var o=n;if(o.isReadOnly)continue;o.validate(e.fireCallback,e)||(e.focuseOnFirstError&&null==e.firstErrorQuestion&&(e.firstErrorQuestion=o),e.result=!0)}this.hasErrorsInPanels(e),this.updateContainsErrors()},t.prototype.getContainsErrors=function(){var t=e.prototype.getContainsErrors.call(this);if(t)return t;for(var n=this.elements,r=0;r<n.length;r++)if(n[r].containsErrors)return!0;return!1},t.prototype.updateElementVisibility=function(){for(var e=0;e<this.elements.length;e++){var t=this.elements[e];t.setPropertyValue("isVisible",t.isVisible),t.isPanel&&t.updateElementVisibility()}},t.prototype.getFirstQuestionToFocus=function(e,t){if(void 0===e&&(e=!1),void 0===t&&(t=!1),!e&&!t&&this.isCollapsed)return null;for(var n=this.elements,r=0;r<n.length;r++){var o=n[r];if(o.isVisible&&(t||!o.isCollapsed))if(o.isPanel){var i=o.getFirstQuestionToFocus(e,t);if(i)return i}else{var s=o.getFirstQuestionToFocus(e);if(s)return s}}return null},t.prototype.focusFirstQuestion=function(){var e=this.getFirstQuestionToFocus();e&&e.focus()},t.prototype.focusFirstErrorQuestion=function(){var e=this.getFirstQuestionToFocus(!0);e&&e.focus()},t.prototype.addQuestionsToList=function(e,t,n){void 0===t&&(t=!1),void 0===n&&(n=!1),this.addElementsToList(e,t,n,!1)},t.prototype.addPanelsIntoList=function(e,t,n){void 0===t&&(t=!1),void 0===n&&(n=!1),this.addElementsToList(e,t,n,!0)},t.prototype.addElementsToList=function(e,t,n,r){t&&!this.visible||this.addElementsToListCore(e,this.elements,t,n,r)},t.prototype.addElementsToListCore=function(e,t,n,r,o){for(var i=0;i<t.length;i++){var s=t[i];n&&!s.visible||((o&&s.isPanel||!o&&!s.isPanel)&&e.push(s),s.isPanel?s.addElementsToListCore(e,s.elements,n,r,o):r&&this.addElementsToListCore(e,s.getElementsInDesign(!1),n,r,o))}},t.prototype.updateCustomWidgets=function(){for(var e=0;e<this.elements.length;e++)this.elements[e].updateCustomWidgets()},Object.defineProperty(t.prototype,"questionTitleLocation",{get:function(){return this.getPropertyValue("questionTitleLocation")},set:function(e){this.setPropertyValue("questionTitleLocation",e.toLowerCase())},enumerable:!1,configurable:!0}),t.prototype.getQuestionTitleLocation=function(){return this.onGetQuestionTitleLocation?this.onGetQuestionTitleLocation():"default"!=this.questionTitleLocation?this.questionTitleLocation:this.parent?this.parent.getQuestionTitleLocation():this.survey?this.survey.questionTitleLocation:"top"},t.prototype.getStartIndex=function(){return this.parent?this.parent.getQuestionStartIndex():this.survey?this.survey.questionStartIndex:""},t.prototype.getQuestionStartIndex=function(){return this.getStartIndex()},t.prototype.getChildrenLayoutType=function(){return"row"},t.prototype.getProgressInfo=function(){return a.SurveyElement.getProgressInfoByElements(this.elements,this.isRequired)},Object.defineProperty(t.prototype,"root",{get:function(){for(var e=this;e.parent;)e=e.parent;return e},enumerable:!1,configurable:!0}),t.prototype.childVisibilityChanged=function(){this.getIsPageVisible(null)!==this.getPropertyValue("isVisible",!0)&&this.onVisibleChanged()},t.prototype.createRowAndSetLazy=function(e){var t=this.createRow();return t.setIsLazyRendering(this.isLazyRenderInRow(e)),t},t.prototype.createRow=function(){return new y(this)},t.prototype.onSurveyLoad=function(){for(var e=0;e<this.elements.length;e++)this.elements[e].onSurveyLoad();this.onElementVisibilityChanged(this)},t.prototype.onFirstRendering=function(){e.prototype.onFirstRendering.call(this);for(var t=0;t<this.elements.length;t++)this.elements[t].onFirstRendering();this.onRowsChanged()},t.prototype.updateRows=function(){if(!this.isLoadingFromJson){for(var e=0;e<this.elements.length;e++)this.elements[e].isPanel&&this.elements[e].updateRows();this.onRowsChanged()}},Object.defineProperty(t.prototype,"rows",{get:function(){return this.getPropertyValue("rows")},enumerable:!1,configurable:!0}),t.prototype.ensureRowsVisibility=function(){this.rows.forEach((function(e){e.ensureVisibility()}))},t.prototype.onRowsChanged=function(){this.isLoadingFromJson||this.setArrayPropertyDirectly("rows",this.buildRows())},t.prototype.onAddElement=function(e,t){var n=this;if(e.setSurveyImpl(this.surveyImpl),e.parent=this,this.markQuestionListDirty(),this.canBuildRows()){var r=p.settings.supportCreatorV2?this.getDragDropInfo():void 0;this.dragDropPanelHelper.updateRowsOnElementAdded(e,t,r,this)}if(e.isPanel){var o=e;this.survey&&this.survey.panelAdded(o,t,this,this.root)}else if(this.survey){var i=e;this.survey.questionAdded(i,t,this,this.root)}this.addElementCallback&&this.addElementCallback(e),e.registerPropertyChangedHandlers(["visible","isVisible"],(function(){n.onElementVisibilityChanged(e)}),this.id),e.registerPropertyChangedHandlers(["startWithNewLine"],(function(){n.onElementStartWithNewLineChanged(e)}),this.id),this.onElementVisibilityChanged(this)},t.prototype.onRemoveElement=function(e){e.parent=null,this.markQuestionListDirty(),e.unregisterPropertyChangedHandlers(["visible","isVisible","startWithNewLine"],this.id),this.updateRowsOnElementRemoved(e),this.isRandomizing||(e.isPanel?this.survey&&this.survey.panelRemoved(e):this.survey&&this.survey.questionRemoved(e),this.removeElementCallback&&this.removeElementCallback(e),this.onElementVisibilityChanged(this))},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.onRowsChanged()},t.prototype.updateRowsVisibility=function(e){for(var t=this.rows,n=0;n<t.length;n++){var r=t[n];if(r.elements.indexOf(e)>-1){r.updateVisible(),r.visible&&!r.isNeedRender&&(r.isNeedRender=!0);break}}},t.prototype.canBuildRows=function(){return!this.isLoadingFromJson&&"row"==this.getChildrenLayoutType()},t.prototype.buildRows=function(){if(!this.canBuildRows())return[];for(var e=new Array,t=0;t<this.elements.length;t++){var n=this.elements[t],r=0==t||n.startWithNewLine,o=r?this.createRowAndSetLazy(e.length):e[e.length-1];r&&e.push(o),o.addElement(n)}for(t=0;t<e.length;t++)e[t].updateVisible();return e},t.prototype.isLazyRenderInRow=function(e){return!(!this.survey||!this.survey.isLazyRendering)&&(e>=p.settings.lazyRender.firstBatchSize||!this.canRenderFirstRows())},t.prototype.canRenderFirstRows=function(){return this.isPage},t.prototype.getDragDropInfo=function(){var e=this.getPage(this.parent);return e?e.getDragDropInfo():void 0},t.prototype.updateRowsOnElementRemoved=function(e){this.canBuildRows()&&this.updateRowsRemoveElementFromRow(e,this.findRowByElement(e))},t.prototype.updateRowsRemoveElementFromRow=function(e,t){if(t&&t.panel){var n=t.elements.indexOf(e);n<0||(t.elements.splice(n,1),t.elements.length>0?(t.elements[0].startWithNewLine=!0,t.updateVisible()):t.index>=0&&t.panel.rows.splice(t.index,1))}},t.prototype.findRowByElement=function(e){for(var t=this.rows,n=0;n<t.length;n++)if(t[n].elements.indexOf(e)>-1)return t[n];return null},t.prototype.elementWidthChanged=function(e){if(!this.isLoadingFromJson){var t=this.findRowByElement(e);t&&t.updateVisible()}},Object.defineProperty(t.prototype,"processedTitle",{get:function(){return this.getRenderedTitle(this.locTitle.textOrHtml)},enumerable:!1,configurable:!0}),t.prototype.getRenderedTitle=function(e){return null!=this.textProcessor?this.textProcessor.processText(e,!0):e},Object.defineProperty(t.prototype,"visible",{get:function(){return this.getPropertyValue("visible",!0)},set:function(e){e!==this.visible&&(this.setPropertyValue("visible",e),this.setPropertyValue("isVisible",this.isVisible),this.isLoadingFromJson||this.onVisibleChanged())},enumerable:!1,configurable:!0}),t.prototype.onVisibleChanged=function(){if(!this.isRandomizing&&(this.setPropertyValue("isVisible",this.isVisible),this.survey&&"none"!==this.survey.getQuestionClearIfInvisible("default")&&!this.isLoadingFromJson))for(var e=this.questions,t=this.isVisible,n=0;n<e.length;n++)t?e[n].updateValueWithDefaults():e[n].clearValueIfInvisible("onHiddenContainer")},Object.defineProperty(t.prototype,"isVisible",{get:function(){return this.areInvisibleElementsShowing||this.getIsPageVisible(null)},enumerable:!1,configurable:!0}),t.prototype.getIsPageVisible=function(e){if(!this.visible)return!1;for(var t=0;t<this.elements.length;t++)if(this.elements[t]!=e&&this.elements[t].isVisible)return!0;return!1},t.prototype.setVisibleIndex=function(e){if(!this.isVisible||e<0)return this.resetVisibleIndexes(),0;this.lastVisibleIndex=e;var t=e;e+=this.beforeSetVisibleIndex(e);for(var n=this.getPanelStartIndex(e),r=n,o=0;o<this.elements.length;o++)r+=this.elements[o].setVisibleIndex(r);return this.isContinueNumbering()&&(e+=r-n),e-t},t.prototype.updateVisibleIndexes=function(){void 0!==this.lastVisibleIndex&&(this.resetVisibleIndexes(),this.setVisibleIndex(this.lastVisibleIndex))},t.prototype.resetVisibleIndexes=function(){for(var e=0;e<this.elements.length;e++)this.elements[e].setVisibleIndex(-1)},t.prototype.beforeSetVisibleIndex=function(e){return 0},t.prototype.getPanelStartIndex=function(e){return e},t.prototype.isContinueNumbering=function(){return!0},Object.defineProperty(t.prototype,"isReadOnly",{get:function(){var e=!!this.parent&&this.parent.isReadOnly,t=!!this.survey&&this.survey.isDisplayMode;return this.readOnly||e||t},enumerable:!1,configurable:!0}),t.prototype.onReadOnlyChanged=function(){for(var t=0;t<this.elements.length;t++){var n=this.elements[t];n.setPropertyValue("isReadOnly",n.isReadOnly)}e.prototype.onReadOnlyChanged.call(this)},t.prototype.updateElementCss=function(t){e.prototype.updateElementCss.call(this,t);for(var n=0;n<this.elements.length;n++)this.elements[n].updateElementCss(t)},Object.defineProperty(t.prototype,"enableIf",{get:function(){return this.getPropertyValue("enableIf","")},set:function(e){this.setPropertyValue("enableIf",e)},enumerable:!1,configurable:!0}),t.prototype.addElement=function(e,t){return void 0===t&&(t=-1),!!this.canAddElement(e)&&(t<0||t>=this.elements.length?this.elements.push(e):this.elements.splice(t,0,e),!0)},t.prototype.insertElementAfter=function(e,t){var n=this.elements.indexOf(t);n>=0&&this.addElement(e,n+1)},t.prototype.insertElementBefore=function(e,t){var n=this.elements.indexOf(t);n>=0&&this.addElement(e,n)},t.prototype.canAddElement=function(e){return!!e&&e.isLayoutTypeSupported(this.getChildrenLayoutType())},t.prototype.addQuestion=function(e,t){return void 0===t&&(t=-1),this.addElement(e,t)},t.prototype.addPanel=function(e,t){return void 0===t&&(t=-1),this.addElement(e,t)},t.prototype.addNewQuestion=function(e,t,n){void 0===t&&(t=null),void 0===n&&(n=-1);var r=u.QuestionFactory.Instance.createQuestion(e,t);return this.addQuestion(r,n)?r:null},t.prototype.addNewPanel=function(e){void 0===e&&(e=null);var t=this.createNewPanel(e);return this.addPanel(t)?t:null},t.prototype.indexOf=function(e){return this.elements.indexOf(e)},t.prototype.createNewPanel=function(e){var t=o.Serializer.createClass("panel");return t.name=e,t},t.prototype.removeElement=function(e){var t=this.elements.indexOf(e);if(t<0){for(var n=0;n<this.elements.length;n++)if(this.elements[n].removeElement(e))return!0;return!1}return this.elements.splice(t,1),!0},t.prototype.removeQuestion=function(e){this.removeElement(e)},t.prototype.runCondition=function(e,t){if(!this.isDesignMode&&!this.isLoadingFromJson){for(var n=this.elements.slice(),r=0;r<n.length;r++)n[r].runCondition(e,t);this.runConditionCore(e,t)}},t.prototype.onAnyValueChanged=function(e){for(var t=this.elements,n=0;n<t.length;n++)t[n].onAnyValueChanged(e)},t.prototype.checkBindings=function(e,t){for(var n=this.elements,r=0;r<n.length;r++)n[r].checkBindings(e,t)},t.prototype.dragDropAddTarget=function(e){this.dragDropPanelHelper.dragDropAddTarget(e)},t.prototype.dragDropFindRow=function(e){return this.dragDropPanelHelper.dragDropFindRow(e)},t.prototype.dragDropMoveElement=function(e,t,n){this.dragDropPanelHelper.dragDropMoveElement(e,t,n)},t.prototype.needResponsiveWidth=function(){var e=!1;return this.elements.forEach((function(t){t.needResponsiveWidth()&&(e=!0)})),this.rows.forEach((function(t){t.elements.length>1&&(e=!0)})),e},Object.defineProperty(t.prototype,"hasDescriptionUnderTitle",{get:function(){return this.hasDescription},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"cssHeader",{get:function(){return this.cssClasses.panel.header},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"cssDescription",{get:function(){return this.cssClasses.panel.description},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"no",{get:function(){return""},enumerable:!1,configurable:!0}),t.prototype.dispose=function(){if(e.prototype.dispose.call(this),this.rows){for(var t=0;t<this.rows.length;t++)this.rows[t].dispose();this.rows.splice(0,this.rows.length)}for(t=0;t<this.elements.length;t++)this.elements[t].dispose();this.elements.splice(0,this.elements.length)},t.panelCounter=100,m([Object(o.property)({defaultValue:!0})],t.prototype,"showTitle",void 0),m([Object(o.property)({defaultValue:!0})],t.prototype,"showDescription",void 0),t}(a.SurveyElement),b=function(e){function t(t){void 0===t&&(t="");var n=e.call(this,t)||this;return n.createNewArray("footerActions"),n.registerPropertyChangedHandlers(["width"],(function(){n.parent&&n.parent.elementWidthChanged(n)})),n.registerPropertyChangedHandlers(["indent","innerIndent","rightIndent"],(function(){n.onIndentChanged()})),n}return g(t,e),t.prototype.getType=function(){return"panel"},Object.defineProperty(t.prototype,"contentId",{get:function(){return this.id+"_content"},enumerable:!1,configurable:!0}),t.prototype.getSurvey=function(t){return void 0===t&&(t=!1),t?this.parent?this.parent.getSurvey(t):null:e.prototype.getSurvey.call(this,t)},t.prototype.onSurveyLoad=function(){e.prototype.onSurveyLoad.call(this),this.onIndentChanged()},t.prototype.onSetData=function(){e.prototype.onSetData.call(this),this.onIndentChanged()},Object.defineProperty(t.prototype,"isPanel",{get:function(){return!0},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"page",{get:function(){return this.getPage(this.parent)},set:function(e){this.setPage(this.parent,e)},enumerable:!1,configurable:!0}),t.prototype.removeFromParent=function(){this.parent&&this.removeSelfFromList(this.parent.elements)},t.prototype.moveTo=function(e,t){return void 0===t&&(t=null),this.moveToBase(this.parent,e,t)},Object.defineProperty(t.prototype,"visibleIndex",{get:function(){return this.getPropertyValue("visibleIndex",-1)},enumerable:!1,configurable:!0}),t.prototype.getTitleOwner=function(){return this},Object.defineProperty(t.prototype,"showNumber",{get:function(){return this.getPropertyValue("showNumber")},set:function(e){this.setPropertyValue("showNumber",e),this.notifySurveyOnVisibilityChanged()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"showQuestionNumbers",{get:function(){return this.getPropertyValue("showQuestionNumbers")},set:function(e){this.setPropertyValue("showQuestionNumbers",e),this.notifySurveyOnVisibilityChanged()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"questionStartIndex",{get:function(){return this.getPropertyValue("questionStartIndex","")},set:function(e){this.setPropertyValue("questionStartIndex",e)},enumerable:!1,configurable:!0}),t.prototype.getQuestionStartIndex=function(){return this.questionStartIndex?this.questionStartIndex:e.prototype.getQuestionStartIndex.call(this)},Object.defineProperty(t.prototype,"no",{get:function(){return this.getPropertyValue("no","")},enumerable:!1,configurable:!0}),t.prototype.setNo=function(e){this.setPropertyValue("no",i.Helpers.getNumberByIndex(this.visibleIndex,this.getStartIndex()))},t.prototype.createLocTitleProperty=function(){var t=this,n=e.prototype.createLocTitleProperty.call(this);return n.onGetTextCallback=function(e){return e||!t.isExpanded&&!t.isCollapsed||(e=t.name),e},n},t.prototype.beforeSetVisibleIndex=function(e){var t=-1;return!this.showNumber||!this.isDesignMode&&this.locTitle.isEmpty||(t=e),this.setPropertyValue("visibleIndex",t),this.setNo(t),t<0?0:1},t.prototype.getPanelStartIndex=function(e){return"off"==this.showQuestionNumbers?-1:"onpanel"==this.showQuestionNumbers?0:e},t.prototype.isContinueNumbering=function(){return"off"!=this.showQuestionNumbers&&"onpanel"!=this.showQuestionNumbers},t.prototype.notifySurveyOnVisibilityChanged=function(){null==this.survey||this.isLoadingFromJson||this.survey.panelVisibilityChanged(this,this.isVisible)},t.prototype.hasErrorsCore=function(t){e.prototype.hasErrorsCore.call(this,t),this.isCollapsed&&t.result&&t.fireCallback&&this.expand()},t.prototype.getRenderedTitle=function(t){if(!t){if(this.isCollapsed||this.isExpanded)return this.name;if(this.isDesignMode)return"["+this.name+"]"}return e.prototype.getRenderedTitle.call(this,t)},Object.defineProperty(t.prototype,"innerIndent",{get:function(){return this.getPropertyValue("innerIndent")},set:function(e){this.setPropertyValue("innerIndent",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"startWithNewLine",{get:function(){return this.getPropertyValue("startWithNewLine")},set:function(e){this.setPropertyValue("startWithNewLine",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"allowAdaptiveActions",{get:function(){return this.getPropertyValue("allowAdaptiveActions")},set:function(e){this.setPropertyValue("allowAdaptiveActions",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"innerPaddingLeft",{get:function(){return this.getPropertyValue("innerPaddingLeft","")},set:function(e){this.setPropertyValue("innerPaddingLeft",e)},enumerable:!1,configurable:!0}),t.prototype.onIndentChanged=function(){this.getSurvey()&&(this.innerPaddingLeft=this.getIndentSize(this.innerIndent),this.paddingLeft=this.getIndentSize(this.indent),this.paddingRight=this.getIndentSize(this.rightIndent))},t.prototype.getIndentSize=function(e){if(e<1)return"";var t=this.survey.css;return t&&t.question.indent?e*t.question.indent+"px":""},t.prototype.clearOnDeletingContainer=function(){this.elements.forEach((function(e){(e instanceof l.Question||e instanceof t)&&e.clearOnDeletingContainer()}))},Object.defineProperty(t.prototype,"footerActions",{get:function(){return this.getPropertyValue("footerActions")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"footerToolbarCss",{get:function(){var e;return this.footerToolbarCssValue||(null===(e=this.cssClasses.panel)||void 0===e?void 0:e.footer)},set:function(e){this.footerToolbarCssValue=e},enumerable:!1,configurable:!0}),t.prototype.getFooterToolbar=function(){var e,t=this;if(!this.footerToolbarValue){var n=this.footerActions;this.hasEditButton&&n.push({id:"cancel-preview",locTitle:this.survey.locEditText,innerCss:this.survey.cssNavigationEdit,action:function(){t.cancelPreview()}}),n=this.onGetFooterActionsCallback?this.onGetFooterActionsCallback():null===(e=this.survey)||void 0===e?void 0:e.getUpdatedPanelFooterActions(this,n),this.footerToolbarValue=this.createActionContainer(this.allowAdaptiveActions),this.footerToolbarValue.containerCss=this.footerToolbarCss,this.footerToolbarValue.setItems(n)}return this.footerToolbarValue},Object.defineProperty(t.prototype,"hasEditButton",{get:function(){return!(!this.survey||"preview"!==this.survey.state)&&1===this.depth},enumerable:!1,configurable:!0}),t.prototype.cancelPreview=function(){this.hasEditButton&&this.survey.cancelPreviewByPage(this)},Object.defineProperty(t.prototype,"cssTitle",{get:function(){return this.getCssTitle(this.cssClasses.panel)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"cssError",{get:function(){return this.getCssError(this.cssClasses)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"showErrorsAbovePanel",{get:function(){return this.isDefaultV2Theme},enumerable:!1,configurable:!0}),t.prototype.getCssError=function(e){var t=this.isDefaultV2Theme,n=(new h.CssClassBuilder).append(this.cssClasses.error.root).append(this.cssClasses.error.outsideQuestion,t).append(this.cssClasses.error.aboveQuestion,t);return n.append("panel-error-root",n.isEmpty()).toString()},t.prototype.onVisibleChanged=function(){e.prototype.onVisibleChanged.call(this),this.notifySurveyOnVisibilityChanged()},t.prototype.needResponsiveWidth=function(){return!this.startWithNewLine||e.prototype.needResponsiveWidth.call(this)},t.prototype.focusIn=function(){this.survey&&this.survey.whenPanelFocusIn(this)},t.prototype.getHasFrameV2=function(){return e.prototype.getHasFrameV2.call(this)&&(!this.originalPage||this.survey.isShowingPreview)},t.prototype.getIsNested=function(){return e.prototype.getIsNested.call(this)&&void 0!==this.parent},t.prototype.getCssRoot=function(t){return(new h.CssClassBuilder).append(e.prototype.getCssRoot.call(this,t)).append(t.container).append(t.asPage,!!this.originalPage&&!this.survey.isShowingPreview).append(t.invisible,!this.isDesignMode&&this.areInvisibleElementsShowing&&!this.visible).toString()},t.prototype.getContainerCss=function(){return this.getCssRoot(this.cssClasses.panel)},t}(v);o.Serializer.addClass("panelbase",["name",{name:"elements",alternativeName:"questions",baseClassName:"question",visible:!1,isLightSerializable:!1},{name:"visible:switch",default:!0},"visibleIf:condition","enableIf:condition","requiredIf:condition","readOnly:boolean",{name:"questionTitleLocation",default:"default",choices:["default","top","bottom","left","hidden"]},{name:"title:text",serializationProperty:"locTitle"},{name:"description:text",serializationProperty:"locDescription"},{name:"questionsOrder",default:"default",choices:["default","initial","random"]}],(function(){return new v})),o.Serializer.addClass("panel",[{name:"state",default:"default",choices:["default","collapsed","expanded"]},"isRequired:switch",{name:"requiredErrorText:text",serializationProperty:"locRequiredErrorText"},{name:"startWithNewLine:boolean",default:!0},"width",{name:"minWidth",defaultFunc:function(){return"auto"}},{name:"maxWidth",defaultFunc:function(){return p.settings.maxWidth}},{name:"innerIndent:number",default:0,choices:[0,1,2,3]},{name:"indent:number",default:0,choices:[0,1,2,3]},{name:"page",isSerializable:!1,visibleIf:function(e){var t=e?e.survey:null;return!t||!t.pages||t.pages.length>1},choices:function(e){var t=e?e.survey:null;return t?t.pages.map((function(e){return{value:e.name,text:e.title}})):[]}},"showNumber:boolean",{name:"showQuestionNumbers",default:"default",choices:["default","onpanel","off"]},"questionStartIndex",{name:"allowAdaptiveActions:boolean",default:!0,visible:!1}],(function(){return new b}),"panelbase"),u.ElementFactory.Instance.registerElement("panel",(function(e){return new b(e)}))},"./src/popup-dropdown-view-model.ts":function(e,t,n){"use strict";n.r(t),n.d(t,"PopupDropdownViewModel",(function(){return p}));var r,o=n("./src/jsonobject.ts"),i=n("./src/utils/popup.ts"),s=n("./src/popup-view-model.ts"),a=n("./src/utils/devices.ts"),l=n("./src/settings.ts"),u=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),c=function(e,t,n,r){var o,i=arguments.length,s=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,r);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(i<3?o(s):i>3?o(t,n,s):o(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},p=function(e){function t(t,n){var r=e.call(this,t)||this;return r.targetElement=n,r.scrollEventCallBack=function(e){if(r.isOverlay&&a.IsTouch)return e.stopPropagation(),void e.preventDefault();r.hidePopup()},r.resizeEventCallback=function(){var e=window.visualViewport;document.documentElement.style.setProperty("--sv-popup-overlay-height",e.height*e.scale+"px")},r.resizeWindowCallback=function(){r.isOverlay||r.updatePosition(!0,!1)},r.clientY=0,r.isTablet=!1,r.touchStartEventCallback=function(e){r.clientY=e.touches[0].clientY},r.touchMoveEventCallback=function(e){r.preventScrollOuside(e,r.clientY-e.changedTouches[0].clientY)},r.model.onRecalculatePosition.add((function(e,t){r.isOverlay||r.updatePosition(t.isResetHeight)})),r}return u(t,e),t.prototype.calculateIsTablet=function(e,n){var r=Math.min(e,n);this.isTablet=r>=t.tabletSizeBreakpoint},t.prototype._updatePosition=function(){var e,t,n;if(this.targetElement){var r=this.targetElement.getBoundingClientRect(),o=null===(e=this.container)||void 0===e?void 0:e.querySelector(this.containerSelector);if(o){var s=null===(t=this.container)||void 0===t?void 0:t.querySelector(this.fixedPopupContainer),a=o.querySelector(this.scrollingContentSelector),l=window.getComputedStyle(o),u=parseFloat(l.marginLeft)||0,c=parseFloat(l.marginRight)||0,p=o.offsetHeight-a.offsetHeight+a.scrollHeight,d=o.getBoundingClientRect().width;this.model.setWidthByTarget&&(this.minWidth=r.width+"px");var h=this.model.verticalPosition,f=this.getActualHorizontalPosition();if(window){var g=[p,.9*window.innerHeight,null===(n=window.visualViewport)||void 0===n?void 0:n.height];p=Math.ceil(Math.min.apply(Math,g.filter((function(e){return"number"==typeof e})))),h=i.PopupUtils.updateVerticalPosition(r,p,this.model.verticalPosition,this.model.showPointer,window.innerHeight)}this.popupDirection=i.PopupUtils.calculatePopupDirection(h,f);var m=i.PopupUtils.calculatePosition(r,p,d+u+c,h,f,this.showHeader,this.model.positionMode);if(window){var y=i.PopupUtils.updateVerticalDimensions(m.top,p,window.innerHeight);if(y&&(this.height=y.height+"px",m.top=y.top),this.model.setWidthByTarget)this.width=r.width+"px",m.left=r.left;else{var v=i.PopupUtils.updateHorizontalDimensions(m.left,d,window.innerWidth,f,this.model.positionMode,{left:u,right:c});v&&(this.width=v.width?v.width+"px":void 0,m.left=v.left)}}if(s){var b=s.getBoundingClientRect();m.top-=b.top,m.left-=b.left}this.left=m.left+"px",this.top=m.top+"px",this.showHeader&&(this.pointerTarget=i.PopupUtils.calculatePointerTarget(r,m.top,m.left,h,f,u,c),this.pointerTarget.top+="px",this.pointerTarget.left+="px")}}},t.prototype.getActualHorizontalPosition=function(){var e=this.model.horizontalPosition;return!!document&&"rtl"==document.defaultView.getComputedStyle(document.body).direction&&("left"===this.model.horizontalPosition?e="right":"right"===this.model.horizontalPosition&&(e="left")),e},t.prototype.getStyleClass=function(){return e.prototype.getStyleClass.call(this).append("sv-popup--dropdown",!this.isOverlay).append("sv-popup--tablet",this.isTablet&&this.isOverlay).append("sv-popup--show-pointer",!this.isOverlay&&this.showHeader).append("sv-popup--"+this.popupDirection,!this.isOverlay&&this.showHeader)},t.prototype.getShowHeader=function(){return this.model.showPointer&&!this.isOverlay},t.prototype.getPopupHeaderTemplate=function(){return"popup-pointer"},t.prototype.setComponentElement=function(t,n){e.prototype.setComponentElement.call(this,t),t&&t.parentElement&&!this.isModal&&(this.targetElement=n||t.parentElement)},t.prototype.updateOnShowing=function(){var e=l.settings.environment.root;this.prevActiveElement=e.activeElement,this.isOverlay?this.resetDimensionsAndPositionStyleProperties():this.updatePosition(!0,!1),this.switchFocus(),window.addEventListener("resize",this.resizeWindowCallback),this.shouldCreateResizeCallback&&(window.visualViewport.addEventListener("resize",this.resizeEventCallback),this.container&&(this.container.addEventListener("touchstart",this.touchStartEventCallback),this.container.addEventListener("touchmove",this.touchMoveEventCallback)),this.calculateIsTablet(window.innerWidth,window.innerHeight),this.resizeEventCallback()),window.addEventListener("scroll",this.scrollEventCallBack)},Object.defineProperty(t.prototype,"shouldCreateResizeCallback",{get:function(){return!!window.visualViewport&&this.isOverlay&&a.IsTouch},enumerable:!1,configurable:!0}),t.prototype.updatePosition=function(e,t){var n=this;void 0===t&&(t=!0),e&&(this.height="auto"),t?setTimeout((function(){n._updatePosition()}),1):this._updatePosition()},t.prototype.updateOnHiding=function(){e.prototype.updateOnHiding.call(this),window.removeEventListener("resize",this.resizeWindowCallback),this.shouldCreateResizeCallback&&(window.visualViewport.removeEventListener("resize",this.resizeEventCallback),this.container&&(this.container.removeEventListener("touchstart",this.touchStartEventCallback),this.container.removeEventListener("touchmove",this.touchMoveEventCallback))),window.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.tabletSizeBreakpoint=600,c([Object(o.property)()],t.prototype,"isTablet",void 0),c([Object(o.property)({defaultValue:"left"})],t.prototype,"popupDirection",void 0),c([Object(o.property)({defaultValue:{left:"0px",top:"0px"}})],t.prototype,"pointerTarget",void 0),t}(s.PopupBaseViewModel)},"./src/popup-modal-view-model.ts":function(e,t,n){"use strict";n.r(t),n.d(t,"PopupModalViewModel",(function(){return s}));var r,o=n("./src/popup-view-model.ts"),i=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),s=function(e){function t(t){var n=e.call(this,t)||this;return n.onScrollOutsideCallback=function(e){n.preventScrollOuside(e,e.deltaY)},n}return i(t,e),t.prototype.getStyleClass=function(){return e.prototype.getStyleClass.call(this).append("sv-popup--modal",!this.isOverlay)},t.prototype.getShowFooter=function(){return!0},t.prototype.createFooterActionBar=function(){var t=this;e.prototype.createFooterActionBar.call(this),this.footerToolbarValue.addAction({id:"apply",visibleIndex:20,title:this.applyButtonText,innerCss:"sv-popup__body-footer-item sv-popup__button sv-popup__button--apply sd-btn sd-btn--action",action:function(){t.apply()}})},Object.defineProperty(t.prototype,"applyButtonText",{get:function(){return this.getLocalizationString("modalApplyButtonText")},enumerable:!1,configurable:!0}),t.prototype.apply=function(){this.model.onApply&&!this.model.onApply()||this.hidePopup()},t.prototype.clickOutside=function(){},t.prototype.onKeyDown=function(t){"Escape"!==t.key&&27!==t.keyCode||this.model.onCancel(),e.prototype.onKeyDown.call(this,t)},t.prototype.updateOnShowing=function(){this.container&&this.container.addEventListener("wheel",this.onScrollOutsideCallback,{passive:!1}),e.prototype.updateOnShowing.call(this)},t.prototype.updateOnHiding=function(){this.container&&this.container.removeEventListener("wheel",this.onScrollOutsideCallback),e.prototype.updateOnHiding.call(this)},t}(o.PopupBaseViewModel)},"./src/popup-survey.ts":function(e,t,n){"use strict";n.r(t),n.d(t,"PopupSurveyModel",(function(){return l})),n.d(t,"SurveyWindowModel",(function(){return u}));var r,o=n("./src/base.ts"),i=n("./src/survey.ts"),s=n("./src/jsonobject.ts"),a=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),l=function(e){function t(t,n){void 0===n&&(n=null);var r=e.call(this)||this;return r.closeOnCompleteTimeout=0,r.surveyValue=n||r.createSurvey(t),r.surveyValue.showTitle=!1,"undefined"!=typeof document&&(r.windowElement=document.createElement("div")),r.survey.onComplete.add((function(e,t){r.onSurveyComplete()})),r.registerPropertyChangedHandlers(["isShowing"],(function(){r.showingChangedCallback&&r.showingChangedCallback()})),r.registerPropertyChangedHandlers(["isExpanded"],(function(){r.onExpandedChanged()})),r.width=new o.ComputedUpdater((function(){return r.survey.width})),r.width=r.survey.width,r.updateCss(),r.onCreating(),r.survey.onPopupVisibleChanged.add((function(e,t){t.visible?r.onScrollCallback=function(){t.popup.toggleVisibility()}:r.onScrollCallback=void 0})),r}return a(t,e),t.prototype.onCreating=function(){},t.prototype.getType=function(){return"popupsurvey"},Object.defineProperty(t.prototype,"survey",{get:function(){return this.surveyValue},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isShowing",{get:function(){return this.getPropertyValue("isShowing",!1)},set:function(e){this.setPropertyValue("isShowing",e)},enumerable:!1,configurable:!0}),t.prototype.show=function(){this.isShowing=!0},t.prototype.hide=function(){this.isShowing=!1},Object.defineProperty(t.prototype,"isExpanded",{get:function(){return this.getPropertyValue("isExpanded",!1)},set:function(e){this.setPropertyValue("isExpanded",e)},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},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,"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(){return this.getPropertyValue("cssRoot","")},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,"cssHeaderTitle",{get:function(){return this.getPropertyValue("cssHeaderTitle","")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"cssHeaderButton",{get:function(){return this.getPropertyValue("cssHeaderButton","")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"renderedWidth",{get:function(){var e=this.getPropertyValue("width","60%");return e&&!isNaN(e)&&(e+="px"),e},enumerable:!1,configurable:!0}),t.prototype.updateCss=function(){if(this.css&&this.css.window){var e=this.css.window;this.setPropertyValue("cssRoot",e.root),this.setPropertyValue("cssBody",e.body);var t=e.header;t&&(this.setPropertyValue("cssHeaderRoot",t.root),this.setPropertyValue("cssHeaderTitle",t.title),this.setPropertyValue("cssHeaderButton",t.button),this.updateCssButton())}},t.prototype.updateCssButton=function(){var e=this.css.window?this.css.window.header:null;e&&this.setCssButton(this.isExpanded?e.buttonExpanded:e.buttonCollapsed)},t.prototype.setCssButton=function(e){e&&this.setPropertyValue("cssButton",e)},t.prototype.createSurvey=function(e){return new i.SurveyModel(e)},t.prototype.onSurveyComplete=function(){if(!(this.closeOnCompleteTimeout<0))if(0==this.closeOnCompleteTimeout)this.hide();else{var e=this,t=null;t="undefined"!=typeof window?window.setInterval((function(){e.hide(),"undefined"!=typeof window&&window.clearInterval(t)}),1e3*this.closeOnCompleteTimeout):0}},t.prototype.onScroll=function(){this.onScrollCallback&&this.onScrollCallback()},function(e,t,n,r){var o,i=arguments.length,s=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,r);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(i<3?o(s):i>3?o(t,n,s):o(t,n))||s);i>3&&s&&Object.defineProperty(t,n,s)}([Object(s.property)()],t.prototype,"width",void 0),t}(o.Base),u=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return a(t,e),t}(l)},"./src/popup-utils.ts":function(e,t,n){"use strict";n.r(t),n.d(t,"createPopupModalViewModel",(function(){return s})),n.d(t,"createPopupViewModel",(function(){return a}));var r=n("./src/popup.ts"),o=n("./src/popup-dropdown-view-model.ts"),i=n("./src/popup-modal-view-model.ts");function s(e,t){var n=new r.PopupModel(e.componentName,e.data,"top","left",!1,!0,e.onCancel,e.onApply,(function(){e.onHide(),s&&o.resetComponentElement()}),e.onShow,e.cssClass,e.title);n.displayMode=e.displayMode||"popup";var o=new i.PopupModalViewModel(n);if(t&&t.appendChild){var s=document.createElement("div");t.appendChild(s),o.setComponentElement(s)}return o.container||o.initializePopupContainer(),o}function a(e,t){return e.isModal?new i.PopupModalViewModel(e):new o.PopupDropdownViewModel(e,t)}},"./src/popup-view-model.ts":function(e,t,n){"use strict";n.r(t),n.d(t,"FOCUS_INPUT_SELECTOR",(function(){return d})),n.d(t,"PopupBaseViewModel",(function(){return h}));var r,o=n("./src/base.ts"),i=n("./src/jsonobject.ts"),s=n("./src/utils/cssClassBuilder.ts"),a=n("./src/actions/container.ts"),l=n("./src/settings.ts"),u=n("./src/utils/utils.ts"),c=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),p=function(e,t,n,r){var o,i=arguments.length,s=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,r);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(i<3?o(s):i>3?o(t,n,s):o(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},d='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^="-"])',h=function(e){function t(t){var n=e.call(this)||this;return n.popupSelector=".sv-popup",n.fixedPopupContainer=".sv-popup",n.containerSelector=".sv-popup__container",n.scrollingContentSelector=".sv-popup__scrolling-content",n.model=t,n}return c(t,e),Object.defineProperty(t.prototype,"container",{get:function(){return this.containerElement||this.createdContainer},enumerable:!1,configurable:!0}),t.prototype.getLocale=function(){return this.locale?this.locale:e.prototype.getLocale.call(this)},t.prototype.hidePopup=function(){this.model.isVisible=!1},t.prototype.getStyleClass=function(){return(new s.CssClassBuilder).append(this.model.cssClass).append("sv-popup--"+this.model.displayMode,this.isOverlay)},t.prototype.getShowFooter=function(){return this.isOverlay},t.prototype.getShowHeader=function(){return!1},t.prototype.getPopupHeaderTemplate=function(){},t.prototype.createFooterActionBar=function(){var e=this;this.footerToolbarValue=new a.ActionContainer,this.footerToolbar.updateCallback=function(t){e.footerToolbarValue.actions.forEach((function(e){return e.cssClasses={item:"sv-popup__body-footer-item sv-popup__button sd-btn"}}))};var t=[{id:"cancel",visibleIndex:10,title:this.cancelButtonText,innerCss:"sv-popup__button--cancel sd-btn",action:function(){e.cancel()}}];t=this.model.updateFooterActions(t),this.footerToolbarValue.setItems(t)},t.prototype.resetDimensionsAndPositionStyleProperties=function(){var e="inherit";this.top=e,this.left=e,this.height=e,this.width=e,this.minWidth=e},t.prototype.setupModel=function(e){var t=this;this.model&&this.model.unregisterPropertyChangedHandlers(["isVisible"],"PopupBaseViewModel"),this._model=e;var n=function(){e.isVisible||t.updateOnHiding(),t.isVisible=e.isVisible};e.registerPropertyChangedHandlers(["isVisible"],n,"PopupBaseViewModel"),n()},Object.defineProperty(t.prototype,"model",{get:function(){return this._model},set:function(e){this.setupModel(e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"title",{get:function(){return this.model.title},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"contentComponentName",{get:function(){return this.model.contentComponentName},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"contentComponentData",{get:function(){return this.model.contentComponentData},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isModal",{get:function(){return this.model.isModal},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isFocusedContent",{get:function(){return this.model.isFocusedContent},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isFocusedContainer",{get:function(){return this.model.isFocusedContainer},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"showFooter",{get:function(){return this.getShowFooter()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"showHeader",{get:function(){return this.getShowHeader()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"popupHeaderTemplate",{get:function(){return this.getPopupHeaderTemplate()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isOverlay",{get:function(){return"overlay"===this.model.displayMode},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"styleClass",{get:function(){return this.getStyleClass().toString()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"cancelButtonText",{get:function(){return this.getLocalizationString("modalCancelButtonText")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"footerToolbar",{get:function(){return this.footerToolbarValue||this.createFooterActionBar(),this.footerToolbarValue},enumerable:!1,configurable:!0}),t.prototype.onKeyDown=function(e){"Tab"===e.key||9===e.keyCode?this.trapFocus(e):"Escape"!==e.key&&27!==e.keyCode||this.hidePopup()},t.prototype.trapFocus=function(e){var t=this.container.querySelectorAll(d),n=t[0],r=t[t.length-1];e.shiftKey?l.settings.environment.root.activeElement===n&&(r.focus(),e.preventDefault()):l.settings.environment.root.activeElement===r&&(n.focus(),e.preventDefault())},t.prototype.switchFocus=function(){this.isFocusedContent?this.focusFirstInput():this.isFocusedContainer&&this.focusContainer()},t.prototype.updateOnShowing=function(){this.prevActiveElement=l.settings.environment.root.activeElement,this.isOverlay&&this.resetDimensionsAndPositionStyleProperties(),this.switchFocus()},t.prototype.updateOnHiding=function(){this.isFocusedContent&&this.prevActiveElement&&this.prevActiveElement.focus()},t.prototype.focusContainer=function(){if(this.container){var e=this.container.querySelector(this.popupSelector);null==e||e.focus()}},t.prototype.focusFirstInput=function(){var e=this;setTimeout((function(){if(e.container){var t=e.container.querySelector(e.model.focusFirstInputSelector||d);t?t.focus():e.focusContainer()}}),100)},t.prototype.clickOutside=function(e){this.hidePopup(),null==e||e.stopPropagation()},t.prototype.cancel=function(){this.model.onCancel(),this.hidePopup()},t.prototype.dispose=function(){e.prototype.dispose.call(this),this.createdContainer&&(this.createdContainer.remove(),this.createdContainer=void 0),this.footerToolbarValue&&this.footerToolbarValue.dispose()},t.prototype.initializePopupContainer=function(){if(!this.container){var e=document.createElement("div");this.createdContainer=e,Object(u.getElement)(l.settings.environment.popupMountContainer).appendChild(e)}},t.prototype.setComponentElement=function(e,t){e&&(this.containerElement=e)},t.prototype.resetComponentElement=function(){this.containerElement=void 0},t.prototype.preventScrollOuside=function(e,t){for(var n=e.target;n!==this.container;){if("auto"===window.getComputedStyle(n).overflowY&&n.scrollHeight!==n.offsetHeight){var r=n.scrollHeight,o=n.scrollTop,i=n.clientHeight;if(!(t>0&&Math.abs(r-i-o)<1||t<0&&o<=0))return}n=n.parentElement}e.preventDefault()},p([Object(i.property)({defaultValue:"0px"})],t.prototype,"top",void 0),p([Object(i.property)({defaultValue:"0px"})],t.prototype,"left",void 0),p([Object(i.property)({defaultValue:"auto"})],t.prototype,"height",void 0),p([Object(i.property)({defaultValue:"auto"})],t.prototype,"width",void 0),p([Object(i.property)({defaultValue:"auto"})],t.prototype,"minWidth",void 0),p([Object(i.property)({defaultValue:!1})],t.prototype,"isVisible",void 0),p([Object(i.property)()],t.prototype,"locale",void 0),t}(o.Base)},"./src/popup.ts":function(e,t,n){"use strict";n.r(t),n.d(t,"PopupModel",(function(){return l})),n.d(t,"createDialogOptions",(function(){return u}));var r,o=n("./src/base.ts"),i=n("./src/jsonobject.ts"),s=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),a=function(e,t,n,r){var o,i=arguments.length,s=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,r);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(i<3?o(s):i>3?o(t,n,s):o(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},l=function(e){function t(t,n,r,o,i,s,a,l,u,c,p,d){void 0===r&&(r="bottom"),void 0===o&&(o="left"),void 0===i&&(i=!0),void 0===s&&(s=!1),void 0===a&&(a=function(){}),void 0===l&&(l=function(){return!0}),void 0===u&&(u=function(){}),void 0===c&&(c=function(){}),void 0===p&&(p=""),void 0===d&&(d="");var h=e.call(this)||this;return h.focusFirstInputSelector="",h.onVisibilityChanged=h.addEvent(),h.onFooterActionsCreated=h.addEvent(),h.onRecalculatePosition=h.addEvent(),h.contentComponentName=t,h.contentComponentData=n,h.verticalPosition=r,h.horizontalPosition=o,h.showPointer=i,h.isModal=s,h.onCancel=a,h.onApply=l,h.onHide=u,h.onShow=c,h.cssClass=p,h.title=d,h}return s(t,e),t.prototype.refreshInnerModel=function(){var e=this.contentComponentData.model;e&&e.refresh&&e.refresh()},Object.defineProperty(t.prototype,"isVisible",{get:function(){return this.getPropertyValue("isVisible",!1)},set:function(e){this.isVisible!==e&&(this.setPropertyValue("isVisible",e),this.onVisibilityChanged.fire(this,{model:this,isVisible:e}),this.isVisible?this.onShow():(this.refreshInnerModel(),this.onHide()))},enumerable:!1,configurable:!0}),t.prototype.toggleVisibility=function(){this.isVisible=!this.isVisible},t.prototype.recalculatePosition=function(e){this.onRecalculatePosition.fire(this,{isResetHeight:e})},t.prototype.updateFooterActions=function(e){var t={actions:e};return this.onFooterActionsCreated.fire(this,t),t.actions},a([Object(i.property)()],t.prototype,"contentComponentName",void 0),a([Object(i.property)()],t.prototype,"contentComponentData",void 0),a([Object(i.property)({defaultValue:"bottom"})],t.prototype,"verticalPosition",void 0),a([Object(i.property)({defaultValue:"left"})],t.prototype,"horizontalPosition",void 0),a([Object(i.property)({defaultValue:!1})],t.prototype,"showPointer",void 0),a([Object(i.property)({defaultValue:!1})],t.prototype,"isModal",void 0),a([Object(i.property)({defaultValue:!0})],t.prototype,"isFocusedContent",void 0),a([Object(i.property)({defaultValue:!0})],t.prototype,"isFocusedContainer",void 0),a([Object(i.property)({defaultValue:function(){}})],t.prototype,"onCancel",void 0),a([Object(i.property)({defaultValue:function(){return!0}})],t.prototype,"onApply",void 0),a([Object(i.property)({defaultValue:function(){}})],t.prototype,"onHide",void 0),a([Object(i.property)({defaultValue:function(){}})],t.prototype,"onShow",void 0),a([Object(i.property)({defaultValue:""})],t.prototype,"cssClass",void 0),a([Object(i.property)({defaultValue:""})],t.prototype,"title",void 0),a([Object(i.property)({defaultValue:"popup"})],t.prototype,"displayMode",void 0),a([Object(i.property)({defaultValue:"flex"})],t.prototype,"positionMode",void 0),t}(o.Base);function u(e,t,n,r,o,i,s,a,l){return void 0===o&&(o=function(){}),void 0===i&&(i=function(){}),void 0===l&&(l="popup"),{componentName:e,data:t,onApply:n,onCancel:r,onHide:o,onShow:i,cssClass:s,title:a,displayMode:l}}},"./src/question.ts":function(e,t,n){"use strict";n.r(t),n.d(t,"Question",(function(){return b}));var r,o=n("./src/helpers.ts"),i=n("./src/jsonobject.ts"),s=n("./src/survey-element.ts"),a=n("./src/error.ts"),l=n("./src/validator.ts"),u=n("./src/localizablestring.ts"),c=n("./src/conditions.ts"),p=n("./src/questionCustomWidgets.ts"),d=n("./src/settings.ts"),h=n("./src/rendererFactory.ts"),f=n("./src/utils/cssClassBuilder.ts"),g=n("./src/utils/utils.ts"),m=n("./src/console-warnings.ts"),y=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),v=function(e,t,n,r){var o,i=arguments.length,s=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,r);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(i<3?o(s):i>3?o(t,n,s):o(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},b=function(e){function t(n){var r=e.call(this,n)||this;return r.customWidgetData={isNeedRender:!0},r.isReadyValue=!0,r.dependedQuestions=[],r.onReadyChanged=r.addEvent(),r.isRunningValidatorsValue=!1,r.isValueChangedInSurvey=!1,r.allowNotifyValueChanged=!0,r.id=t.getQuestionId(),r.onCreating(),r.createNewArray("validators",(function(e){e.errorOwner=r})),r.addExpressionProperty("visibleIf",(function(e,t){r.visible=!0===t}),(function(e){return!r.areInvisibleElementsShowing})),r.addExpressionProperty("enableIf",(function(e,t){r.readOnly=!1===t})),r.addExpressionProperty("requiredIf",(function(e,t){r.isRequired=!0===t})),r.createLocalizableString("commentText",r,!0,"otherItemText"),r.locTitle.onGetDefaultTextCallback=function(){return r.name},r.locTitle.storeDefaultText=!0,r.createLocalizableString("requiredErrorText",r),r.registerPropertyChangedHandlers(["width"],(function(){r.updateQuestionCss(),r.parent&&r.parent.elementWidthChanged(r)})),r.registerPropertyChangedHandlers(["isRequired"],(function(){!r.isRequired&&r.errors.length>0&&r.validate(),r.locTitle.strChanged(),r.clearCssClasses()})),r.registerPropertyChangedHandlers(["indent","rightIndent"],(function(){r.onIndentChanged()})),r.registerPropertyChangedHandlers(["showCommentArea","showOtherItem"],(function(){r.initCommentFromSurvey()})),r.registerFunctionOnPropertiesValueChanged(["no","readOnly"],(function(){r.updateQuestionCss()})),r.registerPropertyChangedHandlers(["isMobile"],(function(){r.onMobileChanged()})),r}return y(t,e),t.getQuestionId=function(){return"sq_"+t.questionCounter++},t.prototype.isReadOnlyRenderDiv=function(){return this.isReadOnly&&"div"===d.settings.readOnly.commentRenderMode},t.prototype.setIsMobile=function(e){},t.prototype.createLocTitleProperty=function(){var t=this,n=e.prototype.createLocTitleProperty.call(this);return n.onGetTextCallback=function(e){return e||(e=t.name),t.survey?t.survey.getUpdatedQuestionTitle(t,e):e},this.locProcessedTitle=new u.LocalizableString(this,!0),this.locProcessedTitle.sharedData=n,n},t.prototype.getSurvey=function(t){return void 0===t&&(t=!1),t?this.parent?this.parent.getSurvey(t):null:this.onGetSurvey?this.onGetSurvey():e.prototype.getSurvey.call(this)},t.prototype.getValueName=function(){return this.valueName?this.valueName.toString():this.name},Object.defineProperty(t.prototype,"valueName",{get:function(){return this.getPropertyValue("valueName","")},set:function(e){var t=this.getValueName();this.setPropertyValue("valueName",e),this.onValueNameChanged(t)},enumerable:!1,configurable:!0}),t.prototype.onValueNameChanged=function(e){this.survey&&(this.survey.questionRenamed(this,this.name,e||this.name),this.initDataFromSurvey())},t.prototype.onNameChanged=function(e){this.locTitle.strChanged(),this.survey&&this.survey.questionRenamed(this,e,this.valueName?this.valueName:e)},Object.defineProperty(t.prototype,"isReady",{get:function(){return this.isReadyValue},set:function(e){var t=this.isReadyValue;this.isReadyValue=e,t!=e&&this.onReadyChanged.fire(this,{question:this,isReady:e,oldIsReady:t})},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"ariaRequired",{get:function(){return this.isRequired?"true":"false"},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"ariaInvalid",{get:function(){return this.errors.length>0?"true":"false"},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"ariaLabelledBy",{get:function(){return this.hasTitle?this.ariaTitleId:null},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"ariaExpanded",{get:function(){return null},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"ariaDescribedBy",{get:function(){return this.errors.length>0?this.id+"_errors":null},enumerable:!1,configurable:!0}),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(){this.removeFromParent(),this.dispose()},t.prototype.removeFromParent=function(){this.parent&&this.removeSelfFromList(this.parent.elements)},t.prototype.addDependedQuestion=function(e){!e||this.dependedQuestions.indexOf(e)>-1||this.dependedQuestions.push(e)},t.prototype.removeDependedQuestion=function(e){if(e){var t=this.dependedQuestions.indexOf(e);t>-1&&this.dependedQuestions.splice(t,1)}},t.prototype.updateDependedQuestions=function(){for(var e=0;e<this.dependedQuestions.length;e++)this.dependedQuestions[e].updateDependedQuestion()},t.prototype.updateDependedQuestion=function(){},t.prototype.resetDependedQuestion=function(){},Object.defineProperty(t.prototype,"isFlowLayout",{get:function(){return"flow"===this.getLayoutType()},enumerable:!1,configurable:!0}),t.prototype.getLayoutType=function(){return this.parent?this.parent.getChildrenLayoutType():"row"},t.prototype.isLayoutTypeSupported=function(e){return"flow"!==e},Object.defineProperty(t.prototype,"visible",{get:function(){return this.getPropertyValue("visible",!0)},set:function(e){e!=this.visible&&(this.setPropertyValue("visible",e),this.onVisibleChanged(),this.notifySurveyVisibilityChanged())},enumerable:!1,configurable:!0}),t.prototype.onVisibleChanged=function(){this.setPropertyValue("isVisible",this.isVisible),!this.isVisible&&this.errors&&this.errors.length>0&&(this.errors=[])},Object.defineProperty(t.prototype,"useDisplayValuesInDynamicTexts",{get:function(){return this.getPropertyValue("useDisplayValuesInDynamicTexts")},set:function(e){this.setPropertyValue("useDisplayValuesInDynamicTexts",e)},enumerable:!1,configurable:!0}),t.prototype.getUseDisplayValuesInDynamicTexts=function(){return this.useDisplayValuesInDynamicTexts},Object.defineProperty(t.prototype,"visibleIf",{get:function(){return this.getPropertyValue("visibleIf","")},set:function(e){this.setPropertyValue("visibleIf",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isVisible",{get:function(){return!(this.survey&&this.survey.areEmptyElementsHidden&&this.isEmpty())&&(!!this.areInvisibleElementsShowing||this.isVisibleCore())},enumerable:!1,configurable:!0}),t.prototype.isVisibleCore=function(){return this.visible},Object.defineProperty(t.prototype,"visibleIndex",{get:function(){return this.getPropertyValue("visibleIndex",-1)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hideNumber",{get:function(){return this.getPropertyValue("hideNumber")},set:function(e){this.setPropertyValue("hideNumber",e),this.notifySurveyVisibilityChanged()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isAllowTitleLeft",{get:function(){return!0},enumerable:!1,configurable:!0}),t.prototype.getType=function(){return"question"},Object.defineProperty(t.prototype,"isQuestion",{get:function(){return!0},enumerable:!1,configurable:!0}),t.prototype.moveTo=function(e,t){return void 0===t&&(t=null),this.moveToBase(this.parent,e,t)},t.prototype.getProgressInfo=function(){return this.hasInput?{questionCount:1,answeredQuestionCount:this.isEmpty()?0:1,requiredQuestionCount:this.isRequired?1:0,requiredAnsweredQuestionCount:!this.isEmpty()&&this.isRequired?1:0}:e.prototype.getProgressInfo.call(this)},t.prototype.runConditions=function(){this.data&&!this.isLoadingFromJson&&(this.isDesignMode||this.runCondition(this.getDataFilteredValues(),this.getDataFilteredProperties()),this.locStrsChanged())},t.prototype.setSurveyImpl=function(t,n){e.prototype.setSurveyImpl.call(this,t),this.survey&&(this.survey.questionCreated(this),!0!==n&&this.runConditions())},Object.defineProperty(t.prototype,"parent",{get:function(){return this.getPropertyValue("parent",null)},set:function(e){this.parent!==e&&(this.removeFromParent(),this.setPropertyValue("parent",e),this.updateQuestionCss(),this.onParentChanged())},enumerable:!1,configurable:!0}),t.prototype.onParentChanged=function(){},Object.defineProperty(t.prototype,"hasTitle",{get:function(){return"hidden"!==this.getTitleLocation()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"titleLocation",{get:function(){return this.getPropertyValue("titleLocation")},set:function(e){var t="hidden"==this.titleLocation||"hidden"==e;this.setPropertyValue("titleLocation",e.toLowerCase()),this.updateQuestionCss(),t&&this.notifySurveyVisibilityChanged()},enumerable:!1,configurable:!0}),t.prototype.getTitleOwner=function(){return this},t.prototype.getIsTitleRenderedAsString=function(){return"hidden"===this.titleLocation},t.prototype.notifySurveyVisibilityChanged=function(){if(this.survey&&!this.isLoadingFromJson){this.survey.questionVisibilityChanged(this,this.isVisible);var e=this.isClearValueOnHidden;this.visible||this.clearValueOnHidding(e),e&&this.isVisible&&this.updateValueWithDefaults()}},t.prototype.clearValueOnHidding=function(e){e&&this.clearValueIfInvisible()},t.prototype.getTitleLocation=function(){if(this.isFlowLayout)return"hidden";var e=this.getTitleLocationCore();return"left"!==e||this.isAllowTitleLeft||(e="top"),e},t.prototype.getTitleLocationCore=function(){return"default"!==this.titleLocation?this.titleLocation:this.parent?this.parent.getQuestionTitleLocation():this.survey?this.survey.questionTitleLocation:"top"},Object.defineProperty(t.prototype,"hasTitleOnLeft",{get:function(){return this.hasTitle&&"left"===this.getTitleLocation()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hasTitleOnTop",{get:function(){return this.hasTitle&&"top"===this.getTitleLocation()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hasTitleOnBottom",{get:function(){return this.hasTitle&&"bottom"===this.getTitleLocation()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hasTitleOnLeftTop",{get:function(){if(!this.hasTitle)return!1;var e=this.getTitleLocation();return"left"===e||"top"===e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"errorLocation",{get:function(){return this.survey?this.survey.questionErrorLocation:"top"},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hasInput",{get:function(){return!0},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hasSingleInput",{get:function(){return this.hasInput},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"inputId",{get:function(){return this.id+"i"},enumerable:!1,configurable:!0}),t.prototype.getDefaultTitleValue=function(){return this.name},t.prototype.getDefaultTitleTagName=function(){return d.settings.titleTags.question},Object.defineProperty(t.prototype,"descriptionLocation",{get:function(){return this.getPropertyValue("descriptionLocation")},set:function(e){this.setPropertyValue("descriptionLocation",e),this.updateQuestionCss()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hasDescriptionUnderTitle",{get:function(){return"underTitle"==this.getDescriptionLocation()&&this.hasDescription},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hasDescriptionUnderInput",{get:function(){return"underInput"==this.getDescriptionLocation()&&this.hasDescription},enumerable:!1,configurable:!0}),t.prototype.getDescriptionLocation=function(){return"default"!==this.descriptionLocation?this.descriptionLocation:this.survey?this.survey.questionDescriptionLocation:"underTitle"},t.prototype.needClickTitleFunction=function(){return e.prototype.needClickTitleFunction.call(this)||this.hasInput},t.prototype.processTitleClick=function(){var t=this;if(e.prototype.processTitleClick.call(this),!this.isCollapsed)return setTimeout((function(){t.focus()}),1),!0},Object.defineProperty(t.prototype,"requiredErrorText",{get:function(){return this.getLocalizableStringText("requiredErrorText")},set:function(e){this.setLocalizableStringText("requiredErrorText",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locRequiredErrorText",{get:function(){return this.getLocalizableString("requiredErrorText")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"commentText",{get:function(){return this.getLocalizableStringText("commentText")},set:function(e){this.setLocalizableStringText("commentText",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locCommentText",{get:function(){return this.getLocalizableString("commentText")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"commentPlaceHolder",{get:function(){return this.commentPlaceholder},set:function(e){this.commentPlaceholder=e},enumerable:!1,configurable:!0}),t.prototype.getAllErrors=function(){return this.errors.slice()},t.prototype.getErrorByType=function(e){for(var t=0;t<this.errors.length;t++)if(this.errors[t].getErrorType()===e)return this.errors[t];return null},Object.defineProperty(t.prototype,"customWidget",{get:function(){return this.isCustomWidgetRequested||this.customWidgetValue||(this.isCustomWidgetRequested=!0,this.updateCustomWidget()),this.customWidgetValue},enumerable:!1,configurable:!0}),t.prototype.updateCustomWidget=function(){this.customWidgetValue=p.CustomWidgetCollection.Instance.getCustomWidget(this)},t.prototype.localeChanged=function(){e.prototype.localeChanged.call(this),this.localeChangedCallback&&this.localeChangedCallback()},Object.defineProperty(t.prototype,"isCompositeQuestion",{get:function(){return!1},enumerable:!1,configurable:!0}),t.prototype.updateCommentElements=function(){if(this.autoGrowComment&&Array.isArray(this.commentElements))for(var e=0;e<this.commentElements.length;e++){var t=this.commentElements[e];t&&Object(g.increaseHeightByContent)(t)}},t.prototype.onCommentInput=function(e){this.isInputTextUpdate?e.target&&(this.comment=e.target.value):this.updateCommentElements()},t.prototype.onCommentChange=function(e){this.comment=e.target.value,this.comment!==e.target.value&&(e.target.value=this.comment)},t.prototype.afterRenderQuestionElement=function(e){this.survey&&this.hasSingleInput&&this.survey.afterRenderQuestionInput(this,e)},t.prototype.afterRender=function(e){var t=this;this.survey&&(this.survey.afterRenderQuestion(this,e),this.afterRenderQuestionCallback&&this.afterRenderQuestionCallback(this,e),(this.supportComment()||this.supportOther())&&(this.commentElements=[],this.getCommentElementsId().forEach((function(e){var n=d.settings.environment.root.getElementById(e);n&&t.commentElements.push(n)})),this.updateCommentElements()),this.checkForResponsiveness(e))},t.prototype.getCommentElementsId=function(){return[this.commentId]},t.prototype.beforeDestroyQuestionElement=function(e){this.commentElements=void 0},Object.defineProperty(t.prototype,"processedTitle",{get:function(){return this.locProcessedTitle.textOrHtml||this.name},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"fullTitle",{get:function(){return this.locTitle.renderedHtml},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"titlePattern",{get:function(){return this.survey?this.survey.questionTitlePattern:"numTitleRequire"},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isRequireTextOnStart",{get:function(){return this.isRequired&&"requireNumTitle"==this.titlePattern},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isRequireTextBeforeTitle",{get:function(){return this.isRequired&&"numRequireTitle"==this.titlePattern&&""!==this.requiredText},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isRequireTextAfterTitle",{get:function(){return this.isRequired&&"numTitleRequire"==this.titlePattern&&""!==this.requiredText},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"startWithNewLine",{get:function(){return this.getPropertyValue("startWithNewLine")},set:function(e){this.startWithNewLine!=e&&this.setPropertyValue("startWithNewLine",e)},enumerable:!1,configurable:!0}),t.prototype.calcCssClasses=function(e){var t={error:{}};return this.copyCssClasses(t,e.question),this.copyCssClasses(t.error,e.error),this.updateCssClasses(t,e),this.survey&&this.survey.updateQuestionCssClasses(this,t),this.onUpdateCssClassesCallback&&this.onUpdateCssClassesCallback(t),t},Object.defineProperty(t.prototype,"cssRoot",{get:function(){return this.ensureElementCss(),this.getPropertyValue("cssRoot","")},enumerable:!1,configurable:!0}),t.prototype.setCssRoot=function(e){this.setPropertyValue("cssRoot",e)},t.prototype.getCssRoot=function(t){return(new f.CssClassBuilder).append(e.prototype.getCssRoot.call(this,t)).append(this.isFlowLayout&&!this.isDesignMode?t.flowRoot:t.mainRoot).append(t.titleLeftRoot,!this.isFlowLayout&&this.hasTitleOnLeft).append(t.hasError,this.errors.length>0).append(t.small,!this.width).append(t.answered,this.isAnswered).toString()},Object.defineProperty(t.prototype,"cssHeader",{get:function(){return this.ensureElementCss(),this.getPropertyValue("cssHeader","")},enumerable:!1,configurable:!0}),t.prototype.setCssHeader=function(e){this.setPropertyValue("cssHeader",e)},t.prototype.getCssHeader=function(e){return(new f.CssClassBuilder).append(e.header).append(e.headerTop,this.hasTitleOnTop).append(e.headerLeft,this.hasTitleOnLeft).append(e.headerBottom,this.hasTitleOnBottom).toString()},Object.defineProperty(t.prototype,"cssContent",{get:function(){return this.ensureElementCss(),this.getPropertyValue("cssContent","")},enumerable:!1,configurable:!0}),t.prototype.setCssContent=function(e){this.setPropertyValue("cssContent",e)},t.prototype.getCssContent=function(e){return(new f.CssClassBuilder).append(e.content).append(e.contentLeft,this.hasTitleOnLeft).toString()},Object.defineProperty(t.prototype,"cssTitle",{get:function(){return this.ensureElementCss(),this.getPropertyValue("cssTitle","")},enumerable:!1,configurable:!0}),t.prototype.setCssTitle=function(e){this.setPropertyValue("cssTitle",e)},t.prototype.getCssTitle=function(t){return(new f.CssClassBuilder).append(e.prototype.getCssTitle.call(this,t)).append(t.titleOnAnswer,!this.containsErrors&&this.isAnswered).toString()},Object.defineProperty(t.prototype,"cssDescription",{get:function(){return this.ensureElementCss(),this.getPropertyValue("cssDescription","")},enumerable:!1,configurable:!0}),t.prototype.setCssDescription=function(e){this.setPropertyValue("cssDescription",e)},t.prototype.getCssDescription=function(e){return(new f.CssClassBuilder).append(e.description,this.hasDescriptionUnderTitle).append(e.descriptionUnderInput,this.hasDescriptionUnderInput).toString()},t.prototype.getIsErrorsModeTooltip=function(){return e.prototype.getIsErrorsModeTooltip.call(this)&&!this.customWidget},t.prototype.showErrorOnCore=function(e){return!this.isErrorsModeTooltip&&!this.showErrorsAboveQuestion&&!this.showErrorsBelowQuestion&&this.errorLocation===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}),t.prototype.getIsTooltipErrorSupportedByParent=function(){return this.parentQuestion?this.parentQuestion.getIsTooltipErrorInsideSupported():e.prototype.getIsTooltipErrorSupportedByParent.call(this)},Object.defineProperty(t.prototype,"showErrorsOutsideQuestion",{get:function(){return this.isDefaultV2Theme&&!(this.hasParent&&this.getIsTooltipErrorSupportedByParent())},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"showErrorsAboveQuestion",{get:function(){return this.showErrorsOutsideQuestion&&"top"===this.errorLocation},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"showErrorsBelowQuestion",{get:function(){return this.showErrorsOutsideQuestion&&"bottom"===this.errorLocation},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"cssError",{get:function(){return this.ensureElementCss(),this.getPropertyValue("cssError","")},enumerable:!1,configurable:!0}),t.prototype.setCssError=function(e){this.setPropertyValue("cssError",e)},t.prototype.getCssError=function(e){return(new f.CssClassBuilder).append(e.error.root).append(e.error.outsideQuestion,this.showErrorsBelowQuestion||this.showErrorsAboveQuestion).append(e.error.belowQuestion,this.showErrorsBelowQuestion).append(e.error.aboveQuestion,this.showErrorsAboveQuestion).append(e.error.tooltip,this.isErrorsModeTooltip).append(e.error.locationTop,this.showErrorOnTop).append(e.error.locationBottom,this.showErrorOnBottom).toString()},t.prototype.getRootCss=function(){return(new f.CssClassBuilder).append(this.cssRoot).append(this.cssClasses.disabled,this.isReadOnly).append(this.cssClasses.invisible,!this.isDesignMode&&this.areInvisibleElementsShowing&&!this.visible).toString()},t.prototype.updateElementCss=function(t){e.prototype.updateElementCss.call(this,t),t&&this.updateQuestionCss(!0),this.onIndentChanged()},t.prototype.updateQuestionCss=function(e){this.isLoadingFromJson||!this.survey||!0!==e&&!this.cssClassesValue||this.updateElementCssCore(this.cssClasses)},t.prototype.ensureElementCss=function(){this.cssClassesValue||this.updateQuestionCss(!0)},t.prototype.updateElementCssCore=function(e){this.setCssRoot(this.getCssRoot(e)),this.setCssHeader(this.getCssHeader(e)),this.setCssContent(this.getCssContent(e)),this.setCssTitle(this.getCssTitle(e)),this.setCssDescription(this.getCssDescription(e)),this.setCssError(this.getCssError(e))},t.prototype.updateCssClasses=function(e,t){if(t.question){var n=t[this.getCssType()],r=(new f.CssClassBuilder).append(e.title).append(t.question.titleRequired,this.isRequired);e.title=r.toString();var o=(new f.CssClassBuilder).append(e.root).append(n,this.isRequired&&!!t.question.required);if(null==n)e.root=o.toString();else if("string"==typeof n||n instanceof String)e.root=o.append(n.toString()).toString();else for(var i in e.root=o.toString(),n)e[i]=n[i]}},t.prototype.getCssType=function(){return this.getType()},Object.defineProperty(t.prototype,"renderCssRoot",{get:function(){return this.cssClasses.root||void 0},enumerable:!1,configurable:!0}),t.prototype.onIndentChanged=function(){this.paddingLeft=this.getIndentSize(this.indent),this.paddingRight=this.getIndentSize(this.rightIndent)},t.prototype.getIndentSize=function(e){return e<1||!this.getSurvey()||!this.cssClasses||!this.cssClasses.indent?"":e*this.cssClasses.indent+"px"},t.prototype.focus=function(e){if(void 0===e&&(e=!1),!this.isDesignMode&&this.isVisible&&this.survey){var t=this.page;t&&this.survey.activePage!==t?this.survey.focusQuestionByInstance(this,e):this.focuscore(e)}},t.prototype.focuscore=function(e){void 0===e&&(e=!1),this.survey&&(this.expandAllParents(this),this.survey.scrollElementToTop(this,this,null,this.id));var t=e?this.getFirstErrorInputElementId():this.getFirstInputElementId();s.SurveyElement.FocusElement(t)&&this.fireCallback(this.focusCallback)},t.prototype.expandAllParents=function(e){e&&(e.isCollapsed&&e.expand(),this.expandAllParents(e.parent),this.expandAllParents(e.parentQuestion))},t.prototype.focusIn=function(){this.survey&&this.survey.whenQuestionFocusIn(this)},t.prototype.fireCallback=function(e){e&&e()},t.prototype.getOthersMaxLength=function(){return this.survey&&this.survey.maxOthersLength>0?this.survey.maxOthersLength:null},t.prototype.onCreating=function(){},t.prototype.getFirstQuestionToFocus=function(e){return this.hasInput&&(!e||this.currentErrorCount>0)?this:null},t.prototype.getFirstInputElementId=function(){return this.inputId},t.prototype.getFirstErrorInputElementId=function(){return this.getFirstInputElementId()},t.prototype.getProcessedTextValue=function(e){var n=e.name.toLocaleLowerCase();e.isExists=-1!==Object.keys(t.TextPreprocessorValuesMap).indexOf(n)||void 0!==this[e.name],e.value=this[t.TextPreprocessorValuesMap[n]||e.name]},t.prototype.supportComment=function(){var e=this.getPropertyByName("showCommentArea");return!e||e.visible},t.prototype.supportOther=function(){return!1},Object.defineProperty(t.prototype,"isRequired",{get:function(){return this.getPropertyValue("isRequired")},set:function(e){this.setPropertyValue("isRequired",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"requiredIf",{get:function(){return this.getPropertyValue("requiredIf","")},set:function(e){this.setPropertyValue("requiredIf",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"showCommentArea",{get:function(){return this.getPropertyValue("showCommentArea",!1)},set:function(e){this.supportComment()&&this.setPropertyValue("showCommentArea",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hasComment",{get:function(){return this.showCommentArea},set:function(e){this.showCommentArea=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"id",{get:function(){return this.getPropertyValue("id")},set:function(e){this.setPropertyValue("id",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"ariaTitleId",{get:function(){return this.id+"_ariaTitle"},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"commentId",{get:function(){return this.id+"_comment"},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"ariaRole",{get:function(){return"textbox"},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"showOtherItem",{get:function(){return this.getPropertyValue("showOtherItem",!1)},set:function(e){this.supportOther()&&this.showOtherItem!=e&&(this.setPropertyValue("showOtherItem",e),this.hasOtherChanged())},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hasOther",{get:function(){return this.showOtherItem},set:function(e){this.showOtherItem=e},enumerable:!1,configurable:!0}),t.prototype.hasOtherChanged=function(){},Object.defineProperty(t.prototype,"requireUpdateCommentValue",{get:function(){return this.hasComment||this.hasOther},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isReadOnly",{get:function(){var e=!!this.parent&&this.parent.isReadOnly,t=!!this.parentQuestion&&this.parentQuestion.isReadOnly,n=!!this.survey&&this.survey.isDisplayMode;return this.readOnly||e||n||t},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isInputReadOnly",{get:function(){if(void 0!==this.forceIsInputReadOnly)return this.forceIsInputReadOnly;var e=d.settings.supportCreatorV2&&this.isDesignMode;return this.isReadOnly||e},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}),t.prototype.onReadOnlyChanged=function(){this.setPropertyValue("isInputReadOnly",this.isInputReadOnly),e.prototype.onReadOnlyChanged.call(this),this.updateQuestionCss()},Object.defineProperty(t.prototype,"enableIf",{get:function(){return this.getPropertyValue("enableIf","")},set:function(e){this.setPropertyValue("enableIf",e)},enumerable:!1,configurable:!0}),t.prototype.surveyChoiceItemVisibilityChange=function(){},t.prototype.runCondition=function(e,t){this.isDesignMode||(t||(t={}),t.question=this,this.runConditionCore(e,t),this.isValueChangedDirectly||(this.defaultValueRunner=this.getDefaultRunner(this.defaultValueRunner,this.defaultValueExpression),this.runDefaultValueExpression(this.defaultValueRunner,e,t)))},Object.defineProperty(t.prototype,"no",{get:function(){return this.getPropertyValue("no")},enumerable:!1,configurable:!0}),t.prototype.calcNo=function(){if(!this.hasTitle||this.hideNumber)return"";var e=o.Helpers.getNumberByIndex(this.visibleIndex,this.getStartIndex());return this.survey&&(e=this.survey.getUpdatedQuestionNo(this,e)),e},t.prototype.getStartIndex=function(){return this.parent?this.parent.getQuestionStartIndex():this.survey?this.survey.questionStartIndex:""},t.prototype.onSurveyLoad=function(){this.isCustomWidgetRequested=!1,this.fireCallback(this.surveyLoadCallback),this.updateValueWithDefaults(),this.isEmpty()&&this.initDataFromSurvey(),this.onIndentChanged()},t.prototype.onSetData=function(){e.prototype.onSetData.call(this),this.survey&&(this.initDataFromSurvey(),this.onSurveyValueChanged(this.value),this.updateValueWithDefaults(),this.onIndentChanged(),this.updateQuestionCss(),this.updateIsAnswered())},t.prototype.initDataFromSurvey=function(){if(this.data){var e=this.data.getValue(this.getValueName());o.Helpers.isValueEmpty(e)&&this.isLoadingFromJson||this.updateValueFromSurvey(e),this.initCommentFromSurvey()}},t.prototype.initCommentFromSurvey=function(){this.data&&this.requireUpdateCommentValue?this.updateCommentFromSurvey(this.data.getComment(this.getValueName())):this.updateCommentFromSurvey("")},t.prototype.runExpression=function(e){if(this.survey&&e)return this.survey.runExpression(e)},Object.defineProperty(t.prototype,"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,"valueForSurvey",{get:function(){return this.valueToDataCallback?this.valueToDataCallback(this.value):this.value},enumerable:!1,configurable:!0}),t.prototype.clearValue=function(){void 0!==this.value&&(this.value=void 0),this.comment&&(this.comment=void 0)},t.prototype.unbindValue=function(){this.clearValue()},t.prototype.createValueCopy=function(){return this.getUnbindValue(this.value)},t.prototype.initDataUI=function(){},t.prototype.getUnbindValue=function(e){return this.isValueSurveyElement(e)?e:o.Helpers.getUnbindValue(e)},t.prototype.isValueSurveyElement=function(e){return!!e&&(Array.isArray(e)?e.length>0&&this.isValueSurveyElement(e[0]):!!e.getType&&!!e.onPropertyChanged)},t.prototype.canClearValueAsInvisible=function(e){return!(("onHiddenContainer"!==e||this.isParentVisible)&&(this.isVisible&&this.isParentVisible||this.page&&this.page.isStartPage||this.survey&&this.valueName&&this.survey.hasVisibleQuestionByValueName(this.valueName)))},Object.defineProperty(t.prototype,"isParentVisible",{get:function(){if(this.parentQuestion&&!this.parentQuestion.isVisible)return!1;for(var e=this.parent;e;){if(!e.isVisible)return!1;e=e.parent}return!0},enumerable:!1,configurable:!0}),t.prototype.clearValueIfInvisible=function(e){void 0===e&&(e="onHidden");var t=this.getClearIfInvisible();"none"!==t&&("onHidden"===e&&"onComplete"===t||"onHiddenContainer"===e&&t!==e||this.clearValueIfInvisibleCore(e))},t.prototype.clearValueIfInvisibleCore=function(e){this.canClearValueAsInvisible(e)&&this.clearValue()},Object.defineProperty(t.prototype,"clearIfInvisible",{get:function(){return this.getPropertyValue("clearIfInvisible")},set:function(e){this.setPropertyValue("clearIfInvisible",e)},enumerable:!1,configurable:!0}),t.prototype.getClearIfInvisible=function(){var e=this.clearIfInvisible;return this.survey?this.survey.getQuestionClearIfInvisible(e):"default"!==e?e:"onComplete"},Object.defineProperty(t.prototype,"displayValue",{get:function(){return this.isLoadingFromJson?"":this.getDisplayValue(!0)},enumerable:!1,configurable:!0}),t.prototype.getDisplayValue=function(e,t){void 0===t&&(t=void 0);var n=this.calcDisplayValue(e,t);return this.survey&&(n=this.survey.getQuestionDisplayValue(this,n)),this.displayValueCallback?this.displayValueCallback(n):n},t.prototype.calcDisplayValue=function(e,t){if(void 0===t&&(t=void 0),this.customWidget){var n=this.customWidget.getDisplayValue(this,t);if(n)return n}return t=null==t?this.createValueCopy():t,this.isValueEmpty(t,!this.allowSpaceAsAnswer)?this.getDisplayValueEmpty():this.getDisplayValueCore(e,t)},t.prototype.getDisplayValueCore=function(e,t){return t},t.prototype.getDisplayValueEmpty=function(){return""},Object.defineProperty(t.prototype,"defaultValue",{get:function(){return this.getPropertyValue("defaultValue")},set:function(e){this.isValueExpression(e)?this.defaultValueExpression=e.substring(1):(this.setPropertyValue("defaultValue",this.convertDefaultValue(e)),this.updateValueWithDefaults())},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"defaultValueExpression",{get:function(){return this.getPropertyValue("defaultValueExpression")},set:function(e){this.setPropertyValue("defaultValueExpression",e),this.defaultValueRunner=void 0,this.updateValueWithDefaults()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"resizeStyle",{get:function(){return this.allowResizeComment?"both":"none"},enumerable:!1,configurable:!0}),t.prototype.getPlainData=function(e){var t=this;if(e||(e={includeEmpty:!0,includeQuestionTypes:!1}),e.includeEmpty||!this.isEmpty()){var n={name:this.name,title:this.locTitle.renderedHtml,value:this.value,displayValue:this.displayValue,isNode:!1,getString:function(e){return"object"==typeof e?JSON.stringify(e):e}};return!0===e.includeQuestionTypes&&(n.questionType=this.getType()),(e.calculations||[]).forEach((function(e){n[e.propertyName]=t[e.propertyName]})),this.hasComment&&(n.isNode=!0,n.data=[{name:0,isComment:!0,title:"Comment",value:d.settings.commentSuffix,displayValue:this.comment,getString:function(e){return"object"==typeof e?JSON.stringify(e):e},isNode:!1}]),n}},Object.defineProperty(t.prototype,"correctAnswer",{get:function(){return this.getPropertyValue("correctAnswer")},set:function(e){this.setPropertyValue("correctAnswer",this.convertDefaultValue(e))},enumerable:!1,configurable:!0}),t.prototype.convertDefaultValue=function(e){return e},Object.defineProperty(t.prototype,"quizQuestionCount",{get:function(){return this.isVisible&&this.hasInput&&!this.isValueEmpty(this.correctAnswer)?this.getQuizQuestionCount():0},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"correctAnswerCount",{get:function(){return this.isEmpty()||this.isValueEmpty(this.correctAnswer)?0:this.getCorrectAnswerCount()},enumerable:!1,configurable:!0}),t.prototype.getQuizQuestionCount=function(){return 1},t.prototype.getCorrectAnswerCount=function(){return this.checkIfAnswerCorrect()?1:0},t.prototype.checkIfAnswerCorrect=function(){var e=this.isTwoValueEquals(this.value,this.correctAnswer,!d.settings.comparator.caseSensitive,!0),t={result:e,correctAnswer:e?1:0};return this.survey&&this.survey.onCorrectQuestionAnswer(this,t),t.result},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,"isClearValueOnHidden",{get:function(){var e=this.getClearIfInvisible();return"none"!==e&&"onComplete"!==e&&("onHidden"===e||"onHiddenContainer"===e)},enumerable:!1,configurable:!0}),t.prototype.getQuestionFromArray=function(e,t){return null},t.prototype.getDefaultValue=function(){return this.defaultValue},t.prototype.isDefaultValueEmpty=function(){return!this.defaultValueExpression&&this.isValueEmpty(this.defaultValue,!this.allowSpaceAsAnswer)},t.prototype.getDefaultRunner=function(e,t){return!e&&t&&(e=new c.ExpressionRunner(t)),e&&(e.expression=t),e},t.prototype.setDefaultValue=function(){var e=this;this.defaultValueRunner=this.getDefaultRunner(this.defaultValueRunner,this.defaultValueExpression),this.setValueAndRunExpression(this.defaultValueRunner,this.getUnbindValue(this.defaultValue),(function(t){e.isTwoValueEquals(e.value,t)||(e.value=t)}))},t.prototype.isValueExpression=function(e){return!!e&&"string"==typeof e&&e.length>0&&"="==e[0]},t.prototype.setValueAndRunExpression=function(e,t,n,r,o){var i=this;void 0===r&&(r=null),void 0===o&&(o=null);var s=function(e){i.runExpressionSetValue(e,n)};this.runDefaultValueExpression(e,r,o,s)||s(t)},t.prototype.convertFuncValuetoQuestionValue=function(e){return o.Helpers.convertValToQuestionVal(e)},t.prototype.runExpressionSetValue=function(e,t){t(this.convertFuncValuetoQuestionValue(e))},t.prototype.runDefaultValueExpression=function(e,t,n,r){var o=this;return void 0===t&&(t=null),void 0===n&&(n=null),!(!e||!this.data||(r||(r=function(e){o.runExpressionSetValue(e,(function(e){o.isTwoValueEquals(o.value,e)||(o.value=e)}))}),t||(t=this.data.getFilteredValues()),n||(n=this.data.getFilteredProperties()),e&&e.canRun&&(e.onRunComplete=function(e){null==e&&(e=o.defaultValue),o.isChangingViaDefaultValue=!0,r(e),o.isChangingViaDefaultValue=!1},e.run(t,n)),0))},Object.defineProperty(t.prototype,"comment",{get:function(){return this.getQuestionComment()},set:function(e){if(e){var t=e.toString().trim();t!==e&&(e=t)===this.comment&&this.setPropertyValueDirectly("comment",e)}this.comment!=e&&(this.setQuestionComment(e),this.updateCommentElements())},enumerable:!1,configurable:!0}),t.prototype.getCommentAreaCss=function(e){return void 0===e&&(e=!1),(new f.CssClassBuilder).append("form-group",e).append(this.cssClasses.formGroup,!e).append(this.cssClasses.commentArea).toString()},t.prototype.getQuestionComment=function(){return this.questionComment},t.prototype.setQuestionComment=function(e){this.setNewComment(e)},t.prototype.isEmpty=function(){return this.isValueEmpty(this.value,!this.allowSpaceAsAnswer)},Object.defineProperty(t.prototype,"isAnswered",{get:function(){return this.getPropertyValue("isAnswered")},set:function(e){this.setPropertyValue("isAnswered",e)},enumerable:!1,configurable:!0}),t.prototype.updateIsAnswered=function(){var e=this.isAnswered;this.setPropertyValue("isAnswered",this.getIsAnswered()),e!==this.isAnswered&&this.updateQuestionCss()},t.prototype.getIsAnswered=function(){return!this.isEmpty()},Object.defineProperty(t.prototype,"validators",{get:function(){return this.getPropertyValue("validators")},set:function(e){this.setPropertyValue("validators",e)},enumerable:!1,configurable:!0}),t.prototype.getValidators=function(){return this.validators},t.prototype.getSupportedValidators=function(){for(var e=[],t=this.getType();t;){var n=d.settings.supportedValidators[t];if(n)for(var r=n.length-1;r>=0;r--)e.splice(0,0,n[r]);t=i.Serializer.findClass(t).parentName}return e},t.prototype.addConditionObjectsByContext=function(e,t){e.push({name:this.getValueName(),text:this.processedTitle,question:this})},t.prototype.getNestedQuestions=function(e){void 0===e&&(e=!1);var t=[];return this.collectNestedQuestions(t,e),1===t.length&&t[0]===this?[]:t},t.prototype.collectNestedQuestions=function(e,t){void 0===t&&(t=!1),t&&!this.isVisible||this.collectNestedQuestionsCore(e,t)},t.prototype.collectNestedQuestionsCore=function(e,t){e.push(this)},t.prototype.getConditionJson=function(e,t){void 0===e&&(e=null),void 0===t&&(t=null);var n=(new i.JsonObject).toJsonObject(this);return n.type=this.getType(),n},t.prototype.hasErrors=function(e,t){void 0===e&&(e=!0),void 0===t&&(t=null);var n=this.errors.length>0,r=this.checkForErrors(!!t&&!0===t.isOnValueChanged);return e&&(this.survey&&this.survey.beforeSettingQuestionErrors(this,r),this.errors=r),this.updateContainsErrors(),n!=r.length>0&&this.updateQuestionCss(),this.isCollapsed&&t&&e&&r.length>0&&this.expand(),r.length>0},t.prototype.validate=function(e,t){return void 0===e&&(e=!0),void 0===t&&(t=null),t&&t.isOnValueChanged&&this.parent&&this.parent.validateContainerOnly(),!this.hasErrors(e,t)},Object.defineProperty(t.prototype,"currentErrorCount",{get:function(){return this.errors.length},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"requiredText",{get:function(){return null!=this.survey&&this.isRequired?this.survey.requiredText:""},enumerable:!1,configurable:!0}),t.prototype.addError=function(e){if(e){var t;t="string"==typeof e||e instanceof String?new a.CustomError(e,this.survey):e,this.errors.push(t)}},t.prototype.removeError=function(e){var t=this.errors,n=t.indexOf(e);-1!==n&&t.splice(n,1)},t.prototype.checkForErrors=function(e){var t=new Array;return this.isVisible&&this.canCollectErrors()&&this.collectErrors(t,e),t},t.prototype.canCollectErrors=function(){return!this.isReadOnly},t.prototype.collectErrors=function(e,t){if(this.onCheckForErrors(e,t),!(e.length>0)&&this.canRunValidators(t)){var n=this.runValidators();if(n.length>0){e.length=0;for(var r=0;r<n.length;r++)e.push(n[r])}if(this.survey&&0==e.length){var o=this.fireSurveyValidation();o&&e.push(o)}}},t.prototype.canRunValidators=function(e){return!0},t.prototype.fireSurveyValidation=function(){return this.validateValueCallback?this.validateValueCallback():this.survey?this.survey.validateQuestion(this):null},t.prototype.onCheckForErrors=function(e,t){var n=this;if((!t||this.isOldAnswered)&&this.hasRequiredError()){var r=new a.AnswerRequiredError(this.requiredErrorText,this);r.onUpdateErrorTextCallback=function(e){e.text=n.requiredErrorText},e.push(r)}},t.prototype.hasRequiredError=function(){return this.isRequired&&this.isEmpty()},Object.defineProperty(t.prototype,"isRunningValidators",{get:function(){return this.getIsRunningValidators()},enumerable:!1,configurable:!0}),t.prototype.getIsRunningValidators=function(){return this.isRunningValidatorsValue},t.prototype.runValidators=function(){var e=this;return this.validatorRunner&&(this.validatorRunner.onAsyncCompleted=null),this.validatorRunner=new l.ValidatorRunner,this.isRunningValidatorsValue=!0,this.validatorRunner.onAsyncCompleted=function(t){e.doOnAsyncCompleted(t)},this.validatorRunner.run(this)},t.prototype.doOnAsyncCompleted=function(e){for(var t=0;t<e.length;t++)this.errors.push(e[t]);this.isRunningValidatorsValue=!1,this.raiseOnCompletedAsyncValidators()},t.prototype.raiseOnCompletedAsyncValidators=function(){this.onCompletedAsyncValidators&&!this.isRunningValidators&&(this.onCompletedAsyncValidators(this.getAllErrors().length>0),this.onCompletedAsyncValidators=null)},t.prototype.setNewValue=function(e){this.isNewValueEqualsToValue(e)||(this.isValueEmpty(e,!this.allowSpaceAsAnswer)||this.isNewValueCorrect(e)?(this.isOldAnswered=this.isAnswered,this.setNewValueInData(e),this.allowNotifyValueChanged&&this.onValueChanged(),this.isAnswered!==this.isOldAnswered&&this.updateQuestionCss(),this.isOldAnswered=void 0):m.ConsoleWarnings.inCorrectQuestionValue(this.name,e))},t.prototype.isNewValueCorrect=function(e){return!0},t.prototype.isNewValueEqualsToValue=function(e){var t=this.value;return!(!this.isTwoValueEquals(e,t,!1,!1)||e===t&&t&&(Array.isArray(t)||"object"==typeof t))},t.prototype.isTextValue=function(){return!1},Object.defineProperty(t.prototype,"isSurveyInputTextUpdate",{get:function(){return!!this.survey&&this.survey.isUpdateValueTextOnTyping},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"requireStrictCompare",{get:function(){return!1},enumerable:!1,configurable:!0}),t.prototype.getDataLocNotification=function(){return!!this.isInputTextUpdate&&"text"},Object.defineProperty(t.prototype,"isInputTextUpdate",{get:function(){return this.isSurveyInputTextUpdate&&this.isTextValue()},enumerable:!1,configurable:!0}),t.prototype.setNewValueInData=function(e){e=this.valueToData(e),this.isValueChangedInSurvey||this.setValueCore(e)},t.prototype.getValueCore=function(){return this.questionValue},t.prototype.setValueCore=function(e){this.setQuestionValue(e),null!=this.data&&this.canSetValueToSurvey()&&(e=this.valueForSurvey,this.data.setValue(this.getValueName(),e,this.getDataLocNotification(),this.allowNotifyValueChanged)),this.isMouseDown=!1},t.prototype.canSetValueToSurvey=function(){return!0},t.prototype.valueFromData=function(e){return e},t.prototype.valueToData=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,null!=this.data&&this.data.setComment(this.getValueName(),e,!!this.isSurveyInputTextUpdate&&"text"))},t.prototype.getValidName=function(e){return C(e)},t.prototype.updateValueFromSurvey=function(e){e=this.getUnbindValue(e),this.valueFromDataCallback&&(e=this.valueFromDataCallback(e)),this.setQuestionValue(this.valueFromData(e)),this.updateIsAnswered()},t.prototype.updateCommentFromSurvey=function(e){this.questionComment=e},t.prototype.onChangeQuestionValue=function(e){},t.prototype.setValueChangedDirectly=function(){this.isValueChangedDirectly=!0},t.prototype.setQuestionValue=function(e,t){void 0===t&&(t=!0);var n=this.isTwoValueEquals(this.questionValue,e);n||this.isChangingViaDefaultValue||this.setValueChangedDirectly(),this.questionValue=e,n||this.onChangeQuestionValue(e),!n&&this.allowNotifyValueChanged&&this.fireCallback(this.valueChangedCallback),t&&this.updateIsAnswered()},t.prototype.onSurveyValueChanged=function(e){},t.prototype.setVisibleIndex=function(e){return(!this.isVisible||!this.hasTitle&&!d.settings.numbering.includeQuestionsWithHiddenTitle||this.hideNumber&&!d.settings.numbering.includeQuestionsWithHiddenNumber)&&(e=-1),this.setPropertyValue("visibleIndex",e),this.setPropertyValue("no",this.calcNo()),e<0?0:1},t.prototype.removeElement=function(e){return!1},t.prototype.supportGoNextPageAutomatic=function(){return!1},t.prototype.supportGoNextPageError=function(){return!0},t.prototype.clearIncorrectValues=function(){},t.prototype.clearOnDeletingContainer=function(){},t.prototype.clearErrors=function(){this.errors=[]},t.prototype.clearUnusedValues=function(){},t.prototype.onAnyValueChanged=function(e){},t.prototype.checkBindings=function(e,t){if(!this.bindings.isEmpty()&&this.data)for(var n=this.bindings.getPropertiesByValueName(e),r=0;r<n.length;r++){var i=n[r];this.isValueEmpty(t)&&o.Helpers.isNumber(this[i])&&(t=0),this[i]=t}},t.prototype.getComponentName=function(){return h.RendererFactory.Instance.getRendererByQuestion(this)},t.prototype.isDefaultRendering=function(){return!!this.customWidget||"default"===this.renderAs||"default"===this.getComponentName()},t.prototype.getErrorCustomText=function(e,t){return this.survey?this.survey.getSurveyErrorCustomText(this,e,t):e},t.prototype.getValidatorTitle=function(){return null},Object.defineProperty(t.prototype,"validatedValue",{get:function(){return this.value},set:function(e){this.value=e},enumerable:!1,configurable:!0}),t.prototype.getAllValues=function(){return this.data?this.data.getAllValues():null},t.prototype.processPopupVisiblilityChanged=function(e,t){this.survey.processPopupVisiblityChanged(this,e,t)},t.prototype.transformToMobileView=function(){},t.prototype.transformToDesktopView=function(){},t.prototype.needResponsiveWidth=function(){return!1},t.prototype.supportResponsiveness=function(){return!1},t.prototype.needResponsiveness=function(){return this.supportResponsiveness()&&this.isDefaultV2Theme&&!this.isDesignMode},t.prototype.checkForResponsiveness=function(e){var t=this;this.needResponsiveness()&&(this.isCollapsed?this.registerPropertyChangedHandlers(["state"],(function(){t.isExpanded&&(t.initResponsiveness(e),t.unregisterPropertyChangedHandlers(["state"],"for-responsiveness"))}),"for-responsiveness"):this.initResponsiveness(e))},t.prototype.getObservedElementSelector=function(){return".sd-scrollable-container"},t.prototype.onMobileChanged=function(){this.onMobileChangedCallback&&this.onMobileChangedCallback()},t.prototype.triggerResponsiveness=function(e){void 0===e&&(e=!0),this.triggerResponsivenessCallback&&this.triggerResponsivenessCallback(e)},t.prototype.initResponsiveness=function(e){var t=this;if(this.destroyResizeObserver(),e&&this.isDefaultRendering()){var n=this.getObservedElementSelector();if(!n)return;if(!e.querySelector(n))return;var r=!1,o=void 0;this.triggerResponsivenessCallback=function(i){i&&(o=void 0,t.renderAs="default",r=!1);var s=function(){var i=e.querySelector(n);!o&&t.isDefaultRendering()&&(o=i.scrollWidth),r=!(r||!Object(g.isContainerVisible)(i))&&t.processResponsiveness(o,Object(g.getElementWidth)(i))};i?setTimeout(s,1):s()},this.resizeObserver=new ResizeObserver((function(){t.triggerResponsiveness(!1)})),this.onMobileChangedCallback=function(){setTimeout((function(){var r=e.querySelector(n);t.processResponsiveness(o,Object(g.getElementWidth)(r))}),0)},this.resizeObserver.observe(e)}},t.prototype.getCompactRenderAs=function(){return"default"},t.prototype.getDesktopRenderAs=function(){return"default"},t.prototype.processResponsiveness=function(e,t){if(t=Math.round(t),Math.abs(e-t)>2){var n=this.renderAs;return this.renderAs=e>t?this.getCompactRenderAs():this.getDesktopRenderAs(),n!==this.renderAs}return!1},t.prototype.destroyResizeObserver=function(){this.resizeObserver&&(this.resizeObserver.disconnect(),this.resizeObserver=void 0,this.onMobileChangedCallback=void 0,this.triggerResponsivenessCallback=void 0,this.renderAs=this.getDesktopRenderAs())},t.prototype.dispose=function(){e.prototype.dispose.call(this);for(var t=0;t<this.dependedQuestions.length;t++)this.dependedQuestions[t].resetDependedQuestion();this.destroyResizeObserver()},t.TextPreprocessorValuesMap={title:"processedTitle",require:"requiredText"},t.questionCounter=100,v([Object(i.property)({defaultValue:!1,onSet:function(e,t){t.setIsMobile(e)}})],t.prototype,"isMobile",void 0),v([Object(i.property)()],t.prototype,"forceIsInputReadOnly",void 0),v([Object(i.property)({localizable:!0})],t.prototype,"commentPlaceholder",void 0),v([Object(i.property)()],t.prototype,"renderAs",void 0),v([Object(i.property)({defaultValue:!1})],t.prototype,"inMatrixMode",void 0),t}(s.SurveyElement);function C(e){if(!e)return e;for(e=e.trim().replace(/[\{\}]+/g,"");e&&e[0]===d.settings.expressionDisableConversionChar;)e=e.substring(1);return e}i.Serializer.addClass("question",[{name:"!name",onSettingValue:function(e,t){return C(t)}},{name:"state",default:"default",choices:["default","collapsed","expanded"]},{name:"visible:switch",default:!0,overridingProperty:"visibleIf"},{name:"useDisplayValuesInDynamicTexts:boolean",alternativeName:"useDisplayValuesInTitle",default:!0,layout:"row"},"visibleIf:condition",{name:"width"},{name:"minWidth",defaultFunc:function(){return d.settings.minWidth}},{name:"maxWidth",defaultFunc:function(){return d.settings.maxWidth}},{name:"startWithNewLine:boolean",default:!0,layout:"row"},{name:"indent:number",default:0,choices:[0,1,2,3],layout:"row"},{name:"page",isSerializable:!1,visibleIf:function(e){var t=e?e.survey:null;return!t||!t.pages||t.pages.length>1},choices:function(e){var t=e?e.survey:null;return t?t.pages.map((function(e){return{value:e.name,text:e.title}})):[]}},{name:"title:text",serializationProperty:"locTitle",layout:"row",dependsOn:"name",onPropertyEditorUpdate:function(e,t){e&&t&&(t.placeholder=e.name)}},{name:"titleLocation",default:"default",choices:["default","top","bottom","left","hidden"],layout:"row"},{name:"description:text",serializationProperty:"locDescription",layout:"row"},{name:"descriptionLocation",default:"default",choices:["default","underInput","underTitle"]},{name:"hideNumber:boolean",dependsOn:"titleLocation",visibleIf:function(e){if(!e)return!0;if("hidden"===e.titleLocation)return!1;var t=e?e.parent:null;if(t&&"off"===t.showQuestionNumbers)return!1;var n=e?e.survey:null;return!n||"off"!==n.showQuestionNumbers||!!t&&"onpanel"===t.showQuestionNumbers}},{name:"valueName",onSettingValue:function(e,t){return C(t)}},"enableIf:condition","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:"readOnly:switch",overridingProperty:"enableIf"},{name:"validators:validators",baseClassName:"surveyvalidator",classNamePart:"validator"},{name:"bindings:bindings",serializationProperty:"bindings",visibleIf:function(e){return e.bindings.getNames().length>0}},{name:"renderAs",default:"default",visible:!1},{name:"showCommentArea",visible:!1,default:!1,alternativeName:"hasComment",category:"general"},{name:"commentText",dependsOn:"showCommentArea",visibleIf:function(e){return e.showCommentArea},serializationProperty:"locCommentText",layout:"row"},{name:"commentPlaceholder",alternativeName:"commentPlaceHolder",serializationProperty:"locCommentPlaceholder",dependsOn:"showCommentArea",visibleIf:function(e){return e.hasComment}}]),i.Serializer.addAlterNativeClassName("question","questionbase")},"./src/questionCustomWidgets.ts":function(e,t,n){"use strict";n.r(t),n.d(t,"QuestionCustomWidget",(function(){return o})),n.d(t,"CustomWidgetCollection",(function(){return i}));var r=n("./src/base.ts"),o=function(){function e(e,t){this.name=e,this.widgetJson=t,this.htmlTemplate=t.htmlTemplate?t.htmlTemplate:""}return e.prototype.afterRender=function(e,t){var n=this;this.widgetJson.afterRender&&(e.localeChangedCallback=function(){n.widgetJson.willUnmount&&n.widgetJson.willUnmount(e,t),n.widgetJson.afterRender(e,t)},this.widgetJson.afterRender(e,t))},e.prototype.willUnmount=function(e,t){this.widgetJson.willUnmount&&this.widgetJson.willUnmount(e,t)},e.prototype.getDisplayValue=function(e,t){return void 0===t&&(t=void 0),this.widgetJson.getDisplayValue?this.widgetJson.getDisplayValue(e,t):null},e.prototype.isFit=function(e){return!(!this.isLibraryLoaded()||!this.widgetJson.isFit)&&this.widgetJson.isFit(e)},Object.defineProperty(e.prototype,"canShowInToolbox",{get:function(){return!1!==this.widgetJson.showInToolbox&&"customtype"==i.Instance.getActivatedBy(this.name)&&(!this.widgetJson.widgetIsLoaded||this.widgetJson.widgetIsLoaded())},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"showInToolbox",{get:function(){return!1!==this.widgetJson.showInToolbox},set:function(e){this.widgetJson.showInToolbox=e},enumerable:!1,configurable:!0}),e.prototype.init=function(){this.widgetJson.init&&this.widgetJson.init()},e.prototype.activatedByChanged=function(e){this.isLibraryLoaded()&&this.widgetJson.activatedByChanged&&this.widgetJson.activatedByChanged(e)},e.prototype.isLibraryLoaded=function(){return!this.widgetJson.widgetIsLoaded||1==this.widgetJson.widgetIsLoaded()},Object.defineProperty(e.prototype,"isDefaultRender",{get:function(){return this.widgetJson.isDefaultRender},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"pdfQuestionType",{get:function(){return this.widgetJson.pdfQuestionType},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"pdfRender",{get:function(){return this.widgetJson.pdfRender},enumerable:!1,configurable:!0}),e}(),i=function(){function e(){this.widgetsValues=[],this.widgetsActivatedBy={},this.onCustomWidgetAdded=new r.Event}return Object.defineProperty(e.prototype,"widgets",{get:function(){return this.widgetsValues},enumerable:!1,configurable:!0}),e.prototype.add=function(e,t){void 0===t&&(t="property"),this.addCustomWidget(e,t)},e.prototype.addCustomWidget=function(e,t){void 0===t&&(t="property");var n=e.name;n||(n="widget_"+this.widgets.length+1);var r=new o(n,e);return this.widgetsValues.push(r),r.init(),this.widgetsActivatedBy[n]=t,r.activatedByChanged(t),this.onCustomWidgetAdded.fire(r,null),r},e.prototype.getActivatedBy=function(e){return this.widgetsActivatedBy[e]||"property"},e.prototype.setActivatedBy=function(e,t){if(e&&t){var n=this.getCustomWidgetByName(e);n&&(this.widgetsActivatedBy[e]=t,n.activatedByChanged(t))}},e.prototype.clear=function(){this.widgetsValues=[]},e.prototype.getCustomWidgetByName=function(e){for(var t=0;t<this.widgets.length;t++)if(this.widgets[t].name==e)return this.widgets[t];return null},e.prototype.getCustomWidget=function(e){for(var t=0;t<this.widgetsValues.length;t++)if(this.widgetsValues[t].isFit(e))return this.widgetsValues[t];return null},e.Instance=new e,e}()},"./src/question_baseselect.ts":function(e,t,n){"use strict";n.r(t),n.d(t,"QuestionSelectBase",(function(){return v})),n.d(t,"QuestionCheckboxBase",(function(){return b}));var r,o=n("./src/jsonobject.ts"),i=n("./src/survey.ts"),s=n("./src/question.ts"),a=n("./src/itemvalue.ts"),l=n("./src/surveyStrings.ts"),u=n("./src/error.ts"),c=n("./src/choicesRestful.ts"),p=n("./src/conditions.ts"),d=n("./src/helpers.ts"),h=n("./src/settings.ts"),f=n("./src/utils/cssClassBuilder.ts"),g=n("./src/utils/utils.ts"),m=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),y=function(e,t,n,r){var o,i=arguments.length,s=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,r);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(i<3?o(s):i>3?o(t,n,s):o(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},v=function(e){function t(t){var n=e.call(this,t)||this;n.otherItemValue=new a.ItemValue("other"),n.noneItemValue=new a.ItemValue(h.settings.noneItemValue),n.isSettingDefaultValue=!1,n.isSettingComment=!1,n.isRunningChoices=!1,n.isFirstLoadChoicesFromUrl=!0,n.isUpdatingChoicesDependedQuestions=!1,n.prevIsOtherSelected=!1;var r=n.createLocalizableString("noneText",n.noneItemValue,!0,"noneItemText");n.noneItemValue.locOwner=n,n.noneItemValue.setLocText(r),n.createItemValues("choices"),n.registerPropertyChangedHandlers(["choices"],(function(){n.filterItems()||n.onVisibleChoicesChanged()})),n.registerPropertyChangedHandlers(["choicesFromQuestion","choicesFromQuestionMode","choiceValuesFromQuestion","choiceTextsFromQuestion","showNoneItem"],(function(){n.onVisibleChoicesChanged()})),n.registerPropertyChangedHandlers(["hideIfChoicesEmpty"],(function(){n.onVisibleChanged()})),n.createNewArray("visibleChoices"),n.setNewRestfulProperty();var o=n.createLocalizableString("otherText",n.otherItemValue,!0,"otherItemText");return n.createLocalizableString("otherErrorText",n,!0,"otherRequiredError"),n.otherItemValue.locOwner=n,n.otherItemValue.setLocText(o),n.choicesByUrl.createItemValue=function(e){return n.createItemValue(e)},n.choicesByUrl.beforeSendRequestCallback=function(){n.onBeforeSendRequest()},n.choicesByUrl.getResultCallback=function(e){n.onLoadChoicesFromUrl(e)},n.choicesByUrl.updateResultCallback=function(e,t){return n.survey?n.survey.updateChoicesFromServer(n,e,t):e},n}return m(t,e),Object.defineProperty(t.prototype,"waitingChoicesByURL",{get:function(){return!this.isChoicesLoaded&&!this.choicesByUrl.isEmpty},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"waitingAcyncOperations",{get:function(){return this.waitingChoicesByURL||this.waitingGetChoiceDisplayValueResponse},enumerable:!1,configurable:!0}),t.prototype.getType=function(){return"selectbase"},t.prototype.dispose=function(){e.prototype.dispose.call(this);var t=this.getQuestionWithChoices();t&&t.removeDependedQuestion(this)},t.prototype.resetDependedQuestion=function(){this.choicesFromQuestion=""},Object.defineProperty(t.prototype,"otherId",{get:function(){return this.id+"_other"},enumerable:!1,configurable:!0}),t.prototype.getCommentElementsId=function(){return[this.commentId,this.otherId]},t.prototype.getItemValueType=function(){return"itemvalue"},t.prototype.createItemValue=function(e,t){var n=o.Serializer.createClass(this.getItemValueType(),e);return n.locOwner=this,t&&(n.text=t),n},Object.defineProperty(t.prototype,"isUsingCarryForward",{get:function(){return!!this.carryForwardQuestionType},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"carryForwardQuestionType",{get:function(){return this.getPropertyValue("carryForwardQuestionType")},enumerable:!1,configurable:!0}),t.prototype.setCarryForwardQuestionType=function(e,t){var n=e?"select":t?"array":void 0;this.setPropertyValue("carryForwardQuestionType",n)},t.prototype.supportGoNextPageError=function(){return!this.isOtherSelected||!!this.otherValue},t.prototype.isLayoutTypeSupported=function(e){return!0},t.prototype.localeChanged=function(){e.prototype.localeChanged.call(this),"none"!==this.choicesOrder&&this.updateVisibleChoices()},t.prototype.locStrsChanged=function(){e.prototype.locStrsChanged.call(this),this.choicesFromUrl&&(a.ItemValue.locStrsChanged(this.choicesFromUrl),a.ItemValue.locStrsChanged(this.visibleChoices))},Object.defineProperty(t.prototype,"otherValue",{get:function(){return this.showCommentArea?this.otherValueCore:this.comment},set:function(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.hasNone&&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,"choicesVisibleIf",{get:function(){return this.getPropertyValue("choicesVisibleIf","")},set:function(e){this.setPropertyValue("choicesVisibleIf",e),this.filterItems()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"choicesEnableIf",{get:function(){return this.getPropertyValue("choicesEnableIf","")},set:function(e){this.setPropertyValue("choicesEnableIf",e),this.filterItems()},enumerable:!1,configurable:!0}),t.prototype.surveyChoiceItemVisibilityChange=function(){this.filterItems()},t.prototype.runCondition=function(t,n){e.prototype.runCondition.call(this,t,n),this.isUsingCarryForward||(this.runItemsEnableCondition(t,n),this.runItemsCondition(t,n))},t.prototype.isTextValue=function(){return!0},t.prototype.setDefaultValue=function(){this.isSettingDefaultValue=!this.isValueEmpty(this.defaultValue)&&this.hasUnknownValue(this.defaultValue),this.prevOtherValue=void 0,e.prototype.setDefaultValue.call(this),this.isSettingDefaultValue=!1},t.prototype.getIsMultipleValue=function(){return!1},t.prototype.convertDefaultValue=function(e){if(null==e||null==e)return e;if(this.getIsMultipleValue()){if(!Array.isArray(e))return[e]}else if(Array.isArray(e)&&e.length>0)return e[0];return e},t.prototype.filterItems=function(){if(this.isLoadingFromJson||!this.data||this.areInvisibleElementsShowing)return!1;var e=this.getDataFilteredValues(),t=this.getDataFilteredProperties();return this.runItemsEnableCondition(e,t),this.runItemsCondition(e,t)},t.prototype.runItemsCondition=function(e,t){this.setConditionalChoicesRunner();var n=this.runConditionsForItems(e,t);return this.filteredChoicesValue&&this.filteredChoicesValue.length===this.activeChoices.length&&(this.filteredChoicesValue=void 0),n&&(this.onVisibleChoicesChanged(),this.clearIncorrectValues()),n},t.prototype.runItemsEnableCondition=function(e,t){var n=this;this.setConditionalEnableChoicesRunner(),a.ItemValue.runEnabledConditionsForItems(this.activeChoices,this.conditionChoicesEnableIfRunner,e,t,(function(e,t){return t&&n.onEnableItemCallBack(e)}))&&this.clearDisabledValues(),this.onAfterRunItemsEnableCondition()},t.prototype.onAfterRunItemsEnableCondition=function(){},t.prototype.onEnableItemCallBack=function(e){return!0},t.prototype.onSelectedItemValuesChangedHandler=function(e){var t;null===(t=this.survey)||void 0===t||t.loadedChoicesFromServer(this)},t.prototype.getItemIfChoicesNotContainThisValue=function(e,t){return this.waitingChoicesByURL?this.createItemValue(e,t):null},t.prototype.getSingleSelectedItem=function(){var e=this.selectedItemValues;if(this.isEmpty())return null;var t=a.ItemValue.getItemByValue(this.visibleChoices,this.value);return this.onGetSingleSelectedItem(t),t||e&&this.value==e.id||this.updateSelectedItemValues(),t||e||(this.isOtherSelected?this.otherItem:this.getItemIfChoicesNotContainThisValue(this.value))},t.prototype.onGetSingleSelectedItem=function(e){},t.prototype.getMultipleSelectedItems=function(){return[]},t.prototype.setConditionalChoicesRunner=function(){this.choicesVisibleIf?(this.conditionChoicesVisibleIfRunner||(this.conditionChoicesVisibleIfRunner=new p.ConditionRunner(this.choicesVisibleIf)),this.conditionChoicesVisibleIfRunner.expression=this.choicesVisibleIf):this.conditionChoicesVisibleIfRunner=null},t.prototype.setConditionalEnableChoicesRunner=function(){this.choicesEnableIf?(this.conditionChoicesEnableIfRunner||(this.conditionChoicesEnableIfRunner=new p.ConditionRunner(this.choicesEnableIf)),this.conditionChoicesEnableIfRunner.expression=this.choicesEnableIf):this.conditionChoicesEnableIfRunner=null},t.prototype.canSurveyChangeItemVisibility=function(){return!!this.survey&&this.survey.canChangeChoiceItemsVisibility()},t.prototype.changeItemVisisbility=function(){var e=this;return this.canSurveyChangeItemVisibility()?function(t,n){return e.survey.getChoiceItemVisibility(e,t,n)}:null},t.prototype.runConditionsForItems=function(e,t){this.filteredChoicesValue=[];var n=this.changeItemVisisbility();return a.ItemValue.runConditionsForItems(this.activeChoices,this.getFilteredChoices(),this.areInvisibleElementsShowing?null:this.conditionChoicesVisibleIfRunner,e,t,!this.survey||!this.survey.areInvisibleElementsShowing,(function(e,t){return n?n(e,t):t}))},t.prototype.getHasOther=function(e){return this.getIsItemValue(e,this.otherItem)},t.prototype.getIsItemValue=function(e,t){return e===t.value},Object.defineProperty(t.prototype,"validatedValue",{get:function(){return this.rendredValueToDataCore(this.value)},enumerable:!1,configurable:!0}),t.prototype.createRestful=function(){return new c.ChoicesRestful},t.prototype.setNewRestfulProperty=function(){this.setPropertyValue("choicesByUrl",this.createRestful()),this.choicesByUrl.owner=this,this.choicesByUrl.loadingOwner=this},Object.defineProperty(t.prototype,"autoOtherMode",{get:function(){return this.getPropertyValue("autoOtherMode")},set:function(e){this.setPropertyValue("autoOtherMode",e)},enumerable:!1,configurable:!0}),t.prototype.getQuestionComment=function(){return this.showCommentArea?e.prototype.getQuestionComment.call(this):this.otherValueCore?this.otherValueCore:this.hasComment||this.getStoreOthersAsComment()?e.prototype.getQuestionComment.call(this):this.otherValueCore},t.prototype.selectOtherValueFromComment=function(e){this.value=e?this.otherItem.value:void 0},t.prototype.setQuestionComment=function(t){this.showCommentArea?e.prototype.setQuestionComment.call(this,t):(this.onUpdateCommentOnAutoOtherMode(t),this.getStoreOthersAsComment()?e.prototype.setQuestionComment.call(this,t):this.setOtherValueInternally(t),this.updateChoicesDependedQuestions())},t.prototype.onUpdateCommentOnAutoOtherMode=function(e){if(this.autoOtherMode){this.prevOtherValue=void 0;var t=this.isOtherSelected;(!t&&e||t&&!e)&&this.selectOtherValueFromComment(!!e)}},t.prototype.setOtherValueInternally=function(e){this.isSettingComment||e==this.otherValueCore||(this.isSettingComment=!0,this.otherValueCore=e,this.isOtherSelected&&!this.isRenderedValueSetting&&(this.value=this.rendredValueToData(this.renderedValue)),this.isSettingComment=!1)},t.prototype.clearValue=function(){e.prototype.clearValue.call(this),this.prevOtherValue=void 0},t.prototype.updateCommentFromSurvey=function(t){e.prototype.updateCommentFromSurvey.call(this,t),this.prevOtherValue=void 0},Object.defineProperty(t.prototype,"renderedValue",{get:function(){return this.getPropertyValue("renderedValue",null)},set:function(e){this.setPropertyValue("renderedValue",e),e=this.rendredValueToData(e),this.isTwoValueEquals(e,this.value)||(this.value=e)},enumerable:!1,configurable:!0}),t.prototype.setQuestionValue=function(t,n,r){if(void 0===n&&(n=!0),void 0===r&&(r=!0),!this.isLoadingFromJson&&!this.isTwoValueEquals(this.value,t)&&(e.prototype.setQuestionValue.call(this,t,n),this.setPropertyValue("renderedValue",this.rendredValueFromData(t)),this.updateChoicesDependedQuestions(),!this.hasComment&&r)){var o=this.isOtherSelected;if(o&&this.prevOtherValue){var i=this.prevOtherValue;this.prevOtherValue=void 0,this.otherValue=i}!o&&this.otherValue&&(this.getStoreOthersAsComment()&&!this.autoOtherMode&&(this.prevOtherValue=this.otherValue),this.otherValue="")}},t.prototype.setNewValue=function(t){t=this.valueFromData(t),(this.choicesByUrl.isRunning||this.choicesByUrl.isWaitingForParameters)&&this.isValueEmpty(t)||(this.cachedValueForUrlRequests=t),e.prototype.setNewValue.call(this,t)},t.prototype.valueFromData=function(t){var n=a.ItemValue.getItemByValue(this.activeChoices,t);return n?n.value:e.prototype.valueFromData.call(this,t)},t.prototype.rendredValueFromData=function(e){return this.getStoreOthersAsComment()?e:this.renderedValueFromDataCore(e)},t.prototype.rendredValueToData=function(e){return this.getStoreOthersAsComment()?e:this.rendredValueToDataCore(e)},t.prototype.renderedValueFromDataCore=function(e){return this.hasUnknownValue(e,!0,!1)?(this.otherValue=e,this.otherItem.value):this.valueFromData(e)},t.prototype.rendredValueToDataCore=function(e){return e==this.otherItem.value&&this.needConvertRenderedOtherToDataValue()&&(e=this.otherValue),e},t.prototype.needConvertRenderedOtherToDataValue=function(){var e=this.otherValue;return!!e&&!!(e=e.trim())&&this.hasUnknownValue(e,!0,!1)},t.prototype.updateSelectedItemValues=function(){this.waitingGetChoiceDisplayValueResponse||(this.getIsMultipleValue()?this.updateMultipleSelectedItemValues():this.updateSingleSelectedItemValues())},t.prototype.updateSingleSelectedItemValues=function(){var e=this;!this.survey||this.isEmpty()||a.ItemValue.getItemByValue(this.choices,this.value)||(this.waitingGetChoiceDisplayValueResponse=!0,this.isReady=!this.waitingAcyncOperations,this.survey.getChoiceDisplayValue({question:this,values:[this.value],setItems:function(t){e.waitingGetChoiceDisplayValueResponse=!1,t&&t.length&&(e.selectedItemValues=e.createItemValue(e.value,t[0]),e.isReady=!e.waitingAcyncOperations)}}))},t.prototype.updateMultipleSelectedItemValues=function(){var e=this,t=this.value,n=t.some((function(t){return!a.ItemValue.getItemByValue(e.choices,t)}));this.survey&&!this.isEmpty()&&n&&(this.waitingGetChoiceDisplayValueResponse=!0,this.isReady=this.waitingAcyncOperations,this.survey.getChoiceDisplayValue({question:this,values:t,setItems:function(t){e.waitingGetChoiceDisplayValueResponse=!1,t&&t.length&&(e.selectedItemValues=t.map((function(t,n){return e.createItemValue(e.value[n],t)})),e.isReady=!e.waitingAcyncOperations)}}))},t.prototype.hasUnknownValue=function(e,t,n,r){if(void 0===t&&(t=!1),void 0===n&&(n=!0),void 0===r&&(r=!1),!r&&this.isValueEmpty(e))return!1;if(t&&e==this.otherItem.value)return!1;if(this.hasNone&&e==this.noneItem.value)return!1;var o=n?this.getFilteredChoices():this.activeChoices;return null==a.ItemValue.getItemByValue(o,e)},t.prototype.isValueDisabled=function(e){var t=a.ItemValue.getItemByValue(this.getFilteredChoices(),e);return!!t&&!t.isEnabled},Object.defineProperty(t.prototype,"choicesByUrl",{get:function(){return this.getPropertyValue("choicesByUrl")},set:function(e){e&&(this.setNewRestfulProperty(),this.choicesByUrl.fromJSON(e.toJSON()))},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"choices",{get:function(){return this.getPropertyValue("choices")},set:function(e){this.setPropertyValue("choices",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"choicesFromQuestion",{get:function(){return this.getPropertyValue("choicesFromQuestion")},set:function(e){var t=this.getQuestionWithChoices();this.isLockVisibleChoices=!!t&&t.name===e,t&&t.name!==e&&t.removeDependedQuestion(this),this.setPropertyValue("choicesFromQuestion",e),this.isLockVisibleChoices=!1},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"choicesFromQuestionMode",{get:function(){return this.getPropertyValue("choicesFromQuestionMode")},set:function(e){this.setPropertyValue("choicesFromQuestionMode",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"choiceValuesFromQuestion",{get:function(){return this.getPropertyValue("choiceValuesFromQuestion")},set:function(e){this.setPropertyValue("choiceValuesFromQuestion",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"choiceTextsFromQuestion",{get:function(){return this.getPropertyValue("choiceTextsFromQuestion")},set:function(e){this.setPropertyValue("choiceTextsFromQuestion",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hideIfChoicesEmpty",{get:function(){return this.getPropertyValue("hideIfChoicesEmpty")},set:function(e){this.setPropertyValue("hideIfChoicesEmpty",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"keepIncorrectValues",{get:function(){return this.getPropertyValue("keepIncorrectValues",!1)},set:function(e){this.setPropertyValue("keepIncorrectValues",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"storeOthersAsComment",{get:function(){return this.getPropertyValue("storeOthersAsComment")},set:function(e){this.setPropertyValue("storeOthersAsComment",e)},enumerable:!1,configurable:!0}),t.prototype.hasOtherChanged=function(){this.onVisibleChoicesChanged()},Object.defineProperty(t.prototype,"choicesOrder",{get:function(){return this.getPropertyValue("choicesOrder")},set:function(e){(e=e.toLowerCase())!=this.choicesOrder&&(this.setPropertyValue("choicesOrder",e),this.onVisibleChoicesChanged())},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"otherText",{get:function(){return this.getLocalizableStringText("otherText")},set:function(e){this.setLocalizableStringText("otherText",e),this.onVisibleChoicesChanged()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locOtherText",{get:function(){return this.getLocalizableString("otherText")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"otherPlaceHolder",{get:function(){return this.otherPlaceholder},set:function(e){this.otherPlaceholder=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"otherErrorText",{get:function(){return this.getLocalizableStringText("otherErrorText")},set:function(e){this.setLocalizableStringText("otherErrorText",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locOtherErrorText",{get:function(){return this.getLocalizableString("otherErrorText")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"visibleChoices",{get:function(){return this.getPropertyValue("visibleChoices")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"enabledChoices",{get:function(){for(var e=[],t=this.visibleChoices,n=0;n<t.length;n++)t[n].isEnabled&&e.push(t[n]);return e},enumerable:!1,configurable:!0}),t.prototype.updateVisibleChoices=function(){if(!this.isLoadingFromJson){var e=new Array,t=this.calcVisibleChoices();t||(t=[]);for(var n=0;n<t.length;n++)e.push(t[n]);this.setPropertyValue("visibleChoices",e)}},t.prototype.calcVisibleChoices=function(){if(this.canUseFilteredChoices())return this.getFilteredChoices();var e=this.sortVisibleChoices(this.getFilteredChoices().slice());return this.addToVisibleChoices(e,this.isAddDefaultItems),e},t.prototype.canUseFilteredChoices=function(){return!this.isAddDefaultItems&&!this.hasNone&&!this.hasOther&&"none"==this.choicesOrder},t.prototype.setCanShowOptionItemCallback=function(e){this.canShowOptionItemCallback=e,e&&this.onVisibleChoicesChanged()},Object.defineProperty(t.prototype,"newItem",{get:function(){return this.newItemValue},enumerable:!1,configurable:!0}),t.prototype.addToVisibleChoices=function(e,t){t&&(this.newItemValue||(this.newItemValue=this.createItemValue("newitem"),this.newItemValue.isGhost=!0),!this.isUsingCarryForward&&this.canShowOptionItem(this.newItemValue,t,!1)&&e.push(this.newItemValue)),this.supportNone()&&this.canShowOptionItem(this.noneItem,t,this.hasNone)&&e.push(this.noneItem),this.supportOther()&&this.canShowOptionItem(this.otherItem,t,this.hasOther)&&e.push(this.otherItem)},t.prototype.canShowOptionItem=function(e,t,n){var r=t&&(!this.canShowOptionItemCallback||this.canShowOptionItemCallback(e))||n;return this.canSurveyChangeItemVisibility()?this.changeItemVisisbility()(e,r):r},t.prototype.isItemInList=function(e){return e===this.otherItem?this.hasOther:e===this.noneItem?this.hasNone:e!==this.newItemValue},Object.defineProperty(t.prototype,"isAddDefaultItems",{get:function(){return h.settings.supportCreatorV2&&h.settings.showDefaultItemsInCreatorV2&&this.isDesignMode&&!this.customWidget&&!this.isContentElement},enumerable:!1,configurable:!0}),t.prototype.getPlainData=function(t){var n=this;void 0===t&&(t={includeEmpty:!0,includeQuestionTypes:!1});var r=e.prototype.getPlainData.call(this,t);if(r){var o=Array.isArray(this.value)?this.value:[this.value];r.isNode=!0,r.data=(r.data||[]).concat(o.map((function(e,r){var o=a.ItemValue.getItemByValue(n.visibleChoices,e),i={name:r,title:"Choice",value:e,displayValue:n.getChoicesDisplayValue(n.visibleChoices,e),getString:function(e){return"object"==typeof e?JSON.stringify(e):e},isNode:!1};return o&&(t.calculations||[]).forEach((function(e){i[e.propertyName]=o[e.propertyName]})),n.isOtherSelected&&n.otherItemValue===o&&(i.isOther=!0,i.displayValue=n.otherValue),i})))}return r},t.prototype.getDisplayValueCore=function(e,t){return this.getChoicesDisplayValue(this.visibleChoices,t)},t.prototype.getDisplayValueEmpty=function(){return a.ItemValue.getTextOrHtmlByValue(this.visibleChoices,void 0)},t.prototype.getChoicesDisplayValue=function(e,t){if(t==this.otherItemValue.value)return this.otherValue?this.otherValue:this.locOtherText.textOrHtml;var n=this.getSingleSelectedItem();if(n&&this.isTwoValueEquals(n.value,t))return n.locText.textOrHtml;var r=a.ItemValue.getTextOrHtmlByValue(e,t);return""==r&&t?t:r},t.prototype.getDisplayArrayValue=function(e,t,n){for(var r=this,o=this.visibleChoices,i=[],s=[],a=0;a<t.length;a++)s.push(n?n(a):t[a]);if(d.Helpers.isTwoValueEquals(this.value,s)&&this.getMultipleSelectedItems().forEach((function(e){return i.push(r.getItemDisplayValue(e))})),0===i.length)for(a=0;a<s.length;a++){var l=this.getChoicesDisplayValue(o,s[a]);l&&i.push(l)}return i.join(", ")},t.prototype.getItemDisplayValue=function(e){return e===this.otherItem&&this.comment?this.comment:e.locText.textOrHtml},t.prototype.getFilteredChoices=function(){return this.filteredChoicesValue?this.filteredChoicesValue:this.activeChoices},Object.defineProperty(t.prototype,"activeChoices",{get:function(){var e=this.getCarryForwardQuestion();return"select"===this.carryForwardQuestionType?(e.addDependedQuestion(this),this.getChoicesFromSelectQuestion(e)):"array"===this.carryForwardQuestionType?(e.addDependedQuestion(this),this.getChoicesFromArrayQuestion(e)):this.choicesFromUrl?this.choicesFromUrl:this.getChoices()},enumerable:!1,configurable:!0}),t.prototype.getCarryForwardQuestion=function(e){var t=this.findCarryForwardQuestion(e),n=this.getQuestionWithChoicesCore(t),r=n?null:this.getQuestionWithArrayValue(t);return this.setCarryForwardQuestionType(!!n,!!r),n||r?t:null},t.prototype.getQuestionWithChoices=function(){return this.getQuestionWithChoicesCore(this.findCarryForwardQuestion())},t.prototype.findCarryForwardQuestion=function(e){return e||(e=this.data),this.choicesFromQuestion&&e?e.findQuestionByName(this.choicesFromQuestion):null},t.prototype.getQuestionWithChoicesCore=function(e){return e&&e.visibleChoices&&o.Serializer.isDescendantOf(e.getType(),"selectbase")&&e!==this?e:null},t.prototype.getQuestionWithArrayValue=function(e){return e&&e.isValueArray?e:null},t.prototype.getChoicesFromArrayQuestion=function(e){if(this.isDesignMode)return[];var t=e.value;if(!Array.isArray(t))return[];for(var n=[],r=0;r<t.length;r++){var o=t[r];if(d.Helpers.isValueObject(o)){var i=this.getValueKeyName(o);if(i&&!this.isValueEmpty(o[i])){var s=this.choiceTextsFromQuestion?o[this.choiceTextsFromQuestion]:void 0;n.push(this.createItemValue(o[i],s))}}}return n},t.prototype.getValueKeyName=function(e){if(this.choiceValuesFromQuestion)return this.choiceValuesFromQuestion;var t=Object.keys(e);return t.length>0?t[0]:void 0},t.prototype.getChoicesFromSelectQuestion=function(e){if(this.isDesignMode)return[];for(var t=[],n="selected"==this.choicesFromQuestionMode||"unselected"!=this.choicesFromQuestionMode&&void 0,r=e.visibleChoices,o=0;o<r.length;o++)if(!this.isBuiltInChoice(r[o],e))if(void 0!==n){var i=e.isItemSelected(r[o]);(i&&n||!i&&!n)&&t.push(this.copyChoiceItem(r[o]))}else t.push(this.copyChoiceItem(r[o]));return"selected"===this.choicesFromQuestionMode&&e.isOtherSelected&&e.comment&&t.push(this.createItemValue(e.otherItem.value,e.comment)),t},t.prototype.copyChoiceItem=function(e){var t=this.createItemValue(e.value);return t.setData(e),t},Object.defineProperty(t.prototype,"hasActiveChoices",{get:function(){var e=this.visibleChoices;e&&0!=e.length||(this.onVisibleChoicesChanged(),e=this.visibleChoices);for(var t=0;t<e.length;t++)if(!this.isBuiltInChoice(e[t],this))return!0;return!1},enumerable:!1,configurable:!0}),t.prototype.isHeadChoice=function(e,t){return!1},t.prototype.isFootChoice=function(e,t){return e===t.noneItem||e===t.otherItem||e===t.newItemValue},t.prototype.isBuiltInChoice=function(e,t){return this.isHeadChoice(e,t)||this.isFootChoice(e,t)},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.isSupportProperty=function(e){return!this.isDesignMode||this.getPropertyByName(e).visible},t.prototype.onCheckForErrors=function(t,n){var r=this;if(e.prototype.onCheckForErrors.call(this,t,n),this.hasOther&&this.isOtherSelected&&!this.otherValue){var o=new u.OtherEmptyError(this.otherErrorText,this);o.onUpdateErrorTextCallback=function(e){e.text=r.otherErrorText},t.push(o)}},t.prototype.setSurveyImpl=function(t,n){this.isRunningChoices=!0,e.prototype.setSurveyImpl.call(this,t,n),this.isRunningChoices=!1,this.runChoicesByUrl(),this.isAddDefaultItems&&this.updateVisibleChoices()},t.prototype.setSurveyCore=function(t){e.prototype.setSurveyCore.call(this,t),t&&this.choicesFromQuestion&&this.onVisibleChoicesChanged()},t.prototype.getStoreOthersAsComment=function(){return!this.isSettingDefaultValue&&!this.showCommentArea&&(!0===this.storeOthersAsComment||"default"==this.storeOthersAsComment&&(null==this.survey||this.survey.storeOthersAsComment)||!this.choicesByUrl.isEmpty&&!this.choicesFromUrl)},t.prototype.onSurveyLoad=function(){this.runChoicesByUrl(),this.onVisibleChoicesChanged(),e.prototype.onSurveyLoad.call(this)},t.prototype.onAnyValueChanged=function(t){e.prototype.onAnyValueChanged.call(this,t),t!=this.getValueName()&&this.runChoicesByUrl(),t&&t==this.choicesFromQuestion&&this.onVisibleChoicesChanged()},t.prototype.updateValueFromSurvey=function(t){var n="";this.hasOther&&!this.isRunningChoices&&!this.choicesByUrl.isRunning&&this.getStoreOthersAsComment()&&(this.hasUnknownValue(t)&&!this.getHasOther(t)?(n=this.getCommentFromValue(t),t=this.setOtherValueIntoValue(t)):n=this.data.getComment(this.getValueName())),e.prototype.updateValueFromSurvey.call(this,t),!this.isRunningChoices&&!this.choicesByUrl.isRunning||this.isEmpty()||(this.cachedValueForUrlRequests=this.value),n&&this.setNewComment(n)},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.choicesByUrl&&!this.isLoadingFromJson&&!this.isRunningChoices){var e=this.surveyImpl?this.surveyImpl.getTextProcessor():this.textProcessor;e||(e=this.survey),e&&(this.isReadyValue=!this.waitingAcyncOperations,this.isRunningChoices=!0,this.choicesByUrl.run(e),this.isRunningChoices=!1)}},t.prototype.onBeforeSendRequest=function(){!0!==h.settings.web.disableQuestionWhileLoadingChoices||this.isReadOnly||(this.enableOnLoadingChoices=!0,this.readOnly=!0)},t.prototype.onLoadChoicesFromUrl=function(e){this.enableOnLoadingChoices&&(this.readOnly=!1);var t=[];this.isReadOnly||this.choicesByUrl&&this.choicesByUrl.error&&t.push(this.choicesByUrl.error);var n=null,r=!0;this.isFirstLoadChoicesFromUrl&&!this.cachedValueForUrlRequests&&this.defaultValue&&(this.cachedValueForUrlRequests=this.defaultValue,r=!1),this.isValueEmpty(this.cachedValueForUrlRequests)&&(this.cachedValueForUrlRequests=this.value),this.isFirstLoadChoicesFromUrl=!1;var o=this.createCachedValueForUrlRequests(this.cachedValueForUrlRequests,r);if(e&&(e.length>0||this.choicesByUrl.allowEmptyResponse)&&(n=new Array,a.ItemValue.setData(n,e)),n)for(var i=0;i<n.length;i++)n[i].locOwner=this;if(this.choicesFromUrl=n,this.filterItems(),this.onVisibleChoicesChanged(),n){var s=this.updateCachedValueForUrlRequests(o,n);if(s&&!this.isReadOnly){var l=!this.isTwoValueEquals(this.value,s.value);try{this.isValueEmpty(s.value)||(this.allowNotifyValueChanged=!1,this.setQuestionValue(void 0,!0,!1)),this.allowNotifyValueChanged=l,l?this.value=s.value:this.setQuestionValue(s.value)}finally{this.allowNotifyValueChanged=!0}}}this.isReadOnly||n||this.isFirstLoadChoicesFromUrl||(this.value=null),this.errors=t,this.choicesLoaded()},t.prototype.createCachedValueForUrlRequests=function(e,t){if(this.isValueEmpty(e))return null;if(Array.isArray(e)){for(var n=[],r=0;r<e.length;r++)n.push(this.createCachedValueForUrlRequests(e[r],!0));return n}return{value:e,isExists:!t||!this.hasUnknownValue(e)}},t.prototype.updateCachedValueForUrlRequests=function(e,t){if(this.isValueEmpty(e))return null;if(Array.isArray(e)){for(var n=[],r=0;r<e.length;r++){var o=this.updateCachedValueForUrlRequests(e[r],t);if(o&&!this.isValueEmpty(o.value)){var i=o.value;(s=a.ItemValue.getItemByValue(t,o.value))&&(i=s.value),n.push(i)}}return{value:n}}var s,l=e.isExists&&this.hasUnknownValue(e.value)?null:e.value;return(s=a.ItemValue.getItemByValue(t,l))&&(l=s.value),{value:l}},t.prototype.updateChoicesDependedQuestions=function(){this.isLoadingFromJson||this.isUpdatingChoicesDependedQuestions||!this.allowNotifyValueChanged||this.choicesByUrl.isRunning||(this.isUpdatingChoicesDependedQuestions=!0,this.updateDependedQuestions(),this.isUpdatingChoicesDependedQuestions=!1)},t.prototype.updateDependedQuestion=function(){this.onVisibleChoicesChanged(),this.clearIncorrectValues()},t.prototype.onSurveyValueChanged=function(t){e.prototype.onSurveyValueChanged.call(this,t),this.updateChoicesDependedQuestions()},t.prototype.onVisibleChoicesChanged=function(){this.isLoadingFromJson||this.isLockVisibleChoices||(this.updateVisibleChoices(),this.onVisibleChanged(),this.visibleChoicesChangedCallback&&this.visibleChoicesChangedCallback(),this.updateChoicesDependedQuestions())},t.prototype.isVisibleCore=function(){var t=e.prototype.isVisibleCore.call(this);if(!this.hideIfChoicesEmpty||!t)return t;var n=this.getFilteredChoices();return!n||n.length>0},t.prototype.sortVisibleChoices=function(e){if(this.isDesignMode)return e;var t=this.choicesOrder.toLowerCase();return"asc"==t?this.sortArray(e,1):"desc"==t?this.sortArray(e,-1):"random"==t?this.randomizeArray(e):e},t.prototype.sortArray=function(e,t){return e.sort((function(e,n){return d.Helpers.compareStrings(e.calculatedText,n.calculatedText)*t}))},t.prototype.randomizeArray=function(e){return d.Helpers.randomizeArray(e)},t.prototype.clearIncorrectValues=function(){this.hasValueToClearIncorrectValues()&&(this.survey&&this.survey.questionCountByValueName(this.getValueName())>1||(!this.choicesByUrl||this.choicesByUrl.isEmpty||this.choicesFromUrl&&0!=this.choicesFromUrl.length)&&(this.clearIncorrectValuesCallback?this.clearIncorrectValuesCallback():this.clearIncorrectValuesCore()))},t.prototype.hasValueToClearIncorrectValues=function(){return!(this.survey&&this.survey.keepIncorrectValues||this.keepIncorrectValues||this.isEmpty())},t.prototype.clearValueIfInvisibleCore=function(t){e.prototype.clearValueIfInvisibleCore.call(this,t),this.clearIncorrectValues()},t.prototype.isItemSelected=function(e){return e===this.otherItem?this.isOtherSelected:this.isItemSelectedCore(e)},t.prototype.isItemSelectedCore=function(e){return e.value===this.value},t.prototype.clearDisabledValues=function(){this.survey&&this.survey.clearValueOnDisableItems&&this.clearDisabledValuesCore()},t.prototype.clearIncorrectValuesCore=function(){var e=this.value;this.canClearValueAnUnknown(e)&&this.clearValue()},t.prototype.canClearValueAnUnknown=function(e){return!(!this.getStoreOthersAsComment()&&this.isOtherSelected)&&this.hasUnknownValue(e,!0,!0,!0)},t.prototype.clearDisabledValuesCore=function(){this.isValueDisabled(this.value)&&this.clearValue()},t.prototype.clearUnusedValues=function(){e.prototype.clearUnusedValues.call(this),this.isOtherSelected||(this.otherValue=""),this.showCommentArea||this.getStoreOthersAsComment()||this.isOtherSelected||(this.comment="")},t.prototype.getColumnClass=function(){return(new f.CssClassBuilder).append(this.cssClasses.column).append("sv-q-column-"+this.colCount,this.hasColumns).toString()},t.prototype.getItemIndex=function(e){return this.visibleChoices.indexOf(e)},t.prototype.getItemClass=function(e){var t={item:e},n=this.getItemClassCore(e,t);return t.css=n,this.survey&&this.survey.updateChoiceItemCss(this,t),t.css},t.prototype.getCurrentColCount=function(){return this.colCount},t.prototype.getItemClassCore=function(e,t){var n=(new f.CssClassBuilder).append(this.cssClasses.item).append(this.cssClasses.itemInline,!this.hasColumns&&0===this.colCount).append("sv-q-col-"+this.getCurrentColCount(),!this.hasColumns&&0!==this.colCount).append(this.cssClasses.itemOnError,this.errors.length>0),r=this.isReadOnly||!e.isEnabled,o=this.isItemSelected(e)||this.isOtherSelected&&this.otherItem.value===e.value,i=!(r||o||this.survey&&this.survey.isDesignMode),s=e===this.noneItem;return t.isDisabled=r,t.isChecked=o,t.isNone=s,n.append(this.cssClasses.itemDisabled,r).append(this.cssClasses.itemChecked,o).append(this.cssClasses.itemHover,i).append(this.cssClasses.itemNone,s).toString()},t.prototype.getLabelClass=function(e){return(new f.CssClassBuilder).append(this.cssClasses.label).append(this.cssClasses.labelChecked,this.isItemSelected(e)).toString()},t.prototype.getControlLabelClass=function(e){return(new f.CssClassBuilder).append(this.cssClasses.controlLabel).append(this.cssClasses.controlLabelChecked,this.isItemSelected(e)).toString()||void 0},Object.defineProperty(t.prototype,"headItems",{get:function(){var e=this;return this.separateSpecialChoices||this.isDesignMode?this.visibleChoices.filter((function(t){return e.isHeadChoice(t,e)})):[]},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"footItems",{get:function(){var e=this;return this.separateSpecialChoices||this.isDesignMode?this.visibleChoices.filter((function(t){return e.isFootChoice(t,e)})):[]},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"dataChoices",{get:function(){var e=this;return this.visibleChoices.filter((function(t){return!e.isBuiltInChoice(t,e)}))},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"bodyItems",{get:function(){return this.hasHeadItems||this.hasFootItems?this.dataChoices:this.visibleChoices},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hasHeadItems",{get:function(){return this.headItems.length>0},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hasFootItems",{get:function(){return this.footItems.length>0},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"columns",{get:function(){var e=[],t=this.getCurrentColCount();if(this.hasColumns&&this.visibleChoices.length>0){var n=this.separateSpecialChoices||this.isDesignMode?this.dataChoices:this.visibleChoices;if("column"==h.settings.showItemsInOrder)for(var r=0,o=n.length%t,i=0;i<t;i++){for(var s=[],a=r;a<r+Math.floor(n.length/t);a++)s.push(n[a]);o>0&&(o--,s.push(n[a]),a++),r=a,e.push(s)}else for(i=0;i<t;i++){for(s=[],a=i;a<n.length;a+=t)s.push(n[a]);e.push(s)}}return e},enumerable:!1,configurable:!0}),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 0==this.getCurrentColCount()&&!(this.hasFootItems||this.hasHeadItems)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"blockedRow",{get:function(){return 0==this.getCurrentColCount()&&(this.hasFootItems||this.hasHeadItems)},enumerable:!1,configurable:!0}),t.prototype.choicesLoaded=function(){this.isChoicesLoaded=!0,this.isReady=!this.waitingAcyncOperations,this.survey&&this.survey.loadedChoicesFromServer(this),this.loadedChoicesFromServerCallback&&this.loadedChoicesFromServerCallback()},t.prototype.getItemValueWrapperComponentName=function(e){var t=this.survey;return t?t.getItemValueWrapperComponentName(e,this):i.SurveyModel.TemplateRendererComponentName},t.prototype.getItemValueWrapperComponentData=function(e){var t=this.survey;return t?t.getItemValueWrapperComponentData(e,this):e},t.prototype.ariaItemChecked=function(e){return this.renderedValue===e.value?"true":"false"},t.prototype.isOtherItem=function(e){return this.hasOther&&e.value==this.otherItem.value},Object.defineProperty(t.prototype,"itemSvgIcon",{get:function(){return this.cssClasses.itemSvgIconId},enumerable:!1,configurable:!0}),t.prototype.getSelectBaseRootCss=function(){return(new f.CssClassBuilder).append(this.cssClasses.root).append(this.cssClasses.rootRow,this.rowLayout).toString()},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.isInputReadOnly&&e.isEnabled},t.prototype.afterRender=function(t){e.prototype.afterRender.call(this,t),this.rootElement=t},t.prototype.beforeDestroyQuestionElement=function(t){e.prototype.beforeDestroyQuestionElement.call(this,t),this.rootElement=void 0},t.prototype.focusOtherComment=function(){var e=this;this.rootElement&&setTimeout((function(){var t=e.rootElement.querySelector("textarea");t&&t.focus()}),10)},t.prototype.onValueChanged=function(){e.prototype.onValueChanged.call(this),this.isDesignMode||this.prevIsOtherSelected||!this.isOtherSelected||this.focusOtherComment(),this.prevIsOtherSelected=this.isOtherSelected},t.prototype.getDefaultItemComponent=function(){return""},Object.defineProperty(t.prototype,"itemComponent",{get:function(){return this.getPropertyValue("itemComponent",this.getDefaultItemComponent())},set:function(e){this.setPropertyValue("itemComponent",e)},enumerable:!1,configurable:!0}),t.prototype.updateCssClasses=function(t,n){if(e.prototype.updateCssClasses.call(this,t,n),this.dropdownListModel){var r={};Object(g.mergeValues)(n.list,r),Object(g.mergeValues)(t.list,r),t.list=r}},t.prototype.calcCssClasses=function(t){var n=e.prototype.calcCssClasses.call(this,t);return this.dropdownListModel&&this.dropdownListModel.updateCssClasses(n.popup,n.list),n},y([Object(o.property)({onSet:function(e,t){t.onSelectedItemValuesChangedHandler(e)}})],t.prototype,"selectedItemValues",void 0),y([Object(o.property)()],t.prototype,"separateSpecialChoices",void 0),y([Object(o.property)({localizable:!0})],t.prototype,"otherPlaceholder",void 0),t}(s.Question),b=function(e){function t(t){return e.call(this,t)||this}return m(t,e),Object.defineProperty(t.prototype,"colCount",{get:function(){return this.getPropertyValue("colCount",this.isFlowLayout?0:1)},set:function(e){e<0||e>5||this.isFlowLayout||(this.setPropertyValue("colCount",e),this.fireCallback(this.colCountChangedCallback))},enumerable:!1,configurable:!0}),t.prototype.clickItemHandler=function(e,t){var n=[].concat(this.renderedValue||[]),r=n.indexOf(e.value);t?r<0&&n.push(e.value):r>-1&&n.splice(r,1),this.renderedValue=n},t.prototype.onParentChanged=function(){e.prototype.onParentChanged.call(this),this.isFlowLayout&&this.setPropertyValue("colCount",null)},t.prototype.onParentQuestionChanged=function(){this.onVisibleChoicesChanged()},t.prototype.getSearchableItemValueKeys=function(e){e.push("choices")},t}(v);function C(e,t){var n;if(!e)return!1;if(e.templateQuestion){var r=null===(n=e.colOwner)||void 0===n?void 0:n.data;if(!(e=e.templateQuestion).getCarryForwardQuestion(r))return!1}return e.carryForwardQuestionType===t}o.Serializer.addClass("selectbase",[{name:"showCommentArea:switch",layout:"row",visible:!0,category:"general"},"choicesFromQuestion:question_carryforward",{name:"choices:itemvalue[]",uniqueProperty:"value",baseValue:function(){return l.surveyLocalization.getString("choices_Item")},dependsOn:"choicesFromQuestion",visibleIf:function(e){return!e.choicesFromQuestion}},{name:"choicesFromQuestionMode",default:"all",choices:["all","selected","unselected"],dependsOn:"choicesFromQuestion",visibleIf:function(e){return C(e,"select")}},{name:"choiceValuesFromQuestion",dependsOn:"choicesFromQuestion",visibleIf:function(e){return C(e,"array")}},{name:"choiceTextsFromQuestion",dependsOn:"choicesFromQuestion",visibleIf:function(e){return C(e,"array")}},{name:"choicesOrder",default:"none",choices:["none","asc","desc","random"],dependsOn:"choicesFromQuestion",visibleIf:function(e){return!e.choicesFromQuestion}},{name:"choicesByUrl:restfull",className:"choicesByUrl",onGetValue:function(e){return e.choicesByUrl.getData()},onSetValue:function(e,t){e.choicesByUrl.setData(t)}},"hideIfChoicesEmpty:boolean",{name:"choicesVisibleIf:condition",dependsOn:"choicesFromQuestion",visibleIf:function(e){return!e.choicesFromQuestion}},{name:"choicesEnableIf:condition",dependsOn:"choicesFromQuestion",visibleIf:function(e){return!e.choicesFromQuestion}},{name:"separateSpecialChoices:boolean",visible:!1},{name:"showOtherItem:boolean",alternativeName:"hasOther"},{name:"showNoneItem:boolean",alternativeName:"hasNone"},{name:"otherPlaceholder",alternativeName:"otherPlaceHolder",serializationProperty:"locOtherPlaceholder",dependsOn:"showOtherItem",visibleIf:function(e){return e.hasOther}},{name:"noneText",serializationProperty:"locNoneText",dependsOn:"showNoneItem",visibleIf:function(e){return e.hasNone}},{name:"otherText",serializationProperty:"locOtherText",dependsOn:"showOtherItem",visibleIf:function(e){return e.hasOther}},{name:"otherErrorText",serializationProperty:"locOtherErrorText",dependsOn:"showOtherItem",visibleIf:function(e){return e.hasOther}},{name:"storeOthersAsComment",default:"default",choices:["default",!0,!1],visible:!1}],null,"question"),o.Serializer.addClass("checkboxbase",[{name:"colCount:number",default:1,choices:[0,1,2,3,4,5],layout:"row"}],null,"selectbase")},"./src/question_boolean.ts":function(e,t,n){"use strict";n.r(t),n.d(t,"QuestionBooleanModel",(function(){return p}));var r,o=n("./src/questionfactory.ts"),i=n("./src/jsonobject.ts"),s=n("./src/question.ts"),a=n("./src/utils/cssClassBuilder.ts"),l=n("./src/utils/utils.ts"),u=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),c=function(e,t,n,r){var o,i=arguments.length,s=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,r);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(i<3?o(s):i>3?o(t,n,s):o(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},p=function(e){function t(t){var n=e.call(this,t)||this;return n.createLocalizableString("labelFalse",n,!0,"booleanUncheckedLabel"),n.createLocalizableString("labelTrue",n,!0,"booleanCheckedLabel"),n}return u(t,e),t.prototype.getType=function(){return"boolean"},t.prototype.isLayoutTypeSupported=function(e){return!0},t.prototype.supportGoNextPageAutomatic=function(){return"checkbox"!==this.renderAs},Object.defineProperty(t.prototype,"isIndeterminate",{get:function(){return this.isEmpty()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hasTitle",{get:function(){return!0},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"booleanValue",{get:function(){return this.isEmpty()?null:this.value==this.getValueTrue()},set:function(e){this.isReadOnly||this.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=null,this.booleanValueRendered=null):(this.value=1==e?this.getValueTrue():this.getValueFalse(),this.booleanValueRendered=e)},Object.defineProperty(t.prototype,"defaultValue",{get:function(){return this.getPropertyValue("defaultValue")},set:function(e){!0===e&&(e="true"),!1===e&&(e="false"),void 0===e&&(e="indeterminate"),this.setPropertyValue("defaultValue",e),this.updateValueWithDefaults()},enumerable:!1,configurable:!0}),t.prototype.getDefaultValue=function(){return"indeterminate"==this.defaultValue||void 0===this.defaultValue?null:"true"==this.defaultValue?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}),Object.defineProperty(t.prototype,"isLabelRendered",{get:function(){return"hidden"===this.titleLocation},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"canRenderLabelDescription",{get:function(){return this.isLabelRendered&&this.hasDescription&&(this.hasDescriptionUnderTitle||this.hasDescriptionUnderInput)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"labelTrue",{get:function(){return this.getLocalizableStringText("labelTrue")},set:function(e){this.setLocalizableStringText("labelTrue",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locLabelTrue",{get:function(){return this.getLocalizableString("labelTrue")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isDeterminated",{get:function(){return null!==this.booleanValue},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"labelFalse",{get:function(){return this.getLocalizableStringText("labelFalse")},set:function(e){this.setLocalizableStringText("labelFalse",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locLabelFalse",{get:function(){return this.getLocalizableString("labelFalse")},enumerable:!1,configurable:!0}),t.prototype.getValueTrue=function(){return void 0===this.valueTrue||this.valueTrue},t.prototype.getValueFalse=function(){return void 0!==this.valueFalse&&this.valueFalse},t.prototype.setDefaultValue=function(){this.isDefaultValueSet("true",this.valueTrue)&&this.setBooleanValue(!0),this.isDefaultValueSet("false",this.valueFalse)&&this.setBooleanValue(!1),"indeterminate"==this.defaultValue&&this.setBooleanValue(null)},t.prototype.isDefaultValueSet=function(e,t){return this.defaultValue==e||void 0!==t&&this.defaultValue===t},t.prototype.getDisplayValueCore=function(e,t){return t==this.getValueTrue()?this.locLabelTrue.textOrHtml:this.locLabelFalse.textOrHtml},t.prototype.getItemCssValue=function(e){return(new a.CssClassBuilder).append(e.item).append(e.itemOnError,this.errors.length>0).append(e.itemDisabled,this.isReadOnly).append(e.itemHover,!this.isDesignMode).append(e.itemChecked,!!this.booleanValue).append(e.itemIndeterminate,null===this.booleanValue).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,itemChecked:this.cssClasses.checkboxItemChecked,itemIndeterminate:this.cssClasses.checkboxItemIndeterminate})},t.prototype.getLabelCss=function(e){return(new a.CssClassBuilder).append(this.cssClasses.label).append(this.cssClasses.disabledLabel,this.booleanValue===!e||this.isReadOnly).append(this.cssClasses.labelTrue,!this.isIndeterminate&&!0===e).append(this.cssClasses.labelFalse,!this.isIndeterminate&&!1===e).toString()},Object.defineProperty(t.prototype,"svgIcon",{get:function(){return this.booleanValue&&this.cssClasses.svgIconCheckedId?this.cssClasses.svgIconCheckedId:null===this.booleanValue&&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,"allowClick",{get:function(){return this.isIndeterminate&&!this.isInputReadOnly},enumerable:!1,configurable:!0}),t.prototype.getCheckedLabel=function(){return!0===this.booleanValue?this.locLabelTrue:!1===this.booleanValue?this.locLabelFalse:void 0},t.prototype.setQuestionValue=function(t,n){void 0===n&&(n=!0),"true"===t&&"true"!==this.valueTrue&&(t=!0),"false"===t&&"false"!==this.valueFalse&&(t=!1),"indeterminate"===t&&(t=null),e.prototype.setQuestionValue.call(this,t,n)},t.prototype.onLabelClick=function(e,t){return this.allowClick&&(Object(l.preventDefaults)(e),this.booleanValue=t),!0},t.prototype.calculateBooleanValueByEvent=function(e,t){var n="rtl"==document.defaultView.getComputedStyle(e.target).direction;this.booleanValue=n?!t:t},t.prototype.onSwitchClickModel=function(e){if(!this.allowClick)return!0;Object(l.preventDefaults)(e);var t=e.offsetX/e.target.offsetWidth>.5;this.calculateBooleanValueByEvent(e,t)},t.prototype.onKeyDownCore=function(e){return"ArrowLeft"!==e.key&&"ArrowRight"!==e.key||(Object(l.preventDefaults)(e),void this.calculateBooleanValueByEvent(e,"ArrowRight"===e.key))},t.prototype.getRadioItemClass=function(e,t){var n=void 0;return e.radioItem&&(n=e.radioItem),e.radioItemChecked&&t===this.booleanValue&&(n=(n?n+" ":"")+e.radioItemChecked),n},t.prototype.supportResponsiveness=function(){return!0},t.prototype.getCompactRenderAs=function(){return"radio"},t.prototype.createActionContainer=function(t){return e.prototype.createActionContainer.call(this,"checkbox"!==this.renderAs)},c([Object(i.property)()],t.prototype,"booleanValueRendered",void 0),c([Object(i.property)()],t.prototype,"showTitle",void 0),c([Object(i.property)({localizable:!0})],t.prototype,"label",void 0),c([Object(i.property)()],t.prototype,"valueTrue",void 0),c([Object(i.property)()],t.prototype,"valueFalse",void 0),t}(s.Question);i.Serializer.addClass("boolean",[{name:"showCommentArea:switch",layout:"row",visible:!0,category:"general"},{name:"label:text",serializationProperty:"locLabel",isSerializable:!1,visible:!1},{name:"labelTrue:text",serializationProperty:"locLabelTrue"},{name:"labelFalse:text",serializationProperty:"locLabelFalse"},"valueTrue","valueFalse",{name:"renderAs",default:"default",visible:!1}],(function(){return new p("")}),"question"),o.QuestionFactory.Instance.registerQuestion("boolean",(function(e){return new p(e)}))},"./src/question_buttongroup.ts":function(e,t,n){"use strict";n.r(t),n.d(t,"ButtonGroupItemValue",(function(){return c})),n.d(t,"QuestionButtonGroupModel",(function(){return p})),n.d(t,"ButtonGroupItemModel",(function(){return d}));var r,o=n("./src/jsonobject.ts"),i=n("./src/itemvalue.ts"),s=n("./src/question_baseselect.ts"),a=n("./src/utils/cssClassBuilder.ts"),l=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),u=function(e,t,n,r){var o,i=arguments.length,s=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,r);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(i<3?o(s):i>3?o(t,n,s):o(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},c=function(e){function t(t,n,r){void 0===n&&(n=null),void 0===r&&(r="buttongroupitemvalue");var o=e.call(this,t,n,r)||this;return o.typeName=r,o}return l(t,e),t.prototype.getType=function(){return this.typeName?this.typeName:"buttongroupitemvalue"},u([Object(o.property)()],t.prototype,"iconName",void 0),u([Object(o.property)()],t.prototype,"iconSize",void 0),u([Object(o.property)()],t.prototype,"showCaption",void 0),t}(i.ItemValue),p=function(e){function t(t){return e.call(this,t)||this}return l(t,e),t.prototype.getType=function(){return"buttongroup"},t.prototype.getItemValueType=function(){return"buttongroupitemvalue"},t.prototype.supportOther=function(){return!1},t}(s.QuestionCheckboxBase);o.Serializer.addClass("buttongroup",[{name:"choices:buttongroupitemvalue[]"}],(function(){return new p("")}),"checkboxbase"),o.Serializer.addClass("buttongroupitemvalue",[{name:"showCaption:boolean",default:!0},{name:"iconName:text"},{name:"iconSize:number"}],(function(e){return new c(e)}),"itemvalue");var d=function(){function e(e,t,n){this.question=e,this.item=t,this.index=n}return Object.defineProperty(e.prototype,"value",{get:function(){return this.item.value},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"iconName",{get:function(){return this.item.iconName},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"iconSize",{get:function(){return this.item.iconSize||24},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"caption",{get:function(){return this.item.locText},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"showCaption",{get:function(){return this.item.showCaption||void 0===this.item.showCaption},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"isRequired",{get:function(){return this.question.isRequired},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"selected",{get:function(){return this.question.isItemSelected(this.item)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"readOnly",{get:function(){return this.question.isInputReadOnly||!this.item.isEnabled},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"name",{get:function(){return this.question.name+"_"+this.question.id},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"id",{get:function(){return this.question.inputId+"_"+this.index},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"hasErrors",{get:function(){return this.question.errors.length>0},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"describedBy",{get:function(){return this.question.errors.length>0?this.question.id+"_errors":null},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"labelClass",{get:function(){return(new a.CssClassBuilder).append(this.question.cssClasses.item).append(this.question.cssClasses.itemSelected,this.selected).append(this.question.cssClasses.itemHover,!this.readOnly&&!this.selected).append(this.question.cssClasses.itemDisabled,this.question.isReadOnly||!this.item.isEnabled).toString()},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"css",{get:function(){return{label:this.labelClass,icon:this.question.cssClasses.itemIcon,control:this.question.cssClasses.itemControl,caption:this.question.cssClasses.itemCaption,decorator:this.question.cssClasses.itemDecorator}},enumerable:!1,configurable:!0}),e.prototype.onChange=function(){this.question.renderedValue=this.item.value},e}()},"./src/question_checkbox.ts":function(e,t,n){"use strict";n.r(t),n.d(t,"QuestionCheckboxModel",(function(){return d}));var r,o=n("./src/jsonobject.ts"),i=n("./src/questionfactory.ts"),s=n("./src/question_baseselect.ts"),a=n("./src/helpers.ts"),l=n("./src/itemvalue.ts"),u=n("./src/utils/cssClassBuilder.ts"),c=n("./src/error.ts"),p=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),d=function(e){function t(t){var n=e.call(this,t)||this;n.selectAllItemValue=new l.ItemValue("selectall"),n.invisibleOldValues={},n.isChangingValueOnClearIncorrect=!1;var r=n.createLocalizableString("selectAllText",n.selectAllItem,!0,"selectAllItemText");return n.selectAllItem.locOwner=n,n.selectAllItem.setLocText(r),n.registerPropertyChangedHandlers(["showSelectAllItem","selectAllText"],(function(){n.onVisibleChoicesChanged()})),n}return p(t,e),t.prototype.getDefaultItemComponent=function(){return"survey-checkbox-item"},Object.defineProperty(t.prototype,"ariaRole",{get:function(){return"listbox"},enumerable:!1,configurable:!0}),t.prototype.getType=function(){return"checkbox"},t.prototype.onCreating=function(){e.prototype.onCreating.call(this),this.createNewArray("renderedValue"),this.createNewArray("value")},t.prototype.getFirstInputElementId=function(){return this.inputId+"_0"},Object.defineProperty(t.prototype,"valuePropertyName",{get:function(){return this.getPropertyValue("valuePropertyName")},set:function(e){this.setPropertyValue("valuePropertyName",e)},enumerable:!1,configurable:!0}),t.prototype.getQuestionFromArray=function(e,t){if(e&&e===this.valuePropertyName){var n=this.value;if(Array.isArray(n)&&t<n.length)return this}return null},Object.defineProperty(t.prototype,"selectAllItem",{get:function(){return this.selectAllItemValue},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"selectAllText",{get:function(){return this.getLocalizableStringText("selectAllText")},set:function(e){this.setLocalizableStringText("selectAllText",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locSelectAllText",{get:function(){return this.getLocalizableString("selectAllText")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"showSelectAllItem",{get:function(){return this.getPropertyValue("showSelectAllItem")},set:function(e){this.setPropertyValue("showSelectAllItem",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hasSelectAll",{get:function(){return this.showSelectAllItem},set:function(e){this.showSelectAllItem=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isAllSelected",{get:function(){var e=this.value;if(!e||!Array.isArray(e))return!1;if(this.isItemSelected(this.noneItem))return!1;var t=this.visibleChoices.length;this.hasOther&&t--,this.hasNone&&t--,this.hasSelectAll&&t--;var n=e.length;return this.isOtherSelected&&n--,n===t},set:function(e){e?this.selectAll():this.clearValue()},enumerable:!1,configurable:!0}),t.prototype.toggleSelectAll=function(){this.isAllSelected=!this.isAllSelected},t.prototype.selectAll=function(){for(var e=[],t=0;t<this.visibleChoices.length;t++){var n=this.visibleChoices[t];n!==this.noneItem&&n!==this.otherItem&&n!==this.selectAllItem&&e.push(n.value)}this.renderedValue=e},t.prototype.isItemSelectedCore=function(e){if(e===this.selectAllItem)return this.isAllSelected;var t=this.renderedValue;if(!t||!Array.isArray(t))return!1;for(var n=0;n<t.length;n++)if(this.isTwoValueEquals(t[n],e.value))return!0;return!1},t.prototype.getRealValue=function(e){return e&&this.valuePropertyName?e[this.valuePropertyName]:e},Object.defineProperty(t.prototype,"isValueArray",{get:function(){return!0},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"maxSelectedChoices",{get:function(){return this.getPropertyValue("maxSelectedChoices")},set:function(e){e<0&&(e=0),this.setPropertyValue("maxSelectedChoices",e),this.filterItems()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"minSelectedChoices",{get:function(){return this.getPropertyValue("minSelectedChoices")},set:function(e){e<0&&(e=0),this.setPropertyValue("minSelectedChoices",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"selectedChoices",{get:function(){if(this.isEmpty())return[];var e=this.renderedValue,t=this.defaultSelectedItemValues?[].concat(this.defaultSelectedItemValues,this.visibleChoices):this.visibleChoices,n=e.map((function(e){return l.ItemValue.getItemByValue(t,e)})).filter((function(e){return!!e}));return n.length||this.selectedItemValues||this.updateSelectedItemValues(),this.validateItemValues(n)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"selectedItems",{get:function(){return this.selectedChoices},enumerable:!1,configurable:!0}),t.prototype.getMultipleSelectedItems=function(){return this.selectedChoices},t.prototype.validateItemValues=function(e){if(e.length)return e;var t=this.selectedItemValues;return t&&t.length?(this.defaultSelectedItemValues=[].concat(t),t):this.renderedValue.map((function(e){return new l.ItemValue(e)}))},t.prototype.onCheckForErrors=function(t,n){if(e.prototype.onCheckForErrors.call(this,t,n),!n&&this.minSelectedChoices>0&&this.checkMinSelectedChoicesUnreached()){var r=new c.CustomError(this.getLocalizationFormatString("minSelectError",this.minSelectedChoices),this);t.push(r)}},t.prototype.onEnableItemCallBack=function(e){return!this.shouldCheckMaxSelectedChoices()||this.isItemSelected(e)},t.prototype.onAfterRunItemsEnableCondition=function(){if(this.maxSelectedChoices<1)return this.selectAllItem.setIsEnabled(!0),void this.otherItem.setIsEnabled(!0);this.hasSelectAll&&this.selectAllItem.setIsEnabled(this.maxSelectedChoices>=this.activeChoices.length),this.hasOther&&this.otherItem.setIsEnabled(!this.shouldCheckMaxSelectedChoices()||this.isOtherSelected)},t.prototype.shouldCheckMaxSelectedChoices=function(){if(this.maxSelectedChoices<1)return!1;var e=this.value;return(Array.isArray(e)?e.length:0)>=this.maxSelectedChoices},t.prototype.checkMinSelectedChoicesUnreached=function(){if(this.minSelectedChoices<1)return!1;var e=this.value;return(Array.isArray(e)?e.length:0)<this.minSelectedChoices},t.prototype.getItemClassCore=function(t,n){return this.value,n.isSelectAllItem=t===this.selectAllItem,(new u.CssClassBuilder).append(e.prototype.getItemClassCore.call(this,t,n)).append(this.cssClasses.itemSelectAll,n.isSelectAllItem).toString()},t.prototype.updateValueFromSurvey=function(t){e.prototype.updateValueFromSurvey.call(this,t),this.invisibleOldValues={}},t.prototype.setDefaultValue=function(){e.prototype.setDefaultValue.call(this);var t=this.defaultValue;if(Array.isArray(t))for(var n=0;n<t.length;n++){var r=this.getRealValue(t[n]);this.canClearValueAnUnknown(r)&&this.addIntoInvisibleOldValues(r)}},t.prototype.addIntoInvisibleOldValues=function(e){this.invisibleOldValues[e]=e},t.prototype.hasValueToClearIncorrectValues=function(){return e.prototype.hasValueToClearIncorrectValues.call(this)||!a.Helpers.isValueEmpty(this.invisibleOldValues)},t.prototype.setNewValue=function(t){this.isChangingValueOnClearIncorrect||(this.invisibleOldValues={}),t=this.valueFromData(t);var n=this.value;if(t||(t=[]),n||(n=[]),!this.isTwoValueEquals(n,t)){if(this.hasNone){var r=this.noneIndexInArray(n),o=this.noneIndexInArray(t);r>-1?o>-1&&t.length>1&&t.splice(o,1):o>-1&&(t.splice(0,t.length),t.push(this.noneItem.value))}e.prototype.setNewValue.call(this,t)}},t.prototype.getIsMultipleValue=function(){return!0},t.prototype.getCommentFromValue=function(e){var t=this.getFirstUnknownIndex(e);return t<0?"":e[t]},t.prototype.setOtherValueIntoValue=function(e){var t=this.getFirstUnknownIndex(e);return t<0||e.splice(t,1,this.otherItem.value),e},t.prototype.getFirstUnknownIndex=function(e){if(!Array.isArray(e))return-1;for(var t=0;t<e.length;t++)if(this.hasUnknownValue(e[t],!1,!1))return t;return-1},t.prototype.noneIndexInArray=function(e){if(!e||!Array.isArray(e))return-1;for(var t=this.noneItem.value,n=0;n<e.length;n++)if(e[n]==t)return n;return-1},t.prototype.canUseFilteredChoices=function(){return!this.hasSelectAll&&e.prototype.canUseFilteredChoices.call(this)},t.prototype.supportSelectAll=function(){return this.isSupportProperty("showSelectAllItem")},t.prototype.addToVisibleChoices=function(t,n){this.supportSelectAll()&&this.canShowOptionItem(this.selectAllItem,n,this.hasSelectAll)&&t.unshift(this.selectAllItem),e.prototype.addToVisibleChoices.call(this,t,n)},t.prototype.isHeadChoice=function(e,t){return e===t.selectAllItem},t.prototype.isItemInList=function(t){return t==this.selectAllItem?this.hasSelectAll:e.prototype.isItemInList.call(this,t)},t.prototype.getDisplayValueCore=function(t,n){if(!Array.isArray(n))return e.prototype.getDisplayValueCore.call(this,t,n);var r=this.valuePropertyName;return this.getDisplayArrayValue(t,n,(function(e){var t=n[e];return r&&t[r]&&(t=t[r]),t}))},t.prototype.clearIncorrectValuesCore=function(){this.clearIncorrectAndDisabledValues(!1)},t.prototype.clearDisabledValuesCore=function(){this.clearIncorrectAndDisabledValues(!0)},t.prototype.clearIncorrectAndDisabledValues=function(e){var t=this.value,n=!1,r=this.restoreValuesFromInvisible();if(t||0!=r.length){if(!Array.isArray(t)||0==t.length){if(this.isChangingValueOnClearIncorrect=!0,e||(this.hasComment?this.value=null:this.clearValue()),this.isChangingValueOnClearIncorrect=!1,0==r.length)return;t=[]}for(var o=[],i=0;i<t.length;i++){var s=this.getRealValue(t[i]),a=this.canClearValueAnUnknown(s);!e&&!a||e&&!this.isValueDisabled(s)?o.push(t[i]):(n=!0,a&&this.addIntoInvisibleOldValues(t[i]))}for(i=0;i<r.length;i++)o.push(r[i]),n=!0;n&&(this.isChangingValueOnClearIncorrect=!0,0==o.length?this.clearValue():this.value=o,this.isChangingValueOnClearIncorrect=!1)}},t.prototype.restoreValuesFromInvisible=function(){for(var e=[],t=this.visibleChoices,n=0;n<t.length;n++){var r=t[n].value;a.Helpers.isTwoValueEquals(r,this.invisibleOldValues[r])&&(this.isItemSelected(t[n])||e.push(r),delete this.invisibleOldValues[r])}return e},t.prototype.getConditionJson=function(t,n){void 0===t&&(t=null),void 0===n&&(n=null);var r=e.prototype.getConditionJson.call(this);return"contains"!=t&&"notcontains"!=t||(r.type="radiogroup"),r.maxSelectedChoices=0,r.minSelectedChoices=0,r},t.prototype.isAnswerCorrect=function(){return a.Helpers.isArrayContainsEqual(this.value,this.correctAnswer)},t.prototype.setDefaultValueWithOthers=function(){this.value=this.renderedValueFromDataCore(this.defaultValue)},t.prototype.getIsItemValue=function(e,t){return!(!e||!Array.isArray(e))&&e.indexOf(t.value)>=0},t.prototype.valueFromData=function(t){if(!t)return t;if(!Array.isArray(t))return[e.prototype.valueFromData.call(this,t)];for(var n=[],r=0;r<t.length;r++){var o=l.ItemValue.getItemByValue(this.activeChoices,t[r]);o?n.push(o.value):n.push(t[r])}return n},t.prototype.rendredValueFromData=function(t){return t=this.convertValueFromObject(t),e.prototype.rendredValueFromData.call(this,t)},t.prototype.rendredValueToData=function(t){return t=e.prototype.rendredValueToData.call(this,t),this.convertValueToObject(t)},t.prototype.convertValueFromObject=function(e){return this.valuePropertyName?a.Helpers.convertArrayObjectToValue(e,this.valuePropertyName):e},t.prototype.convertValueToObject=function(e){if(!this.valuePropertyName)return e;var t=void 0;return this.survey&&this.survey.questionCountByValueName(this.getValueName())>1&&(t=this.data.getValue(this.getValueName())),a.Helpers.convertArrayValueToObject(e,this.valuePropertyName,t)},t.prototype.renderedValueFromDataCore=function(e){if(e&&Array.isArray(e)||(e=[]),!this.hasActiveChoices)return e;for(var t=0;t<e.length;t++){if(e[t]==this.otherItem.value)return e;if(this.hasUnknownValue(e[t],!0,!1)){this.otherValue=e[t];var n=e.slice();return n[t]=this.otherItem.value,n}}return e},t.prototype.rendredValueToDataCore=function(e){if(!e||!e.length)return e;for(var t=0;t<e.length;t++)if(e[t]==this.otherItem.value&&this.needConvertRenderedOtherToDataValue()){var n=e.slice();return n[t]=this.otherValue,n}return e},t.prototype.selectOtherValueFromComment=function(e){var t=[],n=this.renderedValue;if(Array.isArray(n))for(var r=0;r<n.length;r++)n[r]!==this.otherItem.value&&t.push(n[r]);e&&t.push(this.otherItem.value),this.value=t},Object.defineProperty(t.prototype,"checkBoxSvgPath",{get:function(){return"M5,13l2-2l3,3l7-7l2,2l-9,9L5,13z"},enumerable:!1,configurable:!0}),t}(s.QuestionCheckboxBase);o.Serializer.addClass("checkbox",[{name:"showSelectAllItem:boolean",alternativeName:"hasSelectAll"},{name:"separateSpecialChoices",visible:!0},{name:"maxSelectedChoices:number",default:0},{name:"minSelectedChoices:number",default:0},{name:"selectAllText",serializationProperty:"locSelectAllText",dependsOn:"showSelectAllItem",visibleIf:function(e){return e.hasSelectAll}},{name:"valuePropertyName",category:"data"},{name:"itemComponent",visible:!1,default:"survey-checkbox-item"}],(function(){return new d("")}),"checkboxbase"),i.QuestionFactory.Instance.registerQuestion("checkbox",(function(e){var t=new d(e);return t.choices=i.QuestionFactory.DefaultChoices,t}))},"./src/question_comment.ts":function(e,t,n){"use strict";n.r(t),n.d(t,"QuestionCommentModel",(function(){return c}));var r,o=n("./src/jsonobject.ts"),i=n("./src/questionfactory.ts"),s=n("./src/question_textbase.ts"),a=n("./src/utils/utils.ts"),l=n("./src/settings.ts"),u=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),c=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return u(t,e),Object.defineProperty(t.prototype,"rows",{get:function(){return this.getPropertyValue("rows")},set:function(e){this.setPropertyValue("rows",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"cols",{get:function(){return this.getPropertyValue("cols")},set:function(e){this.setPropertyValue("cols",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"acceptCarriageReturn",{get:function(){return this.getPropertyValue("acceptCarriageReturn")},set:function(e){this.setPropertyValue("acceptCarriageReturn",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"autoGrow",{get:function(){return this.getPropertyValue("autoGrow")||this.survey&&this.survey.autoGrowComment},set:function(e){this.setPropertyValue("autoGrow",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"allowResize",{get:function(){return this.getPropertyValue("allowResize")&&this.survey&&this.survey.allowResizeComment},set:function(e){this.setPropertyValue("allowResize",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"resizeStyle",{get:function(){return this.allowResize?"both":"none"},enumerable:!1,configurable:!0}),t.prototype.getType=function(){return"comment"},t.prototype.afterRenderQuestionElement=function(t){var n=l.settings.environment.root;this.element=n.getElementById(this.inputId)||t,this.updateElement(),e.prototype.afterRenderQuestionElement.call(this,t)},t.prototype.updateElement=function(){var e=this;this.element&&this.autoGrow&&setTimeout((function(){return Object(a.increaseHeightByContent)(e.element)}),1)},t.prototype.beforeDestroyQuestionElement=function(t){e.prototype.beforeDestroyQuestionElement.call(this,t),this.element=void 0},t.prototype.onInput=function(e){this.isInputTextUpdate?this.value=e.target.value:this.updateElement(),this.updateRemainingCharacterCounter(e.target.value)},t.prototype.onKeyDown=function(e){this.checkForUndo(e),this.acceptCarriageReturn||"Enter"!==e.key&&13!==e.keyCode||(e.preventDefault(),e.stopPropagation())},t.prototype.onValueChanged=function(){e.prototype.onValueChanged.call(this),this.updateElement()},t.prototype.setNewValue=function(t){!this.acceptCarriageReturn&&t&&(t=t.replace(new RegExp("(\r\n|\n|\r)","gm"),"")),e.prototype.setNewValue.call(this,t)},Object.defineProperty(t.prototype,"className",{get:function(){return(this.cssClasses?this.getControlClass():"panel-comment-root")||void 0},enumerable:!1,configurable:!0}),t}(s.QuestionTextBase);o.Serializer.addClass("comment",[{name:"maxLength:number",default:-1},{name:"cols:number",default:50,visible:!1,isSerializable:!1},{name:"rows:number",default:4},{name:"placeholder",alternativeName:"placeHolder",serializationProperty:"locPlaceholder"},{name:"textUpdateMode",default:"default",choices:["default","onBlur","onTyping"]},{name:"autoGrow:boolean"},{name:"allowResize:boolean",default:!0},{name:"acceptCarriageReturn:boolean",default:!0,visible:!1}],(function(){return new c("")}),"textbase"),i.QuestionFactory.Instance.registerQuestion("comment",(function(e){return new c(e)}))},"./src/question_custom.ts":function(e,t,n){"use strict";n.r(t),n.d(t,"ComponentQuestionJSON",(function(){return p})),n.d(t,"ComponentCollection",(function(){return d})),n.d(t,"QuestionCustomModelBase",(function(){return h})),n.d(t,"QuestionCustomModel",(function(){return f})),n.d(t,"QuestionCompositeModel",(function(){return m}));var r,o=n("./src/question.ts"),i=n("./src/jsonobject.ts"),s=n("./src/survey-element.ts"),a=n("./src/helpers.ts"),l=n("./src/textPreProcessor.ts"),u=n("./src/utils/cssClassBuilder.ts"),c=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),p=function(){function e(e,t){this.name=e,this.json=t;var n=this;i.Serializer.addClass(e,[],(function(e){return d.Instance.createQuestion(e?e.name:"",n)}),"question"),this.onInit()}return e.prototype.onInit=function(){this.json.onInit&&this.json.onInit()},e.prototype.onCreated=function(e){this.json.onCreated&&this.json.onCreated(e)},e.prototype.onLoaded=function(e){this.json.onLoaded&&this.json.onLoaded(e)},e.prototype.onAfterRender=function(e,t){this.json.onAfterRender&&this.json.onAfterRender(e,t)},e.prototype.onAfterRenderContentElement=function(e,t,n){this.json.onAfterRenderContentElement&&this.json.onAfterRenderContentElement(e,t,n)},e.prototype.onUpdateQuestionCssClasses=function(e,t,n){this.json.onUpdateQuestionCssClasses&&this.json.onUpdateQuestionCssClasses(e,t,n)},e.prototype.onPropertyChanged=function(e,t,n){this.json.onPropertyChanged&&this.json.onPropertyChanged(e,t,n)},e.prototype.onValueChanged=function(e,t,n){this.json.onValueChanged&&this.json.onValueChanged(e,t,n)},e.prototype.onValueChanging=function(e,t,n){return this.json.onValueChanging?this.json.onValueChanging(e,t,n):n},e.prototype.onItemValuePropertyChanged=function(e,t,n,r,o){this.json.onItemValuePropertyChanged&&this.json.onItemValuePropertyChanged(e,{obj:t,propertyName:n,name:r,newValue:o})},e.prototype.getDisplayValue=function(e,t,n){return this.json.getDisplayValue?this.json.getDisplayValue(n):n.getDisplayValue(e,t)},e.prototype.setValueToQuestion=function(e){var t=this.json.valueToQuestion||this.json.setValue;return t?t(e):e},e.prototype.getValueFromQuestion=function(e){var t=this.json.valueFromQuestion||this.json.getValue;return t?t(e):e},Object.defineProperty(e.prototype,"isComposite",{get:function(){return!!this.json.elementsJSON||!!this.json.createElements},enumerable:!1,configurable:!0}),e}(),d=function(){function e(){this.customQuestionValues=[]}return e.prototype.add=function(e){if(e){var t=e.name;if(!t)throw"Attribute name is missed";if(t=t.toLowerCase(),this.getCustomQuestionByName(t))throw"There is already registered custom question with name '"+t+"'";if(i.Serializer.findClass(t))throw"There is already class with name '"+t+"'";var n=new p(t,e);this.onAddingJson&&this.onAddingJson(t,n.isComposite),this.customQuestionValues.push(n)}},Object.defineProperty(e.prototype,"items",{get:function(){return this.customQuestionValues},enumerable:!1,configurable:!0}),e.prototype.getCustomQuestionByName=function(e){for(var t=0;t<this.customQuestionValues.length;t++)if(this.customQuestionValues[t].name==e)return this.customQuestionValues[t];return null},e.prototype.clear=function(){for(var e=0;e<this.customQuestionValues.length;e++)i.Serializer.removeClass(this.customQuestionValues[e].name);this.customQuestionValues=[]},e.prototype.createQuestion=function(e,t){return t.isComposite?this.createCompositeModel(e,t):this.createCustomModel(e,t)},e.prototype.createCompositeModel=function(e,t){return this.onCreateComposite?this.onCreateComposite(e,t):new m(e,t)},e.prototype.createCustomModel=function(e,t){return this.onCreateCustom?this.onCreateCustom(e,t):new f(e,t)},e.Instance=new e,e}(),h=function(e){function t(t,n){var r=e.call(this,t)||this;return r.customQuestion=n,i.CustomPropertiesCollection.createProperties(r),s.SurveyElement.CreateDisabledDesignElements=!0,r.createWrapper(),s.SurveyElement.CreateDisabledDesignElements=!1,r.customQuestion&&r.customQuestion.onCreated(r),r}return c(t,e),t.prototype.getType=function(){return this.customQuestion?this.customQuestion.name:"custom"},t.prototype.locStrsChanged=function(){e.prototype.locStrsChanged.call(this),this.getElement()&&this.getElement().locStrsChanged()},t.prototype.createWrapper=function(){},t.prototype.onPropertyValueChanged=function(t,n,r){e.prototype.onPropertyValueChanged.call(this,t,n,r),this.customQuestion&&!this.isLoadingFromJson&&this.customQuestion.onPropertyChanged(this,t,r)},t.prototype.itemValuePropertyChanged=function(t,n,r,o){e.prototype.itemValuePropertyChanged.call(this,t,n,r,o),this.customQuestion&&!this.isLoadingFromJson&&this.customQuestion.onItemValuePropertyChanged(this,t,t.ownerPropertyName,n,o)},t.prototype.onFirstRendering=function(){var t=this.getElement();t&&t.onFirstRendering(),e.prototype.onFirstRendering.call(this)},t.prototype.getProgressInfo=function(){var t=e.prototype.getProgressInfo.call(this);return this.getElement()&&(t=this.getElement().getProgressInfo()),this.isRequired&&0==t.requiredQuestionCount&&(t.requiredQuestionCount=1,this.isEmpty()||(t.answeredQuestionCount=1)),t},t.prototype.initElement=function(e){e&&(e.setSurveyImpl(this),e.disableDesignActions=!0)},t.prototype.setSurveyImpl=function(t,n){this.isSettingValOnLoading=!0,e.prototype.setSurveyImpl.call(this,t,n),this.initElement(this.getElement()),this.isSettingValOnLoading=!1},t.prototype.onSurveyLoad=function(){e.prototype.onSurveyLoad.call(this),this.getElement()&&(this.getElement().onSurveyLoad(),this.customQuestion.onLoaded(this))},t.prototype.afterRenderQuestionElement=function(e){},t.prototype.afterRender=function(t){e.prototype.afterRender.call(this,t),this.customQuestion&&this.customQuestion.onAfterRender(this,t)},t.prototype.onUpdateQuestionCssClasses=function(e,t){this.customQuestion&&this.customQuestion.onUpdateQuestionCssClasses(this,e,t)},t.prototype.setQuestionValue=function(t,n){void 0===n&&(n=!0),e.prototype.setQuestionValue.call(this,t,n),this.updateElementCss()},t.prototype.setNewValue=function(t){e.prototype.setNewValue.call(this,t),this.updateElementCss()},t.prototype.getSurveyData=function(){return this},t.prototype.getTextProcessor=function(){return this.textProcessor},t.prototype.getValue=function(e){return this.value},t.prototype.setValue=function(e,t,n,r){if(this.data){var o=this.convertDataName(e),i=this.convertDataValue(e,t);this.valueToDataCallback&&(i=this.valueToDataCallback(i)),this.data.setValue(o,i,n,r),this.updateIsAnswered(),this.updateElementCss(),this.customQuestion&&this.customQuestion.onValueChanged(this,e,t)}},t.prototype.getQuestionByName=function(e){},t.prototype.isValueChanging=function(e,t){if(this.customQuestion){var n=t;if(t=this.customQuestion.onValueChanging(this,e,t),!a.Helpers.isTwoValueEquals(t,n)){var r=this.getQuestionByName(e);if(r)return r.value=t,!0}}return!1},t.prototype.convertDataName=function(e){return this.getValueName()},t.prototype.convertDataValue=function(e,t){return t},t.prototype.getVariable=function(e){return this.data?this.data.getVariable(e):null},t.prototype.setVariable=function(e,t){this.data&&this.data.setVariable(e,t)},t.prototype.getComment=function(e){return this.data?this.data.getComment(this.getValueName()):""},t.prototype.setComment=function(e,t,n){this.data&&this.data.setComment(this.getValueName(),t,n)},t.prototype.getAllValues=function(){return this.data?this.data.getAllValues():{}},t.prototype.getFilteredValues=function(){return this.data?this.data.getFilteredValues():{}},t.prototype.getFilteredProperties=function(){return this.data?this.data.getFilteredProperties():{}},t.prototype.findQuestionByName=function(e){return this.data?this.data.findQuestionByName(e):null},t.prototype.addElement=function(e,t){},t.prototype.removeElement=function(e){return!1},t.prototype.getQuestionTitleLocation=function(){return"left"},t.prototype.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.getContentDisplayValueCore=function(t,n,r){return r?this.customQuestion.getDisplayValue(t,n,r):e.prototype.getDisplayValueCore.call(this,t,n)},t}(o.Question),f=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return c(t,e),t.prototype.getTemplate=function(){return"custom"},t.prototype.createWrapper=function(){this.questionWrapper=this.createQuestion()},t.prototype.getElement=function(){return this.contentQuestion},t.prototype.onAnyValueChanged=function(t){e.prototype.onAnyValueChanged.call(this,t),this.contentQuestion&&this.contentQuestion.onAnyValueChanged(t)},t.prototype.getQuestionByName=function(e){return this.contentQuestion},t.prototype.setValue=function(t,n,r,o){this.isValueChanging(t,n)||e.prototype.setValue.call(this,t,n,r,o)},t.prototype.onSetData=function(){e.prototype.onSetData.call(this),this.survey&&!this.isEmpty()&&this.setValue(this.name,this.value,!1,this.allowNotifyValueChanged)},t.prototype.hasErrors=function(t,n){if(void 0===t&&(t=!0),void 0===n&&(n=null),!this.contentQuestion)return!1;var r=this.contentQuestion.hasErrors(t,n);this.errors=[];for(var o=0;o<this.contentQuestion.errors.length;o++)this.errors.push(this.contentQuestion.errors[o]);return r||(r=e.prototype.hasErrors.call(this,t,n)),this.updateElementCss(),r},t.prototype.focus=function(t){void 0===t&&(t=!1),this.contentQuestion?this.contentQuestion.focus(t):e.prototype.focus.call(this,t)},Object.defineProperty(t.prototype,"contentQuestion",{get:function(){return this.questionWrapper},enumerable:!1,configurable:!0}),t.prototype.createQuestion=function(){var e=this,t=this.customQuestion.json,n=null;if(t.questionJSON){var r=t.questionJSON.type;if(!r||!i.Serializer.findClass(r))throw"type attribute in questionJSON is empty or incorrect";n=i.Serializer.createClass(r),this.initElement(n),n.fromJSON(t.questionJSON)}else t.createQuestion&&(n=t.createQuestion(),this.initElement(n));return n&&(n.isContentElement=!0,n.name||(n.name="question"),n.onUpdateCssClassesCallback=function(t){e.onUpdateQuestionCssClasses(n,t)}),n},t.prototype.onSurveyLoad=function(){e.prototype.onSurveyLoad.call(this),this.contentQuestion&&this.isEmpty()&&!this.contentQuestion.isEmpty()&&(this.value=this.getContentQuestionValue())},t.prototype.runCondition=function(t,n){e.prototype.runCondition.call(this,t,n),this.contentQuestion&&this.contentQuestion.runCondition(t,n)},t.prototype.convertDataName=function(t){if(!this.contentQuestion)return e.prototype.convertDataName.call(this,t);var n=t.replace(this.contentQuestion.getValueName(),this.getValueName());return 0==n.indexOf(this.getValueName())?n:e.prototype.convertDataName.call(this,t)},t.prototype.convertDataValue=function(t,n){return this.convertDataName(t)==e.prototype.convertDataName.call(this,t)?this.getContentQuestionValue():n},t.prototype.getContentQuestionValue=function(){if(this.contentQuestion){var e=this.contentQuestion.value;return this.customQuestion&&(e=this.customQuestion.getValueFromQuestion(e)),e}},t.prototype.setContentQuestionValue=function(e){this.contentQuestion&&(this.customQuestion&&(e=this.customQuestion.setValueToQuestion(e)),this.contentQuestion.value=e)},t.prototype.canSetValueToSurvey=function(){return!1},t.prototype.setQuestionValue=function(t,n){void 0===n&&(n=!0),e.prototype.setQuestionValue.call(this,t,n),this.isLoadingFromJson||!this.contentQuestion||this.isTwoValueEquals(this.getContentQuestionValue(),t)||this.setContentQuestionValue(this.getUnbindValue(t))},t.prototype.onSurveyValueChanged=function(t){e.prototype.onSurveyValueChanged.call(this,t),this.contentQuestion&&this.contentQuestion.onSurveyValueChanged(t)},t.prototype.getValueCore=function(){return this.contentQuestion?this.getContentQuestionValue():e.prototype.getValueCore.call(this)},t.prototype.initElement=function(t){var n=this;e.prototype.initElement.call(this,t),t&&(t.parent=this,t.afterRenderQuestionCallback=function(e,t){n.customQuestion&&n.customQuestion.onAfterRenderContentElement(n,e,t)})},t.prototype.updateElementCss=function(t){this.contentQuestion&&this.questionWrapper.updateElementCss(t),e.prototype.updateElementCss.call(this,t)},t.prototype.updateElementCssCore=function(t){this.contentQuestion&&(t=this.contentQuestion.cssClasses),e.prototype.updateElementCssCore.call(this,t)},t.prototype.getDisplayValueCore=function(t,n){return e.prototype.getContentDisplayValueCore.call(this,t,n,this.contentQuestion)},t}(h),g=function(e){function t(t,n){var r=e.call(this,n)||this;return r.composite=t,r.variableName=n,r}return c(t,e),Object.defineProperty(t.prototype,"survey",{get:function(){return this.composite.survey},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"panel",{get:function(){return this.composite.contentPanel},enumerable:!1,configurable:!0}),t}(l.QuestionTextProcessor),m=function(e){function t(n,r){var o=e.call(this,n,r)||this;return o.customQuestion=r,o.settingNewValue=!1,o.textProcessing=new g(o,t.ItemVariableName),o}return c(t,e),t.prototype.createWrapper=function(){this.panelWrapper=this.createPanel()},t.prototype.getTemplate=function(){return"composite"},t.prototype.getElement=function(){return this.contentPanel},t.prototype.getCssRoot=function(t){return(new u.CssClassBuilder).append(e.prototype.getCssRoot.call(this,t)).append(t.composite).toString()},Object.defineProperty(t.prototype,"contentPanel",{get:function(){return this.panelWrapper},enumerable:!1,configurable:!0}),t.prototype.hasErrors=function(t,n){void 0===t&&(t=!0),void 0===n&&(n=null);var r=e.prototype.hasErrors.call(this,t,n);return this.contentPanel&&this.contentPanel.hasErrors(t,!1,n)||r},t.prototype.updateElementCss=function(t){e.prototype.updateElementCss.call(this,t),this.contentPanel&&this.contentPanel.updateElementCss(t)},t.prototype.getTextProcessor=function(){return this.textProcessing},t.prototype.findQuestionByName=function(t){return this.getQuestionByName(t)||e.prototype.findQuestionByName.call(this,t)},t.prototype.clearValueIfInvisibleCore=function(t){e.prototype.clearValueIfInvisibleCore.call(this,t);for(var n=this.contentPanel.questions,r=0;r<n.length;r++)n[r].clearValueIfInvisible(t)},t.prototype.onAnyValueChanged=function(t){e.prototype.onAnyValueChanged.call(this,t);for(var n=this.contentPanel.questions,r=0;r<n.length;r++)n[r].onAnyValueChanged(t)},t.prototype.createPanel=function(){var e=this,t=i.Serializer.createClass("panel");t.showQuestionNumbers="off",t.renderWidth="100%";var n=this.customQuestion.json;return n.elementsJSON&&t.fromJSON({elements:n.elementsJSON}),n.createElements&&n.createElements(t,this),this.initElement(t),t.readOnly=this.isReadOnly,t.questions.forEach((function(t){return t.onUpdateCssClassesCallback=function(n){e.onUpdateQuestionCssClasses(t,n)}})),this.setAfterRenderCallbacks(t),t},t.prototype.onReadOnlyChanged=function(){this.contentPanel&&(this.contentPanel.readOnly=this.isReadOnly),e.prototype.onReadOnlyChanged.call(this)},t.prototype.onSurveyLoad=function(){if(this.isSettingValOnLoading=!0,this.contentPanel&&(this.contentPanel.readOnly=this.isReadOnly,this.setIsContentElement(this.contentPanel)),e.prototype.onSurveyLoad.call(this),this.contentPanel){var t=this.getContentPanelValue();a.Helpers.isValueEmpty(t)||(this.value=t)}this.isSettingValOnLoading=!1},t.prototype.setIsContentElement=function(e){e.isContentElement=!0;for(var t=e.elements,n=0;n<t.length;n++){var r=t[n];r.isPanel?this.setIsContentElement(r):r.isContentElement=!0}},t.prototype.setVisibleIndex=function(t){var n=e.prototype.setVisibleIndex.call(this,t);return this.isVisible&&this.contentPanel&&(n+=this.contentPanel.setVisibleIndex(t)),n},t.prototype.runCondition=function(n,r){if(e.prototype.runCondition.call(this,n,r),this.contentPanel){var o=n[t.ItemVariableName];n[t.ItemVariableName]=this.contentPanel.getValue(),this.contentPanel.runCondition(n,r),delete n[t.ItemVariableName],o&&(n[t.ItemVariableName]=o)}},t.prototype.getValue=function(e){var t=this.value;return t?t[e]:null},t.prototype.getQuestionByName=function(e){return this.contentPanel?this.contentPanel.getQuestionByName(e):void 0},t.prototype.setValue=function(t,n,r,o){if(this.settingNewValue)this.setNewValueIntoQuestion(t,n);else if(!this.isValueChanging(t,n)){if(this.settingNewValue=!0,!this.isEditingSurveyElement&&this.contentPanel)for(var i=0,s=this.contentPanel.questions.length+1;i<s&&this.updateValueCoreWithPanelValue();)i++;this.setNewValueIntoQuestion(t,n),e.prototype.setValue.call(this,t,n,r,o),this.settingNewValue=!1}},t.prototype.updateValueCoreWithPanelValue=function(){var e=this.getContentPanelValue();return!this.isTwoValueEquals(this.getValueCore(),e)&&(this.setValueCore(e),!0)},t.prototype.getContentPanelValue=function(e){return e||(e=this.contentPanel.getValue()),this.customQuestion.setValueToQuestion(e)},t.prototype.getValueForContentPanel=function(e){return this.customQuestion.getValueFromQuestion(e)},t.prototype.setNewValueIntoQuestion=function(e,t){var n=this.getQuestionByName(e);n&&!this.isTwoValueEquals(t,n.value)&&(n.value=t)},t.prototype.addConditionObjectsByContext=function(e,t){if(this.contentPanel)for(var n=this.contentPanel.questions,r=this.name,o=this.title,i=0;i<n.length;i++)e.push({name:r+"."+n[i].name,text:o+"."+n[i].title,question:n[i]})},t.prototype.collectNestedQuestionsCore=function(e,t){this.contentPanel&&this.contentPanel.questions.forEach((function(n){return n.collectNestedQuestions(e,t)}))},t.prototype.convertDataValue=function(e,t){var n=this.getValueForContentPanel(this.value);return n||(n={}),this.isValueEmpty(t)&&!this.isEditingSurveyElement?delete n[e]:n[e]=t,this.getContentPanelValue(n)},t.prototype.setQuestionValue=function(t,n){void 0===n&&(n=!0),this.setValuesIntoQuestions(t),!this.isEditingSurveyElement&&this.contentPanel&&(t=this.getContentPanelValue()),e.prototype.setQuestionValue.call(this,t,n)},t.prototype.setValuesIntoQuestions=function(e){if(this.contentPanel){e=this.getValueForContentPanel(e);var t=this.settingNewValue;this.settingNewValue=!0;for(var n=this.contentPanel.questions,r=0;r<n.length;r++){var o=n[r].getValueName(),i=e?e[o]:void 0,s=n[r];this.isTwoValueEquals(s.value,i)||(s.value=i)}this.settingNewValue=t}},t.prototype.getDisplayValueCore=function(t,n){return e.prototype.getContentDisplayValueCore.call(this,t,n,this.contentPanel)},t.prototype.setAfterRenderCallbacks=function(e){var t=this;if(e&&this.customQuestion)for(var n=e.questions,r=0;r<n.length;r++)n[r].afterRenderQuestionCallback=function(e,n){t.customQuestion.onAfterRenderContentElement(t,e,n)}},t.ItemVariableName="composite",t}(h)},"./src/question_dropdown.ts":function(e,t,n){"use strict";n.r(t),n.d(t,"QuestionDropdownModel",(function(){return h}));var r,o=n("./src/jsonobject.ts"),i=n("./src/questionfactory.ts"),s=n("./src/question_baseselect.ts"),a=n("./src/itemvalue.ts"),l=n("./src/utils/cssClassBuilder.ts"),u=n("./src/dropdownListModel.ts"),c=n("./src/settings.ts"),p=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),d=function(e,t,n,r){var o,i=arguments.length,s=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,r);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(i<3?o(s):i>3?o(t,n,s):o(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},h=function(e){function t(t){var n=e.call(this,t)||this;return n.lastSelectedItemValue=null,n.minMaxChoices=[],n.onOpened=n.addEvent(),n.createLocalizableString("placeholder",n,!1,!0),n.createLocalizableString("clearCaption",n,!1,!0),n.registerPropertyChangedHandlers(["choicesMin","choicesMax","choicesStep"],(function(){n.onVisibleChoicesChanged()})),n.registerPropertyChangedHandlers(["value","renderAs","showOtherItem","otherText","placeholder","choices","visibleChoices"],(function(){n.updateReadOnlyText()})),n.updateReadOnlyText(),n}return p(t,e),t.prototype.updateReadOnlyText=function(){var e=this.selectedItem?"":this.placeholder;"select"==this.renderAs&&(this.isOtherSelected?e=this.otherText:this.isNoneSelected?e=this.noneText:this.selectedItem&&(e=this.selectedItemText)),this.readOnlyText=e},t.prototype.locStrsChanged=function(){e.prototype.locStrsChanged.call(this),this.updateReadOnlyText()},Object.defineProperty(t.prototype,"showOptionsCaption",{get:function(){return this.allowClear},set:function(e){this.allowClear=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"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!0},t.prototype.getChoices=function(){var t=e.prototype.getChoices.call(this);if(this.choicesMax<=this.choicesMin)return t;for(var n=[],r=0;r<t.length;r++)n.push(t[r]);if(0===this.minMaxChoices.length||this.minMaxChoices.length!==(this.choicesMax-this.choicesMin)/this.choicesStep+1)for(this.minMaxChoices=[],r=this.choicesMin;r<=this.choicesMax;r+=this.choicesStep)this.minMaxChoices.push(new a.ItemValue(r));return n.concat(this.minMaxChoices)},Object.defineProperty(t.prototype,"choicesMin",{get:function(){return this.getPropertyValue("choicesMin")},set:function(e){this.setPropertyValue("choicesMin",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"choicesMax",{get:function(){return this.getPropertyValue("choicesMax")},set:function(e){this.setPropertyValue("choicesMax",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"choicesStep",{get:function(){return this.getPropertyValue("choicesStep")},set:function(e){e<1&&(e=1),this.setPropertyValue("choicesStep",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"autocomplete",{get:function(){return this.getPropertyValue("autocomplete","")},set:function(e){this.setPropertyValue("autocomplete",e)},enumerable:!1,configurable:!0}),t.prototype.getControlClass=function(){return(new l.CssClassBuilder).append(this.cssClasses.control).append(this.cssClasses.controlEmpty,this.isEmpty()).append(this.cssClasses.onError,this.errors.length>0).append(this.cssClasses.controlDisabled,this.isReadOnly).append(this.cssClasses.controlInputFieldComponent,!!this.inputFieldComponentName).toString()},Object.defineProperty(t.prototype,"selectedItemLocText",{get:function(){var e=this.suggestedItem||this.selectedItem;return null==e?void 0:e.locText},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"inputFieldComponentName",{get:function(){return this.inputFieldComponent||this.itemComponent},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"showSelectedItemLocText",{get:function(){return!this.inputHasValue&&!this.inputFieldComponentName&&!!this.selectedItemLocText},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"showInputFieldComponent",{get:function(){return!this.inputHasValue&&!!this.inputFieldComponentName&&!this.isEmpty()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"selectedItemText",{get:function(){var e=this.selectedItem;return e?e.text:""},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"dropdownListModel",{get:function(){return"select"===this.renderAs||this.dropdownListModelValue||(this.dropdownListModelValue=new u.DropdownListModel(this)),this.dropdownListModelValue},set:function(e){this.dropdownListModelValue=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"popupModel",{get:function(){var e;return null===(e=this.dropdownListModel)||void 0===e?void 0:e.popupModel},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"ariaExpanded",{get:function(){var e=this.popupModel;return e&&e.isVisible?"true":"false"},enumerable:!1,configurable:!0}),t.prototype.onOpenedCallBack=function(){this.onOpened.fire(this,{question:this,choices:this.choices})},t.prototype.onSelectedItemValuesChangedHandler=function(t){var n;null===(n=this.dropdownListModel)||void 0===n||n.setInputStringFromSelectedItem(t),e.prototype.onSelectedItemValuesChangedHandler.call(this,t)},t.prototype.hasUnknownValue=function(t,n,r,o){return!this.choicesLazyLoadEnabled&&e.prototype.hasUnknownValue.call(this,t,n,r,o)},t.prototype.needConvertRenderedOtherToDataValue=function(){var t,n=null===(t=this.otherValue)||void 0===t?void 0:t.trim();return!!n&&e.prototype.hasUnknownValue.call(this,n,!0,!1)},t.prototype.getItemIfChoicesNotContainThisValue=function(t,n){return this.choicesLazyLoadEnabled&&!this.dropdownListModel.isAllDataLoaded?this.createItemValue(t,n):e.prototype.getItemIfChoicesNotContainThisValue.call(this,t,n)},t.prototype.onVisibleChoicesChanged=function(){e.prototype.onVisibleChoicesChanged.call(this),this.popupModel&&this.dropdownListModel.updateItems()},t.prototype.getFirstInputElementId=function(){return this.inputId+(this.searchEnabled?"_0":"")},t.prototype.getInputId=function(){return this.inputId+"_0"},t.prototype.clearValue=function(){var t;e.prototype.clearValue.call(this),this.lastSelectedItemValue=null,null===(t=this.dropdownListModel)||void 0===t||t.clear()},t.prototype.onClick=function(e){this.onOpenedCallBack&&this.onOpenedCallBack()},t.prototype.onKeyUp=function(e){46===(e.which||e.keyCode)&&(this.clearValue(),e.preventDefault(),e.stopPropagation())},t.prototype.dispose=function(){e.prototype.dispose.call(this),this.dropdownListModelValue&&this.dropdownListModelValue.dispose()},d([Object(o.property)()],t.prototype,"allowClear",void 0),d([Object(o.property)({onSet:function(e,t){t.dropdownListModel&&t.dropdownListModel.setSearchEnabled(e)}})],t.prototype,"searchEnabled",void 0),d([Object(o.property)({defaultValue:!1})],t.prototype,"inputHasValue",void 0),d([Object(o.property)({defaultValue:""})],t.prototype,"readOnlyText",void 0),d([Object(o.property)()],t.prototype,"choicesLazyLoadEnabled",void 0),d([Object(o.property)({defaultValue:25})],t.prototype,"choicesLazyLoadPageSize",void 0),d([Object(o.property)()],t.prototype,"suggestedItem",void 0),t}(s.QuestionSelectBase);o.Serializer.addClass("dropdown",[{name:"placeholder",alternativeName:"optionsCaption",serializationProperty:"locPlaceholder"},{name:"allowClear:boolean",alternativeName:"showOptionsCaption",default:!0},{name:"choicesMin:number",default:0},{name:"choicesMax:number",default:0},{name:"choicesStep:number",default:1,minValue:1},{name:"autocomplete",alternativeName:"autoComplete",choices:c.settings.questions.dataList},{name:"renderAs",default:"default",visible:!1},{name:"searchEnabled:boolean",default:!0,visible:!1},{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 h("")}),"selectbase"),i.QuestionFactory.Instance.registerQuestion("dropdown",(function(e){var t=new h(e);return t.choices=i.QuestionFactory.DefaultChoices,t}))},"./src/question_empty.ts":function(e,t,n){"use strict";n.r(t),n.d(t,"QuestionEmptyModel",(function(){return a}));var r,o=n("./src/jsonobject.ts"),i=n("./src/question.ts"),s=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),a=function(e){function t(t){return e.call(this,t)||this}return s(t,e),t.prototype.getType=function(){return"empty"},t}(i.Question);o.Serializer.addClass("empty",[],(function(){return new a("")}),"question")},"./src/question_expression.ts":function(e,t,n){"use strict";n.r(t),n.d(t,"QuestionExpressionModel",(function(){return c})),n.d(t,"getCurrecyCodes",(function(){return p}));var r,o=n("./src/helpers.ts"),i=n("./src/question.ts"),s=n("./src/jsonobject.ts"),a=n("./src/questionfactory.ts"),l=n("./src/conditions.ts"),u=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),c=function(e){function t(t){var n=e.call(this,t)||this;return n.createLocalizableString("format",n),n.registerPropertyChangedHandlers(["expression"],(function(){n.expressionRunner&&(n.expressionRunner=new l.ExpressionRunner(n.expression))})),n.registerPropertyChangedHandlers(["format","currency","displayStyle"],(function(){n.updateFormatedValue()})),n}return u(t,e),t.prototype.getType=function(){return"expression"},Object.defineProperty(t.prototype,"hasInput",{get:function(){return!1},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"format",{get:function(){return this.getLocalizableStringText("format","")},set:function(e){this.setLocalizableStringText("format",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locFormat",{get:function(){return this.getLocalizableString("format")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"expression",{get:function(){return this.getPropertyValue("expression","")},set:function(e){this.setPropertyValue("expression",e)},enumerable:!1,configurable:!0}),t.prototype.locCalculation=function(){this.expressionIsRunning=!0},t.prototype.unlocCalculation=function(){this.expressionIsRunning=!1},t.prototype.runCondition=function(t,n){var r=this;e.prototype.runCondition.call(this,t,n),!this.expression||this.expressionIsRunning||!this.runIfReadOnly&&this.isReadOnly||(this.locCalculation(),this.expressionRunner||(this.expressionRunner=new l.ExpressionRunner(this.expression)),this.expressionRunner.onRunComplete=function(e){r.value=r.roundValue(e),r.unlocCalculation()},this.expressionRunner.run(t,n))},t.prototype.canCollectErrors=function(){return!0},t.prototype.hasRequiredError=function(){return!1},Object.defineProperty(t.prototype,"maximumFractionDigits",{get:function(){return this.getPropertyValue("maximumFractionDigits")},set:function(e){e<-1||e>20||this.setPropertyValue("maximumFractionDigits",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"minimumFractionDigits",{get:function(){return this.getPropertyValue("minimumFractionDigits")},set:function(e){e<-1||e>20||this.setPropertyValue("minimumFractionDigits",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"runIfReadOnly",{get:function(){return!0===this.runIfReadOnlyValue},set:function(e){this.runIfReadOnlyValue=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"formatedValue",{get:function(){return this.getPropertyValue("formatedValue","")},enumerable:!1,configurable:!0}),t.prototype.updateFormatedValue=function(){this.setPropertyValue("formatedValue",this.getDisplayValueCore(!1,this.value))},t.prototype.onValueChanged=function(){this.updateFormatedValue()},t.prototype.updateValueFromSurvey=function(t){e.prototype.updateValueFromSurvey.call(this,t),this.updateFormatedValue()},t.prototype.getDisplayValueCore=function(e,t){var n=this.isValueEmpty(t)?this.defaultValue:t,r="";if(!this.isValueEmpty(n)){var o=this.getValueAsStr(n);r=this.format?this.format.format(o):o}return this.survey&&(r=this.survey.getExpressionDisplayValue(this,n,r)),r},Object.defineProperty(t.prototype,"displayStyle",{get:function(){return this.getPropertyValue("displayStyle")},set:function(e){this.setPropertyValue("displayStyle",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"currency",{get:function(){return this.getPropertyValue("currency")},set:function(e){["AED","AFN","ALL","AMD","ANG","AOA","ARS","AUD","AWG","AZN","BAM","BBD","BDT","BGN","BHD","BIF","BMD","BND","BOB","BOV","BRL","BSD","BTN","BWP","BYN","BZD","CAD","CDF","CHE","CHF","CHW","CLF","CLP","CNY","COP","COU","CRC","CUC","CUP","CVE","CZK","DJF","DKK","DOP","DZD","EGP","ERN","ETB","EUR","FJD","FKP","GBP","GEL","GHS","GIP","GMD","GNF","GTQ","GYD","HKD","HNL","HRK","HTG","HUF","IDR","ILS","INR","IQD","IRR","ISK","JMD","JOD","JPY","KES","KGS","KHR","KMF","KPW","KRW","KWD","KYD","KZT","LAK","LBP","LKR","LRD","LSL","LYD","MAD","MDL","MGA","MKD","MMK","MNT","MOP","MRO","MUR","MVR","MWK","MXN","MXV","MYR","MZN","NAD","NGN","NIO","NOK","NPR","NZD","OMR","PAB","PEN","PGK","PHP","PKR","PLN","PYG","QAR","RON","RSD","RUB","RWF","SAR","SBD","SCR","SDG","SEK","SGD","SHP","SLL","SOS","SRD","SSP","STD","SVC","SYP","SZL","THB","TJS","TMT","TND","TOP","TRY","TTD","TWD","TZS","UAH","UGX","USD","USN","UYI","UYU","UZS","VEF","VND","VUV","WST","XAF","XAG","XAU","XBA","XBB","XBC","XBD","XCD","XDR","XOF","XPD","XPF","XPT","XSU","XTS","XUA","XXX","YER","ZAR","ZMW","ZWL"].indexOf(e)<0||this.setPropertyValue("currency",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"useGrouping",{get:function(){return this.getPropertyValue("useGrouping")},set:function(e){this.setPropertyValue("useGrouping",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"precision",{get:function(){return this.getPropertyValue("precision")},set:function(e){this.setPropertyValue("precision",e)},enumerable:!1,configurable:!0}),t.prototype.roundValue=function(e){return this.precision<0?e:o.Helpers.isNumber(e)?parseFloat(e.toFixed(this.precision)):e},t.prototype.getValueAsStr=function(e){if("date"==this.displayStyle){var t=new Date(e);if(t&&t.toLocaleDateString)return t.toLocaleDateString()}if("none"!=this.displayStyle&&o.Helpers.isNumber(e)){var n=this.getLocale();n||(n="en");var r={style:this.displayStyle,currency:this.currency,useGrouping:this.useGrouping};return this.maximumFractionDigits>-1&&(r.maximumFractionDigits=this.maximumFractionDigits),this.minimumFractionDigits>-1&&(r.minimumFractionDigits=this.minimumFractionDigits),e.toLocaleString(n,r)}return e.toString()},t}(i.Question);function p(){return["AED","AFN","ALL","AMD","ANG","AOA","ARS","AUD","AWG","AZN","BAM","BBD","BDT","BGN","BHD","BIF","BMD","BND","BOB","BOV","BRL","BSD","BTN","BWP","BYN","BZD","CAD","CDF","CHE","CHF","CHW","CLF","CLP","CNY","COP","COU","CRC","CUC","CUP","CVE","CZK","DJF","DKK","DOP","DZD","EGP","ERN","ETB","EUR","FJD","FKP","GBP","GEL","GHS","GIP","GMD","GNF","GTQ","GYD","HKD","HNL","HRK","HTG","HUF","IDR","ILS","INR","IQD","IRR","ISK","JMD","JOD","JPY","KES","KGS","KHR","KMF","KPW","KRW","KWD","KYD","KZT","LAK","LBP","LKR","LRD","LSL","LYD","MAD","MDL","MGA","MKD","MMK","MNT","MOP","MRO","MUR","MVR","MWK","MXN","MXV","MYR","MZN","NAD","NGN","NIO","NOK","NPR","NZD","OMR","PAB","PEN","PGK","PHP","PKR","PLN","PYG","QAR","RON","RSD","RUB","RWF","SAR","SBD","SCR","SDG","SEK","SGD","SHP","SLL","SOS","SRD","SSP","STD","SVC","SYP","SZL","THB","TJS","TMT","TND","TOP","TRY","TTD","TWD","TZS","UAH","UGX","USD","USN","UYI","UYU","UZS","VEF","VND","VUV","WST","XAF","XAG","XAU","XBA","XBB","XBC","XBD","XCD","XDR","XOF","XPD","XPF","XPT","XSU","XTS","XUA","XXX","YER","ZAR","ZMW","ZWL"]}s.Serializer.addClass("expression",["expression:expression",{name:"format",serializationProperty:"locFormat"},{name:"displayStyle",default:"none",choices:["none","decimal","currency","percent","date"]},{name:"currency",choices:function(){return["AED","AFN","ALL","AMD","ANG","AOA","ARS","AUD","AWG","AZN","BAM","BBD","BDT","BGN","BHD","BIF","BMD","BND","BOB","BOV","BRL","BSD","BTN","BWP","BYN","BZD","CAD","CDF","CHE","CHF","CHW","CLF","CLP","CNY","COP","COU","CRC","CUC","CUP","CVE","CZK","DJF","DKK","DOP","DZD","EGP","ERN","ETB","EUR","FJD","FKP","GBP","GEL","GHS","GIP","GMD","GNF","GTQ","GYD","HKD","HNL","HRK","HTG","HUF","IDR","ILS","INR","IQD","IRR","ISK","JMD","JOD","JPY","KES","KGS","KHR","KMF","KPW","KRW","KWD","KYD","KZT","LAK","LBP","LKR","LRD","LSL","LYD","MAD","MDL","MGA","MKD","MMK","MNT","MOP","MRO","MUR","MVR","MWK","MXN","MXV","MYR","MZN","NAD","NGN","NIO","NOK","NPR","NZD","OMR","PAB","PEN","PGK","PHP","PKR","PLN","PYG","QAR","RON","RSD","RUB","RWF","SAR","SBD","SCR","SDG","SEK","SGD","SHP","SLL","SOS","SRD","SSP","STD","SVC","SYP","SZL","THB","TJS","TMT","TND","TOP","TRY","TTD","TWD","TZS","UAH","UGX","USD","USN","UYI","UYU","UZS","VEF","VND","VUV","WST","XAF","XAG","XAU","XBA","XBB","XBC","XBD","XCD","XDR","XOF","XPD","XPF","XPT","XSU","XTS","XUA","XXX","YER","ZAR","ZMW","ZWL"]},default:"USD"},{name:"maximumFractionDigits:number",default:-1},{name:"minimumFractionDigits:number",default:-1},{name:"useGrouping:boolean",default:!0},{name:"precision:number",default:-1,category:"data"},{name:"enableIf",visible:!1},{name:"isRequired",visible:!1},{name:"readOnly",visible:!1},{name:"requiredErrorText",visible:!1},{name:"defaultValueExpression",visible:!1},{name:"defaultValue",visible:!1},{name:"correctAnswer",visible:!1},{name:"requiredIf",visible:!1}],(function(){return new c("")}),"question"),a.QuestionFactory.Instance.registerQuestion("expression",(function(e){return new c(e)}))},"./src/question_file.ts":function(e,t,n){"use strict";n.r(t),n.d(t,"QuestionFileModel",(function(){return g})),n.d(t,"FileLoader",(function(){return m}));var r,o=n("./src/question.ts"),i=n("./src/jsonobject.ts"),s=n("./src/questionfactory.ts"),a=n("./src/error.ts"),l=n("./src/utils/cssClassBuilder.ts"),u=n("./src/utils/utils.ts"),c=n("./src/actions/container.ts"),p=n("./src/actions/action.ts"),d=n("./src/helpers.ts"),h=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),f=function(e,t,n,r){var o,i=arguments.length,s=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,r);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(i<3?o(s):i>3?o(t,n,s):o(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},g=function(e){function t(t){var n=e.call(this,t)||this;return n.isUploading=!1,n.isDragging=!1,n.onUploadStateChanged=n.addEvent(),n.onStateChanged=n.addEvent(),n.mobileFileNavigator=new c.ActionContainer,n.dragCounter=0,n.onDragEnter=function(e){n.isInputReadOnly||(e.preventDefault(),n.isDragging=!0,n.dragCounter++)},n.onDragOver=function(e){if(n.isInputReadOnly)return e.returnValue=!1,!1;e.dataTransfer.dropEffect="copy",e.preventDefault()},n.onDrop=function(e){if(!n.isInputReadOnly){n.isDragging=!1,n.dragCounter=0,e.preventDefault();var t=e.dataTransfer;n.onChange(t)}},n.onDragLeave=function(e){n.isInputReadOnly||(n.dragCounter--,0===n.dragCounter&&(n.isDragging=!1))},n.doChange=function(e){var t=e.target||e.srcElement;n.onChange(t)},n.doClean=function(e){e.currentTarget||e.srcElement,n.needConfirmRemoveFile&&!Object(u.confirmAction)(n.confirmRemoveAllMessage)||(n.rootElement&&(n.rootElement.querySelectorAll("input")[0].value=""),n.clear())},n.doDownloadFile=function(e,t){Object(u.detectIEOrEdge)()&&(e.preventDefault(),Object(u.loadFileFromBase64)(t.content,t.name))},n.fileIndexAction=new p.Action({id:"fileIndex",title:n.getFileIndexCaption(),enabled:!1}),n.prevFileAction=new p.Action({id:"prevPage",iconSize:16,action:function(){n.indexToShow=n.previewValue.length&&(n.indexToShow-1+n.previewValue.length)%n.previewValue.length||0,n.fileIndexAction.title=n.getFileIndexCaption()}}),n.nextFileAction=new p.Action({id:"nextPage",iconSize:16,action:function(){n.indexToShow=n.previewValue.length&&(n.indexToShow+1)%n.previewValue.length||0,n.fileIndexAction.title=n.getFileIndexCaption()}}),n.mobileFileNavigator.actions=[n.prevFileAction,n.fileIndexAction,n.nextFileAction],n}return h(t,e),Object.defineProperty(t.prototype,"mobileFileNavigatorVisible",{get:function(){return this.isMobile&&this.containsMultiplyFiles},enumerable:!1,configurable:!0}),t.prototype.updateElementCssCore=function(t){e.prototype.updateElementCssCore.call(this,t),this.prevFileAction.iconName=this.cssClasses.leftIconId,this.nextFileAction.iconName=this.cssClasses.rightIconId},t.prototype.getFileIndexCaption=function(){return this.getLocalizationFormatString("indexText",this.indexToShow+1,this.previewValue.length)},t.prototype.previewValueChanged=function(){this.indexToShow=this.previewValue.length>0&&this.indexToShow>0?this.indexToShow-1:0,this.fileIndexAction.title=this.getFileIndexCaption(),this.containsMultiplyFiles=this.previewValue.length>1},t.prototype.isPreviewVisible=function(e){return!this.isMobile||e===this.indexToShow},t.prototype.getType=function(){return"file"},t.prototype.clearValue=function(){this.clearOnDeletingContainer(),e.prototype.clearValue.call(this)},t.prototype.clearOnDeletingContainer=function(){this.survey&&this.survey.clearFiles(this,this.name,this.value,null,(function(){}))},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,"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}),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}),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,"inputTitle",{get:function(){return this.isUploading?this.loadingFileTitle:this.isEmpty()?this.chooseFileTitle:" "},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"chooseButtonText",{get:function(){return this.isEmpty()||this.allowMultiple?this.chooseButtonCaption:this.replaceButtonCaption},enumerable:!1,configurable:!0}),t.prototype.clear=function(e){var t=this;this.survey&&(this.containsMultiplyFiles=!1,this.survey.clearFiles(this,this.name,this.value,null,(function(n,r){"success"===n&&(t.value=void 0,t.errors=[],e&&e(),t.indexToShow=0,t.fileIndexAction.title=t.getFileIndexCaption())})))},Object.defineProperty(t.prototype,"renderCapture",{get:function(){return this.allowCameraAccess?"user":void 0},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"multipleRendered",{get:function(){return this.allowMultiple?"multiple":void 0},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"showRemoveButton",{get:function(){return!this.isReadOnly&&!this.isEmpty()&&this.cssClasses.removeButton},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"showRemoveButtonBottom",{get:function(){return!this.isReadOnly&&!this.isEmpty()&&this.cssClasses.removeButtonBottom},enumerable:!1,configurable:!0}),t.prototype.defaultImage=function(e){return!this.canPreviewImage(e)&&!!this.cssClasses.defaultImage},t.prototype.removeFile=function(e){this.removeFileByContent(this.value.filter((function(t){return t.name===e}))[0])},t.prototype.removeFileByContent=function(e){var t=this;this.survey&&this.survey.clearFiles(this,this.name,this.value,e.name,(function(n,r){if("success"===n){var o=t.value;Array.isArray(o)?t.value=o.filter((function(t){return!d.Helpers.isTwoValueEquals(t,e,!0,!1,!1)})):t.value=void 0}}))},t.prototype.loadFiles=function(e){var t=this;if(this.survey&&(this.errors=[],this.allFilesOk(e))){var n=function(){t.stateChanged("loading");var n=[];t.storeDataAsText?e.forEach((function(r){var o=new FileReader;o.onload=function(i){(n=n.concat([{name:r.name,type:r.type,content:o.result}])).length===e.length&&(t.value=(t.value||[]).concat(n))},o.readAsDataURL(r)})):t.survey&&t.survey.uploadFiles(t,t.name,e,(function(e,n){"error"===e&&t.stateChanged("error"),"success"===e&&(t.value=(t.value||[]).concat(n.map((function(e){return{name:e.file.name,type:e.file.type,content:e.content}}))))}))};this.allowMultiple?n():this.clear(n)}},t.prototype.canPreviewImage=function(e){return this.allowImagesPreview&&!!e&&this.isFileImage(e)},t.prototype.loadPreview=function(e){var t=this;if(this.previewValue.splice(0,this.previewValue.length),this.showPreview&&e){var n=Array.isArray(e)?e:e?[e]:[];this.storeDataAsText?n.forEach((function(e){var n=e.content||e;t.previewValue.push({name:e.name,type:e.type,content:n})})):(this._previewLoader&&this._previewLoader.dispose(),this.isReadyValue=!1,this._previewLoader=new m(this,(function(e,n){"loaded"===e&&(n.forEach((function(e){t.previewValue.push(e)})),t.previewValueChanged()),t.isReady=!0,t._previewLoader.dispose(),t._previewLoader=void 0})),this._previewLoader.load(n)),this.previewValueChanged()}},t.prototype.onCheckForErrors=function(t,n){e.prototype.onCheckForErrors.call(this,t,n),this.isUploading&&this.waitForUpload&&t.push(new a.UploadingFileError(this.getLocalizationString("uploadingFile"),this))},t.prototype.stateChanged=function(e){this.currentState!=e&&("loading"===e&&(this.isUploading=!0),"loaded"===e&&(this.isUploading=!1),"error"===e&&(this.isUploading=!1),this.currentState=e,this.onStateChanged.fire(this,{state:e}),this.onUploadStateChanged.fire(this,{state:e}))},t.prototype.allFilesOk=function(e){var t=this,n=this.errors?this.errors.length:0;return(e||[]).forEach((function(e){t.maxSize>0&&e.size>t.maxSize&&t.errors.push(new a.ExceedSizeError(t.maxSize,t))})),n===this.errors.length},t.prototype.isFileImage=function(e){if(!e||!e.content||!e.content.substring)return!1;var t=e.content&&e.content.substring(0,10);return"data:image"===(t=t&&t.toLowerCase())||!!e.type&&0===e.type.toLowerCase().indexOf("image/")},t.prototype.getPlainData=function(t){void 0===t&&(t={includeEmpty:!0});var n=e.prototype.getPlainData.call(this,t);if(n&&!this.isEmpty()){n.isNode=!1;var r=Array.isArray(this.value)?this.value:[this.value];n.data=r.map((function(e,t){return{name:t,title:"File",value:e.content&&e.content||e,displayValue:e.name&&e.name||e,getString:function(e){return"object"==typeof e?JSON.stringify(e):e},isNode:!1}}))}return n},t.prototype.getChooseFileCss=function(){var e=this.isAnswered;return(new l.CssClassBuilder).append(this.cssClasses.chooseFile).append(this.cssClasses.controlDisabled,this.isReadOnly).append(this.cssClasses.chooseFileAsText,!e).append(this.cssClasses.chooseFileAsTextDisabled,!e&&this.isInputReadOnly).append(this.cssClasses.chooseFileAsIcon,e).toString()},t.prototype.getReadOnlyFileCss=function(){return(new l.CssClassBuilder).append("form-control").append(this.cssClasses.placeholderInput).toString()},Object.defineProperty(t.prototype,"fileRootCss",{get:function(){return(new l.CssClassBuilder).append(this.cssClasses.root).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 l.CssClassBuilder).append(this.cssClasses.fileDecorator).append(this.cssClasses.onError,this.errors.length>0).append(this.cssClasses.fileDecoratorDrag,this.isDragging).toString()},t.prototype.onChange=function(e){if(window.FileReader&&e&&e.files&&!(e.files.length<1)){for(var t=[],n=this.allowMultiple?e.files.length:1,r=0;r<n;r++)t.push(e.files[r]);e.value="",this.loadFiles(t)}},t.prototype.onChangeQuestionValue=function(t){e.prototype.onChangeQuestionValue.call(this,t),this.stateChanged(this.isEmpty()?"empty":"loaded"),this.isLoadingFromJson||this.loadPreview(t)},t.prototype.endLoadingFromJson=function(){e.prototype.endLoadingFromJson.call(this),this.loadPreview(this.value)},t.prototype.afterRender=function(t){this.rootElement=t,e.prototype.afterRender.call(this,t)},t.prototype.doRemoveFile=function(e){if(!this.needConfirmRemoveFile||Object(u.confirmAction)(this.getConfirmRemoveMessage(e.name))){var t=this.previewValue.indexOf(e);this.removeFileByContent(-1===t?e:this.value[t])}},f([Object(i.property)()],t.prototype,"isDragging",void 0),f([Object(i.propertyArray)({})],t.prototype,"previewValue",void 0),f([Object(i.property)({defaultValue:"empty"})],t.prototype,"currentState",void 0),f([Object(i.property)({defaultValue:0})],t.prototype,"indexToShow",void 0),f([Object(i.property)({defaultValue:!1})],t.prototype,"containsMultiplyFiles",void 0),f([Object(i.property)()],t.prototype,"allowCameraAccess",void 0),f([Object(i.property)({localizable:{defaultStr:"confirmRemoveFile"}})],t.prototype,"confirmRemoveMessage",void 0),f([Object(i.property)({localizable:{defaultStr:"confirmRemoveAllFiles"}})],t.prototype,"confirmRemoveAllMessage",void 0),f([Object(i.property)({localizable:{defaultStr:"noFileChosen"}})],t.prototype,"noFileChosenCaption",void 0),f([Object(i.property)({localizable:{defaultStr:"chooseFileCaption"}})],t.prototype,"chooseButtonCaption",void 0),f([Object(i.property)({localizable:{defaultStr:"replaceFileCaption"}})],t.prototype,"replaceButtonCaption",void 0),f([Object(i.property)({localizable:{defaultStr:"clearCaption"}})],t.prototype,"clearButtonCaption",void 0),f([Object(i.property)({localizable:{defaultStr:"removeFileCaption"}})],t.prototype,"removeFileCaption",void 0),f([Object(i.property)({localizable:{defaultStr:"loadingFile"}})],t.prototype,"loadingFileTitle",void 0),f([Object(i.property)({localizable:{defaultStr:"chooseFile"}})],t.prototype,"chooseFileTitle",void 0),f([Object(i.property)({localizable:{defaultStr:"fileDragAreaPlaceholder"}})],t.prototype,"dragAreaPlaceholder",void 0),t}(o.Question);i.Serializer.addClass("file",[{name:"showCommentArea:switch",layout:"row",visible:!0,category:"general"},{name:"showPreview:boolean",default:!0},"allowMultiple:boolean",{name:"allowImagesPreview:boolean",default:!0},"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:"allowCameraAccess:switch",category:"general"}],(function(){return new g("")}),"question"),s.QuestionFactory.Instance.registerQuestion("file",(function(e){return new g(e)}));var m=function(){function e(e,t){this.fileQuestion=e,this.callback=t,this.loaded=[]}return e.prototype.load=function(e){var t=this,n=0;this.loaded=new Array(e.length),e.forEach((function(r,o){t.fileQuestion.survey&&t.fileQuestion.survey.downloadFile(t.fileQuestion,t.fileQuestion.name,r,(function(i,s){t.fileQuestion&&t.callback&&("success"===i?(t.loaded[o]={content:s,name:r.name,type:r.type},++n===e.length&&t.callback("loaded",t.loaded)):t.callback("error",t.loaded))}))}))},e.prototype.dispose=function(){this.fileQuestion=void 0,this.callback=void 0},e}()},"./src/question_html.ts":function(e,t,n){"use strict";n.r(t),n.d(t,"QuestionHtmlModel",(function(){return l}));var r,o=n("./src/questionnonvalue.ts"),i=n("./src/jsonobject.ts"),s=n("./src/questionfactory.ts"),a=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),l=function(e){function t(t){var n=e.call(this,t)||this;return n.createLocalizableString("html",n).onGetTextCallback=function(e){return n.survey&&!n.ignoreHtmlProgressing?n.processHtml(e):e},n}return a(t,e),t.prototype.getType=function(){return"html"},Object.defineProperty(t.prototype,"isCompositeQuestion",{get:function(){return!0},enumerable:!1,configurable:!0}),t.prototype.getProcessedText=function(t){return this.ignoreHtmlProgressing?t:e.prototype.getProcessedText.call(this,t)},Object.defineProperty(t.prototype,"html",{get:function(){return this.getLocalizableStringText("html","")},set:function(e){this.setLocalizableStringText("html",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locHtml",{get:function(){return this.getLocalizableString("html")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"processedHtml",{get:function(){return this.processHtml(this.html)},enumerable:!1,configurable:!0}),t.prototype.processHtml=function(e){return this.survey?this.survey.processHtml(e,"html-question"):this.html},t}(o.QuestionNonValue);i.Serializer.addClass("html",[{name:"html:html",serializationProperty:"locHtml"}],(function(){return new l("")}),"nonvalue"),s.QuestionFactory.Instance.registerQuestion("html",(function(e){return new l(e)}))},"./src/question_image.ts":function(e,t,n){"use strict";n.r(t),n.d(t,"QuestionImageModel",(function(){return f}));var r,o=n("./src/questionnonvalue.ts"),i=n("./src/jsonobject.ts"),s=n("./src/questionfactory.ts"),a=n("./src/utils/cssClassBuilder.ts"),l=n("./src/utils/utils.ts"),u=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),c=["youtube.com","youtu.be"],p=[".mp4",".mov",".wmv",".flv",".avi",".mkv"],d="embed";function h(e){if(!e)return!1;e=e.toLowerCase();for(var t=0;t<c.length;t++)if(-1!==e.indexOf(c[t]))return!0;return!1}var f=function(e){function t(t){var n=e.call(this,t)||this;return n.createLocalizableString("imageLink",n,!1).onGetTextCallback=function(e){return function(e){if(!e||!h(e))return e;if(e.toLocaleLowerCase().indexOf(d)>-1)return e;for(var t="",n=e.length-1;n>=0&&"="!==e[n]&&"/"!==e[n];n--)t=e[n]+t;return"https://www.youtube.com/embed/"+t}(e)},n.createLocalizableString("altText",n,!1),n.registerPropertyChangedHandlers(["contentMode","imageLink"],(function(){return n.calculateRenderedMode()})),n}return u(t,e),t.prototype.getType=function(){return"image"},Object.defineProperty(t.prototype,"isCompositeQuestion",{get:function(){return!1},enumerable:!1,configurable:!0}),t.prototype.onSurveyLoad=function(){e.prototype.onSurveyLoad.call(this),this.calculateRenderedMode()},Object.defineProperty(t.prototype,"imageLink",{get:function(){return this.getLocalizableStringText("imageLink")},set:function(e){this.setLocalizableStringText("imageLink",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locImageLink",{get:function(){return this.getLocalizableString("imageLink")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"altText",{get:function(){return this.getLocalizableStringText("altText")},set:function(e){this.setLocalizableStringText("altText",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locAltText",{get:function(){return this.getLocalizableString("altText")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"imageHeight",{get:function(){return this.getPropertyValue("imageHeight")},set:function(e){this.setPropertyValue("imageHeight",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"renderedStyleHeight",{get:function(){return this.imageHeight?Object(l.getRenderedStyleSize)(this.imageHeight):void 0},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"renderedHeight",{get:function(){return this.imageHeight?Object(l.getRenderedSize)(this.imageHeight):void 0},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"imageWidth",{get:function(){return this.getPropertyValue("imageWidth")},set:function(e){this.setPropertyValue("imageWidth",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"renderedStyleWidth",{get:function(){return this.imageWidth?Object(l.getRenderedStyleSize)(this.imageWidth):void 0},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"renderedWidth",{get:function(){return this.imageWidth?Object(l.getRenderedSize)(this.imageWidth):void 0},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"imageFit",{get:function(){return this.getPropertyValue("imageFit")},set:function(e){this.setPropertyValue("imageFit",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"contentMode",{get:function(){return this.getPropertyValue("contentMode")},set:function(e){this.setPropertyValue("contentMode",e),"video"===e&&(this.showLabel=!0)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"renderedMode",{get:function(){return this.getPropertyValue("renderedMode","image")},enumerable:!1,configurable:!0}),t.prototype.getImageCss=function(){var e=this.getPropertyByName("imageHeight"),t=this.getPropertyByName("imageWidth"),n=e.isDefaultValue(this.imageHeight)&&t.isDefaultValue(this.imageWidth);return(new a.CssClassBuilder).append(this.cssClasses.image).append(this.cssClasses.adaptive,n).toString()},t.prototype.onLoadHandler=function(){this.contentNotLoaded=!1},t.prototype.onErrorHandler=function(){this.contentNotLoaded=!0},t.prototype.setRenderedMode=function(e){this.setPropertyValue("renderedMode",e)},t.prototype.calculateRenderedMode=function(){"auto"!==this.contentMode?this.setRenderedMode(this.contentMode):this.isYoutubeVideo()?this.setRenderedMode("youtube"):this.isVideo()?this.setRenderedMode("video"):this.setRenderedMode("image")},t.prototype.isYoutubeVideo=function(){return h(this.imageLink)},t.prototype.isVideo=function(){var e=this.imageLink;if(!e)return!1;e=e.toLowerCase();for(var t=0;t<p.length;t++)if(e.endsWith(p[t]))return!0;return!1},function(e,t,n,r){var o,i=arguments.length,s=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,r);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(i<3?o(s):i>3?o(t,n,s):o(t,n))||s);i>3&&s&&Object.defineProperty(t,n,s)}([Object(i.property)({defaultValue:!1})],t.prototype,"contentNotLoaded",void 0),t}(o.QuestionNonValue);i.Serializer.addClass("image",[{name:"imageLink",serializationProperty:"locImageLink"},{name:"altText",serializationProperty:"locAltText",alternativeName:"text",category:"general"},{name:"contentMode",default:"auto",choices:["auto","image","video","youtube"]},{name:"imageFit",default:"contain",choices:["none","contain","cover","fill"]},{name:"imageHeight",default:"150"},{name:"imageWidth",default:"200"}],(function(){return new f("")}),"nonvalue"),s.QuestionFactory.Instance.registerQuestion("image",(function(e){return new f(e)}))},"./src/question_imagepicker.ts":function(e,t,n){"use strict";n.r(t),n.d(t,"ImageItemValue",(function(){return f})),n.d(t,"QuestionImagePickerModel",(function(){return g}));var r,o=n("./src/jsonobject.ts"),i=n("./src/questionfactory.ts"),s=n("./src/question_baseselect.ts"),a=n("./src/itemvalue.ts"),l=n("./src/helpers.ts"),u=n("./src/utils/cssClassBuilder.ts"),c=n("./src/settings.ts"),p=n("./src/utils/utils.ts"),d=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),h=function(e,t,n,r){var o,i=arguments.length,s=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,r);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(i<3?o(s):i>3?o(t,n,s):o(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},f=function(e){function t(t,n,r){void 0===n&&(n=null),void 0===r&&(r="imageitemvalue");var o=e.call(this,t,n,r)||this;return o.typeName=r,o.createLocalizableString("imageLink",o,!1),o}return d(t,e),t.prototype.getType=function(){return this.typeName?this.typeName:"itemvalue"},Object.defineProperty(t.prototype,"imageLink",{get:function(){return this.getLocalizableStringText("imageLink")},set:function(e){this.setLocalizableStringText("imageLink",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locImageLink",{get:function(){return this.getLocalizableString("imageLink")},enumerable:!1,configurable:!0}),t.prototype.getLocale=function(){return this.locOwner?this.locOwner.getLocale():""},t.prototype.getMarkdownHtml=function(e,t){return this.locOwner?this.locOwner.getMarkdownHtml(e,t):void 0},t.prototype.getRenderer=function(e){return this.locOwner?this.locOwner.getRenderer(e):null},t.prototype.getRendererContext=function(e){return this.locOwner?this.locOwner.getRendererContext(e):e},t.prototype.getProcessedText=function(e){return this.locOwner?this.locOwner.getProcessedText(e):e},t.prototype.onErrorHandler=function(){this.contentNotLoaded=!0},Object.defineProperty(t.prototype,"contentNotLoaded",{get:function(){return this.locOwner instanceof g&&"video"==this.locOwner.contentMode?this.videoNotLoaded:this.imageNotLoaded},set:function(e){this.locOwner instanceof g&&"video"==this.locOwner.contentMode?this.videoNotLoaded=e:this.imageNotLoaded=e},enumerable:!1,configurable:!0}),h([Object(o.property)({defaultValue:!1})],t.prototype,"videoNotLoaded",void 0),h([Object(o.property)({defaultValue:!1})],t.prototype,"imageNotLoaded",void 0),t}(a.ItemValue),g=function(e){function t(t){var n=e.call(this,t)||this;return n.isResponsiveValue=!1,n.onContentLoaded=function(e,t){e.contentNotLoaded=!1;var r=t.target;"video"==n.contentMode?e.aspectRatio=r.videoWidth/r.videoHeight:e.aspectRatio=r.naturalWidth/r.naturalHeight,n._width&&n.processResponsiveness(0,n._width)},n.colCount=0,n.registerPropertyChangedHandlers(["minImageWidth","maxImageWidth","minImageHeight","maxImageHeight","visibleChoices","colCount","isResponsiveValue"],(function(){n._width&&n.processResponsiveness(0,n._width)})),n.registerPropertyChangedHandlers(["imageWidth","imageHeight"],(function(){n.calcIsResponsive()})),n.calcIsResponsive(),n}return d(t,e),t.prototype.getType=function(){return"imagepicker"},t.prototype.supportGoNextPageAutomatic=function(){return!this.multiSelect},Object.defineProperty(t.prototype,"hasSingleInput",{get:function(){return!1},enumerable:!1,configurable:!0}),t.prototype.getItemValueType=function(){return"imageitemvalue"},Object.defineProperty(t.prototype,"isCompositeQuestion",{get:function(){return!0},enumerable:!1,configurable:!0}),t.prototype.supportOther=function(){return!1},t.prototype.supportNone=function(){return!1},t.prototype.isAnswerCorrect=function(){return this.multiSelect?l.Helpers.isArrayContainsEqual(this.value,this.correctAnswer):e.prototype.isAnswerCorrect.call(this)},Object.defineProperty(t.prototype,"multiSelect",{get:function(){return this.getPropertyValue("multiSelect")},set:function(e){this.setPropertyValue("multiSelect",e)},enumerable:!1,configurable:!0}),t.prototype.isItemSelected=function(e){var t=this.value,n=e;if(this.isValueEmpty(t))return!1;if(!n.imageLink||n.contentNotLoaded)return!1;if(!this.multiSelect)return this.isTwoValueEquals(t,e.value);if(!Array.isArray(t))return!1;for(var r=0;r<t.length;r++)if(this.isTwoValueEquals(t[r],e.value))return!0;return!1},t.prototype.getItemEnabled=function(t){var n=t;return!(!n.imageLink||n.contentNotLoaded)&&e.prototype.getItemEnabled.call(this,t)},t.prototype.clearIncorrectValues=function(){if(this.multiSelect){var t=this.value;if(!t)return;if(!Array.isArray(t)||0==t.length)return void this.clearValue();for(var n=[],r=0;r<t.length;r++)this.hasUnknownValue(t[r],!0)||n.push(t[r]);if(n.length==t.length)return;0==n.length?this.clearValue():this.value=n}else e.prototype.clearIncorrectValues.call(this)},t.prototype.getDisplayValueCore=function(t,n){return this.multiSelect||Array.isArray(n)?this.getDisplayArrayValue(t,n):e.prototype.getDisplayValueCore.call(this,t,n)},Object.defineProperty(t.prototype,"showLabel",{get:function(){return this.getPropertyValue("showLabel")},set:function(e){this.setPropertyValue("showLabel",e)},enumerable:!1,configurable:!0}),t.prototype.endLoadingFromJson=function(){e.prototype.endLoadingFromJson.call(this),!this.isDesignMode&&this.multiSelect&&(this.createNewArray("renderedValue"),this.createNewArray("value")),this.calcIsResponsive()},t.prototype.getValueCore=function(){var t=e.prototype.getValueCore.call(this);return void 0!==t?t:this.multiSelect?[]:t},t.prototype.convertValToArrayForMultSelect=function(e){return this.multiSelect?this.isValueEmpty(e)||Array.isArray(e)?e:[e]:e},t.prototype.renderedValueFromDataCore=function(e){return this.convertValToArrayForMultSelect(e)},t.prototype.rendredValueToDataCore=function(e){return this.convertValToArrayForMultSelect(e)},Object.defineProperty(t.prototype,"imageHeight",{get:function(){return this.getPropertyValue("imageHeight")},set:function(e){this.setPropertyValue("imageHeight",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"renderedImageHeight",{get:function(){return(this.isResponsive?Math.floor(this.responsiveImageHeight):this.imageHeight)||150},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"imageWidth",{get:function(){return this.getPropertyValue("imageWidth")},set:function(e){this.setPropertyValue("imageWidth",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"renderedImageWidth",{get:function(){return(this.isResponsive?Math.floor(this.responsiveImageWidth):this.imageWidth)||200},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"imageFit",{get:function(){return this.getPropertyValue("imageFit")},set:function(e){this.setPropertyValue("imageFit",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"contentMode",{get:function(){return this.getPropertyValue("contentMode")},set:function(e){this.setPropertyValue("contentMode",e),"video"===e&&(this.showLabel=!0)},enumerable:!1,configurable:!0}),t.prototype.convertDefaultValue=function(e){return e},Object.defineProperty(t.prototype,"inputType",{get:function(){return this.multiSelect?"checkbox":"radio"},enumerable:!1,configurable:!0}),t.prototype.isFootChoice=function(e,t){return!1},t.prototype.getSelectBaseRootCss=function(){return(new u.CssClassBuilder).append(e.prototype.getSelectBaseRootCss.call(this)).append(this.cssClasses.rootColumn,1==this.getCurrentColCount()).toString()},Object.defineProperty(t.prototype,"isResponsive",{get:function(){return this.isResponsiveValue&&this.isDefaultV2Theme},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"exactSizesAreEmpty",{get:function(){var e=this;return!["imageHeight","imageWidth"].some((function(t){return void 0!==e[t]&&null!==e[t]}))},enumerable:!1,configurable:!0}),t.prototype.calcIsResponsive=function(){this.isResponsiveValue=this.exactSizesAreEmpty},t.prototype.getObservedElementSelector=function(){return Object(p.classesToSelector)(this.cssClasses.root)},t.prototype.supportResponsiveness=function(){return!0},t.prototype.needResponsiveness=function(){return this.supportResponsiveness()&&this.isDefaultV2Theme},t.prototype.getCurrentColCount=function(){return void 0===this.responsiveColCount||0===this.colCount?this.colCount:this.responsiveColCount},t.prototype.processResponsiveness=function(e,t){this._width=t=Math.floor(t);var n=function(e,t,n){var r=Math.floor(e/(t+n));return(r+1)*(t+n)-n<=e&&r++,r};if(this.isResponsive){var r,o=this.choices.length+(this.isDesignMode?1:0),i=this.gapBetweenItems||0,s=this.minImageWidth,a=this.maxImageWidth,l=this.maxImageHeight,u=this.minImageHeight,c=this.colCount;if(0===c)if((i+s)*o-i>t){var p=n(t,s,i);r=Math.floor((t-i*(p-1))/p)}else r=Math.floor((t-i*(o-1))/o);else{var d=n(t,s,i);d<c?(this.responsiveColCount=d>=1?d:1,c=this.responsiveColCount):this.responsiveColCount=c,r=Math.floor((t-i*(c-1))/c)}r=Math.max(s,Math.min(r,a));var h=Number.MIN_VALUE;this.choices.forEach((function(e){var t=r/e.aspectRatio;h=t>h?t:h})),h>l?h=l:h<u&&(h=u);var f=this.responsiveImageWidth,g=this.responsiveImageHeight;return this.responsiveImageWidth=r,this.responsiveImageHeight=h,f!==this.responsiveImageWidth||g!==this.responsiveImageHeight}return!1},t.prototype.triggerResponsiveness=function(t){void 0===t&&(t=!0),t&&this.reCalcGapBetweenItemsCallback&&this.reCalcGapBetweenItemsCallback(),e.prototype.triggerResponsiveness.call(this,t)},t.prototype.afterRender=function(t){var n=this;e.prototype.afterRender.call(this,t),t&&t.querySelector(this.getObservedElementSelector())&&(this.reCalcGapBetweenItemsCallback=function(){n.gapBetweenItems=Math.ceil(Number.parseFloat(window.getComputedStyle(t.querySelector(n.getObservedElementSelector())).gap))||16},this.reCalcGapBetweenItemsCallback())},h([Object(o.property)({})],t.prototype,"responsiveImageHeight",void 0),h([Object(o.property)({})],t.prototype,"responsiveImageWidth",void 0),h([Object(o.property)({})],t.prototype,"isResponsiveValue",void 0),h([Object(o.property)({})],t.prototype,"maxImageWidth",void 0),h([Object(o.property)({})],t.prototype,"minImageWidth",void 0),h([Object(o.property)({})],t.prototype,"maxImageHeight",void 0),h([Object(o.property)({})],t.prototype,"minImageHeight",void 0),h([Object(o.property)({})],t.prototype,"responsiveColCount",void 0),t}(s.QuestionCheckboxBase);o.Serializer.addClass("imageitemvalue",[{name:"imageLink",serializationProperty:"locImageLink"}],(function(e){return new f(e)}),"itemvalue"),o.Serializer.addClass("responsiveImageSize",[],void 0,"number"),o.Serializer.addClass("imagepicker",[{name:"showOtherItem",visible:!1},{name:"otherText",visible:!1},{name:"showNoneItem",visible:!1},{name:"noneText",visible:!1},{name:"optionsCaption",visible:!1},{name:"otherErrorText",visible:!1},{name:"storeOthersAsComment",visible:!1},{name:"contentMode",default:"image",choices:["image","video"]},{name:"imageFit",default:"contain",choices:["none","contain","cover","fill"]},{name:"imageHeight:number",minValue:0},{name:"imageWidth:number",minValue:0},{name:"minImageWidth:responsiveImageSize",default:200,minValue:0,visibleIf:function(){return c.settings.supportCreatorV2}},{name:"minImageHeight:responsiveImageSize",default:133,minValue:0,visibleIf:function(){return c.settings.supportCreatorV2}},{name:"maxImageWidth:responsiveImageSize",default:400,minValue:0,visibleIf:function(){return c.settings.supportCreatorV2}},{name:"maxImageHeight:responsiveImageSize",default:266,minValue:0,visibleIf:function(){return c.settings.supportCreatorV2}}],(function(){return new g("")}),"checkboxbase"),o.Serializer.addProperty("imagepicker",{name:"showLabel:boolean",default:!1}),o.Serializer.addProperty("imagepicker",{name:"colCount:number",default:0,choices:[0,1,2,3,4,5]}),o.Serializer.addProperty("imagepicker",{name:"multiSelect:boolean",default:!1}),o.Serializer.addProperty("imagepicker",{name:"choices:imageitemvalue[]"}),i.QuestionFactory.Instance.registerQuestion("imagepicker",(function(e){return new g(e)}))},"./src/question_matrix.ts":function(e,t,n){"use strict";n.r(t),n.d(t,"MatrixRowModel",(function(){return y})),n.d(t,"MatrixCells",(function(){return v})),n.d(t,"QuestionMatrixModel",(function(){return b}));var r,o=n("./src/helpers.ts"),i=n("./src/itemvalue.ts"),s=n("./src/martixBase.ts"),a=n("./src/jsonobject.ts"),l=n("./src/base.ts"),u=n("./src/surveyStrings.ts"),c=n("./src/error.ts"),p=n("./src/questionfactory.ts"),d=n("./src/localizablestring.ts"),h=n("./src/question_dropdown.ts"),f=n("./src/settings.ts"),g=n("./src/utils/cssClassBuilder.ts"),m=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),y=function(e){function t(t,n,r,o){var i=e.call(this)||this;return i.fullName=n,i.item=t,i.data=r,i.value=o,i.cellClick=function(e){i.value=e.value},i.registerPropertyChangedHandlers(["value"],(function(){i.data&&i.data.onMatrixRowChanged(i)})),i}return m(t,e),Object.defineProperty(t.prototype,"name",{get:function(){return this.item.value},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"text",{get:function(){return this.item.text},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locText",{get:function(){return this.item.locText},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"value",{get:function(){return this.getPropertyValue("value")},set:function(e){e=this.data.getCorrectedRowValue(e),this.setPropertyValue("value",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"rowClasses",{get:function(){var e=this.data.cssClasses,t=!!this.data.getErrorByType("requiredinallrowserror");return(new g.CssClassBuilder).append(e.row).append(e.rowError,t&&this.isValueEmpty(this.value)).toString()},enumerable:!1,configurable:!0}),t}(l.Base),v=function(){function e(e){this.cellsOwner=e,this.values={}}return Object.defineProperty(e.prototype,"isEmpty",{get:function(){return 0==Object.keys(this.values).length},enumerable:!1,configurable:!0}),e.prototype.valuesChanged=function(){this.onValuesChanged&&this.onValuesChanged()},e.prototype.setCellText=function(e,t,n){if(e=this.getCellRowColumnValue(e,this.rows),t=this.getCellRowColumnValue(t,this.columns),e&&t){if(n)this.values[e]||(this.values[e]={}),this.values[e][t]||(this.values[e][t]=this.createString()),this.values[e][t].text=n;else if(this.values[e]&&this.values[e][t]){var r=this.values[e][t];r.text="",r.isEmpty&&(delete this.values[e][t],0==Object.keys(this.values[e]).length&&delete this.values[e])}this.valuesChanged()}},e.prototype.setDefaultCellText=function(e,t){this.setCellText(f.settings.matrix.defaultRowName,e,t)},e.prototype.getCellLocText=function(e,t){return e=this.getCellRowColumnValue(e,this.rows),t=this.getCellRowColumnValue(t,this.columns),e&&t&&this.values[e]&&this.values[e][t]?this.values[e][t]:null},e.prototype.getDefaultCellLocText=function(e,t){return this.getCellLocText(f.settings.matrix.defaultRowName,e)},e.prototype.getCellDisplayLocText=function(e,t){var n=this.getCellLocText(e,t);return n&&!n.isEmpty||(n=this.getCellLocText(f.settings.matrix.defaultRowName,t))&&!n.isEmpty?n:("number"==typeof t&&(t=t>=0&&t<this.columns.length?this.columns[t]:null),t&&t.locText?t.locText:null)},e.prototype.getCellText=function(e,t){var n=this.getCellLocText(e,t);return n?n.calculatedText:null},e.prototype.getDefaultCellText=function(e){var t=this.getCellLocText(f.settings.matrix.defaultRowName,e);return t?t.calculatedText:null},e.prototype.getCellDisplayText=function(e,t){var n=this.getCellDisplayLocText(e,t);return n?n.calculatedText:null},Object.defineProperty(e.prototype,"rows",{get:function(){return this.cellsOwner?this.cellsOwner.getRows():[]},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"columns",{get:function(){return this.cellsOwner?this.cellsOwner.getColumns():[]},enumerable:!1,configurable:!0}),e.prototype.getCellRowColumnValue=function(e,t){if(null==e)return null;if("number"==typeof e){if(e<0||e>=t.length)return null;e=t[e].value}return e.value?e.value:e},e.prototype.getJson=function(){if(this.isEmpty)return null;var e={};for(var t in this.values){var n={},r=this.values[t];for(var o in r)n[o]=r[o].getJson();e[t]=n}return e},e.prototype.setJson=function(e){if(this.values={},e)for(var t in e)if("pos"!=t){var n=e[t];for(var r in this.values[t]={},n)if("pos"!=r){var o=this.createString();o.setJson(n[r]),this.values[t][r]=o}}this.valuesChanged()},e.prototype.locStrsChanged=function(){if(!this.isEmpty)for(var e in this.values){var t=this.values[e];for(var n in t)t[n].strChanged()}},e.prototype.createString=function(){return new d.LocalizableString(this.cellsOwner,!0)},e}(),b=function(e){function t(t){var n=e.call(this,t)||this;return n.isRowChanging=!1,n.emptyLocalizableString=new d.LocalizableString(n),n.cellsValue=new v(n),n.cellsValue.onValuesChanged=function(){n.updateHasCellText(),n.propertyValueChanged("cells",n.cells,n.cells)},n.registerPropertyChangedHandlers(["columns"],(function(){n.onColumnsChanged()})),n.registerPropertyChangedHandlers(["rows"],(function(){n.filterItems()||n.onRowsChanged()})),n.registerPropertyChangedHandlers(["hideIfRowsEmpty"],(function(){n.updateVisibilityBasedOnRows()})),n}return m(t,e),t.prototype.getType=function(){return"matrix"},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,"hasRows",{get:function(){return this.rows.length>0},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"rowsOrder",{get:function(){return this.getPropertyValue("rowsOrder")},set:function(e){(e=e.toLowerCase())!=this.rowsOrder&&(this.setPropertyValue("rowsOrder",e),this.onRowsChanged())},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hideIfRowsEmpty",{get:function(){return this.getPropertyValue("hideIfRowsEmpty")},set:function(e){this.setPropertyValue("hideIfRowsEmpty",e)},enumerable:!1,configurable:!0}),t.prototype.getRows=function(){return this.rows},t.prototype.getColumns=function(){return this.visibleColumns},t.prototype.addColumn=function(e,t){var n=new i.ItemValue(e,t);return this.columns.push(n),n},t.prototype.getItemClass=function(e,t){var n=e.value==t.value,r=this.isReadOnly,o=!n&&!r;return(new g.CssClassBuilder).append(this.cssClasses.cell,this.hasCellText).append(this.hasCellText?this.cssClasses.cellText:this.cssClasses.label).append(this.cssClasses.itemOnError,!this.hasCellText&&this.errors.length>0).append(this.hasCellText?this.cssClasses.cellTextSelected:this.cssClasses.itemChecked,n).append(this.hasCellText?this.cssClasses.cellTextDisabled:this.cssClasses.itemDisabled,r).append(this.cssClasses.itemHover,o&&!this.hasCellText).toString()},Object.defineProperty(t.prototype,"itemSvgIcon",{get:function(){return this.cssClasses.itemSvgIconId},enumerable:!1,configurable:!0}),t.prototype.locStrsChanged=function(){e.prototype.locStrsChanged.call(this),this.cells.locStrsChanged()},t.prototype.getQuizQuestionCount=function(){for(var e=0,t=0;t<this.rows.length;t++)this.isValueEmpty(this.correctAnswer[this.rows[t].value])||e++;return e},t.prototype.getCorrectAnswerCount=function(){for(var e=0,t=this.value,n=0;n<this.rows.length;n++){var r=this.rows[n].value;!this.isValueEmpty(t[r])&&this.isTwoValueEquals(this.correctAnswer[r],t[r])&&e++}return e},t.prototype.getVisibleRows=function(){var e=new Array,t=this.value;t||(t={});for(var n=this.filteredRows?this.filteredRows:this.rows,r=0;r<n.length;r++){var o=n[r];this.isValueEmpty(o.value)||e.push(this.createMatrixRow(o,this.id+"_"+o.value.toString().replace(/\s/g,"_"),t[o.value]))}return this.generatedVisibleRows=e,e},t.prototype.sortVisibleRows=function(e){return this.survey&&this.survey.isDesignMode?e:"random"===this.rowsOrder.toLowerCase()?o.Helpers.randomizeArray(e):e},t.prototype.endLoadingFromJson=function(){e.prototype.endLoadingFromJson.call(this),this.rows=this.sortVisibleRows(this.rows)},t.prototype.isNewValueCorrect=function(e){return o.Helpers.isValueObject(e)},t.prototype.processRowsOnSet=function(e){return this.sortVisibleRows(e)},Object.defineProperty(t.prototype,"visibleRows",{get:function(){return this.getVisibleRows()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"cells",{get:function(){return this.cellsValue},set:function(e){this.cells.setJson(e&&e.getJson?e.getJson():null)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hasCellText",{get:function(){return this.getPropertyValue("hasCellText",!1)},enumerable:!1,configurable:!0}),t.prototype.updateHasCellText=function(){this.setPropertyValue("hasCellText",!this.cells.isEmpty)},t.prototype.setCellText=function(e,t,n){this.cells.setCellText(e,t,n)},t.prototype.getCellText=function(e,t){return this.cells.getCellText(e,t)},t.prototype.setDefaultCellText=function(e,t){this.cells.setDefaultCellText(e,t)},t.prototype.getDefaultCellText=function(e){return this.cells.getDefaultCellText(e)},t.prototype.getCellDisplayText=function(e,t){return this.cells.getCellDisplayText(e,t)},t.prototype.getCellDisplayLocText=function(e,t){return this.cells.getCellDisplayLocText(e,t)||this.emptyLocalizableString},t.prototype.supportGoNextPageAutomatic=function(){return!0===this.isMouseDown&&this.hasValuesInAllRows()},t.prototype.onCheckForErrors=function(t,n){e.prototype.onCheckForErrors.call(this,t,n),(!n||this.errors.length>0)&&this.hasErrorInRows()&&t.push(new c.RequiredInAllRowsError(null,this))},t.prototype.hasErrorInRows=function(){return!!this.isAllRowRequired&&!this.hasValuesInAllRows()},t.prototype.hasValuesInAllRows=function(){var e=this.generatedVisibleRows;if(e||(e=this.visibleRows),!e)return!0;for(var t=0;t<e.length;t++)if(this.isValueEmpty(e[t].value))return!1;return!0},t.prototype.getIsAnswered=function(){return e.prototype.getIsAnswered.call(this)&&this.hasValuesInAllRows()},t.prototype.createMatrixRow=function(e,t,n){var r=new y(e,t,this,n);return this.onMatrixRowCreated(r),r},t.prototype.onMatrixRowCreated=function(e){},t.prototype.setQuestionValue=function(t,n){if(void 0===n&&(n=!0),e.prototype.setQuestionValue.call(this,t,this.isRowChanging||n),this.generatedVisibleRows&&0!=this.generatedVisibleRows.length){this.isRowChanging=!0;var r=this.value;if(r||(r={}),0==this.rows.length)this.generatedVisibleRows[0].value=r;else for(var o=0;o<this.generatedVisibleRows.length;o++){var i=r[this.generatedVisibleRows[o].name];this.isValueEmpty(i)&&(i=null),this.generatedVisibleRows[o].value=i}this.updateIsAnswered(),this.isRowChanging=!1}},t.prototype.getDisplayValueCore=function(e,t){var n={};for(var r in t){var o=e?i.ItemValue.getTextOrHtmlByValue(this.rows,r):r;o||(o=r);var s=i.ItemValue.getTextOrHtmlByValue(this.columns,t[r]);s||(s=t[r]),n[o]=s}return n},t.prototype.getPlainData=function(t){var n=this;void 0===t&&(t={includeEmpty:!0});var r=e.prototype.getPlainData.call(this,t);if(r){var o=this.createValueCopy();r.isNode=!0,r.data=Object.keys(o||{}).map((function(e){var r=n.rows.filter((function(t){return t.value===e}))[0],s={name:e,title:r?r.text:"row",value:o[e],displayValue:i.ItemValue.getTextOrHtmlByValue(n.visibleColumns,o[e]),getString:function(e){return"object"==typeof e?JSON.stringify(e):e},isNode:!1},a=i.ItemValue.getItemByValue(n.visibleColumns,o[e]);return a&&(t.calculations||[]).forEach((function(e){s[e.propertyName]=a[e.propertyName]})),s}))}return r},t.prototype.addConditionObjectsByContext=function(e,t){for(var n=0;n<this.rows.length;n++){var r=this.rows[n];r.value&&e.push({name:this.getValueName()+"."+r.value,text:this.processedTitle+"."+r.calculatedText,question:this})}},t.prototype.getConditionJson=function(t,n){if(void 0===t&&(t=null),void 0===n&&(n=null),!n)return e.prototype.getConditionJson.call(this);var r=new h.QuestionDropdownModel(n);r.choices=this.columns;var o=(new a.JsonObject).toJsonObject(r);return o.type=r.getType(),o},t.prototype.clearValueIfInvisibleCore=function(t){e.prototype.clearValueIfInvisibleCore.call(this,t),this.hasRows&&this.clearInvisibleValuesInRows()},t.prototype.getFirstInputElementId=function(){var t=this.generatedVisibleRows;return t||(t=this.visibleRows),t.length>0&&this.visibleColumns.length>0?this.inputId+"_"+t[0].name+"_0":e.prototype.getFirstInputElementId.call(this)},t.prototype.onMatrixRowChanged=function(e){if(!this.isRowChanging){if(this.isRowChanging=!0,this.hasRows){var t=this.value;t||(t={}),t[e.name]=e.value,this.setNewValue(t)}else this.setNewValue(e.value);this.isRowChanging=!1}},t.prototype.getCorrectedRowValue=function(e){for(var t=0;t<this.columns.length;t++)if(e===this.columns[t].value)return e;for(t=0;t<this.columns.length;t++)if(this.isTwoValueEquals(e,this.columns[t].value))return this.columns[t].value;return e},t.prototype.getSearchableItemValueKeys=function(e){e.push("columns"),e.push("rows")},Object.defineProperty(t.prototype,"SurveyModel",{get:function(){return this.survey},enumerable:!1,configurable:!0}),t.prototype.getColumnHeaderWrapperComponentName=function(e){return this.SurveyModel.getElementWrapperComponentName({column:e},"column-header")},t.prototype.getColumnHeaderWrapperComponentData=function(e){return this.SurveyModel.getElementWrapperComponentData({column:e},"column-header")},t.prototype.getRowHeaderWrapperComponentName=function(e){return this.SurveyModel.getElementWrapperComponentName({row:e},"row-header")},t.prototype.getRowHeaderWrapperComponentData=function(e){return this.SurveyModel.getElementWrapperComponentData({row:e},"row-header")},t}(s.QuestionMatrixBaseModel);a.Serializer.addClass("matrix",["rowTitleWidth",{name:"columns:itemvalue[]",uniqueProperty:"value",baseValue:function(){return u.surveyLocalization.getString("matrix_column")}},{name:"rows:itemvalue[]",uniqueProperty:"value",baseValue:function(){return u.surveyLocalization.getString("matrix_row")}},{name:"cells:cells",serializationProperty:"cells"},{name:"rowsOrder",default:"initial",choices:["initial","random"]},"isAllRowRequired:boolean","hideIfRowsEmpty:boolean"],(function(){return new b("")}),"matrixbase"),p.QuestionFactory.Instance.registerQuestion("matrix",(function(e){var t=new b(e);return t.rows=p.QuestionFactory.DefaultRows,t.columns=p.QuestionFactory.DefaultColums,t}))},"./src/question_matrixdropdown.ts":function(e,t,n){"use strict";n.r(t),n.d(t,"MatrixDropdownRowModel",(function(){return c})),n.d(t,"QuestionMatrixDropdownModel",(function(){return p}));var r,o=n("./src/question_matrixdropdownbase.ts"),i=n("./src/jsonobject.ts"),s=n("./src/itemvalue.ts"),a=n("./src/questionfactory.ts"),l=n("./src/helpers.ts"),u=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),c=function(e){function t(t,n,r,o){var i=e.call(this,r,o)||this;return i.name=t,i.item=n,i.buildCells(o),i}return u(t,e),Object.defineProperty(t.prototype,"rowName",{get:function(){return this.name},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"text",{get:function(){return this.item.text},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locText",{get:function(){return this.item.locText},enumerable:!1,configurable:!0}),t}(o.MatrixDropdownRowModelBase),p=function(e){function t(t){var n=e.call(this,t)||this;return n.createLocalizableString("totalText",n,!0),n.registerPropertyChangedHandlers(["rows"],(function(){n.clearGeneratedRows(),n.resetRenderedTable(),n.filterItems()||n.onRowsChanged(),n.clearIncorrectValues()})),n.registerPropertyChangedHandlers(["hideIfRowsEmpty"],(function(){n.updateVisibilityBasedOnRows()})),n}return u(t,e),t.prototype.getType=function(){return"matrixdropdown"},Object.defineProperty(t.prototype,"totalText",{get:function(){return this.getLocalizableStringText("totalText","")},set:function(e){this.setLocalizableStringText("totalText",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locTotalText",{get:function(){return this.getLocalizableString("totalText")},enumerable:!1,configurable:!0}),t.prototype.getFooterText=function(){return this.locTotalText},t.prototype.getRowTitleWidth=function(){return this.rowTitleWidth},Object.defineProperty(t.prototype,"hideIfRowsEmpty",{get:function(){return this.getPropertyValue("hideIfRowsEmpty")},set:function(e){this.setPropertyValue("hideIfRowsEmpty",e)},enumerable:!1,configurable:!0}),t.prototype.getDisplayValueCore=function(e,t){if(!t)return t;var n=this.visibleRows,r={};if(!n)return r;for(var o=0;o<n.length;o++){var i=n[o].rowName,a=t[i];if(a){if(e){var l=s.ItemValue.getTextOrHtmlByValue(this.rows,i);l&&(i=l)}r[i]=this.getRowDisplayValue(e,n[o],a)}}return r},t.prototype.getConditionObjectRowName=function(e){return"."+this.rows[e].value},t.prototype.getConditionObjectRowText=function(e){return"."+this.rows[e].calculatedText},t.prototype.getConditionObjectsRowIndeces=function(){for(var e=[],t=0;t<this.rows.length;t++)e.push(t);return e},t.prototype.isNewValueCorrect=function(e){return l.Helpers.isValueObject(e)},t.prototype.clearIncorrectValues=function(){var t=this.value;if(t){var n=null,r=!1,o=this.filteredRows?this.filteredRows:this.rows;for(var i in t)s.ItemValue.getItemByValue(o,i)?(null==n&&(n={}),n[i]=t[i]):r=!0;r&&(this.value=n),e.prototype.clearIncorrectValues.call(this)}},t.prototype.clearValueIfInvisibleCore=function(t){e.prototype.clearValueIfInvisibleCore.call(this,t),this.clearInvisibleValuesInRows()},t.prototype.generateRows=function(){var e=new Array,t=this.filteredRows?this.filteredRows:this.rows;if(!t||0===t.length)return e;var n=this.value;n||(n={});for(var r=0;r<t.length;r++)this.isValueEmpty(t[r].value)||e.push(this.createMatrixRow(t[r],n[t[r].value]));return e},t.prototype.createMatrixRow=function(e,t){return new c(e.value,e,this,t)},t.prototype.getSearchableItemValueKeys=function(e){e.push("rows")},t.prototype.updateProgressInfoByValues=function(e){var t=this.value;t||(t={});for(var n=0;n<this.rows.length;n++){var r=t[this.rows[n].value];this.updateProgressInfoByRow(e,r||{})}},t}(o.QuestionMatrixDropdownModelBase);i.Serializer.addClass("matrixdropdown",[{name:"rows:itemvalue[]",uniqueProperty:"value"},"rowsVisibleIf:condition","rowTitleWidth",{name:"totalText",serializationProperty:"locTotalText"},"hideIfRowsEmpty:boolean"],(function(){return new p("")}),"matrixdropdownbase"),a.QuestionFactory.Instance.registerQuestion("matrixdropdown",(function(e){var t=new p(e);return t.choices=[1,2,3,4,5],t.rows=a.QuestionFactory.DefaultRows,o.QuestionMatrixDropdownModelBase.addDefaultColumns(t),t}))},"./src/question_matrixdropdownbase.ts":function(e,t,n){"use strict";n.r(t),n.d(t,"MatrixDropdownCell",(function(){return b})),n.d(t,"MatrixDropdownTotalCell",(function(){return C})),n.d(t,"MatrixDropdownRowModelBase",(function(){return x})),n.d(t,"MatrixDropdownTotalRowModel",(function(){return P})),n.d(t,"QuestionMatrixDropdownModelBase",(function(){return S}));var r,o=n("./src/jsonobject.ts"),i=n("./src/martixBase.ts"),s=n("./src/helpers.ts"),a=n("./src/base.ts"),l=n("./src/survey-element.ts"),u=n("./src/textPreProcessor.ts"),c=n("./src/itemvalue.ts"),p=n("./src/questionfactory.ts"),d=n("./src/functionsfactory.ts"),h=n("./src/settings.ts"),f=n("./src/error.ts"),g=n("./src/utils/cssClassBuilder.ts"),m=n("./src/question_matrixdropdowncolumn.ts"),y=n("./src/question_matrixdropdownrendered.ts"),v=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),b=function(){function e(e,t,n){this.column=e,this.row=t,this.data=n,this.questionValue=this.createQuestion(e,t,n),this.questionValue.updateCustomWidget()}return e.prototype.locStrsChanged=function(){this.question.locStrsChanged()},e.prototype.createQuestion=function(e,t,n){var r=n.createQuestion(this.row,this.column);return r.validateValueCallback=function(){return n.validateCell(t,e.name,t.value)},o.CustomPropertiesCollection.getProperties(e.getType()).forEach((function(t){var n=t.name;void 0!==e[n]&&(r[n]=e[n])})),r},Object.defineProperty(e.prototype,"question",{get:function(){return this.questionValue},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"value",{get:function(){return this.question.value},set:function(e){this.question.value=e},enumerable:!1,configurable:!0}),e.prototype.runCondition=function(e,t){this.question.runCondition(e,t)},e}(),C=function(e){function t(t,n,r){var o=e.call(this,t,n,r)||this;return o.column=t,o.row=n,o.data=r,o.updateCellQuestion(),o}return v(t,e),t.prototype.createQuestion=function(e,t,n){var r=o.Serializer.createClass("expression");return r.setSurveyImpl(t),r},t.prototype.locStrsChanged=function(){this.updateCellQuestion(),e.prototype.locStrsChanged.call(this)},t.prototype.updateCellQuestion=function(){this.question.locCalculation(),this.column.updateCellQuestion(this.question,null,(function(e){delete e.defaultValue})),this.question.expression=this.getTotalExpression(),this.question.format=this.column.totalFormat,this.question.currency=this.column.totalCurrency,this.question.displayStyle=this.column.totalDisplayStyle,this.question.maximumFractionDigits=this.column.totalMaximumFractionDigits,this.question.minimumFractionDigits=this.column.totalMinimumFractionDigits,this.question.unlocCalculation(),this.question.runIfReadOnly=!0},t.prototype.getTotalExpression=function(){if(this.column.totalExpression)return this.column.totalExpression;if("none"==this.column.totalType)return"''";var e=this.column.totalType+"InArray";return d.FunctionFactory.Instance.hasFunction(e)?e+"({self}, '"+this.column.name+"')":""},t}(b),w=function(e){function t(t,n,r){var o=e.call(this,n)||this;return o.row=t,o.variableName=n,o.parentTextProcessor=r,o}return v(t,e),t.prototype.getParentTextProcessor=function(){return this.parentTextProcessor},Object.defineProperty(t.prototype,"survey",{get:function(){return this.row.getSurvey()},enumerable:!1,configurable:!0}),t.prototype.getValues=function(){return this.row.value},t.prototype.getQuestionByName=function(e){return this.row.getQuestionByName(e)},t.prototype.onCustomProcessText=function(e){return e.name==x.IndexVariableName?(e.isExists=!0,e.value=this.row.rowIndex,!0):e.name==x.RowValueVariableName&&(e.isExists=!0,e.value=this.row.rowName,!0)},t}(u.QuestionTextProcessor),x=function(){function e(t,n){var r=this;this.isSettingValue=!1,this.detailPanelValue=null,this.cells=[],this.isCreatingDetailPanel=!1,this.data=t,this.subscribeToChanges(n),this.textPreProcessor=new w(this,e.RowVariableName,t?t.getParentTextProcessor():null),this.showHideDetailPanelClick=function(){if(r.getSurvey().isDesignMode)return!0;r.showHideDetailPanel()},this.idValue=e.getId()}return e.getId=function(){return"srow_"+e.idCounter++},Object.defineProperty(e.prototype,"id",{get:function(){return this.idValue},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"rowName",{get:function(){return null},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"text",{get:function(){return this.rowName},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"value",{get:function(){for(var e={},t=this.questions,n=0;n<t.length;n++){var r=t[n];r.isEmpty()||(e[r.getValueName()]=r.value),r.comment&&this.getSurvey()&&this.getSurvey().storeOthersAsComment&&(e[r.getValueName()+a.Base.commentSuffix]=r.comment)}return e},set:function(e){this.isSettingValue=!0,this.subscribeToChanges(e);for(var t=this.questions,n=0;n<t.length;n++){var r=t[n],o=this.getCellValue(e,r.getValueName()),i=r.comment,s=e?e[r.getValueName()+a.Base.commentSuffix]:"";null==s&&(s=""),r.updateValueFromSurvey(o),(s||this.isTwoValueEquals(i,r.comment))&&r.updateCommentFromSurvey(s),r.onSurveyValueChanged(o)}this.isSettingValue=!1},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"locText",{get:function(){return null},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"hasPanel",{get:function(){return!!this.data&&this.data.hasDetailPanel(this)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"detailPanel",{get:function(){return this.detailPanelValue},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"detailPanelId",{get:function(){return this.detailPanel?this.detailPanel.id:""},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"isDetailPanelShowing",{get:function(){return!!this.data&&this.data.getIsDetailPanelShowing(this)},enumerable:!1,configurable:!0}),e.prototype.setIsDetailPanelShowing=function(e){this.data&&this.data.setIsDetailPanelShowing(this,e),this.onDetailPanelShowingChanged&&this.onDetailPanelShowingChanged()},e.prototype.showHideDetailPanel=function(){this.isDetailPanelShowing?this.hideDetailPanel():this.showDetailPanel()},e.prototype.showDetailPanel=function(){this.ensureDetailPanel(),this.detailPanelValue&&this.setIsDetailPanelShowing(!0)},e.prototype.hideDetailPanel=function(e){void 0===e&&(e=!1),this.setIsDetailPanelShowing(!1),e&&(this.detailPanelValue=null)},e.prototype.ensureDetailPanel=function(){if(!this.isCreatingDetailPanel&&!this.detailPanelValue&&this.hasPanel&&this.data){this.isCreatingDetailPanel=!0,this.detailPanelValue=this.data.createRowDetailPanel(this);var e=this.detailPanelValue.questions,t=this.data.getRowValue(this.data.getRowIndex(this));if(!s.Helpers.isValueEmpty(t))for(var n=0;n<e.length;n++){var r=e[n].getValueName();s.Helpers.isValueEmpty(t[r])||(e[n].value=t[r])}this.detailPanelValue.setSurveyImpl(this),this.isCreatingDetailPanel=!1}},e.prototype.getAllValues=function(){return this.value},e.prototype.getFilteredValues=function(){var e=this.getAllValues(),t=this.validationValues;for(var n in t||(t={}),t.row=e,e)t[n]=e[n];return t},e.prototype.getFilteredProperties=function(){return{survey:this.getSurvey(),row:this}},e.prototype.runCondition=function(t,n){this.data&&(t[e.OwnerVariableName]=this.data.value),t[e.IndexVariableName]=this.rowIndex,t[e.RowValueVariableName]=this.rowName,n||(n={}),n[e.RowVariableName]=this;for(var r=0;r<this.cells.length;r++)t[e.RowVariableName]=this.value,this.cells[r].runCondition(t,n);this.detailPanel&&this.detailPanel.runCondition(t,n)},e.prototype.clearValue=function(){for(var e=this.questions,t=0;t<e.length;t++)e[t].clearValue()},e.prototype.onAnyValueChanged=function(e){for(var t=this.questions,n=0;n<t.length;n++)t[n].onAnyValueChanged(e)},e.prototype.getDataValueCore=function(e,t){var n=this.getSurvey();return n?n.getDataValueCore(e,t):e[t]},e.prototype.getValue=function(e){var t=this.getQuestionByName(e);return t?t.value:null},e.prototype.setValue=function(e,t){this.setValueCore(e,t,!1)},e.prototype.getVariable=function(e){},e.prototype.setVariable=function(e,t){},e.prototype.getComment=function(e){var t=this.getQuestionByName(e);return t?t.comment:""},e.prototype.setComment=function(e,t,n){this.setValueCore(e,t,!0)},e.prototype.findQuestionByName=function(t){if(t){var n=e.RowVariableName+".";if(0===t.indexOf(n))return this.getQuestionByName(t.substring(n.length));var r=this.getSurvey();return r?r.getQuestionByName(t):null}},e.prototype.setValueCore=function(t,n,r){if(!this.isSettingValue){this.updateQuestionsValue(t,n,r);var o=this.value,i=r?t+a.Base.commentSuffix:t,s=n,l=this.getQuestionByName(t),u=this.data.onRowChanging(this,i,o);if(l&&!this.isTwoValueEquals(u,s)&&(this.isSettingValue=!0,r?l.comment=u:l.value=u,this.isSettingValue=!1,o=this.value),!this.data.isValidateOnValueChanging||!this.hasQuestonError(l)){var c=null==n&&!l||r&&!n&&!!l&&l.autoOtherMode;this.data.onRowChanged(this,i,o,c),this.onAnyValueChanged(e.RowVariableName)}}},e.prototype.updateQuestionsValue=function(e,t,n){if(this.detailPanel){var r=this.getQuestionByColumnName(e),o=this.detailPanel.getQuestionByName(e);if(r&&o){var i=this.isTwoValueEquals(t,n?r.comment:r.value)?o:r;this.isSettingValue=!0,n?i.comment=t:i.value=t,this.isSettingValue=!1}}},e.prototype.hasQuestonError=function(e){if(!e)return!1;if(e.hasErrors(!0,{isOnValueChanged:!this.data.isValidateOnValueChanging}))return!0;if(e.isEmpty())return!1;var t=this.getCellByColumnName(e.name);return!!(t&&t.column&&t.column.isUnique)&&this.data.checkIfValueInRowDuplicated(this,e)},Object.defineProperty(e.prototype,"isEmpty",{get:function(){var e=this.value;if(s.Helpers.isValueEmpty(e))return!0;for(var t in e)if(void 0!==e[t]&&null!==e[t])return!1;return!0},enumerable:!1,configurable:!0}),e.prototype.getQuestionByColumn=function(e){var t=this.getCellByColumn(e);return t?t.question:null},e.prototype.getCellByColumn=function(e){for(var t=0;t<this.cells.length;t++)if(this.cells[t].column==e)return this.cells[t];return null},e.prototype.getCellByColumnName=function(e){for(var t=0;t<this.cells.length;t++)if(this.cells[t].column.name==e)return this.cells[t];return null},e.prototype.getQuestionByColumnName=function(e){var t=this.getCellByColumnName(e);return t?t.question:null},Object.defineProperty(e.prototype,"questions",{get:function(){for(var e=[],t=0;t<this.cells.length;t++)e.push(this.cells[t].question);var n=this.detailPanel?this.detailPanel.questions:[];for(t=0;t<n.length;t++)e.push(n[t]);return e},enumerable:!1,configurable:!0}),e.prototype.getQuestionByName=function(e){return this.getQuestionByColumnName(e)||(this.detailPanel?this.detailPanel.getQuestionByName(e):null)},e.prototype.getQuestionsByName=function(e){var t=[],n=this.getQuestionByColumnName(e);return n&&t.push(n),this.detailPanel&&(n=this.detailPanel.getQuestionByName(e))&&t.push(n),t},e.prototype.getSharedQuestionByName=function(e){return this.data?this.data.getSharedQuestionByName(e,this):null},e.prototype.clearIncorrectValues=function(e){for(var t in e){var n=this.getQuestionByName(t);if(n){var r=n.value;n.clearIncorrectValues(),this.isTwoValueEquals(r,n.value)||this.setValue(t,n.value)}else!this.getSharedQuestionByName(t)&&t.indexOf(h.settings.matrix.totalsSuffix)<0&&this.setValue(t,null)}},e.prototype.getLocale=function(){return this.data?this.data.getLocale():""},e.prototype.getMarkdownHtml=function(e,t){return this.data?this.data.getMarkdownHtml(e,t):void 0},e.prototype.getRenderer=function(e){return this.data?this.data.getRenderer(e):null},e.prototype.getRendererContext=function(e){return this.data?this.data.getRendererContext(e):e},e.prototype.getProcessedText=function(e){return this.data?this.data.getProcessedText(e):e},e.prototype.locStrsChanged=function(){for(var e=0;e<this.cells.length;e++)this.cells[e].locStrsChanged();this.detailPanel&&this.detailPanel.locStrsChanged()},e.prototype.updateCellQuestionOnColumnChanged=function(e,t,n){var r=this.getCellByColumn(e);r&&this.updateCellOnColumnChanged(r,t,n)},e.prototype.updateCellQuestionOnColumnItemValueChanged=function(e,t,n,r,o,i){var s=this.getCellByColumn(e);s&&this.updateCellOnColumnItemValueChanged(s,t,n,r,o,i)},e.prototype.onQuestionReadOnlyChanged=function(e){for(var t=this.questions,n=0;n<t.length;n++){var r=t[n];r.setPropertyValue("isReadOnly",r.isReadOnly)}this.detailPanel&&(this.detailPanel.readOnly=e)},e.prototype.hasErrors=function(e,t,n){var r=!1,o=this.cells;if(!o)return r;this.validationValues=t.validationValues;for(var i=0;i<o.length;i++)if(o[i]){var s=o[i].question;s&&s.visible&&(s.onCompletedAsyncValidators=function(e){n()},t&&!0===t.isOnValueChanged&&s.isEmpty()||(r=s.hasErrors(e,t)||r))}if(this.hasPanel){this.ensureDetailPanel();var a=this.detailPanel.hasErrors(e,!1,t);!t.hideErroredPanel&&a&&e&&(t.isSingleDetailPanel&&(t.hideErroredPanel=!0),this.showDetailPanel()),r=a||r}return this.validationValues=void 0,r},e.prototype.updateCellOnColumnChanged=function(e,t,n){e.question[t]=n},e.prototype.updateCellOnColumnItemValueChanged=function(e,t,n,r,o,i){var s=e.question[t];if(Array.isArray(s)){var a="value"===r?i:n.value,l=c.ItemValue.getItemByValue(s,a);l&&(l[r]=o)}},e.prototype.buildCells=function(e){this.isSettingValue=!0;for(var t=this.data.columns,n=0;n<t.length;n++){var r=t[n];if(r.isVisible){var o=this.createCell(r);this.cells.push(o);var i=this.getCellValue(e,r.name);if(!s.Helpers.isValueEmpty(i)){o.question.value=i;var l=r.name+a.Base.commentSuffix;e&&!s.Helpers.isValueEmpty(e[l])&&(o.question.comment=e[l])}}}this.isSettingValue=!1},e.prototype.isTwoValueEquals=function(e,t){return s.Helpers.isTwoValueEquals(e,t,!1,!0,!1)},e.prototype.getCellValue=function(e,t){return this.editingObj?o.Serializer.getObjPropertyValue(this.editingObj,t):e?e[t]:void 0},e.prototype.createCell=function(e){return new b(e,this,this.data)},e.prototype.getSurveyData=function(){return this},e.prototype.getSurvey=function(){return this.data?this.data.getSurvey():null},e.prototype.getTextProcessor=function(){return this.textPreProcessor},Object.defineProperty(e.prototype,"rowIndex",{get:function(){return this.data?this.data.getRowIndex(this)+1:-1},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"editingObj",{get:function(){return this.editingObjValue},enumerable:!1,configurable:!0}),e.prototype.dispose=function(){this.editingObj&&(this.editingObj.onPropertyChanged.remove(this.onEditingObjPropertyChanged),this.editingObjValue=null)},e.prototype.subscribeToChanges=function(e){var t=this;e&&e.getType&&e.onPropertyChanged&&e!==this.editingObj&&(this.editingObjValue=e,this.onEditingObjPropertyChanged=function(e,n){t.updateOnSetValue(n.name,n.newValue)},this.editingObj.onPropertyChanged.add(this.onEditingObjPropertyChanged))},e.prototype.updateOnSetValue=function(e,t){this.isSettingValue=!0;for(var n=this.getQuestionsByName(e),r=0;r<n.length;r++)n[r].value=t;this.isSettingValue=!1},e.RowVariableName="row",e.OwnerVariableName="self",e.IndexVariableName="rowIndex",e.RowValueVariableName="rowValue",e.idCounter=1,e}(),P=function(e){function t(t){var n=e.call(this,t,null)||this;return n.buildCells(null),n}return v(t,e),t.prototype.createCell=function(e){return new C(e,this,this.data)},t.prototype.setValue=function(e,t){this.data&&!this.isSettingValue&&this.data.onTotalValueChanged()},t.prototype.runCondition=function(t,n){var r,o=0;do{r=s.Helpers.getUnbindValue(this.value),e.prototype.runCondition.call(this,t,n),o++}while(!s.Helpers.isTwoValueEquals(r,this.value)&&o<3)},t.prototype.updateCellOnColumnChanged=function(e,t,n){e.updateCellQuestion()},t}(x),S=function(e){function t(t){var n=e.call(this,t)||this;return n.isRowChanging=!1,n.lockResetRenderedTable=!1,n.isDoingonAnyValueChanged=!1,n.createItemValues("choices"),n.createLocalizableString("placeholder",n,!1,!0),n.createLocalizableString("keyDuplicationError",n,!1,!0),n.detailPanelValue=n.createNewDetailPanel(),n.detailPanel.selectedElementInDesign=n,n.detailPanel.renderWidth="100%",n.detailPanel.isInteractiveDesignElement=!1,n.detailPanel.showTitle=!1,n.registerPropertyChangedHandlers(["columns","cellType"],(function(){n.updateColumnsAndRows()})),n.registerPropertyChangedHandlers(["placeholder","columnColCount","rowTitleWidth","choices"],(function(){n.clearRowsAndResetRenderedTable()})),n.registerPropertyChangedHandlers(["columnLayout","addRowLocation","hideColumnsIfEmpty","showHeader","minRowCount","isReadOnly","rowCount","hasFooter","detailPanelMode"],(function(){n.resetRenderedTable()})),n.registerPropertyChangedHandlers(["isMobile"],(function(){n.resetRenderedTable()})),n}return v(t,e),Object.defineProperty(t,"defaultCellType",{get:function(){return h.settings.matrix.defaultCellType},set:function(e){h.settings.matrix.defaultCellType=e},enumerable:!1,configurable:!0}),t.addDefaultColumns=function(e){for(var t=p.QuestionFactory.DefaultColums,n=0;n<t.length;n++)e.addColumn(t[n])},t.prototype.createColumnValues=function(){var e=this;return this.createNewArray("columns",(function(t){t.colOwner=e,e.onAddColumn&&e.onAddColumn(t),e.survey&&e.survey.matrixColumnAdded(e,t)}),(function(t){t.colOwner=null,e.onRemoveColumn&&e.onRemoveColumn(t)}))},t.prototype.getType=function(){return"matrixdropdownbase"},t.prototype.dispose=function(){e.prototype.dispose.call(this),this.clearGeneratedRows()},Object.defineProperty(t.prototype,"hasSingleInput",{get:function(){return!1},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isRowsDynamic",{get:function(){return!1},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isUpdateLocked",{get:function(){return this.isLoadingFromJson||this.isUpdating},enumerable:!1,configurable:!0}),t.prototype.beginUpdate=function(){this.isUpdating=!0},t.prototype.endUpdate=function(){this.isUpdating=!1,this.updateColumnsAndRows()},t.prototype.updateColumnsAndRows=function(){this.updateColumnsIndexes(this.columns),this.updateColumnsCellType(),this.generatedTotalRow=null,this.clearRowsAndResetRenderedTable()},t.prototype.itemValuePropertyChanged=function(t,n,r,o){e.prototype.itemValuePropertyChanged.call(this,t,n,r,o),"choices"===t.ownerPropertyName&&this.clearRowsAndResetRenderedTable()},Object.defineProperty(t.prototype,"columnLayout",{get:function(){return this.getPropertyValue("columnLayout")},set:function(e){this.setPropertyValue("columnLayout",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"columnsLocation",{get:function(){return this.columnLayout},set:function(e){this.columnLayout=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isColumnLayoutHorizontal",{get:function(){return!!this.isMobile||"vertical"!=this.columnLayout},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isUniqueCaseSensitive",{get:function(){return void 0!==this.isUniqueCaseSensitiveValue?this.isUniqueCaseSensitiveValue:h.settings.comparator.caseSensitive},set:function(e){this.isUniqueCaseSensitiveValue=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"detailPanelMode",{get:function(){return this.getPropertyValue("detailPanelMode")},set:function(e){this.setPropertyValue("detailPanelMode",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"detailPanel",{get:function(){return this.detailPanelValue},enumerable:!1,configurable:!0}),t.prototype.getPanel=function(){return this.detailPanel},Object.defineProperty(t.prototype,"detailElements",{get:function(){return this.detailPanel.elements},enumerable:!1,configurable:!0}),t.prototype.createNewDetailPanel=function(){return o.Serializer.createClass("panel")},Object.defineProperty(t.prototype,"hasRowText",{get:function(){return!0},enumerable:!1,configurable:!0}),t.prototype.getFooterText=function(){return null},Object.defineProperty(t.prototype,"canAddRow",{get:function(){return!1},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"canRemoveRows",{get:function(){return!1},enumerable:!1,configurable:!0}),t.prototype.canRemoveRow=function(e){return!0},t.prototype.onPointerDown=function(e,t){},t.prototype.onRowsChanged=function(){this.resetRenderedTable(),e.prototype.onRowsChanged.call(this)},t.prototype.onStartRowAddingRemoving=function(){this.lockResetRenderedTable=!0,this.setValueChangedDirectly()},t.prototype.onEndRowAdding=function(){if(this.lockResetRenderedTable=!1,this.renderedTable)if(this.renderedTable.isRequireReset())this.resetRenderedTable();else{var e=this.visibleRows.length-1;this.renderedTable.onAddedRow(this.visibleRows[e],e)}},t.prototype.onEndRowRemoving=function(e){this.lockResetRenderedTable=!1,this.renderedTable.isRequireReset()?this.resetRenderedTable():e&&this.renderedTable.onRemovedRow(e)},Object.defineProperty(t.prototype,"renderedTableValue",{get:function(){return this.getPropertyValue("renderedTable",null)},set:function(e){this.setPropertyValue("renderedTable",e)},enumerable:!1,configurable:!0}),t.prototype.clearRowsAndResetRenderedTable=function(){this.clearGeneratedRows(),this.resetRenderedTable(),this.fireCallback(this.columnsChangedCallback)},t.prototype.resetRenderedTable=function(){this.lockResetRenderedTable||this.isUpdateLocked||(this.renderedTableValue=null,this.fireCallback(this.onRenderedTableResetCallback))},t.prototype.clearGeneratedRows=function(){if(this.generatedVisibleRows){for(var t=0;t<this.generatedVisibleRows.length;t++)this.generatedVisibleRows[t].dispose();e.prototype.clearGeneratedRows.call(this)}},Object.defineProperty(t.prototype,"isRendredTableCreated",{get:function(){return!!this.renderedTableValue},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"renderedTable",{get:function(){return this.renderedTableValue||(this.renderedTableValue=this.createRenderedTable(),this.onRenderedTableCreatedCallback&&this.onRenderedTableCreatedCallback(this.renderedTableValue)),this.renderedTableValue},enumerable:!1,configurable:!0}),t.prototype.createRenderedTable=function(){return new y.QuestionMatrixDropdownRenderedTable(this)},t.prototype.onMatrixRowCreated=function(e){if(this.survey)for(var t={rowValue:e.value,row:e,column:null,columnName:null,cell:null,cellQuestion:null,value:null},n=0;n<this.visibleColumns.length;n++){t.column=this.visibleColumns[n],t.columnName=t.column.name;var r=e.cells[n];t.cell=r,t.cellQuestion=r.question,t.value=r.value,this.onCellCreatedCallback&&this.onCellCreatedCallback(t),this.survey.matrixCellCreated(this,t)}},Object.defineProperty(t.prototype,"cellType",{get:function(){return this.getPropertyValue("cellType",h.settings.matrix.defaultCellType)},set:function(e){e=e.toLowerCase(),this.setPropertyValue("cellType",e)},enumerable:!1,configurable:!0}),t.prototype.updateColumnsCellType=function(){for(var e=0;e<this.columns.length;e++)this.columns[e].defaultCellTypeChanged()},t.prototype.updateColumnsIndexes=function(e){for(var t=0;t<e.length;t++)e[t].setIndex(t)},Object.defineProperty(t.prototype,"columnColCount",{get:function(){return this.getPropertyValue("columnColCount")},set:function(e){e<0||e>4||this.setPropertyValue("columnColCount",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"horizontalScroll",{get:function(){return this.getPropertyValue("horizontalScroll")},set:function(e){this.setPropertyValue("horizontalScroll",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"allowAdaptiveActions",{get:function(){return this.getPropertyValue("allowAdaptiveActions")},set:function(e){this.setPropertyValue("allowAdaptiveActions",e),this.detailPanel&&(this.detailPanel.allowAdaptiveActions=e)},enumerable:!1,configurable:!0}),t.prototype.getRequiredText=function(){return this.survey?this.survey.requiredText:""},t.prototype.hasChoices=function(){return this.choices.length>0},t.prototype.onColumnPropertyChanged=function(e,t,n){if(this.updateHasFooter(),this.generatedVisibleRows){for(var r=0;r<this.generatedVisibleRows.length;r++)this.generatedVisibleRows[r].updateCellQuestionOnColumnChanged(e,t,n);this.generatedTotalRow&&this.generatedTotalRow.updateCellQuestionOnColumnChanged(e,t,n),this.onColumnsChanged(),"isRequired"==t&&this.resetRenderedTable()}},t.prototype.onColumnItemValuePropertyChanged=function(e,t,n,r,o,i){if(this.generatedVisibleRows)for(var s=0;s<this.generatedVisibleRows.length;s++)this.generatedVisibleRows[s].updateCellQuestionOnColumnItemValueChanged(e,t,n,r,o,i)},t.prototype.onShowInMultipleColumnsChanged=function(e){this.clearGeneratedRows(),this.resetRenderedTable()},t.prototype.onColumnCellTypeChanged=function(e){this.clearGeneratedRows(),this.resetRenderedTable()},t.prototype.getRowTitleWidth=function(){return""},Object.defineProperty(t.prototype,"hasFooter",{get:function(){return this.getPropertyValue("hasFooter",!1)},enumerable:!1,configurable:!0}),t.prototype.getAddRowLocation=function(){return"default"},t.prototype.getShowColumnsIfEmpty=function(){return!1},t.prototype.updateShowTableAndAddRow=function(){this.renderedTable&&this.renderedTable.updateShowTableAndAddRow()},t.prototype.updateHasFooter=function(){this.setPropertyValue("hasFooter",this.hasTotal)},Object.defineProperty(t.prototype,"hasTotal",{get:function(){for(var e=0;e<this.columns.length;e++)if(this.columns[e].hasTotal)return!0;return!1},enumerable:!1,configurable:!0}),t.prototype.getCellType=function(){return this.cellType},t.prototype.getCustomCellType=function(e,t,n){if(!this.survey)return n;var r={rowValue:t.value,row:t,column:e,columnName:e.name,cellType:n};return this.survey.matrixCellCreating(this,r),r.cellType},t.prototype.getConditionJson=function(t,n){if(void 0===t&&(t=null),void 0===n&&(n=null),!n)return e.prototype.getConditionJson.call(this);for(var r="",o=n.length-1;o>=0&&"."!=n[o];o--)r=n[o]+r;var i=this.getColumnByName(r);if(!i)return null;var s=i.createCellQuestion(null);return s?s.getConditionJson(t):null},t.prototype.clearIncorrectValues=function(){var e=this.visibleRows;if(e)for(var t=0;t<e.length;t++)e[t].clearIncorrectValues(this.getRowValue(t))},t.prototype.clearErrors=function(){e.prototype.clearErrors.call(this),this.runFuncForCellQuestions((function(e){e.clearErrors()}))},t.prototype.localeChanged=function(){e.prototype.localeChanged.call(this),this.runFuncForCellQuestions((function(e){e.localeChanged()}))},t.prototype.runFuncForCellQuestions=function(e){if(this.generatedVisibleRows)for(var t=0;t<this.generatedVisibleRows.length;t++)for(var n=this.generatedVisibleRows[t],r=0;r<n.cells.length;r++)e(n.cells[r].question)},t.prototype.runCondition=function(t,n){e.prototype.runCondition.call(this,t,n);var r,o=0;do{r=s.Helpers.getUnbindValue(this.totalValue),this.runCellsCondition(t,n),this.runTotalsCondition(t,n),o++}while(!s.Helpers.isTwoValueEquals(r,this.totalValue)&&o<3)},t.prototype.shouldRunColumnExpression=function(){return!1},t.prototype.runCellsCondition=function(e,t){if(this.generatedVisibleRows){for(var n=this.getRowConditionValues(e),r=this.generatedVisibleRows,o=0;o<r.length;o++)r[o].runCondition(n,t);this.checkColumnsVisibility(),this.checkColumnsRenderedRequired()}},t.prototype.checkColumnsVisibility=function(){for(var e=!1,t=0;t<this.visibleColumns.length;t++)this.visibleColumns[t].visibleIf&&(e=this.isColumnVisibilityChanged(this.visibleColumns[t])||e);e&&this.resetRenderedTable()},t.prototype.checkColumnsRenderedRequired=function(){for(var e=this.generatedVisibleRows,t=0;t<this.visibleColumns.length;t++){var n=this.visibleColumns[t];if(n.requiredIf){for(var r=e.length>0,o=0;o<e.length;o++)if(!e[o].cells[t].question.isRequired){r=!1;break}n.updateIsRenderedRequired(r)}}},t.prototype.isColumnVisibilityChanged=function(e){for(var t=e.hasVisibleCell,n=!1,r=this.generatedVisibleRows,o=0;o<r.length;o++){var i=r[o].cells[e.index];if(i&&i.question&&i.question.isVisible){n=!0;break}}return t!=n&&(e.hasVisibleCell=n),t!=n},t.prototype.runTotalsCondition=function(e,t){this.generatedTotalRow&&this.generatedTotalRow.runCondition(this.getRowConditionValues(e),t)},t.prototype.getRowConditionValues=function(e){var t=e;t||(t={});var n={};return this.isValueEmpty(this.totalValue)||(n=JSON.parse(JSON.stringify(this.totalValue))),t.row={},t.totalRow=n,t},t.prototype.IsMultiplyColumn=function(e){return e.isShowInMultipleColumns&&!this.isMobile},t.prototype.locStrsChanged=function(){e.prototype.locStrsChanged.call(this);for(var t=this.columns,n=0;n<t.length;n++)t[n].locStrsChanged();var r=this.generatedVisibleRows;if(r){for(n=0;n<r.length;n++)r[n].locStrsChanged();this.generatedTotalRow&&this.generatedTotalRow.locStrsChanged()}},t.prototype.getColumnByName=function(e){for(var t=0;t<this.columns.length;t++)if(this.columns[t].name==e)return this.columns[t];return null},t.prototype.getColumnName=function(e){return this.getColumnByName(e)},t.prototype.getColumnWidth=function(e){var t;return e.minWidth?e.minWidth:this.columnMinWidth?this.columnMinWidth:(null===(t=h.settings.matrix.columnWidthsByType[e.cellType])||void 0===t?void 0:t.minWidth)||""},Object.defineProperty(t.prototype,"choices",{get:function(){return this.getPropertyValue("choices")},set:function(e){this.setPropertyValue("choices",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"placeholder",{get:function(){return this.getLocalizableStringText("placeholder")},set:function(e){this.setLocalizableStringText("placeholder",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locPlaceholder",{get:function(){return this.getLocalizableString("placeholder")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"optionsCaption",{get:function(){return this.placeholder},set:function(e){this.placeholder=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"keyDuplicationError",{get:function(){return this.getLocalizableStringText("keyDuplicationError")},set:function(e){this.setLocalizableStringText("keyDuplicationError",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locKeyDuplicationError",{get:function(){return this.getLocalizableString("keyDuplicationError")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"storeOthersAsComment",{get:function(){return!!this.survey&&this.survey.storeOthersAsComment},enumerable:!1,configurable:!0}),t.prototype.addColumn=function(e,t){void 0===t&&(t=null);var n=new m.MatrixDropdownColumn(e,t);return this.columns.push(n),n},t.prototype.getVisibleRows=function(){var e=this;return this.isUpdateLocked?null:(this.generatedVisibleRows||(this.generatedVisibleRows=this.generateRows(),this.generatedVisibleRows.forEach((function(t){return e.onMatrixRowCreated(t)})),this.data&&this.runCellsCondition(this.data.getFilteredValues(),this.data.getFilteredProperties()),this.updateValueOnRowsGeneration(this.generatedVisibleRows),this.updateIsAnswered()),this.generatedVisibleRows)},t.prototype.updateValueOnRowsGeneration=function(e){for(var t=this.createNewValue(!0),n=this.createNewValue(),r=0;r<e.length;r++){var o=e[r];if(!o.editingObj){var i=this.getRowValue(r),s=o.value;this.isTwoValueEquals(i,s)||(n=this.getNewValueOnRowChanged(o,"",s,!1,n).value)}}this.isTwoValueEquals(t,n)||(this.isRowChanging=!0,this.setNewValue(n),this.isRowChanging=!1)},Object.defineProperty(t.prototype,"totalValue",{get:function(){return this.hasTotal&&this.visibleTotalRow?this.visibleTotalRow.value:{}},enumerable:!1,configurable:!0}),t.prototype.getVisibleTotalRow=function(){if(this.isUpdateLocked)return null;if(this.hasTotal){if(!this.generatedTotalRow&&(this.generatedTotalRow=this.generateTotalRow(),this.data)){var e={survey:this.survey};this.runTotalsCondition(this.data.getAllValues(),e)}}else this.generatedTotalRow=null;return this.generatedTotalRow},Object.defineProperty(t.prototype,"visibleTotalRow",{get:function(){return this.getVisibleTotalRow()},enumerable:!1,configurable:!0}),t.prototype.onSurveyLoad=function(){e.prototype.onSurveyLoad.call(this),this.updateColumnsIndexes(this.columns),this.clearGeneratedRows(),this.generatedTotalRow=null,this.updateHasFooter()},t.prototype.getRowValue=function(e){if(e<0)return null;var t=this.visibleRows;if(e>=t.length)return null;var n=this.createNewValue();return this.getRowValueCore(t[e],n)},t.prototype.checkIfValueInRowDuplicated=function(e,t){if(!this.generatedVisibleRows)return!1;for(var n=!1,r=0;r<this.generatedVisibleRows.length;r++){var o=this.generatedVisibleRows[r];if(e!==o&&s.Helpers.isTwoValueEquals(o.getValue(t.name),t.value,!0,this.isUniqueCaseSensitive)){n=!0;break}}return n?this.addDuplicationError(t):t.clearErrors(),n},t.prototype.setRowValue=function(e,t){if(e<0)return null;var n=this.visibleRows;if(e>=n.length)return null;n[e].value=t,this.onRowChanged(n[e],"",t,!1)},t.prototype.generateRows=function(){return null},t.prototype.generateTotalRow=function(){return new P(this)},t.prototype.createNewValue=function(e){void 0===e&&(e=!1);var t=this.value?this.createValueCopy():{};return e&&this.isMatrixValueEmpty(t)?null:t},t.prototype.getRowValueCore=function(e,t,n){void 0===n&&(n=!1);var r=t&&t[e.rowName]?t[e.rowName]:null;return!r&&n&&(r={},t&&(t[e.rowName]=r)),r},t.prototype.getRowObj=function(e){var t=this.getRowValueCore(e,this.value);return t&&t.getType?t:null},t.prototype.getRowDisplayValue=function(e,t,n){if(!n)return n;if(t.editingObj)return n;for(var r=Object.keys(n),o=0;o<r.length;o++){var i=r[o],s=t.getQuestionByName(i);if(s||(s=this.getSharedQuestionByName(i,t)),s){var a=s.getDisplayValue(e,n[i]);e&&s.title&&s.title!==i?(n[s.title]=a,delete n[i]):n[i]=a}}return n},t.prototype.getPlainData=function(t){var n=this;void 0===t&&(t={includeEmpty:!0});var r=e.prototype.getPlainData.call(this,t);return r&&(r.isNode=!0,r.data=this.visibleRows.map((function(e){var r={name:e.rowName,title:e.text,value:e.value,displayValue:n.getRowDisplayValue(!1,e,e.value),getString:function(e){return"object"==typeof e?JSON.stringify(e):e},isNode:!0,data:e.cells.map((function(e){return e.question.getPlainData(t)})).filter((function(e){return!!e}))};return(t.calculations||[]).forEach((function(t){r[t.propertyName]=e[t.propertyName]})),r}))),r},t.prototype.addConditionObjectsByContext=function(e,t){var n=!!t&&(!0===t||this.columns.indexOf(t)>-1),r=this.getConditionObjectsRowIndeces();n&&r.push(-1);for(var o=0;o<r.length;o++){var i=r[o],s=i>-1?this.getConditionObjectRowName(i):"row";if(s)for(var a=i>-1?this.getConditionObjectRowText(i):"row",l=i>-1||!0===t,u=l&&-1===i?".":"",c=(l?this.getValueName():"")+u+s+".",p=(l?this.processedTitle:"")+u+a+".",d=0;d<this.columns.length;d++){var h=this.columns[d];if(-1!==i||t!==h){var f={name:c+h.name,text:p+h.fullTitle,question:this};-1===i&&!0===t&&(f.context=this),e.push(f)}}}},t.prototype.collectNestedQuestionsCore=function(e,t){this.visibleRows.forEach((function(n){n.questions.forEach((function(n){return n.collectNestedQuestions(e,t)}))}))},t.prototype.getConditionObjectRowName=function(e){return""},t.prototype.getConditionObjectRowText=function(e){return this.getConditionObjectRowName(e)},t.prototype.getConditionObjectsRowIndeces=function(){return[]},t.prototype.getProgressInfo=function(){if(this.generatedVisibleRows)return l.SurveyElement.getProgressInfoByElements(this.getCellQuestions(),this.isRequired);var e=a.Base.createProgressInfo();return this.updateProgressInfoByValues(e),0===e.requiredQuestionCount&&this.isRequired&&(e.requiredQuestionCount=1,e.requiredAnsweredQuestionCount=this.isEmpty()?0:1),e},t.prototype.updateProgressInfoByValues=function(e){},t.prototype.updateProgressInfoByRow=function(e,t){for(var n=0;n<this.columns.length;n++){var r=this.columns[n];if(r.templateQuestion.hasInput){e.questionCount+=1,e.requiredQuestionCount+=r.isRequired;var o=!s.Helpers.isValueEmpty(t[r.name]);e.answeredQuestionCount+=o?1:0,e.requiredAnsweredQuestionCount+=o&&r.isRequired?1:0}}},t.prototype.getCellQuestions=function(){var e=[];return this.runFuncForCellQuestions((function(t){e.push(t)})),e},t.prototype.onBeforeValueChanged=function(e){},t.prototype.onSetQuestionValue=function(){if(!this.isRowChanging&&(this.onBeforeValueChanged(this.value),this.generatedVisibleRows&&0!=this.generatedVisibleRows.length)){this.isRowChanging=!0;for(var e=this.createNewValue(),t=0;t<this.generatedVisibleRows.length;t++){var n=this.generatedVisibleRows[t];this.generatedVisibleRows[t].value=this.getRowValueCore(n,e)}this.isRowChanging=!1}},t.prototype.setQuestionValue=function(t){e.prototype.setQuestionValue.call(this,t,!1),this.onSetQuestionValue(),this.updateIsAnswered()},t.prototype.supportGoNextPageAutomatic=function(){var e=this.generatedVisibleRows;if(e||(e=this.visibleRows),!e)return!0;for(var t=0;t<e.length;t++){var n=this.generatedVisibleRows[t].cells;if(n)for(var r=0;r<n.length;r++){var o=n[r].question;if(o&&(!o.supportGoNextPageAutomatic()||!o.value))return!1}}return!0},t.prototype.getContainsErrors=function(){return e.prototype.getContainsErrors.call(this)||this.checkForAnswersOrErrors((function(e){return e.containsErrors}),!1)},t.prototype.getIsAnswered=function(){return e.prototype.getIsAnswered.call(this)&&this.checkForAnswersOrErrors((function(e){return e.isAnswered}),!0)},t.prototype.checkForAnswersOrErrors=function(e,t){void 0===t&&(t=!1);var n=this.generatedVisibleRows;if(!n)return!1;for(var r=0;r<n.length;r++){var o=n[r].cells;if(o)for(var i=0;i<o.length;i++)if(o[i]){var s=o[i].question;if(s&&s.isVisible)if(e(s)){if(!t)return!0}else if(t)return!1}}return!!t},t.prototype.hasErrors=function(t,n){void 0===t&&(t=!0),void 0===n&&(n=null);var r=this.hasErrorInRows(t,n),o=this.isValueDuplicated();return e.prototype.hasErrors.call(this,t,n)||r||o},t.prototype.getIsRunningValidators=function(){if(e.prototype.getIsRunningValidators.call(this))return!0;if(!this.generatedVisibleRows)return!1;for(var t=0;t<this.generatedVisibleRows.length;t++){var n=this.generatedVisibleRows[t].cells;if(n)for(var r=0;r<n.length;r++)if(n[r]){var o=n[r].question;if(o&&o.isRunningValidators)return!0}}return!1},t.prototype.getAllErrors=function(){var t=e.prototype.getAllErrors.call(this),n=this.generatedVisibleRows;if(null===n)return t;for(var r=0;r<n.length;r++)for(var o=n[r],i=0;i<o.cells.length;i++){var s=o.cells[i].question.getAllErrors();s&&s.length>0&&(t=t.concat(s))}return t},t.prototype.hasErrorInRows=function(e,t){var n=this,r=this.generatedVisibleRows;this.generatedVisibleRows||(r=this.visibleRows);var o=!1;if(t||(t={}),!r)return t;t.validationValues=this.getDataFilteredValues(),t.isSingleDetailPanel="underRowSingle"===this.detailPanelMode;for(var i=0;i<r.length;i++)o=r[i].hasErrors(e,t,(function(){n.raiseOnCompletedAsyncValidators()}))||o;return o},t.prototype.isValueDuplicated=function(){if(!this.generatedVisibleRows)return!1;for(var e=this.getUniqueColumns(),t=!1,n=0;n<e.length;n++)t=this.isValueInColumnDuplicated(e[n])||t;return t},t.prototype.isValueInColumnDuplicated=function(e){for(var t=[],n=!1,r=0;r<this.generatedVisibleRows.length;r++)n=this.isValueDuplicatedInRow(this.generatedVisibleRows[r],e,t)||n;return n},t.prototype.getUniqueColumns=function(){for(var e=new Array,t=0;t<this.columns.length;t++)this.columns[t].isUnique&&e.push(this.columns[t]);return e},t.prototype.isValueDuplicatedInRow=function(e,t,n){var r=e.getQuestionByColumn(t);if(!r||r.isEmpty())return!1;for(var o=r.value,i=0;i<n.length;i++)if(s.Helpers.isTwoValueEquals(o,n[i],!0,this.isUniqueCaseSensitive))return this.addDuplicationError(r),!0;return n.push(o),!1},t.prototype.addDuplicationError=function(e){e.addError(new f.KeyDuplicationError(this.keyDuplicationError,this))},t.prototype.getFirstQuestionToFocus=function(e){return this.getFirstCellQuestion(e)},t.prototype.getFirstInputElementId=function(){var t=this.getFirstCellQuestion(!1);return t?t.inputId:e.prototype.getFirstInputElementId.call(this)},t.prototype.getFirstErrorInputElementId=function(){var t=this.getFirstCellQuestion(!0);return t?t.inputId:e.prototype.getFirstErrorInputElementId.call(this)},t.prototype.getFirstCellQuestion=function(e){if(!this.generatedVisibleRows)return null;for(var t=0;t<this.generatedVisibleRows.length;t++)for(var n=this.generatedVisibleRows[t].cells,r=0;r<n.length;r++){if(!e)return n[r].question;if(n[r].question.currentErrorCount>0)return n[r].question}return null},t.prototype.onReadOnlyChanged=function(){if(e.prototype.onReadOnlyChanged.call(this),this.generateRows)for(var t=0;t<this.visibleRows.length;t++)this.visibleRows[t].onQuestionReadOnlyChanged(this.isReadOnly)},t.prototype.createQuestion=function(e,t){return this.createQuestionCore(e,t)},t.prototype.createQuestionCore=function(e,t){var n=t.createCellQuestion(e);return n.setSurveyImpl(e),n.setParentQuestion(this),n.inMatrixMode=!0,n},t.prototype.deleteRowValue=function(e,t){return e?(delete e[t.rowName],this.isObject(e)&&0==Object.keys(e).length?null:e):e},t.prototype.onAnyValueChanged=function(e){if(!this.isUpdateLocked&&!this.isDoingonAnyValueChanged&&this.generatedVisibleRows){this.isDoingonAnyValueChanged=!0;for(var t=this.visibleRows,n=0;n<t.length;n++)t[n].onAnyValueChanged(e);var r=this.visibleTotalRow;r&&r.onAnyValueChanged(e),this.isDoingonAnyValueChanged=!1}},t.prototype.isObject=function(e){return null!==e&&"object"==typeof e},t.prototype.getOnCellValueChangedOptions=function(e,t,n){return{row:e,columnName:t,rowValue:n,value:n?n[t]:null,getCellQuestion:function(t){return e.getQuestionByName(t)},cellQuestion:e.getQuestionByName(t),column:this.getColumnByName(t)}},t.prototype.onCellValueChanged=function(e,t,n){if(this.survey){var r=this.getOnCellValueChangedOptions(e,t,n);this.onCellValueChangedCallback&&this.onCellValueChangedCallback(r),this.survey.matrixCellValueChanged(this,r)}},t.prototype.validateCell=function(e,t,n){if(this.survey){var r=this.getOnCellValueChangedOptions(e,t,n);return this.survey.matrixCellValidate(this,r)}},Object.defineProperty(t.prototype,"isValidateOnValueChanging",{get:function(){return!!this.survey&&this.survey.isValidateOnValueChanging},enumerable:!1,configurable:!0}),t.prototype.onRowChanging=function(e,t,n){if(!this.survey&&!this.cellValueChangingCallback)return n?n[t]:null;var r=this.getOnCellValueChangedOptions(e,t,n),o=this.getRowValueCore(e,this.createNewValue(),!0);return r.oldValue=o?o[t]:null,this.cellValueChangingCallback&&(r.value=this.cellValueChangingCallback(e,t,r.value,r.oldValue)),this.survey&&this.survey.matrixCellValueChanging(this,r),r.value},t.prototype.onRowChanged=function(e,t,n,r){var o=t?this.getRowObj(e):null;if(o){var i=null;n&&!r&&(i=n[t]),this.isRowChanging=!0,o[t]=i,this.isRowChanging=!1,this.onCellValueChanged(e,t,o)}else{var s=this.createNewValue(!0),a=this.getNewValueOnRowChanged(e,t,n,r,this.createNewValue());if(this.isTwoValueEquals(s,a.value))return;this.isRowChanging=!0,this.setNewValue(a.value),this.isRowChanging=!1,t&&this.onCellValueChanged(e,t,a.rowValue)}},t.prototype.getNewValueOnRowChanged=function(e,t,n,r,o){var i=this.getRowValueCore(e,o,!0);r&&delete i[t];for(var s=0;s<e.cells.length;s++)delete i[a=e.cells[s].question.getValueName()];if(n)for(var a in n=JSON.parse(JSON.stringify(n)))this.isValueEmpty(n[a])||(i[a]=n[a]);return this.isObject(i)&&0===Object.keys(i).length&&(o=this.deleteRowValue(o,e)),{value:o,rowValue:i}},t.prototype.getRowIndex=function(e){return this.generatedVisibleRows?this.visibleRows.indexOf(e):-1},t.prototype.getElementsInDesign=function(t){var n;return void 0===t&&(t=!1),n="none"==this.detailPanelMode?e.prototype.getElementsInDesign.call(this,t):t?[this.detailPanel]:this.detailElements,this.columns.concat(n)},t.prototype.hasDetailPanel=function(e){return"none"!=this.detailPanelMode&&(!!this.isDesignMode||(this.onHasDetailPanelCallback?this.onHasDetailPanelCallback(e):this.detailElements.length>0))},t.prototype.getIsDetailPanelShowing=function(e){if("none"==this.detailPanelMode)return!1;if(this.isDesignMode){var t=0==this.visibleRows.indexOf(e);return t&&(e.detailPanel||e.showDetailPanel()),t}return this.getPropertyValue("isRowShowing"+e.id,!1)},t.prototype.setIsDetailPanelShowing=function(e,t){if(t!=this.getIsDetailPanelShowing(e)&&(this.setPropertyValue("isRowShowing"+e.id,t),this.updateDetailPanelButtonCss(e),this.renderedTable&&this.renderedTable.onDetailPanelChangeVisibility(e,t),t&&"underRowSingle"===this.detailPanelMode))for(var n=this.visibleRows,r=0;r<n.length;r++)n[r].id!==e.id&&n[r].isDetailPanelShowing&&n[r].hideDetailPanel()},t.prototype.getDetailPanelButtonCss=function(e){var t=(new g.CssClassBuilder).append(this.getPropertyValue("detailButtonCss"+e.id));return t.append(this.cssClasses.detailButton,""===t.toString()).toString()},t.prototype.getDetailPanelIconCss=function(e){var t=(new g.CssClassBuilder).append(this.getPropertyValue("detailIconCss"+e.id));return t.append(this.cssClasses.detailIcon,""===t.toString()).toString()},t.prototype.getDetailPanelIconId=function(e){return this.getIsDetailPanelShowing(e)?this.cssClasses.detailIconExpandedId:this.cssClasses.detailIconId},t.prototype.updateDetailPanelButtonCss=function(e){var t=this.cssClasses,n=this.getIsDetailPanelShowing(e),r=(new g.CssClassBuilder).append(t.detailIcon).append(t.detailIconExpanded,n);this.setPropertyValue("detailIconCss"+e.id,r.toString());var o=(new g.CssClassBuilder).append(t.detailButton).append(t.detailButtonExpanded,n);this.setPropertyValue("detailButtonCss"+e.id,o.toString())},t.prototype.createRowDetailPanel=function(e){if(this.isDesignMode)return this.detailPanel;var t=this.createNewDetailPanel();t.readOnly=this.isReadOnly;var n=this.detailPanel.toJSON();return(new o.JsonObject).toObject(n,t),t.renderWidth="100%",t.updateCustomWidgets(),this.onCreateDetailPanelCallback&&this.onCreateDetailPanelCallback(e,t),t},t.prototype.getSharedQuestionByName=function(e,t){if(!this.survey||!this.valueName)return null;var n=this.getRowIndex(t);return n<0?null:this.survey.getQuestionByValueNameFromArray(this.valueName,e,n)},t.prototype.onTotalValueChanged=function(){this.data&&this.visibleTotalRow&&!this.isUpdateLocked&&!this.isSett&&this.data.setValue(this.getValueName()+h.settings.matrix.totalsSuffix,this.totalValue,!1)},t.prototype.getParentTextProcessor=function(){if(!this.parentQuestion||!this.parent)return null;var e=this.parent.data;return e&&e.getTextProcessor?e.getTextProcessor():null},t.prototype.getQuestionFromArray=function(e,t){return t>=this.visibleRows.length?null:this.visibleRows[t].getQuestionByName(e)},t.prototype.isMatrixValueEmpty=function(e){if(e){if(Array.isArray(e)){for(var t=0;t<e.length;t++)if(this.isObject(e[t])&&Object.keys(e[t]).length>0)return!1;return!0}return 0==Object.keys(e).length}},Object.defineProperty(t.prototype,"SurveyModel",{get:function(){return this.survey},enumerable:!1,configurable:!0}),t.prototype.getCellTemplateData=function(e){return this.SurveyModel.getMatrixCellTemplateData(e)},t.prototype.getCellWrapperComponentName=function(e){return this.SurveyModel.getElementWrapperComponentName(e,e.row instanceof P?"row-footer":"cell")},t.prototype.getCellWrapperComponentData=function(e){return this.SurveyModel.getElementWrapperComponentData(e,e.row instanceof P?"row-footer":"cell")},t.prototype.getColumnHeaderWrapperComponentName=function(e){return this.SurveyModel.getElementWrapperComponentName(e,"column-header")},t.prototype.getColumnHeaderWrapperComponentData=function(e){return this.SurveyModel.getElementWrapperComponentData(e,"column-header")},t.prototype.getRowHeaderWrapperComponentName=function(e){return this.SurveyModel.getElementWrapperComponentName(e,"row-header")},t.prototype.getRowHeaderWrapperComponentData=function(e){return this.SurveyModel.getElementWrapperComponentData(e,"row-header")},Object.defineProperty(t.prototype,"showHorizontalScroll",{get:function(){return!this.isDefaultV2Theme&&this.horizontalScroll},enumerable:!1,configurable:!0}),t.prototype.getRootCss=function(){return(new g.CssClassBuilder).append(e.prototype.getRootCss.call(this)).append(this.cssClasses.rootScroll,this.horizontalScroll).toString()},t.prototype.getIsTooltipErrorInsideSupported=function(){return!1},t}(i.QuestionMatrixBaseModel);o.Serializer.addClass("matrixdropdownbase",[{name:"columns:matrixdropdowncolumns",className:"matrixdropdowncolumn"},{name:"columnLayout",alternativeName:"columnsLocation",default:"horizontal",choices:["horizontal","vertical"]},{name:"detailElements",visible:!1,isLightSerializable:!1},{name:"detailPanelMode",choices:["none","underRow","underRowSingle"],default:"none"},"horizontalScroll:boolean",{name:"choices:itemvalue[]",uniqueProperty:"value"},{name:"placeholder",alternativeName:"optionsCaption",serializationProperty:"locPlaceholder"},{name:"keyDuplicationError",serializationProperty:"locKeyDuplicationError"},{name:"cellType",default:"dropdown",choices:function(){return m.MatrixDropdownColumn.getColumnTypes()}},{name:"columnColCount",default:0,choices:[0,1,2,3,4]},"columnMinWidth",{name:"allowAdaptiveActions:boolean",default:!1,visible:!1}],(function(){return new S("")}),"matrixbase")},"./src/question_matrixdropdowncolumn.ts":function(e,t,n){"use strict";n.r(t),n.d(t,"matrixDropdownColumnTypes",(function(){return c})),n.d(t,"MatrixDropdownColumn",(function(){return p}));var r,o=n("./src/jsonobject.ts"),i=n("./src/base.ts"),s=n("./src/question_expression.ts"),a=n("./src/settings.ts"),l=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});function u(e,t,n,r){e.storeOthersAsComment=!!n&&n.storeOthersAsComment,e.choices&&0!=e.choices.length||!e.choicesByUrl.isEmpty||(e.choices=n.choices),e.choicesByUrl.isEmpty||e.choicesByUrl.run(r.getTextProcessor())}var c={dropdown:{onCellQuestionUpdate:function(e,t,n,r){u(e,0,n,r),e.locPlaceholder&&e.locPlaceholder.isEmpty&&!n.locPlaceholder.isEmpty&&(e.optionsCaption=n.optionsCaption)}},checkbox:{onCellQuestionUpdate:function(e,t,n,r){u(e,0,n,r),e.colCount=t.colCount>-1?t.colCount:n.columnColCount}},radiogroup:{onCellQuestionUpdate:function(e,t,n,r){u(e,0,n,r),e.colCount=t.colCount>-1?t.colCount:n.columnColCount}},tagbox:{},text:{},comment:{},boolean:{onCellQuestionUpdate:function(e,t,n,r){e.renderAs=t.renderAs}},expression:{},rating:{}},p=function(e){function t(t,n){void 0===n&&(n=null);var r=e.call(this)||this;return r.colOwnerValue=null,r.indexValue=-1,r._isVisible=!0,r._hasVisibleCell=!0,r.previousChoicesId=void 0,r.createLocalizableString("totalFormat",r),r.createLocalizableString("cellHint",r),r.registerPropertyChangedHandlers(["showInMultipleColumns"],(function(){r.doShowInMultipleColumnsChanged()})),r.updateTemplateQuestion(),r.name=t,n?r.title=n:r.templateQuestion.locTitle.strChanged(),r}return l(t,e),t.getColumnTypes=function(){var e=[];for(var t in c)e.push(t);return e},t.prototype.getOriginalObj=function(){return this.templateQuestion},t.prototype.getClassNameProperty=function(){return"cellType"},t.prototype.getSurvey=function(e){return void 0===e&&(e=!1),this.colOwner?this.colOwner.survey:null},t.prototype.endLoadingFromJson=function(){var t=this;e.prototype.endLoadingFromJson.call(this),this.templateQuestion.autoOtherMode=this.isShowInMultipleColumns,this.templateQuestion.endLoadingFromJson(),this.templateQuestion.onGetSurvey=function(){return t.getSurvey()}},t.prototype.getDynamicPropertyName=function(){return"cellType"},t.prototype.getDynamicType=function(){return"default"===this.cellType?"question":this.calcCellQuestionType(null)},Object.defineProperty(t.prototype,"colOwner",{get:function(){return this.colOwnerValue},set:function(e){this.colOwnerValue=e,e&&(this.updateTemplateQuestion(),this.setParentQuestionToTemplate(this.templateQuestion))},enumerable:!1,configurable:!0}),t.prototype.locStrsChanged=function(){e.prototype.locStrsChanged.call(this),this.locTitle.strChanged()},t.prototype.addUsedLocales=function(t){e.prototype.addUsedLocales.call(this,t),this.templateQuestion.addUsedLocales(t)},Object.defineProperty(t.prototype,"index",{get:function(){return this.indexValue},enumerable:!1,configurable:!0}),t.prototype.setIndex=function(e){this.indexValue=e},t.prototype.getType=function(){return"matrixdropdowncolumn"},Object.defineProperty(t.prototype,"cellType",{get:function(){return this.getPropertyValue("cellType")},set:function(e){e=e.toLocaleLowerCase(),this.updateTemplateQuestion(e),this.setPropertyValue("cellType",e),this.colOwner&&this.colOwner.onColumnCellTypeChanged(this)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"templateQuestion",{get:function(){return this.templateQuestionValue},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"value",{get:function(){return this.templateQuestion.name},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isVisible",{get:function(){return this._isVisible},enumerable:!1,configurable:!0}),t.prototype.setIsVisible=function(e){this._isVisible=e},Object.defineProperty(t.prototype,"hasVisibleCell",{get:function(){return this._hasVisibleCell},set:function(e){this._hasVisibleCell=e},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,"isUnique",{get:function(){return this.getPropertyValue("isUnique")},set:function(e){this.setPropertyValue("isUnique",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"showInMultipleColumns",{get:function(){return this.getPropertyValue("showInMultipleColumns")},set:function(e){this.setPropertyValue("showInMultipleColumns",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isSupportMultipleColumns",{get:function(){return["checkbox","radiogroup"].indexOf(this.cellType)>-1},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isShowInMultipleColumns",{get:function(){return this.showInMultipleColumns&&this.isSupportMultipleColumns},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"validators",{get:function(){return this.templateQuestion.validators},set:function(e){this.templateQuestion.validators=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"totalType",{get:function(){return this.getPropertyValue("totalType")},set:function(e){this.setPropertyValue("totalType",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"totalExpression",{get:function(){return this.getPropertyValue("totalExpression")},set:function(e){this.setPropertyValue("totalExpression",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hasTotal",{get:function(){return"none"!=this.totalType||!!this.totalExpression},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"totalFormat",{get:function(){return this.getLocalizableStringText("totalFormat","")},set:function(e){this.setLocalizableStringText("totalFormat",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locTotalFormat",{get:function(){return this.getLocalizableString("totalFormat")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"cellHint",{get:function(){return this.getLocalizableStringText("cellHint","")},set:function(e){this.setLocalizableStringText("cellHint",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locCellHint",{get:function(){return this.getLocalizableString("cellHint")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"renderAs",{get:function(){return this.getPropertyValue("renderAs")},set:function(e){this.setPropertyValue("renderAs",e),this.templateQuestion&&(this.templateQuestion.renderAs=e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"totalMaximumFractionDigits",{get:function(){return this.getPropertyValue("totalMaximumFractionDigits")},set:function(e){e<-1||e>20||this.setPropertyValue("totalMaximumFractionDigits",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"totalMinimumFractionDigits",{get:function(){return this.getPropertyValue("totalMinimumFractionDigits")},set:function(e){e<-1||e>20||this.setPropertyValue("totalMinimumFractionDigits",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"totalDisplayStyle",{get:function(){return this.getPropertyValue("totalDisplayStyle")},set:function(e){this.setPropertyValue("totalDisplayStyle",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"totalCurrency",{get:function(){return this.getPropertyValue("totalCurrency")},set:function(e){Object(s.getCurrecyCodes)().indexOf(e)<0||this.setPropertyValue("totalCurrency",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"minWidth",{get:function(){return this.getPropertyValue("minWidth","")},set:function(e){this.setPropertyValue("minWidth",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"width",{get:function(){return this.templateQuestion.width},set:function(e){this.templateQuestion.width=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"colCount",{get:function(){return this.getPropertyValue("colCount")},set:function(e){e<-1||e>4||this.setPropertyValue("colCount",e)},enumerable:!1,configurable:!0}),t.prototype.getLocale=function(){return this.colOwner?this.colOwner.getLocale():""},t.prototype.getMarkdownHtml=function(e,t){return this.colOwner?this.colOwner.getMarkdownHtml(e,t):void 0},t.prototype.getRenderer=function(e){return this.colOwner?this.colOwner.getRenderer(e):null},t.prototype.getRendererContext=function(e){return this.colOwner?this.colOwner.getRendererContext(e):e},t.prototype.getProcessedText=function(e){return this.colOwner?this.colOwner.getProcessedText(e):e},t.prototype.createCellQuestion=function(e){var t=this.calcCellQuestionType(e),n=this.createNewQuestion(t);return this.callOnCellQuestionUpdate(n,e),n},t.prototype.startLoadingFromJson=function(t){e.prototype.startLoadingFromJson.call(this,t),t&&!t.cellType&&t.choices&&(t.cellType=this.colOwner.getCellType())},t.prototype.updateCellQuestion=function(e,t,n){void 0===n&&(n=null),this.setQuestionProperties(e,n)},t.prototype.callOnCellQuestionUpdate=function(e,t){var n=e.getType(),r=c[n];r&&r.onCellQuestionUpdate&&r.onCellQuestionUpdate(e,this,this.colOwner,t)},t.prototype.defaultCellTypeChanged=function(){this.updateTemplateQuestion()},t.prototype.calcCellQuestionType=function(e){var t=this.getDefaultCellQuestionType();return e&&this.colOwner&&(t=this.colOwner.getCustomCellType(this,e,t)),t},t.prototype.getDefaultCellQuestionType=function(e){return e||(e=this.cellType),"default"!==e?e:this.colOwner?this.colOwner.getCellType():a.settings.matrix.defaultCellType},t.prototype.updateTemplateQuestion=function(e){var t=this,n=this.getDefaultCellQuestionType(e),r=this.templateQuestion?this.templateQuestion.getType():"";n!==r&&(this.templateQuestion&&this.removeProperties(r),this.templateQuestionValue=this.createNewQuestion(n),this.templateQuestion.locOwner=this,this.addProperties(n),this.templateQuestion.onPropertyChanged.add((function(e,n){t.propertyValueChanged(n.name,n.oldValue,n.newValue)})),this.templateQuestion.onItemValuePropertyChanged.add((function(e,n){t.doItemValuePropertyChanged(n.propertyName,n.obj,n.name,n.newValue,n.oldValue)})),this.templateQuestion.isContentElement=!0,this.isLoadingFromJson||(this.templateQuestion.onGetSurvey=function(){return t.getSurvey()}),this.templateQuestion.locTitle.strChanged())},t.prototype.createNewQuestion=function(e){var t=o.Serializer.createClass(e);return t||(t=o.Serializer.createClass("text")),t.loadingOwner=this,t.isEditableTemplateElement=!0,t.autoOtherMode=this.isShowInMultipleColumns,this.setQuestionProperties(t),this.setParentQuestionToTemplate(t),t},t.prototype.setParentQuestionToTemplate=function(e){this.colOwner&&this.colOwner.isQuestion&&e.setParentQuestion(this.colOwner)},t.prototype.setQuestionProperties=function(e,t){var n=this;if(void 0===t&&(t=null),this.templateQuestion){var r=(new o.JsonObject).toJsonObject(this.templateQuestion,!0);t&&t(r),r.type=e.getType(),"default"===this.cellType&&this.colOwner&&this.colOwner.hasChoices()&&delete r.choices,delete r.itemComponent,this.jsonObj&&Object.keys(this.jsonObj).forEach((function(e){r[e]=n.jsonObj[e]})),(new o.JsonObject).toObject(r,e),e.isContentElement=this.templateQuestion.isContentElement,this.previousChoicesId=void 0,e.loadedChoicesFromServerCallback=function(){if(n.isShowInMultipleColumns&&(!n.previousChoicesId||n.previousChoicesId===e.id)){n.previousChoicesId=e.id;var t=e.visibleChoices;n.templateQuestion.choices=t,n.propertyValueChanged("choices",t,t)}}}},t.prototype.propertyValueChanged=function(t,n,r){e.prototype.propertyValueChanged.call(this,t,n,r),"isRequired"===t&&this.updateIsRenderedRequired(r),this.colOwner&&!this.isLoadingFromJson&&(this.isShowInMultipleColumns&&["visibleChoices","choices"].indexOf(t)>-1&&this.colOwner.onShowInMultipleColumnsChanged(this),o.Serializer.hasOriginalProperty(this,t)&&this.colOwner.onColumnPropertyChanged(this,t,r))},t.prototype.doItemValuePropertyChanged=function(e,t,n,r,i){o.Serializer.hasOriginalProperty(t,n)&&(null==this.colOwner||this.isLoadingFromJson||this.colOwner.onColumnItemValuePropertyChanged(this,e,t,n,r,i))},t.prototype.doShowInMultipleColumnsChanged=function(){null==this.colOwner||this.isLoadingFromJson||this.colOwner.onShowInMultipleColumnsChanged(this),this.templateQuestion&&(this.templateQuestion.autoOtherMode=this.isShowInMultipleColumns)},t.prototype.getProperties=function(e){return o.Serializer.getDynamicPropertiesByObj(this,e)},t.prototype.removeProperties=function(e){for(var t=this.getProperties(e),n=0;n<t.length;n++){var r=t[n];delete this[r.name],r.serializationProperty&&delete this[r.serializationProperty]}},t.prototype.addProperties=function(e){for(var t=this.templateQuestion,n=this.getProperties(e),r=0;r<n.length;r++){var o=n[r];this.addProperty(t,o.name,!1),o.serializationProperty&&this.addProperty(t,o.serializationProperty,!0),o.alternativeName&&this.addProperty(t,o.alternativeName,!1)}},t.prototype.addProperty=function(e,t,n){var r={configurable:!0,get:function(){return e[t]}};n||(r.set=function(n){e[t]=n}),Object.defineProperty(this,t,r)},t}(i.Base);o.Serializer.addClass("matrixdropdowncolumn",[{name:"!name",isUnique:!0},{name:"title",serializationProperty:"locTitle",dependsOn:"name",onPropertyEditorUpdate:function(e,t){e&&t&&(t.placeholder=e.name)}},{name:"cellHint",serializationProperty:"locCellHint",visible:!1},{name:"cellType",default:"default",choices:function(){var e=p.getColumnTypes();return e.splice(0,0,"default"),e}},{name:"colCount",default:-1,choices:[-1,0,1,2,3,4]},"isRequired:boolean","isUnique:boolean",{name:"requiredErrorText:text",serializationProperty:"locRequiredErrorText"},"readOnly:boolean",{name:"minWidth",onPropertyEditorUpdate:function(e,t){e&&t&&(t.value=e.minWidth)}},"width","visibleIf:condition","enableIf:condition","requiredIf:condition",{name:"showInMultipleColumns:boolean",dependsOn:"cellType",visibleIf:function(e){return!!e&&e.isSupportMultipleColumns}},{name:"validators:validators",baseClassName:"surveyvalidator",classNamePart:"validator"},{name:"totalType",default:"none",choices:["none","sum","count","min","max","avg"]},"totalExpression:expression",{name:"totalFormat",serializationProperty:"locTotalFormat"},{name:"totalDisplayStyle",default:"none",choices:["none","decimal","currency","percent"]},{name:"totalCurrency",choices:function(){return Object(s.getCurrecyCodes)()},default:"USD"},{name:"totalMaximumFractionDigits:number",default:-1},{name:"totalMinimumFractionDigits:number",default:-1},{name:"renderAs",default:"default",visible:!1}],(function(){return new p("")}))},"./src/question_matrixdropdownrendered.ts":function(e,t,n){"use strict";n.r(t),n.d(t,"QuestionMatrixDropdownRenderedCell",(function(){return f})),n.d(t,"QuestionMatrixDropdownRenderedRow",(function(){return g})),n.d(t,"QuestionMatrixDropdownRenderedErrorRow",(function(){return m})),n.d(t,"QuestionMatrixDropdownRenderedTable",(function(){return y}));var r,o=n("./src/jsonobject.ts"),i=n("./src/base.ts"),s=n("./src/itemvalue.ts"),a=n("./src/actions/action.ts"),l=n("./src/actions/adaptive-container.ts"),u=n("./src/utils/cssClassBuilder.ts"),c=n("./src/actions/container.ts"),p=n("./src/settings.ts"),d=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),h=function(e,t,n,r){var o,i=arguments.length,s=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,r);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(i<3?o(s):i>3?o(t,n,s):o(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},f=function(){function e(){this.minWidth="",this.width="",this.colSpans=1,this.isActionsCell=!1,this.isErrorsCell=!1,this.isDragHandlerCell=!1,this.classNameValue="",this.idValue=e.counter++}return Object.defineProperty(e.prototype,"hasQuestion",{get:function(){return!!this.question&&!this.isErrorsCell},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"hasTitle",{get:function(){return!!this.locTitle},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"hasPanel",{get:function(){return!!this.panel},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"id",{get:function(){return this.idValue},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"item",{get:function(){return this.itemValue},set:function(e){this.itemValue=e,e&&(e.hideCaption=!0)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"isChoice",{get:function(){return!!this.item},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"isItemChoice",{get:function(){return this.isChoice&&!this.isOtherChoice},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"choiceValue",{get:function(){return this.isChoice?this.item.value:null},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"isCheckbox",{get:function(){return this.isItemChoice&&this.question.isDescendantOf("checkbox")},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"isRadio",{get:function(){return this.isItemChoice&&this.question.isDescendantOf("radiogroup")},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"isFirstChoice",{get:function(){return 0===this.choiceIndex},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"className",{get:function(){var e=(new u.CssClassBuilder).append(this.classNameValue);return this.hasQuestion&&e.append(this.question.cssClasses.hasError,this.question.errors.length>0).append(this.question.cssClasses.answered,this.question.isAnswered),e.toString()},set:function(e){this.classNameValue=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"headers",{get:function(){if(this.cell&&this.cell.column){if(" "===this.cell.column.cellHint)return"";if(this.cell.column.cellHint)return this.cell.column.locCellHint.renderedHtml;if(this.matrix.IsMultiplyColumn(this.cell.column))return this.item?this.item.locText.renderedHtml:""}return this.hasQuestion&&this.question.isVisible?this.question.locTitle.renderedHtml:this.hasTitle&&this.locTitle.renderedHtml||""},enumerable:!1,configurable:!0}),e.prototype.getTitle=function(){return this.matrix&&this.matrix.showHeader?this.headers:""},e.prototype.calculateFinalClassName=function(e){var t=this.cell.question.cssClasses,n=(new u.CssClassBuilder).append(t.itemValue,!!t).append(t.asCell,!!t);return n.append(e.cell,n.isEmpty()&&!!e).append(e.choiceCell,this.isChoice).toString()},e.counter=1,e}(),g=function(e){function t(n,r){void 0===r&&(r=!1);var o=e.call(this)||this;return o.cssClasses=n,o.isDetailRow=r,o.isErrorsRow=!1,o.cells=[],o.idValue=t.counter++,o}return d(t,e),Object.defineProperty(t.prototype,"id",{get:function(){return this.idValue},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"attributes",{get:function(){return this.row?{"data-sv-drop-target-matrix-row":this.row.id}:{}},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"className",{get:function(){return(new u.CssClassBuilder).append(this.cssClasses.row).append(this.cssClasses.detailRow,this.isDetailRow).append(this.cssClasses.ghostRow,this.isGhostRow).append(this.cssClasses.rowAdditional,this.isAdditionalClasses).toString()},enumerable:!1,configurable:!0}),t.counter=1,h([Object(o.property)({defaultValue:!1})],t.prototype,"isGhostRow",void 0),h([Object(o.property)({defaultValue:!1})],t.prototype,"isAdditionalClasses",void 0),h([Object(o.property)({defaultValue:!0})],t.prototype,"visible",void 0),t}(i.Base),m=function(e){function t(t){var n=e.call(this,t)||this;return n.isErrorsRow=!0,n}return d(t,e),Object.defineProperty(t.prototype,"attributes",{get:function(){return{}},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"className",{get:function(){return(new u.CssClassBuilder).append(this.cssClasses.row).append(this.cssClasses.errorRow).toString()},enumerable:!1,configurable:!0}),t.prototype.onAfterCreated=function(){var e=this,t=function(){e.visible=e.cells.some((function(e){return e.question&&e.question.hasVisibleErrors}))};this.cells.forEach((function(e){e.question&&e.question.registerFunctionOnPropertyValueChanged("hasVisibleErrors",t)})),t()},t}(g),y=function(e){function t(t){var n=e.call(this)||this;return n.matrix=t,n.renderedRowsChangedCallback=function(){},n.hasActionCellInRowsValues={},n.build(),n}return d(t,e),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,"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,"allowRowsDragAndDrop",{get:function(){return this.matrix.allowRowsDragAndDrop&&this.matrix.isColumnLayoutHorizontal},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"showCellErrorsTop",{get:function(){return"top"==this.matrix.errorLocation},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"showCellErrorsBottom",{get:function(){return"bottom"==this.matrix.errorLocation},enumerable:!1,configurable:!0}),t.prototype.build=function(){this.hasRemoveRowsValue=this.matrix.canRemoveRows,this.matrix.visibleRows,this.cssClasses=this.matrix.cssClasses,this.buildRowsActions(),this.buildHeader(),this.buildRows(),this.buildFooter(),this.updateShowTableAndAddRow()},t.prototype.updateShowTableAndAddRow=function(){var e=this.rows.length>0||this.matrix.isDesignMode||!this.matrix.getShowColumnsIfEmpty();this.setPropertyValue("showTable",e);var t=this.matrix.canAddRow&&e,n=t,r=t;n&&(n="default"===this.matrix.getAddRowLocation()?!this.matrix.isColumnLayoutHorizontal:"bottom"!==this.matrix.getAddRowLocation()),r&&"topBottom"!==this.matrix.getAddRowLocation()&&(r=!n),this.setPropertyValue("showAddRowOnTop",n),this.setPropertyValue("showAddRowOnBottom",r)},t.prototype.onAddedRow=function(e,t){if(!(this.getRenderedDataRowCount()>=this.matrix.visibleRows.length)){var n=this.getRenderedRowIndexByIndex(t);this.rowsActions.splice(t,0,this.buildRowActions(e)),this.addHorizontalRow(this.rows,e,1==this.matrix.visibleRows.length&&!this.matrix.showHeader,n),this.updateShowTableAndAddRow()}},t.prototype.getRenderedRowIndexByIndex=function(e){for(var t=0,n=0,r=0;r<this.rows.length;r++){if(n===e){(this.rows[r].isErrorsRow||this.rows[r].isDetailRow)&&t++;break}t++,this.rows[r].isErrorsRow||this.rows[r].isDetailRow||n++}return n<e?this.rows.length:t},t.prototype.getRenderedDataRowCount=function(){for(var e=0,t=0;t<this.rows.length;t++)this.rows[t].isErrorsRow||this.rows[t].isDetailRow||e++;return e},t.prototype.onRemovedRow=function(e){var t=this.getRenderedRowIndex(e);if(!(t<0)){this.rowsActions.splice(t,1);var n=1;t<this.rows.length-1&&this.showCellErrorsBottom&&this.rows[t+1].isErrorsRow&&n++,t<this.rows.length-1&&(this.rows[t+1].isDetailRow||this.showCellErrorsBottom&&t+1<this.rows.length-1&&this.rows[t+2].isDetailRow)&&n++,t>0&&this.showCellErrorsTop&&this.rows[t-1].isErrorsRow&&(t--,n++),this.rows.splice(t,n),this.updateShowTableAndAddRow()}},t.prototype.onDetailPanelChangeVisibility=function(e,t){var n=this.getRenderedRowIndex(e);if(!(n<0)){var r=n;this.showCellErrorsBottom&&r++;var o=r<this.rows.length-1&&this.rows[r+1].isDetailRow?r+1:-1;if(!(t&&o>-1||!t&&o<0))if(t){var i=this.createDetailPanelRow(e,this.rows[n]);this.rows.splice(r+1,0,i)}else this.rows.splice(o,1)}},t.prototype.getRenderedRowIndex=function(e){for(var t=0;t<this.rows.length;t++)if(this.rows[t].row==e)return t;return-1},t.prototype.buildRowsActions=function(){this.rowsActions=[];for(var e=this.matrix.visibleRows,t=0;t<e.length;t++)this.rowsActions.push(this.buildRowActions(e[t]))},t.prototype.createRenderedRow=function(e,t){return void 0===t&&(t=!1),new g(e,t)},t.prototype.createErrorRenderedRow=function(e){return new m(e)},t.prototype.buildHeader=function(){var e=this.matrix.isColumnLayoutHorizontal&&this.matrix.showHeader||this.matrix.hasRowText&&!this.matrix.isColumnLayoutHorizontal;if(this.setPropertyValue("showHeader",e),e){if(this.headerRowValue=this.createRenderedRow(this.cssClasses),this.allowRowsDragAndDrop&&this.headerRow.cells.push(this.createHeaderCell(null)),this.hasActionCellInRows("start")&&this.headerRow.cells.push(this.createHeaderCell(null)),this.matrix.hasRowText&&this.matrix.showHeader&&this.headerRow.cells.push(this.createHeaderCell(null)),this.matrix.isColumnLayoutHorizontal)for(var t=0;t<this.matrix.visibleColumns.length;t++){var n=this.matrix.visibleColumns[t];n.hasVisibleCell&&(this.matrix.IsMultiplyColumn(n)?this.createMutlipleColumnsHeader(n):this.headerRow.cells.push(this.createHeaderCell(n)))}else{var r=this.matrix.visibleRows;for(t=0;t<r.length;t++){var o=this.createTextCell(r[t].locText);this.setHeaderCellCssClasses(o),o.row=r[t],this.headerRow.cells.push(o)}this.matrix.hasFooter&&(o=this.createTextCell(this.matrix.getFooterText()),this.setHeaderCellCssClasses(o),this.headerRow.cells.push(o))}this.hasActionCellInRows("end")&&this.headerRow.cells.push(this.createHeaderCell(null))}},t.prototype.buildFooter=function(){if(this.showFooter){this.footerRowValue=this.createRenderedRow(this.cssClasses),this.allowRowsDragAndDrop&&this.footerRow.cells.push(this.createHeaderCell(null)),this.hasActionCellInRows("start")&&this.footerRow.cells.push(this.createHeaderCell(null)),this.matrix.hasRowText&&this.footerRow.cells.push(this.createTextCell(this.matrix.getFooterText()));for(var e=this.matrix.visibleTotalRow.cells,t=0;t<e.length;t++){var n=e[t];if(n.column.hasVisibleCell)if(this.matrix.IsMultiplyColumn(n.column))this.createMutlipleColumnsFooter(this.footerRow,n);else{var r=this.createEditCell(n);n.column&&this.setHeaderCellWidth(n.column,r),this.footerRow.cells.push(r)}}this.hasActionCellInRows("end")&&this.footerRow.cells.push(this.createHeaderCell(null))}},t.prototype.buildRows=function(){var e=this.matrix.isColumnLayoutHorizontal?this.buildHorizontalRows():this.buildVerticalRows();this.rows=e},t.prototype.hasActionCellInRows=function(e){return void 0===this.hasActionCellInRowsValues[e]&&(this.hasActionCellInRowsValues[e]=this.hasActionsCellInLocaltion(e)),this.hasActionCellInRowsValues[e]},t.prototype.hasActionsCellInLocaltion=function(e){var t=this;return!("end"!=e||!this.hasRemoveRows)||this.matrix.visibleRows.some((function(n,r){return!t.isValueEmpty(t.getRowActions(r,e))}))},t.prototype.canRemoveRow=function(e){return this.matrix.canRemoveRow(e)},t.prototype.buildHorizontalRows=function(){for(var e=this.matrix.visibleRows,t=[],n=0;n<e.length;n++)this.addHorizontalRow(t,e[n],0==n&&!this.matrix.showHeader);return t},t.prototype.addHorizontalRow=function(e,t,n,r){void 0===r&&(r=-1);var o=this.createHorizontalRow(t,n),i=this.createErrorRow(o);if(o.row=t,r<0&&(r=e.length),this.matrix.isMobile){for(var s=[],a=0;a<o.cells.length;a++)this.showCellErrorsTop&&!i.cells[a].isEmpty&&s.push(i.cells[a]),s.push(o.cells[a]),this.showCellErrorsBottom&&!i.cells[a].isEmpty&&s.push(i.cells[a]);o.cells=s,e.splice(r,0,o)}else e.splice.apply(e,function(e,t){for(var n=0,r=t.length,o=e.length;n<r;n++,o++)e[o]=t[n];return e}([r,0],this.showCellErrorsTop?[i,o]:[o,i])),r++;t.isDetailPanelShowing&&e.splice(r+1,0,this.createDetailPanelRow(t,o))},t.prototype.getRowDragCell=function(e){var t=new f;return t.isDragHandlerCell=!0,t.className=this.getActionsCellClassName(),t.row=this.matrix.visibleRows[e],t},t.prototype.getActionsCellClassName=function(){return(new u.CssClassBuilder).append(this.cssClasses.actionsCell).append(this.cssClasses.verticalCell,!this.matrix.isColumnLayoutHorizontal).toString()},t.prototype.getRowActionsCell=function(e,t){var n=this.getRowActions(e,t);if(!this.isValueEmpty(n)){var r=new f,o=this.matrix.allowAdaptiveActions?new l.AdaptiveActionContainer:new c.ActionContainer;this.matrix.survey&&this.matrix.survey.getCss().actionBar&&(o.cssClasses=this.matrix.survey.getCss().actionBar),o.setItems(n);var i=new s.ItemValue(o);return r.item=i,r.isActionsCell=!0,r.className=this.getActionsCellClassName(),r.row=this.matrix.visibleRows[e],r}return null},t.prototype.getRowActions=function(e,t){var n=this.rowsActions[e];return Array.isArray(n)?n.filter((function(e){return e.location||(e.location="start"),e.location===t})):[]},t.prototype.buildRowActions=function(e){var t=[];return this.setDefaultRowActions(e,t),this.matrix.survey&&(t=this.matrix.survey.getUpdatedMatrixRowActions(this.matrix,e,t)),t},Object.defineProperty(t.prototype,"showRemoveButtonAsIcon",{get:function(){return p.settings.matrix.renderRemoveAsIcon&&this.matrix.survey&&"sd-root-modern"===this.matrix.survey.css.root},enumerable:!1,configurable:!0}),t.prototype.setDefaultRowActions=function(e,t){var n=this.matrix;this.hasRemoveRows&&this.canRemoveRow(e)&&(this.showRemoveButtonAsIcon?t.push(new a.Action({id:"remove-row",iconName:"icon-delete",component:"sv-action-bar-item",innerCss:(new u.CssClassBuilder).append(this.matrix.cssClasses.button).append(this.matrix.cssClasses.buttonRemove).toString(),location:"end",showTitle:!1,title:n.removeRowText,enabled:!n.isInputReadOnly,data:{row:e,question:n},action:function(){n.removeRowUI(e)}})):t.push(new a.Action({id:"remove-row",location:"end",enabled:!this.matrix.isInputReadOnly,component:"sv-matrix-remove-button",data:{row:e,question:this.matrix}}))),e.hasPanel&&t.push(new a.Action({id:"show-detail",title:this.matrix.getLocalizationString("editText"),showTitle:!1,location:"start",component:"sv-matrix-detail-button",data:{row:e,question:this.matrix}}))},t.prototype.createErrorRow=function(e){for(var t=this.createErrorRenderedRow(this.cssClasses),n=0;n<e.cells.length;n++){var r=e.cells[n];r.hasQuestion?this.matrix.IsMultiplyColumn(r.cell.column)?r.isFirstChoice?t.cells.push(this.createErrorCell(r.cell)):t.cells.push(this.createEmptyCell()):t.cells.push(this.createErrorCell(r.cell)):t.cells.push(this.createEmptyCell())}return t.onAfterCreated(),t},t.prototype.createHorizontalRow=function(e,t){var n=this.createRenderedRow(this.cssClasses);if(this.allowRowsDragAndDrop){var r=this.matrix.visibleRows.indexOf(e);n.cells.push(this.getRowDragCell(r))}this.addRowActionsCell(e,n,"start"),this.matrix.hasRowText&&((s=this.createTextCell(e.locText)).row=e,n.cells.push(s),t&&this.setHeaderCellWidth(null,s),s.className=(new u.CssClassBuilder).append(s.className).append(this.cssClasses.rowTextCell).append(this.cssClasses.detailRowText,e.hasPanel).toString());for(var o=0;o<e.cells.length;o++){var i=e.cells[o];if(i.column.hasVisibleCell)if(this.matrix.IsMultiplyColumn(i.column))this.createMutlipleEditCells(n,i);else{i.column.isShowInMultipleColumns&&i.question.visibleChoices.map((function(e){return e.hideCaption=!1}));var s=this.createEditCell(i);n.cells.push(s),t&&this.setHeaderCellWidth(i.column,s)}}return this.addRowActionsCell(e,n,"end"),n},t.prototype.addRowActionsCell=function(e,t,n){var r=this.matrix.visibleRows.indexOf(e);if(this.hasActionCellInRows(n)){var o=this.getRowActionsCell(r,n);if(o)t.cells.push(o);else{var i=new f;i.isEmpty=!0,t.cells.push(i)}}},t.prototype.createDetailPanelRow=function(e,t){var n=this.matrix.isDesignMode,r=this.createRenderedRow(this.cssClasses,!0);r.row=e;var o=new f;this.matrix.hasRowText&&(o.colSpans=2),o.isEmpty=!0,n||r.cells.push(o);var i=null;this.hasActionCellInRows("end")&&((i=new f).isEmpty=!0);var s=new f;return s.panel=e.detailPanel,s.colSpans=t.cells.length-(n?0:o.colSpans)-(i?i.colSpans:0),s.className=this.cssClasses.detailPanelCell,r.cells.push(s),i&&r.cells.push(i),"function"==typeof this.matrix.onCreateDetailPanelRenderedRowCallback&&this.matrix.onCreateDetailPanelRenderedRowCallback(r),r},t.prototype.buildVerticalRows=function(){for(var e=this.matrix.columns,t=[],n=0;n<e.length;n++){var r=e[n];if(r.isVisible&&r.hasVisibleCell)if(this.matrix.IsMultiplyColumn(r))this.createMutlipleVerticalRows(t,r,n);else{var o=this.createVerticalRow(r,n),i=this.createErrorRow(o);this.showCellErrorsTop?(t.push(i),t.push(o)):(t.push(o),t.push(i))}}return this.hasActionCellInRows("end")&&t.push(this.createEndVerticalActionRow()),t},t.prototype.createMutlipleVerticalRows=function(e,t,n){var r=this.getMultipleColumnChoices(t);if(r)for(var o=0;o<r.length;o++){var i=this.createVerticalRow(t,n,r[o],o),s=this.createErrorRow(i);this.showCellErrorsTop?(e.push(s),e.push(i)):(e.push(i),e.push(s))}},t.prototype.createVerticalRow=function(e,t,n,r){void 0===n&&(n=null),void 0===r&&(r=-1);var o=this.createRenderedRow(this.cssClasses);if(this.matrix.showHeader){var i=n?n.locText:e.locTitle,s=this.createTextCell(i);s.column=e,s.className=(new u.CssClassBuilder).append(s.className).append(this.cssClasses.rowTextCell).toString(),n||this.setRequriedToHeaderCell(e,s),o.cells.push(s)}for(var a=this.matrix.visibleRows,l=0;l<a.length;l++){var c=n,p=r>=0?r:l,d=a[l].cells[t],h=n?d.question.visibleChoices:void 0;h&&p<h.length&&(c=h[p]);var f=this.createEditCell(d,c);f.item=c,f.choiceIndex=p,o.cells.push(f)}return this.matrix.hasTotal&&o.cells.push(this.createEditCell(this.matrix.visibleTotalRow.cells[t])),o},t.prototype.createEndVerticalActionRow=function(){var e=this.createRenderedRow(this.cssClasses);this.matrix.showHeader&&e.cells.push(this.createEmptyCell());for(var t=this.matrix.visibleRows,n=0;n<t.length;n++)e.cells.push(this.getRowActionsCell(n,"end"));return this.matrix.hasTotal&&e.cells.push(this.createEmptyCell()),e},t.prototype.createMutlipleEditCells=function(e,t,n){void 0===n&&(n=!1);var r=n?this.getMultipleColumnChoices(t.column):t.question.visibleChoices;if(r)for(var o=0;o<r.length;o++){var i=this.createEditCell(t,n?void 0:r[o]);n||(this.setItemCellCssClasses(i),i.choiceIndex=o),e.cells.push(i)}},t.prototype.setItemCellCssClasses=function(e){e.className=(new u.CssClassBuilder).append(this.cssClasses.itemCell).append(this.cssClasses.radioCell,e.isRadio).append(this.cssClasses.checkboxCell,e.isCheckbox).toString()},t.prototype.createEditCell=function(e,t){void 0===t&&(t=void 0);var n=new f;return n.cell=e,n.row=e.row,n.question=e.question,n.matrix=this.matrix,n.item=t,n.isOtherChoice=!!t&&!!e.question&&e.question.otherItem===t,n.className=n.calculateFinalClassName(this.cssClasses),n},t.prototype.createErrorCell=function(e,t){void 0===t&&(t=void 0);var n=new f;return n.question=e.question,n.row=e.row,n.matrix=this.matrix,n.isErrorsCell=!0,n.className=(new u.CssClassBuilder).append(this.cssClasses.cell).append(this.cssClasses.errorsCell).append(this.cssClasses.errorsCellTop,this.showCellErrorsTop).append(this.cssClasses.errorsCellBottom,this.showCellErrorsBottom).toString(),n},t.prototype.createMutlipleColumnsFooter=function(e,t){this.createMutlipleEditCells(e,t,!0)},t.prototype.createMutlipleColumnsHeader=function(e){var t=this.getMultipleColumnChoices(e);if(t)for(var n=0;n<t.length;n++){var r=this.createTextCell(t[n].locText);this.setHeaderCell(e,r),this.setHeaderCellCssClasses(r),this.headerRow.cells.push(r)}},t.prototype.getMultipleColumnChoices=function(e){var t=e.templateQuestion.choices;return t&&Array.isArray(t)&&0==t.length?this.matrix.choices:(t=e.templateQuestion.visibleChoices)&&Array.isArray(t)?t:null},t.prototype.setHeaderCellCssClasses=function(e,t){e.className=(new u.CssClassBuilder).append(this.cssClasses.headerCell).append(this.cssClasses.emptyCell,!!e.isEmpty).append(this.cssClasses.cell+"--"+t,!!t).toString()},t.prototype.createHeaderCell=function(e){var t=e?this.createTextCell(e.locTitle):this.createEmptyCell();t.column=e,this.setHeaderCell(e,t);var n=e&&"default"!==e.cellType?e.cellType:this.matrix.cellType;return this.setHeaderCellCssClasses(t,n),t},t.prototype.setHeaderCell=function(e,t){this.setHeaderCellWidth(e,t),this.setRequriedToHeaderCell(e,t)},t.prototype.setHeaderCellWidth=function(e,t){t.minWidth=null!=e?this.matrix.getColumnWidth(e):this.matrix.getRowTitleWidth(),t.width=null!=e?e.width:this.matrix.getRowTitleWidth()},t.prototype.setRequriedToHeaderCell=function(e,t){e&&e.isRequired&&this.matrix.survey&&(t.requiredText=this.matrix.survey.requiredText)},t.prototype.createRemoveRowCell=function(e){var t=new f;return t.row=e,t.isRemoveRow=this.canRemoveRow(e),this.cssClasses.cell&&(t.className=this.cssClasses.cell),t},t.prototype.createTextCell=function(e){var t=new f;return t.locTitle=e,e&&e.strChanged(),this.cssClasses.cell&&(t.className=this.cssClasses.cell),t},t.prototype.createEmptyCell=function(){var e=this.createTextCell(null);return e.isEmpty=!0,e},h([Object(o.propertyArray)({onPush:function(e,t,n){n.renderedRowsChangedCallback()}})],t.prototype,"rows",void 0),t}(i.Base)},"./src/question_matrixdynamic.ts":function(e,t,n){"use strict";n.r(t),n.d(t,"MatrixDynamicRowModel",(function(){return g})),n.d(t,"QuestionMatrixDynamicModel",(function(){return m}));var r,o=n("./src/jsonobject.ts"),i=n("./src/questionfactory.ts"),s=n("./src/question_matrixdropdownbase.ts"),a=n("./src/error.ts"),l=n("./src/settings.ts"),u=n("./src/utils/utils.ts"),c=n("./src/dragdrop/matrix-rows.ts"),p=n("./src/utils/cssClassBuilder.ts"),d=n("./src/question_matrixdropdownrendered.ts"),h=n("./src/utils/dragOrClickHelper.ts"),f=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),g=function(e){function t(t,n,r){var o=e.call(this,n,r)||this;return o.index=t,o.buildCells(r),o}return f(t,e),Object.defineProperty(t.prototype,"rowName",{get:function(){return this.id},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"shortcutText",{get:function(){var e=this.data.visibleRows.indexOf(this)+1,t=this.cells.length>1?this.cells[1].questionValue:void 0,n=this.cells.length>0?this.cells[0].questionValue:void 0;return t&&t.value||n&&n.value||""+e},enumerable:!1,configurable:!0}),t}(s.MatrixDropdownRowModelBase),m=function(e){function t(t){var n=e.call(this,t)||this;return n.rowCounter=0,n.initialRowCount=2,n.setRowCountValueFromData=!1,n.startDragMatrixRow=function(e,t){n.dragDropMatrixRows.startDrag(e,n.draggedRow,n,e.target)},n.createLocalizableString("confirmDeleteText",n,!1,"confirmDelete"),n.createLocalizableString("addRowText",n).onGetTextCallback=function(e){return e||n.defaultAddRowText},n.createLocalizableString("removeRowText",n,!1,"removeRow"),n.createLocalizableString("emptyRowsText",n,!1,!0),n.registerPropertyChangedHandlers(["hideColumnsIfEmpty","allowAddRows"],(function(){n.updateShowTableAndAddRow()})),n.registerPropertyChangedHandlers(["allowRowsDragAndDrop"],(function(){n.clearRowsAndResetRenderedTable()})),n.dragOrClickHelper=new h.DragOrClickHelper(n.startDragMatrixRow),n}return f(t,e),t.prototype.setSurveyImpl=function(t,n){e.prototype.setSurveyImpl.call(this,t,n),this.dragDropMatrixRows=new c.DragDropMatrixRows(this.survey,null,!0)},t.prototype.isBanStartDrag=function(e){var t=e.target;return"true"===t.getAttribute("contenteditable")||"INPUT"===t.nodeName||!this.isDragHandleAreaValid(t)},t.prototype.isDragHandleAreaValid=function(e){return"icon"!==this.survey.matrixDragHandleArea||e.classList.contains(this.cssClasses.dragElementDecorator)},t.prototype.onPointerDown=function(e,t){t&&this.allowRowsDragAndDrop&&(this.isBanStartDrag(e)||t.isDetailPanelShowing||(this.draggedRow=t,this.dragOrClickHelper.onPointerDown(e)))},t.prototype.getType=function(){return"matrixdynamic"},Object.defineProperty(t.prototype,"isRowsDynamic",{get:function(){return!0},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"confirmDelete",{get:function(){return this.getPropertyValue("confirmDelete")},set:function(e){this.setPropertyValue("confirmDelete",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isValueArray",{get:function(){return!0},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"keyName",{get:function(){return this.getPropertyValue("keyName","")},set:function(e){this.setPropertyValue("keyName",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"defaultRowValue",{get:function(){return this.getPropertyValue("defaultRowValue")},set:function(e){this.setPropertyValue("defaultRowValue",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"defaultValueFromLastRow",{get:function(){return this.getPropertyValue("defaultValueFromLastRow")},set:function(e){this.setPropertyValue("defaultValueFromLastRow",e)},enumerable:!1,configurable:!0}),t.prototype.isDefaultValueEmpty=function(){return e.prototype.isDefaultValueEmpty.call(this)&&this.isValueEmpty(this.defaultRowValue)},t.prototype.valueFromData=function(t){if(this.minRowCount<1)return e.prototype.valueFromData.call(this,t);Array.isArray(t)||(t=[]);for(var n=t.length;n<this.minRowCount;n++)t.push({});return t},t.prototype.isNewValueCorrect=function(e){return Array.isArray(e)},t.prototype.setDefaultValue=function(){if(!this.isValueEmpty(this.defaultRowValue)&&this.isValueEmpty(this.defaultValue)){if(this.isEmpty()&&0!=this.rowCount){for(var t=[],n=0;n<this.rowCount;n++)t.push(this.defaultRowValue);this.value=t}}else e.prototype.setDefaultValue.call(this)},t.prototype.moveRowByIndex=function(e,t){var n=this.createNewValue();if(Array.isArray(n)||!(Math.max(e,t)>=n.length)){var r=n[e];n.splice(e,1),n.splice(t,0,r),this.value=n}},t.prototype.clearOnDrop=function(){this.isEditingSurveyElement||this.resetRenderedTable()},t.prototype.initDataUI=function(){this.generatedVisibleRows||this.visibleRows},Object.defineProperty(t.prototype,"rowCount",{get:function(){return this.rowCountValue},set:function(e){if(!(e<0||e>l.settings.matrix.maxRowCount)){this.setRowCountValueFromData=!1;var t=this.rowCountValue;if(this.rowCountValue=e,this.value&&this.value.length>e){var n=this.value;n.splice(e),this.value=n}if(this.isUpdateLocked)this.initialRowCount=e;else{if(this.generatedVisibleRows||0==t){this.generatedVisibleRows||(this.generatedVisibleRows=[]),this.generatedVisibleRows.splice(e);for(var r=t;r<e;r++){var o=this.createMatrixRow(this.getValueForNewRow());this.generatedVisibleRows.push(o),this.onMatrixRowCreated(o)}this.runCondition(this.getDataFilteredValues(),this.getDataFilteredProperties())}this.onRowsChanged()}}},enumerable:!1,configurable:!0}),t.prototype.updateProgressInfoByValues=function(e){var t=this.value;Array.isArray(t)||(t=[]);for(var n=0;n<this.rowCount;n++){var r=n<t.length?t[n]:{};this.updateProgressInfoByRow(e,r)}},t.prototype.getValueForNewRow=function(){var e=null;return this.onGetValueForNewRowCallBack&&(e=this.onGetValueForNewRowCallBack(this)),e},Object.defineProperty(t.prototype,"allowRowsDragAndDrop",{get:function(){return!this.readOnly&&this.getPropertyValue("allowRowsDragAndDrop")},set:function(e){this.setPropertyValue("allowRowsDragAndDrop",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"iconDragElement",{get:function(){return this.cssClasses.iconDragElement},enumerable:!1,configurable:!0}),t.prototype.createRenderedTable=function(){return new y(this)},Object.defineProperty(t.prototype,"rowCountValue",{get:function(){return this.getPropertyValue("rowCount")},set:function(e){this.setPropertyValue("rowCount",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"minRowCount",{get:function(){return this.getPropertyValue("minRowCount")},set:function(e){e<0&&(e=0),this.setPropertyValue("minRowCount",e),e>this.maxRowCount&&(this.maxRowCount=e),this.rowCount<e&&(this.rowCount=e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"maxRowCount",{get:function(){return this.getPropertyValue("maxRowCount")},set:function(e){e<=0||(e>l.settings.matrix.maxRowCount&&(e=l.settings.matrix.maxRowCount),e!=this.maxRowCount&&(this.setPropertyValue("maxRowCount",e),e<this.minRowCount&&(this.minRowCount=e),this.rowCount>e&&(this.rowCount=e)))},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"allowAddRows",{get:function(){return this.getPropertyValue("allowAddRows")},set:function(e){this.setPropertyValue("allowAddRows",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"allowRemoveRows",{get:function(){return this.getPropertyValue("allowRemoveRows")},set:function(e){this.setPropertyValue("allowRemoveRows",e),this.isUpdateLocked||this.resetRenderedTable()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"canAddRow",{get:function(){return this.allowAddRows&&!this.isReadOnly&&this.rowCount<this.maxRowCount},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"canRemoveRows",{get:function(){var e=this.allowRemoveRows&&!this.isReadOnly&&this.rowCount>this.minRowCount;return this.canRemoveRowsCallback?this.canRemoveRowsCallback(e):e},enumerable:!1,configurable:!0}),t.prototype.canRemoveRow=function(e){return!this.survey||this.survey.matrixAllowRemoveRow(this,e.index,e)},t.prototype.addRowUI=function(){this.addRow(!0)},t.prototype.getQuestionToFocusOnAddingRow=function(){for(var e=this.visibleRows[this.visibleRows.length-1],t=0;t<e.cells.length;t++){var n=e.cells[t].question;if(n&&n.isVisible&&!n.isReadOnly)return n}return null},t.prototype.addRow=function(e){var t=this.rowCount,n=this.canAddRow,r={question:this,canAddRow:n,allow:n};if(this.survey&&this.survey.matrixBeforeRowAdded(r),(n!==r.allow?r.allow:n!==r.canAddRow?r.canAddRow:n)&&(this.onStartRowAddingRemoving(),this.addRowCore(),this.onEndRowAdding(),this.detailPanelShowOnAdding&&this.visibleRows.length>0&&this.visibleRows[this.visibleRows.length-1].showDetailPanel(),e&&t!==this.rowCount)){var o=this.getQuestionToFocusOnAddingRow();o&&o.focus()}},Object.defineProperty(t.prototype,"detailPanelShowOnAdding",{get:function(){return this.getPropertyValue("detailPanelShowOnAdding")},set:function(e){this.setPropertyValue("detailPanelShowOnAdding",e)},enumerable:!1,configurable:!0}),t.prototype.hasRowsAsItems=function(){return!1},t.prototype.unbindValue=function(){this.clearGeneratedRows(),this.clearPropertyValue("value"),this.rowCountValue=0,e.prototype.unbindValue.call(this)},t.prototype.isValueSurveyElement=function(t){return this.isEditingSurveyElement||e.prototype.isValueSurveyElement.call(this,t)},t.prototype.addRowCore=function(){var e=this.rowCount;this.rowCount=this.rowCount+1;var t=this.getDefaultRowValue(!0),n=null;if(this.isValueEmpty(t)||(n=this.createNewValue()).length==this.rowCount&&(n[n.length-1]=t,this.value=n),this.data&&(this.runCellsCondition(this.getDataFilteredValues(),this.getDataFilteredProperties()),this.isValueEmpty(t))){var r=this.visibleRows[this.rowCount-1];this.isValueEmpty(r.value)||(n||(n=this.createNewValue()),this.isValueSurveyElement(n)||this.isTwoValueEquals(n[n.length-1],r.value)||(n[n.length-1]=r.value,this.value=n))}this.survey&&e+1==this.rowCount&&(this.survey.matrixRowAdded(this,this.visibleRows[this.visibleRows.length-1]),this.onRowsChanged())},t.prototype.getDefaultRowValue=function(e){for(var t=null,n=0;n<this.columns.length;n++){var r=this.columns[n].templateQuestion;r&&!this.isValueEmpty(r.getDefaultValue())&&((t=t||{})[this.columns[n].name]=r.getDefaultValue())}if(!this.isValueEmpty(this.defaultRowValue))for(var o in this.defaultRowValue)(t=t||{})[o]=this.defaultRowValue[o];if(e&&this.defaultValueFromLastRow){var i=this.value;if(i&&Array.isArray(i)&&i.length>=this.rowCount-1){var s=i[this.rowCount-2];for(var o in s)(t=t||{})[o]=s[o]}}return t},t.prototype.removeRowUI=function(e){if(e&&e.rowName){var t=this.visibleRows.indexOf(e);if(t<0)return;e=t}this.removeRow(e)},t.prototype.isRequireConfirmOnRowDelete=function(e){if(!this.confirmDelete)return!1;if(e<0||e>=this.rowCount)return!1;var t=this.createNewValue();return!(this.isValueEmpty(t)||!Array.isArray(t)||e>=t.length||this.isValueEmpty(t[e]))},t.prototype.removeRow=function(e,t){if(this.canRemoveRows&&!(e<0||e>=this.rowCount)){var n=this.visibleRows&&e<this.visibleRows.length?this.visibleRows[e]:null;void 0===t&&(t=this.isRequireConfirmOnRowDelete(e)),t&&!Object(u.confirmAction)(this.confirmDeleteText)||n&&this.survey&&!this.survey.matrixRowRemoving(this,e,n)||(this.onStartRowAddingRemoving(),this.removeRowCore(e),this.onEndRowRemoving(n))}},t.prototype.removeRowCore=function(e){var t=this.generatedVisibleRows?this.generatedVisibleRows[e]:null;if(this.generatedVisibleRows&&e<this.generatedVisibleRows.length&&this.generatedVisibleRows.splice(e,1),this.rowCountValue--,this.value){var n=[];(n=Array.isArray(this.value)&&e<this.value.length?this.createValueCopy():this.createNewValue()).splice(e,1),n=this.deleteRowValue(n,null),this.isRowChanging=!0,this.value=n,this.isRowChanging=!1}this.onRowsChanged(),this.survey&&this.survey.matrixRowRemoved(this,e,t)},Object.defineProperty(t.prototype,"confirmDeleteText",{get:function(){return this.getLocalizableStringText("confirmDeleteText")},set:function(e){this.setLocalizableStringText("confirmDeleteText",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locConfirmDeleteText",{get:function(){return this.getLocalizableString("confirmDeleteText")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"addRowText",{get:function(){return this.getLocalizableStringText("addRowText",this.defaultAddRowText)},set:function(e){this.setLocalizableStringText("addRowText",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locAddRowText",{get:function(){return this.getLocalizableString("addRowText")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"defaultAddRowText",{get:function(){return this.getLocalizationString(this.isColumnLayoutHorizontal?"addRow":"addColumn")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"addRowLocation",{get:function(){return this.getPropertyValue("addRowLocation")},set:function(e){this.setPropertyValue("addRowLocation",e)},enumerable:!1,configurable:!0}),t.prototype.getAddRowLocation=function(){return this.addRowLocation},Object.defineProperty(t.prototype,"hideColumnsIfEmpty",{get:function(){return this.getPropertyValue("hideColumnsIfEmpty")},set:function(e){this.setPropertyValue("hideColumnsIfEmpty",e)},enumerable:!1,configurable:!0}),t.prototype.getShowColumnsIfEmpty=function(){return this.hideColumnsIfEmpty},Object.defineProperty(t.prototype,"removeRowText",{get:function(){return this.getLocalizableStringText("removeRowText")},set:function(e){this.setLocalizableStringText("removeRowText",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locRemoveRowText",{get:function(){return this.getLocalizableString("removeRowText")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"emptyRowsText",{get:function(){return this.getLocalizableStringText("emptyRowsText")},set:function(e){this.setLocalizableStringText("emptyRowsText",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locEmptyRowsText",{get:function(){return this.getLocalizableString("emptyRowsText")},enumerable:!1,configurable:!0}),t.prototype.getDisplayValueCore=function(e,t){if(!t||!Array.isArray(t))return t;for(var n=this.getUnbindValue(t),r=this.visibleRows,o=0;o<r.length&&o<n.length;o++){var i=n[o];i&&(n[o]=this.getRowDisplayValue(e,r[o],i))}return n},t.prototype.getConditionObjectRowName=function(e){return"["+e.toString()+"]"},t.prototype.getConditionObjectsRowIndeces=function(){for(var e=[],t=Math.max(this.rowCount,1),n=0;n<Math.min(l.settings.matrix.maxRowCountInCondition,t);n++)e.push(n);return e},t.prototype.supportGoNextPageAutomatic=function(){return!1},Object.defineProperty(t.prototype,"hasRowText",{get:function(){return!1},enumerable:!1,configurable:!0}),t.prototype.onCheckForErrors=function(t,n){e.prototype.onCheckForErrors.call(this,t,n),!n&&this.hasErrorInMinRows()&&t.push(new a.MinRowCountError(this.minRowCount,this))},t.prototype.hasErrorInMinRows=function(){if(this.minRowCount<=0||!this.isRequired||!this.generatedVisibleRows)return!1;for(var e=0,t=0;t<this.generatedVisibleRows.length;t++)this.generatedVisibleRows[t].isEmpty||e++;return e<this.minRowCount},t.prototype.getUniqueColumns=function(){var t=e.prototype.getUniqueColumns.call(this);if(this.keyName){var n=this.getColumnByName(this.keyName);n&&t.indexOf(n)<0&&t.push(n)}return t},t.prototype.generateRows=function(){var e=new Array;if(0===this.rowCount)return e;for(var t=this.createNewValue(),n=0;n<this.rowCount;n++)e.push(this.createMatrixRow(this.getRowValueByIndex(t,n)));return this.isValueEmpty(this.getDefaultRowValue(!1))||(this.value=t),e},t.prototype.createMatrixRow=function(e){return new g(this.rowCounter++,this,e)},t.prototype.getInsertedDeletedIndex=function(e,t){for(var n=Math.min(e.length,t.length),r=0;r<n;r++)if(t[r]!==e[r].editingObj)return r;return n},t.prototype.isEditingObjectValueChanged=function(){var e=this.value;if(!this.generatedVisibleRows||!this.isValueSurveyElement(e))return!1;var t=this.lastDeletedRow;this.lastDeletedRow=void 0;var n=this.generatedVisibleRows;if(!Array.isArray(e)||Math.abs(n.length-e.length)>1)return!1;var r=this.getInsertedDeletedIndex(n,e);if(n.length>e.length){this.lastDeletedRow=n[r];var o=n[r];n.splice(r,1),this.isRendredTableCreated&&this.renderedTable.onRemovedRow(o)}else{var i;i=t&&t.editingObj===e[r]?t:this.createMatrixRow(e[r]),n.splice(r,0,i),t||this.onMatrixRowCreated(i),this.isRendredTableCreated&&this.renderedTable.onAddedRow(i,r)}return this.setPropertyValueDirectly("rowCount",e.length),!0},t.prototype.onBeforeValueChanged=function(e){if(e&&Array.isArray(e)){var t=e.length;if(t!=this.rowCount&&(this.setRowCountValueFromData||!(t<this.initialRowCount))&&!this.isEditingObjectValueChanged()&&(this.setRowCountValueFromData=!0,this.rowCountValue=t,this.generatedVisibleRows)){if(t==this.generatedVisibleRows.length+1){this.onStartRowAddingRemoving();var n=this.getRowValueByIndex(e,t-1),r=this.createMatrixRow(n);this.generatedVisibleRows.push(r),this.onMatrixRowCreated(r),this.onEndRowAdding()}else this.clearGeneratedRows(),this.generatedVisibleRows=this.visibleRows,this.onRowsChanged();this.setRowCountValueFromData=!1}}},t.prototype.createNewValue=function(){var e=this.createValueCopy();e&&Array.isArray(e)||(e=[]),e.length>this.rowCount&&e.splice(this.rowCount);var t=this.getDefaultRowValue(!1);t=t||{};for(var n=e.length;n<this.rowCount;n++)e.push(this.getUnbindValue(t));return e},t.prototype.deleteRowValue=function(e,t){for(var n=!0,r=0;r<e.length;r++)if(this.isObject(e[r])&&Object.keys(e[r]).length>0){n=!1;break}return n?null:e},t.prototype.getRowValueByIndex=function(e,t){return Array.isArray(e)&&t>=0&&t<e.length?e[t]:null},t.prototype.getRowValueCore=function(e,t,n){if(void 0===n&&(n=!1),!this.generatedVisibleRows)return{};var r=this.getRowValueByIndex(t,this.generatedVisibleRows.indexOf(e));return!r&&n&&(r={}),r},t.prototype.getAddRowButtonCss=function(e){return void 0===e&&(e=!1),(new p.CssClassBuilder).append(this.cssClasses.button).append(this.cssClasses.buttonAdd).append(this.cssClasses.emptyRowsButton,e).toString()},t.prototype.getRemoveRowButtonCss=function(){return(new p.CssClassBuilder).append(this.cssClasses.button).append(this.cssClasses.buttonRemove).toString()},t.prototype.getRootCss=function(){var t;return(new p.CssClassBuilder).append(e.prototype.getRootCss.call(this)).append(this.cssClasses.empty,!(null===(t=this.renderedTable)||void 0===t?void 0:t.showTable)).toString()},t}(s.QuestionMatrixDropdownModelBase),y=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return f(t,e),t.prototype.setDefaultRowActions=function(t,n){e.prototype.setDefaultRowActions.call(this,t,n)},t}(d.QuestionMatrixDropdownRenderedTable);o.Serializer.addClass("matrixdynamic",[{name:"rowsVisibleIf:condition",visible:!1},{name:"allowAddRows:boolean",default:!0},{name:"allowRemoveRows:boolean",default:!0},{name:"rowCount:number",default:2,minValue:0,isBindable:!0},{name:"minRowCount:number",default:0,minValue:0},{name:"maxRowCount:number",default:l.settings.matrix.maxRowCount},{name:"keyName"},"defaultRowValue:rowvalue","defaultValueFromLastRow:boolean",{name:"confirmDelete:boolean"},{name:"confirmDeleteText",dependsOn:"confirmDelete",visibleIf:function(e){return!e||e.confirmDelete},serializationProperty:"locConfirmDeleteText"},{name:"addRowLocation",default:"default",choices:["default","top","bottom","topBottom"]},{name:"addRowText",serializationProperty:"locAddRowText"},{name:"removeRowText",serializationProperty:"locRemoveRowText"},"hideColumnsIfEmpty:boolean",{name:"emptyRowsText:text",serializationProperty:"locEmptyRowsText",dependsOn:"hideColumnsIfEmpty",visibleIf:function(e){return!e||e.hideColumnsIfEmpty}},{name:"detailPanelShowOnAdding:boolean",dependsOn:"detailPanelMode",visibleIf:function(e){return"none"!==e.detailPanelMode}},"allowRowsDragAndDrop:switch"],(function(){return new m("")}),"matrixdropdownbase"),i.QuestionFactory.Instance.registerQuestion("matrixdynamic",(function(e){var t=new m(e);return t.choices=[1,2,3,4,5],s.QuestionMatrixDropdownModelBase.addDefaultColumns(t),t}))},"./src/question_multipletext.ts":function(e,t,n){"use strict";n.r(t),n.d(t,"MultipleTextEditorModel",(function(){return f})),n.d(t,"MultipleTextItemModel",(function(){return g})),n.d(t,"QuestionMultipleTextModel",(function(){return m}));var r,o=n("./src/base.ts"),i=n("./src/survey-element.ts"),s=n("./src/question.ts"),a=n("./src/question_text.ts"),l=n("./src/jsonobject.ts"),u=n("./src/questionfactory.ts"),c=n("./src/helpers.ts"),p=n("./src/utils/cssClassBuilder.ts"),d=n("./src/settings.ts"),h=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),f=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return h(t,e),Object.defineProperty(t.prototype,"a11y_input_ariaLabel",{get:function(){return this.locTitle.renderedHtml},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"a11y_input_ariaLabelledBy",{get:function(){return null},enumerable:!1,configurable:!0}),t}(a.QuestionTextModel),g=function(e){function t(t,n){void 0===t&&(t=null),void 0===n&&(n=null);var r=e.call(this)||this;return r.editorValue=r.createEditor(t),r.editor.questionTitleTemplateCallback=function(){return""},r.editor.titleLocation="left",n&&(r.title=n),r}return h(t,e),t.prototype.getType=function(){return"multipletextitem"},Object.defineProperty(t.prototype,"id",{get:function(){return this.editor.id},enumerable:!1,configurable:!0}),t.prototype.getOriginalObj=function(){return this.editor},Object.defineProperty(t.prototype,"name",{get:function(){return this.editor.name},set:function(e){this.editor.name=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"question",{get:function(){return this.data},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"editor",{get:function(){return this.editorValue},enumerable:!1,configurable:!0}),t.prototype.createEditor=function(e){return new f(e)},t.prototype.addUsedLocales=function(t){e.prototype.addUsedLocales.call(this,t),this.editor.addUsedLocales(t)},t.prototype.localeChanged=function(){e.prototype.localeChanged.call(this),this.editor.localeChanged()},t.prototype.locStrsChanged=function(){e.prototype.locStrsChanged.call(this),this.editor.locStrsChanged()},t.prototype.setData=function(e){this.data=e,e&&(this.editor.defaultValue=e.getItemDefaultValue(this.name),this.editor.setSurveyImpl(this),this.editor.parent=e)},Object.defineProperty(t.prototype,"isRequired",{get:function(){return this.editor.isRequired},set:function(e){this.editor.isRequired=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"inputType",{get:function(){return this.editor.inputType},set:function(e){this.editor.inputType=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"title",{get:function(){return this.editor.title},set:function(e){this.editor.title=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locTitle",{get:function(){return this.editor.locTitle},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"fullTitle",{get:function(){return this.editor.fullTitle},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"maxLength",{get:function(){return this.editor.maxLength},set:function(e){this.editor.maxLength=e},enumerable:!1,configurable:!0}),t.prototype.getMaxLength=function(){var e=this.getSurvey();return c.Helpers.getMaxLength(this.maxLength,e?e.maxTextLength:-1)},Object.defineProperty(t.prototype,"placeholder",{get:function(){return this.editor.placeholder},set:function(e){this.editor.placeholder=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locPlaceholder",{get:function(){return this.editor.locPlaceholder},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"placeHolder",{get:function(){return this.placeholder},set:function(e){this.placeholder=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locPlaceHolder",{get:function(){return this.locPlaceholder},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"requiredErrorText",{get:function(){return this.editor.requiredErrorText},set:function(e){this.editor.requiredErrorText=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locRequiredErrorText",{get:function(){return this.editor.locRequiredErrorText},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"size",{get:function(){return this.editor.size},set:function(e){this.editor.size=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"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,"value",{get:function(){return this.data?this.data.getMultipleTextValue(this.name):null},set:function(e){null!=this.data&&this.data.setMultipleTextValue(this.name,e)},enumerable:!1,configurable:!0}),t.prototype.isEmpty=function(){return this.editor.isEmpty()},t.prototype.onValueChanged=function(e){this.valueChangedCallback&&this.valueChangedCallback(e)},t.prototype.getSurveyData=function(){return this},t.prototype.getSurvey=function(){return this.data?this.data.getSurvey():null},t.prototype.getTextProcessor=function(){return this.data?this.data.getTextProcessor():null},t.prototype.getValue=function(e){return this.data?this.data.getMultipleTextValue(e):null},t.prototype.setValue=function(e,t){this.data&&this.data.setMultipleTextValue(e,t)},t.prototype.getVariable=function(e){},t.prototype.setVariable=function(e,t){},t.prototype.getComment=function(e){return null},t.prototype.setComment=function(e,t){},t.prototype.getAllValues=function(){return this.data?this.data.getAllValues():this.value},t.prototype.getFilteredValues=function(){return this.getAllValues()},t.prototype.getFilteredProperties=function(){return{survey:this.getSurvey()}},t.prototype.findQuestionByName=function(e){var t=this.getSurvey();return t?t.getQuestionByName(e):null},t.prototype.getValidatorTitle=function(){return this.title},Object.defineProperty(t.prototype,"validatedValue",{get:function(){return this.value},set:function(e){this.value=e},enumerable:!1,configurable:!0}),t.prototype.getDataFilteredValues=function(){return this.getFilteredValues()},t.prototype.getDataFilteredProperties=function(){return this.getFilteredProperties()},t}(o.Base),m=function(e){function t(t){var n=e.call(this,t)||this;return n.isMultipleItemValueChanging=!1,n.createNewArray("items",(function(e){e.setData(n),n.survey&&n.survey.multipleTextItemAdded(n,e)})),n.registerPropertyChangedHandlers(["items","colCount"],(function(){n.fireCallback(n.colCountChangedCallback)})),n.registerPropertyChangedHandlers(["itemSize"],(function(){n.updateItemsSize()})),n}return h(t,e),t.addDefaultItems=function(e){for(var t=u.QuestionFactory.DefaultMutlipleTextItems,n=0;n<t.length;n++)e.addItem(t[n])},t.prototype.getType=function(){return"multipletext"},t.prototype.setSurveyImpl=function(t,n){e.prototype.setSurveyImpl.call(this,t,n);for(var r=0;r<this.items.length;r++)this.items[r].setData(this)},Object.defineProperty(t.prototype,"isAllowTitleLeft",{get:function(){return!1},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hasSingleInput",{get:function(){return!1},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"id",{get:function(){return this.getPropertyValue("id")},set:function(e){var t;null===(t=this.items)||void 0===t||t.map((function(t,n){return t.editor.id=e+"_"+n})),this.setPropertyValue("id",e)},enumerable:!1,configurable:!0}),t.prototype.onSurveyLoad=function(){this.editorsOnSurveyLoad(),e.prototype.onSurveyLoad.call(this),this.fireCallback(this.colCountChangedCallback)},t.prototype.setQuestionValue=function(t,n){void 0===n&&(n=!0),e.prototype.setQuestionValue.call(this,t,n),this.performForEveryEditor((function(e){e.editor.updateValueFromSurvey(e.value)})),this.updateIsAnswered()},t.prototype.onSurveyValueChanged=function(t){e.prototype.onSurveyValueChanged.call(this,t),this.performForEveryEditor((function(e){e.editor.onSurveyValueChanged(e.value)}))},t.prototype.updateItemsSize=function(){this.performForEveryEditor((function(e){e.editor.updateInputSize()}))},t.prototype.editorsOnSurveyLoad=function(){this.performForEveryEditor((function(e){e.editor.onSurveyLoad()}))},t.prototype.performForEveryEditor=function(e){for(var t=0;t<this.items.length;t++){var n=this.items[t];n.editor&&e(n)}},Object.defineProperty(t.prototype,"items",{get:function(){return this.getPropertyValue("items")},set:function(e){this.setPropertyValue("items",e)},enumerable:!1,configurable:!0}),t.prototype.addItem=function(e,t){void 0===t&&(t=null);var n=this.createTextItem(e,t);return this.items.push(n),n},t.prototype.getItemByName=function(e){for(var t=0;t<this.items.length;t++)if(this.items[t].name==e)return this.items[t];return null},t.prototype.addConditionObjectsByContext=function(e,t){for(var n=0;n<this.items.length;n++){var r=this.items[n];e.push({name:this.getValueName()+"."+r.name,text:this.processedTitle+"."+r.fullTitle,question:this})}},t.prototype.collectNestedQuestionsCore=function(e,t){this.items.forEach((function(n){return n.editor.collectNestedQuestions(e,t)}))},t.prototype.getConditionJson=function(t,n){if(void 0===t&&(t=null),void 0===n&&(n=null),!n)return e.prototype.getConditionJson.call(this);var r=this.getItemByName(n);if(!r)return null;var o=(new l.JsonObject).toJsonObject(r);return o.type="text",o},t.prototype.locStrsChanged=function(){e.prototype.locStrsChanged.call(this);for(var t=0;t<this.items.length;t++)this.items[t].locStrsChanged()},t.prototype.localeChanged=function(){e.prototype.localeChanged.call(this);for(var t=0;t<this.items.length;t++)this.items[t].localeChanged()},t.prototype.isNewValueCorrect=function(e){return c.Helpers.isValueObject(e)},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}),t.prototype.getRows=function(){for(var e=this.colCount,t=this.items,n=[],r=0,o=0;o<t.length;o++)0==r&&n.push([]),n[n.length-1].push(t[o]),++r>=e&&(r=0);return n},t.prototype.onValueChanged=function(){e.prototype.onValueChanged.call(this),this.onItemValueChanged()},t.prototype.createTextItem=function(e,t){return new g(e,t)},t.prototype.onItemValueChanged=function(){if(!this.isMultipleItemValueChanging)for(var e=0;e<this.items.length;e++){var t=null;this.value&&this.items[e].name in this.value&&(t=this.value[this.items[e].name]),this.items[e].onValueChanged(t)}},t.prototype.getIsRunningValidators=function(){if(e.prototype.getIsRunningValidators.call(this))return!0;for(var t=0;t<this.items.length;t++)if(this.items[t].editor.isRunningValidators)return!0;return!1},t.prototype.hasErrors=function(t,n){var r=this;void 0===t&&(t=!0),void 0===n&&(n=null);for(var o=!1,i=0;i<this.items.length;i++)this.items[i].editor.onCompletedAsyncValidators=function(e){r.raiseOnCompletedAsyncValidators()},n&&!0===n.isOnValueChanged&&this.items[i].editor.isEmpty()||(o=this.items[i].editor.hasErrors(t,n)||o);return e.prototype.hasErrors.call(this,t)||o},t.prototype.getAllErrors=function(){for(var t=e.prototype.getAllErrors.call(this),n=0;n<this.items.length;n++){var r=this.items[n].editor.getAllErrors();r&&r.length>0&&(t=t.concat(r))}return t},t.prototype.clearErrors=function(){e.prototype.clearErrors.call(this);for(var t=0;t<this.items.length;t++)this.items[t].editor.clearErrors()},t.prototype.getContainsErrors=function(){var t=e.prototype.getContainsErrors.call(this);if(t)return t;for(var n=this.items,r=0;r<n.length;r++)if(n[r].editor.containsErrors)return!0;return!1},t.prototype.getIsAnswered=function(){if(!e.prototype.getIsAnswered.call(this))return!1;for(var t=0;t<this.items.length;t++){var n=this.items[t].editor;if(n.isVisible&&!n.isAnswered)return!1}return!0},t.prototype.getProgressInfo=function(){for(var e=[],t=0;t<this.items.length;t++)e.push(this.items[t].editor);return i.SurveyElement.getProgressInfoByElements(e,this.isRequired)},t.prototype.getDisplayValueCore=function(e,t){if(!t)return t;for(var n={},r=0;r<this.items.length;r++){var o=this.items[r],i=t[o.name];if(!c.Helpers.isValueEmpty(i)){var s=o.name;e&&o.title&&(s=o.title),n[s]=o.editor.getDisplayValue(e,i)}}return n},t.prototype.getMultipleTextValue=function(e){return this.value?this.value[e]:null},t.prototype.setMultipleTextValue=function(e,t){this.isMultipleItemValueChanging=!0,this.isValueEmpty(t)&&(t=void 0);var n=this.value;n||(n={}),n[e]=t,this.setNewValue(n),this.isMultipleItemValueChanging=!1},t.prototype.getItemDefaultValue=function(e){return this.defaultValue?this.defaultValue[e]:null},t.prototype.getTextProcessor=function(){return this.textProcessor},t.prototype.getAllValues=function(){return this.data?this.data.getAllValues():null},t.prototype.getIsRequiredText=function(){return this.survey?this.survey.requiredText:""},t.prototype.addElement=function(e,t){},t.prototype.removeElement=function(e){return!1},t.prototype.getQuestionTitleLocation=function(){return"left"},t.prototype.getQuestionStartIndex=function(){return this.getStartIndex()},t.prototype.getChildrenLayoutType=function(){return"row"},t.prototype.elementWidthChanged=function(e){},Object.defineProperty(t.prototype,"elements",{get:function(){return[]},enumerable:!1,configurable:!0}),t.prototype.indexOf=function(e){return-1},t.prototype.ensureRowsVisibility=function(){},t.prototype.validateContainerOnly=function(){},t.prototype.getItemLabelCss=function(e){return(new p.CssClassBuilder).append(this.cssClasses.itemLabel).append(this.cssClasses.itemLabelOnError,e.editor.errors.length>0).toString()},t.prototype.getItemCss=function(){return(new p.CssClassBuilder).append(this.cssClasses.item).toString()},t.prototype.getItemTitleCss=function(){return(new p.CssClassBuilder).append(this.cssClasses.itemTitle).toString()},t.prototype.getIsTooltipErrorInsideSupported=function(){return!0},t}(s.Question);l.Serializer.addClass("multipletextitem",[{name:"!name",isUnique:!0},"isRequired:boolean",{name:"placeholder",alternativeName:"placeHolder",serializationProperty:"locPlaceholder"},{name:"inputType",default:"text",choices:d.settings.questions.inputTypes},{name:"title",serializationProperty:"locTitle"},{name:"maxLength:number",default:-1},{name:"size:number",minValue:0},{name:"requiredErrorText:text",serializationProperty:"locRequiredErrorText"},{name:"validators:validators",baseClassName:"surveyvalidator",classNamePart:"validator"}],(function(){return new g("")})),l.Serializer.addClass("multipletext",[{name:"!items:textitems",className:"multipletextitem"},{name:"itemSize:number",minValue:0},{name:"colCount:number",default:1,choices:[1,2,3,4,5]}],(function(){return new m("")}),"question"),u.QuestionFactory.Instance.registerQuestion("multipletext",(function(e){var t=new m(e);return m.addDefaultItems(t),t}))},"./src/question_paneldynamic.ts":function(e,t,n){"use strict";n.r(t),n.d(t,"QuestionPanelDynamicItem",(function(){return C})),n.d(t,"QuestionPanelDynamicTemplateSurveyImpl",(function(){return w})),n.d(t,"QuestionPanelDynamicModel",(function(){return x}));var r,o=n("./src/helpers.ts"),i=n("./src/survey-element.ts"),s=n("./src/localizablestring.ts"),a=n("./src/textPreProcessor.ts"),l=n("./src/question.ts"),u=n("./src/jsonobject.ts"),c=n("./src/questionfactory.ts"),p=n("./src/error.ts"),d=n("./src/settings.ts"),h=n("./src/utils/utils.ts"),f=n("./src/utils/cssClassBuilder.ts"),g=n("./src/actions/action.ts"),m=n("./src/base.ts"),y=n("./src/actions/adaptive-container.ts"),v=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),b=function(e){function t(t,n,r){var o=e.call(this,r)||this;return o.data=t,o.panelItem=n,o.variableName=r,o.sharedQuestions={},o}return v(t,e),Object.defineProperty(t.prototype,"survey",{get:function(){return this.panelItem.getSurvey()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"panel",{get:function(){return this.panelItem.panel},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"panelIndex",{get:function(){return this.data?this.data.getItemIndex(this.panelItem):-1},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"visiblePanelIndex",{get:function(){return this.data?this.data.getVisibleItemIndex(this.panelItem):-1},enumerable:!1,configurable:!0}),t.prototype.getValues=function(){return this.panelItem.getAllValues()},t.prototype.getQuestionByName=function(t){var n=e.prototype.getQuestionByName.call(this,t);if(n)return n;var r=this.panelIndex,o=(n=r>-1?this.data.getSharedQuestionFromArray(t,r):void 0)?n.name:t;return this.sharedQuestions[o]=t,n},t.prototype.getQuestionDisplayText=function(t){var n=this.sharedQuestions[t.name];if(!n)return e.prototype.getQuestionDisplayText.call(this,t);var r=this.panelItem.getValue(n);return t.getDisplayValue(!0,r)},t.prototype.onCustomProcessText=function(e){var n;if(e.name==C.IndexVariableName&&(n=this.panelIndex)>-1)return e.isExists=!0,e.value=n+1,!0;if(e.name==C.VisibleIndexVariableName&&(n=this.visiblePanelIndex)>-1)return e.isExists=!0,e.value=n+1,!0;if(0==e.name.toLowerCase().indexOf(C.ParentItemVariableName+".")){var r=this.data;if(r&&r.parentQuestion&&r.parent&&r.parent.data){var o=new t(r.parentQuestion,r.parent.data,C.ItemVariableName),i=C.ItemVariableName+e.name.substring(C.ParentItemVariableName.length),s=o.processValue(i,e.returnDisplayValue);e.isExists=s.isExists,e.value=s.value}return!0}return!1},t}(a.QuestionTextProcessor),C=function(){function e(t,n){this.data=t,this.panelValue=n,this.textPreProcessor=new b(t,this,e.ItemVariableName),this.setSurveyImpl()}return Object.defineProperty(e.prototype,"panel",{get:function(){return this.panelValue},enumerable:!1,configurable:!0}),e.prototype.setSurveyImpl=function(){this.panel.setSurveyImpl(this)},e.prototype.getValue=function(e){return this.getAllValues()[e]},e.prototype.setValue=function(e,t){var n=this.data.getPanelItemData(this),r=n?n[e]:void 0;if(!o.Helpers.isTwoValueEquals(t,r,!1,!0,!1)){this.data.setPanelItemData(this,e,o.Helpers.getUnbindValue(t));for(var i=this.panel.questions,s=0;s<i.length;s++)i[s].getValueName()!==e&&i[s].checkBindings(e,t)}},e.prototype.getVariable=function(e){},e.prototype.setVariable=function(e,t){},e.prototype.getComment=function(e){return this.getValue(e+d.settings.commentSuffix)||""},e.prototype.setComment=function(e,t,n){this.setValue(e+d.settings.commentSuffix,t)},e.prototype.findQuestionByName=function(t){if(t){var n=e.ItemVariableName+".";if(0===t.indexOf(n))return this.panel.getQuestionByName(t.substring(n.length));var r=this.getSurvey();return r?r.getQuestionByName(t):null}},e.prototype.getAllValues=function(){return this.data.getPanelItemData(this)},e.prototype.getFilteredValues=function(){var t={},n=this.data&&this.data.getRootData()?this.data.getRootData().getFilteredValues():{};for(var r in n)t[r]=n[r];if(t[e.ItemVariableName]=this.getAllValues(),this.data){var o=e.IndexVariableName,i=e.VisibleIndexVariableName;delete t[o],delete t[i],t[o.toLowerCase()]=this.data.getItemIndex(this),t[i.toLowerCase()]=this.data.getVisibleItemIndex(this);var s=this.data;s&&s.parentQuestion&&s.parent&&(t[e.ParentItemVariableName]=s.parent.getValue())}return t},e.prototype.getFilteredProperties=function(){return this.data&&this.data.getRootData()?this.data.getRootData().getFilteredProperties():{survey:this.getSurvey()}},e.prototype.getSurveyData=function(){return this},e.prototype.getSurvey=function(){return this.data?this.data.getSurvey():null},e.prototype.getTextProcessor=function(){return this.textPreProcessor},e.ItemVariableName="panel",e.ParentItemVariableName="parentpanel",e.IndexVariableName="panelIndex",e.VisibleIndexVariableName="visiblePanelIndex",e}(),w=function(){function e(e){this.data=e}return e.prototype.getSurveyData=function(){return null},e.prototype.getSurvey=function(){return this.data.getSurvey()},e.prototype.getTextProcessor=function(){return null},e}(),x=function(e){function t(t){var n=e.call(this,t)||this;return n.isAddingNewPanels=!1,n.onReadyChangedCallback=function(){n.recalculateIsReadyValue()},n.isSetPanelItemData={},n.createNewArray("panels",(function(e){n.onPanelAdded(e)}),(function(e){n.onPanelRemoved(e)})),n.createNewArray("visiblePanels"),n.templateValue=n.createAndSetupNewPanelObject(),n.template.renderWidth="100%",n.template.selectedElementInDesign=n,n.template.addElementCallback=function(e){n.addOnPropertyChangedCallback(e),n.rebuildPanels()},n.template.removeElementCallback=function(){n.rebuildPanels()},n.createLocalizableString("confirmDeleteText",n,!1,"confirmDelete"),n.createLocalizableString("keyDuplicationError",n,!1,!0),n.createLocalizableString("panelAddText",n,!1,"addPanel"),n.createLocalizableString("panelRemoveText",n,!1,"removePanel"),n.createLocalizableString("panelPrevText",n,!1,"pagePrevText"),n.createLocalizableString("panelNextText",n,!1,"pageNextText"),n.createLocalizableString("noEntriesText",n,!1,"noEntriesText"),n.createLocalizableString("templateTabTitle",n,!0,"panelDynamicTabTextFormat"),n.registerPropertyChangedHandlers(["panelsState"],(function(){n.setPanelsState()})),n.registerPropertyChangedHandlers(["isMobile"],(function(){n.updateFooterActions()})),n.registerPropertyChangedHandlers(["allowAddPanel"],(function(){n.updateNoEntriesTextDefaultLoc()})),n}return v(t,e),Object.defineProperty(t.prototype,"hasSingleInput",{get:function(){return!1},enumerable:!1,configurable:!0}),t.prototype.getFirstQuestionToFocus=function(e){for(var t=0;t<this.visiblePanels.length;t++){var n=this.visiblePanels[t].getFirstQuestionToFocus(e);if(n)return n}return null},t.prototype.setSurveyImpl=function(t,n){e.prototype.setSurveyImpl.call(this,t,n),this.setTemplatePanelSurveyImpl(),this.setPanelsSurveyImpl()},t.prototype.assignOnPropertyChangedToTemplate=function(){for(var e=this.template.elements,t=0;t<e.length;t++)this.addOnPropertyChangedCallback(e[t])},t.prototype.addOnPropertyChangedCallback=function(e){var t=this;e.isQuestion&&e.setParentQuestion(this),e.onPropertyChanged.add((function(e,n){t.onTemplateElementPropertyChanged(e,n)})),e.isPanel&&(e.addElementCallback=function(e){t.addOnPropertyChangedCallback(e)})},t.prototype.onTemplateElementPropertyChanged=function(e,t){if(!this.isLoadingFromJson&&!this.useTemplatePanel&&0!=this.panels.length&&u.Serializer.findProperty(e.getType(),t.name))for(var n=this.panels,r=0;r<n.length;r++){var o=n[r].getQuestionByName(e.name);o&&o[t.name]!==t.newValue&&(o[t.name]=t.newValue)}},Object.defineProperty(t.prototype,"useTemplatePanel",{get:function(){return this.isDesignMode&&!this.isContentElement},enumerable:!1,configurable:!0}),t.prototype.getType=function(){return"paneldynamic"},Object.defineProperty(t.prototype,"isCompositeQuestion",{get:function(){return!0},enumerable:!1,configurable:!0}),t.prototype.clearOnDeletingContainer=function(){this.panels.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,"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.template.visibleIf},set:function(e){this.template.visibleIf=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"items",{get:function(){for(var e=[],t=0;t<this.panels.length;t++)e.push(this.panels[t].data);return e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"panels",{get:function(){return this.getPropertyValue("panels")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"visiblePanels",{get:function(){return this.getPropertyValue("visiblePanels")},enumerable:!1,configurable:!0}),t.prototype.onPanelAdded=function(e){if(this.onPanelRemovedCore(e),e.visible){for(var t=0,n=this.panels,r=0;r<n.length&&n[r]!==e;r++)n[r].visible&&t++;this.visiblePanels.splice(t,0,e),this.addTabFromToolbar(e,t),this.currentPanel||(this.currentPanel=e)}},t.prototype.onPanelRemoved=function(e){var t=this.onPanelRemovedCore(e);if(this.currentPanel===e){var n=this.visiblePanels;t>=n.length&&(t=n.length-1),this.currentPanel=t>=0?n[t]:null}},t.prototype.onPanelRemovedCore=function(e){var t=this.visiblePanels,n=t.indexOf(e);return n>-1&&(t.splice(n,1),this.removeTabFromToolbar(e)),n},Object.defineProperty(t.prototype,"currentIndex",{get:function(){return this.isRenderModeList?-1:this.useTemplatePanel?0:this.visiblePanels.indexOf(this.currentPanel)},set:function(e){e<0||this.visiblePanelCount<1||(e>=this.visiblePanelCount&&(e=this.visiblePanelCount-1),this.currentPanel=this.visiblePanels[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.visiblePanels[0],this.currentPanel=e),e},set:function(e){this.isRenderModeList||this.useTemplatePanel||e&&this.visiblePanels.indexOf(e)<0||e===this.getPropertyValue("currentPanel")||(this.setPropertyValue("currentPanel",e),this.updateFooterActions(),this.updateTabToolbarItemsPressedState(),this.fireCallback(this.currentIndexChangedCallback))},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,"keyName",{get:function(){return this.getPropertyValue("keyName","")},set:function(e){this.setPropertyValue("keyName",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"confirmDeleteText",{get:function(){return this.getLocalizableStringText("confirmDeleteText")},set:function(e){this.setLocalizableStringText("confirmDeleteText",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locConfirmDeleteText",{get:function(){return this.getLocalizableString("confirmDeleteText")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"keyDuplicationError",{get:function(){return this.getLocalizableStringText("keyDuplicationError")},set:function(e){this.setLocalizableStringText("keyDuplicationError",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locKeyDuplicationError",{get:function(){return this.getLocalizableString("keyDuplicationError")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"panelPrevText",{get:function(){return this.getLocalizableStringText("panelPrevText")},set:function(e){this.setLocalizableStringText("panelPrevText",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locPanelPrevText",{get:function(){return this.getLocalizableString("panelPrevText")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"panelNextText",{get:function(){return this.getLocalizableStringText("panelNextText")},set:function(e){this.setLocalizableStringText("panelNextText",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locPanelNextText",{get:function(){return this.getLocalizableString("panelNextText")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"panelAddText",{get:function(){return this.getLocalizableStringText("panelAddText")},set:function(e){this.setLocalizableStringText("panelAddText",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locPanelAddText",{get:function(){return this.getLocalizableString("panelAddText")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"panelRemoveText",{get:function(){return this.getLocalizableStringText("panelRemoveText")},set:function(e){this.setLocalizableStringText("panelRemoveText",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locPanelRemoveText",{get:function(){return this.getLocalizableString("panelRemoveText")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isProgressTopShowing",{get:function(){return"progressTop"===this.renderMode||"progressTopBottom"===this.renderMode},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isProgressBottomShowing",{get:function(){return"progressBottom"===this.renderMode||"progressTopBottom"===this.renderMode},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isPrevButtonVisible",{get:function(){return this.currentIndex>0},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isPrevButtonShowing",{get:function(){return this.isPrevButtonVisible},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isNextButtonVisible",{get:function(){return this.currentIndex>=0&&this.currentIndex<this.visiblePanelCount-1},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isNextButtonShowing",{get:function(){return this.isNextButtonVisible},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isRangeShowing",{get:function(){return this.showRangeInProgress&&this.currentIndex>=0&&this.visiblePanelCount>1},enumerable:!1,configurable:!0}),t.prototype.getElementsInDesign=function(e){return void 0===e&&(e=!1),e?[this.template]:this.templateElements},t.prototype.prepareValueForPanelCreating=function(){this.addingNewPanelsValue=this.value,this.isAddingNewPanels=!0,this.isNewPanelsValueChanged=!1},t.prototype.setValueAfterPanelsCreating=function(){this.isAddingNewPanels=!1,this.isNewPanelsValueChanged&&(this.isValueChangingInternally=!0,this.value=this.addingNewPanelsValue,this.isValueChangingInternally=!1)},t.prototype.getValueCore=function(){return this.isAddingNewPanels?this.addingNewPanelsValue:e.prototype.getValueCore.call(this)},t.prototype.setValueCore=function(t){this.isAddingNewPanels?(this.isNewPanelsValueChanged=!0,this.addingNewPanelsValue=t):e.prototype.setValueCore.call(this,t)},t.prototype.setIsMobile=function(e){(this.panels||[]).forEach((function(t){return t.elements.forEach((function(t){t instanceof l.Question&&(t.isMobile=e)}))}))},Object.defineProperty(t.prototype,"panelCount",{get:function(){return this.isLoadingFromJson||this.useTemplatePanel?this.getPropertyValue("panelCount"):this.panels.length},set:function(e){if(!(e<0))if(this.isLoadingFromJson||this.useTemplatePanel)this.setPropertyValue("panelCount",e);else if(e!=this.panels.length&&!this.useTemplatePanel){this.updateBindings("panelCount",e),this.prepareValueForPanelCreating();for(var t=this.panelCount;t<e;t++){var n=this.createNewPanel();this.panels.push(n),"list"==this.renderMode&&"default"!=this.panelsState&&("expand"===this.panelsState?n.expand():n.title&&n.collapse())}e<this.panelCount&&this.panels.splice(e,this.panelCount-e),this.setValueAfterPanelsCreating(),this.setValueBasedOnPanelCount(),this.reRunCondition(),this.updateFooterActions(),this.fireCallback(this.panelCountChangedCallback)}},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 w(this))},t.prototype.setPanelsSurveyImpl=function(){for(var e=0;e<this.panels.length;e++){var t=this.panels[e];t!=this.template&&t.setSurveyImpl(t.data)}},t.prototype.setPanelsState=function(){if(!this.useTemplatePanel&&"list"==this.renderMode&&this.templateTitle)for(var e=0;e<this.panels.length;e++){var t=this.panelsState;"firstExpanded"===t&&(t=0===e?"expanded":"collapsed"),this.panels[e].state=t}},t.prototype.setValueBasedOnPanelCount=function(){var e=this.value;if(e&&Array.isArray(e)||(e=[]),e.length!=this.panelCount){for(var t=e.length;t<this.panelCount;t++)e.push({});e.length>this.panelCount&&e.splice(this.panelCount,e.length-this.panelCount),this.isValueChangingInternally=!0,this.value=e,this.isValueChangingInternally=!1}},Object.defineProperty(t.prototype,"minPanelCount",{get:function(){return this.getPropertyValue("minPanelCount")},set:function(e){e<0&&(e=0),e!=this.minPanelCount&&(this.setPropertyValue("minPanelCount",e),e>this.maxPanelCount&&(this.maxPanelCount=e),this.panelCount<e&&(this.panelCount=e))},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"maxPanelCount",{get:function(){return this.getPropertyValue("maxPanelCount")},set:function(e){e<=0||(e>d.settings.panel.maxPanelCount&&(e=d.settings.panel.maxPanelCount),e!=this.maxPanelCount&&(this.setPropertyValue("maxPanelCount",e),e<this.minPanelCount&&(this.minPanelCount=e),this.panelCount>e&&(this.panelCount=e)))},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"allowAddPanel",{get:function(){return this.getPropertyValue("allowAddPanel")},set:function(e){this.setPropertyValue("allowAddPanel",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"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,"showQuestionNumbers",{get:function(){return this.getPropertyValue("showQuestionNumbers")},set:function(e){this.setPropertyValue("showQuestionNumbers",e),!this.isLoadingFromJson&&this.survey&&this.survey.questionVisibilityChanged(this,this.visible)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"panelRemoveButtonLocation",{get:function(){return this.getPropertyValue("panelRemoveButtonLocation")},set:function(e){this.setPropertyValue("panelRemoveButtonLocation",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"showRangeInProgress",{get:function(){return this.getPropertyValue("showRangeInProgress")},set:function(e){this.setPropertyValue("showRangeInProgress",e),this.updateFooterActions(),this.fireCallback(this.currentIndexChangedCallback)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"renderMode",{get:function(){return this.getPropertyValue("renderMode")},set:function(e){this.setPropertyValue("renderMode",e),this.updateFooterActions(),this.fireCallback(this.renderModeChangedCallback)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"tabAlign",{get:function(){return this.getPropertyValue("tabAlign")},set:function(e){this.setPropertyValue("tabAlign",e),this.isRenderModeTab&&(this.additionalTitleToolbar.containerCss=this.getAdditionalTitleToolbarCss())},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isRenderModeList",{get:function(){return"list"===this.renderMode},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isRenderModeTab",{get:function(){return"tab"===this.renderMode},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hasTitleOnLeftTop",{get:function(){if(this.isRenderModeTab&&this.visiblePanelCount>0)return!0;if(!this.hasTitle)return!1;var e=this.getTitleLocation();return"left"===e||"top"===e},enumerable:!1,configurable:!0}),t.prototype.setVisibleIndex=function(t){if(!this.isVisible)return 0;for(var n="onSurvey"==this.showQuestionNumbers?t:0,r=0;r<this.visiblePanels.length;r++){var o=this.setPanelVisibleIndex(this.visiblePanels[r],n,"off"!=this.showQuestionNumbers);"onSurvey"==this.showQuestionNumbers&&(n+=o)}return e.prototype.setVisibleIndex.call(this,"onSurvey"!=this.showQuestionNumbers?t:-1),"onSurvey"!=this.showQuestionNumbers?1:n-t},t.prototype.setPanelVisibleIndex=function(e,t,n){return n?e.setVisibleIndex(t):(e.setVisibleIndex(-1),0)},Object.defineProperty(t.prototype,"canAddPanel",{get:function(){return!this.isDesignMode&&!(this.isDefaultV2Theme&&!this.legacyNavigation&&!this.isRenderModeList&&this.currentIndex<this.visiblePanelCount-1)&&this.allowAddPanel&&!this.isReadOnly&&this.panelCount<this.maxPanelCount},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"canRemovePanel",{get:function(){return!this.isDesignMode&&this.allowRemovePanel&&!this.isReadOnly&&this.panelCount>this.minPanelCount},enumerable:!1,configurable:!0}),t.prototype.rebuildPanels=function(){var e;if(!this.isLoadingFromJson){this.prepareValueForPanelCreating();var t=[];if(this.useTemplatePanel)new C(this,this.template),t.push(this.template);else for(var n=0;n<this.panelCount;n++)this.createNewPanel(),t.push(this.createNewPanel());(e=this.panels).splice.apply(e,function(e,t){for(var n=0,r=t.length,o=e.length;n<r;n++,o++)e[o]=t[n];return e}([0,this.panels.length],t)),this.setValueAfterPanelsCreating(),this.setPanelsState(),this.reRunCondition(),this.updateFooterActions(),this.fireCallback(this.panelCountChangedCallback),this.updateTabToolbar()}},Object.defineProperty(t.prototype,"defaultPanelValue",{get:function(){return this.getPropertyValue("defaultPanelValue")},set:function(e){this.setPropertyValue("defaultPanelValue",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"defaultValueFromLastPanel",{get:function(){return this.getPropertyValue("defaultValueFromLastPanel")},set:function(e){this.setPropertyValue("defaultValueFromLastPanel",e)},enumerable:!1,configurable:!0}),t.prototype.isDefaultValueEmpty=function(){return e.prototype.isDefaultValueEmpty.call(this)&&this.isValueEmpty(this.defaultPanelValue)},t.prototype.setDefaultValue=function(){if(!this.isValueEmpty(this.defaultPanelValue)&&this.isValueEmpty(this.defaultValue)){if(this.isEmpty()&&0!=this.panelCount){for(var t=[],n=0;n<this.panelCount;n++)t.push(this.defaultPanelValue);this.value=t}}else e.prototype.setDefaultValue.call(this)},Object.defineProperty(t.prototype,"isValueArray",{get:function(){return!0},enumerable:!1,configurable:!0}),t.prototype.isEmpty=function(){var e=this.value;if(!e||!Array.isArray(e))return!0;for(var t=0;t<e.length;t++)if(!this.isRowEmpty(e[t]))return!1;return!0},t.prototype.getProgressInfo=function(){return i.SurveyElement.getProgressInfoByElements(this.visiblePanels,this.isRequired)},t.prototype.isRowEmpty=function(e){for(var t in e)if(e.hasOwnProperty(t))return!1;return!0},t.prototype.addPanelUI=function(){if(!this.canAddPanel)return null;if(!this.canLeaveCurrentPanel())return null;var e=this.addPanel();return"list"===this.renderMode&&"default"!==this.panelsState&&e.expand(),e},t.prototype.addPanel=function(){this.panelCount++,this.isRenderModeList||(this.currentIndex=this.panelCount-1);var e=this.value,t=!1;return this.isValueEmpty(this.defaultPanelValue)||e&&Array.isArray(e)&&e.length==this.panelCount&&(t=!0,this.copyValue(e[e.length-1],this.defaultPanelValue)),this.defaultValueFromLastPanel&&e&&Array.isArray(e)&&e.length>1&&e.length==this.panelCount&&(t=!0,this.copyValue(e[e.length-1],e[e.length-2])),t&&(this.value=e),this.survey&&this.survey.dynamicPanelAdded(this),this.panels[this.panelCount-1]},t.prototype.canLeaveCurrentPanel=function(){return!("list"!==this.renderMode&&this.currentPanel&&this.currentPanel.hasErrors(!0,!0))},t.prototype.copyValue=function(e,t){for(var n in t)e[n]=t[n]},t.prototype.removePanelUI=function(e){this.canRemovePanel&&(this.confirmDelete&&!Object(h.confirmAction)(this.confirmDeleteText)||this.removePanel(e))},t.prototype.goToNextPanel=function(){return!(this.currentIndex<0||!this.canLeaveCurrentPanel()||(this.currentIndex++,0))},t.prototype.goToPrevPanel=function(){this.currentIndex<0||this.currentIndex--},t.prototype.removePanel=function(e){var t=this.getVisualPanelIndex(e);if(!(t<0||t>=this.visiblePanelCount)){var n=this.visiblePanels[t],r=this.panels.indexOf(n);r<0||this.survey&&!this.survey.dynamicPanelRemoving(this,r,n)||(this.panels.splice(r,1),this.updateBindings("panelCount",this.panelCount),!(e=this.value)||!Array.isArray(e)||r>=e.length||(this.isValueChangingInternally=!0,e.splice(r,1),this.value=e,this.updateFooterActions(),this.fireCallback(this.panelCountChangedCallback),this.survey&&this.survey.dynamicPanelRemoved(this,r,n),this.isValueChangingInternally=!1))}},t.prototype.getVisualPanelIndex=function(e){if(o.Helpers.isNumber(e))return e;for(var t=this.visiblePanels,n=0;n<t.length;n++)if(t[n]===e||t[n].data===e)return n;return-1},t.prototype.getPanelIndexById=function(e){for(var t=0;t<this.panels.length;t++)if(this.panels[t].id===e)return t;return-1},t.prototype.locStrsChanged=function(){e.prototype.locStrsChanged.call(this);for(var t=this.panels,n=0;n<t.length;n++)t[n].locStrsChanged();this.additionalTitleToolbar&&this.additionalTitleToolbar.locStrsChanged()},t.prototype.clearIncorrectValues=function(){for(var e=0;e<this.panels.length;e++)this.clearIncorrectValuesInPanel(e)},t.prototype.clearErrors=function(){e.prototype.clearErrors.call(this);for(var t=0;t<this.panels.length;t++)this.panels[t].clearErrors()},t.prototype.getQuestionFromArray=function(e,t){return t>=this.panelCount?null:this.panels[t].getQuestionByName(e)},t.prototype.clearIncorrectValuesInPanel=function(e){var t=this.panels[e];t.clearIncorrectValues();var n=this.value,r=n&&e<n.length?n[e]:null;if(r){var o=!1;for(var i in r)this.getSharedQuestionFromArray(i,e)||t.getQuestionByName(i)||this.iscorrectValueWithPostPrefix(t,i,d.settings.commentSuffix)||this.iscorrectValueWithPostPrefix(t,i,d.settings.matrix.totalsSuffix)||(delete r[i],o=!0);o&&(n[e]=r,this.value=n)}},t.prototype.iscorrectValueWithPostPrefix=function(e,t,n){return t.indexOf(n)===t.length-n.length&&!!e.getQuestionByName(t.substring(0,t.indexOf(n)))},t.prototype.getSharedQuestionFromArray=function(e,t){return this.survey&&this.valueName?this.survey.getQuestionByValueNameFromArray(this.valueName,e,t):null},t.prototype.addConditionObjectsByContext=function(e,t){for(var n=!!t&&(!0===t||this.template.questions.indexOf(t)>-1),r=new Array,o=this.template.questions,i=0;i<o.length;i++)o[i].addConditionObjectsByContext(r,t);for(var s=0;s<d.settings.panel.maxPanelCountInCondition;s++){var a="["+s+"].",l=this.getValueName()+a,u=this.processedTitle+a;for(i=0;i<r.length;i++)e.push({name:l+r[i].name,text:u+r[i].text,question:r[i].question})}if(n)for(l=!0===t?this.getValueName()+".":"",u=!0===t?this.processedTitle+".":"",i=0;i<r.length;i++)if(r[i].question!=t){var c={name:l+"panel."+r[i].name,text:u+"panel."+r[i].text,question:r[i].question};!0===t&&(c.context=this),e.push(c)}},t.prototype.collectNestedQuestionsCore=function(e,t){var n=t?this.visiblePanels:this.panels;Array.isArray(n)&&n.forEach((function(n){n.questions.forEach((function(n){return n.collectNestedQuestions(e,t)}))}))},t.prototype.getConditionJson=function(t,n){if(void 0===t&&(t=null),void 0===n&&(n=null),!n)return e.prototype.getConditionJson.call(this,t,n);var r=n,o=n.indexOf(".");o>-1&&(r=n.substring(0,o),n=n.substring(o+1));var i=this.template.getQuestionByName(r);return i?i.getConditionJson(t,n):null},t.prototype.onReadOnlyChanged=function(){var t=this.isReadOnly;this.template.readOnly=t;for(var n=0;n<this.panels.length;n++)this.panels[n].readOnly=t;this.updateNoEntriesTextDefaultLoc(),this.updateFooterActions(),e.prototype.onReadOnlyChanged.call(this)},t.prototype.updateNoEntriesTextDefaultLoc=function(){var e=this.getLocalizableString("noEntriesText");e&&(e.localizationName=this.isReadOnly||!this.allowAddPanel?"noEntriesReadonlyText":"noEntriesText",e.strChanged())},t.prototype.onSurveyLoad=function(){if(this.template.readOnly=this.isReadOnly,this.template.onSurveyLoad(),this.getPropertyValue("panelCount")>0&&(this.panelCount=this.getPropertyValue("panelCount")),this.useTemplatePanel&&this.rebuildPanels(),this.setPanelsSurveyImpl(),this.setPanelsState(),this.assignOnPropertyChangedToTemplate(),this.survey)for(var t=0;t<this.panelCount;t++)this.survey.dynamicPanelAdded(this);this.recalculateIsReadyValue(),!this.isReadOnly&&this.allowAddPanel||this.updateNoEntriesTextDefaultLoc(),e.prototype.onSurveyLoad.call(this)},t.prototype.onFirstRendering=function(){this.template.onFirstRendering();for(var t=0;t<this.panels.length;t++)this.panels[t].onFirstRendering();e.prototype.onFirstRendering.call(this)},t.prototype.localeChanged=function(){e.prototype.localeChanged.call(this);for(var t=0;t<this.panels.length;t++)this.panels[t].localeChanged()},t.prototype.runCondition=function(t,n){e.prototype.runCondition.call(this,t,n),this.runPanelsCondition(t,n)},t.prototype.reRunCondition=function(){this.data&&this.runCondition(this.getDataFilteredValues(),this.getDataFilteredProperties())},t.prototype.runPanelsCondition=function(e,t){var n={};e&&e instanceof Object&&(n=JSON.parse(JSON.stringify(e))),this.parentQuestion&&this.parent&&(n[C.ParentItemVariableName]=this.parent.getValue());for(var r=0;r<this.panels.length;r++){var i=this.getPanelItemData(this.panels[r].data),s=o.Helpers.createCopy(n);s[C.ItemVariableName.toLowerCase()]=i,s[C.IndexVariableName.toLowerCase()]=r,this.panels[r].runCondition(s,t)}},t.prototype.onAnyValueChanged=function(t){e.prototype.onAnyValueChanged.call(this,t);for(var n=0;n<this.panels.length;n++)this.panels[n].onAnyValueChanged(t),this.panels[n].onAnyValueChanged(C.ItemVariableName)},t.prototype.hasKeysDuplicated=function(e,t){void 0===t&&(t=null);for(var n,r=[],o=0;o<this.panels.length;o++)n=this.isValueDuplicated(this.panels[o],r,t,e)||n;return n},t.prototype.updatePanelsContainsErrors=function(){for(var e=this.changingValueQuestion.parent;e;)e.updateContainsErrors(),e=e.parent;this.updateContainsErrors()},t.prototype.hasErrors=function(t,n){if(void 0===t&&(t=!0),void 0===n&&(n=null),this.isValueChangingInternally)return!1;var r=!1;return this.changingValueQuestion?(r=this.changingValueQuestion.hasErrors(t,n),r=this.hasKeysDuplicated(t,n)||r,this.updatePanelsContainsErrors()):r=this.hasErrorInPanels(t,n),e.prototype.hasErrors.call(this,t,n)||r},t.prototype.getContainsErrors=function(){var t=e.prototype.getContainsErrors.call(this);if(t)return t;for(var n=this.panels,r=0;r<n.length;r++)if(n[r].containsErrors)return!0;return!1},t.prototype.getIsAnswered=function(){if(!e.prototype.getIsAnswered.call(this))return!1;for(var t=this.visiblePanels,n=0;n<t.length;n++){var r=[];t[n].addQuestionsToList(r,!0);for(var o=0;o<r.length;o++)if(!r[o].isAnswered)return!1}return!0},t.prototype.clearValueOnHidding=function(t){if(!t){if(this.survey&&"none"===this.survey.getQuestionClearIfInvisible("onHidden"))return;this.clearValueInPanelsIfInvisible("onHiddenContainer")}e.prototype.clearValueOnHidding.call(this,t)},t.prototype.clearValueIfInvisible=function(t){void 0===t&&(t="onHidden");var n="onHidden"===t?"onHiddenContainer":t;this.clearValueInPanelsIfInvisible(n),e.prototype.clearValueIfInvisible.call(this,t)},t.prototype.clearValueInPanelsIfInvisible=function(e){for(var t=0;t<this.panels.length;t++){var n=this.panels[t].questions;this.isSetPanelItemData={};for(var r=0;r<n.length;r++){var o=n[r];o.clearValueIfInvisible(e),this.isSetPanelItemData[o.getValueName()]=this.maxCheckCount+1}}this.isSetPanelItemData={}},t.prototype.getIsRunningValidators=function(){if(e.prototype.getIsRunningValidators.call(this))return!0;for(var t=0;t<this.panels.length;t++)for(var n=this.panels[t].questions,r=0;r<n.length;r++)if(n[r].isRunningValidators)return!0;return!1},t.prototype.getAllErrors=function(){for(var t=e.prototype.getAllErrors.call(this),n=this.visiblePanels,r=0;r<n.length;r++)for(var o=n[r].questions,i=0;i<o.length;i++){var s=o[i].getAllErrors();s&&s.length>0&&(t=t.concat(s))}return t},t.prototype.getDisplayValueCore=function(e,t){var n=this.getUnbindValue(t);if(!n||!Array.isArray(n))return n;for(var r=0;r<this.panels.length&&r<n.length;r++){var o=n[r];o&&(n[r]=this.getPanelDisplayValue(r,o,e))}return n},t.prototype.getPanelDisplayValue=function(e,t,n){if(!t)return t;for(var r=this.panels[e],o=Object.keys(t),i=0;i<o.length;i++){var s=o[i],a=r.getQuestionByValueName(s);if(a||(a=this.getSharedQuestionFromArray(s,e)),a){var l=a.getDisplayValue(n,t[s]);t[s]=l,n&&a.title&&a.title!==s&&(t[a.title]=l,delete t[s])}}return t},t.prototype.hasErrorInPanels=function(e,t){for(var n=!1,r=this.visiblePanels,o=[],i=0;i<r.length;i++)this.setOnCompleteAsyncInPanel(r[i]);for(i=0;i<r.length;i++){var s=r[i].hasErrors(e,!!t&&t.focuseOnFirstError,t);s=this.isValueDuplicated(r[i],o,t,e)||s,this.isRenderModeList||!s||n||(this.currentIndex=i),n=s||n}return n},t.prototype.setOnCompleteAsyncInPanel=function(e){for(var t=this,n=e.questions,r=0;r<n.length;r++)n[r].onCompletedAsyncValidators=function(e){t.raiseOnCompletedAsyncValidators()}},t.prototype.isValueDuplicated=function(e,t,n,r){if(!this.keyName)return!1;var o=e.getQuestionByValueName(this.keyName);if(!o||o.isEmpty())return!1;var i=o.value;this.changingValueQuestion&&o!=this.changingValueQuestion&&o.hasErrors(r,n);for(var s=0;s<t.length;s++)if(i==t[s])return r&&o.addError(new p.KeyDuplicationError(this.keyDuplicationError,this)),n&&!n.firstErrorQuestion&&(n.firstErrorQuestion=o),!0;return t.push(i),!1},t.prototype.getPanelActions=function(e){var t=this,n=e.footerActions;return"right"!==this.panelRemoveButtonLocation&&n.push(new g.Action({id:"remove-panel-"+e.id,component:"sv-paneldynamic-remove-btn",visible:new m.ComputedUpdater((function(){return[t.canRemovePanel,"collapsed"!==e.state,"right"!==t.panelRemoveButtonLocation].every((function(e){return!0===e}))})),data:{question:this,panel:e}})),this.survey&&(n=this.survey.getUpdatedPanelFooterActions(e,n,this)),n},t.prototype.createNewPanel=function(){var e=this,t=this.createAndSetupNewPanelObject(),n=this.template.toJSON();(new u.JsonObject).toObject(n,t),t.renderWidth="100%",t.updateCustomWidgets(),new C(this,t),t.onFirstRendering();for(var r=t.questions,o=0;o<r.length;o++)r[o].setParentQuestion(this);return t.locStrsChanged(),t.onGetFooterActionsCallback=function(){return e.getPanelActions(t)},t.footerToolbarCss=this.cssClasses.panelFooter,t.registerPropertyChangedHandlers(["visible"],(function(){t.visible?e.onPanelAdded(t):e.onPanelRemoved(t),e.updateFooterActions()})),t},t.prototype.createAndSetupNewPanelObject=function(){var e=this.createNewPanelObject();e.isInteractiveDesignElement=!1,e.setParentQuestion(this);var t=this;return e.onGetQuestionTitleLocation=function(){return t.getTemplateQuestionTitleLocation()},e},t.prototype.getTemplateQuestionTitleLocation=function(){return"default"!=this.templateTitleLocation?this.templateTitleLocation:this.getTitleLocationCore()},t.prototype.createNewPanelObject=function(){return u.Serializer.createClass("panel")},t.prototype.setPanelCountBasedOnValue=function(){if(!this.isValueChangingInternally&&!this.useTemplatePanel){var e=this.value,t=e&&Array.isArray(e)?e.length:0;0==t&&this.getPropertyValue("panelCount")>0&&(t=this.getPropertyValue("panelCount")),this.settingPanelCountBasedOnValue=!0,this.panelCount=t,this.settingPanelCountBasedOnValue=!1}},t.prototype.setQuestionValue=function(t){if(!this.settingPanelCountBasedOnValue){e.prototype.setQuestionValue.call(this,t,!1),this.setPanelCountBasedOnValue();for(var n=0;n<this.panels.length;n++)this.panelUpdateValueFromSurvey(this.panels[n]);this.updateIsAnswered()}},t.prototype.onSurveyValueChanged=function(t){if(void 0!==t||!this.isAllPanelsEmpty()){e.prototype.onSurveyValueChanged.call(this,t);for(var n=0;n<this.panels.length;n++)this.panelSurveyValueChanged(this.panels[n]);void 0===t&&this.setValueBasedOnPanelCount(),this.recalculateIsReadyValue()}},t.prototype.isAllPanelsEmpty=function(){for(var e=0;e<this.panels.length;e++)if(!o.Helpers.isValueEmpty(this.panels[e].getValue()))return!1;return!0},t.prototype.panelUpdateValueFromSurvey=function(e){for(var t=e.questions,n=this.getPanelItemData(e.data),r=0;r<t.length;r++){var o=t[r];o.updateValueFromSurvey(n[o.getValueName()]),o.updateCommentFromSurvey(n[o.getValueName()+d.settings.commentSuffix]),o.initDataUI()}},t.prototype.panelSurveyValueChanged=function(e){for(var t=e.questions,n=this.getPanelItemData(e.data),r=0;r<t.length;r++){var o=t[r];o.onSurveyValueChanged(n[o.getValueName()])}},t.prototype.recalculateIsReadyValue=function(){var e=this,t=!0;this.panels.forEach((function(n){n.questions.forEach((function(n){n.isReady?n.onReadyChanged.remove(e.onReadyChangedCallback):(t=!1,n.onReadyChanged.add(e.onReadyChangedCallback))}))})),this.isReady=t},t.prototype.onSetData=function(){e.prototype.onSetData.call(this),this.useTemplatePanel&&(this.setTemplatePanelSurveyImpl(),this.rebuildPanels())},t.prototype.isNewValueCorrect=function(e){return Array.isArray(e)},t.prototype.getItemIndex=function(e){var t=this.items.indexOf(e);return t>-1?t:this.items.length},t.prototype.getVisibleItemIndex=function(e){for(var t=this.visiblePanels,n=0;n<t.length;n++)if(t[n].data===e)return n;return t.length},t.prototype.getPanelItemData=function(e){var t=this.items,n=t.indexOf(e),r=this.value;return n<0&&Array.isArray(r)&&r.length>t.length&&(n=t.length),n<0||!r||!Array.isArray(r)||r.length<=n?{}:r[n]},t.prototype.setPanelItemData=function(e,t,n){if(!(this.isSetPanelItemData[t]>this.maxCheckCount)){this.isSetPanelItemData[t]||(this.isSetPanelItemData[t]=0),this.isSetPanelItemData[t]++;var r=this.items,o=r.indexOf(e);o<0&&(o=r.length);var i=this.getUnbindValue(this.value);if(i&&Array.isArray(i)||(i=[]),i.length<=o)for(var s=i.length;s<=o;s++)i.push({});if(i[o]||(i[o]={}),this.isValueEmpty(n)?delete i[o][t]:i[o][t]=n,o>=0&&o<this.panels.length&&(this.changingValueQuestion=this.panels[o].getQuestionByValueName(t)),this.value=i,this.changingValueQuestion=null,this.survey){var a={question:this,panel:e.panel,name:t,itemIndex:o,itemValue:i[o],value:n};this.survey.dynamicPanelItemValueChanged(this,a)}this.isSetPanelItemData[t]--,this.isSetPanelItemData[t]-1&&delete this.isSetPanelItemData[t]}},t.prototype.getRootData=function(){return this.data},t.prototype.getPlainData=function(t){void 0===t&&(t={includeEmpty:!0});var n=e.prototype.getPlainData.call(this,t);return n&&(n.isNode=!0,n.data=this.panels.map((function(e,n){var r={name:e.name||n,title:e.title||"Panel",value:e.getValue(),displayValue:e.getValue(),getString:function(e){return"object"==typeof e?JSON.stringify(e):e},isNode:!0,data:e.questions.map((function(e){return e.getPlainData(t)})).filter((function(e){return!!e}))};return(t.calculations||[]).forEach((function(t){r[t.propertyName]=e[t.propertyName]})),r}))),n},t.prototype.updateElementCss=function(t){e.prototype.updateElementCss.call(this,t);for(var n=0;n<this.panels.length;n++)this.panels[n].updateElementCss(t)},Object.defineProperty(t.prototype,"progressText",{get:function(){var e=this.visiblePanelCount;return this.getLocalizationFormatString("panelDynamicProgressText",this.currentIndex+1,e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"progress",{get:function(){return(this.currentIndex+1)/this.visiblePanelCount*100+"%"},enumerable:!1,configurable:!0}),t.prototype.getRootCss=function(){return(new f.CssClassBuilder).append(e.prototype.getRootCss.call(this)).append(this.cssClasses.empty,this.getShowNoEntriesPlaceholder()).toString()},Object.defineProperty(t.prototype,"cssHeader",{get:function(){var e=this.isRenderModeTab&&!!this.panelCount;return(new f.CssClassBuilder).append(this.cssClasses.header).append(this.cssClasses.headerTop,this.hasTitleOnTop||e).append(this.cssClasses.headerTab,e).toString()},enumerable:!1,configurable:!0}),t.prototype.getPanelWrapperCss=function(){return(new f.CssClassBuilder).append(this.cssClasses.panelWrapper).append(this.cssClasses.panelWrapperInRow,"right"===this.panelRemoveButtonLocation).toString()},t.prototype.getPanelRemoveButtonCss=function(){return(new f.CssClassBuilder).append(this.cssClasses.button).append(this.cssClasses.buttonRemove).append(this.cssClasses.buttonRemoveRight,"right"===this.panelRemoveButtonLocation).toString()},t.prototype.getAddButtonCss=function(){return(new f.CssClassBuilder).append(this.cssClasses.button).append(this.cssClasses.buttonAdd).append(this.cssClasses.buttonAdd+"--list-mode","list"===this.renderMode).toString()},t.prototype.getPrevButtonCss=function(){return(new f.CssClassBuilder).append(this.cssClasses.buttonPrev).append(this.cssClasses.buttonPrevDisabled,!this.isPrevButtonVisible).toString()},t.prototype.getNextButtonCss=function(){return(new f.CssClassBuilder).append(this.cssClasses.buttonNext).append(this.cssClasses.buttonNextDisabled,!this.isNextButtonVisible).toString()},Object.defineProperty(t.prototype,"noEntriesText",{get:function(){return this.getLocalizableStringText("noEntriesText")},set:function(e){this.setLocalizableStringText("noEntriesText",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locNoEntriesText",{get:function(){return this.getLocalizableString("noEntriesText")},enumerable:!1,configurable:!0}),t.prototype.getShowNoEntriesPlaceholder=function(){return!!this.cssClasses.noEntriesPlaceholder&&!this.isDesignMode&&0===this.visiblePanelCount},t.prototype.needResponsiveWidth=function(){var e=this.getPanel();return!(!e||!e.needResponsiveWidth())},t.prototype.getAdditionalTitleToolbar=function(){return this.isRenderModeTab?(this.additionalTitleToolbarValue||(this.additionalTitleToolbarValue=new y.AdaptiveActionContainer,this.additionalTitleToolbarValue.dotsItem.popupModel.showPointer=!1,this.additionalTitleToolbarValue.dotsItem.popupModel.verticalPosition="bottom",this.additionalTitleToolbarValue.dotsItem.popupModel.horizontalPosition="center",this.updateElementCss(!1)),this.additionalTitleToolbarValue):null},Object.defineProperty(t.prototype,"footerToolbar",{get:function(){return this.footerToolbarValue||this.initFooterToolbar(),this.footerToolbarValue},enumerable:!1,configurable:!0}),t.prototype.updateFooterActions=function(){this.updateFooterActionsCallback&&this.updateFooterActionsCallback()},t.prototype.initFooterToolbar=function(){var e=this;this.footerToolbarValue=this.createActionContainer();var t=[],n=new g.Action({id:"sv-pd-prev-btn",title:this.panelPrevText,action:function(){e.goToPrevPanel()}}),r=new g.Action({id:"sv-pd-next-btn",title:this.panelNextText,action:function(){e.goToNextPanel()}}),o=new g.Action({id:"sv-pd-add-btn",component:"sv-paneldynamic-add-btn",data:{question:this}}),i=new g.Action({id:"sv-prev-btn-icon",component:"sv-paneldynamic-prev-btn",data:{question:this}}),s=new g.Action({id:"sv-pd-progress-text",component:"sv-paneldynamic-progress-text",data:{question:this}}),a=new g.Action({id:"sv-pd-next-btn-icon",component:"sv-paneldynamic-next-btn",data:{question:this}});t.push(n,r,o,i,s,a),this.updateFooterActionsCallback=function(){var t=e.legacyNavigation,l=e.isRenderModeList,u=e.isMobile,c=!t&&!l;n.visible=c&&e.currentIndex>0,r.visible=c&&e.currentIndex<e.visiblePanelCount-1,r.needSpace=u&&r.visible&&n.visible,o.visible=e.canAddPanel,o.needSpace=e.isMobile&&!r.visible&&n.visible,s.visible=!e.isRenderModeList&&!u,s.needSpace=!t&&!e.isMobile;var p=t&&!l;i.visible=p,a.visible=p,i.needSpace=p},this.updateFooterActionsCallback(),this.footerToolbarValue.setItems(t)},t.prototype.createTabByPanel=function(e){var t=this;if(this.isRenderModeTab){var n=new s.LocalizableString(e,!0);n.sharedData=this.locTemplateTabTitle;var r=this.getPanelIndexById(e.id)===this.currentIndex,o=new g.Action({id:e.id,pressed:r,locTitle:n,disableHide:r,action:function(){t.currentIndex=t.getPanelIndexById(o.id)}});return o}},t.prototype.getAdditionalTitleToolbarCss=function(e){var t=null!=e?e:this.cssClasses;return(new f.CssClassBuilder).append(t.tabsRoot).append(t.tabsLeft,"left"===this.tabAlign).append(t.tabsRight,"right"===this.tabAlign).append(t.tabsCenter,"center"===this.tabAlign).toString()},t.prototype.updateTabToolbarItemsPressedState=function(){if(this.isRenderModeTab&&!(this.currentIndex<0||this.currentIndex>=this.visiblePanelCount)){var e=this.visiblePanels[this.currentIndex];this.additionalTitleToolbar.renderedActions.forEach((function(t){var n=t.id===e.id;t.pressed=n,t.disableHide=n,"popup"===t.mode&&t.disableHide&&t.raiseUpdate()}))}},t.prototype.updateTabToolbar=function(){var e=this;if(this.isRenderModeTab){var t=[];this.visiblePanels.forEach((function(n){return t.push(e.createTabByPanel(n))})),this.additionalTitleToolbar.setItems(t)}},t.prototype.addTabFromToolbar=function(e,t){if(this.isRenderModeTab){var n=this.createTabByPanel(e);this.additionalTitleToolbar.actions.splice(t,0,n),this.updateTabToolbarItemsPressedState()}},t.prototype.removeTabFromToolbar=function(e){if(this.isRenderModeTab){var t=this.additionalTitleToolbar.getActionById(e.id);t&&(this.additionalTitleToolbar.actions.splice(this.additionalTitleToolbar.actions.indexOf(t),1),this.updateTabToolbarItemsPressedState())}},Object.defineProperty(t.prototype,"showLegacyNavigation",{get:function(){return!this.isDefaultV2Theme},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"showNavigation",{get:function(){return this.visiblePanelCount>0&&!this.showLegacyNavigation&&!!this.cssClasses.footer},enumerable:!1,configurable:!0}),t.prototype.showSeparator=function(e){return this.isRenderModeList&&e<this.visiblePanelCount-1},t.prototype.calcCssClasses=function(t){var n=e.prototype.calcCssClasses.call(this,t),r=this.additionalTitleToolbar;return r&&(r.containerCss=this.getAdditionalTitleToolbarCss(n),r.cssClasses=n.tabs,r.dotsItem.cssClasses=n.tabs,r.dotsItem.popupModel.contentComponentData.model.cssClasses=t.list),n},t.maxCheckCount=3,function(e,t,n,r){var o,i=arguments.length,s=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,r);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(i<3?o(s):i>3?o(t,n,s):o(t,n))||s);i>3&&s&&Object.defineProperty(t,n,s)}([Object(u.property)({defaultValue:!1,onSet:function(e,t){t.updateFooterActions()}})],t.prototype,"legacyNavigation",void 0),t}(l.Question);u.Serializer.addClass("paneldynamic",[{name:"showCommentArea:switch",layout:"row",visible:!0,category:"general"},{name:"templateElements",alternativeName:"questions",baseClassName:"question",visible:!1,isLightSerializable:!1},{name:"templateTitle:text",serializationProperty:"locTemplateTitle"},{name:"templateTabTitle",serializationProperty:"locTemplateTabTitle",visibleIf:function(e){return"tab"===e.renderMode}},{name:"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:"panelCount:number",isBindable:!0,default:0,choices:[0,1,2,3,4,5,6,7,8,9,10]},{name:"minPanelCount:number",default:0,minValue:0},{name:"maxPanelCount:number",default:d.settings.panel.maxPanelCount},"defaultPanelValue:panelvalue","defaultValueFromLastPanel:boolean",{name:"panelsState",default:"default",choices:["default","collapsed","expanded","firstExpanded"]},{name:"keyName"},{name:"keyDuplicationError",serializationProperty:"locKeyDuplicationError"},{name:"confirmDelete:boolean"},{name:"confirmDeleteText",serializationProperty:"locConfirmDeleteText"},{name:"panelAddText",serializationProperty:"locPanelAddText"},{name:"panelRemoveText",serializationProperty:"locPanelRemoveText"},{name:"panelPrevText",serializationProperty:"locPanelPrevText"},{name:"panelNextText",serializationProperty:"locPanelNextText"},{name:"showQuestionNumbers",default:"off",choices:["off","onPanel","onSurvey"]},{name:"showRangeInProgress:boolean",default:!0},{name:"renderMode",default:"list",choices:["list","progressTop","progressBottom","progressTopBottom","tab"]},{name:"tabAlign",default:"center",choices:["center","left","right"],visibleIf:function(e){return"tab"===e.renderMode}},{name:"templateTitleLocation",default:"default",choices:["default","top","bottom","left"]},{name:"templateVisibleIf:expression",category:"logic"},{name:"panelRemoveButtonLocation",default:"bottom",choices:["bottom","right"]}],(function(){return new x("")}),"question"),c.QuestionFactory.Instance.registerQuestion("paneldynamic",(function(e){return new x(e)}))},"./src/question_radiogroup.ts":function(e,t,n){"use strict";n.r(t),n.d(t,"QuestionRadiogroupModel",(function(){return c}));var r,o=n("./src/jsonobject.ts"),i=n("./src/questionfactory.ts"),s=n("./src/question_baseselect.ts"),a=n("./src/actions/action.ts"),l=n("./src/base.ts"),u=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),c=function(e){function t(t){return e.call(this,t)||this}return u(t,e),t.prototype.getDefaultItemComponent=function(){return"survey-radiogroup-item"},t.prototype.getType=function(){return"radiogroup"},Object.defineProperty(t.prototype,"ariaRole",{get:function(){return"radiogroup"},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"titleAriaLabel",{get:function(){return null},enumerable:!1,configurable:!0}),t.prototype.getFirstInputElementId=function(){return this.inputId+"_0"},Object.defineProperty(t.prototype,"selectedItem",{get:function(){return this.getSingleSelectedItem()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"showClearButton",{get:function(){return this.getPropertyValue("showClearButton")},set:function(e){this.setPropertyValue("showClearButton",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"canShowClearButton",{get:function(){return this.showClearButton&&!this.isReadOnly},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"clearButtonCaption",{get:function(){return this.getLocalizationString("clearCaption")},enumerable:!1,configurable:!0}),t.prototype.supportGoNextPageAutomatic=function(){return!0===this.isMouseDown},t.prototype.setNewComment=function(t){this.isMouseDown=!0,e.prototype.setNewComment.call(this,t),this.isMouseDown=!1},Object.defineProperty(t.prototype,"showClearButtonInContent",{get:function(){return!this.isDefaultV2Theme&&this.canShowClearButton},enumerable:!1,configurable:!0}),t.prototype.clickItemHandler=function(e){this.renderedValue=e.value},t.prototype.getDefaultTitleActions=function(){var e=this,t=[];if(this.isDefaultV2Theme&&!this.isDesignMode){var n=new a.Action({title:this.clearButtonCaption,id:"sv-clr-btn-"+this.id,action:function(){e.clearValue()},innerCss:this.cssClasses.clearButton,visible:new l.ComputedUpdater((function(){return e.canShowClearButton}))});t.push(n)}return t},t}(s.QuestionCheckboxBase);o.Serializer.addClass("radiogroup",[{name:"showClearButton:boolean",default:!1},{name:"separateSpecialChoices",visible:!0},{name:"itemComponent",visible:!1,default:"survey-radiogroup-item"}],(function(){return new c("")}),"checkboxbase"),i.QuestionFactory.Instance.registerQuestion("radiogroup",(function(e){var t=new c(e);return t.choices=i.QuestionFactory.DefaultChoices,t}))},"./src/question_ranking.ts":function(e,t,n){"use strict";n.r(t),n.d(t,"QuestionRankingModel",(function(){return m}));var r,o=n("./src/dragdrop/ranking-choices.ts"),i=n("./src/dragdrop/ranking-select-to-rank.ts"),s=n("./src/itemvalue.ts"),a=n("./src/jsonobject.ts"),l=n("./src/questionfactory.ts"),u=n("./src/question_checkbox.ts"),c=n("./src/utils/cssClassBuilder.ts"),p=n("./src/utils/devices.ts"),d=n("./src/helpers.ts"),h=n("./src/settings.ts"),f=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),g=function(e,t,n,r){var o,i=arguments.length,s=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,r);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(i<3?o(s):i>3?o(t,n,s):o(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},m=function(e){function t(t){var n=e.call(this,t)||this;return n.domNode=null,n.onVisibleChoicesChanged=function(){if(e.prototype.onVisibleChoicesChanged.call(n),1===n.visibleChoices.length)return n.value=[],n.value.push(n.visibleChoices[0].value),void n.updateRankingChoices();n.isEmpty()||n.selectToRankEnabled||(n.visibleChoices.length>n.value.length&&n.addToValueByVisibleChoices(),n.visibleChoices.length<n.value.length&&n.removeFromValueByVisibleChoices()),n.updateRankingChoices()},n.localeChanged=function(){e.prototype.localeChanged.call(n),n.updateRankingChoices()},n.handlePointerDown=function(e,t,r){var o=e.target;n.isDragStartNodeValid(o)&&n.allowStartDrag&&n.canStartDragDueMaxSelectedChoices(o)&&n.dragDropRankingChoices.startDrag(e,t,n,r)},n.handleKeydown=function(e,t){if(!n.isDesignMode){var r=e.key,o=n.rankingChoices.indexOf(t);if(n.selectToRankEnabled)return void n.handleKeydownSelectToRank(e,t);"ArrowUp"===r&&o&&(n.handleArrowUp(o,t),e.preventDefault()),"ArrowDown"===r&&o!==n.rankingChoices.length-1&&(n.handleArrowDown(o,t),e.preventDefault())}},n.handleArrowUp=function(e,t){var r=n.rankingChoices;r.splice(e,1),r.splice(e-1,0,t),n.setValue(),setTimeout((function(){n.focusItem(e-1)}),1)},n.handleArrowDown=function(e,t){var r=n.rankingChoices;r.splice(e,1),r.splice(e+1,0,t),n.setValue(),setTimeout((function(){n.focusItem(e+1)}),1)},n.focusItem=function(e,t){if(n.selectToRankEnabled&&t){var r="[data-ranking='"+t+"']";n.domNode.querySelectorAll(r+" ."+n.cssClasses.item)[e].focus()}else n.domNode.querySelectorAll("."+n.cssClasses.item)[e].focus()},n.setValue=function(){var e=[];n.rankingChoices.forEach((function(t){e.push(t.value)})),n.value=e},n.createNewArray("rankingChoices"),n.registerFunctionOnPropertyValueChanged("selectToRankEnabled",(function(){n.clearValue(),n.setDragDropRankingChoices(),n.updateRankingChoices()})),n}return f(t,e),t.prototype.getDefaultItemComponent=function(){return""},t.prototype.getType=function(){return"ranking"},t.prototype.getItemTabIndex=function(e){return this.isDesignMode?void 0:0},Object.defineProperty(t.prototype,"rootClass",{get:function(){return(new c.CssClassBuilder).append(this.cssClasses.root).append(this.cssClasses.rootMobileMod,p.IsMobile).append(this.cssClasses.rootDisabled,this.isReadOnly).append(this.cssClasses.rootDesignMode,!!this.isDesignMode).append(this.cssClasses.itemOnError,this.errors.length>0).append(this.cssClasses.rootDragHandleAreaIcon,"icon"===h.settings.rankingDragHandleArea).append(this.cssClasses.rootSelectToRankMod,this.selectToRankEnabled).append(this.cssClasses.rootSelectToRankAlignHorizontal,this.selectToRankEnabled&&"horizontal"===this.selectToRankAreasLayout).append(this.cssClasses.rootSelectToRankAlignVertical,this.selectToRankEnabled&&"vertical"===this.selectToRankAreasLayout).toString()},enumerable:!1,configurable:!0}),t.prototype.getItemClassCore=function(t,n){var r=this.rankingChoices.indexOf(t),o=this.rankingChoices.indexOf(this.currentDropTarget);return(new c.CssClassBuilder).append(e.prototype.getItemClassCore.call(this,t,n)).append(this.cssClasses.itemGhostMod,this.currentDropTarget===t).append("sv-dragdrop-movedown",r===o+1&&"down"===this.dropTargetNodeMove).append("sv-dragdrop-moveup",r===o-1&&"up"===this.dropTargetNodeMove).toString()},t.prototype.getContainerClasses=function(e){var t=!1,n="to"===e,r="from"===e;return n?t=0===this.rankingChoices.length:r&&(t=0===this.unRankingChoices.length),(new c.CssClassBuilder).append(this.cssClasses.container).append(this.cssClasses.containerToMode,n).append(this.cssClasses.containerFromMode,r).append(this.cssClasses.containerEmptyMode,t).toString()},t.prototype.isItemCurrentDropTarget=function(e){return this.dragDropRankingChoices.dropTarget===e},Object.defineProperty(t.prototype,"ghostPositionCssClass",{get:function(){return"top"===this.ghostPosition?this.cssClasses.dragDropGhostPositionTop:"bottom"===this.ghostPosition?this.cssClasses.dragDropGhostPositionBottom:""},enumerable:!1,configurable:!0}),t.prototype.getItemIndexClasses=function(e){var t;return t=this.selectToRankEnabled?-1!==this.unRankingChoices.indexOf(e):this.isEmpty(),(new c.CssClassBuilder).append(this.cssClasses.itemIndex).append(this.cssClasses.itemIndexEmptyMode,t).toString()},t.prototype.getNumberByIndex=function(e){return this.isEmpty()?"":e+1+""},t.prototype.setSurveyImpl=function(t,n){e.prototype.setSurveyImpl.call(this,t,n),this.setDragDropRankingChoices(),this.updateRankingChoices()},t.prototype.isAnswerCorrect=function(){return d.Helpers.isArraysEqual(this.value,this.correctAnswer,!1)},Object.defineProperty(t.prototype,"requireStrictCompare",{get:function(){return!0},enumerable:!1,configurable:!0}),t.prototype.onSurveyValueChanged=function(t){e.prototype.onSurveyValueChanged.call(this,t),this.isLoadingFromJson||this.updateRankingChoices()},t.prototype.addToValueByVisibleChoices=function(){var e=this.value.slice();this.visibleChoices.forEach((function(t){-1===e.indexOf(t.value)&&e.push(t.value)})),this.value=e},t.prototype.removeFromValueByVisibleChoices=function(){for(var e=this.value.slice(),t=this.visibleChoices,n=this.value.length-1;n>=0;n--)s.ItemValue.getItemByValue(t,this.value[n])||e.splice(n,1);this.value=e},Object.defineProperty(t.prototype,"rankingChoices",{get:function(){return this.getPropertyValue("rankingChoices",[])},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"unRankingChoices",{get:function(){var e=[],t=this.rankingChoices;return this.visibleChoices.forEach((function(t){e.push(t)})),t.forEach((function(t){e.forEach((function(n,r){n.value===t.value&&e.splice(r,1)}))})),e},enumerable:!1,configurable:!0}),t.prototype.updateRankingChoices=function(e){var t=this;if(void 0===e&&(e=!1),this.selectToRankEnabled)this.updateRankingChoicesSelectToRankMode(e);else{var n=[];e&&this.setPropertyValue("rankingChoices",[]),this.isEmpty()?this.setPropertyValue("rankingChoices",this.visibleChoices):(this.value.forEach((function(e){t.visibleChoices.forEach((function(t){t.value===e&&n.push(t)}))})),this.setPropertyValue("rankingChoices",n))}},t.prototype.updateRankingChoicesSelectToRankMode=function(e){var t=this;if(this.isEmpty())this.setPropertyValue("rankingChoices",[]);else{var n=[];this.value.forEach((function(e){t.visibleChoices.forEach((function(t){t.value===e&&n.push(t)}))})),this.setPropertyValue("rankingChoices",n)}},t.prototype.endLoadingFromJson=function(){e.prototype.endLoadingFromJson.call(this),this.setDragDropRankingChoices()},t.prototype.setDragDropRankingChoices=function(){this.dragDropRankingChoices=this.createDragDropRankingChoices()},t.prototype.createDragDropRankingChoices=function(){return this.selectToRankEnabled?new i.DragDropRankingSelectToRank(this.survey,null,this.longTap):new o.DragDropRankingChoices(this.survey,null,this.longTap)},t.prototype.isDragStartNodeValid=function(e){return"icon"!==h.settings.rankingDragHandleArea||e.classList.contains(this.cssClasses.itemIconHoverMod)},Object.defineProperty(t.prototype,"allowStartDrag",{get:function(){return!this.isReadOnly&&!this.isDesignMode},enumerable:!1,configurable:!0}),t.prototype.canStartDragDueMaxSelectedChoices=function(e){return!this.selectToRankEnabled||!e.closest("[data-ranking='from-container']")||this.checkMaxSelectedChoicesUnreached()},t.prototype.checkMaxSelectedChoicesUnreached=function(){if(this.maxSelectedChoices<1)return!0;var e=this.value;return(Array.isArray(e)?e.length:0)<this.maxSelectedChoices},t.prototype.afterRenderQuestionElement=function(t){this.domNode=t,e.prototype.afterRenderQuestionElement.call(this,t)},t.prototype.beforeDestroyQuestionElement=function(t){e.prototype.beforeDestroyQuestionElement.call(this,t)},t.prototype.supportSelectAll=function(){return!1},t.prototype.supportOther=function(){return!1},t.prototype.supportNone=function(){return!1},t.prototype.handleKeydownSelectToRank=function(e,t){if(!this.isDesignMode){var n,r,o=this.dragDropRankingChoices,i=e.key,s=this.rankingChoices,a=this.unRankingChoices,l=-1!==s.indexOf(t);if((" "===i||"Enter"===i)&&!l)return n=a.indexOf(t),r=0,o.selectToRank(this,n,r),void this.setValueAfterKeydown(r,"to-container");if((" "===i||"Enter"===i)&&l)return n=s.indexOf(t),o.unselectFromRank(this,n),r=this.unRankingChoices.indexOf(t),void this.setValueAfterKeydown(r,"from-container");if("ArrowUp"===i&&l){if(r=(n=s.indexOf(t))-1,n<0)return;return o.reorderRankedItem(this,n,r),void this.setValueAfterKeydown(r,"to-container")}if("ArrowDown"===i&&l){if((r=(n=s.indexOf(t))+1)>=s.length)return;return o.reorderRankedItem(this,n,r),void this.setValueAfterKeydown(r,"to-container")}}},t.prototype.setValueAfterKeydown=function(e,t){var n=this;this.setValue(),setTimeout((function(){n.focusItem(e,t)}),1),event.preventDefault()},t.prototype.getIconHoverCss=function(){return(new c.CssClassBuilder).append(this.cssClasses.itemIcon).append(this.cssClasses.itemIconHoverMod).toString()},t.prototype.getIconFocusCss=function(){return(new c.CssClassBuilder).append(this.cssClasses.itemIcon).append(this.cssClasses.itemIconFocusMod).toString()},Object.defineProperty(t.prototype,"longTap",{get:function(){return this.getPropertyValue("longTap")},set:function(e){this.setPropertyValue("longTap",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"selectToRankEnabled",{get:function(){return this.getPropertyValue("selectToRankEnabled",!1)},set:function(e){this.setPropertyValue("selectToRankEnabled",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"selectToRankAreasLayout",{get:function(){return p.IsMobile?"vertical":this.getPropertyValue("selectToRankAreasLayout","horizontal")},set:function(e){this.setPropertyValue("selectToRankAreasLayout",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"useFullItemSizeForShortcut",{get:function(){return this.getPropertyValue("useFullItemSizeForShortcut")},set:function(e){this.setPropertyValue("useFullItemSizeForShortcut",e)},enumerable:!1,configurable:!0}),g([Object(a.property)({defaultValue:null})],t.prototype,"currentDropTarget",void 0),g([Object(a.property)({defaultValue:null})],t.prototype,"dropTargetNodeMove",void 0),g([Object(a.property)({localizable:{defaultStr:"selectToRankEmptyRankedAreaText"}})],t.prototype,"selectToRankEmptyRankedAreaText",void 0),g([Object(a.property)({localizable:{defaultStr:"selectToRankEmptyUnrankedAreaText"}})],t.prototype,"selectToRankEmptyUnrankedAreaText",void 0),t}(u.QuestionCheckboxModel);a.Serializer.addClass("ranking",[{name:"showOtherItem",visible:!1,isSerializable:!1},{name:"otherText",visible:!1,isSerializable:!1},{name:"otherErrorText",visible:!1,isSerializable:!1},{name:"storeOthersAsComment",visible:!1,isSerializable:!1},{name:"showNoneItem",visible:!1,isSerializable:!1},{name:"noneText",visible:!1,isSerializable:!1},{name:"showSelectAllItem",visible:!1,isSerializable:!1},{name:"selectAllText",visible:!1,isSerializable:!1},{name:"colCount:number",visible:!1,isSerializable:!1},{name:"separateSpecialChoices",visible:!1,isSerializable:!1},{name:"longTap",default:!0,visible:!1,isSerializable:!1},{name:"selectToRankEnabled:switch",default:!1,visible:!0,isSerializable:!0},{name:"selectToRankAreasLayout",default:"horizontal",choices:["horizontal","vertical"],dependsOn:"selectToRankEnabled",visibleIf:function(e){return!!e.selectToRankEnabled},visible:!0,isSerializable:!0},{name:"maxSelectedChoices:number",visible:!0,default:0,dependsOn:"selectToRankEnabled",visibleIf:function(e){return!!e.selectToRankEnabled},isSerializable:!0},{name:"minSelectedChoices:number",visible:!0,default:0,dependsOn:"selectToRankEnabled",visibleIf:function(e){return!!e.selectToRankEnabled},isSerializable:!0},{name:"itemComponent",visible:!1,default:""}],(function(){return new m("")}),"checkbox"),l.QuestionFactory.Instance.registerQuestion("ranking",(function(e){var t=new m(e);return t.choices=l.QuestionFactory.DefaultChoices,t}))},"./src/question_rating.ts":function(e,t,n){"use strict";n.r(t),n.d(t,"RenderedRatingItem",(function(){return g})),n.d(t,"QuestionRatingModel",(function(){return m}));var r,o=n("./src/itemvalue.ts"),i=n("./src/question.ts"),s=n("./src/jsonobject.ts"),a=n("./src/questionfactory.ts"),l=n("./src/settings.ts"),u=n("./src/surveyStrings.ts"),c=n("./src/utils/cssClassBuilder.ts"),p=n("./src/base.ts"),d=n("./src/utils/utils.ts"),h=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),f=function(e,t,n,r){var o,i=arguments.length,s=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,r);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(i<3?o(s):i>3?o(t,n,s):o(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},g=function(e){function t(t,n){void 0===n&&(n=null);var r=e.call(this)||this;return r.itemValue=t,r.locString=n,r.locText.onStringChanged.add(r.onStringChangedCallback.bind(r)),r.onStringChangedCallback(),r}return h(t,e),t.prototype.onStringChangedCallback=function(){this.text=this.itemValue.text},Object.defineProperty(t.prototype,"value",{get:function(){return this.itemValue.getPropertyValue("value")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locText",{get:function(){return this.locString||this.itemValue.locText},enumerable:!1,configurable:!0}),f([Object(s.property)({defaultValue:""})],t.prototype,"highlight",void 0),f([Object(s.property)({defaultValue:""})],t.prototype,"text",void 0),f([Object(s.property)()],t.prototype,"style",void 0),t}(p.Base),m=function(e){function t(t){var n=e.call(this,t)||this;return n._syncPropertiesChanging=!1,n.createItemValues("rateValues"),n.createRenderedRateItems(),n.createLocalizableString("ratingOptionsCaption",n,!1,!0),n.registerFunctionOnPropertiesValueChanged(["rateMin","rateMax","minRateDescription","maxRateDescription","rateStep","displayRateDescriptionsAsExtremeItems"],(function(){return n.createRenderedRateItems()})),n.registerFunctionOnPropertiesValueChanged(["rateType"],(function(){n.setIconsToRateValues(),n.createRenderedRateItems(),n.updateRateCount()})),n.registerFunctionOnPropertiesValueChanged(["rateValues"],(function(){n.autoGenerate=!1,n.setIconsToRateValues(),n.createRenderedRateItems()})),n.registerFunctionOnPropertiesValueChanged(["rateColorMode","scaleColorMode"],(function(){n.updateColors(n.survey.themeVariables)})),n.registerFunctionOnPropertiesValueChanged(["autoGenerate"],(function(){n.autoGenerate||0!==n.rateValues.length||n.setPropertyValue("rateValues",n.visibleRateValues),n.autoGenerate&&(n.rateValues.length=0,n.updateRateMax()),n.createRenderedRateItems()})),n.createLocalizableString("minRateDescription",n,!0),n.createLocalizableString("maxRateDescription",n,!0),n.initPropertyDependencies(),n}return h(t,e),t.prototype.setIconsToRateValues=function(){var e=this;"smileys"==this.rateType&&this.rateValues.map((function(t){return t.icon=e.getItemSmiley(t)}))},t.prototype.endLoadingFromJson=function(){e.prototype.endLoadingFromJson.call(this),this.hasMinRateDescription=!!this.minRateDescription,this.hasMaxRateDescription=!!this.maxRateDescription,void 0!==this.jsonObj.rateMin&&void 0!==this.jsonObj.rateCount&&void 0===this.jsonObj.rateMax&&this.updateRateMax(),void 0!==this.jsonObj.rateMax&&void 0!==this.jsonObj.rateCount&&void 0===this.jsonObj.rateMin&&this.updateRateMin(),void 0===this.jsonObj.autoGenerate&&void 0!==this.jsonObj.rateValues&&(this.autoGenerate=!this.jsonObj.rateValues.length),this.updateRateCount(),this.setIconsToRateValues(),this.createRenderedRateItems()},t.prototype.registerSychProperties=function(e,t){var n=this;this.registerFunctionOnPropertiesValueChanged(e,(function(){n._syncPropertiesChanging||(n._syncPropertiesChanging=!0,t(),n._syncPropertiesChanging=!1)}))},t.prototype.useRateValues=function(){return!!this.rateValues.length&&!this.autoGenerate},t.prototype.updateRateMax=function(){this.rateMax=this.rateMin+this.rateStep*(this.rateCount-1)},t.prototype.updateRateMin=function(){this.rateMin=this.rateMax-this.rateStep*(this.rateCount-1)},t.prototype.updateRateCount=function(){var e=0;(e=this.useRateValues()?this.rateValues.length:Math.trunc((this.rateMax-this.rateMin)/(this.rateStep||1))+1)>10&&"smileys"==this.rateDisplayMode&&(e=10),this.rateCount=e,this.rateValues.length>e&&this.rateValues.splice(e,this.rateValues.length-e)},t.prototype.initPropertyDependencies=function(){var e=this;this.registerSychProperties(["rateCount"],(function(){if(e.useRateValues())if(e.rateCount<e.rateValues.length){if(e.rateCount>=10&&"smileys"==e.rateDisplayMode)return;e.rateValues.splice(e.rateCount,e.rateValues.length-e.rateCount)}else for(var t=e.rateValues.length;t<e.rateCount;t++)e.rateValues.push(new o.ItemValue(u.surveyLocalization.getString("choices_Item")+(t+1)));else e.rateMax=e.rateMin+e.rateStep*(e.rateCount-1)})),this.registerSychProperties(["rateMin","rateMax","rateStep","rateValues"],(function(){e.updateRateCount()}))},Object.defineProperty(t.prototype,"showSelectedItemLocText",{get:function(){return!this.readOnly&&!this.inputHasValue&&!!this.selectedItemLocText},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"selectedItemLocText",{get:function(){var e,t=this;return!this.readOnly&&(null===(e=this.visibleRateValues.filter((function(e){return e.value==t.value}))[0])||void 0===e?void 0:e.locText)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"rateValues",{get:function(){return this.getPropertyValue("rateValues")},set:function(e){this.setPropertyValue("rateValues",e),this.createRenderedRateItems()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"rateMin",{get:function(){return this.getPropertyValue("rateMin")},set:function(e){this.setPropertyValue("rateMin",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"rateMax",{get:function(){return this.getPropertyValue("rateMax")},set:function(e){this.setPropertyValue("rateMax",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"rateStep",{get:function(){return this.getPropertyValue("rateStep")},set:function(e){this.setPropertyValue("rateStep",e)},enumerable:!1,configurable:!0}),t.prototype.updateColors=function(e){function n(t,n){var r=!!e&&e[t];if(!r){var o=getComputedStyle(document.documentElement);r=o.getPropertyValue&&o.getPropertyValue(n)}if(!r)return null;var i=document.createElement("canvas").getContext("2d");i.fillStyle=r;var s=i.fillStyle;if(s.startsWith("rgba"))return s.substring(5,s.length-1).split(",").map((function(e){return+e.trim()}));var a=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(s);return a?[parseInt(a[1],16),parseInt(a[2],16),parseInt(a[3],16),1]:null}"monochrome"!==this.colorMode&&"undefined"!=typeof document&&document&&(t.colorsCalculated||(t.badColor=n("--sjs-special-red","--sd-rating-bad-color"),t.normalColor=n("--sjs-special-yellow","--sd-rating-normal-color"),t.goodColor=n("--sjs-special-green","--sd-rating-good-color"),t.badColorLight=n("--sjs-special-red-light","--sd-rating-bad-color-light"),t.normalColorLight=n("--sjs-special-yellow-light","--sd-rating-normal-color-light"),t.goodColorLight=n("--sjs-special-green-light","--sd-rating-good-color-light"),this.colorsCalculated=!0))},t.prototype.getDisplayValueCore=function(e,t){return o.ItemValue.getTextOrHtmlByValue(this.visibleRateValues,t)||t},Object.defineProperty(t.prototype,"visibleRateValues",{get:function(){return this.renderedRateItems.map((function(e){return e.itemValue}))},enumerable:!1,configurable:!0}),t.prototype.itemValuePropertyChanged=function(t,n,r,o){this.useRateValues()||void 0===o||(this.autoGenerate=!1),e.prototype.itemValuePropertyChanged.call(this,t,n,r,o)},t.prototype.createRenderedRateItems=function(){var e=this,t=[];if(this.useRateValues())t=this.rateValues;else{for(var n=[],r=this.rateMin,i=this.rateStep;r<=this.rateMax&&n.length<l.settings.ratingMaximumRateValueCount;){var s=new o.ItemValue(r);s.locOwner=this,s.ownerPropertyName="rateValues",n.push(s),r=this.correctValue(r+i,i)}t=n}"smileys"==this.rateType&&t.length>10&&(t=t.slice(0,10)),this.renderedRateItems=t.map((function(n,r){var o=null;return e.displayRateDescriptionsAsExtremeItems&&(0==r&&(o=new g(n,e.minRateDescription&&e.locMinRateDescription||n.locText)),r==t.length-1&&(o=new g(n,e.maxRateDescription&&e.locMaxRateDescription||n.locText))),o||(o=new g(n)),o}))},t.prototype.correctValue=function(e,t){if(!e)return e;if(Math.round(e)==e)return e;for(var n=0;Math.round(t)!=t;)t*=10,n++;return parseFloat(e.toFixed(n))},t.prototype.getType=function(){return"rating"},t.prototype.getFirstInputElementId=function(){return this.inputId+"_0"},t.prototype.getInputId=function(e){return this.inputId+"_"+e},t.prototype.supportGoNextPageAutomatic=function(){return!0===this.isMouseDown},t.prototype.supportOther=function(){return!1},Object.defineProperty(t.prototype,"minRateDescription",{get:function(){return this.getLocalizableStringText("minRateDescription")},set:function(e){this.setLocalizableStringText("minRateDescription",e),this.hasMinRateDescription=!!this.minRateDescription},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locMinRateDescription",{get:function(){return this.getLocalizableString("minRateDescription")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"maxRateDescription",{get:function(){return this.getLocalizableStringText("maxRateDescription")},set:function(e){this.setLocalizableStringText("maxRateDescription",e),this.hasMaxRateDescription=!!this.maxRateDescription},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locMaxRateDescription",{get:function(){return this.getLocalizableString("maxRateDescription")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hasMinLabel",{get:function(){return!this.displayRateDescriptionsAsExtremeItems&&!!this.hasMinRateDescription},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hasMaxLabel",{get:function(){return!this.displayRateDescriptionsAsExtremeItems&&!!this.hasMaxRateDescription},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"rateDisplayMode",{get:function(){return this.rateType},set:function(e){this.rateType=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isStar",{get:function(){return"stars"==this.rateType},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isSmiley",{get:function(){return"smileys"==this.rateType},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"itemComponentName",{get:function(){return this.isStar?"sv-rating-item-star":this.isSmiley?"sv-rating-item-smiley":"sv-rating-item"},enumerable:!1,configurable:!0}),t.prototype.valueToData=function(e){if(this.useRateValues()){var t=o.ItemValue.getItemByValue(this.rateValues,e);return t?t.value:e}return isNaN(e)?e:parseFloat(e)},t.prototype.setValueFromClick=function(e){this.value===parseFloat(e)?this.clearValue():this.value=e;for(var t=0;t<this.renderedRateItems.length;t++)this.renderedRateItems[t].highlight="none"},t.prototype.onItemMouseIn=function(e){if(!this.isReadOnly&&e.itemValue.isEnabled&&!this.isDesignMode){var t=!0,n=null!=this.value;if("stars"===this.rateType)for(var r=0;r<this.renderedRateItems.length;r++)this.renderedRateItems[r].highlight=(t&&!n?"highlighted":!t&&n&&"unhighlighted")||"none",this.renderedRateItems[r]==e&&(t=!1),this.renderedRateItems[r].itemValue.value==this.value&&(n=!1);else e.highlight="highlighted"}},t.prototype.onItemMouseOut=function(e){this.renderedRateItems.forEach((function(e){return e.highlight="none"}))},Object.defineProperty(t.prototype,"itemSmallMode",{get:function(){return this.inMatrixMode&&"small"==l.settings.matrix.rateSize},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"ratingRootCss",{get:function(){var e=("buttons"==this.displayMode||this.survey&&this.survey.isDesignMode)&&this.cssClasses.rootWrappable?this.cssClasses.rootWrappable:this.cssClasses.root;return(new c.CssClassBuilder).append(e).append(this.cssClasses.itemSmall,this.itemSmallMode&&"labels"!=this.rateType).toString()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"itemStarIcon",{get:function(){return this.itemSmallMode?"icon-rating-star-small":"icon-rating-star"},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"itemStarIconAlt",{get:function(){return this.itemStarIcon+"-2"},enumerable:!1,configurable:!0}),t.prototype.getItemSmiley=function(e){var t=this.useRateValues()?this.rateValues.length:this.rateMax-this.rateMin+1,n=["very-good","not-good","normal","good","average","excellent","poor","perfect","very-poor","terrible"].slice(0,t),r=["terrible","very-poor","poor","not-good","average","normal","good","very-good","excellent","perfect"].filter((function(e){return-1!=n.indexOf(e)}));return this.useRateValues()?r[this.rateValues.indexOf(e)]:r[e.value-this.rateMin]},t.prototype.getItemSmileyIconName=function(e){return"icon-"+this.getItemSmiley(e)},t.prototype.getItemClassByText=function(e,t){return this.getItemClass(e)},t.prototype.getRenderedItemColor=function(e,n){var r=n?t.badColorLight:t.badColor,o=n?t.goodColorLight:t.goodColor,i=(this.rateCount-1)/2,s=n?t.normalColorLight:t.normalColor;if(e<i?o=s:(r=s,e-=i),!r||!o)return null;for(var a=[0,0,0,0],l=0;l<4;l++)a[l]=r[l]+(o[l]-r[l])*e/i,l<3&&(a[l]=Math.trunc(a[l]));return"rgba("+a[0]+", "+a[1]+", "+a[2]+", "+a[3]+")"},t.prototype.getItemStyle=function(e,t){if(void 0===t&&(t="none"),"monochrome"===this.scaleColorMode&&"default"==this.rateColorMode)return{borderColor:null,fill:null,backgroundColor:null};var n=this.visibleRateValues.indexOf(e),r=this.getRenderedItemColor(n,!1);if(this.value!=this.renderedRateItems[n].value){var o=this.getRenderedItemColor(n,!0);return"highlighted"==t&&"colored"===this.scaleColorMode?{borderColor:r,fill:r,backgroundColor:o}:"colored"===this.scaleColorMode&&0==this.errors.length?{borderColor:r,fill:r,backgroundColor:null}:{borderColor:null,fill:null,backgroundColor:null}}return{borderColor:r,fill:null,backgroundColor:r}},t.prototype.getItemClass=function(e,t){var n=this;void 0===t&&(t="none");var r=this.value==e.value;this.isStar&&(r=this.useRateValues()?this.rateValues.indexOf(this.rateValues.filter((function(e){return e.value==n.value}))[0])>=this.rateValues.indexOf(e):this.value>=e.value);var o=!(this.isReadOnly||!e.isEnabled||this.value==e.value||this.survey&&this.survey.isDesignMode),i=this.renderedRateItems.filter((function(t){return t.itemValue==e}))[0],s=this.isStar&&"highlighted"==(null==i?void 0:i.highlight),a=this.isStar&&"unhighlighted"==(null==i?void 0:i.highlight),l=this.cssClasses.item,u=this.cssClasses.selected,p=this.cssClasses.itemDisabled,d=this.cssClasses.itemHover,h=this.cssClasses.itemOnError,f=null,g=null,m=null,y=null,v=null;this.isStar&&(l=this.cssClasses.itemStar,u=this.cssClasses.itemStarSelected,p=this.cssClasses.itemStarDisabled,d=this.cssClasses.itemStarHover,h=this.cssClasses.itemStarOnError,f=this.cssClasses.itemStarHighlighted,g=this.cssClasses.itemStarUnhighlighted,v=this.cssClasses.itemStarSmall),this.isSmiley&&(l=this.cssClasses.itemSmiley,u=this.cssClasses.itemSmileySelected,p=this.cssClasses.itemSmileyDisabled,d=this.cssClasses.itemSmileyHover,h=this.cssClasses.itemSmileyOnError,f=this.cssClasses.itemSmileyHighlighted,m=this.cssClasses.itemSmileyScaleColored,y=this.cssClasses.itemSmileyRateColored,v=this.cssClasses.itemSmileySmall);var b=!this.isStar&&!this.isSmiley&&(!this.displayRateDescriptionsAsExtremeItems||this.useRateValues()&&e!=this.rateValues[0]&&e!=this.rateValues[this.rateValues.length-1]||!this.useRateValues()&&e.value!=this.rateMin&&e.value!=this.rateMax)&&e.locText.calculatedText.length<=2&&Number.isInteger(Number(e.locText.calculatedText));return(new c.CssClassBuilder).append(l).append(u,r).append(p,this.isReadOnly).append(d,o).append(f,s).append(m,"colored"==this.scaleColorMode).append(y,"scale"==this.rateColorMode&&r).append(g,a).append(h,this.errors.length>0).append(v,this.itemSmallMode).append(this.cssClasses.itemFixedSize,b).toString()},t.prototype.getControlClass=function(){return this.isEmpty(),(new c.CssClassBuilder).append(this.cssClasses.control).append(this.cssClasses.controlEmpty,this.isEmpty()).append(this.cssClasses.onError,this.errors.length>0).append(this.cssClasses.controlDisabled,this.isReadOnly).toString()},Object.defineProperty(t.prototype,"placeholder",{get:function(){return this.getLocalizableStringText("ratingOptionsCaption")},set:function(e){this.setLocalizableStringText("ratingOptionsCaption",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locPlaceholder",{get:function(){return this.getLocalizableString("ratingOptionsCaption")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"allowClear",{get:function(){return!0},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"searchEnabled",{get:function(){return!1},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"renderedValue",{get:function(){return this.value},set:function(e){this.value=e},enumerable:!1,configurable:!0}),t.prototype.isItemSelected=function(e){return e.value==this.value},Object.defineProperty(t.prototype,"visibleChoices",{get:function(){return this.visibleRateValues},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"readOnlyText",{get:function(){return this.readOnly?this.displayValue||this.placeholder:this.isEmpty()?this.placeholder:""},enumerable:!1,configurable:!0}),t.prototype.needResponsiveWidth=function(){this.getPropertyValue("rateValues");var e=this.getPropertyValue("rateStep"),t=this.getPropertyValue("rateMax"),n=this.getPropertyValue("rateMin");return"dropdown"!=this.displayMode&&!!(this.hasMinRateDescription||this.hasMaxRateDescription||e&&(t-n)/e>9)},t.prototype.supportResponsiveness=function(){return!0},t.prototype.getCompactRenderAs=function(){return"buttons"==this.displayMode?"default":"dropdown"},t.prototype.getDesktopRenderAs=function(){return"dropdown"==this.displayMode?"dropdown":"default"},Object.defineProperty(t.prototype,"ariaExpanded",{get:function(){var e,t=null===(e=this.dropdownListModel)||void 0===e?void 0:e.popupModel;return t?t.isVisible?"true":"false":null},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"dropdownListModel",{get:function(){return this.dropdownListModelValue},set:function(e){this.dropdownListModelValue=e,this.updateElementCss()},enumerable:!1,configurable:!0}),t.prototype.updateCssClasses=function(t,n){if(e.prototype.updateCssClasses.call(this,t,n),this.dropdownListModel){var r={};Object(d.mergeValues)(n.list,r),Object(d.mergeValues)(t.list,r),t.list=r}},t.prototype.calcCssClasses=function(t){var n=e.prototype.calcCssClasses.call(this,t);return this.dropdownListModel&&this.dropdownListModel.updateCssClasses(n.popup,n.list),n},t.prototype.setSurveyImpl=function(t,n){var r=this;e.prototype.setSurveyImpl.call(this,t,n),this.survey&&(this.updateColors(this.survey.themeVariables),this.survey.onThemeApplied.add((function(e,t){r.colorsCalculated=!1,r.updateColors(t.theme.cssVariables),r.createRenderedRateItems()})))},t.prototype.dispose=function(){e.prototype.dispose.call(this),this.dropdownListModelValue&&this.dropdownListModelValue.dispose()},t.colorsCalculated=!1,f([Object(s.property)({defaultValue:!1})],t.prototype,"inputHasValue",void 0),f([Object(s.property)({defaultValue:!0})],t.prototype,"autoGenerate",void 0),f([Object(s.property)({defaultValue:5})],t.prototype,"rateCount",void 0),f([Object(s.propertyArray)()],t.prototype,"renderedRateItems",void 0),f([Object(s.property)({defaultValue:!1})],t.prototype,"hasMinRateDescription",void 0),f([Object(s.property)({defaultValue:!1})],t.prototype,"hasMaxRateDescription",void 0),f([Object(s.property)({defaultValue:!1})],t.prototype,"displayRateDescriptionsAsExtremeItems",void 0),f([Object(s.property)({defaultValue:"auto",onSet:function(e,t){t.isDesignMode||(t.renderAs="dropdown"===e?"dropdown":"default")}})],t.prototype,"displayMode",void 0),f([Object(s.property)({defaultValue:"labels"})],t.prototype,"rateType",void 0),f([Object(s.property)({defaultValue:"monochrome"})],t.prototype,"scaleColorMode",void 0),f([Object(s.property)({defaultValue:"scale"})],t.prototype,"rateColorMode",void 0),t}(i.Question);s.Serializer.addClass("rating",[{name:"showCommentArea:switch",layout:"row",visible:!0,category:"general"},{name:"rateType",alternativeName:"rateDisplayMode",default:"labels",category:"rateValues",choices:["labels","stars","smileys"],visibleIndex:0},{name:"scaleColorMode",category:"rateValues",default:"monochrome",choices:["monochrome","colored"],visibleIf:function(e){return"smileys"==e.rateDisplayMode},visibleIndex:1},{name:"rateColorMode",category:"rateValues",default:"scale",choices:["default","scale"],visibleIf:function(e){return"smileys"==e.rateDisplayMode&&"monochrome"==e.scaleColorMode},visibleIndex:2},{name:"autoGenerate",category:"rateValues",default:!0,choices:[!0,!1],visibleIndex:4},{name:"rateCount:number",default:5,category:"rateValues",visibleIndex:3,onSettingValue:function(e,t){return t<2?2:t>l.settings.ratingMaximumRateValueCount&&t>e.rateValues.length?l.settings.ratingMaximumRateValueCount:t>10&&"smileys"==e.rateDisplayMode?10:t}},{name:"rateValues:itemvalue[]",baseValue:function(){return u.surveyLocalization.getString("choices_Item")},category:"rateValues",visibleIf:function(e){return!e.autoGenerate},visibleIndex:5},{name:"rateMin:number",default:1,onSettingValue:function(e,t){return t>e.rateMax-e.rateStep?e.rateMax-e.rateStep:t},visibleIf:function(e){return!!e.autoGenerate},visibleIndex:6},{name:"rateMax:number",default:5,onSettingValue:function(e,t){return t<e.rateMin+e.rateStep?e.rateMin+e.rateStep:t},visibleIf:function(e){return!!e.autoGenerate},visibleIndex:7},{name:"rateStep:number",default:1,minValue:.1,onSettingValue:function(e,t){return t<=0&&(t=1),t>e.rateMax-e.rateMin&&(t=e.rateMax-e.rateMin),t},visibleIf:function(e){return!!e.autoGenerate},visibleIndex:8},{name:"minRateDescription",alternativeName:"mininumRateDescription",serializationProperty:"locMinRateDescription",visibleIndex:17},{name:"maxRateDescription",alternativeName:"maximumRateDescription",serializationProperty:"locMaxRateDescription",visibleIndex:18},{name:"displayRateDescriptionsAsExtremeItems:boolean",default:!1,visibleIndex:19,visibleIf:function(e){return"labels"==e.rateType}},{name:"displayMode",default:"auto",choices:["auto","buttons","dropdown"],visibleIndex:20}],(function(){return new m("")}),"question"),a.QuestionFactory.Instance.registerQuestion("rating",(function(e){return new m(e)}))},"./src/question_signaturepad.ts":function(e,t,n){"use strict";n.r(t),n.d(t,"QuestionSignaturePadModel",(function(){return p}));var r,o=n("./src/jsonobject.ts"),i=n("./src/questionfactory.ts"),s=n("./src/question.ts"),a=n("./node_modules/signature_pad/dist/signature_pad.js"),l=n("./src/utils/cssClassBuilder.ts"),u=n("./src/console-warnings.ts"),c=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),p=function(e){function t(t){return e.call(this,t)||this}return c(t,e),t.prototype.getPenColorFromTheme=function(){var e=this.survey;return!!e&&!!e.themeVariables&&e.themeVariables["--sjs-primary-backcolor"]},t.prototype.updateColors=function(e){var t=this.getPenColorFromTheme(),n=this.getPropertyByName("penColor");e.penColor=this.penColor||t||n.defaultValue||"#1ab394";var r=this.getPropertyByName("backgroundColor"),o=t?"transparent":void 0;e.backgroundColor=this.backgroundColor||o||r.defaultValue||"#ffffff"},t.prototype.getCssRoot=function(t){return(new l.CssClassBuilder).append(e.prototype.getCssRoot.call(this,t)).append(t.small,"300"===this.signatureWidth.toString()).toString()},t.prototype.updateValue=function(){if(this.signaturePad){var e="jpeg"===this.dataFormat?"image/jpeg":"svg"===this.dataFormat?"image/svg+xml":"",t=this.signaturePad.toDataURL(e);this.value=t}},t.prototype.getType=function(){return"signaturepad"},t.prototype.afterRenderQuestionElement=function(t){t&&this.initSignaturePad(t),e.prototype.afterRenderQuestionElement.call(this,t)},t.prototype.beforeDestroyQuestionElement=function(e){e&&this.destroySignaturePad(e)},t.prototype.setSurveyImpl=function(t,n){var r=this;e.prototype.setSurveyImpl.call(this,t,n),this.survey&&this.survey.onThemeApplied.add((function(e,t){r.signaturePad&&r.updateColors(r.signaturePad)}))},t.prototype.initSignaturePad=function(e){var t=this,n=e.getElementsByTagName("canvas")[0],r=new a.default(n,{backgroundColor:"#ffffff"});this.isInputReadOnly&&r.off(),this.readOnlyChangedCallback=function(){t.isInputReadOnly?r.off():r.on()},this.updateColors(r),r.addEventListener("beginStroke",(function(){t.isDrawingValue=!0,n.focus()}),{once:!1}),r.addEventListener("endStroke",(function(){t.isDrawingValue=!1,t.updateValue()}),{once:!1});var o=function(){var e=t.value;n.width=t.signatureWidth||300,n.height=t.signatureHeight||200,function(e){var t=e.getContext("2d"),n=(window.devicePixelRatio||1)/(t.webkitBackingStorePixelRatio||t.mozBackingStorePixelRatio||t.msBackingStorePixelRatio||t.oBackingStorePixelRatio||t.backingStorePixelRatio||1),r=e.width,o=e.height;e.width=r*n,e.height=o*n,e.style.width=r+"px",e.style.height=o+"px",t.scale(n,n)}(n),e?r.fromDataURL(e):r.clear()};o(),this.readOnlyChangedCallback(),this.signaturePad=r;var i=function(e,t){"signatureWidth"!==t.name&&"signatureHeight"!==t.name&&"value"!==t.name||o()};this.onPropertyChanged.add(i),this.signaturePad.propertyChangedHandler=i},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",d(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,"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(){return!this.isInputReadOnly&&this.allowClear},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"penColor",{get:function(){return this.getPropertyValue("penColor")},set:function(e){this.setPropertyValue("penColor",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"backgroundColor",{get:function(){return this.getPropertyValue("backgroundColor")},set:function(e){this.setPropertyValue("backgroundColor",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"clearButtonCaption",{get:function(){return this.getLocalizationString("clearCaption")},enumerable:!1,configurable:!0}),t.prototype.needShowPlaceholder=function(){return!this.isDrawingValue&&this.isEmpty()},Object.defineProperty(t.prototype,"placeHolderText",{get:function(){return this.getLocalizationString("signaturePlaceHolder")},enumerable:!1,configurable:!0}),t.prototype.endLoadingFromJson=function(){e.prototype.endLoadingFromJson.call(this),300===this.signatureWidth&&this.width&&"number"==typeof this.width&&this.width&&(u.ConsoleWarnings.warn("Use signatureWidth property to set width for the signature pad"),this.signatureWidth=this.width,this.width=void 0),200===this.signatureHeight&&this.height&&(u.ConsoleWarnings.warn("Use signatureHeight property to set width for the signature pad"),this.signatureHeight=this.height,this.height=void 0)},function(e,t,n,r){var o,i=arguments.length,s=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,r);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(i<3?o(s):i>3?o(t,n,s):o(t,n))||s);i>3&&s&&Object.defineProperty(t,n,s)}([Object(o.property)({defaultValue:!1})],t.prototype,"isDrawingValue",void 0),t}(s.Question);function d(e){return e||(e="png"),"jpeg"!==(e=e.replace("image/","").replace("+xml",""))&&"svg"!==e&&(e="png"),e}o.Serializer.addClass("signaturepad",[{name:"signatureWidth:number",category:"general",default:300},{name:"signatureHeight:number",category:"general",default:200},{name:"height:number",category:"general",visible:!1},{name:"allowClear:boolean",category:"general",default:!0},{name:"penColor:color",category:"general"},{name:"backgroundColor:color",category:"general"},{name:"dataFormat",category:"general",default:"png",choices:[{value:"png",text:"PNG"},{value:"image/jpeg",text:"JPEG"},{value:"image/svg+xml",text:"SVG"}],onSettingValue:function(e,t){return d(t)}},{name:"defaultValue",visible:!1},{name:"correctAnswer",visible:!1}],(function(){return new p("")}),"question"),i.QuestionFactory.Instance.registerQuestion("signaturepad",(function(e){return new p(e)}))},"./src/question_tagbox.ts":function(e,t,n){"use strict";n.r(t),n.d(t,"QuestionTagboxModel",(function(){return d}));var r,o=n("./src/jsonobject.ts"),i=n("./src/questionfactory.ts"),s=n("./src/utils/cssClassBuilder.ts"),a=n("./src/question_checkbox.ts"),l=n("./src/dropdownMultiSelectListModel.ts"),u=n("./src/settings.ts"),c=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),p=function(e,t,n,r){var o,i=arguments.length,s=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,r);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(i<3?o(s):i>3?o(t,n,s):o(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},d=function(e){function t(t){var n=e.call(this,t)||this;return n.itemDisplayNameMap={},n.onOpened=n.addEvent(),n.createLocalizableString("placeholder",n,!1,!0),n.createLocalizableString("clearCaption",n,!1,!0),n}return c(t,e),t.prototype.getDefaultItemComponent=function(){return""},Object.defineProperty(t.prototype,"readOnlyText",{get:function(){return this.displayValue||this.placeholder},enumerable:!1,configurable:!0}),t.prototype.onSurveyLoad=function(){e.prototype.onSurveyLoad.call(this),this.dropdownListModel||(this.dropdownListModel=new l.DropdownMultiSelectListModel(this))},Object.defineProperty(t.prototype,"placeholder",{get:function(){return this.getLocalizableStringText("placeholder")},set:function(e){this.setLocalizableStringText("placeholder",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locPlaceholder",{get:function(){return this.getLocalizableString("placeholder")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"clearCaption",{get:function(){return this.getLocalizableStringText("clearCaption")},set:function(e){this.setLocalizableStringText("clearCaption",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locClearCaption",{get:function(){return this.getLocalizableString("clearCaption")},enumerable:!1,configurable:!0}),t.prototype.getType=function(){return"tagbox"},Object.defineProperty(t.prototype,"ariaRole",{get:function(){return"combobox"},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"popupModel",{get:function(){var e;return null===(e=this.dropdownListModel)||void 0===e?void 0:e.popupModel},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"ariaExpanded",{get:function(){var e=this.popupModel;return e&&e.isVisible?"true":"false"},enumerable:!1,configurable:!0}),t.prototype.getControlClass=function(){return(new s.CssClassBuilder).append(this.cssClasses.control).append(this.cssClasses.controlEmpty,this.isEmpty()).append(this.cssClasses.onError,this.errors.length>0).append(this.cssClasses.controlDisabled,this.isReadOnly).toString()},t.prototype.onOpenedCallBack=function(){this.onOpened.fire(this,{question:this,choices:this.choices})},t.prototype.hasUnknownValue=function(t,n,r,o){return!this.choicesLazyLoadEnabled&&e.prototype.hasUnknownValue.call(this,t,n,r,o)},t.prototype.needConvertRenderedOtherToDataValue=function(){var t,n=null===(t=this.otherValue)||void 0===t?void 0:t.trim();return!!n&&e.prototype.hasUnknownValue.call(this,n,!0,!1)},t.prototype.onVisibleChoicesChanged=function(){e.prototype.onVisibleChoicesChanged.call(this),this.popupModel&&this.dropdownListModel.updateItems()},t.prototype.getItemIfChoicesNotContainThisValue=function(t,n){var r;return this.choicesLazyLoadEnabled&&!(null===(r=this.dropdownListModel)||void 0===r?void 0:r.isAllDataLoaded)?this.createItemValue(t,n):e.prototype.getItemIfChoicesNotContainThisValue.call(this,t,n)},t.prototype.validateItemValues=function(e){var t=this;this.updateItemDisplayNameMap();var n=this.renderedValue;if(e.length&&e.length===n.length)return e;var r=this.selectedItemValues;if(!e.length&&r&&r.length)return this.defaultSelectedItemValues=[].concat(r),r;var o=e.map((function(e){return e.value}));return n.filter((function(e){return-1===o.indexOf(e)})).forEach((function(n){var r=t.getItemIfChoicesNotContainThisValue(n,t.itemDisplayNameMap[n]);r&&e.push(r)})),e.sort((function(e,t){return n.indexOf(e.value)-n.indexOf(t.value)})),e},t.prototype.updateItemDisplayNameMap=function(){var e=this,t=function(t){e.itemDisplayNameMap[t.value]=t.text};(this.defaultSelectedItemValues||[]).forEach(t),(this.selectedItemValues||[]).forEach(t),this.visibleChoices.forEach(t)},t.prototype.getFirstInputElementId=function(){return this.inputId+(this.searchEnabled?"_0":"")},t.prototype.getInputId=function(){return this.inputId+"_0"},t.prototype.dispose=function(){e.prototype.dispose.call(this),this.dropdownListModelValue&&this.dropdownListModelValue.dispose()},t.prototype.clearValue=function(){e.prototype.clearValue.call(this),this.dropdownListModel.clear()},p([Object(o.property)()],t.prototype,"allowClear",void 0),p([Object(o.property)({defaultValue:!0,onSet:function(e,t){t.dropdownListModel&&t.dropdownListModel.setSearchEnabled(e)}})],t.prototype,"searchEnabled",void 0),p([Object(o.property)({onSet:function(e,t){t.dropdownListModel&&t.dropdownListModel.setHideSelectedItems(e)}})],t.prototype,"hideSelectedItems",void 0),p([Object(o.property)()],t.prototype,"choicesLazyLoadEnabled",void 0),p([Object(o.property)({defaultValue:25})],t.prototype,"choicesLazyLoadPageSize",void 0),p([Object(o.property)({getDefaultValue:function(){return u.settings.tagboxCloseOnSelect}})],t.prototype,"closeOnSelect",void 0),t}(a.QuestionCheckboxModel);o.Serializer.addClass("tagbox",[{name:"placeholder",serializationProperty:"locPlaceholder"},{name:"allowClear:boolean",default:!0},{name:"searchEnabled: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:""}],(function(){return new d("")}),"checkbox"),i.QuestionFactory.Instance.registerQuestion("tagbox",(function(e){var t=new d(e);return t.choices=i.QuestionFactory.DefaultChoices,t}))},"./src/question_text.ts":function(e,t,n){"use strict";n.r(t),n.d(t,"QuestionTextModel",(function(){return h}));var r,o=n("./src/questionfactory.ts"),i=n("./src/jsonobject.ts"),s=n("./src/localizablestring.ts"),a=n("./src/helpers.ts"),l=n("./src/validator.ts"),u=n("./src/error.ts"),c=n("./src/settings.ts"),p=n("./src/question_textbase.ts"),d=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),h=function(e){function t(t){var n=e.call(this,t)||this;return n._isWaitingForEnter=!1,n.onCompositionUpdate=function(e){n.isInputTextUpdate&&setTimeout((function(){n.updateValueOnEvent(e)}),1),n.updateRemainingCharacterCounter(e.target.value)},n.onKeyUp=function(e){n.isInputTextUpdate?n._isWaitingForEnter&&13!==e.keyCode||(n.updateValueOnEvent(e),n._isWaitingForEnter=!1):13===e.keyCode&&n.updateValueOnEvent(e),n.updateRemainingCharacterCounter(e.target.value)},n.onKeyDown=function(e){n.checkForUndo(e),n.isInputTextUpdate&&(n._isWaitingForEnter=229===e.keyCode),13===e.keyCode&&n.survey.questionEditFinishCallback(n,e)},n.onChange=function(e){e.target===c.settings.environment.root.activeElement?n.isInputTextUpdate&&n.updateValueOnEvent(e):n.updateValueOnEvent(e),n.updateRemainingCharacterCounter(e.target.value)},n.onBlur=function(e){n.updateValueOnEvent(e),n.updateRemainingCharacterCounter(e.target.value)},n.onFocus=function(e){n.updateRemainingCharacterCounter(e.target.value)},n.createLocalizableString("minErrorText",n,!0,"minError"),n.createLocalizableString("maxErrorText",n,!0,"maxError"),n.locDataListValue=new s.LocalizableStrings(n),n.locDataListValue.onValueChanged=function(e,t){n.propertyValueChanged("dataList",e,t)},n.registerPropertyChangedHandlers(["min","max","inputType","minValueExpression","maxValueExpression"],(function(){n.setRenderedMinMax()})),n.registerPropertyChangedHandlers(["inputType","size"],(function(){n.updateInputSize(),n.calcRenderedPlaceholder()})),n}return d(t,e),t.prototype.isTextValue=function(){return["text","number","password"].indexOf(this.inputType)>-1},t.prototype.getType=function(){return"text"},t.prototype.onSurveyLoad=function(){e.prototype.onSurveyLoad.call(this),this.setRenderedMinMax(),this.updateInputSize()},Object.defineProperty(t.prototype,"inputType",{get:function(){return this.getPropertyValue("inputType")},set:function(e){"datetime_local"!==(e=e.toLowerCase())&&"datetime"!==e||(e="datetime-local"),this.setPropertyValue("inputType",e.toLowerCase()),this.isLoadingFromJson||(this.min=void 0,this.max=void 0,this.step=void 0)},enumerable:!1,configurable:!0}),t.prototype.runCondition=function(t,n){e.prototype.runCondition.call(this,t,n),(this.minValueExpression||this.maxValueExpression)&&this.setRenderedMinMax(t,n)},t.prototype.isLayoutTypeSupported=function(e){return!0},Object.defineProperty(t.prototype,"size",{get:function(){return this.getPropertyValue("size")},set:function(e){this.setPropertyValue("size",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isTextInput",{get:function(){return["text","search","tel","url","email","password"].indexOf(this.inputType)>-1},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"inputSize",{get:function(){return this.getPropertyValue("inputSize",0)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"renderedInputSize",{get:function(){return this.getPropertyValue("inputSize")||null},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"inputWidth",{get:function(){return this.getPropertyValue("inputWidth")},enumerable:!1,configurable:!0}),t.prototype.updateInputSize=function(){var e=this.isTextInput&&this.size>0?this.size:0;this.isTextInput&&e<1&&this.parent&&this.parent.itemSize&&(e=this.parent.itemSize),this.setPropertyValue("inputSize",e),this.setPropertyValue("inputWidth",e>0?"auto":"")},Object.defineProperty(t.prototype,"autocomplete",{get:function(){return this.getPropertyValue("autocomplete",null)},set:function(e){this.setPropertyValue("autocomplete",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"min",{get:function(){return this.getPropertyValue("min")},set:function(e){this.isValueExpression(e)?this.minValueExpression=e.substring(1):this.setPropertyValue("min",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"max",{get:function(){return this.getPropertyValue("max")},set:function(e){this.isValueExpression(e)?this.maxValueExpression=e.substring(1):this.setPropertyValue("max",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"minValueExpression",{get:function(){return this.getPropertyValue("minValueExpression","")},set:function(e){this.setPropertyValue("minValueExpression",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"maxValueExpression",{get:function(){return this.getPropertyValue("maxValueExpression","")},set:function(e){this.setPropertyValue("maxValueExpression",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"renderedMin",{get:function(){return this.getPropertyValue("renderedMin")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"renderedMax",{get:function(){return this.getPropertyValue("renderedMax")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"minErrorText",{get:function(){return this.getLocalizableStringText("minErrorText")},set:function(e){this.setLocalizableStringText("minErrorText",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locMinErrorText",{get:function(){return this.getLocalizableString("minErrorText")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"maxErrorText",{get:function(){return this.getLocalizableStringText("maxErrorText")},set:function(e){this.setLocalizableStringText("maxErrorText",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locMaxErrorText",{get:function(){return this.getLocalizableString("maxErrorText")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isMinMaxType",{get:function(){return g(this)},enumerable:!1,configurable:!0}),t.prototype.onCheckForErrors=function(t,n){var r=this;if(e.prototype.onCheckForErrors.call(this,t,n),!n){if(this.isValueLessMin){var o=new u.CustomError(this.getMinMaxErrorText(this.minErrorText,this.getCalculatedMinMax(this.renderedMin)),this);o.onUpdateErrorTextCallback=function(e){e.text=r.getMinMaxErrorText(r.minErrorText,r.getCalculatedMinMax(r.renderedMin))},t.push(o)}if(this.isValueGreaterMax){var i=new u.CustomError(this.getMinMaxErrorText(this.maxErrorText,this.getCalculatedMinMax(this.renderedMax)),this);i.onUpdateErrorTextCallback=function(e){e.text=r.getMinMaxErrorText(r.maxErrorText,r.getCalculatedMinMax(r.renderedMax))},t.push(i)}var s=this.getValidatorTitle(),a=new l.EmailValidator;if("email"===this.inputType&&!this.validators.some((function(e){return"emailvalidator"===e.getType()}))){var c=a.validate(this.value,s);c&&c.error&&t.push(c.error)}}},t.prototype.canSetValueToSurvey=function(){if(!this.isMinMaxType)return!0;var e=!this.isValueLessMin&&!this.isValueGreaterMax;return"number"===this.inputType&&this.survey&&(this.survey.isValidateOnValueChanging||this.survey.isValidateOnValueChanged)&&this.hasErrors(),e},t.prototype.convertFuncValuetoQuestionValue=function(e){return a.Helpers.convertValToQuestionVal(e,this.inputType)},t.prototype.getMinMaxErrorText=function(e,t){if(a.Helpers.isValueEmpty(t))return e;var n=t.toString();return"date"===this.inputType&&t.toDateString&&(n=t.toDateString()),e.replace("{0}",n)},Object.defineProperty(t.prototype,"isValueLessMin",{get:function(){return!this.isValueEmpty(this.renderedMin)&&!this.isEmpty()&&this.getCalculatedMinMax(this.value)<this.getCalculatedMinMax(this.renderedMin)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isValueGreaterMax",{get:function(){return!this.isValueEmpty(this.renderedMax)&&!this.isEmpty()&&this.getCalculatedMinMax(this.value)>this.getCalculatedMinMax(this.renderedMax)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isDateInputType",{get:function(){return"date"===this.inputType||"datetime-local"===this.inputType},enumerable:!1,configurable:!0}),t.prototype.getCalculatedMinMax=function(e){return this.isValueEmpty(e)?e:this.isDateInputType?new Date(e):e},t.prototype.setRenderedMinMax=function(e,t){var n=this;void 0===e&&(e=null),void 0===t&&(t=null),this.minValueRunner=this.getDefaultRunner(this.minValueRunner,this.minValueExpression),this.setValueAndRunExpression(this.minValueRunner,this.min,(function(e){!e&&n.isDateInputType&&c.settings.minDate&&(e=c.settings.minDate),n.setPropertyValue("renderedMin",e)}),e,t),this.maxValueRunner=this.getDefaultRunner(this.maxValueRunner,this.maxValueExpression),this.setValueAndRunExpression(this.maxValueRunner,this.max,(function(e){!e&&n.isDateInputType&&(e=c.settings.maxDate?c.settings.maxDate:"2999-12-31"),n.setPropertyValue("renderedMax",e)}),e,t)},Object.defineProperty(t.prototype,"step",{get:function(){return this.getPropertyValue("step")},set:function(e){this.setPropertyValue("step",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"renderedStep",{get:function(){return this.isValueEmpty(this.step)?"number"!==this.inputType?void 0:"any":this.step},enumerable:!1,configurable:!0}),t.prototype.supportGoNextPageAutomatic=function(){return!this.isSurveyInputTextUpdate&&["date","datetime-local"].indexOf(this.inputType)<0},t.prototype.supportGoNextPageError=function(){return["date","datetime-local"].indexOf(this.inputType)<0},Object.defineProperty(t.prototype,"dataList",{get:function(){return this.locDataList.value},set:function(e){this.locDataList.value=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locDataList",{get:function(){return this.locDataListValue},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"dataListId",{get:function(){return this.locDataList.hasValue()?this.id+"_datalist":void 0},enumerable:!1,configurable:!0}),t.prototype.canRunValidators=function(e){return this.errors.length>0||!e||this.supportGoNextPageError()},t.prototype.setNewValue=function(t){t=this.correctValueType(t),e.prototype.setNewValue.call(this,t)},t.prototype.correctValueType=function(e){return!e||"number"!=this.inputType&&"range"!=this.inputType?e:a.Helpers.isNumber(e)?a.Helpers.getNumber(e):""},t.prototype.hasPlaceHolder=function(){return!this.isReadOnly&&"range"!==this.inputType},t.prototype.isReadOnlyRenderDiv=function(){return this.isReadOnly&&"div"===c.settings.readOnly.textRenderMode},Object.defineProperty(t.prototype,"inputStyle",{get:function(){var e={};return e.width=this.inputWidth,e},enumerable:!1,configurable:!0}),t.prototype.updateValueOnEvent=function(e){var t=e.target.value;this.isTwoValueEquals(this.value,t)||(this.value=t)},t}(p.QuestionTextBase),f=["number","range","date","datetime-local","month","time","week"];function g(e){var t=e?e.inputType:"";return!!t&&f.indexOf(t)>-1}function m(e,t){var n=e.split(t);return 2!==n.length?-1:a.Helpers.isNumber(n[0])&&a.Helpers.isNumber(n[1])?60*parseFloat(n[0])+parseFloat(n[1]):-1}function y(e,t,n,r){var o=r?n:t;if(!g(e))return o;if(a.Helpers.isValueEmpty(t)||a.Helpers.isValueEmpty(n))return o;if(0===e.inputType.indexOf("date")||"month"===e.inputType){var i="month"===e.inputType,s=new Date(i?t+"-1":t),l=new Date(i?n+"-1":n);if(!s||!l)return o;if(s>l)return r?t:n}if("week"===e.inputType||"time"===e.inputType)return function(e,t,n){var r=m(e,n),o=m(t,n);return!(r<0||o<0)&&r>o}(t,n,"week"===e.inputType?"-W":":")?r?t:n:o;if("number"===e.inputType){if(!a.Helpers.isNumber(t)||!a.Helpers.isNumber(n))return o;if(a.Helpers.getNumber(t)>a.Helpers.getNumber(n))return r?t:n}return"string"==typeof t||"string"==typeof n?o:t>n?r?t:n:o}function v(e,t){e&&e.inputType&&(t.inputType="range"!==e.inputType?e.inputType:"number",t.textUpdateMode="onBlur")}i.Serializer.addClass("text",[{name:"inputType",default:"text",choices:c.settings.questions.inputTypes},{name:"size:number",minValue:0,dependsOn:"inputType",visibleIf:function(e){return!!e&&e.isTextInput}},{name:"textUpdateMode",default:"default",choices:["default","onBlur","onTyping"],dependsOn:"inputType",visibleIf:function(e){return!!e&&e.isTextInput}},{name:"autocomplete",alternativeName:"autoComplete",choices:c.settings.questions.dataList},{name:"min",dependsOn:"inputType",visibleIf:function(e){return g(e)},onPropertyEditorUpdate:function(e,t){v(e,t)},onSettingValue:function(e,t){return y(e,t,e.max,!1)}},{name:"max",dependsOn:"inputType",nextToProperty:"*min",visibleIf:function(e){return g(e)},onSettingValue:function(e,t){return y(e,e.min,t,!0)},onPropertyEditorUpdate:function(e,t){v(e,t)}},{name:"minValueExpression:expression",category:"logic",dependsOn:"inputType",visibleIf:function(e){return g(e)}},{name:"maxValueExpression:expression",category:"logic",dependsOn:"inputType",visibleIf:function(e){return g(e)}},{name:"minErrorText",serializationProperty:"locMinErrorText",dependsOn:"inputType",visibleIf:function(e){return g(e)}},{name:"maxErrorText",serializationProperty:"locMaxErrorText",dependsOn:"inputType",visibleIf:function(e){return g(e)}},{name:"step:number",dependsOn:"inputType",visibleIf:function(e){return!!e&&("number"===e.inputType||"range"===e.inputType)}},{name:"maxLength:number",default:-1,dependsOn:"inputType",visibleIf:function(e){return!!e&&e.isTextInput}},{name:"placeholder",alternativeName:"placeHolder",serializationProperty:"locPlaceholder",dependsOn:"inputType",visibleIf:function(e){return!!e&&e.isTextInput}},{name:"dataList:string[]",serializationProperty:"locDataList",dependsOn:"inputType",visibleIf:function(e){return!!e&&"text"===e.inputType}}],(function(){return new h("")}),"textbase"),o.QuestionFactory.Instance.registerQuestion("text",(function(e){return new h(e)}))},"./src/question_textbase.ts":function(e,t,n){"use strict";n.r(t),n.d(t,"CharacterCounter",(function(){return p})),n.d(t,"QuestionTextBase",(function(){return d}));var r,o=n("./src/question.ts"),i=n("./src/jsonobject.ts"),s=n("./src/helpers.ts"),a=n("./src/utils/cssClassBuilder.ts"),l=n("./src/base.ts"),u=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),c=function(e,t,n,r){var o,i=arguments.length,s=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,r);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(i<3?o(s):i>3?o(t,n,s):o(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},p=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return u(t,e),t.prototype.updateRemainingCharacterCounter=function(e,t){this.remainingCharacterCounter=s.Helpers.getRemainingCharacterCounterText(e,t)},c([Object(i.property)()],t.prototype,"remainingCharacterCounter",void 0),t}(l.Base),d=function(e){function t(t){var n=e.call(this,t)||this;return n.characterCounter=new p,n.disableNativeUndoRedo=!1,n}return u(t,e),t.prototype.isTextValue=function(){return!0},Object.defineProperty(t.prototype,"maxLength",{get:function(){return this.getPropertyValue("maxLength")},set:function(e){this.setPropertyValue("maxLength",e),this.updateRemainingCharacterCounter(this.value)},enumerable:!1,configurable:!0}),t.prototype.getMaxLength=function(){return s.Helpers.getMaxLength(this.maxLength,this.survey?this.survey.maxTextLength:-1)},t.prototype.updateRemainingCharacterCounter=function(e){this.characterCounter.updateRemainingCharacterCounter(e,this.getMaxLength())},Object.defineProperty(t.prototype,"placeHolder",{get:function(){return this.placeholder},set:function(e){this.placeholder=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locPlaceHolder",{get:function(){return this.locPlaceholder},enumerable:!1,configurable:!0}),t.prototype.getType=function(){return"textbase"},t.prototype.isEmpty=function(){return e.prototype.isEmpty.call(this)||""===this.value},Object.defineProperty(t.prototype,"textUpdateMode",{get:function(){return this.getPropertyValue("textUpdateMode")},set:function(e){this.setPropertyValue("textUpdateMode",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isSurveyInputTextUpdate",{get:function(){return"default"==this.textUpdateMode?!!this.survey&&this.survey.isUpdateValueTextOnTyping:"onTyping"==this.textUpdateMode},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"renderedPlaceholder",{get:function(){return this.getPropertyValue("renderedPlaceholder")},enumerable:!1,configurable:!0}),t.prototype.setRenderedPlaceholder=function(e){this.setPropertyValue("renderedPlaceholder",e)},t.prototype.onReadOnlyChanged=function(){e.prototype.onReadOnlyChanged.call(this),this.calcRenderedPlaceholder()},t.prototype.onSurveyLoad=function(){this.calcRenderedPlaceholder(),e.prototype.onSurveyLoad.call(this)},t.prototype.localeChanged=function(){e.prototype.localeChanged.call(this),this.calcRenderedPlaceholder()},t.prototype.setSurveyImpl=function(t,n){e.prototype.setSurveyImpl.call(this,t,n),this.calcRenderedPlaceholder()},t.prototype.calcRenderedPlaceholder=function(){var e=this.placeHolder;e&&!this.hasPlaceHolder()&&(e=void 0),this.setRenderedPlaceholder(e)},t.prototype.hasPlaceHolder=function(){return!this.isReadOnly},t.prototype.setNewValue=function(t){e.prototype.setNewValue.call(this,t),this.updateRemainingCharacterCounter(t)},t.prototype.setQuestionValue=function(t,n){void 0===n&&(n=!0),e.prototype.setQuestionValue.call(this,t,n),this.updateRemainingCharacterCounter(t)},t.prototype.checkForUndo=function(e){this.disableNativeUndoRedo&&this.isInputTextUpdate&&(e.ctrlKey||e.metaKey)&&-1!==[89,90].indexOf(e.keyCode)&&e.preventDefault()},t.prototype.getControlClass=function(){return(new a.CssClassBuilder).append(this.cssClasses.root).append(this.cssClasses.onError,this.errors.length>0).append(this.cssClasses.controlDisabled,this.isReadOnly).toString()},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}),Object.defineProperty(t.prototype,"ariaInvalid",{get:function(){return null},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"ariaLabel",{get:function(){return null},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"ariaLabelledBy",{get:function(){return null},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"ariaDescribedBy",{get:function(){return null},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"a11y_input_ariaRole",{get:function(){return"textbox"},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.errors.length>0?"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.errors.length>0?this.id+"_errors":null},enumerable:!1,configurable:!0}),c([Object(i.property)({localizable:!0,onSet:function(e,t){return t.calcRenderedPlaceholder()}})],t.prototype,"placeholder",void 0),t}(o.Question);i.Serializer.addClass("textbase",[],(function(){return new d("")}),"question")},"./src/questionfactory.ts":function(e,t,n){"use strict";n.r(t),n.d(t,"QuestionFactory",(function(){return i})),n.d(t,"ElementFactory",(function(){return s}));var r=n("./src/surveyStrings.ts"),o=n("./src/jsonobject.ts"),i=function(){function e(){}return Object.defineProperty(e,"DefaultChoices",{get:function(){return[r.surveyLocalization.getString("choices_Item")+"1",r.surveyLocalization.getString("choices_Item")+"2",r.surveyLocalization.getString("choices_Item")+"3"]},enumerable:!1,configurable:!0}),Object.defineProperty(e,"DefaultColums",{get:function(){var e=r.surveyLocalization.getString("matrix_column")+" ";return[e+"1",e+"2",e+"3"]},enumerable:!1,configurable:!0}),Object.defineProperty(e,"DefaultRows",{get:function(){var e=r.surveyLocalization.getString("matrix_row")+" ";return[e+"1",e+"2"]},enumerable:!1,configurable:!0}),Object.defineProperty(e,"DefaultMutlipleTextItems",{get:function(){var e=r.surveyLocalization.getString("multipletext_itemname");return[e+"1",e+"2"]},enumerable:!1,configurable:!0}),e.prototype.registerQuestion=function(e,t){s.Instance.registerElement(e,t)},e.prototype.registerCustomQuestion=function(e){s.Instance.registerCustomQuestion(e)},e.prototype.unregisterElement=function(e,t){void 0===t&&(t=!1),s.Instance.unregisterElement(e,t)},e.prototype.clear=function(){s.Instance.clear()},e.prototype.getAllTypes=function(){return s.Instance.getAllTypes()},e.prototype.createQuestion=function(e,t){return s.Instance.createElement(e,t)},e.Instance=new e,e}(),s=function(){function e(){var e=this;this.creatorHash={},this.registerCustomQuestion=function(t){e.registerElement(t,(function(e){var n=o.Serializer.createClass(t);return n&&(n.name=e),n}))}}return e.prototype.registerElement=function(e,t){this.creatorHash[e]=t},e.prototype.clear=function(){this.creatorHash={}},e.prototype.unregisterElement=function(e,t){void 0===t&&(t=!1),delete this.creatorHash[e],t&&o.Serializer.removeClass(e)},e.prototype.getAllTypes=function(){var e=new Array;for(var t in this.creatorHash)e.push(t);return e.sort()},e.prototype.createElement=function(e,t){var n=this.creatorHash[e];return n?n(t):null},e.Instance=new e,e}()},"./src/questionnonvalue.ts":function(e,t,n){"use strict";n.r(t),n.d(t,"QuestionNonValue",(function(){return a}));var r,o=n("./src/question.ts"),i=n("./src/jsonobject.ts"),s=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),a=function(e){function t(t){return e.call(this,t)||this}return s(t,e),t.prototype.getType=function(){return"nonvalue"},Object.defineProperty(t.prototype,"hasInput",{get:function(){return!1},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hasTitle",{get:function(){return!1},enumerable:!1,configurable:!0}),t.prototype.getTitleLocation=function(){return""},Object.defineProperty(t.prototype,"hasComment",{get:function(){return!1},enumerable:!1,configurable:!0}),t.prototype.hasErrors=function(e,t){return void 0===e&&(e=!0),void 0===t&&(t=null),!1},t.prototype.getAllErrors=function(){return[]},t.prototype.supportGoNextPageAutomatic=function(){return!1},t.prototype.addConditionObjectsByContext=function(e,t){},t.prototype.getConditionJson=function(e,t){return void 0===e&&(e=null),void 0===t&&(t=null),null},t}(o.Question);i.Serializer.addClass("nonvalue",[{name:"title",visible:!1},{name:"description",visible:!1},{name:"valueName",visible:!1},{name:"enableIf",visible:!1},{name:"defaultValue",visible:!1},{name:"correctAnswer",visible:!1},{name:"clearIfInvisible",visible:!1},{name:"isRequired",visible:!1,isSerializable:!1},{name:"requiredErrorText",visible:!1},{name:"readOnly",visible:!1},{name:"requiredIf",visible:!1},{name:"validators",visible:!1},{name:"titleLocation",visible:!1},{name:"showCommentArea",visible:!1},{name:"useDisplayValuesInDynamicTexts",alternativeName:"useDisplayValuesInTitle",visible:!1}],(function(){return new a("")}),"question")},"./src/rendererFactory.ts":function(e,t,n){"use strict";n.r(t),n.d(t,"RendererFactory",(function(){return r}));var r=function(){function e(){this.renderersHash={}}return e.prototype.unregisterRenderer=function(e,t){delete this.renderersHash[e][t]},e.prototype.registerRenderer=function(e,t,n){this.renderersHash[e]||(this.renderersHash[e]={}),this.renderersHash[e][t]=n},e.prototype.getRenderer=function(e,t){return this.renderersHash[e]&&this.renderersHash[e][t]||"default"},e.prototype.getRendererByQuestion=function(e){return this.getRenderer(e.getType(),e.renderAs)},e.prototype.clear=function(){this.renderersHash={}},e.Instance=new e,e}()},"./src/settings.ts":function(e,t,n){"use strict";n.r(t),n.d(t,"settings",(function(){return o}));var r=globalThis.document,o={designMode:{showEmptyDescriptions:!0,showEmptyTitles:!0},get allowShowEmptyDescriptionInDesignMode(){return this.designMode.showEmptyDescriptions},set allowShowEmptyDescriptionInDesignMode(e){this.designMode.showEmptyDescriptions=e},get allowShowEmptyTitleInDesignMode(){return this.designMode.showEmptyTitles},set allowShowEmptyTitleInDesignMode(e){this.designMode.showEmptyTitles=e},localization:{useLocalTimeZone:!0,storeDuplicatedTranslations:!1,defaultLocaleName:"default"},get useLocalTimeZone(){return this.localization.useLocalTimeZone},set useLocalTimeZone(e){this.localization.useLocalTimeZone=e},get storeDuplicatedTranslations(){return this.localization.storeDuplicatedTranslations},set storeDuplicatedTranslations(e){this.localization.storeDuplicatedTranslations=e},get defaultLocaleName(){return this.localization.defaultLocaleName},set defaultLocaleName(e){this.localization.defaultLocaleName=e},web:{encodeUrlParams:!0,cacheLoadedChoices:!0,disableQuestionWhileLoadingChoices:!1,surveyServiceUrl:"https://api.surveyjs.io/public/v1/Survey"},get webserviceEncodeParameters(){return this.web.encodeUrlParams},set webserviceEncodeParameters(e){this.web.encodeUrlParams=e},get useCachingForChoicesRestful(){return this.web.cacheLoadedChoices},set useCachingForChoicesRestful(e){this.web.cacheLoadedChoices=e},get useCachingForChoicesRestfull(){return this.web.cacheLoadedChoices},set useCachingForChoicesRestfull(e){this.web.cacheLoadedChoices=e},get disableOnGettingChoicesFromWeb(){return this.web.disableQuestionWhileLoadingChoices},set disableOnGettingChoicesFromWeb(e){this.web.disableQuestionWhileLoadingChoices=e},get surveyServiceUrl(){return this.web.surveyServiceUrl},set surveyServiceUrl(e){this.web.surveyServiceUrl=e},triggers:{changeNavigationButtonsOnComplete:!0,executeCompleteOnValueChanged:!1,executeSkipOnValueChanged:!0},get executeCompleteTriggerOnValueChanged(){return this.triggers.executeCompleteOnValueChanged},set executeCompleteTriggerOnValueChanged(e){this.triggers.executeCompleteOnValueChanged=e},get changeNavigationButtonsOnCompleteTrigger(){return this.triggers.changeNavigationButtonsOnComplete},set changeNavigationButtonsOnCompleteTrigger(e){this.triggers.changeNavigationButtonsOnComplete=e},get executeSkipTriggerOnValueChanged(){return this.triggers.executeSkipOnValueChanged},set executeSkipTriggerOnValueChanged(e){this.triggers.executeSkipOnValueChanged=e},serialization:{itemValueSerializeAsObject:!1,itemValueSerializeDisplayText:!1,localizableStringSerializeAsObject:!1},get itemValueAlwaysSerializeAsObject(){return this.serialization.itemValueSerializeAsObject},set itemValueAlwaysSerializeAsObject(e){this.serialization.itemValueSerializeAsObject=e},get itemValueAlwaysSerializeText(){return this.serialization.itemValueSerializeDisplayText},set itemValueAlwaysSerializeText(e){this.serialization.itemValueSerializeDisplayText=e},get serializeLocalizableStringAsObject(){return this.serialization.localizableStringSerializeAsObject},set serializeLocalizableStringAsObject(e){this.serialization.localizableStringSerializeAsObject=e},lazyRender:{enabled:!1,firstBatchSize:3},get lazyRowsRendering(){return this.lazyRender.enabled},set lazyRowsRendering(e){this.lazyRender.enabled=e},get lazyRowsRenderingStartRow(){return this.lazyRender.firstBatchSize},set lazyRowsRenderingStartRow(e){this.lazyRender.firstBatchSize=e},matrix:{defaultCellType:"dropdown",defaultRowName:"default",totalsSuffix:"-total",maxRowCount:1e3,maxRowCountInCondition:1,renderRemoveAsIcon:!0,columnWidthsByType:{file:{minWidth:"240px"},comment:{minWidth:"200px"}},rateSize:"small"},get matrixDefaultRowName(){return this.matrix.defaultRowName},set matrixDefaultRowName(e){this.matrix.defaultRowName=e},get matrixDefaultCellType(){return this.matrix.defaultCellType},set matrixDefaultCellType(e){this.matrix.defaultCellType=e},get matrixTotalValuePostFix(){return this.matrix.totalsSuffix},set matrixTotalValuePostFix(e){this.matrix.totalsSuffix=e},get matrixMaximumRowCount(){return this.matrix.maxRowCount},set matrixMaximumRowCount(e){this.matrix.maxRowCount=e},get matrixMaxRowCountInCondition(){return this.matrix.maxRowCountInCondition},set matrixMaxRowCountInCondition(e){this.matrix.maxRowCountInCondition=e},get matrixRenderRemoveAsIcon(){return this.matrix.renderRemoveAsIcon},set matrixRenderRemoveAsIcon(e){this.matrix.renderRemoveAsIcon=e},panel:{maxPanelCount:100,maxPanelCountInCondition:1},get panelDynamicMaxPanelCountInCondition(){return this.panel.maxPanelCountInCondition},set panelDynamicMaxPanelCountInCondition(e){this.panel.maxPanelCountInCondition=e},get panelMaximumPanelCount(){return this.panel.maxPanelCount},set panelMaximumPanelCount(e){this.panel.maxPanelCount=e},readOnly:{commentRenderMode:"textarea",textRenderMode:"input"},get readOnlyCommentRenderMode(){return this.readOnly.commentRenderMode},set readOnlyCommentRenderMode(e){this.readOnly.commentRenderMode=e},get readOnlyTextRenderMode(){return this.readOnly.textRenderMode},set readOnlyTextRenderMode(e){this.readOnly.textRenderMode=e},numbering:{includeQuestionsWithHiddenNumber:!1,includeQuestionsWithHiddenTitle:!1},get setQuestionVisibleIndexForHiddenTitle(){return this.numbering.includeQuestionsWithHiddenTitle},set setQuestionVisibleIndexForHiddenTitle(e){this.numbering.includeQuestionsWithHiddenTitle=e},get setQuestionVisibleIndexForHiddenNumber(){return this.numbering.includeQuestionsWithHiddenNumber},set setQuestionVisibleIndexForHiddenNumber(e){this.numbering.includeQuestionsWithHiddenNumber=e},enterKeyAction:"default",comparator:{trimStrings:!0,caseSensitive:!1,normalizeTextCallback:function(e,t){return e}},expressionDisableConversionChar:"#",get commentPrefix(){return o.commentSuffix},set commentPrefix(e){o.commentSuffix=e},commentSuffix:"-Comment",itemValueSeparator:"|",ratingMaximumRateValueCount:20,tagboxCloseOnSelect:!1,confirmActionFunc:function(e){return confirm(e)},minWidth:"300px",maxWidth:"100%",maxConditionRunCountOnValueChanged:10,notifications:{lifetime:2e3},showItemsInOrder:"default",noneItemValue:"none",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:r?{root:r,_rootElement:r.body,get rootElement(){var e;return null!==(e=this._rootElement)&&void 0!==e?e:r.body},set rootElement(e){this._rootElement=e},_popupMountContainer:r.body,get popupMountContainer(){var e;return null!==(e=this._popupMountContainer)&&void 0!==e?e:r.body},set popupMountContainer(e){this._popupMountContainer=e},svgMountContainer:r.head,stylesSheetsMountContainer:r.head}:void 0,showMaxLengthIndicator:!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"]}}},"./src/stylesmanager.ts":function(e,t,n){"use strict";n.r(t),n.d(t,"modernThemeColors",(function(){return s})),n.d(t,"defaultThemeColors",(function(){return a})),n.d(t,"orangeThemeColors",(function(){return l})),n.d(t,"darkblueThemeColors",(function(){return u})),n.d(t,"darkroseThemeColors",(function(){return c})),n.d(t,"stoneThemeColors",(function(){return p})),n.d(t,"winterThemeColors",(function(){return d})),n.d(t,"winterstoneThemeColors",(function(){return h})),n.d(t,"StylesManager",(function(){return f}));var r=n("./src/defaultCss/defaultV2Css.ts"),o=n("./src/settings.ts"),i=n("./src/utils/utils.ts"),s={"$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"},a={"$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"},l={"$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"},u={"$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"},c={"$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"},p={"$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"},d={"$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"},h={"$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"},f=function(){function e(){e.autoApplyTheme()}return e.autoApplyTheme=function(){if("bootstrap"!==r.surveyCss.currentType&&"bootstrapmaterial"!==r.surveyCss.currentType){var t=e.getIncludedThemeCss();1===t.length&&e.applyTheme(t[0].name)}},e.getAvailableThemes=function(){return r.surveyCss.getAvailableThemes().filter((function(e){return-1!==["defaultV2","default","modern"].indexOf(e)})).map((function(e){return{name:e,theme:r.surveyCss[e]}}))},e.getIncludedThemeCss=function(){if(void 0===o.settings.environment)return[];var t=o.settings.environment.rootElement,n=e.getAvailableThemes(),r=Object(i.isShadowDOM)(t)?t.host:t;if(r){var s=getComputedStyle(r);if(s.length)return n.filter((function(e){return e.theme.variables&&s.getPropertyValue(e.theme.variables.themeMark)}))}return[]},e.findSheet=function(e){if(void 0===o.settings.environment)return null;for(var t=o.settings.environment.root.styleSheets,n=0;n<t.length;n++)if(t[n].ownerNode&&t[n].ownerNode.id===e)return t[n];return null},e.createSheet=function(t){var n=o.settings.environment.stylesSheetsMountContainer,r=document.createElement("style");return r.id=t,r.appendChild(document.createTextNode("")),Object(i.getElement)(n).appendChild(r),e.Logger&&e.Logger.log("style sheet "+t+" created"),r.sheet},e.applyTheme=function(t,n){if(void 0===t&&(t="default"),void 0!==o.settings.environment){var s=o.settings.environment.rootElement,a=Object(i.isShadowDOM)(s)?s.host:s;if(r.surveyCss.currentType=t,e.Enabled){if("bootstrap"!==t&&"bootstrapmaterial"!==t)return function(e,t){Object.keys(e||{}).forEach((function(n){var r=n.substring(1);t.style.setProperty("--"+r,e[n])}))}(e.ThemeColors[t],a),void(e.Logger&&e.Logger.log("apply theme "+t+" completed"));var l=e.ThemeCss[t];if(!l)return void(r.surveyCss.currentType="defaultV2");e.insertStylesRulesIntoDocument();var u=n||e.ThemeSelector[t]||e.ThemeSelector.default,c=(t+u).trim(),p=e.findSheet(c);if(!p){p=e.createSheet(c);var d=e.ThemeColors[t]||e.ThemeColors.default;Object.keys(l).forEach((function(e){var t=l[e];Object.keys(d||{}).forEach((function(e){return t=t.replace(new RegExp("\\"+e,"g"),d[e])}));try{0===e.indexOf("body")?p.insertRule(e+" { "+t+" }",0):p.insertRule(u+e+" { "+t+" }",0)}catch(e){}}))}}e.Logger&&e.Logger.log("apply theme "+t+" completed")}},e.insertStylesRulesIntoDocument=function(){if(e.Enabled){var t=e.findSheet(e.SurveyJSStylesSheetId);t||(t=e.createSheet(e.SurveyJSStylesSheetId)),Object.keys(e.Styles).length&&Object.keys(e.Styles).forEach((function(n){try{t.insertRule(n+" { "+e.Styles[n]+" }",0)}catch(e){}})),Object.keys(e.Media).length&&Object.keys(e.Media).forEach((function(n){try{t.insertRule(e.Media[n].media+" { "+n+" { "+e.Media[n].style+" } }",0)}catch(e){}}))}},e.SurveyJSStylesSheetId="surveyjs-styles",e.Styles={},e.Media={},e.ThemeColors={modern:s,default:a,orange:l,darkblue:u,darkrose:c,stone:p,winter:d,winterstone:h},e.ThemeCss={},e.ThemeSelector={default:".sv_main ",modern:".sv-root-modern "},e.Enabled=!0,e}()},"./src/survey-element.ts":function(e,t,n){"use strict";n.r(t),n.d(t,"SurveyElementCore",(function(){return f})),n.d(t,"DragTypeOverMeEnum",(function(){return o})),n.d(t,"SurveyElement",(function(){return g}));var r,o,i=n("./src/jsonobject.ts"),s=n("./src/base.ts"),a=n("./src/actions/adaptive-container.ts"),l=n("./src/helpers.ts"),u=n("./src/settings.ts"),c=n("./src/actions/container.ts"),p=n("./src/utils/cssClassBuilder.ts"),d=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),h=function(e,t,n,r){var o,i=arguments.length,s=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,r);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(i<3?o(s):i>3?o(t,n,s):o(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},f=function(e){function t(){var t=e.call(this)||this;return t.createLocTitleProperty(),t}return d(t,e),t.prototype.createLocTitleProperty=function(){return this.createLocalizableString("title",this,!0)},Object.defineProperty(t.prototype,"title",{get:function(){return this.getLocalizableStringText("title",this.getDefaultTitleValue())},set:function(e){this.setLocalizableStringText("title",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locTitle",{get:function(){return this.getLocalizableString("title")},enumerable:!1,configurable:!0}),t.prototype.getDefaultTitleValue=function(){},t.prototype.updateDescriptionVisibility=function(e){var t=!1;if(this.isDesignMode){var n=i.Serializer.findProperty(this.getType(),"description");t=!!(null==n?void 0:n.placeholder)}this.hasDescription=!!e||t},Object.defineProperty(t.prototype,"locDescription",{get:function(){return this.getLocalizableString("description")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"titleTagName",{get:function(){var e=this.getDefaultTitleTagName(),t=this.getSurvey();return t?t.getElementTitleTagName(this,e):e},enumerable:!1,configurable:!0}),t.prototype.getDefaultTitleTagName=function(){return u.settings.titleTags[this.getType()]},Object.defineProperty(t.prototype,"hasTitle",{get:function(){return this.title.length>0},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hasTitleActions",{get:function(){return!1},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hasTitleEvents",{get:function(){return this.hasTitleActions},enumerable:!1,configurable:!0}),t.prototype.getTitleToolbar=function(){return null},t.prototype.getTitleOwner=function(){},Object.defineProperty(t.prototype,"isTitleOwner",{get:function(){return!!this.getTitleOwner()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isTitleRenderedAsString",{get:function(){return this.getIsTitleRenderedAsString()},enumerable:!1,configurable:!0}),t.prototype.toggleState=function(){},Object.defineProperty(t.prototype,"cssClasses",{get:function(){return{}},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"cssTitle",{get:function(){return""},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"ariaTitleId",{get:function(){},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"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},h([Object(i.property)()],t.prototype,"hasDescription",void 0),h([Object(i.property)({localizable:!0,onSet:function(e,t){t.updateDescriptionVisibility(e)}})],t.prototype,"description",void 0),t}(s.Base);!function(e){e[e.InsideEmptyPanel=1]="InsideEmptyPanel",e[e.MultilineRight=2]="MultilineRight",e[e.MultilineLeft=3]="MultilineLeft",e[e.Top=4]="Top",e[e.Right=5]="Right",e[e.Bottom=6]="Bottom",e[e.Left=7]="Left"}(o||(o={}));var g=function(e){function t(n){var r=e.call(this)||this;return r.selectedElementInDesignValue=r,r.disableDesignActions=t.CreateDisabledDesignElements,r.parentQuestionValue=null,r.isContentElement=!1,r.isEditableTemplateElement=!1,r.isInteractiveDesignElement=!0,r.isSingleInRow=!0,r.name=n,r.createNewArray("errors"),r.createNewArray("titleActions"),r.registerPropertyChangedHandlers(["isReadOnly"],(function(){r.onReadOnlyChanged()})),r.registerPropertyChangedHandlers(["errors"],(function(){r.updateVisibleErrors()})),r.registerPropertyChangedHandlers(["isSingleInRow"],(function(){r.updateElementCss(!1)})),r}return d(t,e),t.getProgressInfoByElements=function(e,t){for(var n=s.Base.createProgressInfo(),r=0;r<e.length;r++)if(e[r].isVisible){var o=e[r].getProgressInfo();n.questionCount+=o.questionCount,n.answeredQuestionCount+=o.answeredQuestionCount,n.requiredQuestionCount+=o.requiredQuestionCount,n.requiredAnsweredQuestionCount+=o.requiredAnsweredQuestionCount}return t&&n.questionCount>0&&(0==n.requiredQuestionCount&&(n.requiredQuestionCount=1),n.answeredQuestionCount>0&&(n.requiredAnsweredQuestionCount=1)),n},t.ScrollElementToTop=function(e){var t=u.settings.environment.root;if(!e||void 0===t)return!1;var n=t.getElementById(e);if(!n||!n.scrollIntoView)return!1;var r=n.getBoundingClientRect().top;return r<0&&n.scrollIntoView(),r<0},t.GetFirstNonTextElement=function(e,t){if(void 0===t&&(t=!1),!e||!e.length||0==e.length)return null;if(t){var n=e[0];"#text"===n.nodeName&&(n.data=""),"#text"===(n=e[e.length-1]).nodeName&&(n.data="")}for(var r=0;r<e.length;r++)if("#text"!=e[r].nodeName&&"#comment"!=e[r].nodeName)return e[r];return null},t.FocusElement=function(e){if(!e||"undefined"==typeof document)return!1;var n=t.focusElementCore(e);return n||setTimeout((function(){t.focusElementCore(e)}),10),n},t.focusElementCore=function(e){var t=u.settings.environment.root;if(!t)return!1;var n=t.getElementById(e);return!(!n||n.disabled||"none"===n.style.display||null===n.offsetParent||(n.focus(),0))},t.prototype.onPropertyValueChanged=function(t,n,r){e.prototype.onPropertyValueChanged.call(this,t,n,r),"state"===t&&(this.updateElementCss(!1),this.stateChangedCallback&&this.stateChangedCallback())},t.prototype.getSkeletonComponentNameCore=function(){return this.survey?this.survey.getSkeletonComponentName(this):""},Object.defineProperty(t.prototype,"parentQuestion",{get:function(){return this.parentQuestionValue},enumerable:!1,configurable:!0}),t.prototype.setParentQuestion=function(e){this.parentQuestionValue=e,this.onParentQuestionChanged()},t.prototype.onParentQuestionChanged=function(){},Object.defineProperty(t.prototype,"skeletonComponentName",{get:function(){return this.getSkeletonComponentNameCore()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"state",{get:function(){return this.getPropertyValue("state")},set:function(e){this.setPropertyValue("state",e),this.notifyStateChanged()},enumerable:!1,configurable:!0}),t.prototype.notifyStateChanged=function(){this.survey&&this.survey.elementContentVisibilityChanged(this)},Object.defineProperty(t.prototype,"isCollapsed",{get:function(){if(!this.isDesignMode)return"collapsed"===this.state},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isExpanded",{get:function(){return"expanded"===this.state},enumerable:!1,configurable:!0}),t.prototype.collapse=function(){this.isDesignMode||(this.state="collapsed")},t.prototype.expand=function(){this.state="expanded"},t.prototype.toggleState=function(){return this.isCollapsed?(this.expand(),!0):!this.isExpanded||(this.collapse(),!1)},Object.defineProperty(t.prototype,"hasStateButton",{get:function(){return this.isExpanded||this.isCollapsed},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"shortcutText",{get:function(){return this.title||this.name},enumerable:!1,configurable:!0}),t.prototype.getTitleToolbar=function(){return this.titleToolbarValue||(this.titleToolbarValue=this.createActionContainer(!0),this.titleToolbarValue.containerCss=(this.isPanel?this.cssClasses.panel.titleBar:this.cssClasses.titleBar)||"sv-action-title-bar",this.titleToolbarValue.setItems(this.getTitleActions())),this.titleToolbarValue},t.prototype.createActionContainer=function(e){var t=e?new a.AdaptiveActionContainer:new c.ActionContainer;return this.survey&&this.survey.getCss().actionBar&&(t.cssClasses=this.survey.getCss().actionBar),t},Object.defineProperty(t.prototype,"titleActions",{get:function(){return this.getPropertyValue("titleActions")},enumerable:!1,configurable:!0}),t.prototype.getTitleActions=function(){return this.isTitleActionRequested||(this.updateTitleActions(),this.isTitleActionRequested=!0),this.titleActions},t.prototype.getDefaultTitleActions=function(){return[]},t.prototype.updateTitleActions=function(){var e=this.getDefaultTitleActions();this.survey&&(e=this.survey.getUpdatedElementTitleActions(this,e)),this.setPropertyValue("titleActions",e)},Object.defineProperty(t.prototype,"hasTitleActions",{get:function(){return this.getTitleActions().length>0},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hasTitleEvents",{get:function(){return void 0!==this.state&&"default"!==this.state},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"titleTabIndex",{get:function(){return this.isPage||"default"===this.state?void 0:0},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"titleAriaExpanded",{get:function(){if(!this.isPage&&"default"!==this.state)return"expanded"===this.state?"true":"false"},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"titleAriaRole",{get:function(){if(!this.isPage&&"default"!==this.state)return"button"},enumerable:!1,configurable:!0}),t.prototype.setSurveyImpl=function(e,t){this.surveyImplValue=e,this.surveyImplValue?(this.surveyDataValue=this.surveyImplValue.getSurveyData(),this.setSurveyCore(this.surveyImplValue.getSurvey()),this.textProcessorValue=this.surveyImplValue.getTextProcessor(),this.onSetData()):(this.setSurveyCore(null),this.surveyDataValue=null),this.survey&&this.clearCssClasses()},t.prototype.canRunConditions=function(){return e.prototype.canRunConditions.call(this)&&!!this.data},t.prototype.getDataFilteredValues=function(){return this.data?this.data.getFilteredValues():{}},t.prototype.getDataFilteredProperties=function(){var e=this.data?this.data.getFilteredProperties():{};return e.question=this,e},Object.defineProperty(t.prototype,"surveyImpl",{get:function(){return this.surveyImplValue},enumerable:!1,configurable:!0}),t.prototype.__setData=function(e){u.settings.supportCreatorV2&&(this.surveyDataValue=e)},Object.defineProperty(t.prototype,"data",{get:function(){return this.surveyDataValue},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"survey",{get:function(){return this.getSurvey()},enumerable:!1,configurable:!0}),t.prototype.getSurvey=function(e){return void 0===e&&(e=!1),this.surveyValue||this.surveyImplValue&&this.setSurveyCore(this.surveyImplValue.getSurvey()),this.surveyValue},t.prototype.setSurveyCore=function(e){this.surveyValue=e,this.surveyChangedCallback&&this.surveyChangedCallback()},Object.defineProperty(t.prototype,"isInternal",{get:function(){return this.isContentElement},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"areInvisibleElementsShowing",{get:function(){return!!this.survey&&this.survey.areInvisibleElementsShowing&&!this.isContentElement},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isVisible",{get:function(){return!0},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isReadOnly",{get:function(){return!1},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"readOnly",{get:function(){return this.getPropertyValue("readOnly",!1)},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}),t.prototype.ensureCssClassesValue=function(){this.cssClassesValue||(this.cssClassesValue=this.calcCssClasses(this.css),this.updateElementCssCore(this.cssClassesValue))},Object.defineProperty(t.prototype,"cssClasses",{get:function(){return this.cssClassesValue,this.survey?(this.ensureCssClassesValue(),this.cssClassesValue):this.calcCssClasses(this.css)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"cssTitleNumber",{get:function(){var e=this.cssClasses;return e.number?e.number:e.panel?e.panel.number:void 0},enumerable:!1,configurable:!0}),t.prototype.calcCssClasses=function(e){},t.prototype.updateElementCssCore=function(e){},Object.defineProperty(t.prototype,"cssError",{get:function(){return""},enumerable:!1,configurable:!0}),t.prototype.updateElementCss=function(e){this.clearCssClasses()},t.prototype.clearCssClasses=function(){this.cssClassesValue=void 0},t.prototype.getIsLoadingFromJson=function(){return!!e.prototype.getIsLoadingFromJson.call(this)||!!this.survey&&this.survey.isLoadingFromJson},Object.defineProperty(t.prototype,"name",{get:function(){return this.getPropertyValue("name","")},set:function(e){var t=this.name;this.setPropertyValue("name",this.getValidName(e)),!this.isLoadingFromJson&&t&&this.onNameChanged(t)},enumerable:!1,configurable:!0}),t.prototype.getValidName=function(e){return e},t.prototype.onNameChanged=function(e){},t.prototype.updateBindingValue=function(e,t){this.data&&!this.isTwoValueEquals(t,this.data.getValue(e))&&this.data.setValue(e,t,!1)},Object.defineProperty(t.prototype,"errors",{get:function(){return this.getPropertyValue("errors")},set:function(e){this.setPropertyValue("errors",e)},enumerable:!1,configurable:!0}),t.prototype.updateVisibleErrors=function(){for(var e=0,t=0;t<this.errors.length;t++)this.errors[t].visible&&e++;this.hasVisibleErrors=e>0},Object.defineProperty(t.prototype,"containsErrors",{get:function(){return this.getPropertyValue("containsErrors",!1)},enumerable:!1,configurable:!0}),t.prototype.updateContainsErrors=function(){this.setPropertyValue("containsErrors",this.getContainsErrors())},t.prototype.getContainsErrors=function(){return this.errors.length>0},Object.defineProperty(t.prototype,"selectedElementInDesign",{get:function(){return this.selectedElementInDesignValue},set:function(e){this.selectedElementInDesignValue=e},enumerable:!1,configurable:!0}),t.prototype.updateCustomWidgets=function(){},t.prototype.onSurveyLoad=function(){},t.prototype.onFirstRendering=function(){this.ensureCssClassesValue()},t.prototype.endLoadingFromJson=function(){e.prototype.endLoadingFromJson.call(this),this.survey||this.onSurveyLoad(),this.updateDescriptionVisibility(this.description)},t.prototype.setVisibleIndex=function(e){return 0},Object.defineProperty(t.prototype,"isPage",{get:function(){return!1},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isPanel",{get:function(){return!1},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isQuestion",{get:function(){return!1},enumerable:!1,configurable:!0}),t.prototype.delete=function(){},t.prototype.getLocale=function(){return this.survey?this.survey.getLocale():this.locOwner?this.locOwner.getLocale():""},t.prototype.getMarkdownHtml=function(e,t){return this.survey?this.survey.getSurveyMarkdownHtml(this,e,t):this.locOwner?this.locOwner.getMarkdownHtml(e,t):void 0},t.prototype.getRenderer=function(e){return this.survey&&"function"==typeof this.survey.getRendererForString?this.survey.getRendererForString(this,e):this.locOwner&&"function"==typeof this.locOwner.getRenderer?this.locOwner.getRenderer(e):null},t.prototype.getRendererContext=function(e){return this.survey&&"function"==typeof this.survey.getRendererContextForString?this.survey.getRendererContextForString(this,e):this.locOwner&&"function"==typeof this.locOwner.getRendererContext?this.locOwner.getRendererContext(e):e},t.prototype.getProcessedText=function(e){return this.isLoadingFromJson?e:this.textProcessor?this.textProcessor.processText(e,this.getUseDisplayValuesInDynamicTexts()):this.locOwner?this.locOwner.getProcessedText(e):e},t.prototype.getUseDisplayValuesInDynamicTexts=function(){return!0},t.prototype.removeSelfFromList=function(e){if(e&&Array.isArray(e)){var t=e.indexOf(this);t>-1&&e.splice(t,1)}},Object.defineProperty(t.prototype,"textProcessor",{get:function(){return this.textProcessorValue},enumerable:!1,configurable:!0}),t.prototype.getProcessedHtml=function(e){return e&&this.textProcessor?this.textProcessor.processText(e,!0):e},t.prototype.onSetData=function(){},Object.defineProperty(t.prototype,"parent",{get:function(){return this.getPropertyValue("parent",null)},set:function(e){this.setPropertyValue("parent",e)},enumerable:!1,configurable:!0}),t.prototype.getPage=function(e){for(;e&&e.parent;)e=e.parent;return e&&"page"==e.getType()?e:null},t.prototype.moveToBase=function(e,t,n){if(void 0===n&&(n=null),!t)return!1;e.removeElement(this);var r=-1;return l.Helpers.isNumber(n)&&(r=parseInt(n)),-1==r&&n&&n.getType&&(r=t.indexOf(n)),t.addElement(this,r),!0},t.prototype.setPage=function(e,t){var n=this.getPage(e);"string"==typeof t&&this.getSurvey().pages.forEach((function(e){t===e.name&&(t=e)})),n!==t&&(e&&e.removeElement(this),t&&t.addElement(this,-1))},t.prototype.getSearchableLocKeys=function(e){e.push("title"),e.push("description")},Object.defineProperty(t.prototype,"isDefaultV2Theme",{get:function(){return this.survey&&"sd-root-modern"==this.survey.getCss().root},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isErrorsModeTooltip",{get:function(){return this.getIsErrorsModeTooltip()},enumerable:!1,configurable:!0}),t.prototype.getIsErrorsModeTooltip=function(){return this.isDefaultV2Theme&&this.hasParent&&this.getIsTooltipErrorSupportedByParent()},t.prototype.getIsTooltipErrorSupportedByParent=function(){var e;return null===(e=this.parent)||void 0===e?void 0:e.getIsTooltipErrorInsideSupported()},t.prototype.getIsTooltipErrorInsideSupported=function(){return!1},Object.defineProperty(t.prototype,"hasParent",{get:function(){return this.parent&&!this.parent.isPage&&(!this.parent.originalPage||this.survey.isShowingPreview)||void 0===this.parent},enumerable:!1,configurable:!0}),t.prototype.shouldAddRunnerStyles=function(){return!this.isDesignMode&&this.isDefaultV2Theme},Object.defineProperty(t.prototype,"isCompact",{get:function(){return this.survey&&this.survey.isCompact},enumerable:!1,configurable:!0}),t.prototype.getHasFrameV2=function(){return this.shouldAddRunnerStyles()&&!this.hasParent&&this.isSingleInRow},t.prototype.getIsNested=function(){return this.shouldAddRunnerStyles()&&(this.hasParent||!this.isSingleInRow)},t.prototype.getCssRoot=function(e){return(new p.CssClassBuilder).append(e.withFrame,this.getHasFrameV2()&&!this.isCompact).append(e.compact,this.isCompact&&this.getHasFrameV2()).append(e.collapsed,!!this.isCollapsed).append(e.expanded,!!this.isExpanded).append(e.nested,this.getIsNested()).toString()},Object.defineProperty(t.prototype,"width",{get:function(){return this.getPropertyValue("width","")},set:function(e){this.setPropertyValue("width",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"minWidth",{get:function(){return this.getPropertyValue("minWidth")},set:function(e){this.setPropertyValue("minWidth",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"maxWidth",{get:function(){return this.getPropertyValue("maxWidth")},set:function(e){this.setPropertyValue("maxWidth",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"renderWidth",{get:function(){return this.getPropertyValue("renderWidth","")},set:function(e){this.setPropertyValue("renderWidth",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"indent",{get:function(){return this.getPropertyValue("indent")},set:function(e){this.setPropertyValue("indent",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"rightIndent",{get:function(){return this.getPropertyValue("rightIndent",0)},set:function(e){this.setPropertyValue("rightIndent",e)},enumerable:!1,configurable:!0}),t.prototype.getRootStyle=function(){var e={};return this.paddingLeft&&(e["--sv-element-add-padding-left"]=this.paddingLeft),this.paddingRight&&(e["--sv-element-add-padding-right"]=this.paddingRight),e},Object.defineProperty(t.prototype,"paddingLeft",{get:function(){return this.getPropertyValue("paddingLeft","")},set:function(e){this.setPropertyValue("paddingLeft",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"paddingRight",{get:function(){return this.getPropertyValue("paddingRight","")},set:function(e){this.setPropertyValue("paddingRight",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"rootStyle",{get:function(){var e={};return this.allowRootStyle&&this.renderWidth&&(e.flexGrow=1,e.flexShrink=1,e.flexBasis=this.renderWidth,e.minWidth=this.minWidth,e.maxWidth=this.maxWidth),e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"clickTitleFunction",{get:function(){var e=this;if(this.needClickTitleFunction())return function(){return e.processTitleClick()}},enumerable:!1,configurable:!0}),t.prototype.needClickTitleFunction=function(){return"default"!==this.state},t.prototype.processTitleClick=function(){"default"!==this.state&&this.toggleState()},Object.defineProperty(t.prototype,"additionalTitleToolbar",{get:function(){return this.getAdditionalTitleToolbar()},enumerable:!1,configurable:!0}),t.prototype.getAdditionalTitleToolbar=function(){return null},t.prototype.getCssTitle=function(e){var t="default"!==this.state;return(new p.CssClassBuilder).append(e.title).append(e.titleNumInline,(this.no||"").length>4||t).append(e.titleExpandable,t).append(e.titleExpanded,this.isExpanded).append(e.titleCollapsed,this.isCollapsed).append(e.titleDisabled,this.isReadOnly).append(e.titleOnError,this.containsErrors).toString()},t.prototype.localeChanged=function(){e.prototype.localeChanged.call(this),this.updateDescriptionVisibility(this.description),this.errors.length>0&&this.errors.forEach((function(e){e.updateText()}))},t.CreateDisabledDesignElements=!1,h([Object(i.property)({defaultValue:null})],t.prototype,"dragTypeOverMe",void 0),h([Object(i.property)({defaultValue:!1})],t.prototype,"isDragMe",void 0),h([Object(i.property)()],t.prototype,"cssClassesValue",void 0),h([Object(i.property)({defaultValue:!1})],t.prototype,"hasVisibleErrors",void 0),h([Object(i.property)({defaultValue:!0})],t.prototype,"isSingleInRow",void 0),h([Object(i.property)({defaultValue:!0})],t.prototype,"allowRootStyle",void 0),t}(f)},"./src/survey-error.ts":function(e,t,n){"use strict";n.r(t),n.d(t,"SurveyError",(function(){return i}));var r=n("./src/localizablestring.ts"),o=n("./src/surveyStrings.ts"),i=function(){function e(e,t){void 0===e&&(e=null),void 0===t&&(t=null),this.text=e,this.errorOwner=t,this.visible=!0,this.onUpdateErrorTextCallback=void 0}return e.prototype.equalsTo=function(e){return!(!e||!e.getErrorType)&&this.getErrorType()===e.getErrorType()&&this.text===e.text&&this.visible===e.visible},Object.defineProperty(e.prototype,"locText",{get:function(){return this.locTextValue||(this.locTextValue=new r.LocalizableString(this.errorOwner,!0),this.locTextValue.storeDefaultText=!0,this.locTextValue.text=this.getText()),this.locTextValue},enumerable:!1,configurable:!0}),e.prototype.getText=function(){var e=this.text;return e||(e=this.getDefaultText()),this.errorOwner&&(e=this.errorOwner.getErrorCustomText(e,this)),e},e.prototype.getErrorType=function(){return"base"},e.prototype.getDefaultText=function(){return""},e.prototype.getLocale=function(){return this.errorOwner?this.errorOwner.getLocale():""},e.prototype.getLocalizationString=function(e){return o.surveyLocalization.getString(e,this.getLocale())},e.prototype.updateText=function(){this.onUpdateErrorTextCallback&&this.onUpdateErrorTextCallback(this),this.locText.text=this.getText()},e}()},"./src/survey-events-api.ts":function(e,t,n){"use strict";n.r(t)},"./src/survey.ts":function(e,t,n){"use strict";n.r(t),n.d(t,"SurveyModel",(function(){return E}));var r,o=n("./src/helpers.ts"),i=n("./src/jsonobject.ts"),s=n("./src/base.ts"),a=n("./src/survey-element.ts"),l=n("./src/defaultCss/defaultV2Css.ts"),u=n("./src/textPreProcessor.ts"),c=n("./src/conditionProcessValue.ts"),p=n("./src/dxSurveyService.ts"),d=n("./src/surveyStrings.ts"),h=n("./src/error.ts"),f=n("./src/localizablestring.ts"),g=n("./src/stylesmanager.ts"),m=n("./src/surveyTimerModel.ts"),y=n("./src/conditions.ts"),v=n("./src/settings.ts"),b=n("./src/utils/utils.ts"),C=n("./src/actions/action.ts"),w=n("./src/actions/container.ts"),x=n("./src/utils/cssClassBuilder.ts"),P=n("./src/notifier.ts"),S=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),V=function(e,t,n,r){var o,i=arguments.length,s=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,r);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(i<3?o(s):i>3?o(t,n,s):o(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},E=function(e){function t(n,r){void 0===n&&(n=null),void 0===r&&(r=null);var o=e.call(this)||this;o.valuesHash={},o.variablesHash={},o.onThemeApplying=new s.EventBase,o.onThemeApplied=new s.EventBase,o.onTriggerExecuted=o.addEvent(),o.onCompleting=o.addEvent(),o.onComplete=o.addEvent(),o.onShowingPreview=o.addEvent(),o.onNavigateToUrl=o.addEvent(),o.onStarted=o.addEvent(),o.onPartialSend=o.addEvent(),o.onCurrentPageChanging=o.addEvent(),o.onCurrentPageChanged=o.addEvent(),o.onValueChanging=o.addEvent(),o.onValueChanged=o.addEvent(),o.onVariableChanged=o.addEvent(),o.onQuestionVisibleChanged=o.addEvent(),o.onVisibleChanged=o.onQuestionVisibleChanged,o.onPageVisibleChanged=o.addEvent(),o.onPanelVisibleChanged=o.addEvent(),o.onQuestionCreated=o.addEvent(),o.onQuestionAdded=o.addEvent(),o.onQuestionRemoved=o.addEvent(),o.onPanelAdded=o.addEvent(),o.onPanelRemoved=o.addEvent(),o.onPageAdded=o.addEvent(),o.onValidateQuestion=o.addEvent(),o.onSettingQuestionErrors=o.addEvent(),o.onServerValidateQuestions=o.addEvent(),o.onValidatePanel=o.addEvent(),o.onErrorCustomText=o.addEvent(),o.onValidatedErrorsOnCurrentPage=o.addEvent(),o.onProcessHtml=o.addEvent(),o.onGetQuestionDisplayValue=o.addEvent(),o.onGetQuestionTitle=o.addEvent(),o.onGetTitleTagName=o.addEvent(),o.onGetQuestionNo=o.addEvent(),o.onProgressText=o.addEvent(),o.onTextMarkdown=o.addEvent(),o.onTextRenderAs=o.addEvent(),o.onSendResult=o.addEvent(),o.onGetResult=o.addEvent(),o.onUploadFiles=o.addEvent(),o.onDownloadFile=o.addEvent(),o.onClearFiles=o.addEvent(),o.onLoadChoicesFromServer=o.addEvent(),o.onLoadedSurveyFromService=o.addEvent(),o.onProcessTextValue=o.addEvent(),o.onUpdateQuestionCssClasses=o.addEvent(),o.onUpdatePanelCssClasses=o.addEvent(),o.onUpdatePageCssClasses=o.addEvent(),o.onUpdateChoiceItemCss=o.addEvent(),o.onAfterRenderSurvey=o.addEvent(),o.onAfterRenderHeader=o.addEvent(),o.onAfterRenderPage=o.addEvent(),o.onAfterRenderQuestion=o.addEvent(),o.onAfterRenderQuestionInput=o.addEvent(),o.onAfterRenderPanel=o.addEvent(),o.onFocusInQuestion=o.addEvent(),o.onFocusInPanel=o.addEvent(),o.onShowingChoiceItem=o.addEvent(),o.onChoicesLazyLoad=o.addEvent(),o.onGetChoiceDisplayValue=o.addEvent(),o.onMatrixRowAdded=o.addEvent(),o.onMatrixRowAdding=o.addEvent(),o.onMatrixBeforeRowAdded=o.onMatrixRowAdding,o.onMatrixRowRemoving=o.addEvent(),o.onMatrixRowRemoved=o.addEvent(),o.onMatrixRenderRemoveButton=o.addEvent(),o.onMatrixAllowRemoveRow=o.onMatrixRenderRemoveButton,o.onMatrixCellCreating=o.addEvent(),o.onMatrixCellCreated=o.addEvent(),o.onAfterRenderMatrixCell=o.addEvent(),o.onMatrixAfterCellRender=o.onAfterRenderMatrixCell,o.onMatrixCellValueChanged=o.addEvent(),o.onMatrixCellValueChanging=o.addEvent(),o.onMatrixCellValidate=o.addEvent(),o.onMatrixColumnAdded=o.addEvent(),o.onMultipleTextItemAdded=o.addEvent(),o.onDynamicPanelAdded=o.addEvent(),o.onDynamicPanelRemoved=o.addEvent(),o.onDynamicPanelRemoving=o.addEvent(),o.onTimer=o.addEvent(),o.onTimerPanelInfoText=o.addEvent(),o.onDynamicPanelItemValueChanged=o.addEvent(),o.onIsAnswerCorrect=o.addEvent(),o.onDragDropAllow=o.addEvent(),o.onScrollingElementToTop=o.addEvent(),o.onLocaleChangedEvent=o.addEvent(),o.onGetQuestionTitleActions=o.addEvent(),o.onGetPanelTitleActions=o.addEvent(),o.onGetPageTitleActions=o.addEvent(),o.onGetPanelFooterActions=o.addEvent(),o.onGetMatrixRowActions=o.addEvent(),o.onElementContentVisibilityChanged=o.addEvent(),o.onGetExpressionDisplayValue=o.addEvent(),o.onPopupVisibleChanged=o.addEvent(),o.jsonErrors=null,o.cssValue=null,o.hideRequiredErrors=!1,o.cssVariables={},o._isMobile=!1,o._isCompact=!1,o._isDesignMode=!1,o.ignoreValidation=!1,o.isNavigationButtonPressed=!1,o.mouseDownPage=null,o.isCalculatingProgressText=!1,o.isFirstPageRendering=!0,o.isCurrentPageRendering=!0,o.isTriggerIsRunning=!1,o.triggerValues=null,o.triggerKeys=null,o.conditionValues=null,o.isValueChangedOnRunningCondition=!1,o.conditionRunnerCounter=0,o.conditionUpdateVisibleIndexes=!1,o.conditionNotifyElementsOnAnyValueOrVariableChanged=!1,o.isEndLoadingFromJson=null,o.questionHashes={names:{},namesInsensitive:{},valueNames:{},valueNamesInsensitive:{}},o.needRenderIcons=!0,o.skippedPages=[],o.skeletonComponentName="sv-skeleton","undefined"!=typeof document&&(t.stylesManager=new g.StylesManager);var i=function(e){return"<h3>"+e+"</h3>"};return o.createHtmlLocString("completedHtml","completingSurvey",i),o.createHtmlLocString("completedBeforeHtml","completingSurveyBefore",i,"completed-before"),o.createHtmlLocString("loadingHtml","loadingSurvey",i,"loading"),o.createLocalizableString("logo",o,!1),o.createLocalizableString("backgroundImage",o,!1),o.createLocalizableString("startSurveyText",o,!1,!0),o.createLocalizableString("pagePrevText",o,!1,!0),o.createLocalizableString("pageNextText",o,!1,!0),o.createLocalizableString("completeText",o,!1,!0),o.createLocalizableString("previewText",o,!1,!0),o.createLocalizableString("editText",o,!1,!0),o.createLocalizableString("questionTitleTemplate",o,!0),o.textPreProcessor=new u.TextPreProcessor,o.textPreProcessor.onProcess=function(e){o.getProcessedTextValue(e)},o.timerModelValue=new m.SurveyTimerModel(o),o.timerModelValue.onTimer=function(e){o.doTimer(e)},o.createNewArray("pages",(function(e){o.doOnPageAdded(e)}),(function(e){o.doOnPageRemoved(e)})),o.createNewArray("triggers",(function(e){e.setOwner(o)})),o.createNewArray("calculatedValues",(function(e){e.setOwner(o)})),o.createNewArray("completedHtmlOnCondition",(function(e){e.locOwner=o})),o.createNewArray("navigateToUrlOnCondition",(function(e){e.locOwner=o})),o.registerPropertyChangedHandlers(["locale"],(function(){o.onSurveyLocaleChanged()})),o.registerPropertyChangedHandlers(["firstPageIsStarted"],(function(){o.onFirstPageIsStartedChanged()})),o.registerPropertyChangedHandlers(["mode"],(function(){o.onModeChanged()})),o.registerPropertyChangedHandlers(["progressBarType"],(function(){o.updateProgressText()})),o.registerPropertyChangedHandlers(["questionStartIndex","requiredText","questionTitlePattern"],(function(){o.resetVisibleIndexes()})),o.registerPropertyChangedHandlers(["isLoading","isCompleted","isCompletedBefore","mode","isStartedState","currentPage"],(function(){o.updateState()})),o.registerPropertyChangedHandlers(["state","currentPage","showPreviewBeforeComplete"],(function(){o.onStateAndCurrentPageChanged()})),o.registerPropertyChangedHandlers(["logo","logoPosition"],(function(){o.updateHasLogo()})),o.registerPropertyChangedHandlers(["backgroundImage"],(function(){o.updateRenderBackgroundImage()})),o.onGetQuestionNo.onCallbacksChanged=function(){o.resetVisibleIndexes()},o.onProgressText.onCallbacksChanged=function(){o.updateProgressText()},o.onTextMarkdown.onCallbacksChanged=function(){o.locStrsChanged()},o.onProcessHtml.onCallbacksChanged=function(){o.locStrsChanged()},o.onGetQuestionTitle.onCallbacksChanged=function(){o.locStrsChanged()},o.onUpdatePageCssClasses.onCallbacksChanged=function(){o.currentPage&&o.currentPage.updateElementCss()},o.onUpdatePanelCssClasses.onCallbacksChanged=function(){o.currentPage&&o.currentPage.updateElementCss()},o.onUpdateQuestionCssClasses.onCallbacksChanged=function(){o.currentPage&&o.currentPage.updateElementCss()},o.onShowingChoiceItem.onCallbacksChanged=function(){o.rebuildQuestionChoices()},o.navigationBarValue=o.createNavigationBar(),o.navigationBar.locOwner=o,o.onBeforeCreating(),n&&(("string"==typeof n||n instanceof String)&&(n=JSON.parse(n)),n&&n.clientId&&(o.clientId=n.clientId),o.fromJSON(n),o.surveyId&&o.loadSurveyFromService(o.surveyId,o.clientId)),o.onCreating(),r&&o.render(r),o.updateCss(),o.setCalculatedWidthModeUpdater(),o.notifier=new P.Notifier(o.css.saveData),o.notifier.addAction(o.createTryAgainAction(),"error"),o.layoutElements.push({id:"timerpanel",template:"survey-timerpanel",component:"sv-timerpanel",data:o.timerModel}),o.layoutElements.push({id:"progress-buttons",component:"sv-progress-buttons",data:o}),o.layoutElements.push({id:"progress-questions",component:"sv-progress-questions",data:o}),o.layoutElements.push({id:"progress-pages",component:"sv-progress-pages",data:o}),o.layoutElements.push({id:"progress-correctquestions",component:"sv-progress-correctquestions",data:o}),o.layoutElements.push({id:"progress-requiredquestions",component:"sv-progress-requiredquestions",data:o}),o.addLayoutElement({id:"toc-navigation",component:"sv-progress-toc",data:o}),o.layoutElements.push({id:"navigationbuttons",component:"sv-action-bar",data:o.navigationBar}),o}return S(t,e),Object.defineProperty(t,"cssType",{get:function(){return l.surveyCss.currentType},set:function(e){g.StylesManager.applyTheme(e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"platformName",{get:function(){return t.platform},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"commentSuffix",{get:function(){return v.settings.commentSuffix},set:function(e){v.settings.commentSuffix=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"commentPrefix",{get:function(){return this.commentSuffix},set:function(e){this.commentSuffix=e},enumerable:!1,configurable:!0}),t.prototype.processClosedPopup=function(e,t){throw new Error("Method not implemented.")},t.prototype.createTryAgainAction=function(){var e=this;return{id:"save-again",title:this.getLocalizationString("saveAgainButton"),action:function(){e.isCompleted?e.saveDataOnComplete():e.doComplete()}}},t.prototype.createHtmlLocString=function(e,t,n,r){var o=this,i=this.createLocalizableString(e,this,!1,t);i.onGetLocalizationTextCallback=n,r&&(i.onGetTextCallback=function(e){return o.processHtml(e,r)})},t.prototype.getType=function(){return"survey"},t.prototype.onPropertyValueChanged=function(e,t,n){"questionsOnPageMode"===e&&this.onQuestionsOnPageModeChanged(t)},Object.defineProperty(t.prototype,"pages",{get:function(){return this.getPropertyValue("pages")},enumerable:!1,configurable:!0}),t.prototype.render=function(e){void 0===e&&(e=null),this.renderCallback&&this.renderCallback()},t.prototype.updateSurvey=function(e,t){var n=function(){if("model"==o||"children"==o)return"continue";if(0==o.indexOf("on")&&r[o]&&r[o].add){var t=e[o];r[o].add((function(e,n){t(e,n)}))}else r[o]=e[o]},r=this;for(var o in e)n();e&&e.data&&this.onValueChanged.add((function(t,n){e.data[n.name]=n.value}))},t.prototype.getCss=function(){return this.css},t.prototype.updateCompletedPageCss=function(){this.containerCss=this.css.container,this.completedCss=(new x.CssClassBuilder).append(this.css.body).append(this.css.completedPage).toString()},t.prototype.updateCss=function(){this.rootCss=this.getRootCss(),this.updateNavigationCss(),this.updateCompletedPageCss()},Object.defineProperty(t.prototype,"css",{get:function(){return this.cssValue||(this.cssValue={},this.copyCssClasses(this.cssValue,l.surveyCss.getCss())),this.cssValue},set:function(e){this.setCss(e)},enumerable:!1,configurable:!0}),t.prototype.setCss=function(e,t){void 0===t&&(t=!0),t?this.mergeValues(e,this.css):this.cssValue=e,this.updateCss(),this.updateElementCss(!1)},Object.defineProperty(t.prototype,"cssTitle",{get:function(){return this.css.title},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"cssNavigationComplete",{get:function(){return this.getNavigationCss(this.cssSurveyNavigationButton,this.css.navigation.complete)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"cssNavigationPreview",{get:function(){return this.getNavigationCss(this.cssSurveyNavigationButton,this.css.navigation.preview)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"cssNavigationEdit",{get:function(){return this.getNavigationCss(this.css.navigationButton,this.css.navigation.edit)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"cssNavigationPrev",{get:function(){return this.getNavigationCss(this.cssSurveyNavigationButton,this.css.navigation.prev)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"cssNavigationStart",{get:function(){return this.getNavigationCss(this.cssSurveyNavigationButton,this.css.navigation.start)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"cssNavigationNext",{get:function(){return this.getNavigationCss(this.cssSurveyNavigationButton,this.css.navigation.next)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"cssSurveyNavigationButton",{get:function(){return(new x.CssClassBuilder).append(this.css.navigationButton).append(this.css.bodyNavigationButton).toString()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"bodyCss",{get:function(){return(new x.CssClassBuilder).append(this.css.body).append(this.css.bodyWithTimer,"none"!=this.showTimerPanel&&"running"===this.state).append(this.css.body+"--"+this.calculatedWidthMode).toString()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"bodyContainerCss",{get:function(){return this.css.bodyContainer},enumerable:!1,configurable:!0}),t.prototype.getNavigationCss=function(e,t){return(new x.CssClassBuilder).append(e).append(t).toString()},Object.defineProperty(t.prototype,"lazyRendering",{get:function(){return!0===this.lazyRenderingValue},set:function(e){if(this.lazyRendering!==e){this.lazyRenderingValue=e;var t=this.currentPage;t&&t.updateRows()}},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isLazyRendering",{get:function(){return this.lazyRendering||v.settings.lazyRender.enabled},enumerable:!1,configurable:!0}),t.prototype.updateLazyRenderingRowsOnRemovingElements=function(){if(this.isLazyRendering){var e=this.currentPage;e&&Object(b.scrollElementByChildId)(e.id)}},Object.defineProperty(t.prototype,"triggers",{get:function(){return this.getPropertyValue("triggers")},set:function(e){this.setPropertyValue("triggers",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"calculatedValues",{get:function(){return this.getPropertyValue("calculatedValues")},set:function(e){this.setPropertyValue("calculatedValues",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"surveyId",{get:function(){return this.getPropertyValue("surveyId","")},set:function(e){this.setPropertyValue("surveyId",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"surveyPostId",{get:function(){return this.getPropertyValue("surveyPostId","")},set:function(e){this.setPropertyValue("surveyPostId",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"clientId",{get:function(){return this.getPropertyValue("clientId","")},set:function(e){this.setPropertyValue("clientId",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"cookieName",{get:function(){return this.getPropertyValue("cookieName","")},set:function(e){this.setPropertyValue("cookieName",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"sendResultOnPageNext",{get:function(){return this.getPropertyValue("sendResultOnPageNext")},set:function(e){this.setPropertyValue("sendResultOnPageNext",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"surveyShowDataSaving",{get:function(){return this.getPropertyValue("surveyShowDataSaving")},set:function(e){this.setPropertyValue("surveyShowDataSaving",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"focusFirstQuestionAutomatic",{get:function(){return this.getPropertyValue("focusFirstQuestionAutomatic")},set:function(e){this.setPropertyValue("focusFirstQuestionAutomatic",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"focusOnFirstError",{get:function(){return this.getPropertyValue("focusOnFirstError")},set:function(e){this.setPropertyValue("focusOnFirstError",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"showNavigationButtons",{get:function(){return this.getPropertyValue("showNavigationButtons")},set:function(e){!0!==e&&void 0!==e||(e="bottom"),!1===e&&(e="none"),this.setPropertyValue("showNavigationButtons",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"showPrevButton",{get:function(){return this.getPropertyValue("showPrevButton")},set:function(e){this.setPropertyValue("showPrevButton",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"showTOC",{get:function(){return this.getPropertyValue("showTOC")},set:function(e){this.setPropertyValue("showTOC",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"tocLocation",{get:function(){return this.getPropertyValue("tocLocation")},set:function(e){this.setPropertyValue("tocLocation",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"showTitle",{get:function(){return this.getPropertyValue("showTitle")},set:function(e){this.setPropertyValue("showTitle",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"showPageTitles",{get:function(){return this.getPropertyValue("showPageTitles")},set:function(e){this.setPropertyValue("showPageTitles",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"showCompletedPage",{get:function(){return this.getPropertyValue("showCompletedPage")},set:function(e){this.setPropertyValue("showCompletedPage",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"navigateToUrl",{get:function(){return this.getPropertyValue("navigateToUrl")},set:function(e){this.setPropertyValue("navigateToUrl",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"navigateToUrlOnCondition",{get:function(){return this.getPropertyValue("navigateToUrlOnCondition")},set:function(e){this.setPropertyValue("navigateToUrlOnCondition",e)},enumerable:!1,configurable:!0}),t.prototype.getNavigateToUrl=function(){var e=this.getExpressionItemOnRunCondition(this.navigateToUrlOnCondition),t=e?e.url:this.navigateToUrl;return t&&(t=this.processText(t,!1)),t},t.prototype.navigateTo=function(){var e={url:this.getNavigateToUrl(),allow:!0};this.onNavigateToUrl.fire(this,e),e.url&&e.allow&&Object(b.navigateToUrl)(e.url)},Object.defineProperty(t.prototype,"requiredText",{get:function(){return this.getPropertyValue("requiredText","*")},set:function(e){this.setPropertyValue("requiredText",e)},enumerable:!1,configurable:!0}),t.prototype.beforeSettingQuestionErrors=function(e,t){this.maakeRequiredErrorsInvisibgle(t),this.onSettingQuestionErrors.fire(this,{question:e,errors:t})},t.prototype.beforeSettingPanelErrors=function(e,t){this.maakeRequiredErrorsInvisibgle(t)},t.prototype.maakeRequiredErrorsInvisibgle=function(e){if(this.hideRequiredErrors)for(var t=0;t<e.length;t++){var n=e[t].getErrorType();"required"!=n&&"requireoneanswer"!=n||(e[t].visible=!1)}},Object.defineProperty(t.prototype,"questionStartIndex",{get:function(){return this.getPropertyValue("questionStartIndex","")},set:function(e){this.setPropertyValue("questionStartIndex",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"storeOthersAsComment",{get:function(){return this.getPropertyValue("storeOthersAsComment")},set:function(e){this.setPropertyValue("storeOthersAsComment",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"maxTextLength",{get:function(){return this.getPropertyValue("maxTextLength")},set:function(e){this.setPropertyValue("maxTextLength",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"maxOthersLength",{get:function(){return this.getPropertyValue("maxOthersLength")},set:function(e){this.setPropertyValue("maxOthersLength",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"goNextPageAutomatic",{get:function(){return this.getPropertyValue("goNextPageAutomatic")},set:function(e){this.setPropertyValue("goNextPageAutomatic",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"allowCompleteSurveyAutomatic",{get:function(){return this.getPropertyValue("allowCompleteSurveyAutomatic",!0)},set:function(e){this.setPropertyValue("allowCompleteSurveyAutomatic",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"checkErrorsMode",{get:function(){return this.getPropertyValue("checkErrorsMode")},set:function(e){this.setPropertyValue("checkErrorsMode",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"autoGrowComment",{get:function(){return this.getPropertyValue("autoGrowComment")},set:function(e){this.setPropertyValue("autoGrowComment",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"allowResizeComment",{get:function(){return this.getPropertyValue("allowResizeComment")},set:function(e){this.setPropertyValue("allowResizeComment",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"textUpdateMode",{get:function(){return this.getPropertyValue("textUpdateMode")},set:function(e){this.setPropertyValue("textUpdateMode",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"clearInvisibleValues",{get:function(){return this.getPropertyValue("clearInvisibleValues")},set:function(e){!0===e&&(e="onComplete"),!1===e&&(e="none"),this.setPropertyValue("clearInvisibleValues",e)},enumerable:!1,configurable:!0}),t.prototype.clearIncorrectValues=function(e){void 0===e&&(e=!1);for(var t=0;t<this.pages.length;t++)this.pages[t].clearIncorrectValues();if(e){var n=this.data,r=!1;for(var o in n)if(!this.getQuestionByValueName(o)&&!this.iscorrectValueWithPostPrefix(o,v.settings.commentSuffix)&&!this.iscorrectValueWithPostPrefix(o,v.settings.matrix.totalsSuffix)){var i=this.getCalculatedValueByName(o);i&&i.includeIntoResult||(r=!0,delete n[o])}r&&(this.data=n)}},t.prototype.iscorrectValueWithPostPrefix=function(e,t){return e.indexOf(t)===e.length-t.length&&!!this.getQuestionByValueName(e.substring(0,e.indexOf(t)))},Object.defineProperty(t.prototype,"keepIncorrectValues",{get:function(){return this.getPropertyValue("keepIncorrectValues")},set:function(e){this.setPropertyValue("keepIncorrectValues",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locale",{get:function(){return this.getPropertyValue("locale",d.surveyLocalization.currentLocale)},set:function(e){e!==d.surveyLocalization.defaultLocale||d.surveyLocalization.currentLocale||(e=""),this.setPropertyValue("locale",e)},enumerable:!1,configurable:!0}),t.prototype.onSurveyLocaleChanged=function(){this.notifyElementsOnAnyValueOrVariableChanged("locale"),this.localeChanged(),this.onLocaleChangedEvent.fire(this,this.locale)},t.prototype.getUsedLocales=function(){var e=new Array;this.addUsedLocales(e);var t=e.indexOf("default");if(t>-1){var n=d.surveyLocalization.defaultLocale,r=e.indexOf(n);r>-1&&e.splice(r,1),t=e.indexOf("default"),e[t]=n}return e},t.prototype.localeChanged=function(){for(var e=0;e<this.pages.length;e++)this.pages[e].localeChanged()},t.prototype.getLocale=function(){return this.locale},t.prototype.locStrsChanged=function(){if(e.prototype.locStrsChanged.call(this),this.currentPage){if(this.isDesignMode)this.pages.forEach((function(e){return e.locStrsChanged()}));else{var t=this.activePage;t&&t.locStrsChanged();for(var n=this.visiblePages,r=0;r<n.length;r++)n[r].navigationLocStrChanged()}this.isShowStartingPage||this.updateProgressText(),this.navigationBar.locStrsChanged()}},t.prototype.getMarkdownHtml=function(e,t){return this.getSurveyMarkdownHtml(this,e,t)},t.prototype.getRenderer=function(e){return this.getRendererForString(this,e)},t.prototype.getRendererContext=function(e){return this.getRendererContextForString(this,e)},t.prototype.getRendererForString=function(e,t){var n={element:e,name:t,renderAs:this.getBuiltInRendererForString(e,t)};return this.onTextRenderAs.fire(this,n),n.renderAs},t.prototype.getRendererContextForString=function(e,t){return t},t.prototype.getExpressionDisplayValue=function(e,t,n){var r={question:e,value:t,displayValue:n};return this.onGetExpressionDisplayValue.fire(this,r),r.displayValue},t.prototype.getBuiltInRendererForString=function(e,t){if(this.isDesignMode)return f.LocalizableString.editableRenderer},t.prototype.getProcessedText=function(e){return this.processText(e,!0)},t.prototype.getLocString=function(e){return this.getLocalizationString(e)},t.prototype.getErrorCustomText=function(e,t){return this.getSurveyErrorCustomText(this,e,t)},t.prototype.getSurveyErrorCustomText=function(e,t,n){var r={text:t,name:n.getErrorType(),obj:e,error:n};return this.onErrorCustomText.fire(this,r),r.text},t.prototype.getQuestionDisplayValue=function(e,t){var n={question:e,displayValue:t};return this.onGetQuestionDisplayValue.fire(this,n),n.displayValue},Object.defineProperty(t.prototype,"emptySurveyText",{get:function(){return this.getLocalizationString("emptySurvey")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"logo",{get:function(){return this.getLocalizableStringText("logo")},set:function(e){this.setLocalizableStringText("logo",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locLogo",{get:function(){return this.getLocalizableString("logo")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"logoWidth",{get:function(){return this.getPropertyValue("logoWidth")},set:function(e){this.setPropertyValue("logoWidth",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"renderedLogoWidth",{get:function(){return this.logoWidth?Object(b.getRenderedSize)(this.logoWidth):void 0},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"renderedStyleLogoWidth",{get:function(){return this.logoWidth?Object(b.getRenderedStyleSize)(this.logoWidth):void 0},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"logoHeight",{get:function(){return this.getPropertyValue("logoHeight")},set:function(e){this.setPropertyValue("logoHeight",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"renderedLogoHeight",{get:function(){return this.logoHeight?Object(b.getRenderedSize)(this.logoHeight):void 0},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"renderedStyleLogoHeight",{get:function(){return this.logoHeight?Object(b.getRenderedStyleSize)(this.logoHeight):void 0},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"logoPosition",{get:function(){return this.getPropertyValue("logoPosition")},set:function(e){this.setPropertyValue("logoPosition",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hasLogo",{get:function(){return this.getPropertyValue("hasLogo",!1)},enumerable:!1,configurable:!0}),t.prototype.updateHasLogo=function(){this.setPropertyValue("hasLogo",!!this.logo&&"none"!==this.logoPosition)},Object.defineProperty(t.prototype,"isLogoBefore",{get:function(){return!this.isDesignMode&&this.renderedHasLogo&&("left"===this.logoPosition||"top"===this.logoPosition)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isLogoAfter",{get:function(){return this.isDesignMode?this.renderedHasLogo:this.renderedHasLogo&&("right"===this.logoPosition||"bottom"===this.logoPosition)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"logoClassNames",{get:function(){return(new x.CssClassBuilder).append(this.css.logo).append({left:"sv-logo--left",right:"sv-logo--right",top:"sv-logo--top",bottom:"sv-logo--bottom"}[this.logoPosition]).toString()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"renderedHasTitle",{get:function(){return this.isDesignMode?this.isPropertyVisible("title"):!this.locTitle.isEmpty&&this.showTitle},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"renderedHasDescription",{get:function(){return this.isDesignMode?this.isPropertyVisible("description"):!!this.hasDescription},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hasTitle",{get:function(){return this.renderedHasTitle},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"renderedHasLogo",{get:function(){return this.isDesignMode?this.isPropertyVisible("logo"):this.hasLogo},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"renderedHasHeader",{get:function(){return this.renderedHasTitle||this.renderedHasLogo},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"logoFit",{get:function(){return this.getPropertyValue("logoFit")},set:function(e){this.setPropertyValue("logoFit",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"themeVariables",{get:function(){return Object.assign({},this.cssVariables)},enumerable:!1,configurable:!0}),t.prototype.setIsMobile=function(e){void 0===e&&(e=!0),this.isMobile!==e&&(this._isMobile=e,this.updateCss(),this.getAllQuestions().map((function(t){return t.isMobile=e})))},Object.defineProperty(t.prototype,"isMobile",{get:function(){return this._isMobile},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())},enumerable:!1,configurable:!0}),t.prototype.isLogoImageChoosen=function(){return this.locLogo.renderedHtml},Object.defineProperty(t.prototype,"titleMaxWidth",{get:function(){if(!(Object(b.isMobile)()||this.isMobile||this.isValueEmpty(this.isLogoImageChoosen())||v.settings.supportCreatorV2)){var e=this.logoWidth;if("left"===this.logoPosition||"right"===this.logoPosition)return"calc(100% - 5px - 2em - "+e+")"}return""},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"backgroundImage",{get:function(){return this.getLocalizableStringText("backgroundImage")},set:function(e){this.setLocalizableStringText("backgroundImage",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locBackgroundImage",{get:function(){return this.getLocalizableString("backgroundImage")},enumerable:!1,configurable:!0}),t.prototype.updateRenderBackgroundImage=function(){var e=this.getLocalizableString("backgroundImage").renderedHtml;this.renderBackgroundImage=e?["url(",e,")"].join(""):""},Object.defineProperty(t.prototype,"backgroundOpacity",{get:function(){return this.getPropertyValue("backgroundOpacity")},set:function(e){this.setPropertyValue("backgroundOpacity",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"backgroundImageStyle",{get:function(){return{opacity:this.backgroundOpacity,backgroundImage:this.renderBackgroundImage,backgroundSize:this.backgroundImageFit,backgroundAttachment:this.backgroundImageAttachment}},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"completedHtml",{get:function(){return this.getLocalizableStringText("completedHtml")},set:function(e){this.setLocalizableStringText("completedHtml",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locCompletedHtml",{get:function(){return this.getLocalizableString("completedHtml")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"completedHtmlOnCondition",{get:function(){return this.getPropertyValue("completedHtmlOnCondition")},set:function(e){this.setPropertyValue("completedHtmlOnCondition",e)},enumerable:!1,configurable:!0}),t.prototype.runExpression=function(e){if(!e)return null;var t=this.getFilteredValues(),n=this.getFilteredProperties();return new y.ExpressionRunner(e).run(t,n)},t.prototype.runCondition=function(e){if(!e)return!1;var t=this.getFilteredValues(),n=this.getFilteredProperties();return new y.ConditionRunner(e).run(t,n)},t.prototype.runTriggers=function(){this.checkTriggers(this.getFilteredValues(),!1)},Object.defineProperty(t.prototype,"renderedCompletedHtml",{get:function(){var e=this.getExpressionItemOnRunCondition(this.completedHtmlOnCondition);return e?e.html:this.completedHtml},enumerable:!1,configurable:!0}),t.prototype.getExpressionItemOnRunCondition=function(e){if(0==e.length)return null;for(var t=this.getFilteredValues(),n=this.getFilteredProperties(),r=0;r<e.length;r++)if(e[r].runCondition(t,n))return e[r];return null},Object.defineProperty(t.prototype,"completedBeforeHtml",{get:function(){return this.getLocalizableStringText("completedBeforeHtml")},set:function(e){this.setLocalizableStringText("completedBeforeHtml",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locCompletedBeforeHtml",{get:function(){return this.getLocalizableString("completedBeforeHtml")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"loadingHtml",{get:function(){return this.getLocalizableStringText("loadingHtml")},set:function(e){this.setLocalizableStringText("loadingHtml",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locLoadingHtml",{get:function(){return this.getLocalizableString("loadingHtml")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"defaultLoadingHtml",{get:function(){return"<h3>"+this.getLocalizationString("loadingSurvey")+"</h3>"},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"navigationBar",{get:function(){return this.navigationBarValue},enumerable:!1,configurable:!0}),t.prototype.addNavigationItem=function(e){return e.component||(e.component="sv-nav-btn"),e.innerCss||(e.innerCss=this.cssSurveyNavigationButton),this.navigationBar.addAction(e)},Object.defineProperty(t.prototype,"startSurveyText",{get:function(){return this.getLocalizableStringText("startSurveyText")},set:function(e){this.setLocalizableStringText("startSurveyText",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locStartSurveyText",{get:function(){return this.getLocalizableString("startSurveyText")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"pagePrevText",{get:function(){return this.getLocalizableStringText("pagePrevText")},set:function(e){this.setLocalizableStringText("pagePrevText",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locPagePrevText",{get:function(){return this.getLocalizableString("pagePrevText")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"pageNextText",{get:function(){return this.getLocalizableStringText("pageNextText")},set:function(e){this.setLocalizableStringText("pageNextText",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locPageNextText",{get:function(){return this.getLocalizableString("pageNextText")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"completeText",{get:function(){return this.getLocalizableStringText("completeText")},set:function(e){this.setLocalizableStringText("completeText",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locCompleteText",{get:function(){return this.getLocalizableString("completeText")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"previewText",{get:function(){return this.getLocalizableStringText("previewText")},set:function(e){this.setLocalizableStringText("previewText",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locPreviewText",{get:function(){return this.getLocalizableString("previewText")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"editText",{get:function(){return this.getLocalizableStringText("editText")},set:function(e){this.setLocalizableStringText("editText",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locEditText",{get:function(){return this.getLocalizableString("editText")},enumerable:!1,configurable:!0}),t.prototype.getElementTitleTagName=function(e,t){if(this.onGetTitleTagName.isEmpty)return t;var n={element:e,tagName:t};return this.onGetTitleTagName.fire(this,n),n.tagName},Object.defineProperty(t.prototype,"questionTitlePattern",{get:function(){return this.getPropertyValue("questionTitlePattern","numTitleRequire")},set:function(e){"numRequireTitle"!==e&&"requireNumTitle"!==e&&"numTitle"!=e&&(e="numTitleRequire"),this.setPropertyValue("questionTitlePattern",e)},enumerable:!1,configurable:!0}),t.prototype.getQuestionTitlePatternOptions=function(){var e=new Array,t=this.getLocalizationString("questionTitlePatternText"),n=this.questionStartIndex?this.questionStartIndex:"1.";return e.push({value:"numTitleRequire",text:n+" "+t+" "+this.requiredText}),e.push({value:"numRequireTitle",text:n+" "+this.requiredText+" "+t}),e.push({value:"requireNumTitle",text:this.requiredText+" "+n+" "+t}),e.push({value:"numTitle",text:n+" "+t}),e},Object.defineProperty(t.prototype,"questionTitleTemplate",{get:function(){return this.getLocalizableStringText("questionTitleTemplate")},set:function(e){this.setLocalizableStringText("questionTitleTemplate",e),this.questionTitlePattern=this.getNewTitlePattern(e),this.questionStartIndex=this.getNewQuestionTitleElement(e,"no",this.questionStartIndex,"1"),this.requiredText=this.getNewQuestionTitleElement(e,"require",this.requiredText,"*")},enumerable:!1,configurable:!0}),t.prototype.getNewTitlePattern=function(e){if(e){for(var t=[];e.indexOf("{")>-1;){var n=(e=e.substring(e.indexOf("{")+1)).indexOf("}");if(n<0)break;t.push(e.substring(0,n)),e=e.substring(n+1)}if(t.length>1){if("require"==t[0])return"requireNumTitle";if("require"==t[1]&&3==t.length)return"numRequireTitle";if(t.indexOf("require")<0)return"numTitle"}if(1==t.length&&"title"==t[0])return"numTitle"}return"numTitleRequire"},t.prototype.getNewQuestionTitleElement=function(e,t,n,r){if(t="{"+t+"}",!e||e.indexOf(t)<0)return n;for(var o=e.indexOf(t),i="",s="",a=o-1;a>=0&&"}"!=e[a];a--);for(a<o-1&&(i=e.substring(a+1,o)),a=o+=t.length;a<e.length&&"{"!=e[a];a++);for(a>o&&(s=e.substring(o,a)),a=0;a<i.length&&i.charCodeAt(a)<33;)a++;for(i=i.substring(a),a=s.length-1;a>=0&&s.charCodeAt(a)<33;)a--;return s=s.substring(0,a+1),i||s?i+(n||r)+s:n},Object.defineProperty(t.prototype,"locQuestionTitleTemplate",{get:function(){return this.getLocalizableString("questionTitleTemplate")},enumerable:!1,configurable:!0}),t.prototype.getUpdatedQuestionTitle=function(e,t){if(this.onGetQuestionTitle.isEmpty)return t;var n={question:e,title:t};return this.onGetQuestionTitle.fire(this,n),n.title},t.prototype.getUpdatedQuestionNo=function(e,t){if(this.onGetQuestionNo.isEmpty)return t;var n={question:e,no:t};return this.onGetQuestionNo.fire(this,n),n.no},Object.defineProperty(t.prototype,"showPageNumbers",{get:function(){return this.getPropertyValue("showPageNumbers")},set:function(e){e!==this.showPageNumbers&&(this.setPropertyValue("showPageNumbers",e),this.updateVisibleIndexes())},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"showQuestionNumbers",{get:function(){return this.getPropertyValue("showQuestionNumbers")},set:function(e){!0===e&&(e="on"),!1===e&&(e="off"),(e="onpage"===(e=e.toLowerCase())?"onPage":e)!==this.showQuestionNumbers&&(this.setPropertyValue("showQuestionNumbers",e),this.updateVisibleIndexes())},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"showProgressBar",{get:function(){return this.getPropertyValue("showProgressBar")},set:function(e){this.setPropertyValue("showProgressBar",e.toLowerCase())},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"progressBarType",{get:function(){return this.getPropertyValue("progressBarType")},set:function(e){"correctquestion"===e&&(e="correctQuestion"),"requiredquestion"===e&&(e="requiredQuestion"),this.setPropertyValue("progressBarType",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isShowProgressBarOnTop",{get:function(){return!!this.canShowProresBar()&&("top"===this.showProgressBar||"both"===this.showProgressBar)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isShowProgressBarOnBottom",{get:function(){return!!this.canShowProresBar()&&("bottom"===this.showProgressBar||"both"===this.showProgressBar)},enumerable:!1,configurable:!0}),t.prototype.getProgressTypeComponent=function(){return"sv-progress-"+this.progressBarType.toLowerCase()},t.prototype.getProgressCssClasses=function(){return(new x.CssClassBuilder).append(this.css.progress).append(this.css.progressTop,this.isShowProgressBarOnTop).append(this.css.progressBottom,this.isShowProgressBarOnBottom).toString()},t.prototype.canShowProresBar=function(){return!this.isShowingPreview||"showAllQuestions"!=this.showPreviewBeforeComplete},Object.defineProperty(t.prototype,"processedTitle",{get:function(){return this.locTitle.renderedHtml},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"questionTitleLocation",{get:function(){return this.getPropertyValue("questionTitleLocation")},set:function(e){this.setPropertyValue("questionTitleLocation",e.toLowerCase()),this.isLoadingFromJson||this.updateElementCss(!0)},enumerable:!1,configurable:!0}),t.prototype.updateElementCss=function(e){this.startedPage&&this.startedPage.updateElementCss(e);for(var t=this.visiblePages,n=0;n<t.length;n++)t[n].updateElementCss(e);this.updateCss()},Object.defineProperty(t.prototype,"questionErrorLocation",{get:function(){return this.getPropertyValue("questionErrorLocation")},set:function(e){this.setPropertyValue("questionErrorLocation",e.toLowerCase())},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"questionDescriptionLocation",{get:function(){return this.getPropertyValue("questionDescriptionLocation")},set:function(e){this.setPropertyValue("questionDescriptionLocation",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"mode",{get:function(){return this.getPropertyValue("mode")},set:function(e){(e=e.toLowerCase())!=this.mode&&("edit"!=e&&"display"!=e||this.setPropertyValue("mode",e))},enumerable:!1,configurable:!0}),t.prototype.onModeChanged=function(){for(var e=0;e<this.pages.length;e++){var t=this.pages[e];t.setPropertyValue("isReadOnly",t.isReadOnly)}this.updateButtonsVisibility(),this.updateCss()},Object.defineProperty(t.prototype,"data",{get:function(){for(var e={},t=this.getValuesKeys(),n=0;n<t.length;n++){var r=t[n],o=this.getDataValueCore(this.valuesHash,r);void 0!==o&&(e[r]=o)}return this.setCalculatedValuesIntoResult(e),e},set:function(e){this.valuesHash={},this.setDataCore(e)},enumerable:!1,configurable:!0}),t.prototype.mergeData=function(e){if(e){var t=this.data;this.mergeValues(e,t),this.setDataCore(t)}},t.prototype.setDataCore=function(e){if(e)for(var t in e)this.setDataValueCore(this.valuesHash,t,e[t]);this.updateAllQuestionsValue(),this.notifyAllQuestionsOnValueChanged(),this.notifyElementsOnAnyValueOrVariableChanged(""),this.runConditions(),this.updateAllQuestionsValue()},t.prototype.getStructuredData=function(e,t){if(void 0===e&&(e=!0),void 0===t&&(t=-1),0===t)return this.data;var n={};return this.pages.forEach((function(r){if(e){var o={};r.collectValues(o,t-1)&&(n[r.name]=o)}else r.collectValues(n,t)})),n},t.prototype.setStructuredData=function(e,t){if(void 0===t&&(t=!1),e){var n={};for(var r in e)if(this.getQuestionByValueName(r))n[r]=e[r];else{var o=this.getPageByName(r);o||(o=this.getPanelByName(r)),o&&this.collectDataFromPanel(o,n,e[r])}t?this.mergeData(n):this.data=n}},t.prototype.collectDataFromPanel=function(e,t,n){for(var r in n){var o=e.getElementByName(r);o&&(o.isPanel?this.collectDataFromPanel(o,t,n[r]):t[r]=n[r])}},Object.defineProperty(t.prototype,"editingObj",{get:function(){return this.editingObjValue},set:function(e){var t=this;if(this.editingObj!=e&&(this.editingObj&&this.editingObj.onPropertyChanged.remove(this.onEditingObjPropertyChanged),this.editingObjValue=e,!this.isDisposed)){if(!e)for(var n=this.getAllQuestions(),r=0;r<n.length;r++)n[r].unbindValue();this.editingObj&&(this.setDataCore({}),this.onEditingObjPropertyChanged=function(e,n){i.Serializer.hasOriginalProperty(t.editingObj,n.name)&&t.updateOnSetValue(n.name,t.editingObj[n.name],n.oldValue)},this.editingObj.onPropertyChanged.add(this.onEditingObjPropertyChanged))}},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isEditingSurveyElement",{get:function(){return!!this.editingObj},enumerable:!1,configurable:!0}),t.prototype.setCalculatedValuesIntoResult=function(e){for(var t=0;t<this.calculatedValues.length;t++){var n=this.calculatedValues[t];n.includeIntoResult&&n.name&&void 0!==this.getVariable(n.name)&&(e[n.name]=this.getVariable(n.name))}},t.prototype.getAllValues=function(){return this.data},t.prototype.getPlainData=function(e){e||(e={includeEmpty:!0,includeQuestionTypes:!1,includeValues:!1});var t=[],n=[];if(this.getAllQuestions().forEach((function(r){var o=r.getPlainData(e);o&&(t.push(o),n.push(r.valueName||r.name))})),e.includeValues)for(var r=this.getValuesKeys(),o=0;o<r.length;o++){var i=r[o];if(-1==n.indexOf(i)){var s=this.getDataValueCore(this.valuesHash,i);s&&t.push({name:i,title:i,value:s,displayValue:s,isNode:!1,getString:function(e){return"object"==typeof e?JSON.stringify(e):e}})}}return t},t.prototype.getFilteredValues=function(){var e={};for(var t in this.variablesHash)e[t]=this.variablesHash[t];this.addCalculatedValuesIntoFilteredValues(e);for(var n=this.getValuesKeys(),r=0;r<n.length;r++)e[t=n[r]]=this.getDataValueCore(this.valuesHash,t);return e},t.prototype.addCalculatedValuesIntoFilteredValues=function(e){for(var t=this.calculatedValues,n=0;n<t.length;n++)e[t[n].name]=t[n].value},t.prototype.getFilteredProperties=function(){return{survey:this}},t.prototype.getValuesKeys=function(){if(!this.editingObj)return Object.keys(this.valuesHash);for(var e=i.Serializer.getPropertiesByObj(this.editingObj),t=[],n=0;n<e.length;n++)t.push(e[n].name);return t},t.prototype.getDataValueCore=function(e,t){return this.editingObj?i.Serializer.getObjPropertyValue(this.editingObj,t):this.getDataFromValueHash(e,t)},t.prototype.setDataValueCore=function(e,t,n){this.editingObj?i.Serializer.setObjPropertyValue(this.editingObj,t,n):this.setDataToValueHash(e,t,n)},t.prototype.deleteDataValueCore=function(e,t){this.editingObj?this.editingObj[t]=null:this.deleteDataFromValueHash(e,t)},t.prototype.getDataFromValueHash=function(e,t){return this.valueHashGetDataCallback?this.valueHashGetDataCallback(e,t):e[t]},t.prototype.setDataToValueHash=function(e,t,n){this.valueHashSetDataCallback?this.valueHashSetDataCallback(e,t,n):e[t]=n},t.prototype.deleteDataFromValueHash=function(e,t){this.valueHashDeleteDataCallback?this.valueHashDeleteDataCallback(e,t):delete e[t]},Object.defineProperty(t.prototype,"comments",{get:function(){for(var e={},t=this.getValuesKeys(),n=0;n<t.length;n++){var r=t[n];r.indexOf(this.commentSuffix)>0&&(e[r]=this.getDataValueCore(this.valuesHash,r))}return e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"visiblePages",{get:function(){if(this.isDesignMode)return this.pages;for(var e=new Array,t=0;t<this.pages.length;t++)this.isPageInVisibleList(this.pages[t])&&e.push(this.pages[t]);return e},enumerable:!1,configurable:!0}),t.prototype.isPageInVisibleList=function(e){return this.isDesignMode||e.isVisible&&!e.isStartPage},Object.defineProperty(t.prototype,"isEmpty",{get:function(){return 0==this.pages.length},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"PageCount",{get:function(){return this.pageCount},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"pageCount",{get:function(){return this.pages.length},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"visiblePageCount",{get:function(){return this.visiblePages.length},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"startedPage",{get:function(){var e=this.firstPageIsStarted&&this.pages.length>1?this.pages[0]:null;return e&&(e.onFirstRendering(),e.setWasShown(!0)),e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"currentPage",{get:function(){return this.getPropertyValue("currentPage",null)},set:function(e){if(!this.isLoadingFromJson){var t=this.getPageByObject(e);if((!e||t)&&(t||!this.isCurrentPageAvailable)){var n=this.visiblePages;if(!(null!=t&&n.indexOf(t)<0)&&t!=this.currentPage){var r=this.currentPage;(this.isShowingPreview||this.currentPageChanging(t,r))&&(this.setPropertyValue("currentPage",t),t&&(t.onFirstRendering(),t.updateCustomWidgets(),t.setWasShown(!0)),this.locStrsChanged(),this.isShowingPreview||this.currentPageChanged(t,r))}}}},enumerable:!1,configurable:!0}),t.prototype.updateCurrentPage=function(){this.isCurrentPageAvailable||(this.currentPage=this.firstVisiblePage)},Object.defineProperty(t.prototype,"isCurrentPageAvailable",{get:function(){var e=this.currentPage;return!!e&&this.isPageInVisibleList(e)&&this.isPageExistsInSurvey(e)},enumerable:!1,configurable:!0}),t.prototype.isPageExistsInSurvey=function(e){return this.pages.indexOf(e)>-1||!!this.onContainsPageCallback&&this.onContainsPageCallback(e)},Object.defineProperty(t.prototype,"activePage",{get:function(){return this.getPropertyValue("activePage")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isShowStartingPage",{get:function(){return"starting"===this.state},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"matrixDragHandleArea",{get:function(){return this.getPropertyValue("matrixDragHandleArea","entireItem")},set:function(e){this.setPropertyValue("matrixDragHandleArea",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isShowingPage",{get:function(){return"running"==this.state||"preview"==this.state||this.isShowStartingPage},enumerable:!1,configurable:!0}),t.prototype.updateActivePage=function(){var e=this.isShowStartingPage?this.startedPage:this.currentPage;this.setPropertyValue("activePage",e)},t.prototype.onStateAndCurrentPageChanged=function(){this.updateActivePage(),this.updateButtonsVisibility()},t.prototype.getPageByObject=function(e){if(!e)return null;if(e.getType&&"page"==e.getType())return e;if("string"==typeof e||e instanceof String)return this.getPageByName(String(e));if(!isNaN(e)){var t=Number(e),n=this.visiblePages;return e<0||e>=n.length?null:n[t]}return e},Object.defineProperty(t.prototype,"currentPageNo",{get:function(){return this.visiblePages.indexOf(this.currentPage)},set:function(e){var t=this.visiblePages;e<0||e>=t.length||(this.currentPage=t[e])},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"questionsOrder",{get:function(){return this.getPropertyValue("questionsOrder")},set:function(e){this.setPropertyValue("questionsOrder",e)},enumerable:!1,configurable:!0}),t.prototype.focusFirstQuestion=function(){if(!this.focusingQuestionInfo){var e=this.activePage;e&&(e.scrollToTop(),e.focusFirstQuestion())}},t.prototype.scrollToTopOnPageChange=function(e){void 0===e&&(e=!0);var t=this.activePage;t&&(e&&t.scrollToTop(),this.isCurrentPageRendering&&this.focusFirstQuestionAutomatic&&!this.focusingQuestionInfo&&(t.focusFirstQuestion(),this.isCurrentPageRendering=!1))},Object.defineProperty(t.prototype,"state",{get:function(){return this.getPropertyValue("state","empty")},enumerable:!1,configurable:!0}),t.prototype.updateState=function(){this.setPropertyValue("state",this.calcState())},t.prototype.calcState=function(){return this.isLoading?"loading":this.isCompleted?"completed":this.isCompletedBefore?"completedbefore":!this.isDesignMode&&this.isEditMode&&this.isStartedState&&this.startedPage?"starting":this.isShowingPreview?this.currentPage?"preview":"empty":this.currentPage?"running":"empty"},Object.defineProperty(t.prototype,"isCompleted",{get:function(){return this.getPropertyValue("isCompleted",!1)},set:function(e){this.setPropertyValue("isCompleted",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isShowingPreview",{get:function(){return this.getPropertyValue("isShowingPreview",!1)},set:function(e){this.isShowingPreview!=e&&(this.setPropertyValue("isShowingPreview",e),this.onShowingPreviewChanged())},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isStartedState",{get:function(){return this.getPropertyValue("isStartedState",!1)},set:function(e){this.setPropertyValue("isStartedState",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isCompletedBefore",{get:function(){return this.getPropertyValue("isCompletedBefore",!1)},set:function(e){this.setPropertyValue("isCompletedBefore",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isLoading",{get:function(){return this.getPropertyValue("isLoading",!1)},set:function(e){this.setPropertyValue("isLoading",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"completedState",{get:function(){return this.getPropertyValue("completedState","")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"completedStateText",{get:function(){return this.getPropertyValue("completedStateText","")},enumerable:!1,configurable:!0}),t.prototype.setCompletedState=function(e,t){this.setPropertyValue("completedState",e),t||("saving"==e&&(t=this.getLocalizationString("savingData")),"error"==e&&(t=this.getLocalizationString("savingDataError")),"success"==e&&(t=this.getLocalizationString("savingDataSuccess"))),this.setPropertyValue("completedStateText",t),"completed"===this.state&&this.showCompletedPage&&this.completedState&&this.notify(this.completedStateText,this.completedState)},t.prototype.notify=function(e,t){this.notifier.notify(e,t,"error"===t)},t.prototype.clear=function(e,t){void 0===e&&(e=!0),void 0===t&&(t=!0),this.isCompleted=!1,this.isCompletedBefore=!1,this.isLoading=!1,this.completedByTriggers=void 0,e&&(this.data=null,this.variablesHash={}),this.timerModel.spent=0;for(var n=0;n<this.pages.length;n++)this.pages[n].timeSpent=0,this.pages[n].setWasShown(!1),this.pages[n].passed=!1;this.onFirstPageIsStartedChanged(),t&&(this.currentPage=this.firstVisiblePage),e&&this.updateValuesWithDefaults()},t.prototype.mergeValues=function(e,t){Object(b.mergeValues)(e,t)},t.prototype.updateValuesWithDefaults=function(){if(!this.isDesignMode&&!this.isLoading)for(var e=0;e<this.pages.length;e++)for(var t=this.pages[e].questions,n=0;n<t.length;n++)t[n].updateValueWithDefaults()},t.prototype.updateCustomWidgets=function(e){e&&e.updateCustomWidgets()},t.prototype.currentPageChanging=function(e,t){var n=this.createPageChangeEventOptions(e,t);n.allow=!0,n.allowChanging=!0,this.onCurrentPageChanging.fire(this,n);var r=n.allowChanging&&n.allow;return r&&(this.isCurrentPageRendering=!0),r},t.prototype.currentPageChanged=function(e,t){var n=this.createPageChangeEventOptions(e,t);n.isNextPage&&(t.passed=!0),this.onCurrentPageChanged.fire(this,n)},t.prototype.createPageChangeEventOptions=function(e,t){var n=e&&t?e.visibleIndex-t.visibleIndex:0;return{oldCurrentPage:t,newCurrentPage:e,isNextPage:1===n,isPrevPage:-1===n,isGoingForward:n>0,isGoingBackward:n<0,isAfterPreview:!0===this.changeCurrentPageFromPreview}},t.prototype.getProgress=function(){if(null==this.currentPage)return 0;if("pages"!==this.progressBarType){var e=this.getProgressInfo();return"requiredQuestions"===this.progressBarType?e.requiredQuestionCount>=1?Math.ceil(100*e.requiredAnsweredQuestionCount/e.requiredQuestionCount):100:e.questionCount>=1?Math.ceil(100*e.answeredQuestionCount/e.questionCount):100}var t=this.visiblePages,n=t.indexOf(this.currentPage);return Math.ceil(100*n/t.length)},Object.defineProperty(t.prototype,"progressValue",{get:function(){return this.getPropertyValue("progressValue",0)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isNavigationButtonsShowing",{get:function(){if(this.isDesignMode)return"none";var e=this.currentPage;return e?"show"===e.navigationButtonsVisibility?"none"===this.showNavigationButtons?"bottom":this.showNavigationButtons:"hide"===e.navigationButtonsVisibility?"none":this.showNavigationButtons:"none"},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isNavigationButtonsShowingOnTop",{get:function(){return this.getIsNavigationButtonsShowingOn("top")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isNavigationButtonsShowingOnBottom",{get:function(){return this.getIsNavigationButtonsShowingOn("bottom")},enumerable:!1,configurable:!0}),t.prototype.getIsNavigationButtonsShowingOn=function(e){var t=this.isNavigationButtonsShowing;return"both"==t||t==e},Object.defineProperty(t.prototype,"isEditMode",{get:function(){return"edit"==this.mode},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isDisplayMode",{get:function(){return"display"==this.mode||"preview"==this.state},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isUpdateValueTextOnTyping",{get:function(){return"onTyping"==this.textUpdateMode},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isDesignMode",{get:function(){return this._isDesignMode},enumerable:!1,configurable:!0}),t.prototype.setDesignMode=function(e){!!this._isDesignMode!=!!e&&(this._isDesignMode=!!e,this.onQuestionsOnPageModeChanged("standard"))},Object.defineProperty(t.prototype,"showInvisibleElements",{get:function(){return this.getPropertyValue("showInvisibleElements",!1)},set:function(e){var t=this.visiblePages;this.setPropertyValue("showInvisibleElements",e),this.isLoadingFromJson||(this.runConditions(),this.updateAllElementsVisibility(t))},enumerable:!1,configurable:!0}),t.prototype.updateAllElementsVisibility=function(e){for(var t=0;t<this.pages.length;t++){var n=this.pages[t];n.updateElementVisibility(),e.indexOf(n)>-1!=n.isVisible&&this.onPageVisibleChanged.fire(this,{page:n,visible:n.isVisible})}},Object.defineProperty(t.prototype,"areInvisibleElementsShowing",{get:function(){return this.isDesignMode||this.showInvisibleElements},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"areEmptyElementsHidden",{get:function(){return this.isShowingPreview&&"showAnsweredQuestions"==this.showPreviewBeforeComplete&&this.isAnyQuestionAnswered},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isAnyQuestionAnswered",{get:function(){for(var e=this.getAllQuestions(!0),t=0;t<e.length;t++)if(!e[t].isEmpty())return!0;return!1},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hasCookie",{get:function(){if(!this.cookieName||"undefined"==typeof document)return!1;var e=document.cookie;return e&&e.indexOf(this.cookieName+"=true")>-1},enumerable:!1,configurable:!0}),t.prototype.setCookie=function(){this.cookieName&&"undefined"!=typeof document&&(document.cookie=this.cookieName+"=true; expires=Fri, 31 Dec 9999 0:0:0 GMT")},t.prototype.deleteCookie=function(){this.cookieName&&(document.cookie=this.cookieName+"=;")},t.prototype.nextPage=function(){return!this.isLastPage&&this.doCurrentPageComplete(!1)},t.prototype.hasErrorsOnNavigate=function(e){var t=this;if(this.ignoreValidation||!this.isEditMode)return!1;var n=function(n){n||t.doCurrentPageCompleteCore(e)};return this.isValidateOnComplete?!!this.isLastPage&&!0!==this.validate(!0,!0,n):!0!==this.validateCurrentPage(n)},t.prototype.checkForAsyncQuestionValidation=function(e,t){var n=this;this.clearAsyncValidationQuesitons();for(var r=function(){if(e[i].isRunningValidators){var r=e[i];r.onCompletedAsyncValidators=function(e){n.onCompletedAsyncQuestionValidators(r,t,e)},o.asyncValidationQuesitons.push(e[i])}},o=this,i=0;i<e.length;i++)r();return this.asyncValidationQuesitons.length>0},t.prototype.clearAsyncValidationQuesitons=function(){if(this.asyncValidationQuesitons)for(var e=this.asyncValidationQuesitons,t=0;t<e.length;t++)e[t].onCompletedAsyncValidators=null;this.asyncValidationQuesitons=[]},t.prototype.onCompletedAsyncQuestionValidators=function(e,t,n){if(n){if(this.clearAsyncValidationQuesitons(),t(!0),this.focusOnFirstError&&e&&e.page&&e.page===this.currentPage){for(var r=this.currentPage.questions,o=0;o<r.length;o++)if(r[o]!==e&&r[o].errors.length>0)return;e.focus(!0)}}else{for(var i=this.asyncValidationQuesitons,s=0;s<i.length;s++)if(i[s].isRunningValidators)return;t(!1)}},Object.defineProperty(t.prototype,"isCurrentPageHasErrors",{get:function(){return this.checkIsCurrentPageHasErrors()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isCurrentPageValid",{get:function(){return!this.checkIsCurrentPageHasErrors()},enumerable:!1,configurable:!0}),t.prototype.hasCurrentPageErrors=function(e){return this.hasPageErrors(void 0,e)},t.prototype.validateCurrentPage=function(e){return this.validatePage(void 0,e)},t.prototype.hasPageErrors=function(e,t){var n=this.validatePage(e,t);return void 0===n?n:!n},t.prototype.validatePage=function(e,t){return e||(e=this.activePage),!e||!this.checkIsPageHasErrors(e)&&(!t||!this.checkForAsyncQuestionValidation(e.questions,(function(e){return t(e)}))||void 0)},t.prototype.hasErrors=function(e,t,n){void 0===e&&(e=!0),void 0===t&&(t=!1);var r=this.validate(e,t,n);return void 0===r?r:!r},t.prototype.validate=function(e,t,n){void 0===e&&(e=!0),void 0===t&&(t=!1),n&&(e=!0);for(var r=this.visiblePages,o=null,i=!0,s=0;s<r.length;s++)r[s].validate(e,!1)||(o||(o=r[s]),i=!1);if(t&&o)for(var a=o.getQuestions(!0),l=0;l<a.length;l++)if(a[l].errors.length>0){a[l].focus(!0);break}return i&&n?!this.checkForAsyncQuestionValidation(this.getAllQuestions(),(function(e){return n(e)}))||void 0:i},t.prototype.ensureUniqueNames=function(e){if(void 0===e&&(e=null),null==e)for(var t=0;t<this.pages.length;t++)this.ensureUniqueName(this.pages[t]);else this.ensureUniqueName(e)},t.prototype.ensureUniqueName=function(e){if(e.isPage&&this.ensureUniquePageName(e),e.isPanel&&this.ensureUniquePanelName(e),e.isPage||e.isPanel)for(var t=e.elements,n=0;n<t.length;n++)this.ensureUniqueNames(t[n]);else this.ensureUniqueQuestionName(e)},t.prototype.ensureUniquePageName=function(e){var t=this;return this.ensureUniqueElementName(e,(function(e){return t.getPageByName(e)}))},t.prototype.ensureUniquePanelName=function(e){var t=this;return this.ensureUniqueElementName(e,(function(e){return t.getPanelByName(e)}))},t.prototype.ensureUniqueQuestionName=function(e){var t=this;return this.ensureUniqueElementName(e,(function(e){return t.getQuestionByName(e)}))},t.prototype.ensureUniqueElementName=function(e,t){var n=t(e.name);if(n&&n!=e){for(var r=this.getNewName(e.name);t(r);)r=this.getNewName(e.name);e.name=r}},t.prototype.getNewName=function(e){for(var t=e.length;t>0&&e[t-1]>="0"&&e[t-1]<="9";)t--;var n=e.substring(0,t),r=0;return t<e.length&&(r=parseInt(e.substring(t))),n+ ++r},t.prototype.checkIsCurrentPageHasErrors=function(e){return void 0===e&&(e=void 0),this.checkIsPageHasErrors(this.activePage,e)},t.prototype.checkIsPageHasErrors=function(e,t){if(void 0===t&&(t=void 0),void 0===t&&(t=this.focusOnFirstError),!e)return!0;var n=!e.validate(!0,t);return this.fireValidatedErrorsOnPage(e),n},t.prototype.fireValidatedErrorsOnPage=function(e){if(!this.onValidatedErrorsOnCurrentPage.isEmpty&&e){for(var t=e.questions,n=new Array,r=new Array,o=0;o<t.length;o++){var i=t[o];if(i.errors.length>0){n.push(i);for(var s=0;s<i.errors.length;s++)r.push(i.errors[s])}}this.onValidatedErrorsOnCurrentPage.fire(this,{questions:n,errors:r,page:e})}},t.prototype.prevPage=function(){var e=this;if(this.isFirstPage||"starting"===this.state)return!1;this.resetNavigationButton();var t=this.skippedPages.find((function(t){return t.to==e.currentPage}));if(t)this.currentPage=t.from,this.skippedPages.splice(this.skippedPages.indexOf(t),1);else{var n=this.visiblePages,r=n.indexOf(this.currentPage);this.currentPage=n[r-1]}return!0},t.prototype.completeLastPage=function(){this.isValidateOnComplete&&this.cancelPreview();var e=this.doCurrentPageComplete(!0);return e&&this.cancelPreview(),e},t.prototype.navigationMouseDown=function(){return this.isNavigationButtonPressed=!0,!0},t.prototype.resetNavigationButton=function(){this.isNavigationButtonPressed=!1},t.prototype.nextPageUIClick=function(){if(!this.mouseDownPage||this.mouseDownPage===this.activePage)return this.mouseDownPage=null,this.nextPage()},t.prototype.nextPageMouseDown=function(){return this.mouseDownPage=this.activePage,this.navigationMouseDown()},t.prototype.showPreview=function(){if(this.resetNavigationButton(),!this.isValidateOnComplete){if(this.hasErrorsOnNavigate(!0))return!1;if(this.doServerValidation(!0,!0))return!1}return this.showPreviewCore(),!0},t.prototype.showPreviewCore=function(){var e={allowShowPreview:!0,allow:!0};this.onShowingPreview.fire(this,e),this.isShowingPreview=e.allowShowPreview&&e.allow},t.prototype.cancelPreview=function(e){void 0===e&&(e=null),this.isShowingPreview&&(this.gotoPageFromPreview=e,this.isShowingPreview=!1)},t.prototype.cancelPreviewByPage=function(e){this.cancelPreview(e.originalPage)},t.prototype.doCurrentPageComplete=function(e){return!this.isValidatingOnServer&&(this.resetNavigationButton(),!this.hasErrorsOnNavigate(e)&&this.doCurrentPageCompleteCore(e))},t.prototype.doCurrentPageCompleteCore=function(e){return!this.doServerValidation(e)&&(e?(this.currentPage.passed=!0,this.doComplete(this.canBeCompletedByTrigger,this.completedTrigger)):(this.doNextPage(),!0))},Object.defineProperty(t.prototype,"isSinglePage",{get:function(){return"singlePage"==this.questionsOnPageMode},set:function(e){this.questionsOnPageMode=e?"singlePage":"standard"},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"questionsOnPageMode",{get:function(){return this.getPropertyValue("questionsOnPageMode")},set:function(e){this.setPropertyValue("questionsOnPageMode",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"firstPageIsStarted",{get:function(){return this.getPropertyValue("firstPageIsStarted")},set:function(e){this.setPropertyValue("firstPageIsStarted",e)},enumerable:!1,configurable:!0}),t.prototype.isPageStarted=function(e){return this.firstPageIsStarted&&this.pages.length>1&&this.pages[0]===e},Object.defineProperty(t.prototype,"showPreviewBeforeComplete",{get:function(){return this.getPropertyValue("showPreviewBeforeComplete")},set:function(e){this.setPropertyValue("showPreviewBeforeComplete",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isShowPreviewBeforeComplete",{get:function(){var e=this.showPreviewBeforeComplete;return"showAllQuestions"==e||"showAnsweredQuestions"==e},enumerable:!1,configurable:!0}),t.prototype.onFirstPageIsStartedChanged=function(){this.isStartedState=this.firstPageIsStarted&&this.pages.length>1,this.pageVisibilityChanged(this.pages[0],!this.isStartedState)},t.prototype.onShowingPreviewChanged=function(){if(!this.isDesignMode)if(this.isShowingPreview?(this.runningPages=this.pages.slice(0,this.pages.length),this.setupPagesForPageModes(!0)):(this.runningPages&&this.restoreOrigionalPages(this.runningPages),this.runningPages=void 0),this.runConditions(),this.updateAllElementsVisibility(this.pages),this.updateVisibleIndexes(),this.isShowingPreview)this.currentPageNo=0;else{var e=this.gotoPageFromPreview;this.gotoPageFromPreview=null,o.Helpers.isValueEmpty(e)&&this.visiblePageCount>0&&(e=this.visiblePages[this.visiblePageCount-1]),e&&(this.changeCurrentPageFromPreview=!0,this.currentPage=e,this.changeCurrentPageFromPreview=!1)}},t.prototype.onQuestionsOnPageModeChanged=function(e){this.isShowingPreview||("standard"==this.questionsOnPageMode||this.isDesignMode?(this.origionalPages&&this.restoreOrigionalPages(this.origionalPages),this.origionalPages=void 0):(e&&"standard"!=e||(this.origionalPages=this.pages.slice(0,this.pages.length)),this.setupPagesForPageModes(this.isSinglePage)),this.runConditions(),this.updateVisibleIndexes())},t.prototype.restoreOrigionalPages=function(e){this.questionHashesClear(),this.pages.splice(0,this.pages.length);for(var t=0;t<e.length;t++)this.pages.push(e[t])},t.prototype.getPageStartIndex=function(){return this.firstPageIsStarted&&this.pages.length>0?1:0},t.prototype.setupPagesForPageModes=function(t){this.questionHashesClear();var n=this.getPageStartIndex();e.prototype.startLoadingFromJson.call(this);var r=this.createPagesForQuestionOnPageMode(t,n),o=this.pages.length-n;this.pages.splice(n,o);for(var i=0;i<r.length;i++)this.pages.push(r[i]);for(e.prototype.endLoadingFromJson.call(this),i=0;i<r.length;i++)r[i].setSurveyImpl(this,!0);this.doElementsOnLoad(),this.updateCurrentPage()},t.prototype.createPagesForQuestionOnPageMode=function(e,t){return e?[this.createSinglePage(t)]:this.createPagesForEveryQuestion(t)},t.prototype.createSinglePage=function(e){var t=this.createNewPage("all");t.setSurveyImpl(this);for(var n=e;n<this.pages.length;n++){var r=this.pages[n],o=i.Serializer.createClass("panel");o.originalPage=r,t.addPanel(o);var s=(new i.JsonObject).toJsonObject(r);(new i.JsonObject).toObject(s,o),this.showPageTitles||(o.title="")}return t},t.prototype.createPagesForEveryQuestion=function(e){for(var t=[],n=e;n<this.pages.length;n++){var r=this.pages[n];r.setWasShown(!0);for(var o=0;o<r.elements.length;o++){var s=r.elements[o],a=i.Serializer.createClass(s.getType());if(a){var l=new i.JsonObject;l.lightSerializing=!0;var u=l.toJsonObject(r),c=i.Serializer.createClass(r.getType());c.fromJSON(u),c.name=s.name,c.setSurveyImpl(this),t.push(c);var p=(new i.JsonObject).toJsonObject(s);c.addElement(a),(new i.JsonObject).toObject(p,a);for(var d=0;d<c.questions.length;d++)this.questionHashesAdded(c.questions[d])}}}return t},Object.defineProperty(t.prototype,"isFirstPage",{get:function(){return this.getPropertyValue("isFirstPage")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isLastPage",{get:function(){return this.getPropertyValue("isLastPage")},enumerable:!1,configurable:!0}),t.prototype.updateButtonsVisibility=function(){this.updateIsFirstLastPageState(),this.setPropertyValue("isShowPrevButton",this.calcIsShowPrevButton()),this.setPropertyValue("isShowNextButton",this.calcIsShowNextButton()),this.setPropertyValue("isCompleteButtonVisible",this.calcIsCompleteButtonVisible()),this.setPropertyValue("isPreviewButtonVisible",this.calcIsPreviewButtonVisible()),this.setPropertyValue("isCancelPreviewButtonVisible",this.calcIsCancelPreviewButtonVisible())},Object.defineProperty(t.prototype,"isShowPrevButton",{get:function(){return this.getPropertyValue("isShowPrevButton")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isShowNextButton",{get:function(){return this.getPropertyValue("isShowNextButton")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isCompleteButtonVisible",{get:function(){return this.getPropertyValue("isCompleteButtonVisible")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isPreviewButtonVisible",{get:function(){return this.getPropertyValue("isPreviewButtonVisible")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isCancelPreviewButtonVisible",{get:function(){return this.getPropertyValue("isCancelPreviewButtonVisible")},enumerable:!1,configurable:!0}),t.prototype.updateIsFirstLastPageState=function(){var e=this.currentPage;this.setPropertyValue("isFirstPage",!!e&&e===this.firstVisiblePage),this.setPropertyValue("isLastPage",!!e&&e===this.lastVisiblePage)},t.prototype.calcIsShowPrevButton=function(){if(this.isFirstPage||!this.showPrevButton||"running"!==this.state)return!1;var e=this.visiblePages[this.currentPageNo-1];return this.getPageMaxTimeToFinish(e)<=0},t.prototype.calcIsShowNextButton=function(){return"running"===this.state&&!this.isLastPage&&!this.canBeCompletedByTrigger},t.prototype.calcIsCompleteButtonVisible=function(){var e=this.state;return this.isEditMode&&("running"===this.state&&(this.isLastPage&&!this.isShowPreviewBeforeComplete||this.canBeCompletedByTrigger)||"preview"===e)},t.prototype.calcIsPreviewButtonVisible=function(){return this.isEditMode&&this.isShowPreviewBeforeComplete&&"running"==this.state&&this.isLastPage},t.prototype.calcIsCancelPreviewButtonVisible=function(){return this.isEditMode&&this.isShowPreviewBeforeComplete&&"preview"==this.state},Object.defineProperty(t.prototype,"firstVisiblePage",{get:function(){for(var e=this.pages,t=0;t<e.length;t++)if(this.isPageInVisibleList(e[t]))return e[t];return null},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"lastVisiblePage",{get:function(){for(var e=this.pages,t=e.length-1;t>=0;t--)if(this.isPageInVisibleList(e[t]))return e[t];return null},enumerable:!1,configurable:!0}),t.prototype.doComplete=function(e,t){if(void 0===e&&(e=!1),!this.isCompleted)return this.checkOnCompletingEvent(e,t)?(this.checkOnPageTriggers(!0),this.stopTimer(),this.isCompleted=!0,this.clearUnusedValues(),this.saveDataOnComplete(e,t),this.setCookie(),!0):(this.isCompleted=!1,!1)},t.prototype.saveDataOnComplete=function(e,t){var n=this;void 0===e&&(e=!1);var r=this.hasCookie,o=function(e){l=!0,n.setCompletedState("saving",e)},i=function(e){n.setCompletedState("error",e)},s=function(e){n.setCompletedState("success",e),n.navigateTo()},a=function(e){n.setCompletedState("","")},l=!1,u={isCompleteOnTrigger:e,completeTrigger:t,showSaveInProgress:o,showSaveError:i,showSaveSuccess:s,clearSaveMessages:a,showDataSaving:o,showDataSavingError:i,showDataSavingSuccess:s,showDataSavingClear:a};this.onComplete.fire(this,u),!r&&this.surveyPostId&&this.sendResult(),l||this.navigateTo()},t.prototype.checkOnCompletingEvent=function(e,t){var n={allowComplete:!0,allow:!0,isCompleteOnTrigger:e,completeTrigger:t};return this.onCompleting.fire(this,n),n.allowComplete&&n.allow},t.prototype.start=function(){return!!this.firstPageIsStarted&&(this.isCurrentPageRendering=!0,!this.checkIsPageHasErrors(this.startedPage,!0)&&(this.isStartedState=!1,this.startTimerFromUI(),this.onStarted.fire(this,{}),this.updateVisibleIndexes(),this.currentPage&&this.currentPage.locStrsChanged(),!0))},Object.defineProperty(t.prototype,"isValidatingOnServer",{get:function(){return this.getPropertyValue("isValidatingOnServer",!1)},enumerable:!1,configurable:!0}),t.prototype.setIsValidatingOnServer=function(e){e!=this.isValidatingOnServer&&(this.setPropertyValue("isValidatingOnServer",e),this.onIsValidatingOnServerChanged())},t.prototype.createServerValidationOptions=function(e,t){var n=this,r={data:{},errors:{},survey:this,complete:function(){n.completeServerValidation(r,t)}};if(e&&this.isValidateOnComplete)r.data=this.data;else for(var o=this.activePage.questions,i=0;i<o.length;i++){var s=o[i];if(s.visible){var a=this.getValue(s.getValueName());this.isValueEmpty(a)||(r.data[s.getValueName()]=a)}}return r},t.prototype.onIsValidatingOnServerChanged=function(){},t.prototype.doServerValidation=function(e,t){var n=this;if(void 0===t&&(t=!1),!this.onServerValidateQuestions||this.onServerValidateQuestions.isEmpty)return!1;if(!e&&this.isValidateOnComplete)return!1;this.setIsValidatingOnServer(!0);var r="function"==typeof this.onServerValidateQuestions;return this.serverValidationEventCount=r?1:this.onServerValidateQuestions.length,r?this.onServerValidateQuestions(this,this.createServerValidationOptions(e,t)):this.onServerValidateQuestions.fireByCreatingOptions(this,(function(){return n.createServerValidationOptions(e,t)})),!0},t.prototype.completeServerValidation=function(e,t){if(!(this.serverValidationEventCount>1&&(this.serverValidationEventCount--,e&&e.errors&&0===Object.keys(e.errors).length))&&(this.serverValidationEventCount=0,this.setIsValidatingOnServer(!1),e||e.survey)){var n=e.survey,r=!1;if(e.errors){var o=this.focusOnFirstError;for(var i in e.errors){var s=n.getQuestionByName(i);s&&s.errors&&(r=!0,s.addError(new h.CustomError(e.errors[i],this)),o&&(o=!1,s.page&&(this.currentPage=s.page),s.focus(!0)))}this.fireValidatedErrorsOnPage(this.currentPage)}r||(t?this.showPreviewCore():n.isLastPage?n.doComplete():n.doNextPage())}},t.prototype.doNextPage=function(){var e=this.currentPage;if(this.checkOnPageTriggers(!1),this.isCompleted)this.doComplete(!0);else if(this.sendResultOnPageNext&&this.sendResult(this.surveyPostId,this.clientId,!0),e===this.currentPage){var t=this.visiblePages,n=t.indexOf(this.currentPage);this.currentPage=t[n+1]}},t.prototype.setCompleted=function(e){this.doComplete(!0,e)},t.prototype.canBeCompleted=function(e,t){if(v.settings.triggers.changeNavigationButtonsOnComplete){var n=this.canBeCompletedByTrigger;this.completedByTriggers||(this.completedByTriggers={}),t?this.completedByTriggers[e.id]=e:delete this.completedByTriggers[e.id],n!==this.canBeCompletedByTrigger&&this.updateButtonsVisibility()}},Object.defineProperty(t.prototype,"canBeCompletedByTrigger",{get:function(){return!!this.completedByTriggers&&Object.keys(this.completedByTriggers).length>0},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]}},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"processedCompletedHtml",{get:function(){var e=this.renderedCompletedHtml;return e?this.processHtml(e,"completed"):""},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"processedCompletedBeforeHtml",{get:function(){return this.locCompletedBeforeHtml.textOrHtml},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"processedLoadingHtml",{get:function(){return this.locLoadingHtml.textOrHtml},enumerable:!1,configurable:!0}),t.prototype.getProgressInfo=function(){var e=this.isDesignMode?this.pages:this.visiblePages;return a.SurveyElement.getProgressInfoByElements(e,!1)},Object.defineProperty(t.prototype,"progressText",{get:function(){var e=this.getPropertyValue("progressText","");return e||(this.updateProgressText(),e=this.getPropertyValue("progressText","")),e},enumerable:!1,configurable:!0}),t.prototype.updateProgressText=function(e){void 0===e&&(e=!1),this.isCalculatingProgressText||e&&"pages"==this.progressBarType&&this.onProgressText.isEmpty||(this.isCalculatingProgressText=!0,this.setPropertyValue("progressText",this.getProgressText()),this.setPropertyValue("progressValue",this.getProgress()),this.isCalculatingProgressText=!1)},t.prototype.getProgressText=function(){if(!this.isDesignMode&&null==this.currentPage)return"";var e={questionCount:0,answeredQuestionCount:0,requiredQuestionCount:0,requiredAnsweredQuestionCount:0,text:""},t=this.progressBarType.toLowerCase();if("questions"===t||"requiredquestions"===t||"correctquestions"===t||!this.onProgressText.isEmpty){var n=this.getProgressInfo();e.questionCount=n.questionCount,e.answeredQuestionCount=n.answeredQuestionCount,e.requiredQuestionCount=n.requiredQuestionCount,e.requiredAnsweredQuestionCount=n.requiredAnsweredQuestionCount}return e.text=this.getProgressTextCore(e),this.onProgressText.fire(this,e),e.text},t.prototype.getProgressTextCore=function(e){var t=this.progressBarType.toLowerCase();if("questions"===t)return this.getLocalizationFormatString("questionsProgressText",e.answeredQuestionCount,e.questionCount);if("requiredquestions"===t)return this.getLocalizationFormatString("questionsProgressText",e.requiredAnsweredQuestionCount,e.requiredQuestionCount);if("correctquestions"===t){var n=this.getCorrectedAnswerCount();return this.getLocalizationFormatString("questionsProgressText",n,e.questionCount)}var r=this.isDesignMode?this.pages:this.visiblePages,o=r.indexOf(this.currentPage)+1;return this.getLocalizationFormatString("progressText",o,r.length)},t.prototype.getRootCss=function(){return(new x.CssClassBuilder).append(this.css.root).append(this.css.rootMobile,this.isMobile).append(this.css.rootReadOnly,"display"===this.mode).append(this.css.rootCompact,this.isCompact).toString()},t.prototype.afterRenderSurvey=function(e){var t=this;this.destroyResizeObserver(),Array.isArray(e)&&(e=a.SurveyElement.GetFirstNonTextElement(e));var n=e,r=this.css.variables;if(r){var o=Number.parseFloat(window.getComputedStyle(n).getPropertyValue(r.mobileWidth));if(o){var i=!1;this.resizeObserver=new ResizeObserver((function(){i=!(i||!Object(b.isContainerVisible)(n))&&t.processResponsiveness(n.offsetWidth,o)})),this.resizeObserver.observe(n)}}this.onAfterRenderSurvey.fire(this,{survey:this,htmlElement:e}),this.rootElement=e},t.prototype.processResponsiveness=function(e,t){var n=e<t;return this.isMobile!==n&&(this.setIsMobile(n),!0)},t.prototype.triggerResponsiveness=function(e){this.getAllQuestions().forEach((function(t){t.triggerResponsiveness(e)}))},t.prototype.destroyResizeObserver=function(){this.resizeObserver&&(this.resizeObserver.disconnect(),this.resizeObserver=void 0)},t.prototype.updateQuestionCssClasses=function(e,t){this.onUpdateQuestionCssClasses.fire(this,{question:e,cssClasses:t})},t.prototype.updatePanelCssClasses=function(e,t){this.onUpdatePanelCssClasses.fire(this,{panel:e,cssClasses:t})},t.prototype.updatePageCssClasses=function(e,t){this.onUpdatePageCssClasses.fire(this,{page:e,cssClasses:t})},t.prototype.updateChoiceItemCss=function(e,t){t.question=e,this.onUpdateChoiceItemCss.fire(this,t)},t.prototype.afterRenderPage=function(e){var t=this;this.isDesignMode||this.focusingQuestionInfo||setTimeout((function(){return t.scrollToTopOnPageChange(!t.isFirstPageRendering)}),1),this.focusQuestionInfo(),this.isFirstPageRendering=!1,this.onAfterRenderPage.isEmpty||this.onAfterRenderPage.fire(this,{page:this.activePage,htmlElement:e})},t.prototype.afterRenderHeader=function(e){this.onAfterRenderHeader.isEmpty||this.onAfterRenderHeader.fire(this,{htmlElement:e})},t.prototype.afterRenderQuestion=function(e,t){this.onAfterRenderQuestion.fire(this,{question:e,htmlElement:t})},t.prototype.afterRenderQuestionInput=function(e,t){if(!this.onAfterRenderQuestionInput.isEmpty){var n=e.inputId,r=v.settings.environment.root;if(n&&t.id!==n&&void 0!==r){var o=r.getElementById(n);o&&(t=o)}this.onAfterRenderQuestionInput.fire(this,{question:e,htmlElement:t})}},t.prototype.afterRenderPanel=function(e,t){this.onAfterRenderPanel.fire(this,{panel:e,htmlElement:t})},t.prototype.whenQuestionFocusIn=function(e){this.onFocusInQuestion.fire(this,{question:e})},t.prototype.whenPanelFocusIn=function(e){this.onFocusInPanel.fire(this,{panel:e})},t.prototype.rebuildQuestionChoices=function(){this.getAllQuestions().forEach((function(e){return e.surveyChoiceItemVisibilityChange()}))},t.prototype.canChangeChoiceItemsVisibility=function(){return!this.onShowingChoiceItem.isEmpty},t.prototype.getChoiceItemVisibility=function(e,t,n){var r={question:e,item:t,visible:n};return this.onShowingChoiceItem.fire(this,r),r.visible},t.prototype.loadQuestionChoices=function(e){this.onChoicesLazyLoad.fire(this,e)},t.prototype.getChoiceDisplayValue=function(e){this.onGetChoiceDisplayValue.isEmpty?e.setItems(null):this.onGetChoiceDisplayValue.fire(this,e)},t.prototype.matrixBeforeRowAdded=function(e){this.onMatrixRowAdding.fire(this,e)},t.prototype.matrixRowAdded=function(e,t){this.onMatrixRowAdded.fire(this,{question:e,row:t})},t.prototype.matrixColumnAdded=function(e,t){this.onMatrixColumnAdded.fire(this,{question:e,column:t})},t.prototype.multipleTextItemAdded=function(e,t){this.onMultipleTextItemAdded.fire(this,{question:e,item:t})},t.prototype.getQuestionByValueNameFromArray=function(e,t,n){var r=this.getQuestionsByValueName(e);if(r){for(var o=0;o<r.length;o++){var i=r[o].getQuestionFromArray(t,n);if(i)return i}return null}},t.prototype.matrixRowRemoved=function(e,t,n){this.onMatrixRowRemoved.fire(this,{question:e,rowIndex:t,row:n})},t.prototype.matrixRowRemoving=function(e,t,n){var r={question:e,rowIndex:t,row:n,allow:!0};return this.onMatrixRowRemoving.fire(this,r),r.allow},t.prototype.matrixAllowRemoveRow=function(e,t,n){var r={question:e,rowIndex:t,row:n,allow:!0};return this.onMatrixRenderRemoveButton.fire(this,r),r.allow},t.prototype.matrixCellCreating=function(e,t){t.question=e,this.onMatrixCellCreating.fire(this,t)},t.prototype.matrixCellCreated=function(e,t){t.question=e,this.onMatrixCellCreated.fire(this,t)},t.prototype.matrixAfterCellRender=function(e,t){t.question=e,this.onAfterRenderMatrixCell.fire(this,t)},t.prototype.matrixCellValueChanged=function(e,t){t.question=e,this.onMatrixCellValueChanged.fire(this,t)},t.prototype.matrixCellValueChanging=function(e,t){t.question=e,this.onMatrixCellValueChanging.fire(this,t)},Object.defineProperty(t.prototype,"isValidateOnValueChanging",{get:function(){return"onValueChanging"===this.checkErrorsMode},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isValidateOnValueChanged",{get:function(){return"onValueChanged"===this.checkErrorsMode},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isValidateOnComplete",{get:function(){return"onComplete"===this.checkErrorsMode},enumerable:!1,configurable:!0}),t.prototype.matrixCellValidate=function(e,t){return t.question=e,this.onMatrixCellValidate.fire(this,t),t.error?new h.CustomError(t.error,this):null},t.prototype.dynamicPanelAdded=function(e,t,n){if(this.isLoadingFromJson||this.updateVisibleIndexes(),!this.onDynamicPanelAdded.isEmpty){var r=e.panels;void 0===t&&(n=r[t=r.length-1]),this.onDynamicPanelAdded.fire(this,{question:e,panel:n,panelIndex:t})}},t.prototype.dynamicPanelRemoved=function(e,t,n){for(var r=n?n.questions:[],o=0;o<r.length;o++)r[o].clearOnDeletingContainer();this.updateVisibleIndexes(),this.onDynamicPanelRemoved.fire(this,{question:e,panelIndex:t,panel:n})},t.prototype.dynamicPanelRemoving=function(e,t,n){var r={question:e,panelIndex:t,panel:n,allow:!0};return this.onDynamicPanelRemoving.fire(this,r),r.allow},t.prototype.dynamicPanelItemValueChanged=function(e,t){t.question=e,t.panelIndex=t.itemIndex,t.panelData=t.itemValue,this.onDynamicPanelItemValueChanged.fire(this,t)},t.prototype.dragAndDropAllow=function(e){return this.onDragDropAllow.fire(this,e),e.allow},t.prototype.elementContentVisibilityChanged=function(e){this.currentPage&&this.currentPage.ensureRowsVisibility(),this.onElementContentVisibilityChanged.fire(this,{element:e})},t.prototype.getUpdatedPanelFooterActions=function(e,t,n){var r={question:n,panel:e,actions:t};return this.onGetPanelFooterActions.fire(this,r),r.actions},t.prototype.getUpdatedElementTitleActions=function(e,t){return e.isPage?this.getUpdatedPageTitleActions(e,t):e.isPanel?this.getUpdatedPanelTitleActions(e,t):this.getUpdatedQuestionTitleActions(e,t)},t.prototype.getUpdatedQuestionTitleActions=function(e,t){var n={question:e,titleActions:t};return this.onGetQuestionTitleActions.fire(this,n),n.titleActions},t.prototype.getUpdatedPanelTitleActions=function(e,t){var n={panel:e,titleActions:t};return this.onGetPanelTitleActions.fire(this,n),n.titleActions},t.prototype.getUpdatedPageTitleActions=function(e,t){var n={page:e,titleActions:t};return this.onGetPageTitleActions.fire(this,n),n.titleActions},t.prototype.getUpdatedMatrixRowActions=function(e,t,n){var r={question:e,actions:n,row:t};return this.onGetMatrixRowActions.fire(this,r),r.actions},t.prototype.scrollElementToTop=function(e,t,n,r){var o={element:e,question:t,page:n,elementId:r,cancel:!1};this.onScrollingElementToTop.fire(this,o),o.cancel||a.SurveyElement.ScrollElementToTop(o.elementId)},t.prototype.uploadFiles=function(e,t,n,r){this.onUploadFiles.isEmpty?r("error",n):this.onUploadFiles.fire(this,{question:e,name:t,files:n||[],callback:r}),this.surveyPostId&&this.uploadFilesCore(t,n,r)},t.prototype.downloadFile=function(e,t,n,r){this.onDownloadFile.isEmpty&&r&&r("success",n.content||n),this.onDownloadFile.fire(this,{question:e,name:t,content:n.content||n,fileValue:n,callback:r})},t.prototype.clearFiles=function(e,t,n,r,o){this.onClearFiles.isEmpty&&o&&o("success",n),this.onClearFiles.fire(this,{question:e,name:t,value:n,fileName:r,callback:o})},t.prototype.updateChoicesFromServer=function(e,t,n){var r={question:e,choices:t,serverResult:n};return this.onLoadChoicesFromServer.fire(this,r),r.choices},t.prototype.loadedChoicesFromServer=function(e){this.locStrsChanged()},t.prototype.createSurveyService=function(){return new p.dxSurveyService},t.prototype.uploadFilesCore=function(e,t,n){var r=this,o=[];t.forEach((function(e){n&&n("uploading",e),r.createSurveyService().sendFile(r.surveyPostId,e,(function(r,i){r?(o.push({content:i,file:e}),o.length===t.length&&n&&n("success",o)):n&&n("error",{response:i,file:e})}))}))},t.prototype.getPage=function(e){return this.pages[e]},t.prototype.addPage=function(e,t){void 0===t&&(t=-1),null!=e&&(t<0||t>=this.pages.length?this.pages.push(e):this.pages.splice(t,0,e))},t.prototype.addNewPage=function(e,t){void 0===e&&(e=null),void 0===t&&(t=-1);var n=this.createNewPage(e);return this.addPage(n,t),n},t.prototype.removePage=function(e){var t=this.pages.indexOf(e);t<0||(this.pages.splice(t,1),this.currentPage==e&&(this.currentPage=this.pages.length>0?this.pages[0]:null))},t.prototype.getQuestionByName=function(e,t){if(void 0===t&&(t=!1),!e)return null;t&&(e=e.toLowerCase());var n=(t?this.questionHashes.namesInsensitive:this.questionHashes.names)[e];return n?n[0]:null},t.prototype.findQuestionByName=function(e){return this.getQuestionByName(e)},t.prototype.getQuestionByValueName=function(e,t){void 0===t&&(t=!1);var n=this.getQuestionsByValueName(e,t);return n?n[0]:null},t.prototype.getQuestionsByValueName=function(e,t){return void 0===t&&(t=!1),(t?this.questionHashes.valueNamesInsensitive:this.questionHashes.valueNames)[e]||null},t.prototype.getCalculatedValueByName=function(e){for(var t=0;t<this.calculatedValues.length;t++)if(e==this.calculatedValues[t].name)return this.calculatedValues[t];return null},t.prototype.getQuestionsByNames=function(e,t){void 0===t&&(t=!1);var n=[];if(!e)return n;for(var r=0;r<e.length;r++)if(e[r]){var o=this.getQuestionByName(e[r],t);o&&n.push(o)}return n},t.prototype.getPageByElement=function(e){for(var t=0;t<this.pages.length;t++){var n=this.pages[t];if(n.containsElement(e))return n}return null},t.prototype.getPageByQuestion=function(e){return this.getPageByElement(e)},t.prototype.getPageByName=function(e){for(var t=0;t<this.pages.length;t++)if(this.pages[t].name==e)return this.pages[t];return null},t.prototype.getPagesByNames=function(e){var t=[];if(!e)return t;for(var n=0;n<e.length;n++)if(e[n]){var r=this.getPageByName(e[n]);r&&t.push(r)}return t},t.prototype.getAllQuestions=function(e,t,n){void 0===e&&(e=!1),void 0===t&&(t=!1),void 0===n&&(n=!1),n&&(t=!1);for(var r=[],o=0;o<this.pages.length;o++)this.pages[o].addQuestionsToList(r,e,t);if(!n)return r;var i=[];return r.forEach((function(t){i.push(t),t.getNestedQuestions(e).forEach((function(e){return i.push(e)}))})),i},t.prototype.getQuizQuestions=function(){for(var e=new Array,t=this.getPageStartIndex();t<this.pages.length;t++)if(this.pages[t].isVisible)for(var n=this.pages[t].questions,r=0;r<n.length;r++){var o=n[r];o.quizQuestionCount>0&&e.push(o)}return e},t.prototype.getPanelByName=function(e,t){void 0===t&&(t=!1);var n=this.getAllPanels();t&&(e=e.toLowerCase());for(var r=0;r<n.length;r++){var o=n[r].name;if(t&&(o=o.toLowerCase()),o==e)return n[r]}return null},t.prototype.getAllPanels=function(e,t){void 0===e&&(e=!1),void 0===t&&(t=!1);for(var n=new Array,r=0;r<this.pages.length;r++)this.pages[r].addPanelsIntoList(n,e,t);return n},t.prototype.createNewPage=function(e){var t=i.Serializer.createClass("page");return t.name=e,t},t.prototype.questionOnValueChanging=function(e,t){if(this.editingObj){var n=i.Serializer.findProperty(this.editingObj.getType(),e);n&&(t=n.settingValue(this.editingObj,t))}if(this.onValueChanging.isEmpty)return t;var r={name:e,question:this.getQuestionByValueName(e),value:this.getUnbindValue(t),oldValue:this.getValue(e)};return this.onValueChanging.fire(this,r),r.value},t.prototype.updateQuestionValue=function(e,t){if(!this.isLoadingFromJson){var n=this.getQuestionsByValueName(e);if(n)for(var r=0;r<n.length;r++){var o=n[r].value;(o===t&&Array.isArray(o)&&this.editingObj||!this.isTwoValueEquals(o,t))&&n[r].updateValueFromSurvey(t)}}},t.prototype.checkQuestionErrorOnValueChanged=function(e){!this.isNavigationButtonPressed&&(this.isValidateOnValueChanged||e.getAllErrors().length>0)&&this.checkQuestionErrorOnValueChangedCore(e)},t.prototype.checkQuestionErrorOnValueChangedCore=function(e){var t=e.getAllErrors().length,n=!e.validate(!0,{isOnValueChanged:!this.isValidateOnValueChanging}),r=this.checkErrorsMode.indexOf("Value")>-1;return e.page&&r&&(t>0||e.getAllErrors().length>0)&&this.fireValidatedErrorsOnPage(e.page),n},t.prototype.checkErrorsOnValueChanging=function(e,t){if(this.isLoadingFromJson)return!1;var n=this.getQuestionsByValueName(e);if(!n)return!1;for(var r=!1,o=0;o<n.length;o++){var i=n[o];this.isTwoValueEquals(i.valueForSurvey,t)||(i.value=t),this.checkQuestionErrorOnValueChangedCore(i)&&(r=!0),r=r||i.errors.length>0}return r},t.prototype.notifyQuestionOnValueChanged=function(e,t){if(!this.isLoadingFromJson){var n=this.getQuestionsByValueName(e);if(n)for(var r=0;r<n.length;r++){var o=n[r];this.checkQuestionErrorOnValueChanged(o),o.onSurveyValueChanged(t),this.onValueChanged.fire(this,{name:e,question:o,value:t})}else this.onValueChanged.fire(this,{name:e,question:null,value:t});this.isDisposed||(this.checkElementsBindings(e,t),this.notifyElementsOnAnyValueOrVariableChanged(e))}},t.prototype.checkElementsBindings=function(e,t){this.isRunningElementsBindings=!0;for(var n=0;n<this.pages.length;n++)this.pages[n].checkBindings(e,t);this.isRunningElementsBindings=!1,this.updateVisibleIndexAfterBindings&&(this.updateVisibleIndexes(),this.updateVisibleIndexAfterBindings=!1)},t.prototype.notifyElementsOnAnyValueOrVariableChanged=function(e){if("processing"!==this.isEndLoadingFromJson)if(this.isRunningConditions)this.conditionNotifyElementsOnAnyValueOrVariableChanged=!0;else{for(var t=0;t<this.pages.length;t++)this.pages[t].onAnyValueChanged(e);this.isEndLoadingFromJson||this.locStrsChanged()}},t.prototype.updateAllQuestionsValue=function(){for(var e=this.getAllQuestions(),t=0;t<e.length;t++){var n=e[t],r=n.getValueName();n.updateValueFromSurvey(this.getValue(r)),n.requireUpdateCommentValue&&n.updateCommentFromSurvey(this.getComment(r))}},t.prototype.notifyAllQuestionsOnValueChanged=function(){for(var e=this.getAllQuestions(),t=0;t<e.length;t++)e[t].onSurveyValueChanged(this.getValue(e[t].getValueName()))},t.prototype.checkOnPageTriggers=function(e){for(var t=this.getCurrentPageQuestions(!0),n={},r=0;r<t.length;r++){var o=t[r].getValueName();n[o]=this.getValue(o)}this.addCalculatedValuesIntoFilteredValues(n),this.checkTriggers(n,!0,e)},t.prototype.getCurrentPageQuestions=function(e){void 0===e&&(e=!1);var t=[],n=this.currentPage;if(!n)return t;for(var r=0;r<n.questions.length;r++){var o=n.questions[r];(e||o.visible)&&o.name&&t.push(o)}return t},t.prototype.checkTriggers=function(e,t,n){if(void 0===n&&(n=!1),!this.isCompleted&&0!=this.triggers.length&&!this.isDisplayMode)if(this.isTriggerIsRunning)for(var r in this.triggerValues=this.getFilteredValues(),e)this.triggerKeys[r]=e[r];else{this.isTriggerIsRunning=!0,this.triggerKeys=e,this.triggerValues=this.getFilteredValues();for(var o=this.getFilteredProperties(),i=this.canBeCompletedByTrigger,s=0;s<this.triggers.length;s++)this.triggers[s].checkExpression(t,n,this.triggerKeys,this.triggerValues,o);i!==this.canBeCompletedByTrigger&&this.updateButtonsVisibility(),this.isTriggerIsRunning=!1}},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.runConditions=function(){if(!this.isCompleted&&"processing"!==this.isEndLoadingFromJson&&!this.isRunningConditions){this.conditionValues=this.getFilteredValues();var e=this.getFilteredProperties(),t=this.pages.indexOf(this.currentPage);this.runConditionsCore(e),this.checkIfNewPagesBecomeVisible(t),this.conditionValues=null,this.isValueChangedOnRunningCondition&&this.conditionRunnerCounter<v.settings.maxConditionRunCountOnValueChanged?(this.isValueChangedOnRunningCondition=!1,this.conditionRunnerCounter++,this.runConditions()):(this.isValueChangedOnRunningCondition=!1,this.conditionRunnerCounter=0,this.conditionUpdateVisibleIndexes&&(this.conditionUpdateVisibleIndexes=!1,this.updateVisibleIndexes()),this.conditionNotifyElementsOnAnyValueOrVariableChanged&&(this.conditionNotifyElementsOnAnyValueOrVariableChanged=!1,this.notifyElementsOnAnyValueOrVariableChanged("")))}},t.prototype.runConditionOnValueChanged=function(e,t){this.isRunningConditions?(this.conditionValues[e]=t,this.isValueChangedOnRunningCondition=!0):this.runConditions()},t.prototype.runConditionsCore=function(t){for(var n=this.pages,r=0;r<this.calculatedValues.length;r++)this.calculatedValues[r].resetCalculation();for(r=0;r<this.calculatedValues.length;r++)this.calculatedValues[r].doCalculation(this.calculatedValues,this.conditionValues,t);for(e.prototype.runConditionCore.call(this,this.conditionValues,t),r=0;r<n.length;r++)n[r].runCondition(this.conditionValues,t)},t.prototype.checkIfNewPagesBecomeVisible=function(e){var t=this.pages.indexOf(this.currentPage);if(!(t<=e+1))for(var n=e+1;n<t;n++)if(this.pages[n].isVisible){this.currentPage=this.pages[n];break}},t.prototype.sendResult=function(e,t,n){if(void 0===e&&(e=null),void 0===t&&(t=null),void 0===n&&(n=!1),this.isEditMode&&(n&&this.onPartialSend&&this.onPartialSend.fire(this,null),!e&&this.surveyPostId&&(e=this.surveyPostId),e&&(t&&(this.clientId=t),!n||this.clientId))){var r=this;this.surveyShowDataSaving&&this.setCompletedState("saving",""),this.createSurveyService().sendResult(e,this.data,(function(e,t,n){r.surveyShowDataSaving&&(e?r.setCompletedState("success",""):r.setCompletedState("error",t)),r.onSendResult.fire(r,{success:e,response:t,request:n})}),this.clientId,n)}},t.prototype.getResult=function(e,t){var n=this;this.createSurveyService().getResult(e,t,(function(e,t,r,o){n.onGetResult.fire(n,{success:e,data:t,dataList:r,response:o})}))},t.prototype.loadSurveyFromService=function(e,t){void 0===e&&(e=null),void 0===t&&(t=null),e&&(this.surveyId=e),t&&(this.clientId=t);var n=this;this.isLoading=!0,this.onLoadingSurveyFromService(),t?this.createSurveyService().getSurveyJsonAndIsCompleted(this.surveyId,this.clientId,(function(e,t,r,o){n.isLoading=!1,e&&(n.isCompletedBefore="completed"==r,n.loadSurveyFromServiceJson(t))})):this.createSurveyService().loadSurvey(this.surveyId,(function(e,t,r){n.isLoading=!1,e&&n.loadSurveyFromServiceJson(t)}))},t.prototype.loadSurveyFromServiceJson=function(e){e&&(this.fromJSON(e),this.notifyAllQuestionsOnValueChanged(),this.onLoadSurveyFromService(),this.onLoadedSurveyFromService.fire(this,{}))},t.prototype.onLoadingSurveyFromService=function(){},t.prototype.onLoadSurveyFromService=function(){},t.prototype.resetVisibleIndexes=function(){for(var e=this.getAllQuestions(!0),t=0;t<e.length;t++)e[t].setVisibleIndex(-1);this.updateVisibleIndexes()},t.prototype.updateVisibleIndexes=function(){if(!this.isLoadingFromJson&&!this.isEndLoadingFromJson)if(this.isRunningConditions&&this.onQuestionVisibleChanged.isEmpty&&this.onPageVisibleChanged.isEmpty)this.conditionUpdateVisibleIndexes=!0;else if(this.isRunningElementsBindings)this.updateVisibleIndexAfterBindings=!0;else{if(this.updatePageVisibleIndexes(this.showPageNumbers),"onPage"==this.showQuestionNumbers)for(var e=this.visiblePages,t=0;t<e.length;t++)e[t].setVisibleIndex(0);else{var n="on"==this.showQuestionNumbers?0:-1;for(t=0;t<this.pages.length;t++)n+=this.pages[t].setVisibleIndex(n)}this.updateProgressText(!0)}},t.prototype.updatePageVisibleIndexes=function(e){this.updateButtonsVisibility();for(var t=0,n=0;n<this.pages.length;n++){var r=this.pages[n],o=r.isVisible&&(n>0||!r.isStartPage);r.visibleIndex=o?t++:-1,r.num=o?r.visibleIndex+1:-1}},t.prototype.fromJSON=function(e){if(e){this.questionHashesClear(),this.jsonErrors=null;var t=new i.JsonObject;t.toObject(e,this),t.errors.length>0&&(this.jsonErrors=t.errors),this.onStateAndCurrentPageChanged(),this.updateState()}},t.prototype.setJsonObject=function(e){this.fromJSON(e)},t.prototype.endLoadingFromJson=function(){this.isEndLoadingFromJson="processing",this.onFirstPageIsStartedChanged(),this.onQuestionsOnPageModeChanged("standard"),e.prototype.endLoadingFromJson.call(this),this.hasCookie&&(this.isCompletedBefore=!0),this.doElementsOnLoad(),this.isEndLoadingFromJson="conditions",this.runConditions(),this.notifyElementsOnAnyValueOrVariableChanged(""),this.isEndLoadingFromJson=null,this.updateVisibleIndexes(),this.updateHasLogo(),this.updateRenderBackgroundImage(),this.updateCurrentPage(),this.hasDescription=!!this.description,this.setCalculatedWidthModeUpdater()},t.prototype.updateNavigationCss=function(){this.navigationBar&&(this.updateNavigationBarCss(),this.updateNavigationItemCssCallback&&this.updateNavigationItemCssCallback())},t.prototype.updateNavigationBarCss=function(){var e=this.navigationBar;e.cssClasses=this.css.actionBar,e.containerCss=this.css.footer},t.prototype.createNavigationBar=function(){var e=new w.ActionContainer;return e.setItems(this.createNavigationActions()),e},t.prototype.createNavigationActions=function(){var e=this,t="sv-nav-btn",n=new C.Action({id:"sv-nav-start",visible:new s.ComputedUpdater((function(){return e.isShowStartingPage})),visibleIndex:10,locTitle:this.locStartSurveyText,action:function(){return e.start()},component:t}),r=new C.Action({id:"sv-nav-prev",visible:new s.ComputedUpdater((function(){return e.isShowPrevButton})),visibleIndex:20,data:{mouseDown:function(){return e.navigationMouseDown()}},locTitle:this.locPagePrevText,action:function(){return e.prevPage()},component:t}),o=new C.Action({id:"sv-nav-next",visible:new s.ComputedUpdater((function(){return e.isShowNextButton})),visibleIndex:30,data:{mouseDown:function(){return e.nextPageMouseDown()}},locTitle:this.locPageNextText,action:function(){return e.nextPageUIClick()},component:t}),i=new C.Action({id:"sv-nav-preview",visible:new s.ComputedUpdater((function(){return e.isPreviewButtonVisible})),visibleIndex:40,data:{mouseDown:function(){return e.navigationMouseDown()}},locTitle:this.locPreviewText,action:function(){return e.showPreview()},component:t}),a=new C.Action({id:"sv-nav-complete",visible:new s.ComputedUpdater((function(){return e.isCompleteButtonVisible})),visibleIndex:50,data:{mouseDown:function(){return e.navigationMouseDown()}},locTitle:this.locCompleteText,action:function(){return e.completeLastPage()},component:t});return this.updateNavigationItemCssCallback=function(){n.innerCss=e.cssNavigationStart,r.innerCss=e.cssNavigationPrev,o.innerCss=e.cssNavigationNext,i.innerCss=e.cssNavigationPreview,a.innerCss=e.cssNavigationComplete},[n,r,o,i,a]},t.prototype.onBeforeCreating=function(){},t.prototype.onCreating=function(){},t.prototype.getProcessedTextValue=function(e){if(this.getProcessedTextValueCore(e),!this.onProcessTextValue.isEmpty){var t=this.isValueEmpty(e.value);this.onProcessTextValue.fire(this,e),e.isExists=e.isExists||t&&!this.isValueEmpty(e.value)}},t.prototype.getBuiltInVariableValue=function(e){if("pageno"===e){var t=this.currentPage;return null!=t?this.visiblePages.indexOf(t)+1:0}return"pagecount"===e?this.visiblePageCount:"correctedanswers"===e||"correctanswers"===e||"correctedanswercount"===e?this.getCorrectedAnswerCount():"incorrectedanswers"===e||"incorrectanswers"===e||"incorrectedanswercount"===e?this.getInCorrectedAnswerCount():"questioncount"===e?this.getQuizQuestionCount():void 0},t.prototype.getProcessedTextValueCore=function(e){var t=e.name.toLocaleLowerCase();if(-1===["no","require","title"].indexOf(t)){var n=this.getBuiltInVariableValue(t);if(void 0!==n)return e.isExists=!0,void(e.value=n);if("locale"===t)return e.isExists=!0,void(e.value=this.locale?this.locale:d.surveyLocalization.defaultLocale);var r=this.getVariable(t);if(void 0!==r)return e.isExists=!0,void(e.value=r);var o=this.getFirstName(t);if(o){var i=o.useDisplayValuesInDynamicTexts;e.isExists=!0;var s=o.getValueName().toLowerCase();t=(t=s+t.substring(s.length)).toLocaleLowerCase();var a={};return a[s]=e.returnDisplayValue&&i?o.getDisplayValue(!1,void 0):o.value,void(e.value=(new c.ProcessValue).getValue(t,a))}this.getProcessedValuesWithoutQuestion(e)}},t.prototype.getProcessedValuesWithoutQuestion=function(e){var t=this.getValue(e.name);if(void 0!==t)return e.isExists=!0,void(e.value=t);var n=new c.ProcessValue,r=n.getFirstName(e.name);if(r!==e.name){var i={},s=this.getValue(r);o.Helpers.isValueEmpty(s)&&(s=this.getVariable(r)),o.Helpers.isValueEmpty(s)||(i[r]=s,e.value=n.getValue(e.name,i),e.isExists=n.hasValue(e.name,i))}},t.prototype.getFirstName=function(e){var t;e=e.toLowerCase();do{t=this.getQuestionByValueName(e,!0),e=this.reduceFirstName(e)}while(!t&&e);return t},t.prototype.reduceFirstName=function(e){var t=e.lastIndexOf("."),n=e.lastIndexOf("[");if(t<0&&n<0)return"";var r=Math.max(t,n);return e.substring(0,r)},t.prototype.clearUnusedValues=function(){for(var e=this.getAllQuestions(),t=0;t<e.length;t++)e[t].clearUnusedValues();this.clearInvisibleQuestionValues()},t.prototype.hasVisibleQuestionByValueName=function(e){var t=this.getQuestionsByValueName(e);if(!t)return!1;for(var n=0;n<t.length;n++){var r=t[n];if(r.isVisible&&r.isParentVisible&&!r.parentQuestion)return!0}return!1},t.prototype.questionCountByValueName=function(e){var t=this.getQuestionsByValueName(e);return t?t.length:0},t.prototype.clearInvisibleQuestionValues=function(){for(var e="none"===this.clearInvisibleValues?"none":"onComplete",t=this.getAllQuestions(),n=0;n<t.length;n++)t[n].clearValueIfInvisible(e)},t.prototype.getVariable=function(e){if(!e)return null;e=e.toLowerCase();var t=this.variablesHash[e];return this.isValueEmpty(t)&&(e.indexOf(".")>-1||e.indexOf("[")>-1)&&(new c.ProcessValue).hasValue(e,this.variablesHash)?(new c.ProcessValue).getValue(e,this.variablesHash):t},t.prototype.setVariable=function(e,t){e&&(this.valuesHash&&delete this.valuesHash[e],e=e.toLowerCase(),this.variablesHash[e]=t,this.notifyElementsOnAnyValueOrVariableChanged(e),this.runConditionOnValueChanged(e,t),this.onVariableChanged.fire(this,{name:e,value:t}))},t.prototype.getVariableNames=function(){var e=[];for(var t in this.variablesHash)e.push(t);return e},t.prototype.getUnbindValue=function(e){return this.editingObj?e:o.Helpers.getUnbindValue(e)},t.prototype.getValue=function(e){if(!e||0==e.length)return null;var t=this.getDataValueCore(this.valuesHash,e);return this.getUnbindValue(t)},t.prototype.setValue=function(e,t,n,r){void 0===n&&(n=!1),void 0===r&&(r=!0);var o=t;if(r&&(o=this.questionOnValueChanging(e,t)),(!this.isValidateOnValueChanging||!this.checkErrorsOnValueChanging(e,o))&&(this.editingObj||!this.isValueEqual(e,o)||!this.isTwoValueEquals(o,t))){var i=this.getValue(e);this.isValueEmpty(o,!1)?this.deleteDataValueCore(this.valuesHash,e):(o=this.getUnbindValue(o),this.setDataValueCore(this.valuesHash,e,o)),this.updateOnSetValue(e,o,i,n,r)}},t.prototype.updateOnSetValue=function(e,t,n,r,o){if(void 0===r&&(r=!1),void 0===o&&(o=!0),this.updateQuestionValue(e,t),!0!==r&&!this.isDisposed&&!this.isRunningElementsBindings){var i={};i[e]={newValue:t,oldValue:n},this.runConditionOnValueChanged(e,t),this.checkTriggers(i,!1),o&&this.notifyQuestionOnValueChanged(e,t),"text"!==r&&this.tryGoNextPageAutomatic(e)}},t.prototype.isValueEqual=function(e,t){""!==t&&void 0!==t||(t=null);var n=this.getValue(e);return""!==n&&void 0!==n||(n=null),null===t||null===n?t===n:this.isTwoValueEquals(t,n)},t.prototype.doOnPageAdded=function(e){if(e.setSurveyImpl(this),e.name||(e.name=this.generateNewName(this.pages,"page")),this.questionHashesPanelAdded(e),this.updateVisibleIndexes(),!this.runningPages){this.isLoadingFromJson||(this.updateProgressText(),this.updateCurrentPage());var t={page:e};this.onPageAdded.fire(this,t)}},t.prototype.doOnPageRemoved=function(e){e.setSurveyImpl(null),this.runningPages||(e===this.currentPage&&this.updateCurrentPage(),this.updateVisibleIndexes(),this.updateProgressText(),this.updateLazyRenderingRowsOnRemovingElements())},t.prototype.generateNewName=function(e,t){for(var n={},r=0;r<e.length;r++)n[e[r].name]=!0;for(var o=1;n[t+o];)o++;return t+o},t.prototype.tryGoNextPageAutomatic=function(e){if(!this.isEndLoadingFromJson&&this.goNextPageAutomatic&&this.currentPage){var t=this.getQuestionByValueName(e);if(t&&(!t||t.visible&&t.supportGoNextPageAutomatic())&&(t.validate(!1)||t.supportGoNextPageError())){var n=this.getCurrentPageQuestions();if(!(n.indexOf(t)<0)){for(var r=0;r<n.length;r++)if(n[r].hasInput&&n[r].isEmpty())return;this.checkIsCurrentPageHasErrors(!1)||(this.isLastPage?!0===this.goNextPageAutomatic&&this.allowCompleteSurveyAutomatic&&(this.isShowPreviewBeforeComplete?this.showPreview():this.completeLastPage()):this.nextPage())}}}},t.prototype.getComment=function(e){return this.getValue(e+this.commentSuffix)||""},t.prototype.setComment=function(e,t,n){if(void 0===n&&(n=!1),t||(t=""),!this.isTwoValueEquals(t,this.getComment(e))){var r=e+this.commentSuffix;this.isValueEmpty(t)?this.deleteDataValueCore(this.valuesHash,r):this.setDataValueCore(this.valuesHash,r,t);var o=this.getQuestionsByValueName(e);if(o)for(var i=0;i<o.length;i++)o[i].updateCommentFromSurvey(t),this.checkQuestionErrorOnValueChanged(o[i]);n||this.runConditionOnValueChanged(e,this.getValue(e)),"text"!==n&&this.tryGoNextPageAutomatic(e);var s=this.getQuestionByName(e);s&&this.onValueChanged.fire(this,{name:r,question:s,value:t})}},t.prototype.clearValue=function(e){this.setValue(e,null),this.setComment(e,null)},Object.defineProperty(t.prototype,"clearValueOnDisableItems",{get:function(){return this.getPropertyValue("clearValueOnDisableItems",!1)},set:function(e){this.setPropertyValue("clearValueOnDisableItems",e)},enumerable:!1,configurable:!0}),t.prototype.getQuestionClearIfInvisible=function(e){return this.isShowingPreview||this.runningPages?"none":"default"!==e?e:this.clearInvisibleValues},t.prototype.questionVisibilityChanged=function(e,t){this.updateVisibleIndexes(),this.onQuestionVisibleChanged.fire(this,{question:e,name:e.name,visible:t})},t.prototype.pageVisibilityChanged=function(e,t){this.isLoadingFromJson||((t&&!this.currentPage||e===this.currentPage)&&this.updateCurrentPage(),this.updateVisibleIndexes(),this.onPageVisibleChanged.fire(this,{page:e,visible:t}))},t.prototype.panelVisibilityChanged=function(e,t){this.updateVisibleIndexes(),this.onPanelVisibleChanged.fire(this,{panel:e,visible:t})},t.prototype.questionCreated=function(e){this.onQuestionCreated.fire(this,{question:e})},t.prototype.questionAdded=function(e,t,n,r){e.name||(e.name=this.generateNewName(this.getAllQuestions(!1,!0),"question")),e.page&&this.questionHashesAdded(e),this.currentPage||this.updateCurrentPage(),this.updateVisibleIndexes(),this.setCalculatedWidthModeUpdater(),(!this.isMovingQuestion||this.isDesignMode&&!v.settings.supportCreatorV2)&&this.onQuestionAdded.fire(this,{question:e,name:e.name,index:t,parent:n,page:r,parentPanel:n,rootPanel:r})},t.prototype.questionRemoved=function(e){this.questionHashesRemoved(e,e.name,e.getValueName()),this.updateVisibleIndexes(),this.onQuestionRemoved.fire(this,{question:e,name:e.name}),this.updateLazyRenderingRowsOnRemovingElements()},t.prototype.questionRenamed=function(e,t,n){this.questionHashesRemoved(e,t,n),this.questionHashesAdded(e)},t.prototype.questionHashesClear=function(){this.questionHashes.names={},this.questionHashes.namesInsensitive={},this.questionHashes.valueNames={},this.questionHashes.valueNamesInsensitive={}},t.prototype.questionHashesPanelAdded=function(e){if(!this.isLoadingFromJson)for(var t=e.questions,n=0;n<t.length;n++)this.questionHashesAdded(t[n])},t.prototype.questionHashesAdded=function(e){this.questionHashAddedCore(this.questionHashes.names,e,e.name),this.questionHashAddedCore(this.questionHashes.namesInsensitive,e,e.name.toLowerCase()),this.questionHashAddedCore(this.questionHashes.valueNames,e,e.getValueName()),this.questionHashAddedCore(this.questionHashes.valueNamesInsensitive,e,e.getValueName().toLowerCase())},t.prototype.questionHashesRemoved=function(e,t,n){t&&(this.questionHashRemovedCore(this.questionHashes.names,e,t),this.questionHashRemovedCore(this.questionHashes.namesInsensitive,e,t.toLowerCase())),n&&(this.questionHashRemovedCore(this.questionHashes.valueNames,e,n),this.questionHashRemovedCore(this.questionHashes.valueNamesInsensitive,e,n.toLowerCase()))},t.prototype.questionHashAddedCore=function(e,t,n){var r;(r=e[n])?(r=e[n]).indexOf(t)<0&&r.push(t):e[n]=[t]},t.prototype.questionHashRemovedCore=function(e,t,n){var r=e[n];if(r){var o=r.indexOf(t);o>-1&&r.splice(o,1),0==r.length&&delete e[n]}},t.prototype.panelAdded=function(e,t,n,r){e.name||(e.name=this.generateNewName(this.getAllPanels(!1,!0),"panel")),this.questionHashesPanelAdded(e),this.updateVisibleIndexes(),this.onPanelAdded.fire(this,{panel:e,name:e.name,index:t,parent:n,page:r,parentPanel:n,rootPanel:r})},t.prototype.panelRemoved=function(e){this.updateVisibleIndexes(),this.onPanelRemoved.fire(this,{panel:e,name:e.name}),this.updateLazyRenderingRowsOnRemovingElements()},t.prototype.validateQuestion=function(e){if(this.onValidateQuestion.isEmpty)return null;var t={name:e.name,question:e,value:e.value,error:null};return this.onValidateQuestion.fire(this,t),t.error?new h.CustomError(t.error,this):null},t.prototype.validatePanel=function(e){if(this.onValidatePanel.isEmpty)return null;var t={name:e.name,panel:e,error:null};return this.onValidatePanel.fire(this,t),t.error?new h.CustomError(t.error,this):null},t.prototype.processHtml=function(e,t){t||(t="");var n={html:e,reason:t};return this.onProcessHtml.fire(this,n),this.processText(n.html,!0)},t.prototype.processText=function(e,t){return this.processTextEx(e,t,!1).text},t.prototype.processTextEx=function(e,t,n){var r={text:this.processTextCore(e,t,n),hasAllValuesOnLastRun:!0};return r.hasAllValuesOnLastRun=this.textPreProcessor.hasAllValuesOnLastRun,r},t.prototype.processTextCore=function(e,t,n){return void 0===n&&(n=!1),this.isDesignMode?e:this.textPreProcessor.process(e,t,n)},t.prototype.getSurveyMarkdownHtml=function(e,t,n){var r={element:e,text:t,name:n,html:null};return this.onTextMarkdown.fire(this,r),r.html},t.prototype.getCorrectedAnswerCount=function(){return this.getCorrectedAnswerCountCore(!0)},t.prototype.getCorrectAnswerCount=function(){return this.getCorrectedAnswerCountCore(!0)},t.prototype.getQuizQuestionCount=function(){for(var e=this.getQuizQuestions(),t=0,n=0;n<e.length;n++)t+=e[n].quizQuestionCount;return t},t.prototype.getInCorrectedAnswerCount=function(){return this.getCorrectedAnswerCountCore(!1)},t.prototype.getInCorrectAnswerCount=function(){return this.getCorrectedAnswerCountCore(!1)},t.prototype.onCorrectQuestionAnswer=function(e,t){this.onIsAnswerCorrect.isEmpty||(t.question=e,this.onIsAnswerCorrect.fire(this,t))},t.prototype.getCorrectedAnswerCountCore=function(e){for(var t=this.getQuizQuestions(),n=0,r={question:null,result:!1,correctAnswers:0,incorrectAnswers:0},o=0;o<t.length;o++){var i=t[o],s=i.quizQuestionCount;if(r.question=i,r.correctAnswers=i.correctAnswerCount,r.incorrectAnswers=s-r.correctAnswers,r.result=r.question.isAnswerCorrect(),this.onIsAnswerCorrect.fire(this,r),e){if(r.result||r.correctAnswers<s){var a=r.correctAnswers;0==a&&r.result&&(a=1),n+=a}}else(!r.result||r.incorrectAnswers<s)&&(n+=r.incorrectAnswers)}return n},t.prototype.getCorrectedAnswers=function(){return this.getCorrectedAnswerCount()},t.prototype.getInCorrectedAnswers=function(){return this.getInCorrectedAnswerCount()},Object.defineProperty(t.prototype,"showTimerPanel",{get:function(){return this.getPropertyValue("showTimerPanel")},set:function(e){this.setPropertyValue("showTimerPanel",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isTimerPanelShowingOnTop",{get:function(){return"top"==this.showTimerPanel},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isTimerPanelShowingOnBottom",{get:function(){return"bottom"==this.showTimerPanel},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"showTimerPanelMode",{get:function(){return this.getPropertyValue("showTimerPanelMode")},set:function(e){this.setPropertyValue("showTimerPanelMode",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"widthMode",{get:function(){return this.getPropertyValue("widthMode")},set:function(e){this.setPropertyValue("widthMode",e)},enumerable:!1,configurable:!0}),t.prototype.setCalculatedWidthModeUpdater=function(){var e=this;this.calculatedWidthModeUpdater&&this.calculatedWidthModeUpdater.dispose(),this.calculatedWidthModeUpdater=new s.ComputedUpdater((function(){return e.calculateWidthMode()})),this.calculatedWidthMode=this.calculatedWidthModeUpdater},t.prototype.calculateWidthMode=function(){if("auto"==this.widthMode){var e=!1;return this.pages.forEach((function(t){t.needResponsiveWidth()&&(e=!0)})),e?"responsive":"static"}return this.widthMode},Object.defineProperty(t.prototype,"width",{get:function(){return this.getPropertyValue("width")},set:function(e){this.setPropertyValue("width",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"renderedWidth",{get:function(){var e=this.getPropertyValue("width");return e&&!isNaN(e)&&(e+="px"),"static"==this.getPropertyValue("calculatedWidthMode")&&e||void 0},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"timerInfo",{get:function(){return this.getTimerInfo()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"timerClock",{get:function(){var e,t;if(this.currentPage){var n=this.getTimerInfo(),r=n.spent,o=n.limit,i=n.minorSpent,s=n.minorLimit;e=o>0?this.getDisplayClockTime(o-r):this.getDisplayClockTime(r),void 0!==i&&(t=s>0?this.getDisplayClockTime(s-i):this.getDisplayClockTime(i))}return{majorText:e,minorText:t}},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"timerInfoText",{get:function(){var e={text:this.getTimerInfoText()};this.onTimerPanelInfoText.fire(this,e);var t=new f.LocalizableString(this,!0);return t.text=e.text,t.textOrHtml},enumerable:!1,configurable:!0}),t.prototype.getTimerInfo=function(){var e=this.currentPage;if(!e)return{spent:0,limit:0};var t=e.timeSpent,n=this.timeSpent,r=this.getPageMaxTimeToFinish(e),o=this.maxTimeToFinish;return"page"==this.showTimerPanelMode?{spent:t,limit:r}:"survey"==this.showTimerPanelMode?{spent:n,limit:o}:r>0&&o>0?{spent:t,limit:r,minorSpent:n,minorLimit:o}:r>0?{spent:t,limit:r,minorSpent:n}:o>0?{spent:n,limit:o,minorSpent:t}:{spent:t,minorSpent:n}},t.prototype.getTimerInfoText=function(){var e=this.currentPage;if(!e)return"";var t=this.getDisplayTime(e.timeSpent),n=this.getDisplayTime(this.timeSpent),r=this.getPageMaxTimeToFinish(e),o=this.getDisplayTime(r),i=this.getDisplayTime(this.maxTimeToFinish);return"page"==this.showTimerPanelMode?this.getTimerInfoPageText(e,t,o):"survey"==this.showTimerPanelMode?this.getTimerInfoSurveyText(n,i):"all"==this.showTimerPanelMode?r<=0&&this.maxTimeToFinish<=0?this.getLocalizationFormatString("timerSpentAll",t,n):r>0&&this.maxTimeToFinish>0?this.getLocalizationFormatString("timerLimitAll",t,o,n,i):this.getTimerInfoPageText(e,t,o)+" "+this.getTimerInfoSurveyText(n,i):""},t.prototype.getTimerInfoPageText=function(e,t,n){return this.getPageMaxTimeToFinish(e)>0?this.getLocalizationFormatString("timerLimitPage",t,n):this.getLocalizationFormatString("timerSpentPage",t,n)},t.prototype.getTimerInfoSurveyText=function(e,t){var n=this.maxTimeToFinish>0?"timerLimitSurvey":"timerSpentSurvey";return this.getLocalizationFormatString(n,e,t)},t.prototype.getDisplayClockTime=function(e){var t=Math.floor(e/60),n=e%60,r=n.toString();return n<10&&(r="0"+r),t+":"+r},t.prototype.getDisplayTime=function(e){var t=Math.floor(e/60),n=e%60,r="";return t>0&&(r+=t+" "+this.getLocalizationString("timerMin")),r&&0==n?r:(r&&(r+=" "),r+n+" "+this.getLocalizationString("timerSec"))},Object.defineProperty(t.prototype,"timerModel",{get:function(){return this.timerModelValue},enumerable:!1,configurable:!0}),t.prototype.startTimer=function(){this.timerModel.start()},t.prototype.startTimerFromUI=function(){"none"!=this.showTimerPanel&&"running"===this.state&&this.startTimer()},t.prototype.stopTimer=function(){this.timerModel.stop()},Object.defineProperty(t.prototype,"timeSpent",{get:function(){return this.timerModel.spent},set:function(e){this.timerModel.spent=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"maxTimeToFinish",{get:function(){return this.getPropertyValue("maxTimeToFinish",0)},set:function(e){this.setPropertyValue("maxTimeToFinish",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"maxTimeToFinishPage",{get:function(){return this.getPropertyValue("maxTimeToFinishPage",0)},set:function(e){this.setPropertyValue("maxTimeToFinishPage",e)},enumerable:!1,configurable:!0}),t.prototype.getPageMaxTimeToFinish=function(e){return!e||e.maxTimeToFinish<0?0:e.maxTimeToFinish>0?e.maxTimeToFinish:this.maxTimeToFinishPage},t.prototype.doTimer=function(e){if(this.onTimer.fire(this,{}),this.maxTimeToFinish>0&&this.maxTimeToFinish==this.timeSpent&&this.completeLastPage(),e){var t=this.getPageMaxTimeToFinish(e);t>0&&t==e.timeSpent&&(this.isLastPage?this.completeLastPage():this.nextPage())}},Object.defineProperty(t.prototype,"inSurvey",{get:function(){return!0},enumerable:!1,configurable:!0}),t.prototype.getSurveyData=function(){return this},t.prototype.getSurvey=function(){return this},t.prototype.getTextProcessor=function(){return this},t.prototype.getObjects=function(e,t){var n=[];return Array.prototype.push.apply(n,this.getPagesByNames(e)),Array.prototype.push.apply(n,this.getQuestionsByNames(t)),n},t.prototype.setTriggerValue=function(e,t,n){if(e)if(n)this.setVariable(e,t);else{var r=this.getQuestionByName(e);if(r)r.value=t;else{var o=new c.ProcessValue,i=o.getFirstName(e);if(i==e)this.setValue(e,t);else{if(!this.getQuestionByName(i))return;var s=this.getUnbindValue(this.getFilteredValues());o.setValue(s,e,t),this.setValue(i,s[i])}}}},t.prototype.copyTriggerValue=function(e,t,n){var r;e&&t&&(r=n?this.processText("{"+t+"}",!0):(new c.ProcessValue).getValue(t,this.getFilteredValues()),this.setTriggerValue(e,r,!1))},t.prototype.triggerExecuted=function(e){this.onTriggerExecuted.fire(this,{trigger:e})},t.prototype.startMovingQuestion=function(){this.isMovingQuestion=!0},t.prototype.stopMovingQuestion=function(){this.isMovingQuestion=!1},t.prototype.focusQuestion=function(e){return this.focusQuestionByInstance(this.getQuestionByName(e,!0))},t.prototype.focusQuestionByInstance=function(e,t){var n;if(void 0===t&&(t=!1),!e||!e.isVisible||!e.page)return!1;if((null===(n=this.focusingQuestionInfo)||void 0===n?void 0:n.question)===e)return!1;this.focusingQuestionInfo={question:e,onError:t},this.skippedPages.push({from:this.currentPage,to:e.page});var r=this.activePage!==e.page&&!e.page.isStartPage;return r&&(this.currentPage=e.page),r||this.focusQuestionInfo(),!0},t.prototype.focusQuestionInfo=function(){var e,t=null===(e=this.focusingQuestionInfo)||void 0===e?void 0:e.question;t&&!t.isDisposed&&t.focus(this.focusingQuestionInfo.onError),this.focusingQuestionInfo=void 0},t.prototype.questionEditFinishCallback=function(e,t){var n=this.enterKeyAction||v.settings.enterKeyAction;if("loseFocus"==n&&t.target.blur(),"moveToNextEditor"==n){var r=this.currentPage.questions,o=r.indexOf(e);o>-1&&o<r.length-1?r[o+1].focus():t.target.blur()}},t.prototype.getElementWrapperComponentName=function(e,n){return"logo-image"===n?"sv-logo-image":t.TemplateRendererComponentName},t.prototype.getQuestionContentWrapperComponentName=function(e){return t.TemplateRendererComponentName},t.prototype.getRowWrapperComponentName=function(e){return t.TemplateRendererComponentName},t.prototype.getElementWrapperComponentData=function(e,t){return e},t.prototype.getRowWrapperComponentData=function(e){return e},t.prototype.getItemValueWrapperComponentName=function(e,n){return t.TemplateRendererComponentName},t.prototype.getItemValueWrapperComponentData=function(e,t){return e},t.prototype.getMatrixCellTemplateData=function(e){return e.question},t.prototype.searchText=function(e){e&&(e=e.toLowerCase());for(var t=[],n=0;n<this.pages.length;n++)this.pages[n].searchText(e,t);return t},t.prototype.getSkeletonComponentName=function(e){return this.skeletonComponentName},t.prototype.addLayoutElement=function(e){var t=this.removeLayoutElement(e.id);return this.layoutElements.push(e),t},t.prototype.removeLayoutElement=function(e){var t=this.layoutElements.filter((function(t){return t.id===e}))[0];if(t){var n=this.layoutElements.indexOf(t);this.layoutElements.splice(n,1)}return t},t.prototype.getContainerContent=function(e){for(var t=[],n=0,r=this.layoutElements;n<r.length;n++){var o=r[n];O(o.id,"timerpanel")?("header"===e&&this.isTimerPanelShowingOnTop&&!this.isShowStartingPage&&t.push(o),"footer"===e&&this.isTimerPanelShowingOnBottom&&!this.isShowStartingPage&&t.push(o)):"running"===this.state&&O(o.id,"progress-"+this.progressBarType)?("header"===e&&this.isShowProgressBarOnTop&&!this.isShowStartingPage&&t.push(o),"contentBottom"===e&&this.isShowProgressBarOnBottom&&!this.isShowStartingPage&&t.push(o)):O(o.id,"navigationbuttons")?("contentTop"===e&&-1!==["top","both"].indexOf(this.isNavigationButtonsShowing)&&t.push(o),"contentBottom"===e&&-1!==["bottom","both"].indexOf(this.isNavigationButtonsShowing)&&t.push(o)):"running"===this.state&&O(o.id,"toc-navigation")&&this.showTOC?("left"===e&&-1!==["left","both"].indexOf(this.tocLocation)&&t.push(o),"right"===e&&-1!==["right","both"].indexOf(this.tocLocation)&&t.push(o)):(Array.isArray(o.container)&&-1!==o.container.indexOf(e)||o.container===e)&&t.push(o)}return t},t.prototype.processPopupVisiblityChanged=function(e,t,n){this.onPopupVisibleChanged.fire(this,{question:e,popup:t,visible:n})},t.prototype.applyTheme=function(e){var t=this;e&&(Object.keys(e).forEach((function(n){"isPanelless"===n?t.isCompact=e[n]:t[n]=e[n]})),this.onThemeApplied.fire(this,{theme:e}))},t.prototype.dispose=function(){if(this.currentPage=null,this.destroyResizeObserver(),e.prototype.dispose.call(this),this.editingObj=null,this.pages){for(var t=0;t<this.pages.length;t++)this.pages[t].setSurveyImpl(void 0),this.pages[t].dispose();this.pages.splice(0,this.pages.length),this.disposeCallback&&this.disposeCallback()}},t.TemplateRendererComponentName="sv-template-renderer",t.stylesManager=null,t.platform="unknown",V([Object(i.property)()],t.prototype,"completedCss",void 0),V([Object(i.property)()],t.prototype,"containerCss",void 0),V([Object(i.property)()],t.prototype,"showBrandInfo",void 0),V([Object(i.property)()],t.prototype,"enterKeyAction",void 0),V([Object(i.property)({defaultValue:{}})],t.prototype,"cssVariables",void 0),V([Object(i.property)()],t.prototype,"_isMobile",void 0),V([Object(i.property)()],t.prototype,"_isCompact",void 0),V([Object(i.property)()],t.prototype,"renderBackgroundImage",void 0),V([Object(i.property)()],t.prototype,"backgroundImageFit",void 0),V([Object(i.property)()],t.prototype,"backgroundImageAttachment",void 0),V([Object(i.property)()],t.prototype,"rootCss",void 0),V([Object(i.property)()],t.prototype,"calculatedWidthMode",void 0),V([Object(i.propertyArray)()],t.prototype,"layoutElements",void 0),t}(a.SurveyElementCore);function O(e,t){return!!e&&!!t&&e.toUpperCase()===t.toUpperCase()}i.Serializer.addClass("survey",[{name:"locale",choices:function(){return d.surveyLocalization.getLocales(!0)},onGetValue:function(e){return e.locale==d.surveyLocalization.defaultLocale?null:e.locale}},{name:"title",serializationProperty:"locTitle",dependsOn:"locale"},{name:"description:text",serializationProperty:"locDescription",dependsOn:"locale"},{name:"logo",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",default:!0},{name:"focusOnFirstError:boolean",default:!0},{name:"completedHtml:html",serializationProperty:"locCompletedHtml"},{name:"completedBeforeHtml:html",serializationProperty:"locCompletedBeforeHtml"},{name:"completedHtmlOnCondition:htmlconditions",className:"htmlconditionitem"},{name:"loadingHtml:html",serializationProperty:"locLoadingHtml"},{name:"pages:surveypages",className:"page"},{name:"questions",alternativeName:"elements",baseClassName:"question",visible:!1,isLightSerializable:!1,onGetValue:function(e){return null},onSetValue:function(e,t,n){e.pages.splice(0,e.pages.length);var r=e.addNewPage("");n.toObject({questions:t},r)}},{name:"triggers:triggers",baseClassName:"surveytrigger",classNamePart:"trigger"},{name:"calculatedValues:calculatedvalues",className:"calculatedvalue"},{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},{name:"showTitle:boolean",default:!0},{name:"showPageTitles:boolean",default:!0},{name:"showCompletedPage:boolean",default:!0},"navigateToUrl",{name:"navigateToUrlOnCondition:urlconditions",className:"urlconditionitem"},{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","top","bottom","both"]},{name:"progressBarType",default:"pages",choices:["pages","questions","requiredQuestions","correctQuestions","buttons"]},{name:"showTOC:switch",default:!1},{name:"tocLocation",default:"left",choices:["left","right"]},{name:"mode",default:"edit",choices:["edit","display"]},{name:"storeOthersAsComment:boolean",default:!0},{name:"maxTextLength:number",default:0,minValue:0},{name:"maxOthersLength:number",default:0,minValue:0},{name:"goNextPageAutomatic:boolean",onSetValue:function(e,t){"autogonext"!==t&&(t=o.Helpers.isTwoValueEquals(t,!0)),e.setPropertyValue("goNextPageAutomatic",t)}},{name:"clearInvisibleValues",default:"onComplete",choices:["none","onComplete","onHidden","onHiddenContainer"]},{name:"checkErrorsMode",default:"onNextPage",choices:["onNextPage","onValueChanged","onValueChanging","onComplete"]},{name:"textUpdateMode",default:"onBlur",choices:["onBlur","onTyping"]},{name:"autoGrowComment:boolean",default:!1},{name:"allowResizeComment:boolean",default:!0},{name:"startSurveyText",serializationProperty:"locStartSurveyText"},{name:"pagePrevText",serializationProperty:"locPagePrevText"},{name:"pageNextText",serializationProperty:"locPageNextText"},{name:"completeText",serializationProperty:"locCompleteText"},{name:"previewText",serializationProperty:"locPreviewText"},{name:"editText",serializationProperty:"locEditText"},{name:"requiredText",default:"*"},{name:"questionStartIndex",dependsOn:["showQuestionNumbers"],visibleIf:function(e){return!e||"off"!==e.showQuestionNumbers}},{name:"questionTitlePattern",default:"numTitleRequire",dependsOn:["questionStartIndex","requiredText"],choices:function(e){return e?e.getQuestionTitlePatternOptions():[]}},{name:"questionTitleTemplate",visible:!1,isSerializable:!1,serializationProperty:"locQuestionTitleTemplate"},{name:"firstPageIsStarted:boolean",default:!1},{name:"isSinglePage:boolean",default:!1,visible:!1,isSerializable:!1},{name:"questionsOnPageMode",default:"standard",choices:["singlePage","standard","questionPerPage"]},{name:"showPreviewBeforeComplete",default:"noPreview",choices:["noPreview","showAllQuestions","showAnsweredQuestions"]},{name:"maxTimeToFinish:number",default:0,minValue:0},{name:"maxTimeToFinishPage:number",default:0,minValue:0},{name:"showTimerPanel",default:"none",choices:["none","top","bottom"]},{name:"showTimerPanelMode",default:"all",choices:["all","page","survey"]},{name:"widthMode",default:"auto",choices:["auto","static","responsive"]},{name:"width",visibleIf:function(e){return"static"===e.widthMode}},{name:"backgroundImage",serializationProperty:"locBackgroundImage",visible:!1},{name:"backgroundImageFit",default:"cover",choices:["auto","contain","cover"],visible:!1},{name:"backgroundImageAttachment",default:"scroll",choices:["scroll","fixed"],visible:!1},{name:"backgroundOpacity:number",minValue:0,maxValue:1,default:1,visible:!1},{name:"showBrandInfo:boolean",default:!1,visible:!1}])},"./src/surveyProgress.ts":function(e,t,n){"use strict";n.r(t),n.d(t,"SurveyProgressModel",(function(){return o}));var r=n("./src/utils/cssClassBuilder.ts"),o=function(){function e(){}return e.getProgressTextInBarCss=function(e){return(new r.CssClassBuilder).append(e.progressText).append(e.progressTextInBar).toString()},e.getProgressTextUnderBarCss=function(e){return(new r.CssClassBuilder).append(e.progressText).append(e.progressTextUnderBar).toString()},e}()},"./src/surveyProgressButtons.ts":function(e,t,n){"use strict";n.r(t),n.d(t,"SurveyProgressButtonsModel",(function(){return o}));var r=n("./src/utils/cssClassBuilder.ts"),o=function(){function e(e){this.survey=e}return e.prototype.isListElementClickable=function(e){return!(this.survey.onServerValidateQuestions&&!this.survey.onServerValidateQuestions.isEmpty&&"onComplete"!==this.survey.checkErrorsMode)||e<=this.survey.currentPageNo+1},e.prototype.getListElementCss=function(e){if(!(e>=this.survey.visiblePages.length))return(new r.CssClassBuilder).append(this.survey.css.progressButtonsListElementPassed,this.survey.visiblePages[e].passed).append(this.survey.css.progressButtonsListElementCurrent,this.survey.currentPageNo===e).append(this.survey.css.progressButtonsListElementNonClickable,!this.isListElementClickable(e)).toString()},e.prototype.getScrollButtonCss=function(e,t){return(new r.CssClassBuilder).append(this.survey.css.progressButtonsImageButtonLeft,t).append(this.survey.css.progressButtonsImageButtonRight,!t).append(this.survey.css.progressButtonsImageButtonHidden,!e).toString()},e.prototype.clickListElement=function(e){if(!this.survey.isDesignMode)if(e<this.survey.currentPageNo)this.survey.currentPageNo=e;else if(e>this.survey.currentPageNo)for(var t=this.survey.currentPageNo;t<e&&this.survey.nextPage();t++);},e}()},"./src/surveyStrings.ts":function(e,t,n){"use strict";n.r(t),n.d(t,"surveyLocalization",(function(){return o})),n.d(t,"surveyStrings",(function(){return i}));var r=n("./src/localization/english.ts"),o={currentLocaleValue:"",defaultLocaleValue:"en",locales:{},localeNames:{},supportedLocales:[],get currentLocale(){return this.currentLocaleValue===this.defaultLocaleValue?"":this.currentLocaleValue},set currentLocale(e){"cz"===e&&(e="cs"),this.currentLocaleValue=e},get defaultLocale(){return this.defaultLocaleValue},set defaultLocale(e){"cz"===e&&(e="cs"),this.defaultLocaleValue=e},getLocaleStrings:function(e){return this.locales[e]},getString:function(e,t){var n=this;void 0===t&&(t=null);var r=new Array,o=function(e){var t=n.locales[e];t&&r.push(t)},i=function(e){if(e){o(e);var t=e.indexOf("-");t<1||(e=e.substring(0,t),o(e))}};i(t),i(this.currentLocale),i(this.defaultLocale),"en"!==this.defaultLocale&&o("en");for(var s=0;s<r.length;s++){var a=r[s][e];if(void 0!==a)return a}return this.onGetExternalString(e,t)},getLocales:function(e){void 0===e&&(e=!1);var t=[];t.push("");var n=this.locales;if(this.supportedLocales&&this.supportedLocales.length>0){n={};for(var r=0;r<this.supportedLocales.length;r++)n[this.supportedLocales[r]]=!0}for(var i in n)e&&i==this.defaultLocale||t.push(i);var s=function(e){if(!e)return"";var t=o.localeNames[e];return t||(t=e),t.toLowerCase()};return t.sort((function(e,t){var n=s(e),r=s(t);return n===r?0:n<r?-1:1})),t},onGetExternalString:function(e,t){}},i=r.englishStrings;o.locales.en=r.englishStrings,o.localeNames.en="english"},"./src/surveyTimerModel.ts":function(e,t,n){"use strict";n.r(t),n.d(t,"SurveyTimerModel",(function(){return c}));var r,o=n("./src/base.ts"),i=n("./src/surveytimer.ts"),s=n("./src/jsonobject.ts"),a=n("./src/utils/cssClassBuilder.ts"),l=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),u=function(e,t,n,r){var o,i=arguments.length,s=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,r);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(i<3?o(s):i>3?o(t,n,s):o(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},c=function(e){function t(t){var n=e.call(this)||this;return n.timerFunc=null,n.surveyValue=t,n.onCreating(),n}return l(t,e),Object.defineProperty(t.prototype,"survey",{get:function(){return this.surveyValue},enumerable:!1,configurable:!0}),t.prototype.onCreating=function(){},t.prototype.start=function(){var e=this;this.survey&&(this.isRunning||this.isDesignMode||(this.survey.onCurrentPageChanged.add((function(){e.update()})),this.timerFunc=function(){e.doTimer()},this.setIsRunning(!0),this.update(),i.SurveyTimer.instance.start(this.timerFunc)))},t.prototype.stop=function(){this.isRunning&&(this.setIsRunning(!1),i.SurveyTimer.instance.stop(this.timerFunc))},Object.defineProperty(t.prototype,"isRunning",{get:function(){return this.getPropertyValue("isRunning",!1)},enumerable:!1,configurable:!0}),t.prototype.setIsRunning=function(e){this.setPropertyValue("isRunning",e)},t.prototype.update=function(){this.updateText(),this.updateProgress()},t.prototype.doTimer=function(){var e=this.survey.currentPage;e&&(e.timeSpent=e.timeSpent+1),this.spent=this.spent+1,this.update(),this.onTimer&&this.onTimer(e)},t.prototype.updateProgress=function(){var e=this,t=this.survey.timerInfo,n=t.spent,r=t.limit;r?0==n?(this.progress=0,setTimeout((function(){e.progress=Math.floor((n+1)/r*100)/100}),0)):n!==r&&(this.progress=Math.floor((n+1)/r*100)/100):this.progress=void 0},t.prototype.updateText=function(){var e=this.survey.timerClock;this.clockMajorText=e.majorText,this.clockMinorText=e.minorText,this.text=this.survey.timerInfoText},Object.defineProperty(t.prototype,"showProgress",{get:function(){return void 0!==this.progress},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"showTimerAsClock",{get:function(){return!!this.survey.getCss().clockTimerRoot},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"rootCss",{get:function(){return(new a.CssClassBuilder).append(this.survey.getCss().clockTimerRoot).append(this.survey.getCss().clockTimerRootTop,this.survey.isTimerPanelShowingOnTop).append(this.survey.getCss().clockTimerRootBottom,this.survey.isTimerPanelShowingOnBottom).toString()},enumerable:!1,configurable:!0}),t.prototype.getProgressCss=function(){return(new a.CssClassBuilder).append(this.survey.getCss().clockTimerProgress).append(this.survey.getCss().clockTimerProgressAnimation,this.progress>0).toString()},Object.defineProperty(t.prototype,"textContainerCss",{get:function(){return this.survey.getCss().clockTimerTextContainer},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"minorTextCss",{get:function(){return this.survey.getCss().clockTimerMinorText},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"majorTextCss",{get:function(){return this.survey.getCss().clockTimerMajorText},enumerable:!1,configurable:!0}),u([Object(s.property)()],t.prototype,"text",void 0),u([Object(s.property)()],t.prototype,"progress",void 0),u([Object(s.property)()],t.prototype,"clockMajorText",void 0),u([Object(s.property)()],t.prototype,"clockMinorText",void 0),u([Object(s.property)({defaultValue:0})],t.prototype,"spent",void 0),t}(o.Base)},"./src/surveyToc.ts":function(e,t,n){"use strict";n.r(t),n.d(t,"tryNavigateToPage",(function(){return u})),n.d(t,"tryFocusPage",(function(){return c})),n.d(t,"createTOCListModel",(function(){return p})),n.d(t,"getTocRootCss",(function(){return d})),n.d(t,"TOCModel",(function(){return h}));var r=n("./src/actions/action.ts"),o=n("./src/base.ts"),i=n("./src/list.ts"),s=n("./src/page.ts"),a=n("./src/popup.ts"),l=n("./src/utils/devices.ts");function u(e,t){if(!e.isDesignMode){var n=e.visiblePages.indexOf(t);if(n<e.currentPageNo)e.currentPageNo=n;else if(n>e.currentPageNo)for(var r=e.currentPageNo;r<n;r++)if(!e.nextPageUIClick())return!1;return!0}}function c(e,t){return e.isDesignMode||t.focusFirstQuestion(),!0}function p(e,t){var n,a="singlePage"===e.questionsOnPageMode?null===(n=e.pages[0])||void 0===n?void 0:n.elements:e.pages,l=(a||[]).map((function(n){return new r.Action({id:n.name,title:n.navigationTitle||n.title||n.name,action:function(){return void 0!==typeof document&&document.activeElement&&document.activeElement.blur&&document.activeElement.blur(),t&&t(),n instanceof s.PageModel?u(e,n):c(e,n)},visible:new o.ComputedUpdater((function(){return n.isVisible&&!n.isStartPage}))})})),p=new i.ListModel(l,(function(e){e.action()&&(p.selectedItem=e)}),!0,l.filter((function(t){return t.id===e.currentPage.name}))[0]||l.filter((function(e){return e.id===a[0].name}))[0]);return p.allowSelection=!1,p.locOwner=e,e.onCurrentPageChanged.add((function(t,n){p.selectedItem=l.filter((function(t){return t.id===e.currentPage.name}))[0]})),p}function d(e,t){return void 0===t&&(t=!1),t?"sv_progress-toc sv_progress-toc--mobile":"sv_progress-toc sv_progress-toc--"+(e.tocLocation||"").toLowerCase()}var h=function(){function e(e){var t=this;this.survey=e,this.isMobile=l.IsTouch,this.icon="icon-navmenu_24x24",this.togglePopup=function(){t.popupModel.toggleVisibility()},this.listModel=p(e,(function(){t.popupModel.isVisible=!1})),this.popupModel=new a.PopupModel("sv-list",{model:this.listModel}),this.popupModel.displayMode=this.isMobile?"overlay":"popup"}return Object.defineProperty(e.prototype,"containerCss",{get:function(){return d(this.survey,this.isMobile)},enumerable:!1,configurable:!0}),e}()},"./src/surveytimer.ts":function(e,t,n){"use strict";n.r(t),n.d(t,"surveyTimerFunctions",(function(){return o})),n.d(t,"SurveyTimer",(function(){return i}));var r=n("./src/base.ts"),o={setTimeout:function(e){return"undefined"==typeof window?0:window.setTimeout(e,1e3)},clearTimeout:function(e){"undefined"!=typeof window&&window.clearTimeout(e)}},i=function(){function e(){this.listenerCounter=0,this.timerId=-1,this.onTimer=new r.Event}return Object.defineProperty(e,"instance",{get:function(){return e.instanceValue||(e.instanceValue=new e),e.instanceValue},enumerable:!1,configurable:!0}),e.prototype.start=function(e){var t=this;void 0===e&&(e=null),e&&this.onTimer.add(e),this.timerId<0&&(this.timerId=o.setTimeout((function(){t.doTimer()}))),this.listenerCounter++},e.prototype.stop=function(e){void 0===e&&(e=null),e&&this.onTimer.remove(e),this.listenerCounter--,0==this.listenerCounter&&this.timerId>-1&&(o.clearTimeout(this.timerId),this.timerId=-1)},e.prototype.doTimer=function(){var e=this;if((this.onTimer.isEmpty||0==this.listenerCounter)&&(this.timerId=-1),!(this.timerId<0)){var t=this.timerId;this.onTimer.fire(this,{}),t===this.timerId&&(this.timerId=o.setTimeout((function(){e.doTimer()})))}},e.instanceValue=null,e}()},"./src/svgbundle.ts":function(e,t,n){"use strict";n.r(t),n.d(t,"SvgIconRegistry",(function(){return i})),n.d(t,"SvgRegistry",(function(){return s})),n.d(t,"SvgBundleViewModel",(function(){}));var r=n("./src/settings.ts"),o=n("./src/utils/utils.ts"),i=function(){function e(){this.icons={},this.iconPrefix="icon-"}return e.prototype.registerIconFromSymbol=function(e,t){this.icons[e]=t},e.prototype.registerIconFromSvgViaElement=function(e,t,n){void 0===n&&(n=this.iconPrefix);var r=document.createElement("div");r.innerHTML=t;var o=document.createElement("symbol"),i=r.querySelector("svg");o.innerHTML=i.innerHTML;for(var s=0;s<i.attributes.length;s++)o.setAttributeNS("http://www.w3.org/2000/svg",i.attributes[s].name,i.attributes[s].value);o.id=n+e,this.registerIconFromSymbol(e,o.outerHTML)},e.prototype.registerIconFromSvg=function(e,t,n){void 0===n&&(n=this.iconPrefix);var r=(t=t.trim()).toLowerCase();return"<svg "===r.substring(0,5)&&"</svg>"===r.substring(r.length-6,r.length)&&(this.registerIconFromSymbol(e,'<symbol id="'+n+e+'" '+t.substring(5,r.length-6)+"</symbol>"),!0)},e.prototype.registerIconsFromFolder=function(e){var t=this;e.keys().forEach((function(n){t.registerIconFromSvg(n.substring(2,n.length-4).toLowerCase(),e(n))}))},e.prototype.iconsRenderedHtml=function(){var e=this;return Object.keys(this.icons).map((function(t){return e.icons[t]})).join("")},e.prototype.renderIcons=function(){var e="sv-icon-holder-global-container";if(r.settings.environment&&!r.settings.environment.root.getElementById(e)){var t=document.createElement("div");t.id=e,t.innerHTML="<svg>"+this.iconsRenderedHtml()+"</svg>",t.style.display="none",Object(o.getElement)(r.settings.environment.svgMountContainer).appendChild(t)}},e}(),s=new i,a=n("./src/images sync \\.svg$"),l=n("./src/images/smiley sync \\.svg$");s.registerIconsFromFolder(a),s.registerIconsFromFolder(l)},"./src/template-renderer.ts":function(e,t,n){"use strict";n.r(t)},"./src/textPreProcessor.ts":function(e,t,n){"use strict";n.r(t),n.d(t,"TextPreProcessorItem",(function(){return i})),n.d(t,"TextPreProcessorValue",(function(){return s})),n.d(t,"TextPreProcessor",(function(){return a})),n.d(t,"QuestionTextProcessor",(function(){return l}));var r=n("./src/helpers.ts"),o=n("./src/conditionProcessValue.ts"),i=function(){},s=function(e,t){this.name=e,this.returnDisplayValue=t,this.isExists=!1,this.canProcess=!0},a=function(){function e(){this._unObservableValues=[void 0]}return Object.defineProperty(e.prototype,"hasAllValuesOnLastRunValue",{get:function(){return this._unObservableValues[0]},set:function(e){this._unObservableValues[0]=e},enumerable:!1,configurable:!0}),e.prototype.process=function(e,t,n){if(void 0===t&&(t=!1),void 0===n&&(n=!1),this.hasAllValuesOnLastRunValue=!0,!e)return e;if(!this.onProcess)return e;for(var o=this.getItems(e),i=o.length-1;i>=0;i--){var a=o[i],l=this.getName(e.substring(a.start+1,a.end));if(l){var u=new s(l,t);if(this.onProcess(u),u.isExists){r.Helpers.isValueEmpty(u.value)&&(this.hasAllValuesOnLastRunValue=!1);var c=r.Helpers.isValueEmpty(u.value)?"":u.value;n&&(c=encodeURIComponent(c)),e=e.substring(0,a.start)+c+e.substring(a.end+1)}else u.canProcess&&(this.hasAllValuesOnLastRunValue=!1)}}return e},e.prototype.processValue=function(e,t){var n=new s(e,t);return this.onProcess&&this.onProcess(n),n},Object.defineProperty(e.prototype,"hasAllValuesOnLastRun",{get:function(){return!!this.hasAllValuesOnLastRunValue},enumerable:!1,configurable:!0}),e.prototype.getItems=function(e){for(var t=[],n=e.length,r=-1,o="",s=0;s<n;s++)if("{"==(o=e[s])&&(r=s),"}"==o){if(r>-1){var a=new i;a.start=r,a.end=s,t.push(a)}r=-1}return t},e.prototype.getName=function(e){if(e)return e.trim()},e}(),l=function(){function e(e){var t=this;this.variableName=e,this.textPreProcessor=new a,this.textPreProcessor.onProcess=function(e){t.getProcessedTextValue(e)}}return e.prototype.processValue=function(e,t){return this.textPreProcessor.processValue(e,t)},Object.defineProperty(e.prototype,"survey",{get:function(){return null},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"panel",{get:function(){return null},enumerable:!1,configurable:!0}),e.prototype.getValues=function(){return this.panel?this.panel.getValue():null},e.prototype.getQuestionByName=function(e){return this.panel?this.panel.getQuestionByValueName(e):null},e.prototype.getParentTextProcessor=function(){return null},e.prototype.onCustomProcessText=function(e){return!1},e.prototype.getQuestionDisplayText=function(e){return e.displayValue},e.prototype.getProcessedTextValue=function(e){if(e&&!this.onCustomProcessText(e)){var t=(new o.ProcessValue).getFirstName(e.name);if(e.isExists=t==this.variableName,e.canProcess=e.isExists,e.canProcess){e.name=e.name.replace(this.variableName+".",""),t=(new o.ProcessValue).getFirstName(e.name);var n=this.getQuestionByName(t),r={};if(n)r[t]=e.returnDisplayValue?this.getQuestionDisplayText(n):n.value;else{var i=this.panel?this.getValues():null;i&&(r[t]=i[t])}e.value=(new o.ProcessValue).getValue(e.name,r)}}},e.prototype.processText=function(e,t){return this.survey&&this.survey.isDesignMode?e:(e=this.textPreProcessor.process(e,t),e=this.processTextCore(this.getParentTextProcessor(),e,t),this.processTextCore(this.survey,e,t))},e.prototype.processTextEx=function(e,t){e=this.processText(e,t);var n=this.textPreProcessor.hasAllValuesOnLastRun,r={hasAllValuesOnLastRun:!0,text:e};return this.survey&&(r=this.survey.processTextEx(e,t,!1)),r.hasAllValuesOnLastRun=r.hasAllValuesOnLastRun&&n,r},e.prototype.processTextCore=function(e,t,n){return e?e.processText(t,n):t},e}()},"./src/themes.ts":function(e,t,n){"use strict";n.r(t)},"./src/trigger.ts":function(e,t,n){"use strict";n.r(t),n.d(t,"Trigger",(function(){return d})),n.d(t,"SurveyTrigger",(function(){return h})),n.d(t,"SurveyTriggerVisible",(function(){return f})),n.d(t,"SurveyTriggerComplete",(function(){return g})),n.d(t,"SurveyTriggerSetValue",(function(){return m})),n.d(t,"SurveyTriggerSkip",(function(){return y})),n.d(t,"SurveyTriggerRunExpression",(function(){return v})),n.d(t,"SurveyTriggerCopyValue",(function(){return b}));var r,o=n("./src/helpers.ts"),i=n("./src/base.ts"),s=n("./src/jsonobject.ts"),a=n("./src/conditions.ts"),l=n("./src/expressions/expressions.ts"),u=n("./src/conditionProcessValue.ts"),c=n("./src/settings.ts"),p=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),d=function(e){function t(){var n=e.call(this)||this;return n.idValue=t.idCounter++,n.usedNames=[],n.registerPropertyChangedHandlers(["operator","value","name"],(function(){n.oldPropertiesChanged()})),n.registerPropertyChangedHandlers(["expression"],(function(){n.onExpressionChanged()})),n}return p(t,e),Object.defineProperty(t,"operators",{get:function(){return null!=t.operatorsValue||(t.operatorsValue={empty:function(e,t){return!e},notempty:function(e,t){return!!e},equal:function(e,t){return e==t},notequal:function(e,t){return e!=t},contains:function(e,t){return e&&e.indexOf&&e.indexOf(t)>-1},notcontains:function(e,t){return!e||!e.indexOf||-1==e.indexOf(t)},greater:function(e,t){return e>t},less:function(e,t){return e<t},greaterorequal:function(e,t){return e>=t},lessorequal:function(e,t){return e<=t}}),t.operatorsValue},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"id",{get:function(){return this.idValue},enumerable:!1,configurable:!0}),t.prototype.getType=function(){return"triggerbase"},t.prototype.toString=function(){var e=this.getType().replace("trigger",""),t=this.expression?this.expression:this.buildExpression();return t&&(e+=", "+t),e},Object.defineProperty(t.prototype,"operator",{get:function(){return this.getPropertyValue("operator","equal")},set:function(e){e&&(e=e.toLowerCase(),t.operators[e]&&this.setPropertyValue("operator",e))},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"value",{get:function(){return this.getPropertyValue("value",null)},set:function(e){this.setPropertyValue("value",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"name",{get:function(){return this.getPropertyValue("name","")},set:function(e){this.setPropertyValue("name",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"expression",{get:function(){return this.getPropertyValue("expression","")},set:function(e){this.setPropertyValue("expression",e)},enumerable:!1,configurable:!0}),t.prototype.canBeExecuted=function(e){return!0},t.prototype.canBeExecutedOnComplete=function(){return!1},t.prototype.checkExpression=function(e,t,n,r,o){void 0===o&&(o=null),this.isExecutingOnNextPage=e,this.canBeExecuted(e)&&(t&&!this.canBeExecutedOnComplete()||this.isCheckRequired(n)&&this.conditionRunner&&this.perform(r,o))},t.prototype.check=function(e){t.operators[this.operator](e,this.value)?this.onSuccess({},null):this.onFailure()},t.prototype.perform=function(e,t){var n=this;this.conditionRunner.onRunComplete=function(r){n.triggerResult(r,e,t)},this.conditionRunner.run(e,t)},t.prototype.triggerResult=function(e,t,n){e?(this.onSuccess(t,n),this.onSuccessExecuted()):this.onFailure()},t.prototype.onSuccess=function(e,t){},t.prototype.onFailure=function(){},t.prototype.onSuccessExecuted=function(){},t.prototype.endLoadingFromJson=function(){e.prototype.endLoadingFromJson.call(this),this.oldPropertiesChanged()},t.prototype.oldPropertiesChanged=function(){this.onExpressionChanged()},t.prototype.onExpressionChanged=function(){this.usedNames=[],this.hasFunction=!1,this.conditionRunner=null},t.prototype.buildExpression=function(){return this.name?this.isValueEmpty(this.value)&&this.isRequireValue?"":"{"+this.name+"} "+this.operator+" "+l.OperandMaker.toOperandString(this.value):""},t.prototype.isCheckRequired=function(e){if(!e)return!1;if(this.buildUsedNames(),!0===this.hasFunction)return!0;for(var t=new u.ProcessValue,n=0;n<this.usedNames.length;n++){var r=this.usedNames[n];if(e.hasOwnProperty(r))return!0;var o=t.getFirstName(r);if(e.hasOwnProperty(o)){if(r===o)return!0;var i=e[o];if(null!=i){if(!i.hasOwnProperty("oldValue")||!i.hasOwnProperty("newValue"))return!0;var s={};s[o]=i.oldValue;var a=t.getValue(r,s);s[o]=i.newValue;var l=t.getValue(r,s);if(!this.isTwoValueEquals(a,l))return!0}}}return!1},t.prototype.buildUsedNames=function(){if(!this.conditionRunner){var e=this.expression;e||(e=this.buildExpression()),e&&(this.conditionRunner=new a.ConditionRunner(e),this.hasFunction=this.conditionRunner.hasFunction(),this.usedNames=this.conditionRunner.getVariables())}},Object.defineProperty(t.prototype,"isRequireValue",{get:function(){return"empty"!==this.operator&&"notempty"!=this.operator},enumerable:!1,configurable:!0}),t.idCounter=1,t.operatorsValue=null,t}(i.Base),h=function(e){function t(){var t=e.call(this)||this;return t.ownerValue=null,t}return p(t,e),Object.defineProperty(t.prototype,"owner",{get:function(){return this.ownerValue},enumerable:!1,configurable:!0}),t.prototype.setOwner=function(e){this.ownerValue=e},t.prototype.getSurvey=function(e){return void 0===e&&(e=!1),this.owner&&this.owner.getSurvey?this.owner.getSurvey():null},t.prototype.isRealExecution=function(){return!0},t.prototype.onSuccessExecuted=function(){this.owner&&this.isRealExecution()&&this.owner.triggerExecuted(this)},t}(d),f=function(e){function t(){var t=e.call(this)||this;return t.pages=[],t.questions=[],t}return p(t,e),t.prototype.getType=function(){return"visibletrigger"},t.prototype.onSuccess=function(e,t){this.onTrigger(this.onItemSuccess)},t.prototype.onFailure=function(){this.onTrigger(this.onItemFailure)},t.prototype.onTrigger=function(e){if(this.owner)for(var t=this.owner.getObjects(this.pages,this.questions),n=0;n<t.length;n++)e(t[n])},t.prototype.onItemSuccess=function(e){e.visible=!0},t.prototype.onItemFailure=function(e){e.visible=!1},t}(h),g=function(e){function t(){return e.call(this)||this}return p(t,e),t.prototype.getType=function(){return"completetrigger"},t.prototype.isRealExecution=function(){return!c.settings.triggers.executeCompleteOnValueChanged===this.isExecutingOnNextPage},t.prototype.onSuccess=function(e,t){this.owner&&(this.isRealExecution()?this.owner.setCompleted(this):this.owner.canBeCompleted(this,!0))},t.prototype.onFailure=function(){this.owner.canBeCompleted(this,!1)},t}(h),m=function(e){function t(){return e.call(this)||this}return p(t,e),t.prototype.getType=function(){return"setvaluetrigger"},t.prototype.canBeExecuted=function(e){return!e&&!!this.setToName},t.prototype.onPropertyValueChanged=function(t,n,r){if(e.prototype.onPropertyValueChanged.call(this,t,n,r),"setToName"===t){var o=this.getSurvey();o&&!o.isLoadingFromJson&&o.isDesignMode&&(this.setValue=void 0)}},Object.defineProperty(t.prototype,"setToName",{get:function(){return this.getPropertyValue("setToName","")},set:function(e){this.setPropertyValue("setToName",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"setValue",{get:function(){return this.getPropertyValue("setValue")},set:function(e){this.setPropertyValue("setValue",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isVariable",{get:function(){return this.getPropertyValue("isVariable")},set:function(e){this.setPropertyValue("isVariable",e)},enumerable:!1,configurable:!0}),t.prototype.onSuccess=function(e,t){this.setToName&&this.owner&&this.owner.setTriggerValue(this.setToName,this.setValue,this.isVariable)},t}(h),y=function(e){function t(){return e.call(this)||this}return p(t,e),t.prototype.getType=function(){return"skiptrigger"},Object.defineProperty(t.prototype,"gotoName",{get:function(){return this.getPropertyValue("gotoName","")},set:function(e){this.setPropertyValue("gotoName",e)},enumerable:!1,configurable:!0}),t.prototype.canBeExecuted=function(e){return e===!c.settings.triggers.executeSkipOnValueChanged},t.prototype.onSuccess=function(e,t){this.gotoName&&this.owner&&this.owner.focusQuestion(this.gotoName)},t}(h),v=function(e){function t(){return e.call(this)||this}return p(t,e),t.prototype.getType=function(){return"runexpressiontrigger"},Object.defineProperty(t.prototype,"setToName",{get:function(){return this.getPropertyValue("setToName","")},set:function(e){this.setPropertyValue("setToName",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"runExpression",{get:function(){return this.getPropertyValue("runExpression","")},set:function(e){this.setPropertyValue("runExpression",e)},enumerable:!1,configurable:!0}),t.prototype.onSuccess=function(e,t){var n=this;if(this.owner&&this.runExpression){var r=new a.ExpressionRunner(this.runExpression);r.canRun&&(r.onRunComplete=function(e){n.onCompleteRunExpression(e)},r.run(e,t))}},t.prototype.onCompleteRunExpression=function(e){this.setToName&&void 0!==e&&this.owner.setTriggerValue(this.setToName,o.Helpers.convertValToQuestionVal(e),!1)},t}(h),b=function(e){function t(){return e.call(this)||this}return p(t,e),t.prototype.canBeExecuted=function(e){return!e&&!!this.setToName&&!!this.fromName},Object.defineProperty(t.prototype,"setToName",{get:function(){return this.getPropertyValue("setToName","")},set:function(e){this.setPropertyValue("setToName",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"fromName",{get:function(){return this.getPropertyValue("fromName","")},set:function(e){this.setPropertyValue("fromName",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"copyDisplayValue",{get:function(){return this.getPropertyValue("copyDisplayValue")},set:function(e){this.setPropertyValue("copyDisplayValue",e)},enumerable:!1,configurable:!0}),t.prototype.getType=function(){return"copyvaluetrigger"},t.prototype.onSuccess=function(e,t){this.setToName&&this.owner&&this.owner.copyTriggerValue(this.setToName,this.fromName,this.copyDisplayValue)},t}(h);s.Serializer.addClass("trigger",[{name:"operator",default:"equal",visible:!1},{name:"value",visible:!1},"expression:condition"]),s.Serializer.addClass("surveytrigger",[{name:"name",visible:!1}],null,"trigger"),s.Serializer.addClass("visibletrigger",["pages:pages","questions:questions"],(function(){return new f}),"surveytrigger"),s.Serializer.addClass("completetrigger",[],(function(){return new g}),"surveytrigger"),s.Serializer.addClass("setvaluetrigger",[{name:"!setToName:questionvalue"},{name:"setValue:triggervalue",dependsOn:"setToName",visibleIf:function(e){return!!e&&!!e.setToName}},{name:"isVariable:boolean",visible:!1}],(function(){return new m}),"surveytrigger"),s.Serializer.addClass("copyvaluetrigger",[{name:"!fromName:questionvalue"},{name:"!setToName:questionvalue"},{name:"copyDisplayValue:boolean",visible:!1}],(function(){return new b}),"surveytrigger"),s.Serializer.addClass("skiptrigger",[{name:"!gotoName:question"}],(function(){return new y}),"surveytrigger"),s.Serializer.addClass("runexpressiontrigger",[{name:"setToName:questionvalue"},"runExpression:expression"],(function(){return new v}),"surveytrigger")},"./src/utils/cssClassBuilder.ts":function(e,t,n){"use strict";n.r(t),n.d(t,"CssClassBuilder",(function(){return r}));var r=function(){function e(){this.classes=[]}return e.prototype.isEmpty=function(){return""===this.toString()},e.prototype.append=function(e,t){return void 0===t&&(t=!0),e&&t&&("string"==typeof e&&(e=e.trim()),this.classes.push(e)),this},e.prototype.toString=function(){return this.classes.join(" ")},e}()},"./src/utils/devices.ts":function(e,t,n){"use strict";n.r(t),n.d(t,"IsMobile",(function(){return s})),n.d(t,"IsTouch",(function(){return l})),n.d(t,"_setIsTouch",(function(){return u}));var r,o=!1,i=null;"undefined"!=typeof navigator&&"undefined"!=typeof window&&navigator&&window&&(i=navigator.userAgent||navigator.vendor||window.opera),(r=i)&&("MacIntel"===navigator.platform&&navigator.maxTouchPoints>0||"iPad"===navigator.platform||/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino/i.test(r)||/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s\-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|\-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw\-(n|u)|c55\/|capi|ccwa|cdm\-|cell|chtm|cldc|cmd\-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc\-s|devi|dica|dmob|do(c|p)o|ds(12|\-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(\-|_)|g1 u|g560|gene|gf\-5|g\-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd\-(m|p|t)|hei\-|hi(pt|ta)|hp( i|ip)|hs\-c|ht(c(\-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i\-(20|go|ma)|i230|iac( |\-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc\-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|\-[a-w])|libw|lynx|m1\-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m\-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(\-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)\-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|\-([1-8]|c))|phil|pire|pl(ay|uc)|pn\-2|po(ck|rt|se)|prox|psio|pt\-g|qa\-a|qc(07|12|21|32|60|\-[2-7]|i\-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h\-|oo|p\-)|sdk\/|se(c(\-|0|1)|47|mc|nd|ri)|sgh\-|shar|sie(\-|m)|sk\-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h\-|v\-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl\-|tdg\-|tel(i|m)|tim\-|t\-mo|to(pl|sh)|ts(70|m\-|m3|m5)|tx\-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|\-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(\-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas\-|your|zeto|zte\-/i.test(r.substring(0,4)))&&(o=!0);var s=o||!1,a=!1;"undefined"!=typeof window&&(a="ontouchstart"in window||navigator.maxTouchPoints>0);var l=s&&a;function u(e){l=e}},"./src/utils/dragOrClickHelper.ts":function(e,t,n){"use strict";n.r(t),n.d(t,"DragOrClickHelper",(function(){return o}));var r=n("./src/entries/core.ts"),o=function(){function e(e){var t=this;this.dragHandler=e,this.onPointerUp=function(e){t.clearListeners()},this.tryToStartDrag=function(e){if(t.currentX=e.pageX,t.currentY=e.pageY,!t.isMicroMovement)return t.clearListeners(),t.dragHandler(t.pointerDownEvent,t.currentTarget,t.itemModel),!0}}return e.prototype.onPointerDown=function(e,t){r.IsTouch?this.dragHandler(e,e.currentTarget,t):(this.pointerDownEvent=e,this.currentTarget=e.currentTarget,this.startX=e.pageX,this.startY=e.pageY,document.addEventListener("pointermove",this.tryToStartDrag),this.currentTarget.addEventListener("pointerup",this.onPointerUp),this.itemModel=t)},Object.defineProperty(e.prototype,"isMicroMovement",{get:function(){var e=Math.abs(this.currentX-this.startX),t=Math.abs(this.currentY-this.startY);return e<10&&t<10},enumerable:!1,configurable:!0}),e.prototype.clearListeners=function(){this.pointerDownEvent&&(document.removeEventListener("pointermove",this.tryToStartDrag),this.currentTarget.removeEventListener("pointerup",this.onPointerUp))},e}()},"./src/utils/popup.ts":function(e,t,n){"use strict";n.r(t),n.d(t,"PopupUtils",(function(){return r}));var r=function(){function e(){}return e.calculatePosition=function(e,t,n,r,o,i,s){void 0===s&&(s="flex");var a=e.left,l=e.top;return"flex"===s&&(a="center"==o?(e.left+e.right-n)/2:"left"==o?e.left-n:e.right),l="middle"==r?(e.top+e.bottom-t)/2:"top"==r?e.top-t:e.bottom,i&&"center"!=o&&"middle"!=r&&("top"==r?l+=e.height:l-=e.height),{left:Math.round(a),top:Math.round(l)}},e.updateVerticalDimensions=function(t,n,r){var o;return t<0?o={height:n+t,top:0}:n+t>r&&(o={height:Math.min(n,r-t-e.bottomIndent),top:t}),o},e.updateHorizontalDimensions=function(e,t,n,r,o,i){void 0===o&&(o="flex"),void 0===i&&(i={left:0,right:0}),t+=i.left+i.right;var s=void 0,a=e;return"center"===r&&("fixed"===o?(e+t>n&&(s=n-e),a-=i.left):e<0?(a=i.left,s=Math.min(t,n)):t+e>n&&(a=n-t,a=Math.max(a,i.left),s=Math.min(t,n))),"left"===r&&e<0&&(a=i.left,s=Math.min(t,n)),"right"===r&&t+e>n&&(s=n-e),{width:s-i.left-i.right,left:a}},e.updateVerticalPosition=function(e,t,n,r,o){var i=t-(e.top+(r?e.height:0)),s=t+e.bottom-(r?e.height:0)-o;return i>0&&s<=0&&"top"==n?n="bottom":s>0&&i<=0&&"bottom"==n?n="top":s>0&&i>0&&(n=i<s?"top":"bottom"),n},e.calculatePopupDirection=function(e,t){var n;return"center"==t&&"middle"!=e?n=e:"center"!=t&&(n=t),n},e.calculatePointerTarget=function(e,t,n,r,o,i,s){void 0===i&&(i=0),void 0===s&&(s=0);var a={};return"center"!=o?(a.top=e.top+e.height/2,a.left=e[o]):"middle"!=r&&(a.top=e[r],a.left=e.left+e.width/2),a.left=Math.round(a.left-n),a.top=Math.round(a.top-t),"left"==o&&(a.left-=i+s),"center"===o&&(a.left-=i),a},e.bottomIndent=16,e}()},"./src/utils/responsivity-manager.ts":function(e,t,n){"use strict";n.r(t),n.d(t,"ResponsivityManager",(function(){return s})),n.d(t,"VerticalResponsivityManager",(function(){return a}));var r,o=n("./src/utils/utils.ts"),i=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),s=function(){function e(e,t,n,r){var o=this;void 0===r&&(r=null),this.container=e,this.model=t,this.itemsSelector=n,this.dotsItemSize=r,this.resizeObserver=void 0,this.isInitialized=!1,this.minDimensionConst=56,this.separatorSize=17,this.separatorAddConst=1,this.paddingSizeConst=8,this.dotsSizeConst=48,this.recalcMinDimensionConst=!0,this.getComputedStyle=window.getComputedStyle.bind(window),this.model.updateCallback=function(e){e&&(o.isInitialized=!1),setTimeout((function(){o.process()}),1)},"undefined"!=typeof ResizeObserver&&(this.resizeObserver=new ResizeObserver((function(e){return o.process()})),this.resizeObserver.observe(this.container.parentElement))}return e.prototype.getDimensions=function(e){return{scroll:e.scrollWidth,offset:e.offsetWidth}},e.prototype.getAvailableSpace=function(){var e=this.getComputedStyle(this.container),t=this.container.offsetWidth;return"border-box"===e.boxSizing&&(t-=parseFloat(e.paddingLeft)+parseFloat(e.paddingRight)),t},e.prototype.calcItemSize=function(e){return e.offsetWidth},e.prototype.calcMinDimension=function(e){var t=this.minDimensionConst;return e.iconSize&&this.recalcMinDimensionConst&&(t=2*e.iconSize+this.paddingSizeConst),e.canShrink?t+(e.needSeparator?this.separatorSize:0):e.maxDimension},e.prototype.calcItemsSizes=function(){var e=this,t=this.model.actions;(this.container.querySelectorAll(this.itemsSelector)||[]).forEach((function(n,r){var o=t[r];e.calcActionDimensions(o,n)}))},e.prototype.calcActionDimensions=function(e,t){e.maxDimension=this.calcItemSize(t),e.minDimension=this.calcMinDimension(e)},Object.defineProperty(e.prototype,"isContainerVisible",{get:function(){return Object(o.isContainerVisible)(this.container)},enumerable:!1,configurable:!0}),e.prototype.process=function(){var e;if(this.isContainerVisible&&!this.model.isResponsivenessDisabled){this.isInitialized||(this.model.setActionsMode("large"),this.calcItemsSizes(),this.isInitialized=!0);var t=this.dotsItemSize;if(!this.dotsItemSize){var n=null===(e=this.container)||void 0===e?void 0:e.querySelector(".sv-dots");t=n&&this.calcItemSize(n)||this.dotsSizeConst}this.model.fit(this.getAvailableSpace(),t)}},e.prototype.dispose=function(){this.model.updateCallback=void 0,this.resizeObserver&&this.resizeObserver.disconnect()},e}(),a=function(e){function t(t,n,r,o,i){void 0===i&&(i=40);var s=e.call(this,t,n,r,o)||this;return s.minDimensionConst=i,s.recalcMinDimensionConst=!1,s}return i(t,e),t.prototype.getDimensions=function(){return{scroll:this.container.scrollHeight,offset:this.container.offsetHeight}},t.prototype.getAvailableSpace=function(){var e=this.getComputedStyle(this.container),t=this.container.offsetHeight;return"border-box"===e.boxSizing&&(t-=parseFloat(e.paddingTop)+parseFloat(e.paddingBottom)),t},t.prototype.calcItemSize=function(e){return e.offsetHeight},t.prototype.calcActionDimensions=function(e,t){e.maxDimension=this.calcItemSize(t),e.minDimension=this.calcItemSize(t)},t}(s)},"./src/utils/tooltip.ts":function(e,t,n){"use strict";n.r(t),n.d(t,"TooltipManager",(function(){return r}));var r=function(){function e(e){var t=this;this.tooltipElement=e,this.onMouseMoveCallback=function(e){t.tooltipElement.style.left=e.clientX+12+"px",t.tooltipElement.style.top=e.clientY+12+"px"},this.targetElement=e.parentElement,this.targetElement.addEventListener("mousemove",this.onMouseMoveCallback)}return e.prototype.dispose=function(){this.targetElement.removeEventListener("mousemove",this.onMouseMoveCallback)},e}()},"./src/utils/utils.ts":function(e,t,n){"use strict";n.r(t),n.d(t,"unwrap",(function(){return v})),n.d(t,"getRenderedSize",(function(){return b})),n.d(t,"getRenderedStyleSize",(function(){return C})),n.d(t,"doKey2ClickBlur",(function(){return x})),n.d(t,"doKey2ClickUp",(function(){return P})),n.d(t,"doKey2ClickDown",(function(){return S})),n.d(t,"sanitizeEditableContent",(function(){return j})),n.d(t,"Logger",(function(){return M})),n.d(t,"mergeValues",(function(){return k})),n.d(t,"getElementWidth",(function(){return _})),n.d(t,"isContainerVisible",(function(){return R})),n.d(t,"classesToSelector",(function(){return T})),n.d(t,"compareVersions",(function(){return o})),n.d(t,"confirmAction",(function(){return i})),n.d(t,"detectIEOrEdge",(function(){return a})),n.d(t,"detectIEBrowser",(function(){return s})),n.d(t,"loadFileFromBase64",(function(){return l})),n.d(t,"isMobile",(function(){return u})),n.d(t,"isShadowDOM",(function(){return c})),n.d(t,"getElement",(function(){return p})),n.d(t,"isElementVisible",(function(){return d})),n.d(t,"findScrollableParent",(function(){return h})),n.d(t,"scrollElementByChildId",(function(){return f})),n.d(t,"navigateToUrl",(function(){return g})),n.d(t,"createSvg",(function(){return y})),n.d(t,"getIconNameFromProxy",(function(){return m})),n.d(t,"increaseHeightByContent",(function(){return V})),n.d(t,"getOriginalEvent",(function(){return E})),n.d(t,"preventDefaults",(function(){return O})),n.d(t,"findParentByClassNames",(function(){return D})),n.d(t,"getFirstVisibleChild",(function(){return I}));var r=n("./src/settings.ts");function o(e,t){for(var n=/(\.0+)+$/,r=e.replace(n,"").split("."),o=t.replace(n,"").split("."),i=Math.min(r.length,o.length),s=0;s<i;s++){var a=parseInt(r[s],10)-parseInt(o[s],10);if(a)return a}return r.length-o.length}function i(e){return r.settings&&r.settings.confirmActionFunc?r.settings.confirmActionFunc(e):confirm(e)}function s(){if("undefined"==typeof window)return!1;var e=window.navigator.userAgent,t=e.indexOf("MSIE "),n=e.indexOf("Trident/");return t>-1||n>-1}function a(){if("undefined"==typeof window)return!1;if(void 0===a.isIEOrEdge){var e=window.navigator.userAgent,t=e.indexOf("MSIE "),n=e.indexOf("Trident/"),r=e.indexOf("Edge/");a.isIEOrEdge=r>0||n>0||t>0}return a.isIEOrEdge}function l(e,t){try{for(var n=atob(e.split(",")[1]),r=e.split(",")[0].split(":")[1].split(";")[0],o=new ArrayBuffer(n.length),i=new Uint8Array(o),s=0;s<n.length;s++)i[s]=n.charCodeAt(s);var a=new Blob([o],{type:r});"undefined"!=typeof window&&window.navigator&&window.navigator.msSaveBlob&&window.navigator.msSaveOrOpenBlob(a,t)}catch(e){}}function u(){return"undefined"!=typeof window&&void 0!==window.orientation}var c=function(e){return!!e&&!(!("host"in e)||!e.host)},p=function(e){var t=r.settings.environment.root;return"string"==typeof e?t.getElementById(e):e};function d(e,t){if(void 0===t&&(t=0),void 0===r.settings.environment)return!1;var n=r.settings.environment.root,o=c(n)?n.host.clientHeight:n.documentElement.clientHeight,i=e.getBoundingClientRect(),s=-t,a=Math.max(o,window.innerHeight)+t,l=i.top,u=i.bottom;return Math.max(s,l)<=Math.min(a,u)}function h(e){var t=r.settings.environment.root;return e?e.scrollHeight>e.clientHeight&&("scroll"===getComputedStyle(e).overflowY||"auto"===getComputedStyle(e).overflowY)||e.scrollWidth>e.clientWidth&&("scroll"===getComputedStyle(e).overflowX||"auto"===getComputedStyle(e).overflowX)?e:h(e.parentElement):c(t)?t.host:t.documentElement}function f(e){var t=r.settings.environment;if(t){var n=t.root.getElementById(e);if(n){var o=h(n);o&&o.dispatchEvent(new CustomEvent("scroll"))}}}function g(e){e&&"undefined"!=typeof window&&window.location&&(window.location.href=e)}function m(e){return e&&r.settings.customIcons[e]||e}function y(e,t,n,r,o,i){if(o){"auto"!==e&&(o.style.width=(e||t||16)+"px",o.style.height=(e||n||16)+"px");var s=o.childNodes[0],a=m(r);s.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href","#"+a);var l=o.getElementsByTagName("title")[0];i?(l||(l=document.createElementNS("http://www.w3.org/2000/svg","title"),o.appendChild(l)),l.textContent=i):l&&o.removeChild(l)}}function v(e){return"function"!=typeof e?e:e()}function b(e){if("string"==typeof e){if(!isNaN(Number(e)))return Number(e);if(e.includes("px"))return parseFloat(e)}if("number"==typeof e)return e}function C(e){if(void 0===b(e))return e}var w="sv-focused--by-key";function x(e){var t=e.target;t&&t.classList&&t.classList.remove(w)}function P(e,t){if(!e.target||"true"!==e.target.contentEditable){var n=e.target;if(n){var r=e.which||e.keyCode;if(9!==r){if(t){if(!t.__keyDownReceived)return;t.__keyDownReceived=!1}13===r||32===r?n.click&&n.click():t&&!t.processEsc||27!==r||n.blur&&n.blur()}else n.classList&&!n.classList.contains(w)&&n.classList.add(w)}}}function S(e,t){if(void 0===t&&(t={processEsc:!0}),t&&(t.__keyDownReceived=!0),!e.target||"true"!==e.target.contentEditable){var n=e.which||e.keyCode,r=[13,32];t.processEsc&&r.push(27),-1!==r.indexOf(n)&&e.preventDefault()}}function V(e,t){if(e){t||(t=function(e){return window.getComputedStyle(e)});var n=t(e);e.style.height="auto",e.style.height=e.scrollHeight+parseFloat(n.borderTopWidth)+parseFloat(n.borderBottomWidth)+"px"}}function E(e){return e.originalEvent||e}function O(e){e.preventDefault(),e.stopPropagation()}function T(e){return e.replace(/\s*?([\w-]+)\s*?/g,".$1")}function _(e){return getComputedStyle?Number.parseFloat(getComputedStyle(e).width):e.offsetWidth}function R(e){return!!(e.offsetWidth||e.offsetHeight||e.getClientRects().length)}function I(e){for(var t,n=0;n<e.children.length;n++)t||"none"===getComputedStyle(e.children[n]).display||(t=e.children[n]);return t}function D(e,t){if(e)return t.every((function(t){return!t||e.classList.contains(t)}))?e:D(e.parentElement,t)}function j(e){if(window.getSelection&&document.createRange&&e.childNodes.length>0){var t=document.getSelection(),n=t.getRangeAt(0);n.setStart(n.endContainer,n.endOffset),n.setEndAfter(e.lastChild),t.removeAllRanges(),t.addRange(n);var r=t.toString().replace(/\n/g,"").length;e.innerText=e.innerText.replace(/\n/g,""),(n=document.createRange()).setStart(e.childNodes[0],e.innerText.length-r),n.collapse(!0),t.removeAllRanges(),t.addRange(n)}}function k(e,t){if(t&&e&&"object"==typeof t)for(var n in e){var r=e[n];!Array.isArray(r)&&r&&"object"==typeof r?(t[n]&&"object"==typeof t[n]||(t[n]={}),k(r,t[n])):t[n]=r}}var M=function(){function e(){this._result=""}return e.prototype.log=function(e){this._result+="->"+e},Object.defineProperty(e.prototype,"result",{get:function(){return this._result},enumerable:!1,configurable:!0}),e}()},"./src/validator.ts":function(e,t,n){"use strict";n.r(t),n.d(t,"ValidatorResult",(function(){return c})),n.d(t,"SurveyValidator",(function(){return p})),n.d(t,"ValidatorRunner",(function(){return d})),n.d(t,"NumericValidator",(function(){return h})),n.d(t,"TextValidator",(function(){return f})),n.d(t,"AnswerCountValidator",(function(){return g})),n.d(t,"RegexValidator",(function(){return m})),n.d(t,"EmailValidator",(function(){return y})),n.d(t,"ExpressionValidator",(function(){return v}));var r,o=n("./src/base.ts"),i=n("./src/error.ts"),s=n("./src/jsonobject.ts"),a=n("./src/conditions.ts"),l=n("./src/helpers.ts"),u=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),c=function(e,t){void 0===t&&(t=null),this.value=e,this.error=t},p=function(e){function t(){var t=e.call(this)||this;return t.createLocalizableString("text",t,!0),t}return u(t,e),t.prototype.getSurvey=function(e){return void 0===e&&(e=!1),this.errorOwner&&this.errorOwner.getSurvey?this.errorOwner.getSurvey():null},Object.defineProperty(t.prototype,"text",{get:function(){return this.getLocalizableStringText("text")},set:function(e){this.setLocalizableStringText("text",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isValidateAllValues",{get:function(){return!1},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locText",{get:function(){return this.getLocalizableString("text")},enumerable:!1,configurable:!0}),t.prototype.getErrorText=function(e){return this.text?this.text:this.getDefaultErrorText(e)},t.prototype.getDefaultErrorText=function(e){return""},t.prototype.validate=function(e,t,n,r){return void 0===t&&(t=null),void 0===n&&(n=null),void 0===r&&(r=null),null},Object.defineProperty(t.prototype,"isRunning",{get:function(){return!1},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isAsync",{get:function(){return!1},enumerable:!1,configurable:!0}),t.prototype.getLocale=function(){return this.errorOwner?this.errorOwner.getLocale():""},t.prototype.getMarkdownHtml=function(e,t){return this.errorOwner?this.errorOwner.getMarkdownHtml(e,t):void 0},t.prototype.getRenderer=function(e){return this.errorOwner?this.errorOwner.getRenderer(e):null},t.prototype.getRendererContext=function(e){return this.errorOwner?this.errorOwner.getRendererContext(e):e},t.prototype.getProcessedText=function(e){return this.errorOwner?this.errorOwner.getProcessedText(e):e},t.prototype.createCustomError=function(e){var t=this,n=new i.CustomError(this.getErrorText(e),this.errorOwner);return n.onUpdateErrorTextCallback=function(n){return n.text=t.getErrorText(e)},n},t.prototype.toString=function(){var e=this.getType().replace("validator","");return this.text&&(e+=", "+this.text),e},t}(o.Base),d=function(){function e(){}return e.prototype.run=function(e){var t=this,n=[],r=null,o=null;this.prepareAsyncValidators();for(var i=[],s=e.getValidators(),a=0;a<s.length;a++){var l=s[a];!r&&l.isValidateAllValues&&(r=e.getDataFilteredValues(),o=e.getDataFilteredProperties()),l.isAsync&&(this.asyncValidators.push(l),l.onAsyncCompleted=function(e){if(e&&e.error&&i.push(e.error),t.onAsyncCompleted){for(var n=0;n<t.asyncValidators.length;n++)if(t.asyncValidators[n].isRunning)return;t.onAsyncCompleted(i)}})}for(s=e.getValidators(),a=0;a<s.length;a++){var u=(l=s[a]).validate(e.validatedValue,e.getValidatorTitle(),r,o);u&&u.error&&n.push(u.error)}return 0==this.asyncValidators.length&&this.onAsyncCompleted&&this.onAsyncCompleted([]),n},e.prototype.prepareAsyncValidators=function(){if(this.asyncValidators)for(var e=0;e<this.asyncValidators.length;e++)this.asyncValidators[e].onAsyncCompleted=null;this.asyncValidators=[]},e}(),h=function(e){function t(t,n){void 0===t&&(t=null),void 0===n&&(n=null);var r=e.call(this)||this;return r.minValue=t,r.maxValue=n,r}return u(t,e),t.prototype.getType=function(){return"numericvalidator"},t.prototype.validate=function(e,t,n,r){if(void 0===t&&(t=null),void 0===n&&(n=null),void 0===r&&(r=null),this.isValueEmpty(e))return null;if(!l.Helpers.isNumber(e))return new c(null,new i.RequreNumericError(this.text,this.errorOwner));var o=new c(l.Helpers.getNumber(e));return null!==this.minValue&&this.minValue>o.value||null!==this.maxValue&&this.maxValue<o.value?(o.error=this.createCustomError(t),o):"number"==typeof e?null:o},t.prototype.getDefaultErrorText=function(e){var t=e||this.getLocalizationString("value");return null!==this.minValue&&null!==this.maxValue?this.getLocalizationFormatString("numericMinMax",t,this.minValue,this.maxValue):null!==this.minValue?this.getLocalizationFormatString("numericMin",t,this.minValue):this.getLocalizationFormatString("numericMax",t,this.maxValue)},Object.defineProperty(t.prototype,"minValue",{get:function(){return this.getPropertyValue("minValue")},set:function(e){this.setPropertyValue("minValue",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"maxValue",{get:function(){return this.getPropertyValue("maxValue")},set:function(e){this.setPropertyValue("maxValue",e)},enumerable:!1,configurable:!0}),t}(p),f=function(e){function t(){return e.call(this)||this}return u(t,e),t.prototype.getType=function(){return"textvalidator"},t.prototype.validate=function(e,t,n,r){return void 0===t&&(t=null),void 0===n&&(n=null),void 0===r&&(r=null),this.isValueEmpty(e)?null:this.allowDigits||/^[A-Za-z\s\.]*$/.test(e)?this.minLength>0&&e.length<this.minLength||this.maxLength>0&&e.length>this.maxLength?new c(null,this.createCustomError(t)):null:new c(null,this.createCustomError(t))},t.prototype.getDefaultErrorText=function(e){return this.minLength>0&&this.maxLength>0?this.getLocalizationFormatString("textMinMaxLength",this.minLength,this.maxLength):this.minLength>0?this.getLocalizationFormatString("textMinLength",this.minLength):this.getLocalizationFormatString("textMaxLength",this.maxLength)},Object.defineProperty(t.prototype,"minLength",{get:function(){return this.getPropertyValue("minLength")},set:function(e){this.setPropertyValue("minLength",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"maxLength",{get:function(){return this.getPropertyValue("maxLength")},set:function(e){this.setPropertyValue("maxLength",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"allowDigits",{get:function(){return this.getPropertyValue("allowDigits")},set:function(e){this.setPropertyValue("allowDigits",e)},enumerable:!1,configurable:!0}),t}(p),g=function(e){function t(t,n){void 0===t&&(t=null),void 0===n&&(n=null);var r=e.call(this)||this;return r.minCount=t,r.maxCount=n,r}return u(t,e),t.prototype.getType=function(){return"answercountvalidator"},t.prototype.validate=function(e,t,n,r){if(void 0===t&&(t=null),void 0===n&&(n=null),void 0===r&&(r=null),null==e||e.constructor!=Array)return null;var o=e.length;return 0==o?null:this.minCount&&o<this.minCount?new c(null,this.createCustomError(this.getLocalizationFormatString("minSelectError",this.minCount))):this.maxCount&&o>this.maxCount?new c(null,this.createCustomError(this.getLocalizationFormatString("maxSelectError",this.maxCount))):null},t.prototype.getDefaultErrorText=function(e){return e},Object.defineProperty(t.prototype,"minCount",{get:function(){return this.getPropertyValue("minCount")},set:function(e){this.setPropertyValue("minCount",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"maxCount",{get:function(){return this.getPropertyValue("maxCount")},set:function(e){this.setPropertyValue("maxCount",e)},enumerable:!1,configurable:!0}),t}(p),m=function(e){function t(t){void 0===t&&(t=null);var n=e.call(this)||this;return n.regex=t,n}return u(t,e),t.prototype.getType=function(){return"regexvalidator"},t.prototype.validate=function(e,t,n,r){if(void 0===t&&(t=null),void 0===n&&(n=null),void 0===r&&(r=null),!this.regex||this.isValueEmpty(e))return null;var o=new RegExp(this.regex);if(Array.isArray(e))for(var i=0;i<e.length;i++){var s=this.hasError(o,e[i],t);if(s)return s}return this.hasError(o,e,t)},t.prototype.hasError=function(e,t,n){return e.test(t)?null:new c(t,this.createCustomError(n))},Object.defineProperty(t.prototype,"regex",{get:function(){return this.getPropertyValue("regex")},set:function(e){this.setPropertyValue("regex",e)},enumerable:!1,configurable:!0}),t}(p),y=function(e){function t(){var t=e.call(this)||this;return t.re=/^(([^<>()\[\]\.,;:\s@\"]+(\.[^<>()\[\]\.,;:\s@\"]+)*)|(\".+\"))@(([^<>()=[\]\.,;:\s@\"]+\.)+[^<>()=[\]\.,;:\s@\"]{2,})$/i,t}return u(t,e),t.prototype.getType=function(){return"emailvalidator"},t.prototype.validate=function(e,t,n,r){return void 0===t&&(t=null),void 0===n&&(n=null),void 0===r&&(r=null),e?this.re.test(e)?null:new c(e,this.createCustomError(t)):null},t.prototype.getDefaultErrorText=function(e){return this.getLocalizationString("invalidEmail")},t}(p),v=function(e){function t(t){void 0===t&&(t=null);var n=e.call(this)||this;return n.conditionRunner=null,n.isRunningValue=!1,n.expression=t,n}return u(t,e),t.prototype.getType=function(){return"expressionvalidator"},Object.defineProperty(t.prototype,"isValidateAllValues",{get:function(){return!0},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isAsync",{get:function(){return!!this.ensureConditionRunner()&&this.conditionRunner.isAsync},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isRunning",{get:function(){return this.isRunningValue},enumerable:!1,configurable:!0}),t.prototype.validate=function(e,t,n,r){var o=this;if(void 0===t&&(t=null),void 0===n&&(n=null),void 0===r&&(r=null),!this.ensureConditionRunner())return null;this.conditionRunner.onRunComplete=function(n){o.isRunningValue=!1,o.onAsyncCompleted&&o.onAsyncCompleted(o.generateError(n,e,t))},this.isRunningValue=!0;var i=this.conditionRunner.run(n,r);return this.conditionRunner.isAsync?null:(this.isRunningValue=!1,this.generateError(i,e,t))},t.prototype.generateError=function(e,t,n){return e?null:new c(t,this.createCustomError(n))},t.prototype.getDefaultErrorText=function(e){return this.getLocalizationFormatString("invalidExpression",this.expression)},t.prototype.ensureConditionRunner=function(){return this.conditionRunner?(this.conditionRunner.expression=this.expression,!0):!!this.expression&&(this.conditionRunner=new a.ConditionRunner(this.expression),!0)},Object.defineProperty(t.prototype,"expression",{get:function(){return this.getPropertyValue("expression")},set:function(e){this.setPropertyValue("expression",e)},enumerable:!1,configurable:!0}),t}(p);s.Serializer.addClass("surveyvalidator",[{name:"text",serializationProperty:"locText"}]),s.Serializer.addClass("numericvalidator",["minValue:number","maxValue:number"],(function(){return new h}),"surveyvalidator"),s.Serializer.addClass("textvalidator",[{name:"minLength:number",default:0},{name:"maxLength:number",default:0},{name:"allowDigits:boolean",default:!0}],(function(){return new f}),"surveyvalidator"),s.Serializer.addClass("answercountvalidator",["minCount:number","maxCount:number"],(function(){return new g}),"surveyvalidator"),s.Serializer.addClass("regexvalidator",["regex"],(function(){return new m}),"surveyvalidator"),s.Serializer.addClass("emailvalidator",[],(function(){return new y}),"surveyvalidator"),s.Serializer.addClass("expressionvalidator",["expression:condition"],(function(){return new v}),"surveyvalidator")}})},e.exports=t()},352:function(e,t,n){var r;r=function(e,t,n){return function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)n.d(r,o,function(t){return e[t]}.bind(null,o));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s="./src/entries/react-ui.ts")}({"./src/entries/core-export.ts":function(e,t,n){"use strict";n.r(t);var r=n("survey-core");n.d(t,"SurveyModel",(function(){return r.SurveyModel})),n.d(t,"SurveyWindowModel",(function(){return r.SurveyWindowModel})),n.d(t,"settings",(function(){return r.settings})),n.d(t,"surveyLocalization",(function(){return r.surveyLocalization})),n.d(t,"surveyStrings",(function(){return r.surveyStrings}))},"./src/entries/react-ui-model.ts":function(e,t,n){"use strict";n.r(t);var r=n("./src/react/reactSurvey.tsx");n.d(t,"Survey",(function(){return r.Survey})),n.d(t,"attachKey2click",(function(){return r.attachKey2click}));var o=n("./src/react/reactsurveymodel.tsx");n.d(t,"ReactSurveyElementsWrapper",(function(){return o.ReactSurveyElementsWrapper}));var i=n("./src/react/reactSurveyNavigationBase.tsx");n.d(t,"SurveyNavigationBase",(function(){return i.SurveyNavigationBase}));var s=n("./src/react/reacttimerpanel.tsx");n.d(t,"SurveyTimerPanel",(function(){return s.SurveyTimerPanel}));var a=n("./src/react/page.tsx");n.d(t,"SurveyPage",(function(){return a.SurveyPage}));var l=n("./src/react/row.tsx");n.d(t,"SurveyRow",(function(){return l.SurveyRow}));var u=n("./src/react/panel.tsx");n.d(t,"SurveyPanel",(function(){return u.SurveyPanel}));var c=n("./src/react/flow-panel.tsx");n.d(t,"SurveyFlowPanel",(function(){return c.SurveyFlowPanel}));var p=n("./src/react/reactquestion.tsx");n.d(t,"SurveyQuestion",(function(){return p.SurveyQuestion})),n.d(t,"SurveyElementErrors",(function(){return p.SurveyElementErrors})),n.d(t,"SurveyQuestionAndErrorsCell",(function(){return p.SurveyQuestionAndErrorsCell}));var d=n("./src/react/reactquestion_element.tsx");n.d(t,"ReactSurveyElement",(function(){return d.ReactSurveyElement})),n.d(t,"SurveyElementBase",(function(){return d.SurveyElementBase})),n.d(t,"SurveyQuestionElementBase",(function(){return d.SurveyQuestionElementBase}));var h=n("./src/react/reactquestion_comment.tsx");n.d(t,"SurveyQuestionCommentItem",(function(){return h.SurveyQuestionCommentItem})),n.d(t,"SurveyQuestionComment",(function(){return h.SurveyQuestionComment}));var f=n("./src/react/reactquestion_checkbox.tsx");n.d(t,"SurveyQuestionCheckbox",(function(){return f.SurveyQuestionCheckbox})),n.d(t,"SurveyQuestionCheckboxItem",(function(){return f.SurveyQuestionCheckboxItem}));var g=n("./src/react/reactquestion_ranking.tsx");n.d(t,"SurveyQuestionRanking",(function(){return g.SurveyQuestionRanking})),n.d(t,"SurveyQuestionRankingItem",(function(){return g.SurveyQuestionRankingItem}));var m=n("./src/react/components/rating/rating-item.tsx");n.d(t,"RatingItem",(function(){return m.RatingItem}));var y=n("./src/react/components/rating/rating-item-star.tsx");n.d(t,"RatingItemStar",(function(){return y.RatingItemStar}));var v=n("./src/react/components/rating/rating-item-smiley.tsx");n.d(t,"RatingItemSmiley",(function(){return v.RatingItemSmiley}));var b=n("./src/react/tagbox-filter.tsx");n.d(t,"TagboxFilterString",(function(){return b.TagboxFilterString}));var C=n("./src/react/dropdown-item.tsx");n.d(t,"SurveyQuestionOptionItem",(function(){return C.SurveyQuestionOptionItem}));var w=n("./src/react/dropdown-base.tsx");n.d(t,"SurveyQuestionDropdownBase",(function(){return w.SurveyQuestionDropdownBase}));var x=n("./src/react/reactquestion_dropdown.tsx");n.d(t,"SurveyQuestionDropdown",(function(){return x.SurveyQuestionDropdown}));var P=n("./src/react/tagbox-item.tsx");n.d(t,"SurveyQuestionTagboxItem",(function(){return P.SurveyQuestionTagboxItem}));var S=n("./src/react/reactquestion_tagbox.tsx");n.d(t,"SurveyQuestionTagbox",(function(){return S.SurveyQuestionTagbox}));var V=n("./src/react/dropdown-select.tsx");n.d(t,"SurveyQuestionDropdownSelect",(function(){return V.SurveyQuestionDropdownSelect}));var E=n("./src/react/reactquestion_matrix.tsx");n.d(t,"SurveyQuestionMatrix",(function(){return E.SurveyQuestionMatrix})),n.d(t,"SurveyQuestionMatrixRow",(function(){return E.SurveyQuestionMatrixRow}));var O=n("./src/react/reactquestion_html.tsx");n.d(t,"SurveyQuestionHtml",(function(){return O.SurveyQuestionHtml}));var T=n("./src/react/reactquestion_file.tsx");n.d(t,"SurveyQuestionFile",(function(){return T.SurveyQuestionFile}));var _=n("./src/react/reactquestion_multipletext.tsx");n.d(t,"SurveyQuestionMultipleText",(function(){return _.SurveyQuestionMultipleText}));var R=n("./src/react/reactquestion_radiogroup.tsx");n.d(t,"SurveyQuestionRadiogroup",(function(){return R.SurveyQuestionRadiogroup})),n.d(t,"SurveyQuestionRadioItem",(function(){return R.SurveyQuestionRadioItem}));var I=n("./src/react/reactquestion_text.tsx");n.d(t,"SurveyQuestionText",(function(){return I.SurveyQuestionText}));var D=n("./src/react/boolean.tsx");n.d(t,"SurveyQuestionBoolean",(function(){return D.SurveyQuestionBoolean}));var j=n("./src/react/boolean-checkbox.tsx");n.d(t,"SurveyQuestionBooleanCheckbox",(function(){return j.SurveyQuestionBooleanCheckbox}));var k=n("./src/react/boolean-radio.tsx");n.d(t,"SurveyQuestionBooleanRadio",(function(){return k.SurveyQuestionBooleanRadio}));var M=n("./src/react/reactquestion_empty.tsx");n.d(t,"SurveyQuestionEmpty",(function(){return M.SurveyQuestionEmpty}));var L=n("./src/react/reactquestion_matrixdropdownbase.tsx");n.d(t,"SurveyQuestionMatrixDropdownCell",(function(){return L.SurveyQuestionMatrixDropdownCell})),n.d(t,"SurveyQuestionMatrixDropdownBase",(function(){return L.SurveyQuestionMatrixDropdownBase}));var q=n("./src/react/reactquestion_matrixdropdown.tsx");n.d(t,"SurveyQuestionMatrixDropdown",(function(){return q.SurveyQuestionMatrixDropdown}));var N=n("./src/react/reactquestion_matrixdynamic.tsx");n.d(t,"SurveyQuestionMatrixDynamic",(function(){return N.SurveyQuestionMatrixDynamic})),n.d(t,"SurveyQuestionMatrixDynamicAddButton",(function(){return N.SurveyQuestionMatrixDynamicAddButton}));var A=n("./src/react/reactquestion_paneldynamic.tsx");n.d(t,"SurveyQuestionPanelDynamic",(function(){return A.SurveyQuestionPanelDynamic}));var B=n("./src/react/reactSurveyProgress.tsx");n.d(t,"SurveyProgress",(function(){return B.SurveyProgress}));var F=n("./src/react/reactSurveyProgressButtons.tsx");n.d(t,"SurveyProgressButtons",(function(){return F.SurveyProgressButtons}));var Q=n("./src/react/reactSurveyProgressToc.tsx");n.d(t,"SurveyProgressToc",(function(){return Q.SurveyProgressToc}));var z=n("./src/react/reactquestion_rating.tsx");n.d(t,"SurveyQuestionRating",(function(){return z.SurveyQuestionRating}));var H=n("./src/react/rating-dropdown.tsx");n.d(t,"SurveyQuestionRatingDropdown",(function(){return H.SurveyQuestionRatingDropdown}));var U=n("./src/react/reactquestion_expression.tsx");n.d(t,"SurveyQuestionExpression",(function(){return U.SurveyQuestionExpression}));var W=n("./src/react/react-popup-survey.tsx");n.d(t,"PopupSurvey",(function(){return W.PopupSurvey})),n.d(t,"SurveyWindow",(function(){return W.SurveyWindow}));var J=n("./src/react/reactquestion_factory.tsx");n.d(t,"ReactQuestionFactory",(function(){return J.ReactQuestionFactory}));var $=n("./src/react/element-factory.tsx");n.d(t,"ReactElementFactory",(function(){return $.ReactElementFactory}));var G=n("./src/react/imagepicker.tsx");n.d(t,"SurveyQuestionImagePicker",(function(){return G.SurveyQuestionImagePicker}));var K=n("./src/react/image.tsx");n.d(t,"SurveyQuestionImage",(function(){return K.SurveyQuestionImage}));var Z=n("./src/react/signaturepad.tsx");n.d(t,"SurveyQuestionSignaturePad",(function(){return Z.SurveyQuestionSignaturePad}));var Y=n("./src/react/reactquestion_buttongroup.tsx");n.d(t,"SurveyQuestionButtonGroup",(function(){return Y.SurveyQuestionButtonGroup}));var X=n("./src/react/reactquestion_custom.tsx");n.d(t,"SurveyQuestionCustom",(function(){return X.SurveyQuestionCustom})),n.d(t,"SurveyQuestionComposite",(function(){return X.SurveyQuestionComposite}));var ee=n("./src/react/components/popup/popup.tsx");n.d(t,"Popup",(function(){return ee.Popup}));var te=n("./src/react/components/list/list.tsx");n.d(t,"List",(function(){return te.List}));var ne=n("./src/react/components/title/title-actions.tsx");n.d(t,"TitleActions",(function(){return ne.TitleActions}));var re=n("./src/react/components/title/title-element.tsx");n.d(t,"TitleElement",(function(){return re.TitleElement}));var oe=n("./src/react/components/action-bar/action-bar.tsx");n.d(t,"SurveyActionBar",(function(){return oe.SurveyActionBar}));var ie=n("./src/react/components/survey-header/logo-image.tsx");n.d(t,"LogoImage",(function(){return ie.LogoImage}));var se=n("./src/react/components/survey-header/survey-header.tsx");n.d(t,"SurveyHeader",(function(){return se.SurveyHeader}));var ae=n("./src/react/components/svg-icon/svg-icon.tsx");n.d(t,"SvgIcon",(function(){return ae.SvgIcon}));var le=n("./src/react/components/matrix-actions/remove-button/remove-button.tsx");n.d(t,"SurveyQuestionMatrixDynamicRemoveButton",(function(){return le.SurveyQuestionMatrixDynamicRemoveButton}));var ue=n("./src/react/components/matrix-actions/detail-button/detail-button.tsx");n.d(t,"SurveyQuestionMatrixDetailButton",(function(){return ue.SurveyQuestionMatrixDetailButton}));var ce=n("./src/react/components/matrix-actions/drag-drop-icon/drag-drop-icon.tsx");n.d(t,"SurveyQuestionMatrixDynamicDragDropIcon",(function(){return ce.SurveyQuestionMatrixDynamicDragDropIcon}));var pe=n("./src/react/components/paneldynamic-actions/paneldynamic-add-btn.tsx");n.d(t,"SurveyQuestionPanelDynamicAddButton",(function(){return pe.SurveyQuestionPanelDynamicAddButton}));var de=n("./src/react/components/paneldynamic-actions/paneldynamic-remove-btn.tsx");n.d(t,"SurveyQuestionPanelDynamicRemoveButton",(function(){return de.SurveyQuestionPanelDynamicRemoveButton}));var he=n("./src/react/components/paneldynamic-actions/paneldynamic-prev-btn.tsx");n.d(t,"SurveyQuestionPanelDynamicPrevButton",(function(){return he.SurveyQuestionPanelDynamicPrevButton}));var fe=n("./src/react/components/paneldynamic-actions/paneldynamic-next-btn.tsx");n.d(t,"SurveyQuestionPanelDynamicNextButton",(function(){return fe.SurveyQuestionPanelDynamicNextButton}));var ge=n("./src/react/components/paneldynamic-actions/paneldynamic-progress-text.tsx");n.d(t,"SurveyQuestionPanelDynamicProgressText",(function(){return ge.SurveyQuestionPanelDynamicProgressText}));var me=n("./src/react/components/survey-actions/survey-nav-button.tsx");n.d(t,"SurveyNavigationButton",(function(){return me.SurveyNavigationButton}));var ye=n("./src/react/components/matrix/row.tsx");n.d(t,"MatrixRow",(function(){return ye.MatrixRow}));var ve=n("./src/react/components/skeleton.tsx");n.d(t,"Skeleton",(function(){return ve.Skeleton}));var be=n("./src/react/components/notifier.tsx");n.d(t,"NotifierComponent",(function(){return be.NotifierComponent}));var Ce=n("./src/react/components/components-container.tsx");n.d(t,"ComponentsContainer",(function(){return Ce.ComponentsContainer}));var we=n("./src/react/components/character-counter.tsx");n.d(t,"CharacterCounterComponent",(function(){return we.CharacterCounterComponent}));var xe=n("./src/react/string-viewer.tsx");n.d(t,"SurveyLocStringViewer",(function(){return xe.SurveyLocStringViewer}));var Pe=n("./src/react/string-editor.tsx");n.d(t,"SurveyLocStringEditor",(function(){return Pe.SurveyLocStringEditor}))},"./src/entries/react-ui.ts":function(e,t,n){"use strict";n.r(t);var r=n("./src/entries/react-ui-model.ts");n.d(t,"Survey",(function(){return r.Survey})),n.d(t,"attachKey2click",(function(){return r.attachKey2click})),n.d(t,"ReactSurveyElementsWrapper",(function(){return r.ReactSurveyElementsWrapper})),n.d(t,"SurveyNavigationBase",(function(){return r.SurveyNavigationBase})),n.d(t,"SurveyTimerPanel",(function(){return r.SurveyTimerPanel})),n.d(t,"SurveyPage",(function(){return r.SurveyPage})),n.d(t,"SurveyRow",(function(){return r.SurveyRow})),n.d(t,"SurveyPanel",(function(){return r.SurveyPanel})),n.d(t,"SurveyFlowPanel",(function(){return r.SurveyFlowPanel})),n.d(t,"SurveyQuestion",(function(){return r.SurveyQuestion})),n.d(t,"SurveyElementErrors",(function(){return r.SurveyElementErrors})),n.d(t,"SurveyQuestionAndErrorsCell",(function(){return r.SurveyQuestionAndErrorsCell})),n.d(t,"ReactSurveyElement",(function(){return r.ReactSurveyElement})),n.d(t,"SurveyElementBase",(function(){return r.SurveyElementBase})),n.d(t,"SurveyQuestionElementBase",(function(){return r.SurveyQuestionElementBase})),n.d(t,"SurveyQuestionCommentItem",(function(){return r.SurveyQuestionCommentItem})),n.d(t,"SurveyQuestionComment",(function(){return r.SurveyQuestionComment})),n.d(t,"SurveyQuestionCheckbox",(function(){return r.SurveyQuestionCheckbox})),n.d(t,"SurveyQuestionCheckboxItem",(function(){return r.SurveyQuestionCheckboxItem})),n.d(t,"SurveyQuestionRanking",(function(){return r.SurveyQuestionRanking})),n.d(t,"SurveyQuestionRankingItem",(function(){return r.SurveyQuestionRankingItem})),n.d(t,"RatingItem",(function(){return r.RatingItem})),n.d(t,"RatingItemStar",(function(){return r.RatingItemStar})),n.d(t,"RatingItemSmiley",(function(){return r.RatingItemSmiley})),n.d(t,"TagboxFilterString",(function(){return r.TagboxFilterString})),n.d(t,"SurveyQuestionOptionItem",(function(){return r.SurveyQuestionOptionItem})),n.d(t,"SurveyQuestionDropdownBase",(function(){return r.SurveyQuestionDropdownBase})),n.d(t,"SurveyQuestionDropdown",(function(){return r.SurveyQuestionDropdown})),n.d(t,"SurveyQuestionTagboxItem",(function(){return r.SurveyQuestionTagboxItem})),n.d(t,"SurveyQuestionTagbox",(function(){return r.SurveyQuestionTagbox})),n.d(t,"SurveyQuestionDropdownSelect",(function(){return r.SurveyQuestionDropdownSelect})),n.d(t,"SurveyQuestionMatrix",(function(){return r.SurveyQuestionMatrix})),n.d(t,"SurveyQuestionMatrixRow",(function(){return r.SurveyQuestionMatrixRow})),n.d(t,"SurveyQuestionHtml",(function(){return r.SurveyQuestionHtml})),n.d(t,"SurveyQuestionFile",(function(){return r.SurveyQuestionFile})),n.d(t,"SurveyQuestionMultipleText",(function(){return r.SurveyQuestionMultipleText})),n.d(t,"SurveyQuestionRadiogroup",(function(){return r.SurveyQuestionRadiogroup})),n.d(t,"SurveyQuestionRadioItem",(function(){return r.SurveyQuestionRadioItem})),n.d(t,"SurveyQuestionText",(function(){return r.SurveyQuestionText})),n.d(t,"SurveyQuestionBoolean",(function(){return r.SurveyQuestionBoolean})),n.d(t,"SurveyQuestionBooleanCheckbox",(function(){return r.SurveyQuestionBooleanCheckbox})),n.d(t,"SurveyQuestionBooleanRadio",(function(){return r.SurveyQuestionBooleanRadio})),n.d(t,"SurveyQuestionEmpty",(function(){return r.SurveyQuestionEmpty})),n.d(t,"SurveyQuestionMatrixDropdownCell",(function(){return r.SurveyQuestionMatrixDropdownCell})),n.d(t,"SurveyQuestionMatrixDropdownBase",(function(){return r.SurveyQuestionMatrixDropdownBase})),n.d(t,"SurveyQuestionMatrixDropdown",(function(){return r.SurveyQuestionMatrixDropdown})),n.d(t,"SurveyQuestionMatrixDynamic",(function(){return r.SurveyQuestionMatrixDynamic})),n.d(t,"SurveyQuestionMatrixDynamicAddButton",(function(){return r.SurveyQuestionMatrixDynamicAddButton})),n.d(t,"SurveyQuestionPanelDynamic",(function(){return r.SurveyQuestionPanelDynamic})),n.d(t,"SurveyProgress",(function(){return r.SurveyProgress})),n.d(t,"SurveyProgressButtons",(function(){return r.SurveyProgressButtons})),n.d(t,"SurveyProgressToc",(function(){return r.SurveyProgressToc})),n.d(t,"SurveyQuestionRating",(function(){return r.SurveyQuestionRating})),n.d(t,"SurveyQuestionRatingDropdown",(function(){return r.SurveyQuestionRatingDropdown})),n.d(t,"SurveyQuestionExpression",(function(){return r.SurveyQuestionExpression})),n.d(t,"PopupSurvey",(function(){return r.PopupSurvey})),n.d(t,"SurveyWindow",(function(){return r.SurveyWindow})),n.d(t,"ReactQuestionFactory",(function(){return r.ReactQuestionFactory})),n.d(t,"ReactElementFactory",(function(){return r.ReactElementFactory})),n.d(t,"SurveyQuestionImagePicker",(function(){return r.SurveyQuestionImagePicker})),n.d(t,"SurveyQuestionImage",(function(){return r.SurveyQuestionImage})),n.d(t,"SurveyQuestionSignaturePad",(function(){return r.SurveyQuestionSignaturePad})),n.d(t,"SurveyQuestionButtonGroup",(function(){return r.SurveyQuestionButtonGroup})),n.d(t,"SurveyQuestionCustom",(function(){return r.SurveyQuestionCustom})),n.d(t,"SurveyQuestionComposite",(function(){return r.SurveyQuestionComposite})),n.d(t,"Popup",(function(){return r.Popup})),n.d(t,"List",(function(){return r.List})),n.d(t,"TitleActions",(function(){return r.TitleActions})),n.d(t,"TitleElement",(function(){return r.TitleElement})),n.d(t,"SurveyActionBar",(function(){return r.SurveyActionBar})),n.d(t,"LogoImage",(function(){return r.LogoImage})),n.d(t,"SurveyHeader",(function(){return r.SurveyHeader})),n.d(t,"SvgIcon",(function(){return r.SvgIcon})),n.d(t,"SurveyQuestionMatrixDynamicRemoveButton",(function(){return r.SurveyQuestionMatrixDynamicRemoveButton})),n.d(t,"SurveyQuestionMatrixDetailButton",(function(){return r.SurveyQuestionMatrixDetailButton})),n.d(t,"SurveyQuestionMatrixDynamicDragDropIcon",(function(){return r.SurveyQuestionMatrixDynamicDragDropIcon})),n.d(t,"SurveyQuestionPanelDynamicAddButton",(function(){return r.SurveyQuestionPanelDynamicAddButton})),n.d(t,"SurveyQuestionPanelDynamicRemoveButton",(function(){return r.SurveyQuestionPanelDynamicRemoveButton})),n.d(t,"SurveyQuestionPanelDynamicPrevButton",(function(){return r.SurveyQuestionPanelDynamicPrevButton})),n.d(t,"SurveyQuestionPanelDynamicNextButton",(function(){return r.SurveyQuestionPanelDynamicNextButton})),n.d(t,"SurveyQuestionPanelDynamicProgressText",(function(){return r.SurveyQuestionPanelDynamicProgressText})),n.d(t,"SurveyNavigationButton",(function(){return r.SurveyNavigationButton})),n.d(t,"MatrixRow",(function(){return r.MatrixRow})),n.d(t,"Skeleton",(function(){return r.Skeleton})),n.d(t,"NotifierComponent",(function(){return r.NotifierComponent})),n.d(t,"ComponentsContainer",(function(){return r.ComponentsContainer})),n.d(t,"CharacterCounterComponent",(function(){return r.CharacterCounterComponent})),n.d(t,"SurveyLocStringViewer",(function(){return r.SurveyLocStringViewer})),n.d(t,"SurveyLocStringEditor",(function(){return r.SurveyLocStringEditor}));var o=n("./src/entries/core-export.ts");n.d(t,"SurveyModel",(function(){return o.SurveyModel})),n.d(t,"SurveyWindowModel",(function(){return o.SurveyWindowModel})),n.d(t,"settings",(function(){return o.settings})),n.d(t,"surveyLocalization",(function(){return o.surveyLocalization})),n.d(t,"surveyStrings",(function(){return o.surveyStrings}));var i=n("survey-core");n.d(t,"Model",(function(){return i.SurveyModel}));var s=n("./src/utils/responsivity-manager.ts");n.d(t,"ResponsivityManager",(function(){return s.ResponsivityManager})),n.d(t,"VerticalResponsivityManager",(function(){return s.VerticalResponsivityManager}));var a=n("./src/utils/utils.ts");n.d(t,"unwrap",(function(){return a.unwrap})),Object(i.checkLibraryVersion)("1.9.103","survey-react-ui")},"./src/react/boolean-checkbox.tsx":function(e,t,n){"use strict";n.r(t),n.d(t,"SurveyQuestionBooleanCheckbox",(function(){return p}));var r,o=n("react"),i=n("survey-core"),s=n("./src/react/reactquestion_factory.tsx"),a=n("./src/react/boolean.tsx"),l=n("./src/react/components/title/title-actions.tsx"),u=n("./src/react/reactquestion_element.tsx"),c=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),p=function(e){function t(t){return e.call(this,t)||this}return c(t,e),t.prototype.renderElement=function(){var e=this.question.cssClasses,t=this.question.getCheckboxItemCss(),n=this.question.canRenderLabelDescription?u.SurveyElementBase.renderQuestionDescription(this.question):null;return o.createElement("div",{className:e.rootCheckbox},o.createElement("div",{className:t},o.createElement("label",{className:e.checkboxLabel},o.createElement("input",{ref:this.checkRef,type:"checkbox",name:this.question.name,value:null===this.question.booleanValue?"":this.question.booleanValue,id:this.question.inputId,className:e.controlCheckbox,disabled:this.isDisplayMode,checked:this.question.booleanValue||!1,onChange:this.handleOnChange,"aria-required":this.question.ariaRequired,"aria-label":this.question.ariaLabel,"aria-invalid":this.question.ariaInvalid,"aria-describedby":this.question.ariaDescribedBy}),o.createElement("span",{className:e.checkboxMaterialDecorator},this.question.svgIcon?o.createElement("svg",{className:e.checkboxItemDecorator},o.createElement("use",{xlinkHref:this.question.svgIcon})):null,o.createElement("span",{className:"check"})),this.question.isLabelRendered&&o.createElement("span",{className:e.checkboxControlLabel,id:this.question.labelRenderedAriaID},o.createElement(l.TitleActions,{element:this.question,cssClasses:this.question.cssClasses}))),n))},t}(a.SurveyQuestionBoolean);s.ReactQuestionFactory.Instance.registerQuestion("sv-boolean-checkbox",(function(e){return o.createElement(p,e)})),i.RendererFactory.Instance.registerRenderer("boolean","checkbox","sv-boolean-checkbox")},"./src/react/boolean-radio.tsx":function(e,t,n){"use strict";n.r(t),n.d(t,"SurveyQuestionBooleanRadio",(function(){return u}));var r,o=n("react"),i=n("survey-core"),s=n("./src/react/reactquestion_factory.tsx"),a=n("./src/react/boolean.tsx"),l=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),u=function(e){function t(t){var n=e.call(this,t)||this;return n.handleOnChange=function(e){n.question.booleanValue="true"==e.nativeEvent.target.value},n}return l(t,e),t.prototype.renderRadioItem=function(e,t){var n=this.question.cssClasses;return o.createElement("div",{role:"presentation",className:this.question.getRadioItemClass(n,e)},o.createElement("label",{className:n.radioLabel},o.createElement("input",{type:"radio",name:this.question.name,value:e,"aria-describedby":this.question.ariaDescribedBy,checked:e===this.question.booleanValueRendered,disabled:this.question.isInputReadOnly,className:n.itemRadioControl,onChange:this.handleOnChange}),this.question.cssClasses.materialRadioDecorator?o.createElement("span",{className:n.materialRadioDecorator},this.question.itemSvgIcon?o.createElement("svg",{className:n.itemRadioDecorator},o.createElement("use",{xlinkHref:this.question.itemSvgIcon})):null):null,o.createElement("span",{className:n.radioControlLabel},this.renderLocString(t))))},t.prototype.renderElement=function(){var e=this.question.cssClasses;return o.createElement("div",{className:e.rootRadio},o.createElement("fieldset",{role:"presentation",className:e.radioFieldset},this.renderRadioItem(!1,this.question.locLabelFalse),this.renderRadioItem(!0,this.question.locLabelTrue)))},t}(a.SurveyQuestionBoolean);s.ReactQuestionFactory.Instance.registerQuestion("sv-boolean-radio",(function(e){return o.createElement(u,e)})),i.RendererFactory.Instance.registerRenderer("boolean","radio","sv-boolean-radio")},"./src/react/boolean.tsx":function(e,t,n){"use strict";n.r(t),n.d(t,"SurveyQuestionBoolean",(function(){return l}));var r,o=n("react"),i=n("./src/react/reactquestion_element.tsx"),s=n("./src/react/reactquestion_factory.tsx"),a=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),l=function(e){function t(t){var n=e.call(this,t)||this;return n.handleOnChange=n.handleOnChange.bind(n),n.handleOnClick=n.handleOnClick.bind(n),n.handleOnLabelClick=n.handleOnLabelClick.bind(n),n.handleOnSwitchClick=n.handleOnSwitchClick.bind(n),n.handleOnKeyDown=n.handleOnKeyDown.bind(n),n.checkRef=o.createRef(),n}return a(t,e),t.prototype.getStateElement=function(){return this.question},Object.defineProperty(t.prototype,"question",{get:function(){return this.questionBase},enumerable:!1,configurable:!0}),t.prototype.doCheck=function(e){this.question.booleanValue=e},t.prototype.handleOnChange=function(e){this.doCheck(e.target.checked)},t.prototype.handleOnClick=function(e){this.question.onLabelClick(e,!0)},t.prototype.handleOnSwitchClick=function(e){this.question.onSwitchClickModel(e.nativeEvent)},t.prototype.handleOnLabelClick=function(e,t){this.question.onLabelClick(e,t)},t.prototype.handleOnKeyDown=function(e){this.question.onKeyDownCore(e)},t.prototype.updateDomElement=function(){if(this.question){var t=this.checkRef.current;t&&(t.indeterminate=this.question.isIndeterminate),this.setControl(t),e.prototype.updateDomElement.call(this)}},t.prototype.renderElement=function(){var e=this,t=this.question.cssClasses,n=this.question.getItemCss();return o.createElement("div",{className:t.root,onKeyDown:this.handleOnKeyDown},o.createElement("label",{className:n,onClick:this.handleOnClick},o.createElement("input",{ref:this.checkRef,type:"checkbox",name:this.question.name,value:null===this.question.booleanValue?"":this.question.booleanValue,id:this.question.inputId,className:t.control,disabled:this.isDisplayMode,checked:this.question.booleanValue||!1,onChange:this.handleOnChange,"aria-required":this.question.ariaRequired,"aria-label":this.question.ariaLabel,"aria-invalid":this.question.ariaInvalid,"aria-describedby":this.question.ariaDescribedBy}),o.createElement("div",{className:t.sliderGhost,onClick:function(t){return e.handleOnLabelClick(t,!1)}},o.createElement("span",{className:this.question.getLabelCss(!1)},this.renderLocString(this.question.locLabelFalse))),o.createElement("div",{className:t.switch,onClick:this.handleOnSwitchClick},o.createElement("span",{className:t.slider},this.question.isDeterminated&&t.sliderText?o.createElement("span",{className:t.sliderText},this.renderLocString(this.question.getCheckedLabel())):null)),o.createElement("div",{className:t.sliderGhost,onClick:function(t){return e.handleOnLabelClick(t,!0)}},o.createElement("span",{className:this.question.getLabelCss(!0)},this.renderLocString(this.question.locLabelTrue)))))},t}(i.SurveyQuestionElementBase);s.ReactQuestionFactory.Instance.registerQuestion("boolean",(function(e){return o.createElement(l,e)}))},"./src/react/components/action-bar/action-bar-item-dropdown.tsx":function(e,t,n){"use strict";n.r(t),n.d(t,"SurveyActionBarItemDropdown",(function(){return p}));var r,o=n("react"),i=n.n(o),s=n("survey-core"),a=n("./src/react/element-factory.tsx"),l=n("./src/react/components/popup/popup.tsx"),u=n("./src/react/components/action-bar/action-bar-item.tsx"),c=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),p=function(e){function t(t){var n=e.call(this,t)||this;return n.viewModel=new s.ActionDropdownViewModel(n.item),n}return c(t,e),t.prototype.renderInnerButton=function(){var t=e.prototype.renderInnerButton.call(this);return i.a.createElement(i.a.Fragment,null,t,i.a.createElement(l.Popup,{model:this.item.popupModel,getTarget:s.getActionDropdownButtonTarget}))},t.prototype.componentWillUnmount=function(){e.prototype.componentWillUnmount.call(this),this.viewModel.dispose()},t}(u.SurveyActionBarItem);a.ReactElementFactory.Instance.registerElement("sv-action-bar-item-dropdown",(function(e){return i.a.createElement(p,e)}))},"./src/react/components/action-bar/action-bar-item.tsx":function(e,t,n){"use strict";n.r(t),n.d(t,"SurveyAction",(function(){return d})),n.d(t,"SurveyActionBarItem",(function(){return h}));var r,o=n("react"),i=n.n(o),s=n("./src/react/element-factory.tsx"),a=n("./src/react/reactquestion_element.tsx"),l=n("./src/react/reactSurvey.tsx"),u=n("./src/react/components/svg-icon/svg-icon.tsx"),c=n("./src/react/components/action-bar/action-bar-separator.tsx"),p=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),d=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return p(t,e),Object.defineProperty(t.prototype,"item",{get:function(){return this.props.item},enumerable:!1,configurable:!0}),t.prototype.getStateElement=function(){return this.item},t.prototype.renderElement=function(){var e=this.item.getActionRootCss(),t=this.item.needSeparator?i.a.createElement(c.SurveyActionBarSeparator,null):null,n=s.ReactElementFactory.Instance.createElement(this.item.component||"sv-action-bar-item",{item:this.item});return i.a.createElement("div",{className:e,id:this.item.id},i.a.createElement("div",{className:"sv-action__content"},t,n))},t}(a.SurveyElementBase),h=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return p(t,e),Object.defineProperty(t.prototype,"item",{get:function(){return this.props.item},enumerable:!1,configurable:!0}),t.prototype.getStateElement=function(){return this.item},t.prototype.renderElement=function(){return i.a.createElement(i.a.Fragment,null,this.renderInnerButton())},t.prototype.renderText=function(){if(!this.item.hasTitle)return null;var e=this.item.getActionBarItemTitleCss();return i.a.createElement("span",{className:e},this.item.title)},t.prototype.renderButtonContent=function(){var e=this.renderText(),t=this.item.iconName?i.a.createElement(u.SvgIcon,{className:this.item.cssClasses.itemIcon,size:this.item.iconSize,iconName:this.item.iconName,title:this.item.tooltip||this.item.title}):null;return i.a.createElement(i.a.Fragment,null,t,e)},t.prototype.renderInnerButton=function(){var e=this,t=this.item.getActionBarItemCss(),n=this.item.tooltip||this.item.title,r=this.renderButtonContent(),o=this.item.disableTabStop?-1:void 0;return Object(l.attachKey2click)(i.a.createElement("button",{className:t,type:"button",disabled:this.item.disabled,onClick:function(t){return e.item.action(e.item,e.item.getIsTrusted(t))},title:n,tabIndex:o,"aria-checked":this.item.ariaChecked,"aria-expanded":this.item.ariaExpanded,role:this.item.ariaRole},r),null,{processEsc:!1})},t}(a.SurveyElementBase);s.ReactElementFactory.Instance.registerElement("sv-action-bar-item",(function(e){return i.a.createElement(h,e)}))},"./src/react/components/action-bar/action-bar-separator.tsx":function(e,t,n){"use strict";n.r(t),n.d(t,"SurveyActionBarSeparator",(function(){return l}));var r,o=n("react"),i=n.n(o),s=n("./src/react/element-factory.tsx"),a=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),l=function(e){function t(t){return e.call(this,t)||this}return a(t,e),t.prototype.render=function(){var e="sv-action-bar-separator "+this.props.cssClasses;return i.a.createElement("div",{className:e})},t}(i.a.Component);s.ReactElementFactory.Instance.registerElement("sv-action-bar-separator",(function(e){return i.a.createElement(l,e)}))},"./src/react/components/action-bar/action-bar.tsx":function(e,t,n){"use strict";n.r(t),n.d(t,"SurveyActionBar",(function(){return d}));var r=n("react"),o=n.n(r),i=n("./src/react/element-factory.tsx"),s=n("./src/react/reactquestion_element.tsx"),a=n("./src/react/components/action-bar/action-bar-item.tsx"),l=n("./src/react/components/action-bar/action-bar-item-dropdown.tsx");n.d(t,"SurveyActionBarItemDropdown",(function(){return l.SurveyActionBarItemDropdown}));var u=n("./src/react/components/action-bar/action-bar-separator.tsx");n.d(t,"SurveyActionBarSeparator",(function(){return u.SurveyActionBarSeparator}));var c,p=(c=function(e,t){return c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},c(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}c(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),d=function(e){function t(t){var n=e.call(this,t)||this;return n.rootRef=o.a.createRef(),n}return p(t,e),Object.defineProperty(t.prototype,"handleClick",{get:function(){return void 0===this.props.handleClick||this.props.handleClick},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"model",{get:function(){return this.props.model},enumerable:!1,configurable:!0}),t.prototype.componentDidMount=function(){if(e.prototype.componentDidMount.call(this),this.model.hasActions){var t=this.rootRef.current;t&&this.model.initResponsivityManager(t)}},t.prototype.componentWillUnmount=function(){e.prototype.componentWillUnmount.call(this),this.model.hasActions&&this.model.resetResponsivityManager()},t.prototype.getStateElement=function(){return this.model},t.prototype.renderElement=function(){if(!this.model.hasActions)return null;var e=this.renderItems();return o.a.createElement("div",{ref:this.rootRef,className:this.model.getRootCss(),onClick:this.handleClick?function(e){e.stopPropagation()}:void 0},e)},t.prototype.renderItems=function(){return this.model.renderedActions.map((function(e,t){return o.a.createElement(a.SurveyAction,{item:e,key:"item"+t})}))},t}(s.SurveyElementBase);i.ReactElementFactory.Instance.registerElement("sv-action-bar",(function(e){return o.a.createElement(d,e)}))},"./src/react/components/brand-info.tsx":function(e,t,n){"use strict";n.r(t),n.d(t,"BrandInfo",(function(){return a}));var r,o=n("react"),i=n.n(o),s=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),a=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return s(t,e),t.prototype.render=function(){return i.a.createElement("div",{className:"sv-brand-info"},i.a.createElement("a",{className:"sv-brand-info__logo",href:"https://surveyjs.io/?utm_source=built-in_links&utm_medium=online_survey_tool&utm_campaign=landing_page"},i.a.createElement("img",{src:"https://surveyjs.io/Content/Images/poweredby.svg"})),i.a.createElement("div",{className:"sv-brand-info__text"},"Try and see how easy it is to ",i.a.createElement("a",{href:"https://surveyjs.io/create-survey?utm_source=built-in_links&utm_medium=online_survey_tool&utm_campaign=create_survey"},"create a survey")),i.a.createElement("div",{className:"sv-brand-info__terms"},i.a.createElement("a",{href:"https://surveyjs.io/TermsOfUse"},"Terms of Use & Privacy Statement")))},t}(i.a.Component)},"./src/react/components/character-counter.tsx":function(e,t,n){"use strict";n.r(t),n.d(t,"CharacterCounterComponent",(function(){return u}));var r,o=n("react"),i=n.n(o),s=n("./src/react/element-factory.tsx"),a=n("./src/react/reactquestion_element.tsx"),l=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),u=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return l(t,e),t.prototype.getStateElement=function(){return this.props.counter},t.prototype.renderElement=function(){return i.a.createElement("div",{className:this.props.remainingCharacterCounter},this.props.counter.remainingCharacterCounter)},t}(a.SurveyElementBase);s.ReactElementFactory.Instance.registerElement("sv-character-counter",(function(e){return i.a.createElement(u,e)}))},"./src/react/components/components-container.tsx":function(e,t,n){"use strict";n.r(t),n.d(t,"ComponentsContainer",(function(){return l}));var r,o=n("react"),i=n.n(o),s=n("./src/react/element-factory.tsx"),a=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),l=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return a(t,e),t.prototype.render=function(){var e=this,t=this.props.survey.getContainerContent(this.props.container),n=!1!==this.props.needRenderWrapper;return 0==t.length?null:n?i.a.createElement("div",{className:"sv-components-column"},t.map((function(t){return s.ReactElementFactory.Instance.createElement(t.component,{survey:e.props.survey,model:t.data,key:t.id})}))):i.a.createElement(i.a.Fragment,null,t.map((function(t){return s.ReactElementFactory.Instance.createElement(t.component,{survey:e.props.survey,model:t.data,key:t.id})})))},t}(i.a.Component);s.ReactElementFactory.Instance.registerElement("sv-components-container",(function(e){return i.a.createElement(l,e)}))},"./src/react/components/list/list-item.tsx":function(e,t,n){"use strict";n.r(t),n.d(t,"ListItem",(function(){return p}));var r,o=n("react"),i=n.n(o),s=n("./src/react/element-factory.tsx"),a=n("./src/react/reactquestion_element.tsx"),l=n("./src/react/reactSurvey.tsx"),u=n("./src/react/components/svg-icon/svg-icon.tsx"),c=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),p=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.handleKeydown=function(e){t.model.onKeyDown(e)},t}return c(t,e),Object.defineProperty(t.prototype,"model",{get:function(){return this.props.model},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"item",{get:function(){return this.props.item},enumerable:!1,configurable:!0}),t.prototype.getStateElement=function(){return this.item},t.prototype.render=function(){var e=this;if(!this.item)return null;var t={paddingInlineStart:this.model.getItemIndent(this.item)},n=this.model.getItemClass(this.item),r=[];if(this.item.component){var o=s.ReactElementFactory.Instance.createElement(this.item.component,{item:this.item,key:this.item.id});o&&r.push(o)}else{var a=this.renderLocString(this.item.locTitle,void 0,"locString");if(this.item.iconName){var c=i.a.createElement(u.SvgIcon,{key:1,className:this.model.cssClasses.itemIcon,iconName:this.item.iconName,size:this.item.iconSize,"aria-label":this.item.title});r.push(c),r.push(i.a.createElement("span",{key:2},a))}else r.push(a)}var p=i.a.createElement("div",{style:t,className:this.model.cssClasses.itemBody},r),d=this.item.needSeparator?i.a.createElement("div",{className:this.model.cssClasses.itemSeparator}):null,h={display:this.model.isItemVisible(this.item)?null:"none"};return Object(l.attachKey2click)(i.a.createElement("li",{className:n,role:"option",style:h,id:this.item.elementId,"aria-selected":this.model.isItemSelected(this.item),onClick:function(t){e.model.onItemClick(e.item),t.stopPropagation()},onPointerDown:function(t){return e.model.onPointerDown(t,e.item)}},d,p))},t.prototype.componentDidMount=function(){e.prototype.componentDidMount.call(this),this.model.onLastItemRended(this.item)},t}(a.SurveyElementBase);s.ReactElementFactory.Instance.registerElement("sv-list-item",(function(e){return i.a.createElement(p,e)}))},"./src/react/components/list/list.tsx":function(e,t,n){"use strict";n.r(t),n.d(t,"List",(function(){return d}));var r,o=n("react"),i=n.n(o),s=n("survey-core"),a=n("./src/react/element-factory.tsx"),l=n("./src/react/reactquestion_element.tsx"),u=n("./src/react/components/svg-icon/svg-icon.tsx"),c=n("./src/react/components/list/list-item.tsx"),p=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),d=function(e){function t(t){var n=e.call(this,t)||this;return n.handleKeydown=function(e){n.model.onKeyDown(e)},n.handleMouseMove=function(e){n.model.onMouseMove(e)},n.state={filterString:n.model.filterString||""},n.listContainerRef=i.a.createRef(),n}return p(t,e),Object.defineProperty(t.prototype,"model",{get:function(){return this.props.model},enumerable:!1,configurable:!0}),t.prototype.getStateElement=function(){return this.model},t.prototype.componentDidMount=function(){e.prototype.componentDidMount.call(this),this.listContainerRef&&this.listContainerRef.current&&this.model.initListContainerHtmlElement(this.listContainerRef.current)},t.prototype.renderElement=function(){return i.a.createElement("div",{className:this.model.cssClasses.root,ref:this.listContainerRef},this.searchElementContent(),this.emptyContent(),this.renderList())},t.prototype.renderList=function(){if(!this.model.renderElements)return null;var e=this.renderItems(),t={display:this.model.isEmpty?"none":null};return i.a.createElement("ul",{className:this.model.getListClass(),style:t,role:"listbox",id:this.model.elementId,onMouseDown:function(e){e.preventDefault()},onKeyDown:this.handleKeydown,onMouseMove:this.handleMouseMove},e)},t.prototype.renderItems=function(){var e=this;if(!this.model)return null;var t=this.model.renderedActions;return t?t.map((function(t,n){return i.a.createElement(c.ListItem,{model:e.model,item:t,key:"item"+n})})):null},t.prototype.searchElementContent=function(){var e=this;if(this.model.showFilter){var t=this.model.showSearchClearButton&&this.model.filterString?i.a.createElement("button",{className:this.model.cssClasses.searchClearButtonIcon,onClick:function(t){e.model.onClickSearchClearButton(t)}},i.a.createElement(u.SvgIcon,{iconName:"icon-searchclear",size:"auto"})):null;return i.a.createElement("div",{className:this.model.cssClasses.filter},i.a.createElement("div",{className:this.model.cssClasses.filterIcon},i.a.createElement(u.SvgIcon,{iconName:"icon-search",size:"auto"})),i.a.createElement("input",{type:"text",className:this.model.cssClasses.filterInput,"aria-label":this.model.filterStringPlaceholder,placeholder:this.model.filterStringPlaceholder,value:this.state.filterString,onKeyUp:function(t){e.model.goToItems(t)},onChange:function(t){var n=s.settings.environment.root;t.target===n.activeElement&&(e.model.filterString=t.target.value)}}),t)}return null},t.prototype.emptyContent=function(){var e={display:this.model.isEmpty?null:"none"};return i.a.createElement("div",{className:this.model.cssClasses.emptyContainer,style:e},i.a.createElement("div",{className:this.model.cssClasses.emptyText,"aria-label":this.model.emptyMessage},this.model.emptyMessage))},t}(l.SurveyElementBase);a.ReactElementFactory.Instance.registerElement("sv-list",(function(e){return i.a.createElement(d,e)}))},"./src/react/components/matrix-actions/detail-button/detail-button.tsx":function(e,t,n){"use strict";n.r(t),n.d(t,"SurveyQuestionMatrixDetailButton",(function(){return c}));var r,o=n("react"),i=n.n(o),s=n("./src/react/element-factory.tsx"),a=n("./src/react/reactquestion_element.tsx"),l=n("./src/react/components/svg-icon/svg-icon.tsx"),u=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),c=function(e){function t(t){var n=e.call(this,t)||this;return n.handleOnShowHideClick=n.handleOnShowHideClick.bind(n),n}return u(t,e),t.prototype.getStateElement=function(){return this.props.item},Object.defineProperty(t.prototype,"item",{get:function(){return this.props.item},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"question",{get:function(){return this.props.item.data.question},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"row",{get:function(){return this.props.item.data.row},enumerable:!1,configurable:!0}),t.prototype.handleOnShowHideClick=function(e){this.row.showHideDetailPanelClick()},t.prototype.renderElement=function(){var e=this.row.isDetailPanelShowing,t=e,n=e?this.row.detailPanelId:void 0;return i.a.createElement("button",{type:"button",onClick:this.handleOnShowHideClick,className:this.question.getDetailPanelButtonCss(this.row),"aria-expanded":t,"aria-controls":n},i.a.createElement(l.SvgIcon,{className:this.question.getDetailPanelIconCss(this.row),iconName:this.question.getDetailPanelIconId(this.row),size:"auto"}))},t}(a.ReactSurveyElement);s.ReactElementFactory.Instance.registerElement("sv-matrix-detail-button",(function(e){return i.a.createElement(c,e)}))},"./src/react/components/matrix-actions/drag-drop-icon/drag-drop-icon.tsx":function(e,t,n){"use strict";n.r(t),n.d(t,"SurveyQuestionMatrixDynamicDragDropIcon",(function(){return u}));var r,o=n("react"),i=n.n(o),s=n("./src/react/element-factory.tsx"),a=n("./src/react/reactquestion_element.tsx"),l=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),u=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return l(t,e),Object.defineProperty(t.prototype,"question",{get:function(){return this.props.item.data.question},enumerable:!1,configurable:!0}),t.prototype.renderElement=function(){return this.question.iconDragElement?i.a.createElement("svg",{className:this.question.cssClasses.dragElementDecorator},i.a.createElement("use",{xlinkHref:this.question.iconDragElement})):i.a.createElement("span",{className:this.question.cssClasses.iconDrag})},t}(a.ReactSurveyElement);s.ReactElementFactory.Instance.registerElement("sv-matrix-drag-drop-icon",(function(e){return i.a.createElement(u,e)}))},"./src/react/components/matrix-actions/remove-button/remove-button.tsx":function(e,t,n){"use strict";n.r(t),n.d(t,"SurveyQuestionMatrixDynamicRemoveButton",(function(){return u}));var r,o=n("react"),i=n.n(o),s=n("./src/react/element-factory.tsx"),a=n("./src/react/reactquestion_element.tsx"),l=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),u=function(e){function t(t){var n=e.call(this,t)||this;return n.handleOnRowRemoveClick=n.handleOnRowRemoveClick.bind(n),n}return l(t,e),Object.defineProperty(t.prototype,"question",{get:function(){return this.props.item.data.question},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"row",{get:function(){return this.props.item.data.row},enumerable:!1,configurable:!0}),t.prototype.handleOnRowRemoveClick=function(e){this.question.removeRowUI(this.row)},t.prototype.renderElement=function(){var e=this.renderLocString(this.question.locRemoveRowText);return i.a.createElement("button",{className:this.question.getRemoveRowButtonCss(),type:"button",onClick:this.handleOnRowRemoveClick,disabled:this.question.isInputReadOnly},e,i.a.createElement("span",{className:this.question.cssClasses.iconRemove}))},t}(a.ReactSurveyElement);s.ReactElementFactory.Instance.registerElement("sv-matrix-remove-button",(function(e){return i.a.createElement(u,e)}))},"./src/react/components/matrix/row.tsx":function(e,t,n){"use strict";n.r(t),n.d(t,"MatrixRow",(function(){return u}));var r,o=n("react"),i=n.n(o),s=n("./src/react/element-factory.tsx"),a=n("./src/react/reactquestion_element.tsx"),l=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),u=function(e){function t(t){var n=e.call(this,t)||this;return n.onPointerDownHandler=function(e){n.parentMatrix.onPointerDown(e.nativeEvent,n.model.row)},n}return l(t,e),Object.defineProperty(t.prototype,"model",{get:function(){return this.props.model},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"parentMatrix",{get:function(){return this.props.parentMatrix},enumerable:!1,configurable:!0}),t.prototype.getStateElement=function(){return this.model},t.prototype.render=function(){var e=this,t=this.model;return t.visible?i.a.createElement("tr",{className:t.className,"data-sv-drop-target-matrix-row":t.row&&t.row.id,onPointerDown:function(t){return e.onPointerDownHandler(t)}},this.props.children):null},t}(a.SurveyElementBase);s.ReactElementFactory.Instance.registerElement("sv-matrix-row",(function(e){return i.a.createElement(u,e)}))},"./src/react/components/notifier.tsx":function(e,t,n){"use strict";n.r(t),n.d(t,"NotifierComponent",(function(){return c}));var r,o=n("react"),i=n.n(o),s=n("./src/react/reactquestion_element.tsx"),a=n("./src/react/element-factory.tsx"),l=n("./src/react/components/action-bar/action-bar.tsx"),u=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),c=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return u(t,e),Object.defineProperty(t.prototype,"notifier",{get:function(){return this.props.notifier},enumerable:!1,configurable:!0}),t.prototype.getStateElement=function(){return this.notifier},t.prototype.renderElement=function(){if(!this.notifier.isDisplayed)return null;var e={visibility:this.notifier.active?"visible":"hidden"};return i.a.createElement("div",{className:this.notifier.css,style:e,role:"alert","aria-live":"polite"},i.a.createElement("span",null,this.notifier.message),i.a.createElement(l.SurveyActionBar,{model:this.notifier.actionBar}))},t}(s.SurveyElementBase);a.ReactElementFactory.Instance.registerElement("sv-notifier",(function(e){return i.a.createElement(c,e)}))},"./src/react/components/paneldynamic-actions/paneldynamic-add-btn.tsx":function(e,t,n){"use strict";n.r(t),n.d(t,"SurveyQuestionPanelDynamicAction",(function(){return u})),n.d(t,"SurveyQuestionPanelDynamicAddButton",(function(){return c}));var r,o=n("react"),i=n.n(o),s=n("./src/react/element-factory.tsx"),a=n("./src/react/reactquestion_element.tsx"),l=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),u=function(e){function t(t){return e.call(this,t)||this}return l(t,e),Object.defineProperty(t.prototype,"data",{get:function(){return this.props.item&&this.props.item.data||this.props.data},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"question",{get:function(){return this.props.item&&this.props.item.data.question||this.props.data.question},enumerable:!1,configurable:!0}),t}(a.ReactSurveyElement),c=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.handleClick=function(e){t.question.addPanelUI()},t}return l(t,e),t.prototype.renderElement=function(){return this.question.canAddPanel?i.a.createElement("button",{type:"button",className:this.question.getAddButtonCss(),onClick:this.handleClick},i.a.createElement("span",{className:this.question.cssClasses.buttonAddText},this.question.panelAddText)):null},t}(u);s.ReactElementFactory.Instance.registerElement("sv-paneldynamic-add-btn",(function(e){return i.a.createElement(c,e)}))},"./src/react/components/paneldynamic-actions/paneldynamic-next-btn.tsx":function(e,t,n){"use strict";n.r(t),n.d(t,"SurveyQuestionPanelDynamicNextButton",(function(){return c}));var r,o=n("react"),i=n.n(o),s=n("./src/react/element-factory.tsx"),a=n("./src/react/components/svg-icon/svg-icon.tsx"),l=n("./src/react/components/paneldynamic-actions/paneldynamic-add-btn.tsx"),u=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),c=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.handleClick=function(e){t.question.goToNextPanel()},t}return u(t,e),t.prototype.renderElement=function(){return i.a.createElement("div",{title:this.question.panelNextText,onClick:this.handleClick,className:this.question.getNextButtonCss()},i.a.createElement(a.SvgIcon,{iconName:this.question.cssClasses.progressBtnIcon,size:"auto"}))},t}(l.SurveyQuestionPanelDynamicAction);s.ReactElementFactory.Instance.registerElement("sv-paneldynamic-next-btn",(function(e){return i.a.createElement(c,e)}))},"./src/react/components/paneldynamic-actions/paneldynamic-prev-btn.tsx":function(e,t,n){"use strict";n.r(t),n.d(t,"SurveyQuestionPanelDynamicPrevButton",(function(){return c}));var r,o=n("react"),i=n.n(o),s=n("./src/react/element-factory.tsx"),a=n("./src/react/components/svg-icon/svg-icon.tsx"),l=n("./src/react/components/paneldynamic-actions/paneldynamic-add-btn.tsx"),u=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),c=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.handleClick=function(e){t.question.goToPrevPanel()},t}return u(t,e),t.prototype.renderElement=function(){return i.a.createElement("div",{title:this.question.panelPrevText,onClick:this.handleClick,className:this.question.getPrevButtonCss()},i.a.createElement(a.SvgIcon,{iconName:this.question.cssClasses.progressBtnIcon,size:"auto"}))},t}(l.SurveyQuestionPanelDynamicAction);s.ReactElementFactory.Instance.registerElement("sv-paneldynamic-prev-btn",(function(e){return i.a.createElement(c,e)}))},"./src/react/components/paneldynamic-actions/paneldynamic-progress-text.tsx":function(e,t,n){"use strict";n.r(t),n.d(t,"SurveyQuestionPanelDynamicProgressText",(function(){return u}));var r,o=n("react"),i=n.n(o),s=n("./src/react/element-factory.tsx"),a=n("./src/react/components/paneldynamic-actions/paneldynamic-add-btn.tsx"),l=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),u=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return l(t,e),t.prototype.renderElement=function(){return i.a.createElement("div",{className:this.question.cssClasses.progressText},this.question.progressText)},t}(a.SurveyQuestionPanelDynamicAction);s.ReactElementFactory.Instance.registerElement("sv-paneldynamic-progress-text",(function(e){return i.a.createElement(u,e)}))},"./src/react/components/paneldynamic-actions/paneldynamic-remove-btn.tsx":function(e,t,n){"use strict";n.r(t),n.d(t,"SurveyQuestionPanelDynamicRemoveButton",(function(){return u}));var r,o=n("react"),i=n.n(o),s=n("./src/react/element-factory.tsx"),a=n("./src/react/components/paneldynamic-actions/paneldynamic-add-btn.tsx"),l=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),u=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.handleClick=function(e){t.question.removePanelUI(t.data.panel)},t}return l(t,e),t.prototype.renderElement=function(){return i.a.createElement("button",{className:this.question.getPanelRemoveButtonCss(),onClick:this.handleClick,type:"button"},i.a.createElement("span",{className:this.question.cssClasses.buttonRemoveText},this.question.panelRemoveText),i.a.createElement("span",{className:this.question.cssClasses.iconRemove}))},t}(a.SurveyQuestionPanelDynamicAction);s.ReactElementFactory.Instance.registerElement("sv-paneldynamic-remove-btn",(function(e){return i.a.createElement(u,e)}))},"./src/react/components/popup/popup.tsx":function(e,t,n){"use strict";n.r(t),n.d(t,"Popup",(function(){return h})),n.d(t,"PopupContainer",(function(){return f})),n.d(t,"PopupDropdownContainer",(function(){return g})),n.d(t,"showModal",(function(){return m})),n.d(t,"showDialog",(function(){return y}));var r,o=n("react-dom"),i=n.n(o),s=n("react"),a=n.n(s),l=n("survey-core"),u=n("./src/react/element-factory.tsx"),c=n("./src/react/reactquestion_element.tsx"),p=n("./src/react/components/action-bar/action-bar.tsx"),d=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),h=function(e){function t(t){var n=e.call(this,t)||this;return n.containerRef=a.a.createRef(),n.createModel(),n}return d(t,e),Object.defineProperty(t.prototype,"model",{get:function(){return this.props.model},enumerable:!1,configurable:!0}),t.prototype.getStateElement=function(){return this.model},t.prototype.createModel=function(){this.popup=Object(l.createPopupViewModel)(this.props.model,void 0)},t.prototype.setTargetElement=function(){var e=this.containerRef.current;this.popup.setComponentElement(e,this.props.getTarget?this.props.getTarget(e):void 0)},t.prototype.componentDidMount=function(){e.prototype.componentDidMount.call(this),this.setTargetElement()},t.prototype.componentDidUpdate=function(t,n){e.prototype.componentDidUpdate.call(this,t,n),this.setTargetElement()},t.prototype.shouldComponentUpdate=function(t,n){var r;if(!e.prototype.shouldComponentUpdate.call(this,t,n))return!1;var o=t.model!==this.popup.model;return o&&(null===(r=this.popup)||void 0===r||r.dispose(),this.createModel()),o},t.prototype.render=function(){var e;return this.popup.model=this.model,e=this.model.isModal?a.a.createElement(f,{model:this.popup}):a.a.createElement(g,{model:this.popup}),a.a.createElement("div",{ref:this.containerRef},e)},t}(c.SurveyElementBase);u.ReactElementFactory.Instance.registerElement("sv-popup",(function(e){return a.a.createElement(h,e)}));var f=function(e){function t(t){var n=e.call(this,t)||this;return n.prevIsVisible=!1,n.handleKeydown=function(e){n.model.onKeyDown(e)},n.clickInside=function(e){e.stopPropagation()},n}return d(t,e),Object.defineProperty(t.prototype,"model",{get:function(){return this.props.model},enumerable:!1,configurable:!0}),t.prototype.getStateElement=function(){return this.model},t.prototype.componentDidUpdate=function(t,n){e.prototype.componentDidUpdate.call(this,t,n),!this.prevIsVisible&&this.model.isVisible&&this.model.updateOnShowing(),this.prevIsVisible=this.model.isVisible},t.prototype.renderContainer=function(e){var t=this,n=e.showHeader?this.renderHeaderPopup(e):null,r=e.title?this.renderHeaderContent():null,o=this.renderContent(),i=e.showFooter?this.renderFooter(this.model):null;return a.a.createElement("div",{className:"sv-popup__container",style:{left:e.left,top:e.top,height:e.height,width:e.width,minWidth:e.minWidth},onClick:function(e){t.clickInside(e)}},a.a.createElement("div",{className:"sv-popup__shadow"},n,a.a.createElement("div",{className:"sv-popup__body-content"},r,a.a.createElement("div",{className:"sv-popup__scrolling-content"},o),i)))},t.prototype.renderHeaderContent=function(){return a.a.createElement("div",{className:"sv-popup__body-header"},this.model.title)},t.prototype.renderContent=function(){var e=u.ReactElementFactory.Instance.createElement(this.model.contentComponentName,this.model.contentComponentData);return a.a.createElement("div",{className:"sv-popup__content"},e)},t.prototype.renderHeaderPopup=function(e){return null},t.prototype.renderFooter=function(e){return a.a.createElement("div",{className:"sv-popup__body-footer"},a.a.createElement(p.SurveyActionBar,{model:e.footerToolbar}))},t.prototype.render=function(){var e=this,t=this.renderContainer(this.model),n=(new l.CssClassBuilder).append("sv-popup").append(this.model.styleClass).toString(),r={display:this.model.isVisible?"":"none"};return a.a.createElement("div",{tabIndex:-1,className:n,style:r,onClick:function(t){e.model.clickOutside(t)},onKeyDown:this.handleKeydown},t)},t}(c.SurveyElementBase),g=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return d(t,e),t.prototype.renderHeaderPopup=function(e){var t=e;return t?a.a.createElement("span",{style:{left:t.pointerTarget.left,top:t.pointerTarget.top},className:"sv-popup__pointer"}):null},t}(f);function m(e,t,n,r,o,i,s){return void 0===s&&(s="popup"),y(Object(l.createDialogOptions)(e,t,n,r,void 0,void 0,o,i,s))}function y(e,t){e.onHide=function(){i.a.unmountComponentAtNode(n.container),n.dispose()};var n=Object(l.createPopupModalViewModel)(e,t);return i.a.render(a.a.createElement(f,{model:n}),n.container),n.model.isVisible=!0,n}l.settings.showModal=m,l.settings.showDialog=y},"./src/react/components/rating/rating-item-smiley.tsx":function(e,t,n){"use strict";n.r(t),n.d(t,"RatingItemSmiley",(function(){return c}));var r,o=n("react"),i=n.n(o),s=n("./src/react/element-factory.tsx"),a=n("./src/react/components/svg-icon/svg-icon.tsx"),l=n("./src/react/components/rating/rating-item.tsx"),u=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),c=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return u(t,e),t.prototype.render=function(){var e=this;return i.a.createElement("label",{onMouseDown:this.handleOnMouseDown,style:this.question.getItemStyle(this.item.itemValue,this.item.highlight),className:this.question.getItemClass(this.item.itemValue),onMouseOver:function(t){return e.question.onItemMouseIn(e.item)},onMouseOut:function(t){return e.question.onItemMouseOut(e.item)}},i.a.createElement("input",{type:"radio",className:"sv-visuallyhidden",name:this.question.name,id:this.question.getInputId(this.index),value:this.item.value,disabled:this.isDisplayMode,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-describedby":this.question.ariaDescribedBy}),i.a.createElement(a.SvgIcon,{size:"auto",iconName:this.question.getItemSmileyIconName(this.item.itemValue),title:this.item.text}))},t}(l.RatingItemBase);s.ReactElementFactory.Instance.registerElement("sv-rating-item-smiley",(function(e){return i.a.createElement(c,e)}))},"./src/react/components/rating/rating-item-star.tsx":function(e,t,n){"use strict";n.r(t),n.d(t,"RatingItemStar",(function(){return c}));var r,o=n("react"),i=n.n(o),s=n("./src/react/element-factory.tsx"),a=n("./src/react/components/svg-icon/svg-icon.tsx"),l=n("./src/react/components/rating/rating-item.tsx"),u=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),c=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return u(t,e),t.prototype.render=function(){var e=this;return i.a.createElement("label",{onMouseDown:this.handleOnMouseDown,className:this.question.getItemClass(this.item.itemValue),onMouseOver:function(t){return e.question.onItemMouseIn(e.item)},onMouseOut:function(t){return e.question.onItemMouseOut(e.item)}},i.a.createElement("input",{type:"radio",className:"sv-visuallyhidden",name:this.question.name,id:this.question.getInputId(this.index),value:this.item.value,disabled:this.isDisplayMode,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-describedby":this.question.ariaDescribedBy}),i.a.createElement(a.SvgIcon,{className:"sv-star",size:"auto",iconName:this.question.itemStarIcon,title:this.item.text}),i.a.createElement(a.SvgIcon,{className:"sv-star-2",size:"auto",iconName:this.question.itemStarIconAlt,title:this.item.text}))},t}(l.RatingItemBase);s.ReactElementFactory.Instance.registerElement("sv-rating-item-star",(function(e){return i.a.createElement(c,e)}))},"./src/react/components/rating/rating-item.tsx":function(e,t,n){"use strict";n.r(t),n.d(t,"RatingItemBase",(function(){return u})),n.d(t,"RatingItem",(function(){return c}));var r,o=n("react"),i=n.n(o),s=n("./src/react/element-factory.tsx"),a=n("./src/react/reactquestion_element.tsx"),l=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),u=function(e){function t(t){var n=e.call(this,t)||this;return n.handleOnMouseDown=n.handleOnMouseDown.bind(n),n}return l(t,e),Object.defineProperty(t.prototype,"question",{get:function(){return this.props.question},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"item",{get:function(){return this.props.item},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"index",{get:function(){return this.props.index},enumerable:!1,configurable:!0}),t.prototype.getStateElement=function(){return this.item},t.prototype.handleOnMouseDown=function(e){this.question.onMouseDown()},t}(a.SurveyElementBase),c=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return l(t,e),t.prototype.render=function(){var e=this.renderLocString(this.item.locText);return i.a.createElement("label",{onMouseDown:this.handleOnMouseDown,className:this.question.getItemClassByText(this.item.itemValue,this.item.text)},i.a.createElement("input",{type:"radio",className:"sv-visuallyhidden",name:this.question.name,id:this.question.getInputId(this.index),value:this.item.value,disabled:this.isDisplayMode,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-describedby":this.question.ariaDescribedBy}),i.a.createElement("span",{className:this.question.cssClasses.itemText},e))},t.prototype.componentDidMount=function(){e.prototype.componentDidMount.call(this)},t}(u);s.ReactElementFactory.Instance.registerElement("sv-rating-item",(function(e){return i.a.createElement(c,e)}))},"./src/react/components/skeleton.tsx":function(e,t,n){"use strict";n.r(t),n.d(t,"Skeleton",(function(){return l}));var r,o=n("react"),i=n.n(o),s=n("./src/react/element-factory.tsx"),a=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),l=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return a(t,e),t.prototype.render=function(){var e;return i.a.createElement("div",{className:"sv-skeleton-element",id:null===(e=this.props.element)||void 0===e?void 0:e.id})},t}(i.a.Component);s.ReactElementFactory.Instance.registerElement("sv-skeleton",(function(e){return i.a.createElement(l,e)}))},"./src/react/components/survey-actions/survey-nav-button.tsx":function(e,t,n){"use strict";n.r(t),n.d(t,"SurveyNavigationButton",(function(){return u}));var r,o=n("react"),i=n.n(o),s=n("./src/react/element-factory.tsx"),a=n("./src/react/reactquestion_element.tsx"),l=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),u=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return l(t,e),Object.defineProperty(t.prototype,"item",{get:function(){return this.props.item},enumerable:!1,configurable:!0}),t.prototype.canRender=function(){return this.item.isVisible},t.prototype.renderElement=function(){return i.a.createElement("input",{className:this.item.innerCss,type:"button",disabled:this.item.disabled,onMouseDown:this.item.data&&this.item.data.mouseDown,onClick:this.item.action,title:this.item.getTooltip(),value:this.item.title})},t}(a.ReactSurveyElement);s.ReactElementFactory.Instance.registerElement("sv-nav-btn",(function(e){return i.a.createElement(u,e)}))},"./src/react/components/survey-header/logo-image.tsx":function(e,t,n){"use strict";n.r(t),n.d(t,"LogoImage",(function(){return l}));var r,o=n("react"),i=n.n(o),s=n("./src/react/element-factory.tsx"),a=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),l=function(e){function t(t){return e.call(this,t)||this}return a(t,e),Object.defineProperty(t.prototype,"survey",{get:function(){return this.props.data},enumerable:!1,configurable:!0}),t.prototype.render=function(){var e=[];return e.push(i.a.createElement("div",{key:"logo-image",className:this.survey.logoClassNames},i.a.createElement("img",{className:this.survey.css.logoImage,src:this.survey.locLogo.renderedHtml,alt:this.survey.locTitle.renderedHtml,width:this.survey.renderedLogoWidth,height:this.survey.renderedLogoHeight,style:{objectFit:this.survey.logoFit,width:this.survey.renderedStyleLogoWidth,height:this.survey.renderedStyleLogoHeight}}))),i.a.createElement(i.a.Fragment,null,e)},t}(i.a.Component);s.ReactElementFactory.Instance.registerElement("sv-logo-image",(function(e){return i.a.createElement(l,e)}))},"./src/react/components/survey-header/survey-header.tsx":function(e,t,n){"use strict";n.r(t),n.d(t,"SurveyHeader",(function(){return c}));var r,o=n("react"),i=n.n(o),s=n("./src/react/reactquestion_element.tsx"),a=n("./src/react/element-factory.tsx"),l=n("./src/react/components/title/title-element.tsx"),u=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),c=function(e){function t(t){var n=e.call(this,t)||this;return n.state={changed:0},n.rootRef=i.a.createRef(),n}return u(t,e),Object.defineProperty(t.prototype,"survey",{get:function(){return this.props.survey},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"css",{get:function(){return this.survey.css},enumerable:!1,configurable:!0}),t.prototype.componentDidMount=function(){var e=this;this.survey.afterRenderHeader(this.rootRef.current),this.survey.locLogo.onChanged=function(){e.setState({changed:e.state.changed+1})}},t.prototype.componentWillUnmount=function(){this.survey.locLogo.onChanged=function(){}},t.prototype.renderTitle=function(){if(!this.survey.renderedHasTitle)return null;var e=s.SurveyElementBase.renderLocString(this.survey.locDescription);return i.a.createElement("div",{className:this.css.headerText,style:{maxWidth:this.survey.titleMaxWidth}},i.a.createElement(l.TitleElement,{element:this.survey}),this.survey.renderedHasDescription?i.a.createElement("h5",{className:this.css.description},e):null)},t.prototype.renderLogoImage=function(e){if(!e)return null;var t=this.survey.getElementWrapperComponentName(this.survey,"logo-image"),n=this.survey.getElementWrapperComponentData(this.survey,"logo-image");return a.ReactElementFactory.Instance.createElement(t,{data:n})},t.prototype.render=function(){return this.survey.renderedHasHeader?i.a.createElement("div",{className:this.css.header,ref:this.rootRef},this.renderLogoImage(this.survey.isLogoBefore),this.renderTitle(),this.renderLogoImage(this.survey.isLogoAfter),i.a.createElement("div",{className:this.css.headerClose})):null},t}(i.a.Component);a.ReactElementFactory.Instance.registerElement("survey-header",(function(e){return i.a.createElement(c,e)}))},"./src/react/components/svg-icon/svg-icon.tsx":function(e,t,n){"use strict";n.r(t),n.d(t,"SvgIcon",(function(){return u}));var r,o=n("react"),i=n.n(o),s=n("./src/react/element-factory.tsx"),a=n("survey-core"),l=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),u=function(e){function t(t){var n=e.call(this,t)||this;return n.svgIconRef=i.a.createRef(),n}return l(t,e),t.prototype.updateSvg=function(){this.props.iconName&&Object(a.createSvg)(this.props.size,this.props.width,this.props.height,this.props.iconName,this.svgIconRef.current,this.props.title)},t.prototype.componentDidUpdate=function(){this.updateSvg()},t.prototype.render=function(){var e="sv-svg-icon";return this.props.className&&(e+=" "+this.props.className),this.props.iconName?i.a.createElement("svg",{className:e,style:this.props.style,onClick:this.props.onClick,ref:this.svgIconRef,role:"img","aria-label":this.props.title},i.a.createElement("use",null)):null},t.prototype.componentDidMount=function(){this.updateSvg()},t}(i.a.Component);s.ReactElementFactory.Instance.registerElement("sv-svg-icon",(function(e){return i.a.createElement(u,e)}))},"./src/react/components/title/title-actions.tsx":function(e,t,n){"use strict";n.r(t),n.d(t,"TitleActions",(function(){return p}));var r,o=n("react"),i=n.n(o),s=n("survey-core"),a=n("./src/react/element-factory.tsx"),l=n("./src/react/components/action-bar/action-bar.tsx"),u=n("./src/react/components/title/title-content.tsx"),c=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),p=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return c(t,e),Object.defineProperty(t.prototype,"cssClasses",{get:function(){return this.props.cssClasses},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"element",{get:function(){return this.props.element},enumerable:!1,configurable:!0}),t.prototype.render=function(){var e=i.a.createElement(u.TitleContent,{element:this.element,cssClasses:this.cssClasses});return this.element.hasTitleActions?i.a.createElement("div",{className:"sv-title-actions"},i.a.createElement("span",{className:"sv-title-actions__title"},e),i.a.createElement(l.SurveyActionBar,{model:this.element.getTitleToolbar()})):e},t}(i.a.Component);s.RendererFactory.Instance.registerRenderer("element","title-actions","sv-title-actions"),a.ReactElementFactory.Instance.registerElement("sv-title-actions",(function(e){return i.a.createElement(p,e)}))},"./src/react/components/title/title-content.tsx":function(e,t,n){"use strict";n.r(t),n.d(t,"TitleContent",(function(){return l}));var r,o=n("react"),i=n.n(o),s=n("./src/react/reactquestion_element.tsx"),a=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),l=function(e){function t(t){return e.call(this,t)||this}return a(t,e),Object.defineProperty(t.prototype,"cssClasses",{get:function(){return this.props.cssClasses},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"element",{get:function(){return this.props.element},enumerable:!1,configurable:!0}),t.prototype.render=function(){if(this.element.isTitleRenderedAsString)return s.SurveyElementBase.renderLocString(this.element.locTitle);var e=this.renderTitleSpans(this.element.getTitleOwner(),this.cssClasses);return i.a.createElement(i.a.Fragment,null,e)},t.prototype.renderTitleSpans=function(e,t){var n=function(e){return i.a.createElement("span",{"data-key":e,key:e}," ")},r=[];e.isRequireTextOnStart&&(r.push(this.renderRequireText(e,t)),r.push(n("req-sp")));var o=e.no;if(o){var a=t.panel?t.panel.number:void 0;r.push(i.a.createElement("span",{"data-key":"q_num",key:"q_num",className:t.number||a,style:{position:"static"},"aria-hidden":!0},o)),r.push(n("num-sp"))}return e.isRequireTextBeforeTitle&&(r.push(this.renderRequireText(e,t)),r.push(n("req-sp"))),r.push(s.SurveyElementBase.renderLocString(e.locTitle,null,"q_title")),e.isRequireTextAfterTitle&&(r.push(n("req-sp")),r.push(this.renderRequireText(e,t))),r},t.prototype.renderRequireText=function(e,t){return i.a.createElement("span",{"data-key":"req-text",key:"req-text",className:t.requiredText||t.panel.requiredText,"aria-hidden":!0},e.requiredText)},t}(i.a.Component)},"./src/react/components/title/title-element.tsx":function(e,t,n){"use strict";n.r(t),n.d(t,"TitleElement",(function(){return u}));var r,o=n("react"),i=n.n(o),s=n("survey-core"),a=n("./src/react/components/title/title-actions.tsx"),l=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),u=function(e){function t(t){return e.call(this,t)||this}return l(t,e),Object.defineProperty(t.prototype,"element",{get:function(){return this.props.element},enumerable:!1,configurable:!0}),t.prototype.render=function(){var e=this.element;if(!e||!e.hasTitle)return null;var t=e.titleAriaLabel||void 0,n=i.a.createElement(a.TitleActions,{element:e,cssClasses:e.cssClasses}),r=void 0;e.hasTitleEvents&&(r=function(e){Object(s.doKey2ClickUp)(e.nativeEvent)});var o=e.titleTagName;return i.a.createElement(o,{className:e.cssTitle,id:e.ariaTitleId,"aria-label":t,tabIndex:e.titleTabIndex,"aria-expanded":e.titleAriaExpanded,role:e.titleAriaRole,onClick:void 0,onKeyUp:r},n)},t}(i.a.Component)},"./src/react/custom-widget.tsx":function(e,t,n){"use strict";n.r(t),n.d(t,"SurveyCustomWidget",(function(){return a}));var r,o=n("react"),i=n("./src/react/reactquestion_element.tsx"),s=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),a=function(e){function t(t){var n=e.call(this,t)||this;return n.widgetRef=o.createRef(),n}return s(t,e),t.prototype._afterRender=function(){if(this.questionBase.customWidget){var e=this.widgetRef.current;e&&(this.questionBase.customWidget.afterRender(this.questionBase,e),this.questionBase.customWidgetData.isNeedRender=!1)}},t.prototype.componentDidMount=function(){e.prototype.componentDidMount.call(this),this.questionBase&&this._afterRender()},t.prototype.componentDidUpdate=function(t,n){e.prototype.componentDidUpdate.call(this,t,n);var r=!!this.questionBase.customWidget&&this.questionBase.customWidget.isDefaultRender;this.questionBase&&!r&&this._afterRender()},t.prototype.componentWillUnmount=function(){if(e.prototype.componentWillUnmount.call(this),this.questionBase.customWidget){var t=this.widgetRef.current;t&&this.questionBase.customWidget.willUnmount(this.questionBase,t)}},t.prototype.canRender=function(){return e.prototype.canRender.call(this)&&this.questionBase.visible},t.prototype.renderElement=function(){var e=this.questionBase.customWidget;if(e.isDefaultRender)return o.createElement("div",{ref:this.widgetRef},this.creator.createQuestionElement(this.questionBase));var t=null;if(e.widgetJson.render)t=e.widgetJson.render(this.questionBase);else if(e.htmlTemplate){var n={__html:e.htmlTemplate};return o.createElement("div",{ref:this.widgetRef,dangerouslySetInnerHTML:n})}return o.createElement("div",{ref:this.widgetRef},t)},t}(i.SurveyQuestionElementBase)},"./src/react/dropdown-base.tsx":function(e,t,n){"use strict";n.r(t),n.d(t,"SurveyQuestionDropdownBase",(function(){return d}));var r,o=n("react"),i=n("survey-core"),s=n("./src/react/components/popup/popup.tsx"),a=n("./src/react/components/svg-icon/svg-icon.tsx"),l=n("./src/react/element-factory.tsx"),u=n("./src/react/reactquestion_comment.tsx"),c=n("./src/react/reactquestion_element.tsx"),p=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),d=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.click=function(e){var n;null===(n=t.question.dropdownListModel)||void 0===n||n.onClick(e)},t.clear=function(e){var n;null===(n=t.question.dropdownListModel)||void 0===n||n.onClear(e)},t.keyhandler=function(e){var n;null===(n=t.question.dropdownListModel)||void 0===n||n.keyHandler(e)},t.blur=function(e){var n;null===(n=t.question.dropdownListModel)||void 0===n||n.onBlur(e),t.updateInputDomElement()},t.focus=function(e){var n;null===(n=t.question.dropdownListModel)||void 0===n||n.onFocus(e)},t}return p(t,e),t.prototype.getStateElement=function(){return this.question.dropdownListModel},t.prototype.setValueCore=function(e){this.questionBase.renderedValue=e},t.prototype.getValueCore=function(){return this.questionBase.renderedValue},t.prototype.renderSelect=function(e){var t,n,r=null;if(this.question.isReadOnly){var a=this.question.selectedItemLocText?this.renderLocString(this.question.selectedItemLocText):"";r=o.createElement("div",{id:this.question.inputId,className:this.question.getControlClass(),disabled:!0},a,o.createElement("div",null,this.question.readOnlyText))}else this.question.dropdownListModel||(this.question.dropdownListModel=new i.DropdownListModel(this.question)),r=o.createElement(o.Fragment,null,this.renderInput(this.question.dropdownListModel),o.createElement(s.Popup,{model:null===(n=null===(t=this.question)||void 0===t?void 0:t.dropdownListModel)||void 0===n?void 0:n.popupModel}));return o.createElement("div",{className:e.selectWrapper,onClick:this.click},r,this.createChevronButton())},t.prototype.renderValueElement=function(e){return this.question.showInputFieldComponent?l.ReactElementFactory.Instance.createElement(this.question.inputFieldComponentName,{item:e.getSelectedAction(),question:this.question}):this.question.showSelectedItemLocText?this.renderLocString(this.question.selectedItemLocText):null},t.prototype.renderInput=function(e){var t=this,n=this.renderValueElement(e),r=i.settings.environment.root;return o.createElement("div",{id:this.question.inputId,className:this.question.getControlClass(),tabIndex:e.inputReadOnly?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-describedby":this.question.ariaDescribedBy,"aria-expanded":null===this.question.ariaExpanded?void 0:"true"===this.question.ariaExpanded,"aria-controls":e.listElementId,"aria-activedescendant":e.ariaActivedescendant},e.showHintPrefix?o.createElement("div",{className:this.question.cssClasses.hintPrefix},o.createElement("span",null,e.hintStringPrefix)):null,o.createElement("div",{className:this.question.cssClasses.controlValue},e.showHintString?o.createElement("div",{className:this.question.cssClasses.hintSuffix},o.createElement("span",{style:{visibility:"hidden"},"data-bind":"text: model.filterString"},e.inputStringRendered),o.createElement("span",null,e.hintStringSuffix)):null,n,o.createElement("input",{type:"text",autoComplete:"off",id:this.question.getInputId(),ref:function(e){return t.inputElement=e},className:this.question.cssClasses.filterStringInput,role:e.filterStringEnabled?this.question.ariaRole:void 0,"aria-label":this.question.placeholder,"aria-expanded":null===this.question.ariaExpanded?void 0:"true"===this.question.ariaExpanded,"aria-controls":e.listElementId,"aria-activedescendant":e.ariaActivedescendant,placeholder:e.placeholderRendered,readOnly:!e.searchEnabled||void 0,tabIndex:e.inputReadOnly?void 0:-1,disabled:this.question.isInputReadOnly,inputMode:e.inputMode,onChange:function(t){!function(t){t.target===r.activeElement&&(e.inputStringRendered=t.target.value)}(t)},onBlur:this.blur,onFocus:this.focus})),this.createClearButton())},t.prototype.createClearButton=function(){if(!this.question.allowClear||!this.question.cssClasses.cleanButtonIconId)return null;var e={display:this.question.isEmpty()?"none":""};return o.createElement("div",{className:this.question.cssClasses.cleanButton,style:e,onClick:this.clear},o.createElement(a.SvgIcon,{className:this.question.cssClasses.cleanButtonSvg,iconName:this.question.cssClasses.cleanButtonIconId,title:this.question.clearCaption,size:"auto"}))},t.prototype.createChevronButton=function(){return this.question.cssClasses.chevronButtonIconId?o.createElement("div",{className:this.question.cssClasses.chevronButton},o.createElement(a.SvgIcon,{className:this.question.cssClasses.chevronButtonSvg,iconName:this.question.cssClasses.chevronButtonIconId,size:24})):null},t.prototype.renderOther=function(e){return o.createElement("div",{className:this.question.getCommentAreaCss(!0)},o.createElement(u.SurveyQuestionOtherValueItem,{question:this.question,otherCss:e.other,cssClasses:e,isDisplayMode:this.isDisplayMode,isOther:!0}))},t.prototype.componentDidUpdate=function(t,n){e.prototype.componentDidUpdate.call(this,t,n),this.updateInputDomElement()},t.prototype.componentDidMount=function(){e.prototype.componentDidMount.call(this),this.updateInputDomElement()},t.prototype.updateInputDomElement=function(){if(this.inputElement){var e=this.inputElement,t=this.question.dropdownListModel.inputStringRendered;i.Helpers.isTwoValueEquals(t,e.value,!1,!0,!1)||(e.value=this.question.dropdownListModel.inputStringRendered)}},t}(c.SurveyQuestionUncontrolledElement)},"./src/react/dropdown-item.tsx":function(e,t,n){"use strict";n.r(t),n.d(t,"SurveyQuestionOptionItem",(function(){return a}));var r,o=n("react"),i=n("./src/react/reactquestion_element.tsx"),s=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),a=function(e){function t(t){var n=e.call(this,t)||this;return n.state={changed:0},n.setupModel(),n}return s(t,e),t.prototype.componentDidUpdate=function(t,n){e.prototype.componentDidUpdate.call(this,t,n),this.setupModel()},t.prototype.componentWillUnmount=function(){e.prototype.componentWillUnmount.call(this),this.item&&(this.item.locText.onChanged=function(){})},t.prototype.setupModel=function(){if(this.item.locText){var e=this;this.item.locText.onChanged=function(){e.setState({changed:e.state.changed+1})}}},t.prototype.getStateElement=function(){return this.item},Object.defineProperty(t.prototype,"item",{get:function(){return this.props.item},enumerable:!1,configurable:!0}),t.prototype.canRender=function(){return!!this.item},t.prototype.renderElement=function(){return o.createElement("option",{value:this.item.value,disabled:!this.item.isEnabled},this.item.text)},t}(i.ReactSurveyElement)},"./src/react/dropdown-select.tsx":function(e,t,n){"use strict";n.r(t),n.d(t,"SurveyQuestionDropdownSelect",(function(){return c}));var r,o=n("react"),i=n("survey-core"),s=n("./src/react/reactquestion_factory.tsx"),a=n("./src/react/reactquestion_dropdown.tsx"),l=n("./src/react/dropdown-item.tsx"),u=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),c=function(e){function t(t){return e.call(this,t)||this}return u(t,e),t.prototype.renderSelect=function(e){var t=this,n=this.isDisplayMode?o.createElement("div",{id:this.question.inputId,className:this.question.getControlClass(),disabled:!0},this.question.readOnlyText):o.createElement("select",{id:this.question.inputId,className:this.question.getControlClass(),ref:function(e){return t.setControl(e)},autoComplete:this.question.autocomplete,onChange:this.updateValueOnEvent,onInput:this.updateValueOnEvent,onClick:function(e){t.question.onClick(e)},onKeyUp:function(e){t.question.onKeyUp(e)},"aria-required":this.question.ariaRequired,"aria-label":this.question.ariaLabel,"aria-invalid":this.question.ariaInvalid,"aria-describedby":this.question.ariaDescribedBy,required:this.question.isRequired},this.question.allowClear?o.createElement("option",{value:""},this.question.placeholder):null,this.question.visibleChoices.map((function(e,t){return o.createElement(l.SurveyQuestionOptionItem,{key:"item"+t,item:e})})));return o.createElement("div",{className:e.selectWrapper},n,this.createChevronButton())},t}(a.SurveyQuestionDropdown);s.ReactQuestionFactory.Instance.registerQuestion("sv-dropdown-select",(function(e){return o.createElement(c,e)})),i.RendererFactory.Instance.registerRenderer("dropdown","select","sv-dropdown-select")},"./src/react/element-factory.tsx":function(e,t,n){"use strict";n.r(t),n.d(t,"ReactElementFactory",(function(){return r}));var r=function(){function e(){this.creatorHash={}}return e.prototype.registerElement=function(e,t){this.creatorHash[e]=t},e.prototype.getAllTypes=function(){var e=new Array;for(var t in this.creatorHash)e.push(t);return e.sort()},e.prototype.isElementRegistered=function(e){return!!this.creatorHash[e]},e.prototype.createElement=function(e,t){var n=this.creatorHash[e];return null==n?null:n(t)},e.Instance=new e,e}()},"./src/react/element-header.tsx":function(e,t,n){"use strict";n.r(t),n.d(t,"SurveyElementHeader",(function(){return c}));var r,o=n("react"),i=n.n(o),s=n("./src/react/components/action-bar/action-bar.tsx"),a=n("./src/react/components/title/title-element.tsx"),l=n("./src/react/reactquestion_element.tsx"),u=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),c=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return u(t,e),Object.defineProperty(t.prototype,"element",{get:function(){return this.props.element},enumerable:!1,configurable:!0}),t.prototype.render=function(){var e=this.element,t=e.hasTitle?i.a.createElement(a.TitleElement,{element:e}):null,n=e.hasDescriptionUnderTitle?l.SurveyElementBase.renderQuestionDescription(this.element):null,r=e.additionalTitleToolbar?i.a.createElement(s.SurveyActionBar,{model:e.additionalTitleToolbar}):null;return i.a.createElement("div",{className:e.cssHeader,onClick:e.clickTitleFunction},t,n,r)},t}(i.a.Component)},"./src/react/flow-panel.tsx":function(e,t,n){"use strict";n.r(t),n.d(t,"SurveyFlowPanel",(function(){return u}));var r,o=n("react"),i=n("./src/react/element-factory.tsx"),s=n("./src/react/panel.tsx"),a=n("./src/react/reactquestion.tsx"),l=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),u=function(e){function t(t){return e.call(this,t)||this}return l(t,e),Object.defineProperty(t.prototype,"flowPanel",{get:function(){return this.panel},enumerable:!1,configurable:!0}),t.prototype.componentDidMount=function(){e.prototype.componentDidMount.call(this),this.flowPanel&&(this.flowPanel.onCustomHtmlProducing=function(){return""},this.flowPanel.onGetHtmlForQuestion=this.renderQuestion)},t.prototype.componentWillUnmount=function(){e.prototype.componentWillUnmount.call(this),this.flowPanel&&(this.flowPanel.onCustomHtmlProducing=null,this.flowPanel.onGetHtmlForQuestion=null)},t.prototype.getQuestion=function(e){return this.flowPanel.getQuestionByName(e)},t.prototype.renderQuestion=function(e){return"<question>"+e.name+"</question>"},t.prototype.renderRows=function(){var e=this.renderHtml();return e?[e]:[]},t.prototype.getNodeIndex=function(){return this.renderedIndex++},t.prototype.renderHtml=function(){if(!this.flowPanel)return null;var e="<span>"+this.flowPanel.produceHtml()+"</span>";if(!DOMParser){var t={__html:e};return o.createElement("div",{dangerouslySetInnerHTML:t})}var n=(new DOMParser).parseFromString(e,"text/xml");return this.renderedIndex=0,this.renderParentNode(n)},t.prototype.renderNodes=function(e){for(var t=[],n=0;n<e.length;n++){var r=this.renderNode(e[n]);r&&t.push(r)}return t},t.prototype.getStyle=function(e){var t={};return"b"===e.toLowerCase()&&(t.fontWeight="bold"),"i"===e.toLowerCase()&&(t.fontStyle="italic"),"u"===e.toLowerCase()&&(t.textDecoration="underline"),t},t.prototype.renderParentNode=function(e){var t=e.nodeName.toLowerCase(),n=this.renderNodes(this.getChildDomNodes(e));return"div"===t?o.createElement("div",{key:this.getNodeIndex()},n):o.createElement("span",{key:this.getNodeIndex(),style:this.getStyle(t)},n)},t.prototype.renderNode=function(e){if(!this.hasTextChildNodesOnly(e))return this.renderParentNode(e);var t=e.nodeName.toLowerCase();if("question"===t){var n=this.flowPanel.getQuestionByName(e.textContent);if(!n)return null;var r=o.createElement(a.SurveyQuestion,{key:n.name,element:n,creator:this.creator,css:this.css});return o.createElement("span",{key:this.getNodeIndex()},r)}return"div"===t?o.createElement("div",{key:this.getNodeIndex()},e.textContent):o.createElement("span",{key:this.getNodeIndex(),style:this.getStyle(t)},e.textContent)},t.prototype.getChildDomNodes=function(e){for(var t=[],n=0;n<e.childNodes.length;n++)t.push(e.childNodes[n]);return t},t.prototype.hasTextChildNodesOnly=function(e){for(var t=e.childNodes,n=0;n<t.length;n++)if("#text"!==t[n].nodeName.toLowerCase())return!1;return!0},t.prototype.renderContent=function(e,t){return o.createElement("f-panel",{style:e},t)},t}(s.SurveyPanel);i.ReactElementFactory.Instance.registerElement("flowpanel",(function(e){return o.createElement(u,e)}))},"./src/react/image.tsx":function(e,t,n){"use strict";n.r(t),n.d(t,"SurveyQuestionImage",(function(){return u}));var r,o=n("react"),i=n("./src/react/reactquestion_element.tsx"),s=n("./src/react/reactquestion_factory.tsx"),a=n("./src/react/components/svg-icon/svg-icon.tsx"),l=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),u=function(e){function t(t){return e.call(this,t)||this}return l(t,e),t.prototype.componentDidMount=function(){var t=this;e.prototype.componentDidMount.call(this),this.question.locImageLink.onChanged=function(){t.forceUpdate()}},t.prototype.componentWillUnmount=function(){e.prototype.componentWillUnmount.call(this),this.question.locImageLink.onChanged=function(){}},Object.defineProperty(t.prototype,"question",{get:function(){return this.questionBase},enumerable:!1,configurable:!0}),t.prototype.renderElement=function(){var e=this,t=this.question.getImageCss(),n={objectFit:this.question.imageFit,width:this.question.renderedStyleWidth,height:this.question.renderedStyleHeight};this.question.imageLink&&!this.question.contentNotLoaded||(n.display="none");var r=null;"image"===this.question.renderedMode&&(r=o.createElement("img",{className:t,src:this.question.locImageLink.renderedHtml,alt:this.question.altText||this.question.title,width:this.question.renderedWidth,height:this.question.renderedHeight,style:n,onLoad:function(t){e.question.onLoadHandler()},onError:function(t){e.question.onErrorHandler()}})),"video"===this.question.renderedMode&&(r=o.createElement("video",{controls:!0,className:t,src:this.question.locImageLink.renderedHtml,width:this.question.renderedWidth,height:this.question.renderedHeight,style:n,onLoadedMetadata:function(t){e.question.onLoadHandler()},onError:function(t){e.question.onErrorHandler()}})),"youtube"===this.question.renderedMode&&(r=o.createElement("iframe",{className:t,src:this.question.locImageLink.renderedHtml,width:this.question.renderedWidth,height:this.question.renderedHeight,style:n}));var i=null;return this.question.imageLink&&!this.question.contentNotLoaded||(i=o.createElement("div",{className:this.question.cssClasses.noImage},o.createElement(a.SvgIcon,{iconName:this.question.cssClasses.noImageSvgIconId,size:48}))),o.createElement("div",{className:this.question.cssClasses.root},r,i)},t}(i.SurveyQuestionElementBase);s.ReactQuestionFactory.Instance.registerQuestion("image",(function(e){return o.createElement(u,e)}))},"./src/react/imagepicker.tsx":function(e,t,n){"use strict";n.r(t),n.d(t,"SurveyQuestionImagePicker",(function(){return c})),n.d(t,"SurveyQuestionImagePickerItem",(function(){return p}));var r,o=n("react"),i=n("./src/react/reactquestion_element.tsx"),s=n("./src/react/reactquestion_factory.tsx"),a=n("./src/react/reactsurveymodel.tsx"),l=n("./src/react/components/svg-icon/svg-icon.tsx"),u=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),c=function(e){function t(t){return e.call(this,t)||this}return u(t,e),Object.defineProperty(t.prototype,"question",{get:function(){return this.questionBase},enumerable:!1,configurable:!0}),t.prototype.renderElement=function(){var e=this.question.cssClasses;return o.createElement("fieldset",{className:this.question.getSelectBaseRootCss()},o.createElement("legend",{role:"radio","aria-label":this.question.locTitle.renderedHtml}),this.question.hasColumns?this.getColumns(e):this.getItems(e))},t.prototype.getColumns=function(e){var t=this;return this.question.columns.map((function(n,r){var i=n.map((function(n,r){return t.renderItem("item"+r,n,e)}));return o.createElement("div",{key:"column"+r,className:t.question.getColumnClass(),role:"presentation"},i)}))},t.prototype.getItems=function(e){for(var t=[],n=0;n<this.question.visibleChoices.length;n++){var r=this.question.visibleChoices[n],o="item"+n;t.push(this.renderItem(o,r,e))}return t},Object.defineProperty(t.prototype,"textStyle",{get:function(){return{marginLeft:"3px",display:"inline",position:"static"}},enumerable:!1,configurable:!0}),t.prototype.renderItem=function(e,t,n){var r=o.createElement(p,{key:e,question:this.question,item:t,cssClasses:n}),i=this.question.survey,s=null;return i&&(s=a.ReactSurveyElementsWrapper.wrapItemValue(i,r,this.question,t)),null!=s?s:r},t}(i.SurveyQuestionElementBase),p=function(e){function t(t){var n=e.call(this,t)||this;return n.handleOnChange=n.handleOnChange.bind(n),n}return u(t,e),t.prototype.getStateElement=function(){return this.item},t.prototype.componentDidMount=function(){e.prototype.componentDidMount.call(this),this.reactOnStrChanged()},t.prototype.componentWillUnmount=function(){e.prototype.componentWillUnmount.call(this),this.item.locImageLink.onChanged=function(){}},t.prototype.componentDidUpdate=function(t,n){e.prototype.componentDidUpdate.call(this,t,n),this.reactOnStrChanged()},t.prototype.reactOnStrChanged=function(){var e=this;this.item.locImageLink.onChanged=function(){e.setState({locImageLinkchanged:e.state&&e.state.locImageLink?e.state.locImageLink+1:1})}},Object.defineProperty(t.prototype,"cssClasses",{get:function(){return this.props.cssClasses},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"item",{get:function(){return this.props.item},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"question",{get:function(){return this.props.question},enumerable:!1,configurable:!0}),t.prototype.handleOnChange=function(e){if(this.question.multiSelect)if(e.target.checked)this.question.value=this.question.value.concat(e.target.value);else{var t=this.question.value;t.splice(this.question.value.indexOf(e.target.value),1),this.question.value=t}else this.question.value=e.target.value;this.setState({value:this.question.value})},t.prototype.renderElement=function(){var e=this,t=this.item,n=this.question,r=this.cssClasses,s=n.isItemSelected(t),a=n.getItemClass(t),u=null;n.showLabel&&(u=o.createElement("span",{className:n.cssClasses.itemText},t.text?i.SurveyElementBase.renderLocString(t.locText):t.value));var c={objectFit:this.question.imageFit},p=null;if(t.locImageLink.renderedHtml&&"image"===this.question.contentMode&&(p=o.createElement("img",{className:r.image,src:t.locImageLink.renderedHtml,width:this.question.renderedImageWidth,height:this.question.renderedImageHeight,alt:t.locText.renderedHtml,style:c,onLoad:function(n){e.question.onContentLoaded(t,n.nativeEvent)},onError:function(e){t.onErrorHandler(t,e.nativeEvent)}})),t.locImageLink.renderedHtml&&"video"===this.question.contentMode&&(p=o.createElement("video",{controls:!0,className:r.image,src:t.locImageLink.renderedHtml,width:this.question.renderedImageWidth,height:this.question.renderedImageHeight,style:c,onLoadedMetadata:function(n){e.question.onContentLoaded(t,n.nativeEvent)},onError:function(e){t.onErrorHandler(t,e.nativeEvent)}})),!t.locImageLink.renderedHtml||t.contentNotLoaded){var d={width:this.question.renderedImageWidth,height:this.question.renderedImageHeight,objectFit:this.question.imageFit};p=o.createElement("div",{className:r.itemNoImage,style:d},r.itemNoImageSvgIcon?o.createElement(l.SvgIcon,{className:r.itemNoImageSvgIcon,iconName:this.question.cssClasses.itemNoImageSvgIconId,size:48}):null)}return o.createElement("div",{className:a},o.createElement("label",{className:r.label},o.createElement("input",{className:r.itemControl,id:this.question.getItemId(t),type:this.question.inputType,name:this.question.questionName,checked:s,value:t.value,disabled:!this.question.getItemEnabled(t),onChange:this.handleOnChange,"aria-required":this.question.ariaRequired,"aria-label":this.question.ariaLabel,"aria-invalid":this.question.ariaInvalid,"aria-describedby":this.question.ariaDescribedBy}),o.createElement("div",{className:this.question.cssClasses.itemDecorator},o.createElement("div",{className:this.question.cssClasses.imageContainer},this.question.cssClasses.checkedItemDecorator?o.createElement("span",{className:this.question.cssClasses.checkedItemDecorator},this.question.cssClasses.checkedItemSvgIconId?o.createElement(l.SvgIcon,{size:"auto",className:this.question.cssClasses.checkedItemSvgIcon,iconName:this.question.cssClasses.checkedItemSvgIconId}):null):null,p),u)))},t}(i.ReactSurveyElement);s.ReactQuestionFactory.Instance.registerQuestion("imagepicker",(function(e){return o.createElement(c,e)}))},"./src/react/page.tsx":function(e,t,n){"use strict";n.r(t),n.d(t,"SurveyPage",(function(){return u}));var r,o=n("react"),i=n("./src/react/reactquestion_element.tsx"),s=n("./src/react/panel-base.tsx"),a=n("./src/react/components/title/title-element.tsx"),l=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),u=function(e){function t(t){return e.call(this,t)||this}return l(t,e),t.prototype.getPanelBase=function(){return this.props.page},Object.defineProperty(t.prototype,"page",{get:function(){return this.panelBase},enumerable:!1,configurable:!0}),t.prototype.renderElement=function(){var e=this.renderTitle(),t=this.renderDescription(),n=this.renderRows(this.panelBase.cssClasses);return o.createElement("div",{ref:this.rootRef,className:this.page.cssRoot},e,t,n)},t.prototype.renderTitle=function(){return o.createElement(a.TitleElement,{element:this.page})},t.prototype.renderDescription=function(){if(!this.page._showDescription)return null;var e=i.SurveyElementBase.renderLocString(this.page.locDescription);return o.createElement("div",{className:this.panelBase.cssClasses.page.description},e)},t}(s.SurveyPanelBase)},"./src/react/panel-base.tsx":function(e,t,n){"use strict";n.r(t),n.d(t,"SurveyPanelBase",(function(){return l}));var r,o=n("react"),i=n("./src/react/reactquestion_element.tsx"),s=n("./src/react/row.tsx"),a=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),l=function(e){function t(t){var n=e.call(this,t)||this;return n.renderedRowsCache={},n.rootRef=o.createRef(),n}return a(t,e),t.prototype.getStateElement=function(){return this.panelBase},t.prototype.canUsePropInState=function(t){return"elements"!==t&&e.prototype.canUsePropInState.call(this,t)},Object.defineProperty(t.prototype,"survey",{get:function(){return this.getSurvey()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"creator",{get:function(){return this.props.creator},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"css",{get:function(){return this.getCss()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"panelBase",{get:function(){return this.getPanelBase()},enumerable:!1,configurable:!0}),t.prototype.getPanelBase=function(){return this.props.element||this.props.question},t.prototype.getSurvey=function(){return this.props.survey||(this.panelBase?this.panelBase.survey:null)},t.prototype.getCss=function(){return this.props.css},t.prototype.componentDidMount=function(){e.prototype.componentDidMount.call(this),this.doAfterRender()},t.prototype.componentWillUnmount=function(){e.prototype.componentWillUnmount.call(this);var t=this.rootRef.current;t&&t.removeAttribute("data-rendered")},t.prototype.componentDidUpdate=function(t,n){e.prototype.componentDidUpdate.call(this,t,n),t.page&&this.survey&&this.survey.currentPage&&t.page.id===this.survey.currentPage.id||this.doAfterRender()},t.prototype.doAfterRender=function(){var e=this.rootRef.current;e&&this.survey&&(this.panelBase.isPanel?this.survey.afterRenderPanel(this.panelBase,e):this.survey.afterRenderPage(e))},t.prototype.canRender=function(){return e.prototype.canRender.call(this)&&!!this.survey&&!!this.panelBase&&this.panelBase.isVisible&&!!this.panelBase.survey},t.prototype.renderRows=function(e){"rows"!==this.changedStatePropName&&(this.renderedRowsCache={});for(var t=[],n=this.panelBase.rows,r=0;r<n.length;r++){var o=this.renderedRowsCache[n[r].id];o||(o=this.createRow(n[r],e),this.renderedRowsCache[n[r].id]=o),t.push(o)}return t},t.prototype.createRow=function(e,t){return o.createElement(s.SurveyRow,{key:e.id,row:e,survey:this.survey,creator:this.creator,css:t})},t}(i.SurveyElementBase)},"./src/react/panel.tsx":function(e,t,n){"use strict";n.r(t),n.d(t,"SurveyPanel",(function(){return f}));var r,o=n("react"),i=n("./src/react/reactquestion.tsx"),s=n("./src/react/reactquestion_element.tsx"),a=n("./src/react/element-factory.tsx"),l=n("./src/react/panel-base.tsx"),u=n("./src/react/reactsurveymodel.tsx"),c=n("./src/react/components/action-bar/action-bar.tsx"),p=n("./src/react/components/title/title-element.tsx"),d=n("./src/react/element-header.tsx"),h=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),f=function(e){function t(t){var n=e.call(this,t)||this;return n.hasBeenExpanded=!1,n}return h(t,e),Object.defineProperty(t.prototype,"panel",{get:function(){return this.panelBase},enumerable:!1,configurable:!0}),t.prototype.renderElement=function(){var e=this,t=this.renderHeader(),n=o.createElement(i.SurveyElementErrors,{element:this.panelBase,cssClasses:this.panelBase.cssClasses,creator:this.creator}),r={paddingLeft:this.panel.innerPaddingLeft,display:this.panel.isCollapsed?"none":void 0},s=null;if(!this.panel.isCollapsed||this.hasBeenExpanded){this.hasBeenExpanded=!0;var a=this.renderRows(this.panelBase.cssClasses),l=this.panelBase.cssClasses.panel.content;s=this.renderContent(r,a,l)}return o.createElement("div",{ref:this.rootRef,className:this.panelBase.getContainerCss(),onFocus:function(){e.panelBase&&e.panelBase.focusIn()},id:this.panelBase.id},this.panel.showErrorsAbovePanel?n:null,t,this.panel.showErrorsAbovePanel?null:n,s)},t.prototype.renderHeader=function(){return this.panel.hasTitle||this.panel.hasDescription?o.createElement(d.SurveyElementHeader,{element:this.panel}):null},t.prototype.wrapElement=function(e){var t=this.panel.survey,n=null;return t&&(n=u.ReactSurveyElementsWrapper.wrapElement(t,e,this.panel)),null!=n?n:e},t.prototype.renderContent=function(e,t,n){var r=this.renderBottom();return o.createElement("div",{style:e,className:n,id:this.panel.contentId},t,r)},t.prototype.renderTitle=function(){return this.panelBase.title?o.createElement(p.TitleElement,{element:this.panelBase}):null},t.prototype.renderDescription=function(){if(!this.panelBase.description)return null;var e=s.SurveyElementBase.renderLocString(this.panelBase.locDescription);return o.createElement("div",{className:this.panel.cssClasses.panel.description},e)},t.prototype.renderBottom=function(){var e=this.panel.getFooterToolbar();return e.hasActions?o.createElement(c.SurveyActionBar,{model:e}):null},t}(l.SurveyPanelBase);a.ReactElementFactory.Instance.registerElement("panel",(function(e){return o.createElement(f,e)}))},"./src/react/rating-dropdown.tsx":function(e,t,n){"use strict";n.r(t),n.d(t,"SurveyQuestionRatingDropdown",(function(){return u}));var r,o=n("react"),i=n("survey-core"),s=n("./src/react/dropdown-base.tsx"),a=n("./src/react/reactquestion_factory.tsx"),l=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),u=function(e){function t(t){return e.call(this,t)||this}return l(t,e),t.prototype.renderElement=function(){var e=this.question.cssClasses,t=this.renderSelect(e);return o.createElement("div",{className:this.question.cssClasses.rootDropdown},t)},t}(s.SurveyQuestionDropdownBase);a.ReactQuestionFactory.Instance.registerQuestion("sv-rating-dropdown",(function(e){return o.createElement(u,e)})),i.RendererFactory.Instance.registerRenderer("rating","dropdown","sv-rating-dropdown")},"./src/react/react-popup-survey.tsx":function(e,t,n){"use strict";n.r(t),n.d(t,"PopupSurvey",(function(){return c})),n.d(t,"SurveyWindow",(function(){return p}));var r,o=n("react"),i=n("./src/react/reactSurvey.tsx"),s=n("./src/react/reactquestion_element.tsx"),a=n("survey-core"),l=n("./src/react/components/svg-icon/svg-icon.tsx"),u=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),c=function(e){function t(t){var n=e.call(this,t)||this;return n.handleOnExpanded=n.handleOnExpanded.bind(n),n}return u(t,e),t.prototype.getStateElements=function(){return[this.popup,this.popup.survey]},t.prototype.handleOnExpanded=function(e){this.popup.changeExpandCollapse()},t.prototype.canRender=function(){return e.prototype.canRender.call(this)&&this.popup.isShowing},t.prototype.renderElement=function(){var e=this.renderWindowHeader(),t=this.popup.isExpanded?this.renderBody():null,n={position:"fixed",bottom:3,right:10};return this.popup.renderedWidth&&(n.width=this.popup.renderedWidth,n.maxWidth=this.popup.renderedWidth),o.createElement("div",{className:this.popup.cssRoot,style:n},e,t)},t.prototype.renderWindowHeader=function(){var e=this,t=this.popup.cssButton;t="glyphicon pull-right "+t;var n=s.SurveyElementBase.renderLocString(this.survey.locTitle);return o.createElement("div",{className:this.popup.cssHeaderRoot},o.createElement("span",{onClick:this.handleOnExpanded,style:{width:"100%",cursor:"pointer"}},o.createElement("span",{className:this.popup.cssHeaderTitle,style:{paddingRight:"10px"}},n),o.createElement("span",{className:t,"aria-hidden":"true"})),this.popup.allowClose?o.createElement("span",{className:this.popup.cssHeaderButton,onClick:function(){e.popup.hide()},style:{transform:"rotate(45deg)",float:"right",cursor:"pointer",width:"24px",height:"24px"}},o.createElement(l.SvgIcon,{iconName:"icon-expanddetail",size:16})):null,this.popup.isExpanded?o.createElement("span",{className:this.popup.cssHeaderButton,onClick:this.handleOnExpanded,style:{float:"right",cursor:"pointer",width:"24px",height:"24px"}},o.createElement(l.SvgIcon,{iconName:"icon-collapsedetail",size:16})):null)},t.prototype.renderBody=function(){var e=this;return o.createElement("div",{className:this.popup.cssBody,onScroll:function(){return e.popup.onScroll()}},this.doRender())},t.prototype.createSurvey=function(t){t||(t={}),e.prototype.createSurvey.call(this,t),this.popup=new a.PopupSurveyModel(null,this.survey),t.closeOnCompleteTimeout&&(this.popup.closeOnCompleteTimeout=t.closeOnCompleteTimeout),this.popup.allowClose=t.allowClose,this.popup.isShowing=!0,this.popup.isExpanded||!t.expanded&&!t.isExpanded||this.popup.expand()},t}(i.Survey),p=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return u(t,e),t}(c)},"./src/react/reactSurvey.tsx":function(e,t,n){"use strict";n.r(t),n.d(t,"Survey",(function(){return y})),n.d(t,"attachKey2click",(function(){return v}));var r,o=n("react"),i=n("survey-core"),s=n("./src/react/page.tsx"),a=n("./src/react/reactquestion_element.tsx"),l=n("./src/react/string-viewer.tsx"),u=n("./src/react/components/survey-header/survey-header.tsx"),c=n("./src/react/reactquestion_factory.tsx"),p=n("./src/react/element-factory.tsx"),d=n("./src/react/components/brand-info.tsx"),h=n("./src/react/components/notifier.tsx"),f=n("./src/react/components/components-container.tsx"),g=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),m=function(){return m=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},m.apply(this,arguments)},y=function(e){function t(t){var n=e.call(this,t)||this;return n.previousJSON={},n.isSurveyUpdated=!1,n.createSurvey(t),n.updateSurvey(t,{}),n.rootRef=o.createRef(),n.rootNodeId=t.id||null,n.rootNodeClassName=t.className||"",n}return g(t,e),Object.defineProperty(t,"cssType",{get:function(){return i.surveyCss.currentType},set:function(e){i.StylesManager.applyTheme(e)},enumerable:!1,configurable:!0}),t.prototype.getStateElement=function(){return this.survey},t.prototype.onSurveyUpdated=function(){if(this.survey){var e=this.rootRef.current;e&&this.survey.afterRenderSurvey(e),this.survey.startTimerFromUI()}},t.prototype.shouldComponentUpdate=function(t,n){return!!e.prototype.shouldComponentUpdate.call(this,t,n)&&(this.isModelJSONChanged(t)&&(this.destroySurvey(),this.createSurvey(t),this.updateSurvey(t,{}),this.isSurveyUpdated=!0),!0)},t.prototype.componentDidUpdate=function(t,n){e.prototype.componentDidUpdate.call(this,t,n),this.updateSurvey(this.props,t),this.isSurveyUpdated&&(this.onSurveyUpdated(),this.isSurveyUpdated=!1)},t.prototype.componentDidMount=function(){e.prototype.componentDidMount.call(this),this.onSurveyUpdated()},t.prototype.destroySurvey=function(){this.survey&&(this.survey.stopTimer(),this.survey.destroyResizeObserver())},t.prototype.componentWillUnmount=function(){e.prototype.componentWillUnmount.call(this),this.destroySurvey()},t.prototype.doRender=function(){var e;this.survey.needRenderIcons&&i.SvgRegistry.renderIcons(),e="completed"==this.survey.state?this.renderCompleted():"completedbefore"==this.survey.state?this.renderCompletedBefore():"loading"==this.survey.state?this.renderLoading():this.renderSurvey();var t=this.survey.renderBackgroundImage?o.createElement("div",{className:this.css.rootBackgroundImage,style:this.survey.backgroundImageStyle}):null,n=o.createElement(u.SurveyHeader,{survey:this.survey}),r=o.createElement("div",{className:"sv_custom_header"});this.survey.hasLogo&&(r=null);var s=this.survey.getRootCss(),a=this.rootNodeClassName?this.rootNodeClassName+" "+s:s;return o.createElement("div",{id:this.rootNodeId,ref:this.rootRef,className:a,style:this.survey.themeVariables},t,o.createElement("form",{onSubmit:function(e){e.preventDefault()}},r,o.createElement("div",{className:this.css.container},n,o.createElement(f.ComponentsContainer,{survey:this.survey,container:"header",needRenderWrapper:!1}),e,o.createElement(f.ComponentsContainer,{survey:this.survey,container:"footer",needRenderWrapper:!1}))),this.survey.showBrandInfo?o.createElement(d.BrandInfo,null):null,o.createElement(h.NotifierComponent,{notifier:this.survey.notifier}))},t.prototype.renderElement=function(){return this.doRender()},Object.defineProperty(t.prototype,"css",{get:function(){return this.survey.css},set:function(e){this.survey.css=e},enumerable:!1,configurable:!0}),t.prototype.renderCompleted=function(){if(!this.survey.showCompletedPage)return null;var e={__html:this.survey.processedCompletedHtml};return o.createElement(o.Fragment,null,o.createElement("div",{dangerouslySetInnerHTML:e,className:this.survey.completedCss}))},t.prototype.renderCompletedBefore=function(){var e={__html:this.survey.processedCompletedBeforeHtml};return o.createElement("div",{dangerouslySetInnerHTML:e,className:this.css.body})},t.prototype.renderLoading=function(){var e={__html:this.survey.processedLoadingHtml};return o.createElement("div",{dangerouslySetInnerHTML:e,className:this.css.body})},t.prototype.renderSurvey=function(){var e=this.survey.activePage?this.renderPage(this.survey.activePage):null,t=(this.survey.isShowStartingPage,this.survey.activePage?this.survey.activePage.id:""),n=this.survey.bodyCss;e||(n=this.css.bodyEmpty,e=this.renderEmptySurvey());var r={};return this.survey.renderedWidth&&(r.maxWidth=this.survey.renderedWidth),o.createElement("div",{className:this.survey.bodyContainerCss},o.createElement(f.ComponentsContainer,{survey:this.survey,container:"left"}),o.createElement("div",{id:t,className:n,style:r},o.createElement(f.ComponentsContainer,{survey:this.survey,container:"contentTop"}),e,o.createElement(f.ComponentsContainer,{survey:this.survey,container:"contentBottom"})),o.createElement(f.ComponentsContainer,{survey:this.survey,container:"right"}))},t.prototype.renderPage=function(e){return o.createElement(s.SurveyPage,{survey:this.survey,page:e,css:this.css,creator:this})},t.prototype.renderEmptySurvey=function(){return o.createElement("span",null,this.survey.emptySurveyText)},t.prototype.createSurvey=function(e){e||(e={}),this.previousJSON={},e?e.model?this.survey=e.model:e.json&&(this.previousJSON=e.json,this.survey=new i.SurveyModel(e.json)):this.survey=new i.SurveyModel,e.css&&(this.survey.css=this.css),this.setSurveyEvents()},t.prototype.isModelJSONChanged=function(e){return e.model?this.survey!==e.model:!!e.json&&!i.Helpers.isTwoValueEquals(e.json,this.previousJSON)},t.prototype.updateSurvey=function(e,t){if(e)for(var n in t=t||{},e)"model"!=n&&"children"!=n&&"json"!=n&&("css"!=n?e[n]!==t[n]&&(0==n.indexOf("on")&&this.survey[n]&&this.survey[n].add?(t[n]&&this.survey[n].remove(t[n]),this.survey[n].add(e[n])):this.survey[n]=e[n]):(this.survey.mergeValues(e.css,this.survey.getCss()),this.survey.updateNavigationCss(),this.survey.updateElementCss()))},t.prototype.setSurveyEvents=function(){var e=this;this.survey.renderCallback=function(){var t=e.state&&e.state.modelChanged?e.state.modelChanged:0;e.setState({modelChanged:t+1})},this.survey.onPartialSend.add((function(t){e.state&&e.setState(e.state)}))},t.prototype.createQuestionElement=function(e){return c.ReactQuestionFactory.Instance.createQuestion(e.isDefaultRendering()?e.getTemplate():e.getComponentName(),{question:e,isDisplayMode:e.isInputReadOnly,creator:this})},t.prototype.renderError=function(e,t,n){return o.createElement("div",{key:e},o.createElement("span",{className:n.error.icon||void 0,"aria-hidden":"true"}),o.createElement("span",{className:n.error.item||void 0},o.createElement(l.SurveyLocStringViewer,{locStr:t.locText})))},t.prototype.questionTitleLocation=function(){return this.survey.questionTitleLocation},t.prototype.questionErrorLocation=function(){return this.survey.questionErrorLocation},t}(a.SurveyElementBase);function v(e,t,n){return void 0===n&&(n={processEsc:!0,disableTabStop:!1}),t&&t.disableTabStop||n&&n.disableTabStop?o.cloneElement(e,{tabIndex:-1}):(n=m({},n),o.cloneElement(e,{tabIndex:0,onKeyUp:function(e){return e.preventDefault(),e.stopPropagation(),Object(i.doKey2ClickUp)(e,n),!1},onKeyDown:function(e){return Object(i.doKey2ClickDown)(e,n)},onBlur:function(e){return Object(i.doKey2ClickBlur)(e)}}))}p.ReactElementFactory.Instance.registerElement("survey",(function(e){return o.createElement(y,e)}))},"./src/react/reactSurveyNavigationBase.tsx":function(e,t,n){"use strict";n.r(t),n.d(t,"SurveyNavigationBase",(function(){return s}));var r,o=n("react"),i=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),s=function(e){function t(t){var n=e.call(this,t)||this;return n.updateStateFunction=null,n.state={update:0},n}return i(t,e),Object.defineProperty(t.prototype,"survey",{get:function(){return this.props.survey},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"css",{get:function(){return this.props.css||this.survey.css},enumerable:!1,configurable:!0}),t.prototype.componentDidMount=function(){if(this.survey){var e=this;this.updateStateFunction=function(){e.setState({update:e.state.update+1})},this.survey.onPageVisibleChanged.add(this.updateStateFunction)}},t.prototype.componentWillUnmount=function(){this.survey&&this.updateStateFunction&&(this.survey.onPageVisibleChanged.remove(this.updateStateFunction),this.updateStateFunction=null)},t}(o.Component)},"./src/react/reactSurveyProgress.tsx":function(e,t,n){"use strict";n.r(t),n.d(t,"SurveyProgress",(function(){return u}));var r,o=n("react"),i=n("survey-core"),s=n("./src/react/reactSurveyNavigationBase.tsx"),a=n("./src/react/element-factory.tsx"),l=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),u=function(e){function t(t){return e.call(this,t)||this}return l(t,e),Object.defineProperty(t.prototype,"isTop",{get:function(){return this.props.isTop},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"progress",{get:function(){return this.survey.progressValue},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"progressText",{get:function(){return this.survey.progressText},enumerable:!1,configurable:!0}),t.prototype.render=function(){var e={width:this.progress+"%"};return o.createElement("div",{className:this.survey.getProgressCssClasses()},o.createElement("div",{style:e,className:this.css.progressBar,role:"progressbar","aria-valuemin":0,"aria-valuemax":100},o.createElement("span",{className:i.SurveyProgressModel.getProgressTextInBarCss(this.css)},this.progressText)),o.createElement("span",{className:i.SurveyProgressModel.getProgressTextUnderBarCss(this.css)},this.progressText))},t}(s.SurveyNavigationBase);a.ReactElementFactory.Instance.registerElement("sv-progress-pages",(function(e){return o.createElement(u,e)})),a.ReactElementFactory.Instance.registerElement("sv-progress-questions",(function(e){return o.createElement(u,e)})),a.ReactElementFactory.Instance.registerElement("sv-progress-correctquestions",(function(e){return o.createElement(u,e)})),a.ReactElementFactory.Instance.registerElement("sv-progress-requiredquestions",(function(e){return o.createElement(u,e)}))},"./src/react/reactSurveyProgressButtons.tsx":function(e,t,n){"use strict";n.r(t),n.d(t,"SurveyProgressButtons",(function(){return u}));var r,o=n("react"),i=n("survey-core"),s=n("./src/react/reactSurveyNavigationBase.tsx"),a=n("./src/react/element-factory.tsx"),l=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),u=function(e){function t(t){var n=e.call(this,t)||this;return n.updateScroller=void 0,n.progressButtonsModel=new i.SurveyProgressButtonsModel(n.survey),n.listContainerRef=o.createRef(),n}return l(t,e),t.prototype.render=function(){var e=this;return o.createElement("div",{className:this.css.progressButtonsContainerCenter},o.createElement("div",{className:this.css.progressButtonsContainer},o.createElement("div",{className:this.getScrollButtonCss(!0),role:"button",onClick:function(){return e.clickScrollButton(e.listContainerRef.current,!0)}}),o.createElement("div",{className:this.css.progressButtonsListContainer,ref:this.listContainerRef},o.createElement("ul",{className:this.css.progressButtonsList},this.getListElements())),o.createElement("div",{className:this.getScrollButtonCss(!1),role:"button",onClick:function(){return e.clickScrollButton(e.listContainerRef.current,!1)}})))},t.prototype.getListElements=function(){var e=this,t=[];return this.survey.visiblePages.forEach((function(n,r){t.push(e.renderListElement(n,r))})),t},t.prototype.renderListElement=function(e,t){var n=this;return o.createElement("li",{key:"listelement"+t,className:this.getListElementCss(t),onClick:this.isListElementClickable(t)?function(){return n.clickListElement(t)}:void 0},o.createElement("div",{className:this.css.progressButtonsPageTitle,title:e.navigationTitle||e.name},e.navigationTitle||e.name),o.createElement("div",{className:this.css.progressButtonsPageDescription,title:e.navigationDescription},e.navigationDescription))},t.prototype.isListElementClickable=function(e){return this.progressButtonsModel.isListElementClickable(e)},t.prototype.getListElementCss=function(e){return this.progressButtonsModel.getListElementCss(e)},t.prototype.clickListElement=function(e){this.progressButtonsModel.clickListElement(e)},t.prototype.getScrollButtonCss=function(e){return this.progressButtonsModel.getScrollButtonCss(this.state.hasScroller,e)},t.prototype.clickScrollButton=function(e,t){e&&(e.scrollLeft+=70*(t?-1:1))},t.prototype.componentDidMount=function(){var e=this;this.updateScroller=setInterval((function(){e.listContainerRef.current&&e.setState({hasScroller:e.listContainerRef.current.scrollWidth>e.listContainerRef.current.offsetWidth})}),100)},t.prototype.componentWillUnmount=function(){void 0!==this.updateScroller&&(clearInterval(this.updateScroller),this.updateScroller=void 0)},t}(s.SurveyNavigationBase);a.ReactElementFactory.Instance.registerElement("sv-progress-buttons",(function(e){return o.createElement(u,e)}))},"./src/react/reactSurveyProgressToc.tsx":function(e,t,n){"use strict";n.r(t),n.d(t,"SurveyProgressToc",(function(){return d}));var r,o=n("react"),i=n("survey-core"),s=n("./src/react/reactSurveyNavigationBase.tsx"),a=n("./src/react/element-factory.tsx"),l=n("./src/react/components/list/list.tsx"),u=n("./src/react/components/popup/popup.tsx"),c=n("./src/react/components/svg-icon/svg-icon.tsx"),p=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),d=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return p(t,e),t.prototype.render=function(){var e,t=new i.TOCModel(this.props.model);return e=t.isMobile?o.createElement("div",{onClick:t.togglePopup},o.createElement(c.SvgIcon,{iconName:t.icon,size:24}),o.createElement(u.Popup,{model:t.popupModel})):o.createElement(l.List,{model:t.listModel}),o.createElement("div",{className:t.containerCss},e)},t}(s.SurveyNavigationBase);a.ReactElementFactory.Instance.registerElement("sv-progress-toc",(function(e){return o.createElement(d,e)}))},"./src/react/reactquestion.tsx":function(e,t,n){"use strict";n.r(t),n.d(t,"SurveyQuestion",(function(){return h})),n.d(t,"SurveyElementErrors",(function(){return f})),n.d(t,"SurveyQuestionAndErrorsWrapped",(function(){return g})),n.d(t,"SurveyQuestionAndErrorsCell",(function(){return m}));var r,o=n("react"),i=n("survey-core"),s=n("./src/react/reactsurveymodel.tsx"),a=n("./src/react/element-factory.tsx"),l=n("./src/react/reactquestion_element.tsx"),u=n("./src/react/reactquestion_comment.tsx"),c=n("./src/react/custom-widget.tsx"),p=n("./src/react/element-header.tsx"),d=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),h=function(e){function t(t){var n=e.call(this,t)||this;return n.isNeedFocus=!1,n.rootRef=o.createRef(),n}return d(t,e),t.renderQuestionBody=function(e,t){return t.isVisible?t.customWidget?o.createElement(c.SurveyCustomWidget,{creator:e,question:t}):e.createQuestionElement(t):null},t.prototype.getStateElement=function(){return this.question},Object.defineProperty(t.prototype,"question",{get:function(){return this.props.element},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"creator",{get:function(){return this.props.creator},enumerable:!1,configurable:!0}),t.prototype.componentDidMount=function(){e.prototype.componentDidMount.call(this),this.question&&(this.question.react=this),this.doAfterRender()},t.prototype.componentWillUnmount=function(){e.prototype.componentWillUnmount.call(this),this.question&&(this.question.react=null);var t=this.rootRef.current;t&&t.removeAttribute("data-rendered")},t.prototype.componentDidUpdate=function(t,n){e.prototype.componentDidUpdate.call(this,t,n),this.doAfterRender()},t.prototype.doAfterRender=function(){if(this.isNeedFocus&&(this.question.isCollapsed||this.question.clickTitleFunction(),this.isNeedFocus=!1),this.question){var e=this.rootRef.current;e&&"r"!==e.getAttribute("data-rendered")&&(e.setAttribute("data-rendered","r"),e.setAttribute("data-name",this.question.name),this.question.afterRender&&this.question.afterRender(e))}},t.prototype.canRender=function(){return e.prototype.canRender.call(this)&&!!this.question&&!!this.creator&&this.question.isVisible},t.prototype.renderQuestionContent=function(){var e=this.question,t={display:this.question.isCollapsed?"none":""},n=e.cssClasses,r=this.renderQuestion(),i=this.question.showErrorOnTop?this.renderErrors(n,"top"):null,s=this.question.showErrorOnBottom?this.renderErrors(n,"bottom"):null,a=e&&e.hasComment?this.renderComment(n):null,l=this.question.isErrorsModeTooltip?this.renderErrors(n,"tooltip"):null,u=e.hasDescriptionUnderInput?this.renderDescription():null;return o.createElement("div",{className:e.cssContent||void 0,style:t,role:"presentation"},i,r,a,s,l,u)},t.prototype.renderElement=function(){var e=this.question,t=e.cssClasses,n=this.renderHeader(e),r=e.hasTitleOnLeftTop?n:null,i=e.hasTitleOnBottom?n:null,s=this.question.showErrorsAboveQuestion?this.renderErrors(t,""):null,a=this.question.showErrorsBelowQuestion?this.renderErrors(t,""):null,l=e.getRootStyle(),u=this.wrapQuestionContent(this.renderQuestionContent());return o.createElement(o.Fragment,null,o.createElement("div",{ref:this.rootRef,id:e.id,className:e.getRootCss(),style:l,role:e.ariaRole,"aria-required":this.question.ariaRequired,"aria-invalid":this.question.ariaInvalid,"aria-labelledby":e.ariaLabelledBy,"aria-expanded":null===e.ariaExpanded?void 0:"true"===e.ariaExpanded},s,r,u,i,a))},t.prototype.wrapElement=function(e){var t=this.question.survey,n=null;return t&&(n=s.ReactSurveyElementsWrapper.wrapElement(t,e,this.question)),null!=n?n:e},t.prototype.wrapQuestionContent=function(e){var t=this.question.survey,n=null;return t&&(n=s.ReactSurveyElementsWrapper.wrapQuestionContent(t,e,this.question)),null!=n?n:e},t.prototype.renderQuestion=function(){return t.renderQuestionBody(this.creator,this.question)},t.prototype.renderDescription=function(){return l.SurveyElementBase.renderQuestionDescription(this.question)},t.prototype.renderComment=function(e){var t=l.SurveyElementBase.renderLocString(this.question.locCommentText);return o.createElement("div",{className:this.question.getCommentAreaCss()},o.createElement("div",null,t),o.createElement(u.SurveyQuestionCommentItem,{question:this.question,cssClasses:e,otherCss:e.other,isDisplayMode:this.question.isInputReadOnly}))},t.prototype.renderHeader=function(e){return o.createElement(p.SurveyElementHeader,{element:e})},t.prototype.renderErrors=function(e,t){return o.createElement(f,{element:this.question,cssClasses:e,creator:this.creator,location:t,id:this.question.id+"_errors"})},t}(l.SurveyElementBase);a.ReactElementFactory.Instance.registerElement("question",(function(e){return o.createElement(h,e)}));var f=function(e){function t(t){var n=e.call(this,t)||this;return n.state=n.getState(),n.tooltipRef=o.createRef(),n}return d(t,e),Object.defineProperty(t.prototype,"id",{get:function(){return this.props.element.id+"_errors"},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"element",{get:function(){return this.props.element},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"creator",{get:function(){return this.props.creator},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"location",{get:function(){return this.props.location},enumerable:!1,configurable:!0}),t.prototype.getState=function(e){return void 0===e&&(e=null),e?{error:e.error+1}:{error:0}},t.prototype.canRender=function(){return!!this.element&&this.element.hasVisibleErrors},t.prototype.componentDidUpdate=function(t,n){e.prototype.componentDidUpdate.call(this,t,n),"tooltip"==this.props.location&&(this.tooltipRef.current&&!this.tooltipManager&&(this.tooltipManager=new i.TooltipManager(this.tooltipRef.current)),this.tooltipManager&&!this.tooltipRef.current&&this.disposeTooltipManager())},t.prototype.componentWillUnmount=function(){this.tooltipManager&&this.disposeTooltipManager()},t.prototype.disposeTooltipManager=function(){var e;null===(e=this.tooltipManager)||void 0===e||e.dispose(),this.tooltipManager=void 0},t.prototype.renderElement=function(){for(var e=[],t=0;t<this.element.errors.length;t++){var n="error"+t;e.push(this.creator.renderError(n,this.element.errors[t],this.cssClasses))}return o.createElement("div",{role:"alert","aria-live":"polite",className:this.element.cssError,id:this.id,ref:this.tooltipRef},e)},t}(l.ReactSurveyElement),g=function(e){function t(t){return e.call(this,t)||this}return d(t,e),t.prototype.getStateElement=function(){return this.question},Object.defineProperty(t.prototype,"question",{get:function(){return this.getQuestion()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"creator",{get:function(){return this.props.creator},enumerable:!1,configurable:!0}),t.prototype.getQuestion=function(){return this.props.question},Object.defineProperty(t.prototype,"itemCss",{get:function(){return this.props.itemCss},enumerable:!1,configurable:!0}),t.prototype.componentDidMount=function(){e.prototype.componentDidMount.call(this),this.doAfterRender()},t.prototype.componentDidUpdate=function(t,n){e.prototype.componentDidUpdate.call(this,t,n),this.doAfterRender()},t.prototype.doAfterRender=function(){},t.prototype.canRender=function(){return!!this.question},t.prototype.renderErrors=function(e){return this.getShowErrors()?o.createElement(f,{element:this.question,cssClasses:this.cssClasses,creator:this.creator,location:e}):null},t.prototype.renderContent=function(){var e=this.creator.questionErrorLocation(),t=this.renderErrors(e),n=this.question.showErrorOnTop?t:null,r=this.question.showErrorOnBottom?t:null,i=this.renderQuestion();return o.createElement(o.Fragment,null,n,i,r)},t.prototype.getShowErrors=function(){return this.question.isVisible},t.prototype.renderQuestion=function(){return h.renderQuestionBody(this.creator,this.question)},t}(l.ReactSurveyElement),m=function(e){function t(t){var n=e.call(this,t)||this;return n.cellRef=o.createRef(),n}return d(t,e),t.prototype.componentWillUnmount=function(){if(e.prototype.componentWillUnmount.call(this),this.question){var t=this.cellRef.current;t&&t.removeAttribute("data-rendered")}},t.prototype.renderElement=function(){var e=this.getCellStyle();return o.createElement("td",{ref:this.cellRef,className:this.itemCss,colSpan:this.props.cell.colSpans,"data-responsive-title":this.getHeaderText(),title:this.props.cell.getTitle(),style:e},this.wrapCell(this.props.cell,o.createElement("div",{className:this.cssClasses.cellQuestionWrapper},this.renderQuestion())))},t.prototype.getCellStyle=function(){return null},t.prototype.getHeaderText=function(){return""},t.prototype.wrapCell=function(e,t){if(!e)return t;var n=this.question.survey,r=null;return n&&(r=s.ReactSurveyElementsWrapper.wrapMatrixCell(n,t,e,this.props.reason)),null!=r?r:t},t}(g)},"./src/react/reactquestion_buttongroup.tsx":function(e,t,n){"use strict";n.r(t),n.d(t,"SurveyQuestionButtonGroup",(function(){return c})),n.d(t,"SurveyButtonGroupItem",(function(){return p}));var r,o=n("./src/react/reactquestion_element.tsx"),i=n("react"),s=n.n(i),a=n("./src/react/components/svg-icon/svg-icon.tsx"),l=n("survey-core"),u=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),c=function(e){function t(t){return e.call(this,t)||this}return u(t,e),Object.defineProperty(t.prototype,"question",{get:function(){return this.questionBase},enumerable:!1,configurable:!0}),t.prototype.getStateElement=function(){return this.question},t.prototype.renderElement=function(){var e=this.renderItems();return s.a.createElement("div",{className:this.question.cssClasses.root},e)},t.prototype.renderItems=function(){var e=this;return this.question.visibleChoices.map((function(t,n){return s.a.createElement(p,{key:e.question.inputId+"_"+n,item:t,question:e.question,index:n})}))},t}(o.SurveyQuestionElementBase),p=function(e){function t(t){return e.call(this,t)||this}return u(t,e),Object.defineProperty(t.prototype,"index",{get:function(){return this.props.index},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"question",{get:function(){return this.props.question},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"item",{get:function(){return this.props.item},enumerable:!1,configurable:!0}),t.prototype.getStateElement=function(){return this.item},t.prototype.renderElement=function(){this.model=new l.ButtonGroupItemModel(this.question,this.item,this.index);var e=this.renderIcon(),t=this.renderInput(),n=this.renderCaption();return s.a.createElement("label",{role:"radio",className:this.model.css.label,title:this.model.caption.renderedHtml},t,s.a.createElement("div",{className:this.model.css.decorator},e,n))},t.prototype.renderIcon=function(){return this.model.iconName?s.a.createElement(a.SvgIcon,{className:this.model.css.icon,iconName:this.model.iconName,size:this.model.iconSize||24}):null},t.prototype.renderInput=function(){var e=this;return s.a.createElement("input",{className:this.model.css.control,id:this.model.id,type:"radio",name:this.model.name,checked:this.model.selected,value:this.model.value,disabled:this.model.readOnly,onChange:function(){e.model.onChange()},"aria-required":this.model.isRequired,"aria-label":this.model.caption.renderedHtml,"aria-invalid":this.model.hasErrors,"aria-describedby":this.model.describedBy,role:"radio"})},t.prototype.renderCaption=function(){if(!this.model.showCaption)return null;var e=this.renderLocString(this.model.caption);return s.a.createElement("span",{className:this.model.css.caption,title:this.model.caption.renderedHtml},e)},t}(o.SurveyElementBase)},"./src/react/reactquestion_checkbox.tsx":function(e,t,n){"use strict";n.r(t),n.d(t,"SurveyQuestionCheckbox",(function(){return p})),n.d(t,"SurveyQuestionCheckboxItem",(function(){return d}));var r,o=n("react"),i=n("./src/react/reactquestion_element.tsx"),s=n("./src/react/reactquestion_comment.tsx"),a=n("./src/react/reactquestion_factory.tsx"),l=n("./src/react/reactsurveymodel.tsx"),u=n("./src/react/element-factory.tsx"),c=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),p=function(e){function t(t){return e.call(this,t)||this}return c(t,e),Object.defineProperty(t.prototype,"question",{get:function(){return this.questionBase},enumerable:!1,configurable:!0}),t.prototype.renderElement=function(){var e=this,t=this.question.cssClasses;return o.createElement("fieldset",{role:"presentation",className:this.question.getSelectBaseRootCss(),ref:function(t){return e.setControl(t)}},o.createElement("legend",{role:"presentation",className:"sv-hidden"}),this.getHeader(),this.question.hasColumns?this.getColumnedBody(t):this.getBody(t),this.getFooter(),this.question.isOtherSelected?this.renderOther():null)},t.prototype.getHeader=function(){var e=this;if(this.question.hasHeadItems)return this.question.headItems.map((function(t,n){return e.renderItem("item_h"+n,t,!1,e.question.cssClasses)}))},t.prototype.getFooter=function(){var e=this;if(this.question.hasFootItems)return this.question.footItems.map((function(t,n){return e.renderItem("item_f"+n,t,!1,e.question.cssClasses)}))},t.prototype.getColumnedBody=function(e){return o.createElement("div",{className:e.rootMultiColumn},this.getColumns(e))},t.prototype.getColumns=function(e){var t=this;return this.question.columns.map((function(n,r){var i=n.map((function(n,o){return t.renderItem("item"+o,n,0===r&&0===o,e,""+r+o)}));return o.createElement("div",{key:"column"+r,className:t.question.getColumnClass(),role:"presentation"},i)}))},t.prototype.getBody=function(e){return this.question.blockedRow?o.createElement("div",{className:e.rootRow},this.getItems(e,this.question.dataChoices)):o.createElement(o.Fragment,null,this.getItems(e,this.question.bodyItems))},t.prototype.getItems=function(e,t){for(var n=[],r=0;r<t.length;r++){var o=t[r],i="item"+r,s=this.renderItem(i,o,0==r,e,""+r);s&&n.push(s)}return n},Object.defineProperty(t.prototype,"textStyle",{get:function(){return null},enumerable:!1,configurable:!0}),t.prototype.renderOther=function(){var e=this.question.cssClasses;return o.createElement("div",{className:this.question.getCommentAreaCss(!0)},o.createElement(s.SurveyQuestionOtherValueItem,{question:this.question,otherCss:e.other,cssClasses:e,isDisplayMode:this.isDisplayMode}))},t.prototype.renderItem=function(e,t,n,r,o){var i=u.ReactElementFactory.Instance.createElement(this.question.itemComponent,{key:e,question:this.question,cssClasses:r,isDisplayMode:this.isDisplayMode,item:t,textStyle:this.textStyle,index:o,isFirst:n}),s=this.question.survey,a=null;return s&&i&&(a=l.ReactSurveyElementsWrapper.wrapItemValue(s,i,this.question,t)),null!=a?a:i},t}(i.SurveyQuestionElementBase),d=function(e){function t(t){var n=e.call(this,t)||this;return n.handleOnChange=function(e){n.question.clickItemHandler(n.item,e.target.checked)},n.selectAllChanged=function(e){n.question.toggleSelectAll()},n}return c(t,e),t.prototype.getStateElement=function(){return this.item},Object.defineProperty(t.prototype,"question",{get:function(){return this.props.question},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"item",{get:function(){return this.props.item},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"textStyle",{get:function(){return this.props.textStyle},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isFirst",{get:function(){return this.props.isFirst},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"index",{get:function(){return this.props.index},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hideCaption",{get:function(){return!0===this.props.hideCaption},enumerable:!1,configurable:!0}),t.prototype.shouldComponentUpdate=function(t,n){return!(!e.prototype.shouldComponentUpdate.call(this,t,n)||!this.question||this.question.customWidget&&!this.question.customWidgetData.isNeedRender&&!this.question.customWidget.widgetJson.isDefaultRender&&!this.question.customWidget.widgetJson.render)},t.prototype.canRender=function(){return!!this.item&&!!this.question},t.prototype.renderElement=function(){var e=this.question.isItemSelected(this.item);return this.renderCheckbox(e,null)},Object.defineProperty(t.prototype,"inputStyle",{get:function(){return null},enumerable:!1,configurable:!0}),t.prototype.renderCheckbox=function(e,t){var n=this.question.getItemId(this.item),r=(this.hideCaption||this.renderLocString(this.item.locText),this.question.getItemClass(this.item)),i=this.question.getLabelClass(this.item),s=this.item==this.question.selectAllItem?this.selectAllChanged:this.handleOnChange,a=this.hideCaption?null:o.createElement("span",{className:this.cssClasses.controlLabel},this.renderLocString(this.item.locText,this.textStyle));return o.createElement("div",{className:r,role:"presentation"},o.createElement("label",{className:i,"aria-label":this.question.getAriaItemLabel(this.item)},o.createElement("input",{className:this.cssClasses.itemControl,role:"option",type:"checkbox",name:this.question.name,value:"selectall"!=this.item.value?this.item.value:void 0,id:n,style:this.inputStyle,disabled:!this.question.getItemEnabled(this.item),checked:e,onChange:s,"aria-describedby":this.question.ariaDescribedBy}),this.cssClasses.materialDecorator?o.createElement("span",{className:this.cssClasses.materialDecorator},this.question.itemSvgIcon?o.createElement("svg",{className:this.cssClasses.itemDecorator},o.createElement("use",{xlinkHref:this.question.itemSvgIcon})):null):null,a),t)},t}(i.ReactSurveyElement);u.ReactElementFactory.Instance.registerElement("survey-checkbox-item",(function(e){return o.createElement(d,e)})),a.ReactQuestionFactory.Instance.registerQuestion("checkbox",(function(e){return o.createElement(p,e)}))},"./src/react/reactquestion_comment.tsx":function(e,t,n){"use strict";n.r(t),n.d(t,"SurveyQuestionComment",(function(){return u})),n.d(t,"SurveyQuestionCommentItem",(function(){return c})),n.d(t,"SurveyQuestionOtherValueItem",(function(){return p}));var r,o=n("react"),i=n("./src/react/reactquestion_element.tsx"),s=n("./src/react/reactquestion_factory.tsx"),a=n("./src/react/components/character-counter.tsx"),l=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),u=function(e){function t(t){return e.call(this,t)||this}return l(t,e),t.prototype.renderElement=function(){var e=this,t=this.question.isInputTextUpdate?void 0:this.updateValueOnEvent,n=this.question.renderedPlaceholder;if(this.question.isReadOnlyRenderDiv())return o.createElement("div",null,this.question.value);var r=this.question.getMaxLength()?o.createElement(a.CharacterCounterComponent,{counter:this.question.characterCounter,remainingCharacterCounter:this.question.cssClasses.remainingCharacterCounter}):null;return o.createElement(o.Fragment,null,o.createElement("textarea",{id:this.question.inputId,className:this.question.className,disabled:this.question.isInputReadOnly,readOnly:this.question.isInputReadOnly,ref:function(t){return e.setControl(t)},maxLength:this.question.getMaxLength(),placeholder:n,onBlur:t,onInput:function(t){e.question.isInputTextUpdate?e.updateValueOnEvent(t):e.question.updateElement();var n=t.target.value;e.question.updateRemainingCharacterCounter(n)},onKeyDown:function(t){e.question.onKeyDown(t)},cols:this.question.cols,rows:this.question.rows,"aria-required":this.question.a11y_input_ariaRequired,"aria-label":this.question.a11y_input_ariaLabel,"aria-labelledby":this.question.a11y_input_ariaLabelledBy,"aria-invalid":this.question.a11y_input_ariaInvalid,"aria-describedby":this.question.a11y_input_ariaDescribedBy,style:{resize:this.question.resizeStyle}}),r)},t}(i.SurveyQuestionUncontrolledElement),c=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return l(t,e),t.prototype.canRender=function(){return!!this.props.question},t.prototype.onCommentChange=function(e){this.props.question.onCommentChange(e)},t.prototype.onCommentInput=function(e){this.props.question.onCommentInput(e)},t.prototype.getComment=function(){return this.props.question.comment},t.prototype.getId=function(){return this.props.question.commentId},t.prototype.getPlaceholder=function(){return this.props.question.commentPlaceholder},t.prototype.renderElement=function(){var e=this,t=this.props.question,n=this.props.otherCss||this.cssClasses.comment,r=function(t){e.setState({comment:t.target.value}),e.onCommentChange(t)},i=this.getComment(),s=this.state?this.state.comment:void 0;void 0!==s&&s.trim()!==i&&(s=i);var a=void 0!==s?s:i||"";return t.isReadOnlyRenderDiv()?o.createElement("div",null,a):o.createElement("textarea",{id:this.getId(),className:n,value:a,disabled:this.isDisplayMode,maxLength:t.getOthersMaxLength(),placeholder:this.getPlaceholder(),onChange:r,onBlur:function(t){e.onCommentChange(t),r(t)},onInput:function(t){return e.onCommentInput(t)},"aria-required":t.isRequired,"aria-label":t.locTitle.renderedHtml,style:{resize:t.resizeStyle}})},t}(i.ReactSurveyElement),p=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return l(t,e),t.prototype.onCommentChange=function(e){this.props.question.onOtherValueChange(e)},t.prototype.onCommentInput=function(e){this.props.question.onOtherValueInput(e)},t.prototype.getComment=function(){return this.props.question.otherValue},t.prototype.getId=function(){return this.props.question.otherId},t.prototype.getPlaceholder=function(){return this.props.question.otherPlaceholder},t}(c);s.ReactQuestionFactory.Instance.registerQuestion("comment",(function(e){return o.createElement(u,e)}))},"./src/react/reactquestion_custom.tsx":function(e,t,n){"use strict";n.r(t),n.d(t,"SurveyQuestionCustom",(function(){return c})),n.d(t,"SurveyQuestionComposite",(function(){return p}));var r,o=n("react"),i=n("./src/react/reactquestion_element.tsx"),s=n("./src/react/reactquestion.tsx"),a=n("./src/react/reactquestion_factory.tsx"),l=n("./src/react/panel.tsx"),u=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),c=function(e){function t(t){return e.call(this,t)||this}return u(t,e),t.prototype.getStateElements=function(){var t=e.prototype.getStateElements.call(this);return this.question.contentQuestion&&t.push(this.question.contentQuestion),t},t.prototype.renderElement=function(){return s.SurveyQuestion.renderQuestionBody(this.creator,this.question.contentQuestion)},t}(i.SurveyQuestionUncontrolledElement),p=function(e){function t(t){return e.call(this,t)||this}return u(t,e),t.prototype.canRender=function(){return!!this.question.contentPanel},t.prototype.renderElement=function(){return o.createElement(l.SurveyPanel,{element:this.question.contentPanel,creator:this.creator,survey:this.question.survey})},t}(i.SurveyQuestionUncontrolledElement);a.ReactQuestionFactory.Instance.registerQuestion("custom",(function(e){return o.createElement(c,e)})),a.ReactQuestionFactory.Instance.registerQuestion("composite",(function(e){return o.createElement(p,e)}))},"./src/react/reactquestion_dropdown.tsx":function(e,t,n){"use strict";n.r(t),n.d(t,"SurveyQuestionDropdown",(function(){return l}));var r,o=n("react"),i=n("./src/react/reactquestion_factory.tsx"),s=n("./src/react/dropdown-base.tsx"),a=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),l=function(e){function t(t){return e.call(this,t)||this}return a(t,e),t.prototype.renderElement=function(){var e=this.question.cssClasses,t=this.question.isOtherSelected?this.renderOther(e):null,n=this.renderSelect(e);return o.createElement("div",{className:this.question.renderCssRoot},n,t)},t}(s.SurveyQuestionDropdownBase);i.ReactQuestionFactory.Instance.registerQuestion("dropdown",(function(e){return o.createElement(l,e)}))},"./src/react/reactquestion_element.tsx":function(e,t,n){"use strict";n.r(t),n.d(t,"SurveyElementBase",(function(){return u})),n.d(t,"ReactSurveyElement",(function(){return c})),n.d(t,"SurveyQuestionElementBase",(function(){return p})),n.d(t,"SurveyQuestionUncontrolledElement",(function(){return d}));var r,o=n("react"),i=n("survey-core"),s=n("./src/react/element-factory.tsx"),a=n("./src/react/reactsurveymodel.tsx"),l=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),u=function(e){function t(t){var n=e.call(this,t)||this;return n._allowComponentUpdate=!0,n}return l(t,e),t.renderLocString=function(e,t,n){return void 0===t&&(t=null),s.ReactElementFactory.Instance.createElement(e.renderAs,{locStr:e.renderAsData,style:t,key:n})},t.renderQuestionDescription=function(e){var n=t.renderLocString(e.locDescription);return o.createElement("div",{style:e.hasDescription?void 0:{display:"none"},className:e.cssDescription},n)},t.prototype.componentDidMount=function(){this.makeBaseElementsReact()},t.prototype.componentWillUnmount=function(){this.unMakeBaseElementsReact()},t.prototype.componentDidUpdate=function(e,t){this.makeBaseElementsReact()},t.prototype.allowComponentUpdate=function(){this._allowComponentUpdate=!0,this.forceUpdate()},t.prototype.denyComponentUpdate=function(){this._allowComponentUpdate=!1},t.prototype.shouldComponentUpdate=function(e,t){return this._allowComponentUpdate&&this.unMakeBaseElementsReact(),this._allowComponentUpdate},t.prototype.render=function(){if(!this.canRender())return null;this.startEndRendering(1);var e=this.renderElement();return this.startEndRendering(-1),e&&(e=this.wrapElement(e)),this.changedStatePropNameValue=void 0,e},t.prototype.wrapElement=function(e){return e},Object.defineProperty(t.prototype,"isRendering",{get:function(){for(var e=0,t=this.getRenderedElements();e<t.length;e++)if(t[e].reactRendering>0)return!0;return!1},enumerable:!1,configurable:!0}),t.prototype.getRenderedElements=function(){return this.getStateElements()},t.prototype.startEndRendering=function(e){for(var t=0,n=this.getRenderedElements();t<n.length;t++){var r=n[t];r.reactRendering||(r.reactRendering=0),r.reactRendering+=e}},t.prototype.canRender=function(){return!0},t.prototype.renderElement=function(){return null},Object.defineProperty(t.prototype,"changedStatePropName",{get:function(){return this.changedStatePropNameValue},enumerable:!1,configurable:!0}),t.prototype.makeBaseElementsReact=function(){for(var e=this.getStateElements(),t=0;t<e.length;t++)this.makeBaseElementReact(e[t])},t.prototype.unMakeBaseElementsReact=function(){for(var e=this.getStateElements(),t=0;t<e.length;t++)this.unMakeBaseElementReact(e[t])},t.prototype.getStateElements=function(){var e=this.getStateElement();return e?[e]:[]},t.prototype.getStateElement=function(){return null},Object.defineProperty(t.prototype,"isDisplayMode",{get:function(){return this.props.isDisplayMode||!1},enumerable:!1,configurable:!0}),t.prototype.renderLocString=function(e,n,r){return void 0===n&&(n=null),t.renderLocString(e,n,r)},t.prototype.canMakeReact=function(e){return!!e&&!!e.iteratePropertiesHash},t.prototype.makeBaseElementReact=function(e){var t=this;this.canMakeReact(e)&&(e.iteratePropertiesHash((function(e,n){if(t.canUsePropInState(n)){var r=e[n];Array.isArray(r)&&(r.onArrayChanged=function(e){t.isRendering||(t.changedStatePropNameValue=n,t.setState((function(e){var t={};return t[n]=r,t})))})}})),e.setPropertyValueCoreHandler=function(e,n,r){if(e[n]!==r){if(e[n]=r,!t.canUsePropInState(n))return;if(t.isRendering)return;t.changedStatePropNameValue=n,t.setState((function(e){var t={};return t[n]=r,t}))}})},t.prototype.canUsePropInState=function(e){return!0},t.prototype.unMakeBaseElementReact=function(e){this.canMakeReact(e)&&(e.setPropertyValueCoreHandler=void 0,e.iteratePropertiesHash((function(e,t){var n=e[t];Array.isArray(n)&&(n.onArrayChanged=function(){})})))},t}(o.Component),c=function(e){function t(t){return e.call(this,t)||this}return l(t,e),Object.defineProperty(t.prototype,"cssClasses",{get:function(){return this.props.cssClasses},enumerable:!1,configurable:!0}),t}(u),p=function(e){function t(t){return e.call(this,t)||this}return l(t,e),t.prototype.componentDidUpdate=function(t,n){e.prototype.componentDidUpdate.call(this,t,n),this.updateDomElement()},t.prototype.componentDidMount=function(){e.prototype.componentDidMount.call(this),this.updateDomElement()},t.prototype.componentWillUnmount=function(){if(e.prototype.componentWillUnmount.call(this),this.questionBase){var t=this.control;this.questionBase.beforeDestroyQuestionElement(t),t&&t.removeAttribute("data-rendered")}},t.prototype.updateDomElement=function(){var e=this.control;e&&"r"!==e.getAttribute("data-rendered")&&(e.setAttribute("data-rendered","r"),this.questionBase.afterRenderQuestionElement(e))},Object.defineProperty(t.prototype,"questionBase",{get:function(){return this.props.question},enumerable:!1,configurable:!0}),t.prototype.getRenderedElements=function(){return[this.questionBase]},Object.defineProperty(t.prototype,"creator",{get:function(){return this.props.creator},enumerable:!1,configurable:!0}),t.prototype.canRender=function(){return!!this.questionBase&&!!this.creator},t.prototype.shouldComponentUpdate=function(t,n){return!(!e.prototype.shouldComponentUpdate.call(this,t,n)||this.questionBase.customWidget&&!this.questionBase.customWidgetData.isNeedRender&&!this.questionBase.customWidget.widgetJson.isDefaultRender&&!this.questionBase.customWidget.widgetJson.render)},Object.defineProperty(t.prototype,"isDisplayMode",{get:function(){return this.props.isDisplayMode||!!this.questionBase&&this.questionBase.isInputReadOnly||!1},enumerable:!1,configurable:!0}),t.prototype.wrapCell=function(e,t,n){if(!n)return t;var r=this.questionBase.survey,o=null;return r&&(o=a.ReactSurveyElementsWrapper.wrapMatrixCell(r,t,e,n)),null!=o?o:t},t.prototype.setControl=function(e){e&&(this.control=e)},t}(u),d=function(e){function t(t){var n=e.call(this,t)||this;return n.updateValueOnEvent=function(e){i.Helpers.isTwoValueEquals(n.questionBase.value,e.target.value,!1,!0,!1)||n.setValueCore(e.target.value)},n.updateValueOnEvent=n.updateValueOnEvent.bind(n),n}return l(t,e),Object.defineProperty(t.prototype,"question",{get:function(){return this.questionBase},enumerable:!1,configurable:!0}),t.prototype.setValueCore=function(e){this.questionBase.value=e},t.prototype.getValueCore=function(){return this.questionBase.value},t.prototype.updateDomElement=function(){if(this.control){var t=this.control,n=this.getValueCore();i.Helpers.isTwoValueEquals(n,t.value,!1,!0,!1)||(t.value=this.getValue(n))}e.prototype.updateDomElement.call(this)},t.prototype.getValue=function(e){return i.Helpers.isValueEmpty(e)?"":e},t}(p)},"./src/react/reactquestion_empty.tsx":function(e,t,n){"use strict";n.r(t),n.d(t,"SurveyQuestionEmpty",(function(){return l}));var r,o=n("react"),i=n("./src/react/reactquestion_element.tsx"),s=n("./src/react/reactquestion_factory.tsx"),a=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),l=function(e){function t(t){var n=e.call(this,t)||this;return n.state={value:n.question.value},n}return a(t,e),Object.defineProperty(t.prototype,"question",{get:function(){return this.questionBase},enumerable:!1,configurable:!0}),t.prototype.renderElement=function(){return o.createElement("div",null)},t}(i.SurveyQuestionElementBase);s.ReactQuestionFactory.Instance.registerQuestion("empty",(function(e){return o.createElement(l,e)}))},"./src/react/reactquestion_expression.tsx":function(e,t,n){"use strict";n.r(t),n.d(t,"SurveyQuestionExpression",(function(){return l}));var r,o=n("react"),i=n("./src/react/reactquestion_element.tsx"),s=n("./src/react/reactquestion_factory.tsx"),a=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),l=function(e){function t(t){return e.call(this,t)||this}return a(t,e),Object.defineProperty(t.prototype,"question",{get:function(){return this.questionBase},enumerable:!1,configurable:!0}),t.prototype.renderElement=function(){var e=this,t=this.question.cssClasses;return o.createElement("div",{id:this.question.inputId,className:t.root,ref:function(t){return e.setControl(t)}},this.question.formatedValue)},t}(i.SurveyQuestionElementBase);s.ReactQuestionFactory.Instance.registerQuestion("expression",(function(e){return o.createElement(l,e)}))},"./src/react/reactquestion_factory.tsx":function(e,t,n){"use strict";n.r(t),n.d(t,"ReactQuestionFactory",(function(){return r}));var r=function(){function e(){this.creatorHash={}}return e.prototype.registerQuestion=function(e,t){this.creatorHash[e]=t},e.prototype.getAllTypes=function(){var e=new Array;for(var t in this.creatorHash)e.push(t);return e.sort()},e.prototype.createQuestion=function(e,t){var n=this.creatorHash[e];return null==n?null:n(t)},e.Instance=new e,e}()},"./src/react/reactquestion_file.tsx":function(e,t,n){"use strict";n.r(t),n.d(t,"SurveyQuestionFile",(function(){return p}));var r,o=n("react"),i=n("./src/react/components/action-bar/action-bar.tsx"),s=n("./src/react/components/svg-icon/svg-icon.tsx"),a=n("./src/react/reactquestion_element.tsx"),l=n("./src/react/reactquestion_factory.tsx"),u=n("./src/react/reactSurvey.tsx"),c=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),p=function(e){function t(t){return e.call(this,t)||this}return c(t,e),Object.defineProperty(t.prototype,"question",{get:function(){return this.questionBase},enumerable:!1,configurable:!0}),t.prototype.renderElement=function(){var e,t=this,n=this.renderPreview(),r=this.renderFileDecorator(),s=this.renderClearButton(this.question.showRemoveButton),a=this.renderClearButton(this.question.showRemoveButtonBottom),l=this.question.mobileFileNavigatorVisible?o.createElement(i.SurveyActionBar,{model:this.question.mobileFileNavigator}):null;return e=this.isDisplayMode?o.createElement("input",{type:"file",disabled:this.isDisplayMode,className:this.isDisplayMode?this.question.getReadOnlyFileCss():this.question.cssClasses.fileInput,id:this.question.inputId,ref:function(e){return t.setControl(e)},style:this.isDisplayMode?{color:"transparent"}:{},onChange:this.isDisplayMode?function(){}:this.question.doChange,multiple:this.question.allowMultiple,placeholder:this.question.title,accept:this.question.acceptedTypes}):o.createElement("input",{type:"file",disabled:this.isDisplayMode,tabIndex:-1,className:this.isDisplayMode?this.question.getReadOnlyFileCss():this.question.cssClasses.fileInput,id:this.question.inputId,ref:function(e){return t.setControl(e)},style:this.isDisplayMode?{color:"transparent"}:{},onChange:this.isDisplayMode?function(){}:this.question.doChange,"aria-required":this.question.ariaRequired,"aria-label":this.question.ariaLabel,"aria-invalid":this.question.ariaInvalid,"aria-describedby":this.question.ariaDescribedBy,multiple:this.question.allowMultiple,title:this.question.inputTitle,accept:this.question.acceptedTypes,capture:this.question.renderCapture}),o.createElement("div",{className:this.question.fileRootCss},e,o.createElement("div",{className:this.question.cssClasses.dragArea,onDrop:this.question.onDrop,onDragOver:this.question.onDragOver,onDragLeave:this.question.onDragLeave,onDragEnter:this.question.onDragEnter},r,s,n,a,l))},t.prototype.renderFileDecorator=function(){this.question.cssClasses;var e,t=null;return e=this.question.isReadOnly?null:Object(u.attachKey2click)(o.createElement("label",{role:"button",tabIndex:0,className:this.question.getChooseFileCss(),htmlFor:this.question.inputId,"aria-label":this.question.chooseButtonText},o.createElement("span",null,this.question.chooseButtonText),this.question.cssClasses.chooseFileIconId?o.createElement(s.SvgIcon,{title:this.question.chooseButtonText,iconName:this.question.cssClasses.chooseFileIconId,size:"auto"}):null)),this.question.isEmpty()&&(t=o.createElement("span",{className:this.question.cssClasses.noFileChosen},this.question.noFileChosenCaption)),o.createElement("div",{className:this.question.getFileDecoratorCss()},o.createElement("span",{className:this.question.cssClasses.dragAreaPlaceholder},this.question.dragAreaPlaceholder),o.createElement("div",{className:this.question.cssClasses.wrapper},e,t))},t.prototype.renderClearButton=function(e){return e?o.createElement("button",{type:"button",onClick:this.question.doClean,className:e},o.createElement("span",null,this.question.clearButtonCaption),this.question.cssClasses.removeButtonIconId?o.createElement(s.SvgIcon,{iconName:this.question.cssClasses.removeButtonIconId,size:"auto",title:this.question.clearButtonCaption}):null):null},t.prototype.renderFileSign=function(e,t){var n=this;return e&&t.name?o.createElement("div",{className:e},o.createElement("a",{href:t.content,onClick:function(e){n.question.doDownloadFile(e,t)},title:t.name,download:t.name,style:{width:this.question.imageWidth}},t.name)):null},t.prototype.renderPreview=function(){var e=this;if(!this.question.previewValue||!this.question.previewValue.length)return null;var t=this.question.previewValue.map((function(t,n){return t?o.createElement("span",{key:e.question.inputId+"_"+n,className:e.question.cssClasses.preview,style:{display:e.question.isPreviewVisible(n)?void 0:"none"}},e.renderFileSign(e.question.cssClasses.fileSign,t),o.createElement("div",{className:e.question.cssClasses.imageWrapper},e.question.canPreviewImage(t)?o.createElement("img",{src:t.content,style:{height:e.question.imageHeight,width:e.question.imageWidth},alt:"File preview"}):e.question.cssClasses.defaultImage?o.createElement(s.SvgIcon,{iconName:e.question.cssClasses.defaultImageIconId,size:"auto",className:e.question.cssClasses.defaultImage}):null,t.name&&!e.question.isReadOnly?o.createElement("div",{className:e.question.cssClasses.removeFileButton,onClick:function(){return e.question.doRemoveFile(t)}},o.createElement("span",{className:e.question.cssClasses.removeFile},e.question.removeFileCaption),e.question.cssClasses.removeFileSvgIconId?o.createElement(s.SvgIcon,{title:e.question.removeFileCaption,iconName:e.question.cssClasses.removeFileSvgIconId,size:"auto",className:e.question.cssClasses.removeFileSvg}):null):null),e.renderFileSign(e.question.cssClasses.fileSignBottom,t)):null}));return o.createElement("div",{className:this.question.cssClasses.fileList||void 0},t)},t}(a.SurveyQuestionElementBase);l.ReactQuestionFactory.Instance.registerQuestion("file",(function(e){return o.createElement(p,e)}))},"./src/react/reactquestion_html.tsx":function(e,t,n){"use strict";n.r(t),n.d(t,"SurveyQuestionHtml",(function(){return l}));var r,o=n("react"),i=n("./src/react/reactquestion_element.tsx"),s=n("./src/react/reactquestion_factory.tsx"),a=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),l=function(e){function t(t){return e.call(this,t)||this}return a(t,e),Object.defineProperty(t.prototype,"question",{get:function(){return this.questionBase},enumerable:!1,configurable:!0}),t.prototype.componentDidMount=function(){this.reactOnStrChanged()},t.prototype.componentWillUnmount=function(){this.question.locHtml.onChanged=function(){}},t.prototype.componentDidUpdate=function(e,t){this.reactOnStrChanged()},t.prototype.reactOnStrChanged=function(){var e=this;this.question.locHtml.onChanged=function(){e.setState({changed:e.state&&e.state.changed?e.state.changed+1:1})}},t.prototype.canRender=function(){return e.prototype.canRender.call(this)&&!!this.question.html},t.prototype.renderElement=function(){var e={__html:this.question.locHtml.renderedHtml};return o.createElement("div",{className:this.question.renderCssRoot,dangerouslySetInnerHTML:e})},t}(i.SurveyQuestionElementBase);s.ReactQuestionFactory.Instance.registerQuestion("html",(function(e){return o.createElement(l,e)}))},"./src/react/reactquestion_matrix.tsx":function(e,t,n){"use strict";n.r(t),n.d(t,"SurveyQuestionMatrix",(function(){return u})),n.d(t,"SurveyQuestionMatrixRow",(function(){return c}));var r,o=n("react"),i=n("./src/react/reactquestion_element.tsx"),s=n("./src/react/reactquestion_factory.tsx"),a=n("./src/react/reactsurveymodel.tsx"),l=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),u=function(e){function t(t){var n=e.call(this,t)||this;return n.state={rowsChanged:0},n}return l(t,e),Object.defineProperty(t.prototype,"question",{get:function(){return this.questionBase},enumerable:!1,configurable:!0}),t.prototype.componentDidMount=function(){if(e.prototype.componentDidMount.call(this),this.question){var t=this;this.question.visibleRowsChangedCallback=function(){t.setState({rowsChanged:t.state.rowsChanged+1})}}},t.prototype.componentWillUnmount=function(){e.prototype.componentWillUnmount.call(this),this.question&&(this.question.visibleRowsChangedCallback=null)},t.prototype.renderElement=function(){for(var e=this,t=this.question.cssClasses,n=this.question.hasRows?o.createElement("td",null):null,r=[],i=0;i<this.question.visibleColumns.length;i++){var s=this.question.visibleColumns[i],a="column"+i,l=this.renderLocString(s.locText),u={};this.question.columnMinWidth&&(u.minWidth=this.question.columnMinWidth,u.width=this.question.columnMinWidth),r.push(o.createElement("th",{className:this.question.cssClasses.headerCell,style:u,key:a},this.wrapCell({column:s},l,"column-header")))}var p=[],d=this.question.visibleRows;for(i=0;i<d.length;i++){var h=d[i];a="row-"+h.name+"-"+i,p.push(o.createElement(c,{key:a,question:this.question,cssClasses:t,isDisplayMode:this.isDisplayMode,row:h,isFirst:0==i}))}var f=this.question.showHeader?o.createElement("thead",null,o.createElement("tr",null,n,r)):null;return o.createElement("div",{className:t.tableWrapper,ref:function(t){return e.setControl(t)}},o.createElement("fieldset",null,o.createElement("legend",{"aria-label":this.question.locTitle.renderedHtml}),o.createElement("table",{className:this.question.getTableCss()},f,o.createElement("tbody",null,p))))},t}(i.SurveyQuestionElementBase),c=function(e){function t(t){var n=e.call(this,t)||this;return n.handleOnChange=n.handleOnChange.bind(n),n.handleOnMouseDown=n.handleOnMouseDown.bind(n),n}return l(t,e),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.handleOnChange=function(e){this.row.value=e.target.value,this.setState({value:this.row.value})},t.prototype.handleOnMouseDown=function(e){this.question.onMouseDown()},t.prototype.wrapCell=function(e,t,n){if(!n)return t;var r=this.question.survey,o=null;return r&&(o=a.ReactSurveyElementsWrapper.wrapMatrixCell(r,t,e,n)),null!=o?o:t},t.prototype.canRender=function(){return!!this.row},t.prototype.renderElement=function(){var e=null;if(this.question.hasRows){var t=this.renderLocString(this.row.locText),n={};this.question.rowTitleWidth&&(n.minWidth=this.question.rowTitleWidth,n.width=this.question.rowTitleWidth),e=o.createElement("td",{style:n,className:this.question.cssClasses.rowTextCell},this.wrapCell({row:this.row},t,"row-header"))}var r=this.generateTds();return o.createElement("tr",{className:this.row.rowClasses||void 0},e,r)},t.prototype.generateTds=function(){for(var e=this,t=[],n=this.row,r=0;r<this.question.visibleColumns.length;r++){var i=null,s=this.question.visibleColumns[r],a="value"+r,l=n.value==s.value,u=this.question.getItemClass(n,s),c=this.question.inputId+"_"+n.name+"_"+r;if(this.question.hasCellText){var p=this.question.isInputReadOnly?null:function(t){return function(){return e.cellClick(n,t)}};i=o.createElement("td",{key:a,className:u,onClick:p?p(s):function(){}},this.renderLocString(this.question.getCellDisplayLocText(n.name,s)))}else i=o.createElement("td",{key:a,"data-responsive-title":s.locText.renderedHtml,className:this.question.cssClasses.cell},o.createElement("label",{onMouseDown:this.handleOnMouseDown,className:u},o.createElement("input",{id:c,type:"radio",className:this.cssClasses.itemValue,name:n.fullName,value:s.value,disabled:this.isDisplayMode,checked:l,onChange:this.handleOnChange,"aria-required":this.question.ariaRequired,"aria-label":s.locText.renderedHtml,"aria-invalid":this.question.ariaInvalid,"aria-describedby":this.question.ariaDescribedBy}),o.createElement("span",{className:this.question.cssClasses.materialDecorator},this.question.itemSvgIcon?o.createElement("svg",{className:this.cssClasses.itemDecorator},o.createElement("use",{xlinkHref:this.question.itemSvgIcon})):null),o.createElement("span",{style:this.question.isMobile?void 0:{display:"none"},className:this.question.cssClasses.cellResponsiveTitle},this.renderLocString(s.locText))));t.push(i)}return t},t.prototype.cellClick=function(e,t){e.value=t.value,this.setState({value:this.row.value})},t}(i.ReactSurveyElement);s.ReactQuestionFactory.Instance.registerQuestion("matrix",(function(e){return o.createElement(u,e)}))},"./src/react/reactquestion_matrixdropdown.tsx":function(e,t,n){"use strict";n.r(t),n.d(t,"SurveyQuestionMatrixDropdown",(function(){return l}));var r,o=n("react"),i=n("./src/react/reactquestion_matrixdropdownbase.tsx"),s=n("./src/react/reactquestion_factory.tsx"),a=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),l=function(e){function t(t){return e.call(this,t)||this}return a(t,e),t}(i.SurveyQuestionMatrixDropdownBase);s.ReactQuestionFactory.Instance.registerQuestion("matrixdropdown",(function(e){return o.createElement(l,e)}))},"./src/react/reactquestion_matrixdropdownbase.tsx":function(e,t,n){"use strict";n.r(t),n.d(t,"SurveyQuestionMatrixDropdownBase",(function(){return m})),n.d(t,"SurveyQuestionMatrixDropdownCell",(function(){return b})),n.d(t,"SurveyQuestionMatrixDropdownErrorCell",(function(){return C}));var r,o=n("react"),i=n("./src/react/reactquestion_element.tsx"),s=n("./src/react/reactquestion.tsx"),a=n("./src/react/reactquestion_checkbox.tsx"),l=n("./src/react/reactquestion_radiogroup.tsx"),u=n("./src/react/panel.tsx"),c=n("./src/react/components/action-bar/action-bar.tsx"),p=n("./src/react/components/matrix/row.tsx"),d=n("./src/react/components/matrix-actions/drag-drop-icon/drag-drop-icon.tsx"),h=n("./src/react/reactquestion_comment.tsx"),f=n("./src/react/element-factory.tsx"),g=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),m=function(e){function t(t){var n=e.call(this,t)||this;return n.question.renderedTable,n.state=n.getState(),n}return g(t,e),Object.defineProperty(t.prototype,"question",{get:function(){return this.questionBase},enumerable:!1,configurable:!0}),t.prototype.getState=function(e){return void 0===e&&(e=null),{rowCounter:e?e.rowCounter+1:0}},t.prototype.updateStateOnCallback=function(){this.isRendering||this.setState(this.getState(this.state))},t.prototype.componentDidMount=function(){var t=this;e.prototype.componentDidMount.call(this),this.question.visibleRowsChangedCallback=function(){t.updateStateOnCallback()},this.question.onRenderedTableResetCallback=function(){t.question.renderedTable.renderedRowsChangedCallback=function(){t.updateStateOnCallback()},t.updateStateOnCallback()},this.question.renderedTable.renderedRowsChangedCallback=function(){t.updateStateOnCallback()}},t.prototype.componentWillUnmount=function(){e.prototype.componentWillUnmount.call(this),this.question.visibleRowsChangedCallback=function(){},this.question.onRenderedTableResetCallback=function(){},this.question.renderedTable.renderedRowsChangedCallback=function(){}},t.prototype.renderElement=function(){return this.renderTableDiv()},t.prototype.renderTableDiv=function(){var e=this,t=this.renderHeader(),n=this.renderFooter(),r=this.renderRows(),i=this.question.showHorizontalScroll?{overflowX:"scroll"}:{};return o.createElement("div",{style:i,className:this.question.cssClasses.tableWrapper,ref:function(t){return e.setControl(t)}},o.createElement("table",{className:this.question.getTableCss()},t,r,n))},t.prototype.renderHeader=function(){var e=this.question.renderedTable;if(!e.showHeader)return null;for(var t=[],n=e.headerRow.cells,r=0;r<n.length;r++){var i=n[r],s="column"+r,a={};i.width&&(a.width=i.width),i.minWidth&&(a.minWidth=i.minWidth);var l=this.renderCellContent(i,"column-header",{}),u=i.hasTitle?o.createElement("th",{className:i.className,key:s,style:a}," ",l," "):o.createElement("td",{className:i.className,key:s,style:a});t.push(u)}return o.createElement("thead",null,o.createElement("tr",null,t))},t.prototype.renderFooter=function(){var e=this.question.renderedTable;if(!e.showFooter)return null;var t=this.renderRow("footer",e.footerRow,this.question.cssClasses,"row-footer");return o.createElement("tfoot",null,t)},t.prototype.renderRows=function(){for(var e=this.question.cssClasses,t=[],n=this.question.renderedTable.rows,r=0;r<n.length;r++)t.push(this.renderRow(n[r].id,n[r],e));return o.createElement("tbody",null,t)},t.prototype.renderRow=function(e,t,n,r){for(var i=[],s=t.cells,a=0;a<s.length;a++)i.push(this.renderCell(s[a],a,n,r));var l="row"+e;return o.createElement(o.Fragment,{key:l},o.createElement(p.MatrixRow,{model:t,parentMatrix:this.question},i))},t.prototype.renderCell=function(e,t,n,r){var i="cell"+t;if(e.hasQuestion)return o.createElement(b,{key:i,cssClasses:n,cell:e,creator:this.creator,reason:r});var s=r;s||(s=e.hasTitle?"row-header":"");var a=this.renderCellContent(e,s,n),l=null;return(e.width||e.minWidth)&&(l={},e.width&&(l.width=e.width),e.minWidth&&(l.minWidth=e.minWidth)),o.createElement("td",{className:e.className,key:i,style:l,colSpan:e.colSpans,"data-responsive-title":e.headers,title:e.getTitle()},a)},t.prototype.renderCellContent=function(e,t,n){var r=null,i=null;if((e.width||e.minWidth)&&(i={},e.width&&(i.width=e.width),e.minWidth&&(i.minWidth=e.minWidth)),e.hasTitle){t="row-header";var s=this.renderLocString(e.locTitle),a=e.column?o.createElement(v,{column:e.column,question:this.question}):null;r=o.createElement(o.Fragment,null,s,a)}if(e.isDragHandlerCell&&(r=o.createElement(o.Fragment,null,o.createElement(d.SurveyQuestionMatrixDynamicDragDropIcon,{item:{data:{row:e.row,question:this.question}}}))),e.isActionsCell&&(r=f.ReactElementFactory.Instance.createElement("sv-matrixdynamic-actions-cell",{question:this.question,cssClasses:n,cell:e,model:e.item.getData()})),e.hasPanel&&(r=o.createElement(u.SurveyPanel,{key:e.panel.id,element:e.panel,survey:this.question.survey,cssClasses:n,isDisplayMode:this.isDisplayMode,creator:this.creator})),e.isErrorsCell&&e.isErrorsCell)return o.createElement(C,{cell:e,creator:this.creator});if(!r)return null;var l=o.createElement(o.Fragment,null,r);return this.wrapCell(e,l,t)},t}(i.SurveyQuestionElementBase),y=function(e){function t(t){return e.call(this,t)||this}return g(t,e),Object.defineProperty(t.prototype,"model",{get:function(){return this.props.model},enumerable:!1,configurable:!0}),t.prototype.renderElement=function(){return o.createElement(c.SurveyActionBar,{model:this.model,handleClick:!1})},t}(i.ReactSurveyElement);f.ReactElementFactory.Instance.registerElement("sv-matrixdynamic-actions-cell",(function(e){return o.createElement(y,e)}));var v=function(e){function t(t){return e.call(this,t)||this}return g(t,e),Object.defineProperty(t.prototype,"column",{get:function(){return this.props.column},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"question",{get:function(){return this.props.question},enumerable:!1,configurable:!0}),t.prototype.getStateElement=function(){return this.column},t.prototype.renderElement=function(){return this.column.isRenderedRequired?o.createElement(o.Fragment,null,o.createElement("span",null," "),o.createElement("span",{className:this.question.cssClasses.cellRequiredText},this.column.requiredText)):null},t}(i.ReactSurveyElement),b=function(e){function t(t){return e.call(this,t)||this}return g(t,e),Object.defineProperty(t.prototype,"cell",{get:function(){return this.props.cell},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"itemCss",{get:function(){return this.cell?this.cell.className:""},enumerable:!1,configurable:!0}),t.prototype.getQuestion=function(){return e.prototype.getQuestion.call(this)||(this.cell?this.cell.question:null)},t.prototype.doAfterRender=function(){var e=this.cellRef.current;if(e&&this.cell&&this.question&&this.question.survey&&"r"!==e.getAttribute("data-rendered")){e.setAttribute("data-rendered","r");var t={cell:this.cell,cellQuestion:this.question,htmlElement:e,row:this.cell.row,column:this.cell.cell.column};this.question.survey.matrixAfterCellRender(this.question,t)}},t.prototype.getShowErrors=function(){return this.question.isVisible&&(!this.cell.isChoice||this.cell.isFirstChoice)},t.prototype.getCellStyle=function(){var t=e.prototype.getCellStyle.call(this);return(this.cell.width||this.cell.minWidth)&&(t||(t={}),this.cell.width&&(t.width=this.cell.width),this.cell.minWidth&&(t.minWidth=this.cell.minWidth)),t},t.prototype.getHeaderText=function(){return this.cell.headers},t.prototype.renderQuestion=function(){return this.cell.isChoice?this.cell.isOtherChoice?this.renderOtherComment():this.cell.isCheckbox?this.renderCellCheckboxButton():this.renderCellRadiogroupButton():s.SurveyQuestion.renderQuestionBody(this.creator,this.question)},t.prototype.renderOtherComment=function(){var e=this.cell.question,t=e.cssClasses||{};return o.createElement(h.SurveyQuestionOtherValueItem,{question:e,cssClasses:t,otherCss:t.other,isDisplayMode:e.isInputReadOnly})},t.prototype.renderCellCheckboxButton=function(){var e=this.cell.question.id+"item"+this.cell.choiceIndex;return o.createElement(a.SurveyQuestionCheckboxItem,{key:e,question:this.cell.question,cssClasses:this.cell.question.cssClasses,isDisplayMode:this.cell.question.isInputReadOnly,item:this.cell.item,isFirst:this.cell.isFirstChoice,index:this.cell.choiceIndex.toString(),hideCaption:!0})},t.prototype.renderCellRadiogroupButton=function(){var e=this.cell.question.id+"item"+this.cell.choiceIndex;return o.createElement(l.SurveyQuestionRadioItem,{key:e,question:this.cell.question,cssClasses:this.cell.question.cssClasses,isDisplayMode:this.cell.question.isInputReadOnly,item:this.cell.item,index:this.cell.choiceIndex.toString(),isChecked:this.cell.question.value===this.cell.item.value,isDisabled:this.cell.question.isReadOnly||!this.cell.item.isEnabled,hideCaption:!0})},t}(s.SurveyQuestionAndErrorsCell),C=function(e){function t(t){var n=e.call(this,t)||this;return n.state={changed:0},n.cell&&n.registerCallback(n.cell),n}return g(t,e),Object.defineProperty(t.prototype,"cell",{get:function(){return this.props.cell},enumerable:!1,configurable:!0}),t.prototype.update=function(){this.setState({changed:this.state.changed+1})},t.prototype.registerCallback=function(e){var t=this;e.question.registerFunctionOnPropertyValueChanged("errors",(function(){t.update()}),"__reactSubscription")},t.prototype.unRegisterCallback=function(e){e.question.unRegisterFunctionOnPropertyValueChanged("errors","__reactSubscription")},t.prototype.componentDidUpdate=function(e){e.cell&&e.cell!==this.cell&&this.unRegisterCallback(e.cell),this.cell&&this.registerCallback(this.cell)},t.prototype.componentWillUnmount=function(){this.cell&&this.unRegisterCallback(this.cell)},t.prototype.render=function(){return o.createElement(s.SurveyElementErrors,{element:this.cell.question,creator:this.props.creator,cssClasses:this.cell.question.cssClasses})},t}(o.Component)},"./src/react/reactquestion_matrixdynamic.tsx":function(e,t,n){"use strict";n.r(t),n.d(t,"SurveyQuestionMatrixDynamic",(function(){return c})),n.d(t,"SurveyQuestionMatrixDynamicAddButton",(function(){return p}));var r,o=n("react"),i=n("./src/react/reactquestion_factory.tsx"),s=n("./src/react/reactquestion_matrixdropdownbase.tsx"),a=n("./src/react/element-factory.tsx"),l=n("./src/react/reactquestion_element.tsx"),u=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),c=function(e){function t(t){var n=e.call(this,t)||this;return n.handleOnRowAddClick=n.handleOnRowAddClick.bind(n),n}return u(t,e),Object.defineProperty(t.prototype,"matrix",{get:function(){return this.questionBase},enumerable:!1,configurable:!0}),t.prototype.handleOnRowAddClick=function(e){this.matrix.addRowUI()},t.prototype.renderElement=function(){var e=this.question.cssClasses,t=this.question.renderedTable.showTable?this.renderTableDiv():this.renderNoRowsContent(e);return o.createElement("div",null,this.renderAddRowButtonOnTop(e),t,this.renderAddRowButtonOnBottom(e))},t.prototype.renderAddRowButtonOnTop=function(e){return this.matrix.renderedTable.showAddRowOnTop?this.renderAddRowButton(e):null},t.prototype.renderAddRowButtonOnBottom=function(e){return this.matrix.renderedTable.showAddRowOnBottom?this.renderAddRowButton(e):null},t.prototype.renderNoRowsContent=function(e){var t=this.renderLocString(this.matrix.locEmptyRowsText),n=o.createElement("div",{className:e.emptyRowsText},t),r=this.renderAddRowButton(e,!0);return o.createElement("div",{className:e.emptyRowsSection},n,r)},t.prototype.renderAddRowButton=function(e,t){return void 0===t&&(t=!1),a.ReactElementFactory.Instance.createElement("sv-matrixdynamic-add-btn",{question:this.question,cssClasses:e,isEmptySection:t})},t}(s.SurveyQuestionMatrixDropdownBase);i.ReactQuestionFactory.Instance.registerQuestion("matrixdynamic",(function(e){return o.createElement(c,e)}));var p=function(e){function t(t){var n=e.call(this,t)||this;return n.handleOnRowAddClick=n.handleOnRowAddClick.bind(n),n}return u(t,e),Object.defineProperty(t.prototype,"matrix",{get:function(){return this.props.question},enumerable:!1,configurable:!0}),t.prototype.handleOnRowAddClick=function(e){this.matrix.addRowUI()},t.prototype.renderElement=function(){var e=this.renderLocString(this.matrix.locAddRowText),t=o.createElement("button",{className:this.matrix.getAddRowButtonCss(this.props.isEmptySection),type:"button",disabled:this.matrix.isInputReadOnly,onClick:this.matrix.isDesignMode?void 0:this.handleOnRowAddClick},e,o.createElement("span",{className:this.props.cssClasses.iconAdd}));return this.props.isEmptySection?t:o.createElement("div",{className:this.props.cssClasses.footer},t)},t}(l.ReactSurveyElement);a.ReactElementFactory.Instance.registerElement("sv-matrixdynamic-add-btn",(function(e){return o.createElement(p,e)}))},"./src/react/reactquestion_multipletext.tsx":function(e,t,n){"use strict";n.r(t),n.d(t,"SurveyQuestionMultipleText",(function(){return c})),n.d(t,"SurveyMultipleTextItem",(function(){return p})),n.d(t,"SurveyMultipleTextItemEditor",(function(){return d}));var r,o=n("react"),i=n("./src/react/reactquestion_element.tsx"),s=n("./src/react/reactquestion.tsx"),a=n("./src/react/reactquestion_factory.tsx"),l=n("./src/react/components/title/title-content.tsx"),u=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),c=function(e){function t(t){return e.call(this,t)||this}return u(t,e),Object.defineProperty(t.prototype,"question",{get:function(){return this.questionBase},enumerable:!1,configurable:!0}),t.prototype.renderElement=function(){for(var e=this.question.cssClasses,t=this.question.getRows(),n=[],r=0;r<t.length;r++)n.push(this.renderRow(r,t[r],e));return o.createElement("table",{className:e.root},o.createElement("tbody",null,n))},t.prototype.renderRow=function(e,t,n){for(var r="item"+e,i=[],s=0;s<t.length;s++){var a=t[s];i.push(o.createElement("td",{key:"item"+s,className:this.question.cssClasses.cell},o.createElement(p,{question:this.question,item:a,creator:this.creator,cssClasses:n})))}return o.createElement("tr",{key:r,className:n.row},i)},t}(i.SurveyQuestionElementBase),p=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return u(t,e),Object.defineProperty(t.prototype,"question",{get:function(){return this.props.question},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"item",{get:function(){return this.props.item},enumerable:!1,configurable:!0}),t.prototype.getStateElements=function(){return[this.item,this.item.editor]},Object.defineProperty(t.prototype,"creator",{get:function(){return this.props.creator},enumerable:!1,configurable:!0}),t.prototype.renderElement=function(){var e=this.item,t=this.cssClasses;return o.createElement("label",{className:this.question.getItemLabelCss(e)},o.createElement("span",{className:t.itemTitle},o.createElement(l.TitleContent,{element:e.editor,cssClasses:e.editor.cssClasses})),o.createElement(d,{cssClasses:t,itemCss:this.question.getItemCss(),question:e.editor,creator:this.creator}),this.renderItemTooltipError(e,t))},t.prototype.renderItemTooltipError=function(e,t){return this.item.editor.isErrorsModeTooltip?o.createElement(s.SurveyElementErrors,{element:e.editor,cssClasses:t,creator:this.creator,location:"tooltip"}):null},t}(i.ReactSurveyElement),d=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return u(t,e),t.prototype.renderElement=function(){return o.createElement("div",{className:this.itemCss},this.renderContent())},t}(s.SurveyQuestionAndErrorsWrapped);a.ReactQuestionFactory.Instance.registerQuestion("multipletext",(function(e){return o.createElement(c,e)}))},"./src/react/reactquestion_paneldynamic.tsx":function(e,t,n){"use strict";n.r(t),n.d(t,"SurveyQuestionPanelDynamic",(function(){return f})),n.d(t,"SurveyQuestionPanelDynamicItem",(function(){return g}));var r,o=n("react"),i=n("./src/react/reactquestion_element.tsx"),s=n("./src/react/panel.tsx"),a=n("./src/react/reactquestion_factory.tsx"),l=n("./src/react/components/action-bar/action-bar.tsx"),u=n("./src/react/components/paneldynamic-actions/paneldynamic-next-btn.tsx"),c=n("./src/react/components/paneldynamic-actions/paneldynamic-prev-btn.tsx"),p=n("./src/react/components/paneldynamic-actions/paneldynamic-progress-text.tsx"),d=n("./src/react/element-factory.tsx"),h=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),f=function(e){function t(t){return e.call(this,t)||this}return h(t,e),Object.defineProperty(t.prototype,"question",{get:function(){return this.questionBase},enumerable:!1,configurable:!0}),t.prototype.componentDidMount=function(){e.prototype.componentDidMount.call(this),this.setState({panelCounter:0});var t=this;this.question.panelCountChangedCallback=function(){t.updateQuestionRendering()},this.question.currentIndexChangedCallback=function(){t.updateQuestionRendering()},this.question.renderModeChangedCallback=function(){t.updateQuestionRendering()}},t.prototype.componentWillUnmount=function(){e.prototype.componentWillUnmount.call(this),this.question.panelCountChangedCallback=function(){},this.question.currentIndexChangedCallback=function(){},this.question.renderModeChangedCallback=function(){}},t.prototype.updateQuestionRendering=function(){this.setState({panelCounter:this.state?this.state.panelCounter+1:1})},t.prototype.renderElement=function(){var e=[];if(this.question.isRenderModeList)for(var t=0;t<this.question.panels.length;t++){var n=this.question.panels[t];e.push(o.createElement(g,{key:n.id,element:n,question:this.question,index:t,cssClasses:this.question.cssClasses,isDisplayMode:this.isDisplayMode,creator:this.creator}))}else null!=this.question.currentPanel&&(n=this.question.currentPanel,e.push(o.createElement(g,{key:this.question.currentIndex,element:n,question:this.question,index:this.question.currentIndex,cssClasses:this.question.cssClasses,isDisplayMode:this.isDisplayMode,creator:this.creator})));var r=this.question.isRenderModeList&&this.question.showLegacyNavigation?this.renderAddRowButton():null,i=this.question.isProgressTopShowing?this.renderNavigator():null,s=this.question.isProgressBottomShowing?this.renderNavigator():null,a=this.renderNavigatorV2(),l=this.renderPlaceholder();return o.createElement("div",{className:this.question.cssClasses.root},l,i,e,s,r,a)},t.prototype.renderNavigator=function(){if(!this.question.showLegacyNavigation)return this.question.isRangeShowing&&this.question.isProgressTopShowing?this.renderRange():null;var e=this.question.isRangeShowing?this.renderRange():null,t=this.rendrerPrevButton(),n=this.rendrerNextButton(),r=this.renderAddRowButton(),i=this.question.isProgressTopShowing?this.question.cssClasses.progressTop:this.question.cssClasses.progressBottom;return o.createElement("div",{className:i},o.createElement("div",{style:{clear:"both"}},o.createElement("div",{className:this.question.cssClasses.progressContainer},t,e,n),r,this.renderProgressText()))},t.prototype.renderProgressText=function(){return o.createElement(p.SurveyQuestionPanelDynamicProgressText,{data:{question:this.question}})},t.prototype.rendrerPrevButton=function(){return o.createElement(c.SurveyQuestionPanelDynamicPrevButton,{data:{question:this.question}})},t.prototype.rendrerNextButton=function(){return o.createElement(u.SurveyQuestionPanelDynamicNextButton,{data:{question:this.question}})},t.prototype.renderRange=function(){return o.createElement("div",{className:this.question.cssClasses.progress},o.createElement("div",{className:this.question.cssClasses.progressBar,style:{width:this.question.progress},role:"progressbar"}))},t.prototype.renderAddRowButton=function(){return d.ReactElementFactory.Instance.createElement("sv-paneldynamic-add-btn",{data:{question:this.question}})},t.prototype.renderNavigatorV2=function(){if(!this.question.showNavigation)return null;var e=this.question.isRangeShowing&&this.question.isProgressBottomShowing?this.renderRange():null;return o.createElement("div",{className:this.question.cssClasses.footer},o.createElement("hr",{className:this.question.cssClasses.separator}),e,this.question.footerToolbar.visibleActions.length?o.createElement("div",{className:this.question.cssClasses.footerButtonsContainer},o.createElement(l.SurveyActionBar,{model:this.question.footerToolbar})):null)},t.prototype.renderPlaceholder=function(){return this.question.getShowNoEntriesPlaceholder()?o.createElement("div",{className:this.question.cssClasses.noEntriesPlaceholder},o.createElement("span",null,this.renderLocString(this.question.locNoEntriesText)),this.renderAddRowButton()):null},t}(i.SurveyQuestionElementBase),g=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return h(t,e),Object.defineProperty(t.prototype,"question",{get:function(){return this.props.question},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"index",{get:function(){return this.props.index},enumerable:!1,configurable:!0}),t.prototype.getSurvey=function(){return this.question?this.question.survey:null},t.prototype.getCss=function(){var e=this.getSurvey();return e?e.getCss():{}},t.prototype.render=function(){var t=e.prototype.render.call(this),n=this.renderButton(),r=this.question.showSeparator(this.index)?o.createElement("hr",{className:this.question.cssClasses.separator}):null;return o.createElement(o.Fragment,null,o.createElement("div",{className:this.question.getPanelWrapperCss()},t,n),r)},t.prototype.renderButton=function(){return"right"!==this.question.panelRemoveButtonLocation||!this.question.canRemovePanel||this.question.isRenderModeList&&this.panel.isCollapsed?null:d.ReactElementFactory.Instance.createElement("sv-paneldynamic-remove-btn",{data:{question:this.question,panel:this.panel}})},t}(s.SurveyPanel);a.ReactQuestionFactory.Instance.registerQuestion("paneldynamic",(function(e){return o.createElement(f,e)}))},"./src/react/reactquestion_radiogroup.tsx":function(e,t,n){"use strict";n.r(t),n.d(t,"SurveyQuestionRadiogroup",(function(){return p})),n.d(t,"SurveyQuestionRadioItem",(function(){return d}));var r,o=n("react"),i=n("./src/react/reactquestion_element.tsx"),s=n("./src/react/reactquestion_comment.tsx"),a=n("./src/react/reactquestion_factory.tsx"),l=n("./src/react/reactsurveymodel.tsx"),u=n("./src/react/element-factory.tsx"),c=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),p=function(e){function t(t){return e.call(this,t)||this}return c(t,e),Object.defineProperty(t.prototype,"question",{get:function(){return this.questionBase},enumerable:!1,configurable:!0}),t.prototype.renderElement=function(){var e=this,t=this.question.cssClasses,n=null;return this.question.showClearButtonInContent&&(n=o.createElement("div",null,o.createElement("input",{type:"button",className:this.question.cssClasses.clearButton,onClick:function(){return e.question.clearValue()},value:this.question.clearButtonCaption}))),o.createElement("fieldset",{className:this.question.getSelectBaseRootCss(),role:"presentation",ref:function(t){return e.setControl(t)}},this.question.hasColumns?this.getColumnedBody(t):this.getBody(t),this.getFooter(),this.question.isOtherSelected?this.renderOther(t):null,n)},t.prototype.getFooter=function(){var e=this;if(this.question.hasFootItems)return this.question.footItems.map((function(t,n){return e.renderItem("item_f"+n,t,!1,e.question.cssClasses)}))},t.prototype.getColumnedBody=function(e){return o.createElement("div",{className:e.rootMultiColumn},this.getColumns(e))},t.prototype.getColumns=function(e){var t=this,n=this.getStateValue();return this.question.columns.map((function(r,i){var s=r.map((function(r,o){return t.renderItem("item"+i+o,r,n,e,""+i+o)}));return o.createElement("div",{key:"column"+i,className:t.question.getColumnClass(),role:"presentation"},s)}))},t.prototype.getBody=function(e){return this.question.blockedRow?o.createElement("div",{className:e.rootRow},this.getItems(e,this.question.dataChoices)):o.createElement(o.Fragment,null,this.getItems(e,this.question.bodyItems))},t.prototype.getItems=function(e,t){for(var n=[],r=this.getStateValue(),o=0;o<t.length;o++){var i=t[o],s=this.renderItem("item"+o,i,r,e,""+o);n.push(s)}return n},Object.defineProperty(t.prototype,"textStyle",{get:function(){return null},enumerable:!1,configurable:!0}),t.prototype.renderOther=function(e){return o.createElement("div",{className:this.question.getCommentAreaCss(!0)},o.createElement(s.SurveyQuestionOtherValueItem,{question:this.question,otherCss:e.other,cssClasses:e,isDisplayMode:this.isDisplayMode}))},t.prototype.renderItem=function(e,t,n,r,o){var i=u.ReactElementFactory.Instance.createElement(this.question.itemComponent,{key:e,question:this.question,cssClasses:r,isDisplayMode:this.isDisplayMode,item:t,textStyle:this.textStyle,index:o,isChecked:n===t.value}),s=this.question.survey,a=null;return s&&(a=l.ReactSurveyElementsWrapper.wrapItemValue(s,i,this.question,t)),null!=a?a:i},t.prototype.getStateValue=function(){return this.question.isEmpty()?"":this.question.renderedValue},t}(i.SurveyQuestionElementBase),d=function(e){function t(t){var n=e.call(this,t)||this;return n.handleOnChange=n.handleOnChange.bind(n),n.handleOnMouseDown=n.handleOnMouseDown.bind(n),n}return c(t,e),t.prototype.getStateElement=function(){return this.item},Object.defineProperty(t.prototype,"question",{get:function(){return this.props.question},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"item",{get:function(){return this.props.item},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"textStyle",{get:function(){return this.props.textStyle},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"index",{get:function(){return this.props.index},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isChecked",{get:function(){return this.props.isChecked},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hideCaption",{get:function(){return!0===this.props.hideCaption},enumerable:!1,configurable:!0}),t.prototype.shouldComponentUpdate=function(t,n){return!(!e.prototype.shouldComponentUpdate.call(this,t,n)||!this.question||this.question.customWidget&&!this.question.customWidgetData.isNeedRender&&!this.question.customWidget.widgetJson.isDefaultRender&&!this.question.customWidget.widgetJson.render)},t.prototype.handleOnChange=function(e){this.question.clickItemHandler(this.item)},t.prototype.handleOnMouseDown=function(e){this.question.onMouseDown()},t.prototype.canRender=function(){return!!this.question&&!!this.item},t.prototype.renderElement=function(){var e=this.question.getItemClass(this.item),t=this.question.getLabelClass(this.item),n=this.question.getControlLabelClass(this.item),r=this.hideCaption?null:o.createElement("span",{className:n},this.renderLocString(this.item.locText,this.textStyle));return o.createElement("div",{className:e,role:"presentation"},o.createElement("label",{onMouseDown:this.handleOnMouseDown,className:t,"aria-label":this.question.getAriaItemLabel(this.item)},o.createElement("input",{"aria-describedby":this.question.ariaDescribedBy,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),onChange:this.handleOnChange}),this.cssClasses.materialDecorator?o.createElement("span",{className:this.cssClasses.materialDecorator},this.question.itemSvgIcon?o.createElement("svg",{className:this.cssClasses.itemDecorator},o.createElement("use",{xlinkHref:this.question.itemSvgIcon})):null):null,r))},t}(i.ReactSurveyElement);u.ReactElementFactory.Instance.registerElement("survey-radiogroup-item",(function(e){return o.createElement(d,e)})),a.ReactQuestionFactory.Instance.registerQuestion("radiogroup",(function(e){return o.createElement(p,e)}))},"./src/react/reactquestion_ranking.tsx":function(e,t,n){"use strict";n.r(t),n.d(t,"SurveyQuestionRanking",(function(){return u})),n.d(t,"SurveyQuestionRankingItem",(function(){return c}));var r,o=n("react"),i=n("./src/react/reactquestion_element.tsx"),s=n("./src/react/reactquestion_factory.tsx"),a=n("./src/react/reactsurveymodel.tsx"),l=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),u=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return l(t,e),Object.defineProperty(t.prototype,"question",{get:function(){return this.questionBase},enumerable:!1,configurable:!0}),t.prototype.renderElement=function(){var e=this;return this.question.selectToRankEnabled?o.createElement("div",{className:this.question.rootClass,ref:function(t){return e.setControl(t)}},o.createElement("div",{className:this.question.getContainerClasses("from"),"data-ranking":"from-container"},this.getItems(this.question.unRankingChoices,!0),0===this.question.unRankingChoices.length?o.createElement("div",{className:this.question.cssClasses.containerPlaceholder}," ",this.question.selectToRankEmptyRankedAreaText," "):null),o.createElement("div",{className:this.question.cssClasses.containersDivider}),o.createElement("div",{className:this.question.getContainerClasses("to"),"data-ranking":"to-container"},this.getItems(),0===this.question.rankingChoices.length?o.createElement("div",{className:this.question.cssClasses.containerPlaceholder},this.question.selectToRankEmptyUnrankedAreaText):null)):o.createElement("div",{className:this.question.rootClass,ref:function(t){return e.setControl(t)}},this.getItems())},t.prototype.getItems=function(e,t){var n=this;void 0===e&&(e=this.question.rankingChoices);for(var r=[],o=function(o){var s=e[o];r.push(i.renderItem(s,o,(function(e){n.question.handleKeydown.call(n.question,e,s)}),(function(e){e.persist(),n.question.handlePointerDown.call(n.question,e,s,e.currentTarget)}),i.question.cssClasses,i.question.getItemClass(s),i.question,t))},i=this,s=0;s<e.length;s++)o(s);return r},t.prototype.renderItem=function(e,t,n,r,i,s,l,u){var p=e.value+"-"+t+"-item",d=this.renderLocString(e.locText),h=t,f=this.question.getNumberByIndex(t),g=this.question.getItemTabIndex(e),m=o.createElement(c,{key:p,text:d,index:h,indexText:f,itemTabIndex:g,handleKeydown:n,handlePointerDown:r,cssClasses:i,itemClass:s,question:l,unrankedItem:u,item:e}),y=this.question.survey,v=null;return y&&(v=a.ReactSurveyElementsWrapper.wrapItemValue(y,m,this.question,e)),null!=v?v:m},t}(i.SurveyQuestionElementBase),c=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return l(t,e),Object.defineProperty(t.prototype,"text",{get:function(){return this.props.text},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"index",{get:function(){return this.props.index},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"indexText",{get:function(){return this.props.indexText},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"handleKeydown",{get:function(){return this.props.handleKeydown},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"handlePointerDown",{get:function(){return this.props.handlePointerDown},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"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.renderElement=function(){return o.createElement("div",{tabIndex:this.itemTabIndex,className:this.itemClass,onKeyDown:this.handleKeydown,onPointerDown:this.handlePointerDown,"data-sv-drop-target-ranking-item":this.index},o.createElement("div",{tabIndex:-1,style:{outline:"none"}},o.createElement("div",{className:this.cssClasses.itemGhostNode}),o.createElement("div",{className:this.cssClasses.itemContent},o.createElement("div",{className:this.cssClasses.itemIconContainer},o.createElement("svg",{width:"10",height:"16",viewBox:"0 0 10 16",className:this.question.getIconHoverCss(),xmlns:"http://www.w3.org/2000/svg"},o.createElement("path",{d:"M6 2C6 0.9 6.9 0 8 0C9.1 0 10 0.9 10 2C10 3.1 9.1 4 8 4C6.9 4 6 3.1 6 2ZM2 0C0.9 0 0 0.9 0 2C0 3.1 0.9 4 2 4C3.1 4 4 3.1 4 2C4 0.9 3.1 0 2 0ZM8 6C6.9 6 6 6.9 6 8C6 9.1 6.9 10 8 10C9.1 10 10 9.1 10 8C10 6.9 9.1 6 8 6ZM2 6C0.9 6 0 6.9 0 8C0 9.1 0.9 10 2 10C3.1 10 4 9.1 4 8C4 6.9 3.1 6 2 6ZM8 12C6.9 12 6 12.9 6 14C6 15.1 6.9 16 8 16C9.1 16 10 15.1 10 14C10 12.9 9.1 12 8 12ZM2 12C0.9 12 0 12.9 0 14C0 15.1 0.9 16 2 16C3.1 16 4 15.1 4 14C4 12.9 3.1 12 2 12Z"})),o.createElement("svg",{width:"10",height:"24",viewBox:"0 0 10 24",className:this.question.getIconFocusCss(),xmlns:"http://www.w3.org/2000/svg"},o.createElement("path",{d:"M10 5L5 0L0 5H4V9H6V5H10Z"}),o.createElement("path",{d:"M6 19V15H4V19H0L5 24L10 19H6Z"}))),o.createElement("div",{className:this.question.getItemIndexClasses(this.item)},this.unrankedItem?"":this.indexText),o.createElement("div",{className:this.cssClasses.controlLabel},this.text))))},t}(i.ReactSurveyElement);s.ReactQuestionFactory.Instance.registerQuestion("ranking",(function(e){return o.createElement(u,e)}))},"./src/react/reactquestion_rating.tsx":function(e,t,n){"use strict";n.r(t),n.d(t,"SurveyQuestionRating",(function(){return u}));var r,o=n("react"),i=n("./src/react/reactquestion_element.tsx"),s=n("./src/react/reactquestion_factory.tsx"),a=n("./src/react/element-factory.tsx"),l=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),u=function(e){function t(t){var n=e.call(this,t)||this;return n.handleOnClick=n.handleOnClick.bind(n),n}return l(t,e),Object.defineProperty(t.prototype,"question",{get:function(){return this.questionBase},enumerable:!1,configurable:!0}),t.prototype.handleOnClick=function(e){this.question.setValueFromClick(e.target.value),this.setState({value:this.question.value})},t.prototype.renderItem=function(e,t){return a.ReactElementFactory.Instance.createElement(this.question.itemComponentName,{question:this.question,item:e,index:t,key:"value"+t,handleOnClick:this.handleOnClick,isDisplayMode:this.isDisplayMode})},t.prototype.renderElement=function(){var e=this,t=this.question.cssClasses,n=this.question.minRateDescription?this.renderLocString(this.question.locMinRateDescription):null,r=this.question.maxRateDescription?this.renderLocString(this.question.locMaxRateDescription):null;return o.createElement("div",{className:this.question.ratingRootCss,ref:function(t){return e.setControl(t)}},o.createElement("fieldset",{role:"radiogroup"},o.createElement("legend",{role:"presentation",className:"sv-hidden"}),this.question.hasMinLabel?o.createElement("span",{className:t.minText},n):null,this.question.renderedRateItems.map((function(t,n){return e.renderItem(t,n)})),this.question.hasMaxLabel?o.createElement("span",{className:t.maxText},r):null))},t}(i.SurveyQuestionElementBase);s.ReactQuestionFactory.Instance.registerQuestion("rating",(function(e){return o.createElement(u,e)}))},"./src/react/reactquestion_tagbox.tsx":function(e,t,n){"use strict";n.r(t),n.d(t,"SurveyQuestionTagbox",(function(){return c}));var r,o=n("react"),i=n("./src/react/reactquestion_factory.tsx"),s=n("./src/react/dropdown-base.tsx"),a=n("./src/react/tagbox-item.tsx"),l=n("./src/react/tagbox-filter.tsx"),u=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),c=function(e){function t(t){return e.call(this,t)||this}return u(t,e),t.prototype.renderItem=function(e,t){return o.createElement(a.SurveyQuestionTagboxItem,{key:e,question:this.question,item:t})},t.prototype.renderInput=function(e){var t=this,n=e,r=this.question.selectedChoices.map((function(e,n){return t.renderItem("item"+n,e)}));return o.createElement("div",{id:this.question.inputId,className:this.question.getControlClass(),tabIndex:e.inputReadOnly?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-describedby":this.question.ariaDescribedBy,"aria-expanded":null===this.question.ariaExpanded?void 0:"true"===this.question.ariaExpanded,"aria-controls":e.listElementId,"aria-activedescendant":e.ariaActivedescendant},o.createElement("div",{className:this.question.cssClasses.controlValue},r,o.createElement(l.TagboxFilterString,{model:n,question:this.question})),this.createClearButton())},t.prototype.renderElement=function(){var e=this.question.cssClasses,t=this.question.isOtherSelected?this.renderOther(e):null,n=this.renderSelect(e);return o.createElement("div",{className:this.question.renderCssRoot},n,t)},t}(s.SurveyQuestionDropdownBase);i.ReactQuestionFactory.Instance.registerQuestion("tagbox",(function(e){return o.createElement(c,e)}))},"./src/react/reactquestion_text.tsx":function(e,t,n){"use strict";n.r(t),n.d(t,"SurveyQuestionText",(function(){return u}));var r,o=n("react"),i=n("./src/react/reactquestion_element.tsx"),s=n("./src/react/reactquestion_factory.tsx"),a=n("./src/react/components/character-counter.tsx"),l=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),u=function(e){function t(t){return e.call(this,t)||this}return l(t,e),t.prototype.renderInput=function(){var e=this,t=this.question.getControlClass(),n=this.question.renderedPlaceholder;if(this.question.isReadOnlyRenderDiv())return o.createElement("div",null,this.question.value);var r=this.question.getMaxLength()?o.createElement(a.CharacterCounterComponent,{counter:this.question.characterCounter,remainingCharacterCounter:this.question.cssClasses.remainingCharacterCounter}):null;return o.createElement(o.Fragment,null,o.createElement("input",{id:this.question.inputId,disabled:this.isDisplayMode,className:t,type:this.question.inputType,ref:function(t){return e.setControl(t)},style:this.question.inputStyle,maxLength:this.question.getMaxLength(),min:this.question.renderedMin,max:this.question.renderedMax,step:this.question.renderedStep,size:this.question.inputSize,placeholder:n,list:this.question.dataListId,autoComplete:this.question.autocomplete,onBlur:this.question.onBlur,onFocus:this.question.onFocus,onChange:this.question.onChange,onKeyUp:this.question.onKeyUp,onKeyDown:this.question.onKeyDown,onCompositionUpdate:function(t){return e.question.onCompositionUpdate(t.nativeEvent)},"aria-required":this.question.a11y_input_ariaRequired,"aria-label":this.question.a11y_input_ariaLabel,"aria-labelledby":this.question.a11y_input_ariaLabelledBy,"aria-invalid":this.question.a11y_input_ariaInvalid,"aria-describedby":this.question.a11y_input_ariaDescribedBy}),r)},t.prototype.renderElement=function(){return this.question.dataListId?o.createElement("div",null,this.renderInput(),this.renderDataList()):this.renderInput()},t.prototype.renderDataList=function(){if(!this.question.dataListId)return null;var e=this.question.dataList;if(0==e.length)return null;for(var t=[],n=0;n<e.length;n++)t.push(o.createElement("option",{key:"item"+n,value:e[n]}));return o.createElement("datalist",{id:this.question.dataListId},t)},t}(i.SurveyQuestionUncontrolledElement);s.ReactQuestionFactory.Instance.registerQuestion("text",(function(e){return o.createElement(u,e)}))},"./src/react/reactsurveymodel.tsx":function(e,t,n){"use strict";n.r(t),n.d(t,"ReactSurveyElementsWrapper",(function(){return i}));var r=n("survey-core"),o=n("./src/react/element-factory.tsx"),i=function(){function e(){}return e.wrapRow=function(e,t,n){var r=e.getRowWrapperComponentName(n),i=e.getRowWrapperComponentData(n);return o.ReactElementFactory.Instance.createElement(r,{element:t,row:n,componentData:i})},e.wrapElement=function(e,t,n){var r=e.getElementWrapperComponentName(n),i=e.getElementWrapperComponentData(n);return o.ReactElementFactory.Instance.createElement(r,{element:t,question:n,componentData:i})},e.wrapQuestionContent=function(e,t,n){var r=e.getQuestionContentWrapperComponentName(n),i=e.getElementWrapperComponentData(n);return o.ReactElementFactory.Instance.createElement(r,{element:t,question:n,componentData:i})},e.wrapItemValue=function(e,t,n,r){var i=e.getItemValueWrapperComponentName(r,n),s=e.getItemValueWrapperComponentData(r,n);return o.ReactElementFactory.Instance.createElement(i,{key:null==t?void 0:t.key,element:t,question:n,item:r,componentData:s})},e.wrapMatrixCell=function(e,t,n,r){void 0===r&&(r="cell");var i=e.getElementWrapperComponentName(n,r),s=e.getElementWrapperComponentData(n,r);return o.ReactElementFactory.Instance.createElement(i,{element:t,cell:n,componentData:s})},e}();r.SurveyModel.platform="react"},"./src/react/reacttimerpanel.tsx":function(e,t,n){"use strict";n.r(t),n.d(t,"SurveyTimerPanel",(function(){return u}));var r,o=n("react"),i=n("./src/react/components/svg-icon/svg-icon.tsx"),s=n("./src/react/element-factory.tsx"),a=n("./src/react/reactquestion_element.tsx"),l=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),u=function(e){function t(t){var n=e.call(this,t)||this;return n.circleLength=440,n}return l(t,e),t.prototype.getStateElement=function(){return this.timerModel},Object.defineProperty(t.prototype,"timerModel",{get:function(){return this.props.model},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"progress",{get:function(){return-this.timerModel.progress*this.circleLength},enumerable:!1,configurable:!0}),t.prototype.render=function(){if(!this.timerModel.isRunning)return null;var e=o.createElement("div",{className:this.timerModel.survey.getCss().timerRoot},this.timerModel.text);if(this.timerModel.showTimerAsClock){var t={strokeDasharray:this.circleLength,strokeDashoffset:this.progress},n=this.timerModel.showProgress?o.createElement(i.SvgIcon,{className:this.timerModel.getProgressCss(),style:t,iconName:"icon-timercircle",size:"auto"}):null;e=o.createElement("div",{className:this.timerModel.rootCss},n,o.createElement("div",{className:this.timerModel.textContainerCss},o.createElement("span",{className:this.timerModel.majorTextCss},this.timerModel.clockMajorText),this.timerModel.clockMinorText?o.createElement("span",{className:this.timerModel.minorTextCss},this.timerModel.clockMinorText):null))}return e},t}(a.ReactSurveyElement);s.ReactElementFactory.Instance.registerElement("sv-timerpanel",(function(e){return o.createElement(u,e)}))},"./src/react/row.tsx":function(e,t,n){"use strict";n.r(t),n.d(t,"SurveyRow",(function(){return u}));var r,o=n("react"),i=n("./src/react/reactquestion_element.tsx"),s=n("./src/react/element-factory.tsx"),a=n("./src/react/reactsurveymodel.tsx"),l=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),u=function(e){function t(t){var n=e.call(this,t)||this;return n.rootRef=o.createRef(),n.recalculateCss(),n}return l(t,e),t.prototype.recalculateCss=function(){this.row.visibleElements.map((function(e){return e.cssClasses}))},t.prototype.getStateElement=function(){return this.row},Object.defineProperty(t.prototype,"row",{get:function(){return this.props.row},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"survey",{get:function(){return this.props.survey},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"creator",{get:function(){return this.props.creator},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"css",{get:function(){return this.props.css},enumerable:!1,configurable:!0}),t.prototype.canRender=function(){return!!this.row&&!!this.survey&&!!this.creator&&this.row.visible},t.prototype.renderElementContent=function(){var e=this,t=this.row.visibleElements.map((function(t,n){var r=e.createElement(t,n),i=t.cssClassesValue;return o.createElement("div",{className:i.questionWrapper,style:t.rootStyle,"data-key":r.key,key:r.key,onFocus:function(){var e=t;e&&!e.isDisposed&&e.isQuestion&&e.focusIn()}},e.row.isNeedRender?r:s.ReactElementFactory.Instance.createElement(t.skeletonComponentName,{element:t,css:e.css}))}));return o.createElement("div",{ref:this.rootRef,className:this.row.getRowCss()},t)},t.prototype.renderElement=function(){var e=this.survey,t=this.renderElementContent();return a.ReactSurveyElementsWrapper.wrapRow(e,t,this.row)||t},t.prototype.componentDidMount=function(){var t=this;e.prototype.componentDidMount.call(this);var n=this.rootRef.current;if(n&&!this.row.isNeedRender){var r=n;setTimeout((function(){t.row.startLazyRendering(r)}),10)}},t.prototype.shouldComponentUpdate=function(t,n){return!!e.prototype.shouldComponentUpdate.call(this,t,n)&&(t.row!==this.row&&(t.row.isNeedRender=this.row.isNeedRender,this.stopLazyRendering()),this.recalculateCss(),!0)},t.prototype.stopLazyRendering=function(){this.row.stopLazyRendering(),this.row.isNeedRender=!this.row.isLazyRendering()},t.prototype.componentWillUnmount=function(){e.prototype.componentWillUnmount.call(this),this.stopLazyRendering()},t.prototype.createElement=function(e,t){var n=t?"-"+t:0,r=e.getType();return s.ReactElementFactory.Instance.isElementRegistered(r)||(r="question"),s.ReactElementFactory.Instance.createElement(r,{key:e.name+n,element:e,creator:this.creator,survey:this.survey,css:this.css})},t}(i.SurveyElementBase)},"./src/react/signaturepad.tsx":function(e,t,n){"use strict";n.r(t),n.d(t,"SurveyQuestionSignaturePad",(function(){return u}));var r,o=n("react"),i=n("./src/react/reactquestion_element.tsx"),s=n("./src/react/reactquestion_factory.tsx"),a=n("./src/react/components/svg-icon/svg-icon.tsx"),l=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),u=function(e){function t(t){var n=e.call(this,t)||this;return n.state={value:n.question.value},n}return l(t,e),Object.defineProperty(t.prototype,"question",{get:function(){return this.questionBase},enumerable:!1,configurable:!0}),t.prototype.renderElement=function(){var e=this,t=this.question.cssClasses,n=this.renderCleanButton();return o.createElement("div",{className:t.root,ref:function(t){return e.setControl(t)},style:{height:this.question.signatureHeight,width:this.question.signatureWidth}},o.createElement("div",{className:t.placeholder,style:{display:this.question.needShowPlaceholder()?"":"none"}},this.question.placeHolderText),o.createElement("div",null,o.createElement("canvas",{tabIndex:0})),n)},t.prototype.renderCleanButton=function(){var e=this;if(!this.question.canShowClearButton)return null;var t=this.question.cssClasses;return o.createElement("div",{className:t.controls},o.createElement("button",{type:"button",className:t.clearButton,title:this.question.clearButtonCaption,onClick:function(){return e.question.clearValue()}},this.question.cssClasses.clearButtonIconId?o.createElement(a.SvgIcon,{iconName:this.question.cssClasses.clearButtonIconId,size:"auto"}):o.createElement("span",null,"✖")))},t}(i.SurveyQuestionElementBase);s.ReactQuestionFactory.Instance.registerQuestion("signaturepad",(function(e){return o.createElement(u,e)}))},"./src/react/string-editor.tsx":function(e,t,n){"use strict";n.r(t),n.d(t,"SurveyLocStringEditor",(function(){return u}));var r,o=n("react"),i=n.n(o),s=n("survey-core"),a=n("./src/react/element-factory.tsx"),l=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),u=function(e){function t(t){var n=e.call(this,t)||this;return n.onInput=function(e){n.locStr.text=e.target.innerText},n.onClick=function(e){e.preventDefault(),e.stopPropagation()},n.state={changed:0},n}return l(t,e),Object.defineProperty(t.prototype,"locStr",{get:function(){return this.props.locStr},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"style",{get:function(){return this.props.style},enumerable:!1,configurable:!0}),t.prototype.componentDidMount=function(){if(this.locStr){var e=this;this.locStr.onChanged=function(){e.setState({changed:e.state.changed+1})}}},t.prototype.componentWillUnmount=function(){this.locStr&&(this.locStr.onChanged=function(){})},t.prototype.render=function(){if(!this.locStr)return null;if(this.locStr.hasHtml){var e={__html:this.locStr.renderedHtml};return i.a.createElement("span",{className:"sv-string-editor",contentEditable:"true",suppressContentEditableWarning:!0,style:this.style,dangerouslySetInnerHTML:e,onBlur:this.onInput,onClick:this.onClick})}return i.a.createElement("span",{className:"sv-string-editor",contentEditable:"true",suppressContentEditableWarning:!0,style:this.style,onBlur:this.onInput,onClick:this.onClick},this.locStr.renderedHtml)},t}(i.a.Component);a.ReactElementFactory.Instance.registerElement(s.LocalizableString.editableRenderer,(function(e){return i.a.createElement(u,e)}))},"./src/react/string-viewer.tsx":function(e,t,n){"use strict";n.r(t),n.d(t,"SurveyLocStringViewer",(function(){return u}));var r,o=n("react"),i=n.n(o),s=n("survey-core"),a=n("./src/react/element-factory.tsx"),l=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),u=function(e){function t(t){var n=e.call(this,t)||this;return n.onChangedHandler=function(e,t){n.isRendering||n.setState({changed:n.state&&n.state.changed?n.state.changed+1:1})},n.rootRef=i.a.createRef(),n}return l(t,e),Object.defineProperty(t.prototype,"locStr",{get:function(){return this.props.locStr},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"style",{get:function(){return this.props.style},enumerable:!1,configurable:!0}),t.prototype.componentDidMount=function(){this.reactOnStrChanged()},t.prototype.componentWillUnmount=function(){this.locStr&&this.locStr.onStringChanged.remove(this.onChangedHandler)},t.prototype.componentDidUpdate=function(e,t){e.locStr&&e.locStr.onStringChanged.remove(this.onChangedHandler),this.reactOnStrChanged()},t.prototype.reactOnStrChanged=function(){this.locStr&&this.locStr.onStringChanged.add(this.onChangedHandler)},t.prototype.render=function(){if(!this.locStr)return null;this.isRendering=!0;var e=this.renderString();return this.isRendering=!1,e},t.prototype.renderString=function(){if(this.locStr.hasHtml){var e={__html:this.locStr.renderedHtml};return i.a.createElement("span",{ref:this.rootRef,className:"sv-string-viewer",style:this.style,dangerouslySetInnerHTML:e})}return i.a.createElement("span",{ref:this.rootRef,className:"sv-string-viewer",style:this.style},this.locStr.renderedHtml)},t}(i.a.Component);a.ReactElementFactory.Instance.registerElement(s.LocalizableString.defaultRenderer,(function(e){return i.a.createElement(u,e)}))},"./src/react/tagbox-filter.tsx":function(e,t,n){"use strict";n.r(t),n.d(t,"TagboxFilterString",(function(){return u}));var r,o=n("react"),i=n("survey-core"),s=n("./src/react/reactquestion_factory.tsx"),a=n("./src/react/reactquestion_element.tsx"),l=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),u=function(e){function t(t){return e.call(this,t)||this}return l(t,e),Object.defineProperty(t.prototype,"model",{get:function(){return this.props.model},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"question",{get:function(){return this.props.question},enumerable:!1,configurable:!0}),t.prototype.componentDidUpdate=function(t,n){e.prototype.componentDidUpdate.call(this,t,n),this.updateDomElement()},t.prototype.componentDidMount=function(){e.prototype.componentDidMount.call(this),this.updateDomElement()},t.prototype.updateDomElement=function(){if(this.inputElement){var e=this.inputElement,t=this.model.inputStringRendered;i.Helpers.isTwoValueEquals(t,e.value,!1,!0,!1)||(e.value=this.model.inputStringRendered)}},t.prototype.onChange=function(e){var t=i.settings.environment.root;e.target===t.activeElement&&(this.model.inputStringRendered=e.target.value)},t.prototype.keyhandler=function(e){this.model.inputKeyHandler(e)},t.prototype.onBlur=function(e){this.model.onBlur(e)},t.prototype.onFocus=function(e){this.model.onFocus(e)},t.prototype.getStateElement=function(){return this.model},t.prototype.render=function(){var e=this;return o.createElement("div",{className:this.question.cssClasses.hint},this.model.showHintPrefix?o.createElement("div",{className:this.question.cssClasses.hintPrefix},o.createElement("span",null,this.model.hintStringPrefix)):null,o.createElement("div",{className:this.question.cssClasses.hintSuffixWrapper},this.model.showHintString?o.createElement("div",{className:this.question.cssClasses.hintSuffix},o.createElement("span",{style:{visibility:"hidden"},"data-bind":"text: model.filterString"},this.model.inputStringRendered),o.createElement("span",null,this.model.hintStringSuffix)):null,o.createElement("input",{type:"text",autoComplete:"off",id:this.question.getInputId(),inputMode:this.model.inputMode,ref:function(t){return e.inputElement=t},className:this.question.cssClasses.filterStringInput,disabled:this.question.isInputReadOnly,readOnly:!this.model.searchEnabled||void 0,size:this.model.inputStringRendered?void 0:1,role:this.model.filterStringEnabled?this.question.ariaRole:void 0,"aria-label":this.question.placeholder,"aria-expanded":null===this.question.ariaExpanded?void 0:"true"===this.question.ariaExpanded,"aria-controls":this.model.listElementId,"aria-activedescendant":this.model.ariaActivedescendant,placeholder:this.model.filterStringPlaceholder,onKeyDown:function(t){e.keyhandler(t)},onChange:function(t){e.onChange(t)},onBlur:function(t){e.onBlur(t)},onFocus:function(t){e.onFocus(t)}})))},t}(a.SurveyElementBase);s.ReactQuestionFactory.Instance.registerQuestion("sv-tagbox-filter",(function(e){return o.createElement(u,e)}))},"./src/react/tagbox-item.tsx":function(e,t,n){"use strict";n.r(t),n.d(t,"SurveyQuestionTagboxItem",(function(){return l}));var r,o=n("react"),i=n("./src/react/reactquestion_element.tsx"),s=n("./src/react/components/svg-icon/svg-icon.tsx"),a=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),l=function(e){function t(t){return e.call(this,t)||this}return a(t,e),Object.defineProperty(t.prototype,"question",{get:function(){return this.props.question},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"item",{get:function(){return this.props.item},enumerable:!1,configurable:!0}),t.prototype.canRender=function(){return!!this.item&&!!this.question},t.prototype.renderElement=function(){var e=this,t=this.renderLocString(this.item.locText);return o.createElement("div",{className:"sv-tagbox__item"},o.createElement("div",{className:"sv-tagbox__item-text"},t),o.createElement("div",{className:this.question.cssClasses.cleanItemButton,onClick:function(t){e.question.dropdownListModel.deselectItem(e.item.value),t.stopPropagation()}},o.createElement(s.SvgIcon,{className:this.question.cssClasses.cleanItemButtonSvg,iconName:this.question.cssClasses.cleanItemButtonIconId,size:"auto"})))},t}(i.ReactSurveyElement)},"./src/settings.ts":function(e,t,n){"use strict";n.r(t),n.d(t,"settings",(function(){return o}));var r=globalThis.document,o={designMode:{showEmptyDescriptions:!0,showEmptyTitles:!0},get allowShowEmptyDescriptionInDesignMode(){return this.designMode.showEmptyDescriptions},set allowShowEmptyDescriptionInDesignMode(e){this.designMode.showEmptyDescriptions=e},get allowShowEmptyTitleInDesignMode(){return this.designMode.showEmptyTitles},set allowShowEmptyTitleInDesignMode(e){this.designMode.showEmptyTitles=e},localization:{useLocalTimeZone:!0,storeDuplicatedTranslations:!1,defaultLocaleName:"default"},get useLocalTimeZone(){return this.localization.useLocalTimeZone},set useLocalTimeZone(e){this.localization.useLocalTimeZone=e},get storeDuplicatedTranslations(){return this.localization.storeDuplicatedTranslations},set storeDuplicatedTranslations(e){this.localization.storeDuplicatedTranslations=e},get defaultLocaleName(){return this.localization.defaultLocaleName},set defaultLocaleName(e){this.localization.defaultLocaleName=e},web:{encodeUrlParams:!0,cacheLoadedChoices:!0,disableQuestionWhileLoadingChoices:!1,surveyServiceUrl:"https://api.surveyjs.io/public/v1/Survey"},get webserviceEncodeParameters(){return this.web.encodeUrlParams},set webserviceEncodeParameters(e){this.web.encodeUrlParams=e},get useCachingForChoicesRestful(){return this.web.cacheLoadedChoices},set useCachingForChoicesRestful(e){this.web.cacheLoadedChoices=e},get useCachingForChoicesRestfull(){return this.web.cacheLoadedChoices},set useCachingForChoicesRestfull(e){this.web.cacheLoadedChoices=e},get disableOnGettingChoicesFromWeb(){return this.web.disableQuestionWhileLoadingChoices},set disableOnGettingChoicesFromWeb(e){this.web.disableQuestionWhileLoadingChoices=e},get surveyServiceUrl(){return this.web.surveyServiceUrl},set surveyServiceUrl(e){this.web.surveyServiceUrl=e},triggers:{changeNavigationButtonsOnComplete:!0,executeCompleteOnValueChanged:!1,executeSkipOnValueChanged:!0},get executeCompleteTriggerOnValueChanged(){return this.triggers.executeCompleteOnValueChanged},set executeCompleteTriggerOnValueChanged(e){this.triggers.executeCompleteOnValueChanged=e},get changeNavigationButtonsOnCompleteTrigger(){return this.triggers.changeNavigationButtonsOnComplete},set changeNavigationButtonsOnCompleteTrigger(e){this.triggers.changeNavigationButtonsOnComplete=e},get executeSkipTriggerOnValueChanged(){return this.triggers.executeSkipOnValueChanged},set executeSkipTriggerOnValueChanged(e){this.triggers.executeSkipOnValueChanged=e},serialization:{itemValueSerializeAsObject:!1,itemValueSerializeDisplayText:!1,localizableStringSerializeAsObject:!1},get itemValueAlwaysSerializeAsObject(){return this.serialization.itemValueSerializeAsObject},set itemValueAlwaysSerializeAsObject(e){this.serialization.itemValueSerializeAsObject=e},get itemValueAlwaysSerializeText(){return this.serialization.itemValueSerializeDisplayText},set itemValueAlwaysSerializeText(e){this.serialization.itemValueSerializeDisplayText=e},get serializeLocalizableStringAsObject(){return this.serialization.localizableStringSerializeAsObject},set serializeLocalizableStringAsObject(e){this.serialization.localizableStringSerializeAsObject=e},lazyRender:{enabled:!1,firstBatchSize:3},get lazyRowsRendering(){return this.lazyRender.enabled},set lazyRowsRendering(e){this.lazyRender.enabled=e},get lazyRowsRenderingStartRow(){return this.lazyRender.firstBatchSize},set lazyRowsRenderingStartRow(e){this.lazyRender.firstBatchSize=e},matrix:{defaultCellType:"dropdown",defaultRowName:"default",totalsSuffix:"-total",maxRowCount:1e3,maxRowCountInCondition:1,renderRemoveAsIcon:!0,columnWidthsByType:{file:{minWidth:"240px"},comment:{minWidth:"200px"}},rateSize:"small"},get matrixDefaultRowName(){return this.matrix.defaultRowName},set matrixDefaultRowName(e){this.matrix.defaultRowName=e},get matrixDefaultCellType(){return this.matrix.defaultCellType},set matrixDefaultCellType(e){this.matrix.defaultCellType=e},get matrixTotalValuePostFix(){return this.matrix.totalsSuffix},set matrixTotalValuePostFix(e){this.matrix.totalsSuffix=e},get matrixMaximumRowCount(){return this.matrix.maxRowCount},set matrixMaximumRowCount(e){this.matrix.maxRowCount=e},get matrixMaxRowCountInCondition(){return this.matrix.maxRowCountInCondition},set matrixMaxRowCountInCondition(e){this.matrix.maxRowCountInCondition=e},get matrixRenderRemoveAsIcon(){return this.matrix.renderRemoveAsIcon},set matrixRenderRemoveAsIcon(e){this.matrix.renderRemoveAsIcon=e},panel:{maxPanelCount:100,maxPanelCountInCondition:1},get panelDynamicMaxPanelCountInCondition(){return this.panel.maxPanelCountInCondition},set panelDynamicMaxPanelCountInCondition(e){this.panel.maxPanelCountInCondition=e},get panelMaximumPanelCount(){return this.panel.maxPanelCount},set panelMaximumPanelCount(e){this.panel.maxPanelCount=e},readOnly:{commentRenderMode:"textarea",textRenderMode:"input"},get readOnlyCommentRenderMode(){return this.readOnly.commentRenderMode},set readOnlyCommentRenderMode(e){this.readOnly.commentRenderMode=e},get readOnlyTextRenderMode(){return this.readOnly.textRenderMode},set readOnlyTextRenderMode(e){this.readOnly.textRenderMode=e},numbering:{includeQuestionsWithHiddenNumber:!1,includeQuestionsWithHiddenTitle:!1},get setQuestionVisibleIndexForHiddenTitle(){return this.numbering.includeQuestionsWithHiddenTitle},set setQuestionVisibleIndexForHiddenTitle(e){this.numbering.includeQuestionsWithHiddenTitle=e},get setQuestionVisibleIndexForHiddenNumber(){return this.numbering.includeQuestionsWithHiddenNumber},set setQuestionVisibleIndexForHiddenNumber(e){this.numbering.includeQuestionsWithHiddenNumber=e},enterKeyAction:"default",comparator:{trimStrings:!0,caseSensitive:!1,normalizeTextCallback:function(e,t){return e}},expressionDisableConversionChar:"#",get commentPrefix(){return o.commentSuffix},set commentPrefix(e){o.commentSuffix=e},commentSuffix:"-Comment",itemValueSeparator:"|",ratingMaximumRateValueCount:20,tagboxCloseOnSelect:!1,confirmActionFunc:function(e){return confirm(e)},minWidth:"300px",maxWidth:"100%",maxConditionRunCountOnValueChanged:10,notifications:{lifetime:2e3},showItemsInOrder:"default",noneItemValue:"none",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:r?{root:r,_rootElement:r.body,get rootElement(){var e;return null!==(e=this._rootElement)&&void 0!==e?e:r.body},set rootElement(e){this._rootElement=e},_popupMountContainer:r.body,get popupMountContainer(){var e;return null!==(e=this._popupMountContainer)&&void 0!==e?e:r.body},set popupMountContainer(e){this._popupMountContainer=e},svgMountContainer:r.head,stylesSheetsMountContainer:r.head}:void 0,showMaxLengthIndicator:!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"]}}},"./src/utils/responsivity-manager.ts":function(e,t,n){"use strict";n.r(t),n.d(t,"ResponsivityManager",(function(){return s})),n.d(t,"VerticalResponsivityManager",(function(){return a}));var r,o=n("./src/utils/utils.ts"),i=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),s=function(){function e(e,t,n,r){var o=this;void 0===r&&(r=null),this.container=e,this.model=t,this.itemsSelector=n,this.dotsItemSize=r,this.resizeObserver=void 0,this.isInitialized=!1,this.minDimensionConst=56,this.separatorSize=17,this.separatorAddConst=1,this.paddingSizeConst=8,this.dotsSizeConst=48,this.recalcMinDimensionConst=!0,this.getComputedStyle=window.getComputedStyle.bind(window),this.model.updateCallback=function(e){e&&(o.isInitialized=!1),setTimeout((function(){o.process()}),1)},"undefined"!=typeof ResizeObserver&&(this.resizeObserver=new ResizeObserver((function(e){return o.process()})),this.resizeObserver.observe(this.container.parentElement))}return e.prototype.getDimensions=function(e){return{scroll:e.scrollWidth,offset:e.offsetWidth}},e.prototype.getAvailableSpace=function(){var e=this.getComputedStyle(this.container),t=this.container.offsetWidth;return"border-box"===e.boxSizing&&(t-=parseFloat(e.paddingLeft)+parseFloat(e.paddingRight)),t},e.prototype.calcItemSize=function(e){return e.offsetWidth},e.prototype.calcMinDimension=function(e){var t=this.minDimensionConst;return e.iconSize&&this.recalcMinDimensionConst&&(t=2*e.iconSize+this.paddingSizeConst),e.canShrink?t+(e.needSeparator?this.separatorSize:0):e.maxDimension},e.prototype.calcItemsSizes=function(){var e=this,t=this.model.actions;(this.container.querySelectorAll(this.itemsSelector)||[]).forEach((function(n,r){var o=t[r];e.calcActionDimensions(o,n)}))},e.prototype.calcActionDimensions=function(e,t){e.maxDimension=this.calcItemSize(t),e.minDimension=this.calcMinDimension(e)},Object.defineProperty(e.prototype,"isContainerVisible",{get:function(){return Object(o.isContainerVisible)(this.container)},enumerable:!1,configurable:!0}),e.prototype.process=function(){var e;if(this.isContainerVisible&&!this.model.isResponsivenessDisabled){this.isInitialized||(this.model.setActionsMode("large"),this.calcItemsSizes(),this.isInitialized=!0);var t=this.dotsItemSize;if(!this.dotsItemSize){var n=null===(e=this.container)||void 0===e?void 0:e.querySelector(".sv-dots");t=n&&this.calcItemSize(n)||this.dotsSizeConst}this.model.fit(this.getAvailableSpace(),t)}},e.prototype.dispose=function(){this.model.updateCallback=void 0,this.resizeObserver&&this.resizeObserver.disconnect()},e}(),a=function(e){function t(t,n,r,o,i){void 0===i&&(i=40);var s=e.call(this,t,n,r,o)||this;return s.minDimensionConst=i,s.recalcMinDimensionConst=!1,s}return i(t,e),t.prototype.getDimensions=function(){return{scroll:this.container.scrollHeight,offset:this.container.offsetHeight}},t.prototype.getAvailableSpace=function(){var e=this.getComputedStyle(this.container),t=this.container.offsetHeight;return"border-box"===e.boxSizing&&(t-=parseFloat(e.paddingTop)+parseFloat(e.paddingBottom)),t},t.prototype.calcItemSize=function(e){return e.offsetHeight},t.prototype.calcActionDimensions=function(e,t){e.maxDimension=this.calcItemSize(t),e.minDimension=this.calcItemSize(t)},t}(s)},"./src/utils/utils.ts":function(e,t,n){"use strict";n.r(t),n.d(t,"unwrap",(function(){return v})),n.d(t,"getRenderedSize",(function(){return b})),n.d(t,"getRenderedStyleSize",(function(){return C})),n.d(t,"doKey2ClickBlur",(function(){return x})),n.d(t,"doKey2ClickUp",(function(){return P})),n.d(t,"doKey2ClickDown",(function(){return S})),n.d(t,"sanitizeEditableContent",(function(){return j})),n.d(t,"Logger",(function(){return M})),n.d(t,"mergeValues",(function(){return k})),n.d(t,"getElementWidth",(function(){return _})),n.d(t,"isContainerVisible",(function(){return R})),n.d(t,"classesToSelector",(function(){return T})),n.d(t,"compareVersions",(function(){return o})),n.d(t,"confirmAction",(function(){return i})),n.d(t,"detectIEOrEdge",(function(){return a})),n.d(t,"detectIEBrowser",(function(){return s})),n.d(t,"loadFileFromBase64",(function(){return l})),n.d(t,"isMobile",(function(){return u})),n.d(t,"isShadowDOM",(function(){return c})),n.d(t,"getElement",(function(){return p})),n.d(t,"isElementVisible",(function(){return d})),n.d(t,"findScrollableParent",(function(){return h})),n.d(t,"scrollElementByChildId",(function(){return f})),n.d(t,"navigateToUrl",(function(){return g})),n.d(t,"createSvg",(function(){return y})),n.d(t,"getIconNameFromProxy",(function(){return m})),n.d(t,"increaseHeightByContent",(function(){return V})),n.d(t,"getOriginalEvent",(function(){return E})),n.d(t,"preventDefaults",(function(){return O})),n.d(t,"findParentByClassNames",(function(){return D})),n.d(t,"getFirstVisibleChild",(function(){return I}));var r=n("./src/settings.ts");function o(e,t){for(var n=/(\.0+)+$/,r=e.replace(n,"").split("."),o=t.replace(n,"").split("."),i=Math.min(r.length,o.length),s=0;s<i;s++){var a=parseInt(r[s],10)-parseInt(o[s],10);if(a)return a}return r.length-o.length}function i(e){return r.settings&&r.settings.confirmActionFunc?r.settings.confirmActionFunc(e):confirm(e)}function s(){if("undefined"==typeof window)return!1;var e=window.navigator.userAgent,t=e.indexOf("MSIE "),n=e.indexOf("Trident/");return t>-1||n>-1}function a(){if("undefined"==typeof window)return!1;if(void 0===a.isIEOrEdge){var e=window.navigator.userAgent,t=e.indexOf("MSIE "),n=e.indexOf("Trident/"),r=e.indexOf("Edge/");a.isIEOrEdge=r>0||n>0||t>0}return a.isIEOrEdge}function l(e,t){try{for(var n=atob(e.split(",")[1]),r=e.split(",")[0].split(":")[1].split(";")[0],o=new ArrayBuffer(n.length),i=new Uint8Array(o),s=0;s<n.length;s++)i[s]=n.charCodeAt(s);var a=new Blob([o],{type:r});"undefined"!=typeof window&&window.navigator&&window.navigator.msSaveBlob&&window.navigator.msSaveOrOpenBlob(a,t)}catch(e){}}function u(){return"undefined"!=typeof window&&void 0!==window.orientation}var c=function(e){return!!e&&!(!("host"in e)||!e.host)},p=function(e){var t=r.settings.environment.root;return"string"==typeof e?t.getElementById(e):e};function d(e,t){if(void 0===t&&(t=0),void 0===r.settings.environment)return!1;var n=r.settings.environment.root,o=c(n)?n.host.clientHeight:n.documentElement.clientHeight,i=e.getBoundingClientRect(),s=-t,a=Math.max(o,window.innerHeight)+t,l=i.top,u=i.bottom;return Math.max(s,l)<=Math.min(a,u)}function h(e){var t=r.settings.environment.root;return e?e.scrollHeight>e.clientHeight&&("scroll"===getComputedStyle(e).overflowY||"auto"===getComputedStyle(e).overflowY)||e.scrollWidth>e.clientWidth&&("scroll"===getComputedStyle(e).overflowX||"auto"===getComputedStyle(e).overflowX)?e:h(e.parentElement):c(t)?t.host:t.documentElement}function f(e){var t=r.settings.environment;if(t){var n=t.root.getElementById(e);if(n){var o=h(n);o&&o.dispatchEvent(new CustomEvent("scroll"))}}}function g(e){e&&"undefined"!=typeof window&&window.location&&(window.location.href=e)}function m(e){return e&&r.settings.customIcons[e]||e}function y(e,t,n,r,o,i){if(o){"auto"!==e&&(o.style.width=(e||t||16)+"px",o.style.height=(e||n||16)+"px");var s=o.childNodes[0],a=m(r);s.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href","#"+a);var l=o.getElementsByTagName("title")[0];i?(l||(l=document.createElementNS("http://www.w3.org/2000/svg","title"),o.appendChild(l)),l.textContent=i):l&&o.removeChild(l)}}function v(e){return"function"!=typeof e?e:e()}function b(e){if("string"==typeof e){if(!isNaN(Number(e)))return Number(e);if(e.includes("px"))return parseFloat(e)}if("number"==typeof e)return e}function C(e){if(void 0===b(e))return e}var w="sv-focused--by-key";function x(e){var t=e.target;t&&t.classList&&t.classList.remove(w)}function P(e,t){if(!e.target||"true"!==e.target.contentEditable){var n=e.target;if(n){var r=e.which||e.keyCode;if(9!==r){if(t){if(!t.__keyDownReceived)return;t.__keyDownReceived=!1}13===r||32===r?n.click&&n.click():t&&!t.processEsc||27!==r||n.blur&&n.blur()}else n.classList&&!n.classList.contains(w)&&n.classList.add(w)}}}function S(e,t){if(void 0===t&&(t={processEsc:!0}),t&&(t.__keyDownReceived=!0),!e.target||"true"!==e.target.contentEditable){var n=e.which||e.keyCode,r=[13,32];t.processEsc&&r.push(27),-1!==r.indexOf(n)&&e.preventDefault()}}function V(e,t){if(e){t||(t=function(e){return window.getComputedStyle(e)});var n=t(e);e.style.height="auto",e.style.height=e.scrollHeight+parseFloat(n.borderTopWidth)+parseFloat(n.borderBottomWidth)+"px"}}function E(e){return e.originalEvent||e}function O(e){e.preventDefault(),e.stopPropagation()}function T(e){return e.replace(/\s*?([\w-]+)\s*?/g,".$1")}function _(e){return getComputedStyle?Number.parseFloat(getComputedStyle(e).width):e.offsetWidth}function R(e){return!!(e.offsetWidth||e.offsetHeight||e.getClientRects().length)}function I(e){for(var t,n=0;n<e.children.length;n++)t||"none"===getComputedStyle(e.children[n]).display||(t=e.children[n]);return t}function D(e,t){if(e)return t.every((function(t){return!t||e.classList.contains(t)}))?e:D(e.parentElement,t)}function j(e){if(window.getSelection&&document.createRange&&e.childNodes.length>0){var t=document.getSelection(),n=t.getRangeAt(0);n.setStart(n.endContainer,n.endOffset),n.setEndAfter(e.lastChild),t.removeAllRanges(),t.addRange(n);var r=t.toString().replace(/\n/g,"").length;e.innerText=e.innerText.replace(/\n/g,""),(n=document.createRange()).setStart(e.childNodes[0],e.innerText.length-r),n.collapse(!0),t.removeAllRanges(),t.addRange(n)}}function k(e,t){if(t&&e&&"object"==typeof t)for(var n in e){var r=e[n];!Array.isArray(r)&&r&&"object"==typeof r?(t[n]&&"object"==typeof t[n]||(t[n]={}),k(r,t[n])):t[n]=r}}var M=function(){function e(){this._result=""}return e.prototype.log=function(e){this._result+="->"+e},Object.defineProperty(e.prototype,"result",{get:function(){return this._result},enumerable:!1,configurable:!0}),e}()},react:function(t,n){t.exports=e},"react-dom":function(e,n){e.exports=t},"survey-core":function(e,t){e.exports=n}})},e.exports=r(n(294),n(935),n(535))},61:(e,t,n)=>{var r=n(698).default;function o(){"use strict";e.exports=o=function(){return t},e.exports.__esModule=!0,e.exports.default=e.exports;var t={},n=Object.prototype,i=n.hasOwnProperty,s=Object.defineProperty||function(e,t,n){e[t]=n.value},a="function"==typeof Symbol?Symbol:{},l=a.iterator||"@@iterator",u=a.asyncIterator||"@@asyncIterator",c=a.toStringTag||"@@toStringTag";function p(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{p({},"")}catch(e){p=function(e,t,n){return e[t]=n}}function d(e,t,n,r){var o=t&&t.prototype instanceof g?t:g,i=Object.create(o.prototype),a=new T(r||[]);return s(i,"_invoke",{value:S(e,n,a)}),i}function h(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}t.wrap=d;var f={};function g(){}function m(){}function y(){}var v={};p(v,l,(function(){return this}));var b=Object.getPrototypeOf,C=b&&b(b(_([])));C&&C!==n&&i.call(C,l)&&(v=C);var w=y.prototype=g.prototype=Object.create(v);function x(e){["next","throw","return"].forEach((function(t){p(e,t,(function(e){return this._invoke(t,e)}))}))}function P(e,t){function n(o,s,a,l){var u=h(e[o],e,s);if("throw"!==u.type){var c=u.arg,p=c.value;return p&&"object"==r(p)&&i.call(p,"__await")?t.resolve(p.__await).then((function(e){n("next",e,a,l)}),(function(e){n("throw",e,a,l)})):t.resolve(p).then((function(e){c.value=e,a(c)}),(function(e){return n("throw",e,a,l)}))}l(u.arg)}var o;s(this,"_invoke",{value:function(e,r){function i(){return new t((function(t,o){n(e,r,t,o)}))}return o=o?o.then(i,i):i()}})}function S(e,t,n){var r="suspendedStart";return function(o,i){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===o)throw i;return{value:void 0,done:!0}}for(n.method=o,n.arg=i;;){var s=n.delegate;if(s){var a=V(s,n);if(a){if(a===f)continue;return a}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===r)throw r="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r="executing";var l=h(e,t,n);if("normal"===l.type){if(r=n.done?"completed":"suspendedYield",l.arg===f)continue;return{value:l.arg,done:n.done}}"throw"===l.type&&(r="completed",n.method="throw",n.arg=l.arg)}}}function V(e,t){var n=t.method,r=e.iterator[n];if(void 0===r)return t.delegate=null,"throw"===n&&e.iterator.return&&(t.method="return",t.arg=void 0,V(e,t),"throw"===t.method)||"return"!==n&&(t.method="throw",t.arg=new TypeError("The iterator does not provide a '"+n+"' method")),f;var o=h(r,e.iterator,t.arg);if("throw"===o.type)return t.method="throw",t.arg=o.arg,t.delegate=null,f;var i=o.arg;return i?i.done?(t[e.resultName]=i.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,f):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,f)}function E(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function O(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function T(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(E,this),this.reset(!0)}function _(e){if(e){var t=e[l];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var n=-1,r=function t(){for(;++n<e.length;)if(i.call(e,n))return t.value=e[n],t.done=!1,t;return t.value=void 0,t.done=!0,t};return r.next=r}}return{next:R}}function R(){return{value:void 0,done:!0}}return m.prototype=y,s(w,"constructor",{value:y,configurable:!0}),s(y,"constructor",{value:m,configurable:!0}),m.displayName=p(y,c,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===m||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,y):(e.__proto__=y,p(e,c,"GeneratorFunction")),e.prototype=Object.create(w),e},t.awrap=function(e){return{__await:e}},x(P.prototype),p(P.prototype,u,(function(){return this})),t.AsyncIterator=P,t.async=function(e,n,r,o,i){void 0===i&&(i=Promise);var s=new P(d(e,n,r,o),i);return t.isGeneratorFunction(n)?s:s.next().then((function(e){return e.done?e.value:s.next()}))},x(w),p(w,c,"Generator"),p(w,l,(function(){return this})),p(w,"toString",(function(){return"[object Generator]"})),t.keys=function(e){var t=Object(e),n=[];for(var r in t)n.push(r);return n.reverse(),function e(){for(;n.length;){var r=n.pop();if(r in t)return e.value=r,e.done=!1,e}return e.done=!0,e}},t.values=_,T.prototype={constructor:T,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(O),!e)for(var t in this)"t"===t.charAt(0)&&i.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function n(n,r){return s.type="throw",s.arg=e,t.next=n,r&&(t.method="next",t.arg=void 0),!!r}for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r],s=o.completion;if("root"===o.tryLoc)return n("end");if(o.tryLoc<=this.prev){var a=i.call(o,"catchLoc"),l=i.call(o,"finallyLoc");if(a&&l){if(this.prev<o.catchLoc)return n(o.catchLoc,!0);if(this.prev<o.finallyLoc)return n(o.finallyLoc)}else if(a){if(this.prev<o.catchLoc)return n(o.catchLoc,!0)}else{if(!l)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return n(o.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var r=this.tryEntries[n];if(r.tryLoc<=this.prev&&i.call(r,"finallyLoc")&&this.prev<r.finallyLoc){var o=r;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var s=o?o.completion:{};return s.type=e,s.arg=t,o?(this.method="next",this.next=o.finallyLoc,f):this.complete(s)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),f},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),O(n),f}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var o=r.arg;O(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:_(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=void 0),f}},t}e.exports=o,e.exports.__esModule=!0,e.exports.default=e.exports},698:e=>{function t(n){return e.exports=t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},e.exports.__esModule=!0,e.exports.default=e.exports,t(n)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports},687:(e,t,n)=>{var r=n(61)();e.exports=r;try{regeneratorRuntime=r}catch(e){"object"==typeof globalThis?globalThis.regeneratorRuntime=r:Function("r","regeneratorRuntime = r")(r)}}},t={};function n(r){var o=t[r];if(void 0!==o)return o.exports;var i=t[r]={exports:{}};return e[r].call(i.exports,i,i.exports,n),i.exports}n.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return n.d(t,{a:t}),t},n.d=(e,t)=>{for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),(()=>{var e;n.g.importScripts&&(e=n.g.location+"");var t=n.g.document;if(!e&&t&&(t.currentScript&&(e=t.currentScript.src),!e)){var r=t.getElementsByTagName("script");if(r.length)for(var o=r.length-1;o>-1&&!e;)e=r[o--].src}if(!e)throw new Error("Automatic publicPath is not supported in this browser");e=e.replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),n.p=e})(),(()=>{"use strict";var e,t=n(294),r=n(745);function o(){return o=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},o.apply(this,arguments)}!function(e){e.Pop="POP",e.Push="PUSH",e.Replace="REPLACE"}(e||(e={}));const i="popstate";function s(e,t){if(!1===e||null==e)throw new Error(t)}function a(e,t){if(!e){"undefined"!=typeof console&&console.warn(t);try{throw new Error(t)}catch(e){}}}function l(e,t){return{usr:e.state,key:e.key,idx:t}}function u(e,t,n,r){return void 0===n&&(n=null),o({pathname:"string"==typeof e?e:e.pathname,search:"",hash:""},"string"==typeof t?p(t):t,{state:n,key:t&&t.key||r||Math.random().toString(36).substr(2,8)})}function c(e){let{pathname:t="/",search:n="",hash:r=""}=e;return n&&"?"!==n&&(t+="?"===n.charAt(0)?n:"?"+n),r&&"#"!==r&&(t+="#"===r.charAt(0)?r:"#"+r),t}function p(e){let t={};if(e){let n=e.indexOf("#");n>=0&&(t.hash=e.substr(n),e=e.substr(0,n));let r=e.indexOf("?");r>=0&&(t.search=e.substr(r),e=e.substr(0,r)),e&&(t.pathname=e)}return t}var d;!function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"}(d||(d={}));const h=new Set(["lazy","caseSensitive","path","id","index","children"]);function f(e,t,n,r){return void 0===n&&(n=[]),void 0===r&&(r={}),e.map(((e,i)=>{let a=[...n,i],l="string"==typeof e.id?e.id:a.join("-");if(s(!0!==e.index||!e.children,"Cannot specify children on an index route"),s(!r[l],'Found a route id collision on id "'+l+"\".  Route id's must be globally unique within Data Router usages"),function(e){return!0===e.index}(e)){let n=o({},e,t(e),{id:l});return r[l]=n,n}{let n=o({},e,t(e),{id:l,children:void 0});return r[l]=n,e.children&&(n.children=f(e.children,t,a,r)),n}}))}function g(e,t,n){void 0===n&&(n="/");let r=_(("string"==typeof t?p(t):t).pathname||"/",n);if(null==r)return null;let o=m(e);!function(e){e.sort(((e,t)=>e.score!==t.score?t.score-e.score:function(e,t){let n=e.length===t.length&&e.slice(0,-1).every(((e,n)=>e===t[n]));return n?e[e.length-1]-t[t.length-1]:0}(e.routesMeta.map((e=>e.childrenIndex)),t.routesMeta.map((e=>e.childrenIndex)))))}(o);let i=null;for(let e=0;null==i&&e<o.length;++e)i=E(o[e],T(r));return i}function m(e,t,n,r){void 0===t&&(t=[]),void 0===n&&(n=[]),void 0===r&&(r="");let o=(e,o,i)=>{let a={relativePath:void 0===i?e.path||"":i,caseSensitive:!0===e.caseSensitive,childrenIndex:o,route:e};a.relativePath.startsWith("/")&&(s(a.relativePath.startsWith(r),'Absolute route path "'+a.relativePath+'" nested under path "'+r+'" is not valid. An absolute child route path must start with the combined path of all its parent routes.'),a.relativePath=a.relativePath.slice(r.length));let l=j([r,a.relativePath]),u=n.concat(a);e.children&&e.children.length>0&&(s(!0!==e.index,'Index routes must not have child routes. Please remove all child routes from route path "'+l+'".'),m(e.children,t,u,l)),(null!=e.path||e.index)&&t.push({path:l,score:V(l,e.index),routesMeta:u})};return e.forEach(((e,t)=>{var n;if(""!==e.path&&null!=(n=e.path)&&n.includes("?"))for(let n of y(e.path))o(e,t,n);else o(e,t)})),t}function y(e){let t=e.split("/");if(0===t.length)return[];let[n,...r]=t,o=n.endsWith("?"),i=n.replace(/\?$/,"");if(0===r.length)return o?[i,""]:[i];let s=y(r.join("/")),a=[];return a.push(...s.map((e=>""===e?i:[i,e].join("/")))),o&&a.push(...s),a.map((t=>e.startsWith("/")&&""===t?"/":t))}const v=/^:\w+$/,b=3,C=2,w=1,x=10,P=-2,S=e=>"*"===e;function V(e,t){let n=e.split("/"),r=n.length;return n.some(S)&&(r+=P),t&&(r+=C),n.filter((e=>!S(e))).reduce(((e,t)=>e+(v.test(t)?b:""===t?w:x)),r)}function E(e,t){let{routesMeta:n}=e,r={},o="/",i=[];for(let e=0;e<n.length;++e){let s=n[e],a=e===n.length-1,l="/"===o?t:t.slice(o.length)||"/",u=O({path:s.relativePath,caseSensitive:s.caseSensitive,end:a},l);if(!u)return null;Object.assign(r,u.params);let c=s.route;i.push({params:r,pathname:j([o,u.pathname]),pathnameBase:k(j([o,u.pathnameBase])),route:c}),"/"!==u.pathnameBase&&(o=j([o,u.pathnameBase]))}return i}function O(e,t){"string"==typeof e&&(e={path:e,caseSensitive:!1,end:!0});let[n,r]=function(e,t,n){void 0===t&&(t=!1),void 0===n&&(n=!0),a("*"===e||!e.endsWith("*")||e.endsWith("/*"),'Route path "'+e+'" will be treated as if it were "'+e.replace(/\*$/,"/*")+'" because the `*` character must always follow a `/` in the pattern. To get rid of this warning, please change the route path to "'+e.replace(/\*$/,"/*")+'".');let r=[],o="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^$?{}|()[\]]/g,"\\$&").replace(/\/:(\w+)/g,((e,t)=>(r.push(t),"/([^\\/]+)")));return e.endsWith("*")?(r.push("*"),o+="*"===e||"/*"===e?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?o+="\\/*$":""!==e&&"/"!==e&&(o+="(?:(?=\\/|$))"),[new RegExp(o,t?void 0:"i"),r]}(e.path,e.caseSensitive,e.end),o=t.match(n);if(!o)return null;let i=o[0],s=i.replace(/(.)\/+$/,"$1"),l=o.slice(1);return{params:r.reduce(((e,t,n)=>{if("*"===t){let e=l[n]||"";s=i.slice(0,i.length-e.length).replace(/(.)\/+$/,"$1")}return e[t]=function(e,t){try{return decodeURIComponent(e)}catch(n){return a(!1,'The value for the URL param "'+t+'" will not be decoded because the string "'+e+'" is a malformed URL segment. This is probably due to a bad percent encoding ('+n+")."),e}}(l[n]||"",t),e}),{}),pathname:i,pathnameBase:s,pattern:e}}function T(e){try{return decodeURI(e)}catch(t){return a(!1,'The URL path "'+e+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent encoding ('+t+")."),e}}function _(e,t){if("/"===t)return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=t.endsWith("/")?t.length-1:t.length,r=e.charAt(n);return r&&"/"!==r?null:e.slice(n)||"/"}function R(e,t,n,r){return"Cannot include a '"+e+"' character in a manually specified `to."+t+"` field ["+JSON.stringify(r)+"].  Please separate it out to the `to."+n+'` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.'}function I(e){return e.filter(((e,t)=>0===t||e.route.path&&e.route.path.length>0))}function D(e,t,n,r){let i;void 0===r&&(r=!1),"string"==typeof e?i=p(e):(i=o({},e),s(!i.pathname||!i.pathname.includes("?"),R("?","pathname","search",i)),s(!i.pathname||!i.pathname.includes("#"),R("#","pathname","hash",i)),s(!i.search||!i.search.includes("#"),R("#","search","hash",i)));let a,l=""===e||""===i.pathname,u=l?"/":i.pathname;if(r||null==u)a=n;else{let e=t.length-1;if(u.startsWith("..")){let t=u.split("/");for(;".."===t[0];)t.shift(),e-=1;i.pathname=t.join("/")}a=e>=0?t[e]:"/"}let c=function(e,t){void 0===t&&(t="/");let{pathname:n,search:r="",hash:o=""}="string"==typeof e?p(e):e,i=n?n.startsWith("/")?n:function(e,t){let n=t.replace(/\/+$/,"").split("/");return e.split("/").forEach((e=>{".."===e?n.length>1&&n.pop():"."!==e&&n.push(e)})),n.length>1?n.join("/"):"/"}(n,t):t;return{pathname:i,search:M(r),hash:L(o)}}(i,a),d=u&&"/"!==u&&u.endsWith("/"),h=(l||"."===u)&&n.endsWith("/");return c.pathname.endsWith("/")||!d&&!h||(c.pathname+="/"),c}const j=e=>e.join("/").replace(/\/\/+/g,"/"),k=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),M=e=>e&&"?"!==e?e.startsWith("?")?e:"?"+e:"",L=e=>e&&"#"!==e?e.startsWith("#")?e:"#"+e:"";Error;class q{constructor(e,t,n,r){void 0===r&&(r=!1),this.status=e,this.statusText=t||"",this.internal=r,n instanceof Error?(this.data=n.toString(),this.error=n):this.data=n}}function N(e){return null!=e&&"number"==typeof e.status&&"string"==typeof e.statusText&&"boolean"==typeof e.internal&&"data"in e}const A=["post","put","patch","delete"],B=new Set(A),F=["get",...A],Q=new Set(F),z=new Set([301,302,303,307,308]),H=new Set([307,308]),U={state:"idle",location:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0},W={state:"idle",data:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0},J={state:"unblocked",proceed:void 0,reset:void 0,location:void 0},$=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,G="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement,K=!G,Z=e=>({hasErrorBoundary:Boolean(e.hasErrorBoundary)});function Y(e,t,n,r,o,i,s){let a,l;if(null!=i&&"path"!==s){a=[];for(let e of t)if(a.push(e),e.route.id===i){l=e;break}}else a=t,l=t[t.length-1];let u=D(o||".",I(a).map((e=>e.pathnameBase)),_(e.pathname,n)||e.pathname,"path"===s);return null==o&&(u.search=e.search,u.hash=e.hash),null!=o&&""!==o&&"."!==o||!l||!l.route.index||Ce(u.search)||(u.search=u.search?u.search.replace(/^\?/,"?index&"):"?index"),r&&"/"!==n&&(u.pathname="/"===u.pathname?n:j([n,u.pathname])),c(u)}function X(e,t,n,r){if(!r||!function(e){return null!=e&&"formData"in e}(r))return{path:n};if(r.formMethod&&(o=r.formMethod,!Q.has(o.toLowerCase())))return{path:n,error:pe(405,{method:r.formMethod})};var o;let i;if(r.formData){let t=r.formMethod||"get";if(i={formMethod:e?t.toUpperCase():t.toLowerCase(),formAction:he(n),formEncType:r&&r.formEncType||"application/x-www-form-urlencoded",formData:r.formData},ye(i.formMethod))return{path:n,submission:i}}let s=p(n),a=se(r.formData);return t&&s.search&&Ce(s.search)&&a.append("index",""),s.search="?"+a,{path:c(s),submission:i}}function ee(e,t,n,r,i,s,a,l,u,c,p,d,h){let f=h?Object.values(h)[0]:d?Object.values(d)[0]:void 0,m=e.createURL(t.location),y=e.createURL(i),v=h?Object.keys(h)[0]:void 0,b=function(e,t){let n=e;if(t){let r=e.findIndex((e=>e.route.id===t));r>=0&&(n=e.slice(0,r))}return n}(n,v).filter(((e,n)=>{if(e.route.lazy)return!0;if(null==e.route.loader)return!1;if(function(e,t,n){let r=!t||n.route.id!==t.route.id,o=void 0===e[n.route.id];return r||o}(t.loaderData,t.matches[n],e)||a.some((t=>t===e.route.id)))return!0;let i=t.matches[n],l=e;return ne(e,o({currentUrl:m,currentParams:i.params,nextUrl:y,nextParams:l.params},r,{actionResult:f,defaultShouldRevalidate:s||m.pathname+m.search===y.pathname+y.search||m.search!==y.search||te(i,l)}))})),C=[];return u.forEach(((e,i)=>{if(!n.some((t=>t.route.id===e.routeId)))return;let a=g(c,e.path,p);if(!a)return void C.push({key:i,routeId:e.routeId,path:e.path,matches:null,match:null,controller:null});let u=xe(a,e.path);(l.includes(i)||ne(u,o({currentUrl:m,currentParams:t.matches[t.matches.length-1].params,nextUrl:y,nextParams:n[n.length-1].params},r,{actionResult:f,defaultShouldRevalidate:s})))&&C.push({key:i,routeId:e.routeId,path:e.path,matches:a,match:u,controller:new AbortController})})),[b,C]}function te(e,t){let n=e.route.path;return e.pathname!==t.pathname||null!=n&&n.endsWith("*")&&e.params["*"]!==t.params["*"]}function ne(e,t){if(e.route.shouldRevalidate){let n=e.route.shouldRevalidate(t);if("boolean"==typeof n)return n}return t.defaultShouldRevalidate}async function re(e,t,n){if(!e.lazy)return;let r=await e.lazy();if(!e.lazy)return;let i=n[e.id];s(i,"No route found in manifest");let l={};for(let e in r){let t=void 0!==i[e]&&"hasErrorBoundary"!==e;a(!t,'Route "'+i.id+'" has a static property "'+e+'" defined but its lazy function is also returning a value for this property. The lazy route property "'+e+'" will be ignored.'),t||h.has(e)||(l[e]=r[e])}Object.assign(i,l),Object.assign(i,o({},t(i),{lazy:void 0}))}async function oe(e,t,n,r,o,i,a,l,u,c){let p,h,f;void 0===l&&(l=!1),void 0===u&&(u=!1);let g=e=>{let r,o=new Promise(((e,t)=>r=t));return f=()=>r(),t.signal.addEventListener("abort",f),Promise.race([e({request:t,params:n.params,context:c}),o])};try{let r=n.route[e];if(n.route.lazy)if(r)h=(await Promise.all([g(r),re(n.route,i,o)]))[0];else{if(await re(n.route,i,o),r=n.route[e],!r){if("action"===e){let e=new URL(t.url),r=e.pathname+e.search;throw pe(405,{method:t.method,pathname:r,routeId:n.route.id})}return{type:d.data,data:void 0}}h=await g(r)}else{if(!r){let e=new URL(t.url);throw pe(404,{pathname:e.pathname+e.search})}h=await g(r)}s(void 0!==h,"You defined "+("action"===e?"an action":"a loader")+' for route "'+n.route.id+"\" but didn't return anything from your `"+e+"` function. Please return a value or `null`.")}catch(e){p=d.error,h=e}finally{f&&t.signal.removeEventListener("abort",f)}if(null!=(m=h)&&"number"==typeof m.status&&"string"==typeof m.statusText&&"object"==typeof m.headers&&void 0!==m.body){let e,o=h.status;if(z.has(o)){let e=h.headers.get("Location");if(s(e,"Redirects returned/thrown from loaders/actions must have a Location header"),$.test(e)){if(!l){let n=new URL(t.url),r=e.startsWith("//")?new URL(n.protocol+e):new URL(e),o=null!=_(r.pathname,a);r.origin===n.origin&&o&&(e=r.pathname+r.search+r.hash)}}else e=Y(new URL(t.url),r.slice(0,r.indexOf(n)+1),a,!0,e);if(l)throw h.headers.set("Location",e),h;return{type:d.redirect,status:o,location:e,revalidate:null!==h.headers.get("X-Remix-Revalidate")}}if(u)throw{type:p||d.data,response:h};let i=h.headers.get("Content-Type");return e=i&&/\bapplication\/json\b/.test(i)?await h.json():await h.text(),p===d.error?{type:p,error:new q(o,h.statusText,e),headers:h.headers}:{type:d.data,data:e,statusCode:h.status,headers:h.headers}}var m,y,v;return p===d.error?{type:p,error:h}:function(e){let t=e;return t&&"object"==typeof t&&"object"==typeof t.data&&"function"==typeof t.subscribe&&"function"==typeof t.cancel&&"function"==typeof t.resolveData}(h)?{type:d.deferred,deferredData:h,statusCode:null==(y=h.init)?void 0:y.status,headers:(null==(v=h.init)?void 0:v.headers)&&new Headers(h.init.headers)}:{type:d.data,data:h}}function ie(e,t,n,r){let o=e.createURL(he(t)).toString(),i={signal:n};if(r&&ye(r.formMethod)){let{formMethod:e,formEncType:t,formData:n}=r;i.method=e.toUpperCase(),i.body="application/x-www-form-urlencoded"===t?se(n):n}return new Request(o,i)}function se(e){let t=new URLSearchParams;for(let[n,r]of e.entries())t.append(n,r instanceof File?r.name:r);return t}function ae(e,t,n,r,i,a,l,u){let{loaderData:c,errors:p}=function(e,t,n,r,o){let i,a={},l=null,u=!1,c={};return n.forEach(((n,p)=>{let d=t[p].route.id;if(s(!me(n),"Cannot handle redirect results in processLoaderData"),ge(n)){let t=ue(e,d),o=n.error;r&&(o=Object.values(r)[0],r=void 0),l=l||{},null==l[t.route.id]&&(l[t.route.id]=o),a[d]=void 0,u||(u=!0,i=N(n.error)?n.error.status:500),n.headers&&(c[d]=n.headers)}else fe(n)?(o.set(d,n.deferredData),a[d]=n.deferredData.data):a[d]=n.data,null==n.statusCode||200===n.statusCode||u||(i=n.statusCode),n.headers&&(c[d]=n.headers)})),r&&(l=r,a[Object.keys(r)[0]]=void 0),{loaderData:a,errors:l,statusCode:i||200,loaderHeaders:c}}(t,n,r,i,u);for(let t=0;t<a.length;t++){let{key:n,match:r,controller:i}=a[t];s(void 0!==l&&void 0!==l[t],"Did not find corresponding fetcher result");let u=l[t];if(!i||!i.signal.aborted)if(ge(u)){let t=ue(e.matches,null==r?void 0:r.route.id);p&&p[t.route.id]||(p=o({},p,{[t.route.id]:u.error})),e.fetchers.delete(n)}else if(me(u))s(!1,"Unhandled fetcher revalidation redirect");else if(fe(u))s(!1,"Unhandled fetcher deferred data");else{let t={state:"idle",data:u.data,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0," _hasFetcherDoneAnything ":!0};e.fetchers.set(n,t)}}return{loaderData:c,errors:p}}function le(e,t,n,r){let i=o({},t);for(let o of n){let n=o.route.id;if(t.hasOwnProperty(n)?void 0!==t[n]&&(i[n]=t[n]):void 0!==e[n]&&o.route.loader&&(i[n]=e[n]),r&&r.hasOwnProperty(n))break}return i}function ue(e,t){return(t?e.slice(0,e.findIndex((e=>e.route.id===t))+1):[...e]).reverse().find((e=>!0===e.route.hasErrorBoundary))||e[0]}function ce(e){let t=e.find((e=>e.index||!e.path||"/"===e.path))||{id:"__shim-error-route__"};return{matches:[{params:{},pathname:"",pathnameBase:"",route:t}],route:t}}function pe(e,t){let{pathname:n,routeId:r,method:o,type:i}=void 0===t?{}:t,s="Unknown Server Error",a="Unknown @remix-run/router error";return 400===e?(s="Bad Request",o&&n&&r?a="You made a "+o+' request to "'+n+'" but did not provide a `loader` for route "'+r+'", so there is no way to handle the request.':"defer-action"===i&&(a="defer() is not supported in actions")):403===e?(s="Forbidden",a='Route "'+r+'" does not match URL "'+n+'"'):404===e?(s="Not Found",a='No route matches URL "'+n+'"'):405===e&&(s="Method Not Allowed",o&&n&&r?a="You made a "+o.toUpperCase()+' request to "'+n+'" but did not provide an `action` for route "'+r+'", so there is no way to handle the request.':o&&(a='Invalid request method "'+o.toUpperCase()+'"')),new q(e||500,s,new Error(a),!0)}function de(e){for(let t=e.length-1;t>=0;t--){let n=e[t];if(me(n))return n}}function he(e){return c(o({},"string"==typeof e?p(e):e,{hash:""}))}function fe(e){return e.type===d.deferred}function ge(e){return e.type===d.error}function me(e){return(e&&e.type)===d.redirect}function ye(e){return B.has(e.toLowerCase())}async function ve(e,t,n,r,o,i){for(let a=0;a<n.length;a++){let l=n[a],u=t[a];if(!u)continue;let c=e.find((e=>e.route.id===u.route.id)),p=null!=c&&!te(c,u)&&void 0!==(i&&i[u.route.id]);if(fe(l)&&(o||p)){let e=r[a];s(e,"Expected an AbortSignal for revalidating fetcher deferred result"),await be(l,e,o).then((e=>{e&&(n[a]=e||n[a])}))}}}async function be(e,t,n){if(void 0===n&&(n=!1),!await e.deferredData.resolveData(t)){if(n)try{return{type:d.data,data:e.deferredData.unwrappedData}}catch(e){return{type:d.error,error:e}}return{type:d.data,data:e.deferredData.data}}}function Ce(e){return new URLSearchParams(e).getAll("index").some((e=>""===e))}function we(e,t){let{route:n,pathname:r,params:o}=e;return{id:n.id,pathname:r,params:o,data:t[n.id],handle:n.handle}}function xe(e,t){let n="string"==typeof t?p(t).search:t.search;if(e[e.length-1].route.index&&Ce(n||""))return e[e.length-1];let r=I(e);return r[r.length-1]}function Pe(){return Pe=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Pe.apply(this,arguments)}Symbol("deferred");const Se=t.createContext(null),Ve=t.createContext(null),Ee=t.createContext(null),Oe=t.createContext(null),Te=t.createContext({outlet:null,matches:[],isDataRoute:!1}),_e=t.createContext(null);function Re(){return null!=t.useContext(Oe)}function Ie(){return Re()||s(!1),t.useContext(Oe).location}function De(e){t.useContext(Ee).static||t.useLayoutEffect(e)}function je(){let{isDataRoute:e}=t.useContext(Te);return e?function(){let{router:e}=Qe(Be.UseNavigateStable),n=He(Fe.UseNavigateStable),r=t.useRef(!1);De((()=>{r.current=!0}));let o=t.useCallback((function(t,o){void 0===o&&(o={}),r.current&&("number"==typeof t?e.navigate(t):e.navigate(t,Pe({fromRouteId:n},o)))}),[e,n]);return o}():function(){Re()||s(!1);let e=t.useContext(Se),{basename:n,navigator:r}=t.useContext(Ee),{matches:o}=t.useContext(Te),{pathname:i}=Ie(),a=JSON.stringify(I(o).map((e=>e.pathnameBase))),l=t.useRef(!1);De((()=>{l.current=!0}));let u=t.useCallback((function(t,o){if(void 0===o&&(o={}),!l.current)return;if("number"==typeof t)return void r.go(t);let s=D(t,JSON.parse(a),i,"path"===o.relative);null==e&&"/"!==n&&(s.pathname="/"===s.pathname?n:j([n,s.pathname])),(o.replace?r.replace:r.push)(s,o.state,o)}),[n,r,a,i,e]);return u}()}function ke(e,n){let{relative:r}=void 0===n?{}:n,{matches:o}=t.useContext(Te),{pathname:i}=Ie(),s=JSON.stringify(I(o).map((e=>e.pathnameBase)));return t.useMemo((()=>D(e,JSON.parse(s),i,"path"===r)),[e,s,i,r])}function Me(n,r,o){Re()||s(!1);let{navigator:i}=t.useContext(Ee),{matches:a}=t.useContext(Te),l=a[a.length-1],u=l?l.params:{},c=(l&&l.pathname,l?l.pathnameBase:"/");l&&l.route;let d,h=Ie();if(r){var f;let e="string"==typeof r?p(r):r;"/"===c||(null==(f=e.pathname)?void 0:f.startsWith(c))||s(!1),d=e}else d=h;let m=d.pathname||"/",y=g(n,{pathname:"/"===c?m:m.slice(c.length)||"/"}),v=function(e,n,r){var o;if(void 0===n&&(n=[]),void 0===r&&(r=null),null==e){var i;if(null==(i=r)||!i.errors)return null;e=r.matches}let a=e,l=null==(o=r)?void 0:o.errors;if(null!=l){let e=a.findIndex((e=>e.route.id&&(null==l?void 0:l[e.route.id])));e>=0||s(!1),a=a.slice(0,Math.min(a.length,e+1))}return a.reduceRight(((e,o,i)=>{let s=o.route.id?null==l?void 0:l[o.route.id]:null,u=null;r&&(u=o.route.errorElement||qe);let c=n.concat(a.slice(0,i+1)),p=()=>{let n;return n=s?u:o.route.Component?t.createElement(o.route.Component,null):o.route.element?o.route.element:e,t.createElement(Ae,{match:o,routeContext:{outlet:e,matches:c,isDataRoute:null!=r},children:n})};return r&&(o.route.ErrorBoundary||o.route.errorElement||0===i)?t.createElement(Ne,{location:r.location,revalidation:r.revalidation,component:u,error:s,children:p(),routeContext:{outlet:null,matches:c,isDataRoute:!0}}):p()}),null)}(y&&y.map((e=>Object.assign({},e,{params:Object.assign({},u,e.params),pathname:j([c,i.encodeLocation?i.encodeLocation(e.pathname).pathname:e.pathname]),pathnameBase:"/"===e.pathnameBase?c:j([c,i.encodeLocation?i.encodeLocation(e.pathnameBase).pathname:e.pathnameBase])}))),a,o);return r&&v?t.createElement(Oe.Provider,{value:{location:Pe({pathname:"/",search:"",hash:"",state:null,key:"default"},d),navigationType:e.Pop}},v):v}function Le(){let e=function(){var e;let n=t.useContext(_e),r=ze(Fe.UseRouteError),o=He(Fe.UseRouteError);return n||(null==(e=r.errors)?void 0:e[o])}(),n=N(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),r=e instanceof Error?e.stack:null,o={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"};return t.createElement(t.Fragment,null,t.createElement("h2",null,"Unexpected Application Error!"),t.createElement("h3",{style:{fontStyle:"italic"}},n),r?t.createElement("pre",{style:o},r):null,null)}const qe=t.createElement(Le,null);class Ne extends t.Component{constructor(e){super(e),this.state={location:e.location,revalidation:e.revalidation,error:e.error}}static getDerivedStateFromError(e){return{error:e}}static getDerivedStateFromProps(e,t){return t.location!==e.location||"idle"!==t.revalidation&&"idle"===e.revalidation?{error:e.error,location:e.location,revalidation:e.revalidation}:{error:e.error||t.error,location:t.location,revalidation:e.revalidation||t.revalidation}}componentDidCatch(e,t){console.error("React Router caught the following error during render",e,t)}render(){return this.state.error?t.createElement(Te.Provider,{value:this.props.routeContext},t.createElement(_e.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function Ae(e){let{routeContext:n,match:r,children:o}=e,i=t.useContext(Se);return i&&i.static&&i.staticContext&&(r.route.errorElement||r.route.ErrorBoundary)&&(i.staticContext._deepestRenderedBoundaryId=r.route.id),t.createElement(Te.Provider,{value:n},o)}var Be,Fe;function Qe(e){let n=t.useContext(Se);return n||s(!1),n}function ze(e){let n=t.useContext(Ve);return n||s(!1),n}function He(e){let n=function(e){let n=t.useContext(Te);return n||s(!1),n}(),r=n.matches[n.matches.length-1];return r.route.id||s(!1),r.route.id}!function(e){e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate"}(Be||(Be={})),function(e){e.UseBlocker="useBlocker",e.UseLoaderData="useLoaderData",e.UseActionData="useActionData",e.UseRouteError="useRouteError",e.UseNavigation="useNavigation",e.UseRouteLoaderData="useRouteLoaderData",e.UseMatches="useMatches",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e.UseRouteId="useRouteId"}(Fe||(Fe={}));let Ue=0;function We(e){let{fallbackElement:n,router:r}=e,[o,i]=t.useState(r.state);t.useLayoutEffect((()=>r.subscribe(i)),[r,i]);let s=t.useMemo((()=>({createHref:r.createHref,encodeLocation:r.encodeLocation,go:e=>r.navigate(e),push:(e,t,n)=>r.navigate(e,{state:t,preventScrollReset:null==n?void 0:n.preventScrollReset}),replace:(e,t,n)=>r.navigate(e,{replace:!0,state:t,preventScrollReset:null==n?void 0:n.preventScrollReset})})),[r]),a=r.basename||"/",l=t.useMemo((()=>({router:r,navigator:s,static:!1,basename:a})),[r,s,a]);return t.createElement(t.Fragment,null,t.createElement(Se.Provider,{value:l},t.createElement(Ve.Provider,{value:o},t.createElement($e,{basename:r.basename,location:r.state.location,navigationType:r.state.historyAction,navigator:s},r.state.initialized?t.createElement(Je,{routes:r.routes,state:o}):n))),null)}function Je(e){let{routes:t,state:n}=e;return Me(t,void 0,n)}function $e(n){let{basename:r="/",children:o=null,location:i,navigationType:a=e.Pop,navigator:l,static:u=!1}=n;Re()&&s(!1);let c=r.replace(/^\/*/,"/"),d=t.useMemo((()=>({basename:c,navigator:l,static:u})),[c,l,u]);"string"==typeof i&&(i=p(i));let{pathname:h="/",search:f="",hash:g="",state:m=null,key:y="default"}=i,v=t.useMemo((()=>{let e=_(h,c);return null==e?null:{location:{pathname:e,search:f,hash:g,state:m,key:y},navigationType:a}}),[c,h,f,g,m,y,a]);return null==v?null:t.createElement(Ee.Provider,{value:d},t.createElement(Oe.Provider,{children:o,value:v}))}var Ge;function Ke(){return Ke=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Ke.apply(this,arguments)}!function(e){e[e.pending=0]="pending",e[e.success=1]="success",e[e.error=2]="error"}(Ge||(Ge={})),new Promise((()=>{})),t.Component;const Ze=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset"];function Ye(e){if(!e)return null;let t=Object.entries(e),n={};for(let[e,r]of t)if(r&&"RouteErrorResponse"===r.__type)n[e]=new q(r.status,r.statusText,r.data,!0===r.internal);else if(r&&"Error"===r.__type){let t=new Error(r.message);t.stack="",n[e]=t}else n[e]=r;return n}const Xe="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement,et=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,tt=t.forwardRef((function(e,n){let r,{onClick:o,relative:i,reloadDocument:a,replace:l,state:u,target:p,to:d,preventScrollReset:h}=e,f=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,Ze),{basename:g}=t.useContext(Ee),m=!1;if("string"==typeof d&&et.test(d)&&(r=d,Xe))try{let e=new URL(window.location.href),t=d.startsWith("//")?new URL(e.protocol+d):new URL(d),n=_(t.pathname,g);t.origin===e.origin&&null!=n?d=n+t.search+t.hash:m=!0}catch(e){}let y=function(e,n){let{relative:r}=void 0===n?{}:n;Re()||s(!1);let{basename:o,navigator:i}=t.useContext(Ee),{hash:a,pathname:l,search:u}=ke(e,{relative:r}),c=l;return"/"!==o&&(c="/"===l?o:j([o,l])),i.createHref({pathname:c,search:u,hash:a})}(d,{relative:i}),v=function(e,n){let{target:r,replace:o,state:i,preventScrollReset:s,relative:a}=void 0===n?{}:n,l=je(),u=Ie(),p=ke(e,{relative:a});return t.useCallback((t=>{if(function(e,t){return!(0!==e.button||t&&"_self"!==t||function(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}(e))}(t,r)){t.preventDefault();let n=void 0!==o?o:c(u)===c(p);l(e,{replace:n,state:i,preventScrollReset:s,relative:a})}}),[u,l,p,o,i,r,e,s,a])}(d,{replace:l,state:u,target:p,preventScrollReset:h,relative:i});return t.createElement("a",Ke({},f,{href:r||y,onClick:m||a?o:function(e){o&&o(e),e.defaultPrevented||v(e)},ref:n,target:p}))}));var nt,rt;function ot(e,t,n,r,o,i,s){try{var a=e[i](s),l=a.value}catch(e){return void n(e)}a.done?t(l):Promise.resolve(l).then(r,o)}function it(e){return function(){var t=this,n=arguments;return new Promise((function(r,o){var i=e.apply(t,n);function s(e){ot(i,r,o,s,a,"next",e)}function a(e){ot(i,r,o,s,a,"throw",e)}s(void 0)}))}}function st(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function at(e,t){if(e){if("string"==typeof e)return st(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?st(e,t):void 0}}function lt(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,s,a=[],l=!0,u=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=i.call(n)).done)&&(a.push(r.value),a.length!==t);l=!0);}catch(e){u=!0,o=e}finally{try{if(!l&&null!=n.return&&(s=n.return(),Object(s)!==s))return}finally{if(u)throw o}}return a}}(e,t)||at(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmitImpl="useSubmitImpl",e.UseFetcher="useFetcher"})(nt||(nt={})),function(e){e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"}(rt||(rt={}));var ut=n(687),ct=n.n(ut),pt=n(184),dt=n.n(pt);function ht(){return ht=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},ht.apply(this,arguments)}function ft(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}function gt(e){return"default"+e.charAt(0).toUpperCase()+e.substr(1)}function mt(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:String(t)}n(143);var yt=n(893);const vt=t.createContext({prefixes:{},breakpoints:["xxl","xl","lg","md","sm","xs"],minBreakpoint:"xs"}),{Consumer:bt,Provider:Ct}=vt;function wt(e,n){const{prefixes:r}=(0,t.useContext)(vt);return e||r[n]||n}function xt(){const{breakpoints:e}=(0,t.useContext)(vt);return e}function Pt(){const{minBreakpoint:e}=(0,t.useContext)(vt);return e}var St=/([A-Z])/g,Vt=/^ms-/;function Et(e){return function(e){return e.replace(St,"-$1").toLowerCase()}(e).replace(Vt,"-ms-")}var Ot=/^((translate|rotate|scale)(X|Y|Z|3d)?|matrix(3d)?|perspective|skew(X|Y)?)$/i;const Tt=function(e,t){var n="",r="";if("string"==typeof t)return e.style.getPropertyValue(Et(t))||function(e,t){return function(e){var t=function(e){return e&&e.ownerDocument||document}(e);return t&&t.defaultView||window}(e).getComputedStyle(e,void 0)}(e).getPropertyValue(Et(t));Object.keys(t).forEach((function(o){var i=t[o];i||0===i?function(e){return!(!e||!Ot.test(e))}(o)?r+=o+"("+i+") ":n+=Et(o)+": "+i+";":e.style.removeProperty(Et(o))})),r&&(n+="transform: "+r+";"),e.style.cssText+=";"+n};function _t(e,t){return _t=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},_t(e,t)}var Rt=n(935);const It=t.createContext(null);var Dt="unmounted",jt="exited",kt="entering",Mt="entered",Lt="exiting",qt=function(e){var n,r;function o(t,n){var r;r=e.call(this,t,n)||this;var o,i=n&&!n.isMounting?t.enter:t.appear;return r.appearStatus=null,t.in?i?(o=jt,r.appearStatus=kt):o=Mt:o=t.unmountOnExit||t.mountOnEnter?Dt:jt,r.state={status:o},r.nextCallback=null,r}r=e,(n=o).prototype=Object.create(r.prototype),n.prototype.constructor=n,_t(n,r),o.getDerivedStateFromProps=function(e,t){return e.in&&t.status===Dt?{status:jt}:null};var i=o.prototype;return i.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},i.componentDidUpdate=function(e){var t=null;if(e!==this.props){var n=this.state.status;this.props.in?n!==kt&&n!==Mt&&(t=kt):n!==kt&&n!==Mt||(t=Lt)}this.updateStatus(!1,t)},i.componentWillUnmount=function(){this.cancelNextCallback()},i.getTimeouts=function(){var e,t,n,r=this.props.timeout;return e=t=n=r,null!=r&&"number"!=typeof r&&(e=r.exit,t=r.enter,n=void 0!==r.appear?r.appear:t),{exit:e,enter:t,appear:n}},i.updateStatus=function(e,t){if(void 0===e&&(e=!1),null!==t)if(this.cancelNextCallback(),t===kt){if(this.props.unmountOnExit||this.props.mountOnEnter){var n=this.props.nodeRef?this.props.nodeRef.current:Rt.findDOMNode(this);n&&function(e){e.scrollTop}(n)}this.performEnter(e)}else this.performExit();else this.props.unmountOnExit&&this.state.status===jt&&this.setState({status:Dt})},i.performEnter=function(e){var t=this,n=this.props.enter,r=this.context?this.context.isMounting:e,o=this.props.nodeRef?[r]:[Rt.findDOMNode(this),r],i=o[0],s=o[1],a=this.getTimeouts(),l=r?a.appear:a.enter;e||n?(this.props.onEnter(i,s),this.safeSetState({status:kt},(function(){t.props.onEntering(i,s),t.onTransitionEnd(l,(function(){t.safeSetState({status:Mt},(function(){t.props.onEntered(i,s)}))}))}))):this.safeSetState({status:Mt},(function(){t.props.onEntered(i)}))},i.performExit=function(){var e=this,t=this.props.exit,n=this.getTimeouts(),r=this.props.nodeRef?void 0:Rt.findDOMNode(this);t?(this.props.onExit(r),this.safeSetState({status:Lt},(function(){e.props.onExiting(r),e.onTransitionEnd(n.exit,(function(){e.safeSetState({status:jt},(function(){e.props.onExited(r)}))}))}))):this.safeSetState({status:jt},(function(){e.props.onExited(r)}))},i.cancelNextCallback=function(){null!==this.nextCallback&&(this.nextCallback.cancel(),this.nextCallback=null)},i.safeSetState=function(e,t){t=this.setNextCallback(t),this.setState(e,t)},i.setNextCallback=function(e){var t=this,n=!0;return this.nextCallback=function(r){n&&(n=!1,t.nextCallback=null,e(r))},this.nextCallback.cancel=function(){n=!1},this.nextCallback},i.onTransitionEnd=function(e,t){this.setNextCallback(t);var n=this.props.nodeRef?this.props.nodeRef.current:Rt.findDOMNode(this),r=null==e&&!this.props.addEndListener;if(n&&!r){if(this.props.addEndListener){var o=this.props.nodeRef?[this.nextCallback]:[n,this.nextCallback],i=o[0],s=o[1];this.props.addEndListener(i,s)}null!=e&&setTimeout(this.nextCallback,e)}else setTimeout(this.nextCallback,0)},i.render=function(){var e=this.state.status;if(e===Dt)return null;var n=this.props,r=n.children,o=(n.in,n.mountOnEnter,n.unmountOnExit,n.appear,n.enter,n.exit,n.timeout,n.addEndListener,n.onEnter,n.onEntering,n.onEntered,n.onExit,n.onExiting,n.onExited,n.nodeRef,ft(n,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]));return t.createElement(It.Provider,{value:null},"function"==typeof r?r(e,o):t.cloneElement(t.Children.only(r),o))},o}(t.Component);function Nt(){}qt.contextType=It,qt.propTypes={},qt.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:Nt,onEntering:Nt,onEntered:Nt,onExit:Nt,onExiting:Nt,onExited:Nt},qt.UNMOUNTED=Dt,qt.EXITED=jt,qt.ENTERING=kt,qt.ENTERED=Mt,qt.EXITING=Lt;const At=qt,Bt=!("undefined"==typeof window||!window.document||!window.document.createElement);var Ft=!1,Qt=!1;try{var zt={get passive(){return Ft=!0},get once(){return Qt=Ft=!0}};Bt&&(window.addEventListener("test",zt,zt),window.removeEventListener("test",zt,!0))}catch(En){}const Ht=function(e,t,n,r){return function(e,t,n,r){if(r&&"boolean"!=typeof r&&!Qt){var o=r.once,i=r.capture,s=n;!Qt&&o&&(s=n.__once||function e(r){this.removeEventListener(t,e,i),n.call(this,r)},n.__once=s),e.addEventListener(t,s,Ft?r:i)}e.addEventListener(t,n,r)}(e,t,n,r),function(){!function(e,t,n,r){var o=r&&"boolean"!=typeof r?r.capture:r;e.removeEventListener(t,n,o),n.__once&&e.removeEventListener(t,n.__once,o)}(e,t,n,r)}};function Ut(e,t,n,r){var o,i;null==n&&(i=-1===(o=Tt(e,"transitionDuration")||"").indexOf("ms")?1e3:1,n=parseFloat(o)*i||0);var s=function(e,t,n){void 0===n&&(n=5);var r=!1,o=setTimeout((function(){r||function(e,t,n,r){if(void 0===n&&(n=!1),void 0===r&&(r=!0),e){var o=document.createEvent("HTMLEvents");o.initEvent("transitionend",n,r),e.dispatchEvent(o)}}(e,0,!0)}),t+n),i=Ht(e,"transitionend",(function(){r=!0}),{once:!0});return function(){clearTimeout(o),i()}}(e,n,r),a=Ht(e,"transitionend",t);return function(){s(),a()}}function Wt(e,t){const n=Tt(e,t)||"",r=-1===n.indexOf("ms")?1e3:1;return parseFloat(n)*r}function Jt(e,t){const n=Wt(e,"transitionDuration"),r=Wt(e,"transitionDelay"),o=Ut(e,(n=>{n.target===e&&(o(),t(n))}),n+r)}const $t=function(...e){return e.filter((e=>null!=e)).reduce(((e,t)=>{if("function"!=typeof t)throw new Error("Invalid Argument Type, must only provide functions, undefined, or null.");return null===e?t:function(...n){e.apply(this,n),t.apply(this,n)}}),null)};var Gt=function(e){return e&&"function"!=typeof e?function(t){e.current=t}:e};const Kt=t.forwardRef((({onEnter:e,onEntering:n,onEntered:r,onExit:o,onExiting:i,onExited:s,addEndListener:a,children:l,childRef:u,...c},p)=>{const d=(0,t.useRef)(null),h=(P=d,S=u,(0,t.useMemo)((function(){return function(e,t){var n=Gt(e),r=Gt(t);return function(e){n&&n(e),r&&r(e)}}(P,S)}),[P,S])),f=e=>{var t;h((t=e)&&"setState"in t?Rt.findDOMNode(t):null!=t?t:null)},g=e=>t=>{e&&d.current&&e(d.current,t)},m=(0,t.useCallback)(g(e),[e]),y=(0,t.useCallback)(g(n),[n]),v=(0,t.useCallback)(g(r),[r]),b=(0,t.useCallback)(g(o),[o]),C=(0,t.useCallback)(g(i),[i]),w=(0,t.useCallback)(g(s),[s]),x=(0,t.useCallback)(g(a),[a]);var P,S;return(0,yt.jsx)(At,{ref:p,...c,onEnter:m,onEntered:v,onEntering:y,onExit:b,onExited:w,onExiting:C,addEndListener:x,nodeRef:d,children:"function"==typeof l?(e,t)=>l(e,{...t,ref:f}):t.cloneElement(l,{ref:f})})})),Zt=Kt,Yt={height:["marginTop","marginBottom"],width:["marginLeft","marginRight"]};function Xt(e,t){const n=t[`offset${e[0].toUpperCase()}${e.slice(1)}`],r=Yt[e];return n+parseInt(Tt(t,r[0]),10)+parseInt(Tt(t,r[1]),10)}const en={[jt]:"collapse",[Lt]:"collapsing",[kt]:"collapsing",[Mt]:"collapse show"},tn=t.forwardRef((({onEnter:e,onEntering:n,onEntered:r,onExit:o,onExiting:i,className:s,children:a,dimension:l="height",in:u=!1,timeout:c=300,mountOnEnter:p=!1,unmountOnExit:d=!1,appear:h=!1,getDimensionValue:f=Xt,...g},m)=>{const y="function"==typeof l?l():l,v=(0,t.useMemo)((()=>$t((e=>{e.style[y]="0"}),e)),[y,e]),b=(0,t.useMemo)((()=>$t((e=>{const t=`scroll${y[0].toUpperCase()}${y.slice(1)}`;e.style[y]=`${e[t]}px`}),n)),[y,n]),C=(0,t.useMemo)((()=>$t((e=>{e.style[y]=null}),r)),[y,r]),w=(0,t.useMemo)((()=>$t((e=>{e.style[y]=`${f(y,e)}px`,e.offsetHeight}),o)),[o,f,y]),x=(0,t.useMemo)((()=>$t((e=>{e.style[y]=null}),i)),[y,i]);return(0,yt.jsx)(Zt,{ref:m,addEndListener:Jt,...g,"aria-expanded":g.role?u:null,onEnter:v,onEntering:b,onEntered:C,onExit:w,onExiting:x,childRef:a.ref,in:u,timeout:c,mountOnEnter:p,unmountOnExit:d,appear:h,children:(e,n)=>t.cloneElement(a,{...n,className:dt()(s,a.props.className,en[e],"width"===y&&"collapse-horizontal")})})}));function nn(e,t){return Array.isArray(e)?e.includes(t):e===t}const rn=t.createContext({});rn.displayName="AccordionContext";const on=rn,sn=t.forwardRef((({as:e="div",bsPrefix:n,className:r,children:o,eventKey:i,...s},a)=>{const{activeEventKey:l}=(0,t.useContext)(on);return n=wt(n,"accordion-collapse"),(0,yt.jsx)(tn,{ref:a,in:nn(l,i),...s,className:dt()(r,n),children:(0,yt.jsx)(e,{children:t.Children.only(o)})})}));sn.displayName="AccordionCollapse";const an=sn,ln=t.createContext({eventKey:""});ln.displayName="AccordionItemContext";const un=ln,cn=t.forwardRef((({as:e="div",bsPrefix:n,className:r,onEnter:o,onEntering:i,onEntered:s,onExit:a,onExiting:l,onExited:u,...c},p)=>{n=wt(n,"accordion-body");const{eventKey:d}=(0,t.useContext)(un);return(0,yt.jsx)(an,{eventKey:d,onEnter:o,onEntering:i,onEntered:s,onExit:a,onExiting:l,onExited:u,children:(0,yt.jsx)(e,{ref:p,...c,className:dt()(r,n)})})}));cn.displayName="AccordionBody";const pn=cn,dn=t.forwardRef((({as:e="button",bsPrefix:n,className:r,onClick:o,...i},s)=>{n=wt(n,"accordion-button");const{eventKey:a}=(0,t.useContext)(un),l=function(e,n){const{activeEventKey:r,onSelect:o,alwaysOpen:i}=(0,t.useContext)(on);return t=>{let s=e===r?null:e;i&&(s=Array.isArray(r)?r.includes(e)?r.filter((t=>t!==e)):[...r,e]:[e]),null==o||o(s,t),null==n||n(t)}}(a,o),{activeEventKey:u}=(0,t.useContext)(on);return"button"===e&&(i.type="button"),(0,yt.jsx)(e,{ref:s,onClick:l,...i,"aria-expanded":Array.isArray(u)?u.includes(a):a===u,className:dt()(r,n,!nn(u,a)&&"collapsed")})}));dn.displayName="AccordionButton";const hn=dn,fn=t.forwardRef((({as:e="h2",bsPrefix:t,className:n,children:r,onClick:o,...i},s)=>(t=wt(t,"accordion-header"),(0,yt.jsx)(e,{ref:s,...i,className:dt()(n,t),children:(0,yt.jsx)(hn,{onClick:o,children:r})}))));fn.displayName="AccordionHeader";const gn=fn,mn=t.forwardRef((({as:e="div",bsPrefix:n,className:r,eventKey:o,...i},s)=>{n=wt(n,"accordion-item");const a=(0,t.useMemo)((()=>({eventKey:o})),[o]);return(0,yt.jsx)(un.Provider,{value:a,children:(0,yt.jsx)(e,{ref:s,...i,className:dt()(r,n)})})}));mn.displayName="AccordionItem";const yn=mn,vn=t.forwardRef(((e,n)=>{const{as:r="div",activeKey:o,bsPrefix:i,className:s,onSelect:a,flush:l,alwaysOpen:u,...c}=function(e,n){return Object.keys(n).reduce((function(r,o){var i,s=r,a=s[gt(o)],l=s[o],u=ft(s,[gt(o),o].map(mt)),c=n[o],p=function(e,n,r){var o=(0,t.useRef)(void 0!==e),i=(0,t.useState)(n),s=i[0],a=i[1],l=void 0!==e,u=o.current;return o.current=l,!l&&u&&s!==n&&a(n),[l?e:s,(0,t.useCallback)((function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),o=1;o<t;o++)n[o-1]=arguments[o];r&&r.apply(void 0,[e].concat(n)),a(e)}),[r])]}(l,a,e[c]),d=p[0],h=p[1];return ht({},u,((i={})[o]=d,i[c]=h,i))}),e)}(e,{activeKey:"onSelect"}),p=wt(i,"accordion"),d=(0,t.useMemo)((()=>({activeEventKey:o,onSelect:a,alwaysOpen:u})),[o,a,u]);return(0,yt.jsx)(on.Provider,{value:d,children:(0,yt.jsx)(r,{ref:n,...c,className:dt()(s,p,l&&`${p}-flush`)})})}));vn.displayName="Accordion";const bn=Object.assign(vn,{Button:hn,Collapse:an,Item:yn,Header:gn,Body:pn}),Cn=["as","disabled"];function wn({tagName:e,disabled:t,href:n,target:r,rel:o,role:i,onClick:s,tabIndex:a=0,type:l}){e||(e=null!=n||null!=r||null!=o?"a":"button");const u={tagName:e};if("button"===e)return[{type:l||"button",disabled:t},u];const c=r=>{(t||"a"===e&&function(e){return!e||"#"===e.trim()}(n))&&r.preventDefault(),t?r.stopPropagation():null==s||s(r)};return"a"===e&&(n||(n="#"),t&&(n=void 0)),[{role:null!=i?i:"button",disabled:void 0,tabIndex:t?void 0:a,href:n,target:"a"===e?r:void 0,"aria-disabled":t||void 0,rel:"a"===e?o:void 0,onClick:c,onKeyDown:e=>{" "===e.key&&(e.preventDefault(),c(e))}},u]}const xn=t.forwardRef(((e,t)=>{let{as:n,disabled:r}=e,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,Cn);const[i,{tagName:s}]=wn(Object.assign({tagName:n,disabled:r},o));return(0,yt.jsx)(s,Object.assign({},o,i,{ref:t}))}));xn.displayName="Button";const Pn=t.forwardRef((({as:e,bsPrefix:t,variant:n="primary",size:r,active:o=!1,disabled:i=!1,className:s,...a},l)=>{const u=wt(t,"btn"),[c,{tagName:p}]=wn({tagName:e,disabled:i,...a}),d=p;return(0,yt.jsx)(d,{...c,...a,ref:l,disabled:i,className:dt()(s,u,o&&"active",n&&`${u}-${n}`,r&&`${u}-${r}`,a.href&&i&&"disabled")})}));Pn.displayName="Button";const Sn=Pn,Vn=t.forwardRef((({bsPrefix:e,className:t,striped:n,bordered:r,borderless:o,hover:i,size:s,variant:a,responsive:l,...u},c)=>{const p=wt(e,"table"),d=dt()(t,p,a&&`${p}-${a}`,s&&`${p}-${s}`,n&&`${p}-${"string"==typeof n?`striped-${n}`:"striped"}`,r&&`${p}-bordered`,o&&`${p}-borderless`,i&&`${p}-hover`),h=(0,yt.jsx)("table",{...u,className:d,ref:c});if(l){let e=`${p}-responsive`;return"string"==typeof l&&(e=`${e}-${l}`),(0,yt.jsx)("div",{className:e,children:h})}return h}));let En={data:""},On=e=>"object"==typeof window?((e?e.querySelector("#_goober"):window._goober)||Object.assign((e||document.head).appendChild(document.createElement("style")),{innerHTML:" ",id:"_goober"})).firstChild:e||En,Tn=/(?:([\u0080-\uFFFF\w-%@]+) *:? *([^{;]+?);|([^;}{]*?) *{)|(}\s*)/g,_n=/\/\*[^]*?\*\/|  +/g,Rn=/\n+/g,In=(e,t)=>{let n="",r="",o="";for(let i in e){let s=e[i];"@"==i[0]?"i"==i[1]?n=i+" "+s+";":r+="f"==i[1]?In(s,i):i+"{"+In(s,"k"==i[1]?"":t)+"}":"object"==typeof s?r+=In(s,t?t.replace(/([^,])+/g,(e=>i.replace(/(^:.*)|([^,])+/g,(t=>/&/.test(t)?t.replace(/&/g,e):e?e+" "+t:t)))):i):null!=s&&(i=/^--/.test(i)?i:i.replace(/[A-Z]/g,"-$&").toLowerCase(),o+=In.p?In.p(i,s):i+":"+s+";")}return n+(t&&o?t+"{"+o+"}":o)+r},Dn={},jn=e=>{if("object"==typeof e){let t="";for(let n in e)t+=n+jn(e[n]);return t}return e},kn=(e,t,n,r,o)=>{let i=jn(e),s=Dn[i]||(Dn[i]=(e=>{let t=0,n=11;for(;t<e.length;)n=101*n+e.charCodeAt(t++)>>>0;return"go"+n})(i));if(!Dn[s]){let t=i!==e?e:(e=>{let t,n,r=[{}];for(;t=Tn.exec(e.replace(_n,""));)t[4]?r.shift():t[3]?(n=t[3].replace(Rn," ").trim(),r.unshift(r[0][n]=r[0][n]||{})):r[0][t[1]]=t[2].replace(Rn," ").trim();return r[0]})(e);Dn[s]=In(o?{["@keyframes "+s]:t}:t,n?"":"."+s)}let a=n&&Dn.g?Dn.g:null;return n&&(Dn.g=Dn[s]),((e,t,n,r)=>{r?t.data=t.data.replace(r,e):-1===t.data.indexOf(e)&&(t.data=n?e+t.data:t.data+e)})(Dn[s],t,r,a),s},Mn=(e,t,n)=>e.reduce(((e,r,o)=>{let i=t[o];if(i&&i.call){let e=i(n),t=e&&e.props&&e.props.className||/^go/.test(e)&&e;i=t?"."+t:e&&"object"==typeof e?e.props?"":In(e,""):!1===e?"":e}return e+r+(null==i?"":i)}),"");function Ln(e){let t=this||{},n=e.call?e(t.p):e;return kn(n.unshift?n.raw?Mn(n,[].slice.call(arguments,1),t.p):n.reduce(((e,n)=>Object.assign(e,n&&n.call?n(t.p):n)),{}):n,On(t.target),t.g,t.o,t.k)}Ln.bind({g:1});let qn,Nn,An,Bn=Ln.bind({k:1});function Fn(e,t){let n=this||{};return function(){let r=arguments;function o(i,s){let a=Object.assign({},i),l=a.className||o.className;n.p=Object.assign({theme:Nn&&Nn()},a),n.o=/ *go\d+/.test(l),a.className=Ln.apply(n,r)+(l?" "+l:""),t&&(a.ref=s);let u=e;return e[0]&&(u=a.as||e,delete a.as),An&&u[0]&&An(a),qn(u,a)}return t?t(o):o}}var Qn=(e,t)=>(e=>"function"==typeof e)(e)?e(t):e,zn=(()=>{let e=0;return()=>(++e).toString()})(),Hn=(()=>{let e;return()=>{if(void 0===e&&typeof window<"u"){let t=matchMedia("(prefers-reduced-motion: reduce)");e=!t||t.matches}return e}})(),Un=new Map,Wn=e=>{if(Un.has(e))return;let t=setTimeout((()=>{Un.delete(e),Kn({type:4,toastId:e})}),1e3);Un.set(e,t)},Jn=(e,t)=>{switch(t.type){case 0:return{...e,toasts:[t.toast,...e.toasts].slice(0,20)};case 1:return t.toast.id&&(e=>{let t=Un.get(e);t&&clearTimeout(t)})(t.toast.id),{...e,toasts:e.toasts.map((e=>e.id===t.toast.id?{...e,...t.toast}:e))};case 2:let{toast:n}=t;return e.toasts.find((e=>e.id===n.id))?Jn(e,{type:1,toast:n}):Jn(e,{type:0,toast:n});case 3:let{toastId:r}=t;return r?Wn(r):e.toasts.forEach((e=>{Wn(e.id)})),{...e,toasts:e.toasts.map((e=>e.id===r||void 0===r?{...e,visible:!1}:e))};case 4:return void 0===t.toastId?{...e,toasts:[]}:{...e,toasts:e.toasts.filter((e=>e.id!==t.toastId))};case 5:return{...e,pausedAt:t.time};case 6:let o=t.time-(e.pausedAt||0);return{...e,pausedAt:void 0,toasts:e.toasts.map((e=>({...e,pauseDuration:e.pauseDuration+o})))}}},$n=[],Gn={toasts:[],pausedAt:void 0},Kn=e=>{Gn=Jn(Gn,e),$n.forEach((e=>{e(Gn)}))},Zn={blank:4e3,error:4e3,success:2e3,loading:1/0,custom:4e3},Yn=e=>(t,n)=>{let r=((e,t="blank",n)=>({createdAt:Date.now(),visible:!0,type:t,ariaProps:{role:"status","aria-live":"polite"},message:e,pauseDuration:0,...n,id:(null==n?void 0:n.id)||zn()}))(t,e,n);return Kn({type:2,toast:r}),r.id},Xn=(e,t)=>Yn("blank")(e,t);Xn.error=Yn("error"),Xn.success=Yn("success"),Xn.loading=Yn("loading"),Xn.custom=Yn("custom"),Xn.dismiss=e=>{Kn({type:3,toastId:e})},Xn.remove=e=>Kn({type:4,toastId:e}),Xn.promise=(e,t,n)=>{let r=Xn.loading(t.loading,{...n,...null==n?void 0:n.loading});return e.then((e=>(Xn.success(Qn(t.success,e),{id:r,...n,...null==n?void 0:n.success}),e))).catch((e=>{Xn.error(Qn(t.error,e),{id:r,...n,...null==n?void 0:n.error})})),e};var er=(e,t)=>{Kn({type:1,toast:{id:e,height:t}})},tr=()=>{Kn({type:5,time:Date.now()})},nr=Bn`
+(()=>{var e={184:(e,t)=>{var n;!function(){"use strict";var r={}.hasOwnProperty;function o(){for(var e=[],t=0;t<arguments.length;t++){var n=arguments[t];if(n){var i=typeof n;if("string"===i||"number"===i)e.push(n);else if(Array.isArray(n)){if(n.length){var s=o.apply(null,n);s&&e.push(s)}}else if("object"===i){if(n.toString!==Object.prototype.toString&&!n.toString.toString().includes("[native code]")){e.push(n.toString());continue}for(var a in n)r.call(n,a)&&n[a]&&e.push(a)}}}return e.join(" ")}e.exports?(o.default=o,e.exports=o):void 0===(n=function(){return o}.apply(t,[]))||(e.exports=n)}()},143:e=>{"use strict";e.exports=function(e,t,n,r,o,i,s,a){if(!e){var l;if(void 0===t)l=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var u=[n,r,o,i,s,a],c=0;(l=new Error(t.replace(/%s/g,(function(){return u[c++]})))).name="Invariant Violation"}throw l.framesToPop=1,l}}},448:(e,t,n)=>{"use strict";var r=n(294),o=n(840);function i(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var s=new Set,a={};function l(e,t){u(e,t),u(e+"Capture",t)}function u(e,t){for(a[e]=t,e=0;e<t.length;e++)s.add(t[e])}var c=!("undefined"==typeof window||void 0===window.document||void 0===window.document.createElement),p=Object.prototype.hasOwnProperty,d=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,h={},f={};function m(e,t,n,r,o,i,s){this.acceptsBooleans=2===t||3===t||4===t,this.attributeName=r,this.attributeNamespace=o,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=i,this.removeEmptyString=s}var g={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach((function(e){g[e]=new m(e,0,!1,e,null,!1,!1)})),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach((function(e){var t=e[0];g[t]=new m(t,1,!1,e[1],null,!1,!1)})),["contentEditable","draggable","spellCheck","value"].forEach((function(e){g[e]=new m(e,2,!1,e.toLowerCase(),null,!1,!1)})),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach((function(e){g[e]=new m(e,2,!1,e,null,!1,!1)})),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach((function(e){g[e]=new m(e,3,!1,e.toLowerCase(),null,!1,!1)})),["checked","multiple","muted","selected"].forEach((function(e){g[e]=new m(e,3,!0,e,null,!1,!1)})),["capture","download"].forEach((function(e){g[e]=new m(e,4,!1,e,null,!1,!1)})),["cols","rows","size","span"].forEach((function(e){g[e]=new m(e,6,!1,e,null,!1,!1)})),["rowSpan","start"].forEach((function(e){g[e]=new m(e,5,!1,e.toLowerCase(),null,!1,!1)}));var y=/[\-:]([a-z])/g;function v(e){return e[1].toUpperCase()}function b(e,t,n,r){var o=g.hasOwnProperty(t)?g[t]:null;(null!==o?0!==o.type:r||!(2<t.length)||"o"!==t[0]&&"O"!==t[0]||"n"!==t[1]&&"N"!==t[1])&&(function(e,t,n,r){if(null==t||function(e,t,n,r){if(null!==n&&0===n.type)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return!r&&(null!==n?!n.acceptsBooleans:"data-"!==(e=e.toLowerCase().slice(0,5))&&"aria-"!==e);default:return!1}}(e,t,n,r))return!0;if(r)return!1;if(null!==n)switch(n.type){case 3:return!t;case 4:return!1===t;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}(t,n,o,r)&&(n=null),r||null===o?function(e){return!!p.call(f,e)||!p.call(h,e)&&(d.test(e)?f[e]=!0:(h[e]=!0,!1))}(t)&&(null===n?e.removeAttribute(t):e.setAttribute(t,""+n)):o.mustUseProperty?e[o.propertyName]=null===n?3!==o.type&&"":n:(t=o.attributeName,r=o.attributeNamespace,null===n?e.removeAttribute(t):(n=3===(o=o.type)||4===o&&!0===n?"":""+n,r?e.setAttributeNS(r,t,n):e.setAttribute(t,n))))}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach((function(e){var t=e.replace(y,v);g[t]=new m(t,1,!1,e,null,!1,!1)})),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach((function(e){var t=e.replace(y,v);g[t]=new m(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)})),["xml:base","xml:lang","xml:space"].forEach((function(e){var t=e.replace(y,v);g[t]=new m(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)})),["tabIndex","crossOrigin"].forEach((function(e){g[e]=new m(e,1,!1,e.toLowerCase(),null,!1,!1)})),g.xlinkHref=new m("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach((function(e){g[e]=new m(e,1,!1,e.toLowerCase(),null,!0,!0)}));var C=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,w=Symbol.for("react.element"),x=Symbol.for("react.portal"),P=Symbol.for("react.fragment"),S=Symbol.for("react.strict_mode"),E=Symbol.for("react.profiler"),T=Symbol.for("react.provider"),O=Symbol.for("react.context"),V=Symbol.for("react.forward_ref"),_=Symbol.for("react.suspense"),R=Symbol.for("react.suspense_list"),I=Symbol.for("react.memo"),D=Symbol.for("react.lazy");Symbol.for("react.scope"),Symbol.for("react.debug_trace_mode");var A=Symbol.for("react.offscreen");Symbol.for("react.legacy_hidden"),Symbol.for("react.cache"),Symbol.for("react.tracing_marker");var k=Symbol.iterator;function M(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=k&&e[k]||e["@@iterator"])?e:null}var N,L=Object.assign;function j(e){if(void 0===N)try{throw Error()}catch(e){var t=e.stack.trim().match(/\n( *(at )?)/);N=t&&t[1]||""}return"\n"+N+e}var q=!1;function F(e,t){if(!e||q)return"";q=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),"object"==typeof Reflect&&Reflect.construct){try{Reflect.construct(t,[])}catch(e){var r=e}Reflect.construct(e,[],t)}else{try{t.call()}catch(e){r=e}e.call(t.prototype)}else{try{throw Error()}catch(e){r=e}e()}}catch(t){if(t&&r&&"string"==typeof t.stack){for(var o=t.stack.split("\n"),i=r.stack.split("\n"),s=o.length-1,a=i.length-1;1<=s&&0<=a&&o[s]!==i[a];)a--;for(;1<=s&&0<=a;s--,a--)if(o[s]!==i[a]){if(1!==s||1!==a)do{if(s--,0>--a||o[s]!==i[a]){var l="\n"+o[s].replace(" at new "," at ");return e.displayName&&l.includes("<anonymous>")&&(l=l.replace("<anonymous>",e.displayName)),l}}while(1<=s&&0<=a);break}}}finally{q=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?j(e):""}function B(e){switch(e.tag){case 5:return j(e.type);case 16:return j("Lazy");case 13:return j("Suspense");case 19:return j("SuspenseList");case 0:case 2:case 15:return F(e.type,!1);case 11:return F(e.type.render,!1);case 1:return F(e.type,!0);default:return""}}function Q(e){if(null==e)return null;if("function"==typeof e)return e.displayName||e.name||null;if("string"==typeof e)return e;switch(e){case P:return"Fragment";case x:return"Portal";case E:return"Profiler";case S:return"StrictMode";case _:return"Suspense";case R:return"SuspenseList"}if("object"==typeof e)switch(e.$$typeof){case O:return(e.displayName||"Context")+".Consumer";case T:return(e._context.displayName||"Context")+".Provider";case V:var t=e.render;return(e=e.displayName)||(e=""!==(e=t.displayName||t.name||"")?"ForwardRef("+e+")":"ForwardRef"),e;case I:return null!==(t=e.displayName||null)?t:Q(e.type)||"Memo";case D:t=e._payload,e=e._init;try{return Q(e(t))}catch(e){}}return null}function H(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=(e=t.render).displayName||e.name||"",t.displayName||(""!==e?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return Q(t);case 8:return t===S?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if("function"==typeof t)return t.displayName||t.name||null;if("string"==typeof t)return t}return null}function z(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":case"object":return e;default:return""}}function U(e){var t=e.type;return(e=e.nodeName)&&"input"===e.toLowerCase()&&("checkbox"===t||"radio"===t)}function W(e){e._valueTracker||(e._valueTracker=function(e){var t=U(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&void 0!==n&&"function"==typeof n.get&&"function"==typeof n.set){var o=n.get,i=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return o.call(this)},set:function(e){r=""+e,i.call(this,e)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(e){r=""+e},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}(e))}function G(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=U(e)?e.checked?"true":"false":e.value),(e=r)!==n&&(t.setValue(e),!0)}function $(e){if(void 0===(e=e||("undefined"!=typeof document?document:void 0)))return null;try{return e.activeElement||e.body}catch(t){return e.body}}function J(e,t){var n=t.checked;return L({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:null!=n?n:e._wrapperState.initialChecked})}function K(e,t){var n=null==t.defaultValue?"":t.defaultValue,r=null!=t.checked?t.checked:t.defaultChecked;n=z(null!=t.value?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:"checkbox"===t.type||"radio"===t.type?null!=t.checked:null!=t.value}}function Y(e,t){null!=(t=t.checked)&&b(e,"checked",t,!1)}function X(e,t){Y(e,t);var n=z(t.value),r=t.type;if(null!=n)"number"===r?(0===n&&""===e.value||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if("submit"===r||"reset"===r)return void e.removeAttribute("value");t.hasOwnProperty("value")?ee(e,t.type,n):t.hasOwnProperty("defaultValue")&&ee(e,t.type,z(t.defaultValue)),null==t.checked&&null!=t.defaultChecked&&(e.defaultChecked=!!t.defaultChecked)}function Z(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!("submit"!==r&&"reset"!==r||void 0!==t.value&&null!==t.value))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}""!==(n=e.name)&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,""!==n&&(e.name=n)}function ee(e,t,n){"number"===t&&$(e.ownerDocument)===e||(null==n?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var te=Array.isArray;function ne(e,t,n,r){if(e=e.options,t){t={};for(var o=0;o<n.length;o++)t["$"+n[o]]=!0;for(n=0;n<e.length;n++)o=t.hasOwnProperty("$"+e[n].value),e[n].selected!==o&&(e[n].selected=o),o&&r&&(e[n].defaultSelected=!0)}else{for(n=""+z(n),t=null,o=0;o<e.length;o++){if(e[o].value===n)return e[o].selected=!0,void(r&&(e[o].defaultSelected=!0));null!==t||e[o].disabled||(t=e[o])}null!==t&&(t.selected=!0)}}function re(e,t){if(null!=t.dangerouslySetInnerHTML)throw Error(i(91));return L({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function oe(e,t){var n=t.value;if(null==n){if(n=t.children,t=t.defaultValue,null!=n){if(null!=t)throw Error(i(92));if(te(n)){if(1<n.length)throw Error(i(93));n=n[0]}t=n}null==t&&(t=""),n=t}e._wrapperState={initialValue:z(n)}}function ie(e,t){var n=z(t.value),r=z(t.defaultValue);null!=n&&((n=""+n)!==e.value&&(e.value=n),null==t.defaultValue&&e.defaultValue!==n&&(e.defaultValue=n)),null!=r&&(e.defaultValue=""+r)}function se(e){var t=e.textContent;t===e._wrapperState.initialValue&&""!==t&&null!==t&&(e.value=t)}function ae(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function le(e,t){return null==e||"http://www.w3.org/1999/xhtml"===e?ae(t):"http://www.w3.org/2000/svg"===e&&"foreignObject"===t?"http://www.w3.org/1999/xhtml":e}var ue,ce,pe=(ce=function(e,t){if("http://www.w3.org/2000/svg"!==e.namespaceURI||"innerHTML"in e)e.innerHTML=t;else{for((ue=ue||document.createElement("div")).innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=ue.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}},"undefined"!=typeof MSApp&&MSApp.execUnsafeLocalFunction?function(e,t,n,r){MSApp.execUnsafeLocalFunction((function(){return ce(e,t)}))}:ce);function de(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&3===n.nodeType)return void(n.nodeValue=t)}e.textContent=t}var he={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},fe=["Webkit","ms","Moz","O"];function me(e,t,n){return null==t||"boolean"==typeof t||""===t?"":n||"number"!=typeof t||0===t||he.hasOwnProperty(e)&&he[e]?(""+t).trim():t+"px"}function ge(e,t){for(var n in e=e.style,t)if(t.hasOwnProperty(n)){var r=0===n.indexOf("--"),o=me(n,t[n],r);"float"===n&&(n="cssFloat"),r?e.setProperty(n,o):e[n]=o}}Object.keys(he).forEach((function(e){fe.forEach((function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),he[t]=he[e]}))}));var ye=L({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function ve(e,t){if(t){if(ye[e]&&(null!=t.children||null!=t.dangerouslySetInnerHTML))throw Error(i(137,e));if(null!=t.dangerouslySetInnerHTML){if(null!=t.children)throw Error(i(60));if("object"!=typeof t.dangerouslySetInnerHTML||!("__html"in t.dangerouslySetInnerHTML))throw Error(i(61))}if(null!=t.style&&"object"!=typeof t.style)throw Error(i(62))}}function be(e,t){if(-1===e.indexOf("-"))return"string"==typeof t.is;switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var Ce=null;function we(e){return(e=e.target||e.srcElement||window).correspondingUseElement&&(e=e.correspondingUseElement),3===e.nodeType?e.parentNode:e}var xe=null,Pe=null,Se=null;function Ee(e){if(e=Co(e)){if("function"!=typeof xe)throw Error(i(280));var t=e.stateNode;t&&(t=xo(t),xe(e.stateNode,e.type,t))}}function Te(e){Pe?Se?Se.push(e):Se=[e]:Pe=e}function Oe(){if(Pe){var e=Pe,t=Se;if(Se=Pe=null,Ee(e),t)for(e=0;e<t.length;e++)Ee(t[e])}}function Ve(e,t){return e(t)}function _e(){}var Re=!1;function Ie(e,t,n){if(Re)return e(t,n);Re=!0;try{return Ve(e,t,n)}finally{Re=!1,(null!==Pe||null!==Se)&&(_e(),Oe())}}function De(e,t){var n=e.stateNode;if(null===n)return null;var r=xo(n);if(null===r)return null;n=r[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(r=!r.disabled)||(r=!("button"===(e=e.type)||"input"===e||"select"===e||"textarea"===e)),e=!r;break e;default:e=!1}if(e)return null;if(n&&"function"!=typeof n)throw Error(i(231,t,typeof n));return n}var Ae=!1;if(c)try{var ke={};Object.defineProperty(ke,"passive",{get:function(){Ae=!0}}),window.addEventListener("test",ke,ke),window.removeEventListener("test",ke,ke)}catch(ce){Ae=!1}function Me(e,t,n,r,o,i,s,a,l){var u=Array.prototype.slice.call(arguments,3);try{t.apply(n,u)}catch(e){this.onError(e)}}var Ne=!1,Le=null,je=!1,qe=null,Fe={onError:function(e){Ne=!0,Le=e}};function Be(e,t,n,r,o,i,s,a,l){Ne=!1,Le=null,Me.apply(Fe,arguments)}function Qe(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do{0!=(4098&(t=e).flags)&&(n=t.return),e=t.return}while(e)}return 3===t.tag?n:null}function He(e){if(13===e.tag){var t=e.memoizedState;if(null===t&&null!==(e=e.alternate)&&(t=e.memoizedState),null!==t)return t.dehydrated}return null}function ze(e){if(Qe(e)!==e)throw Error(i(188))}function Ue(e){return null!==(e=function(e){var t=e.alternate;if(!t){if(null===(t=Qe(e)))throw Error(i(188));return t!==e?null:e}for(var n=e,r=t;;){var o=n.return;if(null===o)break;var s=o.alternate;if(null===s){if(null!==(r=o.return)){n=r;continue}break}if(o.child===s.child){for(s=o.child;s;){if(s===n)return ze(o),e;if(s===r)return ze(o),t;s=s.sibling}throw Error(i(188))}if(n.return!==r.return)n=o,r=s;else{for(var a=!1,l=o.child;l;){if(l===n){a=!0,n=o,r=s;break}if(l===r){a=!0,r=o,n=s;break}l=l.sibling}if(!a){for(l=s.child;l;){if(l===n){a=!0,n=s,r=o;break}if(l===r){a=!0,r=s,n=o;break}l=l.sibling}if(!a)throw Error(i(189))}}if(n.alternate!==r)throw Error(i(190))}if(3!==n.tag)throw Error(i(188));return n.stateNode.current===n?e:t}(e))?We(e):null}function We(e){if(5===e.tag||6===e.tag)return e;for(e=e.child;null!==e;){var t=We(e);if(null!==t)return t;e=e.sibling}return null}var Ge=o.unstable_scheduleCallback,$e=o.unstable_cancelCallback,Je=o.unstable_shouldYield,Ke=o.unstable_requestPaint,Ye=o.unstable_now,Xe=o.unstable_getCurrentPriorityLevel,Ze=o.unstable_ImmediatePriority,et=o.unstable_UserBlockingPriority,tt=o.unstable_NormalPriority,nt=o.unstable_LowPriority,rt=o.unstable_IdlePriority,ot=null,it=null,st=Math.clz32?Math.clz32:function(e){return 0===(e>>>=0)?32:31-(at(e)/lt|0)|0},at=Math.log,lt=Math.LN2,ut=64,ct=4194304;function pt(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return 4194240&e;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return 130023424&e;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function dt(e,t){var n=e.pendingLanes;if(0===n)return 0;var r=0,o=e.suspendedLanes,i=e.pingedLanes,s=268435455&n;if(0!==s){var a=s&~o;0!==a?r=pt(a):0!=(i&=s)&&(r=pt(i))}else 0!=(s=n&~o)?r=pt(s):0!==i&&(r=pt(i));if(0===r)return 0;if(0!==t&&t!==r&&0==(t&o)&&((o=r&-r)>=(i=t&-t)||16===o&&0!=(4194240&i)))return t;if(0!=(4&r)&&(r|=16&n),0!==(t=e.entangledLanes))for(e=e.entanglements,t&=r;0<t;)o=1<<(n=31-st(t)),r|=e[n],t&=~o;return r}function ht(e,t){switch(e){case 1:case 2:case 4:return t+250;case 8:case 16:case 32:case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;default:return-1}}function ft(e){return 0!=(e=-1073741825&e.pendingLanes)?e:1073741824&e?1073741824:0}function mt(){var e=ut;return 0==(4194240&(ut<<=1))&&(ut=64),e}function gt(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function yt(e,t,n){e.pendingLanes|=t,536870912!==t&&(e.suspendedLanes=0,e.pingedLanes=0),(e=e.eventTimes)[t=31-st(t)]=n}function vt(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-st(n),o=1<<r;o&t|e[r]&t&&(e[r]|=t),n&=~o}}var bt=0;function Ct(e){return 1<(e&=-e)?4<e?0!=(268435455&e)?16:536870912:4:1}var wt,xt,Pt,St,Et,Tt=!1,Ot=[],Vt=null,_t=null,Rt=null,It=new Map,Dt=new Map,At=[],kt="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset submit".split(" ");function Mt(e,t){switch(e){case"focusin":case"focusout":Vt=null;break;case"dragenter":case"dragleave":_t=null;break;case"mouseover":case"mouseout":Rt=null;break;case"pointerover":case"pointerout":It.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Dt.delete(t.pointerId)}}function Nt(e,t,n,r,o,i){return null===e||e.nativeEvent!==i?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:i,targetContainers:[o]},null!==t&&null!==(t=Co(t))&&xt(t),e):(e.eventSystemFlags|=r,t=e.targetContainers,null!==o&&-1===t.indexOf(o)&&t.push(o),e)}function Lt(e){var t=bo(e.target);if(null!==t){var n=Qe(t);if(null!==n)if(13===(t=n.tag)){if(null!==(t=He(n)))return e.blockedOn=t,void Et(e.priority,(function(){Pt(n)}))}else if(3===t&&n.stateNode.current.memoizedState.isDehydrated)return void(e.blockedOn=3===n.tag?n.stateNode.containerInfo:null)}e.blockedOn=null}function jt(e){if(null!==e.blockedOn)return!1;for(var t=e.targetContainers;0<t.length;){var n=Jt(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(null!==n)return null!==(t=Co(n))&&xt(t),e.blockedOn=n,!1;var r=new(n=e.nativeEvent).constructor(n.type,n);Ce=r,n.target.dispatchEvent(r),Ce=null,t.shift()}return!0}function qt(e,t,n){jt(e)&&n.delete(t)}function Ft(){Tt=!1,null!==Vt&&jt(Vt)&&(Vt=null),null!==_t&&jt(_t)&&(_t=null),null!==Rt&&jt(Rt)&&(Rt=null),It.forEach(qt),Dt.forEach(qt)}function Bt(e,t){e.blockedOn===t&&(e.blockedOn=null,Tt||(Tt=!0,o.unstable_scheduleCallback(o.unstable_NormalPriority,Ft)))}function Qt(e){function t(t){return Bt(t,e)}if(0<Ot.length){Bt(Ot[0],e);for(var n=1;n<Ot.length;n++){var r=Ot[n];r.blockedOn===e&&(r.blockedOn=null)}}for(null!==Vt&&Bt(Vt,e),null!==_t&&Bt(_t,e),null!==Rt&&Bt(Rt,e),It.forEach(t),Dt.forEach(t),n=0;n<At.length;n++)(r=At[n]).blockedOn===e&&(r.blockedOn=null);for(;0<At.length&&null===(n=At[0]).blockedOn;)Lt(n),null===n.blockedOn&&At.shift()}var Ht=C.ReactCurrentBatchConfig,zt=!0;function Ut(e,t,n,r){var o=bt,i=Ht.transition;Ht.transition=null;try{bt=1,Gt(e,t,n,r)}finally{bt=o,Ht.transition=i}}function Wt(e,t,n,r){var o=bt,i=Ht.transition;Ht.transition=null;try{bt=4,Gt(e,t,n,r)}finally{bt=o,Ht.transition=i}}function Gt(e,t,n,r){if(zt){var o=Jt(e,t,n,r);if(null===o)zr(e,t,r,$t,n),Mt(e,r);else if(function(e,t,n,r,o){switch(t){case"focusin":return Vt=Nt(Vt,e,t,n,r,o),!0;case"dragenter":return _t=Nt(_t,e,t,n,r,o),!0;case"mouseover":return Rt=Nt(Rt,e,t,n,r,o),!0;case"pointerover":var i=o.pointerId;return It.set(i,Nt(It.get(i)||null,e,t,n,r,o)),!0;case"gotpointercapture":return i=o.pointerId,Dt.set(i,Nt(Dt.get(i)||null,e,t,n,r,o)),!0}return!1}(o,e,t,n,r))r.stopPropagation();else if(Mt(e,r),4&t&&-1<kt.indexOf(e)){for(;null!==o;){var i=Co(o);if(null!==i&&wt(i),null===(i=Jt(e,t,n,r))&&zr(e,t,r,$t,n),i===o)break;o=i}null!==o&&r.stopPropagation()}else zr(e,t,r,null,n)}}var $t=null;function Jt(e,t,n,r){if($t=null,null!==(e=bo(e=we(r))))if(null===(t=Qe(e)))e=null;else if(13===(n=t.tag)){if(null!==(e=He(t)))return e;e=null}else if(3===n){if(t.stateNode.current.memoizedState.isDehydrated)return 3===t.tag?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null);return $t=e,null}function Kt(e){switch(e){case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 1;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"toggle":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 4;case"message":switch(Xe()){case Ze:return 1;case et:return 4;case tt:case nt:return 16;case rt:return 536870912;default:return 16}default:return 16}}var Yt=null,Xt=null,Zt=null;function en(){if(Zt)return Zt;var e,t,n=Xt,r=n.length,o="value"in Yt?Yt.value:Yt.textContent,i=o.length;for(e=0;e<r&&n[e]===o[e];e++);var s=r-e;for(t=1;t<=s&&n[r-t]===o[i-t];t++);return Zt=o.slice(e,1<t?1-t:void 0)}function tn(e){var t=e.keyCode;return"charCode"in e?0===(e=e.charCode)&&13===t&&(e=13):e=t,10===e&&(e=13),32<=e||13===e?e:0}function nn(){return!0}function rn(){return!1}function on(e){function t(t,n,r,o,i){for(var s in this._reactName=t,this._targetInst=r,this.type=n,this.nativeEvent=o,this.target=i,this.currentTarget=null,e)e.hasOwnProperty(s)&&(t=e[s],this[s]=t?t(o):o[s]);return this.isDefaultPrevented=(null!=o.defaultPrevented?o.defaultPrevented:!1===o.returnValue)?nn:rn,this.isPropagationStopped=rn,this}return L(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var e=this.nativeEvent;e&&(e.preventDefault?e.preventDefault():"unknown"!=typeof e.returnValue&&(e.returnValue=!1),this.isDefaultPrevented=nn)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():"unknown"!=typeof e.cancelBubble&&(e.cancelBubble=!0),this.isPropagationStopped=nn)},persist:function(){},isPersistent:nn}),t}var sn,an,ln,un={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},cn=on(un),pn=L({},un,{view:0,detail:0}),dn=on(pn),hn=L({},pn,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:En,button:0,buttons:0,relatedTarget:function(e){return void 0===e.relatedTarget?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==ln&&(ln&&"mousemove"===e.type?(sn=e.screenX-ln.screenX,an=e.screenY-ln.screenY):an=sn=0,ln=e),sn)},movementY:function(e){return"movementY"in e?e.movementY:an}}),fn=on(hn),mn=on(L({},hn,{dataTransfer:0})),gn=on(L({},pn,{relatedTarget:0})),yn=on(L({},un,{animationName:0,elapsedTime:0,pseudoElement:0})),vn=L({},un,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),bn=on(vn),Cn=on(L({},un,{data:0})),wn={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},xn={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},Pn={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Sn(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):!!(e=Pn[e])&&!!t[e]}function En(){return Sn}var Tn=L({},pn,{key:function(e){if(e.key){var t=wn[e.key]||e.key;if("Unidentified"!==t)return t}return"keypress"===e.type?13===(e=tn(e))?"Enter":String.fromCharCode(e):"keydown"===e.type||"keyup"===e.type?xn[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:En,charCode:function(e){return"keypress"===e.type?tn(e):0},keyCode:function(e){return"keydown"===e.type||"keyup"===e.type?e.keyCode:0},which:function(e){return"keypress"===e.type?tn(e):"keydown"===e.type||"keyup"===e.type?e.keyCode:0}}),On=on(Tn),Vn=on(L({},hn,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0})),_n=on(L({},pn,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:En})),Rn=on(L({},un,{propertyName:0,elapsedTime:0,pseudoElement:0})),In=L({},hn,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),Dn=on(In),An=[9,13,27,32],kn=c&&"CompositionEvent"in window,Mn=null;c&&"documentMode"in document&&(Mn=document.documentMode);var Nn=c&&"TextEvent"in window&&!Mn,Ln=c&&(!kn||Mn&&8<Mn&&11>=Mn),jn=String.fromCharCode(32),qn=!1;function Fn(e,t){switch(e){case"keyup":return-1!==An.indexOf(t.keyCode);case"keydown":return 229!==t.keyCode;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Bn(e){return"object"==typeof(e=e.detail)&&"data"in e?e.data:null}var Qn=!1,Hn={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 zn(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return"input"===t?!!Hn[e.type]:"textarea"===t}function Un(e,t,n,r){Te(r),0<(t=Wr(t,"onChange")).length&&(n=new cn("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var Wn=null,Gn=null;function $n(e){jr(e,0)}function Jn(e){if(G(wo(e)))return e}function Kn(e,t){if("change"===e)return t}var Yn=!1;if(c){var Xn;if(c){var Zn="oninput"in document;if(!Zn){var er=document.createElement("div");er.setAttribute("oninput","return;"),Zn="function"==typeof er.oninput}Xn=Zn}else Xn=!1;Yn=Xn&&(!document.documentMode||9<document.documentMode)}function tr(){Wn&&(Wn.detachEvent("onpropertychange",nr),Gn=Wn=null)}function nr(e){if("value"===e.propertyName&&Jn(Gn)){var t=[];Un(t,Gn,e,we(e)),Ie($n,t)}}function rr(e,t,n){"focusin"===e?(tr(),Gn=n,(Wn=t).attachEvent("onpropertychange",nr)):"focusout"===e&&tr()}function or(e){if("selectionchange"===e||"keyup"===e||"keydown"===e)return Jn(Gn)}function ir(e,t){if("click"===e)return Jn(t)}function sr(e,t){if("input"===e||"change"===e)return Jn(t)}var ar="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t};function lr(e,t){if(ar(e,t))return!0;if("object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++){var o=n[r];if(!p.call(t,o)||!ar(e[o],t[o]))return!1}return!0}function ur(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function cr(e,t){var n,r=ur(e);for(e=0;r;){if(3===r.nodeType){if(n=e+r.textContent.length,e<=t&&n>=t)return{node:r,offset:t-e};e=n}e:{for(;r;){if(r.nextSibling){r=r.nextSibling;break e}r=r.parentNode}r=void 0}r=ur(r)}}function pr(e,t){return!(!e||!t)&&(e===t||(!e||3!==e.nodeType)&&(t&&3===t.nodeType?pr(e,t.parentNode):"contains"in e?e.contains(t):!!e.compareDocumentPosition&&!!(16&e.compareDocumentPosition(t))))}function dr(){for(var e=window,t=$();t instanceof e.HTMLIFrameElement;){try{var n="string"==typeof t.contentWindow.location.href}catch(e){n=!1}if(!n)break;t=$((e=t.contentWindow).document)}return t}function hr(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&("input"===t&&("text"===e.type||"search"===e.type||"tel"===e.type||"url"===e.type||"password"===e.type)||"textarea"===t||"true"===e.contentEditable)}function fr(e){var t=dr(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&pr(n.ownerDocument.documentElement,n)){if(null!==r&&hr(n))if(t=r.start,void 0===(e=r.end)&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if((e=(t=n.ownerDocument||document)&&t.defaultView||window).getSelection){e=e.getSelection();var o=n.textContent.length,i=Math.min(r.start,o);r=void 0===r.end?i:Math.min(r.end,o),!e.extend&&i>r&&(o=r,r=i,i=o),o=cr(n,i);var s=cr(n,r);o&&s&&(1!==e.rangeCount||e.anchorNode!==o.node||e.anchorOffset!==o.offset||e.focusNode!==s.node||e.focusOffset!==s.offset)&&((t=t.createRange()).setStart(o.node,o.offset),e.removeAllRanges(),i>r?(e.addRange(t),e.extend(s.node,s.offset)):(t.setEnd(s.node,s.offset),e.addRange(t)))}for(t=[],e=n;e=e.parentNode;)1===e.nodeType&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for("function"==typeof n.focus&&n.focus(),n=0;n<t.length;n++)(e=t[n]).element.scrollLeft=e.left,e.element.scrollTop=e.top}}var mr=c&&"documentMode"in document&&11>=document.documentMode,gr=null,yr=null,vr=null,br=!1;function Cr(e,t,n){var r=n.window===n?n.document:9===n.nodeType?n:n.ownerDocument;br||null==gr||gr!==$(r)||(r="selectionStart"in(r=gr)&&hr(r)?{start:r.selectionStart,end:r.selectionEnd}:{anchorNode:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection()).anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset},vr&&lr(vr,r)||(vr=r,0<(r=Wr(yr,"onSelect")).length&&(t=new cn("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=gr)))}function wr(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var xr={animationend:wr("Animation","AnimationEnd"),animationiteration:wr("Animation","AnimationIteration"),animationstart:wr("Animation","AnimationStart"),transitionend:wr("Transition","TransitionEnd")},Pr={},Sr={};function Er(e){if(Pr[e])return Pr[e];if(!xr[e])return e;var t,n=xr[e];for(t in n)if(n.hasOwnProperty(t)&&t in Sr)return Pr[e]=n[t];return e}c&&(Sr=document.createElement("div").style,"AnimationEvent"in window||(delete xr.animationend.animation,delete xr.animationiteration.animation,delete xr.animationstart.animation),"TransitionEvent"in window||delete xr.transitionend.transition);var Tr=Er("animationend"),Or=Er("animationiteration"),Vr=Er("animationstart"),_r=Er("transitionend"),Rr=new Map,Ir="abort auxClick cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");function Dr(e,t){Rr.set(e,t),l(t,[e])}for(var Ar=0;Ar<Ir.length;Ar++){var kr=Ir[Ar];Dr(kr.toLowerCase(),"on"+(kr[0].toUpperCase()+kr.slice(1)))}Dr(Tr,"onAnimationEnd"),Dr(Or,"onAnimationIteration"),Dr(Vr,"onAnimationStart"),Dr("dblclick","onDoubleClick"),Dr("focusin","onFocus"),Dr("focusout","onBlur"),Dr(_r,"onTransitionEnd"),u("onMouseEnter",["mouseout","mouseover"]),u("onMouseLeave",["mouseout","mouseover"]),u("onPointerEnter",["pointerout","pointerover"]),u("onPointerLeave",["pointerout","pointerover"]),l("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),l("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),l("onBeforeInput",["compositionend","keypress","textInput","paste"]),l("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),l("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),l("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Mr="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(" "),Nr=new Set("cancel close invalid load scroll toggle".split(" ").concat(Mr));function Lr(e,t,n){var r=e.type||"unknown-event";e.currentTarget=n,function(e,t,n,r,o,s,a,l,u){if(Be.apply(this,arguments),Ne){if(!Ne)throw Error(i(198));var c=Le;Ne=!1,Le=null,je||(je=!0,qe=c)}}(r,t,void 0,e),e.currentTarget=null}function jr(e,t){t=0!=(4&t);for(var n=0;n<e.length;n++){var r=e[n],o=r.event;r=r.listeners;e:{var i=void 0;if(t)for(var s=r.length-1;0<=s;s--){var a=r[s],l=a.instance,u=a.currentTarget;if(a=a.listener,l!==i&&o.isPropagationStopped())break e;Lr(o,a,u),i=l}else for(s=0;s<r.length;s++){if(l=(a=r[s]).instance,u=a.currentTarget,a=a.listener,l!==i&&o.isPropagationStopped())break e;Lr(o,a,u),i=l}}}if(je)throw e=qe,je=!1,qe=null,e}function qr(e,t){var n=t[go];void 0===n&&(n=t[go]=new Set);var r=e+"__bubble";n.has(r)||(Hr(t,e,2,!1),n.add(r))}function Fr(e,t,n){var r=0;t&&(r|=4),Hr(n,e,r,t)}var Br="_reactListening"+Math.random().toString(36).slice(2);function Qr(e){if(!e[Br]){e[Br]=!0,s.forEach((function(t){"selectionchange"!==t&&(Nr.has(t)||Fr(t,!1,e),Fr(t,!0,e))}));var t=9===e.nodeType?e:e.ownerDocument;null===t||t[Br]||(t[Br]=!0,Fr("selectionchange",!1,t))}}function Hr(e,t,n,r){switch(Kt(t)){case 1:var o=Ut;break;case 4:o=Wt;break;default:o=Gt}n=o.bind(null,t,n,e),o=void 0,!Ae||"touchstart"!==t&&"touchmove"!==t&&"wheel"!==t||(o=!0),r?void 0!==o?e.addEventListener(t,n,{capture:!0,passive:o}):e.addEventListener(t,n,!0):void 0!==o?e.addEventListener(t,n,{passive:o}):e.addEventListener(t,n,!1)}function zr(e,t,n,r,o){var i=r;if(0==(1&t)&&0==(2&t)&&null!==r)e:for(;;){if(null===r)return;var s=r.tag;if(3===s||4===s){var a=r.stateNode.containerInfo;if(a===o||8===a.nodeType&&a.parentNode===o)break;if(4===s)for(s=r.return;null!==s;){var l=s.tag;if((3===l||4===l)&&((l=s.stateNode.containerInfo)===o||8===l.nodeType&&l.parentNode===o))return;s=s.return}for(;null!==a;){if(null===(s=bo(a)))return;if(5===(l=s.tag)||6===l){r=i=s;continue e}a=a.parentNode}}r=r.return}Ie((function(){var r=i,o=we(n),s=[];e:{var a=Rr.get(e);if(void 0!==a){var l=cn,u=e;switch(e){case"keypress":if(0===tn(n))break e;case"keydown":case"keyup":l=On;break;case"focusin":u="focus",l=gn;break;case"focusout":u="blur",l=gn;break;case"beforeblur":case"afterblur":l=gn;break;case"click":if(2===n.button)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":l=fn;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":l=mn;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":l=_n;break;case Tr:case Or:case Vr:l=yn;break;case _r:l=Rn;break;case"scroll":l=dn;break;case"wheel":l=Dn;break;case"copy":case"cut":case"paste":l=bn;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":l=Vn}var c=0!=(4&t),p=!c&&"scroll"===e,d=c?null!==a?a+"Capture":null:a;c=[];for(var h,f=r;null!==f;){var m=(h=f).stateNode;if(5===h.tag&&null!==m&&(h=m,null!==d&&null!=(m=De(f,d))&&c.push(Ur(f,m,h))),p)break;f=f.return}0<c.length&&(a=new l(a,u,null,n,o),s.push({event:a,listeners:c}))}}if(0==(7&t)){if(l="mouseout"===e||"pointerout"===e,(!(a="mouseover"===e||"pointerover"===e)||n===Ce||!(u=n.relatedTarget||n.fromElement)||!bo(u)&&!u[mo])&&(l||a)&&(a=o.window===o?o:(a=o.ownerDocument)?a.defaultView||a.parentWindow:window,l?(l=r,null!==(u=(u=n.relatedTarget||n.toElement)?bo(u):null)&&(u!==(p=Qe(u))||5!==u.tag&&6!==u.tag)&&(u=null)):(l=null,u=r),l!==u)){if(c=fn,m="onMouseLeave",d="onMouseEnter",f="mouse","pointerout"!==e&&"pointerover"!==e||(c=Vn,m="onPointerLeave",d="onPointerEnter",f="pointer"),p=null==l?a:wo(l),h=null==u?a:wo(u),(a=new c(m,f+"leave",l,n,o)).target=p,a.relatedTarget=h,m=null,bo(o)===r&&((c=new c(d,f+"enter",u,n,o)).target=h,c.relatedTarget=p,m=c),p=m,l&&u)e:{for(d=u,f=0,h=c=l;h;h=Gr(h))f++;for(h=0,m=d;m;m=Gr(m))h++;for(;0<f-h;)c=Gr(c),f--;for(;0<h-f;)d=Gr(d),h--;for(;f--;){if(c===d||null!==d&&c===d.alternate)break e;c=Gr(c),d=Gr(d)}c=null}else c=null;null!==l&&$r(s,a,l,c,!1),null!==u&&null!==p&&$r(s,p,u,c,!0)}if("select"===(l=(a=r?wo(r):window).nodeName&&a.nodeName.toLowerCase())||"input"===l&&"file"===a.type)var g=Kn;else if(zn(a))if(Yn)g=sr;else{g=or;var y=rr}else(l=a.nodeName)&&"input"===l.toLowerCase()&&("checkbox"===a.type||"radio"===a.type)&&(g=ir);switch(g&&(g=g(e,r))?Un(s,g,n,o):(y&&y(e,a,r),"focusout"===e&&(y=a._wrapperState)&&y.controlled&&"number"===a.type&&ee(a,"number",a.value)),y=r?wo(r):window,e){case"focusin":(zn(y)||"true"===y.contentEditable)&&(gr=y,yr=r,vr=null);break;case"focusout":vr=yr=gr=null;break;case"mousedown":br=!0;break;case"contextmenu":case"mouseup":case"dragend":br=!1,Cr(s,n,o);break;case"selectionchange":if(mr)break;case"keydown":case"keyup":Cr(s,n,o)}var v;if(kn)e:{switch(e){case"compositionstart":var b="onCompositionStart";break e;case"compositionend":b="onCompositionEnd";break e;case"compositionupdate":b="onCompositionUpdate";break e}b=void 0}else Qn?Fn(e,n)&&(b="onCompositionEnd"):"keydown"===e&&229===n.keyCode&&(b="onCompositionStart");b&&(Ln&&"ko"!==n.locale&&(Qn||"onCompositionStart"!==b?"onCompositionEnd"===b&&Qn&&(v=en()):(Xt="value"in(Yt=o)?Yt.value:Yt.textContent,Qn=!0)),0<(y=Wr(r,b)).length&&(b=new Cn(b,e,null,n,o),s.push({event:b,listeners:y}),(v||null!==(v=Bn(n)))&&(b.data=v))),(v=Nn?function(e,t){switch(e){case"compositionend":return Bn(t);case"keypress":return 32!==t.which?null:(qn=!0,jn);case"textInput":return(e=t.data)===jn&&qn?null:e;default:return null}}(e,n):function(e,t){if(Qn)return"compositionend"===e||!kn&&Fn(e,t)?(e=en(),Zt=Xt=Yt=null,Qn=!1,e):null;switch(e){case"paste":default:return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return Ln&&"ko"!==t.locale?null:t.data}}(e,n))&&0<(r=Wr(r,"onBeforeInput")).length&&(o=new Cn("onBeforeInput","beforeinput",null,n,o),s.push({event:o,listeners:r}),o.data=v)}jr(s,t)}))}function Ur(e,t,n){return{instance:e,listener:t,currentTarget:n}}function Wr(e,t){for(var n=t+"Capture",r=[];null!==e;){var o=e,i=o.stateNode;5===o.tag&&null!==i&&(o=i,null!=(i=De(e,n))&&r.unshift(Ur(e,i,o)),null!=(i=De(e,t))&&r.push(Ur(e,i,o))),e=e.return}return r}function Gr(e){if(null===e)return null;do{e=e.return}while(e&&5!==e.tag);return e||null}function $r(e,t,n,r,o){for(var i=t._reactName,s=[];null!==n&&n!==r;){var a=n,l=a.alternate,u=a.stateNode;if(null!==l&&l===r)break;5===a.tag&&null!==u&&(a=u,o?null!=(l=De(n,i))&&s.unshift(Ur(n,l,a)):o||null!=(l=De(n,i))&&s.push(Ur(n,l,a))),n=n.return}0!==s.length&&e.push({event:t,listeners:s})}var Jr=/\r\n?/g,Kr=/\u0000|\uFFFD/g;function Yr(e){return("string"==typeof e?e:""+e).replace(Jr,"\n").replace(Kr,"")}function Xr(e,t,n){if(t=Yr(t),Yr(e)!==t&&n)throw Error(i(425))}function Zr(){}var eo=null,to=null;function no(e,t){return"textarea"===e||"noscript"===e||"string"==typeof t.children||"number"==typeof t.children||"object"==typeof t.dangerouslySetInnerHTML&&null!==t.dangerouslySetInnerHTML&&null!=t.dangerouslySetInnerHTML.__html}var ro="function"==typeof setTimeout?setTimeout:void 0,oo="function"==typeof clearTimeout?clearTimeout:void 0,io="function"==typeof Promise?Promise:void 0,so="function"==typeof queueMicrotask?queueMicrotask:void 0!==io?function(e){return io.resolve(null).then(e).catch(ao)}:ro;function ao(e){setTimeout((function(){throw e}))}function lo(e,t){var n=t,r=0;do{var o=n.nextSibling;if(e.removeChild(n),o&&8===o.nodeType)if("/$"===(n=o.data)){if(0===r)return e.removeChild(o),void Qt(t);r--}else"$"!==n&&"$?"!==n&&"$!"!==n||r++;n=o}while(n);Qt(t)}function uo(e){for(;null!=e;e=e.nextSibling){var t=e.nodeType;if(1===t||3===t)break;if(8===t){if("$"===(t=e.data)||"$!"===t||"$?"===t)break;if("/$"===t)return null}}return e}function co(e){e=e.previousSibling;for(var t=0;e;){if(8===e.nodeType){var n=e.data;if("$"===n||"$!"===n||"$?"===n){if(0===t)return e;t--}else"/$"===n&&t++}e=e.previousSibling}return null}var po=Math.random().toString(36).slice(2),ho="__reactFiber$"+po,fo="__reactProps$"+po,mo="__reactContainer$"+po,go="__reactEvents$"+po,yo="__reactListeners$"+po,vo="__reactHandles$"+po;function bo(e){var t=e[ho];if(t)return t;for(var n=e.parentNode;n;){if(t=n[mo]||n[ho]){if(n=t.alternate,null!==t.child||null!==n&&null!==n.child)for(e=co(e);null!==e;){if(n=e[ho])return n;e=co(e)}return t}n=(e=n).parentNode}return null}function Co(e){return!(e=e[ho]||e[mo])||5!==e.tag&&6!==e.tag&&13!==e.tag&&3!==e.tag?null:e}function wo(e){if(5===e.tag||6===e.tag)return e.stateNode;throw Error(i(33))}function xo(e){return e[fo]||null}var Po=[],So=-1;function Eo(e){return{current:e}}function To(e){0>So||(e.current=Po[So],Po[So]=null,So--)}function Oo(e,t){So++,Po[So]=e.current,e.current=t}var Vo={},_o=Eo(Vo),Ro=Eo(!1),Io=Vo;function Do(e,t){var n=e.type.contextTypes;if(!n)return Vo;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var o,i={};for(o in n)i[o]=t[o];return r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=i),i}function Ao(e){return null!=e.childContextTypes}function ko(){To(Ro),To(_o)}function Mo(e,t,n){if(_o.current!==Vo)throw Error(i(168));Oo(_o,t),Oo(Ro,n)}function No(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,"function"!=typeof r.getChildContext)return n;for(var o in r=r.getChildContext())if(!(o in t))throw Error(i(108,H(e)||"Unknown",o));return L({},n,r)}function Lo(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Vo,Io=_o.current,Oo(_o,e),Oo(Ro,Ro.current),!0}function jo(e,t,n){var r=e.stateNode;if(!r)throw Error(i(169));n?(e=No(e,t,Io),r.__reactInternalMemoizedMergedChildContext=e,To(Ro),To(_o),Oo(_o,e)):To(Ro),Oo(Ro,n)}var qo=null,Fo=!1,Bo=!1;function Qo(e){null===qo?qo=[e]:qo.push(e)}function Ho(){if(!Bo&&null!==qo){Bo=!0;var e=0,t=bt;try{var n=qo;for(bt=1;e<n.length;e++){var r=n[e];do{r=r(!0)}while(null!==r)}qo=null,Fo=!1}catch(t){throw null!==qo&&(qo=qo.slice(e+1)),Ge(Ze,Ho),t}finally{bt=t,Bo=!1}}return null}var zo=[],Uo=0,Wo=null,Go=0,$o=[],Jo=0,Ko=null,Yo=1,Xo="";function Zo(e,t){zo[Uo++]=Go,zo[Uo++]=Wo,Wo=e,Go=t}function ei(e,t,n){$o[Jo++]=Yo,$o[Jo++]=Xo,$o[Jo++]=Ko,Ko=e;var r=Yo;e=Xo;var o=32-st(r)-1;r&=~(1<<o),n+=1;var i=32-st(t)+o;if(30<i){var s=o-o%5;i=(r&(1<<s)-1).toString(32),r>>=s,o-=s,Yo=1<<32-st(t)+o|n<<o|r,Xo=i+e}else Yo=1<<i|n<<o|r,Xo=e}function ti(e){null!==e.return&&(Zo(e,1),ei(e,1,0))}function ni(e){for(;e===Wo;)Wo=zo[--Uo],zo[Uo]=null,Go=zo[--Uo],zo[Uo]=null;for(;e===Ko;)Ko=$o[--Jo],$o[Jo]=null,Xo=$o[--Jo],$o[Jo]=null,Yo=$o[--Jo],$o[Jo]=null}var ri=null,oi=null,ii=!1,si=null;function ai(e,t){var n=Du(5,null,null,0);n.elementType="DELETED",n.stateNode=t,n.return=e,null===(t=e.deletions)?(e.deletions=[n],e.flags|=16):t.push(n)}function li(e,t){switch(e.tag){case 5:var n=e.type;return null!==(t=1!==t.nodeType||n.toLowerCase()!==t.nodeName.toLowerCase()?null:t)&&(e.stateNode=t,ri=e,oi=uo(t.firstChild),!0);case 6:return null!==(t=""===e.pendingProps||3!==t.nodeType?null:t)&&(e.stateNode=t,ri=e,oi=null,!0);case 13:return null!==(t=8!==t.nodeType?null:t)&&(n=null!==Ko?{id:Yo,overflow:Xo}:null,e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},(n=Du(18,null,null,0)).stateNode=t,n.return=e,e.child=n,ri=e,oi=null,!0);default:return!1}}function ui(e){return 0!=(1&e.mode)&&0==(128&e.flags)}function ci(e){if(ii){var t=oi;if(t){var n=t;if(!li(e,t)){if(ui(e))throw Error(i(418));t=uo(n.nextSibling);var r=ri;t&&li(e,t)?ai(r,n):(e.flags=-4097&e.flags|2,ii=!1,ri=e)}}else{if(ui(e))throw Error(i(418));e.flags=-4097&e.flags|2,ii=!1,ri=e}}}function pi(e){for(e=e.return;null!==e&&5!==e.tag&&3!==e.tag&&13!==e.tag;)e=e.return;ri=e}function di(e){if(e!==ri)return!1;if(!ii)return pi(e),ii=!0,!1;var t;if((t=3!==e.tag)&&!(t=5!==e.tag)&&(t="head"!==(t=e.type)&&"body"!==t&&!no(e.type,e.memoizedProps)),t&&(t=oi)){if(ui(e))throw hi(),Error(i(418));for(;t;)ai(e,t),t=uo(t.nextSibling)}if(pi(e),13===e.tag){if(!(e=null!==(e=e.memoizedState)?e.dehydrated:null))throw Error(i(317));e:{for(e=e.nextSibling,t=0;e;){if(8===e.nodeType){var n=e.data;if("/$"===n){if(0===t){oi=uo(e.nextSibling);break e}t--}else"$"!==n&&"$!"!==n&&"$?"!==n||t++}e=e.nextSibling}oi=null}}else oi=ri?uo(e.stateNode.nextSibling):null;return!0}function hi(){for(var e=oi;e;)e=uo(e.nextSibling)}function fi(){oi=ri=null,ii=!1}function mi(e){null===si?si=[e]:si.push(e)}var gi=C.ReactCurrentBatchConfig;function yi(e,t){if(e&&e.defaultProps){for(var n in t=L({},t),e=e.defaultProps)void 0===t[n]&&(t[n]=e[n]);return t}return t}var vi=Eo(null),bi=null,Ci=null,wi=null;function xi(){wi=Ci=bi=null}function Pi(e){var t=vi.current;To(vi),e._currentValue=t}function Si(e,t,n){for(;null!==e;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,null!==r&&(r.childLanes|=t)):null!==r&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===n)break;e=e.return}}function Ei(e,t){bi=e,wi=Ci=null,null!==(e=e.dependencies)&&null!==e.firstContext&&(0!=(e.lanes&t)&&(Ca=!0),e.firstContext=null)}function Ti(e){var t=e._currentValue;if(wi!==e)if(e={context:e,memoizedValue:t,next:null},null===Ci){if(null===bi)throw Error(i(308));Ci=e,bi.dependencies={lanes:0,firstContext:e}}else Ci=Ci.next=e;return t}var Oi=null;function Vi(e){null===Oi?Oi=[e]:Oi.push(e)}function _i(e,t,n,r){var o=t.interleaved;return null===o?(n.next=n,Vi(t)):(n.next=o.next,o.next=n),t.interleaved=n,Ri(e,r)}function Ri(e,t){e.lanes|=t;var n=e.alternate;for(null!==n&&(n.lanes|=t),n=e,e=e.return;null!==e;)e.childLanes|=t,null!==(n=e.alternate)&&(n.childLanes|=t),n=e,e=e.return;return 3===n.tag?n.stateNode:null}var Ii=!1;function Di(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Ai(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function ki(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function Mi(e,t,n){var r=e.updateQueue;if(null===r)return null;if(r=r.shared,0!=(2&_l)){var o=r.pending;return null===o?t.next=t:(t.next=o.next,o.next=t),r.pending=t,Ri(e,n)}return null===(o=r.interleaved)?(t.next=t,Vi(r)):(t.next=o.next,o.next=t),r.interleaved=t,Ri(e,n)}function Ni(e,t,n){if(null!==(t=t.updateQueue)&&(t=t.shared,0!=(4194240&n))){var r=t.lanes;n|=r&=e.pendingLanes,t.lanes=n,vt(e,n)}}function Li(e,t){var n=e.updateQueue,r=e.alternate;if(null!==r&&n===(r=r.updateQueue)){var o=null,i=null;if(null!==(n=n.firstBaseUpdate)){do{var s={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};null===i?o=i=s:i=i.next=s,n=n.next}while(null!==n);null===i?o=i=t:i=i.next=t}else o=i=t;return n={baseState:r.baseState,firstBaseUpdate:o,lastBaseUpdate:i,shared:r.shared,effects:r.effects},void(e.updateQueue=n)}null===(e=n.lastBaseUpdate)?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function ji(e,t,n,r){var o=e.updateQueue;Ii=!1;var i=o.firstBaseUpdate,s=o.lastBaseUpdate,a=o.shared.pending;if(null!==a){o.shared.pending=null;var l=a,u=l.next;l.next=null,null===s?i=u:s.next=u,s=l;var c=e.alternate;null!==c&&(a=(c=c.updateQueue).lastBaseUpdate)!==s&&(null===a?c.firstBaseUpdate=u:a.next=u,c.lastBaseUpdate=l)}if(null!==i){var p=o.baseState;for(s=0,c=u=l=null,a=i;;){var d=a.lane,h=a.eventTime;if((r&d)===d){null!==c&&(c=c.next={eventTime:h,lane:0,tag:a.tag,payload:a.payload,callback:a.callback,next:null});e:{var f=e,m=a;switch(d=t,h=n,m.tag){case 1:if("function"==typeof(f=m.payload)){p=f.call(h,p,d);break e}p=f;break e;case 3:f.flags=-65537&f.flags|128;case 0:if(null==(d="function"==typeof(f=m.payload)?f.call(h,p,d):f))break e;p=L({},p,d);break e;case 2:Ii=!0}}null!==a.callback&&0!==a.lane&&(e.flags|=64,null===(d=o.effects)?o.effects=[a]:d.push(a))}else h={eventTime:h,lane:d,tag:a.tag,payload:a.payload,callback:a.callback,next:null},null===c?(u=c=h,l=p):c=c.next=h,s|=d;if(null===(a=a.next)){if(null===(a=o.shared.pending))break;a=(d=a).next,d.next=null,o.lastBaseUpdate=d,o.shared.pending=null}}if(null===c&&(l=p),o.baseState=l,o.firstBaseUpdate=u,o.lastBaseUpdate=c,null!==(t=o.shared.interleaved)){o=t;do{s|=o.lane,o=o.next}while(o!==t)}else null===i&&(o.shared.lanes=0);Ll|=s,e.lanes=s,e.memoizedState=p}}function qi(e,t,n){if(e=t.effects,t.effects=null,null!==e)for(t=0;t<e.length;t++){var r=e[t],o=r.callback;if(null!==o){if(r.callback=null,r=n,"function"!=typeof o)throw Error(i(191,o));o.call(r)}}}var Fi=(new r.Component).refs;function Bi(e,t,n,r){n=null==(n=n(r,t=e.memoizedState))?t:L({},t,n),e.memoizedState=n,0===e.lanes&&(e.updateQueue.baseState=n)}var Qi={isMounted:function(e){return!!(e=e._reactInternals)&&Qe(e)===e},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=tu(),o=nu(e),i=ki(r,o);i.payload=t,null!=n&&(i.callback=n),null!==(t=Mi(e,i,o))&&(ru(t,e,o,r),Ni(t,e,o))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=tu(),o=nu(e),i=ki(r,o);i.tag=1,i.payload=t,null!=n&&(i.callback=n),null!==(t=Mi(e,i,o))&&(ru(t,e,o,r),Ni(t,e,o))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=tu(),r=nu(e),o=ki(n,r);o.tag=2,null!=t&&(o.callback=t),null!==(t=Mi(e,o,r))&&(ru(t,e,r,n),Ni(t,e,r))}};function Hi(e,t,n,r,o,i,s){return"function"==typeof(e=e.stateNode).shouldComponentUpdate?e.shouldComponentUpdate(r,i,s):!(t.prototype&&t.prototype.isPureReactComponent&&lr(n,r)&&lr(o,i))}function zi(e,t,n){var r=!1,o=Vo,i=t.contextType;return"object"==typeof i&&null!==i?i=Ti(i):(o=Ao(t)?Io:_o.current,i=(r=null!=(r=t.contextTypes))?Do(e,o):Vo),t=new t(n,i),e.memoizedState=null!==t.state&&void 0!==t.state?t.state:null,t.updater=Qi,e.stateNode=t,t._reactInternals=e,r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=o,e.__reactInternalMemoizedMaskedChildContext=i),t}function Ui(e,t,n,r){e=t.state,"function"==typeof t.componentWillReceiveProps&&t.componentWillReceiveProps(n,r),"function"==typeof t.UNSAFE_componentWillReceiveProps&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&Qi.enqueueReplaceState(t,t.state,null)}function Wi(e,t,n,r){var o=e.stateNode;o.props=n,o.state=e.memoizedState,o.refs=Fi,Di(e);var i=t.contextType;"object"==typeof i&&null!==i?o.context=Ti(i):(i=Ao(t)?Io:_o.current,o.context=Do(e,i)),o.state=e.memoizedState,"function"==typeof(i=t.getDerivedStateFromProps)&&(Bi(e,t,i,n),o.state=e.memoizedState),"function"==typeof t.getDerivedStateFromProps||"function"==typeof o.getSnapshotBeforeUpdate||"function"!=typeof o.UNSAFE_componentWillMount&&"function"!=typeof o.componentWillMount||(t=o.state,"function"==typeof o.componentWillMount&&o.componentWillMount(),"function"==typeof o.UNSAFE_componentWillMount&&o.UNSAFE_componentWillMount(),t!==o.state&&Qi.enqueueReplaceState(o,o.state,null),ji(e,n,o,r),o.state=e.memoizedState),"function"==typeof o.componentDidMount&&(e.flags|=4194308)}function Gi(e,t,n){if(null!==(e=n.ref)&&"function"!=typeof e&&"object"!=typeof e){if(n._owner){if(n=n._owner){if(1!==n.tag)throw Error(i(309));var r=n.stateNode}if(!r)throw Error(i(147,e));var o=r,s=""+e;return null!==t&&null!==t.ref&&"function"==typeof t.ref&&t.ref._stringRef===s?t.ref:(t=function(e){var t=o.refs;t===Fi&&(t=o.refs={}),null===e?delete t[s]:t[s]=e},t._stringRef=s,t)}if("string"!=typeof e)throw Error(i(284));if(!n._owner)throw Error(i(290,e))}return e}function $i(e,t){throw e=Object.prototype.toString.call(t),Error(i(31,"[object Object]"===e?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function Ji(e){return(0,e._init)(e._payload)}function Ki(e){function t(t,n){if(e){var r=t.deletions;null===r?(t.deletions=[n],t.flags|=16):r.push(n)}}function n(n,r){if(!e)return null;for(;null!==r;)t(n,r),r=r.sibling;return null}function r(e,t){for(e=new Map;null!==t;)null!==t.key?e.set(t.key,t):e.set(t.index,t),t=t.sibling;return e}function o(e,t){return(e=ku(e,t)).index=0,e.sibling=null,e}function s(t,n,r){return t.index=r,e?null!==(r=t.alternate)?(r=r.index)<n?(t.flags|=2,n):r:(t.flags|=2,n):(t.flags|=1048576,n)}function a(t){return e&&null===t.alternate&&(t.flags|=2),t}function l(e,t,n,r){return null===t||6!==t.tag?((t=ju(n,e.mode,r)).return=e,t):((t=o(t,n)).return=e,t)}function u(e,t,n,r){var i=n.type;return i===P?p(e,t,n.props.children,r,n.key):null!==t&&(t.elementType===i||"object"==typeof i&&null!==i&&i.$$typeof===D&&Ji(i)===t.type)?((r=o(t,n.props)).ref=Gi(e,t,n),r.return=e,r):((r=Mu(n.type,n.key,n.props,null,e.mode,r)).ref=Gi(e,t,n),r.return=e,r)}function c(e,t,n,r){return null===t||4!==t.tag||t.stateNode.containerInfo!==n.containerInfo||t.stateNode.implementation!==n.implementation?((t=qu(n,e.mode,r)).return=e,t):((t=o(t,n.children||[])).return=e,t)}function p(e,t,n,r,i){return null===t||7!==t.tag?((t=Nu(n,e.mode,r,i)).return=e,t):((t=o(t,n)).return=e,t)}function d(e,t,n){if("string"==typeof t&&""!==t||"number"==typeof t)return(t=ju(""+t,e.mode,n)).return=e,t;if("object"==typeof t&&null!==t){switch(t.$$typeof){case w:return(n=Mu(t.type,t.key,t.props,null,e.mode,n)).ref=Gi(e,null,t),n.return=e,n;case x:return(t=qu(t,e.mode,n)).return=e,t;case D:return d(e,(0,t._init)(t._payload),n)}if(te(t)||M(t))return(t=Nu(t,e.mode,n,null)).return=e,t;$i(e,t)}return null}function h(e,t,n,r){var o=null!==t?t.key:null;if("string"==typeof n&&""!==n||"number"==typeof n)return null!==o?null:l(e,t,""+n,r);if("object"==typeof n&&null!==n){switch(n.$$typeof){case w:return n.key===o?u(e,t,n,r):null;case x:return n.key===o?c(e,t,n,r):null;case D:return h(e,t,(o=n._init)(n._payload),r)}if(te(n)||M(n))return null!==o?null:p(e,t,n,r,null);$i(e,n)}return null}function f(e,t,n,r,o){if("string"==typeof r&&""!==r||"number"==typeof r)return l(t,e=e.get(n)||null,""+r,o);if("object"==typeof r&&null!==r){switch(r.$$typeof){case w:return u(t,e=e.get(null===r.key?n:r.key)||null,r,o);case x:return c(t,e=e.get(null===r.key?n:r.key)||null,r,o);case D:return f(e,t,n,(0,r._init)(r._payload),o)}if(te(r)||M(r))return p(t,e=e.get(n)||null,r,o,null);$i(t,r)}return null}function m(o,i,a,l){for(var u=null,c=null,p=i,m=i=0,g=null;null!==p&&m<a.length;m++){p.index>m?(g=p,p=null):g=p.sibling;var y=h(o,p,a[m],l);if(null===y){null===p&&(p=g);break}e&&p&&null===y.alternate&&t(o,p),i=s(y,i,m),null===c?u=y:c.sibling=y,c=y,p=g}if(m===a.length)return n(o,p),ii&&Zo(o,m),u;if(null===p){for(;m<a.length;m++)null!==(p=d(o,a[m],l))&&(i=s(p,i,m),null===c?u=p:c.sibling=p,c=p);return ii&&Zo(o,m),u}for(p=r(o,p);m<a.length;m++)null!==(g=f(p,o,m,a[m],l))&&(e&&null!==g.alternate&&p.delete(null===g.key?m:g.key),i=s(g,i,m),null===c?u=g:c.sibling=g,c=g);return e&&p.forEach((function(e){return t(o,e)})),ii&&Zo(o,m),u}function g(o,a,l,u){var c=M(l);if("function"!=typeof c)throw Error(i(150));if(null==(l=c.call(l)))throw Error(i(151));for(var p=c=null,m=a,g=a=0,y=null,v=l.next();null!==m&&!v.done;g++,v=l.next()){m.index>g?(y=m,m=null):y=m.sibling;var b=h(o,m,v.value,u);if(null===b){null===m&&(m=y);break}e&&m&&null===b.alternate&&t(o,m),a=s(b,a,g),null===p?c=b:p.sibling=b,p=b,m=y}if(v.done)return n(o,m),ii&&Zo(o,g),c;if(null===m){for(;!v.done;g++,v=l.next())null!==(v=d(o,v.value,u))&&(a=s(v,a,g),null===p?c=v:p.sibling=v,p=v);return ii&&Zo(o,g),c}for(m=r(o,m);!v.done;g++,v=l.next())null!==(v=f(m,o,g,v.value,u))&&(e&&null!==v.alternate&&m.delete(null===v.key?g:v.key),a=s(v,a,g),null===p?c=v:p.sibling=v,p=v);return e&&m.forEach((function(e){return t(o,e)})),ii&&Zo(o,g),c}return function e(r,i,s,l){if("object"==typeof s&&null!==s&&s.type===P&&null===s.key&&(s=s.props.children),"object"==typeof s&&null!==s){switch(s.$$typeof){case w:e:{for(var u=s.key,c=i;null!==c;){if(c.key===u){if((u=s.type)===P){if(7===c.tag){n(r,c.sibling),(i=o(c,s.props.children)).return=r,r=i;break e}}else if(c.elementType===u||"object"==typeof u&&null!==u&&u.$$typeof===D&&Ji(u)===c.type){n(r,c.sibling),(i=o(c,s.props)).ref=Gi(r,c,s),i.return=r,r=i;break e}n(r,c);break}t(r,c),c=c.sibling}s.type===P?((i=Nu(s.props.children,r.mode,l,s.key)).return=r,r=i):((l=Mu(s.type,s.key,s.props,null,r.mode,l)).ref=Gi(r,i,s),l.return=r,r=l)}return a(r);case x:e:{for(c=s.key;null!==i;){if(i.key===c){if(4===i.tag&&i.stateNode.containerInfo===s.containerInfo&&i.stateNode.implementation===s.implementation){n(r,i.sibling),(i=o(i,s.children||[])).return=r,r=i;break e}n(r,i);break}t(r,i),i=i.sibling}(i=qu(s,r.mode,l)).return=r,r=i}return a(r);case D:return e(r,i,(c=s._init)(s._payload),l)}if(te(s))return m(r,i,s,l);if(M(s))return g(r,i,s,l);$i(r,s)}return"string"==typeof s&&""!==s||"number"==typeof s?(s=""+s,null!==i&&6===i.tag?(n(r,i.sibling),(i=o(i,s)).return=r,r=i):(n(r,i),(i=ju(s,r.mode,l)).return=r,r=i),a(r)):n(r,i)}}var Yi=Ki(!0),Xi=Ki(!1),Zi={},es=Eo(Zi),ts=Eo(Zi),ns=Eo(Zi);function rs(e){if(e===Zi)throw Error(i(174));return e}function os(e,t){switch(Oo(ns,t),Oo(ts,e),Oo(es,Zi),e=t.nodeType){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:le(null,"");break;default:t=le(t=(e=8===e?t.parentNode:t).namespaceURI||null,e=e.tagName)}To(es),Oo(es,t)}function is(){To(es),To(ts),To(ns)}function ss(e){rs(ns.current);var t=rs(es.current),n=le(t,e.type);t!==n&&(Oo(ts,e),Oo(es,n))}function as(e){ts.current===e&&(To(es),To(ts))}var ls=Eo(0);function us(e){for(var t=e;null!==t;){if(13===t.tag){var n=t.memoizedState;if(null!==n&&(null===(n=n.dehydrated)||"$?"===n.data||"$!"===n.data))return t}else if(19===t.tag&&void 0!==t.memoizedProps.revealOrder){if(0!=(128&t.flags))return t}else if(null!==t.child){t.child.return=t,t=t.child;continue}if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var cs=[];function ps(){for(var e=0;e<cs.length;e++)cs[e]._workInProgressVersionPrimary=null;cs.length=0}var ds=C.ReactCurrentDispatcher,hs=C.ReactCurrentBatchConfig,fs=0,ms=null,gs=null,ys=null,vs=!1,bs=!1,Cs=0,ws=0;function xs(){throw Error(i(321))}function Ps(e,t){if(null===t)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!ar(e[n],t[n]))return!1;return!0}function Ss(e,t,n,r,o,s){if(fs=s,ms=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,ds.current=null===e||null===e.memoizedState?aa:la,e=n(r,o),bs){s=0;do{if(bs=!1,Cs=0,25<=s)throw Error(i(301));s+=1,ys=gs=null,t.updateQueue=null,ds.current=ua,e=n(r,o)}while(bs)}if(ds.current=sa,t=null!==gs&&null!==gs.next,fs=0,ys=gs=ms=null,vs=!1,t)throw Error(i(300));return e}function Es(){var e=0!==Cs;return Cs=0,e}function Ts(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return null===ys?ms.memoizedState=ys=e:ys=ys.next=e,ys}function Os(){if(null===gs){var e=ms.alternate;e=null!==e?e.memoizedState:null}else e=gs.next;var t=null===ys?ms.memoizedState:ys.next;if(null!==t)ys=t,gs=e;else{if(null===e)throw Error(i(310));e={memoizedState:(gs=e).memoizedState,baseState:gs.baseState,baseQueue:gs.baseQueue,queue:gs.queue,next:null},null===ys?ms.memoizedState=ys=e:ys=ys.next=e}return ys}function Vs(e,t){return"function"==typeof t?t(e):t}function _s(e){var t=Os(),n=t.queue;if(null===n)throw Error(i(311));n.lastRenderedReducer=e;var r=gs,o=r.baseQueue,s=n.pending;if(null!==s){if(null!==o){var a=o.next;o.next=s.next,s.next=a}r.baseQueue=o=s,n.pending=null}if(null!==o){s=o.next,r=r.baseState;var l=a=null,u=null,c=s;do{var p=c.lane;if((fs&p)===p)null!==u&&(u=u.next={lane:0,action:c.action,hasEagerState:c.hasEagerState,eagerState:c.eagerState,next:null}),r=c.hasEagerState?c.eagerState:e(r,c.action);else{var d={lane:p,action:c.action,hasEagerState:c.hasEagerState,eagerState:c.eagerState,next:null};null===u?(l=u=d,a=r):u=u.next=d,ms.lanes|=p,Ll|=p}c=c.next}while(null!==c&&c!==s);null===u?a=r:u.next=l,ar(r,t.memoizedState)||(Ca=!0),t.memoizedState=r,t.baseState=a,t.baseQueue=u,n.lastRenderedState=r}if(null!==(e=n.interleaved)){o=e;do{s=o.lane,ms.lanes|=s,Ll|=s,o=o.next}while(o!==e)}else null===o&&(n.lanes=0);return[t.memoizedState,n.dispatch]}function Rs(e){var t=Os(),n=t.queue;if(null===n)throw Error(i(311));n.lastRenderedReducer=e;var r=n.dispatch,o=n.pending,s=t.memoizedState;if(null!==o){n.pending=null;var a=o=o.next;do{s=e(s,a.action),a=a.next}while(a!==o);ar(s,t.memoizedState)||(Ca=!0),t.memoizedState=s,null===t.baseQueue&&(t.baseState=s),n.lastRenderedState=s}return[s,r]}function Is(){}function Ds(e,t){var n=ms,r=Os(),o=t(),s=!ar(r.memoizedState,o);if(s&&(r.memoizedState=o,Ca=!0),r=r.queue,zs(Ms.bind(null,n,r,e),[e]),r.getSnapshot!==t||s||null!==ys&&1&ys.memoizedState.tag){if(n.flags|=2048,qs(9,ks.bind(null,n,r,o,t),void 0,null),null===Rl)throw Error(i(349));0!=(30&fs)||As(n,t,o)}return o}function As(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},null===(t=ms.updateQueue)?(t={lastEffect:null,stores:null},ms.updateQueue=t,t.stores=[e]):null===(n=t.stores)?t.stores=[e]:n.push(e)}function ks(e,t,n,r){t.value=n,t.getSnapshot=r,Ns(t)&&Ls(e)}function Ms(e,t,n){return n((function(){Ns(t)&&Ls(e)}))}function Ns(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!ar(e,n)}catch(e){return!0}}function Ls(e){var t=Ri(e,1);null!==t&&ru(t,e,1,-1)}function js(e){var t=Ts();return"function"==typeof e&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:Vs,lastRenderedState:e},t.queue=e,e=e.dispatch=na.bind(null,ms,e),[t.memoizedState,e]}function qs(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},null===(t=ms.updateQueue)?(t={lastEffect:null,stores:null},ms.updateQueue=t,t.lastEffect=e.next=e):null===(n=t.lastEffect)?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e),e}function Fs(){return Os().memoizedState}function Bs(e,t,n,r){var o=Ts();ms.flags|=e,o.memoizedState=qs(1|t,n,void 0,void 0===r?null:r)}function Qs(e,t,n,r){var o=Os();r=void 0===r?null:r;var i=void 0;if(null!==gs){var s=gs.memoizedState;if(i=s.destroy,null!==r&&Ps(r,s.deps))return void(o.memoizedState=qs(t,n,i,r))}ms.flags|=e,o.memoizedState=qs(1|t,n,i,r)}function Hs(e,t){return Bs(8390656,8,e,t)}function zs(e,t){return Qs(2048,8,e,t)}function Us(e,t){return Qs(4,2,e,t)}function Ws(e,t){return Qs(4,4,e,t)}function Gs(e,t){return"function"==typeof t?(e=e(),t(e),function(){t(null)}):null!=t?(e=e(),t.current=e,function(){t.current=null}):void 0}function $s(e,t,n){return n=null!=n?n.concat([e]):null,Qs(4,4,Gs.bind(null,t,e),n)}function Js(){}function Ks(e,t){var n=Os();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&Ps(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function Ys(e,t){var n=Os();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&Ps(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function Xs(e,t,n){return 0==(21&fs)?(e.baseState&&(e.baseState=!1,Ca=!0),e.memoizedState=n):(ar(n,t)||(n=mt(),ms.lanes|=n,Ll|=n,e.baseState=!0),t)}function Zs(e,t){var n=bt;bt=0!==n&&4>n?n:4,e(!0);var r=hs.transition;hs.transition={};try{e(!1),t()}finally{bt=n,hs.transition=r}}function ea(){return Os().memoizedState}function ta(e,t,n){var r=nu(e);n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},ra(e)?oa(t,n):null!==(n=_i(e,t,n,r))&&(ru(n,e,r,tu()),ia(n,t,r))}function na(e,t,n){var r=nu(e),o={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(ra(e))oa(t,o);else{var i=e.alternate;if(0===e.lanes&&(null===i||0===i.lanes)&&null!==(i=t.lastRenderedReducer))try{var s=t.lastRenderedState,a=i(s,n);if(o.hasEagerState=!0,o.eagerState=a,ar(a,s)){var l=t.interleaved;return null===l?(o.next=o,Vi(t)):(o.next=l.next,l.next=o),void(t.interleaved=o)}}catch(e){}null!==(n=_i(e,t,o,r))&&(ru(n,e,r,o=tu()),ia(n,t,r))}}function ra(e){var t=e.alternate;return e===ms||null!==t&&t===ms}function oa(e,t){bs=vs=!0;var n=e.pending;null===n?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function ia(e,t,n){if(0!=(4194240&n)){var r=t.lanes;n|=r&=e.pendingLanes,t.lanes=n,vt(e,n)}}var sa={readContext:Ti,useCallback:xs,useContext:xs,useEffect:xs,useImperativeHandle:xs,useInsertionEffect:xs,useLayoutEffect:xs,useMemo:xs,useReducer:xs,useRef:xs,useState:xs,useDebugValue:xs,useDeferredValue:xs,useTransition:xs,useMutableSource:xs,useSyncExternalStore:xs,useId:xs,unstable_isNewReconciler:!1},aa={readContext:Ti,useCallback:function(e,t){return Ts().memoizedState=[e,void 0===t?null:t],e},useContext:Ti,useEffect:Hs,useImperativeHandle:function(e,t,n){return n=null!=n?n.concat([e]):null,Bs(4194308,4,Gs.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Bs(4194308,4,e,t)},useInsertionEffect:function(e,t){return Bs(4,2,e,t)},useMemo:function(e,t){var n=Ts();return t=void 0===t?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=Ts();return t=void 0!==n?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=ta.bind(null,ms,e),[r.memoizedState,e]},useRef:function(e){return e={current:e},Ts().memoizedState=e},useState:js,useDebugValue:Js,useDeferredValue:function(e){return Ts().memoizedState=e},useTransition:function(){var e=js(!1),t=e[0];return e=Zs.bind(null,e[1]),Ts().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=ms,o=Ts();if(ii){if(void 0===n)throw Error(i(407));n=n()}else{if(n=t(),null===Rl)throw Error(i(349));0!=(30&fs)||As(r,t,n)}o.memoizedState=n;var s={value:n,getSnapshot:t};return o.queue=s,Hs(Ms.bind(null,r,s,e),[e]),r.flags|=2048,qs(9,ks.bind(null,r,s,n,t),void 0,null),n},useId:function(){var e=Ts(),t=Rl.identifierPrefix;if(ii){var n=Xo;t=":"+t+"R"+(n=(Yo&~(1<<32-st(Yo)-1)).toString(32)+n),0<(n=Cs++)&&(t+="H"+n.toString(32)),t+=":"}else t=":"+t+"r"+(n=ws++).toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},la={readContext:Ti,useCallback:Ks,useContext:Ti,useEffect:zs,useImperativeHandle:$s,useInsertionEffect:Us,useLayoutEffect:Ws,useMemo:Ys,useReducer:_s,useRef:Fs,useState:function(){return _s(Vs)},useDebugValue:Js,useDeferredValue:function(e){return Xs(Os(),gs.memoizedState,e)},useTransition:function(){return[_s(Vs)[0],Os().memoizedState]},useMutableSource:Is,useSyncExternalStore:Ds,useId:ea,unstable_isNewReconciler:!1},ua={readContext:Ti,useCallback:Ks,useContext:Ti,useEffect:zs,useImperativeHandle:$s,useInsertionEffect:Us,useLayoutEffect:Ws,useMemo:Ys,useReducer:Rs,useRef:Fs,useState:function(){return Rs(Vs)},useDebugValue:Js,useDeferredValue:function(e){var t=Os();return null===gs?t.memoizedState=e:Xs(t,gs.memoizedState,e)},useTransition:function(){return[Rs(Vs)[0],Os().memoizedState]},useMutableSource:Is,useSyncExternalStore:Ds,useId:ea,unstable_isNewReconciler:!1};function ca(e,t){try{var n="",r=t;do{n+=B(r),r=r.return}while(r);var o=n}catch(e){o="\nError generating stack: "+e.message+"\n"+e.stack}return{value:e,source:t,stack:o,digest:null}}function pa(e,t,n){return{value:e,source:null,stack:null!=n?n:null,digest:null!=t?t:null}}function da(e,t){try{console.error(t.value)}catch(e){setTimeout((function(){throw e}))}}var ha="function"==typeof WeakMap?WeakMap:Map;function fa(e,t,n){(n=ki(-1,n)).tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){Ul||(Ul=!0,Wl=r),da(0,t)},n}function ma(e,t,n){(n=ki(-1,n)).tag=3;var r=e.type.getDerivedStateFromError;if("function"==typeof r){var o=t.value;n.payload=function(){return r(o)},n.callback=function(){da(0,t)}}var i=e.stateNode;return null!==i&&"function"==typeof i.componentDidCatch&&(n.callback=function(){da(0,t),"function"!=typeof r&&(null===Gl?Gl=new Set([this]):Gl.add(this));var e=t.stack;this.componentDidCatch(t.value,{componentStack:null!==e?e:""})}),n}function ga(e,t,n){var r=e.pingCache;if(null===r){r=e.pingCache=new ha;var o=new Set;r.set(t,o)}else void 0===(o=r.get(t))&&(o=new Set,r.set(t,o));o.has(n)||(o.add(n),e=Tu.bind(null,e,t,n),t.then(e,e))}function ya(e){do{var t;if((t=13===e.tag)&&(t=null===(t=e.memoizedState)||null!==t.dehydrated),t)return e;e=e.return}while(null!==e);return null}function va(e,t,n,r,o){return 0==(1&e.mode)?(e===t?e.flags|=65536:(e.flags|=128,n.flags|=131072,n.flags&=-52805,1===n.tag&&(null===n.alternate?n.tag=17:((t=ki(-1,1)).tag=2,Mi(n,t,1))),n.lanes|=1),e):(e.flags|=65536,e.lanes=o,e)}var ba=C.ReactCurrentOwner,Ca=!1;function wa(e,t,n,r){t.child=null===e?Xi(t,null,n,r):Yi(t,e.child,n,r)}function xa(e,t,n,r,o){n=n.render;var i=t.ref;return Ei(t,o),r=Ss(e,t,n,r,i,o),n=Es(),null===e||Ca?(ii&&n&&ti(t),t.flags|=1,wa(e,t,r,o),t.child):(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,Ua(e,t,o))}function Pa(e,t,n,r,o){if(null===e){var i=n.type;return"function"!=typeof i||Au(i)||void 0!==i.defaultProps||null!==n.compare||void 0!==n.defaultProps?((e=Mu(n.type,null,r,t,t.mode,o)).ref=t.ref,e.return=t,t.child=e):(t.tag=15,t.type=i,Sa(e,t,i,r,o))}if(i=e.child,0==(e.lanes&o)){var s=i.memoizedProps;if((n=null!==(n=n.compare)?n:lr)(s,r)&&e.ref===t.ref)return Ua(e,t,o)}return t.flags|=1,(e=ku(i,r)).ref=t.ref,e.return=t,t.child=e}function Sa(e,t,n,r,o){if(null!==e){var i=e.memoizedProps;if(lr(i,r)&&e.ref===t.ref){if(Ca=!1,t.pendingProps=r=i,0==(e.lanes&o))return t.lanes=e.lanes,Ua(e,t,o);0!=(131072&e.flags)&&(Ca=!0)}}return Oa(e,t,n,r,o)}function Ea(e,t,n){var r=t.pendingProps,o=r.children,i=null!==e?e.memoizedState:null;if("hidden"===r.mode)if(0==(1&t.mode))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},Oo(kl,Al),Al|=n;else{if(0==(1073741824&n))return e=null!==i?i.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,Oo(kl,Al),Al|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=null!==i?i.baseLanes:n,Oo(kl,Al),Al|=r}else null!==i?(r=i.baseLanes|n,t.memoizedState=null):r=n,Oo(kl,Al),Al|=r;return wa(e,t,o,n),t.child}function Ta(e,t){var n=t.ref;(null===e&&null!==n||null!==e&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function Oa(e,t,n,r,o){var i=Ao(n)?Io:_o.current;return i=Do(t,i),Ei(t,o),n=Ss(e,t,n,r,i,o),r=Es(),null===e||Ca?(ii&&r&&ti(t),t.flags|=1,wa(e,t,n,o),t.child):(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,Ua(e,t,o))}function Va(e,t,n,r,o){if(Ao(n)){var i=!0;Lo(t)}else i=!1;if(Ei(t,o),null===t.stateNode)za(e,t),zi(t,n,r),Wi(t,n,r,o),r=!0;else if(null===e){var s=t.stateNode,a=t.memoizedProps;s.props=a;var l=s.context,u=n.contextType;u="object"==typeof u&&null!==u?Ti(u):Do(t,u=Ao(n)?Io:_o.current);var c=n.getDerivedStateFromProps,p="function"==typeof c||"function"==typeof s.getSnapshotBeforeUpdate;p||"function"!=typeof s.UNSAFE_componentWillReceiveProps&&"function"!=typeof s.componentWillReceiveProps||(a!==r||l!==u)&&Ui(t,s,r,u),Ii=!1;var d=t.memoizedState;s.state=d,ji(t,r,s,o),l=t.memoizedState,a!==r||d!==l||Ro.current||Ii?("function"==typeof c&&(Bi(t,n,c,r),l=t.memoizedState),(a=Ii||Hi(t,n,a,r,d,l,u))?(p||"function"!=typeof s.UNSAFE_componentWillMount&&"function"!=typeof s.componentWillMount||("function"==typeof s.componentWillMount&&s.componentWillMount(),"function"==typeof s.UNSAFE_componentWillMount&&s.UNSAFE_componentWillMount()),"function"==typeof s.componentDidMount&&(t.flags|=4194308)):("function"==typeof s.componentDidMount&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=l),s.props=r,s.state=l,s.context=u,r=a):("function"==typeof s.componentDidMount&&(t.flags|=4194308),r=!1)}else{s=t.stateNode,Ai(e,t),a=t.memoizedProps,u=t.type===t.elementType?a:yi(t.type,a),s.props=u,p=t.pendingProps,d=s.context,l="object"==typeof(l=n.contextType)&&null!==l?Ti(l):Do(t,l=Ao(n)?Io:_o.current);var h=n.getDerivedStateFromProps;(c="function"==typeof h||"function"==typeof s.getSnapshotBeforeUpdate)||"function"!=typeof s.UNSAFE_componentWillReceiveProps&&"function"!=typeof s.componentWillReceiveProps||(a!==p||d!==l)&&Ui(t,s,r,l),Ii=!1,d=t.memoizedState,s.state=d,ji(t,r,s,o);var f=t.memoizedState;a!==p||d!==f||Ro.current||Ii?("function"==typeof h&&(Bi(t,n,h,r),f=t.memoizedState),(u=Ii||Hi(t,n,u,r,d,f,l)||!1)?(c||"function"!=typeof s.UNSAFE_componentWillUpdate&&"function"!=typeof s.componentWillUpdate||("function"==typeof s.componentWillUpdate&&s.componentWillUpdate(r,f,l),"function"==typeof s.UNSAFE_componentWillUpdate&&s.UNSAFE_componentWillUpdate(r,f,l)),"function"==typeof s.componentDidUpdate&&(t.flags|=4),"function"==typeof s.getSnapshotBeforeUpdate&&(t.flags|=1024)):("function"!=typeof s.componentDidUpdate||a===e.memoizedProps&&d===e.memoizedState||(t.flags|=4),"function"!=typeof s.getSnapshotBeforeUpdate||a===e.memoizedProps&&d===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=f),s.props=r,s.state=f,s.context=l,r=u):("function"!=typeof s.componentDidUpdate||a===e.memoizedProps&&d===e.memoizedState||(t.flags|=4),"function"!=typeof s.getSnapshotBeforeUpdate||a===e.memoizedProps&&d===e.memoizedState||(t.flags|=1024),r=!1)}return _a(e,t,n,r,i,o)}function _a(e,t,n,r,o,i){Ta(e,t);var s=0!=(128&t.flags);if(!r&&!s)return o&&jo(t,n,!1),Ua(e,t,i);r=t.stateNode,ba.current=t;var a=s&&"function"!=typeof n.getDerivedStateFromError?null:r.render();return t.flags|=1,null!==e&&s?(t.child=Yi(t,e.child,null,i),t.child=Yi(t,null,a,i)):wa(e,t,a,i),t.memoizedState=r.state,o&&jo(t,n,!0),t.child}function Ra(e){var t=e.stateNode;t.pendingContext?Mo(0,t.pendingContext,t.pendingContext!==t.context):t.context&&Mo(0,t.context,!1),os(e,t.containerInfo)}function Ia(e,t,n,r,o){return fi(),mi(o),t.flags|=256,wa(e,t,n,r),t.child}var Da,Aa,ka,Ma,Na={dehydrated:null,treeContext:null,retryLane:0};function La(e){return{baseLanes:e,cachePool:null,transitions:null}}function ja(e,t,n){var r,o=t.pendingProps,s=ls.current,a=!1,l=0!=(128&t.flags);if((r=l)||(r=(null===e||null!==e.memoizedState)&&0!=(2&s)),r?(a=!0,t.flags&=-129):null!==e&&null===e.memoizedState||(s|=1),Oo(ls,1&s),null===e)return ci(t),null!==(e=t.memoizedState)&&null!==(e=e.dehydrated)?(0==(1&t.mode)?t.lanes=1:"$!"===e.data?t.lanes=8:t.lanes=1073741824,null):(l=o.children,e=o.fallback,a?(o=t.mode,a=t.child,l={mode:"hidden",children:l},0==(1&o)&&null!==a?(a.childLanes=0,a.pendingProps=l):a=Lu(l,o,0,null),e=Nu(e,o,n,null),a.return=t,e.return=t,a.sibling=e,t.child=a,t.child.memoizedState=La(n),t.memoizedState=Na,e):qa(t,l));if(null!==(s=e.memoizedState)&&null!==(r=s.dehydrated))return function(e,t,n,r,o,s,a){if(n)return 256&t.flags?(t.flags&=-257,Fa(e,t,a,r=pa(Error(i(422))))):null!==t.memoizedState?(t.child=e.child,t.flags|=128,null):(s=r.fallback,o=t.mode,r=Lu({mode:"visible",children:r.children},o,0,null),(s=Nu(s,o,a,null)).flags|=2,r.return=t,s.return=t,r.sibling=s,t.child=r,0!=(1&t.mode)&&Yi(t,e.child,null,a),t.child.memoizedState=La(a),t.memoizedState=Na,s);if(0==(1&t.mode))return Fa(e,t,a,null);if("$!"===o.data){if(r=o.nextSibling&&o.nextSibling.dataset)var l=r.dgst;return r=l,Fa(e,t,a,r=pa(s=Error(i(419)),r,void 0))}if(l=0!=(a&e.childLanes),Ca||l){if(null!==(r=Rl)){switch(a&-a){case 4:o=2;break;case 16:o=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:o=32;break;case 536870912:o=268435456;break;default:o=0}0!==(o=0!=(o&(r.suspendedLanes|a))?0:o)&&o!==s.retryLane&&(s.retryLane=o,Ri(e,o),ru(r,e,o,-1))}return gu(),Fa(e,t,a,r=pa(Error(i(421))))}return"$?"===o.data?(t.flags|=128,t.child=e.child,t=Vu.bind(null,e),o._reactRetry=t,null):(e=s.treeContext,oi=uo(o.nextSibling),ri=t,ii=!0,si=null,null!==e&&($o[Jo++]=Yo,$o[Jo++]=Xo,$o[Jo++]=Ko,Yo=e.id,Xo=e.overflow,Ko=t),(t=qa(t,r.children)).flags|=4096,t)}(e,t,l,o,r,s,n);if(a){a=o.fallback,l=t.mode,r=(s=e.child).sibling;var u={mode:"hidden",children:o.children};return 0==(1&l)&&t.child!==s?((o=t.child).childLanes=0,o.pendingProps=u,t.deletions=null):(o=ku(s,u)).subtreeFlags=14680064&s.subtreeFlags,null!==r?a=ku(r,a):(a=Nu(a,l,n,null)).flags|=2,a.return=t,o.return=t,o.sibling=a,t.child=o,o=a,a=t.child,l=null===(l=e.child.memoizedState)?La(n):{baseLanes:l.baseLanes|n,cachePool:null,transitions:l.transitions},a.memoizedState=l,a.childLanes=e.childLanes&~n,t.memoizedState=Na,o}return e=(a=e.child).sibling,o=ku(a,{mode:"visible",children:o.children}),0==(1&t.mode)&&(o.lanes=n),o.return=t,o.sibling=null,null!==e&&(null===(n=t.deletions)?(t.deletions=[e],t.flags|=16):n.push(e)),t.child=o,t.memoizedState=null,o}function qa(e,t){return(t=Lu({mode:"visible",children:t},e.mode,0,null)).return=e,e.child=t}function Fa(e,t,n,r){return null!==r&&mi(r),Yi(t,e.child,null,n),(e=qa(t,t.pendingProps.children)).flags|=2,t.memoizedState=null,e}function Ba(e,t,n){e.lanes|=t;var r=e.alternate;null!==r&&(r.lanes|=t),Si(e.return,t,n)}function Qa(e,t,n,r,o){var i=e.memoizedState;null===i?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:o}:(i.isBackwards=t,i.rendering=null,i.renderingStartTime=0,i.last=r,i.tail=n,i.tailMode=o)}function Ha(e,t,n){var r=t.pendingProps,o=r.revealOrder,i=r.tail;if(wa(e,t,r.children,n),0!=(2&(r=ls.current)))r=1&r|2,t.flags|=128;else{if(null!==e&&0!=(128&e.flags))e:for(e=t.child;null!==e;){if(13===e.tag)null!==e.memoizedState&&Ba(e,n,t);else if(19===e.tag)Ba(e,n,t);else if(null!==e.child){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;null===e.sibling;){if(null===e.return||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=1}if(Oo(ls,r),0==(1&t.mode))t.memoizedState=null;else switch(o){case"forwards":for(n=t.child,o=null;null!==n;)null!==(e=n.alternate)&&null===us(e)&&(o=n),n=n.sibling;null===(n=o)?(o=t.child,t.child=null):(o=n.sibling,n.sibling=null),Qa(t,!1,o,n,i);break;case"backwards":for(n=null,o=t.child,t.child=null;null!==o;){if(null!==(e=o.alternate)&&null===us(e)){t.child=o;break}e=o.sibling,o.sibling=n,n=o,o=e}Qa(t,!0,n,null,i);break;case"together":Qa(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function za(e,t){0==(1&t.mode)&&null!==e&&(e.alternate=null,t.alternate=null,t.flags|=2)}function Ua(e,t,n){if(null!==e&&(t.dependencies=e.dependencies),Ll|=t.lanes,0==(n&t.childLanes))return null;if(null!==e&&t.child!==e.child)throw Error(i(153));if(null!==t.child){for(n=ku(e=t.child,e.pendingProps),t.child=n,n.return=t;null!==e.sibling;)e=e.sibling,(n=n.sibling=ku(e,e.pendingProps)).return=t;n.sibling=null}return t.child}function Wa(e,t){if(!ii)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;null!==t;)null!==t.alternate&&(n=t),t=t.sibling;null===n?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var r=null;null!==n;)null!==n.alternate&&(r=n),n=n.sibling;null===r?t||null===e.tail?e.tail=null:e.tail.sibling=null:r.sibling=null}}function Ga(e){var t=null!==e.alternate&&e.alternate.child===e.child,n=0,r=0;if(t)for(var o=e.child;null!==o;)n|=o.lanes|o.childLanes,r|=14680064&o.subtreeFlags,r|=14680064&o.flags,o.return=e,o=o.sibling;else for(o=e.child;null!==o;)n|=o.lanes|o.childLanes,r|=o.subtreeFlags,r|=o.flags,o.return=e,o=o.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function $a(e,t,n){var r=t.pendingProps;switch(ni(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Ga(t),null;case 1:case 17:return Ao(t.type)&&ko(),Ga(t),null;case 3:return r=t.stateNode,is(),To(Ro),To(_o),ps(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),null!==e&&null!==e.child||(di(t)?t.flags|=4:null===e||e.memoizedState.isDehydrated&&0==(256&t.flags)||(t.flags|=1024,null!==si&&(au(si),si=null))),Aa(e,t),Ga(t),null;case 5:as(t);var o=rs(ns.current);if(n=t.type,null!==e&&null!=t.stateNode)ka(e,t,n,r,o),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!r){if(null===t.stateNode)throw Error(i(166));return Ga(t),null}if(e=rs(es.current),di(t)){r=t.stateNode,n=t.type;var s=t.memoizedProps;switch(r[ho]=t,r[fo]=s,e=0!=(1&t.mode),n){case"dialog":qr("cancel",r),qr("close",r);break;case"iframe":case"object":case"embed":qr("load",r);break;case"video":case"audio":for(o=0;o<Mr.length;o++)qr(Mr[o],r);break;case"source":qr("error",r);break;case"img":case"image":case"link":qr("error",r),qr("load",r);break;case"details":qr("toggle",r);break;case"input":K(r,s),qr("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!s.multiple},qr("invalid",r);break;case"textarea":oe(r,s),qr("invalid",r)}for(var l in ve(n,s),o=null,s)if(s.hasOwnProperty(l)){var u=s[l];"children"===l?"string"==typeof u?r.textContent!==u&&(!0!==s.suppressHydrationWarning&&Xr(r.textContent,u,e),o=["children",u]):"number"==typeof u&&r.textContent!==""+u&&(!0!==s.suppressHydrationWarning&&Xr(r.textContent,u,e),o=["children",""+u]):a.hasOwnProperty(l)&&null!=u&&"onScroll"===l&&qr("scroll",r)}switch(n){case"input":W(r),Z(r,s,!0);break;case"textarea":W(r),se(r);break;case"select":case"option":break;default:"function"==typeof s.onClick&&(r.onclick=Zr)}r=o,t.updateQueue=r,null!==r&&(t.flags|=4)}else{l=9===o.nodeType?o:o.ownerDocument,"http://www.w3.org/1999/xhtml"===e&&(e=ae(n)),"http://www.w3.org/1999/xhtml"===e?"script"===n?((e=l.createElement("div")).innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):"string"==typeof r.is?e=l.createElement(n,{is:r.is}):(e=l.createElement(n),"select"===n&&(l=e,r.multiple?l.multiple=!0:r.size&&(l.size=r.size))):e=l.createElementNS(e,n),e[ho]=t,e[fo]=r,Da(e,t,!1,!1),t.stateNode=e;e:{switch(l=be(n,r),n){case"dialog":qr("cancel",e),qr("close",e),o=r;break;case"iframe":case"object":case"embed":qr("load",e),o=r;break;case"video":case"audio":for(o=0;o<Mr.length;o++)qr(Mr[o],e);o=r;break;case"source":qr("error",e),o=r;break;case"img":case"image":case"link":qr("error",e),qr("load",e),o=r;break;case"details":qr("toggle",e),o=r;break;case"input":K(e,r),o=J(e,r),qr("invalid",e);break;case"option":default:o=r;break;case"select":e._wrapperState={wasMultiple:!!r.multiple},o=L({},r,{value:void 0}),qr("invalid",e);break;case"textarea":oe(e,r),o=re(e,r),qr("invalid",e)}for(s in ve(n,o),u=o)if(u.hasOwnProperty(s)){var c=u[s];"style"===s?ge(e,c):"dangerouslySetInnerHTML"===s?null!=(c=c?c.__html:void 0)&&pe(e,c):"children"===s?"string"==typeof c?("textarea"!==n||""!==c)&&de(e,c):"number"==typeof c&&de(e,""+c):"suppressContentEditableWarning"!==s&&"suppressHydrationWarning"!==s&&"autoFocus"!==s&&(a.hasOwnProperty(s)?null!=c&&"onScroll"===s&&qr("scroll",e):null!=c&&b(e,s,c,l))}switch(n){case"input":W(e),Z(e,r,!1);break;case"textarea":W(e),se(e);break;case"option":null!=r.value&&e.setAttribute("value",""+z(r.value));break;case"select":e.multiple=!!r.multiple,null!=(s=r.value)?ne(e,!!r.multiple,s,!1):null!=r.defaultValue&&ne(e,!!r.multiple,r.defaultValue,!0);break;default:"function"==typeof o.onClick&&(e.onclick=Zr)}switch(n){case"button":case"input":case"select":case"textarea":r=!!r.autoFocus;break e;case"img":r=!0;break e;default:r=!1}}r&&(t.flags|=4)}null!==t.ref&&(t.flags|=512,t.flags|=2097152)}return Ga(t),null;case 6:if(e&&null!=t.stateNode)Ma(e,t,e.memoizedProps,r);else{if("string"!=typeof r&&null===t.stateNode)throw Error(i(166));if(n=rs(ns.current),rs(es.current),di(t)){if(r=t.stateNode,n=t.memoizedProps,r[ho]=t,(s=r.nodeValue!==n)&&null!==(e=ri))switch(e.tag){case 3:Xr(r.nodeValue,n,0!=(1&e.mode));break;case 5:!0!==e.memoizedProps.suppressHydrationWarning&&Xr(r.nodeValue,n,0!=(1&e.mode))}s&&(t.flags|=4)}else(r=(9===n.nodeType?n:n.ownerDocument).createTextNode(r))[ho]=t,t.stateNode=r}return Ga(t),null;case 13:if(To(ls),r=t.memoizedState,null===e||null!==e.memoizedState&&null!==e.memoizedState.dehydrated){if(ii&&null!==oi&&0!=(1&t.mode)&&0==(128&t.flags))hi(),fi(),t.flags|=98560,s=!1;else if(s=di(t),null!==r&&null!==r.dehydrated){if(null===e){if(!s)throw Error(i(318));if(!(s=null!==(s=t.memoizedState)?s.dehydrated:null))throw Error(i(317));s[ho]=t}else fi(),0==(128&t.flags)&&(t.memoizedState=null),t.flags|=4;Ga(t),s=!1}else null!==si&&(au(si),si=null),s=!0;if(!s)return 65536&t.flags?t:null}return 0!=(128&t.flags)?(t.lanes=n,t):((r=null!==r)!=(null!==e&&null!==e.memoizedState)&&r&&(t.child.flags|=8192,0!=(1&t.mode)&&(null===e||0!=(1&ls.current)?0===Ml&&(Ml=3):gu())),null!==t.updateQueue&&(t.flags|=4),Ga(t),null);case 4:return is(),Aa(e,t),null===e&&Qr(t.stateNode.containerInfo),Ga(t),null;case 10:return Pi(t.type._context),Ga(t),null;case 19:if(To(ls),null===(s=t.memoizedState))return Ga(t),null;if(r=0!=(128&t.flags),null===(l=s.rendering))if(r)Wa(s,!1);else{if(0!==Ml||null!==e&&0!=(128&e.flags))for(e=t.child;null!==e;){if(null!==(l=us(e))){for(t.flags|=128,Wa(s,!1),null!==(r=l.updateQueue)&&(t.updateQueue=r,t.flags|=4),t.subtreeFlags=0,r=n,n=t.child;null!==n;)e=r,(s=n).flags&=14680066,null===(l=s.alternate)?(s.childLanes=0,s.lanes=e,s.child=null,s.subtreeFlags=0,s.memoizedProps=null,s.memoizedState=null,s.updateQueue=null,s.dependencies=null,s.stateNode=null):(s.childLanes=l.childLanes,s.lanes=l.lanes,s.child=l.child,s.subtreeFlags=0,s.deletions=null,s.memoizedProps=l.memoizedProps,s.memoizedState=l.memoizedState,s.updateQueue=l.updateQueue,s.type=l.type,e=l.dependencies,s.dependencies=null===e?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return Oo(ls,1&ls.current|2),t.child}e=e.sibling}null!==s.tail&&Ye()>Hl&&(t.flags|=128,r=!0,Wa(s,!1),t.lanes=4194304)}else{if(!r)if(null!==(e=us(l))){if(t.flags|=128,r=!0,null!==(n=e.updateQueue)&&(t.updateQueue=n,t.flags|=4),Wa(s,!0),null===s.tail&&"hidden"===s.tailMode&&!l.alternate&&!ii)return Ga(t),null}else 2*Ye()-s.renderingStartTime>Hl&&1073741824!==n&&(t.flags|=128,r=!0,Wa(s,!1),t.lanes=4194304);s.isBackwards?(l.sibling=t.child,t.child=l):(null!==(n=s.last)?n.sibling=l:t.child=l,s.last=l)}return null!==s.tail?(t=s.tail,s.rendering=t,s.tail=t.sibling,s.renderingStartTime=Ye(),t.sibling=null,n=ls.current,Oo(ls,r?1&n|2:1&n),t):(Ga(t),null);case 22:case 23:return du(),r=null!==t.memoizedState,null!==e&&null!==e.memoizedState!==r&&(t.flags|=8192),r&&0!=(1&t.mode)?0!=(1073741824&Al)&&(Ga(t),6&t.subtreeFlags&&(t.flags|=8192)):Ga(t),null;case 24:case 25:return null}throw Error(i(156,t.tag))}function Ja(e,t){switch(ni(t),t.tag){case 1:return Ao(t.type)&&ko(),65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 3:return is(),To(Ro),To(_o),ps(),0!=(65536&(e=t.flags))&&0==(128&e)?(t.flags=-65537&e|128,t):null;case 5:return as(t),null;case 13:if(To(ls),null!==(e=t.memoizedState)&&null!==e.dehydrated){if(null===t.alternate)throw Error(i(340));fi()}return 65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 19:return To(ls),null;case 4:return is(),null;case 10:return Pi(t.type._context),null;case 22:case 23:return du(),null;default:return null}}Da=function(e,t){for(var n=t.child;null!==n;){if(5===n.tag||6===n.tag)e.appendChild(n.stateNode);else if(4!==n.tag&&null!==n.child){n.child.return=n,n=n.child;continue}if(n===t)break;for(;null===n.sibling;){if(null===n.return||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}},Aa=function(){},ka=function(e,t,n,r){var o=e.memoizedProps;if(o!==r){e=t.stateNode,rs(es.current);var i,s=null;switch(n){case"input":o=J(e,o),r=J(e,r),s=[];break;case"select":o=L({},o,{value:void 0}),r=L({},r,{value:void 0}),s=[];break;case"textarea":o=re(e,o),r=re(e,r),s=[];break;default:"function"!=typeof o.onClick&&"function"==typeof r.onClick&&(e.onclick=Zr)}for(c in ve(n,r),n=null,o)if(!r.hasOwnProperty(c)&&o.hasOwnProperty(c)&&null!=o[c])if("style"===c){var l=o[c];for(i in l)l.hasOwnProperty(i)&&(n||(n={}),n[i]="")}else"dangerouslySetInnerHTML"!==c&&"children"!==c&&"suppressContentEditableWarning"!==c&&"suppressHydrationWarning"!==c&&"autoFocus"!==c&&(a.hasOwnProperty(c)?s||(s=[]):(s=s||[]).push(c,null));for(c in r){var u=r[c];if(l=null!=o?o[c]:void 0,r.hasOwnProperty(c)&&u!==l&&(null!=u||null!=l))if("style"===c)if(l){for(i in l)!l.hasOwnProperty(i)||u&&u.hasOwnProperty(i)||(n||(n={}),n[i]="");for(i in u)u.hasOwnProperty(i)&&l[i]!==u[i]&&(n||(n={}),n[i]=u[i])}else n||(s||(s=[]),s.push(c,n)),n=u;else"dangerouslySetInnerHTML"===c?(u=u?u.__html:void 0,l=l?l.__html:void 0,null!=u&&l!==u&&(s=s||[]).push(c,u)):"children"===c?"string"!=typeof u&&"number"!=typeof u||(s=s||[]).push(c,""+u):"suppressContentEditableWarning"!==c&&"suppressHydrationWarning"!==c&&(a.hasOwnProperty(c)?(null!=u&&"onScroll"===c&&qr("scroll",e),s||l===u||(s=[])):(s=s||[]).push(c,u))}n&&(s=s||[]).push("style",n);var c=s;(t.updateQueue=c)&&(t.flags|=4)}},Ma=function(e,t,n,r){n!==r&&(t.flags|=4)};var Ka=!1,Ya=!1,Xa="function"==typeof WeakSet?WeakSet:Set,Za=null;function el(e,t){var n=e.ref;if(null!==n)if("function"==typeof n)try{n(null)}catch(n){Eu(e,t,n)}else n.current=null}function tl(e,t,n){try{n()}catch(n){Eu(e,t,n)}}var nl=!1;function rl(e,t,n){var r=t.updateQueue;if(null!==(r=null!==r?r.lastEffect:null)){var o=r=r.next;do{if((o.tag&e)===e){var i=o.destroy;o.destroy=void 0,void 0!==i&&tl(t,n,i)}o=o.next}while(o!==r)}}function ol(e,t){if(null!==(t=null!==(t=t.updateQueue)?t.lastEffect:null)){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function il(e){var t=e.ref;if(null!==t){var n=e.stateNode;e.tag,e=n,"function"==typeof t?t(e):t.current=e}}function sl(e){var t=e.alternate;null!==t&&(e.alternate=null,sl(t)),e.child=null,e.deletions=null,e.sibling=null,5===e.tag&&null!==(t=e.stateNode)&&(delete t[ho],delete t[fo],delete t[go],delete t[yo],delete t[vo]),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function al(e){return 5===e.tag||3===e.tag||4===e.tag}function ll(e){e:for(;;){for(;null===e.sibling;){if(null===e.return||al(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;5!==e.tag&&6!==e.tag&&18!==e.tag;){if(2&e.flags)continue e;if(null===e.child||4===e.tag)continue e;e.child.return=e,e=e.child}if(!(2&e.flags))return e.stateNode}}function ul(e,t,n){var r=e.tag;if(5===r||6===r)e=e.stateNode,t?8===n.nodeType?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(8===n.nodeType?(t=n.parentNode).insertBefore(e,n):(t=n).appendChild(e),null!=(n=n._reactRootContainer)||null!==t.onclick||(t.onclick=Zr));else if(4!==r&&null!==(e=e.child))for(ul(e,t,n),e=e.sibling;null!==e;)ul(e,t,n),e=e.sibling}function cl(e,t,n){var r=e.tag;if(5===r||6===r)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(4!==r&&null!==(e=e.child))for(cl(e,t,n),e=e.sibling;null!==e;)cl(e,t,n),e=e.sibling}var pl=null,dl=!1;function hl(e,t,n){for(n=n.child;null!==n;)fl(e,t,n),n=n.sibling}function fl(e,t,n){if(it&&"function"==typeof it.onCommitFiberUnmount)try{it.onCommitFiberUnmount(ot,n)}catch(e){}switch(n.tag){case 5:Ya||el(n,t);case 6:var r=pl,o=dl;pl=null,hl(e,t,n),dl=o,null!==(pl=r)&&(dl?(e=pl,n=n.stateNode,8===e.nodeType?e.parentNode.removeChild(n):e.removeChild(n)):pl.removeChild(n.stateNode));break;case 18:null!==pl&&(dl?(e=pl,n=n.stateNode,8===e.nodeType?lo(e.parentNode,n):1===e.nodeType&&lo(e,n),Qt(e)):lo(pl,n.stateNode));break;case 4:r=pl,o=dl,pl=n.stateNode.containerInfo,dl=!0,hl(e,t,n),pl=r,dl=o;break;case 0:case 11:case 14:case 15:if(!Ya&&null!==(r=n.updateQueue)&&null!==(r=r.lastEffect)){o=r=r.next;do{var i=o,s=i.destroy;i=i.tag,void 0!==s&&(0!=(2&i)||0!=(4&i))&&tl(n,t,s),o=o.next}while(o!==r)}hl(e,t,n);break;case 1:if(!Ya&&(el(n,t),"function"==typeof(r=n.stateNode).componentWillUnmount))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(e){Eu(n,t,e)}hl(e,t,n);break;case 21:hl(e,t,n);break;case 22:1&n.mode?(Ya=(r=Ya)||null!==n.memoizedState,hl(e,t,n),Ya=r):hl(e,t,n);break;default:hl(e,t,n)}}function ml(e){var t=e.updateQueue;if(null!==t){e.updateQueue=null;var n=e.stateNode;null===n&&(n=e.stateNode=new Xa),t.forEach((function(t){var r=_u.bind(null,e,t);n.has(t)||(n.add(t),t.then(r,r))}))}}function gl(e,t){var n=t.deletions;if(null!==n)for(var r=0;r<n.length;r++){var o=n[r];try{var s=e,a=t,l=a;e:for(;null!==l;){switch(l.tag){case 5:pl=l.stateNode,dl=!1;break e;case 3:case 4:pl=l.stateNode.containerInfo,dl=!0;break e}l=l.return}if(null===pl)throw Error(i(160));fl(s,a,o),pl=null,dl=!1;var u=o.alternate;null!==u&&(u.return=null),o.return=null}catch(e){Eu(o,t,e)}}if(12854&t.subtreeFlags)for(t=t.child;null!==t;)yl(t,e),t=t.sibling}function yl(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(gl(t,e),vl(e),4&r){try{rl(3,e,e.return),ol(3,e)}catch(t){Eu(e,e.return,t)}try{rl(5,e,e.return)}catch(t){Eu(e,e.return,t)}}break;case 1:gl(t,e),vl(e),512&r&&null!==n&&el(n,n.return);break;case 5:if(gl(t,e),vl(e),512&r&&null!==n&&el(n,n.return),32&e.flags){var o=e.stateNode;try{de(o,"")}catch(t){Eu(e,e.return,t)}}if(4&r&&null!=(o=e.stateNode)){var s=e.memoizedProps,a=null!==n?n.memoizedProps:s,l=e.type,u=e.updateQueue;if(e.updateQueue=null,null!==u)try{"input"===l&&"radio"===s.type&&null!=s.name&&Y(o,s),be(l,a);var c=be(l,s);for(a=0;a<u.length;a+=2){var p=u[a],d=u[a+1];"style"===p?ge(o,d):"dangerouslySetInnerHTML"===p?pe(o,d):"children"===p?de(o,d):b(o,p,d,c)}switch(l){case"input":X(o,s);break;case"textarea":ie(o,s);break;case"select":var h=o._wrapperState.wasMultiple;o._wrapperState.wasMultiple=!!s.multiple;var f=s.value;null!=f?ne(o,!!s.multiple,f,!1):h!==!!s.multiple&&(null!=s.defaultValue?ne(o,!!s.multiple,s.defaultValue,!0):ne(o,!!s.multiple,s.multiple?[]:"",!1))}o[fo]=s}catch(t){Eu(e,e.return,t)}}break;case 6:if(gl(t,e),vl(e),4&r){if(null===e.stateNode)throw Error(i(162));o=e.stateNode,s=e.memoizedProps;try{o.nodeValue=s}catch(t){Eu(e,e.return,t)}}break;case 3:if(gl(t,e),vl(e),4&r&&null!==n&&n.memoizedState.isDehydrated)try{Qt(t.containerInfo)}catch(t){Eu(e,e.return,t)}break;case 4:default:gl(t,e),vl(e);break;case 13:gl(t,e),vl(e),8192&(o=e.child).flags&&(s=null!==o.memoizedState,o.stateNode.isHidden=s,!s||null!==o.alternate&&null!==o.alternate.memoizedState||(Ql=Ye())),4&r&&ml(e);break;case 22:if(p=null!==n&&null!==n.memoizedState,1&e.mode?(Ya=(c=Ya)||p,gl(t,e),Ya=c):gl(t,e),vl(e),8192&r){if(c=null!==e.memoizedState,(e.stateNode.isHidden=c)&&!p&&0!=(1&e.mode))for(Za=e,p=e.child;null!==p;){for(d=Za=p;null!==Za;){switch(f=(h=Za).child,h.tag){case 0:case 11:case 14:case 15:rl(4,h,h.return);break;case 1:el(h,h.return);var m=h.stateNode;if("function"==typeof m.componentWillUnmount){r=h,n=h.return;try{t=r,m.props=t.memoizedProps,m.state=t.memoizedState,m.componentWillUnmount()}catch(e){Eu(r,n,e)}}break;case 5:el(h,h.return);break;case 22:if(null!==h.memoizedState){xl(d);continue}}null!==f?(f.return=h,Za=f):xl(d)}p=p.sibling}e:for(p=null,d=e;;){if(5===d.tag){if(null===p){p=d;try{o=d.stateNode,c?"function"==typeof(s=o.style).setProperty?s.setProperty("display","none","important"):s.display="none":(l=d.stateNode,a=null!=(u=d.memoizedProps.style)&&u.hasOwnProperty("display")?u.display:null,l.style.display=me("display",a))}catch(t){Eu(e,e.return,t)}}}else if(6===d.tag){if(null===p)try{d.stateNode.nodeValue=c?"":d.memoizedProps}catch(t){Eu(e,e.return,t)}}else if((22!==d.tag&&23!==d.tag||null===d.memoizedState||d===e)&&null!==d.child){d.child.return=d,d=d.child;continue}if(d===e)break e;for(;null===d.sibling;){if(null===d.return||d.return===e)break e;p===d&&(p=null),d=d.return}p===d&&(p=null),d.sibling.return=d.return,d=d.sibling}}break;case 19:gl(t,e),vl(e),4&r&&ml(e);case 21:}}function vl(e){var t=e.flags;if(2&t){try{e:{for(var n=e.return;null!==n;){if(al(n)){var r=n;break e}n=n.return}throw Error(i(160))}switch(r.tag){case 5:var o=r.stateNode;32&r.flags&&(de(o,""),r.flags&=-33),cl(e,ll(e),o);break;case 3:case 4:var s=r.stateNode.containerInfo;ul(e,ll(e),s);break;default:throw Error(i(161))}}catch(t){Eu(e,e.return,t)}e.flags&=-3}4096&t&&(e.flags&=-4097)}function bl(e,t,n){Za=e,Cl(e,t,n)}function Cl(e,t,n){for(var r=0!=(1&e.mode);null!==Za;){var o=Za,i=o.child;if(22===o.tag&&r){var s=null!==o.memoizedState||Ka;if(!s){var a=o.alternate,l=null!==a&&null!==a.memoizedState||Ya;a=Ka;var u=Ya;if(Ka=s,(Ya=l)&&!u)for(Za=o;null!==Za;)l=(s=Za).child,22===s.tag&&null!==s.memoizedState?Pl(o):null!==l?(l.return=s,Za=l):Pl(o);for(;null!==i;)Za=i,Cl(i,t,n),i=i.sibling;Za=o,Ka=a,Ya=u}wl(e)}else 0!=(8772&o.subtreeFlags)&&null!==i?(i.return=o,Za=i):wl(e)}}function wl(e){for(;null!==Za;){var t=Za;if(0!=(8772&t.flags)){var n=t.alternate;try{if(0!=(8772&t.flags))switch(t.tag){case 0:case 11:case 15:Ya||ol(5,t);break;case 1:var r=t.stateNode;if(4&t.flags&&!Ya)if(null===n)r.componentDidMount();else{var o=t.elementType===t.type?n.memoizedProps:yi(t.type,n.memoizedProps);r.componentDidUpdate(o,n.memoizedState,r.__reactInternalSnapshotBeforeUpdate)}var s=t.updateQueue;null!==s&&qi(t,s,r);break;case 3:var a=t.updateQueue;if(null!==a){if(n=null,null!==t.child)switch(t.child.tag){case 5:case 1:n=t.child.stateNode}qi(t,a,n)}break;case 5:var l=t.stateNode;if(null===n&&4&t.flags){n=l;var u=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":u.autoFocus&&n.focus();break;case"img":u.src&&(n.src=u.src)}}break;case 6:case 4:case 12:case 19:case 17:case 21:case 22:case 23:case 25:break;case 13:if(null===t.memoizedState){var c=t.alternate;if(null!==c){var p=c.memoizedState;if(null!==p){var d=p.dehydrated;null!==d&&Qt(d)}}}break;default:throw Error(i(163))}Ya||512&t.flags&&il(t)}catch(e){Eu(t,t.return,e)}}if(t===e){Za=null;break}if(null!==(n=t.sibling)){n.return=t.return,Za=n;break}Za=t.return}}function xl(e){for(;null!==Za;){var t=Za;if(t===e){Za=null;break}var n=t.sibling;if(null!==n){n.return=t.return,Za=n;break}Za=t.return}}function Pl(e){for(;null!==Za;){var t=Za;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{ol(4,t)}catch(e){Eu(t,n,e)}break;case 1:var r=t.stateNode;if("function"==typeof r.componentDidMount){var o=t.return;try{r.componentDidMount()}catch(e){Eu(t,o,e)}}var i=t.return;try{il(t)}catch(e){Eu(t,i,e)}break;case 5:var s=t.return;try{il(t)}catch(e){Eu(t,s,e)}}}catch(e){Eu(t,t.return,e)}if(t===e){Za=null;break}var a=t.sibling;if(null!==a){a.return=t.return,Za=a;break}Za=t.return}}var Sl,El=Math.ceil,Tl=C.ReactCurrentDispatcher,Ol=C.ReactCurrentOwner,Vl=C.ReactCurrentBatchConfig,_l=0,Rl=null,Il=null,Dl=0,Al=0,kl=Eo(0),Ml=0,Nl=null,Ll=0,jl=0,ql=0,Fl=null,Bl=null,Ql=0,Hl=1/0,zl=null,Ul=!1,Wl=null,Gl=null,$l=!1,Jl=null,Kl=0,Yl=0,Xl=null,Zl=-1,eu=0;function tu(){return 0!=(6&_l)?Ye():-1!==Zl?Zl:Zl=Ye()}function nu(e){return 0==(1&e.mode)?1:0!=(2&_l)&&0!==Dl?Dl&-Dl:null!==gi.transition?(0===eu&&(eu=mt()),eu):0!==(e=bt)?e:e=void 0===(e=window.event)?16:Kt(e.type)}function ru(e,t,n,r){if(50<Yl)throw Yl=0,Xl=null,Error(i(185));yt(e,n,r),0!=(2&_l)&&e===Rl||(e===Rl&&(0==(2&_l)&&(jl|=n),4===Ml&&lu(e,Dl)),ou(e,r),1===n&&0===_l&&0==(1&t.mode)&&(Hl=Ye()+500,Fo&&Ho()))}function ou(e,t){var n=e.callbackNode;!function(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,o=e.expirationTimes,i=e.pendingLanes;0<i;){var s=31-st(i),a=1<<s,l=o[s];-1===l?0!=(a&n)&&0==(a&r)||(o[s]=ht(a,t)):l<=t&&(e.expiredLanes|=a),i&=~a}}(e,t);var r=dt(e,e===Rl?Dl:0);if(0===r)null!==n&&$e(n),e.callbackNode=null,e.callbackPriority=0;else if(t=r&-r,e.callbackPriority!==t){if(null!=n&&$e(n),1===t)0===e.tag?function(e){Fo=!0,Qo(e)}(uu.bind(null,e)):Qo(uu.bind(null,e)),so((function(){0==(6&_l)&&Ho()})),n=null;else{switch(Ct(r)){case 1:n=Ze;break;case 4:n=et;break;case 16:default:n=tt;break;case 536870912:n=rt}n=Ru(n,iu.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function iu(e,t){if(Zl=-1,eu=0,0!=(6&_l))throw Error(i(327));var n=e.callbackNode;if(Pu()&&e.callbackNode!==n)return null;var r=dt(e,e===Rl?Dl:0);if(0===r)return null;if(0!=(30&r)||0!=(r&e.expiredLanes)||t)t=yu(e,r);else{t=r;var o=_l;_l|=2;var s=mu();for(Rl===e&&Dl===t||(zl=null,Hl=Ye()+500,hu(e,t));;)try{bu();break}catch(t){fu(e,t)}xi(),Tl.current=s,_l=o,null!==Il?t=0:(Rl=null,Dl=0,t=Ml)}if(0!==t){if(2===t&&0!==(o=ft(e))&&(r=o,t=su(e,o)),1===t)throw n=Nl,hu(e,0),lu(e,r),ou(e,Ye()),n;if(6===t)lu(e,r);else{if(o=e.current.alternate,0==(30&r)&&!function(e){for(var t=e;;){if(16384&t.flags){var n=t.updateQueue;if(null!==n&&null!==(n=n.stores))for(var r=0;r<n.length;r++){var o=n[r],i=o.getSnapshot;o=o.value;try{if(!ar(i(),o))return!1}catch(e){return!1}}}if(n=t.child,16384&t.subtreeFlags&&null!==n)n.return=t,t=n;else{if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}(o)&&(2===(t=yu(e,r))&&0!==(s=ft(e))&&(r=s,t=su(e,s)),1===t))throw n=Nl,hu(e,0),lu(e,r),ou(e,Ye()),n;switch(e.finishedWork=o,e.finishedLanes=r,t){case 0:case 1:throw Error(i(345));case 2:case 5:xu(e,Bl,zl);break;case 3:if(lu(e,r),(130023424&r)===r&&10<(t=Ql+500-Ye())){if(0!==dt(e,0))break;if(((o=e.suspendedLanes)&r)!==r){tu(),e.pingedLanes|=e.suspendedLanes&o;break}e.timeoutHandle=ro(xu.bind(null,e,Bl,zl),t);break}xu(e,Bl,zl);break;case 4:if(lu(e,r),(4194240&r)===r)break;for(t=e.eventTimes,o=-1;0<r;){var a=31-st(r);s=1<<a,(a=t[a])>o&&(o=a),r&=~s}if(r=o,10<(r=(120>(r=Ye()-r)?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*El(r/1960))-r)){e.timeoutHandle=ro(xu.bind(null,e,Bl,zl),r);break}xu(e,Bl,zl);break;default:throw Error(i(329))}}}return ou(e,Ye()),e.callbackNode===n?iu.bind(null,e):null}function su(e,t){var n=Fl;return e.current.memoizedState.isDehydrated&&(hu(e,t).flags|=256),2!==(e=yu(e,t))&&(t=Bl,Bl=n,null!==t&&au(t)),e}function au(e){null===Bl?Bl=e:Bl.push.apply(Bl,e)}function lu(e,t){for(t&=~ql,t&=~jl,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-st(t),r=1<<n;e[n]=-1,t&=~r}}function uu(e){if(0!=(6&_l))throw Error(i(327));Pu();var t=dt(e,0);if(0==(1&t))return ou(e,Ye()),null;var n=yu(e,t);if(0!==e.tag&&2===n){var r=ft(e);0!==r&&(t=r,n=su(e,r))}if(1===n)throw n=Nl,hu(e,0),lu(e,t),ou(e,Ye()),n;if(6===n)throw Error(i(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,xu(e,Bl,zl),ou(e,Ye()),null}function cu(e,t){var n=_l;_l|=1;try{return e(t)}finally{0===(_l=n)&&(Hl=Ye()+500,Fo&&Ho())}}function pu(e){null!==Jl&&0===Jl.tag&&0==(6&_l)&&Pu();var t=_l;_l|=1;var n=Vl.transition,r=bt;try{if(Vl.transition=null,bt=1,e)return e()}finally{bt=r,Vl.transition=n,0==(6&(_l=t))&&Ho()}}function du(){Al=kl.current,To(kl)}function hu(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(-1!==n&&(e.timeoutHandle=-1,oo(n)),null!==Il)for(n=Il.return;null!==n;){var r=n;switch(ni(r),r.tag){case 1:null!=(r=r.type.childContextTypes)&&ko();break;case 3:is(),To(Ro),To(_o),ps();break;case 5:as(r);break;case 4:is();break;case 13:case 19:To(ls);break;case 10:Pi(r.type._context);break;case 22:case 23:du()}n=n.return}if(Rl=e,Il=e=ku(e.current,null),Dl=Al=t,Ml=0,Nl=null,ql=jl=Ll=0,Bl=Fl=null,null!==Oi){for(t=0;t<Oi.length;t++)if(null!==(r=(n=Oi[t]).interleaved)){n.interleaved=null;var o=r.next,i=n.pending;if(null!==i){var s=i.next;i.next=o,r.next=s}n.pending=r}Oi=null}return e}function fu(e,t){for(;;){var n=Il;try{if(xi(),ds.current=sa,vs){for(var r=ms.memoizedState;null!==r;){var o=r.queue;null!==o&&(o.pending=null),r=r.next}vs=!1}if(fs=0,ys=gs=ms=null,bs=!1,Cs=0,Ol.current=null,null===n||null===n.return){Ml=1,Nl=t,Il=null;break}e:{var s=e,a=n.return,l=n,u=t;if(t=Dl,l.flags|=32768,null!==u&&"object"==typeof u&&"function"==typeof u.then){var c=u,p=l,d=p.tag;if(0==(1&p.mode)&&(0===d||11===d||15===d)){var h=p.alternate;h?(p.updateQueue=h.updateQueue,p.memoizedState=h.memoizedState,p.lanes=h.lanes):(p.updateQueue=null,p.memoizedState=null)}var f=ya(a);if(null!==f){f.flags&=-257,va(f,a,l,0,t),1&f.mode&&ga(s,c,t),u=c;var m=(t=f).updateQueue;if(null===m){var g=new Set;g.add(u),t.updateQueue=g}else m.add(u);break e}if(0==(1&t)){ga(s,c,t),gu();break e}u=Error(i(426))}else if(ii&&1&l.mode){var y=ya(a);if(null!==y){0==(65536&y.flags)&&(y.flags|=256),va(y,a,l,0,t),mi(ca(u,l));break e}}s=u=ca(u,l),4!==Ml&&(Ml=2),null===Fl?Fl=[s]:Fl.push(s),s=a;do{switch(s.tag){case 3:s.flags|=65536,t&=-t,s.lanes|=t,Li(s,fa(0,u,t));break e;case 1:l=u;var v=s.type,b=s.stateNode;if(0==(128&s.flags)&&("function"==typeof v.getDerivedStateFromError||null!==b&&"function"==typeof b.componentDidCatch&&(null===Gl||!Gl.has(b)))){s.flags|=65536,t&=-t,s.lanes|=t,Li(s,ma(s,l,t));break e}}s=s.return}while(null!==s)}wu(n)}catch(e){t=e,Il===n&&null!==n&&(Il=n=n.return);continue}break}}function mu(){var e=Tl.current;return Tl.current=sa,null===e?sa:e}function gu(){0!==Ml&&3!==Ml&&2!==Ml||(Ml=4),null===Rl||0==(268435455&Ll)&&0==(268435455&jl)||lu(Rl,Dl)}function yu(e,t){var n=_l;_l|=2;var r=mu();for(Rl===e&&Dl===t||(zl=null,hu(e,t));;)try{vu();break}catch(t){fu(e,t)}if(xi(),_l=n,Tl.current=r,null!==Il)throw Error(i(261));return Rl=null,Dl=0,Ml}function vu(){for(;null!==Il;)Cu(Il)}function bu(){for(;null!==Il&&!Je();)Cu(Il)}function Cu(e){var t=Sl(e.alternate,e,Al);e.memoizedProps=e.pendingProps,null===t?wu(e):Il=t,Ol.current=null}function wu(e){var t=e;do{var n=t.alternate;if(e=t.return,0==(32768&t.flags)){if(null!==(n=$a(n,t,Al)))return void(Il=n)}else{if(null!==(n=Ja(n,t)))return n.flags&=32767,void(Il=n);if(null===e)return Ml=6,void(Il=null);e.flags|=32768,e.subtreeFlags=0,e.deletions=null}if(null!==(t=t.sibling))return void(Il=t);Il=t=e}while(null!==t);0===Ml&&(Ml=5)}function xu(e,t,n){var r=bt,o=Vl.transition;try{Vl.transition=null,bt=1,function(e,t,n,r){do{Pu()}while(null!==Jl);if(0!=(6&_l))throw Error(i(327));n=e.finishedWork;var o=e.finishedLanes;if(null===n)return null;if(e.finishedWork=null,e.finishedLanes=0,n===e.current)throw Error(i(177));e.callbackNode=null,e.callbackPriority=0;var s=n.lanes|n.childLanes;if(function(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0<n;){var o=31-st(n),i=1<<o;t[o]=0,r[o]=-1,e[o]=-1,n&=~i}}(e,s),e===Rl&&(Il=Rl=null,Dl=0),0==(2064&n.subtreeFlags)&&0==(2064&n.flags)||$l||($l=!0,Ru(tt,(function(){return Pu(),null}))),s=0!=(15990&n.flags),0!=(15990&n.subtreeFlags)||s){s=Vl.transition,Vl.transition=null;var a=bt;bt=1;var l=_l;_l|=4,Ol.current=null,function(e,t){if(eo=zt,hr(e=dr())){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{var r=(n=(n=e.ownerDocument)&&n.defaultView||window).getSelection&&n.getSelection();if(r&&0!==r.rangeCount){n=r.anchorNode;var o=r.anchorOffset,s=r.focusNode;r=r.focusOffset;try{n.nodeType,s.nodeType}catch(e){n=null;break e}var a=0,l=-1,u=-1,c=0,p=0,d=e,h=null;t:for(;;){for(var f;d!==n||0!==o&&3!==d.nodeType||(l=a+o),d!==s||0!==r&&3!==d.nodeType||(u=a+r),3===d.nodeType&&(a+=d.nodeValue.length),null!==(f=d.firstChild);)h=d,d=f;for(;;){if(d===e)break t;if(h===n&&++c===o&&(l=a),h===s&&++p===r&&(u=a),null!==(f=d.nextSibling))break;h=(d=h).parentNode}d=f}n=-1===l||-1===u?null:{start:l,end:u}}else n=null}n=n||{start:0,end:0}}else n=null;for(to={focusedElem:e,selectionRange:n},zt=!1,Za=t;null!==Za;)if(e=(t=Za).child,0!=(1028&t.subtreeFlags)&&null!==e)e.return=t,Za=e;else for(;null!==Za;){t=Za;try{var m=t.alternate;if(0!=(1024&t.flags))switch(t.tag){case 0:case 11:case 15:case 5:case 6:case 4:case 17:break;case 1:if(null!==m){var g=m.memoizedProps,y=m.memoizedState,v=t.stateNode,b=v.getSnapshotBeforeUpdate(t.elementType===t.type?g:yi(t.type,g),y);v.__reactInternalSnapshotBeforeUpdate=b}break;case 3:var C=t.stateNode.containerInfo;1===C.nodeType?C.textContent="":9===C.nodeType&&C.documentElement&&C.removeChild(C.documentElement);break;default:throw Error(i(163))}}catch(e){Eu(t,t.return,e)}if(null!==(e=t.sibling)){e.return=t.return,Za=e;break}Za=t.return}m=nl,nl=!1}(e,n),yl(n,e),fr(to),zt=!!eo,to=eo=null,e.current=n,bl(n,e,o),Ke(),_l=l,bt=a,Vl.transition=s}else e.current=n;if($l&&($l=!1,Jl=e,Kl=o),0===(s=e.pendingLanes)&&(Gl=null),function(e){if(it&&"function"==typeof it.onCommitFiberRoot)try{it.onCommitFiberRoot(ot,e,void 0,128==(128&e.current.flags))}catch(e){}}(n.stateNode),ou(e,Ye()),null!==t)for(r=e.onRecoverableError,n=0;n<t.length;n++)r((o=t[n]).value,{componentStack:o.stack,digest:o.digest});if(Ul)throw Ul=!1,e=Wl,Wl=null,e;0!=(1&Kl)&&0!==e.tag&&Pu(),0!=(1&(s=e.pendingLanes))?e===Xl?Yl++:(Yl=0,Xl=e):Yl=0,Ho()}(e,t,n,r)}finally{Vl.transition=o,bt=r}return null}function Pu(){if(null!==Jl){var e=Ct(Kl),t=Vl.transition,n=bt;try{if(Vl.transition=null,bt=16>e?16:e,null===Jl)var r=!1;else{if(e=Jl,Jl=null,Kl=0,0!=(6&_l))throw Error(i(331));var o=_l;for(_l|=4,Za=e.current;null!==Za;){var s=Za,a=s.child;if(0!=(16&Za.flags)){var l=s.deletions;if(null!==l){for(var u=0;u<l.length;u++){var c=l[u];for(Za=c;null!==Za;){var p=Za;switch(p.tag){case 0:case 11:case 15:rl(8,p,s)}var d=p.child;if(null!==d)d.return=p,Za=d;else for(;null!==Za;){var h=(p=Za).sibling,f=p.return;if(sl(p),p===c){Za=null;break}if(null!==h){h.return=f,Za=h;break}Za=f}}}var m=s.alternate;if(null!==m){var g=m.child;if(null!==g){m.child=null;do{var y=g.sibling;g.sibling=null,g=y}while(null!==g)}}Za=s}}if(0!=(2064&s.subtreeFlags)&&null!==a)a.return=s,Za=a;else e:for(;null!==Za;){if(0!=(2048&(s=Za).flags))switch(s.tag){case 0:case 11:case 15:rl(9,s,s.return)}var v=s.sibling;if(null!==v){v.return=s.return,Za=v;break e}Za=s.return}}var b=e.current;for(Za=b;null!==Za;){var C=(a=Za).child;if(0!=(2064&a.subtreeFlags)&&null!==C)C.return=a,Za=C;else e:for(a=b;null!==Za;){if(0!=(2048&(l=Za).flags))try{switch(l.tag){case 0:case 11:case 15:ol(9,l)}}catch(e){Eu(l,l.return,e)}if(l===a){Za=null;break e}var w=l.sibling;if(null!==w){w.return=l.return,Za=w;break e}Za=l.return}}if(_l=o,Ho(),it&&"function"==typeof it.onPostCommitFiberRoot)try{it.onPostCommitFiberRoot(ot,e)}catch(e){}r=!0}return r}finally{bt=n,Vl.transition=t}}return!1}function Su(e,t,n){e=Mi(e,t=fa(0,t=ca(n,t),1),1),t=tu(),null!==e&&(yt(e,1,t),ou(e,t))}function Eu(e,t,n){if(3===e.tag)Su(e,e,n);else for(;null!==t;){if(3===t.tag){Su(t,e,n);break}if(1===t.tag){var r=t.stateNode;if("function"==typeof t.type.getDerivedStateFromError||"function"==typeof r.componentDidCatch&&(null===Gl||!Gl.has(r))){t=Mi(t,e=ma(t,e=ca(n,e),1),1),e=tu(),null!==t&&(yt(t,1,e),ou(t,e));break}}t=t.return}}function Tu(e,t,n){var r=e.pingCache;null!==r&&r.delete(t),t=tu(),e.pingedLanes|=e.suspendedLanes&n,Rl===e&&(Dl&n)===n&&(4===Ml||3===Ml&&(130023424&Dl)===Dl&&500>Ye()-Ql?hu(e,0):ql|=n),ou(e,t)}function Ou(e,t){0===t&&(0==(1&e.mode)?t=1:(t=ct,0==(130023424&(ct<<=1))&&(ct=4194304)));var n=tu();null!==(e=Ri(e,t))&&(yt(e,t,n),ou(e,n))}function Vu(e){var t=e.memoizedState,n=0;null!==t&&(n=t.retryLane),Ou(e,n)}function _u(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,o=e.memoizedState;null!==o&&(n=o.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(i(314))}null!==r&&r.delete(t),Ou(e,n)}function Ru(e,t){return Ge(e,t)}function Iu(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Du(e,t,n,r){return new Iu(e,t,n,r)}function Au(e){return!(!(e=e.prototype)||!e.isReactComponent)}function ku(e,t){var n=e.alternate;return null===n?((n=Du(e.tag,t,e.key,e.mode)).elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=14680064&e.flags,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=null===t?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function Mu(e,t,n,r,o,s){var a=2;if(r=e,"function"==typeof e)Au(e)&&(a=1);else if("string"==typeof e)a=5;else e:switch(e){case P:return Nu(n.children,o,s,t);case S:a=8,o|=8;break;case E:return(e=Du(12,n,t,2|o)).elementType=E,e.lanes=s,e;case _:return(e=Du(13,n,t,o)).elementType=_,e.lanes=s,e;case R:return(e=Du(19,n,t,o)).elementType=R,e.lanes=s,e;case A:return Lu(n,o,s,t);default:if("object"==typeof e&&null!==e)switch(e.$$typeof){case T:a=10;break e;case O:a=9;break e;case V:a=11;break e;case I:a=14;break e;case D:a=16,r=null;break e}throw Error(i(130,null==e?e:typeof e,""))}return(t=Du(a,n,t,o)).elementType=e,t.type=r,t.lanes=s,t}function Nu(e,t,n,r){return(e=Du(7,e,r,t)).lanes=n,e}function Lu(e,t,n,r){return(e=Du(22,e,r,t)).elementType=A,e.lanes=n,e.stateNode={isHidden:!1},e}function ju(e,t,n){return(e=Du(6,e,null,t)).lanes=n,e}function qu(e,t,n){return(t=Du(4,null!==e.children?e.children:[],e.key,t)).lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function Fu(e,t,n,r,o){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=gt(0),this.expirationTimes=gt(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=gt(0),this.identifierPrefix=r,this.onRecoverableError=o,this.mutableSourceEagerHydrationData=null}function Bu(e,t,n,r,o,i,s,a,l){return e=new Fu(e,t,n,a,l),1===t?(t=1,!0===i&&(t|=8)):t=0,i=Du(3,null,null,t),e.current=i,i.stateNode=e,i.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},Di(i),e}function Qu(e){if(!e)return Vo;e:{if(Qe(e=e._reactInternals)!==e||1!==e.tag)throw Error(i(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(Ao(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(null!==t);throw Error(i(171))}if(1===e.tag){var n=e.type;if(Ao(n))return No(e,n,t)}return t}function Hu(e,t,n,r,o,i,s,a,l){return(e=Bu(n,r,!0,e,0,i,0,a,l)).context=Qu(null),n=e.current,(i=ki(r=tu(),o=nu(n))).callback=null!=t?t:null,Mi(n,i,o),e.current.lanes=o,yt(e,o,r),ou(e,r),e}function zu(e,t,n,r){var o=t.current,i=tu(),s=nu(o);return n=Qu(n),null===t.context?t.context=n:t.pendingContext=n,(t=ki(i,s)).payload={element:e},null!==(r=void 0===r?null:r)&&(t.callback=r),null!==(e=Mi(o,t,s))&&(ru(e,o,s,i),Ni(e,o,s)),s}function Uu(e){return(e=e.current).child?(e.child.tag,e.child.stateNode):null}function Wu(e,t){if(null!==(e=e.memoizedState)&&null!==e.dehydrated){var n=e.retryLane;e.retryLane=0!==n&&n<t?n:t}}function Gu(e,t){Wu(e,t),(e=e.alternate)&&Wu(e,t)}Sl=function(e,t,n){if(null!==e)if(e.memoizedProps!==t.pendingProps||Ro.current)Ca=!0;else{if(0==(e.lanes&n)&&0==(128&t.flags))return Ca=!1,function(e,t,n){switch(t.tag){case 3:Ra(t),fi();break;case 5:ss(t);break;case 1:Ao(t.type)&&Lo(t);break;case 4:os(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,o=t.memoizedProps.value;Oo(vi,r._currentValue),r._currentValue=o;break;case 13:if(null!==(r=t.memoizedState))return null!==r.dehydrated?(Oo(ls,1&ls.current),t.flags|=128,null):0!=(n&t.child.childLanes)?ja(e,t,n):(Oo(ls,1&ls.current),null!==(e=Ua(e,t,n))?e.sibling:null);Oo(ls,1&ls.current);break;case 19:if(r=0!=(n&t.childLanes),0!=(128&e.flags)){if(r)return Ha(e,t,n);t.flags|=128}if(null!==(o=t.memoizedState)&&(o.rendering=null,o.tail=null,o.lastEffect=null),Oo(ls,ls.current),r)break;return null;case 22:case 23:return t.lanes=0,Ea(e,t,n)}return Ua(e,t,n)}(e,t,n);Ca=0!=(131072&e.flags)}else Ca=!1,ii&&0!=(1048576&t.flags)&&ei(t,Go,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;za(e,t),e=t.pendingProps;var o=Do(t,_o.current);Ei(t,n),o=Ss(null,t,r,e,o,n);var s=Es();return t.flags|=1,"object"==typeof o&&null!==o&&"function"==typeof o.render&&void 0===o.$$typeof?(t.tag=1,t.memoizedState=null,t.updateQueue=null,Ao(r)?(s=!0,Lo(t)):s=!1,t.memoizedState=null!==o.state&&void 0!==o.state?o.state:null,Di(t),o.updater=Qi,t.stateNode=o,o._reactInternals=t,Wi(t,r,e,n),t=_a(null,t,r,!0,s,n)):(t.tag=0,ii&&s&&ti(t),wa(null,t,o,n),t=t.child),t;case 16:r=t.elementType;e:{switch(za(e,t),e=t.pendingProps,r=(o=r._init)(r._payload),t.type=r,o=t.tag=function(e){if("function"==typeof e)return Au(e)?1:0;if(null!=e){if((e=e.$$typeof)===V)return 11;if(e===I)return 14}return 2}(r),e=yi(r,e),o){case 0:t=Oa(null,t,r,e,n);break e;case 1:t=Va(null,t,r,e,n);break e;case 11:t=xa(null,t,r,e,n);break e;case 14:t=Pa(null,t,r,yi(r.type,e),n);break e}throw Error(i(306,r,""))}return t;case 0:return r=t.type,o=t.pendingProps,Oa(e,t,r,o=t.elementType===r?o:yi(r,o),n);case 1:return r=t.type,o=t.pendingProps,Va(e,t,r,o=t.elementType===r?o:yi(r,o),n);case 3:e:{if(Ra(t),null===e)throw Error(i(387));r=t.pendingProps,o=(s=t.memoizedState).element,Ai(e,t),ji(t,r,null,n);var a=t.memoizedState;if(r=a.element,s.isDehydrated){if(s={element:r,isDehydrated:!1,cache:a.cache,pendingSuspenseBoundaries:a.pendingSuspenseBoundaries,transitions:a.transitions},t.updateQueue.baseState=s,t.memoizedState=s,256&t.flags){t=Ia(e,t,r,n,o=ca(Error(i(423)),t));break e}if(r!==o){t=Ia(e,t,r,n,o=ca(Error(i(424)),t));break e}for(oi=uo(t.stateNode.containerInfo.firstChild),ri=t,ii=!0,si=null,n=Xi(t,null,r,n),t.child=n;n;)n.flags=-3&n.flags|4096,n=n.sibling}else{if(fi(),r===o){t=Ua(e,t,n);break e}wa(e,t,r,n)}t=t.child}return t;case 5:return ss(t),null===e&&ci(t),r=t.type,o=t.pendingProps,s=null!==e?e.memoizedProps:null,a=o.children,no(r,o)?a=null:null!==s&&no(r,s)&&(t.flags|=32),Ta(e,t),wa(e,t,a,n),t.child;case 6:return null===e&&ci(t),null;case 13:return ja(e,t,n);case 4:return os(t,t.stateNode.containerInfo),r=t.pendingProps,null===e?t.child=Yi(t,null,r,n):wa(e,t,r,n),t.child;case 11:return r=t.type,o=t.pendingProps,xa(e,t,r,o=t.elementType===r?o:yi(r,o),n);case 7:return wa(e,t,t.pendingProps,n),t.child;case 8:case 12:return wa(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,o=t.pendingProps,s=t.memoizedProps,a=o.value,Oo(vi,r._currentValue),r._currentValue=a,null!==s)if(ar(s.value,a)){if(s.children===o.children&&!Ro.current){t=Ua(e,t,n);break e}}else for(null!==(s=t.child)&&(s.return=t);null!==s;){var l=s.dependencies;if(null!==l){a=s.child;for(var u=l.firstContext;null!==u;){if(u.context===r){if(1===s.tag){(u=ki(-1,n&-n)).tag=2;var c=s.updateQueue;if(null!==c){var p=(c=c.shared).pending;null===p?u.next=u:(u.next=p.next,p.next=u),c.pending=u}}s.lanes|=n,null!==(u=s.alternate)&&(u.lanes|=n),Si(s.return,n,t),l.lanes|=n;break}u=u.next}}else if(10===s.tag)a=s.type===t.type?null:s.child;else if(18===s.tag){if(null===(a=s.return))throw Error(i(341));a.lanes|=n,null!==(l=a.alternate)&&(l.lanes|=n),Si(a,n,t),a=s.sibling}else a=s.child;if(null!==a)a.return=s;else for(a=s;null!==a;){if(a===t){a=null;break}if(null!==(s=a.sibling)){s.return=a.return,a=s;break}a=a.return}s=a}wa(e,t,o.children,n),t=t.child}return t;case 9:return o=t.type,r=t.pendingProps.children,Ei(t,n),r=r(o=Ti(o)),t.flags|=1,wa(e,t,r,n),t.child;case 14:return o=yi(r=t.type,t.pendingProps),Pa(e,t,r,o=yi(r.type,o),n);case 15:return Sa(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:yi(r,o),za(e,t),t.tag=1,Ao(r)?(e=!0,Lo(t)):e=!1,Ei(t,n),zi(t,r,o),Wi(t,r,o,n),_a(null,t,r,!0,e,n);case 19:return Ha(e,t,n);case 22:return Ea(e,t,n)}throw Error(i(156,t.tag))};var $u="function"==typeof reportError?reportError:function(e){console.error(e)};function Ju(e){this._internalRoot=e}function Ku(e){this._internalRoot=e}function Yu(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType)}function Xu(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType&&(8!==e.nodeType||" react-mount-point-unstable "!==e.nodeValue))}function Zu(){}function ec(e,t,n,r,o){var i=n._reactRootContainer;if(i){var s=i;if("function"==typeof o){var a=o;o=function(){var e=Uu(s);a.call(e)}}zu(t,s,e,o)}else s=function(e,t,n,r,o){if(o){if("function"==typeof r){var i=r;r=function(){var e=Uu(s);i.call(e)}}var s=Hu(t,r,e,0,null,!1,0,"",Zu);return e._reactRootContainer=s,e[mo]=s.current,Qr(8===e.nodeType?e.parentNode:e),pu(),s}for(;o=e.lastChild;)e.removeChild(o);if("function"==typeof r){var a=r;r=function(){var e=Uu(l);a.call(e)}}var l=Bu(e,0,!1,null,0,!1,0,"",Zu);return e._reactRootContainer=l,e[mo]=l.current,Qr(8===e.nodeType?e.parentNode:e),pu((function(){zu(t,l,n,r)})),l}(n,t,e,o,r);return Uu(s)}Ku.prototype.render=Ju.prototype.render=function(e){var t=this._internalRoot;if(null===t)throw Error(i(409));zu(e,t,null,null)},Ku.prototype.unmount=Ju.prototype.unmount=function(){var e=this._internalRoot;if(null!==e){this._internalRoot=null;var t=e.containerInfo;pu((function(){zu(null,e,null,null)})),t[mo]=null}},Ku.prototype.unstable_scheduleHydration=function(e){if(e){var t=St();e={blockedOn:null,target:e,priority:t};for(var n=0;n<At.length&&0!==t&&t<At[n].priority;n++);At.splice(n,0,e),0===n&&Lt(e)}},wt=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=pt(t.pendingLanes);0!==n&&(vt(t,1|n),ou(t,Ye()),0==(6&_l)&&(Hl=Ye()+500,Ho()))}break;case 13:pu((function(){var t=Ri(e,1);if(null!==t){var n=tu();ru(t,e,1,n)}})),Gu(e,1)}},xt=function(e){if(13===e.tag){var t=Ri(e,134217728);null!==t&&ru(t,e,134217728,tu()),Gu(e,134217728)}},Pt=function(e){if(13===e.tag){var t=nu(e),n=Ri(e,t);null!==n&&ru(n,e,t,tu()),Gu(e,t)}},St=function(){return bt},Et=function(e,t){var n=bt;try{return bt=e,t()}finally{bt=n}},xe=function(e,t,n){switch(t){case"input":if(X(e,n),t=n.name,"radio"===n.type&&null!=t){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var o=xo(r);if(!o)throw Error(i(90));G(r),X(r,o)}}}break;case"textarea":ie(e,n);break;case"select":null!=(t=n.value)&&ne(e,!!n.multiple,t,!1)}},Ve=cu,_e=pu;var tc={usingClientEntryPoint:!1,Events:[Co,wo,xo,Te,Oe,cu]},nc={findFiberByHostInstance:bo,bundleType:0,version:"18.2.0",rendererPackageName:"react-dom"},rc={bundleType:nc.bundleType,version:nc.version,rendererPackageName:nc.rendererPackageName,rendererConfig:nc.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:C.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return null===(e=Ue(e))?null:e.stateNode},findFiberByHostInstance:nc.findFiberByHostInstance||function(){return null},findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.2.0-next-9e3b772b8-20220608"};if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__){var oc=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!oc.isDisabled&&oc.supportsFiber)try{ot=oc.inject(rc),it=oc}catch(ce){}}t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=tc,t.createPortal=function(e,t){var n=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null;if(!Yu(t))throw Error(i(200));return function(e,t,n){var r=3<arguments.length&&void 0!==arguments[3]?arguments[3]:null;return{$$typeof:x,key:null==r?null:""+r,children:e,containerInfo:t,implementation:n}}(e,t,null,n)},t.createRoot=function(e,t){if(!Yu(e))throw Error(i(299));var n=!1,r="",o=$u;return null!=t&&(!0===t.unstable_strictMode&&(n=!0),void 0!==t.identifierPrefix&&(r=t.identifierPrefix),void 0!==t.onRecoverableError&&(o=t.onRecoverableError)),t=Bu(e,1,!1,null,0,n,0,r,o),e[mo]=t.current,Qr(8===e.nodeType?e.parentNode:e),new Ju(t)},t.findDOMNode=function(e){if(null==e)return null;if(1===e.nodeType)return e;var t=e._reactInternals;if(void 0===t){if("function"==typeof e.render)throw Error(i(188));throw e=Object.keys(e).join(","),Error(i(268,e))}return null===(e=Ue(t))?null:e.stateNode},t.flushSync=function(e){return pu(e)},t.hydrate=function(e,t,n){if(!Xu(t))throw Error(i(200));return ec(null,e,t,!0,n)},t.hydrateRoot=function(e,t,n){if(!Yu(e))throw Error(i(405));var r=null!=n&&n.hydratedSources||null,o=!1,s="",a=$u;if(null!=n&&(!0===n.unstable_strictMode&&(o=!0),void 0!==n.identifierPrefix&&(s=n.identifierPrefix),void 0!==n.onRecoverableError&&(a=n.onRecoverableError)),t=Hu(t,null,e,1,null!=n?n:null,o,0,s,a),e[mo]=t.current,Qr(e),r)for(e=0;e<r.length;e++)o=(o=(n=r[e])._getVersion)(n._source),null==t.mutableSourceEagerHydrationData?t.mutableSourceEagerHydrationData=[n,o]:t.mutableSourceEagerHydrationData.push(n,o);return new Ku(t)},t.render=function(e,t,n){if(!Xu(t))throw Error(i(200));return ec(null,e,t,!1,n)},t.unmountComponentAtNode=function(e){if(!Xu(e))throw Error(i(40));return!!e._reactRootContainer&&(pu((function(){ec(null,null,e,!1,(function(){e._reactRootContainer=null,e[mo]=null}))})),!0)},t.unstable_batchedUpdates=cu,t.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!Xu(n))throw Error(i(200));if(null==e||void 0===e._reactInternals)throw Error(i(38));return ec(e,t,n,!1,r)},t.version="18.2.0-next-9e3b772b8-20220608"},745:(e,t,n)=>{"use strict";var r=n(935);t.s=r.createRoot,r.hydrateRoot},935:(e,t,n)=>{"use strict";!function e(){if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE)try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(e){console.error(e)}}(),e.exports=n(448)},251:(e,t,n)=>{"use strict";var r=n(294),o=Symbol.for("react.element"),i=(Symbol.for("react.fragment"),Object.prototype.hasOwnProperty),s=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,a={key:!0,ref:!0,__self:!0,__source:!0};t.jsx=function(e,t,n){var r,l={},u=null,c=null;for(r in void 0!==n&&(u=""+n),void 0!==t.key&&(u=""+t.key),void 0!==t.ref&&(c=t.ref),t)i.call(t,r)&&!a.hasOwnProperty(r)&&(l[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps)void 0===l[r]&&(l[r]=t[r]);return{$$typeof:o,type:e,key:u,ref:c,props:l,_owner:s.current}}},408:(e,t)=>{"use strict";var n=Symbol.for("react.element"),r=Symbol.for("react.portal"),o=Symbol.for("react.fragment"),i=Symbol.for("react.strict_mode"),s=Symbol.for("react.profiler"),a=Symbol.for("react.provider"),l=Symbol.for("react.context"),u=Symbol.for("react.forward_ref"),c=Symbol.for("react.suspense"),p=Symbol.for("react.memo"),d=Symbol.for("react.lazy"),h=Symbol.iterator,f={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},m=Object.assign,g={};function y(e,t,n){this.props=e,this.context=t,this.refs=g,this.updater=n||f}function v(){}function b(e,t,n){this.props=e,this.context=t,this.refs=g,this.updater=n||f}y.prototype.isReactComponent={},y.prototype.setState=function(e,t){if("object"!=typeof e&&"function"!=typeof e&&null!=e)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")},y.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},v.prototype=y.prototype;var C=b.prototype=new v;C.constructor=b,m(C,y.prototype),C.isPureReactComponent=!0;var w=Array.isArray,x=Object.prototype.hasOwnProperty,P={current:null},S={key:!0,ref:!0,__self:!0,__source:!0};function E(e,t,r){var o,i={},s=null,a=null;if(null!=t)for(o in void 0!==t.ref&&(a=t.ref),void 0!==t.key&&(s=""+t.key),t)x.call(t,o)&&!S.hasOwnProperty(o)&&(i[o]=t[o]);var l=arguments.length-2;if(1===l)i.children=r;else if(1<l){for(var u=Array(l),c=0;c<l;c++)u[c]=arguments[c+2];i.children=u}if(e&&e.defaultProps)for(o in l=e.defaultProps)void 0===i[o]&&(i[o]=l[o]);return{$$typeof:n,type:e,key:s,ref:a,props:i,_owner:P.current}}function T(e){return"object"==typeof e&&null!==e&&e.$$typeof===n}var O=/\/+/g;function V(e,t){return"object"==typeof e&&null!==e&&null!=e.key?function(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,(function(e){return t[e]}))}(""+e.key):t.toString(36)}function _(e,t,o,i,s){var a=typeof e;"undefined"!==a&&"boolean"!==a||(e=null);var l=!1;if(null===e)l=!0;else switch(a){case"string":case"number":l=!0;break;case"object":switch(e.$$typeof){case n:case r:l=!0}}if(l)return s=s(l=e),e=""===i?"."+V(l,0):i,w(s)?(o="",null!=e&&(o=e.replace(O,"$&/")+"/"),_(s,t,o,"",(function(e){return e}))):null!=s&&(T(s)&&(s=function(e,t){return{$$typeof:n,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}(s,o+(!s.key||l&&l.key===s.key?"":(""+s.key).replace(O,"$&/")+"/")+e)),t.push(s)),1;if(l=0,i=""===i?".":i+":",w(e))for(var u=0;u<e.length;u++){var c=i+V(a=e[u],u);l+=_(a,t,o,c,s)}else if(c=function(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=h&&e[h]||e["@@iterator"])?e:null}(e),"function"==typeof c)for(e=c.call(e),u=0;!(a=e.next()).done;)l+=_(a=a.value,t,o,c=i+V(a,u++),s);else if("object"===a)throw t=String(e),Error("Objects are not valid as a React child (found: "+("[object Object]"===t?"object with keys {"+Object.keys(e).join(", ")+"}":t)+"). If you meant to render a collection of children, use an array instead.");return l}function R(e,t,n){if(null==e)return e;var r=[],o=0;return _(e,r,"","",(function(e){return t.call(n,e,o++)})),r}function I(e){if(-1===e._status){var t=e._result;(t=t()).then((function(t){0!==e._status&&-1!==e._status||(e._status=1,e._result=t)}),(function(t){0!==e._status&&-1!==e._status||(e._status=2,e._result=t)})),-1===e._status&&(e._status=0,e._result=t)}if(1===e._status)return e._result.default;throw e._result}var D={current:null},A={transition:null},k={ReactCurrentDispatcher:D,ReactCurrentBatchConfig:A,ReactCurrentOwner:P};t.Children={map:R,forEach:function(e,t,n){R(e,(function(){t.apply(this,arguments)}),n)},count:function(e){var t=0;return R(e,(function(){t++})),t},toArray:function(e){return R(e,(function(e){return e}))||[]},only:function(e){if(!T(e))throw Error("React.Children.only expected to receive a single React element child.");return e}},t.Component=y,t.Fragment=o,t.Profiler=s,t.PureComponent=b,t.StrictMode=i,t.Suspense=c,t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=k,t.cloneElement=function(e,t,r){if(null==e)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+e+".");var o=m({},e.props),i=e.key,s=e.ref,a=e._owner;if(null!=t){if(void 0!==t.ref&&(s=t.ref,a=P.current),void 0!==t.key&&(i=""+t.key),e.type&&e.type.defaultProps)var l=e.type.defaultProps;for(u in t)x.call(t,u)&&!S.hasOwnProperty(u)&&(o[u]=void 0===t[u]&&void 0!==l?l[u]:t[u])}var u=arguments.length-2;if(1===u)o.children=r;else if(1<u){l=Array(u);for(var c=0;c<u;c++)l[c]=arguments[c+2];o.children=l}return{$$typeof:n,type:e.type,key:i,ref:s,props:o,_owner:a}},t.createContext=function(e){return(e={$$typeof:l,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null}).Provider={$$typeof:a,_context:e},e.Consumer=e},t.createElement=E,t.createFactory=function(e){var t=E.bind(null,e);return t.type=e,t},t.createRef=function(){return{current:null}},t.forwardRef=function(e){return{$$typeof:u,render:e}},t.isValidElement=T,t.lazy=function(e){return{$$typeof:d,_payload:{_status:-1,_result:e},_init:I}},t.memo=function(e,t){return{$$typeof:p,type:e,compare:void 0===t?null:t}},t.startTransition=function(e){var t=A.transition;A.transition={};try{e()}finally{A.transition=t}},t.unstable_act=function(){throw Error("act(...) is not supported in production builds of React.")},t.useCallback=function(e,t){return D.current.useCallback(e,t)},t.useContext=function(e){return D.current.useContext(e)},t.useDebugValue=function(){},t.useDeferredValue=function(e){return D.current.useDeferredValue(e)},t.useEffect=function(e,t){return D.current.useEffect(e,t)},t.useId=function(){return D.current.useId()},t.useImperativeHandle=function(e,t,n){return D.current.useImperativeHandle(e,t,n)},t.useInsertionEffect=function(e,t){return D.current.useInsertionEffect(e,t)},t.useLayoutEffect=function(e,t){return D.current.useLayoutEffect(e,t)},t.useMemo=function(e,t){return D.current.useMemo(e,t)},t.useReducer=function(e,t,n){return D.current.useReducer(e,t,n)},t.useRef=function(e){return D.current.useRef(e)},t.useState=function(e){return D.current.useState(e)},t.useSyncExternalStore=function(e,t,n){return D.current.useSyncExternalStore(e,t,n)},t.useTransition=function(){return D.current.useTransition()},t.version="18.2.0"},294:(e,t,n)=>{"use strict";e.exports=n(408)},893:(e,t,n)=>{"use strict";e.exports=n(251)},53:(e,t)=>{"use strict";function n(e,t){var n=e.length;e.push(t);e:for(;0<n;){var r=n-1>>>1,o=e[r];if(!(0<i(o,t)))break e;e[r]=t,e[n]=o,n=r}}function r(e){return 0===e.length?null:e[0]}function o(e){if(0===e.length)return null;var t=e[0],n=e.pop();if(n!==t){e[0]=n;e:for(var r=0,o=e.length,s=o>>>1;r<s;){var a=2*(r+1)-1,l=e[a],u=a+1,c=e[u];if(0>i(l,n))u<o&&0>i(c,l)?(e[r]=c,e[u]=n,r=u):(e[r]=l,e[a]=n,r=a);else{if(!(u<o&&0>i(c,n)))break e;e[r]=c,e[u]=n,r=u}}}return t}function i(e,t){var n=e.sortIndex-t.sortIndex;return 0!==n?n:e.id-t.id}if("object"==typeof performance&&"function"==typeof performance.now){var s=performance;t.unstable_now=function(){return s.now()}}else{var a=Date,l=a.now();t.unstable_now=function(){return a.now()-l}}var u=[],c=[],p=1,d=null,h=3,f=!1,m=!1,g=!1,y="function"==typeof setTimeout?setTimeout:null,v="function"==typeof clearTimeout?clearTimeout:null,b="undefined"!=typeof setImmediate?setImmediate:null;function C(e){for(var t=r(c);null!==t;){if(null===t.callback)o(c);else{if(!(t.startTime<=e))break;o(c),t.sortIndex=t.expirationTime,n(u,t)}t=r(c)}}function w(e){if(g=!1,C(e),!m)if(null!==r(u))m=!0,A(x);else{var t=r(c);null!==t&&k(w,t.startTime-e)}}function x(e,n){m=!1,g&&(g=!1,v(T),T=-1),f=!0;var i=h;try{for(C(n),d=r(u);null!==d&&(!(d.expirationTime>n)||e&&!_());){var s=d.callback;if("function"==typeof s){d.callback=null,h=d.priorityLevel;var a=s(d.expirationTime<=n);n=t.unstable_now(),"function"==typeof a?d.callback=a:d===r(u)&&o(u),C(n)}else o(u);d=r(u)}if(null!==d)var l=!0;else{var p=r(c);null!==p&&k(w,p.startTime-n),l=!1}return l}finally{d=null,h=i,f=!1}}"undefined"!=typeof navigator&&void 0!==navigator.scheduling&&void 0!==navigator.scheduling.isInputPending&&navigator.scheduling.isInputPending.bind(navigator.scheduling);var P,S=!1,E=null,T=-1,O=5,V=-1;function _(){return!(t.unstable_now()-V<O)}function R(){if(null!==E){var e=t.unstable_now();V=e;var n=!0;try{n=E(!0,e)}finally{n?P():(S=!1,E=null)}}else S=!1}if("function"==typeof b)P=function(){b(R)};else if("undefined"!=typeof MessageChannel){var I=new MessageChannel,D=I.port2;I.port1.onmessage=R,P=function(){D.postMessage(null)}}else P=function(){y(R,0)};function A(e){E=e,S||(S=!0,P())}function k(e,n){T=y((function(){e(t.unstable_now())}),n)}t.unstable_IdlePriority=5,t.unstable_ImmediatePriority=1,t.unstable_LowPriority=4,t.unstable_NormalPriority=3,t.unstable_Profiling=null,t.unstable_UserBlockingPriority=2,t.unstable_cancelCallback=function(e){e.callback=null},t.unstable_continueExecution=function(){m||f||(m=!0,A(x))},t.unstable_forceFrameRate=function(e){0>e||125<e?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):O=0<e?Math.floor(1e3/e):5},t.unstable_getCurrentPriorityLevel=function(){return h},t.unstable_getFirstCallbackNode=function(){return r(u)},t.unstable_next=function(e){switch(h){case 1:case 2:case 3:var t=3;break;default:t=h}var n=h;h=t;try{return e()}finally{h=n}},t.unstable_pauseExecution=function(){},t.unstable_requestPaint=function(){},t.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var n=h;h=e;try{return t()}finally{h=n}},t.unstable_scheduleCallback=function(e,o,i){var s=t.unstable_now();switch(i="object"==typeof i&&null!==i&&"number"==typeof(i=i.delay)&&0<i?s+i:s,e){case 1:var a=-1;break;case 2:a=250;break;case 5:a=1073741823;break;case 4:a=1e4;break;default:a=5e3}return e={id:p++,callback:o,priorityLevel:e,startTime:i,expirationTime:a=i+a,sortIndex:-1},i>s?(e.sortIndex=i,n(c,e),null===r(u)&&e===r(c)&&(g?(v(T),T=-1):g=!0,k(w,i-s))):(e.sortIndex=a,n(u,e),m||f||(m=!0,A(x))),e},t.unstable_shouldYield=_,t.unstable_wrapCallback=function(e){var t=h;return function(){var n=h;h=t;try{return e.apply(this,arguments)}finally{h=n}}}},840:(e,t,n)=>{"use strict";e.exports=n(53)},535:function(e){var t;t=function(){return function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)n.d(r,o,function(t){return e[t]}.bind(null,o));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s="./src/entries/core.ts")}({"./node_modules/signature_pad/dist/signature_pad.js":function(e,t,n){"use strict";n.r(t),n.d(t,"default",(function(){return s}));class r{constructor(e,t,n,r){if(isNaN(e)||isNaN(t))throw new Error(`Point is invalid: (${e}, ${t})`);this.x=+e,this.y=+t,this.pressure=n||0,this.time=r||Date.now()}distanceTo(e){return Math.sqrt(Math.pow(this.x-e.x,2)+Math.pow(this.y-e.y,2))}equals(e){return this.x===e.x&&this.y===e.y&&this.pressure===e.pressure&&this.time===e.time}velocityFrom(e){return this.time!==e.time?this.distanceTo(e)/(this.time-e.time):0}}class o{constructor(e,t,n,r,o,i){this.startPoint=e,this.control2=t,this.control1=n,this.endPoint=r,this.startWidth=o,this.endWidth=i}static fromPoints(e,t){const n=this.calculateControlPoints(e[0],e[1],e[2]).c2,r=this.calculateControlPoints(e[1],e[2],e[3]).c1;return new o(e[1],n,r,e[2],t.start,t.end)}static calculateControlPoints(e,t,n){const o=e.x-t.x,i=e.y-t.y,s=t.x-n.x,a=t.y-n.y,l=(e.x+t.x)/2,u=(e.y+t.y)/2,c=(t.x+n.x)/2,p=(t.y+n.y)/2,d=Math.sqrt(o*o+i*i),h=Math.sqrt(s*s+a*a),f=h/(d+h),m=c+(l-c)*f,g=p+(u-p)*f,y=t.x-m,v=t.y-g;return{c1:new r(l+y,u+v),c2:new r(c+y,p+v)}}length(){let e,t,n=0;for(let r=0;r<=10;r+=1){const o=r/10,i=this.point(o,this.startPoint.x,this.control1.x,this.control2.x,this.endPoint.x),s=this.point(o,this.startPoint.y,this.control1.y,this.control2.y,this.endPoint.y);if(r>0){const r=i-e,o=s-t;n+=Math.sqrt(r*r+o*o)}e=i,t=s}return n}point(e,t,n,r,o){return t*(1-e)*(1-e)*(1-e)+3*n*(1-e)*(1-e)*e+3*r*(1-e)*e*e+o*e*e*e}}class i{constructor(){try{this._et=new EventTarget}catch(e){this._et=document}}addEventListener(e,t,n){this._et.addEventListener(e,t,n)}dispatchEvent(e){return this._et.dispatchEvent(e)}removeEventListener(e,t,n){this._et.removeEventListener(e,t,n)}}class s extends i{constructor(e,t={}){super(),this.canvas=e,this._drawningStroke=!1,this._isEmpty=!0,this._lastPoints=[],this._data=[],this._lastVelocity=0,this._lastWidth=0,this._handleMouseDown=e=>{1===e.buttons&&(this._drawningStroke=!0,this._strokeBegin(e))},this._handleMouseMove=e=>{this._drawningStroke&&this._strokeMoveUpdate(e)},this._handleMouseUp=e=>{1===e.buttons&&this._drawningStroke&&(this._drawningStroke=!1,this._strokeEnd(e))},this._handleTouchStart=e=>{if(e.cancelable&&e.preventDefault(),1===e.targetTouches.length){const t=e.changedTouches[0];this._strokeBegin(t)}},this._handleTouchMove=e=>{e.cancelable&&e.preventDefault();const t=e.targetTouches[0];this._strokeMoveUpdate(t)},this._handleTouchEnd=e=>{if(e.target===this.canvas){e.cancelable&&e.preventDefault();const t=e.changedTouches[0];this._strokeEnd(t)}},this._handlePointerStart=e=>{this._drawningStroke=!0,e.preventDefault(),this._strokeBegin(e)},this._handlePointerMove=e=>{this._drawningStroke&&(e.preventDefault(),this._strokeMoveUpdate(e))},this._handlePointerEnd=e=>{this._drawningStroke&&(e.preventDefault(),this._drawningStroke=!1,this._strokeEnd(e))},this.velocityFilterWeight=t.velocityFilterWeight||.7,this.minWidth=t.minWidth||.5,this.maxWidth=t.maxWidth||2.5,this.throttle="throttle"in t?t.throttle:16,this.minDistance="minDistance"in t?t.minDistance:5,this.dotSize=t.dotSize||0,this.penColor=t.penColor||"black",this.backgroundColor=t.backgroundColor||"rgba(0,0,0,0)",this.compositeOperation=t.compositeOperation||"source-over",this._strokeMoveUpdate=this.throttle?function(e,t=250){let n,r,o,i=0,s=null;const a=()=>{i=Date.now(),s=null,n=e.apply(r,o),s||(r=null,o=[])};return function(...l){const u=Date.now(),c=t-(u-i);return r=this,o=l,c<=0||c>t?(s&&(clearTimeout(s),s=null),i=u,n=e.apply(r,o),s||(r=null,o=[])):s||(s=window.setTimeout(a,c)),n}}(s.prototype._strokeUpdate,this.throttle):s.prototype._strokeUpdate,this._ctx=e.getContext("2d"),this.clear(),this.on()}clear(){const{_ctx:e,canvas:t}=this;e.fillStyle=this.backgroundColor,e.clearRect(0,0,t.width,t.height),e.fillRect(0,0,t.width,t.height),this._data=[],this._reset(this._getPointGroupOptions()),this._isEmpty=!0}fromDataURL(e,t={}){return new Promise(((n,r)=>{const o=new Image,i=t.ratio||window.devicePixelRatio||1,s=t.width||this.canvas.width/i,a=t.height||this.canvas.height/i,l=t.xOffset||0,u=t.yOffset||0;this._reset(this._getPointGroupOptions()),o.onload=()=>{this._ctx.drawImage(o,l,u,s,a),n()},o.onerror=e=>{r(e)},o.crossOrigin="anonymous",o.src=e,this._isEmpty=!1}))}toDataURL(e="image/png",t){return"image/svg+xml"===e?("object"!=typeof t&&(t=void 0),`data:image/svg+xml;base64,${btoa(this.toSVG(t))}`):("number"!=typeof t&&(t=void 0),this.canvas.toDataURL(e,t))}on(){this.canvas.style.touchAction="none",this.canvas.style.msTouchAction="none",this.canvas.style.userSelect="none";const e=/Macintosh/.test(navigator.userAgent)&&"ontouchstart"in document;window.PointerEvent&&!e?this._handlePointerEvents():(this._handleMouseEvents(),"ontouchstart"in window&&this._handleTouchEvents())}off(){this.canvas.style.touchAction="auto",this.canvas.style.msTouchAction="auto",this.canvas.style.userSelect="auto",this.canvas.removeEventListener("pointerdown",this._handlePointerStart),this.canvas.removeEventListener("pointermove",this._handlePointerMove),this.canvas.ownerDocument.removeEventListener("pointerup",this._handlePointerEnd),this.canvas.removeEventListener("mousedown",this._handleMouseDown),this.canvas.removeEventListener("mousemove",this._handleMouseMove),this.canvas.ownerDocument.removeEventListener("mouseup",this._handleMouseUp),this.canvas.removeEventListener("touchstart",this._handleTouchStart),this.canvas.removeEventListener("touchmove",this._handleTouchMove),this.canvas.removeEventListener("touchend",this._handleTouchEnd)}isEmpty(){return this._isEmpty}fromData(e,{clear:t=!0}={}){t&&this.clear(),this._fromData(e,this._drawCurve.bind(this),this._drawDot.bind(this)),this._data=this._data.concat(e)}toData(){return this._data}_getPointGroupOptions(e){return{penColor:e&&"penColor"in e?e.penColor:this.penColor,dotSize:e&&"dotSize"in e?e.dotSize:this.dotSize,minWidth:e&&"minWidth"in e?e.minWidth:this.minWidth,maxWidth:e&&"maxWidth"in e?e.maxWidth:this.maxWidth,velocityFilterWeight:e&&"velocityFilterWeight"in e?e.velocityFilterWeight:this.velocityFilterWeight,compositeOperation:e&&"compositeOperation"in e?e.compositeOperation:this.compositeOperation}}_strokeBegin(e){this.dispatchEvent(new CustomEvent("beginStroke",{detail:e}));const t=this._getPointGroupOptions(),n=Object.assign(Object.assign({},t),{points:[]});this._data.push(n),this._reset(t),this._strokeUpdate(e)}_strokeUpdate(e){if(0===this._data.length)return void this._strokeBegin(e);this.dispatchEvent(new CustomEvent("beforeUpdateStroke",{detail:e}));const t=e.clientX,n=e.clientY,r=void 0!==e.pressure?e.pressure:void 0!==e.force?e.force:0,o=this._createPoint(t,n,r),i=this._data[this._data.length-1],s=i.points,a=s.length>0&&s[s.length-1],l=!!a&&o.distanceTo(a)<=this.minDistance,u=this._getPointGroupOptions(i);if(!a||!a||!l){const e=this._addPoint(o,u);a?e&&this._drawCurve(e,u):this._drawDot(o,u),s.push({time:o.time,x:o.x,y:o.y,pressure:o.pressure})}this.dispatchEvent(new CustomEvent("afterUpdateStroke",{detail:e}))}_strokeEnd(e){this._strokeUpdate(e),this.dispatchEvent(new CustomEvent("endStroke",{detail:e}))}_handlePointerEvents(){this._drawningStroke=!1,this.canvas.addEventListener("pointerdown",this._handlePointerStart),this.canvas.addEventListener("pointermove",this._handlePointerMove),this.canvas.ownerDocument.addEventListener("pointerup",this._handlePointerEnd)}_handleMouseEvents(){this._drawningStroke=!1,this.canvas.addEventListener("mousedown",this._handleMouseDown),this.canvas.addEventListener("mousemove",this._handleMouseMove),this.canvas.ownerDocument.addEventListener("mouseup",this._handleMouseUp)}_handleTouchEvents(){this.canvas.addEventListener("touchstart",this._handleTouchStart),this.canvas.addEventListener("touchmove",this._handleTouchMove),this.canvas.addEventListener("touchend",this._handleTouchEnd)}_reset(e){this._lastPoints=[],this._lastVelocity=0,this._lastWidth=(e.minWidth+e.maxWidth)/2,this._ctx.fillStyle=e.penColor,this._ctx.globalCompositeOperation=e.compositeOperation}_createPoint(e,t,n){const o=this.canvas.getBoundingClientRect();return new r(e-o.left,t-o.top,n,(new Date).getTime())}_addPoint(e,t){const{_lastPoints:n}=this;if(n.push(e),n.length>2){3===n.length&&n.unshift(n[0]);const e=this._calculateCurveWidths(n[1],n[2],t),r=o.fromPoints(n,e);return n.shift(),r}return null}_calculateCurveWidths(e,t,n){const r=n.velocityFilterWeight*t.velocityFrom(e)+(1-n.velocityFilterWeight)*this._lastVelocity,o=this._strokeWidth(r,n),i={end:o,start:this._lastWidth};return this._lastVelocity=r,this._lastWidth=o,i}_strokeWidth(e,t){return Math.max(t.maxWidth/(e+1),t.minWidth)}_drawCurveSegment(e,t,n){const r=this._ctx;r.moveTo(e,t),r.arc(e,t,n,0,2*Math.PI,!1),this._isEmpty=!1}_drawCurve(e,t){const n=this._ctx,r=e.endWidth-e.startWidth,o=2*Math.ceil(e.length());n.beginPath(),n.fillStyle=t.penColor;for(let n=0;n<o;n+=1){const i=n/o,s=i*i,a=s*i,l=1-i,u=l*l,c=u*l;let p=c*e.startPoint.x;p+=3*u*i*e.control1.x,p+=3*l*s*e.control2.x,p+=a*e.endPoint.x;let d=c*e.startPoint.y;d+=3*u*i*e.control1.y,d+=3*l*s*e.control2.y,d+=a*e.endPoint.y;const h=Math.min(e.startWidth+a*r,t.maxWidth);this._drawCurveSegment(p,d,h)}n.closePath(),n.fill()}_drawDot(e,t){const n=this._ctx,r=t.dotSize>0?t.dotSize:(t.minWidth+t.maxWidth)/2;n.beginPath(),this._drawCurveSegment(e.x,e.y,r),n.closePath(),n.fillStyle=t.penColor,n.fill()}_fromData(e,t,n){for(const o of e){const{points:e}=o,i=this._getPointGroupOptions(o);if(e.length>1)for(let n=0;n<e.length;n+=1){const o=e[n],s=new r(o.x,o.y,o.pressure,o.time);0===n&&this._reset(i);const a=this._addPoint(s,i);a&&t(a,i)}else this._reset(i),n(e[0],i)}}toSVG({includeBackgroundColor:e=!1}={}){const t=this._data,n=Math.max(window.devicePixelRatio||1,1),r=this.canvas.width/n,o=this.canvas.height/n,i=document.createElementNS("http://www.w3.org/2000/svg","svg");if(i.setAttribute("xmlns","http://www.w3.org/2000/svg"),i.setAttribute("xmlns:xlink","http://www.w3.org/1999/xlink"),i.setAttribute("viewBox",`0 0 ${r} ${o}`),i.setAttribute("width",r.toString()),i.setAttribute("height",o.toString()),e&&this.backgroundColor){const e=document.createElement("rect");e.setAttribute("width","100%"),e.setAttribute("height","100%"),e.setAttribute("fill",this.backgroundColor),i.appendChild(e)}return this._fromData(t,((e,{penColor:t})=>{const n=document.createElement("path");if(!(isNaN(e.control1.x)||isNaN(e.control1.y)||isNaN(e.control2.x)||isNaN(e.control2.y))){const r=`M ${e.startPoint.x.toFixed(3)},${e.startPoint.y.toFixed(3)} C ${e.control1.x.toFixed(3)},${e.control1.y.toFixed(3)} ${e.control2.x.toFixed(3)},${e.control2.y.toFixed(3)} ${e.endPoint.x.toFixed(3)},${e.endPoint.y.toFixed(3)}`;n.setAttribute("d",r),n.setAttribute("stroke-width",(2.25*e.endWidth).toFixed(3)),n.setAttribute("stroke",t),n.setAttribute("fill","none"),n.setAttribute("stroke-linecap","round"),i.appendChild(n)}}),((e,{penColor:t,dotSize:n,minWidth:r,maxWidth:o})=>{const s=document.createElement("circle"),a=n>0?n:(r+o)/2;s.setAttribute("r",a.toString()),s.setAttribute("cx",e.x.toString()),s.setAttribute("cy",e.y.toString()),s.setAttribute("fill",t),i.appendChild(s)})),i.outerHTML}}},"./src/actions/action.ts":function(e,t,n){"use strict";n.r(t),n.d(t,"createDropdownActionModel",(function(){return h})),n.d(t,"createDropdownActionModelAdvanced",(function(){return f})),n.d(t,"getActionDropdownButtonTarget",(function(){return m})),n.d(t,"BaseAction",(function(){return g})),n.d(t,"Action",(function(){return y})),n.d(t,"ActionDropdownViewModel",(function(){return v}));var r,o=n("./src/base.ts"),i=n("./src/surveyStrings.ts"),s=n("./src/jsonobject.ts"),a=n("./src/list.ts"),l=n("./src/popup.ts"),u=n("./src/utils/cssClassBuilder.ts"),c=n("./src/actions/container.ts"),p=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),d=function(e,t,n,r){var o,i=arguments.length,s=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,r);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(i<3?o(s):i>3?o(t,n,s):o(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s};function h(e,t,n){return f(e,t,t,n)}function f(e,t,n,r){var o=new a.ListModel(t.items,(function(e){t.onSelectionChanged(e),i.toggleVisibility()}),t.allowSelection,t.selectedItem,t.onFilterStringChangedCallback);o.locOwner=r;var i=new l.PopupModel("sv-list",{model:o},null==n?void 0:n.verticalPosition,null==n?void 0:n.horizontalPosition,null==n?void 0:n.showPointer,null==n?void 0:n.isModal,null==n?void 0:n.onCancel,null==n?void 0:n.onApply,null==n?void 0:n.onHide,null==n?void 0:n.onShow,null==n?void 0:n.cssClass,null==n?void 0:n.title);i.displayMode=null==n?void 0:n.displayMode;var s=Object.assign({},e,{component:"sv-action-bar-item-dropdown",popupModel:i,action:function(t,n){e.action&&e.action(),i.isFocusedContent=!n||o.showFilter,i.toggleVisibility(),o.scrollToSelectedItem()}}),u=new y(s);return u.data=o,u}function m(e){return null==e?void 0:e.previousElementSibling}var g=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.iconSize=24,t}return p(t,e),Object.defineProperty(t.prototype,"visible",{get:function(){return this.getVisible()},set:function(e){this.setVisible(e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"enabled",{get:function(){return this.getEnabled()},set:function(e){this.setEnabled(e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"component",{get:function(){return this.getComponent()},set:function(e){this.setComponent(e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locTitle",{get:function(){return this.getLocTitle()},set:function(e){this.setLocTitle(e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"title",{get:function(){return this.getTitle()},set:function(e){this.setTitle(e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"cssClasses",{get:function(){return this.cssClassesValue||c.defaultActionBarCss},set:function(e){this.cssClassesValue=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isVisible",{get:function(){return this.visible&&"popup"!==this.mode&&"removed"!==this.mode},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"disabled",{get:function(){return void 0!==this.enabled&&!this.enabled},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"canShrink",{get:function(){return!!this.iconName},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hasTitle",{get:function(){return("small"!=this.mode&&(this.showTitle||void 0===this.showTitle)||!this.iconName)&&!!this.title},enumerable:!1,configurable:!0}),t.prototype.getActionBarItemTitleCss=function(){return(new u.CssClassBuilder).append(this.cssClasses.itemTitle).append(this.cssClasses.itemTitleWithIcon,!!this.iconName).toString()},t.prototype.getActionBarItemCss=function(){return(new u.CssClassBuilder).append(this.cssClasses.item).append(this.cssClasses.itemAsIcon,!this.hasTitle).append(this.cssClasses.itemActive,!!this.active).append(this.cssClasses.itemPressed,!!this.pressed).append(this.innerCss).toString()},t.prototype.getActionRootCss=function(){return(new u.CssClassBuilder).append("sv-action").append(this.css).append("sv-action--space",this.needSpace).append("sv-action--hidden",!this.isVisible).toString()},t.prototype.getTooltip=function(){return this.tooltip||this.title},t.prototype.getIsTrusted=function(e){return e.originalEvent?e.originalEvent.isTrusted:e.isTrusted},d([Object(s.property)()],t.prototype,"tooltip",void 0),d([Object(s.property)()],t.prototype,"showTitle",void 0),d([Object(s.property)()],t.prototype,"innerCss",void 0),d([Object(s.property)()],t.prototype,"active",void 0),d([Object(s.property)()],t.prototype,"pressed",void 0),d([Object(s.property)()],t.prototype,"data",void 0),d([Object(s.property)()],t.prototype,"popupModel",void 0),d([Object(s.property)()],t.prototype,"needSeparator",void 0),d([Object(s.property)()],t.prototype,"template",void 0),d([Object(s.property)({defaultValue:"large"})],t.prototype,"mode",void 0),d([Object(s.property)()],t.prototype,"visibleIndex",void 0),d([Object(s.property)()],t.prototype,"disableTabStop",void 0),d([Object(s.property)()],t.prototype,"disableShrink",void 0),d([Object(s.property)()],t.prototype,"disableHide",void 0),d([Object(s.property)({defaultValue:!1})],t.prototype,"needSpace",void 0),d([Object(s.property)()],t.prototype,"ariaChecked",void 0),d([Object(s.property)()],t.prototype,"ariaExpanded",void 0),d([Object(s.property)({defaultValue:"button"})],t.prototype,"ariaRole",void 0),d([Object(s.property)()],t.prototype,"iconName",void 0),d([Object(s.property)()],t.prototype,"iconSize",void 0),d([Object(s.property)()],t.prototype,"css",void 0),t}(o.Base),y=function(e){function t(t){var n=e.call(this)||this;if(n.innerItem=t,n.locTitleChanged=function(){var e=n.locTitle.renderedHtml;n.setPropertyValue("_title",e||void 0)},n.locTitle=t?t.locTitle:null,t)for(var r in t)n[r]=t[r];return n.locTitleName&&n.locTitleChanged(),n.registerFunctionOnPropertyValueChanged("_title",(function(){n.raiseUpdate(!0)})),n.locStrChangedInPopupModel(),n}return p(t,e),t.prototype.raiseUpdate=function(e){void 0===e&&(e=!1),this.updateCallback&&this.updateCallback(e)},t.prototype.createLocTitle=function(){return this.createLocalizableString("title",this,!0)},t.prototype.getLocTitle=function(){return this.locTitleValue},t.prototype.setLocTitle=function(e){e||this.locTitleValue||(e=this.createLocTitle()),this.locTitleValue&&this.locTitleValue.onStringChanged.remove(this.locTitleChanged),this.locTitleValue=e,this.locTitleValue.onStringChanged.add(this.locTitleChanged),this.locTitleChanged()},t.prototype.getTitle=function(){return this._title},t.prototype.setTitle=function(e){this._title=e},Object.defineProperty(t.prototype,"locTitleName",{get:function(){return this.locTitle.localizationName},set:function(e){this.locTitle.localizationName=e},enumerable:!1,configurable:!0}),t.prototype.locStrsChanged=function(){e.prototype.locStrsChanged.call(this),this.locTooltipChanged(),this.locStrChangedInPopupModel()},t.prototype.locStrChangedInPopupModel=function(){if(this.popupModel&&this.popupModel.contentComponentData&&this.popupModel.contentComponentData.model){var e=this.popupModel.contentComponentData.model;Array.isArray(e.actions)&&e.actions.forEach((function(e){e.locStrsChanged&&e.locStrsChanged()}))}},t.prototype.locTooltipChanged=function(){this.locTooltipName&&(this.tooltip=i.surveyLocalization.getString(this.locTooltipName,this.locTitle.locale))},t.prototype.getLocale=function(){return this.owner?this.owner.getLocale():""},t.prototype.getMarkdownHtml=function(e,t){return this.owner?this.owner.getMarkdownHtml(e,t):void 0},t.prototype.getProcessedText=function(e){return this.owner?this.owner.getProcessedText(e):e},t.prototype.getRenderer=function(e){return this.owner?this.owner.getRenderer(e):null},t.prototype.getRendererContext=function(e){return this.owner?this.owner.getRendererContext(e):e},t.prototype.setVisible=function(e){this._visible=e},t.prototype.getVisible=function(){return this._visible},t.prototype.setEnabled=function(e){this._enabled=e},t.prototype.getEnabled=function(){return this._enabled},t.prototype.setComponent=function(e){this._component=e},t.prototype.getComponent=function(){return this._component},d([Object(s.property)()],t.prototype,"id",void 0),d([Object(s.property)({defaultValue:!0,onSet:function(e,t){t.raiseUpdate()}})],t.prototype,"_visible",void 0),d([Object(s.property)({onSet:function(e,t){t.locTooltipChanged()}})],t.prototype,"locTooltipName",void 0),d([Object(s.property)()],t.prototype,"_enabled",void 0),d([Object(s.property)()],t.prototype,"action",void 0),d([Object(s.property)()],t.prototype,"_component",void 0),d([Object(s.property)()],t.prototype,"items",void 0),d([Object(s.property)({onSet:function(e,t){t.locTitleValue.text!==e&&(t.locTitleValue.text=e)}})],t.prototype,"_title",void 0),t}(g),v=function(){function e(e){this.item=e,this.funcKey="sv-dropdown-action",this.setupPopupCallbacks()}return e.prototype.setupPopupCallbacks=function(){var e=this,t=this.popupModel=this.item.popupModel;t&&t.registerPropertyChangedHandlers(["isVisible"],(function(){t.isVisible?e.item.pressed=!0:e.item.pressed=!1}),this.funcKey)},e.prototype.removePopupCallbacks=function(){this.popupModel&&this.popupModel.unregisterPropertyChangedHandlers(["isVisible"],this.funcKey)},e.prototype.dispose=function(){this.removePopupCallbacks()},e}()},"./src/actions/adaptive-container.ts":function(e,t,n){"use strict";n.r(t),n.d(t,"AdaptiveActionContainer",(function(){return u}));var r,o=n("./src/utils/responsivity-manager.ts"),i=n("./src/actions/action.ts"),s=n("./src/actions/container.ts"),a=n("./src/surveyStrings.ts"),l=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),u=function(e){function t(){var n=e.call(this)||this;return n.minVisibleItemsCount=0,n.isResponsivenessDisabled=!1,n.dotsItem=Object(i.createDropdownActionModelAdvanced)({id:"dotsItem-id"+t.ContainerID++,css:"sv-dots",innerCss:"sv-dots__item",iconName:"icon-more",visible:!1,tooltip:a.surveyLocalization.getString("more")},{items:[],onSelectionChanged:function(e){n.hiddenItemSelected(e)},allowSelection:!1}),n}return l(t,e),t.prototype.hideItemsGreaterN=function(e){var t=this.visibleActions.filter((function(e){return!e.disableHide}));e=Math.max(e,this.minVisibleItemsCount-(this.visibleActions.length-t.length));var n=[];t.forEach((function(t){e<=0&&(t.mode="popup",n.push(t.innerItem)),e--})),this.hiddenItemsListModel.setItems(n)},t.prototype.getVisibleItemsCount=function(e){this.visibleActions.filter((function(e){return e.disableHide})).forEach((function(t){return e-=t.minDimension}));for(var t=this.visibleActions.filter((function(e){return!e.disableHide})).map((function(e){return e.minDimension})),n=0,r=0;r<t.length;r++)if((n+=t[r])>e)return r;return r},t.prototype.updateItemMode=function(e,t){for(var n=this.visibleActions,r=n.length-1;r>=0;r--)t>e&&!n[r].disableShrink?(t-=n[r].maxDimension-n[r].minDimension,n[r].mode="small"):n[r].mode="large";if(t>e){var o=this.visibleActions.filter((function(e){return e.removePriority}));for(o.sort((function(e,t){return e.removePriority-t.removePriority})),r=0;r<o.length;r++)t>e&&(t-=n[r].disableShrink?o[r].maxDimension:o[r].minDimension,o[r].mode="removed")}},Object.defineProperty(t.prototype,"hiddenItemsListModel",{get:function(){return this.dotsItem.data},enumerable:!1,configurable:!0}),t.prototype.hiddenItemSelected=function(e){e&&"function"==typeof e.action&&e.action()},t.prototype.onSet=function(){var t=this;this.actions.forEach((function(e){return e.updateCallback=function(e){return t.raiseUpdate(e)}})),e.prototype.onSet.call(this)},t.prototype.onPush=function(t){var n=this;t.updateCallback=function(e){return n.raiseUpdate(e)},e.prototype.onPush.call(this,t)},t.prototype.getRenderedActions=function(){return 1===this.actions.length&&this.actions[0].iconName?this.actions:this.actions.concat([this.dotsItem])},t.prototype.raiseUpdate=function(t){this.isResponsivenessDisabled||e.prototype.raiseUpdate.call(this,t)},t.prototype.fit=function(e,t){if(!(e<=0)){this.dotsItem.visible=!1;var n=0,r=0;this.visibleActions.forEach((function(e){n+=e.minDimension,r+=e.maxDimension})),e>=r?this.setActionsMode("large"):e<n?(this.setActionsMode("small"),this.hideItemsGreaterN(this.getVisibleItemsCount(e-t)),this.dotsItem.visible=!0):this.updateItemMode(e,r)}},t.prototype.initResponsivityManager=function(e){this.responsivityManager=new o.ResponsivityManager(e,this,":scope > .sv-action:not(.sv-dots) > .sv-action__content")},t.prototype.resetResponsivityManager=function(){this.responsivityManager&&(this.responsivityManager.dispose(),this.responsivityManager=void 0)},t.prototype.setActionsMode=function(e){this.actions.forEach((function(t){return t.mode=e}))},t.prototype.dispose=function(){e.prototype.dispose.call(this),this.resetResponsivityManager()},t.ContainerID=1,t}(s.ActionContainer)},"./src/actions/container.ts":function(e,t,n){"use strict";n.r(t),n.d(t,"defaultActionBarCss",(function(){return p})),n.d(t,"ActionContainer",(function(){return d}));var r,o=n("./src/jsonobject.ts"),i=n("./src/base.ts"),s=n("./src/actions/action.ts"),a=n("./src/utils/cssClassBuilder.ts"),l=n("./src/utils/utils.ts"),u=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),c=function(e,t,n,r){var o,i=arguments.length,s=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,r);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(i<3?o(s):i>3?o(t,n,s):o(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},p={root:"sv-action-bar",defaultSizeMode:"sv-action-bar--default-size-mode",smallSizeMode:"sv-action-bar--small-size-mode",item:"sv-action-bar-item",itemActive:"sv-action-bar-item--active",itemPressed:"sv-action-bar-item--pressed",itemIcon:"sv-action-bar-item__icon",itemTitle:"sv-action-bar-item__title",itemTitleWithIcon:"sv-action-bar-item__title--with-icon"},d=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.sizeMode="default",t}return u(t,e),t.prototype.getMarkdownHtml=function(e,t){return this.locOwner?this.locOwner.getMarkdownHtml(e,t):void 0},t.prototype.getRenderer=function(e){return this.locOwner?this.locOwner.getRenderer(e):null},t.prototype.getRendererContext=function(e){return this.locOwner?this.locOwner.getRendererContext(e):e},t.prototype.getProcessedText=function(e){return this.locOwner?this.locOwner.getProcessedText(e):e},t.prototype.getLocale=function(){return this.locOwner?this.locOwner.getLocale():""},t.prototype.getRenderedActions=function(){return this.actions},t.prototype.locStrsChanged=function(){e.prototype.locStrsChanged.call(this),this.actions.forEach((function(e){e.locTitle&&e.locTitle.strChanged(),e.locStrsChanged()}))},t.prototype.raiseUpdate=function(e){this.isEmpty=!this.actions.some((function(e){return e.visible})),this.updateCallback&&this.updateCallback(e)},t.prototype.onSet=function(){var e=this;this.actions.forEach((function(t){e.setActionCssClasses(t)})),this.raiseUpdate(!0)},t.prototype.onPush=function(e){this.setActionCssClasses(e),e.owner=this,this.raiseUpdate(!0)},t.prototype.onRemove=function(e){e.owner=null,this.raiseUpdate(!0)},t.prototype.setActionCssClasses=function(e){e.cssClasses=this.cssClasses},Object.defineProperty(t.prototype,"hasActions",{get:function(){return(this.actions||[]).length>0},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"renderedActions",{get:function(){return this.getRenderedActions()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"visibleActions",{get:function(){return this.actions.filter((function(e){return!1!==e.visible}))},enumerable:!1,configurable:!0}),t.prototype.getRootCss=function(){var e="small"===this.sizeMode?this.cssClasses.smallSizeMode:this.cssClasses.defaultSizeMode;return(new a.CssClassBuilder).append(this.cssClasses.root+(e?" "+e:"")+(this.containerCss?" "+this.containerCss:"")).append(this.cssClasses.root+"--empty",this.isEmpty).toString()},t.prototype.getDefaultCssClasses=function(){return p},Object.defineProperty(t.prototype,"cssClasses",{get:function(){return this.cssClassesValue||(this.cssClassesValue=this.getDefaultCssClasses()),this.cssClassesValue},set:function(e){var t=this;this.cssClassesValue={},this.copyCssClasses(this.cssClassesValue,this.getDefaultCssClasses()),Object(l.mergeValues)(e,this.cssClasses),this.actions.forEach((function(e){t.setActionCssClasses(e)}))},enumerable:!1,configurable:!0}),t.prototype.createAction=function(e){return e instanceof s.BaseAction?e:new s.Action(e)},t.prototype.addAction=function(e,t){void 0===t&&(t=!0);var n=this.createAction(e);return this.actions.push(n),this.sortItems(),n},t.prototype.sortItems=function(){this.actions=[].concat(this.actions.filter((function(e){return void 0===e.visibleIndex||e.visibleIndex>=0}))).sort((function(e,t){return e.visibleIndex-t.visibleIndex}))},t.prototype.setItems=function(e,t){var n=this;void 0===t&&(t=!0),this.actions=e.map((function(e){return n.createAction(e)})),t&&this.sortItems()},t.prototype.initResponsivityManager=function(e){},t.prototype.resetResponsivityManager=function(){},t.prototype.getActionById=function(e){for(var t=0;t<this.actions.length;t++)if(this.actions[t].id===e)return this.actions[t];return null},t.prototype.dispose=function(){e.prototype.dispose.call(this),this.actions.forEach((function(e){return e.dispose()})),this.actions.length=0},c([Object(o.propertyArray)({onSet:function(e,t){t.onSet()},onPush:function(e,t,n){n.onPush(e)},onRemove:function(e,t,n){n.onRemove(e)}})],t.prototype,"actions",void 0),c([Object(o.property)({})],t.prototype,"containerCss",void 0),c([Object(o.property)({defaultValue:!1})],t.prototype,"isEmpty",void 0),t}(i.Base)},"./src/base.ts":function(e,t,n){"use strict";n.r(t),n.d(t,"Bindings",(function(){return d})),n.d(t,"Dependencies",(function(){return h})),n.d(t,"ComputedUpdater",(function(){return f})),n.d(t,"Base",(function(){return m})),n.d(t,"ArrayChanges",(function(){return g})),n.d(t,"Event",(function(){return y})),n.d(t,"EventBase",(function(){return v}));var r,o=n("./src/localizablestring.ts"),i=n("./src/helpers.ts"),s=n("./src/jsonobject.ts"),a=n("./src/settings.ts"),l=n("./src/conditions.ts"),u=n("./src/surveyStrings.ts"),c=n("./src/console-warnings.ts"),p=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),d=function(){function e(e){this.obj=e,this.properties=null,this.values=null}return e.prototype.getType=function(){return"bindings"},e.prototype.getNames=function(){var e=[];this.fillProperties();for(var t=0;t<this.properties.length;t++)this.properties[t].isVisible("",this.obj)&&e.push(this.properties[t].name);return e},e.prototype.getProperties=function(){var e=[];this.fillProperties();for(var t=0;t<this.properties.length;t++)e.push(this.properties[t]);return e},e.prototype.setBinding=function(e,t){this.values||(this.values={});var n=this.getJson();n!==t&&(t?this.values[e]=t:(delete this.values[e],0==Object.keys(this.values).length&&(this.values=null)),this.onChangedJSON(n))},e.prototype.clearBinding=function(e){this.setBinding(e,"")},e.prototype.isEmpty=function(){if(!this.values)return!0;for(var e in this.values)return!1;return!0},e.prototype.getValueNameByPropertyName=function(e){if(this.values)return this.values[e]},e.prototype.getPropertiesByValueName=function(e){if(!this.values)return[];var t=[];for(var n in this.values)this.values[n]==e&&t.push(n);return t},e.prototype.getJson=function(){if(!this.isEmpty()){var e={};for(var t in this.values)e[t]=this.values[t];return e}},e.prototype.setJson=function(e){var t=this.getJson();if(this.values=null,e)for(var n in this.values={},e)this.values[n]=e[n];this.onChangedJSON(t)},e.prototype.fillProperties=function(){if(null===this.properties){this.properties=[];for(var e=s.Serializer.getPropertiesByObj(this.obj),t=0;t<e.length;t++)e[t].isBindable&&this.properties.push(e[t])}},e.prototype.onChangedJSON=function(e){this.obj&&this.obj.onBindingChanged(e,this.getJson())},e}(),h=function(){function e(t,n,r){this.currentDependency=t,this.target=n,this.property=r,this.dependencies=[],this.id=""+ ++e.DependenciesCount}return e.prototype.addDependency=function(e,t){this.target===e&&this.property===t||this.dependencies.some((function(n){return n.obj===e&&n.prop===t}))||(this.dependencies.push({obj:e,prop:t,id:this.id}),e.registerPropertyChangedHandlers([t],this.currentDependency,this.id))},e.prototype.dispose=function(){this.dependencies.forEach((function(e){e.obj.unregisterPropertyChangedHandlers([e.prop],e.id)}))},e.DependenciesCount=0,e}(),f=function(){function e(t){this._updater=t,this.dependencies=void 0,this.type=e.ComputedUpdaterType}return Object.defineProperty(e.prototype,"updater",{get:function(){return this._updater},enumerable:!1,configurable:!0}),e.prototype.setDependencies=function(e){this.clearDependencies(),this.dependencies=e},e.prototype.getDependencies=function(){return this.dependencies},e.prototype.clearDependencies=function(){this.dependencies&&(this.dependencies.dispose(),this.dependencies=void 0)},e.prototype.dispose=function(){this.clearDependencies()},e.ComputedUpdaterType="__dependency_computed",e}(),m=function(){function e(){this.propertyHash=e.createPropertiesHash(),this.eventList=[],this.isLoadingFromJsonValue=!1,this.loadingOwner=null,this.onPropertyChanged=this.addEvent(),this.onItemValuePropertyChanged=this.addEvent(),this.isCreating=!0,this.bindingsValue=new d(this),s.CustomPropertiesCollection.createProperties(this),this.onBaseCreating(),this.isCreating=!1}return e.finishCollectDependencies=function(){var t=e.currentDependencis;return e.currentDependencis=void 0,t},e.startCollectDependencies=function(t,n,r){if(void 0!==e.currentDependencis)throw new Error("Attempt to collect nested dependencies. Nested dependencies are not supported.");e.currentDependencis=new h(t,n,r)},e.collectDependency=function(t,n){void 0!==e.currentDependencis&&e.currentDependencis.addDependency(t,n)},Object.defineProperty(e,"commentSuffix",{get:function(){return a.settings.commentSuffix},set:function(e){a.settings.commentSuffix=e},enumerable:!1,configurable:!0}),Object.defineProperty(e,"commentPrefix",{get:function(){return e.commentSuffix},set:function(t){e.commentSuffix=t},enumerable:!1,configurable:!0}),e.prototype.isValueEmpty=function(e,t){return void 0===t&&(t=!0),t&&(e=this.trimValue(e)),i.Helpers.isValueEmpty(e)},e.prototype.trimValue=function(e){return e&&("string"==typeof e||e instanceof String)?e.trim():e},e.prototype.isPropertyEmpty=function(e){return""!==e&&this.isValueEmpty(e)},e.createPropertiesHash=function(){return{}},e.prototype.dispose=function(){for(var e=0;e<this.eventList.length;e++)this.eventList[e].clear();this.onPropertyValueChangedCallback=void 0,this.isDisposedValue=!0},Object.defineProperty(e.prototype,"isDisposed",{get:function(){return!0===this.isDisposedValue},enumerable:!1,configurable:!0}),e.prototype.addEvent=function(){var e=new v;return this.eventList.push(e),e},e.prototype.onBaseCreating=function(){},e.prototype.getType=function(){return"base"},e.prototype.isDescendantOf=function(e){return s.Serializer.isDescendantOf(this.getType(),e)},e.prototype.getSurvey=function(e){return void 0===e&&(e=!1),null},Object.defineProperty(e.prototype,"isDesignMode",{get:function(){var e=this.getSurvey();return!!e&&e.isDesignMode},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"inSurvey",{get:function(){return!!this.getSurvey(!0)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"bindings",{get:function(){return this.bindingsValue},enumerable:!1,configurable:!0}),e.prototype.checkBindings=function(e,t){},e.prototype.updateBindings=function(e,t){var n=this.bindings.getValueNameByPropertyName(e);n&&this.updateBindingValue(n,t)},e.prototype.updateBindingValue=function(e,t){},e.prototype.getTemplate=function(){return this.getType()},Object.defineProperty(e.prototype,"isLoadingFromJson",{get:function(){return this.isLoadingFromJsonValue||this.getIsLoadingFromJson()},enumerable:!1,configurable:!0}),e.prototype.getIsLoadingFromJson=function(){return!(!this.loadingOwner||!this.loadingOwner.isLoadingFromJson)||this.isLoadingFromJsonValue},e.prototype.startLoadingFromJson=function(e){this.isLoadingFromJsonValue=!0,this.jsonObj=e},e.prototype.endLoadingFromJson=function(){this.isLoadingFromJsonValue=!1},e.prototype.toJSON=function(){return(new s.JsonObject).toJsonObject(this)},e.prototype.fromJSON=function(e){(new s.JsonObject).toObject(e,this),this.onSurveyLoad()},e.prototype.onSurveyLoad=function(){},e.prototype.clone=function(){var e=s.Serializer.createClass(this.getType());return e.fromJSON(this.toJSON()),e},e.prototype.getPropertyByName=function(e){var t=this.getType();return this.classMetaData&&this.classMetaData.name===t||(this.classMetaData=s.Serializer.findClass(t)),this.classMetaData?this.classMetaData.findProperty(e):null},e.prototype.isPropertyVisible=function(e){var t=this.getPropertyByName(e);return!!t&&t.isVisible("",this)},e.createProgressInfo=function(){return{questionCount:0,answeredQuestionCount:0,requiredQuestionCount:0,requiredAnsweredQuestionCount:0}},e.prototype.getProgressInfo=function(){return e.createProgressInfo()},e.prototype.localeChanged=function(){},e.prototype.locStrsChanged=function(){if(this.arraysInfo)for(var t in this.arraysInfo)if((r=this.arraysInfo[t])&&r.isItemValues){var n=this.getPropertyValue(t);n&&e.itemValueLocStrChanged&&e.itemValueLocStrChanged(n)}if(this.localizableStrings)for(var t in this.localizableStrings){var r;(r=this.getLocalizableString(t))&&r.strChanged()}},e.prototype.getPropertyValue=function(e,t){void 0===t&&(t=null);var n=this.getPropertyValueWithoutDefault(e);if(this.isPropertyEmpty(n)){var r=this.localizableStrings?this.localizableStrings[e]:void 0;if(r)return r.text;if(null!=t)return t;var o=this.getDefaultValueFromProperty(e);if(void 0!==o)return o}return n},e.prototype.getDefaultValueFromProperty=function(e){var t=this.getPropertyByName(e);if(!(!t||t.isCustom&&this.isCreating)){var n=t.defaultValue;return this.isPropertyEmpty(n)||Array.isArray(n)?"boolean"!=t.type&&"switch"!=t.type&&(t.isCustom&&t.onGetValue?t.onGetValue(this):void 0):n}},e.prototype.getPropertyValueWithoutDefault=function(e){return this.getPropertyValueCore(this.propertyHash,e)},e.prototype.getPropertyValueCore=function(t,n){return this.isLoadingFromJson||e.collectDependency(this,n),this.getPropertyValueCoreHandler?this.getPropertyValueCoreHandler(t,n):t[n]},e.prototype.geValueFromHash=function(){return this.propertyHash.value},e.prototype.setPropertyValueCore=function(e,t,n){this.setPropertyValueCoreHandler?this.isDisposedValue?c.ConsoleWarnings.disposedObjectChangedProperty(t,this.getType()):this.setPropertyValueCoreHandler(e,t,n):e[t]=n},Object.defineProperty(e.prototype,"isEditingSurveyElement",{get:function(){var e=this.getSurvey();return!!e&&e.isEditingSurveyElement},enumerable:!1,configurable:!0}),e.prototype.iteratePropertiesHash=function(e){var t=this,n=[];for(var r in this.propertyHash)"value"===r&&this.isEditingSurveyElement&&Array.isArray(this.value)||n.push(r);n.forEach((function(n){return e(t.propertyHash,n)}))},e.prototype.setPropertyValue=function(e,t){if(!this.isLoadingFromJson){var n=this.getPropertyByName(e);n&&(t=n.settingValue(this,t))}var r=this.getPropertyValue(e);if(r&&Array.isArray(r)&&this.arraysInfo&&(!t||Array.isArray(t))){if(this.isTwoValueEquals(r,t))return;this.setArrayPropertyDirectly(e,t)}else this.setPropertyValueDirectly(e,t),this.isDisposedValue||this.isTwoValueEquals(r,t)||this.propertyValueChanged(e,r,t)},e.prototype.setArrayPropertyDirectly=function(e,t,n){void 0===n&&(n=!0);var r=this.arraysInfo[e];this.setArray(e,this.getPropertyValue(e),t,!!r&&r.isItemValues,r?n&&r.onPush:null)},e.prototype.setPropertyValueDirectly=function(e,t){this.setPropertyValueCore(this.propertyHash,e,t)},e.prototype.clearPropertyValue=function(e){this.setPropertyValueCore(this.propertyHash,e,null),delete this.propertyHash[e]},e.prototype.onPropertyValueChangedCallback=function(e,t,n,r,o){},e.prototype.itemValuePropertyChanged=function(e,t,n,r){this.onItemValuePropertyChanged.fire(this,{obj:e,name:t,oldValue:n,newValue:r,propertyName:e.ownerPropertyName})},e.prototype.onPropertyValueChanged=function(e,t,n){},e.prototype.propertyValueChanged=function(e,t,n,r,o){if(!this.isLoadingFromJson&&(this.updateBindings(e,n),this.onPropertyValueChanged(e,t,n),this.onPropertyChanged.fire(this,{name:e,oldValue:t,newValue:n}),this.doPropertyValueChangedCallback(e,t,n,r,this),this.checkConditionPropertyChanged(e),this.onPropChangeFunctions))for(var i=0;i<this.onPropChangeFunctions.length;i++)this.onPropChangeFunctions[i].name==e&&this.onPropChangeFunctions[i].func(n)},e.prototype.onBindingChanged=function(e,t){this.isLoadingFromJson||this.doPropertyValueChangedCallback("bindings",e,t)},Object.defineProperty(e.prototype,"isInternal",{get:function(){return!1},enumerable:!1,configurable:!0}),e.prototype.doPropertyValueChangedCallback=function(e,t,n,r,o){if(!this.isInternal){o||(o=this);var i=this.getSurvey();i||(i=this),i.onPropertyValueChangedCallback&&i.onPropertyValueChangedCallback(e,t,n,o,r),i!==this&&this.onPropertyValueChangedCallback&&this.onPropertyValueChangedCallback(e,t,n,o,r)}},e.prototype.addExpressionProperty=function(e,t,n){this.expressionInfo||(this.expressionInfo={}),this.expressionInfo[e]={onExecute:t,canRun:n}},e.prototype.getDataFilteredValues=function(){return{}},e.prototype.getDataFilteredProperties=function(){return{}},e.prototype.runConditionCore=function(e,t){if(this.expressionInfo)for(var n in this.expressionInfo)this.runConditionItemCore(n,e,t)},e.prototype.canRunConditions=function(){return!this.isDesignMode},e.prototype.checkConditionPropertyChanged=function(e){this.expressionInfo&&this.expressionInfo[e]&&this.canRunConditions()&&this.runConditionItemCore(e,this.getDataFilteredValues(),this.getDataFilteredProperties())},e.prototype.runConditionItemCore=function(e,t,n){var r=this,o=this.expressionInfo[e],i=this.getPropertyValue(e);i&&(o.canRun&&!o.canRun(this)||(o.runner||(o.runner=new l.ExpressionRunner(i),o.runner.onRunComplete=function(e){o.onExecute(r,e)}),o.runner.expression=i,o.runner.run(t,n)))},e.prototype.registerPropertyChangedHandlers=function(e,t,n){void 0===n&&(n=null);for(var r=0;r<e.length;r++)this.registerFunctionOnPropertyValueChanged(e[r],t,n)},e.prototype.unregisterPropertyChangedHandlers=function(e,t){void 0===t&&(t=null);for(var n=0;n<e.length;n++)this.unRegisterFunctionOnPropertyValueChanged(e[n],t)},e.prototype.registerFunctionOnPropertyValueChanged=function(e,t,n){if(void 0===n&&(n=null),this.onPropChangeFunctions||(this.onPropChangeFunctions=[]),n)for(var r=0;r<this.onPropChangeFunctions.length;r++){var o=this.onPropChangeFunctions[r];if(o.name==e&&o.key==n)return void(o.func=t)}this.onPropChangeFunctions.push({name:e,func:t,key:n})},e.prototype.registerFunctionOnPropertiesValueChanged=function(e,t,n){void 0===n&&(n=null),this.registerPropertyChangedHandlers(e,t,n)},e.prototype.unRegisterFunctionOnPropertyValueChanged=function(e,t){if(void 0===t&&(t=null),this.onPropChangeFunctions)for(var n=0;n<this.onPropChangeFunctions.length;n++){var r=this.onPropChangeFunctions[n];if(r.name==e&&r.key==t)return void this.onPropChangeFunctions.splice(n,1)}},e.prototype.unRegisterFunctionOnPropertiesValueChanged=function(e,t){void 0===t&&(t=null),this.unregisterPropertyChangedHandlers(e,t)},e.prototype.createCustomLocalizableObj=function(e){this.getLocalizableString(e)||this.createLocalizableString(e,this,!1,!0)},e.prototype.getLocale=function(){var e=this.getSurvey();return e?e.getLocale():""},e.prototype.getLocalizationString=function(e){return u.surveyLocalization.getString(e,this.getLocale())},e.prototype.getLocalizationFormatString=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];var r=this.getLocalizationString(e);return r&&r.format?r.format.apply(r,t):""},e.prototype.createLocalizableString=function(e,t,n,r){var i=this;void 0===n&&(n=!1),void 0===r&&(r=!1);var s=new o.LocalizableString(t,n,e);r&&(s.localizationName=!0===r?e:r),s.onStrChanged=function(t,n){i.propertyValueChanged(e,t,n)},this.localizableStrings||(this.localizableStrings={}),this.localizableStrings[e]=s;var a=this.getPropertyByName(e);return s.disableLocalization=a&&!1===a.isLocalizable,s},e.prototype.getLocalizableString=function(e){return this.localizableStrings?this.localizableStrings[e]:null},e.prototype.getLocalizableStringText=function(t,n){void 0===n&&(n=""),e.collectDependency(this,t);var r=this.getLocalizableString(t);return r?r.text||n:""},e.prototype.setLocalizableStringText=function(e,t){var n=this.getLocalizableString(e);n&&n.text!=t&&(n.text=t)},e.prototype.addUsedLocales=function(e){if(this.localizableStrings)for(var t in this.localizableStrings)(o=this.getLocalizableString(t))&&this.AddLocStringToUsedLocales(o,e);if(this.arraysInfo)for(var t in this.arraysInfo){var n=this.getPropertyValue(t);if(n&&n.length)for(var r=0;r<n.length;r++){var o;(o=n[r])&&o.addUsedLocales&&o.addUsedLocales(e)}}},e.prototype.searchText=function(e,t){var n=[];this.getSearchableLocalizedStrings(n);for(var r=0;r<n.length;r++)n[r].setFindText(e)&&t.push({element:this,str:n[r]})},e.prototype.getSearchableLocalizedStrings=function(e){if(this.localizableStrings){var t=[];this.getSearchableLocKeys(t);for(var n=0;n<t.length;n++){var r=this.getLocalizableString(t[n]);r&&e.push(r)}}if(this.arraysInfo){var o=[];for(this.getSearchableItemValueKeys(o),n=0;n<o.length;n++){var i=this.getPropertyValue(o[n]);if(i)for(var s=0;s<i.length;s++)e.push(i[s].locText)}}},e.prototype.getSearchableLocKeys=function(e){},e.prototype.getSearchableItemValueKeys=function(e){},e.prototype.AddLocStringToUsedLocales=function(e,t){for(var n=e.getLocales(),r=0;r<n.length;r++)t.indexOf(n[r])<0&&t.push(n[r])},e.prototype.createItemValues=function(e){var t=this,n=this.createNewArray(e,(function(n){if(n.locOwner=t,n.ownerPropertyName=e,"function"==typeof n.getSurvey){var r=n.getSurvey();r&&"function"==typeof r.makeReactive&&r.makeReactive(n)}}));return this.arraysInfo[e].isItemValues=!0,n},e.prototype.notifyArrayChanged=function(e,t){e.onArrayChanged&&e.onArrayChanged(t)},e.prototype.createNewArrayCore=function(e){var t=null;return this.createArrayCoreHandler&&(t=this.createArrayCoreHandler(this.propertyHash,e)),t||(t=new Array,this.setPropertyValueCore(this.propertyHash,e,t)),t},e.prototype.ensureArray=function(e,t,n){if(void 0===t&&(t=null),void 0===n&&(n=null),!this.arraysInfo||!this.arraysInfo[e])return this.createNewArray(e,t,n)},e.prototype.createNewArray=function(e,t,n){void 0===t&&(t=null),void 0===n&&(n=null);var r=this.createNewArrayCore(e);this.arraysInfo||(this.arraysInfo={}),this.arraysInfo[e]={onPush:t,isItemValues:!1};var o=this;return r.push=function(n){var i=Object.getPrototypeOf(r).push.call(r,n);if(!o.isDisposedValue){t&&t(n,r.length-1);var s=new g(r.length-1,0,[n],[]);o.propertyValueChanged(e,r,r,s),o.notifyArrayChanged(r,s)}return i},r.shift=function(){var t=Object.getPrototypeOf(r).shift.call(r);if(!o.isDisposedValue&&t){n&&n(t);var i=new g(r.length-1,1,[],[]);o.propertyValueChanged(e,r,r,i),o.notifyArrayChanged(r,i)}return t},r.unshift=function(n){var i=Object.getPrototypeOf(r).unshift.call(r,n);if(!o.isDisposedValue){t&&t(n,r.length-1);var s=new g(0,0,[n],[]);o.propertyValueChanged(e,r,r,s),o.notifyArrayChanged(r,s)}return i},r.pop=function(){var t=Object.getPrototypeOf(r).pop.call(r);if(!o.isDisposedValue){n&&n(t);var i=new g(r.length-1,1,[],[]);o.propertyValueChanged(e,r,r,i),o.notifyArrayChanged(r,i)}return t},r.splice=function(i,s){for(var a,l=[],u=2;u<arguments.length;u++)l[u-2]=arguments[u];i||(i=0),s||(s=0);var c=(a=Object.getPrototypeOf(r).splice).call.apply(a,function(e,t){for(var n=0,r=t.length,o=e.length;n<r;n++,o++)e[o]=t[n];return e}([r,i,s],l));if(l||(l=[]),!o.isDisposedValue){if(n&&c)for(var p=0;p<c.length;p++)n(c[p]);if(t)for(p=0;p<l.length;p++)t(l[p],i+p);var d=new g(i,s,l,c);o.propertyValueChanged(e,r,r,d),o.notifyArrayChanged(r,d)}return c},r},e.prototype.getItemValueType=function(){},e.prototype.setArray=function(t,n,r,o,i){var s=[].concat(n);if(Object.getPrototypeOf(n).splice.call(n,0,n.length),r)for(var a=0;a<r.length;a++){var l=r[a];o&&e.createItemValue&&(l=e.createItemValue(l,this.getItemValueType())),Object.getPrototypeOf(n).push.call(n,l),i&&i(n[a])}var u=new g(0,s.length,n,s);this.propertyValueChanged(t,s,n,u),this.notifyArrayChanged(n,u)},e.prototype.isTwoValueEquals=function(e,t,n,r){return void 0===n&&(n=!1),void 0===r&&(r=!1),i.Helpers.isTwoValueEquals(e,t,!1,!n,r)},e.copyObject=function(e,t){for(var n in t){var r=t[n];"object"==typeof r&&(r={},this.copyObject(r,t[n])),e[n]=r}},e.prototype.copyCssClasses=function(t,n){n&&("string"==typeof n||n instanceof String?t.root=n:e.copyObject(t,n))},e.prototype.getValueInLowCase=function(e){return e&&"string"==typeof e?e.toLowerCase():e},e.prototype.getElementsInDesign=function(e){return void 0===e&&(e=!1),[]},e.currentDependencis=void 0,e}(),g=function(e,t,n,r){this.index=e,this.deleteCount=t,this.itemsToAdd=n,this.deletedItems=r},y=function(){function e(){}return Object.defineProperty(e.prototype,"isEmpty",{get:function(){return 0===this.length},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"length",{get:function(){return this.callbacks?this.callbacks.length:0},enumerable:!1,configurable:!0}),e.prototype.fireByCreatingOptions=function(e,t){if(this.callbacks)for(var n=0;n<this.callbacks.length;n++)if(this.callbacks[n](e,t()),!this.callbacks)return},e.prototype.fire=function(e,t){if(this.callbacks)for(var n=0;n<this.callbacks.length;n++)if(this.callbacks[n](e,t),!this.callbacks)return},e.prototype.clear=function(){this.callbacks=void 0},e.prototype.add=function(e){this.hasFunc(e)||(this.callbacks||(this.callbacks=new Array),this.callbacks.push(e),this.fireCallbackChanged())},e.prototype.remove=function(e){if(this.hasFunc(e)){var t=this.callbacks.indexOf(e,0);this.callbacks.splice(t,1),this.fireCallbackChanged()}},e.prototype.hasFunc=function(e){return null!=this.callbacks&&this.callbacks.indexOf(e,0)>-1},e.prototype.fireCallbackChanged=function(){this.onCallbacksChanged&&this.onCallbacksChanged()},e}(),v=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return p(t,e),t}(y)},"./src/calculatedValue.ts":function(e,t,n){"use strict";n.r(t),n.d(t,"CalculatedValue",(function(){return u}));var r,o=n("./src/helpers.ts"),i=n("./src/base.ts"),s=n("./src/conditions.ts"),a=n("./src/jsonobject.ts"),l=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),u=function(e){function t(t,n){void 0===t&&(t=null),void 0===n&&(n=null);var r=e.call(this)||this;return r.expressionIsRunning=!1,r.isCalculated=!1,t&&(r.name=t),n&&(r.expression=n),r}return l(t,e),t.prototype.setOwner=function(e){this.data=e,this.rerunExpression()},t.prototype.getType=function(){return"calculatedvalue"},t.prototype.getSurvey=function(e){return void 0===e&&(e=!1),this.data&&this.data.getSurvey?this.data.getSurvey():null},Object.defineProperty(t.prototype,"owner",{get:function(){return this.data},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"name",{get:function(){return this.getPropertyValue("name")||""},set:function(e){this.setPropertyValue("name",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"includeIntoResult",{get:function(){return this.getPropertyValue("includeIntoResult")},set:function(e){this.setPropertyValue("includeIntoResult",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"expression",{get:function(){return this.getPropertyValue("expression")||""},set:function(e){this.setPropertyValue("expression",e),this.rerunExpression()},enumerable:!1,configurable:!0}),t.prototype.locCalculation=function(){this.expressionIsRunning=!0},t.prototype.unlocCalculation=function(){this.expressionIsRunning=!1},t.prototype.resetCalculation=function(){this.isCalculated=!1},t.prototype.doCalculation=function(e,t,n){this.isCalculated||(this.runExpressionCore(e,t,n),this.isCalculated=!0)},t.prototype.runExpression=function(e,t){this.runExpressionCore(null,e,t)},Object.defineProperty(t.prototype,"value",{get:function(){if(this.data)return this.data.getVariable(this.name)},enumerable:!1,configurable:!0}),t.prototype.setValue=function(e){this.data&&this.data.setVariable(this.name,e)},Object.defineProperty(t.prototype,"canRunExpression",{get:function(){return!(!this.data||this.isLoadingFromJson||!this.expression||this.expressionIsRunning||!this.name)},enumerable:!1,configurable:!0}),t.prototype.rerunExpression=function(){this.canRunExpression&&this.runExpression(this.data.getFilteredValues(),this.data.getFilteredProperties())},t.prototype.runExpressionCore=function(e,t,n){this.canRunExpression&&(this.ensureExpression(t),this.locCalculation(),e&&this.runDependentExpressions(e,t,n),this.expressionRunner.run(t,n))},t.prototype.runDependentExpressions=function(e,t,n){var r=this.expressionRunner.getVariables();if(r)for(var o=0;o<e.length;o++){var i=e[o];i===this||r.indexOf(i.name)<0||(i.doCalculation(e,t,n),t[i.name]=i.value)}},t.prototype.ensureExpression=function(e){var t=this;this.expressionRunner||(this.expressionRunner=new s.ExpressionRunner(this.expression),this.expressionRunner.onRunComplete=function(e){o.Helpers.isTwoValueEquals(e,t.value,!1,!0,!1)||t.setValue(e),t.unlocCalculation()})},t}(i.Base);a.Serializer.addClass("calculatedvalue",[{name:"!name",isUnique:!0},"expression:expression","includeIntoResult:boolean"],(function(){return new u}),"base")},"./src/choicesRestful.ts":function(e,t,n){"use strict";n.r(t),n.d(t,"ChoicesRestful",(function(){return p})),n.d(t,"ChoicesRestfull",(function(){return d}));var r,o=n("./src/base.ts"),i=n("./src/itemvalue.ts"),s=n("./src/jsonobject.ts"),a=n("./src/error.ts"),l=n("./src/settings.ts"),u=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),c=function(){function e(){this.parser=new DOMParser}return e.prototype.assignValue=function(e,t,n){Array.isArray(e[t])?e[t].push(n):void 0!==e[t]?e[t]=[e[t]].concat(n):"object"==typeof n&&1===Object.keys(n).length&&Object.keys(n)[0]===t?e[t]=n[t]:e[t]=n},e.prototype.xml2Json=function(e,t){if(e.children&&e.children.length>0)for(var n=0;n<e.children.length;n++){var r=e.children[n],o={};this.xml2Json(r,o),this.assignValue(t,r.nodeName,o)}else this.assignValue(t,e.nodeName,e.textContent)},e.prototype.parseXmlString=function(e){var t=this.parser.parseFromString(e,"text/xml"),n={};return this.xml2Json(t,n),n},e}(),p=function(e){function t(){var t=e.call(this)||this;return t.lastObjHash="",t.isRunningValue=!1,t.processedUrl="",t.processedPath="",t.isUsingCacheFromUrl=void 0,t.error=null,t.createItemValue=function(e){return new i.ItemValue(e)},t}return u(t,e),Object.defineProperty(t,"EncodeParameters",{get:function(){return l.settings.web.encodeUrlParams},set:function(e){l.settings.web.encodeUrlParams=e},enumerable:!1,configurable:!0}),t.clearCache=function(){t.itemsResult={},t.sendingSameRequests={}},t.addSameRequest=function(e){if(!e.isUsingCache)return!1;var n=e.objHash,r=t.sendingSameRequests[n];return r?(r.push(e),e.isRunningValue=!0,!0):(t.sendingSameRequests[e.objHash]=[],!1)},t.unregisterSameRequests=function(e,n){if(e.isUsingCache){var r=t.sendingSameRequests[e.objHash];if(delete t.sendingSameRequests[e.objHash],r)for(var o=0;o<r.length;o++)r[o].isRunningValue=!1,r[o].getResultCallback&&r[o].getResultCallback(n)}},t.getCachedItemsResult=function(e){var n=e.objHash,r=t.itemsResult[n];return!!r&&(e.getResultCallback&&e.getResultCallback(r),!0)},t.prototype.getSurvey=function(e){return void 0===e&&(e=!1),this.owner?this.owner.survey:null},t.prototype.run=function(e){if(void 0===e&&(e=null),this.url&&this.getResultCallback){if(this.processedText(e),!this.processedUrl)return this.doEmptyResultCallback({}),void(this.lastObjHash=this.objHash);this.lastObjHash!==this.objHash&&(this.lastObjHash=this.objHash,this.error=null,this.useChangedItemsResults()||t.addSameRequest(this)||this.sendRequest())}},Object.defineProperty(t.prototype,"isUsingCache",{get:function(){return!0===this.isUsingCacheFromUrl||!1!==this.isUsingCacheFromUrl&&l.settings.web.cacheLoadedChoices},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isRunning",{get:function(){return this.getIsRunning()},enumerable:!1,configurable:!0}),t.prototype.getIsRunning=function(){return this.isRunningValue},Object.defineProperty(t.prototype,"isWaitingForParameters",{get:function(){return this.url&&!this.processedUrl},enumerable:!1,configurable:!0}),t.prototype.useChangedItemsResults=function(){return t.getCachedItemsResult(this)},t.prototype.doEmptyResultCallback=function(e){var t=[];this.updateResultCallback&&(t=this.updateResultCallback(t,e)),this.getResultCallback(t)},t.prototype.processedText=function(e){var n=this.url;if(n&&(n=n.replace(t.cacheText,"").replace(t.noCacheText,"")),e){var r=e.processTextEx(n,!1,l.settings.web.encodeUrlParams),o=e.processTextEx(this.path,!1,l.settings.web.encodeUrlParams);r.hasAllValuesOnLastRun&&o.hasAllValuesOnLastRun?(this.processedUrl=r.text,this.processedPath=o.text):(this.processedUrl="",this.processedPath="")}else this.processedUrl=n,this.processedPath=this.path;this.onProcessedUrlCallback&&this.onProcessedUrlCallback(this.processedUrl,this.processedPath)},t.prototype.parseResponse=function(e){var t;if(e&&"function"==typeof e.indexOf&&0===e.indexOf("<"))t=(new c).parseXmlString(e);else try{t=JSON.parse(e)}catch(n){t=(e||"").split("\n").map((function(e){return e.trim(" ")})).filter((function(e){return!!e}))}return t},t.prototype.sendRequest=function(){var e=new XMLHttpRequest;e.open("GET",this.processedUrl),e.setRequestHeader("Content-Type","application/x-www-form-urlencoded");var n=this,r=this.objHash;e.onload=function(){n.beforeLoadRequest(),200===e.status?n.onLoad(n.parseResponse(e.response),r):n.onError(e.statusText,e.responseText)};var o={request:e};t.onBeforeSendRequest&&t.onBeforeSendRequest(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||this.valueName||this.titleName||this.imageLinkName)},enumerable:!1,configurable:!0}),t.prototype.getCustomPropertiesNames=function(){for(var e=this.getCustomProperties(),t=new Array,n=0;n<e.length;n++)t.push(this.getCustomPropertyName(e[n].name));return t},t.prototype.getCustomPropertyName=function(e){return e+"Name"},t.prototype.getCustomProperties=function(){for(var e=s.Serializer.getProperties(this.itemValueType),t=[],n=0;n<e.length;n++)"value"!==e[n].name&&"text"!==e[n].name&&"visibleIf"!==e[n].name&&"enableIf"!==e[n].name&&t.push(e[n]);return t},t.prototype.setData=function(e){this.clear(),e.url&&(this.url=e.url),e.path&&(this.path=e.path),e.valueName&&(this.valueName=e.valueName),e.titleName&&(this.titleName=e.titleName),e.imageLinkName&&(this.imageLinkName=e.imageLinkName),void 0!==e.allowEmptyResponse&&(this.allowEmptyResponse=e.allowEmptyResponse),void 0!==e.attachOriginalItems&&(this.attachOriginalItems=e.attachOriginalItems);for(var t=this.getCustomPropertiesNames(),n=0;n<t.length;n++)e[t[n]]&&(this[t[n]]=e[t[n]])},t.prototype.getData=function(){if(this.isEmpty)return null;var e={};this.url&&(e.url=this.url),this.path&&(e.path=this.path),this.valueName&&(e.valueName=this.valueName),this.titleName&&(e.titleName=this.titleName),this.imageLinkName&&(e.imageLinkName=this.imageLinkName),this.allowEmptyResponse&&(e.allowEmptyResponse=this.allowEmptyResponse),this.attachOriginalItems&&(e.attachOriginalItems=this.attachOriginalItems);for(var t=this.getCustomPropertiesNames(),n=0;n<t.length;n++)this[t[n]]&&(e[t[n]]=this[t[n]]);return e},Object.defineProperty(t.prototype,"url",{get:function(){return this.getPropertyValue("url","")},set:function(e){this.setPropertyValue("url",e),this.isUsingCacheFromUrl=void 0,e&&(e.indexOf(t.cacheText)>-1?this.isUsingCacheFromUrl=!0:e.indexOf(t.noCacheText)>-1&&(this.isUsingCacheFromUrl=!1))},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"path",{get:function(){return this.getPropertyValue("path","")},set:function(e){this.setPropertyValue("path",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"valueName",{get:function(){return this.getPropertyValue("valueName","")},set:function(e){this.setPropertyValue("valueName",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"titleName",{get:function(){return this.getPropertyValue("titleName","")},set:function(e){this.setPropertyValue("titleName",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"imageLinkName",{get:function(){return this.getPropertyValue("imageLinkName","")},set:function(e){this.setPropertyValue("imageLinkName",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"allowEmptyResponse",{get:function(){return this.getPropertyValue("allowEmptyResponse")},set:function(e){this.setPropertyValue("allowEmptyResponse",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"attachOriginalItems",{get:function(){return this.getPropertyValue("attachOriginalItems")},set:function(e){this.setPropertyValue("attachOriginalItems",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"itemValueType",{get:function(){if(!this.owner)return"itemvalue";var e=s.Serializer.findProperty(this.owner.getType(),"choices");return e?"itemvalue[]"==e.type?"itemvalue":e.type:"itemvalue"},enumerable:!1,configurable:!0}),t.prototype.clear=function(){this.url="",this.path="",this.valueName="",this.titleName="",this.imageLinkName="";for(var e=this.getCustomPropertiesNames(),t=0;t<e.length;t++)this[e[t]]&&(this[e[t]]="")},t.prototype.beforeSendRequest=function(){this.isRunningValue=!0,this.beforeSendRequestCallback&&this.beforeSendRequestCallback()},t.prototype.beforeLoadRequest=function(){this.isRunningValue=!1},t.prototype.onLoad=function(e,n){void 0===n&&(n=null),n||(n=this.objHash);var r=new Array,o=this.getResultAfterPath(e);if(o&&o.length)for(var i=0;i<o.length;i++){var s=o[i];if(s){var l=this.getItemValueCallback?this.getItemValueCallback(s):this.getValue(s),u=this.createItemValue(l);this.setTitle(u,s),this.setCustomProperties(u,s),this.attachOriginalItems&&(u.originalItem=s);var c=this.getImageLink(s);c&&(u.imageLink=c),r.push(u)}}else this.allowEmptyResponse||(this.error=new a.WebRequestEmptyError(null,this.owner));this.updateResultCallback&&(r=this.updateResultCallback(r,e)),this.isUsingCache&&(t.itemsResult[n]=r),this.callResultCallback(r,n),t.unregisterSameRequests(this,r)},t.prototype.callResultCallback=function(e,t){t==this.objHash&&this.getResultCallback(e)},t.prototype.setCustomProperties=function(e,t){for(var n=this.getCustomProperties(),r=0;r<n.length;r++){var o=n[r],i=this.getValueCore(t,this.getPropertyBinding(o.name));this.isValueEmpty(i)||(e[o.name]=i)}},t.prototype.getPropertyBinding=function(e){return this[this.getCustomPropertyName(e)]?this[this.getCustomPropertyName(e)]:this[e]?this[e]:e},t.prototype.onError=function(e,n){this.error=new a.WebRequestError(e,n,this.owner),this.doEmptyResultCallback(n),t.unregisterSameRequests(this,[])},t.prototype.getResultAfterPath=function(e){if(!e)return e;if(!this.processedPath)return e;for(var t=this.getPathes(),n=0;n<t.length;n++)if(!(e=e[t[n]]))return null;return e},t.prototype.getPathes=function(){var e=[];return 0==(e=this.processedPath.indexOf(";")>-1?this.path.split(";"):this.processedPath.split(",")).length&&e.push(this.processedPath),e},t.prototype.getValue=function(e){return e?this.valueName?this.getValueCore(e,this.valueName):e instanceof Object?Object.keys(e).length<1?null:e[Object.keys(e)[0]]:e:null},t.prototype.setTitle=function(e,t){var n=this.titleName?this.titleName:"title",r=this.getValueCore(t,n);r&&("string"==typeof r?e.text=r:e.locText.setJson(r))},t.prototype.getImageLink=function(e){var t=this.imageLinkName?this.imageLinkName:"imageLink";return this.getValueCore(e,t)},t.prototype.getValueCore=function(e,t){if(!e)return null;if(t.indexOf(".")<0)return e[t];for(var n=t.split("."),r=0;r<n.length;r++)if(!(e=e[n[r]]))return null;return e},Object.defineProperty(t.prototype,"objHash",{get:function(){return this.processedUrl+";"+this.processedPath+";"+this.valueName+";"+this.titleName+";"+this.imageLinkName},enumerable:!1,configurable:!0}),t.cacheText="{CACHE}",t.noCacheText="{NOCACHE}",t.itemsResult={},t.sendingSameRequests={},t}(o.Base),d=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return u(t,e),Object.defineProperty(t,"EncodeParameters",{get:function(){return p.EncodeParameters},set:function(e){p.EncodeParameters=e},enumerable:!1,configurable:!0}),t.clearCache=function(){p.clearCache()},Object.defineProperty(t,"onBeforeSendRequest",{get:function(){return p.onBeforeSendRequest},set:function(e){p.onBeforeSendRequest=e},enumerable:!1,configurable:!0}),t}(p);s.Serializer.addClass("choicesByUrl",["url","path","valueName","titleName",{name:"imageLinkName",visibleIf:function(e){return!!e&&!!e.owner&&"imagepicker"==e.owner.getType()}},{name:"allowEmptyResponse:boolean"},{name:"attachOriginalItems:boolean",visible:!1}],(function(){return new p}))},"./src/conditionProcessValue.ts":function(e,t,n){"use strict";n.r(t),n.d(t,"ProcessValue",(function(){return i}));var r=n("./src/helpers.ts"),o="@survey",i=function(){function e(){this.values=null,this.properties=null}return e.prototype.getFirstName=function(e,t){if(void 0===t&&(t=null),!e)return e;var n="";if(t&&(n=this.getFirstPropertyName(e,t)))return n;for(var r=0;r<e.length;r++){var o=e[r];if("."==o||"["==o)break;n+=o}return n},e.prototype.hasValue=function(e,t){return void 0===t&&(t=null),t||(t=this.values),this.getValueCore(e,t).hasValue},e.prototype.getValue=function(e,t){return void 0===t&&(t=null),t||(t=this.values),this.getValueCore(e,t).value},e.prototype.setValue=function(e,t,n){if(t){var r=this.getNonNestedObject(e,t,!0);r&&(e=r.value,t=r.text,e&&t&&(e[t]=n))}},e.prototype.getValueInfo=function(e){if(e.path)return e.value=this.getValueFromPath(e.path,this.values),e.hasValue=null!==e.value&&!r.Helpers.isValueEmpty(e.value),void(!e.hasValue&&e.path.length>1&&"length"==e.path[e.path.length-1]&&(e.hasValue=!0,e.value=0));var t=this.getValueCore(e.name,this.values);e.value=t.value,e.hasValue=t.hasValue,e.path=t.hasValue?t.path:null,e.sctrictCompare=t.sctrictCompare},e.prototype.getValueFromPath=function(e,t){if(2===e.length&&e[0]===o)return this.getValueFromSurvey(e[1]);for(var n=0;t&&n<e.length;){var i=e[n];if(r.Helpers.isNumber(i)&&Array.isArray(t)&&i>=t.length)return null;t=t[i],n++}return t},e.prototype.getValueCore=function(e,t){var n=this.getQuestionDirectly(e);if(n)return{hasValue:!0,value:n.value,path:[e],sctrictCompare:n.requireStrictCompare};var r=this.getValueFromValues(e,t);if(e&&!r.hasValue){var i=this.getValueFromSurvey(e);void 0!==i&&(r.hasValue=!0,r.value=i,r.path=[o,e])}return r},e.prototype.getQuestionDirectly=function(e){if(this.properties&&this.properties.survey)return this.properties.survey.getQuestionByValueName(e)},e.prototype.getValueFromSurvey=function(e){if(this.properties&&this.properties.survey)return this.properties.survey.getBuiltInVariableValue(e.toLocaleLowerCase())},e.prototype.getValueFromValues=function(e,t){var n={hasValue:!1,value:null,path:null},o=t;if(!o&&0!==o&&!1!==o)return n;e&&e.lastIndexOf(".length")>-1&&e.lastIndexOf(".length")===e.length-7&&(n.value=0,n.hasValue=!0);var i=this.getNonNestedObject(o,e,!1);return i?(n.path=i.path,n.value=i.text?this.getObjectValue(i.value,i.text):i.value,n.hasValue=!r.Helpers.isValueEmpty(n.value),n):n},e.prototype.getNonNestedObject=function(e,t,n){for(var o=this.getFirstPropertyName(t,e,n),i=o?[o]:null;t!=o&&e;){if("["==t[0]){var s=this.getObjInArray(e,t);if(!s)return null;e=s.value,t=s.text,i.push(s.index)}else{if(!o&&t==this.getFirstName(t))return{value:e,text:t,path:i};if(e=this.getObjectValue(e,o),r.Helpers.isValueEmpty(e)&&!n)return null;t=t.substring(o.length)}t&&"."==t[0]&&(t=t.substring(1)),(o=this.getFirstPropertyName(t,e,n))&&i.push(o)}return{value:e,text:t,path:i}},e.prototype.getObjInArray=function(e,t){if(!Array.isArray(e))return null;for(var n=1,r="";n<t.length&&"]"!=t[n];)r+=t[n],n++;return t=n<t.length?t.substring(n+1):"",(n=this.getIntValue(r))<0||n>=e.length?null:{value:e[n],text:t,index:n}},e.prototype.getFirstPropertyName=function(e,t,n){if(void 0===n&&(n=!1),!e)return e;if(t||(t={}),t.hasOwnProperty(e))return e;var r=e.toLowerCase(),o=r[0],i=o.toUpperCase();for(var s in t){var a=s[0];if(a===i||a===o){var l=s.toLowerCase();if(l==r)return s;if(r.length<=l.length)continue;var u=r[l.length];if("."!=u&&"["!=u)continue;if(l==r.substring(0,l.length))return s}}if(n&&"["!==e[0]){var c=e.indexOf(".");return c>-1&&(t[e=e.substring(0,c)]={}),e}return""},e.prototype.getObjectValue=function(e,t){return t?e[t]:null},e.prototype.getIntValue=function(e){return"0"==e||(0|e)>0&&e%1==0?Number(e):-1},e}()},"./src/conditions.ts":function(e,t,n){"use strict";n.r(t),n.d(t,"ExpressionExecutor",(function(){return a})),n.d(t,"ExpressionRunnerBase",(function(){return l})),n.d(t,"ConditionRunner",(function(){return u})),n.d(t,"ExpressionRunner",(function(){return c}));var r,o=n("./src/conditionProcessValue.ts"),i=n("./src/conditionsParser.ts"),s=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),a=function(){function e(e){this.processValue=new o.ProcessValue,this.parser=new i.ConditionsParser,this.isAsyncValue=!1,this.hasFunctionValue=!1,this.setExpression(e)}return Object.defineProperty(e.prototype,"expression",{get:function(){return this.expressionValue},enumerable:!1,configurable:!0}),e.prototype.setExpression=function(e){this.expression!==e&&(this.expressionValue=e,this.operand=this.parser.parseExpression(e),this.hasFunctionValue=!!this.canRun()&&this.operand.hasFunction(),this.isAsyncValue=!!this.hasFunction()&&this.operand.hasAsyncFunction())},e.prototype.getVariables=function(){if(!this.operand)return[];var e=[];return this.operand.setVariables(e),e},e.prototype.hasFunction=function(){return this.hasFunctionValue},Object.defineProperty(e.prototype,"isAsync",{get:function(){return this.isAsyncValue},enumerable:!1,configurable:!0}),e.prototype.canRun=function(){return!!this.operand},e.prototype.run=function(e,t){var n=this;if(void 0===t&&(t=null),!this.operand)return null;if(this.processValue.values=e,this.processValue.properties=t,!this.isAsync)return this.runValues();this.asyncFuncList=[],this.operand.addToAsyncList(this.asyncFuncList);for(var r=0;r<this.asyncFuncList.length;r++)this.asyncFuncList[r].onAsyncReady=function(){n.doAsyncFunctionReady()};for(r=0;r<this.asyncFuncList.length;r++)this.asyncFuncList[r].evaluateAsync(this.processValue);return!1},e.prototype.doAsyncFunctionReady=function(){for(var e=0;e<this.asyncFuncList.length;e++)if(!this.asyncFuncList[e].isReady)return;this.runValues()},e.prototype.runValues=function(){var e=this.operand.evaluate(this.processValue);return this.onComplete&&this.onComplete(e),e},e.createExpressionExecutor=function(t){return new e(t)},e}(),l=function(){function e(e){this.expression=e}return Object.defineProperty(e.prototype,"expression",{get:function(){return this.expressionExecutor?this.expressionExecutor.expression:""},set:function(e){var t=this;this.expressionExecutor&&e===this.expression||(this.expressionExecutor=a.createExpressionExecutor(e),this.expressionExecutor.onComplete=function(e){t.doOnComplete(e)})},enumerable:!1,configurable:!0}),e.prototype.getVariables=function(){return this.expressionExecutor.getVariables()},e.prototype.hasFunction=function(){return this.expressionExecutor.hasFunction()},Object.defineProperty(e.prototype,"isAsync",{get:function(){return this.expressionExecutor.isAsync},enumerable:!1,configurable:!0}),e.prototype.canRun=function(){return this.expressionExecutor.canRun()},e.prototype.runCore=function(e,t){return void 0===t&&(t=null),this.expressionExecutor.run(e,t)},e.prototype.doOnComplete=function(e){},e}(),u=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return s(t,e),t.prototype.run=function(e,t){return void 0===t&&(t=null),1==this.runCore(e,t)},t.prototype.doOnComplete=function(e){this.onRunComplete&&this.onRunComplete(1==e)},t}(l),c=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return s(t,e),t.prototype.run=function(e,t){return void 0===t&&(t=null),this.runCore(e,t)},t.prototype.doOnComplete=function(e){this.onRunComplete&&this.onRunComplete(e)},t}(l)},"./src/conditionsParser.ts":function(e,t,n){"use strict";n.r(t),n.d(t,"ConditionsParserError",(function(){return o})),n.d(t,"ConditionsParser",(function(){return i}));var r=n("./src/expressions/expressionParser.ts"),o=function(e,t){this.at=e,this.code=t},i=function(){function e(){}return e.prototype.patchExpression=function(e){return e.replace(/=>/g,">=").replace(/=</g,"<=").replace(/<>/g,"!=").replace(/equals/g,"equal ").replace(/notequals/g,"notequal ")},e.prototype.createCondition=function(e){return this.parseExpression(e)},e.prototype.parseExpression=function(t){try{var n=e.parserCache[t];return void 0===n&&((n=Object(r.parse)(this.patchExpression(t))).hasAsyncFunction()||(e.parserCache[t]=n)),n}catch(e){e instanceof r.SyntaxError&&(this.conditionError=new o(e.location.start.offset,e.message))}},Object.defineProperty(e.prototype,"error",{get:function(){return this.conditionError},enumerable:!1,configurable:!0}),e.parserCache={},e}()},"./src/console-warnings.ts":function(e,t,n){"use strict";n.r(t),n.d(t,"ConsoleWarnings",(function(){return r}));var r=function(){function e(){}return e.disposedObjectChangedProperty=function(t,n){e.warn('An attempt to set a property "'+t+'" of a disposed object "'+n+'"')},e.inCorrectQuestionValue=function(t,n){var r=JSON.stringify(n,null,3);e.warn("An attempt to assign an incorrect value"+r+' to the following question: "'+t+'"')},e.warn=function(e){console.warn(e)},e}()},"./src/defaultCss/cssmodern.ts":function(e,t,n){"use strict";n.r(t),n.d(t,"modernCss",(function(){return o}));var r=n("./src/defaultCss/defaultV2Css.ts"),o={root:"sv-root-modern",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-components-column sv-components-column--expandable sv-body",bodyEmpty:"sv-body sv-body--empty",footer:"sv-footer sv-body__footer sv-clearfix",title:"",description:"",logo:"sv-logo",logoImage:"sv-logo__image",headerText:"sv-header__text",navigationButton:"sv-btn sv-btn--navigation",completedPage:"sv-completedpage",navigation:{complete:"sv-footer__complete-btn",prev:"sv-footer__prev-btn",next:"sv-footer__next-btn",start:"sv-footer__start-btn",preview:"sv-footer__preview-btn",edit:"sv-footer__edit-btn"},panel:{title:"sv-title sv-panel__title",titleExpandable:"sv-panel__title--expandable",titleExpanded:"sv-panel__title--expanded",titleCollapsed:"sv-panel__title--collapsed",titleOnError:"sv-panel__title--error",description:"sv-description sv-panel__description",container:"sv-panel sv-row__panel",content:"sv-panel__content",icon:"sv-panel__icon",iconExpanded:"sv-panel__icon--expanded",footer:"sv-panel__footer",requiredText:"sv-panel__required-text",number:"sv-question__num"},paneldynamic:{root:"sv-paneldynamic",navigation:"sv-paneldynamic__navigation",title:"sv-title sv-question__title",button:"sv-btn",buttonRemove:"sv-paneldynamic__remove-btn",buttonRemoveRight:"sv-paneldynamic__remove-btn--right",buttonAdd:"sv-paneldynamic__add-btn",progressTop:"sv-paneldynamic__progress sv-paneldynamic__progress--top",progressBottom:"sv-paneldynamic__progress sv-paneldynamic__progress--bottom",buttonPrev:"sv-paneldynamic__prev-btn",buttonNext:"sv-paneldynamic__next-btn",buttonPrevDisabled:"sv-paneldynamic__prev-btn--disabled",buttonNextDisabled:"sv-paneldynamic__next-btn--disabled",progressContainer:"sv-paneldynamic__progress-container",progress:"sv-progress",progressBar:"sv-progress__bar",progressText:"sv-paneldynamic__progress-text",separator:"sv-paneldynamic__separator",panelWrapper:"sv-paneldynamic__panel-wrapper",panelWrapperInRow:"sv-paneldynamic__panel-wrapper--in-row",progressBtnIcon:"icon-progressbutton",footer:""},progress:"sv-progress sv-body__progress",progressBar:"sv-progress__bar",progressText:"sv-progress__text",progressTextInBar:"sv-hidden",progressButtonsContainerCenter:"sv_progress-buttons__container-center",progressButtonsContainer:"sv_progress-buttons__container",progressButtonsImageButtonLeft:"sv_progress-buttons__image-button-left",progressButtonsImageButtonRight:"sv_progress-buttons__image-button-right",progressButtonsImageButtonHidden:"sv_progress-buttons__image-button--hidden",progressButtonsListContainer:"sv_progress-buttons__list-container",progressButtonsList:"sv_progress-buttons__list",progressButtonsListElementPassed:"sv_progress-buttons__list-element--passed",progressButtonsListElementCurrent:"sv_progress-buttons__list-element--current",progressButtonsListElementNonClickable:"sv_progress-buttons__list-element--nonclickable",progressButtonsPageTitle:"sv_progress-buttons__page-title",progressButtonsPageDescription:"sv_progress-buttons__page-description",page:{root:"sv-page sv-body__page",title:"sv-title sv-page__title",description:"sv-description sv-page__description"},pageTitle:"sv-title sv-page__title",pageDescription:"sv-description sv-page__description",row:"sv-row sv-clearfix",question:{mainRoot:"sv-question sv-row__question",flowRoot:"sv-question sv-row__question sv-row__question--flow",asCell:"sv-table__cell",header:"sv-question__header",headerLeft:"sv-question__header--location--left",headerTop:"sv-question__header--location--top",headerBottom:"sv-question__header--location--bottom",content:"sv-question__content",contentLeft:"sv-question__content--left",titleLeftRoot:"",answered:"sv-question--answered",titleOnAnswer:"sv-question__title--answer",titleOnError:"sv-question__title--error",title:"sv-title sv-question__title",titleExpandable:"sv-question__title--expandable",titleExpanded:"sv-question__title--expanded",titleCollapsed:"sv-question__title--collapsed",icon:"sv-question__icon",iconExpanded:"sv-question__icon--expanded",requiredText:"sv-question__required-text",number:"sv-question__num",description:"sv-description sv-question__description",descriptionUnderInput:"sv-description sv-question__description",comment:"sv-comment",required:"sv-question--required",titleRequired:"sv-question__title--required",indent:20,footer:"sv-question__footer",formGroup:"sv-question__form-group",hasError:"",disabled:"sv-question--disabled"},image:{root:"sv-image",image:"sv_image_image"},error:{root:"sv-question__erbox",icon:"",item:"",locationTop:"sv-question__erbox--location--top",locationBottom:"sv-question__erbox--location--bottom"},checkbox:{root:"sv-selectbase",item:"sv-item sv-checkbox sv-selectbase__item",itemSelectAll:"sv-checkbox--selectall",itemNone:"sv-checkbox--none",itemDisabled:"sv-item--disabled sv-checkbox--disabled",itemChecked:"sv-checkbox--checked",itemHover:"sv-checkbox--allowhover",itemInline:"sv-selectbase__item--inline",label:"sv-selectbase__label",labelChecked:"",itemControl:"sv-visuallyhidden sv-item__control",itemDecorator:"sv-item__svg sv-checkbox__svg",itemSvgIconId:"#icon-moderncheck",controlLabel:"sv-item__control-label",materialDecorator:"sv-item__decorator sv-selectbase__decorator sv-checkbox__decorator",other:"sv-comment sv-question__other",column:"sv-selectbase__column"},ranking:{root:"sv-ranking",rootMobileMod:"sv-ranking--mobile",rootDragMod:"sv-ranking--drag",rootDisabled:"sv-ranking--disabled",rootDragHandleAreaIcon:"sv-ranking--drag-handle-area-icon",rootSelectToRankMod:"sv-ranking--select-to-rank",rootSelectToRankAlignVertical:"sv-ranking--select-to-rank-vertical",rootSelectToRankAlignHorizontal:"sv-ranking--select-to-rank-horizontal",item:"sv-ranking-item",itemContent:"sv-ranking-item__content",itemIndex:"sv-ranking-item__index",itemIndexEmptyMode:"sv-ranking-item__index--empty",controlLabel:"sv-ranking-item__text",itemGhostNode:"sv-ranking-item__ghost",itemIconContainer:"sv-ranking-item__icon-container",itemIcon:"sv-ranking-item__icon",itemIconHoverMod:"sv-ranking-item__icon--hover",itemIconFocusMod:"sv-ranking-item__icon--focus",itemGhostMod:"sv-ranking-item--ghost",itemDragMod:"sv-ranking-item--drag",container:"sv-ranking__container",containerEmptyMode:"sv-ranking__container--empty",containerFromMode:"sv-ranking__container--from",containerToMode:"sv-ranking__container--to",containerPlaceholder:"sv-ranking__container-placeholder",containersDivider:"sv-ranking__containers-divider"},radiogroup:{root:"sv-selectbase",item:"sv-item sv-radio sv-selectbase__item",itemInline:"sv-selectbase__item--inline",label:"sv-selectbase__label",labelChecked:"",itemDisabled:"sv-item--disabled sv-radio--disabled",itemChecked:"sv-radio--checked",itemHover:"sv-radio--allowhover",itemControl:"sv-visuallyhidden sv-item__control",itemDecorator:"sv-item__svg sv-radio__svg",itemSvgIconId:"#icon-modernradio",controlLabel:"sv-item__control-label",materialDecorator:"sv-item__decorator sv-selectbase__decorator sv-radio__decorator",other:"sv-comment sv-question__other",clearButton:"sv-btn sv-selectbase__clear-btn",column:"sv-selectbase__column"},buttongroup:{root:"sv-button-group",item:"sv-button-group__item",itemIcon:"sv-button-group__item-icon",itemDecorator:"sv-button-group__item-decorator",itemCaption:"sv-button-group__item-caption",itemSelected:"sv-button-group__item--selected",itemHover:"sv-button-group__item--hover",itemDisabled:"sv-button-group__item--disabled",itemControl:"sv-visuallyhidden"},boolean:{root:"sv_qbln",rootRadio:"sv_qbln",small:"sv-row__question--small",item:"sv-boolean sv-item",control:"sv-visuallyhidden",itemChecked:"sv-boolean--checked",itemIndeterminate:"sv-boolean--indeterminate",itemDisabled:"sv-item--disabled sv-boolean--disabled",switch:"sv-boolean__switch",slider:"sv-boolean__slider",label:"sv-boolean__label",disabledLabel:"sv-boolean__label--disabled",sliderGhost:"sv-boolean__thumb-ghost",rootCheckbox:"sv_qbln",checkboxItem:"sv-boolean sv-item",checkboxItemChecked:"sv-boolean--checked",controlCheckbox:"sv-visuallyhidden",checkboxControlLabel:"sv-boolean__label",checkboxItemIndeterminate:"sv-boolean--indeterminate",checkboxItemDisabled:"sv-item--disabled sv-boolean--disabled",checkboxMaterialDecorator:"sv-item__decorator sv-boolean__decorator ",checkboxItemDecorator:"sv-item__svg  sv-boolean__svg",indeterminatePath:"sv-boolean__indeterminate-path",svgIconCheckedId:"#icon-modernbooleancheckchecked",svgIconUncheckedId:"#icon-modernbooleancheckunchecked",svgIconIndId:"#icon-modernbooleancheckind"},text:{root:"sv-text",small:"sv-row__question--small",remainingCharacterCounter:"sv-remaining-character-counter",onError:"sv-text--error"},multipletext:{root:"sv-multipletext",item:"sv-multipletext__item",itemLabel:"sv-multipletext__item-label",itemTitle:"sv-multipletext__item-title",row:"sv-multipletext__row",cell:"sv-multipletext__cell"},dropdown:{root:"",popup:"sv-dropdown-popup",small:"sv-row__question--small",control:"sv-dropdown",selectWrapper:"",other:"sv-comment sv-question__other",onError:"sv-dropdown--error",cleanButton:"sv-dropdown_clean-button",cleanButtonSvg:"sv-dropdown_clean-button-svg",cleanButtonIconId:"icon-clear_16x16",filterStringInput:"sv-dropdown__filter-string-input",controlValue:"sv-dropdown__value",controlInputFieldComponent:"sv_dropdown_control__input-field-component",hintPrefix:"sv-dropdown__hint-prefix",hintSuffix:"sv-dropdown__hint-suffix"},tagbox:{root:"",popup:"sv-dropdown-popup",small:"sv-row__question--small",selectWrapper:"sv_select_wrapper sv-tagbox_wrapper",other:"sv-input sv-comment sv-selectbase__other",cleanButton:"sv-tagbox_clean-button sv-dropdown_clean-button",cleanButtonSvg:"sv-tagbox_clean-button-svg sv-dropdown_clean-button-svg",cleanButtonIconId:"icon-clear_16x16",cleanItemButton:"sv-tagbox__item_clean-button",cleanItemButtonSvg:"sv-tagbox__item_clean-button-svg",cleanItemButtonIconId:"icon-clear_16x16",control:"sv-input sv-tagbox sv-dropdown",controlValue:"sv-tagbox__value sv-dropdown__value",controlEmpty:"sv-dropdown--empty sv-tagbox--empty",placeholderInput:"sv-tagbox__placeholder",filterStringInput:"sv-tagbox__filter-string-input sv-dropdown__filter-string-input"},imagepicker:{root:"sv-selectbase sv-imagepicker",column:"sv-selectbase__column",item:"sv-imagepicker__item",itemInline:"sv-imagepicker__item--inline",itemChecked:"sv-imagepicker__item--checked",itemDisabled:"sv-imagepicker__item--disabled",itemHover:"sv-imagepicker__item--allowhover",label:"sv-imagepicker__label",itemControl:"sv-imagepicker__control sv-visuallyhidden",image:"sv-imagepicker__image",itemText:"sv-imagepicker__text",clearButton:"sv-btn",other:"sv-comment sv-question__other"},matrix:{tableWrapper:"sv-matrix",root:"sv-table sv-matrix-root",rowError:"sv-matrix__row--error",cell:"sv-table__cell sv-matrix__cell",headerCell:"sv-table__cell sv-table__cell--header",label:"sv-item sv-radio sv-matrix__label",itemValue:"sv-visuallyhidden sv-item__control sv-radio__control",itemChecked:"sv-radio--checked",itemDisabled:"sv-item--disabled sv-radio--disabled",itemHover:"sv-radio--allowhover",materialDecorator:"sv-item__decorator sv-radio__decorator",itemDecorator:"sv-item__svg sv-radio__svg",cellText:"sv-matrix__text",cellTextSelected:"sv-matrix__text--checked",cellTextDisabled:"sv-matrix__text--disabled",cellResponsiveTitle:"sv-hidden",itemSvgIconId:"#icon-modernradio"},matrixdropdown:{root:"sv-table sv-matrixdropdown",cell:"sv-table__cell",headerCell:"sv-table__cell sv-table__cell--header",row:"sv-table__row",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",headerCell:"sv-table__cell sv-table__cell--header",button:"sv-btn",buttonAdd:"sv-matrixdynamic__add-btn",buttonRemove:"sv-matrixdynamic__remove-btn",iconAdd:"",iconRemove:"",iconDrag:"sv-matrixdynamic__drag-icon",row:"sv-table__row",detailRow:"sv-table__row--detail",detailCell:"sv-table__cell--detail",choiceCell:"sv-table__cell--choice",detailButton:"sv-table__cell--detail-button",detailButtonExpanded:"sv-table__cell--detail-button--expanded",detailIcon:"sv-detail-panel__icon",detailIconExpanded:"sv-detail-panel__icon--expanded",detailPanelCell:"sv-table__cell--detail-panel",actionsCell:"sv-table__cell sv-table__cell--actions",emptyRowsSection:"sv-table__empty--rows--section",emptyRowsText:"sv-table__empty--rows--text",emptyRowsButton:"",ghostRow:"sv-matrix-row--drag-drop-ghost-mod"},rating:{root:"sv-rating",item:"sv-rating__item",selected:"sv-rating__item--selected",minText:"sv-rating__min-text",itemText:"sv-rating__item-text",maxText:"sv-rating__max-text",itemDisabled:"sv-rating--disabled",filterStringInput:"sv-dropdown__filter-string-input",control:"sv-dropdown",cleanButton:"sv-dropdown_clean-button",cleanButtonSvg:"sv-dropdown_clean-button-svg",cleanButtonIconId:"icon-clear_16x16",controlValue:"sv-dropdown__value",controlInputFieldComponent:"sv_dropdown_control__input-field-component",itemSmiley:"sv-rating__item-smiley",itemStar:"sv-rating__item-star",itemSmileySelected:"sv-rating__item-smiley--selected",itemStarSelected:"sv-rating__item-star--selected"},comment:{root:"sv-comment",small:"sv-row__question--small",remainingCharacterCounter:"sv-remaining-character-counter"},expression:"",file:{root:"sv-file",other:"sv-comment sv-question__other",placeholderInput:"sv-visuallyhidden",preview:"sv-file__preview",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",clearButton:"sjs_sp_clear"},saveData:{root:"sv-save-data_root",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",body:"sv_window_content",header:{root:"sv_window_title",title:"",button:"",buttonExpanded:"",buttonCollapsed:""}},variables:{mobileWidth:"--sv-mobile-width",themeMark:"--sv-modern-mark"}};r.surveyCss.modern=o},"./src/defaultCss/cssstandard.ts":function(e,t,n){"use strict";n.r(t),n.d(t,"defaultStandardCss",(function(){return o}));var r=n("./src/defaultCss/defaultV2Css.ts"),o={root:"sv_main sv_default_css",container:"sv_container",header:"sv_header",bodyContainer:"sv-components-row",body:"sv-components-column sv-components-column--expandable sv_body",bodyEmpty:"sv_body sv_body_empty",footer:"sv_nav",title:"",description:"",logo:"sv_logo",logoImage:"sv_logo__image",headerText:"sv_header__text",navigationButton:"sv_nav_btn",completedPage:"sv_completed_page",navigation:{complete:"sv_complete_btn",prev:"sv_prev_btn",next:"sv_next_btn",start:"sv_start_btn",preview:"sv_preview_btn",edit:"sv_edit_btn"},progress:"sv_progress",progressBar:"sv_progress_bar",progressTextInBar:"sv-hidden",progressButtonsContainerCenter:"sv_progress-buttons__container-center",progressButtonsContainer:"sv_progress-buttons__container",progressButtonsImageButtonLeft:"sv_progress-buttons__image-button-left",progressButtonsImageButtonRight:"sv_progress-buttons__image-button-right",progressButtonsImageButtonHidden:"sv_progress-buttons__image-button--hidden",progressButtonsListContainer:"sv_progress-buttons__list-container",progressButtonsList:"sv_progress-buttons__list",progressButtonsListElementPassed:"sv_progress-buttons__list-element--passed",progressButtonsListElementCurrent:"sv_progress-buttons__list-element--current",progressButtonsListElementNonClickable:"sv_progress-buttons__list-element--nonclickable",progressButtonsPageTitle:"sv_progress-buttons__page-title",progressButtonsPageDescription:"sv_progress-buttons__page-description",page:{root:"sv_p_root",title:"sv_page_title",description:""},pageTitle:"sv_page_title",pageDescription:"",row:"sv_row",question:{mainRoot:"sv_q sv_qstn",flowRoot:"sv_q_flow sv_qstn",header:"",headerLeft:"title-left",content:"",contentLeft:"content-left",titleLeftRoot:"sv_qstn_left",requiredText:"sv_q_required_text",title:"sv_q_title",titleExpandable:"sv_q_title_expandable",titleExpanded:"sv_q_title_expanded",titleCollapsed:"sv_q_title_collapsed",number:"sv_q_num",description:"sv_q_description",comment:"",required:"",titleRequired:"",hasError:"",indent:20,footer:"sv_q_footer",formGroup:"form-group",asCell:"sv_matrix_cell",icon:"sv_question_icon",iconExpanded:"sv_expanded",disabled:"sv_q--disabled"},panel:{title:"sv_p_title",titleExpandable:"sv_p_title_expandable",titleExpanded:"sv_p_title_expanded",titleCollapsed:"sv_p_title_collapsed",titleOnError:"",icon:"sv_panel_icon",iconExpanded:"sv_expanded",description:"sv_p_description",container:"sv_p_container",footer:"sv_p_footer",number:"sv_q_num",requiredText:"sv_q_required_text"},error:{root:"sv_q_erbox",icon:"",item:"",locationTop:"sv_qstn_error_top",locationBottom:"sv_qstn_error_bottom"},boolean:{root:"sv_qcbc sv_qbln",rootRadio:"sv_qcbc sv_qbln",item:"sv-boolean",control:"sv-visuallyhidden",itemChecked:"sv-boolean--checked checked",itemIndeterminate:"sv-boolean--indeterminate",itemDisabled:"sv-boolean--disabled",switch:"sv-boolean__switch",slider:"sv-boolean__slider",label:"sv-boolean__label ",disabledLabel:"sv-boolean__label--disabled",sliderGhost:"sv-boolean__thumb-ghost",rootCheckbox:"sv_qcbc sv_qbln",checkboxItem:"sv-boolean",checkboxItemChecked:"sv-boolean--checked",controlCheckbox:"sv-visuallyvisible",checkboxControlLabel:"sv-boolean__label",checkboxItemIndeterminate:"sv-boolean--indeterminate",checkboxItemDisabled:"sv-item--disabled sv-boolean--disabled",checkboxMaterialDecorator:"sv-item__decorator sv-boolean__decorator",checkboxItemDecorator:"sv-item__svg sv-boolean__svg"},checkbox:{root:"sv_qcbc sv_qcbx",item:"sv_q_checkbox",itemSelectAll:"sv_q_checkbox_selectall",itemNone:"sv_q_checkbox_none",itemChecked:"checked",itemInline:"sv_q_checkbox_inline",label:"sv_q_checkbox_label",labelChecked:"",itemControl:"sv_q_checkbox_control_item",itemDecorator:"sv-hidden",controlLabel:"sv_q_checkbox_control_label",other:"sv_q_other sv_q_checkbox_other",column:"sv_q_select_column"},ranking:{root:"sv-ranking",rootMobileMod:"sv-ranking--mobile",rootDragMod:"sv-ranking--drag",rootDisabled:"sv-ranking--disabled",rootDragHandleAreaIcon:"sv-ranking--drag-handle-area-icon",rootSelectToRankMod:"sv-ranking--select-to-rank",rootSelectToRankAlignVertical:"sv-ranking--select-to-rank-vertical",rootSelectToRankAlignHorizontal:"sv-ranking--select-to-rank-horizontal",item:"sv-ranking-item",itemContent:"sv-ranking-item__content",itemIndex:"sv-ranking-item__index",itemIndexEmptyMode:"sv-ranking-item__index--empty",controlLabel:"sv-ranking-item__text",itemGhostNode:"sv-ranking-item__ghost",itemIconContainer:"sv-ranking-item__icon-container",itemIcon:"sv-ranking-item__icon",itemIconHoverMod:"sv-ranking-item__icon--hover",itemIconFocusMod:"sv-ranking-item__icon--focus",itemGhostMod:"sv-ranking-item--ghost",itemDragMod:"sv-ranking-item--drag",container:"sv-ranking__container",containerEmptyMode:"sv-ranking__container--empty",containerFromMode:"sv-ranking__container--from",containerToMode:"sv-ranking__container--to",containerPlaceholder:"sv-ranking__container-placeholder",containersDivider:"sv-ranking__containers-divider"},comment:{remainingCharacterCounter:"sv-remaining-character-counter"},dropdown:{root:"",popup:"sv-dropdown-popup",control:"sv_q_dropdown_control",controlInputFieldComponent:"sv_q_dropdown_control__input-field-component",selectWrapper:"sv_select_wrapper",other:"sv_q_dd_other",cleanButton:"sv_q_dropdown_clean-button",cleanButtonSvg:"sv_q_dropdown_clean-button-svg",cleanButtonIconId:"icon-clear_16x16",controlValue:"sv_q_dropdown__value",filterStringInput:"sv_q_dropdown__filter-string-input",hintPrefix:"sv_q_dropdown__hint-prefix",hintSuffix:"sv_q_dropdown__hint-suffix"},html:{root:""},image:{root:"sv_q_image",image:"sv_image_image",noImage:"sv-image__no-image",noImageSvgIconId:"icon-no-image"},matrix:{root:"sv_q_matrix",label:"sv_q_m_label",itemChecked:"checked",itemDecorator:"sv-hidden",cell:"sv_q_m_cell",cellText:"sv_q_m_cell_text",cellTextSelected:"sv_q_m_cell_selected",cellLabel:"sv_q_m_cell_label",cellResponsiveTitle:"sv-hidden"},matrixdropdown:{root:"sv_q_matrix_dropdown",cell:"sv_matrix_cell",headerCell:"sv_matrix_cell_header",row:"sv_matrix_row",rowAdditional:"sv-matrix__row--additional",detailRow:"sv_matrix_detail_row",detailRowText:"sv_matrix_cell_detail_rowtext",detailCell:"sv_matrix_cell_detail",choiceCell:"sv-table__cell--choice",detailButton:"sv_matrix_cell_detail_button",detailButtonExpanded:"sv_matrix_cell_detail_button_expanded",detailIcon:"sv_detail_panel_icon",detailIconExpanded:"sv_detail_expanded",detailPanelCell:"sv_matrix_cell_detail_panel",actionsCell:"sv_matrix_cell sv_matrix_cell_actions"},matrixdynamic:{root:"sv_q_matrix_dynamic",button:"sv_matrix_dynamic_button",buttonAdd:"",buttonRemove:"",iconAdd:"",iconRemove:"",iconDrag:"sv-matrixdynamic__drag-icon",cell:"sv_matrix_cell",headerCell:"sv_matrix_cell_header",row:"sv_matrix_row",detailRow:"sv_matrix_detail_row",detailCell:"sv_matrix_cell_detail",choiceCell:"sv-table__cell--choice",detailButton:"sv_matrix_cell_detail_button",detailButtonExpanded:"sv_matrix_cell_detail_button_expanded",detailIcon:"sv_detail_panel_icon",detailIconExpanded:"sv_detail_expanded",detailPanelCell:"sv_matrix_cell_detail_panel",actionsCell:"sv_matrix_cell sv_matrix_cell_actions",emptyRowsSection:"sv_matrix_empty_rows_section",emptyRowsText:"sv_matrix_empty_rows_text",emptyRowsButton:"",ghostRow:"sv-matrix-row--drag-drop-ghost-mod"},paneldynamic:{root:"sv_panel_dynamic",title:"sv_p_title",header:"sv-paneldynamic__header sv_header",headerTab:"sv-paneldynamic__header-tab",button:"",buttonAdd:"sv-paneldynamic__add-btn",buttonRemove:"sv_p_remove_btn",buttonRemoveRight:"sv_p_remove_btn_right",buttonPrev:"sv-paneldynamic__prev-btn",buttonPrevDisabled:"sv-paneldynamic__prev-btn--disabled",buttonNextDisabled:"sv-paneldynamic__next-btn--disabled",buttonNext:"sv-paneldynamic__next-btn",progressContainer:"sv-paneldynamic__progress-container",progress:"sv-progress",progressBar:"sv-progress__bar",progressText:"sv-paneldynamic__progress-text",panelWrapper:"sv_p_wrapper",panelWrapperInRow:"sv_p_wrapper_in_row",footer:"",progressBtnIcon:"icon-progressbutton"},multipletext:{root:"sv_q_mt",itemTitle:"sv_q_mt_title",item:"sv_q_mt_item",row:"sv_q_mt_row",itemLabel:"sv_q_mt_label",itemValue:"sv_q_mt_item_value sv_q_text_root"},radiogroup:{root:"sv_qcbc",item:"sv_q_radiogroup",itemChecked:"checked",itemInline:"sv_q_radiogroup_inline",itemDecorator:"sv-hidden",label:"sv_q_radiogroup_label",labelChecked:"",itemControl:"sv_q_radiogroup_control_item",controlLabel:"",other:"sv_q_other sv_q_radiogroup_other",clearButton:"sv_q_radiogroup_clear",column:"sv_q_select_column"},buttongroup:{root:"sv-button-group",item:"sv-button-group__item",itemIcon:"sv-button-group__item-icon",itemDecorator:"sv-button-group__item-decorator",itemCaption:"sv-button-group__item-caption",itemHover:"sv-button-group__item--hover",itemSelected:"sv-button-group__item--selected",itemDisabled:"sv-button-group__item--disabled",itemControl:"sv-visuallyhidden"},imagepicker:{root:"sv_imgsel",item:"sv_q_imgsel",itemChecked:"checked",label:"sv_q_imgsel_label",itemControl:"sv_q_imgsel_control_item",image:"sv_q_imgsel_image",itemInline:"sv_q_imagepicker_inline",itemText:"sv_q_imgsel_text",clearButton:"sv_q_radiogroup_clear",column:"sv_q_select_column",itemNoImage:"sv_q_imgsel__no-image",itemNoImageSvgIcon:"sv_q_imgsel__no-image-svg",itemNoImageSvgIconId:"icon-no-image"},rating:{root:"sv_q_rating",item:"sv_q_rating_item",itemFixedSize:"sv_q_rating_item_fixed",selected:"active",minText:"sv_q_rating_min_text",itemText:"sv_q_rating_item_text",maxText:"sv_q_rating_max_text",itemStar:"sv_q_rating__item-star",itemStarSelected:"sv_q_rating__item-star--selected",itemSmiley:"sv_q_rating__item-smiley",itemSmileySelected:"sv_q_rating__item-smiley--selected"},text:{root:"sv_q_text_root",remainingCharacterCounter:"sv-remaining-character-counter"},expression:"",file:{root:"sv_q_file",placeholderInput:"sv-visuallyhidden",preview:"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",clearButton:"sjs_sp_clear"},saveData:{root:"sv-save-data_root",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",body:"sv_window_content",header:{root:"sv_window_title",title:"",button:"",buttonExpanded:"",buttonCollapsed:""}},variables:{mobileWidth:"--sv-mobile-width",themeMark:"--sv-default-mark"},tagbox:{root:"",popup:"sv-dropdown-popup",small:"sv_q_row__question--small",selectWrapper:"sv_select_wrapper sv_q_tagbox_wrapper",other:"sv_q_input sv_q_comment sv_q_selectbase__other",cleanButton:"sv_q_tagbox_clean-button sv_q_dropdown_clean-button",cleanButtonSvg:"sv_q_tagbox_clean-button-svg sv_q_dropdown_clean-button-svg",cleanButtonIconId:"icon-clear_16x16",cleanItemButton:"sv_q_tagbox-item_clean-button",cleanItemButtonSvg:"sv_q_tagbox-item_clean-button-svg",cleanItemButtonIconId:"icon-clear_16x16",control:"sv_q_input sv_q_tagbox sv_q_dropdown_control",controlValue:"sv_q_tagbox__value sv_q_dropdown__value",controlEmpty:"sv_q_dropdown--empty sv_q_tagbox--empty",placeholderInput:"sv_q_tagbox__placeholder",filterStringInput:"sv_q_tagbox__filter-string-input sv_q_dropdown__filter-string-input",hint:"sv_q_tagbox__hint",hintPrefix:"sv_q_dropdown__hint-prefix sv_q_tagbox__hint-prefix",hintSuffix:"sv_q_dropdown__hint-suffix sv_q_tagbox__hint-suffix",hintSuffixWrapper:"sv_q_tagbox__hint-suffix-wrapper"}};r.surveyCss.default=o,r.surveyCss.orange=o,r.surveyCss.darkblue=o,r.surveyCss.darkrose=o,r.surveyCss.stone=o,r.surveyCss.winter=o,r.surveyCss.winterstone=o},"./src/defaultCss/defaultV2Css.ts":function(e,t,n){"use strict";n.r(t),n.d(t,"surveyCss",(function(){return r})),n.d(t,"defaultV2Css",(function(){return o})),n.d(t,"defaultV2ThemeName",(function(){return i}));var r={currentType:"",getCss:function(){var e=this.currentType?this[this.currentType]:o;return e||(e=o),e},getAvailableThemes:function(){return Object.keys(this).filter((function(e){return-1===["currentType","getCss","getAvailableThemes"].indexOf(e)}))}},o={root:"sd-root-modern",rootMobile:"sd-root-modern--mobile",rootReadOnly:"sd-root--readonly",rootCompact:"sd-root--compact",rootBackgroundImage:"sd-root_background-image",container:"sd-container-modern",header:"sd-title sd-container-modern__title",bodyContainer:"sv-components-row",body:"sv-components-column sv-components-column--expandable 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",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",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:""},panel:{asPage:"sd-panel--as-page",number:"sd-element__num",title:"sd-title sd-element__title sd-panel__title",titleExpandable:"sd-element__title--expandable",titleNumInline:"sd-element__title--num-inline",titleExpanded:"sd-element__title--expanded",titleCollapsed:"sd-element__title--collapsed",titleDisabled:"sd-element__title--disabled",titleOnExpand:"sd-panel__title--expanded",titleOnError:"sd-panel__title--error",titleBar:"sd-action-title-bar",description:"sd-description sd-panel__description",container:"sd-element sd-element--complex sd-panel sd-row__panel",withFrame:"sd-element--with-frame",content:"sd-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",nested:"sd-element--nested",invisible:"sd-element--invisible",navigationButton:"",compact:"sd-element--with-frame sd-element--compact"},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",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",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",panelWrapperInRow:"sd-paneldynamic__panel-wrapper--in-row",progressBtnIcon:"icon-progressbuttonv2",noEntriesPlaceholder:"sd-paneldynamic__placeholder sd-question__placeholder",compact:"sd-element--with-frame sd-element--compact",tabsRoot:"sd-tabs-toolbar",tabsLeft:"sd-tabs-toolbar--left",tabsRight:"sd-tabs-toolbar--right",tabsCenter:"sd-tabs-toolbar--center",tabs:{item:"sd-tab-item",itemPressed:"sd-tab-item--pressed",itemAsIcon:"sd-tab-item--icon",itemIcon:"sd-tab-item__icon",itemTitle:"sd-tab-item__title"}},progress:"sd-progress sd-body__progress",progressTop:"sd-body__progress--top",progressBottom:"sd-body__progress--bottom",progressBar:"sd-progress__bar",progressText:"sd-progress__text",progressButtonsContainerCenter:"sd-progress-buttons__container-center",progressButtonsContainer:"sd-progress-buttons__container",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"},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",pageRow:"sd-page__row",question:{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-question__content",contentLeft:"sd-question__content--left",titleNumInline:"sd-element__title--num-inline",titleLeftRoot:"sd-question--left",titleOnAnswer:"sd-question__title--answer",titleOnError:"sd-question__title--error",title:"sd-title sd-element__title sd-question__title",titleExpandable:"sd-element__title--expandable",titleExpanded:"sd-element__title--expanded",titleCollapsed:"sd-element__title--collapsed",titleDisabled:"sd-element__title--disabled",titleBar:"sd-action-title-bar",requiredText:"sd-question__required-text",number:"sd-element__num",description:"sd-description sd-question__description",descriptionUnderInput:"sd-description sd-question__description sd-question__description--under-input",comment:"sd-input sd-comment",other:"sd-input sd-comment",required:"sd-question--required",titleRequired:"sd-question__title--required",indent:20,footer:"sd-question__footer",commentArea:"sd-question__comment-area",formGroup:"sd-question__form-group",hasError:"sd-question--error",collapsed:"sd-element--collapsed",expanded:"sd-element--expanded",nested:"sd-element--nested",invisible:"sd-element--invisible",composite:"sd-element--complex",disabled:"sd-question--disabled"},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:""},error:{root:"sd-question__erbox",icon:"",item:"",tooltip:"sd-question__erbox--tooltip",outsideQuestion:"sd-question__erbox--outside-question",aboveQuestion:"sd-question__erbox--above-question",belowQuestion:"sd-question__erbox--below-question",locationTop:"sd-question__erbox--location--top",locationBottom:"sd-question__erbox--location--bottom"},checkbox:{root:"sd-selectbase",rootRow:"sd-selectbase--row",rootMultiColumn:"sd-selectbase--multi-column",item:"sd-item sd-checkbox sd-selectbase__item",itemOnError:"sd-item--error",itemSelectAll:"sd-checkbox--selectall",itemNone:"sd-checkbox--none",itemDisabled:"sd-item--disabled sd-checkbox--disabled",itemChecked:"sd-item--checked sd-checkbox--checked",itemHover:"sd-item--allowhover sd-checkbox--allowhover",itemInline:"sd-selectbase__item--inline",label:"sd-selectbase__label",labelChecked:"",itemControl:"sd-visuallyhidden sd-item__control sd-checkbox__control",itemDecorator:"sd-item__svg sd-checkbox__svg",itemSvgIconId:"#icon-v2check",controlLabel:"sd-item__control-label",materialDecorator:"sd-item__decorator sd-checkbox__decorator",other:"sd-input sd-comment sd-selectbase__other",column:"sd-selectbase__column"},radiogroup:{root:"sd-selectbase",rootRow:"sd-selectbase--row",rootMultiColumn:"sd-selectbase--multi-column",item:"sd-item sd-radio sd-selectbase__item",itemOnError:"sd-item--error",itemInline:"sd-selectbase__item--inline",label:"sd-selectbase__label",labelChecked:"",itemDisabled:"sd-item--disabled sd-radio--disabled",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",itemIndeterminate:"sd-boolean--indeterminate",itemDisabled:"sd-boolean--disabled",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",sliderText:"sd-boolean__thumb-text",slider:"sd-boolean__thumb",sliderGhost:"sd-boolean__thumb-ghost",radioItem:"sd-item",radioItemChecked:"sd-item--checked sd-radio--checked",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-checkbox--disabled",controlCheckbox:"sd-visuallyhidden sd-item__control sd-checkbox__control",checkboxMaterialDecorator:"sd-item__decorator sd-checkbox__decorator",checkboxControlLabel:"sd-item__control-label",svgIconCheckedId:"#icon-v2check"},text:{root:"sd-input sd-text",small:"sd-row__question--small",controlDisabled:"sd-input--disabled",content:"sd-text__content sd-question__content",remainingCharacterCounter:"sd-remaining-character-counter",onError:"sd-input--error"},multipletext:{root:"sd-multipletext",itemLabel:"sd-multipletext__item-container sd-input",itemLabelOnError:"sd-multipletext__item-container--error",item:"sd-multipletext__item",itemTitle:"sd-multipletext__item-title",content:"sd-multipletext__content sd-question__content",row:"sd-multipletext__row",cell:"sd-multipletext__cell"},dropdown:{root:"sd-selectbase",popup:"sv-dropdown-popup",small:"sd-row__question--small",selectWrapper:"sv-dropdown_select-wrapper",other:"sd-input sd-comment sd-selectbase__other",onError:"sd-input--error",label:"sd-selectbase__label",item:"sd-item sd-radio sd-selectbase__item",itemDisabled:"sd-item--disabled sd-radio--disabled",itemChecked:"sd-item--checked sd-radio--checked",itemHover:"sd-item--allowhover sd-radio--allowhover",itemControl:"sd-visuallyhidden sd-item__control sd-radio__control",itemDecorator:"sd-item__svg sd-radio__svg",cleanButton:"sd-dropdown_clean-button",cleanButtonSvg:"sd-dropdown_clean-button-svg",cleanButtonIconId:"icon-clear",chevronButton:"sd-dropdown_chevron-button",chevronButtonSvg:"sd-dropdown_chevron-button-svg",chevronButtonIconId:"icon-chevron",control:"sd-input sd-dropdown",controlInputFieldComponent:"sd-dropdown__input-field-component",controlValue:"sd-dropdown__value",controlDisabled:"sd-input--disabled",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",itemHover:"sd-imagepicker__item--allowhover",label:"sd-imagepicker__label",itemDecorator:"sd-imagepicker__item-decorator",imageContainer:"sd-imagepicker__image-container",itemControl:"sd-imagepicker__control sd-visuallyhidden",image:"sd-imagepicker__image",itemText:"sd-imagepicker__text",other:"sd-input sd-comment",itemNoImage:"sd-imagepicker__no-image",itemNoImageSvgIcon:"sd-imagepicker__no-image-svg",itemNoImageSvgIconId:"icon-no-image",column:"sd-selectbase__column sd-imagepicker__column",checkedItemDecorator:"sd-imagepicker__check-decorator",checkedItemSvgIcon:"sd-imagepicker__check-icon",checkedItemSvgIconId:"icon-v2check_24x24"},matrix:{mainRoot:"sd-element sd-question sd-row__question sd-element--complex sd-question--complex sd-question--table",tableWrapper:"sd-matrix sd-table-wrapper",root:"sd-table sd-matrix__table",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",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",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",rootVerticalAlignTop:"sd-table--align-top",rootVerticalAlignMiddle:"sd-table--align-middle",tableWrapper:"sd-table-wrapper",rootAlternateRows:"sd-table--alternate-rows",cell:"sd-table__cell",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",headerCell:"sd-table__cell sd-table__cell--header",rowTextCell:"sd-table__cell sd-table__cell--row-text",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",actionsCell:"sd-table__cell sd-table__cell--actions",emptyCell:"sd-table__cell--empty",verticalCell:"sd-table__cell--vertical",cellQuestionWrapper:"sd-table__question-wrapper",compact:"sd-element--with-frame sd-element--compact"},matrixdynamic:{mainRoot:"sd-element sd-question sd-row__question sd-element--complex sd-question--complex sd-question--table",rootScroll:"sd-question--scroll",empty:"sd-question--empty",root:"sd-table sd-matrixdynamic",tableWrapper:"sd-table-wrapper",content:"sd-matrixdynamic__content sd-question__content",cell:"sd-table__cell",row:"sd-table__row",itemCell:"sd-table__cell--item",headerCell:"sd-table__cell sd-table__cell--header",rowTextCell:"sd-table__cell sd-table__cell--row-text",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",actionsCell:"sd-table__cell sd-table__cell--actions",buttonAdd:"sd-matrixdynamic__add-btn",buttonRemove:"sd-action--negative sd-matrixdynamic__remove-btn",iconAdd:"",iconRemove:"",dragElementDecorator:"sd-drag-element__svg",iconDragElement:"#icon-v2dragelement_16x16",footer:"sd-matrixdynamic__footer",emptyRowsSection:"sd-matrixdynamic__placeholder sd-question__placeholder",iconDrag:"sv-matrixdynamic__drag-icon",ghostRow:"sv-matrix-row--drag-drop-ghost-mod",emptyCell:"sd-table__cell--empty",verticalCell:"sd-table__cell--vertical",cellQuestionWrapper:"sd-table__question-wrapper",errorsCell:"sd-table__cell--error",errorsCellTop:"sd-table__cell--error-top",errorsCellBottom:"sd-table__cell--error-bottom",compact:"sd-element--with-frame sd-element--compact"},rating:{rootDropdown:"sd-scrollable-container sd-scrollable-container--compact sd-selectbase",root:"sd-scrollable-container sd-rating",rootWrappable:"sd-scrollable-container sd-rating sd-rating--wrappable",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",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",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",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",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",content:"sd-comment__content sd-question__content",remainingCharacterCounter:"sd-remaining-character-counter",onError:"sd-input--error"},expression:"sd-expression",file:{root:"sd-file",other:"sd-input sd-comment",placeholderInput:"sd-visuallyhidden",preview:"sd-file__preview",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-context-btn sd-file__choose-btn--icon",chooseFileIconId:"icon-choosefile",disabled:"sd-file__choose-btn--disabled",removeButton:"sd-context-btn sd-context-btn--negative sd-file__btn sd-file__clean-btn",removeButtonBottom:"",removeButtonIconId:"icon-clear",removeFile:"sd-hidden",removeFileSvg:"",removeFileSvgIconId:"icon-delete",wrapper:"sd-file__wrapper",defaultImage:"sd-file__default-image",defaultImageIconId:"icon-defaultfile",leftIconId:"icon-arrowleft",rightIconId:"icon-arrowright",removeFileButton:"sd-context-btn sd-context-btn--negative sd-file__remove-file-button",dragAreaPlaceholder:"sd-file__drag-area-placeholder",imageWrapper:"sd-file__image-wrapper",single:"sd-file--single",singleImage:"sd-file--single-image",mobile:"sd-file--mobile"},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",clearButton:"sjs_sp_clear sd-context-btn sd-context-btn--negative sd-signaturepad__clear",clearButtonIconId:"icon-clear"},saveData:{root:"sv-save-data_root",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",body:"sv_window_content",header:{root:"sv_window_title",title:"",button:"sv_window_button",buttonExpanded:"",buttonCollapsed:""}},ranking:{root:"sv-ranking",rootMobileMod:"sv-ranking--mobile",rootDragMod:"sv-ranking--drag",rootDisabled:"sd-ranking--disabled",rootDesignMode:"sv-ranking--design-mode",rootDragHandleAreaIcon:"sv-ranking--drag-handle-area-icon",rootSelectToRankMod:"sv-ranking--select-to-rank",rootSelectToRankAlignVertical:"sv-ranking--select-to-rank-vertical",rootSelectToRankAlignHorizontal:"sv-ranking--select-to-rank-horizontal",item:"sv-ranking-item",itemContent:"sv-ranking-item__content 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",controlLabel:"sv-ranking-item__text",itemGhostNode:"sv-ranking-item__ghost",itemIconContainer:"sv-ranking-item__icon-container",itemIcon:"sv-ranking-item__icon",itemIconHoverMod:"sv-ranking-item__icon--hover",itemIconFocusMod:"sv-ranking-item__icon--focus",itemGhostMod:"sv-ranking-item--ghost",itemDragMod:"sv-ranking--drag",itemOnError:"sv-ranking-item--error",container:"sv-ranking__container",containerEmptyMode:"sv-ranking__container--empty",containerFromMode:"sv-ranking__container--from",containerToMode:"sv-ranking__container--to",containerPlaceholder:"sv-ranking__container-placeholder",containersDivider:"sv-ranking__containers-divider"},buttongroup:{root:"sv-button-group",item:"sv-button-group__item",itemIcon:"sv-button-group__item-icon",itemDecorator:"sv-button-group__item-decorator",itemCaption:"sv-button-group__item-caption",itemHover:"sv-button-group__item--hover",itemSelected:"sv-button-group__item--selected",itemDisabled:"sv-button-group__item--disabled",itemControl:"sv-visuallyhidden"},list:{root:"sv-list__container sd-list",item:"sv-list__item sd-list__item",itemBody:"sv-list__item-body sd-list__item-body",itemSelected:"sv-list__item--selected sd-list__item--selected",itemFocused:"sv-list__item--focused sd-list__item--focused"},actionBar:{root:"sd-action-bar",item:"sd-action",defaultSizeMode:"",smallSizeMode:"",itemPressed:"sd-action--pressed",itemAsIcon:"sd-action--icon",itemIcon:"sd-action__icon",itemTitle:"sd-action__title"},variables:{mobileWidth:"--sd-mobile-width",themeMark:"--sv-defaultV2-mark"},tagbox:{root:"sd-selectbase",popup:"sv-dropdown-popup",small:"sd-row__question--small",selectWrapper:"sv-dropdown_select-wrapper",other:"sd-input sd-comment sd-selectbase__other",onError:"sd-input--error",label:"sd-selectbase__label",itemSvgIconId:"#icon-v2check",item:"sd-item sd-checkbox sd-selectbase__item",itemDisabled:"sd-item--disabled sd-checkbox--disabled",itemChecked:"sd-item--checked sd-checkbox--checked",itemHover:"sd-item--allowhover sd-checkbox--allowhover",itemControl:"sd-visuallyhidden sd-item__control sd-checkbox__control",itemDecorator:"sd-item__svg sd-checkbox__svg",cleanButton:"sd-tagbox_clean-button sd-dropdown_clean-button",cleanButtonSvg:"sd-tagbox_clean-button-svg sd-dropdown_clean-button-svg",cleanButtonIconId:"icon-clear",cleanItemButton:"sd-tagbox-item_clean-button",cleanItemButtonSvg:"sd-tagbox-item_clean-button-svg",cleanItemButtonIconId:"icon-clear_16x16",chevronButton:"sd-dropdown_chevron-button",chevronButtonSvg:"sd-dropdown_chevron-button-svg",chevronButtonIconId:"icon-chevron",control:"sd-input sd-tagbox sd-dropdown",controlValue:"sd-tagbox__value sd-dropdown__value",controlValueItems:"sd-tagbox__value-items",placeholderInput:"sd-tagbox__placeholder",controlDisabled:"sd-input--disabled",controlEmpty:"sd-dropdown--empty sd-tagbox--empty",controlLabel:"sd-item__control-label",filterStringInput:"sd-tagbox__filter-string-input sd-dropdown__filter-string-input",materialDecorator:"sd-item__decorator sd-checkbox__decorator",hint:"sd-tagbox__hint",hintPrefix:"sd-dropdown__hint-prefix sd-tagbox__hint-prefix",hintSuffix:"sd-dropdown__hint-suffix sd-tagbox__hint-suffix",hintSuffixWrapper:"sd-tagbox__hint-suffix-wrapper"}},i="defaultV2";r[i]=o},"./src/defaultTitle.ts":function(e,t,n){"use strict";n.r(t),n.d(t,"DefaultTitleModel",(function(){return o}));var r=n("./src/utils/cssClassBuilder.ts"),o=function(){function e(){}return e.getIconCss=function(e,t){return(new r.CssClassBuilder).append(e.icon).append(e.iconExpanded,!t).toString()},e}()},"./src/drag-drop-helper-v1.ts":function(e,t,n){"use strict";n.r(t),n.d(t,"DragDropInfo",(function(){return r}));var r=function(e,t,n){void 0===n&&(n=-1),this.source=e,this.target=t,this.nestedPanelDepth=n}},"./src/drag-drop-page-helper-v1.ts":function(e,t,n){"use strict";n.r(t),n.d(t,"DragDropPageHelperV1",(function(){return i}));var r=n("./src/drag-drop-helper-v1.ts"),o=n("./src/settings.ts"),i=function(){function e(e){this.page=e}return e.prototype.getDragDropInfo=function(){return this.dragDropInfo},e.prototype.dragDropStart=function(e,t,n){void 0===n&&(n=-1),this.dragDropInfo=new r.DragDropInfo(e,t,n)},e.prototype.dragDropMoveTo=function(e,t,n){if(void 0===t&&(t=!1),void 0===n&&(n=!1),!this.dragDropInfo)return!1;if(this.dragDropInfo.destination=e,this.dragDropInfo.isBottom=t,this.dragDropInfo.isEdge=n,this.correctDragDropInfo(this.dragDropInfo),!this.dragDropCanDropTagert())return!1;if(!this.dragDropCanDropSource()||!this.dragDropAllowFromSurvey()){if(this.dragDropInfo.source){var r=this.page.dragDropFindRow(this.dragDropInfo.target);this.page.updateRowsRemoveElementFromRow(this.dragDropInfo.target,r)}return!1}return this.page.dragDropAddTarget(this.dragDropInfo),!0},e.prototype.correctDragDropInfo=function(e){if(e.destination){var t=e.destination.isPanel?e.destination:null;t&&(e.target.isLayoutTypeSupported(t.getChildrenLayoutType())||(e.isEdge=!0))}},e.prototype.dragDropAllowFromSurvey=function(){var e=this.dragDropInfo.destination;if(!e||!this.page.survey)return!0;var t=null,n=null,r=e.isPage||!this.dragDropInfo.isEdge&&e.isPanel?e:e.parent;if(!e.isPage){var o=e.parent;if(o){var i=o.elements,s=i.indexOf(e);s>-1&&(t=e,n=e,this.dragDropInfo.isBottom?t=s<i.length-1?i[s+1]:null:n=s>0?i[s-1]:null)}}var a={allow:!0,target:this.dragDropInfo.target,source:this.dragDropInfo.source,parent:r,insertAfter:n,insertBefore:t};return this.page.survey.dragAndDropAllow(a)},e.prototype.dragDropFinish=function(e){if(void 0===e&&(e=!1),this.dragDropInfo){var t=this.dragDropInfo.target,n=this.dragDropInfo.source,r=this.dragDropInfo.destination,i=this.page.dragDropFindRow(t),s=this.dragDropGetElementIndex(t,i);this.page.updateRowsRemoveElementFromRow(t,i);var a=[],l=[];if(!e&&i){if(this.page.isDesignMode&&o.settings.supportCreatorV2){var u=n&&n.parent&&n.parent.dragDropFindRow(n);i.panel.elements[s]&&i.panel.elements[s].startWithNewLine&&i.elements.length>1&&i.panel.elements[s]===r&&(a.push(t),l.push(i.panel.elements[s])),!(t.startWithNewLine&&i.elements.length>1)||i.panel.elements[s]&&i.panel.elements[s].startWithNewLine||l.push(t),u&&u.elements[0]===n&&u.elements[1]&&a.push(u.elements[1]),i.elements.length<=1&&a.push(t),t.startWithNewLine&&i.elements.length>1&&i.elements[0]!==r&&l.push(t)}n&&n.parent&&(this.page.survey.startMovingQuestion(),i.panel==n.parent?(i.panel.dragDropMoveElement(n,t,s),s=-1):n.parent.removeElement(n)),s>-1&&i.panel.addElement(t,s),this.page.survey.stopMovingQuestion()}return a.map((function(e){e.startWithNewLine=!0})),l.map((function(e){e.startWithNewLine=!1})),this.dragDropInfo=null,e?null:t}},e.prototype.dragDropGetElementIndex=function(e,t){if(!t)return-1;var n=t.elements.indexOf(e);if(0==t.index)return n;var r=t.panel.rows[t.index-1],o=r.elements[r.elements.length-1];return n+t.panel.elements.indexOf(o)+1},e.prototype.dragDropCanDropTagert=function(){var e=this.dragDropInfo.destination;return!(e&&!e.isPage)||this.dragDropCanDropCore(this.dragDropInfo.target,e)},e.prototype.dragDropCanDropSource=function(){var e=this.dragDropInfo.source;if(!e)return!0;var t=this.dragDropInfo.destination;if(!this.dragDropCanDropCore(e,t))return!1;if(this.page.isDesignMode&&o.settings.supportCreatorV2){if(this.page.dragDropFindRow(e)!==this.page.dragDropFindRow(t)){if(!e.startWithNewLine&&t.startWithNewLine)return!0;if(e.startWithNewLine&&!t.startWithNewLine)return!0}var n=this.page.dragDropFindRow(t);if(n&&1==n.elements.length)return!0}return this.dragDropCanDropNotNext(e,t,this.dragDropInfo.isEdge,this.dragDropInfo.isBottom)},e.prototype.dragDropCanDropCore=function(e,t){if(!t)return!0;if(this.dragDropIsSameElement(t,e))return!1;if(e.isPanel){var n=e;if(n.containsElement(t)||n.getElementByName(t.name))return!1}return!0},e.prototype.dragDropCanDropNotNext=function(e,t,n,r){if(!t||t.isPanel&&!n)return!0;if(void 0===e.parent||e.parent!==t.parent)return!0;var o=e.parent,i=o.elements.indexOf(e),s=o.elements.indexOf(t);return s<i&&!r&&s--,r&&s++,i<s?s-i>1:i-s>0},e.prototype.dragDropIsSameElement=function(e,t){return e==t||e.name==t.name},e}()},"./src/drag-drop-panel-helper-v1.ts":function(e,t,n){"use strict";n.r(t),n.d(t,"DragDropPanelHelperV1",(function(){return i}));var r=n("./src/drag-drop-helper-v1.ts"),o=n("./src/settings.ts"),i=function(){function e(e){this.panel=e}return e.prototype.dragDropAddTarget=function(e){var t=this.dragDropFindRow(e.target);this.dragDropAddTargetToRow(e,t)&&this.panel.updateRowsRemoveElementFromRow(e.target,t)},e.prototype.dragDropFindRow=function(e){if(!e||e.isPage)return null;for(var t=e,n=this.panel.rows,r=0;r<n.length;r++)if(n[r].elements.indexOf(t)>-1)return n[r];for(r=0;r<this.panel.elements.length;r++){var o=this.panel.elements[r].getPanel();if(o){var i=o.dragDropFindRow(t);if(i)return i}}return null},e.prototype.dragDropMoveElement=function(e,t,n){n>e.parent.elements.indexOf(e)&&n--,this.panel.removeElement(e),this.panel.addElement(t,n)},e.prototype.updateRowsOnElementAdded=function(e,t,n,o){n||((n=new r.DragDropInfo(null,e)).target=e,n.isEdge=this.panel.elements.length>1,this.panel.elements.length<2?n.destination=o:(n.isBottom=t>0,n.destination=0==t?this.panel.elements[1]:this.panel.elements[t-1])),this.dragDropAddTargetToRow(n,null)},e.prototype.dragDropAddTargetToRow=function(e,t){if(!e.destination)return!0;if(this.dragDropAddTargetToEmptyPanel(e))return!0;var n=e.destination,r=this.dragDropFindRow(n);return!r||(e.target.startWithNewLine?this.dragDropAddTargetToNewRow(e,r,t):this.dragDropAddTargetToExistingRow(e,r,t))},e.prototype.dragDropAddTargetToEmptyPanel=function(e){if(e.destination.isPage)return this.dragDropAddTargetToEmptyPanelCore(this.panel.root,e.target,e.isBottom),!0;var t=e.destination;if(t.isPanel&&!e.isEdge){var n=t;if(e.target.template===t)return!1;if(e.nestedPanelDepth<0||e.nestedPanelDepth>=n.depth)return this.dragDropAddTargetToEmptyPanelCore(t,e.target,e.isBottom),!0}return!1},e.prototype.dragDropAddTargetToExistingRow=function(e,t,n){var r=t.elements.indexOf(e.destination);if(0==r&&!e.isBottom)if(this.panel.isDesignMode&&o.settings.supportCreatorV2);else if(t.elements[0].startWithNewLine)return t.index>0?(e.isBottom=!0,t=t.panel.rows[t.index-1],e.destination=t.elements[t.elements.length-1],this.dragDropAddTargetToExistingRow(e,t,n)):this.dragDropAddTargetToNewRow(e,t,n);var i=-1;n==t&&(i=t.elements.indexOf(e.target)),e.isBottom&&r++;var s=this.panel.findRowByElement(e.source);return(s!=t||s.elements.indexOf(e.source)!=r)&&r!=i&&(i>-1&&(t.elements.splice(i,1),i<r&&r--),t.elements.splice(r,0,e.target),t.updateVisible(),i<0)},e.prototype.dragDropAddTargetToNewRow=function(e,t,n){var r=t.panel.createRowAndSetLazy(t.panel.rows.length);this.panel.isDesignMode&&o.settings.supportCreatorV2&&r.setIsLazyRendering(!1),r.addElement(e.target);var i=t.index;if(e.isBottom&&i++,n&&n.panel==r.panel&&n.index==i)return!1;var s=this.panel.findRowByElement(e.source);return!(s&&s.panel==r.panel&&1==s.elements.length&&s.index==i||(t.panel.rows.splice(i,0,r),0))},e.prototype.dragDropAddTargetToEmptyPanelCore=function(e,t,n){var r=e.createRow();r.addElement(t),0==e.elements.length||n?e.rows.push(r):e.rows.splice(0,0,r)},e}()},"./src/dragdrop/choices.ts":function(e,t,n){"use strict";n.r(t),n.d(t,"DragDropChoices",(function(){return s}));var r,o=n("./src/dragdrop/core.ts"),i=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),s=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.doDragOver=function(){"imagepicker"!==t.parentElement.getType()&&(t.domAdapter.draggedElementShortcut.querySelector(".svc-item-value-controls__button").style.cursor="grabbing")},t.doBanDropHere=function(){"imagepicker"!==t.parentElement.getType()&&(t.domAdapter.draggedElementShortcut.querySelector(".svc-item-value-controls__button").style.cursor="not-allowed")},t}return i(t,e),Object.defineProperty(t.prototype,"draggedElementType",{get:function(){return"item-value"},enumerable:!1,configurable:!0}),t.prototype.createDraggedElementShortcut=function(e,t,n){if("imagepicker"===this.parentElement.getType())return this.createImagePickerShortcut(this.draggedElement,e,t,n);var r=document.createElement("div");r.style.cssText=" \n          cursor: grabbing;\n          position: absolute;\n          z-index: 10000;\n          font-family: var(--font-family, 'Open Sans');\n        ";var o=t.closest("[data-sv-drop-target-item-value]").cloneNode(!0);o.style.cssText="\n      min-width: 100px;\n      box-shadow: var(--sjs-shadow-large, 0px 8px 16px 0px rgba(0, 0, 0, 0.1)), var(--sjs-shadow-medium, 0px 2px 6px 0px rgba(0, 0, 0, 0.1));\n      background-color: var(--sjs-general-backcolor, var(--background, #fff));\n      border-radius: calc(4.5 * var(--sjs-base-unit, var(--base-unit, 8px)));\n      padding-right: calc(2* var(--sjs-base-unit, var(--base-unit, 8px)));\n      margin-left: 0;\n    ",o.querySelector(".svc-item-value-controls__drag-icon").style.visibility="visible",o.querySelector(".svc-item-value-controls__remove").style.backgroundColor="transparent",o.classList.remove("svc-item-value--moveup"),o.classList.remove("svc-item-value--movedown"),this.draggedElement.isDragDropMoveDown=!1,this.draggedElement.isDragDropMoveUp=!1,r.appendChild(o);var i=t.getBoundingClientRect();return r.shortcutXOffset=n.clientX-i.x,r.shortcutYOffset=n.clientY-i.y,this.isBottom=null,r},t.prototype.createImagePickerShortcut=function(e,t,n,r){var o=document.createElement("div");o.style.cssText=" \n      cursor: grabbing;\n      position: absolute;\n      z-index: 10000;\n      box-shadow: var(--sjs-shadow-large, 0px 8px 16px 0px rgba(0, 0, 0, 0.1)), var(--sjs-shadow-medium, 0px 2px 6px 0px rgba(0, 0, 0, 0.1));\n      background-color: var(--sjs-general-backcolor, var(--background, #fff));\n      padding: calc(0.5 * var(--sjs-base-unit, var(--base-unit, 8px)));\n      border-radius: calc(0.5 * var(--sjs-base-unit, var(--base-unit, 8px)));\n    ";var i=n.closest("[data-sv-drop-target-item-value]"),s=i.querySelector(".svc-image-item-value-controls"),a=i.querySelector(".sd-imagepicker__image-container"),l=i.querySelector(e.imageLink?"img":".sd-imagepicker__no-image").cloneNode(!0);return s.style.display="none",a.style.width=l.width+"px",a.style.height=l.height+"px",l.style.objectFit="cover",l.style.borderRadius="4px",o.appendChild(l),o},t.prototype.getDropTargetByDataAttributeValue=function(e){return this.parentElement.choices.filter((function(t){return""+t.value==e}))[0]},t.prototype.getVisibleChoices=function(){var e=this.parentElement;return"ranking"===e.getType()?e.rankingChoices:e.visibleChoices},t.prototype.isDropTargetValid=function(e,t){var n=this.getVisibleChoices();if("imagepicker"!==this.parentElement.getType()){var r=n.indexOf(this.dropTarget),o=n.indexOf(this.draggedElement);if(o>r&&this.dropTarget.isDragDropMoveUp)return this.dropTarget.isDragDropMoveUp=!1,!1;if(o<r&&this.dropTarget.isDragDropMoveDown)return this.dropTarget.isDragDropMoveDown=!1,!1}return-1!==n.indexOf(e)},t.prototype.calculateIsBottom=function(e){var t=this.getVisibleChoices();return t.indexOf(this.dropTarget)-t.indexOf(this.draggedElement)>0},t.prototype.afterDragOver=function(t){if(!this.isDropTargetDoesntChanged(this.isBottom)&&this.dropTarget!==this.draggedElement){var n=this.getVisibleChoices(),r=n.indexOf(this.dropTarget),o=n.indexOf(this.draggedElement);n.splice(o,1),n.splice(r,0,this.draggedElement),"imagepicker"!==this.parentElement.getType()&&(o!==r&&(t.classList.remove("svc-item-value--moveup"),t.classList.remove("svc-item-value--movedown"),this.dropTarget.isDragDropMoveDown=!1,this.dropTarget.isDragDropMoveUp=!1),o>r&&(this.dropTarget.isDragDropMoveDown=!0),o<r&&(this.dropTarget.isDragDropMoveUp=!0),e.prototype.ghostPositionChanged.call(this))}},t.prototype.doDrop=function(){var e=this.parentElement.choices,t=this.getVisibleChoices().filter((function(t){return-1!==e.indexOf(t)})),n=e.indexOf(this.draggedElement),r=t.indexOf(this.draggedElement);return e.splice(n,1),e.splice(r,0,this.draggedElement),this.parentElement},t.prototype.clear=function(){this.parentElement&&this.updateVisibleChoices(this.parentElement),e.prototype.clear.call(this)},t.prototype.updateVisibleChoices=function(e){"ranking"===e.getType()?e.updateRankingChoices():e.updateVisibleChoices()},t}(o.DragDropCore)},"./src/dragdrop/core.ts":function(e,t,n){"use strict";n.r(t),n.d(t,"DragDropCore",(function(){return i}));var r=n("./src/base.ts"),o=n("./src/dragdrop/dom-adapter.ts"),i=function(){function e(e,t,n,i){var s=this;this.surveyValue=e,this.creator=t,this._isBottom=null,this.onGhostPositionChanged=new r.EventBase,this.onDragStart=new r.EventBase,this.onDragEnd=new r.EventBase,this.onBeforeDrop=this.onDragStart,this.onAfterDrop=this.onDragEnd,this.draggedElement=null,this.dropTarget=null,this.prevDropTarget=null,this.allowDropHere=!1,this.banDropHere=function(){s.allowDropHere=!1,s.doBanDropHere(),s.dropTarget=null,s.domAdapter.draggedElementShortcut.style.cursor="not-allowed",s.isBottom=null},this.doBanDropHere=function(){},this.domAdapter=i||new o.DragDropDOMAdapter(this,n)}return Object.defineProperty(e.prototype,"isBottom",{get:function(){return!!this._isBottom},set:function(e){this._isBottom=e,this.ghostPositionChanged()},enumerable:!1,configurable:!0}),e.prototype.ghostPositionChanged=function(){this.onGhostPositionChanged.fire({},{})},Object.defineProperty(e.prototype,"dropTargetDataAttributeName",{get:function(){return"[data-sv-drop-target-"+this.draggedElementType+"]"},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"survey",{get:function(){return this.surveyValue||this.creator.survey},enumerable:!1,configurable:!0}),e.prototype.startDrag=function(e,t,n,r,o){var i;void 0===o&&(o=!1),this.domAdapter.rootContainer=null===(i=this.survey)||void 0===i?void 0:i.rootElement,this.domAdapter.startDrag(e,t,n,r,o)},e.prototype.dragInit=function(e,t,n,r){this.draggedElement=t,this.parentElement=n;var o=this.getShortcutText(this.draggedElement);this.domAdapter.draggedElementShortcut=this.createDraggedElementShortcut(o,r,e),this.onStartDrag(e)},e.prototype.onStartDrag=function(e){},e.prototype.isDropTargetDoesntChanged=function(e){return this.dropTarget===this.prevDropTarget&&e===this.isBottom},e.prototype.getShortcutText=function(e){return e.shortcutText},e.prototype.createDraggedElementShortcut=function(e,t,n){var r=document.createElement("div");return r.innerText=e,r.className=this.getDraggedElementClass(),r},e.prototype.getDraggedElementClass=function(){return"sv-dragged-element-shortcut"},e.prototype.doDragOver=function(){},e.prototype.afterDragOver=function(e){},e.prototype.findDropTargetNodeFromPoint=function(e,t){this.domAdapter.draggedElementShortcut.hidden=!0;var n=document.elementFromPoint(e,t);return this.domAdapter.draggedElementShortcut.hidden=!1,n?this.findDropTargetNodeByDragOverNode(n):null},e.prototype.getDataAttributeValueByNode=function(e){var t=this,n="svDropTarget";return this.draggedElementType.split("-").forEach((function(e){n+=t.capitalizeFirstLetter(e)})),e.dataset[n]},e.prototype.getDropTargetByNode=function(e,t){var n=this.getDataAttributeValueByNode(e);return this.getDropTargetByDataAttributeValue(n,e,t)},e.prototype.capitalizeFirstLetter=function(e){return e.charAt(0).toUpperCase()+e.slice(1)},e.prototype.calculateVerticalMiddleOfHTMLElement=function(e){var t=e.getBoundingClientRect();return t.y+t.height/2},e.prototype.calculateHorizontalMiddleOfHTMLElement=function(e){var t=e.getBoundingClientRect();return t.x+t.width/2},e.prototype.calculateIsBottom=function(e,t){return!1},e.prototype.findDropTargetNodeByDragOverNode=function(e){return e.closest(this.dropTargetDataAttributeName)},e.prototype.dragOver=function(e){var t=this.findDropTargetNodeFromPoint(e.clientX,e.clientY);if(t){this.dropTarget=this.getDropTargetByNode(t,e);var n=this.isDropTargetValid(this.dropTarget,t);if(this.doDragOver(),n){var r=this.calculateIsBottom(e.clientY,t);this.allowDropHere=!0,this.isDropTargetDoesntChanged(r)||(this.isBottom=null,this.isBottom=r,this.afterDragOver(t),this.prevDropTarget=this.dropTarget)}else this.banDropHere()}else this.banDropHere()},e.prototype.drop=function(){if(this.allowDropHere){var e=this.draggedElement.parent;this.onDragStart.fire(this,{fromElement:e,draggedElement:this.draggedElement});var t=this.doDrop();this.onDragEnd.fire(this,{fromElement:e,draggedElement:t,toElement:this.dropTarget})}},e.prototype.clear=function(){this.dropTarget=null,this.draggedElement=null,this.isBottom=null,this.parentElement=null},e}()},"./src/dragdrop/dom-adapter.ts":function(e,t,n){"use strict";n.r(t),n.d(t,"DragDropDOMAdapter",(function(){return s}));var r=n("./src/utils/utils.ts"),o=n("./src/utils/devices.ts"),i=n("./src/settings.ts");"undefined"!=typeof window&&window.addEventListener("touchmove",(function(e){s.PreventScrolling&&e.preventDefault()}),{passive:!1});var s=function(){function e(t,n){var r=this;this.dd=t,this.longTap=n,this.scrollIntervalId=null,this.stopLongTapIfMoveEnough=function(e){e.preventDefault(),r.currentX=e.pageX,r.currentY=e.pageY,r.isMicroMovement||(document.body.style.setProperty("touch-action",""),document.body.style.setProperty("user-select",""),document.body.style.setProperty("-webkit-user-select",""),r.stopLongTap())},this.stopLongTap=function(e){clearTimeout(r.timeoutID),r.timeoutID=null,document.removeEventListener("pointerup",r.stopLongTap),document.removeEventListener("pointermove",r.stopLongTapIfMoveEnough)},this.handlePointerCancel=function(e){r.clear()},this.handleEscapeButton=function(e){27==e.keyCode&&r.clear()},this.onContextMenu=function(e){e.preventDefault(),e.stopPropagation()},this.dragOver=function(e){r.moveShortcutElement(e),r.draggedElementShortcut.style.cursor="grabbing",r.dd.dragOver(e)},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),o.IsTouch&&r.draggedElementShortcut.removeEventListener("contextmenu",r.onContextMenu),r.draggedElementShortcut.parentElement.removeChild(r.draggedElementShortcut),r.dd.clear(),r.draggedElementShortcut=null,r.scrollIntervalId=null,o.IsTouch&&(r.savedTargetNode&&r.savedTargetNode.parentElement.removeChild(r.savedTargetNode),e.PreventScrolling=!1),document.body.style.setProperty("touch-action",""),document.body.style.setProperty("user-select",""),document.body.style.setProperty("-webkit-user-select","")},this.drop=function(){r.dd.drop(),r.clear()},this.draggedElementShortcut=null}return Object.defineProperty(e.prototype,"rootElement",{get:function(){return Object(r.isShadowDOM)(i.settings.environment.root)?i.settings.environment.root.host:this.rootContainer||i.settings.environment.root.documentElement||document.body},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"isMicroMovement",{get:function(){var e=Math.abs(this.currentX-this.startX),t=Math.abs(this.currentY-this.startY);return e<5&&t<5},enumerable:!1,configurable:!0}),e.prototype.startLongTapProcessing=function(e,t,n,r,o){var i=this;void 0===o&&(o=!1),this.startX=e.pageX,this.startY=e.pageY,document.body.style.setProperty("touch-action","none","important"),document.body.style.setProperty("user-select","none","important"),document.body.style.setProperty("-webkit-user-select","none","important"),this.timeoutID=setTimeout((function(){i.doStartDrag(e,t,n,r),o||(i.savedTargetNode=e.target,i.savedTargetNode.style.cssText="\n          position: absolute;\n          height: 1px!important;\n          width: 1px!important;\n          overflow: hidden;\n          clip: rect(1px 1px 1px 1px);\n          clip: rect(1px, 1px, 1px, 1px);\n        ",i.rootElement.appendChild(i.savedTargetNode)),i.stopLongTap()}),this.longTap?500:0),document.addEventListener("pointerup",this.stopLongTap),document.addEventListener("pointermove",this.stopLongTapIfMoveEnough)},e.prototype.moveShortcutElement=function(e){var t=this.rootElement.getBoundingClientRect().x,n=this.rootElement.getBoundingClientRect().y;this.doScroll(e.clientY,e.clientX);var r=this.draggedElementShortcut.offsetHeight,o=this.draggedElementShortcut.offsetWidth,i=this.draggedElementShortcut.shortcutXOffset||o/2,s=this.draggedElementShortcut.shortcutYOffset||r/2;0!==document.querySelectorAll("[dir='rtl']").length&&(i=o/2,s=r/2);var a=document.documentElement.clientHeight,l=document.documentElement.clientWidth,u=e.pageX,c=e.pageY,p=e.clientX,d=e.clientY,h=this.getShortcutBottomCoordinate(d,r,s);return this.getShortcutRightCoordinate(p,o,i)>=l?(this.draggedElementShortcut.style.left=l-o-t+"px",void(this.draggedElementShortcut.style.top=d-s-n+"px")):p-i<=0?(this.draggedElementShortcut.style.left=u-p-t+"px",void(this.draggedElementShortcut.style.top=d-n-s+"px")):h>=a?(this.draggedElementShortcut.style.left=p-i-t+"px",void(this.draggedElementShortcut.style.top=a-r-n+"px")):d-s<=0?(this.draggedElementShortcut.style.left=p-i-t+"px",void(this.draggedElementShortcut.style.top=c-d-n+"px")):(this.draggedElementShortcut.style.left=p-t-i+"px",void(this.draggedElementShortcut.style.top=d-n-s+"px"))},e.prototype.getShortcutBottomCoordinate=function(e,t,n){return e+t-n},e.prototype.getShortcutRightCoordinate=function(e,t,n){return e+t-n},e.prototype.doScroll=function(e,t){var n=this;cancelAnimationFrame(this.scrollIntervalId);var o=100;this.draggedElementShortcut.hidden=!0;var i=document.elementFromPoint(t,e);this.draggedElementShortcut.hidden=!1;var s,a,l,u,c=Object(r.findScrollableParent)(i);"HTML"===c.tagName?(s=0,a=document.documentElement.clientHeight,l=0,u=document.documentElement.clientWidth):(s=c.getBoundingClientRect().top,a=c.getBoundingClientRect().bottom,l=c.getBoundingClientRect().left,u=c.getBoundingClientRect().right);var p=function(){e-s<=o?c.scrollTop-=15:a-e<=o?c.scrollTop+=15:u-t<=o?c.scrollLeft+=15:t-l<=o&&(c.scrollLeft-=15),n.scrollIntervalId=requestAnimationFrame(p)};this.scrollIntervalId=requestAnimationFrame(p)},e.prototype.doStartDrag=function(t,n,r,i){o.IsTouch&&(e.PreventScrolling=!0),3!==t.which&&(this.dd.dragInit(t,n,r,i),this.rootElement.append(this.draggedElementShortcut),this.moveShortcutElement(t),document.addEventListener("pointermove",this.dragOver),document.addEventListener("pointercancel",this.handlePointerCancel),document.addEventListener("keydown",this.handleEscapeButton),document.addEventListener("pointerup",this.drop),o.IsTouch?this.draggedElementShortcut.addEventListener("contextmenu",this.onContextMenu):this.draggedElementShortcut.addEventListener("pointerup",this.drop))},e.prototype.startDrag=function(e,t,n,r,i){void 0===i&&(i=!1),o.IsTouch?this.startLongTapProcessing(e,t,n,r,i):this.doStartDrag(e,t,n,r)},e.PreventScrolling=!1,e}()},"./src/dragdrop/matrix-rows.ts":function(e,t,n){"use strict";n.r(t),n.d(t,"DragDropMatrixRows",(function(){return s}));var r,o=n("./src/dragdrop/core.ts"),i=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),s=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.fromIndex=null,t.toIndex=null,t.doDrop=function(){return t.parentElement.moveRowByIndex(t.fromIndex,t.toIndex),t.parentElement},t}return i(t,e),Object.defineProperty(t.prototype,"draggedElementType",{get:function(){return"matrix-row"},enumerable:!1,configurable:!0}),t.prototype.onStartDrag=function(){this.restoreUserSelectValue=document.body.style.userSelect,document.body.style.userSelect="none"},t.prototype.createDraggedElementShortcut=function(e,t,n){var r=this,o=document.createElement("div");if(o.style.cssText=" \n          cursor: grabbing;\n          position: absolute;\n          z-index: 10000;\n          font-family: var(--font-family, 'Open Sans');\n        ",t){var i=t.closest("[data-sv-drop-target-matrix-row]"),s=i.cloneNode(!0);s.style.cssText="\n        box-shadow: var(--sjs-shadow-large, 0px 8px 16px 0px rgba(0, 0, 0, 0.1)), var(--sjs-shadow-medium, 0px 2px 6px 0px rgba(0, 0, 0, 0.1));\n        background-color: var(--sjs-general-backcolor, var(--background, #fff));\n        display: flex;\n        flex-grow: 0;\n        flex-shrink: 0;\n        align-items: center;\n        line-height: 0;\n        width: "+i.offsetWidth+"px;\n      ",s.classList.remove("sv-matrix__drag-drop--moveup"),s.classList.remove("sv-matrix__drag-drop--movedown"),this.draggedElement.isDragDropMoveDown=!1,this.draggedElement.isDragDropMoveUp=!1,o.appendChild(s);var a=t.getBoundingClientRect();o.shortcutXOffset=n.clientX-a.x,o.shortcutYOffset=n.clientY-a.y}return this.parentElement.renderedTable.rows.forEach((function(e,t){e.row===r.draggedElement&&(e.isGhostRow=!0)})),this.fromIndex=this.parentElement.visibleRows.indexOf(this.draggedElement),o},t.prototype.getDropTargetByDataAttributeValue=function(e){return this.parentElement.renderedTable.rows.filter((function(t){return t.row&&t.row.id===e}))[0].row},t.prototype.isDropTargetValid=function(e,t){return!0},t.prototype.calculateIsBottom=function(e){var t=this.parentElement.renderedTable.rows.map((function(e){return e.row}));return t.indexOf(this.dropTarget)-t.indexOf(this.draggedElement)>0},t.prototype.afterDragOver=function(t){var n=this;if(!this.isDropTargetDoesntChanged(this.isBottom)&&this.dropTarget!==this.draggedElement){var r,o,i,s=this.parentElement.renderedTable.rows;s.forEach((function(e,t){e.row===n.dropTarget&&(r=t),e.row===n.draggedElement&&(o=t,(i=e).isGhostRow=!0)})),s.splice(o,1),s.splice(r,0,i),this.toIndex=this.parentElement.visibleRows.indexOf(this.dropTarget),e.prototype.ghostPositionChanged.call(this)}},t.prototype.clear=function(){this.parentElement.renderedTable.rows.forEach((function(e){e.isGhostRow=!1})),this.parentElement.clearOnDrop(),this.fromIndex=null,this.toIndex=null,document.body.style.userSelect=this.restoreUserSelectValue||"initial",e.prototype.clear.call(this)},t}(o.DragDropCore)},"./src/dragdrop/ranking-choices.ts":function(e,t,n){"use strict";n.r(t),n.d(t,"DragDropRankingChoices",(function(){return l}));var r,o=n("./src/dragdrop/choices.ts"),i=n("./src/utils/cssClassBuilder.ts"),s=n("./src/utils/devices.ts"),a=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),l=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.isDragOverRootNode=!1,t.doDragOver=function(){t.domAdapter.draggedElementShortcut.querySelector(".sv-ranking-item").style.cursor="grabbing"},t.doBanDropHere=function(){t.isDragOverRootNode?t.allowDropHere=!0:t.domAdapter.draggedElementShortcut.querySelector(".sv-ranking-item").style.cursor="not-allowed"},t.doDrop=function(){return t.parentElement.setValue(),t.parentElement},t}return a(t,e),Object.defineProperty(t.prototype,"draggedElementType",{get:function(){return"ranking-item"},enumerable:!1,configurable:!0}),t.prototype.createDraggedElementShortcut=function(e,t,n){var r=document.createElement("div");r.className=this.shortcutClass+" sv-ranking-shortcut",r.style.cssText=" \n          cursor: grabbing;\n          position: absolute;\n          z-index: 10000;\n          border-radius: calc(12.5 * var(--sjs-base-unit, var(--base-unit, 8px)));\n          min-width: 100px;\n          box-shadow: var(--sjs-shadow-medium, 0px 2px 6px 0px rgba(0, 0, 0, 0.1)), var(--sjs-shadow-large, 0px 8px 16px 0px rgba(0, 0, 0, 0.1));\n          background-color: var(--sjs-general-backcolor, var(--background, #fff));\n          font-family: var(--font-family, 'Open Sans');\n        ";var o=t.cloneNode(!0);r.appendChild(o);var i=t.getBoundingClientRect();return r.shortcutXOffset=n.clientX-i.x,r.shortcutYOffset=n.clientY-i.y,this.parentElement&&this.parentElement.useFullItemSizeForShortcut&&(r.style.width=t.offsetWidth+"px",r.style.height=t.offsetHeight+"px"),r},Object.defineProperty(t.prototype,"shortcutClass",{get:function(){return(new i.CssClassBuilder).append(this.parentElement.cssClasses.root).append(this.parentElement.cssClasses.rootMobileMod,s.IsMobile).toString()},enumerable:!1,configurable:!0}),t.prototype.getDropTargetByDataAttributeValue=function(e){return this.parentElement.rankingChoices[e]},t.prototype.findDropTargetNodeByDragOverNode=function(t){return this.isDragOverRootNode=this.getIsDragOverRootNode(t),e.prototype.findDropTargetNodeByDragOverNode.call(this,t)},t.prototype.getIsDragOverRootNode=function(e){return"string"==typeof e.className&&-1!==e.className.indexOf("sv-ranking")},t.prototype.isDropTargetValid=function(e,t){var n=this.parentElement.rankingChoices,r=n.indexOf(this.dropTarget),o=n.indexOf(this.draggedElement);return o>r&&t.classList.contains("sv-dragdrop-moveup")||o<r&&t.classList.contains("sv-dragdrop-movedown")?(this.parentElement.dropTargetNodeMove=null,!1):-1!==n.indexOf(e)},t.prototype.calculateIsBottom=function(e){var t=this.parentElement.rankingChoices;return t.indexOf(this.dropTarget)-t.indexOf(this.draggedElement)>0},t.prototype.afterDragOver=function(e){var t=this.parentElement.rankingChoices,n=t.indexOf(this.dropTarget),r=t.indexOf(this.draggedElement);t.splice(r,1),t.splice(n,0,this.draggedElement),this.parentElement.setPropertyValue("rankingChoices",t),this.updateDraggedElementShortcut(n+1),r!==n&&(e.classList.remove("sv-dragdrop-moveup"),e.classList.remove("sv-dragdrop-movedown"),this.parentElement.dropTargetNodeMove=null),r>n&&(this.parentElement.dropTargetNodeMove="down"),r<n&&(this.parentElement.dropTargetNodeMove="up")},t.prototype.updateDraggedElementShortcut=function(e){var t=null!==e?e+"":"";this.domAdapter.draggedElementShortcut.querySelector(".sv-ranking-item__index").innerText=t},t.prototype.ghostPositionChanged=function(){this.parentElement.currentDropTarget=this.draggedElement,e.prototype.ghostPositionChanged.call(this)},t.prototype.clear=function(){this.parentElement&&(this.parentElement.dropTargetNodeMove=null,this.parentElement.updateRankingChoices(!0)),e.prototype.clear.call(this)},t}(o.DragDropChoices)},"./src/dragdrop/ranking-select-to-rank.ts":function(e,t,n){"use strict";n.r(t),n.d(t,"DragDropRankingSelectToRank",(function(){return s}));var r,o=n("./src/dragdrop/ranking-choices.ts"),i=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),s=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i(t,e),t.prototype.onStartDrag=function(e){var t=e.target.closest(".sv-ranking__container--from");t&&(t.style.minHeight=t.offsetHeight+"px")},t.prototype.findDropTargetNodeByDragOverNode=function(t){if("from-container"===t.dataset.ranking||"to-container"===t.dataset.ranking)return t;if(this.parentElement.isEmpty()){var n=t.closest("[data-ranking='to-container']"),r=t.closest("[data-ranking='from-container']");return n||r||null}return e.prototype.findDropTargetNodeByDragOverNode.call(this,t)},t.prototype.getDropTargetByDataAttributeValue=function(e){return this.parentElement.rankingChoices[e]||this.parentElement.unRankingChoices[e]},t.prototype.getDropTargetByNode=function(t,n){return"to-container"===t.dataset.ranking?"to-container":"from-container"===t.dataset.ranking||t.closest("[data-ranking='from-container']")?"from-container":e.prototype.getDropTargetByNode.call(this,t,n)},t.prototype.isDropTargetValid=function(t,n){return"to-container"===t||"from-container"===t||e.prototype.isDropTargetValid.call(this,t,n)},t.prototype.afterDragOver=function(e){var t=this.parentElement,n=t.rankingChoices,r=t.unRankingChoices;this.isDraggedElementUnranked&&this.isDropTargetRanked?this.doRankBetween(e,r,n,this.selectToRank):this.isDraggedElementRanked&&this.isDropTargetRanked?this.doRankBetween(e,n,n,this.reorderRankedItem):!this.isDraggedElementRanked||this.isDropTargetRanked||this.doRankBetween(e,n,r,this.unselectFromRank)},t.prototype.doRankBetween=function(e,t,n,r){var o=this.parentElement,i=t.indexOf(this.draggedElement),s=n.indexOf(this.dropTarget);-1===s&&(s=n.length),r(o,i,s),this.doUIEffects(e,i,s)},t.prototype.doUIEffects=function(e,t,n){var r=this.parentElement,o="to-container"===this.dropTarget&&r.isEmpty(),i=!this.isDropTargetUnranked||o?n+1:null;this.updateDraggedElementShortcut(i),t!==n&&(e.classList.remove("sv-dragdrop-moveup"),e.classList.remove("sv-dragdrop-movedown"),r.dropTargetNodeMove=null),t>n&&(r.dropTargetNodeMove="down"),t<n&&(r.dropTargetNodeMove="up")},Object.defineProperty(t.prototype,"isDraggedElementRanked",{get:function(){return-1!==this.parentElement.rankingChoices.indexOf(this.draggedElement)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isDropTargetRanked",{get:function(){return"to-container"===this.dropTarget||-1!==this.parentElement.rankingChoices.indexOf(this.dropTarget)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isDraggedElementUnranked",{get:function(){return!this.isDraggedElementRanked},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isDropTargetUnranked",{get:function(){return!this.isDropTargetRanked},enumerable:!1,configurable:!0}),t.prototype.selectToRank=function(e,t,n){var r=e.rankingChoices,o=e.unRankingChoices[t];r.splice(n,0,o),e.setPropertyValue("rankingChoices",r)},t.prototype.unselectFromRank=function(e,t,n){var r=e.rankingChoices;r.splice(t,1),e.setPropertyValue("rankingChoices",r)},t.prototype.reorderRankedItem=function(e,t,n){var r=e.rankingChoices,o=r[t];r.splice(t,1),r.splice(n,0,o),e.setPropertyValue("rankingChoices",r)},t}(o.DragDropRankingChoices)},"./src/dropdownListModel.ts":function(e,t,n){"use strict";n.r(t),n.d(t,"DropdownListModel",(function(){return m}));var r,o=n("./src/base.ts"),i=n("./src/itemvalue.ts"),s=n("./src/jsonobject.ts"),a=n("./src/list.ts"),l=n("./src/popup.ts"),u=n("./src/question_dropdown.ts"),c=n("./src/utils/cssClassBuilder.ts"),p=n("./src/utils/devices.ts"),d=n("./src/utils/utils.ts"),h=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),f=function(e,t,n,r){var o,i=arguments.length,s=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,r);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(i<3?o(s):i>3?o(t,n,s):o(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},m=function(e){function t(t,n){var r=e.call(this)||this;return r.question=t,r.onSelectionChanged=n,r.minPageSize=25,r.loadingItemHeight=40,r._markdownMode=!1,r.selectedItemSelector=".sv-list__item--selected",r.itemSelector=".sv-list__item",r.itemsSettings={skip:0,take:0,totalCount:0,items:[]},r.isRunningLoadQuestionChoices=!1,r.popupCssClasses="sv-single-select-list",r.listModelFilterStringChanged=function(e){r.filterString!==e&&(r.filterString=e)},t.onPropertyChanged.add((function(e,t){r.onPropertyChangedHandler(e,t)})),r.showInputFieldComponent=r.question.showInputFieldComponent,r.listModel=r.createListModel(),r.updateAfterListModelCreated(r.listModel),r.setSearchEnabled(r.question.searchEnabled),r.createPopup(),r.resetItemsSettings(),r}return h(t,e),Object.defineProperty(t.prototype,"focusFirstInputSelector",{get:function(){return this.getFocusFirstInputSelector()},enumerable:!1,configurable:!0}),t.prototype.getFocusFirstInputSelector=function(){return p.IsTouch?this.isValueEmpty(this.question.value)?this.itemSelector:this.selectedItemSelector:!this.listModel.showFilter&&this.question.value?this.selectedItemSelector:""},t.prototype.resetItemsSettings=function(){this.itemsSettings.skip=0,this.itemsSettings.take=Math.max(this.minPageSize,this.question.choicesLazyLoadPageSize),this.itemsSettings.totalCount=0,this.itemsSettings.items=[]},t.prototype.setItems=function(e,t){this.itemsSettings.items=[].concat(this.itemsSettings.items,e),this.itemsSettings.totalCount=t,this.listModel.isAllDataLoaded=this.question.choicesLazyLoadEnabled&&this.itemsSettings.items.length==this.itemsSettings.totalCount,this.question.choices=this.itemsSettings.items},t.prototype.updateQuestionChoices=function(e){var t=this;if(!this.isRunningLoadQuestionChoices){var n=this.itemsSettings.skip+1<this.itemsSettings.totalCount;this.itemsSettings.skip&&!n||(this.isRunningLoadQuestionChoices=!0,this.question.survey.loadQuestionChoices({question:this.question,filter:this.filterString,skip:this.itemsSettings.skip,take:this.itemsSettings.take,setItems:function(n,r){t.isRunningLoadQuestionChoices=!1,t.setItems(n||[],r||0),t.popupRecalculatePosition(t.itemsSettings.skip===t.itemsSettings.take),e&&e()}}),this.itemsSettings.skip+=this.itemsSettings.take)}},t.prototype.updatePopupFocusFirstInputSelector=function(){this._popupModel.focusFirstInputSelector=this.focusFirstInputSelector},t.prototype.createPopup=function(){var e=this;this._popupModel=new l.PopupModel("sv-list",{model:this.listModel},"bottom","center",!1),this._popupModel.displayMode=p.IsTouch?"overlay":"popup",this._popupModel.positionMode="fixed",this._popupModel.isFocusedContainer=!1,this._popupModel.isFocusedContent=p.IsTouch,this._popupModel.setWidthByTarget=!p.IsTouch,this.updatePopupFocusFirstInputSelector(),this.listModel.registerPropertyChangedHandlers(["showFilter"],(function(){e.updatePopupFocusFirstInputSelector()})),this._popupModel.cssClass=this.popupCssClasses,this._popupModel.onVisibilityChanged.add((function(t,n){n.isVisible&&(e.listModel.renderElements=!0),n.isVisible&&e.question.choicesLazyLoadEnabled&&(e.listModel.actions=[],e.updateQuestionChoices()),n.isVisible&&e.question.onOpenedCallBack&&(e.updatePopupFocusFirstInputSelector(),e.question.onOpenedCallBack()),n.isVisible||(e.onHidePopup(),e.question.choicesLazyLoadEnabled&&e.resetItemsSettings()),e.question.processPopupVisiblilityChanged(e.popupModel,n.isVisible)}))},t.prototype.setFilterStringToListModel=function(e){var t=this;if(this.listModel.filterString=e,this.listModel.resetFocusedItem(),this.question.selectedItem&&this.question.selectedItem.text.indexOf(e)>=0)return this.listModel.focusedItem=this.getAvailableItems().filter((function(e){return e.id==t.question.selectedItem.value}))[0],void(this.listModel.filterString&&this.listModel.actions.map((function(e){return e.selectedValue=!1})));this.listModel.focusedItem&&this.listModel.isItemVisible(this.listModel.focusedItem)||this.listModel.focusFirstVisibleItem()},t.prototype.popupRecalculatePosition=function(e){var t=this;setTimeout((function(){t.popupModel.recalculatePosition(e)}),1)},t.prototype.onHidePopup=function(){this.resetFilterString(),this.question.suggestedItem=null,this.listModel.refresh()},t.prototype.getAvailableItems=function(){return this.question.visibleChoices},t.prototype.createListModel=function(){var e=this,t=this.getAvailableItems(),n=this.onSelectionChanged;n||(n=function(t){e.question.value=t.id,e.question.searchEnabled&&e.applyInputString(t),e._popupModel.toggleVisibility()});var r=new a.ListModel(t,n,!1,void 0,this.question.choicesLazyLoadEnabled?this.listModelFilterStringChanged:void 0,this.listElementId);return r.renderElements=!1,r.forceShowFilter=!0,r.areSameItemsCallback=function(e,t){return e===t},r},t.prototype.updateAfterListModelCreated=function(e){var t=this;e.isItemSelected=function(e){return!!e.selected},e.locOwner=this.question,e.onPropertyChanged.add((function(e,n){"hasVerticalScroller"==n.name&&(t.hasScroll=n.newValue)})),e.isAllDataLoaded=!this.question.choicesLazyLoadEnabled},t.prototype.updateCssClasses=function(e,t){this.popupModel.cssClass=(new c.CssClassBuilder).append(e).append(this.popupCssClasses).toString(),this.listModel.cssClasses=t},t.prototype.resetFilterString=function(){this.filterString&&(this.filterString=void 0)},t.prototype.clear=function(){this.inputString=null,this.hintString="",this.resetFilterString()},t.prototype.onSetFilterString=function(){var e=this;this.filterString&&!this.popupModel.isVisible&&(this.popupModel.isVisible=!0);var t=function(){e.setFilterStringToListModel(e.filterString),e.popupRecalculatePosition(!0)};this.question.choicesLazyLoadEnabled?(this.resetItemsSettings(),this.updateQuestionChoices(t)):t()},Object.defineProperty(t.prototype,"isAllDataLoaded",{get:function(){return!!this.itemsSettings.totalCount&&this.itemsSettings.items.length==this.itemsSettings.totalCount},enumerable:!1,configurable:!0}),t.prototype.applyInputString=function(e){(null==e?void 0:e.locText.hasHtml)||this.question.inputFieldComponentName?(this._markdownMode=!0,this.inputString="",this.hintString=""):(this.inputString=null==e?void 0:e.title,this.hintString=null==e?void 0:e.title)},t.prototype.fixInputCase=function(){var e=this.hintStringMiddle;e&&this.inputString!=e&&(this.inputString=e)},t.prototype.applyHintString=function(e){(null==e?void 0:e.locText.hasHtml)||this.question.inputFieldComponentName?(this._markdownMode=!0,this.hintString=""):this.hintString=null==e?void 0:e.title},Object.defineProperty(t.prototype,"inputStringRendered",{get:function(){return this.inputString||""},set:function(e){this.inputString=e,this.filterString=e,this.applyHintString(this.listModel.focusedItem||this.question.selectedItem)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"placeholderRendered",{get:function(){return this.hintString?"":this.question.readOnlyText},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"listElementId",{get:function(){return this.question.inputId+"_list"},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hintStringLC",{get:function(){var e;return(null===(e=this.hintString)||void 0===e?void 0:e.toLowerCase())||""},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"inputStringLC",{get:function(){var e;return(null===(e=this.inputString)||void 0===e?void 0:e.toLowerCase())||""},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"showHintPrefix",{get:function(){return!!this.inputString&&this.hintStringLC.indexOf(this.inputStringLC)>0},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hintStringPrefix",{get:function(){return this.inputString?this.hintString.substring(0,this.hintStringLC.indexOf(this.inputStringLC)):null},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"showHintString",{get:function(){return!!this.question.searchEnabled&&this.hintStringLC&&this.hintStringLC.indexOf(this.inputStringLC)>=0||!this.question.searchEnabled&&this.hintStringLC&&this.question.isEmpty()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hintStringSuffix",{get:function(){return this.hintString.substring(this.hintStringLC.indexOf(this.inputStringLC)+this.inputStringLC.length)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hintStringMiddle",{get:function(){var e=this.hintStringLC.indexOf(this.inputStringLC);return-1==e?null:this.hintString.substring(e,e+this.inputStringLC.length)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"popupModel",{get:function(){return this._popupModel},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"inputReadOnly",{get:function(){return this.question.isInputReadOnly||this.searchEnabled},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 p.IsTouch?"none":"text"},enumerable:!1,configurable:!0}),t.prototype.setSearchEnabled=function(e){this.listModel.searchEnabled=p.IsTouch,this.listModel.showSearchClearButton=p.IsTouch,this.searchEnabled=e},t.prototype.updateItems=function(){this.listModel.setItems(this.getAvailableItems())},t.prototype.onClick=function(e){if(!this.question.readOnly&&(this._popupModel.toggleVisibility(),this.focusItemOnClickAndPopup(),this.searchEnabled&&e&&e.target)){var t=e.target.querySelector("input");t&&t.focus()}},t.prototype.onPropertyChangedHandler=function(e,t){"value"==t.name&&(this.showInputFieldComponent=this.question.showInputFieldComponent)},t.prototype.focusItemOnClickAndPopup=function(){this._popupModel.isVisible&&this.question.value&&this.changeSelectionWithKeyboard(!1)},t.prototype.onClear=function(e){this.question.clearValue(),this._popupModel.isVisible=!1,e&&(e.preventDefault(),e.stopPropagation())},t.prototype.getSelectedAction=function(){return this.question.selectedItem||null},t.prototype.changeSelectionWithKeyboard=function(e){var t,n=this.listModel.focusedItem;!n&&this.question.selectedItem?i.ItemValue.getItemByValue(this.question.choices,this.question.value)&&(this.listModel.focusedItem=this.question.selectedItem):e?this.listModel.focusPrevVisibleItem():this.listModel.focusNextVisibleItem(),this.beforeScrollToFocusedItem(n),this.scrollToFocusedItem(),this.afterScrollToFocusedItem(),this.ariaActivedescendant=null===(t=this.listModel.focusedItem)||void 0===t?void 0:t.elementId},t.prototype.beforeScrollToFocusedItem=function(e){this.question.value&&e&&(e.selectedValue=!1,this.listModel.focusedItem.selectedValue=!this.listModel.filterString,this.question.suggestedItem=this.listModel.focusedItem)},t.prototype.afterScrollToFocusedItem=function(){var e;this.question.value&&!this.listModel.filterString&&this.question.searchEnabled?this.applyInputString(this.listModel.focusedItem||this.question.selectedItem):this.applyHintString(this.listModel.focusedItem||this.question.selectedItem),this.fixInputCase(),this.ariaActivedescendant=null===(e=this.listModel.focusedItem)||void 0===e?void 0:e.elementId},t.prototype.keyHandler=function(e){var t=e.which||e.keyCode;if(this.popupModel.isVisible&&38===e.keyCode?(this.changeSelectionWithKeyboard(!0),e.preventDefault(),e.stopPropagation()):40===e.keyCode&&(this.popupModel.isVisible||this.popupModel.toggleVisibility(),this.changeSelectionWithKeyboard(!1),e.preventDefault(),e.stopPropagation()),9===e.keyCode)this.popupModel.isVisible=!1;else if(this.popupModel.isVisible||13!==e.keyCode&&32!==e.keyCode)if(!this.popupModel.isVisible||13!==e.keyCode&&(32!==e.keyCode||this.question.searchEnabled&&this.inputString))if(46===t||8===t)this.searchEnabled||this.onClear(e);else if(27===e.keyCode)this._popupModel.isVisible=!1,this.hintString="",this.onEscape();else{if((38===e.keyCode||40===e.keyCode||32===e.keyCode&&!this.question.searchEnabled)&&(e.preventDefault(),e.stopPropagation()),32===e.keyCode&&this.question.searchEnabled)return;Object(d.doKey2ClickUp)(e,{processEsc:!1,disableTabStop:this.question.isInputReadOnly})}else 13===e.keyCode&&this.question.searchEnabled&&!this.inputString&&this.question instanceof u.QuestionDropdownModel&&!this._markdownMode&&this.question.value?(this._popupModel.isVisible=!1,this.onClear(e),this.question.survey.questionEditFinishCallback(this.question,e)):(this.listModel.selectFocusedItem(),this.onFocus(e),this.question.survey.questionEditFinishCallback(this.question,e)),e.preventDefault(),e.stopPropagation();else this.popupModel.toggleVisibility(),this.changeSelectionWithKeyboard(!1),e.preventDefault(),e.stopPropagation()},t.prototype.onEscape=function(){this.question.searchEnabled&&this.applyInputString(this.question.selectedItem)},t.prototype.onScroll=function(e){var t=e.target;t.scrollHeight-(t.scrollTop+t.offsetHeight)<=this.loadingItemHeight&&this.updateQuestionChoices()},t.prototype.onBlur=function(e){this.focused=!1,this.popupModel.isVisible&&p.IsTouch?this._popupModel.isVisible=!0:(this.resetFilterString(),this.inputString=null,this.hintString="",Object(d.doKey2ClickBlur)(e),this._popupModel.isVisible=!1,e.stopPropagation())},t.prototype.onFocus=function(e){this.focused=!0,this.setInputStringFromSelectedItem(this.question.selectedItem)},t.prototype.setInputStringFromSelectedItem=function(e){this.focused&&(this.question.searchEnabled&&e?this.applyInputString(e):this.inputString=null)},t.prototype.dispose=function(){e.prototype.dispose.call(this),this.listModel&&this.listModel.dispose(),this.popupModel&&this.popupModel.dispose()},t.prototype.scrollToFocusedItem=function(){this.listModel.scrollToFocusedItem()},f([Object(s.property)({defaultValue:!0})],t.prototype,"searchEnabled",void 0),f([Object(s.property)({defaultValue:"",onSet:function(e,t){t.onSetFilterString()}})],t.prototype,"filterString",void 0),f([Object(s.property)({defaultValue:"",onSet:function(e,t){t.question.inputHasValue=!!e}})],t.prototype,"inputString",void 0),f([Object(s.property)({})],t.prototype,"showInputFieldComponent",void 0),f([Object(s.property)()],t.prototype,"ariaActivedescendant",void 0),f([Object(s.property)({defaultValue:!1,onSet:function(e,t){e?t.listModel.addScrollEventListener((function(e){t.onScroll(e)})):t.listModel.removeScrollEventListener()}})],t.prototype,"hasScroll",void 0),f([Object(s.property)({defaultValue:""})],t.prototype,"hintString",void 0),t}(o.Base)},"./src/dropdownMultiSelectListModel.ts":function(e,t,n){"use strict";n.r(t),n.d(t,"DropdownMultiSelectListModel",(function(){return d}));var r,o=n("./src/base.ts"),i=n("./src/dropdownListModel.ts"),s=n("./src/jsonobject.ts"),a=n("./src/multiSelectListModel.ts"),l=n("./src/settings.ts"),u=n("./src/utils/devices.ts"),c=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),p=function(e,t,n,r){var o,i=arguments.length,s=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,r);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(i<3?o(s):i>3?o(t,n,s):o(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},d=function(e){function t(t,n){var r=e.call(this,t,n)||this;return r.popupCssClasses="sv-multi-select-list",r.setHideSelectedItems(t.hideSelectedItems),r.syncFilterStringPlaceholder(),r.closeOnSelect=t.closeOnSelect,r}return c(t,e),t.prototype.updateListState=function(){this.listModel.updateState(),this.syncFilterStringPlaceholder()},t.prototype.syncFilterStringPlaceholder=function(){this.getSelectedActions().length||this.question.selectedItems.length||this.listModel.focusedItem?this.filterStringPlaceholder=void 0:this.filterStringPlaceholder=this.question.placeholder},t.prototype.getSelectedActions=function(){return this.listModel.actions.filter((function(e){return e.selected}))},t.prototype.getFocusFirstInputSelector=function(){return this.listModel.hideSelectedItems&&u.IsTouch&&!this.isValueEmpty(this.question.value)?this.itemSelector:e.prototype.getFocusFirstInputSelector.call(this)},t.prototype.createListModel=function(){var e=this,t=this.getAvailableItems(),n=this.onSelectionChanged;n||(n=function(t,n){e.resetFilterString(),"selectall"===t.value?e.selectAllItems():"added"===n&&t.value===l.settings.noneItemValue?e.selectNoneItem():"added"===n?e.selectItem(t.value):"removed"===n&&e.deselectItem(t.value),e.popupRecalculatePosition(!1),e.closeOnSelect&&(e.popupModel.isVisible=!1)});var r=new a.MultiSelectListModel(t,n,!1,void 0,this.question.choicesLazyLoadEnabled?this.listModelFilterStringChanged:void 0,this.listElementId);return r.forceShowFilter=!0,r},t.prototype.resetFilterString=function(){e.prototype.resetFilterString.call(this),this.inputString=null,this.hintString=""},Object.defineProperty(t.prototype,"shouldResetAfterCancel",{get:function(){return u.IsTouch&&!this.closeOnSelect},enumerable:!1,configurable:!0}),t.prototype.createPopup=function(){var t=this;e.prototype.createPopup.call(this),this.popupModel.onFooterActionsCreated.add((function(e,n){t.shouldResetAfterCancel&&n.actions.push({id:"sv-dropdown-done-button",title:t.doneButtonCaption,innerCss:"sv-popup__button--done",needSpace:!0,action:function(){t.popupModel.isVisible=!1},enabled:new o.ComputedUpdater((function(){return!t.isTwoValueEquals(t.question.renderedValue,t.previousValue)}))})})),this.popupModel.onVisibilityChanged.add((function(e,n){t.shouldResetAfterCancel&&n.isVisible&&(t.previousValue=[].concat(t.question.renderedValue||[]))})),this.popupModel.onCancel=function(){t.shouldResetAfterCancel&&(t.question.renderedValue=t.previousValue,t.updateListState())}},t.prototype.selectAllItems=function(){this.question.toggleSelectAll(),this.updateListState()},t.prototype.selectNoneItem=function(){this.question.renderedValue=[l.settings.noneItemValue],this.updateListState()},t.prototype.selectItem=function(e){var t=[].concat(this.question.renderedValue||[]);t.push(e),this.question.renderedValue=t,this.updateListState()},t.prototype.deselectItem=function(e){var t=[].concat(this.question.renderedValue||[]);t.splice(t.indexOf(e),1),this.question.renderedValue=t,this.applyHintString(this.listModel.focusedItem),this.updateListState()},t.prototype.clear=function(){e.prototype.clear.call(this),this.syncFilterStringPlaceholder()},t.prototype.onClear=function(t){e.prototype.onClear.call(this,t),this.updateListState()},t.prototype.setHideSelectedItems=function(e){this.listModel.hideSelectedItems=e,this.updateListState()},t.prototype.removeLastSelectedItem=function(){this.deselectItem(this.question.renderedValue[this.question.renderedValue.length-1]),this.popupRecalculatePosition(!1)},t.prototype.inputKeyHandler=function(e){8!==e.keyCode||this.filterString||(this.removeLastSelectedItem(),e.preventDefault(),e.stopPropagation())},t.prototype.setInputStringFromSelectedItem=function(e){this.question.searchEnabled&&(this.inputString=null)},t.prototype.focusItemOnClickAndPopup=function(){},t.prototype.onEscape=function(){},t.prototype.beforeScrollToFocusedItem=function(e){},t.prototype.afterScrollToFocusedItem=function(){var e;(null===(e=this.listModel.focusedItem)||void 0===e?void 0:e.selected)?this.hintString="":this.applyHintString(this.listModel.focusedItem||this.question.selectedItem),this.syncFilterStringPlaceholder()},t.prototype.onPropertyChangedHandler=function(t,n){e.prototype.onPropertyChangedHandler.call(this,t,n),"value"!==n.name&&"renderedValue"!==n.name||this.syncFilterStringPlaceholder()},p([Object(s.property)({defaultValue:""})],t.prototype,"filterStringPlaceholder",void 0),p([Object(s.property)({defaultValue:!0})],t.prototype,"closeOnSelect",void 0),p([Object(s.property)()],t.prototype,"previousValue",void 0),p([Object(s.property)({localizable:{defaultStr:"tagboxDoneButtonCaption"}})],t.prototype,"doneButtonCaption",void 0),t}(i.DropdownListModel)},"./src/dxSurveyService.ts":function(e,t,n){"use strict";n.r(t),n.d(t,"dxSurveyService",(function(){return o}));var r=n("./src/settings.ts"),o=function(){function e(){}return Object.defineProperty(e,"serviceUrl",{get:function(){return r.settings.web.surveyServiceUrl},set:function(e){r.settings.web.surveyServiceUrl=e},enumerable:!1,configurable:!0}),e.prototype.loadSurvey=function(t,n){var r=new XMLHttpRequest;r.open("GET",e.serviceUrl+"/getSurvey?surveyId="+t),r.setRequestHeader("Content-Type","application/x-www-form-urlencoded"),r.onload=function(){var e=JSON.parse(r.response);n(200==r.status,e,r.response)},r.send()},e.prototype.getSurveyJsonAndIsCompleted=function(t,n,r){var o=new XMLHttpRequest;o.open("GET",e.serviceUrl+"/getSurveyAndIsCompleted?surveyId="+t+"&clientId="+n),o.setRequestHeader("Content-Type","application/x-www-form-urlencoded"),o.onload=function(){var e=JSON.parse(o.response),t=e?e.survey:null,n=e?e.isCompleted:null;r(200==o.status,t,n,o.response)},o.send()},e.prototype.sendResult=function(t,n,r,o,i){void 0===o&&(o=null),void 0===i&&(i=!1);var s=new XMLHttpRequest;s.open("POST",e.serviceUrl+"/post/"),s.setRequestHeader("Content-Type","application/json; charset=utf-8");var a={postId:t,surveyResult:JSON.stringify(n)};o&&(a.clientId=o),i&&(a.isPartialCompleted=!0);var l=JSON.stringify(a);s.onload=s.onerror=function(){r&&r(200===s.status,s.response,s)},s.send(l)},e.prototype.sendFile=function(t,n,r){var o=new XMLHttpRequest;o.onload=o.onerror=function(){r&&r(200==o.status,JSON.parse(o.response))},o.open("POST",e.serviceUrl+"/upload/",!0);var i=new FormData;i.append("file",n),i.append("postId",t),o.send(i)},e.prototype.getResult=function(t,n,r){var o=new XMLHttpRequest,i="resultId="+t+"&name="+n;o.open("GET",e.serviceUrl+"/getResult?"+i),o.setRequestHeader("Content-Type","application/x-www-form-urlencoded"),o.onload=function(){var e=null,t=null;if(200==o.status)for(var n in t=[],(e=JSON.parse(o.response)).QuestionResult){var i={name:n,value:e.QuestionResult[n]};t.push(i)}r(200==o.status,e,t,o.response)},o.send()},e.prototype.isCompleted=function(t,n,r){var o=new XMLHttpRequest,i="resultId="+t+"&clientId="+n;o.open("GET",e.serviceUrl+"/isCompleted?"+i),o.setRequestHeader("Content-Type","application/x-www-form-urlencoded"),o.onload=function(){var e=null;200==o.status&&(e=JSON.parse(o.response)),r(200==o.status,e,o.response)},o.send()},e}()},"./src/element-helper.ts":function(e,t,n){"use strict";n.r(t),n.d(t,"ElementHelper",(function(){return r}));var r=function(){function e(){}return e.focusElement=function(e){e&&e.focus()},e.visibility=function(e){var t=window.getComputedStyle(e);return"none"!==t.display&&"hidden"!==t.visibility&&(!e.parentElement||this.visibility(e.parentElement))},e.getNextElementPreorder=function(e){var t=e.nextElementSibling?e.nextElementSibling:e.parentElement.firstElementChild;return this.visibility(t)?t:this.getNextElementPreorder(t)},e.getNextElementPostorder=function(e){var t=e.previousElementSibling?e.previousElementSibling:e.parentElement.lastElementChild;return this.visibility(t)?t:this.getNextElementPostorder(t)},e.hasHorizontalScroller=function(e){return!!e&&e.scrollWidth>e.offsetWidth},e.hasVerticalScroller=function(e){return!!e&&e.scrollHeight>e.offsetHeight},e}()},"./src/entries/chunks/model.ts":function(e,t,n){"use strict";n.r(t),n.d(t,"Version",(function(){return Ae})),n.d(t,"ReleaseDate",(function(){return ke})),n.d(t,"checkLibraryVersion",(function(){return Ne})),n.d(t,"setLicenseKey",(function(){return Le})),n.d(t,"hasLicense",(function(){return je}));var r=n("./src/settings.ts");n.d(t,"settings",(function(){return r.settings}));var o=n("./src/helpers.ts");n.d(t,"Helpers",(function(){return o.Helpers}));var i=n("./src/validator.ts");n.d(t,"AnswerCountValidator",(function(){return i.AnswerCountValidator})),n.d(t,"EmailValidator",(function(){return i.EmailValidator})),n.d(t,"NumericValidator",(function(){return i.NumericValidator})),n.d(t,"RegexValidator",(function(){return i.RegexValidator})),n.d(t,"SurveyValidator",(function(){return i.SurveyValidator})),n.d(t,"TextValidator",(function(){return i.TextValidator})),n.d(t,"ValidatorResult",(function(){return i.ValidatorResult})),n.d(t,"ExpressionValidator",(function(){return i.ExpressionValidator})),n.d(t,"ValidatorRunner",(function(){return i.ValidatorRunner}));var s=n("./src/itemvalue.ts");n.d(t,"ItemValue",(function(){return s.ItemValue}));var a=n("./src/base.ts");n.d(t,"Base",(function(){return a.Base})),n.d(t,"Event",(function(){return a.Event})),n.d(t,"EventBase",(function(){return a.EventBase})),n.d(t,"ArrayChanges",(function(){return a.ArrayChanges})),n.d(t,"ComputedUpdater",(function(){return a.ComputedUpdater}));var l=n("./src/survey-error.ts");n.d(t,"SurveyError",(function(){return l.SurveyError}));var u=n("./src/survey-element.ts");n.d(t,"SurveyElementCore",(function(){return u.SurveyElementCore})),n.d(t,"SurveyElement",(function(){return u.SurveyElement})),n.d(t,"DragTypeOverMeEnum",(function(){return u.DragTypeOverMeEnum}));var c=n("./src/calculatedValue.ts");n.d(t,"CalculatedValue",(function(){return c.CalculatedValue}));var p=n("./src/error.ts");n.d(t,"CustomError",(function(){return p.CustomError})),n.d(t,"AnswerRequiredError",(function(){return p.AnswerRequiredError})),n.d(t,"OneAnswerRequiredError",(function(){return p.OneAnswerRequiredError})),n.d(t,"RequreNumericError",(function(){return p.RequreNumericError})),n.d(t,"ExceedSizeError",(function(){return p.ExceedSizeError}));var d=n("./src/localizablestring.ts");n.d(t,"LocalizableString",(function(){return d.LocalizableString})),n.d(t,"LocalizableStrings",(function(){return d.LocalizableStrings}));var h=n("./src/expressionItems.ts");n.d(t,"HtmlConditionItem",(function(){return h.HtmlConditionItem})),n.d(t,"UrlConditionItem",(function(){return h.UrlConditionItem}));var f=n("./src/choicesRestful.ts");n.d(t,"ChoicesRestful",(function(){return f.ChoicesRestful})),n.d(t,"ChoicesRestfull",(function(){return f.ChoicesRestfull}));var m=n("./src/functionsfactory.ts");n.d(t,"FunctionFactory",(function(){return m.FunctionFactory})),n.d(t,"registerFunction",(function(){return m.registerFunction}));var g=n("./src/conditions.ts");n.d(t,"ConditionRunner",(function(){return g.ConditionRunner})),n.d(t,"ExpressionRunner",(function(){return g.ExpressionRunner})),n.d(t,"ExpressionExecutor",(function(){return g.ExpressionExecutor}));var y=n("./src/expressions/expressions.ts");n.d(t,"Operand",(function(){return y.Operand})),n.d(t,"Const",(function(){return y.Const})),n.d(t,"BinaryOperand",(function(){return y.BinaryOperand})),n.d(t,"Variable",(function(){return y.Variable})),n.d(t,"FunctionOperand",(function(){return y.FunctionOperand})),n.d(t,"ArrayOperand",(function(){return y.ArrayOperand})),n.d(t,"UnaryOperand",(function(){return y.UnaryOperand}));var v=n("./src/conditionsParser.ts");n.d(t,"ConditionsParser",(function(){return v.ConditionsParser}));var b=n("./src/conditionProcessValue.ts");n.d(t,"ProcessValue",(function(){return b.ProcessValue}));var C=n("./src/jsonobject.ts");n.d(t,"JsonError",(function(){return C.JsonError})),n.d(t,"JsonIncorrectTypeError",(function(){return C.JsonIncorrectTypeError})),n.d(t,"JsonMetadata",(function(){return C.JsonMetadata})),n.d(t,"JsonMetadataClass",(function(){return C.JsonMetadataClass})),n.d(t,"JsonMissingTypeError",(function(){return C.JsonMissingTypeError})),n.d(t,"JsonMissingTypeErrorBase",(function(){return C.JsonMissingTypeErrorBase})),n.d(t,"JsonObject",(function(){return C.JsonObject})),n.d(t,"JsonObjectProperty",(function(){return C.JsonObjectProperty})),n.d(t,"JsonRequiredPropertyError",(function(){return C.JsonRequiredPropertyError})),n.d(t,"JsonUnknownPropertyError",(function(){return C.JsonUnknownPropertyError})),n.d(t,"Serializer",(function(){return C.Serializer})),n.d(t,"property",(function(){return C.property})),n.d(t,"propertyArray",(function(){return C.propertyArray}));var w=n("./src/question_matrixdropdownbase.ts");n.d(t,"MatrixDropdownCell",(function(){return w.MatrixDropdownCell})),n.d(t,"MatrixDropdownRowModelBase",(function(){return w.MatrixDropdownRowModelBase})),n.d(t,"QuestionMatrixDropdownModelBase",(function(){return w.QuestionMatrixDropdownModelBase}));var x=n("./src/question_matrixdropdowncolumn.ts");n.d(t,"MatrixDropdownColumn",(function(){return x.MatrixDropdownColumn})),n.d(t,"matrixDropdownColumnTypes",(function(){return x.matrixDropdownColumnTypes}));var P=n("./src/question_matrixdropdownrendered.ts");n.d(t,"QuestionMatrixDropdownRenderedCell",(function(){return P.QuestionMatrixDropdownRenderedCell})),n.d(t,"QuestionMatrixDropdownRenderedRow",(function(){return P.QuestionMatrixDropdownRenderedRow})),n.d(t,"QuestionMatrixDropdownRenderedTable",(function(){return P.QuestionMatrixDropdownRenderedTable}));var S=n("./src/question_matrixdropdown.ts");n.d(t,"MatrixDropdownRowModel",(function(){return S.MatrixDropdownRowModel})),n.d(t,"QuestionMatrixDropdownModel",(function(){return S.QuestionMatrixDropdownModel}));var E=n("./src/question_matrixdynamic.ts");n.d(t,"MatrixDynamicRowModel",(function(){return E.MatrixDynamicRowModel})),n.d(t,"QuestionMatrixDynamicModel",(function(){return E.QuestionMatrixDynamicModel}));var T=n("./src/question_matrix.ts");n.d(t,"MatrixRowModel",(function(){return T.MatrixRowModel})),n.d(t,"MatrixCells",(function(){return T.MatrixCells})),n.d(t,"QuestionMatrixModel",(function(){return T.QuestionMatrixModel}));var O=n("./src/martixBase.ts");n.d(t,"QuestionMatrixBaseModel",(function(){return O.QuestionMatrixBaseModel}));var V=n("./src/question_multipletext.ts");n.d(t,"MultipleTextItemModel",(function(){return V.MultipleTextItemModel})),n.d(t,"QuestionMultipleTextModel",(function(){return V.QuestionMultipleTextModel})),n.d(t,"MultipleTextEditorModel",(function(){return V.MultipleTextEditorModel}));var _=n("./src/panel.ts");n.d(t,"PanelModel",(function(){return _.PanelModel})),n.d(t,"PanelModelBase",(function(){return _.PanelModelBase})),n.d(t,"QuestionRowModel",(function(){return _.QuestionRowModel}));var R=n("./src/flowpanel.ts");n.d(t,"FlowPanelModel",(function(){return R.FlowPanelModel}));var I=n("./src/page.ts");n.d(t,"PageModel",(function(){return I.PageModel})),n("./src/template-renderer.ts");var D=n("./src/defaultTitle.ts");n.d(t,"DefaultTitleModel",(function(){return D.DefaultTitleModel}));var A=n("./src/question.ts");n.d(t,"Question",(function(){return A.Question}));var k=n("./src/questionnonvalue.ts");n.d(t,"QuestionNonValue",(function(){return k.QuestionNonValue}));var M=n("./src/question_empty.ts");n.d(t,"QuestionEmptyModel",(function(){return M.QuestionEmptyModel}));var N=n("./src/question_baseselect.ts");n.d(t,"QuestionCheckboxBase",(function(){return N.QuestionCheckboxBase})),n.d(t,"QuestionSelectBase",(function(){return N.QuestionSelectBase}));var L=n("./src/question_checkbox.ts");n.d(t,"QuestionCheckboxModel",(function(){return L.QuestionCheckboxModel}));var j=n("./src/question_tagbox.ts");n.d(t,"QuestionTagboxModel",(function(){return j.QuestionTagboxModel}));var q=n("./src/question_ranking.ts");n.d(t,"QuestionRankingModel",(function(){return q.QuestionRankingModel}));var F=n("./src/question_comment.ts");n.d(t,"QuestionCommentModel",(function(){return F.QuestionCommentModel}));var B=n("./src/question_dropdown.ts");n.d(t,"QuestionDropdownModel",(function(){return B.QuestionDropdownModel}));var Q=n("./src/questionfactory.ts");n.d(t,"QuestionFactory",(function(){return Q.QuestionFactory})),n.d(t,"ElementFactory",(function(){return Q.ElementFactory}));var H=n("./src/question_file.ts");n.d(t,"QuestionFileModel",(function(){return H.QuestionFileModel}));var z=n("./src/question_html.ts");n.d(t,"QuestionHtmlModel",(function(){return z.QuestionHtmlModel}));var U=n("./src/question_radiogroup.ts");n.d(t,"QuestionRadiogroupModel",(function(){return U.QuestionRadiogroupModel}));var W=n("./src/question_rating.ts");n.d(t,"QuestionRatingModel",(function(){return W.QuestionRatingModel})),n.d(t,"RenderedRatingItem",(function(){return W.RenderedRatingItem}));var G=n("./src/question_expression.ts");n.d(t,"QuestionExpressionModel",(function(){return G.QuestionExpressionModel}));var $=n("./src/question_textbase.ts");n.d(t,"QuestionTextBase",(function(){return $.QuestionTextBase})),n.d(t,"CharacterCounter",(function(){return $.CharacterCounter}));var J=n("./src/question_text.ts");n.d(t,"QuestionTextModel",(function(){return J.QuestionTextModel}));var K=n("./src/question_boolean.ts");n.d(t,"QuestionBooleanModel",(function(){return K.QuestionBooleanModel}));var Y=n("./src/question_imagepicker.ts");n.d(t,"QuestionImagePickerModel",(function(){return Y.QuestionImagePickerModel})),n.d(t,"ImageItemValue",(function(){return Y.ImageItemValue}));var X=n("./src/question_image.ts");n.d(t,"QuestionImageModel",(function(){return X.QuestionImageModel}));var Z=n("./src/question_signaturepad.ts");n.d(t,"QuestionSignaturePadModel",(function(){return Z.QuestionSignaturePadModel}));var ee=n("./src/question_paneldynamic.ts");n.d(t,"QuestionPanelDynamicModel",(function(){return ee.QuestionPanelDynamicModel})),n.d(t,"QuestionPanelDynamicItem",(function(){return ee.QuestionPanelDynamicItem}));var te=n("./src/surveytimer.ts");n.d(t,"SurveyTimer",(function(){return te.SurveyTimer}));var ne=n("./src/surveyTimerModel.ts");n.d(t,"SurveyTimerModel",(function(){return ne.SurveyTimerModel}));var re=n("./src/surveyToc.ts");n.d(t,"tryNavigateToPage",(function(){return re.tryNavigateToPage})),n.d(t,"tryFocusPage",(function(){return re.tryFocusPage})),n.d(t,"createTOCListModel",(function(){return re.createTOCListModel})),n.d(t,"getTocRootCss",(function(){return re.getTocRootCss})),n.d(t,"TOCModel",(function(){return re.TOCModel}));var oe=n("./src/surveyProgress.ts");n.d(t,"SurveyProgressModel",(function(){return oe.SurveyProgressModel}));var ie=n("./src/surveyProgressButtons.ts");n.d(t,"SurveyProgressButtonsModel",(function(){return ie.SurveyProgressButtonsModel})),n("./src/themes.ts");var se=n("./src/survey.ts");n.d(t,"SurveyModel",(function(){return se.SurveyModel})),n("./src/survey-events-api.ts");var ae=n("./src/trigger.ts");n.d(t,"SurveyTrigger",(function(){return ae.SurveyTrigger})),n.d(t,"SurveyTriggerComplete",(function(){return ae.SurveyTriggerComplete})),n.d(t,"SurveyTriggerSetValue",(function(){return ae.SurveyTriggerSetValue})),n.d(t,"SurveyTriggerVisible",(function(){return ae.SurveyTriggerVisible})),n.d(t,"SurveyTriggerCopyValue",(function(){return ae.SurveyTriggerCopyValue})),n.d(t,"SurveyTriggerRunExpression",(function(){return ae.SurveyTriggerRunExpression})),n.d(t,"Trigger",(function(){return ae.Trigger}));var le=n("./src/popup-survey.ts");n.d(t,"PopupSurveyModel",(function(){return le.PopupSurveyModel})),n.d(t,"SurveyWindowModel",(function(){return le.SurveyWindowModel}));var ue=n("./src/textPreProcessor.ts");n.d(t,"TextPreProcessor",(function(){return ue.TextPreProcessor}));var ce=n("./src/notifier.ts");n.d(t,"Notifier",(function(){return ce.Notifier}));var pe=n("./src/dxSurveyService.ts");n.d(t,"dxSurveyService",(function(){return pe.dxSurveyService}));var de=n("./src/localization/english.ts");n.d(t,"englishStrings",(function(){return de.englishStrings}));var he=n("./src/surveyStrings.ts");n.d(t,"surveyLocalization",(function(){return he.surveyLocalization})),n.d(t,"surveyStrings",(function(){return he.surveyStrings}));var fe=n("./src/questionCustomWidgets.ts");n.d(t,"QuestionCustomWidget",(function(){return fe.QuestionCustomWidget})),n.d(t,"CustomWidgetCollection",(function(){return fe.CustomWidgetCollection}));var me=n("./src/question_custom.ts");n.d(t,"QuestionCustomModel",(function(){return me.QuestionCustomModel})),n.d(t,"QuestionCompositeModel",(function(){return me.QuestionCompositeModel})),n.d(t,"ComponentQuestionJSON",(function(){return me.ComponentQuestionJSON})),n.d(t,"ComponentCollection",(function(){return me.ComponentCollection}));var ge=n("./src/stylesmanager.ts");n.d(t,"StylesManager",(function(){return ge.StylesManager}));var ye=n("./src/list.ts");n.d(t,"ListModel",(function(){return ye.ListModel}));var ve=n("./src/multiSelectListModel.ts");n.d(t,"MultiSelectListModel",(function(){return ve.MultiSelectListModel}));var be=n("./src/popup.ts");n.d(t,"PopupModel",(function(){return be.PopupModel})),n.d(t,"createDialogOptions",(function(){return be.createDialogOptions}));var Ce=n("./src/popup-view-model.ts");n.d(t,"PopupBaseViewModel",(function(){return Ce.PopupBaseViewModel}));var we=n("./src/popup-dropdown-view-model.ts");n.d(t,"PopupDropdownViewModel",(function(){return we.PopupDropdownViewModel}));var xe=n("./src/popup-modal-view-model.ts");n.d(t,"PopupModalViewModel",(function(){return xe.PopupModalViewModel}));var Pe=n("./src/popup-utils.ts");n.d(t,"createPopupViewModel",(function(){return Pe.createPopupViewModel})),n.d(t,"createPopupModalViewModel",(function(){return Pe.createPopupModalViewModel}));var Se=n("./src/dropdownListModel.ts");n.d(t,"DropdownListModel",(function(){return Se.DropdownListModel}));var Ee=n("./src/dropdownMultiSelectListModel.ts");n.d(t,"DropdownMultiSelectListModel",(function(){return Ee.DropdownMultiSelectListModel}));var Te=n("./src/question_buttongroup.ts");n.d(t,"QuestionButtonGroupModel",(function(){return Te.QuestionButtonGroupModel})),n.d(t,"ButtonGroupItemModel",(function(){return Te.ButtonGroupItemModel})),n.d(t,"ButtonGroupItemValue",(function(){return Te.ButtonGroupItemValue}));var Oe=n("./src/utils/devices.ts");n.d(t,"IsMobile",(function(){return Oe.IsMobile})),n.d(t,"IsTouch",(function(){return Oe.IsTouch})),n.d(t,"_setIsTouch",(function(){return Oe._setIsTouch}));var Ve=n("./src/utils/utils.ts");n.d(t,"confirmAction",(function(){return Ve.confirmAction})),n.d(t,"detectIEOrEdge",(function(){return Ve.detectIEOrEdge})),n.d(t,"doKey2ClickUp",(function(){return Ve.doKey2ClickUp})),n.d(t,"doKey2ClickDown",(function(){return Ve.doKey2ClickDown})),n.d(t,"doKey2ClickBlur",(function(){return Ve.doKey2ClickBlur})),n.d(t,"loadFileFromBase64",(function(){return Ve.loadFileFromBase64})),n.d(t,"increaseHeightByContent",(function(){return Ve.increaseHeightByContent})),n.d(t,"createSvg",(function(){return Ve.createSvg})),n.d(t,"sanitizeEditableContent",(function(){return Ve.sanitizeEditableContent}));var _e=n("./src/utils/cssClassBuilder.ts");n.d(t,"CssClassBuilder",(function(){return _e.CssClassBuilder}));var Re=n("./src/defaultCss/defaultV2Css.ts");n.d(t,"surveyCss",(function(){return Re.surveyCss})),n.d(t,"defaultV2Css",(function(){return Re.defaultV2Css})),n.d(t,"defaultV2ThemeName",(function(){return Re.defaultV2ThemeName}));var Ie=n("./src/dragdrop/core.ts");n.d(t,"DragDropCore",(function(){return Ie.DragDropCore}));var De=n("./src/dragdrop/choices.ts");n.d(t,"DragDropChoices",(function(){return De.DragDropChoices}));var Ae,ke,Me=n("./src/dragdrop/ranking-select-to-rank.ts");function Ne(e,t){if(Ae!=e){var n="survey-core has version '"+Ae+"' and "+t+" has version '"+e+"'. SurveyJS libraries should have the same versions to work correctly.";console.error(n)}}function Le(e){!function(e,t,n){if(e){var r=function(e){var t,n,r,o={},i=0,s=0,a="",l=String.fromCharCode,u=e.length;for(t=0;t<64;t++)o["ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt(t)]=t;for(n=0;n<u;n++)for(i=(i<<6)+o[e.charAt(n)],s+=6;s>=8;)((r=i>>>(s-=8)&255)||n<u-2)&&(a+=l(r));return a}(e);if(r){var o=r.indexOf(";");o<0||(r=r.substring(o+1)).split(",").forEach((function(e){var r=e.indexOf("=");r>0&&(t[e.substring(0,r)]=new Date(n)<=new Date(e.substring(r+1)))}))}}}(e,qe,ke)}function je(e){return!0===qe[e.toString()]}n.d(t,"DragDropRankingSelectToRank",(function(){return Me.DragDropRankingSelectToRank})),Ae="1.9.103",ke="2023-08-15";var qe={}},"./src/entries/core-wo-model.ts":function(e,t,n){"use strict";n.r(t);var r=n("./src/entries/chunks/model.ts");n.d(t,"Version",(function(){return r.Version})),n.d(t,"ReleaseDate",(function(){return r.ReleaseDate})),n.d(t,"checkLibraryVersion",(function(){return r.checkLibraryVersion})),n.d(t,"setLicenseKey",(function(){return r.setLicenseKey})),n.d(t,"hasLicense",(function(){return r.hasLicense})),n.d(t,"settings",(function(){return r.settings})),n.d(t,"Helpers",(function(){return r.Helpers})),n.d(t,"AnswerCountValidator",(function(){return r.AnswerCountValidator})),n.d(t,"EmailValidator",(function(){return r.EmailValidator})),n.d(t,"NumericValidator",(function(){return r.NumericValidator})),n.d(t,"RegexValidator",(function(){return r.RegexValidator})),n.d(t,"SurveyValidator",(function(){return r.SurveyValidator})),n.d(t,"TextValidator",(function(){return r.TextValidator})),n.d(t,"ValidatorResult",(function(){return r.ValidatorResult})),n.d(t,"ExpressionValidator",(function(){return r.ExpressionValidator})),n.d(t,"ValidatorRunner",(function(){return r.ValidatorRunner})),n.d(t,"ItemValue",(function(){return r.ItemValue})),n.d(t,"Base",(function(){return r.Base})),n.d(t,"Event",(function(){return r.Event})),n.d(t,"EventBase",(function(){return r.EventBase})),n.d(t,"ArrayChanges",(function(){return r.ArrayChanges})),n.d(t,"ComputedUpdater",(function(){return r.ComputedUpdater})),n.d(t,"SurveyError",(function(){return r.SurveyError})),n.d(t,"SurveyElementCore",(function(){return r.SurveyElementCore})),n.d(t,"SurveyElement",(function(){return r.SurveyElement})),n.d(t,"DragTypeOverMeEnum",(function(){return r.DragTypeOverMeEnum})),n.d(t,"CalculatedValue",(function(){return r.CalculatedValue})),n.d(t,"CustomError",(function(){return r.CustomError})),n.d(t,"AnswerRequiredError",(function(){return r.AnswerRequiredError})),n.d(t,"OneAnswerRequiredError",(function(){return r.OneAnswerRequiredError})),n.d(t,"RequreNumericError",(function(){return r.RequreNumericError})),n.d(t,"ExceedSizeError",(function(){return r.ExceedSizeError})),n.d(t,"LocalizableString",(function(){return r.LocalizableString})),n.d(t,"LocalizableStrings",(function(){return r.LocalizableStrings})),n.d(t,"HtmlConditionItem",(function(){return r.HtmlConditionItem})),n.d(t,"UrlConditionItem",(function(){return r.UrlConditionItem})),n.d(t,"ChoicesRestful",(function(){return r.ChoicesRestful})),n.d(t,"ChoicesRestfull",(function(){return r.ChoicesRestfull})),n.d(t,"FunctionFactory",(function(){return r.FunctionFactory})),n.d(t,"registerFunction",(function(){return r.registerFunction})),n.d(t,"ConditionRunner",(function(){return r.ConditionRunner})),n.d(t,"ExpressionRunner",(function(){return r.ExpressionRunner})),n.d(t,"ExpressionExecutor",(function(){return r.ExpressionExecutor})),n.d(t,"Operand",(function(){return r.Operand})),n.d(t,"Const",(function(){return r.Const})),n.d(t,"BinaryOperand",(function(){return r.BinaryOperand})),n.d(t,"Variable",(function(){return r.Variable})),n.d(t,"FunctionOperand",(function(){return r.FunctionOperand})),n.d(t,"ArrayOperand",(function(){return r.ArrayOperand})),n.d(t,"UnaryOperand",(function(){return r.UnaryOperand})),n.d(t,"ConditionsParser",(function(){return r.ConditionsParser})),n.d(t,"ProcessValue",(function(){return r.ProcessValue})),n.d(t,"JsonError",(function(){return r.JsonError})),n.d(t,"JsonIncorrectTypeError",(function(){return r.JsonIncorrectTypeError})),n.d(t,"JsonMetadata",(function(){return r.JsonMetadata})),n.d(t,"JsonMetadataClass",(function(){return r.JsonMetadataClass})),n.d(t,"JsonMissingTypeError",(function(){return r.JsonMissingTypeError})),n.d(t,"JsonMissingTypeErrorBase",(function(){return r.JsonMissingTypeErrorBase})),n.d(t,"JsonObject",(function(){return r.JsonObject})),n.d(t,"JsonObjectProperty",(function(){return r.JsonObjectProperty})),n.d(t,"JsonRequiredPropertyError",(function(){return r.JsonRequiredPropertyError})),n.d(t,"JsonUnknownPropertyError",(function(){return r.JsonUnknownPropertyError})),n.d(t,"Serializer",(function(){return r.Serializer})),n.d(t,"property",(function(){return r.property})),n.d(t,"propertyArray",(function(){return r.propertyArray})),n.d(t,"MatrixDropdownCell",(function(){return r.MatrixDropdownCell})),n.d(t,"MatrixDropdownRowModelBase",(function(){return r.MatrixDropdownRowModelBase})),n.d(t,"QuestionMatrixDropdownModelBase",(function(){return r.QuestionMatrixDropdownModelBase})),n.d(t,"MatrixDropdownColumn",(function(){return r.MatrixDropdownColumn})),n.d(t,"matrixDropdownColumnTypes",(function(){return r.matrixDropdownColumnTypes})),n.d(t,"QuestionMatrixDropdownRenderedCell",(function(){return r.QuestionMatrixDropdownRenderedCell})),n.d(t,"QuestionMatrixDropdownRenderedRow",(function(){return r.QuestionMatrixDropdownRenderedRow})),n.d(t,"QuestionMatrixDropdownRenderedTable",(function(){return r.QuestionMatrixDropdownRenderedTable})),n.d(t,"MatrixDropdownRowModel",(function(){return r.MatrixDropdownRowModel})),n.d(t,"QuestionMatrixDropdownModel",(function(){return r.QuestionMatrixDropdownModel})),n.d(t,"MatrixDynamicRowModel",(function(){return r.MatrixDynamicRowModel})),n.d(t,"QuestionMatrixDynamicModel",(function(){return r.QuestionMatrixDynamicModel})),n.d(t,"MatrixRowModel",(function(){return r.MatrixRowModel})),n.d(t,"MatrixCells",(function(){return r.MatrixCells})),n.d(t,"QuestionMatrixModel",(function(){return r.QuestionMatrixModel})),n.d(t,"QuestionMatrixBaseModel",(function(){return r.QuestionMatrixBaseModel})),n.d(t,"MultipleTextItemModel",(function(){return r.MultipleTextItemModel})),n.d(t,"QuestionMultipleTextModel",(function(){return r.QuestionMultipleTextModel})),n.d(t,"MultipleTextEditorModel",(function(){return r.MultipleTextEditorModel})),n.d(t,"PanelModel",(function(){return r.PanelModel})),n.d(t,"PanelModelBase",(function(){return r.PanelModelBase})),n.d(t,"QuestionRowModel",(function(){return r.QuestionRowModel})),n.d(t,"FlowPanelModel",(function(){return r.FlowPanelModel})),n.d(t,"PageModel",(function(){return r.PageModel})),n.d(t,"DefaultTitleModel",(function(){return r.DefaultTitleModel})),n.d(t,"Question",(function(){return r.Question})),n.d(t,"QuestionNonValue",(function(){return r.QuestionNonValue})),n.d(t,"QuestionEmptyModel",(function(){return r.QuestionEmptyModel})),n.d(t,"QuestionCheckboxBase",(function(){return r.QuestionCheckboxBase})),n.d(t,"QuestionSelectBase",(function(){return r.QuestionSelectBase})),n.d(t,"QuestionCheckboxModel",(function(){return r.QuestionCheckboxModel})),n.d(t,"QuestionTagboxModel",(function(){return r.QuestionTagboxModel})),n.d(t,"QuestionRankingModel",(function(){return r.QuestionRankingModel})),n.d(t,"QuestionCommentModel",(function(){return r.QuestionCommentModel})),n.d(t,"QuestionDropdownModel",(function(){return r.QuestionDropdownModel})),n.d(t,"QuestionFactory",(function(){return r.QuestionFactory})),n.d(t,"ElementFactory",(function(){return r.ElementFactory})),n.d(t,"QuestionFileModel",(function(){return r.QuestionFileModel})),n.d(t,"QuestionHtmlModel",(function(){return r.QuestionHtmlModel})),n.d(t,"QuestionRadiogroupModel",(function(){return r.QuestionRadiogroupModel})),n.d(t,"QuestionRatingModel",(function(){return r.QuestionRatingModel})),n.d(t,"RenderedRatingItem",(function(){return r.RenderedRatingItem})),n.d(t,"QuestionExpressionModel",(function(){return r.QuestionExpressionModel})),n.d(t,"QuestionTextBase",(function(){return r.QuestionTextBase})),n.d(t,"CharacterCounter",(function(){return r.CharacterCounter})),n.d(t,"QuestionTextModel",(function(){return r.QuestionTextModel})),n.d(t,"QuestionBooleanModel",(function(){return r.QuestionBooleanModel})),n.d(t,"QuestionImagePickerModel",(function(){return r.QuestionImagePickerModel})),n.d(t,"ImageItemValue",(function(){return r.ImageItemValue})),n.d(t,"QuestionImageModel",(function(){return r.QuestionImageModel})),n.d(t,"QuestionSignaturePadModel",(function(){return r.QuestionSignaturePadModel})),n.d(t,"QuestionPanelDynamicModel",(function(){return r.QuestionPanelDynamicModel})),n.d(t,"QuestionPanelDynamicItem",(function(){return r.QuestionPanelDynamicItem})),n.d(t,"SurveyTimer",(function(){return r.SurveyTimer})),n.d(t,"SurveyTimerModel",(function(){return r.SurveyTimerModel})),n.d(t,"tryNavigateToPage",(function(){return r.tryNavigateToPage})),n.d(t,"tryFocusPage",(function(){return r.tryFocusPage})),n.d(t,"createTOCListModel",(function(){return r.createTOCListModel})),n.d(t,"getTocRootCss",(function(){return r.getTocRootCss})),n.d(t,"TOCModel",(function(){return r.TOCModel})),n.d(t,"SurveyProgressModel",(function(){return r.SurveyProgressModel})),n.d(t,"SurveyProgressButtonsModel",(function(){return r.SurveyProgressButtonsModel})),n.d(t,"SurveyModel",(function(){return r.SurveyModel})),n.d(t,"SurveyTrigger",(function(){return r.SurveyTrigger})),n.d(t,"SurveyTriggerComplete",(function(){return r.SurveyTriggerComplete})),n.d(t,"SurveyTriggerSetValue",(function(){return r.SurveyTriggerSetValue})),n.d(t,"SurveyTriggerVisible",(function(){return r.SurveyTriggerVisible})),n.d(t,"SurveyTriggerCopyValue",(function(){return r.SurveyTriggerCopyValue})),n.d(t,"SurveyTriggerRunExpression",(function(){return r.SurveyTriggerRunExpression})),n.d(t,"Trigger",(function(){return r.Trigger})),n.d(t,"PopupSurveyModel",(function(){return r.PopupSurveyModel})),n.d(t,"SurveyWindowModel",(function(){return r.SurveyWindowModel})),n.d(t,"TextPreProcessor",(function(){return r.TextPreProcessor})),n.d(t,"Notifier",(function(){return r.Notifier})),n.d(t,"dxSurveyService",(function(){return r.dxSurveyService})),n.d(t,"englishStrings",(function(){return r.englishStrings})),n.d(t,"surveyLocalization",(function(){return r.surveyLocalization})),n.d(t,"surveyStrings",(function(){return r.surveyStrings})),n.d(t,"QuestionCustomWidget",(function(){return r.QuestionCustomWidget})),n.d(t,"CustomWidgetCollection",(function(){return r.CustomWidgetCollection})),n.d(t,"QuestionCustomModel",(function(){return r.QuestionCustomModel})),n.d(t,"QuestionCompositeModel",(function(){return r.QuestionCompositeModel})),n.d(t,"ComponentQuestionJSON",(function(){return r.ComponentQuestionJSON})),n.d(t,"ComponentCollection",(function(){return r.ComponentCollection})),n.d(t,"StylesManager",(function(){return r.StylesManager})),n.d(t,"ListModel",(function(){return r.ListModel})),n.d(t,"MultiSelectListModel",(function(){return r.MultiSelectListModel})),n.d(t,"PopupModel",(function(){return r.PopupModel})),n.d(t,"createDialogOptions",(function(){return r.createDialogOptions})),n.d(t,"PopupBaseViewModel",(function(){return r.PopupBaseViewModel})),n.d(t,"PopupDropdownViewModel",(function(){return r.PopupDropdownViewModel})),n.d(t,"PopupModalViewModel",(function(){return r.PopupModalViewModel})),n.d(t,"createPopupViewModel",(function(){return r.createPopupViewModel})),n.d(t,"createPopupModalViewModel",(function(){return r.createPopupModalViewModel})),n.d(t,"DropdownListModel",(function(){return r.DropdownListModel})),n.d(t,"DropdownMultiSelectListModel",(function(){return r.DropdownMultiSelectListModel})),n.d(t,"QuestionButtonGroupModel",(function(){return r.QuestionButtonGroupModel})),n.d(t,"ButtonGroupItemModel",(function(){return r.ButtonGroupItemModel})),n.d(t,"ButtonGroupItemValue",(function(){return r.ButtonGroupItemValue})),n.d(t,"IsMobile",(function(){return r.IsMobile})),n.d(t,"IsTouch",(function(){return r.IsTouch})),n.d(t,"_setIsTouch",(function(){return r._setIsTouch})),n.d(t,"confirmAction",(function(){return r.confirmAction})),n.d(t,"detectIEOrEdge",(function(){return r.detectIEOrEdge})),n.d(t,"doKey2ClickUp",(function(){return r.doKey2ClickUp})),n.d(t,"doKey2ClickDown",(function(){return r.doKey2ClickDown})),n.d(t,"doKey2ClickBlur",(function(){return r.doKey2ClickBlur})),n.d(t,"loadFileFromBase64",(function(){return r.loadFileFromBase64})),n.d(t,"increaseHeightByContent",(function(){return r.increaseHeightByContent})),n.d(t,"createSvg",(function(){return r.createSvg})),n.d(t,"sanitizeEditableContent",(function(){return r.sanitizeEditableContent})),n.d(t,"CssClassBuilder",(function(){return r.CssClassBuilder})),n.d(t,"surveyCss",(function(){return r.surveyCss})),n.d(t,"defaultV2Css",(function(){return r.defaultV2Css})),n.d(t,"defaultV2ThemeName",(function(){return r.defaultV2ThemeName})),n.d(t,"DragDropCore",(function(){return r.DragDropCore})),n.d(t,"DragDropChoices",(function(){return r.DragDropChoices})),n.d(t,"DragDropRankingSelectToRank",(function(){return r.DragDropRankingSelectToRank}));var o=n("./src/defaultCss/cssstandard.ts");n.d(t,"defaultStandardCss",(function(){return o.defaultStandardCss}));var i=n("./src/defaultCss/cssmodern.ts");n.d(t,"modernCss",(function(){return i.modernCss}));var s=n("./src/svgbundle.ts");n.d(t,"SvgIconRegistry",(function(){return s.SvgIconRegistry})),n.d(t,"SvgRegistry",(function(){return s.SvgRegistry})),n.d(t,"SvgBundleViewModel",(function(){return s.SvgBundleViewModel}));var a=n("./src/rendererFactory.ts");n.d(t,"RendererFactory",(function(){return a.RendererFactory}));var l=n("./src/utils/responsivity-manager.ts");n.d(t,"ResponsivityManager",(function(){return l.ResponsivityManager})),n.d(t,"VerticalResponsivityManager",(function(){return l.VerticalResponsivityManager}));var u=n("./src/utils/utils.ts");n.d(t,"unwrap",(function(){return u.unwrap})),n.d(t,"getOriginalEvent",(function(){return u.getOriginalEvent})),n.d(t,"getElement",(function(){return u.getElement}));var c=n("./src/actions/action.ts");n.d(t,"createDropdownActionModel",(function(){return c.createDropdownActionModel})),n.d(t,"createDropdownActionModelAdvanced",(function(){return c.createDropdownActionModelAdvanced})),n.d(t,"getActionDropdownButtonTarget",(function(){return c.getActionDropdownButtonTarget})),n.d(t,"BaseAction",(function(){return c.BaseAction})),n.d(t,"Action",(function(){return c.Action})),n.d(t,"ActionDropdownViewModel",(function(){return c.ActionDropdownViewModel}));var p=n("./src/actions/adaptive-container.ts");n.d(t,"AdaptiveActionContainer",(function(){return p.AdaptiveActionContainer}));var d=n("./src/actions/container.ts");n.d(t,"defaultActionBarCss",(function(){return d.defaultActionBarCss})),n.d(t,"ActionContainer",(function(){return d.ActionContainer}));var h=n("./src/utils/tooltip.ts");n.d(t,"TooltipManager",(function(){return h.TooltipManager}));var f=n("./src/utils/dragOrClickHelper.ts");n.d(t,"DragOrClickHelper",(function(){return f.DragOrClickHelper}))},"./src/entries/core.ts":function(e,t,n){"use strict";n.r(t);var r=n("./src/entries/core-wo-model.ts");n.d(t,"Version",(function(){return r.Version})),n.d(t,"ReleaseDate",(function(){return r.ReleaseDate})),n.d(t,"checkLibraryVersion",(function(){return r.checkLibraryVersion})),n.d(t,"setLicenseKey",(function(){return r.setLicenseKey})),n.d(t,"hasLicense",(function(){return r.hasLicense})),n.d(t,"settings",(function(){return r.settings})),n.d(t,"Helpers",(function(){return r.Helpers})),n.d(t,"AnswerCountValidator",(function(){return r.AnswerCountValidator})),n.d(t,"EmailValidator",(function(){return r.EmailValidator})),n.d(t,"NumericValidator",(function(){return r.NumericValidator})),n.d(t,"RegexValidator",(function(){return r.RegexValidator})),n.d(t,"SurveyValidator",(function(){return r.SurveyValidator})),n.d(t,"TextValidator",(function(){return r.TextValidator})),n.d(t,"ValidatorResult",(function(){return r.ValidatorResult})),n.d(t,"ExpressionValidator",(function(){return r.ExpressionValidator})),n.d(t,"ValidatorRunner",(function(){return r.ValidatorRunner})),n.d(t,"ItemValue",(function(){return r.ItemValue})),n.d(t,"Base",(function(){return r.Base})),n.d(t,"Event",(function(){return r.Event})),n.d(t,"EventBase",(function(){return r.EventBase})),n.d(t,"ArrayChanges",(function(){return r.ArrayChanges})),n.d(t,"ComputedUpdater",(function(){return r.ComputedUpdater})),n.d(t,"SurveyError",(function(){return r.SurveyError})),n.d(t,"SurveyElementCore",(function(){return r.SurveyElementCore})),n.d(t,"SurveyElement",(function(){return r.SurveyElement})),n.d(t,"DragTypeOverMeEnum",(function(){return r.DragTypeOverMeEnum})),n.d(t,"CalculatedValue",(function(){return r.CalculatedValue})),n.d(t,"CustomError",(function(){return r.CustomError})),n.d(t,"AnswerRequiredError",(function(){return r.AnswerRequiredError})),n.d(t,"OneAnswerRequiredError",(function(){return r.OneAnswerRequiredError})),n.d(t,"RequreNumericError",(function(){return r.RequreNumericError})),n.d(t,"ExceedSizeError",(function(){return r.ExceedSizeError})),n.d(t,"LocalizableString",(function(){return r.LocalizableString})),n.d(t,"LocalizableStrings",(function(){return r.LocalizableStrings})),n.d(t,"HtmlConditionItem",(function(){return r.HtmlConditionItem})),n.d(t,"UrlConditionItem",(function(){return r.UrlConditionItem})),n.d(t,"ChoicesRestful",(function(){return r.ChoicesRestful})),n.d(t,"ChoicesRestfull",(function(){return r.ChoicesRestfull})),n.d(t,"FunctionFactory",(function(){return r.FunctionFactory})),n.d(t,"registerFunction",(function(){return r.registerFunction})),n.d(t,"ConditionRunner",(function(){return r.ConditionRunner})),n.d(t,"ExpressionRunner",(function(){return r.ExpressionRunner})),n.d(t,"ExpressionExecutor",(function(){return r.ExpressionExecutor})),n.d(t,"Operand",(function(){return r.Operand})),n.d(t,"Const",(function(){return r.Const})),n.d(t,"BinaryOperand",(function(){return r.BinaryOperand})),n.d(t,"Variable",(function(){return r.Variable})),n.d(t,"FunctionOperand",(function(){return r.FunctionOperand})),n.d(t,"ArrayOperand",(function(){return r.ArrayOperand})),n.d(t,"UnaryOperand",(function(){return r.UnaryOperand})),n.d(t,"ConditionsParser",(function(){return r.ConditionsParser})),n.d(t,"ProcessValue",(function(){return r.ProcessValue})),n.d(t,"JsonError",(function(){return r.JsonError})),n.d(t,"JsonIncorrectTypeError",(function(){return r.JsonIncorrectTypeError})),n.d(t,"JsonMetadata",(function(){return r.JsonMetadata})),n.d(t,"JsonMetadataClass",(function(){return r.JsonMetadataClass})),n.d(t,"JsonMissingTypeError",(function(){return r.JsonMissingTypeError})),n.d(t,"JsonMissingTypeErrorBase",(function(){return r.JsonMissingTypeErrorBase})),n.d(t,"JsonObject",(function(){return r.JsonObject})),n.d(t,"JsonObjectProperty",(function(){return r.JsonObjectProperty})),n.d(t,"JsonRequiredPropertyError",(function(){return r.JsonRequiredPropertyError})),n.d(t,"JsonUnknownPropertyError",(function(){return r.JsonUnknownPropertyError})),n.d(t,"Serializer",(function(){return r.Serializer})),n.d(t,"property",(function(){return r.property})),n.d(t,"propertyArray",(function(){return r.propertyArray})),n.d(t,"MatrixDropdownCell",(function(){return r.MatrixDropdownCell})),n.d(t,"MatrixDropdownRowModelBase",(function(){return r.MatrixDropdownRowModelBase})),n.d(t,"QuestionMatrixDropdownModelBase",(function(){return r.QuestionMatrixDropdownModelBase})),n.d(t,"MatrixDropdownColumn",(function(){return r.MatrixDropdownColumn})),n.d(t,"matrixDropdownColumnTypes",(function(){return r.matrixDropdownColumnTypes})),n.d(t,"QuestionMatrixDropdownRenderedCell",(function(){return r.QuestionMatrixDropdownRenderedCell})),n.d(t,"QuestionMatrixDropdownRenderedRow",(function(){return r.QuestionMatrixDropdownRenderedRow})),n.d(t,"QuestionMatrixDropdownRenderedTable",(function(){return r.QuestionMatrixDropdownRenderedTable})),n.d(t,"MatrixDropdownRowModel",(function(){return r.MatrixDropdownRowModel})),n.d(t,"QuestionMatrixDropdownModel",(function(){return r.QuestionMatrixDropdownModel})),n.d(t,"MatrixDynamicRowModel",(function(){return r.MatrixDynamicRowModel})),n.d(t,"QuestionMatrixDynamicModel",(function(){return r.QuestionMatrixDynamicModel})),n.d(t,"MatrixRowModel",(function(){return r.MatrixRowModel})),n.d(t,"MatrixCells",(function(){return r.MatrixCells})),n.d(t,"QuestionMatrixModel",(function(){return r.QuestionMatrixModel})),n.d(t,"QuestionMatrixBaseModel",(function(){return r.QuestionMatrixBaseModel})),n.d(t,"MultipleTextItemModel",(function(){return r.MultipleTextItemModel})),n.d(t,"QuestionMultipleTextModel",(function(){return r.QuestionMultipleTextModel})),n.d(t,"MultipleTextEditorModel",(function(){return r.MultipleTextEditorModel})),n.d(t,"PanelModel",(function(){return r.PanelModel})),n.d(t,"PanelModelBase",(function(){return r.PanelModelBase})),n.d(t,"QuestionRowModel",(function(){return r.QuestionRowModel})),n.d(t,"FlowPanelModel",(function(){return r.FlowPanelModel})),n.d(t,"PageModel",(function(){return r.PageModel})),n.d(t,"DefaultTitleModel",(function(){return r.DefaultTitleModel})),n.d(t,"Question",(function(){return r.Question})),n.d(t,"QuestionNonValue",(function(){return r.QuestionNonValue})),n.d(t,"QuestionEmptyModel",(function(){return r.QuestionEmptyModel})),n.d(t,"QuestionCheckboxBase",(function(){return r.QuestionCheckboxBase})),n.d(t,"QuestionSelectBase",(function(){return r.QuestionSelectBase})),n.d(t,"QuestionCheckboxModel",(function(){return r.QuestionCheckboxModel})),n.d(t,"QuestionTagboxModel",(function(){return r.QuestionTagboxModel})),n.d(t,"QuestionRankingModel",(function(){return r.QuestionRankingModel})),n.d(t,"QuestionCommentModel",(function(){return r.QuestionCommentModel})),n.d(t,"QuestionDropdownModel",(function(){return r.QuestionDropdownModel})),n.d(t,"QuestionFactory",(function(){return r.QuestionFactory})),n.d(t,"ElementFactory",(function(){return r.ElementFactory})),n.d(t,"QuestionFileModel",(function(){return r.QuestionFileModel})),n.d(t,"QuestionHtmlModel",(function(){return r.QuestionHtmlModel})),n.d(t,"QuestionRadiogroupModel",(function(){return r.QuestionRadiogroupModel})),n.d(t,"QuestionRatingModel",(function(){return r.QuestionRatingModel})),n.d(t,"RenderedRatingItem",(function(){return r.RenderedRatingItem})),n.d(t,"QuestionExpressionModel",(function(){return r.QuestionExpressionModel})),n.d(t,"QuestionTextBase",(function(){return r.QuestionTextBase})),n.d(t,"CharacterCounter",(function(){return r.CharacterCounter})),n.d(t,"QuestionTextModel",(function(){return r.QuestionTextModel})),n.d(t,"QuestionBooleanModel",(function(){return r.QuestionBooleanModel})),n.d(t,"QuestionImagePickerModel",(function(){return r.QuestionImagePickerModel})),n.d(t,"ImageItemValue",(function(){return r.ImageItemValue})),n.d(t,"QuestionImageModel",(function(){return r.QuestionImageModel})),n.d(t,"QuestionSignaturePadModel",(function(){return r.QuestionSignaturePadModel})),n.d(t,"QuestionPanelDynamicModel",(function(){return r.QuestionPanelDynamicModel})),n.d(t,"QuestionPanelDynamicItem",(function(){return r.QuestionPanelDynamicItem})),n.d(t,"SurveyTimer",(function(){return r.SurveyTimer})),n.d(t,"SurveyTimerModel",(function(){return r.SurveyTimerModel})),n.d(t,"tryNavigateToPage",(function(){return r.tryNavigateToPage})),n.d(t,"tryFocusPage",(function(){return r.tryFocusPage})),n.d(t,"createTOCListModel",(function(){return r.createTOCListModel})),n.d(t,"getTocRootCss",(function(){return r.getTocRootCss})),n.d(t,"TOCModel",(function(){return r.TOCModel})),n.d(t,"SurveyProgressModel",(function(){return r.SurveyProgressModel})),n.d(t,"SurveyProgressButtonsModel",(function(){return r.SurveyProgressButtonsModel})),n.d(t,"SurveyModel",(function(){return r.SurveyModel})),n.d(t,"SurveyTrigger",(function(){return r.SurveyTrigger})),n.d(t,"SurveyTriggerComplete",(function(){return r.SurveyTriggerComplete})),n.d(t,"SurveyTriggerSetValue",(function(){return r.SurveyTriggerSetValue})),n.d(t,"SurveyTriggerVisible",(function(){return r.SurveyTriggerVisible})),n.d(t,"SurveyTriggerCopyValue",(function(){return r.SurveyTriggerCopyValue})),n.d(t,"SurveyTriggerRunExpression",(function(){return r.SurveyTriggerRunExpression})),n.d(t,"Trigger",(function(){return r.Trigger})),n.d(t,"PopupSurveyModel",(function(){return r.PopupSurveyModel})),n.d(t,"SurveyWindowModel",(function(){return r.SurveyWindowModel})),n.d(t,"TextPreProcessor",(function(){return r.TextPreProcessor})),n.d(t,"Notifier",(function(){return r.Notifier})),n.d(t,"dxSurveyService",(function(){return r.dxSurveyService})),n.d(t,"englishStrings",(function(){return r.englishStrings})),n.d(t,"surveyLocalization",(function(){return r.surveyLocalization})),n.d(t,"surveyStrings",(function(){return r.surveyStrings})),n.d(t,"QuestionCustomWidget",(function(){return r.QuestionCustomWidget})),n.d(t,"CustomWidgetCollection",(function(){return r.CustomWidgetCollection})),n.d(t,"QuestionCustomModel",(function(){return r.QuestionCustomModel})),n.d(t,"QuestionCompositeModel",(function(){return r.QuestionCompositeModel})),n.d(t,"ComponentQuestionJSON",(function(){return r.ComponentQuestionJSON})),n.d(t,"ComponentCollection",(function(){return r.ComponentCollection})),n.d(t,"StylesManager",(function(){return r.StylesManager})),n.d(t,"ListModel",(function(){return r.ListModel})),n.d(t,"MultiSelectListModel",(function(){return r.MultiSelectListModel})),n.d(t,"PopupModel",(function(){return r.PopupModel})),n.d(t,"createDialogOptions",(function(){return r.createDialogOptions})),n.d(t,"PopupBaseViewModel",(function(){return r.PopupBaseViewModel})),n.d(t,"PopupDropdownViewModel",(function(){return r.PopupDropdownViewModel})),n.d(t,"PopupModalViewModel",(function(){return r.PopupModalViewModel})),n.d(t,"createPopupViewModel",(function(){return r.createPopupViewModel})),n.d(t,"createPopupModalViewModel",(function(){return r.createPopupModalViewModel})),n.d(t,"DropdownListModel",(function(){return r.DropdownListModel})),n.d(t,"DropdownMultiSelectListModel",(function(){return r.DropdownMultiSelectListModel})),n.d(t,"QuestionButtonGroupModel",(function(){return r.QuestionButtonGroupModel})),n.d(t,"ButtonGroupItemModel",(function(){return r.ButtonGroupItemModel})),n.d(t,"ButtonGroupItemValue",(function(){return r.ButtonGroupItemValue})),n.d(t,"IsMobile",(function(){return r.IsMobile})),n.d(t,"IsTouch",(function(){return r.IsTouch})),n.d(t,"_setIsTouch",(function(){return r._setIsTouch})),n.d(t,"confirmAction",(function(){return r.confirmAction})),n.d(t,"detectIEOrEdge",(function(){return r.detectIEOrEdge})),n.d(t,"doKey2ClickUp",(function(){return r.doKey2ClickUp})),n.d(t,"doKey2ClickDown",(function(){return r.doKey2ClickDown})),n.d(t,"doKey2ClickBlur",(function(){return r.doKey2ClickBlur})),n.d(t,"loadFileFromBase64",(function(){return r.loadFileFromBase64})),n.d(t,"increaseHeightByContent",(function(){return r.increaseHeightByContent})),n.d(t,"createSvg",(function(){return r.createSvg})),n.d(t,"sanitizeEditableContent",(function(){return r.sanitizeEditableContent})),n.d(t,"CssClassBuilder",(function(){return r.CssClassBuilder})),n.d(t,"surveyCss",(function(){return r.surveyCss})),n.d(t,"defaultV2Css",(function(){return r.defaultV2Css})),n.d(t,"defaultV2ThemeName",(function(){return r.defaultV2ThemeName})),n.d(t,"DragDropCore",(function(){return r.DragDropCore})),n.d(t,"DragDropChoices",(function(){return r.DragDropChoices})),n.d(t,"DragDropRankingSelectToRank",(function(){return r.DragDropRankingSelectToRank})),n.d(t,"defaultStandardCss",(function(){return r.defaultStandardCss})),n.d(t,"modernCss",(function(){return r.modernCss})),n.d(t,"SvgIconRegistry",(function(){return r.SvgIconRegistry})),n.d(t,"SvgRegistry",(function(){return r.SvgRegistry})),n.d(t,"SvgBundleViewModel",(function(){return r.SvgBundleViewModel})),n.d(t,"RendererFactory",(function(){return r.RendererFactory})),n.d(t,"ResponsivityManager",(function(){return r.ResponsivityManager})),n.d(t,"VerticalResponsivityManager",(function(){return r.VerticalResponsivityManager})),n.d(t,"unwrap",(function(){return r.unwrap})),n.d(t,"getOriginalEvent",(function(){return r.getOriginalEvent})),n.d(t,"getElement",(function(){return r.getElement})),n.d(t,"createDropdownActionModel",(function(){return r.createDropdownActionModel})),n.d(t,"createDropdownActionModelAdvanced",(function(){return r.createDropdownActionModelAdvanced})),n.d(t,"getActionDropdownButtonTarget",(function(){return r.getActionDropdownButtonTarget})),n.d(t,"BaseAction",(function(){return r.BaseAction})),n.d(t,"Action",(function(){return r.Action})),n.d(t,"ActionDropdownViewModel",(function(){return r.ActionDropdownViewModel})),n.d(t,"AdaptiveActionContainer",(function(){return r.AdaptiveActionContainer})),n.d(t,"defaultActionBarCss",(function(){return r.defaultActionBarCss})),n.d(t,"ActionContainer",(function(){return r.ActionContainer})),n.d(t,"TooltipManager",(function(){return r.TooltipManager})),n.d(t,"DragOrClickHelper",(function(){return r.DragOrClickHelper}));var o=n("./src/survey.ts");n.d(t,"Model",(function(){return o.SurveyModel}))},"./src/error.ts":function(e,t,n){"use strict";n.r(t),n.d(t,"AnswerRequiredError",(function(){return a})),n.d(t,"OneAnswerRequiredError",(function(){return l})),n.d(t,"RequreNumericError",(function(){return u})),n.d(t,"ExceedSizeError",(function(){return c})),n.d(t,"WebRequestError",(function(){return p})),n.d(t,"WebRequestEmptyError",(function(){return d})),n.d(t,"OtherEmptyError",(function(){return h})),n.d(t,"UploadingFileError",(function(){return f})),n.d(t,"RequiredInAllRowsError",(function(){return m})),n.d(t,"MinRowCountError",(function(){return g})),n.d(t,"KeyDuplicationError",(function(){return y})),n.d(t,"CustomError",(function(){return v}));var r,o=n("./src/surveyStrings.ts"),i=n("./src/survey-error.ts"),s=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),a=function(e){function t(t,n){void 0===t&&(t=null),void 0===n&&(n=null);var r=e.call(this,t,n)||this;return r.text=t,r}return s(t,e),t.prototype.getErrorType=function(){return"required"},t.prototype.getDefaultText=function(){return this.getLocalizationString("requiredError")},t}(i.SurveyError),l=function(e){function t(t,n){void 0===t&&(t=null),void 0===n&&(n=null);var r=e.call(this,t,n)||this;return r.text=t,r}return s(t,e),t.prototype.getErrorType=function(){return"requireoneanswer"},t.prototype.getDefaultText=function(){return this.getLocalizationString("requiredErrorInPanel")},t}(i.SurveyError),u=function(e){function t(t,n){void 0===t&&(t=null),void 0===n&&(n=null);var r=e.call(this,t,n)||this;return r.text=t,r}return s(t,e),t.prototype.getErrorType=function(){return"requirenumeric"},t.prototype.getDefaultText=function(){return this.getLocalizationString("numericError")},t}(i.SurveyError),c=function(e){function t(t,n){void 0===n&&(n=null);var r=e.call(this,null,n)||this;return r.maxSize=t,r.locText.text=r.getText(),r}return s(t,e),t.prototype.getErrorType=function(){return"exceedsize"},t.prototype.getDefaultText=function(){return o.surveyLocalization.getString("exceedMaxSize").format(this.getTextSize())},t.prototype.getTextSize=function(){if(0===this.maxSize)return"0 Byte";var e=Math.floor(Math.log(this.maxSize)/Math.log(1024));return(this.maxSize/Math.pow(1024,e)).toFixed([0,0,2,3,3][e])+" "+["Bytes","KB","MB","GB","TB"][e]},t}(i.SurveyError),p=function(e){function t(t,n,r){void 0===r&&(r=null);var o=e.call(this,null,r)||this;return o.status=t,o.response=n,o}return s(t,e),t.prototype.getErrorType=function(){return"webrequest"},t.prototype.getDefaultText=function(){var e=this.getLocalizationString("urlRequestError");return e?e.format(this.status,this.response):""},t}(i.SurveyError),d=function(e){function t(t,n){void 0===n&&(n=null);var r=e.call(this,t,n)||this;return r.text=t,r}return s(t,e),t.prototype.getErrorType=function(){return"webrequestempty"},t.prototype.getDefaultText=function(){return this.getLocalizationString("urlGetChoicesError")},t}(i.SurveyError),h=function(e){function t(t,n){void 0===n&&(n=null);var r=e.call(this,t,n)||this;return r.text=t,r}return s(t,e),t.prototype.getErrorType=function(){return"otherempty"},t.prototype.getDefaultText=function(){return this.getLocalizationString("otherRequiredError")},t}(i.SurveyError),f=function(e){function t(t,n){void 0===n&&(n=null);var r=e.call(this,t,n)||this;return r.text=t,r}return s(t,e),t.prototype.getErrorType=function(){return"uploadingfile"},t.prototype.getDefaultText=function(){return this.getLocalizationString("uploadingFile")},t}(i.SurveyError),m=function(e){function t(t,n){void 0===n&&(n=null);var r=e.call(this,t,n)||this;return r.text=t,r}return s(t,e),t.prototype.getErrorType=function(){return"requiredinallrowserror"},t.prototype.getDefaultText=function(){return this.getLocalizationString("requiredInAllRowsError")},t}(i.SurveyError),g=function(e){function t(t,n){void 0===n&&(n=null);var r=e.call(this,null,n)||this;return r.minRowCount=t,r}return s(t,e),t.prototype.getErrorType=function(){return"minrowcounterror"},t.prototype.getDefaultText=function(){return o.surveyLocalization.getString("minRowCountError").format(this.minRowCount)},t}(i.SurveyError),y=function(e){function t(t,n){void 0===n&&(n=null);var r=e.call(this,t,n)||this;return r.text=t,r}return s(t,e),t.prototype.getErrorType=function(){return"keyduplicationerror"},t.prototype.getDefaultText=function(){return this.getLocalizationString("keyDuplicationError")},t}(i.SurveyError),v=function(e){function t(t,n){void 0===n&&(n=null);var r=e.call(this,t,n)||this;return r.text=t,r}return s(t,e),t.prototype.getErrorType=function(){return"custom"},t}(i.SurveyError)},"./src/expressionItems.ts":function(e,t,n){"use strict";n.r(t),n.d(t,"ExpressionItem",(function(){return l})),n.d(t,"HtmlConditionItem",(function(){return u})),n.d(t,"UrlConditionItem",(function(){return c}));var r,o=n("./src/jsonobject.ts"),i=n("./src/base.ts"),s=n("./src/conditions.ts"),a=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),l=function(e){function t(t){void 0===t&&(t=null);var n=e.call(this)||this;return n.expression=t,n}return a(t,e),t.prototype.getType=function(){return"expressionitem"},t.prototype.runCondition=function(e,t){return!!this.expression&&new s.ConditionRunner(this.expression).run(e,t)},Object.defineProperty(t.prototype,"expression",{get:function(){return this.getPropertyValue("expression","")},set:function(e){this.setPropertyValue("expression",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locHtml",{get:function(){return this.getLocalizableString("html")},enumerable:!1,configurable:!0}),t.prototype.getLocale=function(){return this.locOwner?this.locOwner.getLocale():""},t.prototype.getMarkdownHtml=function(e,t){return this.locOwner?this.locOwner.getMarkdownHtml(e,t):void 0},t.prototype.getRenderer=function(e){return this.locOwner?this.locOwner.getRenderer(e):null},t.prototype.getRendererContext=function(e){return this.locOwner?this.locOwner.getRendererContext(e):e},t.prototype.getProcessedText=function(e){return this.locOwner?this.locOwner.getProcessedText(e):e},t.prototype.getSurvey=function(e){return void 0===e&&(e=!1),this.locOwner},t}(i.Base),u=function(e){function t(t,n){void 0===t&&(t=null),void 0===n&&(n=null);var r=e.call(this,t)||this;return r.createLocalizableString("html",r),r.html=n,r}return a(t,e),t.prototype.getType=function(){return"htmlconditionitem"},Object.defineProperty(t.prototype,"html",{get:function(){return this.getLocalizableStringText("html")},set:function(e){this.setLocalizableStringText("html",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locHtml",{get:function(){return this.getLocalizableString("html")},enumerable:!1,configurable:!0}),t}(l),c=function(e){function t(t,n){void 0===t&&(t=null),void 0===n&&(n=null);var r=e.call(this,t)||this;return r.createLocalizableString("url",r),r.url=n,r}return a(t,e),t.prototype.getType=function(){return"urlconditionitem"},Object.defineProperty(t.prototype,"url",{get:function(){return this.getLocalizableStringText("url")},set:function(e){this.setLocalizableStringText("url",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locUrl",{get:function(){return this.getLocalizableString("url")},enumerable:!1,configurable:!0}),t}(l);o.Serializer.addClass("expressionitem",["expression:condition"],(function(){return new l}),"base"),o.Serializer.addClass("htmlconditionitem",[{name:"html:html",serializationProperty:"locHtml"}],(function(){return new u}),"expressionitem"),o.Serializer.addClass("urlconditionitem",[{name:"url:string",serializationProperty:"locUrl"}],(function(){return new c}),"expressionitem")},"./src/expressions/expressionParser.ts":function(e,t,n){"use strict";n.r(t),n.d(t,"SyntaxError",(function(){return s})),n.d(t,"parse",(function(){return a}));var r,o=n("./src/expressions/expressions.ts"),i=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),s=function(e){function t(n,r,o,i){var s=e.call(this)||this;return s.message=n,s.expected=r,s.found=o,s.location=i,s.name="SyntaxError","function"==typeof Error.captureStackTrace&&Error.captureStackTrace(s,t),s}return i(t,e),t.buildMessage=function(e,t){function n(e){return e.charCodeAt(0).toString(16).toUpperCase()}function r(e){return e.replace(/\\/g,"\\\\").replace(/"/g,'\\"').replace(/\0/g,"\\0").replace(/\t/g,"\\t").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/[\x00-\x0F]/g,(function(e){return"\\x0"+n(e)})).replace(/[\x10-\x1F\x7F-\x9F]/g,(function(e){return"\\x"+n(e)}))}function o(e){return e.replace(/\\/g,"\\\\").replace(/\]/g,"\\]").replace(/\^/g,"\\^").replace(/-/g,"\\-").replace(/\0/g,"\\0").replace(/\t/g,"\\t").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/[\x00-\x0F]/g,(function(e){return"\\x0"+n(e)})).replace(/[\x10-\x1F\x7F-\x9F]/g,(function(e){return"\\x"+n(e)}))}function i(e){switch(e.type){case"literal":return'"'+r(e.text)+'"';case"class":var t=e.parts.map((function(e){return Array.isArray(e)?o(e[0])+"-"+o(e[1]):o(e)}));return"["+(e.inverted?"^":"")+t+"]";case"any":return"any character";case"end":return"end of input";case"other":return e.description}}return"Expected "+function(e){var t,n,r=e.map(i);if(r.sort(),r.length>0){for(t=1,n=1;t<r.length;t++)r[t-1]!==r[t]&&(r[n]=r[t],n++);r.length=n}switch(r.length){case 1:return r[0];case 2:return r[0]+" or "+r[1];default:return r.slice(0,-1).join(", ")+", or "+r[r.length-1]}}(e)+" but "+((s=t)?'"'+r(s)+'"':"end of input")+" found.";var s},t}(Error),a=function(e,t){t=void 0!==t?t:{};var n,r,i,a,l={},u={Expression:An},c=An,p=function(e,t){return rr(e,t,!0)},d="||",h=Vn("||",!1),f="or",m=Vn("or",!0),g=function(){return"or"},y="&&",v=Vn("&&",!1),b="and",C=Vn("and",!0),w=function(){return"and"},x=function(e,t){return rr(e,t)},P="<=",S=Vn("<=",!1),E="lessorequal",T=Vn("lessorequal",!0),O=function(){return"lessorequal"},V=">=",_=Vn(">=",!1),R="greaterorequal",I=Vn("greaterorequal",!0),D=function(){return"greaterorequal"},A="==",k=Vn("==",!1),M="equal",N=Vn("equal",!0),L=function(){return"equal"},j="=",q=Vn("=",!1),F="!=",B=Vn("!=",!1),Q="notequal",H=Vn("notequal",!0),z=function(){return"notequal"},U="<",W=Vn("<",!1),G="less",$=Vn("less",!0),J=function(){return"less"},K=">",Y=Vn(">",!1),X="greater",Z=Vn("greater",!0),ee=function(){return"greater"},te="+",ne=Vn("+",!1),re=function(){return"plus"},oe="-",ie=Vn("-",!1),se=function(){return"minus"},ae="*",le=Vn("*",!1),ue=function(){return"mul"},ce="/",pe=Vn("/",!1),de=function(){return"div"},he="%",fe=Vn("%",!1),me=function(){return"mod"},ge="^",ye=Vn("^",!1),ve="power",be=Vn("power",!0),Ce=function(){return"power"},we="*=",xe=Vn("*=",!1),Pe="contains",Se=Vn("contains",!0),Ee="contain",Te=Vn("contain",!0),Oe=function(){return"contains"},Ve="notcontains",_e=Vn("notcontains",!0),Re="notcontain",Ie=Vn("notcontain",!0),De=function(){return"notcontains"},Ae="anyof",ke=Vn("anyof",!0),Me=function(){return"anyof"},Ne="allof",Le=Vn("allof",!0),je=function(){return"allof"},qe="(",Fe=Vn("(",!1),Be=")",Qe=Vn(")",!1),He=function(e){return e},ze=function(e,t){return new o.FunctionOperand(e,t)},Ue="!",We=Vn("!",!1),Ge="negate",$e=Vn("negate",!0),Je=function(e){return new o.UnaryOperand(e,"negate")},Ke=function(e,t){return new o.UnaryOperand(e,t)},Ye="empty",Xe=Vn("empty",!0),Ze=function(){return"empty"},et="notempty",tt=Vn("notempty",!0),nt=function(){return"notempty"},rt="undefined",ot=Vn("undefined",!1),it="null",st=Vn("null",!1),at=function(){return null},lt=function(e){return new o.Const(e)},ut="{",ct=Vn("{",!1),pt="}",dt=Vn("}",!1),ht=function(e){return new o.Variable(e)},ft=function(e){return e},mt="''",gt=Vn("''",!1),yt=function(){return""},vt='""',bt=Vn('""',!1),Ct="'",wt=Vn("'",!1),xt=function(e){return"'"+e+"'"},Pt='"',St=Vn('"',!1),Et="[",Tt=Vn("[",!1),Ot="]",Vt=Vn("]",!1),_t=function(e){return e},Rt=",",It=Vn(",",!1),Dt=function(e,t){if(null==e)return new o.ArrayOperand([]);var n=[e];if(Array.isArray(t))for(var r=function(e){return[].concat.apply([],e)}(t),i=3;i<r.length;i+=4)n.push(r[i]);return new o.ArrayOperand(n)},At="true",kt=Vn("true",!0),Mt=function(){return!0},Nt="false",Lt=Vn("false",!0),jt=function(){return!1},qt="0x",Ft=Vn("0x",!1),Bt=function(){return parseInt(On(),16)},Qt=/^[\-]/,Ht=_n(["-"],!1,!1),zt=function(e,t){return null==e?t:-t},Ut=".",Wt=Vn(".",!1),Gt=function(){return parseFloat(On())},$t=function(){return parseInt(On(),10)},Jt="0",Kt=Vn("0",!1),Yt=function(){return 0},Xt=function(e){return e.join("")},Zt="\\'",en=Vn("\\'",!1),tn=function(){return"'"},nn='\\"',rn=Vn('\\"',!1),on=function(){return'"'},sn=/^[^"']/,an=_n(['"',"'"],!0,!1),ln=function(){return On()},un=/^[^{}]/,cn=_n(["{","}"],!0,!1),pn=/^[0-9]/,dn=_n([["0","9"]],!1,!1),hn=/^[1-9]/,fn=_n([["1","9"]],!1,!1),mn=/^[a-zA-Z_]/,gn=_n([["a","z"],["A","Z"],"_"],!1,!1),yn={type:"other",description:"whitespace"},vn=/^[ \t\n\r]/,bn=_n([" ","\t","\n","\r"],!1,!1),Cn=0,wn=0,xn=[{line:1,column:1}],Pn=0,Sn=[],En=0,Tn={};if(void 0!==t.startRule){if(!(t.startRule in u))throw new Error("Can't start parsing from rule \""+t.startRule+'".');c=u[t.startRule]}function On(){return e.substring(wn,Cn)}function Vn(e,t){return{type:"literal",text:e,ignoreCase:t}}function _n(e,t,n){return{type:"class",parts:e,inverted:t,ignoreCase:n}}function Rn(t){var n,r=xn[t];if(r)return r;for(n=t-1;!xn[n];)n--;for(r={line:(r=xn[n]).line,column:r.column};n<t;)10===e.charCodeAt(n)?(r.line++,r.column=1):r.column++,n++;return xn[t]=r,r}function In(e,t){var n=Rn(e),r=Rn(t);return{start:{offset:e,line:n.line,column:n.column},end:{offset:t,line:r.line,column:r.column}}}function Dn(e){Cn<Pn||(Cn>Pn&&(Pn=Cn,Sn=[]),Sn.push(e))}function An(){var e,t,n,r,o,i,s,a,u=34*Cn+0,c=Tn[u];if(c)return Cn=c.nextPos,c.result;if(e=Cn,nr()!==l)if((t=Mn())!==l){for(n=[],r=Cn,(o=nr())!==l&&(i=kn())!==l&&(s=nr())!==l&&(a=Mn())!==l?r=o=[o,i,s,a]:(Cn=r,r=l);r!==l;)n.push(r),r=Cn,(o=nr())!==l&&(i=kn())!==l&&(s=nr())!==l&&(a=Mn())!==l?r=o=[o,i,s,a]:(Cn=r,r=l);n!==l&&(r=nr())!==l?(wn=e,e=p(t,n)):(Cn=e,e=l)}else Cn=e,e=l;else Cn=e,e=l;return Tn[u]={nextPos:Cn,result:e},e}function kn(){var t,n,r=34*Cn+1,o=Tn[r];return o?(Cn=o.nextPos,o.result):(t=Cn,e.substr(Cn,2)===d?(n=d,Cn+=2):(n=l,0===En&&Dn(h)),n===l&&(e.substr(Cn,2).toLowerCase()===f?(n=e.substr(Cn,2),Cn+=2):(n=l,0===En&&Dn(m))),n!==l&&(wn=t,n=g()),t=n,Tn[r]={nextPos:Cn,result:t},t)}function Mn(){var e,t,n,r,o,i,s,a,u=34*Cn+2,c=Tn[u];if(c)return Cn=c.nextPos,c.result;if(e=Cn,(t=Ln())!==l){for(n=[],r=Cn,(o=nr())!==l&&(i=Nn())!==l&&(s=nr())!==l&&(a=Ln())!==l?r=o=[o,i,s,a]:(Cn=r,r=l);r!==l;)n.push(r),r=Cn,(o=nr())!==l&&(i=Nn())!==l&&(s=nr())!==l&&(a=Ln())!==l?r=o=[o,i,s,a]:(Cn=r,r=l);n!==l?(wn=e,e=t=p(t,n)):(Cn=e,e=l)}else Cn=e,e=l;return Tn[u]={nextPos:Cn,result:e},e}function Nn(){var t,n,r=34*Cn+3,o=Tn[r];return o?(Cn=o.nextPos,o.result):(t=Cn,e.substr(Cn,2)===y?(n=y,Cn+=2):(n=l,0===En&&Dn(v)),n===l&&(e.substr(Cn,3).toLowerCase()===b?(n=e.substr(Cn,3),Cn+=3):(n=l,0===En&&Dn(C))),n!==l&&(wn=t,n=w()),t=n,Tn[r]={nextPos:Cn,result:t},t)}function Ln(){var e,t,n,r,o,i,s,a,u=34*Cn+4,c=Tn[u];if(c)return Cn=c.nextPos,c.result;if(e=Cn,(t=qn())!==l){for(n=[],r=Cn,(o=nr())!==l&&(i=jn())!==l&&(s=nr())!==l&&(a=qn())!==l?r=o=[o,i,s,a]:(Cn=r,r=l);r!==l;)n.push(r),r=Cn,(o=nr())!==l&&(i=jn())!==l&&(s=nr())!==l&&(a=qn())!==l?r=o=[o,i,s,a]:(Cn=r,r=l);n!==l?(wn=e,e=t=x(t,n)):(Cn=e,e=l)}else Cn=e,e=l;return Tn[u]={nextPos:Cn,result:e},e}function jn(){var t,n,r=34*Cn+5,o=Tn[r];return o?(Cn=o.nextPos,o.result):(t=Cn,e.substr(Cn,2)===P?(n=P,Cn+=2):(n=l,0===En&&Dn(S)),n===l&&(e.substr(Cn,11).toLowerCase()===E?(n=e.substr(Cn,11),Cn+=11):(n=l,0===En&&Dn(T))),n!==l&&(wn=t,n=O()),(t=n)===l&&(t=Cn,e.substr(Cn,2)===V?(n=V,Cn+=2):(n=l,0===En&&Dn(_)),n===l&&(e.substr(Cn,14).toLowerCase()===R?(n=e.substr(Cn,14),Cn+=14):(n=l,0===En&&Dn(I))),n!==l&&(wn=t,n=D()),(t=n)===l&&(t=Cn,e.substr(Cn,2)===A?(n=A,Cn+=2):(n=l,0===En&&Dn(k)),n===l&&(e.substr(Cn,5).toLowerCase()===M?(n=e.substr(Cn,5),Cn+=5):(n=l,0===En&&Dn(N))),n!==l&&(wn=t,n=L()),(t=n)===l&&(t=Cn,61===e.charCodeAt(Cn)?(n=j,Cn++):(n=l,0===En&&Dn(q)),n===l&&(e.substr(Cn,5).toLowerCase()===M?(n=e.substr(Cn,5),Cn+=5):(n=l,0===En&&Dn(N))),n!==l&&(wn=t,n=L()),(t=n)===l&&(t=Cn,e.substr(Cn,2)===F?(n=F,Cn+=2):(n=l,0===En&&Dn(B)),n===l&&(e.substr(Cn,8).toLowerCase()===Q?(n=e.substr(Cn,8),Cn+=8):(n=l,0===En&&Dn(H))),n!==l&&(wn=t,n=z()),(t=n)===l&&(t=Cn,60===e.charCodeAt(Cn)?(n=U,Cn++):(n=l,0===En&&Dn(W)),n===l&&(e.substr(Cn,4).toLowerCase()===G?(n=e.substr(Cn,4),Cn+=4):(n=l,0===En&&Dn($))),n!==l&&(wn=t,n=J()),(t=n)===l&&(t=Cn,62===e.charCodeAt(Cn)?(n=K,Cn++):(n=l,0===En&&Dn(Y)),n===l&&(e.substr(Cn,7).toLowerCase()===X?(n=e.substr(Cn,7),Cn+=7):(n=l,0===En&&Dn(Z))),n!==l&&(wn=t,n=ee()),t=n)))))),Tn[r]={nextPos:Cn,result:t},t)}function qn(){var e,t,n,r,o,i,s,a,u=34*Cn+6,c=Tn[u];if(c)return Cn=c.nextPos,c.result;if(e=Cn,(t=Bn())!==l){for(n=[],r=Cn,(o=nr())!==l&&(i=Fn())!==l&&(s=nr())!==l&&(a=Bn())!==l?r=o=[o,i,s,a]:(Cn=r,r=l);r!==l;)n.push(r),r=Cn,(o=nr())!==l&&(i=Fn())!==l&&(s=nr())!==l&&(a=Bn())!==l?r=o=[o,i,s,a]:(Cn=r,r=l);n!==l?(wn=e,e=t=p(t,n)):(Cn=e,e=l)}else Cn=e,e=l;return Tn[u]={nextPos:Cn,result:e},e}function Fn(){var t,n,r=34*Cn+7,o=Tn[r];return o?(Cn=o.nextPos,o.result):(t=Cn,43===e.charCodeAt(Cn)?(n=te,Cn++):(n=l,0===En&&Dn(ne)),n!==l&&(wn=t,n=re()),(t=n)===l&&(t=Cn,45===e.charCodeAt(Cn)?(n=oe,Cn++):(n=l,0===En&&Dn(ie)),n!==l&&(wn=t,n=se()),t=n),Tn[r]={nextPos:Cn,result:t},t)}function Bn(){var e,t,n,r,o,i,s,a,u=34*Cn+8,c=Tn[u];if(c)return Cn=c.nextPos,c.result;if(e=Cn,(t=Hn())!==l){for(n=[],r=Cn,(o=nr())!==l&&(i=Qn())!==l&&(s=nr())!==l&&(a=Hn())!==l?r=o=[o,i,s,a]:(Cn=r,r=l);r!==l;)n.push(r),r=Cn,(o=nr())!==l&&(i=Qn())!==l&&(s=nr())!==l&&(a=Hn())!==l?r=o=[o,i,s,a]:(Cn=r,r=l);n!==l?(wn=e,e=t=p(t,n)):(Cn=e,e=l)}else Cn=e,e=l;return Tn[u]={nextPos:Cn,result:e},e}function Qn(){var t,n,r=34*Cn+9,o=Tn[r];return o?(Cn=o.nextPos,o.result):(t=Cn,42===e.charCodeAt(Cn)?(n=ae,Cn++):(n=l,0===En&&Dn(le)),n!==l&&(wn=t,n=ue()),(t=n)===l&&(t=Cn,47===e.charCodeAt(Cn)?(n=ce,Cn++):(n=l,0===En&&Dn(pe)),n!==l&&(wn=t,n=de()),(t=n)===l&&(t=Cn,37===e.charCodeAt(Cn)?(n=he,Cn++):(n=l,0===En&&Dn(fe)),n!==l&&(wn=t,n=me()),t=n)),Tn[r]={nextPos:Cn,result:t},t)}function Hn(){var e,t,n,r,o,i,s,a,u=34*Cn+10,c=Tn[u];if(c)return Cn=c.nextPos,c.result;if(e=Cn,(t=Un())!==l){for(n=[],r=Cn,(o=nr())!==l&&(i=zn())!==l&&(s=nr())!==l&&(a=Un())!==l?r=o=[o,i,s,a]:(Cn=r,r=l);r!==l;)n.push(r),r=Cn,(o=nr())!==l&&(i=zn())!==l&&(s=nr())!==l&&(a=Un())!==l?r=o=[o,i,s,a]:(Cn=r,r=l);n!==l?(wn=e,e=t=p(t,n)):(Cn=e,e=l)}else Cn=e,e=l;return Tn[u]={nextPos:Cn,result:e},e}function zn(){var t,n,r=34*Cn+11,o=Tn[r];return o?(Cn=o.nextPos,o.result):(t=Cn,94===e.charCodeAt(Cn)?(n=ge,Cn++):(n=l,0===En&&Dn(ye)),n===l&&(e.substr(Cn,5).toLowerCase()===ve?(n=e.substr(Cn,5),Cn+=5):(n=l,0===En&&Dn(be))),n!==l&&(wn=t,n=Ce()),t=n,Tn[r]={nextPos:Cn,result:t},t)}function Un(){var e,t,n,r,o,i,s,a,u=34*Cn+12,c=Tn[u];if(c)return Cn=c.nextPos,c.result;if(e=Cn,(t=Gn())!==l){for(n=[],r=Cn,(o=nr())!==l&&(i=Wn())!==l&&(s=nr())!==l?((a=Gn())===l&&(a=null),a!==l?r=o=[o,i,s,a]:(Cn=r,r=l)):(Cn=r,r=l);r!==l;)n.push(r),r=Cn,(o=nr())!==l&&(i=Wn())!==l&&(s=nr())!==l?((a=Gn())===l&&(a=null),a!==l?r=o=[o,i,s,a]:(Cn=r,r=l)):(Cn=r,r=l);n!==l?(wn=e,e=t=x(t,n)):(Cn=e,e=l)}else Cn=e,e=l;return Tn[u]={nextPos:Cn,result:e},e}function Wn(){var t,n,r=34*Cn+13,o=Tn[r];return o?(Cn=o.nextPos,o.result):(t=Cn,e.substr(Cn,2)===we?(n=we,Cn+=2):(n=l,0===En&&Dn(xe)),n===l&&(e.substr(Cn,8).toLowerCase()===Pe?(n=e.substr(Cn,8),Cn+=8):(n=l,0===En&&Dn(Se)),n===l&&(e.substr(Cn,7).toLowerCase()===Ee?(n=e.substr(Cn,7),Cn+=7):(n=l,0===En&&Dn(Te)))),n!==l&&(wn=t,n=Oe()),(t=n)===l&&(t=Cn,e.substr(Cn,11).toLowerCase()===Ve?(n=e.substr(Cn,11),Cn+=11):(n=l,0===En&&Dn(_e)),n===l&&(e.substr(Cn,10).toLowerCase()===Re?(n=e.substr(Cn,10),Cn+=10):(n=l,0===En&&Dn(Ie))),n!==l&&(wn=t,n=De()),(t=n)===l&&(t=Cn,e.substr(Cn,5).toLowerCase()===Ae?(n=e.substr(Cn,5),Cn+=5):(n=l,0===En&&Dn(ke)),n!==l&&(wn=t,n=Me()),(t=n)===l&&(t=Cn,e.substr(Cn,5).toLowerCase()===Ne?(n=e.substr(Cn,5),Cn+=5):(n=l,0===En&&Dn(Le)),n!==l&&(wn=t,n=je()),t=n))),Tn[r]={nextPos:Cn,result:t},t)}function Gn(){var t,n,r,o,i=34*Cn+14,s=Tn[i];return s?(Cn=s.nextPos,s.result):(t=Cn,40===e.charCodeAt(Cn)?(n=qe,Cn++):(n=l,0===En&&Dn(Fe)),n!==l&&nr()!==l&&(r=An())!==l&&nr()!==l?(41===e.charCodeAt(Cn)?(o=Be,Cn++):(o=l,0===En&&Dn(Qe)),o===l&&(o=null),o!==l?(wn=t,t=n=He(r)):(Cn=t,t=l)):(Cn=t,t=l),t===l&&(t=function(){var t,n,r,o,i,s=34*Cn+15,a=Tn[s];return a?(Cn=a.nextPos,a.result):(t=Cn,(n=Zn())!==l?(40===e.charCodeAt(Cn)?(r=qe,Cn++):(r=l,0===En&&Dn(Fe)),r!==l&&(o=Jn())!==l?(41===e.charCodeAt(Cn)?(i=Be,Cn++):(i=l,0===En&&Dn(Qe)),i===l&&(i=null),i!==l?(wn=t,t=n=ze(n,o)):(Cn=t,t=l)):(Cn=t,t=l)):(Cn=t,t=l),Tn[s]={nextPos:Cn,result:t},t)}(),t===l&&(t=function(){var t,n,r,o=34*Cn+16,i=Tn[o];return i?(Cn=i.nextPos,i.result):(t=Cn,33===e.charCodeAt(Cn)?(n=Ue,Cn++):(n=l,0===En&&Dn(We)),n===l&&(e.substr(Cn,6).toLowerCase()===Ge?(n=e.substr(Cn,6),Cn+=6):(n=l,0===En&&Dn($e))),n!==l&&nr()!==l&&(r=An())!==l?(wn=t,t=n=Je(r)):(Cn=t,t=l),t===l&&(t=Cn,(n=$n())!==l&&nr()!==l?(r=function(){var t,n,r=34*Cn+17,o=Tn[r];return o?(Cn=o.nextPos,o.result):(t=Cn,e.substr(Cn,5).toLowerCase()===Ye?(n=e.substr(Cn,5),Cn+=5):(n=l,0===En&&Dn(Xe)),n!==l&&(wn=t,n=Ze()),(t=n)===l&&(t=Cn,e.substr(Cn,8).toLowerCase()===et?(n=e.substr(Cn,8),Cn+=8):(n=l,0===En&&Dn(tt)),n!==l&&(wn=t,n=nt()),t=n),Tn[r]={nextPos:Cn,result:t},t)}(),r!==l?(wn=t,t=n=Ke(n,r)):(Cn=t,t=l)):(Cn=t,t=l)),Tn[o]={nextPos:Cn,result:t},t)}(),t===l&&(t=$n())===l&&(t=function(){var t,n,r,o,i=34*Cn+20,s=Tn[i];return s?(Cn=s.nextPos,s.result):(t=Cn,91===e.charCodeAt(Cn)?(n=Et,Cn++):(n=l,0===En&&Dn(Tt)),n!==l&&(r=Jn())!==l?(93===e.charCodeAt(Cn)?(o=Ot,Cn++):(o=l,0===En&&Dn(Vt)),o!==l?(wn=t,t=n=_t(r)):(Cn=t,t=l)):(Cn=t,t=l),Tn[i]={nextPos:Cn,result:t},t)}()))),Tn[i]={nextPos:Cn,result:t},t)}function $n(){var t,n,r,o,i=34*Cn+18,s=Tn[i];return s?(Cn=s.nextPos,s.result):(t=Cn,nr()!==l?(e.substr(Cn,9)===rt?(n=rt,Cn+=9):(n=l,0===En&&Dn(ot)),n===l&&(e.substr(Cn,4)===it?(n=it,Cn+=4):(n=l,0===En&&Dn(st))),n!==l?(wn=t,t=at()):(Cn=t,t=l)):(Cn=t,t=l),t===l&&(t=Cn,nr()!==l?(n=function(){var t,n,r,o,i=34*Cn+19,s=Tn[i];return s?(Cn=s.nextPos,s.result):(t=Cn,n=function(){var t,n,r=34*Cn+22,o=Tn[r];return o?(Cn=o.nextPos,o.result):(t=Cn,e.substr(Cn,4).toLowerCase()===At?(n=e.substr(Cn,4),Cn+=4):(n=l,0===En&&Dn(kt)),n!==l&&(wn=t,n=Mt()),(t=n)===l&&(t=Cn,e.substr(Cn,5).toLowerCase()===Nt?(n=e.substr(Cn,5),Cn+=5):(n=l,0===En&&Dn(Lt)),n!==l&&(wn=t,n=jt()),t=n),Tn[r]={nextPos:Cn,result:t},t)}(),n!==l&&(wn=t,n=ft(n)),(t=n)===l&&(t=Cn,n=function(){var t,n,r,o=34*Cn+23,i=Tn[o];return i?(Cn=i.nextPos,i.result):(t=Cn,e.substr(Cn,2)===qt?(n=qt,Cn+=2):(n=l,0===En&&Dn(Ft)),n!==l&&(r=er())!==l?(wn=t,t=n=Bt()):(Cn=t,t=l),t===l&&(t=Cn,Qt.test(e.charAt(Cn))?(n=e.charAt(Cn),Cn++):(n=l,0===En&&Dn(Ht)),n===l&&(n=null),n!==l?(r=function(){var t,n,r,o=34*Cn+24,i=Tn[o];return i?(Cn=i.nextPos,i.result):(t=Cn,(n=er())!==l?(46===e.charCodeAt(Cn)?(r=Ut,Cn++):(r=l,0===En&&Dn(Wt)),r!==l&&er()!==l?(wn=t,t=n=Gt()):(Cn=t,t=l)):(Cn=t,t=l),t===l&&(t=Cn,n=function(){var t,n,r=34*Cn+31,o=Tn[r];if(o)return Cn=o.nextPos,o.result;if(t=[],hn.test(e.charAt(Cn))?(n=e.charAt(Cn),Cn++):(n=l,0===En&&Dn(fn)),n!==l)for(;n!==l;)t.push(n),hn.test(e.charAt(Cn))?(n=e.charAt(Cn),Cn++):(n=l,0===En&&Dn(fn));else t=l;return Tn[r]={nextPos:Cn,result:t},t}(),n!==l?((r=er())===l&&(r=null),r!==l?(wn=t,t=n=$t()):(Cn=t,t=l)):(Cn=t,t=l),t===l&&(t=Cn,48===e.charCodeAt(Cn)?(n=Jt,Cn++):(n=l,0===En&&Dn(Kt)),n!==l&&(wn=t,n=Yt()),t=n)),Tn[o]={nextPos:Cn,result:t},t)}(),r!==l?(wn=t,t=n=zt(n,r)):(Cn=t,t=l)):(Cn=t,t=l)),Tn[o]={nextPos:Cn,result:t},t)}(),n!==l&&(wn=t,n=ft(n)),(t=n)===l&&(t=Cn,(n=Zn())!==l&&(wn=t,n=ft(n)),(t=n)===l&&(t=Cn,e.substr(Cn,2)===mt?(n=mt,Cn+=2):(n=l,0===En&&Dn(gt)),n!==l&&(wn=t,n=yt()),(t=n)===l&&(t=Cn,e.substr(Cn,2)===vt?(n=vt,Cn+=2):(n=l,0===En&&Dn(bt)),n!==l&&(wn=t,n=yt()),(t=n)===l&&(t=Cn,39===e.charCodeAt(Cn)?(n=Ct,Cn++):(n=l,0===En&&Dn(wt)),n!==l&&(r=Kn())!==l?(39===e.charCodeAt(Cn)?(o=Ct,Cn++):(o=l,0===En&&Dn(wt)),o!==l?(wn=t,t=n=xt(r)):(Cn=t,t=l)):(Cn=t,t=l),t===l&&(t=Cn,34===e.charCodeAt(Cn)?(n=Pt,Cn++):(n=l,0===En&&Dn(St)),n!==l&&(r=Kn())!==l?(34===e.charCodeAt(Cn)?(o=Pt,Cn++):(o=l,0===En&&Dn(St)),o!==l?(wn=t,t=n=xt(r)):(Cn=t,t=l)):(Cn=t,t=l))))))),Tn[i]={nextPos:Cn,result:t},t)}(),n!==l?(wn=t,t=lt(n)):(Cn=t,t=l)):(Cn=t,t=l),t===l&&(t=Cn,nr()!==l?(123===e.charCodeAt(Cn)?(n=ut,Cn++):(n=l,0===En&&Dn(ct)),n!==l?(r=function(){var e,t,n,r=34*Cn+25,o=Tn[r];if(o)return Cn=o.nextPos,o.result;if(e=Cn,t=[],(n=Xn())!==l)for(;n!==l;)t.push(n),n=Xn();else t=l;return t!==l&&(wn=e,t=Xt(t)),e=t,Tn[r]={nextPos:Cn,result:e},e}(),r!==l?(125===e.charCodeAt(Cn)?(o=pt,Cn++):(o=l,0===En&&Dn(dt)),o!==l?(wn=t,t=ht(r)):(Cn=t,t=l)):(Cn=t,t=l)):(Cn=t,t=l)):(Cn=t,t=l))),Tn[i]={nextPos:Cn,result:t},t)}function Jn(){var t,n,r,o,i,s,a,u,c=34*Cn+21,p=Tn[c];if(p)return Cn=p.nextPos,p.result;if(t=Cn,(n=An())===l&&(n=null),n!==l){for(r=[],o=Cn,(i=nr())!==l?(44===e.charCodeAt(Cn)?(s=Rt,Cn++):(s=l,0===En&&Dn(It)),s!==l&&(a=nr())!==l&&(u=An())!==l?o=i=[i,s,a,u]:(Cn=o,o=l)):(Cn=o,o=l);o!==l;)r.push(o),o=Cn,(i=nr())!==l?(44===e.charCodeAt(Cn)?(s=Rt,Cn++):(s=l,0===En&&Dn(It)),s!==l&&(a=nr())!==l&&(u=An())!==l?o=i=[i,s,a,u]:(Cn=o,o=l)):(Cn=o,o=l);r!==l?(wn=t,t=n=Dt(n,r)):(Cn=t,t=l)}else Cn=t,t=l;return Tn[c]={nextPos:Cn,result:t},t}function Kn(){var e,t,n,r=34*Cn+26,o=Tn[r];if(o)return Cn=o.nextPos,o.result;if(e=Cn,t=[],(n=Yn())!==l)for(;n!==l;)t.push(n),n=Yn();else t=l;return t!==l&&(wn=e,t=Xt(t)),e=t,Tn[r]={nextPos:Cn,result:e},e}function Yn(){var t,n,r=34*Cn+27,o=Tn[r];return o?(Cn=o.nextPos,o.result):(t=Cn,e.substr(Cn,2)===Zt?(n=Zt,Cn+=2):(n=l,0===En&&Dn(en)),n!==l&&(wn=t,n=tn()),(t=n)===l&&(t=Cn,e.substr(Cn,2)===nn?(n=nn,Cn+=2):(n=l,0===En&&Dn(rn)),n!==l&&(wn=t,n=on()),(t=n)===l&&(t=Cn,sn.test(e.charAt(Cn))?(n=e.charAt(Cn),Cn++):(n=l,0===En&&Dn(an)),n!==l&&(wn=t,n=ln()),t=n)),Tn[r]={nextPos:Cn,result:t},t)}function Xn(){var t,n,r=34*Cn+28,o=Tn[r];return o?(Cn=o.nextPos,o.result):(t=Cn,un.test(e.charAt(Cn))?(n=e.charAt(Cn),Cn++):(n=l,0===En&&Dn(cn)),n!==l&&(wn=t,n=ln()),t=n,Tn[r]={nextPos:Cn,result:t},t)}function Zn(){var e,t,n,r,o,i,s=34*Cn+29,a=Tn[s];if(a)return Cn=a.nextPos,a.result;if(e=Cn,tr()!==l){if(t=[],n=Cn,(r=er())!==l){for(o=[],i=tr();i!==l;)o.push(i),i=tr();o!==l?n=r=[r,o]:(Cn=n,n=l)}else Cn=n,n=l;for(;n!==l;)if(t.push(n),n=Cn,(r=er())!==l){for(o=[],i=tr();i!==l;)o.push(i),i=tr();o!==l?n=r=[r,o]:(Cn=n,n=l)}else Cn=n,n=l;t!==l?(wn=e,e=ln()):(Cn=e,e=l)}else Cn=e,e=l;return Tn[s]={nextPos:Cn,result:e},e}function er(){var t,n,r=34*Cn+30,o=Tn[r];if(o)return Cn=o.nextPos,o.result;if(t=[],pn.test(e.charAt(Cn))?(n=e.charAt(Cn),Cn++):(n=l,0===En&&Dn(dn)),n!==l)for(;n!==l;)t.push(n),pn.test(e.charAt(Cn))?(n=e.charAt(Cn),Cn++):(n=l,0===En&&Dn(dn));else t=l;return Tn[r]={nextPos:Cn,result:t},t}function tr(){var t,n,r=34*Cn+32,o=Tn[r];if(o)return Cn=o.nextPos,o.result;if(t=[],mn.test(e.charAt(Cn))?(n=e.charAt(Cn),Cn++):(n=l,0===En&&Dn(gn)),n!==l)for(;n!==l;)t.push(n),mn.test(e.charAt(Cn))?(n=e.charAt(Cn),Cn++):(n=l,0===En&&Dn(gn));else t=l;return Tn[r]={nextPos:Cn,result:t},t}function nr(){var t,n,r=34*Cn+33,o=Tn[r];if(o)return Cn=o.nextPos,o.result;for(En++,t=[],vn.test(e.charAt(Cn))?(n=e.charAt(Cn),Cn++):(n=l,0===En&&Dn(bn));n!==l;)t.push(n),vn.test(e.charAt(Cn))?(n=e.charAt(Cn),Cn++):(n=l,0===En&&Dn(bn));return En--,t===l&&(n=l,0===En&&Dn(yn)),Tn[r]={nextPos:Cn,result:t},t}function rr(e,t,n){return void 0===n&&(n=!1),t.reduce((function(e,t){return new o.BinaryOperand(t[1],e,t[3],n)}),e)}if((n=c())!==l&&Cn===e.length)return n;throw n!==l&&Cn<e.length&&Dn({type:"end"}),r=Sn,i=Pn<e.length?e.charAt(Pn):null,a=Pn<e.length?In(Pn,Pn+1):In(Pn,Pn),new s(s.buildMessage(r,i),r,i,a)}},"./src/expressions/expressions.ts":function(e,t,n){"use strict";n.r(t),n.d(t,"Operand",(function(){return u})),n.d(t,"BinaryOperand",(function(){return c})),n.d(t,"UnaryOperand",(function(){return p})),n.d(t,"ArrayOperand",(function(){return d})),n.d(t,"Const",(function(){return h})),n.d(t,"Variable",(function(){return f})),n.d(t,"FunctionOperand",(function(){return m})),n.d(t,"OperandMaker",(function(){return g}));var r,o=n("./src/helpers.ts"),i=n("./src/functionsfactory.ts"),s=n("./src/conditionProcessValue.ts"),a=n("./src/settings.ts"),l=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),u=function(){function e(){}return e.prototype.toString=function(e){return void 0===e&&(e=void 0),""},e.prototype.hasFunction=function(){return!1},e.prototype.hasAsyncFunction=function(){return!1},e.prototype.addToAsyncList=function(e){},e.prototype.isEqual=function(e){return!!e&&e.getType()===this.getType()&&this.isContentEqual(e)},e.prototype.areOperatorsEquals=function(e,t){return!e&&!t||!!e&&e.isEqual(t)},e}(),c=function(e){function t(t,n,r,o){void 0===n&&(n=null),void 0===r&&(r=null),void 0===o&&(o=!1);var i=e.call(this)||this;return i.operatorName=t,i.left=n,i.right=r,i.isArithmeticValue=o,i.consumer=o?g.binaryFunctions.arithmeticOp(t):g.binaryFunctions[t],null==i.consumer&&g.throwInvalidOperatorError(t),i}return l(t,e),Object.defineProperty(t.prototype,"requireStrictCompare",{get:function(){return this.getIsOperandRequireStrict(this.left)||this.getIsOperandRequireStrict(this.right)},enumerable:!1,configurable:!0}),t.prototype.getIsOperandRequireStrict=function(e){return!!e&&e.requireStrictCompare},t.prototype.getType=function(){return"binary"},Object.defineProperty(t.prototype,"isArithmetic",{get:function(){return this.isArithmeticValue},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isConjunction",{get:function(){return"or"==this.operatorName||"and"==this.operatorName},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"conjunction",{get:function(){return this.isConjunction?this.operatorName:""},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"operator",{get:function(){return this.operatorName},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"leftOperand",{get:function(){return this.left},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"rightOperand",{get:function(){return this.right},enumerable:!1,configurable:!0}),t.prototype.isContentEqual=function(e){var t=e;return t.operator===this.operator&&this.areOperatorsEquals(this.left,t.left)&&this.areOperatorsEquals(this.right,t.right)},t.prototype.evaluateParam=function(e,t){return null==e?null:e.evaluate(t)},t.prototype.evaluate=function(e){return this.consumer.call(this,this.evaluateParam(this.left,e),this.evaluateParam(this.right,e),this.requireStrictCompare)},t.prototype.toString=function(e){if(void 0===e&&(e=void 0),e){var t=e(this);if(t)return t}return"("+g.safeToString(this.left,e)+" "+g.operatorToString(this.operatorName)+" "+g.safeToString(this.right,e)+")"},t.prototype.setVariables=function(e){null!=this.left&&this.left.setVariables(e),null!=this.right&&this.right.setVariables(e)},t.prototype.hasFunction=function(){return!!this.left&&this.left.hasFunction()||!!this.right&&this.right.hasFunction()},t.prototype.hasAsyncFunction=function(){return!!this.left&&this.left.hasAsyncFunction()||!!this.right&&this.right.hasAsyncFunction()},t.prototype.addToAsyncList=function(e){this.left&&this.left.addToAsyncList(e),this.right&&this.right.addToAsyncList(e)},t}(u),p=function(e){function t(t,n){var r=e.call(this)||this;return r.expressionValue=t,r.operatorName=n,r.consumer=g.unaryFunctions[n],null==r.consumer&&g.throwInvalidOperatorError(n),r}return l(t,e),Object.defineProperty(t.prototype,"operator",{get:function(){return this.operatorName},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"expression",{get:function(){return this.expressionValue},enumerable:!1,configurable:!0}),t.prototype.getType=function(){return"unary"},t.prototype.toString=function(e){if(void 0===e&&(e=void 0),e){var t=e(this);if(t)return t}return g.operatorToString(this.operatorName)+" "+this.expression.toString(e)},t.prototype.isContentEqual=function(e){var t=e;return t.operator==this.operator&&this.areOperatorsEquals(this.expression,t.expression)},t.prototype.evaluate=function(e){var t=this.expression.evaluate(e);return this.consumer.call(this,t)},t.prototype.setVariables=function(e){this.expression.setVariables(e)},t}(u),d=function(e){function t(t){var n=e.call(this)||this;return n.values=t,n}return l(t,e),t.prototype.getType=function(){return"array"},t.prototype.toString=function(e){if(void 0===e&&(e=void 0),e){var t=e(this);if(t)return t}return"["+this.values.map((function(t){return t.toString(e)})).join(", ")+"]"},t.prototype.evaluate=function(e){return this.values.map((function(t){return t.evaluate(e)}))},t.prototype.setVariables=function(e){this.values.forEach((function(t){t.setVariables(e)}))},t.prototype.hasFunction=function(){return this.values.some((function(e){return e.hasFunction()}))},t.prototype.hasAsyncFunction=function(){return this.values.some((function(e){return e.hasAsyncFunction()}))},t.prototype.addToAsyncList=function(e){this.values.forEach((function(t){return t.addToAsyncList(e)}))},t.prototype.isContentEqual=function(e){var t=e;if(t.values.length!==this.values.length)return!1;for(var n=0;n<this.values.length;n++)if(!t.values[n].isEqual(this.values[n]))return!1;return!0},t}(u),h=function(e){function t(t){var n=e.call(this)||this;return n.value=t,n}return l(t,e),t.prototype.getType=function(){return"const"},t.prototype.toString=function(e){if(void 0===e&&(e=void 0),e){var t=e(this);if(t)return t}return this.value.toString()},Object.defineProperty(t.prototype,"correctValue",{get:function(){return this.getCorrectValue(this.value)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"requireStrictCompare",{get:function(){return!1},enumerable:!1,configurable:!0}),t.prototype.evaluate=function(){return this.getCorrectValue(this.value)},t.prototype.setVariables=function(e){},t.prototype.getCorrectValue=function(e){return e&&"string"==typeof e?this.isBooleanValue(e)?"true"===e.toLowerCase():e.length>1&&this.isQuote(e[0])&&this.isQuote(e[e.length-1])?e.substring(1,e.length-1):g.isNumeric(e)?0==e.indexOf("0x")?parseInt(e):e.length>1&&"0"==e[0]?e:parseFloat(e):e:e},t.prototype.isContentEqual=function(e){return e.value==this.value},t.prototype.isQuote=function(e){return"'"==e||'"'==e},t.prototype.isBooleanValue=function(e){return e&&("true"===e.toLowerCase()||"false"===e.toLowerCase())},t}(u),f=function(e){function t(n){var r=e.call(this,n)||this;return r.variableName=n,r.valueInfo={},r.useValueAsItIs=!1,r.variableName&&r.variableName.length>1&&r.variableName[0]===t.DisableConversionChar&&(r.variableName=r.variableName.substring(1),r.useValueAsItIs=!0),r}return l(t,e),Object.defineProperty(t,"DisableConversionChar",{get:function(){return a.settings.expressionDisableConversionChar},set:function(e){a.settings.expressionDisableConversionChar=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"requireStrictCompare",{get:function(){return!0===this.valueInfo.sctrictCompare},enumerable:!1,configurable:!0}),t.prototype.getType=function(){return"variable"},t.prototype.toString=function(e){if(void 0===e&&(e=void 0),e){var n=e(this);if(n)return n}return"{"+(this.useValueAsItIs?t.DisableConversionChar:"")+this.variableName+"}"},Object.defineProperty(t.prototype,"variable",{get:function(){return this.variableName},enumerable:!1,configurable:!0}),t.prototype.evaluate=function(e){return this.valueInfo.name=this.variableName,e.getValueInfo(this.valueInfo),this.valueInfo.hasValue?this.getCorrectValue(this.valueInfo.value):null},t.prototype.setVariables=function(e){e.push(this.variableName)},t.prototype.getCorrectValue=function(t){return this.useValueAsItIs?t:e.prototype.getCorrectValue.call(this,t)},t.prototype.isContentEqual=function(e){return e.variable==this.variable},t}(h),m=function(e){function t(t,n){var r=e.call(this)||this;return r.originalValue=t,r.parameters=n,r.isReadyValue=!1,Array.isArray(n)&&0===n.length&&(r.parameters=new d([])),r}return l(t,e),t.prototype.getType=function(){return"function"},t.prototype.evaluateAsync=function(e){var t=this;this.isReadyValue=!1;var n=new s.ProcessValue;n.values=o.Helpers.createCopy(e.values),n.properties=o.Helpers.createCopy(e.properties),n.properties.returnResult=function(e){t.asynResult=e,t.isReadyValue=!0,t.onAsyncReady()},this.evaluateCore(n)},t.prototype.evaluate=function(e){return this.isReady?this.asynResult:this.evaluateCore(e)},t.prototype.evaluateCore=function(e){return i.FunctionFactory.Instance.run(this.originalValue,this.parameters.evaluate(e),e.properties)},t.prototype.toString=function(e){if(void 0===e&&(e=void 0),e){var t=e(this);if(t)return t}return this.originalValue+"("+this.parameters.toString(e)+")"},t.prototype.setVariables=function(e){this.parameters.setVariables(e)},Object.defineProperty(t.prototype,"isReady",{get:function(){return this.isReadyValue},enumerable:!1,configurable:!0}),t.prototype.hasFunction=function(){return!0},t.prototype.hasAsyncFunction=function(){return i.FunctionFactory.Instance.isAsyncFunction(this.originalValue)},t.prototype.addToAsyncList=function(e){this.hasAsyncFunction()&&e.push(this)},t.prototype.isContentEqual=function(e){var t=e;return t.originalValue==this.originalValue&&this.areOperatorsEquals(t.parameters,this.parameters)},t}(u),g=function(){function e(){}return e.throwInvalidOperatorError=function(e){throw new Error("Invalid operator: '"+e+"'")},e.safeToString=function(e,t){return null==e?"":e.toString(t)},e.toOperandString=function(t){return!t||e.isNumeric(t)||e.isBooleanValue(t)||(t="'"+t+"'"),t},e.isSpaceString=function(e){return!!e&&!e.replace(" ","")},e.isNumeric=function(t){return(!t||!(t.indexOf("-")>-1||t.indexOf("+")>1||t.indexOf("*")>-1||t.indexOf("^")>-1||t.indexOf("/")>-1||t.indexOf("%")>-1))&&!e.isSpaceString(t)&&o.Helpers.isNumber(t)},e.isBooleanValue=function(e){return!!e&&("true"===e.toLowerCase()||"false"===e.toLowerCase())},e.countDecimals=function(e){if(o.Helpers.isNumber(e)&&Math.floor(e)!==e){var t=e.toString().split(".");return t.length>1&&t[1].length||0}return 0},e.plusMinus=function(t,n,r){var o=e.countDecimals(t),i=e.countDecimals(n);if(o>0||i>0){var s=Math.max(o,i);r=parseFloat(r.toFixed(s))}return r},e.isTwoValueEquals=function(e,t,n){return void 0===n&&(n=!0),"undefined"===e&&(e=void 0),"undefined"===t&&(t=void 0),o.Helpers.isTwoValueEquals(e,t,n)},e.operatorToString=function(t){var n=e.signs[t];return null==n?t:n},e.convertValForDateCompare=function(e,t){if(t instanceof Date&&"string"==typeof e){var n=new Date(e);return n.setHours(0,0,0),n}return e},e.unaryFunctions={empty:function(e){return o.Helpers.isValueEmpty(e)},notempty:function(t){return!e.unaryFunctions.empty(t)},negate:function(e){return!e}},e.binaryFunctions={arithmeticOp:function(t){var n=function(e,t){return o.Helpers.isValueEmpty(e)?"number"==typeof t?0:"string"==typeof e?e:"string"==typeof t?"":Array.isArray(t)?[]:0:e};return function(r,o){r=n(r,o),o=n(o,r);var i=e.binaryFunctions[t];return null==i?null:i.call(this,r,o)}},and:function(e,t){return e&&t},or:function(e,t){return e||t},plus:function(e,t){return o.Helpers.sumAnyValues(e,t)},minus:function(e,t){return o.Helpers.correctAfterPlusMinis(e,t,e-t)},mul:function(e,t){return o.Helpers.correctAfterMultiple(e,t,e*t)},div:function(e,t){return t?e/t:null},mod:function(e,t){return t?e%t:null},power:function(e,t){return Math.pow(e,t)},greater:function(t,n){return null!=t&&null!=n&&(t=e.convertValForDateCompare(t,n))>e.convertValForDateCompare(n,t)},less:function(t,n){return null!=t&&null!=n&&(t=e.convertValForDateCompare(t,n))<e.convertValForDateCompare(n,t)},greaterorequal:function(t,n){return!!e.binaryFunctions.equal(t,n)||e.binaryFunctions.greater(t,n)},lessorequal:function(t,n){return!!e.binaryFunctions.equal(t,n)||e.binaryFunctions.less(t,n)},equal:function(t,n,r){return t=e.convertValForDateCompare(t,n),n=e.convertValForDateCompare(n,t),e.isTwoValueEquals(t,n,!0!==r)},notequal:function(t,n){return!e.binaryFunctions.equal(t,n)},contains:function(t,n){return e.binaryFunctions.containsCore(t,n,!0)},notcontains:function(t,n){return!t&&!o.Helpers.isValueEmpty(n)||e.binaryFunctions.containsCore(t,n,!1)},anyof:function(t,n){if(o.Helpers.isValueEmpty(t)&&o.Helpers.isValueEmpty(n))return!0;if(o.Helpers.isValueEmpty(t)||!Array.isArray(t)&&0===t.length)return!1;if(o.Helpers.isValueEmpty(n))return!0;if(!Array.isArray(t))return e.binaryFunctions.contains(n,t);if(!Array.isArray(n))return e.binaryFunctions.contains(t,n);for(var r=0;r<n.length;r++)if(e.binaryFunctions.contains(t,n[r]))return!0;return!1},allof:function(t,n){if(!t&&!o.Helpers.isValueEmpty(n))return!1;if(!Array.isArray(n))return e.binaryFunctions.contains(t,n);for(var r=0;r<n.length;r++)if(!e.binaryFunctions.contains(t,n[r]))return!1;return!0},containsCore:function(t,n,r){if(!t&&0!==t&&!1!==t)return!1;if(t.length||(t=t.toString(),("string"==typeof n||n instanceof String)&&(t=t.toUpperCase(),n=n.toUpperCase())),"string"==typeof t||t instanceof String){if(!n)return!1;n=n.toString();var o=t.indexOf(n)>-1;return r?o:!o}for(var i=Array.isArray(n)?n:[n],s=0;s<i.length;s++){var a=0;for(n=i[s];a<t.length&&!e.isTwoValueEquals(t[a],n);a++);if(a==t.length)return!r}return r}},e.signs={less:"<",lessorequal:"<=",greater:">",greaterorequal:">=",equal:"==",notequal:"!=",plus:"+",minus:"-",mul:"*",div:"/",and:"and",or:"or",power:"^",mod:"%",negate:"!"},e}()},"./src/flowpanel.ts":function(e,t,n){"use strict";n.r(t),n.d(t,"FlowPanelModel",(function(){return a}));var r,o=n("./src/jsonobject.ts"),i=n("./src/panel.ts"),s=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),a=function(e){function t(t){void 0===t&&(t="");var n=e.call(this,t)||this;return n.createLocalizableString("content",n,!0),n.registerPropertyChangedHandlers(["content"],(function(){n.onContentChanged()})),n}return s(t,e),t.prototype.getType=function(){return"flowpanel"},t.prototype.getChildrenLayoutType=function(){return"flow"},t.prototype.onSurveyLoad=function(){e.prototype.onSurveyLoad.call(this),this.onContentChanged()},Object.defineProperty(t.prototype,"content",{get:function(){return this.getLocalizableStringText("content")},set:function(e){this.setLocalizableStringText("content",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locContent",{get:function(){return this.getLocalizableString("content")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"html",{get:function(){return this.getPropertyValue("html","")},set:function(e){this.setPropertyValue("html",e)},enumerable:!1,configurable:!0}),t.prototype.onContentChanged=function(){var e;e=this.onCustomHtmlProducing?this.onCustomHtmlProducing():this.produceHtml(),this.html=e,this.contentChangedCallback&&this.contentChangedCallback()},t.prototype.produceHtml=function(){for(var e=[],t=/{(.*?(element:)[^$].*?)}/g,n=this.content,r=0,o=null;null!==(o=t.exec(n));){o.index>r&&(e.push(n.substring(r,o.index)),r=o.index);var i=this.getQuestionFromText(o[0]);i?e.push(this.getHtmlForQuestion(i)):e.push(n.substring(r,o.index+o[0].length)),r=o.index+o[0].length}return r<n.length&&e.push(n.substring(r,n.length)),e.join("").replace(new RegExp("<br>","g"),"<br/>")},t.prototype.getQuestionFromText=function(e){return e=(e=e.substring(1,e.length-1)).replace(t.contentElementNamePrefix,"").trim(),this.getQuestionByName(e)},t.prototype.getHtmlForQuestion=function(e){return this.onGetHtmlForQuestion?this.onGetHtmlForQuestion(e):""},t.prototype.getQuestionHtmlId=function(e){return this.name+"_"+e.id},t.prototype.onAddElement=function(t,n){e.prototype.onAddElement.call(this,t,n),this.addElementToContent(t),t.renderWidth=""},t.prototype.onRemoveElement=function(t){var n=this.getElementContentText(t);this.content=this.content.replace(n,""),e.prototype.onRemoveElement.call(this,t)},t.prototype.dragDropMoveElement=function(e,t,n){},t.prototype.addElementToContent=function(e){if(!this.isLoadingFromJson){var t=this.getElementContentText(e);this.insertTextAtCursor(t)||(this.content=this.content+t)}},t.prototype.insertTextAtCursor=function(e,t){if(void 0===t&&(t=null),!this.isDesignMode||"undefined"==typeof document||!window.getSelection)return!1;var n=window.getSelection();if(n.getRangeAt&&n.rangeCount){var r=n.getRangeAt(0);if(r.deleteContents(),r.insertNode(document.createTextNode(e)),this.getContent){var o=this.getContent(t);this.content=o}return!0}return!1},t.prototype.getElementContentText=function(e){return"{"+t.contentElementNamePrefix+e.name+"}"},t.contentElementNamePrefix="element:",t}(i.PanelModel);o.Serializer.addClass("flowpanel",[{name:"content:html",serializationProperty:"locContent"}],(function(){return new a}),"panel")},"./src/functionsfactory.ts":function(e,t,n){"use strict";n.r(t),n.d(t,"FunctionFactory",(function(){return i})),n.d(t,"registerFunction",(function(){return s}));var r=n("./src/helpers.ts"),o=n("./src/settings.ts"),i=function(){function e(){this.functionHash={},this.isAsyncHash={}}return e.prototype.register=function(e,t,n){void 0===n&&(n=!1),this.functionHash[e]=t,n&&(this.isAsyncHash[e]=!0)},e.prototype.unregister=function(e){delete this.functionHash[e],delete this.isAsyncHash[e]},e.prototype.hasFunction=function(e){return!!this.functionHash[e]},e.prototype.isAsyncFunction=function(e){return!!this.isAsyncHash[e]},e.prototype.clear=function(){this.functionHash={}},e.prototype.getAll=function(){var e=[];for(var t in this.functionHash)e.push(t);return e.sort()},e.prototype.run=function(e,t,n){void 0===n&&(n=null);var r=this.functionHash[e];if(!r)return null;var o={func:r};if(n)for(var i in n)o[i]=n[i];return o.func(t)},e.Instance=new e,e}(),s=i.Instance.register;function a(e,t){if(null!=e)if(Array.isArray(e))for(var n=0;n<e.length;n++)a(e[n],t);else r.Helpers.isNumber(e)&&(e=r.Helpers.getNumber(e)),t.push(e)}function l(e){var t=[];a(e,t);for(var n=0,o=0;o<t.length;o++)n=r.Helpers.correctAfterPlusMinis(n,t[o],n+t[o]);return n}function u(e,t){var n=[];a(e,n);for(var r=void 0,o=0;o<n.length;o++)void 0===r&&(r=n[o]),t?r>n[o]&&(r=n[o]):r<n[o]&&(r=n[o]);return r}function c(e,t,n,o,i){return!e||r.Helpers.isValueEmpty(e[t])?n:o(n,i?"string"==typeof(s=e[t])?r.Helpers.isNumber(s)?r.Helpers.getNumber(s):void 0:s:1);var s}function p(e,t,n){void 0===n&&(n=!0);var r=function(e){if(2!=e.length)return null;var t=e[0];if(!t)return null;if(!Array.isArray(t)&&!Array.isArray(Object.keys(t)))return null;var n=e[1];return"string"==typeof n||n instanceof String?{data:t,name:n}:null}(e);if(r){var o=void 0;if(Array.isArray(r.data))for(var i=0;i<r.data.length;i++)o=c(r.data[i],r.name,o,t,n);else for(var s in r.data)o=c(r.data[s],r.name,o,t,n);return o}}function d(e){var t=p(e,(function(e,t){return null==e&&(e=0),null==t||null==t?e:r.Helpers.correctAfterPlusMinis(e,t,e+t)}));return void 0!==t?t:0}function h(e){var t=p(e,(function(e,t){return null==e&&(e=0),null==t||null==t?e:e+1}),!1);return void 0!==t?t:0}function f(e){if(!e)return!1;for(var t=e.questions,n=0;n<t.length;n++)if(!t[n].validate(!1))return!1;return!0}function m(e){var t=new Date;return o.settings.localization.useLocalTimeZone?t.setHours(0,0,0,0):t.setUTCHours(0,0,0,0),Array.isArray(e)&&1==e.length&&t.setDate(t.getDate()+e[0]),t}function g(e){var t=m(void 0);return e&&e[0]&&(t=new Date(e[0])),t}i.Instance.register("sum",l),i.Instance.register("min",(function(e){return u(e,!0)})),i.Instance.register("max",(function(e){return u(e,!1)})),i.Instance.register("count",(function(e){var t=[];return a(e,t),t.length})),i.Instance.register("avg",(function(e){var t=[];a(e,t);var n=l(e);return t.length>0?n/t.length:0})),i.Instance.register("sumInArray",d),i.Instance.register("minInArray",(function(e){return p(e,(function(e,t){return null==e?t:null==t||null==t||e<t?e:t}))})),i.Instance.register("maxInArray",(function(e){return p(e,(function(e,t){return null==e?t:null==t||null==t||e>t?e:t}))})),i.Instance.register("countInArray",h),i.Instance.register("avgInArray",(function(e){var t=h(e);return 0==t?0:d(e)/t})),i.Instance.register("iif",(function(e){return e||3===e.length?e[0]?e[1]:e[2]:""})),i.Instance.register("getDate",(function(e){return!e&&e.length<1?null:e[0]?new Date(e[0]):null})),i.Instance.register("age",(function(e){if(!e&&e.length<1)return null;if(!e[0])return null;var t=new Date(e[0]),n=new Date,r=n.getFullYear()-t.getFullYear(),o=n.getMonth()-t.getMonth();return(o<0||0===o&&n.getDate()<t.getDate())&&(r-=r>0?1:0),r})),i.Instance.register("isContainerReady",(function(e){if(!e&&e.length<1)return!1;if(!e[0]||!this.survey)return!1;var t=e[0],n=this.survey.getPageByName(t);if(n||(n=this.survey.getPanelByName(t)),!n){var r=this.survey.getQuestionByName(t);if(!r||!Array.isArray(r.panels))return!1;if(!(e.length>1)){for(var o=0;o<r.panels.length;o++)if(!f(r.panels[o]))return!1;return!0}e[1]<r.panels.length&&(n=r.panels[e[1]])}return f(n)})),i.Instance.register("isDisplayMode",(function(){return this.survey&&this.survey.isDisplayMode})),i.Instance.register("currentDate",(function(){return new Date})),i.Instance.register("today",m),i.Instance.register("getYear",(function(e){if(1===e.length&&e[0])return new Date(e[0]).getFullYear()})),i.Instance.register("currentYear",(function(){return(new Date).getFullYear()})),i.Instance.register("diffDays",(function(e){if(!Array.isArray(e)||2!==e.length)return 0;if(!e[0]||!e[1])return 0;var t=new Date(e[0]),n=new Date(e[1]),r=Math.abs(n-t);return Math.ceil(r/864e5)})),i.Instance.register("year",(function(e){return g(e).getFullYear()})),i.Instance.register("month",(function(e){return g(e).getMonth()+1})),i.Instance.register("day",(function(e){return g(e).getDate()})),i.Instance.register("weekday",(function(e){return g(e).getDay()}))},"./src/helpers.ts":function(e,t,n){"use strict";n.r(t),n.d(t,"Helpers",(function(){return o}));var r=n("./src/settings.ts"),o=function(){function e(){}return e.isValueEmpty=function(t){if(Array.isArray(t)&&0===t.length)return!0;if(t&&e.isValueObject(t)&&t.constructor===Object){for(var n in t)if(!e.isValueEmpty(t[n]))return!1;return!0}return!t&&0!==t&&!1!==t},e.isArrayContainsEqual=function(t,n){if(!Array.isArray(t)||!Array.isArray(n))return!1;if(t.length!==n.length)return!1;for(var r=0;r<t.length;r++){for(var o=0;o<n.length&&!e.isTwoValueEquals(t[r],n[o]);o++);if(o===n.length)return!1}return!0},e.isArraysEqual=function(t,n,r,o,i){if(void 0===r&&(r=!1),!Array.isArray(t)||!Array.isArray(n))return!1;if(t.length!==n.length)return!1;if(r){for(var s=[],a=[],l=0;l<t.length;l++)s.push(t[l]),a.push(n[l]);s.sort(),a.sort(),t=s,n=a}for(l=0;l<t.length;l++)if(!e.isTwoValueEquals(t[l],n[l],r,o,i))return!1;return!0},e.compareStrings=function(e,t){var n=r.settings.comparator.normalizeTextCallback;if(e&&(e=n(e,"compare").trim()),t&&(t=n(t,"compare").trim()),!e&&!t)return 0;if(!e)return-1;if(!t)return 1;if(e===t)return 0;for(var o=-1,i=0;i<e.length&&i<t.length;i++){if(this.isCharDigit(e[i])&&this.isCharDigit(t[i])){o=i;break}if(e[i]!==t[i])break}if(o>-1){var s=this.getNumberFromStr(e,o),a=this.getNumberFromStr(t,o);if(!Number.isNaN(s)&&!Number.isNaN(a)&&s!==a)return s>a?1:-1}return e>t?1:-1},e.isTwoValueEquals=function(t,n,o,i,s){if(void 0===o&&(o=!1),t===n)return!0;if(Array.isArray(t)&&0===t.length&&void 0===n)return!0;if(Array.isArray(n)&&0===n.length&&void 0===t)return!0;if(null==t&&""===n)return!0;if(null==n&&""===t)return!0;if(void 0===s&&(s=r.settings.comparator.trimStrings),void 0===i&&(i=r.settings.comparator.caseSensitive),"string"==typeof t&&"string"==typeof n){var a=r.settings.comparator.normalizeTextCallback;return t=a(t,"compare"),n=a(n,"compare"),s&&(t=t.trim(),n=n.trim()),i||(t=t.toLowerCase(),n=n.toLowerCase()),t===n}if(t instanceof Date&&n instanceof Date)return t.getTime()==n.getTime();if(e.isConvertibleToNumber(t)&&e.isConvertibleToNumber(n)&&parseInt(t)===parseInt(n)&&parseFloat(t)===parseFloat(n))return!0;if(!e.isValueEmpty(t)&&e.isValueEmpty(n)||e.isValueEmpty(t)&&!e.isValueEmpty(n))return!1;if((!0===t||!1===t)&&"string"==typeof n)return t.toString()===n.toLocaleLowerCase();if((!0===n||!1===n)&&"string"==typeof t)return n.toString()===t.toLocaleLowerCase();if(!e.isValueObject(t)&&!e.isValueObject(n))return t==n;if(!e.isValueObject(t)||!e.isValueObject(n))return!1;if(t.equals)return t.equals(n);if(t.toJSON&&n.toJSON&&t.getType&&n.getType)return!t.isDiposed&&!n.isDiposed&&t.getType()===n.getType()&&(!t.name||t.name===n.name)&&this.isTwoValueEquals(t.toJSON(),n.toJSON(),o,i,s);if(Array.isArray(t)&&Array.isArray(n))return e.isArraysEqual(t,n,o,i,s);if(t.equalsTo&&n.equalsTo)return t.equalsTo(n);for(var l in t)if(t.hasOwnProperty(l)){if(!n.hasOwnProperty(l))return!1;if(!this.isTwoValueEquals(t[l],n[l],o,i,s))return!1}for(l in n)if(n.hasOwnProperty(l)&&!t.hasOwnProperty(l))return!1;return!0},e.randomizeArray=function(e){for(var t=e.length-1;t>0;t--){var n=Math.floor(Math.random()*(t+1)),r=e[t];e[t]=e[n],e[n]=r}return e},e.getUnbindValue=function(t){if(Array.isArray(t)){for(var n=[],r=0;r<t.length;r++)n.push(e.getUnbindValue(t[r]));return n}return!t||!e.isValueObject(t)||t instanceof Date?t:JSON.parse(JSON.stringify(t))},e.createCopy=function(e){var t={};if(!e)return t;for(var n in e)t[n]=e[n];return t},e.isConvertibleToNumber=function(e){return null!=e&&!Array.isArray(e)&&!isNaN(e)},e.isValueObject=function(e){return e instanceof Object},e.isNumber=function(e){return!isNaN(this.getNumber(e))},e.getNumber=function(e){if("string"==typeof e&&e&&0==e.indexOf("0x")&&e.length>32)return NaN;e=this.prepareStringToNumber(e);var t=parseFloat(e);return isNaN(t)||!isFinite(e)?NaN:t},e.prepareStringToNumber=function(e){if("string"!=typeof e||!e)return e;var t=e.indexOf(",");return t>-1&&e.indexOf(",",t+1)<0?e.replace(",","."):e},e.getMaxLength=function(e,t){return e<0&&(e=t),e>0?e:null},e.getRemainingCharacterCounterText=function(e,t){return!t||t<=0||!r.settings.showMaxLengthIndicator?"":[e?e.length:"0",t].join("/")},e.getNumberByIndex=function(t,n){if(t<0)return"";var r=1,o="",i=".",s=!0,a="A",l="";if(n){for(var u=(l=n).length-1,c=!1,p=0;p<l.length;p++)if(e.isCharDigit(l[p])){c=!0;break}for(var d=function(){return c&&!e.isCharDigit(l[u])||e.isCharNotLetterAndDigit(l[u])};u>=0&&d();)u--;var h="";for(u<l.length-1&&(h=l.substring(u+1),l=l.substring(0,u+1)),u=l.length-1;u>=0&&!d()&&(u--,c););a=l.substring(u+1),o=l.substring(0,u+1),parseInt(a)?r=parseInt(a):1==a.length&&(s=!1),(h||o)&&(i=h)}if(s){for(var f=(t+r).toString();f.length<a.length;)f="0"+f;return o+f+i}return o+String.fromCharCode(a.charCodeAt(0)+t)+i},e.isCharNotLetterAndDigit=function(t){return t.toUpperCase()==t.toLowerCase()&&!e.isCharDigit(t)},e.isCharDigit=function(e){return e>="0"&&e<="9"},e.getNumberFromStr=function(e,t){if(!this.isCharDigit(e[t]))return NaN;for(var n="";t<e.length&&this.isCharDigit(e[t]);)n+=e[t],t++;return n?this.getNumber(n):NaN},e.countDecimals=function(t){if(e.isNumber(t)&&Math.floor(t)!==t){var n=t.toString().split(".");return n.length>1&&n[1].length||0}return 0},e.correctAfterPlusMinis=function(t,n,r){var o=e.countDecimals(t),i=e.countDecimals(n);if(o>0||i>0){var s=Math.max(o,i);r=parseFloat(r.toFixed(s))}return r},e.sumAnyValues=function(t,n){if(!e.isNumber(t)||!e.isNumber(n)){if(Array.isArray(t)&&Array.isArray(n))return[].concat(t).concat(n);if(Array.isArray(t)||Array.isArray(n)){var r=Array.isArray(t)?t:n,o=r===t?n:t;if("string"==typeof o){var i=r.join(", ");return r===t?i+o:o+i}if("number"==typeof o){for(var s=0,a=0;a<r.length;a++)"number"==typeof r[a]&&(s=e.correctAfterPlusMinis(s,r[a],s+r[a]));return e.correctAfterPlusMinis(s,o,s+o)}}return t+n}return e.correctAfterPlusMinis(t,n,t+n)},e.correctAfterMultiple=function(t,n,r){var o=e.countDecimals(t)+e.countDecimals(n);return o>0&&(r=parseFloat(r.toFixed(o))),r},e.convertArrayValueToObject=function(t,n,r){void 0===r&&(r=void 0);var o=new Array;if(!t||!Array.isArray(t))return o;for(var i=0;i<t.length;i++){var s=void 0;Array.isArray(r)&&(s=e.findObjByPropValue(r,n,t[i])),s||((s={})[n]=t[i]),o.push(s)}return o},e.findObjByPropValue=function(t,n,r){for(var o=0;o<t.length;o++)if(e.isTwoValueEquals(t[o][n],r))return t[o]},e.convertArrayObjectToValue=function(t,n){var r=new Array;if(!t||!Array.isArray(t))return r;for(var o=0;o<t.length;o++){var i=t[o]?t[o][n]:void 0;e.isValueEmpty(i)||r.push(i)}return r},e.convertDateToString=function(e){var t=function(e){return e<10?"0"+e.toString():e.toString()};return e.getFullYear()+"-"+t(e.getMonth()+1)+"-"+t(e.getDate())},e.convertDateTimeToString=function(e){var t=function(e){return e<10?"0"+e.toString():e.toString()};return this.convertDateToString(e)+" "+t(e.getHours())+":"+t(e.getMinutes())},e.convertValToQuestionVal=function(t,n){return t instanceof Date?"datetime-local"===n?e.convertDateTimeToString(t):e.convertDateToString(t):t},e}();String.prototype.format||(String.prototype.format=function(){var e=arguments;return this.replace(/{(\d+)}/g,(function(t,n){return void 0!==e[n]?e[n]:t}))})},"./src/images sync \\.svg$":function(e,t,n){var r={"./ArrowDown_34x34.svg":"./src/images/ArrowDown_34x34.svg","./ArrowLeft.svg":"./src/images/ArrowLeft.svg","./ArrowRight.svg":"./src/images/ArrowRight.svg","./Arrow_downGREY_10x10.svg":"./src/images/Arrow_downGREY_10x10.svg","./ChooseFile.svg":"./src/images/ChooseFile.svg","./Clear.svg":"./src/images/Clear.svg","./DefaultFile.svg":"./src/images/DefaultFile.svg","./Delete.svg":"./src/images/Delete.svg","./Down_34x34.svg":"./src/images/Down_34x34.svg","./Left.svg":"./src/images/Left.svg","./ModernBooleanCheckChecked.svg":"./src/images/ModernBooleanCheckChecked.svg","./ModernBooleanCheckInd.svg":"./src/images/ModernBooleanCheckInd.svg","./ModernBooleanCheckUnchecked.svg":"./src/images/ModernBooleanCheckUnchecked.svg","./ModernCheck.svg":"./src/images/ModernCheck.svg","./ModernRadio.svg":"./src/images/ModernRadio.svg","./More.svg":"./src/images/More.svg","./NavMenu_24x24.svg":"./src/images/NavMenu_24x24.svg","./ProgressButton.svg":"./src/images/ProgressButton.svg","./ProgressButtonV2.svg":"./src/images/ProgressButtonV2.svg","./RemoveFile.svg":"./src/images/RemoveFile.svg","./Right.svg":"./src/images/Right.svg","./SearchClear.svg":"./src/images/SearchClear.svg","./TimerCircle.svg":"./src/images/TimerCircle.svg","./V2Check.svg":"./src/images/V2Check.svg","./V2Check_24x24.svg":"./src/images/V2Check_24x24.svg","./V2DragElement_16x16.svg":"./src/images/V2DragElement_16x16.svg","./chevron.svg":"./src/images/chevron.svg","./clear_16x16.svg":"./src/images/clear_16x16.svg","./collapseDetail.svg":"./src/images/collapseDetail.svg","./expandDetail.svg":"./src/images/expandDetail.svg","./no-image.svg":"./src/images/no-image.svg","./rating-star-2.svg":"./src/images/rating-star-2.svg","./rating-star-small-2.svg":"./src/images/rating-star-small-2.svg","./rating-star-small.svg":"./src/images/rating-star-small.svg","./rating-star.svg":"./src/images/rating-star.svg","./search.svg":"./src/images/search.svg"};function o(e){var t=i(e);return n(t)}function i(e){if(!n.o(r,e)){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}return r[e]}o.keys=function(){return Object.keys(r)},o.resolve=i,e.exports=o,o.id="./src/images sync \\.svg$"},"./src/images/ArrowDown_34x34.svg":function(e,t){e.exports='<svg version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" viewBox="0 0 34 34" xml:space="preserve"><polygon class="st0" points="12,16 14,14 17,17 20,14 22,16 17,21 "></polygon></svg>'},"./src/images/ArrowLeft.svg":function(e,t){e.exports='<svg viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg"><path d="M15 8.99999H4.39998L8.69998 13.3L7.29998 14.7L0.599976 7.99999L7.29998 1.29999L8.69998 2.69999L4.39998 6.99999H15V8.99999Z"></path></svg>'},"./src/images/ArrowRight.svg":function(e,t){e.exports='<svg viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg"><path d="M1 6.99999H11.6L7.3 2.69999L8.7 1.29999L15.4 7.99999L8.7 14.7L7.3 13.3L11.6 8.99999H1V6.99999Z"></path></svg>'},"./src/images/Arrow_downGREY_10x10.svg":function(e,t){e.exports='<svg version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" viewBox="0 0 10 10" xml:space="preserve"><polygon class="st0" points="2,2 0,4 5,9 10,4 8,2 5,5 "></polygon></svg>'},"./src/images/ChooseFile.svg":function(e,t){e.exports='<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path d="M22 9V7C22 5.9 21.1 5 20 5H12L10 3H4C2.9 3 2 3.9 2 5V9V10V21H22L24 9H22ZM4 5H9.2L10.6 6.4L11.2 7H12H20V9H4V5ZM20.3 19H4V11H21.6L20.3 19Z"></path></svg>'},"./src/images/Clear.svg":function(e,t){e.exports='<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path d="M22.6 8.6L16.4 2.4C16 2 15.5 1.8 15 1.8C14.5 1.8 14 2 13.6 2.4L1.4 14.6C0.600003 15.4 0.600003 16.6 1.4 17.4L6 22H12L22.6 11.4C23.3 10.6 23.3 9.3 22.6 8.6ZM11.1 20H6.8L2.8 16L6.2 12.6L12.4 18.8L11.1 20ZM13.8 17.4L7.6 11.2L15 3.8L21.2 10L13.8 17.4ZM16 20H23V22H14L16 20Z"></path></svg>'},"./src/images/DefaultFile.svg":function(e,t){e.exports='<svg viewBox="0 0 56 68" fill="none" xmlns="http://www.w3.org/2000/svg"><g clip-path="url(#clip0_9011_41219)"><path d="M54.83 10.83L45.17 1.17C44.7982 0.798664 44.357 0.504208 43.8714 0.303455C43.3858 0.102703 42.8654 -0.000411943 42.34 1.2368e-06H6C4.4087 1.2368e-06 2.88257 0.632142 1.75735 1.75736C0.632136 2.88258 0 4.4087 0 6V62C0 63.5913 0.632136 65.1174 1.75735 66.2426C2.88257 67.3679 4.4087 68 6 68H50C51.5913 68 53.1174 67.3679 54.2426 66.2426C55.3679 65.1174 56 63.5913 56 62V13.66C56.0004 13.1346 55.8973 12.6142 55.6965 12.1286C55.4958 11.643 55.2013 11.2018 54.83 10.83ZM44 2.83L53.17 12H48C46.9391 12 45.9217 11.5786 45.1716 10.8284C44.4214 10.0783 44 9.06087 44 8V2.83ZM54 62C54 63.0609 53.5786 64.0783 52.8284 64.8284C52.0783 65.5786 51.0609 66 50 66H6C4.93913 66 3.92172 65.5786 3.17157 64.8284C2.42142 64.0783 2 63.0609 2 62V6C2 4.93914 2.42142 3.92172 3.17157 3.17157C3.92172 2.42143 4.93913 2 6 2H42V8C42 9.5913 42.6321 11.1174 43.7574 12.2426C44.8826 13.3679 46.4087 14 48 14H54V62ZM14 24H42V26H14V24ZM14 30H42V32H14V30ZM14 36H42V38H14V36ZM14 42H42V44H14V42Z" fill="#909090"></path></g><defs><clipPath id="clip0_9011_41219"><rect width="56" height="68" fill="white"></rect></clipPath></defs></svg>'},"./src/images/Delete.svg":function(e,t){e.exports='<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path d="M22 4H20H16V2C16 0.9 15.1 0 14 0H10C8.9 0 8 0.9 8 2V4H4H2V6H4V20C4 21.1 4.9 22 6 22H18C19.1 22 20 21.1 20 20V6H22V4ZM10 2H14V4H10V2ZM18 20H6V6H8H16H18V20ZM14 8H16V18H14V8ZM11 8H13V18H11V8ZM8 8H10V18H8V8Z"></path></svg>'},"./src/images/Down_34x34.svg":function(e,t){e.exports='<svg version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" viewBox="0 0 34 34" xml:space="preserve"><g><path class="st0" d="M33,34H0V0h33c0.6,0,1,0.4,1,1v32C34,33.6,33.6,34,33,34z"></path><polygon class="st1" points="12,16 14,14 17,17 20,14 22,16 17,21 "></polygon></g></svg>'},"./src/images/Left.svg":function(e,t){e.exports='<svg version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" viewBox="0 0 16 16" xml:space="preserve"><polygon points="11,12 9,14 3,8 9,2 11,4 7,8 "></polygon></svg>'},"./src/images/ModernBooleanCheckChecked.svg":function(e,t){e.exports='<svg version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" viewBox="0 0 24 24"><polygon points="19,10 14,10 14,5 10,5 10,10 5,10 5,14 10,14 10,19 14,19 14,14 19,14 "></polygon></svg>'},"./src/images/ModernBooleanCheckInd.svg":function(e,t){e.exports='<svg version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" viewBox="0 0 24 24"><path d="M22,0H2C0.9,0,0,0.9,0,2v20c0,1.1,0.9,2,2,2h20c1.1,0,2-0.9,2-2V2C24,0.9,23.1,0,22,0z M21,18L6,3h15V18z M3,6l15,15H3V6z"></path></svg>'},"./src/images/ModernBooleanCheckUnchecked.svg":function(e,t){e.exports='<svg version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" viewBox="0 0 24 24"><rect x="5" y="10" width="14" height="4"></rect></svg>'},"./src/images/ModernCheck.svg":function(e,t){e.exports='<svg viewBox="0 0 24 24"><path d="M5,13l2-2l3,3l7-7l2,2l-9,9L5,13z"></path></svg>'},"./src/images/ModernRadio.svg":function(e,t){e.exports='<svg viewBox="-12 -12 24 24"><circle r="6" cx="0" cy="0"></circle></svg>'},"./src/images/More.svg":function(e,t){e.exports='<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path d="M6 12C6 13.1 5.1 14 4 14C2.9 14 2 13.1 2 12C2 10.9 2.9 10 4 10C5.1 10 6 10.9 6 12ZM12 10C10.9 10 10 10.9 10 12C10 13.1 10.9 14 12 14C13.1 14 14 13.1 14 12C14 10.9 13.1 10 12 10ZM20 10C18.9 10 18 10.9 18 12C18 13.1 18.9 14 20 14C21.1 14 22 13.1 22 12C22 10.9 21.1 10 20 10Z"></path></svg>'},"./src/images/NavMenu_24x24.svg":function(e,t){e.exports='<svg viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M16 7H2V5H16V7ZM2 11V13H22V11H2ZM2 19H10V17H2V19Z" fill="black" fill-opacity="0.45"></path></svg>'},"./src/images/ProgressButton.svg":function(e,t){e.exports='<svg viewBox="0 0 10 10"><polygon points="2,2 0,4 5,9 10,4 8,2 5,5 "></polygon></svg>'},"./src/images/ProgressButtonV2.svg":function(e,t){e.exports='<svg viewBox="0 0 16 16"><path d="M15 8.99999H4.39998L8.69998 13.3L7.29998 14.7L0.599976 7.99999L7.29998 1.29999L8.69998 2.69999L4.39998 6.99999H15V8.99999Z"></path></svg>'},"./src/images/RemoveFile.svg":function(e,t){e.exports='<svg viewBox="0 0 16 16"><path d="M8,2C4.7,2,2,4.7,2,8s2.7,6,6,6s6-2.7,6-6S11.3,2,8,2z M11,10l-1,1L8,9l-2,2l-1-1l2-2L5,6l1-1l2,2l2-2l1,1L9,8 L11,10z"></path></svg>'},"./src/images/Right.svg":function(e,t){e.exports='<svg version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" viewBox="0 0 16 16" xml:space="preserve"><polygon points="5,4 7,2 13,8 7,14 5,12 9,8 "></polygon></svg>'},"./src/images/SearchClear.svg":function(e,t){e.exports='<svg viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg"><path d="M13.35 3.34999L12.65 2.64999L8.05002 7.24999L3.35002 2.64999L2.65002 3.34999L7.25002 8.04999L2.65002 12.65L3.35002 13.35L8.05002 8.74999L12.65 13.35L13.35 12.65L8.75002 8.04999L13.35 3.34999Z"></path></svg>'},"./src/images/TimerCircle.svg":function(e,t){e.exports='<svg xmlns="http://www.w3.org/2000/svg" version="1.1" viewBox="0 0 160 160"><circle cx="80" cy="80" r="70" style="stroke: var(--sd-timer-stroke-background-color); stroke-width: var(--sd-timer-stroke-background-width)" stroke-dasharray="none" stroke-dashoffset="none"></circle><circle cx="80" cy="80" r="70"></circle></svg>'},"./src/images/V2Check.svg":function(e,t){e.exports='<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M8.00001 15.8L2.60001 10.4L4.00001 9L8.00001 13L16 5L17.4 6.4L8.00001 15.8Z"></path></svg>'},"./src/images/V2Check_24x24.svg":function(e,t){e.exports='<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path d="M9 20.1L1 12L3.1 9.9L9 15.9L20.9 4L23 6.1L9 20.1Z"></path></svg>'},"./src/images/V2DragElement_16x16.svg":function(e,t){e.exports='<svg viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg"><path d="M2 4C2 3.73478 2.10536 3.48043 2.29289 3.29289C2.48043 3.10536 2.73478 3 3 3H13C13.2652 3 13.5196 3.10536 13.7071 3.29289C13.8946 3.48043 14 3.73478 14 4C14 4.26522 13.8946 4.51957 13.7071 4.70711C13.5196 4.89464 13.2652 5 13 5H3C2.73478 5 2.48043 4.89464 2.29289 4.70711C2.10536 4.51957 2 4.26522 2 4ZM13 7H3C2.73478 7 2.48043 7.10536 2.29289 7.29289C2.10536 7.48043 2 7.73478 2 8C2 8.26522 2.10536 8.51957 2.29289 8.70711C2.48043 8.89464 2.73478 9 3 9H13C13.2652 9 13.5196 8.89464 13.7071 8.70711C13.8946 8.51957 14 8.26522 14 8C14 7.73478 13.8946 7.48043 13.7071 7.29289C13.5196 7.10536 13.2652 7 13 7ZM13 11H3C2.73478 11 2.48043 11.1054 2.29289 11.2929C2.10536 11.4804 2 11.7348 2 12C2 12.2652 2.10536 12.5196 2.29289 12.7071C2.48043 12.8946 2.73478 13 3 13H13C13.2652 13 13.5196 12.8946 13.7071 12.7071C13.8946 12.5196 14 12.2652 14 12C14 11.7348 13.8946 11.4804 13.7071 11.2929C13.5196 11.1054 13.2652 11 13 11Z"></path></svg>'},"./src/images/chevron.svg":function(e,t){e.exports='<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path d="M12 15L17 10H7L12 15Z"></path></svg>'},"./src/images/clear_16x16.svg":function(e,t){e.exports='<svg viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg"><path d="M13.35 3.34999L12.65 2.64999L8.05002 7.24999L3.35002 2.64999L2.65002 3.34999L7.25002 8.04999L2.65002 12.65L3.35002 13.35L8.05002 8.74999L12.65 13.35L13.35 12.65L8.75002 8.04999L13.35 3.34999Z"></path></svg>'},"./src/images/collapseDetail.svg":function(e,t){e.exports='<svg viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg"><path d="M13 7H3V9H13V7Z"></path></svg>'},"./src/images/expandDetail.svg":function(e,t){e.exports='<svg viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg"><path d="M13 7H9V3H7V7H3V9H7V13H9V9H13V7Z"></path></svg>'},"./src/images/no-image.svg":function(e,t){e.exports='<svg viewBox="0 0 48 48"><g opacity="0.5"><path d="M14 17.01C14 16.4167 14.1759 15.8366 14.5056 15.3433C14.8352 14.8499 15.3038 14.4654 15.8519 14.2384C16.4001 14.0113 17.0033 13.9519 17.5853 14.0676C18.1672 14.1834 18.7018 14.4691 19.1213 14.8887C19.5409 15.3082 19.8266 15.8428 19.9424 16.4247C20.0581 17.0067 19.9987 17.6099 19.7716 18.1581C19.5446 18.7062 19.1601 19.1748 18.6667 19.5044C18.1734 19.8341 17.5933 20.01 17 20.01C16.2044 20.01 15.4413 19.6939 14.8787 19.1313C14.3161 18.5687 14 17.8056 14 17.01ZM27.09 24.14L20 36.01H36L27.09 24.14ZM36.72 8.14L35.57 10.01H36C36.5304 10.01 37.0391 10.2207 37.4142 10.5958C37.7893 10.9709 38 11.4796 38 12.01V36.01C38 36.5404 37.7893 37.0491 37.4142 37.4242C37.0391 37.7993 36.5304 38.01 36 38.01H18.77L17.57 40.01H36C37.0609 40.01 38.0783 39.5886 38.8284 38.8384C39.5786 38.0883 40 37.0709 40 36.01V12.01C39.9966 11.0765 39.6668 10.1737 39.0678 9.45778C38.4688 8.74188 37.6382 8.25802 36.72 8.09V8.14ZM36.86 4.5L12.86 44.5L11.14 43.5L13.23 40.01H12C10.9391 40.01 9.92172 39.5886 9.17157 38.8384C8.42143 38.0883 8 37.0709 8 36.01V12.01C8 10.9491 8.42143 9.93172 9.17157 9.18157C9.92172 8.43143 10.9391 8.01 12 8.01H32.43L35.14 3.5L36.86 4.5ZM14.43 38.01L15.63 36.01H12L19 27.01L20.56 27.8L31.23 10.01H12C11.4696 10.01 10.9609 10.2207 10.5858 10.5958C10.2107 10.9709 10 11.4796 10 12.01V36.01C10 36.5404 10.2107 37.0491 10.5858 37.4242C10.9609 37.7993 11.4696 38.01 12 38.01H14.43Z"></path></g></svg>'},"./src/images/rating-star-2.svg":function(e,t){e.exports='<svg viewBox="0 0 48 48" xmlns="http://www.w3.org/2000/svg"><g><path d="M24 39.5057L11.7226 45.9839C10.4095 46.6739 8.87606 45.5622 9.12525 44.096L11.4734 30.373L1.54411 20.6556C0.480254 19.6207 1.06489 17.8095 2.53128 17.5986L16.2559 15.5957L22.3994 3.10891C23.0512 1.77685 24.9488 1.77685 25.6102 3.10891L31.7441 15.5957L45.4687 17.5986C46.9351 17.8095 47.5197 19.6207 46.4559 20.6556L36.5266 30.373L38.8748 44.096C39.1239 45.5622 37.5905 46.6835 36.2774 45.9839L24 39.5057Z" fill="none" stroke-width="2"></path><path d="M24.4663 34.6154L24 34.3695L23.5336 34.6154L14.4788 39.389L16.2156 29.2691L16.3044 28.7517L15.9289 28.3848L8.57358 21.1966L18.7249 19.7094L19.245 19.6332L19.4772 19.1616L24 9.97413L28.5228 19.1616L28.755 19.6332L29.275 19.7094L39.4264 21.1966L32.0711 28.3848L31.6956 28.7517L31.7844 29.2691L33.5211 39.389L24.4663 34.6154Z" stroke-width="2"></path></g></svg>'},"./src/images/rating-star-small-2.svg":function(e,t){e.exports='<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path d="M12 19.3373L6.13001 22.4373C5.50001 22.7673 4.77001 22.2373 4.89001 21.5373L6.01001 14.9773L1.26001 10.3273C0.750007 9.83728 1.03001 8.96728 1.73001 8.86728L8.29001 7.90728L11.23 1.93728C11.54 1.29728 12.45 1.29728 12.77 1.93728L15.7 7.90728L22.26 8.86728C22.96 8.96728 23.24 9.83728 22.73 10.3273L17.98 14.9773L19.1 21.5373C19.22 22.2373 18.49 22.7773 17.86 22.4373L11.99 19.3373H12Z" fill="none" stroke-width="2"></path><path d="M12 15.9472L8.58001 17.7572L9.23001 13.9272L6.45001 11.2072L10.29 10.6472L12 7.17725L13.71 10.6472L17.55 11.2072L14.77 13.9272L15.42 17.7572L12 15.9472Z"></path></svg>'},"./src/images/rating-star-small.svg":function(e,t){e.exports='<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><g><path d="M12 19.3373L6.13001 22.4373C5.50001 22.7673 4.77001 22.2373 4.89001 21.5373L6.01001 14.9773L1.26001 10.3273C0.750007 9.83728 1.03001 8.96728 1.73001 8.86728L8.29001 7.90728L11.23 1.93728C11.54 1.29728 12.45 1.29728 12.77 1.93728L15.7 7.90728L22.26 8.86728C22.96 8.96728 23.24 9.83728 22.73 10.3273L17.98 14.9773L19.1 21.5373C19.22 22.2373 18.49 22.7773 17.86 22.4373L11.99 19.3373H12Z" stroke-width="2"></path></g></svg>'},"./src/images/rating-star.svg":function(e,t){e.exports='<svg viewBox="0 0 48 48" xmlns="http://www.w3.org/2000/svg"><g><path d="M24 39.5057L11.7226 45.9839C10.4095 46.6739 8.87606 45.5622 9.12525 44.096L11.4734 30.373L1.54411 20.6556C0.480254 19.6207 1.06489 17.8095 2.53128 17.5986L16.2559 15.5957L22.3994 3.10891C23.0512 1.77685 24.9488 1.77685 25.6102 3.10891L31.7441 15.5957L45.4687 17.5986C46.9351 17.8095 47.5197 19.6207 46.4559 20.6556L36.5266 30.373L38.8748 44.096C39.1239 45.5622 37.5905 46.6835 36.2774 45.9839L24 39.5057Z" stroke-width="2"></path></g></svg>'},"./src/images/search.svg":function(e,t){e.exports='<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path d="M14 2C9.6 2 6 5.6 6 10C6 11.8 6.6 13.5 7.7 14.9L2.3 20.3C1.9 20.7 1.9 21.3 2.3 21.7C2.5 21.9 2.7 22 3 22C3.3 22 3.5 21.9 3.7 21.7L9.1 16.3C10.5 17.4 12.2 18 14 18C18.4 18 22 14.4 22 10C22 5.6 18.4 2 14 2ZM14 16C10.7 16 8 13.3 8 10C8 6.7 10.7 4 14 4C17.3 4 20 6.7 20 10C20 13.3 17.3 16 14 16Z"></path></svg>'},"./src/images/smiley sync \\.svg$":function(e,t,n){var r={"./average.svg":"./src/images/smiley/average.svg","./excellent.svg":"./src/images/smiley/excellent.svg","./good.svg":"./src/images/smiley/good.svg","./normal.svg":"./src/images/smiley/normal.svg","./not-good.svg":"./src/images/smiley/not-good.svg","./perfect.svg":"./src/images/smiley/perfect.svg","./poor.svg":"./src/images/smiley/poor.svg","./terrible.svg":"./src/images/smiley/terrible.svg","./very-good.svg":"./src/images/smiley/very-good.svg","./very-poor.svg":"./src/images/smiley/very-poor.svg"};function o(e){var t=i(e);return n(t)}function i(e){if(!n.o(r,e)){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}return r[e]}o.keys=function(){return Object.keys(r)},o.resolve=i,e.exports=o,o.id="./src/images/smiley sync \\.svg$"},"./src/images/smiley/average.svg":function(e,t){e.exports='<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path d="M7.00572 7C6.45572 7 6.00572 6.55 6.00572 6V2C6.00572 1.45 6.45572 1 7.00572 1C7.55572 1 8.00572 1.45 8.00572 2V6C8.00572 6.55 7.55572 7 7.00572 7ZM18.0057 6V2C18.0057 1.45 17.5557 1 17.0057 1C16.4557 1 16.0057 1.45 16.0057 2V6C16.0057 6.55 16.4557 7 17.0057 7C17.5557 7 18.0057 6.55 18.0057 6ZM19.9457 21.33C20.1257 20.81 19.8557 20.24 19.3357 20.05C14.5457 18.35 9.45572 18.35 4.66572 20.05C4.14572 20.23 3.87572 20.81 4.05572 21.33C4.23572 21.85 4.80572 22.12 5.33572 21.94C9.69572 20.4 14.3057 20.4 18.6657 21.94C18.7757 21.98 18.8857 22 18.9957 22C19.4057 22 19.7957 21.74 19.9357 21.33H19.9457Z"></path></svg>'},"./src/images/smiley/excellent.svg":function(e,t){e.exports='<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path d="M12.01 24C6.85767 24 1.15509 20.96 0.0145752 14.16C-0.0354475 13.87 0.0445888 13.57 0.234675 13.35C0.424761 13.13 0.704888 13 0.995019 13H23.005C23.2951 13 23.5752 13.13 23.7653 13.35C23.9554 13.57 24.0354 13.87 23.9854 14.16C22.8549 20.95 17.1423 24 11.99 24H12.01ZM2.25559 15C3.61621 19.82 8.0182 22 12.01 22C16.0018 22 20.4038 19.82 21.7644 15H2.25559ZM8.00819 6V2C8.00819 1.45 7.55799 1 7.00774 1C6.45749 1 6.00729 1.45 6.00729 2V6C6.00729 6.55 6.45749 7 7.00774 7C7.55799 7 8.00819 6.55 8.00819 6ZM18.0127 6V2C18.0127 1.45 17.5625 1 17.0123 1C16.462 1 16.0118 1.45 16.0118 2V6C16.0118 6.55 16.462 7 17.0123 7C17.5625 7 18.0127 6.55 18.0127 6Z"></path></svg>'},"./src/images/smiley/good.svg":function(e,t){e.exports='<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path d="M12.0022 23.99C11.452 23.99 11.0018 23.5402 11.0018 22.9904C11.0018 22.4407 11.452 21.9909 12.0022 21.9909C16.3137 21.9909 21.0755 19.472 22.0158 13.8344C22.1058 13.2947 22.616 12.9248 23.1662 13.0148C23.7064 13.1047 24.0765 13.6245 23.9865 14.1643C22.8561 20.9513 17.144 24 11.9922 24L12.0022 23.99ZM8.00072 5.99783V1.99957C8.00072 1.4498 7.55056 1 7.00036 1C6.45016 1 6 1.4498 6 1.99957V5.99783C6 6.54759 6.45016 6.99739 7.00036 6.99739C7.55056 6.99739 8.00072 6.54759 8.00072 5.99783ZM18.0043 5.99783V1.99957C18.0043 1.4498 17.5542 1 17.004 1C16.4538 1 16.0036 1.4498 16.0036 1.99957V5.99783C16.0036 6.54759 16.4538 6.99739 17.004 6.99739C17.5542 6.99739 18.0043 6.54759 18.0043 5.99783Z"></path></svg>'},"./src/images/smiley/normal.svg":function(e,t){e.exports='<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path d="M7 7C6.45 7 6 6.55 6 6V2C6 1.45 6.45 1 7 1C7.55 1 8 1.45 8 2V6C8 6.55 7.55 7 7 7ZM18 6V2C18 1.45 17.55 1 17 1C16.45 1 16 1.45 16 2V6C16 6.55 16.45 7 17 7C17.55 7 18 6.55 18 6ZM21 21C21 20.45 20.55 20 20 20H4C3.45 20 3 20.45 3 21C3 21.55 3.45 22 4 22H20C20.55 22 21 21.55 21 21Z"></path></svg>'},"./src/images/smiley/not-good.svg":function(e,t){e.exports='<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path d="M7.06927 7C6.51927 7 6.06927 6.55 6.06927 6V2C6.06927 1.45 6.51927 1 7.06927 1C7.61927 1 8.06927 1.45 8.06927 2V6C8.06927 6.55 7.61927 7 7.06927 7ZM18.0693 6V2C18.0693 1.45 17.6193 1 17.0693 1C16.5193 1 16.0693 1.45 16.0693 2V6C16.0693 6.55 16.5193 7 17.0693 7C17.6193 7 18.0693 6.55 18.0693 6ZM22.5693 21.9C23.0693 21.66 23.2793 21.07 23.0393 20.57C21.1093 16.52 16.9093 14 12.0693 14C7.22927 14 3.02927 16.52 1.09927 20.57C0.859273 21.07 1.06927 21.67 1.56927 21.9C2.06927 22.14 2.65927 21.93 2.89927 21.43C4.49927 18.08 8.00927 16 12.0593 16C16.1093 16 19.6293 18.08 21.2193 21.43C21.3893 21.79 21.7493 22 22.1193 22C22.2593 22 22.4093 21.97 22.5493 21.9H22.5693Z"></path></svg>'},"./src/images/smiley/perfect.svg":function(e,t){e.exports='<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path d="M12.01 23C6.85721 23 1.15412 19.9621 0.0134987 13.1669C-0.0765501 12.6272 0.293651 12.1076 0.833944 12.0177C1.38424 11.9277 1.89452 12.2975 1.98457 12.8371C2.92508 18.4732 7.69767 20.9914 12 20.9914C16.3023 20.9914 21.0749 18.4732 22.0154 12.8371C22.1055 12.2975 22.6158 11.9277 23.1661 12.0177C23.7063 12.1076 24.0765 12.6272 23.9865 13.1669C22.8559 19.9521 17.1428 23 11.99 23H12.01ZM21.165 6.15177C22.3056 5.01257 22.3056 3.16386 21.165 2.02465L21.0049 1.85477C19.9143 0.765533 18.1633 0.725561 17.0227 1.71487C15.8821 0.715568 14.1312 0.765533 13.0406 1.85477L12.8705 2.01466C11.7299 3.15386 11.7299 5.00257 12.8705 6.14178L17.0227 10.2889L21.175 6.14178L21.165 6.15177ZM15.742 3.27378L17.0127 4.54289L18.2834 3.27378C18.6436 2.91403 19.2239 2.91403 19.5841 3.27378L19.7442 3.43367C20.1044 3.79342 20.1044 4.37301 19.7442 4.73276L17.0127 7.46086L14.2812 4.73276C13.921 4.37301 13.921 3.79342 14.2812 3.43367L14.4413 3.27378C14.6214 3.09391 14.8515 3.00397 15.0917 3.00397C15.3318 3.00397 15.5619 3.09391 15.742 3.27378ZM11.1595 6.15177C12.3002 5.01257 12.3002 3.16386 11.1595 2.02465L10.9995 1.85477C9.90886 0.765533 8.15792 0.725561 7.0173 1.71487C5.87668 0.715568 4.12573 0.765533 3.03514 1.85477L2.86505 2.01466C1.72443 3.15386 1.72443 5.00257 2.86505 6.14178L7.0173 10.2889L11.1695 6.14178L11.1595 6.15177ZM5.7366 3.27378L7.00729 4.54289L8.27798 3.27378C8.63818 2.91403 9.21849 2.91403 9.57869 3.27378L9.73877 3.43367C10.099 3.79342 10.099 4.37301 9.73877 4.73276L7.00729 7.46086L4.27581 4.73276C3.91562 4.37301 3.91562 3.79342 4.27581 3.43367L4.4359 3.27378C4.61599 3.09391 4.84612 3.00397 5.08625 3.00397C5.32638 3.00397 5.5565 3.09391 5.7366 3.27378Z"></path></svg>'},"./src/images/smiley/poor.svg":function(e,t){e.exports='<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path d="M7.01915 7C6.46961 7 6.01998 6.55 6.01998 6V2C6.01998 1.45 6.46961 1 7.01915 1C7.56869 1 8.01832 1.45 8.01832 2V6C8.01832 6.55 7.56869 7 7.01915 7ZM18.01 6V2C18.01 1.45 17.5604 1 17.0108 1C16.4613 1 16.0117 1.45 16.0117 2V6C16.0117 6.55 16.4613 7 17.0108 7C17.5604 7 18.01 6.55 18.01 6ZM16.4213 21.58L18.01 19.99L19.2989 21.28C19.6886 21.67 20.3181 21.67 20.7077 21.28C21.0974 20.89 21.0974 20.26 20.7077 19.87L19.4188 18.58C18.6395 17.8 17.3705 17.8 16.5912 18.58L15.0025 20.17L13.4138 18.58C12.6345 17.8 11.3655 17.8 10.5862 18.58L8.9975 20.17L7.40883 18.58C6.62948 17.8 5.36053 17.8 4.58118 18.58L3.29226 19.87C2.90258 20.26 2.90258 20.89 3.29226 21.28C3.68193 21.67 4.31141 21.67 4.70108 21.28L5.99001 19.99L7.57868 21.58C8.35803 22.36 9.62698 22.36 10.4063 21.58L11.995 19.99L13.5837 21.58C13.9734 21.97 14.4829 22.16 14.9925 22.16C15.5021 22.16 16.0117 21.97 16.4013 21.58H16.4213Z"></path></svg>'},"./src/images/smiley/terrible.svg":function(e,t){e.exports='<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path d="M4 4.9938C4 4.44362 4.45 3.99348 5 3.99348H6.59L5.3 2.70306C4.91 2.31293 4.91 1.68272 5.3 1.2926C5.69 0.902468 6.32 0.902468 6.71 1.2926L9.71 4.29357C9.8 4.3836 9.88 4.49364 9.93 4.62368C10.03 4.86376 10.03 5.14385 9.93 5.38393C9.88 5.50397 9.81 5.614 9.71 5.71404L6.71 8.71501C6.51 8.91508 6.26 9.00511 6 9.00511C5.74 9.00511 5.49 8.90508 5.29 8.71501C4.9 8.32489 4.9 7.69468 5.29 7.30456L6.58 6.01413H4.99C4.44 6.01413 3.99 5.56399 3.99 5.01381L4 4.9938ZM14.08 5.37393C14.13 5.49397 14.2 5.604 14.3 5.70403L17.3 8.70501C17.5 8.90508 17.75 8.99511 18.01 8.99511C18.27 8.99511 18.52 8.89507 18.72 8.70501C19.11 8.31488 19.11 7.68468 18.72 7.29455L17.43 6.00413H19.02C19.57 6.00413 20.02 5.55399 20.02 5.00381C20.02 4.45363 19.57 4.00348 19.02 4.00348H17.43L18.72 2.71306C19.11 2.32293 19.11 1.69273 18.72 1.3026C18.33 0.912471 17.7 0.912471 17.31 1.3026L14.31 4.30358C14.22 4.39361 14.14 4.50364 14.09 4.63368C13.99 4.87376 13.99 5.15385 14.09 5.39393L14.08 5.37393ZM22 14.9971V20.999C22 22.6496 20.65 24 19 24H5C3.35 24 2 22.6496 2 20.999V14.9971C2 13.3465 3.35 11.9961 5 11.9961H19C20.65 11.9961 22 13.3465 22 14.9971ZM19 13.9967H16V16.9977H20V14.9971C20 14.4469 19.55 13.9967 19 13.9967ZM14 16.9977V13.9967H10V16.9977H14ZM10 18.9984V21.9993H14V18.9984H10ZM4 14.9971V16.9977H8V13.9967H5C4.45 13.9967 4 14.4469 4 14.9971ZM5 21.9993H8V18.9984H4V20.999C4 21.5492 4.45 21.9993 5 21.9993ZM20 20.999V18.9984H16V21.9993H19C19.55 21.9993 20 21.5492 20 20.999Z"></path></svg>'},"./src/images/smiley/very-good.svg":function(e,t){e.exports='<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path d="M12.01 24C6.85721 24 1.15412 20.96 0.0134987 14.16C-0.0765501 13.62 0.293651 13.1 0.833944 13.01C1.38424 12.92 1.89452 13.29 1.98457 13.83C2.92508 19.47 7.69767 21.99 12 21.99C16.3023 21.99 21.0749 19.47 22.0154 13.83C22.1055 13.29 22.6158 12.92 23.1661 13.01C23.7063 13.1 24.0765 13.62 23.9865 14.16C22.8559 20.95 17.1428 24 11.99 24H12.01ZM8.00783 6V2C8.00783 1.45 7.55759 1 7.00729 1C6.45699 1 6.00675 1.45 6.00675 2V6C6.00675 6.55 6.45699 7 7.00729 7C7.55759 7 8.00783 6.55 8.00783 6ZM18.0133 6V2C18.0133 1.45 17.563 1 17.0127 1C16.4624 1 16.0122 1.45 16.0122 2V6C16.0122 6.55 16.4624 7 17.0127 7C17.563 7 18.0133 6.55 18.0133 6Z"></path></svg>'},"./src/images/smiley/very-poor.svg":function(e,t){e.exports='<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><g clip-path="url(#clip0_15894_140103)"><path d="M4.88291 4.50999C4.47291 4.50999 4.08291 4.24999 3.94291 3.83999C3.76291 3.31999 4.03291 2.74999 4.55291 2.56999L8.32291 1.24999C8.84291 1.05999 9.41291 1.33999 9.59291 1.85999C9.77291 2.37999 9.50291 2.94999 8.98291 3.12999L5.20291 4.44999C5.09291 4.48999 4.98291 4.50999 4.87291 4.50999H4.88291ZM19.8129 3.88999C20.0229 3.37999 19.7729 2.78999 19.2629 2.58999L15.5529 1.06999C15.0429 0.859992 14.4529 1.10999 14.2529 1.61999C14.0429 2.12999 14.2929 2.71999 14.8029 2.91999L18.5029 4.42999C18.6229 4.47999 18.7529 4.49999 18.8829 4.49999C19.2729 4.49999 19.6529 4.26999 19.8129 3.87999V3.88999ZM3.50291 5.99999C2.64291 6.36999 1.79291 6.87999 1.00291 7.47999C0.79291 7.63999 0.64291 7.86999 0.59291 8.13999C0.48291 8.72999 0.87291 9.28999 1.45291 9.39999C2.04291 9.50999 2.60291 9.11999 2.71291 8.53999C2.87291 7.68999 3.12291 6.82999 3.50291 5.98999V5.99999ZM21.0429 8.54999C21.6029 10.48 24.2429 8.83999 22.7529 7.47999C21.9629 6.87999 21.1129 6.36999 20.2529 5.99999C20.6329 6.83999 20.8829 7.69999 21.0429 8.54999ZM21.5729 13.2C21.2529 14.2 22.5429 15.09 23.3629 14.39C23.8529 14 23.9229 13.29 23.5429 12.81C21.7429 10.67 22.1329 10.55 21.5829 13.2H21.5729ZM1.75291 11C1.22291 11.79 -0.14709 12.64 0.0129102 13.75C0.15291 14.36 0.75291 14.74 1.35291 14.6C2.98291 14.1 1.80291 12.22 1.75291 11ZM19.8829 17C19.8829 13.14 16.2929 9.99999 11.8829 9.99999C7.47291 9.99999 3.88291 13.14 3.88291 17C3.88291 20.86 7.47291 24 11.8829 24C16.2929 24 19.8829 20.86 19.8829 17ZM17.8829 17C17.8829 19.76 15.1929 22 11.8829 22C8.57291 22 5.88291 19.76 5.88291 17C5.88291 14.24 8.57291 12 11.8829 12C15.1929 12 17.8829 14.24 17.8829 17Z"></path></g><defs><clipPath id="clip0_15894_140103"><rect width="24" height="24" fill="white"></rect></clipPath></defs></svg>'},"./src/itemvalue.ts":function(e,t,n){"use strict";n.r(t),n.d(t,"ItemValue",(function(){return f}));var r,o=n("./src/localizablestring.ts"),i=n("./src/jsonobject.ts"),s=n("./src/helpers.ts"),a=n("./src/conditions.ts"),l=n("./src/base.ts"),u=n("./src/settings.ts"),c=n("./src/actions/action.ts"),p=n("./src/question.ts"),d=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),h=function(e,t,n,r){var o,i=arguments.length,s=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,r);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(i<3?o(s):i>3?o(t,n,s):o(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},f=function(e){function t(t,n,r){void 0===n&&(n=null),void 0===r&&(r="itemvalue");var a=e.call(this)||this;return a.typeName=r,a.ownerPropertyName="",a.locTextValue=new o.LocalizableString(a,!0,"text"),a.locTextValue.onStrChanged=function(e,t){t==a.value&&(t=void 0),a.propertyValueChanged("text",e,t)},a.locTextValue.onGetTextCallback=function(e){return e||(s.Helpers.isValueEmpty(a.value)?null:a.value.toString())},n&&(a.locText.text=n),t&&"object"==typeof t?a.setData(t):a.value=t,"itemvalue"!=a.getType()&&i.CustomPropertiesCollection.createProperties(a),a.data=a,a.onCreating(),a}return d(t,e),t.prototype.getMarkdownHtml=function(e,t){return this.locOwner?this.locOwner.getMarkdownHtml(e,t):void 0},t.prototype.getRenderer=function(e){return this.locOwner?this.locOwner.getRenderer(e):null},t.prototype.getRendererContext=function(e){return this.locOwner?this.locOwner.getRendererContext(e):e},t.prototype.getProcessedText=function(e){return this.locOwner?this.locOwner.getProcessedText(e):e},Object.defineProperty(t,"Separator",{get:function(){return u.settings.itemValueSeparator},set:function(e){u.settings.itemValueSeparator=e},enumerable:!1,configurable:!0}),t.setData=function(e,t,n){e.length=0;for(var r=0;r<t.length;r++){var o=t[r],s=o&&"function"==typeof o.getType?o.getType():null!=n?n:"itemvalue",a=i.Serializer.createClass(s);a.setData(o),o.originalItem&&(a.originalItem=o.originalItem),e.push(a)}},t.getData=function(e){for(var t=[],n=0;n<e.length;n++)t.push(e[n].getData());return t},t.getItemByValue=function(e,t){if(!Array.isArray(e))return null;for(var n=s.Helpers.isValueEmpty(t),r=0;r<e.length;r++){if(n&&s.Helpers.isValueEmpty(e[r].value))return e[r];if(s.Helpers.isTwoValueEquals(e[r].value,t,!1,!0,!1))return e[r]}return null},t.getTextOrHtmlByValue=function(e,n){var r=t.getItemByValue(e,n);return null!==r?r.locText.textOrHtml:""},t.locStrsChanged=function(e){for(var t=0;t<e.length;t++)e[t].locStrsChanged()},t.runConditionsForItems=function(e,n,r,o,i,s,a){return void 0===s&&(s=!0),t.runConditionsForItemsCore(e,n,r,o,i,!0,s,a)},t.runEnabledConditionsForItems=function(e,n,r,o,i){return t.runConditionsForItemsCore(e,null,n,r,o,!1,!0,i)},t.runConditionsForItemsCore=function(e,t,n,r,o,i,s,a){void 0===s&&(s=!0),r||(r={});for(var l=r.item,u=r.choice,c=!1,p=0;p<e.length;p++){var d=e[p];r.item=d.value,r.choice=d.value;var h=!(!s||!d.getConditionRunner)&&d.getConditionRunner(i);h||(h=n);var f=!0;h&&(f=h.run(r,o)),a&&(f=a(d,f)),t&&f&&t.push(d),f!=(i?d.isVisible:d.isEnabled)&&(c=!0,i?d.setIsVisible&&d.setIsVisible(f):d.setIsEnabled&&d.setIsEnabled(f))}return l?r.item=l:delete r.item,u?r.choice=u:delete r.choice,c},t.prototype.onCreating=function(){},t.prototype.getType=function(){return this.typeName?this.typeName:"itemvalue"},t.prototype.getSurvey=function(e){return void 0===e&&(e=!1),this.locOwner&&this.locOwner.getSurvey?this.locOwner.getSurvey():null},t.prototype.getLocale=function(){return this.locOwner&&this.locOwner.getLocale?this.locOwner.getLocale():""},Object.defineProperty(t.prototype,"isInternal",{get:function(){return!0===this.isGhost},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locText",{get:function(){return this.locTextValue},enumerable:!1,configurable:!0}),t.prototype.setLocText=function(e){this.locTextValue=e},Object.defineProperty(t.prototype,"locOwner",{get:function(){return this._locOwner},set:function(e){this._locOwner=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"value",{get:function(){return this.getPropertyValue("value")},set:function(e){var t=void 0;if(!s.Helpers.isValueEmpty(e)){var n=e.toString(),r=n.indexOf(u.settings.itemValueSeparator);r>-1&&(e=n.slice(0,r),t=n.slice(r+1))}this.setPropertyValue("value",e),t&&(this.text=t),this.id=this.value},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hasText",{get:function(){return!!this.locText.pureText},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"pureText",{get:function(){return this.locText.pureText},set:function(e){this.text=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"text",{get:function(){return this.locText.calculatedText},set:function(e){this.locText.text=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"calculatedText",{get:function(){return this.locText.calculatedText},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"shortcutText",{get:function(){return this.text},enumerable:!1,configurable:!0}),t.prototype.canSerializeValue=function(){var e=this.value;return null!=e&&!Array.isArray(e)&&"object"!=typeof e},t.prototype.getData=function(){var e=this.toJSON();if(e.value&&e.value.pos&&delete e.value.pos,s.Helpers.isValueEmpty(e.value))return e;var t=this.canSerializeValue();return t&&(u.settings.serialization.itemValueSerializeAsObject||u.settings.serialization.itemValueSerializeDisplayText)||1!=Object.keys(e).length?(u.settings.serialization.itemValueSerializeDisplayText&&void 0===e.text&&t&&(e.text=this.value.toString()),e):this.value},t.prototype.toJSON=function(){var e={},t=i.Serializer.getProperties(this.getType());t&&0!=t.length||(t=i.Serializer.getProperties("itemvalue"));for(var n=new i.JsonObject,r=0;r<t.length;r++){var o=t[r];"text"===o.name&&!this.locText.hasNonDefaultText()&&s.Helpers.isTwoValueEquals(this.value,this.text,!1,!0,!1)||n.valueToJson(this,e,o)}return e},t.prototype.setData=function(e){if(!s.Helpers.isValueEmpty(e)){if(void 0===e.value&&void 0!==e.text&&1===Object.keys(e).length&&(e.value=e.text),void 0!==e.value){var t;t="function"==typeof e.toJSON?e.toJSON():e,(new i.JsonObject).toObject(t,this)}else this.value=e;this.locText.strChanged()}},Object.defineProperty(t.prototype,"visibleIf",{get:function(){return this.getPropertyValue("visibleIf","")},set:function(e){this.setPropertyValue("visibleIf",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"enableIf",{get:function(){return this.getPropertyValue("enableIf","")},set:function(e){this.setPropertyValue("enableIf",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isVisible",{get:function(){return this.getPropertyValue("isVisible",!0)},enumerable:!1,configurable:!0}),t.prototype.setIsVisible=function(e){this.setPropertyValue("isVisible",e)},Object.defineProperty(t.prototype,"isEnabled",{get:function(){return this.getPropertyValue("isEnabled",!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(){e.prototype.locStrsChanged.call(this),this.locText.strChanged()},t.prototype.onPropertyValueChanged=function(e,t,n){"value"!==e||this.hasText||this.locText.strChanged();var r="itemValuePropertyChanged";this.locOwner&&this.locOwner[r]&&this.locOwner[r](this,e,t,n)},t.prototype.getConditionRunner=function(e){return e?this.getVisibleConditionRunner():this.getEnableConditionRunner()},t.prototype.getVisibleConditionRunner=function(){return this.visibleIf?(this.visibleConditionRunner||(this.visibleConditionRunner=new a.ConditionRunner(this.visibleIf)),this.visibleConditionRunner.expression=this.visibleIf,this.visibleConditionRunner):null},t.prototype.getEnableConditionRunner=function(){return this.enableIf?(this.enableConditionRunner||(this.enableConditionRunner=new a.ConditionRunner(this.enableIf)),this.enableConditionRunner.expression=this.enableIf,this.enableConditionRunner):null},Object.defineProperty(t.prototype,"selected",{get:function(){var e=this,t=this._locOwner;return t instanceof p.Question&&t.isItemSelected&&void 0===this.selectedValue&&(this.selectedValue=new l.ComputedUpdater((function(){return t.isItemSelected(e)}))),this.selectedValue},enumerable:!1,configurable:!0}),t.prototype.getComponent=function(){return this._locOwner instanceof p.Question?this.componentValue||this._locOwner.itemComponent:this.componentValue},t.prototype.setComponent=function(e){this.componentValue=e},t.prototype.getEnabled=function(){return this.isEnabled},t.prototype.setEnabled=function(e){this.setIsEnabled(e)},t.prototype.getVisible=function(){var e=void 0===this.isVisible||this.isVisible,t=void 0===this._visible||this._visible;return e&&t},t.prototype.setVisible=function(e){this._visible=e},t.prototype.getLocTitle=function(){return this.locText},t.prototype.getTitle=function(){return this.text},t.prototype.setLocTitle=function(e){},t.prototype.setTitle=function(e){},h([Object(i.property)({defaultValue:!0})],t.prototype,"_visible",void 0),h([Object(i.property)()],t.prototype,"selectedValue",void 0),h([Object(i.property)()],t.prototype,"icon",void 0),t}(c.BaseAction);l.Base.createItemValue=function(e,t){var n=null;return(n=t?i.JsonObject.metaData.createClass(t,{}):"function"==typeof e.getType?new f(null,void 0,e.getType()):new f(null)).setData(e),n},l.Base.itemValueLocStrChanged=function(e){f.locStrsChanged(e)},i.JsonObjectProperty.getItemValuesDefaultValue=function(e,t){var n=new Array;return f.setData(n,Array.isArray(e)?e:[],t),n},i.Serializer.addClass("itemvalue",[{name:"!value",isUnique:!0},{name:"text",serializationProperty:"locText"},{name:"visibleIf:condition",showMode:"form"},{name:"enableIf:condition",showMode:"form",visibleIf:function(e){return!e||"rateValues"!==e.ownerPropertyName}}],(function(e){return new f(e)}))},"./src/jsonobject.ts":function(e,t,n){"use strict";n.r(t),n.d(t,"property",(function(){return c})),n.d(t,"propertyArray",(function(){return d})),n.d(t,"JsonObjectProperty",(function(){return h})),n.d(t,"CustomPropertiesCollection",(function(){return f})),n.d(t,"JsonMetadataClass",(function(){return m})),n.d(t,"JsonMetadata",(function(){return g})),n.d(t,"JsonError",(function(){return y})),n.d(t,"JsonUnknownPropertyError",(function(){return v})),n.d(t,"JsonMissingTypeErrorBase",(function(){return b})),n.d(t,"JsonMissingTypeError",(function(){return C})),n.d(t,"JsonIncorrectTypeError",(function(){return w})),n.d(t,"JsonRequiredPropertyError",(function(){return x})),n.d(t,"JsonObject",(function(){return P})),n.d(t,"Serializer",(function(){return S}));var r,o=n("./src/surveyStrings.ts"),i=n("./src/base.ts"),s=n("./src/helpers.ts"),a=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),l=function(e,t){for(var n=0,r=t.length,o=e.length;n<r;n++,o++)e[o]=t[n];return e};function u(e,t,n){var r=e.getLocalizableString(n);r||(r=e.createLocalizableString(n,e,!0),"object"==typeof t.localizable&&"function"==typeof t.localizable.onGetTextCallback&&(r.onGetTextCallback=t.localizable.onGetTextCallback))}function c(e){return function(t,n){var r=function(e,t){if(t&&"object"==typeof t&&t.type===i.ComputedUpdater.ComputedUpdaterType){i.Base.startCollectDependencies((function(){return e[n]=t.updater()}),e,n);var r=t.updater(),o=i.Base.finishCollectDependencies();return t.setDependencies(o),r}return t};e&&e.localizable?(Object.defineProperty(t,n,{get:function(){return function(e,t,n){u(e,t,n);var r=e.getLocalizableStringText(n);if(r)return r;if("object"==typeof t.localizable&&t.localizable.defaultStr){var i=e.getLocale?e.getLocale():"";return o.surveyLocalization.getString(t.localizable.defaultStr,i)}return""}(this,e,n)},set:function(t){u(this,e,n);var o=r(this,t);this.setLocalizableStringText(n,o),e&&e.onSet&&e.onSet(o,this)}}),Object.defineProperty(t,"object"==typeof e.localizable&&e.localizable.name?e.localizable.name:"loc"+n.charAt(0).toUpperCase()+n.slice(1),{get:function(){return u(this,e,n),this.getLocalizableString(n)}})):Object.defineProperty(t,n,{get:function(){var t=null;return e&&("function"==typeof e.getDefaultValue&&(t=e.getDefaultValue(this)),void 0!==e.defaultValue&&(t=e.defaultValue)),this.getPropertyValue(n,t)},set:function(t){var o=r(this,t);this.setPropertyValue(n,o),e&&e.onSet&&e.onSet(o,this)}})}}function p(e,t,n){e.ensureArray(n,(function(n,r){var o=t?t.onPush:null;o&&o(n,r,e)}),(function(n,r){var o=t?t.onRemove:null;o&&o(n,r,e)}))}function d(e){return function(t,n){Object.defineProperty(t,n,{get:function(){return p(this,e,n),this.getPropertyValue(n)},set:function(t){p(this,e,n);var r=this.getPropertyValue(n);t!==r&&(r?r.splice.apply(r,l([0,r.length],t||[])):this.setPropertyValue(n,t),e&&e.onSet&&e.onSet(t,this))}})}}var h=function(){function e(t,n,r){void 0===r&&(r=!1),this.name=n,this.isRequiredValue=!1,this.isUniqueValue=!1,this.isSerializable=!0,this.isLightSerializable=!0,this.isCustom=!1,this.isDynamicChoices=!1,this.isBindable=!1,this.category="",this.categoryIndex=-1,this.visibleIndex=-1,this.maxLength=-1,this.isArray=!1,this.classInfoValue=t,this.isRequiredValue=r,this.idValue=e.Index++}return Object.defineProperty(e.prototype,"id",{get:function(){return this.idValue},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"classInfo",{get:function(){return this.classInfoValue},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"type",{get:function(){return this.typeValue?this.typeValue:"string"},set:function(e){"itemvalues"===e&&(e="itemvalue[]"),"textitems"===e&&(e="textitem[]"),this.typeValue=e,this.typeValue.indexOf("[]")===this.typeValue.length-2&&(this.isArray=!0,this.className=this.typeValue.substring(0,this.typeValue.length-2))},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"isRequired",{get:function(){return this.isRequiredValue},set:function(e){this.isRequiredValue=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"isUnique",{get:function(){return this.isUniqueValue},set:function(e){this.isUniqueValue=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"uniquePropertyName",{get:function(){return this.uniquePropertyValue},set:function(e){this.uniquePropertyValue=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"hasToUseGetValue",{get:function(){return this.onGetValue||this.serializationProperty},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"defaultValue",{get:function(){var t=this.defaultValueFunc?this.defaultValueFunc():this.defaultValueValue;return e.getItemValuesDefaultValue&&P.metaData.isDescendantOf(this.className,"itemvalue")&&(t=e.getItemValuesDefaultValue(this.defaultValueValue||[],this.className)),t},set:function(e){this.defaultValueValue=e},enumerable:!1,configurable:!0}),e.prototype.isDefaultValue=function(e){return s.Helpers.isValueEmpty(this.defaultValue)?!1===e&&("boolean"==this.type||"switch"==this.type)||""===e||s.Helpers.isValueEmpty(e):s.Helpers.isTwoValueEquals(e,this.defaultValue,!1,!0,!1)},e.prototype.getValue=function(e){return this.onGetValue?this.onGetValue(e):this.serializationProperty&&e[this.serializationProperty]?e[this.serializationProperty].getJson():e[this.name]},e.prototype.getPropertyValue=function(e){return this.isLocalizable?e[this.serializationProperty]?e[this.serializationProperty].text:null:this.getValue(e)},Object.defineProperty(e.prototype,"hasToUseSetValue",{get:function(){return this.onSetValue||this.serializationProperty},enumerable:!1,configurable:!0}),e.prototype.settingValue=function(e,t){return!this.onSettingValue||e.isLoadingFromJson?t:this.onSettingValue(e,t)},e.prototype.setValue=function(e,t,n){this.onSetValue?this.onSetValue(e,t,n):this.serializationProperty&&e[this.serializationProperty]?e[this.serializationProperty].setJson(t):(t&&"string"==typeof t&&("number"==this.type&&(t=parseInt(t)),"boolean"!=this.type&&"switch"!=this.type||(t="true"===t.toLowerCase())),e[this.name]=t)},e.prototype.getObjType=function(e){return this.classNamePart?e.replace(this.classNamePart,""):e},Object.defineProperty(e.prototype,"choices",{get:function(){return this.getChoices(null)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"hasChoices",{get:function(){return!!this.choicesValue||!!this.choicesfunc},enumerable:!1,configurable:!0}),e.prototype.getChoices=function(e,t){return void 0===t&&(t=null),null!=this.choicesValue?this.choicesValue:null!=this.choicesfunc?this.choicesfunc(e,t):null},e.prototype.setChoices=function(e,t){void 0===t&&(t=null),this.choicesValue=e,this.choicesfunc=t},e.prototype.getBaseValue=function(){return this.baseValue?"function"==typeof this.baseValue?this.baseValue():this.baseValue:""},e.prototype.setBaseValue=function(e){this.baseValue=e},Object.defineProperty(e.prototype,"readOnly",{get:function(){return null!=this.readOnlyValue&&this.readOnlyValue},set:function(e){this.readOnlyValue=e},enumerable:!1,configurable:!0}),e.prototype.isVisible=function(e,t){void 0===t&&(t=null);var n=!this.layout||this.layout==e;return!(!this.visible||!n)&&(!this.visibleIf||!t||this.visibleIf(t))},Object.defineProperty(e.prototype,"visible",{get:function(){return null==this.visibleValue||this.visibleValue},set:function(e){this.visibleValue=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"isLocalizable",{get:function(){return null!=this.isLocalizableValue&&this.isLocalizableValue},set:function(e){this.isLocalizableValue=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"dataList",{get:function(){return Array.isArray(this.dataListValue)?this.dataListValue:[]},set:function(e){this.dataListValue=e},enumerable:!1,configurable:!0}),e.prototype.mergeWith=function(t){for(var n=e.mergableValues,r=0;r<n.length;r++)this.mergeValue(t,n[r])},e.prototype.addDependedProperty=function(e){this.dependedProperties||(this.dependedProperties=[]),this.dependedProperties.indexOf(e)<0&&this.dependedProperties.push(e)},e.prototype.getDependedProperties=function(){return this.dependedProperties?this.dependedProperties:[]},e.prototype.schemaType=function(){if("choicesByUrl"!==this.className)return"string"===this.className?this.className:this.className||this.baseClassName?"array":"switch"==this.type?"boolean":"boolean"==this.type||"number"==this.type?this.type:"string"},e.prototype.schemaRef=function(){if(this.className)return this.className},e.prototype.mergeValue=function(e,t){null==this[t]&&null!=e[t]&&(this[t]=e[t])},e.Index=1,e.mergableValues=["typeValue","choicesValue","baseValue","readOnlyValue","visibleValue","isSerializable","isLightSerializable","isCustom","isBindable","isUnique","uniquePropertyName","isDynamicChoices","isLocalizableValue","className","alternativeName","layout","classNamePart","baseClassName","defaultValue","defaultValueFunc","serializationProperty","onGetValue","onSetValue","onSettingValue","displayName","category","categoryIndex","visibleIndex","nextToProperty","overridingProperty","showMode","dependedProperties","visibleIf","onExecuteExpression","onPropertyEditorUpdate","maxLength","maxValue","minValue","dataListValue"],e}(),f=function(){function e(){}return e.addProperty=function(t,n){t=t.toLowerCase();var r=e.properties;r[t]||(r[t]=[]),r[t].push(n)},e.removeProperty=function(t,n){t=t.toLowerCase();var r=e.properties;if(r[t])for(var o=r[t],i=0;i<o.length;i++)if(o[i].name==n){r[t].splice(i,1);break}},e.removeAllProperties=function(t){t=t.toLowerCase(),delete e.properties[t]},e.addClass=function(t,n){t=t.toLowerCase(),n&&(n=n.toLowerCase()),e.parentClasses[t]=n},e.getProperties=function(t){t=t.toLowerCase();for(var n=[],r=e.properties;t;){var o=r[t];if(o)for(var i=0;i<o.length;i++)n.push(o[i]);t=e.parentClasses[t]}return n},e.createProperties=function(t){t&&t.getType&&e.createPropertiesCore(t,t.getType())},e.createPropertiesCore=function(t,n){var r=e.properties;r[n]&&e.createPropertiesInObj(t,r[n]);var o=e.parentClasses[n];o&&e.createPropertiesCore(t,o)},e.createPropertiesInObj=function(t,n){for(var r=0;r<n.length;r++)e.createPropertyInObj(t,n[r])},e.createPropertyInObj=function(t,n){if(!(e.checkIsPropertyExists(t,n.name)||n.serializationProperty&&e.checkIsPropertyExists(t,n.serializationProperty))){if(n.isLocalizable&&n.serializationProperty&&t.createCustomLocalizableObj){t.createCustomLocalizableObj(n.name);var r={get:function(){return t.getLocalizableString(n.name)}};Object.defineProperty(t,n.serializationProperty,r);var o={get:function(){return t.getLocalizableStringText(n.name,n.defaultValue)},set:function(e){t.setLocalizableStringText(n.name,e)}};Object.defineProperty(t,n.name,o)}else{var i=n.defaultValue,s=n.isArray||"multiplevalues"===n.type;"function"==typeof t.createNewArray&&(P.metaData.isDescendantOf(n.className,"itemvalue")?(t.createNewArray(n.name,(function(e){e.locOwner=t,e.ownerPropertyName=n.name})),s=!0):s&&t.createNewArray(n.name),s&&(Array.isArray(i)&&t.setPropertyValue(n.name,i),i=null)),t.getPropertyValue&&t.setPropertyValue&&(o={get:function(){return n.onGetValue?n.onGetValue(t):t.getPropertyValue(n.name,i)},set:function(e){n.onSetValue?n.onSetValue(t,e,null):t.setPropertyValue(n.name,e)}},Object.defineProperty(t,n.name,o))}"condition"!==n.type&&"expression"!==n.type||n.onExecuteExpression&&t.addExpressionProperty(n.name,n.onExecuteExpression)}},e.checkIsPropertyExists=function(e,t){return e.hasOwnProperty(t)||e[t]},e.properties={},e.parentClasses={},e}(),m=function(){function e(e,t,n,r){void 0===n&&(n=null),void 0===r&&(r=null),this.name=e,this.creator=n,this.parentName=r,e=e.toLowerCase(),this.isCustomValue=!n&&"survey"!==e,this.parentName&&(this.parentName=this.parentName.toLowerCase(),f.addClass(e,this.parentName),n&&this.makeParentRegularClass()),this.properties=new Array;for(var o=0;o<t.length;o++)this.createProperty(t[o],this.isCustom)}return e.prototype.find=function(e){for(var t=0;t<this.properties.length;t++)if(this.properties[t].name==e)return this.properties[t];return null},e.prototype.findProperty=function(e){return this.fillAllProperties(),this.hashProperties[e]},e.prototype.getAllProperties=function(){return this.fillAllProperties(),this.allProperties},e.prototype.resetAllProperties=function(){this.allProperties=void 0,this.hashProperties=void 0;for(var e=S.getChildrenClasses(this.name),t=0;t<e.length;t++)e[t].resetAllProperties()},Object.defineProperty(e.prototype,"isCustom",{get:function(){return this.isCustomValue},enumerable:!1,configurable:!0}),e.prototype.fillAllProperties=function(){var e=this;if(!this.allProperties){this.allProperties=[],this.hashProperties={};var t={};this.properties.forEach((function(e){return t[e.name]=e}));var n=this.parentName?S.findClass(this.parentName):null;n&&n.getAllProperties().forEach((function(n){var r=t[n.name];r?(r.mergeWith(n),e.addPropCore(r)):e.addPropCore(n)})),this.properties.forEach((function(t){e.hashProperties[t.name]||e.addPropCore(t)}))}},e.prototype.addPropCore=function(e){this.allProperties.push(e),this.hashProperties[e.name]=e,e.alternativeName&&(this.hashProperties[e.alternativeName]=e)},e.prototype.isOverridedProp=function(e){return!!this.parentName&&!!S.findProperty(this.parentName,e)},e.prototype.hasRegularChildClass=function(){if(this.isCustom){this.isCustomValue=!1;for(var e=0;e<this.properties.length;e++)this.properties[e].isCustom=!1;f.removeAllProperties(this.name),this.makeParentRegularClass()}},e.prototype.makeParentRegularClass=function(){if(this.parentName){var e=S.findClass(this.parentName);e&&e.hasRegularChildClass()}},e.prototype.createProperty=function(t,n){void 0===n&&(n=!1);var r="string"==typeof t?t:t.name;if(r){var o=null,i=r.indexOf(e.typeSymbol);i>-1&&(o=r.substring(i+1),r=r.substring(0,i));var a=this.getIsPropertyNameRequired(r)||!!t.isRequired;r=this.getPropertyName(r);var l=new h(this,r,a);if(o&&(l.type=o),"object"==typeof t){if(t.type&&(l.type=t.type),void 0!==t.default&&(l.defaultValue=t.default),void 0!==t.defaultFunc&&(l.defaultValueFunc=t.defaultFunc),s.Helpers.isValueEmpty(t.isSerializable)||(l.isSerializable=t.isSerializable),s.Helpers.isValueEmpty(t.isLightSerializable)||(l.isLightSerializable=t.isLightSerializable),s.Helpers.isValueEmpty(t.maxLength)||(l.maxLength=t.maxLength),s.Helpers.isValueEmpty(t.displayName)||(l.displayName=t.displayName),s.Helpers.isValueEmpty(t.category)||(l.category=t.category),s.Helpers.isValueEmpty(t.categoryIndex)||(l.categoryIndex=t.categoryIndex),s.Helpers.isValueEmpty(t.nextToProperty)||(l.nextToProperty=t.nextToProperty),s.Helpers.isValueEmpty(t.overridingProperty)||(l.overridingProperty=t.overridingProperty),s.Helpers.isValueEmpty(t.visibleIndex)||(l.visibleIndex=t.visibleIndex),s.Helpers.isValueEmpty(t.showMode)||(l.showMode=t.showMode),s.Helpers.isValueEmpty(t.maxValue)||(l.maxValue=t.maxValue),s.Helpers.isValueEmpty(t.minValue)||(l.minValue=t.minValue),s.Helpers.isValueEmpty(t.dataList)||(l.dataList=t.dataList),s.Helpers.isValueEmpty(t.isDynamicChoices)||(l.isDynamicChoices=t.isDynamicChoices),s.Helpers.isValueEmpty(t.isBindable)||(l.isBindable=t.isBindable),s.Helpers.isValueEmpty(t.isUnique)||(l.isUnique=t.isUnique),s.Helpers.isValueEmpty(t.uniqueProperty)||(l.uniquePropertyName=t.uniqueProperty),s.Helpers.isValueEmpty(t.isArray)||(l.isArray=t.isArray),!0!==t.visible&&!1!==t.visible||(l.visible=t.visible),t.visibleIf&&(l.visibleIf=t.visibleIf),t.onExecuteExpression&&(l.onExecuteExpression=t.onExecuteExpression),t.onPropertyEditorUpdate&&(l.onPropertyEditorUpdate=t.onPropertyEditorUpdate),!0===t.readOnly&&(l.readOnly=!0),t.choices){var u="function"==typeof t.choices?t.choices:null,c="function"!=typeof t.choices?t.choices:null;l.setChoices(c,u)}t.baseValue&&l.setBaseValue(t.baseValue),t.onGetValue&&(l.onGetValue=t.onGetValue),t.onSetValue&&(l.onSetValue=t.onSetValue),t.onSettingValue&&(l.onSettingValue=t.onSettingValue),t.isLocalizable&&(t.serializationProperty="loc"+l.name),t.serializationProperty&&(l.serializationProperty=t.serializationProperty,l.serializationProperty&&0==l.serializationProperty.indexOf("loc")&&(l.isLocalizable=!0)),t.isLocalizable&&(l.isLocalizable=t.isLocalizable),t.className&&(l.className=t.className),t.baseClassName&&(l.baseClassName=t.baseClassName),t.classNamePart&&(l.classNamePart=t.classNamePart),t.alternativeName&&(l.alternativeName=t.alternativeName),t.layout&&(l.layout=t.layout),t.dependsOn&&this.addDependsOnProperties(l,t.dependsOn)}return this.properties.push(l),n&&!this.isOverridedProp(l.name)&&(l.isCustom=!0,f.addProperty(this.name,l)),l}},e.prototype.addDependsOnProperties=function(e,t){if(Array.isArray(t))for(var n=0;n<t.length;n++)this.addDependsOnProperty(e,t[n]);else this.addDependsOnProperty(e,t)},e.prototype.addDependsOnProperty=function(e,t){var n=this.find(t);n||(n=S.findProperty(this.parentName,t)),n&&n.addDependedProperty(e.name)},e.prototype.getIsPropertyNameRequired=function(t){return t.length>0&&t[0]==e.requiredSymbol},e.prototype.getPropertyName=function(e){return this.getIsPropertyNameRequired(e)?e=e.slice(1):e},e.requiredSymbol="!",e.typeSymbol=":",e}(),g=function(){function e(){this.classes={},this.alternativeNames={},this.childrenClasses={}}return e.prototype.getObjPropertyValue=function(e,t){if(this.isObjWrapper(e)){var n=e.getOriginalObj();if(r=S.findProperty(n.getType(),t))return this.getObjPropertyValueCore(n,r)}var r;return(r=S.findProperty(e.getType(),t))?this.getObjPropertyValueCore(e,r):e[t]},e.prototype.setObjPropertyValue=function(e,t,n){if(e[t]!==n)if(e[t]&&e[t].setJson)e[t].setJson(n);else{if(Array.isArray(n)){for(var r=[],o=0;o<n.length;o++)r.push(n[o]);n=r}e[t]=n}},e.prototype.getObjPropertyValueCore=function(e,t){if(!t.isSerializable)return e[t.name];if(t.isLocalizable){if(t.isArray)return e[t.name];if(t.serializationProperty)return e[t.serializationProperty].text}return e.getPropertyValue(t.name)},e.prototype.isObjWrapper=function(e){return!!e.getOriginalObj&&!!e.getOriginalObj()},e.prototype.addClass=function(e,t,n,r){void 0===n&&(n=null),void 0===r&&(r=null),e=e.toLowerCase();var o=new m(e,t,n,r);return this.classes[e]=o,r&&(r=r.toLowerCase(),this.childrenClasses[r]||(this.childrenClasses[r]=[]),this.childrenClasses[r].push(o)),o},e.prototype.removeClass=function(e){var t=this.findClass(e);if(t&&(delete this.classes[t.name],t.parentName)){var n=this.childrenClasses[t.parentName].indexOf(t);n>-1&&this.childrenClasses[t.parentName].splice(n,1)}},e.prototype.overrideClassCreatore=function(e,t){this.overrideClassCreator(e,t)},e.prototype.overrideClassCreator=function(e,t){e=e.toLowerCase();var n=this.findClass(e);n&&(n.creator=t)},e.prototype.getProperties=function(e){var t=this.findClass(e);return t?t.getAllProperties():[]},e.prototype.getPropertiesByObj=function(e){if(!e||!e.getType)return[];for(var t={},n=this.getProperties(e.getType()),r=0;r<n.length;r++)t[n[r].name]=n[r];var o=e.getDynamicType?this.getProperties(e.getDynamicType()):null;if(o&&o.length>0)for(r=0;r<o.length;r++){var i=o[r];t[i.name]||(t[i.name]=i)}return Object.keys(t).map((function(e){return t[e]}))},e.prototype.getDynamicPropertiesByObj=function(e,t){if(void 0===t&&(t=null),!e||!e.getType||!e.getDynamicType&&!t)return[];var n=t||e.getDynamicType();if(!n)return[];var r=this.getProperties(n);if(!r||0==r.length)return[];for(var o={},i=this.getProperties(e.getType()),s=0;s<i.length;s++)o[i[s].name]=i[s];var a=[];for(s=0;s<r.length;s++){var l=r[s];o[l.name]||a.push(l)}return a},e.prototype.hasOriginalProperty=function(e,t){return!!this.getOriginalProperty(e,t)},e.prototype.getOriginalProperty=function(e,t){return this.findProperty(e.getType(),t)||(this.isObjWrapper(e)?this.findProperty(e.getOriginalObj().getType(),t):null)},e.prototype.getProperty=function(e,t){var n=this.findProperty(e,t);if(!n)return n;var r=this.findClass(e);if(n.classInfo===r)return n;var o=new h(r,n.name,n.isRequired);return o.mergeWith(n),o.isArray=n.isArray,r.properties.push(o),r.resetAllProperties(),o},e.prototype.findProperty=function(e,t){var n=this.findClass(e);return n?n.findProperty(t):null},e.prototype.findProperties=function(e,t){var n=new Array,r=this.findClass(e);if(!r)return n;for(var o=0;o<t.length;o++){var i=r.findProperty(t[o]);i&&n.push(i)}return n},e.prototype.getAllPropertiesByName=function(e){for(var t=new Array,n=this.getAllClasses(),r=0;r<n.length;r++)for(var o=this.findClass(n[r]),i=0;i<o.properties.length;i++)if(o.properties[i].name==e){t.push(o.properties[i]);break}return t},e.prototype.getAllClasses=function(){var e=new Array;for(var t in this.classes)e.push(t);return e},e.prototype.createClass=function(e,t){void 0===t&&(t=void 0),e=e.toLowerCase();var n=this.findClass(e);if(!n)return null;if(n.creator)return n.creator(t);for(var r=n.parentName;r;){if(!(n=this.findClass(r)))return null;if(r=n.parentName,n.creator)return this.createCustomType(e,n.creator,t)}return null},e.prototype.createCustomType=function(e,t,n){void 0===n&&(n=void 0),e=e.toLowerCase();var r=t(n),o=e,i=r.getTemplate?r.getTemplate():r.getType();return r.getType=function(){return o},r.getTemplate=function(){return i},f.createProperties(r),r},e.prototype.getChildrenClasses=function(e,t){void 0===t&&(t=!1),e=e.toLowerCase();var n=[];return this.fillChildrenClasses(e,t,n),n},e.prototype.getRequiredProperties=function(e){for(var t=this.getProperties(e),n=[],r=0;r<t.length;r++)t[r].isRequired&&n.push(t[r].name);return n},e.prototype.addProperties=function(e,t){e=e.toLowerCase();for(var n=this.findClass(e),r=0;r<t.length;r++)this.addCustomPropertyCore(n,t[r])},e.prototype.addProperty=function(e,t){return this.addCustomPropertyCore(this.findClass(e),t)},e.prototype.addCustomPropertyCore=function(e,t){if(!e)return null;var n=e.createProperty(t,!0);return n&&e.resetAllProperties(),n},e.prototype.removeProperty=function(e,t){var n=this.findClass(e);if(!n)return!1;var r=n.find(t);r&&(this.removePropertyFromClass(n,r),n.resetAllProperties(),f.removeProperty(n.name,t))},e.prototype.removePropertyFromClass=function(e,t){var n=e.properties.indexOf(t);n<0||e.properties.splice(n,1)},e.prototype.fillChildrenClasses=function(e,t,n){var r=this.childrenClasses[e];if(r)for(var o=0;o<r.length;o++)t&&!r[o].creator||n.push(r[o]),this.fillChildrenClasses(r[o].name,t,n)},e.prototype.findClass=function(e){e=e.toLowerCase();var t=this.classes[e];if(!t){var n=this.alternativeNames[e];if(n&&n!=e)return this.findClass(n)}return t},e.prototype.isDescendantOf=function(e,t){if(!e||!t)return!1;e=e.toLowerCase(),t=t.toLowerCase();var n=this.findClass(e);if(!n)return!1;var r=n;do{if(r.name===t)return!0;r=this.classes[r.parentName]}while(r);return!1},e.prototype.addAlterNativeClassName=function(e,t){this.alternativeNames[t.toLowerCase()]=e.toLowerCase()},e.prototype.generateSchema=function(e){void 0===e&&(e=void 0),e||(e="survey");var t=this.findClass(e);if(!t)return null;var n={$schema:"http://json-schema.org/draft-07/schema#",title:"SurveyJS Library json schema",type:"object",properties:{},definitions:{locstring:this.generateLocStrClass()}};return this.generateSchemaProperties(t,n,n.definitions,!0),n},e.prototype.generateLocStrClass=function(){var e={},t=S.findProperty("survey","locale");if(t){var n=t.getChoices(null);Array.isArray(n)&&(n.indexOf("en")<0&&n.splice(0,0,"en"),n.splice(0,0,"default"),n.forEach((function(t){t&&(e[t]={type:"string"})})))}return{$id:"locstring",type:"object",properties:e}},e.prototype.generateSchemaProperties=function(e,t,n,r){if(e){var o=t.properties,i=[];"question"!==e.name&&"panel"!==e.name||(o.type={type:"string"},i.push("type"));for(var s=0;s<e.properties.length;s++){var a=e.properties[s];e.parentName&&S.findProperty(e.parentName,a.name)||(o[a.name]=this.generateSchemaProperty(a,n,r),a.isRequired&&i.push(a.name))}i.length>0&&(t.required=i)}},e.prototype.generateSchemaProperty=function(e,t,n){if(e.isLocalizable)return{oneOf:[{type:"string"},{$ref:this.getChemeRefName("locstring",n)}]};var r=e.schemaType(),o=e.schemaRef(),i={};if(r&&(i.type=r),e.hasChoices){var s=e.getChoices(null);Array.isArray(s)&&s.length>0&&(i.enum=s)}if(o&&("array"===r?"string"===e.className?i.items={type:e.className}:i.items={$ref:this.getChemeRefName(e.className,n)}:i.$ref=this.getChemeRefName(o,n),this.generateChemaClass(e.className,t,!1)),e.baseClassName){var a=this.getChildrenClasses(e.baseClassName,!0);"question"==e.baseClassName&&a.push(this.findClass("panel")),i.items={anyOf:[]};for(var l=0;l<a.length;l++){var u=a[l].name;i.items.anyOf.push({$ref:this.getChemeRefName(u,n)}),this.generateChemaClass(u,t,!1)}}return i},e.prototype.getChemeRefName=function(e,t){return"#/definitions/"+e},e.prototype.generateChemaClass=function(e,t,n){if(!t[e]){var r=this.findClass(e);if(r){var o=!!r.parentName&&"base"!=r.parentName;o&&this.generateChemaClass(r.parentName,t,n);var i={type:"object",$id:e};t[e]=i;var s={properties:{}};this.generateSchemaProperties(r,s,t,n),o?i.allOf=[{$ref:this.getChemeRefName(r.parentName,n)},{properties:s.properties}]:i.properties=s.properties,Array.isArray(s.required)&&(i.required=s.required)}}},e}(),y=function(){function e(e,t){this.type=e,this.message=t,this.description="",this.at=-1,this.end=-1}return e.prototype.getFullDescription=function(){return this.message+(this.description?"\n"+this.description:"")},e}(),v=function(e){function t(t,n){var r=e.call(this,"unknownproperty","The property '"+t+"' in class '"+n+"' is unknown.")||this;r.propertyName=t,r.className=n;var o=P.metaData.getProperties(n);if(o){r.description="The list of available properties are: ";for(var i=0;i<o.length;i++)i>0&&(r.description+=", "),r.description+=o[i].name;r.description+="."}return r}return a(t,e),t}(y),b=function(e){function t(t,n,r){var o=e.call(this,n,r)||this;o.baseClassName=t,o.type=n,o.message=r,o.description="The following types are available: ";for(var i=P.metaData.getChildrenClasses(t,!0),s=0;s<i.length;s++)s>0&&(o.description+=", "),o.description+="'"+i[s].name+"'";return o.description+=".",o}return a(t,e),t}(y),C=function(e){function t(t,n){var r=e.call(this,n,"missingtypeproperty","The property type is missing in the object. Please take a look at property: '"+t+"'.")||this;return r.propertyName=t,r.baseClassName=n,r}return a(t,e),t}(b),w=function(e){function t(t,n){var r=e.call(this,n,"incorrecttypeproperty","The property type is incorrect in the object. Please take a look at property: '"+t+"'.")||this;return r.propertyName=t,r.baseClassName=n,r}return a(t,e),t}(b),x=function(e){function t(t,n){var r=e.call(this,"requiredproperty","The property '"+t+"' is required in class '"+n+"'.")||this;return r.propertyName=t,r.className=n,r}return a(t,e),t}(y),P=function(){function e(){this.errors=new Array,this.lightSerializing=!1}return Object.defineProperty(e,"metaData",{get:function(){return e.metaDataValue},enumerable:!1,configurable:!0}),e.prototype.toJsonObject=function(e,t){return void 0===t&&(t=!1),this.toJsonObjectCore(e,null,t)},e.prototype.toObject=function(e,t){this.toObjectCore(e,t);var n=this.getRequiredError(t,e);n&&this.addNewError(n,e,t)},e.prototype.toObjectCore=function(t,n){if(t){var r=null,o=void 0,i=!0;if(n.getType&&(o=n.getType(),r=e.metaData.getProperties(o),i=!!o&&!e.metaData.isDescendantOf(o,"itemvalue")),r){for(var s in n.startLoadingFromJson&&n.startLoadingFromJson(t),r=this.addDynamicProperties(n,t,r),t)if(s!==e.typePropertyName)if(s!==e.positionPropertyName){var a=this.findProperty(r,s);a?this.valueToObj(t[s],n,a):i&&this.addNewError(new v(s.toString(),o),t,n)}else n[s]=t[s];n.endLoadingFromJson&&n.endLoadingFromJson()}}},e.prototype.toJsonObjectCore=function(t,n,r){if(void 0===r&&(r=!1),!t||!t.getType)return t;if("function"==typeof t.getData)return t.getData();var o={};return null==n||n.className||(o[e.typePropertyName]=n.getObjType(t.getType())),this.propertiesToJson(t,e.metaData.getProperties(t.getType()),o,r),this.propertiesToJson(t,this.getDynamicProperties(t),o,r),o},e.prototype.getDynamicProperties=function(e){return S.getDynamicPropertiesByObj(e)},e.prototype.addDynamicProperties=function(e,t,n){if(!e.getDynamicPropertyName)return n;var r=e.getDynamicPropertyName();if(!r)return n;t[r]&&(e[r]=t[r]);for(var o=this.getDynamicProperties(e),i=[],s=0;s<n.length;s++)i.push(n[s]);for(s=0;s<o.length;s++)i.push(o[s]);return i},e.prototype.propertiesToJson=function(e,t,n,r){void 0===r&&(r=!1);for(var o=0;o<t.length;o++)this.valueToJson(e,n,t[o],r)},e.prototype.valueToJson=function(e,t,n,r){if(void 0===r&&(r=!1),!(!1===n.isSerializable||!1===n.isLightSerializable&&this.lightSerializing)){var o=n.getValue(e);if(r||!n.isDefaultValue(o)){if(this.isValueArray(o)){for(var i=[],s=0;s<o.length;s++)i.push(this.toJsonObjectCore(o[s],n,r));o=i.length>0?i:null}else o=this.toJsonObjectCore(o,n,r);var a="function"==typeof e.getPropertyValue&&null!==e.getPropertyValue(n.name,null);(r&&a||!n.isDefaultValue(o))&&(S.onSerializingProperty&&S.onSerializingProperty(e,n,o,t)||(t[n.name]=o))}}},e.prototype.valueToObj=function(e,t,n){if(null!=e)if(this.removePos(n,e),null!=n&&n.hasToUseSetValue)n.setValue(t,e,this);else if(this.isValueArray(e))this.valueToArray(e,t,n.name,n);else{var r=this.createNewObj(e,n);r.newObj&&(this.toObjectCore(e,r.newObj),e=r.newObj),r.error||(null!=n?n.setValue(t,e,this):t[n.name]=e)}},e.prototype.removePos=function(e,t){!e||!e.type||e.type.indexOf("value")<0||this.removePosFromObj(t)},e.prototype.removePosFromObj=function(t){if(t){if(Array.isArray(t))for(var n=0;n<t.length;n++)this.removePosFromObj(t[n]);t[e.positionPropertyName]&&delete t[e.positionPropertyName]}},e.prototype.isValueArray=function(e){return e&&Array.isArray(e)},e.prototype.createNewObj=function(t,n){var r={newObj:null,error:null},o=this.getClassNameForNewObj(t,n);return r.newObj=o?e.metaData.createClass(o,t):null,r.error=this.checkNewObjectOnErrors(r.newObj,t,n,o),r},e.prototype.getClassNameForNewObj=function(t,n){var r=null!=n&&n.className?n.className:void 0;if(r||(r=t[e.typePropertyName]),!r)return r;r=r.toLowerCase();var o=n.classNamePart;return o&&r.indexOf(o)<0&&(r+=o),r},e.prototype.checkNewObjectOnErrors=function(e,t,n,r){var o=null;return e?o=this.getRequiredError(e,t):n.baseClassName&&(o=r?new w(n.name,n.baseClassName):new C(n.name,n.baseClassName)),o&&this.addNewError(o,t,e),o},e.prototype.getRequiredError=function(t,n){if(!t.getType||"function"==typeof t.getData)return null;var r=t.getType(),o=e.metaData.getRequiredProperties(r);if(!Array.isArray(o))return null;for(var i=0;i<o.length;i++){var a=S.findProperty(r,o[i]);if(a&&s.Helpers.isValueEmpty(a.defaultValue)&&!n[a.name])return new x(a.name,r)}return null},e.prototype.addNewError=function(t,n,r){if(t.jsonObj=n,t.element=r,this.errors.push(t),n){var o=n[e.positionPropertyName];o&&(t.at=o.start,t.end=o.end)}},e.prototype.valueToArray=function(e,t,n,r){if(!t[n]||this.isValueArray(t[n])){t[n]&&e.length>0&&t[n].splice(0,t[n].length);var o=t[n]?t[n]:[];this.addValuesIntoArray(e,o,r),t[n]||(t[n]=o)}},e.prototype.addValuesIntoArray=function(e,t,n){for(var r=0;r<e.length;r++){var o=this.createNewObj(e[r],n);o.newObj?(e[r].name&&(o.newObj.name=e[r].name),e[r].valueName&&(o.newObj.valueName=e[r].valueName.toString()),t.push(o.newObj),this.toObjectCore(e[r],o.newObj)):o.error||t.push(e[r])}},e.prototype.findProperty=function(e,t){if(!e)return null;for(var n=0;n<e.length;n++){var r=e[n];if(r.name==t||r.alternativeName==t)return r}return null},e.typePropertyName="type",e.positionPropertyName="pos",e.metaDataValue=new g,e}(),S=P.metaData},"./src/list.ts":function(e,t,n){"use strict";n.r(t),n.d(t,"defaultListCss",(function(){return h})),n.d(t,"ListModel",(function(){return f}));var r,o=n("./src/jsonobject.ts"),i=n("./src/actions/container.ts"),s=n("./src/actions/action.ts"),a=n("./src/utils/cssClassBuilder.ts"),l=n("./src/element-helper.ts"),u=n("./src/utils/utils.ts"),c=n("./src/settings.ts"),p=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),d=function(e,t,n,r){var o,i=arguments.length,s=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,r);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(i<3?o(s):i>3?o(t,n,s):o(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},h={root:"sv-list__container",item:"sv-list__item",searchClearButtonIcon:"sv-list__filter-clear-button",loadingIndicator:"sv-list__loading-indicator",itemSelected:"sv-list__item--selected",itemWithIcon:"sv-list__item--with-icon",itemDisabled:"sv-list__item--disabled",itemFocused:"sv-list__item--focused",itemIcon:"sv-list__item-icon",itemSeparator:"sv-list__item-separator",itemBody:"sv-list__item-body",itemsContainer:"sv-list",itemsContainerFiltering:"sv-list--filtering",filter:"sv-list__filter",filterIcon:"sv-list__filter-icon",filterInput:"sv-list__input",emptyContainer:"sv-list__empty-container",emptyText:"sv-list__empty-text"},f=function(e){function t(n,r,o,i,s,l){var u=e.call(this)||this;return u.onSelectionChanged=r,u.allowSelection=o,u.onFilterStringChangedCallback=s,u.elementId=l,u.onItemClick=function(e){u.isItemDisabled(e)||(u.isExpanded=!1,u.allowSelection&&(u.selectedItem=e),u.onSelectionChanged&&u.onSelectionChanged(e))},u.isItemDisabled=function(e){return void 0!==e.enabled&&!e.enabled},u.isItemSelected=function(e){return u.areSameItems(u.selectedItem,e)},u.isItemFocused=function(e){return u.areSameItems(u.focusedItem,e)},u.getListClass=function(){return(new a.CssClassBuilder).append(u.cssClasses.itemsContainer).append(u.cssClasses.itemsContainerFiltering,!!u.filterString&&u.visibleActions.length!==u.visibleItems.length).toString()},u.getItemClass=function(e){return(new a.CssClassBuilder).append(u.cssClasses.item).append(u.cssClasses.itemWithIcon,!!e.iconName).append(u.cssClasses.itemDisabled,u.isItemDisabled(e)).append(u.cssClasses.itemFocused,u.isItemFocused(e)).append(u.cssClasses.itemSelected,u.isItemSelected(e)).append(e.css).toString()},u.getItemIndent=function(e){return((e.level||0)+1)*t.INDENT+"px"},u.setItems(n),u.selectedItem=i,u}return p(t,e),t.prototype.hasText=function(e,t){if(!t)return!0;var n=(e.title||"").toLocaleLowerCase();return(n=c.settings.comparator.normalizeTextCallback(n,"filter")).indexOf(t.toLocaleLowerCase())>-1},t.prototype.isItemVisible=function(e){return e.visible&&(!this.shouldProcessFilter||this.hasText(e,this.filterString))},Object.defineProperty(t.prototype,"visibleItems",{get:function(){var e=this;return this.visibleActions.filter((function(t){return e.isItemVisible(t)}))},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"shouldProcessFilter",{get:function(){return!this.onFilterStringChangedCallback},enumerable:!1,configurable:!0}),t.prototype.onFilterStringChanged=function(e){var t=this;this.onFilterStringChangedCallback&&this.onFilterStringChangedCallback(e),this.isEmpty=0===this.renderedActions.filter((function(e){return t.isItemVisible(e)})).length},t.prototype.scrollToItem=function(e,t){var n=this;void 0===t&&(t=0),setTimeout((function(){if(n.listContainerHtmlElement){var r=n.listContainerHtmlElement.querySelector("."+e);r&&setTimeout((function(){r.scrollIntoView({behavior:"smooth",block:"nearest",inline:"start"})}),t)}}),t)},t.prototype.setItems=function(t,n){var r=this;void 0===n&&(n=!0),e.prototype.setItems.call(this,t,n),this.elementId&&this.renderedActions.forEach((function(e){e.elementId=r.elementId+e.id})),!this.isAllDataLoaded&&this.actions.length&&this.actions.push(this.loadingIndicator)},t.prototype.onSet=function(){this.showFilter=this.searchEnabled&&(this.forceShowFilter||(this.actions||[]).length>t.MINELEMENTCOUNT),e.prototype.onSet.call(this)},t.prototype.getDefaultCssClasses=function(){return h},t.prototype.areSameItems=function(e,t){return this.areSameItemsCallback?this.areSameItemsCallback(e,t):!!e&&!!t&&e.id==t.id},Object.defineProperty(t.prototype,"filterStringPlaceholder",{get:function(){return this.getLocalizationString("filterStringPlaceholder")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"emptyMessage",{get:function(){return this.isAllDataLoaded?this.getLocalizationString("emptyMessage"):this.loadingText},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"scrollableContainer",{get:function(){return this.listContainerHtmlElement.querySelector("."+this.getDefaultCssClasses().itemsContainer)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"loadingText",{get:function(){return this.getLocalizationString("loadingFile")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"loadingIndicator",{get:function(){return this.loadingIndicatorValue||(this.loadingIndicatorValue=new s.Action({id:"loadingIndicator",title:this.loadingText,action:function(){},css:this.cssClasses.loadingIndicator})),this.loadingIndicatorValue},enumerable:!1,configurable:!0}),t.prototype.goToItems=function(e){if("ArrowDown"===e.key||40===e.keyCode){var t=e.target.parentElement.parentElement.querySelector("ul"),n=Object(u.getFirstVisibleChild)(t);t&&n&&(l.ElementHelper.focusElement(n),e.preventDefault())}},t.prototype.onMouseMove=function(e){this.resetFocusedItem()},t.prototype.onKeyDown=function(e){var t=e.target;"ArrowDown"===e.key||40===e.keyCode?(l.ElementHelper.focusElement(l.ElementHelper.getNextElementPreorder(t)),e.preventDefault()):"ArrowUp"!==e.key&&38!==e.keyCode||(l.ElementHelper.focusElement(l.ElementHelper.getNextElementPostorder(t)),e.preventDefault())},t.prototype.onPointerDown=function(e,t){},t.prototype.refresh=function(){this.filterString="",this.resetFocusedItem()},t.prototype.onClickSearchClearButton=function(e){e.currentTarget.parentElement.querySelector("input").focus(),this.refresh()},t.prototype.resetFocusedItem=function(){this.focusedItem=void 0},t.prototype.focusFirstVisibleItem=function(){this.focusedItem=this.visibleItems[0]},t.prototype.focusLastVisibleItem=function(){this.focusedItem=this.visibleItems[this.visibleItems.length-1]},t.prototype.initFocusedItem=function(){var e=this;this.focusedItem=this.visibleItems.filter((function(t){return t.visible&&e.isItemSelected(t)}))[0],this.focusedItem||this.focusFirstVisibleItem()},t.prototype.focusNextVisibleItem=function(){if(this.focusedItem){var e=this.visibleItems,t=e.indexOf(this.focusedItem),n=e[t+1];n?this.focusedItem=n:this.focusFirstVisibleItem()}else this.initFocusedItem()},t.prototype.focusPrevVisibleItem=function(){if(this.focusedItem){var e=this.visibleItems,t=e.indexOf(this.focusedItem),n=e[t-1];n?this.focusedItem=n:this.focusLastVisibleItem()}else this.initFocusedItem()},t.prototype.selectFocusedItem=function(){this.focusedItem&&this.onItemClick(this.focusedItem)},t.prototype.initListContainerHtmlElement=function(e){this.listContainerHtmlElement=e},t.prototype.onLastItemRended=function(e){this.isAllDataLoaded||e===this.actions[this.actions.length-1]&&this.listContainerHtmlElement&&(this.hasVerticalScroller=l.ElementHelper.hasVerticalScroller(this.scrollableContainer))},t.prototype.scrollToFocusedItem=function(){this.scrollToItem(this.getDefaultCssClasses().itemFocused)},t.prototype.scrollToSelectedItem=function(){this.scrollToItem(this.getDefaultCssClasses().itemSelected,110)},t.prototype.addScrollEventListener=function(e){e&&(this.scrollHandler=e),this.scrollHandler&&this.scrollableContainer.addEventListener("scroll",this.scrollHandler)},t.prototype.removeScrollEventListener=function(){this.scrollHandler&&this.scrollableContainer.removeEventListener("scroll",this.scrollHandler)},t.prototype.dispose=function(){e.prototype.dispose.call(this),this.loadingIndicatorValue&&this.loadingIndicatorValue.dispose()},t.INDENT=16,t.MINELEMENTCOUNT=10,d([Object(o.property)({defaultValue:!0,onSet:function(e,t){t.onSet()}})],t.prototype,"searchEnabled",void 0),d([Object(o.property)({defaultValue:!1})],t.prototype,"showFilter",void 0),d([Object(o.property)({defaultValue:!1})],t.prototype,"forceShowFilter",void 0),d([Object(o.property)({defaultValue:!1})],t.prototype,"isExpanded",void 0),d([Object(o.property)({})],t.prototype,"selectedItem",void 0),d([Object(o.property)()],t.prototype,"focusedItem",void 0),d([Object(o.property)({onSet:function(e,t){t.onFilterStringChanged(t.filterString)}})],t.prototype,"filterString",void 0),d([Object(o.property)({defaultValue:!1})],t.prototype,"hasVerticalScroller",void 0),d([Object(o.property)({defaultValue:!0})],t.prototype,"isAllDataLoaded",void 0),d([Object(o.property)({defaultValue:!1})],t.prototype,"showSearchClearButton",void 0),d([Object(o.property)({defaultValue:!0})],t.prototype,"renderElements",void 0),t}(i.ActionContainer)},"./src/localizablestring.ts":function(e,t,n){"use strict";n.r(t),n.d(t,"LocalizableString",(function(){return a})),n.d(t,"LocalizableStrings",(function(){return l}));var r=n("./src/helpers.ts"),o=n("./src/surveyStrings.ts"),i=n("./src/settings.ts"),s=n("./src/base.ts"),a=function(){function e(e,t,n){void 0===t&&(t=!1),this.owner=e,this.useMarkdown=t,this.name=n,this.values={},this.htmlValues={},this.onStringChanged=new s.EventBase,this.onCreating()}return Object.defineProperty(e,"defaultLocale",{get:function(){return i.settings.localization.defaultLocaleName},set:function(e){i.settings.localization.defaultLocaleName=e},enumerable:!1,configurable:!0}),e.prototype.getIsMultiple=function(){return!1},Object.defineProperty(e.prototype,"locale",{get:function(){if(this.owner&&this.owner.getLocale){var e=this.owner.getLocale();if(e||!this.sharedData)return e}return this.sharedData?this.sharedData.locale:""},enumerable:!1,configurable:!0}),e.prototype.strChanged=function(){this.searchableText=void 0,void 0!==this.renderedText&&(this.calculatedTextValue=this.calcText(),this.renderedText!==this.calculatedTextValue&&(this.renderedText=void 0,this.calculatedTextValue=void 0),this.htmlValues={},this.onChanged(),this.onStringChanged.fire(this,{}))},Object.defineProperty(e.prototype,"text",{get:function(){return this.pureText},set:function(e){this.setLocaleText(this.locale,e)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"calculatedText",{get:function(){return this.renderedText=void 0!==this.calculatedTextValue?this.calculatedTextValue:this.calcText(),this.calculatedTextValue=void 0,this.renderedText},enumerable:!1,configurable:!0}),e.prototype.calcText=function(){var e=this.pureText;return e&&this.owner&&this.owner.getProcessedText&&e.indexOf("{")>-1&&(e=this.owner.getProcessedText(e)),this.onGetTextCallback&&(e=this.onGetTextCallback(e)),e},Object.defineProperty(e.prototype,"pureText",{get:function(){var e=this.locale;e||(e=this.defaultLoc);var t=this.getValue(e);if(t||e!==this.defaultLoc||(t=this.getValue(o.surveyLocalization.defaultLocale)),!t){var n=this.getRootDialect(e);n&&(t=this.getValue(n))}return t||e===this.defaultLoc||(t=this.getValue(this.defaultLoc)),!t&&this.getLocalizationName()&&(t=this.getLocalizationStr(),this.onGetLocalizationTextCallback&&(t=this.onGetLocalizationTextCallback(t))),t||(t=""),t},enumerable:!1,configurable:!0}),e.prototype.getRootDialect=function(e){if(!e)return e;var t=e.indexOf("-");return t>-1?e.substring(0,t):""},e.prototype.getLocalizationName=function(){return this.sharedData?this.sharedData.localizationName:this.localizationName},e.prototype.getLocalizationStr=function(){var e=this.getLocalizationName();return e?o.surveyLocalization.getString(e,this.locale):""},Object.defineProperty(e.prototype,"hasHtml",{get:function(){return this.hasHtmlValue()},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"html",{get:function(){return this.hasHtml?this.getHtmlValue():""},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"isEmpty",{get:function(){return 0==this.getValuesKeys().length},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"textOrHtml",{get:function(){return this.hasHtml?this.getHtmlValue():this.calculatedText},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"renderedHtml",{get:function(){return this.textOrHtml},enumerable:!1,configurable:!0}),e.prototype.getLocaleText=function(e){return e||(e=this.defaultLoc),this.getValue(e)||""},e.prototype.getLocaleTextWithDefault=function(e){var t=this.getLocaleText(e);return!t&&this.onGetDefaultTextCallback?this.onGetDefaultTextCallback():t},e.prototype.setLocaleText=function(e,t){if(e=this.getValueLoc(e),this.storeDefaultText||t!=this.getLocaleTextWithDefault(e)){if(i.settings.localization.storeDuplicatedTranslations||!t||!e||e==this.defaultLoc||this.getValue(e)||t!=this.getLocaleText(this.defaultLoc)){var n=this.curLocale;e||(e=this.defaultLoc);var r=this.onStrChanged&&e===n?this.pureText:void 0;delete this.htmlValues[e],t?"string"==typeof t&&(this.canRemoveLocValue(e,t)?this.setLocaleText(e,null):(this.setValue(e,t),e==this.defaultLoc&&this.deleteValuesEqualsToDefault(t))):this.getValue(e)&&this.deleteValue(e),this.fireStrChanged(e,r)}}else{if(t||e&&e!==this.defaultLoc)return;var s=o.surveyLocalization.defaultLocale,a=this.getValue(s);s&&a&&(this.setValue(s,t),this.fireStrChanged(s,a))}},Object.defineProperty(e.prototype,"curLocale",{get:function(){return this.locale?this.locale:this.defaultLoc},enumerable:!1,configurable:!0}),e.prototype.canRemoveLocValue=function(e,t){if(i.settings.localization.storeDuplicatedTranslations)return!1;if(e===this.defaultLoc)return!1;var n=this.getRootDialect(e);if(n){var r=this.getLocaleText(n);return r?r==t:this.canRemoveLocValue(n,t)}return t==this.getLocaleText(this.defaultLoc)},e.prototype.fireStrChanged=function(e,t){if(this.strChanged(),this.onStrChanged){var n=this.pureText;e===this.curLocale&&t===n||this.onStrChanged(t,n)}},e.prototype.hasNonDefaultText=function(){var e=this.getValuesKeys();return 0!=e.length&&(e.length>1||e[0]!=this.defaultLoc)},e.prototype.getLocales=function(){var e=this.getValuesKeys();return 0==e.length?[]:e},e.prototype.getJson=function(){if(this.sharedData)return this.sharedData.getJson();var e=this.getValuesKeys();return 0==e.length?null:1!=e.length||e[0]!=i.settings.localization.defaultLocaleName||i.settings.serialization.localizableStringSerializeAsObject?this.values:this.values[e[0]]},e.prototype.setJson=function(e){if(this.sharedData)this.sharedData.setJson(e);else if(this.values={},this.htmlValues={},e){if("string"==typeof e)this.setLocaleText(null,e);else for(var t in e)this.setLocaleText(t,e[t]);this.strChanged()}},Object.defineProperty(e.prototype,"renderAs",{get:function(){return this.owner&&"function"==typeof this.owner.getRenderer&&this.owner.getRenderer(this.name)||e.defaultRenderer},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"renderAsData",{get:function(){return this.owner&&"function"==typeof this.owner.getRendererContext&&this.owner.getRendererContext(this)||this},enumerable:!1,configurable:!0}),e.prototype.equals=function(e){return this.sharedData?this.sharedData.equals(e):!(!e||!e.values)&&r.Helpers.isTwoValueEquals(this.values,e.values,!1,!0,!1)},e.prototype.setFindText=function(e){if(this.searchText!=e){if(this.searchText=e,!this.searchableText){var t=this.textOrHtml;this.searchableText=t?t.toLowerCase():""}var n=this.searchableText,r=n&&e?n.indexOf(e):void 0;return r<0&&(r=void 0),null==r&&this.searchIndex==r||(this.searchIndex=r,this.onSearchChanged&&this.onSearchChanged()),null!=this.searchIndex}},e.prototype.onChanged=function(){},e.prototype.onCreating=function(){},e.prototype.hasHtmlValue=function(){if(!this.owner||!this.useMarkdown)return!1;var e=this.locale;if(e||(e=this.defaultLoc),void 0!==this.htmlValues[e])return!!this.htmlValues[e];var t=this.calculatedText;if(!t)return!1;if(this.getLocalizationName()&&t===this.getLocalizationStr())return!1;var n=this.owner.getMarkdownHtml(t,this.name);return this.htmlValues[e]=n,!!n},e.prototype.getHtmlValue=function(){var e=this.locale;return e||(e=this.defaultLoc),this.htmlValues[e]},e.prototype.deleteValuesEqualsToDefault=function(e){if(!i.settings.localization.storeDuplicatedTranslations)for(var t=this.getValuesKeys(),n=0;n<t.length;n++)t[n]!=this.defaultLoc&&this.getValue(t[n])==e&&this.deleteValue(t[n])},e.prototype.getValue=function(e){return this.sharedData?this.sharedData.getValue(e):this.values[this.getValueLoc(e)]},e.prototype.setValue=function(e,t){this.sharedData?this.sharedData.setValue(e,t):this.values[this.getValueLoc(e)]=t},e.prototype.deleteValue=function(e){this.sharedData?this.sharedData.deleteValue(e):delete this.values[this.getValueLoc(e)]},e.prototype.getValueLoc=function(e){return this.disableLocalization?i.settings.localization.defaultLocaleName:e},e.prototype.getValuesKeys=function(){return this.sharedData?this.sharedData.getValuesKeys():Object.keys(this.values)},Object.defineProperty(e.prototype,"defaultLoc",{get:function(){return i.settings.localization.defaultLocaleName},enumerable:!1,configurable:!0}),e.SerializeAsObject=!1,e.defaultRenderer="sv-string-viewer",e.editableRenderer="sv-string-editor",e}(),l=function(){function e(e){this.owner=e,this.values={}}return e.prototype.getIsMultiple=function(){return!0},Object.defineProperty(e.prototype,"locale",{get:function(){return this.owner&&this.owner.getLocale?this.owner.getLocale():""},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"value",{get:function(){return this.getValue("")},set:function(e){this.setValue("",e)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"text",{get:function(){return Array.isArray(this.value)?this.value.join("\n"):""},set:function(e){this.value=e?e.split("\n"):[]},enumerable:!1,configurable:!0}),e.prototype.getLocaleText=function(e){var t=this.getValueCore(e,!e||e===this.locale);return t&&Array.isArray(t)&&0!=t.length?t.join("\n"):""},e.prototype.setLocaleText=function(e,t){var n=t?t.split("\n"):null;this.setValue(e,n)},e.prototype.getValue=function(e){return this.getValueCore(e)},e.prototype.getValueCore=function(e,t){if(void 0===t&&(t=!0),e=this.getLocale(e),this.values[e])return this.values[e];if(t){var n=i.settings.localization.defaultLocaleName;if(e!==n&&this.values[n])return this.values[n]}return[]},e.prototype.setValue=function(e,t){e=this.getLocale(e);var n=r.Helpers.createCopy(this.values);t&&0!=t.length?this.values[e]=t:delete this.values[e],this.onValueChanged&&this.onValueChanged(n,this.values)},e.prototype.hasValue=function(e){return void 0===e&&(e=""),!this.isEmpty&&this.getValue(e).length>0},Object.defineProperty(e.prototype,"isEmpty",{get:function(){return 0==this.getValuesKeys().length},enumerable:!1,configurable:!0}),e.prototype.getLocale=function(e){return e||(e=this.locale)||i.settings.localization.defaultLocaleName},e.prototype.getLocales=function(){var e=this.getValuesKeys();return 0==e.length?[]:e},e.prototype.getJson=function(){var e=this.getValuesKeys();return 0==e.length?null:1!=e.length||e[0]!=i.settings.localization.defaultLocaleName||i.settings.serialization.localizableStringSerializeAsObject?r.Helpers.createCopy(this.values):this.values[e[0]]},e.prototype.setJson=function(e){if(this.values={},e)if(Array.isArray(e))this.setValue(null,e);else for(var t in e)this.setValue(t,e[t])},e.prototype.getValuesKeys=function(){return Object.keys(this.values)},e}()},"./src/localization/english.ts":function(e,t,n){"use strict";n.r(t),n.d(t,"englishStrings",(function(){return r}));var r={pagePrevText:"Previous",pageNextText:"Next",completeText:"Complete",previewText:"Preview",editText:"Edit",startSurveyText:"Start",otherItemText:"Other (describe)",noneItemText:"None",selectAllItemText:"Select All",progressText:"Page {0} of {1}",indexText:"{0} of {1}",panelDynamicProgressText:"{0} of {1}",panelDynamicTabTextFormat:"Panel {panelIndex}",questionsProgressText:"Answered {0}/{1} questions",emptySurvey:"The survey doesn't contain visible pages or questions.",completingSurvey:"Thank you for completing the survey",completingSurveyBefore:"Our records show that 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.",numericError:"The value should be numeric.",minError:"The value should not be less than {0}",maxError:"The value should not be greater than {0}",textMinLength:"Please enter at least {0} character(s).",textMaxLength:"Please enter no more than {0} character(s).",textMinMaxLength:"Please enter at least {0} and no more than {1} characters.",minRowCountError:"Please fill in at least {0} row(s).",minSelectError:"Please select at least {0} variant(s).",maxSelectError:"Please select no more than {0} variant(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}.",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 chosen",fileDragAreaPlaceholder:"Drag and drop a file here or click the button below and choose a file to upload.",confirmDelete:"Do you want to delete the 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",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!",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",chooseFileCaption:"Choose file",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:"There are no entries yet.\nClick the button below to add a new entry.",noEntriesReadonlyText:"There are no entries.",more:"More",tagboxDoneButtonCaption:"OK",selectToRankEmptyRankedAreaText:"All choices are ranked",selectToRankEmptyUnrankedAreaText:"Drag and drop choices here to rank them"}},"./src/martixBase.ts":function(e,t,n){"use strict";n.r(t),n.d(t,"QuestionMatrixBaseModel",(function(){return d}));var r,o=n("./src/itemvalue.ts"),i=n("./src/question.ts"),s=n("./src/jsonobject.ts"),a=n("./src/conditions.ts"),l=n("./src/helpers.ts"),u=n("./src/utils/cssClassBuilder.ts"),c=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),p=function(e,t,n,r){var o,i=arguments.length,s=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,r);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(i<3?o(s):i>3?o(t,n,s):o(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},d=function(e){function t(t){var n=e.call(this,t)||this;return n.generatedVisibleRows=null,n.generatedTotalRow=null,n.filteredRows=null,n.filteredColumns=null,n.columns=n.createColumnValues(),n.rows=n.createItemValues("rows"),n}return c(t,e),t.prototype.createColumnValues=function(){return this.createItemValues("columns")},t.prototype.getType=function(){return"matrixbase"},t.prototype.endLoadingFromJson=function(){e.prototype.endLoadingFromJson.call(this),this.updateVisibilityBasedOnRows()},Object.defineProperty(t.prototype,"isCompositeQuestion",{get:function(){return!0},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"showHeader",{get:function(){return this.getPropertyValue("showHeader")},set:function(e){this.setPropertyValue("showHeader",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"columns",{get:function(){return this.getPropertyValue("columns")},set:function(e){this.setPropertyValue("columns",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"visibleColumns",{get:function(){return this.filteredColumns?this.filteredColumns:this.columns},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"rows",{get:function(){return this.getPropertyValue("rows")},set:function(e){var t=this.processRowsOnSet(e);this.setPropertyValue("rows",t),this.filterItems()},enumerable:!1,configurable:!0}),t.prototype.processRowsOnSet=function(e){return e},t.prototype.getVisibleRows=function(){return[]},Object.defineProperty(t.prototype,"visibleRows",{get:function(){return this.getVisibleRows()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"rowsVisibleIf",{get:function(){return this.getPropertyValue("rowsVisibleIf","")},set:function(e){this.setPropertyValue("rowsVisibleIf",e),this.filterItems()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"columnsVisibleIf",{get:function(){return this.getPropertyValue("columnsVisibleIf","")},set:function(e){this.setPropertyValue("columnsVisibleIf",e),this.filterItems()},enumerable:!1,configurable:!0}),t.prototype.runCondition=function(t,n){e.prototype.runCondition.call(this,t,n),this.runItemsCondition(t,n)},t.prototype.filterItems=function(){return this.areInvisibleElementsShowing?(this.onRowsChanged(),!1):!(this.isLoadingFromJson||!this.data)&&this.runItemsCondition(this.getDataFilteredValues(),this.getDataFilteredProperties())},t.prototype.onColumnsChanged=function(){},t.prototype.onRowsChanged=function(){this.updateVisibilityBasedOnRows(),this.fireCallback(this.visibleRowsChangedCallback)},t.prototype.updateVisibilityBasedOnRows=function(){this.hideIfRowsEmpty&&(this.visible=this.rows.length>0&&(!this.filteredRows||this.filteredRows.length>0))},t.prototype.shouldRunColumnExpression=function(){return!this.survey||!this.survey.areInvisibleElementsShowing},t.prototype.hasRowsAsItems=function(){return!0},t.prototype.runItemsCondition=function(e,t){var n=null;if(this.filteredRows&&!l.Helpers.isValueEmpty(this.defaultValue)){n=[];for(var r=0;r<this.filteredRows.length;r++)n.push(this.filteredRows[r])}var o=this.hasRowsAsItems()&&this.runConditionsForRows(e,t),i=this.runConditionsForColumns(e,t);return(o=i||o)&&(this.isClearValueOnHidden&&(this.filteredColumns||this.filteredRows)&&this.clearIncorrectValues(),n&&this.restoreNewVisibleRowsValues(n),this.clearGeneratedRows(),i&&this.onColumnsChanged(),this.onRowsChanged()),o},t.prototype.clearGeneratedRows=function(){this.generatedVisibleRows=null},t.prototype.runConditionsForRows=function(e,t){var n=!!this.survey&&this.survey.areInvisibleElementsShowing,r=!n&&this.rowsVisibleIf?new a.ConditionRunner(this.rowsVisibleIf):null;this.filteredRows=[];var i=o.ItemValue.runConditionsForItems(this.rows,this.filteredRows,r,e,t,!n);return this.filteredRows.length===this.rows.length&&(this.filteredRows=null),i},t.prototype.runConditionsForColumns=function(e,t){var n=this.survey&&!this.survey.areInvisibleElementsShowing&&this.columnsVisibleIf?new a.ConditionRunner(this.columnsVisibleIf):null;this.filteredColumns=[];var r=o.ItemValue.runConditionsForItems(this.columns,this.filteredColumns,n,e,t,this.shouldRunColumnExpression());return this.filteredColumns.length===this.columns.length&&(this.filteredColumns=null),r},t.prototype.clearIncorrectValues=function(){var t=this.value;if(t){var n=null,r=!1,i=this.filteredRows?this.filteredRows:this.rows,s=this.filteredColumns?this.filteredColumns:this.columns;for(var a in t)o.ItemValue.getItemByValue(i,a)&&o.ItemValue.getItemByValue(s,t[a])?(null==n&&(n={}),n[a]=t[a]):r=!0;r&&(this.value=n),e.prototype.clearIncorrectValues.call(this)}},t.prototype.clearInvisibleValuesInRows=function(){if(!this.isEmpty()){for(var e=this.getUnbindValue(this.value),t=this.rows,n=0;n<t.length;n++){var r=t[n].value;e[r]&&!t[n].isVisible&&delete e[r]}this.isTwoValueEquals(e,this.value)||(this.value=e)}},t.prototype.restoreNewVisibleRowsValues=function(e){var t=this.filteredRows?this.filteredRows:this.rows,n=this.defaultValue,r=this.getUnbindValue(this.value),i=!1;for(var s in n)o.ItemValue.getItemByValue(t,s)&&!o.ItemValue.getItemByValue(e,s)&&(null==r&&(r={}),r[s]=n[s],i=!0);i&&(this.value=r)},t.prototype.needResponsiveWidth=function(){return!0},t.prototype.getTableCss=function(){return(new u.CssClassBuilder).append(this.cssClasses.root).append(this.cssClasses.rootAlternateRows,this.alternateRows).append(this.cssClasses.rootVerticalAlignTop,"top"===this.verticalAlign).append(this.cssClasses.rootVerticalAlignMiddle,"middle"===this.verticalAlign).toString()},Object.defineProperty(t.prototype,"columnMinWidth",{get:function(){return this.getPropertyValue("columnMinWidth","")},set:function(e){this.setPropertyValue("columnMinWidth",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"rowTitleWidth",{get:function(){return this.getPropertyValue("rowTitleWidth","")},set:function(e){this.setPropertyValue("rowTitleWidth",e)},enumerable:!1,configurable:!0}),p([Object(s.property)({defaultValue:"middle"})],t.prototype,"verticalAlign",void 0),p([Object(s.property)()],t.prototype,"alternateRows",void 0),t}(i.Question);s.Serializer.addClass("matrixbase",[{name:"showCommentArea:switch",layout:"row",visible:!0,category:"general"},"columnsVisibleIf:condition","rowsVisibleIf:condition","columnMinWidth",{name:"showHeader:boolean",default:!0},{name:"verticalAlign",choices:["top","middle"],default:"middle"},{name:"alternateRows:boolean",default:!1}],void 0,"question")},"./src/multiSelectListModel.ts":function(e,t,n){"use strict";n.r(t),n.d(t,"MultiSelectListModel",(function(){return a}));var r,o=n("./src/jsonobject.ts"),i=n("./src/list.ts"),s=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),a=function(e){function t(t,n,r,o,i,s){var a=e.call(this,t,n,r,void 0,i,s)||this;return a.onItemClick=function(e){a.isItemDisabled(e)||(a.isExpanded=!1,a.isItemSelected(e)?(a.selectedItems.splice(a.selectedItems.indexOf(e),1)[0],a.onSelectionChanged&&a.onSelectionChanged(e,"removed")):(a.selectedItems.push(e),a.onSelectionChanged&&a.onSelectionChanged(e,"added")))},a.isItemDisabled=function(e){return void 0!==e.enabled&&!e.enabled},a.isItemSelected=function(e){return!!a.allowSelection&&a.selectedItems.filter((function(t){return a.areSameItems(t,e)})).length>0},a.setSelectedItems(o||[]),a}return s(t,e),t.prototype.updateItemState=function(){var e=this;this.actions.forEach((function(t){var n=e.isItemSelected(t);t.visible=!e.hideSelectedItems||!n}))},t.prototype.updateState=function(){var e=this;this.updateItemState(),this.isEmpty=0===this.renderedActions.filter((function(t){return e.isItemVisible(t)})).length},t.prototype.setSelectedItems=function(e){this.selectedItems=e,this.updateState()},t.prototype.selectFocusedItem=function(){e.prototype.selectFocusedItem.call(this),this.hideSelectedItems&&this.focusNextVisibleItem()},function(e,t,n,r){var o,i=arguments.length,s=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,r);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(i<3?o(s):i>3?o(t,n,s):o(t,n))||s);i>3&&s&&Object.defineProperty(t,n,s)}([Object(o.property)()],t.prototype,"hideSelectedItems",void 0),t}(i.ListModel)},"./src/notifier.ts":function(e,t,n){"use strict";n.r(t),n.d(t,"Notifier",(function(){return p}));var r,o=n("./src/base.ts"),i=n("./src/settings.ts"),s=n("./src/jsonobject.ts"),a=n("./src/utils/cssClassBuilder.ts"),l=n("./src/actions/container.ts"),u=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),c=function(e,t,n,r){var o,i=arguments.length,s=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,r);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(i<3?o(s):i>3?o(t,n,s):o(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},p=function(e){function t(t){var n=e.call(this)||this;return n.cssClasses=t,n.timeout=i.settings.notifications.lifetime,n.timer=void 0,n.actionsVisibility={},n.actionBar=new l.ActionContainer,n.actionBar.updateCallback=function(e){n.actionBar.actions.forEach((function(e){return e.cssClasses={}}))},n.css=n.cssClasses.root,n}return u(t,e),t.prototype.getCssClass=function(e){return(new a.CssClassBuilder).append(this.cssClasses.root).append(this.cssClasses.info,"error"!==e&&"success"!==e).append(this.cssClasses.error,"error"===e).append(this.cssClasses.success,"success"===e).append(this.cssClasses.shown,this.active).toString()},t.prototype.updateActionsVisibility=function(e){var t=this;this.actionBar.actions.forEach((function(n){return n.visible=t.actionsVisibility[n.id]===e}))},t.prototype.notify=function(e,t,n){var r=this;void 0===t&&(t="info"),void 0===n&&(n=!1),this.isDisplayed=!0,setTimeout((function(){r.updateActionsVisibility(t),r.message=e,r.active=!0,r.css=r.getCssClass(t),r.timer&&(clearTimeout(r.timer),r.timer=void 0),n||(r.timer=setTimeout((function(){r.timer=void 0,r.active=!1,r.css=r.getCssClass(t)}),r.timeout))}),1)},t.prototype.addAction=function(e,t){e.visible=!1,e.innerCss=this.cssClasses.button;var n=this.actionBar.addAction(e);this.actionsVisibility[n.id]=t},c([Object(s.property)({defaultValue:!1})],t.prototype,"active",void 0),c([Object(s.property)({defaultValue:!1})],t.prototype,"isDisplayed",void 0),c([Object(s.property)()],t.prototype,"message",void 0),c([Object(s.property)()],t.prototype,"css",void 0),t}(o.Base)},"./src/page.ts":function(e,t,n){"use strict";n.r(t),n.d(t,"PageModel",(function(){return u}));var r,o=n("./src/jsonobject.ts"),i=n("./src/panel.ts"),s=n("./src/utils/cssClassBuilder.ts"),a=n("./src/drag-drop-page-helper-v1.ts"),l=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),u=function(e){function t(t){void 0===t&&(t="");var n=e.call(this,t)||this;return n.hasShownValue=!1,n.timeSpent=0,n.locTitle.onGetTextCallback=function(e){return n.canShowPageNumber()&&e?n.num+". "+e:e},n.createLocalizableString("navigationTitle",n,!0),n.createLocalizableString("navigationDescription",n,!0),n.dragDropPageHelper=new a.DragDropPageHelperV1(n),n}return l(t,e),t.prototype.getType=function(){return"page"},t.prototype.toString=function(){return this.name},Object.defineProperty(t.prototype,"isPage",{get:function(){return!0},enumerable:!1,configurable:!0}),t.prototype.canShowPageNumber=function(){return this.survey&&this.survey.showPageNumbers},t.prototype.canShowTitle=function(){return this.survey&&this.survey.showPageTitles},Object.defineProperty(t.prototype,"navigationTitle",{get:function(){return this.getLocalizableStringText("navigationTitle")},set:function(e){this.setLocalizableStringText("navigationTitle",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locNavigationTitle",{get:function(){return this.getLocalizableString("navigationTitle")},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.strChanged(),this.locNavigationDescription.strChanged()},Object.defineProperty(t.prototype,"passed",{get:function(){return this.getPropertyValue("passed",!1)},set:function(e){this.setPropertyValue("passed",e)},enumerable:!1,configurable:!0}),t.prototype.removeFromParent=function(){this.survey&&this.removeSelfFromList(this.survey.pages)},t.prototype.onFirstRendering=function(){this.wasShown||e.prototype.onFirstRendering.call(this)},Object.defineProperty(t.prototype,"visibleIndex",{get:function(){return this.getPropertyValue("visibleIndex",-1)},set:function(e){this.setPropertyValue("visibleIndex",e)},enumerable:!1,configurable:!0}),t.prototype.canRenderFirstRows=function(){return!this.isDesignMode||0==this.visibleIndex},Object.defineProperty(t.prototype,"isStartPage",{get:function(){return this.survey&&this.survey.isPageStarted(this)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isStarted",{get:function(){return this.isStartPage},enumerable:!1,configurable:!0}),t.prototype.calcCssClasses=function(e){var t={page:{},pageTitle:"",pageDescription:"",row:"",rowMultiple:"",pageRow:"",rowCompact:""};return this.copyCssClasses(t.page,e.page),e.pageTitle&&(t.pageTitle=e.pageTitle),e.pageDescription&&(t.pageDescription=e.pageDescription),e.row&&(t.row=e.row),e.pageRow&&(t.pageRow=e.pageRow),e.rowMultiple&&(t.rowMultiple=e.rowMultiple),e.rowCompact&&(t.rowCompact=e.rowCompact),this.survey&&this.survey.updatePageCssClasses(this,t),t},Object.defineProperty(t.prototype,"cssTitle",{get:function(){return this.cssClasses.page?(new s.CssClassBuilder).append(this.cssClasses.page.title).toString():""},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"cssRoot",{get:function(){return this.cssClasses.page&&this.survey?(new s.CssClassBuilder).append(this.cssClasses.page.root).append(this.cssClasses.page.emptyHeaderRoot,!(this.survey.renderedHasHeader||this.survey.isShowProgressBarOnTop&&!this.survey.isStaring)).toString():""},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"navigationButtonsVisibility",{get:function(){return this.getPropertyValue("navigationButtonsVisibility")},set:function(e){this.setPropertyValue("navigationButtonsVisibility",e.toLowerCase())},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isActive",{get:function(){return!!this.survey&&this.survey.currentPage===this},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"wasShown",{get:function(){return this.hasShownValue},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hasShown",{get:function(){return this.wasShown},enumerable:!1,configurable:!0}),t.prototype.setWasShown=function(e){if(e!=this.hasShownValue&&(this.hasShownValue=e,!this.isDesignMode&&!0===e)){for(var t=this.elements,n=0;n<t.length;n++)t[n].isPanel&&t[n].randomizeElements(this.areQuestionsRandomized);this.randomizeElements(this.areQuestionsRandomized)}},t.prototype.scrollToTop=function(){this.survey&&this.survey.scrollElementToTop(this,null,this,this.id)},t.prototype.getAllPanels=function(e,t){void 0===e&&(e=!1),void 0===t&&(t=!1);var n=new Array;return this.addPanelsIntoList(n,e,t),n},t.prototype.getPanels=function(e,t){return void 0===e&&(e=!1),void 0===t&&(t=!1),this.getAllPanels(e,t)},Object.defineProperty(t.prototype,"maxTimeToFinish",{get:function(){return this.getPropertyValue("maxTimeToFinish",0)},set:function(e){this.setPropertyValue("maxTimeToFinish",e)},enumerable:!1,configurable:!0}),t.prototype.onNumChanged=function(e){},t.prototype.onVisibleChanged=function(){this.isRandomizing||(e.prototype.onVisibleChanged.call(this),null!=this.survey&&this.survey.pageVisibilityChanged(this,this.isVisible))},t.prototype.getDragDropInfo=function(){return this.dragDropPageHelper.getDragDropInfo()},t.prototype.dragDropStart=function(e,t,n){void 0===n&&(n=-1),this.dragDropPageHelper.dragDropStart(e,t,n)},t.prototype.dragDropMoveTo=function(e,t,n){return void 0===t&&(t=!1),void 0===n&&(n=!1),this.dragDropPageHelper.dragDropMoveTo(e,t,n)},t.prototype.dragDropFinish=function(e){return void 0===e&&(e=!1),this.dragDropPageHelper.dragDropFinish(e)},t.prototype.ensureRowsVisibility=function(){e.prototype.ensureRowsVisibility.call(this),this.getPanels().forEach((function(e){return e.ensureRowsVisibility()}))},function(e,t,n,r){var o,i=arguments.length,s=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,r);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(i<3?o(s):i>3?o(t,n,s):o(t,n))||s);i>3&&s&&Object.defineProperty(t,n,s)}([Object(o.property)({defaultValue:-1,onSet:function(e,t){return t.onNumChanged(e)}})],t.prototype,"num",void 0),t}(i.PanelModelBase);o.Serializer.addClass("page",[{name:"navigationButtonsVisibility",default:"inherit",choices:["inherit","show","hide"]},{name:"maxTimeToFinish:number",default:0,minValue:0},{name:"navigationTitle",visibleIf:function(e){return!!e.survey&&("buttons"===e.survey.progressBarType||e.survey.showTOC)},serializationProperty:"locNavigationTitle"},{name:"navigationDescription",visibleIf:function(e){return!!e.survey&&"buttons"===e.survey.progressBarType},serializationProperty:"locNavigationDescription"},{name:"title:text",serializationProperty:"locTitle"},{name:"description:text",serializationProperty:"locDescription"}],(function(){return new u}),"panelbase")},"./src/panel.ts":function(e,t,n){"use strict";n.r(t),n.d(t,"QuestionRowModel",(function(){return y})),n.d(t,"PanelModelBase",(function(){return v})),n.d(t,"PanelModel",(function(){return b}));var r,o=n("./src/jsonobject.ts"),i=n("./src/helpers.ts"),s=n("./src/base.ts"),a=n("./src/survey-element.ts"),l=n("./src/question.ts"),u=n("./src/questionfactory.ts"),c=n("./src/error.ts"),p=n("./src/settings.ts"),d=n("./src/utils/utils.ts"),h=n("./src/utils/cssClassBuilder.ts"),f=n("./src/drag-drop-panel-helper-v1.ts"),m=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),g=function(e,t,n,r){var o,i=arguments.length,s=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,r);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(i<3?o(s):i>3?o(t,n,s):o(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},y=function(e){function t(n){var r=e.call(this)||this;return r.panel=n,r._scrollableParent=void 0,r._updateVisibility=void 0,r.idValue=t.getRowId(),r.visible=n.areInvisibleElementsShowing,r.createNewArray("elements"),r.createNewArray("visibleElements"),r}return m(t,e),t.getRowId=function(){return"pr_"+t.rowCounter++},t.prototype.startLazyRendering=function(e,t){var n=this;void 0===t&&(t=d.findScrollableParent),this._scrollableParent=t(e),this._scrollableParent===document.documentElement&&(this._scrollableParent=window);var r=this._scrollableParent.scrollHeight>this._scrollableParent.clientHeight;this.isNeedRender=!r,r&&(this._updateVisibility=function(){var t=Object(d.isElementVisible)(e,50);!n.isNeedRender&&t&&(n.isNeedRender=!0,n.stopLazyRendering())},setTimeout((function(){n._scrollableParent&&n._scrollableParent.addEventListener&&n._scrollableParent.addEventListener("scroll",n._updateVisibility),n.ensureVisibility()}),10))},t.prototype.ensureVisibility=function(){this._updateVisibility&&this._updateVisibility()},t.prototype.stopLazyRendering=function(){this._scrollableParent&&this._updateVisibility&&this._scrollableParent.removeEventListener&&this._scrollableParent.removeEventListener("scroll",this._updateVisibility),this._scrollableParent=void 0,this._updateVisibility=void 0},t.prototype.setIsLazyRendering=function(e){this.isLazyRenderingValue=e,this.isNeedRender=!e},t.prototype.isLazyRendering=function(){return!0===this.isLazyRenderingValue},Object.defineProperty(t.prototype,"id",{get:function(){return this.idValue},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"elements",{get:function(){return this.getPropertyValue("elements")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"visibleElements",{get:function(){return this.getPropertyValue("visibleElements")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"visible",{get:function(){return this.getPropertyValue("visible",!0)},set:function(e){this.setPropertyValue("visible",e)},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(){var e=this.calcVisible();this.setWidth(),this.visible=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(){var e,t=this.visibleElements.length;if(0!=t){for(var n=1===this.visibleElements.length,r=0,o=[],i=0;i<this.elements.length;i++)if((a=this.elements[i]).isVisible){a.isSingleInRow=n;var s=this.getElementWidth(a);s&&(a.renderWidth=this.getRenderedWidthFromWidth(s),o.push(a)),r<t-1&&!this.panel.isDefaultV2Theme&&!(null===(e=this.panel.parentQuestion)||void 0===e?void 0:e.isDefaultV2Theme)?a.rightIndent=1:a.rightIndent=0,r++}else a.renderWidth="";for(i=0;i<this.elements.length;i++){var a;!(a=this.elements[i]).isVisible||o.indexOf(a)>-1||(0==o.length?a.renderWidth=Number.parseFloat((100/t).toFixed(6))+"%":a.renderWidth=this.getRenderedCalcWidth(a,o,t))}}},t.prototype.getRenderedCalcWidth=function(e,t,n){for(var r="100%",o=0;o<t.length;o++)r+=" - "+t[o].renderWidth;var i=n-t.length;return i>1&&(r="("+r+")/"+i.toString()),"calc("+r+")"},t.prototype.getElementWidth=function(e){var t=e.width;return t&&"string"==typeof t?t.trim():""},t.prototype.getRenderedWidthFromWidth=function(e){return i.Helpers.isNumber(e)?e+"px":e},t.prototype.calcVisible=function(){for(var e=[],t=0;t<this.elements.length;t++)this.elements[t].isVisible&&e.push(this.elements[t]);return this.needToUpdateVisibleElements(e)&&this.setPropertyValue("visibleElements",e),e.length>0},t.prototype.needToUpdateVisibleElements=function(e){if(e.length!==this.visibleElements.length)return!0;for(var t=0;t<e.length;t++)if(e[t]!==this.visibleElements[t])return!0;return!1},t.prototype.dispose=function(){e.prototype.dispose.call(this),this.stopLazyRendering()},t.prototype.getRowCss=function(){return(new h.CssClassBuilder).append(this.panel.cssClasses.row).append(this.panel.cssClasses.rowCompact,this.panel.isCompact).append(this.panel.cssClasses.pageRow,this.panel.isPage||!!this.panel.originalPage&&!this.panel.survey.isShowingPreview).append(this.panel.cssClasses.rowMultiple,this.visibleElements.length>1).toString()},t.rowCounter=100,g([Object(o.property)({defaultValue:null})],t.prototype,"dragTypeOverMe",void 0),t}(s.Base),v=function(e){function t(n){void 0===n&&(n="");var r=e.call(this,n)||this;return r.isQuestionsReady=!1,r.questionsValue=new Array,r.isRandomizing=!1,r.createNewArray("rows"),r.elementsValue=r.createNewArray("elements",r.onAddElement.bind(r),r.onRemoveElement.bind(r)),r.id=t.getPanelId(),r.addExpressionProperty("visibleIf",(function(e,t){r.visible=!0===t}),(function(e){return!r.areInvisibleElementsShowing})),r.addExpressionProperty("enableIf",(function(e,t){r.readOnly=!1===t})),r.addExpressionProperty("requiredIf",(function(e,t){r.isRequired=!0===t})),r.createLocalizableString("requiredErrorText",r),r.registerPropertyChangedHandlers(["questionTitleLocation"],(function(){r.onVisibleChanged.bind(r),r.updateElementCss(!0)})),r.registerPropertyChangedHandlers(["questionStartIndex","showQuestionNumbers"],(function(){r.updateVisibleIndexes()})),r.dragDropPanelHelper=new f.DragDropPanelHelperV1(r),r}return m(t,e),t.getPanelId=function(){return"sp_"+t.panelCounter++},t.prototype.getType=function(){return"panelbase"},t.prototype.setSurveyImpl=function(t,n){e.prototype.setSurveyImpl.call(this,t,n),this.isDesignMode&&this.onVisibleChanged();for(var r=0;r<this.elements.length;r++)this.elements[r].setSurveyImpl(t,n)},t.prototype.endLoadingFromJson=function(){e.prototype.endLoadingFromJson.call(this),this.updateDescriptionVisibility(this.description),this.markQuestionListDirty(),this.onRowsChanged()},Object.defineProperty(t.prototype,"hasTitle",{get:function(){return this.canShowTitle()&&this.locTitle.textOrHtml.length>0||this.showTitle&&this.isDesignMode&&p.settings.designMode.showEmptyTitles},enumerable:!1,configurable:!0}),t.prototype.delete=function(){this.removeFromParent(),this.dispose()},t.prototype.removeFromParent=function(){},t.prototype.canShowTitle=function(){return!0},Object.defineProperty(t.prototype,"_showDescription",{get:function(){return this.survey&&this.survey.showPageTitles&&this.hasDescription||this.showDescription&&this.isDesignMode&&p.settings.designMode.showEmptyTitles&&p.settings.designMode.showEmptyDescriptions},enumerable:!1,configurable:!0}),t.prototype.localeChanged=function(){e.prototype.localeChanged.call(this);for(var t=0;t<this.elements.length;t++)this.elements[t].localeChanged()},t.prototype.locStrsChanged=function(){e.prototype.locStrsChanged.call(this);for(var t=0;t<this.elements.length;t++)this.elements[t].locStrsChanged()},Object.defineProperty(t.prototype,"requiredText",{get:function(){return this.survey&&this.isRequired?this.survey.requiredText:""},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"titlePattern",{get:function(){return this.survey?this.survey.questionTitlePattern:"numTitleRequire"},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isRequireTextOnStart",{get:function(){return this.isRequired&&"requireNumTitle"==this.titlePattern},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isRequireTextBeforeTitle",{get:function(){return this.isRequired&&"numRequireTitle"==this.titlePattern},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isRequireTextAfterTitle",{get:function(){return this.isRequired&&"numTitleRequire"==this.titlePattern},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"requiredErrorText",{get:function(){return this.getLocalizableStringText("requiredErrorText")},set:function(e){this.setLocalizableStringText("requiredErrorText",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locRequiredErrorText",{get:function(){return this.getLocalizableString("requiredErrorText")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"questionsOrder",{get:function(){return this.getPropertyValue("questionsOrder")},set:function(e){this.setPropertyValue("questionsOrder",e)},enumerable:!1,configurable:!0}),t.prototype.canRandomize=function(e){return e&&"initial"!==this.questionsOrder||"random"===this.questionsOrder},t.prototype.randomizeElements=function(e){if(this.canRandomize(e)&&!this.isRandomizing){this.isRandomizing=!0;for(var t=[],n=this.elements,r=0;r<n.length;r++)t.push(n[r]);var o=i.Helpers.randomizeArray(t);this.setArrayPropertyDirectly("elements",o,!1),this.updateRows(),this.updateVisibleIndexes(),this.isRandomizing=!1}},Object.defineProperty(t.prototype,"areQuestionsRandomized",{get:function(){return"random"==("default"==this.questionsOrder&&this.survey?this.survey.questionsOrder:this.questionsOrder)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"parent",{get:function(){return this.getPropertyValue("parent",null)},set:function(e){this.setPropertyValue("parent",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"depth",{get:function(){return null==this.parent?0:this.parent.depth+1},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"visibleIf",{get:function(){return this.getPropertyValue("visibleIf","")},set:function(e){this.setPropertyValue("visibleIf",e)},enumerable:!1,configurable:!0}),t.prototype.calcCssClasses=function(e){var t={panel:{},error:{},row:"",rowMultiple:"",pageRow:"",rowCompact:""};return this.copyCssClasses(t.panel,e.panel),this.copyCssClasses(t.error,e.error),e.pageRow&&(t.pageRow=e.pageRow),e.rowCompact&&(t.rowCompact=e.rowCompact),e.row&&(t.row=e.row),e.rowMultiple&&(t.rowMultiple=e.rowMultiple),this.survey&&this.survey.updatePanelCssClasses(this,t),t},Object.defineProperty(t.prototype,"id",{get:function(){return this.getPropertyValue("id")},set:function(e){this.setPropertyValue("id",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isPanel",{get:function(){return!1},enumerable:!1,configurable:!0}),t.prototype.getPanel=function(){return this},t.prototype.getLayoutType=function(){return"row"},t.prototype.isLayoutTypeSupported=function(e){return"flow"!==e},Object.defineProperty(t.prototype,"questions",{get:function(){if(!this.isQuestionsReady){this.questionsValue=[];for(var e=0;e<this.elements.length;e++){var t=this.elements[e];if(t.isPanel)for(var n=t.questions,r=0;r<n.length;r++)this.questionsValue.push(n[r]);else this.questionsValue.push(t)}this.isQuestionsReady=!0}return this.questionsValue},enumerable:!1,configurable:!0}),t.prototype.getQuestions=function(e){var t=this.questions;if(!e)return t;var n=[];return t.forEach((function(e){n.push(e),e.getNestedQuestions().forEach((function(e){return n.push(e)}))})),n},t.prototype.getValidName=function(e){return e?e.trim():e},t.prototype.getQuestionByName=function(e){for(var t=this.questions,n=0;n<t.length;n++)if(t[n].name==e)return t[n];return null},t.prototype.getElementByName=function(e){for(var t=this.elements,n=0;n<t.length;n++){var r=t[n];if(r.name==e)return r;var o=r.getPanel();if(o){var i=o.getElementByName(e);if(i)return i}}return null},t.prototype.getQuestionByValueName=function(e){for(var t=this.questions,n=0;n<t.length;n++)if(t[n].getValueName()==e)return t[n];return null},t.prototype.getValue=function(){var e={};return this.collectValues(e,0),e},t.prototype.collectValues=function(e,t){var n=this.elements;0===t&&(n=this.questions);for(var r=0;r<n.length;r++){var o=n[r];if(o.isPanel||o.isPage){var i={};o.collectValues(i,t-1)&&(e[o.name]=i)}else{var a=o;if(!a.isEmpty()){var l=a.getValueName();if(e[l]=a.value,this.data){var u=this.data.getComment(l);u&&(e[l+s.Base.commentSuffix]=u)}}}}return!0},t.prototype.getDisplayValue=function(e){for(var t={},n=this.questions,r=0;r<n.length;r++){var o=n[r];o.isEmpty()||(t[e?o.title:o.getValueName()]=o.getDisplayValue(e))}return t},t.prototype.getComments=function(){var e={};if(!this.data)return e;for(var t=this.questions,n=0;n<t.length;n++){var r=t[n],o=this.data.getComment(r.getValueName());o&&(e[r.getValueName()]=o)}return e},t.prototype.clearIncorrectValues=function(){for(var e=0;e<this.elements.length;e++)this.elements[e].clearIncorrectValues()},t.prototype.clearErrors=function(){for(var e=0;e<this.elements.length;e++)this.elements[e].clearErrors();this.errors=[]},t.prototype.markQuestionListDirty=function(){this.isQuestionsReady=!1,this.parent&&this.parent.markQuestionListDirty()},Object.defineProperty(t.prototype,"elements",{get:function(){return this.elementsValue},enumerable:!1,configurable:!0}),t.prototype.getElementsInDesign=function(e){return void 0===e&&(e=!1),this.elements},t.prototype.containsElement=function(e){for(var t=0;t<this.elements.length;t++){var n=this.elements[t];if(n==e)return!0;var r=n.getPanel();if(r&&r.containsElement(e))return!0}return!1},Object.defineProperty(t.prototype,"isRequired",{get:function(){return this.getPropertyValue("isRequired")},set:function(e){this.setPropertyValue("isRequired",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"requiredIf",{get:function(){return this.getPropertyValue("requiredIf","")},set:function(e){this.setPropertyValue("requiredIf",e)},enumerable:!1,configurable:!0}),t.prototype.searchText=function(t,n){e.prototype.searchText.call(this,t,n);for(var r=0;r<this.elements.length;r++)this.elements[r].searchText(t,n)},t.prototype.hasErrors=function(e,t,n){return void 0===e&&(e=!0),void 0===t&&(t=!1),void 0===n&&(n=null),!this.validate(e,t,n)},t.prototype.validate=function(e,t,n){return void 0===e&&(e=!0),void 0===t&&(t=!1),void 0===n&&(n=null),!0!==(n=n||{fireCallback:e,focuseOnFirstError:t,firstErrorQuestion:null,result:!1}).result&&(n.result=!1),this.hasErrorsCore(n),n.firstErrorQuestion&&n.firstErrorQuestion.focus(!0),!n.result},t.prototype.validateContainerOnly=function(){this.hasErrorsInPanels({fireCallback:!0}),this.parent&&this.parent.validateContainerOnly()},t.prototype.hasErrorsInPanels=function(e){var t=[];if(this.hasRequiredError(e,t),this.survey){var n=this.survey.validatePanel(this);n&&(t.push(n),e.result=!0)}e.fireCallback&&(this.survey&&this.survey.beforeSettingPanelErrors(this,t),this.errors=t)},t.prototype.getErrorCustomText=function(e,t){return this.survey?this.survey.getSurveyErrorCustomText(this,e,t):e},t.prototype.hasRequiredError=function(e,t){if(this.isRequired){var n=[];if(this.addQuestionsToList(n,!0),0!=n.length){for(var r=0;r<n.length;r++)if(!n[r].isEmpty())return;e.result=!0,t.push(new c.OneAnswerRequiredError(this.requiredErrorText,this)),e.focuseOnFirstError&&!e.firstErrorQuestion&&(e.firstErrorQuestion=n[0])}}},t.prototype.hasErrorsCore=function(e){for(var t=this.elements,n=null,r=0;r<t.length;r++)if((n=t[r]).isVisible)if(n.isPanel)n.hasErrorsCore(e);else{var o=n;if(o.isReadOnly)continue;o.validate(e.fireCallback,e)||(e.focuseOnFirstError&&null==e.firstErrorQuestion&&(e.firstErrorQuestion=o),e.result=!0)}this.hasErrorsInPanels(e),this.updateContainsErrors()},t.prototype.getContainsErrors=function(){var t=e.prototype.getContainsErrors.call(this);if(t)return t;for(var n=this.elements,r=0;r<n.length;r++)if(n[r].containsErrors)return!0;return!1},t.prototype.updateElementVisibility=function(){for(var e=0;e<this.elements.length;e++){var t=this.elements[e];t.setPropertyValue("isVisible",t.isVisible),t.isPanel&&t.updateElementVisibility()}},t.prototype.getFirstQuestionToFocus=function(e,t){if(void 0===e&&(e=!1),void 0===t&&(t=!1),!e&&!t&&this.isCollapsed)return null;for(var n=this.elements,r=0;r<n.length;r++){var o=n[r];if(o.isVisible&&(t||!o.isCollapsed))if(o.isPanel){var i=o.getFirstQuestionToFocus(e,t);if(i)return i}else{var s=o.getFirstQuestionToFocus(e);if(s)return s}}return null},t.prototype.focusFirstQuestion=function(){var e=this.getFirstQuestionToFocus();e&&e.focus()},t.prototype.focusFirstErrorQuestion=function(){var e=this.getFirstQuestionToFocus(!0);e&&e.focus()},t.prototype.addQuestionsToList=function(e,t,n){void 0===t&&(t=!1),void 0===n&&(n=!1),this.addElementsToList(e,t,n,!1)},t.prototype.addPanelsIntoList=function(e,t,n){void 0===t&&(t=!1),void 0===n&&(n=!1),this.addElementsToList(e,t,n,!0)},t.prototype.addElementsToList=function(e,t,n,r){t&&!this.visible||this.addElementsToListCore(e,this.elements,t,n,r)},t.prototype.addElementsToListCore=function(e,t,n,r,o){for(var i=0;i<t.length;i++){var s=t[i];n&&!s.visible||((o&&s.isPanel||!o&&!s.isPanel)&&e.push(s),s.isPanel?s.addElementsToListCore(e,s.elements,n,r,o):r&&this.addElementsToListCore(e,s.getElementsInDesign(!1),n,r,o))}},t.prototype.updateCustomWidgets=function(){for(var e=0;e<this.elements.length;e++)this.elements[e].updateCustomWidgets()},Object.defineProperty(t.prototype,"questionTitleLocation",{get:function(){return this.getPropertyValue("questionTitleLocation")},set:function(e){this.setPropertyValue("questionTitleLocation",e.toLowerCase())},enumerable:!1,configurable:!0}),t.prototype.getQuestionTitleLocation=function(){return this.onGetQuestionTitleLocation?this.onGetQuestionTitleLocation():"default"!=this.questionTitleLocation?this.questionTitleLocation:this.parent?this.parent.getQuestionTitleLocation():this.survey?this.survey.questionTitleLocation:"top"},t.prototype.getStartIndex=function(){return this.parent?this.parent.getQuestionStartIndex():this.survey?this.survey.questionStartIndex:""},t.prototype.getQuestionStartIndex=function(){return this.getStartIndex()},t.prototype.getChildrenLayoutType=function(){return"row"},t.prototype.getProgressInfo=function(){return a.SurveyElement.getProgressInfoByElements(this.elements,this.isRequired)},Object.defineProperty(t.prototype,"root",{get:function(){for(var e=this;e.parent;)e=e.parent;return e},enumerable:!1,configurable:!0}),t.prototype.childVisibilityChanged=function(){this.getIsPageVisible(null)!==this.getPropertyValue("isVisible",!0)&&this.onVisibleChanged()},t.prototype.createRowAndSetLazy=function(e){var t=this.createRow();return t.setIsLazyRendering(this.isLazyRenderInRow(e)),t},t.prototype.createRow=function(){return new y(this)},t.prototype.onSurveyLoad=function(){for(var e=0;e<this.elements.length;e++)this.elements[e].onSurveyLoad();this.onElementVisibilityChanged(this)},t.prototype.onFirstRendering=function(){e.prototype.onFirstRendering.call(this);for(var t=0;t<this.elements.length;t++)this.elements[t].onFirstRendering();this.onRowsChanged()},t.prototype.updateRows=function(){if(!this.isLoadingFromJson){for(var e=0;e<this.elements.length;e++)this.elements[e].isPanel&&this.elements[e].updateRows();this.onRowsChanged()}},Object.defineProperty(t.prototype,"rows",{get:function(){return this.getPropertyValue("rows")},enumerable:!1,configurable:!0}),t.prototype.ensureRowsVisibility=function(){this.rows.forEach((function(e){e.ensureVisibility()}))},t.prototype.onRowsChanged=function(){this.isLoadingFromJson||this.setArrayPropertyDirectly("rows",this.buildRows())},t.prototype.onAddElement=function(e,t){var n=this;if(e.setSurveyImpl(this.surveyImpl),e.parent=this,this.markQuestionListDirty(),this.canBuildRows()){var r=p.settings.supportCreatorV2?this.getDragDropInfo():void 0;this.dragDropPanelHelper.updateRowsOnElementAdded(e,t,r,this)}if(e.isPanel){var o=e;this.survey&&this.survey.panelAdded(o,t,this,this.root)}else if(this.survey){var i=e;this.survey.questionAdded(i,t,this,this.root)}this.addElementCallback&&this.addElementCallback(e),e.registerPropertyChangedHandlers(["visible","isVisible"],(function(){n.onElementVisibilityChanged(e)}),this.id),e.registerPropertyChangedHandlers(["startWithNewLine"],(function(){n.onElementStartWithNewLineChanged(e)}),this.id),this.onElementVisibilityChanged(this)},t.prototype.onRemoveElement=function(e){e.parent=null,this.markQuestionListDirty(),e.unregisterPropertyChangedHandlers(["visible","isVisible","startWithNewLine"],this.id),this.updateRowsOnElementRemoved(e),this.isRandomizing||(e.isPanel?this.survey&&this.survey.panelRemoved(e):this.survey&&this.survey.questionRemoved(e),this.removeElementCallback&&this.removeElementCallback(e),this.onElementVisibilityChanged(this))},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.onRowsChanged()},t.prototype.updateRowsVisibility=function(e){for(var t=this.rows,n=0;n<t.length;n++){var r=t[n];if(r.elements.indexOf(e)>-1){r.updateVisible(),r.visible&&!r.isNeedRender&&(r.isNeedRender=!0);break}}},t.prototype.canBuildRows=function(){return!this.isLoadingFromJson&&"row"==this.getChildrenLayoutType()},t.prototype.buildRows=function(){if(!this.canBuildRows())return[];for(var e=new Array,t=0;t<this.elements.length;t++){var n=this.elements[t],r=0==t||n.startWithNewLine,o=r?this.createRowAndSetLazy(e.length):e[e.length-1];r&&e.push(o),o.addElement(n)}for(t=0;t<e.length;t++)e[t].updateVisible();return e},t.prototype.isLazyRenderInRow=function(e){return!(!this.survey||!this.survey.isLazyRendering)&&(e>=p.settings.lazyRender.firstBatchSize||!this.canRenderFirstRows())},t.prototype.canRenderFirstRows=function(){return this.isPage},t.prototype.getDragDropInfo=function(){var e=this.getPage(this.parent);return e?e.getDragDropInfo():void 0},t.prototype.updateRowsOnElementRemoved=function(e){this.canBuildRows()&&this.updateRowsRemoveElementFromRow(e,this.findRowByElement(e))},t.prototype.updateRowsRemoveElementFromRow=function(e,t){if(t&&t.panel){var n=t.elements.indexOf(e);n<0||(t.elements.splice(n,1),t.elements.length>0?(t.elements[0].startWithNewLine=!0,t.updateVisible()):t.index>=0&&t.panel.rows.splice(t.index,1))}},t.prototype.findRowByElement=function(e){for(var t=this.rows,n=0;n<t.length;n++)if(t[n].elements.indexOf(e)>-1)return t[n];return null},t.prototype.elementWidthChanged=function(e){if(!this.isLoadingFromJson){var t=this.findRowByElement(e);t&&t.updateVisible()}},Object.defineProperty(t.prototype,"processedTitle",{get:function(){return this.getRenderedTitle(this.locTitle.textOrHtml)},enumerable:!1,configurable:!0}),t.prototype.getRenderedTitle=function(e){return null!=this.textProcessor?this.textProcessor.processText(e,!0):e},Object.defineProperty(t.prototype,"visible",{get:function(){return this.getPropertyValue("visible",!0)},set:function(e){e!==this.visible&&(this.setPropertyValue("visible",e),this.setPropertyValue("isVisible",this.isVisible),this.isLoadingFromJson||this.onVisibleChanged())},enumerable:!1,configurable:!0}),t.prototype.onVisibleChanged=function(){if(!this.isRandomizing&&(this.setPropertyValue("isVisible",this.isVisible),this.survey&&"none"!==this.survey.getQuestionClearIfInvisible("default")&&!this.isLoadingFromJson))for(var e=this.questions,t=this.isVisible,n=0;n<e.length;n++)t?e[n].updateValueWithDefaults():e[n].clearValueIfInvisible("onHiddenContainer")},Object.defineProperty(t.prototype,"isVisible",{get:function(){return this.areInvisibleElementsShowing||this.getIsPageVisible(null)},enumerable:!1,configurable:!0}),t.prototype.getIsPageVisible=function(e){if(!this.visible)return!1;for(var t=0;t<this.elements.length;t++)if(this.elements[t]!=e&&this.elements[t].isVisible)return!0;return!1},t.prototype.setVisibleIndex=function(e){if(!this.isVisible||e<0)return this.resetVisibleIndexes(),0;this.lastVisibleIndex=e;var t=e;e+=this.beforeSetVisibleIndex(e);for(var n=this.getPanelStartIndex(e),r=n,o=0;o<this.elements.length;o++)r+=this.elements[o].setVisibleIndex(r);return this.isContinueNumbering()&&(e+=r-n),e-t},t.prototype.updateVisibleIndexes=function(){void 0!==this.lastVisibleIndex&&(this.resetVisibleIndexes(),this.setVisibleIndex(this.lastVisibleIndex))},t.prototype.resetVisibleIndexes=function(){for(var e=0;e<this.elements.length;e++)this.elements[e].setVisibleIndex(-1)},t.prototype.beforeSetVisibleIndex=function(e){return 0},t.prototype.getPanelStartIndex=function(e){return e},t.prototype.isContinueNumbering=function(){return!0},Object.defineProperty(t.prototype,"isReadOnly",{get:function(){var e=!!this.parent&&this.parent.isReadOnly,t=!!this.survey&&this.survey.isDisplayMode;return this.readOnly||e||t},enumerable:!1,configurable:!0}),t.prototype.onReadOnlyChanged=function(){for(var t=0;t<this.elements.length;t++){var n=this.elements[t];n.setPropertyValue("isReadOnly",n.isReadOnly)}e.prototype.onReadOnlyChanged.call(this)},t.prototype.updateElementCss=function(t){e.prototype.updateElementCss.call(this,t);for(var n=0;n<this.elements.length;n++)this.elements[n].updateElementCss(t)},Object.defineProperty(t.prototype,"enableIf",{get:function(){return this.getPropertyValue("enableIf","")},set:function(e){this.setPropertyValue("enableIf",e)},enumerable:!1,configurable:!0}),t.prototype.addElement=function(e,t){return void 0===t&&(t=-1),!!this.canAddElement(e)&&(t<0||t>=this.elements.length?this.elements.push(e):this.elements.splice(t,0,e),!0)},t.prototype.insertElementAfter=function(e,t){var n=this.elements.indexOf(t);n>=0&&this.addElement(e,n+1)},t.prototype.insertElementBefore=function(e,t){var n=this.elements.indexOf(t);n>=0&&this.addElement(e,n)},t.prototype.canAddElement=function(e){return!!e&&e.isLayoutTypeSupported(this.getChildrenLayoutType())},t.prototype.addQuestion=function(e,t){return void 0===t&&(t=-1),this.addElement(e,t)},t.prototype.addPanel=function(e,t){return void 0===t&&(t=-1),this.addElement(e,t)},t.prototype.addNewQuestion=function(e,t,n){void 0===t&&(t=null),void 0===n&&(n=-1);var r=u.QuestionFactory.Instance.createQuestion(e,t);return this.addQuestion(r,n)?r:null},t.prototype.addNewPanel=function(e){void 0===e&&(e=null);var t=this.createNewPanel(e);return this.addPanel(t)?t:null},t.prototype.indexOf=function(e){return this.elements.indexOf(e)},t.prototype.createNewPanel=function(e){var t=o.Serializer.createClass("panel");return t.name=e,t},t.prototype.removeElement=function(e){var t=this.elements.indexOf(e);if(t<0){for(var n=0;n<this.elements.length;n++)if(this.elements[n].removeElement(e))return!0;return!1}return this.elements.splice(t,1),!0},t.prototype.removeQuestion=function(e){this.removeElement(e)},t.prototype.runCondition=function(e,t){if(!this.isDesignMode&&!this.isLoadingFromJson){for(var n=this.elements.slice(),r=0;r<n.length;r++)n[r].runCondition(e,t);this.runConditionCore(e,t)}},t.prototype.onAnyValueChanged=function(e){for(var t=this.elements,n=0;n<t.length;n++)t[n].onAnyValueChanged(e)},t.prototype.checkBindings=function(e,t){for(var n=this.elements,r=0;r<n.length;r++)n[r].checkBindings(e,t)},t.prototype.dragDropAddTarget=function(e){this.dragDropPanelHelper.dragDropAddTarget(e)},t.prototype.dragDropFindRow=function(e){return this.dragDropPanelHelper.dragDropFindRow(e)},t.prototype.dragDropMoveElement=function(e,t,n){this.dragDropPanelHelper.dragDropMoveElement(e,t,n)},t.prototype.needResponsiveWidth=function(){var e=!1;return this.elements.forEach((function(t){t.needResponsiveWidth()&&(e=!0)})),this.rows.forEach((function(t){t.elements.length>1&&(e=!0)})),e},Object.defineProperty(t.prototype,"hasDescriptionUnderTitle",{get:function(){return this.hasDescription},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"cssHeader",{get:function(){return this.cssClasses.panel.header},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"cssDescription",{get:function(){return this.cssClasses.panel.description},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"no",{get:function(){return""},enumerable:!1,configurable:!0}),t.prototype.dispose=function(){if(e.prototype.dispose.call(this),this.rows){for(var t=0;t<this.rows.length;t++)this.rows[t].dispose();this.rows.splice(0,this.rows.length)}for(t=0;t<this.elements.length;t++)this.elements[t].dispose();this.elements.splice(0,this.elements.length)},t.panelCounter=100,g([Object(o.property)({defaultValue:!0})],t.prototype,"showTitle",void 0),g([Object(o.property)({defaultValue:!0})],t.prototype,"showDescription",void 0),t}(a.SurveyElement),b=function(e){function t(t){void 0===t&&(t="");var n=e.call(this,t)||this;return n.createNewArray("footerActions"),n.registerPropertyChangedHandlers(["width"],(function(){n.parent&&n.parent.elementWidthChanged(n)})),n.registerPropertyChangedHandlers(["indent","innerIndent","rightIndent"],(function(){n.onIndentChanged()})),n}return m(t,e),t.prototype.getType=function(){return"panel"},Object.defineProperty(t.prototype,"contentId",{get:function(){return this.id+"_content"},enumerable:!1,configurable:!0}),t.prototype.getSurvey=function(t){return void 0===t&&(t=!1),t?this.parent?this.parent.getSurvey(t):null:e.prototype.getSurvey.call(this,t)},t.prototype.onSurveyLoad=function(){e.prototype.onSurveyLoad.call(this),this.onIndentChanged()},t.prototype.onSetData=function(){e.prototype.onSetData.call(this),this.onIndentChanged()},Object.defineProperty(t.prototype,"isPanel",{get:function(){return!0},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"page",{get:function(){return this.getPage(this.parent)},set:function(e){this.setPage(this.parent,e)},enumerable:!1,configurable:!0}),t.prototype.removeFromParent=function(){this.parent&&this.removeSelfFromList(this.parent.elements)},t.prototype.moveTo=function(e,t){return void 0===t&&(t=null),this.moveToBase(this.parent,e,t)},Object.defineProperty(t.prototype,"visibleIndex",{get:function(){return this.getPropertyValue("visibleIndex",-1)},enumerable:!1,configurable:!0}),t.prototype.getTitleOwner=function(){return this},Object.defineProperty(t.prototype,"showNumber",{get:function(){return this.getPropertyValue("showNumber")},set:function(e){this.setPropertyValue("showNumber",e),this.notifySurveyOnVisibilityChanged()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"showQuestionNumbers",{get:function(){return this.getPropertyValue("showQuestionNumbers")},set:function(e){this.setPropertyValue("showQuestionNumbers",e),this.notifySurveyOnVisibilityChanged()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"questionStartIndex",{get:function(){return this.getPropertyValue("questionStartIndex","")},set:function(e){this.setPropertyValue("questionStartIndex",e)},enumerable:!1,configurable:!0}),t.prototype.getQuestionStartIndex=function(){return this.questionStartIndex?this.questionStartIndex:e.prototype.getQuestionStartIndex.call(this)},Object.defineProperty(t.prototype,"no",{get:function(){return this.getPropertyValue("no","")},enumerable:!1,configurable:!0}),t.prototype.setNo=function(e){this.setPropertyValue("no",i.Helpers.getNumberByIndex(this.visibleIndex,this.getStartIndex()))},t.prototype.createLocTitleProperty=function(){var t=this,n=e.prototype.createLocTitleProperty.call(this);return n.onGetTextCallback=function(e){return e||!t.isExpanded&&!t.isCollapsed||(e=t.name),e},n},t.prototype.beforeSetVisibleIndex=function(e){var t=-1;return!this.showNumber||!this.isDesignMode&&this.locTitle.isEmpty||(t=e),this.setPropertyValue("visibleIndex",t),this.setNo(t),t<0?0:1},t.prototype.getPanelStartIndex=function(e){return"off"==this.showQuestionNumbers?-1:"onpanel"==this.showQuestionNumbers?0:e},t.prototype.isContinueNumbering=function(){return"off"!=this.showQuestionNumbers&&"onpanel"!=this.showQuestionNumbers},t.prototype.notifySurveyOnVisibilityChanged=function(){null==this.survey||this.isLoadingFromJson||this.survey.panelVisibilityChanged(this,this.isVisible)},t.prototype.hasErrorsCore=function(t){e.prototype.hasErrorsCore.call(this,t),this.isCollapsed&&t.result&&t.fireCallback&&this.expand()},t.prototype.getRenderedTitle=function(t){if(!t){if(this.isCollapsed||this.isExpanded)return this.name;if(this.isDesignMode)return"["+this.name+"]"}return e.prototype.getRenderedTitle.call(this,t)},Object.defineProperty(t.prototype,"innerIndent",{get:function(){return this.getPropertyValue("innerIndent")},set:function(e){this.setPropertyValue("innerIndent",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"startWithNewLine",{get:function(){return this.getPropertyValue("startWithNewLine")},set:function(e){this.setPropertyValue("startWithNewLine",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"allowAdaptiveActions",{get:function(){return this.getPropertyValue("allowAdaptiveActions")},set:function(e){this.setPropertyValue("allowAdaptiveActions",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"innerPaddingLeft",{get:function(){return this.getPropertyValue("innerPaddingLeft","")},set:function(e){this.setPropertyValue("innerPaddingLeft",e)},enumerable:!1,configurable:!0}),t.prototype.onIndentChanged=function(){this.getSurvey()&&(this.innerPaddingLeft=this.getIndentSize(this.innerIndent),this.paddingLeft=this.getIndentSize(this.indent),this.paddingRight=this.getIndentSize(this.rightIndent))},t.prototype.getIndentSize=function(e){if(e<1)return"";var t=this.survey.css;return t&&t.question.indent?e*t.question.indent+"px":""},t.prototype.clearOnDeletingContainer=function(){this.elements.forEach((function(e){(e instanceof l.Question||e instanceof t)&&e.clearOnDeletingContainer()}))},Object.defineProperty(t.prototype,"footerActions",{get:function(){return this.getPropertyValue("footerActions")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"footerToolbarCss",{get:function(){var e;return this.footerToolbarCssValue||(null===(e=this.cssClasses.panel)||void 0===e?void 0:e.footer)},set:function(e){this.footerToolbarCssValue=e},enumerable:!1,configurable:!0}),t.prototype.getFooterToolbar=function(){var e,t=this;if(!this.footerToolbarValue){var n=this.footerActions;this.hasEditButton&&n.push({id:"cancel-preview",locTitle:this.survey.locEditText,innerCss:this.survey.cssNavigationEdit,action:function(){t.cancelPreview()}}),n=this.onGetFooterActionsCallback?this.onGetFooterActionsCallback():null===(e=this.survey)||void 0===e?void 0:e.getUpdatedPanelFooterActions(this,n),this.footerToolbarValue=this.createActionContainer(this.allowAdaptiveActions),this.footerToolbarValue.containerCss=this.footerToolbarCss,this.footerToolbarValue.setItems(n)}return this.footerToolbarValue},Object.defineProperty(t.prototype,"hasEditButton",{get:function(){return!(!this.survey||"preview"!==this.survey.state)&&1===this.depth},enumerable:!1,configurable:!0}),t.prototype.cancelPreview=function(){this.hasEditButton&&this.survey.cancelPreviewByPage(this)},Object.defineProperty(t.prototype,"cssTitle",{get:function(){return this.getCssTitle(this.cssClasses.panel)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"cssError",{get:function(){return this.getCssError(this.cssClasses)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"showErrorsAbovePanel",{get:function(){return this.isDefaultV2Theme},enumerable:!1,configurable:!0}),t.prototype.getCssError=function(e){var t=this.isDefaultV2Theme,n=(new h.CssClassBuilder).append(this.cssClasses.error.root).append(this.cssClasses.error.outsideQuestion,t).append(this.cssClasses.error.aboveQuestion,t);return n.append("panel-error-root",n.isEmpty()).toString()},t.prototype.onVisibleChanged=function(){e.prototype.onVisibleChanged.call(this),this.notifySurveyOnVisibilityChanged()},t.prototype.needResponsiveWidth=function(){return!this.startWithNewLine||e.prototype.needResponsiveWidth.call(this)},t.prototype.focusIn=function(){this.survey&&this.survey.whenPanelFocusIn(this)},t.prototype.getHasFrameV2=function(){return e.prototype.getHasFrameV2.call(this)&&(!this.originalPage||this.survey.isShowingPreview)},t.prototype.getIsNested=function(){return e.prototype.getIsNested.call(this)&&void 0!==this.parent},t.prototype.getCssRoot=function(t){return(new h.CssClassBuilder).append(e.prototype.getCssRoot.call(this,t)).append(t.container).append(t.asPage,!!this.originalPage&&!this.survey.isShowingPreview).append(t.invisible,!this.isDesignMode&&this.areInvisibleElementsShowing&&!this.visible).toString()},t.prototype.getContainerCss=function(){return this.getCssRoot(this.cssClasses.panel)},t}(v);o.Serializer.addClass("panelbase",["name",{name:"elements",alternativeName:"questions",baseClassName:"question",visible:!1,isLightSerializable:!1},{name:"visible:switch",default:!0},"visibleIf:condition","enableIf:condition","requiredIf:condition","readOnly:boolean",{name:"questionTitleLocation",default:"default",choices:["default","top","bottom","left","hidden"]},{name:"title:text",serializationProperty:"locTitle"},{name:"description:text",serializationProperty:"locDescription"},{name:"questionsOrder",default:"default",choices:["default","initial","random"]}],(function(){return new v})),o.Serializer.addClass("panel",[{name:"state",default:"default",choices:["default","collapsed","expanded"]},"isRequired:switch",{name:"requiredErrorText:text",serializationProperty:"locRequiredErrorText"},{name:"startWithNewLine:boolean",default:!0},"width",{name:"minWidth",defaultFunc:function(){return"auto"}},{name:"maxWidth",defaultFunc:function(){return p.settings.maxWidth}},{name:"innerIndent:number",default:0,choices:[0,1,2,3]},{name:"indent:number",default:0,choices:[0,1,2,3]},{name:"page",isSerializable:!1,visibleIf:function(e){var t=e?e.survey:null;return!t||!t.pages||t.pages.length>1},choices:function(e){var t=e?e.survey:null;return t?t.pages.map((function(e){return{value:e.name,text:e.title}})):[]}},"showNumber:boolean",{name:"showQuestionNumbers",default:"default",choices:["default","onpanel","off"]},"questionStartIndex",{name:"allowAdaptiveActions:boolean",default:!0,visible:!1}],(function(){return new b}),"panelbase"),u.ElementFactory.Instance.registerElement("panel",(function(e){return new b(e)}))},"./src/popup-dropdown-view-model.ts":function(e,t,n){"use strict";n.r(t),n.d(t,"PopupDropdownViewModel",(function(){return p}));var r,o=n("./src/jsonobject.ts"),i=n("./src/utils/popup.ts"),s=n("./src/popup-view-model.ts"),a=n("./src/utils/devices.ts"),l=n("./src/settings.ts"),u=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),c=function(e,t,n,r){var o,i=arguments.length,s=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,r);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(i<3?o(s):i>3?o(t,n,s):o(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},p=function(e){function t(t,n){var r=e.call(this,t)||this;return r.targetElement=n,r.scrollEventCallBack=function(e){if(r.isOverlay&&a.IsTouch)return e.stopPropagation(),void e.preventDefault();r.hidePopup()},r.resizeEventCallback=function(){var e=window.visualViewport;document.documentElement.style.setProperty("--sv-popup-overlay-height",e.height*e.scale+"px")},r.resizeWindowCallback=function(){r.isOverlay||r.updatePosition(!0,!1)},r.clientY=0,r.isTablet=!1,r.touchStartEventCallback=function(e){r.clientY=e.touches[0].clientY},r.touchMoveEventCallback=function(e){r.preventScrollOuside(e,r.clientY-e.changedTouches[0].clientY)},r.model.onRecalculatePosition.add((function(e,t){r.isOverlay||r.updatePosition(t.isResetHeight)})),r}return u(t,e),t.prototype.calculateIsTablet=function(e,n){var r=Math.min(e,n);this.isTablet=r>=t.tabletSizeBreakpoint},t.prototype._updatePosition=function(){var e,t,n;if(this.targetElement){var r=this.targetElement.getBoundingClientRect(),o=null===(e=this.container)||void 0===e?void 0:e.querySelector(this.containerSelector);if(o){var s=null===(t=this.container)||void 0===t?void 0:t.querySelector(this.fixedPopupContainer),a=o.querySelector(this.scrollingContentSelector),l=window.getComputedStyle(o),u=parseFloat(l.marginLeft)||0,c=parseFloat(l.marginRight)||0,p=o.offsetHeight-a.offsetHeight+a.scrollHeight,d=o.getBoundingClientRect().width;this.model.setWidthByTarget&&(this.minWidth=r.width+"px");var h=this.model.verticalPosition,f=this.getActualHorizontalPosition();if(window){var m=[p,.9*window.innerHeight,null===(n=window.visualViewport)||void 0===n?void 0:n.height];p=Math.ceil(Math.min.apply(Math,m.filter((function(e){return"number"==typeof e})))),h=i.PopupUtils.updateVerticalPosition(r,p,this.model.verticalPosition,this.model.showPointer,window.innerHeight)}this.popupDirection=i.PopupUtils.calculatePopupDirection(h,f);var g=i.PopupUtils.calculatePosition(r,p,d+u+c,h,f,this.showHeader,this.model.positionMode);if(window){var y=i.PopupUtils.updateVerticalDimensions(g.top,p,window.innerHeight);if(y&&(this.height=y.height+"px",g.top=y.top),this.model.setWidthByTarget)this.width=r.width+"px",g.left=r.left;else{var v=i.PopupUtils.updateHorizontalDimensions(g.left,d,window.innerWidth,f,this.model.positionMode,{left:u,right:c});v&&(this.width=v.width?v.width+"px":void 0,g.left=v.left)}}if(s){var b=s.getBoundingClientRect();g.top-=b.top,g.left-=b.left}this.left=g.left+"px",this.top=g.top+"px",this.showHeader&&(this.pointerTarget=i.PopupUtils.calculatePointerTarget(r,g.top,g.left,h,f,u,c),this.pointerTarget.top+="px",this.pointerTarget.left+="px")}}},t.prototype.getActualHorizontalPosition=function(){var e=this.model.horizontalPosition;return!!document&&"rtl"==document.defaultView.getComputedStyle(document.body).direction&&("left"===this.model.horizontalPosition?e="right":"right"===this.model.horizontalPosition&&(e="left")),e},t.prototype.getStyleClass=function(){return e.prototype.getStyleClass.call(this).append("sv-popup--dropdown",!this.isOverlay).append("sv-popup--tablet",this.isTablet&&this.isOverlay).append("sv-popup--show-pointer",!this.isOverlay&&this.showHeader).append("sv-popup--"+this.popupDirection,!this.isOverlay&&this.showHeader)},t.prototype.getShowHeader=function(){return this.model.showPointer&&!this.isOverlay},t.prototype.getPopupHeaderTemplate=function(){return"popup-pointer"},t.prototype.setComponentElement=function(t,n){e.prototype.setComponentElement.call(this,t),t&&t.parentElement&&!this.isModal&&(this.targetElement=n||t.parentElement)},t.prototype.updateOnShowing=function(){var e=l.settings.environment.root;this.prevActiveElement=e.activeElement,this.isOverlay?this.resetDimensionsAndPositionStyleProperties():this.updatePosition(!0,!1),this.switchFocus(),window.addEventListener("resize",this.resizeWindowCallback),this.shouldCreateResizeCallback&&(window.visualViewport.addEventListener("resize",this.resizeEventCallback),this.container&&(this.container.addEventListener("touchstart",this.touchStartEventCallback),this.container.addEventListener("touchmove",this.touchMoveEventCallback)),this.calculateIsTablet(window.innerWidth,window.innerHeight),this.resizeEventCallback()),window.addEventListener("scroll",this.scrollEventCallBack)},Object.defineProperty(t.prototype,"shouldCreateResizeCallback",{get:function(){return!!window.visualViewport&&this.isOverlay&&a.IsTouch},enumerable:!1,configurable:!0}),t.prototype.updatePosition=function(e,t){var n=this;void 0===t&&(t=!0),e&&(this.height="auto"),t?setTimeout((function(){n._updatePosition()}),1):this._updatePosition()},t.prototype.updateOnHiding=function(){e.prototype.updateOnHiding.call(this),window.removeEventListener("resize",this.resizeWindowCallback),this.shouldCreateResizeCallback&&(window.visualViewport.removeEventListener("resize",this.resizeEventCallback),this.container&&(this.container.removeEventListener("touchstart",this.touchStartEventCallback),this.container.removeEventListener("touchmove",this.touchMoveEventCallback))),window.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.tabletSizeBreakpoint=600,c([Object(o.property)()],t.prototype,"isTablet",void 0),c([Object(o.property)({defaultValue:"left"})],t.prototype,"popupDirection",void 0),c([Object(o.property)({defaultValue:{left:"0px",top:"0px"}})],t.prototype,"pointerTarget",void 0),t}(s.PopupBaseViewModel)},"./src/popup-modal-view-model.ts":function(e,t,n){"use strict";n.r(t),n.d(t,"PopupModalViewModel",(function(){return s}));var r,o=n("./src/popup-view-model.ts"),i=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),s=function(e){function t(t){var n=e.call(this,t)||this;return n.onScrollOutsideCallback=function(e){n.preventScrollOuside(e,e.deltaY)},n}return i(t,e),t.prototype.getStyleClass=function(){return e.prototype.getStyleClass.call(this).append("sv-popup--modal",!this.isOverlay)},t.prototype.getShowFooter=function(){return!0},t.prototype.createFooterActionBar=function(){var t=this;e.prototype.createFooterActionBar.call(this),this.footerToolbarValue.addAction({id:"apply",visibleIndex:20,title:this.applyButtonText,innerCss:"sv-popup__body-footer-item sv-popup__button sv-popup__button--apply sd-btn sd-btn--action",action:function(){t.apply()}})},Object.defineProperty(t.prototype,"applyButtonText",{get:function(){return this.getLocalizationString("modalApplyButtonText")},enumerable:!1,configurable:!0}),t.prototype.apply=function(){this.model.onApply&&!this.model.onApply()||this.hidePopup()},t.prototype.clickOutside=function(){},t.prototype.onKeyDown=function(t){"Escape"!==t.key&&27!==t.keyCode||this.model.onCancel(),e.prototype.onKeyDown.call(this,t)},t.prototype.updateOnShowing=function(){this.container&&this.container.addEventListener("wheel",this.onScrollOutsideCallback,{passive:!1}),e.prototype.updateOnShowing.call(this)},t.prototype.updateOnHiding=function(){this.container&&this.container.removeEventListener("wheel",this.onScrollOutsideCallback),e.prototype.updateOnHiding.call(this)},t}(o.PopupBaseViewModel)},"./src/popup-survey.ts":function(e,t,n){"use strict";n.r(t),n.d(t,"PopupSurveyModel",(function(){return l})),n.d(t,"SurveyWindowModel",(function(){return u}));var r,o=n("./src/base.ts"),i=n("./src/survey.ts"),s=n("./src/jsonobject.ts"),a=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),l=function(e){function t(t,n){void 0===n&&(n=null);var r=e.call(this)||this;return r.closeOnCompleteTimeout=0,r.surveyValue=n||r.createSurvey(t),r.surveyValue.showTitle=!1,"undefined"!=typeof document&&(r.windowElement=document.createElement("div")),r.survey.onComplete.add((function(e,t){r.onSurveyComplete()})),r.registerPropertyChangedHandlers(["isShowing"],(function(){r.showingChangedCallback&&r.showingChangedCallback()})),r.registerPropertyChangedHandlers(["isExpanded"],(function(){r.onExpandedChanged()})),r.width=new o.ComputedUpdater((function(){return r.survey.width})),r.width=r.survey.width,r.updateCss(),r.onCreating(),r.survey.onPopupVisibleChanged.add((function(e,t){t.visible?r.onScrollCallback=function(){t.popup.toggleVisibility()}:r.onScrollCallback=void 0})),r}return a(t,e),t.prototype.onCreating=function(){},t.prototype.getType=function(){return"popupsurvey"},Object.defineProperty(t.prototype,"survey",{get:function(){return this.surveyValue},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isShowing",{get:function(){return this.getPropertyValue("isShowing",!1)},set:function(e){this.setPropertyValue("isShowing",e)},enumerable:!1,configurable:!0}),t.prototype.show=function(){this.isShowing=!0},t.prototype.hide=function(){this.isShowing=!1},Object.defineProperty(t.prototype,"isExpanded",{get:function(){return this.getPropertyValue("isExpanded",!1)},set:function(e){this.setPropertyValue("isExpanded",e)},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},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,"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(){return this.getPropertyValue("cssRoot","")},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,"cssHeaderTitle",{get:function(){return this.getPropertyValue("cssHeaderTitle","")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"cssHeaderButton",{get:function(){return this.getPropertyValue("cssHeaderButton","")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"renderedWidth",{get:function(){var e=this.getPropertyValue("width","60%");return e&&!isNaN(e)&&(e+="px"),e},enumerable:!1,configurable:!0}),t.prototype.updateCss=function(){if(this.css&&this.css.window){var e=this.css.window;this.setPropertyValue("cssRoot",e.root),this.setPropertyValue("cssBody",e.body);var t=e.header;t&&(this.setPropertyValue("cssHeaderRoot",t.root),this.setPropertyValue("cssHeaderTitle",t.title),this.setPropertyValue("cssHeaderButton",t.button),this.updateCssButton())}},t.prototype.updateCssButton=function(){var e=this.css.window?this.css.window.header:null;e&&this.setCssButton(this.isExpanded?e.buttonExpanded:e.buttonCollapsed)},t.prototype.setCssButton=function(e){e&&this.setPropertyValue("cssButton",e)},t.prototype.createSurvey=function(e){return new i.SurveyModel(e)},t.prototype.onSurveyComplete=function(){if(!(this.closeOnCompleteTimeout<0))if(0==this.closeOnCompleteTimeout)this.hide();else{var e=this,t=null;t="undefined"!=typeof window?window.setInterval((function(){e.hide(),"undefined"!=typeof window&&window.clearInterval(t)}),1e3*this.closeOnCompleteTimeout):0}},t.prototype.onScroll=function(){this.onScrollCallback&&this.onScrollCallback()},function(e,t,n,r){var o,i=arguments.length,s=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,r);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(i<3?o(s):i>3?o(t,n,s):o(t,n))||s);i>3&&s&&Object.defineProperty(t,n,s)}([Object(s.property)()],t.prototype,"width",void 0),t}(o.Base),u=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return a(t,e),t}(l)},"./src/popup-utils.ts":function(e,t,n){"use strict";n.r(t),n.d(t,"createPopupModalViewModel",(function(){return s})),n.d(t,"createPopupViewModel",(function(){return a}));var r=n("./src/popup.ts"),o=n("./src/popup-dropdown-view-model.ts"),i=n("./src/popup-modal-view-model.ts");function s(e,t){var n=new r.PopupModel(e.componentName,e.data,"top","left",!1,!0,e.onCancel,e.onApply,(function(){e.onHide(),s&&o.resetComponentElement()}),e.onShow,e.cssClass,e.title);n.displayMode=e.displayMode||"popup";var o=new i.PopupModalViewModel(n);if(t&&t.appendChild){var s=document.createElement("div");t.appendChild(s),o.setComponentElement(s)}return o.container||o.initializePopupContainer(),o}function a(e,t){return e.isModal?new i.PopupModalViewModel(e):new o.PopupDropdownViewModel(e,t)}},"./src/popup-view-model.ts":function(e,t,n){"use strict";n.r(t),n.d(t,"FOCUS_INPUT_SELECTOR",(function(){return d})),n.d(t,"PopupBaseViewModel",(function(){return h}));var r,o=n("./src/base.ts"),i=n("./src/jsonobject.ts"),s=n("./src/utils/cssClassBuilder.ts"),a=n("./src/actions/container.ts"),l=n("./src/settings.ts"),u=n("./src/utils/utils.ts"),c=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),p=function(e,t,n,r){var o,i=arguments.length,s=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,r);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(i<3?o(s):i>3?o(t,n,s):o(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},d='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^="-"])',h=function(e){function t(t){var n=e.call(this)||this;return n.popupSelector=".sv-popup",n.fixedPopupContainer=".sv-popup",n.containerSelector=".sv-popup__container",n.scrollingContentSelector=".sv-popup__scrolling-content",n.model=t,n}return c(t,e),Object.defineProperty(t.prototype,"container",{get:function(){return this.containerElement||this.createdContainer},enumerable:!1,configurable:!0}),t.prototype.getLocale=function(){return this.locale?this.locale:e.prototype.getLocale.call(this)},t.prototype.hidePopup=function(){this.model.isVisible=!1},t.prototype.getStyleClass=function(){return(new s.CssClassBuilder).append(this.model.cssClass).append("sv-popup--"+this.model.displayMode,this.isOverlay)},t.prototype.getShowFooter=function(){return this.isOverlay},t.prototype.getShowHeader=function(){return!1},t.prototype.getPopupHeaderTemplate=function(){},t.prototype.createFooterActionBar=function(){var e=this;this.footerToolbarValue=new a.ActionContainer,this.footerToolbar.updateCallback=function(t){e.footerToolbarValue.actions.forEach((function(e){return e.cssClasses={item:"sv-popup__body-footer-item sv-popup__button sd-btn"}}))};var t=[{id:"cancel",visibleIndex:10,title:this.cancelButtonText,innerCss:"sv-popup__button--cancel sd-btn",action:function(){e.cancel()}}];t=this.model.updateFooterActions(t),this.footerToolbarValue.setItems(t)},t.prototype.resetDimensionsAndPositionStyleProperties=function(){var e="inherit";this.top=e,this.left=e,this.height=e,this.width=e,this.minWidth=e},t.prototype.setupModel=function(e){var t=this;this.model&&this.model.unregisterPropertyChangedHandlers(["isVisible"],"PopupBaseViewModel"),this._model=e;var n=function(){e.isVisible||t.updateOnHiding(),t.isVisible=e.isVisible};e.registerPropertyChangedHandlers(["isVisible"],n,"PopupBaseViewModel"),n()},Object.defineProperty(t.prototype,"model",{get:function(){return this._model},set:function(e){this.setupModel(e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"title",{get:function(){return this.model.title},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"contentComponentName",{get:function(){return this.model.contentComponentName},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"contentComponentData",{get:function(){return this.model.contentComponentData},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isModal",{get:function(){return this.model.isModal},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isFocusedContent",{get:function(){return this.model.isFocusedContent},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isFocusedContainer",{get:function(){return this.model.isFocusedContainer},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"showFooter",{get:function(){return this.getShowFooter()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"showHeader",{get:function(){return this.getShowHeader()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"popupHeaderTemplate",{get:function(){return this.getPopupHeaderTemplate()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isOverlay",{get:function(){return"overlay"===this.model.displayMode},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"styleClass",{get:function(){return this.getStyleClass().toString()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"cancelButtonText",{get:function(){return this.getLocalizationString("modalCancelButtonText")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"footerToolbar",{get:function(){return this.footerToolbarValue||this.createFooterActionBar(),this.footerToolbarValue},enumerable:!1,configurable:!0}),t.prototype.onKeyDown=function(e){"Tab"===e.key||9===e.keyCode?this.trapFocus(e):"Escape"!==e.key&&27!==e.keyCode||this.hidePopup()},t.prototype.trapFocus=function(e){var t=this.container.querySelectorAll(d),n=t[0],r=t[t.length-1];e.shiftKey?l.settings.environment.root.activeElement===n&&(r.focus(),e.preventDefault()):l.settings.environment.root.activeElement===r&&(n.focus(),e.preventDefault())},t.prototype.switchFocus=function(){this.isFocusedContent?this.focusFirstInput():this.isFocusedContainer&&this.focusContainer()},t.prototype.updateOnShowing=function(){this.prevActiveElement=l.settings.environment.root.activeElement,this.isOverlay&&this.resetDimensionsAndPositionStyleProperties(),this.switchFocus()},t.prototype.updateOnHiding=function(){this.isFocusedContent&&this.prevActiveElement&&this.prevActiveElement.focus()},t.prototype.focusContainer=function(){if(this.container){var e=this.container.querySelector(this.popupSelector);null==e||e.focus()}},t.prototype.focusFirstInput=function(){var e=this;setTimeout((function(){if(e.container){var t=e.container.querySelector(e.model.focusFirstInputSelector||d);t?t.focus():e.focusContainer()}}),100)},t.prototype.clickOutside=function(e){this.hidePopup(),null==e||e.stopPropagation()},t.prototype.cancel=function(){this.model.onCancel(),this.hidePopup()},t.prototype.dispose=function(){e.prototype.dispose.call(this),this.createdContainer&&(this.createdContainer.remove(),this.createdContainer=void 0),this.footerToolbarValue&&this.footerToolbarValue.dispose()},t.prototype.initializePopupContainer=function(){if(!this.container){var e=document.createElement("div");this.createdContainer=e,Object(u.getElement)(l.settings.environment.popupMountContainer).appendChild(e)}},t.prototype.setComponentElement=function(e,t){e&&(this.containerElement=e)},t.prototype.resetComponentElement=function(){this.containerElement=void 0},t.prototype.preventScrollOuside=function(e,t){for(var n=e.target;n!==this.container;){if("auto"===window.getComputedStyle(n).overflowY&&n.scrollHeight!==n.offsetHeight){var r=n.scrollHeight,o=n.scrollTop,i=n.clientHeight;if(!(t>0&&Math.abs(r-i-o)<1||t<0&&o<=0))return}n=n.parentElement}e.preventDefault()},p([Object(i.property)({defaultValue:"0px"})],t.prototype,"top",void 0),p([Object(i.property)({defaultValue:"0px"})],t.prototype,"left",void 0),p([Object(i.property)({defaultValue:"auto"})],t.prototype,"height",void 0),p([Object(i.property)({defaultValue:"auto"})],t.prototype,"width",void 0),p([Object(i.property)({defaultValue:"auto"})],t.prototype,"minWidth",void 0),p([Object(i.property)({defaultValue:!1})],t.prototype,"isVisible",void 0),p([Object(i.property)()],t.prototype,"locale",void 0),t}(o.Base)},"./src/popup.ts":function(e,t,n){"use strict";n.r(t),n.d(t,"PopupModel",(function(){return l})),n.d(t,"createDialogOptions",(function(){return u}));var r,o=n("./src/base.ts"),i=n("./src/jsonobject.ts"),s=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),a=function(e,t,n,r){var o,i=arguments.length,s=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,r);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(i<3?o(s):i>3?o(t,n,s):o(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},l=function(e){function t(t,n,r,o,i,s,a,l,u,c,p,d){void 0===r&&(r="bottom"),void 0===o&&(o="left"),void 0===i&&(i=!0),void 0===s&&(s=!1),void 0===a&&(a=function(){}),void 0===l&&(l=function(){return!0}),void 0===u&&(u=function(){}),void 0===c&&(c=function(){}),void 0===p&&(p=""),void 0===d&&(d="");var h=e.call(this)||this;return h.focusFirstInputSelector="",h.onVisibilityChanged=h.addEvent(),h.onFooterActionsCreated=h.addEvent(),h.onRecalculatePosition=h.addEvent(),h.contentComponentName=t,h.contentComponentData=n,h.verticalPosition=r,h.horizontalPosition=o,h.showPointer=i,h.isModal=s,h.onCancel=a,h.onApply=l,h.onHide=u,h.onShow=c,h.cssClass=p,h.title=d,h}return s(t,e),t.prototype.refreshInnerModel=function(){var e=this.contentComponentData.model;e&&e.refresh&&e.refresh()},Object.defineProperty(t.prototype,"isVisible",{get:function(){return this.getPropertyValue("isVisible",!1)},set:function(e){this.isVisible!==e&&(this.setPropertyValue("isVisible",e),this.onVisibilityChanged.fire(this,{model:this,isVisible:e}),this.isVisible?this.onShow():(this.refreshInnerModel(),this.onHide()))},enumerable:!1,configurable:!0}),t.prototype.toggleVisibility=function(){this.isVisible=!this.isVisible},t.prototype.recalculatePosition=function(e){this.onRecalculatePosition.fire(this,{isResetHeight:e})},t.prototype.updateFooterActions=function(e){var t={actions:e};return this.onFooterActionsCreated.fire(this,t),t.actions},a([Object(i.property)()],t.prototype,"contentComponentName",void 0),a([Object(i.property)()],t.prototype,"contentComponentData",void 0),a([Object(i.property)({defaultValue:"bottom"})],t.prototype,"verticalPosition",void 0),a([Object(i.property)({defaultValue:"left"})],t.prototype,"horizontalPosition",void 0),a([Object(i.property)({defaultValue:!1})],t.prototype,"showPointer",void 0),a([Object(i.property)({defaultValue:!1})],t.prototype,"isModal",void 0),a([Object(i.property)({defaultValue:!0})],t.prototype,"isFocusedContent",void 0),a([Object(i.property)({defaultValue:!0})],t.prototype,"isFocusedContainer",void 0),a([Object(i.property)({defaultValue:function(){}})],t.prototype,"onCancel",void 0),a([Object(i.property)({defaultValue:function(){return!0}})],t.prototype,"onApply",void 0),a([Object(i.property)({defaultValue:function(){}})],t.prototype,"onHide",void 0),a([Object(i.property)({defaultValue:function(){}})],t.prototype,"onShow",void 0),a([Object(i.property)({defaultValue:""})],t.prototype,"cssClass",void 0),a([Object(i.property)({defaultValue:""})],t.prototype,"title",void 0),a([Object(i.property)({defaultValue:"popup"})],t.prototype,"displayMode",void 0),a([Object(i.property)({defaultValue:"flex"})],t.prototype,"positionMode",void 0),t}(o.Base);function u(e,t,n,r,o,i,s,a,l){return void 0===o&&(o=function(){}),void 0===i&&(i=function(){}),void 0===l&&(l="popup"),{componentName:e,data:t,onApply:n,onCancel:r,onHide:o,onShow:i,cssClass:s,title:a,displayMode:l}}},"./src/question.ts":function(e,t,n){"use strict";n.r(t),n.d(t,"Question",(function(){return b}));var r,o=n("./src/helpers.ts"),i=n("./src/jsonobject.ts"),s=n("./src/survey-element.ts"),a=n("./src/error.ts"),l=n("./src/validator.ts"),u=n("./src/localizablestring.ts"),c=n("./src/conditions.ts"),p=n("./src/questionCustomWidgets.ts"),d=n("./src/settings.ts"),h=n("./src/rendererFactory.ts"),f=n("./src/utils/cssClassBuilder.ts"),m=n("./src/utils/utils.ts"),g=n("./src/console-warnings.ts"),y=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),v=function(e,t,n,r){var o,i=arguments.length,s=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,r);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(i<3?o(s):i>3?o(t,n,s):o(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},b=function(e){function t(n){var r=e.call(this,n)||this;return r.customWidgetData={isNeedRender:!0},r.isReadyValue=!0,r.dependedQuestions=[],r.onReadyChanged=r.addEvent(),r.isRunningValidatorsValue=!1,r.isValueChangedInSurvey=!1,r.allowNotifyValueChanged=!0,r.id=t.getQuestionId(),r.onCreating(),r.createNewArray("validators",(function(e){e.errorOwner=r})),r.addExpressionProperty("visibleIf",(function(e,t){r.visible=!0===t}),(function(e){return!r.areInvisibleElementsShowing})),r.addExpressionProperty("enableIf",(function(e,t){r.readOnly=!1===t})),r.addExpressionProperty("requiredIf",(function(e,t){r.isRequired=!0===t})),r.createLocalizableString("commentText",r,!0,"otherItemText"),r.locTitle.onGetDefaultTextCallback=function(){return r.name},r.locTitle.storeDefaultText=!0,r.createLocalizableString("requiredErrorText",r),r.registerPropertyChangedHandlers(["width"],(function(){r.updateQuestionCss(),r.parent&&r.parent.elementWidthChanged(r)})),r.registerPropertyChangedHandlers(["isRequired"],(function(){!r.isRequired&&r.errors.length>0&&r.validate(),r.locTitle.strChanged(),r.clearCssClasses()})),r.registerPropertyChangedHandlers(["indent","rightIndent"],(function(){r.onIndentChanged()})),r.registerPropertyChangedHandlers(["showCommentArea","showOtherItem"],(function(){r.initCommentFromSurvey()})),r.registerFunctionOnPropertiesValueChanged(["no","readOnly"],(function(){r.updateQuestionCss()})),r.registerPropertyChangedHandlers(["isMobile"],(function(){r.onMobileChanged()})),r}return y(t,e),t.getQuestionId=function(){return"sq_"+t.questionCounter++},t.prototype.isReadOnlyRenderDiv=function(){return this.isReadOnly&&"div"===d.settings.readOnly.commentRenderMode},t.prototype.setIsMobile=function(e){},t.prototype.createLocTitleProperty=function(){var t=this,n=e.prototype.createLocTitleProperty.call(this);return n.onGetTextCallback=function(e){return e||(e=t.name),t.survey?t.survey.getUpdatedQuestionTitle(t,e):e},this.locProcessedTitle=new u.LocalizableString(this,!0),this.locProcessedTitle.sharedData=n,n},t.prototype.getSurvey=function(t){return void 0===t&&(t=!1),t?this.parent?this.parent.getSurvey(t):null:this.onGetSurvey?this.onGetSurvey():e.prototype.getSurvey.call(this)},t.prototype.getValueName=function(){return this.valueName?this.valueName.toString():this.name},Object.defineProperty(t.prototype,"valueName",{get:function(){return this.getPropertyValue("valueName","")},set:function(e){var t=this.getValueName();this.setPropertyValue("valueName",e),this.onValueNameChanged(t)},enumerable:!1,configurable:!0}),t.prototype.onValueNameChanged=function(e){this.survey&&(this.survey.questionRenamed(this,this.name,e||this.name),this.initDataFromSurvey())},t.prototype.onNameChanged=function(e){this.locTitle.strChanged(),this.survey&&this.survey.questionRenamed(this,e,this.valueName?this.valueName:e)},Object.defineProperty(t.prototype,"isReady",{get:function(){return this.isReadyValue},set:function(e){var t=this.isReadyValue;this.isReadyValue=e,t!=e&&this.onReadyChanged.fire(this,{question:this,isReady:e,oldIsReady:t})},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"ariaRequired",{get:function(){return this.isRequired?"true":"false"},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"ariaInvalid",{get:function(){return this.errors.length>0?"true":"false"},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"ariaLabelledBy",{get:function(){return this.hasTitle?this.ariaTitleId:null},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"ariaExpanded",{get:function(){return null},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"ariaDescribedBy",{get:function(){return this.errors.length>0?this.id+"_errors":null},enumerable:!1,configurable:!0}),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(){this.removeFromParent(),this.dispose()},t.prototype.removeFromParent=function(){this.parent&&this.removeSelfFromList(this.parent.elements)},t.prototype.addDependedQuestion=function(e){!e||this.dependedQuestions.indexOf(e)>-1||this.dependedQuestions.push(e)},t.prototype.removeDependedQuestion=function(e){if(e){var t=this.dependedQuestions.indexOf(e);t>-1&&this.dependedQuestions.splice(t,1)}},t.prototype.updateDependedQuestions=function(){for(var e=0;e<this.dependedQuestions.length;e++)this.dependedQuestions[e].updateDependedQuestion()},t.prototype.updateDependedQuestion=function(){},t.prototype.resetDependedQuestion=function(){},Object.defineProperty(t.prototype,"isFlowLayout",{get:function(){return"flow"===this.getLayoutType()},enumerable:!1,configurable:!0}),t.prototype.getLayoutType=function(){return this.parent?this.parent.getChildrenLayoutType():"row"},t.prototype.isLayoutTypeSupported=function(e){return"flow"!==e},Object.defineProperty(t.prototype,"visible",{get:function(){return this.getPropertyValue("visible",!0)},set:function(e){e!=this.visible&&(this.setPropertyValue("visible",e),this.onVisibleChanged(),this.notifySurveyVisibilityChanged())},enumerable:!1,configurable:!0}),t.prototype.onVisibleChanged=function(){this.setPropertyValue("isVisible",this.isVisible),!this.isVisible&&this.errors&&this.errors.length>0&&(this.errors=[])},Object.defineProperty(t.prototype,"useDisplayValuesInDynamicTexts",{get:function(){return this.getPropertyValue("useDisplayValuesInDynamicTexts")},set:function(e){this.setPropertyValue("useDisplayValuesInDynamicTexts",e)},enumerable:!1,configurable:!0}),t.prototype.getUseDisplayValuesInDynamicTexts=function(){return this.useDisplayValuesInDynamicTexts},Object.defineProperty(t.prototype,"visibleIf",{get:function(){return this.getPropertyValue("visibleIf","")},set:function(e){this.setPropertyValue("visibleIf",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isVisible",{get:function(){return!(this.survey&&this.survey.areEmptyElementsHidden&&this.isEmpty())&&(!!this.areInvisibleElementsShowing||this.isVisibleCore())},enumerable:!1,configurable:!0}),t.prototype.isVisibleCore=function(){return this.visible},Object.defineProperty(t.prototype,"visibleIndex",{get:function(){return this.getPropertyValue("visibleIndex",-1)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hideNumber",{get:function(){return this.getPropertyValue("hideNumber")},set:function(e){this.setPropertyValue("hideNumber",e),this.notifySurveyVisibilityChanged()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isAllowTitleLeft",{get:function(){return!0},enumerable:!1,configurable:!0}),t.prototype.getType=function(){return"question"},Object.defineProperty(t.prototype,"isQuestion",{get:function(){return!0},enumerable:!1,configurable:!0}),t.prototype.moveTo=function(e,t){return void 0===t&&(t=null),this.moveToBase(this.parent,e,t)},t.prototype.getProgressInfo=function(){return this.hasInput?{questionCount:1,answeredQuestionCount:this.isEmpty()?0:1,requiredQuestionCount:this.isRequired?1:0,requiredAnsweredQuestionCount:!this.isEmpty()&&this.isRequired?1:0}:e.prototype.getProgressInfo.call(this)},t.prototype.runConditions=function(){this.data&&!this.isLoadingFromJson&&(this.isDesignMode||this.runCondition(this.getDataFilteredValues(),this.getDataFilteredProperties()),this.locStrsChanged())},t.prototype.setSurveyImpl=function(t,n){e.prototype.setSurveyImpl.call(this,t),this.survey&&(this.survey.questionCreated(this),!0!==n&&this.runConditions())},Object.defineProperty(t.prototype,"parent",{get:function(){return this.getPropertyValue("parent",null)},set:function(e){this.parent!==e&&(this.removeFromParent(),this.setPropertyValue("parent",e),this.updateQuestionCss(),this.onParentChanged())},enumerable:!1,configurable:!0}),t.prototype.onParentChanged=function(){},Object.defineProperty(t.prototype,"hasTitle",{get:function(){return"hidden"!==this.getTitleLocation()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"titleLocation",{get:function(){return this.getPropertyValue("titleLocation")},set:function(e){var t="hidden"==this.titleLocation||"hidden"==e;this.setPropertyValue("titleLocation",e.toLowerCase()),this.updateQuestionCss(),t&&this.notifySurveyVisibilityChanged()},enumerable:!1,configurable:!0}),t.prototype.getTitleOwner=function(){return this},t.prototype.getIsTitleRenderedAsString=function(){return"hidden"===this.titleLocation},t.prototype.notifySurveyVisibilityChanged=function(){if(this.survey&&!this.isLoadingFromJson){this.survey.questionVisibilityChanged(this,this.isVisible);var e=this.isClearValueOnHidden;this.visible||this.clearValueOnHidding(e),e&&this.isVisible&&this.updateValueWithDefaults()}},t.prototype.clearValueOnHidding=function(e){e&&this.clearValueIfInvisible()},t.prototype.getTitleLocation=function(){if(this.isFlowLayout)return"hidden";var e=this.getTitleLocationCore();return"left"!==e||this.isAllowTitleLeft||(e="top"),e},t.prototype.getTitleLocationCore=function(){return"default"!==this.titleLocation?this.titleLocation:this.parent?this.parent.getQuestionTitleLocation():this.survey?this.survey.questionTitleLocation:"top"},Object.defineProperty(t.prototype,"hasTitleOnLeft",{get:function(){return this.hasTitle&&"left"===this.getTitleLocation()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hasTitleOnTop",{get:function(){return this.hasTitle&&"top"===this.getTitleLocation()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hasTitleOnBottom",{get:function(){return this.hasTitle&&"bottom"===this.getTitleLocation()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hasTitleOnLeftTop",{get:function(){if(!this.hasTitle)return!1;var e=this.getTitleLocation();return"left"===e||"top"===e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"errorLocation",{get:function(){return this.survey?this.survey.questionErrorLocation:"top"},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hasInput",{get:function(){return!0},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hasSingleInput",{get:function(){return this.hasInput},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"inputId",{get:function(){return this.id+"i"},enumerable:!1,configurable:!0}),t.prototype.getDefaultTitleValue=function(){return this.name},t.prototype.getDefaultTitleTagName=function(){return d.settings.titleTags.question},Object.defineProperty(t.prototype,"descriptionLocation",{get:function(){return this.getPropertyValue("descriptionLocation")},set:function(e){this.setPropertyValue("descriptionLocation",e),this.updateQuestionCss()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hasDescriptionUnderTitle",{get:function(){return"underTitle"==this.getDescriptionLocation()&&this.hasDescription},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hasDescriptionUnderInput",{get:function(){return"underInput"==this.getDescriptionLocation()&&this.hasDescription},enumerable:!1,configurable:!0}),t.prototype.getDescriptionLocation=function(){return"default"!==this.descriptionLocation?this.descriptionLocation:this.survey?this.survey.questionDescriptionLocation:"underTitle"},t.prototype.needClickTitleFunction=function(){return e.prototype.needClickTitleFunction.call(this)||this.hasInput},t.prototype.processTitleClick=function(){var t=this;if(e.prototype.processTitleClick.call(this),!this.isCollapsed)return setTimeout((function(){t.focus()}),1),!0},Object.defineProperty(t.prototype,"requiredErrorText",{get:function(){return this.getLocalizableStringText("requiredErrorText")},set:function(e){this.setLocalizableStringText("requiredErrorText",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locRequiredErrorText",{get:function(){return this.getLocalizableString("requiredErrorText")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"commentText",{get:function(){return this.getLocalizableStringText("commentText")},set:function(e){this.setLocalizableStringText("commentText",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locCommentText",{get:function(){return this.getLocalizableString("commentText")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"commentPlaceHolder",{get:function(){return this.commentPlaceholder},set:function(e){this.commentPlaceholder=e},enumerable:!1,configurable:!0}),t.prototype.getAllErrors=function(){return this.errors.slice()},t.prototype.getErrorByType=function(e){for(var t=0;t<this.errors.length;t++)if(this.errors[t].getErrorType()===e)return this.errors[t];return null},Object.defineProperty(t.prototype,"customWidget",{get:function(){return this.isCustomWidgetRequested||this.customWidgetValue||(this.isCustomWidgetRequested=!0,this.updateCustomWidget()),this.customWidgetValue},enumerable:!1,configurable:!0}),t.prototype.updateCustomWidget=function(){this.customWidgetValue=p.CustomWidgetCollection.Instance.getCustomWidget(this)},t.prototype.localeChanged=function(){e.prototype.localeChanged.call(this),this.localeChangedCallback&&this.localeChangedCallback()},Object.defineProperty(t.prototype,"isCompositeQuestion",{get:function(){return!1},enumerable:!1,configurable:!0}),t.prototype.updateCommentElements=function(){if(this.autoGrowComment&&Array.isArray(this.commentElements))for(var e=0;e<this.commentElements.length;e++){var t=this.commentElements[e];t&&Object(m.increaseHeightByContent)(t)}},t.prototype.onCommentInput=function(e){this.isInputTextUpdate?e.target&&(this.comment=e.target.value):this.updateCommentElements()},t.prototype.onCommentChange=function(e){this.comment=e.target.value,this.comment!==e.target.value&&(e.target.value=this.comment)},t.prototype.afterRenderQuestionElement=function(e){this.survey&&this.hasSingleInput&&this.survey.afterRenderQuestionInput(this,e)},t.prototype.afterRender=function(e){var t=this;this.survey&&(this.survey.afterRenderQuestion(this,e),this.afterRenderQuestionCallback&&this.afterRenderQuestionCallback(this,e),(this.supportComment()||this.supportOther())&&(this.commentElements=[],this.getCommentElementsId().forEach((function(e){var n=d.settings.environment.root.getElementById(e);n&&t.commentElements.push(n)})),this.updateCommentElements()),this.checkForResponsiveness(e))},t.prototype.getCommentElementsId=function(){return[this.commentId]},t.prototype.beforeDestroyQuestionElement=function(e){this.commentElements=void 0},Object.defineProperty(t.prototype,"processedTitle",{get:function(){return this.locProcessedTitle.textOrHtml||this.name},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"fullTitle",{get:function(){return this.locTitle.renderedHtml},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"titlePattern",{get:function(){return this.survey?this.survey.questionTitlePattern:"numTitleRequire"},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isRequireTextOnStart",{get:function(){return this.isRequired&&"requireNumTitle"==this.titlePattern},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isRequireTextBeforeTitle",{get:function(){return this.isRequired&&"numRequireTitle"==this.titlePattern&&""!==this.requiredText},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isRequireTextAfterTitle",{get:function(){return this.isRequired&&"numTitleRequire"==this.titlePattern&&""!==this.requiredText},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"startWithNewLine",{get:function(){return this.getPropertyValue("startWithNewLine")},set:function(e){this.startWithNewLine!=e&&this.setPropertyValue("startWithNewLine",e)},enumerable:!1,configurable:!0}),t.prototype.calcCssClasses=function(e){var t={error:{}};return this.copyCssClasses(t,e.question),this.copyCssClasses(t.error,e.error),this.updateCssClasses(t,e),this.survey&&this.survey.updateQuestionCssClasses(this,t),this.onUpdateCssClassesCallback&&this.onUpdateCssClassesCallback(t),t},Object.defineProperty(t.prototype,"cssRoot",{get:function(){return this.ensureElementCss(),this.getPropertyValue("cssRoot","")},enumerable:!1,configurable:!0}),t.prototype.setCssRoot=function(e){this.setPropertyValue("cssRoot",e)},t.prototype.getCssRoot=function(t){return(new f.CssClassBuilder).append(e.prototype.getCssRoot.call(this,t)).append(this.isFlowLayout&&!this.isDesignMode?t.flowRoot:t.mainRoot).append(t.titleLeftRoot,!this.isFlowLayout&&this.hasTitleOnLeft).append(t.hasError,this.errors.length>0).append(t.small,!this.width).append(t.answered,this.isAnswered).toString()},Object.defineProperty(t.prototype,"cssHeader",{get:function(){return this.ensureElementCss(),this.getPropertyValue("cssHeader","")},enumerable:!1,configurable:!0}),t.prototype.setCssHeader=function(e){this.setPropertyValue("cssHeader",e)},t.prototype.getCssHeader=function(e){return(new f.CssClassBuilder).append(e.header).append(e.headerTop,this.hasTitleOnTop).append(e.headerLeft,this.hasTitleOnLeft).append(e.headerBottom,this.hasTitleOnBottom).toString()},Object.defineProperty(t.prototype,"cssContent",{get:function(){return this.ensureElementCss(),this.getPropertyValue("cssContent","")},enumerable:!1,configurable:!0}),t.prototype.setCssContent=function(e){this.setPropertyValue("cssContent",e)},t.prototype.getCssContent=function(e){return(new f.CssClassBuilder).append(e.content).append(e.contentLeft,this.hasTitleOnLeft).toString()},Object.defineProperty(t.prototype,"cssTitle",{get:function(){return this.ensureElementCss(),this.getPropertyValue("cssTitle","")},enumerable:!1,configurable:!0}),t.prototype.setCssTitle=function(e){this.setPropertyValue("cssTitle",e)},t.prototype.getCssTitle=function(t){return(new f.CssClassBuilder).append(e.prototype.getCssTitle.call(this,t)).append(t.titleOnAnswer,!this.containsErrors&&this.isAnswered).toString()},Object.defineProperty(t.prototype,"cssDescription",{get:function(){return this.ensureElementCss(),this.getPropertyValue("cssDescription","")},enumerable:!1,configurable:!0}),t.prototype.setCssDescription=function(e){this.setPropertyValue("cssDescription",e)},t.prototype.getCssDescription=function(e){return(new f.CssClassBuilder).append(e.description,this.hasDescriptionUnderTitle).append(e.descriptionUnderInput,this.hasDescriptionUnderInput).toString()},t.prototype.getIsErrorsModeTooltip=function(){return e.prototype.getIsErrorsModeTooltip.call(this)&&!this.customWidget},t.prototype.showErrorOnCore=function(e){return!this.isErrorsModeTooltip&&!this.showErrorsAboveQuestion&&!this.showErrorsBelowQuestion&&this.errorLocation===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}),t.prototype.getIsTooltipErrorSupportedByParent=function(){return this.parentQuestion?this.parentQuestion.getIsTooltipErrorInsideSupported():e.prototype.getIsTooltipErrorSupportedByParent.call(this)},Object.defineProperty(t.prototype,"showErrorsOutsideQuestion",{get:function(){return this.isDefaultV2Theme&&!(this.hasParent&&this.getIsTooltipErrorSupportedByParent())},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"showErrorsAboveQuestion",{get:function(){return this.showErrorsOutsideQuestion&&"top"===this.errorLocation},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"showErrorsBelowQuestion",{get:function(){return this.showErrorsOutsideQuestion&&"bottom"===this.errorLocation},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"cssError",{get:function(){return this.ensureElementCss(),this.getPropertyValue("cssError","")},enumerable:!1,configurable:!0}),t.prototype.setCssError=function(e){this.setPropertyValue("cssError",e)},t.prototype.getCssError=function(e){return(new f.CssClassBuilder).append(e.error.root).append(e.error.outsideQuestion,this.showErrorsBelowQuestion||this.showErrorsAboveQuestion).append(e.error.belowQuestion,this.showErrorsBelowQuestion).append(e.error.aboveQuestion,this.showErrorsAboveQuestion).append(e.error.tooltip,this.isErrorsModeTooltip).append(e.error.locationTop,this.showErrorOnTop).append(e.error.locationBottom,this.showErrorOnBottom).toString()},t.prototype.getRootCss=function(){return(new f.CssClassBuilder).append(this.cssRoot).append(this.cssClasses.disabled,this.isReadOnly).append(this.cssClasses.invisible,!this.isDesignMode&&this.areInvisibleElementsShowing&&!this.visible).toString()},t.prototype.updateElementCss=function(t){e.prototype.updateElementCss.call(this,t),t&&this.updateQuestionCss(!0),this.onIndentChanged()},t.prototype.updateQuestionCss=function(e){this.isLoadingFromJson||!this.survey||!0!==e&&!this.cssClassesValue||this.updateElementCssCore(this.cssClasses)},t.prototype.ensureElementCss=function(){this.cssClassesValue||this.updateQuestionCss(!0)},t.prototype.updateElementCssCore=function(e){this.setCssRoot(this.getCssRoot(e)),this.setCssHeader(this.getCssHeader(e)),this.setCssContent(this.getCssContent(e)),this.setCssTitle(this.getCssTitle(e)),this.setCssDescription(this.getCssDescription(e)),this.setCssError(this.getCssError(e))},t.prototype.updateCssClasses=function(e,t){if(t.question){var n=t[this.getCssType()],r=(new f.CssClassBuilder).append(e.title).append(t.question.titleRequired,this.isRequired);e.title=r.toString();var o=(new f.CssClassBuilder).append(e.root).append(n,this.isRequired&&!!t.question.required);if(null==n)e.root=o.toString();else if("string"==typeof n||n instanceof String)e.root=o.append(n.toString()).toString();else for(var i in e.root=o.toString(),n)e[i]=n[i]}},t.prototype.getCssType=function(){return this.getType()},Object.defineProperty(t.prototype,"renderCssRoot",{get:function(){return this.cssClasses.root||void 0},enumerable:!1,configurable:!0}),t.prototype.onIndentChanged=function(){this.paddingLeft=this.getIndentSize(this.indent),this.paddingRight=this.getIndentSize(this.rightIndent)},t.prototype.getIndentSize=function(e){return e<1||!this.getSurvey()||!this.cssClasses||!this.cssClasses.indent?"":e*this.cssClasses.indent+"px"},t.prototype.focus=function(e){if(void 0===e&&(e=!1),!this.isDesignMode&&this.isVisible&&this.survey){var t=this.page;t&&this.survey.activePage!==t?this.survey.focusQuestionByInstance(this,e):this.focuscore(e)}},t.prototype.focuscore=function(e){void 0===e&&(e=!1),this.survey&&(this.expandAllParents(this),this.survey.scrollElementToTop(this,this,null,this.id));var t=e?this.getFirstErrorInputElementId():this.getFirstInputElementId();s.SurveyElement.FocusElement(t)&&this.fireCallback(this.focusCallback)},t.prototype.expandAllParents=function(e){e&&(e.isCollapsed&&e.expand(),this.expandAllParents(e.parent),this.expandAllParents(e.parentQuestion))},t.prototype.focusIn=function(){this.survey&&this.survey.whenQuestionFocusIn(this)},t.prototype.fireCallback=function(e){e&&e()},t.prototype.getOthersMaxLength=function(){return this.survey&&this.survey.maxOthersLength>0?this.survey.maxOthersLength:null},t.prototype.onCreating=function(){},t.prototype.getFirstQuestionToFocus=function(e){return this.hasInput&&(!e||this.currentErrorCount>0)?this:null},t.prototype.getFirstInputElementId=function(){return this.inputId},t.prototype.getFirstErrorInputElementId=function(){return this.getFirstInputElementId()},t.prototype.getProcessedTextValue=function(e){var n=e.name.toLocaleLowerCase();e.isExists=-1!==Object.keys(t.TextPreprocessorValuesMap).indexOf(n)||void 0!==this[e.name],e.value=this[t.TextPreprocessorValuesMap[n]||e.name]},t.prototype.supportComment=function(){var e=this.getPropertyByName("showCommentArea");return!e||e.visible},t.prototype.supportOther=function(){return!1},Object.defineProperty(t.prototype,"isRequired",{get:function(){return this.getPropertyValue("isRequired")},set:function(e){this.setPropertyValue("isRequired",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"requiredIf",{get:function(){return this.getPropertyValue("requiredIf","")},set:function(e){this.setPropertyValue("requiredIf",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"showCommentArea",{get:function(){return this.getPropertyValue("showCommentArea",!1)},set:function(e){this.supportComment()&&this.setPropertyValue("showCommentArea",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hasComment",{get:function(){return this.showCommentArea},set:function(e){this.showCommentArea=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"id",{get:function(){return this.getPropertyValue("id")},set:function(e){this.setPropertyValue("id",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"ariaTitleId",{get:function(){return this.id+"_ariaTitle"},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"commentId",{get:function(){return this.id+"_comment"},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"ariaRole",{get:function(){return"textbox"},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"showOtherItem",{get:function(){return this.getPropertyValue("showOtherItem",!1)},set:function(e){this.supportOther()&&this.showOtherItem!=e&&(this.setPropertyValue("showOtherItem",e),this.hasOtherChanged())},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hasOther",{get:function(){return this.showOtherItem},set:function(e){this.showOtherItem=e},enumerable:!1,configurable:!0}),t.prototype.hasOtherChanged=function(){},Object.defineProperty(t.prototype,"requireUpdateCommentValue",{get:function(){return this.hasComment||this.hasOther},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isReadOnly",{get:function(){var e=!!this.parent&&this.parent.isReadOnly,t=!!this.parentQuestion&&this.parentQuestion.isReadOnly,n=!!this.survey&&this.survey.isDisplayMode;return this.readOnly||e||n||t},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isInputReadOnly",{get:function(){if(void 0!==this.forceIsInputReadOnly)return this.forceIsInputReadOnly;var e=d.settings.supportCreatorV2&&this.isDesignMode;return this.isReadOnly||e},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}),t.prototype.onReadOnlyChanged=function(){this.setPropertyValue("isInputReadOnly",this.isInputReadOnly),e.prototype.onReadOnlyChanged.call(this),this.updateQuestionCss()},Object.defineProperty(t.prototype,"enableIf",{get:function(){return this.getPropertyValue("enableIf","")},set:function(e){this.setPropertyValue("enableIf",e)},enumerable:!1,configurable:!0}),t.prototype.surveyChoiceItemVisibilityChange=function(){},t.prototype.runCondition=function(e,t){this.isDesignMode||(t||(t={}),t.question=this,this.runConditionCore(e,t),this.isValueChangedDirectly||(this.defaultValueRunner=this.getDefaultRunner(this.defaultValueRunner,this.defaultValueExpression),this.runDefaultValueExpression(this.defaultValueRunner,e,t)))},Object.defineProperty(t.prototype,"no",{get:function(){return this.getPropertyValue("no")},enumerable:!1,configurable:!0}),t.prototype.calcNo=function(){if(!this.hasTitle||this.hideNumber)return"";var e=o.Helpers.getNumberByIndex(this.visibleIndex,this.getStartIndex());return this.survey&&(e=this.survey.getUpdatedQuestionNo(this,e)),e},t.prototype.getStartIndex=function(){return this.parent?this.parent.getQuestionStartIndex():this.survey?this.survey.questionStartIndex:""},t.prototype.onSurveyLoad=function(){this.isCustomWidgetRequested=!1,this.fireCallback(this.surveyLoadCallback),this.updateValueWithDefaults(),this.isEmpty()&&this.initDataFromSurvey(),this.onIndentChanged()},t.prototype.onSetData=function(){e.prototype.onSetData.call(this),this.survey&&(this.initDataFromSurvey(),this.onSurveyValueChanged(this.value),this.updateValueWithDefaults(),this.onIndentChanged(),this.updateQuestionCss(),this.updateIsAnswered())},t.prototype.initDataFromSurvey=function(){if(this.data){var e=this.data.getValue(this.getValueName());o.Helpers.isValueEmpty(e)&&this.isLoadingFromJson||this.updateValueFromSurvey(e),this.initCommentFromSurvey()}},t.prototype.initCommentFromSurvey=function(){this.data&&this.requireUpdateCommentValue?this.updateCommentFromSurvey(this.data.getComment(this.getValueName())):this.updateCommentFromSurvey("")},t.prototype.runExpression=function(e){if(this.survey&&e)return this.survey.runExpression(e)},Object.defineProperty(t.prototype,"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,"valueForSurvey",{get:function(){return this.valueToDataCallback?this.valueToDataCallback(this.value):this.value},enumerable:!1,configurable:!0}),t.prototype.clearValue=function(){void 0!==this.value&&(this.value=void 0),this.comment&&(this.comment=void 0)},t.prototype.unbindValue=function(){this.clearValue()},t.prototype.createValueCopy=function(){return this.getUnbindValue(this.value)},t.prototype.initDataUI=function(){},t.prototype.getUnbindValue=function(e){return this.isValueSurveyElement(e)?e:o.Helpers.getUnbindValue(e)},t.prototype.isValueSurveyElement=function(e){return!!e&&(Array.isArray(e)?e.length>0&&this.isValueSurveyElement(e[0]):!!e.getType&&!!e.onPropertyChanged)},t.prototype.canClearValueAsInvisible=function(e){return!(("onHiddenContainer"!==e||this.isParentVisible)&&(this.isVisible&&this.isParentVisible||this.page&&this.page.isStartPage||this.survey&&this.valueName&&this.survey.hasVisibleQuestionByValueName(this.valueName)))},Object.defineProperty(t.prototype,"isParentVisible",{get:function(){if(this.parentQuestion&&!this.parentQuestion.isVisible)return!1;for(var e=this.parent;e;){if(!e.isVisible)return!1;e=e.parent}return!0},enumerable:!1,configurable:!0}),t.prototype.clearValueIfInvisible=function(e){void 0===e&&(e="onHidden");var t=this.getClearIfInvisible();"none"!==t&&("onHidden"===e&&"onComplete"===t||"onHiddenContainer"===e&&t!==e||this.clearValueIfInvisibleCore(e))},t.prototype.clearValueIfInvisibleCore=function(e){this.canClearValueAsInvisible(e)&&this.clearValue()},Object.defineProperty(t.prototype,"clearIfInvisible",{get:function(){return this.getPropertyValue("clearIfInvisible")},set:function(e){this.setPropertyValue("clearIfInvisible",e)},enumerable:!1,configurable:!0}),t.prototype.getClearIfInvisible=function(){var e=this.clearIfInvisible;return this.survey?this.survey.getQuestionClearIfInvisible(e):"default"!==e?e:"onComplete"},Object.defineProperty(t.prototype,"displayValue",{get:function(){return this.isLoadingFromJson?"":this.getDisplayValue(!0)},enumerable:!1,configurable:!0}),t.prototype.getDisplayValue=function(e,t){void 0===t&&(t=void 0);var n=this.calcDisplayValue(e,t);return this.survey&&(n=this.survey.getQuestionDisplayValue(this,n)),this.displayValueCallback?this.displayValueCallback(n):n},t.prototype.calcDisplayValue=function(e,t){if(void 0===t&&(t=void 0),this.customWidget){var n=this.customWidget.getDisplayValue(this,t);if(n)return n}return t=null==t?this.createValueCopy():t,this.isValueEmpty(t,!this.allowSpaceAsAnswer)?this.getDisplayValueEmpty():this.getDisplayValueCore(e,t)},t.prototype.getDisplayValueCore=function(e,t){return t},t.prototype.getDisplayValueEmpty=function(){return""},Object.defineProperty(t.prototype,"defaultValue",{get:function(){return this.getPropertyValue("defaultValue")},set:function(e){this.isValueExpression(e)?this.defaultValueExpression=e.substring(1):(this.setPropertyValue("defaultValue",this.convertDefaultValue(e)),this.updateValueWithDefaults())},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"defaultValueExpression",{get:function(){return this.getPropertyValue("defaultValueExpression")},set:function(e){this.setPropertyValue("defaultValueExpression",e),this.defaultValueRunner=void 0,this.updateValueWithDefaults()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"resizeStyle",{get:function(){return this.allowResizeComment?"both":"none"},enumerable:!1,configurable:!0}),t.prototype.getPlainData=function(e){var t=this;if(e||(e={includeEmpty:!0,includeQuestionTypes:!1}),e.includeEmpty||!this.isEmpty()){var n={name:this.name,title:this.locTitle.renderedHtml,value:this.value,displayValue:this.displayValue,isNode:!1,getString:function(e){return"object"==typeof e?JSON.stringify(e):e}};return!0===e.includeQuestionTypes&&(n.questionType=this.getType()),(e.calculations||[]).forEach((function(e){n[e.propertyName]=t[e.propertyName]})),this.hasComment&&(n.isNode=!0,n.data=[{name:0,isComment:!0,title:"Comment",value:d.settings.commentSuffix,displayValue:this.comment,getString:function(e){return"object"==typeof e?JSON.stringify(e):e},isNode:!1}]),n}},Object.defineProperty(t.prototype,"correctAnswer",{get:function(){return this.getPropertyValue("correctAnswer")},set:function(e){this.setPropertyValue("correctAnswer",this.convertDefaultValue(e))},enumerable:!1,configurable:!0}),t.prototype.convertDefaultValue=function(e){return e},Object.defineProperty(t.prototype,"quizQuestionCount",{get:function(){return this.isVisible&&this.hasInput&&!this.isValueEmpty(this.correctAnswer)?this.getQuizQuestionCount():0},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"correctAnswerCount",{get:function(){return this.isEmpty()||this.isValueEmpty(this.correctAnswer)?0:this.getCorrectAnswerCount()},enumerable:!1,configurable:!0}),t.prototype.getQuizQuestionCount=function(){return 1},t.prototype.getCorrectAnswerCount=function(){return this.checkIfAnswerCorrect()?1:0},t.prototype.checkIfAnswerCorrect=function(){var e=this.isTwoValueEquals(this.value,this.correctAnswer,!d.settings.comparator.caseSensitive,!0),t={result:e,correctAnswer:e?1:0};return this.survey&&this.survey.onCorrectQuestionAnswer(this,t),t.result},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,"isClearValueOnHidden",{get:function(){var e=this.getClearIfInvisible();return"none"!==e&&"onComplete"!==e&&("onHidden"===e||"onHiddenContainer"===e)},enumerable:!1,configurable:!0}),t.prototype.getQuestionFromArray=function(e,t){return null},t.prototype.getDefaultValue=function(){return this.defaultValue},t.prototype.isDefaultValueEmpty=function(){return!this.defaultValueExpression&&this.isValueEmpty(this.defaultValue,!this.allowSpaceAsAnswer)},t.prototype.getDefaultRunner=function(e,t){return!e&&t&&(e=new c.ExpressionRunner(t)),e&&(e.expression=t),e},t.prototype.setDefaultValue=function(){var e=this;this.defaultValueRunner=this.getDefaultRunner(this.defaultValueRunner,this.defaultValueExpression),this.setValueAndRunExpression(this.defaultValueRunner,this.getUnbindValue(this.defaultValue),(function(t){e.isTwoValueEquals(e.value,t)||(e.value=t)}))},t.prototype.isValueExpression=function(e){return!!e&&"string"==typeof e&&e.length>0&&"="==e[0]},t.prototype.setValueAndRunExpression=function(e,t,n,r,o){var i=this;void 0===r&&(r=null),void 0===o&&(o=null);var s=function(e){i.runExpressionSetValue(e,n)};this.runDefaultValueExpression(e,r,o,s)||s(t)},t.prototype.convertFuncValuetoQuestionValue=function(e){return o.Helpers.convertValToQuestionVal(e)},t.prototype.runExpressionSetValue=function(e,t){t(this.convertFuncValuetoQuestionValue(e))},t.prototype.runDefaultValueExpression=function(e,t,n,r){var o=this;return void 0===t&&(t=null),void 0===n&&(n=null),!(!e||!this.data||(r||(r=function(e){o.runExpressionSetValue(e,(function(e){o.isTwoValueEquals(o.value,e)||(o.value=e)}))}),t||(t=this.data.getFilteredValues()),n||(n=this.data.getFilteredProperties()),e&&e.canRun&&(e.onRunComplete=function(e){null==e&&(e=o.defaultValue),o.isChangingViaDefaultValue=!0,r(e),o.isChangingViaDefaultValue=!1},e.run(t,n)),0))},Object.defineProperty(t.prototype,"comment",{get:function(){return this.getQuestionComment()},set:function(e){if(e){var t=e.toString().trim();t!==e&&(e=t)===this.comment&&this.setPropertyValueDirectly("comment",e)}this.comment!=e&&(this.setQuestionComment(e),this.updateCommentElements())},enumerable:!1,configurable:!0}),t.prototype.getCommentAreaCss=function(e){return void 0===e&&(e=!1),(new f.CssClassBuilder).append("form-group",e).append(this.cssClasses.formGroup,!e).append(this.cssClasses.commentArea).toString()},t.prototype.getQuestionComment=function(){return this.questionComment},t.prototype.setQuestionComment=function(e){this.setNewComment(e)},t.prototype.isEmpty=function(){return this.isValueEmpty(this.value,!this.allowSpaceAsAnswer)},Object.defineProperty(t.prototype,"isAnswered",{get:function(){return this.getPropertyValue("isAnswered")},set:function(e){this.setPropertyValue("isAnswered",e)},enumerable:!1,configurable:!0}),t.prototype.updateIsAnswered=function(){var e=this.isAnswered;this.setPropertyValue("isAnswered",this.getIsAnswered()),e!==this.isAnswered&&this.updateQuestionCss()},t.prototype.getIsAnswered=function(){return!this.isEmpty()},Object.defineProperty(t.prototype,"validators",{get:function(){return this.getPropertyValue("validators")},set:function(e){this.setPropertyValue("validators",e)},enumerable:!1,configurable:!0}),t.prototype.getValidators=function(){return this.validators},t.prototype.getSupportedValidators=function(){for(var e=[],t=this.getType();t;){var n=d.settings.supportedValidators[t];if(n)for(var r=n.length-1;r>=0;r--)e.splice(0,0,n[r]);t=i.Serializer.findClass(t).parentName}return e},t.prototype.addConditionObjectsByContext=function(e,t){e.push({name:this.getValueName(),text:this.processedTitle,question:this})},t.prototype.getNestedQuestions=function(e){void 0===e&&(e=!1);var t=[];return this.collectNestedQuestions(t,e),1===t.length&&t[0]===this?[]:t},t.prototype.collectNestedQuestions=function(e,t){void 0===t&&(t=!1),t&&!this.isVisible||this.collectNestedQuestionsCore(e,t)},t.prototype.collectNestedQuestionsCore=function(e,t){e.push(this)},t.prototype.getConditionJson=function(e,t){void 0===e&&(e=null),void 0===t&&(t=null);var n=(new i.JsonObject).toJsonObject(this);return n.type=this.getType(),n},t.prototype.hasErrors=function(e,t){void 0===e&&(e=!0),void 0===t&&(t=null);var n=this.errors.length>0,r=this.checkForErrors(!!t&&!0===t.isOnValueChanged);return e&&(this.survey&&this.survey.beforeSettingQuestionErrors(this,r),this.errors=r),this.updateContainsErrors(),n!=r.length>0&&this.updateQuestionCss(),this.isCollapsed&&t&&e&&r.length>0&&this.expand(),r.length>0},t.prototype.validate=function(e,t){return void 0===e&&(e=!0),void 0===t&&(t=null),t&&t.isOnValueChanged&&this.parent&&this.parent.validateContainerOnly(),!this.hasErrors(e,t)},Object.defineProperty(t.prototype,"currentErrorCount",{get:function(){return this.errors.length},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"requiredText",{get:function(){return null!=this.survey&&this.isRequired?this.survey.requiredText:""},enumerable:!1,configurable:!0}),t.prototype.addError=function(e){if(e){var t;t="string"==typeof e||e instanceof String?new a.CustomError(e,this.survey):e,this.errors.push(t)}},t.prototype.removeError=function(e){var t=this.errors,n=t.indexOf(e);-1!==n&&t.splice(n,1)},t.prototype.checkForErrors=function(e){var t=new Array;return this.isVisible&&this.canCollectErrors()&&this.collectErrors(t,e),t},t.prototype.canCollectErrors=function(){return!this.isReadOnly},t.prototype.collectErrors=function(e,t){if(this.onCheckForErrors(e,t),!(e.length>0)&&this.canRunValidators(t)){var n=this.runValidators();if(n.length>0){e.length=0;for(var r=0;r<n.length;r++)e.push(n[r])}if(this.survey&&0==e.length){var o=this.fireSurveyValidation();o&&e.push(o)}}},t.prototype.canRunValidators=function(e){return!0},t.prototype.fireSurveyValidation=function(){return this.validateValueCallback?this.validateValueCallback():this.survey?this.survey.validateQuestion(this):null},t.prototype.onCheckForErrors=function(e,t){var n=this;if((!t||this.isOldAnswered)&&this.hasRequiredError()){var r=new a.AnswerRequiredError(this.requiredErrorText,this);r.onUpdateErrorTextCallback=function(e){e.text=n.requiredErrorText},e.push(r)}},t.prototype.hasRequiredError=function(){return this.isRequired&&this.isEmpty()},Object.defineProperty(t.prototype,"isRunningValidators",{get:function(){return this.getIsRunningValidators()},enumerable:!1,configurable:!0}),t.prototype.getIsRunningValidators=function(){return this.isRunningValidatorsValue},t.prototype.runValidators=function(){var e=this;return this.validatorRunner&&(this.validatorRunner.onAsyncCompleted=null),this.validatorRunner=new l.ValidatorRunner,this.isRunningValidatorsValue=!0,this.validatorRunner.onAsyncCompleted=function(t){e.doOnAsyncCompleted(t)},this.validatorRunner.run(this)},t.prototype.doOnAsyncCompleted=function(e){for(var t=0;t<e.length;t++)this.errors.push(e[t]);this.isRunningValidatorsValue=!1,this.raiseOnCompletedAsyncValidators()},t.prototype.raiseOnCompletedAsyncValidators=function(){this.onCompletedAsyncValidators&&!this.isRunningValidators&&(this.onCompletedAsyncValidators(this.getAllErrors().length>0),this.onCompletedAsyncValidators=null)},t.prototype.setNewValue=function(e){this.isNewValueEqualsToValue(e)||(this.isValueEmpty(e,!this.allowSpaceAsAnswer)||this.isNewValueCorrect(e)?(this.isOldAnswered=this.isAnswered,this.setNewValueInData(e),this.allowNotifyValueChanged&&this.onValueChanged(),this.isAnswered!==this.isOldAnswered&&this.updateQuestionCss(),this.isOldAnswered=void 0):g.ConsoleWarnings.inCorrectQuestionValue(this.name,e))},t.prototype.isNewValueCorrect=function(e){return!0},t.prototype.isNewValueEqualsToValue=function(e){var t=this.value;return!(!this.isTwoValueEquals(e,t,!1,!1)||e===t&&t&&(Array.isArray(t)||"object"==typeof t))},t.prototype.isTextValue=function(){return!1},Object.defineProperty(t.prototype,"isSurveyInputTextUpdate",{get:function(){return!!this.survey&&this.survey.isUpdateValueTextOnTyping},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"requireStrictCompare",{get:function(){return!1},enumerable:!1,configurable:!0}),t.prototype.getDataLocNotification=function(){return!!this.isInputTextUpdate&&"text"},Object.defineProperty(t.prototype,"isInputTextUpdate",{get:function(){return this.isSurveyInputTextUpdate&&this.isTextValue()},enumerable:!1,configurable:!0}),t.prototype.setNewValueInData=function(e){e=this.valueToData(e),this.isValueChangedInSurvey||this.setValueCore(e)},t.prototype.getValueCore=function(){return this.questionValue},t.prototype.setValueCore=function(e){this.setQuestionValue(e),null!=this.data&&this.canSetValueToSurvey()&&(e=this.valueForSurvey,this.data.setValue(this.getValueName(),e,this.getDataLocNotification(),this.allowNotifyValueChanged)),this.isMouseDown=!1},t.prototype.canSetValueToSurvey=function(){return!0},t.prototype.valueFromData=function(e){return e},t.prototype.valueToData=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,null!=this.data&&this.data.setComment(this.getValueName(),e,!!this.isSurveyInputTextUpdate&&"text"))},t.prototype.getValidName=function(e){return C(e)},t.prototype.updateValueFromSurvey=function(e){e=this.getUnbindValue(e),this.valueFromDataCallback&&(e=this.valueFromDataCallback(e)),this.setQuestionValue(this.valueFromData(e)),this.updateIsAnswered()},t.prototype.updateCommentFromSurvey=function(e){this.questionComment=e},t.prototype.onChangeQuestionValue=function(e){},t.prototype.setValueChangedDirectly=function(){this.isValueChangedDirectly=!0},t.prototype.setQuestionValue=function(e,t){void 0===t&&(t=!0);var n=this.isTwoValueEquals(this.questionValue,e);n||this.isChangingViaDefaultValue||this.setValueChangedDirectly(),this.questionValue=e,n||this.onChangeQuestionValue(e),!n&&this.allowNotifyValueChanged&&this.fireCallback(this.valueChangedCallback),t&&this.updateIsAnswered()},t.prototype.onSurveyValueChanged=function(e){},t.prototype.setVisibleIndex=function(e){return(!this.isVisible||!this.hasTitle&&!d.settings.numbering.includeQuestionsWithHiddenTitle||this.hideNumber&&!d.settings.numbering.includeQuestionsWithHiddenNumber)&&(e=-1),this.setPropertyValue("visibleIndex",e),this.setPropertyValue("no",this.calcNo()),e<0?0:1},t.prototype.removeElement=function(e){return!1},t.prototype.supportGoNextPageAutomatic=function(){return!1},t.prototype.supportGoNextPageError=function(){return!0},t.prototype.clearIncorrectValues=function(){},t.prototype.clearOnDeletingContainer=function(){},t.prototype.clearErrors=function(){this.errors=[]},t.prototype.clearUnusedValues=function(){},t.prototype.onAnyValueChanged=function(e){},t.prototype.checkBindings=function(e,t){if(!this.bindings.isEmpty()&&this.data)for(var n=this.bindings.getPropertiesByValueName(e),r=0;r<n.length;r++){var i=n[r];this.isValueEmpty(t)&&o.Helpers.isNumber(this[i])&&(t=0),this[i]=t}},t.prototype.getComponentName=function(){return h.RendererFactory.Instance.getRendererByQuestion(this)},t.prototype.isDefaultRendering=function(){return!!this.customWidget||"default"===this.renderAs||"default"===this.getComponentName()},t.prototype.getErrorCustomText=function(e,t){return this.survey?this.survey.getSurveyErrorCustomText(this,e,t):e},t.prototype.getValidatorTitle=function(){return null},Object.defineProperty(t.prototype,"validatedValue",{get:function(){return this.value},set:function(e){this.value=e},enumerable:!1,configurable:!0}),t.prototype.getAllValues=function(){return this.data?this.data.getAllValues():null},t.prototype.processPopupVisiblilityChanged=function(e,t){this.survey.processPopupVisiblityChanged(this,e,t)},t.prototype.transformToMobileView=function(){},t.prototype.transformToDesktopView=function(){},t.prototype.needResponsiveWidth=function(){return!1},t.prototype.supportResponsiveness=function(){return!1},t.prototype.needResponsiveness=function(){return this.supportResponsiveness()&&this.isDefaultV2Theme&&!this.isDesignMode},t.prototype.checkForResponsiveness=function(e){var t=this;this.needResponsiveness()&&(this.isCollapsed?this.registerPropertyChangedHandlers(["state"],(function(){t.isExpanded&&(t.initResponsiveness(e),t.unregisterPropertyChangedHandlers(["state"],"for-responsiveness"))}),"for-responsiveness"):this.initResponsiveness(e))},t.prototype.getObservedElementSelector=function(){return".sd-scrollable-container"},t.prototype.onMobileChanged=function(){this.onMobileChangedCallback&&this.onMobileChangedCallback()},t.prototype.triggerResponsiveness=function(e){void 0===e&&(e=!0),this.triggerResponsivenessCallback&&this.triggerResponsivenessCallback(e)},t.prototype.initResponsiveness=function(e){var t=this;if(this.destroyResizeObserver(),e&&this.isDefaultRendering()){var n=this.getObservedElementSelector();if(!n)return;if(!e.querySelector(n))return;var r=!1,o=void 0;this.triggerResponsivenessCallback=function(i){i&&(o=void 0,t.renderAs="default",r=!1);var s=function(){var i=e.querySelector(n);!o&&t.isDefaultRendering()&&(o=i.scrollWidth),r=!(r||!Object(m.isContainerVisible)(i))&&t.processResponsiveness(o,Object(m.getElementWidth)(i))};i?setTimeout(s,1):s()},this.resizeObserver=new ResizeObserver((function(){t.triggerResponsiveness(!1)})),this.onMobileChangedCallback=function(){setTimeout((function(){var r=e.querySelector(n);t.processResponsiveness(o,Object(m.getElementWidth)(r))}),0)},this.resizeObserver.observe(e)}},t.prototype.getCompactRenderAs=function(){return"default"},t.prototype.getDesktopRenderAs=function(){return"default"},t.prototype.processResponsiveness=function(e,t){if(t=Math.round(t),Math.abs(e-t)>2){var n=this.renderAs;return this.renderAs=e>t?this.getCompactRenderAs():this.getDesktopRenderAs(),n!==this.renderAs}return!1},t.prototype.destroyResizeObserver=function(){this.resizeObserver&&(this.resizeObserver.disconnect(),this.resizeObserver=void 0,this.onMobileChangedCallback=void 0,this.triggerResponsivenessCallback=void 0,this.renderAs=this.getDesktopRenderAs())},t.prototype.dispose=function(){e.prototype.dispose.call(this);for(var t=0;t<this.dependedQuestions.length;t++)this.dependedQuestions[t].resetDependedQuestion();this.destroyResizeObserver()},t.TextPreprocessorValuesMap={title:"processedTitle",require:"requiredText"},t.questionCounter=100,v([Object(i.property)({defaultValue:!1,onSet:function(e,t){t.setIsMobile(e)}})],t.prototype,"isMobile",void 0),v([Object(i.property)()],t.prototype,"forceIsInputReadOnly",void 0),v([Object(i.property)({localizable:!0})],t.prototype,"commentPlaceholder",void 0),v([Object(i.property)()],t.prototype,"renderAs",void 0),v([Object(i.property)({defaultValue:!1})],t.prototype,"inMatrixMode",void 0),t}(s.SurveyElement);function C(e){if(!e)return e;for(e=e.trim().replace(/[\{\}]+/g,"");e&&e[0]===d.settings.expressionDisableConversionChar;)e=e.substring(1);return e}i.Serializer.addClass("question",[{name:"!name",onSettingValue:function(e,t){return C(t)}},{name:"state",default:"default",choices:["default","collapsed","expanded"]},{name:"visible:switch",default:!0,overridingProperty:"visibleIf"},{name:"useDisplayValuesInDynamicTexts:boolean",alternativeName:"useDisplayValuesInTitle",default:!0,layout:"row"},"visibleIf:condition",{name:"width"},{name:"minWidth",defaultFunc:function(){return d.settings.minWidth}},{name:"maxWidth",defaultFunc:function(){return d.settings.maxWidth}},{name:"startWithNewLine:boolean",default:!0,layout:"row"},{name:"indent:number",default:0,choices:[0,1,2,3],layout:"row"},{name:"page",isSerializable:!1,visibleIf:function(e){var t=e?e.survey:null;return!t||!t.pages||t.pages.length>1},choices:function(e){var t=e?e.survey:null;return t?t.pages.map((function(e){return{value:e.name,text:e.title}})):[]}},{name:"title:text",serializationProperty:"locTitle",layout:"row",dependsOn:"name",onPropertyEditorUpdate:function(e,t){e&&t&&(t.placeholder=e.name)}},{name:"titleLocation",default:"default",choices:["default","top","bottom","left","hidden"],layout:"row"},{name:"description:text",serializationProperty:"locDescription",layout:"row"},{name:"descriptionLocation",default:"default",choices:["default","underInput","underTitle"]},{name:"hideNumber:boolean",dependsOn:"titleLocation",visibleIf:function(e){if(!e)return!0;if("hidden"===e.titleLocation)return!1;var t=e?e.parent:null;if(t&&"off"===t.showQuestionNumbers)return!1;var n=e?e.survey:null;return!n||"off"!==n.showQuestionNumbers||!!t&&"onpanel"===t.showQuestionNumbers}},{name:"valueName",onSettingValue:function(e,t){return C(t)}},"enableIf:condition","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:"readOnly:switch",overridingProperty:"enableIf"},{name:"validators:validators",baseClassName:"surveyvalidator",classNamePart:"validator"},{name:"bindings:bindings",serializationProperty:"bindings",visibleIf:function(e){return e.bindings.getNames().length>0}},{name:"renderAs",default:"default",visible:!1},{name:"showCommentArea",visible:!1,default:!1,alternativeName:"hasComment",category:"general"},{name:"commentText",dependsOn:"showCommentArea",visibleIf:function(e){return e.showCommentArea},serializationProperty:"locCommentText",layout:"row"},{name:"commentPlaceholder",alternativeName:"commentPlaceHolder",serializationProperty:"locCommentPlaceholder",dependsOn:"showCommentArea",visibleIf:function(e){return e.hasComment}}]),i.Serializer.addAlterNativeClassName("question","questionbase")},"./src/questionCustomWidgets.ts":function(e,t,n){"use strict";n.r(t),n.d(t,"QuestionCustomWidget",(function(){return o})),n.d(t,"CustomWidgetCollection",(function(){return i}));var r=n("./src/base.ts"),o=function(){function e(e,t){this.name=e,this.widgetJson=t,this.htmlTemplate=t.htmlTemplate?t.htmlTemplate:""}return e.prototype.afterRender=function(e,t){var n=this;this.widgetJson.afterRender&&(e.localeChangedCallback=function(){n.widgetJson.willUnmount&&n.widgetJson.willUnmount(e,t),n.widgetJson.afterRender(e,t)},this.widgetJson.afterRender(e,t))},e.prototype.willUnmount=function(e,t){this.widgetJson.willUnmount&&this.widgetJson.willUnmount(e,t)},e.prototype.getDisplayValue=function(e,t){return void 0===t&&(t=void 0),this.widgetJson.getDisplayValue?this.widgetJson.getDisplayValue(e,t):null},e.prototype.isFit=function(e){return!(!this.isLibraryLoaded()||!this.widgetJson.isFit)&&this.widgetJson.isFit(e)},Object.defineProperty(e.prototype,"canShowInToolbox",{get:function(){return!1!==this.widgetJson.showInToolbox&&"customtype"==i.Instance.getActivatedBy(this.name)&&(!this.widgetJson.widgetIsLoaded||this.widgetJson.widgetIsLoaded())},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"showInToolbox",{get:function(){return!1!==this.widgetJson.showInToolbox},set:function(e){this.widgetJson.showInToolbox=e},enumerable:!1,configurable:!0}),e.prototype.init=function(){this.widgetJson.init&&this.widgetJson.init()},e.prototype.activatedByChanged=function(e){this.isLibraryLoaded()&&this.widgetJson.activatedByChanged&&this.widgetJson.activatedByChanged(e)},e.prototype.isLibraryLoaded=function(){return!this.widgetJson.widgetIsLoaded||1==this.widgetJson.widgetIsLoaded()},Object.defineProperty(e.prototype,"isDefaultRender",{get:function(){return this.widgetJson.isDefaultRender},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"pdfQuestionType",{get:function(){return this.widgetJson.pdfQuestionType},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"pdfRender",{get:function(){return this.widgetJson.pdfRender},enumerable:!1,configurable:!0}),e}(),i=function(){function e(){this.widgetsValues=[],this.widgetsActivatedBy={},this.onCustomWidgetAdded=new r.Event}return Object.defineProperty(e.prototype,"widgets",{get:function(){return this.widgetsValues},enumerable:!1,configurable:!0}),e.prototype.add=function(e,t){void 0===t&&(t="property"),this.addCustomWidget(e,t)},e.prototype.addCustomWidget=function(e,t){void 0===t&&(t="property");var n=e.name;n||(n="widget_"+this.widgets.length+1);var r=new o(n,e);return this.widgetsValues.push(r),r.init(),this.widgetsActivatedBy[n]=t,r.activatedByChanged(t),this.onCustomWidgetAdded.fire(r,null),r},e.prototype.getActivatedBy=function(e){return this.widgetsActivatedBy[e]||"property"},e.prototype.setActivatedBy=function(e,t){if(e&&t){var n=this.getCustomWidgetByName(e);n&&(this.widgetsActivatedBy[e]=t,n.activatedByChanged(t))}},e.prototype.clear=function(){this.widgetsValues=[]},e.prototype.getCustomWidgetByName=function(e){for(var t=0;t<this.widgets.length;t++)if(this.widgets[t].name==e)return this.widgets[t];return null},e.prototype.getCustomWidget=function(e){for(var t=0;t<this.widgetsValues.length;t++)if(this.widgetsValues[t].isFit(e))return this.widgetsValues[t];return null},e.Instance=new e,e}()},"./src/question_baseselect.ts":function(e,t,n){"use strict";n.r(t),n.d(t,"QuestionSelectBase",(function(){return v})),n.d(t,"QuestionCheckboxBase",(function(){return b}));var r,o=n("./src/jsonobject.ts"),i=n("./src/survey.ts"),s=n("./src/question.ts"),a=n("./src/itemvalue.ts"),l=n("./src/surveyStrings.ts"),u=n("./src/error.ts"),c=n("./src/choicesRestful.ts"),p=n("./src/conditions.ts"),d=n("./src/helpers.ts"),h=n("./src/settings.ts"),f=n("./src/utils/cssClassBuilder.ts"),m=n("./src/utils/utils.ts"),g=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),y=function(e,t,n,r){var o,i=arguments.length,s=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,r);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(i<3?o(s):i>3?o(t,n,s):o(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},v=function(e){function t(t){var n=e.call(this,t)||this;n.otherItemValue=new a.ItemValue("other"),n.noneItemValue=new a.ItemValue(h.settings.noneItemValue),n.isSettingDefaultValue=!1,n.isSettingComment=!1,n.isRunningChoices=!1,n.isFirstLoadChoicesFromUrl=!0,n.isUpdatingChoicesDependedQuestions=!1,n.prevIsOtherSelected=!1;var r=n.createLocalizableString("noneText",n.noneItemValue,!0,"noneItemText");n.noneItemValue.locOwner=n,n.noneItemValue.setLocText(r),n.createItemValues("choices"),n.registerPropertyChangedHandlers(["choices"],(function(){n.filterItems()||n.onVisibleChoicesChanged()})),n.registerPropertyChangedHandlers(["choicesFromQuestion","choicesFromQuestionMode","choiceValuesFromQuestion","choiceTextsFromQuestion","showNoneItem"],(function(){n.onVisibleChoicesChanged()})),n.registerPropertyChangedHandlers(["hideIfChoicesEmpty"],(function(){n.onVisibleChanged()})),n.createNewArray("visibleChoices"),n.setNewRestfulProperty();var o=n.createLocalizableString("otherText",n.otherItemValue,!0,"otherItemText");return n.createLocalizableString("otherErrorText",n,!0,"otherRequiredError"),n.otherItemValue.locOwner=n,n.otherItemValue.setLocText(o),n.choicesByUrl.createItemValue=function(e){return n.createItemValue(e)},n.choicesByUrl.beforeSendRequestCallback=function(){n.onBeforeSendRequest()},n.choicesByUrl.getResultCallback=function(e){n.onLoadChoicesFromUrl(e)},n.choicesByUrl.updateResultCallback=function(e,t){return n.survey?n.survey.updateChoicesFromServer(n,e,t):e},n}return g(t,e),Object.defineProperty(t.prototype,"waitingChoicesByURL",{get:function(){return!this.isChoicesLoaded&&!this.choicesByUrl.isEmpty},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"waitingAcyncOperations",{get:function(){return this.waitingChoicesByURL||this.waitingGetChoiceDisplayValueResponse},enumerable:!1,configurable:!0}),t.prototype.getType=function(){return"selectbase"},t.prototype.dispose=function(){e.prototype.dispose.call(this);var t=this.getQuestionWithChoices();t&&t.removeDependedQuestion(this)},t.prototype.resetDependedQuestion=function(){this.choicesFromQuestion=""},Object.defineProperty(t.prototype,"otherId",{get:function(){return this.id+"_other"},enumerable:!1,configurable:!0}),t.prototype.getCommentElementsId=function(){return[this.commentId,this.otherId]},t.prototype.getItemValueType=function(){return"itemvalue"},t.prototype.createItemValue=function(e,t){var n=o.Serializer.createClass(this.getItemValueType(),e);return n.locOwner=this,t&&(n.text=t),n},Object.defineProperty(t.prototype,"isUsingCarryForward",{get:function(){return!!this.carryForwardQuestionType},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"carryForwardQuestionType",{get:function(){return this.getPropertyValue("carryForwardQuestionType")},enumerable:!1,configurable:!0}),t.prototype.setCarryForwardQuestionType=function(e,t){var n=e?"select":t?"array":void 0;this.setPropertyValue("carryForwardQuestionType",n)},t.prototype.supportGoNextPageError=function(){return!this.isOtherSelected||!!this.otherValue},t.prototype.isLayoutTypeSupported=function(e){return!0},t.prototype.localeChanged=function(){e.prototype.localeChanged.call(this),"none"!==this.choicesOrder&&this.updateVisibleChoices()},t.prototype.locStrsChanged=function(){e.prototype.locStrsChanged.call(this),this.choicesFromUrl&&(a.ItemValue.locStrsChanged(this.choicesFromUrl),a.ItemValue.locStrsChanged(this.visibleChoices))},Object.defineProperty(t.prototype,"otherValue",{get:function(){return this.showCommentArea?this.otherValueCore:this.comment},set:function(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.hasNone&&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,"choicesVisibleIf",{get:function(){return this.getPropertyValue("choicesVisibleIf","")},set:function(e){this.setPropertyValue("choicesVisibleIf",e),this.filterItems()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"choicesEnableIf",{get:function(){return this.getPropertyValue("choicesEnableIf","")},set:function(e){this.setPropertyValue("choicesEnableIf",e),this.filterItems()},enumerable:!1,configurable:!0}),t.prototype.surveyChoiceItemVisibilityChange=function(){this.filterItems()},t.prototype.runCondition=function(t,n){e.prototype.runCondition.call(this,t,n),this.isUsingCarryForward||(this.runItemsEnableCondition(t,n),this.runItemsCondition(t,n))},t.prototype.isTextValue=function(){return!0},t.prototype.setDefaultValue=function(){this.isSettingDefaultValue=!this.isValueEmpty(this.defaultValue)&&this.hasUnknownValue(this.defaultValue),this.prevOtherValue=void 0,e.prototype.setDefaultValue.call(this),this.isSettingDefaultValue=!1},t.prototype.getIsMultipleValue=function(){return!1},t.prototype.convertDefaultValue=function(e){if(null==e||null==e)return e;if(this.getIsMultipleValue()){if(!Array.isArray(e))return[e]}else if(Array.isArray(e)&&e.length>0)return e[0];return e},t.prototype.filterItems=function(){if(this.isLoadingFromJson||!this.data||this.areInvisibleElementsShowing)return!1;var e=this.getDataFilteredValues(),t=this.getDataFilteredProperties();return this.runItemsEnableCondition(e,t),this.runItemsCondition(e,t)},t.prototype.runItemsCondition=function(e,t){this.setConditionalChoicesRunner();var n=this.runConditionsForItems(e,t);return this.filteredChoicesValue&&this.filteredChoicesValue.length===this.activeChoices.length&&(this.filteredChoicesValue=void 0),n&&(this.onVisibleChoicesChanged(),this.clearIncorrectValues()),n},t.prototype.runItemsEnableCondition=function(e,t){var n=this;this.setConditionalEnableChoicesRunner(),a.ItemValue.runEnabledConditionsForItems(this.activeChoices,this.conditionChoicesEnableIfRunner,e,t,(function(e,t){return t&&n.onEnableItemCallBack(e)}))&&this.clearDisabledValues(),this.onAfterRunItemsEnableCondition()},t.prototype.onAfterRunItemsEnableCondition=function(){},t.prototype.onEnableItemCallBack=function(e){return!0},t.prototype.onSelectedItemValuesChangedHandler=function(e){var t;null===(t=this.survey)||void 0===t||t.loadedChoicesFromServer(this)},t.prototype.getItemIfChoicesNotContainThisValue=function(e,t){return this.waitingChoicesByURL?this.createItemValue(e,t):null},t.prototype.getSingleSelectedItem=function(){var e=this.selectedItemValues;if(this.isEmpty())return null;var t=a.ItemValue.getItemByValue(this.visibleChoices,this.value);return this.onGetSingleSelectedItem(t),t||e&&this.value==e.id||this.updateSelectedItemValues(),t||e||(this.isOtherSelected?this.otherItem:this.getItemIfChoicesNotContainThisValue(this.value))},t.prototype.onGetSingleSelectedItem=function(e){},t.prototype.getMultipleSelectedItems=function(){return[]},t.prototype.setConditionalChoicesRunner=function(){this.choicesVisibleIf?(this.conditionChoicesVisibleIfRunner||(this.conditionChoicesVisibleIfRunner=new p.ConditionRunner(this.choicesVisibleIf)),this.conditionChoicesVisibleIfRunner.expression=this.choicesVisibleIf):this.conditionChoicesVisibleIfRunner=null},t.prototype.setConditionalEnableChoicesRunner=function(){this.choicesEnableIf?(this.conditionChoicesEnableIfRunner||(this.conditionChoicesEnableIfRunner=new p.ConditionRunner(this.choicesEnableIf)),this.conditionChoicesEnableIfRunner.expression=this.choicesEnableIf):this.conditionChoicesEnableIfRunner=null},t.prototype.canSurveyChangeItemVisibility=function(){return!!this.survey&&this.survey.canChangeChoiceItemsVisibility()},t.prototype.changeItemVisisbility=function(){var e=this;return this.canSurveyChangeItemVisibility()?function(t,n){return e.survey.getChoiceItemVisibility(e,t,n)}:null},t.prototype.runConditionsForItems=function(e,t){this.filteredChoicesValue=[];var n=this.changeItemVisisbility();return a.ItemValue.runConditionsForItems(this.activeChoices,this.getFilteredChoices(),this.areInvisibleElementsShowing?null:this.conditionChoicesVisibleIfRunner,e,t,!this.survey||!this.survey.areInvisibleElementsShowing,(function(e,t){return n?n(e,t):t}))},t.prototype.getHasOther=function(e){return this.getIsItemValue(e,this.otherItem)},t.prototype.getIsItemValue=function(e,t){return e===t.value},Object.defineProperty(t.prototype,"validatedValue",{get:function(){return this.rendredValueToDataCore(this.value)},enumerable:!1,configurable:!0}),t.prototype.createRestful=function(){return new c.ChoicesRestful},t.prototype.setNewRestfulProperty=function(){this.setPropertyValue("choicesByUrl",this.createRestful()),this.choicesByUrl.owner=this,this.choicesByUrl.loadingOwner=this},Object.defineProperty(t.prototype,"autoOtherMode",{get:function(){return this.getPropertyValue("autoOtherMode")},set:function(e){this.setPropertyValue("autoOtherMode",e)},enumerable:!1,configurable:!0}),t.prototype.getQuestionComment=function(){return this.showCommentArea?e.prototype.getQuestionComment.call(this):this.otherValueCore?this.otherValueCore:this.hasComment||this.getStoreOthersAsComment()?e.prototype.getQuestionComment.call(this):this.otherValueCore},t.prototype.selectOtherValueFromComment=function(e){this.value=e?this.otherItem.value:void 0},t.prototype.setQuestionComment=function(t){this.showCommentArea?e.prototype.setQuestionComment.call(this,t):(this.onUpdateCommentOnAutoOtherMode(t),this.getStoreOthersAsComment()?e.prototype.setQuestionComment.call(this,t):this.setOtherValueInternally(t),this.updateChoicesDependedQuestions())},t.prototype.onUpdateCommentOnAutoOtherMode=function(e){if(this.autoOtherMode){this.prevOtherValue=void 0;var t=this.isOtherSelected;(!t&&e||t&&!e)&&this.selectOtherValueFromComment(!!e)}},t.prototype.setOtherValueInternally=function(e){this.isSettingComment||e==this.otherValueCore||(this.isSettingComment=!0,this.otherValueCore=e,this.isOtherSelected&&!this.isRenderedValueSetting&&(this.value=this.rendredValueToData(this.renderedValue)),this.isSettingComment=!1)},t.prototype.clearValue=function(){e.prototype.clearValue.call(this),this.prevOtherValue=void 0},t.prototype.updateCommentFromSurvey=function(t){e.prototype.updateCommentFromSurvey.call(this,t),this.prevOtherValue=void 0},Object.defineProperty(t.prototype,"renderedValue",{get:function(){return this.getPropertyValue("renderedValue",null)},set:function(e){this.setPropertyValue("renderedValue",e),e=this.rendredValueToData(e),this.isTwoValueEquals(e,this.value)||(this.value=e)},enumerable:!1,configurable:!0}),t.prototype.setQuestionValue=function(t,n,r){if(void 0===n&&(n=!0),void 0===r&&(r=!0),!this.isLoadingFromJson&&!this.isTwoValueEquals(this.value,t)&&(e.prototype.setQuestionValue.call(this,t,n),this.setPropertyValue("renderedValue",this.rendredValueFromData(t)),this.updateChoicesDependedQuestions(),!this.hasComment&&r)){var o=this.isOtherSelected;if(o&&this.prevOtherValue){var i=this.prevOtherValue;this.prevOtherValue=void 0,this.otherValue=i}!o&&this.otherValue&&(this.getStoreOthersAsComment()&&!this.autoOtherMode&&(this.prevOtherValue=this.otherValue),this.otherValue="")}},t.prototype.setNewValue=function(t){t=this.valueFromData(t),(this.choicesByUrl.isRunning||this.choicesByUrl.isWaitingForParameters)&&this.isValueEmpty(t)||(this.cachedValueForUrlRequests=t),e.prototype.setNewValue.call(this,t)},t.prototype.valueFromData=function(t){var n=a.ItemValue.getItemByValue(this.activeChoices,t);return n?n.value:e.prototype.valueFromData.call(this,t)},t.prototype.rendredValueFromData=function(e){return this.getStoreOthersAsComment()?e:this.renderedValueFromDataCore(e)},t.prototype.rendredValueToData=function(e){return this.getStoreOthersAsComment()?e:this.rendredValueToDataCore(e)},t.prototype.renderedValueFromDataCore=function(e){return this.hasUnknownValue(e,!0,!1)?(this.otherValue=e,this.otherItem.value):this.valueFromData(e)},t.prototype.rendredValueToDataCore=function(e){return e==this.otherItem.value&&this.needConvertRenderedOtherToDataValue()&&(e=this.otherValue),e},t.prototype.needConvertRenderedOtherToDataValue=function(){var e=this.otherValue;return!!e&&!!(e=e.trim())&&this.hasUnknownValue(e,!0,!1)},t.prototype.updateSelectedItemValues=function(){this.waitingGetChoiceDisplayValueResponse||(this.getIsMultipleValue()?this.updateMultipleSelectedItemValues():this.updateSingleSelectedItemValues())},t.prototype.updateSingleSelectedItemValues=function(){var e=this;!this.survey||this.isEmpty()||a.ItemValue.getItemByValue(this.choices,this.value)||(this.waitingGetChoiceDisplayValueResponse=!0,this.isReady=!this.waitingAcyncOperations,this.survey.getChoiceDisplayValue({question:this,values:[this.value],setItems:function(t){e.waitingGetChoiceDisplayValueResponse=!1,t&&t.length&&(e.selectedItemValues=e.createItemValue(e.value,t[0]),e.isReady=!e.waitingAcyncOperations)}}))},t.prototype.updateMultipleSelectedItemValues=function(){var e=this,t=this.value,n=t.some((function(t){return!a.ItemValue.getItemByValue(e.choices,t)}));this.survey&&!this.isEmpty()&&n&&(this.waitingGetChoiceDisplayValueResponse=!0,this.isReady=this.waitingAcyncOperations,this.survey.getChoiceDisplayValue({question:this,values:t,setItems:function(t){e.waitingGetChoiceDisplayValueResponse=!1,t&&t.length&&(e.selectedItemValues=t.map((function(t,n){return e.createItemValue(e.value[n],t)})),e.isReady=!e.waitingAcyncOperations)}}))},t.prototype.hasUnknownValue=function(e,t,n,r){if(void 0===t&&(t=!1),void 0===n&&(n=!0),void 0===r&&(r=!1),!r&&this.isValueEmpty(e))return!1;if(t&&e==this.otherItem.value)return!1;if(this.hasNone&&e==this.noneItem.value)return!1;var o=n?this.getFilteredChoices():this.activeChoices;return null==a.ItemValue.getItemByValue(o,e)},t.prototype.isValueDisabled=function(e){var t=a.ItemValue.getItemByValue(this.getFilteredChoices(),e);return!!t&&!t.isEnabled},Object.defineProperty(t.prototype,"choicesByUrl",{get:function(){return this.getPropertyValue("choicesByUrl")},set:function(e){e&&(this.setNewRestfulProperty(),this.choicesByUrl.fromJSON(e.toJSON()))},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"choices",{get:function(){return this.getPropertyValue("choices")},set:function(e){this.setPropertyValue("choices",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"choicesFromQuestion",{get:function(){return this.getPropertyValue("choicesFromQuestion")},set:function(e){var t=this.getQuestionWithChoices();this.isLockVisibleChoices=!!t&&t.name===e,t&&t.name!==e&&t.removeDependedQuestion(this),this.setPropertyValue("choicesFromQuestion",e),this.isLockVisibleChoices=!1},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"choicesFromQuestionMode",{get:function(){return this.getPropertyValue("choicesFromQuestionMode")},set:function(e){this.setPropertyValue("choicesFromQuestionMode",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"choiceValuesFromQuestion",{get:function(){return this.getPropertyValue("choiceValuesFromQuestion")},set:function(e){this.setPropertyValue("choiceValuesFromQuestion",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"choiceTextsFromQuestion",{get:function(){return this.getPropertyValue("choiceTextsFromQuestion")},set:function(e){this.setPropertyValue("choiceTextsFromQuestion",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hideIfChoicesEmpty",{get:function(){return this.getPropertyValue("hideIfChoicesEmpty")},set:function(e){this.setPropertyValue("hideIfChoicesEmpty",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"keepIncorrectValues",{get:function(){return this.getPropertyValue("keepIncorrectValues",!1)},set:function(e){this.setPropertyValue("keepIncorrectValues",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"storeOthersAsComment",{get:function(){return this.getPropertyValue("storeOthersAsComment")},set:function(e){this.setPropertyValue("storeOthersAsComment",e)},enumerable:!1,configurable:!0}),t.prototype.hasOtherChanged=function(){this.onVisibleChoicesChanged()},Object.defineProperty(t.prototype,"choicesOrder",{get:function(){return this.getPropertyValue("choicesOrder")},set:function(e){(e=e.toLowerCase())!=this.choicesOrder&&(this.setPropertyValue("choicesOrder",e),this.onVisibleChoicesChanged())},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"otherText",{get:function(){return this.getLocalizableStringText("otherText")},set:function(e){this.setLocalizableStringText("otherText",e),this.onVisibleChoicesChanged()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locOtherText",{get:function(){return this.getLocalizableString("otherText")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"otherPlaceHolder",{get:function(){return this.otherPlaceholder},set:function(e){this.otherPlaceholder=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"otherErrorText",{get:function(){return this.getLocalizableStringText("otherErrorText")},set:function(e){this.setLocalizableStringText("otherErrorText",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locOtherErrorText",{get:function(){return this.getLocalizableString("otherErrorText")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"visibleChoices",{get:function(){return this.getPropertyValue("visibleChoices")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"enabledChoices",{get:function(){for(var e=[],t=this.visibleChoices,n=0;n<t.length;n++)t[n].isEnabled&&e.push(t[n]);return e},enumerable:!1,configurable:!0}),t.prototype.updateVisibleChoices=function(){if(!this.isLoadingFromJson){var e=new Array,t=this.calcVisibleChoices();t||(t=[]);for(var n=0;n<t.length;n++)e.push(t[n]);this.setPropertyValue("visibleChoices",e)}},t.prototype.calcVisibleChoices=function(){if(this.canUseFilteredChoices())return this.getFilteredChoices();var e=this.sortVisibleChoices(this.getFilteredChoices().slice());return this.addToVisibleChoices(e,this.isAddDefaultItems),e},t.prototype.canUseFilteredChoices=function(){return!this.isAddDefaultItems&&!this.hasNone&&!this.hasOther&&"none"==this.choicesOrder},t.prototype.setCanShowOptionItemCallback=function(e){this.canShowOptionItemCallback=e,e&&this.onVisibleChoicesChanged()},Object.defineProperty(t.prototype,"newItem",{get:function(){return this.newItemValue},enumerable:!1,configurable:!0}),t.prototype.addToVisibleChoices=function(e,t){t&&(this.newItemValue||(this.newItemValue=this.createItemValue("newitem"),this.newItemValue.isGhost=!0),!this.isUsingCarryForward&&this.canShowOptionItem(this.newItemValue,t,!1)&&e.push(this.newItemValue)),this.supportNone()&&this.canShowOptionItem(this.noneItem,t,this.hasNone)&&e.push(this.noneItem),this.supportOther()&&this.canShowOptionItem(this.otherItem,t,this.hasOther)&&e.push(this.otherItem)},t.prototype.canShowOptionItem=function(e,t,n){var r=t&&(!this.canShowOptionItemCallback||this.canShowOptionItemCallback(e))||n;return this.canSurveyChangeItemVisibility()?this.changeItemVisisbility()(e,r):r},t.prototype.isItemInList=function(e){return e===this.otherItem?this.hasOther:e===this.noneItem?this.hasNone:e!==this.newItemValue},Object.defineProperty(t.prototype,"isAddDefaultItems",{get:function(){return h.settings.supportCreatorV2&&h.settings.showDefaultItemsInCreatorV2&&this.isDesignMode&&!this.customWidget&&!this.isContentElement},enumerable:!1,configurable:!0}),t.prototype.getPlainData=function(t){var n=this;void 0===t&&(t={includeEmpty:!0,includeQuestionTypes:!1});var r=e.prototype.getPlainData.call(this,t);if(r){var o=Array.isArray(this.value)?this.value:[this.value];r.isNode=!0,r.data=(r.data||[]).concat(o.map((function(e,r){var o=a.ItemValue.getItemByValue(n.visibleChoices,e),i={name:r,title:"Choice",value:e,displayValue:n.getChoicesDisplayValue(n.visibleChoices,e),getString:function(e){return"object"==typeof e?JSON.stringify(e):e},isNode:!1};return o&&(t.calculations||[]).forEach((function(e){i[e.propertyName]=o[e.propertyName]})),n.isOtherSelected&&n.otherItemValue===o&&(i.isOther=!0,i.displayValue=n.otherValue),i})))}return r},t.prototype.getDisplayValueCore=function(e,t){return this.getChoicesDisplayValue(this.visibleChoices,t)},t.prototype.getDisplayValueEmpty=function(){return a.ItemValue.getTextOrHtmlByValue(this.visibleChoices,void 0)},t.prototype.getChoicesDisplayValue=function(e,t){if(t==this.otherItemValue.value)return this.otherValue?this.otherValue:this.locOtherText.textOrHtml;var n=this.getSingleSelectedItem();if(n&&this.isTwoValueEquals(n.value,t))return n.locText.textOrHtml;var r=a.ItemValue.getTextOrHtmlByValue(e,t);return""==r&&t?t:r},t.prototype.getDisplayArrayValue=function(e,t,n){for(var r=this,o=this.visibleChoices,i=[],s=[],a=0;a<t.length;a++)s.push(n?n(a):t[a]);if(d.Helpers.isTwoValueEquals(this.value,s)&&this.getMultipleSelectedItems().forEach((function(e){return i.push(r.getItemDisplayValue(e))})),0===i.length)for(a=0;a<s.length;a++){var l=this.getChoicesDisplayValue(o,s[a]);l&&i.push(l)}return i.join(", ")},t.prototype.getItemDisplayValue=function(e){return e===this.otherItem&&this.comment?this.comment:e.locText.textOrHtml},t.prototype.getFilteredChoices=function(){return this.filteredChoicesValue?this.filteredChoicesValue:this.activeChoices},Object.defineProperty(t.prototype,"activeChoices",{get:function(){var e=this.getCarryForwardQuestion();return"select"===this.carryForwardQuestionType?(e.addDependedQuestion(this),this.getChoicesFromSelectQuestion(e)):"array"===this.carryForwardQuestionType?(e.addDependedQuestion(this),this.getChoicesFromArrayQuestion(e)):this.choicesFromUrl?this.choicesFromUrl:this.getChoices()},enumerable:!1,configurable:!0}),t.prototype.getCarryForwardQuestion=function(e){var t=this.findCarryForwardQuestion(e),n=this.getQuestionWithChoicesCore(t),r=n?null:this.getQuestionWithArrayValue(t);return this.setCarryForwardQuestionType(!!n,!!r),n||r?t:null},t.prototype.getQuestionWithChoices=function(){return this.getQuestionWithChoicesCore(this.findCarryForwardQuestion())},t.prototype.findCarryForwardQuestion=function(e){return e||(e=this.data),this.choicesFromQuestion&&e?e.findQuestionByName(this.choicesFromQuestion):null},t.prototype.getQuestionWithChoicesCore=function(e){return e&&e.visibleChoices&&o.Serializer.isDescendantOf(e.getType(),"selectbase")&&e!==this?e:null},t.prototype.getQuestionWithArrayValue=function(e){return e&&e.isValueArray?e:null},t.prototype.getChoicesFromArrayQuestion=function(e){if(this.isDesignMode)return[];var t=e.value;if(!Array.isArray(t))return[];for(var n=[],r=0;r<t.length;r++){var o=t[r];if(d.Helpers.isValueObject(o)){var i=this.getValueKeyName(o);if(i&&!this.isValueEmpty(o[i])){var s=this.choiceTextsFromQuestion?o[this.choiceTextsFromQuestion]:void 0;n.push(this.createItemValue(o[i],s))}}}return n},t.prototype.getValueKeyName=function(e){if(this.choiceValuesFromQuestion)return this.choiceValuesFromQuestion;var t=Object.keys(e);return t.length>0?t[0]:void 0},t.prototype.getChoicesFromSelectQuestion=function(e){if(this.isDesignMode)return[];for(var t=[],n="selected"==this.choicesFromQuestionMode||"unselected"!=this.choicesFromQuestionMode&&void 0,r=e.visibleChoices,o=0;o<r.length;o++)if(!this.isBuiltInChoice(r[o],e))if(void 0!==n){var i=e.isItemSelected(r[o]);(i&&n||!i&&!n)&&t.push(this.copyChoiceItem(r[o]))}else t.push(this.copyChoiceItem(r[o]));return"selected"===this.choicesFromQuestionMode&&e.isOtherSelected&&e.comment&&t.push(this.createItemValue(e.otherItem.value,e.comment)),t},t.prototype.copyChoiceItem=function(e){var t=this.createItemValue(e.value);return t.setData(e),t},Object.defineProperty(t.prototype,"hasActiveChoices",{get:function(){var e=this.visibleChoices;e&&0!=e.length||(this.onVisibleChoicesChanged(),e=this.visibleChoices);for(var t=0;t<e.length;t++)if(!this.isBuiltInChoice(e[t],this))return!0;return!1},enumerable:!1,configurable:!0}),t.prototype.isHeadChoice=function(e,t){return!1},t.prototype.isFootChoice=function(e,t){return e===t.noneItem||e===t.otherItem||e===t.newItemValue},t.prototype.isBuiltInChoice=function(e,t){return this.isHeadChoice(e,t)||this.isFootChoice(e,t)},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.isSupportProperty=function(e){return!this.isDesignMode||this.getPropertyByName(e).visible},t.prototype.onCheckForErrors=function(t,n){var r=this;if(e.prototype.onCheckForErrors.call(this,t,n),this.hasOther&&this.isOtherSelected&&!this.otherValue){var o=new u.OtherEmptyError(this.otherErrorText,this);o.onUpdateErrorTextCallback=function(e){e.text=r.otherErrorText},t.push(o)}},t.prototype.setSurveyImpl=function(t,n){this.isRunningChoices=!0,e.prototype.setSurveyImpl.call(this,t,n),this.isRunningChoices=!1,this.runChoicesByUrl(),this.isAddDefaultItems&&this.updateVisibleChoices()},t.prototype.setSurveyCore=function(t){e.prototype.setSurveyCore.call(this,t),t&&this.choicesFromQuestion&&this.onVisibleChoicesChanged()},t.prototype.getStoreOthersAsComment=function(){return!this.isSettingDefaultValue&&!this.showCommentArea&&(!0===this.storeOthersAsComment||"default"==this.storeOthersAsComment&&(null==this.survey||this.survey.storeOthersAsComment)||!this.choicesByUrl.isEmpty&&!this.choicesFromUrl)},t.prototype.onSurveyLoad=function(){this.runChoicesByUrl(),this.onVisibleChoicesChanged(),e.prototype.onSurveyLoad.call(this)},t.prototype.onAnyValueChanged=function(t){e.prototype.onAnyValueChanged.call(this,t),t!=this.getValueName()&&this.runChoicesByUrl(),t&&t==this.choicesFromQuestion&&this.onVisibleChoicesChanged()},t.prototype.updateValueFromSurvey=function(t){var n="";this.hasOther&&!this.isRunningChoices&&!this.choicesByUrl.isRunning&&this.getStoreOthersAsComment()&&(this.hasUnknownValue(t)&&!this.getHasOther(t)?(n=this.getCommentFromValue(t),t=this.setOtherValueIntoValue(t)):n=this.data.getComment(this.getValueName())),e.prototype.updateValueFromSurvey.call(this,t),!this.isRunningChoices&&!this.choicesByUrl.isRunning||this.isEmpty()||(this.cachedValueForUrlRequests=this.value),n&&this.setNewComment(n)},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.choicesByUrl&&!this.isLoadingFromJson&&!this.isRunningChoices){var e=this.surveyImpl?this.surveyImpl.getTextProcessor():this.textProcessor;e||(e=this.survey),e&&(this.isReadyValue=!this.waitingAcyncOperations,this.isRunningChoices=!0,this.choicesByUrl.run(e),this.isRunningChoices=!1)}},t.prototype.onBeforeSendRequest=function(){!0!==h.settings.web.disableQuestionWhileLoadingChoices||this.isReadOnly||(this.enableOnLoadingChoices=!0,this.readOnly=!0)},t.prototype.onLoadChoicesFromUrl=function(e){this.enableOnLoadingChoices&&(this.readOnly=!1);var t=[];this.isReadOnly||this.choicesByUrl&&this.choicesByUrl.error&&t.push(this.choicesByUrl.error);var n=null,r=!0;this.isFirstLoadChoicesFromUrl&&!this.cachedValueForUrlRequests&&this.defaultValue&&(this.cachedValueForUrlRequests=this.defaultValue,r=!1),this.isValueEmpty(this.cachedValueForUrlRequests)&&(this.cachedValueForUrlRequests=this.value),this.isFirstLoadChoicesFromUrl=!1;var o=this.createCachedValueForUrlRequests(this.cachedValueForUrlRequests,r);if(e&&(e.length>0||this.choicesByUrl.allowEmptyResponse)&&(n=new Array,a.ItemValue.setData(n,e)),n)for(var i=0;i<n.length;i++)n[i].locOwner=this;if(this.choicesFromUrl=n,this.filterItems(),this.onVisibleChoicesChanged(),n){var s=this.updateCachedValueForUrlRequests(o,n);if(s&&!this.isReadOnly){var l=!this.isTwoValueEquals(this.value,s.value);try{this.isValueEmpty(s.value)||(this.allowNotifyValueChanged=!1,this.setQuestionValue(void 0,!0,!1)),this.allowNotifyValueChanged=l,l?this.value=s.value:this.setQuestionValue(s.value)}finally{this.allowNotifyValueChanged=!0}}}this.isReadOnly||n||this.isFirstLoadChoicesFromUrl||(this.value=null),this.errors=t,this.choicesLoaded()},t.prototype.createCachedValueForUrlRequests=function(e,t){if(this.isValueEmpty(e))return null;if(Array.isArray(e)){for(var n=[],r=0;r<e.length;r++)n.push(this.createCachedValueForUrlRequests(e[r],!0));return n}return{value:e,isExists:!t||!this.hasUnknownValue(e)}},t.prototype.updateCachedValueForUrlRequests=function(e,t){if(this.isValueEmpty(e))return null;if(Array.isArray(e)){for(var n=[],r=0;r<e.length;r++){var o=this.updateCachedValueForUrlRequests(e[r],t);if(o&&!this.isValueEmpty(o.value)){var i=o.value;(s=a.ItemValue.getItemByValue(t,o.value))&&(i=s.value),n.push(i)}}return{value:n}}var s,l=e.isExists&&this.hasUnknownValue(e.value)?null:e.value;return(s=a.ItemValue.getItemByValue(t,l))&&(l=s.value),{value:l}},t.prototype.updateChoicesDependedQuestions=function(){this.isLoadingFromJson||this.isUpdatingChoicesDependedQuestions||!this.allowNotifyValueChanged||this.choicesByUrl.isRunning||(this.isUpdatingChoicesDependedQuestions=!0,this.updateDependedQuestions(),this.isUpdatingChoicesDependedQuestions=!1)},t.prototype.updateDependedQuestion=function(){this.onVisibleChoicesChanged(),this.clearIncorrectValues()},t.prototype.onSurveyValueChanged=function(t){e.prototype.onSurveyValueChanged.call(this,t),this.updateChoicesDependedQuestions()},t.prototype.onVisibleChoicesChanged=function(){this.isLoadingFromJson||this.isLockVisibleChoices||(this.updateVisibleChoices(),this.onVisibleChanged(),this.visibleChoicesChangedCallback&&this.visibleChoicesChangedCallback(),this.updateChoicesDependedQuestions())},t.prototype.isVisibleCore=function(){var t=e.prototype.isVisibleCore.call(this);if(!this.hideIfChoicesEmpty||!t)return t;var n=this.getFilteredChoices();return!n||n.length>0},t.prototype.sortVisibleChoices=function(e){if(this.isDesignMode)return e;var t=this.choicesOrder.toLowerCase();return"asc"==t?this.sortArray(e,1):"desc"==t?this.sortArray(e,-1):"random"==t?this.randomizeArray(e):e},t.prototype.sortArray=function(e,t){return e.sort((function(e,n){return d.Helpers.compareStrings(e.calculatedText,n.calculatedText)*t}))},t.prototype.randomizeArray=function(e){return d.Helpers.randomizeArray(e)},t.prototype.clearIncorrectValues=function(){this.hasValueToClearIncorrectValues()&&(this.survey&&this.survey.questionCountByValueName(this.getValueName())>1||(!this.choicesByUrl||this.choicesByUrl.isEmpty||this.choicesFromUrl&&0!=this.choicesFromUrl.length)&&(this.clearIncorrectValuesCallback?this.clearIncorrectValuesCallback():this.clearIncorrectValuesCore()))},t.prototype.hasValueToClearIncorrectValues=function(){return!(this.survey&&this.survey.keepIncorrectValues||this.keepIncorrectValues||this.isEmpty())},t.prototype.clearValueIfInvisibleCore=function(t){e.prototype.clearValueIfInvisibleCore.call(this,t),this.clearIncorrectValues()},t.prototype.isItemSelected=function(e){return e===this.otherItem?this.isOtherSelected:this.isItemSelectedCore(e)},t.prototype.isItemSelectedCore=function(e){return e.value===this.value},t.prototype.clearDisabledValues=function(){this.survey&&this.survey.clearValueOnDisableItems&&this.clearDisabledValuesCore()},t.prototype.clearIncorrectValuesCore=function(){var e=this.value;this.canClearValueAnUnknown(e)&&this.clearValue()},t.prototype.canClearValueAnUnknown=function(e){return!(!this.getStoreOthersAsComment()&&this.isOtherSelected)&&this.hasUnknownValue(e,!0,!0,!0)},t.prototype.clearDisabledValuesCore=function(){this.isValueDisabled(this.value)&&this.clearValue()},t.prototype.clearUnusedValues=function(){e.prototype.clearUnusedValues.call(this),this.isOtherSelected||(this.otherValue=""),this.showCommentArea||this.getStoreOthersAsComment()||this.isOtherSelected||(this.comment="")},t.prototype.getColumnClass=function(){return(new f.CssClassBuilder).append(this.cssClasses.column).append("sv-q-column-"+this.colCount,this.hasColumns).toString()},t.prototype.getItemIndex=function(e){return this.visibleChoices.indexOf(e)},t.prototype.getItemClass=function(e){var t={item:e},n=this.getItemClassCore(e,t);return t.css=n,this.survey&&this.survey.updateChoiceItemCss(this,t),t.css},t.prototype.getCurrentColCount=function(){return this.colCount},t.prototype.getItemClassCore=function(e,t){var n=(new f.CssClassBuilder).append(this.cssClasses.item).append(this.cssClasses.itemInline,!this.hasColumns&&0===this.colCount).append("sv-q-col-"+this.getCurrentColCount(),!this.hasColumns&&0!==this.colCount).append(this.cssClasses.itemOnError,this.errors.length>0),r=this.isReadOnly||!e.isEnabled,o=this.isItemSelected(e)||this.isOtherSelected&&this.otherItem.value===e.value,i=!(r||o||this.survey&&this.survey.isDesignMode),s=e===this.noneItem;return t.isDisabled=r,t.isChecked=o,t.isNone=s,n.append(this.cssClasses.itemDisabled,r).append(this.cssClasses.itemChecked,o).append(this.cssClasses.itemHover,i).append(this.cssClasses.itemNone,s).toString()},t.prototype.getLabelClass=function(e){return(new f.CssClassBuilder).append(this.cssClasses.label).append(this.cssClasses.labelChecked,this.isItemSelected(e)).toString()},t.prototype.getControlLabelClass=function(e){return(new f.CssClassBuilder).append(this.cssClasses.controlLabel).append(this.cssClasses.controlLabelChecked,this.isItemSelected(e)).toString()||void 0},Object.defineProperty(t.prototype,"headItems",{get:function(){var e=this;return this.separateSpecialChoices||this.isDesignMode?this.visibleChoices.filter((function(t){return e.isHeadChoice(t,e)})):[]},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"footItems",{get:function(){var e=this;return this.separateSpecialChoices||this.isDesignMode?this.visibleChoices.filter((function(t){return e.isFootChoice(t,e)})):[]},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"dataChoices",{get:function(){var e=this;return this.visibleChoices.filter((function(t){return!e.isBuiltInChoice(t,e)}))},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"bodyItems",{get:function(){return this.hasHeadItems||this.hasFootItems?this.dataChoices:this.visibleChoices},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hasHeadItems",{get:function(){return this.headItems.length>0},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hasFootItems",{get:function(){return this.footItems.length>0},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"columns",{get:function(){var e=[],t=this.getCurrentColCount();if(this.hasColumns&&this.visibleChoices.length>0){var n=this.separateSpecialChoices||this.isDesignMode?this.dataChoices:this.visibleChoices;if("column"==h.settings.showItemsInOrder)for(var r=0,o=n.length%t,i=0;i<t;i++){for(var s=[],a=r;a<r+Math.floor(n.length/t);a++)s.push(n[a]);o>0&&(o--,s.push(n[a]),a++),r=a,e.push(s)}else for(i=0;i<t;i++){for(s=[],a=i;a<n.length;a+=t)s.push(n[a]);e.push(s)}}return e},enumerable:!1,configurable:!0}),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 0==this.getCurrentColCount()&&!(this.hasFootItems||this.hasHeadItems)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"blockedRow",{get:function(){return 0==this.getCurrentColCount()&&(this.hasFootItems||this.hasHeadItems)},enumerable:!1,configurable:!0}),t.prototype.choicesLoaded=function(){this.isChoicesLoaded=!0,this.isReady=!this.waitingAcyncOperations,this.survey&&this.survey.loadedChoicesFromServer(this),this.loadedChoicesFromServerCallback&&this.loadedChoicesFromServerCallback()},t.prototype.getItemValueWrapperComponentName=function(e){var t=this.survey;return t?t.getItemValueWrapperComponentName(e,this):i.SurveyModel.TemplateRendererComponentName},t.prototype.getItemValueWrapperComponentData=function(e){var t=this.survey;return t?t.getItemValueWrapperComponentData(e,this):e},t.prototype.ariaItemChecked=function(e){return this.renderedValue===e.value?"true":"false"},t.prototype.isOtherItem=function(e){return this.hasOther&&e.value==this.otherItem.value},Object.defineProperty(t.prototype,"itemSvgIcon",{get:function(){return this.cssClasses.itemSvgIconId},enumerable:!1,configurable:!0}),t.prototype.getSelectBaseRootCss=function(){return(new f.CssClassBuilder).append(this.cssClasses.root).append(this.cssClasses.rootRow,this.rowLayout).toString()},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.isInputReadOnly&&e.isEnabled},t.prototype.afterRender=function(t){e.prototype.afterRender.call(this,t),this.rootElement=t},t.prototype.beforeDestroyQuestionElement=function(t){e.prototype.beforeDestroyQuestionElement.call(this,t),this.rootElement=void 0},t.prototype.focusOtherComment=function(){var e=this;this.rootElement&&setTimeout((function(){var t=e.rootElement.querySelector("textarea");t&&t.focus()}),10)},t.prototype.onValueChanged=function(){e.prototype.onValueChanged.call(this),this.isDesignMode||this.prevIsOtherSelected||!this.isOtherSelected||this.focusOtherComment(),this.prevIsOtherSelected=this.isOtherSelected},t.prototype.getDefaultItemComponent=function(){return""},Object.defineProperty(t.prototype,"itemComponent",{get:function(){return this.getPropertyValue("itemComponent",this.getDefaultItemComponent())},set:function(e){this.setPropertyValue("itemComponent",e)},enumerable:!1,configurable:!0}),t.prototype.updateCssClasses=function(t,n){if(e.prototype.updateCssClasses.call(this,t,n),this.dropdownListModel){var r={};Object(m.mergeValues)(n.list,r),Object(m.mergeValues)(t.list,r),t.list=r}},t.prototype.calcCssClasses=function(t){var n=e.prototype.calcCssClasses.call(this,t);return this.dropdownListModel&&this.dropdownListModel.updateCssClasses(n.popup,n.list),n},y([Object(o.property)({onSet:function(e,t){t.onSelectedItemValuesChangedHandler(e)}})],t.prototype,"selectedItemValues",void 0),y([Object(o.property)()],t.prototype,"separateSpecialChoices",void 0),y([Object(o.property)({localizable:!0})],t.prototype,"otherPlaceholder",void 0),t}(s.Question),b=function(e){function t(t){return e.call(this,t)||this}return g(t,e),Object.defineProperty(t.prototype,"colCount",{get:function(){return this.getPropertyValue("colCount",this.isFlowLayout?0:1)},set:function(e){e<0||e>5||this.isFlowLayout||(this.setPropertyValue("colCount",e),this.fireCallback(this.colCountChangedCallback))},enumerable:!1,configurable:!0}),t.prototype.clickItemHandler=function(e,t){var n=[].concat(this.renderedValue||[]),r=n.indexOf(e.value);t?r<0&&n.push(e.value):r>-1&&n.splice(r,1),this.renderedValue=n},t.prototype.onParentChanged=function(){e.prototype.onParentChanged.call(this),this.isFlowLayout&&this.setPropertyValue("colCount",null)},t.prototype.onParentQuestionChanged=function(){this.onVisibleChoicesChanged()},t.prototype.getSearchableItemValueKeys=function(e){e.push("choices")},t}(v);function C(e,t){var n;if(!e)return!1;if(e.templateQuestion){var r=null===(n=e.colOwner)||void 0===n?void 0:n.data;if(!(e=e.templateQuestion).getCarryForwardQuestion(r))return!1}return e.carryForwardQuestionType===t}o.Serializer.addClass("selectbase",[{name:"showCommentArea:switch",layout:"row",visible:!0,category:"general"},"choicesFromQuestion:question_carryforward",{name:"choices:itemvalue[]",uniqueProperty:"value",baseValue:function(){return l.surveyLocalization.getString("choices_Item")},dependsOn:"choicesFromQuestion",visibleIf:function(e){return!e.choicesFromQuestion}},{name:"choicesFromQuestionMode",default:"all",choices:["all","selected","unselected"],dependsOn:"choicesFromQuestion",visibleIf:function(e){return C(e,"select")}},{name:"choiceValuesFromQuestion",dependsOn:"choicesFromQuestion",visibleIf:function(e){return C(e,"array")}},{name:"choiceTextsFromQuestion",dependsOn:"choicesFromQuestion",visibleIf:function(e){return C(e,"array")}},{name:"choicesOrder",default:"none",choices:["none","asc","desc","random"],dependsOn:"choicesFromQuestion",visibleIf:function(e){return!e.choicesFromQuestion}},{name:"choicesByUrl:restfull",className:"choicesByUrl",onGetValue:function(e){return e.choicesByUrl.getData()},onSetValue:function(e,t){e.choicesByUrl.setData(t)}},"hideIfChoicesEmpty:boolean",{name:"choicesVisibleIf:condition",dependsOn:"choicesFromQuestion",visibleIf:function(e){return!e.choicesFromQuestion}},{name:"choicesEnableIf:condition",dependsOn:"choicesFromQuestion",visibleIf:function(e){return!e.choicesFromQuestion}},{name:"separateSpecialChoices:boolean",visible:!1},{name:"showOtherItem:boolean",alternativeName:"hasOther"},{name:"showNoneItem:boolean",alternativeName:"hasNone"},{name:"otherPlaceholder",alternativeName:"otherPlaceHolder",serializationProperty:"locOtherPlaceholder",dependsOn:"showOtherItem",visibleIf:function(e){return e.hasOther}},{name:"noneText",serializationProperty:"locNoneText",dependsOn:"showNoneItem",visibleIf:function(e){return e.hasNone}},{name:"otherText",serializationProperty:"locOtherText",dependsOn:"showOtherItem",visibleIf:function(e){return e.hasOther}},{name:"otherErrorText",serializationProperty:"locOtherErrorText",dependsOn:"showOtherItem",visibleIf:function(e){return e.hasOther}},{name:"storeOthersAsComment",default:"default",choices:["default",!0,!1],visible:!1}],null,"question"),o.Serializer.addClass("checkboxbase",[{name:"colCount:number",default:1,choices:[0,1,2,3,4,5],layout:"row"}],null,"selectbase")},"./src/question_boolean.ts":function(e,t,n){"use strict";n.r(t),n.d(t,"QuestionBooleanModel",(function(){return p}));var r,o=n("./src/questionfactory.ts"),i=n("./src/jsonobject.ts"),s=n("./src/question.ts"),a=n("./src/utils/cssClassBuilder.ts"),l=n("./src/utils/utils.ts"),u=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),c=function(e,t,n,r){var o,i=arguments.length,s=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,r);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(i<3?o(s):i>3?o(t,n,s):o(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},p=function(e){function t(t){var n=e.call(this,t)||this;return n.createLocalizableString("labelFalse",n,!0,"booleanUncheckedLabel"),n.createLocalizableString("labelTrue",n,!0,"booleanCheckedLabel"),n}return u(t,e),t.prototype.getType=function(){return"boolean"},t.prototype.isLayoutTypeSupported=function(e){return!0},t.prototype.supportGoNextPageAutomatic=function(){return"checkbox"!==this.renderAs},Object.defineProperty(t.prototype,"isIndeterminate",{get:function(){return this.isEmpty()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hasTitle",{get:function(){return!0},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"booleanValue",{get:function(){return this.isEmpty()?null:this.value==this.getValueTrue()},set:function(e){this.isReadOnly||this.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=null,this.booleanValueRendered=null):(this.value=1==e?this.getValueTrue():this.getValueFalse(),this.booleanValueRendered=e)},Object.defineProperty(t.prototype,"defaultValue",{get:function(){return this.getPropertyValue("defaultValue")},set:function(e){!0===e&&(e="true"),!1===e&&(e="false"),void 0===e&&(e="indeterminate"),this.setPropertyValue("defaultValue",e),this.updateValueWithDefaults()},enumerable:!1,configurable:!0}),t.prototype.getDefaultValue=function(){return"indeterminate"==this.defaultValue||void 0===this.defaultValue?null:"true"==this.defaultValue?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}),Object.defineProperty(t.prototype,"isLabelRendered",{get:function(){return"hidden"===this.titleLocation},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"canRenderLabelDescription",{get:function(){return this.isLabelRendered&&this.hasDescription&&(this.hasDescriptionUnderTitle||this.hasDescriptionUnderInput)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"labelTrue",{get:function(){return this.getLocalizableStringText("labelTrue")},set:function(e){this.setLocalizableStringText("labelTrue",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locLabelTrue",{get:function(){return this.getLocalizableString("labelTrue")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isDeterminated",{get:function(){return null!==this.booleanValue},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"labelFalse",{get:function(){return this.getLocalizableStringText("labelFalse")},set:function(e){this.setLocalizableStringText("labelFalse",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locLabelFalse",{get:function(){return this.getLocalizableString("labelFalse")},enumerable:!1,configurable:!0}),t.prototype.getValueTrue=function(){return void 0===this.valueTrue||this.valueTrue},t.prototype.getValueFalse=function(){return void 0!==this.valueFalse&&this.valueFalse},t.prototype.setDefaultValue=function(){this.isDefaultValueSet("true",this.valueTrue)&&this.setBooleanValue(!0),this.isDefaultValueSet("false",this.valueFalse)&&this.setBooleanValue(!1),"indeterminate"==this.defaultValue&&this.setBooleanValue(null)},t.prototype.isDefaultValueSet=function(e,t){return this.defaultValue==e||void 0!==t&&this.defaultValue===t},t.prototype.getDisplayValueCore=function(e,t){return t==this.getValueTrue()?this.locLabelTrue.textOrHtml:this.locLabelFalse.textOrHtml},t.prototype.getItemCssValue=function(e){return(new a.CssClassBuilder).append(e.item).append(e.itemOnError,this.errors.length>0).append(e.itemDisabled,this.isReadOnly).append(e.itemHover,!this.isDesignMode).append(e.itemChecked,!!this.booleanValue).append(e.itemIndeterminate,null===this.booleanValue).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,itemChecked:this.cssClasses.checkboxItemChecked,itemIndeterminate:this.cssClasses.checkboxItemIndeterminate})},t.prototype.getLabelCss=function(e){return(new a.CssClassBuilder).append(this.cssClasses.label).append(this.cssClasses.disabledLabel,this.booleanValue===!e||this.isReadOnly).append(this.cssClasses.labelTrue,!this.isIndeterminate&&!0===e).append(this.cssClasses.labelFalse,!this.isIndeterminate&&!1===e).toString()},Object.defineProperty(t.prototype,"svgIcon",{get:function(){return this.booleanValue&&this.cssClasses.svgIconCheckedId?this.cssClasses.svgIconCheckedId:null===this.booleanValue&&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,"allowClick",{get:function(){return this.isIndeterminate&&!this.isInputReadOnly},enumerable:!1,configurable:!0}),t.prototype.getCheckedLabel=function(){return!0===this.booleanValue?this.locLabelTrue:!1===this.booleanValue?this.locLabelFalse:void 0},t.prototype.setQuestionValue=function(t,n){void 0===n&&(n=!0),"true"===t&&"true"!==this.valueTrue&&(t=!0),"false"===t&&"false"!==this.valueFalse&&(t=!1),"indeterminate"===t&&(t=null),e.prototype.setQuestionValue.call(this,t,n)},t.prototype.onLabelClick=function(e,t){return this.allowClick&&(Object(l.preventDefaults)(e),this.booleanValue=t),!0},t.prototype.calculateBooleanValueByEvent=function(e,t){var n="rtl"==document.defaultView.getComputedStyle(e.target).direction;this.booleanValue=n?!t:t},t.prototype.onSwitchClickModel=function(e){if(!this.allowClick)return!0;Object(l.preventDefaults)(e);var t=e.offsetX/e.target.offsetWidth>.5;this.calculateBooleanValueByEvent(e,t)},t.prototype.onKeyDownCore=function(e){return"ArrowLeft"!==e.key&&"ArrowRight"!==e.key||(Object(l.preventDefaults)(e),void this.calculateBooleanValueByEvent(e,"ArrowRight"===e.key))},t.prototype.getRadioItemClass=function(e,t){var n=void 0;return e.radioItem&&(n=e.radioItem),e.radioItemChecked&&t===this.booleanValue&&(n=(n?n+" ":"")+e.radioItemChecked),n},t.prototype.supportResponsiveness=function(){return!0},t.prototype.getCompactRenderAs=function(){return"radio"},t.prototype.createActionContainer=function(t){return e.prototype.createActionContainer.call(this,"checkbox"!==this.renderAs)},c([Object(i.property)()],t.prototype,"booleanValueRendered",void 0),c([Object(i.property)()],t.prototype,"showTitle",void 0),c([Object(i.property)({localizable:!0})],t.prototype,"label",void 0),c([Object(i.property)()],t.prototype,"valueTrue",void 0),c([Object(i.property)()],t.prototype,"valueFalse",void 0),t}(s.Question);i.Serializer.addClass("boolean",[{name:"showCommentArea:switch",layout:"row",visible:!0,category:"general"},{name:"label:text",serializationProperty:"locLabel",isSerializable:!1,visible:!1},{name:"labelTrue:text",serializationProperty:"locLabelTrue"},{name:"labelFalse:text",serializationProperty:"locLabelFalse"},"valueTrue","valueFalse",{name:"renderAs",default:"default",visible:!1}],(function(){return new p("")}),"question"),o.QuestionFactory.Instance.registerQuestion("boolean",(function(e){return new p(e)}))},"./src/question_buttongroup.ts":function(e,t,n){"use strict";n.r(t),n.d(t,"ButtonGroupItemValue",(function(){return c})),n.d(t,"QuestionButtonGroupModel",(function(){return p})),n.d(t,"ButtonGroupItemModel",(function(){return d}));var r,o=n("./src/jsonobject.ts"),i=n("./src/itemvalue.ts"),s=n("./src/question_baseselect.ts"),a=n("./src/utils/cssClassBuilder.ts"),l=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),u=function(e,t,n,r){var o,i=arguments.length,s=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,r);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(i<3?o(s):i>3?o(t,n,s):o(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},c=function(e){function t(t,n,r){void 0===n&&(n=null),void 0===r&&(r="buttongroupitemvalue");var o=e.call(this,t,n,r)||this;return o.typeName=r,o}return l(t,e),t.prototype.getType=function(){return this.typeName?this.typeName:"buttongroupitemvalue"},u([Object(o.property)()],t.prototype,"iconName",void 0),u([Object(o.property)()],t.prototype,"iconSize",void 0),u([Object(o.property)()],t.prototype,"showCaption",void 0),t}(i.ItemValue),p=function(e){function t(t){return e.call(this,t)||this}return l(t,e),t.prototype.getType=function(){return"buttongroup"},t.prototype.getItemValueType=function(){return"buttongroupitemvalue"},t.prototype.supportOther=function(){return!1},t}(s.QuestionCheckboxBase);o.Serializer.addClass("buttongroup",[{name:"choices:buttongroupitemvalue[]"}],(function(){return new p("")}),"checkboxbase"),o.Serializer.addClass("buttongroupitemvalue",[{name:"showCaption:boolean",default:!0},{name:"iconName:text"},{name:"iconSize:number"}],(function(e){return new c(e)}),"itemvalue");var d=function(){function e(e,t,n){this.question=e,this.item=t,this.index=n}return Object.defineProperty(e.prototype,"value",{get:function(){return this.item.value},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"iconName",{get:function(){return this.item.iconName},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"iconSize",{get:function(){return this.item.iconSize||24},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"caption",{get:function(){return this.item.locText},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"showCaption",{get:function(){return this.item.showCaption||void 0===this.item.showCaption},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"isRequired",{get:function(){return this.question.isRequired},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"selected",{get:function(){return this.question.isItemSelected(this.item)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"readOnly",{get:function(){return this.question.isInputReadOnly||!this.item.isEnabled},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"name",{get:function(){return this.question.name+"_"+this.question.id},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"id",{get:function(){return this.question.inputId+"_"+this.index},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"hasErrors",{get:function(){return this.question.errors.length>0},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"describedBy",{get:function(){return this.question.errors.length>0?this.question.id+"_errors":null},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"labelClass",{get:function(){return(new a.CssClassBuilder).append(this.question.cssClasses.item).append(this.question.cssClasses.itemSelected,this.selected).append(this.question.cssClasses.itemHover,!this.readOnly&&!this.selected).append(this.question.cssClasses.itemDisabled,this.question.isReadOnly||!this.item.isEnabled).toString()},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"css",{get:function(){return{label:this.labelClass,icon:this.question.cssClasses.itemIcon,control:this.question.cssClasses.itemControl,caption:this.question.cssClasses.itemCaption,decorator:this.question.cssClasses.itemDecorator}},enumerable:!1,configurable:!0}),e.prototype.onChange=function(){this.question.renderedValue=this.item.value},e}()},"./src/question_checkbox.ts":function(e,t,n){"use strict";n.r(t),n.d(t,"QuestionCheckboxModel",(function(){return d}));var r,o=n("./src/jsonobject.ts"),i=n("./src/questionfactory.ts"),s=n("./src/question_baseselect.ts"),a=n("./src/helpers.ts"),l=n("./src/itemvalue.ts"),u=n("./src/utils/cssClassBuilder.ts"),c=n("./src/error.ts"),p=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),d=function(e){function t(t){var n=e.call(this,t)||this;n.selectAllItemValue=new l.ItemValue("selectall"),n.invisibleOldValues={},n.isChangingValueOnClearIncorrect=!1;var r=n.createLocalizableString("selectAllText",n.selectAllItem,!0,"selectAllItemText");return n.selectAllItem.locOwner=n,n.selectAllItem.setLocText(r),n.registerPropertyChangedHandlers(["showSelectAllItem","selectAllText"],(function(){n.onVisibleChoicesChanged()})),n}return p(t,e),t.prototype.getDefaultItemComponent=function(){return"survey-checkbox-item"},Object.defineProperty(t.prototype,"ariaRole",{get:function(){return"listbox"},enumerable:!1,configurable:!0}),t.prototype.getType=function(){return"checkbox"},t.prototype.onCreating=function(){e.prototype.onCreating.call(this),this.createNewArray("renderedValue"),this.createNewArray("value")},t.prototype.getFirstInputElementId=function(){return this.inputId+"_0"},Object.defineProperty(t.prototype,"valuePropertyName",{get:function(){return this.getPropertyValue("valuePropertyName")},set:function(e){this.setPropertyValue("valuePropertyName",e)},enumerable:!1,configurable:!0}),t.prototype.getQuestionFromArray=function(e,t){if(e&&e===this.valuePropertyName){var n=this.value;if(Array.isArray(n)&&t<n.length)return this}return null},Object.defineProperty(t.prototype,"selectAllItem",{get:function(){return this.selectAllItemValue},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"selectAllText",{get:function(){return this.getLocalizableStringText("selectAllText")},set:function(e){this.setLocalizableStringText("selectAllText",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locSelectAllText",{get:function(){return this.getLocalizableString("selectAllText")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"showSelectAllItem",{get:function(){return this.getPropertyValue("showSelectAllItem")},set:function(e){this.setPropertyValue("showSelectAllItem",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hasSelectAll",{get:function(){return this.showSelectAllItem},set:function(e){this.showSelectAllItem=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isAllSelected",{get:function(){var e=this.value;if(!e||!Array.isArray(e))return!1;if(this.isItemSelected(this.noneItem))return!1;var t=this.visibleChoices.length;this.hasOther&&t--,this.hasNone&&t--,this.hasSelectAll&&t--;var n=e.length;return this.isOtherSelected&&n--,n===t},set:function(e){e?this.selectAll():this.clearValue()},enumerable:!1,configurable:!0}),t.prototype.toggleSelectAll=function(){this.isAllSelected=!this.isAllSelected},t.prototype.selectAll=function(){for(var e=[],t=0;t<this.visibleChoices.length;t++){var n=this.visibleChoices[t];n!==this.noneItem&&n!==this.otherItem&&n!==this.selectAllItem&&e.push(n.value)}this.renderedValue=e},t.prototype.isItemSelectedCore=function(e){if(e===this.selectAllItem)return this.isAllSelected;var t=this.renderedValue;if(!t||!Array.isArray(t))return!1;for(var n=0;n<t.length;n++)if(this.isTwoValueEquals(t[n],e.value))return!0;return!1},t.prototype.getRealValue=function(e){return e&&this.valuePropertyName?e[this.valuePropertyName]:e},Object.defineProperty(t.prototype,"isValueArray",{get:function(){return!0},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"maxSelectedChoices",{get:function(){return this.getPropertyValue("maxSelectedChoices")},set:function(e){e<0&&(e=0),this.setPropertyValue("maxSelectedChoices",e),this.filterItems()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"minSelectedChoices",{get:function(){return this.getPropertyValue("minSelectedChoices")},set:function(e){e<0&&(e=0),this.setPropertyValue("minSelectedChoices",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"selectedChoices",{get:function(){if(this.isEmpty())return[];var e=this.renderedValue,t=this.defaultSelectedItemValues?[].concat(this.defaultSelectedItemValues,this.visibleChoices):this.visibleChoices,n=e.map((function(e){return l.ItemValue.getItemByValue(t,e)})).filter((function(e){return!!e}));return n.length||this.selectedItemValues||this.updateSelectedItemValues(),this.validateItemValues(n)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"selectedItems",{get:function(){return this.selectedChoices},enumerable:!1,configurable:!0}),t.prototype.getMultipleSelectedItems=function(){return this.selectedChoices},t.prototype.validateItemValues=function(e){if(e.length)return e;var t=this.selectedItemValues;return t&&t.length?(this.defaultSelectedItemValues=[].concat(t),t):this.renderedValue.map((function(e){return new l.ItemValue(e)}))},t.prototype.onCheckForErrors=function(t,n){if(e.prototype.onCheckForErrors.call(this,t,n),!n&&this.minSelectedChoices>0&&this.checkMinSelectedChoicesUnreached()){var r=new c.CustomError(this.getLocalizationFormatString("minSelectError",this.minSelectedChoices),this);t.push(r)}},t.prototype.onEnableItemCallBack=function(e){return!this.shouldCheckMaxSelectedChoices()||this.isItemSelected(e)},t.prototype.onAfterRunItemsEnableCondition=function(){if(this.maxSelectedChoices<1)return this.selectAllItem.setIsEnabled(!0),void this.otherItem.setIsEnabled(!0);this.hasSelectAll&&this.selectAllItem.setIsEnabled(this.maxSelectedChoices>=this.activeChoices.length),this.hasOther&&this.otherItem.setIsEnabled(!this.shouldCheckMaxSelectedChoices()||this.isOtherSelected)},t.prototype.shouldCheckMaxSelectedChoices=function(){if(this.maxSelectedChoices<1)return!1;var e=this.value;return(Array.isArray(e)?e.length:0)>=this.maxSelectedChoices},t.prototype.checkMinSelectedChoicesUnreached=function(){if(this.minSelectedChoices<1)return!1;var e=this.value;return(Array.isArray(e)?e.length:0)<this.minSelectedChoices},t.prototype.getItemClassCore=function(t,n){return this.value,n.isSelectAllItem=t===this.selectAllItem,(new u.CssClassBuilder).append(e.prototype.getItemClassCore.call(this,t,n)).append(this.cssClasses.itemSelectAll,n.isSelectAllItem).toString()},t.prototype.updateValueFromSurvey=function(t){e.prototype.updateValueFromSurvey.call(this,t),this.invisibleOldValues={}},t.prototype.setDefaultValue=function(){e.prototype.setDefaultValue.call(this);var t=this.defaultValue;if(Array.isArray(t))for(var n=0;n<t.length;n++){var r=this.getRealValue(t[n]);this.canClearValueAnUnknown(r)&&this.addIntoInvisibleOldValues(r)}},t.prototype.addIntoInvisibleOldValues=function(e){this.invisibleOldValues[e]=e},t.prototype.hasValueToClearIncorrectValues=function(){return e.prototype.hasValueToClearIncorrectValues.call(this)||!a.Helpers.isValueEmpty(this.invisibleOldValues)},t.prototype.setNewValue=function(t){this.isChangingValueOnClearIncorrect||(this.invisibleOldValues={}),t=this.valueFromData(t);var n=this.value;if(t||(t=[]),n||(n=[]),!this.isTwoValueEquals(n,t)){if(this.hasNone){var r=this.noneIndexInArray(n),o=this.noneIndexInArray(t);r>-1?o>-1&&t.length>1&&t.splice(o,1):o>-1&&(t.splice(0,t.length),t.push(this.noneItem.value))}e.prototype.setNewValue.call(this,t)}},t.prototype.getIsMultipleValue=function(){return!0},t.prototype.getCommentFromValue=function(e){var t=this.getFirstUnknownIndex(e);return t<0?"":e[t]},t.prototype.setOtherValueIntoValue=function(e){var t=this.getFirstUnknownIndex(e);return t<0||e.splice(t,1,this.otherItem.value),e},t.prototype.getFirstUnknownIndex=function(e){if(!Array.isArray(e))return-1;for(var t=0;t<e.length;t++)if(this.hasUnknownValue(e[t],!1,!1))return t;return-1},t.prototype.noneIndexInArray=function(e){if(!e||!Array.isArray(e))return-1;for(var t=this.noneItem.value,n=0;n<e.length;n++)if(e[n]==t)return n;return-1},t.prototype.canUseFilteredChoices=function(){return!this.hasSelectAll&&e.prototype.canUseFilteredChoices.call(this)},t.prototype.supportSelectAll=function(){return this.isSupportProperty("showSelectAllItem")},t.prototype.addToVisibleChoices=function(t,n){this.supportSelectAll()&&this.canShowOptionItem(this.selectAllItem,n,this.hasSelectAll)&&t.unshift(this.selectAllItem),e.prototype.addToVisibleChoices.call(this,t,n)},t.prototype.isHeadChoice=function(e,t){return e===t.selectAllItem},t.prototype.isItemInList=function(t){return t==this.selectAllItem?this.hasSelectAll:e.prototype.isItemInList.call(this,t)},t.prototype.getDisplayValueCore=function(t,n){if(!Array.isArray(n))return e.prototype.getDisplayValueCore.call(this,t,n);var r=this.valuePropertyName;return this.getDisplayArrayValue(t,n,(function(e){var t=n[e];return r&&t[r]&&(t=t[r]),t}))},t.prototype.clearIncorrectValuesCore=function(){this.clearIncorrectAndDisabledValues(!1)},t.prototype.clearDisabledValuesCore=function(){this.clearIncorrectAndDisabledValues(!0)},t.prototype.clearIncorrectAndDisabledValues=function(e){var t=this.value,n=!1,r=this.restoreValuesFromInvisible();if(t||0!=r.length){if(!Array.isArray(t)||0==t.length){if(this.isChangingValueOnClearIncorrect=!0,e||(this.hasComment?this.value=null:this.clearValue()),this.isChangingValueOnClearIncorrect=!1,0==r.length)return;t=[]}for(var o=[],i=0;i<t.length;i++){var s=this.getRealValue(t[i]),a=this.canClearValueAnUnknown(s);!e&&!a||e&&!this.isValueDisabled(s)?o.push(t[i]):(n=!0,a&&this.addIntoInvisibleOldValues(t[i]))}for(i=0;i<r.length;i++)o.push(r[i]),n=!0;n&&(this.isChangingValueOnClearIncorrect=!0,0==o.length?this.clearValue():this.value=o,this.isChangingValueOnClearIncorrect=!1)}},t.prototype.restoreValuesFromInvisible=function(){for(var e=[],t=this.visibleChoices,n=0;n<t.length;n++){var r=t[n].value;a.Helpers.isTwoValueEquals(r,this.invisibleOldValues[r])&&(this.isItemSelected(t[n])||e.push(r),delete this.invisibleOldValues[r])}return e},t.prototype.getConditionJson=function(t,n){void 0===t&&(t=null),void 0===n&&(n=null);var r=e.prototype.getConditionJson.call(this);return"contains"!=t&&"notcontains"!=t||(r.type="radiogroup"),r.maxSelectedChoices=0,r.minSelectedChoices=0,r},t.prototype.isAnswerCorrect=function(){return a.Helpers.isArrayContainsEqual(this.value,this.correctAnswer)},t.prototype.setDefaultValueWithOthers=function(){this.value=this.renderedValueFromDataCore(this.defaultValue)},t.prototype.getIsItemValue=function(e,t){return!(!e||!Array.isArray(e))&&e.indexOf(t.value)>=0},t.prototype.valueFromData=function(t){if(!t)return t;if(!Array.isArray(t))return[e.prototype.valueFromData.call(this,t)];for(var n=[],r=0;r<t.length;r++){var o=l.ItemValue.getItemByValue(this.activeChoices,t[r]);o?n.push(o.value):n.push(t[r])}return n},t.prototype.rendredValueFromData=function(t){return t=this.convertValueFromObject(t),e.prototype.rendredValueFromData.call(this,t)},t.prototype.rendredValueToData=function(t){return t=e.prototype.rendredValueToData.call(this,t),this.convertValueToObject(t)},t.prototype.convertValueFromObject=function(e){return this.valuePropertyName?a.Helpers.convertArrayObjectToValue(e,this.valuePropertyName):e},t.prototype.convertValueToObject=function(e){if(!this.valuePropertyName)return e;var t=void 0;return this.survey&&this.survey.questionCountByValueName(this.getValueName())>1&&(t=this.data.getValue(this.getValueName())),a.Helpers.convertArrayValueToObject(e,this.valuePropertyName,t)},t.prototype.renderedValueFromDataCore=function(e){if(e&&Array.isArray(e)||(e=[]),!this.hasActiveChoices)return e;for(var t=0;t<e.length;t++){if(e[t]==this.otherItem.value)return e;if(this.hasUnknownValue(e[t],!0,!1)){this.otherValue=e[t];var n=e.slice();return n[t]=this.otherItem.value,n}}return e},t.prototype.rendredValueToDataCore=function(e){if(!e||!e.length)return e;for(var t=0;t<e.length;t++)if(e[t]==this.otherItem.value&&this.needConvertRenderedOtherToDataValue()){var n=e.slice();return n[t]=this.otherValue,n}return e},t.prototype.selectOtherValueFromComment=function(e){var t=[],n=this.renderedValue;if(Array.isArray(n))for(var r=0;r<n.length;r++)n[r]!==this.otherItem.value&&t.push(n[r]);e&&t.push(this.otherItem.value),this.value=t},Object.defineProperty(t.prototype,"checkBoxSvgPath",{get:function(){return"M5,13l2-2l3,3l7-7l2,2l-9,9L5,13z"},enumerable:!1,configurable:!0}),t}(s.QuestionCheckboxBase);o.Serializer.addClass("checkbox",[{name:"showSelectAllItem:boolean",alternativeName:"hasSelectAll"},{name:"separateSpecialChoices",visible:!0},{name:"maxSelectedChoices:number",default:0},{name:"minSelectedChoices:number",default:0},{name:"selectAllText",serializationProperty:"locSelectAllText",dependsOn:"showSelectAllItem",visibleIf:function(e){return e.hasSelectAll}},{name:"valuePropertyName",category:"data"},{name:"itemComponent",visible:!1,default:"survey-checkbox-item"}],(function(){return new d("")}),"checkboxbase"),i.QuestionFactory.Instance.registerQuestion("checkbox",(function(e){var t=new d(e);return t.choices=i.QuestionFactory.DefaultChoices,t}))},"./src/question_comment.ts":function(e,t,n){"use strict";n.r(t),n.d(t,"QuestionCommentModel",(function(){return c}));var r,o=n("./src/jsonobject.ts"),i=n("./src/questionfactory.ts"),s=n("./src/question_textbase.ts"),a=n("./src/utils/utils.ts"),l=n("./src/settings.ts"),u=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),c=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return u(t,e),Object.defineProperty(t.prototype,"rows",{get:function(){return this.getPropertyValue("rows")},set:function(e){this.setPropertyValue("rows",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"cols",{get:function(){return this.getPropertyValue("cols")},set:function(e){this.setPropertyValue("cols",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"acceptCarriageReturn",{get:function(){return this.getPropertyValue("acceptCarriageReturn")},set:function(e){this.setPropertyValue("acceptCarriageReturn",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"autoGrow",{get:function(){return this.getPropertyValue("autoGrow")||this.survey&&this.survey.autoGrowComment},set:function(e){this.setPropertyValue("autoGrow",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"allowResize",{get:function(){return this.getPropertyValue("allowResize")&&this.survey&&this.survey.allowResizeComment},set:function(e){this.setPropertyValue("allowResize",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"resizeStyle",{get:function(){return this.allowResize?"both":"none"},enumerable:!1,configurable:!0}),t.prototype.getType=function(){return"comment"},t.prototype.afterRenderQuestionElement=function(t){var n=l.settings.environment.root;this.element=n.getElementById(this.inputId)||t,this.updateElement(),e.prototype.afterRenderQuestionElement.call(this,t)},t.prototype.updateElement=function(){var e=this;this.element&&this.autoGrow&&setTimeout((function(){return Object(a.increaseHeightByContent)(e.element)}),1)},t.prototype.beforeDestroyQuestionElement=function(t){e.prototype.beforeDestroyQuestionElement.call(this,t),this.element=void 0},t.prototype.onInput=function(e){this.isInputTextUpdate?this.value=e.target.value:this.updateElement(),this.updateRemainingCharacterCounter(e.target.value)},t.prototype.onKeyDown=function(e){this.checkForUndo(e),this.acceptCarriageReturn||"Enter"!==e.key&&13!==e.keyCode||(e.preventDefault(),e.stopPropagation())},t.prototype.onValueChanged=function(){e.prototype.onValueChanged.call(this),this.updateElement()},t.prototype.setNewValue=function(t){!this.acceptCarriageReturn&&t&&(t=t.replace(new RegExp("(\r\n|\n|\r)","gm"),"")),e.prototype.setNewValue.call(this,t)},Object.defineProperty(t.prototype,"className",{get:function(){return(this.cssClasses?this.getControlClass():"panel-comment-root")||void 0},enumerable:!1,configurable:!0}),t}(s.QuestionTextBase);o.Serializer.addClass("comment",[{name:"maxLength:number",default:-1},{name:"cols:number",default:50,visible:!1,isSerializable:!1},{name:"rows:number",default:4},{name:"placeholder",alternativeName:"placeHolder",serializationProperty:"locPlaceholder"},{name:"textUpdateMode",default:"default",choices:["default","onBlur","onTyping"]},{name:"autoGrow:boolean"},{name:"allowResize:boolean",default:!0},{name:"acceptCarriageReturn:boolean",default:!0,visible:!1}],(function(){return new c("")}),"textbase"),i.QuestionFactory.Instance.registerQuestion("comment",(function(e){return new c(e)}))},"./src/question_custom.ts":function(e,t,n){"use strict";n.r(t),n.d(t,"ComponentQuestionJSON",(function(){return p})),n.d(t,"ComponentCollection",(function(){return d})),n.d(t,"QuestionCustomModelBase",(function(){return h})),n.d(t,"QuestionCustomModel",(function(){return f})),n.d(t,"QuestionCompositeModel",(function(){return g}));var r,o=n("./src/question.ts"),i=n("./src/jsonobject.ts"),s=n("./src/survey-element.ts"),a=n("./src/helpers.ts"),l=n("./src/textPreProcessor.ts"),u=n("./src/utils/cssClassBuilder.ts"),c=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),p=function(){function e(e,t){this.name=e,this.json=t;var n=this;i.Serializer.addClass(e,[],(function(e){return d.Instance.createQuestion(e?e.name:"",n)}),"question"),this.onInit()}return e.prototype.onInit=function(){this.json.onInit&&this.json.onInit()},e.prototype.onCreated=function(e){this.json.onCreated&&this.json.onCreated(e)},e.prototype.onLoaded=function(e){this.json.onLoaded&&this.json.onLoaded(e)},e.prototype.onAfterRender=function(e,t){this.json.onAfterRender&&this.json.onAfterRender(e,t)},e.prototype.onAfterRenderContentElement=function(e,t,n){this.json.onAfterRenderContentElement&&this.json.onAfterRenderContentElement(e,t,n)},e.prototype.onUpdateQuestionCssClasses=function(e,t,n){this.json.onUpdateQuestionCssClasses&&this.json.onUpdateQuestionCssClasses(e,t,n)},e.prototype.onPropertyChanged=function(e,t,n){this.json.onPropertyChanged&&this.json.onPropertyChanged(e,t,n)},e.prototype.onValueChanged=function(e,t,n){this.json.onValueChanged&&this.json.onValueChanged(e,t,n)},e.prototype.onValueChanging=function(e,t,n){return this.json.onValueChanging?this.json.onValueChanging(e,t,n):n},e.prototype.onItemValuePropertyChanged=function(e,t,n,r,o){this.json.onItemValuePropertyChanged&&this.json.onItemValuePropertyChanged(e,{obj:t,propertyName:n,name:r,newValue:o})},e.prototype.getDisplayValue=function(e,t,n){return this.json.getDisplayValue?this.json.getDisplayValue(n):n.getDisplayValue(e,t)},e.prototype.setValueToQuestion=function(e){var t=this.json.valueToQuestion||this.json.setValue;return t?t(e):e},e.prototype.getValueFromQuestion=function(e){var t=this.json.valueFromQuestion||this.json.getValue;return t?t(e):e},Object.defineProperty(e.prototype,"isComposite",{get:function(){return!!this.json.elementsJSON||!!this.json.createElements},enumerable:!1,configurable:!0}),e}(),d=function(){function e(){this.customQuestionValues=[]}return e.prototype.add=function(e){if(e){var t=e.name;if(!t)throw"Attribute name is missed";if(t=t.toLowerCase(),this.getCustomQuestionByName(t))throw"There is already registered custom question with name '"+t+"'";if(i.Serializer.findClass(t))throw"There is already class with name '"+t+"'";var n=new p(t,e);this.onAddingJson&&this.onAddingJson(t,n.isComposite),this.customQuestionValues.push(n)}},Object.defineProperty(e.prototype,"items",{get:function(){return this.customQuestionValues},enumerable:!1,configurable:!0}),e.prototype.getCustomQuestionByName=function(e){for(var t=0;t<this.customQuestionValues.length;t++)if(this.customQuestionValues[t].name==e)return this.customQuestionValues[t];return null},e.prototype.clear=function(){for(var e=0;e<this.customQuestionValues.length;e++)i.Serializer.removeClass(this.customQuestionValues[e].name);this.customQuestionValues=[]},e.prototype.createQuestion=function(e,t){return t.isComposite?this.createCompositeModel(e,t):this.createCustomModel(e,t)},e.prototype.createCompositeModel=function(e,t){return this.onCreateComposite?this.onCreateComposite(e,t):new g(e,t)},e.prototype.createCustomModel=function(e,t){return this.onCreateCustom?this.onCreateCustom(e,t):new f(e,t)},e.Instance=new e,e}(),h=function(e){function t(t,n){var r=e.call(this,t)||this;return r.customQuestion=n,i.CustomPropertiesCollection.createProperties(r),s.SurveyElement.CreateDisabledDesignElements=!0,r.createWrapper(),s.SurveyElement.CreateDisabledDesignElements=!1,r.customQuestion&&r.customQuestion.onCreated(r),r}return c(t,e),t.prototype.getType=function(){return this.customQuestion?this.customQuestion.name:"custom"},t.prototype.locStrsChanged=function(){e.prototype.locStrsChanged.call(this),this.getElement()&&this.getElement().locStrsChanged()},t.prototype.createWrapper=function(){},t.prototype.onPropertyValueChanged=function(t,n,r){e.prototype.onPropertyValueChanged.call(this,t,n,r),this.customQuestion&&!this.isLoadingFromJson&&this.customQuestion.onPropertyChanged(this,t,r)},t.prototype.itemValuePropertyChanged=function(t,n,r,o){e.prototype.itemValuePropertyChanged.call(this,t,n,r,o),this.customQuestion&&!this.isLoadingFromJson&&this.customQuestion.onItemValuePropertyChanged(this,t,t.ownerPropertyName,n,o)},t.prototype.onFirstRendering=function(){var t=this.getElement();t&&t.onFirstRendering(),e.prototype.onFirstRendering.call(this)},t.prototype.getProgressInfo=function(){var t=e.prototype.getProgressInfo.call(this);return this.getElement()&&(t=this.getElement().getProgressInfo()),this.isRequired&&0==t.requiredQuestionCount&&(t.requiredQuestionCount=1,this.isEmpty()||(t.answeredQuestionCount=1)),t},t.prototype.initElement=function(e){e&&(e.setSurveyImpl(this),e.disableDesignActions=!0)},t.prototype.setSurveyImpl=function(t,n){this.isSettingValOnLoading=!0,e.prototype.setSurveyImpl.call(this,t,n),this.initElement(this.getElement()),this.isSettingValOnLoading=!1},t.prototype.onSurveyLoad=function(){e.prototype.onSurveyLoad.call(this),this.getElement()&&(this.getElement().onSurveyLoad(),this.customQuestion.onLoaded(this))},t.prototype.afterRenderQuestionElement=function(e){},t.prototype.afterRender=function(t){e.prototype.afterRender.call(this,t),this.customQuestion&&this.customQuestion.onAfterRender(this,t)},t.prototype.onUpdateQuestionCssClasses=function(e,t){this.customQuestion&&this.customQuestion.onUpdateQuestionCssClasses(this,e,t)},t.prototype.setQuestionValue=function(t,n){void 0===n&&(n=!0),e.prototype.setQuestionValue.call(this,t,n),this.updateElementCss()},t.prototype.setNewValue=function(t){e.prototype.setNewValue.call(this,t),this.updateElementCss()},t.prototype.getSurveyData=function(){return this},t.prototype.getTextProcessor=function(){return this.textProcessor},t.prototype.getValue=function(e){return this.value},t.prototype.setValue=function(e,t,n,r){if(this.data){var o=this.convertDataName(e),i=this.convertDataValue(e,t);this.valueToDataCallback&&(i=this.valueToDataCallback(i)),this.data.setValue(o,i,n,r),this.updateIsAnswered(),this.updateElementCss(),this.customQuestion&&this.customQuestion.onValueChanged(this,e,t)}},t.prototype.getQuestionByName=function(e){},t.prototype.isValueChanging=function(e,t){if(this.customQuestion){var n=t;if(t=this.customQuestion.onValueChanging(this,e,t),!a.Helpers.isTwoValueEquals(t,n)){var r=this.getQuestionByName(e);if(r)return r.value=t,!0}}return!1},t.prototype.convertDataName=function(e){return this.getValueName()},t.prototype.convertDataValue=function(e,t){return t},t.prototype.getVariable=function(e){return this.data?this.data.getVariable(e):null},t.prototype.setVariable=function(e,t){this.data&&this.data.setVariable(e,t)},t.prototype.getComment=function(e){return this.data?this.data.getComment(this.getValueName()):""},t.prototype.setComment=function(e,t,n){this.data&&this.data.setComment(this.getValueName(),t,n)},t.prototype.getAllValues=function(){return this.data?this.data.getAllValues():{}},t.prototype.getFilteredValues=function(){return this.data?this.data.getFilteredValues():{}},t.prototype.getFilteredProperties=function(){return this.data?this.data.getFilteredProperties():{}},t.prototype.findQuestionByName=function(e){return this.data?this.data.findQuestionByName(e):null},t.prototype.addElement=function(e,t){},t.prototype.removeElement=function(e){return!1},t.prototype.getQuestionTitleLocation=function(){return"left"},t.prototype.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.getContentDisplayValueCore=function(t,n,r){return r?this.customQuestion.getDisplayValue(t,n,r):e.prototype.getDisplayValueCore.call(this,t,n)},t}(o.Question),f=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return c(t,e),t.prototype.getTemplate=function(){return"custom"},t.prototype.createWrapper=function(){this.questionWrapper=this.createQuestion()},t.prototype.getElement=function(){return this.contentQuestion},t.prototype.onAnyValueChanged=function(t){e.prototype.onAnyValueChanged.call(this,t),this.contentQuestion&&this.contentQuestion.onAnyValueChanged(t)},t.prototype.getQuestionByName=function(e){return this.contentQuestion},t.prototype.setValue=function(t,n,r,o){this.isValueChanging(t,n)||e.prototype.setValue.call(this,t,n,r,o)},t.prototype.onSetData=function(){e.prototype.onSetData.call(this),this.survey&&!this.isEmpty()&&this.setValue(this.name,this.value,!1,this.allowNotifyValueChanged)},t.prototype.hasErrors=function(t,n){if(void 0===t&&(t=!0),void 0===n&&(n=null),!this.contentQuestion)return!1;var r=this.contentQuestion.hasErrors(t,n);this.errors=[];for(var o=0;o<this.contentQuestion.errors.length;o++)this.errors.push(this.contentQuestion.errors[o]);return r||(r=e.prototype.hasErrors.call(this,t,n)),this.updateElementCss(),r},t.prototype.focus=function(t){void 0===t&&(t=!1),this.contentQuestion?this.contentQuestion.focus(t):e.prototype.focus.call(this,t)},Object.defineProperty(t.prototype,"contentQuestion",{get:function(){return this.questionWrapper},enumerable:!1,configurable:!0}),t.prototype.createQuestion=function(){var e=this,t=this.customQuestion.json,n=null;if(t.questionJSON){var r=t.questionJSON.type;if(!r||!i.Serializer.findClass(r))throw"type attribute in questionJSON is empty or incorrect";n=i.Serializer.createClass(r),this.initElement(n),n.fromJSON(t.questionJSON)}else t.createQuestion&&(n=t.createQuestion(),this.initElement(n));return n&&(n.isContentElement=!0,n.name||(n.name="question"),n.onUpdateCssClassesCallback=function(t){e.onUpdateQuestionCssClasses(n,t)}),n},t.prototype.onSurveyLoad=function(){e.prototype.onSurveyLoad.call(this),this.contentQuestion&&this.isEmpty()&&!this.contentQuestion.isEmpty()&&(this.value=this.getContentQuestionValue())},t.prototype.runCondition=function(t,n){e.prototype.runCondition.call(this,t,n),this.contentQuestion&&this.contentQuestion.runCondition(t,n)},t.prototype.convertDataName=function(t){if(!this.contentQuestion)return e.prototype.convertDataName.call(this,t);var n=t.replace(this.contentQuestion.getValueName(),this.getValueName());return 0==n.indexOf(this.getValueName())?n:e.prototype.convertDataName.call(this,t)},t.prototype.convertDataValue=function(t,n){return this.convertDataName(t)==e.prototype.convertDataName.call(this,t)?this.getContentQuestionValue():n},t.prototype.getContentQuestionValue=function(){if(this.contentQuestion){var e=this.contentQuestion.value;return this.customQuestion&&(e=this.customQuestion.getValueFromQuestion(e)),e}},t.prototype.setContentQuestionValue=function(e){this.contentQuestion&&(this.customQuestion&&(e=this.customQuestion.setValueToQuestion(e)),this.contentQuestion.value=e)},t.prototype.canSetValueToSurvey=function(){return!1},t.prototype.setQuestionValue=function(t,n){void 0===n&&(n=!0),e.prototype.setQuestionValue.call(this,t,n),this.isLoadingFromJson||!this.contentQuestion||this.isTwoValueEquals(this.getContentQuestionValue(),t)||this.setContentQuestionValue(this.getUnbindValue(t))},t.prototype.onSurveyValueChanged=function(t){e.prototype.onSurveyValueChanged.call(this,t),this.contentQuestion&&this.contentQuestion.onSurveyValueChanged(t)},t.prototype.getValueCore=function(){return this.contentQuestion?this.getContentQuestionValue():e.prototype.getValueCore.call(this)},t.prototype.initElement=function(t){var n=this;e.prototype.initElement.call(this,t),t&&(t.parent=this,t.afterRenderQuestionCallback=function(e,t){n.customQuestion&&n.customQuestion.onAfterRenderContentElement(n,e,t)})},t.prototype.updateElementCss=function(t){this.contentQuestion&&this.questionWrapper.updateElementCss(t),e.prototype.updateElementCss.call(this,t)},t.prototype.updateElementCssCore=function(t){this.contentQuestion&&(t=this.contentQuestion.cssClasses),e.prototype.updateElementCssCore.call(this,t)},t.prototype.getDisplayValueCore=function(t,n){return e.prototype.getContentDisplayValueCore.call(this,t,n,this.contentQuestion)},t}(h),m=function(e){function t(t,n){var r=e.call(this,n)||this;return r.composite=t,r.variableName=n,r}return c(t,e),Object.defineProperty(t.prototype,"survey",{get:function(){return this.composite.survey},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"panel",{get:function(){return this.composite.contentPanel},enumerable:!1,configurable:!0}),t}(l.QuestionTextProcessor),g=function(e){function t(n,r){var o=e.call(this,n,r)||this;return o.customQuestion=r,o.settingNewValue=!1,o.textProcessing=new m(o,t.ItemVariableName),o}return c(t,e),t.prototype.createWrapper=function(){this.panelWrapper=this.createPanel()},t.prototype.getTemplate=function(){return"composite"},t.prototype.getElement=function(){return this.contentPanel},t.prototype.getCssRoot=function(t){return(new u.CssClassBuilder).append(e.prototype.getCssRoot.call(this,t)).append(t.composite).toString()},Object.defineProperty(t.prototype,"contentPanel",{get:function(){return this.panelWrapper},enumerable:!1,configurable:!0}),t.prototype.hasErrors=function(t,n){void 0===t&&(t=!0),void 0===n&&(n=null);var r=e.prototype.hasErrors.call(this,t,n);return this.contentPanel&&this.contentPanel.hasErrors(t,!1,n)||r},t.prototype.updateElementCss=function(t){e.prototype.updateElementCss.call(this,t),this.contentPanel&&this.contentPanel.updateElementCss(t)},t.prototype.getTextProcessor=function(){return this.textProcessing},t.prototype.findQuestionByName=function(t){return this.getQuestionByName(t)||e.prototype.findQuestionByName.call(this,t)},t.prototype.clearValueIfInvisibleCore=function(t){e.prototype.clearValueIfInvisibleCore.call(this,t);for(var n=this.contentPanel.questions,r=0;r<n.length;r++)n[r].clearValueIfInvisible(t)},t.prototype.onAnyValueChanged=function(t){e.prototype.onAnyValueChanged.call(this,t);for(var n=this.contentPanel.questions,r=0;r<n.length;r++)n[r].onAnyValueChanged(t)},t.prototype.createPanel=function(){var e=this,t=i.Serializer.createClass("panel");t.showQuestionNumbers="off",t.renderWidth="100%";var n=this.customQuestion.json;return n.elementsJSON&&t.fromJSON({elements:n.elementsJSON}),n.createElements&&n.createElements(t,this),this.initElement(t),t.readOnly=this.isReadOnly,t.questions.forEach((function(t){return t.onUpdateCssClassesCallback=function(n){e.onUpdateQuestionCssClasses(t,n)}})),this.setAfterRenderCallbacks(t),t},t.prototype.onReadOnlyChanged=function(){this.contentPanel&&(this.contentPanel.readOnly=this.isReadOnly),e.prototype.onReadOnlyChanged.call(this)},t.prototype.onSurveyLoad=function(){if(this.isSettingValOnLoading=!0,this.contentPanel&&(this.contentPanel.readOnly=this.isReadOnly,this.setIsContentElement(this.contentPanel)),e.prototype.onSurveyLoad.call(this),this.contentPanel){var t=this.getContentPanelValue();a.Helpers.isValueEmpty(t)||(this.value=t)}this.isSettingValOnLoading=!1},t.prototype.setIsContentElement=function(e){e.isContentElement=!0;for(var t=e.elements,n=0;n<t.length;n++){var r=t[n];r.isPanel?this.setIsContentElement(r):r.isContentElement=!0}},t.prototype.setVisibleIndex=function(t){var n=e.prototype.setVisibleIndex.call(this,t);return this.isVisible&&this.contentPanel&&(n+=this.contentPanel.setVisibleIndex(t)),n},t.prototype.runCondition=function(n,r){if(e.prototype.runCondition.call(this,n,r),this.contentPanel){var o=n[t.ItemVariableName];n[t.ItemVariableName]=this.contentPanel.getValue(),this.contentPanel.runCondition(n,r),delete n[t.ItemVariableName],o&&(n[t.ItemVariableName]=o)}},t.prototype.getValue=function(e){var t=this.value;return t?t[e]:null},t.prototype.getQuestionByName=function(e){return this.contentPanel?this.contentPanel.getQuestionByName(e):void 0},t.prototype.setValue=function(t,n,r,o){if(this.settingNewValue)this.setNewValueIntoQuestion(t,n);else if(!this.isValueChanging(t,n)){if(this.settingNewValue=!0,!this.isEditingSurveyElement&&this.contentPanel)for(var i=0,s=this.contentPanel.questions.length+1;i<s&&this.updateValueCoreWithPanelValue();)i++;this.setNewValueIntoQuestion(t,n),e.prototype.setValue.call(this,t,n,r,o),this.settingNewValue=!1}},t.prototype.updateValueCoreWithPanelValue=function(){var e=this.getContentPanelValue();return!this.isTwoValueEquals(this.getValueCore(),e)&&(this.setValueCore(e),!0)},t.prototype.getContentPanelValue=function(e){return e||(e=this.contentPanel.getValue()),this.customQuestion.setValueToQuestion(e)},t.prototype.getValueForContentPanel=function(e){return this.customQuestion.getValueFromQuestion(e)},t.prototype.setNewValueIntoQuestion=function(e,t){var n=this.getQuestionByName(e);n&&!this.isTwoValueEquals(t,n.value)&&(n.value=t)},t.prototype.addConditionObjectsByContext=function(e,t){if(this.contentPanel)for(var n=this.contentPanel.questions,r=this.name,o=this.title,i=0;i<n.length;i++)e.push({name:r+"."+n[i].name,text:o+"."+n[i].title,question:n[i]})},t.prototype.collectNestedQuestionsCore=function(e,t){this.contentPanel&&this.contentPanel.questions.forEach((function(n){return n.collectNestedQuestions(e,t)}))},t.prototype.convertDataValue=function(e,t){var n=this.getValueForContentPanel(this.value);return n||(n={}),this.isValueEmpty(t)&&!this.isEditingSurveyElement?delete n[e]:n[e]=t,this.getContentPanelValue(n)},t.prototype.setQuestionValue=function(t,n){void 0===n&&(n=!0),this.setValuesIntoQuestions(t),!this.isEditingSurveyElement&&this.contentPanel&&(t=this.getContentPanelValue()),e.prototype.setQuestionValue.call(this,t,n)},t.prototype.setValuesIntoQuestions=function(e){if(this.contentPanel){e=this.getValueForContentPanel(e);var t=this.settingNewValue;this.settingNewValue=!0;for(var n=this.contentPanel.questions,r=0;r<n.length;r++){var o=n[r].getValueName(),i=e?e[o]:void 0,s=n[r];this.isTwoValueEquals(s.value,i)||(s.value=i)}this.settingNewValue=t}},t.prototype.getDisplayValueCore=function(t,n){return e.prototype.getContentDisplayValueCore.call(this,t,n,this.contentPanel)},t.prototype.setAfterRenderCallbacks=function(e){var t=this;if(e&&this.customQuestion)for(var n=e.questions,r=0;r<n.length;r++)n[r].afterRenderQuestionCallback=function(e,n){t.customQuestion.onAfterRenderContentElement(t,e,n)}},t.ItemVariableName="composite",t}(h)},"./src/question_dropdown.ts":function(e,t,n){"use strict";n.r(t),n.d(t,"QuestionDropdownModel",(function(){return h}));var r,o=n("./src/jsonobject.ts"),i=n("./src/questionfactory.ts"),s=n("./src/question_baseselect.ts"),a=n("./src/itemvalue.ts"),l=n("./src/utils/cssClassBuilder.ts"),u=n("./src/dropdownListModel.ts"),c=n("./src/settings.ts"),p=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),d=function(e,t,n,r){var o,i=arguments.length,s=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,r);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(i<3?o(s):i>3?o(t,n,s):o(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},h=function(e){function t(t){var n=e.call(this,t)||this;return n.lastSelectedItemValue=null,n.minMaxChoices=[],n.onOpened=n.addEvent(),n.createLocalizableString("placeholder",n,!1,!0),n.createLocalizableString("clearCaption",n,!1,!0),n.registerPropertyChangedHandlers(["choicesMin","choicesMax","choicesStep"],(function(){n.onVisibleChoicesChanged()})),n.registerPropertyChangedHandlers(["value","renderAs","showOtherItem","otherText","placeholder","choices","visibleChoices"],(function(){n.updateReadOnlyText()})),n.updateReadOnlyText(),n}return p(t,e),t.prototype.updateReadOnlyText=function(){var e=this.selectedItem?"":this.placeholder;"select"==this.renderAs&&(this.isOtherSelected?e=this.otherText:this.isNoneSelected?e=this.noneText:this.selectedItem&&(e=this.selectedItemText)),this.readOnlyText=e},t.prototype.locStrsChanged=function(){e.prototype.locStrsChanged.call(this),this.updateReadOnlyText()},Object.defineProperty(t.prototype,"showOptionsCaption",{get:function(){return this.allowClear},set:function(e){this.allowClear=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"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!0},t.prototype.getChoices=function(){var t=e.prototype.getChoices.call(this);if(this.choicesMax<=this.choicesMin)return t;for(var n=[],r=0;r<t.length;r++)n.push(t[r]);if(0===this.minMaxChoices.length||this.minMaxChoices.length!==(this.choicesMax-this.choicesMin)/this.choicesStep+1)for(this.minMaxChoices=[],r=this.choicesMin;r<=this.choicesMax;r+=this.choicesStep)this.minMaxChoices.push(new a.ItemValue(r));return n.concat(this.minMaxChoices)},Object.defineProperty(t.prototype,"choicesMin",{get:function(){return this.getPropertyValue("choicesMin")},set:function(e){this.setPropertyValue("choicesMin",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"choicesMax",{get:function(){return this.getPropertyValue("choicesMax")},set:function(e){this.setPropertyValue("choicesMax",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"choicesStep",{get:function(){return this.getPropertyValue("choicesStep")},set:function(e){e<1&&(e=1),this.setPropertyValue("choicesStep",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"autocomplete",{get:function(){return this.getPropertyValue("autocomplete","")},set:function(e){this.setPropertyValue("autocomplete",e)},enumerable:!1,configurable:!0}),t.prototype.getControlClass=function(){return(new l.CssClassBuilder).append(this.cssClasses.control).append(this.cssClasses.controlEmpty,this.isEmpty()).append(this.cssClasses.onError,this.errors.length>0).append(this.cssClasses.controlDisabled,this.isReadOnly).append(this.cssClasses.controlInputFieldComponent,!!this.inputFieldComponentName).toString()},Object.defineProperty(t.prototype,"selectedItemLocText",{get:function(){var e=this.suggestedItem||this.selectedItem;return null==e?void 0:e.locText},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"inputFieldComponentName",{get:function(){return this.inputFieldComponent||this.itemComponent},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"showSelectedItemLocText",{get:function(){return!this.inputHasValue&&!this.inputFieldComponentName&&!!this.selectedItemLocText},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"showInputFieldComponent",{get:function(){return!this.inputHasValue&&!!this.inputFieldComponentName&&!this.isEmpty()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"selectedItemText",{get:function(){var e=this.selectedItem;return e?e.text:""},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"dropdownListModel",{get:function(){return"select"===this.renderAs||this.dropdownListModelValue||(this.dropdownListModelValue=new u.DropdownListModel(this)),this.dropdownListModelValue},set:function(e){this.dropdownListModelValue=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"popupModel",{get:function(){var e;return null===(e=this.dropdownListModel)||void 0===e?void 0:e.popupModel},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"ariaExpanded",{get:function(){var e=this.popupModel;return e&&e.isVisible?"true":"false"},enumerable:!1,configurable:!0}),t.prototype.onOpenedCallBack=function(){this.onOpened.fire(this,{question:this,choices:this.choices})},t.prototype.onSelectedItemValuesChangedHandler=function(t){var n;null===(n=this.dropdownListModel)||void 0===n||n.setInputStringFromSelectedItem(t),e.prototype.onSelectedItemValuesChangedHandler.call(this,t)},t.prototype.hasUnknownValue=function(t,n,r,o){return!this.choicesLazyLoadEnabled&&e.prototype.hasUnknownValue.call(this,t,n,r,o)},t.prototype.needConvertRenderedOtherToDataValue=function(){var t,n=null===(t=this.otherValue)||void 0===t?void 0:t.trim();return!!n&&e.prototype.hasUnknownValue.call(this,n,!0,!1)},t.prototype.getItemIfChoicesNotContainThisValue=function(t,n){return this.choicesLazyLoadEnabled&&!this.dropdownListModel.isAllDataLoaded?this.createItemValue(t,n):e.prototype.getItemIfChoicesNotContainThisValue.call(this,t,n)},t.prototype.onVisibleChoicesChanged=function(){e.prototype.onVisibleChoicesChanged.call(this),this.popupModel&&this.dropdownListModel.updateItems()},t.prototype.getFirstInputElementId=function(){return this.inputId+(this.searchEnabled?"_0":"")},t.prototype.getInputId=function(){return this.inputId+"_0"},t.prototype.clearValue=function(){var t;e.prototype.clearValue.call(this),this.lastSelectedItemValue=null,null===(t=this.dropdownListModel)||void 0===t||t.clear()},t.prototype.onClick=function(e){this.onOpenedCallBack&&this.onOpenedCallBack()},t.prototype.onKeyUp=function(e){46===(e.which||e.keyCode)&&(this.clearValue(),e.preventDefault(),e.stopPropagation())},t.prototype.dispose=function(){e.prototype.dispose.call(this),this.dropdownListModelValue&&this.dropdownListModelValue.dispose()},d([Object(o.property)()],t.prototype,"allowClear",void 0),d([Object(o.property)({onSet:function(e,t){t.dropdownListModel&&t.dropdownListModel.setSearchEnabled(e)}})],t.prototype,"searchEnabled",void 0),d([Object(o.property)({defaultValue:!1})],t.prototype,"inputHasValue",void 0),d([Object(o.property)({defaultValue:""})],t.prototype,"readOnlyText",void 0),d([Object(o.property)()],t.prototype,"choicesLazyLoadEnabled",void 0),d([Object(o.property)({defaultValue:25})],t.prototype,"choicesLazyLoadPageSize",void 0),d([Object(o.property)()],t.prototype,"suggestedItem",void 0),t}(s.QuestionSelectBase);o.Serializer.addClass("dropdown",[{name:"placeholder",alternativeName:"optionsCaption",serializationProperty:"locPlaceholder"},{name:"allowClear:boolean",alternativeName:"showOptionsCaption",default:!0},{name:"choicesMin:number",default:0},{name:"choicesMax:number",default:0},{name:"choicesStep:number",default:1,minValue:1},{name:"autocomplete",alternativeName:"autoComplete",choices:c.settings.questions.dataList},{name:"renderAs",default:"default",visible:!1},{name:"searchEnabled:boolean",default:!0,visible:!1},{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 h("")}),"selectbase"),i.QuestionFactory.Instance.registerQuestion("dropdown",(function(e){var t=new h(e);return t.choices=i.QuestionFactory.DefaultChoices,t}))},"./src/question_empty.ts":function(e,t,n){"use strict";n.r(t),n.d(t,"QuestionEmptyModel",(function(){return a}));var r,o=n("./src/jsonobject.ts"),i=n("./src/question.ts"),s=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),a=function(e){function t(t){return e.call(this,t)||this}return s(t,e),t.prototype.getType=function(){return"empty"},t}(i.Question);o.Serializer.addClass("empty",[],(function(){return new a("")}),"question")},"./src/question_expression.ts":function(e,t,n){"use strict";n.r(t),n.d(t,"QuestionExpressionModel",(function(){return c})),n.d(t,"getCurrecyCodes",(function(){return p}));var r,o=n("./src/helpers.ts"),i=n("./src/question.ts"),s=n("./src/jsonobject.ts"),a=n("./src/questionfactory.ts"),l=n("./src/conditions.ts"),u=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),c=function(e){function t(t){var n=e.call(this,t)||this;return n.createLocalizableString("format",n),n.registerPropertyChangedHandlers(["expression"],(function(){n.expressionRunner&&(n.expressionRunner=new l.ExpressionRunner(n.expression))})),n.registerPropertyChangedHandlers(["format","currency","displayStyle"],(function(){n.updateFormatedValue()})),n}return u(t,e),t.prototype.getType=function(){return"expression"},Object.defineProperty(t.prototype,"hasInput",{get:function(){return!1},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"format",{get:function(){return this.getLocalizableStringText("format","")},set:function(e){this.setLocalizableStringText("format",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locFormat",{get:function(){return this.getLocalizableString("format")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"expression",{get:function(){return this.getPropertyValue("expression","")},set:function(e){this.setPropertyValue("expression",e)},enumerable:!1,configurable:!0}),t.prototype.locCalculation=function(){this.expressionIsRunning=!0},t.prototype.unlocCalculation=function(){this.expressionIsRunning=!1},t.prototype.runCondition=function(t,n){var r=this;e.prototype.runCondition.call(this,t,n),!this.expression||this.expressionIsRunning||!this.runIfReadOnly&&this.isReadOnly||(this.locCalculation(),this.expressionRunner||(this.expressionRunner=new l.ExpressionRunner(this.expression)),this.expressionRunner.onRunComplete=function(e){r.value=r.roundValue(e),r.unlocCalculation()},this.expressionRunner.run(t,n))},t.prototype.canCollectErrors=function(){return!0},t.prototype.hasRequiredError=function(){return!1},Object.defineProperty(t.prototype,"maximumFractionDigits",{get:function(){return this.getPropertyValue("maximumFractionDigits")},set:function(e){e<-1||e>20||this.setPropertyValue("maximumFractionDigits",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"minimumFractionDigits",{get:function(){return this.getPropertyValue("minimumFractionDigits")},set:function(e){e<-1||e>20||this.setPropertyValue("minimumFractionDigits",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"runIfReadOnly",{get:function(){return!0===this.runIfReadOnlyValue},set:function(e){this.runIfReadOnlyValue=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"formatedValue",{get:function(){return this.getPropertyValue("formatedValue","")},enumerable:!1,configurable:!0}),t.prototype.updateFormatedValue=function(){this.setPropertyValue("formatedValue",this.getDisplayValueCore(!1,this.value))},t.prototype.onValueChanged=function(){this.updateFormatedValue()},t.prototype.updateValueFromSurvey=function(t){e.prototype.updateValueFromSurvey.call(this,t),this.updateFormatedValue()},t.prototype.getDisplayValueCore=function(e,t){var n=this.isValueEmpty(t)?this.defaultValue:t,r="";if(!this.isValueEmpty(n)){var o=this.getValueAsStr(n);r=this.format?this.format.format(o):o}return this.survey&&(r=this.survey.getExpressionDisplayValue(this,n,r)),r},Object.defineProperty(t.prototype,"displayStyle",{get:function(){return this.getPropertyValue("displayStyle")},set:function(e){this.setPropertyValue("displayStyle",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"currency",{get:function(){return this.getPropertyValue("currency")},set:function(e){["AED","AFN","ALL","AMD","ANG","AOA","ARS","AUD","AWG","AZN","BAM","BBD","BDT","BGN","BHD","BIF","BMD","BND","BOB","BOV","BRL","BSD","BTN","BWP","BYN","BZD","CAD","CDF","CHE","CHF","CHW","CLF","CLP","CNY","COP","COU","CRC","CUC","CUP","CVE","CZK","DJF","DKK","DOP","DZD","EGP","ERN","ETB","EUR","FJD","FKP","GBP","GEL","GHS","GIP","GMD","GNF","GTQ","GYD","HKD","HNL","HRK","HTG","HUF","IDR","ILS","INR","IQD","IRR","ISK","JMD","JOD","JPY","KES","KGS","KHR","KMF","KPW","KRW","KWD","KYD","KZT","LAK","LBP","LKR","LRD","LSL","LYD","MAD","MDL","MGA","MKD","MMK","MNT","MOP","MRO","MUR","MVR","MWK","MXN","MXV","MYR","MZN","NAD","NGN","NIO","NOK","NPR","NZD","OMR","PAB","PEN","PGK","PHP","PKR","PLN","PYG","QAR","RON","RSD","RUB","RWF","SAR","SBD","SCR","SDG","SEK","SGD","SHP","SLL","SOS","SRD","SSP","STD","SVC","SYP","SZL","THB","TJS","TMT","TND","TOP","TRY","TTD","TWD","TZS","UAH","UGX","USD","USN","UYI","UYU","UZS","VEF","VND","VUV","WST","XAF","XAG","XAU","XBA","XBB","XBC","XBD","XCD","XDR","XOF","XPD","XPF","XPT","XSU","XTS","XUA","XXX","YER","ZAR","ZMW","ZWL"].indexOf(e)<0||this.setPropertyValue("currency",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"useGrouping",{get:function(){return this.getPropertyValue("useGrouping")},set:function(e){this.setPropertyValue("useGrouping",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"precision",{get:function(){return this.getPropertyValue("precision")},set:function(e){this.setPropertyValue("precision",e)},enumerable:!1,configurable:!0}),t.prototype.roundValue=function(e){return this.precision<0?e:o.Helpers.isNumber(e)?parseFloat(e.toFixed(this.precision)):e},t.prototype.getValueAsStr=function(e){if("date"==this.displayStyle){var t=new Date(e);if(t&&t.toLocaleDateString)return t.toLocaleDateString()}if("none"!=this.displayStyle&&o.Helpers.isNumber(e)){var n=this.getLocale();n||(n="en");var r={style:this.displayStyle,currency:this.currency,useGrouping:this.useGrouping};return this.maximumFractionDigits>-1&&(r.maximumFractionDigits=this.maximumFractionDigits),this.minimumFractionDigits>-1&&(r.minimumFractionDigits=this.minimumFractionDigits),e.toLocaleString(n,r)}return e.toString()},t}(i.Question);function p(){return["AED","AFN","ALL","AMD","ANG","AOA","ARS","AUD","AWG","AZN","BAM","BBD","BDT","BGN","BHD","BIF","BMD","BND","BOB","BOV","BRL","BSD","BTN","BWP","BYN","BZD","CAD","CDF","CHE","CHF","CHW","CLF","CLP","CNY","COP","COU","CRC","CUC","CUP","CVE","CZK","DJF","DKK","DOP","DZD","EGP","ERN","ETB","EUR","FJD","FKP","GBP","GEL","GHS","GIP","GMD","GNF","GTQ","GYD","HKD","HNL","HRK","HTG","HUF","IDR","ILS","INR","IQD","IRR","ISK","JMD","JOD","JPY","KES","KGS","KHR","KMF","KPW","KRW","KWD","KYD","KZT","LAK","LBP","LKR","LRD","LSL","LYD","MAD","MDL","MGA","MKD","MMK","MNT","MOP","MRO","MUR","MVR","MWK","MXN","MXV","MYR","MZN","NAD","NGN","NIO","NOK","NPR","NZD","OMR","PAB","PEN","PGK","PHP","PKR","PLN","PYG","QAR","RON","RSD","RUB","RWF","SAR","SBD","SCR","SDG","SEK","SGD","SHP","SLL","SOS","SRD","SSP","STD","SVC","SYP","SZL","THB","TJS","TMT","TND","TOP","TRY","TTD","TWD","TZS","UAH","UGX","USD","USN","UYI","UYU","UZS","VEF","VND","VUV","WST","XAF","XAG","XAU","XBA","XBB","XBC","XBD","XCD","XDR","XOF","XPD","XPF","XPT","XSU","XTS","XUA","XXX","YER","ZAR","ZMW","ZWL"]}s.Serializer.addClass("expression",["expression:expression",{name:"format",serializationProperty:"locFormat"},{name:"displayStyle",default:"none",choices:["none","decimal","currency","percent","date"]},{name:"currency",choices:function(){return["AED","AFN","ALL","AMD","ANG","AOA","ARS","AUD","AWG","AZN","BAM","BBD","BDT","BGN","BHD","BIF","BMD","BND","BOB","BOV","BRL","BSD","BTN","BWP","BYN","BZD","CAD","CDF","CHE","CHF","CHW","CLF","CLP","CNY","COP","COU","CRC","CUC","CUP","CVE","CZK","DJF","DKK","DOP","DZD","EGP","ERN","ETB","EUR","FJD","FKP","GBP","GEL","GHS","GIP","GMD","GNF","GTQ","GYD","HKD","HNL","HRK","HTG","HUF","IDR","ILS","INR","IQD","IRR","ISK","JMD","JOD","JPY","KES","KGS","KHR","KMF","KPW","KRW","KWD","KYD","KZT","LAK","LBP","LKR","LRD","LSL","LYD","MAD","MDL","MGA","MKD","MMK","MNT","MOP","MRO","MUR","MVR","MWK","MXN","MXV","MYR","MZN","NAD","NGN","NIO","NOK","NPR","NZD","OMR","PAB","PEN","PGK","PHP","PKR","PLN","PYG","QAR","RON","RSD","RUB","RWF","SAR","SBD","SCR","SDG","SEK","SGD","SHP","SLL","SOS","SRD","SSP","STD","SVC","SYP","SZL","THB","TJS","TMT","TND","TOP","TRY","TTD","TWD","TZS","UAH","UGX","USD","USN","UYI","UYU","UZS","VEF","VND","VUV","WST","XAF","XAG","XAU","XBA","XBB","XBC","XBD","XCD","XDR","XOF","XPD","XPF","XPT","XSU","XTS","XUA","XXX","YER","ZAR","ZMW","ZWL"]},default:"USD"},{name:"maximumFractionDigits:number",default:-1},{name:"minimumFractionDigits:number",default:-1},{name:"useGrouping:boolean",default:!0},{name:"precision:number",default:-1,category:"data"},{name:"enableIf",visible:!1},{name:"isRequired",visible:!1},{name:"readOnly",visible:!1},{name:"requiredErrorText",visible:!1},{name:"defaultValueExpression",visible:!1},{name:"defaultValue",visible:!1},{name:"correctAnswer",visible:!1},{name:"requiredIf",visible:!1}],(function(){return new c("")}),"question"),a.QuestionFactory.Instance.registerQuestion("expression",(function(e){return new c(e)}))},"./src/question_file.ts":function(e,t,n){"use strict";n.r(t),n.d(t,"QuestionFileModel",(function(){return m})),n.d(t,"FileLoader",(function(){return g}));var r,o=n("./src/question.ts"),i=n("./src/jsonobject.ts"),s=n("./src/questionfactory.ts"),a=n("./src/error.ts"),l=n("./src/utils/cssClassBuilder.ts"),u=n("./src/utils/utils.ts"),c=n("./src/actions/container.ts"),p=n("./src/actions/action.ts"),d=n("./src/helpers.ts"),h=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),f=function(e,t,n,r){var o,i=arguments.length,s=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,r);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(i<3?o(s):i>3?o(t,n,s):o(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},m=function(e){function t(t){var n=e.call(this,t)||this;return n.isUploading=!1,n.isDragging=!1,n.onUploadStateChanged=n.addEvent(),n.onStateChanged=n.addEvent(),n.mobileFileNavigator=new c.ActionContainer,n.dragCounter=0,n.onDragEnter=function(e){n.isInputReadOnly||(e.preventDefault(),n.isDragging=!0,n.dragCounter++)},n.onDragOver=function(e){if(n.isInputReadOnly)return e.returnValue=!1,!1;e.dataTransfer.dropEffect="copy",e.preventDefault()},n.onDrop=function(e){if(!n.isInputReadOnly){n.isDragging=!1,n.dragCounter=0,e.preventDefault();var t=e.dataTransfer;n.onChange(t)}},n.onDragLeave=function(e){n.isInputReadOnly||(n.dragCounter--,0===n.dragCounter&&(n.isDragging=!1))},n.doChange=function(e){var t=e.target||e.srcElement;n.onChange(t)},n.doClean=function(e){e.currentTarget||e.srcElement,n.needConfirmRemoveFile&&!Object(u.confirmAction)(n.confirmRemoveAllMessage)||(n.rootElement&&(n.rootElement.querySelectorAll("input")[0].value=""),n.clear())},n.doDownloadFile=function(e,t){Object(u.detectIEOrEdge)()&&(e.preventDefault(),Object(u.loadFileFromBase64)(t.content,t.name))},n.fileIndexAction=new p.Action({id:"fileIndex",title:n.getFileIndexCaption(),enabled:!1}),n.prevFileAction=new p.Action({id:"prevPage",iconSize:16,action:function(){n.indexToShow=n.previewValue.length&&(n.indexToShow-1+n.previewValue.length)%n.previewValue.length||0,n.fileIndexAction.title=n.getFileIndexCaption()}}),n.nextFileAction=new p.Action({id:"nextPage",iconSize:16,action:function(){n.indexToShow=n.previewValue.length&&(n.indexToShow+1)%n.previewValue.length||0,n.fileIndexAction.title=n.getFileIndexCaption()}}),n.mobileFileNavigator.actions=[n.prevFileAction,n.fileIndexAction,n.nextFileAction],n}return h(t,e),Object.defineProperty(t.prototype,"mobileFileNavigatorVisible",{get:function(){return this.isMobile&&this.containsMultiplyFiles},enumerable:!1,configurable:!0}),t.prototype.updateElementCssCore=function(t){e.prototype.updateElementCssCore.call(this,t),this.prevFileAction.iconName=this.cssClasses.leftIconId,this.nextFileAction.iconName=this.cssClasses.rightIconId},t.prototype.getFileIndexCaption=function(){return this.getLocalizationFormatString("indexText",this.indexToShow+1,this.previewValue.length)},t.prototype.previewValueChanged=function(){this.indexToShow=this.previewValue.length>0&&this.indexToShow>0?this.indexToShow-1:0,this.fileIndexAction.title=this.getFileIndexCaption(),this.containsMultiplyFiles=this.previewValue.length>1},t.prototype.isPreviewVisible=function(e){return!this.isMobile||e===this.indexToShow},t.prototype.getType=function(){return"file"},t.prototype.clearValue=function(){this.clearOnDeletingContainer(),e.prototype.clearValue.call(this)},t.prototype.clearOnDeletingContainer=function(){this.survey&&this.survey.clearFiles(this,this.name,this.value,null,(function(){}))},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,"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}),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}),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,"inputTitle",{get:function(){return this.isUploading?this.loadingFileTitle:this.isEmpty()?this.chooseFileTitle:" "},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"chooseButtonText",{get:function(){return this.isEmpty()||this.allowMultiple?this.chooseButtonCaption:this.replaceButtonCaption},enumerable:!1,configurable:!0}),t.prototype.clear=function(e){var t=this;this.survey&&(this.containsMultiplyFiles=!1,this.survey.clearFiles(this,this.name,this.value,null,(function(n,r){"success"===n&&(t.value=void 0,t.errors=[],e&&e(),t.indexToShow=0,t.fileIndexAction.title=t.getFileIndexCaption())})))},Object.defineProperty(t.prototype,"renderCapture",{get:function(){return this.allowCameraAccess?"user":void 0},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"multipleRendered",{get:function(){return this.allowMultiple?"multiple":void 0},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"showRemoveButton",{get:function(){return!this.isReadOnly&&!this.isEmpty()&&this.cssClasses.removeButton},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"showRemoveButtonBottom",{get:function(){return!this.isReadOnly&&!this.isEmpty()&&this.cssClasses.removeButtonBottom},enumerable:!1,configurable:!0}),t.prototype.defaultImage=function(e){return!this.canPreviewImage(e)&&!!this.cssClasses.defaultImage},t.prototype.removeFile=function(e){this.removeFileByContent(this.value.filter((function(t){return t.name===e}))[0])},t.prototype.removeFileByContent=function(e){var t=this;this.survey&&this.survey.clearFiles(this,this.name,this.value,e.name,(function(n,r){if("success"===n){var o=t.value;Array.isArray(o)?t.value=o.filter((function(t){return!d.Helpers.isTwoValueEquals(t,e,!0,!1,!1)})):t.value=void 0}}))},t.prototype.loadFiles=function(e){var t=this;if(this.survey&&(this.errors=[],this.allFilesOk(e))){var n=function(){t.stateChanged("loading");var n=[];t.storeDataAsText?e.forEach((function(r){var o=new FileReader;o.onload=function(i){(n=n.concat([{name:r.name,type:r.type,content:o.result}])).length===e.length&&(t.value=(t.value||[]).concat(n))},o.readAsDataURL(r)})):t.survey&&t.survey.uploadFiles(t,t.name,e,(function(e,n){"error"===e&&t.stateChanged("error"),"success"===e&&(t.value=(t.value||[]).concat(n.map((function(e){return{name:e.file.name,type:e.file.type,content:e.content}}))))}))};this.allowMultiple?n():this.clear(n)}},t.prototype.canPreviewImage=function(e){return this.allowImagesPreview&&!!e&&this.isFileImage(e)},t.prototype.loadPreview=function(e){var t=this;if(this.previewValue.splice(0,this.previewValue.length),this.showPreview&&e){var n=Array.isArray(e)?e:e?[e]:[];this.storeDataAsText?n.forEach((function(e){var n=e.content||e;t.previewValue.push({name:e.name,type:e.type,content:n})})):(this._previewLoader&&this._previewLoader.dispose(),this.isReadyValue=!1,this._previewLoader=new g(this,(function(e,n){"loaded"===e&&(n.forEach((function(e){t.previewValue.push(e)})),t.previewValueChanged()),t.isReady=!0,t._previewLoader.dispose(),t._previewLoader=void 0})),this._previewLoader.load(n)),this.previewValueChanged()}},t.prototype.onCheckForErrors=function(t,n){e.prototype.onCheckForErrors.call(this,t,n),this.isUploading&&this.waitForUpload&&t.push(new a.UploadingFileError(this.getLocalizationString("uploadingFile"),this))},t.prototype.stateChanged=function(e){this.currentState!=e&&("loading"===e&&(this.isUploading=!0),"loaded"===e&&(this.isUploading=!1),"error"===e&&(this.isUploading=!1),this.currentState=e,this.onStateChanged.fire(this,{state:e}),this.onUploadStateChanged.fire(this,{state:e}))},t.prototype.allFilesOk=function(e){var t=this,n=this.errors?this.errors.length:0;return(e||[]).forEach((function(e){t.maxSize>0&&e.size>t.maxSize&&t.errors.push(new a.ExceedSizeError(t.maxSize,t))})),n===this.errors.length},t.prototype.isFileImage=function(e){if(!e||!e.content||!e.content.substring)return!1;var t=e.content&&e.content.substring(0,10);return"data:image"===(t=t&&t.toLowerCase())||!!e.type&&0===e.type.toLowerCase().indexOf("image/")},t.prototype.getPlainData=function(t){void 0===t&&(t={includeEmpty:!0});var n=e.prototype.getPlainData.call(this,t);if(n&&!this.isEmpty()){n.isNode=!1;var r=Array.isArray(this.value)?this.value:[this.value];n.data=r.map((function(e,t){return{name:t,title:"File",value:e.content&&e.content||e,displayValue:e.name&&e.name||e,getString:function(e){return"object"==typeof e?JSON.stringify(e):e},isNode:!1}}))}return n},t.prototype.getChooseFileCss=function(){var e=this.isAnswered;return(new l.CssClassBuilder).append(this.cssClasses.chooseFile).append(this.cssClasses.controlDisabled,this.isReadOnly).append(this.cssClasses.chooseFileAsText,!e).append(this.cssClasses.chooseFileAsTextDisabled,!e&&this.isInputReadOnly).append(this.cssClasses.chooseFileAsIcon,e).toString()},t.prototype.getReadOnlyFileCss=function(){return(new l.CssClassBuilder).append("form-control").append(this.cssClasses.placeholderInput).toString()},Object.defineProperty(t.prototype,"fileRootCss",{get:function(){return(new l.CssClassBuilder).append(this.cssClasses.root).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 l.CssClassBuilder).append(this.cssClasses.fileDecorator).append(this.cssClasses.onError,this.errors.length>0).append(this.cssClasses.fileDecoratorDrag,this.isDragging).toString()},t.prototype.onChange=function(e){if(window.FileReader&&e&&e.files&&!(e.files.length<1)){for(var t=[],n=this.allowMultiple?e.files.length:1,r=0;r<n;r++)t.push(e.files[r]);e.value="",this.loadFiles(t)}},t.prototype.onChangeQuestionValue=function(t){e.prototype.onChangeQuestionValue.call(this,t),this.stateChanged(this.isEmpty()?"empty":"loaded"),this.isLoadingFromJson||this.loadPreview(t)},t.prototype.endLoadingFromJson=function(){e.prototype.endLoadingFromJson.call(this),this.loadPreview(this.value)},t.prototype.afterRender=function(t){this.rootElement=t,e.prototype.afterRender.call(this,t)},t.prototype.doRemoveFile=function(e){if(!this.needConfirmRemoveFile||Object(u.confirmAction)(this.getConfirmRemoveMessage(e.name))){var t=this.previewValue.indexOf(e);this.removeFileByContent(-1===t?e:this.value[t])}},f([Object(i.property)()],t.prototype,"isDragging",void 0),f([Object(i.propertyArray)({})],t.prototype,"previewValue",void 0),f([Object(i.property)({defaultValue:"empty"})],t.prototype,"currentState",void 0),f([Object(i.property)({defaultValue:0})],t.prototype,"indexToShow",void 0),f([Object(i.property)({defaultValue:!1})],t.prototype,"containsMultiplyFiles",void 0),f([Object(i.property)()],t.prototype,"allowCameraAccess",void 0),f([Object(i.property)({localizable:{defaultStr:"confirmRemoveFile"}})],t.prototype,"confirmRemoveMessage",void 0),f([Object(i.property)({localizable:{defaultStr:"confirmRemoveAllFiles"}})],t.prototype,"confirmRemoveAllMessage",void 0),f([Object(i.property)({localizable:{defaultStr:"noFileChosen"}})],t.prototype,"noFileChosenCaption",void 0),f([Object(i.property)({localizable:{defaultStr:"chooseFileCaption"}})],t.prototype,"chooseButtonCaption",void 0),f([Object(i.property)({localizable:{defaultStr:"replaceFileCaption"}})],t.prototype,"replaceButtonCaption",void 0),f([Object(i.property)({localizable:{defaultStr:"clearCaption"}})],t.prototype,"clearButtonCaption",void 0),f([Object(i.property)({localizable:{defaultStr:"removeFileCaption"}})],t.prototype,"removeFileCaption",void 0),f([Object(i.property)({localizable:{defaultStr:"loadingFile"}})],t.prototype,"loadingFileTitle",void 0),f([Object(i.property)({localizable:{defaultStr:"chooseFile"}})],t.prototype,"chooseFileTitle",void 0),f([Object(i.property)({localizable:{defaultStr:"fileDragAreaPlaceholder"}})],t.prototype,"dragAreaPlaceholder",void 0),t}(o.Question);i.Serializer.addClass("file",[{name:"showCommentArea:switch",layout:"row",visible:!0,category:"general"},{name:"showPreview:boolean",default:!0},"allowMultiple:boolean",{name:"allowImagesPreview:boolean",default:!0},"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:"allowCameraAccess:switch",category:"general"}],(function(){return new m("")}),"question"),s.QuestionFactory.Instance.registerQuestion("file",(function(e){return new m(e)}));var g=function(){function e(e,t){this.fileQuestion=e,this.callback=t,this.loaded=[]}return e.prototype.load=function(e){var t=this,n=0;this.loaded=new Array(e.length),e.forEach((function(r,o){t.fileQuestion.survey&&t.fileQuestion.survey.downloadFile(t.fileQuestion,t.fileQuestion.name,r,(function(i,s){t.fileQuestion&&t.callback&&("success"===i?(t.loaded[o]={content:s,name:r.name,type:r.type},++n===e.length&&t.callback("loaded",t.loaded)):t.callback("error",t.loaded))}))}))},e.prototype.dispose=function(){this.fileQuestion=void 0,this.callback=void 0},e}()},"./src/question_html.ts":function(e,t,n){"use strict";n.r(t),n.d(t,"QuestionHtmlModel",(function(){return l}));var r,o=n("./src/questionnonvalue.ts"),i=n("./src/jsonobject.ts"),s=n("./src/questionfactory.ts"),a=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),l=function(e){function t(t){var n=e.call(this,t)||this;return n.createLocalizableString("html",n).onGetTextCallback=function(e){return n.survey&&!n.ignoreHtmlProgressing?n.processHtml(e):e},n}return a(t,e),t.prototype.getType=function(){return"html"},Object.defineProperty(t.prototype,"isCompositeQuestion",{get:function(){return!0},enumerable:!1,configurable:!0}),t.prototype.getProcessedText=function(t){return this.ignoreHtmlProgressing?t:e.prototype.getProcessedText.call(this,t)},Object.defineProperty(t.prototype,"html",{get:function(){return this.getLocalizableStringText("html","")},set:function(e){this.setLocalizableStringText("html",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locHtml",{get:function(){return this.getLocalizableString("html")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"processedHtml",{get:function(){return this.processHtml(this.html)},enumerable:!1,configurable:!0}),t.prototype.processHtml=function(e){return this.survey?this.survey.processHtml(e,"html-question"):this.html},t}(o.QuestionNonValue);i.Serializer.addClass("html",[{name:"html:html",serializationProperty:"locHtml"}],(function(){return new l("")}),"nonvalue"),s.QuestionFactory.Instance.registerQuestion("html",(function(e){return new l(e)}))},"./src/question_image.ts":function(e,t,n){"use strict";n.r(t),n.d(t,"QuestionImageModel",(function(){return f}));var r,o=n("./src/questionnonvalue.ts"),i=n("./src/jsonobject.ts"),s=n("./src/questionfactory.ts"),a=n("./src/utils/cssClassBuilder.ts"),l=n("./src/utils/utils.ts"),u=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),c=["youtube.com","youtu.be"],p=[".mp4",".mov",".wmv",".flv",".avi",".mkv"],d="embed";function h(e){if(!e)return!1;e=e.toLowerCase();for(var t=0;t<c.length;t++)if(-1!==e.indexOf(c[t]))return!0;return!1}var f=function(e){function t(t){var n=e.call(this,t)||this;return n.createLocalizableString("imageLink",n,!1).onGetTextCallback=function(e){return function(e){if(!e||!h(e))return e;if(e.toLocaleLowerCase().indexOf(d)>-1)return e;for(var t="",n=e.length-1;n>=0&&"="!==e[n]&&"/"!==e[n];n--)t=e[n]+t;return"https://www.youtube.com/embed/"+t}(e)},n.createLocalizableString("altText",n,!1),n.registerPropertyChangedHandlers(["contentMode","imageLink"],(function(){return n.calculateRenderedMode()})),n}return u(t,e),t.prototype.getType=function(){return"image"},Object.defineProperty(t.prototype,"isCompositeQuestion",{get:function(){return!1},enumerable:!1,configurable:!0}),t.prototype.onSurveyLoad=function(){e.prototype.onSurveyLoad.call(this),this.calculateRenderedMode()},Object.defineProperty(t.prototype,"imageLink",{get:function(){return this.getLocalizableStringText("imageLink")},set:function(e){this.setLocalizableStringText("imageLink",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locImageLink",{get:function(){return this.getLocalizableString("imageLink")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"altText",{get:function(){return this.getLocalizableStringText("altText")},set:function(e){this.setLocalizableStringText("altText",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locAltText",{get:function(){return this.getLocalizableString("altText")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"imageHeight",{get:function(){return this.getPropertyValue("imageHeight")},set:function(e){this.setPropertyValue("imageHeight",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"renderedStyleHeight",{get:function(){return this.imageHeight?Object(l.getRenderedStyleSize)(this.imageHeight):void 0},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"renderedHeight",{get:function(){return this.imageHeight?Object(l.getRenderedSize)(this.imageHeight):void 0},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"imageWidth",{get:function(){return this.getPropertyValue("imageWidth")},set:function(e){this.setPropertyValue("imageWidth",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"renderedStyleWidth",{get:function(){return this.imageWidth?Object(l.getRenderedStyleSize)(this.imageWidth):void 0},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"renderedWidth",{get:function(){return this.imageWidth?Object(l.getRenderedSize)(this.imageWidth):void 0},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"imageFit",{get:function(){return this.getPropertyValue("imageFit")},set:function(e){this.setPropertyValue("imageFit",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"contentMode",{get:function(){return this.getPropertyValue("contentMode")},set:function(e){this.setPropertyValue("contentMode",e),"video"===e&&(this.showLabel=!0)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"renderedMode",{get:function(){return this.getPropertyValue("renderedMode","image")},enumerable:!1,configurable:!0}),t.prototype.getImageCss=function(){var e=this.getPropertyByName("imageHeight"),t=this.getPropertyByName("imageWidth"),n=e.isDefaultValue(this.imageHeight)&&t.isDefaultValue(this.imageWidth);return(new a.CssClassBuilder).append(this.cssClasses.image).append(this.cssClasses.adaptive,n).toString()},t.prototype.onLoadHandler=function(){this.contentNotLoaded=!1},t.prototype.onErrorHandler=function(){this.contentNotLoaded=!0},t.prototype.setRenderedMode=function(e){this.setPropertyValue("renderedMode",e)},t.prototype.calculateRenderedMode=function(){"auto"!==this.contentMode?this.setRenderedMode(this.contentMode):this.isYoutubeVideo()?this.setRenderedMode("youtube"):this.isVideo()?this.setRenderedMode("video"):this.setRenderedMode("image")},t.prototype.isYoutubeVideo=function(){return h(this.imageLink)},t.prototype.isVideo=function(){var e=this.imageLink;if(!e)return!1;e=e.toLowerCase();for(var t=0;t<p.length;t++)if(e.endsWith(p[t]))return!0;return!1},function(e,t,n,r){var o,i=arguments.length,s=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,r);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(i<3?o(s):i>3?o(t,n,s):o(t,n))||s);i>3&&s&&Object.defineProperty(t,n,s)}([Object(i.property)({defaultValue:!1})],t.prototype,"contentNotLoaded",void 0),t}(o.QuestionNonValue);i.Serializer.addClass("image",[{name:"imageLink",serializationProperty:"locImageLink"},{name:"altText",serializationProperty:"locAltText",alternativeName:"text",category:"general"},{name:"contentMode",default:"auto",choices:["auto","image","video","youtube"]},{name:"imageFit",default:"contain",choices:["none","contain","cover","fill"]},{name:"imageHeight",default:"150"},{name:"imageWidth",default:"200"}],(function(){return new f("")}),"nonvalue"),s.QuestionFactory.Instance.registerQuestion("image",(function(e){return new f(e)}))},"./src/question_imagepicker.ts":function(e,t,n){"use strict";n.r(t),n.d(t,"ImageItemValue",(function(){return f})),n.d(t,"QuestionImagePickerModel",(function(){return m}));var r,o=n("./src/jsonobject.ts"),i=n("./src/questionfactory.ts"),s=n("./src/question_baseselect.ts"),a=n("./src/itemvalue.ts"),l=n("./src/helpers.ts"),u=n("./src/utils/cssClassBuilder.ts"),c=n("./src/settings.ts"),p=n("./src/utils/utils.ts"),d=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),h=function(e,t,n,r){var o,i=arguments.length,s=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,r);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(i<3?o(s):i>3?o(t,n,s):o(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},f=function(e){function t(t,n,r){void 0===n&&(n=null),void 0===r&&(r="imageitemvalue");var o=e.call(this,t,n,r)||this;return o.typeName=r,o.createLocalizableString("imageLink",o,!1),o}return d(t,e),t.prototype.getType=function(){return this.typeName?this.typeName:"itemvalue"},Object.defineProperty(t.prototype,"imageLink",{get:function(){return this.getLocalizableStringText("imageLink")},set:function(e){this.setLocalizableStringText("imageLink",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locImageLink",{get:function(){return this.getLocalizableString("imageLink")},enumerable:!1,configurable:!0}),t.prototype.getLocale=function(){return this.locOwner?this.locOwner.getLocale():""},t.prototype.getMarkdownHtml=function(e,t){return this.locOwner?this.locOwner.getMarkdownHtml(e,t):void 0},t.prototype.getRenderer=function(e){return this.locOwner?this.locOwner.getRenderer(e):null},t.prototype.getRendererContext=function(e){return this.locOwner?this.locOwner.getRendererContext(e):e},t.prototype.getProcessedText=function(e){return this.locOwner?this.locOwner.getProcessedText(e):e},t.prototype.onErrorHandler=function(){this.contentNotLoaded=!0},Object.defineProperty(t.prototype,"contentNotLoaded",{get:function(){return this.locOwner instanceof m&&"video"==this.locOwner.contentMode?this.videoNotLoaded:this.imageNotLoaded},set:function(e){this.locOwner instanceof m&&"video"==this.locOwner.contentMode?this.videoNotLoaded=e:this.imageNotLoaded=e},enumerable:!1,configurable:!0}),h([Object(o.property)({defaultValue:!1})],t.prototype,"videoNotLoaded",void 0),h([Object(o.property)({defaultValue:!1})],t.prototype,"imageNotLoaded",void 0),t}(a.ItemValue),m=function(e){function t(t){var n=e.call(this,t)||this;return n.isResponsiveValue=!1,n.onContentLoaded=function(e,t){e.contentNotLoaded=!1;var r=t.target;"video"==n.contentMode?e.aspectRatio=r.videoWidth/r.videoHeight:e.aspectRatio=r.naturalWidth/r.naturalHeight,n._width&&n.processResponsiveness(0,n._width)},n.colCount=0,n.registerPropertyChangedHandlers(["minImageWidth","maxImageWidth","minImageHeight","maxImageHeight","visibleChoices","colCount","isResponsiveValue"],(function(){n._width&&n.processResponsiveness(0,n._width)})),n.registerPropertyChangedHandlers(["imageWidth","imageHeight"],(function(){n.calcIsResponsive()})),n.calcIsResponsive(),n}return d(t,e),t.prototype.getType=function(){return"imagepicker"},t.prototype.supportGoNextPageAutomatic=function(){return!this.multiSelect},Object.defineProperty(t.prototype,"hasSingleInput",{get:function(){return!1},enumerable:!1,configurable:!0}),t.prototype.getItemValueType=function(){return"imageitemvalue"},Object.defineProperty(t.prototype,"isCompositeQuestion",{get:function(){return!0},enumerable:!1,configurable:!0}),t.prototype.supportOther=function(){return!1},t.prototype.supportNone=function(){return!1},t.prototype.isAnswerCorrect=function(){return this.multiSelect?l.Helpers.isArrayContainsEqual(this.value,this.correctAnswer):e.prototype.isAnswerCorrect.call(this)},Object.defineProperty(t.prototype,"multiSelect",{get:function(){return this.getPropertyValue("multiSelect")},set:function(e){this.setPropertyValue("multiSelect",e)},enumerable:!1,configurable:!0}),t.prototype.isItemSelected=function(e){var t=this.value,n=e;if(this.isValueEmpty(t))return!1;if(!n.imageLink||n.contentNotLoaded)return!1;if(!this.multiSelect)return this.isTwoValueEquals(t,e.value);if(!Array.isArray(t))return!1;for(var r=0;r<t.length;r++)if(this.isTwoValueEquals(t[r],e.value))return!0;return!1},t.prototype.getItemEnabled=function(t){var n=t;return!(!n.imageLink||n.contentNotLoaded)&&e.prototype.getItemEnabled.call(this,t)},t.prototype.clearIncorrectValues=function(){if(this.multiSelect){var t=this.value;if(!t)return;if(!Array.isArray(t)||0==t.length)return void this.clearValue();for(var n=[],r=0;r<t.length;r++)this.hasUnknownValue(t[r],!0)||n.push(t[r]);if(n.length==t.length)return;0==n.length?this.clearValue():this.value=n}else e.prototype.clearIncorrectValues.call(this)},t.prototype.getDisplayValueCore=function(t,n){return this.multiSelect||Array.isArray(n)?this.getDisplayArrayValue(t,n):e.prototype.getDisplayValueCore.call(this,t,n)},Object.defineProperty(t.prototype,"showLabel",{get:function(){return this.getPropertyValue("showLabel")},set:function(e){this.setPropertyValue("showLabel",e)},enumerable:!1,configurable:!0}),t.prototype.endLoadingFromJson=function(){e.prototype.endLoadingFromJson.call(this),!this.isDesignMode&&this.multiSelect&&(this.createNewArray("renderedValue"),this.createNewArray("value")),this.calcIsResponsive()},t.prototype.getValueCore=function(){var t=e.prototype.getValueCore.call(this);return void 0!==t?t:this.multiSelect?[]:t},t.prototype.convertValToArrayForMultSelect=function(e){return this.multiSelect?this.isValueEmpty(e)||Array.isArray(e)?e:[e]:e},t.prototype.renderedValueFromDataCore=function(e){return this.convertValToArrayForMultSelect(e)},t.prototype.rendredValueToDataCore=function(e){return this.convertValToArrayForMultSelect(e)},Object.defineProperty(t.prototype,"imageHeight",{get:function(){return this.getPropertyValue("imageHeight")},set:function(e){this.setPropertyValue("imageHeight",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"renderedImageHeight",{get:function(){return(this.isResponsive?Math.floor(this.responsiveImageHeight):this.imageHeight)||150},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"imageWidth",{get:function(){return this.getPropertyValue("imageWidth")},set:function(e){this.setPropertyValue("imageWidth",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"renderedImageWidth",{get:function(){return(this.isResponsive?Math.floor(this.responsiveImageWidth):this.imageWidth)||200},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"imageFit",{get:function(){return this.getPropertyValue("imageFit")},set:function(e){this.setPropertyValue("imageFit",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"contentMode",{get:function(){return this.getPropertyValue("contentMode")},set:function(e){this.setPropertyValue("contentMode",e),"video"===e&&(this.showLabel=!0)},enumerable:!1,configurable:!0}),t.prototype.convertDefaultValue=function(e){return e},Object.defineProperty(t.prototype,"inputType",{get:function(){return this.multiSelect?"checkbox":"radio"},enumerable:!1,configurable:!0}),t.prototype.isFootChoice=function(e,t){return!1},t.prototype.getSelectBaseRootCss=function(){return(new u.CssClassBuilder).append(e.prototype.getSelectBaseRootCss.call(this)).append(this.cssClasses.rootColumn,1==this.getCurrentColCount()).toString()},Object.defineProperty(t.prototype,"isResponsive",{get:function(){return this.isResponsiveValue&&this.isDefaultV2Theme},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"exactSizesAreEmpty",{get:function(){var e=this;return!["imageHeight","imageWidth"].some((function(t){return void 0!==e[t]&&null!==e[t]}))},enumerable:!1,configurable:!0}),t.prototype.calcIsResponsive=function(){this.isResponsiveValue=this.exactSizesAreEmpty},t.prototype.getObservedElementSelector=function(){return Object(p.classesToSelector)(this.cssClasses.root)},t.prototype.supportResponsiveness=function(){return!0},t.prototype.needResponsiveness=function(){return this.supportResponsiveness()&&this.isDefaultV2Theme},t.prototype.getCurrentColCount=function(){return void 0===this.responsiveColCount||0===this.colCount?this.colCount:this.responsiveColCount},t.prototype.processResponsiveness=function(e,t){this._width=t=Math.floor(t);var n=function(e,t,n){var r=Math.floor(e/(t+n));return(r+1)*(t+n)-n<=e&&r++,r};if(this.isResponsive){var r,o=this.choices.length+(this.isDesignMode?1:0),i=this.gapBetweenItems||0,s=this.minImageWidth,a=this.maxImageWidth,l=this.maxImageHeight,u=this.minImageHeight,c=this.colCount;if(0===c)if((i+s)*o-i>t){var p=n(t,s,i);r=Math.floor((t-i*(p-1))/p)}else r=Math.floor((t-i*(o-1))/o);else{var d=n(t,s,i);d<c?(this.responsiveColCount=d>=1?d:1,c=this.responsiveColCount):this.responsiveColCount=c,r=Math.floor((t-i*(c-1))/c)}r=Math.max(s,Math.min(r,a));var h=Number.MIN_VALUE;this.choices.forEach((function(e){var t=r/e.aspectRatio;h=t>h?t:h})),h>l?h=l:h<u&&(h=u);var f=this.responsiveImageWidth,m=this.responsiveImageHeight;return this.responsiveImageWidth=r,this.responsiveImageHeight=h,f!==this.responsiveImageWidth||m!==this.responsiveImageHeight}return!1},t.prototype.triggerResponsiveness=function(t){void 0===t&&(t=!0),t&&this.reCalcGapBetweenItemsCallback&&this.reCalcGapBetweenItemsCallback(),e.prototype.triggerResponsiveness.call(this,t)},t.prototype.afterRender=function(t){var n=this;e.prototype.afterRender.call(this,t),t&&t.querySelector(this.getObservedElementSelector())&&(this.reCalcGapBetweenItemsCallback=function(){n.gapBetweenItems=Math.ceil(Number.parseFloat(window.getComputedStyle(t.querySelector(n.getObservedElementSelector())).gap))||16},this.reCalcGapBetweenItemsCallback())},h([Object(o.property)({})],t.prototype,"responsiveImageHeight",void 0),h([Object(o.property)({})],t.prototype,"responsiveImageWidth",void 0),h([Object(o.property)({})],t.prototype,"isResponsiveValue",void 0),h([Object(o.property)({})],t.prototype,"maxImageWidth",void 0),h([Object(o.property)({})],t.prototype,"minImageWidth",void 0),h([Object(o.property)({})],t.prototype,"maxImageHeight",void 0),h([Object(o.property)({})],t.prototype,"minImageHeight",void 0),h([Object(o.property)({})],t.prototype,"responsiveColCount",void 0),t}(s.QuestionCheckboxBase);o.Serializer.addClass("imageitemvalue",[{name:"imageLink",serializationProperty:"locImageLink"}],(function(e){return new f(e)}),"itemvalue"),o.Serializer.addClass("responsiveImageSize",[],void 0,"number"),o.Serializer.addClass("imagepicker",[{name:"showOtherItem",visible:!1},{name:"otherText",visible:!1},{name:"showNoneItem",visible:!1},{name:"noneText",visible:!1},{name:"optionsCaption",visible:!1},{name:"otherErrorText",visible:!1},{name:"storeOthersAsComment",visible:!1},{name:"contentMode",default:"image",choices:["image","video"]},{name:"imageFit",default:"contain",choices:["none","contain","cover","fill"]},{name:"imageHeight:number",minValue:0},{name:"imageWidth:number",minValue:0},{name:"minImageWidth:responsiveImageSize",default:200,minValue:0,visibleIf:function(){return c.settings.supportCreatorV2}},{name:"minImageHeight:responsiveImageSize",default:133,minValue:0,visibleIf:function(){return c.settings.supportCreatorV2}},{name:"maxImageWidth:responsiveImageSize",default:400,minValue:0,visibleIf:function(){return c.settings.supportCreatorV2}},{name:"maxImageHeight:responsiveImageSize",default:266,minValue:0,visibleIf:function(){return c.settings.supportCreatorV2}}],(function(){return new m("")}),"checkboxbase"),o.Serializer.addProperty("imagepicker",{name:"showLabel:boolean",default:!1}),o.Serializer.addProperty("imagepicker",{name:"colCount:number",default:0,choices:[0,1,2,3,4,5]}),o.Serializer.addProperty("imagepicker",{name:"multiSelect:boolean",default:!1}),o.Serializer.addProperty("imagepicker",{name:"choices:imageitemvalue[]"}),i.QuestionFactory.Instance.registerQuestion("imagepicker",(function(e){return new m(e)}))},"./src/question_matrix.ts":function(e,t,n){"use strict";n.r(t),n.d(t,"MatrixRowModel",(function(){return y})),n.d(t,"MatrixCells",(function(){return v})),n.d(t,"QuestionMatrixModel",(function(){return b}));var r,o=n("./src/helpers.ts"),i=n("./src/itemvalue.ts"),s=n("./src/martixBase.ts"),a=n("./src/jsonobject.ts"),l=n("./src/base.ts"),u=n("./src/surveyStrings.ts"),c=n("./src/error.ts"),p=n("./src/questionfactory.ts"),d=n("./src/localizablestring.ts"),h=n("./src/question_dropdown.ts"),f=n("./src/settings.ts"),m=n("./src/utils/cssClassBuilder.ts"),g=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),y=function(e){function t(t,n,r,o){var i=e.call(this)||this;return i.fullName=n,i.item=t,i.data=r,i.value=o,i.cellClick=function(e){i.value=e.value},i.registerPropertyChangedHandlers(["value"],(function(){i.data&&i.data.onMatrixRowChanged(i)})),i}return g(t,e),Object.defineProperty(t.prototype,"name",{get:function(){return this.item.value},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"text",{get:function(){return this.item.text},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locText",{get:function(){return this.item.locText},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"value",{get:function(){return this.getPropertyValue("value")},set:function(e){e=this.data.getCorrectedRowValue(e),this.setPropertyValue("value",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"rowClasses",{get:function(){var e=this.data.cssClasses,t=!!this.data.getErrorByType("requiredinallrowserror");return(new m.CssClassBuilder).append(e.row).append(e.rowError,t&&this.isValueEmpty(this.value)).toString()},enumerable:!1,configurable:!0}),t}(l.Base),v=function(){function e(e){this.cellsOwner=e,this.values={}}return Object.defineProperty(e.prototype,"isEmpty",{get:function(){return 0==Object.keys(this.values).length},enumerable:!1,configurable:!0}),e.prototype.valuesChanged=function(){this.onValuesChanged&&this.onValuesChanged()},e.prototype.setCellText=function(e,t,n){if(e=this.getCellRowColumnValue(e,this.rows),t=this.getCellRowColumnValue(t,this.columns),e&&t){if(n)this.values[e]||(this.values[e]={}),this.values[e][t]||(this.values[e][t]=this.createString()),this.values[e][t].text=n;else if(this.values[e]&&this.values[e][t]){var r=this.values[e][t];r.text="",r.isEmpty&&(delete this.values[e][t],0==Object.keys(this.values[e]).length&&delete this.values[e])}this.valuesChanged()}},e.prototype.setDefaultCellText=function(e,t){this.setCellText(f.settings.matrix.defaultRowName,e,t)},e.prototype.getCellLocText=function(e,t){return e=this.getCellRowColumnValue(e,this.rows),t=this.getCellRowColumnValue(t,this.columns),e&&t&&this.values[e]&&this.values[e][t]?this.values[e][t]:null},e.prototype.getDefaultCellLocText=function(e,t){return this.getCellLocText(f.settings.matrix.defaultRowName,e)},e.prototype.getCellDisplayLocText=function(e,t){var n=this.getCellLocText(e,t);return n&&!n.isEmpty||(n=this.getCellLocText(f.settings.matrix.defaultRowName,t))&&!n.isEmpty?n:("number"==typeof t&&(t=t>=0&&t<this.columns.length?this.columns[t]:null),t&&t.locText?t.locText:null)},e.prototype.getCellText=function(e,t){var n=this.getCellLocText(e,t);return n?n.calculatedText:null},e.prototype.getDefaultCellText=function(e){var t=this.getCellLocText(f.settings.matrix.defaultRowName,e);return t?t.calculatedText:null},e.prototype.getCellDisplayText=function(e,t){var n=this.getCellDisplayLocText(e,t);return n?n.calculatedText:null},Object.defineProperty(e.prototype,"rows",{get:function(){return this.cellsOwner?this.cellsOwner.getRows():[]},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"columns",{get:function(){return this.cellsOwner?this.cellsOwner.getColumns():[]},enumerable:!1,configurable:!0}),e.prototype.getCellRowColumnValue=function(e,t){if(null==e)return null;if("number"==typeof e){if(e<0||e>=t.length)return null;e=t[e].value}return e.value?e.value:e},e.prototype.getJson=function(){if(this.isEmpty)return null;var e={};for(var t in this.values){var n={},r=this.values[t];for(var o in r)n[o]=r[o].getJson();e[t]=n}return e},e.prototype.setJson=function(e){if(this.values={},e)for(var t in e)if("pos"!=t){var n=e[t];for(var r in this.values[t]={},n)if("pos"!=r){var o=this.createString();o.setJson(n[r]),this.values[t][r]=o}}this.valuesChanged()},e.prototype.locStrsChanged=function(){if(!this.isEmpty)for(var e in this.values){var t=this.values[e];for(var n in t)t[n].strChanged()}},e.prototype.createString=function(){return new d.LocalizableString(this.cellsOwner,!0)},e}(),b=function(e){function t(t){var n=e.call(this,t)||this;return n.isRowChanging=!1,n.emptyLocalizableString=new d.LocalizableString(n),n.cellsValue=new v(n),n.cellsValue.onValuesChanged=function(){n.updateHasCellText(),n.propertyValueChanged("cells",n.cells,n.cells)},n.registerPropertyChangedHandlers(["columns"],(function(){n.onColumnsChanged()})),n.registerPropertyChangedHandlers(["rows"],(function(){n.filterItems()||n.onRowsChanged()})),n.registerPropertyChangedHandlers(["hideIfRowsEmpty"],(function(){n.updateVisibilityBasedOnRows()})),n}return g(t,e),t.prototype.getType=function(){return"matrix"},Object.defineProperty(t.prototype,"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,"hasRows",{get:function(){return this.rows.length>0},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"rowsOrder",{get:function(){return this.getPropertyValue("rowsOrder")},set:function(e){(e=e.toLowerCase())!=this.rowsOrder&&(this.setPropertyValue("rowsOrder",e),this.onRowsChanged())},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hideIfRowsEmpty",{get:function(){return this.getPropertyValue("hideIfRowsEmpty")},set:function(e){this.setPropertyValue("hideIfRowsEmpty",e)},enumerable:!1,configurable:!0}),t.prototype.getRows=function(){return this.rows},t.prototype.getColumns=function(){return this.visibleColumns},t.prototype.addColumn=function(e,t){var n=new i.ItemValue(e,t);return this.columns.push(n),n},t.prototype.getItemClass=function(e,t){var n=e.value==t.value,r=this.isReadOnly,o=!n&&!r;return(new m.CssClassBuilder).append(this.cssClasses.cell,this.hasCellText).append(this.hasCellText?this.cssClasses.cellText:this.cssClasses.label).append(this.cssClasses.itemOnError,!this.hasCellText&&this.errors.length>0).append(this.hasCellText?this.cssClasses.cellTextSelected:this.cssClasses.itemChecked,n).append(this.hasCellText?this.cssClasses.cellTextDisabled:this.cssClasses.itemDisabled,r).append(this.cssClasses.itemHover,o&&!this.hasCellText).toString()},Object.defineProperty(t.prototype,"itemSvgIcon",{get:function(){return this.cssClasses.itemSvgIconId},enumerable:!1,configurable:!0}),t.prototype.locStrsChanged=function(){e.prototype.locStrsChanged.call(this),this.cells.locStrsChanged()},t.prototype.getQuizQuestionCount=function(){for(var e=0,t=0;t<this.rows.length;t++)this.isValueEmpty(this.correctAnswer[this.rows[t].value])||e++;return e},t.prototype.getCorrectAnswerCount=function(){for(var e=0,t=this.value,n=0;n<this.rows.length;n++){var r=this.rows[n].value;!this.isValueEmpty(t[r])&&this.isTwoValueEquals(this.correctAnswer[r],t[r])&&e++}return e},t.prototype.getVisibleRows=function(){var e=new Array,t=this.value;t||(t={});for(var n=this.filteredRows?this.filteredRows:this.rows,r=0;r<n.length;r++){var o=n[r];this.isValueEmpty(o.value)||e.push(this.createMatrixRow(o,this.id+"_"+o.value.toString().replace(/\s/g,"_"),t[o.value]))}return this.generatedVisibleRows=e,e},t.prototype.sortVisibleRows=function(e){return this.survey&&this.survey.isDesignMode?e:"random"===this.rowsOrder.toLowerCase()?o.Helpers.randomizeArray(e):e},t.prototype.endLoadingFromJson=function(){e.prototype.endLoadingFromJson.call(this),this.rows=this.sortVisibleRows(this.rows)},t.prototype.isNewValueCorrect=function(e){return o.Helpers.isValueObject(e)},t.prototype.processRowsOnSet=function(e){return this.sortVisibleRows(e)},Object.defineProperty(t.prototype,"visibleRows",{get:function(){return this.getVisibleRows()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"cells",{get:function(){return this.cellsValue},set:function(e){this.cells.setJson(e&&e.getJson?e.getJson():null)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hasCellText",{get:function(){return this.getPropertyValue("hasCellText",!1)},enumerable:!1,configurable:!0}),t.prototype.updateHasCellText=function(){this.setPropertyValue("hasCellText",!this.cells.isEmpty)},t.prototype.setCellText=function(e,t,n){this.cells.setCellText(e,t,n)},t.prototype.getCellText=function(e,t){return this.cells.getCellText(e,t)},t.prototype.setDefaultCellText=function(e,t){this.cells.setDefaultCellText(e,t)},t.prototype.getDefaultCellText=function(e){return this.cells.getDefaultCellText(e)},t.prototype.getCellDisplayText=function(e,t){return this.cells.getCellDisplayText(e,t)},t.prototype.getCellDisplayLocText=function(e,t){return this.cells.getCellDisplayLocText(e,t)||this.emptyLocalizableString},t.prototype.supportGoNextPageAutomatic=function(){return!0===this.isMouseDown&&this.hasValuesInAllRows()},t.prototype.onCheckForErrors=function(t,n){e.prototype.onCheckForErrors.call(this,t,n),(!n||this.errors.length>0)&&this.hasErrorInRows()&&t.push(new c.RequiredInAllRowsError(null,this))},t.prototype.hasErrorInRows=function(){return!!this.isAllRowRequired&&!this.hasValuesInAllRows()},t.prototype.hasValuesInAllRows=function(){var e=this.generatedVisibleRows;if(e||(e=this.visibleRows),!e)return!0;for(var t=0;t<e.length;t++)if(this.isValueEmpty(e[t].value))return!1;return!0},t.prototype.getIsAnswered=function(){return e.prototype.getIsAnswered.call(this)&&this.hasValuesInAllRows()},t.prototype.createMatrixRow=function(e,t,n){var r=new y(e,t,this,n);return this.onMatrixRowCreated(r),r},t.prototype.onMatrixRowCreated=function(e){},t.prototype.setQuestionValue=function(t,n){if(void 0===n&&(n=!0),e.prototype.setQuestionValue.call(this,t,this.isRowChanging||n),this.generatedVisibleRows&&0!=this.generatedVisibleRows.length){this.isRowChanging=!0;var r=this.value;if(r||(r={}),0==this.rows.length)this.generatedVisibleRows[0].value=r;else for(var o=0;o<this.generatedVisibleRows.length;o++){var i=r[this.generatedVisibleRows[o].name];this.isValueEmpty(i)&&(i=null),this.generatedVisibleRows[o].value=i}this.updateIsAnswered(),this.isRowChanging=!1}},t.prototype.getDisplayValueCore=function(e,t){var n={};for(var r in t){var o=e?i.ItemValue.getTextOrHtmlByValue(this.rows,r):r;o||(o=r);var s=i.ItemValue.getTextOrHtmlByValue(this.columns,t[r]);s||(s=t[r]),n[o]=s}return n},t.prototype.getPlainData=function(t){var n=this;void 0===t&&(t={includeEmpty:!0});var r=e.prototype.getPlainData.call(this,t);if(r){var o=this.createValueCopy();r.isNode=!0,r.data=Object.keys(o||{}).map((function(e){var r=n.rows.filter((function(t){return t.value===e}))[0],s={name:e,title:r?r.text:"row",value:o[e],displayValue:i.ItemValue.getTextOrHtmlByValue(n.visibleColumns,o[e]),getString:function(e){return"object"==typeof e?JSON.stringify(e):e},isNode:!1},a=i.ItemValue.getItemByValue(n.visibleColumns,o[e]);return a&&(t.calculations||[]).forEach((function(e){s[e.propertyName]=a[e.propertyName]})),s}))}return r},t.prototype.addConditionObjectsByContext=function(e,t){for(var n=0;n<this.rows.length;n++){var r=this.rows[n];r.value&&e.push({name:this.getValueName()+"."+r.value,text:this.processedTitle+"."+r.calculatedText,question:this})}},t.prototype.getConditionJson=function(t,n){if(void 0===t&&(t=null),void 0===n&&(n=null),!n)return e.prototype.getConditionJson.call(this);var r=new h.QuestionDropdownModel(n);r.choices=this.columns;var o=(new a.JsonObject).toJsonObject(r);return o.type=r.getType(),o},t.prototype.clearValueIfInvisibleCore=function(t){e.prototype.clearValueIfInvisibleCore.call(this,t),this.hasRows&&this.clearInvisibleValuesInRows()},t.prototype.getFirstInputElementId=function(){var t=this.generatedVisibleRows;return t||(t=this.visibleRows),t.length>0&&this.visibleColumns.length>0?this.inputId+"_"+t[0].name+"_0":e.prototype.getFirstInputElementId.call(this)},t.prototype.onMatrixRowChanged=function(e){if(!this.isRowChanging){if(this.isRowChanging=!0,this.hasRows){var t=this.value;t||(t={}),t[e.name]=e.value,this.setNewValue(t)}else this.setNewValue(e.value);this.isRowChanging=!1}},t.prototype.getCorrectedRowValue=function(e){for(var t=0;t<this.columns.length;t++)if(e===this.columns[t].value)return e;for(t=0;t<this.columns.length;t++)if(this.isTwoValueEquals(e,this.columns[t].value))return this.columns[t].value;return e},t.prototype.getSearchableItemValueKeys=function(e){e.push("columns"),e.push("rows")},Object.defineProperty(t.prototype,"SurveyModel",{get:function(){return this.survey},enumerable:!1,configurable:!0}),t.prototype.getColumnHeaderWrapperComponentName=function(e){return this.SurveyModel.getElementWrapperComponentName({column:e},"column-header")},t.prototype.getColumnHeaderWrapperComponentData=function(e){return this.SurveyModel.getElementWrapperComponentData({column:e},"column-header")},t.prototype.getRowHeaderWrapperComponentName=function(e){return this.SurveyModel.getElementWrapperComponentName({row:e},"row-header")},t.prototype.getRowHeaderWrapperComponentData=function(e){return this.SurveyModel.getElementWrapperComponentData({row:e},"row-header")},t}(s.QuestionMatrixBaseModel);a.Serializer.addClass("matrix",["rowTitleWidth",{name:"columns:itemvalue[]",uniqueProperty:"value",baseValue:function(){return u.surveyLocalization.getString("matrix_column")}},{name:"rows:itemvalue[]",uniqueProperty:"value",baseValue:function(){return u.surveyLocalization.getString("matrix_row")}},{name:"cells:cells",serializationProperty:"cells"},{name:"rowsOrder",default:"initial",choices:["initial","random"]},"isAllRowRequired:boolean","hideIfRowsEmpty:boolean"],(function(){return new b("")}),"matrixbase"),p.QuestionFactory.Instance.registerQuestion("matrix",(function(e){var t=new b(e);return t.rows=p.QuestionFactory.DefaultRows,t.columns=p.QuestionFactory.DefaultColums,t}))},"./src/question_matrixdropdown.ts":function(e,t,n){"use strict";n.r(t),n.d(t,"MatrixDropdownRowModel",(function(){return c})),n.d(t,"QuestionMatrixDropdownModel",(function(){return p}));var r,o=n("./src/question_matrixdropdownbase.ts"),i=n("./src/jsonobject.ts"),s=n("./src/itemvalue.ts"),a=n("./src/questionfactory.ts"),l=n("./src/helpers.ts"),u=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),c=function(e){function t(t,n,r,o){var i=e.call(this,r,o)||this;return i.name=t,i.item=n,i.buildCells(o),i}return u(t,e),Object.defineProperty(t.prototype,"rowName",{get:function(){return this.name},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"text",{get:function(){return this.item.text},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locText",{get:function(){return this.item.locText},enumerable:!1,configurable:!0}),t}(o.MatrixDropdownRowModelBase),p=function(e){function t(t){var n=e.call(this,t)||this;return n.createLocalizableString("totalText",n,!0),n.registerPropertyChangedHandlers(["rows"],(function(){n.clearGeneratedRows(),n.resetRenderedTable(),n.filterItems()||n.onRowsChanged(),n.clearIncorrectValues()})),n.registerPropertyChangedHandlers(["hideIfRowsEmpty"],(function(){n.updateVisibilityBasedOnRows()})),n}return u(t,e),t.prototype.getType=function(){return"matrixdropdown"},Object.defineProperty(t.prototype,"totalText",{get:function(){return this.getLocalizableStringText("totalText","")},set:function(e){this.setLocalizableStringText("totalText",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locTotalText",{get:function(){return this.getLocalizableString("totalText")},enumerable:!1,configurable:!0}),t.prototype.getFooterText=function(){return this.locTotalText},t.prototype.getRowTitleWidth=function(){return this.rowTitleWidth},Object.defineProperty(t.prototype,"hideIfRowsEmpty",{get:function(){return this.getPropertyValue("hideIfRowsEmpty")},set:function(e){this.setPropertyValue("hideIfRowsEmpty",e)},enumerable:!1,configurable:!0}),t.prototype.getDisplayValueCore=function(e,t){if(!t)return t;var n=this.visibleRows,r={};if(!n)return r;for(var o=0;o<n.length;o++){var i=n[o].rowName,a=t[i];if(a){if(e){var l=s.ItemValue.getTextOrHtmlByValue(this.rows,i);l&&(i=l)}r[i]=this.getRowDisplayValue(e,n[o],a)}}return r},t.prototype.getConditionObjectRowName=function(e){return"."+this.rows[e].value},t.prototype.getConditionObjectRowText=function(e){return"."+this.rows[e].calculatedText},t.prototype.getConditionObjectsRowIndeces=function(){for(var e=[],t=0;t<this.rows.length;t++)e.push(t);return e},t.prototype.isNewValueCorrect=function(e){return l.Helpers.isValueObject(e)},t.prototype.clearIncorrectValues=function(){var t=this.value;if(t){var n=null,r=!1,o=this.filteredRows?this.filteredRows:this.rows;for(var i in t)s.ItemValue.getItemByValue(o,i)?(null==n&&(n={}),n[i]=t[i]):r=!0;r&&(this.value=n),e.prototype.clearIncorrectValues.call(this)}},t.prototype.clearValueIfInvisibleCore=function(t){e.prototype.clearValueIfInvisibleCore.call(this,t),this.clearInvisibleValuesInRows()},t.prototype.generateRows=function(){var e=new Array,t=this.filteredRows?this.filteredRows:this.rows;if(!t||0===t.length)return e;var n=this.value;n||(n={});for(var r=0;r<t.length;r++)this.isValueEmpty(t[r].value)||e.push(this.createMatrixRow(t[r],n[t[r].value]));return e},t.prototype.createMatrixRow=function(e,t){return new c(e.value,e,this,t)},t.prototype.getSearchableItemValueKeys=function(e){e.push("rows")},t.prototype.updateProgressInfoByValues=function(e){var t=this.value;t||(t={});for(var n=0;n<this.rows.length;n++){var r=t[this.rows[n].value];this.updateProgressInfoByRow(e,r||{})}},t}(o.QuestionMatrixDropdownModelBase);i.Serializer.addClass("matrixdropdown",[{name:"rows:itemvalue[]",uniqueProperty:"value"},"rowsVisibleIf:condition","rowTitleWidth",{name:"totalText",serializationProperty:"locTotalText"},"hideIfRowsEmpty:boolean"],(function(){return new p("")}),"matrixdropdownbase"),a.QuestionFactory.Instance.registerQuestion("matrixdropdown",(function(e){var t=new p(e);return t.choices=[1,2,3,4,5],t.rows=a.QuestionFactory.DefaultRows,o.QuestionMatrixDropdownModelBase.addDefaultColumns(t),t}))},"./src/question_matrixdropdownbase.ts":function(e,t,n){"use strict";n.r(t),n.d(t,"MatrixDropdownCell",(function(){return b})),n.d(t,"MatrixDropdownTotalCell",(function(){return C})),n.d(t,"MatrixDropdownRowModelBase",(function(){return x})),n.d(t,"MatrixDropdownTotalRowModel",(function(){return P})),n.d(t,"QuestionMatrixDropdownModelBase",(function(){return S}));var r,o=n("./src/jsonobject.ts"),i=n("./src/martixBase.ts"),s=n("./src/helpers.ts"),a=n("./src/base.ts"),l=n("./src/survey-element.ts"),u=n("./src/textPreProcessor.ts"),c=n("./src/itemvalue.ts"),p=n("./src/questionfactory.ts"),d=n("./src/functionsfactory.ts"),h=n("./src/settings.ts"),f=n("./src/error.ts"),m=n("./src/utils/cssClassBuilder.ts"),g=n("./src/question_matrixdropdowncolumn.ts"),y=n("./src/question_matrixdropdownrendered.ts"),v=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),b=function(){function e(e,t,n){this.column=e,this.row=t,this.data=n,this.questionValue=this.createQuestion(e,t,n),this.questionValue.updateCustomWidget()}return e.prototype.locStrsChanged=function(){this.question.locStrsChanged()},e.prototype.createQuestion=function(e,t,n){var r=n.createQuestion(this.row,this.column);return r.validateValueCallback=function(){return n.validateCell(t,e.name,t.value)},o.CustomPropertiesCollection.getProperties(e.getType()).forEach((function(t){var n=t.name;void 0!==e[n]&&(r[n]=e[n])})),r},Object.defineProperty(e.prototype,"question",{get:function(){return this.questionValue},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"value",{get:function(){return this.question.value},set:function(e){this.question.value=e},enumerable:!1,configurable:!0}),e.prototype.runCondition=function(e,t){this.question.runCondition(e,t)},e}(),C=function(e){function t(t,n,r){var o=e.call(this,t,n,r)||this;return o.column=t,o.row=n,o.data=r,o.updateCellQuestion(),o}return v(t,e),t.prototype.createQuestion=function(e,t,n){var r=o.Serializer.createClass("expression");return r.setSurveyImpl(t),r},t.prototype.locStrsChanged=function(){this.updateCellQuestion(),e.prototype.locStrsChanged.call(this)},t.prototype.updateCellQuestion=function(){this.question.locCalculation(),this.column.updateCellQuestion(this.question,null,(function(e){delete e.defaultValue})),this.question.expression=this.getTotalExpression(),this.question.format=this.column.totalFormat,this.question.currency=this.column.totalCurrency,this.question.displayStyle=this.column.totalDisplayStyle,this.question.maximumFractionDigits=this.column.totalMaximumFractionDigits,this.question.minimumFractionDigits=this.column.totalMinimumFractionDigits,this.question.unlocCalculation(),this.question.runIfReadOnly=!0},t.prototype.getTotalExpression=function(){if(this.column.totalExpression)return this.column.totalExpression;if("none"==this.column.totalType)return"''";var e=this.column.totalType+"InArray";return d.FunctionFactory.Instance.hasFunction(e)?e+"({self}, '"+this.column.name+"')":""},t}(b),w=function(e){function t(t,n,r){var o=e.call(this,n)||this;return o.row=t,o.variableName=n,o.parentTextProcessor=r,o}return v(t,e),t.prototype.getParentTextProcessor=function(){return this.parentTextProcessor},Object.defineProperty(t.prototype,"survey",{get:function(){return this.row.getSurvey()},enumerable:!1,configurable:!0}),t.prototype.getValues=function(){return this.row.value},t.prototype.getQuestionByName=function(e){return this.row.getQuestionByName(e)},t.prototype.onCustomProcessText=function(e){return e.name==x.IndexVariableName?(e.isExists=!0,e.value=this.row.rowIndex,!0):e.name==x.RowValueVariableName&&(e.isExists=!0,e.value=this.row.rowName,!0)},t}(u.QuestionTextProcessor),x=function(){function e(t,n){var r=this;this.isSettingValue=!1,this.detailPanelValue=null,this.cells=[],this.isCreatingDetailPanel=!1,this.data=t,this.subscribeToChanges(n),this.textPreProcessor=new w(this,e.RowVariableName,t?t.getParentTextProcessor():null),this.showHideDetailPanelClick=function(){if(r.getSurvey().isDesignMode)return!0;r.showHideDetailPanel()},this.idValue=e.getId()}return e.getId=function(){return"srow_"+e.idCounter++},Object.defineProperty(e.prototype,"id",{get:function(){return this.idValue},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"rowName",{get:function(){return null},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"text",{get:function(){return this.rowName},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"value",{get:function(){for(var e={},t=this.questions,n=0;n<t.length;n++){var r=t[n];r.isEmpty()||(e[r.getValueName()]=r.value),r.comment&&this.getSurvey()&&this.getSurvey().storeOthersAsComment&&(e[r.getValueName()+a.Base.commentSuffix]=r.comment)}return e},set:function(e){this.isSettingValue=!0,this.subscribeToChanges(e);for(var t=this.questions,n=0;n<t.length;n++){var r=t[n],o=this.getCellValue(e,r.getValueName()),i=r.comment,s=e?e[r.getValueName()+a.Base.commentSuffix]:"";null==s&&(s=""),r.updateValueFromSurvey(o),(s||this.isTwoValueEquals(i,r.comment))&&r.updateCommentFromSurvey(s),r.onSurveyValueChanged(o)}this.isSettingValue=!1},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"locText",{get:function(){return null},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"hasPanel",{get:function(){return!!this.data&&this.data.hasDetailPanel(this)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"detailPanel",{get:function(){return this.detailPanelValue},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"detailPanelId",{get:function(){return this.detailPanel?this.detailPanel.id:""},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"isDetailPanelShowing",{get:function(){return!!this.data&&this.data.getIsDetailPanelShowing(this)},enumerable:!1,configurable:!0}),e.prototype.setIsDetailPanelShowing=function(e){this.data&&this.data.setIsDetailPanelShowing(this,e),this.onDetailPanelShowingChanged&&this.onDetailPanelShowingChanged()},e.prototype.showHideDetailPanel=function(){this.isDetailPanelShowing?this.hideDetailPanel():this.showDetailPanel()},e.prototype.showDetailPanel=function(){this.ensureDetailPanel(),this.detailPanelValue&&this.setIsDetailPanelShowing(!0)},e.prototype.hideDetailPanel=function(e){void 0===e&&(e=!1),this.setIsDetailPanelShowing(!1),e&&(this.detailPanelValue=null)},e.prototype.ensureDetailPanel=function(){if(!this.isCreatingDetailPanel&&!this.detailPanelValue&&this.hasPanel&&this.data){this.isCreatingDetailPanel=!0,this.detailPanelValue=this.data.createRowDetailPanel(this);var e=this.detailPanelValue.questions,t=this.data.getRowValue(this.data.getRowIndex(this));if(!s.Helpers.isValueEmpty(t))for(var n=0;n<e.length;n++){var r=e[n].getValueName();s.Helpers.isValueEmpty(t[r])||(e[n].value=t[r])}this.detailPanelValue.setSurveyImpl(this),this.isCreatingDetailPanel=!1}},e.prototype.getAllValues=function(){return this.value},e.prototype.getFilteredValues=function(){var e=this.getAllValues(),t=this.validationValues;for(var n in t||(t={}),t.row=e,e)t[n]=e[n];return t},e.prototype.getFilteredProperties=function(){return{survey:this.getSurvey(),row:this}},e.prototype.runCondition=function(t,n){this.data&&(t[e.OwnerVariableName]=this.data.value),t[e.IndexVariableName]=this.rowIndex,t[e.RowValueVariableName]=this.rowName,n||(n={}),n[e.RowVariableName]=this;for(var r=0;r<this.cells.length;r++)t[e.RowVariableName]=this.value,this.cells[r].runCondition(t,n);this.detailPanel&&this.detailPanel.runCondition(t,n)},e.prototype.clearValue=function(){for(var e=this.questions,t=0;t<e.length;t++)e[t].clearValue()},e.prototype.onAnyValueChanged=function(e){for(var t=this.questions,n=0;n<t.length;n++)t[n].onAnyValueChanged(e)},e.prototype.getDataValueCore=function(e,t){var n=this.getSurvey();return n?n.getDataValueCore(e,t):e[t]},e.prototype.getValue=function(e){var t=this.getQuestionByName(e);return t?t.value:null},e.prototype.setValue=function(e,t){this.setValueCore(e,t,!1)},e.prototype.getVariable=function(e){},e.prototype.setVariable=function(e,t){},e.prototype.getComment=function(e){var t=this.getQuestionByName(e);return t?t.comment:""},e.prototype.setComment=function(e,t,n){this.setValueCore(e,t,!0)},e.prototype.findQuestionByName=function(t){if(t){var n=e.RowVariableName+".";if(0===t.indexOf(n))return this.getQuestionByName(t.substring(n.length));var r=this.getSurvey();return r?r.getQuestionByName(t):null}},e.prototype.setValueCore=function(t,n,r){if(!this.isSettingValue){this.updateQuestionsValue(t,n,r);var o=this.value,i=r?t+a.Base.commentSuffix:t,s=n,l=this.getQuestionByName(t),u=this.data.onRowChanging(this,i,o);if(l&&!this.isTwoValueEquals(u,s)&&(this.isSettingValue=!0,r?l.comment=u:l.value=u,this.isSettingValue=!1,o=this.value),!this.data.isValidateOnValueChanging||!this.hasQuestonError(l)){var c=null==n&&!l||r&&!n&&!!l&&l.autoOtherMode;this.data.onRowChanged(this,i,o,c),this.onAnyValueChanged(e.RowVariableName)}}},e.prototype.updateQuestionsValue=function(e,t,n){if(this.detailPanel){var r=this.getQuestionByColumnName(e),o=this.detailPanel.getQuestionByName(e);if(r&&o){var i=this.isTwoValueEquals(t,n?r.comment:r.value)?o:r;this.isSettingValue=!0,n?i.comment=t:i.value=t,this.isSettingValue=!1}}},e.prototype.hasQuestonError=function(e){if(!e)return!1;if(e.hasErrors(!0,{isOnValueChanged:!this.data.isValidateOnValueChanging}))return!0;if(e.isEmpty())return!1;var t=this.getCellByColumnName(e.name);return!!(t&&t.column&&t.column.isUnique)&&this.data.checkIfValueInRowDuplicated(this,e)},Object.defineProperty(e.prototype,"isEmpty",{get:function(){var e=this.value;if(s.Helpers.isValueEmpty(e))return!0;for(var t in e)if(void 0!==e[t]&&null!==e[t])return!1;return!0},enumerable:!1,configurable:!0}),e.prototype.getQuestionByColumn=function(e){var t=this.getCellByColumn(e);return t?t.question:null},e.prototype.getCellByColumn=function(e){for(var t=0;t<this.cells.length;t++)if(this.cells[t].column==e)return this.cells[t];return null},e.prototype.getCellByColumnName=function(e){for(var t=0;t<this.cells.length;t++)if(this.cells[t].column.name==e)return this.cells[t];return null},e.prototype.getQuestionByColumnName=function(e){var t=this.getCellByColumnName(e);return t?t.question:null},Object.defineProperty(e.prototype,"questions",{get:function(){for(var e=[],t=0;t<this.cells.length;t++)e.push(this.cells[t].question);var n=this.detailPanel?this.detailPanel.questions:[];for(t=0;t<n.length;t++)e.push(n[t]);return e},enumerable:!1,configurable:!0}),e.prototype.getQuestionByName=function(e){return this.getQuestionByColumnName(e)||(this.detailPanel?this.detailPanel.getQuestionByName(e):null)},e.prototype.getQuestionsByName=function(e){var t=[],n=this.getQuestionByColumnName(e);return n&&t.push(n),this.detailPanel&&(n=this.detailPanel.getQuestionByName(e))&&t.push(n),t},e.prototype.getSharedQuestionByName=function(e){return this.data?this.data.getSharedQuestionByName(e,this):null},e.prototype.clearIncorrectValues=function(e){for(var t in e){var n=this.getQuestionByName(t);if(n){var r=n.value;n.clearIncorrectValues(),this.isTwoValueEquals(r,n.value)||this.setValue(t,n.value)}else!this.getSharedQuestionByName(t)&&t.indexOf(h.settings.matrix.totalsSuffix)<0&&this.setValue(t,null)}},e.prototype.getLocale=function(){return this.data?this.data.getLocale():""},e.prototype.getMarkdownHtml=function(e,t){return this.data?this.data.getMarkdownHtml(e,t):void 0},e.prototype.getRenderer=function(e){return this.data?this.data.getRenderer(e):null},e.prototype.getRendererContext=function(e){return this.data?this.data.getRendererContext(e):e},e.prototype.getProcessedText=function(e){return this.data?this.data.getProcessedText(e):e},e.prototype.locStrsChanged=function(){for(var e=0;e<this.cells.length;e++)this.cells[e].locStrsChanged();this.detailPanel&&this.detailPanel.locStrsChanged()},e.prototype.updateCellQuestionOnColumnChanged=function(e,t,n){var r=this.getCellByColumn(e);r&&this.updateCellOnColumnChanged(r,t,n)},e.prototype.updateCellQuestionOnColumnItemValueChanged=function(e,t,n,r,o,i){var s=this.getCellByColumn(e);s&&this.updateCellOnColumnItemValueChanged(s,t,n,r,o,i)},e.prototype.onQuestionReadOnlyChanged=function(e){for(var t=this.questions,n=0;n<t.length;n++){var r=t[n];r.setPropertyValue("isReadOnly",r.isReadOnly)}this.detailPanel&&(this.detailPanel.readOnly=e)},e.prototype.hasErrors=function(e,t,n){var r=!1,o=this.cells;if(!o)return r;this.validationValues=t.validationValues;for(var i=0;i<o.length;i++)if(o[i]){var s=o[i].question;s&&s.visible&&(s.onCompletedAsyncValidators=function(e){n()},t&&!0===t.isOnValueChanged&&s.isEmpty()||(r=s.hasErrors(e,t)||r))}if(this.hasPanel){this.ensureDetailPanel();var a=this.detailPanel.hasErrors(e,!1,t);!t.hideErroredPanel&&a&&e&&(t.isSingleDetailPanel&&(t.hideErroredPanel=!0),this.showDetailPanel()),r=a||r}return this.validationValues=void 0,r},e.prototype.updateCellOnColumnChanged=function(e,t,n){e.question[t]=n},e.prototype.updateCellOnColumnItemValueChanged=function(e,t,n,r,o,i){var s=e.question[t];if(Array.isArray(s)){var a="value"===r?i:n.value,l=c.ItemValue.getItemByValue(s,a);l&&(l[r]=o)}},e.prototype.buildCells=function(e){this.isSettingValue=!0;for(var t=this.data.columns,n=0;n<t.length;n++){var r=t[n];if(r.isVisible){var o=this.createCell(r);this.cells.push(o);var i=this.getCellValue(e,r.name);if(!s.Helpers.isValueEmpty(i)){o.question.value=i;var l=r.name+a.Base.commentSuffix;e&&!s.Helpers.isValueEmpty(e[l])&&(o.question.comment=e[l])}}}this.isSettingValue=!1},e.prototype.isTwoValueEquals=function(e,t){return s.Helpers.isTwoValueEquals(e,t,!1,!0,!1)},e.prototype.getCellValue=function(e,t){return this.editingObj?o.Serializer.getObjPropertyValue(this.editingObj,t):e?e[t]:void 0},e.prototype.createCell=function(e){return new b(e,this,this.data)},e.prototype.getSurveyData=function(){return this},e.prototype.getSurvey=function(){return this.data?this.data.getSurvey():null},e.prototype.getTextProcessor=function(){return this.textPreProcessor},Object.defineProperty(e.prototype,"rowIndex",{get:function(){return this.data?this.data.getRowIndex(this)+1:-1},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"editingObj",{get:function(){return this.editingObjValue},enumerable:!1,configurable:!0}),e.prototype.dispose=function(){this.editingObj&&(this.editingObj.onPropertyChanged.remove(this.onEditingObjPropertyChanged),this.editingObjValue=null)},e.prototype.subscribeToChanges=function(e){var t=this;e&&e.getType&&e.onPropertyChanged&&e!==this.editingObj&&(this.editingObjValue=e,this.onEditingObjPropertyChanged=function(e,n){t.updateOnSetValue(n.name,n.newValue)},this.editingObj.onPropertyChanged.add(this.onEditingObjPropertyChanged))},e.prototype.updateOnSetValue=function(e,t){this.isSettingValue=!0;for(var n=this.getQuestionsByName(e),r=0;r<n.length;r++)n[r].value=t;this.isSettingValue=!1},e.RowVariableName="row",e.OwnerVariableName="self",e.IndexVariableName="rowIndex",e.RowValueVariableName="rowValue",e.idCounter=1,e}(),P=function(e){function t(t){var n=e.call(this,t,null)||this;return n.buildCells(null),n}return v(t,e),t.prototype.createCell=function(e){return new C(e,this,this.data)},t.prototype.setValue=function(e,t){this.data&&!this.isSettingValue&&this.data.onTotalValueChanged()},t.prototype.runCondition=function(t,n){var r,o=0;do{r=s.Helpers.getUnbindValue(this.value),e.prototype.runCondition.call(this,t,n),o++}while(!s.Helpers.isTwoValueEquals(r,this.value)&&o<3)},t.prototype.updateCellOnColumnChanged=function(e,t,n){e.updateCellQuestion()},t}(x),S=function(e){function t(t){var n=e.call(this,t)||this;return n.isRowChanging=!1,n.lockResetRenderedTable=!1,n.isDoingonAnyValueChanged=!1,n.createItemValues("choices"),n.createLocalizableString("placeholder",n,!1,!0),n.createLocalizableString("keyDuplicationError",n,!1,!0),n.detailPanelValue=n.createNewDetailPanel(),n.detailPanel.selectedElementInDesign=n,n.detailPanel.renderWidth="100%",n.detailPanel.isInteractiveDesignElement=!1,n.detailPanel.showTitle=!1,n.registerPropertyChangedHandlers(["columns","cellType"],(function(){n.updateColumnsAndRows()})),n.registerPropertyChangedHandlers(["placeholder","columnColCount","rowTitleWidth","choices"],(function(){n.clearRowsAndResetRenderedTable()})),n.registerPropertyChangedHandlers(["columnLayout","addRowLocation","hideColumnsIfEmpty","showHeader","minRowCount","isReadOnly","rowCount","hasFooter","detailPanelMode"],(function(){n.resetRenderedTable()})),n.registerPropertyChangedHandlers(["isMobile"],(function(){n.resetRenderedTable()})),n}return v(t,e),Object.defineProperty(t,"defaultCellType",{get:function(){return h.settings.matrix.defaultCellType},set:function(e){h.settings.matrix.defaultCellType=e},enumerable:!1,configurable:!0}),t.addDefaultColumns=function(e){for(var t=p.QuestionFactory.DefaultColums,n=0;n<t.length;n++)e.addColumn(t[n])},t.prototype.createColumnValues=function(){var e=this;return this.createNewArray("columns",(function(t){t.colOwner=e,e.onAddColumn&&e.onAddColumn(t),e.survey&&e.survey.matrixColumnAdded(e,t)}),(function(t){t.colOwner=null,e.onRemoveColumn&&e.onRemoveColumn(t)}))},t.prototype.getType=function(){return"matrixdropdownbase"},t.prototype.dispose=function(){e.prototype.dispose.call(this),this.clearGeneratedRows()},Object.defineProperty(t.prototype,"hasSingleInput",{get:function(){return!1},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isRowsDynamic",{get:function(){return!1},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isUpdateLocked",{get:function(){return this.isLoadingFromJson||this.isUpdating},enumerable:!1,configurable:!0}),t.prototype.beginUpdate=function(){this.isUpdating=!0},t.prototype.endUpdate=function(){this.isUpdating=!1,this.updateColumnsAndRows()},t.prototype.updateColumnsAndRows=function(){this.updateColumnsIndexes(this.columns),this.updateColumnsCellType(),this.generatedTotalRow=null,this.clearRowsAndResetRenderedTable()},t.prototype.itemValuePropertyChanged=function(t,n,r,o){e.prototype.itemValuePropertyChanged.call(this,t,n,r,o),"choices"===t.ownerPropertyName&&this.clearRowsAndResetRenderedTable()},Object.defineProperty(t.prototype,"columnLayout",{get:function(){return this.getPropertyValue("columnLayout")},set:function(e){this.setPropertyValue("columnLayout",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"columnsLocation",{get:function(){return this.columnLayout},set:function(e){this.columnLayout=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isColumnLayoutHorizontal",{get:function(){return!!this.isMobile||"vertical"!=this.columnLayout},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isUniqueCaseSensitive",{get:function(){return void 0!==this.isUniqueCaseSensitiveValue?this.isUniqueCaseSensitiveValue:h.settings.comparator.caseSensitive},set:function(e){this.isUniqueCaseSensitiveValue=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"detailPanelMode",{get:function(){return this.getPropertyValue("detailPanelMode")},set:function(e){this.setPropertyValue("detailPanelMode",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"detailPanel",{get:function(){return this.detailPanelValue},enumerable:!1,configurable:!0}),t.prototype.getPanel=function(){return this.detailPanel},Object.defineProperty(t.prototype,"detailElements",{get:function(){return this.detailPanel.elements},enumerable:!1,configurable:!0}),t.prototype.createNewDetailPanel=function(){return o.Serializer.createClass("panel")},Object.defineProperty(t.prototype,"hasRowText",{get:function(){return!0},enumerable:!1,configurable:!0}),t.prototype.getFooterText=function(){return null},Object.defineProperty(t.prototype,"canAddRow",{get:function(){return!1},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"canRemoveRows",{get:function(){return!1},enumerable:!1,configurable:!0}),t.prototype.canRemoveRow=function(e){return!0},t.prototype.onPointerDown=function(e,t){},t.prototype.onRowsChanged=function(){this.resetRenderedTable(),e.prototype.onRowsChanged.call(this)},t.prototype.onStartRowAddingRemoving=function(){this.lockResetRenderedTable=!0,this.setValueChangedDirectly()},t.prototype.onEndRowAdding=function(){if(this.lockResetRenderedTable=!1,this.renderedTable)if(this.renderedTable.isRequireReset())this.resetRenderedTable();else{var e=this.visibleRows.length-1;this.renderedTable.onAddedRow(this.visibleRows[e],e)}},t.prototype.onEndRowRemoving=function(e){this.lockResetRenderedTable=!1,this.renderedTable.isRequireReset()?this.resetRenderedTable():e&&this.renderedTable.onRemovedRow(e)},Object.defineProperty(t.prototype,"renderedTableValue",{get:function(){return this.getPropertyValue("renderedTable",null)},set:function(e){this.setPropertyValue("renderedTable",e)},enumerable:!1,configurable:!0}),t.prototype.clearRowsAndResetRenderedTable=function(){this.clearGeneratedRows(),this.resetRenderedTable(),this.fireCallback(this.columnsChangedCallback)},t.prototype.resetRenderedTable=function(){this.lockResetRenderedTable||this.isUpdateLocked||(this.renderedTableValue=null,this.fireCallback(this.onRenderedTableResetCallback))},t.prototype.clearGeneratedRows=function(){if(this.generatedVisibleRows){for(var t=0;t<this.generatedVisibleRows.length;t++)this.generatedVisibleRows[t].dispose();e.prototype.clearGeneratedRows.call(this)}},Object.defineProperty(t.prototype,"isRendredTableCreated",{get:function(){return!!this.renderedTableValue},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"renderedTable",{get:function(){return this.renderedTableValue||(this.renderedTableValue=this.createRenderedTable(),this.onRenderedTableCreatedCallback&&this.onRenderedTableCreatedCallback(this.renderedTableValue)),this.renderedTableValue},enumerable:!1,configurable:!0}),t.prototype.createRenderedTable=function(){return new y.QuestionMatrixDropdownRenderedTable(this)},t.prototype.onMatrixRowCreated=function(e){if(this.survey)for(var t={rowValue:e.value,row:e,column:null,columnName:null,cell:null,cellQuestion:null,value:null},n=0;n<this.visibleColumns.length;n++){t.column=this.visibleColumns[n],t.columnName=t.column.name;var r=e.cells[n];t.cell=r,t.cellQuestion=r.question,t.value=r.value,this.onCellCreatedCallback&&this.onCellCreatedCallback(t),this.survey.matrixCellCreated(this,t)}},Object.defineProperty(t.prototype,"cellType",{get:function(){return this.getPropertyValue("cellType",h.settings.matrix.defaultCellType)},set:function(e){e=e.toLowerCase(),this.setPropertyValue("cellType",e)},enumerable:!1,configurable:!0}),t.prototype.updateColumnsCellType=function(){for(var e=0;e<this.columns.length;e++)this.columns[e].defaultCellTypeChanged()},t.prototype.updateColumnsIndexes=function(e){for(var t=0;t<e.length;t++)e[t].setIndex(t)},Object.defineProperty(t.prototype,"columnColCount",{get:function(){return this.getPropertyValue("columnColCount")},set:function(e){e<0||e>4||this.setPropertyValue("columnColCount",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"horizontalScroll",{get:function(){return this.getPropertyValue("horizontalScroll")},set:function(e){this.setPropertyValue("horizontalScroll",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"allowAdaptiveActions",{get:function(){return this.getPropertyValue("allowAdaptiveActions")},set:function(e){this.setPropertyValue("allowAdaptiveActions",e),this.detailPanel&&(this.detailPanel.allowAdaptiveActions=e)},enumerable:!1,configurable:!0}),t.prototype.getRequiredText=function(){return this.survey?this.survey.requiredText:""},t.prototype.hasChoices=function(){return this.choices.length>0},t.prototype.onColumnPropertyChanged=function(e,t,n){if(this.updateHasFooter(),this.generatedVisibleRows){for(var r=0;r<this.generatedVisibleRows.length;r++)this.generatedVisibleRows[r].updateCellQuestionOnColumnChanged(e,t,n);this.generatedTotalRow&&this.generatedTotalRow.updateCellQuestionOnColumnChanged(e,t,n),this.onColumnsChanged(),"isRequired"==t&&this.resetRenderedTable()}},t.prototype.onColumnItemValuePropertyChanged=function(e,t,n,r,o,i){if(this.generatedVisibleRows)for(var s=0;s<this.generatedVisibleRows.length;s++)this.generatedVisibleRows[s].updateCellQuestionOnColumnItemValueChanged(e,t,n,r,o,i)},t.prototype.onShowInMultipleColumnsChanged=function(e){this.clearGeneratedRows(),this.resetRenderedTable()},t.prototype.onColumnCellTypeChanged=function(e){this.clearGeneratedRows(),this.resetRenderedTable()},t.prototype.getRowTitleWidth=function(){return""},Object.defineProperty(t.prototype,"hasFooter",{get:function(){return this.getPropertyValue("hasFooter",!1)},enumerable:!1,configurable:!0}),t.prototype.getAddRowLocation=function(){return"default"},t.prototype.getShowColumnsIfEmpty=function(){return!1},t.prototype.updateShowTableAndAddRow=function(){this.renderedTable&&this.renderedTable.updateShowTableAndAddRow()},t.prototype.updateHasFooter=function(){this.setPropertyValue("hasFooter",this.hasTotal)},Object.defineProperty(t.prototype,"hasTotal",{get:function(){for(var e=0;e<this.columns.length;e++)if(this.columns[e].hasTotal)return!0;return!1},enumerable:!1,configurable:!0}),t.prototype.getCellType=function(){return this.cellType},t.prototype.getCustomCellType=function(e,t,n){if(!this.survey)return n;var r={rowValue:t.value,row:t,column:e,columnName:e.name,cellType:n};return this.survey.matrixCellCreating(this,r),r.cellType},t.prototype.getConditionJson=function(t,n){if(void 0===t&&(t=null),void 0===n&&(n=null),!n)return e.prototype.getConditionJson.call(this);for(var r="",o=n.length-1;o>=0&&"."!=n[o];o--)r=n[o]+r;var i=this.getColumnByName(r);if(!i)return null;var s=i.createCellQuestion(null);return s?s.getConditionJson(t):null},t.prototype.clearIncorrectValues=function(){var e=this.visibleRows;if(e)for(var t=0;t<e.length;t++)e[t].clearIncorrectValues(this.getRowValue(t))},t.prototype.clearErrors=function(){e.prototype.clearErrors.call(this),this.runFuncForCellQuestions((function(e){e.clearErrors()}))},t.prototype.localeChanged=function(){e.prototype.localeChanged.call(this),this.runFuncForCellQuestions((function(e){e.localeChanged()}))},t.prototype.runFuncForCellQuestions=function(e){if(this.generatedVisibleRows)for(var t=0;t<this.generatedVisibleRows.length;t++)for(var n=this.generatedVisibleRows[t],r=0;r<n.cells.length;r++)e(n.cells[r].question)},t.prototype.runCondition=function(t,n){e.prototype.runCondition.call(this,t,n);var r,o=0;do{r=s.Helpers.getUnbindValue(this.totalValue),this.runCellsCondition(t,n),this.runTotalsCondition(t,n),o++}while(!s.Helpers.isTwoValueEquals(r,this.totalValue)&&o<3)},t.prototype.shouldRunColumnExpression=function(){return!1},t.prototype.runCellsCondition=function(e,t){if(this.generatedVisibleRows){for(var n=this.getRowConditionValues(e),r=this.generatedVisibleRows,o=0;o<r.length;o++)r[o].runCondition(n,t);this.checkColumnsVisibility(),this.checkColumnsRenderedRequired()}},t.prototype.checkColumnsVisibility=function(){for(var e=!1,t=0;t<this.visibleColumns.length;t++)this.visibleColumns[t].visibleIf&&(e=this.isColumnVisibilityChanged(this.visibleColumns[t])||e);e&&this.resetRenderedTable()},t.prototype.checkColumnsRenderedRequired=function(){for(var e=this.generatedVisibleRows,t=0;t<this.visibleColumns.length;t++){var n=this.visibleColumns[t];if(n.requiredIf){for(var r=e.length>0,o=0;o<e.length;o++)if(!e[o].cells[t].question.isRequired){r=!1;break}n.updateIsRenderedRequired(r)}}},t.prototype.isColumnVisibilityChanged=function(e){for(var t=e.hasVisibleCell,n=!1,r=this.generatedVisibleRows,o=0;o<r.length;o++){var i=r[o].cells[e.index];if(i&&i.question&&i.question.isVisible){n=!0;break}}return t!=n&&(e.hasVisibleCell=n),t!=n},t.prototype.runTotalsCondition=function(e,t){this.generatedTotalRow&&this.generatedTotalRow.runCondition(this.getRowConditionValues(e),t)},t.prototype.getRowConditionValues=function(e){var t=e;t||(t={});var n={};return this.isValueEmpty(this.totalValue)||(n=JSON.parse(JSON.stringify(this.totalValue))),t.row={},t.totalRow=n,t},t.prototype.IsMultiplyColumn=function(e){return e.isShowInMultipleColumns&&!this.isMobile},t.prototype.locStrsChanged=function(){e.prototype.locStrsChanged.call(this);for(var t=this.columns,n=0;n<t.length;n++)t[n].locStrsChanged();var r=this.generatedVisibleRows;if(r){for(n=0;n<r.length;n++)r[n].locStrsChanged();this.generatedTotalRow&&this.generatedTotalRow.locStrsChanged()}},t.prototype.getColumnByName=function(e){for(var t=0;t<this.columns.length;t++)if(this.columns[t].name==e)return this.columns[t];return null},t.prototype.getColumnName=function(e){return this.getColumnByName(e)},t.prototype.getColumnWidth=function(e){var t;return e.minWidth?e.minWidth:this.columnMinWidth?this.columnMinWidth:(null===(t=h.settings.matrix.columnWidthsByType[e.cellType])||void 0===t?void 0:t.minWidth)||""},Object.defineProperty(t.prototype,"choices",{get:function(){return this.getPropertyValue("choices")},set:function(e){this.setPropertyValue("choices",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"placeholder",{get:function(){return this.getLocalizableStringText("placeholder")},set:function(e){this.setLocalizableStringText("placeholder",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locPlaceholder",{get:function(){return this.getLocalizableString("placeholder")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"optionsCaption",{get:function(){return this.placeholder},set:function(e){this.placeholder=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"keyDuplicationError",{get:function(){return this.getLocalizableStringText("keyDuplicationError")},set:function(e){this.setLocalizableStringText("keyDuplicationError",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locKeyDuplicationError",{get:function(){return this.getLocalizableString("keyDuplicationError")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"storeOthersAsComment",{get:function(){return!!this.survey&&this.survey.storeOthersAsComment},enumerable:!1,configurable:!0}),t.prototype.addColumn=function(e,t){void 0===t&&(t=null);var n=new g.MatrixDropdownColumn(e,t);return this.columns.push(n),n},t.prototype.getVisibleRows=function(){var e=this;return this.isUpdateLocked?null:(this.generatedVisibleRows||(this.generatedVisibleRows=this.generateRows(),this.generatedVisibleRows.forEach((function(t){return e.onMatrixRowCreated(t)})),this.data&&this.runCellsCondition(this.data.getFilteredValues(),this.data.getFilteredProperties()),this.updateValueOnRowsGeneration(this.generatedVisibleRows),this.updateIsAnswered()),this.generatedVisibleRows)},t.prototype.updateValueOnRowsGeneration=function(e){for(var t=this.createNewValue(!0),n=this.createNewValue(),r=0;r<e.length;r++){var o=e[r];if(!o.editingObj){var i=this.getRowValue(r),s=o.value;this.isTwoValueEquals(i,s)||(n=this.getNewValueOnRowChanged(o,"",s,!1,n).value)}}this.isTwoValueEquals(t,n)||(this.isRowChanging=!0,this.setNewValue(n),this.isRowChanging=!1)},Object.defineProperty(t.prototype,"totalValue",{get:function(){return this.hasTotal&&this.visibleTotalRow?this.visibleTotalRow.value:{}},enumerable:!1,configurable:!0}),t.prototype.getVisibleTotalRow=function(){if(this.isUpdateLocked)return null;if(this.hasTotal){if(!this.generatedTotalRow&&(this.generatedTotalRow=this.generateTotalRow(),this.data)){var e={survey:this.survey};this.runTotalsCondition(this.data.getAllValues(),e)}}else this.generatedTotalRow=null;return this.generatedTotalRow},Object.defineProperty(t.prototype,"visibleTotalRow",{get:function(){return this.getVisibleTotalRow()},enumerable:!1,configurable:!0}),t.prototype.onSurveyLoad=function(){e.prototype.onSurveyLoad.call(this),this.updateColumnsIndexes(this.columns),this.clearGeneratedRows(),this.generatedTotalRow=null,this.updateHasFooter()},t.prototype.getRowValue=function(e){if(e<0)return null;var t=this.visibleRows;if(e>=t.length)return null;var n=this.createNewValue();return this.getRowValueCore(t[e],n)},t.prototype.checkIfValueInRowDuplicated=function(e,t){if(!this.generatedVisibleRows)return!1;for(var n=!1,r=0;r<this.generatedVisibleRows.length;r++){var o=this.generatedVisibleRows[r];if(e!==o&&s.Helpers.isTwoValueEquals(o.getValue(t.name),t.value,!0,this.isUniqueCaseSensitive)){n=!0;break}}return n?this.addDuplicationError(t):t.clearErrors(),n},t.prototype.setRowValue=function(e,t){if(e<0)return null;var n=this.visibleRows;if(e>=n.length)return null;n[e].value=t,this.onRowChanged(n[e],"",t,!1)},t.prototype.generateRows=function(){return null},t.prototype.generateTotalRow=function(){return new P(this)},t.prototype.createNewValue=function(e){void 0===e&&(e=!1);var t=this.value?this.createValueCopy():{};return e&&this.isMatrixValueEmpty(t)?null:t},t.prototype.getRowValueCore=function(e,t,n){void 0===n&&(n=!1);var r=t&&t[e.rowName]?t[e.rowName]:null;return!r&&n&&(r={},t&&(t[e.rowName]=r)),r},t.prototype.getRowObj=function(e){var t=this.getRowValueCore(e,this.value);return t&&t.getType?t:null},t.prototype.getRowDisplayValue=function(e,t,n){if(!n)return n;if(t.editingObj)return n;for(var r=Object.keys(n),o=0;o<r.length;o++){var i=r[o],s=t.getQuestionByName(i);if(s||(s=this.getSharedQuestionByName(i,t)),s){var a=s.getDisplayValue(e,n[i]);e&&s.title&&s.title!==i?(n[s.title]=a,delete n[i]):n[i]=a}}return n},t.prototype.getPlainData=function(t){var n=this;void 0===t&&(t={includeEmpty:!0});var r=e.prototype.getPlainData.call(this,t);return r&&(r.isNode=!0,r.data=this.visibleRows.map((function(e){var r={name:e.rowName,title:e.text,value:e.value,displayValue:n.getRowDisplayValue(!1,e,e.value),getString:function(e){return"object"==typeof e?JSON.stringify(e):e},isNode:!0,data:e.cells.map((function(e){return e.question.getPlainData(t)})).filter((function(e){return!!e}))};return(t.calculations||[]).forEach((function(t){r[t.propertyName]=e[t.propertyName]})),r}))),r},t.prototype.addConditionObjectsByContext=function(e,t){var n=!!t&&(!0===t||this.columns.indexOf(t)>-1),r=this.getConditionObjectsRowIndeces();n&&r.push(-1);for(var o=0;o<r.length;o++){var i=r[o],s=i>-1?this.getConditionObjectRowName(i):"row";if(s)for(var a=i>-1?this.getConditionObjectRowText(i):"row",l=i>-1||!0===t,u=l&&-1===i?".":"",c=(l?this.getValueName():"")+u+s+".",p=(l?this.processedTitle:"")+u+a+".",d=0;d<this.columns.length;d++){var h=this.columns[d];if(-1!==i||t!==h){var f={name:c+h.name,text:p+h.fullTitle,question:this};-1===i&&!0===t&&(f.context=this),e.push(f)}}}},t.prototype.collectNestedQuestionsCore=function(e,t){this.visibleRows.forEach((function(n){n.questions.forEach((function(n){return n.collectNestedQuestions(e,t)}))}))},t.prototype.getConditionObjectRowName=function(e){return""},t.prototype.getConditionObjectRowText=function(e){return this.getConditionObjectRowName(e)},t.prototype.getConditionObjectsRowIndeces=function(){return[]},t.prototype.getProgressInfo=function(){if(this.generatedVisibleRows)return l.SurveyElement.getProgressInfoByElements(this.getCellQuestions(),this.isRequired);var e=a.Base.createProgressInfo();return this.updateProgressInfoByValues(e),0===e.requiredQuestionCount&&this.isRequired&&(e.requiredQuestionCount=1,e.requiredAnsweredQuestionCount=this.isEmpty()?0:1),e},t.prototype.updateProgressInfoByValues=function(e){},t.prototype.updateProgressInfoByRow=function(e,t){for(var n=0;n<this.columns.length;n++){var r=this.columns[n];if(r.templateQuestion.hasInput){e.questionCount+=1,e.requiredQuestionCount+=r.isRequired;var o=!s.Helpers.isValueEmpty(t[r.name]);e.answeredQuestionCount+=o?1:0,e.requiredAnsweredQuestionCount+=o&&r.isRequired?1:0}}},t.prototype.getCellQuestions=function(){var e=[];return this.runFuncForCellQuestions((function(t){e.push(t)})),e},t.prototype.onBeforeValueChanged=function(e){},t.prototype.onSetQuestionValue=function(){if(!this.isRowChanging&&(this.onBeforeValueChanged(this.value),this.generatedVisibleRows&&0!=this.generatedVisibleRows.length)){this.isRowChanging=!0;for(var e=this.createNewValue(),t=0;t<this.generatedVisibleRows.length;t++){var n=this.generatedVisibleRows[t];this.generatedVisibleRows[t].value=this.getRowValueCore(n,e)}this.isRowChanging=!1}},t.prototype.setQuestionValue=function(t){e.prototype.setQuestionValue.call(this,t,!1),this.onSetQuestionValue(),this.updateIsAnswered()},t.prototype.supportGoNextPageAutomatic=function(){var e=this.generatedVisibleRows;if(e||(e=this.visibleRows),!e)return!0;for(var t=0;t<e.length;t++){var n=this.generatedVisibleRows[t].cells;if(n)for(var r=0;r<n.length;r++){var o=n[r].question;if(o&&(!o.supportGoNextPageAutomatic()||!o.value))return!1}}return!0},t.prototype.getContainsErrors=function(){return e.prototype.getContainsErrors.call(this)||this.checkForAnswersOrErrors((function(e){return e.containsErrors}),!1)},t.prototype.getIsAnswered=function(){return e.prototype.getIsAnswered.call(this)&&this.checkForAnswersOrErrors((function(e){return e.isAnswered}),!0)},t.prototype.checkForAnswersOrErrors=function(e,t){void 0===t&&(t=!1);var n=this.generatedVisibleRows;if(!n)return!1;for(var r=0;r<n.length;r++){var o=n[r].cells;if(o)for(var i=0;i<o.length;i++)if(o[i]){var s=o[i].question;if(s&&s.isVisible)if(e(s)){if(!t)return!0}else if(t)return!1}}return!!t},t.prototype.hasErrors=function(t,n){void 0===t&&(t=!0),void 0===n&&(n=null);var r=this.hasErrorInRows(t,n),o=this.isValueDuplicated();return e.prototype.hasErrors.call(this,t,n)||r||o},t.prototype.getIsRunningValidators=function(){if(e.prototype.getIsRunningValidators.call(this))return!0;if(!this.generatedVisibleRows)return!1;for(var t=0;t<this.generatedVisibleRows.length;t++){var n=this.generatedVisibleRows[t].cells;if(n)for(var r=0;r<n.length;r++)if(n[r]){var o=n[r].question;if(o&&o.isRunningValidators)return!0}}return!1},t.prototype.getAllErrors=function(){var t=e.prototype.getAllErrors.call(this),n=this.generatedVisibleRows;if(null===n)return t;for(var r=0;r<n.length;r++)for(var o=n[r],i=0;i<o.cells.length;i++){var s=o.cells[i].question.getAllErrors();s&&s.length>0&&(t=t.concat(s))}return t},t.prototype.hasErrorInRows=function(e,t){var n=this,r=this.generatedVisibleRows;this.generatedVisibleRows||(r=this.visibleRows);var o=!1;if(t||(t={}),!r)return t;t.validationValues=this.getDataFilteredValues(),t.isSingleDetailPanel="underRowSingle"===this.detailPanelMode;for(var i=0;i<r.length;i++)o=r[i].hasErrors(e,t,(function(){n.raiseOnCompletedAsyncValidators()}))||o;return o},t.prototype.isValueDuplicated=function(){if(!this.generatedVisibleRows)return!1;for(var e=this.getUniqueColumns(),t=!1,n=0;n<e.length;n++)t=this.isValueInColumnDuplicated(e[n])||t;return t},t.prototype.isValueInColumnDuplicated=function(e){for(var t=[],n=!1,r=0;r<this.generatedVisibleRows.length;r++)n=this.isValueDuplicatedInRow(this.generatedVisibleRows[r],e,t)||n;return n},t.prototype.getUniqueColumns=function(){for(var e=new Array,t=0;t<this.columns.length;t++)this.columns[t].isUnique&&e.push(this.columns[t]);return e},t.prototype.isValueDuplicatedInRow=function(e,t,n){var r=e.getQuestionByColumn(t);if(!r||r.isEmpty())return!1;for(var o=r.value,i=0;i<n.length;i++)if(s.Helpers.isTwoValueEquals(o,n[i],!0,this.isUniqueCaseSensitive))return this.addDuplicationError(r),!0;return n.push(o),!1},t.prototype.addDuplicationError=function(e){e.addError(new f.KeyDuplicationError(this.keyDuplicationError,this))},t.prototype.getFirstQuestionToFocus=function(e){return this.getFirstCellQuestion(e)},t.prototype.getFirstInputElementId=function(){var t=this.getFirstCellQuestion(!1);return t?t.inputId:e.prototype.getFirstInputElementId.call(this)},t.prototype.getFirstErrorInputElementId=function(){var t=this.getFirstCellQuestion(!0);return t?t.inputId:e.prototype.getFirstErrorInputElementId.call(this)},t.prototype.getFirstCellQuestion=function(e){if(!this.generatedVisibleRows)return null;for(var t=0;t<this.generatedVisibleRows.length;t++)for(var n=this.generatedVisibleRows[t].cells,r=0;r<n.length;r++){if(!e)return n[r].question;if(n[r].question.currentErrorCount>0)return n[r].question}return null},t.prototype.onReadOnlyChanged=function(){if(e.prototype.onReadOnlyChanged.call(this),this.generateRows)for(var t=0;t<this.visibleRows.length;t++)this.visibleRows[t].onQuestionReadOnlyChanged(this.isReadOnly)},t.prototype.createQuestion=function(e,t){return this.createQuestionCore(e,t)},t.prototype.createQuestionCore=function(e,t){var n=t.createCellQuestion(e);return n.setSurveyImpl(e),n.setParentQuestion(this),n.inMatrixMode=!0,n},t.prototype.deleteRowValue=function(e,t){return e?(delete e[t.rowName],this.isObject(e)&&0==Object.keys(e).length?null:e):e},t.prototype.onAnyValueChanged=function(e){if(!this.isUpdateLocked&&!this.isDoingonAnyValueChanged&&this.generatedVisibleRows){this.isDoingonAnyValueChanged=!0;for(var t=this.visibleRows,n=0;n<t.length;n++)t[n].onAnyValueChanged(e);var r=this.visibleTotalRow;r&&r.onAnyValueChanged(e),this.isDoingonAnyValueChanged=!1}},t.prototype.isObject=function(e){return null!==e&&"object"==typeof e},t.prototype.getOnCellValueChangedOptions=function(e,t,n){return{row:e,columnName:t,rowValue:n,value:n?n[t]:null,getCellQuestion:function(t){return e.getQuestionByName(t)},cellQuestion:e.getQuestionByName(t),column:this.getColumnByName(t)}},t.prototype.onCellValueChanged=function(e,t,n){if(this.survey){var r=this.getOnCellValueChangedOptions(e,t,n);this.onCellValueChangedCallback&&this.onCellValueChangedCallback(r),this.survey.matrixCellValueChanged(this,r)}},t.prototype.validateCell=function(e,t,n){if(this.survey){var r=this.getOnCellValueChangedOptions(e,t,n);return this.survey.matrixCellValidate(this,r)}},Object.defineProperty(t.prototype,"isValidateOnValueChanging",{get:function(){return!!this.survey&&this.survey.isValidateOnValueChanging},enumerable:!1,configurable:!0}),t.prototype.onRowChanging=function(e,t,n){if(!this.survey&&!this.cellValueChangingCallback)return n?n[t]:null;var r=this.getOnCellValueChangedOptions(e,t,n),o=this.getRowValueCore(e,this.createNewValue(),!0);return r.oldValue=o?o[t]:null,this.cellValueChangingCallback&&(r.value=this.cellValueChangingCallback(e,t,r.value,r.oldValue)),this.survey&&this.survey.matrixCellValueChanging(this,r),r.value},t.prototype.onRowChanged=function(e,t,n,r){var o=t?this.getRowObj(e):null;if(o){var i=null;n&&!r&&(i=n[t]),this.isRowChanging=!0,o[t]=i,this.isRowChanging=!1,this.onCellValueChanged(e,t,o)}else{var s=this.createNewValue(!0),a=this.getNewValueOnRowChanged(e,t,n,r,this.createNewValue());if(this.isTwoValueEquals(s,a.value))return;this.isRowChanging=!0,this.setNewValue(a.value),this.isRowChanging=!1,t&&this.onCellValueChanged(e,t,a.rowValue)}},t.prototype.getNewValueOnRowChanged=function(e,t,n,r,o){var i=this.getRowValueCore(e,o,!0);r&&delete i[t];for(var s=0;s<e.cells.length;s++)delete i[a=e.cells[s].question.getValueName()];if(n)for(var a in n=JSON.parse(JSON.stringify(n)))this.isValueEmpty(n[a])||(i[a]=n[a]);return this.isObject(i)&&0===Object.keys(i).length&&(o=this.deleteRowValue(o,e)),{value:o,rowValue:i}},t.prototype.getRowIndex=function(e){return this.generatedVisibleRows?this.visibleRows.indexOf(e):-1},t.prototype.getElementsInDesign=function(t){var n;return void 0===t&&(t=!1),n="none"==this.detailPanelMode?e.prototype.getElementsInDesign.call(this,t):t?[this.detailPanel]:this.detailElements,this.columns.concat(n)},t.prototype.hasDetailPanel=function(e){return"none"!=this.detailPanelMode&&(!!this.isDesignMode||(this.onHasDetailPanelCallback?this.onHasDetailPanelCallback(e):this.detailElements.length>0))},t.prototype.getIsDetailPanelShowing=function(e){if("none"==this.detailPanelMode)return!1;if(this.isDesignMode){var t=0==this.visibleRows.indexOf(e);return t&&(e.detailPanel||e.showDetailPanel()),t}return this.getPropertyValue("isRowShowing"+e.id,!1)},t.prototype.setIsDetailPanelShowing=function(e,t){if(t!=this.getIsDetailPanelShowing(e)&&(this.setPropertyValue("isRowShowing"+e.id,t),this.updateDetailPanelButtonCss(e),this.renderedTable&&this.renderedTable.onDetailPanelChangeVisibility(e,t),t&&"underRowSingle"===this.detailPanelMode))for(var n=this.visibleRows,r=0;r<n.length;r++)n[r].id!==e.id&&n[r].isDetailPanelShowing&&n[r].hideDetailPanel()},t.prototype.getDetailPanelButtonCss=function(e){var t=(new m.CssClassBuilder).append(this.getPropertyValue("detailButtonCss"+e.id));return t.append(this.cssClasses.detailButton,""===t.toString()).toString()},t.prototype.getDetailPanelIconCss=function(e){var t=(new m.CssClassBuilder).append(this.getPropertyValue("detailIconCss"+e.id));return t.append(this.cssClasses.detailIcon,""===t.toString()).toString()},t.prototype.getDetailPanelIconId=function(e){return this.getIsDetailPanelShowing(e)?this.cssClasses.detailIconExpandedId:this.cssClasses.detailIconId},t.prototype.updateDetailPanelButtonCss=function(e){var t=this.cssClasses,n=this.getIsDetailPanelShowing(e),r=(new m.CssClassBuilder).append(t.detailIcon).append(t.detailIconExpanded,n);this.setPropertyValue("detailIconCss"+e.id,r.toString());var o=(new m.CssClassBuilder).append(t.detailButton).append(t.detailButtonExpanded,n);this.setPropertyValue("detailButtonCss"+e.id,o.toString())},t.prototype.createRowDetailPanel=function(e){if(this.isDesignMode)return this.detailPanel;var t=this.createNewDetailPanel();t.readOnly=this.isReadOnly;var n=this.detailPanel.toJSON();return(new o.JsonObject).toObject(n,t),t.renderWidth="100%",t.updateCustomWidgets(),this.onCreateDetailPanelCallback&&this.onCreateDetailPanelCallback(e,t),t},t.prototype.getSharedQuestionByName=function(e,t){if(!this.survey||!this.valueName)return null;var n=this.getRowIndex(t);return n<0?null:this.survey.getQuestionByValueNameFromArray(this.valueName,e,n)},t.prototype.onTotalValueChanged=function(){this.data&&this.visibleTotalRow&&!this.isUpdateLocked&&!this.isSett&&this.data.setValue(this.getValueName()+h.settings.matrix.totalsSuffix,this.totalValue,!1)},t.prototype.getParentTextProcessor=function(){if(!this.parentQuestion||!this.parent)return null;var e=this.parent.data;return e&&e.getTextProcessor?e.getTextProcessor():null},t.prototype.getQuestionFromArray=function(e,t){return t>=this.visibleRows.length?null:this.visibleRows[t].getQuestionByName(e)},t.prototype.isMatrixValueEmpty=function(e){if(e){if(Array.isArray(e)){for(var t=0;t<e.length;t++)if(this.isObject(e[t])&&Object.keys(e[t]).length>0)return!1;return!0}return 0==Object.keys(e).length}},Object.defineProperty(t.prototype,"SurveyModel",{get:function(){return this.survey},enumerable:!1,configurable:!0}),t.prototype.getCellTemplateData=function(e){return this.SurveyModel.getMatrixCellTemplateData(e)},t.prototype.getCellWrapperComponentName=function(e){return this.SurveyModel.getElementWrapperComponentName(e,e.row instanceof P?"row-footer":"cell")},t.prototype.getCellWrapperComponentData=function(e){return this.SurveyModel.getElementWrapperComponentData(e,e.row instanceof P?"row-footer":"cell")},t.prototype.getColumnHeaderWrapperComponentName=function(e){return this.SurveyModel.getElementWrapperComponentName(e,"column-header")},t.prototype.getColumnHeaderWrapperComponentData=function(e){return this.SurveyModel.getElementWrapperComponentData(e,"column-header")},t.prototype.getRowHeaderWrapperComponentName=function(e){return this.SurveyModel.getElementWrapperComponentName(e,"row-header")},t.prototype.getRowHeaderWrapperComponentData=function(e){return this.SurveyModel.getElementWrapperComponentData(e,"row-header")},Object.defineProperty(t.prototype,"showHorizontalScroll",{get:function(){return!this.isDefaultV2Theme&&this.horizontalScroll},enumerable:!1,configurable:!0}),t.prototype.getRootCss=function(){return(new m.CssClassBuilder).append(e.prototype.getRootCss.call(this)).append(this.cssClasses.rootScroll,this.horizontalScroll).toString()},t.prototype.getIsTooltipErrorInsideSupported=function(){return!1},t}(i.QuestionMatrixBaseModel);o.Serializer.addClass("matrixdropdownbase",[{name:"columns:matrixdropdowncolumns",className:"matrixdropdowncolumn"},{name:"columnLayout",alternativeName:"columnsLocation",default:"horizontal",choices:["horizontal","vertical"]},{name:"detailElements",visible:!1,isLightSerializable:!1},{name:"detailPanelMode",choices:["none","underRow","underRowSingle"],default:"none"},"horizontalScroll:boolean",{name:"choices:itemvalue[]",uniqueProperty:"value"},{name:"placeholder",alternativeName:"optionsCaption",serializationProperty:"locPlaceholder"},{name:"keyDuplicationError",serializationProperty:"locKeyDuplicationError"},{name:"cellType",default:"dropdown",choices:function(){return g.MatrixDropdownColumn.getColumnTypes()}},{name:"columnColCount",default:0,choices:[0,1,2,3,4]},"columnMinWidth",{name:"allowAdaptiveActions:boolean",default:!1,visible:!1}],(function(){return new S("")}),"matrixbase")},"./src/question_matrixdropdowncolumn.ts":function(e,t,n){"use strict";n.r(t),n.d(t,"matrixDropdownColumnTypes",(function(){return c})),n.d(t,"MatrixDropdownColumn",(function(){return p}));var r,o=n("./src/jsonobject.ts"),i=n("./src/base.ts"),s=n("./src/question_expression.ts"),a=n("./src/settings.ts"),l=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});function u(e,t,n,r){e.storeOthersAsComment=!!n&&n.storeOthersAsComment,e.choices&&0!=e.choices.length||!e.choicesByUrl.isEmpty||(e.choices=n.choices),e.choicesByUrl.isEmpty||e.choicesByUrl.run(r.getTextProcessor())}var c={dropdown:{onCellQuestionUpdate:function(e,t,n,r){u(e,0,n,r),e.locPlaceholder&&e.locPlaceholder.isEmpty&&!n.locPlaceholder.isEmpty&&(e.optionsCaption=n.optionsCaption)}},checkbox:{onCellQuestionUpdate:function(e,t,n,r){u(e,0,n,r),e.colCount=t.colCount>-1?t.colCount:n.columnColCount}},radiogroup:{onCellQuestionUpdate:function(e,t,n,r){u(e,0,n,r),e.colCount=t.colCount>-1?t.colCount:n.columnColCount}},tagbox:{},text:{},comment:{},boolean:{onCellQuestionUpdate:function(e,t,n,r){e.renderAs=t.renderAs}},expression:{},rating:{}},p=function(e){function t(t,n){void 0===n&&(n=null);var r=e.call(this)||this;return r.colOwnerValue=null,r.indexValue=-1,r._isVisible=!0,r._hasVisibleCell=!0,r.previousChoicesId=void 0,r.createLocalizableString("totalFormat",r),r.createLocalizableString("cellHint",r),r.registerPropertyChangedHandlers(["showInMultipleColumns"],(function(){r.doShowInMultipleColumnsChanged()})),r.updateTemplateQuestion(),r.name=t,n?r.title=n:r.templateQuestion.locTitle.strChanged(),r}return l(t,e),t.getColumnTypes=function(){var e=[];for(var t in c)e.push(t);return e},t.prototype.getOriginalObj=function(){return this.templateQuestion},t.prototype.getClassNameProperty=function(){return"cellType"},t.prototype.getSurvey=function(e){return void 0===e&&(e=!1),this.colOwner?this.colOwner.survey:null},t.prototype.endLoadingFromJson=function(){var t=this;e.prototype.endLoadingFromJson.call(this),this.templateQuestion.autoOtherMode=this.isShowInMultipleColumns,this.templateQuestion.endLoadingFromJson(),this.templateQuestion.onGetSurvey=function(){return t.getSurvey()}},t.prototype.getDynamicPropertyName=function(){return"cellType"},t.prototype.getDynamicType=function(){return"default"===this.cellType?"question":this.calcCellQuestionType(null)},Object.defineProperty(t.prototype,"colOwner",{get:function(){return this.colOwnerValue},set:function(e){this.colOwnerValue=e,e&&(this.updateTemplateQuestion(),this.setParentQuestionToTemplate(this.templateQuestion))},enumerable:!1,configurable:!0}),t.prototype.locStrsChanged=function(){e.prototype.locStrsChanged.call(this),this.locTitle.strChanged()},t.prototype.addUsedLocales=function(t){e.prototype.addUsedLocales.call(this,t),this.templateQuestion.addUsedLocales(t)},Object.defineProperty(t.prototype,"index",{get:function(){return this.indexValue},enumerable:!1,configurable:!0}),t.prototype.setIndex=function(e){this.indexValue=e},t.prototype.getType=function(){return"matrixdropdowncolumn"},Object.defineProperty(t.prototype,"cellType",{get:function(){return this.getPropertyValue("cellType")},set:function(e){e=e.toLocaleLowerCase(),this.updateTemplateQuestion(e),this.setPropertyValue("cellType",e),this.colOwner&&this.colOwner.onColumnCellTypeChanged(this)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"templateQuestion",{get:function(){return this.templateQuestionValue},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"value",{get:function(){return this.templateQuestion.name},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isVisible",{get:function(){return this._isVisible},enumerable:!1,configurable:!0}),t.prototype.setIsVisible=function(e){this._isVisible=e},Object.defineProperty(t.prototype,"hasVisibleCell",{get:function(){return this._hasVisibleCell},set:function(e){this._hasVisibleCell=e},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,"isUnique",{get:function(){return this.getPropertyValue("isUnique")},set:function(e){this.setPropertyValue("isUnique",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"showInMultipleColumns",{get:function(){return this.getPropertyValue("showInMultipleColumns")},set:function(e){this.setPropertyValue("showInMultipleColumns",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isSupportMultipleColumns",{get:function(){return["checkbox","radiogroup"].indexOf(this.cellType)>-1},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isShowInMultipleColumns",{get:function(){return this.showInMultipleColumns&&this.isSupportMultipleColumns},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"validators",{get:function(){return this.templateQuestion.validators},set:function(e){this.templateQuestion.validators=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"totalType",{get:function(){return this.getPropertyValue("totalType")},set:function(e){this.setPropertyValue("totalType",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"totalExpression",{get:function(){return this.getPropertyValue("totalExpression")},set:function(e){this.setPropertyValue("totalExpression",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hasTotal",{get:function(){return"none"!=this.totalType||!!this.totalExpression},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"totalFormat",{get:function(){return this.getLocalizableStringText("totalFormat","")},set:function(e){this.setLocalizableStringText("totalFormat",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locTotalFormat",{get:function(){return this.getLocalizableString("totalFormat")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"cellHint",{get:function(){return this.getLocalizableStringText("cellHint","")},set:function(e){this.setLocalizableStringText("cellHint",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locCellHint",{get:function(){return this.getLocalizableString("cellHint")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"renderAs",{get:function(){return this.getPropertyValue("renderAs")},set:function(e){this.setPropertyValue("renderAs",e),this.templateQuestion&&(this.templateQuestion.renderAs=e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"totalMaximumFractionDigits",{get:function(){return this.getPropertyValue("totalMaximumFractionDigits")},set:function(e){e<-1||e>20||this.setPropertyValue("totalMaximumFractionDigits",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"totalMinimumFractionDigits",{get:function(){return this.getPropertyValue("totalMinimumFractionDigits")},set:function(e){e<-1||e>20||this.setPropertyValue("totalMinimumFractionDigits",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"totalDisplayStyle",{get:function(){return this.getPropertyValue("totalDisplayStyle")},set:function(e){this.setPropertyValue("totalDisplayStyle",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"totalCurrency",{get:function(){return this.getPropertyValue("totalCurrency")},set:function(e){Object(s.getCurrecyCodes)().indexOf(e)<0||this.setPropertyValue("totalCurrency",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"minWidth",{get:function(){return this.getPropertyValue("minWidth","")},set:function(e){this.setPropertyValue("minWidth",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"width",{get:function(){return this.templateQuestion.width},set:function(e){this.templateQuestion.width=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"colCount",{get:function(){return this.getPropertyValue("colCount")},set:function(e){e<-1||e>4||this.setPropertyValue("colCount",e)},enumerable:!1,configurable:!0}),t.prototype.getLocale=function(){return this.colOwner?this.colOwner.getLocale():""},t.prototype.getMarkdownHtml=function(e,t){return this.colOwner?this.colOwner.getMarkdownHtml(e,t):void 0},t.prototype.getRenderer=function(e){return this.colOwner?this.colOwner.getRenderer(e):null},t.prototype.getRendererContext=function(e){return this.colOwner?this.colOwner.getRendererContext(e):e},t.prototype.getProcessedText=function(e){return this.colOwner?this.colOwner.getProcessedText(e):e},t.prototype.createCellQuestion=function(e){var t=this.calcCellQuestionType(e),n=this.createNewQuestion(t);return this.callOnCellQuestionUpdate(n,e),n},t.prototype.startLoadingFromJson=function(t){e.prototype.startLoadingFromJson.call(this,t),t&&!t.cellType&&t.choices&&(t.cellType=this.colOwner.getCellType())},t.prototype.updateCellQuestion=function(e,t,n){void 0===n&&(n=null),this.setQuestionProperties(e,n)},t.prototype.callOnCellQuestionUpdate=function(e,t){var n=e.getType(),r=c[n];r&&r.onCellQuestionUpdate&&r.onCellQuestionUpdate(e,this,this.colOwner,t)},t.prototype.defaultCellTypeChanged=function(){this.updateTemplateQuestion()},t.prototype.calcCellQuestionType=function(e){var t=this.getDefaultCellQuestionType();return e&&this.colOwner&&(t=this.colOwner.getCustomCellType(this,e,t)),t},t.prototype.getDefaultCellQuestionType=function(e){return e||(e=this.cellType),"default"!==e?e:this.colOwner?this.colOwner.getCellType():a.settings.matrix.defaultCellType},t.prototype.updateTemplateQuestion=function(e){var t=this,n=this.getDefaultCellQuestionType(e),r=this.templateQuestion?this.templateQuestion.getType():"";n!==r&&(this.templateQuestion&&this.removeProperties(r),this.templateQuestionValue=this.createNewQuestion(n),this.templateQuestion.locOwner=this,this.addProperties(n),this.templateQuestion.onPropertyChanged.add((function(e,n){t.propertyValueChanged(n.name,n.oldValue,n.newValue)})),this.templateQuestion.onItemValuePropertyChanged.add((function(e,n){t.doItemValuePropertyChanged(n.propertyName,n.obj,n.name,n.newValue,n.oldValue)})),this.templateQuestion.isContentElement=!0,this.isLoadingFromJson||(this.templateQuestion.onGetSurvey=function(){return t.getSurvey()}),this.templateQuestion.locTitle.strChanged())},t.prototype.createNewQuestion=function(e){var t=o.Serializer.createClass(e);return t||(t=o.Serializer.createClass("text")),t.loadingOwner=this,t.isEditableTemplateElement=!0,t.autoOtherMode=this.isShowInMultipleColumns,this.setQuestionProperties(t),this.setParentQuestionToTemplate(t),t},t.prototype.setParentQuestionToTemplate=function(e){this.colOwner&&this.colOwner.isQuestion&&e.setParentQuestion(this.colOwner)},t.prototype.setQuestionProperties=function(e,t){var n=this;if(void 0===t&&(t=null),this.templateQuestion){var r=(new o.JsonObject).toJsonObject(this.templateQuestion,!0);t&&t(r),r.type=e.getType(),"default"===this.cellType&&this.colOwner&&this.colOwner.hasChoices()&&delete r.choices,delete r.itemComponent,this.jsonObj&&Object.keys(this.jsonObj).forEach((function(e){r[e]=n.jsonObj[e]})),(new o.JsonObject).toObject(r,e),e.isContentElement=this.templateQuestion.isContentElement,this.previousChoicesId=void 0,e.loadedChoicesFromServerCallback=function(){if(n.isShowInMultipleColumns&&(!n.previousChoicesId||n.previousChoicesId===e.id)){n.previousChoicesId=e.id;var t=e.visibleChoices;n.templateQuestion.choices=t,n.propertyValueChanged("choices",t,t)}}}},t.prototype.propertyValueChanged=function(t,n,r){e.prototype.propertyValueChanged.call(this,t,n,r),"isRequired"===t&&this.updateIsRenderedRequired(r),this.colOwner&&!this.isLoadingFromJson&&(this.isShowInMultipleColumns&&["visibleChoices","choices"].indexOf(t)>-1&&this.colOwner.onShowInMultipleColumnsChanged(this),o.Serializer.hasOriginalProperty(this,t)&&this.colOwner.onColumnPropertyChanged(this,t,r))},t.prototype.doItemValuePropertyChanged=function(e,t,n,r,i){o.Serializer.hasOriginalProperty(t,n)&&(null==this.colOwner||this.isLoadingFromJson||this.colOwner.onColumnItemValuePropertyChanged(this,e,t,n,r,i))},t.prototype.doShowInMultipleColumnsChanged=function(){null==this.colOwner||this.isLoadingFromJson||this.colOwner.onShowInMultipleColumnsChanged(this),this.templateQuestion&&(this.templateQuestion.autoOtherMode=this.isShowInMultipleColumns)},t.prototype.getProperties=function(e){return o.Serializer.getDynamicPropertiesByObj(this,e)},t.prototype.removeProperties=function(e){for(var t=this.getProperties(e),n=0;n<t.length;n++){var r=t[n];delete this[r.name],r.serializationProperty&&delete this[r.serializationProperty]}},t.prototype.addProperties=function(e){for(var t=this.templateQuestion,n=this.getProperties(e),r=0;r<n.length;r++){var o=n[r];this.addProperty(t,o.name,!1),o.serializationProperty&&this.addProperty(t,o.serializationProperty,!0),o.alternativeName&&this.addProperty(t,o.alternativeName,!1)}},t.prototype.addProperty=function(e,t,n){var r={configurable:!0,get:function(){return e[t]}};n||(r.set=function(n){e[t]=n}),Object.defineProperty(this,t,r)},t}(i.Base);o.Serializer.addClass("matrixdropdowncolumn",[{name:"!name",isUnique:!0},{name:"title",serializationProperty:"locTitle",dependsOn:"name",onPropertyEditorUpdate:function(e,t){e&&t&&(t.placeholder=e.name)}},{name:"cellHint",serializationProperty:"locCellHint",visible:!1},{name:"cellType",default:"default",choices:function(){var e=p.getColumnTypes();return e.splice(0,0,"default"),e}},{name:"colCount",default:-1,choices:[-1,0,1,2,3,4]},"isRequired:boolean","isUnique:boolean",{name:"requiredErrorText:text",serializationProperty:"locRequiredErrorText"},"readOnly:boolean",{name:"minWidth",onPropertyEditorUpdate:function(e,t){e&&t&&(t.value=e.minWidth)}},"width","visibleIf:condition","enableIf:condition","requiredIf:condition",{name:"showInMultipleColumns:boolean",dependsOn:"cellType",visibleIf:function(e){return!!e&&e.isSupportMultipleColumns}},{name:"validators:validators",baseClassName:"surveyvalidator",classNamePart:"validator"},{name:"totalType",default:"none",choices:["none","sum","count","min","max","avg"]},"totalExpression:expression",{name:"totalFormat",serializationProperty:"locTotalFormat"},{name:"totalDisplayStyle",default:"none",choices:["none","decimal","currency","percent"]},{name:"totalCurrency",choices:function(){return Object(s.getCurrecyCodes)()},default:"USD"},{name:"totalMaximumFractionDigits:number",default:-1},{name:"totalMinimumFractionDigits:number",default:-1},{name:"renderAs",default:"default",visible:!1}],(function(){return new p("")}))},"./src/question_matrixdropdownrendered.ts":function(e,t,n){"use strict";n.r(t),n.d(t,"QuestionMatrixDropdownRenderedCell",(function(){return f})),n.d(t,"QuestionMatrixDropdownRenderedRow",(function(){return m})),n.d(t,"QuestionMatrixDropdownRenderedErrorRow",(function(){return g})),n.d(t,"QuestionMatrixDropdownRenderedTable",(function(){return y}));var r,o=n("./src/jsonobject.ts"),i=n("./src/base.ts"),s=n("./src/itemvalue.ts"),a=n("./src/actions/action.ts"),l=n("./src/actions/adaptive-container.ts"),u=n("./src/utils/cssClassBuilder.ts"),c=n("./src/actions/container.ts"),p=n("./src/settings.ts"),d=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),h=function(e,t,n,r){var o,i=arguments.length,s=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,r);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(i<3?o(s):i>3?o(t,n,s):o(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},f=function(){function e(){this.minWidth="",this.width="",this.colSpans=1,this.isActionsCell=!1,this.isErrorsCell=!1,this.isDragHandlerCell=!1,this.classNameValue="",this.idValue=e.counter++}return Object.defineProperty(e.prototype,"hasQuestion",{get:function(){return!!this.question&&!this.isErrorsCell},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"hasTitle",{get:function(){return!!this.locTitle},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"hasPanel",{get:function(){return!!this.panel},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"id",{get:function(){return this.idValue},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"item",{get:function(){return this.itemValue},set:function(e){this.itemValue=e,e&&(e.hideCaption=!0)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"isChoice",{get:function(){return!!this.item},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"isItemChoice",{get:function(){return this.isChoice&&!this.isOtherChoice},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"choiceValue",{get:function(){return this.isChoice?this.item.value:null},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"isCheckbox",{get:function(){return this.isItemChoice&&this.question.isDescendantOf("checkbox")},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"isRadio",{get:function(){return this.isItemChoice&&this.question.isDescendantOf("radiogroup")},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"isFirstChoice",{get:function(){return 0===this.choiceIndex},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"className",{get:function(){var e=(new u.CssClassBuilder).append(this.classNameValue);return this.hasQuestion&&e.append(this.question.cssClasses.hasError,this.question.errors.length>0).append(this.question.cssClasses.answered,this.question.isAnswered),e.toString()},set:function(e){this.classNameValue=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"headers",{get:function(){if(this.cell&&this.cell.column){if(" "===this.cell.column.cellHint)return"";if(this.cell.column.cellHint)return this.cell.column.locCellHint.renderedHtml;if(this.matrix.IsMultiplyColumn(this.cell.column))return this.item?this.item.locText.renderedHtml:""}return this.hasQuestion&&this.question.isVisible?this.question.locTitle.renderedHtml:this.hasTitle&&this.locTitle.renderedHtml||""},enumerable:!1,configurable:!0}),e.prototype.getTitle=function(){return this.matrix&&this.matrix.showHeader?this.headers:""},e.prototype.calculateFinalClassName=function(e){var t=this.cell.question.cssClasses,n=(new u.CssClassBuilder).append(t.itemValue,!!t).append(t.asCell,!!t);return n.append(e.cell,n.isEmpty()&&!!e).append(e.choiceCell,this.isChoice).toString()},e.counter=1,e}(),m=function(e){function t(n,r){void 0===r&&(r=!1);var o=e.call(this)||this;return o.cssClasses=n,o.isDetailRow=r,o.isErrorsRow=!1,o.cells=[],o.idValue=t.counter++,o}return d(t,e),Object.defineProperty(t.prototype,"id",{get:function(){return this.idValue},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"attributes",{get:function(){return this.row?{"data-sv-drop-target-matrix-row":this.row.id}:{}},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"className",{get:function(){return(new u.CssClassBuilder).append(this.cssClasses.row).append(this.cssClasses.detailRow,this.isDetailRow).append(this.cssClasses.ghostRow,this.isGhostRow).append(this.cssClasses.rowAdditional,this.isAdditionalClasses).toString()},enumerable:!1,configurable:!0}),t.counter=1,h([Object(o.property)({defaultValue:!1})],t.prototype,"isGhostRow",void 0),h([Object(o.property)({defaultValue:!1})],t.prototype,"isAdditionalClasses",void 0),h([Object(o.property)({defaultValue:!0})],t.prototype,"visible",void 0),t}(i.Base),g=function(e){function t(t){var n=e.call(this,t)||this;return n.isErrorsRow=!0,n}return d(t,e),Object.defineProperty(t.prototype,"attributes",{get:function(){return{}},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"className",{get:function(){return(new u.CssClassBuilder).append(this.cssClasses.row).append(this.cssClasses.errorRow).toString()},enumerable:!1,configurable:!0}),t.prototype.onAfterCreated=function(){var e=this,t=function(){e.visible=e.cells.some((function(e){return e.question&&e.question.hasVisibleErrors}))};this.cells.forEach((function(e){e.question&&e.question.registerFunctionOnPropertyValueChanged("hasVisibleErrors",t)})),t()},t}(m),y=function(e){function t(t){var n=e.call(this)||this;return n.matrix=t,n.renderedRowsChangedCallback=function(){},n.hasActionCellInRowsValues={},n.build(),n}return d(t,e),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,"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,"allowRowsDragAndDrop",{get:function(){return this.matrix.allowRowsDragAndDrop&&this.matrix.isColumnLayoutHorizontal},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"showCellErrorsTop",{get:function(){return"top"==this.matrix.errorLocation},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"showCellErrorsBottom",{get:function(){return"bottom"==this.matrix.errorLocation},enumerable:!1,configurable:!0}),t.prototype.build=function(){this.hasRemoveRowsValue=this.matrix.canRemoveRows,this.matrix.visibleRows,this.cssClasses=this.matrix.cssClasses,this.buildRowsActions(),this.buildHeader(),this.buildRows(),this.buildFooter(),this.updateShowTableAndAddRow()},t.prototype.updateShowTableAndAddRow=function(){var e=this.rows.length>0||this.matrix.isDesignMode||!this.matrix.getShowColumnsIfEmpty();this.setPropertyValue("showTable",e);var t=this.matrix.canAddRow&&e,n=t,r=t;n&&(n="default"===this.matrix.getAddRowLocation()?!this.matrix.isColumnLayoutHorizontal:"bottom"!==this.matrix.getAddRowLocation()),r&&"topBottom"!==this.matrix.getAddRowLocation()&&(r=!n),this.setPropertyValue("showAddRowOnTop",n),this.setPropertyValue("showAddRowOnBottom",r)},t.prototype.onAddedRow=function(e,t){if(!(this.getRenderedDataRowCount()>=this.matrix.visibleRows.length)){var n=this.getRenderedRowIndexByIndex(t);this.rowsActions.splice(t,0,this.buildRowActions(e)),this.addHorizontalRow(this.rows,e,1==this.matrix.visibleRows.length&&!this.matrix.showHeader,n),this.updateShowTableAndAddRow()}},t.prototype.getRenderedRowIndexByIndex=function(e){for(var t=0,n=0,r=0;r<this.rows.length;r++){if(n===e){(this.rows[r].isErrorsRow||this.rows[r].isDetailRow)&&t++;break}t++,this.rows[r].isErrorsRow||this.rows[r].isDetailRow||n++}return n<e?this.rows.length:t},t.prototype.getRenderedDataRowCount=function(){for(var e=0,t=0;t<this.rows.length;t++)this.rows[t].isErrorsRow||this.rows[t].isDetailRow||e++;return e},t.prototype.onRemovedRow=function(e){var t=this.getRenderedRowIndex(e);if(!(t<0)){this.rowsActions.splice(t,1);var n=1;t<this.rows.length-1&&this.showCellErrorsBottom&&this.rows[t+1].isErrorsRow&&n++,t<this.rows.length-1&&(this.rows[t+1].isDetailRow||this.showCellErrorsBottom&&t+1<this.rows.length-1&&this.rows[t+2].isDetailRow)&&n++,t>0&&this.showCellErrorsTop&&this.rows[t-1].isErrorsRow&&(t--,n++),this.rows.splice(t,n),this.updateShowTableAndAddRow()}},t.prototype.onDetailPanelChangeVisibility=function(e,t){var n=this.getRenderedRowIndex(e);if(!(n<0)){var r=n;this.showCellErrorsBottom&&r++;var o=r<this.rows.length-1&&this.rows[r+1].isDetailRow?r+1:-1;if(!(t&&o>-1||!t&&o<0))if(t){var i=this.createDetailPanelRow(e,this.rows[n]);this.rows.splice(r+1,0,i)}else this.rows.splice(o,1)}},t.prototype.getRenderedRowIndex=function(e){for(var t=0;t<this.rows.length;t++)if(this.rows[t].row==e)return t;return-1},t.prototype.buildRowsActions=function(){this.rowsActions=[];for(var e=this.matrix.visibleRows,t=0;t<e.length;t++)this.rowsActions.push(this.buildRowActions(e[t]))},t.prototype.createRenderedRow=function(e,t){return void 0===t&&(t=!1),new m(e,t)},t.prototype.createErrorRenderedRow=function(e){return new g(e)},t.prototype.buildHeader=function(){var e=this.matrix.isColumnLayoutHorizontal&&this.matrix.showHeader||this.matrix.hasRowText&&!this.matrix.isColumnLayoutHorizontal;if(this.setPropertyValue("showHeader",e),e){if(this.headerRowValue=this.createRenderedRow(this.cssClasses),this.allowRowsDragAndDrop&&this.headerRow.cells.push(this.createHeaderCell(null)),this.hasActionCellInRows("start")&&this.headerRow.cells.push(this.createHeaderCell(null)),this.matrix.hasRowText&&this.matrix.showHeader&&this.headerRow.cells.push(this.createHeaderCell(null)),this.matrix.isColumnLayoutHorizontal)for(var t=0;t<this.matrix.visibleColumns.length;t++){var n=this.matrix.visibleColumns[t];n.hasVisibleCell&&(this.matrix.IsMultiplyColumn(n)?this.createMutlipleColumnsHeader(n):this.headerRow.cells.push(this.createHeaderCell(n)))}else{var r=this.matrix.visibleRows;for(t=0;t<r.length;t++){var o=this.createTextCell(r[t].locText);this.setHeaderCellCssClasses(o),o.row=r[t],this.headerRow.cells.push(o)}this.matrix.hasFooter&&(o=this.createTextCell(this.matrix.getFooterText()),this.setHeaderCellCssClasses(o),this.headerRow.cells.push(o))}this.hasActionCellInRows("end")&&this.headerRow.cells.push(this.createHeaderCell(null))}},t.prototype.buildFooter=function(){if(this.showFooter){this.footerRowValue=this.createRenderedRow(this.cssClasses),this.allowRowsDragAndDrop&&this.footerRow.cells.push(this.createHeaderCell(null)),this.hasActionCellInRows("start")&&this.footerRow.cells.push(this.createHeaderCell(null)),this.matrix.hasRowText&&this.footerRow.cells.push(this.createTextCell(this.matrix.getFooterText()));for(var e=this.matrix.visibleTotalRow.cells,t=0;t<e.length;t++){var n=e[t];if(n.column.hasVisibleCell)if(this.matrix.IsMultiplyColumn(n.column))this.createMutlipleColumnsFooter(this.footerRow,n);else{var r=this.createEditCell(n);n.column&&this.setHeaderCellWidth(n.column,r),this.footerRow.cells.push(r)}}this.hasActionCellInRows("end")&&this.footerRow.cells.push(this.createHeaderCell(null))}},t.prototype.buildRows=function(){var e=this.matrix.isColumnLayoutHorizontal?this.buildHorizontalRows():this.buildVerticalRows();this.rows=e},t.prototype.hasActionCellInRows=function(e){return void 0===this.hasActionCellInRowsValues[e]&&(this.hasActionCellInRowsValues[e]=this.hasActionsCellInLocaltion(e)),this.hasActionCellInRowsValues[e]},t.prototype.hasActionsCellInLocaltion=function(e){var t=this;return!("end"!=e||!this.hasRemoveRows)||this.matrix.visibleRows.some((function(n,r){return!t.isValueEmpty(t.getRowActions(r,e))}))},t.prototype.canRemoveRow=function(e){return this.matrix.canRemoveRow(e)},t.prototype.buildHorizontalRows=function(){for(var e=this.matrix.visibleRows,t=[],n=0;n<e.length;n++)this.addHorizontalRow(t,e[n],0==n&&!this.matrix.showHeader);return t},t.prototype.addHorizontalRow=function(e,t,n,r){void 0===r&&(r=-1);var o=this.createHorizontalRow(t,n),i=this.createErrorRow(o);if(o.row=t,r<0&&(r=e.length),this.matrix.isMobile){for(var s=[],a=0;a<o.cells.length;a++)this.showCellErrorsTop&&!i.cells[a].isEmpty&&s.push(i.cells[a]),s.push(o.cells[a]),this.showCellErrorsBottom&&!i.cells[a].isEmpty&&s.push(i.cells[a]);o.cells=s,e.splice(r,0,o)}else e.splice.apply(e,function(e,t){for(var n=0,r=t.length,o=e.length;n<r;n++,o++)e[o]=t[n];return e}([r,0],this.showCellErrorsTop?[i,o]:[o,i])),r++;t.isDetailPanelShowing&&e.splice(r+1,0,this.createDetailPanelRow(t,o))},t.prototype.getRowDragCell=function(e){var t=new f;return t.isDragHandlerCell=!0,t.className=this.getActionsCellClassName(),t.row=this.matrix.visibleRows[e],t},t.prototype.getActionsCellClassName=function(){return(new u.CssClassBuilder).append(this.cssClasses.actionsCell).append(this.cssClasses.verticalCell,!this.matrix.isColumnLayoutHorizontal).toString()},t.prototype.getRowActionsCell=function(e,t){var n=this.getRowActions(e,t);if(!this.isValueEmpty(n)){var r=new f,o=this.matrix.allowAdaptiveActions?new l.AdaptiveActionContainer:new c.ActionContainer;this.matrix.survey&&this.matrix.survey.getCss().actionBar&&(o.cssClasses=this.matrix.survey.getCss().actionBar),o.setItems(n);var i=new s.ItemValue(o);return r.item=i,r.isActionsCell=!0,r.className=this.getActionsCellClassName(),r.row=this.matrix.visibleRows[e],r}return null},t.prototype.getRowActions=function(e,t){var n=this.rowsActions[e];return Array.isArray(n)?n.filter((function(e){return e.location||(e.location="start"),e.location===t})):[]},t.prototype.buildRowActions=function(e){var t=[];return this.setDefaultRowActions(e,t),this.matrix.survey&&(t=this.matrix.survey.getUpdatedMatrixRowActions(this.matrix,e,t)),t},Object.defineProperty(t.prototype,"showRemoveButtonAsIcon",{get:function(){return p.settings.matrix.renderRemoveAsIcon&&this.matrix.survey&&"sd-root-modern"===this.matrix.survey.css.root},enumerable:!1,configurable:!0}),t.prototype.setDefaultRowActions=function(e,t){var n=this.matrix;this.hasRemoveRows&&this.canRemoveRow(e)&&(this.showRemoveButtonAsIcon?t.push(new a.Action({id:"remove-row",iconName:"icon-delete",component:"sv-action-bar-item",innerCss:(new u.CssClassBuilder).append(this.matrix.cssClasses.button).append(this.matrix.cssClasses.buttonRemove).toString(),location:"end",showTitle:!1,title:n.removeRowText,enabled:!n.isInputReadOnly,data:{row:e,question:n},action:function(){n.removeRowUI(e)}})):t.push(new a.Action({id:"remove-row",location:"end",enabled:!this.matrix.isInputReadOnly,component:"sv-matrix-remove-button",data:{row:e,question:this.matrix}}))),e.hasPanel&&t.push(new a.Action({id:"show-detail",title:this.matrix.getLocalizationString("editText"),showTitle:!1,location:"start",component:"sv-matrix-detail-button",data:{row:e,question:this.matrix}}))},t.prototype.createErrorRow=function(e){for(var t=this.createErrorRenderedRow(this.cssClasses),n=0;n<e.cells.length;n++){var r=e.cells[n];r.hasQuestion?this.matrix.IsMultiplyColumn(r.cell.column)?r.isFirstChoice?t.cells.push(this.createErrorCell(r.cell)):t.cells.push(this.createEmptyCell()):t.cells.push(this.createErrorCell(r.cell)):t.cells.push(this.createEmptyCell())}return t.onAfterCreated(),t},t.prototype.createHorizontalRow=function(e,t){var n=this.createRenderedRow(this.cssClasses);if(this.allowRowsDragAndDrop){var r=this.matrix.visibleRows.indexOf(e);n.cells.push(this.getRowDragCell(r))}this.addRowActionsCell(e,n,"start"),this.matrix.hasRowText&&((s=this.createTextCell(e.locText)).row=e,n.cells.push(s),t&&this.setHeaderCellWidth(null,s),s.className=(new u.CssClassBuilder).append(s.className).append(this.cssClasses.rowTextCell).append(this.cssClasses.detailRowText,e.hasPanel).toString());for(var o=0;o<e.cells.length;o++){var i=e.cells[o];if(i.column.hasVisibleCell)if(this.matrix.IsMultiplyColumn(i.column))this.createMutlipleEditCells(n,i);else{i.column.isShowInMultipleColumns&&i.question.visibleChoices.map((function(e){return e.hideCaption=!1}));var s=this.createEditCell(i);n.cells.push(s),t&&this.setHeaderCellWidth(i.column,s)}}return this.addRowActionsCell(e,n,"end"),n},t.prototype.addRowActionsCell=function(e,t,n){var r=this.matrix.visibleRows.indexOf(e);if(this.hasActionCellInRows(n)){var o=this.getRowActionsCell(r,n);if(o)t.cells.push(o);else{var i=new f;i.isEmpty=!0,t.cells.push(i)}}},t.prototype.createDetailPanelRow=function(e,t){var n=this.matrix.isDesignMode,r=this.createRenderedRow(this.cssClasses,!0);r.row=e;var o=new f;this.matrix.hasRowText&&(o.colSpans=2),o.isEmpty=!0,n||r.cells.push(o);var i=null;this.hasActionCellInRows("end")&&((i=new f).isEmpty=!0);var s=new f;return s.panel=e.detailPanel,s.colSpans=t.cells.length-(n?0:o.colSpans)-(i?i.colSpans:0),s.className=this.cssClasses.detailPanelCell,r.cells.push(s),i&&r.cells.push(i),"function"==typeof this.matrix.onCreateDetailPanelRenderedRowCallback&&this.matrix.onCreateDetailPanelRenderedRowCallback(r),r},t.prototype.buildVerticalRows=function(){for(var e=this.matrix.columns,t=[],n=0;n<e.length;n++){var r=e[n];if(r.isVisible&&r.hasVisibleCell)if(this.matrix.IsMultiplyColumn(r))this.createMutlipleVerticalRows(t,r,n);else{var o=this.createVerticalRow(r,n),i=this.createErrorRow(o);this.showCellErrorsTop?(t.push(i),t.push(o)):(t.push(o),t.push(i))}}return this.hasActionCellInRows("end")&&t.push(this.createEndVerticalActionRow()),t},t.prototype.createMutlipleVerticalRows=function(e,t,n){var r=this.getMultipleColumnChoices(t);if(r)for(var o=0;o<r.length;o++){var i=this.createVerticalRow(t,n,r[o],o),s=this.createErrorRow(i);this.showCellErrorsTop?(e.push(s),e.push(i)):(e.push(i),e.push(s))}},t.prototype.createVerticalRow=function(e,t,n,r){void 0===n&&(n=null),void 0===r&&(r=-1);var o=this.createRenderedRow(this.cssClasses);if(this.matrix.showHeader){var i=n?n.locText:e.locTitle,s=this.createTextCell(i);s.column=e,s.className=(new u.CssClassBuilder).append(s.className).append(this.cssClasses.rowTextCell).toString(),n||this.setRequriedToHeaderCell(e,s),o.cells.push(s)}for(var a=this.matrix.visibleRows,l=0;l<a.length;l++){var c=n,p=r>=0?r:l,d=a[l].cells[t],h=n?d.question.visibleChoices:void 0;h&&p<h.length&&(c=h[p]);var f=this.createEditCell(d,c);f.item=c,f.choiceIndex=p,o.cells.push(f)}return this.matrix.hasTotal&&o.cells.push(this.createEditCell(this.matrix.visibleTotalRow.cells[t])),o},t.prototype.createEndVerticalActionRow=function(){var e=this.createRenderedRow(this.cssClasses);this.matrix.showHeader&&e.cells.push(this.createEmptyCell());for(var t=this.matrix.visibleRows,n=0;n<t.length;n++)e.cells.push(this.getRowActionsCell(n,"end"));return this.matrix.hasTotal&&e.cells.push(this.createEmptyCell()),e},t.prototype.createMutlipleEditCells=function(e,t,n){void 0===n&&(n=!1);var r=n?this.getMultipleColumnChoices(t.column):t.question.visibleChoices;if(r)for(var o=0;o<r.length;o++){var i=this.createEditCell(t,n?void 0:r[o]);n||(this.setItemCellCssClasses(i),i.choiceIndex=o),e.cells.push(i)}},t.prototype.setItemCellCssClasses=function(e){e.className=(new u.CssClassBuilder).append(this.cssClasses.itemCell).append(this.cssClasses.radioCell,e.isRadio).append(this.cssClasses.checkboxCell,e.isCheckbox).toString()},t.prototype.createEditCell=function(e,t){void 0===t&&(t=void 0);var n=new f;return n.cell=e,n.row=e.row,n.question=e.question,n.matrix=this.matrix,n.item=t,n.isOtherChoice=!!t&&!!e.question&&e.question.otherItem===t,n.className=n.calculateFinalClassName(this.cssClasses),n},t.prototype.createErrorCell=function(e,t){void 0===t&&(t=void 0);var n=new f;return n.question=e.question,n.row=e.row,n.matrix=this.matrix,n.isErrorsCell=!0,n.className=(new u.CssClassBuilder).append(this.cssClasses.cell).append(this.cssClasses.errorsCell).append(this.cssClasses.errorsCellTop,this.showCellErrorsTop).append(this.cssClasses.errorsCellBottom,this.showCellErrorsBottom).toString(),n},t.prototype.createMutlipleColumnsFooter=function(e,t){this.createMutlipleEditCells(e,t,!0)},t.prototype.createMutlipleColumnsHeader=function(e){var t=this.getMultipleColumnChoices(e);if(t)for(var n=0;n<t.length;n++){var r=this.createTextCell(t[n].locText);this.setHeaderCell(e,r),this.setHeaderCellCssClasses(r),this.headerRow.cells.push(r)}},t.prototype.getMultipleColumnChoices=function(e){var t=e.templateQuestion.choices;return t&&Array.isArray(t)&&0==t.length?this.matrix.choices:(t=e.templateQuestion.visibleChoices)&&Array.isArray(t)?t:null},t.prototype.setHeaderCellCssClasses=function(e,t){e.className=(new u.CssClassBuilder).append(this.cssClasses.headerCell).append(this.cssClasses.emptyCell,!!e.isEmpty).append(this.cssClasses.cell+"--"+t,!!t).toString()},t.prototype.createHeaderCell=function(e){var t=e?this.createTextCell(e.locTitle):this.createEmptyCell();t.column=e,this.setHeaderCell(e,t);var n=e&&"default"!==e.cellType?e.cellType:this.matrix.cellType;return this.setHeaderCellCssClasses(t,n),t},t.prototype.setHeaderCell=function(e,t){this.setHeaderCellWidth(e,t),this.setRequriedToHeaderCell(e,t)},t.prototype.setHeaderCellWidth=function(e,t){t.minWidth=null!=e?this.matrix.getColumnWidth(e):this.matrix.getRowTitleWidth(),t.width=null!=e?e.width:this.matrix.getRowTitleWidth()},t.prototype.setRequriedToHeaderCell=function(e,t){e&&e.isRequired&&this.matrix.survey&&(t.requiredText=this.matrix.survey.requiredText)},t.prototype.createRemoveRowCell=function(e){var t=new f;return t.row=e,t.isRemoveRow=this.canRemoveRow(e),this.cssClasses.cell&&(t.className=this.cssClasses.cell),t},t.prototype.createTextCell=function(e){var t=new f;return t.locTitle=e,e&&e.strChanged(),this.cssClasses.cell&&(t.className=this.cssClasses.cell),t},t.prototype.createEmptyCell=function(){var e=this.createTextCell(null);return e.isEmpty=!0,e},h([Object(o.propertyArray)({onPush:function(e,t,n){n.renderedRowsChangedCallback()}})],t.prototype,"rows",void 0),t}(i.Base)},"./src/question_matrixdynamic.ts":function(e,t,n){"use strict";n.r(t),n.d(t,"MatrixDynamicRowModel",(function(){return m})),n.d(t,"QuestionMatrixDynamicModel",(function(){return g}));var r,o=n("./src/jsonobject.ts"),i=n("./src/questionfactory.ts"),s=n("./src/question_matrixdropdownbase.ts"),a=n("./src/error.ts"),l=n("./src/settings.ts"),u=n("./src/utils/utils.ts"),c=n("./src/dragdrop/matrix-rows.ts"),p=n("./src/utils/cssClassBuilder.ts"),d=n("./src/question_matrixdropdownrendered.ts"),h=n("./src/utils/dragOrClickHelper.ts"),f=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),m=function(e){function t(t,n,r){var o=e.call(this,n,r)||this;return o.index=t,o.buildCells(r),o}return f(t,e),Object.defineProperty(t.prototype,"rowName",{get:function(){return this.id},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"shortcutText",{get:function(){var e=this.data.visibleRows.indexOf(this)+1,t=this.cells.length>1?this.cells[1].questionValue:void 0,n=this.cells.length>0?this.cells[0].questionValue:void 0;return t&&t.value||n&&n.value||""+e},enumerable:!1,configurable:!0}),t}(s.MatrixDropdownRowModelBase),g=function(e){function t(t){var n=e.call(this,t)||this;return n.rowCounter=0,n.initialRowCount=2,n.setRowCountValueFromData=!1,n.startDragMatrixRow=function(e,t){n.dragDropMatrixRows.startDrag(e,n.draggedRow,n,e.target)},n.createLocalizableString("confirmDeleteText",n,!1,"confirmDelete"),n.createLocalizableString("addRowText",n).onGetTextCallback=function(e){return e||n.defaultAddRowText},n.createLocalizableString("removeRowText",n,!1,"removeRow"),n.createLocalizableString("emptyRowsText",n,!1,!0),n.registerPropertyChangedHandlers(["hideColumnsIfEmpty","allowAddRows"],(function(){n.updateShowTableAndAddRow()})),n.registerPropertyChangedHandlers(["allowRowsDragAndDrop"],(function(){n.clearRowsAndResetRenderedTable()})),n.dragOrClickHelper=new h.DragOrClickHelper(n.startDragMatrixRow),n}return f(t,e),t.prototype.setSurveyImpl=function(t,n){e.prototype.setSurveyImpl.call(this,t,n),this.dragDropMatrixRows=new c.DragDropMatrixRows(this.survey,null,!0)},t.prototype.isBanStartDrag=function(e){var t=e.target;return"true"===t.getAttribute("contenteditable")||"INPUT"===t.nodeName||!this.isDragHandleAreaValid(t)},t.prototype.isDragHandleAreaValid=function(e){return"icon"!==this.survey.matrixDragHandleArea||e.classList.contains(this.cssClasses.dragElementDecorator)},t.prototype.onPointerDown=function(e,t){t&&this.allowRowsDragAndDrop&&(this.isBanStartDrag(e)||t.isDetailPanelShowing||(this.draggedRow=t,this.dragOrClickHelper.onPointerDown(e)))},t.prototype.getType=function(){return"matrixdynamic"},Object.defineProperty(t.prototype,"isRowsDynamic",{get:function(){return!0},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"confirmDelete",{get:function(){return this.getPropertyValue("confirmDelete")},set:function(e){this.setPropertyValue("confirmDelete",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isValueArray",{get:function(){return!0},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"keyName",{get:function(){return this.getPropertyValue("keyName","")},set:function(e){this.setPropertyValue("keyName",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"defaultRowValue",{get:function(){return this.getPropertyValue("defaultRowValue")},set:function(e){this.setPropertyValue("defaultRowValue",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"defaultValueFromLastRow",{get:function(){return this.getPropertyValue("defaultValueFromLastRow")},set:function(e){this.setPropertyValue("defaultValueFromLastRow",e)},enumerable:!1,configurable:!0}),t.prototype.isDefaultValueEmpty=function(){return e.prototype.isDefaultValueEmpty.call(this)&&this.isValueEmpty(this.defaultRowValue)},t.prototype.valueFromData=function(t){if(this.minRowCount<1)return e.prototype.valueFromData.call(this,t);Array.isArray(t)||(t=[]);for(var n=t.length;n<this.minRowCount;n++)t.push({});return t},t.prototype.isNewValueCorrect=function(e){return Array.isArray(e)},t.prototype.setDefaultValue=function(){if(!this.isValueEmpty(this.defaultRowValue)&&this.isValueEmpty(this.defaultValue)){if(this.isEmpty()&&0!=this.rowCount){for(var t=[],n=0;n<this.rowCount;n++)t.push(this.defaultRowValue);this.value=t}}else e.prototype.setDefaultValue.call(this)},t.prototype.moveRowByIndex=function(e,t){var n=this.createNewValue();if(Array.isArray(n)||!(Math.max(e,t)>=n.length)){var r=n[e];n.splice(e,1),n.splice(t,0,r),this.value=n}},t.prototype.clearOnDrop=function(){this.isEditingSurveyElement||this.resetRenderedTable()},t.prototype.initDataUI=function(){this.generatedVisibleRows||this.visibleRows},Object.defineProperty(t.prototype,"rowCount",{get:function(){return this.rowCountValue},set:function(e){if(!(e<0||e>l.settings.matrix.maxRowCount)){this.setRowCountValueFromData=!1;var t=this.rowCountValue;if(this.rowCountValue=e,this.value&&this.value.length>e){var n=this.value;n.splice(e),this.value=n}if(this.isUpdateLocked)this.initialRowCount=e;else{if(this.generatedVisibleRows||0==t){this.generatedVisibleRows||(this.generatedVisibleRows=[]),this.generatedVisibleRows.splice(e);for(var r=t;r<e;r++){var o=this.createMatrixRow(this.getValueForNewRow());this.generatedVisibleRows.push(o),this.onMatrixRowCreated(o)}this.runCondition(this.getDataFilteredValues(),this.getDataFilteredProperties())}this.onRowsChanged()}}},enumerable:!1,configurable:!0}),t.prototype.updateProgressInfoByValues=function(e){var t=this.value;Array.isArray(t)||(t=[]);for(var n=0;n<this.rowCount;n++){var r=n<t.length?t[n]:{};this.updateProgressInfoByRow(e,r)}},t.prototype.getValueForNewRow=function(){var e=null;return this.onGetValueForNewRowCallBack&&(e=this.onGetValueForNewRowCallBack(this)),e},Object.defineProperty(t.prototype,"allowRowsDragAndDrop",{get:function(){return!this.readOnly&&this.getPropertyValue("allowRowsDragAndDrop")},set:function(e){this.setPropertyValue("allowRowsDragAndDrop",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"iconDragElement",{get:function(){return this.cssClasses.iconDragElement},enumerable:!1,configurable:!0}),t.prototype.createRenderedTable=function(){return new y(this)},Object.defineProperty(t.prototype,"rowCountValue",{get:function(){return this.getPropertyValue("rowCount")},set:function(e){this.setPropertyValue("rowCount",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"minRowCount",{get:function(){return this.getPropertyValue("minRowCount")},set:function(e){e<0&&(e=0),this.setPropertyValue("minRowCount",e),e>this.maxRowCount&&(this.maxRowCount=e),this.rowCount<e&&(this.rowCount=e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"maxRowCount",{get:function(){return this.getPropertyValue("maxRowCount")},set:function(e){e<=0||(e>l.settings.matrix.maxRowCount&&(e=l.settings.matrix.maxRowCount),e!=this.maxRowCount&&(this.setPropertyValue("maxRowCount",e),e<this.minRowCount&&(this.minRowCount=e),this.rowCount>e&&(this.rowCount=e)))},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"allowAddRows",{get:function(){return this.getPropertyValue("allowAddRows")},set:function(e){this.setPropertyValue("allowAddRows",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"allowRemoveRows",{get:function(){return this.getPropertyValue("allowRemoveRows")},set:function(e){this.setPropertyValue("allowRemoveRows",e),this.isUpdateLocked||this.resetRenderedTable()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"canAddRow",{get:function(){return this.allowAddRows&&!this.isReadOnly&&this.rowCount<this.maxRowCount},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"canRemoveRows",{get:function(){var e=this.allowRemoveRows&&!this.isReadOnly&&this.rowCount>this.minRowCount;return this.canRemoveRowsCallback?this.canRemoveRowsCallback(e):e},enumerable:!1,configurable:!0}),t.prototype.canRemoveRow=function(e){return!this.survey||this.survey.matrixAllowRemoveRow(this,e.index,e)},t.prototype.addRowUI=function(){this.addRow(!0)},t.prototype.getQuestionToFocusOnAddingRow=function(){for(var e=this.visibleRows[this.visibleRows.length-1],t=0;t<e.cells.length;t++){var n=e.cells[t].question;if(n&&n.isVisible&&!n.isReadOnly)return n}return null},t.prototype.addRow=function(e){var t=this.rowCount,n=this.canAddRow,r={question:this,canAddRow:n,allow:n};if(this.survey&&this.survey.matrixBeforeRowAdded(r),(n!==r.allow?r.allow:n!==r.canAddRow?r.canAddRow:n)&&(this.onStartRowAddingRemoving(),this.addRowCore(),this.onEndRowAdding(),this.detailPanelShowOnAdding&&this.visibleRows.length>0&&this.visibleRows[this.visibleRows.length-1].showDetailPanel(),e&&t!==this.rowCount)){var o=this.getQuestionToFocusOnAddingRow();o&&o.focus()}},Object.defineProperty(t.prototype,"detailPanelShowOnAdding",{get:function(){return this.getPropertyValue("detailPanelShowOnAdding")},set:function(e){this.setPropertyValue("detailPanelShowOnAdding",e)},enumerable:!1,configurable:!0}),t.prototype.hasRowsAsItems=function(){return!1},t.prototype.unbindValue=function(){this.clearGeneratedRows(),this.clearPropertyValue("value"),this.rowCountValue=0,e.prototype.unbindValue.call(this)},t.prototype.isValueSurveyElement=function(t){return this.isEditingSurveyElement||e.prototype.isValueSurveyElement.call(this,t)},t.prototype.addRowCore=function(){var e=this.rowCount;this.rowCount=this.rowCount+1;var t=this.getDefaultRowValue(!0),n=null;if(this.isValueEmpty(t)||(n=this.createNewValue()).length==this.rowCount&&(n[n.length-1]=t,this.value=n),this.data&&(this.runCellsCondition(this.getDataFilteredValues(),this.getDataFilteredProperties()),this.isValueEmpty(t))){var r=this.visibleRows[this.rowCount-1];this.isValueEmpty(r.value)||(n||(n=this.createNewValue()),this.isValueSurveyElement(n)||this.isTwoValueEquals(n[n.length-1],r.value)||(n[n.length-1]=r.value,this.value=n))}this.survey&&e+1==this.rowCount&&(this.survey.matrixRowAdded(this,this.visibleRows[this.visibleRows.length-1]),this.onRowsChanged())},t.prototype.getDefaultRowValue=function(e){for(var t=null,n=0;n<this.columns.length;n++){var r=this.columns[n].templateQuestion;r&&!this.isValueEmpty(r.getDefaultValue())&&((t=t||{})[this.columns[n].name]=r.getDefaultValue())}if(!this.isValueEmpty(this.defaultRowValue))for(var o in this.defaultRowValue)(t=t||{})[o]=this.defaultRowValue[o];if(e&&this.defaultValueFromLastRow){var i=this.value;if(i&&Array.isArray(i)&&i.length>=this.rowCount-1){var s=i[this.rowCount-2];for(var o in s)(t=t||{})[o]=s[o]}}return t},t.prototype.removeRowUI=function(e){if(e&&e.rowName){var t=this.visibleRows.indexOf(e);if(t<0)return;e=t}this.removeRow(e)},t.prototype.isRequireConfirmOnRowDelete=function(e){if(!this.confirmDelete)return!1;if(e<0||e>=this.rowCount)return!1;var t=this.createNewValue();return!(this.isValueEmpty(t)||!Array.isArray(t)||e>=t.length||this.isValueEmpty(t[e]))},t.prototype.removeRow=function(e,t){if(this.canRemoveRows&&!(e<0||e>=this.rowCount)){var n=this.visibleRows&&e<this.visibleRows.length?this.visibleRows[e]:null;void 0===t&&(t=this.isRequireConfirmOnRowDelete(e)),t&&!Object(u.confirmAction)(this.confirmDeleteText)||n&&this.survey&&!this.survey.matrixRowRemoving(this,e,n)||(this.onStartRowAddingRemoving(),this.removeRowCore(e),this.onEndRowRemoving(n))}},t.prototype.removeRowCore=function(e){var t=this.generatedVisibleRows?this.generatedVisibleRows[e]:null;if(this.generatedVisibleRows&&e<this.generatedVisibleRows.length&&this.generatedVisibleRows.splice(e,1),this.rowCountValue--,this.value){var n=[];(n=Array.isArray(this.value)&&e<this.value.length?this.createValueCopy():this.createNewValue()).splice(e,1),n=this.deleteRowValue(n,null),this.isRowChanging=!0,this.value=n,this.isRowChanging=!1}this.onRowsChanged(),this.survey&&this.survey.matrixRowRemoved(this,e,t)},Object.defineProperty(t.prototype,"confirmDeleteText",{get:function(){return this.getLocalizableStringText("confirmDeleteText")},set:function(e){this.setLocalizableStringText("confirmDeleteText",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locConfirmDeleteText",{get:function(){return this.getLocalizableString("confirmDeleteText")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"addRowText",{get:function(){return this.getLocalizableStringText("addRowText",this.defaultAddRowText)},set:function(e){this.setLocalizableStringText("addRowText",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locAddRowText",{get:function(){return this.getLocalizableString("addRowText")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"defaultAddRowText",{get:function(){return this.getLocalizationString(this.isColumnLayoutHorizontal?"addRow":"addColumn")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"addRowLocation",{get:function(){return this.getPropertyValue("addRowLocation")},set:function(e){this.setPropertyValue("addRowLocation",e)},enumerable:!1,configurable:!0}),t.prototype.getAddRowLocation=function(){return this.addRowLocation},Object.defineProperty(t.prototype,"hideColumnsIfEmpty",{get:function(){return this.getPropertyValue("hideColumnsIfEmpty")},set:function(e){this.setPropertyValue("hideColumnsIfEmpty",e)},enumerable:!1,configurable:!0}),t.prototype.getShowColumnsIfEmpty=function(){return this.hideColumnsIfEmpty},Object.defineProperty(t.prototype,"removeRowText",{get:function(){return this.getLocalizableStringText("removeRowText")},set:function(e){this.setLocalizableStringText("removeRowText",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locRemoveRowText",{get:function(){return this.getLocalizableString("removeRowText")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"emptyRowsText",{get:function(){return this.getLocalizableStringText("emptyRowsText")},set:function(e){this.setLocalizableStringText("emptyRowsText",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locEmptyRowsText",{get:function(){return this.getLocalizableString("emptyRowsText")},enumerable:!1,configurable:!0}),t.prototype.getDisplayValueCore=function(e,t){if(!t||!Array.isArray(t))return t;for(var n=this.getUnbindValue(t),r=this.visibleRows,o=0;o<r.length&&o<n.length;o++){var i=n[o];i&&(n[o]=this.getRowDisplayValue(e,r[o],i))}return n},t.prototype.getConditionObjectRowName=function(e){return"["+e.toString()+"]"},t.prototype.getConditionObjectsRowIndeces=function(){for(var e=[],t=Math.max(this.rowCount,1),n=0;n<Math.min(l.settings.matrix.maxRowCountInCondition,t);n++)e.push(n);return e},t.prototype.supportGoNextPageAutomatic=function(){return!1},Object.defineProperty(t.prototype,"hasRowText",{get:function(){return!1},enumerable:!1,configurable:!0}),t.prototype.onCheckForErrors=function(t,n){e.prototype.onCheckForErrors.call(this,t,n),!n&&this.hasErrorInMinRows()&&t.push(new a.MinRowCountError(this.minRowCount,this))},t.prototype.hasErrorInMinRows=function(){if(this.minRowCount<=0||!this.isRequired||!this.generatedVisibleRows)return!1;for(var e=0,t=0;t<this.generatedVisibleRows.length;t++)this.generatedVisibleRows[t].isEmpty||e++;return e<this.minRowCount},t.prototype.getUniqueColumns=function(){var t=e.prototype.getUniqueColumns.call(this);if(this.keyName){var n=this.getColumnByName(this.keyName);n&&t.indexOf(n)<0&&t.push(n)}return t},t.prototype.generateRows=function(){var e=new Array;if(0===this.rowCount)return e;for(var t=this.createNewValue(),n=0;n<this.rowCount;n++)e.push(this.createMatrixRow(this.getRowValueByIndex(t,n)));return this.isValueEmpty(this.getDefaultRowValue(!1))||(this.value=t),e},t.prototype.createMatrixRow=function(e){return new m(this.rowCounter++,this,e)},t.prototype.getInsertedDeletedIndex=function(e,t){for(var n=Math.min(e.length,t.length),r=0;r<n;r++)if(t[r]!==e[r].editingObj)return r;return n},t.prototype.isEditingObjectValueChanged=function(){var e=this.value;if(!this.generatedVisibleRows||!this.isValueSurveyElement(e))return!1;var t=this.lastDeletedRow;this.lastDeletedRow=void 0;var n=this.generatedVisibleRows;if(!Array.isArray(e)||Math.abs(n.length-e.length)>1)return!1;var r=this.getInsertedDeletedIndex(n,e);if(n.length>e.length){this.lastDeletedRow=n[r];var o=n[r];n.splice(r,1),this.isRendredTableCreated&&this.renderedTable.onRemovedRow(o)}else{var i;i=t&&t.editingObj===e[r]?t:this.createMatrixRow(e[r]),n.splice(r,0,i),t||this.onMatrixRowCreated(i),this.isRendredTableCreated&&this.renderedTable.onAddedRow(i,r)}return this.setPropertyValueDirectly("rowCount",e.length),!0},t.prototype.onBeforeValueChanged=function(e){if(e&&Array.isArray(e)){var t=e.length;if(t!=this.rowCount&&(this.setRowCountValueFromData||!(t<this.initialRowCount))&&!this.isEditingObjectValueChanged()&&(this.setRowCountValueFromData=!0,this.rowCountValue=t,this.generatedVisibleRows)){if(t==this.generatedVisibleRows.length+1){this.onStartRowAddingRemoving();var n=this.getRowValueByIndex(e,t-1),r=this.createMatrixRow(n);this.generatedVisibleRows.push(r),this.onMatrixRowCreated(r),this.onEndRowAdding()}else this.clearGeneratedRows(),this.generatedVisibleRows=this.visibleRows,this.onRowsChanged();this.setRowCountValueFromData=!1}}},t.prototype.createNewValue=function(){var e=this.createValueCopy();e&&Array.isArray(e)||(e=[]),e.length>this.rowCount&&e.splice(this.rowCount);var t=this.getDefaultRowValue(!1);t=t||{};for(var n=e.length;n<this.rowCount;n++)e.push(this.getUnbindValue(t));return e},t.prototype.deleteRowValue=function(e,t){for(var n=!0,r=0;r<e.length;r++)if(this.isObject(e[r])&&Object.keys(e[r]).length>0){n=!1;break}return n?null:e},t.prototype.getRowValueByIndex=function(e,t){return Array.isArray(e)&&t>=0&&t<e.length?e[t]:null},t.prototype.getRowValueCore=function(e,t,n){if(void 0===n&&(n=!1),!this.generatedVisibleRows)return{};var r=this.getRowValueByIndex(t,this.generatedVisibleRows.indexOf(e));return!r&&n&&(r={}),r},t.prototype.getAddRowButtonCss=function(e){return void 0===e&&(e=!1),(new p.CssClassBuilder).append(this.cssClasses.button).append(this.cssClasses.buttonAdd).append(this.cssClasses.emptyRowsButton,e).toString()},t.prototype.getRemoveRowButtonCss=function(){return(new p.CssClassBuilder).append(this.cssClasses.button).append(this.cssClasses.buttonRemove).toString()},t.prototype.getRootCss=function(){var t;return(new p.CssClassBuilder).append(e.prototype.getRootCss.call(this)).append(this.cssClasses.empty,!(null===(t=this.renderedTable)||void 0===t?void 0:t.showTable)).toString()},t}(s.QuestionMatrixDropdownModelBase),y=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return f(t,e),t.prototype.setDefaultRowActions=function(t,n){e.prototype.setDefaultRowActions.call(this,t,n)},t}(d.QuestionMatrixDropdownRenderedTable);o.Serializer.addClass("matrixdynamic",[{name:"rowsVisibleIf:condition",visible:!1},{name:"allowAddRows:boolean",default:!0},{name:"allowRemoveRows:boolean",default:!0},{name:"rowCount:number",default:2,minValue:0,isBindable:!0},{name:"minRowCount:number",default:0,minValue:0},{name:"maxRowCount:number",default:l.settings.matrix.maxRowCount},{name:"keyName"},"defaultRowValue:rowvalue","defaultValueFromLastRow:boolean",{name:"confirmDelete:boolean"},{name:"confirmDeleteText",dependsOn:"confirmDelete",visibleIf:function(e){return!e||e.confirmDelete},serializationProperty:"locConfirmDeleteText"},{name:"addRowLocation",default:"default",choices:["default","top","bottom","topBottom"]},{name:"addRowText",serializationProperty:"locAddRowText"},{name:"removeRowText",serializationProperty:"locRemoveRowText"},"hideColumnsIfEmpty:boolean",{name:"emptyRowsText:text",serializationProperty:"locEmptyRowsText",dependsOn:"hideColumnsIfEmpty",visibleIf:function(e){return!e||e.hideColumnsIfEmpty}},{name:"detailPanelShowOnAdding:boolean",dependsOn:"detailPanelMode",visibleIf:function(e){return"none"!==e.detailPanelMode}},"allowRowsDragAndDrop:switch"],(function(){return new g("")}),"matrixdropdownbase"),i.QuestionFactory.Instance.registerQuestion("matrixdynamic",(function(e){var t=new g(e);return t.choices=[1,2,3,4,5],s.QuestionMatrixDropdownModelBase.addDefaultColumns(t),t}))},"./src/question_multipletext.ts":function(e,t,n){"use strict";n.r(t),n.d(t,"MultipleTextEditorModel",(function(){return f})),n.d(t,"MultipleTextItemModel",(function(){return m})),n.d(t,"QuestionMultipleTextModel",(function(){return g}));var r,o=n("./src/base.ts"),i=n("./src/survey-element.ts"),s=n("./src/question.ts"),a=n("./src/question_text.ts"),l=n("./src/jsonobject.ts"),u=n("./src/questionfactory.ts"),c=n("./src/helpers.ts"),p=n("./src/utils/cssClassBuilder.ts"),d=n("./src/settings.ts"),h=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),f=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return h(t,e),Object.defineProperty(t.prototype,"a11y_input_ariaLabel",{get:function(){return this.locTitle.renderedHtml},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"a11y_input_ariaLabelledBy",{get:function(){return null},enumerable:!1,configurable:!0}),t}(a.QuestionTextModel),m=function(e){function t(t,n){void 0===t&&(t=null),void 0===n&&(n=null);var r=e.call(this)||this;return r.editorValue=r.createEditor(t),r.editor.questionTitleTemplateCallback=function(){return""},r.editor.titleLocation="left",n&&(r.title=n),r}return h(t,e),t.prototype.getType=function(){return"multipletextitem"},Object.defineProperty(t.prototype,"id",{get:function(){return this.editor.id},enumerable:!1,configurable:!0}),t.prototype.getOriginalObj=function(){return this.editor},Object.defineProperty(t.prototype,"name",{get:function(){return this.editor.name},set:function(e){this.editor.name=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"question",{get:function(){return this.data},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"editor",{get:function(){return this.editorValue},enumerable:!1,configurable:!0}),t.prototype.createEditor=function(e){return new f(e)},t.prototype.addUsedLocales=function(t){e.prototype.addUsedLocales.call(this,t),this.editor.addUsedLocales(t)},t.prototype.localeChanged=function(){e.prototype.localeChanged.call(this),this.editor.localeChanged()},t.prototype.locStrsChanged=function(){e.prototype.locStrsChanged.call(this),this.editor.locStrsChanged()},t.prototype.setData=function(e){this.data=e,e&&(this.editor.defaultValue=e.getItemDefaultValue(this.name),this.editor.setSurveyImpl(this),this.editor.parent=e)},Object.defineProperty(t.prototype,"isRequired",{get:function(){return this.editor.isRequired},set:function(e){this.editor.isRequired=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"inputType",{get:function(){return this.editor.inputType},set:function(e){this.editor.inputType=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"title",{get:function(){return this.editor.title},set:function(e){this.editor.title=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locTitle",{get:function(){return this.editor.locTitle},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"fullTitle",{get:function(){return this.editor.fullTitle},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"maxLength",{get:function(){return this.editor.maxLength},set:function(e){this.editor.maxLength=e},enumerable:!1,configurable:!0}),t.prototype.getMaxLength=function(){var e=this.getSurvey();return c.Helpers.getMaxLength(this.maxLength,e?e.maxTextLength:-1)},Object.defineProperty(t.prototype,"placeholder",{get:function(){return this.editor.placeholder},set:function(e){this.editor.placeholder=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locPlaceholder",{get:function(){return this.editor.locPlaceholder},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"placeHolder",{get:function(){return this.placeholder},set:function(e){this.placeholder=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locPlaceHolder",{get:function(){return this.locPlaceholder},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"requiredErrorText",{get:function(){return this.editor.requiredErrorText},set:function(e){this.editor.requiredErrorText=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locRequiredErrorText",{get:function(){return this.editor.locRequiredErrorText},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"size",{get:function(){return this.editor.size},set:function(e){this.editor.size=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"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,"value",{get:function(){return this.data?this.data.getMultipleTextValue(this.name):null},set:function(e){null!=this.data&&this.data.setMultipleTextValue(this.name,e)},enumerable:!1,configurable:!0}),t.prototype.isEmpty=function(){return this.editor.isEmpty()},t.prototype.onValueChanged=function(e){this.valueChangedCallback&&this.valueChangedCallback(e)},t.prototype.getSurveyData=function(){return this},t.prototype.getSurvey=function(){return this.data?this.data.getSurvey():null},t.prototype.getTextProcessor=function(){return this.data?this.data.getTextProcessor():null},t.prototype.getValue=function(e){return this.data?this.data.getMultipleTextValue(e):null},t.prototype.setValue=function(e,t){this.data&&this.data.setMultipleTextValue(e,t)},t.prototype.getVariable=function(e){},t.prototype.setVariable=function(e,t){},t.prototype.getComment=function(e){return null},t.prototype.setComment=function(e,t){},t.prototype.getAllValues=function(){return this.data?this.data.getAllValues():this.value},t.prototype.getFilteredValues=function(){return this.getAllValues()},t.prototype.getFilteredProperties=function(){return{survey:this.getSurvey()}},t.prototype.findQuestionByName=function(e){var t=this.getSurvey();return t?t.getQuestionByName(e):null},t.prototype.getValidatorTitle=function(){return this.title},Object.defineProperty(t.prototype,"validatedValue",{get:function(){return this.value},set:function(e){this.value=e},enumerable:!1,configurable:!0}),t.prototype.getDataFilteredValues=function(){return this.getFilteredValues()},t.prototype.getDataFilteredProperties=function(){return this.getFilteredProperties()},t}(o.Base),g=function(e){function t(t){var n=e.call(this,t)||this;return n.isMultipleItemValueChanging=!1,n.createNewArray("items",(function(e){e.setData(n),n.survey&&n.survey.multipleTextItemAdded(n,e)})),n.registerPropertyChangedHandlers(["items","colCount"],(function(){n.fireCallback(n.colCountChangedCallback)})),n.registerPropertyChangedHandlers(["itemSize"],(function(){n.updateItemsSize()})),n}return h(t,e),t.addDefaultItems=function(e){for(var t=u.QuestionFactory.DefaultMutlipleTextItems,n=0;n<t.length;n++)e.addItem(t[n])},t.prototype.getType=function(){return"multipletext"},t.prototype.setSurveyImpl=function(t,n){e.prototype.setSurveyImpl.call(this,t,n);for(var r=0;r<this.items.length;r++)this.items[r].setData(this)},Object.defineProperty(t.prototype,"isAllowTitleLeft",{get:function(){return!1},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hasSingleInput",{get:function(){return!1},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"id",{get:function(){return this.getPropertyValue("id")},set:function(e){var t;null===(t=this.items)||void 0===t||t.map((function(t,n){return t.editor.id=e+"_"+n})),this.setPropertyValue("id",e)},enumerable:!1,configurable:!0}),t.prototype.onSurveyLoad=function(){this.editorsOnSurveyLoad(),e.prototype.onSurveyLoad.call(this),this.fireCallback(this.colCountChangedCallback)},t.prototype.setQuestionValue=function(t,n){void 0===n&&(n=!0),e.prototype.setQuestionValue.call(this,t,n),this.performForEveryEditor((function(e){e.editor.updateValueFromSurvey(e.value)})),this.updateIsAnswered()},t.prototype.onSurveyValueChanged=function(t){e.prototype.onSurveyValueChanged.call(this,t),this.performForEveryEditor((function(e){e.editor.onSurveyValueChanged(e.value)}))},t.prototype.updateItemsSize=function(){this.performForEveryEditor((function(e){e.editor.updateInputSize()}))},t.prototype.editorsOnSurveyLoad=function(){this.performForEveryEditor((function(e){e.editor.onSurveyLoad()}))},t.prototype.performForEveryEditor=function(e){for(var t=0;t<this.items.length;t++){var n=this.items[t];n.editor&&e(n)}},Object.defineProperty(t.prototype,"items",{get:function(){return this.getPropertyValue("items")},set:function(e){this.setPropertyValue("items",e)},enumerable:!1,configurable:!0}),t.prototype.addItem=function(e,t){void 0===t&&(t=null);var n=this.createTextItem(e,t);return this.items.push(n),n},t.prototype.getItemByName=function(e){for(var t=0;t<this.items.length;t++)if(this.items[t].name==e)return this.items[t];return null},t.prototype.addConditionObjectsByContext=function(e,t){for(var n=0;n<this.items.length;n++){var r=this.items[n];e.push({name:this.getValueName()+"."+r.name,text:this.processedTitle+"."+r.fullTitle,question:this})}},t.prototype.collectNestedQuestionsCore=function(e,t){this.items.forEach((function(n){return n.editor.collectNestedQuestions(e,t)}))},t.prototype.getConditionJson=function(t,n){if(void 0===t&&(t=null),void 0===n&&(n=null),!n)return e.prototype.getConditionJson.call(this);var r=this.getItemByName(n);if(!r)return null;var o=(new l.JsonObject).toJsonObject(r);return o.type="text",o},t.prototype.locStrsChanged=function(){e.prototype.locStrsChanged.call(this);for(var t=0;t<this.items.length;t++)this.items[t].locStrsChanged()},t.prototype.localeChanged=function(){e.prototype.localeChanged.call(this);for(var t=0;t<this.items.length;t++)this.items[t].localeChanged()},t.prototype.isNewValueCorrect=function(e){return c.Helpers.isValueObject(e)},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}),t.prototype.getRows=function(){for(var e=this.colCount,t=this.items,n=[],r=0,o=0;o<t.length;o++)0==r&&n.push([]),n[n.length-1].push(t[o]),++r>=e&&(r=0);return n},t.prototype.onValueChanged=function(){e.prototype.onValueChanged.call(this),this.onItemValueChanged()},t.prototype.createTextItem=function(e,t){return new m(e,t)},t.prototype.onItemValueChanged=function(){if(!this.isMultipleItemValueChanging)for(var e=0;e<this.items.length;e++){var t=null;this.value&&this.items[e].name in this.value&&(t=this.value[this.items[e].name]),this.items[e].onValueChanged(t)}},t.prototype.getIsRunningValidators=function(){if(e.prototype.getIsRunningValidators.call(this))return!0;for(var t=0;t<this.items.length;t++)if(this.items[t].editor.isRunningValidators)return!0;return!1},t.prototype.hasErrors=function(t,n){var r=this;void 0===t&&(t=!0),void 0===n&&(n=null);for(var o=!1,i=0;i<this.items.length;i++)this.items[i].editor.onCompletedAsyncValidators=function(e){r.raiseOnCompletedAsyncValidators()},n&&!0===n.isOnValueChanged&&this.items[i].editor.isEmpty()||(o=this.items[i].editor.hasErrors(t,n)||o);return e.prototype.hasErrors.call(this,t)||o},t.prototype.getAllErrors=function(){for(var t=e.prototype.getAllErrors.call(this),n=0;n<this.items.length;n++){var r=this.items[n].editor.getAllErrors();r&&r.length>0&&(t=t.concat(r))}return t},t.prototype.clearErrors=function(){e.prototype.clearErrors.call(this);for(var t=0;t<this.items.length;t++)this.items[t].editor.clearErrors()},t.prototype.getContainsErrors=function(){var t=e.prototype.getContainsErrors.call(this);if(t)return t;for(var n=this.items,r=0;r<n.length;r++)if(n[r].editor.containsErrors)return!0;return!1},t.prototype.getIsAnswered=function(){if(!e.prototype.getIsAnswered.call(this))return!1;for(var t=0;t<this.items.length;t++){var n=this.items[t].editor;if(n.isVisible&&!n.isAnswered)return!1}return!0},t.prototype.getProgressInfo=function(){for(var e=[],t=0;t<this.items.length;t++)e.push(this.items[t].editor);return i.SurveyElement.getProgressInfoByElements(e,this.isRequired)},t.prototype.getDisplayValueCore=function(e,t){if(!t)return t;for(var n={},r=0;r<this.items.length;r++){var o=this.items[r],i=t[o.name];if(!c.Helpers.isValueEmpty(i)){var s=o.name;e&&o.title&&(s=o.title),n[s]=o.editor.getDisplayValue(e,i)}}return n},t.prototype.getMultipleTextValue=function(e){return this.value?this.value[e]:null},t.prototype.setMultipleTextValue=function(e,t){this.isMultipleItemValueChanging=!0,this.isValueEmpty(t)&&(t=void 0);var n=this.value;n||(n={}),n[e]=t,this.setNewValue(n),this.isMultipleItemValueChanging=!1},t.prototype.getItemDefaultValue=function(e){return this.defaultValue?this.defaultValue[e]:null},t.prototype.getTextProcessor=function(){return this.textProcessor},t.prototype.getAllValues=function(){return this.data?this.data.getAllValues():null},t.prototype.getIsRequiredText=function(){return this.survey?this.survey.requiredText:""},t.prototype.addElement=function(e,t){},t.prototype.removeElement=function(e){return!1},t.prototype.getQuestionTitleLocation=function(){return"left"},t.prototype.getQuestionStartIndex=function(){return this.getStartIndex()},t.prototype.getChildrenLayoutType=function(){return"row"},t.prototype.elementWidthChanged=function(e){},Object.defineProperty(t.prototype,"elements",{get:function(){return[]},enumerable:!1,configurable:!0}),t.prototype.indexOf=function(e){return-1},t.prototype.ensureRowsVisibility=function(){},t.prototype.validateContainerOnly=function(){},t.prototype.getItemLabelCss=function(e){return(new p.CssClassBuilder).append(this.cssClasses.itemLabel).append(this.cssClasses.itemLabelOnError,e.editor.errors.length>0).toString()},t.prototype.getItemCss=function(){return(new p.CssClassBuilder).append(this.cssClasses.item).toString()},t.prototype.getItemTitleCss=function(){return(new p.CssClassBuilder).append(this.cssClasses.itemTitle).toString()},t.prototype.getIsTooltipErrorInsideSupported=function(){return!0},t}(s.Question);l.Serializer.addClass("multipletextitem",[{name:"!name",isUnique:!0},"isRequired:boolean",{name:"placeholder",alternativeName:"placeHolder",serializationProperty:"locPlaceholder"},{name:"inputType",default:"text",choices:d.settings.questions.inputTypes},{name:"title",serializationProperty:"locTitle"},{name:"maxLength:number",default:-1},{name:"size:number",minValue:0},{name:"requiredErrorText:text",serializationProperty:"locRequiredErrorText"},{name:"validators:validators",baseClassName:"surveyvalidator",classNamePart:"validator"}],(function(){return new m("")})),l.Serializer.addClass("multipletext",[{name:"!items:textitems",className:"multipletextitem"},{name:"itemSize:number",minValue:0},{name:"colCount:number",default:1,choices:[1,2,3,4,5]}],(function(){return new g("")}),"question"),u.QuestionFactory.Instance.registerQuestion("multipletext",(function(e){var t=new g(e);return g.addDefaultItems(t),t}))},"./src/question_paneldynamic.ts":function(e,t,n){"use strict";n.r(t),n.d(t,"QuestionPanelDynamicItem",(function(){return C})),n.d(t,"QuestionPanelDynamicTemplateSurveyImpl",(function(){return w})),n.d(t,"QuestionPanelDynamicModel",(function(){return x}));var r,o=n("./src/helpers.ts"),i=n("./src/survey-element.ts"),s=n("./src/localizablestring.ts"),a=n("./src/textPreProcessor.ts"),l=n("./src/question.ts"),u=n("./src/jsonobject.ts"),c=n("./src/questionfactory.ts"),p=n("./src/error.ts"),d=n("./src/settings.ts"),h=n("./src/utils/utils.ts"),f=n("./src/utils/cssClassBuilder.ts"),m=n("./src/actions/action.ts"),g=n("./src/base.ts"),y=n("./src/actions/adaptive-container.ts"),v=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),b=function(e){function t(t,n,r){var o=e.call(this,r)||this;return o.data=t,o.panelItem=n,o.variableName=r,o.sharedQuestions={},o}return v(t,e),Object.defineProperty(t.prototype,"survey",{get:function(){return this.panelItem.getSurvey()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"panel",{get:function(){return this.panelItem.panel},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"panelIndex",{get:function(){return this.data?this.data.getItemIndex(this.panelItem):-1},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"visiblePanelIndex",{get:function(){return this.data?this.data.getVisibleItemIndex(this.panelItem):-1},enumerable:!1,configurable:!0}),t.prototype.getValues=function(){return this.panelItem.getAllValues()},t.prototype.getQuestionByName=function(t){var n=e.prototype.getQuestionByName.call(this,t);if(n)return n;var r=this.panelIndex,o=(n=r>-1?this.data.getSharedQuestionFromArray(t,r):void 0)?n.name:t;return this.sharedQuestions[o]=t,n},t.prototype.getQuestionDisplayText=function(t){var n=this.sharedQuestions[t.name];if(!n)return e.prototype.getQuestionDisplayText.call(this,t);var r=this.panelItem.getValue(n);return t.getDisplayValue(!0,r)},t.prototype.onCustomProcessText=function(e){var n;if(e.name==C.IndexVariableName&&(n=this.panelIndex)>-1)return e.isExists=!0,e.value=n+1,!0;if(e.name==C.VisibleIndexVariableName&&(n=this.visiblePanelIndex)>-1)return e.isExists=!0,e.value=n+1,!0;if(0==e.name.toLowerCase().indexOf(C.ParentItemVariableName+".")){var r=this.data;if(r&&r.parentQuestion&&r.parent&&r.parent.data){var o=new t(r.parentQuestion,r.parent.data,C.ItemVariableName),i=C.ItemVariableName+e.name.substring(C.ParentItemVariableName.length),s=o.processValue(i,e.returnDisplayValue);e.isExists=s.isExists,e.value=s.value}return!0}return!1},t}(a.QuestionTextProcessor),C=function(){function e(t,n){this.data=t,this.panelValue=n,this.textPreProcessor=new b(t,this,e.ItemVariableName),this.setSurveyImpl()}return Object.defineProperty(e.prototype,"panel",{get:function(){return this.panelValue},enumerable:!1,configurable:!0}),e.prototype.setSurveyImpl=function(){this.panel.setSurveyImpl(this)},e.prototype.getValue=function(e){return this.getAllValues()[e]},e.prototype.setValue=function(e,t){var n=this.data.getPanelItemData(this),r=n?n[e]:void 0;if(!o.Helpers.isTwoValueEquals(t,r,!1,!0,!1)){this.data.setPanelItemData(this,e,o.Helpers.getUnbindValue(t));for(var i=this.panel.questions,s=0;s<i.length;s++)i[s].getValueName()!==e&&i[s].checkBindings(e,t)}},e.prototype.getVariable=function(e){},e.prototype.setVariable=function(e,t){},e.prototype.getComment=function(e){return this.getValue(e+d.settings.commentSuffix)||""},e.prototype.setComment=function(e,t,n){this.setValue(e+d.settings.commentSuffix,t)},e.prototype.findQuestionByName=function(t){if(t){var n=e.ItemVariableName+".";if(0===t.indexOf(n))return this.panel.getQuestionByName(t.substring(n.length));var r=this.getSurvey();return r?r.getQuestionByName(t):null}},e.prototype.getAllValues=function(){return this.data.getPanelItemData(this)},e.prototype.getFilteredValues=function(){var t={},n=this.data&&this.data.getRootData()?this.data.getRootData().getFilteredValues():{};for(var r in n)t[r]=n[r];if(t[e.ItemVariableName]=this.getAllValues(),this.data){var o=e.IndexVariableName,i=e.VisibleIndexVariableName;delete t[o],delete t[i],t[o.toLowerCase()]=this.data.getItemIndex(this),t[i.toLowerCase()]=this.data.getVisibleItemIndex(this);var s=this.data;s&&s.parentQuestion&&s.parent&&(t[e.ParentItemVariableName]=s.parent.getValue())}return t},e.prototype.getFilteredProperties=function(){return this.data&&this.data.getRootData()?this.data.getRootData().getFilteredProperties():{survey:this.getSurvey()}},e.prototype.getSurveyData=function(){return this},e.prototype.getSurvey=function(){return this.data?this.data.getSurvey():null},e.prototype.getTextProcessor=function(){return this.textPreProcessor},e.ItemVariableName="panel",e.ParentItemVariableName="parentpanel",e.IndexVariableName="panelIndex",e.VisibleIndexVariableName="visiblePanelIndex",e}(),w=function(){function e(e){this.data=e}return e.prototype.getSurveyData=function(){return null},e.prototype.getSurvey=function(){return this.data.getSurvey()},e.prototype.getTextProcessor=function(){return null},e}(),x=function(e){function t(t){var n=e.call(this,t)||this;return n.isAddingNewPanels=!1,n.onReadyChangedCallback=function(){n.recalculateIsReadyValue()},n.isSetPanelItemData={},n.createNewArray("panels",(function(e){n.onPanelAdded(e)}),(function(e){n.onPanelRemoved(e)})),n.createNewArray("visiblePanels"),n.templateValue=n.createAndSetupNewPanelObject(),n.template.renderWidth="100%",n.template.selectedElementInDesign=n,n.template.addElementCallback=function(e){n.addOnPropertyChangedCallback(e),n.rebuildPanels()},n.template.removeElementCallback=function(){n.rebuildPanels()},n.createLocalizableString("confirmDeleteText",n,!1,"confirmDelete"),n.createLocalizableString("keyDuplicationError",n,!1,!0),n.createLocalizableString("panelAddText",n,!1,"addPanel"),n.createLocalizableString("panelRemoveText",n,!1,"removePanel"),n.createLocalizableString("panelPrevText",n,!1,"pagePrevText"),n.createLocalizableString("panelNextText",n,!1,"pageNextText"),n.createLocalizableString("noEntriesText",n,!1,"noEntriesText"),n.createLocalizableString("templateTabTitle",n,!0,"panelDynamicTabTextFormat"),n.registerPropertyChangedHandlers(["panelsState"],(function(){n.setPanelsState()})),n.registerPropertyChangedHandlers(["isMobile"],(function(){n.updateFooterActions()})),n.registerPropertyChangedHandlers(["allowAddPanel"],(function(){n.updateNoEntriesTextDefaultLoc()})),n}return v(t,e),Object.defineProperty(t.prototype,"hasSingleInput",{get:function(){return!1},enumerable:!1,configurable:!0}),t.prototype.getFirstQuestionToFocus=function(e){for(var t=0;t<this.visiblePanels.length;t++){var n=this.visiblePanels[t].getFirstQuestionToFocus(e);if(n)return n}return null},t.prototype.setSurveyImpl=function(t,n){e.prototype.setSurveyImpl.call(this,t,n),this.setTemplatePanelSurveyImpl(),this.setPanelsSurveyImpl()},t.prototype.assignOnPropertyChangedToTemplate=function(){for(var e=this.template.elements,t=0;t<e.length;t++)this.addOnPropertyChangedCallback(e[t])},t.prototype.addOnPropertyChangedCallback=function(e){var t=this;e.isQuestion&&e.setParentQuestion(this),e.onPropertyChanged.add((function(e,n){t.onTemplateElementPropertyChanged(e,n)})),e.isPanel&&(e.addElementCallback=function(e){t.addOnPropertyChangedCallback(e)})},t.prototype.onTemplateElementPropertyChanged=function(e,t){if(!this.isLoadingFromJson&&!this.useTemplatePanel&&0!=this.panels.length&&u.Serializer.findProperty(e.getType(),t.name))for(var n=this.panels,r=0;r<n.length;r++){var o=n[r].getQuestionByName(e.name);o&&o[t.name]!==t.newValue&&(o[t.name]=t.newValue)}},Object.defineProperty(t.prototype,"useTemplatePanel",{get:function(){return this.isDesignMode&&!this.isContentElement},enumerable:!1,configurable:!0}),t.prototype.getType=function(){return"paneldynamic"},Object.defineProperty(t.prototype,"isCompositeQuestion",{get:function(){return!0},enumerable:!1,configurable:!0}),t.prototype.clearOnDeletingContainer=function(){this.panels.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,"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.template.visibleIf},set:function(e){this.template.visibleIf=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"items",{get:function(){for(var e=[],t=0;t<this.panels.length;t++)e.push(this.panels[t].data);return e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"panels",{get:function(){return this.getPropertyValue("panels")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"visiblePanels",{get:function(){return this.getPropertyValue("visiblePanels")},enumerable:!1,configurable:!0}),t.prototype.onPanelAdded=function(e){if(this.onPanelRemovedCore(e),e.visible){for(var t=0,n=this.panels,r=0;r<n.length&&n[r]!==e;r++)n[r].visible&&t++;this.visiblePanels.splice(t,0,e),this.addTabFromToolbar(e,t),this.currentPanel||(this.currentPanel=e)}},t.prototype.onPanelRemoved=function(e){var t=this.onPanelRemovedCore(e);if(this.currentPanel===e){var n=this.visiblePanels;t>=n.length&&(t=n.length-1),this.currentPanel=t>=0?n[t]:null}},t.prototype.onPanelRemovedCore=function(e){var t=this.visiblePanels,n=t.indexOf(e);return n>-1&&(t.splice(n,1),this.removeTabFromToolbar(e)),n},Object.defineProperty(t.prototype,"currentIndex",{get:function(){return this.isRenderModeList?-1:this.useTemplatePanel?0:this.visiblePanels.indexOf(this.currentPanel)},set:function(e){e<0||this.visiblePanelCount<1||(e>=this.visiblePanelCount&&(e=this.visiblePanelCount-1),this.currentPanel=this.visiblePanels[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.visiblePanels[0],this.currentPanel=e),e},set:function(e){this.isRenderModeList||this.useTemplatePanel||e&&this.visiblePanels.indexOf(e)<0||e===this.getPropertyValue("currentPanel")||(this.setPropertyValue("currentPanel",e),this.updateFooterActions(),this.updateTabToolbarItemsPressedState(),this.fireCallback(this.currentIndexChangedCallback))},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,"keyName",{get:function(){return this.getPropertyValue("keyName","")},set:function(e){this.setPropertyValue("keyName",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"confirmDeleteText",{get:function(){return this.getLocalizableStringText("confirmDeleteText")},set:function(e){this.setLocalizableStringText("confirmDeleteText",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locConfirmDeleteText",{get:function(){return this.getLocalizableString("confirmDeleteText")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"keyDuplicationError",{get:function(){return this.getLocalizableStringText("keyDuplicationError")},set:function(e){this.setLocalizableStringText("keyDuplicationError",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locKeyDuplicationError",{get:function(){return this.getLocalizableString("keyDuplicationError")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"panelPrevText",{get:function(){return this.getLocalizableStringText("panelPrevText")},set:function(e){this.setLocalizableStringText("panelPrevText",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locPanelPrevText",{get:function(){return this.getLocalizableString("panelPrevText")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"panelNextText",{get:function(){return this.getLocalizableStringText("panelNextText")},set:function(e){this.setLocalizableStringText("panelNextText",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locPanelNextText",{get:function(){return this.getLocalizableString("panelNextText")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"panelAddText",{get:function(){return this.getLocalizableStringText("panelAddText")},set:function(e){this.setLocalizableStringText("panelAddText",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locPanelAddText",{get:function(){return this.getLocalizableString("panelAddText")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"panelRemoveText",{get:function(){return this.getLocalizableStringText("panelRemoveText")},set:function(e){this.setLocalizableStringText("panelRemoveText",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locPanelRemoveText",{get:function(){return this.getLocalizableString("panelRemoveText")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isProgressTopShowing",{get:function(){return"progressTop"===this.renderMode||"progressTopBottom"===this.renderMode},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isProgressBottomShowing",{get:function(){return"progressBottom"===this.renderMode||"progressTopBottom"===this.renderMode},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isPrevButtonVisible",{get:function(){return this.currentIndex>0},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isPrevButtonShowing",{get:function(){return this.isPrevButtonVisible},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isNextButtonVisible",{get:function(){return this.currentIndex>=0&&this.currentIndex<this.visiblePanelCount-1},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isNextButtonShowing",{get:function(){return this.isNextButtonVisible},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isRangeShowing",{get:function(){return this.showRangeInProgress&&this.currentIndex>=0&&this.visiblePanelCount>1},enumerable:!1,configurable:!0}),t.prototype.getElementsInDesign=function(e){return void 0===e&&(e=!1),e?[this.template]:this.templateElements},t.prototype.prepareValueForPanelCreating=function(){this.addingNewPanelsValue=this.value,this.isAddingNewPanels=!0,this.isNewPanelsValueChanged=!1},t.prototype.setValueAfterPanelsCreating=function(){this.isAddingNewPanels=!1,this.isNewPanelsValueChanged&&(this.isValueChangingInternally=!0,this.value=this.addingNewPanelsValue,this.isValueChangingInternally=!1)},t.prototype.getValueCore=function(){return this.isAddingNewPanels?this.addingNewPanelsValue:e.prototype.getValueCore.call(this)},t.prototype.setValueCore=function(t){this.isAddingNewPanels?(this.isNewPanelsValueChanged=!0,this.addingNewPanelsValue=t):e.prototype.setValueCore.call(this,t)},t.prototype.setIsMobile=function(e){(this.panels||[]).forEach((function(t){return t.elements.forEach((function(t){t instanceof l.Question&&(t.isMobile=e)}))}))},Object.defineProperty(t.prototype,"panelCount",{get:function(){return this.isLoadingFromJson||this.useTemplatePanel?this.getPropertyValue("panelCount"):this.panels.length},set:function(e){if(!(e<0))if(this.isLoadingFromJson||this.useTemplatePanel)this.setPropertyValue("panelCount",e);else if(e!=this.panels.length&&!this.useTemplatePanel){this.updateBindings("panelCount",e),this.prepareValueForPanelCreating();for(var t=this.panelCount;t<e;t++){var n=this.createNewPanel();this.panels.push(n),"list"==this.renderMode&&"default"!=this.panelsState&&("expand"===this.panelsState?n.expand():n.title&&n.collapse())}e<this.panelCount&&this.panels.splice(e,this.panelCount-e),this.setValueAfterPanelsCreating(),this.setValueBasedOnPanelCount(),this.reRunCondition(),this.updateFooterActions(),this.fireCallback(this.panelCountChangedCallback)}},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 w(this))},t.prototype.setPanelsSurveyImpl=function(){for(var e=0;e<this.panels.length;e++){var t=this.panels[e];t!=this.template&&t.setSurveyImpl(t.data)}},t.prototype.setPanelsState=function(){if(!this.useTemplatePanel&&"list"==this.renderMode&&this.templateTitle)for(var e=0;e<this.panels.length;e++){var t=this.panelsState;"firstExpanded"===t&&(t=0===e?"expanded":"collapsed"),this.panels[e].state=t}},t.prototype.setValueBasedOnPanelCount=function(){var e=this.value;if(e&&Array.isArray(e)||(e=[]),e.length!=this.panelCount){for(var t=e.length;t<this.panelCount;t++)e.push({});e.length>this.panelCount&&e.splice(this.panelCount,e.length-this.panelCount),this.isValueChangingInternally=!0,this.value=e,this.isValueChangingInternally=!1}},Object.defineProperty(t.prototype,"minPanelCount",{get:function(){return this.getPropertyValue("minPanelCount")},set:function(e){e<0&&(e=0),e!=this.minPanelCount&&(this.setPropertyValue("minPanelCount",e),e>this.maxPanelCount&&(this.maxPanelCount=e),this.panelCount<e&&(this.panelCount=e))},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"maxPanelCount",{get:function(){return this.getPropertyValue("maxPanelCount")},set:function(e){e<=0||(e>d.settings.panel.maxPanelCount&&(e=d.settings.panel.maxPanelCount),e!=this.maxPanelCount&&(this.setPropertyValue("maxPanelCount",e),e<this.minPanelCount&&(this.minPanelCount=e),this.panelCount>e&&(this.panelCount=e)))},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"allowAddPanel",{get:function(){return this.getPropertyValue("allowAddPanel")},set:function(e){this.setPropertyValue("allowAddPanel",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"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,"showQuestionNumbers",{get:function(){return this.getPropertyValue("showQuestionNumbers")},set:function(e){this.setPropertyValue("showQuestionNumbers",e),!this.isLoadingFromJson&&this.survey&&this.survey.questionVisibilityChanged(this,this.visible)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"panelRemoveButtonLocation",{get:function(){return this.getPropertyValue("panelRemoveButtonLocation")},set:function(e){this.setPropertyValue("panelRemoveButtonLocation",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"showRangeInProgress",{get:function(){return this.getPropertyValue("showRangeInProgress")},set:function(e){this.setPropertyValue("showRangeInProgress",e),this.updateFooterActions(),this.fireCallback(this.currentIndexChangedCallback)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"renderMode",{get:function(){return this.getPropertyValue("renderMode")},set:function(e){this.setPropertyValue("renderMode",e),this.updateFooterActions(),this.fireCallback(this.renderModeChangedCallback)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"tabAlign",{get:function(){return this.getPropertyValue("tabAlign")},set:function(e){this.setPropertyValue("tabAlign",e),this.isRenderModeTab&&(this.additionalTitleToolbar.containerCss=this.getAdditionalTitleToolbarCss())},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isRenderModeList",{get:function(){return"list"===this.renderMode},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isRenderModeTab",{get:function(){return"tab"===this.renderMode},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hasTitleOnLeftTop",{get:function(){if(this.isRenderModeTab&&this.visiblePanelCount>0)return!0;if(!this.hasTitle)return!1;var e=this.getTitleLocation();return"left"===e||"top"===e},enumerable:!1,configurable:!0}),t.prototype.setVisibleIndex=function(t){if(!this.isVisible)return 0;for(var n="onSurvey"==this.showQuestionNumbers?t:0,r=0;r<this.visiblePanels.length;r++){var o=this.setPanelVisibleIndex(this.visiblePanels[r],n,"off"!=this.showQuestionNumbers);"onSurvey"==this.showQuestionNumbers&&(n+=o)}return e.prototype.setVisibleIndex.call(this,"onSurvey"!=this.showQuestionNumbers?t:-1),"onSurvey"!=this.showQuestionNumbers?1:n-t},t.prototype.setPanelVisibleIndex=function(e,t,n){return n?e.setVisibleIndex(t):(e.setVisibleIndex(-1),0)},Object.defineProperty(t.prototype,"canAddPanel",{get:function(){return!this.isDesignMode&&!(this.isDefaultV2Theme&&!this.legacyNavigation&&!this.isRenderModeList&&this.currentIndex<this.visiblePanelCount-1)&&this.allowAddPanel&&!this.isReadOnly&&this.panelCount<this.maxPanelCount},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"canRemovePanel",{get:function(){return!this.isDesignMode&&this.allowRemovePanel&&!this.isReadOnly&&this.panelCount>this.minPanelCount},enumerable:!1,configurable:!0}),t.prototype.rebuildPanels=function(){var e;if(!this.isLoadingFromJson){this.prepareValueForPanelCreating();var t=[];if(this.useTemplatePanel)new C(this,this.template),t.push(this.template);else for(var n=0;n<this.panelCount;n++)this.createNewPanel(),t.push(this.createNewPanel());(e=this.panels).splice.apply(e,function(e,t){for(var n=0,r=t.length,o=e.length;n<r;n++,o++)e[o]=t[n];return e}([0,this.panels.length],t)),this.setValueAfterPanelsCreating(),this.setPanelsState(),this.reRunCondition(),this.updateFooterActions(),this.fireCallback(this.panelCountChangedCallback),this.updateTabToolbar()}},Object.defineProperty(t.prototype,"defaultPanelValue",{get:function(){return this.getPropertyValue("defaultPanelValue")},set:function(e){this.setPropertyValue("defaultPanelValue",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"defaultValueFromLastPanel",{get:function(){return this.getPropertyValue("defaultValueFromLastPanel")},set:function(e){this.setPropertyValue("defaultValueFromLastPanel",e)},enumerable:!1,configurable:!0}),t.prototype.isDefaultValueEmpty=function(){return e.prototype.isDefaultValueEmpty.call(this)&&this.isValueEmpty(this.defaultPanelValue)},t.prototype.setDefaultValue=function(){if(!this.isValueEmpty(this.defaultPanelValue)&&this.isValueEmpty(this.defaultValue)){if(this.isEmpty()&&0!=this.panelCount){for(var t=[],n=0;n<this.panelCount;n++)t.push(this.defaultPanelValue);this.value=t}}else e.prototype.setDefaultValue.call(this)},Object.defineProperty(t.prototype,"isValueArray",{get:function(){return!0},enumerable:!1,configurable:!0}),t.prototype.isEmpty=function(){var e=this.value;if(!e||!Array.isArray(e))return!0;for(var t=0;t<e.length;t++)if(!this.isRowEmpty(e[t]))return!1;return!0},t.prototype.getProgressInfo=function(){return i.SurveyElement.getProgressInfoByElements(this.visiblePanels,this.isRequired)},t.prototype.isRowEmpty=function(e){for(var t in e)if(e.hasOwnProperty(t))return!1;return!0},t.prototype.addPanelUI=function(){if(!this.canAddPanel)return null;if(!this.canLeaveCurrentPanel())return null;var e=this.addPanel();return"list"===this.renderMode&&"default"!==this.panelsState&&e.expand(),e},t.prototype.addPanel=function(){this.panelCount++,this.isRenderModeList||(this.currentIndex=this.panelCount-1);var e=this.value,t=!1;return this.isValueEmpty(this.defaultPanelValue)||e&&Array.isArray(e)&&e.length==this.panelCount&&(t=!0,this.copyValue(e[e.length-1],this.defaultPanelValue)),this.defaultValueFromLastPanel&&e&&Array.isArray(e)&&e.length>1&&e.length==this.panelCount&&(t=!0,this.copyValue(e[e.length-1],e[e.length-2])),t&&(this.value=e),this.survey&&this.survey.dynamicPanelAdded(this),this.panels[this.panelCount-1]},t.prototype.canLeaveCurrentPanel=function(){return!("list"!==this.renderMode&&this.currentPanel&&this.currentPanel.hasErrors(!0,!0))},t.prototype.copyValue=function(e,t){for(var n in t)e[n]=t[n]},t.prototype.removePanelUI=function(e){this.canRemovePanel&&(this.confirmDelete&&!Object(h.confirmAction)(this.confirmDeleteText)||this.removePanel(e))},t.prototype.goToNextPanel=function(){return!(this.currentIndex<0||!this.canLeaveCurrentPanel()||(this.currentIndex++,0))},t.prototype.goToPrevPanel=function(){this.currentIndex<0||this.currentIndex--},t.prototype.removePanel=function(e){var t=this.getVisualPanelIndex(e);if(!(t<0||t>=this.visiblePanelCount)){var n=this.visiblePanels[t],r=this.panels.indexOf(n);r<0||this.survey&&!this.survey.dynamicPanelRemoving(this,r,n)||(this.panels.splice(r,1),this.updateBindings("panelCount",this.panelCount),!(e=this.value)||!Array.isArray(e)||r>=e.length||(this.isValueChangingInternally=!0,e.splice(r,1),this.value=e,this.updateFooterActions(),this.fireCallback(this.panelCountChangedCallback),this.survey&&this.survey.dynamicPanelRemoved(this,r,n),this.isValueChangingInternally=!1))}},t.prototype.getVisualPanelIndex=function(e){if(o.Helpers.isNumber(e))return e;for(var t=this.visiblePanels,n=0;n<t.length;n++)if(t[n]===e||t[n].data===e)return n;return-1},t.prototype.getPanelIndexById=function(e){for(var t=0;t<this.panels.length;t++)if(this.panels[t].id===e)return t;return-1},t.prototype.locStrsChanged=function(){e.prototype.locStrsChanged.call(this);for(var t=this.panels,n=0;n<t.length;n++)t[n].locStrsChanged();this.additionalTitleToolbar&&this.additionalTitleToolbar.locStrsChanged()},t.prototype.clearIncorrectValues=function(){for(var e=0;e<this.panels.length;e++)this.clearIncorrectValuesInPanel(e)},t.prototype.clearErrors=function(){e.prototype.clearErrors.call(this);for(var t=0;t<this.panels.length;t++)this.panels[t].clearErrors()},t.prototype.getQuestionFromArray=function(e,t){return t>=this.panelCount?null:this.panels[t].getQuestionByName(e)},t.prototype.clearIncorrectValuesInPanel=function(e){var t=this.panels[e];t.clearIncorrectValues();var n=this.value,r=n&&e<n.length?n[e]:null;if(r){var o=!1;for(var i in r)this.getSharedQuestionFromArray(i,e)||t.getQuestionByName(i)||this.iscorrectValueWithPostPrefix(t,i,d.settings.commentSuffix)||this.iscorrectValueWithPostPrefix(t,i,d.settings.matrix.totalsSuffix)||(delete r[i],o=!0);o&&(n[e]=r,this.value=n)}},t.prototype.iscorrectValueWithPostPrefix=function(e,t,n){return t.indexOf(n)===t.length-n.length&&!!e.getQuestionByName(t.substring(0,t.indexOf(n)))},t.prototype.getSharedQuestionFromArray=function(e,t){return this.survey&&this.valueName?this.survey.getQuestionByValueNameFromArray(this.valueName,e,t):null},t.prototype.addConditionObjectsByContext=function(e,t){for(var n=!!t&&(!0===t||this.template.questions.indexOf(t)>-1),r=new Array,o=this.template.questions,i=0;i<o.length;i++)o[i].addConditionObjectsByContext(r,t);for(var s=0;s<d.settings.panel.maxPanelCountInCondition;s++){var a="["+s+"].",l=this.getValueName()+a,u=this.processedTitle+a;for(i=0;i<r.length;i++)e.push({name:l+r[i].name,text:u+r[i].text,question:r[i].question})}if(n)for(l=!0===t?this.getValueName()+".":"",u=!0===t?this.processedTitle+".":"",i=0;i<r.length;i++)if(r[i].question!=t){var c={name:l+"panel."+r[i].name,text:u+"panel."+r[i].text,question:r[i].question};!0===t&&(c.context=this),e.push(c)}},t.prototype.collectNestedQuestionsCore=function(e,t){var n=t?this.visiblePanels:this.panels;Array.isArray(n)&&n.forEach((function(n){n.questions.forEach((function(n){return n.collectNestedQuestions(e,t)}))}))},t.prototype.getConditionJson=function(t,n){if(void 0===t&&(t=null),void 0===n&&(n=null),!n)return e.prototype.getConditionJson.call(this,t,n);var r=n,o=n.indexOf(".");o>-1&&(r=n.substring(0,o),n=n.substring(o+1));var i=this.template.getQuestionByName(r);return i?i.getConditionJson(t,n):null},t.prototype.onReadOnlyChanged=function(){var t=this.isReadOnly;this.template.readOnly=t;for(var n=0;n<this.panels.length;n++)this.panels[n].readOnly=t;this.updateNoEntriesTextDefaultLoc(),this.updateFooterActions(),e.prototype.onReadOnlyChanged.call(this)},t.prototype.updateNoEntriesTextDefaultLoc=function(){var e=this.getLocalizableString("noEntriesText");e&&(e.localizationName=this.isReadOnly||!this.allowAddPanel?"noEntriesReadonlyText":"noEntriesText",e.strChanged())},t.prototype.onSurveyLoad=function(){if(this.template.readOnly=this.isReadOnly,this.template.onSurveyLoad(),this.getPropertyValue("panelCount")>0&&(this.panelCount=this.getPropertyValue("panelCount")),this.useTemplatePanel&&this.rebuildPanels(),this.setPanelsSurveyImpl(),this.setPanelsState(),this.assignOnPropertyChangedToTemplate(),this.survey)for(var t=0;t<this.panelCount;t++)this.survey.dynamicPanelAdded(this);this.recalculateIsReadyValue(),!this.isReadOnly&&this.allowAddPanel||this.updateNoEntriesTextDefaultLoc(),e.prototype.onSurveyLoad.call(this)},t.prototype.onFirstRendering=function(){this.template.onFirstRendering();for(var t=0;t<this.panels.length;t++)this.panels[t].onFirstRendering();e.prototype.onFirstRendering.call(this)},t.prototype.localeChanged=function(){e.prototype.localeChanged.call(this);for(var t=0;t<this.panels.length;t++)this.panels[t].localeChanged()},t.prototype.runCondition=function(t,n){e.prototype.runCondition.call(this,t,n),this.runPanelsCondition(t,n)},t.prototype.reRunCondition=function(){this.data&&this.runCondition(this.getDataFilteredValues(),this.getDataFilteredProperties())},t.prototype.runPanelsCondition=function(e,t){var n={};e&&e instanceof Object&&(n=JSON.parse(JSON.stringify(e))),this.parentQuestion&&this.parent&&(n[C.ParentItemVariableName]=this.parent.getValue());for(var r=0;r<this.panels.length;r++){var i=this.getPanelItemData(this.panels[r].data),s=o.Helpers.createCopy(n);s[C.ItemVariableName.toLowerCase()]=i,s[C.IndexVariableName.toLowerCase()]=r,this.panels[r].runCondition(s,t)}},t.prototype.onAnyValueChanged=function(t){e.prototype.onAnyValueChanged.call(this,t);for(var n=0;n<this.panels.length;n++)this.panels[n].onAnyValueChanged(t),this.panels[n].onAnyValueChanged(C.ItemVariableName)},t.prototype.hasKeysDuplicated=function(e,t){void 0===t&&(t=null);for(var n,r=[],o=0;o<this.panels.length;o++)n=this.isValueDuplicated(this.panels[o],r,t,e)||n;return n},t.prototype.updatePanelsContainsErrors=function(){for(var e=this.changingValueQuestion.parent;e;)e.updateContainsErrors(),e=e.parent;this.updateContainsErrors()},t.prototype.hasErrors=function(t,n){if(void 0===t&&(t=!0),void 0===n&&(n=null),this.isValueChangingInternally)return!1;var r=!1;return this.changingValueQuestion?(r=this.changingValueQuestion.hasErrors(t,n),r=this.hasKeysDuplicated(t,n)||r,this.updatePanelsContainsErrors()):r=this.hasErrorInPanels(t,n),e.prototype.hasErrors.call(this,t,n)||r},t.prototype.getContainsErrors=function(){var t=e.prototype.getContainsErrors.call(this);if(t)return t;for(var n=this.panels,r=0;r<n.length;r++)if(n[r].containsErrors)return!0;return!1},t.prototype.getIsAnswered=function(){if(!e.prototype.getIsAnswered.call(this))return!1;for(var t=this.visiblePanels,n=0;n<t.length;n++){var r=[];t[n].addQuestionsToList(r,!0);for(var o=0;o<r.length;o++)if(!r[o].isAnswered)return!1}return!0},t.prototype.clearValueOnHidding=function(t){if(!t){if(this.survey&&"none"===this.survey.getQuestionClearIfInvisible("onHidden"))return;this.clearValueInPanelsIfInvisible("onHiddenContainer")}e.prototype.clearValueOnHidding.call(this,t)},t.prototype.clearValueIfInvisible=function(t){void 0===t&&(t="onHidden");var n="onHidden"===t?"onHiddenContainer":t;this.clearValueInPanelsIfInvisible(n),e.prototype.clearValueIfInvisible.call(this,t)},t.prototype.clearValueInPanelsIfInvisible=function(e){for(var t=0;t<this.panels.length;t++){var n=this.panels[t].questions;this.isSetPanelItemData={};for(var r=0;r<n.length;r++){var o=n[r];o.clearValueIfInvisible(e),this.isSetPanelItemData[o.getValueName()]=this.maxCheckCount+1}}this.isSetPanelItemData={}},t.prototype.getIsRunningValidators=function(){if(e.prototype.getIsRunningValidators.call(this))return!0;for(var t=0;t<this.panels.length;t++)for(var n=this.panels[t].questions,r=0;r<n.length;r++)if(n[r].isRunningValidators)return!0;return!1},t.prototype.getAllErrors=function(){for(var t=e.prototype.getAllErrors.call(this),n=this.visiblePanels,r=0;r<n.length;r++)for(var o=n[r].questions,i=0;i<o.length;i++){var s=o[i].getAllErrors();s&&s.length>0&&(t=t.concat(s))}return t},t.prototype.getDisplayValueCore=function(e,t){var n=this.getUnbindValue(t);if(!n||!Array.isArray(n))return n;for(var r=0;r<this.panels.length&&r<n.length;r++){var o=n[r];o&&(n[r]=this.getPanelDisplayValue(r,o,e))}return n},t.prototype.getPanelDisplayValue=function(e,t,n){if(!t)return t;for(var r=this.panels[e],o=Object.keys(t),i=0;i<o.length;i++){var s=o[i],a=r.getQuestionByValueName(s);if(a||(a=this.getSharedQuestionFromArray(s,e)),a){var l=a.getDisplayValue(n,t[s]);t[s]=l,n&&a.title&&a.title!==s&&(t[a.title]=l,delete t[s])}}return t},t.prototype.hasErrorInPanels=function(e,t){for(var n=!1,r=this.visiblePanels,o=[],i=0;i<r.length;i++)this.setOnCompleteAsyncInPanel(r[i]);for(i=0;i<r.length;i++){var s=r[i].hasErrors(e,!!t&&t.focuseOnFirstError,t);s=this.isValueDuplicated(r[i],o,t,e)||s,this.isRenderModeList||!s||n||(this.currentIndex=i),n=s||n}return n},t.prototype.setOnCompleteAsyncInPanel=function(e){for(var t=this,n=e.questions,r=0;r<n.length;r++)n[r].onCompletedAsyncValidators=function(e){t.raiseOnCompletedAsyncValidators()}},t.prototype.isValueDuplicated=function(e,t,n,r){if(!this.keyName)return!1;var o=e.getQuestionByValueName(this.keyName);if(!o||o.isEmpty())return!1;var i=o.value;this.changingValueQuestion&&o!=this.changingValueQuestion&&o.hasErrors(r,n);for(var s=0;s<t.length;s++)if(i==t[s])return r&&o.addError(new p.KeyDuplicationError(this.keyDuplicationError,this)),n&&!n.firstErrorQuestion&&(n.firstErrorQuestion=o),!0;return t.push(i),!1},t.prototype.getPanelActions=function(e){var t=this,n=e.footerActions;return"right"!==this.panelRemoveButtonLocation&&n.push(new m.Action({id:"remove-panel-"+e.id,component:"sv-paneldynamic-remove-btn",visible:new g.ComputedUpdater((function(){return[t.canRemovePanel,"collapsed"!==e.state,"right"!==t.panelRemoveButtonLocation].every((function(e){return!0===e}))})),data:{question:this,panel:e}})),this.survey&&(n=this.survey.getUpdatedPanelFooterActions(e,n,this)),n},t.prototype.createNewPanel=function(){var e=this,t=this.createAndSetupNewPanelObject(),n=this.template.toJSON();(new u.JsonObject).toObject(n,t),t.renderWidth="100%",t.updateCustomWidgets(),new C(this,t),t.onFirstRendering();for(var r=t.questions,o=0;o<r.length;o++)r[o].setParentQuestion(this);return t.locStrsChanged(),t.onGetFooterActionsCallback=function(){return e.getPanelActions(t)},t.footerToolbarCss=this.cssClasses.panelFooter,t.registerPropertyChangedHandlers(["visible"],(function(){t.visible?e.onPanelAdded(t):e.onPanelRemoved(t),e.updateFooterActions()})),t},t.prototype.createAndSetupNewPanelObject=function(){var e=this.createNewPanelObject();e.isInteractiveDesignElement=!1,e.setParentQuestion(this);var t=this;return e.onGetQuestionTitleLocation=function(){return t.getTemplateQuestionTitleLocation()},e},t.prototype.getTemplateQuestionTitleLocation=function(){return"default"!=this.templateTitleLocation?this.templateTitleLocation:this.getTitleLocationCore()},t.prototype.createNewPanelObject=function(){return u.Serializer.createClass("panel")},t.prototype.setPanelCountBasedOnValue=function(){if(!this.isValueChangingInternally&&!this.useTemplatePanel){var e=this.value,t=e&&Array.isArray(e)?e.length:0;0==t&&this.getPropertyValue("panelCount")>0&&(t=this.getPropertyValue("panelCount")),this.settingPanelCountBasedOnValue=!0,this.panelCount=t,this.settingPanelCountBasedOnValue=!1}},t.prototype.setQuestionValue=function(t){if(!this.settingPanelCountBasedOnValue){e.prototype.setQuestionValue.call(this,t,!1),this.setPanelCountBasedOnValue();for(var n=0;n<this.panels.length;n++)this.panelUpdateValueFromSurvey(this.panels[n]);this.updateIsAnswered()}},t.prototype.onSurveyValueChanged=function(t){if(void 0!==t||!this.isAllPanelsEmpty()){e.prototype.onSurveyValueChanged.call(this,t);for(var n=0;n<this.panels.length;n++)this.panelSurveyValueChanged(this.panels[n]);void 0===t&&this.setValueBasedOnPanelCount(),this.recalculateIsReadyValue()}},t.prototype.isAllPanelsEmpty=function(){for(var e=0;e<this.panels.length;e++)if(!o.Helpers.isValueEmpty(this.panels[e].getValue()))return!1;return!0},t.prototype.panelUpdateValueFromSurvey=function(e){for(var t=e.questions,n=this.getPanelItemData(e.data),r=0;r<t.length;r++){var o=t[r];o.updateValueFromSurvey(n[o.getValueName()]),o.updateCommentFromSurvey(n[o.getValueName()+d.settings.commentSuffix]),o.initDataUI()}},t.prototype.panelSurveyValueChanged=function(e){for(var t=e.questions,n=this.getPanelItemData(e.data),r=0;r<t.length;r++){var o=t[r];o.onSurveyValueChanged(n[o.getValueName()])}},t.prototype.recalculateIsReadyValue=function(){var e=this,t=!0;this.panels.forEach((function(n){n.questions.forEach((function(n){n.isReady?n.onReadyChanged.remove(e.onReadyChangedCallback):(t=!1,n.onReadyChanged.add(e.onReadyChangedCallback))}))})),this.isReady=t},t.prototype.onSetData=function(){e.prototype.onSetData.call(this),this.useTemplatePanel&&(this.setTemplatePanelSurveyImpl(),this.rebuildPanels())},t.prototype.isNewValueCorrect=function(e){return Array.isArray(e)},t.prototype.getItemIndex=function(e){var t=this.items.indexOf(e);return t>-1?t:this.items.length},t.prototype.getVisibleItemIndex=function(e){for(var t=this.visiblePanels,n=0;n<t.length;n++)if(t[n].data===e)return n;return t.length},t.prototype.getPanelItemData=function(e){var t=this.items,n=t.indexOf(e),r=this.value;return n<0&&Array.isArray(r)&&r.length>t.length&&(n=t.length),n<0||!r||!Array.isArray(r)||r.length<=n?{}:r[n]},t.prototype.setPanelItemData=function(e,t,n){if(!(this.isSetPanelItemData[t]>this.maxCheckCount)){this.isSetPanelItemData[t]||(this.isSetPanelItemData[t]=0),this.isSetPanelItemData[t]++;var r=this.items,o=r.indexOf(e);o<0&&(o=r.length);var i=this.getUnbindValue(this.value);if(i&&Array.isArray(i)||(i=[]),i.length<=o)for(var s=i.length;s<=o;s++)i.push({});if(i[o]||(i[o]={}),this.isValueEmpty(n)?delete i[o][t]:i[o][t]=n,o>=0&&o<this.panels.length&&(this.changingValueQuestion=this.panels[o].getQuestionByValueName(t)),this.value=i,this.changingValueQuestion=null,this.survey){var a={question:this,panel:e.panel,name:t,itemIndex:o,itemValue:i[o],value:n};this.survey.dynamicPanelItemValueChanged(this,a)}this.isSetPanelItemData[t]--,this.isSetPanelItemData[t]-1&&delete this.isSetPanelItemData[t]}},t.prototype.getRootData=function(){return this.data},t.prototype.getPlainData=function(t){void 0===t&&(t={includeEmpty:!0});var n=e.prototype.getPlainData.call(this,t);return n&&(n.isNode=!0,n.data=this.panels.map((function(e,n){var r={name:e.name||n,title:e.title||"Panel",value:e.getValue(),displayValue:e.getValue(),getString:function(e){return"object"==typeof e?JSON.stringify(e):e},isNode:!0,data:e.questions.map((function(e){return e.getPlainData(t)})).filter((function(e){return!!e}))};return(t.calculations||[]).forEach((function(t){r[t.propertyName]=e[t.propertyName]})),r}))),n},t.prototype.updateElementCss=function(t){e.prototype.updateElementCss.call(this,t);for(var n=0;n<this.panels.length;n++)this.panels[n].updateElementCss(t)},Object.defineProperty(t.prototype,"progressText",{get:function(){var e=this.visiblePanelCount;return this.getLocalizationFormatString("panelDynamicProgressText",this.currentIndex+1,e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"progress",{get:function(){return(this.currentIndex+1)/this.visiblePanelCount*100+"%"},enumerable:!1,configurable:!0}),t.prototype.getRootCss=function(){return(new f.CssClassBuilder).append(e.prototype.getRootCss.call(this)).append(this.cssClasses.empty,this.getShowNoEntriesPlaceholder()).toString()},Object.defineProperty(t.prototype,"cssHeader",{get:function(){var e=this.isRenderModeTab&&!!this.panelCount;return(new f.CssClassBuilder).append(this.cssClasses.header).append(this.cssClasses.headerTop,this.hasTitleOnTop||e).append(this.cssClasses.headerTab,e).toString()},enumerable:!1,configurable:!0}),t.prototype.getPanelWrapperCss=function(){return(new f.CssClassBuilder).append(this.cssClasses.panelWrapper).append(this.cssClasses.panelWrapperInRow,"right"===this.panelRemoveButtonLocation).toString()},t.prototype.getPanelRemoveButtonCss=function(){return(new f.CssClassBuilder).append(this.cssClasses.button).append(this.cssClasses.buttonRemove).append(this.cssClasses.buttonRemoveRight,"right"===this.panelRemoveButtonLocation).toString()},t.prototype.getAddButtonCss=function(){return(new f.CssClassBuilder).append(this.cssClasses.button).append(this.cssClasses.buttonAdd).append(this.cssClasses.buttonAdd+"--list-mode","list"===this.renderMode).toString()},t.prototype.getPrevButtonCss=function(){return(new f.CssClassBuilder).append(this.cssClasses.buttonPrev).append(this.cssClasses.buttonPrevDisabled,!this.isPrevButtonVisible).toString()},t.prototype.getNextButtonCss=function(){return(new f.CssClassBuilder).append(this.cssClasses.buttonNext).append(this.cssClasses.buttonNextDisabled,!this.isNextButtonVisible).toString()},Object.defineProperty(t.prototype,"noEntriesText",{get:function(){return this.getLocalizableStringText("noEntriesText")},set:function(e){this.setLocalizableStringText("noEntriesText",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locNoEntriesText",{get:function(){return this.getLocalizableString("noEntriesText")},enumerable:!1,configurable:!0}),t.prototype.getShowNoEntriesPlaceholder=function(){return!!this.cssClasses.noEntriesPlaceholder&&!this.isDesignMode&&0===this.visiblePanelCount},t.prototype.needResponsiveWidth=function(){var e=this.getPanel();return!(!e||!e.needResponsiveWidth())},t.prototype.getAdditionalTitleToolbar=function(){return this.isRenderModeTab?(this.additionalTitleToolbarValue||(this.additionalTitleToolbarValue=new y.AdaptiveActionContainer,this.additionalTitleToolbarValue.dotsItem.popupModel.showPointer=!1,this.additionalTitleToolbarValue.dotsItem.popupModel.verticalPosition="bottom",this.additionalTitleToolbarValue.dotsItem.popupModel.horizontalPosition="center",this.updateElementCss(!1)),this.additionalTitleToolbarValue):null},Object.defineProperty(t.prototype,"footerToolbar",{get:function(){return this.footerToolbarValue||this.initFooterToolbar(),this.footerToolbarValue},enumerable:!1,configurable:!0}),t.prototype.updateFooterActions=function(){this.updateFooterActionsCallback&&this.updateFooterActionsCallback()},t.prototype.initFooterToolbar=function(){var e=this;this.footerToolbarValue=this.createActionContainer();var t=[],n=new m.Action({id:"sv-pd-prev-btn",title:this.panelPrevText,action:function(){e.goToPrevPanel()}}),r=new m.Action({id:"sv-pd-next-btn",title:this.panelNextText,action:function(){e.goToNextPanel()}}),o=new m.Action({id:"sv-pd-add-btn",component:"sv-paneldynamic-add-btn",data:{question:this}}),i=new m.Action({id:"sv-prev-btn-icon",component:"sv-paneldynamic-prev-btn",data:{question:this}}),s=new m.Action({id:"sv-pd-progress-text",component:"sv-paneldynamic-progress-text",data:{question:this}}),a=new m.Action({id:"sv-pd-next-btn-icon",component:"sv-paneldynamic-next-btn",data:{question:this}});t.push(n,r,o,i,s,a),this.updateFooterActionsCallback=function(){var t=e.legacyNavigation,l=e.isRenderModeList,u=e.isMobile,c=!t&&!l;n.visible=c&&e.currentIndex>0,r.visible=c&&e.currentIndex<e.visiblePanelCount-1,r.needSpace=u&&r.visible&&n.visible,o.visible=e.canAddPanel,o.needSpace=e.isMobile&&!r.visible&&n.visible,s.visible=!e.isRenderModeList&&!u,s.needSpace=!t&&!e.isMobile;var p=t&&!l;i.visible=p,a.visible=p,i.needSpace=p},this.updateFooterActionsCallback(),this.footerToolbarValue.setItems(t)},t.prototype.createTabByPanel=function(e){var t=this;if(this.isRenderModeTab){var n=new s.LocalizableString(e,!0);n.sharedData=this.locTemplateTabTitle;var r=this.getPanelIndexById(e.id)===this.currentIndex,o=new m.Action({id:e.id,pressed:r,locTitle:n,disableHide:r,action:function(){t.currentIndex=t.getPanelIndexById(o.id)}});return o}},t.prototype.getAdditionalTitleToolbarCss=function(e){var t=null!=e?e:this.cssClasses;return(new f.CssClassBuilder).append(t.tabsRoot).append(t.tabsLeft,"left"===this.tabAlign).append(t.tabsRight,"right"===this.tabAlign).append(t.tabsCenter,"center"===this.tabAlign).toString()},t.prototype.updateTabToolbarItemsPressedState=function(){if(this.isRenderModeTab&&!(this.currentIndex<0||this.currentIndex>=this.visiblePanelCount)){var e=this.visiblePanels[this.currentIndex];this.additionalTitleToolbar.renderedActions.forEach((function(t){var n=t.id===e.id;t.pressed=n,t.disableHide=n,"popup"===t.mode&&t.disableHide&&t.raiseUpdate()}))}},t.prototype.updateTabToolbar=function(){var e=this;if(this.isRenderModeTab){var t=[];this.visiblePanels.forEach((function(n){return t.push(e.createTabByPanel(n))})),this.additionalTitleToolbar.setItems(t)}},t.prototype.addTabFromToolbar=function(e,t){if(this.isRenderModeTab){var n=this.createTabByPanel(e);this.additionalTitleToolbar.actions.splice(t,0,n),this.updateTabToolbarItemsPressedState()}},t.prototype.removeTabFromToolbar=function(e){if(this.isRenderModeTab){var t=this.additionalTitleToolbar.getActionById(e.id);t&&(this.additionalTitleToolbar.actions.splice(this.additionalTitleToolbar.actions.indexOf(t),1),this.updateTabToolbarItemsPressedState())}},Object.defineProperty(t.prototype,"showLegacyNavigation",{get:function(){return!this.isDefaultV2Theme},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"showNavigation",{get:function(){return this.visiblePanelCount>0&&!this.showLegacyNavigation&&!!this.cssClasses.footer},enumerable:!1,configurable:!0}),t.prototype.showSeparator=function(e){return this.isRenderModeList&&e<this.visiblePanelCount-1},t.prototype.calcCssClasses=function(t){var n=e.prototype.calcCssClasses.call(this,t),r=this.additionalTitleToolbar;return r&&(r.containerCss=this.getAdditionalTitleToolbarCss(n),r.cssClasses=n.tabs,r.dotsItem.cssClasses=n.tabs,r.dotsItem.popupModel.contentComponentData.model.cssClasses=t.list),n},t.maxCheckCount=3,function(e,t,n,r){var o,i=arguments.length,s=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,r);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(i<3?o(s):i>3?o(t,n,s):o(t,n))||s);i>3&&s&&Object.defineProperty(t,n,s)}([Object(u.property)({defaultValue:!1,onSet:function(e,t){t.updateFooterActions()}})],t.prototype,"legacyNavigation",void 0),t}(l.Question);u.Serializer.addClass("paneldynamic",[{name:"showCommentArea:switch",layout:"row",visible:!0,category:"general"},{name:"templateElements",alternativeName:"questions",baseClassName:"question",visible:!1,isLightSerializable:!1},{name:"templateTitle:text",serializationProperty:"locTemplateTitle"},{name:"templateTabTitle",serializationProperty:"locTemplateTabTitle",visibleIf:function(e){return"tab"===e.renderMode}},{name:"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:"panelCount:number",isBindable:!0,default:0,choices:[0,1,2,3,4,5,6,7,8,9,10]},{name:"minPanelCount:number",default:0,minValue:0},{name:"maxPanelCount:number",default:d.settings.panel.maxPanelCount},"defaultPanelValue:panelvalue","defaultValueFromLastPanel:boolean",{name:"panelsState",default:"default",choices:["default","collapsed","expanded","firstExpanded"]},{name:"keyName"},{name:"keyDuplicationError",serializationProperty:"locKeyDuplicationError"},{name:"confirmDelete:boolean"},{name:"confirmDeleteText",serializationProperty:"locConfirmDeleteText"},{name:"panelAddText",serializationProperty:"locPanelAddText"},{name:"panelRemoveText",serializationProperty:"locPanelRemoveText"},{name:"panelPrevText",serializationProperty:"locPanelPrevText"},{name:"panelNextText",serializationProperty:"locPanelNextText"},{name:"showQuestionNumbers",default:"off",choices:["off","onPanel","onSurvey"]},{name:"showRangeInProgress:boolean",default:!0},{name:"renderMode",default:"list",choices:["list","progressTop","progressBottom","progressTopBottom","tab"]},{name:"tabAlign",default:"center",choices:["center","left","right"],visibleIf:function(e){return"tab"===e.renderMode}},{name:"templateTitleLocation",default:"default",choices:["default","top","bottom","left"]},{name:"templateVisibleIf:expression",category:"logic"},{name:"panelRemoveButtonLocation",default:"bottom",choices:["bottom","right"]}],(function(){return new x("")}),"question"),c.QuestionFactory.Instance.registerQuestion("paneldynamic",(function(e){return new x(e)}))},"./src/question_radiogroup.ts":function(e,t,n){"use strict";n.r(t),n.d(t,"QuestionRadiogroupModel",(function(){return c}));var r,o=n("./src/jsonobject.ts"),i=n("./src/questionfactory.ts"),s=n("./src/question_baseselect.ts"),a=n("./src/actions/action.ts"),l=n("./src/base.ts"),u=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),c=function(e){function t(t){return e.call(this,t)||this}return u(t,e),t.prototype.getDefaultItemComponent=function(){return"survey-radiogroup-item"},t.prototype.getType=function(){return"radiogroup"},Object.defineProperty(t.prototype,"ariaRole",{get:function(){return"radiogroup"},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"titleAriaLabel",{get:function(){return null},enumerable:!1,configurable:!0}),t.prototype.getFirstInputElementId=function(){return this.inputId+"_0"},Object.defineProperty(t.prototype,"selectedItem",{get:function(){return this.getSingleSelectedItem()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"showClearButton",{get:function(){return this.getPropertyValue("showClearButton")},set:function(e){this.setPropertyValue("showClearButton",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"canShowClearButton",{get:function(){return this.showClearButton&&!this.isReadOnly},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"clearButtonCaption",{get:function(){return this.getLocalizationString("clearCaption")},enumerable:!1,configurable:!0}),t.prototype.supportGoNextPageAutomatic=function(){return!0===this.isMouseDown},t.prototype.setNewComment=function(t){this.isMouseDown=!0,e.prototype.setNewComment.call(this,t),this.isMouseDown=!1},Object.defineProperty(t.prototype,"showClearButtonInContent",{get:function(){return!this.isDefaultV2Theme&&this.canShowClearButton},enumerable:!1,configurable:!0}),t.prototype.clickItemHandler=function(e){this.renderedValue=e.value},t.prototype.getDefaultTitleActions=function(){var e=this,t=[];if(this.isDefaultV2Theme&&!this.isDesignMode){var n=new a.Action({title:this.clearButtonCaption,id:"sv-clr-btn-"+this.id,action:function(){e.clearValue()},innerCss:this.cssClasses.clearButton,visible:new l.ComputedUpdater((function(){return e.canShowClearButton}))});t.push(n)}return t},t}(s.QuestionCheckboxBase);o.Serializer.addClass("radiogroup",[{name:"showClearButton:boolean",default:!1},{name:"separateSpecialChoices",visible:!0},{name:"itemComponent",visible:!1,default:"survey-radiogroup-item"}],(function(){return new c("")}),"checkboxbase"),i.QuestionFactory.Instance.registerQuestion("radiogroup",(function(e){var t=new c(e);return t.choices=i.QuestionFactory.DefaultChoices,t}))},"./src/question_ranking.ts":function(e,t,n){"use strict";n.r(t),n.d(t,"QuestionRankingModel",(function(){return g}));var r,o=n("./src/dragdrop/ranking-choices.ts"),i=n("./src/dragdrop/ranking-select-to-rank.ts"),s=n("./src/itemvalue.ts"),a=n("./src/jsonobject.ts"),l=n("./src/questionfactory.ts"),u=n("./src/question_checkbox.ts"),c=n("./src/utils/cssClassBuilder.ts"),p=n("./src/utils/devices.ts"),d=n("./src/helpers.ts"),h=n("./src/settings.ts"),f=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),m=function(e,t,n,r){var o,i=arguments.length,s=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,r);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(i<3?o(s):i>3?o(t,n,s):o(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},g=function(e){function t(t){var n=e.call(this,t)||this;return n.domNode=null,n.onVisibleChoicesChanged=function(){if(e.prototype.onVisibleChoicesChanged.call(n),1===n.visibleChoices.length)return n.value=[],n.value.push(n.visibleChoices[0].value),void n.updateRankingChoices();n.isEmpty()||n.selectToRankEnabled||(n.visibleChoices.length>n.value.length&&n.addToValueByVisibleChoices(),n.visibleChoices.length<n.value.length&&n.removeFromValueByVisibleChoices()),n.updateRankingChoices()},n.localeChanged=function(){e.prototype.localeChanged.call(n),n.updateRankingChoices()},n.handlePointerDown=function(e,t,r){var o=e.target;n.isDragStartNodeValid(o)&&n.allowStartDrag&&n.canStartDragDueMaxSelectedChoices(o)&&n.dragDropRankingChoices.startDrag(e,t,n,r)},n.handleKeydown=function(e,t){if(!n.isDesignMode){var r=e.key,o=n.rankingChoices.indexOf(t);if(n.selectToRankEnabled)return void n.handleKeydownSelectToRank(e,t);"ArrowUp"===r&&o&&(n.handleArrowUp(o,t),e.preventDefault()),"ArrowDown"===r&&o!==n.rankingChoices.length-1&&(n.handleArrowDown(o,t),e.preventDefault())}},n.handleArrowUp=function(e,t){var r=n.rankingChoices;r.splice(e,1),r.splice(e-1,0,t),n.setValue(),setTimeout((function(){n.focusItem(e-1)}),1)},n.handleArrowDown=function(e,t){var r=n.rankingChoices;r.splice(e,1),r.splice(e+1,0,t),n.setValue(),setTimeout((function(){n.focusItem(e+1)}),1)},n.focusItem=function(e,t){if(n.selectToRankEnabled&&t){var r="[data-ranking='"+t+"']";n.domNode.querySelectorAll(r+" ."+n.cssClasses.item)[e].focus()}else n.domNode.querySelectorAll("."+n.cssClasses.item)[e].focus()},n.setValue=function(){var e=[];n.rankingChoices.forEach((function(t){e.push(t.value)})),n.value=e},n.createNewArray("rankingChoices"),n.registerFunctionOnPropertyValueChanged("selectToRankEnabled",(function(){n.clearValue(),n.setDragDropRankingChoices(),n.updateRankingChoices()})),n}return f(t,e),t.prototype.getDefaultItemComponent=function(){return""},t.prototype.getType=function(){return"ranking"},t.prototype.getItemTabIndex=function(e){return this.isDesignMode?void 0:0},Object.defineProperty(t.prototype,"rootClass",{get:function(){return(new c.CssClassBuilder).append(this.cssClasses.root).append(this.cssClasses.rootMobileMod,p.IsMobile).append(this.cssClasses.rootDisabled,this.isReadOnly).append(this.cssClasses.rootDesignMode,!!this.isDesignMode).append(this.cssClasses.itemOnError,this.errors.length>0).append(this.cssClasses.rootDragHandleAreaIcon,"icon"===h.settings.rankingDragHandleArea).append(this.cssClasses.rootSelectToRankMod,this.selectToRankEnabled).append(this.cssClasses.rootSelectToRankAlignHorizontal,this.selectToRankEnabled&&"horizontal"===this.selectToRankAreasLayout).append(this.cssClasses.rootSelectToRankAlignVertical,this.selectToRankEnabled&&"vertical"===this.selectToRankAreasLayout).toString()},enumerable:!1,configurable:!0}),t.prototype.getItemClassCore=function(t,n){var r=this.rankingChoices.indexOf(t),o=this.rankingChoices.indexOf(this.currentDropTarget);return(new c.CssClassBuilder).append(e.prototype.getItemClassCore.call(this,t,n)).append(this.cssClasses.itemGhostMod,this.currentDropTarget===t).append("sv-dragdrop-movedown",r===o+1&&"down"===this.dropTargetNodeMove).append("sv-dragdrop-moveup",r===o-1&&"up"===this.dropTargetNodeMove).toString()},t.prototype.getContainerClasses=function(e){var t=!1,n="to"===e,r="from"===e;return n?t=0===this.rankingChoices.length:r&&(t=0===this.unRankingChoices.length),(new c.CssClassBuilder).append(this.cssClasses.container).append(this.cssClasses.containerToMode,n).append(this.cssClasses.containerFromMode,r).append(this.cssClasses.containerEmptyMode,t).toString()},t.prototype.isItemCurrentDropTarget=function(e){return this.dragDropRankingChoices.dropTarget===e},Object.defineProperty(t.prototype,"ghostPositionCssClass",{get:function(){return"top"===this.ghostPosition?this.cssClasses.dragDropGhostPositionTop:"bottom"===this.ghostPosition?this.cssClasses.dragDropGhostPositionBottom:""},enumerable:!1,configurable:!0}),t.prototype.getItemIndexClasses=function(e){var t;return t=this.selectToRankEnabled?-1!==this.unRankingChoices.indexOf(e):this.isEmpty(),(new c.CssClassBuilder).append(this.cssClasses.itemIndex).append(this.cssClasses.itemIndexEmptyMode,t).toString()},t.prototype.getNumberByIndex=function(e){return this.isEmpty()?"":e+1+""},t.prototype.setSurveyImpl=function(t,n){e.prototype.setSurveyImpl.call(this,t,n),this.setDragDropRankingChoices(),this.updateRankingChoices()},t.prototype.isAnswerCorrect=function(){return d.Helpers.isArraysEqual(this.value,this.correctAnswer,!1)},Object.defineProperty(t.prototype,"requireStrictCompare",{get:function(){return!0},enumerable:!1,configurable:!0}),t.prototype.onSurveyValueChanged=function(t){e.prototype.onSurveyValueChanged.call(this,t),this.isLoadingFromJson||this.updateRankingChoices()},t.prototype.addToValueByVisibleChoices=function(){var e=this.value.slice();this.visibleChoices.forEach((function(t){-1===e.indexOf(t.value)&&e.push(t.value)})),this.value=e},t.prototype.removeFromValueByVisibleChoices=function(){for(var e=this.value.slice(),t=this.visibleChoices,n=this.value.length-1;n>=0;n--)s.ItemValue.getItemByValue(t,this.value[n])||e.splice(n,1);this.value=e},Object.defineProperty(t.prototype,"rankingChoices",{get:function(){return this.getPropertyValue("rankingChoices",[])},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"unRankingChoices",{get:function(){var e=[],t=this.rankingChoices;return this.visibleChoices.forEach((function(t){e.push(t)})),t.forEach((function(t){e.forEach((function(n,r){n.value===t.value&&e.splice(r,1)}))})),e},enumerable:!1,configurable:!0}),t.prototype.updateRankingChoices=function(e){var t=this;if(void 0===e&&(e=!1),this.selectToRankEnabled)this.updateRankingChoicesSelectToRankMode(e);else{var n=[];e&&this.setPropertyValue("rankingChoices",[]),this.isEmpty()?this.setPropertyValue("rankingChoices",this.visibleChoices):(this.value.forEach((function(e){t.visibleChoices.forEach((function(t){t.value===e&&n.push(t)}))})),this.setPropertyValue("rankingChoices",n))}},t.prototype.updateRankingChoicesSelectToRankMode=function(e){var t=this;if(this.isEmpty())this.setPropertyValue("rankingChoices",[]);else{var n=[];this.value.forEach((function(e){t.visibleChoices.forEach((function(t){t.value===e&&n.push(t)}))})),this.setPropertyValue("rankingChoices",n)}},t.prototype.endLoadingFromJson=function(){e.prototype.endLoadingFromJson.call(this),this.setDragDropRankingChoices()},t.prototype.setDragDropRankingChoices=function(){this.dragDropRankingChoices=this.createDragDropRankingChoices()},t.prototype.createDragDropRankingChoices=function(){return this.selectToRankEnabled?new i.DragDropRankingSelectToRank(this.survey,null,this.longTap):new o.DragDropRankingChoices(this.survey,null,this.longTap)},t.prototype.isDragStartNodeValid=function(e){return"icon"!==h.settings.rankingDragHandleArea||e.classList.contains(this.cssClasses.itemIconHoverMod)},Object.defineProperty(t.prototype,"allowStartDrag",{get:function(){return!this.isReadOnly&&!this.isDesignMode},enumerable:!1,configurable:!0}),t.prototype.canStartDragDueMaxSelectedChoices=function(e){return!this.selectToRankEnabled||!e.closest("[data-ranking='from-container']")||this.checkMaxSelectedChoicesUnreached()},t.prototype.checkMaxSelectedChoicesUnreached=function(){if(this.maxSelectedChoices<1)return!0;var e=this.value;return(Array.isArray(e)?e.length:0)<this.maxSelectedChoices},t.prototype.afterRenderQuestionElement=function(t){this.domNode=t,e.prototype.afterRenderQuestionElement.call(this,t)},t.prototype.beforeDestroyQuestionElement=function(t){e.prototype.beforeDestroyQuestionElement.call(this,t)},t.prototype.supportSelectAll=function(){return!1},t.prototype.supportOther=function(){return!1},t.prototype.supportNone=function(){return!1},t.prototype.handleKeydownSelectToRank=function(e,t){if(!this.isDesignMode){var n,r,o=this.dragDropRankingChoices,i=e.key,s=this.rankingChoices,a=this.unRankingChoices,l=-1!==s.indexOf(t);if((" "===i||"Enter"===i)&&!l)return n=a.indexOf(t),r=0,o.selectToRank(this,n,r),void this.setValueAfterKeydown(r,"to-container");if((" "===i||"Enter"===i)&&l)return n=s.indexOf(t),o.unselectFromRank(this,n),r=this.unRankingChoices.indexOf(t),void this.setValueAfterKeydown(r,"from-container");if("ArrowUp"===i&&l){if(r=(n=s.indexOf(t))-1,n<0)return;return o.reorderRankedItem(this,n,r),void this.setValueAfterKeydown(r,"to-container")}if("ArrowDown"===i&&l){if((r=(n=s.indexOf(t))+1)>=s.length)return;return o.reorderRankedItem(this,n,r),void this.setValueAfterKeydown(r,"to-container")}}},t.prototype.setValueAfterKeydown=function(e,t){var n=this;this.setValue(),setTimeout((function(){n.focusItem(e,t)}),1),event.preventDefault()},t.prototype.getIconHoverCss=function(){return(new c.CssClassBuilder).append(this.cssClasses.itemIcon).append(this.cssClasses.itemIconHoverMod).toString()},t.prototype.getIconFocusCss=function(){return(new c.CssClassBuilder).append(this.cssClasses.itemIcon).append(this.cssClasses.itemIconFocusMod).toString()},Object.defineProperty(t.prototype,"longTap",{get:function(){return this.getPropertyValue("longTap")},set:function(e){this.setPropertyValue("longTap",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"selectToRankEnabled",{get:function(){return this.getPropertyValue("selectToRankEnabled",!1)},set:function(e){this.setPropertyValue("selectToRankEnabled",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"selectToRankAreasLayout",{get:function(){return p.IsMobile?"vertical":this.getPropertyValue("selectToRankAreasLayout","horizontal")},set:function(e){this.setPropertyValue("selectToRankAreasLayout",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"useFullItemSizeForShortcut",{get:function(){return this.getPropertyValue("useFullItemSizeForShortcut")},set:function(e){this.setPropertyValue("useFullItemSizeForShortcut",e)},enumerable:!1,configurable:!0}),m([Object(a.property)({defaultValue:null})],t.prototype,"currentDropTarget",void 0),m([Object(a.property)({defaultValue:null})],t.prototype,"dropTargetNodeMove",void 0),m([Object(a.property)({localizable:{defaultStr:"selectToRankEmptyRankedAreaText"}})],t.prototype,"selectToRankEmptyRankedAreaText",void 0),m([Object(a.property)({localizable:{defaultStr:"selectToRankEmptyUnrankedAreaText"}})],t.prototype,"selectToRankEmptyUnrankedAreaText",void 0),t}(u.QuestionCheckboxModel);a.Serializer.addClass("ranking",[{name:"showOtherItem",visible:!1,isSerializable:!1},{name:"otherText",visible:!1,isSerializable:!1},{name:"otherErrorText",visible:!1,isSerializable:!1},{name:"storeOthersAsComment",visible:!1,isSerializable:!1},{name:"showNoneItem",visible:!1,isSerializable:!1},{name:"noneText",visible:!1,isSerializable:!1},{name:"showSelectAllItem",visible:!1,isSerializable:!1},{name:"selectAllText",visible:!1,isSerializable:!1},{name:"colCount:number",visible:!1,isSerializable:!1},{name:"separateSpecialChoices",visible:!1,isSerializable:!1},{name:"longTap",default:!0,visible:!1,isSerializable:!1},{name:"selectToRankEnabled:switch",default:!1,visible:!0,isSerializable:!0},{name:"selectToRankAreasLayout",default:"horizontal",choices:["horizontal","vertical"],dependsOn:"selectToRankEnabled",visibleIf:function(e){return!!e.selectToRankEnabled},visible:!0,isSerializable:!0},{name:"maxSelectedChoices:number",visible:!0,default:0,dependsOn:"selectToRankEnabled",visibleIf:function(e){return!!e.selectToRankEnabled},isSerializable:!0},{name:"minSelectedChoices:number",visible:!0,default:0,dependsOn:"selectToRankEnabled",visibleIf:function(e){return!!e.selectToRankEnabled},isSerializable:!0},{name:"itemComponent",visible:!1,default:""}],(function(){return new g("")}),"checkbox"),l.QuestionFactory.Instance.registerQuestion("ranking",(function(e){var t=new g(e);return t.choices=l.QuestionFactory.DefaultChoices,t}))},"./src/question_rating.ts":function(e,t,n){"use strict";n.r(t),n.d(t,"RenderedRatingItem",(function(){return m})),n.d(t,"QuestionRatingModel",(function(){return g}));var r,o=n("./src/itemvalue.ts"),i=n("./src/question.ts"),s=n("./src/jsonobject.ts"),a=n("./src/questionfactory.ts"),l=n("./src/settings.ts"),u=n("./src/surveyStrings.ts"),c=n("./src/utils/cssClassBuilder.ts"),p=n("./src/base.ts"),d=n("./src/utils/utils.ts"),h=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),f=function(e,t,n,r){var o,i=arguments.length,s=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,r);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(i<3?o(s):i>3?o(t,n,s):o(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},m=function(e){function t(t,n){void 0===n&&(n=null);var r=e.call(this)||this;return r.itemValue=t,r.locString=n,r.locText.onStringChanged.add(r.onStringChangedCallback.bind(r)),r.onStringChangedCallback(),r}return h(t,e),t.prototype.onStringChangedCallback=function(){this.text=this.itemValue.text},Object.defineProperty(t.prototype,"value",{get:function(){return this.itemValue.getPropertyValue("value")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locText",{get:function(){return this.locString||this.itemValue.locText},enumerable:!1,configurable:!0}),f([Object(s.property)({defaultValue:""})],t.prototype,"highlight",void 0),f([Object(s.property)({defaultValue:""})],t.prototype,"text",void 0),f([Object(s.property)()],t.prototype,"style",void 0),t}(p.Base),g=function(e){function t(t){var n=e.call(this,t)||this;return n._syncPropertiesChanging=!1,n.createItemValues("rateValues"),n.createRenderedRateItems(),n.createLocalizableString("ratingOptionsCaption",n,!1,!0),n.registerFunctionOnPropertiesValueChanged(["rateMin","rateMax","minRateDescription","maxRateDescription","rateStep","displayRateDescriptionsAsExtremeItems"],(function(){return n.createRenderedRateItems()})),n.registerFunctionOnPropertiesValueChanged(["rateType"],(function(){n.setIconsToRateValues(),n.createRenderedRateItems(),n.updateRateCount()})),n.registerFunctionOnPropertiesValueChanged(["rateValues"],(function(){n.autoGenerate=!1,n.setIconsToRateValues(),n.createRenderedRateItems()})),n.registerFunctionOnPropertiesValueChanged(["rateColorMode","scaleColorMode"],(function(){n.updateColors(n.survey.themeVariables)})),n.registerFunctionOnPropertiesValueChanged(["autoGenerate"],(function(){n.autoGenerate||0!==n.rateValues.length||n.setPropertyValue("rateValues",n.visibleRateValues),n.autoGenerate&&(n.rateValues.length=0,n.updateRateMax()),n.createRenderedRateItems()})),n.createLocalizableString("minRateDescription",n,!0),n.createLocalizableString("maxRateDescription",n,!0),n.initPropertyDependencies(),n}return h(t,e),t.prototype.setIconsToRateValues=function(){var e=this;"smileys"==this.rateType&&this.rateValues.map((function(t){return t.icon=e.getItemSmiley(t)}))},t.prototype.endLoadingFromJson=function(){e.prototype.endLoadingFromJson.call(this),this.hasMinRateDescription=!!this.minRateDescription,this.hasMaxRateDescription=!!this.maxRateDescription,void 0!==this.jsonObj.rateMin&&void 0!==this.jsonObj.rateCount&&void 0===this.jsonObj.rateMax&&this.updateRateMax(),void 0!==this.jsonObj.rateMax&&void 0!==this.jsonObj.rateCount&&void 0===this.jsonObj.rateMin&&this.updateRateMin(),void 0===this.jsonObj.autoGenerate&&void 0!==this.jsonObj.rateValues&&(this.autoGenerate=!this.jsonObj.rateValues.length),this.updateRateCount(),this.setIconsToRateValues(),this.createRenderedRateItems()},t.prototype.registerSychProperties=function(e,t){var n=this;this.registerFunctionOnPropertiesValueChanged(e,(function(){n._syncPropertiesChanging||(n._syncPropertiesChanging=!0,t(),n._syncPropertiesChanging=!1)}))},t.prototype.useRateValues=function(){return!!this.rateValues.length&&!this.autoGenerate},t.prototype.updateRateMax=function(){this.rateMax=this.rateMin+this.rateStep*(this.rateCount-1)},t.prototype.updateRateMin=function(){this.rateMin=this.rateMax-this.rateStep*(this.rateCount-1)},t.prototype.updateRateCount=function(){var e=0;(e=this.useRateValues()?this.rateValues.length:Math.trunc((this.rateMax-this.rateMin)/(this.rateStep||1))+1)>10&&"smileys"==this.rateDisplayMode&&(e=10),this.rateCount=e,this.rateValues.length>e&&this.rateValues.splice(e,this.rateValues.length-e)},t.prototype.initPropertyDependencies=function(){var e=this;this.registerSychProperties(["rateCount"],(function(){if(e.useRateValues())if(e.rateCount<e.rateValues.length){if(e.rateCount>=10&&"smileys"==e.rateDisplayMode)return;e.rateValues.splice(e.rateCount,e.rateValues.length-e.rateCount)}else for(var t=e.rateValues.length;t<e.rateCount;t++)e.rateValues.push(new o.ItemValue(u.surveyLocalization.getString("choices_Item")+(t+1)));else e.rateMax=e.rateMin+e.rateStep*(e.rateCount-1)})),this.registerSychProperties(["rateMin","rateMax","rateStep","rateValues"],(function(){e.updateRateCount()}))},Object.defineProperty(t.prototype,"showSelectedItemLocText",{get:function(){return!this.readOnly&&!this.inputHasValue&&!!this.selectedItemLocText},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"selectedItemLocText",{get:function(){var e,t=this;return!this.readOnly&&(null===(e=this.visibleRateValues.filter((function(e){return e.value==t.value}))[0])||void 0===e?void 0:e.locText)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"rateValues",{get:function(){return this.getPropertyValue("rateValues")},set:function(e){this.setPropertyValue("rateValues",e),this.createRenderedRateItems()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"rateMin",{get:function(){return this.getPropertyValue("rateMin")},set:function(e){this.setPropertyValue("rateMin",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"rateMax",{get:function(){return this.getPropertyValue("rateMax")},set:function(e){this.setPropertyValue("rateMax",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"rateStep",{get:function(){return this.getPropertyValue("rateStep")},set:function(e){this.setPropertyValue("rateStep",e)},enumerable:!1,configurable:!0}),t.prototype.updateColors=function(e){function n(t,n){var r=!!e&&e[t];if(!r){var o=getComputedStyle(document.documentElement);r=o.getPropertyValue&&o.getPropertyValue(n)}if(!r)return null;var i=document.createElement("canvas").getContext("2d");i.fillStyle=r;var s=i.fillStyle;if(s.startsWith("rgba"))return s.substring(5,s.length-1).split(",").map((function(e){return+e.trim()}));var a=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(s);return a?[parseInt(a[1],16),parseInt(a[2],16),parseInt(a[3],16),1]:null}"monochrome"!==this.colorMode&&"undefined"!=typeof document&&document&&(t.colorsCalculated||(t.badColor=n("--sjs-special-red","--sd-rating-bad-color"),t.normalColor=n("--sjs-special-yellow","--sd-rating-normal-color"),t.goodColor=n("--sjs-special-green","--sd-rating-good-color"),t.badColorLight=n("--sjs-special-red-light","--sd-rating-bad-color-light"),t.normalColorLight=n("--sjs-special-yellow-light","--sd-rating-normal-color-light"),t.goodColorLight=n("--sjs-special-green-light","--sd-rating-good-color-light"),this.colorsCalculated=!0))},t.prototype.getDisplayValueCore=function(e,t){return o.ItemValue.getTextOrHtmlByValue(this.visibleRateValues,t)||t},Object.defineProperty(t.prototype,"visibleRateValues",{get:function(){return this.renderedRateItems.map((function(e){return e.itemValue}))},enumerable:!1,configurable:!0}),t.prototype.itemValuePropertyChanged=function(t,n,r,o){this.useRateValues()||void 0===o||(this.autoGenerate=!1),e.prototype.itemValuePropertyChanged.call(this,t,n,r,o)},t.prototype.createRenderedRateItems=function(){var e=this,t=[];if(this.useRateValues())t=this.rateValues;else{for(var n=[],r=this.rateMin,i=this.rateStep;r<=this.rateMax&&n.length<l.settings.ratingMaximumRateValueCount;){var s=new o.ItemValue(r);s.locOwner=this,s.ownerPropertyName="rateValues",n.push(s),r=this.correctValue(r+i,i)}t=n}"smileys"==this.rateType&&t.length>10&&(t=t.slice(0,10)),this.renderedRateItems=t.map((function(n,r){var o=null;return e.displayRateDescriptionsAsExtremeItems&&(0==r&&(o=new m(n,e.minRateDescription&&e.locMinRateDescription||n.locText)),r==t.length-1&&(o=new m(n,e.maxRateDescription&&e.locMaxRateDescription||n.locText))),o||(o=new m(n)),o}))},t.prototype.correctValue=function(e,t){if(!e)return e;if(Math.round(e)==e)return e;for(var n=0;Math.round(t)!=t;)t*=10,n++;return parseFloat(e.toFixed(n))},t.prototype.getType=function(){return"rating"},t.prototype.getFirstInputElementId=function(){return this.inputId+"_0"},t.prototype.getInputId=function(e){return this.inputId+"_"+e},t.prototype.supportGoNextPageAutomatic=function(){return!0===this.isMouseDown},t.prototype.supportOther=function(){return!1},Object.defineProperty(t.prototype,"minRateDescription",{get:function(){return this.getLocalizableStringText("minRateDescription")},set:function(e){this.setLocalizableStringText("minRateDescription",e),this.hasMinRateDescription=!!this.minRateDescription},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locMinRateDescription",{get:function(){return this.getLocalizableString("minRateDescription")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"maxRateDescription",{get:function(){return this.getLocalizableStringText("maxRateDescription")},set:function(e){this.setLocalizableStringText("maxRateDescription",e),this.hasMaxRateDescription=!!this.maxRateDescription},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locMaxRateDescription",{get:function(){return this.getLocalizableString("maxRateDescription")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hasMinLabel",{get:function(){return!this.displayRateDescriptionsAsExtremeItems&&!!this.hasMinRateDescription},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hasMaxLabel",{get:function(){return!this.displayRateDescriptionsAsExtremeItems&&!!this.hasMaxRateDescription},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"rateDisplayMode",{get:function(){return this.rateType},set:function(e){this.rateType=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isStar",{get:function(){return"stars"==this.rateType},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isSmiley",{get:function(){return"smileys"==this.rateType},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"itemComponentName",{get:function(){return this.isStar?"sv-rating-item-star":this.isSmiley?"sv-rating-item-smiley":"sv-rating-item"},enumerable:!1,configurable:!0}),t.prototype.valueToData=function(e){if(this.useRateValues()){var t=o.ItemValue.getItemByValue(this.rateValues,e);return t?t.value:e}return isNaN(e)?e:parseFloat(e)},t.prototype.setValueFromClick=function(e){this.value===parseFloat(e)?this.clearValue():this.value=e;for(var t=0;t<this.renderedRateItems.length;t++)this.renderedRateItems[t].highlight="none"},t.prototype.onItemMouseIn=function(e){if(!this.isReadOnly&&e.itemValue.isEnabled&&!this.isDesignMode){var t=!0,n=null!=this.value;if("stars"===this.rateType)for(var r=0;r<this.renderedRateItems.length;r++)this.renderedRateItems[r].highlight=(t&&!n?"highlighted":!t&&n&&"unhighlighted")||"none",this.renderedRateItems[r]==e&&(t=!1),this.renderedRateItems[r].itemValue.value==this.value&&(n=!1);else e.highlight="highlighted"}},t.prototype.onItemMouseOut=function(e){this.renderedRateItems.forEach((function(e){return e.highlight="none"}))},Object.defineProperty(t.prototype,"itemSmallMode",{get:function(){return this.inMatrixMode&&"small"==l.settings.matrix.rateSize},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"ratingRootCss",{get:function(){var e=("buttons"==this.displayMode||this.survey&&this.survey.isDesignMode)&&this.cssClasses.rootWrappable?this.cssClasses.rootWrappable:this.cssClasses.root;return(new c.CssClassBuilder).append(e).append(this.cssClasses.itemSmall,this.itemSmallMode&&"labels"!=this.rateType).toString()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"itemStarIcon",{get:function(){return this.itemSmallMode?"icon-rating-star-small":"icon-rating-star"},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"itemStarIconAlt",{get:function(){return this.itemStarIcon+"-2"},enumerable:!1,configurable:!0}),t.prototype.getItemSmiley=function(e){var t=this.useRateValues()?this.rateValues.length:this.rateMax-this.rateMin+1,n=["very-good","not-good","normal","good","average","excellent","poor","perfect","very-poor","terrible"].slice(0,t),r=["terrible","very-poor","poor","not-good","average","normal","good","very-good","excellent","perfect"].filter((function(e){return-1!=n.indexOf(e)}));return this.useRateValues()?r[this.rateValues.indexOf(e)]:r[e.value-this.rateMin]},t.prototype.getItemSmileyIconName=function(e){return"icon-"+this.getItemSmiley(e)},t.prototype.getItemClassByText=function(e,t){return this.getItemClass(e)},t.prototype.getRenderedItemColor=function(e,n){var r=n?t.badColorLight:t.badColor,o=n?t.goodColorLight:t.goodColor,i=(this.rateCount-1)/2,s=n?t.normalColorLight:t.normalColor;if(e<i?o=s:(r=s,e-=i),!r||!o)return null;for(var a=[0,0,0,0],l=0;l<4;l++)a[l]=r[l]+(o[l]-r[l])*e/i,l<3&&(a[l]=Math.trunc(a[l]));return"rgba("+a[0]+", "+a[1]+", "+a[2]+", "+a[3]+")"},t.prototype.getItemStyle=function(e,t){if(void 0===t&&(t="none"),"monochrome"===this.scaleColorMode&&"default"==this.rateColorMode)return{borderColor:null,fill:null,backgroundColor:null};var n=this.visibleRateValues.indexOf(e),r=this.getRenderedItemColor(n,!1);if(this.value!=this.renderedRateItems[n].value){var o=this.getRenderedItemColor(n,!0);return"highlighted"==t&&"colored"===this.scaleColorMode?{borderColor:r,fill:r,backgroundColor:o}:"colored"===this.scaleColorMode&&0==this.errors.length?{borderColor:r,fill:r,backgroundColor:null}:{borderColor:null,fill:null,backgroundColor:null}}return{borderColor:r,fill:null,backgroundColor:r}},t.prototype.getItemClass=function(e,t){var n=this;void 0===t&&(t="none");var r=this.value==e.value;this.isStar&&(r=this.useRateValues()?this.rateValues.indexOf(this.rateValues.filter((function(e){return e.value==n.value}))[0])>=this.rateValues.indexOf(e):this.value>=e.value);var o=!(this.isReadOnly||!e.isEnabled||this.value==e.value||this.survey&&this.survey.isDesignMode),i=this.renderedRateItems.filter((function(t){return t.itemValue==e}))[0],s=this.isStar&&"highlighted"==(null==i?void 0:i.highlight),a=this.isStar&&"unhighlighted"==(null==i?void 0:i.highlight),l=this.cssClasses.item,u=this.cssClasses.selected,p=this.cssClasses.itemDisabled,d=this.cssClasses.itemHover,h=this.cssClasses.itemOnError,f=null,m=null,g=null,y=null,v=null;this.isStar&&(l=this.cssClasses.itemStar,u=this.cssClasses.itemStarSelected,p=this.cssClasses.itemStarDisabled,d=this.cssClasses.itemStarHover,h=this.cssClasses.itemStarOnError,f=this.cssClasses.itemStarHighlighted,m=this.cssClasses.itemStarUnhighlighted,v=this.cssClasses.itemStarSmall),this.isSmiley&&(l=this.cssClasses.itemSmiley,u=this.cssClasses.itemSmileySelected,p=this.cssClasses.itemSmileyDisabled,d=this.cssClasses.itemSmileyHover,h=this.cssClasses.itemSmileyOnError,f=this.cssClasses.itemSmileyHighlighted,g=this.cssClasses.itemSmileyScaleColored,y=this.cssClasses.itemSmileyRateColored,v=this.cssClasses.itemSmileySmall);var b=!this.isStar&&!this.isSmiley&&(!this.displayRateDescriptionsAsExtremeItems||this.useRateValues()&&e!=this.rateValues[0]&&e!=this.rateValues[this.rateValues.length-1]||!this.useRateValues()&&e.value!=this.rateMin&&e.value!=this.rateMax)&&e.locText.calculatedText.length<=2&&Number.isInteger(Number(e.locText.calculatedText));return(new c.CssClassBuilder).append(l).append(u,r).append(p,this.isReadOnly).append(d,o).append(f,s).append(g,"colored"==this.scaleColorMode).append(y,"scale"==this.rateColorMode&&r).append(m,a).append(h,this.errors.length>0).append(v,this.itemSmallMode).append(this.cssClasses.itemFixedSize,b).toString()},t.prototype.getControlClass=function(){return this.isEmpty(),(new c.CssClassBuilder).append(this.cssClasses.control).append(this.cssClasses.controlEmpty,this.isEmpty()).append(this.cssClasses.onError,this.errors.length>0).append(this.cssClasses.controlDisabled,this.isReadOnly).toString()},Object.defineProperty(t.prototype,"placeholder",{get:function(){return this.getLocalizableStringText("ratingOptionsCaption")},set:function(e){this.setLocalizableStringText("ratingOptionsCaption",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locPlaceholder",{get:function(){return this.getLocalizableString("ratingOptionsCaption")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"allowClear",{get:function(){return!0},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"searchEnabled",{get:function(){return!1},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"renderedValue",{get:function(){return this.value},set:function(e){this.value=e},enumerable:!1,configurable:!0}),t.prototype.isItemSelected=function(e){return e.value==this.value},Object.defineProperty(t.prototype,"visibleChoices",{get:function(){return this.visibleRateValues},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"readOnlyText",{get:function(){return this.readOnly?this.displayValue||this.placeholder:this.isEmpty()?this.placeholder:""},enumerable:!1,configurable:!0}),t.prototype.needResponsiveWidth=function(){this.getPropertyValue("rateValues");var e=this.getPropertyValue("rateStep"),t=this.getPropertyValue("rateMax"),n=this.getPropertyValue("rateMin");return"dropdown"!=this.displayMode&&!!(this.hasMinRateDescription||this.hasMaxRateDescription||e&&(t-n)/e>9)},t.prototype.supportResponsiveness=function(){return!0},t.prototype.getCompactRenderAs=function(){return"buttons"==this.displayMode?"default":"dropdown"},t.prototype.getDesktopRenderAs=function(){return"dropdown"==this.displayMode?"dropdown":"default"},Object.defineProperty(t.prototype,"ariaExpanded",{get:function(){var e,t=null===(e=this.dropdownListModel)||void 0===e?void 0:e.popupModel;return t?t.isVisible?"true":"false":null},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"dropdownListModel",{get:function(){return this.dropdownListModelValue},set:function(e){this.dropdownListModelValue=e,this.updateElementCss()},enumerable:!1,configurable:!0}),t.prototype.updateCssClasses=function(t,n){if(e.prototype.updateCssClasses.call(this,t,n),this.dropdownListModel){var r={};Object(d.mergeValues)(n.list,r),Object(d.mergeValues)(t.list,r),t.list=r}},t.prototype.calcCssClasses=function(t){var n=e.prototype.calcCssClasses.call(this,t);return this.dropdownListModel&&this.dropdownListModel.updateCssClasses(n.popup,n.list),n},t.prototype.setSurveyImpl=function(t,n){var r=this;e.prototype.setSurveyImpl.call(this,t,n),this.survey&&(this.updateColors(this.survey.themeVariables),this.survey.onThemeApplied.add((function(e,t){r.colorsCalculated=!1,r.updateColors(t.theme.cssVariables),r.createRenderedRateItems()})))},t.prototype.dispose=function(){e.prototype.dispose.call(this),this.dropdownListModelValue&&this.dropdownListModelValue.dispose()},t.colorsCalculated=!1,f([Object(s.property)({defaultValue:!1})],t.prototype,"inputHasValue",void 0),f([Object(s.property)({defaultValue:!0})],t.prototype,"autoGenerate",void 0),f([Object(s.property)({defaultValue:5})],t.prototype,"rateCount",void 0),f([Object(s.propertyArray)()],t.prototype,"renderedRateItems",void 0),f([Object(s.property)({defaultValue:!1})],t.prototype,"hasMinRateDescription",void 0),f([Object(s.property)({defaultValue:!1})],t.prototype,"hasMaxRateDescription",void 0),f([Object(s.property)({defaultValue:!1})],t.prototype,"displayRateDescriptionsAsExtremeItems",void 0),f([Object(s.property)({defaultValue:"auto",onSet:function(e,t){t.isDesignMode||(t.renderAs="dropdown"===e?"dropdown":"default")}})],t.prototype,"displayMode",void 0),f([Object(s.property)({defaultValue:"labels"})],t.prototype,"rateType",void 0),f([Object(s.property)({defaultValue:"monochrome"})],t.prototype,"scaleColorMode",void 0),f([Object(s.property)({defaultValue:"scale"})],t.prototype,"rateColorMode",void 0),t}(i.Question);s.Serializer.addClass("rating",[{name:"showCommentArea:switch",layout:"row",visible:!0,category:"general"},{name:"rateType",alternativeName:"rateDisplayMode",default:"labels",category:"rateValues",choices:["labels","stars","smileys"],visibleIndex:0},{name:"scaleColorMode",category:"rateValues",default:"monochrome",choices:["monochrome","colored"],visibleIf:function(e){return"smileys"==e.rateDisplayMode},visibleIndex:1},{name:"rateColorMode",category:"rateValues",default:"scale",choices:["default","scale"],visibleIf:function(e){return"smileys"==e.rateDisplayMode&&"monochrome"==e.scaleColorMode},visibleIndex:2},{name:"autoGenerate",category:"rateValues",default:!0,choices:[!0,!1],visibleIndex:4},{name:"rateCount:number",default:5,category:"rateValues",visibleIndex:3,onSettingValue:function(e,t){return t<2?2:t>l.settings.ratingMaximumRateValueCount&&t>e.rateValues.length?l.settings.ratingMaximumRateValueCount:t>10&&"smileys"==e.rateDisplayMode?10:t}},{name:"rateValues:itemvalue[]",baseValue:function(){return u.surveyLocalization.getString("choices_Item")},category:"rateValues",visibleIf:function(e){return!e.autoGenerate},visibleIndex:5},{name:"rateMin:number",default:1,onSettingValue:function(e,t){return t>e.rateMax-e.rateStep?e.rateMax-e.rateStep:t},visibleIf:function(e){return!!e.autoGenerate},visibleIndex:6},{name:"rateMax:number",default:5,onSettingValue:function(e,t){return t<e.rateMin+e.rateStep?e.rateMin+e.rateStep:t},visibleIf:function(e){return!!e.autoGenerate},visibleIndex:7},{name:"rateStep:number",default:1,minValue:.1,onSettingValue:function(e,t){return t<=0&&(t=1),t>e.rateMax-e.rateMin&&(t=e.rateMax-e.rateMin),t},visibleIf:function(e){return!!e.autoGenerate},visibleIndex:8},{name:"minRateDescription",alternativeName:"mininumRateDescription",serializationProperty:"locMinRateDescription",visibleIndex:17},{name:"maxRateDescription",alternativeName:"maximumRateDescription",serializationProperty:"locMaxRateDescription",visibleIndex:18},{name:"displayRateDescriptionsAsExtremeItems:boolean",default:!1,visibleIndex:19,visibleIf:function(e){return"labels"==e.rateType}},{name:"displayMode",default:"auto",choices:["auto","buttons","dropdown"],visibleIndex:20}],(function(){return new g("")}),"question"),a.QuestionFactory.Instance.registerQuestion("rating",(function(e){return new g(e)}))},"./src/question_signaturepad.ts":function(e,t,n){"use strict";n.r(t),n.d(t,"QuestionSignaturePadModel",(function(){return p}));var r,o=n("./src/jsonobject.ts"),i=n("./src/questionfactory.ts"),s=n("./src/question.ts"),a=n("./node_modules/signature_pad/dist/signature_pad.js"),l=n("./src/utils/cssClassBuilder.ts"),u=n("./src/console-warnings.ts"),c=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),p=function(e){function t(t){return e.call(this,t)||this}return c(t,e),t.prototype.getPenColorFromTheme=function(){var e=this.survey;return!!e&&!!e.themeVariables&&e.themeVariables["--sjs-primary-backcolor"]},t.prototype.updateColors=function(e){var t=this.getPenColorFromTheme(),n=this.getPropertyByName("penColor");e.penColor=this.penColor||t||n.defaultValue||"#1ab394";var r=this.getPropertyByName("backgroundColor"),o=t?"transparent":void 0;e.backgroundColor=this.backgroundColor||o||r.defaultValue||"#ffffff"},t.prototype.getCssRoot=function(t){return(new l.CssClassBuilder).append(e.prototype.getCssRoot.call(this,t)).append(t.small,"300"===this.signatureWidth.toString()).toString()},t.prototype.updateValue=function(){if(this.signaturePad){var e="jpeg"===this.dataFormat?"image/jpeg":"svg"===this.dataFormat?"image/svg+xml":"",t=this.signaturePad.toDataURL(e);this.value=t}},t.prototype.getType=function(){return"signaturepad"},t.prototype.afterRenderQuestionElement=function(t){t&&this.initSignaturePad(t),e.prototype.afterRenderQuestionElement.call(this,t)},t.prototype.beforeDestroyQuestionElement=function(e){e&&this.destroySignaturePad(e)},t.prototype.setSurveyImpl=function(t,n){var r=this;e.prototype.setSurveyImpl.call(this,t,n),this.survey&&this.survey.onThemeApplied.add((function(e,t){r.signaturePad&&r.updateColors(r.signaturePad)}))},t.prototype.initSignaturePad=function(e){var t=this,n=e.getElementsByTagName("canvas")[0],r=new a.default(n,{backgroundColor:"#ffffff"});this.isInputReadOnly&&r.off(),this.readOnlyChangedCallback=function(){t.isInputReadOnly?r.off():r.on()},this.updateColors(r),r.addEventListener("beginStroke",(function(){t.isDrawingValue=!0,n.focus()}),{once:!1}),r.addEventListener("endStroke",(function(){t.isDrawingValue=!1,t.updateValue()}),{once:!1});var o=function(){var e=t.value;n.width=t.signatureWidth||300,n.height=t.signatureHeight||200,function(e){var t=e.getContext("2d"),n=(window.devicePixelRatio||1)/(t.webkitBackingStorePixelRatio||t.mozBackingStorePixelRatio||t.msBackingStorePixelRatio||t.oBackingStorePixelRatio||t.backingStorePixelRatio||1),r=e.width,o=e.height;e.width=r*n,e.height=o*n,e.style.width=r+"px",e.style.height=o+"px",t.scale(n,n)}(n),e?r.fromDataURL(e):r.clear()};o(),this.readOnlyChangedCallback(),this.signaturePad=r;var i=function(e,t){"signatureWidth"!==t.name&&"signatureHeight"!==t.name&&"value"!==t.name||o()};this.onPropertyChanged.add(i),this.signaturePad.propertyChangedHandler=i},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",d(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,"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(){return!this.isInputReadOnly&&this.allowClear},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"penColor",{get:function(){return this.getPropertyValue("penColor")},set:function(e){this.setPropertyValue("penColor",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"backgroundColor",{get:function(){return this.getPropertyValue("backgroundColor")},set:function(e){this.setPropertyValue("backgroundColor",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"clearButtonCaption",{get:function(){return this.getLocalizationString("clearCaption")},enumerable:!1,configurable:!0}),t.prototype.needShowPlaceholder=function(){return!this.isDrawingValue&&this.isEmpty()},Object.defineProperty(t.prototype,"placeHolderText",{get:function(){return this.getLocalizationString("signaturePlaceHolder")},enumerable:!1,configurable:!0}),t.prototype.endLoadingFromJson=function(){e.prototype.endLoadingFromJson.call(this),300===this.signatureWidth&&this.width&&"number"==typeof this.width&&this.width&&(u.ConsoleWarnings.warn("Use signatureWidth property to set width for the signature pad"),this.signatureWidth=this.width,this.width=void 0),200===this.signatureHeight&&this.height&&(u.ConsoleWarnings.warn("Use signatureHeight property to set width for the signature pad"),this.signatureHeight=this.height,this.height=void 0)},function(e,t,n,r){var o,i=arguments.length,s=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,r);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(i<3?o(s):i>3?o(t,n,s):o(t,n))||s);i>3&&s&&Object.defineProperty(t,n,s)}([Object(o.property)({defaultValue:!1})],t.prototype,"isDrawingValue",void 0),t}(s.Question);function d(e){return e||(e="png"),"jpeg"!==(e=e.replace("image/","").replace("+xml",""))&&"svg"!==e&&(e="png"),e}o.Serializer.addClass("signaturepad",[{name:"signatureWidth:number",category:"general",default:300},{name:"signatureHeight:number",category:"general",default:200},{name:"height:number",category:"general",visible:!1},{name:"allowClear:boolean",category:"general",default:!0},{name:"penColor:color",category:"general"},{name:"backgroundColor:color",category:"general"},{name:"dataFormat",category:"general",default:"png",choices:[{value:"png",text:"PNG"},{value:"image/jpeg",text:"JPEG"},{value:"image/svg+xml",text:"SVG"}],onSettingValue:function(e,t){return d(t)}},{name:"defaultValue",visible:!1},{name:"correctAnswer",visible:!1}],(function(){return new p("")}),"question"),i.QuestionFactory.Instance.registerQuestion("signaturepad",(function(e){return new p(e)}))},"./src/question_tagbox.ts":function(e,t,n){"use strict";n.r(t),n.d(t,"QuestionTagboxModel",(function(){return d}));var r,o=n("./src/jsonobject.ts"),i=n("./src/questionfactory.ts"),s=n("./src/utils/cssClassBuilder.ts"),a=n("./src/question_checkbox.ts"),l=n("./src/dropdownMultiSelectListModel.ts"),u=n("./src/settings.ts"),c=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),p=function(e,t,n,r){var o,i=arguments.length,s=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,r);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(i<3?o(s):i>3?o(t,n,s):o(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},d=function(e){function t(t){var n=e.call(this,t)||this;return n.itemDisplayNameMap={},n.onOpened=n.addEvent(),n.createLocalizableString("placeholder",n,!1,!0),n.createLocalizableString("clearCaption",n,!1,!0),n}return c(t,e),t.prototype.getDefaultItemComponent=function(){return""},Object.defineProperty(t.prototype,"readOnlyText",{get:function(){return this.displayValue||this.placeholder},enumerable:!1,configurable:!0}),t.prototype.onSurveyLoad=function(){e.prototype.onSurveyLoad.call(this),this.dropdownListModel||(this.dropdownListModel=new l.DropdownMultiSelectListModel(this))},Object.defineProperty(t.prototype,"placeholder",{get:function(){return this.getLocalizableStringText("placeholder")},set:function(e){this.setLocalizableStringText("placeholder",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locPlaceholder",{get:function(){return this.getLocalizableString("placeholder")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"clearCaption",{get:function(){return this.getLocalizableStringText("clearCaption")},set:function(e){this.setLocalizableStringText("clearCaption",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locClearCaption",{get:function(){return this.getLocalizableString("clearCaption")},enumerable:!1,configurable:!0}),t.prototype.getType=function(){return"tagbox"},Object.defineProperty(t.prototype,"ariaRole",{get:function(){return"combobox"},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"popupModel",{get:function(){var e;return null===(e=this.dropdownListModel)||void 0===e?void 0:e.popupModel},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"ariaExpanded",{get:function(){var e=this.popupModel;return e&&e.isVisible?"true":"false"},enumerable:!1,configurable:!0}),t.prototype.getControlClass=function(){return(new s.CssClassBuilder).append(this.cssClasses.control).append(this.cssClasses.controlEmpty,this.isEmpty()).append(this.cssClasses.onError,this.errors.length>0).append(this.cssClasses.controlDisabled,this.isReadOnly).toString()},t.prototype.onOpenedCallBack=function(){this.onOpened.fire(this,{question:this,choices:this.choices})},t.prototype.hasUnknownValue=function(t,n,r,o){return!this.choicesLazyLoadEnabled&&e.prototype.hasUnknownValue.call(this,t,n,r,o)},t.prototype.needConvertRenderedOtherToDataValue=function(){var t,n=null===(t=this.otherValue)||void 0===t?void 0:t.trim();return!!n&&e.prototype.hasUnknownValue.call(this,n,!0,!1)},t.prototype.onVisibleChoicesChanged=function(){e.prototype.onVisibleChoicesChanged.call(this),this.popupModel&&this.dropdownListModel.updateItems()},t.prototype.getItemIfChoicesNotContainThisValue=function(t,n){var r;return this.choicesLazyLoadEnabled&&!(null===(r=this.dropdownListModel)||void 0===r?void 0:r.isAllDataLoaded)?this.createItemValue(t,n):e.prototype.getItemIfChoicesNotContainThisValue.call(this,t,n)},t.prototype.validateItemValues=function(e){var t=this;this.updateItemDisplayNameMap();var n=this.renderedValue;if(e.length&&e.length===n.length)return e;var r=this.selectedItemValues;if(!e.length&&r&&r.length)return this.defaultSelectedItemValues=[].concat(r),r;var o=e.map((function(e){return e.value}));return n.filter((function(e){return-1===o.indexOf(e)})).forEach((function(n){var r=t.getItemIfChoicesNotContainThisValue(n,t.itemDisplayNameMap[n]);r&&e.push(r)})),e.sort((function(e,t){return n.indexOf(e.value)-n.indexOf(t.value)})),e},t.prototype.updateItemDisplayNameMap=function(){var e=this,t=function(t){e.itemDisplayNameMap[t.value]=t.text};(this.defaultSelectedItemValues||[]).forEach(t),(this.selectedItemValues||[]).forEach(t),this.visibleChoices.forEach(t)},t.prototype.getFirstInputElementId=function(){return this.inputId+(this.searchEnabled?"_0":"")},t.prototype.getInputId=function(){return this.inputId+"_0"},t.prototype.dispose=function(){e.prototype.dispose.call(this),this.dropdownListModelValue&&this.dropdownListModelValue.dispose()},t.prototype.clearValue=function(){e.prototype.clearValue.call(this),this.dropdownListModel.clear()},p([Object(o.property)()],t.prototype,"allowClear",void 0),p([Object(o.property)({defaultValue:!0,onSet:function(e,t){t.dropdownListModel&&t.dropdownListModel.setSearchEnabled(e)}})],t.prototype,"searchEnabled",void 0),p([Object(o.property)({onSet:function(e,t){t.dropdownListModel&&t.dropdownListModel.setHideSelectedItems(e)}})],t.prototype,"hideSelectedItems",void 0),p([Object(o.property)()],t.prototype,"choicesLazyLoadEnabled",void 0),p([Object(o.property)({defaultValue:25})],t.prototype,"choicesLazyLoadPageSize",void 0),p([Object(o.property)({getDefaultValue:function(){return u.settings.tagboxCloseOnSelect}})],t.prototype,"closeOnSelect",void 0),t}(a.QuestionCheckboxModel);o.Serializer.addClass("tagbox",[{name:"placeholder",serializationProperty:"locPlaceholder"},{name:"allowClear:boolean",default:!0},{name:"searchEnabled: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:""}],(function(){return new d("")}),"checkbox"),i.QuestionFactory.Instance.registerQuestion("tagbox",(function(e){var t=new d(e);return t.choices=i.QuestionFactory.DefaultChoices,t}))},"./src/question_text.ts":function(e,t,n){"use strict";n.r(t),n.d(t,"QuestionTextModel",(function(){return h}));var r,o=n("./src/questionfactory.ts"),i=n("./src/jsonobject.ts"),s=n("./src/localizablestring.ts"),a=n("./src/helpers.ts"),l=n("./src/validator.ts"),u=n("./src/error.ts"),c=n("./src/settings.ts"),p=n("./src/question_textbase.ts"),d=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),h=function(e){function t(t){var n=e.call(this,t)||this;return n._isWaitingForEnter=!1,n.onCompositionUpdate=function(e){n.isInputTextUpdate&&setTimeout((function(){n.updateValueOnEvent(e)}),1),n.updateRemainingCharacterCounter(e.target.value)},n.onKeyUp=function(e){n.isInputTextUpdate?n._isWaitingForEnter&&13!==e.keyCode||(n.updateValueOnEvent(e),n._isWaitingForEnter=!1):13===e.keyCode&&n.updateValueOnEvent(e),n.updateRemainingCharacterCounter(e.target.value)},n.onKeyDown=function(e){n.checkForUndo(e),n.isInputTextUpdate&&(n._isWaitingForEnter=229===e.keyCode),13===e.keyCode&&n.survey.questionEditFinishCallback(n,e)},n.onChange=function(e){e.target===c.settings.environment.root.activeElement?n.isInputTextUpdate&&n.updateValueOnEvent(e):n.updateValueOnEvent(e),n.updateRemainingCharacterCounter(e.target.value)},n.onBlur=function(e){n.updateValueOnEvent(e),n.updateRemainingCharacterCounter(e.target.value)},n.onFocus=function(e){n.updateRemainingCharacterCounter(e.target.value)},n.createLocalizableString("minErrorText",n,!0,"minError"),n.createLocalizableString("maxErrorText",n,!0,"maxError"),n.locDataListValue=new s.LocalizableStrings(n),n.locDataListValue.onValueChanged=function(e,t){n.propertyValueChanged("dataList",e,t)},n.registerPropertyChangedHandlers(["min","max","inputType","minValueExpression","maxValueExpression"],(function(){n.setRenderedMinMax()})),n.registerPropertyChangedHandlers(["inputType","size"],(function(){n.updateInputSize(),n.calcRenderedPlaceholder()})),n}return d(t,e),t.prototype.isTextValue=function(){return["text","number","password"].indexOf(this.inputType)>-1},t.prototype.getType=function(){return"text"},t.prototype.onSurveyLoad=function(){e.prototype.onSurveyLoad.call(this),this.setRenderedMinMax(),this.updateInputSize()},Object.defineProperty(t.prototype,"inputType",{get:function(){return this.getPropertyValue("inputType")},set:function(e){"datetime_local"!==(e=e.toLowerCase())&&"datetime"!==e||(e="datetime-local"),this.setPropertyValue("inputType",e.toLowerCase()),this.isLoadingFromJson||(this.min=void 0,this.max=void 0,this.step=void 0)},enumerable:!1,configurable:!0}),t.prototype.runCondition=function(t,n){e.prototype.runCondition.call(this,t,n),(this.minValueExpression||this.maxValueExpression)&&this.setRenderedMinMax(t,n)},t.prototype.isLayoutTypeSupported=function(e){return!0},Object.defineProperty(t.prototype,"size",{get:function(){return this.getPropertyValue("size")},set:function(e){this.setPropertyValue("size",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isTextInput",{get:function(){return["text","search","tel","url","email","password"].indexOf(this.inputType)>-1},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"inputSize",{get:function(){return this.getPropertyValue("inputSize",0)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"renderedInputSize",{get:function(){return this.getPropertyValue("inputSize")||null},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"inputWidth",{get:function(){return this.getPropertyValue("inputWidth")},enumerable:!1,configurable:!0}),t.prototype.updateInputSize=function(){var e=this.isTextInput&&this.size>0?this.size:0;this.isTextInput&&e<1&&this.parent&&this.parent.itemSize&&(e=this.parent.itemSize),this.setPropertyValue("inputSize",e),this.setPropertyValue("inputWidth",e>0?"auto":"")},Object.defineProperty(t.prototype,"autocomplete",{get:function(){return this.getPropertyValue("autocomplete",null)},set:function(e){this.setPropertyValue("autocomplete",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"min",{get:function(){return this.getPropertyValue("min")},set:function(e){this.isValueExpression(e)?this.minValueExpression=e.substring(1):this.setPropertyValue("min",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"max",{get:function(){return this.getPropertyValue("max")},set:function(e){this.isValueExpression(e)?this.maxValueExpression=e.substring(1):this.setPropertyValue("max",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"minValueExpression",{get:function(){return this.getPropertyValue("minValueExpression","")},set:function(e){this.setPropertyValue("minValueExpression",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"maxValueExpression",{get:function(){return this.getPropertyValue("maxValueExpression","")},set:function(e){this.setPropertyValue("maxValueExpression",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"renderedMin",{get:function(){return this.getPropertyValue("renderedMin")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"renderedMax",{get:function(){return this.getPropertyValue("renderedMax")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"minErrorText",{get:function(){return this.getLocalizableStringText("minErrorText")},set:function(e){this.setLocalizableStringText("minErrorText",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locMinErrorText",{get:function(){return this.getLocalizableString("minErrorText")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"maxErrorText",{get:function(){return this.getLocalizableStringText("maxErrorText")},set:function(e){this.setLocalizableStringText("maxErrorText",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locMaxErrorText",{get:function(){return this.getLocalizableString("maxErrorText")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isMinMaxType",{get:function(){return m(this)},enumerable:!1,configurable:!0}),t.prototype.onCheckForErrors=function(t,n){var r=this;if(e.prototype.onCheckForErrors.call(this,t,n),!n){if(this.isValueLessMin){var o=new u.CustomError(this.getMinMaxErrorText(this.minErrorText,this.getCalculatedMinMax(this.renderedMin)),this);o.onUpdateErrorTextCallback=function(e){e.text=r.getMinMaxErrorText(r.minErrorText,r.getCalculatedMinMax(r.renderedMin))},t.push(o)}if(this.isValueGreaterMax){var i=new u.CustomError(this.getMinMaxErrorText(this.maxErrorText,this.getCalculatedMinMax(this.renderedMax)),this);i.onUpdateErrorTextCallback=function(e){e.text=r.getMinMaxErrorText(r.maxErrorText,r.getCalculatedMinMax(r.renderedMax))},t.push(i)}var s=this.getValidatorTitle(),a=new l.EmailValidator;if("email"===this.inputType&&!this.validators.some((function(e){return"emailvalidator"===e.getType()}))){var c=a.validate(this.value,s);c&&c.error&&t.push(c.error)}}},t.prototype.canSetValueToSurvey=function(){if(!this.isMinMaxType)return!0;var e=!this.isValueLessMin&&!this.isValueGreaterMax;return"number"===this.inputType&&this.survey&&(this.survey.isValidateOnValueChanging||this.survey.isValidateOnValueChanged)&&this.hasErrors(),e},t.prototype.convertFuncValuetoQuestionValue=function(e){return a.Helpers.convertValToQuestionVal(e,this.inputType)},t.prototype.getMinMaxErrorText=function(e,t){if(a.Helpers.isValueEmpty(t))return e;var n=t.toString();return"date"===this.inputType&&t.toDateString&&(n=t.toDateString()),e.replace("{0}",n)},Object.defineProperty(t.prototype,"isValueLessMin",{get:function(){return!this.isValueEmpty(this.renderedMin)&&!this.isEmpty()&&this.getCalculatedMinMax(this.value)<this.getCalculatedMinMax(this.renderedMin)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isValueGreaterMax",{get:function(){return!this.isValueEmpty(this.renderedMax)&&!this.isEmpty()&&this.getCalculatedMinMax(this.value)>this.getCalculatedMinMax(this.renderedMax)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isDateInputType",{get:function(){return"date"===this.inputType||"datetime-local"===this.inputType},enumerable:!1,configurable:!0}),t.prototype.getCalculatedMinMax=function(e){return this.isValueEmpty(e)?e:this.isDateInputType?new Date(e):e},t.prototype.setRenderedMinMax=function(e,t){var n=this;void 0===e&&(e=null),void 0===t&&(t=null),this.minValueRunner=this.getDefaultRunner(this.minValueRunner,this.minValueExpression),this.setValueAndRunExpression(this.minValueRunner,this.min,(function(e){!e&&n.isDateInputType&&c.settings.minDate&&(e=c.settings.minDate),n.setPropertyValue("renderedMin",e)}),e,t),this.maxValueRunner=this.getDefaultRunner(this.maxValueRunner,this.maxValueExpression),this.setValueAndRunExpression(this.maxValueRunner,this.max,(function(e){!e&&n.isDateInputType&&(e=c.settings.maxDate?c.settings.maxDate:"2999-12-31"),n.setPropertyValue("renderedMax",e)}),e,t)},Object.defineProperty(t.prototype,"step",{get:function(){return this.getPropertyValue("step")},set:function(e){this.setPropertyValue("step",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"renderedStep",{get:function(){return this.isValueEmpty(this.step)?"number"!==this.inputType?void 0:"any":this.step},enumerable:!1,configurable:!0}),t.prototype.supportGoNextPageAutomatic=function(){return!this.isSurveyInputTextUpdate&&["date","datetime-local"].indexOf(this.inputType)<0},t.prototype.supportGoNextPageError=function(){return["date","datetime-local"].indexOf(this.inputType)<0},Object.defineProperty(t.prototype,"dataList",{get:function(){return this.locDataList.value},set:function(e){this.locDataList.value=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locDataList",{get:function(){return this.locDataListValue},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"dataListId",{get:function(){return this.locDataList.hasValue()?this.id+"_datalist":void 0},enumerable:!1,configurable:!0}),t.prototype.canRunValidators=function(e){return this.errors.length>0||!e||this.supportGoNextPageError()},t.prototype.setNewValue=function(t){t=this.correctValueType(t),e.prototype.setNewValue.call(this,t)},t.prototype.correctValueType=function(e){return!e||"number"!=this.inputType&&"range"!=this.inputType?e:a.Helpers.isNumber(e)?a.Helpers.getNumber(e):""},t.prototype.hasPlaceHolder=function(){return!this.isReadOnly&&"range"!==this.inputType},t.prototype.isReadOnlyRenderDiv=function(){return this.isReadOnly&&"div"===c.settings.readOnly.textRenderMode},Object.defineProperty(t.prototype,"inputStyle",{get:function(){var e={};return e.width=this.inputWidth,e},enumerable:!1,configurable:!0}),t.prototype.updateValueOnEvent=function(e){var t=e.target.value;this.isTwoValueEquals(this.value,t)||(this.value=t)},t}(p.QuestionTextBase),f=["number","range","date","datetime-local","month","time","week"];function m(e){var t=e?e.inputType:"";return!!t&&f.indexOf(t)>-1}function g(e,t){var n=e.split(t);return 2!==n.length?-1:a.Helpers.isNumber(n[0])&&a.Helpers.isNumber(n[1])?60*parseFloat(n[0])+parseFloat(n[1]):-1}function y(e,t,n,r){var o=r?n:t;if(!m(e))return o;if(a.Helpers.isValueEmpty(t)||a.Helpers.isValueEmpty(n))return o;if(0===e.inputType.indexOf("date")||"month"===e.inputType){var i="month"===e.inputType,s=new Date(i?t+"-1":t),l=new Date(i?n+"-1":n);if(!s||!l)return o;if(s>l)return r?t:n}if("week"===e.inputType||"time"===e.inputType)return function(e,t,n){var r=g(e,n),o=g(t,n);return!(r<0||o<0)&&r>o}(t,n,"week"===e.inputType?"-W":":")?r?t:n:o;if("number"===e.inputType){if(!a.Helpers.isNumber(t)||!a.Helpers.isNumber(n))return o;if(a.Helpers.getNumber(t)>a.Helpers.getNumber(n))return r?t:n}return"string"==typeof t||"string"==typeof n?o:t>n?r?t:n:o}function v(e,t){e&&e.inputType&&(t.inputType="range"!==e.inputType?e.inputType:"number",t.textUpdateMode="onBlur")}i.Serializer.addClass("text",[{name:"inputType",default:"text",choices:c.settings.questions.inputTypes},{name:"size:number",minValue:0,dependsOn:"inputType",visibleIf:function(e){return!!e&&e.isTextInput}},{name:"textUpdateMode",default:"default",choices:["default","onBlur","onTyping"],dependsOn:"inputType",visibleIf:function(e){return!!e&&e.isTextInput}},{name:"autocomplete",alternativeName:"autoComplete",choices:c.settings.questions.dataList},{name:"min",dependsOn:"inputType",visibleIf:function(e){return m(e)},onPropertyEditorUpdate:function(e,t){v(e,t)},onSettingValue:function(e,t){return y(e,t,e.max,!1)}},{name:"max",dependsOn:"inputType",nextToProperty:"*min",visibleIf:function(e){return m(e)},onSettingValue:function(e,t){return y(e,e.min,t,!0)},onPropertyEditorUpdate:function(e,t){v(e,t)}},{name:"minValueExpression:expression",category:"logic",dependsOn:"inputType",visibleIf:function(e){return m(e)}},{name:"maxValueExpression:expression",category:"logic",dependsOn:"inputType",visibleIf:function(e){return m(e)}},{name:"minErrorText",serializationProperty:"locMinErrorText",dependsOn:"inputType",visibleIf:function(e){return m(e)}},{name:"maxErrorText",serializationProperty:"locMaxErrorText",dependsOn:"inputType",visibleIf:function(e){return m(e)}},{name:"step:number",dependsOn:"inputType",visibleIf:function(e){return!!e&&("number"===e.inputType||"range"===e.inputType)}},{name:"maxLength:number",default:-1,dependsOn:"inputType",visibleIf:function(e){return!!e&&e.isTextInput}},{name:"placeholder",alternativeName:"placeHolder",serializationProperty:"locPlaceholder",dependsOn:"inputType",visibleIf:function(e){return!!e&&e.isTextInput}},{name:"dataList:string[]",serializationProperty:"locDataList",dependsOn:"inputType",visibleIf:function(e){return!!e&&"text"===e.inputType}}],(function(){return new h("")}),"textbase"),o.QuestionFactory.Instance.registerQuestion("text",(function(e){return new h(e)}))},"./src/question_textbase.ts":function(e,t,n){"use strict";n.r(t),n.d(t,"CharacterCounter",(function(){return p})),n.d(t,"QuestionTextBase",(function(){return d}));var r,o=n("./src/question.ts"),i=n("./src/jsonobject.ts"),s=n("./src/helpers.ts"),a=n("./src/utils/cssClassBuilder.ts"),l=n("./src/base.ts"),u=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),c=function(e,t,n,r){var o,i=arguments.length,s=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,r);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(i<3?o(s):i>3?o(t,n,s):o(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},p=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return u(t,e),t.prototype.updateRemainingCharacterCounter=function(e,t){this.remainingCharacterCounter=s.Helpers.getRemainingCharacterCounterText(e,t)},c([Object(i.property)()],t.prototype,"remainingCharacterCounter",void 0),t}(l.Base),d=function(e){function t(t){var n=e.call(this,t)||this;return n.characterCounter=new p,n.disableNativeUndoRedo=!1,n}return u(t,e),t.prototype.isTextValue=function(){return!0},Object.defineProperty(t.prototype,"maxLength",{get:function(){return this.getPropertyValue("maxLength")},set:function(e){this.setPropertyValue("maxLength",e),this.updateRemainingCharacterCounter(this.value)},enumerable:!1,configurable:!0}),t.prototype.getMaxLength=function(){return s.Helpers.getMaxLength(this.maxLength,this.survey?this.survey.maxTextLength:-1)},t.prototype.updateRemainingCharacterCounter=function(e){this.characterCounter.updateRemainingCharacterCounter(e,this.getMaxLength())},Object.defineProperty(t.prototype,"placeHolder",{get:function(){return this.placeholder},set:function(e){this.placeholder=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locPlaceHolder",{get:function(){return this.locPlaceholder},enumerable:!1,configurable:!0}),t.prototype.getType=function(){return"textbase"},t.prototype.isEmpty=function(){return e.prototype.isEmpty.call(this)||""===this.value},Object.defineProperty(t.prototype,"textUpdateMode",{get:function(){return this.getPropertyValue("textUpdateMode")},set:function(e){this.setPropertyValue("textUpdateMode",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isSurveyInputTextUpdate",{get:function(){return"default"==this.textUpdateMode?!!this.survey&&this.survey.isUpdateValueTextOnTyping:"onTyping"==this.textUpdateMode},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"renderedPlaceholder",{get:function(){return this.getPropertyValue("renderedPlaceholder")},enumerable:!1,configurable:!0}),t.prototype.setRenderedPlaceholder=function(e){this.setPropertyValue("renderedPlaceholder",e)},t.prototype.onReadOnlyChanged=function(){e.prototype.onReadOnlyChanged.call(this),this.calcRenderedPlaceholder()},t.prototype.onSurveyLoad=function(){this.calcRenderedPlaceholder(),e.prototype.onSurveyLoad.call(this)},t.prototype.localeChanged=function(){e.prototype.localeChanged.call(this),this.calcRenderedPlaceholder()},t.prototype.setSurveyImpl=function(t,n){e.prototype.setSurveyImpl.call(this,t,n),this.calcRenderedPlaceholder()},t.prototype.calcRenderedPlaceholder=function(){var e=this.placeHolder;e&&!this.hasPlaceHolder()&&(e=void 0),this.setRenderedPlaceholder(e)},t.prototype.hasPlaceHolder=function(){return!this.isReadOnly},t.prototype.setNewValue=function(t){e.prototype.setNewValue.call(this,t),this.updateRemainingCharacterCounter(t)},t.prototype.setQuestionValue=function(t,n){void 0===n&&(n=!0),e.prototype.setQuestionValue.call(this,t,n),this.updateRemainingCharacterCounter(t)},t.prototype.checkForUndo=function(e){this.disableNativeUndoRedo&&this.isInputTextUpdate&&(e.ctrlKey||e.metaKey)&&-1!==[89,90].indexOf(e.keyCode)&&e.preventDefault()},t.prototype.getControlClass=function(){return(new a.CssClassBuilder).append(this.cssClasses.root).append(this.cssClasses.onError,this.errors.length>0).append(this.cssClasses.controlDisabled,this.isReadOnly).toString()},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}),Object.defineProperty(t.prototype,"ariaInvalid",{get:function(){return null},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"ariaLabel",{get:function(){return null},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"ariaLabelledBy",{get:function(){return null},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"ariaDescribedBy",{get:function(){return null},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"a11y_input_ariaRole",{get:function(){return"textbox"},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.errors.length>0?"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.errors.length>0?this.id+"_errors":null},enumerable:!1,configurable:!0}),c([Object(i.property)({localizable:!0,onSet:function(e,t){return t.calcRenderedPlaceholder()}})],t.prototype,"placeholder",void 0),t}(o.Question);i.Serializer.addClass("textbase",[],(function(){return new d("")}),"question")},"./src/questionfactory.ts":function(e,t,n){"use strict";n.r(t),n.d(t,"QuestionFactory",(function(){return i})),n.d(t,"ElementFactory",(function(){return s}));var r=n("./src/surveyStrings.ts"),o=n("./src/jsonobject.ts"),i=function(){function e(){}return Object.defineProperty(e,"DefaultChoices",{get:function(){return[r.surveyLocalization.getString("choices_Item")+"1",r.surveyLocalization.getString("choices_Item")+"2",r.surveyLocalization.getString("choices_Item")+"3"]},enumerable:!1,configurable:!0}),Object.defineProperty(e,"DefaultColums",{get:function(){var e=r.surveyLocalization.getString("matrix_column")+" ";return[e+"1",e+"2",e+"3"]},enumerable:!1,configurable:!0}),Object.defineProperty(e,"DefaultRows",{get:function(){var e=r.surveyLocalization.getString("matrix_row")+" ";return[e+"1",e+"2"]},enumerable:!1,configurable:!0}),Object.defineProperty(e,"DefaultMutlipleTextItems",{get:function(){var e=r.surveyLocalization.getString("multipletext_itemname");return[e+"1",e+"2"]},enumerable:!1,configurable:!0}),e.prototype.registerQuestion=function(e,t){s.Instance.registerElement(e,t)},e.prototype.registerCustomQuestion=function(e){s.Instance.registerCustomQuestion(e)},e.prototype.unregisterElement=function(e,t){void 0===t&&(t=!1),s.Instance.unregisterElement(e,t)},e.prototype.clear=function(){s.Instance.clear()},e.prototype.getAllTypes=function(){return s.Instance.getAllTypes()},e.prototype.createQuestion=function(e,t){return s.Instance.createElement(e,t)},e.Instance=new e,e}(),s=function(){function e(){var e=this;this.creatorHash={},this.registerCustomQuestion=function(t){e.registerElement(t,(function(e){var n=o.Serializer.createClass(t);return n&&(n.name=e),n}))}}return e.prototype.registerElement=function(e,t){this.creatorHash[e]=t},e.prototype.clear=function(){this.creatorHash={}},e.prototype.unregisterElement=function(e,t){void 0===t&&(t=!1),delete this.creatorHash[e],t&&o.Serializer.removeClass(e)},e.prototype.getAllTypes=function(){var e=new Array;for(var t in this.creatorHash)e.push(t);return e.sort()},e.prototype.createElement=function(e,t){var n=this.creatorHash[e];return n?n(t):null},e.Instance=new e,e}()},"./src/questionnonvalue.ts":function(e,t,n){"use strict";n.r(t),n.d(t,"QuestionNonValue",(function(){return a}));var r,o=n("./src/question.ts"),i=n("./src/jsonobject.ts"),s=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),a=function(e){function t(t){return e.call(this,t)||this}return s(t,e),t.prototype.getType=function(){return"nonvalue"},Object.defineProperty(t.prototype,"hasInput",{get:function(){return!1},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hasTitle",{get:function(){return!1},enumerable:!1,configurable:!0}),t.prototype.getTitleLocation=function(){return""},Object.defineProperty(t.prototype,"hasComment",{get:function(){return!1},enumerable:!1,configurable:!0}),t.prototype.hasErrors=function(e,t){return void 0===e&&(e=!0),void 0===t&&(t=null),!1},t.prototype.getAllErrors=function(){return[]},t.prototype.supportGoNextPageAutomatic=function(){return!1},t.prototype.addConditionObjectsByContext=function(e,t){},t.prototype.getConditionJson=function(e,t){return void 0===e&&(e=null),void 0===t&&(t=null),null},t}(o.Question);i.Serializer.addClass("nonvalue",[{name:"title",visible:!1},{name:"description",visible:!1},{name:"valueName",visible:!1},{name:"enableIf",visible:!1},{name:"defaultValue",visible:!1},{name:"correctAnswer",visible:!1},{name:"clearIfInvisible",visible:!1},{name:"isRequired",visible:!1,isSerializable:!1},{name:"requiredErrorText",visible:!1},{name:"readOnly",visible:!1},{name:"requiredIf",visible:!1},{name:"validators",visible:!1},{name:"titleLocation",visible:!1},{name:"showCommentArea",visible:!1},{name:"useDisplayValuesInDynamicTexts",alternativeName:"useDisplayValuesInTitle",visible:!1}],(function(){return new a("")}),"question")},"./src/rendererFactory.ts":function(e,t,n){"use strict";n.r(t),n.d(t,"RendererFactory",(function(){return r}));var r=function(){function e(){this.renderersHash={}}return e.prototype.unregisterRenderer=function(e,t){delete this.renderersHash[e][t]},e.prototype.registerRenderer=function(e,t,n){this.renderersHash[e]||(this.renderersHash[e]={}),this.renderersHash[e][t]=n},e.prototype.getRenderer=function(e,t){return this.renderersHash[e]&&this.renderersHash[e][t]||"default"},e.prototype.getRendererByQuestion=function(e){return this.getRenderer(e.getType(),e.renderAs)},e.prototype.clear=function(){this.renderersHash={}},e.Instance=new e,e}()},"./src/settings.ts":function(e,t,n){"use strict";n.r(t),n.d(t,"settings",(function(){return o}));var r=globalThis.document,o={designMode:{showEmptyDescriptions:!0,showEmptyTitles:!0},get allowShowEmptyDescriptionInDesignMode(){return this.designMode.showEmptyDescriptions},set allowShowEmptyDescriptionInDesignMode(e){this.designMode.showEmptyDescriptions=e},get allowShowEmptyTitleInDesignMode(){return this.designMode.showEmptyTitles},set allowShowEmptyTitleInDesignMode(e){this.designMode.showEmptyTitles=e},localization:{useLocalTimeZone:!0,storeDuplicatedTranslations:!1,defaultLocaleName:"default"},get useLocalTimeZone(){return this.localization.useLocalTimeZone},set useLocalTimeZone(e){this.localization.useLocalTimeZone=e},get storeDuplicatedTranslations(){return this.localization.storeDuplicatedTranslations},set storeDuplicatedTranslations(e){this.localization.storeDuplicatedTranslations=e},get defaultLocaleName(){return this.localization.defaultLocaleName},set defaultLocaleName(e){this.localization.defaultLocaleName=e},web:{encodeUrlParams:!0,cacheLoadedChoices:!0,disableQuestionWhileLoadingChoices:!1,surveyServiceUrl:"https://api.surveyjs.io/public/v1/Survey"},get webserviceEncodeParameters(){return this.web.encodeUrlParams},set webserviceEncodeParameters(e){this.web.encodeUrlParams=e},get useCachingForChoicesRestful(){return this.web.cacheLoadedChoices},set useCachingForChoicesRestful(e){this.web.cacheLoadedChoices=e},get useCachingForChoicesRestfull(){return this.web.cacheLoadedChoices},set useCachingForChoicesRestfull(e){this.web.cacheLoadedChoices=e},get disableOnGettingChoicesFromWeb(){return this.web.disableQuestionWhileLoadingChoices},set disableOnGettingChoicesFromWeb(e){this.web.disableQuestionWhileLoadingChoices=e},get surveyServiceUrl(){return this.web.surveyServiceUrl},set surveyServiceUrl(e){this.web.surveyServiceUrl=e},triggers:{changeNavigationButtonsOnComplete:!0,executeCompleteOnValueChanged:!1,executeSkipOnValueChanged:!0},get executeCompleteTriggerOnValueChanged(){return this.triggers.executeCompleteOnValueChanged},set executeCompleteTriggerOnValueChanged(e){this.triggers.executeCompleteOnValueChanged=e},get changeNavigationButtonsOnCompleteTrigger(){return this.triggers.changeNavigationButtonsOnComplete},set changeNavigationButtonsOnCompleteTrigger(e){this.triggers.changeNavigationButtonsOnComplete=e},get executeSkipTriggerOnValueChanged(){return this.triggers.executeSkipOnValueChanged},set executeSkipTriggerOnValueChanged(e){this.triggers.executeSkipOnValueChanged=e},serialization:{itemValueSerializeAsObject:!1,itemValueSerializeDisplayText:!1,localizableStringSerializeAsObject:!1},get itemValueAlwaysSerializeAsObject(){return this.serialization.itemValueSerializeAsObject},set itemValueAlwaysSerializeAsObject(e){this.serialization.itemValueSerializeAsObject=e},get itemValueAlwaysSerializeText(){return this.serialization.itemValueSerializeDisplayText},set itemValueAlwaysSerializeText(e){this.serialization.itemValueSerializeDisplayText=e},get serializeLocalizableStringAsObject(){return this.serialization.localizableStringSerializeAsObject},set serializeLocalizableStringAsObject(e){this.serialization.localizableStringSerializeAsObject=e},lazyRender:{enabled:!1,firstBatchSize:3},get lazyRowsRendering(){return this.lazyRender.enabled},set lazyRowsRendering(e){this.lazyRender.enabled=e},get lazyRowsRenderingStartRow(){return this.lazyRender.firstBatchSize},set lazyRowsRenderingStartRow(e){this.lazyRender.firstBatchSize=e},matrix:{defaultCellType:"dropdown",defaultRowName:"default",totalsSuffix:"-total",maxRowCount:1e3,maxRowCountInCondition:1,renderRemoveAsIcon:!0,columnWidthsByType:{file:{minWidth:"240px"},comment:{minWidth:"200px"}},rateSize:"small"},get matrixDefaultRowName(){return this.matrix.defaultRowName},set matrixDefaultRowName(e){this.matrix.defaultRowName=e},get matrixDefaultCellType(){return this.matrix.defaultCellType},set matrixDefaultCellType(e){this.matrix.defaultCellType=e},get matrixTotalValuePostFix(){return this.matrix.totalsSuffix},set matrixTotalValuePostFix(e){this.matrix.totalsSuffix=e},get matrixMaximumRowCount(){return this.matrix.maxRowCount},set matrixMaximumRowCount(e){this.matrix.maxRowCount=e},get matrixMaxRowCountInCondition(){return this.matrix.maxRowCountInCondition},set matrixMaxRowCountInCondition(e){this.matrix.maxRowCountInCondition=e},get matrixRenderRemoveAsIcon(){return this.matrix.renderRemoveAsIcon},set matrixRenderRemoveAsIcon(e){this.matrix.renderRemoveAsIcon=e},panel:{maxPanelCount:100,maxPanelCountInCondition:1},get panelDynamicMaxPanelCountInCondition(){return this.panel.maxPanelCountInCondition},set panelDynamicMaxPanelCountInCondition(e){this.panel.maxPanelCountInCondition=e},get panelMaximumPanelCount(){return this.panel.maxPanelCount},set panelMaximumPanelCount(e){this.panel.maxPanelCount=e},readOnly:{commentRenderMode:"textarea",textRenderMode:"input"},get readOnlyCommentRenderMode(){return this.readOnly.commentRenderMode},set readOnlyCommentRenderMode(e){this.readOnly.commentRenderMode=e},get readOnlyTextRenderMode(){return this.readOnly.textRenderMode},set readOnlyTextRenderMode(e){this.readOnly.textRenderMode=e},numbering:{includeQuestionsWithHiddenNumber:!1,includeQuestionsWithHiddenTitle:!1},get setQuestionVisibleIndexForHiddenTitle(){return this.numbering.includeQuestionsWithHiddenTitle},set setQuestionVisibleIndexForHiddenTitle(e){this.numbering.includeQuestionsWithHiddenTitle=e},get setQuestionVisibleIndexForHiddenNumber(){return this.numbering.includeQuestionsWithHiddenNumber},set setQuestionVisibleIndexForHiddenNumber(e){this.numbering.includeQuestionsWithHiddenNumber=e},enterKeyAction:"default",comparator:{trimStrings:!0,caseSensitive:!1,normalizeTextCallback:function(e,t){return e}},expressionDisableConversionChar:"#",get commentPrefix(){return o.commentSuffix},set commentPrefix(e){o.commentSuffix=e},commentSuffix:"-Comment",itemValueSeparator:"|",ratingMaximumRateValueCount:20,tagboxCloseOnSelect:!1,confirmActionFunc:function(e){return confirm(e)},minWidth:"300px",maxWidth:"100%",maxConditionRunCountOnValueChanged:10,notifications:{lifetime:2e3},showItemsInOrder:"default",noneItemValue:"none",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:r?{root:r,_rootElement:r.body,get rootElement(){var e;return null!==(e=this._rootElement)&&void 0!==e?e:r.body},set rootElement(e){this._rootElement=e},_popupMountContainer:r.body,get popupMountContainer(){var e;return null!==(e=this._popupMountContainer)&&void 0!==e?e:r.body},set popupMountContainer(e){this._popupMountContainer=e},svgMountContainer:r.head,stylesSheetsMountContainer:r.head}:void 0,showMaxLengthIndicator:!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"]}}},"./src/stylesmanager.ts":function(e,t,n){"use strict";n.r(t),n.d(t,"modernThemeColors",(function(){return s})),n.d(t,"defaultThemeColors",(function(){return a})),n.d(t,"orangeThemeColors",(function(){return l})),n.d(t,"darkblueThemeColors",(function(){return u})),n.d(t,"darkroseThemeColors",(function(){return c})),n.d(t,"stoneThemeColors",(function(){return p})),n.d(t,"winterThemeColors",(function(){return d})),n.d(t,"winterstoneThemeColors",(function(){return h})),n.d(t,"StylesManager",(function(){return f}));var r=n("./src/defaultCss/defaultV2Css.ts"),o=n("./src/settings.ts"),i=n("./src/utils/utils.ts"),s={"$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"},a={"$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"},l={"$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"},u={"$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"},c={"$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"},p={"$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"},d={"$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"},h={"$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"},f=function(){function e(){e.autoApplyTheme()}return e.autoApplyTheme=function(){if("bootstrap"!==r.surveyCss.currentType&&"bootstrapmaterial"!==r.surveyCss.currentType){var t=e.getIncludedThemeCss();1===t.length&&e.applyTheme(t[0].name)}},e.getAvailableThemes=function(){return r.surveyCss.getAvailableThemes().filter((function(e){return-1!==["defaultV2","default","modern"].indexOf(e)})).map((function(e){return{name:e,theme:r.surveyCss[e]}}))},e.getIncludedThemeCss=function(){if(void 0===o.settings.environment)return[];var t=o.settings.environment.rootElement,n=e.getAvailableThemes(),r=Object(i.isShadowDOM)(t)?t.host:t;if(r){var s=getComputedStyle(r);if(s.length)return n.filter((function(e){return e.theme.variables&&s.getPropertyValue(e.theme.variables.themeMark)}))}return[]},e.findSheet=function(e){if(void 0===o.settings.environment)return null;for(var t=o.settings.environment.root.styleSheets,n=0;n<t.length;n++)if(t[n].ownerNode&&t[n].ownerNode.id===e)return t[n];return null},e.createSheet=function(t){var n=o.settings.environment.stylesSheetsMountContainer,r=document.createElement("style");return r.id=t,r.appendChild(document.createTextNode("")),Object(i.getElement)(n).appendChild(r),e.Logger&&e.Logger.log("style sheet "+t+" created"),r.sheet},e.applyTheme=function(t,n){if(void 0===t&&(t="default"),void 0!==o.settings.environment){var s=o.settings.environment.rootElement,a=Object(i.isShadowDOM)(s)?s.host:s;if(r.surveyCss.currentType=t,e.Enabled){if("bootstrap"!==t&&"bootstrapmaterial"!==t)return function(e,t){Object.keys(e||{}).forEach((function(n){var r=n.substring(1);t.style.setProperty("--"+r,e[n])}))}(e.ThemeColors[t],a),void(e.Logger&&e.Logger.log("apply theme "+t+" completed"));var l=e.ThemeCss[t];if(!l)return void(r.surveyCss.currentType="defaultV2");e.insertStylesRulesIntoDocument();var u=n||e.ThemeSelector[t]||e.ThemeSelector.default,c=(t+u).trim(),p=e.findSheet(c);if(!p){p=e.createSheet(c);var d=e.ThemeColors[t]||e.ThemeColors.default;Object.keys(l).forEach((function(e){var t=l[e];Object.keys(d||{}).forEach((function(e){return t=t.replace(new RegExp("\\"+e,"g"),d[e])}));try{0===e.indexOf("body")?p.insertRule(e+" { "+t+" }",0):p.insertRule(u+e+" { "+t+" }",0)}catch(e){}}))}}e.Logger&&e.Logger.log("apply theme "+t+" completed")}},e.insertStylesRulesIntoDocument=function(){if(e.Enabled){var t=e.findSheet(e.SurveyJSStylesSheetId);t||(t=e.createSheet(e.SurveyJSStylesSheetId)),Object.keys(e.Styles).length&&Object.keys(e.Styles).forEach((function(n){try{t.insertRule(n+" { "+e.Styles[n]+" }",0)}catch(e){}})),Object.keys(e.Media).length&&Object.keys(e.Media).forEach((function(n){try{t.insertRule(e.Media[n].media+" { "+n+" { "+e.Media[n].style+" } }",0)}catch(e){}}))}},e.SurveyJSStylesSheetId="surveyjs-styles",e.Styles={},e.Media={},e.ThemeColors={modern:s,default:a,orange:l,darkblue:u,darkrose:c,stone:p,winter:d,winterstone:h},e.ThemeCss={},e.ThemeSelector={default:".sv_main ",modern:".sv-root-modern "},e.Enabled=!0,e}()},"./src/survey-element.ts":function(e,t,n){"use strict";n.r(t),n.d(t,"SurveyElementCore",(function(){return f})),n.d(t,"DragTypeOverMeEnum",(function(){return o})),n.d(t,"SurveyElement",(function(){return m}));var r,o,i=n("./src/jsonobject.ts"),s=n("./src/base.ts"),a=n("./src/actions/adaptive-container.ts"),l=n("./src/helpers.ts"),u=n("./src/settings.ts"),c=n("./src/actions/container.ts"),p=n("./src/utils/cssClassBuilder.ts"),d=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),h=function(e,t,n,r){var o,i=arguments.length,s=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,r);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(i<3?o(s):i>3?o(t,n,s):o(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},f=function(e){function t(){var t=e.call(this)||this;return t.createLocTitleProperty(),t}return d(t,e),t.prototype.createLocTitleProperty=function(){return this.createLocalizableString("title",this,!0)},Object.defineProperty(t.prototype,"title",{get:function(){return this.getLocalizableStringText("title",this.getDefaultTitleValue())},set:function(e){this.setLocalizableStringText("title",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locTitle",{get:function(){return this.getLocalizableString("title")},enumerable:!1,configurable:!0}),t.prototype.getDefaultTitleValue=function(){},t.prototype.updateDescriptionVisibility=function(e){var t=!1;if(this.isDesignMode){var n=i.Serializer.findProperty(this.getType(),"description");t=!!(null==n?void 0:n.placeholder)}this.hasDescription=!!e||t},Object.defineProperty(t.prototype,"locDescription",{get:function(){return this.getLocalizableString("description")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"titleTagName",{get:function(){var e=this.getDefaultTitleTagName(),t=this.getSurvey();return t?t.getElementTitleTagName(this,e):e},enumerable:!1,configurable:!0}),t.prototype.getDefaultTitleTagName=function(){return u.settings.titleTags[this.getType()]},Object.defineProperty(t.prototype,"hasTitle",{get:function(){return this.title.length>0},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hasTitleActions",{get:function(){return!1},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hasTitleEvents",{get:function(){return this.hasTitleActions},enumerable:!1,configurable:!0}),t.prototype.getTitleToolbar=function(){return null},t.prototype.getTitleOwner=function(){},Object.defineProperty(t.prototype,"isTitleOwner",{get:function(){return!!this.getTitleOwner()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isTitleRenderedAsString",{get:function(){return this.getIsTitleRenderedAsString()},enumerable:!1,configurable:!0}),t.prototype.toggleState=function(){},Object.defineProperty(t.prototype,"cssClasses",{get:function(){return{}},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"cssTitle",{get:function(){return""},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"ariaTitleId",{get:function(){},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"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},h([Object(i.property)()],t.prototype,"hasDescription",void 0),h([Object(i.property)({localizable:!0,onSet:function(e,t){t.updateDescriptionVisibility(e)}})],t.prototype,"description",void 0),t}(s.Base);!function(e){e[e.InsideEmptyPanel=1]="InsideEmptyPanel",e[e.MultilineRight=2]="MultilineRight",e[e.MultilineLeft=3]="MultilineLeft",e[e.Top=4]="Top",e[e.Right=5]="Right",e[e.Bottom=6]="Bottom",e[e.Left=7]="Left"}(o||(o={}));var m=function(e){function t(n){var r=e.call(this)||this;return r.selectedElementInDesignValue=r,r.disableDesignActions=t.CreateDisabledDesignElements,r.parentQuestionValue=null,r.isContentElement=!1,r.isEditableTemplateElement=!1,r.isInteractiveDesignElement=!0,r.isSingleInRow=!0,r.name=n,r.createNewArray("errors"),r.createNewArray("titleActions"),r.registerPropertyChangedHandlers(["isReadOnly"],(function(){r.onReadOnlyChanged()})),r.registerPropertyChangedHandlers(["errors"],(function(){r.updateVisibleErrors()})),r.registerPropertyChangedHandlers(["isSingleInRow"],(function(){r.updateElementCss(!1)})),r}return d(t,e),t.getProgressInfoByElements=function(e,t){for(var n=s.Base.createProgressInfo(),r=0;r<e.length;r++)if(e[r].isVisible){var o=e[r].getProgressInfo();n.questionCount+=o.questionCount,n.answeredQuestionCount+=o.answeredQuestionCount,n.requiredQuestionCount+=o.requiredQuestionCount,n.requiredAnsweredQuestionCount+=o.requiredAnsweredQuestionCount}return t&&n.questionCount>0&&(0==n.requiredQuestionCount&&(n.requiredQuestionCount=1),n.answeredQuestionCount>0&&(n.requiredAnsweredQuestionCount=1)),n},t.ScrollElementToTop=function(e){var t=u.settings.environment.root;if(!e||void 0===t)return!1;var n=t.getElementById(e);if(!n||!n.scrollIntoView)return!1;var r=n.getBoundingClientRect().top;return r<0&&n.scrollIntoView(),r<0},t.GetFirstNonTextElement=function(e,t){if(void 0===t&&(t=!1),!e||!e.length||0==e.length)return null;if(t){var n=e[0];"#text"===n.nodeName&&(n.data=""),"#text"===(n=e[e.length-1]).nodeName&&(n.data="")}for(var r=0;r<e.length;r++)if("#text"!=e[r].nodeName&&"#comment"!=e[r].nodeName)return e[r];return null},t.FocusElement=function(e){if(!e||"undefined"==typeof document)return!1;var n=t.focusElementCore(e);return n||setTimeout((function(){t.focusElementCore(e)}),10),n},t.focusElementCore=function(e){var t=u.settings.environment.root;if(!t)return!1;var n=t.getElementById(e);return!(!n||n.disabled||"none"===n.style.display||null===n.offsetParent||(n.focus(),0))},t.prototype.onPropertyValueChanged=function(t,n,r){e.prototype.onPropertyValueChanged.call(this,t,n,r),"state"===t&&(this.updateElementCss(!1),this.stateChangedCallback&&this.stateChangedCallback())},t.prototype.getSkeletonComponentNameCore=function(){return this.survey?this.survey.getSkeletonComponentName(this):""},Object.defineProperty(t.prototype,"parentQuestion",{get:function(){return this.parentQuestionValue},enumerable:!1,configurable:!0}),t.prototype.setParentQuestion=function(e){this.parentQuestionValue=e,this.onParentQuestionChanged()},t.prototype.onParentQuestionChanged=function(){},Object.defineProperty(t.prototype,"skeletonComponentName",{get:function(){return this.getSkeletonComponentNameCore()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"state",{get:function(){return this.getPropertyValue("state")},set:function(e){this.setPropertyValue("state",e),this.notifyStateChanged()},enumerable:!1,configurable:!0}),t.prototype.notifyStateChanged=function(){this.survey&&this.survey.elementContentVisibilityChanged(this)},Object.defineProperty(t.prototype,"isCollapsed",{get:function(){if(!this.isDesignMode)return"collapsed"===this.state},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isExpanded",{get:function(){return"expanded"===this.state},enumerable:!1,configurable:!0}),t.prototype.collapse=function(){this.isDesignMode||(this.state="collapsed")},t.prototype.expand=function(){this.state="expanded"},t.prototype.toggleState=function(){return this.isCollapsed?(this.expand(),!0):!this.isExpanded||(this.collapse(),!1)},Object.defineProperty(t.prototype,"hasStateButton",{get:function(){return this.isExpanded||this.isCollapsed},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"shortcutText",{get:function(){return this.title||this.name},enumerable:!1,configurable:!0}),t.prototype.getTitleToolbar=function(){return this.titleToolbarValue||(this.titleToolbarValue=this.createActionContainer(!0),this.titleToolbarValue.containerCss=(this.isPanel?this.cssClasses.panel.titleBar:this.cssClasses.titleBar)||"sv-action-title-bar",this.titleToolbarValue.setItems(this.getTitleActions())),this.titleToolbarValue},t.prototype.createActionContainer=function(e){var t=e?new a.AdaptiveActionContainer:new c.ActionContainer;return this.survey&&this.survey.getCss().actionBar&&(t.cssClasses=this.survey.getCss().actionBar),t},Object.defineProperty(t.prototype,"titleActions",{get:function(){return this.getPropertyValue("titleActions")},enumerable:!1,configurable:!0}),t.prototype.getTitleActions=function(){return this.isTitleActionRequested||(this.updateTitleActions(),this.isTitleActionRequested=!0),this.titleActions},t.prototype.getDefaultTitleActions=function(){return[]},t.prototype.updateTitleActions=function(){var e=this.getDefaultTitleActions();this.survey&&(e=this.survey.getUpdatedElementTitleActions(this,e)),this.setPropertyValue("titleActions",e)},Object.defineProperty(t.prototype,"hasTitleActions",{get:function(){return this.getTitleActions().length>0},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hasTitleEvents",{get:function(){return void 0!==this.state&&"default"!==this.state},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"titleTabIndex",{get:function(){return this.isPage||"default"===this.state?void 0:0},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"titleAriaExpanded",{get:function(){if(!this.isPage&&"default"!==this.state)return"expanded"===this.state?"true":"false"},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"titleAriaRole",{get:function(){if(!this.isPage&&"default"!==this.state)return"button"},enumerable:!1,configurable:!0}),t.prototype.setSurveyImpl=function(e,t){this.surveyImplValue=e,this.surveyImplValue?(this.surveyDataValue=this.surveyImplValue.getSurveyData(),this.setSurveyCore(this.surveyImplValue.getSurvey()),this.textProcessorValue=this.surveyImplValue.getTextProcessor(),this.onSetData()):(this.setSurveyCore(null),this.surveyDataValue=null),this.survey&&this.clearCssClasses()},t.prototype.canRunConditions=function(){return e.prototype.canRunConditions.call(this)&&!!this.data},t.prototype.getDataFilteredValues=function(){return this.data?this.data.getFilteredValues():{}},t.prototype.getDataFilteredProperties=function(){var e=this.data?this.data.getFilteredProperties():{};return e.question=this,e},Object.defineProperty(t.prototype,"surveyImpl",{get:function(){return this.surveyImplValue},enumerable:!1,configurable:!0}),t.prototype.__setData=function(e){u.settings.supportCreatorV2&&(this.surveyDataValue=e)},Object.defineProperty(t.prototype,"data",{get:function(){return this.surveyDataValue},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"survey",{get:function(){return this.getSurvey()},enumerable:!1,configurable:!0}),t.prototype.getSurvey=function(e){return void 0===e&&(e=!1),this.surveyValue||this.surveyImplValue&&this.setSurveyCore(this.surveyImplValue.getSurvey()),this.surveyValue},t.prototype.setSurveyCore=function(e){this.surveyValue=e,this.surveyChangedCallback&&this.surveyChangedCallback()},Object.defineProperty(t.prototype,"isInternal",{get:function(){return this.isContentElement},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"areInvisibleElementsShowing",{get:function(){return!!this.survey&&this.survey.areInvisibleElementsShowing&&!this.isContentElement},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isVisible",{get:function(){return!0},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isReadOnly",{get:function(){return!1},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"readOnly",{get:function(){return this.getPropertyValue("readOnly",!1)},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}),t.prototype.ensureCssClassesValue=function(){this.cssClassesValue||(this.cssClassesValue=this.calcCssClasses(this.css),this.updateElementCssCore(this.cssClassesValue))},Object.defineProperty(t.prototype,"cssClasses",{get:function(){return this.cssClassesValue,this.survey?(this.ensureCssClassesValue(),this.cssClassesValue):this.calcCssClasses(this.css)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"cssTitleNumber",{get:function(){var e=this.cssClasses;return e.number?e.number:e.panel?e.panel.number:void 0},enumerable:!1,configurable:!0}),t.prototype.calcCssClasses=function(e){},t.prototype.updateElementCssCore=function(e){},Object.defineProperty(t.prototype,"cssError",{get:function(){return""},enumerable:!1,configurable:!0}),t.prototype.updateElementCss=function(e){this.clearCssClasses()},t.prototype.clearCssClasses=function(){this.cssClassesValue=void 0},t.prototype.getIsLoadingFromJson=function(){return!!e.prototype.getIsLoadingFromJson.call(this)||!!this.survey&&this.survey.isLoadingFromJson},Object.defineProperty(t.prototype,"name",{get:function(){return this.getPropertyValue("name","")},set:function(e){var t=this.name;this.setPropertyValue("name",this.getValidName(e)),!this.isLoadingFromJson&&t&&this.onNameChanged(t)},enumerable:!1,configurable:!0}),t.prototype.getValidName=function(e){return e},t.prototype.onNameChanged=function(e){},t.prototype.updateBindingValue=function(e,t){this.data&&!this.isTwoValueEquals(t,this.data.getValue(e))&&this.data.setValue(e,t,!1)},Object.defineProperty(t.prototype,"errors",{get:function(){return this.getPropertyValue("errors")},set:function(e){this.setPropertyValue("errors",e)},enumerable:!1,configurable:!0}),t.prototype.updateVisibleErrors=function(){for(var e=0,t=0;t<this.errors.length;t++)this.errors[t].visible&&e++;this.hasVisibleErrors=e>0},Object.defineProperty(t.prototype,"containsErrors",{get:function(){return this.getPropertyValue("containsErrors",!1)},enumerable:!1,configurable:!0}),t.prototype.updateContainsErrors=function(){this.setPropertyValue("containsErrors",this.getContainsErrors())},t.prototype.getContainsErrors=function(){return this.errors.length>0},Object.defineProperty(t.prototype,"selectedElementInDesign",{get:function(){return this.selectedElementInDesignValue},set:function(e){this.selectedElementInDesignValue=e},enumerable:!1,configurable:!0}),t.prototype.updateCustomWidgets=function(){},t.prototype.onSurveyLoad=function(){},t.prototype.onFirstRendering=function(){this.ensureCssClassesValue()},t.prototype.endLoadingFromJson=function(){e.prototype.endLoadingFromJson.call(this),this.survey||this.onSurveyLoad(),this.updateDescriptionVisibility(this.description)},t.prototype.setVisibleIndex=function(e){return 0},Object.defineProperty(t.prototype,"isPage",{get:function(){return!1},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isPanel",{get:function(){return!1},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isQuestion",{get:function(){return!1},enumerable:!1,configurable:!0}),t.prototype.delete=function(){},t.prototype.getLocale=function(){return this.survey?this.survey.getLocale():this.locOwner?this.locOwner.getLocale():""},t.prototype.getMarkdownHtml=function(e,t){return this.survey?this.survey.getSurveyMarkdownHtml(this,e,t):this.locOwner?this.locOwner.getMarkdownHtml(e,t):void 0},t.prototype.getRenderer=function(e){return this.survey&&"function"==typeof this.survey.getRendererForString?this.survey.getRendererForString(this,e):this.locOwner&&"function"==typeof this.locOwner.getRenderer?this.locOwner.getRenderer(e):null},t.prototype.getRendererContext=function(e){return this.survey&&"function"==typeof this.survey.getRendererContextForString?this.survey.getRendererContextForString(this,e):this.locOwner&&"function"==typeof this.locOwner.getRendererContext?this.locOwner.getRendererContext(e):e},t.prototype.getProcessedText=function(e){return this.isLoadingFromJson?e:this.textProcessor?this.textProcessor.processText(e,this.getUseDisplayValuesInDynamicTexts()):this.locOwner?this.locOwner.getProcessedText(e):e},t.prototype.getUseDisplayValuesInDynamicTexts=function(){return!0},t.prototype.removeSelfFromList=function(e){if(e&&Array.isArray(e)){var t=e.indexOf(this);t>-1&&e.splice(t,1)}},Object.defineProperty(t.prototype,"textProcessor",{get:function(){return this.textProcessorValue},enumerable:!1,configurable:!0}),t.prototype.getProcessedHtml=function(e){return e&&this.textProcessor?this.textProcessor.processText(e,!0):e},t.prototype.onSetData=function(){},Object.defineProperty(t.prototype,"parent",{get:function(){return this.getPropertyValue("parent",null)},set:function(e){this.setPropertyValue("parent",e)},enumerable:!1,configurable:!0}),t.prototype.getPage=function(e){for(;e&&e.parent;)e=e.parent;return e&&"page"==e.getType()?e:null},t.prototype.moveToBase=function(e,t,n){if(void 0===n&&(n=null),!t)return!1;e.removeElement(this);var r=-1;return l.Helpers.isNumber(n)&&(r=parseInt(n)),-1==r&&n&&n.getType&&(r=t.indexOf(n)),t.addElement(this,r),!0},t.prototype.setPage=function(e,t){var n=this.getPage(e);"string"==typeof t&&this.getSurvey().pages.forEach((function(e){t===e.name&&(t=e)})),n!==t&&(e&&e.removeElement(this),t&&t.addElement(this,-1))},t.prototype.getSearchableLocKeys=function(e){e.push("title"),e.push("description")},Object.defineProperty(t.prototype,"isDefaultV2Theme",{get:function(){return this.survey&&"sd-root-modern"==this.survey.getCss().root},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isErrorsModeTooltip",{get:function(){return this.getIsErrorsModeTooltip()},enumerable:!1,configurable:!0}),t.prototype.getIsErrorsModeTooltip=function(){return this.isDefaultV2Theme&&this.hasParent&&this.getIsTooltipErrorSupportedByParent()},t.prototype.getIsTooltipErrorSupportedByParent=function(){var e;return null===(e=this.parent)||void 0===e?void 0:e.getIsTooltipErrorInsideSupported()},t.prototype.getIsTooltipErrorInsideSupported=function(){return!1},Object.defineProperty(t.prototype,"hasParent",{get:function(){return this.parent&&!this.parent.isPage&&(!this.parent.originalPage||this.survey.isShowingPreview)||void 0===this.parent},enumerable:!1,configurable:!0}),t.prototype.shouldAddRunnerStyles=function(){return!this.isDesignMode&&this.isDefaultV2Theme},Object.defineProperty(t.prototype,"isCompact",{get:function(){return this.survey&&this.survey.isCompact},enumerable:!1,configurable:!0}),t.prototype.getHasFrameV2=function(){return this.shouldAddRunnerStyles()&&!this.hasParent&&this.isSingleInRow},t.prototype.getIsNested=function(){return this.shouldAddRunnerStyles()&&(this.hasParent||!this.isSingleInRow)},t.prototype.getCssRoot=function(e){return(new p.CssClassBuilder).append(e.withFrame,this.getHasFrameV2()&&!this.isCompact).append(e.compact,this.isCompact&&this.getHasFrameV2()).append(e.collapsed,!!this.isCollapsed).append(e.expanded,!!this.isExpanded).append(e.nested,this.getIsNested()).toString()},Object.defineProperty(t.prototype,"width",{get:function(){return this.getPropertyValue("width","")},set:function(e){this.setPropertyValue("width",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"minWidth",{get:function(){return this.getPropertyValue("minWidth")},set:function(e){this.setPropertyValue("minWidth",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"maxWidth",{get:function(){return this.getPropertyValue("maxWidth")},set:function(e){this.setPropertyValue("maxWidth",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"renderWidth",{get:function(){return this.getPropertyValue("renderWidth","")},set:function(e){this.setPropertyValue("renderWidth",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"indent",{get:function(){return this.getPropertyValue("indent")},set:function(e){this.setPropertyValue("indent",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"rightIndent",{get:function(){return this.getPropertyValue("rightIndent",0)},set:function(e){this.setPropertyValue("rightIndent",e)},enumerable:!1,configurable:!0}),t.prototype.getRootStyle=function(){var e={};return this.paddingLeft&&(e["--sv-element-add-padding-left"]=this.paddingLeft),this.paddingRight&&(e["--sv-element-add-padding-right"]=this.paddingRight),e},Object.defineProperty(t.prototype,"paddingLeft",{get:function(){return this.getPropertyValue("paddingLeft","")},set:function(e){this.setPropertyValue("paddingLeft",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"paddingRight",{get:function(){return this.getPropertyValue("paddingRight","")},set:function(e){this.setPropertyValue("paddingRight",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"rootStyle",{get:function(){var e={};return this.allowRootStyle&&this.renderWidth&&(e.flexGrow=1,e.flexShrink=1,e.flexBasis=this.renderWidth,e.minWidth=this.minWidth,e.maxWidth=this.maxWidth),e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"clickTitleFunction",{get:function(){var e=this;if(this.needClickTitleFunction())return function(){return e.processTitleClick()}},enumerable:!1,configurable:!0}),t.prototype.needClickTitleFunction=function(){return"default"!==this.state},t.prototype.processTitleClick=function(){"default"!==this.state&&this.toggleState()},Object.defineProperty(t.prototype,"additionalTitleToolbar",{get:function(){return this.getAdditionalTitleToolbar()},enumerable:!1,configurable:!0}),t.prototype.getAdditionalTitleToolbar=function(){return null},t.prototype.getCssTitle=function(e){var t="default"!==this.state;return(new p.CssClassBuilder).append(e.title).append(e.titleNumInline,(this.no||"").length>4||t).append(e.titleExpandable,t).append(e.titleExpanded,this.isExpanded).append(e.titleCollapsed,this.isCollapsed).append(e.titleDisabled,this.isReadOnly).append(e.titleOnError,this.containsErrors).toString()},t.prototype.localeChanged=function(){e.prototype.localeChanged.call(this),this.updateDescriptionVisibility(this.description),this.errors.length>0&&this.errors.forEach((function(e){e.updateText()}))},t.CreateDisabledDesignElements=!1,h([Object(i.property)({defaultValue:null})],t.prototype,"dragTypeOverMe",void 0),h([Object(i.property)({defaultValue:!1})],t.prototype,"isDragMe",void 0),h([Object(i.property)()],t.prototype,"cssClassesValue",void 0),h([Object(i.property)({defaultValue:!1})],t.prototype,"hasVisibleErrors",void 0),h([Object(i.property)({defaultValue:!0})],t.prototype,"isSingleInRow",void 0),h([Object(i.property)({defaultValue:!0})],t.prototype,"allowRootStyle",void 0),t}(f)},"./src/survey-error.ts":function(e,t,n){"use strict";n.r(t),n.d(t,"SurveyError",(function(){return i}));var r=n("./src/localizablestring.ts"),o=n("./src/surveyStrings.ts"),i=function(){function e(e,t){void 0===e&&(e=null),void 0===t&&(t=null),this.text=e,this.errorOwner=t,this.visible=!0,this.onUpdateErrorTextCallback=void 0}return e.prototype.equalsTo=function(e){return!(!e||!e.getErrorType)&&this.getErrorType()===e.getErrorType()&&this.text===e.text&&this.visible===e.visible},Object.defineProperty(e.prototype,"locText",{get:function(){return this.locTextValue||(this.locTextValue=new r.LocalizableString(this.errorOwner,!0),this.locTextValue.storeDefaultText=!0,this.locTextValue.text=this.getText()),this.locTextValue},enumerable:!1,configurable:!0}),e.prototype.getText=function(){var e=this.text;return e||(e=this.getDefaultText()),this.errorOwner&&(e=this.errorOwner.getErrorCustomText(e,this)),e},e.prototype.getErrorType=function(){return"base"},e.prototype.getDefaultText=function(){return""},e.prototype.getLocale=function(){return this.errorOwner?this.errorOwner.getLocale():""},e.prototype.getLocalizationString=function(e){return o.surveyLocalization.getString(e,this.getLocale())},e.prototype.updateText=function(){this.onUpdateErrorTextCallback&&this.onUpdateErrorTextCallback(this),this.locText.text=this.getText()},e}()},"./src/survey-events-api.ts":function(e,t,n){"use strict";n.r(t)},"./src/survey.ts":function(e,t,n){"use strict";n.r(t),n.d(t,"SurveyModel",(function(){return T}));var r,o=n("./src/helpers.ts"),i=n("./src/jsonobject.ts"),s=n("./src/base.ts"),a=n("./src/survey-element.ts"),l=n("./src/defaultCss/defaultV2Css.ts"),u=n("./src/textPreProcessor.ts"),c=n("./src/conditionProcessValue.ts"),p=n("./src/dxSurveyService.ts"),d=n("./src/surveyStrings.ts"),h=n("./src/error.ts"),f=n("./src/localizablestring.ts"),m=n("./src/stylesmanager.ts"),g=n("./src/surveyTimerModel.ts"),y=n("./src/conditions.ts"),v=n("./src/settings.ts"),b=n("./src/utils/utils.ts"),C=n("./src/actions/action.ts"),w=n("./src/actions/container.ts"),x=n("./src/utils/cssClassBuilder.ts"),P=n("./src/notifier.ts"),S=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),E=function(e,t,n,r){var o,i=arguments.length,s=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,r);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(i<3?o(s):i>3?o(t,n,s):o(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},T=function(e){function t(n,r){void 0===n&&(n=null),void 0===r&&(r=null);var o=e.call(this)||this;o.valuesHash={},o.variablesHash={},o.onThemeApplying=new s.EventBase,o.onThemeApplied=new s.EventBase,o.onTriggerExecuted=o.addEvent(),o.onCompleting=o.addEvent(),o.onComplete=o.addEvent(),o.onShowingPreview=o.addEvent(),o.onNavigateToUrl=o.addEvent(),o.onStarted=o.addEvent(),o.onPartialSend=o.addEvent(),o.onCurrentPageChanging=o.addEvent(),o.onCurrentPageChanged=o.addEvent(),o.onValueChanging=o.addEvent(),o.onValueChanged=o.addEvent(),o.onVariableChanged=o.addEvent(),o.onQuestionVisibleChanged=o.addEvent(),o.onVisibleChanged=o.onQuestionVisibleChanged,o.onPageVisibleChanged=o.addEvent(),o.onPanelVisibleChanged=o.addEvent(),o.onQuestionCreated=o.addEvent(),o.onQuestionAdded=o.addEvent(),o.onQuestionRemoved=o.addEvent(),o.onPanelAdded=o.addEvent(),o.onPanelRemoved=o.addEvent(),o.onPageAdded=o.addEvent(),o.onValidateQuestion=o.addEvent(),o.onSettingQuestionErrors=o.addEvent(),o.onServerValidateQuestions=o.addEvent(),o.onValidatePanel=o.addEvent(),o.onErrorCustomText=o.addEvent(),o.onValidatedErrorsOnCurrentPage=o.addEvent(),o.onProcessHtml=o.addEvent(),o.onGetQuestionDisplayValue=o.addEvent(),o.onGetQuestionTitle=o.addEvent(),o.onGetTitleTagName=o.addEvent(),o.onGetQuestionNo=o.addEvent(),o.onProgressText=o.addEvent(),o.onTextMarkdown=o.addEvent(),o.onTextRenderAs=o.addEvent(),o.onSendResult=o.addEvent(),o.onGetResult=o.addEvent(),o.onUploadFiles=o.addEvent(),o.onDownloadFile=o.addEvent(),o.onClearFiles=o.addEvent(),o.onLoadChoicesFromServer=o.addEvent(),o.onLoadedSurveyFromService=o.addEvent(),o.onProcessTextValue=o.addEvent(),o.onUpdateQuestionCssClasses=o.addEvent(),o.onUpdatePanelCssClasses=o.addEvent(),o.onUpdatePageCssClasses=o.addEvent(),o.onUpdateChoiceItemCss=o.addEvent(),o.onAfterRenderSurvey=o.addEvent(),o.onAfterRenderHeader=o.addEvent(),o.onAfterRenderPage=o.addEvent(),o.onAfterRenderQuestion=o.addEvent(),o.onAfterRenderQuestionInput=o.addEvent(),o.onAfterRenderPanel=o.addEvent(),o.onFocusInQuestion=o.addEvent(),o.onFocusInPanel=o.addEvent(),o.onShowingChoiceItem=o.addEvent(),o.onChoicesLazyLoad=o.addEvent(),o.onGetChoiceDisplayValue=o.addEvent(),o.onMatrixRowAdded=o.addEvent(),o.onMatrixRowAdding=o.addEvent(),o.onMatrixBeforeRowAdded=o.onMatrixRowAdding,o.onMatrixRowRemoving=o.addEvent(),o.onMatrixRowRemoved=o.addEvent(),o.onMatrixRenderRemoveButton=o.addEvent(),o.onMatrixAllowRemoveRow=o.onMatrixRenderRemoveButton,o.onMatrixCellCreating=o.addEvent(),o.onMatrixCellCreated=o.addEvent(),o.onAfterRenderMatrixCell=o.addEvent(),o.onMatrixAfterCellRender=o.onAfterRenderMatrixCell,o.onMatrixCellValueChanged=o.addEvent(),o.onMatrixCellValueChanging=o.addEvent(),o.onMatrixCellValidate=o.addEvent(),o.onMatrixColumnAdded=o.addEvent(),o.onMultipleTextItemAdded=o.addEvent(),o.onDynamicPanelAdded=o.addEvent(),o.onDynamicPanelRemoved=o.addEvent(),o.onDynamicPanelRemoving=o.addEvent(),o.onTimer=o.addEvent(),o.onTimerPanelInfoText=o.addEvent(),o.onDynamicPanelItemValueChanged=o.addEvent(),o.onIsAnswerCorrect=o.addEvent(),o.onDragDropAllow=o.addEvent(),o.onScrollingElementToTop=o.addEvent(),o.onLocaleChangedEvent=o.addEvent(),o.onGetQuestionTitleActions=o.addEvent(),o.onGetPanelTitleActions=o.addEvent(),o.onGetPageTitleActions=o.addEvent(),o.onGetPanelFooterActions=o.addEvent(),o.onGetMatrixRowActions=o.addEvent(),o.onElementContentVisibilityChanged=o.addEvent(),o.onGetExpressionDisplayValue=o.addEvent(),o.onPopupVisibleChanged=o.addEvent(),o.jsonErrors=null,o.cssValue=null,o.hideRequiredErrors=!1,o.cssVariables={},o._isMobile=!1,o._isCompact=!1,o._isDesignMode=!1,o.ignoreValidation=!1,o.isNavigationButtonPressed=!1,o.mouseDownPage=null,o.isCalculatingProgressText=!1,o.isFirstPageRendering=!0,o.isCurrentPageRendering=!0,o.isTriggerIsRunning=!1,o.triggerValues=null,o.triggerKeys=null,o.conditionValues=null,o.isValueChangedOnRunningCondition=!1,o.conditionRunnerCounter=0,o.conditionUpdateVisibleIndexes=!1,o.conditionNotifyElementsOnAnyValueOrVariableChanged=!1,o.isEndLoadingFromJson=null,o.questionHashes={names:{},namesInsensitive:{},valueNames:{},valueNamesInsensitive:{}},o.needRenderIcons=!0,o.skippedPages=[],o.skeletonComponentName="sv-skeleton","undefined"!=typeof document&&(t.stylesManager=new m.StylesManager);var i=function(e){return"<h3>"+e+"</h3>"};return o.createHtmlLocString("completedHtml","completingSurvey",i),o.createHtmlLocString("completedBeforeHtml","completingSurveyBefore",i,"completed-before"),o.createHtmlLocString("loadingHtml","loadingSurvey",i,"loading"),o.createLocalizableString("logo",o,!1),o.createLocalizableString("backgroundImage",o,!1),o.createLocalizableString("startSurveyText",o,!1,!0),o.createLocalizableString("pagePrevText",o,!1,!0),o.createLocalizableString("pageNextText",o,!1,!0),o.createLocalizableString("completeText",o,!1,!0),o.createLocalizableString("previewText",o,!1,!0),o.createLocalizableString("editText",o,!1,!0),o.createLocalizableString("questionTitleTemplate",o,!0),o.textPreProcessor=new u.TextPreProcessor,o.textPreProcessor.onProcess=function(e){o.getProcessedTextValue(e)},o.timerModelValue=new g.SurveyTimerModel(o),o.timerModelValue.onTimer=function(e){o.doTimer(e)},o.createNewArray("pages",(function(e){o.doOnPageAdded(e)}),(function(e){o.doOnPageRemoved(e)})),o.createNewArray("triggers",(function(e){e.setOwner(o)})),o.createNewArray("calculatedValues",(function(e){e.setOwner(o)})),o.createNewArray("completedHtmlOnCondition",(function(e){e.locOwner=o})),o.createNewArray("navigateToUrlOnCondition",(function(e){e.locOwner=o})),o.registerPropertyChangedHandlers(["locale"],(function(){o.onSurveyLocaleChanged()})),o.registerPropertyChangedHandlers(["firstPageIsStarted"],(function(){o.onFirstPageIsStartedChanged()})),o.registerPropertyChangedHandlers(["mode"],(function(){o.onModeChanged()})),o.registerPropertyChangedHandlers(["progressBarType"],(function(){o.updateProgressText()})),o.registerPropertyChangedHandlers(["questionStartIndex","requiredText","questionTitlePattern"],(function(){o.resetVisibleIndexes()})),o.registerPropertyChangedHandlers(["isLoading","isCompleted","isCompletedBefore","mode","isStartedState","currentPage"],(function(){o.updateState()})),o.registerPropertyChangedHandlers(["state","currentPage","showPreviewBeforeComplete"],(function(){o.onStateAndCurrentPageChanged()})),o.registerPropertyChangedHandlers(["logo","logoPosition"],(function(){o.updateHasLogo()})),o.registerPropertyChangedHandlers(["backgroundImage"],(function(){o.updateRenderBackgroundImage()})),o.onGetQuestionNo.onCallbacksChanged=function(){o.resetVisibleIndexes()},o.onProgressText.onCallbacksChanged=function(){o.updateProgressText()},o.onTextMarkdown.onCallbacksChanged=function(){o.locStrsChanged()},o.onProcessHtml.onCallbacksChanged=function(){o.locStrsChanged()},o.onGetQuestionTitle.onCallbacksChanged=function(){o.locStrsChanged()},o.onUpdatePageCssClasses.onCallbacksChanged=function(){o.currentPage&&o.currentPage.updateElementCss()},o.onUpdatePanelCssClasses.onCallbacksChanged=function(){o.currentPage&&o.currentPage.updateElementCss()},o.onUpdateQuestionCssClasses.onCallbacksChanged=function(){o.currentPage&&o.currentPage.updateElementCss()},o.onShowingChoiceItem.onCallbacksChanged=function(){o.rebuildQuestionChoices()},o.navigationBarValue=o.createNavigationBar(),o.navigationBar.locOwner=o,o.onBeforeCreating(),n&&(("string"==typeof n||n instanceof String)&&(n=JSON.parse(n)),n&&n.clientId&&(o.clientId=n.clientId),o.fromJSON(n),o.surveyId&&o.loadSurveyFromService(o.surveyId,o.clientId)),o.onCreating(),r&&o.render(r),o.updateCss(),o.setCalculatedWidthModeUpdater(),o.notifier=new P.Notifier(o.css.saveData),o.notifier.addAction(o.createTryAgainAction(),"error"),o.layoutElements.push({id:"timerpanel",template:"survey-timerpanel",component:"sv-timerpanel",data:o.timerModel}),o.layoutElements.push({id:"progress-buttons",component:"sv-progress-buttons",data:o}),o.layoutElements.push({id:"progress-questions",component:"sv-progress-questions",data:o}),o.layoutElements.push({id:"progress-pages",component:"sv-progress-pages",data:o}),o.layoutElements.push({id:"progress-correctquestions",component:"sv-progress-correctquestions",data:o}),o.layoutElements.push({id:"progress-requiredquestions",component:"sv-progress-requiredquestions",data:o}),o.addLayoutElement({id:"toc-navigation",component:"sv-progress-toc",data:o}),o.layoutElements.push({id:"navigationbuttons",component:"sv-action-bar",data:o.navigationBar}),o}return S(t,e),Object.defineProperty(t,"cssType",{get:function(){return l.surveyCss.currentType},set:function(e){m.StylesManager.applyTheme(e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"platformName",{get:function(){return t.platform},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"commentSuffix",{get:function(){return v.settings.commentSuffix},set:function(e){v.settings.commentSuffix=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"commentPrefix",{get:function(){return this.commentSuffix},set:function(e){this.commentSuffix=e},enumerable:!1,configurable:!0}),t.prototype.processClosedPopup=function(e,t){throw new Error("Method not implemented.")},t.prototype.createTryAgainAction=function(){var e=this;return{id:"save-again",title:this.getLocalizationString("saveAgainButton"),action:function(){e.isCompleted?e.saveDataOnComplete():e.doComplete()}}},t.prototype.createHtmlLocString=function(e,t,n,r){var o=this,i=this.createLocalizableString(e,this,!1,t);i.onGetLocalizationTextCallback=n,r&&(i.onGetTextCallback=function(e){return o.processHtml(e,r)})},t.prototype.getType=function(){return"survey"},t.prototype.onPropertyValueChanged=function(e,t,n){"questionsOnPageMode"===e&&this.onQuestionsOnPageModeChanged(t)},Object.defineProperty(t.prototype,"pages",{get:function(){return this.getPropertyValue("pages")},enumerable:!1,configurable:!0}),t.prototype.render=function(e){void 0===e&&(e=null),this.renderCallback&&this.renderCallback()},t.prototype.updateSurvey=function(e,t){var n=function(){if("model"==o||"children"==o)return"continue";if(0==o.indexOf("on")&&r[o]&&r[o].add){var t=e[o];r[o].add((function(e,n){t(e,n)}))}else r[o]=e[o]},r=this;for(var o in e)n();e&&e.data&&this.onValueChanged.add((function(t,n){e.data[n.name]=n.value}))},t.prototype.getCss=function(){return this.css},t.prototype.updateCompletedPageCss=function(){this.containerCss=this.css.container,this.completedCss=(new x.CssClassBuilder).append(this.css.body).append(this.css.completedPage).toString()},t.prototype.updateCss=function(){this.rootCss=this.getRootCss(),this.updateNavigationCss(),this.updateCompletedPageCss()},Object.defineProperty(t.prototype,"css",{get:function(){return this.cssValue||(this.cssValue={},this.copyCssClasses(this.cssValue,l.surveyCss.getCss())),this.cssValue},set:function(e){this.setCss(e)},enumerable:!1,configurable:!0}),t.prototype.setCss=function(e,t){void 0===t&&(t=!0),t?this.mergeValues(e,this.css):this.cssValue=e,this.updateCss(),this.updateElementCss(!1)},Object.defineProperty(t.prototype,"cssTitle",{get:function(){return this.css.title},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"cssNavigationComplete",{get:function(){return this.getNavigationCss(this.cssSurveyNavigationButton,this.css.navigation.complete)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"cssNavigationPreview",{get:function(){return this.getNavigationCss(this.cssSurveyNavigationButton,this.css.navigation.preview)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"cssNavigationEdit",{get:function(){return this.getNavigationCss(this.css.navigationButton,this.css.navigation.edit)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"cssNavigationPrev",{get:function(){return this.getNavigationCss(this.cssSurveyNavigationButton,this.css.navigation.prev)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"cssNavigationStart",{get:function(){return this.getNavigationCss(this.cssSurveyNavigationButton,this.css.navigation.start)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"cssNavigationNext",{get:function(){return this.getNavigationCss(this.cssSurveyNavigationButton,this.css.navigation.next)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"cssSurveyNavigationButton",{get:function(){return(new x.CssClassBuilder).append(this.css.navigationButton).append(this.css.bodyNavigationButton).toString()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"bodyCss",{get:function(){return(new x.CssClassBuilder).append(this.css.body).append(this.css.bodyWithTimer,"none"!=this.showTimerPanel&&"running"===this.state).append(this.css.body+"--"+this.calculatedWidthMode).toString()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"bodyContainerCss",{get:function(){return this.css.bodyContainer},enumerable:!1,configurable:!0}),t.prototype.getNavigationCss=function(e,t){return(new x.CssClassBuilder).append(e).append(t).toString()},Object.defineProperty(t.prototype,"lazyRendering",{get:function(){return!0===this.lazyRenderingValue},set:function(e){if(this.lazyRendering!==e){this.lazyRenderingValue=e;var t=this.currentPage;t&&t.updateRows()}},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isLazyRendering",{get:function(){return this.lazyRendering||v.settings.lazyRender.enabled},enumerable:!1,configurable:!0}),t.prototype.updateLazyRenderingRowsOnRemovingElements=function(){if(this.isLazyRendering){var e=this.currentPage;e&&Object(b.scrollElementByChildId)(e.id)}},Object.defineProperty(t.prototype,"triggers",{get:function(){return this.getPropertyValue("triggers")},set:function(e){this.setPropertyValue("triggers",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"calculatedValues",{get:function(){return this.getPropertyValue("calculatedValues")},set:function(e){this.setPropertyValue("calculatedValues",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"surveyId",{get:function(){return this.getPropertyValue("surveyId","")},set:function(e){this.setPropertyValue("surveyId",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"surveyPostId",{get:function(){return this.getPropertyValue("surveyPostId","")},set:function(e){this.setPropertyValue("surveyPostId",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"clientId",{get:function(){return this.getPropertyValue("clientId","")},set:function(e){this.setPropertyValue("clientId",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"cookieName",{get:function(){return this.getPropertyValue("cookieName","")},set:function(e){this.setPropertyValue("cookieName",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"sendResultOnPageNext",{get:function(){return this.getPropertyValue("sendResultOnPageNext")},set:function(e){this.setPropertyValue("sendResultOnPageNext",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"surveyShowDataSaving",{get:function(){return this.getPropertyValue("surveyShowDataSaving")},set:function(e){this.setPropertyValue("surveyShowDataSaving",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"focusFirstQuestionAutomatic",{get:function(){return this.getPropertyValue("focusFirstQuestionAutomatic")},set:function(e){this.setPropertyValue("focusFirstQuestionAutomatic",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"focusOnFirstError",{get:function(){return this.getPropertyValue("focusOnFirstError")},set:function(e){this.setPropertyValue("focusOnFirstError",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"showNavigationButtons",{get:function(){return this.getPropertyValue("showNavigationButtons")},set:function(e){!0!==e&&void 0!==e||(e="bottom"),!1===e&&(e="none"),this.setPropertyValue("showNavigationButtons",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"showPrevButton",{get:function(){return this.getPropertyValue("showPrevButton")},set:function(e){this.setPropertyValue("showPrevButton",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"showTOC",{get:function(){return this.getPropertyValue("showTOC")},set:function(e){this.setPropertyValue("showTOC",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"tocLocation",{get:function(){return this.getPropertyValue("tocLocation")},set:function(e){this.setPropertyValue("tocLocation",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"showTitle",{get:function(){return this.getPropertyValue("showTitle")},set:function(e){this.setPropertyValue("showTitle",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"showPageTitles",{get:function(){return this.getPropertyValue("showPageTitles")},set:function(e){this.setPropertyValue("showPageTitles",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"showCompletedPage",{get:function(){return this.getPropertyValue("showCompletedPage")},set:function(e){this.setPropertyValue("showCompletedPage",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"navigateToUrl",{get:function(){return this.getPropertyValue("navigateToUrl")},set:function(e){this.setPropertyValue("navigateToUrl",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"navigateToUrlOnCondition",{get:function(){return this.getPropertyValue("navigateToUrlOnCondition")},set:function(e){this.setPropertyValue("navigateToUrlOnCondition",e)},enumerable:!1,configurable:!0}),t.prototype.getNavigateToUrl=function(){var e=this.getExpressionItemOnRunCondition(this.navigateToUrlOnCondition),t=e?e.url:this.navigateToUrl;return t&&(t=this.processText(t,!1)),t},t.prototype.navigateTo=function(){var e={url:this.getNavigateToUrl(),allow:!0};this.onNavigateToUrl.fire(this,e),e.url&&e.allow&&Object(b.navigateToUrl)(e.url)},Object.defineProperty(t.prototype,"requiredText",{get:function(){return this.getPropertyValue("requiredText","*")},set:function(e){this.setPropertyValue("requiredText",e)},enumerable:!1,configurable:!0}),t.prototype.beforeSettingQuestionErrors=function(e,t){this.maakeRequiredErrorsInvisibgle(t),this.onSettingQuestionErrors.fire(this,{question:e,errors:t})},t.prototype.beforeSettingPanelErrors=function(e,t){this.maakeRequiredErrorsInvisibgle(t)},t.prototype.maakeRequiredErrorsInvisibgle=function(e){if(this.hideRequiredErrors)for(var t=0;t<e.length;t++){var n=e[t].getErrorType();"required"!=n&&"requireoneanswer"!=n||(e[t].visible=!1)}},Object.defineProperty(t.prototype,"questionStartIndex",{get:function(){return this.getPropertyValue("questionStartIndex","")},set:function(e){this.setPropertyValue("questionStartIndex",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"storeOthersAsComment",{get:function(){return this.getPropertyValue("storeOthersAsComment")},set:function(e){this.setPropertyValue("storeOthersAsComment",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"maxTextLength",{get:function(){return this.getPropertyValue("maxTextLength")},set:function(e){this.setPropertyValue("maxTextLength",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"maxOthersLength",{get:function(){return this.getPropertyValue("maxOthersLength")},set:function(e){this.setPropertyValue("maxOthersLength",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"goNextPageAutomatic",{get:function(){return this.getPropertyValue("goNextPageAutomatic")},set:function(e){this.setPropertyValue("goNextPageAutomatic",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"allowCompleteSurveyAutomatic",{get:function(){return this.getPropertyValue("allowCompleteSurveyAutomatic",!0)},set:function(e){this.setPropertyValue("allowCompleteSurveyAutomatic",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"checkErrorsMode",{get:function(){return this.getPropertyValue("checkErrorsMode")},set:function(e){this.setPropertyValue("checkErrorsMode",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"autoGrowComment",{get:function(){return this.getPropertyValue("autoGrowComment")},set:function(e){this.setPropertyValue("autoGrowComment",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"allowResizeComment",{get:function(){return this.getPropertyValue("allowResizeComment")},set:function(e){this.setPropertyValue("allowResizeComment",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"textUpdateMode",{get:function(){return this.getPropertyValue("textUpdateMode")},set:function(e){this.setPropertyValue("textUpdateMode",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"clearInvisibleValues",{get:function(){return this.getPropertyValue("clearInvisibleValues")},set:function(e){!0===e&&(e="onComplete"),!1===e&&(e="none"),this.setPropertyValue("clearInvisibleValues",e)},enumerable:!1,configurable:!0}),t.prototype.clearIncorrectValues=function(e){void 0===e&&(e=!1);for(var t=0;t<this.pages.length;t++)this.pages[t].clearIncorrectValues();if(e){var n=this.data,r=!1;for(var o in n)if(!this.getQuestionByValueName(o)&&!this.iscorrectValueWithPostPrefix(o,v.settings.commentSuffix)&&!this.iscorrectValueWithPostPrefix(o,v.settings.matrix.totalsSuffix)){var i=this.getCalculatedValueByName(o);i&&i.includeIntoResult||(r=!0,delete n[o])}r&&(this.data=n)}},t.prototype.iscorrectValueWithPostPrefix=function(e,t){return e.indexOf(t)===e.length-t.length&&!!this.getQuestionByValueName(e.substring(0,e.indexOf(t)))},Object.defineProperty(t.prototype,"keepIncorrectValues",{get:function(){return this.getPropertyValue("keepIncorrectValues")},set:function(e){this.setPropertyValue("keepIncorrectValues",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locale",{get:function(){return this.getPropertyValue("locale",d.surveyLocalization.currentLocale)},set:function(e){e!==d.surveyLocalization.defaultLocale||d.surveyLocalization.currentLocale||(e=""),this.setPropertyValue("locale",e)},enumerable:!1,configurable:!0}),t.prototype.onSurveyLocaleChanged=function(){this.notifyElementsOnAnyValueOrVariableChanged("locale"),this.localeChanged(),this.onLocaleChangedEvent.fire(this,this.locale)},t.prototype.getUsedLocales=function(){var e=new Array;this.addUsedLocales(e);var t=e.indexOf("default");if(t>-1){var n=d.surveyLocalization.defaultLocale,r=e.indexOf(n);r>-1&&e.splice(r,1),t=e.indexOf("default"),e[t]=n}return e},t.prototype.localeChanged=function(){for(var e=0;e<this.pages.length;e++)this.pages[e].localeChanged()},t.prototype.getLocale=function(){return this.locale},t.prototype.locStrsChanged=function(){if(e.prototype.locStrsChanged.call(this),this.currentPage){if(this.isDesignMode)this.pages.forEach((function(e){return e.locStrsChanged()}));else{var t=this.activePage;t&&t.locStrsChanged();for(var n=this.visiblePages,r=0;r<n.length;r++)n[r].navigationLocStrChanged()}this.isShowStartingPage||this.updateProgressText(),this.navigationBar.locStrsChanged()}},t.prototype.getMarkdownHtml=function(e,t){return this.getSurveyMarkdownHtml(this,e,t)},t.prototype.getRenderer=function(e){return this.getRendererForString(this,e)},t.prototype.getRendererContext=function(e){return this.getRendererContextForString(this,e)},t.prototype.getRendererForString=function(e,t){var n={element:e,name:t,renderAs:this.getBuiltInRendererForString(e,t)};return this.onTextRenderAs.fire(this,n),n.renderAs},t.prototype.getRendererContextForString=function(e,t){return t},t.prototype.getExpressionDisplayValue=function(e,t,n){var r={question:e,value:t,displayValue:n};return this.onGetExpressionDisplayValue.fire(this,r),r.displayValue},t.prototype.getBuiltInRendererForString=function(e,t){if(this.isDesignMode)return f.LocalizableString.editableRenderer},t.prototype.getProcessedText=function(e){return this.processText(e,!0)},t.prototype.getLocString=function(e){return this.getLocalizationString(e)},t.prototype.getErrorCustomText=function(e,t){return this.getSurveyErrorCustomText(this,e,t)},t.prototype.getSurveyErrorCustomText=function(e,t,n){var r={text:t,name:n.getErrorType(),obj:e,error:n};return this.onErrorCustomText.fire(this,r),r.text},t.prototype.getQuestionDisplayValue=function(e,t){var n={question:e,displayValue:t};return this.onGetQuestionDisplayValue.fire(this,n),n.displayValue},Object.defineProperty(t.prototype,"emptySurveyText",{get:function(){return this.getLocalizationString("emptySurvey")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"logo",{get:function(){return this.getLocalizableStringText("logo")},set:function(e){this.setLocalizableStringText("logo",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locLogo",{get:function(){return this.getLocalizableString("logo")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"logoWidth",{get:function(){return this.getPropertyValue("logoWidth")},set:function(e){this.setPropertyValue("logoWidth",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"renderedLogoWidth",{get:function(){return this.logoWidth?Object(b.getRenderedSize)(this.logoWidth):void 0},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"renderedStyleLogoWidth",{get:function(){return this.logoWidth?Object(b.getRenderedStyleSize)(this.logoWidth):void 0},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"logoHeight",{get:function(){return this.getPropertyValue("logoHeight")},set:function(e){this.setPropertyValue("logoHeight",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"renderedLogoHeight",{get:function(){return this.logoHeight?Object(b.getRenderedSize)(this.logoHeight):void 0},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"renderedStyleLogoHeight",{get:function(){return this.logoHeight?Object(b.getRenderedStyleSize)(this.logoHeight):void 0},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"logoPosition",{get:function(){return this.getPropertyValue("logoPosition")},set:function(e){this.setPropertyValue("logoPosition",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hasLogo",{get:function(){return this.getPropertyValue("hasLogo",!1)},enumerable:!1,configurable:!0}),t.prototype.updateHasLogo=function(){this.setPropertyValue("hasLogo",!!this.logo&&"none"!==this.logoPosition)},Object.defineProperty(t.prototype,"isLogoBefore",{get:function(){return!this.isDesignMode&&this.renderedHasLogo&&("left"===this.logoPosition||"top"===this.logoPosition)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isLogoAfter",{get:function(){return this.isDesignMode?this.renderedHasLogo:this.renderedHasLogo&&("right"===this.logoPosition||"bottom"===this.logoPosition)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"logoClassNames",{get:function(){return(new x.CssClassBuilder).append(this.css.logo).append({left:"sv-logo--left",right:"sv-logo--right",top:"sv-logo--top",bottom:"sv-logo--bottom"}[this.logoPosition]).toString()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"renderedHasTitle",{get:function(){return this.isDesignMode?this.isPropertyVisible("title"):!this.locTitle.isEmpty&&this.showTitle},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"renderedHasDescription",{get:function(){return this.isDesignMode?this.isPropertyVisible("description"):!!this.hasDescription},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hasTitle",{get:function(){return this.renderedHasTitle},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"renderedHasLogo",{get:function(){return this.isDesignMode?this.isPropertyVisible("logo"):this.hasLogo},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"renderedHasHeader",{get:function(){return this.renderedHasTitle||this.renderedHasLogo},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"logoFit",{get:function(){return this.getPropertyValue("logoFit")},set:function(e){this.setPropertyValue("logoFit",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"themeVariables",{get:function(){return Object.assign({},this.cssVariables)},enumerable:!1,configurable:!0}),t.prototype.setIsMobile=function(e){void 0===e&&(e=!0),this.isMobile!==e&&(this._isMobile=e,this.updateCss(),this.getAllQuestions().map((function(t){return t.isMobile=e})))},Object.defineProperty(t.prototype,"isMobile",{get:function(){return this._isMobile},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())},enumerable:!1,configurable:!0}),t.prototype.isLogoImageChoosen=function(){return this.locLogo.renderedHtml},Object.defineProperty(t.prototype,"titleMaxWidth",{get:function(){if(!(Object(b.isMobile)()||this.isMobile||this.isValueEmpty(this.isLogoImageChoosen())||v.settings.supportCreatorV2)){var e=this.logoWidth;if("left"===this.logoPosition||"right"===this.logoPosition)return"calc(100% - 5px - 2em - "+e+")"}return""},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"backgroundImage",{get:function(){return this.getLocalizableStringText("backgroundImage")},set:function(e){this.setLocalizableStringText("backgroundImage",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locBackgroundImage",{get:function(){return this.getLocalizableString("backgroundImage")},enumerable:!1,configurable:!0}),t.prototype.updateRenderBackgroundImage=function(){var e=this.getLocalizableString("backgroundImage").renderedHtml;this.renderBackgroundImage=e?["url(",e,")"].join(""):""},Object.defineProperty(t.prototype,"backgroundOpacity",{get:function(){return this.getPropertyValue("backgroundOpacity")},set:function(e){this.setPropertyValue("backgroundOpacity",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"backgroundImageStyle",{get:function(){return{opacity:this.backgroundOpacity,backgroundImage:this.renderBackgroundImage,backgroundSize:this.backgroundImageFit,backgroundAttachment:this.backgroundImageAttachment}},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"completedHtml",{get:function(){return this.getLocalizableStringText("completedHtml")},set:function(e){this.setLocalizableStringText("completedHtml",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locCompletedHtml",{get:function(){return this.getLocalizableString("completedHtml")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"completedHtmlOnCondition",{get:function(){return this.getPropertyValue("completedHtmlOnCondition")},set:function(e){this.setPropertyValue("completedHtmlOnCondition",e)},enumerable:!1,configurable:!0}),t.prototype.runExpression=function(e){if(!e)return null;var t=this.getFilteredValues(),n=this.getFilteredProperties();return new y.ExpressionRunner(e).run(t,n)},t.prototype.runCondition=function(e){if(!e)return!1;var t=this.getFilteredValues(),n=this.getFilteredProperties();return new y.ConditionRunner(e).run(t,n)},t.prototype.runTriggers=function(){this.checkTriggers(this.getFilteredValues(),!1)},Object.defineProperty(t.prototype,"renderedCompletedHtml",{get:function(){var e=this.getExpressionItemOnRunCondition(this.completedHtmlOnCondition);return e?e.html:this.completedHtml},enumerable:!1,configurable:!0}),t.prototype.getExpressionItemOnRunCondition=function(e){if(0==e.length)return null;for(var t=this.getFilteredValues(),n=this.getFilteredProperties(),r=0;r<e.length;r++)if(e[r].runCondition(t,n))return e[r];return null},Object.defineProperty(t.prototype,"completedBeforeHtml",{get:function(){return this.getLocalizableStringText("completedBeforeHtml")},set:function(e){this.setLocalizableStringText("completedBeforeHtml",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locCompletedBeforeHtml",{get:function(){return this.getLocalizableString("completedBeforeHtml")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"loadingHtml",{get:function(){return this.getLocalizableStringText("loadingHtml")},set:function(e){this.setLocalizableStringText("loadingHtml",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locLoadingHtml",{get:function(){return this.getLocalizableString("loadingHtml")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"defaultLoadingHtml",{get:function(){return"<h3>"+this.getLocalizationString("loadingSurvey")+"</h3>"},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"navigationBar",{get:function(){return this.navigationBarValue},enumerable:!1,configurable:!0}),t.prototype.addNavigationItem=function(e){return e.component||(e.component="sv-nav-btn"),e.innerCss||(e.innerCss=this.cssSurveyNavigationButton),this.navigationBar.addAction(e)},Object.defineProperty(t.prototype,"startSurveyText",{get:function(){return this.getLocalizableStringText("startSurveyText")},set:function(e){this.setLocalizableStringText("startSurveyText",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locStartSurveyText",{get:function(){return this.getLocalizableString("startSurveyText")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"pagePrevText",{get:function(){return this.getLocalizableStringText("pagePrevText")},set:function(e){this.setLocalizableStringText("pagePrevText",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locPagePrevText",{get:function(){return this.getLocalizableString("pagePrevText")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"pageNextText",{get:function(){return this.getLocalizableStringText("pageNextText")},set:function(e){this.setLocalizableStringText("pageNextText",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locPageNextText",{get:function(){return this.getLocalizableString("pageNextText")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"completeText",{get:function(){return this.getLocalizableStringText("completeText")},set:function(e){this.setLocalizableStringText("completeText",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locCompleteText",{get:function(){return this.getLocalizableString("completeText")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"previewText",{get:function(){return this.getLocalizableStringText("previewText")},set:function(e){this.setLocalizableStringText("previewText",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locPreviewText",{get:function(){return this.getLocalizableString("previewText")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"editText",{get:function(){return this.getLocalizableStringText("editText")},set:function(e){this.setLocalizableStringText("editText",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locEditText",{get:function(){return this.getLocalizableString("editText")},enumerable:!1,configurable:!0}),t.prototype.getElementTitleTagName=function(e,t){if(this.onGetTitleTagName.isEmpty)return t;var n={element:e,tagName:t};return this.onGetTitleTagName.fire(this,n),n.tagName},Object.defineProperty(t.prototype,"questionTitlePattern",{get:function(){return this.getPropertyValue("questionTitlePattern","numTitleRequire")},set:function(e){"numRequireTitle"!==e&&"requireNumTitle"!==e&&"numTitle"!=e&&(e="numTitleRequire"),this.setPropertyValue("questionTitlePattern",e)},enumerable:!1,configurable:!0}),t.prototype.getQuestionTitlePatternOptions=function(){var e=new Array,t=this.getLocalizationString("questionTitlePatternText"),n=this.questionStartIndex?this.questionStartIndex:"1.";return e.push({value:"numTitleRequire",text:n+" "+t+" "+this.requiredText}),e.push({value:"numRequireTitle",text:n+" "+this.requiredText+" "+t}),e.push({value:"requireNumTitle",text:this.requiredText+" "+n+" "+t}),e.push({value:"numTitle",text:n+" "+t}),e},Object.defineProperty(t.prototype,"questionTitleTemplate",{get:function(){return this.getLocalizableStringText("questionTitleTemplate")},set:function(e){this.setLocalizableStringText("questionTitleTemplate",e),this.questionTitlePattern=this.getNewTitlePattern(e),this.questionStartIndex=this.getNewQuestionTitleElement(e,"no",this.questionStartIndex,"1"),this.requiredText=this.getNewQuestionTitleElement(e,"require",this.requiredText,"*")},enumerable:!1,configurable:!0}),t.prototype.getNewTitlePattern=function(e){if(e){for(var t=[];e.indexOf("{")>-1;){var n=(e=e.substring(e.indexOf("{")+1)).indexOf("}");if(n<0)break;t.push(e.substring(0,n)),e=e.substring(n+1)}if(t.length>1){if("require"==t[0])return"requireNumTitle";if("require"==t[1]&&3==t.length)return"numRequireTitle";if(t.indexOf("require")<0)return"numTitle"}if(1==t.length&&"title"==t[0])return"numTitle"}return"numTitleRequire"},t.prototype.getNewQuestionTitleElement=function(e,t,n,r){if(t="{"+t+"}",!e||e.indexOf(t)<0)return n;for(var o=e.indexOf(t),i="",s="",a=o-1;a>=0&&"}"!=e[a];a--);for(a<o-1&&(i=e.substring(a+1,o)),a=o+=t.length;a<e.length&&"{"!=e[a];a++);for(a>o&&(s=e.substring(o,a)),a=0;a<i.length&&i.charCodeAt(a)<33;)a++;for(i=i.substring(a),a=s.length-1;a>=0&&s.charCodeAt(a)<33;)a--;return s=s.substring(0,a+1),i||s?i+(n||r)+s:n},Object.defineProperty(t.prototype,"locQuestionTitleTemplate",{get:function(){return this.getLocalizableString("questionTitleTemplate")},enumerable:!1,configurable:!0}),t.prototype.getUpdatedQuestionTitle=function(e,t){if(this.onGetQuestionTitle.isEmpty)return t;var n={question:e,title:t};return this.onGetQuestionTitle.fire(this,n),n.title},t.prototype.getUpdatedQuestionNo=function(e,t){if(this.onGetQuestionNo.isEmpty)return t;var n={question:e,no:t};return this.onGetQuestionNo.fire(this,n),n.no},Object.defineProperty(t.prototype,"showPageNumbers",{get:function(){return this.getPropertyValue("showPageNumbers")},set:function(e){e!==this.showPageNumbers&&(this.setPropertyValue("showPageNumbers",e),this.updateVisibleIndexes())},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"showQuestionNumbers",{get:function(){return this.getPropertyValue("showQuestionNumbers")},set:function(e){!0===e&&(e="on"),!1===e&&(e="off"),(e="onpage"===(e=e.toLowerCase())?"onPage":e)!==this.showQuestionNumbers&&(this.setPropertyValue("showQuestionNumbers",e),this.updateVisibleIndexes())},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"showProgressBar",{get:function(){return this.getPropertyValue("showProgressBar")},set:function(e){this.setPropertyValue("showProgressBar",e.toLowerCase())},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"progressBarType",{get:function(){return this.getPropertyValue("progressBarType")},set:function(e){"correctquestion"===e&&(e="correctQuestion"),"requiredquestion"===e&&(e="requiredQuestion"),this.setPropertyValue("progressBarType",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isShowProgressBarOnTop",{get:function(){return!!this.canShowProresBar()&&("top"===this.showProgressBar||"both"===this.showProgressBar)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isShowProgressBarOnBottom",{get:function(){return!!this.canShowProresBar()&&("bottom"===this.showProgressBar||"both"===this.showProgressBar)},enumerable:!1,configurable:!0}),t.prototype.getProgressTypeComponent=function(){return"sv-progress-"+this.progressBarType.toLowerCase()},t.prototype.getProgressCssClasses=function(){return(new x.CssClassBuilder).append(this.css.progress).append(this.css.progressTop,this.isShowProgressBarOnTop).append(this.css.progressBottom,this.isShowProgressBarOnBottom).toString()},t.prototype.canShowProresBar=function(){return!this.isShowingPreview||"showAllQuestions"!=this.showPreviewBeforeComplete},Object.defineProperty(t.prototype,"processedTitle",{get:function(){return this.locTitle.renderedHtml},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"questionTitleLocation",{get:function(){return this.getPropertyValue("questionTitleLocation")},set:function(e){this.setPropertyValue("questionTitleLocation",e.toLowerCase()),this.isLoadingFromJson||this.updateElementCss(!0)},enumerable:!1,configurable:!0}),t.prototype.updateElementCss=function(e){this.startedPage&&this.startedPage.updateElementCss(e);for(var t=this.visiblePages,n=0;n<t.length;n++)t[n].updateElementCss(e);this.updateCss()},Object.defineProperty(t.prototype,"questionErrorLocation",{get:function(){return this.getPropertyValue("questionErrorLocation")},set:function(e){this.setPropertyValue("questionErrorLocation",e.toLowerCase())},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"questionDescriptionLocation",{get:function(){return this.getPropertyValue("questionDescriptionLocation")},set:function(e){this.setPropertyValue("questionDescriptionLocation",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"mode",{get:function(){return this.getPropertyValue("mode")},set:function(e){(e=e.toLowerCase())!=this.mode&&("edit"!=e&&"display"!=e||this.setPropertyValue("mode",e))},enumerable:!1,configurable:!0}),t.prototype.onModeChanged=function(){for(var e=0;e<this.pages.length;e++){var t=this.pages[e];t.setPropertyValue("isReadOnly",t.isReadOnly)}this.updateButtonsVisibility(),this.updateCss()},Object.defineProperty(t.prototype,"data",{get:function(){for(var e={},t=this.getValuesKeys(),n=0;n<t.length;n++){var r=t[n],o=this.getDataValueCore(this.valuesHash,r);void 0!==o&&(e[r]=o)}return this.setCalculatedValuesIntoResult(e),e},set:function(e){this.valuesHash={},this.setDataCore(e)},enumerable:!1,configurable:!0}),t.prototype.mergeData=function(e){if(e){var t=this.data;this.mergeValues(e,t),this.setDataCore(t)}},t.prototype.setDataCore=function(e){if(e)for(var t in e)this.setDataValueCore(this.valuesHash,t,e[t]);this.updateAllQuestionsValue(),this.notifyAllQuestionsOnValueChanged(),this.notifyElementsOnAnyValueOrVariableChanged(""),this.runConditions(),this.updateAllQuestionsValue()},t.prototype.getStructuredData=function(e,t){if(void 0===e&&(e=!0),void 0===t&&(t=-1),0===t)return this.data;var n={};return this.pages.forEach((function(r){if(e){var o={};r.collectValues(o,t-1)&&(n[r.name]=o)}else r.collectValues(n,t)})),n},t.prototype.setStructuredData=function(e,t){if(void 0===t&&(t=!1),e){var n={};for(var r in e)if(this.getQuestionByValueName(r))n[r]=e[r];else{var o=this.getPageByName(r);o||(o=this.getPanelByName(r)),o&&this.collectDataFromPanel(o,n,e[r])}t?this.mergeData(n):this.data=n}},t.prototype.collectDataFromPanel=function(e,t,n){for(var r in n){var o=e.getElementByName(r);o&&(o.isPanel?this.collectDataFromPanel(o,t,n[r]):t[r]=n[r])}},Object.defineProperty(t.prototype,"editingObj",{get:function(){return this.editingObjValue},set:function(e){var t=this;if(this.editingObj!=e&&(this.editingObj&&this.editingObj.onPropertyChanged.remove(this.onEditingObjPropertyChanged),this.editingObjValue=e,!this.isDisposed)){if(!e)for(var n=this.getAllQuestions(),r=0;r<n.length;r++)n[r].unbindValue();this.editingObj&&(this.setDataCore({}),this.onEditingObjPropertyChanged=function(e,n){i.Serializer.hasOriginalProperty(t.editingObj,n.name)&&t.updateOnSetValue(n.name,t.editingObj[n.name],n.oldValue)},this.editingObj.onPropertyChanged.add(this.onEditingObjPropertyChanged))}},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isEditingSurveyElement",{get:function(){return!!this.editingObj},enumerable:!1,configurable:!0}),t.prototype.setCalculatedValuesIntoResult=function(e){for(var t=0;t<this.calculatedValues.length;t++){var n=this.calculatedValues[t];n.includeIntoResult&&n.name&&void 0!==this.getVariable(n.name)&&(e[n.name]=this.getVariable(n.name))}},t.prototype.getAllValues=function(){return this.data},t.prototype.getPlainData=function(e){e||(e={includeEmpty:!0,includeQuestionTypes:!1,includeValues:!1});var t=[],n=[];if(this.getAllQuestions().forEach((function(r){var o=r.getPlainData(e);o&&(t.push(o),n.push(r.valueName||r.name))})),e.includeValues)for(var r=this.getValuesKeys(),o=0;o<r.length;o++){var i=r[o];if(-1==n.indexOf(i)){var s=this.getDataValueCore(this.valuesHash,i);s&&t.push({name:i,title:i,value:s,displayValue:s,isNode:!1,getString:function(e){return"object"==typeof e?JSON.stringify(e):e}})}}return t},t.prototype.getFilteredValues=function(){var e={};for(var t in this.variablesHash)e[t]=this.variablesHash[t];this.addCalculatedValuesIntoFilteredValues(e);for(var n=this.getValuesKeys(),r=0;r<n.length;r++)e[t=n[r]]=this.getDataValueCore(this.valuesHash,t);return e},t.prototype.addCalculatedValuesIntoFilteredValues=function(e){for(var t=this.calculatedValues,n=0;n<t.length;n++)e[t[n].name]=t[n].value},t.prototype.getFilteredProperties=function(){return{survey:this}},t.prototype.getValuesKeys=function(){if(!this.editingObj)return Object.keys(this.valuesHash);for(var e=i.Serializer.getPropertiesByObj(this.editingObj),t=[],n=0;n<e.length;n++)t.push(e[n].name);return t},t.prototype.getDataValueCore=function(e,t){return this.editingObj?i.Serializer.getObjPropertyValue(this.editingObj,t):this.getDataFromValueHash(e,t)},t.prototype.setDataValueCore=function(e,t,n){this.editingObj?i.Serializer.setObjPropertyValue(this.editingObj,t,n):this.setDataToValueHash(e,t,n)},t.prototype.deleteDataValueCore=function(e,t){this.editingObj?this.editingObj[t]=null:this.deleteDataFromValueHash(e,t)},t.prototype.getDataFromValueHash=function(e,t){return this.valueHashGetDataCallback?this.valueHashGetDataCallback(e,t):e[t]},t.prototype.setDataToValueHash=function(e,t,n){this.valueHashSetDataCallback?this.valueHashSetDataCallback(e,t,n):e[t]=n},t.prototype.deleteDataFromValueHash=function(e,t){this.valueHashDeleteDataCallback?this.valueHashDeleteDataCallback(e,t):delete e[t]},Object.defineProperty(t.prototype,"comments",{get:function(){for(var e={},t=this.getValuesKeys(),n=0;n<t.length;n++){var r=t[n];r.indexOf(this.commentSuffix)>0&&(e[r]=this.getDataValueCore(this.valuesHash,r))}return e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"visiblePages",{get:function(){if(this.isDesignMode)return this.pages;for(var e=new Array,t=0;t<this.pages.length;t++)this.isPageInVisibleList(this.pages[t])&&e.push(this.pages[t]);return e},enumerable:!1,configurable:!0}),t.prototype.isPageInVisibleList=function(e){return this.isDesignMode||e.isVisible&&!e.isStartPage},Object.defineProperty(t.prototype,"isEmpty",{get:function(){return 0==this.pages.length},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"PageCount",{get:function(){return this.pageCount},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"pageCount",{get:function(){return this.pages.length},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"visiblePageCount",{get:function(){return this.visiblePages.length},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"startedPage",{get:function(){var e=this.firstPageIsStarted&&this.pages.length>1?this.pages[0]:null;return e&&(e.onFirstRendering(),e.setWasShown(!0)),e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"currentPage",{get:function(){return this.getPropertyValue("currentPage",null)},set:function(e){if(!this.isLoadingFromJson){var t=this.getPageByObject(e);if((!e||t)&&(t||!this.isCurrentPageAvailable)){var n=this.visiblePages;if(!(null!=t&&n.indexOf(t)<0)&&t!=this.currentPage){var r=this.currentPage;(this.isShowingPreview||this.currentPageChanging(t,r))&&(this.setPropertyValue("currentPage",t),t&&(t.onFirstRendering(),t.updateCustomWidgets(),t.setWasShown(!0)),this.locStrsChanged(),this.isShowingPreview||this.currentPageChanged(t,r))}}}},enumerable:!1,configurable:!0}),t.prototype.updateCurrentPage=function(){this.isCurrentPageAvailable||(this.currentPage=this.firstVisiblePage)},Object.defineProperty(t.prototype,"isCurrentPageAvailable",{get:function(){var e=this.currentPage;return!!e&&this.isPageInVisibleList(e)&&this.isPageExistsInSurvey(e)},enumerable:!1,configurable:!0}),t.prototype.isPageExistsInSurvey=function(e){return this.pages.indexOf(e)>-1||!!this.onContainsPageCallback&&this.onContainsPageCallback(e)},Object.defineProperty(t.prototype,"activePage",{get:function(){return this.getPropertyValue("activePage")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isShowStartingPage",{get:function(){return"starting"===this.state},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"matrixDragHandleArea",{get:function(){return this.getPropertyValue("matrixDragHandleArea","entireItem")},set:function(e){this.setPropertyValue("matrixDragHandleArea",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isShowingPage",{get:function(){return"running"==this.state||"preview"==this.state||this.isShowStartingPage},enumerable:!1,configurable:!0}),t.prototype.updateActivePage=function(){var e=this.isShowStartingPage?this.startedPage:this.currentPage;this.setPropertyValue("activePage",e)},t.prototype.onStateAndCurrentPageChanged=function(){this.updateActivePage(),this.updateButtonsVisibility()},t.prototype.getPageByObject=function(e){if(!e)return null;if(e.getType&&"page"==e.getType())return e;if("string"==typeof e||e instanceof String)return this.getPageByName(String(e));if(!isNaN(e)){var t=Number(e),n=this.visiblePages;return e<0||e>=n.length?null:n[t]}return e},Object.defineProperty(t.prototype,"currentPageNo",{get:function(){return this.visiblePages.indexOf(this.currentPage)},set:function(e){var t=this.visiblePages;e<0||e>=t.length||(this.currentPage=t[e])},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"questionsOrder",{get:function(){return this.getPropertyValue("questionsOrder")},set:function(e){this.setPropertyValue("questionsOrder",e)},enumerable:!1,configurable:!0}),t.prototype.focusFirstQuestion=function(){if(!this.focusingQuestionInfo){var e=this.activePage;e&&(e.scrollToTop(),e.focusFirstQuestion())}},t.prototype.scrollToTopOnPageChange=function(e){void 0===e&&(e=!0);var t=this.activePage;t&&(e&&t.scrollToTop(),this.isCurrentPageRendering&&this.focusFirstQuestionAutomatic&&!this.focusingQuestionInfo&&(t.focusFirstQuestion(),this.isCurrentPageRendering=!1))},Object.defineProperty(t.prototype,"state",{get:function(){return this.getPropertyValue("state","empty")},enumerable:!1,configurable:!0}),t.prototype.updateState=function(){this.setPropertyValue("state",this.calcState())},t.prototype.calcState=function(){return this.isLoading?"loading":this.isCompleted?"completed":this.isCompletedBefore?"completedbefore":!this.isDesignMode&&this.isEditMode&&this.isStartedState&&this.startedPage?"starting":this.isShowingPreview?this.currentPage?"preview":"empty":this.currentPage?"running":"empty"},Object.defineProperty(t.prototype,"isCompleted",{get:function(){return this.getPropertyValue("isCompleted",!1)},set:function(e){this.setPropertyValue("isCompleted",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isShowingPreview",{get:function(){return this.getPropertyValue("isShowingPreview",!1)},set:function(e){this.isShowingPreview!=e&&(this.setPropertyValue("isShowingPreview",e),this.onShowingPreviewChanged())},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isStartedState",{get:function(){return this.getPropertyValue("isStartedState",!1)},set:function(e){this.setPropertyValue("isStartedState",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isCompletedBefore",{get:function(){return this.getPropertyValue("isCompletedBefore",!1)},set:function(e){this.setPropertyValue("isCompletedBefore",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isLoading",{get:function(){return this.getPropertyValue("isLoading",!1)},set:function(e){this.setPropertyValue("isLoading",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"completedState",{get:function(){return this.getPropertyValue("completedState","")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"completedStateText",{get:function(){return this.getPropertyValue("completedStateText","")},enumerable:!1,configurable:!0}),t.prototype.setCompletedState=function(e,t){this.setPropertyValue("completedState",e),t||("saving"==e&&(t=this.getLocalizationString("savingData")),"error"==e&&(t=this.getLocalizationString("savingDataError")),"success"==e&&(t=this.getLocalizationString("savingDataSuccess"))),this.setPropertyValue("completedStateText",t),"completed"===this.state&&this.showCompletedPage&&this.completedState&&this.notify(this.completedStateText,this.completedState)},t.prototype.notify=function(e,t){this.notifier.notify(e,t,"error"===t)},t.prototype.clear=function(e,t){void 0===e&&(e=!0),void 0===t&&(t=!0),this.isCompleted=!1,this.isCompletedBefore=!1,this.isLoading=!1,this.completedByTriggers=void 0,e&&(this.data=null,this.variablesHash={}),this.timerModel.spent=0;for(var n=0;n<this.pages.length;n++)this.pages[n].timeSpent=0,this.pages[n].setWasShown(!1),this.pages[n].passed=!1;this.onFirstPageIsStartedChanged(),t&&(this.currentPage=this.firstVisiblePage),e&&this.updateValuesWithDefaults()},t.prototype.mergeValues=function(e,t){Object(b.mergeValues)(e,t)},t.prototype.updateValuesWithDefaults=function(){if(!this.isDesignMode&&!this.isLoading)for(var e=0;e<this.pages.length;e++)for(var t=this.pages[e].questions,n=0;n<t.length;n++)t[n].updateValueWithDefaults()},t.prototype.updateCustomWidgets=function(e){e&&e.updateCustomWidgets()},t.prototype.currentPageChanging=function(e,t){var n=this.createPageChangeEventOptions(e,t);n.allow=!0,n.allowChanging=!0,this.onCurrentPageChanging.fire(this,n);var r=n.allowChanging&&n.allow;return r&&(this.isCurrentPageRendering=!0),r},t.prototype.currentPageChanged=function(e,t){var n=this.createPageChangeEventOptions(e,t);n.isNextPage&&(t.passed=!0),this.onCurrentPageChanged.fire(this,n)},t.prototype.createPageChangeEventOptions=function(e,t){var n=e&&t?e.visibleIndex-t.visibleIndex:0;return{oldCurrentPage:t,newCurrentPage:e,isNextPage:1===n,isPrevPage:-1===n,isGoingForward:n>0,isGoingBackward:n<0,isAfterPreview:!0===this.changeCurrentPageFromPreview}},t.prototype.getProgress=function(){if(null==this.currentPage)return 0;if("pages"!==this.progressBarType){var e=this.getProgressInfo();return"requiredQuestions"===this.progressBarType?e.requiredQuestionCount>=1?Math.ceil(100*e.requiredAnsweredQuestionCount/e.requiredQuestionCount):100:e.questionCount>=1?Math.ceil(100*e.answeredQuestionCount/e.questionCount):100}var t=this.visiblePages,n=t.indexOf(this.currentPage);return Math.ceil(100*n/t.length)},Object.defineProperty(t.prototype,"progressValue",{get:function(){return this.getPropertyValue("progressValue",0)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isNavigationButtonsShowing",{get:function(){if(this.isDesignMode)return"none";var e=this.currentPage;return e?"show"===e.navigationButtonsVisibility?"none"===this.showNavigationButtons?"bottom":this.showNavigationButtons:"hide"===e.navigationButtonsVisibility?"none":this.showNavigationButtons:"none"},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isNavigationButtonsShowingOnTop",{get:function(){return this.getIsNavigationButtonsShowingOn("top")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isNavigationButtonsShowingOnBottom",{get:function(){return this.getIsNavigationButtonsShowingOn("bottom")},enumerable:!1,configurable:!0}),t.prototype.getIsNavigationButtonsShowingOn=function(e){var t=this.isNavigationButtonsShowing;return"both"==t||t==e},Object.defineProperty(t.prototype,"isEditMode",{get:function(){return"edit"==this.mode},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isDisplayMode",{get:function(){return"display"==this.mode||"preview"==this.state},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isUpdateValueTextOnTyping",{get:function(){return"onTyping"==this.textUpdateMode},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isDesignMode",{get:function(){return this._isDesignMode},enumerable:!1,configurable:!0}),t.prototype.setDesignMode=function(e){!!this._isDesignMode!=!!e&&(this._isDesignMode=!!e,this.onQuestionsOnPageModeChanged("standard"))},Object.defineProperty(t.prototype,"showInvisibleElements",{get:function(){return this.getPropertyValue("showInvisibleElements",!1)},set:function(e){var t=this.visiblePages;this.setPropertyValue("showInvisibleElements",e),this.isLoadingFromJson||(this.runConditions(),this.updateAllElementsVisibility(t))},enumerable:!1,configurable:!0}),t.prototype.updateAllElementsVisibility=function(e){for(var t=0;t<this.pages.length;t++){var n=this.pages[t];n.updateElementVisibility(),e.indexOf(n)>-1!=n.isVisible&&this.onPageVisibleChanged.fire(this,{page:n,visible:n.isVisible})}},Object.defineProperty(t.prototype,"areInvisibleElementsShowing",{get:function(){return this.isDesignMode||this.showInvisibleElements},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"areEmptyElementsHidden",{get:function(){return this.isShowingPreview&&"showAnsweredQuestions"==this.showPreviewBeforeComplete&&this.isAnyQuestionAnswered},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isAnyQuestionAnswered",{get:function(){for(var e=this.getAllQuestions(!0),t=0;t<e.length;t++)if(!e[t].isEmpty())return!0;return!1},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hasCookie",{get:function(){if(!this.cookieName||"undefined"==typeof document)return!1;var e=document.cookie;return e&&e.indexOf(this.cookieName+"=true")>-1},enumerable:!1,configurable:!0}),t.prototype.setCookie=function(){this.cookieName&&"undefined"!=typeof document&&(document.cookie=this.cookieName+"=true; expires=Fri, 31 Dec 9999 0:0:0 GMT")},t.prototype.deleteCookie=function(){this.cookieName&&(document.cookie=this.cookieName+"=;")},t.prototype.nextPage=function(){return!this.isLastPage&&this.doCurrentPageComplete(!1)},t.prototype.hasErrorsOnNavigate=function(e){var t=this;if(this.ignoreValidation||!this.isEditMode)return!1;var n=function(n){n||t.doCurrentPageCompleteCore(e)};return this.isValidateOnComplete?!!this.isLastPage&&!0!==this.validate(!0,!0,n):!0!==this.validateCurrentPage(n)},t.prototype.checkForAsyncQuestionValidation=function(e,t){var n=this;this.clearAsyncValidationQuesitons();for(var r=function(){if(e[i].isRunningValidators){var r=e[i];r.onCompletedAsyncValidators=function(e){n.onCompletedAsyncQuestionValidators(r,t,e)},o.asyncValidationQuesitons.push(e[i])}},o=this,i=0;i<e.length;i++)r();return this.asyncValidationQuesitons.length>0},t.prototype.clearAsyncValidationQuesitons=function(){if(this.asyncValidationQuesitons)for(var e=this.asyncValidationQuesitons,t=0;t<e.length;t++)e[t].onCompletedAsyncValidators=null;this.asyncValidationQuesitons=[]},t.prototype.onCompletedAsyncQuestionValidators=function(e,t,n){if(n){if(this.clearAsyncValidationQuesitons(),t(!0),this.focusOnFirstError&&e&&e.page&&e.page===this.currentPage){for(var r=this.currentPage.questions,o=0;o<r.length;o++)if(r[o]!==e&&r[o].errors.length>0)return;e.focus(!0)}}else{for(var i=this.asyncValidationQuesitons,s=0;s<i.length;s++)if(i[s].isRunningValidators)return;t(!1)}},Object.defineProperty(t.prototype,"isCurrentPageHasErrors",{get:function(){return this.checkIsCurrentPageHasErrors()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isCurrentPageValid",{get:function(){return!this.checkIsCurrentPageHasErrors()},enumerable:!1,configurable:!0}),t.prototype.hasCurrentPageErrors=function(e){return this.hasPageErrors(void 0,e)},t.prototype.validateCurrentPage=function(e){return this.validatePage(void 0,e)},t.prototype.hasPageErrors=function(e,t){var n=this.validatePage(e,t);return void 0===n?n:!n},t.prototype.validatePage=function(e,t){return e||(e=this.activePage),!e||!this.checkIsPageHasErrors(e)&&(!t||!this.checkForAsyncQuestionValidation(e.questions,(function(e){return t(e)}))||void 0)},t.prototype.hasErrors=function(e,t,n){void 0===e&&(e=!0),void 0===t&&(t=!1);var r=this.validate(e,t,n);return void 0===r?r:!r},t.prototype.validate=function(e,t,n){void 0===e&&(e=!0),void 0===t&&(t=!1),n&&(e=!0);for(var r=this.visiblePages,o=null,i=!0,s=0;s<r.length;s++)r[s].validate(e,!1)||(o||(o=r[s]),i=!1);if(t&&o)for(var a=o.getQuestions(!0),l=0;l<a.length;l++)if(a[l].errors.length>0){a[l].focus(!0);break}return i&&n?!this.checkForAsyncQuestionValidation(this.getAllQuestions(),(function(e){return n(e)}))||void 0:i},t.prototype.ensureUniqueNames=function(e){if(void 0===e&&(e=null),null==e)for(var t=0;t<this.pages.length;t++)this.ensureUniqueName(this.pages[t]);else this.ensureUniqueName(e)},t.prototype.ensureUniqueName=function(e){if(e.isPage&&this.ensureUniquePageName(e),e.isPanel&&this.ensureUniquePanelName(e),e.isPage||e.isPanel)for(var t=e.elements,n=0;n<t.length;n++)this.ensureUniqueNames(t[n]);else this.ensureUniqueQuestionName(e)},t.prototype.ensureUniquePageName=function(e){var t=this;return this.ensureUniqueElementName(e,(function(e){return t.getPageByName(e)}))},t.prototype.ensureUniquePanelName=function(e){var t=this;return this.ensureUniqueElementName(e,(function(e){return t.getPanelByName(e)}))},t.prototype.ensureUniqueQuestionName=function(e){var t=this;return this.ensureUniqueElementName(e,(function(e){return t.getQuestionByName(e)}))},t.prototype.ensureUniqueElementName=function(e,t){var n=t(e.name);if(n&&n!=e){for(var r=this.getNewName(e.name);t(r);)r=this.getNewName(e.name);e.name=r}},t.prototype.getNewName=function(e){for(var t=e.length;t>0&&e[t-1]>="0"&&e[t-1]<="9";)t--;var n=e.substring(0,t),r=0;return t<e.length&&(r=parseInt(e.substring(t))),n+ ++r},t.prototype.checkIsCurrentPageHasErrors=function(e){return void 0===e&&(e=void 0),this.checkIsPageHasErrors(this.activePage,e)},t.prototype.checkIsPageHasErrors=function(e,t){if(void 0===t&&(t=void 0),void 0===t&&(t=this.focusOnFirstError),!e)return!0;var n=!e.validate(!0,t);return this.fireValidatedErrorsOnPage(e),n},t.prototype.fireValidatedErrorsOnPage=function(e){if(!this.onValidatedErrorsOnCurrentPage.isEmpty&&e){for(var t=e.questions,n=new Array,r=new Array,o=0;o<t.length;o++){var i=t[o];if(i.errors.length>0){n.push(i);for(var s=0;s<i.errors.length;s++)r.push(i.errors[s])}}this.onValidatedErrorsOnCurrentPage.fire(this,{questions:n,errors:r,page:e})}},t.prototype.prevPage=function(){var e=this;if(this.isFirstPage||"starting"===this.state)return!1;this.resetNavigationButton();var t=this.skippedPages.find((function(t){return t.to==e.currentPage}));if(t)this.currentPage=t.from,this.skippedPages.splice(this.skippedPages.indexOf(t),1);else{var n=this.visiblePages,r=n.indexOf(this.currentPage);this.currentPage=n[r-1]}return!0},t.prototype.completeLastPage=function(){this.isValidateOnComplete&&this.cancelPreview();var e=this.doCurrentPageComplete(!0);return e&&this.cancelPreview(),e},t.prototype.navigationMouseDown=function(){return this.isNavigationButtonPressed=!0,!0},t.prototype.resetNavigationButton=function(){this.isNavigationButtonPressed=!1},t.prototype.nextPageUIClick=function(){if(!this.mouseDownPage||this.mouseDownPage===this.activePage)return this.mouseDownPage=null,this.nextPage()},t.prototype.nextPageMouseDown=function(){return this.mouseDownPage=this.activePage,this.navigationMouseDown()},t.prototype.showPreview=function(){if(this.resetNavigationButton(),!this.isValidateOnComplete){if(this.hasErrorsOnNavigate(!0))return!1;if(this.doServerValidation(!0,!0))return!1}return this.showPreviewCore(),!0},t.prototype.showPreviewCore=function(){var e={allowShowPreview:!0,allow:!0};this.onShowingPreview.fire(this,e),this.isShowingPreview=e.allowShowPreview&&e.allow},t.prototype.cancelPreview=function(e){void 0===e&&(e=null),this.isShowingPreview&&(this.gotoPageFromPreview=e,this.isShowingPreview=!1)},t.prototype.cancelPreviewByPage=function(e){this.cancelPreview(e.originalPage)},t.prototype.doCurrentPageComplete=function(e){return!this.isValidatingOnServer&&(this.resetNavigationButton(),!this.hasErrorsOnNavigate(e)&&this.doCurrentPageCompleteCore(e))},t.prototype.doCurrentPageCompleteCore=function(e){return!this.doServerValidation(e)&&(e?(this.currentPage.passed=!0,this.doComplete(this.canBeCompletedByTrigger,this.completedTrigger)):(this.doNextPage(),!0))},Object.defineProperty(t.prototype,"isSinglePage",{get:function(){return"singlePage"==this.questionsOnPageMode},set:function(e){this.questionsOnPageMode=e?"singlePage":"standard"},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"questionsOnPageMode",{get:function(){return this.getPropertyValue("questionsOnPageMode")},set:function(e){this.setPropertyValue("questionsOnPageMode",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"firstPageIsStarted",{get:function(){return this.getPropertyValue("firstPageIsStarted")},set:function(e){this.setPropertyValue("firstPageIsStarted",e)},enumerable:!1,configurable:!0}),t.prototype.isPageStarted=function(e){return this.firstPageIsStarted&&this.pages.length>1&&this.pages[0]===e},Object.defineProperty(t.prototype,"showPreviewBeforeComplete",{get:function(){return this.getPropertyValue("showPreviewBeforeComplete")},set:function(e){this.setPropertyValue("showPreviewBeforeComplete",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isShowPreviewBeforeComplete",{get:function(){var e=this.showPreviewBeforeComplete;return"showAllQuestions"==e||"showAnsweredQuestions"==e},enumerable:!1,configurable:!0}),t.prototype.onFirstPageIsStartedChanged=function(){this.isStartedState=this.firstPageIsStarted&&this.pages.length>1,this.pageVisibilityChanged(this.pages[0],!this.isStartedState)},t.prototype.onShowingPreviewChanged=function(){if(!this.isDesignMode)if(this.isShowingPreview?(this.runningPages=this.pages.slice(0,this.pages.length),this.setupPagesForPageModes(!0)):(this.runningPages&&this.restoreOrigionalPages(this.runningPages),this.runningPages=void 0),this.runConditions(),this.updateAllElementsVisibility(this.pages),this.updateVisibleIndexes(),this.isShowingPreview)this.currentPageNo=0;else{var e=this.gotoPageFromPreview;this.gotoPageFromPreview=null,o.Helpers.isValueEmpty(e)&&this.visiblePageCount>0&&(e=this.visiblePages[this.visiblePageCount-1]),e&&(this.changeCurrentPageFromPreview=!0,this.currentPage=e,this.changeCurrentPageFromPreview=!1)}},t.prototype.onQuestionsOnPageModeChanged=function(e){this.isShowingPreview||("standard"==this.questionsOnPageMode||this.isDesignMode?(this.origionalPages&&this.restoreOrigionalPages(this.origionalPages),this.origionalPages=void 0):(e&&"standard"!=e||(this.origionalPages=this.pages.slice(0,this.pages.length)),this.setupPagesForPageModes(this.isSinglePage)),this.runConditions(),this.updateVisibleIndexes())},t.prototype.restoreOrigionalPages=function(e){this.questionHashesClear(),this.pages.splice(0,this.pages.length);for(var t=0;t<e.length;t++)this.pages.push(e[t])},t.prototype.getPageStartIndex=function(){return this.firstPageIsStarted&&this.pages.length>0?1:0},t.prototype.setupPagesForPageModes=function(t){this.questionHashesClear();var n=this.getPageStartIndex();e.prototype.startLoadingFromJson.call(this);var r=this.createPagesForQuestionOnPageMode(t,n),o=this.pages.length-n;this.pages.splice(n,o);for(var i=0;i<r.length;i++)this.pages.push(r[i]);for(e.prototype.endLoadingFromJson.call(this),i=0;i<r.length;i++)r[i].setSurveyImpl(this,!0);this.doElementsOnLoad(),this.updateCurrentPage()},t.prototype.createPagesForQuestionOnPageMode=function(e,t){return e?[this.createSinglePage(t)]:this.createPagesForEveryQuestion(t)},t.prototype.createSinglePage=function(e){var t=this.createNewPage("all");t.setSurveyImpl(this);for(var n=e;n<this.pages.length;n++){var r=this.pages[n],o=i.Serializer.createClass("panel");o.originalPage=r,t.addPanel(o);var s=(new i.JsonObject).toJsonObject(r);(new i.JsonObject).toObject(s,o),this.showPageTitles||(o.title="")}return t},t.prototype.createPagesForEveryQuestion=function(e){for(var t=[],n=e;n<this.pages.length;n++){var r=this.pages[n];r.setWasShown(!0);for(var o=0;o<r.elements.length;o++){var s=r.elements[o],a=i.Serializer.createClass(s.getType());if(a){var l=new i.JsonObject;l.lightSerializing=!0;var u=l.toJsonObject(r),c=i.Serializer.createClass(r.getType());c.fromJSON(u),c.name=s.name,c.setSurveyImpl(this),t.push(c);var p=(new i.JsonObject).toJsonObject(s);c.addElement(a),(new i.JsonObject).toObject(p,a);for(var d=0;d<c.questions.length;d++)this.questionHashesAdded(c.questions[d])}}}return t},Object.defineProperty(t.prototype,"isFirstPage",{get:function(){return this.getPropertyValue("isFirstPage")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isLastPage",{get:function(){return this.getPropertyValue("isLastPage")},enumerable:!1,configurable:!0}),t.prototype.updateButtonsVisibility=function(){this.updateIsFirstLastPageState(),this.setPropertyValue("isShowPrevButton",this.calcIsShowPrevButton()),this.setPropertyValue("isShowNextButton",this.calcIsShowNextButton()),this.setPropertyValue("isCompleteButtonVisible",this.calcIsCompleteButtonVisible()),this.setPropertyValue("isPreviewButtonVisible",this.calcIsPreviewButtonVisible()),this.setPropertyValue("isCancelPreviewButtonVisible",this.calcIsCancelPreviewButtonVisible())},Object.defineProperty(t.prototype,"isShowPrevButton",{get:function(){return this.getPropertyValue("isShowPrevButton")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isShowNextButton",{get:function(){return this.getPropertyValue("isShowNextButton")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isCompleteButtonVisible",{get:function(){return this.getPropertyValue("isCompleteButtonVisible")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isPreviewButtonVisible",{get:function(){return this.getPropertyValue("isPreviewButtonVisible")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isCancelPreviewButtonVisible",{get:function(){return this.getPropertyValue("isCancelPreviewButtonVisible")},enumerable:!1,configurable:!0}),t.prototype.updateIsFirstLastPageState=function(){var e=this.currentPage;this.setPropertyValue("isFirstPage",!!e&&e===this.firstVisiblePage),this.setPropertyValue("isLastPage",!!e&&e===this.lastVisiblePage)},t.prototype.calcIsShowPrevButton=function(){if(this.isFirstPage||!this.showPrevButton||"running"!==this.state)return!1;var e=this.visiblePages[this.currentPageNo-1];return this.getPageMaxTimeToFinish(e)<=0},t.prototype.calcIsShowNextButton=function(){return"running"===this.state&&!this.isLastPage&&!this.canBeCompletedByTrigger},t.prototype.calcIsCompleteButtonVisible=function(){var e=this.state;return this.isEditMode&&("running"===this.state&&(this.isLastPage&&!this.isShowPreviewBeforeComplete||this.canBeCompletedByTrigger)||"preview"===e)},t.prototype.calcIsPreviewButtonVisible=function(){return this.isEditMode&&this.isShowPreviewBeforeComplete&&"running"==this.state&&this.isLastPage},t.prototype.calcIsCancelPreviewButtonVisible=function(){return this.isEditMode&&this.isShowPreviewBeforeComplete&&"preview"==this.state},Object.defineProperty(t.prototype,"firstVisiblePage",{get:function(){for(var e=this.pages,t=0;t<e.length;t++)if(this.isPageInVisibleList(e[t]))return e[t];return null},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"lastVisiblePage",{get:function(){for(var e=this.pages,t=e.length-1;t>=0;t--)if(this.isPageInVisibleList(e[t]))return e[t];return null},enumerable:!1,configurable:!0}),t.prototype.doComplete=function(e,t){if(void 0===e&&(e=!1),!this.isCompleted)return this.checkOnCompletingEvent(e,t)?(this.checkOnPageTriggers(!0),this.stopTimer(),this.isCompleted=!0,this.clearUnusedValues(),this.saveDataOnComplete(e,t),this.setCookie(),!0):(this.isCompleted=!1,!1)},t.prototype.saveDataOnComplete=function(e,t){var n=this;void 0===e&&(e=!1);var r=this.hasCookie,o=function(e){l=!0,n.setCompletedState("saving",e)},i=function(e){n.setCompletedState("error",e)},s=function(e){n.setCompletedState("success",e),n.navigateTo()},a=function(e){n.setCompletedState("","")},l=!1,u={isCompleteOnTrigger:e,completeTrigger:t,showSaveInProgress:o,showSaveError:i,showSaveSuccess:s,clearSaveMessages:a,showDataSaving:o,showDataSavingError:i,showDataSavingSuccess:s,showDataSavingClear:a};this.onComplete.fire(this,u),!r&&this.surveyPostId&&this.sendResult(),l||this.navigateTo()},t.prototype.checkOnCompletingEvent=function(e,t){var n={allowComplete:!0,allow:!0,isCompleteOnTrigger:e,completeTrigger:t};return this.onCompleting.fire(this,n),n.allowComplete&&n.allow},t.prototype.start=function(){return!!this.firstPageIsStarted&&(this.isCurrentPageRendering=!0,!this.checkIsPageHasErrors(this.startedPage,!0)&&(this.isStartedState=!1,this.startTimerFromUI(),this.onStarted.fire(this,{}),this.updateVisibleIndexes(),this.currentPage&&this.currentPage.locStrsChanged(),!0))},Object.defineProperty(t.prototype,"isValidatingOnServer",{get:function(){return this.getPropertyValue("isValidatingOnServer",!1)},enumerable:!1,configurable:!0}),t.prototype.setIsValidatingOnServer=function(e){e!=this.isValidatingOnServer&&(this.setPropertyValue("isValidatingOnServer",e),this.onIsValidatingOnServerChanged())},t.prototype.createServerValidationOptions=function(e,t){var n=this,r={data:{},errors:{},survey:this,complete:function(){n.completeServerValidation(r,t)}};if(e&&this.isValidateOnComplete)r.data=this.data;else for(var o=this.activePage.questions,i=0;i<o.length;i++){var s=o[i];if(s.visible){var a=this.getValue(s.getValueName());this.isValueEmpty(a)||(r.data[s.getValueName()]=a)}}return r},t.prototype.onIsValidatingOnServerChanged=function(){},t.prototype.doServerValidation=function(e,t){var n=this;if(void 0===t&&(t=!1),!this.onServerValidateQuestions||this.onServerValidateQuestions.isEmpty)return!1;if(!e&&this.isValidateOnComplete)return!1;this.setIsValidatingOnServer(!0);var r="function"==typeof this.onServerValidateQuestions;return this.serverValidationEventCount=r?1:this.onServerValidateQuestions.length,r?this.onServerValidateQuestions(this,this.createServerValidationOptions(e,t)):this.onServerValidateQuestions.fireByCreatingOptions(this,(function(){return n.createServerValidationOptions(e,t)})),!0},t.prototype.completeServerValidation=function(e,t){if(!(this.serverValidationEventCount>1&&(this.serverValidationEventCount--,e&&e.errors&&0===Object.keys(e.errors).length))&&(this.serverValidationEventCount=0,this.setIsValidatingOnServer(!1),e||e.survey)){var n=e.survey,r=!1;if(e.errors){var o=this.focusOnFirstError;for(var i in e.errors){var s=n.getQuestionByName(i);s&&s.errors&&(r=!0,s.addError(new h.CustomError(e.errors[i],this)),o&&(o=!1,s.page&&(this.currentPage=s.page),s.focus(!0)))}this.fireValidatedErrorsOnPage(this.currentPage)}r||(t?this.showPreviewCore():n.isLastPage?n.doComplete():n.doNextPage())}},t.prototype.doNextPage=function(){var e=this.currentPage;if(this.checkOnPageTriggers(!1),this.isCompleted)this.doComplete(!0);else if(this.sendResultOnPageNext&&this.sendResult(this.surveyPostId,this.clientId,!0),e===this.currentPage){var t=this.visiblePages,n=t.indexOf(this.currentPage);this.currentPage=t[n+1]}},t.prototype.setCompleted=function(e){this.doComplete(!0,e)},t.prototype.canBeCompleted=function(e,t){if(v.settings.triggers.changeNavigationButtonsOnComplete){var n=this.canBeCompletedByTrigger;this.completedByTriggers||(this.completedByTriggers={}),t?this.completedByTriggers[e.id]=e:delete this.completedByTriggers[e.id],n!==this.canBeCompletedByTrigger&&this.updateButtonsVisibility()}},Object.defineProperty(t.prototype,"canBeCompletedByTrigger",{get:function(){return!!this.completedByTriggers&&Object.keys(this.completedByTriggers).length>0},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]}},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"processedCompletedHtml",{get:function(){var e=this.renderedCompletedHtml;return e?this.processHtml(e,"completed"):""},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"processedCompletedBeforeHtml",{get:function(){return this.locCompletedBeforeHtml.textOrHtml},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"processedLoadingHtml",{get:function(){return this.locLoadingHtml.textOrHtml},enumerable:!1,configurable:!0}),t.prototype.getProgressInfo=function(){var e=this.isDesignMode?this.pages:this.visiblePages;return a.SurveyElement.getProgressInfoByElements(e,!1)},Object.defineProperty(t.prototype,"progressText",{get:function(){var e=this.getPropertyValue("progressText","");return e||(this.updateProgressText(),e=this.getPropertyValue("progressText","")),e},enumerable:!1,configurable:!0}),t.prototype.updateProgressText=function(e){void 0===e&&(e=!1),this.isCalculatingProgressText||e&&"pages"==this.progressBarType&&this.onProgressText.isEmpty||(this.isCalculatingProgressText=!0,this.setPropertyValue("progressText",this.getProgressText()),this.setPropertyValue("progressValue",this.getProgress()),this.isCalculatingProgressText=!1)},t.prototype.getProgressText=function(){if(!this.isDesignMode&&null==this.currentPage)return"";var e={questionCount:0,answeredQuestionCount:0,requiredQuestionCount:0,requiredAnsweredQuestionCount:0,text:""},t=this.progressBarType.toLowerCase();if("questions"===t||"requiredquestions"===t||"correctquestions"===t||!this.onProgressText.isEmpty){var n=this.getProgressInfo();e.questionCount=n.questionCount,e.answeredQuestionCount=n.answeredQuestionCount,e.requiredQuestionCount=n.requiredQuestionCount,e.requiredAnsweredQuestionCount=n.requiredAnsweredQuestionCount}return e.text=this.getProgressTextCore(e),this.onProgressText.fire(this,e),e.text},t.prototype.getProgressTextCore=function(e){var t=this.progressBarType.toLowerCase();if("questions"===t)return this.getLocalizationFormatString("questionsProgressText",e.answeredQuestionCount,e.questionCount);if("requiredquestions"===t)return this.getLocalizationFormatString("questionsProgressText",e.requiredAnsweredQuestionCount,e.requiredQuestionCount);if("correctquestions"===t){var n=this.getCorrectedAnswerCount();return this.getLocalizationFormatString("questionsProgressText",n,e.questionCount)}var r=this.isDesignMode?this.pages:this.visiblePages,o=r.indexOf(this.currentPage)+1;return this.getLocalizationFormatString("progressText",o,r.length)},t.prototype.getRootCss=function(){return(new x.CssClassBuilder).append(this.css.root).append(this.css.rootMobile,this.isMobile).append(this.css.rootReadOnly,"display"===this.mode).append(this.css.rootCompact,this.isCompact).toString()},t.prototype.afterRenderSurvey=function(e){var t=this;this.destroyResizeObserver(),Array.isArray(e)&&(e=a.SurveyElement.GetFirstNonTextElement(e));var n=e,r=this.css.variables;if(r){var o=Number.parseFloat(window.getComputedStyle(n).getPropertyValue(r.mobileWidth));if(o){var i=!1;this.resizeObserver=new ResizeObserver((function(){i=!(i||!Object(b.isContainerVisible)(n))&&t.processResponsiveness(n.offsetWidth,o)})),this.resizeObserver.observe(n)}}this.onAfterRenderSurvey.fire(this,{survey:this,htmlElement:e}),this.rootElement=e},t.prototype.processResponsiveness=function(e,t){var n=e<t;return this.isMobile!==n&&(this.setIsMobile(n),!0)},t.prototype.triggerResponsiveness=function(e){this.getAllQuestions().forEach((function(t){t.triggerResponsiveness(e)}))},t.prototype.destroyResizeObserver=function(){this.resizeObserver&&(this.resizeObserver.disconnect(),this.resizeObserver=void 0)},t.prototype.updateQuestionCssClasses=function(e,t){this.onUpdateQuestionCssClasses.fire(this,{question:e,cssClasses:t})},t.prototype.updatePanelCssClasses=function(e,t){this.onUpdatePanelCssClasses.fire(this,{panel:e,cssClasses:t})},t.prototype.updatePageCssClasses=function(e,t){this.onUpdatePageCssClasses.fire(this,{page:e,cssClasses:t})},t.prototype.updateChoiceItemCss=function(e,t){t.question=e,this.onUpdateChoiceItemCss.fire(this,t)},t.prototype.afterRenderPage=function(e){var t=this;this.isDesignMode||this.focusingQuestionInfo||setTimeout((function(){return t.scrollToTopOnPageChange(!t.isFirstPageRendering)}),1),this.focusQuestionInfo(),this.isFirstPageRendering=!1,this.onAfterRenderPage.isEmpty||this.onAfterRenderPage.fire(this,{page:this.activePage,htmlElement:e})},t.prototype.afterRenderHeader=function(e){this.onAfterRenderHeader.isEmpty||this.onAfterRenderHeader.fire(this,{htmlElement:e})},t.prototype.afterRenderQuestion=function(e,t){this.onAfterRenderQuestion.fire(this,{question:e,htmlElement:t})},t.prototype.afterRenderQuestionInput=function(e,t){if(!this.onAfterRenderQuestionInput.isEmpty){var n=e.inputId,r=v.settings.environment.root;if(n&&t.id!==n&&void 0!==r){var o=r.getElementById(n);o&&(t=o)}this.onAfterRenderQuestionInput.fire(this,{question:e,htmlElement:t})}},t.prototype.afterRenderPanel=function(e,t){this.onAfterRenderPanel.fire(this,{panel:e,htmlElement:t})},t.prototype.whenQuestionFocusIn=function(e){this.onFocusInQuestion.fire(this,{question:e})},t.prototype.whenPanelFocusIn=function(e){this.onFocusInPanel.fire(this,{panel:e})},t.prototype.rebuildQuestionChoices=function(){this.getAllQuestions().forEach((function(e){return e.surveyChoiceItemVisibilityChange()}))},t.prototype.canChangeChoiceItemsVisibility=function(){return!this.onShowingChoiceItem.isEmpty},t.prototype.getChoiceItemVisibility=function(e,t,n){var r={question:e,item:t,visible:n};return this.onShowingChoiceItem.fire(this,r),r.visible},t.prototype.loadQuestionChoices=function(e){this.onChoicesLazyLoad.fire(this,e)},t.prototype.getChoiceDisplayValue=function(e){this.onGetChoiceDisplayValue.isEmpty?e.setItems(null):this.onGetChoiceDisplayValue.fire(this,e)},t.prototype.matrixBeforeRowAdded=function(e){this.onMatrixRowAdding.fire(this,e)},t.prototype.matrixRowAdded=function(e,t){this.onMatrixRowAdded.fire(this,{question:e,row:t})},t.prototype.matrixColumnAdded=function(e,t){this.onMatrixColumnAdded.fire(this,{question:e,column:t})},t.prototype.multipleTextItemAdded=function(e,t){this.onMultipleTextItemAdded.fire(this,{question:e,item:t})},t.prototype.getQuestionByValueNameFromArray=function(e,t,n){var r=this.getQuestionsByValueName(e);if(r){for(var o=0;o<r.length;o++){var i=r[o].getQuestionFromArray(t,n);if(i)return i}return null}},t.prototype.matrixRowRemoved=function(e,t,n){this.onMatrixRowRemoved.fire(this,{question:e,rowIndex:t,row:n})},t.prototype.matrixRowRemoving=function(e,t,n){var r={question:e,rowIndex:t,row:n,allow:!0};return this.onMatrixRowRemoving.fire(this,r),r.allow},t.prototype.matrixAllowRemoveRow=function(e,t,n){var r={question:e,rowIndex:t,row:n,allow:!0};return this.onMatrixRenderRemoveButton.fire(this,r),r.allow},t.prototype.matrixCellCreating=function(e,t){t.question=e,this.onMatrixCellCreating.fire(this,t)},t.prototype.matrixCellCreated=function(e,t){t.question=e,this.onMatrixCellCreated.fire(this,t)},t.prototype.matrixAfterCellRender=function(e,t){t.question=e,this.onAfterRenderMatrixCell.fire(this,t)},t.prototype.matrixCellValueChanged=function(e,t){t.question=e,this.onMatrixCellValueChanged.fire(this,t)},t.prototype.matrixCellValueChanging=function(e,t){t.question=e,this.onMatrixCellValueChanging.fire(this,t)},Object.defineProperty(t.prototype,"isValidateOnValueChanging",{get:function(){return"onValueChanging"===this.checkErrorsMode},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isValidateOnValueChanged",{get:function(){return"onValueChanged"===this.checkErrorsMode},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isValidateOnComplete",{get:function(){return"onComplete"===this.checkErrorsMode},enumerable:!1,configurable:!0}),t.prototype.matrixCellValidate=function(e,t){return t.question=e,this.onMatrixCellValidate.fire(this,t),t.error?new h.CustomError(t.error,this):null},t.prototype.dynamicPanelAdded=function(e,t,n){if(this.isLoadingFromJson||this.updateVisibleIndexes(),!this.onDynamicPanelAdded.isEmpty){var r=e.panels;void 0===t&&(n=r[t=r.length-1]),this.onDynamicPanelAdded.fire(this,{question:e,panel:n,panelIndex:t})}},t.prototype.dynamicPanelRemoved=function(e,t,n){for(var r=n?n.questions:[],o=0;o<r.length;o++)r[o].clearOnDeletingContainer();this.updateVisibleIndexes(),this.onDynamicPanelRemoved.fire(this,{question:e,panelIndex:t,panel:n})},t.prototype.dynamicPanelRemoving=function(e,t,n){var r={question:e,panelIndex:t,panel:n,allow:!0};return this.onDynamicPanelRemoving.fire(this,r),r.allow},t.prototype.dynamicPanelItemValueChanged=function(e,t){t.question=e,t.panelIndex=t.itemIndex,t.panelData=t.itemValue,this.onDynamicPanelItemValueChanged.fire(this,t)},t.prototype.dragAndDropAllow=function(e){return this.onDragDropAllow.fire(this,e),e.allow},t.prototype.elementContentVisibilityChanged=function(e){this.currentPage&&this.currentPage.ensureRowsVisibility(),this.onElementContentVisibilityChanged.fire(this,{element:e})},t.prototype.getUpdatedPanelFooterActions=function(e,t,n){var r={question:n,panel:e,actions:t};return this.onGetPanelFooterActions.fire(this,r),r.actions},t.prototype.getUpdatedElementTitleActions=function(e,t){return e.isPage?this.getUpdatedPageTitleActions(e,t):e.isPanel?this.getUpdatedPanelTitleActions(e,t):this.getUpdatedQuestionTitleActions(e,t)},t.prototype.getUpdatedQuestionTitleActions=function(e,t){var n={question:e,titleActions:t};return this.onGetQuestionTitleActions.fire(this,n),n.titleActions},t.prototype.getUpdatedPanelTitleActions=function(e,t){var n={panel:e,titleActions:t};return this.onGetPanelTitleActions.fire(this,n),n.titleActions},t.prototype.getUpdatedPageTitleActions=function(e,t){var n={page:e,titleActions:t};return this.onGetPageTitleActions.fire(this,n),n.titleActions},t.prototype.getUpdatedMatrixRowActions=function(e,t,n){var r={question:e,actions:n,row:t};return this.onGetMatrixRowActions.fire(this,r),r.actions},t.prototype.scrollElementToTop=function(e,t,n,r){var o={element:e,question:t,page:n,elementId:r,cancel:!1};this.onScrollingElementToTop.fire(this,o),o.cancel||a.SurveyElement.ScrollElementToTop(o.elementId)},t.prototype.uploadFiles=function(e,t,n,r){this.onUploadFiles.isEmpty?r("error",n):this.onUploadFiles.fire(this,{question:e,name:t,files:n||[],callback:r}),this.surveyPostId&&this.uploadFilesCore(t,n,r)},t.prototype.downloadFile=function(e,t,n,r){this.onDownloadFile.isEmpty&&r&&r("success",n.content||n),this.onDownloadFile.fire(this,{question:e,name:t,content:n.content||n,fileValue:n,callback:r})},t.prototype.clearFiles=function(e,t,n,r,o){this.onClearFiles.isEmpty&&o&&o("success",n),this.onClearFiles.fire(this,{question:e,name:t,value:n,fileName:r,callback:o})},t.prototype.updateChoicesFromServer=function(e,t,n){var r={question:e,choices:t,serverResult:n};return this.onLoadChoicesFromServer.fire(this,r),r.choices},t.prototype.loadedChoicesFromServer=function(e){this.locStrsChanged()},t.prototype.createSurveyService=function(){return new p.dxSurveyService},t.prototype.uploadFilesCore=function(e,t,n){var r=this,o=[];t.forEach((function(e){n&&n("uploading",e),r.createSurveyService().sendFile(r.surveyPostId,e,(function(r,i){r?(o.push({content:i,file:e}),o.length===t.length&&n&&n("success",o)):n&&n("error",{response:i,file:e})}))}))},t.prototype.getPage=function(e){return this.pages[e]},t.prototype.addPage=function(e,t){void 0===t&&(t=-1),null!=e&&(t<0||t>=this.pages.length?this.pages.push(e):this.pages.splice(t,0,e))},t.prototype.addNewPage=function(e,t){void 0===e&&(e=null),void 0===t&&(t=-1);var n=this.createNewPage(e);return this.addPage(n,t),n},t.prototype.removePage=function(e){var t=this.pages.indexOf(e);t<0||(this.pages.splice(t,1),this.currentPage==e&&(this.currentPage=this.pages.length>0?this.pages[0]:null))},t.prototype.getQuestionByName=function(e,t){if(void 0===t&&(t=!1),!e)return null;t&&(e=e.toLowerCase());var n=(t?this.questionHashes.namesInsensitive:this.questionHashes.names)[e];return n?n[0]:null},t.prototype.findQuestionByName=function(e){return this.getQuestionByName(e)},t.prototype.getQuestionByValueName=function(e,t){void 0===t&&(t=!1);var n=this.getQuestionsByValueName(e,t);return n?n[0]:null},t.prototype.getQuestionsByValueName=function(e,t){return void 0===t&&(t=!1),(t?this.questionHashes.valueNamesInsensitive:this.questionHashes.valueNames)[e]||null},t.prototype.getCalculatedValueByName=function(e){for(var t=0;t<this.calculatedValues.length;t++)if(e==this.calculatedValues[t].name)return this.calculatedValues[t];return null},t.prototype.getQuestionsByNames=function(e,t){void 0===t&&(t=!1);var n=[];if(!e)return n;for(var r=0;r<e.length;r++)if(e[r]){var o=this.getQuestionByName(e[r],t);o&&n.push(o)}return n},t.prototype.getPageByElement=function(e){for(var t=0;t<this.pages.length;t++){var n=this.pages[t];if(n.containsElement(e))return n}return null},t.prototype.getPageByQuestion=function(e){return this.getPageByElement(e)},t.prototype.getPageByName=function(e){for(var t=0;t<this.pages.length;t++)if(this.pages[t].name==e)return this.pages[t];return null},t.prototype.getPagesByNames=function(e){var t=[];if(!e)return t;for(var n=0;n<e.length;n++)if(e[n]){var r=this.getPageByName(e[n]);r&&t.push(r)}return t},t.prototype.getAllQuestions=function(e,t,n){void 0===e&&(e=!1),void 0===t&&(t=!1),void 0===n&&(n=!1),n&&(t=!1);for(var r=[],o=0;o<this.pages.length;o++)this.pages[o].addQuestionsToList(r,e,t);if(!n)return r;var i=[];return r.forEach((function(t){i.push(t),t.getNestedQuestions(e).forEach((function(e){return i.push(e)}))})),i},t.prototype.getQuizQuestions=function(){for(var e=new Array,t=this.getPageStartIndex();t<this.pages.length;t++)if(this.pages[t].isVisible)for(var n=this.pages[t].questions,r=0;r<n.length;r++){var o=n[r];o.quizQuestionCount>0&&e.push(o)}return e},t.prototype.getPanelByName=function(e,t){void 0===t&&(t=!1);var n=this.getAllPanels();t&&(e=e.toLowerCase());for(var r=0;r<n.length;r++){var o=n[r].name;if(t&&(o=o.toLowerCase()),o==e)return n[r]}return null},t.prototype.getAllPanels=function(e,t){void 0===e&&(e=!1),void 0===t&&(t=!1);for(var n=new Array,r=0;r<this.pages.length;r++)this.pages[r].addPanelsIntoList(n,e,t);return n},t.prototype.createNewPage=function(e){var t=i.Serializer.createClass("page");return t.name=e,t},t.prototype.questionOnValueChanging=function(e,t){if(this.editingObj){var n=i.Serializer.findProperty(this.editingObj.getType(),e);n&&(t=n.settingValue(this.editingObj,t))}if(this.onValueChanging.isEmpty)return t;var r={name:e,question:this.getQuestionByValueName(e),value:this.getUnbindValue(t),oldValue:this.getValue(e)};return this.onValueChanging.fire(this,r),r.value},t.prototype.updateQuestionValue=function(e,t){if(!this.isLoadingFromJson){var n=this.getQuestionsByValueName(e);if(n)for(var r=0;r<n.length;r++){var o=n[r].value;(o===t&&Array.isArray(o)&&this.editingObj||!this.isTwoValueEquals(o,t))&&n[r].updateValueFromSurvey(t)}}},t.prototype.checkQuestionErrorOnValueChanged=function(e){!this.isNavigationButtonPressed&&(this.isValidateOnValueChanged||e.getAllErrors().length>0)&&this.checkQuestionErrorOnValueChangedCore(e)},t.prototype.checkQuestionErrorOnValueChangedCore=function(e){var t=e.getAllErrors().length,n=!e.validate(!0,{isOnValueChanged:!this.isValidateOnValueChanging}),r=this.checkErrorsMode.indexOf("Value")>-1;return e.page&&r&&(t>0||e.getAllErrors().length>0)&&this.fireValidatedErrorsOnPage(e.page),n},t.prototype.checkErrorsOnValueChanging=function(e,t){if(this.isLoadingFromJson)return!1;var n=this.getQuestionsByValueName(e);if(!n)return!1;for(var r=!1,o=0;o<n.length;o++){var i=n[o];this.isTwoValueEquals(i.valueForSurvey,t)||(i.value=t),this.checkQuestionErrorOnValueChangedCore(i)&&(r=!0),r=r||i.errors.length>0}return r},t.prototype.notifyQuestionOnValueChanged=function(e,t){if(!this.isLoadingFromJson){var n=this.getQuestionsByValueName(e);if(n)for(var r=0;r<n.length;r++){var o=n[r];this.checkQuestionErrorOnValueChanged(o),o.onSurveyValueChanged(t),this.onValueChanged.fire(this,{name:e,question:o,value:t})}else this.onValueChanged.fire(this,{name:e,question:null,value:t});this.isDisposed||(this.checkElementsBindings(e,t),this.notifyElementsOnAnyValueOrVariableChanged(e))}},t.prototype.checkElementsBindings=function(e,t){this.isRunningElementsBindings=!0;for(var n=0;n<this.pages.length;n++)this.pages[n].checkBindings(e,t);this.isRunningElementsBindings=!1,this.updateVisibleIndexAfterBindings&&(this.updateVisibleIndexes(),this.updateVisibleIndexAfterBindings=!1)},t.prototype.notifyElementsOnAnyValueOrVariableChanged=function(e){if("processing"!==this.isEndLoadingFromJson)if(this.isRunningConditions)this.conditionNotifyElementsOnAnyValueOrVariableChanged=!0;else{for(var t=0;t<this.pages.length;t++)this.pages[t].onAnyValueChanged(e);this.isEndLoadingFromJson||this.locStrsChanged()}},t.prototype.updateAllQuestionsValue=function(){for(var e=this.getAllQuestions(),t=0;t<e.length;t++){var n=e[t],r=n.getValueName();n.updateValueFromSurvey(this.getValue(r)),n.requireUpdateCommentValue&&n.updateCommentFromSurvey(this.getComment(r))}},t.prototype.notifyAllQuestionsOnValueChanged=function(){for(var e=this.getAllQuestions(),t=0;t<e.length;t++)e[t].onSurveyValueChanged(this.getValue(e[t].getValueName()))},t.prototype.checkOnPageTriggers=function(e){for(var t=this.getCurrentPageQuestions(!0),n={},r=0;r<t.length;r++){var o=t[r].getValueName();n[o]=this.getValue(o)}this.addCalculatedValuesIntoFilteredValues(n),this.checkTriggers(n,!0,e)},t.prototype.getCurrentPageQuestions=function(e){void 0===e&&(e=!1);var t=[],n=this.currentPage;if(!n)return t;for(var r=0;r<n.questions.length;r++){var o=n.questions[r];(e||o.visible)&&o.name&&t.push(o)}return t},t.prototype.checkTriggers=function(e,t,n){if(void 0===n&&(n=!1),!this.isCompleted&&0!=this.triggers.length&&!this.isDisplayMode)if(this.isTriggerIsRunning)for(var r in this.triggerValues=this.getFilteredValues(),e)this.triggerKeys[r]=e[r];else{this.isTriggerIsRunning=!0,this.triggerKeys=e,this.triggerValues=this.getFilteredValues();for(var o=this.getFilteredProperties(),i=this.canBeCompletedByTrigger,s=0;s<this.triggers.length;s++)this.triggers[s].checkExpression(t,n,this.triggerKeys,this.triggerValues,o);i!==this.canBeCompletedByTrigger&&this.updateButtonsVisibility(),this.isTriggerIsRunning=!1}},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.runConditions=function(){if(!this.isCompleted&&"processing"!==this.isEndLoadingFromJson&&!this.isRunningConditions){this.conditionValues=this.getFilteredValues();var e=this.getFilteredProperties(),t=this.pages.indexOf(this.currentPage);this.runConditionsCore(e),this.checkIfNewPagesBecomeVisible(t),this.conditionValues=null,this.isValueChangedOnRunningCondition&&this.conditionRunnerCounter<v.settings.maxConditionRunCountOnValueChanged?(this.isValueChangedOnRunningCondition=!1,this.conditionRunnerCounter++,this.runConditions()):(this.isValueChangedOnRunningCondition=!1,this.conditionRunnerCounter=0,this.conditionUpdateVisibleIndexes&&(this.conditionUpdateVisibleIndexes=!1,this.updateVisibleIndexes()),this.conditionNotifyElementsOnAnyValueOrVariableChanged&&(this.conditionNotifyElementsOnAnyValueOrVariableChanged=!1,this.notifyElementsOnAnyValueOrVariableChanged("")))}},t.prototype.runConditionOnValueChanged=function(e,t){this.isRunningConditions?(this.conditionValues[e]=t,this.isValueChangedOnRunningCondition=!0):this.runConditions()},t.prototype.runConditionsCore=function(t){for(var n=this.pages,r=0;r<this.calculatedValues.length;r++)this.calculatedValues[r].resetCalculation();for(r=0;r<this.calculatedValues.length;r++)this.calculatedValues[r].doCalculation(this.calculatedValues,this.conditionValues,t);for(e.prototype.runConditionCore.call(this,this.conditionValues,t),r=0;r<n.length;r++)n[r].runCondition(this.conditionValues,t)},t.prototype.checkIfNewPagesBecomeVisible=function(e){var t=this.pages.indexOf(this.currentPage);if(!(t<=e+1))for(var n=e+1;n<t;n++)if(this.pages[n].isVisible){this.currentPage=this.pages[n];break}},t.prototype.sendResult=function(e,t,n){if(void 0===e&&(e=null),void 0===t&&(t=null),void 0===n&&(n=!1),this.isEditMode&&(n&&this.onPartialSend&&this.onPartialSend.fire(this,null),!e&&this.surveyPostId&&(e=this.surveyPostId),e&&(t&&(this.clientId=t),!n||this.clientId))){var r=this;this.surveyShowDataSaving&&this.setCompletedState("saving",""),this.createSurveyService().sendResult(e,this.data,(function(e,t,n){r.surveyShowDataSaving&&(e?r.setCompletedState("success",""):r.setCompletedState("error",t)),r.onSendResult.fire(r,{success:e,response:t,request:n})}),this.clientId,n)}},t.prototype.getResult=function(e,t){var n=this;this.createSurveyService().getResult(e,t,(function(e,t,r,o){n.onGetResult.fire(n,{success:e,data:t,dataList:r,response:o})}))},t.prototype.loadSurveyFromService=function(e,t){void 0===e&&(e=null),void 0===t&&(t=null),e&&(this.surveyId=e),t&&(this.clientId=t);var n=this;this.isLoading=!0,this.onLoadingSurveyFromService(),t?this.createSurveyService().getSurveyJsonAndIsCompleted(this.surveyId,this.clientId,(function(e,t,r,o){n.isLoading=!1,e&&(n.isCompletedBefore="completed"==r,n.loadSurveyFromServiceJson(t))})):this.createSurveyService().loadSurvey(this.surveyId,(function(e,t,r){n.isLoading=!1,e&&n.loadSurveyFromServiceJson(t)}))},t.prototype.loadSurveyFromServiceJson=function(e){e&&(this.fromJSON(e),this.notifyAllQuestionsOnValueChanged(),this.onLoadSurveyFromService(),this.onLoadedSurveyFromService.fire(this,{}))},t.prototype.onLoadingSurveyFromService=function(){},t.prototype.onLoadSurveyFromService=function(){},t.prototype.resetVisibleIndexes=function(){for(var e=this.getAllQuestions(!0),t=0;t<e.length;t++)e[t].setVisibleIndex(-1);this.updateVisibleIndexes()},t.prototype.updateVisibleIndexes=function(){if(!this.isLoadingFromJson&&!this.isEndLoadingFromJson)if(this.isRunningConditions&&this.onQuestionVisibleChanged.isEmpty&&this.onPageVisibleChanged.isEmpty)this.conditionUpdateVisibleIndexes=!0;else if(this.isRunningElementsBindings)this.updateVisibleIndexAfterBindings=!0;else{if(this.updatePageVisibleIndexes(this.showPageNumbers),"onPage"==this.showQuestionNumbers)for(var e=this.visiblePages,t=0;t<e.length;t++)e[t].setVisibleIndex(0);else{var n="on"==this.showQuestionNumbers?0:-1;for(t=0;t<this.pages.length;t++)n+=this.pages[t].setVisibleIndex(n)}this.updateProgressText(!0)}},t.prototype.updatePageVisibleIndexes=function(e){this.updateButtonsVisibility();for(var t=0,n=0;n<this.pages.length;n++){var r=this.pages[n],o=r.isVisible&&(n>0||!r.isStartPage);r.visibleIndex=o?t++:-1,r.num=o?r.visibleIndex+1:-1}},t.prototype.fromJSON=function(e){if(e){this.questionHashesClear(),this.jsonErrors=null;var t=new i.JsonObject;t.toObject(e,this),t.errors.length>0&&(this.jsonErrors=t.errors),this.onStateAndCurrentPageChanged(),this.updateState()}},t.prototype.setJsonObject=function(e){this.fromJSON(e)},t.prototype.endLoadingFromJson=function(){this.isEndLoadingFromJson="processing",this.onFirstPageIsStartedChanged(),this.onQuestionsOnPageModeChanged("standard"),e.prototype.endLoadingFromJson.call(this),this.hasCookie&&(this.isCompletedBefore=!0),this.doElementsOnLoad(),this.isEndLoadingFromJson="conditions",this.runConditions(),this.notifyElementsOnAnyValueOrVariableChanged(""),this.isEndLoadingFromJson=null,this.updateVisibleIndexes(),this.updateHasLogo(),this.updateRenderBackgroundImage(),this.updateCurrentPage(),this.hasDescription=!!this.description,this.setCalculatedWidthModeUpdater()},t.prototype.updateNavigationCss=function(){this.navigationBar&&(this.updateNavigationBarCss(),this.updateNavigationItemCssCallback&&this.updateNavigationItemCssCallback())},t.prototype.updateNavigationBarCss=function(){var e=this.navigationBar;e.cssClasses=this.css.actionBar,e.containerCss=this.css.footer},t.prototype.createNavigationBar=function(){var e=new w.ActionContainer;return e.setItems(this.createNavigationActions()),e},t.prototype.createNavigationActions=function(){var e=this,t="sv-nav-btn",n=new C.Action({id:"sv-nav-start",visible:new s.ComputedUpdater((function(){return e.isShowStartingPage})),visibleIndex:10,locTitle:this.locStartSurveyText,action:function(){return e.start()},component:t}),r=new C.Action({id:"sv-nav-prev",visible:new s.ComputedUpdater((function(){return e.isShowPrevButton})),visibleIndex:20,data:{mouseDown:function(){return e.navigationMouseDown()}},locTitle:this.locPagePrevText,action:function(){return e.prevPage()},component:t}),o=new C.Action({id:"sv-nav-next",visible:new s.ComputedUpdater((function(){return e.isShowNextButton})),visibleIndex:30,data:{mouseDown:function(){return e.nextPageMouseDown()}},locTitle:this.locPageNextText,action:function(){return e.nextPageUIClick()},component:t}),i=new C.Action({id:"sv-nav-preview",visible:new s.ComputedUpdater((function(){return e.isPreviewButtonVisible})),visibleIndex:40,data:{mouseDown:function(){return e.navigationMouseDown()}},locTitle:this.locPreviewText,action:function(){return e.showPreview()},component:t}),a=new C.Action({id:"sv-nav-complete",visible:new s.ComputedUpdater((function(){return e.isCompleteButtonVisible})),visibleIndex:50,data:{mouseDown:function(){return e.navigationMouseDown()}},locTitle:this.locCompleteText,action:function(){return e.completeLastPage()},component:t});return this.updateNavigationItemCssCallback=function(){n.innerCss=e.cssNavigationStart,r.innerCss=e.cssNavigationPrev,o.innerCss=e.cssNavigationNext,i.innerCss=e.cssNavigationPreview,a.innerCss=e.cssNavigationComplete},[n,r,o,i,a]},t.prototype.onBeforeCreating=function(){},t.prototype.onCreating=function(){},t.prototype.getProcessedTextValue=function(e){if(this.getProcessedTextValueCore(e),!this.onProcessTextValue.isEmpty){var t=this.isValueEmpty(e.value);this.onProcessTextValue.fire(this,e),e.isExists=e.isExists||t&&!this.isValueEmpty(e.value)}},t.prototype.getBuiltInVariableValue=function(e){if("pageno"===e){var t=this.currentPage;return null!=t?this.visiblePages.indexOf(t)+1:0}return"pagecount"===e?this.visiblePageCount:"correctedanswers"===e||"correctanswers"===e||"correctedanswercount"===e?this.getCorrectedAnswerCount():"incorrectedanswers"===e||"incorrectanswers"===e||"incorrectedanswercount"===e?this.getInCorrectedAnswerCount():"questioncount"===e?this.getQuizQuestionCount():void 0},t.prototype.getProcessedTextValueCore=function(e){var t=e.name.toLocaleLowerCase();if(-1===["no","require","title"].indexOf(t)){var n=this.getBuiltInVariableValue(t);if(void 0!==n)return e.isExists=!0,void(e.value=n);if("locale"===t)return e.isExists=!0,void(e.value=this.locale?this.locale:d.surveyLocalization.defaultLocale);var r=this.getVariable(t);if(void 0!==r)return e.isExists=!0,void(e.value=r);var o=this.getFirstName(t);if(o){var i=o.useDisplayValuesInDynamicTexts;e.isExists=!0;var s=o.getValueName().toLowerCase();t=(t=s+t.substring(s.length)).toLocaleLowerCase();var a={};return a[s]=e.returnDisplayValue&&i?o.getDisplayValue(!1,void 0):o.value,void(e.value=(new c.ProcessValue).getValue(t,a))}this.getProcessedValuesWithoutQuestion(e)}},t.prototype.getProcessedValuesWithoutQuestion=function(e){var t=this.getValue(e.name);if(void 0!==t)return e.isExists=!0,void(e.value=t);var n=new c.ProcessValue,r=n.getFirstName(e.name);if(r!==e.name){var i={},s=this.getValue(r);o.Helpers.isValueEmpty(s)&&(s=this.getVariable(r)),o.Helpers.isValueEmpty(s)||(i[r]=s,e.value=n.getValue(e.name,i),e.isExists=n.hasValue(e.name,i))}},t.prototype.getFirstName=function(e){var t;e=e.toLowerCase();do{t=this.getQuestionByValueName(e,!0),e=this.reduceFirstName(e)}while(!t&&e);return t},t.prototype.reduceFirstName=function(e){var t=e.lastIndexOf("."),n=e.lastIndexOf("[");if(t<0&&n<0)return"";var r=Math.max(t,n);return e.substring(0,r)},t.prototype.clearUnusedValues=function(){for(var e=this.getAllQuestions(),t=0;t<e.length;t++)e[t].clearUnusedValues();this.clearInvisibleQuestionValues()},t.prototype.hasVisibleQuestionByValueName=function(e){var t=this.getQuestionsByValueName(e);if(!t)return!1;for(var n=0;n<t.length;n++){var r=t[n];if(r.isVisible&&r.isParentVisible&&!r.parentQuestion)return!0}return!1},t.prototype.questionCountByValueName=function(e){var t=this.getQuestionsByValueName(e);return t?t.length:0},t.prototype.clearInvisibleQuestionValues=function(){for(var e="none"===this.clearInvisibleValues?"none":"onComplete",t=this.getAllQuestions(),n=0;n<t.length;n++)t[n].clearValueIfInvisible(e)},t.prototype.getVariable=function(e){if(!e)return null;e=e.toLowerCase();var t=this.variablesHash[e];return this.isValueEmpty(t)&&(e.indexOf(".")>-1||e.indexOf("[")>-1)&&(new c.ProcessValue).hasValue(e,this.variablesHash)?(new c.ProcessValue).getValue(e,this.variablesHash):t},t.prototype.setVariable=function(e,t){e&&(this.valuesHash&&delete this.valuesHash[e],e=e.toLowerCase(),this.variablesHash[e]=t,this.notifyElementsOnAnyValueOrVariableChanged(e),this.runConditionOnValueChanged(e,t),this.onVariableChanged.fire(this,{name:e,value:t}))},t.prototype.getVariableNames=function(){var e=[];for(var t in this.variablesHash)e.push(t);return e},t.prototype.getUnbindValue=function(e){return this.editingObj?e:o.Helpers.getUnbindValue(e)},t.prototype.getValue=function(e){if(!e||0==e.length)return null;var t=this.getDataValueCore(this.valuesHash,e);return this.getUnbindValue(t)},t.prototype.setValue=function(e,t,n,r){void 0===n&&(n=!1),void 0===r&&(r=!0);var o=t;if(r&&(o=this.questionOnValueChanging(e,t)),(!this.isValidateOnValueChanging||!this.checkErrorsOnValueChanging(e,o))&&(this.editingObj||!this.isValueEqual(e,o)||!this.isTwoValueEquals(o,t))){var i=this.getValue(e);this.isValueEmpty(o,!1)?this.deleteDataValueCore(this.valuesHash,e):(o=this.getUnbindValue(o),this.setDataValueCore(this.valuesHash,e,o)),this.updateOnSetValue(e,o,i,n,r)}},t.prototype.updateOnSetValue=function(e,t,n,r,o){if(void 0===r&&(r=!1),void 0===o&&(o=!0),this.updateQuestionValue(e,t),!0!==r&&!this.isDisposed&&!this.isRunningElementsBindings){var i={};i[e]={newValue:t,oldValue:n},this.runConditionOnValueChanged(e,t),this.checkTriggers(i,!1),o&&this.notifyQuestionOnValueChanged(e,t),"text"!==r&&this.tryGoNextPageAutomatic(e)}},t.prototype.isValueEqual=function(e,t){""!==t&&void 0!==t||(t=null);var n=this.getValue(e);return""!==n&&void 0!==n||(n=null),null===t||null===n?t===n:this.isTwoValueEquals(t,n)},t.prototype.doOnPageAdded=function(e){if(e.setSurveyImpl(this),e.name||(e.name=this.generateNewName(this.pages,"page")),this.questionHashesPanelAdded(e),this.updateVisibleIndexes(),!this.runningPages){this.isLoadingFromJson||(this.updateProgressText(),this.updateCurrentPage());var t={page:e};this.onPageAdded.fire(this,t)}},t.prototype.doOnPageRemoved=function(e){e.setSurveyImpl(null),this.runningPages||(e===this.currentPage&&this.updateCurrentPage(),this.updateVisibleIndexes(),this.updateProgressText(),this.updateLazyRenderingRowsOnRemovingElements())},t.prototype.generateNewName=function(e,t){for(var n={},r=0;r<e.length;r++)n[e[r].name]=!0;for(var o=1;n[t+o];)o++;return t+o},t.prototype.tryGoNextPageAutomatic=function(e){if(!this.isEndLoadingFromJson&&this.goNextPageAutomatic&&this.currentPage){var t=this.getQuestionByValueName(e);if(t&&(!t||t.visible&&t.supportGoNextPageAutomatic())&&(t.validate(!1)||t.supportGoNextPageError())){var n=this.getCurrentPageQuestions();if(!(n.indexOf(t)<0)){for(var r=0;r<n.length;r++)if(n[r].hasInput&&n[r].isEmpty())return;this.checkIsCurrentPageHasErrors(!1)||(this.isLastPage?!0===this.goNextPageAutomatic&&this.allowCompleteSurveyAutomatic&&(this.isShowPreviewBeforeComplete?this.showPreview():this.completeLastPage()):this.nextPage())}}}},t.prototype.getComment=function(e){return this.getValue(e+this.commentSuffix)||""},t.prototype.setComment=function(e,t,n){if(void 0===n&&(n=!1),t||(t=""),!this.isTwoValueEquals(t,this.getComment(e))){var r=e+this.commentSuffix;this.isValueEmpty(t)?this.deleteDataValueCore(this.valuesHash,r):this.setDataValueCore(this.valuesHash,r,t);var o=this.getQuestionsByValueName(e);if(o)for(var i=0;i<o.length;i++)o[i].updateCommentFromSurvey(t),this.checkQuestionErrorOnValueChanged(o[i]);n||this.runConditionOnValueChanged(e,this.getValue(e)),"text"!==n&&this.tryGoNextPageAutomatic(e);var s=this.getQuestionByName(e);s&&this.onValueChanged.fire(this,{name:r,question:s,value:t})}},t.prototype.clearValue=function(e){this.setValue(e,null),this.setComment(e,null)},Object.defineProperty(t.prototype,"clearValueOnDisableItems",{get:function(){return this.getPropertyValue("clearValueOnDisableItems",!1)},set:function(e){this.setPropertyValue("clearValueOnDisableItems",e)},enumerable:!1,configurable:!0}),t.prototype.getQuestionClearIfInvisible=function(e){return this.isShowingPreview||this.runningPages?"none":"default"!==e?e:this.clearInvisibleValues},t.prototype.questionVisibilityChanged=function(e,t){this.updateVisibleIndexes(),this.onQuestionVisibleChanged.fire(this,{question:e,name:e.name,visible:t})},t.prototype.pageVisibilityChanged=function(e,t){this.isLoadingFromJson||((t&&!this.currentPage||e===this.currentPage)&&this.updateCurrentPage(),this.updateVisibleIndexes(),this.onPageVisibleChanged.fire(this,{page:e,visible:t}))},t.prototype.panelVisibilityChanged=function(e,t){this.updateVisibleIndexes(),this.onPanelVisibleChanged.fire(this,{panel:e,visible:t})},t.prototype.questionCreated=function(e){this.onQuestionCreated.fire(this,{question:e})},t.prototype.questionAdded=function(e,t,n,r){e.name||(e.name=this.generateNewName(this.getAllQuestions(!1,!0),"question")),e.page&&this.questionHashesAdded(e),this.currentPage||this.updateCurrentPage(),this.updateVisibleIndexes(),this.setCalculatedWidthModeUpdater(),(!this.isMovingQuestion||this.isDesignMode&&!v.settings.supportCreatorV2)&&this.onQuestionAdded.fire(this,{question:e,name:e.name,index:t,parent:n,page:r,parentPanel:n,rootPanel:r})},t.prototype.questionRemoved=function(e){this.questionHashesRemoved(e,e.name,e.getValueName()),this.updateVisibleIndexes(),this.onQuestionRemoved.fire(this,{question:e,name:e.name}),this.updateLazyRenderingRowsOnRemovingElements()},t.prototype.questionRenamed=function(e,t,n){this.questionHashesRemoved(e,t,n),this.questionHashesAdded(e)},t.prototype.questionHashesClear=function(){this.questionHashes.names={},this.questionHashes.namesInsensitive={},this.questionHashes.valueNames={},this.questionHashes.valueNamesInsensitive={}},t.prototype.questionHashesPanelAdded=function(e){if(!this.isLoadingFromJson)for(var t=e.questions,n=0;n<t.length;n++)this.questionHashesAdded(t[n])},t.prototype.questionHashesAdded=function(e){this.questionHashAddedCore(this.questionHashes.names,e,e.name),this.questionHashAddedCore(this.questionHashes.namesInsensitive,e,e.name.toLowerCase()),this.questionHashAddedCore(this.questionHashes.valueNames,e,e.getValueName()),this.questionHashAddedCore(this.questionHashes.valueNamesInsensitive,e,e.getValueName().toLowerCase())},t.prototype.questionHashesRemoved=function(e,t,n){t&&(this.questionHashRemovedCore(this.questionHashes.names,e,t),this.questionHashRemovedCore(this.questionHashes.namesInsensitive,e,t.toLowerCase())),n&&(this.questionHashRemovedCore(this.questionHashes.valueNames,e,n),this.questionHashRemovedCore(this.questionHashes.valueNamesInsensitive,e,n.toLowerCase()))},t.prototype.questionHashAddedCore=function(e,t,n){var r;(r=e[n])?(r=e[n]).indexOf(t)<0&&r.push(t):e[n]=[t]},t.prototype.questionHashRemovedCore=function(e,t,n){var r=e[n];if(r){var o=r.indexOf(t);o>-1&&r.splice(o,1),0==r.length&&delete e[n]}},t.prototype.panelAdded=function(e,t,n,r){e.name||(e.name=this.generateNewName(this.getAllPanels(!1,!0),"panel")),this.questionHashesPanelAdded(e),this.updateVisibleIndexes(),this.onPanelAdded.fire(this,{panel:e,name:e.name,index:t,parent:n,page:r,parentPanel:n,rootPanel:r})},t.prototype.panelRemoved=function(e){this.updateVisibleIndexes(),this.onPanelRemoved.fire(this,{panel:e,name:e.name}),this.updateLazyRenderingRowsOnRemovingElements()},t.prototype.validateQuestion=function(e){if(this.onValidateQuestion.isEmpty)return null;var t={name:e.name,question:e,value:e.value,error:null};return this.onValidateQuestion.fire(this,t),t.error?new h.CustomError(t.error,this):null},t.prototype.validatePanel=function(e){if(this.onValidatePanel.isEmpty)return null;var t={name:e.name,panel:e,error:null};return this.onValidatePanel.fire(this,t),t.error?new h.CustomError(t.error,this):null},t.prototype.processHtml=function(e,t){t||(t="");var n={html:e,reason:t};return this.onProcessHtml.fire(this,n),this.processText(n.html,!0)},t.prototype.processText=function(e,t){return this.processTextEx(e,t,!1).text},t.prototype.processTextEx=function(e,t,n){var r={text:this.processTextCore(e,t,n),hasAllValuesOnLastRun:!0};return r.hasAllValuesOnLastRun=this.textPreProcessor.hasAllValuesOnLastRun,r},t.prototype.processTextCore=function(e,t,n){return void 0===n&&(n=!1),this.isDesignMode?e:this.textPreProcessor.process(e,t,n)},t.prototype.getSurveyMarkdownHtml=function(e,t,n){var r={element:e,text:t,name:n,html:null};return this.onTextMarkdown.fire(this,r),r.html},t.prototype.getCorrectedAnswerCount=function(){return this.getCorrectedAnswerCountCore(!0)},t.prototype.getCorrectAnswerCount=function(){return this.getCorrectedAnswerCountCore(!0)},t.prototype.getQuizQuestionCount=function(){for(var e=this.getQuizQuestions(),t=0,n=0;n<e.length;n++)t+=e[n].quizQuestionCount;return t},t.prototype.getInCorrectedAnswerCount=function(){return this.getCorrectedAnswerCountCore(!1)},t.prototype.getInCorrectAnswerCount=function(){return this.getCorrectedAnswerCountCore(!1)},t.prototype.onCorrectQuestionAnswer=function(e,t){this.onIsAnswerCorrect.isEmpty||(t.question=e,this.onIsAnswerCorrect.fire(this,t))},t.prototype.getCorrectedAnswerCountCore=function(e){for(var t=this.getQuizQuestions(),n=0,r={question:null,result:!1,correctAnswers:0,incorrectAnswers:0},o=0;o<t.length;o++){var i=t[o],s=i.quizQuestionCount;if(r.question=i,r.correctAnswers=i.correctAnswerCount,r.incorrectAnswers=s-r.correctAnswers,r.result=r.question.isAnswerCorrect(),this.onIsAnswerCorrect.fire(this,r),e){if(r.result||r.correctAnswers<s){var a=r.correctAnswers;0==a&&r.result&&(a=1),n+=a}}else(!r.result||r.incorrectAnswers<s)&&(n+=r.incorrectAnswers)}return n},t.prototype.getCorrectedAnswers=function(){return this.getCorrectedAnswerCount()},t.prototype.getInCorrectedAnswers=function(){return this.getInCorrectedAnswerCount()},Object.defineProperty(t.prototype,"showTimerPanel",{get:function(){return this.getPropertyValue("showTimerPanel")},set:function(e){this.setPropertyValue("showTimerPanel",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isTimerPanelShowingOnTop",{get:function(){return"top"==this.showTimerPanel},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isTimerPanelShowingOnBottom",{get:function(){return"bottom"==this.showTimerPanel},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"showTimerPanelMode",{get:function(){return this.getPropertyValue("showTimerPanelMode")},set:function(e){this.setPropertyValue("showTimerPanelMode",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"widthMode",{get:function(){return this.getPropertyValue("widthMode")},set:function(e){this.setPropertyValue("widthMode",e)},enumerable:!1,configurable:!0}),t.prototype.setCalculatedWidthModeUpdater=function(){var e=this;this.calculatedWidthModeUpdater&&this.calculatedWidthModeUpdater.dispose(),this.calculatedWidthModeUpdater=new s.ComputedUpdater((function(){return e.calculateWidthMode()})),this.calculatedWidthMode=this.calculatedWidthModeUpdater},t.prototype.calculateWidthMode=function(){if("auto"==this.widthMode){var e=!1;return this.pages.forEach((function(t){t.needResponsiveWidth()&&(e=!0)})),e?"responsive":"static"}return this.widthMode},Object.defineProperty(t.prototype,"width",{get:function(){return this.getPropertyValue("width")},set:function(e){this.setPropertyValue("width",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"renderedWidth",{get:function(){var e=this.getPropertyValue("width");return e&&!isNaN(e)&&(e+="px"),"static"==this.getPropertyValue("calculatedWidthMode")&&e||void 0},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"timerInfo",{get:function(){return this.getTimerInfo()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"timerClock",{get:function(){var e,t;if(this.currentPage){var n=this.getTimerInfo(),r=n.spent,o=n.limit,i=n.minorSpent,s=n.minorLimit;e=o>0?this.getDisplayClockTime(o-r):this.getDisplayClockTime(r),void 0!==i&&(t=s>0?this.getDisplayClockTime(s-i):this.getDisplayClockTime(i))}return{majorText:e,minorText:t}},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"timerInfoText",{get:function(){var e={text:this.getTimerInfoText()};this.onTimerPanelInfoText.fire(this,e);var t=new f.LocalizableString(this,!0);return t.text=e.text,t.textOrHtml},enumerable:!1,configurable:!0}),t.prototype.getTimerInfo=function(){var e=this.currentPage;if(!e)return{spent:0,limit:0};var t=e.timeSpent,n=this.timeSpent,r=this.getPageMaxTimeToFinish(e),o=this.maxTimeToFinish;return"page"==this.showTimerPanelMode?{spent:t,limit:r}:"survey"==this.showTimerPanelMode?{spent:n,limit:o}:r>0&&o>0?{spent:t,limit:r,minorSpent:n,minorLimit:o}:r>0?{spent:t,limit:r,minorSpent:n}:o>0?{spent:n,limit:o,minorSpent:t}:{spent:t,minorSpent:n}},t.prototype.getTimerInfoText=function(){var e=this.currentPage;if(!e)return"";var t=this.getDisplayTime(e.timeSpent),n=this.getDisplayTime(this.timeSpent),r=this.getPageMaxTimeToFinish(e),o=this.getDisplayTime(r),i=this.getDisplayTime(this.maxTimeToFinish);return"page"==this.showTimerPanelMode?this.getTimerInfoPageText(e,t,o):"survey"==this.showTimerPanelMode?this.getTimerInfoSurveyText(n,i):"all"==this.showTimerPanelMode?r<=0&&this.maxTimeToFinish<=0?this.getLocalizationFormatString("timerSpentAll",t,n):r>0&&this.maxTimeToFinish>0?this.getLocalizationFormatString("timerLimitAll",t,o,n,i):this.getTimerInfoPageText(e,t,o)+" "+this.getTimerInfoSurveyText(n,i):""},t.prototype.getTimerInfoPageText=function(e,t,n){return this.getPageMaxTimeToFinish(e)>0?this.getLocalizationFormatString("timerLimitPage",t,n):this.getLocalizationFormatString("timerSpentPage",t,n)},t.prototype.getTimerInfoSurveyText=function(e,t){var n=this.maxTimeToFinish>0?"timerLimitSurvey":"timerSpentSurvey";return this.getLocalizationFormatString(n,e,t)},t.prototype.getDisplayClockTime=function(e){var t=Math.floor(e/60),n=e%60,r=n.toString();return n<10&&(r="0"+r),t+":"+r},t.prototype.getDisplayTime=function(e){var t=Math.floor(e/60),n=e%60,r="";return t>0&&(r+=t+" "+this.getLocalizationString("timerMin")),r&&0==n?r:(r&&(r+=" "),r+n+" "+this.getLocalizationString("timerSec"))},Object.defineProperty(t.prototype,"timerModel",{get:function(){return this.timerModelValue},enumerable:!1,configurable:!0}),t.prototype.startTimer=function(){this.timerModel.start()},t.prototype.startTimerFromUI=function(){"none"!=this.showTimerPanel&&"running"===this.state&&this.startTimer()},t.prototype.stopTimer=function(){this.timerModel.stop()},Object.defineProperty(t.prototype,"timeSpent",{get:function(){return this.timerModel.spent},set:function(e){this.timerModel.spent=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"maxTimeToFinish",{get:function(){return this.getPropertyValue("maxTimeToFinish",0)},set:function(e){this.setPropertyValue("maxTimeToFinish",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"maxTimeToFinishPage",{get:function(){return this.getPropertyValue("maxTimeToFinishPage",0)},set:function(e){this.setPropertyValue("maxTimeToFinishPage",e)},enumerable:!1,configurable:!0}),t.prototype.getPageMaxTimeToFinish=function(e){return!e||e.maxTimeToFinish<0?0:e.maxTimeToFinish>0?e.maxTimeToFinish:this.maxTimeToFinishPage},t.prototype.doTimer=function(e){if(this.onTimer.fire(this,{}),this.maxTimeToFinish>0&&this.maxTimeToFinish==this.timeSpent&&this.completeLastPage(),e){var t=this.getPageMaxTimeToFinish(e);t>0&&t==e.timeSpent&&(this.isLastPage?this.completeLastPage():this.nextPage())}},Object.defineProperty(t.prototype,"inSurvey",{get:function(){return!0},enumerable:!1,configurable:!0}),t.prototype.getSurveyData=function(){return this},t.prototype.getSurvey=function(){return this},t.prototype.getTextProcessor=function(){return this},t.prototype.getObjects=function(e,t){var n=[];return Array.prototype.push.apply(n,this.getPagesByNames(e)),Array.prototype.push.apply(n,this.getQuestionsByNames(t)),n},t.prototype.setTriggerValue=function(e,t,n){if(e)if(n)this.setVariable(e,t);else{var r=this.getQuestionByName(e);if(r)r.value=t;else{var o=new c.ProcessValue,i=o.getFirstName(e);if(i==e)this.setValue(e,t);else{if(!this.getQuestionByName(i))return;var s=this.getUnbindValue(this.getFilteredValues());o.setValue(s,e,t),this.setValue(i,s[i])}}}},t.prototype.copyTriggerValue=function(e,t,n){var r;e&&t&&(r=n?this.processText("{"+t+"}",!0):(new c.ProcessValue).getValue(t,this.getFilteredValues()),this.setTriggerValue(e,r,!1))},t.prototype.triggerExecuted=function(e){this.onTriggerExecuted.fire(this,{trigger:e})},t.prototype.startMovingQuestion=function(){this.isMovingQuestion=!0},t.prototype.stopMovingQuestion=function(){this.isMovingQuestion=!1},t.prototype.focusQuestion=function(e){return this.focusQuestionByInstance(this.getQuestionByName(e,!0))},t.prototype.focusQuestionByInstance=function(e,t){var n;if(void 0===t&&(t=!1),!e||!e.isVisible||!e.page)return!1;if((null===(n=this.focusingQuestionInfo)||void 0===n?void 0:n.question)===e)return!1;this.focusingQuestionInfo={question:e,onError:t},this.skippedPages.push({from:this.currentPage,to:e.page});var r=this.activePage!==e.page&&!e.page.isStartPage;return r&&(this.currentPage=e.page),r||this.focusQuestionInfo(),!0},t.prototype.focusQuestionInfo=function(){var e,t=null===(e=this.focusingQuestionInfo)||void 0===e?void 0:e.question;t&&!t.isDisposed&&t.focus(this.focusingQuestionInfo.onError),this.focusingQuestionInfo=void 0},t.prototype.questionEditFinishCallback=function(e,t){var n=this.enterKeyAction||v.settings.enterKeyAction;if("loseFocus"==n&&t.target.blur(),"moveToNextEditor"==n){var r=this.currentPage.questions,o=r.indexOf(e);o>-1&&o<r.length-1?r[o+1].focus():t.target.blur()}},t.prototype.getElementWrapperComponentName=function(e,n){return"logo-image"===n?"sv-logo-image":t.TemplateRendererComponentName},t.prototype.getQuestionContentWrapperComponentName=function(e){return t.TemplateRendererComponentName},t.prototype.getRowWrapperComponentName=function(e){return t.TemplateRendererComponentName},t.prototype.getElementWrapperComponentData=function(e,t){return e},t.prototype.getRowWrapperComponentData=function(e){return e},t.prototype.getItemValueWrapperComponentName=function(e,n){return t.TemplateRendererComponentName},t.prototype.getItemValueWrapperComponentData=function(e,t){return e},t.prototype.getMatrixCellTemplateData=function(e){return e.question},t.prototype.searchText=function(e){e&&(e=e.toLowerCase());for(var t=[],n=0;n<this.pages.length;n++)this.pages[n].searchText(e,t);return t},t.prototype.getSkeletonComponentName=function(e){return this.skeletonComponentName},t.prototype.addLayoutElement=function(e){var t=this.removeLayoutElement(e.id);return this.layoutElements.push(e),t},t.prototype.removeLayoutElement=function(e){var t=this.layoutElements.filter((function(t){return t.id===e}))[0];if(t){var n=this.layoutElements.indexOf(t);this.layoutElements.splice(n,1)}return t},t.prototype.getContainerContent=function(e){for(var t=[],n=0,r=this.layoutElements;n<r.length;n++){var o=r[n];O(o.id,"timerpanel")?("header"===e&&this.isTimerPanelShowingOnTop&&!this.isShowStartingPage&&t.push(o),"footer"===e&&this.isTimerPanelShowingOnBottom&&!this.isShowStartingPage&&t.push(o)):"running"===this.state&&O(o.id,"progress-"+this.progressBarType)?("header"===e&&this.isShowProgressBarOnTop&&!this.isShowStartingPage&&t.push(o),"contentBottom"===e&&this.isShowProgressBarOnBottom&&!this.isShowStartingPage&&t.push(o)):O(o.id,"navigationbuttons")?("contentTop"===e&&-1!==["top","both"].indexOf(this.isNavigationButtonsShowing)&&t.push(o),"contentBottom"===e&&-1!==["bottom","both"].indexOf(this.isNavigationButtonsShowing)&&t.push(o)):"running"===this.state&&O(o.id,"toc-navigation")&&this.showTOC?("left"===e&&-1!==["left","both"].indexOf(this.tocLocation)&&t.push(o),"right"===e&&-1!==["right","both"].indexOf(this.tocLocation)&&t.push(o)):(Array.isArray(o.container)&&-1!==o.container.indexOf(e)||o.container===e)&&t.push(o)}return t},t.prototype.processPopupVisiblityChanged=function(e,t,n){this.onPopupVisibleChanged.fire(this,{question:e,popup:t,visible:n})},t.prototype.applyTheme=function(e){var t=this;e&&(Object.keys(e).forEach((function(n){"isPanelless"===n?t.isCompact=e[n]:t[n]=e[n]})),this.onThemeApplied.fire(this,{theme:e}))},t.prototype.dispose=function(){if(this.currentPage=null,this.destroyResizeObserver(),e.prototype.dispose.call(this),this.editingObj=null,this.pages){for(var t=0;t<this.pages.length;t++)this.pages[t].setSurveyImpl(void 0),this.pages[t].dispose();this.pages.splice(0,this.pages.length),this.disposeCallback&&this.disposeCallback()}},t.TemplateRendererComponentName="sv-template-renderer",t.stylesManager=null,t.platform="unknown",E([Object(i.property)()],t.prototype,"completedCss",void 0),E([Object(i.property)()],t.prototype,"containerCss",void 0),E([Object(i.property)()],t.prototype,"showBrandInfo",void 0),E([Object(i.property)()],t.prototype,"enterKeyAction",void 0),E([Object(i.property)({defaultValue:{}})],t.prototype,"cssVariables",void 0),E([Object(i.property)()],t.prototype,"_isMobile",void 0),E([Object(i.property)()],t.prototype,"_isCompact",void 0),E([Object(i.property)()],t.prototype,"renderBackgroundImage",void 0),E([Object(i.property)()],t.prototype,"backgroundImageFit",void 0),E([Object(i.property)()],t.prototype,"backgroundImageAttachment",void 0),E([Object(i.property)()],t.prototype,"rootCss",void 0),E([Object(i.property)()],t.prototype,"calculatedWidthMode",void 0),E([Object(i.propertyArray)()],t.prototype,"layoutElements",void 0),t}(a.SurveyElementCore);function O(e,t){return!!e&&!!t&&e.toUpperCase()===t.toUpperCase()}i.Serializer.addClass("survey",[{name:"locale",choices:function(){return d.surveyLocalization.getLocales(!0)},onGetValue:function(e){return e.locale==d.surveyLocalization.defaultLocale?null:e.locale}},{name:"title",serializationProperty:"locTitle",dependsOn:"locale"},{name:"description:text",serializationProperty:"locDescription",dependsOn:"locale"},{name:"logo",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",default:!0},{name:"focusOnFirstError:boolean",default:!0},{name:"completedHtml:html",serializationProperty:"locCompletedHtml"},{name:"completedBeforeHtml:html",serializationProperty:"locCompletedBeforeHtml"},{name:"completedHtmlOnCondition:htmlconditions",className:"htmlconditionitem"},{name:"loadingHtml:html",serializationProperty:"locLoadingHtml"},{name:"pages:surveypages",className:"page"},{name:"questions",alternativeName:"elements",baseClassName:"question",visible:!1,isLightSerializable:!1,onGetValue:function(e){return null},onSetValue:function(e,t,n){e.pages.splice(0,e.pages.length);var r=e.addNewPage("");n.toObject({questions:t},r)}},{name:"triggers:triggers",baseClassName:"surveytrigger",classNamePart:"trigger"},{name:"calculatedValues:calculatedvalues",className:"calculatedvalue"},{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},{name:"showTitle:boolean",default:!0},{name:"showPageTitles:boolean",default:!0},{name:"showCompletedPage:boolean",default:!0},"navigateToUrl",{name:"navigateToUrlOnCondition:urlconditions",className:"urlconditionitem"},{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","top","bottom","both"]},{name:"progressBarType",default:"pages",choices:["pages","questions","requiredQuestions","correctQuestions","buttons"]},{name:"showTOC:switch",default:!1},{name:"tocLocation",default:"left",choices:["left","right"]},{name:"mode",default:"edit",choices:["edit","display"]},{name:"storeOthersAsComment:boolean",default:!0},{name:"maxTextLength:number",default:0,minValue:0},{name:"maxOthersLength:number",default:0,minValue:0},{name:"goNextPageAutomatic:boolean",onSetValue:function(e,t){"autogonext"!==t&&(t=o.Helpers.isTwoValueEquals(t,!0)),e.setPropertyValue("goNextPageAutomatic",t)}},{name:"clearInvisibleValues",default:"onComplete",choices:["none","onComplete","onHidden","onHiddenContainer"]},{name:"checkErrorsMode",default:"onNextPage",choices:["onNextPage","onValueChanged","onValueChanging","onComplete"]},{name:"textUpdateMode",default:"onBlur",choices:["onBlur","onTyping"]},{name:"autoGrowComment:boolean",default:!1},{name:"allowResizeComment:boolean",default:!0},{name:"startSurveyText",serializationProperty:"locStartSurveyText"},{name:"pagePrevText",serializationProperty:"locPagePrevText"},{name:"pageNextText",serializationProperty:"locPageNextText"},{name:"completeText",serializationProperty:"locCompleteText"},{name:"previewText",serializationProperty:"locPreviewText"},{name:"editText",serializationProperty:"locEditText"},{name:"requiredText",default:"*"},{name:"questionStartIndex",dependsOn:["showQuestionNumbers"],visibleIf:function(e){return!e||"off"!==e.showQuestionNumbers}},{name:"questionTitlePattern",default:"numTitleRequire",dependsOn:["questionStartIndex","requiredText"],choices:function(e){return e?e.getQuestionTitlePatternOptions():[]}},{name:"questionTitleTemplate",visible:!1,isSerializable:!1,serializationProperty:"locQuestionTitleTemplate"},{name:"firstPageIsStarted:boolean",default:!1},{name:"isSinglePage:boolean",default:!1,visible:!1,isSerializable:!1},{name:"questionsOnPageMode",default:"standard",choices:["singlePage","standard","questionPerPage"]},{name:"showPreviewBeforeComplete",default:"noPreview",choices:["noPreview","showAllQuestions","showAnsweredQuestions"]},{name:"maxTimeToFinish:number",default:0,minValue:0},{name:"maxTimeToFinishPage:number",default:0,minValue:0},{name:"showTimerPanel",default:"none",choices:["none","top","bottom"]},{name:"showTimerPanelMode",default:"all",choices:["all","page","survey"]},{name:"widthMode",default:"auto",choices:["auto","static","responsive"]},{name:"width",visibleIf:function(e){return"static"===e.widthMode}},{name:"backgroundImage",serializationProperty:"locBackgroundImage",visible:!1},{name:"backgroundImageFit",default:"cover",choices:["auto","contain","cover"],visible:!1},{name:"backgroundImageAttachment",default:"scroll",choices:["scroll","fixed"],visible:!1},{name:"backgroundOpacity:number",minValue:0,maxValue:1,default:1,visible:!1},{name:"showBrandInfo:boolean",default:!1,visible:!1}])},"./src/surveyProgress.ts":function(e,t,n){"use strict";n.r(t),n.d(t,"SurveyProgressModel",(function(){return o}));var r=n("./src/utils/cssClassBuilder.ts"),o=function(){function e(){}return e.getProgressTextInBarCss=function(e){return(new r.CssClassBuilder).append(e.progressText).append(e.progressTextInBar).toString()},e.getProgressTextUnderBarCss=function(e){return(new r.CssClassBuilder).append(e.progressText).append(e.progressTextUnderBar).toString()},e}()},"./src/surveyProgressButtons.ts":function(e,t,n){"use strict";n.r(t),n.d(t,"SurveyProgressButtonsModel",(function(){return o}));var r=n("./src/utils/cssClassBuilder.ts"),o=function(){function e(e){this.survey=e}return e.prototype.isListElementClickable=function(e){return!(this.survey.onServerValidateQuestions&&!this.survey.onServerValidateQuestions.isEmpty&&"onComplete"!==this.survey.checkErrorsMode)||e<=this.survey.currentPageNo+1},e.prototype.getListElementCss=function(e){if(!(e>=this.survey.visiblePages.length))return(new r.CssClassBuilder).append(this.survey.css.progressButtonsListElementPassed,this.survey.visiblePages[e].passed).append(this.survey.css.progressButtonsListElementCurrent,this.survey.currentPageNo===e).append(this.survey.css.progressButtonsListElementNonClickable,!this.isListElementClickable(e)).toString()},e.prototype.getScrollButtonCss=function(e,t){return(new r.CssClassBuilder).append(this.survey.css.progressButtonsImageButtonLeft,t).append(this.survey.css.progressButtonsImageButtonRight,!t).append(this.survey.css.progressButtonsImageButtonHidden,!e).toString()},e.prototype.clickListElement=function(e){if(!this.survey.isDesignMode)if(e<this.survey.currentPageNo)this.survey.currentPageNo=e;else if(e>this.survey.currentPageNo)for(var t=this.survey.currentPageNo;t<e&&this.survey.nextPage();t++);},e}()},"./src/surveyStrings.ts":function(e,t,n){"use strict";n.r(t),n.d(t,"surveyLocalization",(function(){return o})),n.d(t,"surveyStrings",(function(){return i}));var r=n("./src/localization/english.ts"),o={currentLocaleValue:"",defaultLocaleValue:"en",locales:{},localeNames:{},supportedLocales:[],get currentLocale(){return this.currentLocaleValue===this.defaultLocaleValue?"":this.currentLocaleValue},set currentLocale(e){"cz"===e&&(e="cs"),this.currentLocaleValue=e},get defaultLocale(){return this.defaultLocaleValue},set defaultLocale(e){"cz"===e&&(e="cs"),this.defaultLocaleValue=e},getLocaleStrings:function(e){return this.locales[e]},getString:function(e,t){var n=this;void 0===t&&(t=null);var r=new Array,o=function(e){var t=n.locales[e];t&&r.push(t)},i=function(e){if(e){o(e);var t=e.indexOf("-");t<1||(e=e.substring(0,t),o(e))}};i(t),i(this.currentLocale),i(this.defaultLocale),"en"!==this.defaultLocale&&o("en");for(var s=0;s<r.length;s++){var a=r[s][e];if(void 0!==a)return a}return this.onGetExternalString(e,t)},getLocales:function(e){void 0===e&&(e=!1);var t=[];t.push("");var n=this.locales;if(this.supportedLocales&&this.supportedLocales.length>0){n={};for(var r=0;r<this.supportedLocales.length;r++)n[this.supportedLocales[r]]=!0}for(var i in n)e&&i==this.defaultLocale||t.push(i);var s=function(e){if(!e)return"";var t=o.localeNames[e];return t||(t=e),t.toLowerCase()};return t.sort((function(e,t){var n=s(e),r=s(t);return n===r?0:n<r?-1:1})),t},onGetExternalString:function(e,t){}},i=r.englishStrings;o.locales.en=r.englishStrings,o.localeNames.en="english"},"./src/surveyTimerModel.ts":function(e,t,n){"use strict";n.r(t),n.d(t,"SurveyTimerModel",(function(){return c}));var r,o=n("./src/base.ts"),i=n("./src/surveytimer.ts"),s=n("./src/jsonobject.ts"),a=n("./src/utils/cssClassBuilder.ts"),l=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),u=function(e,t,n,r){var o,i=arguments.length,s=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,r);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(i<3?o(s):i>3?o(t,n,s):o(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},c=function(e){function t(t){var n=e.call(this)||this;return n.timerFunc=null,n.surveyValue=t,n.onCreating(),n}return l(t,e),Object.defineProperty(t.prototype,"survey",{get:function(){return this.surveyValue},enumerable:!1,configurable:!0}),t.prototype.onCreating=function(){},t.prototype.start=function(){var e=this;this.survey&&(this.isRunning||this.isDesignMode||(this.survey.onCurrentPageChanged.add((function(){e.update()})),this.timerFunc=function(){e.doTimer()},this.setIsRunning(!0),this.update(),i.SurveyTimer.instance.start(this.timerFunc)))},t.prototype.stop=function(){this.isRunning&&(this.setIsRunning(!1),i.SurveyTimer.instance.stop(this.timerFunc))},Object.defineProperty(t.prototype,"isRunning",{get:function(){return this.getPropertyValue("isRunning",!1)},enumerable:!1,configurable:!0}),t.prototype.setIsRunning=function(e){this.setPropertyValue("isRunning",e)},t.prototype.update=function(){this.updateText(),this.updateProgress()},t.prototype.doTimer=function(){var e=this.survey.currentPage;e&&(e.timeSpent=e.timeSpent+1),this.spent=this.spent+1,this.update(),this.onTimer&&this.onTimer(e)},t.prototype.updateProgress=function(){var e=this,t=this.survey.timerInfo,n=t.spent,r=t.limit;r?0==n?(this.progress=0,setTimeout((function(){e.progress=Math.floor((n+1)/r*100)/100}),0)):n!==r&&(this.progress=Math.floor((n+1)/r*100)/100):this.progress=void 0},t.prototype.updateText=function(){var e=this.survey.timerClock;this.clockMajorText=e.majorText,this.clockMinorText=e.minorText,this.text=this.survey.timerInfoText},Object.defineProperty(t.prototype,"showProgress",{get:function(){return void 0!==this.progress},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"showTimerAsClock",{get:function(){return!!this.survey.getCss().clockTimerRoot},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"rootCss",{get:function(){return(new a.CssClassBuilder).append(this.survey.getCss().clockTimerRoot).append(this.survey.getCss().clockTimerRootTop,this.survey.isTimerPanelShowingOnTop).append(this.survey.getCss().clockTimerRootBottom,this.survey.isTimerPanelShowingOnBottom).toString()},enumerable:!1,configurable:!0}),t.prototype.getProgressCss=function(){return(new a.CssClassBuilder).append(this.survey.getCss().clockTimerProgress).append(this.survey.getCss().clockTimerProgressAnimation,this.progress>0).toString()},Object.defineProperty(t.prototype,"textContainerCss",{get:function(){return this.survey.getCss().clockTimerTextContainer},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"minorTextCss",{get:function(){return this.survey.getCss().clockTimerMinorText},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"majorTextCss",{get:function(){return this.survey.getCss().clockTimerMajorText},enumerable:!1,configurable:!0}),u([Object(s.property)()],t.prototype,"text",void 0),u([Object(s.property)()],t.prototype,"progress",void 0),u([Object(s.property)()],t.prototype,"clockMajorText",void 0),u([Object(s.property)()],t.prototype,"clockMinorText",void 0),u([Object(s.property)({defaultValue:0})],t.prototype,"spent",void 0),t}(o.Base)},"./src/surveyToc.ts":function(e,t,n){"use strict";n.r(t),n.d(t,"tryNavigateToPage",(function(){return u})),n.d(t,"tryFocusPage",(function(){return c})),n.d(t,"createTOCListModel",(function(){return p})),n.d(t,"getTocRootCss",(function(){return d})),n.d(t,"TOCModel",(function(){return h}));var r=n("./src/actions/action.ts"),o=n("./src/base.ts"),i=n("./src/list.ts"),s=n("./src/page.ts"),a=n("./src/popup.ts"),l=n("./src/utils/devices.ts");function u(e,t){if(!e.isDesignMode){var n=e.visiblePages.indexOf(t);if(n<e.currentPageNo)e.currentPageNo=n;else if(n>e.currentPageNo)for(var r=e.currentPageNo;r<n;r++)if(!e.nextPageUIClick())return!1;return!0}}function c(e,t){return e.isDesignMode||t.focusFirstQuestion(),!0}function p(e,t){var n,a="singlePage"===e.questionsOnPageMode?null===(n=e.pages[0])||void 0===n?void 0:n.elements:e.pages,l=(a||[]).map((function(n){return new r.Action({id:n.name,title:n.navigationTitle||n.title||n.name,action:function(){return void 0!==typeof document&&document.activeElement&&document.activeElement.blur&&document.activeElement.blur(),t&&t(),n instanceof s.PageModel?u(e,n):c(e,n)},visible:new o.ComputedUpdater((function(){return n.isVisible&&!n.isStartPage}))})})),p=new i.ListModel(l,(function(e){e.action()&&(p.selectedItem=e)}),!0,l.filter((function(t){return t.id===e.currentPage.name}))[0]||l.filter((function(e){return e.id===a[0].name}))[0]);return p.allowSelection=!1,p.locOwner=e,e.onCurrentPageChanged.add((function(t,n){p.selectedItem=l.filter((function(t){return t.id===e.currentPage.name}))[0]})),p}function d(e,t){return void 0===t&&(t=!1),t?"sv_progress-toc sv_progress-toc--mobile":"sv_progress-toc sv_progress-toc--"+(e.tocLocation||"").toLowerCase()}var h=function(){function e(e){var t=this;this.survey=e,this.isMobile=l.IsTouch,this.icon="icon-navmenu_24x24",this.togglePopup=function(){t.popupModel.toggleVisibility()},this.listModel=p(e,(function(){t.popupModel.isVisible=!1})),this.popupModel=new a.PopupModel("sv-list",{model:this.listModel}),this.popupModel.displayMode=this.isMobile?"overlay":"popup"}return Object.defineProperty(e.prototype,"containerCss",{get:function(){return d(this.survey,this.isMobile)},enumerable:!1,configurable:!0}),e}()},"./src/surveytimer.ts":function(e,t,n){"use strict";n.r(t),n.d(t,"surveyTimerFunctions",(function(){return o})),n.d(t,"SurveyTimer",(function(){return i}));var r=n("./src/base.ts"),o={setTimeout:function(e){return"undefined"==typeof window?0:window.setTimeout(e,1e3)},clearTimeout:function(e){"undefined"!=typeof window&&window.clearTimeout(e)}},i=function(){function e(){this.listenerCounter=0,this.timerId=-1,this.onTimer=new r.Event}return Object.defineProperty(e,"instance",{get:function(){return e.instanceValue||(e.instanceValue=new e),e.instanceValue},enumerable:!1,configurable:!0}),e.prototype.start=function(e){var t=this;void 0===e&&(e=null),e&&this.onTimer.add(e),this.timerId<0&&(this.timerId=o.setTimeout((function(){t.doTimer()}))),this.listenerCounter++},e.prototype.stop=function(e){void 0===e&&(e=null),e&&this.onTimer.remove(e),this.listenerCounter--,0==this.listenerCounter&&this.timerId>-1&&(o.clearTimeout(this.timerId),this.timerId=-1)},e.prototype.doTimer=function(){var e=this;if((this.onTimer.isEmpty||0==this.listenerCounter)&&(this.timerId=-1),!(this.timerId<0)){var t=this.timerId;this.onTimer.fire(this,{}),t===this.timerId&&(this.timerId=o.setTimeout((function(){e.doTimer()})))}},e.instanceValue=null,e}()},"./src/svgbundle.ts":function(e,t,n){"use strict";n.r(t),n.d(t,"SvgIconRegistry",(function(){return i})),n.d(t,"SvgRegistry",(function(){return s})),n.d(t,"SvgBundleViewModel",(function(){}));var r=n("./src/settings.ts"),o=n("./src/utils/utils.ts"),i=function(){function e(){this.icons={},this.iconPrefix="icon-"}return e.prototype.registerIconFromSymbol=function(e,t){this.icons[e]=t},e.prototype.registerIconFromSvgViaElement=function(e,t,n){void 0===n&&(n=this.iconPrefix);var r=document.createElement("div");r.innerHTML=t;var o=document.createElement("symbol"),i=r.querySelector("svg");o.innerHTML=i.innerHTML;for(var s=0;s<i.attributes.length;s++)o.setAttributeNS("http://www.w3.org/2000/svg",i.attributes[s].name,i.attributes[s].value);o.id=n+e,this.registerIconFromSymbol(e,o.outerHTML)},e.prototype.registerIconFromSvg=function(e,t,n){void 0===n&&(n=this.iconPrefix);var r=(t=t.trim()).toLowerCase();return"<svg "===r.substring(0,5)&&"</svg>"===r.substring(r.length-6,r.length)&&(this.registerIconFromSymbol(e,'<symbol id="'+n+e+'" '+t.substring(5,r.length-6)+"</symbol>"),!0)},e.prototype.registerIconsFromFolder=function(e){var t=this;e.keys().forEach((function(n){t.registerIconFromSvg(n.substring(2,n.length-4).toLowerCase(),e(n))}))},e.prototype.iconsRenderedHtml=function(){var e=this;return Object.keys(this.icons).map((function(t){return e.icons[t]})).join("")},e.prototype.renderIcons=function(){var e="sv-icon-holder-global-container";if(r.settings.environment&&!r.settings.environment.root.getElementById(e)){var t=document.createElement("div");t.id=e,t.innerHTML="<svg>"+this.iconsRenderedHtml()+"</svg>",t.style.display="none",Object(o.getElement)(r.settings.environment.svgMountContainer).appendChild(t)}},e}(),s=new i,a=n("./src/images sync \\.svg$"),l=n("./src/images/smiley sync \\.svg$");s.registerIconsFromFolder(a),s.registerIconsFromFolder(l)},"./src/template-renderer.ts":function(e,t,n){"use strict";n.r(t)},"./src/textPreProcessor.ts":function(e,t,n){"use strict";n.r(t),n.d(t,"TextPreProcessorItem",(function(){return i})),n.d(t,"TextPreProcessorValue",(function(){return s})),n.d(t,"TextPreProcessor",(function(){return a})),n.d(t,"QuestionTextProcessor",(function(){return l}));var r=n("./src/helpers.ts"),o=n("./src/conditionProcessValue.ts"),i=function(){},s=function(e,t){this.name=e,this.returnDisplayValue=t,this.isExists=!1,this.canProcess=!0},a=function(){function e(){this._unObservableValues=[void 0]}return Object.defineProperty(e.prototype,"hasAllValuesOnLastRunValue",{get:function(){return this._unObservableValues[0]},set:function(e){this._unObservableValues[0]=e},enumerable:!1,configurable:!0}),e.prototype.process=function(e,t,n){if(void 0===t&&(t=!1),void 0===n&&(n=!1),this.hasAllValuesOnLastRunValue=!0,!e)return e;if(!this.onProcess)return e;for(var o=this.getItems(e),i=o.length-1;i>=0;i--){var a=o[i],l=this.getName(e.substring(a.start+1,a.end));if(l){var u=new s(l,t);if(this.onProcess(u),u.isExists){r.Helpers.isValueEmpty(u.value)&&(this.hasAllValuesOnLastRunValue=!1);var c=r.Helpers.isValueEmpty(u.value)?"":u.value;n&&(c=encodeURIComponent(c)),e=e.substring(0,a.start)+c+e.substring(a.end+1)}else u.canProcess&&(this.hasAllValuesOnLastRunValue=!1)}}return e},e.prototype.processValue=function(e,t){var n=new s(e,t);return this.onProcess&&this.onProcess(n),n},Object.defineProperty(e.prototype,"hasAllValuesOnLastRun",{get:function(){return!!this.hasAllValuesOnLastRunValue},enumerable:!1,configurable:!0}),e.prototype.getItems=function(e){for(var t=[],n=e.length,r=-1,o="",s=0;s<n;s++)if("{"==(o=e[s])&&(r=s),"}"==o){if(r>-1){var a=new i;a.start=r,a.end=s,t.push(a)}r=-1}return t},e.prototype.getName=function(e){if(e)return e.trim()},e}(),l=function(){function e(e){var t=this;this.variableName=e,this.textPreProcessor=new a,this.textPreProcessor.onProcess=function(e){t.getProcessedTextValue(e)}}return e.prototype.processValue=function(e,t){return this.textPreProcessor.processValue(e,t)},Object.defineProperty(e.prototype,"survey",{get:function(){return null},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"panel",{get:function(){return null},enumerable:!1,configurable:!0}),e.prototype.getValues=function(){return this.panel?this.panel.getValue():null},e.prototype.getQuestionByName=function(e){return this.panel?this.panel.getQuestionByValueName(e):null},e.prototype.getParentTextProcessor=function(){return null},e.prototype.onCustomProcessText=function(e){return!1},e.prototype.getQuestionDisplayText=function(e){return e.displayValue},e.prototype.getProcessedTextValue=function(e){if(e&&!this.onCustomProcessText(e)){var t=(new o.ProcessValue).getFirstName(e.name);if(e.isExists=t==this.variableName,e.canProcess=e.isExists,e.canProcess){e.name=e.name.replace(this.variableName+".",""),t=(new o.ProcessValue).getFirstName(e.name);var n=this.getQuestionByName(t),r={};if(n)r[t]=e.returnDisplayValue?this.getQuestionDisplayText(n):n.value;else{var i=this.panel?this.getValues():null;i&&(r[t]=i[t])}e.value=(new o.ProcessValue).getValue(e.name,r)}}},e.prototype.processText=function(e,t){return this.survey&&this.survey.isDesignMode?e:(e=this.textPreProcessor.process(e,t),e=this.processTextCore(this.getParentTextProcessor(),e,t),this.processTextCore(this.survey,e,t))},e.prototype.processTextEx=function(e,t){e=this.processText(e,t);var n=this.textPreProcessor.hasAllValuesOnLastRun,r={hasAllValuesOnLastRun:!0,text:e};return this.survey&&(r=this.survey.processTextEx(e,t,!1)),r.hasAllValuesOnLastRun=r.hasAllValuesOnLastRun&&n,r},e.prototype.processTextCore=function(e,t,n){return e?e.processText(t,n):t},e}()},"./src/themes.ts":function(e,t,n){"use strict";n.r(t)},"./src/trigger.ts":function(e,t,n){"use strict";n.r(t),n.d(t,"Trigger",(function(){return d})),n.d(t,"SurveyTrigger",(function(){return h})),n.d(t,"SurveyTriggerVisible",(function(){return f})),n.d(t,"SurveyTriggerComplete",(function(){return m})),n.d(t,"SurveyTriggerSetValue",(function(){return g})),n.d(t,"SurveyTriggerSkip",(function(){return y})),n.d(t,"SurveyTriggerRunExpression",(function(){return v})),n.d(t,"SurveyTriggerCopyValue",(function(){return b}));var r,o=n("./src/helpers.ts"),i=n("./src/base.ts"),s=n("./src/jsonobject.ts"),a=n("./src/conditions.ts"),l=n("./src/expressions/expressions.ts"),u=n("./src/conditionProcessValue.ts"),c=n("./src/settings.ts"),p=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),d=function(e){function t(){var n=e.call(this)||this;return n.idValue=t.idCounter++,n.usedNames=[],n.registerPropertyChangedHandlers(["operator","value","name"],(function(){n.oldPropertiesChanged()})),n.registerPropertyChangedHandlers(["expression"],(function(){n.onExpressionChanged()})),n}return p(t,e),Object.defineProperty(t,"operators",{get:function(){return null!=t.operatorsValue||(t.operatorsValue={empty:function(e,t){return!e},notempty:function(e,t){return!!e},equal:function(e,t){return e==t},notequal:function(e,t){return e!=t},contains:function(e,t){return e&&e.indexOf&&e.indexOf(t)>-1},notcontains:function(e,t){return!e||!e.indexOf||-1==e.indexOf(t)},greater:function(e,t){return e>t},less:function(e,t){return e<t},greaterorequal:function(e,t){return e>=t},lessorequal:function(e,t){return e<=t}}),t.operatorsValue},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"id",{get:function(){return this.idValue},enumerable:!1,configurable:!0}),t.prototype.getType=function(){return"triggerbase"},t.prototype.toString=function(){var e=this.getType().replace("trigger",""),t=this.expression?this.expression:this.buildExpression();return t&&(e+=", "+t),e},Object.defineProperty(t.prototype,"operator",{get:function(){return this.getPropertyValue("operator","equal")},set:function(e){e&&(e=e.toLowerCase(),t.operators[e]&&this.setPropertyValue("operator",e))},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"value",{get:function(){return this.getPropertyValue("value",null)},set:function(e){this.setPropertyValue("value",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"name",{get:function(){return this.getPropertyValue("name","")},set:function(e){this.setPropertyValue("name",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"expression",{get:function(){return this.getPropertyValue("expression","")},set:function(e){this.setPropertyValue("expression",e)},enumerable:!1,configurable:!0}),t.prototype.canBeExecuted=function(e){return!0},t.prototype.canBeExecutedOnComplete=function(){return!1},t.prototype.checkExpression=function(e,t,n,r,o){void 0===o&&(o=null),this.isExecutingOnNextPage=e,this.canBeExecuted(e)&&(t&&!this.canBeExecutedOnComplete()||this.isCheckRequired(n)&&this.conditionRunner&&this.perform(r,o))},t.prototype.check=function(e){t.operators[this.operator](e,this.value)?this.onSuccess({},null):this.onFailure()},t.prototype.perform=function(e,t){var n=this;this.conditionRunner.onRunComplete=function(r){n.triggerResult(r,e,t)},this.conditionRunner.run(e,t)},t.prototype.triggerResult=function(e,t,n){e?(this.onSuccess(t,n),this.onSuccessExecuted()):this.onFailure()},t.prototype.onSuccess=function(e,t){},t.prototype.onFailure=function(){},t.prototype.onSuccessExecuted=function(){},t.prototype.endLoadingFromJson=function(){e.prototype.endLoadingFromJson.call(this),this.oldPropertiesChanged()},t.prototype.oldPropertiesChanged=function(){this.onExpressionChanged()},t.prototype.onExpressionChanged=function(){this.usedNames=[],this.hasFunction=!1,this.conditionRunner=null},t.prototype.buildExpression=function(){return this.name?this.isValueEmpty(this.value)&&this.isRequireValue?"":"{"+this.name+"} "+this.operator+" "+l.OperandMaker.toOperandString(this.value):""},t.prototype.isCheckRequired=function(e){if(!e)return!1;if(this.buildUsedNames(),!0===this.hasFunction)return!0;for(var t=new u.ProcessValue,n=0;n<this.usedNames.length;n++){var r=this.usedNames[n];if(e.hasOwnProperty(r))return!0;var o=t.getFirstName(r);if(e.hasOwnProperty(o)){if(r===o)return!0;var i=e[o];if(null!=i){if(!i.hasOwnProperty("oldValue")||!i.hasOwnProperty("newValue"))return!0;var s={};s[o]=i.oldValue;var a=t.getValue(r,s);s[o]=i.newValue;var l=t.getValue(r,s);if(!this.isTwoValueEquals(a,l))return!0}}}return!1},t.prototype.buildUsedNames=function(){if(!this.conditionRunner){var e=this.expression;e||(e=this.buildExpression()),e&&(this.conditionRunner=new a.ConditionRunner(e),this.hasFunction=this.conditionRunner.hasFunction(),this.usedNames=this.conditionRunner.getVariables())}},Object.defineProperty(t.prototype,"isRequireValue",{get:function(){return"empty"!==this.operator&&"notempty"!=this.operator},enumerable:!1,configurable:!0}),t.idCounter=1,t.operatorsValue=null,t}(i.Base),h=function(e){function t(){var t=e.call(this)||this;return t.ownerValue=null,t}return p(t,e),Object.defineProperty(t.prototype,"owner",{get:function(){return this.ownerValue},enumerable:!1,configurable:!0}),t.prototype.setOwner=function(e){this.ownerValue=e},t.prototype.getSurvey=function(e){return void 0===e&&(e=!1),this.owner&&this.owner.getSurvey?this.owner.getSurvey():null},t.prototype.isRealExecution=function(){return!0},t.prototype.onSuccessExecuted=function(){this.owner&&this.isRealExecution()&&this.owner.triggerExecuted(this)},t}(d),f=function(e){function t(){var t=e.call(this)||this;return t.pages=[],t.questions=[],t}return p(t,e),t.prototype.getType=function(){return"visibletrigger"},t.prototype.onSuccess=function(e,t){this.onTrigger(this.onItemSuccess)},t.prototype.onFailure=function(){this.onTrigger(this.onItemFailure)},t.prototype.onTrigger=function(e){if(this.owner)for(var t=this.owner.getObjects(this.pages,this.questions),n=0;n<t.length;n++)e(t[n])},t.prototype.onItemSuccess=function(e){e.visible=!0},t.prototype.onItemFailure=function(e){e.visible=!1},t}(h),m=function(e){function t(){return e.call(this)||this}return p(t,e),t.prototype.getType=function(){return"completetrigger"},t.prototype.isRealExecution=function(){return!c.settings.triggers.executeCompleteOnValueChanged===this.isExecutingOnNextPage},t.prototype.onSuccess=function(e,t){this.owner&&(this.isRealExecution()?this.owner.setCompleted(this):this.owner.canBeCompleted(this,!0))},t.prototype.onFailure=function(){this.owner.canBeCompleted(this,!1)},t}(h),g=function(e){function t(){return e.call(this)||this}return p(t,e),t.prototype.getType=function(){return"setvaluetrigger"},t.prototype.canBeExecuted=function(e){return!e&&!!this.setToName},t.prototype.onPropertyValueChanged=function(t,n,r){if(e.prototype.onPropertyValueChanged.call(this,t,n,r),"setToName"===t){var o=this.getSurvey();o&&!o.isLoadingFromJson&&o.isDesignMode&&(this.setValue=void 0)}},Object.defineProperty(t.prototype,"setToName",{get:function(){return this.getPropertyValue("setToName","")},set:function(e){this.setPropertyValue("setToName",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"setValue",{get:function(){return this.getPropertyValue("setValue")},set:function(e){this.setPropertyValue("setValue",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isVariable",{get:function(){return this.getPropertyValue("isVariable")},set:function(e){this.setPropertyValue("isVariable",e)},enumerable:!1,configurable:!0}),t.prototype.onSuccess=function(e,t){this.setToName&&this.owner&&this.owner.setTriggerValue(this.setToName,this.setValue,this.isVariable)},t}(h),y=function(e){function t(){return e.call(this)||this}return p(t,e),t.prototype.getType=function(){return"skiptrigger"},Object.defineProperty(t.prototype,"gotoName",{get:function(){return this.getPropertyValue("gotoName","")},set:function(e){this.setPropertyValue("gotoName",e)},enumerable:!1,configurable:!0}),t.prototype.canBeExecuted=function(e){return e===!c.settings.triggers.executeSkipOnValueChanged},t.prototype.onSuccess=function(e,t){this.gotoName&&this.owner&&this.owner.focusQuestion(this.gotoName)},t}(h),v=function(e){function t(){return e.call(this)||this}return p(t,e),t.prototype.getType=function(){return"runexpressiontrigger"},Object.defineProperty(t.prototype,"setToName",{get:function(){return this.getPropertyValue("setToName","")},set:function(e){this.setPropertyValue("setToName",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"runExpression",{get:function(){return this.getPropertyValue("runExpression","")},set:function(e){this.setPropertyValue("runExpression",e)},enumerable:!1,configurable:!0}),t.prototype.onSuccess=function(e,t){var n=this;if(this.owner&&this.runExpression){var r=new a.ExpressionRunner(this.runExpression);r.canRun&&(r.onRunComplete=function(e){n.onCompleteRunExpression(e)},r.run(e,t))}},t.prototype.onCompleteRunExpression=function(e){this.setToName&&void 0!==e&&this.owner.setTriggerValue(this.setToName,o.Helpers.convertValToQuestionVal(e),!1)},t}(h),b=function(e){function t(){return e.call(this)||this}return p(t,e),t.prototype.canBeExecuted=function(e){return!e&&!!this.setToName&&!!this.fromName},Object.defineProperty(t.prototype,"setToName",{get:function(){return this.getPropertyValue("setToName","")},set:function(e){this.setPropertyValue("setToName",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"fromName",{get:function(){return this.getPropertyValue("fromName","")},set:function(e){this.setPropertyValue("fromName",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"copyDisplayValue",{get:function(){return this.getPropertyValue("copyDisplayValue")},set:function(e){this.setPropertyValue("copyDisplayValue",e)},enumerable:!1,configurable:!0}),t.prototype.getType=function(){return"copyvaluetrigger"},t.prototype.onSuccess=function(e,t){this.setToName&&this.owner&&this.owner.copyTriggerValue(this.setToName,this.fromName,this.copyDisplayValue)},t}(h);s.Serializer.addClass("trigger",[{name:"operator",default:"equal",visible:!1},{name:"value",visible:!1},"expression:condition"]),s.Serializer.addClass("surveytrigger",[{name:"name",visible:!1}],null,"trigger"),s.Serializer.addClass("visibletrigger",["pages:pages","questions:questions"],(function(){return new f}),"surveytrigger"),s.Serializer.addClass("completetrigger",[],(function(){return new m}),"surveytrigger"),s.Serializer.addClass("setvaluetrigger",[{name:"!setToName:questionvalue"},{name:"setValue:triggervalue",dependsOn:"setToName",visibleIf:function(e){return!!e&&!!e.setToName}},{name:"isVariable:boolean",visible:!1}],(function(){return new g}),"surveytrigger"),s.Serializer.addClass("copyvaluetrigger",[{name:"!fromName:questionvalue"},{name:"!setToName:questionvalue"},{name:"copyDisplayValue:boolean",visible:!1}],(function(){return new b}),"surveytrigger"),s.Serializer.addClass("skiptrigger",[{name:"!gotoName:question"}],(function(){return new y}),"surveytrigger"),s.Serializer.addClass("runexpressiontrigger",[{name:"setToName:questionvalue"},"runExpression:expression"],(function(){return new v}),"surveytrigger")},"./src/utils/cssClassBuilder.ts":function(e,t,n){"use strict";n.r(t),n.d(t,"CssClassBuilder",(function(){return r}));var r=function(){function e(){this.classes=[]}return e.prototype.isEmpty=function(){return""===this.toString()},e.prototype.append=function(e,t){return void 0===t&&(t=!0),e&&t&&("string"==typeof e&&(e=e.trim()),this.classes.push(e)),this},e.prototype.toString=function(){return this.classes.join(" ")},e}()},"./src/utils/devices.ts":function(e,t,n){"use strict";n.r(t),n.d(t,"IsMobile",(function(){return s})),n.d(t,"IsTouch",(function(){return l})),n.d(t,"_setIsTouch",(function(){return u}));var r,o=!1,i=null;"undefined"!=typeof navigator&&"undefined"!=typeof window&&navigator&&window&&(i=navigator.userAgent||navigator.vendor||window.opera),(r=i)&&("MacIntel"===navigator.platform&&navigator.maxTouchPoints>0||"iPad"===navigator.platform||/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino/i.test(r)||/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s\-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|\-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw\-(n|u)|c55\/|capi|ccwa|cdm\-|cell|chtm|cldc|cmd\-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc\-s|devi|dica|dmob|do(c|p)o|ds(12|\-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(\-|_)|g1 u|g560|gene|gf\-5|g\-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd\-(m|p|t)|hei\-|hi(pt|ta)|hp( i|ip)|hs\-c|ht(c(\-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i\-(20|go|ma)|i230|iac( |\-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc\-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|\-[a-w])|libw|lynx|m1\-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m\-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(\-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)\-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|\-([1-8]|c))|phil|pire|pl(ay|uc)|pn\-2|po(ck|rt|se)|prox|psio|pt\-g|qa\-a|qc(07|12|21|32|60|\-[2-7]|i\-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h\-|oo|p\-)|sdk\/|se(c(\-|0|1)|47|mc|nd|ri)|sgh\-|shar|sie(\-|m)|sk\-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h\-|v\-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl\-|tdg\-|tel(i|m)|tim\-|t\-mo|to(pl|sh)|ts(70|m\-|m3|m5)|tx\-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|\-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(\-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas\-|your|zeto|zte\-/i.test(r.substring(0,4)))&&(o=!0);var s=o||!1,a=!1;"undefined"!=typeof window&&(a="ontouchstart"in window||navigator.maxTouchPoints>0);var l=s&&a;function u(e){l=e}},"./src/utils/dragOrClickHelper.ts":function(e,t,n){"use strict";n.r(t),n.d(t,"DragOrClickHelper",(function(){return o}));var r=n("./src/entries/core.ts"),o=function(){function e(e){var t=this;this.dragHandler=e,this.onPointerUp=function(e){t.clearListeners()},this.tryToStartDrag=function(e){if(t.currentX=e.pageX,t.currentY=e.pageY,!t.isMicroMovement)return t.clearListeners(),t.dragHandler(t.pointerDownEvent,t.currentTarget,t.itemModel),!0}}return e.prototype.onPointerDown=function(e,t){r.IsTouch?this.dragHandler(e,e.currentTarget,t):(this.pointerDownEvent=e,this.currentTarget=e.currentTarget,this.startX=e.pageX,this.startY=e.pageY,document.addEventListener("pointermove",this.tryToStartDrag),this.currentTarget.addEventListener("pointerup",this.onPointerUp),this.itemModel=t)},Object.defineProperty(e.prototype,"isMicroMovement",{get:function(){var e=Math.abs(this.currentX-this.startX),t=Math.abs(this.currentY-this.startY);return e<10&&t<10},enumerable:!1,configurable:!0}),e.prototype.clearListeners=function(){this.pointerDownEvent&&(document.removeEventListener("pointermove",this.tryToStartDrag),this.currentTarget.removeEventListener("pointerup",this.onPointerUp))},e}()},"./src/utils/popup.ts":function(e,t,n){"use strict";n.r(t),n.d(t,"PopupUtils",(function(){return r}));var r=function(){function e(){}return e.calculatePosition=function(e,t,n,r,o,i,s){void 0===s&&(s="flex");var a=e.left,l=e.top;return"flex"===s&&(a="center"==o?(e.left+e.right-n)/2:"left"==o?e.left-n:e.right),l="middle"==r?(e.top+e.bottom-t)/2:"top"==r?e.top-t:e.bottom,i&&"center"!=o&&"middle"!=r&&("top"==r?l+=e.height:l-=e.height),{left:Math.round(a),top:Math.round(l)}},e.updateVerticalDimensions=function(t,n,r){var o;return t<0?o={height:n+t,top:0}:n+t>r&&(o={height:Math.min(n,r-t-e.bottomIndent),top:t}),o},e.updateHorizontalDimensions=function(e,t,n,r,o,i){void 0===o&&(o="flex"),void 0===i&&(i={left:0,right:0}),t+=i.left+i.right;var s=void 0,a=e;return"center"===r&&("fixed"===o?(e+t>n&&(s=n-e),a-=i.left):e<0?(a=i.left,s=Math.min(t,n)):t+e>n&&(a=n-t,a=Math.max(a,i.left),s=Math.min(t,n))),"left"===r&&e<0&&(a=i.left,s=Math.min(t,n)),"right"===r&&t+e>n&&(s=n-e),{width:s-i.left-i.right,left:a}},e.updateVerticalPosition=function(e,t,n,r,o){var i=t-(e.top+(r?e.height:0)),s=t+e.bottom-(r?e.height:0)-o;return i>0&&s<=0&&"top"==n?n="bottom":s>0&&i<=0&&"bottom"==n?n="top":s>0&&i>0&&(n=i<s?"top":"bottom"),n},e.calculatePopupDirection=function(e,t){var n;return"center"==t&&"middle"!=e?n=e:"center"!=t&&(n=t),n},e.calculatePointerTarget=function(e,t,n,r,o,i,s){void 0===i&&(i=0),void 0===s&&(s=0);var a={};return"center"!=o?(a.top=e.top+e.height/2,a.left=e[o]):"middle"!=r&&(a.top=e[r],a.left=e.left+e.width/2),a.left=Math.round(a.left-n),a.top=Math.round(a.top-t),"left"==o&&(a.left-=i+s),"center"===o&&(a.left-=i),a},e.bottomIndent=16,e}()},"./src/utils/responsivity-manager.ts":function(e,t,n){"use strict";n.r(t),n.d(t,"ResponsivityManager",(function(){return s})),n.d(t,"VerticalResponsivityManager",(function(){return a}));var r,o=n("./src/utils/utils.ts"),i=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),s=function(){function e(e,t,n,r){var o=this;void 0===r&&(r=null),this.container=e,this.model=t,this.itemsSelector=n,this.dotsItemSize=r,this.resizeObserver=void 0,this.isInitialized=!1,this.minDimensionConst=56,this.separatorSize=17,this.separatorAddConst=1,this.paddingSizeConst=8,this.dotsSizeConst=48,this.recalcMinDimensionConst=!0,this.getComputedStyle=window.getComputedStyle.bind(window),this.model.updateCallback=function(e){e&&(o.isInitialized=!1),setTimeout((function(){o.process()}),1)},"undefined"!=typeof ResizeObserver&&(this.resizeObserver=new ResizeObserver((function(e){return o.process()})),this.resizeObserver.observe(this.container.parentElement))}return e.prototype.getDimensions=function(e){return{scroll:e.scrollWidth,offset:e.offsetWidth}},e.prototype.getAvailableSpace=function(){var e=this.getComputedStyle(this.container),t=this.container.offsetWidth;return"border-box"===e.boxSizing&&(t-=parseFloat(e.paddingLeft)+parseFloat(e.paddingRight)),t},e.prototype.calcItemSize=function(e){return e.offsetWidth},e.prototype.calcMinDimension=function(e){var t=this.minDimensionConst;return e.iconSize&&this.recalcMinDimensionConst&&(t=2*e.iconSize+this.paddingSizeConst),e.canShrink?t+(e.needSeparator?this.separatorSize:0):e.maxDimension},e.prototype.calcItemsSizes=function(){var e=this,t=this.model.actions;(this.container.querySelectorAll(this.itemsSelector)||[]).forEach((function(n,r){var o=t[r];e.calcActionDimensions(o,n)}))},e.prototype.calcActionDimensions=function(e,t){e.maxDimension=this.calcItemSize(t),e.minDimension=this.calcMinDimension(e)},Object.defineProperty(e.prototype,"isContainerVisible",{get:function(){return Object(o.isContainerVisible)(this.container)},enumerable:!1,configurable:!0}),e.prototype.process=function(){var e;if(this.isContainerVisible&&!this.model.isResponsivenessDisabled){this.isInitialized||(this.model.setActionsMode("large"),this.calcItemsSizes(),this.isInitialized=!0);var t=this.dotsItemSize;if(!this.dotsItemSize){var n=null===(e=this.container)||void 0===e?void 0:e.querySelector(".sv-dots");t=n&&this.calcItemSize(n)||this.dotsSizeConst}this.model.fit(this.getAvailableSpace(),t)}},e.prototype.dispose=function(){this.model.updateCallback=void 0,this.resizeObserver&&this.resizeObserver.disconnect()},e}(),a=function(e){function t(t,n,r,o,i){void 0===i&&(i=40);var s=e.call(this,t,n,r,o)||this;return s.minDimensionConst=i,s.recalcMinDimensionConst=!1,s}return i(t,e),t.prototype.getDimensions=function(){return{scroll:this.container.scrollHeight,offset:this.container.offsetHeight}},t.prototype.getAvailableSpace=function(){var e=this.getComputedStyle(this.container),t=this.container.offsetHeight;return"border-box"===e.boxSizing&&(t-=parseFloat(e.paddingTop)+parseFloat(e.paddingBottom)),t},t.prototype.calcItemSize=function(e){return e.offsetHeight},t.prototype.calcActionDimensions=function(e,t){e.maxDimension=this.calcItemSize(t),e.minDimension=this.calcItemSize(t)},t}(s)},"./src/utils/tooltip.ts":function(e,t,n){"use strict";n.r(t),n.d(t,"TooltipManager",(function(){return r}));var r=function(){function e(e){var t=this;this.tooltipElement=e,this.onMouseMoveCallback=function(e){t.tooltipElement.style.left=e.clientX+12+"px",t.tooltipElement.style.top=e.clientY+12+"px"},this.targetElement=e.parentElement,this.targetElement.addEventListener("mousemove",this.onMouseMoveCallback)}return e.prototype.dispose=function(){this.targetElement.removeEventListener("mousemove",this.onMouseMoveCallback)},e}()},"./src/utils/utils.ts":function(e,t,n){"use strict";n.r(t),n.d(t,"unwrap",(function(){return v})),n.d(t,"getRenderedSize",(function(){return b})),n.d(t,"getRenderedStyleSize",(function(){return C})),n.d(t,"doKey2ClickBlur",(function(){return x})),n.d(t,"doKey2ClickUp",(function(){return P})),n.d(t,"doKey2ClickDown",(function(){return S})),n.d(t,"sanitizeEditableContent",(function(){return A})),n.d(t,"Logger",(function(){return M})),n.d(t,"mergeValues",(function(){return k})),n.d(t,"getElementWidth",(function(){return _})),n.d(t,"isContainerVisible",(function(){return R})),n.d(t,"classesToSelector",(function(){return V})),n.d(t,"compareVersions",(function(){return o})),n.d(t,"confirmAction",(function(){return i})),n.d(t,"detectIEOrEdge",(function(){return a})),n.d(t,"detectIEBrowser",(function(){return s})),n.d(t,"loadFileFromBase64",(function(){return l})),n.d(t,"isMobile",(function(){return u})),n.d(t,"isShadowDOM",(function(){return c})),n.d(t,"getElement",(function(){return p})),n.d(t,"isElementVisible",(function(){return d})),n.d(t,"findScrollableParent",(function(){return h})),n.d(t,"scrollElementByChildId",(function(){return f})),n.d(t,"navigateToUrl",(function(){return m})),n.d(t,"createSvg",(function(){return y})),n.d(t,"getIconNameFromProxy",(function(){return g})),n.d(t,"increaseHeightByContent",(function(){return E})),n.d(t,"getOriginalEvent",(function(){return T})),n.d(t,"preventDefaults",(function(){return O})),n.d(t,"findParentByClassNames",(function(){return D})),n.d(t,"getFirstVisibleChild",(function(){return I}));var r=n("./src/settings.ts");function o(e,t){for(var n=/(\.0+)+$/,r=e.replace(n,"").split("."),o=t.replace(n,"").split("."),i=Math.min(r.length,o.length),s=0;s<i;s++){var a=parseInt(r[s],10)-parseInt(o[s],10);if(a)return a}return r.length-o.length}function i(e){return r.settings&&r.settings.confirmActionFunc?r.settings.confirmActionFunc(e):confirm(e)}function s(){if("undefined"==typeof window)return!1;var e=window.navigator.userAgent,t=e.indexOf("MSIE "),n=e.indexOf("Trident/");return t>-1||n>-1}function a(){if("undefined"==typeof window)return!1;if(void 0===a.isIEOrEdge){var e=window.navigator.userAgent,t=e.indexOf("MSIE "),n=e.indexOf("Trident/"),r=e.indexOf("Edge/");a.isIEOrEdge=r>0||n>0||t>0}return a.isIEOrEdge}function l(e,t){try{for(var n=atob(e.split(",")[1]),r=e.split(",")[0].split(":")[1].split(";")[0],o=new ArrayBuffer(n.length),i=new Uint8Array(o),s=0;s<n.length;s++)i[s]=n.charCodeAt(s);var a=new Blob([o],{type:r});"undefined"!=typeof window&&window.navigator&&window.navigator.msSaveBlob&&window.navigator.msSaveOrOpenBlob(a,t)}catch(e){}}function u(){return"undefined"!=typeof window&&void 0!==window.orientation}var c=function(e){return!!e&&!(!("host"in e)||!e.host)},p=function(e){var t=r.settings.environment.root;return"string"==typeof e?t.getElementById(e):e};function d(e,t){if(void 0===t&&(t=0),void 0===r.settings.environment)return!1;var n=r.settings.environment.root,o=c(n)?n.host.clientHeight:n.documentElement.clientHeight,i=e.getBoundingClientRect(),s=-t,a=Math.max(o,window.innerHeight)+t,l=i.top,u=i.bottom;return Math.max(s,l)<=Math.min(a,u)}function h(e){var t=r.settings.environment.root;return e?e.scrollHeight>e.clientHeight&&("scroll"===getComputedStyle(e).overflowY||"auto"===getComputedStyle(e).overflowY)||e.scrollWidth>e.clientWidth&&("scroll"===getComputedStyle(e).overflowX||"auto"===getComputedStyle(e).overflowX)?e:h(e.parentElement):c(t)?t.host:t.documentElement}function f(e){var t=r.settings.environment;if(t){var n=t.root.getElementById(e);if(n){var o=h(n);o&&o.dispatchEvent(new CustomEvent("scroll"))}}}function m(e){e&&"undefined"!=typeof window&&window.location&&(window.location.href=e)}function g(e){return e&&r.settings.customIcons[e]||e}function y(e,t,n,r,o,i){if(o){"auto"!==e&&(o.style.width=(e||t||16)+"px",o.style.height=(e||n||16)+"px");var s=o.childNodes[0],a=g(r);s.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href","#"+a);var l=o.getElementsByTagName("title")[0];i?(l||(l=document.createElementNS("http://www.w3.org/2000/svg","title"),o.appendChild(l)),l.textContent=i):l&&o.removeChild(l)}}function v(e){return"function"!=typeof e?e:e()}function b(e){if("string"==typeof e){if(!isNaN(Number(e)))return Number(e);if(e.includes("px"))return parseFloat(e)}if("number"==typeof e)return e}function C(e){if(void 0===b(e))return e}var w="sv-focused--by-key";function x(e){var t=e.target;t&&t.classList&&t.classList.remove(w)}function P(e,t){if(!e.target||"true"!==e.target.contentEditable){var n=e.target;if(n){var r=e.which||e.keyCode;if(9!==r){if(t){if(!t.__keyDownReceived)return;t.__keyDownReceived=!1}13===r||32===r?n.click&&n.click():t&&!t.processEsc||27!==r||n.blur&&n.blur()}else n.classList&&!n.classList.contains(w)&&n.classList.add(w)}}}function S(e,t){if(void 0===t&&(t={processEsc:!0}),t&&(t.__keyDownReceived=!0),!e.target||"true"!==e.target.contentEditable){var n=e.which||e.keyCode,r=[13,32];t.processEsc&&r.push(27),-1!==r.indexOf(n)&&e.preventDefault()}}function E(e,t){if(e){t||(t=function(e){return window.getComputedStyle(e)});var n=t(e);e.style.height="auto",e.style.height=e.scrollHeight+parseFloat(n.borderTopWidth)+parseFloat(n.borderBottomWidth)+"px"}}function T(e){return e.originalEvent||e}function O(e){e.preventDefault(),e.stopPropagation()}function V(e){return e.replace(/\s*?([\w-]+)\s*?/g,".$1")}function _(e){return getComputedStyle?Number.parseFloat(getComputedStyle(e).width):e.offsetWidth}function R(e){return!!(e.offsetWidth||e.offsetHeight||e.getClientRects().length)}function I(e){for(var t,n=0;n<e.children.length;n++)t||"none"===getComputedStyle(e.children[n]).display||(t=e.children[n]);return t}function D(e,t){if(e)return t.every((function(t){return!t||e.classList.contains(t)}))?e:D(e.parentElement,t)}function A(e){if(window.getSelection&&document.createRange&&e.childNodes.length>0){var t=document.getSelection(),n=t.getRangeAt(0);n.setStart(n.endContainer,n.endOffset),n.setEndAfter(e.lastChild),t.removeAllRanges(),t.addRange(n);var r=t.toString().replace(/\n/g,"").length;e.innerText=e.innerText.replace(/\n/g,""),(n=document.createRange()).setStart(e.childNodes[0],e.innerText.length-r),n.collapse(!0),t.removeAllRanges(),t.addRange(n)}}function k(e,t){if(t&&e&&"object"==typeof t)for(var n in e){var r=e[n];!Array.isArray(r)&&r&&"object"==typeof r?(t[n]&&"object"==typeof t[n]||(t[n]={}),k(r,t[n])):t[n]=r}}var M=function(){function e(){this._result=""}return e.prototype.log=function(e){this._result+="->"+e},Object.defineProperty(e.prototype,"result",{get:function(){return this._result},enumerable:!1,configurable:!0}),e}()},"./src/validator.ts":function(e,t,n){"use strict";n.r(t),n.d(t,"ValidatorResult",(function(){return c})),n.d(t,"SurveyValidator",(function(){return p})),n.d(t,"ValidatorRunner",(function(){return d})),n.d(t,"NumericValidator",(function(){return h})),n.d(t,"TextValidator",(function(){return f})),n.d(t,"AnswerCountValidator",(function(){return m})),n.d(t,"RegexValidator",(function(){return g})),n.d(t,"EmailValidator",(function(){return y})),n.d(t,"ExpressionValidator",(function(){return v}));var r,o=n("./src/base.ts"),i=n("./src/error.ts"),s=n("./src/jsonobject.ts"),a=n("./src/conditions.ts"),l=n("./src/helpers.ts"),u=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),c=function(e,t){void 0===t&&(t=null),this.value=e,this.error=t},p=function(e){function t(){var t=e.call(this)||this;return t.createLocalizableString("text",t,!0),t}return u(t,e),t.prototype.getSurvey=function(e){return void 0===e&&(e=!1),this.errorOwner&&this.errorOwner.getSurvey?this.errorOwner.getSurvey():null},Object.defineProperty(t.prototype,"text",{get:function(){return this.getLocalizableStringText("text")},set:function(e){this.setLocalizableStringText("text",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isValidateAllValues",{get:function(){return!1},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locText",{get:function(){return this.getLocalizableString("text")},enumerable:!1,configurable:!0}),t.prototype.getErrorText=function(e){return this.text?this.text:this.getDefaultErrorText(e)},t.prototype.getDefaultErrorText=function(e){return""},t.prototype.validate=function(e,t,n,r){return void 0===t&&(t=null),void 0===n&&(n=null),void 0===r&&(r=null),null},Object.defineProperty(t.prototype,"isRunning",{get:function(){return!1},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isAsync",{get:function(){return!1},enumerable:!1,configurable:!0}),t.prototype.getLocale=function(){return this.errorOwner?this.errorOwner.getLocale():""},t.prototype.getMarkdownHtml=function(e,t){return this.errorOwner?this.errorOwner.getMarkdownHtml(e,t):void 0},t.prototype.getRenderer=function(e){return this.errorOwner?this.errorOwner.getRenderer(e):null},t.prototype.getRendererContext=function(e){return this.errorOwner?this.errorOwner.getRendererContext(e):e},t.prototype.getProcessedText=function(e){return this.errorOwner?this.errorOwner.getProcessedText(e):e},t.prototype.createCustomError=function(e){var t=this,n=new i.CustomError(this.getErrorText(e),this.errorOwner);return n.onUpdateErrorTextCallback=function(n){return n.text=t.getErrorText(e)},n},t.prototype.toString=function(){var e=this.getType().replace("validator","");return this.text&&(e+=", "+this.text),e},t}(o.Base),d=function(){function e(){}return e.prototype.run=function(e){var t=this,n=[],r=null,o=null;this.prepareAsyncValidators();for(var i=[],s=e.getValidators(),a=0;a<s.length;a++){var l=s[a];!r&&l.isValidateAllValues&&(r=e.getDataFilteredValues(),o=e.getDataFilteredProperties()),l.isAsync&&(this.asyncValidators.push(l),l.onAsyncCompleted=function(e){if(e&&e.error&&i.push(e.error),t.onAsyncCompleted){for(var n=0;n<t.asyncValidators.length;n++)if(t.asyncValidators[n].isRunning)return;t.onAsyncCompleted(i)}})}for(s=e.getValidators(),a=0;a<s.length;a++){var u=(l=s[a]).validate(e.validatedValue,e.getValidatorTitle(),r,o);u&&u.error&&n.push(u.error)}return 0==this.asyncValidators.length&&this.onAsyncCompleted&&this.onAsyncCompleted([]),n},e.prototype.prepareAsyncValidators=function(){if(this.asyncValidators)for(var e=0;e<this.asyncValidators.length;e++)this.asyncValidators[e].onAsyncCompleted=null;this.asyncValidators=[]},e}(),h=function(e){function t(t,n){void 0===t&&(t=null),void 0===n&&(n=null);var r=e.call(this)||this;return r.minValue=t,r.maxValue=n,r}return u(t,e),t.prototype.getType=function(){return"numericvalidator"},t.prototype.validate=function(e,t,n,r){if(void 0===t&&(t=null),void 0===n&&(n=null),void 0===r&&(r=null),this.isValueEmpty(e))return null;if(!l.Helpers.isNumber(e))return new c(null,new i.RequreNumericError(this.text,this.errorOwner));var o=new c(l.Helpers.getNumber(e));return null!==this.minValue&&this.minValue>o.value||null!==this.maxValue&&this.maxValue<o.value?(o.error=this.createCustomError(t),o):"number"==typeof e?null:o},t.prototype.getDefaultErrorText=function(e){var t=e||this.getLocalizationString("value");return null!==this.minValue&&null!==this.maxValue?this.getLocalizationFormatString("numericMinMax",t,this.minValue,this.maxValue):null!==this.minValue?this.getLocalizationFormatString("numericMin",t,this.minValue):this.getLocalizationFormatString("numericMax",t,this.maxValue)},Object.defineProperty(t.prototype,"minValue",{get:function(){return this.getPropertyValue("minValue")},set:function(e){this.setPropertyValue("minValue",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"maxValue",{get:function(){return this.getPropertyValue("maxValue")},set:function(e){this.setPropertyValue("maxValue",e)},enumerable:!1,configurable:!0}),t}(p),f=function(e){function t(){return e.call(this)||this}return u(t,e),t.prototype.getType=function(){return"textvalidator"},t.prototype.validate=function(e,t,n,r){return void 0===t&&(t=null),void 0===n&&(n=null),void 0===r&&(r=null),this.isValueEmpty(e)?null:this.allowDigits||/^[A-Za-z\s\.]*$/.test(e)?this.minLength>0&&e.length<this.minLength||this.maxLength>0&&e.length>this.maxLength?new c(null,this.createCustomError(t)):null:new c(null,this.createCustomError(t))},t.prototype.getDefaultErrorText=function(e){return this.minLength>0&&this.maxLength>0?this.getLocalizationFormatString("textMinMaxLength",this.minLength,this.maxLength):this.minLength>0?this.getLocalizationFormatString("textMinLength",this.minLength):this.getLocalizationFormatString("textMaxLength",this.maxLength)},Object.defineProperty(t.prototype,"minLength",{get:function(){return this.getPropertyValue("minLength")},set:function(e){this.setPropertyValue("minLength",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"maxLength",{get:function(){return this.getPropertyValue("maxLength")},set:function(e){this.setPropertyValue("maxLength",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"allowDigits",{get:function(){return this.getPropertyValue("allowDigits")},set:function(e){this.setPropertyValue("allowDigits",e)},enumerable:!1,configurable:!0}),t}(p),m=function(e){function t(t,n){void 0===t&&(t=null),void 0===n&&(n=null);var r=e.call(this)||this;return r.minCount=t,r.maxCount=n,r}return u(t,e),t.prototype.getType=function(){return"answercountvalidator"},t.prototype.validate=function(e,t,n,r){if(void 0===t&&(t=null),void 0===n&&(n=null),void 0===r&&(r=null),null==e||e.constructor!=Array)return null;var o=e.length;return 0==o?null:this.minCount&&o<this.minCount?new c(null,this.createCustomError(this.getLocalizationFormatString("minSelectError",this.minCount))):this.maxCount&&o>this.maxCount?new c(null,this.createCustomError(this.getLocalizationFormatString("maxSelectError",this.maxCount))):null},t.prototype.getDefaultErrorText=function(e){return e},Object.defineProperty(t.prototype,"minCount",{get:function(){return this.getPropertyValue("minCount")},set:function(e){this.setPropertyValue("minCount",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"maxCount",{get:function(){return this.getPropertyValue("maxCount")},set:function(e){this.setPropertyValue("maxCount",e)},enumerable:!1,configurable:!0}),t}(p),g=function(e){function t(t){void 0===t&&(t=null);var n=e.call(this)||this;return n.regex=t,n}return u(t,e),t.prototype.getType=function(){return"regexvalidator"},t.prototype.validate=function(e,t,n,r){if(void 0===t&&(t=null),void 0===n&&(n=null),void 0===r&&(r=null),!this.regex||this.isValueEmpty(e))return null;var o=new RegExp(this.regex);if(Array.isArray(e))for(var i=0;i<e.length;i++){var s=this.hasError(o,e[i],t);if(s)return s}return this.hasError(o,e,t)},t.prototype.hasError=function(e,t,n){return e.test(t)?null:new c(t,this.createCustomError(n))},Object.defineProperty(t.prototype,"regex",{get:function(){return this.getPropertyValue("regex")},set:function(e){this.setPropertyValue("regex",e)},enumerable:!1,configurable:!0}),t}(p),y=function(e){function t(){var t=e.call(this)||this;return t.re=/^(([^<>()\[\]\.,;:\s@\"]+(\.[^<>()\[\]\.,;:\s@\"]+)*)|(\".+\"))@(([^<>()=[\]\.,;:\s@\"]+\.)+[^<>()=[\]\.,;:\s@\"]{2,})$/i,t}return u(t,e),t.prototype.getType=function(){return"emailvalidator"},t.prototype.validate=function(e,t,n,r){return void 0===t&&(t=null),void 0===n&&(n=null),void 0===r&&(r=null),e?this.re.test(e)?null:new c(e,this.createCustomError(t)):null},t.prototype.getDefaultErrorText=function(e){return this.getLocalizationString("invalidEmail")},t}(p),v=function(e){function t(t){void 0===t&&(t=null);var n=e.call(this)||this;return n.conditionRunner=null,n.isRunningValue=!1,n.expression=t,n}return u(t,e),t.prototype.getType=function(){return"expressionvalidator"},Object.defineProperty(t.prototype,"isValidateAllValues",{get:function(){return!0},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isAsync",{get:function(){return!!this.ensureConditionRunner()&&this.conditionRunner.isAsync},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isRunning",{get:function(){return this.isRunningValue},enumerable:!1,configurable:!0}),t.prototype.validate=function(e,t,n,r){var o=this;if(void 0===t&&(t=null),void 0===n&&(n=null),void 0===r&&(r=null),!this.ensureConditionRunner())return null;this.conditionRunner.onRunComplete=function(n){o.isRunningValue=!1,o.onAsyncCompleted&&o.onAsyncCompleted(o.generateError(n,e,t))},this.isRunningValue=!0;var i=this.conditionRunner.run(n,r);return this.conditionRunner.isAsync?null:(this.isRunningValue=!1,this.generateError(i,e,t))},t.prototype.generateError=function(e,t,n){return e?null:new c(t,this.createCustomError(n))},t.prototype.getDefaultErrorText=function(e){return this.getLocalizationFormatString("invalidExpression",this.expression)},t.prototype.ensureConditionRunner=function(){return this.conditionRunner?(this.conditionRunner.expression=this.expression,!0):!!this.expression&&(this.conditionRunner=new a.ConditionRunner(this.expression),!0)},Object.defineProperty(t.prototype,"expression",{get:function(){return this.getPropertyValue("expression")},set:function(e){this.setPropertyValue("expression",e)},enumerable:!1,configurable:!0}),t}(p);s.Serializer.addClass("surveyvalidator",[{name:"text",serializationProperty:"locText"}]),s.Serializer.addClass("numericvalidator",["minValue:number","maxValue:number"],(function(){return new h}),"surveyvalidator"),s.Serializer.addClass("textvalidator",[{name:"minLength:number",default:0},{name:"maxLength:number",default:0},{name:"allowDigits:boolean",default:!0}],(function(){return new f}),"surveyvalidator"),s.Serializer.addClass("answercountvalidator",["minCount:number","maxCount:number"],(function(){return new m}),"surveyvalidator"),s.Serializer.addClass("regexvalidator",["regex"],(function(){return new g}),"surveyvalidator"),s.Serializer.addClass("emailvalidator",[],(function(){return new y}),"surveyvalidator"),s.Serializer.addClass("expressionvalidator",["expression:condition"],(function(){return new v}),"surveyvalidator")}})},e.exports=t()},352:function(e,t,n){var r;r=function(e,t,n){return function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)n.d(r,o,function(t){return e[t]}.bind(null,o));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s="./src/entries/react-ui.ts")}({"./src/entries/core-export.ts":function(e,t,n){"use strict";n.r(t);var r=n("survey-core");n.d(t,"SurveyModel",(function(){return r.SurveyModel})),n.d(t,"SurveyWindowModel",(function(){return r.SurveyWindowModel})),n.d(t,"settings",(function(){return r.settings})),n.d(t,"surveyLocalization",(function(){return r.surveyLocalization})),n.d(t,"surveyStrings",(function(){return r.surveyStrings}))},"./src/entries/react-ui-model.ts":function(e,t,n){"use strict";n.r(t);var r=n("./src/react/reactSurvey.tsx");n.d(t,"Survey",(function(){return r.Survey})),n.d(t,"attachKey2click",(function(){return r.attachKey2click}));var o=n("./src/react/reactsurveymodel.tsx");n.d(t,"ReactSurveyElementsWrapper",(function(){return o.ReactSurveyElementsWrapper}));var i=n("./src/react/reactSurveyNavigationBase.tsx");n.d(t,"SurveyNavigationBase",(function(){return i.SurveyNavigationBase}));var s=n("./src/react/reacttimerpanel.tsx");n.d(t,"SurveyTimerPanel",(function(){return s.SurveyTimerPanel}));var a=n("./src/react/page.tsx");n.d(t,"SurveyPage",(function(){return a.SurveyPage}));var l=n("./src/react/row.tsx");n.d(t,"SurveyRow",(function(){return l.SurveyRow}));var u=n("./src/react/panel.tsx");n.d(t,"SurveyPanel",(function(){return u.SurveyPanel}));var c=n("./src/react/flow-panel.tsx");n.d(t,"SurveyFlowPanel",(function(){return c.SurveyFlowPanel}));var p=n("./src/react/reactquestion.tsx");n.d(t,"SurveyQuestion",(function(){return p.SurveyQuestion})),n.d(t,"SurveyElementErrors",(function(){return p.SurveyElementErrors})),n.d(t,"SurveyQuestionAndErrorsCell",(function(){return p.SurveyQuestionAndErrorsCell}));var d=n("./src/react/reactquestion_element.tsx");n.d(t,"ReactSurveyElement",(function(){return d.ReactSurveyElement})),n.d(t,"SurveyElementBase",(function(){return d.SurveyElementBase})),n.d(t,"SurveyQuestionElementBase",(function(){return d.SurveyQuestionElementBase}));var h=n("./src/react/reactquestion_comment.tsx");n.d(t,"SurveyQuestionCommentItem",(function(){return h.SurveyQuestionCommentItem})),n.d(t,"SurveyQuestionComment",(function(){return h.SurveyQuestionComment}));var f=n("./src/react/reactquestion_checkbox.tsx");n.d(t,"SurveyQuestionCheckbox",(function(){return f.SurveyQuestionCheckbox})),n.d(t,"SurveyQuestionCheckboxItem",(function(){return f.SurveyQuestionCheckboxItem}));var m=n("./src/react/reactquestion_ranking.tsx");n.d(t,"SurveyQuestionRanking",(function(){return m.SurveyQuestionRanking})),n.d(t,"SurveyQuestionRankingItem",(function(){return m.SurveyQuestionRankingItem}));var g=n("./src/react/components/rating/rating-item.tsx");n.d(t,"RatingItem",(function(){return g.RatingItem}));var y=n("./src/react/components/rating/rating-item-star.tsx");n.d(t,"RatingItemStar",(function(){return y.RatingItemStar}));var v=n("./src/react/components/rating/rating-item-smiley.tsx");n.d(t,"RatingItemSmiley",(function(){return v.RatingItemSmiley}));var b=n("./src/react/tagbox-filter.tsx");n.d(t,"TagboxFilterString",(function(){return b.TagboxFilterString}));var C=n("./src/react/dropdown-item.tsx");n.d(t,"SurveyQuestionOptionItem",(function(){return C.SurveyQuestionOptionItem}));var w=n("./src/react/dropdown-base.tsx");n.d(t,"SurveyQuestionDropdownBase",(function(){return w.SurveyQuestionDropdownBase}));var x=n("./src/react/reactquestion_dropdown.tsx");n.d(t,"SurveyQuestionDropdown",(function(){return x.SurveyQuestionDropdown}));var P=n("./src/react/tagbox-item.tsx");n.d(t,"SurveyQuestionTagboxItem",(function(){return P.SurveyQuestionTagboxItem}));var S=n("./src/react/reactquestion_tagbox.tsx");n.d(t,"SurveyQuestionTagbox",(function(){return S.SurveyQuestionTagbox}));var E=n("./src/react/dropdown-select.tsx");n.d(t,"SurveyQuestionDropdownSelect",(function(){return E.SurveyQuestionDropdownSelect}));var T=n("./src/react/reactquestion_matrix.tsx");n.d(t,"SurveyQuestionMatrix",(function(){return T.SurveyQuestionMatrix})),n.d(t,"SurveyQuestionMatrixRow",(function(){return T.SurveyQuestionMatrixRow}));var O=n("./src/react/reactquestion_html.tsx");n.d(t,"SurveyQuestionHtml",(function(){return O.SurveyQuestionHtml}));var V=n("./src/react/reactquestion_file.tsx");n.d(t,"SurveyQuestionFile",(function(){return V.SurveyQuestionFile}));var _=n("./src/react/reactquestion_multipletext.tsx");n.d(t,"SurveyQuestionMultipleText",(function(){return _.SurveyQuestionMultipleText}));var R=n("./src/react/reactquestion_radiogroup.tsx");n.d(t,"SurveyQuestionRadiogroup",(function(){return R.SurveyQuestionRadiogroup})),n.d(t,"SurveyQuestionRadioItem",(function(){return R.SurveyQuestionRadioItem}));var I=n("./src/react/reactquestion_text.tsx");n.d(t,"SurveyQuestionText",(function(){return I.SurveyQuestionText}));var D=n("./src/react/boolean.tsx");n.d(t,"SurveyQuestionBoolean",(function(){return D.SurveyQuestionBoolean}));var A=n("./src/react/boolean-checkbox.tsx");n.d(t,"SurveyQuestionBooleanCheckbox",(function(){return A.SurveyQuestionBooleanCheckbox}));var k=n("./src/react/boolean-radio.tsx");n.d(t,"SurveyQuestionBooleanRadio",(function(){return k.SurveyQuestionBooleanRadio}));var M=n("./src/react/reactquestion_empty.tsx");n.d(t,"SurveyQuestionEmpty",(function(){return M.SurveyQuestionEmpty}));var N=n("./src/react/reactquestion_matrixdropdownbase.tsx");n.d(t,"SurveyQuestionMatrixDropdownCell",(function(){return N.SurveyQuestionMatrixDropdownCell})),n.d(t,"SurveyQuestionMatrixDropdownBase",(function(){return N.SurveyQuestionMatrixDropdownBase}));var L=n("./src/react/reactquestion_matrixdropdown.tsx");n.d(t,"SurveyQuestionMatrixDropdown",(function(){return L.SurveyQuestionMatrixDropdown}));var j=n("./src/react/reactquestion_matrixdynamic.tsx");n.d(t,"SurveyQuestionMatrixDynamic",(function(){return j.SurveyQuestionMatrixDynamic})),n.d(t,"SurveyQuestionMatrixDynamicAddButton",(function(){return j.SurveyQuestionMatrixDynamicAddButton}));var q=n("./src/react/reactquestion_paneldynamic.tsx");n.d(t,"SurveyQuestionPanelDynamic",(function(){return q.SurveyQuestionPanelDynamic}));var F=n("./src/react/reactSurveyProgress.tsx");n.d(t,"SurveyProgress",(function(){return F.SurveyProgress}));var B=n("./src/react/reactSurveyProgressButtons.tsx");n.d(t,"SurveyProgressButtons",(function(){return B.SurveyProgressButtons}));var Q=n("./src/react/reactSurveyProgressToc.tsx");n.d(t,"SurveyProgressToc",(function(){return Q.SurveyProgressToc}));var H=n("./src/react/reactquestion_rating.tsx");n.d(t,"SurveyQuestionRating",(function(){return H.SurveyQuestionRating}));var z=n("./src/react/rating-dropdown.tsx");n.d(t,"SurveyQuestionRatingDropdown",(function(){return z.SurveyQuestionRatingDropdown}));var U=n("./src/react/reactquestion_expression.tsx");n.d(t,"SurveyQuestionExpression",(function(){return U.SurveyQuestionExpression}));var W=n("./src/react/react-popup-survey.tsx");n.d(t,"PopupSurvey",(function(){return W.PopupSurvey})),n.d(t,"SurveyWindow",(function(){return W.SurveyWindow}));var G=n("./src/react/reactquestion_factory.tsx");n.d(t,"ReactQuestionFactory",(function(){return G.ReactQuestionFactory}));var $=n("./src/react/element-factory.tsx");n.d(t,"ReactElementFactory",(function(){return $.ReactElementFactory}));var J=n("./src/react/imagepicker.tsx");n.d(t,"SurveyQuestionImagePicker",(function(){return J.SurveyQuestionImagePicker}));var K=n("./src/react/image.tsx");n.d(t,"SurveyQuestionImage",(function(){return K.SurveyQuestionImage}));var Y=n("./src/react/signaturepad.tsx");n.d(t,"SurveyQuestionSignaturePad",(function(){return Y.SurveyQuestionSignaturePad}));var X=n("./src/react/reactquestion_buttongroup.tsx");n.d(t,"SurveyQuestionButtonGroup",(function(){return X.SurveyQuestionButtonGroup}));var Z=n("./src/react/reactquestion_custom.tsx");n.d(t,"SurveyQuestionCustom",(function(){return Z.SurveyQuestionCustom})),n.d(t,"SurveyQuestionComposite",(function(){return Z.SurveyQuestionComposite}));var ee=n("./src/react/components/popup/popup.tsx");n.d(t,"Popup",(function(){return ee.Popup}));var te=n("./src/react/components/list/list.tsx");n.d(t,"List",(function(){return te.List}));var ne=n("./src/react/components/title/title-actions.tsx");n.d(t,"TitleActions",(function(){return ne.TitleActions}));var re=n("./src/react/components/title/title-element.tsx");n.d(t,"TitleElement",(function(){return re.TitleElement}));var oe=n("./src/react/components/action-bar/action-bar.tsx");n.d(t,"SurveyActionBar",(function(){return oe.SurveyActionBar}));var ie=n("./src/react/components/survey-header/logo-image.tsx");n.d(t,"LogoImage",(function(){return ie.LogoImage}));var se=n("./src/react/components/survey-header/survey-header.tsx");n.d(t,"SurveyHeader",(function(){return se.SurveyHeader}));var ae=n("./src/react/components/svg-icon/svg-icon.tsx");n.d(t,"SvgIcon",(function(){return ae.SvgIcon}));var le=n("./src/react/components/matrix-actions/remove-button/remove-button.tsx");n.d(t,"SurveyQuestionMatrixDynamicRemoveButton",(function(){return le.SurveyQuestionMatrixDynamicRemoveButton}));var ue=n("./src/react/components/matrix-actions/detail-button/detail-button.tsx");n.d(t,"SurveyQuestionMatrixDetailButton",(function(){return ue.SurveyQuestionMatrixDetailButton}));var ce=n("./src/react/components/matrix-actions/drag-drop-icon/drag-drop-icon.tsx");n.d(t,"SurveyQuestionMatrixDynamicDragDropIcon",(function(){return ce.SurveyQuestionMatrixDynamicDragDropIcon}));var pe=n("./src/react/components/paneldynamic-actions/paneldynamic-add-btn.tsx");n.d(t,"SurveyQuestionPanelDynamicAddButton",(function(){return pe.SurveyQuestionPanelDynamicAddButton}));var de=n("./src/react/components/paneldynamic-actions/paneldynamic-remove-btn.tsx");n.d(t,"SurveyQuestionPanelDynamicRemoveButton",(function(){return de.SurveyQuestionPanelDynamicRemoveButton}));var he=n("./src/react/components/paneldynamic-actions/paneldynamic-prev-btn.tsx");n.d(t,"SurveyQuestionPanelDynamicPrevButton",(function(){return he.SurveyQuestionPanelDynamicPrevButton}));var fe=n("./src/react/components/paneldynamic-actions/paneldynamic-next-btn.tsx");n.d(t,"SurveyQuestionPanelDynamicNextButton",(function(){return fe.SurveyQuestionPanelDynamicNextButton}));var me=n("./src/react/components/paneldynamic-actions/paneldynamic-progress-text.tsx");n.d(t,"SurveyQuestionPanelDynamicProgressText",(function(){return me.SurveyQuestionPanelDynamicProgressText}));var ge=n("./src/react/components/survey-actions/survey-nav-button.tsx");n.d(t,"SurveyNavigationButton",(function(){return ge.SurveyNavigationButton}));var ye=n("./src/react/components/matrix/row.tsx");n.d(t,"MatrixRow",(function(){return ye.MatrixRow}));var ve=n("./src/react/components/skeleton.tsx");n.d(t,"Skeleton",(function(){return ve.Skeleton}));var be=n("./src/react/components/notifier.tsx");n.d(t,"NotifierComponent",(function(){return be.NotifierComponent}));var Ce=n("./src/react/components/components-container.tsx");n.d(t,"ComponentsContainer",(function(){return Ce.ComponentsContainer}));var we=n("./src/react/components/character-counter.tsx");n.d(t,"CharacterCounterComponent",(function(){return we.CharacterCounterComponent}));var xe=n("./src/react/string-viewer.tsx");n.d(t,"SurveyLocStringViewer",(function(){return xe.SurveyLocStringViewer}));var Pe=n("./src/react/string-editor.tsx");n.d(t,"SurveyLocStringEditor",(function(){return Pe.SurveyLocStringEditor}))},"./src/entries/react-ui.ts":function(e,t,n){"use strict";n.r(t);var r=n("./src/entries/react-ui-model.ts");n.d(t,"Survey",(function(){return r.Survey})),n.d(t,"attachKey2click",(function(){return r.attachKey2click})),n.d(t,"ReactSurveyElementsWrapper",(function(){return r.ReactSurveyElementsWrapper})),n.d(t,"SurveyNavigationBase",(function(){return r.SurveyNavigationBase})),n.d(t,"SurveyTimerPanel",(function(){return r.SurveyTimerPanel})),n.d(t,"SurveyPage",(function(){return r.SurveyPage})),n.d(t,"SurveyRow",(function(){return r.SurveyRow})),n.d(t,"SurveyPanel",(function(){return r.SurveyPanel})),n.d(t,"SurveyFlowPanel",(function(){return r.SurveyFlowPanel})),n.d(t,"SurveyQuestion",(function(){return r.SurveyQuestion})),n.d(t,"SurveyElementErrors",(function(){return r.SurveyElementErrors})),n.d(t,"SurveyQuestionAndErrorsCell",(function(){return r.SurveyQuestionAndErrorsCell})),n.d(t,"ReactSurveyElement",(function(){return r.ReactSurveyElement})),n.d(t,"SurveyElementBase",(function(){return r.SurveyElementBase})),n.d(t,"SurveyQuestionElementBase",(function(){return r.SurveyQuestionElementBase})),n.d(t,"SurveyQuestionCommentItem",(function(){return r.SurveyQuestionCommentItem})),n.d(t,"SurveyQuestionComment",(function(){return r.SurveyQuestionComment})),n.d(t,"SurveyQuestionCheckbox",(function(){return r.SurveyQuestionCheckbox})),n.d(t,"SurveyQuestionCheckboxItem",(function(){return r.SurveyQuestionCheckboxItem})),n.d(t,"SurveyQuestionRanking",(function(){return r.SurveyQuestionRanking})),n.d(t,"SurveyQuestionRankingItem",(function(){return r.SurveyQuestionRankingItem})),n.d(t,"RatingItem",(function(){return r.RatingItem})),n.d(t,"RatingItemStar",(function(){return r.RatingItemStar})),n.d(t,"RatingItemSmiley",(function(){return r.RatingItemSmiley})),n.d(t,"TagboxFilterString",(function(){return r.TagboxFilterString})),n.d(t,"SurveyQuestionOptionItem",(function(){return r.SurveyQuestionOptionItem})),n.d(t,"SurveyQuestionDropdownBase",(function(){return r.SurveyQuestionDropdownBase})),n.d(t,"SurveyQuestionDropdown",(function(){return r.SurveyQuestionDropdown})),n.d(t,"SurveyQuestionTagboxItem",(function(){return r.SurveyQuestionTagboxItem})),n.d(t,"SurveyQuestionTagbox",(function(){return r.SurveyQuestionTagbox})),n.d(t,"SurveyQuestionDropdownSelect",(function(){return r.SurveyQuestionDropdownSelect})),n.d(t,"SurveyQuestionMatrix",(function(){return r.SurveyQuestionMatrix})),n.d(t,"SurveyQuestionMatrixRow",(function(){return r.SurveyQuestionMatrixRow})),n.d(t,"SurveyQuestionHtml",(function(){return r.SurveyQuestionHtml})),n.d(t,"SurveyQuestionFile",(function(){return r.SurveyQuestionFile})),n.d(t,"SurveyQuestionMultipleText",(function(){return r.SurveyQuestionMultipleText})),n.d(t,"SurveyQuestionRadiogroup",(function(){return r.SurveyQuestionRadiogroup})),n.d(t,"SurveyQuestionRadioItem",(function(){return r.SurveyQuestionRadioItem})),n.d(t,"SurveyQuestionText",(function(){return r.SurveyQuestionText})),n.d(t,"SurveyQuestionBoolean",(function(){return r.SurveyQuestionBoolean})),n.d(t,"SurveyQuestionBooleanCheckbox",(function(){return r.SurveyQuestionBooleanCheckbox})),n.d(t,"SurveyQuestionBooleanRadio",(function(){return r.SurveyQuestionBooleanRadio})),n.d(t,"SurveyQuestionEmpty",(function(){return r.SurveyQuestionEmpty})),n.d(t,"SurveyQuestionMatrixDropdownCell",(function(){return r.SurveyQuestionMatrixDropdownCell})),n.d(t,"SurveyQuestionMatrixDropdownBase",(function(){return r.SurveyQuestionMatrixDropdownBase})),n.d(t,"SurveyQuestionMatrixDropdown",(function(){return r.SurveyQuestionMatrixDropdown})),n.d(t,"SurveyQuestionMatrixDynamic",(function(){return r.SurveyQuestionMatrixDynamic})),n.d(t,"SurveyQuestionMatrixDynamicAddButton",(function(){return r.SurveyQuestionMatrixDynamicAddButton})),n.d(t,"SurveyQuestionPanelDynamic",(function(){return r.SurveyQuestionPanelDynamic})),n.d(t,"SurveyProgress",(function(){return r.SurveyProgress})),n.d(t,"SurveyProgressButtons",(function(){return r.SurveyProgressButtons})),n.d(t,"SurveyProgressToc",(function(){return r.SurveyProgressToc})),n.d(t,"SurveyQuestionRating",(function(){return r.SurveyQuestionRating})),n.d(t,"SurveyQuestionRatingDropdown",(function(){return r.SurveyQuestionRatingDropdown})),n.d(t,"SurveyQuestionExpression",(function(){return r.SurveyQuestionExpression})),n.d(t,"PopupSurvey",(function(){return r.PopupSurvey})),n.d(t,"SurveyWindow",(function(){return r.SurveyWindow})),n.d(t,"ReactQuestionFactory",(function(){return r.ReactQuestionFactory})),n.d(t,"ReactElementFactory",(function(){return r.ReactElementFactory})),n.d(t,"SurveyQuestionImagePicker",(function(){return r.SurveyQuestionImagePicker})),n.d(t,"SurveyQuestionImage",(function(){return r.SurveyQuestionImage})),n.d(t,"SurveyQuestionSignaturePad",(function(){return r.SurveyQuestionSignaturePad})),n.d(t,"SurveyQuestionButtonGroup",(function(){return r.SurveyQuestionButtonGroup})),n.d(t,"SurveyQuestionCustom",(function(){return r.SurveyQuestionCustom})),n.d(t,"SurveyQuestionComposite",(function(){return r.SurveyQuestionComposite})),n.d(t,"Popup",(function(){return r.Popup})),n.d(t,"List",(function(){return r.List})),n.d(t,"TitleActions",(function(){return r.TitleActions})),n.d(t,"TitleElement",(function(){return r.TitleElement})),n.d(t,"SurveyActionBar",(function(){return r.SurveyActionBar})),n.d(t,"LogoImage",(function(){return r.LogoImage})),n.d(t,"SurveyHeader",(function(){return r.SurveyHeader})),n.d(t,"SvgIcon",(function(){return r.SvgIcon})),n.d(t,"SurveyQuestionMatrixDynamicRemoveButton",(function(){return r.SurveyQuestionMatrixDynamicRemoveButton})),n.d(t,"SurveyQuestionMatrixDetailButton",(function(){return r.SurveyQuestionMatrixDetailButton})),n.d(t,"SurveyQuestionMatrixDynamicDragDropIcon",(function(){return r.SurveyQuestionMatrixDynamicDragDropIcon})),n.d(t,"SurveyQuestionPanelDynamicAddButton",(function(){return r.SurveyQuestionPanelDynamicAddButton})),n.d(t,"SurveyQuestionPanelDynamicRemoveButton",(function(){return r.SurveyQuestionPanelDynamicRemoveButton})),n.d(t,"SurveyQuestionPanelDynamicPrevButton",(function(){return r.SurveyQuestionPanelDynamicPrevButton})),n.d(t,"SurveyQuestionPanelDynamicNextButton",(function(){return r.SurveyQuestionPanelDynamicNextButton})),n.d(t,"SurveyQuestionPanelDynamicProgressText",(function(){return r.SurveyQuestionPanelDynamicProgressText})),n.d(t,"SurveyNavigationButton",(function(){return r.SurveyNavigationButton})),n.d(t,"MatrixRow",(function(){return r.MatrixRow})),n.d(t,"Skeleton",(function(){return r.Skeleton})),n.d(t,"NotifierComponent",(function(){return r.NotifierComponent})),n.d(t,"ComponentsContainer",(function(){return r.ComponentsContainer})),n.d(t,"CharacterCounterComponent",(function(){return r.CharacterCounterComponent})),n.d(t,"SurveyLocStringViewer",(function(){return r.SurveyLocStringViewer})),n.d(t,"SurveyLocStringEditor",(function(){return r.SurveyLocStringEditor}));var o=n("./src/entries/core-export.ts");n.d(t,"SurveyModel",(function(){return o.SurveyModel})),n.d(t,"SurveyWindowModel",(function(){return o.SurveyWindowModel})),n.d(t,"settings",(function(){return o.settings})),n.d(t,"surveyLocalization",(function(){return o.surveyLocalization})),n.d(t,"surveyStrings",(function(){return o.surveyStrings}));var i=n("survey-core");n.d(t,"Model",(function(){return i.SurveyModel}));var s=n("./src/utils/responsivity-manager.ts");n.d(t,"ResponsivityManager",(function(){return s.ResponsivityManager})),n.d(t,"VerticalResponsivityManager",(function(){return s.VerticalResponsivityManager}));var a=n("./src/utils/utils.ts");n.d(t,"unwrap",(function(){return a.unwrap})),Object(i.checkLibraryVersion)("1.9.103","survey-react-ui")},"./src/react/boolean-checkbox.tsx":function(e,t,n){"use strict";n.r(t),n.d(t,"SurveyQuestionBooleanCheckbox",(function(){return p}));var r,o=n("react"),i=n("survey-core"),s=n("./src/react/reactquestion_factory.tsx"),a=n("./src/react/boolean.tsx"),l=n("./src/react/components/title/title-actions.tsx"),u=n("./src/react/reactquestion_element.tsx"),c=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),p=function(e){function t(t){return e.call(this,t)||this}return c(t,e),t.prototype.renderElement=function(){var e=this.question.cssClasses,t=this.question.getCheckboxItemCss(),n=this.question.canRenderLabelDescription?u.SurveyElementBase.renderQuestionDescription(this.question):null;return o.createElement("div",{className:e.rootCheckbox},o.createElement("div",{className:t},o.createElement("label",{className:e.checkboxLabel},o.createElement("input",{ref:this.checkRef,type:"checkbox",name:this.question.name,value:null===this.question.booleanValue?"":this.question.booleanValue,id:this.question.inputId,className:e.controlCheckbox,disabled:this.isDisplayMode,checked:this.question.booleanValue||!1,onChange:this.handleOnChange,"aria-required":this.question.ariaRequired,"aria-label":this.question.ariaLabel,"aria-invalid":this.question.ariaInvalid,"aria-describedby":this.question.ariaDescribedBy}),o.createElement("span",{className:e.checkboxMaterialDecorator},this.question.svgIcon?o.createElement("svg",{className:e.checkboxItemDecorator},o.createElement("use",{xlinkHref:this.question.svgIcon})):null,o.createElement("span",{className:"check"})),this.question.isLabelRendered&&o.createElement("span",{className:e.checkboxControlLabel,id:this.question.labelRenderedAriaID},o.createElement(l.TitleActions,{element:this.question,cssClasses:this.question.cssClasses}))),n))},t}(a.SurveyQuestionBoolean);s.ReactQuestionFactory.Instance.registerQuestion("sv-boolean-checkbox",(function(e){return o.createElement(p,e)})),i.RendererFactory.Instance.registerRenderer("boolean","checkbox","sv-boolean-checkbox")},"./src/react/boolean-radio.tsx":function(e,t,n){"use strict";n.r(t),n.d(t,"SurveyQuestionBooleanRadio",(function(){return u}));var r,o=n("react"),i=n("survey-core"),s=n("./src/react/reactquestion_factory.tsx"),a=n("./src/react/boolean.tsx"),l=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),u=function(e){function t(t){var n=e.call(this,t)||this;return n.handleOnChange=function(e){n.question.booleanValue="true"==e.nativeEvent.target.value},n}return l(t,e),t.prototype.renderRadioItem=function(e,t){var n=this.question.cssClasses;return o.createElement("div",{role:"presentation",className:this.question.getRadioItemClass(n,e)},o.createElement("label",{className:n.radioLabel},o.createElement("input",{type:"radio",name:this.question.name,value:e,"aria-describedby":this.question.ariaDescribedBy,checked:e===this.question.booleanValueRendered,disabled:this.question.isInputReadOnly,className:n.itemRadioControl,onChange:this.handleOnChange}),this.question.cssClasses.materialRadioDecorator?o.createElement("span",{className:n.materialRadioDecorator},this.question.itemSvgIcon?o.createElement("svg",{className:n.itemRadioDecorator},o.createElement("use",{xlinkHref:this.question.itemSvgIcon})):null):null,o.createElement("span",{className:n.radioControlLabel},this.renderLocString(t))))},t.prototype.renderElement=function(){var e=this.question.cssClasses;return o.createElement("div",{className:e.rootRadio},o.createElement("fieldset",{role:"presentation",className:e.radioFieldset},this.renderRadioItem(!1,this.question.locLabelFalse),this.renderRadioItem(!0,this.question.locLabelTrue)))},t}(a.SurveyQuestionBoolean);s.ReactQuestionFactory.Instance.registerQuestion("sv-boolean-radio",(function(e){return o.createElement(u,e)})),i.RendererFactory.Instance.registerRenderer("boolean","radio","sv-boolean-radio")},"./src/react/boolean.tsx":function(e,t,n){"use strict";n.r(t),n.d(t,"SurveyQuestionBoolean",(function(){return l}));var r,o=n("react"),i=n("./src/react/reactquestion_element.tsx"),s=n("./src/react/reactquestion_factory.tsx"),a=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),l=function(e){function t(t){var n=e.call(this,t)||this;return n.handleOnChange=n.handleOnChange.bind(n),n.handleOnClick=n.handleOnClick.bind(n),n.handleOnLabelClick=n.handleOnLabelClick.bind(n),n.handleOnSwitchClick=n.handleOnSwitchClick.bind(n),n.handleOnKeyDown=n.handleOnKeyDown.bind(n),n.checkRef=o.createRef(),n}return a(t,e),t.prototype.getStateElement=function(){return this.question},Object.defineProperty(t.prototype,"question",{get:function(){return this.questionBase},enumerable:!1,configurable:!0}),t.prototype.doCheck=function(e){this.question.booleanValue=e},t.prototype.handleOnChange=function(e){this.doCheck(e.target.checked)},t.prototype.handleOnClick=function(e){this.question.onLabelClick(e,!0)},t.prototype.handleOnSwitchClick=function(e){this.question.onSwitchClickModel(e.nativeEvent)},t.prototype.handleOnLabelClick=function(e,t){this.question.onLabelClick(e,t)},t.prototype.handleOnKeyDown=function(e){this.question.onKeyDownCore(e)},t.prototype.updateDomElement=function(){if(this.question){var t=this.checkRef.current;t&&(t.indeterminate=this.question.isIndeterminate),this.setControl(t),e.prototype.updateDomElement.call(this)}},t.prototype.renderElement=function(){var e=this,t=this.question.cssClasses,n=this.question.getItemCss();return o.createElement("div",{className:t.root,onKeyDown:this.handleOnKeyDown},o.createElement("label",{className:n,onClick:this.handleOnClick},o.createElement("input",{ref:this.checkRef,type:"checkbox",name:this.question.name,value:null===this.question.booleanValue?"":this.question.booleanValue,id:this.question.inputId,className:t.control,disabled:this.isDisplayMode,checked:this.question.booleanValue||!1,onChange:this.handleOnChange,"aria-required":this.question.ariaRequired,"aria-label":this.question.ariaLabel,"aria-invalid":this.question.ariaInvalid,"aria-describedby":this.question.ariaDescribedBy}),o.createElement("div",{className:t.sliderGhost,onClick:function(t){return e.handleOnLabelClick(t,!1)}},o.createElement("span",{className:this.question.getLabelCss(!1)},this.renderLocString(this.question.locLabelFalse))),o.createElement("div",{className:t.switch,onClick:this.handleOnSwitchClick},o.createElement("span",{className:t.slider},this.question.isDeterminated&&t.sliderText?o.createElement("span",{className:t.sliderText},this.renderLocString(this.question.getCheckedLabel())):null)),o.createElement("div",{className:t.sliderGhost,onClick:function(t){return e.handleOnLabelClick(t,!0)}},o.createElement("span",{className:this.question.getLabelCss(!0)},this.renderLocString(this.question.locLabelTrue)))))},t}(i.SurveyQuestionElementBase);s.ReactQuestionFactory.Instance.registerQuestion("boolean",(function(e){return o.createElement(l,e)}))},"./src/react/components/action-bar/action-bar-item-dropdown.tsx":function(e,t,n){"use strict";n.r(t),n.d(t,"SurveyActionBarItemDropdown",(function(){return p}));var r,o=n("react"),i=n.n(o),s=n("survey-core"),a=n("./src/react/element-factory.tsx"),l=n("./src/react/components/popup/popup.tsx"),u=n("./src/react/components/action-bar/action-bar-item.tsx"),c=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),p=function(e){function t(t){var n=e.call(this,t)||this;return n.viewModel=new s.ActionDropdownViewModel(n.item),n}return c(t,e),t.prototype.renderInnerButton=function(){var t=e.prototype.renderInnerButton.call(this);return i.a.createElement(i.a.Fragment,null,t,i.a.createElement(l.Popup,{model:this.item.popupModel,getTarget:s.getActionDropdownButtonTarget}))},t.prototype.componentWillUnmount=function(){e.prototype.componentWillUnmount.call(this),this.viewModel.dispose()},t}(u.SurveyActionBarItem);a.ReactElementFactory.Instance.registerElement("sv-action-bar-item-dropdown",(function(e){return i.a.createElement(p,e)}))},"./src/react/components/action-bar/action-bar-item.tsx":function(e,t,n){"use strict";n.r(t),n.d(t,"SurveyAction",(function(){return d})),n.d(t,"SurveyActionBarItem",(function(){return h}));var r,o=n("react"),i=n.n(o),s=n("./src/react/element-factory.tsx"),a=n("./src/react/reactquestion_element.tsx"),l=n("./src/react/reactSurvey.tsx"),u=n("./src/react/components/svg-icon/svg-icon.tsx"),c=n("./src/react/components/action-bar/action-bar-separator.tsx"),p=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),d=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return p(t,e),Object.defineProperty(t.prototype,"item",{get:function(){return this.props.item},enumerable:!1,configurable:!0}),t.prototype.getStateElement=function(){return this.item},t.prototype.renderElement=function(){var e=this.item.getActionRootCss(),t=this.item.needSeparator?i.a.createElement(c.SurveyActionBarSeparator,null):null,n=s.ReactElementFactory.Instance.createElement(this.item.component||"sv-action-bar-item",{item:this.item});return i.a.createElement("div",{className:e,id:this.item.id},i.a.createElement("div",{className:"sv-action__content"},t,n))},t}(a.SurveyElementBase),h=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return p(t,e),Object.defineProperty(t.prototype,"item",{get:function(){return this.props.item},enumerable:!1,configurable:!0}),t.prototype.getStateElement=function(){return this.item},t.prototype.renderElement=function(){return i.a.createElement(i.a.Fragment,null,this.renderInnerButton())},t.prototype.renderText=function(){if(!this.item.hasTitle)return null;var e=this.item.getActionBarItemTitleCss();return i.a.createElement("span",{className:e},this.item.title)},t.prototype.renderButtonContent=function(){var e=this.renderText(),t=this.item.iconName?i.a.createElement(u.SvgIcon,{className:this.item.cssClasses.itemIcon,size:this.item.iconSize,iconName:this.item.iconName,title:this.item.tooltip||this.item.title}):null;return i.a.createElement(i.a.Fragment,null,t,e)},t.prototype.renderInnerButton=function(){var e=this,t=this.item.getActionBarItemCss(),n=this.item.tooltip||this.item.title,r=this.renderButtonContent(),o=this.item.disableTabStop?-1:void 0;return Object(l.attachKey2click)(i.a.createElement("button",{className:t,type:"button",disabled:this.item.disabled,onClick:function(t){return e.item.action(e.item,e.item.getIsTrusted(t))},title:n,tabIndex:o,"aria-checked":this.item.ariaChecked,"aria-expanded":this.item.ariaExpanded,role:this.item.ariaRole},r),null,{processEsc:!1})},t}(a.SurveyElementBase);s.ReactElementFactory.Instance.registerElement("sv-action-bar-item",(function(e){return i.a.createElement(h,e)}))},"./src/react/components/action-bar/action-bar-separator.tsx":function(e,t,n){"use strict";n.r(t),n.d(t,"SurveyActionBarSeparator",(function(){return l}));var r,o=n("react"),i=n.n(o),s=n("./src/react/element-factory.tsx"),a=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),l=function(e){function t(t){return e.call(this,t)||this}return a(t,e),t.prototype.render=function(){var e="sv-action-bar-separator "+this.props.cssClasses;return i.a.createElement("div",{className:e})},t}(i.a.Component);s.ReactElementFactory.Instance.registerElement("sv-action-bar-separator",(function(e){return i.a.createElement(l,e)}))},"./src/react/components/action-bar/action-bar.tsx":function(e,t,n){"use strict";n.r(t),n.d(t,"SurveyActionBar",(function(){return d}));var r=n("react"),o=n.n(r),i=n("./src/react/element-factory.tsx"),s=n("./src/react/reactquestion_element.tsx"),a=n("./src/react/components/action-bar/action-bar-item.tsx"),l=n("./src/react/components/action-bar/action-bar-item-dropdown.tsx");n.d(t,"SurveyActionBarItemDropdown",(function(){return l.SurveyActionBarItemDropdown}));var u=n("./src/react/components/action-bar/action-bar-separator.tsx");n.d(t,"SurveyActionBarSeparator",(function(){return u.SurveyActionBarSeparator}));var c,p=(c=function(e,t){return c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},c(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}c(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),d=function(e){function t(t){var n=e.call(this,t)||this;return n.rootRef=o.a.createRef(),n}return p(t,e),Object.defineProperty(t.prototype,"handleClick",{get:function(){return void 0===this.props.handleClick||this.props.handleClick},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"model",{get:function(){return this.props.model},enumerable:!1,configurable:!0}),t.prototype.componentDidMount=function(){if(e.prototype.componentDidMount.call(this),this.model.hasActions){var t=this.rootRef.current;t&&this.model.initResponsivityManager(t)}},t.prototype.componentWillUnmount=function(){e.prototype.componentWillUnmount.call(this),this.model.hasActions&&this.model.resetResponsivityManager()},t.prototype.getStateElement=function(){return this.model},t.prototype.renderElement=function(){if(!this.model.hasActions)return null;var e=this.renderItems();return o.a.createElement("div",{ref:this.rootRef,className:this.model.getRootCss(),onClick:this.handleClick?function(e){e.stopPropagation()}:void 0},e)},t.prototype.renderItems=function(){return this.model.renderedActions.map((function(e,t){return o.a.createElement(a.SurveyAction,{item:e,key:"item"+t})}))},t}(s.SurveyElementBase);i.ReactElementFactory.Instance.registerElement("sv-action-bar",(function(e){return o.a.createElement(d,e)}))},"./src/react/components/brand-info.tsx":function(e,t,n){"use strict";n.r(t),n.d(t,"BrandInfo",(function(){return a}));var r,o=n("react"),i=n.n(o),s=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),a=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return s(t,e),t.prototype.render=function(){return i.a.createElement("div",{className:"sv-brand-info"},i.a.createElement("a",{className:"sv-brand-info__logo",href:"https://surveyjs.io/?utm_source=built-in_links&utm_medium=online_survey_tool&utm_campaign=landing_page"},i.a.createElement("img",{src:"https://surveyjs.io/Content/Images/poweredby.svg"})),i.a.createElement("div",{className:"sv-brand-info__text"},"Try and see how easy it is to ",i.a.createElement("a",{href:"https://surveyjs.io/create-survey?utm_source=built-in_links&utm_medium=online_survey_tool&utm_campaign=create_survey"},"create a survey")),i.a.createElement("div",{className:"sv-brand-info__terms"},i.a.createElement("a",{href:"https://surveyjs.io/TermsOfUse"},"Terms of Use & Privacy Statement")))},t}(i.a.Component)},"./src/react/components/character-counter.tsx":function(e,t,n){"use strict";n.r(t),n.d(t,"CharacterCounterComponent",(function(){return u}));var r,o=n("react"),i=n.n(o),s=n("./src/react/element-factory.tsx"),a=n("./src/react/reactquestion_element.tsx"),l=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),u=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return l(t,e),t.prototype.getStateElement=function(){return this.props.counter},t.prototype.renderElement=function(){return i.a.createElement("div",{className:this.props.remainingCharacterCounter},this.props.counter.remainingCharacterCounter)},t}(a.SurveyElementBase);s.ReactElementFactory.Instance.registerElement("sv-character-counter",(function(e){return i.a.createElement(u,e)}))},"./src/react/components/components-container.tsx":function(e,t,n){"use strict";n.r(t),n.d(t,"ComponentsContainer",(function(){return l}));var r,o=n("react"),i=n.n(o),s=n("./src/react/element-factory.tsx"),a=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),l=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return a(t,e),t.prototype.render=function(){var e=this,t=this.props.survey.getContainerContent(this.props.container),n=!1!==this.props.needRenderWrapper;return 0==t.length?null:n?i.a.createElement("div",{className:"sv-components-column"},t.map((function(t){return s.ReactElementFactory.Instance.createElement(t.component,{survey:e.props.survey,model:t.data,key:t.id})}))):i.a.createElement(i.a.Fragment,null,t.map((function(t){return s.ReactElementFactory.Instance.createElement(t.component,{survey:e.props.survey,model:t.data,key:t.id})})))},t}(i.a.Component);s.ReactElementFactory.Instance.registerElement("sv-components-container",(function(e){return i.a.createElement(l,e)}))},"./src/react/components/list/list-item.tsx":function(e,t,n){"use strict";n.r(t),n.d(t,"ListItem",(function(){return p}));var r,o=n("react"),i=n.n(o),s=n("./src/react/element-factory.tsx"),a=n("./src/react/reactquestion_element.tsx"),l=n("./src/react/reactSurvey.tsx"),u=n("./src/react/components/svg-icon/svg-icon.tsx"),c=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),p=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.handleKeydown=function(e){t.model.onKeyDown(e)},t}return c(t,e),Object.defineProperty(t.prototype,"model",{get:function(){return this.props.model},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"item",{get:function(){return this.props.item},enumerable:!1,configurable:!0}),t.prototype.getStateElement=function(){return this.item},t.prototype.render=function(){var e=this;if(!this.item)return null;var t={paddingInlineStart:this.model.getItemIndent(this.item)},n=this.model.getItemClass(this.item),r=[];if(this.item.component){var o=s.ReactElementFactory.Instance.createElement(this.item.component,{item:this.item,key:this.item.id});o&&r.push(o)}else{var a=this.renderLocString(this.item.locTitle,void 0,"locString");if(this.item.iconName){var c=i.a.createElement(u.SvgIcon,{key:1,className:this.model.cssClasses.itemIcon,iconName:this.item.iconName,size:this.item.iconSize,"aria-label":this.item.title});r.push(c),r.push(i.a.createElement("span",{key:2},a))}else r.push(a)}var p=i.a.createElement("div",{style:t,className:this.model.cssClasses.itemBody},r),d=this.item.needSeparator?i.a.createElement("div",{className:this.model.cssClasses.itemSeparator}):null,h={display:this.model.isItemVisible(this.item)?null:"none"};return Object(l.attachKey2click)(i.a.createElement("li",{className:n,role:"option",style:h,id:this.item.elementId,"aria-selected":this.model.isItemSelected(this.item),onClick:function(t){e.model.onItemClick(e.item),t.stopPropagation()},onPointerDown:function(t){return e.model.onPointerDown(t,e.item)}},d,p))},t.prototype.componentDidMount=function(){e.prototype.componentDidMount.call(this),this.model.onLastItemRended(this.item)},t}(a.SurveyElementBase);s.ReactElementFactory.Instance.registerElement("sv-list-item",(function(e){return i.a.createElement(p,e)}))},"./src/react/components/list/list.tsx":function(e,t,n){"use strict";n.r(t),n.d(t,"List",(function(){return d}));var r,o=n("react"),i=n.n(o),s=n("survey-core"),a=n("./src/react/element-factory.tsx"),l=n("./src/react/reactquestion_element.tsx"),u=n("./src/react/components/svg-icon/svg-icon.tsx"),c=n("./src/react/components/list/list-item.tsx"),p=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),d=function(e){function t(t){var n=e.call(this,t)||this;return n.handleKeydown=function(e){n.model.onKeyDown(e)},n.handleMouseMove=function(e){n.model.onMouseMove(e)},n.state={filterString:n.model.filterString||""},n.listContainerRef=i.a.createRef(),n}return p(t,e),Object.defineProperty(t.prototype,"model",{get:function(){return this.props.model},enumerable:!1,configurable:!0}),t.prototype.getStateElement=function(){return this.model},t.prototype.componentDidMount=function(){e.prototype.componentDidMount.call(this),this.listContainerRef&&this.listContainerRef.current&&this.model.initListContainerHtmlElement(this.listContainerRef.current)},t.prototype.renderElement=function(){return i.a.createElement("div",{className:this.model.cssClasses.root,ref:this.listContainerRef},this.searchElementContent(),this.emptyContent(),this.renderList())},t.prototype.renderList=function(){if(!this.model.renderElements)return null;var e=this.renderItems(),t={display:this.model.isEmpty?"none":null};return i.a.createElement("ul",{className:this.model.getListClass(),style:t,role:"listbox",id:this.model.elementId,onMouseDown:function(e){e.preventDefault()},onKeyDown:this.handleKeydown,onMouseMove:this.handleMouseMove},e)},t.prototype.renderItems=function(){var e=this;if(!this.model)return null;var t=this.model.renderedActions;return t?t.map((function(t,n){return i.a.createElement(c.ListItem,{model:e.model,item:t,key:"item"+n})})):null},t.prototype.searchElementContent=function(){var e=this;if(this.model.showFilter){var t=this.model.showSearchClearButton&&this.model.filterString?i.a.createElement("button",{className:this.model.cssClasses.searchClearButtonIcon,onClick:function(t){e.model.onClickSearchClearButton(t)}},i.a.createElement(u.SvgIcon,{iconName:"icon-searchclear",size:"auto"})):null;return i.a.createElement("div",{className:this.model.cssClasses.filter},i.a.createElement("div",{className:this.model.cssClasses.filterIcon},i.a.createElement(u.SvgIcon,{iconName:"icon-search",size:"auto"})),i.a.createElement("input",{type:"text",className:this.model.cssClasses.filterInput,"aria-label":this.model.filterStringPlaceholder,placeholder:this.model.filterStringPlaceholder,value:this.state.filterString,onKeyUp:function(t){e.model.goToItems(t)},onChange:function(t){var n=s.settings.environment.root;t.target===n.activeElement&&(e.model.filterString=t.target.value)}}),t)}return null},t.prototype.emptyContent=function(){var e={display:this.model.isEmpty?null:"none"};return i.a.createElement("div",{className:this.model.cssClasses.emptyContainer,style:e},i.a.createElement("div",{className:this.model.cssClasses.emptyText,"aria-label":this.model.emptyMessage},this.model.emptyMessage))},t}(l.SurveyElementBase);a.ReactElementFactory.Instance.registerElement("sv-list",(function(e){return i.a.createElement(d,e)}))},"./src/react/components/matrix-actions/detail-button/detail-button.tsx":function(e,t,n){"use strict";n.r(t),n.d(t,"SurveyQuestionMatrixDetailButton",(function(){return c}));var r,o=n("react"),i=n.n(o),s=n("./src/react/element-factory.tsx"),a=n("./src/react/reactquestion_element.tsx"),l=n("./src/react/components/svg-icon/svg-icon.tsx"),u=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),c=function(e){function t(t){var n=e.call(this,t)||this;return n.handleOnShowHideClick=n.handleOnShowHideClick.bind(n),n}return u(t,e),t.prototype.getStateElement=function(){return this.props.item},Object.defineProperty(t.prototype,"item",{get:function(){return this.props.item},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"question",{get:function(){return this.props.item.data.question},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"row",{get:function(){return this.props.item.data.row},enumerable:!1,configurable:!0}),t.prototype.handleOnShowHideClick=function(e){this.row.showHideDetailPanelClick()},t.prototype.renderElement=function(){var e=this.row.isDetailPanelShowing,t=e,n=e?this.row.detailPanelId:void 0;return i.a.createElement("button",{type:"button",onClick:this.handleOnShowHideClick,className:this.question.getDetailPanelButtonCss(this.row),"aria-expanded":t,"aria-controls":n},i.a.createElement(l.SvgIcon,{className:this.question.getDetailPanelIconCss(this.row),iconName:this.question.getDetailPanelIconId(this.row),size:"auto"}))},t}(a.ReactSurveyElement);s.ReactElementFactory.Instance.registerElement("sv-matrix-detail-button",(function(e){return i.a.createElement(c,e)}))},"./src/react/components/matrix-actions/drag-drop-icon/drag-drop-icon.tsx":function(e,t,n){"use strict";n.r(t),n.d(t,"SurveyQuestionMatrixDynamicDragDropIcon",(function(){return u}));var r,o=n("react"),i=n.n(o),s=n("./src/react/element-factory.tsx"),a=n("./src/react/reactquestion_element.tsx"),l=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),u=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return l(t,e),Object.defineProperty(t.prototype,"question",{get:function(){return this.props.item.data.question},enumerable:!1,configurable:!0}),t.prototype.renderElement=function(){return this.question.iconDragElement?i.a.createElement("svg",{className:this.question.cssClasses.dragElementDecorator},i.a.createElement("use",{xlinkHref:this.question.iconDragElement})):i.a.createElement("span",{className:this.question.cssClasses.iconDrag})},t}(a.ReactSurveyElement);s.ReactElementFactory.Instance.registerElement("sv-matrix-drag-drop-icon",(function(e){return i.a.createElement(u,e)}))},"./src/react/components/matrix-actions/remove-button/remove-button.tsx":function(e,t,n){"use strict";n.r(t),n.d(t,"SurveyQuestionMatrixDynamicRemoveButton",(function(){return u}));var r,o=n("react"),i=n.n(o),s=n("./src/react/element-factory.tsx"),a=n("./src/react/reactquestion_element.tsx"),l=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),u=function(e){function t(t){var n=e.call(this,t)||this;return n.handleOnRowRemoveClick=n.handleOnRowRemoveClick.bind(n),n}return l(t,e),Object.defineProperty(t.prototype,"question",{get:function(){return this.props.item.data.question},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"row",{get:function(){return this.props.item.data.row},enumerable:!1,configurable:!0}),t.prototype.handleOnRowRemoveClick=function(e){this.question.removeRowUI(this.row)},t.prototype.renderElement=function(){var e=this.renderLocString(this.question.locRemoveRowText);return i.a.createElement("button",{className:this.question.getRemoveRowButtonCss(),type:"button",onClick:this.handleOnRowRemoveClick,disabled:this.question.isInputReadOnly},e,i.a.createElement("span",{className:this.question.cssClasses.iconRemove}))},t}(a.ReactSurveyElement);s.ReactElementFactory.Instance.registerElement("sv-matrix-remove-button",(function(e){return i.a.createElement(u,e)}))},"./src/react/components/matrix/row.tsx":function(e,t,n){"use strict";n.r(t),n.d(t,"MatrixRow",(function(){return u}));var r,o=n("react"),i=n.n(o),s=n("./src/react/element-factory.tsx"),a=n("./src/react/reactquestion_element.tsx"),l=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),u=function(e){function t(t){var n=e.call(this,t)||this;return n.onPointerDownHandler=function(e){n.parentMatrix.onPointerDown(e.nativeEvent,n.model.row)},n}return l(t,e),Object.defineProperty(t.prototype,"model",{get:function(){return this.props.model},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"parentMatrix",{get:function(){return this.props.parentMatrix},enumerable:!1,configurable:!0}),t.prototype.getStateElement=function(){return this.model},t.prototype.render=function(){var e=this,t=this.model;return t.visible?i.a.createElement("tr",{className:t.className,"data-sv-drop-target-matrix-row":t.row&&t.row.id,onPointerDown:function(t){return e.onPointerDownHandler(t)}},this.props.children):null},t}(a.SurveyElementBase);s.ReactElementFactory.Instance.registerElement("sv-matrix-row",(function(e){return i.a.createElement(u,e)}))},"./src/react/components/notifier.tsx":function(e,t,n){"use strict";n.r(t),n.d(t,"NotifierComponent",(function(){return c}));var r,o=n("react"),i=n.n(o),s=n("./src/react/reactquestion_element.tsx"),a=n("./src/react/element-factory.tsx"),l=n("./src/react/components/action-bar/action-bar.tsx"),u=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),c=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return u(t,e),Object.defineProperty(t.prototype,"notifier",{get:function(){return this.props.notifier},enumerable:!1,configurable:!0}),t.prototype.getStateElement=function(){return this.notifier},t.prototype.renderElement=function(){if(!this.notifier.isDisplayed)return null;var e={visibility:this.notifier.active?"visible":"hidden"};return i.a.createElement("div",{className:this.notifier.css,style:e,role:"alert","aria-live":"polite"},i.a.createElement("span",null,this.notifier.message),i.a.createElement(l.SurveyActionBar,{model:this.notifier.actionBar}))},t}(s.SurveyElementBase);a.ReactElementFactory.Instance.registerElement("sv-notifier",(function(e){return i.a.createElement(c,e)}))},"./src/react/components/paneldynamic-actions/paneldynamic-add-btn.tsx":function(e,t,n){"use strict";n.r(t),n.d(t,"SurveyQuestionPanelDynamicAction",(function(){return u})),n.d(t,"SurveyQuestionPanelDynamicAddButton",(function(){return c}));var r,o=n("react"),i=n.n(o),s=n("./src/react/element-factory.tsx"),a=n("./src/react/reactquestion_element.tsx"),l=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),u=function(e){function t(t){return e.call(this,t)||this}return l(t,e),Object.defineProperty(t.prototype,"data",{get:function(){return this.props.item&&this.props.item.data||this.props.data},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"question",{get:function(){return this.props.item&&this.props.item.data.question||this.props.data.question},enumerable:!1,configurable:!0}),t}(a.ReactSurveyElement),c=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.handleClick=function(e){t.question.addPanelUI()},t}return l(t,e),t.prototype.renderElement=function(){return this.question.canAddPanel?i.a.createElement("button",{type:"button",className:this.question.getAddButtonCss(),onClick:this.handleClick},i.a.createElement("span",{className:this.question.cssClasses.buttonAddText},this.question.panelAddText)):null},t}(u);s.ReactElementFactory.Instance.registerElement("sv-paneldynamic-add-btn",(function(e){return i.a.createElement(c,e)}))},"./src/react/components/paneldynamic-actions/paneldynamic-next-btn.tsx":function(e,t,n){"use strict";n.r(t),n.d(t,"SurveyQuestionPanelDynamicNextButton",(function(){return c}));var r,o=n("react"),i=n.n(o),s=n("./src/react/element-factory.tsx"),a=n("./src/react/components/svg-icon/svg-icon.tsx"),l=n("./src/react/components/paneldynamic-actions/paneldynamic-add-btn.tsx"),u=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),c=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.handleClick=function(e){t.question.goToNextPanel()},t}return u(t,e),t.prototype.renderElement=function(){return i.a.createElement("div",{title:this.question.panelNextText,onClick:this.handleClick,className:this.question.getNextButtonCss()},i.a.createElement(a.SvgIcon,{iconName:this.question.cssClasses.progressBtnIcon,size:"auto"}))},t}(l.SurveyQuestionPanelDynamicAction);s.ReactElementFactory.Instance.registerElement("sv-paneldynamic-next-btn",(function(e){return i.a.createElement(c,e)}))},"./src/react/components/paneldynamic-actions/paneldynamic-prev-btn.tsx":function(e,t,n){"use strict";n.r(t),n.d(t,"SurveyQuestionPanelDynamicPrevButton",(function(){return c}));var r,o=n("react"),i=n.n(o),s=n("./src/react/element-factory.tsx"),a=n("./src/react/components/svg-icon/svg-icon.tsx"),l=n("./src/react/components/paneldynamic-actions/paneldynamic-add-btn.tsx"),u=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),c=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.handleClick=function(e){t.question.goToPrevPanel()},t}return u(t,e),t.prototype.renderElement=function(){return i.a.createElement("div",{title:this.question.panelPrevText,onClick:this.handleClick,className:this.question.getPrevButtonCss()},i.a.createElement(a.SvgIcon,{iconName:this.question.cssClasses.progressBtnIcon,size:"auto"}))},t}(l.SurveyQuestionPanelDynamicAction);s.ReactElementFactory.Instance.registerElement("sv-paneldynamic-prev-btn",(function(e){return i.a.createElement(c,e)}))},"./src/react/components/paneldynamic-actions/paneldynamic-progress-text.tsx":function(e,t,n){"use strict";n.r(t),n.d(t,"SurveyQuestionPanelDynamicProgressText",(function(){return u}));var r,o=n("react"),i=n.n(o),s=n("./src/react/element-factory.tsx"),a=n("./src/react/components/paneldynamic-actions/paneldynamic-add-btn.tsx"),l=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),u=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return l(t,e),t.prototype.renderElement=function(){return i.a.createElement("div",{className:this.question.cssClasses.progressText},this.question.progressText)},t}(a.SurveyQuestionPanelDynamicAction);s.ReactElementFactory.Instance.registerElement("sv-paneldynamic-progress-text",(function(e){return i.a.createElement(u,e)}))},"./src/react/components/paneldynamic-actions/paneldynamic-remove-btn.tsx":function(e,t,n){"use strict";n.r(t),n.d(t,"SurveyQuestionPanelDynamicRemoveButton",(function(){return u}));var r,o=n("react"),i=n.n(o),s=n("./src/react/element-factory.tsx"),a=n("./src/react/components/paneldynamic-actions/paneldynamic-add-btn.tsx"),l=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),u=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.handleClick=function(e){t.question.removePanelUI(t.data.panel)},t}return l(t,e),t.prototype.renderElement=function(){return i.a.createElement("button",{className:this.question.getPanelRemoveButtonCss(),onClick:this.handleClick,type:"button"},i.a.createElement("span",{className:this.question.cssClasses.buttonRemoveText},this.question.panelRemoveText),i.a.createElement("span",{className:this.question.cssClasses.iconRemove}))},t}(a.SurveyQuestionPanelDynamicAction);s.ReactElementFactory.Instance.registerElement("sv-paneldynamic-remove-btn",(function(e){return i.a.createElement(u,e)}))},"./src/react/components/popup/popup.tsx":function(e,t,n){"use strict";n.r(t),n.d(t,"Popup",(function(){return h})),n.d(t,"PopupContainer",(function(){return f})),n.d(t,"PopupDropdownContainer",(function(){return m})),n.d(t,"showModal",(function(){return g})),n.d(t,"showDialog",(function(){return y}));var r,o=n("react-dom"),i=n.n(o),s=n("react"),a=n.n(s),l=n("survey-core"),u=n("./src/react/element-factory.tsx"),c=n("./src/react/reactquestion_element.tsx"),p=n("./src/react/components/action-bar/action-bar.tsx"),d=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),h=function(e){function t(t){var n=e.call(this,t)||this;return n.containerRef=a.a.createRef(),n.createModel(),n}return d(t,e),Object.defineProperty(t.prototype,"model",{get:function(){return this.props.model},enumerable:!1,configurable:!0}),t.prototype.getStateElement=function(){return this.model},t.prototype.createModel=function(){this.popup=Object(l.createPopupViewModel)(this.props.model,void 0)},t.prototype.setTargetElement=function(){var e=this.containerRef.current;this.popup.setComponentElement(e,this.props.getTarget?this.props.getTarget(e):void 0)},t.prototype.componentDidMount=function(){e.prototype.componentDidMount.call(this),this.setTargetElement()},t.prototype.componentDidUpdate=function(t,n){e.prototype.componentDidUpdate.call(this,t,n),this.setTargetElement()},t.prototype.shouldComponentUpdate=function(t,n){var r;if(!e.prototype.shouldComponentUpdate.call(this,t,n))return!1;var o=t.model!==this.popup.model;return o&&(null===(r=this.popup)||void 0===r||r.dispose(),this.createModel()),o},t.prototype.render=function(){var e;return this.popup.model=this.model,e=this.model.isModal?a.a.createElement(f,{model:this.popup}):a.a.createElement(m,{model:this.popup}),a.a.createElement("div",{ref:this.containerRef},e)},t}(c.SurveyElementBase);u.ReactElementFactory.Instance.registerElement("sv-popup",(function(e){return a.a.createElement(h,e)}));var f=function(e){function t(t){var n=e.call(this,t)||this;return n.prevIsVisible=!1,n.handleKeydown=function(e){n.model.onKeyDown(e)},n.clickInside=function(e){e.stopPropagation()},n}return d(t,e),Object.defineProperty(t.prototype,"model",{get:function(){return this.props.model},enumerable:!1,configurable:!0}),t.prototype.getStateElement=function(){return this.model},t.prototype.componentDidUpdate=function(t,n){e.prototype.componentDidUpdate.call(this,t,n),!this.prevIsVisible&&this.model.isVisible&&this.model.updateOnShowing(),this.prevIsVisible=this.model.isVisible},t.prototype.renderContainer=function(e){var t=this,n=e.showHeader?this.renderHeaderPopup(e):null,r=e.title?this.renderHeaderContent():null,o=this.renderContent(),i=e.showFooter?this.renderFooter(this.model):null;return a.a.createElement("div",{className:"sv-popup__container",style:{left:e.left,top:e.top,height:e.height,width:e.width,minWidth:e.minWidth},onClick:function(e){t.clickInside(e)}},a.a.createElement("div",{className:"sv-popup__shadow"},n,a.a.createElement("div",{className:"sv-popup__body-content"},r,a.a.createElement("div",{className:"sv-popup__scrolling-content"},o),i)))},t.prototype.renderHeaderContent=function(){return a.a.createElement("div",{className:"sv-popup__body-header"},this.model.title)},t.prototype.renderContent=function(){var e=u.ReactElementFactory.Instance.createElement(this.model.contentComponentName,this.model.contentComponentData);return a.a.createElement("div",{className:"sv-popup__content"},e)},t.prototype.renderHeaderPopup=function(e){return null},t.prototype.renderFooter=function(e){return a.a.createElement("div",{className:"sv-popup__body-footer"},a.a.createElement(p.SurveyActionBar,{model:e.footerToolbar}))},t.prototype.render=function(){var e=this,t=this.renderContainer(this.model),n=(new l.CssClassBuilder).append("sv-popup").append(this.model.styleClass).toString(),r={display:this.model.isVisible?"":"none"};return a.a.createElement("div",{tabIndex:-1,className:n,style:r,onClick:function(t){e.model.clickOutside(t)},onKeyDown:this.handleKeydown},t)},t}(c.SurveyElementBase),m=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return d(t,e),t.prototype.renderHeaderPopup=function(e){var t=e;return t?a.a.createElement("span",{style:{left:t.pointerTarget.left,top:t.pointerTarget.top},className:"sv-popup__pointer"}):null},t}(f);function g(e,t,n,r,o,i,s){return void 0===s&&(s="popup"),y(Object(l.createDialogOptions)(e,t,n,r,void 0,void 0,o,i,s))}function y(e,t){e.onHide=function(){i.a.unmountComponentAtNode(n.container),n.dispose()};var n=Object(l.createPopupModalViewModel)(e,t);return i.a.render(a.a.createElement(f,{model:n}),n.container),n.model.isVisible=!0,n}l.settings.showModal=g,l.settings.showDialog=y},"./src/react/components/rating/rating-item-smiley.tsx":function(e,t,n){"use strict";n.r(t),n.d(t,"RatingItemSmiley",(function(){return c}));var r,o=n("react"),i=n.n(o),s=n("./src/react/element-factory.tsx"),a=n("./src/react/components/svg-icon/svg-icon.tsx"),l=n("./src/react/components/rating/rating-item.tsx"),u=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),c=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return u(t,e),t.prototype.render=function(){var e=this;return i.a.createElement("label",{onMouseDown:this.handleOnMouseDown,style:this.question.getItemStyle(this.item.itemValue,this.item.highlight),className:this.question.getItemClass(this.item.itemValue),onMouseOver:function(t){return e.question.onItemMouseIn(e.item)},onMouseOut:function(t){return e.question.onItemMouseOut(e.item)}},i.a.createElement("input",{type:"radio",className:"sv-visuallyhidden",name:this.question.name,id:this.question.getInputId(this.index),value:this.item.value,disabled:this.isDisplayMode,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-describedby":this.question.ariaDescribedBy}),i.a.createElement(a.SvgIcon,{size:"auto",iconName:this.question.getItemSmileyIconName(this.item.itemValue),title:this.item.text}))},t}(l.RatingItemBase);s.ReactElementFactory.Instance.registerElement("sv-rating-item-smiley",(function(e){return i.a.createElement(c,e)}))},"./src/react/components/rating/rating-item-star.tsx":function(e,t,n){"use strict";n.r(t),n.d(t,"RatingItemStar",(function(){return c}));var r,o=n("react"),i=n.n(o),s=n("./src/react/element-factory.tsx"),a=n("./src/react/components/svg-icon/svg-icon.tsx"),l=n("./src/react/components/rating/rating-item.tsx"),u=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),c=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return u(t,e),t.prototype.render=function(){var e=this;return i.a.createElement("label",{onMouseDown:this.handleOnMouseDown,className:this.question.getItemClass(this.item.itemValue),onMouseOver:function(t){return e.question.onItemMouseIn(e.item)},onMouseOut:function(t){return e.question.onItemMouseOut(e.item)}},i.a.createElement("input",{type:"radio",className:"sv-visuallyhidden",name:this.question.name,id:this.question.getInputId(this.index),value:this.item.value,disabled:this.isDisplayMode,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-describedby":this.question.ariaDescribedBy}),i.a.createElement(a.SvgIcon,{className:"sv-star",size:"auto",iconName:this.question.itemStarIcon,title:this.item.text}),i.a.createElement(a.SvgIcon,{className:"sv-star-2",size:"auto",iconName:this.question.itemStarIconAlt,title:this.item.text}))},t}(l.RatingItemBase);s.ReactElementFactory.Instance.registerElement("sv-rating-item-star",(function(e){return i.a.createElement(c,e)}))},"./src/react/components/rating/rating-item.tsx":function(e,t,n){"use strict";n.r(t),n.d(t,"RatingItemBase",(function(){return u})),n.d(t,"RatingItem",(function(){return c}));var r,o=n("react"),i=n.n(o),s=n("./src/react/element-factory.tsx"),a=n("./src/react/reactquestion_element.tsx"),l=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),u=function(e){function t(t){var n=e.call(this,t)||this;return n.handleOnMouseDown=n.handleOnMouseDown.bind(n),n}return l(t,e),Object.defineProperty(t.prototype,"question",{get:function(){return this.props.question},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"item",{get:function(){return this.props.item},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"index",{get:function(){return this.props.index},enumerable:!1,configurable:!0}),t.prototype.getStateElement=function(){return this.item},t.prototype.handleOnMouseDown=function(e){this.question.onMouseDown()},t}(a.SurveyElementBase),c=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return l(t,e),t.prototype.render=function(){var e=this.renderLocString(this.item.locText);return i.a.createElement("label",{onMouseDown:this.handleOnMouseDown,className:this.question.getItemClassByText(this.item.itemValue,this.item.text)},i.a.createElement("input",{type:"radio",className:"sv-visuallyhidden",name:this.question.name,id:this.question.getInputId(this.index),value:this.item.value,disabled:this.isDisplayMode,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-describedby":this.question.ariaDescribedBy}),i.a.createElement("span",{className:this.question.cssClasses.itemText},e))},t.prototype.componentDidMount=function(){e.prototype.componentDidMount.call(this)},t}(u);s.ReactElementFactory.Instance.registerElement("sv-rating-item",(function(e){return i.a.createElement(c,e)}))},"./src/react/components/skeleton.tsx":function(e,t,n){"use strict";n.r(t),n.d(t,"Skeleton",(function(){return l}));var r,o=n("react"),i=n.n(o),s=n("./src/react/element-factory.tsx"),a=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),l=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return a(t,e),t.prototype.render=function(){var e;return i.a.createElement("div",{className:"sv-skeleton-element",id:null===(e=this.props.element)||void 0===e?void 0:e.id})},t}(i.a.Component);s.ReactElementFactory.Instance.registerElement("sv-skeleton",(function(e){return i.a.createElement(l,e)}))},"./src/react/components/survey-actions/survey-nav-button.tsx":function(e,t,n){"use strict";n.r(t),n.d(t,"SurveyNavigationButton",(function(){return u}));var r,o=n("react"),i=n.n(o),s=n("./src/react/element-factory.tsx"),a=n("./src/react/reactquestion_element.tsx"),l=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),u=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return l(t,e),Object.defineProperty(t.prototype,"item",{get:function(){return this.props.item},enumerable:!1,configurable:!0}),t.prototype.canRender=function(){return this.item.isVisible},t.prototype.renderElement=function(){return i.a.createElement("input",{className:this.item.innerCss,type:"button",disabled:this.item.disabled,onMouseDown:this.item.data&&this.item.data.mouseDown,onClick:this.item.action,title:this.item.getTooltip(),value:this.item.title})},t}(a.ReactSurveyElement);s.ReactElementFactory.Instance.registerElement("sv-nav-btn",(function(e){return i.a.createElement(u,e)}))},"./src/react/components/survey-header/logo-image.tsx":function(e,t,n){"use strict";n.r(t),n.d(t,"LogoImage",(function(){return l}));var r,o=n("react"),i=n.n(o),s=n("./src/react/element-factory.tsx"),a=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),l=function(e){function t(t){return e.call(this,t)||this}return a(t,e),Object.defineProperty(t.prototype,"survey",{get:function(){return this.props.data},enumerable:!1,configurable:!0}),t.prototype.render=function(){var e=[];return e.push(i.a.createElement("div",{key:"logo-image",className:this.survey.logoClassNames},i.a.createElement("img",{className:this.survey.css.logoImage,src:this.survey.locLogo.renderedHtml,alt:this.survey.locTitle.renderedHtml,width:this.survey.renderedLogoWidth,height:this.survey.renderedLogoHeight,style:{objectFit:this.survey.logoFit,width:this.survey.renderedStyleLogoWidth,height:this.survey.renderedStyleLogoHeight}}))),i.a.createElement(i.a.Fragment,null,e)},t}(i.a.Component);s.ReactElementFactory.Instance.registerElement("sv-logo-image",(function(e){return i.a.createElement(l,e)}))},"./src/react/components/survey-header/survey-header.tsx":function(e,t,n){"use strict";n.r(t),n.d(t,"SurveyHeader",(function(){return c}));var r,o=n("react"),i=n.n(o),s=n("./src/react/reactquestion_element.tsx"),a=n("./src/react/element-factory.tsx"),l=n("./src/react/components/title/title-element.tsx"),u=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),c=function(e){function t(t){var n=e.call(this,t)||this;return n.state={changed:0},n.rootRef=i.a.createRef(),n}return u(t,e),Object.defineProperty(t.prototype,"survey",{get:function(){return this.props.survey},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"css",{get:function(){return this.survey.css},enumerable:!1,configurable:!0}),t.prototype.componentDidMount=function(){var e=this;this.survey.afterRenderHeader(this.rootRef.current),this.survey.locLogo.onChanged=function(){e.setState({changed:e.state.changed+1})}},t.prototype.componentWillUnmount=function(){this.survey.locLogo.onChanged=function(){}},t.prototype.renderTitle=function(){if(!this.survey.renderedHasTitle)return null;var e=s.SurveyElementBase.renderLocString(this.survey.locDescription);return i.a.createElement("div",{className:this.css.headerText,style:{maxWidth:this.survey.titleMaxWidth}},i.a.createElement(l.TitleElement,{element:this.survey}),this.survey.renderedHasDescription?i.a.createElement("h5",{className:this.css.description},e):null)},t.prototype.renderLogoImage=function(e){if(!e)return null;var t=this.survey.getElementWrapperComponentName(this.survey,"logo-image"),n=this.survey.getElementWrapperComponentData(this.survey,"logo-image");return a.ReactElementFactory.Instance.createElement(t,{data:n})},t.prototype.render=function(){return this.survey.renderedHasHeader?i.a.createElement("div",{className:this.css.header,ref:this.rootRef},this.renderLogoImage(this.survey.isLogoBefore),this.renderTitle(),this.renderLogoImage(this.survey.isLogoAfter),i.a.createElement("div",{className:this.css.headerClose})):null},t}(i.a.Component);a.ReactElementFactory.Instance.registerElement("survey-header",(function(e){return i.a.createElement(c,e)}))},"./src/react/components/svg-icon/svg-icon.tsx":function(e,t,n){"use strict";n.r(t),n.d(t,"SvgIcon",(function(){return u}));var r,o=n("react"),i=n.n(o),s=n("./src/react/element-factory.tsx"),a=n("survey-core"),l=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),u=function(e){function t(t){var n=e.call(this,t)||this;return n.svgIconRef=i.a.createRef(),n}return l(t,e),t.prototype.updateSvg=function(){this.props.iconName&&Object(a.createSvg)(this.props.size,this.props.width,this.props.height,this.props.iconName,this.svgIconRef.current,this.props.title)},t.prototype.componentDidUpdate=function(){this.updateSvg()},t.prototype.render=function(){var e="sv-svg-icon";return this.props.className&&(e+=" "+this.props.className),this.props.iconName?i.a.createElement("svg",{className:e,style:this.props.style,onClick:this.props.onClick,ref:this.svgIconRef,role:"img","aria-label":this.props.title},i.a.createElement("use",null)):null},t.prototype.componentDidMount=function(){this.updateSvg()},t}(i.a.Component);s.ReactElementFactory.Instance.registerElement("sv-svg-icon",(function(e){return i.a.createElement(u,e)}))},"./src/react/components/title/title-actions.tsx":function(e,t,n){"use strict";n.r(t),n.d(t,"TitleActions",(function(){return p}));var r,o=n("react"),i=n.n(o),s=n("survey-core"),a=n("./src/react/element-factory.tsx"),l=n("./src/react/components/action-bar/action-bar.tsx"),u=n("./src/react/components/title/title-content.tsx"),c=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),p=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return c(t,e),Object.defineProperty(t.prototype,"cssClasses",{get:function(){return this.props.cssClasses},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"element",{get:function(){return this.props.element},enumerable:!1,configurable:!0}),t.prototype.render=function(){var e=i.a.createElement(u.TitleContent,{element:this.element,cssClasses:this.cssClasses});return this.element.hasTitleActions?i.a.createElement("div",{className:"sv-title-actions"},i.a.createElement("span",{className:"sv-title-actions__title"},e),i.a.createElement(l.SurveyActionBar,{model:this.element.getTitleToolbar()})):e},t}(i.a.Component);s.RendererFactory.Instance.registerRenderer("element","title-actions","sv-title-actions"),a.ReactElementFactory.Instance.registerElement("sv-title-actions",(function(e){return i.a.createElement(p,e)}))},"./src/react/components/title/title-content.tsx":function(e,t,n){"use strict";n.r(t),n.d(t,"TitleContent",(function(){return l}));var r,o=n("react"),i=n.n(o),s=n("./src/react/reactquestion_element.tsx"),a=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),l=function(e){function t(t){return e.call(this,t)||this}return a(t,e),Object.defineProperty(t.prototype,"cssClasses",{get:function(){return this.props.cssClasses},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"element",{get:function(){return this.props.element},enumerable:!1,configurable:!0}),t.prototype.render=function(){if(this.element.isTitleRenderedAsString)return s.SurveyElementBase.renderLocString(this.element.locTitle);var e=this.renderTitleSpans(this.element.getTitleOwner(),this.cssClasses);return i.a.createElement(i.a.Fragment,null,e)},t.prototype.renderTitleSpans=function(e,t){var n=function(e){return i.a.createElement("span",{"data-key":e,key:e}," ")},r=[];e.isRequireTextOnStart&&(r.push(this.renderRequireText(e,t)),r.push(n("req-sp")));var o=e.no;if(o){var a=t.panel?t.panel.number:void 0;r.push(i.a.createElement("span",{"data-key":"q_num",key:"q_num",className:t.number||a,style:{position:"static"},"aria-hidden":!0},o)),r.push(n("num-sp"))}return e.isRequireTextBeforeTitle&&(r.push(this.renderRequireText(e,t)),r.push(n("req-sp"))),r.push(s.SurveyElementBase.renderLocString(e.locTitle,null,"q_title")),e.isRequireTextAfterTitle&&(r.push(n("req-sp")),r.push(this.renderRequireText(e,t))),r},t.prototype.renderRequireText=function(e,t){return i.a.createElement("span",{"data-key":"req-text",key:"req-text",className:t.requiredText||t.panel.requiredText,"aria-hidden":!0},e.requiredText)},t}(i.a.Component)},"./src/react/components/title/title-element.tsx":function(e,t,n){"use strict";n.r(t),n.d(t,"TitleElement",(function(){return u}));var r,o=n("react"),i=n.n(o),s=n("survey-core"),a=n("./src/react/components/title/title-actions.tsx"),l=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),u=function(e){function t(t){return e.call(this,t)||this}return l(t,e),Object.defineProperty(t.prototype,"element",{get:function(){return this.props.element},enumerable:!1,configurable:!0}),t.prototype.render=function(){var e=this.element;if(!e||!e.hasTitle)return null;var t=e.titleAriaLabel||void 0,n=i.a.createElement(a.TitleActions,{element:e,cssClasses:e.cssClasses}),r=void 0;e.hasTitleEvents&&(r=function(e){Object(s.doKey2ClickUp)(e.nativeEvent)});var o=e.titleTagName;return i.a.createElement(o,{className:e.cssTitle,id:e.ariaTitleId,"aria-label":t,tabIndex:e.titleTabIndex,"aria-expanded":e.titleAriaExpanded,role:e.titleAriaRole,onClick:void 0,onKeyUp:r},n)},t}(i.a.Component)},"./src/react/custom-widget.tsx":function(e,t,n){"use strict";n.r(t),n.d(t,"SurveyCustomWidget",(function(){return a}));var r,o=n("react"),i=n("./src/react/reactquestion_element.tsx"),s=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),a=function(e){function t(t){var n=e.call(this,t)||this;return n.widgetRef=o.createRef(),n}return s(t,e),t.prototype._afterRender=function(){if(this.questionBase.customWidget){var e=this.widgetRef.current;e&&(this.questionBase.customWidget.afterRender(this.questionBase,e),this.questionBase.customWidgetData.isNeedRender=!1)}},t.prototype.componentDidMount=function(){e.prototype.componentDidMount.call(this),this.questionBase&&this._afterRender()},t.prototype.componentDidUpdate=function(t,n){e.prototype.componentDidUpdate.call(this,t,n);var r=!!this.questionBase.customWidget&&this.questionBase.customWidget.isDefaultRender;this.questionBase&&!r&&this._afterRender()},t.prototype.componentWillUnmount=function(){if(e.prototype.componentWillUnmount.call(this),this.questionBase.customWidget){var t=this.widgetRef.current;t&&this.questionBase.customWidget.willUnmount(this.questionBase,t)}},t.prototype.canRender=function(){return e.prototype.canRender.call(this)&&this.questionBase.visible},t.prototype.renderElement=function(){var e=this.questionBase.customWidget;if(e.isDefaultRender)return o.createElement("div",{ref:this.widgetRef},this.creator.createQuestionElement(this.questionBase));var t=null;if(e.widgetJson.render)t=e.widgetJson.render(this.questionBase);else if(e.htmlTemplate){var n={__html:e.htmlTemplate};return o.createElement("div",{ref:this.widgetRef,dangerouslySetInnerHTML:n})}return o.createElement("div",{ref:this.widgetRef},t)},t}(i.SurveyQuestionElementBase)},"./src/react/dropdown-base.tsx":function(e,t,n){"use strict";n.r(t),n.d(t,"SurveyQuestionDropdownBase",(function(){return d}));var r,o=n("react"),i=n("survey-core"),s=n("./src/react/components/popup/popup.tsx"),a=n("./src/react/components/svg-icon/svg-icon.tsx"),l=n("./src/react/element-factory.tsx"),u=n("./src/react/reactquestion_comment.tsx"),c=n("./src/react/reactquestion_element.tsx"),p=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),d=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.click=function(e){var n;null===(n=t.question.dropdownListModel)||void 0===n||n.onClick(e)},t.clear=function(e){var n;null===(n=t.question.dropdownListModel)||void 0===n||n.onClear(e)},t.keyhandler=function(e){var n;null===(n=t.question.dropdownListModel)||void 0===n||n.keyHandler(e)},t.blur=function(e){var n;null===(n=t.question.dropdownListModel)||void 0===n||n.onBlur(e),t.updateInputDomElement()},t.focus=function(e){var n;null===(n=t.question.dropdownListModel)||void 0===n||n.onFocus(e)},t}return p(t,e),t.prototype.getStateElement=function(){return this.question.dropdownListModel},t.prototype.setValueCore=function(e){this.questionBase.renderedValue=e},t.prototype.getValueCore=function(){return this.questionBase.renderedValue},t.prototype.renderSelect=function(e){var t,n,r=null;if(this.question.isReadOnly){var a=this.question.selectedItemLocText?this.renderLocString(this.question.selectedItemLocText):"";r=o.createElement("div",{id:this.question.inputId,className:this.question.getControlClass(),disabled:!0},a,o.createElement("div",null,this.question.readOnlyText))}else this.question.dropdownListModel||(this.question.dropdownListModel=new i.DropdownListModel(this.question)),r=o.createElement(o.Fragment,null,this.renderInput(this.question.dropdownListModel),o.createElement(s.Popup,{model:null===(n=null===(t=this.question)||void 0===t?void 0:t.dropdownListModel)||void 0===n?void 0:n.popupModel}));return o.createElement("div",{className:e.selectWrapper,onClick:this.click},r,this.createChevronButton())},t.prototype.renderValueElement=function(e){return this.question.showInputFieldComponent?l.ReactElementFactory.Instance.createElement(this.question.inputFieldComponentName,{item:e.getSelectedAction(),question:this.question}):this.question.showSelectedItemLocText?this.renderLocString(this.question.selectedItemLocText):null},t.prototype.renderInput=function(e){var t=this,n=this.renderValueElement(e),r=i.settings.environment.root;return o.createElement("div",{id:this.question.inputId,className:this.question.getControlClass(),tabIndex:e.inputReadOnly?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-describedby":this.question.ariaDescribedBy,"aria-expanded":null===this.question.ariaExpanded?void 0:"true"===this.question.ariaExpanded,"aria-controls":e.listElementId,"aria-activedescendant":e.ariaActivedescendant},e.showHintPrefix?o.createElement("div",{className:this.question.cssClasses.hintPrefix},o.createElement("span",null,e.hintStringPrefix)):null,o.createElement("div",{className:this.question.cssClasses.controlValue},e.showHintString?o.createElement("div",{className:this.question.cssClasses.hintSuffix},o.createElement("span",{style:{visibility:"hidden"},"data-bind":"text: model.filterString"},e.inputStringRendered),o.createElement("span",null,e.hintStringSuffix)):null,n,o.createElement("input",{type:"text",autoComplete:"off",id:this.question.getInputId(),ref:function(e){return t.inputElement=e},className:this.question.cssClasses.filterStringInput,role:e.filterStringEnabled?this.question.ariaRole:void 0,"aria-label":this.question.placeholder,"aria-expanded":null===this.question.ariaExpanded?void 0:"true"===this.question.ariaExpanded,"aria-controls":e.listElementId,"aria-activedescendant":e.ariaActivedescendant,placeholder:e.placeholderRendered,readOnly:!e.searchEnabled||void 0,tabIndex:e.inputReadOnly?void 0:-1,disabled:this.question.isInputReadOnly,inputMode:e.inputMode,onChange:function(t){!function(t){t.target===r.activeElement&&(e.inputStringRendered=t.target.value)}(t)},onBlur:this.blur,onFocus:this.focus})),this.createClearButton())},t.prototype.createClearButton=function(){if(!this.question.allowClear||!this.question.cssClasses.cleanButtonIconId)return null;var e={display:this.question.isEmpty()?"none":""};return o.createElement("div",{className:this.question.cssClasses.cleanButton,style:e,onClick:this.clear},o.createElement(a.SvgIcon,{className:this.question.cssClasses.cleanButtonSvg,iconName:this.question.cssClasses.cleanButtonIconId,title:this.question.clearCaption,size:"auto"}))},t.prototype.createChevronButton=function(){return this.question.cssClasses.chevronButtonIconId?o.createElement("div",{className:this.question.cssClasses.chevronButton},o.createElement(a.SvgIcon,{className:this.question.cssClasses.chevronButtonSvg,iconName:this.question.cssClasses.chevronButtonIconId,size:24})):null},t.prototype.renderOther=function(e){return o.createElement("div",{className:this.question.getCommentAreaCss(!0)},o.createElement(u.SurveyQuestionOtherValueItem,{question:this.question,otherCss:e.other,cssClasses:e,isDisplayMode:this.isDisplayMode,isOther:!0}))},t.prototype.componentDidUpdate=function(t,n){e.prototype.componentDidUpdate.call(this,t,n),this.updateInputDomElement()},t.prototype.componentDidMount=function(){e.prototype.componentDidMount.call(this),this.updateInputDomElement()},t.prototype.updateInputDomElement=function(){if(this.inputElement){var e=this.inputElement,t=this.question.dropdownListModel.inputStringRendered;i.Helpers.isTwoValueEquals(t,e.value,!1,!0,!1)||(e.value=this.question.dropdownListModel.inputStringRendered)}},t}(c.SurveyQuestionUncontrolledElement)},"./src/react/dropdown-item.tsx":function(e,t,n){"use strict";n.r(t),n.d(t,"SurveyQuestionOptionItem",(function(){return a}));var r,o=n("react"),i=n("./src/react/reactquestion_element.tsx"),s=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),a=function(e){function t(t){var n=e.call(this,t)||this;return n.state={changed:0},n.setupModel(),n}return s(t,e),t.prototype.componentDidUpdate=function(t,n){e.prototype.componentDidUpdate.call(this,t,n),this.setupModel()},t.prototype.componentWillUnmount=function(){e.prototype.componentWillUnmount.call(this),this.item&&(this.item.locText.onChanged=function(){})},t.prototype.setupModel=function(){if(this.item.locText){var e=this;this.item.locText.onChanged=function(){e.setState({changed:e.state.changed+1})}}},t.prototype.getStateElement=function(){return this.item},Object.defineProperty(t.prototype,"item",{get:function(){return this.props.item},enumerable:!1,configurable:!0}),t.prototype.canRender=function(){return!!this.item},t.prototype.renderElement=function(){return o.createElement("option",{value:this.item.value,disabled:!this.item.isEnabled},this.item.text)},t}(i.ReactSurveyElement)},"./src/react/dropdown-select.tsx":function(e,t,n){"use strict";n.r(t),n.d(t,"SurveyQuestionDropdownSelect",(function(){return c}));var r,o=n("react"),i=n("survey-core"),s=n("./src/react/reactquestion_factory.tsx"),a=n("./src/react/reactquestion_dropdown.tsx"),l=n("./src/react/dropdown-item.tsx"),u=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),c=function(e){function t(t){return e.call(this,t)||this}return u(t,e),t.prototype.renderSelect=function(e){var t=this,n=this.isDisplayMode?o.createElement("div",{id:this.question.inputId,className:this.question.getControlClass(),disabled:!0},this.question.readOnlyText):o.createElement("select",{id:this.question.inputId,className:this.question.getControlClass(),ref:function(e){return t.setControl(e)},autoComplete:this.question.autocomplete,onChange:this.updateValueOnEvent,onInput:this.updateValueOnEvent,onClick:function(e){t.question.onClick(e)},onKeyUp:function(e){t.question.onKeyUp(e)},"aria-required":this.question.ariaRequired,"aria-label":this.question.ariaLabel,"aria-invalid":this.question.ariaInvalid,"aria-describedby":this.question.ariaDescribedBy,required:this.question.isRequired},this.question.allowClear?o.createElement("option",{value:""},this.question.placeholder):null,this.question.visibleChoices.map((function(e,t){return o.createElement(l.SurveyQuestionOptionItem,{key:"item"+t,item:e})})));return o.createElement("div",{className:e.selectWrapper},n,this.createChevronButton())},t}(a.SurveyQuestionDropdown);s.ReactQuestionFactory.Instance.registerQuestion("sv-dropdown-select",(function(e){return o.createElement(c,e)})),i.RendererFactory.Instance.registerRenderer("dropdown","select","sv-dropdown-select")},"./src/react/element-factory.tsx":function(e,t,n){"use strict";n.r(t),n.d(t,"ReactElementFactory",(function(){return r}));var r=function(){function e(){this.creatorHash={}}return e.prototype.registerElement=function(e,t){this.creatorHash[e]=t},e.prototype.getAllTypes=function(){var e=new Array;for(var t in this.creatorHash)e.push(t);return e.sort()},e.prototype.isElementRegistered=function(e){return!!this.creatorHash[e]},e.prototype.createElement=function(e,t){var n=this.creatorHash[e];return null==n?null:n(t)},e.Instance=new e,e}()},"./src/react/element-header.tsx":function(e,t,n){"use strict";n.r(t),n.d(t,"SurveyElementHeader",(function(){return c}));var r,o=n("react"),i=n.n(o),s=n("./src/react/components/action-bar/action-bar.tsx"),a=n("./src/react/components/title/title-element.tsx"),l=n("./src/react/reactquestion_element.tsx"),u=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),c=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return u(t,e),Object.defineProperty(t.prototype,"element",{get:function(){return this.props.element},enumerable:!1,configurable:!0}),t.prototype.render=function(){var e=this.element,t=e.hasTitle?i.a.createElement(a.TitleElement,{element:e}):null,n=e.hasDescriptionUnderTitle?l.SurveyElementBase.renderQuestionDescription(this.element):null,r=e.additionalTitleToolbar?i.a.createElement(s.SurveyActionBar,{model:e.additionalTitleToolbar}):null;return i.a.createElement("div",{className:e.cssHeader,onClick:e.clickTitleFunction},t,n,r)},t}(i.a.Component)},"./src/react/flow-panel.tsx":function(e,t,n){"use strict";n.r(t),n.d(t,"SurveyFlowPanel",(function(){return u}));var r,o=n("react"),i=n("./src/react/element-factory.tsx"),s=n("./src/react/panel.tsx"),a=n("./src/react/reactquestion.tsx"),l=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),u=function(e){function t(t){return e.call(this,t)||this}return l(t,e),Object.defineProperty(t.prototype,"flowPanel",{get:function(){return this.panel},enumerable:!1,configurable:!0}),t.prototype.componentDidMount=function(){e.prototype.componentDidMount.call(this),this.flowPanel&&(this.flowPanel.onCustomHtmlProducing=function(){return""},this.flowPanel.onGetHtmlForQuestion=this.renderQuestion)},t.prototype.componentWillUnmount=function(){e.prototype.componentWillUnmount.call(this),this.flowPanel&&(this.flowPanel.onCustomHtmlProducing=null,this.flowPanel.onGetHtmlForQuestion=null)},t.prototype.getQuestion=function(e){return this.flowPanel.getQuestionByName(e)},t.prototype.renderQuestion=function(e){return"<question>"+e.name+"</question>"},t.prototype.renderRows=function(){var e=this.renderHtml();return e?[e]:[]},t.prototype.getNodeIndex=function(){return this.renderedIndex++},t.prototype.renderHtml=function(){if(!this.flowPanel)return null;var e="<span>"+this.flowPanel.produceHtml()+"</span>";if(!DOMParser){var t={__html:e};return o.createElement("div",{dangerouslySetInnerHTML:t})}var n=(new DOMParser).parseFromString(e,"text/xml");return this.renderedIndex=0,this.renderParentNode(n)},t.prototype.renderNodes=function(e){for(var t=[],n=0;n<e.length;n++){var r=this.renderNode(e[n]);r&&t.push(r)}return t},t.prototype.getStyle=function(e){var t={};return"b"===e.toLowerCase()&&(t.fontWeight="bold"),"i"===e.toLowerCase()&&(t.fontStyle="italic"),"u"===e.toLowerCase()&&(t.textDecoration="underline"),t},t.prototype.renderParentNode=function(e){var t=e.nodeName.toLowerCase(),n=this.renderNodes(this.getChildDomNodes(e));return"div"===t?o.createElement("div",{key:this.getNodeIndex()},n):o.createElement("span",{key:this.getNodeIndex(),style:this.getStyle(t)},n)},t.prototype.renderNode=function(e){if(!this.hasTextChildNodesOnly(e))return this.renderParentNode(e);var t=e.nodeName.toLowerCase();if("question"===t){var n=this.flowPanel.getQuestionByName(e.textContent);if(!n)return null;var r=o.createElement(a.SurveyQuestion,{key:n.name,element:n,creator:this.creator,css:this.css});return o.createElement("span",{key:this.getNodeIndex()},r)}return"div"===t?o.createElement("div",{key:this.getNodeIndex()},e.textContent):o.createElement("span",{key:this.getNodeIndex(),style:this.getStyle(t)},e.textContent)},t.prototype.getChildDomNodes=function(e){for(var t=[],n=0;n<e.childNodes.length;n++)t.push(e.childNodes[n]);return t},t.prototype.hasTextChildNodesOnly=function(e){for(var t=e.childNodes,n=0;n<t.length;n++)if("#text"!==t[n].nodeName.toLowerCase())return!1;return!0},t.prototype.renderContent=function(e,t){return o.createElement("f-panel",{style:e},t)},t}(s.SurveyPanel);i.ReactElementFactory.Instance.registerElement("flowpanel",(function(e){return o.createElement(u,e)}))},"./src/react/image.tsx":function(e,t,n){"use strict";n.r(t),n.d(t,"SurveyQuestionImage",(function(){return u}));var r,o=n("react"),i=n("./src/react/reactquestion_element.tsx"),s=n("./src/react/reactquestion_factory.tsx"),a=n("./src/react/components/svg-icon/svg-icon.tsx"),l=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),u=function(e){function t(t){return e.call(this,t)||this}return l(t,e),t.prototype.componentDidMount=function(){var t=this;e.prototype.componentDidMount.call(this),this.question.locImageLink.onChanged=function(){t.forceUpdate()}},t.prototype.componentWillUnmount=function(){e.prototype.componentWillUnmount.call(this),this.question.locImageLink.onChanged=function(){}},Object.defineProperty(t.prototype,"question",{get:function(){return this.questionBase},enumerable:!1,configurable:!0}),t.prototype.renderElement=function(){var e=this,t=this.question.getImageCss(),n={objectFit:this.question.imageFit,width:this.question.renderedStyleWidth,height:this.question.renderedStyleHeight};this.question.imageLink&&!this.question.contentNotLoaded||(n.display="none");var r=null;"image"===this.question.renderedMode&&(r=o.createElement("img",{className:t,src:this.question.locImageLink.renderedHtml,alt:this.question.altText||this.question.title,width:this.question.renderedWidth,height:this.question.renderedHeight,style:n,onLoad:function(t){e.question.onLoadHandler()},onError:function(t){e.question.onErrorHandler()}})),"video"===this.question.renderedMode&&(r=o.createElement("video",{controls:!0,className:t,src:this.question.locImageLink.renderedHtml,width:this.question.renderedWidth,height:this.question.renderedHeight,style:n,onLoadedMetadata:function(t){e.question.onLoadHandler()},onError:function(t){e.question.onErrorHandler()}})),"youtube"===this.question.renderedMode&&(r=o.createElement("iframe",{className:t,src:this.question.locImageLink.renderedHtml,width:this.question.renderedWidth,height:this.question.renderedHeight,style:n}));var i=null;return this.question.imageLink&&!this.question.contentNotLoaded||(i=o.createElement("div",{className:this.question.cssClasses.noImage},o.createElement(a.SvgIcon,{iconName:this.question.cssClasses.noImageSvgIconId,size:48}))),o.createElement("div",{className:this.question.cssClasses.root},r,i)},t}(i.SurveyQuestionElementBase);s.ReactQuestionFactory.Instance.registerQuestion("image",(function(e){return o.createElement(u,e)}))},"./src/react/imagepicker.tsx":function(e,t,n){"use strict";n.r(t),n.d(t,"SurveyQuestionImagePicker",(function(){return c})),n.d(t,"SurveyQuestionImagePickerItem",(function(){return p}));var r,o=n("react"),i=n("./src/react/reactquestion_element.tsx"),s=n("./src/react/reactquestion_factory.tsx"),a=n("./src/react/reactsurveymodel.tsx"),l=n("./src/react/components/svg-icon/svg-icon.tsx"),u=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),c=function(e){function t(t){return e.call(this,t)||this}return u(t,e),Object.defineProperty(t.prototype,"question",{get:function(){return this.questionBase},enumerable:!1,configurable:!0}),t.prototype.renderElement=function(){var e=this.question.cssClasses;return o.createElement("fieldset",{className:this.question.getSelectBaseRootCss()},o.createElement("legend",{role:"radio","aria-label":this.question.locTitle.renderedHtml}),this.question.hasColumns?this.getColumns(e):this.getItems(e))},t.prototype.getColumns=function(e){var t=this;return this.question.columns.map((function(n,r){var i=n.map((function(n,r){return t.renderItem("item"+r,n,e)}));return o.createElement("div",{key:"column"+r,className:t.question.getColumnClass(),role:"presentation"},i)}))},t.prototype.getItems=function(e){for(var t=[],n=0;n<this.question.visibleChoices.length;n++){var r=this.question.visibleChoices[n],o="item"+n;t.push(this.renderItem(o,r,e))}return t},Object.defineProperty(t.prototype,"textStyle",{get:function(){return{marginLeft:"3px",display:"inline",position:"static"}},enumerable:!1,configurable:!0}),t.prototype.renderItem=function(e,t,n){var r=o.createElement(p,{key:e,question:this.question,item:t,cssClasses:n}),i=this.question.survey,s=null;return i&&(s=a.ReactSurveyElementsWrapper.wrapItemValue(i,r,this.question,t)),null!=s?s:r},t}(i.SurveyQuestionElementBase),p=function(e){function t(t){var n=e.call(this,t)||this;return n.handleOnChange=n.handleOnChange.bind(n),n}return u(t,e),t.prototype.getStateElement=function(){return this.item},t.prototype.componentDidMount=function(){e.prototype.componentDidMount.call(this),this.reactOnStrChanged()},t.prototype.componentWillUnmount=function(){e.prototype.componentWillUnmount.call(this),this.item.locImageLink.onChanged=function(){}},t.prototype.componentDidUpdate=function(t,n){e.prototype.componentDidUpdate.call(this,t,n),this.reactOnStrChanged()},t.prototype.reactOnStrChanged=function(){var e=this;this.item.locImageLink.onChanged=function(){e.setState({locImageLinkchanged:e.state&&e.state.locImageLink?e.state.locImageLink+1:1})}},Object.defineProperty(t.prototype,"cssClasses",{get:function(){return this.props.cssClasses},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"item",{get:function(){return this.props.item},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"question",{get:function(){return this.props.question},enumerable:!1,configurable:!0}),t.prototype.handleOnChange=function(e){if(this.question.multiSelect)if(e.target.checked)this.question.value=this.question.value.concat(e.target.value);else{var t=this.question.value;t.splice(this.question.value.indexOf(e.target.value),1),this.question.value=t}else this.question.value=e.target.value;this.setState({value:this.question.value})},t.prototype.renderElement=function(){var e=this,t=this.item,n=this.question,r=this.cssClasses,s=n.isItemSelected(t),a=n.getItemClass(t),u=null;n.showLabel&&(u=o.createElement("span",{className:n.cssClasses.itemText},t.text?i.SurveyElementBase.renderLocString(t.locText):t.value));var c={objectFit:this.question.imageFit},p=null;if(t.locImageLink.renderedHtml&&"image"===this.question.contentMode&&(p=o.createElement("img",{className:r.image,src:t.locImageLink.renderedHtml,width:this.question.renderedImageWidth,height:this.question.renderedImageHeight,alt:t.locText.renderedHtml,style:c,onLoad:function(n){e.question.onContentLoaded(t,n.nativeEvent)},onError:function(e){t.onErrorHandler(t,e.nativeEvent)}})),t.locImageLink.renderedHtml&&"video"===this.question.contentMode&&(p=o.createElement("video",{controls:!0,className:r.image,src:t.locImageLink.renderedHtml,width:this.question.renderedImageWidth,height:this.question.renderedImageHeight,style:c,onLoadedMetadata:function(n){e.question.onContentLoaded(t,n.nativeEvent)},onError:function(e){t.onErrorHandler(t,e.nativeEvent)}})),!t.locImageLink.renderedHtml||t.contentNotLoaded){var d={width:this.question.renderedImageWidth,height:this.question.renderedImageHeight,objectFit:this.question.imageFit};p=o.createElement("div",{className:r.itemNoImage,style:d},r.itemNoImageSvgIcon?o.createElement(l.SvgIcon,{className:r.itemNoImageSvgIcon,iconName:this.question.cssClasses.itemNoImageSvgIconId,size:48}):null)}return o.createElement("div",{className:a},o.createElement("label",{className:r.label},o.createElement("input",{className:r.itemControl,id:this.question.getItemId(t),type:this.question.inputType,name:this.question.questionName,checked:s,value:t.value,disabled:!this.question.getItemEnabled(t),onChange:this.handleOnChange,"aria-required":this.question.ariaRequired,"aria-label":this.question.ariaLabel,"aria-invalid":this.question.ariaInvalid,"aria-describedby":this.question.ariaDescribedBy}),o.createElement("div",{className:this.question.cssClasses.itemDecorator},o.createElement("div",{className:this.question.cssClasses.imageContainer},this.question.cssClasses.checkedItemDecorator?o.createElement("span",{className:this.question.cssClasses.checkedItemDecorator},this.question.cssClasses.checkedItemSvgIconId?o.createElement(l.SvgIcon,{size:"auto",className:this.question.cssClasses.checkedItemSvgIcon,iconName:this.question.cssClasses.checkedItemSvgIconId}):null):null,p),u)))},t}(i.ReactSurveyElement);s.ReactQuestionFactory.Instance.registerQuestion("imagepicker",(function(e){return o.createElement(c,e)}))},"./src/react/page.tsx":function(e,t,n){"use strict";n.r(t),n.d(t,"SurveyPage",(function(){return u}));var r,o=n("react"),i=n("./src/react/reactquestion_element.tsx"),s=n("./src/react/panel-base.tsx"),a=n("./src/react/components/title/title-element.tsx"),l=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),u=function(e){function t(t){return e.call(this,t)||this}return l(t,e),t.prototype.getPanelBase=function(){return this.props.page},Object.defineProperty(t.prototype,"page",{get:function(){return this.panelBase},enumerable:!1,configurable:!0}),t.prototype.renderElement=function(){var e=this.renderTitle(),t=this.renderDescription(),n=this.renderRows(this.panelBase.cssClasses);return o.createElement("div",{ref:this.rootRef,className:this.page.cssRoot},e,t,n)},t.prototype.renderTitle=function(){return o.createElement(a.TitleElement,{element:this.page})},t.prototype.renderDescription=function(){if(!this.page._showDescription)return null;var e=i.SurveyElementBase.renderLocString(this.page.locDescription);return o.createElement("div",{className:this.panelBase.cssClasses.page.description},e)},t}(s.SurveyPanelBase)},"./src/react/panel-base.tsx":function(e,t,n){"use strict";n.r(t),n.d(t,"SurveyPanelBase",(function(){return l}));var r,o=n("react"),i=n("./src/react/reactquestion_element.tsx"),s=n("./src/react/row.tsx"),a=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),l=function(e){function t(t){var n=e.call(this,t)||this;return n.renderedRowsCache={},n.rootRef=o.createRef(),n}return a(t,e),t.prototype.getStateElement=function(){return this.panelBase},t.prototype.canUsePropInState=function(t){return"elements"!==t&&e.prototype.canUsePropInState.call(this,t)},Object.defineProperty(t.prototype,"survey",{get:function(){return this.getSurvey()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"creator",{get:function(){return this.props.creator},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"css",{get:function(){return this.getCss()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"panelBase",{get:function(){return this.getPanelBase()},enumerable:!1,configurable:!0}),t.prototype.getPanelBase=function(){return this.props.element||this.props.question},t.prototype.getSurvey=function(){return this.props.survey||(this.panelBase?this.panelBase.survey:null)},t.prototype.getCss=function(){return this.props.css},t.prototype.componentDidMount=function(){e.prototype.componentDidMount.call(this),this.doAfterRender()},t.prototype.componentWillUnmount=function(){e.prototype.componentWillUnmount.call(this);var t=this.rootRef.current;t&&t.removeAttribute("data-rendered")},t.prototype.componentDidUpdate=function(t,n){e.prototype.componentDidUpdate.call(this,t,n),t.page&&this.survey&&this.survey.currentPage&&t.page.id===this.survey.currentPage.id||this.doAfterRender()},t.prototype.doAfterRender=function(){var e=this.rootRef.current;e&&this.survey&&(this.panelBase.isPanel?this.survey.afterRenderPanel(this.panelBase,e):this.survey.afterRenderPage(e))},t.prototype.canRender=function(){return e.prototype.canRender.call(this)&&!!this.survey&&!!this.panelBase&&this.panelBase.isVisible&&!!this.panelBase.survey},t.prototype.renderRows=function(e){"rows"!==this.changedStatePropName&&(this.renderedRowsCache={});for(var t=[],n=this.panelBase.rows,r=0;r<n.length;r++){var o=this.renderedRowsCache[n[r].id];o||(o=this.createRow(n[r],e),this.renderedRowsCache[n[r].id]=o),t.push(o)}return t},t.prototype.createRow=function(e,t){return o.createElement(s.SurveyRow,{key:e.id,row:e,survey:this.survey,creator:this.creator,css:t})},t}(i.SurveyElementBase)},"./src/react/panel.tsx":function(e,t,n){"use strict";n.r(t),n.d(t,"SurveyPanel",(function(){return f}));var r,o=n("react"),i=n("./src/react/reactquestion.tsx"),s=n("./src/react/reactquestion_element.tsx"),a=n("./src/react/element-factory.tsx"),l=n("./src/react/panel-base.tsx"),u=n("./src/react/reactsurveymodel.tsx"),c=n("./src/react/components/action-bar/action-bar.tsx"),p=n("./src/react/components/title/title-element.tsx"),d=n("./src/react/element-header.tsx"),h=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),f=function(e){function t(t){var n=e.call(this,t)||this;return n.hasBeenExpanded=!1,n}return h(t,e),Object.defineProperty(t.prototype,"panel",{get:function(){return this.panelBase},enumerable:!1,configurable:!0}),t.prototype.renderElement=function(){var e=this,t=this.renderHeader(),n=o.createElement(i.SurveyElementErrors,{element:this.panelBase,cssClasses:this.panelBase.cssClasses,creator:this.creator}),r={paddingLeft:this.panel.innerPaddingLeft,display:this.panel.isCollapsed?"none":void 0},s=null;if(!this.panel.isCollapsed||this.hasBeenExpanded){this.hasBeenExpanded=!0;var a=this.renderRows(this.panelBase.cssClasses),l=this.panelBase.cssClasses.panel.content;s=this.renderContent(r,a,l)}return o.createElement("div",{ref:this.rootRef,className:this.panelBase.getContainerCss(),onFocus:function(){e.panelBase&&e.panelBase.focusIn()},id:this.panelBase.id},this.panel.showErrorsAbovePanel?n:null,t,this.panel.showErrorsAbovePanel?null:n,s)},t.prototype.renderHeader=function(){return this.panel.hasTitle||this.panel.hasDescription?o.createElement(d.SurveyElementHeader,{element:this.panel}):null},t.prototype.wrapElement=function(e){var t=this.panel.survey,n=null;return t&&(n=u.ReactSurveyElementsWrapper.wrapElement(t,e,this.panel)),null!=n?n:e},t.prototype.renderContent=function(e,t,n){var r=this.renderBottom();return o.createElement("div",{style:e,className:n,id:this.panel.contentId},t,r)},t.prototype.renderTitle=function(){return this.panelBase.title?o.createElement(p.TitleElement,{element:this.panelBase}):null},t.prototype.renderDescription=function(){if(!this.panelBase.description)return null;var e=s.SurveyElementBase.renderLocString(this.panelBase.locDescription);return o.createElement("div",{className:this.panel.cssClasses.panel.description},e)},t.prototype.renderBottom=function(){var e=this.panel.getFooterToolbar();return e.hasActions?o.createElement(c.SurveyActionBar,{model:e}):null},t}(l.SurveyPanelBase);a.ReactElementFactory.Instance.registerElement("panel",(function(e){return o.createElement(f,e)}))},"./src/react/rating-dropdown.tsx":function(e,t,n){"use strict";n.r(t),n.d(t,"SurveyQuestionRatingDropdown",(function(){return u}));var r,o=n("react"),i=n("survey-core"),s=n("./src/react/dropdown-base.tsx"),a=n("./src/react/reactquestion_factory.tsx"),l=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),u=function(e){function t(t){return e.call(this,t)||this}return l(t,e),t.prototype.renderElement=function(){var e=this.question.cssClasses,t=this.renderSelect(e);return o.createElement("div",{className:this.question.cssClasses.rootDropdown},t)},t}(s.SurveyQuestionDropdownBase);a.ReactQuestionFactory.Instance.registerQuestion("sv-rating-dropdown",(function(e){return o.createElement(u,e)})),i.RendererFactory.Instance.registerRenderer("rating","dropdown","sv-rating-dropdown")},"./src/react/react-popup-survey.tsx":function(e,t,n){"use strict";n.r(t),n.d(t,"PopupSurvey",(function(){return c})),n.d(t,"SurveyWindow",(function(){return p}));var r,o=n("react"),i=n("./src/react/reactSurvey.tsx"),s=n("./src/react/reactquestion_element.tsx"),a=n("survey-core"),l=n("./src/react/components/svg-icon/svg-icon.tsx"),u=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),c=function(e){function t(t){var n=e.call(this,t)||this;return n.handleOnExpanded=n.handleOnExpanded.bind(n),n}return u(t,e),t.prototype.getStateElements=function(){return[this.popup,this.popup.survey]},t.prototype.handleOnExpanded=function(e){this.popup.changeExpandCollapse()},t.prototype.canRender=function(){return e.prototype.canRender.call(this)&&this.popup.isShowing},t.prototype.renderElement=function(){var e=this.renderWindowHeader(),t=this.popup.isExpanded?this.renderBody():null,n={position:"fixed",bottom:3,right:10};return this.popup.renderedWidth&&(n.width=this.popup.renderedWidth,n.maxWidth=this.popup.renderedWidth),o.createElement("div",{className:this.popup.cssRoot,style:n},e,t)},t.prototype.renderWindowHeader=function(){var e=this,t=this.popup.cssButton;t="glyphicon pull-right "+t;var n=s.SurveyElementBase.renderLocString(this.survey.locTitle);return o.createElement("div",{className:this.popup.cssHeaderRoot},o.createElement("span",{onClick:this.handleOnExpanded,style:{width:"100%",cursor:"pointer"}},o.createElement("span",{className:this.popup.cssHeaderTitle,style:{paddingRight:"10px"}},n),o.createElement("span",{className:t,"aria-hidden":"true"})),this.popup.allowClose?o.createElement("span",{className:this.popup.cssHeaderButton,onClick:function(){e.popup.hide()},style:{transform:"rotate(45deg)",float:"right",cursor:"pointer",width:"24px",height:"24px"}},o.createElement(l.SvgIcon,{iconName:"icon-expanddetail",size:16})):null,this.popup.isExpanded?o.createElement("span",{className:this.popup.cssHeaderButton,onClick:this.handleOnExpanded,style:{float:"right",cursor:"pointer",width:"24px",height:"24px"}},o.createElement(l.SvgIcon,{iconName:"icon-collapsedetail",size:16})):null)},t.prototype.renderBody=function(){var e=this;return o.createElement("div",{className:this.popup.cssBody,onScroll:function(){return e.popup.onScroll()}},this.doRender())},t.prototype.createSurvey=function(t){t||(t={}),e.prototype.createSurvey.call(this,t),this.popup=new a.PopupSurveyModel(null,this.survey),t.closeOnCompleteTimeout&&(this.popup.closeOnCompleteTimeout=t.closeOnCompleteTimeout),this.popup.allowClose=t.allowClose,this.popup.isShowing=!0,this.popup.isExpanded||!t.expanded&&!t.isExpanded||this.popup.expand()},t}(i.Survey),p=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return u(t,e),t}(c)},"./src/react/reactSurvey.tsx":function(e,t,n){"use strict";n.r(t),n.d(t,"Survey",(function(){return y})),n.d(t,"attachKey2click",(function(){return v}));var r,o=n("react"),i=n("survey-core"),s=n("./src/react/page.tsx"),a=n("./src/react/reactquestion_element.tsx"),l=n("./src/react/string-viewer.tsx"),u=n("./src/react/components/survey-header/survey-header.tsx"),c=n("./src/react/reactquestion_factory.tsx"),p=n("./src/react/element-factory.tsx"),d=n("./src/react/components/brand-info.tsx"),h=n("./src/react/components/notifier.tsx"),f=n("./src/react/components/components-container.tsx"),m=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),g=function(){return g=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},g.apply(this,arguments)},y=function(e){function t(t){var n=e.call(this,t)||this;return n.previousJSON={},n.isSurveyUpdated=!1,n.createSurvey(t),n.updateSurvey(t,{}),n.rootRef=o.createRef(),n.rootNodeId=t.id||null,n.rootNodeClassName=t.className||"",n}return m(t,e),Object.defineProperty(t,"cssType",{get:function(){return i.surveyCss.currentType},set:function(e){i.StylesManager.applyTheme(e)},enumerable:!1,configurable:!0}),t.prototype.getStateElement=function(){return this.survey},t.prototype.onSurveyUpdated=function(){if(this.survey){var e=this.rootRef.current;e&&this.survey.afterRenderSurvey(e),this.survey.startTimerFromUI()}},t.prototype.shouldComponentUpdate=function(t,n){return!!e.prototype.shouldComponentUpdate.call(this,t,n)&&(this.isModelJSONChanged(t)&&(this.destroySurvey(),this.createSurvey(t),this.updateSurvey(t,{}),this.isSurveyUpdated=!0),!0)},t.prototype.componentDidUpdate=function(t,n){e.prototype.componentDidUpdate.call(this,t,n),this.updateSurvey(this.props,t),this.isSurveyUpdated&&(this.onSurveyUpdated(),this.isSurveyUpdated=!1)},t.prototype.componentDidMount=function(){e.prototype.componentDidMount.call(this),this.onSurveyUpdated()},t.prototype.destroySurvey=function(){this.survey&&(this.survey.stopTimer(),this.survey.destroyResizeObserver())},t.prototype.componentWillUnmount=function(){e.prototype.componentWillUnmount.call(this),this.destroySurvey()},t.prototype.doRender=function(){var e;this.survey.needRenderIcons&&i.SvgRegistry.renderIcons(),e="completed"==this.survey.state?this.renderCompleted():"completedbefore"==this.survey.state?this.renderCompletedBefore():"loading"==this.survey.state?this.renderLoading():this.renderSurvey();var t=this.survey.renderBackgroundImage?o.createElement("div",{className:this.css.rootBackgroundImage,style:this.survey.backgroundImageStyle}):null,n=o.createElement(u.SurveyHeader,{survey:this.survey}),r=o.createElement("div",{className:"sv_custom_header"});this.survey.hasLogo&&(r=null);var s=this.survey.getRootCss(),a=this.rootNodeClassName?this.rootNodeClassName+" "+s:s;return o.createElement("div",{id:this.rootNodeId,ref:this.rootRef,className:a,style:this.survey.themeVariables},t,o.createElement("form",{onSubmit:function(e){e.preventDefault()}},r,o.createElement("div",{className:this.css.container},n,o.createElement(f.ComponentsContainer,{survey:this.survey,container:"header",needRenderWrapper:!1}),e,o.createElement(f.ComponentsContainer,{survey:this.survey,container:"footer",needRenderWrapper:!1}))),this.survey.showBrandInfo?o.createElement(d.BrandInfo,null):null,o.createElement(h.NotifierComponent,{notifier:this.survey.notifier}))},t.prototype.renderElement=function(){return this.doRender()},Object.defineProperty(t.prototype,"css",{get:function(){return this.survey.css},set:function(e){this.survey.css=e},enumerable:!1,configurable:!0}),t.prototype.renderCompleted=function(){if(!this.survey.showCompletedPage)return null;var e={__html:this.survey.processedCompletedHtml};return o.createElement(o.Fragment,null,o.createElement("div",{dangerouslySetInnerHTML:e,className:this.survey.completedCss}))},t.prototype.renderCompletedBefore=function(){var e={__html:this.survey.processedCompletedBeforeHtml};return o.createElement("div",{dangerouslySetInnerHTML:e,className:this.css.body})},t.prototype.renderLoading=function(){var e={__html:this.survey.processedLoadingHtml};return o.createElement("div",{dangerouslySetInnerHTML:e,className:this.css.body})},t.prototype.renderSurvey=function(){var e=this.survey.activePage?this.renderPage(this.survey.activePage):null,t=(this.survey.isShowStartingPage,this.survey.activePage?this.survey.activePage.id:""),n=this.survey.bodyCss;e||(n=this.css.bodyEmpty,e=this.renderEmptySurvey());var r={};return this.survey.renderedWidth&&(r.maxWidth=this.survey.renderedWidth),o.createElement("div",{className:this.survey.bodyContainerCss},o.createElement(f.ComponentsContainer,{survey:this.survey,container:"left"}),o.createElement("div",{id:t,className:n,style:r},o.createElement(f.ComponentsContainer,{survey:this.survey,container:"contentTop"}),e,o.createElement(f.ComponentsContainer,{survey:this.survey,container:"contentBottom"})),o.createElement(f.ComponentsContainer,{survey:this.survey,container:"right"}))},t.prototype.renderPage=function(e){return o.createElement(s.SurveyPage,{survey:this.survey,page:e,css:this.css,creator:this})},t.prototype.renderEmptySurvey=function(){return o.createElement("span",null,this.survey.emptySurveyText)},t.prototype.createSurvey=function(e){e||(e={}),this.previousJSON={},e?e.model?this.survey=e.model:e.json&&(this.previousJSON=e.json,this.survey=new i.SurveyModel(e.json)):this.survey=new i.SurveyModel,e.css&&(this.survey.css=this.css),this.setSurveyEvents()},t.prototype.isModelJSONChanged=function(e){return e.model?this.survey!==e.model:!!e.json&&!i.Helpers.isTwoValueEquals(e.json,this.previousJSON)},t.prototype.updateSurvey=function(e,t){if(e)for(var n in t=t||{},e)"model"!=n&&"children"!=n&&"json"!=n&&("css"!=n?e[n]!==t[n]&&(0==n.indexOf("on")&&this.survey[n]&&this.survey[n].add?(t[n]&&this.survey[n].remove(t[n]),this.survey[n].add(e[n])):this.survey[n]=e[n]):(this.survey.mergeValues(e.css,this.survey.getCss()),this.survey.updateNavigationCss(),this.survey.updateElementCss()))},t.prototype.setSurveyEvents=function(){var e=this;this.survey.renderCallback=function(){var t=e.state&&e.state.modelChanged?e.state.modelChanged:0;e.setState({modelChanged:t+1})},this.survey.onPartialSend.add((function(t){e.state&&e.setState(e.state)}))},t.prototype.createQuestionElement=function(e){return c.ReactQuestionFactory.Instance.createQuestion(e.isDefaultRendering()?e.getTemplate():e.getComponentName(),{question:e,isDisplayMode:e.isInputReadOnly,creator:this})},t.prototype.renderError=function(e,t,n){return o.createElement("div",{key:e},o.createElement("span",{className:n.error.icon||void 0,"aria-hidden":"true"}),o.createElement("span",{className:n.error.item||void 0},o.createElement(l.SurveyLocStringViewer,{locStr:t.locText})))},t.prototype.questionTitleLocation=function(){return this.survey.questionTitleLocation},t.prototype.questionErrorLocation=function(){return this.survey.questionErrorLocation},t}(a.SurveyElementBase);function v(e,t,n){return void 0===n&&(n={processEsc:!0,disableTabStop:!1}),t&&t.disableTabStop||n&&n.disableTabStop?o.cloneElement(e,{tabIndex:-1}):(n=g({},n),o.cloneElement(e,{tabIndex:0,onKeyUp:function(e){return e.preventDefault(),e.stopPropagation(),Object(i.doKey2ClickUp)(e,n),!1},onKeyDown:function(e){return Object(i.doKey2ClickDown)(e,n)},onBlur:function(e){return Object(i.doKey2ClickBlur)(e)}}))}p.ReactElementFactory.Instance.registerElement("survey",(function(e){return o.createElement(y,e)}))},"./src/react/reactSurveyNavigationBase.tsx":function(e,t,n){"use strict";n.r(t),n.d(t,"SurveyNavigationBase",(function(){return s}));var r,o=n("react"),i=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),s=function(e){function t(t){var n=e.call(this,t)||this;return n.updateStateFunction=null,n.state={update:0},n}return i(t,e),Object.defineProperty(t.prototype,"survey",{get:function(){return this.props.survey},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"css",{get:function(){return this.props.css||this.survey.css},enumerable:!1,configurable:!0}),t.prototype.componentDidMount=function(){if(this.survey){var e=this;this.updateStateFunction=function(){e.setState({update:e.state.update+1})},this.survey.onPageVisibleChanged.add(this.updateStateFunction)}},t.prototype.componentWillUnmount=function(){this.survey&&this.updateStateFunction&&(this.survey.onPageVisibleChanged.remove(this.updateStateFunction),this.updateStateFunction=null)},t}(o.Component)},"./src/react/reactSurveyProgress.tsx":function(e,t,n){"use strict";n.r(t),n.d(t,"SurveyProgress",(function(){return u}));var r,o=n("react"),i=n("survey-core"),s=n("./src/react/reactSurveyNavigationBase.tsx"),a=n("./src/react/element-factory.tsx"),l=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),u=function(e){function t(t){return e.call(this,t)||this}return l(t,e),Object.defineProperty(t.prototype,"isTop",{get:function(){return this.props.isTop},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"progress",{get:function(){return this.survey.progressValue},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"progressText",{get:function(){return this.survey.progressText},enumerable:!1,configurable:!0}),t.prototype.render=function(){var e={width:this.progress+"%"};return o.createElement("div",{className:this.survey.getProgressCssClasses()},o.createElement("div",{style:e,className:this.css.progressBar,role:"progressbar","aria-valuemin":0,"aria-valuemax":100},o.createElement("span",{className:i.SurveyProgressModel.getProgressTextInBarCss(this.css)},this.progressText)),o.createElement("span",{className:i.SurveyProgressModel.getProgressTextUnderBarCss(this.css)},this.progressText))},t}(s.SurveyNavigationBase);a.ReactElementFactory.Instance.registerElement("sv-progress-pages",(function(e){return o.createElement(u,e)})),a.ReactElementFactory.Instance.registerElement("sv-progress-questions",(function(e){return o.createElement(u,e)})),a.ReactElementFactory.Instance.registerElement("sv-progress-correctquestions",(function(e){return o.createElement(u,e)})),a.ReactElementFactory.Instance.registerElement("sv-progress-requiredquestions",(function(e){return o.createElement(u,e)}))},"./src/react/reactSurveyProgressButtons.tsx":function(e,t,n){"use strict";n.r(t),n.d(t,"SurveyProgressButtons",(function(){return u}));var r,o=n("react"),i=n("survey-core"),s=n("./src/react/reactSurveyNavigationBase.tsx"),a=n("./src/react/element-factory.tsx"),l=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),u=function(e){function t(t){var n=e.call(this,t)||this;return n.updateScroller=void 0,n.progressButtonsModel=new i.SurveyProgressButtonsModel(n.survey),n.listContainerRef=o.createRef(),n}return l(t,e),t.prototype.render=function(){var e=this;return o.createElement("div",{className:this.css.progressButtonsContainerCenter},o.createElement("div",{className:this.css.progressButtonsContainer},o.createElement("div",{className:this.getScrollButtonCss(!0),role:"button",onClick:function(){return e.clickScrollButton(e.listContainerRef.current,!0)}}),o.createElement("div",{className:this.css.progressButtonsListContainer,ref:this.listContainerRef},o.createElement("ul",{className:this.css.progressButtonsList},this.getListElements())),o.createElement("div",{className:this.getScrollButtonCss(!1),role:"button",onClick:function(){return e.clickScrollButton(e.listContainerRef.current,!1)}})))},t.prototype.getListElements=function(){var e=this,t=[];return this.survey.visiblePages.forEach((function(n,r){t.push(e.renderListElement(n,r))})),t},t.prototype.renderListElement=function(e,t){var n=this;return o.createElement("li",{key:"listelement"+t,className:this.getListElementCss(t),onClick:this.isListElementClickable(t)?function(){return n.clickListElement(t)}:void 0},o.createElement("div",{className:this.css.progressButtonsPageTitle,title:e.navigationTitle||e.name},e.navigationTitle||e.name),o.createElement("div",{className:this.css.progressButtonsPageDescription,title:e.navigationDescription},e.navigationDescription))},t.prototype.isListElementClickable=function(e){return this.progressButtonsModel.isListElementClickable(e)},t.prototype.getListElementCss=function(e){return this.progressButtonsModel.getListElementCss(e)},t.prototype.clickListElement=function(e){this.progressButtonsModel.clickListElement(e)},t.prototype.getScrollButtonCss=function(e){return this.progressButtonsModel.getScrollButtonCss(this.state.hasScroller,e)},t.prototype.clickScrollButton=function(e,t){e&&(e.scrollLeft+=70*(t?-1:1))},t.prototype.componentDidMount=function(){var e=this;this.updateScroller=setInterval((function(){e.listContainerRef.current&&e.setState({hasScroller:e.listContainerRef.current.scrollWidth>e.listContainerRef.current.offsetWidth})}),100)},t.prototype.componentWillUnmount=function(){void 0!==this.updateScroller&&(clearInterval(this.updateScroller),this.updateScroller=void 0)},t}(s.SurveyNavigationBase);a.ReactElementFactory.Instance.registerElement("sv-progress-buttons",(function(e){return o.createElement(u,e)}))},"./src/react/reactSurveyProgressToc.tsx":function(e,t,n){"use strict";n.r(t),n.d(t,"SurveyProgressToc",(function(){return d}));var r,o=n("react"),i=n("survey-core"),s=n("./src/react/reactSurveyNavigationBase.tsx"),a=n("./src/react/element-factory.tsx"),l=n("./src/react/components/list/list.tsx"),u=n("./src/react/components/popup/popup.tsx"),c=n("./src/react/components/svg-icon/svg-icon.tsx"),p=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),d=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return p(t,e),t.prototype.render=function(){var e,t=new i.TOCModel(this.props.model);return e=t.isMobile?o.createElement("div",{onClick:t.togglePopup},o.createElement(c.SvgIcon,{iconName:t.icon,size:24}),o.createElement(u.Popup,{model:t.popupModel})):o.createElement(l.List,{model:t.listModel}),o.createElement("div",{className:t.containerCss},e)},t}(s.SurveyNavigationBase);a.ReactElementFactory.Instance.registerElement("sv-progress-toc",(function(e){return o.createElement(d,e)}))},"./src/react/reactquestion.tsx":function(e,t,n){"use strict";n.r(t),n.d(t,"SurveyQuestion",(function(){return h})),n.d(t,"SurveyElementErrors",(function(){return f})),n.d(t,"SurveyQuestionAndErrorsWrapped",(function(){return m})),n.d(t,"SurveyQuestionAndErrorsCell",(function(){return g}));var r,o=n("react"),i=n("survey-core"),s=n("./src/react/reactsurveymodel.tsx"),a=n("./src/react/element-factory.tsx"),l=n("./src/react/reactquestion_element.tsx"),u=n("./src/react/reactquestion_comment.tsx"),c=n("./src/react/custom-widget.tsx"),p=n("./src/react/element-header.tsx"),d=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),h=function(e){function t(t){var n=e.call(this,t)||this;return n.isNeedFocus=!1,n.rootRef=o.createRef(),n}return d(t,e),t.renderQuestionBody=function(e,t){return t.isVisible?t.customWidget?o.createElement(c.SurveyCustomWidget,{creator:e,question:t}):e.createQuestionElement(t):null},t.prototype.getStateElement=function(){return this.question},Object.defineProperty(t.prototype,"question",{get:function(){return this.props.element},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"creator",{get:function(){return this.props.creator},enumerable:!1,configurable:!0}),t.prototype.componentDidMount=function(){e.prototype.componentDidMount.call(this),this.question&&(this.question.react=this),this.doAfterRender()},t.prototype.componentWillUnmount=function(){e.prototype.componentWillUnmount.call(this),this.question&&(this.question.react=null);var t=this.rootRef.current;t&&t.removeAttribute("data-rendered")},t.prototype.componentDidUpdate=function(t,n){e.prototype.componentDidUpdate.call(this,t,n),this.doAfterRender()},t.prototype.doAfterRender=function(){if(this.isNeedFocus&&(this.question.isCollapsed||this.question.clickTitleFunction(),this.isNeedFocus=!1),this.question){var e=this.rootRef.current;e&&"r"!==e.getAttribute("data-rendered")&&(e.setAttribute("data-rendered","r"),e.setAttribute("data-name",this.question.name),this.question.afterRender&&this.question.afterRender(e))}},t.prototype.canRender=function(){return e.prototype.canRender.call(this)&&!!this.question&&!!this.creator&&this.question.isVisible},t.prototype.renderQuestionContent=function(){var e=this.question,t={display:this.question.isCollapsed?"none":""},n=e.cssClasses,r=this.renderQuestion(),i=this.question.showErrorOnTop?this.renderErrors(n,"top"):null,s=this.question.showErrorOnBottom?this.renderErrors(n,"bottom"):null,a=e&&e.hasComment?this.renderComment(n):null,l=this.question.isErrorsModeTooltip?this.renderErrors(n,"tooltip"):null,u=e.hasDescriptionUnderInput?this.renderDescription():null;return o.createElement("div",{className:e.cssContent||void 0,style:t,role:"presentation"},i,r,a,s,l,u)},t.prototype.renderElement=function(){var e=this.question,t=e.cssClasses,n=this.renderHeader(e),r=e.hasTitleOnLeftTop?n:null,i=e.hasTitleOnBottom?n:null,s=this.question.showErrorsAboveQuestion?this.renderErrors(t,""):null,a=this.question.showErrorsBelowQuestion?this.renderErrors(t,""):null,l=e.getRootStyle(),u=this.wrapQuestionContent(this.renderQuestionContent());return o.createElement(o.Fragment,null,o.createElement("div",{ref:this.rootRef,id:e.id,className:e.getRootCss(),style:l,role:e.ariaRole,"aria-required":this.question.ariaRequired,"aria-invalid":this.question.ariaInvalid,"aria-labelledby":e.ariaLabelledBy,"aria-expanded":null===e.ariaExpanded?void 0:"true"===e.ariaExpanded},s,r,u,i,a))},t.prototype.wrapElement=function(e){var t=this.question.survey,n=null;return t&&(n=s.ReactSurveyElementsWrapper.wrapElement(t,e,this.question)),null!=n?n:e},t.prototype.wrapQuestionContent=function(e){var t=this.question.survey,n=null;return t&&(n=s.ReactSurveyElementsWrapper.wrapQuestionContent(t,e,this.question)),null!=n?n:e},t.prototype.renderQuestion=function(){return t.renderQuestionBody(this.creator,this.question)},t.prototype.renderDescription=function(){return l.SurveyElementBase.renderQuestionDescription(this.question)},t.prototype.renderComment=function(e){var t=l.SurveyElementBase.renderLocString(this.question.locCommentText);return o.createElement("div",{className:this.question.getCommentAreaCss()},o.createElement("div",null,t),o.createElement(u.SurveyQuestionCommentItem,{question:this.question,cssClasses:e,otherCss:e.other,isDisplayMode:this.question.isInputReadOnly}))},t.prototype.renderHeader=function(e){return o.createElement(p.SurveyElementHeader,{element:e})},t.prototype.renderErrors=function(e,t){return o.createElement(f,{element:this.question,cssClasses:e,creator:this.creator,location:t,id:this.question.id+"_errors"})},t}(l.SurveyElementBase);a.ReactElementFactory.Instance.registerElement("question",(function(e){return o.createElement(h,e)}));var f=function(e){function t(t){var n=e.call(this,t)||this;return n.state=n.getState(),n.tooltipRef=o.createRef(),n}return d(t,e),Object.defineProperty(t.prototype,"id",{get:function(){return this.props.element.id+"_errors"},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"element",{get:function(){return this.props.element},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"creator",{get:function(){return this.props.creator},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"location",{get:function(){return this.props.location},enumerable:!1,configurable:!0}),t.prototype.getState=function(e){return void 0===e&&(e=null),e?{error:e.error+1}:{error:0}},t.prototype.canRender=function(){return!!this.element&&this.element.hasVisibleErrors},t.prototype.componentDidUpdate=function(t,n){e.prototype.componentDidUpdate.call(this,t,n),"tooltip"==this.props.location&&(this.tooltipRef.current&&!this.tooltipManager&&(this.tooltipManager=new i.TooltipManager(this.tooltipRef.current)),this.tooltipManager&&!this.tooltipRef.current&&this.disposeTooltipManager())},t.prototype.componentWillUnmount=function(){this.tooltipManager&&this.disposeTooltipManager()},t.prototype.disposeTooltipManager=function(){var e;null===(e=this.tooltipManager)||void 0===e||e.dispose(),this.tooltipManager=void 0},t.prototype.renderElement=function(){for(var e=[],t=0;t<this.element.errors.length;t++){var n="error"+t;e.push(this.creator.renderError(n,this.element.errors[t],this.cssClasses))}return o.createElement("div",{role:"alert","aria-live":"polite",className:this.element.cssError,id:this.id,ref:this.tooltipRef},e)},t}(l.ReactSurveyElement),m=function(e){function t(t){return e.call(this,t)||this}return d(t,e),t.prototype.getStateElement=function(){return this.question},Object.defineProperty(t.prototype,"question",{get:function(){return this.getQuestion()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"creator",{get:function(){return this.props.creator},enumerable:!1,configurable:!0}),t.prototype.getQuestion=function(){return this.props.question},Object.defineProperty(t.prototype,"itemCss",{get:function(){return this.props.itemCss},enumerable:!1,configurable:!0}),t.prototype.componentDidMount=function(){e.prototype.componentDidMount.call(this),this.doAfterRender()},t.prototype.componentDidUpdate=function(t,n){e.prototype.componentDidUpdate.call(this,t,n),this.doAfterRender()},t.prototype.doAfterRender=function(){},t.prototype.canRender=function(){return!!this.question},t.prototype.renderErrors=function(e){return this.getShowErrors()?o.createElement(f,{element:this.question,cssClasses:this.cssClasses,creator:this.creator,location:e}):null},t.prototype.renderContent=function(){var e=this.creator.questionErrorLocation(),t=this.renderErrors(e),n=this.question.showErrorOnTop?t:null,r=this.question.showErrorOnBottom?t:null,i=this.renderQuestion();return o.createElement(o.Fragment,null,n,i,r)},t.prototype.getShowErrors=function(){return this.question.isVisible},t.prototype.renderQuestion=function(){return h.renderQuestionBody(this.creator,this.question)},t}(l.ReactSurveyElement),g=function(e){function t(t){var n=e.call(this,t)||this;return n.cellRef=o.createRef(),n}return d(t,e),t.prototype.componentWillUnmount=function(){if(e.prototype.componentWillUnmount.call(this),this.question){var t=this.cellRef.current;t&&t.removeAttribute("data-rendered")}},t.prototype.renderElement=function(){var e=this.getCellStyle();return o.createElement("td",{ref:this.cellRef,className:this.itemCss,colSpan:this.props.cell.colSpans,"data-responsive-title":this.getHeaderText(),title:this.props.cell.getTitle(),style:e},this.wrapCell(this.props.cell,o.createElement("div",{className:this.cssClasses.cellQuestionWrapper},this.renderQuestion())))},t.prototype.getCellStyle=function(){return null},t.prototype.getHeaderText=function(){return""},t.prototype.wrapCell=function(e,t){if(!e)return t;var n=this.question.survey,r=null;return n&&(r=s.ReactSurveyElementsWrapper.wrapMatrixCell(n,t,e,this.props.reason)),null!=r?r:t},t}(m)},"./src/react/reactquestion_buttongroup.tsx":function(e,t,n){"use strict";n.r(t),n.d(t,"SurveyQuestionButtonGroup",(function(){return c})),n.d(t,"SurveyButtonGroupItem",(function(){return p}));var r,o=n("./src/react/reactquestion_element.tsx"),i=n("react"),s=n.n(i),a=n("./src/react/components/svg-icon/svg-icon.tsx"),l=n("survey-core"),u=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),c=function(e){function t(t){return e.call(this,t)||this}return u(t,e),Object.defineProperty(t.prototype,"question",{get:function(){return this.questionBase},enumerable:!1,configurable:!0}),t.prototype.getStateElement=function(){return this.question},t.prototype.renderElement=function(){var e=this.renderItems();return s.a.createElement("div",{className:this.question.cssClasses.root},e)},t.prototype.renderItems=function(){var e=this;return this.question.visibleChoices.map((function(t,n){return s.a.createElement(p,{key:e.question.inputId+"_"+n,item:t,question:e.question,index:n})}))},t}(o.SurveyQuestionElementBase),p=function(e){function t(t){return e.call(this,t)||this}return u(t,e),Object.defineProperty(t.prototype,"index",{get:function(){return this.props.index},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"question",{get:function(){return this.props.question},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"item",{get:function(){return this.props.item},enumerable:!1,configurable:!0}),t.prototype.getStateElement=function(){return this.item},t.prototype.renderElement=function(){this.model=new l.ButtonGroupItemModel(this.question,this.item,this.index);var e=this.renderIcon(),t=this.renderInput(),n=this.renderCaption();return s.a.createElement("label",{role:"radio",className:this.model.css.label,title:this.model.caption.renderedHtml},t,s.a.createElement("div",{className:this.model.css.decorator},e,n))},t.prototype.renderIcon=function(){return this.model.iconName?s.a.createElement(a.SvgIcon,{className:this.model.css.icon,iconName:this.model.iconName,size:this.model.iconSize||24}):null},t.prototype.renderInput=function(){var e=this;return s.a.createElement("input",{className:this.model.css.control,id:this.model.id,type:"radio",name:this.model.name,checked:this.model.selected,value:this.model.value,disabled:this.model.readOnly,onChange:function(){e.model.onChange()},"aria-required":this.model.isRequired,"aria-label":this.model.caption.renderedHtml,"aria-invalid":this.model.hasErrors,"aria-describedby":this.model.describedBy,role:"radio"})},t.prototype.renderCaption=function(){if(!this.model.showCaption)return null;var e=this.renderLocString(this.model.caption);return s.a.createElement("span",{className:this.model.css.caption,title:this.model.caption.renderedHtml},e)},t}(o.SurveyElementBase)},"./src/react/reactquestion_checkbox.tsx":function(e,t,n){"use strict";n.r(t),n.d(t,"SurveyQuestionCheckbox",(function(){return p})),n.d(t,"SurveyQuestionCheckboxItem",(function(){return d}));var r,o=n("react"),i=n("./src/react/reactquestion_element.tsx"),s=n("./src/react/reactquestion_comment.tsx"),a=n("./src/react/reactquestion_factory.tsx"),l=n("./src/react/reactsurveymodel.tsx"),u=n("./src/react/element-factory.tsx"),c=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),p=function(e){function t(t){return e.call(this,t)||this}return c(t,e),Object.defineProperty(t.prototype,"question",{get:function(){return this.questionBase},enumerable:!1,configurable:!0}),t.prototype.renderElement=function(){var e=this,t=this.question.cssClasses;return o.createElement("fieldset",{role:"presentation",className:this.question.getSelectBaseRootCss(),ref:function(t){return e.setControl(t)}},o.createElement("legend",{role:"presentation",className:"sv-hidden"}),this.getHeader(),this.question.hasColumns?this.getColumnedBody(t):this.getBody(t),this.getFooter(),this.question.isOtherSelected?this.renderOther():null)},t.prototype.getHeader=function(){var e=this;if(this.question.hasHeadItems)return this.question.headItems.map((function(t,n){return e.renderItem("item_h"+n,t,!1,e.question.cssClasses)}))},t.prototype.getFooter=function(){var e=this;if(this.question.hasFootItems)return this.question.footItems.map((function(t,n){return e.renderItem("item_f"+n,t,!1,e.question.cssClasses)}))},t.prototype.getColumnedBody=function(e){return o.createElement("div",{className:e.rootMultiColumn},this.getColumns(e))},t.prototype.getColumns=function(e){var t=this;return this.question.columns.map((function(n,r){var i=n.map((function(n,o){return t.renderItem("item"+o,n,0===r&&0===o,e,""+r+o)}));return o.createElement("div",{key:"column"+r,className:t.question.getColumnClass(),role:"presentation"},i)}))},t.prototype.getBody=function(e){return this.question.blockedRow?o.createElement("div",{className:e.rootRow},this.getItems(e,this.question.dataChoices)):o.createElement(o.Fragment,null,this.getItems(e,this.question.bodyItems))},t.prototype.getItems=function(e,t){for(var n=[],r=0;r<t.length;r++){var o=t[r],i="item"+r,s=this.renderItem(i,o,0==r,e,""+r);s&&n.push(s)}return n},Object.defineProperty(t.prototype,"textStyle",{get:function(){return null},enumerable:!1,configurable:!0}),t.prototype.renderOther=function(){var e=this.question.cssClasses;return o.createElement("div",{className:this.question.getCommentAreaCss(!0)},o.createElement(s.SurveyQuestionOtherValueItem,{question:this.question,otherCss:e.other,cssClasses:e,isDisplayMode:this.isDisplayMode}))},t.prototype.renderItem=function(e,t,n,r,o){var i=u.ReactElementFactory.Instance.createElement(this.question.itemComponent,{key:e,question:this.question,cssClasses:r,isDisplayMode:this.isDisplayMode,item:t,textStyle:this.textStyle,index:o,isFirst:n}),s=this.question.survey,a=null;return s&&i&&(a=l.ReactSurveyElementsWrapper.wrapItemValue(s,i,this.question,t)),null!=a?a:i},t}(i.SurveyQuestionElementBase),d=function(e){function t(t){var n=e.call(this,t)||this;return n.handleOnChange=function(e){n.question.clickItemHandler(n.item,e.target.checked)},n.selectAllChanged=function(e){n.question.toggleSelectAll()},n}return c(t,e),t.prototype.getStateElement=function(){return this.item},Object.defineProperty(t.prototype,"question",{get:function(){return this.props.question},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"item",{get:function(){return this.props.item},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"textStyle",{get:function(){return this.props.textStyle},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isFirst",{get:function(){return this.props.isFirst},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"index",{get:function(){return this.props.index},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hideCaption",{get:function(){return!0===this.props.hideCaption},enumerable:!1,configurable:!0}),t.prototype.shouldComponentUpdate=function(t,n){return!(!e.prototype.shouldComponentUpdate.call(this,t,n)||!this.question||this.question.customWidget&&!this.question.customWidgetData.isNeedRender&&!this.question.customWidget.widgetJson.isDefaultRender&&!this.question.customWidget.widgetJson.render)},t.prototype.canRender=function(){return!!this.item&&!!this.question},t.prototype.renderElement=function(){var e=this.question.isItemSelected(this.item);return this.renderCheckbox(e,null)},Object.defineProperty(t.prototype,"inputStyle",{get:function(){return null},enumerable:!1,configurable:!0}),t.prototype.renderCheckbox=function(e,t){var n=this.question.getItemId(this.item),r=(this.hideCaption||this.renderLocString(this.item.locText),this.question.getItemClass(this.item)),i=this.question.getLabelClass(this.item),s=this.item==this.question.selectAllItem?this.selectAllChanged:this.handleOnChange,a=this.hideCaption?null:o.createElement("span",{className:this.cssClasses.controlLabel},this.renderLocString(this.item.locText,this.textStyle));return o.createElement("div",{className:r,role:"presentation"},o.createElement("label",{className:i,"aria-label":this.question.getAriaItemLabel(this.item)},o.createElement("input",{className:this.cssClasses.itemControl,role:"option",type:"checkbox",name:this.question.name,value:"selectall"!=this.item.value?this.item.value:void 0,id:n,style:this.inputStyle,disabled:!this.question.getItemEnabled(this.item),checked:e,onChange:s,"aria-describedby":this.question.ariaDescribedBy}),this.cssClasses.materialDecorator?o.createElement("span",{className:this.cssClasses.materialDecorator},this.question.itemSvgIcon?o.createElement("svg",{className:this.cssClasses.itemDecorator},o.createElement("use",{xlinkHref:this.question.itemSvgIcon})):null):null,a),t)},t}(i.ReactSurveyElement);u.ReactElementFactory.Instance.registerElement("survey-checkbox-item",(function(e){return o.createElement(d,e)})),a.ReactQuestionFactory.Instance.registerQuestion("checkbox",(function(e){return o.createElement(p,e)}))},"./src/react/reactquestion_comment.tsx":function(e,t,n){"use strict";n.r(t),n.d(t,"SurveyQuestionComment",(function(){return u})),n.d(t,"SurveyQuestionCommentItem",(function(){return c})),n.d(t,"SurveyQuestionOtherValueItem",(function(){return p}));var r,o=n("react"),i=n("./src/react/reactquestion_element.tsx"),s=n("./src/react/reactquestion_factory.tsx"),a=n("./src/react/components/character-counter.tsx"),l=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),u=function(e){function t(t){return e.call(this,t)||this}return l(t,e),t.prototype.renderElement=function(){var e=this,t=this.question.isInputTextUpdate?void 0:this.updateValueOnEvent,n=this.question.renderedPlaceholder;if(this.question.isReadOnlyRenderDiv())return o.createElement("div",null,this.question.value);var r=this.question.getMaxLength()?o.createElement(a.CharacterCounterComponent,{counter:this.question.characterCounter,remainingCharacterCounter:this.question.cssClasses.remainingCharacterCounter}):null;return o.createElement(o.Fragment,null,o.createElement("textarea",{id:this.question.inputId,className:this.question.className,disabled:this.question.isInputReadOnly,readOnly:this.question.isInputReadOnly,ref:function(t){return e.setControl(t)},maxLength:this.question.getMaxLength(),placeholder:n,onBlur:t,onInput:function(t){e.question.isInputTextUpdate?e.updateValueOnEvent(t):e.question.updateElement();var n=t.target.value;e.question.updateRemainingCharacterCounter(n)},onKeyDown:function(t){e.question.onKeyDown(t)},cols:this.question.cols,rows:this.question.rows,"aria-required":this.question.a11y_input_ariaRequired,"aria-label":this.question.a11y_input_ariaLabel,"aria-labelledby":this.question.a11y_input_ariaLabelledBy,"aria-invalid":this.question.a11y_input_ariaInvalid,"aria-describedby":this.question.a11y_input_ariaDescribedBy,style:{resize:this.question.resizeStyle}}),r)},t}(i.SurveyQuestionUncontrolledElement),c=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return l(t,e),t.prototype.canRender=function(){return!!this.props.question},t.prototype.onCommentChange=function(e){this.props.question.onCommentChange(e)},t.prototype.onCommentInput=function(e){this.props.question.onCommentInput(e)},t.prototype.getComment=function(){return this.props.question.comment},t.prototype.getId=function(){return this.props.question.commentId},t.prototype.getPlaceholder=function(){return this.props.question.commentPlaceholder},t.prototype.renderElement=function(){var e=this,t=this.props.question,n=this.props.otherCss||this.cssClasses.comment,r=function(t){e.setState({comment:t.target.value}),e.onCommentChange(t)},i=this.getComment(),s=this.state?this.state.comment:void 0;void 0!==s&&s.trim()!==i&&(s=i);var a=void 0!==s?s:i||"";return t.isReadOnlyRenderDiv()?o.createElement("div",null,a):o.createElement("textarea",{id:this.getId(),className:n,value:a,disabled:this.isDisplayMode,maxLength:t.getOthersMaxLength(),placeholder:this.getPlaceholder(),onChange:r,onBlur:function(t){e.onCommentChange(t),r(t)},onInput:function(t){return e.onCommentInput(t)},"aria-required":t.isRequired,"aria-label":t.locTitle.renderedHtml,style:{resize:t.resizeStyle}})},t}(i.ReactSurveyElement),p=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return l(t,e),t.prototype.onCommentChange=function(e){this.props.question.onOtherValueChange(e)},t.prototype.onCommentInput=function(e){this.props.question.onOtherValueInput(e)},t.prototype.getComment=function(){return this.props.question.otherValue},t.prototype.getId=function(){return this.props.question.otherId},t.prototype.getPlaceholder=function(){return this.props.question.otherPlaceholder},t}(c);s.ReactQuestionFactory.Instance.registerQuestion("comment",(function(e){return o.createElement(u,e)}))},"./src/react/reactquestion_custom.tsx":function(e,t,n){"use strict";n.r(t),n.d(t,"SurveyQuestionCustom",(function(){return c})),n.d(t,"SurveyQuestionComposite",(function(){return p}));var r,o=n("react"),i=n("./src/react/reactquestion_element.tsx"),s=n("./src/react/reactquestion.tsx"),a=n("./src/react/reactquestion_factory.tsx"),l=n("./src/react/panel.tsx"),u=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),c=function(e){function t(t){return e.call(this,t)||this}return u(t,e),t.prototype.getStateElements=function(){var t=e.prototype.getStateElements.call(this);return this.question.contentQuestion&&t.push(this.question.contentQuestion),t},t.prototype.renderElement=function(){return s.SurveyQuestion.renderQuestionBody(this.creator,this.question.contentQuestion)},t}(i.SurveyQuestionUncontrolledElement),p=function(e){function t(t){return e.call(this,t)||this}return u(t,e),t.prototype.canRender=function(){return!!this.question.contentPanel},t.prototype.renderElement=function(){return o.createElement(l.SurveyPanel,{element:this.question.contentPanel,creator:this.creator,survey:this.question.survey})},t}(i.SurveyQuestionUncontrolledElement);a.ReactQuestionFactory.Instance.registerQuestion("custom",(function(e){return o.createElement(c,e)})),a.ReactQuestionFactory.Instance.registerQuestion("composite",(function(e){return o.createElement(p,e)}))},"./src/react/reactquestion_dropdown.tsx":function(e,t,n){"use strict";n.r(t),n.d(t,"SurveyQuestionDropdown",(function(){return l}));var r,o=n("react"),i=n("./src/react/reactquestion_factory.tsx"),s=n("./src/react/dropdown-base.tsx"),a=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),l=function(e){function t(t){return e.call(this,t)||this}return a(t,e),t.prototype.renderElement=function(){var e=this.question.cssClasses,t=this.question.isOtherSelected?this.renderOther(e):null,n=this.renderSelect(e);return o.createElement("div",{className:this.question.renderCssRoot},n,t)},t}(s.SurveyQuestionDropdownBase);i.ReactQuestionFactory.Instance.registerQuestion("dropdown",(function(e){return o.createElement(l,e)}))},"./src/react/reactquestion_element.tsx":function(e,t,n){"use strict";n.r(t),n.d(t,"SurveyElementBase",(function(){return u})),n.d(t,"ReactSurveyElement",(function(){return c})),n.d(t,"SurveyQuestionElementBase",(function(){return p})),n.d(t,"SurveyQuestionUncontrolledElement",(function(){return d}));var r,o=n("react"),i=n("survey-core"),s=n("./src/react/element-factory.tsx"),a=n("./src/react/reactsurveymodel.tsx"),l=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),u=function(e){function t(t){var n=e.call(this,t)||this;return n._allowComponentUpdate=!0,n}return l(t,e),t.renderLocString=function(e,t,n){return void 0===t&&(t=null),s.ReactElementFactory.Instance.createElement(e.renderAs,{locStr:e.renderAsData,style:t,key:n})},t.renderQuestionDescription=function(e){var n=t.renderLocString(e.locDescription);return o.createElement("div",{style:e.hasDescription?void 0:{display:"none"},className:e.cssDescription},n)},t.prototype.componentDidMount=function(){this.makeBaseElementsReact()},t.prototype.componentWillUnmount=function(){this.unMakeBaseElementsReact()},t.prototype.componentDidUpdate=function(e,t){this.makeBaseElementsReact()},t.prototype.allowComponentUpdate=function(){this._allowComponentUpdate=!0,this.forceUpdate()},t.prototype.denyComponentUpdate=function(){this._allowComponentUpdate=!1},t.prototype.shouldComponentUpdate=function(e,t){return this._allowComponentUpdate&&this.unMakeBaseElementsReact(),this._allowComponentUpdate},t.prototype.render=function(){if(!this.canRender())return null;this.startEndRendering(1);var e=this.renderElement();return this.startEndRendering(-1),e&&(e=this.wrapElement(e)),this.changedStatePropNameValue=void 0,e},t.prototype.wrapElement=function(e){return e},Object.defineProperty(t.prototype,"isRendering",{get:function(){for(var e=0,t=this.getRenderedElements();e<t.length;e++)if(t[e].reactRendering>0)return!0;return!1},enumerable:!1,configurable:!0}),t.prototype.getRenderedElements=function(){return this.getStateElements()},t.prototype.startEndRendering=function(e){for(var t=0,n=this.getRenderedElements();t<n.length;t++){var r=n[t];r.reactRendering||(r.reactRendering=0),r.reactRendering+=e}},t.prototype.canRender=function(){return!0},t.prototype.renderElement=function(){return null},Object.defineProperty(t.prototype,"changedStatePropName",{get:function(){return this.changedStatePropNameValue},enumerable:!1,configurable:!0}),t.prototype.makeBaseElementsReact=function(){for(var e=this.getStateElements(),t=0;t<e.length;t++)this.makeBaseElementReact(e[t])},t.prototype.unMakeBaseElementsReact=function(){for(var e=this.getStateElements(),t=0;t<e.length;t++)this.unMakeBaseElementReact(e[t])},t.prototype.getStateElements=function(){var e=this.getStateElement();return e?[e]:[]},t.prototype.getStateElement=function(){return null},Object.defineProperty(t.prototype,"isDisplayMode",{get:function(){return this.props.isDisplayMode||!1},enumerable:!1,configurable:!0}),t.prototype.renderLocString=function(e,n,r){return void 0===n&&(n=null),t.renderLocString(e,n,r)},t.prototype.canMakeReact=function(e){return!!e&&!!e.iteratePropertiesHash},t.prototype.makeBaseElementReact=function(e){var t=this;this.canMakeReact(e)&&(e.iteratePropertiesHash((function(e,n){if(t.canUsePropInState(n)){var r=e[n];Array.isArray(r)&&(r.onArrayChanged=function(e){t.isRendering||(t.changedStatePropNameValue=n,t.setState((function(e){var t={};return t[n]=r,t})))})}})),e.setPropertyValueCoreHandler=function(e,n,r){if(e[n]!==r){if(e[n]=r,!t.canUsePropInState(n))return;if(t.isRendering)return;t.changedStatePropNameValue=n,t.setState((function(e){var t={};return t[n]=r,t}))}})},t.prototype.canUsePropInState=function(e){return!0},t.prototype.unMakeBaseElementReact=function(e){this.canMakeReact(e)&&(e.setPropertyValueCoreHandler=void 0,e.iteratePropertiesHash((function(e,t){var n=e[t];Array.isArray(n)&&(n.onArrayChanged=function(){})})))},t}(o.Component),c=function(e){function t(t){return e.call(this,t)||this}return l(t,e),Object.defineProperty(t.prototype,"cssClasses",{get:function(){return this.props.cssClasses},enumerable:!1,configurable:!0}),t}(u),p=function(e){function t(t){return e.call(this,t)||this}return l(t,e),t.prototype.componentDidUpdate=function(t,n){e.prototype.componentDidUpdate.call(this,t,n),this.updateDomElement()},t.prototype.componentDidMount=function(){e.prototype.componentDidMount.call(this),this.updateDomElement()},t.prototype.componentWillUnmount=function(){if(e.prototype.componentWillUnmount.call(this),this.questionBase){var t=this.control;this.questionBase.beforeDestroyQuestionElement(t),t&&t.removeAttribute("data-rendered")}},t.prototype.updateDomElement=function(){var e=this.control;e&&"r"!==e.getAttribute("data-rendered")&&(e.setAttribute("data-rendered","r"),this.questionBase.afterRenderQuestionElement(e))},Object.defineProperty(t.prototype,"questionBase",{get:function(){return this.props.question},enumerable:!1,configurable:!0}),t.prototype.getRenderedElements=function(){return[this.questionBase]},Object.defineProperty(t.prototype,"creator",{get:function(){return this.props.creator},enumerable:!1,configurable:!0}),t.prototype.canRender=function(){return!!this.questionBase&&!!this.creator},t.prototype.shouldComponentUpdate=function(t,n){return!(!e.prototype.shouldComponentUpdate.call(this,t,n)||this.questionBase.customWidget&&!this.questionBase.customWidgetData.isNeedRender&&!this.questionBase.customWidget.widgetJson.isDefaultRender&&!this.questionBase.customWidget.widgetJson.render)},Object.defineProperty(t.prototype,"isDisplayMode",{get:function(){return this.props.isDisplayMode||!!this.questionBase&&this.questionBase.isInputReadOnly||!1},enumerable:!1,configurable:!0}),t.prototype.wrapCell=function(e,t,n){if(!n)return t;var r=this.questionBase.survey,o=null;return r&&(o=a.ReactSurveyElementsWrapper.wrapMatrixCell(r,t,e,n)),null!=o?o:t},t.prototype.setControl=function(e){e&&(this.control=e)},t}(u),d=function(e){function t(t){var n=e.call(this,t)||this;return n.updateValueOnEvent=function(e){i.Helpers.isTwoValueEquals(n.questionBase.value,e.target.value,!1,!0,!1)||n.setValueCore(e.target.value)},n.updateValueOnEvent=n.updateValueOnEvent.bind(n),n}return l(t,e),Object.defineProperty(t.prototype,"question",{get:function(){return this.questionBase},enumerable:!1,configurable:!0}),t.prototype.setValueCore=function(e){this.questionBase.value=e},t.prototype.getValueCore=function(){return this.questionBase.value},t.prototype.updateDomElement=function(){if(this.control){var t=this.control,n=this.getValueCore();i.Helpers.isTwoValueEquals(n,t.value,!1,!0,!1)||(t.value=this.getValue(n))}e.prototype.updateDomElement.call(this)},t.prototype.getValue=function(e){return i.Helpers.isValueEmpty(e)?"":e},t}(p)},"./src/react/reactquestion_empty.tsx":function(e,t,n){"use strict";n.r(t),n.d(t,"SurveyQuestionEmpty",(function(){return l}));var r,o=n("react"),i=n("./src/react/reactquestion_element.tsx"),s=n("./src/react/reactquestion_factory.tsx"),a=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),l=function(e){function t(t){var n=e.call(this,t)||this;return n.state={value:n.question.value},n}return a(t,e),Object.defineProperty(t.prototype,"question",{get:function(){return this.questionBase},enumerable:!1,configurable:!0}),t.prototype.renderElement=function(){return o.createElement("div",null)},t}(i.SurveyQuestionElementBase);s.ReactQuestionFactory.Instance.registerQuestion("empty",(function(e){return o.createElement(l,e)}))},"./src/react/reactquestion_expression.tsx":function(e,t,n){"use strict";n.r(t),n.d(t,"SurveyQuestionExpression",(function(){return l}));var r,o=n("react"),i=n("./src/react/reactquestion_element.tsx"),s=n("./src/react/reactquestion_factory.tsx"),a=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),l=function(e){function t(t){return e.call(this,t)||this}return a(t,e),Object.defineProperty(t.prototype,"question",{get:function(){return this.questionBase},enumerable:!1,configurable:!0}),t.prototype.renderElement=function(){var e=this,t=this.question.cssClasses;return o.createElement("div",{id:this.question.inputId,className:t.root,ref:function(t){return e.setControl(t)}},this.question.formatedValue)},t}(i.SurveyQuestionElementBase);s.ReactQuestionFactory.Instance.registerQuestion("expression",(function(e){return o.createElement(l,e)}))},"./src/react/reactquestion_factory.tsx":function(e,t,n){"use strict";n.r(t),n.d(t,"ReactQuestionFactory",(function(){return r}));var r=function(){function e(){this.creatorHash={}}return e.prototype.registerQuestion=function(e,t){this.creatorHash[e]=t},e.prototype.getAllTypes=function(){var e=new Array;for(var t in this.creatorHash)e.push(t);return e.sort()},e.prototype.createQuestion=function(e,t){var n=this.creatorHash[e];return null==n?null:n(t)},e.Instance=new e,e}()},"./src/react/reactquestion_file.tsx":function(e,t,n){"use strict";n.r(t),n.d(t,"SurveyQuestionFile",(function(){return p}));var r,o=n("react"),i=n("./src/react/components/action-bar/action-bar.tsx"),s=n("./src/react/components/svg-icon/svg-icon.tsx"),a=n("./src/react/reactquestion_element.tsx"),l=n("./src/react/reactquestion_factory.tsx"),u=n("./src/react/reactSurvey.tsx"),c=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),p=function(e){function t(t){return e.call(this,t)||this}return c(t,e),Object.defineProperty(t.prototype,"question",{get:function(){return this.questionBase},enumerable:!1,configurable:!0}),t.prototype.renderElement=function(){var e,t=this,n=this.renderPreview(),r=this.renderFileDecorator(),s=this.renderClearButton(this.question.showRemoveButton),a=this.renderClearButton(this.question.showRemoveButtonBottom),l=this.question.mobileFileNavigatorVisible?o.createElement(i.SurveyActionBar,{model:this.question.mobileFileNavigator}):null;return e=this.isDisplayMode?o.createElement("input",{type:"file",disabled:this.isDisplayMode,className:this.isDisplayMode?this.question.getReadOnlyFileCss():this.question.cssClasses.fileInput,id:this.question.inputId,ref:function(e){return t.setControl(e)},style:this.isDisplayMode?{color:"transparent"}:{},onChange:this.isDisplayMode?function(){}:this.question.doChange,multiple:this.question.allowMultiple,placeholder:this.question.title,accept:this.question.acceptedTypes}):o.createElement("input",{type:"file",disabled:this.isDisplayMode,tabIndex:-1,className:this.isDisplayMode?this.question.getReadOnlyFileCss():this.question.cssClasses.fileInput,id:this.question.inputId,ref:function(e){return t.setControl(e)},style:this.isDisplayMode?{color:"transparent"}:{},onChange:this.isDisplayMode?function(){}:this.question.doChange,"aria-required":this.question.ariaRequired,"aria-label":this.question.ariaLabel,"aria-invalid":this.question.ariaInvalid,"aria-describedby":this.question.ariaDescribedBy,multiple:this.question.allowMultiple,title:this.question.inputTitle,accept:this.question.acceptedTypes,capture:this.question.renderCapture}),o.createElement("div",{className:this.question.fileRootCss},e,o.createElement("div",{className:this.question.cssClasses.dragArea,onDrop:this.question.onDrop,onDragOver:this.question.onDragOver,onDragLeave:this.question.onDragLeave,onDragEnter:this.question.onDragEnter},r,s,n,a,l))},t.prototype.renderFileDecorator=function(){this.question.cssClasses;var e,t=null;return e=this.question.isReadOnly?null:Object(u.attachKey2click)(o.createElement("label",{role:"button",tabIndex:0,className:this.question.getChooseFileCss(),htmlFor:this.question.inputId,"aria-label":this.question.chooseButtonText},o.createElement("span",null,this.question.chooseButtonText),this.question.cssClasses.chooseFileIconId?o.createElement(s.SvgIcon,{title:this.question.chooseButtonText,iconName:this.question.cssClasses.chooseFileIconId,size:"auto"}):null)),this.question.isEmpty()&&(t=o.createElement("span",{className:this.question.cssClasses.noFileChosen},this.question.noFileChosenCaption)),o.createElement("div",{className:this.question.getFileDecoratorCss()},o.createElement("span",{className:this.question.cssClasses.dragAreaPlaceholder},this.question.dragAreaPlaceholder),o.createElement("div",{className:this.question.cssClasses.wrapper},e,t))},t.prototype.renderClearButton=function(e){return e?o.createElement("button",{type:"button",onClick:this.question.doClean,className:e},o.createElement("span",null,this.question.clearButtonCaption),this.question.cssClasses.removeButtonIconId?o.createElement(s.SvgIcon,{iconName:this.question.cssClasses.removeButtonIconId,size:"auto",title:this.question.clearButtonCaption}):null):null},t.prototype.renderFileSign=function(e,t){var n=this;return e&&t.name?o.createElement("div",{className:e},o.createElement("a",{href:t.content,onClick:function(e){n.question.doDownloadFile(e,t)},title:t.name,download:t.name,style:{width:this.question.imageWidth}},t.name)):null},t.prototype.renderPreview=function(){var e=this;if(!this.question.previewValue||!this.question.previewValue.length)return null;var t=this.question.previewValue.map((function(t,n){return t?o.createElement("span",{key:e.question.inputId+"_"+n,className:e.question.cssClasses.preview,style:{display:e.question.isPreviewVisible(n)?void 0:"none"}},e.renderFileSign(e.question.cssClasses.fileSign,t),o.createElement("div",{className:e.question.cssClasses.imageWrapper},e.question.canPreviewImage(t)?o.createElement("img",{src:t.content,style:{height:e.question.imageHeight,width:e.question.imageWidth},alt:"File preview"}):e.question.cssClasses.defaultImage?o.createElement(s.SvgIcon,{iconName:e.question.cssClasses.defaultImageIconId,size:"auto",className:e.question.cssClasses.defaultImage}):null,t.name&&!e.question.isReadOnly?o.createElement("div",{className:e.question.cssClasses.removeFileButton,onClick:function(){return e.question.doRemoveFile(t)}},o.createElement("span",{className:e.question.cssClasses.removeFile},e.question.removeFileCaption),e.question.cssClasses.removeFileSvgIconId?o.createElement(s.SvgIcon,{title:e.question.removeFileCaption,iconName:e.question.cssClasses.removeFileSvgIconId,size:"auto",className:e.question.cssClasses.removeFileSvg}):null):null),e.renderFileSign(e.question.cssClasses.fileSignBottom,t)):null}));return o.createElement("div",{className:this.question.cssClasses.fileList||void 0},t)},t}(a.SurveyQuestionElementBase);l.ReactQuestionFactory.Instance.registerQuestion("file",(function(e){return o.createElement(p,e)}))},"./src/react/reactquestion_html.tsx":function(e,t,n){"use strict";n.r(t),n.d(t,"SurveyQuestionHtml",(function(){return l}));var r,o=n("react"),i=n("./src/react/reactquestion_element.tsx"),s=n("./src/react/reactquestion_factory.tsx"),a=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),l=function(e){function t(t){return e.call(this,t)||this}return a(t,e),Object.defineProperty(t.prototype,"question",{get:function(){return this.questionBase},enumerable:!1,configurable:!0}),t.prototype.componentDidMount=function(){this.reactOnStrChanged()},t.prototype.componentWillUnmount=function(){this.question.locHtml.onChanged=function(){}},t.prototype.componentDidUpdate=function(e,t){this.reactOnStrChanged()},t.prototype.reactOnStrChanged=function(){var e=this;this.question.locHtml.onChanged=function(){e.setState({changed:e.state&&e.state.changed?e.state.changed+1:1})}},t.prototype.canRender=function(){return e.prototype.canRender.call(this)&&!!this.question.html},t.prototype.renderElement=function(){var e={__html:this.question.locHtml.renderedHtml};return o.createElement("div",{className:this.question.renderCssRoot,dangerouslySetInnerHTML:e})},t}(i.SurveyQuestionElementBase);s.ReactQuestionFactory.Instance.registerQuestion("html",(function(e){return o.createElement(l,e)}))},"./src/react/reactquestion_matrix.tsx":function(e,t,n){"use strict";n.r(t),n.d(t,"SurveyQuestionMatrix",(function(){return u})),n.d(t,"SurveyQuestionMatrixRow",(function(){return c}));var r,o=n("react"),i=n("./src/react/reactquestion_element.tsx"),s=n("./src/react/reactquestion_factory.tsx"),a=n("./src/react/reactsurveymodel.tsx"),l=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),u=function(e){function t(t){var n=e.call(this,t)||this;return n.state={rowsChanged:0},n}return l(t,e),Object.defineProperty(t.prototype,"question",{get:function(){return this.questionBase},enumerable:!1,configurable:!0}),t.prototype.componentDidMount=function(){if(e.prototype.componentDidMount.call(this),this.question){var t=this;this.question.visibleRowsChangedCallback=function(){t.setState({rowsChanged:t.state.rowsChanged+1})}}},t.prototype.componentWillUnmount=function(){e.prototype.componentWillUnmount.call(this),this.question&&(this.question.visibleRowsChangedCallback=null)},t.prototype.renderElement=function(){for(var e=this,t=this.question.cssClasses,n=this.question.hasRows?o.createElement("td",null):null,r=[],i=0;i<this.question.visibleColumns.length;i++){var s=this.question.visibleColumns[i],a="column"+i,l=this.renderLocString(s.locText),u={};this.question.columnMinWidth&&(u.minWidth=this.question.columnMinWidth,u.width=this.question.columnMinWidth),r.push(o.createElement("th",{className:this.question.cssClasses.headerCell,style:u,key:a},this.wrapCell({column:s},l,"column-header")))}var p=[],d=this.question.visibleRows;for(i=0;i<d.length;i++){var h=d[i];a="row-"+h.name+"-"+i,p.push(o.createElement(c,{key:a,question:this.question,cssClasses:t,isDisplayMode:this.isDisplayMode,row:h,isFirst:0==i}))}var f=this.question.showHeader?o.createElement("thead",null,o.createElement("tr",null,n,r)):null;return o.createElement("div",{className:t.tableWrapper,ref:function(t){return e.setControl(t)}},o.createElement("fieldset",null,o.createElement("legend",{"aria-label":this.question.locTitle.renderedHtml}),o.createElement("table",{className:this.question.getTableCss()},f,o.createElement("tbody",null,p))))},t}(i.SurveyQuestionElementBase),c=function(e){function t(t){var n=e.call(this,t)||this;return n.handleOnChange=n.handleOnChange.bind(n),n.handleOnMouseDown=n.handleOnMouseDown.bind(n),n}return l(t,e),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.handleOnChange=function(e){this.row.value=e.target.value,this.setState({value:this.row.value})},t.prototype.handleOnMouseDown=function(e){this.question.onMouseDown()},t.prototype.wrapCell=function(e,t,n){if(!n)return t;var r=this.question.survey,o=null;return r&&(o=a.ReactSurveyElementsWrapper.wrapMatrixCell(r,t,e,n)),null!=o?o:t},t.prototype.canRender=function(){return!!this.row},t.prototype.renderElement=function(){var e=null;if(this.question.hasRows){var t=this.renderLocString(this.row.locText),n={};this.question.rowTitleWidth&&(n.minWidth=this.question.rowTitleWidth,n.width=this.question.rowTitleWidth),e=o.createElement("td",{style:n,className:this.question.cssClasses.rowTextCell},this.wrapCell({row:this.row},t,"row-header"))}var r=this.generateTds();return o.createElement("tr",{className:this.row.rowClasses||void 0},e,r)},t.prototype.generateTds=function(){for(var e=this,t=[],n=this.row,r=0;r<this.question.visibleColumns.length;r++){var i=null,s=this.question.visibleColumns[r],a="value"+r,l=n.value==s.value,u=this.question.getItemClass(n,s),c=this.question.inputId+"_"+n.name+"_"+r;if(this.question.hasCellText){var p=this.question.isInputReadOnly?null:function(t){return function(){return e.cellClick(n,t)}};i=o.createElement("td",{key:a,className:u,onClick:p?p(s):function(){}},this.renderLocString(this.question.getCellDisplayLocText(n.name,s)))}else i=o.createElement("td",{key:a,"data-responsive-title":s.locText.renderedHtml,className:this.question.cssClasses.cell},o.createElement("label",{onMouseDown:this.handleOnMouseDown,className:u},o.createElement("input",{id:c,type:"radio",className:this.cssClasses.itemValue,name:n.fullName,value:s.value,disabled:this.isDisplayMode,checked:l,onChange:this.handleOnChange,"aria-required":this.question.ariaRequired,"aria-label":s.locText.renderedHtml,"aria-invalid":this.question.ariaInvalid,"aria-describedby":this.question.ariaDescribedBy}),o.createElement("span",{className:this.question.cssClasses.materialDecorator},this.question.itemSvgIcon?o.createElement("svg",{className:this.cssClasses.itemDecorator},o.createElement("use",{xlinkHref:this.question.itemSvgIcon})):null),o.createElement("span",{style:this.question.isMobile?void 0:{display:"none"},className:this.question.cssClasses.cellResponsiveTitle},this.renderLocString(s.locText))));t.push(i)}return t},t.prototype.cellClick=function(e,t){e.value=t.value,this.setState({value:this.row.value})},t}(i.ReactSurveyElement);s.ReactQuestionFactory.Instance.registerQuestion("matrix",(function(e){return o.createElement(u,e)}))},"./src/react/reactquestion_matrixdropdown.tsx":function(e,t,n){"use strict";n.r(t),n.d(t,"SurveyQuestionMatrixDropdown",(function(){return l}));var r,o=n("react"),i=n("./src/react/reactquestion_matrixdropdownbase.tsx"),s=n("./src/react/reactquestion_factory.tsx"),a=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),l=function(e){function t(t){return e.call(this,t)||this}return a(t,e),t}(i.SurveyQuestionMatrixDropdownBase);s.ReactQuestionFactory.Instance.registerQuestion("matrixdropdown",(function(e){return o.createElement(l,e)}))},"./src/react/reactquestion_matrixdropdownbase.tsx":function(e,t,n){"use strict";n.r(t),n.d(t,"SurveyQuestionMatrixDropdownBase",(function(){return g})),n.d(t,"SurveyQuestionMatrixDropdownCell",(function(){return b})),n.d(t,"SurveyQuestionMatrixDropdownErrorCell",(function(){return C}));var r,o=n("react"),i=n("./src/react/reactquestion_element.tsx"),s=n("./src/react/reactquestion.tsx"),a=n("./src/react/reactquestion_checkbox.tsx"),l=n("./src/react/reactquestion_radiogroup.tsx"),u=n("./src/react/panel.tsx"),c=n("./src/react/components/action-bar/action-bar.tsx"),p=n("./src/react/components/matrix/row.tsx"),d=n("./src/react/components/matrix-actions/drag-drop-icon/drag-drop-icon.tsx"),h=n("./src/react/reactquestion_comment.tsx"),f=n("./src/react/element-factory.tsx"),m=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),g=function(e){function t(t){var n=e.call(this,t)||this;return n.question.renderedTable,n.state=n.getState(),n}return m(t,e),Object.defineProperty(t.prototype,"question",{get:function(){return this.questionBase},enumerable:!1,configurable:!0}),t.prototype.getState=function(e){return void 0===e&&(e=null),{rowCounter:e?e.rowCounter+1:0}},t.prototype.updateStateOnCallback=function(){this.isRendering||this.setState(this.getState(this.state))},t.prototype.componentDidMount=function(){var t=this;e.prototype.componentDidMount.call(this),this.question.visibleRowsChangedCallback=function(){t.updateStateOnCallback()},this.question.onRenderedTableResetCallback=function(){t.question.renderedTable.renderedRowsChangedCallback=function(){t.updateStateOnCallback()},t.updateStateOnCallback()},this.question.renderedTable.renderedRowsChangedCallback=function(){t.updateStateOnCallback()}},t.prototype.componentWillUnmount=function(){e.prototype.componentWillUnmount.call(this),this.question.visibleRowsChangedCallback=function(){},this.question.onRenderedTableResetCallback=function(){},this.question.renderedTable.renderedRowsChangedCallback=function(){}},t.prototype.renderElement=function(){return this.renderTableDiv()},t.prototype.renderTableDiv=function(){var e=this,t=this.renderHeader(),n=this.renderFooter(),r=this.renderRows(),i=this.question.showHorizontalScroll?{overflowX:"scroll"}:{};return o.createElement("div",{style:i,className:this.question.cssClasses.tableWrapper,ref:function(t){return e.setControl(t)}},o.createElement("table",{className:this.question.getTableCss()},t,r,n))},t.prototype.renderHeader=function(){var e=this.question.renderedTable;if(!e.showHeader)return null;for(var t=[],n=e.headerRow.cells,r=0;r<n.length;r++){var i=n[r],s="column"+r,a={};i.width&&(a.width=i.width),i.minWidth&&(a.minWidth=i.minWidth);var l=this.renderCellContent(i,"column-header",{}),u=i.hasTitle?o.createElement("th",{className:i.className,key:s,style:a}," ",l," "):o.createElement("td",{className:i.className,key:s,style:a});t.push(u)}return o.createElement("thead",null,o.createElement("tr",null,t))},t.prototype.renderFooter=function(){var e=this.question.renderedTable;if(!e.showFooter)return null;var t=this.renderRow("footer",e.footerRow,this.question.cssClasses,"row-footer");return o.createElement("tfoot",null,t)},t.prototype.renderRows=function(){for(var e=this.question.cssClasses,t=[],n=this.question.renderedTable.rows,r=0;r<n.length;r++)t.push(this.renderRow(n[r].id,n[r],e));return o.createElement("tbody",null,t)},t.prototype.renderRow=function(e,t,n,r){for(var i=[],s=t.cells,a=0;a<s.length;a++)i.push(this.renderCell(s[a],a,n,r));var l="row"+e;return o.createElement(o.Fragment,{key:l},o.createElement(p.MatrixRow,{model:t,parentMatrix:this.question},i))},t.prototype.renderCell=function(e,t,n,r){var i="cell"+t;if(e.hasQuestion)return o.createElement(b,{key:i,cssClasses:n,cell:e,creator:this.creator,reason:r});var s=r;s||(s=e.hasTitle?"row-header":"");var a=this.renderCellContent(e,s,n),l=null;return(e.width||e.minWidth)&&(l={},e.width&&(l.width=e.width),e.minWidth&&(l.minWidth=e.minWidth)),o.createElement("td",{className:e.className,key:i,style:l,colSpan:e.colSpans,"data-responsive-title":e.headers,title:e.getTitle()},a)},t.prototype.renderCellContent=function(e,t,n){var r=null,i=null;if((e.width||e.minWidth)&&(i={},e.width&&(i.width=e.width),e.minWidth&&(i.minWidth=e.minWidth)),e.hasTitle){t="row-header";var s=this.renderLocString(e.locTitle),a=e.column?o.createElement(v,{column:e.column,question:this.question}):null;r=o.createElement(o.Fragment,null,s,a)}if(e.isDragHandlerCell&&(r=o.createElement(o.Fragment,null,o.createElement(d.SurveyQuestionMatrixDynamicDragDropIcon,{item:{data:{row:e.row,question:this.question}}}))),e.isActionsCell&&(r=f.ReactElementFactory.Instance.createElement("sv-matrixdynamic-actions-cell",{question:this.question,cssClasses:n,cell:e,model:e.item.getData()})),e.hasPanel&&(r=o.createElement(u.SurveyPanel,{key:e.panel.id,element:e.panel,survey:this.question.survey,cssClasses:n,isDisplayMode:this.isDisplayMode,creator:this.creator})),e.isErrorsCell&&e.isErrorsCell)return o.createElement(C,{cell:e,creator:this.creator});if(!r)return null;var l=o.createElement(o.Fragment,null,r);return this.wrapCell(e,l,t)},t}(i.SurveyQuestionElementBase),y=function(e){function t(t){return e.call(this,t)||this}return m(t,e),Object.defineProperty(t.prototype,"model",{get:function(){return this.props.model},enumerable:!1,configurable:!0}),t.prototype.renderElement=function(){return o.createElement(c.SurveyActionBar,{model:this.model,handleClick:!1})},t}(i.ReactSurveyElement);f.ReactElementFactory.Instance.registerElement("sv-matrixdynamic-actions-cell",(function(e){return o.createElement(y,e)}));var v=function(e){function t(t){return e.call(this,t)||this}return m(t,e),Object.defineProperty(t.prototype,"column",{get:function(){return this.props.column},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"question",{get:function(){return this.props.question},enumerable:!1,configurable:!0}),t.prototype.getStateElement=function(){return this.column},t.prototype.renderElement=function(){return this.column.isRenderedRequired?o.createElement(o.Fragment,null,o.createElement("span",null," "),o.createElement("span",{className:this.question.cssClasses.cellRequiredText},this.column.requiredText)):null},t}(i.ReactSurveyElement),b=function(e){function t(t){return e.call(this,t)||this}return m(t,e),Object.defineProperty(t.prototype,"cell",{get:function(){return this.props.cell},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"itemCss",{get:function(){return this.cell?this.cell.className:""},enumerable:!1,configurable:!0}),t.prototype.getQuestion=function(){return e.prototype.getQuestion.call(this)||(this.cell?this.cell.question:null)},t.prototype.doAfterRender=function(){var e=this.cellRef.current;if(e&&this.cell&&this.question&&this.question.survey&&"r"!==e.getAttribute("data-rendered")){e.setAttribute("data-rendered","r");var t={cell:this.cell,cellQuestion:this.question,htmlElement:e,row:this.cell.row,column:this.cell.cell.column};this.question.survey.matrixAfterCellRender(this.question,t)}},t.prototype.getShowErrors=function(){return this.question.isVisible&&(!this.cell.isChoice||this.cell.isFirstChoice)},t.prototype.getCellStyle=function(){var t=e.prototype.getCellStyle.call(this);return(this.cell.width||this.cell.minWidth)&&(t||(t={}),this.cell.width&&(t.width=this.cell.width),this.cell.minWidth&&(t.minWidth=this.cell.minWidth)),t},t.prototype.getHeaderText=function(){return this.cell.headers},t.prototype.renderQuestion=function(){return this.cell.isChoice?this.cell.isOtherChoice?this.renderOtherComment():this.cell.isCheckbox?this.renderCellCheckboxButton():this.renderCellRadiogroupButton():s.SurveyQuestion.renderQuestionBody(this.creator,this.question)},t.prototype.renderOtherComment=function(){var e=this.cell.question,t=e.cssClasses||{};return o.createElement(h.SurveyQuestionOtherValueItem,{question:e,cssClasses:t,otherCss:t.other,isDisplayMode:e.isInputReadOnly})},t.prototype.renderCellCheckboxButton=function(){var e=this.cell.question.id+"item"+this.cell.choiceIndex;return o.createElement(a.SurveyQuestionCheckboxItem,{key:e,question:this.cell.question,cssClasses:this.cell.question.cssClasses,isDisplayMode:this.cell.question.isInputReadOnly,item:this.cell.item,isFirst:this.cell.isFirstChoice,index:this.cell.choiceIndex.toString(),hideCaption:!0})},t.prototype.renderCellRadiogroupButton=function(){var e=this.cell.question.id+"item"+this.cell.choiceIndex;return o.createElement(l.SurveyQuestionRadioItem,{key:e,question:this.cell.question,cssClasses:this.cell.question.cssClasses,isDisplayMode:this.cell.question.isInputReadOnly,item:this.cell.item,index:this.cell.choiceIndex.toString(),isChecked:this.cell.question.value===this.cell.item.value,isDisabled:this.cell.question.isReadOnly||!this.cell.item.isEnabled,hideCaption:!0})},t}(s.SurveyQuestionAndErrorsCell),C=function(e){function t(t){var n=e.call(this,t)||this;return n.state={changed:0},n.cell&&n.registerCallback(n.cell),n}return m(t,e),Object.defineProperty(t.prototype,"cell",{get:function(){return this.props.cell},enumerable:!1,configurable:!0}),t.prototype.update=function(){this.setState({changed:this.state.changed+1})},t.prototype.registerCallback=function(e){var t=this;e.question.registerFunctionOnPropertyValueChanged("errors",(function(){t.update()}),"__reactSubscription")},t.prototype.unRegisterCallback=function(e){e.question.unRegisterFunctionOnPropertyValueChanged("errors","__reactSubscription")},t.prototype.componentDidUpdate=function(e){e.cell&&e.cell!==this.cell&&this.unRegisterCallback(e.cell),this.cell&&this.registerCallback(this.cell)},t.prototype.componentWillUnmount=function(){this.cell&&this.unRegisterCallback(this.cell)},t.prototype.render=function(){return o.createElement(s.SurveyElementErrors,{element:this.cell.question,creator:this.props.creator,cssClasses:this.cell.question.cssClasses})},t}(o.Component)},"./src/react/reactquestion_matrixdynamic.tsx":function(e,t,n){"use strict";n.r(t),n.d(t,"SurveyQuestionMatrixDynamic",(function(){return c})),n.d(t,"SurveyQuestionMatrixDynamicAddButton",(function(){return p}));var r,o=n("react"),i=n("./src/react/reactquestion_factory.tsx"),s=n("./src/react/reactquestion_matrixdropdownbase.tsx"),a=n("./src/react/element-factory.tsx"),l=n("./src/react/reactquestion_element.tsx"),u=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),c=function(e){function t(t){var n=e.call(this,t)||this;return n.handleOnRowAddClick=n.handleOnRowAddClick.bind(n),n}return u(t,e),Object.defineProperty(t.prototype,"matrix",{get:function(){return this.questionBase},enumerable:!1,configurable:!0}),t.prototype.handleOnRowAddClick=function(e){this.matrix.addRowUI()},t.prototype.renderElement=function(){var e=this.question.cssClasses,t=this.question.renderedTable.showTable?this.renderTableDiv():this.renderNoRowsContent(e);return o.createElement("div",null,this.renderAddRowButtonOnTop(e),t,this.renderAddRowButtonOnBottom(e))},t.prototype.renderAddRowButtonOnTop=function(e){return this.matrix.renderedTable.showAddRowOnTop?this.renderAddRowButton(e):null},t.prototype.renderAddRowButtonOnBottom=function(e){return this.matrix.renderedTable.showAddRowOnBottom?this.renderAddRowButton(e):null},t.prototype.renderNoRowsContent=function(e){var t=this.renderLocString(this.matrix.locEmptyRowsText),n=o.createElement("div",{className:e.emptyRowsText},t),r=this.renderAddRowButton(e,!0);return o.createElement("div",{className:e.emptyRowsSection},n,r)},t.prototype.renderAddRowButton=function(e,t){return void 0===t&&(t=!1),a.ReactElementFactory.Instance.createElement("sv-matrixdynamic-add-btn",{question:this.question,cssClasses:e,isEmptySection:t})},t}(s.SurveyQuestionMatrixDropdownBase);i.ReactQuestionFactory.Instance.registerQuestion("matrixdynamic",(function(e){return o.createElement(c,e)}));var p=function(e){function t(t){var n=e.call(this,t)||this;return n.handleOnRowAddClick=n.handleOnRowAddClick.bind(n),n}return u(t,e),Object.defineProperty(t.prototype,"matrix",{get:function(){return this.props.question},enumerable:!1,configurable:!0}),t.prototype.handleOnRowAddClick=function(e){this.matrix.addRowUI()},t.prototype.renderElement=function(){var e=this.renderLocString(this.matrix.locAddRowText),t=o.createElement("button",{className:this.matrix.getAddRowButtonCss(this.props.isEmptySection),type:"button",disabled:this.matrix.isInputReadOnly,onClick:this.matrix.isDesignMode?void 0:this.handleOnRowAddClick},e,o.createElement("span",{className:this.props.cssClasses.iconAdd}));return this.props.isEmptySection?t:o.createElement("div",{className:this.props.cssClasses.footer},t)},t}(l.ReactSurveyElement);a.ReactElementFactory.Instance.registerElement("sv-matrixdynamic-add-btn",(function(e){return o.createElement(p,e)}))},"./src/react/reactquestion_multipletext.tsx":function(e,t,n){"use strict";n.r(t),n.d(t,"SurveyQuestionMultipleText",(function(){return c})),n.d(t,"SurveyMultipleTextItem",(function(){return p})),n.d(t,"SurveyMultipleTextItemEditor",(function(){return d}));var r,o=n("react"),i=n("./src/react/reactquestion_element.tsx"),s=n("./src/react/reactquestion.tsx"),a=n("./src/react/reactquestion_factory.tsx"),l=n("./src/react/components/title/title-content.tsx"),u=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),c=function(e){function t(t){return e.call(this,t)||this}return u(t,e),Object.defineProperty(t.prototype,"question",{get:function(){return this.questionBase},enumerable:!1,configurable:!0}),t.prototype.renderElement=function(){for(var e=this.question.cssClasses,t=this.question.getRows(),n=[],r=0;r<t.length;r++)n.push(this.renderRow(r,t[r],e));return o.createElement("table",{className:e.root},o.createElement("tbody",null,n))},t.prototype.renderRow=function(e,t,n){for(var r="item"+e,i=[],s=0;s<t.length;s++){var a=t[s];i.push(o.createElement("td",{key:"item"+s,className:this.question.cssClasses.cell},o.createElement(p,{question:this.question,item:a,creator:this.creator,cssClasses:n})))}return o.createElement("tr",{key:r,className:n.row},i)},t}(i.SurveyQuestionElementBase),p=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return u(t,e),Object.defineProperty(t.prototype,"question",{get:function(){return this.props.question},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"item",{get:function(){return this.props.item},enumerable:!1,configurable:!0}),t.prototype.getStateElements=function(){return[this.item,this.item.editor]},Object.defineProperty(t.prototype,"creator",{get:function(){return this.props.creator},enumerable:!1,configurable:!0}),t.prototype.renderElement=function(){var e=this.item,t=this.cssClasses;return o.createElement("label",{className:this.question.getItemLabelCss(e)},o.createElement("span",{className:t.itemTitle},o.createElement(l.TitleContent,{element:e.editor,cssClasses:e.editor.cssClasses})),o.createElement(d,{cssClasses:t,itemCss:this.question.getItemCss(),question:e.editor,creator:this.creator}),this.renderItemTooltipError(e,t))},t.prototype.renderItemTooltipError=function(e,t){return this.item.editor.isErrorsModeTooltip?o.createElement(s.SurveyElementErrors,{element:e.editor,cssClasses:t,creator:this.creator,location:"tooltip"}):null},t}(i.ReactSurveyElement),d=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return u(t,e),t.prototype.renderElement=function(){return o.createElement("div",{className:this.itemCss},this.renderContent())},t}(s.SurveyQuestionAndErrorsWrapped);a.ReactQuestionFactory.Instance.registerQuestion("multipletext",(function(e){return o.createElement(c,e)}))},"./src/react/reactquestion_paneldynamic.tsx":function(e,t,n){"use strict";n.r(t),n.d(t,"SurveyQuestionPanelDynamic",(function(){return f})),n.d(t,"SurveyQuestionPanelDynamicItem",(function(){return m}));var r,o=n("react"),i=n("./src/react/reactquestion_element.tsx"),s=n("./src/react/panel.tsx"),a=n("./src/react/reactquestion_factory.tsx"),l=n("./src/react/components/action-bar/action-bar.tsx"),u=n("./src/react/components/paneldynamic-actions/paneldynamic-next-btn.tsx"),c=n("./src/react/components/paneldynamic-actions/paneldynamic-prev-btn.tsx"),p=n("./src/react/components/paneldynamic-actions/paneldynamic-progress-text.tsx"),d=n("./src/react/element-factory.tsx"),h=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),f=function(e){function t(t){return e.call(this,t)||this}return h(t,e),Object.defineProperty(t.prototype,"question",{get:function(){return this.questionBase},enumerable:!1,configurable:!0}),t.prototype.componentDidMount=function(){e.prototype.componentDidMount.call(this),this.setState({panelCounter:0});var t=this;this.question.panelCountChangedCallback=function(){t.updateQuestionRendering()},this.question.currentIndexChangedCallback=function(){t.updateQuestionRendering()},this.question.renderModeChangedCallback=function(){t.updateQuestionRendering()}},t.prototype.componentWillUnmount=function(){e.prototype.componentWillUnmount.call(this),this.question.panelCountChangedCallback=function(){},this.question.currentIndexChangedCallback=function(){},this.question.renderModeChangedCallback=function(){}},t.prototype.updateQuestionRendering=function(){this.setState({panelCounter:this.state?this.state.panelCounter+1:1})},t.prototype.renderElement=function(){var e=[];if(this.question.isRenderModeList)for(var t=0;t<this.question.panels.length;t++){var n=this.question.panels[t];e.push(o.createElement(m,{key:n.id,element:n,question:this.question,index:t,cssClasses:this.question.cssClasses,isDisplayMode:this.isDisplayMode,creator:this.creator}))}else null!=this.question.currentPanel&&(n=this.question.currentPanel,e.push(o.createElement(m,{key:this.question.currentIndex,element:n,question:this.question,index:this.question.currentIndex,cssClasses:this.question.cssClasses,isDisplayMode:this.isDisplayMode,creator:this.creator})));var r=this.question.isRenderModeList&&this.question.showLegacyNavigation?this.renderAddRowButton():null,i=this.question.isProgressTopShowing?this.renderNavigator():null,s=this.question.isProgressBottomShowing?this.renderNavigator():null,a=this.renderNavigatorV2(),l=this.renderPlaceholder();return o.createElement("div",{className:this.question.cssClasses.root},l,i,e,s,r,a)},t.prototype.renderNavigator=function(){if(!this.question.showLegacyNavigation)return this.question.isRangeShowing&&this.question.isProgressTopShowing?this.renderRange():null;var e=this.question.isRangeShowing?this.renderRange():null,t=this.rendrerPrevButton(),n=this.rendrerNextButton(),r=this.renderAddRowButton(),i=this.question.isProgressTopShowing?this.question.cssClasses.progressTop:this.question.cssClasses.progressBottom;return o.createElement("div",{className:i},o.createElement("div",{style:{clear:"both"}},o.createElement("div",{className:this.question.cssClasses.progressContainer},t,e,n),r,this.renderProgressText()))},t.prototype.renderProgressText=function(){return o.createElement(p.SurveyQuestionPanelDynamicProgressText,{data:{question:this.question}})},t.prototype.rendrerPrevButton=function(){return o.createElement(c.SurveyQuestionPanelDynamicPrevButton,{data:{question:this.question}})},t.prototype.rendrerNextButton=function(){return o.createElement(u.SurveyQuestionPanelDynamicNextButton,{data:{question:this.question}})},t.prototype.renderRange=function(){return o.createElement("div",{className:this.question.cssClasses.progress},o.createElement("div",{className:this.question.cssClasses.progressBar,style:{width:this.question.progress},role:"progressbar"}))},t.prototype.renderAddRowButton=function(){return d.ReactElementFactory.Instance.createElement("sv-paneldynamic-add-btn",{data:{question:this.question}})},t.prototype.renderNavigatorV2=function(){if(!this.question.showNavigation)return null;var e=this.question.isRangeShowing&&this.question.isProgressBottomShowing?this.renderRange():null;return o.createElement("div",{className:this.question.cssClasses.footer},o.createElement("hr",{className:this.question.cssClasses.separator}),e,this.question.footerToolbar.visibleActions.length?o.createElement("div",{className:this.question.cssClasses.footerButtonsContainer},o.createElement(l.SurveyActionBar,{model:this.question.footerToolbar})):null)},t.prototype.renderPlaceholder=function(){return this.question.getShowNoEntriesPlaceholder()?o.createElement("div",{className:this.question.cssClasses.noEntriesPlaceholder},o.createElement("span",null,this.renderLocString(this.question.locNoEntriesText)),this.renderAddRowButton()):null},t}(i.SurveyQuestionElementBase),m=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return h(t,e),Object.defineProperty(t.prototype,"question",{get:function(){return this.props.question},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"index",{get:function(){return this.props.index},enumerable:!1,configurable:!0}),t.prototype.getSurvey=function(){return this.question?this.question.survey:null},t.prototype.getCss=function(){var e=this.getSurvey();return e?e.getCss():{}},t.prototype.render=function(){var t=e.prototype.render.call(this),n=this.renderButton(),r=this.question.showSeparator(this.index)?o.createElement("hr",{className:this.question.cssClasses.separator}):null;return o.createElement(o.Fragment,null,o.createElement("div",{className:this.question.getPanelWrapperCss()},t,n),r)},t.prototype.renderButton=function(){return"right"!==this.question.panelRemoveButtonLocation||!this.question.canRemovePanel||this.question.isRenderModeList&&this.panel.isCollapsed?null:d.ReactElementFactory.Instance.createElement("sv-paneldynamic-remove-btn",{data:{question:this.question,panel:this.panel}})},t}(s.SurveyPanel);a.ReactQuestionFactory.Instance.registerQuestion("paneldynamic",(function(e){return o.createElement(f,e)}))},"./src/react/reactquestion_radiogroup.tsx":function(e,t,n){"use strict";n.r(t),n.d(t,"SurveyQuestionRadiogroup",(function(){return p})),n.d(t,"SurveyQuestionRadioItem",(function(){return d}));var r,o=n("react"),i=n("./src/react/reactquestion_element.tsx"),s=n("./src/react/reactquestion_comment.tsx"),a=n("./src/react/reactquestion_factory.tsx"),l=n("./src/react/reactsurveymodel.tsx"),u=n("./src/react/element-factory.tsx"),c=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),p=function(e){function t(t){return e.call(this,t)||this}return c(t,e),Object.defineProperty(t.prototype,"question",{get:function(){return this.questionBase},enumerable:!1,configurable:!0}),t.prototype.renderElement=function(){var e=this,t=this.question.cssClasses,n=null;return this.question.showClearButtonInContent&&(n=o.createElement("div",null,o.createElement("input",{type:"button",className:this.question.cssClasses.clearButton,onClick:function(){return e.question.clearValue()},value:this.question.clearButtonCaption}))),o.createElement("fieldset",{className:this.question.getSelectBaseRootCss(),role:"presentation",ref:function(t){return e.setControl(t)}},this.question.hasColumns?this.getColumnedBody(t):this.getBody(t),this.getFooter(),this.question.isOtherSelected?this.renderOther(t):null,n)},t.prototype.getFooter=function(){var e=this;if(this.question.hasFootItems)return this.question.footItems.map((function(t,n){return e.renderItem("item_f"+n,t,!1,e.question.cssClasses)}))},t.prototype.getColumnedBody=function(e){return o.createElement("div",{className:e.rootMultiColumn},this.getColumns(e))},t.prototype.getColumns=function(e){var t=this,n=this.getStateValue();return this.question.columns.map((function(r,i){var s=r.map((function(r,o){return t.renderItem("item"+i+o,r,n,e,""+i+o)}));return o.createElement("div",{key:"column"+i,className:t.question.getColumnClass(),role:"presentation"},s)}))},t.prototype.getBody=function(e){return this.question.blockedRow?o.createElement("div",{className:e.rootRow},this.getItems(e,this.question.dataChoices)):o.createElement(o.Fragment,null,this.getItems(e,this.question.bodyItems))},t.prototype.getItems=function(e,t){for(var n=[],r=this.getStateValue(),o=0;o<t.length;o++){var i=t[o],s=this.renderItem("item"+o,i,r,e,""+o);n.push(s)}return n},Object.defineProperty(t.prototype,"textStyle",{get:function(){return null},enumerable:!1,configurable:!0}),t.prototype.renderOther=function(e){return o.createElement("div",{className:this.question.getCommentAreaCss(!0)},o.createElement(s.SurveyQuestionOtherValueItem,{question:this.question,otherCss:e.other,cssClasses:e,isDisplayMode:this.isDisplayMode}))},t.prototype.renderItem=function(e,t,n,r,o){var i=u.ReactElementFactory.Instance.createElement(this.question.itemComponent,{key:e,question:this.question,cssClasses:r,isDisplayMode:this.isDisplayMode,item:t,textStyle:this.textStyle,index:o,isChecked:n===t.value}),s=this.question.survey,a=null;return s&&(a=l.ReactSurveyElementsWrapper.wrapItemValue(s,i,this.question,t)),null!=a?a:i},t.prototype.getStateValue=function(){return this.question.isEmpty()?"":this.question.renderedValue},t}(i.SurveyQuestionElementBase),d=function(e){function t(t){var n=e.call(this,t)||this;return n.handleOnChange=n.handleOnChange.bind(n),n.handleOnMouseDown=n.handleOnMouseDown.bind(n),n}return c(t,e),t.prototype.getStateElement=function(){return this.item},Object.defineProperty(t.prototype,"question",{get:function(){return this.props.question},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"item",{get:function(){return this.props.item},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"textStyle",{get:function(){return this.props.textStyle},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"index",{get:function(){return this.props.index},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isChecked",{get:function(){return this.props.isChecked},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hideCaption",{get:function(){return!0===this.props.hideCaption},enumerable:!1,configurable:!0}),t.prototype.shouldComponentUpdate=function(t,n){return!(!e.prototype.shouldComponentUpdate.call(this,t,n)||!this.question||this.question.customWidget&&!this.question.customWidgetData.isNeedRender&&!this.question.customWidget.widgetJson.isDefaultRender&&!this.question.customWidget.widgetJson.render)},t.prototype.handleOnChange=function(e){this.question.clickItemHandler(this.item)},t.prototype.handleOnMouseDown=function(e){this.question.onMouseDown()},t.prototype.canRender=function(){return!!this.question&&!!this.item},t.prototype.renderElement=function(){var e=this.question.getItemClass(this.item),t=this.question.getLabelClass(this.item),n=this.question.getControlLabelClass(this.item),r=this.hideCaption?null:o.createElement("span",{className:n},this.renderLocString(this.item.locText,this.textStyle));return o.createElement("div",{className:e,role:"presentation"},o.createElement("label",{onMouseDown:this.handleOnMouseDown,className:t,"aria-label":this.question.getAriaItemLabel(this.item)},o.createElement("input",{"aria-describedby":this.question.ariaDescribedBy,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),onChange:this.handleOnChange}),this.cssClasses.materialDecorator?o.createElement("span",{className:this.cssClasses.materialDecorator},this.question.itemSvgIcon?o.createElement("svg",{className:this.cssClasses.itemDecorator},o.createElement("use",{xlinkHref:this.question.itemSvgIcon})):null):null,r))},t}(i.ReactSurveyElement);u.ReactElementFactory.Instance.registerElement("survey-radiogroup-item",(function(e){return o.createElement(d,e)})),a.ReactQuestionFactory.Instance.registerQuestion("radiogroup",(function(e){return o.createElement(p,e)}))},"./src/react/reactquestion_ranking.tsx":function(e,t,n){"use strict";n.r(t),n.d(t,"SurveyQuestionRanking",(function(){return u})),n.d(t,"SurveyQuestionRankingItem",(function(){return c}));var r,o=n("react"),i=n("./src/react/reactquestion_element.tsx"),s=n("./src/react/reactquestion_factory.tsx"),a=n("./src/react/reactsurveymodel.tsx"),l=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),u=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return l(t,e),Object.defineProperty(t.prototype,"question",{get:function(){return this.questionBase},enumerable:!1,configurable:!0}),t.prototype.renderElement=function(){var e=this;return this.question.selectToRankEnabled?o.createElement("div",{className:this.question.rootClass,ref:function(t){return e.setControl(t)}},o.createElement("div",{className:this.question.getContainerClasses("from"),"data-ranking":"from-container"},this.getItems(this.question.unRankingChoices,!0),0===this.question.unRankingChoices.length?o.createElement("div",{className:this.question.cssClasses.containerPlaceholder}," ",this.question.selectToRankEmptyRankedAreaText," "):null),o.createElement("div",{className:this.question.cssClasses.containersDivider}),o.createElement("div",{className:this.question.getContainerClasses("to"),"data-ranking":"to-container"},this.getItems(),0===this.question.rankingChoices.length?o.createElement("div",{className:this.question.cssClasses.containerPlaceholder},this.question.selectToRankEmptyUnrankedAreaText):null)):o.createElement("div",{className:this.question.rootClass,ref:function(t){return e.setControl(t)}},this.getItems())},t.prototype.getItems=function(e,t){var n=this;void 0===e&&(e=this.question.rankingChoices);for(var r=[],o=function(o){var s=e[o];r.push(i.renderItem(s,o,(function(e){n.question.handleKeydown.call(n.question,e,s)}),(function(e){e.persist(),n.question.handlePointerDown.call(n.question,e,s,e.currentTarget)}),i.question.cssClasses,i.question.getItemClass(s),i.question,t))},i=this,s=0;s<e.length;s++)o(s);return r},t.prototype.renderItem=function(e,t,n,r,i,s,l,u){var p=e.value+"-"+t+"-item",d=this.renderLocString(e.locText),h=t,f=this.question.getNumberByIndex(t),m=this.question.getItemTabIndex(e),g=o.createElement(c,{key:p,text:d,index:h,indexText:f,itemTabIndex:m,handleKeydown:n,handlePointerDown:r,cssClasses:i,itemClass:s,question:l,unrankedItem:u,item:e}),y=this.question.survey,v=null;return y&&(v=a.ReactSurveyElementsWrapper.wrapItemValue(y,g,this.question,e)),null!=v?v:g},t}(i.SurveyQuestionElementBase),c=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return l(t,e),Object.defineProperty(t.prototype,"text",{get:function(){return this.props.text},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"index",{get:function(){return this.props.index},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"indexText",{get:function(){return this.props.indexText},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"handleKeydown",{get:function(){return this.props.handleKeydown},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"handlePointerDown",{get:function(){return this.props.handlePointerDown},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"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.renderElement=function(){return o.createElement("div",{tabIndex:this.itemTabIndex,className:this.itemClass,onKeyDown:this.handleKeydown,onPointerDown:this.handlePointerDown,"data-sv-drop-target-ranking-item":this.index},o.createElement("div",{tabIndex:-1,style:{outline:"none"}},o.createElement("div",{className:this.cssClasses.itemGhostNode}),o.createElement("div",{className:this.cssClasses.itemContent},o.createElement("div",{className:this.cssClasses.itemIconContainer},o.createElement("svg",{width:"10",height:"16",viewBox:"0 0 10 16",className:this.question.getIconHoverCss(),xmlns:"http://www.w3.org/2000/svg"},o.createElement("path",{d:"M6 2C6 0.9 6.9 0 8 0C9.1 0 10 0.9 10 2C10 3.1 9.1 4 8 4C6.9 4 6 3.1 6 2ZM2 0C0.9 0 0 0.9 0 2C0 3.1 0.9 4 2 4C3.1 4 4 3.1 4 2C4 0.9 3.1 0 2 0ZM8 6C6.9 6 6 6.9 6 8C6 9.1 6.9 10 8 10C9.1 10 10 9.1 10 8C10 6.9 9.1 6 8 6ZM2 6C0.9 6 0 6.9 0 8C0 9.1 0.9 10 2 10C3.1 10 4 9.1 4 8C4 6.9 3.1 6 2 6ZM8 12C6.9 12 6 12.9 6 14C6 15.1 6.9 16 8 16C9.1 16 10 15.1 10 14C10 12.9 9.1 12 8 12ZM2 12C0.9 12 0 12.9 0 14C0 15.1 0.9 16 2 16C3.1 16 4 15.1 4 14C4 12.9 3.1 12 2 12Z"})),o.createElement("svg",{width:"10",height:"24",viewBox:"0 0 10 24",className:this.question.getIconFocusCss(),xmlns:"http://www.w3.org/2000/svg"},o.createElement("path",{d:"M10 5L5 0L0 5H4V9H6V5H10Z"}),o.createElement("path",{d:"M6 19V15H4V19H0L5 24L10 19H6Z"}))),o.createElement("div",{className:this.question.getItemIndexClasses(this.item)},this.unrankedItem?"":this.indexText),o.createElement("div",{className:this.cssClasses.controlLabel},this.text))))},t}(i.ReactSurveyElement);s.ReactQuestionFactory.Instance.registerQuestion("ranking",(function(e){return o.createElement(u,e)}))},"./src/react/reactquestion_rating.tsx":function(e,t,n){"use strict";n.r(t),n.d(t,"SurveyQuestionRating",(function(){return u}));var r,o=n("react"),i=n("./src/react/reactquestion_element.tsx"),s=n("./src/react/reactquestion_factory.tsx"),a=n("./src/react/element-factory.tsx"),l=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),u=function(e){function t(t){var n=e.call(this,t)||this;return n.handleOnClick=n.handleOnClick.bind(n),n}return l(t,e),Object.defineProperty(t.prototype,"question",{get:function(){return this.questionBase},enumerable:!1,configurable:!0}),t.prototype.handleOnClick=function(e){this.question.setValueFromClick(e.target.value),this.setState({value:this.question.value})},t.prototype.renderItem=function(e,t){return a.ReactElementFactory.Instance.createElement(this.question.itemComponentName,{question:this.question,item:e,index:t,key:"value"+t,handleOnClick:this.handleOnClick,isDisplayMode:this.isDisplayMode})},t.prototype.renderElement=function(){var e=this,t=this.question.cssClasses,n=this.question.minRateDescription?this.renderLocString(this.question.locMinRateDescription):null,r=this.question.maxRateDescription?this.renderLocString(this.question.locMaxRateDescription):null;return o.createElement("div",{className:this.question.ratingRootCss,ref:function(t){return e.setControl(t)}},o.createElement("fieldset",{role:"radiogroup"},o.createElement("legend",{role:"presentation",className:"sv-hidden"}),this.question.hasMinLabel?o.createElement("span",{className:t.minText},n):null,this.question.renderedRateItems.map((function(t,n){return e.renderItem(t,n)})),this.question.hasMaxLabel?o.createElement("span",{className:t.maxText},r):null))},t}(i.SurveyQuestionElementBase);s.ReactQuestionFactory.Instance.registerQuestion("rating",(function(e){return o.createElement(u,e)}))},"./src/react/reactquestion_tagbox.tsx":function(e,t,n){"use strict";n.r(t),n.d(t,"SurveyQuestionTagbox",(function(){return c}));var r,o=n("react"),i=n("./src/react/reactquestion_factory.tsx"),s=n("./src/react/dropdown-base.tsx"),a=n("./src/react/tagbox-item.tsx"),l=n("./src/react/tagbox-filter.tsx"),u=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),c=function(e){function t(t){return e.call(this,t)||this}return u(t,e),t.prototype.renderItem=function(e,t){return o.createElement(a.SurveyQuestionTagboxItem,{key:e,question:this.question,item:t})},t.prototype.renderInput=function(e){var t=this,n=e,r=this.question.selectedChoices.map((function(e,n){return t.renderItem("item"+n,e)}));return o.createElement("div",{id:this.question.inputId,className:this.question.getControlClass(),tabIndex:e.inputReadOnly?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-describedby":this.question.ariaDescribedBy,"aria-expanded":null===this.question.ariaExpanded?void 0:"true"===this.question.ariaExpanded,"aria-controls":e.listElementId,"aria-activedescendant":e.ariaActivedescendant},o.createElement("div",{className:this.question.cssClasses.controlValue},r,o.createElement(l.TagboxFilterString,{model:n,question:this.question})),this.createClearButton())},t.prototype.renderElement=function(){var e=this.question.cssClasses,t=this.question.isOtherSelected?this.renderOther(e):null,n=this.renderSelect(e);return o.createElement("div",{className:this.question.renderCssRoot},n,t)},t}(s.SurveyQuestionDropdownBase);i.ReactQuestionFactory.Instance.registerQuestion("tagbox",(function(e){return o.createElement(c,e)}))},"./src/react/reactquestion_text.tsx":function(e,t,n){"use strict";n.r(t),n.d(t,"SurveyQuestionText",(function(){return u}));var r,o=n("react"),i=n("./src/react/reactquestion_element.tsx"),s=n("./src/react/reactquestion_factory.tsx"),a=n("./src/react/components/character-counter.tsx"),l=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),u=function(e){function t(t){return e.call(this,t)||this}return l(t,e),t.prototype.renderInput=function(){var e=this,t=this.question.getControlClass(),n=this.question.renderedPlaceholder;if(this.question.isReadOnlyRenderDiv())return o.createElement("div",null,this.question.value);var r=this.question.getMaxLength()?o.createElement(a.CharacterCounterComponent,{counter:this.question.characterCounter,remainingCharacterCounter:this.question.cssClasses.remainingCharacterCounter}):null;return o.createElement(o.Fragment,null,o.createElement("input",{id:this.question.inputId,disabled:this.isDisplayMode,className:t,type:this.question.inputType,ref:function(t){return e.setControl(t)},style:this.question.inputStyle,maxLength:this.question.getMaxLength(),min:this.question.renderedMin,max:this.question.renderedMax,step:this.question.renderedStep,size:this.question.inputSize,placeholder:n,list:this.question.dataListId,autoComplete:this.question.autocomplete,onBlur:this.question.onBlur,onFocus:this.question.onFocus,onChange:this.question.onChange,onKeyUp:this.question.onKeyUp,onKeyDown:this.question.onKeyDown,onCompositionUpdate:function(t){return e.question.onCompositionUpdate(t.nativeEvent)},"aria-required":this.question.a11y_input_ariaRequired,"aria-label":this.question.a11y_input_ariaLabel,"aria-labelledby":this.question.a11y_input_ariaLabelledBy,"aria-invalid":this.question.a11y_input_ariaInvalid,"aria-describedby":this.question.a11y_input_ariaDescribedBy}),r)},t.prototype.renderElement=function(){return this.question.dataListId?o.createElement("div",null,this.renderInput(),this.renderDataList()):this.renderInput()},t.prototype.renderDataList=function(){if(!this.question.dataListId)return null;var e=this.question.dataList;if(0==e.length)return null;for(var t=[],n=0;n<e.length;n++)t.push(o.createElement("option",{key:"item"+n,value:e[n]}));return o.createElement("datalist",{id:this.question.dataListId},t)},t}(i.SurveyQuestionUncontrolledElement);s.ReactQuestionFactory.Instance.registerQuestion("text",(function(e){return o.createElement(u,e)}))},"./src/react/reactsurveymodel.tsx":function(e,t,n){"use strict";n.r(t),n.d(t,"ReactSurveyElementsWrapper",(function(){return i}));var r=n("survey-core"),o=n("./src/react/element-factory.tsx"),i=function(){function e(){}return e.wrapRow=function(e,t,n){var r=e.getRowWrapperComponentName(n),i=e.getRowWrapperComponentData(n);return o.ReactElementFactory.Instance.createElement(r,{element:t,row:n,componentData:i})},e.wrapElement=function(e,t,n){var r=e.getElementWrapperComponentName(n),i=e.getElementWrapperComponentData(n);return o.ReactElementFactory.Instance.createElement(r,{element:t,question:n,componentData:i})},e.wrapQuestionContent=function(e,t,n){var r=e.getQuestionContentWrapperComponentName(n),i=e.getElementWrapperComponentData(n);return o.ReactElementFactory.Instance.createElement(r,{element:t,question:n,componentData:i})},e.wrapItemValue=function(e,t,n,r){var i=e.getItemValueWrapperComponentName(r,n),s=e.getItemValueWrapperComponentData(r,n);return o.ReactElementFactory.Instance.createElement(i,{key:null==t?void 0:t.key,element:t,question:n,item:r,componentData:s})},e.wrapMatrixCell=function(e,t,n,r){void 0===r&&(r="cell");var i=e.getElementWrapperComponentName(n,r),s=e.getElementWrapperComponentData(n,r);return o.ReactElementFactory.Instance.createElement(i,{element:t,cell:n,componentData:s})},e}();r.SurveyModel.platform="react"},"./src/react/reacttimerpanel.tsx":function(e,t,n){"use strict";n.r(t),n.d(t,"SurveyTimerPanel",(function(){return u}));var r,o=n("react"),i=n("./src/react/components/svg-icon/svg-icon.tsx"),s=n("./src/react/element-factory.tsx"),a=n("./src/react/reactquestion_element.tsx"),l=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),u=function(e){function t(t){var n=e.call(this,t)||this;return n.circleLength=440,n}return l(t,e),t.prototype.getStateElement=function(){return this.timerModel},Object.defineProperty(t.prototype,"timerModel",{get:function(){return this.props.model},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"progress",{get:function(){return-this.timerModel.progress*this.circleLength},enumerable:!1,configurable:!0}),t.prototype.render=function(){if(!this.timerModel.isRunning)return null;var e=o.createElement("div",{className:this.timerModel.survey.getCss().timerRoot},this.timerModel.text);if(this.timerModel.showTimerAsClock){var t={strokeDasharray:this.circleLength,strokeDashoffset:this.progress},n=this.timerModel.showProgress?o.createElement(i.SvgIcon,{className:this.timerModel.getProgressCss(),style:t,iconName:"icon-timercircle",size:"auto"}):null;e=o.createElement("div",{className:this.timerModel.rootCss},n,o.createElement("div",{className:this.timerModel.textContainerCss},o.createElement("span",{className:this.timerModel.majorTextCss},this.timerModel.clockMajorText),this.timerModel.clockMinorText?o.createElement("span",{className:this.timerModel.minorTextCss},this.timerModel.clockMinorText):null))}return e},t}(a.ReactSurveyElement);s.ReactElementFactory.Instance.registerElement("sv-timerpanel",(function(e){return o.createElement(u,e)}))},"./src/react/row.tsx":function(e,t,n){"use strict";n.r(t),n.d(t,"SurveyRow",(function(){return u}));var r,o=n("react"),i=n("./src/react/reactquestion_element.tsx"),s=n("./src/react/element-factory.tsx"),a=n("./src/react/reactsurveymodel.tsx"),l=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),u=function(e){function t(t){var n=e.call(this,t)||this;return n.rootRef=o.createRef(),n.recalculateCss(),n}return l(t,e),t.prototype.recalculateCss=function(){this.row.visibleElements.map((function(e){return e.cssClasses}))},t.prototype.getStateElement=function(){return this.row},Object.defineProperty(t.prototype,"row",{get:function(){return this.props.row},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"survey",{get:function(){return this.props.survey},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"creator",{get:function(){return this.props.creator},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"css",{get:function(){return this.props.css},enumerable:!1,configurable:!0}),t.prototype.canRender=function(){return!!this.row&&!!this.survey&&!!this.creator&&this.row.visible},t.prototype.renderElementContent=function(){var e=this,t=this.row.visibleElements.map((function(t,n){var r=e.createElement(t,n),i=t.cssClassesValue;return o.createElement("div",{className:i.questionWrapper,style:t.rootStyle,"data-key":r.key,key:r.key,onFocus:function(){var e=t;e&&!e.isDisposed&&e.isQuestion&&e.focusIn()}},e.row.isNeedRender?r:s.ReactElementFactory.Instance.createElement(t.skeletonComponentName,{element:t,css:e.css}))}));return o.createElement("div",{ref:this.rootRef,className:this.row.getRowCss()},t)},t.prototype.renderElement=function(){var e=this.survey,t=this.renderElementContent();return a.ReactSurveyElementsWrapper.wrapRow(e,t,this.row)||t},t.prototype.componentDidMount=function(){var t=this;e.prototype.componentDidMount.call(this);var n=this.rootRef.current;if(n&&!this.row.isNeedRender){var r=n;setTimeout((function(){t.row.startLazyRendering(r)}),10)}},t.prototype.shouldComponentUpdate=function(t,n){return!!e.prototype.shouldComponentUpdate.call(this,t,n)&&(t.row!==this.row&&(t.row.isNeedRender=this.row.isNeedRender,this.stopLazyRendering()),this.recalculateCss(),!0)},t.prototype.stopLazyRendering=function(){this.row.stopLazyRendering(),this.row.isNeedRender=!this.row.isLazyRendering()},t.prototype.componentWillUnmount=function(){e.prototype.componentWillUnmount.call(this),this.stopLazyRendering()},t.prototype.createElement=function(e,t){var n=t?"-"+t:0,r=e.getType();return s.ReactElementFactory.Instance.isElementRegistered(r)||(r="question"),s.ReactElementFactory.Instance.createElement(r,{key:e.name+n,element:e,creator:this.creator,survey:this.survey,css:this.css})},t}(i.SurveyElementBase)},"./src/react/signaturepad.tsx":function(e,t,n){"use strict";n.r(t),n.d(t,"SurveyQuestionSignaturePad",(function(){return u}));var r,o=n("react"),i=n("./src/react/reactquestion_element.tsx"),s=n("./src/react/reactquestion_factory.tsx"),a=n("./src/react/components/svg-icon/svg-icon.tsx"),l=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),u=function(e){function t(t){var n=e.call(this,t)||this;return n.state={value:n.question.value},n}return l(t,e),Object.defineProperty(t.prototype,"question",{get:function(){return this.questionBase},enumerable:!1,configurable:!0}),t.prototype.renderElement=function(){var e=this,t=this.question.cssClasses,n=this.renderCleanButton();return o.createElement("div",{className:t.root,ref:function(t){return e.setControl(t)},style:{height:this.question.signatureHeight,width:this.question.signatureWidth}},o.createElement("div",{className:t.placeholder,style:{display:this.question.needShowPlaceholder()?"":"none"}},this.question.placeHolderText),o.createElement("div",null,o.createElement("canvas",{tabIndex:0})),n)},t.prototype.renderCleanButton=function(){var e=this;if(!this.question.canShowClearButton)return null;var t=this.question.cssClasses;return o.createElement("div",{className:t.controls},o.createElement("button",{type:"button",className:t.clearButton,title:this.question.clearButtonCaption,onClick:function(){return e.question.clearValue()}},this.question.cssClasses.clearButtonIconId?o.createElement(a.SvgIcon,{iconName:this.question.cssClasses.clearButtonIconId,size:"auto"}):o.createElement("span",null,"✖")))},t}(i.SurveyQuestionElementBase);s.ReactQuestionFactory.Instance.registerQuestion("signaturepad",(function(e){return o.createElement(u,e)}))},"./src/react/string-editor.tsx":function(e,t,n){"use strict";n.r(t),n.d(t,"SurveyLocStringEditor",(function(){return u}));var r,o=n("react"),i=n.n(o),s=n("survey-core"),a=n("./src/react/element-factory.tsx"),l=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),u=function(e){function t(t){var n=e.call(this,t)||this;return n.onInput=function(e){n.locStr.text=e.target.innerText},n.onClick=function(e){e.preventDefault(),e.stopPropagation()},n.state={changed:0},n}return l(t,e),Object.defineProperty(t.prototype,"locStr",{get:function(){return this.props.locStr},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"style",{get:function(){return this.props.style},enumerable:!1,configurable:!0}),t.prototype.componentDidMount=function(){if(this.locStr){var e=this;this.locStr.onChanged=function(){e.setState({changed:e.state.changed+1})}}},t.prototype.componentWillUnmount=function(){this.locStr&&(this.locStr.onChanged=function(){})},t.prototype.render=function(){if(!this.locStr)return null;if(this.locStr.hasHtml){var e={__html:this.locStr.renderedHtml};return i.a.createElement("span",{className:"sv-string-editor",contentEditable:"true",suppressContentEditableWarning:!0,style:this.style,dangerouslySetInnerHTML:e,onBlur:this.onInput,onClick:this.onClick})}return i.a.createElement("span",{className:"sv-string-editor",contentEditable:"true",suppressContentEditableWarning:!0,style:this.style,onBlur:this.onInput,onClick:this.onClick},this.locStr.renderedHtml)},t}(i.a.Component);a.ReactElementFactory.Instance.registerElement(s.LocalizableString.editableRenderer,(function(e){return i.a.createElement(u,e)}))},"./src/react/string-viewer.tsx":function(e,t,n){"use strict";n.r(t),n.d(t,"SurveyLocStringViewer",(function(){return u}));var r,o=n("react"),i=n.n(o),s=n("survey-core"),a=n("./src/react/element-factory.tsx"),l=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),u=function(e){function t(t){var n=e.call(this,t)||this;return n.onChangedHandler=function(e,t){n.isRendering||n.setState({changed:n.state&&n.state.changed?n.state.changed+1:1})},n.rootRef=i.a.createRef(),n}return l(t,e),Object.defineProperty(t.prototype,"locStr",{get:function(){return this.props.locStr},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"style",{get:function(){return this.props.style},enumerable:!1,configurable:!0}),t.prototype.componentDidMount=function(){this.reactOnStrChanged()},t.prototype.componentWillUnmount=function(){this.locStr&&this.locStr.onStringChanged.remove(this.onChangedHandler)},t.prototype.componentDidUpdate=function(e,t){e.locStr&&e.locStr.onStringChanged.remove(this.onChangedHandler),this.reactOnStrChanged()},t.prototype.reactOnStrChanged=function(){this.locStr&&this.locStr.onStringChanged.add(this.onChangedHandler)},t.prototype.render=function(){if(!this.locStr)return null;this.isRendering=!0;var e=this.renderString();return this.isRendering=!1,e},t.prototype.renderString=function(){if(this.locStr.hasHtml){var e={__html:this.locStr.renderedHtml};return i.a.createElement("span",{ref:this.rootRef,className:"sv-string-viewer",style:this.style,dangerouslySetInnerHTML:e})}return i.a.createElement("span",{ref:this.rootRef,className:"sv-string-viewer",style:this.style},this.locStr.renderedHtml)},t}(i.a.Component);a.ReactElementFactory.Instance.registerElement(s.LocalizableString.defaultRenderer,(function(e){return i.a.createElement(u,e)}))},"./src/react/tagbox-filter.tsx":function(e,t,n){"use strict";n.r(t),n.d(t,"TagboxFilterString",(function(){return u}));var r,o=n("react"),i=n("survey-core"),s=n("./src/react/reactquestion_factory.tsx"),a=n("./src/react/reactquestion_element.tsx"),l=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),u=function(e){function t(t){return e.call(this,t)||this}return l(t,e),Object.defineProperty(t.prototype,"model",{get:function(){return this.props.model},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"question",{get:function(){return this.props.question},enumerable:!1,configurable:!0}),t.prototype.componentDidUpdate=function(t,n){e.prototype.componentDidUpdate.call(this,t,n),this.updateDomElement()},t.prototype.componentDidMount=function(){e.prototype.componentDidMount.call(this),this.updateDomElement()},t.prototype.updateDomElement=function(){if(this.inputElement){var e=this.inputElement,t=this.model.inputStringRendered;i.Helpers.isTwoValueEquals(t,e.value,!1,!0,!1)||(e.value=this.model.inputStringRendered)}},t.prototype.onChange=function(e){var t=i.settings.environment.root;e.target===t.activeElement&&(this.model.inputStringRendered=e.target.value)},t.prototype.keyhandler=function(e){this.model.inputKeyHandler(e)},t.prototype.onBlur=function(e){this.model.onBlur(e)},t.prototype.onFocus=function(e){this.model.onFocus(e)},t.prototype.getStateElement=function(){return this.model},t.prototype.render=function(){var e=this;return o.createElement("div",{className:this.question.cssClasses.hint},this.model.showHintPrefix?o.createElement("div",{className:this.question.cssClasses.hintPrefix},o.createElement("span",null,this.model.hintStringPrefix)):null,o.createElement("div",{className:this.question.cssClasses.hintSuffixWrapper},this.model.showHintString?o.createElement("div",{className:this.question.cssClasses.hintSuffix},o.createElement("span",{style:{visibility:"hidden"},"data-bind":"text: model.filterString"},this.model.inputStringRendered),o.createElement("span",null,this.model.hintStringSuffix)):null,o.createElement("input",{type:"text",autoComplete:"off",id:this.question.getInputId(),inputMode:this.model.inputMode,ref:function(t){return e.inputElement=t},className:this.question.cssClasses.filterStringInput,disabled:this.question.isInputReadOnly,readOnly:!this.model.searchEnabled||void 0,size:this.model.inputStringRendered?void 0:1,role:this.model.filterStringEnabled?this.question.ariaRole:void 0,"aria-label":this.question.placeholder,"aria-expanded":null===this.question.ariaExpanded?void 0:"true"===this.question.ariaExpanded,"aria-controls":this.model.listElementId,"aria-activedescendant":this.model.ariaActivedescendant,placeholder:this.model.filterStringPlaceholder,onKeyDown:function(t){e.keyhandler(t)},onChange:function(t){e.onChange(t)},onBlur:function(t){e.onBlur(t)},onFocus:function(t){e.onFocus(t)}})))},t}(a.SurveyElementBase);s.ReactQuestionFactory.Instance.registerQuestion("sv-tagbox-filter",(function(e){return o.createElement(u,e)}))},"./src/react/tagbox-item.tsx":function(e,t,n){"use strict";n.r(t),n.d(t,"SurveyQuestionTagboxItem",(function(){return l}));var r,o=n("react"),i=n("./src/react/reactquestion_element.tsx"),s=n("./src/react/components/svg-icon/svg-icon.tsx"),a=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),l=function(e){function t(t){return e.call(this,t)||this}return a(t,e),Object.defineProperty(t.prototype,"question",{get:function(){return this.props.question},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"item",{get:function(){return this.props.item},enumerable:!1,configurable:!0}),t.prototype.canRender=function(){return!!this.item&&!!this.question},t.prototype.renderElement=function(){var e=this,t=this.renderLocString(this.item.locText);return o.createElement("div",{className:"sv-tagbox__item"},o.createElement("div",{className:"sv-tagbox__item-text"},t),o.createElement("div",{className:this.question.cssClasses.cleanItemButton,onClick:function(t){e.question.dropdownListModel.deselectItem(e.item.value),t.stopPropagation()}},o.createElement(s.SvgIcon,{className:this.question.cssClasses.cleanItemButtonSvg,iconName:this.question.cssClasses.cleanItemButtonIconId,size:"auto"})))},t}(i.ReactSurveyElement)},"./src/settings.ts":function(e,t,n){"use strict";n.r(t),n.d(t,"settings",(function(){return o}));var r=globalThis.document,o={designMode:{showEmptyDescriptions:!0,showEmptyTitles:!0},get allowShowEmptyDescriptionInDesignMode(){return this.designMode.showEmptyDescriptions},set allowShowEmptyDescriptionInDesignMode(e){this.designMode.showEmptyDescriptions=e},get allowShowEmptyTitleInDesignMode(){return this.designMode.showEmptyTitles},set allowShowEmptyTitleInDesignMode(e){this.designMode.showEmptyTitles=e},localization:{useLocalTimeZone:!0,storeDuplicatedTranslations:!1,defaultLocaleName:"default"},get useLocalTimeZone(){return this.localization.useLocalTimeZone},set useLocalTimeZone(e){this.localization.useLocalTimeZone=e},get storeDuplicatedTranslations(){return this.localization.storeDuplicatedTranslations},set storeDuplicatedTranslations(e){this.localization.storeDuplicatedTranslations=e},get defaultLocaleName(){return this.localization.defaultLocaleName},set defaultLocaleName(e){this.localization.defaultLocaleName=e},web:{encodeUrlParams:!0,cacheLoadedChoices:!0,disableQuestionWhileLoadingChoices:!1,surveyServiceUrl:"https://api.surveyjs.io/public/v1/Survey"},get webserviceEncodeParameters(){return this.web.encodeUrlParams},set webserviceEncodeParameters(e){this.web.encodeUrlParams=e},get useCachingForChoicesRestful(){return this.web.cacheLoadedChoices},set useCachingForChoicesRestful(e){this.web.cacheLoadedChoices=e},get useCachingForChoicesRestfull(){return this.web.cacheLoadedChoices},set useCachingForChoicesRestfull(e){this.web.cacheLoadedChoices=e},get disableOnGettingChoicesFromWeb(){return this.web.disableQuestionWhileLoadingChoices},set disableOnGettingChoicesFromWeb(e){this.web.disableQuestionWhileLoadingChoices=e},get surveyServiceUrl(){return this.web.surveyServiceUrl},set surveyServiceUrl(e){this.web.surveyServiceUrl=e},triggers:{changeNavigationButtonsOnComplete:!0,executeCompleteOnValueChanged:!1,executeSkipOnValueChanged:!0},get executeCompleteTriggerOnValueChanged(){return this.triggers.executeCompleteOnValueChanged},set executeCompleteTriggerOnValueChanged(e){this.triggers.executeCompleteOnValueChanged=e},get changeNavigationButtonsOnCompleteTrigger(){return this.triggers.changeNavigationButtonsOnComplete},set changeNavigationButtonsOnCompleteTrigger(e){this.triggers.changeNavigationButtonsOnComplete=e},get executeSkipTriggerOnValueChanged(){return this.triggers.executeSkipOnValueChanged},set executeSkipTriggerOnValueChanged(e){this.triggers.executeSkipOnValueChanged=e},serialization:{itemValueSerializeAsObject:!1,itemValueSerializeDisplayText:!1,localizableStringSerializeAsObject:!1},get itemValueAlwaysSerializeAsObject(){return this.serialization.itemValueSerializeAsObject},set itemValueAlwaysSerializeAsObject(e){this.serialization.itemValueSerializeAsObject=e},get itemValueAlwaysSerializeText(){return this.serialization.itemValueSerializeDisplayText},set itemValueAlwaysSerializeText(e){this.serialization.itemValueSerializeDisplayText=e},get serializeLocalizableStringAsObject(){return this.serialization.localizableStringSerializeAsObject},set serializeLocalizableStringAsObject(e){this.serialization.localizableStringSerializeAsObject=e},lazyRender:{enabled:!1,firstBatchSize:3},get lazyRowsRendering(){return this.lazyRender.enabled},set lazyRowsRendering(e){this.lazyRender.enabled=e},get lazyRowsRenderingStartRow(){return this.lazyRender.firstBatchSize},set lazyRowsRenderingStartRow(e){this.lazyRender.firstBatchSize=e},matrix:{defaultCellType:"dropdown",defaultRowName:"default",totalsSuffix:"-total",maxRowCount:1e3,maxRowCountInCondition:1,renderRemoveAsIcon:!0,columnWidthsByType:{file:{minWidth:"240px"},comment:{minWidth:"200px"}},rateSize:"small"},get matrixDefaultRowName(){return this.matrix.defaultRowName},set matrixDefaultRowName(e){this.matrix.defaultRowName=e},get matrixDefaultCellType(){return this.matrix.defaultCellType},set matrixDefaultCellType(e){this.matrix.defaultCellType=e},get matrixTotalValuePostFix(){return this.matrix.totalsSuffix},set matrixTotalValuePostFix(e){this.matrix.totalsSuffix=e},get matrixMaximumRowCount(){return this.matrix.maxRowCount},set matrixMaximumRowCount(e){this.matrix.maxRowCount=e},get matrixMaxRowCountInCondition(){return this.matrix.maxRowCountInCondition},set matrixMaxRowCountInCondition(e){this.matrix.maxRowCountInCondition=e},get matrixRenderRemoveAsIcon(){return this.matrix.renderRemoveAsIcon},set matrixRenderRemoveAsIcon(e){this.matrix.renderRemoveAsIcon=e},panel:{maxPanelCount:100,maxPanelCountInCondition:1},get panelDynamicMaxPanelCountInCondition(){return this.panel.maxPanelCountInCondition},set panelDynamicMaxPanelCountInCondition(e){this.panel.maxPanelCountInCondition=e},get panelMaximumPanelCount(){return this.panel.maxPanelCount},set panelMaximumPanelCount(e){this.panel.maxPanelCount=e},readOnly:{commentRenderMode:"textarea",textRenderMode:"input"},get readOnlyCommentRenderMode(){return this.readOnly.commentRenderMode},set readOnlyCommentRenderMode(e){this.readOnly.commentRenderMode=e},get readOnlyTextRenderMode(){return this.readOnly.textRenderMode},set readOnlyTextRenderMode(e){this.readOnly.textRenderMode=e},numbering:{includeQuestionsWithHiddenNumber:!1,includeQuestionsWithHiddenTitle:!1},get setQuestionVisibleIndexForHiddenTitle(){return this.numbering.includeQuestionsWithHiddenTitle},set setQuestionVisibleIndexForHiddenTitle(e){this.numbering.includeQuestionsWithHiddenTitle=e},get setQuestionVisibleIndexForHiddenNumber(){return this.numbering.includeQuestionsWithHiddenNumber},set setQuestionVisibleIndexForHiddenNumber(e){this.numbering.includeQuestionsWithHiddenNumber=e},enterKeyAction:"default",comparator:{trimStrings:!0,caseSensitive:!1,normalizeTextCallback:function(e,t){return e}},expressionDisableConversionChar:"#",get commentPrefix(){return o.commentSuffix},set commentPrefix(e){o.commentSuffix=e},commentSuffix:"-Comment",itemValueSeparator:"|",ratingMaximumRateValueCount:20,tagboxCloseOnSelect:!1,confirmActionFunc:function(e){return confirm(e)},minWidth:"300px",maxWidth:"100%",maxConditionRunCountOnValueChanged:10,notifications:{lifetime:2e3},showItemsInOrder:"default",noneItemValue:"none",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:r?{root:r,_rootElement:r.body,get rootElement(){var e;return null!==(e=this._rootElement)&&void 0!==e?e:r.body},set rootElement(e){this._rootElement=e},_popupMountContainer:r.body,get popupMountContainer(){var e;return null!==(e=this._popupMountContainer)&&void 0!==e?e:r.body},set popupMountContainer(e){this._popupMountContainer=e},svgMountContainer:r.head,stylesSheetsMountContainer:r.head}:void 0,showMaxLengthIndicator:!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"]}}},"./src/utils/responsivity-manager.ts":function(e,t,n){"use strict";n.r(t),n.d(t,"ResponsivityManager",(function(){return s})),n.d(t,"VerticalResponsivityManager",(function(){return a}));var r,o=n("./src/utils/utils.ts"),i=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),s=function(){function e(e,t,n,r){var o=this;void 0===r&&(r=null),this.container=e,this.model=t,this.itemsSelector=n,this.dotsItemSize=r,this.resizeObserver=void 0,this.isInitialized=!1,this.minDimensionConst=56,this.separatorSize=17,this.separatorAddConst=1,this.paddingSizeConst=8,this.dotsSizeConst=48,this.recalcMinDimensionConst=!0,this.getComputedStyle=window.getComputedStyle.bind(window),this.model.updateCallback=function(e){e&&(o.isInitialized=!1),setTimeout((function(){o.process()}),1)},"undefined"!=typeof ResizeObserver&&(this.resizeObserver=new ResizeObserver((function(e){return o.process()})),this.resizeObserver.observe(this.container.parentElement))}return e.prototype.getDimensions=function(e){return{scroll:e.scrollWidth,offset:e.offsetWidth}},e.prototype.getAvailableSpace=function(){var e=this.getComputedStyle(this.container),t=this.container.offsetWidth;return"border-box"===e.boxSizing&&(t-=parseFloat(e.paddingLeft)+parseFloat(e.paddingRight)),t},e.prototype.calcItemSize=function(e){return e.offsetWidth},e.prototype.calcMinDimension=function(e){var t=this.minDimensionConst;return e.iconSize&&this.recalcMinDimensionConst&&(t=2*e.iconSize+this.paddingSizeConst),e.canShrink?t+(e.needSeparator?this.separatorSize:0):e.maxDimension},e.prototype.calcItemsSizes=function(){var e=this,t=this.model.actions;(this.container.querySelectorAll(this.itemsSelector)||[]).forEach((function(n,r){var o=t[r];e.calcActionDimensions(o,n)}))},e.prototype.calcActionDimensions=function(e,t){e.maxDimension=this.calcItemSize(t),e.minDimension=this.calcMinDimension(e)},Object.defineProperty(e.prototype,"isContainerVisible",{get:function(){return Object(o.isContainerVisible)(this.container)},enumerable:!1,configurable:!0}),e.prototype.process=function(){var e;if(this.isContainerVisible&&!this.model.isResponsivenessDisabled){this.isInitialized||(this.model.setActionsMode("large"),this.calcItemsSizes(),this.isInitialized=!0);var t=this.dotsItemSize;if(!this.dotsItemSize){var n=null===(e=this.container)||void 0===e?void 0:e.querySelector(".sv-dots");t=n&&this.calcItemSize(n)||this.dotsSizeConst}this.model.fit(this.getAvailableSpace(),t)}},e.prototype.dispose=function(){this.model.updateCallback=void 0,this.resizeObserver&&this.resizeObserver.disconnect()},e}(),a=function(e){function t(t,n,r,o,i){void 0===i&&(i=40);var s=e.call(this,t,n,r,o)||this;return s.minDimensionConst=i,s.recalcMinDimensionConst=!1,s}return i(t,e),t.prototype.getDimensions=function(){return{scroll:this.container.scrollHeight,offset:this.container.offsetHeight}},t.prototype.getAvailableSpace=function(){var e=this.getComputedStyle(this.container),t=this.container.offsetHeight;return"border-box"===e.boxSizing&&(t-=parseFloat(e.paddingTop)+parseFloat(e.paddingBottom)),t},t.prototype.calcItemSize=function(e){return e.offsetHeight},t.prototype.calcActionDimensions=function(e,t){e.maxDimension=this.calcItemSize(t),e.minDimension=this.calcItemSize(t)},t}(s)},"./src/utils/utils.ts":function(e,t,n){"use strict";n.r(t),n.d(t,"unwrap",(function(){return v})),n.d(t,"getRenderedSize",(function(){return b})),n.d(t,"getRenderedStyleSize",(function(){return C})),n.d(t,"doKey2ClickBlur",(function(){return x})),n.d(t,"doKey2ClickUp",(function(){return P})),n.d(t,"doKey2ClickDown",(function(){return S})),n.d(t,"sanitizeEditableContent",(function(){return A})),n.d(t,"Logger",(function(){return M})),n.d(t,"mergeValues",(function(){return k})),n.d(t,"getElementWidth",(function(){return _})),n.d(t,"isContainerVisible",(function(){return R})),n.d(t,"classesToSelector",(function(){return V})),n.d(t,"compareVersions",(function(){return o})),n.d(t,"confirmAction",(function(){return i})),n.d(t,"detectIEOrEdge",(function(){return a})),n.d(t,"detectIEBrowser",(function(){return s})),n.d(t,"loadFileFromBase64",(function(){return l})),n.d(t,"isMobile",(function(){return u})),n.d(t,"isShadowDOM",(function(){return c})),n.d(t,"getElement",(function(){return p})),n.d(t,"isElementVisible",(function(){return d})),n.d(t,"findScrollableParent",(function(){return h})),n.d(t,"scrollElementByChildId",(function(){return f})),n.d(t,"navigateToUrl",(function(){return m})),n.d(t,"createSvg",(function(){return y})),n.d(t,"getIconNameFromProxy",(function(){return g})),n.d(t,"increaseHeightByContent",(function(){return E})),n.d(t,"getOriginalEvent",(function(){return T})),n.d(t,"preventDefaults",(function(){return O})),n.d(t,"findParentByClassNames",(function(){return D})),n.d(t,"getFirstVisibleChild",(function(){return I}));var r=n("./src/settings.ts");function o(e,t){for(var n=/(\.0+)+$/,r=e.replace(n,"").split("."),o=t.replace(n,"").split("."),i=Math.min(r.length,o.length),s=0;s<i;s++){var a=parseInt(r[s],10)-parseInt(o[s],10);if(a)return a}return r.length-o.length}function i(e){return r.settings&&r.settings.confirmActionFunc?r.settings.confirmActionFunc(e):confirm(e)}function s(){if("undefined"==typeof window)return!1;var e=window.navigator.userAgent,t=e.indexOf("MSIE "),n=e.indexOf("Trident/");return t>-1||n>-1}function a(){if("undefined"==typeof window)return!1;if(void 0===a.isIEOrEdge){var e=window.navigator.userAgent,t=e.indexOf("MSIE "),n=e.indexOf("Trident/"),r=e.indexOf("Edge/");a.isIEOrEdge=r>0||n>0||t>0}return a.isIEOrEdge}function l(e,t){try{for(var n=atob(e.split(",")[1]),r=e.split(",")[0].split(":")[1].split(";")[0],o=new ArrayBuffer(n.length),i=new Uint8Array(o),s=0;s<n.length;s++)i[s]=n.charCodeAt(s);var a=new Blob([o],{type:r});"undefined"!=typeof window&&window.navigator&&window.navigator.msSaveBlob&&window.navigator.msSaveOrOpenBlob(a,t)}catch(e){}}function u(){return"undefined"!=typeof window&&void 0!==window.orientation}var c=function(e){return!!e&&!(!("host"in e)||!e.host)},p=function(e){var t=r.settings.environment.root;return"string"==typeof e?t.getElementById(e):e};function d(e,t){if(void 0===t&&(t=0),void 0===r.settings.environment)return!1;var n=r.settings.environment.root,o=c(n)?n.host.clientHeight:n.documentElement.clientHeight,i=e.getBoundingClientRect(),s=-t,a=Math.max(o,window.innerHeight)+t,l=i.top,u=i.bottom;return Math.max(s,l)<=Math.min(a,u)}function h(e){var t=r.settings.environment.root;return e?e.scrollHeight>e.clientHeight&&("scroll"===getComputedStyle(e).overflowY||"auto"===getComputedStyle(e).overflowY)||e.scrollWidth>e.clientWidth&&("scroll"===getComputedStyle(e).overflowX||"auto"===getComputedStyle(e).overflowX)?e:h(e.parentElement):c(t)?t.host:t.documentElement}function f(e){var t=r.settings.environment;if(t){var n=t.root.getElementById(e);if(n){var o=h(n);o&&o.dispatchEvent(new CustomEvent("scroll"))}}}function m(e){e&&"undefined"!=typeof window&&window.location&&(window.location.href=e)}function g(e){return e&&r.settings.customIcons[e]||e}function y(e,t,n,r,o,i){if(o){"auto"!==e&&(o.style.width=(e||t||16)+"px",o.style.height=(e||n||16)+"px");var s=o.childNodes[0],a=g(r);s.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href","#"+a);var l=o.getElementsByTagName("title")[0];i?(l||(l=document.createElementNS("http://www.w3.org/2000/svg","title"),o.appendChild(l)),l.textContent=i):l&&o.removeChild(l)}}function v(e){return"function"!=typeof e?e:e()}function b(e){if("string"==typeof e){if(!isNaN(Number(e)))return Number(e);if(e.includes("px"))return parseFloat(e)}if("number"==typeof e)return e}function C(e){if(void 0===b(e))return e}var w="sv-focused--by-key";function x(e){var t=e.target;t&&t.classList&&t.classList.remove(w)}function P(e,t){if(!e.target||"true"!==e.target.contentEditable){var n=e.target;if(n){var r=e.which||e.keyCode;if(9!==r){if(t){if(!t.__keyDownReceived)return;t.__keyDownReceived=!1}13===r||32===r?n.click&&n.click():t&&!t.processEsc||27!==r||n.blur&&n.blur()}else n.classList&&!n.classList.contains(w)&&n.classList.add(w)}}}function S(e,t){if(void 0===t&&(t={processEsc:!0}),t&&(t.__keyDownReceived=!0),!e.target||"true"!==e.target.contentEditable){var n=e.which||e.keyCode,r=[13,32];t.processEsc&&r.push(27),-1!==r.indexOf(n)&&e.preventDefault()}}function E(e,t){if(e){t||(t=function(e){return window.getComputedStyle(e)});var n=t(e);e.style.height="auto",e.style.height=e.scrollHeight+parseFloat(n.borderTopWidth)+parseFloat(n.borderBottomWidth)+"px"}}function T(e){return e.originalEvent||e}function O(e){e.preventDefault(),e.stopPropagation()}function V(e){return e.replace(/\s*?([\w-]+)\s*?/g,".$1")}function _(e){return getComputedStyle?Number.parseFloat(getComputedStyle(e).width):e.offsetWidth}function R(e){return!!(e.offsetWidth||e.offsetHeight||e.getClientRects().length)}function I(e){for(var t,n=0;n<e.children.length;n++)t||"none"===getComputedStyle(e.children[n]).display||(t=e.children[n]);return t}function D(e,t){if(e)return t.every((function(t){return!t||e.classList.contains(t)}))?e:D(e.parentElement,t)}function A(e){if(window.getSelection&&document.createRange&&e.childNodes.length>0){var t=document.getSelection(),n=t.getRangeAt(0);n.setStart(n.endContainer,n.endOffset),n.setEndAfter(e.lastChild),t.removeAllRanges(),t.addRange(n);var r=t.toString().replace(/\n/g,"").length;e.innerText=e.innerText.replace(/\n/g,""),(n=document.createRange()).setStart(e.childNodes[0],e.innerText.length-r),n.collapse(!0),t.removeAllRanges(),t.addRange(n)}}function k(e,t){if(t&&e&&"object"==typeof t)for(var n in e){var r=e[n];!Array.isArray(r)&&r&&"object"==typeof r?(t[n]&&"object"==typeof t[n]||(t[n]={}),k(r,t[n])):t[n]=r}}var M=function(){function e(){this._result=""}return e.prototype.log=function(e){this._result+="->"+e},Object.defineProperty(e.prototype,"result",{get:function(){return this._result},enumerable:!1,configurable:!0}),e}()},react:function(t,n){t.exports=e},"react-dom":function(e,n){e.exports=t},"survey-core":function(e,t){e.exports=n}})},e.exports=r(n(294),n(935),n(535))},61:(e,t,n)=>{var r=n(698).default;function o(){"use strict";e.exports=o=function(){return t},e.exports.__esModule=!0,e.exports.default=e.exports;var t={},n=Object.prototype,i=n.hasOwnProperty,s=Object.defineProperty||function(e,t,n){e[t]=n.value},a="function"==typeof Symbol?Symbol:{},l=a.iterator||"@@iterator",u=a.asyncIterator||"@@asyncIterator",c=a.toStringTag||"@@toStringTag";function p(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{p({},"")}catch(e){p=function(e,t,n){return e[t]=n}}function d(e,t,n,r){var o=t&&t.prototype instanceof m?t:m,i=Object.create(o.prototype),a=new V(r||[]);return s(i,"_invoke",{value:S(e,n,a)}),i}function h(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}t.wrap=d;var f={};function m(){}function g(){}function y(){}var v={};p(v,l,(function(){return this}));var b=Object.getPrototypeOf,C=b&&b(b(_([])));C&&C!==n&&i.call(C,l)&&(v=C);var w=y.prototype=m.prototype=Object.create(v);function x(e){["next","throw","return"].forEach((function(t){p(e,t,(function(e){return this._invoke(t,e)}))}))}function P(e,t){function n(o,s,a,l){var u=h(e[o],e,s);if("throw"!==u.type){var c=u.arg,p=c.value;return p&&"object"==r(p)&&i.call(p,"__await")?t.resolve(p.__await).then((function(e){n("next",e,a,l)}),(function(e){n("throw",e,a,l)})):t.resolve(p).then((function(e){c.value=e,a(c)}),(function(e){return n("throw",e,a,l)}))}l(u.arg)}var o;s(this,"_invoke",{value:function(e,r){function i(){return new t((function(t,o){n(e,r,t,o)}))}return o=o?o.then(i,i):i()}})}function S(e,t,n){var r="suspendedStart";return function(o,i){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===o)throw i;return{value:void 0,done:!0}}for(n.method=o,n.arg=i;;){var s=n.delegate;if(s){var a=E(s,n);if(a){if(a===f)continue;return a}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===r)throw r="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r="executing";var l=h(e,t,n);if("normal"===l.type){if(r=n.done?"completed":"suspendedYield",l.arg===f)continue;return{value:l.arg,done:n.done}}"throw"===l.type&&(r="completed",n.method="throw",n.arg=l.arg)}}}function E(e,t){var n=t.method,r=e.iterator[n];if(void 0===r)return t.delegate=null,"throw"===n&&e.iterator.return&&(t.method="return",t.arg=void 0,E(e,t),"throw"===t.method)||"return"!==n&&(t.method="throw",t.arg=new TypeError("The iterator does not provide a '"+n+"' method")),f;var o=h(r,e.iterator,t.arg);if("throw"===o.type)return t.method="throw",t.arg=o.arg,t.delegate=null,f;var i=o.arg;return i?i.done?(t[e.resultName]=i.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,f):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,f)}function T(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function O(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function V(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(T,this),this.reset(!0)}function _(e){if(e){var t=e[l];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var n=-1,r=function t(){for(;++n<e.length;)if(i.call(e,n))return t.value=e[n],t.done=!1,t;return t.value=void 0,t.done=!0,t};return r.next=r}}return{next:R}}function R(){return{value:void 0,done:!0}}return g.prototype=y,s(w,"constructor",{value:y,configurable:!0}),s(y,"constructor",{value:g,configurable:!0}),g.displayName=p(y,c,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===g||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,y):(e.__proto__=y,p(e,c,"GeneratorFunction")),e.prototype=Object.create(w),e},t.awrap=function(e){return{__await:e}},x(P.prototype),p(P.prototype,u,(function(){return this})),t.AsyncIterator=P,t.async=function(e,n,r,o,i){void 0===i&&(i=Promise);var s=new P(d(e,n,r,o),i);return t.isGeneratorFunction(n)?s:s.next().then((function(e){return e.done?e.value:s.next()}))},x(w),p(w,c,"Generator"),p(w,l,(function(){return this})),p(w,"toString",(function(){return"[object Generator]"})),t.keys=function(e){var t=Object(e),n=[];for(var r in t)n.push(r);return n.reverse(),function e(){for(;n.length;){var r=n.pop();if(r in t)return e.value=r,e.done=!1,e}return e.done=!0,e}},t.values=_,V.prototype={constructor:V,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(O),!e)for(var t in this)"t"===t.charAt(0)&&i.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function n(n,r){return s.type="throw",s.arg=e,t.next=n,r&&(t.method="next",t.arg=void 0),!!r}for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r],s=o.completion;if("root"===o.tryLoc)return n("end");if(o.tryLoc<=this.prev){var a=i.call(o,"catchLoc"),l=i.call(o,"finallyLoc");if(a&&l){if(this.prev<o.catchLoc)return n(o.catchLoc,!0);if(this.prev<o.finallyLoc)return n(o.finallyLoc)}else if(a){if(this.prev<o.catchLoc)return n(o.catchLoc,!0)}else{if(!l)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return n(o.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var r=this.tryEntries[n];if(r.tryLoc<=this.prev&&i.call(r,"finallyLoc")&&this.prev<r.finallyLoc){var o=r;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var s=o?o.completion:{};return s.type=e,s.arg=t,o?(this.method="next",this.next=o.finallyLoc,f):this.complete(s)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),f},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),O(n),f}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var o=r.arg;O(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:_(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=void 0),f}},t}e.exports=o,e.exports.__esModule=!0,e.exports.default=e.exports},698:e=>{function t(n){return e.exports=t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},e.exports.__esModule=!0,e.exports.default=e.exports,t(n)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports},687:(e,t,n)=>{var r=n(61)();e.exports=r;try{regeneratorRuntime=r}catch(e){"object"==typeof globalThis?globalThis.regeneratorRuntime=r:Function("r","regeneratorRuntime = r")(r)}}},t={};function n(r){var o=t[r];if(void 0!==o)return o.exports;var i=t[r]={exports:{}};return e[r].call(i.exports,i,i.exports,n),i.exports}n.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return n.d(t,{a:t}),t},n.d=(e,t)=>{for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),(()=>{var e;n.g.importScripts&&(e=n.g.location+"");var t=n.g.document;if(!e&&t&&(t.currentScript&&(e=t.currentScript.src),!e)){var r=t.getElementsByTagName("script");if(r.length)for(var o=r.length-1;o>-1&&!e;)e=r[o--].src}if(!e)throw new Error("Automatic publicPath is not supported in this browser");e=e.replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),n.p=e})(),(()=>{"use strict";var e,t=n(294),r=n(745);function o(){return o=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},o.apply(this,arguments)}!function(e){e.Pop="POP",e.Push="PUSH",e.Replace="REPLACE"}(e||(e={}));const i="popstate";function s(e,t){if(!1===e||null==e)throw new Error(t)}function a(e,t){if(!e){"undefined"!=typeof console&&console.warn(t);try{throw new Error(t)}catch(e){}}}function l(e,t){return{usr:e.state,key:e.key,idx:t}}function u(e,t,n,r){return void 0===n&&(n=null),o({pathname:"string"==typeof e?e:e.pathname,search:"",hash:""},"string"==typeof t?p(t):t,{state:n,key:t&&t.key||r||Math.random().toString(36).substr(2,8)})}function c(e){let{pathname:t="/",search:n="",hash:r=""}=e;return n&&"?"!==n&&(t+="?"===n.charAt(0)?n:"?"+n),r&&"#"!==r&&(t+="#"===r.charAt(0)?r:"#"+r),t}function p(e){let t={};if(e){let n=e.indexOf("#");n>=0&&(t.hash=e.substr(n),e=e.substr(0,n));let r=e.indexOf("?");r>=0&&(t.search=e.substr(r),e=e.substr(0,r)),e&&(t.pathname=e)}return t}var d;!function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"}(d||(d={}));const h=new Set(["lazy","caseSensitive","path","id","index","children"]);function f(e,t,n,r){return void 0===n&&(n=[]),void 0===r&&(r={}),e.map(((e,i)=>{let a=[...n,i],l="string"==typeof e.id?e.id:a.join("-");if(s(!0!==e.index||!e.children,"Cannot specify children on an index route"),s(!r[l],'Found a route id collision on id "'+l+"\".  Route id's must be globally unique within Data Router usages"),function(e){return!0===e.index}(e)){let n=o({},e,t(e),{id:l});return r[l]=n,n}{let n=o({},e,t(e),{id:l,children:void 0});return r[l]=n,e.children&&(n.children=f(e.children,t,a,r)),n}}))}function m(e,t,n){void 0===n&&(n="/");let r=_(("string"==typeof t?p(t):t).pathname||"/",n);if(null==r)return null;let o=g(e);!function(e){e.sort(((e,t)=>e.score!==t.score?t.score-e.score:function(e,t){let n=e.length===t.length&&e.slice(0,-1).every(((e,n)=>e===t[n]));return n?e[e.length-1]-t[t.length-1]:0}(e.routesMeta.map((e=>e.childrenIndex)),t.routesMeta.map((e=>e.childrenIndex)))))}(o);let i=null;for(let e=0;null==i&&e<o.length;++e)i=T(o[e],V(r));return i}function g(e,t,n,r){void 0===t&&(t=[]),void 0===n&&(n=[]),void 0===r&&(r="");let o=(e,o,i)=>{let a={relativePath:void 0===i?e.path||"":i,caseSensitive:!0===e.caseSensitive,childrenIndex:o,route:e};a.relativePath.startsWith("/")&&(s(a.relativePath.startsWith(r),'Absolute route path "'+a.relativePath+'" nested under path "'+r+'" is not valid. An absolute child route path must start with the combined path of all its parent routes.'),a.relativePath=a.relativePath.slice(r.length));let l=A([r,a.relativePath]),u=n.concat(a);e.children&&e.children.length>0&&(s(!0!==e.index,'Index routes must not have child routes. Please remove all child routes from route path "'+l+'".'),g(e.children,t,u,l)),(null!=e.path||e.index)&&t.push({path:l,score:E(l,e.index),routesMeta:u})};return e.forEach(((e,t)=>{var n;if(""!==e.path&&null!=(n=e.path)&&n.includes("?"))for(let n of y(e.path))o(e,t,n);else o(e,t)})),t}function y(e){let t=e.split("/");if(0===t.length)return[];let[n,...r]=t,o=n.endsWith("?"),i=n.replace(/\?$/,"");if(0===r.length)return o?[i,""]:[i];let s=y(r.join("/")),a=[];return a.push(...s.map((e=>""===e?i:[i,e].join("/")))),o&&a.push(...s),a.map((t=>e.startsWith("/")&&""===t?"/":t))}const v=/^:\w+$/,b=3,C=2,w=1,x=10,P=-2,S=e=>"*"===e;function E(e,t){let n=e.split("/"),r=n.length;return n.some(S)&&(r+=P),t&&(r+=C),n.filter((e=>!S(e))).reduce(((e,t)=>e+(v.test(t)?b:""===t?w:x)),r)}function T(e,t){let{routesMeta:n}=e,r={},o="/",i=[];for(let e=0;e<n.length;++e){let s=n[e],a=e===n.length-1,l="/"===o?t:t.slice(o.length)||"/",u=O({path:s.relativePath,caseSensitive:s.caseSensitive,end:a},l);if(!u)return null;Object.assign(r,u.params);let c=s.route;i.push({params:r,pathname:A([o,u.pathname]),pathnameBase:k(A([o,u.pathnameBase])),route:c}),"/"!==u.pathnameBase&&(o=A([o,u.pathnameBase]))}return i}function O(e,t){"string"==typeof e&&(e={path:e,caseSensitive:!1,end:!0});let[n,r]=function(e,t,n){void 0===t&&(t=!1),void 0===n&&(n=!0),a("*"===e||!e.endsWith("*")||e.endsWith("/*"),'Route path "'+e+'" will be treated as if it were "'+e.replace(/\*$/,"/*")+'" because the `*` character must always follow a `/` in the pattern. To get rid of this warning, please change the route path to "'+e.replace(/\*$/,"/*")+'".');let r=[],o="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^$?{}|()[\]]/g,"\\$&").replace(/\/:(\w+)/g,((e,t)=>(r.push(t),"/([^\\/]+)")));return e.endsWith("*")?(r.push("*"),o+="*"===e||"/*"===e?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?o+="\\/*$":""!==e&&"/"!==e&&(o+="(?:(?=\\/|$))"),[new RegExp(o,t?void 0:"i"),r]}(e.path,e.caseSensitive,e.end),o=t.match(n);if(!o)return null;let i=o[0],s=i.replace(/(.)\/+$/,"$1"),l=o.slice(1);return{params:r.reduce(((e,t,n)=>{if("*"===t){let e=l[n]||"";s=i.slice(0,i.length-e.length).replace(/(.)\/+$/,"$1")}return e[t]=function(e,t){try{return decodeURIComponent(e)}catch(n){return a(!1,'The value for the URL param "'+t+'" will not be decoded because the string "'+e+'" is a malformed URL segment. This is probably due to a bad percent encoding ('+n+")."),e}}(l[n]||"",t),e}),{}),pathname:i,pathnameBase:s,pattern:e}}function V(e){try{return decodeURI(e)}catch(t){return a(!1,'The URL path "'+e+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent encoding ('+t+")."),e}}function _(e,t){if("/"===t)return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=t.endsWith("/")?t.length-1:t.length,r=e.charAt(n);return r&&"/"!==r?null:e.slice(n)||"/"}function R(e,t,n,r){return"Cannot include a '"+e+"' character in a manually specified `to."+t+"` field ["+JSON.stringify(r)+"].  Please separate it out to the `to."+n+'` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.'}function I(e){return e.filter(((e,t)=>0===t||e.route.path&&e.route.path.length>0))}function D(e,t,n,r){let i;void 0===r&&(r=!1),"string"==typeof e?i=p(e):(i=o({},e),s(!i.pathname||!i.pathname.includes("?"),R("?","pathname","search",i)),s(!i.pathname||!i.pathname.includes("#"),R("#","pathname","hash",i)),s(!i.search||!i.search.includes("#"),R("#","search","hash",i)));let a,l=""===e||""===i.pathname,u=l?"/":i.pathname;if(r||null==u)a=n;else{let e=t.length-1;if(u.startsWith("..")){let t=u.split("/");for(;".."===t[0];)t.shift(),e-=1;i.pathname=t.join("/")}a=e>=0?t[e]:"/"}let c=function(e,t){void 0===t&&(t="/");let{pathname:n,search:r="",hash:o=""}="string"==typeof e?p(e):e,i=n?n.startsWith("/")?n:function(e,t){let n=t.replace(/\/+$/,"").split("/");return e.split("/").forEach((e=>{".."===e?n.length>1&&n.pop():"."!==e&&n.push(e)})),n.length>1?n.join("/"):"/"}(n,t):t;return{pathname:i,search:M(r),hash:N(o)}}(i,a),d=u&&"/"!==u&&u.endsWith("/"),h=(l||"."===u)&&n.endsWith("/");return c.pathname.endsWith("/")||!d&&!h||(c.pathname+="/"),c}const A=e=>e.join("/").replace(/\/\/+/g,"/"),k=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),M=e=>e&&"?"!==e?e.startsWith("?")?e:"?"+e:"",N=e=>e&&"#"!==e?e.startsWith("#")?e:"#"+e:"";Error;class L{constructor(e,t,n,r){void 0===r&&(r=!1),this.status=e,this.statusText=t||"",this.internal=r,n instanceof Error?(this.data=n.toString(),this.error=n):this.data=n}}function j(e){return null!=e&&"number"==typeof e.status&&"string"==typeof e.statusText&&"boolean"==typeof e.internal&&"data"in e}const q=["post","put","patch","delete"],F=new Set(q),B=["get",...q],Q=new Set(B),H=new Set([301,302,303,307,308]),z=new Set([307,308]),U={state:"idle",location:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0},W={state:"idle",data:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0},G={state:"unblocked",proceed:void 0,reset:void 0,location:void 0},J=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,K="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement,Y=!K,X=e=>({hasErrorBoundary:Boolean(e.hasErrorBoundary)});function Z(e,t,n,r,o,i,s){let a,l;if(null!=i&&"path"!==s){a=[];for(let e of t)if(a.push(e),e.route.id===i){l=e;break}}else a=t,l=t[t.length-1];let u=D(o||".",I(a).map((e=>e.pathnameBase)),_(e.pathname,n)||e.pathname,"path"===s);return null==o&&(u.search=e.search,u.hash=e.hash),null!=o&&""!==o&&"."!==o||!l||!l.route.index||we(u.search)||(u.search=u.search?u.search.replace(/^\?/,"?index&"):"?index"),r&&"/"!==n&&(u.pathname="/"===u.pathname?n:A([n,u.pathname])),c(u)}function ee(e,t,n,r){if(!r||!function(e){return null!=e&&"formData"in e}(r))return{path:n};if(r.formMethod&&(o=r.formMethod,!Q.has(o.toLowerCase())))return{path:n,error:de(405,{method:r.formMethod})};var o;let i;if(r.formData){let t=r.formMethod||"get";if(i={formMethod:e?t.toUpperCase():t.toLowerCase(),formAction:fe(n),formEncType:r&&r.formEncType||"application/x-www-form-urlencoded",formData:r.formData},ve(i.formMethod))return{path:n,submission:i}}let s=p(n),a=ae(r.formData);return t&&s.search&&we(s.search)&&a.append("index",""),s.search="?"+a,{path:c(s),submission:i}}function te(e,t,n,r,i,s,a,l,u,c,p,d,h){let f=h?Object.values(h)[0]:d?Object.values(d)[0]:void 0,g=e.createURL(t.location),y=e.createURL(i),v=h?Object.keys(h)[0]:void 0,b=function(e,t){let n=e;if(t){let r=e.findIndex((e=>e.route.id===t));r>=0&&(n=e.slice(0,r))}return n}(n,v).filter(((e,n)=>{if(e.route.lazy)return!0;if(null==e.route.loader)return!1;if(function(e,t,n){let r=!t||n.route.id!==t.route.id,o=void 0===e[n.route.id];return r||o}(t.loaderData,t.matches[n],e)||a.some((t=>t===e.route.id)))return!0;let i=t.matches[n],l=e;return re(e,o({currentUrl:g,currentParams:i.params,nextUrl:y,nextParams:l.params},r,{actionResult:f,defaultShouldRevalidate:s||g.pathname+g.search===y.pathname+y.search||g.search!==y.search||ne(i,l)}))})),C=[];return u.forEach(((e,i)=>{if(!n.some((t=>t.route.id===e.routeId)))return;let a=m(c,e.path,p);if(!a)return void C.push({key:i,routeId:e.routeId,path:e.path,matches:null,match:null,controller:null});let u=Pe(a,e.path);(l.includes(i)||re(u,o({currentUrl:g,currentParams:t.matches[t.matches.length-1].params,nextUrl:y,nextParams:n[n.length-1].params},r,{actionResult:f,defaultShouldRevalidate:s})))&&C.push({key:i,routeId:e.routeId,path:e.path,matches:a,match:u,controller:new AbortController})})),[b,C]}function ne(e,t){let n=e.route.path;return e.pathname!==t.pathname||null!=n&&n.endsWith("*")&&e.params["*"]!==t.params["*"]}function re(e,t){if(e.route.shouldRevalidate){let n=e.route.shouldRevalidate(t);if("boolean"==typeof n)return n}return t.defaultShouldRevalidate}async function oe(e,t,n){if(!e.lazy)return;let r=await e.lazy();if(!e.lazy)return;let i=n[e.id];s(i,"No route found in manifest");let l={};for(let e in r){let t=void 0!==i[e]&&"hasErrorBoundary"!==e;a(!t,'Route "'+i.id+'" has a static property "'+e+'" defined but its lazy function is also returning a value for this property. The lazy route property "'+e+'" will be ignored.'),t||h.has(e)||(l[e]=r[e])}Object.assign(i,l),Object.assign(i,o({},t(i),{lazy:void 0}))}async function ie(e,t,n,r,o,i,a,l,u,c){let p,h,f;void 0===l&&(l=!1),void 0===u&&(u=!1);let m=e=>{let r,o=new Promise(((e,t)=>r=t));return f=()=>r(),t.signal.addEventListener("abort",f),Promise.race([e({request:t,params:n.params,context:c}),o])};try{let r=n.route[e];if(n.route.lazy)if(r)h=(await Promise.all([m(r),oe(n.route,i,o)]))[0];else{if(await oe(n.route,i,o),r=n.route[e],!r){if("action"===e){let e=new URL(t.url),r=e.pathname+e.search;throw de(405,{method:t.method,pathname:r,routeId:n.route.id})}return{type:d.data,data:void 0}}h=await m(r)}else{if(!r){let e=new URL(t.url);throw de(404,{pathname:e.pathname+e.search})}h=await m(r)}s(void 0!==h,"You defined "+("action"===e?"an action":"a loader")+' for route "'+n.route.id+"\" but didn't return anything from your `"+e+"` function. Please return a value or `null`.")}catch(e){p=d.error,h=e}finally{f&&t.signal.removeEventListener("abort",f)}if(null!=(g=h)&&"number"==typeof g.status&&"string"==typeof g.statusText&&"object"==typeof g.headers&&void 0!==g.body){let e,o=h.status;if(H.has(o)){let e=h.headers.get("Location");if(s(e,"Redirects returned/thrown from loaders/actions must have a Location header"),J.test(e)){if(!l){let n=new URL(t.url),r=e.startsWith("//")?new URL(n.protocol+e):new URL(e),o=null!=_(r.pathname,a);r.origin===n.origin&&o&&(e=r.pathname+r.search+r.hash)}}else e=Z(new URL(t.url),r.slice(0,r.indexOf(n)+1),a,!0,e);if(l)throw h.headers.set("Location",e),h;return{type:d.redirect,status:o,location:e,revalidate:null!==h.headers.get("X-Remix-Revalidate")}}if(u)throw{type:p||d.data,response:h};let i=h.headers.get("Content-Type");return e=i&&/\bapplication\/json\b/.test(i)?await h.json():await h.text(),p===d.error?{type:p,error:new L(o,h.statusText,e),headers:h.headers}:{type:d.data,data:e,statusCode:h.status,headers:h.headers}}var g,y,v;return p===d.error?{type:p,error:h}:function(e){let t=e;return t&&"object"==typeof t&&"object"==typeof t.data&&"function"==typeof t.subscribe&&"function"==typeof t.cancel&&"function"==typeof t.resolveData}(h)?{type:d.deferred,deferredData:h,statusCode:null==(y=h.init)?void 0:y.status,headers:(null==(v=h.init)?void 0:v.headers)&&new Headers(h.init.headers)}:{type:d.data,data:h}}function se(e,t,n,r){let o=e.createURL(fe(t)).toString(),i={signal:n};if(r&&ve(r.formMethod)){let{formMethod:e,formEncType:t,formData:n}=r;i.method=e.toUpperCase(),i.body="application/x-www-form-urlencoded"===t?ae(n):n}return new Request(o,i)}function ae(e){let t=new URLSearchParams;for(let[n,r]of e.entries())t.append(n,r instanceof File?r.name:r);return t}function le(e,t,n,r,i,a,l,u){let{loaderData:c,errors:p}=function(e,t,n,r,o){let i,a={},l=null,u=!1,c={};return n.forEach(((n,p)=>{let d=t[p].route.id;if(s(!ye(n),"Cannot handle redirect results in processLoaderData"),ge(n)){let t=ce(e,d),o=n.error;r&&(o=Object.values(r)[0],r=void 0),l=l||{},null==l[t.route.id]&&(l[t.route.id]=o),a[d]=void 0,u||(u=!0,i=j(n.error)?n.error.status:500),n.headers&&(c[d]=n.headers)}else me(n)?(o.set(d,n.deferredData),a[d]=n.deferredData.data):a[d]=n.data,null==n.statusCode||200===n.statusCode||u||(i=n.statusCode),n.headers&&(c[d]=n.headers)})),r&&(l=r,a[Object.keys(r)[0]]=void 0),{loaderData:a,errors:l,statusCode:i||200,loaderHeaders:c}}(t,n,r,i,u);for(let t=0;t<a.length;t++){let{key:n,match:r,controller:i}=a[t];s(void 0!==l&&void 0!==l[t],"Did not find corresponding fetcher result");let u=l[t];if(!i||!i.signal.aborted)if(ge(u)){let t=ce(e.matches,null==r?void 0:r.route.id);p&&p[t.route.id]||(p=o({},p,{[t.route.id]:u.error})),e.fetchers.delete(n)}else if(ye(u))s(!1,"Unhandled fetcher revalidation redirect");else if(me(u))s(!1,"Unhandled fetcher deferred data");else{let t={state:"idle",data:u.data,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0," _hasFetcherDoneAnything ":!0};e.fetchers.set(n,t)}}return{loaderData:c,errors:p}}function ue(e,t,n,r){let i=o({},t);for(let o of n){let n=o.route.id;if(t.hasOwnProperty(n)?void 0!==t[n]&&(i[n]=t[n]):void 0!==e[n]&&o.route.loader&&(i[n]=e[n]),r&&r.hasOwnProperty(n))break}return i}function ce(e,t){return(t?e.slice(0,e.findIndex((e=>e.route.id===t))+1):[...e]).reverse().find((e=>!0===e.route.hasErrorBoundary))||e[0]}function pe(e){let t=e.find((e=>e.index||!e.path||"/"===e.path))||{id:"__shim-error-route__"};return{matches:[{params:{},pathname:"",pathnameBase:"",route:t}],route:t}}function de(e,t){let{pathname:n,routeId:r,method:o,type:i}=void 0===t?{}:t,s="Unknown Server Error",a="Unknown @remix-run/router error";return 400===e?(s="Bad Request",o&&n&&r?a="You made a "+o+' request to "'+n+'" but did not provide a `loader` for route "'+r+'", so there is no way to handle the request.':"defer-action"===i&&(a="defer() is not supported in actions")):403===e?(s="Forbidden",a='Route "'+r+'" does not match URL "'+n+'"'):404===e?(s="Not Found",a='No route matches URL "'+n+'"'):405===e&&(s="Method Not Allowed",o&&n&&r?a="You made a "+o.toUpperCase()+' request to "'+n+'" but did not provide an `action` for route "'+r+'", so there is no way to handle the request.':o&&(a='Invalid request method "'+o.toUpperCase()+'"')),new L(e||500,s,new Error(a),!0)}function he(e){for(let t=e.length-1;t>=0;t--){let n=e[t];if(ye(n))return n}}function fe(e){return c(o({},"string"==typeof e?p(e):e,{hash:""}))}function me(e){return e.type===d.deferred}function ge(e){return e.type===d.error}function ye(e){return(e&&e.type)===d.redirect}function ve(e){return F.has(e.toLowerCase())}async function be(e,t,n,r,o,i){for(let a=0;a<n.length;a++){let l=n[a],u=t[a];if(!u)continue;let c=e.find((e=>e.route.id===u.route.id)),p=null!=c&&!ne(c,u)&&void 0!==(i&&i[u.route.id]);if(me(l)&&(o||p)){let e=r[a];s(e,"Expected an AbortSignal for revalidating fetcher deferred result"),await Ce(l,e,o).then((e=>{e&&(n[a]=e||n[a])}))}}}async function Ce(e,t,n){if(void 0===n&&(n=!1),!await e.deferredData.resolveData(t)){if(n)try{return{type:d.data,data:e.deferredData.unwrappedData}}catch(e){return{type:d.error,error:e}}return{type:d.data,data:e.deferredData.data}}}function we(e){return new URLSearchParams(e).getAll("index").some((e=>""===e))}function xe(e,t){let{route:n,pathname:r,params:o}=e;return{id:n.id,pathname:r,params:o,data:t[n.id],handle:n.handle}}function Pe(e,t){let n="string"==typeof t?p(t).search:t.search;if(e[e.length-1].route.index&&we(n||""))return e[e.length-1];let r=I(e);return r[r.length-1]}function Se(){return Se=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Se.apply(this,arguments)}Symbol("deferred");const Ee=t.createContext(null),Te=t.createContext(null),Oe=t.createContext(null),Ve=t.createContext(null),_e=t.createContext({outlet:null,matches:[],isDataRoute:!1}),Re=t.createContext(null);function Ie(){return null!=t.useContext(Ve)}function De(){return Ie()||s(!1),t.useContext(Ve).location}function Ae(e){t.useContext(Oe).static||t.useLayoutEffect(e)}function ke(){let{isDataRoute:e}=t.useContext(_e);return e?function(){let{router:e}=He(Be.UseNavigateStable),n=Ue(Qe.UseNavigateStable),r=t.useRef(!1);Ae((()=>{r.current=!0}));let o=t.useCallback((function(t,o){void 0===o&&(o={}),r.current&&("number"==typeof t?e.navigate(t):e.navigate(t,Se({fromRouteId:n},o)))}),[e,n]);return o}():function(){Ie()||s(!1);let e=t.useContext(Ee),{basename:n,navigator:r}=t.useContext(Oe),{matches:o}=t.useContext(_e),{pathname:i}=De(),a=JSON.stringify(I(o).map((e=>e.pathnameBase))),l=t.useRef(!1);Ae((()=>{l.current=!0}));let u=t.useCallback((function(t,o){if(void 0===o&&(o={}),!l.current)return;if("number"==typeof t)return void r.go(t);let s=D(t,JSON.parse(a),i,"path"===o.relative);null==e&&"/"!==n&&(s.pathname="/"===s.pathname?n:A([n,s.pathname])),(o.replace?r.replace:r.push)(s,o.state,o)}),[n,r,a,i,e]);return u}()}function Me(e,n){let{relative:r}=void 0===n?{}:n,{matches:o}=t.useContext(_e),{pathname:i}=De(),s=JSON.stringify(I(o).map((e=>e.pathnameBase)));return t.useMemo((()=>D(e,JSON.parse(s),i,"path"===r)),[e,s,i,r])}function Ne(n,r,o){Ie()||s(!1);let{navigator:i}=t.useContext(Oe),{matches:a}=t.useContext(_e),l=a[a.length-1],u=l?l.params:{},c=(l&&l.pathname,l?l.pathnameBase:"/");l&&l.route;let d,h=De();if(r){var f;let e="string"==typeof r?p(r):r;"/"===c||(null==(f=e.pathname)?void 0:f.startsWith(c))||s(!1),d=e}else d=h;let g=d.pathname||"/",y=m(n,{pathname:"/"===c?g:g.slice(c.length)||"/"}),v=function(e,n,r){var o;if(void 0===n&&(n=[]),void 0===r&&(r=null),null==e){var i;if(null==(i=r)||!i.errors)return null;e=r.matches}let a=e,l=null==(o=r)?void 0:o.errors;if(null!=l){let e=a.findIndex((e=>e.route.id&&(null==l?void 0:l[e.route.id])));e>=0||s(!1),a=a.slice(0,Math.min(a.length,e+1))}return a.reduceRight(((e,o,i)=>{let s=o.route.id?null==l?void 0:l[o.route.id]:null,u=null;r&&(u=o.route.errorElement||je);let c=n.concat(a.slice(0,i+1)),p=()=>{let n;return n=s?u:o.route.Component?t.createElement(o.route.Component,null):o.route.element?o.route.element:e,t.createElement(Fe,{match:o,routeContext:{outlet:e,matches:c,isDataRoute:null!=r},children:n})};return r&&(o.route.ErrorBoundary||o.route.errorElement||0===i)?t.createElement(qe,{location:r.location,revalidation:r.revalidation,component:u,error:s,children:p(),routeContext:{outlet:null,matches:c,isDataRoute:!0}}):p()}),null)}(y&&y.map((e=>Object.assign({},e,{params:Object.assign({},u,e.params),pathname:A([c,i.encodeLocation?i.encodeLocation(e.pathname).pathname:e.pathname]),pathnameBase:"/"===e.pathnameBase?c:A([c,i.encodeLocation?i.encodeLocation(e.pathnameBase).pathname:e.pathnameBase])}))),a,o);return r&&v?t.createElement(Ve.Provider,{value:{location:Se({pathname:"/",search:"",hash:"",state:null,key:"default"},d),navigationType:e.Pop}},v):v}function Le(){let e=function(){var e;let n=t.useContext(Re),r=ze(Qe.UseRouteError),o=Ue(Qe.UseRouteError);return n||(null==(e=r.errors)?void 0:e[o])}(),n=j(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),r=e instanceof Error?e.stack:null,o={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"};return t.createElement(t.Fragment,null,t.createElement("h2",null,"Unexpected Application Error!"),t.createElement("h3",{style:{fontStyle:"italic"}},n),r?t.createElement("pre",{style:o},r):null,null)}const je=t.createElement(Le,null);class qe extends t.Component{constructor(e){super(e),this.state={location:e.location,revalidation:e.revalidation,error:e.error}}static getDerivedStateFromError(e){return{error:e}}static getDerivedStateFromProps(e,t){return t.location!==e.location||"idle"!==t.revalidation&&"idle"===e.revalidation?{error:e.error,location:e.location,revalidation:e.revalidation}:{error:e.error||t.error,location:t.location,revalidation:e.revalidation||t.revalidation}}componentDidCatch(e,t){console.error("React Router caught the following error during render",e,t)}render(){return this.state.error?t.createElement(_e.Provider,{value:this.props.routeContext},t.createElement(Re.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function Fe(e){let{routeContext:n,match:r,children:o}=e,i=t.useContext(Ee);return i&&i.static&&i.staticContext&&(r.route.errorElement||r.route.ErrorBoundary)&&(i.staticContext._deepestRenderedBoundaryId=r.route.id),t.createElement(_e.Provider,{value:n},o)}var Be,Qe;function He(e){let n=t.useContext(Ee);return n||s(!1),n}function ze(e){let n=t.useContext(Te);return n||s(!1),n}function Ue(e){let n=function(e){let n=t.useContext(_e);return n||s(!1),n}(),r=n.matches[n.matches.length-1];return r.route.id||s(!1),r.route.id}!function(e){e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate"}(Be||(Be={})),function(e){e.UseBlocker="useBlocker",e.UseLoaderData="useLoaderData",e.UseActionData="useActionData",e.UseRouteError="useRouteError",e.UseNavigation="useNavigation",e.UseRouteLoaderData="useRouteLoaderData",e.UseMatches="useMatches",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e.UseRouteId="useRouteId"}(Qe||(Qe={}));let We=0;function Ge(e){let{fallbackElement:n,router:r}=e,[o,i]=t.useState(r.state);t.useLayoutEffect((()=>r.subscribe(i)),[r,i]);let s=t.useMemo((()=>({createHref:r.createHref,encodeLocation:r.encodeLocation,go:e=>r.navigate(e),push:(e,t,n)=>r.navigate(e,{state:t,preventScrollReset:null==n?void 0:n.preventScrollReset}),replace:(e,t,n)=>r.navigate(e,{replace:!0,state:t,preventScrollReset:null==n?void 0:n.preventScrollReset})})),[r]),a=r.basename||"/",l=t.useMemo((()=>({router:r,navigator:s,static:!1,basename:a})),[r,s,a]);return t.createElement(t.Fragment,null,t.createElement(Ee.Provider,{value:l},t.createElement(Te.Provider,{value:o},t.createElement(Je,{basename:r.basename,location:r.state.location,navigationType:r.state.historyAction,navigator:s},r.state.initialized?t.createElement($e,{routes:r.routes,state:o}):n))),null)}function $e(e){let{routes:t,state:n}=e;return Ne(t,void 0,n)}function Je(n){let{basename:r="/",children:o=null,location:i,navigationType:a=e.Pop,navigator:l,static:u=!1}=n;Ie()&&s(!1);let c=r.replace(/^\/*/,"/"),d=t.useMemo((()=>({basename:c,navigator:l,static:u})),[c,l,u]);"string"==typeof i&&(i=p(i));let{pathname:h="/",search:f="",hash:m="",state:g=null,key:y="default"}=i,v=t.useMemo((()=>{let e=_(h,c);return null==e?null:{location:{pathname:e,search:f,hash:m,state:g,key:y},navigationType:a}}),[c,h,f,m,g,y,a]);return null==v?null:t.createElement(Oe.Provider,{value:d},t.createElement(Ve.Provider,{children:o,value:v}))}var Ke;function Ye(){return Ye=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Ye.apply(this,arguments)}!function(e){e[e.pending=0]="pending",e[e.success=1]="success",e[e.error=2]="error"}(Ke||(Ke={})),new Promise((()=>{})),t.Component;const Xe=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset"];function Ze(e){if(!e)return null;let t=Object.entries(e),n={};for(let[e,r]of t)if(r&&"RouteErrorResponse"===r.__type)n[e]=new L(r.status,r.statusText,r.data,!0===r.internal);else if(r&&"Error"===r.__type){let t=new Error(r.message);t.stack="",n[e]=t}else n[e]=r;return n}const et="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement,tt=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,nt=t.forwardRef((function(e,n){let r,{onClick:o,relative:i,reloadDocument:a,replace:l,state:u,target:p,to:d,preventScrollReset:h}=e,f=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,Xe),{basename:m}=t.useContext(Oe),g=!1;if("string"==typeof d&&tt.test(d)&&(r=d,et))try{let e=new URL(window.location.href),t=d.startsWith("//")?new URL(e.protocol+d):new URL(d),n=_(t.pathname,m);t.origin===e.origin&&null!=n?d=n+t.search+t.hash:g=!0}catch(e){}let y=function(e,n){let{relative:r}=void 0===n?{}:n;Ie()||s(!1);let{basename:o,navigator:i}=t.useContext(Oe),{hash:a,pathname:l,search:u}=Me(e,{relative:r}),c=l;return"/"!==o&&(c="/"===l?o:A([o,l])),i.createHref({pathname:c,search:u,hash:a})}(d,{relative:i}),v=function(e,n){let{target:r,replace:o,state:i,preventScrollReset:s,relative:a}=void 0===n?{}:n,l=ke(),u=De(),p=Me(e,{relative:a});return t.useCallback((t=>{if(function(e,t){return!(0!==e.button||t&&"_self"!==t||function(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}(e))}(t,r)){t.preventDefault();let n=void 0!==o?o:c(u)===c(p);l(e,{replace:n,state:i,preventScrollReset:s,relative:a})}}),[u,l,p,o,i,r,e,s,a])}(d,{replace:l,state:u,target:p,preventScrollReset:h,relative:i});return t.createElement("a",Ye({},f,{href:r||y,onClick:g||a?o:function(e){o&&o(e),e.defaultPrevented||v(e)},ref:n,target:p}))}));var rt,ot;function it(e,t,n,r,o,i,s){try{var a=e[i](s),l=a.value}catch(e){return void n(e)}a.done?t(l):Promise.resolve(l).then(r,o)}function st(e){return function(){var t=this,n=arguments;return new Promise((function(r,o){var i=e.apply(t,n);function s(e){it(i,r,o,s,a,"next",e)}function a(e){it(i,r,o,s,a,"throw",e)}s(void 0)}))}}function at(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function lt(e,t){if(e){if("string"==typeof e)return at(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?at(e,t):void 0}}function ut(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,s,a=[],l=!0,u=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=i.call(n)).done)&&(a.push(r.value),a.length!==t);l=!0);}catch(e){u=!0,o=e}finally{try{if(!l&&null!=n.return&&(s=n.return(),Object(s)!==s))return}finally{if(u)throw o}}return a}}(e,t)||lt(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmitImpl="useSubmitImpl",e.UseFetcher="useFetcher"})(rt||(rt={})),function(e){e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"}(ot||(ot={}));var ct=n(687),pt=n.n(ct),dt=n(184),ht=n.n(dt);function ft(){return ft=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},ft.apply(this,arguments)}function mt(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}function gt(e){return"default"+e.charAt(0).toUpperCase()+e.substr(1)}function yt(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:String(t)}n(143);var vt=n(893);const bt=t.createContext({prefixes:{},breakpoints:["xxl","xl","lg","md","sm","xs"],minBreakpoint:"xs"}),{Consumer:Ct,Provider:wt}=bt;function xt(e,n){const{prefixes:r}=(0,t.useContext)(bt);return e||r[n]||n}function Pt(){const{breakpoints:e}=(0,t.useContext)(bt);return e}function St(){const{minBreakpoint:e}=(0,t.useContext)(bt);return e}var Et=/([A-Z])/g,Tt=/^ms-/;function Ot(e){return function(e){return e.replace(Et,"-$1").toLowerCase()}(e).replace(Tt,"-ms-")}var Vt=/^((translate|rotate|scale)(X|Y|Z|3d)?|matrix(3d)?|perspective|skew(X|Y)?)$/i;const _t=function(e,t){var n="",r="";if("string"==typeof t)return e.style.getPropertyValue(Ot(t))||function(e,t){return function(e){var t=function(e){return e&&e.ownerDocument||document}(e);return t&&t.defaultView||window}(e).getComputedStyle(e,void 0)}(e).getPropertyValue(Ot(t));Object.keys(t).forEach((function(o){var i=t[o];i||0===i?function(e){return!(!e||!Vt.test(e))}(o)?r+=o+"("+i+") ":n+=Ot(o)+": "+i+";":e.style.removeProperty(Ot(o))})),r&&(n+="transform: "+r+";"),e.style.cssText+=";"+n};function Rt(e,t){return Rt=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Rt(e,t)}var It=n(935);const Dt=t.createContext(null);var At="unmounted",kt="exited",Mt="entering",Nt="entered",Lt="exiting",jt=function(e){var n,r;function o(t,n){var r;r=e.call(this,t,n)||this;var o,i=n&&!n.isMounting?t.enter:t.appear;return r.appearStatus=null,t.in?i?(o=kt,r.appearStatus=Mt):o=Nt:o=t.unmountOnExit||t.mountOnEnter?At:kt,r.state={status:o},r.nextCallback=null,r}r=e,(n=o).prototype=Object.create(r.prototype),n.prototype.constructor=n,Rt(n,r),o.getDerivedStateFromProps=function(e,t){return e.in&&t.status===At?{status:kt}:null};var i=o.prototype;return i.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},i.componentDidUpdate=function(e){var t=null;if(e!==this.props){var n=this.state.status;this.props.in?n!==Mt&&n!==Nt&&(t=Mt):n!==Mt&&n!==Nt||(t=Lt)}this.updateStatus(!1,t)},i.componentWillUnmount=function(){this.cancelNextCallback()},i.getTimeouts=function(){var e,t,n,r=this.props.timeout;return e=t=n=r,null!=r&&"number"!=typeof r&&(e=r.exit,t=r.enter,n=void 0!==r.appear?r.appear:t),{exit:e,enter:t,appear:n}},i.updateStatus=function(e,t){if(void 0===e&&(e=!1),null!==t)if(this.cancelNextCallback(),t===Mt){if(this.props.unmountOnExit||this.props.mountOnEnter){var n=this.props.nodeRef?this.props.nodeRef.current:It.findDOMNode(this);n&&function(e){e.scrollTop}(n)}this.performEnter(e)}else this.performExit();else this.props.unmountOnExit&&this.state.status===kt&&this.setState({status:At})},i.performEnter=function(e){var t=this,n=this.props.enter,r=this.context?this.context.isMounting:e,o=this.props.nodeRef?[r]:[It.findDOMNode(this),r],i=o[0],s=o[1],a=this.getTimeouts(),l=r?a.appear:a.enter;e||n?(this.props.onEnter(i,s),this.safeSetState({status:Mt},(function(){t.props.onEntering(i,s),t.onTransitionEnd(l,(function(){t.safeSetState({status:Nt},(function(){t.props.onEntered(i,s)}))}))}))):this.safeSetState({status:Nt},(function(){t.props.onEntered(i)}))},i.performExit=function(){var e=this,t=this.props.exit,n=this.getTimeouts(),r=this.props.nodeRef?void 0:It.findDOMNode(this);t?(this.props.onExit(r),this.safeSetState({status:Lt},(function(){e.props.onExiting(r),e.onTransitionEnd(n.exit,(function(){e.safeSetState({status:kt},(function(){e.props.onExited(r)}))}))}))):this.safeSetState({status:kt},(function(){e.props.onExited(r)}))},i.cancelNextCallback=function(){null!==this.nextCallback&&(this.nextCallback.cancel(),this.nextCallback=null)},i.safeSetState=function(e,t){t=this.setNextCallback(t),this.setState(e,t)},i.setNextCallback=function(e){var t=this,n=!0;return this.nextCallback=function(r){n&&(n=!1,t.nextCallback=null,e(r))},this.nextCallback.cancel=function(){n=!1},this.nextCallback},i.onTransitionEnd=function(e,t){this.setNextCallback(t);var n=this.props.nodeRef?this.props.nodeRef.current:It.findDOMNode(this),r=null==e&&!this.props.addEndListener;if(n&&!r){if(this.props.addEndListener){var o=this.props.nodeRef?[this.nextCallback]:[n,this.nextCallback],i=o[0],s=o[1];this.props.addEndListener(i,s)}null!=e&&setTimeout(this.nextCallback,e)}else setTimeout(this.nextCallback,0)},i.render=function(){var e=this.state.status;if(e===At)return null;var n=this.props,r=n.children,o=(n.in,n.mountOnEnter,n.unmountOnExit,n.appear,n.enter,n.exit,n.timeout,n.addEndListener,n.onEnter,n.onEntering,n.onEntered,n.onExit,n.onExiting,n.onExited,n.nodeRef,mt(n,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]));return t.createElement(Dt.Provider,{value:null},"function"==typeof r?r(e,o):t.cloneElement(t.Children.only(r),o))},o}(t.Component);function qt(){}jt.contextType=Dt,jt.propTypes={},jt.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:qt,onEntering:qt,onEntered:qt,onExit:qt,onExiting:qt,onExited:qt},jt.UNMOUNTED=At,jt.EXITED=kt,jt.ENTERING=Mt,jt.ENTERED=Nt,jt.EXITING=Lt;const Ft=jt,Bt=!("undefined"==typeof window||!window.document||!window.document.createElement);var Qt=!1,Ht=!1;try{var zt={get passive(){return Qt=!0},get once(){return Ht=Qt=!0}};Bt&&(window.addEventListener("test",zt,zt),window.removeEventListener("test",zt,!0))}catch(On){}const Ut=function(e,t,n,r){return function(e,t,n,r){if(r&&"boolean"!=typeof r&&!Ht){var o=r.once,i=r.capture,s=n;!Ht&&o&&(s=n.__once||function e(r){this.removeEventListener(t,e,i),n.call(this,r)},n.__once=s),e.addEventListener(t,s,Qt?r:i)}e.addEventListener(t,n,r)}(e,t,n,r),function(){!function(e,t,n,r){var o=r&&"boolean"!=typeof r?r.capture:r;e.removeEventListener(t,n,o),n.__once&&e.removeEventListener(t,n.__once,o)}(e,t,n,r)}};function Wt(e,t,n,r){var o,i;null==n&&(i=-1===(o=_t(e,"transitionDuration")||"").indexOf("ms")?1e3:1,n=parseFloat(o)*i||0);var s=function(e,t,n){void 0===n&&(n=5);var r=!1,o=setTimeout((function(){r||function(e,t,n,r){if(void 0===n&&(n=!1),void 0===r&&(r=!0),e){var o=document.createEvent("HTMLEvents");o.initEvent("transitionend",n,r),e.dispatchEvent(o)}}(e,0,!0)}),t+n),i=Ut(e,"transitionend",(function(){r=!0}),{once:!0});return function(){clearTimeout(o),i()}}(e,n,r),a=Ut(e,"transitionend",t);return function(){s(),a()}}function Gt(e,t){const n=_t(e,t)||"",r=-1===n.indexOf("ms")?1e3:1;return parseFloat(n)*r}function $t(e,t){const n=Gt(e,"transitionDuration"),r=Gt(e,"transitionDelay"),o=Wt(e,(n=>{n.target===e&&(o(),t(n))}),n+r)}const Jt=function(...e){return e.filter((e=>null!=e)).reduce(((e,t)=>{if("function"!=typeof t)throw new Error("Invalid Argument Type, must only provide functions, undefined, or null.");return null===e?t:function(...n){e.apply(this,n),t.apply(this,n)}}),null)};var Kt=function(e){return e&&"function"!=typeof e?function(t){e.current=t}:e};const Yt=t.forwardRef((({onEnter:e,onEntering:n,onEntered:r,onExit:o,onExiting:i,onExited:s,addEndListener:a,children:l,childRef:u,...c},p)=>{const d=(0,t.useRef)(null),h=(P=d,S=u,(0,t.useMemo)((function(){return function(e,t){var n=Kt(e),r=Kt(t);return function(e){n&&n(e),r&&r(e)}}(P,S)}),[P,S])),f=e=>{var t;h((t=e)&&"setState"in t?It.findDOMNode(t):null!=t?t:null)},m=e=>t=>{e&&d.current&&e(d.current,t)},g=(0,t.useCallback)(m(e),[e]),y=(0,t.useCallback)(m(n),[n]),v=(0,t.useCallback)(m(r),[r]),b=(0,t.useCallback)(m(o),[o]),C=(0,t.useCallback)(m(i),[i]),w=(0,t.useCallback)(m(s),[s]),x=(0,t.useCallback)(m(a),[a]);var P,S;return(0,vt.jsx)(Ft,{ref:p,...c,onEnter:g,onEntered:v,onEntering:y,onExit:b,onExited:w,onExiting:C,addEndListener:x,nodeRef:d,children:"function"==typeof l?(e,t)=>l(e,{...t,ref:f}):t.cloneElement(l,{ref:f})})})),Xt=Yt,Zt={height:["marginTop","marginBottom"],width:["marginLeft","marginRight"]};function en(e,t){const n=t[`offset${e[0].toUpperCase()}${e.slice(1)}`],r=Zt[e];return n+parseInt(_t(t,r[0]),10)+parseInt(_t(t,r[1]),10)}const tn={[kt]:"collapse",[Lt]:"collapsing",[Mt]:"collapsing",[Nt]:"collapse show"},nn=t.forwardRef((({onEnter:e,onEntering:n,onEntered:r,onExit:o,onExiting:i,className:s,children:a,dimension:l="height",in:u=!1,timeout:c=300,mountOnEnter:p=!1,unmountOnExit:d=!1,appear:h=!1,getDimensionValue:f=en,...m},g)=>{const y="function"==typeof l?l():l,v=(0,t.useMemo)((()=>Jt((e=>{e.style[y]="0"}),e)),[y,e]),b=(0,t.useMemo)((()=>Jt((e=>{const t=`scroll${y[0].toUpperCase()}${y.slice(1)}`;e.style[y]=`${e[t]}px`}),n)),[y,n]),C=(0,t.useMemo)((()=>Jt((e=>{e.style[y]=null}),r)),[y,r]),w=(0,t.useMemo)((()=>Jt((e=>{e.style[y]=`${f(y,e)}px`,e.offsetHeight}),o)),[o,f,y]),x=(0,t.useMemo)((()=>Jt((e=>{e.style[y]=null}),i)),[y,i]);return(0,vt.jsx)(Xt,{ref:g,addEndListener:$t,...m,"aria-expanded":m.role?u:null,onEnter:v,onEntering:b,onEntered:C,onExit:w,onExiting:x,childRef:a.ref,in:u,timeout:c,mountOnEnter:p,unmountOnExit:d,appear:h,children:(e,n)=>t.cloneElement(a,{...n,className:ht()(s,a.props.className,tn[e],"width"===y&&"collapse-horizontal")})})}));function rn(e,t){return Array.isArray(e)?e.includes(t):e===t}const on=t.createContext({});on.displayName="AccordionContext";const sn=on,an=t.forwardRef((({as:e="div",bsPrefix:n,className:r,children:o,eventKey:i,...s},a)=>{const{activeEventKey:l}=(0,t.useContext)(sn);return n=xt(n,"accordion-collapse"),(0,vt.jsx)(nn,{ref:a,in:rn(l,i),...s,className:ht()(r,n),children:(0,vt.jsx)(e,{children:t.Children.only(o)})})}));an.displayName="AccordionCollapse";const ln=an,un=t.createContext({eventKey:""});un.displayName="AccordionItemContext";const cn=un,pn=t.forwardRef((({as:e="div",bsPrefix:n,className:r,onEnter:o,onEntering:i,onEntered:s,onExit:a,onExiting:l,onExited:u,...c},p)=>{n=xt(n,"accordion-body");const{eventKey:d}=(0,t.useContext)(cn);return(0,vt.jsx)(ln,{eventKey:d,onEnter:o,onEntering:i,onEntered:s,onExit:a,onExiting:l,onExited:u,children:(0,vt.jsx)(e,{ref:p,...c,className:ht()(r,n)})})}));pn.displayName="AccordionBody";const dn=pn,hn=t.forwardRef((({as:e="button",bsPrefix:n,className:r,onClick:o,...i},s)=>{n=xt(n,"accordion-button");const{eventKey:a}=(0,t.useContext)(cn),l=function(e,n){const{activeEventKey:r,onSelect:o,alwaysOpen:i}=(0,t.useContext)(sn);return t=>{let s=e===r?null:e;i&&(s=Array.isArray(r)?r.includes(e)?r.filter((t=>t!==e)):[...r,e]:[e]),null==o||o(s,t),null==n||n(t)}}(a,o),{activeEventKey:u}=(0,t.useContext)(sn);return"button"===e&&(i.type="button"),(0,vt.jsx)(e,{ref:s,onClick:l,...i,"aria-expanded":Array.isArray(u)?u.includes(a):a===u,className:ht()(r,n,!rn(u,a)&&"collapsed")})}));hn.displayName="AccordionButton";const fn=hn,mn=t.forwardRef((({as:e="h2",bsPrefix:t,className:n,children:r,onClick:o,...i},s)=>(t=xt(t,"accordion-header"),(0,vt.jsx)(e,{ref:s,...i,className:ht()(n,t),children:(0,vt.jsx)(fn,{onClick:o,children:r})}))));mn.displayName="AccordionHeader";const gn=mn,yn=t.forwardRef((({as:e="div",bsPrefix:n,className:r,eventKey:o,...i},s)=>{n=xt(n,"accordion-item");const a=(0,t.useMemo)((()=>({eventKey:o})),[o]);return(0,vt.jsx)(cn.Provider,{value:a,children:(0,vt.jsx)(e,{ref:s,...i,className:ht()(r,n)})})}));yn.displayName="AccordionItem";const vn=yn,bn=t.forwardRef(((e,n)=>{const{as:r="div",activeKey:o,bsPrefix:i,className:s,onSelect:a,flush:l,alwaysOpen:u,...c}=function(e,n){return Object.keys(n).reduce((function(r,o){var i,s=r,a=s[gt(o)],l=s[o],u=mt(s,[gt(o),o].map(yt)),c=n[o],p=function(e,n,r){var o=(0,t.useRef)(void 0!==e),i=(0,t.useState)(n),s=i[0],a=i[1],l=void 0!==e,u=o.current;return o.current=l,!l&&u&&s!==n&&a(n),[l?e:s,(0,t.useCallback)((function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),o=1;o<t;o++)n[o-1]=arguments[o];r&&r.apply(void 0,[e].concat(n)),a(e)}),[r])]}(l,a,e[c]),d=p[0],h=p[1];return ft({},u,((i={})[o]=d,i[c]=h,i))}),e)}(e,{activeKey:"onSelect"}),p=xt(i,"accordion"),d=(0,t.useMemo)((()=>({activeEventKey:o,onSelect:a,alwaysOpen:u})),[o,a,u]);return(0,vt.jsx)(sn.Provider,{value:d,children:(0,vt.jsx)(r,{ref:n,...c,className:ht()(s,p,l&&`${p}-flush`)})})}));bn.displayName="Accordion";const Cn=Object.assign(bn,{Button:fn,Collapse:ln,Item:vn,Header:gn,Body:dn}),wn=["as","disabled"];function xn({tagName:e,disabled:t,href:n,target:r,rel:o,role:i,onClick:s,tabIndex:a=0,type:l}){e||(e=null!=n||null!=r||null!=o?"a":"button");const u={tagName:e};if("button"===e)return[{type:l||"button",disabled:t},u];const c=r=>{(t||"a"===e&&function(e){return!e||"#"===e.trim()}(n))&&r.preventDefault(),t?r.stopPropagation():null==s||s(r)};return"a"===e&&(n||(n="#"),t&&(n=void 0)),[{role:null!=i?i:"button",disabled:void 0,tabIndex:t?void 0:a,href:n,target:"a"===e?r:void 0,"aria-disabled":t||void 0,rel:"a"===e?o:void 0,onClick:c,onKeyDown:e=>{" "===e.key&&(e.preventDefault(),c(e))}},u]}const Pn=t.forwardRef(((e,t)=>{let{as:n,disabled:r}=e,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,wn);const[i,{tagName:s}]=xn(Object.assign({tagName:n,disabled:r},o));return(0,vt.jsx)(s,Object.assign({},o,i,{ref:t}))}));Pn.displayName="Button";const Sn=t.forwardRef((({as:e,bsPrefix:t,variant:n="primary",size:r,active:o=!1,disabled:i=!1,className:s,...a},l)=>{const u=xt(t,"btn"),[c,{tagName:p}]=xn({tagName:e,disabled:i,...a}),d=p;return(0,vt.jsx)(d,{...c,...a,ref:l,disabled:i,className:ht()(s,u,o&&"active",n&&`${u}-${n}`,r&&`${u}-${r}`,a.href&&i&&"disabled")})}));Sn.displayName="Button";const En=Sn,Tn=t.forwardRef((({bsPrefix:e,className:t,striped:n,bordered:r,borderless:o,hover:i,size:s,variant:a,responsive:l,...u},c)=>{const p=xt(e,"table"),d=ht()(t,p,a&&`${p}-${a}`,s&&`${p}-${s}`,n&&`${p}-${"string"==typeof n?`striped-${n}`:"striped"}`,r&&`${p}-bordered`,o&&`${p}-borderless`,i&&`${p}-hover`),h=(0,vt.jsx)("table",{...u,className:d,ref:c});if(l){let e=`${p}-responsive`;return"string"==typeof l&&(e=`${e}-${l}`),(0,vt.jsx)("div",{className:e,children:h})}return h}));let On={data:""},Vn=e=>"object"==typeof window?((e?e.querySelector("#_goober"):window._goober)||Object.assign((e||document.head).appendChild(document.createElement("style")),{innerHTML:" ",id:"_goober"})).firstChild:e||On,_n=/(?:([\u0080-\uFFFF\w-%@]+) *:? *([^{;]+?);|([^;}{]*?) *{)|(}\s*)/g,Rn=/\/\*[^]*?\*\/|  +/g,In=/\n+/g,Dn=(e,t)=>{let n="",r="",o="";for(let i in e){let s=e[i];"@"==i[0]?"i"==i[1]?n=i+" "+s+";":r+="f"==i[1]?Dn(s,i):i+"{"+Dn(s,"k"==i[1]?"":t)+"}":"object"==typeof s?r+=Dn(s,t?t.replace(/([^,])+/g,(e=>i.replace(/(^:.*)|([^,])+/g,(t=>/&/.test(t)?t.replace(/&/g,e):e?e+" "+t:t)))):i):null!=s&&(i=/^--/.test(i)?i:i.replace(/[A-Z]/g,"-$&").toLowerCase(),o+=Dn.p?Dn.p(i,s):i+":"+s+";")}return n+(t&&o?t+"{"+o+"}":o)+r},An={},kn=e=>{if("object"==typeof e){let t="";for(let n in e)t+=n+kn(e[n]);return t}return e},Mn=(e,t,n,r,o)=>{let i=kn(e),s=An[i]||(An[i]=(e=>{let t=0,n=11;for(;t<e.length;)n=101*n+e.charCodeAt(t++)>>>0;return"go"+n})(i));if(!An[s]){let t=i!==e?e:(e=>{let t,n,r=[{}];for(;t=_n.exec(e.replace(Rn,""));)t[4]?r.shift():t[3]?(n=t[3].replace(In," ").trim(),r.unshift(r[0][n]=r[0][n]||{})):r[0][t[1]]=t[2].replace(In," ").trim();return r[0]})(e);An[s]=Dn(o?{["@keyframes "+s]:t}:t,n?"":"."+s)}let a=n&&An.g?An.g:null;return n&&(An.g=An[s]),((e,t,n,r)=>{r?t.data=t.data.replace(r,e):-1===t.data.indexOf(e)&&(t.data=n?e+t.data:t.data+e)})(An[s],t,r,a),s},Nn=(e,t,n)=>e.reduce(((e,r,o)=>{let i=t[o];if(i&&i.call){let e=i(n),t=e&&e.props&&e.props.className||/^go/.test(e)&&e;i=t?"."+t:e&&"object"==typeof e?e.props?"":Dn(e,""):!1===e?"":e}return e+r+(null==i?"":i)}),"");function Ln(e){let t=this||{},n=e.call?e(t.p):e;return Mn(n.unshift?n.raw?Nn(n,[].slice.call(arguments,1),t.p):n.reduce(((e,n)=>Object.assign(e,n&&n.call?n(t.p):n)),{}):n,Vn(t.target),t.g,t.o,t.k)}Ln.bind({g:1});let jn,qn,Fn,Bn=Ln.bind({k:1});function Qn(e,t){let n=this||{};return function(){let r=arguments;function o(i,s){let a=Object.assign({},i),l=a.className||o.className;n.p=Object.assign({theme:qn&&qn()},a),n.o=/ *go\d+/.test(l),a.className=Ln.apply(n,r)+(l?" "+l:""),t&&(a.ref=s);let u=e;return e[0]&&(u=a.as||e,delete a.as),Fn&&u[0]&&Fn(a),jn(u,a)}return t?t(o):o}}var Hn=(e,t)=>(e=>"function"==typeof e)(e)?e(t):e,zn=(()=>{let e=0;return()=>(++e).toString()})(),Un=(()=>{let e;return()=>{if(void 0===e&&typeof window<"u"){let t=matchMedia("(prefers-reduced-motion: reduce)");e=!t||t.matches}return e}})(),Wn=new Map,Gn=e=>{if(Wn.has(e))return;let t=setTimeout((()=>{Wn.delete(e),Yn({type:4,toastId:e})}),1e3);Wn.set(e,t)},$n=(e,t)=>{switch(t.type){case 0:return{...e,toasts:[t.toast,...e.toasts].slice(0,20)};case 1:return t.toast.id&&(e=>{let t=Wn.get(e);t&&clearTimeout(t)})(t.toast.id),{...e,toasts:e.toasts.map((e=>e.id===t.toast.id?{...e,...t.toast}:e))};case 2:let{toast:n}=t;return e.toasts.find((e=>e.id===n.id))?$n(e,{type:1,toast:n}):$n(e,{type:0,toast:n});case 3:let{toastId:r}=t;return r?Gn(r):e.toasts.forEach((e=>{Gn(e.id)})),{...e,toasts:e.toasts.map((e=>e.id===r||void 0===r?{...e,visible:!1}:e))};case 4:return void 0===t.toastId?{...e,toasts:[]}:{...e,toasts:e.toasts.filter((e=>e.id!==t.toastId))};case 5:return{...e,pausedAt:t.time};case 6:let o=t.time-(e.pausedAt||0);return{...e,pausedAt:void 0,toasts:e.toasts.map((e=>({...e,pauseDuration:e.pauseDuration+o})))}}},Jn=[],Kn={toasts:[],pausedAt:void 0},Yn=e=>{Kn=$n(Kn,e),Jn.forEach((e=>{e(Kn)}))},Xn={blank:4e3,error:4e3,success:2e3,loading:1/0,custom:4e3},Zn=e=>(t,n)=>{let r=((e,t="blank",n)=>({createdAt:Date.now(),visible:!0,type:t,ariaProps:{role:"status","aria-live":"polite"},message:e,pauseDuration:0,...n,id:(null==n?void 0:n.id)||zn()}))(t,e,n);return Yn({type:2,toast:r}),r.id},er=(e,t)=>Zn("blank")(e,t);er.error=Zn("error"),er.success=Zn("success"),er.loading=Zn("loading"),er.custom=Zn("custom"),er.dismiss=e=>{Yn({type:3,toastId:e})},er.remove=e=>Yn({type:4,toastId:e}),er.promise=(e,t,n)=>{let r=er.loading(t.loading,{...n,...null==n?void 0:n.loading});return e.then((e=>(er.success(Hn(t.success,e),{id:r,...n,...null==n?void 0:n.success}),e))).catch((e=>{er.error(Hn(t.error,e),{id:r,...n,...null==n?void 0:n.error})})),e};var tr=(e,t)=>{Yn({type:1,toast:{id:e,height:t}})},nr=()=>{Yn({type:5,time:Date.now()})},rr=Bn`
 from {
   transform: scale(0) rotate(45deg);
 	opacity: 0;
@@ -7,7 +7,7 @@ from {
 to {
  transform: scale(1) rotate(45deg);
   opacity: 1;
-}`,rr=Bn`
+}`,or=Bn`
 from {
   transform: scale(0);
   opacity: 0;
@@ -15,7 +15,7 @@ from {
 to {
   transform: scale(1);
   opacity: 1;
-}`,or=Bn`
+}`,ir=Bn`
 from {
   transform: scale(0) rotate(90deg);
 	opacity: 0;
@@ -23,7 +23,7 @@ from {
 to {
   transform: scale(1) rotate(90deg);
 	opacity: 1;
-}`,ir=Fn("div")`
+}`,sr=Qn("div")`
   width: 20px;
   opacity: 0;
   height: 20px;
@@ -32,14 +32,14 @@ to {
   position: relative;
   transform: rotate(45deg);
 
-  animation: ${nr} 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275)
+  animation: ${rr} 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275)
     forwards;
   animation-delay: 100ms;
 
   &:after,
   &:before {
     content: '';
-    animation: ${rr} 0.15s ease-out forwards;
+    animation: ${or} 0.15s ease-out forwards;
     animation-delay: 150ms;
     position: absolute;
     border-radius: 3px;
@@ -52,18 +52,18 @@ to {
   }
 
   &:before {
-    animation: ${or} 0.15s ease-out forwards;
+    animation: ${ir} 0.15s ease-out forwards;
     animation-delay: 180ms;
     transform: rotate(90deg);
   }
-`,sr=Bn`
+`,ar=Bn`
   from {
     transform: rotate(0deg);
   }
   to {
     transform: rotate(360deg);
   }
-`,ar=Fn("div")`
+`,lr=Qn("div")`
   width: 12px;
   height: 12px;
   box-sizing: border-box;
@@ -71,8 +71,8 @@ to {
   border-radius: 100%;
   border-color: ${e=>e.secondary||"#e0e0e0"};
   border-right-color: ${e=>e.primary||"#616161"};
-  animation: ${sr} 1s linear infinite;
-`,lr=Bn`
+  animation: ${ar} 1s linear infinite;
+`,ur=Bn`
 from {
   transform: scale(0) rotate(45deg);
 	opacity: 0;
@@ -80,7 +80,7 @@ from {
 to {
   transform: scale(1) rotate(45deg);
 	opacity: 1;
-}`,ur=Bn`
+}`,cr=Bn`
 0% {
 	height: 0;
 	width: 0;
@@ -94,7 +94,7 @@ to {
 100% {
   opacity: 1;
   height: 10px;
-}`,cr=Fn("div")`
+}`,pr=Qn("div")`
   width: 20px;
   opacity: 0;
   height: 20px;
@@ -103,13 +103,13 @@ to {
   position: relative;
   transform: rotate(45deg);
 
-  animation: ${lr} 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275)
+  animation: ${ur} 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275)
     forwards;
   animation-delay: 100ms;
   &:after {
     content: '';
     box-sizing: border-box;
-    animation: ${ur} 0.2s ease-out forwards;
+    animation: ${cr} 0.2s ease-out forwards;
     opacity: 0;
     animation-delay: 200ms;
     position: absolute;
@@ -121,16 +121,16 @@ to {
     height: 10px;
     width: 6px;
   }
-`,pr=Fn("div")`
+`,dr=Qn("div")`
   position: absolute;
-`,dr=Fn("div")`
+`,hr=Qn("div")`
   position: relative;
   display: flex;
   justify-content: center;
   align-items: center;
   min-width: 20px;
   min-height: 20px;
-`,hr=Bn`
+`,fr=Bn`
 from {
   transform: scale(0.6);
   opacity: 0.4;
@@ -138,14 +138,14 @@ from {
 to {
   transform: scale(1);
   opacity: 1;
-}`,fr=Fn("div")`
+}`,mr=Qn("div")`
   position: relative;
   transform: scale(0.6);
   opacity: 0.4;
   min-width: 20px;
-  animation: ${hr} 0.3s 0.12s cubic-bezier(0.175, 0.885, 0.32, 1.275)
+  animation: ${fr} 0.3s 0.12s cubic-bezier(0.175, 0.885, 0.32, 1.275)
     forwards;
-`,gr=({toast:e})=>{let{icon:n,type:r,iconTheme:o}=e;return void 0!==n?"string"==typeof n?t.createElement(fr,null,n):n:"blank"===r?null:t.createElement(dr,null,t.createElement(ar,{...o}),"loading"!==r&&t.createElement(pr,null,"error"===r?t.createElement(ir,{...o}):t.createElement(cr,{...o})))},mr=e=>`\n0% {transform: translate3d(0,${-200*e}%,0) scale(.6); opacity:.5;}\n100% {transform: translate3d(0,0,0) scale(1); opacity:1;}\n`,yr=e=>`\n0% {transform: translate3d(0,0,-1px) scale(1); opacity:1;}\n100% {transform: translate3d(0,${-150*e}%,-1px) scale(.6); opacity:0;}\n`,vr=Fn("div")`
+`,gr=({toast:e})=>{let{icon:n,type:r,iconTheme:o}=e;return void 0!==n?"string"==typeof n?t.createElement(mr,null,n):n:"blank"===r?null:t.createElement(hr,null,t.createElement(lr,{...o}),"loading"!==r&&t.createElement(dr,null,"error"===r?t.createElement(sr,{...o}):t.createElement(pr,{...o})))},yr=e=>`\n0% {transform: translate3d(0,${-200*e}%,0) scale(.6); opacity:.5;}\n100% {transform: translate3d(0,0,0) scale(1); opacity:1;}\n`,vr=e=>`\n0% {transform: translate3d(0,0,-1px) scale(1); opacity:1;}\n100% {transform: translate3d(0,${-150*e}%,-1px) scale(.6); opacity:0;}\n`,br=Qn("div")`
   display: flex;
   align-items: center;
   background: #fff;
@@ -157,16 +157,16 @@ to {
   pointer-events: auto;
   padding: 8px 10px;
   border-radius: 8px;
-`,br=Fn("div")`
+`,Cr=Qn("div")`
   display: flex;
   justify-content: center;
   margin: 4px 10px;
   color: inherit;
   flex: 1 1 auto;
   white-space: pre-line;
-`,Cr=t.memo((({toast:e,position:n,style:r,children:o})=>{let i=e.height?((e,t)=>{let n=e.includes("top")?1:-1,[r,o]=Hn()?["0%{opacity:0;} 100%{opacity:1;}","0%{opacity:1;} 100%{opacity:0;}"]:[mr(n),yr(n)];return{animation:t?`${Bn(r)} 0.35s cubic-bezier(.21,1.02,.73,1) forwards`:`${Bn(o)} 0.4s forwards cubic-bezier(.06,.71,.55,1)`}})(e.position||n||"top-center",e.visible):{opacity:0},s=t.createElement(gr,{toast:e}),a=t.createElement(br,{...e.ariaProps},Qn(e.message,e));return t.createElement(vr,{className:e.className,style:{...i,...r,...e.style}},"function"==typeof o?o({icon:s,message:a}):t.createElement(t.Fragment,null,s,a))}));!function(e,t,n,r){In.p=void 0,qn=e,Nn=void 0,An=void 0}(t.createElement);var wr=({id:e,className:n,style:r,onHeightUpdate:o,children:i})=>{let s=t.useCallback((t=>{if(t){let n=()=>{let n=t.getBoundingClientRect().height;o(e,n)};n(),new MutationObserver(n).observe(t,{subtree:!0,childList:!0,characterData:!0})}}),[e,o]);return t.createElement("div",{ref:s,className:n,style:r},i)},xr=Ln`
+`,wr=t.memo((({toast:e,position:n,style:r,children:o})=>{let i=e.height?((e,t)=>{let n=e.includes("top")?1:-1,[r,o]=Un()?["0%{opacity:0;} 100%{opacity:1;}","0%{opacity:1;} 100%{opacity:0;}"]:[yr(n),vr(n)];return{animation:t?`${Bn(r)} 0.35s cubic-bezier(.21,1.02,.73,1) forwards`:`${Bn(o)} 0.4s forwards cubic-bezier(.06,.71,.55,1)`}})(e.position||n||"top-center",e.visible):{opacity:0},s=t.createElement(gr,{toast:e}),a=t.createElement(Cr,{...e.ariaProps},Hn(e.message,e));return t.createElement(br,{className:e.className,style:{...i,...r,...e.style}},"function"==typeof o?o({icon:s,message:a}):t.createElement(t.Fragment,null,s,a))}));!function(e,t,n,r){Dn.p=void 0,jn=e,qn=void 0,Fn=void 0}(t.createElement);var xr=({id:e,className:n,style:r,onHeightUpdate:o,children:i})=>{let s=t.useCallback((t=>{if(t){let n=()=>{let n=t.getBoundingClientRect().height;o(e,n)};n(),new MutationObserver(n).observe(t,{subtree:!0,childList:!0,characterData:!0})}}),[e,o]);return t.createElement("div",{ref:s,className:n,style:r},i)},Pr=Ln`
   z-index: 9999;
   > * {
     pointer-events: auto;
   }
-`,Pr=({reverseOrder:e,position:n="top-center",toastOptions:r,gutter:o,children:i,containerStyle:s,containerClassName:a})=>{let{toasts:l,handlers:u}=(e=>{let{toasts:n,pausedAt:r}=((e={})=>{let[n,r]=(0,t.useState)(Gn);(0,t.useEffect)((()=>($n.push(r),()=>{let e=$n.indexOf(r);e>-1&&$n.splice(e,1)})),[n]);let o=n.toasts.map((t=>{var n,r;return{...e,...e[t.type],...t,duration:t.duration||(null==(n=e[t.type])?void 0:n.duration)||(null==e?void 0:e.duration)||Zn[t.type],style:{...e.style,...null==(r=e[t.type])?void 0:r.style,...t.style}}}));return{...n,toasts:o}})(e);(0,t.useEffect)((()=>{if(r)return;let e=Date.now(),t=n.map((t=>{if(t.duration===1/0)return;let n=(t.duration||0)+t.pauseDuration-(e-t.createdAt);if(!(n<0))return setTimeout((()=>Xn.dismiss(t.id)),n);t.visible&&Xn.dismiss(t.id)}));return()=>{t.forEach((e=>e&&clearTimeout(e)))}}),[n,r]);let o=(0,t.useCallback)((()=>{r&&Kn({type:6,time:Date.now()})}),[r]),i=(0,t.useCallback)(((e,t)=>{let{reverseOrder:r=!1,gutter:o=8,defaultPosition:i}=t||{},s=n.filter((t=>(t.position||i)===(e.position||i)&&t.height)),a=s.findIndex((t=>t.id===e.id)),l=s.filter(((e,t)=>t<a&&e.visible)).length;return s.filter((e=>e.visible)).slice(...r?[l+1]:[0,l]).reduce(((e,t)=>e+(t.height||0)+o),0)}),[n]);return{toasts:n,handlers:{updateHeight:er,startPause:tr,endPause:o,calculateOffset:i}}})(r);return t.createElement("div",{style:{position:"fixed",zIndex:9999,top:16,left:16,right:16,bottom:16,pointerEvents:"none",...s},className:a,onMouseEnter:u.startPause,onMouseLeave:u.endPause},l.map((r=>{let s=r.position||n,a=((e,t)=>{let n=e.includes("top"),r=n?{top:0}:{bottom:0},o=e.includes("center")?{justifyContent:"center"}:e.includes("right")?{justifyContent:"flex-end"}:{};return{left:0,right:0,display:"flex",position:"absolute",transition:Hn()?void 0:"all 230ms cubic-bezier(.21,1.02,.73,1)",transform:`translateY(${t*(n?1:-1)}px)`,...r,...o}})(s,u.calculateOffset(r,{reverseOrder:e,gutter:o,defaultPosition:n}));return t.createElement(wr,{id:r.id,key:r.id,onHeightUpdate:u.updateHeight,className:r.visible?xr:"",style:a},"custom"===r.type?Qn(r.message,r):i?i(r):t.createElement(Cr,{toast:r,position:s}))})))},Sr=Xn,Vr=function(e){return e.Unverified="unverified",e.Verified="verified",e.Edited="edited",e}({}),Er=function(e){return e.not_started="not started",e.started="started",e.completed="completed",e}({}),Or=function(e){return e.closed="closed",e.open="open",e.preview="preview",e.published="published",e}({});function Tr(){return _r.apply(this,arguments)}function _r(){return(_r=it(ct().mark((function e(){var t,n;return ct().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,fetch("/api/survey/list");case 3:return t=e.sent,e.next=6,t.json();case 6:return n=e.sent,e.abrupt("return",n);case 10:return e.prev=10,e.t0=e.catch(0),console.log("failed fetching survey list.."),e.abrupt("return",[]);case 14:case"end":return e.stop()}}),e,null,[[0,10]])})))).apply(this,arguments)}function Rr(){return Ir.apply(this,arguments)}function Ir(){return(Ir=it(ct().mark((function e(){var t,n,r;return ct().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,fetch("/api/survey/active/year");case 3:return t=e.sent,e.next=6,t.json();case 6:if(!("year"in(n=e.sent))){e.next=12;break}return r=n.year,e.abrupt("return",r.toString());case 12:return console.log("Invalid response format: Failed fetching active survey year."),e.abrupt("return","");case 14:e.next=20;break;case 16:return e.prev=16,e.t0=e.catch(0),console.error("Failed fetching active survey year:",e.t0),e.abrupt("return","");case 20:case"end":return e.stop()}}),e,null,[[0,16]])})))).apply(this,arguments)}const Dr=t.forwardRef((({bsPrefix:e,variant:t,animation:n="border",size:r,as:o="div",className:i,...s},a)=>{const l=`${e=wt(e,"spinner")}-${n}`;return(0,yt.jsx)(o,{ref:a,...s,className:dt()(i,l,r&&`${l}-${r}`,t&&`text-${t}`)})}));Dr.displayName="Spinner";const jr=Dr;function kr(e){var n=e.text,r=e.helpText,o=e.onClick,i=e.enabled,s=lt((0,t.useState)(!1),2),a=s[0],l=s[1],u=function(){var e=it(ct().mark((function e(){return ct().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!a){e.next=2;break}return e.abrupt("return");case 2:return l(!0),e.prev=3,e.next=6,o();case 6:return e.prev=6,l(!1),e.finish(6);case 9:case"end":return e.stop()}}),e,null,[[3,,6,9]])})));return function(){return e.apply(this,arguments)}}();return t.createElement(Sn,{onClick:u,disabled:!i,style:{pointerEvents:"auto",marginLeft:".5rem"},title:r},a&&t.createElement(jr,{as:"span",animation:"border",size:"sm",role:"status","aria-hidden":"true"}),n)}const Mr=function(){var e=lt((0,t.useState)([]),2),n=e[0],r=e[1],o=(0,t.useRef)(!1);function i(e,t,n){return s.apply(this,arguments)}function s(){return(s=it(ct().mark((function e(t,n,o){var i,s;return ct().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,fetch(t,{method:"POST"});case 3:return i=e.sent,e.next=6,i.json();case 6:s=e.sent,i.ok?(Sr(o),Tr().then((function(e){r(e)}))):Sr(n+s.message),e.next=13;break;case 10:e.prev=10,e.t0=e.catch(0),Sr(n+e.t0.message);case 13:case"end":return e.stop()}}),e,null,[[0,10]])})))).apply(this,arguments)}function a(){return(a=it(ct().mark((function e(){return ct().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,i("/api/survey/new","Failed creating new survey: ","Created new survey");case 2:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function l(e,t){return u.apply(this,arguments)}function u(){return(u=it(ct().mark((function e(t,n){return ct().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!o.current){e.next=3;break}return Sr("Wait for status update to be finished..."),e.abrupt("return");case 3:return o.current=!0,e.next=6,i("/api/survey/"+n+"/"+t,"Error while updating "+t+" survey status to "+n+": ",t+" survey status updated to "+n);case 6:o.current=!1;case 7:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function c(){return(c=it(ct().mark((function e(t,n){return ct().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,i("/api/response/unlock/"+t+"/"+n,"Error while unlocking "+n+" "+t+" survey response: ",n+" "+t+" survey response unlocked");case 2:case"end":return e.stop()}}),e)})))).apply(this,arguments)}(0,t.useEffect)((function(){Tr().then((function(e){r(e)}))}),[]);var p=n.length>0&&n.every((function(e){return e.status==Or.published})),d=je(),h=window.location.origin+"/data?preview";return t.createElement("div",null,t.createElement(Pr,null),t.createElement(Sn,{onClick:function(){return a.apply(this,arguments)},disabled:!p,style:{pointerEvents:"auto"},title:"Create a new survey for the next year. Only possible if all current surveys are published."},"start new survey"),t.createElement(bn,null,n.map((function(e){return t.createElement(bn.Item,{eventKey:e.year.toString(),key:e.year},t.createElement(bn.Header,null,e.year," - ",e.status),t.createElement(bn.Body,null,t.createElement("div",{style:{marginLeft:".5rem"}},t.createElement(Sn,{style:{marginLeft:".5rem"},onClick:function(){return d("/survey/admin/inspect/".concat(e.year))},title:"Open the survey for inspection with all questions visible and any visibleIf logic added to the title."},"Inspect Survey"),t.createElement(Sn,{style:{marginLeft:".5rem"},onClick:function(){return d("/survey/admin/try/".concat(e.year))},title:"Open the survey exactly as the nrens will see it, but without any nren data."},"Try Survey"),t.createElement(kr,{text:"Mark as open",helpText:"Allow the NRENs to respond to this survey. Only 1 survey may be open at a time, and (pre)-published surveys cannot be opened anymore.",enabled:e.status==Or.closed,onClick:function(){return l(e.year,"open")}}),t.createElement(kr,{text:"Mark as closed",helpText:"Do not allow the NRENs to respond to this survey anymore. Only surveys with status open can be closed.",enabled:e.status==Or.open,onClick:function(){return l(e.year,"close")}}),t.createElement(kr,{text:"Preview results",helpText:"Publish all completed survey responses to the compendium website for preview by admins. This is only possible if the survey is closed or previewed already.",enabled:e.status==Or.closed||e.status==Or.preview,onClick:function(){return l(e.year,"preview")}}),t.createElement(kr,{text:"Publish results",helpText:"Publish or re-publish all completed survey responses to the compendium website. This is only possible if the survey is in preview or published already.",enabled:e.status==Or.preview||e.status==Or.published,onClick:function(){return l(e.year,"publish")}}),e.status==Or.preview&&t.createElement("span",null,"  Preview link: ",t.createElement("a",{href:h},h))),t.createElement(Vn,null,t.createElement("tbody",null,e.responses.map((function(n){return t.createElement("tr",{key:n.nren},t.createElement("td",null,n.nren),t.createElement("td",null,n.status),t.createElement("td",null,n.lock_description),t.createElement("td",null,t.createElement(Sn,{onClick:function(){return d("/survey/response/".concat(e.year,"/").concat(n.nren))},style:{pointerEvents:"auto"},title:"Open the responses of the NREN."},"open"),t.createElement(Sn,{onClick:function(){return function(e,t){return c.apply(this,arguments)}(e.year,n.nren)},disabled:""==n.lock_description,style:{pointerEvents:"auto"},title:"Remove the lock from the survey so that another person can open the survey for editing. WARNING: The person that currently has the lock will not be abe to save their changes anymore once someone else starts editing!"},"remove lock")))}))))))}))))};function Lr(e){return function(e){if(Array.isArray(e))return st(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||at(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function qr(e){return qr="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},qr(e)}function Nr(e,t,n){return(t=function(e){var t=function(e,t){if("object"!==qr(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!==qr(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===qr(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const Ar=t.forwardRef((({bsPrefix:e,fluid:t=!1,as:n="div",className:r,...o},i)=>{const s=wt(e,"container"),a="string"==typeof t?`-${t}`:"-fluid";return(0,yt.jsx)(n,{ref:i,...o,className:dt()(r,t?`${s}${a}`:s)})}));Ar.displayName="Container";const Br=Ar,Fr=t.forwardRef((({bsPrefix:e,className:t,as:n="div",...r},o)=>{const i=wt(e,"row"),s=xt(),a=Pt(),l=`${i}-cols`,u=[];return s.forEach((e=>{const t=r[e];let n;delete r[e],null!=t&&"object"==typeof t?({cols:n}=t):n=t;const o=e!==a?`-${e}`:"";null!=n&&u.push(`${l}${o}-${n}`)})),(0,yt.jsx)(n,{ref:o,...r,className:dt()(t,i,...u)})}));Fr.displayName="Row";const Qr=Fr;function zr(){return(zr=it(ct().mark((function e(){var t,n;return ct().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,fetch("/api/user/");case 2:return t=e.sent,e.next=5,t.json();case 5:return n=e.sent,e.abrupt("return",n);case 7:case"end":return e.stop()}}),e)})))).apply(this,arguments)}var Hr={name:"",email:"",permissions:{admin:!1,active:!1},id:"",nrens:[],oidc_sub:"",role:""},Ur=(0,t.createContext)({user:Hr,logout:function(){}});const Wr=function(e){var n=e.children,r=lt((0,t.useState)(Hr),2),o=r[0],i=r[1];function s(){return(s=it(ct().mark((function e(){return ct().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,fetch("/logout");case 2:i(Hr);case 3:case"end":return e.stop()}}),e)})))).apply(this,arguments)}return(0,t.useEffect)((function(){(function(){return zr.apply(this,arguments)})().then((function(e){i(e)}))}),[]),t.createElement(Ur.Provider,{value:{user:o,logout:function(){return s.apply(this,arguments)}}},n)};function Jr(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function $r(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Jr(Object(n),!0).forEach((function(t){Nr(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Jr(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Gr(){return(Gr=it(ct().mark((function e(){var t,n;return ct().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,fetch("/api/user/list");case 3:return t=e.sent,e.next=6,t.json();case 6:return n=e.sent,e.abrupt("return",n);case 10:return e.prev=10,e.t0=e.catch(0),console.log("handle this better.."),e.abrupt("return",[]);case 14:case"end":return e.stop()}}),e,null,[[0,10]])})))).apply(this,arguments)}function Kr(){return(Kr=it(ct().mark((function e(){var t,n;return ct().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,fetch("/api/nren/list");case 3:return t=e.sent,e.next=6,t.json();case 6:return n=e.sent,e.abrupt("return",n);case 10:return e.prev=10,e.t0=e.catch(0),console.log("handle this better.."),e.abrupt("return",[]);case 14:case"end":return e.stop()}}),e,null,[[0,10]])})))).apply(this,arguments)}var Zr=function(){var e=it(ct().mark((function e(t,n){var r,o,i,s;return ct().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=$r({id:t},n),o={method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify(r)},e.next=4,fetch("/api/user/".concat(t),o);case 4:return i=e.sent,e.next=7,i.json();case 7:if(s=e.sent,i.ok){e.next=10;break}throw new Error(s.message);case 10:return e.abrupt("return",s.user);case 11:case"end":return e.stop()}}),e)})));return function(t,n){return e.apply(this,arguments)}}(),Yr=function(e,t){return e.permissions.active&&!t.permissions.active?-1:!e.permissions.active&&t.permissions.active?1:e.permissions.active&&t.permissions.active?"admin"===e.role&&"admin"!==t.role?1:"admin"!==e.role&&"admin"===t.role?-1:e.name.localeCompare(t.name):e.name.localeCompare(t.name)};const Xr=function(){var e=lt((0,t.useState)([]),2),n=e[0],r=e[1],o=lt((0,t.useState)([]),2),i=o[0],s=o[1],a=(0,t.useContext)(Ur).user,l=lt((0,t.useState)({idx:-1,asc:!0}),2),u=l[0],c=l[1],p=lt((0,t.useState)([]),2),d=p[0],h=p[1];(0,t.useEffect)((function(){(function(){return Gr.apply(this,arguments)})().then((function(e){r(e),h(e.sort(Yr))})),function(){return Kr.apply(this,arguments)}().then((function(e){s(e.sort((function(e,t){return e.name.localeCompare(t.name)})))}))}),[]),(0,t.useEffect)((function(){h(Lr(n.sort(Yr)))}),[n]);for(var f=function(e,t){var o=n.findIndex((function(e){return e.id===t.id})),i=Lr(n),s=e.target.name,a={};a[s]="active"===s?e.target.checked:e.target.value,Zr(t.id,a).then((function(e){i[o]=e,r(i)})).catch((function(e){alert(e.message)}))},g=function(e){var t;if(e===u.idx||(5===e||0===e)&&-1===u.idx)return 5!==e&&0!==e||(e=-1),c({idx:e,asc:!u.asc}),void h(Lr(d.reverse()));0===e?(t=Yr,c({idx:-1,asc:!0})):1===e?(t=function(e,t){return e.permissions.active&&!t.permissions.active?-1:!e.permissions.active&&t.permissions.active?1:0},c({idx:e,asc:!0})):2===e?(t=function(e,t){return e.role.localeCompare(t.role)},c({idx:e,asc:!0})):3===e?(t=function(e,t){return e.email.localeCompare(t.email)},c({idx:e,asc:!0})):4===e?(t=function(e,t){return e.name.localeCompare(t.name)},c({idx:e,asc:!0})):5===e?(t=Yr,c({idx:-1,asc:!0})):6===e?(t=function(e,t){return 0===e.nrens.length&&0===t.nrens.length?0:0===e.nrens.length?-1:0===t.nrens.length?1:e.nrens[0].localeCompare(t.nrens[0])},c({idx:e,asc:!0})):(t=Yr,c({idx:e,asc:!0})),h(n.sort(t))},m={},y=0;y<=6;y++)m[y]=u.idx===y?{"aria-sort":u.asc?"ascending":"descending"}:null;return t.createElement(Br,{style:{maxWidth:"90vw"}},t.createElement(Qr,null,t.createElement("h1",null," User Management Page"),t.createElement(Vn,null,t.createElement("thead",null,t.createElement("tr",null,t.createElement("th",ht({},m[0],{onClick:function(){return g(0)},className:"pt-3 sortable",style:{border:"1px solid #ddd"}}),"Id"),t.createElement("th",ht({},m[1],{onClick:function(){return g(1)},className:"pt-3 sortable",style:{border:"1px solid #ddd"}}),"Active"),t.createElement("th",ht({},m[2],{onClick:function(){return g(2)},className:"pt-3 sortable",style:{border:"1px solid #ddd"}}),"Role"),t.createElement("th",ht({},m[3],{onClick:function(){return g(3)},className:"pt-3 sortable",style:{border:"1px solid #ddd"}}),"Email"),t.createElement("th",ht({},m[4],{onClick:function(){return g(4)},className:"pt-3 sortable",style:{border:"1px solid #ddd"}}),"Full Name"),t.createElement("th",ht({},m[5],{onClick:function(){return g(5)},className:"pt-3 sortable",style:{border:"1px solid #ddd"}}),"OIDC Sub"),t.createElement("th",ht({},m[6],{onClick:function(){return g(6)},className:"pt-3 sortable",style:{border:"1px solid #ddd"}}),"NREN"))),t.createElement("tbody",null,d.map((function(e){return t.createElement("tr",{key:e.id},t.createElement("td",{style:{border:"1px dotted #ddd"}},e.id),t.createElement("td",{style:{border:"1px dotted #ddd"}},e.id==a.id?"Active":t.createElement("input",{type:"checkbox",name:"active",checked:e.permissions.active,onChange:function(t){return f(t,e)}})),t.createElement("td",{style:{border:"1px dotted #ddd"}},e.id==a.id?e.role.charAt(0).toUpperCase()+e.role.slice(1):t.createElement("select",{name:"role",defaultValue:e.role,onChange:function(t){return f(t,e)}},t.createElement("option",{value:"admin"},"Admin"),t.createElement("option",{value:"user"},"User"),t.createElement("option",{value:"observer"},"Observer"))),t.createElement("td",{style:{border:"1px dotted #ddd"}},e.email),t.createElement("td",{style:{border:"1px dotted #ddd"}},e.name),t.createElement("td",{style:{border:"1px dotted #ddd"}},e.oidc_sub),t.createElement("td",{style:{border:"1px dotted #ddd"}},t.createElement("select",{name:"nren",multiple:!1,value:e.nrens.length>0?(n=e.nrens[0],null===(r=i.find((function(e){return e.id==n||e.name==n})))||void 0===r?void 0:r.id):"",onChange:function(t){return f(t,e)}},t.createElement("option",{value:""},"Select NREN"),i.map((function(e){return t.createElement("option",{key:"nren_"+e.id,value:e.id},e.name)})))));var n,r}))))))};var eo=n(535),to=n(352);function no(e,t){if(0==t.column.indexValue&&"item"in t.row){var n,r,o=t.row.item;void 0!==o.customDescription&&(null===(n=t.htmlElement.parentElement)||void 0===n||n.children[0].children[0].setAttribute("description",o.customDescription),null===(r=t.htmlElement.parentElement)||void 0===r||r.children[0].children[0].classList.add("survey-tooltip"))}}function ro(e){var t=e[0];if(void 0===t||null==t||""==t)return!0;try{return!!new URL(t)}catch(e){return!1}}function oo(e,t){t.question.hideCheckboxLabels&&(t.cssClasses.root+=" hidden-checkbox-labels")}function io(e,t){var n,r='[data-name="'+t.question.name+'"]',o=null===(n=document.querySelector(r))||void 0===n?void 0:n.querySelector("h5");o&&!o.classList.contains("sv-header-flex")&&t.question.updateElementCss()}function so(e,t,n){var r;n.verificationStatus.set(e.name,t);var o=document.createElement("button");o.type="button",o.className="sv-action-bar-item verification",o.innerHTML=t,t==Vr.Unverified?(o.innerHTML="No change from previous year",o.className+=" verification-required",o.onclick=function(){"display"!=n.mode&&(e.validate(),so(e,Vr.Verified,n))}):(o.innerHTML="Answer updated",o.className+=" verification-ok");var i='[data-name="'+e.name+'"]',s=null===(r=document.querySelector(i))||void 0===r?void 0:r.querySelector("h5"),a=null==s?void 0:s.querySelector(".verification");a?a.replaceWith(o):null==s||s.appendChild(o)}const ao=function(e){var n=e.surveyModel,r=(0,t.useCallback)((function(e,t){var r=n.verificationStatus.get(t.question.name);r&&so(t.question,r,n)}),[n]),o=(0,t.useCallback)((function(e,t){n.verificationStatus.get(t.question.name)==Vr.Unverified&&so(t.question,Vr.Edited,n)}),[n]);return eo.FunctionFactory.Instance.hasFunction("validateWebsiteUrl")||eo.FunctionFactory.Instance.register("validateWebsiteUrl",ro),n.css.question.title.includes("sv-header-flex")||(n.css.question.title="sv-title sv-question__title sv-header-flex",n.css.question.titleOnError="sv-question__title--error sv-error-color-fix"),n.onAfterRenderQuestion.hasFunc(r)||(n.onAfterRenderQuestion.add(r),n.onAfterRenderQuestion.add(io)),n.onValueChanged.hasFunc(o)||n.onValueChanged.add(o),n.onUpdateQuestionCssClasses.hasFunc(oo)||n.onUpdateQuestionCssClasses.add(oo),n.onMatrixAfterCellRender.hasFunc(no)||n.onMatrixAfterCellRender.add(no),t.createElement(to.Survey,{model:n})},lo=t.forwardRef(((e,t)=>{const[{className:n,...r},{as:o="div",bsPrefix:i,spans:s}]=function({as:e,bsPrefix:t,className:n,...r}){t=wt(t,"col");const o=xt(),i=Pt(),s=[],a=[];return o.forEach((e=>{const n=r[e];let o,l,u;delete r[e],"object"==typeof n&&null!=n?({span:o,offset:l,order:u}=n):o=n;const c=e!==i?`-${e}`:"";o&&s.push(!0===o?`${t}${c}`:`${t}${c}-${o}`),null!=u&&a.push(`order${c}-${u}`),null!=l&&a.push(`offset${c}-${l}`)})),[{...r,className:dt()(n,...s,...a)},{as:e,bsPrefix:t,spans:s}]}(e);return(0,yt.jsx)(o,{...r,ref:t,className:dt()(n,!s.length&&i)})}));lo.displayName="Col";const uo=lo;function co(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function po(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?co(Object(n),!0).forEach((function(t){Nr(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):co(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}const ho=function(e){var n=e.surveyModel,r=e.pageNoSetter,o=lt((0,t.useState)([]),2),i=o[0],s=o[1],a=function(e){return!(null===e.value||void 0===e.value||""===e.value||"checkbox"===e.getType()&&0==e.value.length||"multipletext"===e.getType()&&(1===Object.keys(e.value).length&&void 0===Object.values(e.value)[0]||0===Object.keys(e.value).length))};(0,t.useEffect)((function(){var e=function(e){if(e&&e.pages){var t=[];e.pages.forEach((function(n){var r=n.questions.filter((function(e){return e.startWithNewLine})),o=r.length,i=r.filter(a).length,s=o-i,l=i/o;t.push({completionPercentage:100*l,unansweredPercentage:s/o*100,totalPages:e.pages.length,pageTitle:n.title})})),s(t)}};n.onValueChanged.add((function(t){e(t)})),e(n)}),[n]);var l={height:"0.5rem",transition:"width 0.3s ease"};return t.createElement(Br,{className:"survey-progress"},t.createElement(Qr,null,i.map((function(e,o){return t.createElement(uo,{xs:12,md:!0,key:o,onClick:function(){return r(o)},style:{cursor:"pointer",margin:"0.5rem"}},t.createElement("div",null,t.createElement("span",{style:{whiteSpace:"nowrap",fontSize:"1.5rem",marginRight:"0.25rem",fontWeight:"bold",color:"#2db394"}},o+1),t.createElement("span",{style:po({whiteSpace:"nowrap"},n.currentPageNo==o&&{fontWeight:"bold"})},e.pageTitle),t.createElement("div",{style:{display:"flex",flexWrap:"wrap"}},t.createElement("div",{style:po(po({},l),{},{width:"".concat(e.completionPercentage,"%"),backgroundColor:"#262261"})}),t.createElement("div",{style:po(po({},l),{},{width:"".concat(e.unansweredPercentage,"%"),backgroundColor:"#cdcdcd"})}))))}))))},fo=function(e){var n=e.surveyModel,r=e.surveyActions,o=e.year,i=e.nren,s=e.children,a=lt((0,t.useState)(0),2),l=a[0],u=a[1],c=lt((0,t.useState)(!1),2),p=c[0],d=c[1],h=lt((0,t.useState)(""),2),f=h[0],g=h[1],m=lt((0,t.useState)(""),2),y=m[0],v=m[1],b=(0,t.useContext)(Ur).user,C=(0,t.useCallback)((function(){d("edit"==n.mode),g(n.lockedBy),u(n.currentPageNo),v(n.status)}),[n]);(0,t.useEffect)((function(){C()}),[C]);var w=function(e){u(e),n.currentPageNo=e},x=function(){w(n.currentPageNo+1)},P=function(){var e=it(ct().mark((function e(t){return ct().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r[t]();case 2:C();case 3:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),S=function(e,t){return V(e,(function(){return P(t)}))},V=function(e,n){return t.createElement("button",{className:"sv-btn sv-btn--navigation",onClick:n},e)},E="Save and stop editing",O="Save progress",T="Start editing",_="Complete Survey",R=function(){return t.createElement("div",{className:"survey-edit-buttons-block"},!p&&!f&&n.editAllowed&&S(T,"startEdit"),!p&&f&&f==b.name&&S("Discard any unsaved changes and release your lock","releaseLock"),p&&y==Er.started&&S(O,"save"),p&&y==Er.started&&S(E,"saveAndStopEdit"),p&&l===n.visiblePages.length-1&&S(_,"complete"),l!==n.visiblePages.length-1&&V("Next Section",x))},I=parseInt(o);return t.createElement(Br,null,t.createElement(Qr,{className:"survey-content"},t.createElement("h2",null,t.createElement("span",{className:"survey-title"},o," Compendium Survey "),t.createElement("span",{className:"survey-title-nren"}," ",i," "),t.createElement("span",null," - ",y)),t.createElement("p",{style:{marginTop:"1rem"}},"To get started, click “",T,"” to end read-only mode. This is only possible when nobody else from your NREN is currently working on the survey.",t.createElement("br",null),"Where available, the survey questions are pre-filled with answers from the previous year. The survey asks about the past year, i.e. the ",o," survey asks about data from ",I-1," (or ",I-1,"/",o," if your NRENs financial year does not match the calendar year). You can edit the prefilled answer to provide new information, or press the “no change from previous year” button.",t.createElement("br",null),"Press the “",O,"“ or “",E,"“ button to save all answers in the survey. When you reach the last section of the survey (Services), you will find a “",_,"“ button which saves all answers in the survey and lets the Compendium team know that your answers are ready to be published.",t.createElement("br",null),"As long as the survey remains open, any Compendium administrator from your NREN can add answers or amend existing ones, even after using the “",_,"“ button. Different people from your NREN can contribute to the survey if needed.",t.createElement("br",null),"Some fields require specific data, such as numerical data, valid http-addresses, and in some questions, the answer has to add up to 100%. If an answer does not fulfil the set criteria, the question will turn pink and an error message will appear. Fields can be left blank if you prefer not to answer a question.",t.createElement("br",null),"If you notice any errors after the survey was closed, please contact us for correcting those."),t.createElement("p",null,"Thank you for taking the time to fill in the ",o," Compendium Survey. Any questions or requests can be sent to ",t.createElement("a",{href:"mailto:Partner-Relations@geant.org"},t.createElement("span",null,"Partner-Relations@geant.org"))),p&&t.createElement(t.Fragment,null,t.createElement("br",null),t.createElement("b",null,"Remember to click “",E,"” before leaving the page."))),t.createElement(Qr,null,R()),t.createElement(Qr,{className:"survey-content"},!p&&t.createElement("div",{className:"survey-edit-explainer"},!f&&n.editAllowed&&"The survey is in read-only mode; click the “Start editing“ button to begin editing the answers.",!f&&!n.editAllowed&&"The survey is in read-only mode and can not be edited by you.",f&&f!=b.name&&"The survey is in read-only mode and currently being edited by: "+f+". To start editing the survey, ask them to complete their edits.",f&&f==b.name&&'The survey is in read-only mode because you started editing in another tab, browser or device. To start editing the survey, either complete those edits or click the "Discard any unsaved changes" button.')),t.createElement(Qr,null,t.createElement(ho,{surveyModel:n,pageNoSetter:w}),s),t.createElement(Qr,null,R()))},go=function(e){var n=e.when,r=e.onPageExit;return function(e){let{router:n}=Qe(Be.UseBlocker),r=ze(Fe.UseBlocker),[o]=t.useState((()=>String(++Ue))),i=t.useCallback((t=>!!e()),[e]);n.getBlocker(o,i);t.useEffect((()=>()=>n.deleteBlocker(o)),[n,o]),r.blockers.get(o)}((function(){if(n()){var t=window.confirm(e.message);return t&&r(),!t}return!1})),t.createElement("div",null)};eo.Serializer.addProperty("itemvalue","customDescription:text"),eo.Serializer.addProperty("question","hideCheckboxLabels:boolean");const mo=function(e){var n=e.loadFrom,r=lt((0,t.useState)(),2),o=r[0],i=r[1],s=function(){let{matches:e}=t.useContext(Te),n=e[e.length-1];return n?n.params:{}}(),a=s.year,l=s.nren,u=lt((0,t.useState)("loading survey..."),2),c=u[0],p=u[1],d=(0,t.useCallback)((function(e){return e.preventDefault(),e.returnValue=""}),[]),h=(0,t.useCallback)((function(){window.navigator.sendBeacon("/api/response/unlock/"+a+"/"+l)}),[]),f=(0,t.useCallback)((function(){window.navigator.sendBeacon("/api/response/unlock/"+a+"/"+l),removeEventListener("beforeunload",d,{capture:!0}),removeEventListener("pagehide",h)}),[]);if((0,t.useEffect)((function(){function e(){return(e=it(ct().mark((function e(){var t,r,o,s;return ct().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,fetch(n+a+(l?"/"+l:""));case 2:return t=e.sent,e.next=5,t.json();case 5:if(r=e.sent,t.ok){e.next=12;break}if(!("message"in r)){e.next=11;break}throw new Error(r.message);case 11:throw new Error("Request failed with status ".concat(t.status));case 12:for(s in(o=new eo.Model(r.model)).setVariable("surveyyear",a),o.setVariable("previousyear",parseInt(a)-1),o.showNavigationButtons=!1,o.requiredText="",o.verificationStatus=new Map,r.verification_status)o.verificationStatus.set(s,r.verification_status[s]);o.data=r.data,o.clearIncorrectValues(!0),o.currentPageNo=r.page,o.mode=r.mode,o.lockedBy=r.locked_by,o.status=r.status,o.editAllowed=r.edit_allowed,i(o);case 27:case"end":return e.stop()}}),e)})))).apply(this,arguments)}(function(){return e.apply(this,arguments)})().catch((function(e){return p("Error when loading survey: "+e.message)}))}),[]),!o)return c;var g,m,y,v,b,C=function(){var e=it(ct().mark((function e(t,n){var r,i,s;return ct().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(l){e.next=2;break}return e.abrupt("return","Saving not available in inpect/try mode");case 2:return r={lock_uuid:t.lockUUID,new_state:n,data:t.data,page:t.currentPageNo,verification_status:Object.fromEntries(t.verificationStatus)},e.prev=3,e.next=6,fetch("/api/response/save/"+a+"/"+l,{method:"POST",headers:{"Content-Type":"application/json; charset=utf-8"},body:JSON.stringify(r)});case 6:return i=e.sent,e.next=9,i.json();case 9:if(s=e.sent,i.ok){e.next=12;break}return e.abrupt("return",s.message);case 12:o.mode=s.mode,o.lockedBy=s.locked_by,o.status=s.status,e.next=20;break;case 17:return e.prev=17,e.t0=e.catch(3),e.abrupt("return","Unknown Error: "+e.t0.message);case 20:case"end":return e.stop()}}),e,null,[[3,17]])})));return function(t,n){return e.apply(this,arguments)}}(),w=function(e){var t="",n=function(e,n){e.verificationStatus.get(n.name)==Vr.Unverified&&(""==t&&(t=n.name),n.error='Please verify that last years data is correct by editing the answer or pressing the "No change from previous year" button!')};o.onValidateQuestion.add(n);var r=e();return o.onValidateQuestion.remove(n),r||Sr("Validation failed!"),r},x={save:(b=it(ct().mark((function e(){var t;return ct().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,C(o,"editing");case 2:t=e.sent,Sr(t?"Failed saving survey: "+t:"Survey saved!");case 4:case"end":return e.stop()}}),e)}))),function(){return b.apply(this,arguments)}),complete:(v=it(ct().mark((function e(){var t;return ct().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!w(o.validate.bind(o,!0,!0))){e.next=6;break}return e.next=4,C(o,"completed");case 4:(t=e.sent)?Sr("Failed completing survey: "+t):(Sr("Survey completed!"),removeEventListener("beforeunload",d,{capture:!0}),removeEventListener("pagehide",h));case 6:case"end":return e.stop()}}),e)}))),function(){return v.apply(this,arguments)}),saveAndStopEdit:(y=it(ct().mark((function e(){var t;return ct().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,C(o,"readonly");case 2:(t=e.sent)?Sr("Failed saving survey: "+t):(Sr("Survey saved!"),removeEventListener("beforeunload",d,{capture:!0}),removeEventListener("pagehide",h));case 4:case"end":return e.stop()}}),e)}))),function(){return y.apply(this,arguments)}),startEdit:(m=it(ct().mark((function e(){var t,n,r;return ct().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,fetch("/api/response/lock/"+a+"/"+l,{method:"POST"});case 2:return t=e.sent,e.next=5,t.json();case 5:if(n=e.sent,t.ok){e.next=9;break}return Sr("Failed starting edit: "+n.message),e.abrupt("return");case 9:for(r in addEventListener("pagehide",h),addEventListener("beforeunload",d,{capture:!0}),n.verification_status)o.verificationStatus.set(r,n.verification_status[r]);o.data=n.data,o.clearIncorrectValues(!0),o.mode=n.mode,o.lockedBy=n.locked_by,o.lockUUID=n.lock_uuid,o.status=n.status;case 18:case"end":return e.stop()}}),e)}))),function(){return m.apply(this,arguments)}),releaseLock:(g=it(ct().mark((function e(){var t,n;return ct().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,fetch("/api/response/unlock/"+a+"/"+l,{method:"POST"});case 2:return t=e.sent,e.next=5,t.json();case 5:if(n=e.sent,t.ok){e.next=9;break}return Sr("Failed releasing lock: "+n.message),e.abrupt("return");case 9:o.mode=n.mode,o.lockedBy=n.locked_by,o.status=n.status;case 12:case"end":return e.stop()}}),e)}))),function(){return g.apply(this,arguments)}),validatePage:function(){w(o.validatePage.bind(o))&&Sr("Page validation successful!")}};return t.createElement(Br,{className:"survey-container"},t.createElement(Pr,null),t.createElement(go,{message:"Are you sure you want to leave this page? Information you've entered may not be saved.",when:function(){return"edit"==o.mode&&!!l},onPageExit:f}),t.createElement(fo,{surveyModel:o,surveyActions:x,year:a,nren:l},t.createElement(ao,{surveyModel:o})))},yo=n.p+"9ab20ac1d835b50b2e01.svg",vo=function(){return t.createElement("div",{className:"external-page-nav-bar"},t.createElement(Br,null,t.createElement(Qr,null,t.createElement(uo,{xs:10},t.createElement("div",{className:"nav-wrapper"},t.createElement("nav",{className:"header-nav"},t.createElement("a",{href:"https://geant.org/"},t.createElement("img",{src:yo})),t.createElement("ul",null,t.createElement("li",null,t.createElement("a",{className:"nav-link-entry",href:"https://network.geant.org/"},"NETWORK")),t.createElement("li",null,t.createElement("a",{className:"nav-link-entry",href:"https://geant.org/services/"},"SERVICES")),t.createElement("li",null,t.createElement("a",{className:"nav-link-entry",href:"https://community.geant.org/"},"COMMUNITY")),t.createElement("li",null,t.createElement("a",{className:"nav-link-entry",href:"https://tnc23.geant.org/"},"TNC")),t.createElement("li",null,t.createElement("a",{className:"nav-link-entry",href:"https://geant.org/projects/"},"PROJECTS")),t.createElement("li",null,t.createElement("a",{className:"nav-link-entry",href:"https://connect.geant.org/"},"CONNECT")),t.createElement("li",null,t.createElement("a",{className:"nav-link-entry",href:"https://impact.geant.org/"},"IMPACT")),t.createElement("li",null,t.createElement("a",{className:"nav-link-entry",href:"https://careers.geant.org/"},"CAREERS")),t.createElement("li",null,t.createElement("a",{className:"nav-link-entry",href:"https://about.geant.org/"},"ABOUT")),t.createElement("li",null,t.createElement("a",{className:"nav-link-entry",href:"https://connect.geant.org/community-news"},"NEWS")),t.createElement("li",null,t.createElement("a",{className:"nav-link-entry",href:"https://resources.geant.org/"},"RESOURCES")))))))))},bo=function(){var e=(0,t.useContext)(Ur).user,n=je(),r=!!e.id,o=!!r&&!!e.nrens.length,i=o?e.nrens[0]:"",s=!!r&&e.permissions.admin,a=!!r&&"observer"===e.role,l=lt((0,t.useState)(null),2),u=l[0],c=l[1];(0,t.useEffect)((function(){var e=function(){var e=it(ct().mark((function e(){var t;return ct().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Rr();case 2:t=e.sent,c(t);case 4:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}();e()}),[]);var p=function(){var e=lt((0,t.useState)(),2),n=e[0],r=e[1];return(0,t.useEffect)((function(){Tr().then((function(e){r(e[0])}))}),[]),t.createElement(Vn,{striped:!0,bordered:!0,responsive:!0},t.createElement("thead",null,t.createElement("tr",null,t.createElement("th",null,"(N)REN"),t.createElement("th",null,"Link"),t.createElement("th",null,"Survey Status"))),t.createElement("tbody",null,n&&n.responses.map((function(e){return t.createElement("tr",{key:e.nren},t.createElement("td",null,e.nren),t.createElement("td",null,t.createElement(tt,{to:"/survey/response/".concat(n.year,"/").concat(e.nren)},t.createElement("span",null,"Navigate to survey"))),t.createElement("td",null,e.status))}))))};return t.createElement(Br,{className:"py-5 grey-container"},t.createElement(Qr,null,t.createElement("div",{className:"center-text"},t.createElement("h1",{className:"geant-header"},"THE GÉANT COMPENDIUM OF NRENS SURVEY"),t.createElement("div",{className:"wordwrap pt-4",style:{maxWidth:"75rem"}},t.createElement("p",{style:{textAlign:"left"}},"Hello,",t.createElement("br",null),"Welcome to the GÉANT Compendium Survey. (N)REN Compendium administrators can login via Single Sign On (SSO) ",t.createElement("a",{href:"/login"},"here"),", which will complete their registration to fill in the 2023 Compendium survey. This will send a notification to the Compendium administration team and they will assign you to your (N)REN.",t.createElement("br",null),"Once this step has been completed, you will receive an email from the administration team. We aim to get back to you the same working day, but sometimes may take a little longer.",t.createElement("br",null),"If you are not sure whether you are a Compendium Administrator for your (N)REN, please contact your GÉANT Partner Relations relationship manager.",t.createElement("br",null),"Thank you."),t.createElement("span",null,"Current registration status:"),t.createElement("br",null),t.createElement("br",null),s?t.createElement("ul",null,t.createElement("li",null,t.createElement("span",null,"You are logged in as a Compendium Administrator")),t.createElement("li",null,t.createElement("span",null,"Click ",t.createElement(tt,{to:"/survey/admin/surveys"},"here")," to access the survey management page.")),t.createElement("li",null,t.createElement("span",null,"Click ",t.createElement(tt,{to:"/survey/admin/users"},"here")," to access the user management page."))):t.createElement("ul",null,u&&!s&&!a&&o&&function(){try{return n("/survey/response/".concat(u,"/").concat(i)),t.createElement("li",null,"Redirecting to survey...")}catch(e){return console.error("Error navigating:",e),null}}(),r?t.createElement("li",null,t.createElement("span",null,"You are logged in")):t.createElement("li",null,t.createElement("span",null,"You are not logged in")),r&&!a&&!o&&t.createElement("li",null,t.createElement("span",null,"Your access to the survey has not yet been approved")),r&&!a&&!o&&t.createElement("li",null,t.createElement("span",null,"Once you have been approved, you will immediately be directed to the relevant survey upon visiting this page")),r&&a&&t.createElement("li",null,t.createElement("span",null,"You have read-only access to the following surveys:"))),r&&a&&t.createElement(p,null)))))};var Co,wo=(Co=[{path:"survey/admin/surveys",element:t.createElement(Mr,null)},{path:"survey/admin/users",element:t.createElement(Xr,null)},{path:"survey/admin/inspect/:year",element:t.createElement(mo,{loadFrom:"/api/response/inspect/"})},{path:"survey/admin/try/:year",element:t.createElement(mo,{loadFrom:"/api/response/try/"})},{path:"survey/response/:year/:nren",element:t.createElement(mo,{loadFrom:"/api/response/load/"})},{path:"*",element:t.createElement(bo,null)}],function(t){let n;if(s(t.routes.length>0,"You must provide a non-empty routes array to createRouter"),t.mapRouteProperties)n=t.mapRouteProperties;else if(t.detectErrorBoundary){let e=t.detectErrorBoundary;n=t=>({hasErrorBoundary:e(t)})}else n=Z;let r,i={},l=f(t.routes,n,void 0,i),c=t.basename||"/",p=o({v7_normalizeFormMethod:!1,v7_prependBasename:!1},t.future),h=null,m=new Set,y=null,v=null,b=null,C=null!=t.hydrationData,w=g(l,t.history.location,c),x=null;if(null==w){let e=pe(404,{pathname:t.history.location.pathname}),{matches:n,route:r}=ce(l);w=n,x={[r.id]:e}}let P,S,V=!(w.some((e=>e.route.lazy))||w.some((e=>e.route.loader))&&null==t.hydrationData),E={historyAction:t.history.action,location:t.history.location,matches:w,initialized:V,navigation:U,restoreScrollPosition:null==t.hydrationData&&null,preventScrollReset:!1,revalidation:"idle",loaderData:t.hydrationData&&t.hydrationData.loaderData||{},actionData:t.hydrationData&&t.hydrationData.actionData||null,errors:t.hydrationData&&t.hydrationData.errors||x,fetchers:new Map,blockers:new Map},O=e.Pop,T=!1,R=!1,I=!1,D=[],j=[],k=new Map,M=0,L=-1,q=new Map,N=new Set,A=new Map,B=new Map,F=new Map,Q=!1;function z(e){E=o({},E,e),m.forEach((e=>e(E)))}function te(n,i){var s,a;let u,c=null!=E.actionData&&null!=E.navigation.formMethod&&ye(E.navigation.formMethod)&&"loading"===E.navigation.state&&!0!==(null==(s=n.state)?void 0:s._isRedirect);u=i.actionData?Object.keys(i.actionData).length>0?i.actionData:null:c?E.actionData:null;let p=i.loaderData?le(E.loaderData,i.loaderData,i.matches||[],i.errors):E.loaderData;for(let[e]of F)_e(e);let d=!0===T||null!=E.navigation.formMethod&&ye(E.navigation.formMethod)&&!0!==(null==(a=n.state)?void 0:a._isRedirect);r&&(l=r,r=void 0),z(o({},i,{actionData:u,loaderData:p,historyAction:O,location:n,initialized:!0,navigation:U,revalidation:"idle",restoreScrollPosition:je(n,i.matches||E.matches),preventScrollReset:d,blockers:new Map(E.blockers)})),R||O===e.Pop||(O===e.Push?t.history.push(n,n.state):O===e.Replace&&t.history.replace(n,n.state)),O=e.Pop,T=!1,R=!1,I=!1,D=[],j=[]}async function ne(s,a,u){S&&S.abort(),S=null,O=s,R=!0===(u&&u.startUninterruptedRevalidation),function(e,t){if(y&&v&&b){let n=t.map((e=>we(e,E.loaderData))),r=v(e,n)||e.key;y[r]=b()}}(E.location,E.matches),T=!0===(u&&u.preventScrollReset);let p=r||l,h=u&&u.overrideNavigation,f=g(p,a,c);if(!f){let e=pe(404,{pathname:a.pathname}),{matches:t,route:n}=ce(p);return De(),void te(a,{matches:t,loaderData:{},errors:{[n.id]:e}})}if(E.initialized&&function(e,t){return e.pathname===t.pathname&&e.search===t.search&&(""===e.hash?""!==t.hash:e.hash===t.hash||""!==t.hash)}(E.location,a)&&!(u&&u.submission&&ye(u.submission.formMethod)))return void te(a,{matches:f});S=new AbortController;let m,C,w=ie(t.history,a,S.signal,u&&u.submission);if(u&&u.pendingError)C={[ue(f).route.id]:u.pendingError};else if(u&&u.submission&&ye(u.submission.formMethod)){let t=await async function(t,r,s,a,l){let u;Ce(),z({navigation:o({state:"submitting",location:r},s)});let p=xe(a,r);if(p.route.action||p.route.lazy){if(u=await oe("action",t,p,a,i,n,c),t.signal.aborted)return{shortCircuited:!0}}else u={type:d.error,error:pe(405,{method:t.method,pathname:r.pathname,routeId:p.route.id})};if(me(u)){let e;return e=l&&null!=l.replace?l.replace:u.location===E.location.pathname+E.location.search,await se(E,u,{submission:s,replace:e}),{shortCircuited:!0}}if(ge(u)){let t=ue(a,p.route.id);return!0!==(l&&l.replace)&&(O=e.Push),{pendingActionData:{},pendingActionError:{[t.route.id]:u.error}}}if(fe(u))throw pe(400,{type:"defer-action"});return{pendingActionData:{[p.route.id]:u.data}}}(w,a,u.submission,f,{replace:u.replace});if(t.shortCircuited)return;m=t.pendingActionData,C=t.pendingActionError,h=o({state:"loading",location:a},u.submission),w=new Request(w.url,{signal:w.signal})}let{shortCircuited:x,loaderData:P,errors:V}=await async function(e,n,i,s,a,u,p,d,h){let f=s;f||(f=o({state:"loading",location:n,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0},a));let g=a||u?a||u:f.formMethod&&f.formAction&&f.formData&&f.formEncType?{formMethod:f.formMethod,formAction:f.formAction,formData:f.formData,formEncType:f.formEncType}:void 0,m=r||l,[y,v]=ee(t.history,E,i,g,n,I,D,j,A,m,c,d,h);if(De((e=>!(i&&i.some((t=>t.route.id===e)))||y&&y.some((t=>t.route.id===e)))),0===y.length&&0===v.length){let e=Oe();return te(n,o({matches:i,loaderData:{},errors:h||null},d?{actionData:d}:{},e?{fetchers:new Map(E.fetchers)}:{})),{shortCircuited:!0}}if(!R){v.forEach((e=>{let t=E.fetchers.get(e.key),n={state:"loading",data:t&&t.data,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0," _hasFetcherDoneAnything ":!0};E.fetchers.set(e.key,n)}));let e=d||E.actionData;z(o({navigation:f},e?0===Object.keys(e).length?{actionData:null}:{actionData:e}:{},v.length>0?{fetchers:new Map(E.fetchers)}:{}))}L=++M,v.forEach((e=>{e.controller&&k.set(e.key,e.controller)}));let b=()=>v.forEach((e=>Ve(e.key)));S&&S.signal.addEventListener("abort",b);let{results:C,loaderResults:w,fetcherResults:x}=await he(E.matches,i,y,v,e);if(e.signal.aborted)return{shortCircuited:!0};S&&S.signal.removeEventListener("abort",b),v.forEach((e=>k.delete(e.key)));let P=de(C);if(P)return await se(E,P,{replace:p}),{shortCircuited:!0};let{loaderData:V,errors:O}=ae(E,i,y,w,h,v,x,B);B.forEach(((e,t)=>{e.subscribe((n=>{(n||e.done)&&B.delete(t)}))}));let T=Oe(),_=Te(L);return o({loaderData:V,errors:O},T||_||v.length>0?{fetchers:new Map(E.fetchers)}:{})}(w,a,f,h,u&&u.submission,u&&u.fetcherSubmission,u&&u.replace,m,C);x||(S=null,te(a,o({matches:f},m?{actionData:m}:{},{loaderData:P,errors:V})))}function re(e){return E.fetchers.get(e)||W}async function se(n,r,i){var a;let{submission:l,replace:p,isFetchActionRedirect:d}=void 0===i?{}:i;r.revalidate&&(I=!0);let h=u(n.location,r.location,o({_isRedirect:!0},d?{_isFetchActionRedirect:!0}:{}));if(s(h,"Expected a location on the redirect navigation"),$.test(r.location)&&G&&void 0!==(null==(a=window)?void 0:a.location)){let e=t.history.createURL(r.location),n=null==_(e.pathname,c);if(window.location.origin!==e.origin||n)return void(p?window.location.replace(r.location):window.location.assign(r.location))}S=null;let f=!0===p?e.Replace:e.Push,{formMethod:g,formAction:m,formEncType:y,formData:v}=n.navigation;!l&&g&&m&&v&&y&&(l={formMethod:g,formAction:m,formEncType:y,formData:v}),H.has(r.status)&&l&&ye(l.formMethod)?await ne(f,h,{submission:o({},l,{formAction:r.location}),preventScrollReset:T}):d?await ne(f,h,{overrideNavigation:{state:"loading",location:h,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0},fetcherSubmission:l,preventScrollReset:T}):await ne(f,h,{overrideNavigation:{state:"loading",location:h,formMethod:l?l.formMethod:void 0,formAction:l?l.formAction:void 0,formEncType:l?l.formEncType:void 0,formData:l?l.formData:void 0},preventScrollReset:T})}async function he(e,r,o,s,a){let l=await Promise.all([...o.map((e=>oe("loader",a,e,r,i,n,c))),...s.map((e=>e.matches&&e.match&&e.controller?oe("loader",ie(t.history,e.path,e.controller.signal),e.match,e.matches,i,n,c):{type:d.error,error:pe(404,{pathname:e.path})}))]),u=l.slice(0,o.length),p=l.slice(o.length);return await Promise.all([ve(e,o,u,u.map((()=>a.signal)),!1,E.loaderData),ve(e,s.map((e=>e.match)),p,s.map((e=>e.controller?e.controller.signal:null)),!0)]),{results:l,loaderResults:u,fetcherResults:p}}function Ce(){I=!0,D.push(...De()),A.forEach(((e,t)=>{k.has(t)&&(j.push(t),Ve(t))}))}function Pe(e,t,n){let r=ue(E.matches,t);Se(e),z({errors:{[r.route.id]:n},fetchers:new Map(E.fetchers)})}function Se(e){k.has(e)&&Ve(e),A.delete(e),q.delete(e),N.delete(e),E.fetchers.delete(e)}function Ve(e){let t=k.get(e);s(t,"Expected fetch controller: "+e),t.abort(),k.delete(e)}function Ee(e){for(let t of e){let e={state:"idle",data:re(t).data,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0," _hasFetcherDoneAnything ":!0};E.fetchers.set(t,e)}}function Oe(){let e=[],t=!1;for(let n of N){let r=E.fetchers.get(n);s(r,"Expected fetcher: "+n),"loading"===r.state&&(N.delete(n),e.push(n),t=!0)}return Ee(e),t}function Te(e){let t=[];for(let[n,r]of q)if(r<e){let e=E.fetchers.get(n);s(e,"Expected fetcher: "+n),"loading"===e.state&&(Ve(n),q.delete(n),t.push(n))}return Ee(t),t.length>0}function _e(e){E.blockers.delete(e),F.delete(e)}function Re(e,t){let n=E.blockers.get(e)||J;s("unblocked"===n.state&&"blocked"===t.state||"blocked"===n.state&&"blocked"===t.state||"blocked"===n.state&&"proceeding"===t.state||"blocked"===n.state&&"unblocked"===t.state||"proceeding"===n.state&&"unblocked"===t.state,"Invalid blocker state transition: "+n.state+" -> "+t.state),E.blockers.set(e,t),z({blockers:new Map(E.blockers)})}function Ie(e){let{currentLocation:t,nextLocation:n,historyAction:r}=e;if(0===F.size)return;F.size>1&&a(!1,"A router only supports one blocker at a time");let o=Array.from(F.entries()),[i,s]=o[o.length-1],l=E.blockers.get(i);return l&&"proceeding"===l.state?void 0:s({currentLocation:t,nextLocation:n,historyAction:r})?i:void 0}function De(e){let t=[];return B.forEach(((n,r)=>{e&&!e(r)||(n.cancel(),t.push(r),B.delete(r))})),t}function je(e,t){if(y&&v&&b){let n=t.map((e=>we(e,E.loaderData))),r=v(e,n)||e.key,o=y[r];if("number"==typeof o)return o}return null}return P={get basename(){return c},get state(){return E},get routes(){return l},initialize:function(){return h=t.history.listen((e=>{let{action:n,location:r,delta:o}=e;if(Q)return void(Q=!1);a(0===F.size||null!=o,"You are trying to use a blocker on a POP navigation to a location that was not created by @remix-run/router. This will fail silently in production. This can happen if you are navigating outside the router via `window.history.pushState`/`window.location.hash` instead of using router navigation APIs.  This can also happen if you are using createHashRouter and the user manually changes the URL.");let i=Ie({currentLocation:E.location,nextLocation:r,historyAction:n});return i&&null!=o?(Q=!0,t.history.go(-1*o),void Re(i,{state:"blocked",location:r,proceed(){Re(i,{state:"proceeding",proceed:void 0,reset:void 0,location:r}),t.history.go(o)},reset(){_e(i),z({blockers:new Map(P.state.blockers)})}})):ne(n,r)})),E.initialized||ne(e.Pop,E.location),P},subscribe:function(e){return m.add(e),()=>m.delete(e)},enableScrollRestoration:function(e,t,n){if(y=e,b=t,v=n||(e=>e.key),!C&&E.navigation===U){C=!0;let e=je(E.location,E.matches);null!=e&&z({restoreScrollPosition:e})}return()=>{y=null,b=null,v=null}},navigate:async function n(r,i){if("number"==typeof r)return void t.history.go(r);let s=Y(E.location,E.matches,c,p.v7_prependBasename,r,null==i?void 0:i.fromRouteId,null==i?void 0:i.relative),{path:a,submission:l,error:d}=X(p.v7_normalizeFormMethod,!1,s,i),h=E.location,f=u(E.location,a,i&&i.state);f=o({},f,t.history.encodeLocation(f));let g=i&&null!=i.replace?i.replace:void 0,m=e.Push;!0===g?m=e.Replace:!1===g||null!=l&&ye(l.formMethod)&&l.formAction===E.location.pathname+E.location.search&&(m=e.Replace);let y=i&&"preventScrollReset"in i?!0===i.preventScrollReset:void 0,v=Ie({currentLocation:h,nextLocation:f,historyAction:m});if(!v)return await ne(m,f,{submission:l,pendingError:d,preventScrollReset:y,replace:i&&i.replace});Re(v,{state:"blocked",location:f,proceed(){Re(v,{state:"proceeding",proceed:void 0,reset:void 0,location:f}),n(r,i)},reset(){_e(v),z({blockers:new Map(E.blockers)})}})},fetch:function(e,a,u,d){if(K)throw new Error("router.fetch() was called during the server render, but it shouldn't be. You are likely calling a useFetcher() method in the body of your component. Try moving it to a useEffect or a callback.");k.has(e)&&Ve(e);let h=r||l,f=Y(E.location,E.matches,c,p.v7_prependBasename,u,a,null==d?void 0:d.relative),m=g(h,f,c);if(!m)return void Pe(e,a,pe(404,{pathname:f}));let{path:y,submission:v}=X(p.v7_normalizeFormMethod,!0,f,d),b=xe(m,y);T=!0===(d&&d.preventScrollReset),v&&ye(v.formMethod)?async function(e,a,u,p,d,h){if(Ce(),A.delete(e),!p.route.action&&!p.route.lazy){let t=pe(405,{method:h.formMethod,pathname:u,routeId:a});return void Pe(e,a,t)}let f=E.fetchers.get(e),m=o({state:"submitting"},h,{data:f&&f.data," _hasFetcherDoneAnything ":!0});E.fetchers.set(e,m),z({fetchers:new Map(E.fetchers)});let y=new AbortController,v=ie(t.history,u,y.signal,h);k.set(e,y);let b=await oe("action",v,p,d,i,n,c);if(v.signal.aborted)return void(k.get(e)===y&&k.delete(e));if(me(b)){k.delete(e),N.add(e);let t=o({state:"loading"},h,{data:void 0," _hasFetcherDoneAnything ":!0});return E.fetchers.set(e,t),z({fetchers:new Map(E.fetchers)}),se(E,b,{submission:h,isFetchActionRedirect:!0})}if(ge(b))return void Pe(e,a,b.error);if(fe(b))throw pe(400,{type:"defer-action"});let C=E.navigation.location||E.location,w=ie(t.history,C,y.signal),x=r||l,P="idle"!==E.navigation.state?g(x,E.navigation.location,c):E.matches;s(P,"Didn't find any matches after fetcher action");let V=++M;q.set(e,V);let T=o({state:"loading",data:b.data},h,{" _hasFetcherDoneAnything ":!0});E.fetchers.set(e,T);let[_,R]=ee(t.history,E,P,h,C,I,D,j,A,x,c,{[p.route.id]:b.data},void 0);R.filter((t=>t.key!==e)).forEach((e=>{let t=e.key,n=E.fetchers.get(t),r={state:"loading",data:n&&n.data,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0," _hasFetcherDoneAnything ":!0};E.fetchers.set(t,r),e.controller&&k.set(t,e.controller)})),z({fetchers:new Map(E.fetchers)});let F=()=>R.forEach((e=>Ve(e.key)));y.signal.addEventListener("abort",F);let{results:Q,loaderResults:H,fetcherResults:U}=await he(E.matches,P,_,R,w);if(y.signal.aborted)return;y.signal.removeEventListener("abort",F),q.delete(e),k.delete(e),R.forEach((e=>k.delete(e.key)));let W=de(Q);if(W)return se(E,W);let{loaderData:J,errors:$}=ae(E,E.matches,_,H,void 0,R,U,B),G={state:"idle",data:b.data,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0," _hasFetcherDoneAnything ":!0};E.fetchers.set(e,G);let K=Te(V);"loading"===E.navigation.state&&V>L?(s(O,"Expected pending action"),S&&S.abort(),te(E.navigation.location,{matches:P,loaderData:J,errors:$,fetchers:new Map(E.fetchers)})):(z(o({errors:$,loaderData:le(E.loaderData,J,P,$)},K?{fetchers:new Map(E.fetchers)}:{})),I=!1)}(e,a,y,b,m,v):(A.set(e,{routeId:a,path:y}),async function(e,r,a,l,u,p){let d=E.fetchers.get(e),h=o({state:"loading",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0},p,{data:d&&d.data," _hasFetcherDoneAnything ":!0});E.fetchers.set(e,h),z({fetchers:new Map(E.fetchers)});let f=new AbortController,g=ie(t.history,a,f.signal);k.set(e,f);let m=await oe("loader",g,l,u,i,n,c);if(fe(m)&&(m=await be(m,g.signal,!0)||m),k.get(e)===f&&k.delete(e),g.signal.aborted)return;if(me(m))return N.add(e),void await se(E,m);if(ge(m)){let t=ue(E.matches,r);return E.fetchers.delete(e),void z({fetchers:new Map(E.fetchers),errors:{[t.route.id]:m.error}})}s(!fe(m),"Unhandled fetcher deferred data");let y={state:"idle",data:m.data,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0," _hasFetcherDoneAnything ":!0};E.fetchers.set(e,y),z({fetchers:new Map(E.fetchers)})}(e,a,y,b,m,v))},revalidate:function(){Ce(),z({revalidation:"loading"}),"submitting"!==E.navigation.state&&("idle"!==E.navigation.state?ne(O||E.historyAction,E.navigation.location,{overrideNavigation:E.navigation}):ne(E.historyAction,E.location,{startUninterruptedRevalidation:!0}))},createHref:e=>t.history.createHref(e),encodeLocation:e=>t.history.encodeLocation(e),getFetcher:re,deleteFetcher:Se,dispose:function(){h&&h(),m.clear(),S&&S.abort(),E.fetchers.forEach(((e,t)=>Se(t))),E.blockers.forEach(((e,t)=>_e(t)))},getBlocker:function(e,t){let n=E.blockers.get(e)||J;return F.get(e)!==t&&F.set(e,t),n},deleteBlocker:_e,_internalFetchControllers:k,_internalActiveDeferreds:B,_internalSetRoutes:function(e){i={},r=f(e,n,void 0,i)}},P}({basename:void 0,future:Ke({},void 0,{v7_prependBasename:!0}),history:function(t){return void 0===t&&(t={}),function(t,n,r,a){void 0===a&&(a={});let{window:p=document.defaultView,v5Compat:d=!1}=a,h=p.history,f=e.Pop,g=null,m=y();function y(){return(h.state||{idx:null}).idx}function v(){f=e.Pop;let t=y(),n=null==t?null:t-m;m=t,g&&g({action:f,location:C.location,delta:n})}function b(e){let t="null"!==p.location.origin?p.location.origin:p.location.href,n="string"==typeof e?e:c(e);return s(t,"No window.location.(origin|href) available to create URL for href: "+n),new URL(n,t)}null==m&&(m=0,h.replaceState(o({},h.state,{idx:m}),""));let C={get action(){return f},get location(){return t(p,h)},listen(e){if(g)throw new Error("A history only accepts one active listener");return p.addEventListener(i,v),g=e,()=>{p.removeEventListener(i,v),g=null}},createHref:e=>n(p,e),createURL:b,encodeLocation(e){let t=b(e);return{pathname:t.pathname,search:t.search,hash:t.hash}},push:function(t,n){f=e.Push;let o=u(C.location,t,n);r&&r(o,t),m=y()+1;let i=l(o,m),s=C.createHref(o);try{h.pushState(i,"",s)}catch(e){p.location.assign(s)}d&&g&&g({action:f,location:C.location,delta:1})},replace:function(t,n){f=e.Replace;let o=u(C.location,t,n);r&&r(o,t),m=y();let i=l(o,m),s=C.createHref(o);h.replaceState(i,"",s),d&&g&&g({action:f,location:C.location,delta:0})},go:e=>h.go(e)};return C}((function(e,t){let{pathname:n,search:r,hash:o}=e.location;return u("",{pathname:n,search:r,hash:o},t.state&&t.state.usr||null,t.state&&t.state.key||"default")}),(function(e,t){return"string"==typeof t?t:c(t)}),null,t)}({window:void 0}),hydrationData:function(){var e;let t=null==(e=window)?void 0:e.__staticRouterHydrationData;return t&&t.errors&&(t=Ke({},t,{errors:Ye(t.errors)})),t}(),routes:Co,mapRouteProperties:function(e){let n={hasErrorBoundary:null!=e.ErrorBoundary||null!=e.errorElement};return e.Component&&Object.assign(n,{element:t.createElement(e.Component),Component:void 0}),e.ErrorBoundary&&Object.assign(n,{errorElement:t.createElement(e.ErrorBoundary),ErrorBoundary:void 0}),n}}).initialize());const xo=function(){return t.createElement("div",{className:"app"},t.createElement(Wr,null,t.createElement(vo,null),t.createElement(We,{router:wo})))};var Po=document.getElementById("root");(0,r.s)(Po).render(t.createElement(t.StrictMode,null,t.createElement(xo,null)))})()})();
\ No newline at end of file
+`,Sr=({reverseOrder:e,position:n="top-center",toastOptions:r,gutter:o,children:i,containerStyle:s,containerClassName:a})=>{let{toasts:l,handlers:u}=(e=>{let{toasts:n,pausedAt:r}=((e={})=>{let[n,r]=(0,t.useState)(Kn);(0,t.useEffect)((()=>(Jn.push(r),()=>{let e=Jn.indexOf(r);e>-1&&Jn.splice(e,1)})),[n]);let o=n.toasts.map((t=>{var n,r;return{...e,...e[t.type],...t,duration:t.duration||(null==(n=e[t.type])?void 0:n.duration)||(null==e?void 0:e.duration)||Xn[t.type],style:{...e.style,...null==(r=e[t.type])?void 0:r.style,...t.style}}}));return{...n,toasts:o}})(e);(0,t.useEffect)((()=>{if(r)return;let e=Date.now(),t=n.map((t=>{if(t.duration===1/0)return;let n=(t.duration||0)+t.pauseDuration-(e-t.createdAt);if(!(n<0))return setTimeout((()=>er.dismiss(t.id)),n);t.visible&&er.dismiss(t.id)}));return()=>{t.forEach((e=>e&&clearTimeout(e)))}}),[n,r]);let o=(0,t.useCallback)((()=>{r&&Yn({type:6,time:Date.now()})}),[r]),i=(0,t.useCallback)(((e,t)=>{let{reverseOrder:r=!1,gutter:o=8,defaultPosition:i}=t||{},s=n.filter((t=>(t.position||i)===(e.position||i)&&t.height)),a=s.findIndex((t=>t.id===e.id)),l=s.filter(((e,t)=>t<a&&e.visible)).length;return s.filter((e=>e.visible)).slice(...r?[l+1]:[0,l]).reduce(((e,t)=>e+(t.height||0)+o),0)}),[n]);return{toasts:n,handlers:{updateHeight:tr,startPause:nr,endPause:o,calculateOffset:i}}})(r);return t.createElement("div",{style:{position:"fixed",zIndex:9999,top:16,left:16,right:16,bottom:16,pointerEvents:"none",...s},className:a,onMouseEnter:u.startPause,onMouseLeave:u.endPause},l.map((r=>{let s=r.position||n,a=((e,t)=>{let n=e.includes("top"),r=n?{top:0}:{bottom:0},o=e.includes("center")?{justifyContent:"center"}:e.includes("right")?{justifyContent:"flex-end"}:{};return{left:0,right:0,display:"flex",position:"absolute",transition:Un()?void 0:"all 230ms cubic-bezier(.21,1.02,.73,1)",transform:`translateY(${t*(n?1:-1)}px)`,...r,...o}})(s,u.calculateOffset(r,{reverseOrder:e,gutter:o,defaultPosition:n}));return t.createElement(xr,{id:r.id,key:r.id,onHeightUpdate:u.updateHeight,className:r.visible?Pr:"",style:a},"custom"===r.type?Hn(r.message,r):i?i(r):t.createElement(wr,{toast:r,position:s}))})))},Er=er,Tr=function(e){return e.Unverified="unverified",e.Verified="verified",e.Edited="edited",e}({}),Or=function(e){return e.not_started="not started",e.started="started",e.completed="completed",e}({}),Vr=function(e){return e.closed="closed",e.open="open",e.preview="preview",e.published="published",e}({});function _r(){return Rr.apply(this,arguments)}function Rr(){return(Rr=st(pt().mark((function e(){var t,n;return pt().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,fetch("/api/survey/list");case 3:return t=e.sent,e.next=6,t.json();case 6:return n=e.sent,e.abrupt("return",n);case 10:return e.prev=10,e.t0=e.catch(0),console.log("failed fetching survey list.."),e.abrupt("return",[]);case 14:case"end":return e.stop()}}),e,null,[[0,10]])})))).apply(this,arguments)}function Ir(){return Dr.apply(this,arguments)}function Dr(){return(Dr=st(pt().mark((function e(){var t,n,r;return pt().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,fetch("/api/survey/active/year");case 3:return t=e.sent,e.next=6,t.json();case 6:if(!("year"in(n=e.sent))){e.next=12;break}return r=n.year,e.abrupt("return",r.toString());case 12:return console.log("Invalid response format: Failed fetching active survey year."),e.abrupt("return","");case 14:e.next=20;break;case 16:return e.prev=16,e.t0=e.catch(0),console.error("Failed fetching active survey year:",e.t0),e.abrupt("return","");case 20:case"end":return e.stop()}}),e,null,[[0,16]])})))).apply(this,arguments)}const Ar=t.forwardRef((({bsPrefix:e,variant:t,animation:n="border",size:r,as:o="div",className:i,...s},a)=>{const l=`${e=xt(e,"spinner")}-${n}`;return(0,vt.jsx)(o,{ref:a,...s,className:ht()(i,l,r&&`${l}-${r}`,t&&`text-${t}`)})}));Ar.displayName="Spinner";const kr=Ar;function Mr(e){var n=e.text,r=e.helpText,o=e.onClick,i=e.enabled,s=ut((0,t.useState)(!1),2),a=s[0],l=s[1],u=function(){var e=st(pt().mark((function e(){return pt().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!a){e.next=2;break}return e.abrupt("return");case 2:return l(!0),e.prev=3,e.next=6,o();case 6:return e.prev=6,l(!1),e.finish(6);case 9:case"end":return e.stop()}}),e,null,[[3,,6,9]])})));return function(){return e.apply(this,arguments)}}();return t.createElement(En,{onClick:u,disabled:!i,style:{pointerEvents:"auto",marginLeft:".5rem"},title:r},a&&t.createElement(kr,{as:"span",animation:"border",size:"sm",role:"status","aria-hidden":"true"}),n)}const Nr=function(){var e=ut((0,t.useState)([]),2),n=e[0],r=e[1],o=(0,t.useRef)(!1);function i(e,t,n){return s.apply(this,arguments)}function s(){return(s=st(pt().mark((function e(t,n,o){var i,s;return pt().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,fetch(t,{method:"POST"});case 3:return i=e.sent,e.next=6,i.json();case 6:s=e.sent,i.ok?(Er(o),_r().then((function(e){r(e)}))):Er(n+s.message),e.next=13;break;case 10:e.prev=10,e.t0=e.catch(0),Er(n+e.t0.message);case 13:case"end":return e.stop()}}),e,null,[[0,10]])})))).apply(this,arguments)}function a(){return(a=st(pt().mark((function e(){return pt().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,i("/api/survey/new","Failed creating new survey: ","Created new survey");case 2:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function l(e,t){return u.apply(this,arguments)}function u(){return(u=st(pt().mark((function e(t,n){return pt().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!o.current){e.next=3;break}return Er("Wait for status update to be finished..."),e.abrupt("return");case 3:return o.current=!0,e.next=6,i("/api/survey/"+n+"/"+t,"Error while updating "+t+" survey status to "+n+": ",t+" survey status updated to "+n);case 6:o.current=!1;case 7:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function c(){return(c=st(pt().mark((function e(t,n){return pt().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,i("/api/response/unlock/"+t+"/"+n,"Error while unlocking "+n+" "+t+" survey response: ",n+" "+t+" survey response unlocked");case 2:case"end":return e.stop()}}),e)})))).apply(this,arguments)}(0,t.useEffect)((function(){_r().then((function(e){r(e)}))}),[]);var p=n.length>0&&n.every((function(e){return e.status==Vr.published})),d=ke(),h=window.location.origin+"/data?preview";return t.createElement("div",null,t.createElement(Sr,null),t.createElement(En,{onClick:function(){return a.apply(this,arguments)},disabled:!p,style:{pointerEvents:"auto"},title:"Create a new survey for the next year. Only possible if all current surveys are published."},"start new survey"),t.createElement(Cn,null,n.map((function(e){return t.createElement(Cn.Item,{eventKey:e.year.toString(),key:e.year},t.createElement(Cn.Header,null,e.year," - ",e.status),t.createElement(Cn.Body,null,t.createElement("div",{style:{marginLeft:".5rem"}},t.createElement(En,{style:{marginLeft:".5rem"},onClick:function(){return d("/survey/admin/inspect/".concat(e.year))},title:"Open the survey for inspection with all questions visible and any visibleIf logic added to the title."},"Inspect Survey"),t.createElement(En,{style:{marginLeft:".5rem"},onClick:function(){return d("/survey/admin/try/".concat(e.year))},title:"Open the survey exactly as the nrens will see it, but without any nren data."},"Try Survey"),t.createElement(Mr,{text:"Mark as open",helpText:"Allow the NRENs to respond to this survey. Only 1 survey may be open at a time, and (pre)-published surveys cannot be opened anymore.",enabled:e.status==Vr.closed,onClick:function(){return l(e.year,"open")}}),t.createElement(Mr,{text:"Mark as closed",helpText:"Do not allow the NRENs to respond to this survey anymore. Only surveys with status open can be closed.",enabled:e.status==Vr.open,onClick:function(){return l(e.year,"close")}}),t.createElement(Mr,{text:"Preview results",helpText:"Publish all completed survey responses to the compendium website for preview by admins. This is only possible if the survey is closed or previewed already.",enabled:e.status==Vr.closed||e.status==Vr.preview,onClick:function(){return l(e.year,"preview")}}),t.createElement(Mr,{text:"Publish results",helpText:"Publish or re-publish all completed survey responses to the compendium website. This is only possible if the survey is in preview or published already.",enabled:e.status==Vr.preview||e.status==Vr.published,onClick:function(){return l(e.year,"publish")}}),e.status==Vr.preview&&t.createElement("span",null,"  Preview link: ",t.createElement("a",{href:h},h))),t.createElement(Tn,null,t.createElement("tbody",null,e.responses.map((function(n){return t.createElement("tr",{key:n.nren},t.createElement("td",null,n.nren),t.createElement("td",null,n.status),t.createElement("td",null,n.lock_description),t.createElement("td",null,t.createElement(En,{onClick:function(){return d("/survey/response/".concat(e.year,"/").concat(n.nren))},style:{pointerEvents:"auto"},title:"Open the responses of the NREN."},"open"),t.createElement(En,{onClick:function(){return function(e,t){return c.apply(this,arguments)}(e.year,n.nren)},disabled:""==n.lock_description,style:{pointerEvents:"auto"},title:"Remove the lock from the survey so that another person can open the survey for editing. WARNING: The person that currently has the lock will not be abe to save their changes anymore once someone else starts editing!"},"remove lock")))}))))))}))))};function Lr(e){return function(e){if(Array.isArray(e))return at(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||lt(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function jr(e){return jr="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},jr(e)}function qr(e,t,n){return(t=function(e){var t=function(e,t){if("object"!==jr(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!==jr(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===jr(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const Fr=t.forwardRef((({bsPrefix:e,fluid:t=!1,as:n="div",className:r,...o},i)=>{const s=xt(e,"container"),a="string"==typeof t?`-${t}`:"-fluid";return(0,vt.jsx)(n,{ref:i,...o,className:ht()(r,t?`${s}${a}`:s)})}));Fr.displayName="Container";const Br=Fr,Qr=t.forwardRef((({bsPrefix:e,className:t,as:n="div",...r},o)=>{const i=xt(e,"row"),s=Pt(),a=St(),l=`${i}-cols`,u=[];return s.forEach((e=>{const t=r[e];let n;delete r[e],null!=t&&"object"==typeof t?({cols:n}=t):n=t;const o=e!==a?`-${e}`:"";null!=n&&u.push(`${l}${o}-${n}`)})),(0,vt.jsx)(n,{ref:o,...r,className:ht()(t,i,...u)})}));Qr.displayName="Row";const Hr=Qr;function zr(){return(zr=st(pt().mark((function e(){var t,n;return pt().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,fetch("/api/user/");case 2:return t=e.sent,e.next=5,t.json();case 5:return n=e.sent,e.abrupt("return",n);case 7:case"end":return e.stop()}}),e)})))).apply(this,arguments)}var Ur={name:"",email:"",permissions:{admin:!1,active:!1},id:"",nrens:[],oidc_sub:"",role:""},Wr=(0,t.createContext)({user:Ur,logout:function(){}});const Gr=function(e){var n=e.children,r=ut((0,t.useState)(Ur),2),o=r[0],i=r[1];function s(){return(s=st(pt().mark((function e(){return pt().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,fetch("/logout");case 2:i(Ur);case 3:case"end":return e.stop()}}),e)})))).apply(this,arguments)}return(0,t.useEffect)((function(){(function(){return zr.apply(this,arguments)})().then((function(e){i(e)}))}),[]),t.createElement(Wr.Provider,{value:{user:o,logout:function(){return s.apply(this,arguments)}}},n)};function $r(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Jr(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?$r(Object(n),!0).forEach((function(t){qr(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):$r(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Kr(){return(Kr=st(pt().mark((function e(){var t,n;return pt().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,fetch("/api/user/list");case 3:return t=e.sent,e.next=6,t.json();case 6:return n=e.sent,e.abrupt("return",n);case 10:return e.prev=10,e.t0=e.catch(0),console.log("handle this better.."),e.abrupt("return",[]);case 14:case"end":return e.stop()}}),e,null,[[0,10]])})))).apply(this,arguments)}function Yr(){return(Yr=st(pt().mark((function e(){var t,n;return pt().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,fetch("/api/nren/list");case 3:return t=e.sent,e.next=6,t.json();case 6:return n=e.sent,e.abrupt("return",n);case 10:return e.prev=10,e.t0=e.catch(0),console.log("handle this better.."),e.abrupt("return",[]);case 14:case"end":return e.stop()}}),e,null,[[0,10]])})))).apply(this,arguments)}var Xr=function(){var e=st(pt().mark((function e(t,n){var r,o,i,s;return pt().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=Jr({id:t},n),o={method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify(r)},e.next=4,fetch("/api/user/".concat(t),o);case 4:return i=e.sent,e.next=7,i.json();case 7:if(s=e.sent,i.ok){e.next=10;break}throw new Error(s.message);case 10:return e.abrupt("return",s.user);case 11:case"end":return e.stop()}}),e)})));return function(t,n){return e.apply(this,arguments)}}(),Zr=function(e,t){return e.permissions.active&&!t.permissions.active?-1:!e.permissions.active&&t.permissions.active?1:e.permissions.active&&t.permissions.active?"admin"===e.role&&"admin"!==t.role?1:"admin"!==e.role&&"admin"===t.role?-1:e.name.localeCompare(t.name):e.name.localeCompare(t.name)};const eo=function(){var e=ut((0,t.useState)([]),2),n=e[0],r=e[1],o=ut((0,t.useState)([]),2),i=o[0],s=o[1],a=(0,t.useContext)(Wr).user,l=ut((0,t.useState)({idx:-1,asc:!0}),2),u=l[0],c=l[1],p=ut((0,t.useState)([]),2),d=p[0],h=p[1];(0,t.useEffect)((function(){(function(){return Kr.apply(this,arguments)})().then((function(e){r(e),h(e.sort(Zr))})),function(){return Yr.apply(this,arguments)}().then((function(e){s(e.sort((function(e,t){return e.name.localeCompare(t.name)})))}))}),[]),(0,t.useEffect)((function(){h(Lr(n.sort(Zr)))}),[n]);for(var f=function(e,t){var o=n.findIndex((function(e){return e.id===t.id})),i=Lr(n),s=e.target.name,a={};a[s]="active"===s?e.target.checked:e.target.value,Xr(t.id,a).then((function(e){i[o]=e,r(i)})).catch((function(e){alert(e.message)}))},m=function(e){var t;if(e===u.idx||(5===e||0===e)&&-1===u.idx)return 5!==e&&0!==e||(e=-1),c({idx:e,asc:!u.asc}),void h(Lr(d.reverse()));0===e?(t=Zr,c({idx:-1,asc:!0})):1===e?(t=function(e,t){return e.permissions.active&&!t.permissions.active?-1:!e.permissions.active&&t.permissions.active?1:0},c({idx:e,asc:!0})):2===e?(t=function(e,t){return e.role.localeCompare(t.role)},c({idx:e,asc:!0})):3===e?(t=function(e,t){return e.email.localeCompare(t.email)},c({idx:e,asc:!0})):4===e?(t=function(e,t){return e.name.localeCompare(t.name)},c({idx:e,asc:!0})):5===e?(t=Zr,c({idx:-1,asc:!0})):6===e?(t=function(e,t){return 0===e.nrens.length&&0===t.nrens.length?0:0===e.nrens.length?-1:0===t.nrens.length?1:e.nrens[0].localeCompare(t.nrens[0])},c({idx:e,asc:!0})):(t=Zr,c({idx:e,asc:!0})),h(n.sort(t))},g={},y=0;y<=6;y++)g[y]=u.idx===y?{"aria-sort":u.asc?"ascending":"descending"}:null;return t.createElement(Br,{style:{maxWidth:"90vw"}},t.createElement(Hr,null,t.createElement("h1",null," User Management Page"),t.createElement(Tn,null,t.createElement("thead",null,t.createElement("tr",null,t.createElement("th",ft({},g[0],{onClick:function(){return m(0)},className:"pt-3 sortable",style:{border:"1px solid #ddd"}}),"Id"),t.createElement("th",ft({},g[1],{onClick:function(){return m(1)},className:"pt-3 sortable",style:{border:"1px solid #ddd"}}),"Active"),t.createElement("th",ft({},g[2],{onClick:function(){return m(2)},className:"pt-3 sortable",style:{border:"1px solid #ddd"}}),"Role"),t.createElement("th",ft({},g[3],{onClick:function(){return m(3)},className:"pt-3 sortable",style:{border:"1px solid #ddd"}}),"Email"),t.createElement("th",ft({},g[4],{onClick:function(){return m(4)},className:"pt-3 sortable",style:{border:"1px solid #ddd"}}),"Full Name"),t.createElement("th",ft({},g[5],{onClick:function(){return m(5)},className:"pt-3 sortable",style:{border:"1px solid #ddd"}}),"OIDC Sub"),t.createElement("th",ft({},g[6],{onClick:function(){return m(6)},className:"pt-3 sortable",style:{border:"1px solid #ddd"}}),"NREN"))),t.createElement("tbody",null,d.map((function(e){return t.createElement("tr",{key:e.id},t.createElement("td",{style:{border:"1px dotted #ddd"}},e.id),t.createElement("td",{style:{border:"1px dotted #ddd"}},e.id==a.id?"Active":t.createElement("input",{type:"checkbox",name:"active",checked:e.permissions.active,onChange:function(t){return f(t,e)}})),t.createElement("td",{style:{border:"1px dotted #ddd"}},e.id==a.id?e.role.charAt(0).toUpperCase()+e.role.slice(1):t.createElement("select",{name:"role",defaultValue:e.role,onChange:function(t){return f(t,e)}},t.createElement("option",{value:"admin"},"Admin"),t.createElement("option",{value:"user"},"User"),t.createElement("option",{value:"observer"},"Observer"))),t.createElement("td",{style:{border:"1px dotted #ddd"}},e.email),t.createElement("td",{style:{border:"1px dotted #ddd"}},e.name),t.createElement("td",{style:{border:"1px dotted #ddd"}},e.oidc_sub),t.createElement("td",{style:{border:"1px dotted #ddd"}},t.createElement("select",{name:"nren",multiple:!1,value:e.nrens.length>0?(n=e.nrens[0],null===(r=i.find((function(e){return e.id==n||e.name==n})))||void 0===r?void 0:r.id):"",onChange:function(t){return f(t,e)}},t.createElement("option",{value:""},"Select NREN"),i.map((function(e){return t.createElement("option",{key:"nren_"+e.id,value:e.id},e.name)})))));var n,r}))))))};var to=n(535),no=n(352);function ro(e,t){if(0==t.column.indexValue&&"item"in t.row){var n,r,o=t.row.item;void 0!==o.customDescription&&(null===(n=t.htmlElement.parentElement)||void 0===n||n.children[0].children[0].setAttribute("description",o.customDescription),null===(r=t.htmlElement.parentElement)||void 0===r||r.children[0].children[0].classList.add("survey-tooltip"))}}function oo(e){var t=e[0];if(void 0===t||null==t||""==t)return!0;try{return!!new URL(t)}catch(e){return!1}}function io(e,t){t.question.hideCheckboxLabels&&(t.cssClasses.root+=" hidden-checkbox-labels")}function so(e,t){var n,r='[data-name="'+t.question.name+'"]',o=null===(n=document.querySelector(r))||void 0===n?void 0:n.querySelector("h5");o&&!o.classList.contains("sv-header-flex")&&t.question.updateElementCss()}function ao(e,t,n){var r;n.verificationStatus.set(e.name,t);var o=document.createElement("button");o.type="button",o.className="sv-action-bar-item verification",o.innerHTML=t,t==Tr.Unverified?(o.innerHTML="No change from previous year",o.className+=" verification-required",o.onclick=function(){"display"!=n.mode&&(e.validate(),ao(e,Tr.Verified,n))}):(o.innerHTML="Answer updated",o.className+=" verification-ok");var i='[data-name="'+e.name+'"]',s=null===(r=document.querySelector(i))||void 0===r?void 0:r.querySelector("h5"),a=null==s?void 0:s.querySelector(".verification");a?a.replaceWith(o):null==s||s.appendChild(o)}const lo=function(e){var n=e.surveyModel,r=(0,t.useCallback)((function(e,t){var r=n.verificationStatus.get(t.question.name);r&&ao(t.question,r,n)}),[n]),o=(0,t.useCallback)((function(e,t){n.verificationStatus.get(t.question.name)==Tr.Unverified&&ao(t.question,Tr.Edited,n)}),[n]);return to.FunctionFactory.Instance.hasFunction("validateWebsiteUrl")||to.FunctionFactory.Instance.register("validateWebsiteUrl",oo),n.css.question.title.includes("sv-header-flex")||(n.css.question.title="sv-title sv-question__title sv-header-flex",n.css.question.titleOnError="sv-question__title--error sv-error-color-fix"),n.onAfterRenderQuestion.hasFunc(r)||(n.onAfterRenderQuestion.add(r),n.onAfterRenderQuestion.add(so)),n.onValueChanged.hasFunc(o)||n.onValueChanged.add(o),n.onUpdateQuestionCssClasses.hasFunc(io)||n.onUpdateQuestionCssClasses.add(io),n.onMatrixAfterCellRender.hasFunc(ro)||n.onMatrixAfterCellRender.add(ro),t.createElement(no.Survey,{model:n})},uo=t.forwardRef(((e,t)=>{const[{className:n,...r},{as:o="div",bsPrefix:i,spans:s}]=function({as:e,bsPrefix:t,className:n,...r}){t=xt(t,"col");const o=Pt(),i=St(),s=[],a=[];return o.forEach((e=>{const n=r[e];let o,l,u;delete r[e],"object"==typeof n&&null!=n?({span:o,offset:l,order:u}=n):o=n;const c=e!==i?`-${e}`:"";o&&s.push(!0===o?`${t}${c}`:`${t}${c}-${o}`),null!=u&&a.push(`order${c}-${u}`),null!=l&&a.push(`offset${c}-${l}`)})),[{...r,className:ht()(n,...s,...a)},{as:e,bsPrefix:t,spans:s}]}(e);return(0,vt.jsx)(o,{...r,ref:t,className:ht()(n,!s.length&&i)})}));uo.displayName="Col";const co=uo;function po(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function ho(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?po(Object(n),!0).forEach((function(t){qr(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):po(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}const fo=function(e){var n=e.surveyModel,r=e.pageNoSetter,o=ut((0,t.useState)([]),2),i=o[0],s=o[1],a=function(e){return!(null===e.value||void 0===e.value||""===e.value||"checkbox"===e.getType()&&0==e.value.length||"multipletext"===e.getType()&&(1===Object.keys(e.value).length&&void 0===Object.values(e.value)[0]||0===Object.keys(e.value).length))};(0,t.useEffect)((function(){var e=function(e){if(e&&e.pages){var t=[];e.pages.forEach((function(n){var r=n.questions.filter((function(e){return e.startWithNewLine})),o=r.length,i=r.filter(a).length,s=o-i,l=i/o;t.push({completionPercentage:100*l,unansweredPercentage:s/o*100,totalPages:e.pages.length,pageTitle:n.title})})),s(t)}};n.onValueChanged.add((function(t){e(t)})),e(n)}),[n]);var l={height:"0.5rem",transition:"width 0.3s ease"};return t.createElement(Br,{className:"survey-progress"},t.createElement(Hr,null,i.map((function(e,o){return t.createElement(co,{xs:12,md:!0,key:o,onClick:function(){return r(o)},style:{cursor:"pointer",margin:"0.5rem"}},t.createElement("div",null,t.createElement("span",{style:{whiteSpace:"nowrap",fontSize:"1.5rem",marginRight:"0.25rem",fontWeight:"bold",color:"#2db394"}},o+1),t.createElement("span",{style:ho({whiteSpace:"nowrap"},n.currentPageNo==o&&{fontWeight:"bold"})},e.pageTitle),t.createElement("div",{style:{display:"flex",flexWrap:"wrap"}},t.createElement("div",{style:ho(ho({},l),{},{width:"".concat(e.completionPercentage,"%"),backgroundColor:"#262261"})}),t.createElement("div",{style:ho(ho({},l),{},{width:"".concat(e.unansweredPercentage,"%"),backgroundColor:"#cdcdcd"})}))))}))))},mo=function(e){var n=e.surveyModel,r=e.surveyActions,o=e.year,i=e.nren,s=e.children,a=ut((0,t.useState)(0),2),l=a[0],u=a[1],c=ut((0,t.useState)(!1),2),p=c[0],d=c[1],h=ut((0,t.useState)(""),2),f=h[0],m=h[1],g=ut((0,t.useState)(""),2),y=g[0],v=g[1],b=(0,t.useContext)(Wr).user,C=(0,t.useCallback)((function(){d("edit"==n.mode),m(n.lockedBy),u(n.currentPageNo),v(n.status)}),[n]);(0,t.useEffect)((function(){C()}),[C]);var w=function(e){u(e),n.currentPageNo=e},x=function(){w(n.currentPageNo+1)},P=function(){var e=st(pt().mark((function e(t){return pt().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r[t]();case 2:C();case 3:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),S=function(e,t){return E(e,(function(){return P(t)}))},E=function(e,n){return t.createElement("button",{className:"sv-btn sv-btn--navigation",onClick:n},e)},T="Save and stop editing",O="Save progress",V="Start editing",_="Complete Survey",R=function(){return t.createElement("div",{className:"survey-edit-buttons-block"},!p&&!f&&n.editAllowed&&S(V,"startEdit"),!p&&f&&f==b.name&&S("Discard any unsaved changes and release your lock","releaseLock"),p&&y==Or.started&&S(O,"save"),p&&y==Or.started&&S(T,"saveAndStopEdit"),p&&l===n.visiblePages.length-1&&S(_,"complete"),l!==n.visiblePages.length-1&&E("Next Section",x))},I=parseInt(o);return t.createElement(Br,null,t.createElement(Hr,{className:"survey-content"},t.createElement("h2",null,t.createElement("span",{className:"survey-title"},o," Compendium Survey "),t.createElement("span",{className:"survey-title-nren"}," ",i," "),t.createElement("span",null," - ",y)),t.createElement("p",{style:{marginTop:"1rem"}},"To get started, click “",V,"” to end read-only mode. This is only possible when nobody else from your NREN is currently working on the survey.",t.createElement("br",null),"Where available, the survey questions are pre-filled with answers from the previous year. The survey asks about the past year, i.e. the ",o," survey asks about data from ",I-1," (or ",I-1,"/",o," if your NRENs financial year does not match the calendar year). You can edit the prefilled answer to provide new information, or press the “no change from previous year” button.",t.createElement("br",null),"Press the “",O,"“ or “",T,"“ button to save all answers in the survey. When you reach the last section of the survey (Services), you will find a “",_,"“ button which saves all answers in the survey and lets the Compendium team know that your answers are ready to be published.",t.createElement("br",null),"As long as the survey remains open, any Compendium administrator from your NREN can add answers or amend existing ones, even after using the “",_,"“ button. Different people from your NREN can contribute to the survey if needed.",t.createElement("br",null),"Some fields require specific data, such as numerical data, valid http-addresses, and in some questions, the answer has to add up to 100%. If an answer does not fulfil the set criteria, the question will turn pink and an error message will appear. Fields can be left blank if you prefer not to answer a question.",t.createElement("br",null),"If you notice any errors after the survey was closed, please contact us for correcting those."),t.createElement("p",null,"Thank you for taking the time to fill in the ",o," Compendium Survey. Any questions or requests can be sent to ",t.createElement("a",{href:"mailto:Partner-Relations@geant.org"},t.createElement("span",null,"Partner-Relations@geant.org"))),p&&t.createElement(t.Fragment,null,t.createElement("br",null),t.createElement("b",null,"Remember to click “",T,"” before leaving the page."))),t.createElement(Hr,null,R()),t.createElement(Hr,{className:"survey-content"},!p&&t.createElement("div",{className:"survey-edit-explainer"},!f&&n.editAllowed&&"The survey is in read-only mode; click the “Start editing“ button to begin editing the answers.",!f&&!n.editAllowed&&"The survey is in read-only mode and can not be edited by you.",f&&f!=b.name&&"The survey is in read-only mode and currently being edited by: "+f+". To start editing the survey, ask them to complete their edits.",f&&f==b.name&&'The survey is in read-only mode because you started editing in another tab, browser or device. To start editing the survey, either complete those edits or click the "Discard any unsaved changes" button.')),t.createElement(Hr,null,t.createElement(fo,{surveyModel:n,pageNoSetter:w}),s),t.createElement(Hr,null,R()))},go=function(e){var n=e.when,r=e.onPageExit;return function(e){let{router:n}=He(Be.UseBlocker),r=ze(Qe.UseBlocker),[o]=t.useState((()=>String(++We))),i=t.useCallback((t=>!!e()),[e]);n.getBlocker(o,i);t.useEffect((()=>()=>n.deleteBlocker(o)),[n,o]),r.blockers.get(o)}((function(){if(n()){var t=window.confirm(e.message);return t&&r(),!t}return!1})),t.createElement("div",null)};to.Serializer.addProperty("itemvalue","customDescription:text"),to.Serializer.addProperty("question","hideCheckboxLabels:boolean");const yo=function(e){var n=e.loadFrom,r=ut((0,t.useState)(),2),o=r[0],i=r[1],s=function(){let{matches:e}=t.useContext(_e),n=e[e.length-1];return n?n.params:{}}(),a=s.year,l=s.nren,u=ut((0,t.useState)("loading survey..."),2),c=u[0],p=u[1],d=(0,t.useCallback)((function(e){return e.preventDefault(),e.returnValue=""}),[]),h=(0,t.useCallback)((function(){window.navigator.sendBeacon("/api/response/unlock/"+a+"/"+l)}),[]),f=(0,t.useCallback)((function(){window.navigator.sendBeacon("/api/response/unlock/"+a+"/"+l),removeEventListener("beforeunload",d,{capture:!0}),removeEventListener("pagehide",h)}),[]);if((0,t.useEffect)((function(){function e(){return(e=st(pt().mark((function e(){var t,r,o,s;return pt().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,fetch(n+a+(l?"/"+l:""));case 2:return t=e.sent,e.next=5,t.json();case 5:if(r=e.sent,t.ok){e.next=12;break}if(!("message"in r)){e.next=11;break}throw new Error(r.message);case 11:throw new Error("Request failed with status ".concat(t.status));case 12:for(s in(o=new to.Model(r.model)).setVariable("surveyyear",a),o.setVariable("previousyear",parseInt(a)-1),o.showNavigationButtons=!1,o.requiredText="",o.verificationStatus=new Map,r.verification_status)o.verificationStatus.set(s,r.verification_status[s]);o.data=r.data,o.clearIncorrectValues(!0),o.currentPageNo=r.page,o.mode=r.mode,o.lockedBy=r.locked_by,o.status=r.status,o.editAllowed=r.edit_allowed,i(o);case 27:case"end":return e.stop()}}),e)})))).apply(this,arguments)}(function(){return e.apply(this,arguments)})().catch((function(e){return p("Error when loading survey: "+e.message)}))}),[]),!o)return c;var m,g,y,v,b,C=function(){var e=st(pt().mark((function e(t,n){var r,i,s;return pt().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(l){e.next=2;break}return e.abrupt("return","Saving not available in inpect/try mode");case 2:return r={lock_uuid:t.lockUUID,new_state:n,data:t.data,page:t.currentPageNo,verification_status:Object.fromEntries(t.verificationStatus)},e.prev=3,e.next=6,fetch("/api/response/save/"+a+"/"+l,{method:"POST",headers:{"Content-Type":"application/json; charset=utf-8"},body:JSON.stringify(r)});case 6:return i=e.sent,e.next=9,i.json();case 9:if(s=e.sent,i.ok){e.next=12;break}return e.abrupt("return",s.message);case 12:o.mode=s.mode,o.lockedBy=s.locked_by,o.status=s.status,e.next=20;break;case 17:return e.prev=17,e.t0=e.catch(3),e.abrupt("return","Unknown Error: "+e.t0.message);case 20:case"end":return e.stop()}}),e,null,[[3,17]])})));return function(t,n){return e.apply(this,arguments)}}(),w=function(e){var t="",n=function(e,n){e.verificationStatus.get(n.name)==Tr.Unverified&&(""==t&&(t=n.name),n.error='Please verify that last years data is correct by editing the answer or pressing the "No change from previous year" button!')};o.onValidateQuestion.add(n);var r=e();return o.onValidateQuestion.remove(n),r||Er("Validation failed!"),r},x={save:(b=st(pt().mark((function e(){var t;return pt().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,C(o,"editing");case 2:t=e.sent,Er(t?"Failed saving survey: "+t:"Survey saved!");case 4:case"end":return e.stop()}}),e)}))),function(){return b.apply(this,arguments)}),complete:(v=st(pt().mark((function e(){var t;return pt().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!w(o.validate.bind(o,!0,!0))){e.next=6;break}return e.next=4,C(o,"completed");case 4:(t=e.sent)?Er("Failed completing survey: "+t):(Er("Survey completed!"),removeEventListener("beforeunload",d,{capture:!0}),removeEventListener("pagehide",h));case 6:case"end":return e.stop()}}),e)}))),function(){return v.apply(this,arguments)}),saveAndStopEdit:(y=st(pt().mark((function e(){var t;return pt().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,C(o,"readonly");case 2:(t=e.sent)?Er("Failed saving survey: "+t):(Er("Survey saved!"),removeEventListener("beforeunload",d,{capture:!0}),removeEventListener("pagehide",h));case 4:case"end":return e.stop()}}),e)}))),function(){return y.apply(this,arguments)}),startEdit:(g=st(pt().mark((function e(){var t,n,r;return pt().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,fetch("/api/response/lock/"+a+"/"+l,{method:"POST"});case 2:return t=e.sent,e.next=5,t.json();case 5:if(n=e.sent,t.ok){e.next=9;break}return Er("Failed starting edit: "+n.message),e.abrupt("return");case 9:for(r in addEventListener("pagehide",h),addEventListener("beforeunload",d,{capture:!0}),n.verification_status)o.verificationStatus.set(r,n.verification_status[r]);o.data=n.data,o.clearIncorrectValues(!0),o.mode=n.mode,o.lockedBy=n.locked_by,o.lockUUID=n.lock_uuid,o.status=n.status;case 18:case"end":return e.stop()}}),e)}))),function(){return g.apply(this,arguments)}),releaseLock:(m=st(pt().mark((function e(){var t,n;return pt().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,fetch("/api/response/unlock/"+a+"/"+l,{method:"POST"});case 2:return t=e.sent,e.next=5,t.json();case 5:if(n=e.sent,t.ok){e.next=9;break}return Er("Failed releasing lock: "+n.message),e.abrupt("return");case 9:o.mode=n.mode,o.lockedBy=n.locked_by,o.status=n.status;case 12:case"end":return e.stop()}}),e)}))),function(){return m.apply(this,arguments)}),validatePage:function(){w(o.validatePage.bind(o))&&Er("Page validation successful!")}};return t.createElement(Br,{className:"survey-container"},t.createElement(Sr,null),t.createElement(go,{message:"Are you sure you want to leave this page? Information you've entered may not be saved.",when:function(){return"edit"==o.mode&&!!l},onPageExit:f}),t.createElement(mo,{surveyModel:o,surveyActions:x,year:a,nren:l},t.createElement(lo,{surveyModel:o})))},vo=n.p+"9ab20ac1d835b50b2e01.svg",bo=function(){return t.createElement("div",{className:"external-page-nav-bar"},t.createElement(Br,null,t.createElement(Hr,null,t.createElement(co,{xs:10},t.createElement("div",{className:"nav-wrapper"},t.createElement("nav",{className:"header-nav"},t.createElement("a",{href:"https://geant.org/"},t.createElement("img",{src:vo})),t.createElement("ul",null,t.createElement("li",null,t.createElement("a",{className:"nav-link-entry",href:"https://network.geant.org/"},"NETWORK")),t.createElement("li",null,t.createElement("a",{className:"nav-link-entry",href:"https://geant.org/services/"},"SERVICES")),t.createElement("li",null,t.createElement("a",{className:"nav-link-entry",href:"https://community.geant.org/"},"COMMUNITY")),t.createElement("li",null,t.createElement("a",{className:"nav-link-entry",href:"https://tnc23.geant.org/"},"TNC")),t.createElement("li",null,t.createElement("a",{className:"nav-link-entry",href:"https://geant.org/projects/"},"PROJECTS")),t.createElement("li",null,t.createElement("a",{className:"nav-link-entry",href:"https://connect.geant.org/"},"CONNECT")),t.createElement("li",null,t.createElement("a",{className:"nav-link-entry",href:"https://impact.geant.org/"},"IMPACT")),t.createElement("li",null,t.createElement("a",{className:"nav-link-entry",href:"https://careers.geant.org/"},"CAREERS")),t.createElement("li",null,t.createElement("a",{className:"nav-link-entry",href:"https://about.geant.org/"},"ABOUT")),t.createElement("li",null,t.createElement("a",{className:"nav-link-entry",href:"https://connect.geant.org/community-news"},"NEWS")),t.createElement("li",null,t.createElement("a",{className:"nav-link-entry",href:"https://resources.geant.org/"},"RESOURCES")))))))))};var Co={version:"0.18.5"},wo=1200,xo=1252,Po=[874,932,936,949,950,1250,1251,1252,1253,1254,1255,1256,1257,1258,1e4],So={0:1252,1:65001,2:65001,77:1e4,128:932,129:949,130:1361,134:936,136:950,161:1253,162:1254,163:1258,177:1255,178:1256,186:1257,204:1251,222:874,238:1250,255:1252,69:6969},Eo=function(e){-1!=Po.indexOf(e)&&(xo=So[0]=e)},To=function(e){wo=e,Eo(e)};var Oo,Vo=function(e){return String.fromCharCode(e)},_o=function(e){return String.fromCharCode(e)},Ro=null,Io="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";function Do(e){for(var t="",n=0,r=0,o=0,i=0,s=0,a=0,l=0,u=0;u<e.length;)i=(n=e.charCodeAt(u++))>>2,s=(3&n)<<4|(r=e.charCodeAt(u++))>>4,a=(15&r)<<2|(o=e.charCodeAt(u++))>>6,l=63&o,isNaN(r)?a=l=64:isNaN(o)&&(l=64),t+=Io.charAt(i)+Io.charAt(s)+Io.charAt(a)+Io.charAt(l);return t}function Ao(e){var t="",n=0,r=0,o=0,i=0,s=0,a=0;e=e.replace(/[^\w\+\/\=]/g,"");for(var l=0;l<e.length;)n=Io.indexOf(e.charAt(l++))<<2|(i=Io.indexOf(e.charAt(l++)))>>4,t+=String.fromCharCode(n),r=(15&i)<<4|(s=Io.indexOf(e.charAt(l++)))>>2,64!==s&&(t+=String.fromCharCode(r)),o=(3&s)<<6|(a=Io.indexOf(e.charAt(l++))),64!==a&&(t+=String.fromCharCode(o));return t}var ko=function(){return"undefined"!=typeof Buffer&&"undefined"!=typeof process&&void 0!==process.versions&&!!process.versions.node}(),Mo=function(){if("undefined"!=typeof Buffer){var e=!Buffer.from;if(!e)try{Buffer.from("foo","utf8")}catch(t){e=!0}return e?function(e,t){return t?new Buffer(e,t):new Buffer(e)}:Buffer.from.bind(Buffer)}return function(){}}();function No(e){return ko?Buffer.alloc?Buffer.alloc(e):new Buffer(e):"undefined"!=typeof Uint8Array?new Uint8Array(e):new Array(e)}function Lo(e){return ko?Buffer.allocUnsafe?Buffer.allocUnsafe(e):new Buffer(e):"undefined"!=typeof Uint8Array?new Uint8Array(e):new Array(e)}var jo=function(e){return ko?Mo(e,"binary"):e.split("").map((function(e){return 255&e.charCodeAt(0)}))};function qo(e){if("undefined"==typeof ArrayBuffer)return jo(e);for(var t=new ArrayBuffer(e.length),n=new Uint8Array(t),r=0;r!=e.length;++r)n[r]=255&e.charCodeAt(r);return t}function Fo(e){if(Array.isArray(e))return e.map((function(e){return String.fromCharCode(e)})).join("");for(var t=[],n=0;n<e.length;++n)t[n]=String.fromCharCode(e[n]);return t.join("")}var Bo=ko?function(e){return Buffer.concat(e.map((function(e){return Buffer.isBuffer(e)?e:Mo(e)})))}:function(e){if("undefined"!=typeof Uint8Array){var t=0,n=0;for(t=0;t<e.length;++t)n+=e[t].length;var r=new Uint8Array(n),o=0;for(t=0,n=0;t<e.length;n+=o,++t)if(o=e[t].length,e[t]instanceof Uint8Array)r.set(e[t],n);else{if("string"==typeof e[t])throw"wtf";r.set(new Uint8Array(e[t]),n)}return r}return[].concat.apply([],e.map((function(e){return Array.isArray(e)?e:[].slice.call(e)})))},Qo=/\u0000/g,Ho=/[\u0001-\u0006]/g;function zo(e){for(var t="",n=e.length-1;n>=0;)t+=e.charAt(n--);return t}function Uo(e,t){var n=""+e;return n.length>=t?n:ts("0",t-n.length)+n}function Wo(e,t){var n=""+e;return n.length>=t?n:ts(" ",t-n.length)+n}function Go(e,t){var n=""+e;return n.length>=t?n:n+ts(" ",t-n.length)}var $o=Math.pow(2,32);function Jo(e,t){return e>$o||e<-$o?function(e,t){var n=""+Math.round(e);return n.length>=t?n:ts("0",t-n.length)+n}(e,t):function(e,t){var n=""+e;return n.length>=t?n:ts("0",t-n.length)+n}(Math.round(e),t)}function Ko(e,t){return t=t||0,e.length>=7+t&&103==(32|e.charCodeAt(t))&&101==(32|e.charCodeAt(t+1))&&110==(32|e.charCodeAt(t+2))&&101==(32|e.charCodeAt(t+3))&&114==(32|e.charCodeAt(t+4))&&97==(32|e.charCodeAt(t+5))&&108==(32|e.charCodeAt(t+6))}var Yo=[["Sun","Sunday"],["Mon","Monday"],["Tue","Tuesday"],["Wed","Wednesday"],["Thu","Thursday"],["Fri","Friday"],["Sat","Saturday"]],Xo=[["J","Jan","January"],["F","Feb","February"],["M","Mar","March"],["A","Apr","April"],["M","May","May"],["J","Jun","June"],["J","Jul","July"],["A","Aug","August"],["S","Sep","September"],["O","Oct","October"],["N","Nov","November"],["D","Dec","December"]],Zo={0:"General",1:"0",2:"0.00",3:"#,##0",4:"#,##0.00",9:"0%",10:"0.00%",11:"0.00E+00",12:"# ?/?",13:"# ??/??",14:"m/d/yy",15:"d-mmm-yy",16:"d-mmm",17:"mmm-yy",18:"h:mm AM/PM",19:"h:mm:ss AM/PM",20:"h:mm",21:"h:mm:ss",22:"m/d/yy h:mm",37:"#,##0 ;(#,##0)",38:"#,##0 ;[Red](#,##0)",39:"#,##0.00;(#,##0.00)",40:"#,##0.00;[Red](#,##0.00)",45:"mm:ss",46:"[h]:mm:ss",47:"mmss.0",48:"##0.0E+0",49:"@",56:'"上午/下午 "hh"時"mm"分"ss"秒 "'},ei={5:37,6:38,7:39,8:40,23:0,24:0,25:0,26:0,27:14,28:14,29:14,30:14,31:14,50:14,51:14,52:14,53:14,54:14,55:14,56:14,57:14,58:14,59:1,60:2,61:3,62:4,67:9,68:10,69:12,70:13,71:14,72:14,73:15,74:16,75:17,76:20,77:21,78:22,79:45,80:46,81:47,82:0},ti={5:'"$"#,##0_);\\("$"#,##0\\)',63:'"$"#,##0_);\\("$"#,##0\\)',6:'"$"#,##0_);[Red]\\("$"#,##0\\)',64:'"$"#,##0_);[Red]\\("$"#,##0\\)',7:'"$"#,##0.00_);\\("$"#,##0.00\\)',65:'"$"#,##0.00_);\\("$"#,##0.00\\)',8:'"$"#,##0.00_);[Red]\\("$"#,##0.00\\)',66:'"$"#,##0.00_);[Red]\\("$"#,##0.00\\)',41:'_(* #,##0_);_(* \\(#,##0\\);_(* "-"_);_(@_)',42:'_("$"* #,##0_);_("$"* \\(#,##0\\);_("$"* "-"_);_(@_)',43:'_(* #,##0.00_);_(* \\(#,##0.00\\);_(* "-"??_);_(@_)',44:'_("$"* #,##0.00_);_("$"* \\(#,##0.00\\);_("$"* "-"??_);_(@_)'};function ni(e,t,n){for(var r=e<0?-1:1,o=e*r,i=0,s=1,a=0,l=1,u=0,c=0,p=Math.floor(o);u<t&&(a=(p=Math.floor(o))*s+i,c=p*u+l,!(o-p<5e-8));)o=1/(o-p),i=s,s=a,l=u,u=c;if(c>t&&(u>t?(c=l,a=i):(c=u,a=s)),!n)return[0,r*a,c];var d=Math.floor(r*a/c);return[d,r*a-d*c,c]}function ri(e,t,n){if(e>2958465||e<0)return null;var r=0|e,o=Math.floor(86400*(e-r)),i=0,s=[],a={D:r,T:o,u:86400*(e-r)-o,y:0,m:0,d:0,H:0,M:0,S:0,q:0};if(Math.abs(a.u)<1e-6&&(a.u=0),t&&t.date1904&&(r+=1462),a.u>.9999&&(a.u=0,86400==++o&&(a.T=o=0,++r,++a.D)),60===r)s=n?[1317,10,29]:[1900,2,29],i=3;else if(0===r)s=n?[1317,8,29]:[1900,1,0],i=6;else{r>60&&--r;var l=new Date(1900,0,1);l.setDate(l.getDate()+r-1),s=[l.getFullYear(),l.getMonth()+1,l.getDate()],i=l.getDay(),r<60&&(i=(i+6)%7),n&&(i=function(e,t){t[0]-=581;var n=e.getDay();return e<60&&(n=(n+6)%7),n}(l,s))}return a.y=s[0],a.m=s[1],a.d=s[2],a.S=o%60,o=Math.floor(o/60),a.M=o%60,o=Math.floor(o/60),a.H=o,a.q=i,a}var oi=new Date(1899,11,31,0,0,0),ii=oi.getTime(),si=new Date(1900,2,1,0,0,0);function ai(e,t){var n=e.getTime();return t?n-=1262304e5:e>=si&&(n+=864e5),(n-(ii+6e4*(e.getTimezoneOffset()-oi.getTimezoneOffset())))/864e5}function li(e){return-1==e.indexOf(".")?e:e.replace(/(?:\.0*|(\.\d*[1-9])0+)$/,"$1")}function ui(e,t){switch(typeof e){case"string":return e;case"boolean":return e?"TRUE":"FALSE";case"number":return(0|e)===e?e.toString(10):function(e){var t,n=Math.floor(Math.log(Math.abs(e))*Math.LOG10E);return t=n>=-4&&n<=-1?e.toPrecision(10+n):Math.abs(n)<=9?function(e){var t=e<0?12:11,n=li(e.toFixed(12));return n.length<=t||(n=e.toPrecision(10)).length<=t?n:e.toExponential(5)}(e):10===n?e.toFixed(10).substr(0,12):function(e){var t=li(e.toFixed(11));return t.length>(e<0?12:11)||"0"===t||"-0"===t?e.toPrecision(6):t}(e),li(function(e){return-1==e.indexOf("E")?e:e.replace(/(?:\.0*|(\.\d*[1-9])0+)[Ee]/,"$1E").replace(/(E[+-])(\d)$/,"$10$2")}(t.toUpperCase()))}(e);case"undefined":return"";case"object":if(null==e)return"";if(e instanceof Date)return _i(14,ai(e,t&&t.date1904),t)}throw new Error("unsupported value in General format: "+e)}function ci(e,t,n,r){var o,i="",s=0,a=0,l=n.y,u=0;switch(e){case 98:l=n.y+543;case 121:switch(t.length){case 1:case 2:o=l%100,u=2;break;default:o=l%1e4,u=4}break;case 109:switch(t.length){case 1:case 2:o=n.m,u=t.length;break;case 3:return Xo[n.m-1][1];case 5:return Xo[n.m-1][0];default:return Xo[n.m-1][2]}break;case 100:switch(t.length){case 1:case 2:o=n.d,u=t.length;break;case 3:return Yo[n.q][0];default:return Yo[n.q][1]}break;case 104:switch(t.length){case 1:case 2:o=1+(n.H+11)%12,u=t.length;break;default:throw"bad hour format: "+t}break;case 72:switch(t.length){case 1:case 2:o=n.H,u=t.length;break;default:throw"bad hour format: "+t}break;case 77:switch(t.length){case 1:case 2:o=n.M,u=t.length;break;default:throw"bad minute format: "+t}break;case 115:if("s"!=t&&"ss"!=t&&".0"!=t&&".00"!=t&&".000"!=t)throw"bad second format: "+t;return 0!==n.u||"s"!=t&&"ss"!=t?(a=r>=2?3===r?1e3:100:1===r?10:1,(s=Math.round(a*(n.S+n.u)))>=60*a&&(s=0),"s"===t?0===s?"0":""+s/a:(i=Uo(s,2+r),"ss"===t?i.substr(0,2):"."+i.substr(2,t.length-1))):Uo(n.S,t.length);case 90:switch(t){case"[h]":case"[hh]":o=24*n.D+n.H;break;case"[m]":case"[mm]":o=60*(24*n.D+n.H)+n.M;break;case"[s]":case"[ss]":o=60*(60*(24*n.D+n.H)+n.M)+Math.round(n.S+n.u);break;default:throw"bad abstime format: "+t}u=3===t.length?1:2;break;case 101:o=l,u=1}return u>0?Uo(o,u):""}function pi(e){if(e.length<=3)return e;for(var t=e.length%3,n=e.substr(0,t);t!=e.length;t+=3)n+=(n.length>0?",":"")+e.substr(t,3);return n}var di=/%/g;function hi(e,t){var n,r=e.indexOf("E")-e.indexOf(".")-1;if(e.match(/^#+0.0E\+0$/)){if(0==t)return"0.0E+0";if(t<0)return"-"+hi(e,-t);var o=e.indexOf(".");-1===o&&(o=e.indexOf("E"));var i=Math.floor(Math.log(t)*Math.LOG10E)%o;if(i<0&&(i+=o),-1===(n=(t/Math.pow(10,i)).toPrecision(r+1+(o+i)%o)).indexOf("e")){var s=Math.floor(Math.log(t)*Math.LOG10E);for(-1===n.indexOf(".")?n=n.charAt(0)+"."+n.substr(1)+"E+"+(s-n.length+i):n+="E+"+(s-i);"0."===n.substr(0,2);)n=(n=n.charAt(0)+n.substr(2,o)+"."+n.substr(2+o)).replace(/^0+([1-9])/,"$1").replace(/^0+\./,"0.");n=n.replace(/\+-/,"-")}n=n.replace(/^([+-]?)(\d*)\.(\d*)[Ee]/,(function(e,t,n,r){return t+n+r.substr(0,(o+i)%o)+"."+r.substr(i)+"E"}))}else n=t.toExponential(r);return e.match(/E\+00$/)&&n.match(/e[+-]\d$/)&&(n=n.substr(0,n.length-1)+"0"+n.charAt(n.length-1)),e.match(/E\-/)&&n.match(/e\+/)&&(n=n.replace(/e\+/,"e")),n.replace("e","E")}var fi=/# (\?+)( ?)\/( ?)(\d+)/,mi=/^#*0*\.([0#]+)/,gi=/\).*[0#]/,yi=/\(###\) ###\\?-####/;function vi(e){for(var t,n="",r=0;r!=e.length;++r)switch(t=e.charCodeAt(r)){case 35:break;case 63:n+=" ";break;case 48:n+="0";break;default:n+=String.fromCharCode(t)}return n}function bi(e,t){var n=Math.pow(10,t);return""+Math.round(e*n)/n}function Ci(e,t){var n=e-Math.floor(e),r=Math.pow(10,t);return t<(""+Math.round(n*r)).length?0:Math.round(n*r)}function wi(e,t,n){if(40===e.charCodeAt(0)&&!t.match(gi)){var r=t.replace(/\( */,"").replace(/ \)/,"").replace(/\)/,"");return n>=0?wi("n",r,n):"("+wi("n",r,-n)+")"}if(44===t.charCodeAt(t.length-1))return function(e,t,n){for(var r=t.length-1;44===t.charCodeAt(r-1);)--r;return Si(e,t.substr(0,r),n/Math.pow(10,3*(t.length-r)))}(e,t,n);if(-1!==t.indexOf("%"))return function(e,t,n){var r=t.replace(di,""),o=t.length-r.length;return Si(e,r,n*Math.pow(10,2*o))+ts("%",o)}(e,t,n);if(-1!==t.indexOf("E"))return hi(t,n);if(36===t.charCodeAt(0))return"$"+wi(e,t.substr(" "==t.charAt(1)?2:1),n);var o,i,s,a,l=Math.abs(n),u=n<0?"-":"";if(t.match(/^00+$/))return u+Jo(l,t.length);if(t.match(/^[#?]+$/))return"0"===(o=Jo(n,0))&&(o=""),o.length>t.length?o:vi(t.substr(0,t.length-o.length))+o;if(i=t.match(fi))return function(e,t,n){var r=parseInt(e[4],10),o=Math.round(t*r),i=Math.floor(o/r),s=o-i*r,a=r;return n+(0===i?"":""+i)+" "+(0===s?ts(" ",e[1].length+1+e[4].length):Wo(s,e[1].length)+e[2]+"/"+e[3]+Uo(a,e[4].length))}(i,l,u);if(t.match(/^#+0+$/))return u+Jo(l,t.length-t.indexOf("0"));if(i=t.match(mi))return o=bi(n,i[1].length).replace(/^([^\.]+)$/,"$1."+vi(i[1])).replace(/\.$/,"."+vi(i[1])).replace(/\.(\d*)$/,(function(e,t){return"."+t+ts("0",vi(i[1]).length-t.length)})),-1!==t.indexOf("0.")?o:o.replace(/^0\./,".");if(t=t.replace(/^#+([0.])/,"$1"),i=t.match(/^(0*)\.(#*)$/))return u+bi(l,i[2].length).replace(/\.(\d*[1-9])0*$/,".$1").replace(/^(-?\d*)$/,"$1.").replace(/^0\./,i[1].length?"0.":".");if(i=t.match(/^#{1,3},##0(\.?)$/))return u+pi(Jo(l,0));if(i=t.match(/^#,##0\.([#0]*0)$/))return n<0?"-"+wi(e,t,-n):pi(""+(Math.floor(n)+function(e,t){return t<(""+Math.round((e-Math.floor(e))*Math.pow(10,t))).length?1:0}(n,i[1].length)))+"."+Uo(Ci(n,i[1].length),i[1].length);if(i=t.match(/^#,#*,#0/))return wi(e,t.replace(/^#,#*,/,""),n);if(i=t.match(/^([0#]+)(\\?-([0#]+))+$/))return o=zo(wi(e,t.replace(/[\\-]/g,""),n)),s=0,zo(zo(t.replace(/\\/g,"")).replace(/[0#]/g,(function(e){return s<o.length?o.charAt(s++):"0"===e?"0":""})));if(t.match(yi))return"("+(o=wi(e,"##########",n)).substr(0,3)+") "+o.substr(3,3)+"-"+o.substr(6);var c="";if(i=t.match(/^([#0?]+)( ?)\/( ?)([#0?]+)/))return s=Math.min(i[4].length,7),a=ni(l,Math.pow(10,s)-1,!1),o=""+u," "==(c=Si("n",i[1],a[1])).charAt(c.length-1)&&(c=c.substr(0,c.length-1)+"0"),o+=c+i[2]+"/"+i[3],(c=Go(a[2],s)).length<i[4].length&&(c=vi(i[4].substr(i[4].length-c.length))+c),o+=c;if(i=t.match(/^# ([#0?]+)( ?)\/( ?)([#0?]+)/))return s=Math.min(Math.max(i[1].length,i[4].length),7),u+((a=ni(l,Math.pow(10,s)-1,!0))[0]||(a[1]?"":"0"))+" "+(a[1]?Wo(a[1],s)+i[2]+"/"+i[3]+Go(a[2],s):ts(" ",2*s+1+i[2].length+i[3].length));if(i=t.match(/^[#0?]+$/))return o=Jo(n,0),t.length<=o.length?o:vi(t.substr(0,t.length-o.length))+o;if(i=t.match(/^([#0?]+)\.([#0]+)$/)){o=""+n.toFixed(Math.min(i[2].length,10)).replace(/([^0])0+$/,"$1"),s=o.indexOf(".");var p=t.indexOf(".")-s,d=t.length-o.length-p;return vi(t.substr(0,p)+o+t.substr(t.length-d))}if(i=t.match(/^00,000\.([#0]*0)$/))return s=Ci(n,i[1].length),n<0?"-"+wi(e,t,-n):pi(function(e){return e<2147483647&&e>-2147483648?""+(e>=0?0|e:e-1|0):""+Math.floor(e)}(n)).replace(/^\d,\d{3}$/,"0$&").replace(/^\d*$/,(function(e){return"00,"+(e.length<3?Uo(0,3-e.length):"")+e}))+"."+Uo(s,i[1].length);switch(t){case"###,##0.00":return wi(e,"#,##0.00",n);case"###,###":case"##,###":case"#,###":var h=pi(Jo(l,0));return"0"!==h?u+h:"";case"###,###.00":return wi(e,"###,##0.00",n).replace(/^0\./,".");case"#,###.00":return wi(e,"#,##0.00",n).replace(/^0\./,".")}throw new Error("unsupported format |"+t+"|")}function xi(e,t){var n,r=e.indexOf("E")-e.indexOf(".")-1;if(e.match(/^#+0.0E\+0$/)){if(0==t)return"0.0E+0";if(t<0)return"-"+xi(e,-t);var o=e.indexOf(".");-1===o&&(o=e.indexOf("E"));var i=Math.floor(Math.log(t)*Math.LOG10E)%o;if(i<0&&(i+=o),!(n=(t/Math.pow(10,i)).toPrecision(r+1+(o+i)%o)).match(/[Ee]/)){var s=Math.floor(Math.log(t)*Math.LOG10E);-1===n.indexOf(".")?n=n.charAt(0)+"."+n.substr(1)+"E+"+(s-n.length+i):n+="E+"+(s-i),n=n.replace(/\+-/,"-")}n=n.replace(/^([+-]?)(\d*)\.(\d*)[Ee]/,(function(e,t,n,r){return t+n+r.substr(0,(o+i)%o)+"."+r.substr(i)+"E"}))}else n=t.toExponential(r);return e.match(/E\+00$/)&&n.match(/e[+-]\d$/)&&(n=n.substr(0,n.length-1)+"0"+n.charAt(n.length-1)),e.match(/E\-/)&&n.match(/e\+/)&&(n=n.replace(/e\+/,"e")),n.replace("e","E")}function Pi(e,t,n){if(40===e.charCodeAt(0)&&!t.match(gi)){var r=t.replace(/\( */,"").replace(/ \)/,"").replace(/\)/,"");return n>=0?Pi("n",r,n):"("+Pi("n",r,-n)+")"}if(44===t.charCodeAt(t.length-1))return function(e,t,n){for(var r=t.length-1;44===t.charCodeAt(r-1);)--r;return Si(e,t.substr(0,r),n/Math.pow(10,3*(t.length-r)))}(e,t,n);if(-1!==t.indexOf("%"))return function(e,t,n){var r=t.replace(di,""),o=t.length-r.length;return Si(e,r,n*Math.pow(10,2*o))+ts("%",o)}(e,t,n);if(-1!==t.indexOf("E"))return xi(t,n);if(36===t.charCodeAt(0))return"$"+Pi(e,t.substr(" "==t.charAt(1)?2:1),n);var o,i,s,a,l=Math.abs(n),u=n<0?"-":"";if(t.match(/^00+$/))return u+Uo(l,t.length);if(t.match(/^[#?]+$/))return o=""+n,0===n&&(o=""),o.length>t.length?o:vi(t.substr(0,t.length-o.length))+o;if(i=t.match(fi))return function(e,t,n){return n+(0===t?"":""+t)+ts(" ",e[1].length+2+e[4].length)}(i,l,u);if(t.match(/^#+0+$/))return u+Uo(l,t.length-t.indexOf("0"));if(i=t.match(mi))return o=(o=(""+n).replace(/^([^\.]+)$/,"$1."+vi(i[1])).replace(/\.$/,"."+vi(i[1]))).replace(/\.(\d*)$/,(function(e,t){return"."+t+ts("0",vi(i[1]).length-t.length)})),-1!==t.indexOf("0.")?o:o.replace(/^0\./,".");if(t=t.replace(/^#+([0.])/,"$1"),i=t.match(/^(0*)\.(#*)$/))return u+(""+l).replace(/\.(\d*[1-9])0*$/,".$1").replace(/^(-?\d*)$/,"$1.").replace(/^0\./,i[1].length?"0.":".");if(i=t.match(/^#{1,3},##0(\.?)$/))return u+pi(""+l);if(i=t.match(/^#,##0\.([#0]*0)$/))return n<0?"-"+Pi(e,t,-n):pi(""+n)+"."+ts("0",i[1].length);if(i=t.match(/^#,#*,#0/))return Pi(e,t.replace(/^#,#*,/,""),n);if(i=t.match(/^([0#]+)(\\?-([0#]+))+$/))return o=zo(Pi(e,t.replace(/[\\-]/g,""),n)),s=0,zo(zo(t.replace(/\\/g,"")).replace(/[0#]/g,(function(e){return s<o.length?o.charAt(s++):"0"===e?"0":""})));if(t.match(yi))return"("+(o=Pi(e,"##########",n)).substr(0,3)+") "+o.substr(3,3)+"-"+o.substr(6);var c="";if(i=t.match(/^([#0?]+)( ?)\/( ?)([#0?]+)/))return s=Math.min(i[4].length,7),a=ni(l,Math.pow(10,s)-1,!1),o=""+u," "==(c=Si("n",i[1],a[1])).charAt(c.length-1)&&(c=c.substr(0,c.length-1)+"0"),o+=c+i[2]+"/"+i[3],(c=Go(a[2],s)).length<i[4].length&&(c=vi(i[4].substr(i[4].length-c.length))+c),o+=c;if(i=t.match(/^# ([#0?]+)( ?)\/( ?)([#0?]+)/))return s=Math.min(Math.max(i[1].length,i[4].length),7),u+((a=ni(l,Math.pow(10,s)-1,!0))[0]||(a[1]?"":"0"))+" "+(a[1]?Wo(a[1],s)+i[2]+"/"+i[3]+Go(a[2],s):ts(" ",2*s+1+i[2].length+i[3].length));if(i=t.match(/^[#0?]+$/))return o=""+n,t.length<=o.length?o:vi(t.substr(0,t.length-o.length))+o;if(i=t.match(/^([#0]+)\.([#0]+)$/)){o=""+n.toFixed(Math.min(i[2].length,10)).replace(/([^0])0+$/,"$1"),s=o.indexOf(".");var p=t.indexOf(".")-s,d=t.length-o.length-p;return vi(t.substr(0,p)+o+t.substr(t.length-d))}if(i=t.match(/^00,000\.([#0]*0)$/))return n<0?"-"+Pi(e,t,-n):pi(""+n).replace(/^\d,\d{3}$/,"0$&").replace(/^\d*$/,(function(e){return"00,"+(e.length<3?Uo(0,3-e.length):"")+e}))+"."+Uo(0,i[1].length);switch(t){case"###,###":case"##,###":case"#,###":var h=pi(""+l);return"0"!==h?u+h:"";default:if(t.match(/\.[0#?]*$/))return Pi(e,t.slice(0,t.lastIndexOf(".")),n)+vi(t.slice(t.lastIndexOf(".")))}throw new Error("unsupported format |"+t+"|")}function Si(e,t,n){return(0|n)===n?Pi(e,t,n):wi(e,t,n)}var Ei=/\[[HhMmSs\u0E0A\u0E19\u0E17]*\]/;function Ti(e){for(var t=0,n="",r="";t<e.length;)switch(n=e.charAt(t)){case"G":Ko(e,t)&&(t+=6),t++;break;case'"':for(;34!==e.charCodeAt(++t)&&t<e.length;);++t;break;case"\\":case"_":t+=2;break;case"@":++t;break;case"B":case"b":if("1"===e.charAt(t+1)||"2"===e.charAt(t+1))return!0;case"M":case"D":case"Y":case"H":case"S":case"E":case"m":case"d":case"y":case"h":case"s":case"e":case"g":return!0;case"A":case"a":case"上":if("A/P"===e.substr(t,3).toUpperCase())return!0;if("AM/PM"===e.substr(t,5).toUpperCase())return!0;if("上午/下午"===e.substr(t,5).toUpperCase())return!0;++t;break;case"[":for(r=n;"]"!==e.charAt(t++)&&t<e.length;)r+=e.charAt(t);if(r.match(Ei))return!0;break;case".":case"0":case"#":for(;t<e.length&&("0#?.,E+-%".indexOf(n=e.charAt(++t))>-1||"\\"==n&&"-"==e.charAt(t+1)&&"0#".indexOf(e.charAt(t+2))>-1););break;case"?":for(;e.charAt(++t)===n;);break;case"*":++t," "!=e.charAt(t)&&"*"!=e.charAt(t)||++t;break;case"(":case")":++t;break;case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":for(;t<e.length&&"0123456789".indexOf(e.charAt(++t))>-1;);break;default:++t}return!1}var Oi=/\[(=|>[=]?|<[>=]?)(-?\d+(?:\.\d*)?)\]/;function Vi(e,t){if(null==t)return!1;var n=parseFloat(t[2]);switch(t[1]){case"=":if(e==n)return!0;break;case">":if(e>n)return!0;break;case"<":if(e<n)return!0;break;case"<>":if(e!=n)return!0;break;case">=":if(e>=n)return!0;break;case"<=":if(e<=n)return!0}return!1}function _i(e,t,n){null==n&&(n={});var r="";switch(typeof e){case"string":r="m/d/yy"==e&&n.dateNF?n.dateNF:e;break;case"number":null==(r=14==e&&n.dateNF?n.dateNF:(null!=n.table?n.table:Zo)[e])&&(r=n.table&&n.table[ei[e]]||Zo[ei[e]]),null==r&&(r=ti[e]||"General")}if(Ko(r,0))return ui(t,n);t instanceof Date&&(t=ai(t,n.date1904));var o=function(e,t){var n=function(e){for(var t=[],n=!1,r=0,o=0;r<e.length;++r)switch(e.charCodeAt(r)){case 34:n=!n;break;case 95:case 42:case 92:++r;break;case 59:t[t.length]=e.substr(o,r-o),o=r+1}if(t[t.length]=e.substr(o),!0===n)throw new Error("Format |"+e+"| unterminated string ");return t}(e),r=n.length,o=n[r-1].indexOf("@");if(r<4&&o>-1&&--r,n.length>4)throw new Error("cannot find right format for |"+n.join("|")+"|");if("number"!=typeof t)return[4,4===n.length||o>-1?n[n.length-1]:"@"];switch(n.length){case 1:n=o>-1?["General","General","General",n[0]]:[n[0],n[0],n[0],"@"];break;case 2:n=o>-1?[n[0],n[0],n[0],n[1]]:[n[0],n[1],n[0],"@"];break;case 3:n=o>-1?[n[0],n[1],n[0],n[2]]:[n[0],n[1],n[2],"@"]}var i=t>0?n[0]:t<0?n[1]:n[2];if(-1===n[0].indexOf("[")&&-1===n[1].indexOf("["))return[r,i];if(null!=n[0].match(/\[[=<>]/)||null!=n[1].match(/\[[=<>]/)){var s=n[0].match(Oi),a=n[1].match(Oi);return Vi(t,s)?[r,n[0]]:Vi(t,a)?[r,n[1]]:[r,n[null!=s&&null!=a?2:1]]}return[r,i]}(r,t);if(Ko(o[1]))return ui(t,n);if(!0===t)t="TRUE";else if(!1===t)t="FALSE";else if(""===t||null==t)return"";return function(e,t,n,r){for(var o,i,s,a=[],l="",u=0,c="",p="t",d="H";u<e.length;)switch(c=e.charAt(u)){case"G":if(!Ko(e,u))throw new Error("unrecognized character "+c+" in "+e);a[a.length]={t:"G",v:"General"},u+=7;break;case'"':for(l="";34!==(s=e.charCodeAt(++u))&&u<e.length;)l+=String.fromCharCode(s);a[a.length]={t:"t",v:l},++u;break;case"\\":var h=e.charAt(++u),f="("===h||")"===h?h:"t";a[a.length]={t:f,v:h},++u;break;case"_":a[a.length]={t:"t",v:" "},u+=2;break;case"@":a[a.length]={t:"T",v:t},++u;break;case"B":case"b":if("1"===e.charAt(u+1)||"2"===e.charAt(u+1)){if(null==o&&null==(o=ri(t,n,"2"===e.charAt(u+1))))return"";a[a.length]={t:"X",v:e.substr(u,2)},p=c,u+=2;break}case"M":case"D":case"Y":case"H":case"S":case"E":c=c.toLowerCase();case"m":case"d":case"y":case"h":case"s":case"e":case"g":if(t<0)return"";if(null==o&&null==(o=ri(t,n)))return"";for(l=c;++u<e.length&&e.charAt(u).toLowerCase()===c;)l+=c;"m"===c&&"h"===p.toLowerCase()&&(c="M"),"h"===c&&(c=d),a[a.length]={t:c,v:l},p=c;break;case"A":case"a":case"上":var m={t:c,v:c};if(null==o&&(o=ri(t,n)),"A/P"===e.substr(u,3).toUpperCase()?(null!=o&&(m.v=o.H>=12?"P":"A"),m.t="T",d="h",u+=3):"AM/PM"===e.substr(u,5).toUpperCase()?(null!=o&&(m.v=o.H>=12?"PM":"AM"),m.t="T",u+=5,d="h"):"上午/下午"===e.substr(u,5).toUpperCase()?(null!=o&&(m.v=o.H>=12?"下午":"上午"),m.t="T",u+=5,d="h"):(m.t="t",++u),null==o&&"T"===m.t)return"";a[a.length]=m,p=c;break;case"[":for(l=c;"]"!==e.charAt(u++)&&u<e.length;)l+=e.charAt(u);if("]"!==l.slice(-1))throw'unterminated "[" block: |'+l+"|";if(l.match(Ei)){if(null==o&&null==(o=ri(t,n)))return"";a[a.length]={t:"Z",v:l.toLowerCase()},p=l.charAt(1)}else l.indexOf("$")>-1&&(l=(l.match(/\$([^-\[\]]*)/)||[])[1]||"$",Ti(e)||(a[a.length]={t:"t",v:l}));break;case".":if(null!=o){for(l=c;++u<e.length&&"0"===(c=e.charAt(u));)l+=c;a[a.length]={t:"s",v:l};break}case"0":case"#":for(l=c;++u<e.length&&"0#?.,E+-%".indexOf(c=e.charAt(u))>-1;)l+=c;a[a.length]={t:"n",v:l};break;case"?":for(l=c;e.charAt(++u)===c;)l+=c;a[a.length]={t:c,v:l},p=c;break;case"*":++u," "!=e.charAt(u)&&"*"!=e.charAt(u)||++u;break;case"(":case")":a[a.length]={t:1===r?"t":c,v:c},++u;break;case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":for(l=c;u<e.length&&"0123456789".indexOf(e.charAt(++u))>-1;)l+=e.charAt(u);a[a.length]={t:"D",v:l};break;case" ":a[a.length]={t:c,v:c},++u;break;case"$":a[a.length]={t:"t",v:"$"},++u;break;default:if(-1===",$-+/():!^&'~{}<>=€acfijklopqrtuvwxzP".indexOf(c))throw new Error("unrecognized character "+c+" in "+e);a[a.length]={t:"t",v:c},++u}var g,y=0,v=0;for(u=a.length-1,p="t";u>=0;--u)switch(a[u].t){case"h":case"H":a[u].t=d,p="h",y<1&&(y=1);break;case"s":(g=a[u].v.match(/\.0+$/))&&(v=Math.max(v,g[0].length-1)),y<3&&(y=3);case"d":case"y":case"M":case"e":p=a[u].t;break;case"m":"s"===p&&(a[u].t="M",y<2&&(y=2));break;case"X":break;case"Z":y<1&&a[u].v.match(/[Hh]/)&&(y=1),y<2&&a[u].v.match(/[Mm]/)&&(y=2),y<3&&a[u].v.match(/[Ss]/)&&(y=3)}switch(y){case 0:break;case 1:o.u>=.5&&(o.u=0,++o.S),o.S>=60&&(o.S=0,++o.M),o.M>=60&&(o.M=0,++o.H);break;case 2:o.u>=.5&&(o.u=0,++o.S),o.S>=60&&(o.S=0,++o.M)}var b,C="";for(u=0;u<a.length;++u)switch(a[u].t){case"t":case"T":case" ":case"D":break;case"X":a[u].v="",a[u].t=";";break;case"d":case"m":case"y":case"h":case"H":case"M":case"s":case"e":case"b":case"Z":a[u].v=ci(a[u].t.charCodeAt(0),a[u].v,o,v),a[u].t="t";break;case"n":case"?":for(b=u+1;null!=a[b]&&("?"===(c=a[b].t)||"D"===c||(" "===c||"t"===c)&&null!=a[b+1]&&("?"===a[b+1].t||"t"===a[b+1].t&&"/"===a[b+1].v)||"("===a[u].t&&(" "===c||"n"===c||")"===c)||"t"===c&&("/"===a[b].v||" "===a[b].v&&null!=a[b+1]&&"?"==a[b+1].t));)a[u].v+=a[b].v,a[b]={v:"",t:";"},++b;C+=a[u].v,u=b-1;break;case"G":a[u].t="t",a[u].v=ui(t,n)}var w,x,P="";if(C.length>0){40==C.charCodeAt(0)?(w=t<0&&45===C.charCodeAt(0)?-t:t,x=Si("n",C,w)):(x=Si("n",C,w=t<0&&r>1?-t:t),w<0&&a[0]&&"t"==a[0].t&&(x=x.substr(1),a[0].v="-"+a[0].v)),b=x.length-1;var S=a.length;for(u=0;u<a.length;++u)if(null!=a[u]&&"t"!=a[u].t&&a[u].v.indexOf(".")>-1){S=u;break}var E=a.length;if(S===a.length&&-1===x.indexOf("E")){for(u=a.length-1;u>=0;--u)null!=a[u]&&-1!=="n?".indexOf(a[u].t)&&(b>=a[u].v.length-1?(b-=a[u].v.length,a[u].v=x.substr(b+1,a[u].v.length)):b<0?a[u].v="":(a[u].v=x.substr(0,b+1),b=-1),a[u].t="t",E=u);b>=0&&E<a.length&&(a[E].v=x.substr(0,b+1)+a[E].v)}else if(S!==a.length&&-1===x.indexOf("E")){for(b=x.indexOf(".")-1,u=S;u>=0;--u)if(null!=a[u]&&-1!=="n?".indexOf(a[u].t)){for(i=a[u].v.indexOf(".")>-1&&u===S?a[u].v.indexOf(".")-1:a[u].v.length-1,P=a[u].v.substr(i+1);i>=0;--i)b>=0&&("0"===a[u].v.charAt(i)||"#"===a[u].v.charAt(i))&&(P=x.charAt(b--)+P);a[u].v=P,a[u].t="t",E=u}for(b>=0&&E<a.length&&(a[E].v=x.substr(0,b+1)+a[E].v),b=x.indexOf(".")+1,u=S;u<a.length;++u)if(null!=a[u]&&(-1!=="n?(".indexOf(a[u].t)||u===S)){for(i=a[u].v.indexOf(".")>-1&&u===S?a[u].v.indexOf(".")+1:0,P=a[u].v.substr(0,i);i<a[u].v.length;++i)b<x.length&&(P+=x.charAt(b++));a[u].v=P,a[u].t="t",E=u}}}for(u=0;u<a.length;++u)null!=a[u]&&"n?".indexOf(a[u].t)>-1&&(w=r>1&&t<0&&u>0&&"-"===a[u-1].v?-t:t,a[u].v=Si(a[u].t,a[u].v,w),a[u].t="t");var T="";for(u=0;u!==a.length;++u)null!=a[u]&&(T+=a[u].v);return T}(o[1],t,n,o[0])}function Ri(e,t){if("number"!=typeof t){t=+t||-1;for(var n=0;n<392;++n)if(null!=Zo[n]){if(Zo[n]==e){t=n;break}}else t<0&&(t=n);t<0&&(t=391)}return Zo[t]=e,t}function Ii(e){for(var t=0;392!=t;++t)void 0!==e[t]&&Ri(e[t],t)}function Di(){Zo=function(e){return e||(e={}),e[0]="General",e[1]="0",e[2]="0.00",e[3]="#,##0",e[4]="#,##0.00",e[9]="0%",e[10]="0.00%",e[11]="0.00E+00",e[12]="# ?/?",e[13]="# ??/??",e[14]="m/d/yy",e[15]="d-mmm-yy",e[16]="d-mmm",e[17]="mmm-yy",e[18]="h:mm AM/PM",e[19]="h:mm:ss AM/PM",e[20]="h:mm",e[21]="h:mm:ss",e[22]="m/d/yy h:mm",e[37]="#,##0 ;(#,##0)",e[38]="#,##0 ;[Red](#,##0)",e[39]="#,##0.00;(#,##0.00)",e[40]="#,##0.00;[Red](#,##0.00)",e[45]="mm:ss",e[46]="[h]:mm:ss",e[47]="mmss.0",e[48]="##0.0E+0",e[49]="@",e[56]='"上午/下午 "hh"時"mm"分"ss"秒 "',e}()}var Ai=/[dD]+|[mM]+|[yYeE]+|[Hh]+|[Ss]+/g,ki=function(){var e={version:"1.2.0"},t=function(){for(var e=0,t=new Array(256),n=0;256!=n;++n)e=1&(e=1&(e=1&(e=1&(e=1&(e=1&(e=1&(e=1&(e=n)?-306674912^e>>>1:e>>>1)?-306674912^e>>>1:e>>>1)?-306674912^e>>>1:e>>>1)?-306674912^e>>>1:e>>>1)?-306674912^e>>>1:e>>>1)?-306674912^e>>>1:e>>>1)?-306674912^e>>>1:e>>>1)?-306674912^e>>>1:e>>>1,t[n]=e;return"undefined"!=typeof Int32Array?new Int32Array(t):t}(),n=function(e){var t=0,n=0,r=0,o="undefined"!=typeof Int32Array?new Int32Array(4096):new Array(4096);for(r=0;256!=r;++r)o[r]=e[r];for(r=0;256!=r;++r)for(n=e[r],t=256+r;t<4096;t+=256)n=o[t]=n>>>8^e[255&n];var i=[];for(r=1;16!=r;++r)i[r-1]="undefined"!=typeof Int32Array?o.subarray(256*r,256*r+256):o.slice(256*r,256*r+256);return i}(t),r=n[0],o=n[1],i=n[2],s=n[3],a=n[4],l=n[5],u=n[6],c=n[7],p=n[8],d=n[9],h=n[10],f=n[11],m=n[12],g=n[13],y=n[14];return e.table=t,e.bstr=function(e,n){for(var r=-1^n,o=0,i=e.length;o<i;)r=r>>>8^t[255&(r^e.charCodeAt(o++))];return~r},e.buf=function(e,n){for(var v=-1^n,b=e.length-15,C=0;C<b;)v=y[e[C++]^255&v]^g[e[C++]^v>>8&255]^m[e[C++]^v>>16&255]^f[e[C++]^v>>>24]^h[e[C++]]^d[e[C++]]^p[e[C++]]^c[e[C++]]^u[e[C++]]^l[e[C++]]^a[e[C++]]^s[e[C++]]^i[e[C++]]^o[e[C++]]^r[e[C++]]^t[e[C++]];for(b+=15;C<b;)v=v>>>8^t[255&(v^e[C++])];return~v},e.str=function(e,n){for(var r=-1^n,o=0,i=e.length,s=0,a=0;o<i;)(s=e.charCodeAt(o++))<128?r=r>>>8^t[255&(r^s)]:s<2048?r=(r=r>>>8^t[255&(r^(192|s>>6&31))])>>>8^t[255&(r^(128|63&s))]:s>=55296&&s<57344?(s=64+(1023&s),a=1023&e.charCodeAt(o++),r=(r=(r=(r=r>>>8^t[255&(r^(240|s>>8&7))])>>>8^t[255&(r^(128|s>>2&63))])>>>8^t[255&(r^(128|a>>6&15|(3&s)<<4))])>>>8^t[255&(r^(128|63&a))]):r=(r=(r=r>>>8^t[255&(r^(224|s>>12&15))])>>>8^t[255&(r^(128|s>>6&63))])>>>8^t[255&(r^(128|63&s))];return~r},e}(),Mi=function(){var e,t={};function n(e){if("/"==e.charAt(e.length-1))return-1===e.slice(0,-1).indexOf("/")?e:n(e.slice(0,-1));var t=e.lastIndexOf("/");return-1===t?e:e.slice(0,t+1)}function r(e){if("/"==e.charAt(e.length-1))return r(e.slice(0,-1));var t=e.lastIndexOf("/");return-1===t?e:e.slice(t+1)}function o(e,t){"string"==typeof t&&(t=new Date(t));var n=t.getHours();n=(n=n<<6|t.getMinutes())<<5|t.getSeconds()>>>1,e.write_shift(2,n);var r=t.getFullYear()-1980;r=(r=r<<4|t.getMonth()+1)<<5|t.getDate(),e.write_shift(2,r)}function i(e){la(e,0);for(var t={},n=0;e.l<=e.length-4;){var r=e.read_shift(2),o=e.read_shift(2),i=e.l+o,s={};21589===r&&(1&(n=e.read_shift(1))&&(s.mtime=e.read_shift(4)),o>5&&(2&n&&(s.atime=e.read_shift(4)),4&n&&(s.ctime=e.read_shift(4))),s.mtime&&(s.mt=new Date(1e3*s.mtime))),e.l=i,t[r]=s}return t}function s(){return e||(e={})}function a(e,t){if(80==e[0]&&75==e[1])return ne(e,t);if(109==(32|e[0])&&105==(32|e[1]))return function(e,t){if("mime-version:"!=x(e.slice(0,13)).toLowerCase())throw new Error("Unsupported MAD header");var n=t&&t.root||"",r=(ko&&Buffer.isBuffer(e)?e.toString("binary"):x(e)).split("\r\n"),o=0,i="";for(o=0;o<r.length;++o)if(i=r[o],/^Content-Location:/i.test(i)&&(i=i.slice(i.indexOf("file")),n||(n=i.slice(0,i.lastIndexOf("/")+1)),i.slice(0,n.length)!=n))for(;n.length>0&&(n=(n=n.slice(0,n.length-1)).slice(0,n.lastIndexOf("/")+1),i.slice(0,n.length)!=n););var s=(r[1]||"").match(/boundary="(.*?)"/);if(!s)throw new Error("MAD cannot find boundary");var a="--"+(s[1]||""),l={FileIndex:[],FullPaths:[]};d(l);var u,c=0;for(o=0;o<r.length;++o){var p=r[o];p!==a&&p!==a+"--"||(c++&&le(l,r.slice(u,o),n),u=o)}return l}(e,t);if(e.length<512)throw new Error("CFB file size "+e.length+" < 512");var n,r,o,i,s,a,h=512,f=[],m=e.slice(0,512);la(m,0);var g=function(e){if(80==e[e.l]&&75==e[e.l+1])return[0,0];e.chk(v,"Header Signature: "),e.l+=16;var t=e.read_shift(2,"u");return[e.read_shift(2,"u"),t]}(m);switch(n=g[0]){case 3:h=512;break;case 4:h=4096;break;case 0:if(0==g[1])return ne(e,t);default:throw new Error("Major Version: Expected 3 or 4 saw "+n)}512!==h&&la(m=e.slice(0,h),28);var b=e.slice(0,h);!function(e,t){var n;switch(e.l+=2,n=e.read_shift(2)){case 9:if(3!=t)throw new Error("Sector Shift: Expected 9 saw "+n);break;case 12:if(4!=t)throw new Error("Sector Shift: Expected 12 saw "+n);break;default:throw new Error("Sector Shift: Expected 9 or 12 saw "+n)}e.chk("0600","Mini Sector Shift: "),e.chk("000000000000","Reserved: ")}(m,n);var C=m.read_shift(4,"i");if(3===n&&0!==C)throw new Error("# Directory Sectors: Expected 0 saw "+C);m.l+=4,i=m.read_shift(4,"i"),m.l+=4,m.chk("00100000","Mini Stream Cutoff Size: "),s=m.read_shift(4,"i"),r=m.read_shift(4,"i"),a=m.read_shift(4,"i"),o=m.read_shift(4,"i");for(var w=-1,P=0;P<109&&!((w=m.read_shift(4,"i"))<0);++P)f[P]=w;var S=function(e,t){for(var n=Math.ceil(e.length/t)-1,r=[],o=1;o<n;++o)r[o-1]=e.slice(o*t,(o+1)*t);return r[n-1]=e.slice(n*t),r}(e,h);u(a,o,S,h,f);var E=function(e,t,n,r){var o=e.length,i=[],s=[],a=[],l=[],u=r-1,c=0,p=0,d=0,h=0;for(c=0;c<o;++c)if(a=[],(d=c+t)>=o&&(d-=o),!s[d]){l=[];var f=[];for(p=d;p>=0;){f[p]=!0,s[p]=!0,a[a.length]=p,l.push(e[p]);var m=n[Math.floor(4*p/r)];if(r<4+(h=4*p&u))throw new Error("FAT boundary crossed: "+p+" 4 "+r);if(!e[m])break;if(f[p=ea(e[m],h)])break}i[d]={nodes:a,data:Rs([l])}}return i}(S,i,f,h);E[i].name="!Directory",r>0&&s!==y&&(E[s].name="!MiniFAT"),E[f[0]].name="!FAT",E.fat_addrs=f,E.ssz=h;var T=[],O=[],V=[];!function(e,t,n,r,o,i,s,a){for(var u,d=0,h=r.length?2:0,f=t[e].data,m=0,g=0;m<f.length;m+=128){var v=f.slice(m,m+128);la(v,64),g=v.read_shift(2),u=Ds(v,0,g-h),r.push(u);var b={name:u,type:v.read_shift(1),color:v.read_shift(1),L:v.read_shift(4,"i"),R:v.read_shift(4,"i"),C:v.read_shift(4,"i"),clsid:v.read_shift(16),state:v.read_shift(4,"i"),start:0,size:0};0!==v.read_shift(2)+v.read_shift(2)+v.read_shift(2)+v.read_shift(2)&&(b.ct=p(v,v.l-8)),0!==v.read_shift(2)+v.read_shift(2)+v.read_shift(2)+v.read_shift(2)&&(b.mt=p(v,v.l-8)),b.start=v.read_shift(4,"i"),b.size=v.read_shift(4,"i"),b.size<0&&b.start<0&&(b.size=b.type=0,b.start=y,b.name=""),5===b.type?(d=b.start,o>0&&d!==y&&(t[d].name="!StreamData")):b.size>=4096?(b.storage="fat",void 0===t[b.start]&&(t[b.start]=c(n,b.start,t.fat_addrs,t.ssz)),t[b.start].name=b.name,b.content=t[b.start].data.slice(0,b.size)):(b.storage="minifat",b.size<0?b.size=0:d!==y&&b.start!==y&&t[d]&&(b.content=l(b,t[d].data,(t[a]||{}).data))),b.content&&la(b.content,0),i[u]=b,s.push(b)}}(i,E,S,T,r,{},O,s),function(e,t,n){for(var r=0,o=0,i=0,s=0,a=0,l=n.length,u=[],c=[];r<l;++r)u[r]=c[r]=r,t[r]=n[r];for(;a<c.length;++a)o=e[r=c[a]].L,i=e[r].R,s=e[r].C,u[r]===r&&(-1!==o&&u[o]!==o&&(u[r]=u[o]),-1!==i&&u[i]!==i&&(u[r]=u[i])),-1!==s&&(u[s]=r),-1!==o&&r!=u[r]&&(u[o]=u[r],c.lastIndexOf(o)<a&&c.push(o)),-1!==i&&r!=u[r]&&(u[i]=u[r],c.lastIndexOf(i)<a&&c.push(i));for(r=1;r<l;++r)u[r]===r&&(-1!==i&&u[i]!==i?u[r]=u[i]:-1!==o&&u[o]!==o&&(u[r]=u[o]));for(r=1;r<l;++r)if(0!==e[r].type){if((a=r)!=u[a])do{a=u[a],t[r]=t[a]+"/"+t[r]}while(0!==a&&-1!==u[a]&&a!=u[a]);u[r]=-1}for(t[0]+="/",r=1;r<l;++r)2!==e[r].type&&(t[r]+="/")}(O,V,T),T.shift();var _={FileIndex:O,FullPaths:V};return t&&t.raw&&(_.raw={header:b,sectors:S}),_}function l(e,t,n){for(var r=e.start,o=e.size,i=[],s=r;n&&o>0&&s>=0;)i.push(t.slice(s*g,s*g+g)),o-=g,s=ea(n,4*s);return 0===i.length?ca(0):Bo(i).slice(0,e.size)}function u(e,t,n,r,o){var i=y;if(e===y){if(0!==t)throw new Error("DIFAT chain shorter than expected")}else if(-1!==e){var s=n[e],a=(r>>>2)-1;if(!s)return;for(var l=0;l<a&&(i=ea(s,4*l))!==y;++l)o.push(i);u(ea(s,r-4),t-1,n,r,o)}}function c(e,t,n,r,o){var i=[],s=[];o||(o=[]);var a=r-1,l=0,u=0;for(l=t;l>=0;){o[l]=!0,i[i.length]=l,s.push(e[l]);var c=n[Math.floor(4*l/r)];if(r<4+(u=4*l&a))throw new Error("FAT boundary crossed: "+l+" 4 "+r);if(!e[c])break;l=ea(e[c],u)}return{nodes:i,data:Rs([s])}}function p(e,t){return new Date(1e3*(Zs(e,t+4)/1e7*Math.pow(2,32)+Zs(e,t)/1e7-11644473600))}function d(e,t){var n=t||{},r=n.root||"Root Entry";if(e.FullPaths||(e.FullPaths=[]),e.FileIndex||(e.FileIndex=[]),e.FullPaths.length!==e.FileIndex.length)throw new Error("inconsistent CFB structure");0===e.FullPaths.length&&(e.FullPaths[0]=r+"/",e.FileIndex[0]={name:r,type:5}),n.CLSID&&(e.FileIndex[0].clsid=n.CLSID),function(e){var t="Sh33tJ5";if(!Mi.find(e,"/"+t)){var n=ca(4);n[0]=55,n[1]=n[3]=50,n[2]=54,e.FileIndex.push({name:t,type:2,content:n,size:4,L:69,R:69,C:69}),e.FullPaths.push(e.FullPaths[0]+t),h(e)}}(e)}function h(e,t){d(e);for(var o=!1,i=!1,s=e.FullPaths.length-1;s>=0;--s){var a=e.FileIndex[s];switch(a.type){case 0:i?o=!0:(e.FileIndex.pop(),e.FullPaths.pop());break;case 1:case 2:case 5:i=!0,isNaN(a.R*a.L*a.C)&&(o=!0),a.R>-1&&a.L>-1&&a.R==a.L&&(o=!0);break;default:o=!0}}if(o||t){var l=new Date(1987,1,19),u=0,c=Object.create?Object.create(null):{},p=[];for(s=0;s<e.FullPaths.length;++s)c[e.FullPaths[s]]=!0,0!==e.FileIndex[s].type&&p.push([e.FullPaths[s],e.FileIndex[s]]);for(s=0;s<p.length;++s){var h=n(p[s][0]);(i=c[h])||(p.push([h,{name:r(h).replace("/",""),type:1,clsid:C,ct:l,mt:l,content:null}]),c[h]=!0)}for(p.sort((function(e,t){return function(e,t){for(var n=e.split("/"),r=t.split("/"),o=0,i=0,s=Math.min(n.length,r.length);o<s;++o){if(i=n[o].length-r[o].length)return i;if(n[o]!=r[o])return n[o]<r[o]?-1:1}return n.length-r.length}(e[0],t[0])})),e.FullPaths=[],e.FileIndex=[],s=0;s<p.length;++s)e.FullPaths[s]=p[s][0],e.FileIndex[s]=p[s][1];for(s=0;s<p.length;++s){var f=e.FileIndex[s],m=e.FullPaths[s];if(f.name=r(m).replace("/",""),f.L=f.R=f.C=-(f.color=1),f.size=f.content?f.content.length:0,f.start=0,f.clsid=f.clsid||C,0===s)f.C=p.length>1?1:-1,f.size=0,f.type=5;else if("/"==m.slice(-1)){for(u=s+1;u<p.length&&n(e.FullPaths[u])!=m;++u);for(f.C=u>=p.length?-1:u,u=s+1;u<p.length&&n(e.FullPaths[u])!=n(m);++u);f.R=u>=p.length?-1:u,f.type=1}else n(e.FullPaths[s+1]||"")==n(m)&&(f.R=s+1),f.type=2}}}function f(e,t){var n=t||{};if("mad"==n.fileType)return function(e,t){for(var n=t||{},r=n.boundary||"SheetJS",o=["MIME-Version: 1.0",'Content-Type: multipart/related; boundary="'+(r="------="+r).slice(2)+'"',"","",""],i=e.FullPaths[0],s=i,a=e.FileIndex[0],l=1;l<e.FullPaths.length;++l)if(s=e.FullPaths[l].slice(i.length),(a=e.FileIndex[l]).size&&a.content&&"Sh33tJ5"!=s){s=s.replace(/[\x00-\x08\x0B\x0C\x0E-\x1F\x7E-\xFF]/g,(function(e){return"_x"+e.charCodeAt(0).toString(16)+"_"})).replace(/[\u0080-\uFFFF]/g,(function(e){return"_u"+e.charCodeAt(0).toString(16)+"_"}));for(var u=a.content,c=ko&&Buffer.isBuffer(u)?u.toString("binary"):x(u),p=0,d=Math.min(1024,c.length),h=0,f=0;f<=d;++f)(h=c.charCodeAt(f))>=32&&h<128&&++p;var m=p>=4*d/5;o.push(r),o.push("Content-Location: "+(n.root||"file:///C:/SheetJS/")+s),o.push("Content-Transfer-Encoding: "+(m?"quoted-printable":"base64")),o.push("Content-Type: "+ie(a,s)),o.push(""),o.push(m?ae(c):se(c))}return o.push(r+"--\r\n"),o.join("\r\n")}(e,n);if(h(e),"zip"===n.fileType)return function(e,t){var n,r=t||{},i=[],s=[],a=ca(1),l=r.compression?8:0,u=0,c=0,p=0,d=0,h=e.FullPaths[0],f=h,g=e.FileIndex[0],y=[],v=0;for(u=1;u<e.FullPaths.length;++u)if(f=e.FullPaths[u].slice(h.length),(g=e.FileIndex[u]).size&&g.content&&"Sh33tJ5"!=f){var b=p,C=ca(f.length);for(c=0;c<f.length;++c)C.write_shift(1,127&f.charCodeAt(c));C=C.slice(0,C.l),y[d]=ki.buf(g.content,0);var w=g.content;8==l&&(n=w,w=m?m.deflateRawSync(n):G(n)),(a=ca(30)).write_shift(4,67324752),a.write_shift(2,20),a.write_shift(2,0),a.write_shift(2,l),g.mt?o(a,g.mt):a.write_shift(4,0),a.write_shift(-4,y[d]),a.write_shift(4,w.length),a.write_shift(4,g.content.length),a.write_shift(2,C.length),a.write_shift(2,0),p+=a.length,i.push(a),p+=C.length,i.push(C),p+=w.length,i.push(w),(a=ca(46)).write_shift(4,33639248),a.write_shift(2,0),a.write_shift(2,20),a.write_shift(2,0),a.write_shift(2,l),a.write_shift(4,0),a.write_shift(-4,y[d]),a.write_shift(4,w.length),a.write_shift(4,g.content.length),a.write_shift(2,C.length),a.write_shift(2,0),a.write_shift(2,0),a.write_shift(2,0),a.write_shift(2,0),a.write_shift(4,0),a.write_shift(4,b),v+=a.l,s.push(a),v+=C.length,s.push(C),++d}return(a=ca(22)).write_shift(4,101010256),a.write_shift(2,0),a.write_shift(2,0),a.write_shift(2,d),a.write_shift(2,d),a.write_shift(4,v),a.write_shift(4,p),a.write_shift(2,0),Bo([Bo(i),Bo(s),a])}(e,n);var r=function(e){for(var t=0,n=0,r=0;r<e.FileIndex.length;++r){var o=e.FileIndex[r];if(o.content){var i=o.content.length;i>0&&(i<4096?t+=i+63>>6:n+=i+511>>9)}}for(var s=e.FullPaths.length+3>>2,a=t+127>>7,l=(t+7>>3)+n+s+a,u=l+127>>7,c=u<=109?0:Math.ceil((u-109)/127);l+u+c+127>>7>u;)c=++u<=109?0:Math.ceil((u-109)/127);var p=[1,c,u,a,s,n,t,0];return e.FileIndex[0].size=t<<6,p[7]=(e.FileIndex[0].start=p[0]+p[1]+p[2]+p[3]+p[4]+p[5])+(p[6]+7>>3),p}(e),i=ca(r[7]<<9),s=0,a=0;for(s=0;s<8;++s)i.write_shift(1,b[s]);for(s=0;s<8;++s)i.write_shift(2,0);for(i.write_shift(2,62),i.write_shift(2,3),i.write_shift(2,65534),i.write_shift(2,9),i.write_shift(2,6),s=0;s<3;++s)i.write_shift(2,0);for(i.write_shift(4,0),i.write_shift(4,r[2]),i.write_shift(4,r[0]+r[1]+r[2]+r[3]-1),i.write_shift(4,0),i.write_shift(4,4096),i.write_shift(4,r[3]?r[0]+r[1]+r[2]-1:y),i.write_shift(4,r[3]),i.write_shift(-4,r[1]?r[0]-1:y),i.write_shift(4,r[1]),s=0;s<109;++s)i.write_shift(-4,s<r[2]?r[1]+s:-1);if(r[1])for(a=0;a<r[1];++a){for(;s<236+127*a;++s)i.write_shift(-4,s<r[2]?r[1]+s:-1);i.write_shift(-4,a===r[1]-1?y:a+1)}var l=function(e){for(a+=e;s<a-1;++s)i.write_shift(-4,s+1);e&&(++s,i.write_shift(-4,y))};for(a=s=0,a+=r[1];s<a;++s)i.write_shift(-4,w.DIFSECT);for(a+=r[2];s<a;++s)i.write_shift(-4,w.FATSECT);l(r[3]),l(r[4]);for(var u=0,c=0,p=e.FileIndex[0];u<e.FileIndex.length;++u)(p=e.FileIndex[u]).content&&((c=p.content.length)<4096||(p.start=a,l(c+511>>9)));for(l(r[6]+7>>3);511&i.l;)i.write_shift(-4,w.ENDOFCHAIN);for(a=s=0,u=0;u<e.FileIndex.length;++u)(p=e.FileIndex[u]).content&&(!(c=p.content.length)||c>=4096||(p.start=a,l(c+63>>6)));for(;511&i.l;)i.write_shift(-4,w.ENDOFCHAIN);for(s=0;s<r[4]<<2;++s){var d=e.FullPaths[s];if(d&&0!==d.length){p=e.FileIndex[s],0===s&&(p.start=p.size?p.start-1:y);var f=0===s&&n.root||p.name;if(c=2*(f.length+1),i.write_shift(64,f,"utf16le"),i.write_shift(2,c),i.write_shift(1,p.type),i.write_shift(1,p.color),i.write_shift(-4,p.L),i.write_shift(-4,p.R),i.write_shift(-4,p.C),p.clsid)i.write_shift(16,p.clsid,"hex");else for(u=0;u<4;++u)i.write_shift(4,0);i.write_shift(4,p.state||0),i.write_shift(4,0),i.write_shift(4,0),i.write_shift(4,0),i.write_shift(4,0),i.write_shift(4,p.start),i.write_shift(4,p.size),i.write_shift(4,0)}else{for(u=0;u<17;++u)i.write_shift(4,0);for(u=0;u<3;++u)i.write_shift(4,-1);for(u=0;u<12;++u)i.write_shift(4,0)}}for(s=1;s<e.FileIndex.length;++s)if((p=e.FileIndex[s]).size>=4096)if(i.l=p.start+1<<9,ko&&Buffer.isBuffer(p.content))p.content.copy(i,i.l,0,p.size),i.l+=p.size+511&-512;else{for(u=0;u<p.size;++u)i.write_shift(1,p.content[u]);for(;511&u;++u)i.write_shift(1,0)}for(s=1;s<e.FileIndex.length;++s)if((p=e.FileIndex[s]).size>0&&p.size<4096)if(ko&&Buffer.isBuffer(p.content))p.content.copy(i,i.l,0,p.size),i.l+=p.size+63&-64;else{for(u=0;u<p.size;++u)i.write_shift(1,p.content[u]);for(;63&u;++u)i.write_shift(1,0)}if(ko)i.l=i.length;else for(;i.l<i.length;)i.write_shift(1,0);return i}t.version="1.2.1";var m,g=64,y=-2,v="d0cf11e0a1b11ae1",b=[208,207,17,224,161,177,26,225],C="00000000000000000000000000000000",w={MAXREGSECT:-6,DIFSECT:-4,FATSECT:-3,ENDOFCHAIN:y,FREESECT:-1,HEADER_SIGNATURE:v,HEADER_MINOR_VERSION:"3e00",MAXREGSID:-6,NOSTREAM:-1,HEADER_CLSID:C,EntryTypes:["unknown","storage","stream","lockbytes","property","root"]};function x(e){for(var t=new Array(e.length),n=0;n<e.length;++n)t[n]=String.fromCharCode(e[n]);return t.join("")}var P=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],S=[3,4,5,6,7,8,9,10,11,13,15,17,19,23,27,31,35,43,51,59,67,83,99,115,131,163,195,227,258],E=[1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193,257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577];function T(e){var t=139536&(e<<1|e<<11)|558144&(e<<5|e<<15);return 255&(t>>16|t>>8|t)}for(var O="undefined"!=typeof Uint8Array,V=O?new Uint8Array(256):[],_=0;_<256;++_)V[_]=T(_);function R(e,t){var n=V[255&e];return t<=8?n>>>8-t:(n=n<<8|V[e>>8&255],t<=16?n>>>16-t:(n=n<<8|V[e>>16&255])>>>24-t)}function I(e,t){var n=7&t,r=t>>>3;return(e[r]|(n<=6?0:e[r+1]<<8))>>>n&3}function D(e,t){var n=7&t,r=t>>>3;return(e[r]|(n<=5?0:e[r+1]<<8))>>>n&7}function A(e,t){var n=7&t,r=t>>>3;return(e[r]|(n<=3?0:e[r+1]<<8))>>>n&31}function k(e,t){var n=7&t,r=t>>>3;return(e[r]|(n<=1?0:e[r+1]<<8))>>>n&127}function M(e,t,n){var r=7&t,o=t>>>3,i=(1<<n)-1,s=e[o]>>>r;return n<8-r?s&i:(s|=e[o+1]<<8-r,n<16-r?s&i:(s|=e[o+2]<<16-r,n<24-r?s&i:(s|=e[o+3]<<24-r)&i))}function N(e,t,n){var r=7&t,o=t>>>3;return r<=5?e[o]|=(7&n)<<r:(e[o]|=n<<r&255,e[o+1]=(7&n)>>8-r),t+3}function L(e,t,n){return n=(1&n)<<(7&t),e[t>>>3]|=n,t+1}function j(e,t,n){var r=t>>>3;return n<<=7&t,e[r]|=255&n,n>>>=8,e[r+1]=n,t+8}function q(e,t,n){var r=t>>>3;return n<<=7&t,e[r]|=255&n,n>>>=8,e[r+1]=255&n,e[r+2]=n>>>8,t+16}function F(e,t){var n=e.length,r=2*n>t?2*n:t+5,o=0;if(n>=t)return e;if(ko){var i=Lo(r);if(e.copy)e.copy(i);else for(;o<e.length;++o)i[o]=e[o];return i}if(O){var s=new Uint8Array(r);if(s.set)s.set(e);else for(;o<n;++o)s[o]=e[o];return s}return e.length=r,e}function B(e){for(var t=new Array(e),n=0;n<e;++n)t[n]=0;return t}function Q(e,t,n){var r=1,o=0,i=0,s=0,a=0,l=e.length,u=O?new Uint16Array(32):B(32);for(i=0;i<32;++i)u[i]=0;for(i=l;i<n;++i)e[i]=0;l=e.length;var c=O?new Uint16Array(l):B(l);for(i=0;i<l;++i)u[o=e[i]]++,r<o&&(r=o),c[i]=0;for(u[0]=0,i=1;i<=r;++i)u[i+16]=a=a+u[i-1]<<1;for(i=0;i<l;++i)0!=(a=e[i])&&(c[i]=u[a+16]++);var p=0;for(i=0;i<l;++i)if(0!=(p=e[i]))for(a=R(c[i],r)>>r-p,s=(1<<r+4-p)-1;s>=0;--s)t[a|s<<p]=15&p|i<<4;return r}var H=O?new Uint16Array(512):B(512),z=O?new Uint16Array(32):B(32);if(!O){for(var U=0;U<512;++U)H[U]=0;for(U=0;U<32;++U)z[U]=0}!function(){for(var e=[],t=0;t<32;t++)e.push(5);Q(e,z,32);var n=[];for(t=0;t<=143;t++)n.push(8);for(;t<=255;t++)n.push(9);for(;t<=279;t++)n.push(7);for(;t<=287;t++)n.push(8);Q(n,H,288)}();var W=function(){for(var e=O?new Uint8Array(32768):[],t=0,n=0;t<E.length-1;++t)for(;n<E[t+1];++n)e[n]=t;for(;n<32768;++n)e[n]=29;var r=O?new Uint8Array(259):[];for(t=0,n=0;t<S.length-1;++t)for(;n<S[t+1];++n)r[n]=t;return function(t,n){return t.length<8?function(e,t){for(var n=0;n<e.length;){var r=Math.min(65535,e.length-n),o=n+r==e.length;for(t.write_shift(1,+o),t.write_shift(2,r),t.write_shift(2,65535&~r);r-- >0;)t[t.l++]=e[n++]}return t.l}(t,n):function(t,n){for(var o=0,i=0,s=O?new Uint16Array(32768):[];i<t.length;){var a=Math.min(65535,t.length-i);if(a<10){for(7&(o=N(n,o,+!(i+a!=t.length)))&&(o+=8-(7&o)),n.l=o/8|0,n.write_shift(2,a),n.write_shift(2,65535&~a);a-- >0;)n[n.l++]=t[i++];o=8*n.l}else{o=N(n,o,+!(i+a!=t.length)+2);for(var l=0;a-- >0;){var u=t[i],c=-1,p=0;if((c=s[l=32767&(l<<5^u)])&&((c|=-32768&i)>i&&(c-=32768),c<i))for(;t[c+p]==t[i+p]&&p<250;)++p;if(p>2){(u=r[p])<=22?o=j(n,o,V[u+1]>>1)-1:(j(n,o,3),j(n,o+=5,V[u-23]>>5),o+=3);var d=u<8?0:u-4>>2;d>0&&(q(n,o,p-S[u]),o+=d),u=e[i-c],o=j(n,o,V[u]>>3),o-=3;var h=u<4?0:u-2>>1;h>0&&(q(n,o,i-c-E[u]),o+=h);for(var f=0;f<p;++f)s[l]=32767&i,l=32767&(l<<5^t[i]),++i;a-=p-1}else u<=143?u+=48:o=L(n,o,1),o=j(n,o,V[u]),s[l]=32767&i,++i}o=j(n,o,0)-1}}return n.l=(o+7)/8|0,n.l}(t,n)}}();function G(e){var t=ca(50+Math.floor(1.1*e.length)),n=W(e,t);return t.slice(0,n)}var $=O?new Uint16Array(32768):B(32768),J=O?new Uint16Array(32768):B(32768),K=O?new Uint16Array(128):B(128),Y=1,X=1;function Z(e,t){var n=A(e,t)+257,r=A(e,t+=5)+1,o=function(e,t){var n=7&t,r=t>>>3;return(e[r]|(n<=4?0:e[r+1]<<8))>>>n&15}(e,t+=5)+4;t+=4;for(var i=0,s=O?new Uint8Array(19):B(19),a=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],l=1,u=O?new Uint8Array(8):B(8),c=O?new Uint8Array(8):B(8),p=s.length,d=0;d<o;++d)s[P[d]]=i=D(e,t),l<i&&(l=i),u[i]++,t+=3;var h=0;for(u[0]=0,d=1;d<=l;++d)c[d]=h=h+u[d-1]<<1;for(d=0;d<p;++d)0!=(h=s[d])&&(a[d]=c[h]++);var f=0;for(d=0;d<p;++d)if(0!=(f=s[d])){h=V[a[d]]>>8-f;for(var m=(1<<7-f)-1;m>=0;--m)K[h|m<<f]=7&f|d<<3}var g=[];for(l=1;g.length<n+r;)switch(t+=7&(h=K[k(e,t)]),h>>>=3){case 16:for(i=3+I(e,t),t+=2,h=g[g.length-1];i-- >0;)g.push(h);break;case 17:for(i=3+D(e,t),t+=3;i-- >0;)g.push(0);break;case 18:for(i=11+k(e,t),t+=7;i-- >0;)g.push(0);break;default:g.push(h),l<h&&(l=h)}var y=g.slice(0,n),v=g.slice(n);for(d=n;d<286;++d)y[d]=0;for(d=r;d<30;++d)v[d]=0;return Y=Q(y,$,286),X=Q(v,J,30),t}function ee(e,t){var n=function(e,t){if(3==e[0]&&!(3&e[1]))return[No(t),2];for(var n=0,r=0,o=Lo(t||1<<18),i=0,s=o.length>>>0,a=0,l=0;0==(1&r);)if(r=D(e,n),n+=3,r>>>1!=0)for(r>>1==1?(a=9,l=5):(n=Z(e,n),a=Y,l=X);;){!t&&s<i+32767&&(s=(o=F(o,i+32767)).length);var u=M(e,n,a),c=r>>>1==1?H[u]:$[u];if(n+=15&c,0==((c>>>=4)>>>8&255))o[i++]=c;else{if(256==c)break;var p=(c-=257)<8?0:c-4>>2;p>5&&(p=0);var d=i+S[c];p>0&&(d+=M(e,n,p),n+=p),u=M(e,n,l),n+=15&(c=r>>>1==1?z[u]:J[u]);var h=(c>>>=4)<4?0:c-2>>1,f=E[c];for(h>0&&(f+=M(e,n,h),n+=h),!t&&s<d&&(s=(o=F(o,d+100)).length);i<d;)o[i]=o[i-f],++i}}else{7&n&&(n+=8-(7&n));var m=e[n>>>3]|e[1+(n>>>3)]<<8;if(n+=32,m>0)for(!t&&s<i+m&&(s=(o=F(o,i+m)).length);m-- >0;)o[i++]=e[n>>>3],n+=8}return t?[o,n+7>>>3]:[o.slice(0,i),n+7>>>3]}(e.slice(e.l||0),t);return e.l+=n[1],n[0]}function te(e,t){if(!e)throw new Error(t);"undefined"!=typeof console&&console.error(t)}function ne(e,t){var n=e;la(n,0);var r={FileIndex:[],FullPaths:[]};d(r,{root:t.root});for(var o=n.length-4;(80!=n[o]||75!=n[o+1]||5!=n[o+2]||6!=n[o+3])&&o>=0;)--o;n.l=o+4,n.l+=4;var s=n.read_shift(2);n.l+=6;var a=n.read_shift(4);for(n.l=a,o=0;o<s;++o){n.l+=20;var l=n.read_shift(4),u=n.read_shift(4),c=n.read_shift(2),p=n.read_shift(2),h=n.read_shift(2);n.l+=8;var f=n.read_shift(4),m=i(n.slice(n.l+c,n.l+c+p));n.l+=c+p+h;var g=n.l;n.l=f+4,re(n,l,u,r,m),n.l=g}return r}function re(e,t,n,r,o){e.l+=2;var s=e.read_shift(2),a=e.read_shift(2),l=function(e){var t=65535&e.read_shift(2),n=65535&e.read_shift(2),r=new Date,o=31&n,i=15&(n>>>=5);n>>>=4,r.setMilliseconds(0),r.setFullYear(n+1980),r.setMonth(i-1),r.setDate(o);var s=31&t,a=63&(t>>>=5);return t>>>=6,r.setHours(t),r.setMinutes(a),r.setSeconds(s<<1),r}(e);if(8257&s)throw new Error("Unsupported ZIP encryption");e.read_shift(4);for(var u=e.read_shift(4),c=e.read_shift(4),p=e.read_shift(2),d=e.read_shift(2),h="",f=0;f<p;++f)h+=String.fromCharCode(e[e.l++]);if(d){var g=i(e.slice(e.l,e.l+d));(g[21589]||{}).mt&&(l=g[21589].mt),((o||{})[21589]||{}).mt&&(l=o[21589].mt)}e.l+=d;var y=e.slice(e.l,e.l+u);switch(a){case 8:y=function(e,t){if(!m)return ee(e,t);var n=new(0,m.InflateRaw),r=n._processChunk(e.slice(e.l),n._finishFlushFlag);return e.l+=n.bytesRead,r}(e,c);break;case 0:break;default:throw new Error("Unsupported ZIP Compression method "+a)}var v=!1;8&s&&(134695760==e.read_shift(4)&&(e.read_shift(4),v=!0),u=e.read_shift(4),c=e.read_shift(4)),u!=t&&te(v,"Bad compressed size: "+t+" != "+u),c!=n&&te(v,"Bad uncompressed size: "+n+" != "+c),ue(r,h,y,{unsafe:!0,mt:l})}var oe={htm:"text/html",xml:"text/xml",gif:"image/gif",jpg:"image/jpeg",png:"image/png",mso:"application/x-mso",thmx:"application/vnd.ms-officetheme",sh33tj5:"application/octet-stream"};function ie(e,t){if(e.ctype)return e.ctype;var n=e.name||"",r=n.match(/\.([^\.]+)$/);return r&&oe[r[1]]||t&&(r=(n=t).match(/[\.\\]([^\.\\])+$/))&&oe[r[1]]?oe[r[1]]:"application/octet-stream"}function se(e){for(var t=Do(e),n=[],r=0;r<t.length;r+=76)n.push(t.slice(r,r+76));return n.join("\r\n")+"\r\n"}function ae(e){var t=e.replace(/[\x00-\x08\x0B\x0C\x0E-\x1F\x7E-\xFF=]/g,(function(e){var t=e.charCodeAt(0).toString(16).toUpperCase();return"="+(1==t.length?"0"+t:t)}));"\n"==(t=t.replace(/ $/gm,"=20").replace(/\t$/gm,"=09")).charAt(0)&&(t="=0D"+t.slice(1));for(var n=[],r=(t=t.replace(/\r(?!\n)/gm,"=0D").replace(/\n\n/gm,"\n=0A").replace(/([^\r\n])\n/gm,"$1=0A")).split("\r\n"),o=0;o<r.length;++o){var i=r[o];if(0!=i.length)for(var s=0;s<i.length;){var a=76,l=i.slice(s,s+a);"="==l.charAt(a-1)?a--:"="==l.charAt(a-2)?a-=2:"="==l.charAt(a-3)&&(a-=3),l=i.slice(s,s+a),(s+=a)<i.length&&(l+="="),n.push(l)}else n.push("")}return n.join("\r\n")}function le(e,t,n){for(var r,o="",i="",s="",a=0;a<10;++a){var l=t[a];if(!l||l.match(/^\s*$/))break;var u=l.match(/^(.*?):\s*([^\s].*)$/);if(u)switch(u[1].toLowerCase()){case"content-location":o=u[2].trim();break;case"content-type":s=u[2].trim();break;case"content-transfer-encoding":i=u[2].trim()}}switch(++a,i.toLowerCase()){case"base64":r=jo(Ao(t.slice(a).join("")));break;case"quoted-printable":r=function(e){for(var t=[],n=0;n<e.length;++n){for(var r=e[n];n<=e.length&&"="==r.charAt(r.length-1);)r=r.slice(0,r.length-1)+e[++n];t.push(r)}for(var o=0;o<t.length;++o)t[o]=t[o].replace(/[=][0-9A-Fa-f]{2}/g,(function(e){return String.fromCharCode(parseInt(e.slice(1),16))}));return jo(t.join("\r\n"))}(t.slice(a));break;default:throw new Error("Unsupported Content-Transfer-Encoding "+i)}var c=ue(e,o.slice(n.length),r,{unsafe:!0});s&&(c.ctype=s)}function ue(e,t,n,o){var i=o&&o.unsafe;i||d(e);var s=!i&&Mi.find(e,t);if(!s){var a=e.FullPaths[0];t.slice(0,a.length)==a?a=t:("/"!=a.slice(-1)&&(a+="/"),a=(a+t).replace("//","/")),s={name:r(t),type:2},e.FileIndex.push(s),e.FullPaths.push(a),i||Mi.utils.cfb_gc(e)}return s.content=n,s.size=n?n.length:0,o&&(o.CLSID&&(s.clsid=o.CLSID),o.mt&&(s.mt=o.mt),o.ct&&(s.ct=o.ct)),s}return t.find=function(e,t){var n=e.FullPaths.map((function(e){return e.toUpperCase()})),r=n.map((function(e){var t=e.split("/");return t[t.length-("/"==e.slice(-1)?2:1)]})),o=!1;47===t.charCodeAt(0)?(o=!0,t=n[0].slice(0,-1)+t):o=-1!==t.indexOf("/");var i=t.toUpperCase(),s=!0===o?n.indexOf(i):r.indexOf(i);if(-1!==s)return e.FileIndex[s];var a=!i.match(Ho);for(i=i.replace(Qo,""),a&&(i=i.replace(Ho,"!")),s=0;s<n.length;++s){if((a?n[s].replace(Ho,"!"):n[s]).replace(Qo,"")==i)return e.FileIndex[s];if((a?r[s].replace(Ho,"!"):r[s]).replace(Qo,"")==i)return e.FileIndex[s]}return null},t.read=function(t,n){var r=n&&n.type;switch(r||ko&&Buffer.isBuffer(t)&&(r="buffer"),r||"base64"){case"file":return function(t,n){return s(),a(e.readFileSync(t),n)}(t,n);case"base64":return a(jo(Ao(t)),n);case"binary":return a(jo(t),n)}return a(t,n)},t.parse=a,t.write=function(t,n){var r=f(t,n);switch(n&&n.type||"buffer"){case"file":return s(),e.writeFileSync(n.filename,r),r;case"binary":return"string"==typeof r?r:x(r);case"base64":return Do("string"==typeof r?r:x(r));case"buffer":if(ko)return Buffer.isBuffer(r)?r:Mo(r);case"array":return"string"==typeof r?jo(r):r}return r},t.writeFile=function(t,n,r){s();var o=f(t,r);e.writeFileSync(n,o)},t.utils={cfb_new:function(e){var t={};return d(t,e),t},cfb_add:ue,cfb_del:function(e,t){d(e);var n=Mi.find(e,t);if(n)for(var r=0;r<e.FileIndex.length;++r)if(e.FileIndex[r]==n)return e.FileIndex.splice(r,1),e.FullPaths.splice(r,1),!0;return!1},cfb_mov:function(e,t,n){d(e);var o=Mi.find(e,t);if(o)for(var i=0;i<e.FileIndex.length;++i)if(e.FileIndex[i]==o)return e.FileIndex[i].name=r(n),e.FullPaths[i]=n,!0;return!1},cfb_gc:function(e){h(e,!0)},ReadShift:na,CheckField:aa,prep_blob:la,bconcat:Bo,use_zlib:function(e){try{var t=new(0,e.InflateRaw);if(t._processChunk(new Uint8Array([3,0]),t._finishFlushFlag),!t.bytesRead)throw new Error("zlib does not expose bytesRead");m=e}catch(e){console.error("cannot use native zlib: "+(e.message||e))}},_deflateRaw:G,_inflateRaw:ee,consts:w},t}();let Ni;function Li(e){return"string"==typeof e?qo(e):Array.isArray(e)?function(e){if("undefined"==typeof Uint8Array)throw new Error("Unsupported");return new Uint8Array(e)}(e):e}function ji(e,t,n){if(void 0!==Ni&&Ni.writeFileSync)return n?Ni.writeFileSync(e,t,n):Ni.writeFileSync(e,t);if("undefined"!=typeof Deno){if(n&&"string"==typeof t)switch(n){case"utf8":t=new TextEncoder(n).encode(t);break;case"binary":t=qo(t);break;default:throw new Error("Unsupported encoding "+n)}return Deno.writeFileSync(e,t)}var r="utf8"==n?bs(t):t;if("undefined"!=typeof IE_SaveFile)return IE_SaveFile(r,e);if("undefined"!=typeof Blob){var o=new Blob([Li(r)],{type:"application/octet-stream"});if("undefined"!=typeof navigator&&navigator.msSaveBlob)return navigator.msSaveBlob(o,e);if("undefined"!=typeof saveAs)return saveAs(o,e);if("undefined"!=typeof URL&&"undefined"!=typeof document&&document.createElement&&URL.createObjectURL){var i=URL.createObjectURL(o);if("object"==typeof chrome&&"function"==typeof(chrome.downloads||{}).download)return URL.revokeObjectURL&&"undefined"!=typeof setTimeout&&setTimeout((function(){URL.revokeObjectURL(i)}),6e4),chrome.downloads.download({url:i,filename:e,saveAs:!0});var s=document.createElement("a");if(null!=s.download)return s.download=e,s.href=i,document.body.appendChild(s),s.click(),document.body.removeChild(s),URL.revokeObjectURL&&"undefined"!=typeof setTimeout&&setTimeout((function(){URL.revokeObjectURL(i)}),6e4),i}}if("undefined"!=typeof $&&"undefined"!=typeof File&&"undefined"!=typeof Folder)try{var a=File(e);return a.open("w"),a.encoding="binary",Array.isArray(t)&&(t=Fo(t)),a.write(t),a.close(),t}catch(e){if(!e.message||!e.message.match(/onstruct/))throw e}throw new Error("cannot save file "+e)}function qi(e){for(var t=Object.keys(e),n=[],r=0;r<t.length;++r)Object.prototype.hasOwnProperty.call(e,t[r])&&n.push(t[r]);return n}function Fi(e,t){for(var n=[],r=qi(e),o=0;o!==r.length;++o)null==n[e[r[o]][t]]&&(n[e[r[o]][t]]=r[o]);return n}function Bi(e){for(var t=[],n=qi(e),r=0;r!==n.length;++r)t[e[n[r]]]=n[r];return t}function Qi(e){for(var t=[],n=qi(e),r=0;r!==n.length;++r)t[e[n[r]]]=parseInt(n[r],10);return t}var Hi=new Date(1899,11,30,0,0,0);function zi(e,t){var n=e.getTime();return t&&(n-=1263168e5),(n-(Hi.getTime()+6e4*(e.getTimezoneOffset()-Hi.getTimezoneOffset())))/864e5}var Ui=new Date,Wi=Hi.getTime()+6e4*(Ui.getTimezoneOffset()-Hi.getTimezoneOffset()),Gi=Ui.getTimezoneOffset();function $i(e){var t=new Date;return t.setTime(24*e*60*60*1e3+Wi),t.getTimezoneOffset()!==Gi&&t.setTime(t.getTime()+6e4*(t.getTimezoneOffset()-Gi)),t}var Ji=new Date("2017-02-19T19:06:09.000Z"),Ki=isNaN(Ji.getFullYear())?new Date("2/19/17"):Ji,Yi=2017==Ki.getFullYear();function Xi(e,t){var n=new Date(e);if(Yi)return t>0?n.setTime(n.getTime()+60*n.getTimezoneOffset()*1e3):t<0&&n.setTime(n.getTime()-60*n.getTimezoneOffset()*1e3),n;if(e instanceof Date)return e;if(1917==Ki.getFullYear()&&!isNaN(n.getFullYear())){var r=n.getFullYear();return e.indexOf(""+r)>-1||n.setFullYear(n.getFullYear()+100),n}var o=e.match(/\d+/g)||["2017","2","19","0","0","0"],i=new Date(+o[0],+o[1]-1,+o[2],+o[3]||0,+o[4]||0,+o[5]||0);return e.indexOf("Z")>-1&&(i=new Date(i.getTime()-60*i.getTimezoneOffset()*1e3)),i}function Zi(e,t){if(ko&&Buffer.isBuffer(e)){if(t){if(255==e[0]&&254==e[1])return bs(e.slice(2).toString("utf16le"));if(254==e[1]&&255==e[2])return bs(function(e){for(var t=[],n=0;n<e.length>>1;++n)t[n]=String.fromCharCode(e.charCodeAt(2*n+1)+(e.charCodeAt(2*n)<<8));return t.join("")}(e.slice(2).toString("binary")))}return e.toString("binary")}if("undefined"!=typeof TextDecoder)try{if(t){if(255==e[0]&&254==e[1])return bs(new TextDecoder("utf-16le").decode(e.slice(2)));if(254==e[0]&&255==e[1])return bs(new TextDecoder("utf-16be").decode(e.slice(2)))}var n={"€":"€","‚":"‚",ƒ:"ƒ","„":"„","…":"…","†":"†","‡":"‡",ˆ:"ˆ","‰":"‰",Š:"Š","‹":"‹",Œ:"Œ",Ž:"Ž","‘":"‘","’":"’","“":"“","”":"”","•":"•","–":"–","—":"—","˜":"˜","™":"™",š:"š","›":"›",œ:"œ",ž:"ž",Ÿ:"Ÿ"};return Array.isArray(e)&&(e=new Uint8Array(e)),new TextDecoder("latin1").decode(e).replace(/[€‚ƒ„…†‡ˆ‰Š‹ŒŽ‘’“”•–—˜™š›œžŸ]/g,(function(e){return n[e]||e}))}catch(e){}for(var r=[],o=0;o!=e.length;++o)r.push(String.fromCharCode(e[o]));return r.join("")}function es(e){if("undefined"!=typeof JSON&&!Array.isArray(e))return JSON.parse(JSON.stringify(e));if("object"!=typeof e||null==e)return e;if(e instanceof Date)return new Date(e.getTime());var t={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=es(e[n]));return t}function ts(e,t){for(var n="";n.length<t;)n+=e;return n}function ns(e){var t=Number(e);if(!isNaN(t))return isFinite(t)?t:NaN;if(!/\d/.test(e))return t;var n=1,r=e.replace(/([\d]),([\d])/g,"$1$2").replace(/[$]/g,"").replace(/[%]/g,(function(){return n*=100,""}));return isNaN(t=Number(r))?(r=r.replace(/[(](.*)[)]/,(function(e,t){return n=-n,t})),isNaN(t=Number(r))?t:t/n):t/n}var rs=["january","february","march","april","may","june","july","august","september","october","november","december"];function os(e){var t=new Date(e),n=new Date(NaN),r=t.getYear(),o=t.getMonth(),i=t.getDate();if(isNaN(i))return n;var s=e.toLowerCase();if(s.match(/jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec/)){if((s=s.replace(/[^a-z]/g,"").replace(/([^a-z]|^)[ap]m?([^a-z]|$)/,"")).length>3&&-1==rs.indexOf(s))return n}else if(s.match(/[a-z]/))return n;return r<0||r>8099?n:(o>0||i>1)&&101!=r?t:e.match(/[^-0-9:,\/\\]/)?n:t}function is(e,t,n){if(e.FullPaths){var r;if("string"==typeof n)return r=ko?Mo(n):function(e){for(var t=[],n=0,r=e.length+250,o=No(e.length+255),i=0;i<e.length;++i){var s=e.charCodeAt(i);if(s<128)o[n++]=s;else if(s<2048)o[n++]=192|s>>6&31,o[n++]=128|63&s;else if(s>=55296&&s<57344){s=64+(1023&s);var a=1023&e.charCodeAt(++i);o[n++]=240|s>>8&7,o[n++]=128|s>>2&63,o[n++]=128|a>>6&15|(3&s)<<4,o[n++]=128|63&a}else o[n++]=224|s>>12&15,o[n++]=128|s>>6&63,o[n++]=128|63&s;n>r&&(t.push(o.slice(0,n)),n=0,o=No(65535),r=65530)}return t.push(o.slice(0,n)),Bo(t)}(n),Mi.utils.cfb_add(e,t,r);Mi.utils.cfb_add(e,t,n)}else e.file(t,n)}function ss(){return Mi.utils.cfb_new()}var as='<?xml version="1.0" encoding="UTF-8" standalone="yes"?>\r\n',ls=Bi({"&quot;":'"',"&apos;":"'","&gt;":">","&lt;":"<","&amp;":"&"}),us=/[&<>'"]/g,cs=/[\u0000-\u0008\u000b-\u001f]/g;function ps(e){return(e+"").replace(us,(function(e){return ls[e]})).replace(cs,(function(e){return"_x"+("000"+e.charCodeAt(0).toString(16)).slice(-4)+"_"}))}function ds(e){return ps(e).replace(/ /g,"_x0020_")}var hs=/[\u0000-\u001f]/g;function fs(e){for(var t="",n=0,r=0,o=0,i=0,s=0,a=0;n<e.length;)(r=e.charCodeAt(n++))<128?t+=String.fromCharCode(r):(o=e.charCodeAt(n++),r>191&&r<224?(s=(31&r)<<6,s|=63&o,t+=String.fromCharCode(s)):(i=e.charCodeAt(n++),r<240?t+=String.fromCharCode((15&r)<<12|(63&o)<<6|63&i):(a=((7&r)<<18|(63&o)<<12|(63&i)<<6|63&(s=e.charCodeAt(n++)))-65536,t+=String.fromCharCode(55296+(a>>>10&1023)),t+=String.fromCharCode(56320+(1023&a)))));return t}function ms(e){var t,n,r,o=No(2*e.length),i=1,s=0,a=0;for(n=0;n<e.length;n+=i)i=1,(r=e.charCodeAt(n))<128?t=r:r<224?(t=64*(31&r)+(63&e.charCodeAt(n+1)),i=2):r<240?(t=4096*(15&r)+64*(63&e.charCodeAt(n+1))+(63&e.charCodeAt(n+2)),i=3):(i=4,t=262144*(7&r)+4096*(63&e.charCodeAt(n+1))+64*(63&e.charCodeAt(n+2))+(63&e.charCodeAt(n+3)),a=55296+((t-=65536)>>>10&1023),t=56320+(1023&t)),0!==a&&(o[s++]=255&a,o[s++]=a>>>8,a=0),o[s++]=t%256,o[s++]=t>>>8;return o.slice(0,s).toString("ucs2")}function gs(e){return Mo(e,"binary").toString("utf8")}var ys="foo bar baz☃🍣",vs=ko&&(gs(ys)==fs(ys)&&gs||ms(ys)==fs(ys)&&ms)||fs,bs=ko?function(e){return Mo(e,"utf8").toString("binary")}:function(e){for(var t=[],n=0,r=0,o=0;n<e.length;)switch(r=e.charCodeAt(n++),!0){case r<128:t.push(String.fromCharCode(r));break;case r<2048:t.push(String.fromCharCode(192+(r>>6))),t.push(String.fromCharCode(128+(63&r)));break;case r>=55296&&r<57344:r-=55296,o=e.charCodeAt(n++)-56320+(r<<10),t.push(String.fromCharCode(240+(o>>18&7))),t.push(String.fromCharCode(144+(o>>12&63))),t.push(String.fromCharCode(128+(o>>6&63))),t.push(String.fromCharCode(128+(63&o)));break;default:t.push(String.fromCharCode(224+(r>>12))),t.push(String.fromCharCode(128+(r>>6&63))),t.push(String.fromCharCode(128+(63&r)))}return t.join("")},Cs=function(){var e=[["nbsp"," "],["middot","·"],["quot",'"'],["apos","'"],["gt",">"],["lt","<"],["amp","&"]].map((function(e){return[new RegExp("&"+e[0]+";","ig"),e[1]]}));return function(t){for(var n=t.replace(/^[\t\n\r ]+/,"").replace(/[\t\n\r ]+$/,"").replace(/>\s+/g,">").replace(/\s+</g,"<").replace(/[\t\n\r ]+/g," ").replace(/<\s*[bB][rR]\s*\/?>/g,"\n").replace(/<[^>]*>/g,""),r=0;r<e.length;++r)n=n.replace(e[r][0],e[r][1]);return n}}(),ws=/(^\s|\s$|\n)/;function xs(e,t){return"<"+e+(t.match(ws)?' xml:space="preserve"':"")+">"+t+"</"+e+">"}function Ps(e){return qi(e).map((function(t){return" "+t+'="'+e[t]+'"'})).join("")}function Ss(e,t,n){return"<"+e+(null!=n?Ps(n):"")+(null!=t?(t.match(ws)?' xml:space="preserve"':"")+">"+t+"</"+e:"/")+">"}function Es(e,t){try{return e.toISOString().replace(/\.\d*/,"")}catch(e){if(t)throw e}return""}var Ts={CORE_PROPS:"http://schemas.openxmlformats.org/package/2006/metadata/core-properties",CUST_PROPS:"http://schemas.openxmlformats.org/officeDocument/2006/custom-properties",EXT_PROPS:"http://schemas.openxmlformats.org/officeDocument/2006/extended-properties",CT:"http://schemas.openxmlformats.org/package/2006/content-types",RELS:"http://schemas.openxmlformats.org/package/2006/relationships",TCMNT:"http://schemas.microsoft.com/office/spreadsheetml/2018/threadedcomments",dc:"http://purl.org/dc/elements/1.1/",dcterms:"http://purl.org/dc/terms/",dcmitype:"http://purl.org/dc/dcmitype/",mx:"http://schemas.microsoft.com/office/mac/excel/2008/main",r:"http://schemas.openxmlformats.org/officeDocument/2006/relationships",sjs:"http://schemas.openxmlformats.org/package/2006/sheetjs/core-properties",vt:"http://schemas.openxmlformats.org/officeDocument/2006/docPropsVTypes",xsi:"http://www.w3.org/2001/XMLSchema-instance",xsd:"http://www.w3.org/2001/XMLSchema"},Os=["http://schemas.openxmlformats.org/spreadsheetml/2006/main","http://purl.oclc.org/ooxml/spreadsheetml/main","http://schemas.microsoft.com/office/excel/2006/main","http://schemas.microsoft.com/office/excel/2006/2"],Vs={o:"urn:schemas-microsoft-com:office:office",x:"urn:schemas-microsoft-com:office:excel",ss:"urn:schemas-microsoft-com:office:spreadsheet",dt:"uuid:C2F41010-65B3-11d1-A29F-00AA00C14882",mv:"http://macVmlSchemaUri",v:"urn:schemas-microsoft-com:vml",html:"http://www.w3.org/TR/REC-html40"},_s=function(e){for(var t=[],n=0;n<e[0].length;++n)if(e[0][n])for(var r=0,o=e[0][n].length;r<o;r+=10240)t.push.apply(t,e[0][n].slice(r,r+10240));return t},Rs=ko?function(e){return e[0].length>0&&Buffer.isBuffer(e[0][0])?Buffer.concat(e[0].map((function(e){return Buffer.isBuffer(e)?e:Mo(e)}))):_s(e)}:_s,Is=function(e,t,n){for(var r=[],o=t;o<n;o+=2)r.push(String.fromCharCode(Ys(e,o)));return r.join("").replace(Qo,"")},Ds=ko?function(e,t,n){return Buffer.isBuffer(e)?e.toString("utf16le",t,n).replace(Qo,""):Is(e,t,n)}:Is,As=function(e,t,n){for(var r=[],o=t;o<t+n;++o)r.push(("0"+e[o].toString(16)).slice(-2));return r.join("")},ks=ko?function(e,t,n){return Buffer.isBuffer(e)?e.toString("hex",t,t+n):As(e,t,n)}:As,Ms=function(e,t,n){for(var r=[],o=t;o<n;o++)r.push(String.fromCharCode(Ks(e,o)));return r.join("")},Ns=ko?function(e,t,n){return Buffer.isBuffer(e)?e.toString("utf8",t,n):Ms(e,t,n)}:Ms,Ls=function(e,t){var n=Zs(e,t);return n>0?Ns(e,t+4,t+4+n-1):""},js=Ls,qs=function(e,t){var n=Zs(e,t);return n>0?Ns(e,t+4,t+4+n-1):""},Fs=qs,Bs=function(e,t){var n=2*Zs(e,t);return n>0?Ns(e,t+4,t+4+n-1):""},Qs=Bs,Hs=function(e,t){var n=Zs(e,t);return n>0?Ds(e,t+4,t+4+n):""},zs=Hs,Us=function(e,t){var n=Zs(e,t);return n>0?Ns(e,t+4,t+4+n):""},Ws=Us,Gs=function(e,t){return function(e,t){for(var n=1-2*(e[t+7]>>>7),r=((127&e[t+7])<<4)+(e[t+6]>>>4&15),o=15&e[t+6],i=5;i>=0;--i)o=256*o+e[t+i];return 2047==r?0==o?n*(1/0):NaN:(0==r?r=-1022:(r-=1023,o+=Math.pow(2,52)),n*Math.pow(2,r-52)*o)}(e,t)},$s=Gs,Js=function(e){return Array.isArray(e)||"undefined"!=typeof Uint8Array&&e instanceof Uint8Array};ko&&(js=function(e,t){if(!Buffer.isBuffer(e))return Ls(e,t);var n=e.readUInt32LE(t);return n>0?e.toString("utf8",t+4,t+4+n-1):""},Fs=function(e,t){if(!Buffer.isBuffer(e))return qs(e,t);var n=e.readUInt32LE(t);return n>0?e.toString("utf8",t+4,t+4+n-1):""},Qs=function(e,t){if(!Buffer.isBuffer(e))return Bs(e,t);var n=2*e.readUInt32LE(t);return e.toString("utf16le",t+4,t+4+n-1)},zs=function(e,t){if(!Buffer.isBuffer(e))return Hs(e,t);var n=e.readUInt32LE(t);return e.toString("utf16le",t+4,t+4+n)},Ws=function(e,t){if(!Buffer.isBuffer(e))return Us(e,t);var n=e.readUInt32LE(t);return e.toString("utf8",t+4,t+4+n)},$s=function(e,t){return Buffer.isBuffer(e)?e.readDoubleLE(t):Gs(e,t)},Js=function(e){return Buffer.isBuffer(e)||Array.isArray(e)||"undefined"!=typeof Uint8Array&&e instanceof Uint8Array}),void 0!==Oo&&(Ds=function(e,t,n){return Oo.utils.decode(1200,e.slice(t,n)).replace(Qo,"")},Ns=function(e,t,n){return Oo.utils.decode(65001,e.slice(t,n))},js=function(e,t){var n=Zs(e,t);return n>0?Oo.utils.decode(xo,e.slice(t+4,t+4+n-1)):""},Fs=function(e,t){var n=Zs(e,t);return n>0?Oo.utils.decode(wo,e.slice(t+4,t+4+n-1)):""},Qs=function(e,t){var n=2*Zs(e,t);return n>0?Oo.utils.decode(1200,e.slice(t+4,t+4+n-1)):""},zs=function(e,t){var n=Zs(e,t);return n>0?Oo.utils.decode(1200,e.slice(t+4,t+4+n)):""},Ws=function(e,t){var n=Zs(e,t);return n>0?Oo.utils.decode(65001,e.slice(t+4,t+4+n)):""});var Ks=function(e,t){return e[t]},Ys=function(e,t){return 256*e[t+1]+e[t]},Xs=function(e,t){var n=256*e[t+1]+e[t];return n<32768?n:-1*(65535-n+1)},Zs=function(e,t){return e[t+3]*(1<<24)+(e[t+2]<<16)+(e[t+1]<<8)+e[t]},ea=function(e,t){return e[t+3]<<24|e[t+2]<<16|e[t+1]<<8|e[t]},ta=function(e,t){return e[t]<<24|e[t+1]<<16|e[t+2]<<8|e[t+3]};function na(e,t){var n,r,o,i,s,a,l="",u=[];switch(t){case"dbcs":if(a=this.l,ko&&Buffer.isBuffer(this))l=this.slice(this.l,this.l+2*e).toString("utf16le");else for(s=0;s<e;++s)l+=String.fromCharCode(Ys(this,a)),a+=2;e*=2;break;case"utf8":l=Ns(this,this.l,this.l+e);break;case"utf16le":e*=2,l=Ds(this,this.l,this.l+e);break;case"wstr":if(void 0===Oo)return na.call(this,e,"dbcs");l=Oo.utils.decode(wo,this.slice(this.l,this.l+2*e)),e*=2;break;case"lpstr-ansi":l=js(this,this.l),e=4+Zs(this,this.l);break;case"lpstr-cp":l=Fs(this,this.l),e=4+Zs(this,this.l);break;case"lpwstr":l=Qs(this,this.l),e=4+2*Zs(this,this.l);break;case"lpp4":e=4+Zs(this,this.l),l=zs(this,this.l),2&e&&(e+=2);break;case"8lpp4":e=4+Zs(this,this.l),l=Ws(this,this.l),3&e&&(e+=4-(3&e));break;case"cstr":for(e=0,l="";0!==(o=Ks(this,this.l+e++));)u.push(Vo(o));l=u.join("");break;case"_wstr":for(e=0,l="";0!==(o=Ys(this,this.l+e));)u.push(Vo(o)),e+=2;e+=2,l=u.join("");break;case"dbcs-cont":for(l="",a=this.l,s=0;s<e;++s){if(this.lens&&-1!==this.lens.indexOf(a))return o=Ks(this,a),this.l=a+1,i=na.call(this,e-s,o?"dbcs-cont":"sbcs-cont"),u.join("")+i;u.push(Vo(Ys(this,a))),a+=2}l=u.join(""),e*=2;break;case"cpstr":if(void 0!==Oo){l=Oo.utils.decode(wo,this.slice(this.l,this.l+e));break}case"sbcs-cont":for(l="",a=this.l,s=0;s!=e;++s){if(this.lens&&-1!==this.lens.indexOf(a))return o=Ks(this,a),this.l=a+1,i=na.call(this,e-s,o?"dbcs-cont":"sbcs-cont"),u.join("")+i;u.push(Vo(Ks(this,a))),a+=1}l=u.join("");break;default:switch(e){case 1:return n=Ks(this,this.l),this.l++,n;case 2:return n=("i"===t?Xs:Ys)(this,this.l),this.l+=2,n;case 4:case-4:return"i"===t||0==(128&this[this.l+3])?(n=(e>0?ea:ta)(this,this.l),this.l+=4,n):(r=Zs(this,this.l),this.l+=4,r);case 8:case-8:if("f"===t)return r=8==e?$s(this,this.l):$s([this[this.l+7],this[this.l+6],this[this.l+5],this[this.l+4],this[this.l+3],this[this.l+2],this[this.l+1],this[this.l+0]],0),this.l+=8,r;e=8;case 16:l=ks(this,this.l,e)}}return this.l+=e,l}var ra=function(e,t,n){e[n]=255&t,e[n+1]=t>>>8&255,e[n+2]=t>>>16&255,e[n+3]=t>>>24&255},oa=function(e,t,n){e[n]=255&t,e[n+1]=t>>8&255,e[n+2]=t>>16&255,e[n+3]=t>>24&255},ia=function(e,t,n){e[n]=255&t,e[n+1]=t>>>8&255};function sa(e,t,n){var r=0,o=0;if("dbcs"===n){for(o=0;o!=t.length;++o)ia(this,t.charCodeAt(o),this.l+2*o);r=2*t.length}else if("sbcs"===n){if(void 0!==Oo&&874==xo)for(o=0;o!=t.length;++o){var i=Oo.utils.encode(xo,t.charAt(o));this[this.l+o]=i[0]}else for(t=t.replace(/[^\x00-\x7F]/g,"_"),o=0;o!=t.length;++o)this[this.l+o]=255&t.charCodeAt(o);r=t.length}else{if("hex"===n){for(;o<e;++o)this[this.l++]=parseInt(t.slice(2*o,2*o+2),16)||0;return this}if("utf16le"===n){var s=Math.min(this.l+e,this.length);for(o=0;o<Math.min(t.length,e);++o){var a=t.charCodeAt(o);this[this.l++]=255&a,this[this.l++]=a>>8}for(;this.l<s;)this[this.l++]=0;return this}switch(e){case 1:r=1,this[this.l]=255&t;break;case 2:r=2,this[this.l]=255&t,t>>>=8,this[this.l+1]=255&t;break;case 3:r=3,this[this.l]=255&t,t>>>=8,this[this.l+1]=255&t,t>>>=8,this[this.l+2]=255&t;break;case 4:r=4,ra(this,t,this.l);break;case 8:if(r=8,"f"===n){!function(e,t,n){var r=(t<0||1/t==-1/0?1:0)<<7,o=0,i=0,s=r?-t:t;isFinite(s)?0==s?o=i=0:(o=Math.floor(Math.log(s)/Math.LN2),i=s*Math.pow(2,52-o),o<=-1023&&(!isFinite(i)||i<Math.pow(2,52))?o=-1022:(i-=Math.pow(2,52),o+=1023)):(o=2047,i=isNaN(t)?26985:0);for(var a=0;a<=5;++a,i/=256)e[n+a]=255&i;e[n+6]=(15&o)<<4|15&i,e[n+7]=o>>4|r}(this,t,this.l);break}case 16:break;case-4:r=4,oa(this,t,this.l)}}return this.l+=r,this}function aa(e,t){var n=ks(this,this.l,e.length>>1);if(n!==e)throw new Error(t+"Expected "+e+" saw "+n);this.l+=e.length>>1}function la(e,t){e.l=t,e.read_shift=na,e.chk=aa,e.write_shift=sa}function ua(e,t){e.l+=t}function ca(e){var t=No(e);return la(t,0),t}function pa(){var e=[],t=ko?256:2048,n=function(e){var t=ca(e);return la(t,0),t},r=n(t),o=function(){r&&(r.length>r.l&&((r=r.slice(0,r.l)).l=r.length),r.length>0&&e.push(r),r=null)},i=function(e){return r&&e<r.length-r.l?r:(o(),r=n(Math.max(e+1,t)))};return{next:i,push:function(e){o(),null==(r=e).l&&(r.l=r.length),i(t)},end:function(){return o(),Bo(e)},_bufs:e}}function da(e,t,n,r){var o,i=+t;if(!isNaN(i)){r||(r=Yc[i].p||(n||[]).length||0),o=1+(i>=128?1:0)+1,r>=128&&++o,r>=16384&&++o,r>=2097152&&++o;var s=e.next(o);i<=127?s.write_shift(1,i):(s.write_shift(1,128+(127&i)),s.write_shift(1,i>>7));for(var a=0;4!=a;++a){if(!(r>=128)){s.write_shift(1,r);break}s.write_shift(1,128+(127&r)),r>>=7}r>0&&Js(n)&&e.push(n)}}function ha(e,t,n){var r=es(e);if(t.s?(r.cRel&&(r.c+=t.s.c),r.rRel&&(r.r+=t.s.r)):(r.cRel&&(r.c+=t.c),r.rRel&&(r.r+=t.r)),!n||n.biff<12){for(;r.c>=256;)r.c-=256;for(;r.r>=65536;)r.r-=65536}return r}function fa(e,t,n){var r=es(e);return r.s=ha(r.s,t.s,n),r.e=ha(r.e,t.s,n),r}function ma(e,t){if(e.cRel&&e.c<0)for(e=es(e);e.c<0;)e.c+=t>8?16384:256;if(e.rRel&&e.r<0)for(e=es(e);e.r<0;)e.r+=t>8?1048576:t>5?65536:16384;var n=xa(e);return e.cRel||null==e.cRel||(n=n.replace(/^([A-Z])/,"$$$1")),e.rRel||null==e.rRel||(n=n.replace(/([A-Z]|^)(\d+)$/,"$1$$$2")),n}function ga(e,t){return 0!=e.s.r||e.s.rRel||e.e.r!=(t.biff>=12?1048575:t.biff>=8?65536:16384)||e.e.rRel?0!=e.s.c||e.s.cRel||e.e.c!=(t.biff>=12?16383:255)||e.e.cRel?ma(e.s,t.biff)+":"+ma(e.e,t.biff):(e.s.rRel?"":"$")+va(e.s.r)+":"+(e.e.rRel?"":"$")+va(e.e.r):(e.s.cRel?"":"$")+Ca(e.s.c)+":"+(e.e.cRel?"":"$")+Ca(e.e.c)}function ya(e){return parseInt(e.replace(/\$(\d+)$/,"$1"),10)-1}function va(e){return""+(e+1)}function ba(e){for(var t=e.replace(/^\$([A-Z])/,"$1"),n=0,r=0;r!==t.length;++r)n=26*n+t.charCodeAt(r)-64;return n-1}function Ca(e){if(e<0)throw new Error("invalid column "+e);var t="";for(++e;e;e=Math.floor((e-1)/26))t=String.fromCharCode((e-1)%26+65)+t;return t}function wa(e){for(var t=0,n=0,r=0;r<e.length;++r){var o=e.charCodeAt(r);o>=48&&o<=57?t=10*t+(o-48):o>=65&&o<=90&&(n=26*n+(o-64))}return{c:n-1,r:t-1}}function xa(e){for(var t=e.c+1,n="";t;t=(t-1)/26|0)n=String.fromCharCode((t-1)%26+65)+n;return n+(e.r+1)}function Pa(e){var t=e.indexOf(":");return-1==t?{s:wa(e),e:wa(e)}:{s:wa(e.slice(0,t)),e:wa(e.slice(t+1))}}function Sa(e,t){return void 0===t||"number"==typeof t?Sa(e.s,e.e):("string"!=typeof e&&(e=xa(e)),"string"!=typeof t&&(t=xa(t)),e==t?e:e+":"+t)}function Ea(e){var t={s:{c:0,r:0},e:{c:0,r:0}},n=0,r=0,o=0,i=e.length;for(n=0;r<i&&!((o=e.charCodeAt(r)-64)<1||o>26);++r)n=26*n+o;for(t.s.c=--n,n=0;r<i&&!((o=e.charCodeAt(r)-48)<0||o>9);++r)n=10*n+o;if(t.s.r=--n,r===i||10!=o)return t.e.c=t.s.c,t.e.r=t.s.r,t;for(++r,n=0;r!=i&&!((o=e.charCodeAt(r)-64)<1||o>26);++r)n=26*n+o;for(t.e.c=--n,n=0;r!=i&&!((o=e.charCodeAt(r)-48)<0||o>9);++r)n=10*n+o;return t.e.r=--n,t}function Ta(e,t,n){return null==e||null==e.t||"z"==e.t?"":void 0!==e.w?e.w:("d"==e.t&&!e.z&&n&&n.dateNF&&(e.z=n.dateNF),"e"==e.t?sl[e.v]||e.v:function(e,t){var n="d"==e.t&&t instanceof Date;if(null!=e.z)try{return e.w=_i(e.z,n?zi(t):t)}catch(e){}try{return e.w=_i((e.XF||{}).numFmtId||(n?14:0),n?zi(t):t)}catch(e){return""+t}}(e,null==t?e.v:t))}function Oa(e,t){var n=t&&t.sheet?t.sheet:"Sheet1",r={};return r[n]=e,{SheetNames:[n],Sheets:r}}function Va(e,t,n){var r=n||{},o=e?Array.isArray(e):r.dense;null!=Ro&&null==o&&(o=Ro);var i=e||(o?[]:{}),s=0,a=0;if(i&&null!=r.origin){if("number"==typeof r.origin)s=r.origin;else{var l="string"==typeof r.origin?wa(r.origin):r.origin;s=l.r,a=l.c}i["!ref"]||(i["!ref"]="A1:A1")}var u={s:{c:1e7,r:1e7},e:{c:0,r:0}};if(i["!ref"]){var c=Ea(i["!ref"]);u.s.c=c.s.c,u.s.r=c.s.r,u.e.c=Math.max(u.e.c,c.e.c),u.e.r=Math.max(u.e.r,c.e.r),-1==s&&(u.e.r=s=c.e.r+1)}for(var p=0;p!=t.length;++p)if(t[p]){if(!Array.isArray(t[p]))throw new Error("aoa_to_sheet expects an array of arrays");for(var d=0;d!=t[p].length;++d)if(void 0!==t[p][d]){var h={v:t[p][d]},f=s+p,m=a+d;if(u.s.r>f&&(u.s.r=f),u.s.c>m&&(u.s.c=m),u.e.r<f&&(u.e.r=f),u.e.c<m&&(u.e.c=m),!t[p][d]||"object"!=typeof t[p][d]||Array.isArray(t[p][d])||t[p][d]instanceof Date)if(Array.isArray(h.v)&&(h.f=t[p][d][1],h.v=h.v[0]),null===h.v)if(h.f)h.t="n";else if(r.nullError)h.t="e",h.v=0;else{if(!r.sheetStubs)continue;h.t="z"}else"number"==typeof h.v?h.t="n":"boolean"==typeof h.v?h.t="b":h.v instanceof Date?(h.z=r.dateNF||Zo[14],r.cellDates?(h.t="d",h.w=_i(h.z,zi(h.v))):(h.t="n",h.v=zi(h.v),h.w=_i(h.z,h.v))):h.t="s";else h=t[p][d];if(o)i[f]||(i[f]=[]),i[f][m]&&i[f][m].z&&(h.z=i[f][m].z),i[f][m]=h;else{var g=xa({c:m,r:f});i[g]&&i[g].z&&(h.z=i[g].z),i[g]=h}}}return u.s.c<1e7&&(i["!ref"]=Sa(u)),i}function _a(e,t){return Va(null,e,t)}function Ra(e,t){return t||(t=ca(4)),t.write_shift(4,e),t}function Ia(e){var t=e.read_shift(4);return 0===t?"":e.read_shift(t,"dbcs")}function Da(e,t){var n=!1;return null==t&&(n=!0,t=ca(4+2*e.length)),t.write_shift(4,e.length),e.length>0&&t.write_shift(0,e,"dbcs"),n?t.slice(0,t.l):t}function Aa(e){return{ich:e.read_shift(2),ifnt:e.read_shift(2)}}function ka(e,t){var n=e.l,r=e.read_shift(1),o=Ia(e),i=[],s={t:o,h:o};if(0!=(1&r)){for(var a=e.read_shift(4),l=0;l!=a;++l)i.push(Aa(e));s.r=i}else s.r=[{ich:0,ifnt:0}];return e.l=n+t,s}var Ma=ka;function Na(e){var t=e.read_shift(4),n=e.read_shift(2);return n+=e.read_shift(1)<<16,e.l++,{c:t,iStyleRef:n}}function La(e,t){return null==t&&(t=ca(8)),t.write_shift(-4,e.c),t.write_shift(3,e.iStyleRef||e.s),t.write_shift(1,0),t}function ja(e){var t=e.read_shift(2);return t+=e.read_shift(1)<<16,e.l++,{c:-1,iStyleRef:t}}function qa(e,t){return null==t&&(t=ca(4)),t.write_shift(3,e.iStyleRef||e.s),t.write_shift(1,0),t}var Fa=Ia,Ba=Da;function Qa(e){var t=e.read_shift(4);return 0===t||4294967295===t?"":e.read_shift(t,"dbcs")}function Ha(e,t){var n=!1;return null==t&&(n=!0,t=ca(127)),t.write_shift(4,e.length>0?e.length:4294967295),e.length>0&&t.write_shift(0,e,"dbcs"),n?t.slice(0,t.l):t}var za=Ia,Ua=Qa,Wa=Ha;function Ga(e){var t=e.slice(e.l,e.l+4),n=1&t[0],r=2&t[0];e.l+=4;var o=0===r?$s([0,0,0,0,252&t[0],t[1],t[2],t[3]],0):ea(t,0)>>2;return n?o/100:o}function $a(e,t){null==t&&(t=ca(4));var n=0,r=0,o=100*e;if(e==(0|e)&&e>=-(1<<29)&&e<1<<29?r=1:o==(0|o)&&o>=-(1<<29)&&o<1<<29&&(r=1,n=1),!r)throw new Error("unsupported RkNumber "+e);t.write_shift(-4,((n?o:e)<<2)+(n+2))}function Ja(e){var t={s:{},e:{}};return t.s.r=e.read_shift(4),t.e.r=e.read_shift(4),t.s.c=e.read_shift(4),t.e.c=e.read_shift(4),t}var Ka=Ja,Ya=function(e,t){return t||(t=ca(16)),t.write_shift(4,e.s.r),t.write_shift(4,e.e.r),t.write_shift(4,e.s.c),t.write_shift(4,e.e.c),t};function Xa(e){if(e.length-e.l<8)throw"XLS Xnum Buffer underflow";return e.read_shift(8,"f")}function Za(e,t){return(t||ca(8)).write_shift(8,e,"f")}function el(e,t){if(t||(t=ca(8)),!e||e.auto)return t.write_shift(4,0),t.write_shift(4,0),t;null!=e.index?(t.write_shift(1,2),t.write_shift(1,e.index)):null!=e.theme?(t.write_shift(1,6),t.write_shift(1,e.theme)):(t.write_shift(1,5),t.write_shift(1,0));var n=e.tint||0;if(n>0?n*=32767:n<0&&(n*=32768),t.write_shift(2,n),e.rgb&&null==e.theme){var r=e.rgb||"FFFFFF";"number"==typeof r&&(r=("000000"+r.toString(16)).slice(-6)),t.write_shift(1,parseInt(r.slice(0,2),16)),t.write_shift(1,parseInt(r.slice(2,4),16)),t.write_shift(1,parseInt(r.slice(4,6),16)),t.write_shift(1,255)}else t.write_shift(2,0),t.write_shift(1,0),t.write_shift(1,0);return t}var tl=80,nl={1:{n:"CodePage",t:2},2:{n:"Category",t:tl},3:{n:"PresentationFormat",t:tl},4:{n:"ByteCount",t:3},5:{n:"LineCount",t:3},6:{n:"ParagraphCount",t:3},7:{n:"SlideCount",t:3},8:{n:"NoteCount",t:3},9:{n:"HiddenCount",t:3},10:{n:"MultimediaClipCount",t:3},11:{n:"ScaleCrop",t:11},12:{n:"HeadingPairs",t:4108},13:{n:"TitlesOfParts",t:4126},14:{n:"Manager",t:tl},15:{n:"Company",t:tl},16:{n:"LinksUpToDate",t:11},17:{n:"CharacterCount",t:3},19:{n:"SharedDoc",t:11},22:{n:"HyperlinksChanged",t:11},23:{n:"AppVersion",t:3,p:"version"},24:{n:"DigSig",t:65},26:{n:"ContentType",t:tl},27:{n:"ContentStatus",t:tl},28:{n:"Language",t:tl},29:{n:"Version",t:tl},255:{},2147483648:{n:"Locale",t:19},2147483651:{n:"Behavior",t:19},1919054434:{}},rl={1:{n:"CodePage",t:2},2:{n:"Title",t:tl},3:{n:"Subject",t:tl},4:{n:"Author",t:tl},5:{n:"Keywords",t:tl},6:{n:"Comments",t:tl},7:{n:"Template",t:tl},8:{n:"LastAuthor",t:tl},9:{n:"RevNumber",t:tl},10:{n:"EditTime",t:64},11:{n:"LastPrinted",t:64},12:{n:"CreatedDate",t:64},13:{n:"ModifiedDate",t:64},14:{n:"PageCount",t:3},15:{n:"WordCount",t:3},16:{n:"CharCount",t:3},17:{n:"Thumbnail",t:71},18:{n:"Application",t:tl},19:{n:"DocSecurity",t:3},255:{},2147483648:{n:"Locale",t:19},2147483651:{n:"Behavior",t:19},1919054434:{}};function ol(e){return e.map((function(e){return[e>>16&255,e>>8&255,255&e]}))}var il=es(ol([0,16777215,16711680,65280,255,16776960,16711935,65535,0,16777215,16711680,65280,255,16776960,16711935,65535,8388608,32768,128,8421376,8388736,32896,12632256,8421504,10066431,10040166,16777164,13434879,6684774,16744576,26316,13421823,128,16711935,16776960,65535,8388736,8388608,32896,255,52479,13434879,13434828,16777113,10079487,16751052,13408767,16764057,3368703,3394764,10079232,16763904,16750848,16737792,6710937,9868950,13158,3381606,13056,3355392,10040064,10040166,3355545,3355443,16777215,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0])),sl={0:"#NULL!",7:"#DIV/0!",15:"#VALUE!",23:"#REF!",29:"#NAME?",36:"#NUM!",42:"#N/A",43:"#GETTING_DATA",255:"#WTF?"},al={"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet.main+xml":"workbooks","application/vnd.ms-excel.sheet.macroEnabled.main+xml":"workbooks","application/vnd.ms-excel.sheet.binary.macroEnabled.main":"workbooks","application/vnd.ms-excel.addin.macroEnabled.main+xml":"workbooks","application/vnd.openxmlformats-officedocument.spreadsheetml.template.main+xml":"workbooks","application/vnd.openxmlformats-officedocument.spreadsheetml.worksheet+xml":"sheets","application/vnd.ms-excel.worksheet":"sheets","application/vnd.ms-excel.binIndexWs":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.chartsheet+xml":"charts","application/vnd.ms-excel.chartsheet":"charts","application/vnd.ms-excel.macrosheet+xml":"macros","application/vnd.ms-excel.macrosheet":"macros","application/vnd.ms-excel.intlmacrosheet":"TODO","application/vnd.ms-excel.binIndexMs":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.dialogsheet+xml":"dialogs","application/vnd.ms-excel.dialogsheet":"dialogs","application/vnd.openxmlformats-officedocument.spreadsheetml.sharedStrings+xml":"strs","application/vnd.ms-excel.sharedStrings":"strs","application/vnd.openxmlformats-officedocument.spreadsheetml.styles+xml":"styles","application/vnd.ms-excel.styles":"styles","application/vnd.openxmlformats-package.core-properties+xml":"coreprops","application/vnd.openxmlformats-officedocument.custom-properties+xml":"custprops","application/vnd.openxmlformats-officedocument.extended-properties+xml":"extprops","application/vnd.openxmlformats-officedocument.customXmlProperties+xml":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.customProperty":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.comments+xml":"comments","application/vnd.ms-excel.comments":"comments","application/vnd.ms-excel.threadedcomments+xml":"threadedcomments","application/vnd.ms-excel.person+xml":"people","application/vnd.openxmlformats-officedocument.spreadsheetml.sheetMetadata+xml":"metadata","application/vnd.ms-excel.sheetMetadata":"metadata","application/vnd.ms-excel.pivotTable":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.pivotTable+xml":"TODO","application/vnd.openxmlformats-officedocument.drawingml.chart+xml":"TODO","application/vnd.ms-office.chartcolorstyle+xml":"TODO","application/vnd.ms-office.chartstyle+xml":"TODO","application/vnd.ms-office.chartex+xml":"TODO","application/vnd.ms-excel.calcChain":"calcchains","application/vnd.openxmlformats-officedocument.spreadsheetml.calcChain+xml":"calcchains","application/vnd.openxmlformats-officedocument.spreadsheetml.printerSettings":"TODO","application/vnd.ms-office.activeX":"TODO","application/vnd.ms-office.activeX+xml":"TODO","application/vnd.ms-excel.attachedToolbars":"TODO","application/vnd.ms-excel.connections":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.connections+xml":"TODO","application/vnd.ms-excel.externalLink":"links","application/vnd.openxmlformats-officedocument.spreadsheetml.externalLink+xml":"links","application/vnd.ms-excel.pivotCacheDefinition":"TODO","application/vnd.ms-excel.pivotCacheRecords":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.pivotCacheDefinition+xml":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.pivotCacheRecords+xml":"TODO","application/vnd.ms-excel.queryTable":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.queryTable+xml":"TODO","application/vnd.ms-excel.userNames":"TODO","application/vnd.ms-excel.revisionHeaders":"TODO","application/vnd.ms-excel.revisionLog":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.revisionHeaders+xml":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.revisionLog+xml":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.userNames+xml":"TODO","application/vnd.ms-excel.tableSingleCells":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.tableSingleCells+xml":"TODO","application/vnd.ms-excel.slicer":"TODO","application/vnd.ms-excel.slicerCache":"TODO","application/vnd.ms-excel.slicer+xml":"TODO","application/vnd.ms-excel.slicerCache+xml":"TODO","application/vnd.ms-excel.wsSortMap":"TODO","application/vnd.ms-excel.table":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.table+xml":"TODO","application/vnd.openxmlformats-officedocument.theme+xml":"themes","application/vnd.openxmlformats-officedocument.themeOverride+xml":"TODO","application/vnd.ms-excel.Timeline+xml":"TODO","application/vnd.ms-excel.TimelineCache+xml":"TODO","application/vnd.ms-office.vbaProject":"vba","application/vnd.ms-office.vbaProjectSignature":"TODO","application/vnd.ms-office.volatileDependencies":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.volatileDependencies+xml":"TODO","application/vnd.ms-excel.controlproperties+xml":"TODO","application/vnd.openxmlformats-officedocument.model+data":"TODO","application/vnd.ms-excel.Survey+xml":"TODO","application/vnd.openxmlformats-officedocument.drawing+xml":"drawings","application/vnd.openxmlformats-officedocument.drawingml.chartshapes+xml":"TODO","application/vnd.openxmlformats-officedocument.drawingml.diagramColors+xml":"TODO","application/vnd.openxmlformats-officedocument.drawingml.diagramData+xml":"TODO","application/vnd.openxmlformats-officedocument.drawingml.diagramLayout+xml":"TODO","application/vnd.openxmlformats-officedocument.drawingml.diagramStyle+xml":"TODO","application/vnd.openxmlformats-officedocument.vmlDrawing":"TODO","application/vnd.openxmlformats-package.relationships+xml":"rels","application/vnd.openxmlformats-officedocument.oleObject":"TODO","image/png":"TODO",sheet:"js"},ll={workbooks:{xlsx:"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet.main+xml",xlsm:"application/vnd.ms-excel.sheet.macroEnabled.main+xml",xlsb:"application/vnd.ms-excel.sheet.binary.macroEnabled.main",xlam:"application/vnd.ms-excel.addin.macroEnabled.main+xml",xltx:"application/vnd.openxmlformats-officedocument.spreadsheetml.template.main+xml"},strs:{xlsx:"application/vnd.openxmlformats-officedocument.spreadsheetml.sharedStrings+xml",xlsb:"application/vnd.ms-excel.sharedStrings"},comments:{xlsx:"application/vnd.openxmlformats-officedocument.spreadsheetml.comments+xml",xlsb:"application/vnd.ms-excel.comments"},sheets:{xlsx:"application/vnd.openxmlformats-officedocument.spreadsheetml.worksheet+xml",xlsb:"application/vnd.ms-excel.worksheet"},charts:{xlsx:"application/vnd.openxmlformats-officedocument.spreadsheetml.chartsheet+xml",xlsb:"application/vnd.ms-excel.chartsheet"},dialogs:{xlsx:"application/vnd.openxmlformats-officedocument.spreadsheetml.dialogsheet+xml",xlsb:"application/vnd.ms-excel.dialogsheet"},macros:{xlsx:"application/vnd.ms-excel.macrosheet+xml",xlsb:"application/vnd.ms-excel.macrosheet"},metadata:{xlsx:"application/vnd.openxmlformats-officedocument.spreadsheetml.sheetMetadata+xml",xlsb:"application/vnd.ms-excel.sheetMetadata"},styles:{xlsx:"application/vnd.openxmlformats-officedocument.spreadsheetml.styles+xml",xlsb:"application/vnd.ms-excel.styles"}};function ul(e,t){var n,r=function(e){for(var t=[],n=qi(e),r=0;r!==n.length;++r)null==t[e[n[r]]]&&(t[e[n[r]]]=[]),t[e[n[r]]].push(n[r]);return t}(al),o=[];o[o.length]=as,o[o.length]=Ss("Types",null,{xmlns:Ts.CT,"xmlns:xsd":Ts.xsd,"xmlns:xsi":Ts.xsi}),o=o.concat([["xml","application/xml"],["bin","application/vnd.ms-excel.sheet.binary.macroEnabled.main"],["vml","application/vnd.openxmlformats-officedocument.vmlDrawing"],["data","application/vnd.openxmlformats-officedocument.model+data"],["bmp","image/bmp"],["png","image/png"],["gif","image/gif"],["emf","image/x-emf"],["wmf","image/x-wmf"],["jpg","image/jpeg"],["jpeg","image/jpeg"],["tif","image/tiff"],["tiff","image/tiff"],["pdf","application/pdf"],["rels","application/vnd.openxmlformats-package.relationships+xml"]].map((function(e){return Ss("Default",null,{Extension:e[0],ContentType:e[1]})})));var i=function(r){e[r]&&e[r].length>0&&(n=e[r][0],o[o.length]=Ss("Override",null,{PartName:("/"==n[0]?"":"/")+n,ContentType:ll[r][t.bookType]||ll[r].xlsx}))},s=function(n){(e[n]||[]).forEach((function(e){o[o.length]=Ss("Override",null,{PartName:("/"==e[0]?"":"/")+e,ContentType:ll[n][t.bookType]||ll[n].xlsx})}))},a=function(t){(e[t]||[]).forEach((function(e){o[o.length]=Ss("Override",null,{PartName:("/"==e[0]?"":"/")+e,ContentType:r[t][0]})}))};return i("workbooks"),s("sheets"),s("charts"),a("themes"),["strs","styles"].forEach(i),["coreprops","extprops","custprops"].forEach(a),a("vba"),a("comments"),a("threadedcomments"),a("drawings"),s("metadata"),a("people"),o.length>2&&(o[o.length]="</Types>",o[1]=o[1].replace("/>",">")),o.join("")}var cl={WB:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/officeDocument",SHEET:"http://sheetjs.openxmlformats.org/officeDocument/2006/relationships/officeDocument",HLINK:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/hyperlink",VML:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/vmlDrawing",XPATH:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/externalLinkPath",XMISS:"http://schemas.microsoft.com/office/2006/relationships/xlExternalLinkPath/xlPathMissing",XLINK:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/externalLink",CXML:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/customXml",CXMLP:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/customXmlProps",CMNT:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/comments",CORE_PROPS:"http://schemas.openxmlformats.org/package/2006/relationships/metadata/core-properties",EXT_PROPS:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/extended-properties",CUST_PROPS:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/custom-properties",SST:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/sharedStrings",STY:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/styles",THEME:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/theme",CHART:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/chart",CHARTEX:"http://schemas.microsoft.com/office/2014/relationships/chartEx",CS:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/chartsheet",WS:["http://schemas.openxmlformats.org/officeDocument/2006/relationships/worksheet","http://purl.oclc.org/ooxml/officeDocument/relationships/worksheet"],DS:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/dialogsheet",MS:"http://schemas.microsoft.com/office/2006/relationships/xlMacrosheet",IMG:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/image",DRAW:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/drawing",XLMETA:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/sheetMetadata",TCMNT:"http://schemas.microsoft.com/office/2017/10/relationships/threadedComment",PEOPLE:"http://schemas.microsoft.com/office/2017/10/relationships/person",VBA:"http://schemas.microsoft.com/office/2006/relationships/vbaProject"};function pl(e){var t=e.lastIndexOf("/");return e.slice(0,t+1)+"_rels/"+e.slice(t+1)+".rels"}function dl(e){var t=[as,Ss("Relationships",null,{xmlns:Ts.RELS})];return qi(e["!id"]).forEach((function(n){t[t.length]=Ss("Relationship",null,e["!id"][n])})),t.length>2&&(t[t.length]="</Relationships>",t[1]=t[1].replace("/>",">")),t.join("")}function hl(e,t,n,r,o,i){if(o||(o={}),e["!id"]||(e["!id"]={}),e["!idx"]||(e["!idx"]=1),t<0)for(t=e["!idx"];e["!id"]["rId"+t];++t);if(e["!idx"]=t+1,o.Id="rId"+t,o.Type=r,o.Target=n,i?o.TargetMode=i:[cl.HLINK,cl.XPATH,cl.XMISS].indexOf(o.Type)>-1&&(o.TargetMode="External"),e["!id"][o.Id])throw new Error("Cannot rewrite rId "+t);return e["!id"][o.Id]=o,e[("/"+o.Target).replace("//","/")]=o,t}function fl(e,t,n){return['  <rdf:Description rdf:about="'+e+'">\n','    <rdf:type rdf:resource="http://docs.oasis-open.org/ns/office/1.2/meta/'+(n||"odf")+"#"+t+'"/>\n',"  </rdf:Description>\n"].join("")}function ml(){return'<office:document-meta xmlns:office="urn:oasis:names:tc:opendocument:xmlns:office:1.0" xmlns:meta="urn:oasis:names:tc:opendocument:xmlns:meta:1.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:xlink="http://www.w3.org/1999/xlink" office:version="1.2"><office:meta><meta:generator>SheetJS '+Co.version+"</meta:generator></office:meta></office:document-meta>"}var gl=[["cp:category","Category"],["cp:contentStatus","ContentStatus"],["cp:keywords","Keywords"],["cp:lastModifiedBy","LastAuthor"],["cp:lastPrinted","LastPrinted"],["cp:revision","RevNumber"],["cp:version","Version"],["dc:creator","Author"],["dc:description","Comments"],["dc:identifier","Identifier"],["dc:language","Language"],["dc:subject","Subject"],["dc:title","Title"],["dcterms:created","CreatedDate","date"],["dcterms:modified","ModifiedDate","date"]];function yl(e,t,n,r,o){null==o[e]&&null!=t&&""!==t&&(o[e]=t,t=ps(t),r[r.length]=n?Ss(e,t,n):xs(e,t))}function vl(e,t){var n=t||{},r=[as,Ss("cp:coreProperties",null,{"xmlns:cp":Ts.CORE_PROPS,"xmlns:dc":Ts.dc,"xmlns:dcterms":Ts.dcterms,"xmlns:dcmitype":Ts.dcmitype,"xmlns:xsi":Ts.xsi})],o={};if(!e&&!n.Props)return r.join("");e&&(null!=e.CreatedDate&&yl("dcterms:created","string"==typeof e.CreatedDate?e.CreatedDate:Es(e.CreatedDate,n.WTF),{"xsi:type":"dcterms:W3CDTF"},r,o),null!=e.ModifiedDate&&yl("dcterms:modified","string"==typeof e.ModifiedDate?e.ModifiedDate:Es(e.ModifiedDate,n.WTF),{"xsi:type":"dcterms:W3CDTF"},r,o));for(var i=0;i!=gl.length;++i){var s=gl[i],a=n.Props&&null!=n.Props[s[1]]?n.Props[s[1]]:e?e[s[1]]:null;!0===a?a="1":!1===a?a="0":"number"==typeof a&&(a=String(a)),null!=a&&yl(s[0],a,null,r,o)}return r.length>2&&(r[r.length]="</cp:coreProperties>",r[1]=r[1].replace("/>",">")),r.join("")}var bl=[["Application","Application","string"],["AppVersion","AppVersion","string"],["Company","Company","string"],["DocSecurity","DocSecurity","string"],["Manager","Manager","string"],["HyperlinksChanged","HyperlinksChanged","bool"],["SharedDoc","SharedDoc","bool"],["LinksUpToDate","LinksUpToDate","bool"],["ScaleCrop","ScaleCrop","bool"],["HeadingPairs","HeadingPairs","raw"],["TitlesOfParts","TitlesOfParts","raw"]],Cl=["Worksheets","SheetNames","NamedRanges","DefinedNames","Chartsheets","ChartNames"];function wl(e){var t=[],n=Ss;return e||(e={}),e.Application="SheetJS",t[t.length]=as,t[t.length]=Ss("Properties",null,{xmlns:Ts.EXT_PROPS,"xmlns:vt":Ts.vt}),bl.forEach((function(r){if(void 0!==e[r[1]]){var o;switch(r[2]){case"string":o=ps(String(e[r[1]]));break;case"bool":o=e[r[1]]?"true":"false"}void 0!==o&&(t[t.length]=n(r[0],o))}})),t[t.length]=n("HeadingPairs",n("vt:vector",n("vt:variant","<vt:lpstr>Worksheets</vt:lpstr>")+n("vt:variant",n("vt:i4",String(e.Worksheets))),{size:2,baseType:"variant"})),t[t.length]=n("TitlesOfParts",n("vt:vector",e.SheetNames.map((function(e){return"<vt:lpstr>"+ps(e)+"</vt:lpstr>"})).join(""),{size:e.Worksheets,baseType:"lpstr"})),t.length>2&&(t[t.length]="</Properties>",t[1]=t[1].replace("/>",">")),t.join("")}function xl(e){var t=[as,Ss("Properties",null,{xmlns:Ts.CUST_PROPS,"xmlns:vt":Ts.vt})];if(!e)return t.join("");var n=1;return qi(e).forEach((function(r){++n,t[t.length]=Ss("property",function(e,t){switch(typeof e){case"string":var n=Ss("vt:lpwstr",ps(e));return n=n.replace(/&quot;/g,"_x0022_");case"number":return Ss((0|e)==e?"vt:i4":"vt:r8",ps(String(e)));case"boolean":return Ss("vt:bool",e?"true":"false")}if(e instanceof Date)return Ss("vt:filetime",Es(e));throw new Error("Unable to serialize "+e)}(e[r]),{fmtid:"{D5CDD505-2E9C-101B-9397-08002B2CF9AE}",pid:n,name:ps(r)})})),t.length>2&&(t[t.length]="</Properties>",t[1]=t[1].replace("/>",">")),t.join("")}var Pl={Title:"Title",Subject:"Subject",Author:"Author",Keywords:"Keywords",Comments:"Description",LastAuthor:"LastAuthor",RevNumber:"Revision",Application:"AppName",LastPrinted:"LastPrinted",CreatedDate:"Created",ModifiedDate:"LastSaved",Category:"Category",Manager:"Manager",Company:"Company",AppVersion:"Version",ContentStatus:"ContentStatus",Identifier:"Identifier",Language:"Language"};function Sl(e,t){var n=ca(4),r=ca(4);switch(n.write_shift(4,80==e?31:e),e){case 3:r.write_shift(-4,t);break;case 5:(r=ca(8)).write_shift(8,t,"f");break;case 11:r.write_shift(4,t?1:0);break;case 64:r=function(e){var t=("string"==typeof e?new Date(Date.parse(e)):e).getTime()/1e3+11644473600,n=t%Math.pow(2,32),r=(t-n)/Math.pow(2,32);r*=1e7;var o=(n*=1e7)/Math.pow(2,32)|0;o>0&&(n%=Math.pow(2,32),r+=o);var i=ca(8);return i.write_shift(4,n),i.write_shift(4,r),i}(t);break;case 31:case 80:for((r=ca(4+2*(t.length+1)+(t.length%2?0:2))).write_shift(4,t.length+1),r.write_shift(0,t,"dbcs");r.l!=r.length;)r.write_shift(1,0);break;default:throw new Error("TypedPropertyValue unrecognized type "+e+" "+t)}return Bo([n,r])}var El=["CodePage","Thumbnail","_PID_LINKBASE","_PID_HLINKS","SystemIdentifier","FMTID"];function Tl(e){switch(typeof e){case"boolean":return 11;case"number":return(0|e)==e?3:5;case"string":return 31;case"object":if(e instanceof Date)return 64}return-1}function Ol(e,t,n){var r=ca(8),o=[],i=[],s=8,a=0,l=ca(8),u=ca(8);if(l.write_shift(4,2),l.write_shift(4,1200),u.write_shift(4,1),i.push(l),o.push(u),s+=8+l.length,!t){(u=ca(8)).write_shift(4,0),o.unshift(u);var c=[ca(4)];for(c[0].write_shift(4,e.length),a=0;a<e.length;++a){var p=e[a][0];for((l=ca(8+2*(p.length+1)+(p.length%2?0:2))).write_shift(4,a+2),l.write_shift(4,p.length+1),l.write_shift(0,p,"dbcs");l.l!=l.length;)l.write_shift(1,0);c.push(l)}l=Bo(c),i.unshift(l),s+=8+l.length}for(a=0;a<e.length;++a)if((!t||t[e[a][0]])&&!(El.indexOf(e[a][0])>-1||Cl.indexOf(e[a][0])>-1)&&null!=e[a][1]){var d=e[a][1],h=0;if(t){var f=n[h=+t[e[a][0]]];if("version"==f.p&&"string"==typeof d){var m=d.split(".");d=(+m[0]<<16)+(+m[1]||0)}l=Sl(f.t,d)}else{var g=Tl(d);-1==g&&(g=31,d=String(d)),l=Sl(g,d)}i.push(l),(u=ca(8)).write_shift(4,t?h:2+a),o.push(u),s+=8+l.length}var y=8*(i.length+1);for(a=0;a<i.length;++a)o[a].write_shift(4,y),y+=i[a].length;return r.write_shift(4,s),r.write_shift(4,i.length),Bo([r].concat(o).concat(i))}function Vl(e,t,n,r,o,i){var s=ca(o?68:48),a=[s];s.write_shift(2,65534),s.write_shift(2,0),s.write_shift(4,842412599),s.write_shift(16,Mi.utils.consts.HEADER_CLSID,"hex"),s.write_shift(4,o?2:1),s.write_shift(16,t,"hex"),s.write_shift(4,o?68:48);var l=Ol(e,n,r);if(a.push(l),o){var u=Ol(o,null,null);s.write_shift(16,i,"hex"),s.write_shift(4,68+l.length),a.push(u)}return Bo(a)}function _l(e,t){return t||(t=ca(2)),t.write_shift(2,+!!e),t}function Rl(e){return e.read_shift(2,"u")}function Il(e,t){return t||(t=ca(2)),t.write_shift(2,e),t}function Dl(e,t,n){return n||(n=ca(2)),n.write_shift(1,"e"==t?+e:+!!e),n.write_shift(1,"e"==t?1:0),n}function Al(e,t,n){var r=e.read_shift(n&&n.biff>=12?2:1),o="sbcs-cont",i=wo;n&&n.biff>=8&&(wo=1200),n&&8!=n.biff?12==n.biff&&(o="wstr"):e.read_shift(1)&&(o="dbcs-cont"),n.biff>=2&&n.biff<=5&&(o="cpstr");var s=r?e.read_shift(r,o):"";return wo=i,s}function kl(e){var t=e.t||"",n=ca(3);n.write_shift(2,t.length),n.write_shift(1,1);var r=ca(2*t.length);return r.write_shift(2*t.length,t,"utf16le"),Bo([n,r])}function Ml(e,t,n){return n||(n=ca(3+2*e.length)),n.write_shift(2,e.length),n.write_shift(1,1),n.write_shift(31,e,"utf16le"),n}function Nl(e,t){t||(t=ca(6+2*e.length)),t.write_shift(4,1+e.length);for(var n=0;n<e.length;++n)t.write_shift(2,e.charCodeAt(n));return t.write_shift(2,0),t}function Ll(e){var t=ca(512),n=0,r=e.Target;"file://"==r.slice(0,7)&&(r=r.slice(7));var o=r.indexOf("#"),i=o>-1?31:23;switch(r.charAt(0)){case"#":i=28;break;case".":i&=-3}t.write_shift(4,2),t.write_shift(4,i);var s=[8,6815827,6619237,4849780,83];for(n=0;n<s.length;++n)t.write_shift(4,s[n]);if(28==i)Nl(r=r.slice(1),t);else if(2&i){for(s="e0 c9 ea 79 f9 ba ce 11 8c 82 00 aa 00 4b a9 0b".split(" "),n=0;n<s.length;++n)t.write_shift(1,parseInt(s[n],16));var a=o>-1?r.slice(0,o):r;for(t.write_shift(4,2*(a.length+1)),n=0;n<a.length;++n)t.write_shift(2,a.charCodeAt(n));t.write_shift(2,0),8&i&&Nl(o>-1?r.slice(o+1):"",t)}else{for(s="03 03 00 00 00 00 00 00 c0 00 00 00 00 00 00 46".split(" "),n=0;n<s.length;++n)t.write_shift(1,parseInt(s[n],16));for(var l=0;"../"==r.slice(3*l,3*l+3)||"..\\"==r.slice(3*l,3*l+3);)++l;for(t.write_shift(2,l),t.write_shift(4,r.length-3*l+1),n=0;n<r.length-3*l;++n)t.write_shift(1,255&r.charCodeAt(n+3*l));for(t.write_shift(1,0),t.write_shift(2,65535),t.write_shift(2,57005),n=0;n<6;++n)t.write_shift(4,0)}return t.slice(0,t.l)}function jl(e,t,n,r){return r||(r=ca(6)),r.write_shift(2,e),r.write_shift(2,t),r.write_shift(2,n||0),r}function ql(e,t,n){var r=n.biff>8?4:2;return[e.read_shift(r),e.read_shift(r,"i"),e.read_shift(r,"i")]}function Fl(e){var t=e.read_shift(2),n=e.read_shift(2);return{s:{c:e.read_shift(2),r:t},e:{c:e.read_shift(2),r:n}}}function Bl(e,t){return t||(t=ca(8)),t.write_shift(2,e.s.r),t.write_shift(2,e.e.r),t.write_shift(2,e.s.c),t.write_shift(2,e.e.c),t}function Ql(e,t,n){var r=1536,o=16;switch(n.bookType){case"biff8":case"xla":break;case"biff5":r=1280,o=8;break;case"biff4":r=4,o=6;break;case"biff3":r=3,o=6;break;case"biff2":r=2,o=4;break;default:throw new Error("unsupported BIFF version")}var i=ca(o);return i.write_shift(2,r),i.write_shift(2,t),o>4&&i.write_shift(2,29282),o>6&&i.write_shift(2,1997),o>8&&(i.write_shift(2,49161),i.write_shift(2,1),i.write_shift(2,1798),i.write_shift(2,0)),i}function Hl(e,t){var n=!t||t.biff>=8?2:1,r=ca(8+n*e.name.length);r.write_shift(4,e.pos),r.write_shift(1,e.hs||0),r.write_shift(1,e.dt),r.write_shift(1,e.name.length),t.biff>=8&&r.write_shift(1,1),r.write_shift(n*e.name.length,e.name,t.biff<8?"sbcs":"utf16le");var o=r.slice(0,r.l);return o.l=r.l,o}function zl(e,t,n,r){var o=n&&5==n.biff;r||(r=ca(o?3+t.length:5+2*t.length)),r.write_shift(2,e),r.write_shift(o?1:2,t.length),o||r.write_shift(1,1),r.write_shift((o?1:2)*t.length,t,o?"sbcs":"utf16le");var i=r.length>r.l?r.slice(0,r.l):r;return null==i.l&&(i.l=i.length),i}function Ul(e,t,n,r){var o=n&&5==n.biff;r||(r=ca(o?16:20)),r.write_shift(2,0),e.style?(r.write_shift(2,e.numFmtId||0),r.write_shift(2,65524)):(r.write_shift(2,e.numFmtId||0),r.write_shift(2,t<<4));var i=0;return e.numFmtId>0&&o&&(i|=1024),r.write_shift(4,i),r.write_shift(4,0),o||r.write_shift(4,0),r.write_shift(2,0),r}function Wl(e){var t=ca(24),n=wa(e[0]);t.write_shift(2,n.r),t.write_shift(2,n.r),t.write_shift(2,n.c),t.write_shift(2,n.c);for(var r="d0 c9 ea 79 f9 ba ce 11 8c 82 00 aa 00 4b a9 0b".split(" "),o=0;o<16;++o)t.write_shift(1,parseInt(r[o],16));return Bo([t,Ll(e[1])])}function Gl(e){var t=e[1].Tooltip,n=ca(10+2*(t.length+1));n.write_shift(2,2048);var r=wa(e[0]);n.write_shift(2,r.r),n.write_shift(2,r.r),n.write_shift(2,r.c),n.write_shift(2,r.c);for(var o=0;o<t.length;++o)n.write_shift(2,t.charCodeAt(o));return n.write_shift(2,0),n}var $l=function(){var e={1:437,2:850,3:1252,4:1e4,100:852,101:866,102:865,103:861,104:895,105:620,106:737,107:857,120:950,121:949,122:936,123:932,124:874,125:1255,126:1256,150:10007,151:10029,152:10006,200:1250,201:1251,202:1254,203:1253,0:20127,8:865,9:437,10:850,11:437,13:437,14:850,15:437,16:850,17:437,18:850,19:932,20:850,21:437,22:850,23:865,24:437,25:437,26:850,27:437,28:863,29:850,31:852,34:852,35:852,36:860,37:850,38:866,55:850,64:852,77:936,78:949,79:950,80:874,87:1252,88:1252,89:1252,108:863,134:737,135:852,136:857,204:1257,255:16969},t=Bi({1:437,2:850,3:1252,4:1e4,100:852,101:866,102:865,103:861,104:895,105:620,106:737,107:857,120:950,121:949,122:936,123:932,124:874,125:1255,126:1256,150:10007,151:10029,152:10006,200:1250,201:1251,202:1254,203:1253,0:20127});function n(t,n){var r=n||{};r.dateNF||(r.dateNF="yyyymmdd");var o=_a(function(t,n){var r=[],o=No(1);switch(n.type){case"base64":o=jo(Ao(t));break;case"binary":o=jo(t);break;case"buffer":case"array":o=t}la(o,0);var i=o.read_shift(1),s=!!(136&i),a=!1,l=!1;switch(i){case 2:case 3:case 131:case 139:case 245:break;case 48:case 49:a=!0,s=!0;break;case 140:l=!0;break;default:throw new Error("DBF Unsupported Version: "+i.toString(16))}var u=0,c=521;2==i&&(u=o.read_shift(2)),o.l+=3,2!=i&&(u=o.read_shift(4)),u>1048576&&(u=1e6),2!=i&&(c=o.read_shift(2));var p=o.read_shift(2),d=n.codepage||1252;2!=i&&(o.l+=16,o.read_shift(1),0!==o[o.l]&&(d=e[o[o.l]]),o.l+=1,o.l+=2),l&&(o.l+=36);for(var h=[],f={},m=Math.min(o.length,2==i?521:c-10-(a?264:0)),g=l?32:11;o.l<m&&13!=o[o.l];)switch((f={}).name=Oo.utils.decode(d,o.slice(o.l,o.l+g)).replace(/[\u0000\r\n].*$/g,""),o.l+=g,f.type=String.fromCharCode(o.read_shift(1)),2==i||l||(f.offset=o.read_shift(4)),f.len=o.read_shift(1),2==i&&(f.offset=o.read_shift(2)),f.dec=o.read_shift(1),f.name.length&&h.push(f),2!=i&&(o.l+=l?13:14),f.type){case"B":a&&8==f.len||!n.WTF||console.log("Skipping "+f.name+":"+f.type);break;case"G":case"P":n.WTF&&console.log("Skipping "+f.name+":"+f.type);break;case"+":case"0":case"@":case"C":case"D":case"F":case"I":case"L":case"M":case"N":case"O":case"T":case"Y":break;default:throw new Error("Unknown Field Type: "+f.type)}if(13!==o[o.l]&&(o.l=c-1),13!==o.read_shift(1))throw new Error("DBF Terminator not found "+o.l+" "+o[o.l]);o.l=c;var y=0,v=0;for(r[0]=[],v=0;v!=h.length;++v)r[0][v]=h[v].name;for(;u-- >0;)if(42!==o[o.l])for(++o.l,r[++y]=[],v=0,v=0;v!=h.length;++v){var b=o.slice(o.l,o.l+h[v].len);o.l+=h[v].len,la(b,0);var C=Oo.utils.decode(d,b);switch(h[v].type){case"C":C.trim().length&&(r[y][v]=C.replace(/\s+$/,""));break;case"D":8===C.length?r[y][v]=new Date(+C.slice(0,4),+C.slice(4,6)-1,+C.slice(6,8)):r[y][v]=C;break;case"F":r[y][v]=parseFloat(C.trim());break;case"+":case"I":r[y][v]=l?2147483648^b.read_shift(-4,"i"):b.read_shift(4,"i");break;case"L":switch(C.trim().toUpperCase()){case"Y":case"T":r[y][v]=!0;break;case"N":case"F":r[y][v]=!1;break;case"":case"?":break;default:throw new Error("DBF Unrecognized L:|"+C+"|")}break;case"M":if(!s)throw new Error("DBF Unexpected MEMO for type "+i.toString(16));r[y][v]="##MEMO##"+(l?parseInt(C.trim(),10):b.read_shift(4));break;case"N":(C=C.replace(/\u0000/g,"").trim())&&"."!=C&&(r[y][v]=+C||0);break;case"@":r[y][v]=new Date(b.read_shift(-8,"f")-621356832e5);break;case"T":r[y][v]=new Date(864e5*(b.read_shift(4)-2440588)+b.read_shift(4));break;case"Y":r[y][v]=b.read_shift(4,"i")/1e4+b.read_shift(4,"i")/1e4*Math.pow(2,32);break;case"O":r[y][v]=-b.read_shift(-8,"f");break;case"B":if(a&&8==h[v].len){r[y][v]=b.read_shift(8,"f");break}case"G":case"P":b.l+=h[v].len;break;case"0":if("_NullFlags"===h[v].name)break;default:throw new Error("DBF Unsupported data type "+h[v].type)}}else o.l+=p;if(2!=i&&o.l<o.length&&26!=o[o.l++])throw new Error("DBF EOF Marker missing "+(o.l-1)+" of "+o.length+" "+o[o.l-1].toString(16));return n&&n.sheetRows&&(r=r.slice(0,n.sheetRows)),n.DBF=h,r}(t,r),r);return o["!cols"]=r.DBF.map((function(e){return{wch:e.len,DBF:e}})),delete r.DBF,o}var r={B:8,C:250,L:1,D:8,"?":0,"":0};return{to_workbook:function(e,t){try{return Oa(n(e,t),t)}catch(e){if(t&&t.WTF)throw e}return{SheetNames:[],Sheets:{}}},to_sheet:n,from_sheet:function(e,n){var o=n||{};if(+o.codepage>=0&&To(+o.codepage),"string"==o.type)throw new Error("Cannot write DBF to JS string");var i=pa(),s=qp(e,{header:1,raw:!0,cellDates:!0}),a=s[0],l=s.slice(1),u=e["!cols"]||[],c=0,p=0,d=0,h=1;for(c=0;c<a.length;++c)if(((u[c]||{}).DBF||{}).name)a[c]=u[c].DBF.name,++d;else if(null!=a[c]){if(++d,"number"==typeof a[c]&&(a[c]=a[c].toString(10)),"string"!=typeof a[c])throw new Error("DBF Invalid column name "+a[c]+" |"+typeof a[c]+"|");if(a.indexOf(a[c])!==c)for(p=0;p<1024;++p)if(-1==a.indexOf(a[c]+"_"+p)){a[c]+="_"+p;break}}var f=Ea(e["!ref"]),m=[],g=[],y=[];for(c=0;c<=f.e.c-f.s.c;++c){var v="",b="",C=0,w=[];for(p=0;p<l.length;++p)null!=l[p][c]&&w.push(l[p][c]);if(0!=w.length&&null!=a[c]){for(p=0;p<w.length;++p){switch(typeof w[p]){case"number":b="B";break;case"string":default:b="C";break;case"boolean":b="L";break;case"object":b=w[p]instanceof Date?"D":"C"}C=Math.max(C,String(w[p]).length),v=v&&v!=b?"C":b}C>250&&(C=250),"C"==(b=((u[c]||{}).DBF||{}).type)&&u[c].DBF.len>C&&(C=u[c].DBF.len),"B"==v&&"N"==b&&(v="N",y[c]=u[c].DBF.dec,C=u[c].DBF.len),g[c]="C"==v||"N"==b?C:r[v]||0,h+=g[c],m[c]=v}else m[c]="?"}var x=i.next(32);for(x.write_shift(4,318902576),x.write_shift(4,l.length),x.write_shift(2,296+32*d),x.write_shift(2,h),c=0;c<4;++c)x.write_shift(4,0);for(x.write_shift(4,0|(+t[xo]||3)<<8),c=0,p=0;c<a.length;++c)if(null!=a[c]){var P=i.next(32),S=(a[c].slice(-10)+"\0\0\0\0\0\0\0\0\0\0\0").slice(0,11);P.write_shift(1,S,"sbcs"),P.write_shift(1,"?"==m[c]?"C":m[c],"sbcs"),P.write_shift(4,p),P.write_shift(1,g[c]||r[m[c]]||0),P.write_shift(1,y[c]||0),P.write_shift(1,2),P.write_shift(4,0),P.write_shift(1,0),P.write_shift(4,0),P.write_shift(4,0),p+=g[c]||r[m[c]]||0}var E=i.next(264);for(E.write_shift(4,13),c=0;c<65;++c)E.write_shift(4,0);for(c=0;c<l.length;++c){var T=i.next(h);for(T.write_shift(1,0),p=0;p<a.length;++p)if(null!=a[p])switch(m[p]){case"L":T.write_shift(1,null==l[c][p]?63:l[c][p]?84:70);break;case"B":T.write_shift(8,l[c][p]||0,"f");break;case"N":var O="0";for("number"==typeof l[c][p]&&(O=l[c][p].toFixed(y[p]||0)),d=0;d<g[p]-O.length;++d)T.write_shift(1,32);T.write_shift(1,O,"sbcs");break;case"D":l[c][p]?(T.write_shift(4,("0000"+l[c][p].getFullYear()).slice(-4),"sbcs"),T.write_shift(2,("00"+(l[c][p].getMonth()+1)).slice(-2),"sbcs"),T.write_shift(2,("00"+l[c][p].getDate()).slice(-2),"sbcs")):T.write_shift(8,"00000000","sbcs");break;case"C":var V=String(null!=l[c][p]?l[c][p]:"").slice(0,g[p]);for(T.write_shift(1,V,"sbcs"),d=0;d<g[p]-V.length;++d)T.write_shift(1,32)}}return i.next(1).write_shift(1,26),i.end()}}}(),Jl=function(){var e={AA:"À",BA:"Á",CA:"Â",DA:195,HA:"Ä",JA:197,AE:"È",BE:"É",CE:"Ê",HE:"Ë",AI:"Ì",BI:"Í",CI:"Î",HI:"Ï",AO:"Ò",BO:"Ó",CO:"Ô",DO:213,HO:"Ö",AU:"Ù",BU:"Ú",CU:"Û",HU:"Ü",Aa:"à",Ba:"á",Ca:"â",Da:227,Ha:"ä",Ja:229,Ae:"è",Be:"é",Ce:"ê",He:"ë",Ai:"ì",Bi:"í",Ci:"î",Hi:"ï",Ao:"ò",Bo:"ó",Co:"ô",Do:245,Ho:"ö",Au:"ù",Bu:"ú",Cu:"û",Hu:"ü",KC:"Ç",Kc:"ç",q:"æ",z:"œ",a:"Æ",j:"Œ",DN:209,Dn:241,Hy:255,S:169,c:170,R:174,"B ":180,0:176,1:177,2:178,3:179,5:181,6:182,7:183,Q:185,k:186,b:208,i:216,l:222,s:240,y:248,"!":161,'"':162,"#":163,"(":164,"%":165,"'":167,"H ":168,"+":171,";":187,"<":188,"=":189,">":190,"?":191,"{":223},t=new RegExp("N("+qi(e).join("|").replace(/\|\|\|/,"|\\||").replace(/([?()+])/g,"\\$1")+"|\\|)","gm"),n=function(t,n){var r=e[n];return"number"==typeof r?_o(r):r},r=function(e,t,n){var r=t.charCodeAt(0)-32<<4|n.charCodeAt(0)-48;return 59==r?e:_o(r)};function o(e,o){var i,s=e.split(/[\n\r]+/),a=-1,l=-1,u=0,c=0,p=[],d=[],h=null,f={},m=[],g=[],y=[],v=0;for(+o.codepage>=0&&To(+o.codepage);u!==s.length;++u){v=0;var b,C=s[u].trim().replace(/\x1B([\x20-\x2F])([\x30-\x3F])/g,r).replace(t,n),w=C.replace(/;;/g,"\0").split(";").map((function(e){return e.replace(/\u0000/g,";")})),x=w[0];if(C.length>0)switch(x){case"ID":case"E":case"B":case"O":case"W":break;case"P":"P"==w[1].charAt(0)&&d.push(C.slice(3).replace(/;;/g,";"));break;case"C":var P=!1,S=!1,E=!1,T=!1,O=-1,V=-1;for(c=1;c<w.length;++c)switch(w[c].charAt(0)){case"A":case"G":break;case"X":l=parseInt(w[c].slice(1))-1,S=!0;break;case"Y":for(a=parseInt(w[c].slice(1))-1,S||(l=0),i=p.length;i<=a;++i)p[i]=[];break;case"K":'"'===(b=w[c].slice(1)).charAt(0)?b=b.slice(1,b.length-1):"TRUE"===b?b=!0:"FALSE"===b?b=!1:isNaN(ns(b))?isNaN(os(b).getDate())||(b=Xi(b)):(b=ns(b),null!==h&&Ti(h)&&(b=$i(b))),void 0!==Oo&&"string"==typeof b&&"string"!=(o||{}).type&&(o||{}).codepage&&(b=Oo.utils.decode(o.codepage,b)),P=!0;break;case"E":T=!0;var _=Mu(w[c].slice(1),{r:a,c:l});p[a][l]=[p[a][l],_];break;case"S":E=!0,p[a][l]=[p[a][l],"S5S"];break;case"R":O=parseInt(w[c].slice(1))-1;break;case"C":V=parseInt(w[c].slice(1))-1;break;default:if(o&&o.WTF)throw new Error("SYLK bad record "+C)}if(P&&(p[a][l]&&2==p[a][l].length?p[a][l][0]=b:p[a][l]=b,h=null),E){if(T)throw new Error("SYLK shared formula cannot have own formula");var R=O>-1&&p[O][V];if(!R||!R[1])throw new Error("SYLK shared formula cannot find base");p[a][l][1]=ju(R[1],{r:a-O,c:l-V})}break;case"F":var I=0;for(c=1;c<w.length;++c)switch(w[c].charAt(0)){case"X":l=parseInt(w[c].slice(1))-1,++I;break;case"Y":for(a=parseInt(w[c].slice(1))-1,i=p.length;i<=a;++i)p[i]=[];break;case"M":v=parseInt(w[c].slice(1))/20;break;case"F":case"G":case"S":case"D":case"N":break;case"P":h=d[parseInt(w[c].slice(1))];break;case"W":for(y=w[c].slice(1).split(" "),i=parseInt(y[0],10);i<=parseInt(y[1],10);++i)v=parseInt(y[2],10),g[i-1]=0===v?{hidden:!0}:{wch:v},pu(g[i-1]);break;case"C":g[l=parseInt(w[c].slice(1))-1]||(g[l]={});break;case"R":m[a=parseInt(w[c].slice(1))-1]||(m[a]={}),v>0?(m[a].hpt=v,m[a].hpx=fu(v)):0===v&&(m[a].hidden=!0);break;default:if(o&&o.WTF)throw new Error("SYLK bad record "+C)}I<1&&(h=null);break;default:if(o&&o.WTF)throw new Error("SYLK bad record "+C)}}return m.length>0&&(f["!rows"]=m),g.length>0&&(f["!cols"]=g),o&&o.sheetRows&&(p=p.slice(0,o.sheetRows)),[p,f]}function i(e,t){var n=function(e,t){switch(t.type){case"base64":return o(Ao(e),t);case"binary":return o(e,t);case"buffer":return o(ko&&Buffer.isBuffer(e)?e.toString("binary"):Fo(e),t);case"array":return o(Zi(e),t)}throw new Error("Unrecognized type "+t.type)}(e,t),r=n[0],i=n[1],s=_a(r,t);return qi(i).forEach((function(e){s[e]=i[e]})),s}function s(e,t,n,r){var o="C;Y"+(n+1)+";X"+(r+1)+";K";switch(e.t){case"n":o+=e.v||0,e.f&&!e.F&&(o+=";E"+Lu(e.f,{r:n,c:r}));break;case"b":o+=e.v?"TRUE":"FALSE";break;case"e":o+=e.w||e.v;break;case"d":o+='"'+(e.w||e.v)+'"';break;case"s":o+='"'+e.v.replace(/"/g,"").replace(/;/g,";;")+'"'}return o}return e["|"]=254,{to_workbook:function(e,t){return Oa(i(e,t),t)},to_sheet:i,from_sheet:function(e,t){var n,r,o=["ID;PWXL;N;E"],i=[],a=Ea(e["!ref"]),l=Array.isArray(e),u="\r\n";o.push("P;PGeneral"),o.push("F;P0;DG0G8;M255"),e["!cols"]&&(r=o,e["!cols"].forEach((function(e,t){var n="F;W"+(t+1)+" "+(t+1)+" ";e.hidden?n+="0":("number"!=typeof e.width||e.wpx||(e.wpx=lu(e.width)),"number"!=typeof e.wpx||e.wch||(e.wch=uu(e.wpx)),"number"==typeof e.wch&&(n+=Math.round(e.wch)))," "!=n.charAt(n.length-1)&&r.push(n)}))),e["!rows"]&&function(e,t){t.forEach((function(t,n){var r="F;";t.hidden?r+="M0;":t.hpt?r+="M"+20*t.hpt+";":t.hpx&&(r+="M"+20*hu(t.hpx)+";"),r.length>2&&e.push(r+"R"+(n+1))}))}(o,e["!rows"]),o.push("B;Y"+(a.e.r-a.s.r+1)+";X"+(a.e.c-a.s.c+1)+";D"+[a.s.c,a.s.r,a.e.c,a.e.r].join(" "));for(var c=a.s.r;c<=a.e.r;++c)for(var p=a.s.c;p<=a.e.c;++p){var d=xa({r:c,c:p});(n=l?(e[c]||[])[p]:e[d])&&(null!=n.v||n.f&&!n.F)&&i.push(s(n,0,c,p))}return o.join(u)+u+i.join(u)+u+"E"+u}}}(),Kl=function(){function e(e,t){for(var n=e.split("\n"),r=-1,o=-1,i=0,s=[];i!==n.length;++i)if("BOT"!==n[i].trim()){if(!(r<0)){for(var a=n[i].trim().split(","),l=a[0],u=a[1],c=n[++i]||"";1&(c.match(/["]/g)||[]).length&&i<n.length-1;)c+="\n"+n[++i];switch(c=c.trim(),+l){case-1:if("BOT"===c){s[++r]=[],o=0;continue}if("EOD"!==c)throw new Error("Unrecognized DIF special command "+c);break;case 0:"TRUE"===c?s[r][o]=!0:"FALSE"===c?s[r][o]=!1:isNaN(ns(u))?isNaN(os(u).getDate())?s[r][o]=u:s[r][o]=Xi(u):s[r][o]=ns(u),++o;break;case 1:(c=(c=c.slice(1,c.length-1)).replace(/""/g,'"'))&&c.match(/^=".*"$/)&&(c=c.slice(2,-1)),s[r][o++]=""!==c?c:null}if("EOD"===c)break}}else s[++r]=[],o=0;return t&&t.sheetRows&&(s=s.slice(0,t.sheetRows)),s}function t(t,n){return _a(function(t,n){switch(n.type){case"base64":return e(Ao(t),n);case"binary":return e(t,n);case"buffer":return e(ko&&Buffer.isBuffer(t)?t.toString("binary"):Fo(t),n);case"array":return e(Zi(t),n)}throw new Error("Unrecognized type "+n.type)}(t,n),n)}var n=function(){var e=function(e,t,n,r,o){e.push(t),e.push(n+","+r),e.push('"'+o.replace(/"/g,'""')+'"')},t=function(e,t,n,r){e.push(t+","+n),e.push(1==t?'"'+r.replace(/"/g,'""')+'"':r)};return function(n){var r,o=[],i=Ea(n["!ref"]),s=Array.isArray(n);e(o,"TABLE",0,1,"sheetjs"),e(o,"VECTORS",0,i.e.r-i.s.r+1,""),e(o,"TUPLES",0,i.e.c-i.s.c+1,""),e(o,"DATA",0,0,"");for(var a=i.s.r;a<=i.e.r;++a){t(o,-1,0,"BOT");for(var l=i.s.c;l<=i.e.c;++l){var u=xa({r:a,c:l});if(r=s?(n[a]||[])[l]:n[u])switch(r.t){case"n":var c=r.w;c||null==r.v||(c=r.v),null==c?r.f&&!r.F?t(o,1,0,"="+r.f):t(o,1,0,""):t(o,0,c,"V");break;case"b":t(o,0,r.v?1:0,r.v?"TRUE":"FALSE");break;case"s":t(o,1,0,isNaN(r.v)?r.v:'="'+r.v+'"');break;case"d":r.w||(r.w=_i(r.z||Zo[14],zi(Xi(r.v)))),t(o,0,r.w,"V");break;default:t(o,1,0,"")}else t(o,1,0,"")}}return t(o,-1,0,"EOD"),o.join("\r\n")}}();return{to_workbook:function(e,n){return Oa(t(e,n),n)},to_sheet:t,from_sheet:n}}(),Yl=function(){function e(e){return e.replace(/\\b/g,"\\").replace(/\\c/g,":").replace(/\\n/g,"\n")}function t(e){return e.replace(/\\/g,"\\b").replace(/:/g,"\\c").replace(/\n/g,"\\n")}function n(t,n){return _a(function(t,n){for(var r=t.split("\n"),o=-1,i=-1,s=0,a=[];s!==r.length;++s){var l=r[s].trim().split(":");if("cell"===l[0]){var u=wa(l[1]);if(a.length<=u.r)for(o=a.length;o<=u.r;++o)a[o]||(a[o]=[]);switch(o=u.r,i=u.c,l[2]){case"t":a[o][i]=e(l[3]);break;case"v":a[o][i]=+l[3];break;case"vtf":var c=l[l.length-1];case"vtc":"nl"===l[3]?a[o][i]=!!+l[4]:a[o][i]=+l[4],"vtf"==l[2]&&(a[o][i]=[a[o][i],c])}}}return n&&n.sheetRows&&(a=a.slice(0,n.sheetRows)),a}(t,n),n)}var r=["socialcalc:version:1.5","MIME-Version: 1.0","Content-Type: multipart/mixed; boundary=SocialCalcSpreadsheetControlSave"].join("\n"),o=["--SocialCalcSpreadsheetControlSave","Content-type: text/plain; charset=UTF-8"].join("\n")+"\n",i=["# SocialCalc Spreadsheet Control Save","part:sheet"].join("\n"),s="--SocialCalcSpreadsheetControlSave--";function a(e){if(!e||!e["!ref"])return"";for(var n,r=[],o=[],i="",s=Pa(e["!ref"]),a=Array.isArray(e),l=s.s.r;l<=s.e.r;++l)for(var u=s.s.c;u<=s.e.c;++u)if(i=xa({r:l,c:u}),(n=a?(e[l]||[])[u]:e[i])&&null!=n.v&&"z"!==n.t){switch(o=["cell",i,"t"],n.t){case"s":case"str":o.push(t(n.v));break;case"n":n.f?(o[2]="vtf",o[3]="n",o[4]=n.v,o[5]=t(n.f)):(o[2]="v",o[3]=n.v);break;case"b":o[2]="vt"+(n.f?"f":"c"),o[3]="nl",o[4]=n.v?"1":"0",o[5]=t(n.f||(n.v?"TRUE":"FALSE"));break;case"d":var c=zi(Xi(n.v));o[2]="vtc",o[3]="nd",o[4]=""+c,o[5]=n.w||_i(n.z||Zo[14],c);break;case"e":continue}r.push(o.join(":"))}return r.push("sheet:c:"+(s.e.c-s.s.c+1)+":r:"+(s.e.r-s.s.r+1)+":tvf:1"),r.push("valueformat:1:text-wiki"),r.join("\n")}return{to_workbook:function(e,t){return Oa(n(e,t),t)},to_sheet:n,from_sheet:function(e){return[r,o,i,o,a(e),s].join("\n")}}}(),Xl=function(){function e(e,t,n,r,o){o.raw?t[n][r]=e:""===e||("TRUE"===e?t[n][r]=!0:"FALSE"===e?t[n][r]=!1:isNaN(ns(e))?isNaN(os(e).getDate())?t[n][r]=e:t[n][r]=Xi(e):t[n][r]=ns(e))}var t={44:",",9:"\t",59:";",124:"|"},n={44:3,9:2,59:1,124:0};function r(e){for(var r={},o=!1,i=0,s=0;i<e.length;++i)34==(s=e.charCodeAt(i))?o=!o:!o&&s in t&&(r[s]=(r[s]||0)+1);for(i in s=[],r)Object.prototype.hasOwnProperty.call(r,i)&&s.push([r[i],i]);if(!s.length)for(i in r=n)Object.prototype.hasOwnProperty.call(r,i)&&s.push([r[i],i]);return s.sort((function(e,t){return e[0]-t[0]||n[e[1]]-n[t[1]]})),t[s.pop()[1]]||44}function o(e,t){var n=t||{},o="";null!=Ro&&null==n.dense&&(n.dense=Ro);var i=n.dense?[]:{},s={s:{c:0,r:0},e:{c:0,r:0}};"sep="==e.slice(0,4)?13==e.charCodeAt(5)&&10==e.charCodeAt(6)?(o=e.charAt(4),e=e.slice(7)):13==e.charCodeAt(5)||10==e.charCodeAt(5)?(o=e.charAt(4),e=e.slice(6)):o=r(e.slice(0,1024)):o=n&&n.FS?n.FS:r(e.slice(0,1024));var a=0,l=0,u=0,c=0,p=0,d=o.charCodeAt(0),h=!1,f=0,m=e.charCodeAt(0);e=e.replace(/\r\n/gm,"\n");var g,y,v=null!=n.dateNF?(y=(y="number"==typeof(g=n.dateNF)?Zo[g]:g).replace(Ai,"(\\d+)"),new RegExp("^"+y+"$")):null;function b(){var t=e.slice(c,p),r={};if('"'==t.charAt(0)&&'"'==t.charAt(t.length-1)&&(t=t.slice(1,-1).replace(/""/g,'"')),0===t.length)r.t="z";else if(n.raw)r.t="s",r.v=t;else if(0===t.trim().length)r.t="s",r.v=t;else if(61==t.charCodeAt(0))34==t.charCodeAt(1)&&34==t.charCodeAt(t.length-1)?(r.t="s",r.v=t.slice(2,-1).replace(/""/g,'"')):function(e){return 1!=e.length}(t)?(r.t="n",r.f=t.slice(1)):(r.t="s",r.v=t);else if("TRUE"==t)r.t="b",r.v=!0;else if("FALSE"==t)r.t="b",r.v=!1;else if(isNaN(u=ns(t)))if(!isNaN(os(t).getDate())||v&&t.match(v)){r.z=n.dateNF||Zo[14];var o=0;v&&t.match(v)&&(t=function(e,t,n){var r=-1,o=-1,i=-1,s=-1,a=-1,l=-1;(t.match(Ai)||[]).forEach((function(e,t){var u=parseInt(n[t+1],10);switch(e.toLowerCase().charAt(0)){case"y":r=u;break;case"d":i=u;break;case"h":s=u;break;case"s":l=u;break;case"m":s>=0?a=u:o=u}})),l>=0&&-1==a&&o>=0&&(a=o,o=-1);var u=(""+(r>=0?r:(new Date).getFullYear())).slice(-4)+"-"+("00"+(o>=1?o:1)).slice(-2)+"-"+("00"+(i>=1?i:1)).slice(-2);7==u.length&&(u="0"+u),8==u.length&&(u="20"+u);var c=("00"+(s>=0?s:0)).slice(-2)+":"+("00"+(a>=0?a:0)).slice(-2)+":"+("00"+(l>=0?l:0)).slice(-2);return-1==s&&-1==a&&-1==l?u:-1==r&&-1==o&&-1==i?c:u+"T"+c}(0,n.dateNF,t.match(v)||[]),o=1),n.cellDates?(r.t="d",r.v=Xi(t,o)):(r.t="n",r.v=zi(Xi(t,o))),!1!==n.cellText&&(r.w=_i(r.z,r.v instanceof Date?zi(r.v):r.v)),n.cellNF||delete r.z}else r.t="s",r.v=t;else r.t="n",!1!==n.cellText&&(r.w=t),r.v=u;if("z"==r.t||(n.dense?(i[a]||(i[a]=[]),i[a][l]=r):i[xa({c:l,r:a})]=r),c=p+1,m=e.charCodeAt(c),s.e.c<l&&(s.e.c=l),s.e.r<a&&(s.e.r=a),f==d)++l;else if(l=0,++a,n.sheetRows&&n.sheetRows<=a)return!0}e:for(;p<e.length;++p)switch(f=e.charCodeAt(p)){case 34:34===m&&(h=!h);break;case d:case 10:case 13:if(!h&&b())break e}return p-c>0&&b(),i["!ref"]=Sa(s),i}function i(t,n){var r="",i="string"==n.type?[0,0,0,0]:function(e,t){var n="";switch((t||{}).type||"base64"){case"buffer":case"array":return[e[0],e[1],e[2],e[3],e[4],e[5],e[6],e[7]];case"base64":n=Ao(e.slice(0,12));break;case"binary":n=e;break;default:throw new Error("Unrecognized type "+(t&&t.type||"undefined"))}return[n.charCodeAt(0),n.charCodeAt(1),n.charCodeAt(2),n.charCodeAt(3),n.charCodeAt(4),n.charCodeAt(5),n.charCodeAt(6),n.charCodeAt(7)]}(t,n);switch(n.type){case"base64":r=Ao(t);break;case"binary":case"string":r=t;break;case"buffer":r=65001==n.codepage?t.toString("utf8"):n.codepage&&void 0!==Oo?Oo.utils.decode(n.codepage,t):ko&&Buffer.isBuffer(t)?t.toString("binary"):Fo(t);break;case"array":r=Zi(t);break;default:throw new Error("Unrecognized type "+n.type)}return 239==i[0]&&187==i[1]&&191==i[2]?r=vs(r.slice(3)):"string"!=n.type&&"buffer"!=n.type&&65001==n.codepage?r=vs(r):"binary"==n.type&&void 0!==Oo&&n.codepage&&(r=Oo.utils.decode(n.codepage,Oo.utils.encode(28591,r))),"socialcalc:version:"==r.slice(0,19)?Yl.to_sheet("string"==n.type?r:vs(r),n):function(t,n){return n&&n.PRN?n.FS||"sep="==t.slice(0,4)||t.indexOf("\t")>=0||t.indexOf(",")>=0||t.indexOf(";")>=0?o(t,n):_a(function(t,n){var r=n||{},o=[];if(!t||0===t.length)return o;for(var i=t.split(/[\r\n]/),s=i.length-1;s>=0&&0===i[s].length;)--s;for(var a=10,l=0,u=0;u<=s;++u)-1==(l=i[u].indexOf(" "))?l=i[u].length:l++,a=Math.max(a,l);for(u=0;u<=s;++u){o[u]=[];var c=0;for(e(i[u].slice(0,a).trim(),o,u,c,r),c=1;c<=(i[u].length-a)/10+1;++c)e(i[u].slice(a+10*(c-1),a+10*c).trim(),o,u,c,r)}return r.sheetRows&&(o=o.slice(0,r.sheetRows)),o}(t,n),n):o(t,n)}(r,n)}return{to_workbook:function(e,t){return Oa(i(e,t),t)},to_sheet:i,from_sheet:function(e){for(var t,n=[],r=Ea(e["!ref"]),o=Array.isArray(e),i=r.s.r;i<=r.e.r;++i){for(var s=[],a=r.s.c;a<=r.e.c;++a){var l=xa({r:i,c:a});if((t=o?(e[i]||[])[a]:e[l])&&null!=t.v){for(var u=(t.w||(Ta(t),t.w)||"").slice(0,10);u.length<10;)u+=" ";s.push(u+(0===a?" ":""))}else s.push("          ")}n.push(s.join(""))}return n.join("\n")}}}(),Zl=function(){function e(e,t,n){if(e){la(e,e.l||0);for(var r=n.Enum||y;e.l<e.length;){var o=e.read_shift(2),i=r[o]||r[65535],s=e.read_shift(2),a=e.l+s,l=i.f&&i.f(e,s,n);if(e.l=a,t(l,i,o))return}}}function t(t,n){if(!t)return t;var r=n||{};null!=Ro&&null==r.dense&&(r.dense=Ro);var o=r.dense?[]:{},i="Sheet1",s="",a=0,l={},u=[],c=[],p={s:{r:0,c:0},e:{r:0,c:0}},d=r.sheetRows||0;if(0==t[2]&&(8==t[3]||9==t[3])&&t.length>=16&&5==t[14]&&108===t[15])throw new Error("Unsupported Works 3 for Mac file");if(2==t[2])r.Enum=y,e(t,(function(e,t,n){switch(n){case 0:r.vers=e,e>=4096&&(r.qpro=!0);break;case 6:p=e;break;case 204:e&&(s=e);break;case 222:s=e;break;case 15:case 51:r.qpro||(e[1].v=e[1].v.slice(1));case 13:case 14:case 16:14==n&&112==(112&e[2])&&(15&e[2])>1&&(15&e[2])<15&&(e[1].z=r.dateNF||Zo[14],r.cellDates&&(e[1].t="d",e[1].v=$i(e[1].v))),r.qpro&&e[3]>a&&(o["!ref"]=Sa(p),l[i]=o,u.push(i),o=r.dense?[]:{},p={s:{r:0,c:0},e:{r:0,c:0}},a=e[3],i=s||"Sheet"+(a+1),s="");var c=r.dense?(o[e[0].r]||[])[e[0].c]:o[xa(e[0])];if(c){c.t=e[1].t,c.v=e[1].v,null!=e[1].z&&(c.z=e[1].z),null!=e[1].f&&(c.f=e[1].f);break}r.dense?(o[e[0].r]||(o[e[0].r]=[]),o[e[0].r][e[0].c]=e[1]):o[xa(e[0])]=e[1]}}),r);else{if(26!=t[2]&&14!=t[2])throw new Error("Unrecognized LOTUS BOF "+t[2]);r.Enum=v,14==t[2]&&(r.qpro=!0,t.l=0),e(t,(function(e,t,n){switch(n){case 204:i=e;break;case 22:e[1].v=e[1].v.slice(1);case 23:case 24:case 25:case 37:case 39:case 40:if(e[3]>a&&(o["!ref"]=Sa(p),l[i]=o,u.push(i),o=r.dense?[]:{},p={s:{r:0,c:0},e:{r:0,c:0}},a=e[3],i="Sheet"+(a+1)),d>0&&e[0].r>=d)break;r.dense?(o[e[0].r]||(o[e[0].r]=[]),o[e[0].r][e[0].c]=e[1]):o[xa(e[0])]=e[1],p.e.c<e[0].c&&(p.e.c=e[0].c),p.e.r<e[0].r&&(p.e.r=e[0].r);break;case 27:e[14e3]&&(c[e[14e3][0]]=e[14e3][1]);break;case 1537:c[e[0]]=e[1],e[0]==a&&(i=e[1])}}),r)}if(o["!ref"]=Sa(p),l[s||i]=o,u.push(s||i),!c.length)return{SheetNames:u,Sheets:l};for(var h={},f=[],m=0;m<c.length;++m)l[u[m]]?(f.push(c[m]||u[m]),h[c[m]]=l[c[m]]||l[u[m]]):(f.push(c[m]),h[c[m]]={"!ref":"A1"});return{SheetNames:f,Sheets:h}}function n(e,t,n){var r=[{c:0,r:0},{t:"n",v:0},0,0];return n.qpro&&20768!=n.vers?(r[0].c=e.read_shift(1),r[3]=e.read_shift(1),r[0].r=e.read_shift(2),e.l+=2):(r[2]=e.read_shift(1),r[0].c=e.read_shift(2),r[0].r=e.read_shift(2)),r}function r(e,t,r){var o=e.l+t,i=n(e,0,r);if(i[1].t="s",20768==r.vers){e.l++;var s=e.read_shift(1);return i[1].v=e.read_shift(s,"utf8"),i}return r.qpro&&e.l++,i[1].v=e.read_shift(o-e.l,"cstr"),i}function o(e,t,n){var r=ca(7+n.length);r.write_shift(1,255),r.write_shift(2,t),r.write_shift(2,e),r.write_shift(1,39);for(var o=0;o<r.length;++o){var i=n.charCodeAt(o);r.write_shift(1,i>=128?95:i)}return r.write_shift(1,0),r}function i(e,t,n){var r=ca(7);return r.write_shift(1,255),r.write_shift(2,t),r.write_shift(2,e),r.write_shift(2,n,"i"),r}function s(e,t,n){var r=ca(13);return r.write_shift(1,255),r.write_shift(2,t),r.write_shift(2,e),r.write_shift(8,n,"f"),r}function a(e,t,n){var r=32768&t;return t=(r?e:0)+((t&=-32769)>=8192?t-16384:t),(r?"":"$")+(n?Ca(t):va(t))}var l={51:["FALSE",0],52:["TRUE",0],70:["LEN",1],80:["SUM",69],81:["AVERAGEA",69],82:["COUNTA",69],83:["MINA",69],84:["MAXA",69],111:["T",1]},u=["","","","","","","","","","+","-","*","/","^","=","<>","<=",">=","<",">","","","","","&","","","","","","",""];function c(e){var t=[{c:0,r:0},{t:"n",v:0},0];return t[0].r=e.read_shift(2),t[3]=e[e.l++],t[0].c=e[e.l++],t}function p(e,t,n,r){var o=ca(6+r.length);o.write_shift(2,e),o.write_shift(1,n),o.write_shift(1,t),o.write_shift(1,39);for(var i=0;i<r.length;++i){var s=r.charCodeAt(i);o.write_shift(1,s>=128?95:s)}return o.write_shift(1,0),o}function d(e,t){var n=c(e),r=e.read_shift(4),o=e.read_shift(4),i=e.read_shift(2);if(65535==i)return 0===r&&3221225472===o?(n[1].t="e",n[1].v=15):0===r&&3489660928===o?(n[1].t="e",n[1].v=42):n[1].v=0,n;var s=32768&i;return i=(32767&i)-16446,n[1].v=(1-2*s)*(o*Math.pow(2,i+32)+r*Math.pow(2,i)),n}function h(e,t,n,r){var o=ca(14);if(o.write_shift(2,e),o.write_shift(1,n),o.write_shift(1,t),0==r)return o.write_shift(4,0),o.write_shift(4,0),o.write_shift(2,65535),o;var i,s=0,a=0,l=0;return r<0&&(s=1,r=-r),a=0|Math.log2(r),0==(2147483648&(l=(r/=Math.pow(2,a-31))>>>0))&&(++a,l=(r/=2)>>>0),r-=l,l|=2147483648,l>>>=0,i=(r*=Math.pow(2,32))>>>0,o.write_shift(4,i),o.write_shift(4,l),a+=16383+(s?32768:0),o.write_shift(2,a),o}function f(e,t){var n=c(e),r=e.read_shift(8,"f");return n[1].v=r,n}function m(e,t){return 0==e[e.l+t-1]?e.read_shift(t,"cstr"):""}function g(e,t){var n=ca(5+e.length);n.write_shift(2,14e3),n.write_shift(2,t);for(var r=0;r<e.length;++r){var o=e.charCodeAt(r);n[n.l++]=o>127?95:o}return n[n.l++]=0,n}var y={0:{n:"BOF",f:Rl},1:{n:"EOF"},2:{n:"CALCMODE"},3:{n:"CALCORDER"},4:{n:"SPLIT"},5:{n:"SYNC"},6:{n:"RANGE",f:function(e,t,n){var r={s:{c:0,r:0},e:{c:0,r:0}};return 8==t&&n.qpro?(r.s.c=e.read_shift(1),e.l++,r.s.r=e.read_shift(2),r.e.c=e.read_shift(1),e.l++,r.e.r=e.read_shift(2),r):(r.s.c=e.read_shift(2),r.s.r=e.read_shift(2),12==t&&n.qpro&&(e.l+=2),r.e.c=e.read_shift(2),r.e.r=e.read_shift(2),12==t&&n.qpro&&(e.l+=2),65535==r.s.c&&(r.s.c=r.e.c=r.s.r=r.e.r=0),r)}},7:{n:"WINDOW1"},8:{n:"COLW1"},9:{n:"WINTWO"},10:{n:"COLW2"},11:{n:"NAME"},12:{n:"BLANK"},13:{n:"INTEGER",f:function(e,t,r){var o=n(e,0,r);return o[1].v=e.read_shift(2,"i"),o}},14:{n:"NUMBER",f:function(e,t,r){var o=n(e,0,r);return o[1].v=e.read_shift(8,"f"),o}},15:{n:"LABEL",f:r},16:{n:"FORMULA",f:function(e,t,r){var o=e.l+t,i=n(e,0,r);if(i[1].v=e.read_shift(8,"f"),r.qpro)e.l=o;else{var s=e.read_shift(2);!function(e,t){la(e,0);for(var n=[],r=0,o="",i="",s="",c="";e.l<e.length;){var p=e[e.l++];switch(p){case 0:n.push(e.read_shift(8,"f"));break;case 1:i=a(t[0].c,e.read_shift(2),!0),o=a(t[0].r,e.read_shift(2),!1),n.push(i+o);break;case 2:var d=a(t[0].c,e.read_shift(2),!0),h=a(t[0].r,e.read_shift(2),!1);i=a(t[0].c,e.read_shift(2),!0),o=a(t[0].r,e.read_shift(2),!1),n.push(d+h+":"+i+o);break;case 3:if(e.l<e.length)return void console.error("WK1 premature formula end");break;case 4:n.push("("+n.pop()+")");break;case 5:n.push(e.read_shift(2));break;case 6:for(var f="";p=e[e.l++];)f+=String.fromCharCode(p);n.push('"'+f.replace(/"/g,'""')+'"');break;case 8:n.push("-"+n.pop());break;case 23:n.push("+"+n.pop());break;case 22:n.push("NOT("+n.pop()+")");break;case 20:case 21:c=n.pop(),s=n.pop(),n.push(["AND","OR"][p-20]+"("+s+","+c+")");break;default:if(p<32&&u[p])c=n.pop(),s=n.pop(),n.push(s+u[p]+c);else{if(!l[p])return p<=7?console.error("WK1 invalid opcode "+p.toString(16)):p<=24?console.error("WK1 unsupported op "+p.toString(16)):p<=30?console.error("WK1 invalid opcode "+p.toString(16)):p<=115?console.error("WK1 unsupported function opcode "+p.toString(16)):console.error("WK1 unrecognized opcode "+p.toString(16));if(69==(r=l[p][1])&&(r=e[e.l++]),r>n.length)return void console.error("WK1 bad formula parse 0x"+p.toString(16)+":|"+n.join("|")+"|");var m=n.slice(-r);n.length-=r,n.push(l[p][0]+"("+m.join(",")+")")}}}1==n.length?t[1].f=""+n[0]:console.error("WK1 bad formula parse |"+n.join("|")+"|")}(e.slice(e.l,e.l+s),i),e.l+=s}return i}},24:{n:"TABLE"},25:{n:"ORANGE"},26:{n:"PRANGE"},27:{n:"SRANGE"},28:{n:"FRANGE"},29:{n:"KRANGE1"},32:{n:"HRANGE"},35:{n:"KRANGE2"},36:{n:"PROTEC"},37:{n:"FOOTER"},38:{n:"HEADER"},39:{n:"SETUP"},40:{n:"MARGINS"},41:{n:"LABELFMT"},42:{n:"TITLES"},43:{n:"SHEETJS"},45:{n:"GRAPH"},46:{n:"NGRAPH"},47:{n:"CALCCOUNT"},48:{n:"UNFORMATTED"},49:{n:"CURSORW12"},50:{n:"WINDOW"},51:{n:"STRING",f:r},55:{n:"PASSWORD"},56:{n:"LOCKED"},60:{n:"QUERY"},61:{n:"QUERYNAME"},62:{n:"PRINT"},63:{n:"PRINTNAME"},64:{n:"GRAPH2"},65:{n:"GRAPHNAME"},66:{n:"ZOOM"},67:{n:"SYMSPLIT"},68:{n:"NSROWS"},69:{n:"NSCOLS"},70:{n:"RULER"},71:{n:"NNAME"},72:{n:"ACOMM"},73:{n:"AMACRO"},74:{n:"PARSE"},102:{n:"PRANGES??"},103:{n:"RRANGES??"},104:{n:"FNAME??"},105:{n:"MRANGES??"},204:{n:"SHEETNAMECS",f:m},222:{n:"SHEETNAMELP",f:function(e,t){var n=e[e.l++];n>t-1&&(n=t-1);for(var r="";r.length<n;)r+=String.fromCharCode(e[e.l++]);return r}},65535:{n:""}},v={0:{n:"BOF"},1:{n:"EOF"},2:{n:"PASSWORD"},3:{n:"CALCSET"},4:{n:"WINDOWSET"},5:{n:"SHEETCELLPTR"},6:{n:"SHEETLAYOUT"},7:{n:"COLUMNWIDTH"},8:{n:"HIDDENCOLUMN"},9:{n:"USERRANGE"},10:{n:"SYSTEMRANGE"},11:{n:"ZEROFORCE"},12:{n:"SORTKEYDIR"},13:{n:"FILESEAL"},14:{n:"DATAFILLNUMS"},15:{n:"PRINTMAIN"},16:{n:"PRINTSTRING"},17:{n:"GRAPHMAIN"},18:{n:"GRAPHSTRING"},19:{n:"??"},20:{n:"ERRCELL"},21:{n:"NACELL"},22:{n:"LABEL16",f:function(e,t){var n=c(e);return n[1].t="s",n[1].v=e.read_shift(t-4,"cstr"),n}},23:{n:"NUMBER17",f:d},24:{n:"NUMBER18",f:function(e,t){var n=c(e);n[1].v=e.read_shift(2);var r=n[1].v>>1;if(1&n[1].v)switch(7&r){case 0:r=5e3*(r>>3);break;case 1:r=500*(r>>3);break;case 2:r=(r>>3)/20;break;case 3:r=(r>>3)/200;break;case 4:r=(r>>3)/2e3;break;case 5:r=(r>>3)/2e4;break;case 6:r=(r>>3)/16;break;case 7:r=(r>>3)/64}return n[1].v=r,n}},25:{n:"FORMULA19",f:function(e,t){var n=d(e);return e.l+=t-14,n}},26:{n:"FORMULA1A"},27:{n:"XFORMAT",f:function(e,t){for(var n={},r=e.l+t;e.l<r;){var o=e.read_shift(2);if(14e3==o){for(n[o]=[0,""],n[o][0]=e.read_shift(2);e[e.l];)n[o][1]+=String.fromCharCode(e[e.l]),e.l++;e.l++}}return n}},28:{n:"DTLABELMISC"},29:{n:"DTLABELCELL"},30:{n:"GRAPHWINDOW"},31:{n:"CPA"},32:{n:"LPLAUTO"},33:{n:"QUERY"},34:{n:"HIDDENSHEET"},35:{n:"??"},37:{n:"NUMBER25",f:function(e,t){var n=c(e),r=e.read_shift(4);return n[1].v=r>>6,n}},38:{n:"??"},39:{n:"NUMBER27",f},40:{n:"FORMULA28",f:function(e,t){var n=f(e);return e.l+=t-10,n}},142:{n:"??"},147:{n:"??"},150:{n:"??"},151:{n:"??"},152:{n:"??"},153:{n:"??"},154:{n:"??"},155:{n:"??"},156:{n:"??"},163:{n:"??"},174:{n:"??"},175:{n:"??"},176:{n:"??"},177:{n:"??"},184:{n:"??"},185:{n:"??"},186:{n:"??"},187:{n:"??"},188:{n:"??"},195:{n:"??"},201:{n:"??"},204:{n:"SHEETNAMECS",f:m},205:{n:"??"},206:{n:"??"},207:{n:"??"},208:{n:"??"},256:{n:"??"},259:{n:"??"},260:{n:"??"},261:{n:"??"},262:{n:"??"},263:{n:"??"},265:{n:"??"},266:{n:"??"},267:{n:"??"},268:{n:"??"},270:{n:"??"},271:{n:"??"},384:{n:"??"},389:{n:"??"},390:{n:"??"},393:{n:"??"},396:{n:"??"},512:{n:"??"},514:{n:"??"},513:{n:"??"},516:{n:"??"},517:{n:"??"},640:{n:"??"},641:{n:"??"},642:{n:"??"},643:{n:"??"},644:{n:"??"},645:{n:"??"},646:{n:"??"},647:{n:"??"},648:{n:"??"},658:{n:"??"},659:{n:"??"},660:{n:"??"},661:{n:"??"},662:{n:"??"},665:{n:"??"},666:{n:"??"},768:{n:"??"},772:{n:"??"},1537:{n:"SHEETINFOQP",f:function(e,t,n){if(n.qpro&&!(t<21)){var r=e.read_shift(1);return e.l+=17,e.l+=1,e.l+=2,[r,e.read_shift(t-21,"cstr")]}}},1600:{n:"??"},1602:{n:"??"},1793:{n:"??"},1794:{n:"??"},1795:{n:"??"},1796:{n:"??"},1920:{n:"??"},2048:{n:"??"},2049:{n:"??"},2052:{n:"??"},2688:{n:"??"},10998:{n:"??"},12849:{n:"??"},28233:{n:"??"},28484:{n:"??"},65535:{n:""}};return{sheet_to_wk1:function(e,t){var n=t||{};if(+n.codepage>=0&&To(+n.codepage),"string"==n.type)throw new Error("Cannot write WK1 to JS string");var r,a=pa(),l=Ea(e["!ref"]),u=Array.isArray(e),c=[];Xc(a,0,((r=ca(2)).write_shift(2,1030),r)),Xc(a,6,function(e){var t=ca(8);return t.write_shift(2,e.s.c),t.write_shift(2,e.s.r),t.write_shift(2,e.e.c),t.write_shift(2,e.e.r),t}(l));for(var p=Math.min(l.e.r,8191),d=l.s.r;d<=p;++d)for(var h=va(d),f=l.s.c;f<=l.e.c;++f){d===l.s.r&&(c[f]=Ca(f));var m=c[f]+h,g=u?(e[d]||[])[f]:e[m];g&&"z"!=g.t&&("n"==g.t?(0|g.v)==g.v&&g.v>=-32768&&g.v<=32767?Xc(a,13,i(d,f,g.v)):Xc(a,14,s(d,f,g.v)):Xc(a,15,o(d,f,Ta(g).slice(0,239))))}return Xc(a,1),a.end()},book_to_wk3:function(e,t){var n=t||{};if(+n.codepage>=0&&To(+n.codepage),"string"==n.type)throw new Error("Cannot write WK3 to JS string");var r=pa();Xc(r,0,function(e){var t=ca(26);t.write_shift(2,4096),t.write_shift(2,4),t.write_shift(4,0);for(var n=0,r=0,o=0,i=0;i<e.SheetNames.length;++i){var s=e.SheetNames[i],a=e.Sheets[s];if(a&&a["!ref"]){++o;var l=Pa(a["!ref"]);n<l.e.r&&(n=l.e.r),r<l.e.c&&(r=l.e.c)}}return n>8191&&(n=8191),t.write_shift(2,n),t.write_shift(1,o),t.write_shift(1,r),t.write_shift(2,0),t.write_shift(2,0),t.write_shift(1,1),t.write_shift(1,2),t.write_shift(4,0),t.write_shift(4,0),t}(e));for(var o=0,i=0;o<e.SheetNames.length;++o)(e.Sheets[e.SheetNames[o]]||{})["!ref"]&&Xc(r,27,g(e.SheetNames[o],i++));var s=0;for(o=0;o<e.SheetNames.length;++o){var a=e.Sheets[e.SheetNames[o]];if(a&&a["!ref"]){for(var l=Ea(a["!ref"]),u=Array.isArray(a),c=[],d=Math.min(l.e.r,8191),f=l.s.r;f<=d;++f)for(var m=va(f),y=l.s.c;y<=l.e.c;++y){f===l.s.r&&(c[y]=Ca(y));var v=c[y]+m,b=u?(a[f]||[])[y]:a[v];b&&"z"!=b.t&&("n"==b.t?Xc(r,23,h(f,y,s,b.v)):Xc(r,22,p(f,y,s,Ta(b).slice(0,239))))}++s}}return Xc(r,1),r.end()},to_workbook:function(e,n){switch(n.type){case"base64":return t(jo(Ao(e)),n);case"binary":return t(jo(e),n);case"buffer":case"array":return t(e,n)}throw"Unsupported type "+n.type}}}(),eu=/^\s|\s$|[\t\n\r]/;function tu(e,t){if(!t.bookSST)return"";var n=[as];n[n.length]=Ss("sst",null,{xmlns:Os[0],count:e.Count,uniqueCount:e.Unique});for(var r=0;r!=e.length;++r)if(null!=e[r]){var o=e[r],i="<si>";o.r?i+=o.r:(i+="<t",o.t||(o.t=""),o.t.match(eu)&&(i+=' xml:space="preserve"'),i+=">"+ps(o.t)+"</t>"),i+="</si>",n[n.length]=i}return n.length>2&&(n[n.length]="</sst>",n[1]=n[1].replace("/>",">")),n.join("")}var nu=function(e,t){var n=!1;return null==t&&(n=!0,t=ca(15+4*e.t.length)),t.write_shift(1,0),Da(e.t,t),n?t.slice(0,t.l):t};function ru(e){var t=pa();da(t,159,function(e,t){return t||(t=ca(8)),t.write_shift(4,e.Count),t.write_shift(4,e.Unique),t}(e));for(var n=0;n<e.length;++n)da(t,19,nu(e[n]));return da(t,160),t.end()}function ou(e){var t,n,r=0,o=function(e){if(void 0!==Oo)return Oo.utils.encode(xo,e);for(var t=[],n=e.split(""),r=0;r<n.length;++r)t[r]=n[r].charCodeAt(0);return t}(e),i=o.length+1;for((t=No(i))[0]=o.length,n=1;n!=i;++n)t[n]=o[n-1];for(n=i-1;n>=0;--n)r=((0==(16384&r)?0:1)|r<<1&32767)^t[n];return 52811^r}var iu=function(){function e(e,n){switch(n.type){case"base64":return t(Ao(e),n);case"binary":return t(e,n);case"buffer":return t(ko&&Buffer.isBuffer(e)?e.toString("binary"):Fo(e),n);case"array":return t(Zi(e),n)}throw new Error("Unrecognized type "+n.type)}function t(e,t){var n=(t||{}).dense?[]:{},r=e.match(/\\trowd.*?\\row\b/g);if(!r.length)throw new Error("RTF missing table");var o={s:{c:0,r:0},e:{c:0,r:r.length-1}};return r.forEach((function(e,t){Array.isArray(n)&&(n[t]=[]);for(var r,i=/\\\w+\b/g,s=0,a=-1;r=i.exec(e);){if("\\cell"===r[0]){var l=e.slice(s,i.lastIndex-r[0].length);if(" "==l[0]&&(l=l.slice(1)),++a,l.length){var u={v:l,t:"s"};Array.isArray(n)?n[t][a]=u:n[xa({r:t,c:a})]=u}}s=i.lastIndex}a>o.e.c&&(o.e.c=a)})),n["!ref"]=Sa(o),n}return{to_workbook:function(t,n){return Oa(e(t,n),n)},to_sheet:e,from_sheet:function(e){for(var t,n=["{\\rtf1\\ansi"],r=Ea(e["!ref"]),o=Array.isArray(e),i=r.s.r;i<=r.e.r;++i){n.push("\\trowd\\trautofit1");for(var s=r.s.c;s<=r.e.c;++s)n.push("\\cellx"+(s+1));for(n.push("\\pard\\intbl"),s=r.s.c;s<=r.e.c;++s){var a=xa({r:i,c:s});(t=o?(e[i]||[])[s]:e[a])&&(null!=t.v||t.f&&!t.F)&&(n.push(" "+(t.w||(Ta(t),t.w))),n.push("\\cell"))}n.push("\\pard\\intbl\\row")}return n.join("")+"}"}}}();function su(e){for(var t=0,n=1;3!=t;++t)n=256*n+(e[t]>255?255:e[t]<0?0:e[t]);return n.toString(16).toUpperCase().slice(1)}var au=6;function lu(e){return Math.floor((e+Math.round(128/au)/256)*au)}function uu(e){return Math.floor((e-5)/au*100+.5)/100}function cu(e){return Math.round((e*au+5)/au*256)/256}function pu(e){e.width?(e.wpx=lu(e.width),e.wch=uu(e.wpx),e.MDW=au):e.wpx?(e.wch=uu(e.wpx),e.width=cu(e.wch),e.MDW=au):"number"==typeof e.wch&&(e.width=cu(e.wch),e.wpx=lu(e.width),e.MDW=au),e.customWidth&&delete e.customWidth}var du=96;function hu(e){return 96*e/du}function fu(e){return e*du/96}function mu(e,t){var n,r=[as,Ss("styleSheet",null,{xmlns:Os[0],"xmlns:vt":Ts.vt})];return e.SSF&&null!=(n=function(e){var t=["<numFmts>"];return[[5,8],[23,26],[41,44],[50,392]].forEach((function(n){for(var r=n[0];r<=n[1];++r)null!=e[r]&&(t[t.length]=Ss("numFmt",null,{numFmtId:r,formatCode:ps(e[r])}))})),1===t.length?"":(t[t.length]="</numFmts>",t[0]=Ss("numFmts",null,{count:t.length-2}).replace("/>",">"),t.join(""))}(e.SSF))&&(r[r.length]=n),r[r.length]='<fonts count="1"><font><sz val="12"/><color theme="1"/><name val="Calibri"/><family val="2"/><scheme val="minor"/></font></fonts>',r[r.length]='<fills count="2"><fill><patternFill patternType="none"/></fill><fill><patternFill patternType="gray125"/></fill></fills>',r[r.length]='<borders count="1"><border><left/><right/><top/><bottom/><diagonal/></border></borders>',r[r.length]='<cellStyleXfs count="1"><xf numFmtId="0" fontId="0" fillId="0" borderId="0"/></cellStyleXfs>',(n=function(e){var t=[];return t[t.length]=Ss("cellXfs",null),e.forEach((function(e){t[t.length]=Ss("xf",null,e)})),t[t.length]="</cellXfs>",2===t.length?"":(t[0]=Ss("cellXfs",null,{count:t.length-2}).replace("/>",">"),t.join(""))}(t.cellXfs))&&(r[r.length]=n),r[r.length]='<cellStyles count="1"><cellStyle name="Normal" xfId="0" builtinId="0"/></cellStyles>',r[r.length]='<dxfs count="0"/>',r[r.length]='<tableStyles count="0" defaultTableStyle="TableStyleMedium9" defaultPivotStyle="PivotStyleMedium4"/>',r.length>2&&(r[r.length]="</styleSheet>",r[1]=r[1].replace("/>",">")),r.join("")}function gu(e,t,n){n||(n=ca(6+4*t.length)),n.write_shift(2,e),Da(t,n);var r=n.length>n.l?n.slice(0,n.l):n;return null==n.l&&(n.l=n.length),r}var yu,vu=["none","solid","mediumGray","darkGray","lightGray","darkHorizontal","darkVertical","darkDown","darkUp","darkGrid","darkTrellis","lightHorizontal","lightVertical","lightDown","lightUp","lightGrid","lightTrellis","gray125","gray0625"],bu=ua;function Cu(e,t){t||(t=ca(84)),yu||(yu=Bi(vu));var n=yu[e.patternType];null==n&&(n=40),t.write_shift(4,n);var r=0;if(40!=n)for(el({auto:1},t),el({auto:1},t);r<12;++r)t.write_shift(4,0);else{for(;r<4;++r)t.write_shift(4,0);for(;r<12;++r)t.write_shift(4,0)}return t.length>t.l?t.slice(0,t.l):t}function wu(e,t,n){return n||(n=ca(16)),n.write_shift(2,t||0),n.write_shift(2,e.numFmtId||0),n.write_shift(2,0),n.write_shift(2,0),n.write_shift(2,0),n.write_shift(1,0),n.write_shift(1,0),n.write_shift(1,0),n.write_shift(1,0),n.write_shift(1,0),n.write_shift(1,0),n}function xu(e,t){return t||(t=ca(10)),t.write_shift(1,0),t.write_shift(1,0),t.write_shift(4,0),t.write_shift(4,0),t}var Pu=ua;function Su(e,t){var n=pa();return da(n,278),function(e,t){if(t){var n=0;[[5,8],[23,26],[41,44],[50,392]].forEach((function(e){for(var r=e[0];r<=e[1];++r)null!=t[r]&&++n})),0!=n&&(da(e,615,Ra(n)),[[5,8],[23,26],[41,44],[50,392]].forEach((function(n){for(var r=n[0];r<=n[1];++r)null!=t[r]&&da(e,44,gu(r,t[r]))})),da(e,616))}}(n,e.SSF),function(e){da(e,611,Ra(1)),da(e,43,function(e,t){t||(t=ca(153)),t.write_shift(2,20*e.sz),function(e,t){t||(t=ca(2));var n=(e.italic?2:0)|(e.strike?8:0)|(e.outline?16:0)|(e.shadow?32:0)|(e.condense?64:0)|(e.extend?128:0);t.write_shift(1,n),t.write_shift(1,0)}(e,t),t.write_shift(2,e.bold?700:400);var n=0;"superscript"==e.vertAlign?n=1:"subscript"==e.vertAlign&&(n=2),t.write_shift(2,n),t.write_shift(1,e.underline||0),t.write_shift(1,e.family||0),t.write_shift(1,e.charset||0),t.write_shift(1,0),el(e.color,t);var r=0;return"major"==e.scheme&&(r=1),"minor"==e.scheme&&(r=2),t.write_shift(1,r),Da(e.name,t),t.length>t.l?t.slice(0,t.l):t}({sz:12,color:{theme:1},name:"Calibri",family:2,scheme:"minor"})),da(e,612)}(n),function(e){da(e,603,Ra(2)),da(e,45,Cu({patternType:"none"})),da(e,45,Cu({patternType:"gray125"})),da(e,604)}(n),function(e){da(e,613,Ra(1)),da(e,46,function(e,t){return t||(t=ca(51)),t.write_shift(1,0),xu(0,t),xu(0,t),xu(0,t),xu(0,t),xu(0,t),t.length>t.l?t.slice(0,t.l):t}()),da(e,614)}(n),function(e){da(e,626,Ra(1)),da(e,47,wu({numFmtId:0,fontId:0,fillId:0,borderId:0},65535)),da(e,627)}(n),function(e,t){da(e,617,Ra(t.length)),t.forEach((function(t){da(e,47,wu(t,0))})),da(e,618)}(n,t.cellXfs),function(e){da(e,619,Ra(1)),da(e,48,function(e,t){return t||(t=ca(52)),t.write_shift(4,e.xfId),t.write_shift(2,1),t.write_shift(1,+e.builtinId),t.write_shift(1,0),Ha(e.name||"",t),t.length>t.l?t.slice(0,t.l):t}({xfId:0,builtinId:0,name:"Normal"})),da(e,620)}(n),function(e){da(e,505,Ra(0)),da(e,506)}(n),function(e){da(e,508,function(e,t,n){var r=ca(2052);return r.write_shift(4,0),Ha("TableStyleMedium9",r),Ha("PivotStyleMedium4",r),r.length>r.l?r.slice(0,r.l):r}()),da(e,509)}(n),da(n,279),n.end()}function Eu(e,t){if(t&&t.themeXLSX)return t.themeXLSX;if(e&&"string"==typeof e.raw)return e.raw;var n=[as];return n[n.length]='<a:theme xmlns:a="http://schemas.openxmlformats.org/drawingml/2006/main" name="Office Theme">',n[n.length]="<a:themeElements>",n[n.length]='<a:clrScheme name="Office">',n[n.length]='<a:dk1><a:sysClr val="windowText" lastClr="000000"/></a:dk1>',n[n.length]='<a:lt1><a:sysClr val="window" lastClr="FFFFFF"/></a:lt1>',n[n.length]='<a:dk2><a:srgbClr val="1F497D"/></a:dk2>',n[n.length]='<a:lt2><a:srgbClr val="EEECE1"/></a:lt2>',n[n.length]='<a:accent1><a:srgbClr val="4F81BD"/></a:accent1>',n[n.length]='<a:accent2><a:srgbClr val="C0504D"/></a:accent2>',n[n.length]='<a:accent3><a:srgbClr val="9BBB59"/></a:accent3>',n[n.length]='<a:accent4><a:srgbClr val="8064A2"/></a:accent4>',n[n.length]='<a:accent5><a:srgbClr val="4BACC6"/></a:accent5>',n[n.length]='<a:accent6><a:srgbClr val="F79646"/></a:accent6>',n[n.length]='<a:hlink><a:srgbClr val="0000FF"/></a:hlink>',n[n.length]='<a:folHlink><a:srgbClr val="800080"/></a:folHlink>',n[n.length]="</a:clrScheme>",n[n.length]='<a:fontScheme name="Office">',n[n.length]="<a:majorFont>",n[n.length]='<a:latin typeface="Cambria"/>',n[n.length]='<a:ea typeface=""/>',n[n.length]='<a:cs typeface=""/>',n[n.length]='<a:font script="Jpan" typeface="MS Pゴシック"/>',n[n.length]='<a:font script="Hang" typeface="맑은 고딕"/>',n[n.length]='<a:font script="Hans" typeface="宋体"/>',n[n.length]='<a:font script="Hant" typeface="新細明體"/>',n[n.length]='<a:font script="Arab" typeface="Times New Roman"/>',n[n.length]='<a:font script="Hebr" typeface="Times New Roman"/>',n[n.length]='<a:font script="Thai" typeface="Tahoma"/>',n[n.length]='<a:font script="Ethi" typeface="Nyala"/>',n[n.length]='<a:font script="Beng" typeface="Vrinda"/>',n[n.length]='<a:font script="Gujr" typeface="Shruti"/>',n[n.length]='<a:font script="Khmr" typeface="MoolBoran"/>',n[n.length]='<a:font script="Knda" typeface="Tunga"/>',n[n.length]='<a:font script="Guru" typeface="Raavi"/>',n[n.length]='<a:font script="Cans" typeface="Euphemia"/>',n[n.length]='<a:font script="Cher" typeface="Plantagenet Cherokee"/>',n[n.length]='<a:font script="Yiii" typeface="Microsoft Yi Baiti"/>',n[n.length]='<a:font script="Tibt" typeface="Microsoft Himalaya"/>',n[n.length]='<a:font script="Thaa" typeface="MV Boli"/>',n[n.length]='<a:font script="Deva" typeface="Mangal"/>',n[n.length]='<a:font script="Telu" typeface="Gautami"/>',n[n.length]='<a:font script="Taml" typeface="Latha"/>',n[n.length]='<a:font script="Syrc" typeface="Estrangelo Edessa"/>',n[n.length]='<a:font script="Orya" typeface="Kalinga"/>',n[n.length]='<a:font script="Mlym" typeface="Kartika"/>',n[n.length]='<a:font script="Laoo" typeface="DokChampa"/>',n[n.length]='<a:font script="Sinh" typeface="Iskoola Pota"/>',n[n.length]='<a:font script="Mong" typeface="Mongolian Baiti"/>',n[n.length]='<a:font script="Viet" typeface="Times New Roman"/>',n[n.length]='<a:font script="Uigh" typeface="Microsoft Uighur"/>',n[n.length]='<a:font script="Geor" typeface="Sylfaen"/>',n[n.length]="</a:majorFont>",n[n.length]="<a:minorFont>",n[n.length]='<a:latin typeface="Calibri"/>',n[n.length]='<a:ea typeface=""/>',n[n.length]='<a:cs typeface=""/>',n[n.length]='<a:font script="Jpan" typeface="MS Pゴシック"/>',n[n.length]='<a:font script="Hang" typeface="맑은 고딕"/>',n[n.length]='<a:font script="Hans" typeface="宋体"/>',n[n.length]='<a:font script="Hant" typeface="新細明體"/>',n[n.length]='<a:font script="Arab" typeface="Arial"/>',n[n.length]='<a:font script="Hebr" typeface="Arial"/>',n[n.length]='<a:font script="Thai" typeface="Tahoma"/>',n[n.length]='<a:font script="Ethi" typeface="Nyala"/>',n[n.length]='<a:font script="Beng" typeface="Vrinda"/>',n[n.length]='<a:font script="Gujr" typeface="Shruti"/>',n[n.length]='<a:font script="Khmr" typeface="DaunPenh"/>',n[n.length]='<a:font script="Knda" typeface="Tunga"/>',n[n.length]='<a:font script="Guru" typeface="Raavi"/>',n[n.length]='<a:font script="Cans" typeface="Euphemia"/>',n[n.length]='<a:font script="Cher" typeface="Plantagenet Cherokee"/>',n[n.length]='<a:font script="Yiii" typeface="Microsoft Yi Baiti"/>',n[n.length]='<a:font script="Tibt" typeface="Microsoft Himalaya"/>',n[n.length]='<a:font script="Thaa" typeface="MV Boli"/>',n[n.length]='<a:font script="Deva" typeface="Mangal"/>',n[n.length]='<a:font script="Telu" typeface="Gautami"/>',n[n.length]='<a:font script="Taml" typeface="Latha"/>',n[n.length]='<a:font script="Syrc" typeface="Estrangelo Edessa"/>',n[n.length]='<a:font script="Orya" typeface="Kalinga"/>',n[n.length]='<a:font script="Mlym" typeface="Kartika"/>',n[n.length]='<a:font script="Laoo" typeface="DokChampa"/>',n[n.length]='<a:font script="Sinh" typeface="Iskoola Pota"/>',n[n.length]='<a:font script="Mong" typeface="Mongolian Baiti"/>',n[n.length]='<a:font script="Viet" typeface="Arial"/>',n[n.length]='<a:font script="Uigh" typeface="Microsoft Uighur"/>',n[n.length]='<a:font script="Geor" typeface="Sylfaen"/>',n[n.length]="</a:minorFont>",n[n.length]="</a:fontScheme>",n[n.length]='<a:fmtScheme name="Office">',n[n.length]="<a:fillStyleLst>",n[n.length]='<a:solidFill><a:schemeClr val="phClr"/></a:solidFill>',n[n.length]='<a:gradFill rotWithShape="1">',n[n.length]="<a:gsLst>",n[n.length]='<a:gs pos="0"><a:schemeClr val="phClr"><a:tint val="50000"/><a:satMod val="300000"/></a:schemeClr></a:gs>',n[n.length]='<a:gs pos="35000"><a:schemeClr val="phClr"><a:tint val="37000"/><a:satMod val="300000"/></a:schemeClr></a:gs>',n[n.length]='<a:gs pos="100000"><a:schemeClr val="phClr"><a:tint val="15000"/><a:satMod val="350000"/></a:schemeClr></a:gs>',n[n.length]="</a:gsLst>",n[n.length]='<a:lin ang="16200000" scaled="1"/>',n[n.length]="</a:gradFill>",n[n.length]='<a:gradFill rotWithShape="1">',n[n.length]="<a:gsLst>",n[n.length]='<a:gs pos="0"><a:schemeClr val="phClr"><a:tint val="100000"/><a:shade val="100000"/><a:satMod val="130000"/></a:schemeClr></a:gs>',n[n.length]='<a:gs pos="100000"><a:schemeClr val="phClr"><a:tint val="50000"/><a:shade val="100000"/><a:satMod val="350000"/></a:schemeClr></a:gs>',n[n.length]="</a:gsLst>",n[n.length]='<a:lin ang="16200000" scaled="0"/>',n[n.length]="</a:gradFill>",n[n.length]="</a:fillStyleLst>",n[n.length]="<a:lnStyleLst>",n[n.length]='<a:ln w="9525" cap="flat" cmpd="sng" algn="ctr"><a:solidFill><a:schemeClr val="phClr"><a:shade val="95000"/><a:satMod val="105000"/></a:schemeClr></a:solidFill><a:prstDash val="solid"/></a:ln>',n[n.length]='<a:ln w="25400" cap="flat" cmpd="sng" algn="ctr"><a:solidFill><a:schemeClr val="phClr"/></a:solidFill><a:prstDash val="solid"/></a:ln>',n[n.length]='<a:ln w="38100" cap="flat" cmpd="sng" algn="ctr"><a:solidFill><a:schemeClr val="phClr"/></a:solidFill><a:prstDash val="solid"/></a:ln>',n[n.length]="</a:lnStyleLst>",n[n.length]="<a:effectStyleLst>",n[n.length]="<a:effectStyle>",n[n.length]="<a:effectLst>",n[n.length]='<a:outerShdw blurRad="40000" dist="20000" dir="5400000" rotWithShape="0"><a:srgbClr val="000000"><a:alpha val="38000"/></a:srgbClr></a:outerShdw>',n[n.length]="</a:effectLst>",n[n.length]="</a:effectStyle>",n[n.length]="<a:effectStyle>",n[n.length]="<a:effectLst>",n[n.length]='<a:outerShdw blurRad="40000" dist="23000" dir="5400000" rotWithShape="0"><a:srgbClr val="000000"><a:alpha val="35000"/></a:srgbClr></a:outerShdw>',n[n.length]="</a:effectLst>",n[n.length]="</a:effectStyle>",n[n.length]="<a:effectStyle>",n[n.length]="<a:effectLst>",n[n.length]='<a:outerShdw blurRad="40000" dist="23000" dir="5400000" rotWithShape="0"><a:srgbClr val="000000"><a:alpha val="35000"/></a:srgbClr></a:outerShdw>',n[n.length]="</a:effectLst>",n[n.length]='<a:scene3d><a:camera prst="orthographicFront"><a:rot lat="0" lon="0" rev="0"/></a:camera><a:lightRig rig="threePt" dir="t"><a:rot lat="0" lon="0" rev="1200000"/></a:lightRig></a:scene3d>',n[n.length]='<a:sp3d><a:bevelT w="63500" h="25400"/></a:sp3d>',n[n.length]="</a:effectStyle>",n[n.length]="</a:effectStyleLst>",n[n.length]="<a:bgFillStyleLst>",n[n.length]='<a:solidFill><a:schemeClr val="phClr"/></a:solidFill>',n[n.length]='<a:gradFill rotWithShape="1">',n[n.length]="<a:gsLst>",n[n.length]='<a:gs pos="0"><a:schemeClr val="phClr"><a:tint val="40000"/><a:satMod val="350000"/></a:schemeClr></a:gs>',n[n.length]='<a:gs pos="40000"><a:schemeClr val="phClr"><a:tint val="45000"/><a:shade val="99000"/><a:satMod val="350000"/></a:schemeClr></a:gs>',n[n.length]='<a:gs pos="100000"><a:schemeClr val="phClr"><a:shade val="20000"/><a:satMod val="255000"/></a:schemeClr></a:gs>',n[n.length]="</a:gsLst>",n[n.length]='<a:path path="circle"><a:fillToRect l="50000" t="-80000" r="50000" b="180000"/></a:path>',n[n.length]="</a:gradFill>",n[n.length]='<a:gradFill rotWithShape="1">',n[n.length]="<a:gsLst>",n[n.length]='<a:gs pos="0"><a:schemeClr val="phClr"><a:tint val="80000"/><a:satMod val="300000"/></a:schemeClr></a:gs>',n[n.length]='<a:gs pos="100000"><a:schemeClr val="phClr"><a:shade val="30000"/><a:satMod val="200000"/></a:schemeClr></a:gs>',n[n.length]="</a:gsLst>",n[n.length]='<a:path path="circle"><a:fillToRect l="50000" t="50000" r="50000" b="50000"/></a:path>',n[n.length]="</a:gradFill>",n[n.length]="</a:bgFillStyleLst>",n[n.length]="</a:fmtScheme>",n[n.length]="</a:themeElements>",n[n.length]="<a:objectDefaults>",n[n.length]="<a:spDef>",n[n.length]='<a:spPr/><a:bodyPr/><a:lstStyle/><a:style><a:lnRef idx="1"><a:schemeClr val="accent1"/></a:lnRef><a:fillRef idx="3"><a:schemeClr val="accent1"/></a:fillRef><a:effectRef idx="2"><a:schemeClr val="accent1"/></a:effectRef><a:fontRef idx="minor"><a:schemeClr val="lt1"/></a:fontRef></a:style>',n[n.length]="</a:spDef>",n[n.length]="<a:lnDef>",n[n.length]='<a:spPr/><a:bodyPr/><a:lstStyle/><a:style><a:lnRef idx="2"><a:schemeClr val="accent1"/></a:lnRef><a:fillRef idx="0"><a:schemeClr val="accent1"/></a:fillRef><a:effectRef idx="1"><a:schemeClr val="accent1"/></a:effectRef><a:fontRef idx="minor"><a:schemeClr val="tx1"/></a:fontRef></a:style>',n[n.length]="</a:lnDef>",n[n.length]="</a:objectDefaults>",n[n.length]="<a:extraClrSchemeLst/>",n[n.length]="</a:theme>",n.join("")}function Tu(){var e=pa();return da(e,332),da(e,334,Ra(1)),da(e,335,function(e){var t=ca(12+2*e.name.length);return t.write_shift(4,e.flags),t.write_shift(4,e.version),Da(e.name,t),t.slice(0,t.l)}({name:"XLDAPR",version:12e4,flags:3496657072})),da(e,336),da(e,339,function(e,t){var n=ca(20);return n.write_shift(4,1),Da(t,n),n.slice(0,n.l)}(0,"XLDAPR")),da(e,52),da(e,35,Ra(514)),da(e,4096,Ra(0)),da(e,4097,Il(1)),da(e,36),da(e,53),da(e,340),da(e,337,function(e,t){var n=ca(8);return n.write_shift(4,1),n.write_shift(4,1),n}()),da(e,51,function(e){var t=ca(4+8*e.length);t.write_shift(4,e.length);for(var n=0;n<e.length;++n)t.write_shift(4,e[n][0]),t.write_shift(4,e[n][1]);return t}([[1,0]])),da(e,338),da(e,333),e.end()}function Ou(){var e=[as];return e.push('<metadata xmlns="http://schemas.openxmlformats.org/spreadsheetml/2006/main" xmlns:xlrd="http://schemas.microsoft.com/office/spreadsheetml/2017/richdata" xmlns:xda="http://schemas.microsoft.com/office/spreadsheetml/2017/dynamicarray">\n  <metadataTypes count="1">\n    <metadataType name="XLDAPR" minSupportedVersion="120000" copy="1" pasteAll="1" pasteValues="1" merge="1" splitFirst="1" rowColShift="1" clearFormats="1" clearComments="1" assign="1" coerce="1" cellMeta="1"/>\n  </metadataTypes>\n  <futureMetadata name="XLDAPR" count="1">\n    <bk>\n      <extLst>\n        <ext uri="{bdbb8cdc-fa1e-496e-a857-3c3f30c029c3}">\n          <xda:dynamicArrayProperties fDynamic="1" fCollapsed="0"/>\n        </ext>\n      </extLst>\n    </bk>\n  </futureMetadata>\n  <cellMetadata count="1">\n    <bk>\n      <rc t="1" v="0"/>\n    </bk>\n  </cellMetadata>\n</metadata>'),e.join("")}var Vu=1024;function _u(e,t){for(var n=[21600,21600],r=["m0,0l0",n[1],n[0],n[1],n[0],"0xe"].join(","),o=[Ss("xml",null,{"xmlns:v":Vs.v,"xmlns:o":Vs.o,"xmlns:x":Vs.x,"xmlns:mv":Vs.mv}).replace(/\/>/,">"),Ss("o:shapelayout",Ss("o:idmap",null,{"v:ext":"edit",data:e}),{"v:ext":"edit"}),Ss("v:shapetype",[Ss("v:stroke",null,{joinstyle:"miter"}),Ss("v:path",null,{gradientshapeok:"t","o:connecttype":"rect"})].join(""),{id:"_x0000_t202","o:spt":202,coordsize:n.join(","),path:r})];Vu<1e3*e;)Vu+=1e3;return t.forEach((function(e){var t=wa(e[0]),n={color2:"#BEFF82",type:"gradient"};"gradient"==n.type&&(n.angle="-180");var r="gradient"==n.type?Ss("o:fill",null,{type:"gradientUnscaled","v:ext":"view"}):null,i=Ss("v:fill",r,n);++Vu,o=o.concat(["<v:shape"+Ps({id:"_x0000_s"+Vu,type:"#_x0000_t202",style:"position:absolute; margin-left:80pt;margin-top:5pt;width:104pt;height:64pt;z-index:10"+(e[1].hidden?";visibility:hidden":""),fillcolor:"#ECFAD4",strokecolor:"#edeaa1"})+">",i,Ss("v:shadow",null,{on:"t",obscured:"t"}),Ss("v:path",null,{"o:connecttype":"none"}),'<v:textbox><div style="text-align:left"></div></v:textbox>','<x:ClientData ObjectType="Note">',"<x:MoveWithCells/>","<x:SizeWithCells/>",xs("x:Anchor",[t.c+1,0,t.r+1,0,t.c+3,20,t.r+5,20].join(",")),xs("x:AutoFill","False"),xs("x:Row",String(t.r)),xs("x:Column",String(t.c)),e[1].hidden?"":"<x:Visible/>","</x:ClientData>","</v:shape>"])})),o.push("</xml>"),o.join("")}function Ru(e){var t=[as,Ss("comments",null,{xmlns:Os[0]})],n=[];return t.push("<authors>"),e.forEach((function(e){e[1].forEach((function(e){var r=ps(e.a);-1==n.indexOf(r)&&(n.push(r),t.push("<author>"+r+"</author>")),e.T&&e.ID&&-1==n.indexOf("tc="+e.ID)&&(n.push("tc="+e.ID),t.push("<author>tc="+e.ID+"</author>"))}))})),0==n.length&&(n.push("SheetJ5"),t.push("<author>SheetJ5</author>")),t.push("</authors>"),t.push("<commentList>"),e.forEach((function(e){var r=0,o=[];if(e[1][0]&&e[1][0].T&&e[1][0].ID?r=n.indexOf("tc="+e[1][0].ID):e[1].forEach((function(e){e.a&&(r=n.indexOf(ps(e.a))),o.push(e.t||"")})),t.push('<comment ref="'+e[0]+'" authorId="'+r+'"><text>'),o.length<=1)t.push(xs("t",ps(o[0]||"")));else{for(var i="Comment:\n    "+o[0]+"\n",s=1;s<o.length;++s)i+="Reply:\n    "+o[s]+"\n";t.push(xs("t",ps(i)))}t.push("</text></comment>")})),t.push("</commentList>"),t.length>2&&(t[t.length]="</comments>",t[1]=t[1].replace("/>",">")),t.join("")}function Iu(e,t,n){var r=[as,Ss("ThreadedComments",null,{xmlns:Ts.TCMNT}).replace(/[\/]>/,">")];return e.forEach((function(e){var o="";(e[1]||[]).forEach((function(i,s){if(i.T){i.a&&-1==t.indexOf(i.a)&&t.push(i.a);var a={ref:e[0],id:"{54EE7951-7262-4200-6969-"+("000000000000"+n.tcid++).slice(-12)+"}"};0==s?o=a.id:a.parentId=o,i.ID=a.id,i.a&&(a.personId="{54EE7950-7262-4200-6969-"+("000000000000"+t.indexOf(i.a)).slice(-12)+"}"),r.push(Ss("threadedComment",xs("text",i.t||""),a))}else delete i.ID}))})),r.push("</ThreadedComments>"),r.join("")}var Du=Ia;function Au(e){var t=pa(),n=[];return da(t,628),da(t,630),e.forEach((function(e){e[1].forEach((function(e){n.indexOf(e.a)>-1||(n.push(e.a.slice(0,54)),da(t,632,function(e){return Da(e.slice(0,54))}(e.a)))}))})),da(t,631),da(t,633),e.forEach((function(e){e[1].forEach((function(r){r.iauthor=n.indexOf(r.a);var o={s:wa(e[0]),e:wa(e[0])};da(t,635,function(e,t){return null==t&&(t=ca(36)),t.write_shift(4,e[1].iauthor),Ya(e[0],t),t.write_shift(4,0),t.write_shift(4,0),t.write_shift(4,0),t.write_shift(4,0),t}([o,r])),r.t&&r.t.length>0&&da(t,637,function(e,t){var n=!1;return null==t&&(n=!0,t=ca(23+4*e.t.length)),t.write_shift(1,1),Da(e.t,t),t.write_shift(4,1),function(e,t){t||(t=ca(4)),t.write_shift(2,e.ich||0),t.write_shift(2,e.ifnt||0)}({ich:0,ifnt:0},t),n?t.slice(0,t.l):t}(r)),da(t,636),delete r.iauthor}))})),da(t,634),da(t,629),t.end()}var ku=["xlsb","xlsm","xlam","biff8","xla"],Mu=function(){var e=/(^|[^A-Za-z_])R(\[?-?\d+\]|[1-9]\d*|)C(\[?-?\d+\]|[1-9]\d*|)(?![A-Za-z0-9_])/g,t={r:0,c:0};function n(e,n,r,o){var i=!1,s=!1;0==r.length?s=!0:"["==r.charAt(0)&&(s=!0,r=r.slice(1,-1)),0==o.length?i=!0:"["==o.charAt(0)&&(i=!0,o=o.slice(1,-1));var a=r.length>0?0|parseInt(r,10):0,l=o.length>0?0|parseInt(o,10):0;return i?l+=t.c:--l,s?a+=t.r:--a,n+(i?"":"$")+Ca(l)+(s?"":"$")+va(a)}return function(r,o){return t=o,r.replace(e,n)}}(),Nu=/(^|[^._A-Z0-9])([$]?)([A-Z]{1,2}|[A-W][A-Z]{2}|X[A-E][A-Z]|XF[A-D])([$]?)(10[0-3]\d{4}|104[0-7]\d{3}|1048[0-4]\d{2}|10485[0-6]\d|104857[0-6]|[1-9]\d{0,5})(?![_.\(A-Za-z0-9])/g,Lu=function(){return function(e,t){return e.replace(Nu,(function(e,n,r,o,i,s){var a=ba(o)-(r?0:t.c),l=ya(s)-(i?0:t.r);return n+"R"+(0==l?"":i?l+1:"["+l+"]")+"C"+(0==a?"":r?a+1:"["+a+"]")}))}}();function ju(e,t){return e.replace(Nu,(function(e,n,r,o,i,s){return n+("$"==r?r+o:Ca(ba(o)+t.c))+("$"==i?i+s:va(ya(s)+t.r))}))}function qu(e){e.l+=1}function Fu(e,t){var n=e.read_shift(1==t?1:2);return[16383&n,n>>14&1,n>>15&1]}function Bu(e,t,n){var r=2;if(n){if(n.biff>=2&&n.biff<=5)return Qu(e);12==n.biff&&(r=4)}var o=e.read_shift(r),i=e.read_shift(r),s=Fu(e,2),a=Fu(e,2);return{s:{r:o,c:s[0],cRel:s[1],rRel:s[2]},e:{r:i,c:a[0],cRel:a[1],rRel:a[2]}}}function Qu(e){var t=Fu(e,2),n=Fu(e,2),r=e.read_shift(1),o=e.read_shift(1);return{s:{r:t[0],c:r,cRel:t[1],rRel:t[2]},e:{r:n[0],c:o,cRel:n[1],rRel:n[2]}}}function Hu(e,t,n){if(n&&n.biff>=2&&n.biff<=5)return function(e){var t=Fu(e,2),n=e.read_shift(1);return{r:t[0],c:n,cRel:t[1],rRel:t[2]}}(e);var r=e.read_shift(n&&12==n.biff?4:2),o=Fu(e,2);return{r,c:o[0],cRel:o[1],rRel:o[2]}}function zu(e){var t=e.read_shift(2),n=e.read_shift(2);return{r:t,c:255&n,fQuoted:!!(16384&n),cRel:n>>15,rRel:n>>15}}function Uu(e){var t=1&e[e.l+1];return e.l+=4,[t,1]}function Wu(e){return[e.read_shift(1),e.read_shift(1)]}function Gu(e,t){var n=[e.read_shift(1)];if(12==t)switch(n[0]){case 2:n[0]=4;break;case 4:n[0]=16;break;case 0:n[0]=1;break;case 1:n[0]=2}switch(n[0]){case 4:n[1]=function(e,t){return 1===e.read_shift(t)}(e,1)?"TRUE":"FALSE",12!=t&&(e.l+=7);break;case 37:case 16:n[1]=sl[e[e.l]],e.l+=12==t?4:8;break;case 0:e.l+=8;break;case 1:n[1]=Xa(e);break;case 2:n[1]=function(e,t,n){if(n.biff>5)return function(e,t,n){var r=e.read_shift(n&&2==n.biff?1:2);return 0===r?(e.l++,""):function(e,t,n){if(n){if(n.biff>=2&&n.biff<=5)return e.read_shift(t,"cpstr");if(n.biff>=12)return e.read_shift(t,"dbcs-cont")}return 0===e.read_shift(1)?e.read_shift(t,"sbcs-cont"):e.read_shift(t,"dbcs-cont")}(e,r,n)}(e,0,n);var r=e.read_shift(1);return 0===r?(e.l++,""):e.read_shift(r,n.biff<=4||!e.lens?"cpstr":"sbcs-cont")}(e,0,{biff:t>0&&t<8?2:t});break;default:throw new Error("Bad SerAr: "+n[0])}return n}function $u(e,t,n){for(var r=e.read_shift(12==n.biff?4:2),o=[],i=0;i!=r;++i)o.push((12==n.biff?Ka:Fl)(e,8));return o}function Ju(e,t,n){var r=0,o=0;12==n.biff?(r=e.read_shift(4),o=e.read_shift(4)):(o=1+e.read_shift(1),r=1+e.read_shift(2)),n.biff>=2&&n.biff<8&&(--r,0==--o&&(o=256));for(var i=0,s=[];i!=r&&(s[i]=[]);++i)for(var a=0;a!=o;++a)s[i][a]=Gu(e,n.biff);return s}function Ku(e,t,n){return e.l+=2,[zu(e)]}function Yu(e){return e.l+=6,[]}function Xu(e){return e.l+=2,[Rl(e),1&e.read_shift(2)]}var Zu=["Data","All","Headers","??","?Data2","??","?DataHeaders","??","Totals","??","??","??","?DataTotals","??","??","??","?Current"],ec={1:{n:"PtgExp",f:function(e,t,n){return e.l++,n&&12==n.biff?[e.read_shift(4,"i"),0]:[e.read_shift(2),e.read_shift(n&&2==n.biff?1:2)]}},2:{n:"PtgTbl",f:ua},3:{n:"PtgAdd",f:qu},4:{n:"PtgSub",f:qu},5:{n:"PtgMul",f:qu},6:{n:"PtgDiv",f:qu},7:{n:"PtgPower",f:qu},8:{n:"PtgConcat",f:qu},9:{n:"PtgLt",f:qu},10:{n:"PtgLe",f:qu},11:{n:"PtgEq",f:qu},12:{n:"PtgGe",f:qu},13:{n:"PtgGt",f:qu},14:{n:"PtgNe",f:qu},15:{n:"PtgIsect",f:qu},16:{n:"PtgUnion",f:qu},17:{n:"PtgRange",f:qu},18:{n:"PtgUplus",f:qu},19:{n:"PtgUminus",f:qu},20:{n:"PtgPercent",f:qu},21:{n:"PtgParen",f:qu},22:{n:"PtgMissArg",f:qu},23:{n:"PtgStr",f:function(e,t,n){return e.l++,Al(e,0,n)}},26:{n:"PtgSheet",f:function(e,t,n){return e.l+=5,e.l+=2,e.l+=2==n.biff?1:4,["PTGSHEET"]}},27:{n:"PtgEndSheet",f:function(e,t,n){return e.l+=2==n.biff?4:5,["PTGENDSHEET"]}},28:{n:"PtgErr",f:function(e){return e.l++,sl[e.read_shift(1)]}},29:{n:"PtgBool",f:function(e){return e.l++,0!==e.read_shift(1)}},30:{n:"PtgInt",f:function(e){return e.l++,e.read_shift(2)}},31:{n:"PtgNum",f:function(e){return e.l++,Xa(e)}},32:{n:"PtgArray",f:function(e,t,n){var r=(96&e[e.l++])>>5;return e.l+=2==n.biff?6:12==n.biff?14:7,[r]}},33:{n:"PtgFunc",f:function(e,t,n){var r=(96&e[e.l])>>5;e.l+=1;var o=e.read_shift(n&&n.biff<=3?1:2);return[yc[o],gc[o],r]}},34:{n:"PtgFuncVar",f:function(e,t,n){var r=e[e.l++],o=e.read_shift(1),i=n&&n.biff<=3?[88==r?-1:0,e.read_shift(1)]:function(e){return[e[e.l+1]>>7,32767&e.read_shift(2)]}(e);return[o,(0===i[0]?gc:mc)[i[1]]]}},35:{n:"PtgName",f:function(e,t,n){var r=e.read_shift(1)>>>5&3,o=!n||n.biff>=8?4:2,i=e.read_shift(o);switch(n.biff){case 2:e.l+=5;break;case 3:case 4:e.l+=8;break;case 5:e.l+=12}return[r,0,i]}},36:{n:"PtgRef",f:function(e,t,n){var r=(96&e[e.l])>>5;return e.l+=1,[r,Hu(e,0,n)]}},37:{n:"PtgArea",f:function(e,t,n){return[(96&e[e.l++])>>5,Bu(e,n.biff>=2&&n.biff,n)]}},38:{n:"PtgMemArea",f:function(e,t,n){var r=e.read_shift(1)>>>5&3;return e.l+=n&&2==n.biff?3:4,[r,e.read_shift(n&&2==n.biff?1:2)]}},39:{n:"PtgMemErr",f:ua},40:{n:"PtgMemNoMem",f:ua},41:{n:"PtgMemFunc",f:function(e,t,n){return[e.read_shift(1)>>>5&3,e.read_shift(n&&2==n.biff?1:2)]}},42:{n:"PtgRefErr",f:function(e,t,n){var r=e.read_shift(1)>>>5&3;return e.l+=4,n.biff<8&&e.l--,12==n.biff&&(e.l+=2),[r]}},43:{n:"PtgAreaErr",f:function(e,t,n){var r=(96&e[e.l++])>>5;return e.l+=n&&n.biff>8?12:n.biff<8?6:8,[r]}},44:{n:"PtgRefN",f:function(e,t,n){var r=(96&e[e.l])>>5;e.l+=1;var o=function(e,t,n){var r=n&&n.biff?n.biff:8;if(r>=2&&r<=5)return function(e){var t=e.read_shift(2),n=e.read_shift(1),r=(32768&t)>>15,o=(16384&t)>>14;return t&=16383,1==r&&t>=8192&&(t-=16384),1==o&&n>=128&&(n-=256),{r:t,c:n,cRel:o,rRel:r}}(e);var o=e.read_shift(r>=12?4:2),i=e.read_shift(2),s=(16384&i)>>14,a=(32768&i)>>15;if(i&=16383,1==a)for(;o>524287;)o-=1048576;if(1==s)for(;i>8191;)i-=16384;return{r:o,c:i,cRel:s,rRel:a}}(e,0,n);return[r,o]}},45:{n:"PtgAreaN",f:function(e,t,n){var r=(96&e[e.l++])>>5,o=function(e,t,n){if(n.biff<8)return Qu(e);var r=e.read_shift(12==n.biff?4:2),o=e.read_shift(12==n.biff?4:2),i=Fu(e,2),s=Fu(e,2);return{s:{r,c:i[0],cRel:i[1],rRel:i[2]},e:{r:o,c:s[0],cRel:s[1],rRel:s[2]}}}(e,0,n);return[r,o]}},46:{n:"PtgMemAreaN",f:function(e){return[e.read_shift(1)>>>5&3,e.read_shift(2)]}},47:{n:"PtgMemNoMemN",f:function(e){return[e.read_shift(1)>>>5&3,e.read_shift(2)]}},57:{n:"PtgNameX",f:function(e,t,n){return 5==n.biff?function(e){var t=e.read_shift(1)>>>5&3,n=e.read_shift(2,"i");e.l+=8;var r=e.read_shift(2);return e.l+=12,[t,n,r]}(e):[e.read_shift(1)>>>5&3,e.read_shift(2),e.read_shift(4)]}},58:{n:"PtgRef3d",f:function(e,t,n){var r=(96&e[e.l])>>5;e.l+=1;var o=e.read_shift(2);return n&&5==n.biff&&(e.l+=12),[r,o,Hu(e,0,n)]}},59:{n:"PtgArea3d",f:function(e,t,n){var r=(96&e[e.l++])>>5,o=e.read_shift(2,"i");if(n&&5===n.biff)e.l+=12;return[r,o,Bu(e,0,n)]}},60:{n:"PtgRefErr3d",f:function(e,t,n){var r=(96&e[e.l++])>>5,o=e.read_shift(2),i=4;if(n)switch(n.biff){case 5:i=15;break;case 12:i=6}return e.l+=i,[r,o]}},61:{n:"PtgAreaErr3d",f:function(e,t,n){var r=(96&e[e.l++])>>5,o=e.read_shift(2),i=8;if(n)switch(n.biff){case 5:e.l+=12,i=6;break;case 12:i=12}return e.l+=i,[r,o]}},255:{}},tc={64:32,96:32,65:33,97:33,66:34,98:34,67:35,99:35,68:36,100:36,69:37,101:37,70:38,102:38,71:39,103:39,72:40,104:40,73:41,105:41,74:42,106:42,75:43,107:43,76:44,108:44,77:45,109:45,78:46,110:46,79:47,111:47,88:34,120:34,89:57,121:57,90:58,122:58,91:59,123:59,92:60,124:60,93:61,125:61},nc={1:{n:"PtgElfLel",f:Xu},2:{n:"PtgElfRw",f:Ku},3:{n:"PtgElfCol",f:Ku},6:{n:"PtgElfRwV",f:Ku},7:{n:"PtgElfColV",f:Ku},10:{n:"PtgElfRadical",f:Ku},11:{n:"PtgElfRadicalS",f:Yu},13:{n:"PtgElfColS",f:Yu},15:{n:"PtgElfColSV",f:Yu},16:{n:"PtgElfRadicalLel",f:Xu},25:{n:"PtgList",f:function(e){e.l+=2;var t=e.read_shift(2),n=e.read_shift(2),r=e.read_shift(4),o=e.read_shift(2),i=e.read_shift(2);return{ixti:t,coltype:3&n,rt:Zu[n>>2&31],idx:r,c:o,C:i}}},29:{n:"PtgSxName",f:function(e){return e.l+=2,[e.read_shift(4)]}},255:{}},rc={0:{n:"PtgAttrNoop",f:function(e){return e.l+=4,[0,0]}},1:{n:"PtgAttrSemi",f:function(e,t,n){var r=255&e[e.l+1]?1:0;return e.l+=n&&2==n.biff?3:4,[r]}},2:{n:"PtgAttrIf",f:function(e,t,n){var r=255&e[e.l+1]?1:0;return e.l+=2,[r,e.read_shift(n&&2==n.biff?1:2)]}},4:{n:"PtgAttrChoose",f:function(e,t,n){e.l+=2;for(var r=e.read_shift(n&&2==n.biff?1:2),o=[],i=0;i<=r;++i)o.push(e.read_shift(n&&2==n.biff?1:2));return o}},8:{n:"PtgAttrGoto",f:function(e,t,n){var r=255&e[e.l+1]?1:0;return e.l+=2,[r,e.read_shift(n&&2==n.biff?1:2)]}},16:{n:"PtgAttrSum",f:function(e,t,n){e.l+=n&&2==n.biff?3:4}},32:{n:"PtgAttrBaxcel",f:Uu},33:{n:"PtgAttrBaxcel",f:Uu},64:{n:"PtgAttrSpace",f:function(e){return e.read_shift(2),Wu(e)}},65:{n:"PtgAttrSpaceSemi",f:function(e){return e.read_shift(2),Wu(e)}},128:{n:"PtgAttrIfError",f:function(e){var t=255&e[e.l+1]?1:0;return e.l+=2,[t,e.read_shift(2)]}},255:{}};function oc(e,t,n,r){if(r.biff<8)return ua(e,t);for(var o=e.l+t,i=[],s=0;s!==n.length;++s)switch(n[s][0]){case"PtgArray":n[s][1]=Ju(e,0,r),i.push(n[s][1]);break;case"PtgMemArea":n[s][2]=$u(e,n[s][1],r),i.push(n[s][2]);break;case"PtgExp":r&&12==r.biff&&(n[s][1][1]=e.read_shift(4),i.push(n[s][1]));break;case"PtgList":case"PtgElfRadicalS":case"PtgElfColS":case"PtgElfColSV":throw"Unsupported "+n[s][0]}return 0!=(t=o-e.l)&&i.push(ua(e,t)),i}function ic(e){for(var t=[],n=0;n<e.length;++n){for(var r=e[n],o=[],i=0;i<r.length;++i){var s=r[i];s?2===s[0]?o.push('"'+s[1].replace(/"/g,'""')+'"'):o.push(s[1]):o.push("")}t.push(o.join(","))}return t.join(";")}var sc={PtgAdd:"+",PtgConcat:"&",PtgDiv:"/",PtgEq:"=",PtgGe:">=",PtgGt:">",PtgLe:"<=",PtgLt:"<",PtgMul:"*",PtgNe:"<>",PtgPower:"^",PtgSub:"-"};function ac(e,t,n){if(!e)return"SH33TJSERR0";if(n.biff>8&&(!e.XTI||!e.XTI[t]))return e.SheetNames[t];if(!e.XTI)return"SH33TJSERR6";var r=e.XTI[t];if(n.biff<8)return t>1e4&&(t-=65536),t<0&&(t=-t),0==t?"":e.XTI[t-1];if(!r)return"SH33TJSERR1";var o="";if(n.biff>8)switch(e[r[0]][0]){case 357:return o=-1==r[1]?"#REF":e.SheetNames[r[1]],r[1]==r[2]?o:o+":"+e.SheetNames[r[2]];case 358:return null!=n.SID?e.SheetNames[n.SID]:"SH33TJSSAME"+e[r[0]][0];default:return"SH33TJSSRC"+e[r[0]][0]}switch(e[r[0]][0][0]){case 1025:return o=-1==r[1]?"#REF":e.SheetNames[r[1]]||"SH33TJSERR3",r[1]==r[2]?o:o+":"+e.SheetNames[r[2]];case 14849:return e[r[0]].slice(1).map((function(e){return e.Name})).join(";;");default:return e[r[0]][0][3]?(o=-1==r[1]?"#REF":e[r[0]][0][3][r[1]]||"SH33TJSERR4",r[1]==r[2]?o:o+":"+e[r[0]][0][3][r[2]]):"SH33TJSERR2"}}function lc(e,t,n){var r=ac(e,t,n);return"#REF"==r?r:function(e,t){if(!(e||t&&t.biff<=5&&t.biff>=2))throw new Error("empty sheet name");return/[^\w\u4E00-\u9FFF\u3040-\u30FF]/.test(e)?"'"+e+"'":e}(r,n)}function uc(e,t,n,r,o){var i,s,a,l,u=o&&o.biff||8,c={s:{c:0,r:0},e:{c:0,r:0}},p=[],d=0,h=0,f="";if(!e[0]||!e[0][0])return"";for(var m=-1,g="",y=0,v=e[0].length;y<v;++y){var b=e[0][y];switch(b[0]){case"PtgUminus":p.push("-"+p.pop());break;case"PtgUplus":p.push("+"+p.pop());break;case"PtgPercent":p.push(p.pop()+"%");break;case"PtgAdd":case"PtgConcat":case"PtgDiv":case"PtgEq":case"PtgGe":case"PtgGt":case"PtgLe":case"PtgLt":case"PtgMul":case"PtgNe":case"PtgPower":case"PtgSub":if(i=p.pop(),s=p.pop(),m>=0){switch(e[0][m][1][0]){case 0:g=ts(" ",e[0][m][1][1]);break;case 1:g=ts("\r",e[0][m][1][1]);break;default:if(g="",o.WTF)throw new Error("Unexpected PtgAttrSpaceType "+e[0][m][1][0])}s+=g,m=-1}p.push(s+sc[b[0]]+i);break;case"PtgIsect":i=p.pop(),s=p.pop(),p.push(s+" "+i);break;case"PtgUnion":i=p.pop(),s=p.pop(),p.push(s+","+i);break;case"PtgRange":i=p.pop(),s=p.pop(),p.push(s+":"+i);break;case"PtgAttrChoose":case"PtgAttrGoto":case"PtgAttrIf":case"PtgAttrIfError":case"PtgAttrBaxcel":case"PtgAttrSemi":case"PtgMemArea":case"PtgTbl":case"PtgMemErr":case"PtgMemAreaN":case"PtgMemNoMemN":case"PtgAttrNoop":case"PtgSheet":case"PtgEndSheet":case"PtgMemFunc":case"PtgMemNoMem":break;case"PtgRef":a=ha(b[1][1],c,o),p.push(ma(a,u));break;case"PtgRefN":a=n?ha(b[1][1],n,o):b[1][1],p.push(ma(a,u));break;case"PtgRef3d":d=b[1][1],a=ha(b[1][2],c,o),f=lc(r,d,o),p.push(f+"!"+ma(a,u));break;case"PtgFunc":case"PtgFuncVar":var C=b[1][0],w=b[1][1];C||(C=0);var x=0==(C&=127)?[]:p.slice(-C);p.length-=C,"User"===w&&(w=x.shift()),p.push(w+"("+x.join(",")+")");break;case"PtgBool":p.push(b[1]?"TRUE":"FALSE");break;case"PtgInt":case"PtgErr":p.push(b[1]);break;case"PtgNum":p.push(String(b[1]));break;case"PtgStr":p.push('"'+b[1].replace(/"/g,'""')+'"');break;case"PtgAreaN":l=fa(b[1][1],n?{s:n}:c,o),p.push(ga(l,o));break;case"PtgArea":l=fa(b[1][1],c,o),p.push(ga(l,o));break;case"PtgArea3d":d=b[1][1],l=b[1][2],f=lc(r,d,o),p.push(f+"!"+ga(l,o));break;case"PtgAttrSum":p.push("SUM("+p.pop()+")");break;case"PtgName":h=b[1][2];var P=(r.names||[])[h-1]||(r[0]||[])[h],S=P?P.Name:"SH33TJSNAME"+String(h);S&&"_xlfn."==S.slice(0,6)&&!o.xlfn&&(S=S.slice(6)),p.push(S);break;case"PtgNameX":var E,T=b[1][1];if(h=b[1][2],!(o.biff<=5)){var O="";if(14849==((r[T]||[])[0]||[])[0]||(1025==((r[T]||[])[0]||[])[0]?r[T][h]&&r[T][h].itab>0&&(O=r.SheetNames[r[T][h].itab-1]+"!"):O=r.SheetNames[h-1]+"!"),r[T]&&r[T][h])O+=r[T][h].Name;else if(r[0]&&r[0][h])O+=r[0][h].Name;else{var V=(ac(r,T,o)||"").split(";;");V[h-1]?O=V[h-1]:O+="SH33TJSERRX"}p.push(O);break}T<0&&(T=-T),r[T]&&(E=r[T][h]),E||(E={Name:"SH33TJSERRY"}),p.push(E.Name);break;case"PtgParen":var _="(",R=")";if(m>=0){switch(g="",e[0][m][1][0]){case 2:_=ts(" ",e[0][m][1][1])+_;break;case 3:_=ts("\r",e[0][m][1][1])+_;break;case 4:R=ts(" ",e[0][m][1][1])+R;break;case 5:R=ts("\r",e[0][m][1][1])+R;break;default:if(o.WTF)throw new Error("Unexpected PtgAttrSpaceType "+e[0][m][1][0])}m=-1}p.push(_+p.pop()+R);break;case"PtgRefErr":case"PtgRefErr3d":case"PtgAreaErr":case"PtgAreaErr3d":p.push("#REF!");break;case"PtgExp":a={c:b[1][1],r:b[1][0]};var I={c:n.c,r:n.r};if(r.sharedf[xa(a)]){var D=r.sharedf[xa(a)];p.push(uc(D,0,I,r,o))}else{var A=!1;for(i=0;i!=r.arrayf.length;++i)if(s=r.arrayf[i],!(a.c<s[0].s.c||a.c>s[0].e.c||a.r<s[0].s.r||a.r>s[0].e.r)){p.push(uc(s[1],0,I,r,o)),A=!0;break}A||p.push(b[1])}break;case"PtgArray":p.push("{"+ic(b[1])+"}");break;case"PtgAttrSpace":case"PtgAttrSpaceSemi":m=y;break;case"PtgMissArg":p.push("");break;case"PtgList":p.push("Table"+b[1].idx+"[#"+b[1].rt+"]");break;case"PtgElfCol":case"PtgElfColS":case"PtgElfColSV":case"PtgElfColV":case"PtgElfLel":case"PtgElfRadical":case"PtgElfRadicalLel":case"PtgElfRadicalS":case"PtgElfRw":case"PtgElfRwV":throw new Error("Unsupported ELFs");default:throw new Error("Unrecognized Formula Token: "+String(b))}if(3!=o.biff&&m>=0&&-1==["PtgAttrSpace","PtgAttrSpaceSemi","PtgAttrGoto"].indexOf(e[0][y][0])){var k=!0;switch((b=e[0][m])[1][0]){case 4:k=!1;case 0:g=ts(" ",b[1][1]);break;case 5:k=!1;case 1:g=ts("\r",b[1][1]);break;default:if(g="",o.WTF)throw new Error("Unexpected PtgAttrSpaceType "+b[1][0])}p.push((k?g:"")+p.pop()+(k?"":g)),m=-1}}if(p.length>1&&o.WTF)throw new Error("bad formula stack");return p[0]}function cc(e,t,n){var r=e.read_shift(4),o=function(e,t,n){for(var r,o,i=e.l+t,s=[];i!=e.l;)t=i-e.l,o=e[e.l],r=ec[o]||ec[tc[o]],24!==o&&25!==o||(r=(24===o?nc:rc)[e[e.l+1]]),r&&r.f?s.push([r.n,r.f(e,t,n)]):ua(e,t);return s}(e,r,n),i=e.read_shift(4);return[o,i>0?oc(e,i,o,n):null]}var pc=cc,dc=cc,hc=cc,fc=cc,mc={0:"BEEP",1:"OPEN",2:"OPEN.LINKS",3:"CLOSE.ALL",4:"SAVE",5:"SAVE.AS",6:"FILE.DELETE",7:"PAGE.SETUP",8:"PRINT",9:"PRINTER.SETUP",10:"QUIT",11:"NEW.WINDOW",12:"ARRANGE.ALL",13:"WINDOW.SIZE",14:"WINDOW.MOVE",15:"FULL",16:"CLOSE",17:"RUN",22:"SET.PRINT.AREA",23:"SET.PRINT.TITLES",24:"SET.PAGE.BREAK",25:"REMOVE.PAGE.BREAK",26:"FONT",27:"DISPLAY",28:"PROTECT.DOCUMENT",29:"PRECISION",30:"A1.R1C1",31:"CALCULATE.NOW",32:"CALCULATION",34:"DATA.FIND",35:"EXTRACT",36:"DATA.DELETE",37:"SET.DATABASE",38:"SET.CRITERIA",39:"SORT",40:"DATA.SERIES",41:"TABLE",42:"FORMAT.NUMBER",43:"ALIGNMENT",44:"STYLE",45:"BORDER",46:"CELL.PROTECTION",47:"COLUMN.WIDTH",48:"UNDO",49:"CUT",50:"COPY",51:"PASTE",52:"CLEAR",53:"PASTE.SPECIAL",54:"EDIT.DELETE",55:"INSERT",56:"FILL.RIGHT",57:"FILL.DOWN",61:"DEFINE.NAME",62:"CREATE.NAMES",63:"FORMULA.GOTO",64:"FORMULA.FIND",65:"SELECT.LAST.CELL",66:"SHOW.ACTIVE.CELL",67:"GALLERY.AREA",68:"GALLERY.BAR",69:"GALLERY.COLUMN",70:"GALLERY.LINE",71:"GALLERY.PIE",72:"GALLERY.SCATTER",73:"COMBINATION",74:"PREFERRED",75:"ADD.OVERLAY",76:"GRIDLINES",77:"SET.PREFERRED",78:"AXES",79:"LEGEND",80:"ATTACH.TEXT",81:"ADD.ARROW",82:"SELECT.CHART",83:"SELECT.PLOT.AREA",84:"PATTERNS",85:"MAIN.CHART",86:"OVERLAY",87:"SCALE",88:"FORMAT.LEGEND",89:"FORMAT.TEXT",90:"EDIT.REPEAT",91:"PARSE",92:"JUSTIFY",93:"HIDE",94:"UNHIDE",95:"WORKSPACE",96:"FORMULA",97:"FORMULA.FILL",98:"FORMULA.ARRAY",99:"DATA.FIND.NEXT",100:"DATA.FIND.PREV",101:"FORMULA.FIND.NEXT",102:"FORMULA.FIND.PREV",103:"ACTIVATE",104:"ACTIVATE.NEXT",105:"ACTIVATE.PREV",106:"UNLOCKED.NEXT",107:"UNLOCKED.PREV",108:"COPY.PICTURE",109:"SELECT",110:"DELETE.NAME",111:"DELETE.FORMAT",112:"VLINE",113:"HLINE",114:"VPAGE",115:"HPAGE",116:"VSCROLL",117:"HSCROLL",118:"ALERT",119:"NEW",120:"CANCEL.COPY",121:"SHOW.CLIPBOARD",122:"MESSAGE",124:"PASTE.LINK",125:"APP.ACTIVATE",126:"DELETE.ARROW",127:"ROW.HEIGHT",128:"FORMAT.MOVE",129:"FORMAT.SIZE",130:"FORMULA.REPLACE",131:"SEND.KEYS",132:"SELECT.SPECIAL",133:"APPLY.NAMES",134:"REPLACE.FONT",135:"FREEZE.PANES",136:"SHOW.INFO",137:"SPLIT",138:"ON.WINDOW",139:"ON.DATA",140:"DISABLE.INPUT",142:"OUTLINE",143:"LIST.NAMES",144:"FILE.CLOSE",145:"SAVE.WORKBOOK",146:"DATA.FORM",147:"COPY.CHART",148:"ON.TIME",149:"WAIT",150:"FORMAT.FONT",151:"FILL.UP",152:"FILL.LEFT",153:"DELETE.OVERLAY",155:"SHORT.MENUS",159:"SET.UPDATE.STATUS",161:"COLOR.PALETTE",162:"DELETE.STYLE",163:"WINDOW.RESTORE",164:"WINDOW.MAXIMIZE",166:"CHANGE.LINK",167:"CALCULATE.DOCUMENT",168:"ON.KEY",169:"APP.RESTORE",170:"APP.MOVE",171:"APP.SIZE",172:"APP.MINIMIZE",173:"APP.MAXIMIZE",174:"BRING.TO.FRONT",175:"SEND.TO.BACK",185:"MAIN.CHART.TYPE",186:"OVERLAY.CHART.TYPE",187:"SELECT.END",188:"OPEN.MAIL",189:"SEND.MAIL",190:"STANDARD.FONT",191:"CONSOLIDATE",192:"SORT.SPECIAL",193:"GALLERY.3D.AREA",194:"GALLERY.3D.COLUMN",195:"GALLERY.3D.LINE",196:"GALLERY.3D.PIE",197:"VIEW.3D",198:"GOAL.SEEK",199:"WORKGROUP",200:"FILL.GROUP",201:"UPDATE.LINK",202:"PROMOTE",203:"DEMOTE",204:"SHOW.DETAIL",206:"UNGROUP",207:"OBJECT.PROPERTIES",208:"SAVE.NEW.OBJECT",209:"SHARE",210:"SHARE.NAME",211:"DUPLICATE",212:"APPLY.STYLE",213:"ASSIGN.TO.OBJECT",214:"OBJECT.PROTECTION",215:"HIDE.OBJECT",216:"SET.EXTRACT",217:"CREATE.PUBLISHER",218:"SUBSCRIBE.TO",219:"ATTRIBUTES",220:"SHOW.TOOLBAR",222:"PRINT.PREVIEW",223:"EDIT.COLOR",224:"SHOW.LEVELS",225:"FORMAT.MAIN",226:"FORMAT.OVERLAY",227:"ON.RECALC",228:"EDIT.SERIES",229:"DEFINE.STYLE",240:"LINE.PRINT",243:"ENTER.DATA",249:"GALLERY.RADAR",250:"MERGE.STYLES",251:"EDITION.OPTIONS",252:"PASTE.PICTURE",253:"PASTE.PICTURE.LINK",254:"SPELLING",256:"ZOOM",259:"INSERT.OBJECT",260:"WINDOW.MINIMIZE",265:"SOUND.NOTE",266:"SOUND.PLAY",267:"FORMAT.SHAPE",268:"EXTEND.POLYGON",269:"FORMAT.AUTO",272:"GALLERY.3D.BAR",273:"GALLERY.3D.SURFACE",274:"FILL.AUTO",276:"CUSTOMIZE.TOOLBAR",277:"ADD.TOOL",278:"EDIT.OBJECT",279:"ON.DOUBLECLICK",280:"ON.ENTRY",281:"WORKBOOK.ADD",282:"WORKBOOK.MOVE",283:"WORKBOOK.COPY",284:"WORKBOOK.OPTIONS",285:"SAVE.WORKSPACE",288:"CHART.WIZARD",289:"DELETE.TOOL",290:"MOVE.TOOL",291:"WORKBOOK.SELECT",292:"WORKBOOK.ACTIVATE",293:"ASSIGN.TO.TOOL",295:"COPY.TOOL",296:"RESET.TOOL",297:"CONSTRAIN.NUMERIC",298:"PASTE.TOOL",302:"WORKBOOK.NEW",305:"SCENARIO.CELLS",306:"SCENARIO.DELETE",307:"SCENARIO.ADD",308:"SCENARIO.EDIT",309:"SCENARIO.SHOW",310:"SCENARIO.SHOW.NEXT",311:"SCENARIO.SUMMARY",312:"PIVOT.TABLE.WIZARD",313:"PIVOT.FIELD.PROPERTIES",314:"PIVOT.FIELD",315:"PIVOT.ITEM",316:"PIVOT.ADD.FIELDS",318:"OPTIONS.CALCULATION",319:"OPTIONS.EDIT",320:"OPTIONS.VIEW",321:"ADDIN.MANAGER",322:"MENU.EDITOR",323:"ATTACH.TOOLBARS",324:"VBAActivate",325:"OPTIONS.CHART",328:"VBA.INSERT.FILE",330:"VBA.PROCEDURE.DEFINITION",336:"ROUTING.SLIP",338:"ROUTE.DOCUMENT",339:"MAIL.LOGON",342:"INSERT.PICTURE",343:"EDIT.TOOL",344:"GALLERY.DOUGHNUT",350:"CHART.TREND",352:"PIVOT.ITEM.PROPERTIES",354:"WORKBOOK.INSERT",355:"OPTIONS.TRANSITION",356:"OPTIONS.GENERAL",370:"FILTER.ADVANCED",373:"MAIL.ADD.MAILER",374:"MAIL.DELETE.MAILER",375:"MAIL.REPLY",376:"MAIL.REPLY.ALL",377:"MAIL.FORWARD",378:"MAIL.NEXT.LETTER",379:"DATA.LABEL",380:"INSERT.TITLE",381:"FONT.PROPERTIES",382:"MACRO.OPTIONS",383:"WORKBOOK.HIDE",384:"WORKBOOK.UNHIDE",385:"WORKBOOK.DELETE",386:"WORKBOOK.NAME",388:"GALLERY.CUSTOM",390:"ADD.CHART.AUTOFORMAT",391:"DELETE.CHART.AUTOFORMAT",392:"CHART.ADD.DATA",393:"AUTO.OUTLINE",394:"TAB.ORDER",395:"SHOW.DIALOG",396:"SELECT.ALL",397:"UNGROUP.SHEETS",398:"SUBTOTAL.CREATE",399:"SUBTOTAL.REMOVE",400:"RENAME.OBJECT",412:"WORKBOOK.SCROLL",413:"WORKBOOK.NEXT",414:"WORKBOOK.PREV",415:"WORKBOOK.TAB.SPLIT",416:"FULL.SCREEN",417:"WORKBOOK.PROTECT",420:"SCROLLBAR.PROPERTIES",421:"PIVOT.SHOW.PAGES",422:"TEXT.TO.COLUMNS",423:"FORMAT.CHARTTYPE",424:"LINK.FORMAT",425:"TRACER.DISPLAY",430:"TRACER.NAVIGATE",431:"TRACER.CLEAR",432:"TRACER.ERROR",433:"PIVOT.FIELD.GROUP",434:"PIVOT.FIELD.UNGROUP",435:"CHECKBOX.PROPERTIES",436:"LABEL.PROPERTIES",437:"LISTBOX.PROPERTIES",438:"EDITBOX.PROPERTIES",439:"PIVOT.REFRESH",440:"LINK.COMBO",441:"OPEN.TEXT",442:"HIDE.DIALOG",443:"SET.DIALOG.FOCUS",444:"ENABLE.OBJECT",445:"PUSHBUTTON.PROPERTIES",446:"SET.DIALOG.DEFAULT",447:"FILTER",448:"FILTER.SHOW.ALL",449:"CLEAR.OUTLINE",450:"FUNCTION.WIZARD",451:"ADD.LIST.ITEM",452:"SET.LIST.ITEM",453:"REMOVE.LIST.ITEM",454:"SELECT.LIST.ITEM",455:"SET.CONTROL.VALUE",456:"SAVE.COPY.AS",458:"OPTIONS.LISTS.ADD",459:"OPTIONS.LISTS.DELETE",460:"SERIES.AXES",461:"SERIES.X",462:"SERIES.Y",463:"ERRORBAR.X",464:"ERRORBAR.Y",465:"FORMAT.CHART",466:"SERIES.ORDER",467:"MAIL.LOGOFF",468:"CLEAR.ROUTING.SLIP",469:"APP.ACTIVATE.MICROSOFT",470:"MAIL.EDIT.MAILER",471:"ON.SHEET",472:"STANDARD.WIDTH",473:"SCENARIO.MERGE",474:"SUMMARY.INFO",475:"FIND.FILE",476:"ACTIVE.CELL.FONT",477:"ENABLE.TIPWIZARD",478:"VBA.MAKE.ADDIN",480:"INSERTDATATABLE",481:"WORKGROUP.OPTIONS",482:"MAIL.SEND.MAILER",485:"AUTOCORRECT",489:"POST.DOCUMENT",491:"PICKLIST",493:"VIEW.SHOW",494:"VIEW.DEFINE",495:"VIEW.DELETE",509:"SHEET.BACKGROUND",510:"INSERT.MAP.OBJECT",511:"OPTIONS.MENONO",517:"MSOCHECKS",518:"NORMAL",519:"LAYOUT",520:"RM.PRINT.AREA",521:"CLEAR.PRINT.AREA",522:"ADD.PRINT.AREA",523:"MOVE.BRK",545:"HIDECURR.NOTE",546:"HIDEALL.NOTES",547:"DELETE.NOTE",548:"TRAVERSE.NOTES",549:"ACTIVATE.NOTES",620:"PROTECT.REVISIONS",621:"UNPROTECT.REVISIONS",647:"OPTIONS.ME",653:"WEB.PUBLISH",667:"NEWWEBQUERY",673:"PIVOT.TABLE.CHART",753:"OPTIONS.SAVE",755:"OPTIONS.SPELL",808:"HIDEALL.INKANNOTS"},gc={0:"COUNT",1:"IF",2:"ISNA",3:"ISERROR",4:"SUM",5:"AVERAGE",6:"MIN",7:"MAX",8:"ROW",9:"COLUMN",10:"NA",11:"NPV",12:"STDEV",13:"DOLLAR",14:"FIXED",15:"SIN",16:"COS",17:"TAN",18:"ATAN",19:"PI",20:"SQRT",21:"EXP",22:"LN",23:"LOG10",24:"ABS",25:"INT",26:"SIGN",27:"ROUND",28:"LOOKUP",29:"INDEX",30:"REPT",31:"MID",32:"LEN",33:"VALUE",34:"TRUE",35:"FALSE",36:"AND",37:"OR",38:"NOT",39:"MOD",40:"DCOUNT",41:"DSUM",42:"DAVERAGE",43:"DMIN",44:"DMAX",45:"DSTDEV",46:"VAR",47:"DVAR",48:"TEXT",49:"LINEST",50:"TREND",51:"LOGEST",52:"GROWTH",53:"GOTO",54:"HALT",55:"RETURN",56:"PV",57:"FV",58:"NPER",59:"PMT",60:"RATE",61:"MIRR",62:"IRR",63:"RAND",64:"MATCH",65:"DATE",66:"TIME",67:"DAY",68:"MONTH",69:"YEAR",70:"WEEKDAY",71:"HOUR",72:"MINUTE",73:"SECOND",74:"NOW",75:"AREAS",76:"ROWS",77:"COLUMNS",78:"OFFSET",79:"ABSREF",80:"RELREF",81:"ARGUMENT",82:"SEARCH",83:"TRANSPOSE",84:"ERROR",85:"STEP",86:"TYPE",87:"ECHO",88:"SET.NAME",89:"CALLER",90:"DEREF",91:"WINDOWS",92:"SERIES",93:"DOCUMENTS",94:"ACTIVE.CELL",95:"SELECTION",96:"RESULT",97:"ATAN2",98:"ASIN",99:"ACOS",100:"CHOOSE",101:"HLOOKUP",102:"VLOOKUP",103:"LINKS",104:"INPUT",105:"ISREF",106:"GET.FORMULA",107:"GET.NAME",108:"SET.VALUE",109:"LOG",110:"EXEC",111:"CHAR",112:"LOWER",113:"UPPER",114:"PROPER",115:"LEFT",116:"RIGHT",117:"EXACT",118:"TRIM",119:"REPLACE",120:"SUBSTITUTE",121:"CODE",122:"NAMES",123:"DIRECTORY",124:"FIND",125:"CELL",126:"ISERR",127:"ISTEXT",128:"ISNUMBER",129:"ISBLANK",130:"T",131:"N",132:"FOPEN",133:"FCLOSE",134:"FSIZE",135:"FREADLN",136:"FREAD",137:"FWRITELN",138:"FWRITE",139:"FPOS",140:"DATEVALUE",141:"TIMEVALUE",142:"SLN",143:"SYD",144:"DDB",145:"GET.DEF",146:"REFTEXT",147:"TEXTREF",148:"INDIRECT",149:"REGISTER",150:"CALL",151:"ADD.BAR",152:"ADD.MENU",153:"ADD.COMMAND",154:"ENABLE.COMMAND",155:"CHECK.COMMAND",156:"RENAME.COMMAND",157:"SHOW.BAR",158:"DELETE.MENU",159:"DELETE.COMMAND",160:"GET.CHART.ITEM",161:"DIALOG.BOX",162:"CLEAN",163:"MDETERM",164:"MINVERSE",165:"MMULT",166:"FILES",167:"IPMT",168:"PPMT",169:"COUNTA",170:"CANCEL.KEY",171:"FOR",172:"WHILE",173:"BREAK",174:"NEXT",175:"INITIATE",176:"REQUEST",177:"POKE",178:"EXECUTE",179:"TERMINATE",180:"RESTART",181:"HELP",182:"GET.BAR",183:"PRODUCT",184:"FACT",185:"GET.CELL",186:"GET.WORKSPACE",187:"GET.WINDOW",188:"GET.DOCUMENT",189:"DPRODUCT",190:"ISNONTEXT",191:"GET.NOTE",192:"NOTE",193:"STDEVP",194:"VARP",195:"DSTDEVP",196:"DVARP",197:"TRUNC",198:"ISLOGICAL",199:"DCOUNTA",200:"DELETE.BAR",201:"UNREGISTER",204:"USDOLLAR",205:"FINDB",206:"SEARCHB",207:"REPLACEB",208:"LEFTB",209:"RIGHTB",210:"MIDB",211:"LENB",212:"ROUNDUP",213:"ROUNDDOWN",214:"ASC",215:"DBCS",216:"RANK",219:"ADDRESS",220:"DAYS360",221:"TODAY",222:"VDB",223:"ELSE",224:"ELSE.IF",225:"END.IF",226:"FOR.CELL",227:"MEDIAN",228:"SUMPRODUCT",229:"SINH",230:"COSH",231:"TANH",232:"ASINH",233:"ACOSH",234:"ATANH",235:"DGET",236:"CREATE.OBJECT",237:"VOLATILE",238:"LAST.ERROR",239:"CUSTOM.UNDO",240:"CUSTOM.REPEAT",241:"FORMULA.CONVERT",242:"GET.LINK.INFO",243:"TEXT.BOX",244:"INFO",245:"GROUP",246:"GET.OBJECT",247:"DB",248:"PAUSE",251:"RESUME",252:"FREQUENCY",253:"ADD.TOOLBAR",254:"DELETE.TOOLBAR",255:"User",256:"RESET.TOOLBAR",257:"EVALUATE",258:"GET.TOOLBAR",259:"GET.TOOL",260:"SPELLING.CHECK",261:"ERROR.TYPE",262:"APP.TITLE",263:"WINDOW.TITLE",264:"SAVE.TOOLBAR",265:"ENABLE.TOOL",266:"PRESS.TOOL",267:"REGISTER.ID",268:"GET.WORKBOOK",269:"AVEDEV",270:"BETADIST",271:"GAMMALN",272:"BETAINV",273:"BINOMDIST",274:"CHIDIST",275:"CHIINV",276:"COMBIN",277:"CONFIDENCE",278:"CRITBINOM",279:"EVEN",280:"EXPONDIST",281:"FDIST",282:"FINV",283:"FISHER",284:"FISHERINV",285:"FLOOR",286:"GAMMADIST",287:"GAMMAINV",288:"CEILING",289:"HYPGEOMDIST",290:"LOGNORMDIST",291:"LOGINV",292:"NEGBINOMDIST",293:"NORMDIST",294:"NORMSDIST",295:"NORMINV",296:"NORMSINV",297:"STANDARDIZE",298:"ODD",299:"PERMUT",300:"POISSON",301:"TDIST",302:"WEIBULL",303:"SUMXMY2",304:"SUMX2MY2",305:"SUMX2PY2",306:"CHITEST",307:"CORREL",308:"COVAR",309:"FORECAST",310:"FTEST",311:"INTERCEPT",312:"PEARSON",313:"RSQ",314:"STEYX",315:"SLOPE",316:"TTEST",317:"PROB",318:"DEVSQ",319:"GEOMEAN",320:"HARMEAN",321:"SUMSQ",322:"KURT",323:"SKEW",324:"ZTEST",325:"LARGE",326:"SMALL",327:"QUARTILE",328:"PERCENTILE",329:"PERCENTRANK",330:"MODE",331:"TRIMMEAN",332:"TINV",334:"MOVIE.COMMAND",335:"GET.MOVIE",336:"CONCATENATE",337:"POWER",338:"PIVOT.ADD.DATA",339:"GET.PIVOT.TABLE",340:"GET.PIVOT.FIELD",341:"GET.PIVOT.ITEM",342:"RADIANS",343:"DEGREES",344:"SUBTOTAL",345:"SUMIF",346:"COUNTIF",347:"COUNTBLANK",348:"SCENARIO.GET",349:"OPTIONS.LISTS.GET",350:"ISPMT",351:"DATEDIF",352:"DATESTRING",353:"NUMBERSTRING",354:"ROMAN",355:"OPEN.DIALOG",356:"SAVE.DIALOG",357:"VIEW.GET",358:"GETPIVOTDATA",359:"HYPERLINK",360:"PHONETIC",361:"AVERAGEA",362:"MAXA",363:"MINA",364:"STDEVPA",365:"VARPA",366:"STDEVA",367:"VARA",368:"BAHTTEXT",369:"THAIDAYOFWEEK",370:"THAIDIGIT",371:"THAIMONTHOFYEAR",372:"THAINUMSOUND",373:"THAINUMSTRING",374:"THAISTRINGLENGTH",375:"ISTHAIDIGIT",376:"ROUNDBAHTDOWN",377:"ROUNDBAHTUP",378:"THAIYEAR",379:"RTD",380:"CUBEVALUE",381:"CUBEMEMBER",382:"CUBEMEMBERPROPERTY",383:"CUBERANKEDMEMBER",384:"HEX2BIN",385:"HEX2DEC",386:"HEX2OCT",387:"DEC2BIN",388:"DEC2HEX",389:"DEC2OCT",390:"OCT2BIN",391:"OCT2HEX",392:"OCT2DEC",393:"BIN2DEC",394:"BIN2OCT",395:"BIN2HEX",396:"IMSUB",397:"IMDIV",398:"IMPOWER",399:"IMABS",400:"IMSQRT",401:"IMLN",402:"IMLOG2",403:"IMLOG10",404:"IMSIN",405:"IMCOS",406:"IMEXP",407:"IMARGUMENT",408:"IMCONJUGATE",409:"IMAGINARY",410:"IMREAL",411:"COMPLEX",412:"IMSUM",413:"IMPRODUCT",414:"SERIESSUM",415:"FACTDOUBLE",416:"SQRTPI",417:"QUOTIENT",418:"DELTA",419:"GESTEP",420:"ISEVEN",421:"ISODD",422:"MROUND",423:"ERF",424:"ERFC",425:"BESSELJ",426:"BESSELK",427:"BESSELY",428:"BESSELI",429:"XIRR",430:"XNPV",431:"PRICEMAT",432:"YIELDMAT",433:"INTRATE",434:"RECEIVED",435:"DISC",436:"PRICEDISC",437:"YIELDDISC",438:"TBILLEQ",439:"TBILLPRICE",440:"TBILLYIELD",441:"PRICE",442:"YIELD",443:"DOLLARDE",444:"DOLLARFR",445:"NOMINAL",446:"EFFECT",447:"CUMPRINC",448:"CUMIPMT",449:"EDATE",450:"EOMONTH",451:"YEARFRAC",452:"COUPDAYBS",453:"COUPDAYS",454:"COUPDAYSNC",455:"COUPNCD",456:"COUPNUM",457:"COUPPCD",458:"DURATION",459:"MDURATION",460:"ODDLPRICE",461:"ODDLYIELD",462:"ODDFPRICE",463:"ODDFYIELD",464:"RANDBETWEEN",465:"WEEKNUM",466:"AMORDEGRC",467:"AMORLINC",468:"CONVERT",724:"SHEETJS",469:"ACCRINT",470:"ACCRINTM",471:"WORKDAY",472:"NETWORKDAYS",473:"GCD",474:"MULTINOMIAL",475:"LCM",476:"FVSCHEDULE",477:"CUBEKPIMEMBER",478:"CUBESET",479:"CUBESETCOUNT",480:"IFERROR",481:"COUNTIFS",482:"SUMIFS",483:"AVERAGEIF",484:"AVERAGEIFS"},yc={2:1,3:1,10:0,15:1,16:1,17:1,18:1,19:0,20:1,21:1,22:1,23:1,24:1,25:1,26:1,27:2,30:2,31:3,32:1,33:1,34:0,35:0,38:1,39:2,40:3,41:3,42:3,43:3,44:3,45:3,47:3,48:2,53:1,61:3,63:0,65:3,66:3,67:1,68:1,69:1,70:1,71:1,72:1,73:1,74:0,75:1,76:1,77:1,79:2,80:2,83:1,85:0,86:1,89:0,90:1,94:0,95:0,97:2,98:1,99:1,101:3,102:3,105:1,106:1,108:2,111:1,112:1,113:1,114:1,117:2,118:1,119:4,121:1,126:1,127:1,128:1,129:1,130:1,131:1,133:1,134:1,135:1,136:2,137:2,138:2,140:1,141:1,142:3,143:4,144:4,161:1,162:1,163:1,164:1,165:2,172:1,175:2,176:2,177:3,178:2,179:1,184:1,186:1,189:3,190:1,195:3,196:3,197:1,198:1,199:3,201:1,207:4,210:3,211:1,212:2,213:2,214:1,215:1,225:0,229:1,230:1,231:1,232:1,233:1,234:1,235:3,244:1,247:4,252:2,257:1,261:1,271:1,273:4,274:2,275:2,276:2,277:3,278:3,279:1,280:3,281:3,282:3,283:1,284:1,285:2,286:4,287:3,288:2,289:4,290:3,291:3,292:3,293:4,294:1,295:3,296:1,297:3,298:1,299:2,300:3,301:3,302:4,303:2,304:2,305:2,306:2,307:2,308:2,309:3,310:2,311:2,312:2,313:2,314:2,315:2,316:4,325:2,326:2,327:2,328:2,331:2,332:2,337:2,342:1,343:1,346:2,347:1,350:4,351:3,352:1,353:2,360:1,368:1,369:1,370:1,371:1,372:1,373:1,374:1,375:1,376:1,377:1,378:1,382:3,385:1,392:1,393:1,396:2,397:2,398:2,399:1,400:1,401:1,402:1,403:1,404:1,405:1,406:1,407:1,408:1,409:1,410:1,414:4,415:1,416:1,417:2,420:1,421:1,422:2,424:1,425:2,426:2,427:2,428:2,430:3,438:3,439:3,440:3,443:2,444:2,445:2,446:2,447:6,448:6,449:2,450:2,464:2,468:3,476:2,479:1,480:2,65535:0};function vc(e){return("of:="+e.replace(Nu,"$1[.$2$3$4$5]").replace(/\]:\[/g,":")).replace(/;/g,"|").replace(/,/g,";")}var bc="undefined"!=typeof Map;function Cc(e,t,n){var r=0,o=e.length;if(n){if(bc?n.has(t):Object.prototype.hasOwnProperty.call(n,t))for(var i=bc?n.get(t):n[t];r<i.length;++r)if(e[i[r]].t===t)return e.Count++,i[r]}else for(;r<o;++r)if(e[r].t===t)return e.Count++,r;return e[o]={t},e.Count++,e.Unique++,n&&(bc?(n.has(t)||n.set(t,[]),n.get(t).push(o)):(Object.prototype.hasOwnProperty.call(n,t)||(n[t]=[]),n[t].push(o))),o}function wc(e,t){var n={min:e+1,max:e+1},r=-1;return t.MDW&&(au=t.MDW),null!=t.width?n.customWidth=1:null!=t.wpx?r=uu(t.wpx):null!=t.wch&&(r=t.wch),r>-1?(n.width=cu(r),n.customWidth=1):null!=t.width&&(n.width=t.width),t.hidden&&(n.hidden=!0),null!=t.level&&(n.outlineLevel=n.level=t.level),n}function xc(e,t){if(e){var n=[.7,.7,.75,.75,.3,.3];"xlml"==t&&(n=[1,1,1,1,.5,.5]),null==e.left&&(e.left=n[0]),null==e.right&&(e.right=n[1]),null==e.top&&(e.top=n[2]),null==e.bottom&&(e.bottom=n[3]),null==e.header&&(e.header=n[4]),null==e.footer&&(e.footer=n[5])}}function Pc(e,t,n){var r=n.revssf[null!=t.z?t.z:"General"],o=60,i=e.length;if(null==r&&n.ssf)for(;o<392;++o)if(null==n.ssf[o]){Ri(t.z,o),n.ssf[o]=t.z,n.revssf[t.z]=r=o;break}for(o=0;o!=i;++o)if(e[o].numFmtId===r)return o;return e[i]={numFmtId:r,fontId:0,fillId:0,borderId:0,xfId:0,applyNumberFormat:1},i}function Sc(e,t,n){if(e&&e["!ref"]){var r=Ea(e["!ref"]);if(r.e.c<r.s.c||r.e.r<r.s.r)throw new Error("Bad range ("+n+"): "+e["!ref"])}}var Ec=["objects","scenarios","selectLockedCells","selectUnlockedCells"],Tc=["formatColumns","formatRows","formatCells","insertColumns","insertRows","insertHyperlinks","deleteColumns","deleteRows","sort","autoFilter","pivotTables"];function Oc(e,t,n,r){if(e.c&&n["!comments"].push([t,e.c]),void 0===e.v&&"string"!=typeof e.f||"z"===e.t&&!e.f)return"";var o="",i=e.t,s=e.v;if("z"!==e.t)switch(e.t){case"b":o=e.v?"1":"0";break;case"n":o=""+e.v;break;case"e":o=sl[e.v];break;case"d":r&&r.cellDates?o=Xi(e.v,-1).toISOString():((e=es(e)).t="n",o=""+(e.v=zi(Xi(e.v)))),void 0===e.z&&(e.z=Zo[14]);break;default:o=e.v}var a=xs("v",ps(o)),l={r:t},u=Pc(r.cellXfs,e,r);switch(0!==u&&(l.s=u),e.t){case"n":case"z":break;case"d":l.t="d";break;case"b":l.t="b";break;case"e":l.t="e";break;default:if(null==e.v){delete e.t;break}if(e.v.length>32767)throw new Error("Text length must not exceed 32767 characters");if(r&&r.bookSST){a=xs("v",""+Cc(r.Strings,e.v,r.revStrings)),l.t="s";break}l.t="str"}if(e.t!=i&&(e.t=i,e.v=s),"string"==typeof e.f&&e.f){var c=e.F&&e.F.slice(0,t.length)==t?{t:"array",ref:e.F}:null;a=Ss("f",ps(e.f),c)+(null!=e.v?a:"")}return e.l&&n["!links"].push([t,e.l]),e.D&&(l.cm=1),Ss("c",a,l)}function Vc(e,t,n,r){var o,i=[as,Ss("worksheet",null,{xmlns:Os[0],"xmlns:r":Ts.r})],s=n.SheetNames[e],a="",l=n.Sheets[s];null==l&&(l={});var u=l["!ref"]||"A1",c=Ea(u);if(c.e.c>16383||c.e.r>1048575){if(t.WTF)throw new Error("Range "+u+" exceeds format limit A1:XFD1048576");c.e.c=Math.min(c.e.c,16383),c.e.r=Math.min(c.e.c,1048575),u=Sa(c)}r||(r={}),l["!comments"]=[];var p=[];!function(e,t,n,r,o){var i=!1,s={},a=null;if("xlsx"!==r.bookType&&t.vbaraw){var l=t.SheetNames[n];try{t.Workbook&&(l=t.Workbook.Sheets[n].CodeName||l)}catch(e){}i=!0,s.codeName=bs(ps(l))}if(e&&e["!outline"]){var u={summaryBelow:1,summaryRight:1};e["!outline"].above&&(u.summaryBelow=0),e["!outline"].left&&(u.summaryRight=0),a=(a||"")+Ss("outlinePr",null,u)}(i||a)&&(o[o.length]=Ss("sheetPr",a,s))}(l,n,e,t,i),i[i.length]=Ss("dimension",null,{ref:u}),i[i.length]=function(e,t,n,r){var o={workbookViewId:"0"};return(((r||{}).Workbook||{}).Views||[])[0]&&(o.rightToLeft=r.Workbook.Views[0].RTL?"1":"0"),Ss("sheetViews",Ss("sheetView",null,o),{})}(0,0,0,n),t.sheetFormat&&(i[i.length]=Ss("sheetFormatPr",null,{defaultRowHeight:t.sheetFormat.defaultRowHeight||"16",baseColWidth:t.sheetFormat.baseColWidth||"10",outlineLevelRow:t.sheetFormat.outlineLevelRow||"7"})),null!=l["!cols"]&&l["!cols"].length>0&&(i[i.length]=function(e,t){for(var n,r=["<cols>"],o=0;o!=t.length;++o)(n=t[o])&&(r[r.length]=Ss("col",null,wc(o,n)));return r[r.length]="</cols>",r.join("")}(0,l["!cols"])),i[o=i.length]="<sheetData/>",l["!links"]=[],null!=l["!ref"]&&(a=function(e,t,n,r){var o,i,s=[],a=[],l=Ea(e["!ref"]),u="",c="",p=[],d=0,h=0,f=e["!rows"],m=Array.isArray(e),g={r:c},y=-1;for(h=l.s.c;h<=l.e.c;++h)p[h]=Ca(h);for(d=l.s.r;d<=l.e.r;++d){for(a=[],c=va(d),h=l.s.c;h<=l.e.c;++h){o=p[h]+c;var v=m?(e[d]||[])[h]:e[o];void 0!==v&&null!=(u=Oc(v,o,e,t))&&a.push(u)}(a.length>0||f&&f[d])&&(g={r:c},f&&f[d]&&((i=f[d]).hidden&&(g.hidden=1),y=-1,i.hpx?y=hu(i.hpx):i.hpt&&(y=i.hpt),y>-1&&(g.ht=y,g.customHeight=1),i.level&&(g.outlineLevel=i.level)),s[s.length]=Ss("row",a.join(""),g))}if(f)for(;d<f.length;++d)f&&f[d]&&(g={r:d+1},(i=f[d]).hidden&&(g.hidden=1),y=-1,i.hpx?y=hu(i.hpx):i.hpt&&(y=i.hpt),y>-1&&(g.ht=y,g.customHeight=1),i.level&&(g.outlineLevel=i.level),s[s.length]=Ss("row","",g));return s.join("")}(l,t),a.length>0&&(i[i.length]=a)),i.length>o+1&&(i[i.length]="</sheetData>",i[o]=i[o].replace("/>",">")),l["!protect"]&&(i[i.length]=function(e){var t={sheet:1};return Ec.forEach((function(n){null!=e[n]&&e[n]&&(t[n]="1")})),Tc.forEach((function(n){null==e[n]||e[n]||(t[n]="0")})),e.password&&(t.password=ou(e.password).toString(16).toUpperCase()),Ss("sheetProtection",null,t)}(l["!protect"])),null!=l["!autofilter"]&&(i[i.length]=function(e,t,n,r){var o="string"==typeof e.ref?e.ref:Sa(e.ref);n.Workbook||(n.Workbook={Sheets:[]}),n.Workbook.Names||(n.Workbook.Names=[]);var i=n.Workbook.Names,s=Pa(o);s.s.r==s.e.r&&(s.e.r=Pa(t["!ref"]).e.r,o=Sa(s));for(var a=0;a<i.length;++a){var l=i[a];if("_xlnm._FilterDatabase"==l.Name&&l.Sheet==r){l.Ref="'"+n.SheetNames[r]+"'!"+o;break}}return a==i.length&&i.push({Name:"_xlnm._FilterDatabase",Sheet:r,Ref:"'"+n.SheetNames[r]+"'!"+o}),Ss("autoFilter",null,{ref:o})}(l["!autofilter"],l,n,e)),null!=l["!merges"]&&l["!merges"].length>0&&(i[i.length]=function(e){if(0===e.length)return"";for(var t='<mergeCells count="'+e.length+'">',n=0;n!=e.length;++n)t+='<mergeCell ref="'+Sa(e[n])+'"/>';return t+"</mergeCells>"}(l["!merges"]));var d,h,f=-1,m=-1;return l["!links"].length>0&&(i[i.length]="<hyperlinks>",l["!links"].forEach((function(e){e[1].Target&&(d={ref:e[0]},"#"!=e[1].Target.charAt(0)&&(m=hl(r,-1,ps(e[1].Target).replace(/#.*$/,""),cl.HLINK),d["r:id"]="rId"+m),(f=e[1].Target.indexOf("#"))>-1&&(d.location=ps(e[1].Target.slice(f+1))),e[1].Tooltip&&(d.tooltip=ps(e[1].Tooltip)),i[i.length]=Ss("hyperlink",null,d))})),i[i.length]="</hyperlinks>"),delete l["!links"],null!=l["!margins"]&&(i[i.length]=(xc(h=l["!margins"]),Ss("pageMargins",null,h))),t&&!t.ignoreEC&&null!=t.ignoreEC||(i[i.length]=xs("ignoredErrors",Ss("ignoredError",null,{numberStoredAsText:1,sqref:u}))),p.length>0&&(m=hl(r,-1,"../drawings/drawing"+(e+1)+".xml",cl.DRAW),i[i.length]=Ss("drawing",null,{"r:id":"rId"+m}),l["!drawing"]=p),l["!comments"].length>0&&(m=hl(r,-1,"../drawings/vmlDrawing"+(e+1)+".vml",cl.VML),i[i.length]=Ss("legacyDrawing",null,{"r:id":"rId"+m}),l["!legacy"]=m),i.length>1&&(i[i.length]="</worksheet>",i[1]=i[1].replace("/>",">")),i.join("")}function _c(e,t,n,r){var o=function(e,t,n){var r=ca(145),o=(n["!rows"]||[])[e]||{};r.write_shift(4,e),r.write_shift(4,0);var i=320;o.hpx?i=20*hu(o.hpx):o.hpt&&(i=20*o.hpt),r.write_shift(2,i),r.write_shift(1,0);var s=0;o.level&&(s|=o.level),o.hidden&&(s|=16),(o.hpx||o.hpt)&&(s|=32),r.write_shift(1,s),r.write_shift(1,0);var a=0,l=r.l;r.l+=4;for(var u={r:e,c:0},c=0;c<16;++c)if(!(t.s.c>c+1<<10||t.e.c<c<<10)){for(var p=-1,d=-1,h=c<<10;h<c+1<<10;++h)u.c=h,(Array.isArray(n)?(n[u.r]||[])[u.c]:n[xa(u)])&&(p<0&&(p=h),d=h);p<0||(++a,r.write_shift(4,p),r.write_shift(4,d))}var f=r.l;return r.l=l,r.write_shift(4,a),r.l=f,r.length>r.l?r.slice(0,r.l):r}(r,n,t);(o.length>17||(t["!rows"]||[])[r])&&da(e,0,o)}var Rc=Ka,Ic=Ya;var Dc=Ka,Ac=Ya,kc=["left","right","top","bottom","header","footer"];function Mc(e,t,n,r,o,i,s){if(void 0===t.v)return!1;var a="";switch(t.t){case"b":a=t.v?"1":"0";break;case"d":(t=es(t)).z=t.z||Zo[14],t.v=zi(Xi(t.v)),t.t="n";break;case"n":case"e":a=""+t.v;break;default:a=t.v}var l={r:n,c:r};switch(l.s=Pc(o.cellXfs,t,o),t.l&&i["!links"].push([xa(l),t.l]),t.c&&i["!comments"].push([xa(l),t.c]),t.t){case"s":case"str":return o.bookSST?(a=Cc(o.Strings,t.v,o.revStrings),l.t="s",l.v=a,s?da(e,18,function(e,t,n){return null==n&&(n=ca(8)),qa(t,n),n.write_shift(4,t.v),n}(0,l)):da(e,7,function(e,t,n){return null==n&&(n=ca(12)),La(t,n),n.write_shift(4,t.v),n}(0,l))):(l.t="str",s?da(e,17,function(e,t,n){return null==n&&(n=ca(8+4*e.v.length)),qa(t,n),Da(e.v,n),n.length>n.l?n.slice(0,n.l):n}(t,l)):da(e,6,function(e,t,n){return null==n&&(n=ca(12+4*e.v.length)),La(t,n),Da(e.v,n),n.length>n.l?n.slice(0,n.l):n}(t,l))),!0;case"n":return t.v==(0|t.v)&&t.v>-1e3&&t.v<1e3?s?da(e,13,function(e,t,n){return null==n&&(n=ca(8)),qa(t,n),$a(e.v,n),n}(t,l)):da(e,2,function(e,t,n){return null==n&&(n=ca(12)),La(t,n),$a(e.v,n),n}(t,l)):s?da(e,16,function(e,t,n){return null==n&&(n=ca(12)),qa(t,n),Za(e.v,n),n}(t,l)):da(e,5,function(e,t,n){return null==n&&(n=ca(16)),La(t,n),Za(e.v,n),n}(t,l)),!0;case"b":return l.t="b",s?da(e,15,function(e,t,n){return null==n&&(n=ca(5)),qa(t,n),n.write_shift(1,e.v?1:0),n}(t,l)):da(e,4,function(e,t,n){return null==n&&(n=ca(9)),La(t,n),n.write_shift(1,e.v?1:0),n}(t,l)),!0;case"e":return l.t="e",s?da(e,14,function(e,t,n){return null==n&&(n=ca(8)),qa(t,n),n.write_shift(1,e.v),n.write_shift(2,0),n.write_shift(1,0),n}(t,l)):da(e,3,function(e,t,n){return null==n&&(n=ca(9)),La(t,n),n.write_shift(1,e.v),n}(t,l)),!0}return s?da(e,12,function(e,t,n){return null==n&&(n=ca(4)),qa(t,n)}(0,l)):da(e,1,function(e,t,n){return null==n&&(n=ca(8)),La(t,n)}(0,l)),!0}function Nc(e,t,n,r){var o=pa(),i=n.SheetNames[e],s=n.Sheets[i]||{},a=i;try{n&&n.Workbook&&(a=n.Workbook.Sheets[e].CodeName||a)}catch(e){}var l=Ea(s["!ref"]||"A1");if(l.e.c>16383||l.e.r>1048575){if(t.WTF)throw new Error("Range "+(s["!ref"]||"A1")+" exceeds format limit A1:XFD1048576");l.e.c=Math.min(l.e.c,16383),l.e.r=Math.min(l.e.c,1048575)}return s["!links"]=[],s["!comments"]=[],da(o,129),(n.vbaraw||s["!outline"])&&da(o,147,function(e,t,n){null==n&&(n=ca(84+4*e.length));var r=192;t&&(t.above&&(r&=-65),t.left&&(r&=-129)),n.write_shift(1,r);for(var o=1;o<3;++o)n.write_shift(1,0);return el({auto:1},n),n.write_shift(-4,-1),n.write_shift(-4,-1),Ba(e,n),n.slice(0,n.l)}(a,s["!outline"])),da(o,148,Ic(l)),function(e,t,n){da(e,133),da(e,137,function(e,t,n){null==n&&(n=ca(30));var r=924;return(((t||{}).Views||[])[0]||{}).RTL&&(r|=32),n.write_shift(2,r),n.write_shift(4,0),n.write_shift(4,0),n.write_shift(4,0),n.write_shift(1,0),n.write_shift(1,0),n.write_shift(2,0),n.write_shift(2,100),n.write_shift(2,0),n.write_shift(2,0),n.write_shift(2,0),n.write_shift(4,0),n}(0,n)),da(e,138),da(e,134)}(o,0,n.Workbook),function(e,t){t&&t["!cols"]&&(da(e,390),t["!cols"].forEach((function(t,n){t&&da(e,60,function(e,t,n){null==n&&(n=ca(18));var r=wc(e,t);n.write_shift(-4,e),n.write_shift(-4,e),n.write_shift(4,256*(r.width||10)),n.write_shift(4,0);var o=0;return t.hidden&&(o|=1),"number"==typeof r.width&&(o|=2),t.level&&(o|=t.level<<8),n.write_shift(2,o),n}(n,t))})),da(e,391))}(o,s),function(e,t,n,r){var o,i=Ea(t["!ref"]||"A1"),s="",a=[];da(e,145);var l=Array.isArray(t),u=i.e.r;t["!rows"]&&(u=Math.max(i.e.r,t["!rows"].length-1));for(var c=i.s.r;c<=u;++c){s=va(c),_c(e,t,i,c);var p=!1;if(c<=i.e.r)for(var d=i.s.c;d<=i.e.c;++d){c===i.s.r&&(a[d]=Ca(d)),o=a[d]+s;var h=l?(t[c]||[])[d]:t[o];p=!!h&&Mc(e,h,c,d,r,t,p)}}da(e,146)}(o,s,0,t),function(e,t){t["!protect"]&&da(e,535,function(e,t){return null==t&&(t=ca(66)),t.write_shift(2,e.password?ou(e.password):0),t.write_shift(4,1),[["objects",!1],["scenarios",!1],["formatCells",!0],["formatColumns",!0],["formatRows",!0],["insertColumns",!0],["insertRows",!0],["insertHyperlinks",!0],["deleteColumns",!0],["deleteRows",!0],["selectLockedCells",!1],["sort",!0],["autoFilter",!0],["pivotTables",!0],["selectUnlockedCells",!1]].forEach((function(n){n[1]?t.write_shift(4,null==e[n[0]]||e[n[0]]?0:1):t.write_shift(4,null!=e[n[0]]&&e[n[0]]?0:1)})),t}(t["!protect"]))}(o,s),function(e,t,n,r){if(t["!autofilter"]){var o=t["!autofilter"],i="string"==typeof o.ref?o.ref:Sa(o.ref);n.Workbook||(n.Workbook={Sheets:[]}),n.Workbook.Names||(n.Workbook.Names=[]);var s=n.Workbook.Names,a=Pa(i);a.s.r==a.e.r&&(a.e.r=Pa(t["!ref"]).e.r,i=Sa(a));for(var l=0;l<s.length;++l){var u=s[l];if("_xlnm._FilterDatabase"==u.Name&&u.Sheet==r){u.Ref="'"+n.SheetNames[r]+"'!"+i;break}}l==s.length&&s.push({Name:"_xlnm._FilterDatabase",Sheet:r,Ref:"'"+n.SheetNames[r]+"'!"+i}),da(e,161,Ya(Ea(i))),da(e,162)}}(o,s,n,e),function(e,t){t&&t["!merges"]&&(da(e,177,function(e,t){return null==t&&(t=ca(4)),t.write_shift(4,e),t}(t["!merges"].length)),t["!merges"].forEach((function(t){da(e,176,Ac(t))})),da(e,178))}(o,s),function(e,t,n){t["!links"].forEach((function(t){if(t[1].Target){var r=hl(n,-1,t[1].Target.replace(/#.*$/,""),cl.HLINK);da(e,494,function(e,t){var n=ca(50+4*(e[1].Target.length+(e[1].Tooltip||"").length));Ya({s:wa(e[0]),e:wa(e[0])},n),Wa("rId"+t,n);var r=e[1].Target.indexOf("#");return Da((-1==r?"":e[1].Target.slice(r+1))||"",n),Da(e[1].Tooltip||"",n),Da("",n),n.slice(0,n.l)}(t,r))}})),delete t["!links"]}(o,s,r),s["!margins"]&&da(o,476,function(e,t){return null==t&&(t=ca(48)),xc(e),kc.forEach((function(n){Za(e[n],t)})),t}(s["!margins"])),t&&!t.ignoreEC&&null!=t.ignoreEC||function(e,t){t&&t["!ref"]&&(da(e,648),da(e,649,function(e){var t=ca(24);return t.write_shift(4,4),t.write_shift(4,1),Ya(e,t),t}(Ea(t["!ref"]))),da(e,650))}(o,s),function(e,t,n,r){if(t["!comments"].length>0){var o=hl(r,-1,"../drawings/vmlDrawing"+(n+1)+".vml",cl.VML);da(e,551,Wa("rId"+o)),t["!legacy"]=o}}(o,s,e,r),da(o,130),o.end()}var Lc=[["allowRefreshQuery",!1,"bool"],["autoCompressPictures",!0,"bool"],["backupFile",!1,"bool"],["checkCompatibility",!1,"bool"],["CodeName",""],["date1904",!1,"bool"],["defaultThemeVersion",0,"int"],["filterPrivacy",!1,"bool"],["hidePivotFieldList",!1,"bool"],["promptedSolutions",!1,"bool"],["publishItems",!1,"bool"],["refreshAllConnections",!1,"bool"],["saveExternalLinkValues",!0,"bool"],["showBorderUnselectedTables",!0,"bool"],["showInkAnnotation",!0,"bool"],["showObjects","all"],["showPivotChartFilter",!1,"bool"],["updateLinks","userSet"]],jc="][*?/\\".split("");function qc(e,t){if(e.length>31){if(t)return!1;throw new Error("Sheet names cannot exceed 31 chars")}var n=!0;return jc.forEach((function(r){if(-1!=e.indexOf(r)){if(!t)throw new Error("Sheet name cannot contain : \\ / ? * [ ]");n=!1}})),n}function Fc(e){var t=[as];t[t.length]=Ss("workbook",null,{xmlns:Os[0],"xmlns:r":Ts.r});var n=e.Workbook&&(e.Workbook.Names||[]).length>0,r={codeName:"ThisWorkbook"};e.Workbook&&e.Workbook.WBProps&&(Lc.forEach((function(t){null!=e.Workbook.WBProps[t[0]]&&e.Workbook.WBProps[t[0]]!=t[1]&&(r[t[0]]=e.Workbook.WBProps[t[0]])})),e.Workbook.WBProps.CodeName&&(r.codeName=e.Workbook.WBProps.CodeName,delete r.CodeName)),t[t.length]=Ss("workbookPr",null,r);var o=e.Workbook&&e.Workbook.Sheets||[],i=0;if(o&&o[0]&&o[0].Hidden){for(t[t.length]="<bookViews>",i=0;i!=e.SheetNames.length&&o[i]&&o[i].Hidden;++i);i==e.SheetNames.length&&(i=0),t[t.length]='<workbookView firstSheet="'+i+'" activeTab="'+i+'"/>',t[t.length]="</bookViews>"}for(t[t.length]="<sheets>",i=0;i!=e.SheetNames.length;++i){var s={name:ps(e.SheetNames[i].slice(0,31))};if(s.sheetId=""+(i+1),s["r:id"]="rId"+(i+1),o[i])switch(o[i].Hidden){case 1:s.state="hidden";break;case 2:s.state="veryHidden"}t[t.length]=Ss("sheet",null,s)}return t[t.length]="</sheets>",n&&(t[t.length]="<definedNames>",e.Workbook&&e.Workbook.Names&&e.Workbook.Names.forEach((function(e){var n={name:e.Name};e.Comment&&(n.comment=e.Comment),null!=e.Sheet&&(n.localSheetId=""+e.Sheet),e.Hidden&&(n.hidden="1"),e.Ref&&(t[t.length]=Ss("definedName",ps(e.Ref),n))})),t[t.length]="</definedNames>"),t.length>2&&(t[t.length]="</workbook>",t[1]=t[1].replace("/>",">")),t.join("")}function Bc(e,t){return t||(t=ca(127)),t.write_shift(4,e.Hidden),t.write_shift(4,e.iTabID),Wa(e.strRelID,t),Da(e.name.slice(0,31),t),t.length>t.l?t.slice(0,t.l):t}function Qc(e,t){var n=pa();return da(n,131),da(n,128,function(e,t){t||(t=ca(127));for(var n=0;4!=n;++n)t.write_shift(4,0);return Da("SheetJS",t),Da(Co.version,t),Da(Co.version,t),Da("7262",t),t.length>t.l?t.slice(0,t.l):t}()),da(n,153,function(e,t){t||(t=ca(72));var n=0;return e&&e.filterPrivacy&&(n|=8),t.write_shift(4,n),t.write_shift(4,0),Ba(e&&e.CodeName||"ThisWorkbook",t),t.slice(0,t.l)}(e.Workbook&&e.Workbook.WBProps||null)),function(e,t){if(t.Workbook&&t.Workbook.Sheets){for(var n=t.Workbook.Sheets,r=0,o=-1,i=-1;r<n.length;++r)!n[r]||!n[r].Hidden&&-1==o?o=r:1==n[r].Hidden&&-1==i&&(i=r);i>o||(da(e,135),da(e,158,function(e,t){return t||(t=ca(29)),t.write_shift(-4,0),t.write_shift(-4,460),t.write_shift(4,28800),t.write_shift(4,17600),t.write_shift(4,500),t.write_shift(4,e),t.write_shift(4,e),t.write_shift(1,120),t.length>t.l?t.slice(0,t.l):t}(o)),da(e,136))}}(n,e),function(e,t){da(e,143);for(var n=0;n!=t.SheetNames.length;++n)da(e,156,Bc({Hidden:t.Workbook&&t.Workbook.Sheets&&t.Workbook.Sheets[n]&&t.Workbook.Sheets[n].Hidden||0,iTabID:n+1,strRelID:"rId"+(n+1),name:t.SheetNames[n]}));da(e,144)}(n,e),da(n,132),n.end()}function Hc(e,t,n,r,o){return(".bin"===t.slice(-4)?Nc:Vc)(e,n,r,o)}function zc(e,t,n){return(".bin"===t.slice(-4)?Au:Ru)(e,n)}function Uc(e){return Ss("NamedRange",null,{"ss:Name":e.Name,"ss:RefersTo":"="+Lu(e.Ref,{r:0,c:0})})}function Wc(e,t,n,r,o,i,s){if(!e||null==e.v&&null==e.f)return"";var a={};if(e.f&&(a["ss:Formula"]="="+ps(Lu(e.f,s))),e.F&&e.F.slice(0,t.length)==t){var l=wa(e.F.slice(t.length+1));a["ss:ArrayRange"]="RC:R"+(l.r==s.r?"":"["+(l.r-s.r)+"]")+"C"+(l.c==s.c?"":"["+(l.c-s.c)+"]")}if(e.l&&e.l.Target&&(a["ss:HRef"]=ps(e.l.Target),e.l.Tooltip&&(a["x:HRefScreenTip"]=ps(e.l.Tooltip))),n["!merges"])for(var u=n["!merges"],c=0;c!=u.length;++c)u[c].s.c==s.c&&u[c].s.r==s.r&&(u[c].e.c>u[c].s.c&&(a["ss:MergeAcross"]=u[c].e.c-u[c].s.c),u[c].e.r>u[c].s.r&&(a["ss:MergeDown"]=u[c].e.r-u[c].s.r));var p="",d="";switch(e.t){case"z":if(!r.sheetStubs)return"";break;case"n":p="Number",d=String(e.v);break;case"b":p="Boolean",d=e.v?"1":"0";break;case"e":p="Error",d=sl[e.v];break;case"d":p="DateTime",d=new Date(e.v).toISOString(),null==e.z&&(e.z=e.z||Zo[14]);break;case"s":p="String",d=((e.v||"")+"").replace(us,(function(e){return ls[e]})).replace(hs,(function(e){return"&#x"+e.charCodeAt(0).toString(16).toUpperCase()+";"}))}var h=Pc(r.cellXfs,e,r);a["ss:StyleID"]="s"+(21+h),a["ss:Index"]=s.c+1;var f=null!=e.v?d:"",m="z"==e.t?"":'<Data ss:Type="'+p+'">'+f+"</Data>";return(e.c||[]).length>0&&(m+=e.c.map((function(e){var t=Ss("ss:Data",(e.t||"").replace(/(\r\n|[\r\n])/g,"&#10;"),{xmlns:"http://www.w3.org/TR/REC-html40"});return Ss("Comment",t,{"ss:Author":e.a})})).join("")),Ss("Cell",m,a)}function Gc(e,t){var n='<Row ss:Index="'+(e+1)+'"';return t&&(t.hpt&&!t.hpx&&(t.hpx=fu(t.hpt)),t.hpx&&(n+=' ss:AutoFitHeight="0" ss:Height="'+t.hpx+'"'),t.hidden&&(n+=' ss:Hidden="1"')),n+">"}function $c(e,t,n){var r=[],o=n.SheetNames[e],i=n.Sheets[o],s=i?function(e,t,n,r){if(!e)return"";if(!((r||{}).Workbook||{}).Names)return"";for(var o=r.Workbook.Names,i=[],s=0;s<o.length;++s){var a=o[s];a.Sheet==n&&(a.Name.match(/^_xlfn\./)||i.push(Uc(a)))}return i.join("")}(i,0,e,n):"";return s.length>0&&r.push("<Names>"+s+"</Names>"),s=i?function(e,t,n,r){if(!e["!ref"])return"";var o=Ea(e["!ref"]),i=e["!merges"]||[],s=0,a=[];e["!cols"]&&e["!cols"].forEach((function(e,t){pu(e);var n=!!e.width,r=wc(t,e),o={"ss:Index":t+1};n&&(o["ss:Width"]=lu(r.width)),e.hidden&&(o["ss:Hidden"]="1"),a.push(Ss("Column",null,o))}));for(var l=Array.isArray(e),u=o.s.r;u<=o.e.r;++u){for(var c=[Gc(u,(e["!rows"]||[])[u])],p=o.s.c;p<=o.e.c;++p){var d=!1;for(s=0;s!=i.length;++s)if(!(i[s].s.c>p||i[s].s.r>u||i[s].e.c<p||i[s].e.r<u)){i[s].s.c==p&&i[s].s.r==u||(d=!0);break}if(!d){var h={r:u,c:p},f=xa(h),m=l?(e[u]||[])[p]:e[f];c.push(Wc(m,f,e,t,0,0,h))}}c.push("</Row>"),c.length>2&&a.push(c.join(""))}return a.join("")}(i,t):"",s.length>0&&r.push("<Table>"+s+"</Table>"),r.push(function(e,t,n,r){if(!e)return"";var o=[];if(e["!margins"]&&(o.push("<PageSetup>"),e["!margins"].header&&o.push(Ss("Header",null,{"x:Margin":e["!margins"].header})),e["!margins"].footer&&o.push(Ss("Footer",null,{"x:Margin":e["!margins"].footer})),o.push(Ss("PageMargins",null,{"x:Bottom":e["!margins"].bottom||"0.75","x:Left":e["!margins"].left||"0.7","x:Right":e["!margins"].right||"0.7","x:Top":e["!margins"].top||"0.75"})),o.push("</PageSetup>")),r&&r.Workbook&&r.Workbook.Sheets&&r.Workbook.Sheets[n])if(r.Workbook.Sheets[n].Hidden)o.push(Ss("Visible",1==r.Workbook.Sheets[n].Hidden?"SheetHidden":"SheetVeryHidden",{}));else{for(var i=0;i<n&&(!r.Workbook.Sheets[i]||r.Workbook.Sheets[i].Hidden);++i);i==n&&o.push("<Selected/>")}return((((r||{}).Workbook||{}).Views||[])[0]||{}).RTL&&o.push("<DisplayRightToLeft/>"),e["!protect"]&&(o.push(xs("ProtectContents","True")),e["!protect"].objects&&o.push(xs("ProtectObjects","True")),e["!protect"].scenarios&&o.push(xs("ProtectScenarios","True")),null==e["!protect"].selectLockedCells||e["!protect"].selectLockedCells?null==e["!protect"].selectUnlockedCells||e["!protect"].selectUnlockedCells||o.push(xs("EnableSelection","UnlockedCells")):o.push(xs("EnableSelection","NoSelection")),[["formatCells","AllowFormatCells"],["formatColumns","AllowSizeCols"],["formatRows","AllowSizeRows"],["insertColumns","AllowInsertCols"],["insertRows","AllowInsertRows"],["insertHyperlinks","AllowInsertHyperlinks"],["deleteColumns","AllowDeleteCols"],["deleteRows","AllowDeleteRows"],["sort","AllowSort"],["autoFilter","AllowFilter"],["pivotTables","AllowUsePivotTables"]].forEach((function(t){e["!protect"][t[0]]&&o.push("<"+t[1]+"/>")}))),0==o.length?"":Ss("WorksheetOptions",o.join(""),{xmlns:Vs.x})}(i,0,e,n)),r.join("")}function Jc(e,t){t||(t={}),e.SSF||(e.SSF=es(Zo)),e.SSF&&(Di(),Ii(e.SSF),t.revssf=Qi(e.SSF),t.revssf[e.SSF[65535]]=0,t.ssf=e.SSF,t.cellXfs=[],Pc(t.cellXfs,{},{revssf:{General:0}}));var n=[];n.push(function(e,t){var n=[];return e.Props&&n.push(function(e,t){var n=[];return qi(Pl).map((function(e){for(var t=0;t<gl.length;++t)if(gl[t][1]==e)return gl[t];for(t=0;t<bl.length;++t)if(bl[t][1]==e)return bl[t];throw e})).forEach((function(r){if(null!=e[r[1]]){var o=t&&t.Props&&null!=t.Props[r[1]]?t.Props[r[1]]:e[r[1]];"date"===r[2]&&(o=new Date(o).toISOString().replace(/\.\d*Z/,"Z")),"number"==typeof o?o=String(o):!0===o||!1===o?o=o?"1":"0":o instanceof Date&&(o=new Date(o).toISOString().replace(/\.\d*Z/,"")),n.push(xs(Pl[r[1]]||r[1],o))}})),Ss("DocumentProperties",n.join(""),{xmlns:Vs.o})}(e.Props,t)),e.Custprops&&n.push(function(e,t){var n=["Worksheets","SheetNames"],r="CustomDocumentProperties",o=[];return e&&qi(e).forEach((function(t){if(Object.prototype.hasOwnProperty.call(e,t)){for(var r=0;r<gl.length;++r)if(t==gl[r][1])return;for(r=0;r<bl.length;++r)if(t==bl[r][1])return;for(r=0;r<n.length;++r)if(t==n[r])return;var i=e[t],s="string";"number"==typeof i?(s="float",i=String(i)):!0===i||!1===i?(s="boolean",i=i?"1":"0"):i=String(i),o.push(Ss(ds(t),i,{"dt:dt":s}))}})),t&&qi(t).forEach((function(n){if(Object.prototype.hasOwnProperty.call(t,n)&&(!e||!Object.prototype.hasOwnProperty.call(e,n))){var r=t[n],i="string";"number"==typeof r?(i="float",r=String(r)):!0===r||!1===r?(i="boolean",r=r?"1":"0"):r instanceof Date?(i="dateTime.tz",r=r.toISOString()):r=String(r),o.push(Ss(ds(n),r,{"dt:dt":i}))}})),"<"+r+' xmlns="'+Vs.o+'">'+o.join("")+"</"+r+">"}(e.Props,e.Custprops)),n.join("")}(e,t)),n.push(""),n.push(""),n.push("");for(var r=0;r<e.SheetNames.length;++r)n.push(Ss("Worksheet",$c(r,t,e),{"ss:Name":ps(e.SheetNames[r])}));return n[2]=function(e,t){var n=['<Style ss:ID="Default" ss:Name="Normal"><NumberFormat/></Style>'];return t.cellXfs.forEach((function(e,t){var r=[];r.push(Ss("NumberFormat",null,{"ss:Format":ps(Zo[e.numFmtId])}));var o={"ss:ID":"s"+(21+t)};n.push(Ss("Style",r.join(""),o))})),Ss("Styles",n.join(""))}(0,t),n[3]=function(e){if(!((e||{}).Workbook||{}).Names)return"";for(var t=e.Workbook.Names,n=[],r=0;r<t.length;++r){var o=t[r];null==o.Sheet&&(o.Name.match(/^_xlfn\./)||n.push(Uc(o)))}return Ss("Names",n.join(""))}(e),as+Ss("Workbook",n.join(""),{xmlns:Vs.ss,"xmlns:o":Vs.o,"xmlns:x":Vs.x,"xmlns:ss":Vs.ss,"xmlns:dt":Vs.dt,"xmlns:html":Vs.html})}var Kc={SI:"e0859ff2f94f6810ab9108002b27b3d9",DSI:"02d5cdd59c2e1b10939708002b2cf9ae",UDI:"05d5cdd59c2e1b10939708002b2cf9ae"};var Yc={0:{f:function(e,t){var n={},r=e.l+t;n.r=e.read_shift(4),e.l+=4;var o=e.read_shift(2);e.l+=1;var i=e.read_shift(1);return e.l=r,7&i&&(n.level=7&i),16&i&&(n.hidden=!0),32&i&&(n.hpt=o/20),n}},1:{f:function(e){return[Na(e)]}},2:{f:function(e){return[Na(e),Ga(e),"n"]}},3:{f:function(e){return[Na(e),e.read_shift(1),"e"]}},4:{f:function(e){return[Na(e),e.read_shift(1),"b"]}},5:{f:function(e){return[Na(e),Xa(e),"n"]}},6:{f:function(e){return[Na(e),Ia(e),"str"]}},7:{f:function(e){return[Na(e),e.read_shift(4),"s"]}},8:{f:function(e,t,n){var r=e.l+t,o=Na(e);o.r=n["!row"];var i=[o,Ia(e),"str"];if(n.cellFormula){e.l+=2;var s=dc(e,r-e.l,n);i[3]=uc(s,0,o,n.supbooks,n)}else e.l=r;return i}},9:{f:function(e,t,n){var r=e.l+t,o=Na(e);o.r=n["!row"];var i=[o,Xa(e),"n"];if(n.cellFormula){e.l+=2;var s=dc(e,r-e.l,n);i[3]=uc(s,0,o,n.supbooks,n)}else e.l=r;return i}},10:{f:function(e,t,n){var r=e.l+t,o=Na(e);o.r=n["!row"];var i=[o,e.read_shift(1),"b"];if(n.cellFormula){e.l+=2;var s=dc(e,r-e.l,n);i[3]=uc(s,0,o,n.supbooks,n)}else e.l=r;return i}},11:{f:function(e,t,n){var r=e.l+t,o=Na(e);o.r=n["!row"];var i=[o,e.read_shift(1),"e"];if(n.cellFormula){e.l+=2;var s=dc(e,r-e.l,n);i[3]=uc(s,0,o,n.supbooks,n)}else e.l=r;return i}},12:{f:function(e){return[ja(e)]}},13:{f:function(e){return[ja(e),Ga(e),"n"]}},14:{f:function(e){return[ja(e),e.read_shift(1),"e"]}},15:{f:function(e){return[ja(e),e.read_shift(1),"b"]}},16:{f:function(e){return[ja(e),Xa(e),"n"]}},17:{f:function(e){return[ja(e),Ia(e),"str"]}},18:{f:function(e){return[ja(e),e.read_shift(4),"s"]}},19:{f:ka},20:{},21:{},22:{},23:{},24:{},25:{},26:{},27:{},28:{},29:{},30:{},31:{},32:{},33:{},34:{},35:{T:1},36:{T:-1},37:{T:1},38:{T:-1},39:{f:function(e,t,n){var r=e.l+t;e.l+=4,e.l+=1;var o=e.read_shift(4),i=za(e),s=hc(e,0,n),a=Qa(e);e.l=r;var l={Name:i,Ptg:s};return o<268435455&&(l.Sheet=o),a&&(l.Comment=a),l}},40:{},42:{},43:{f:function(e,t,n){var r={};r.sz=e.read_shift(2)/20;var o=function(e){var t=e.read_shift(1);return e.l++,{fBold:1&t,fItalic:2&t,fUnderline:4&t,fStrikeout:8&t,fOutline:16&t,fShadow:32&t,fCondense:64&t,fExtend:128&t}}(e);switch(o.fItalic&&(r.italic=1),o.fCondense&&(r.condense=1),o.fExtend&&(r.extend=1),o.fShadow&&(r.shadow=1),o.fOutline&&(r.outline=1),o.fStrikeout&&(r.strike=1),700===e.read_shift(2)&&(r.bold=1),e.read_shift(2)){case 1:r.vertAlign="superscript";break;case 2:r.vertAlign="subscript"}var i=e.read_shift(1);0!=i&&(r.underline=i);var s=e.read_shift(1);s>0&&(r.family=s);var a=e.read_shift(1);switch(a>0&&(r.charset=a),e.l++,r.color=function(e){var t={},n=e.read_shift(1)>>>1,r=e.read_shift(1),o=e.read_shift(2,"i"),i=e.read_shift(1),s=e.read_shift(1),a=e.read_shift(1);switch(e.l++,n){case 0:t.auto=1;break;case 1:t.index=r;var l=il[r];l&&(t.rgb=su(l));break;case 2:t.rgb=su([i,s,a]);break;case 3:t.theme=r}return 0!=o&&(t.tint=o>0?o/32767:o/32768),t}(e),e.read_shift(1)){case 1:r.scheme="major";break;case 2:r.scheme="minor"}return r.name=Ia(e),r}},44:{f:function(e,t){return[e.read_shift(2),Ia(e)]}},45:{f:bu},46:{f:Pu},47:{f:function(e,t){var n=e.l+t,r=e.read_shift(2),o=e.read_shift(2);return e.l=n,{ixfe:r,numFmtId:o}}},48:{},49:{f:function(e){return e.read_shift(4,"i")}},50:{},51:{f:function(e){for(var t=[],n=e.read_shift(4);n-- >0;)t.push([e.read_shift(4),e.read_shift(4)]);return t}},52:{T:1},53:{T:-1},54:{T:1},55:{T:-1},56:{T:1},57:{T:-1},58:{},59:{},60:{f:function(e,t,n){if(!n.cellStyles)return ua(e,t);var r=n&&n.biff>=12?4:2,o=e.read_shift(r),i=e.read_shift(r),s=e.read_shift(r),a=e.read_shift(r),l=e.read_shift(2);2==r&&(e.l+=2);var u={s:o,e:i,w:s,ixfe:a,flags:l};return(n.biff>=5||!n.biff)&&(u.level=l>>8&7),u}},62:{f:function(e){return[Na(e),ka(e),"is"]}},63:{f:function(e){var t={};t.i=e.read_shift(4);var n={};n.r=e.read_shift(4),n.c=e.read_shift(4),t.r=xa(n);var r=e.read_shift(1);return 2&r&&(t.l="1"),8&r&&(t.a="1"),t}},64:{f:function(){}},65:{},66:{},67:{},68:{},69:{},70:{},128:{},129:{T:1},130:{T:-1},131:{T:1,f:ua,p:0},132:{T:-1},133:{T:1},134:{T:-1},135:{T:1},136:{T:-1},137:{T:1,f:function(e){var t=e.read_shift(2);return e.l+=28,{RTL:32&t}}},138:{T:-1},139:{T:1},140:{T:-1},141:{T:1},142:{T:-1},143:{T:1},144:{T:-1},145:{T:1},146:{T:-1},147:{f:function(e,t){var n={},r=e[e.l];return++e.l,n.above=!(64&r),n.left=!(128&r),e.l+=18,n.name=Fa(e,t-19),n}},148:{f:Rc,p:16},151:{f:function(){}},152:{},153:{f:function(e,t){var n={},r=e.read_shift(4);n.defaultThemeVersion=e.read_shift(4);var o=t>8?Ia(e):"";return o.length>0&&(n.CodeName=o),n.autoCompressPictures=!!(65536&r),n.backupFile=!!(64&r),n.checkCompatibility=!!(4096&r),n.date1904=!!(1&r),n.filterPrivacy=!!(8&r),n.hidePivotFieldList=!!(1024&r),n.promptedSolutions=!!(16&r),n.publishItems=!!(2048&r),n.refreshAllConnections=!!(262144&r),n.saveExternalLinkValues=!!(128&r),n.showBorderUnselectedTables=!!(4&r),n.showInkAnnotation=!!(32&r),n.showObjects=["all","placeholders","none"][r>>13&3],n.showPivotChartFilter=!!(32768&r),n.updateLinks=["userSet","never","always"][r>>8&3],n}},154:{},155:{},156:{f:function(e,t){var n={};return n.Hidden=e.read_shift(4),n.iTabID=e.read_shift(4),n.strRelID=Ua(e,t-8),n.name=Ia(e),n}},157:{},158:{},159:{T:1,f:function(e){return[e.read_shift(4),e.read_shift(4)]}},160:{T:-1},161:{T:1,f:Ka},162:{T:-1},163:{T:1},164:{T:-1},165:{T:1},166:{T:-1},167:{},168:{},169:{},170:{},171:{},172:{T:1},173:{T:-1},174:{},175:{},176:{f:Dc},177:{T:1},178:{T:-1},179:{T:1},180:{T:-1},181:{T:1},182:{T:-1},183:{T:1},184:{T:-1},185:{T:1},186:{T:-1},187:{T:1},188:{T:-1},189:{T:1},190:{T:-1},191:{T:1},192:{T:-1},193:{T:1},194:{T:-1},195:{T:1},196:{T:-1},197:{T:1},198:{T:-1},199:{T:1},200:{T:-1},201:{T:1},202:{T:-1},203:{T:1},204:{T:-1},205:{T:1},206:{T:-1},207:{T:1},208:{T:-1},209:{T:1},210:{T:-1},211:{T:1},212:{T:-1},213:{T:1},214:{T:-1},215:{T:1},216:{T:-1},217:{T:1},218:{T:-1},219:{T:1},220:{T:-1},221:{T:1},222:{T:-1},223:{T:1},224:{T:-1},225:{T:1},226:{T:-1},227:{T:1},228:{T:-1},229:{T:1},230:{T:-1},231:{T:1},232:{T:-1},233:{T:1},234:{T:-1},235:{T:1},236:{T:-1},237:{T:1},238:{T:-1},239:{T:1},240:{T:-1},241:{T:1},242:{T:-1},243:{T:1},244:{T:-1},245:{T:1},246:{T:-1},247:{T:1},248:{T:-1},249:{T:1},250:{T:-1},251:{T:1},252:{T:-1},253:{T:1},254:{T:-1},255:{T:1},256:{T:-1},257:{T:1},258:{T:-1},259:{T:1},260:{T:-1},261:{T:1},262:{T:-1},263:{T:1},264:{T:-1},265:{T:1},266:{T:-1},267:{T:1},268:{T:-1},269:{T:1},270:{T:-1},271:{T:1},272:{T:-1},273:{T:1},274:{T:-1},275:{T:1},276:{T:-1},277:{},278:{T:1},279:{T:-1},280:{T:1},281:{T:-1},282:{T:1},283:{T:1},284:{T:-1},285:{T:1},286:{T:-1},287:{T:1},288:{T:-1},289:{T:1},290:{T:-1},291:{T:1},292:{T:-1},293:{T:1},294:{T:-1},295:{T:1},296:{T:-1},297:{T:1},298:{T:-1},299:{T:1},300:{T:-1},301:{T:1},302:{T:-1},303:{T:1},304:{T:-1},305:{T:1},306:{T:-1},307:{T:1},308:{T:-1},309:{T:1},310:{T:-1},311:{T:1},312:{T:-1},313:{T:-1},314:{T:1},315:{T:-1},316:{T:1},317:{T:-1},318:{T:1},319:{T:-1},320:{T:1},321:{T:-1},322:{T:1},323:{T:-1},324:{T:1},325:{T:-1},326:{T:1},327:{T:-1},328:{T:1},329:{T:-1},330:{T:1},331:{T:-1},332:{T:1},333:{T:-1},334:{T:1},335:{f:function(e,t){return{flags:e.read_shift(4),version:e.read_shift(4),name:Ia(e)}}},336:{T:-1},337:{f:function(e){return e.l+=4,0!=e.read_shift(4)},T:1},338:{T:-1},339:{T:1},340:{T:-1},341:{T:1},342:{T:-1},343:{T:1},344:{T:-1},345:{T:1},346:{T:-1},347:{T:1},348:{T:-1},349:{T:1},350:{T:-1},351:{},352:{},353:{T:1},354:{T:-1},355:{f:Ua},357:{},358:{},359:{},360:{T:1},361:{},362:{f:function(e,t,n){if(n.biff<8)return function(e,t,n){3==e[e.l+1]&&e[e.l]++;var r=Al(e,0,n);return 3==r.charCodeAt(0)?r.slice(1):r}(e,0,n);for(var r=[],o=e.l+t,i=e.read_shift(n.biff>8?4:2);0!=i--;)r.push(ql(e,n.biff,n));if(e.l!=o)throw new Error("Bad ExternSheet: "+e.l+" != "+o);return r}},363:{},364:{},366:{},367:{},368:{},369:{},370:{},371:{},372:{T:1},373:{T:-1},374:{T:1},375:{T:-1},376:{T:1},377:{T:-1},378:{T:1},379:{T:-1},380:{T:1},381:{T:-1},382:{T:1},383:{T:-1},384:{T:1},385:{T:-1},386:{T:1},387:{T:-1},388:{T:1},389:{T:-1},390:{T:1},391:{T:-1},392:{T:1},393:{T:-1},394:{T:1},395:{T:-1},396:{},397:{},398:{},399:{},400:{},401:{T:1},403:{},404:{},405:{},406:{},407:{},408:{},409:{},410:{},411:{},412:{},413:{},414:{},415:{},416:{},417:{},418:{},419:{},420:{},421:{},422:{T:1},423:{T:1},424:{T:-1},425:{T:-1},426:{f:function(e,t,n){var r=e.l+t,o=Ja(e),i=e.read_shift(1),s=[o];if(s[2]=i,n.cellFormula){var a=pc(e,r-e.l,n);s[1]=a}else e.l=r;return s}},427:{f:function(e,t,n){var r=e.l+t,o=[Ka(e,16)];if(n.cellFormula){var i=fc(e,r-e.l,n);o[1]=i,e.l=r}else e.l=r;return o}},428:{},429:{T:1},430:{T:-1},431:{T:1},432:{T:-1},433:{T:1},434:{T:-1},435:{T:1},436:{T:-1},437:{T:1},438:{T:-1},439:{T:1},440:{T:-1},441:{T:1},442:{T:-1},443:{T:1},444:{T:-1},445:{T:1},446:{T:-1},447:{T:1},448:{T:-1},449:{T:1},450:{T:-1},451:{T:1},452:{T:-1},453:{T:1},454:{T:-1},455:{T:1},456:{T:-1},457:{T:1},458:{T:-1},459:{T:1},460:{T:-1},461:{T:1},462:{T:-1},463:{T:1},464:{T:-1},465:{T:1},466:{T:-1},467:{T:1},468:{T:-1},469:{T:1},470:{T:-1},471:{},472:{},473:{T:1},474:{T:-1},475:{},476:{f:function(e){var t={};return kc.forEach((function(n){t[n]=Xa(e)})),t}},477:{},478:{},479:{T:1},480:{T:-1},481:{T:1},482:{T:-1},483:{T:1},484:{T:-1},485:{f:function(){}},486:{T:1},487:{T:-1},488:{T:1},489:{T:-1},490:{T:1},491:{T:-1},492:{T:1},493:{T:-1},494:{f:function(e,t){var n=e.l+t,r=Ka(e,16),o=Qa(e),i=Ia(e),s=Ia(e),a=Ia(e);e.l=n;var l={rfx:r,relId:o,loc:i,display:a};return s&&(l.Tooltip=s),l}},495:{T:1},496:{T:-1},497:{T:1},498:{T:-1},499:{},500:{T:1},501:{T:-1},502:{T:1},503:{T:-1},504:{},505:{T:1},506:{T:-1},507:{},508:{T:1},509:{T:-1},510:{T:1},511:{T:-1},512:{},513:{},514:{T:1},515:{T:-1},516:{T:1},517:{T:-1},518:{T:1},519:{T:-1},520:{T:1},521:{T:-1},522:{},523:{},524:{},525:{},526:{},527:{},528:{T:1},529:{T:-1},530:{T:1},531:{T:-1},532:{T:1},533:{T:-1},534:{},535:{},536:{},537:{},538:{T:1},539:{T:-1},540:{T:1},541:{T:-1},542:{T:1},548:{},549:{},550:{f:Ua},551:{},552:{},553:{},554:{T:1},555:{T:-1},556:{T:1},557:{T:-1},558:{T:1},559:{T:-1},560:{T:1},561:{T:-1},562:{},564:{},565:{T:1},566:{T:-1},569:{T:1},570:{T:-1},572:{},573:{T:1},574:{T:-1},577:{},578:{},579:{},580:{},581:{},582:{},583:{},584:{},585:{},586:{},587:{},588:{T:-1},589:{},590:{T:1},591:{T:-1},592:{T:1},593:{T:-1},594:{T:1},595:{T:-1},596:{},597:{T:1},598:{T:-1},599:{T:1},600:{T:-1},601:{T:1},602:{T:-1},603:{T:1},604:{T:-1},605:{T:1},606:{T:-1},607:{},608:{T:1},609:{T:-1},610:{},611:{T:1},612:{T:-1},613:{T:1},614:{T:-1},615:{T:1},616:{T:-1},617:{T:1},618:{T:-1},619:{T:1},620:{T:-1},625:{},626:{T:1},627:{T:-1},628:{T:1},629:{T:-1},630:{T:1},631:{T:-1},632:{f:Du},633:{T:1},634:{T:-1},635:{T:1,f:function(e){var t={};t.iauthor=e.read_shift(4);var n=Ka(e,16);return t.rfx=n.s,t.ref=xa(n.s),e.l+=16,t}},636:{T:-1},637:{f:Ma},638:{T:1},639:{},640:{T:-1},641:{T:1},642:{T:-1},643:{T:1},644:{},645:{T:-1},646:{T:1},648:{T:1},649:{},650:{T:-1},651:{f:function(e,t){return e.l+=10,{name:Ia(e)}}},652:{},653:{T:1},654:{T:-1},655:{T:1},656:{T:-1},657:{T:1},658:{T:-1},659:{},660:{T:1},661:{},662:{T:-1},663:{},664:{T:1},665:{},666:{T:-1},667:{},668:{},669:{},671:{T:1},672:{T:-1},673:{T:1},674:{T:-1},675:{},676:{},677:{},678:{},679:{},680:{},681:{},1024:{},1025:{},1026:{T:1},1027:{T:-1},1028:{T:1},1029:{T:-1},1030:{},1031:{T:1},1032:{T:-1},1033:{T:1},1034:{T:-1},1035:{},1036:{},1037:{},1038:{T:1},1039:{T:-1},1040:{},1041:{T:1},1042:{T:-1},1043:{},1044:{},1045:{},1046:{T:1},1047:{T:-1},1048:{T:1},1049:{T:-1},1050:{},1051:{T:1},1052:{T:1},1053:{f:function(){}},1054:{T:1},1055:{},1056:{T:1},1057:{T:-1},1058:{T:1},1059:{T:-1},1061:{},1062:{T:1},1063:{T:-1},1064:{T:1},1065:{T:-1},1066:{T:1},1067:{T:-1},1068:{T:1},1069:{T:-1},1070:{T:1},1071:{T:-1},1072:{T:1},1073:{T:-1},1075:{T:1},1076:{T:-1},1077:{T:1},1078:{T:-1},1079:{T:1},1080:{T:-1},1081:{T:1},1082:{T:-1},1083:{T:1},1084:{T:-1},1085:{},1086:{T:1},1087:{T:-1},1088:{T:1},1089:{T:-1},1090:{T:1},1091:{T:-1},1092:{T:1},1093:{T:-1},1094:{T:1},1095:{T:-1},1096:{},1097:{T:1},1098:{},1099:{T:-1},1100:{T:1},1101:{T:-1},1102:{},1103:{},1104:{},1105:{},1111:{},1112:{},1113:{T:1},1114:{T:-1},1115:{T:1},1116:{T:-1},1117:{},1118:{T:1},1119:{T:-1},1120:{T:1},1121:{T:-1},1122:{T:1},1123:{T:-1},1124:{T:1},1125:{T:-1},1126:{},1128:{T:1},1129:{T:-1},1130:{},1131:{T:1},1132:{T:-1},1133:{T:1},1134:{T:-1},1135:{T:1},1136:{T:-1},1137:{T:1},1138:{T:-1},1139:{T:1},1140:{T:-1},1141:{},1142:{T:1},1143:{T:-1},1144:{T:1},1145:{T:-1},1146:{},1147:{T:1},1148:{T:-1},1149:{T:1},1150:{T:-1},1152:{T:1},1153:{T:-1},1154:{T:-1},1155:{T:-1},1156:{T:-1},1157:{T:1},1158:{T:-1},1159:{T:1},1160:{T:-1},1161:{T:1},1162:{T:-1},1163:{T:1},1164:{T:-1},1165:{T:1},1166:{T:-1},1167:{T:1},1168:{T:-1},1169:{T:1},1170:{T:-1},1171:{},1172:{T:1},1173:{T:-1},1177:{},1178:{T:1},1180:{},1181:{},1182:{},2048:{T:1},2049:{T:-1},2050:{},2051:{T:1},2052:{T:-1},2053:{},2054:{},2055:{T:1},2056:{T:-1},2057:{T:1},2058:{T:-1},2060:{},2067:{},2068:{T:1},2069:{T:-1},2070:{},2071:{},2072:{T:1},2073:{T:-1},2075:{},2076:{},2077:{T:1},2078:{T:-1},2079:{},2080:{T:1},2081:{T:-1},2082:{},2083:{T:1},2084:{T:-1},2085:{T:1},2086:{T:-1},2087:{T:1},2088:{T:-1},2089:{T:1},2090:{T:-1},2091:{},2092:{},2093:{T:1},2094:{T:-1},2095:{},2096:{T:1},2097:{T:-1},2098:{T:1},2099:{T:-1},2100:{T:1},2101:{T:-1},2102:{},2103:{T:1},2104:{T:-1},2105:{},2106:{T:1},2107:{T:-1},2108:{},2109:{T:1},2110:{T:-1},2111:{T:1},2112:{T:-1},2113:{T:1},2114:{T:-1},2115:{},2116:{},2117:{},2118:{T:1},2119:{T:-1},2120:{},2121:{T:1},2122:{T:-1},2123:{T:1},2124:{T:-1},2125:{},2126:{T:1},2127:{T:-1},2128:{},2129:{T:1},2130:{T:-1},2131:{T:1},2132:{T:-1},2133:{T:1},2134:{},2135:{},2136:{},2137:{T:1},2138:{T:-1},2139:{T:1},2140:{T:-1},2141:{},3072:{},3073:{},4096:{T:1},4097:{T:-1},5002:{T:1},5003:{T:-1},5081:{T:1},5082:{T:-1},5083:{},5084:{T:1},5085:{T:-1},5086:{T:1},5087:{T:-1},5088:{},5089:{},5090:{},5092:{T:1},5093:{T:-1},5094:{},5095:{T:1},5096:{T:-1},5097:{},5099:{},65535:{n:""}};function Xc(e,t,n,r){var o=t;if(!isNaN(o)){var i=r||(n||[]).length||0,s=e.next(4);s.write_shift(2,o),s.write_shift(2,i),i>0&&Js(n)&&e.push(n)}}function Zc(e,t,n){return e||(e=ca(7)),e.write_shift(2,t),e.write_shift(2,n),e.write_shift(2,0),e.write_shift(1,0),e}function ep(e,t,n,r){if(null!=t.v)switch(t.t){case"d":case"n":var o="d"==t.t?zi(Xi(t.v)):t.v;return void(o==(0|o)&&o>=0&&o<65536?Xc(e,2,function(e,t,n){var r=ca(9);return Zc(r,e,t),r.write_shift(2,n),r}(n,r,o)):Xc(e,3,function(e,t,n){var r=ca(15);return Zc(r,e,t),r.write_shift(8,n,"f"),r}(n,r,o)));case"b":case"e":return void Xc(e,5,function(e,t,n,r){var o=ca(9);return Zc(o,e,t),Dl(n,r||"b",o),o}(n,r,t.v,t.t));case"s":case"str":return void Xc(e,4,function(e,t,n){var r=ca(8+2*n.length);return Zc(r,e,t),r.write_shift(1,n.length),r.write_shift(n.length,n,"sbcs"),r.l<r.length?r.slice(0,r.l):r}(n,r,(t.v||"").slice(0,255)))}Xc(e,1,Zc(null,n,r))}function tp(e,t,n,r,o){var i=16+Pc(o.cellXfs,t,o);if(null!=t.v||t.bf)if(t.bf)Xc(e,6,function(e,t,n,r,o){var i=jl(t,n,o),s=function(e){if(null==e){var t=ca(8);return t.write_shift(1,3),t.write_shift(1,0),t.write_shift(2,0),t.write_shift(2,0),t.write_shift(2,65535),t}return Za("number"==typeof e?e:0)}(e.v),a=ca(6);a.write_shift(2,33),a.write_shift(4,0);for(var l=ca(e.bf.length),u=0;u<e.bf.length;++u)l[u]=e.bf[u];return Bo([i,s,a,l])}(t,n,r,0,i));else switch(t.t){case"d":case"n":Xc(e,515,function(e,t,n,r){var o=ca(14);return jl(e,t,r,o),Za(n,o),o}(n,r,"d"==t.t?zi(Xi(t.v)):t.v,i));break;case"b":case"e":Xc(e,517,function(e,t,n,r,o,i){var s=ca(8);return jl(e,t,r,s),Dl(n,i,s),s}(n,r,t.v,i,0,t.t));break;case"s":case"str":o.bookSST?Xc(e,253,function(e,t,n,r){var o=ca(10);return jl(e,t,r,o),o.write_shift(4,n),o}(n,r,Cc(o.Strings,t.v,o.revStrings),i)):Xc(e,516,function(e,t,n,r,o){var i=!o||8==o.biff,s=ca(+i+8+(1+i)*n.length);return jl(e,t,r,s),s.write_shift(2,n.length),i&&s.write_shift(1,1),s.write_shift((1+i)*n.length,n,i?"utf16le":"sbcs"),s}(n,r,(t.v||"").slice(0,255),i,o));break;default:Xc(e,513,jl(n,r,i))}else Xc(e,513,jl(n,r,i))}function np(e,t,n){var r,o=pa(),i=n.SheetNames[e],s=n.Sheets[i]||{},a=(n||{}).Workbook||{},l=(a.Sheets||[])[e]||{},u=Array.isArray(s),c=8==t.biff,p="",d=[],h=Ea(s["!ref"]||"A1"),f=c?65536:16384;if(h.e.c>255||h.e.r>=f){if(t.WTF)throw new Error("Range "+(s["!ref"]||"A1")+" exceeds format limit A1:IV16384");h.e.c=Math.min(h.e.c,255),h.e.r=Math.min(h.e.c,f-1)}Xc(o,2057,Ql(0,16,t)),Xc(o,13,Il(1)),Xc(o,12,Il(100)),Xc(o,15,_l(!0)),Xc(o,17,_l(!1)),Xc(o,16,Za(.001)),Xc(o,95,_l(!0)),Xc(o,42,_l(!1)),Xc(o,43,_l(!1)),Xc(o,130,Il(1)),Xc(o,128,function(e){var t=ca(8);return t.write_shift(4,0),t.write_shift(2,e[0]?e[0]+1:0),t.write_shift(2,e[1]?e[1]+1:0),t}([0,0])),Xc(o,131,_l(!1)),Xc(o,132,_l(!1)),c&&function(e,t){if(t){var n=0;t.forEach((function(t,r){++n<=256&&t&&Xc(e,125,function(e,t){var n=ca(12);n.write_shift(2,t),n.write_shift(2,t),n.write_shift(2,256*e.width),n.write_shift(2,0);var r=0;return e.hidden&&(r|=1),n.write_shift(1,r),r=e.level||0,n.write_shift(1,r),n.write_shift(2,0),n}(wc(r,t),r))}))}}(o,s["!cols"]),Xc(o,512,function(e,t){var n=8!=t.biff&&t.biff?2:4,r=ca(2*n+6);return r.write_shift(n,e.s.r),r.write_shift(n,e.e.r+1),r.write_shift(2,e.s.c),r.write_shift(2,e.e.c+1),r.write_shift(2,0),r}(h,t)),c&&(s["!links"]=[]);for(var m=h.s.r;m<=h.e.r;++m){p=va(m);for(var g=h.s.c;g<=h.e.c;++g){m===h.s.r&&(d[g]=Ca(g)),r=d[g]+p;var y=u?(s[m]||[])[g]:s[r];y&&(tp(o,y,m,g,t),c&&y.l&&s["!links"].push([r,y.l]))}}var v=l.CodeName||l.name||i;return c&&Xc(o,574,function(e){var t=ca(18),n=1718;return e&&e.RTL&&(n|=64),t.write_shift(2,n),t.write_shift(4,0),t.write_shift(4,64),t.write_shift(4,0),t.write_shift(4,0),t}((a.Views||[])[0])),c&&(s["!merges"]||[]).length&&Xc(o,229,function(e){var t=ca(2+8*e.length);t.write_shift(2,e.length);for(var n=0;n<e.length;++n)Bl(e[n],t);return t}(s["!merges"])),c&&function(e,t){for(var n=0;n<t["!links"].length;++n){var r=t["!links"][n];Xc(e,440,Wl(r)),r[1].Tooltip&&Xc(e,2048,Gl(r))}delete t["!links"]}(o,s),Xc(o,442,Ml(v)),c&&function(e,t){var n=ca(19);n.write_shift(4,2151),n.write_shift(4,0),n.write_shift(4,0),n.write_shift(2,3),n.write_shift(1,1),n.write_shift(4,0),Xc(e,2151,n),(n=ca(39)).write_shift(4,2152),n.write_shift(4,0),n.write_shift(4,0),n.write_shift(2,3),n.write_shift(1,0),n.write_shift(4,0),n.write_shift(2,1),n.write_shift(4,4),n.write_shift(2,0),Bl(Ea(t["!ref"]||"A1"),n),n.write_shift(4,4),Xc(e,2152,n)}(o,s),Xc(o,10),o.end()}function rp(e,t,n){var r=pa(),o=(e||{}).Workbook||{},i=o.Sheets||[],s=o.WBProps||{},a=8==n.biff,l=5==n.biff;Xc(r,2057,Ql(0,5,n)),"xla"==n.bookType&&Xc(r,135),Xc(r,225,a?Il(1200):null),Xc(r,193,function(e,t){t||(t=ca(2));for(var n=0;n<2;++n)t.write_shift(1,0);return t}()),l&&Xc(r,191),l&&Xc(r,192),Xc(r,226),Xc(r,92,function(e,t){var n=!t||8==t.biff,r=ca(n?112:54);for(r.write_shift(8==t.biff?2:1,7),n&&r.write_shift(1,0),r.write_shift(4,859007059),r.write_shift(4,5458548|(n?0:536870912));r.l<r.length;)r.write_shift(1,n?0:32);return r}(0,n)),Xc(r,66,Il(a?1200:1252)),a&&Xc(r,353,Il(0)),a&&Xc(r,448),Xc(r,317,function(e){for(var t=ca(2*e),n=0;n<e;++n)t.write_shift(2,n+1);return t}(e.SheetNames.length)),a&&e.vbaraw&&Xc(r,211),a&&e.vbaraw&&Xc(r,442,Ml(s.CodeName||"ThisWorkbook")),Xc(r,156,Il(17)),Xc(r,25,_l(!1)),Xc(r,18,_l(!1)),Xc(r,19,Il(0)),a&&Xc(r,431,_l(!1)),a&&Xc(r,444,Il(0)),Xc(r,61,function(){var e=ca(18);return e.write_shift(2,0),e.write_shift(2,0),e.write_shift(2,29280),e.write_shift(2,17600),e.write_shift(2,56),e.write_shift(2,0),e.write_shift(2,0),e.write_shift(2,1),e.write_shift(2,500),e}()),Xc(r,64,_l(!1)),Xc(r,141,Il(0)),Xc(r,34,_l("true"==function(e){return e.Workbook&&e.Workbook.WBProps&&function(e){switch(e){case 1:case!0:case"1":case"true":case"TRUE":return!0;default:return!1}}(e.Workbook.WBProps.date1904)?"true":"false"}(e))),Xc(r,14,_l(!0)),a&&Xc(r,439,_l(!1)),Xc(r,218,Il(0)),function(e,t,n){Xc(e,49,function(e,t){var n=e.name||"Arial",r=t&&5==t.biff,o=ca(r?15+n.length:16+2*n.length);return o.write_shift(2,20*(e.sz||12)),o.write_shift(4,0),o.write_shift(2,400),o.write_shift(4,0),o.write_shift(2,0),o.write_shift(1,n.length),r||o.write_shift(1,1),o.write_shift((r?1:2)*n.length,n,r?"sbcs":"utf16le"),o}({sz:12,color:{theme:1},name:"Arial",family:2,scheme:"minor"},n))}(r,0,n),function(e,t,n){t&&[[5,8],[23,26],[41,44],[50,392]].forEach((function(r){for(var o=r[0];o<=r[1];++o)null!=t[o]&&Xc(e,1054,zl(o,t[o],n))}))}(r,e.SSF,n),function(e,t){for(var n=0;n<16;++n)Xc(e,224,Ul({numFmtId:0,style:!0},0,t));t.cellXfs.forEach((function(n){Xc(e,224,Ul(n,0,t))}))}(r,n),a&&Xc(r,352,_l(!1));var u=r.end(),c=pa();a&&Xc(c,140,function(e){return e||(e=ca(4)),e.write_shift(2,1),e.write_shift(2,1),e}()),a&&n.Strings&&function(e,t,n,r){var o=(n||[]).length||0;if(o<=8224)return Xc(e,252,n,o);if(!isNaN(252)){for(var i=n.parts||[],s=0,a=0,l=0;l+(i[s]||8224)<=8224;)l+=i[s]||8224,s++;var u=e.next(4);for(u.write_shift(2,252),u.write_shift(2,l),e.push(n.slice(a,a+l)),a+=l;a<o;){for((u=e.next(4)).write_shift(2,60),l=0;l+(i[s]||8224)<=8224;)l+=i[s]||8224,s++;u.write_shift(2,l),e.push(n.slice(a,a+l)),a+=l}}}(c,0,function(e,t){var n=ca(8);n.write_shift(4,e.Count),n.write_shift(4,e.Unique);for(var r=[],o=0;o<e.length;++o)r[o]=kl(e[o]);var i=Bo([n].concat(r));return i.parts=[n.length].concat(r.map((function(e){return e.length}))),i}(n.Strings)),Xc(c,10);var p=c.end(),d=pa(),h=0,f=0;for(f=0;f<e.SheetNames.length;++f)h+=(a?12:11)+(a?2:1)*e.SheetNames[f].length;var m=u.length+h+p.length;for(f=0;f<e.SheetNames.length;++f)Xc(d,133,Hl({pos:m,hs:(i[f]||{}).Hidden||0,dt:0,name:e.SheetNames[f]},n)),m+=t[f].length;var g=d.end();if(h!=g.length)throw new Error("BS8 "+h+" != "+g.length);var y=[];return u.length&&y.push(u),g.length&&y.push(g),p.length&&y.push(p),Bo(y)}function op(e,t){for(var n=0;n<=e.SheetNames.length;++n){var r=e.Sheets[e.SheetNames[n]];r&&r["!ref"]&&Pa(r["!ref"]).e.c>255&&"undefined"!=typeof console&&console.error&&console.error("Worksheet '"+e.SheetNames[n]+"' extends beyond column IV (255).  Data may be lost.")}var o=t||{};switch(o.biff||2){case 8:case 5:return function(e,t){var n=t||{},r=[];e&&!e.SSF&&(e.SSF=es(Zo)),e&&e.SSF&&(Di(),Ii(e.SSF),n.revssf=Qi(e.SSF),n.revssf[e.SSF[65535]]=0,n.ssf=e.SSF),n.Strings=[],n.Strings.Count=0,n.Strings.Unique=0,Dp(n),n.cellXfs=[],Pc(n.cellXfs,{},{revssf:{General:0}}),e.Props||(e.Props={});for(var o=0;o<e.SheetNames.length;++o)r[r.length]=np(o,n,e);return r.unshift(rp(e,r,n)),Bo(r)}(e,t);case 4:case 3:case 2:return function(e,t){var n=t||{};null!=Ro&&null==n.dense&&(n.dense=Ro);for(var r=pa(),o=0,i=0;i<e.SheetNames.length;++i)e.SheetNames[i]==n.sheet&&(o=i);if(0==o&&n.sheet&&e.SheetNames[0]!=n.sheet)throw new Error("Sheet not found: "+n.sheet);return Xc(r,4==n.biff?1033:3==n.biff?521:9,Ql(0,16,n)),function(e,t,n,r){var o,i=Array.isArray(t),s=Ea(t["!ref"]||"A1"),a="",l=[];if(s.e.c>255||s.e.r>16383){if(r.WTF)throw new Error("Range "+(t["!ref"]||"A1")+" exceeds format limit A1:IV16384");s.e.c=Math.min(s.e.c,255),s.e.r=Math.min(s.e.c,16383),o=Sa(s)}for(var u=s.s.r;u<=s.e.r;++u){a=va(u);for(var c=s.s.c;c<=s.e.c;++c){u===s.s.r&&(l[c]=Ca(c)),o=l[c]+a;var p=i?(t[u]||[])[c]:t[o];p&&ep(e,p,u,c)}}}(r,e.Sheets[e.SheetNames[o]],0,n),Xc(r,10),r.end()}(e,t)}throw new Error("invalid type "+o.bookType+" for BIFF")}function ip(e,t,n,r){for(var o=e["!merges"]||[],i=[],s=t.s.c;s<=t.e.c;++s){for(var a=0,l=0,u=0;u<o.length;++u)if(!(o[u].s.r>n||o[u].s.c>s||o[u].e.r<n||o[u].e.c<s)){if(o[u].s.r<n||o[u].s.c<s){a=-1;break}a=o[u].e.r-o[u].s.r+1,l=o[u].e.c-o[u].s.c+1;break}if(!(a<0)){var c=xa({r:n,c:s}),p=r.dense?(e[n]||[])[s]:e[c],d=p&&null!=p.v&&(p.h||((p.w||(Ta(p),p.w)||"")+"").replace(us,(function(e){return ls[e]})).replace(/\n/g,"<br/>").replace(hs,(function(e){return"&#x"+("000"+e.charCodeAt(0).toString(16)).slice(-4)+";"})))||"",h={};a>1&&(h.rowspan=a),l>1&&(h.colspan=l),r.editable?d='<span contenteditable="true">'+d+"</span>":p&&(h["data-t"]=p&&p.t||"z",null!=p.v&&(h["data-v"]=p.v),null!=p.z&&(h["data-z"]=p.z),p.l&&"#"!=(p.l.Target||"#").charAt(0)&&(d='<a href="'+p.l.Target+'">'+d+"</a>")),h.id=(r.id||"sjs")+"-"+c,i.push(Ss("td",d,h))}}return"<tr>"+i.join("")+"</tr>"}var sp='<html><head><meta charset="utf-8"/><title>SheetJS Table Export</title></head><body>',ap="</body></html>";function lp(e,t){var n=t||{},r=null!=n.header?n.header:sp,o=null!=n.footer?n.footer:ap,i=[r],s=Pa(e["!ref"]);n.dense=Array.isArray(e),i.push(function(e,t,n){return[].join("")+"<table"+(n&&n.id?' id="'+n.id+'"':"")+">"}(0,0,n));for(var a=s.s.r;a<=s.e.r;++a)i.push(ip(e,s,a,n));return i.push("</table>"+o),i.join("")}function up(e,t,n){var r=n||{};null!=Ro&&(r.dense=Ro);var o=0,i=0;if(null!=r.origin)if("number"==typeof r.origin)o=r.origin;else{var s="string"==typeof r.origin?wa(r.origin):r.origin;o=s.r,i=s.c}var a=t.getElementsByTagName("tr"),l=Math.min(r.sheetRows||1e7,a.length),u={s:{r:0,c:0},e:{r:o,c:i}};if(e["!ref"]){var c=Pa(e["!ref"]);u.s.r=Math.min(u.s.r,c.s.r),u.s.c=Math.min(u.s.c,c.s.c),u.e.r=Math.max(u.e.r,c.e.r),u.e.c=Math.max(u.e.c,c.e.c),-1==o&&(u.e.r=o=c.e.r+1)}var p=[],d=0,h=e["!rows"]||(e["!rows"]=[]),f=0,m=0,g=0,y=0,v=0,b=0;for(e["!cols"]||(e["!cols"]=[]);f<a.length&&m<l;++f){var C=a[f];if(pp(C)){if(r.display)continue;h[m]={hidden:!0}}var w=C.children;for(g=y=0;g<w.length;++g){var x=w[g];if(!r.display||!pp(x)){var P=x.hasAttribute("data-v")?x.getAttribute("data-v"):x.hasAttribute("v")?x.getAttribute("v"):Cs(x.innerHTML),S=x.getAttribute("data-z")||x.getAttribute("z");for(d=0;d<p.length;++d){var E=p[d];E.s.c==y+i&&E.s.r<m+o&&m+o<=E.e.r&&(y=E.e.c+1-i,d=-1)}b=+x.getAttribute("colspan")||1,((v=+x.getAttribute("rowspan")||1)>1||b>1)&&p.push({s:{r:m+o,c:y+i},e:{r:m+o+(v||1)-1,c:y+i+(b||1)-1}});var T={t:"s",v:P},O=x.getAttribute("data-t")||x.getAttribute("t")||"";null!=P&&(0==P.length?T.t=O||"z":r.raw||0==P.trim().length||"s"==O||("TRUE"===P?T={t:"b",v:!0}:"FALSE"===P?T={t:"b",v:!1}:isNaN(ns(P))?isNaN(os(P).getDate())||(T={t:"d",v:Xi(P)},r.cellDates||(T={t:"n",v:zi(T.v)}),T.z=r.dateNF||Zo[14]):T={t:"n",v:ns(P)})),void 0===T.z&&null!=S&&(T.z=S);var V="",_=x.getElementsByTagName("A");if(_&&_.length)for(var R=0;R<_.length&&(!_[R].hasAttribute("href")||"#"==(V=_[R].getAttribute("href")).charAt(0));++R);V&&"#"!=V.charAt(0)&&(T.l={Target:V}),r.dense?(e[m+o]||(e[m+o]=[]),e[m+o][y+i]=T):e[xa({c:y+i,r:m+o})]=T,u.e.c<y+i&&(u.e.c=y+i),y+=b}}++m}return p.length&&(e["!merges"]=(e["!merges"]||[]).concat(p)),u.e.r=Math.max(u.e.r,m-1+o),e["!ref"]=Sa(u),m>=l&&(e["!fullref"]=Sa((u.e.r=a.length-f+m-1+o,u))),e}function cp(e,t){return up((t||{}).dense?[]:{},e,t)}function pp(e){var t="",n=function(e){return e.ownerDocument.defaultView&&"function"==typeof e.ownerDocument.defaultView.getComputedStyle?e.ownerDocument.defaultView.getComputedStyle:"function"==typeof getComputedStyle?getComputedStyle:null}(e);return n&&(t=n(e).getPropertyValue("display")),t||(t=e.style&&e.style.display),"none"===t}var dp=function(){var e=["<office:master-styles>",'<style:master-page style:name="mp1" style:page-layout-name="mp1">',"<style:header/>",'<style:header-left style:display="false"/>',"<style:footer/>",'<style:footer-left style:display="false"/>',"</style:master-page>","</office:master-styles>"].join(""),t="<office:document-styles "+Ps({"xmlns:office":"urn:oasis:names:tc:opendocument:xmlns:office:1.0","xmlns:table":"urn:oasis:names:tc:opendocument:xmlns:table:1.0","xmlns:style":"urn:oasis:names:tc:opendocument:xmlns:style:1.0","xmlns:text":"urn:oasis:names:tc:opendocument:xmlns:text:1.0","xmlns:draw":"urn:oasis:names:tc:opendocument:xmlns:drawing:1.0","xmlns:fo":"urn:oasis:names:tc:opendocument:xmlns:xsl-fo-compatible:1.0","xmlns:xlink":"http://www.w3.org/1999/xlink","xmlns:dc":"http://purl.org/dc/elements/1.1/","xmlns:number":"urn:oasis:names:tc:opendocument:xmlns:datastyle:1.0","xmlns:svg":"urn:oasis:names:tc:opendocument:xmlns:svg-compatible:1.0","xmlns:of":"urn:oasis:names:tc:opendocument:xmlns:of:1.2","office:version":"1.2"})+">"+e+"</office:document-styles>";return function(){return as+t}}(),hp=function(){var e="          <table:table-cell />\n",t=function(t,n,r){var o=[];o.push('      <table:table table:name="'+ps(n.SheetNames[r])+'" table:style-name="ta1">\n');var i=0,s=0,a=Pa(t["!ref"]||"A1"),l=t["!merges"]||[],u=0,c=Array.isArray(t);if(t["!cols"])for(s=0;s<=a.e.c;++s)o.push("        <table:table-column"+(t["!cols"][s]?' table:style-name="co'+t["!cols"][s].ods+'"':"")+"></table:table-column>\n");var p,d="",h=t["!rows"]||[];for(i=0;i<a.s.r;++i)d=h[i]?' table:style-name="ro'+h[i].ods+'"':"",o.push("        <table:table-row"+d+"></table:table-row>\n");for(;i<=a.e.r;++i){for(d=h[i]?' table:style-name="ro'+h[i].ods+'"':"",o.push("        <table:table-row"+d+">\n"),s=0;s<a.s.c;++s)o.push(e);for(;s<=a.e.c;++s){var f=!1,m={},g="";for(u=0;u!=l.length;++u)if(!(l[u].s.c>s||l[u].s.r>i||l[u].e.c<s||l[u].e.r<i)){l[u].s.c==s&&l[u].s.r==i||(f=!0),m["table:number-columns-spanned"]=l[u].e.c-l[u].s.c+1,m["table:number-rows-spanned"]=l[u].e.r-l[u].s.r+1;break}if(f)o.push("          <table:covered-table-cell/>\n");else{var y=xa({r:i,c:s}),v=c?(t[i]||[])[s]:t[y];if(v&&v.f&&(m["table:formula"]=ps(vc(v.f)),v.F&&v.F.slice(0,y.length)==y)){var b=Pa(v.F);m["table:number-matrix-columns-spanned"]=b.e.c-b.s.c+1,m["table:number-matrix-rows-spanned"]=b.e.r-b.s.r+1}if(v){switch(v.t){case"b":g=v.v?"TRUE":"FALSE",m["office:value-type"]="boolean",m["office:boolean-value"]=v.v?"true":"false";break;case"n":g=v.w||String(v.v||0),m["office:value-type"]="float",m["office:value"]=v.v||0;break;case"s":case"str":g=null==v.v?"":v.v,m["office:value-type"]="string";break;case"d":g=v.w||Xi(v.v).toISOString(),m["office:value-type"]="date",m["office:date-value"]=Xi(v.v).toISOString(),m["table:style-name"]="ce1";break;default:o.push(e);continue}var C=ps(g).replace(/  +/g,(function(e){return'<text:s text:c="'+e.length+'"/>'})).replace(/\t/g,"<text:tab/>").replace(/\n/g,"</text:p><text:p>").replace(/^ /,"<text:s/>").replace(/ $/,"<text:s/>");if(v.l&&v.l.Target){var w=v.l.Target;"#"==(w="#"==w.charAt(0)?"#"+(p=w.slice(1),p.replace(/\./,"!")):w).charAt(0)||w.match(/^\w+:/)||(w="../"+w),C=Ss("text:a",C,{"xlink:href":w.replace(/&/g,"&amp;")})}o.push("          "+Ss("table:table-cell",Ss("text:p",C,{}),m)+"\n")}else o.push(e)}}o.push("        </table:table-row>\n")}return o.push("      </table:table>\n"),o.join("")};return function(e,n){var r=[as],o=Ps({"xmlns:office":"urn:oasis:names:tc:opendocument:xmlns:office:1.0","xmlns:table":"urn:oasis:names:tc:opendocument:xmlns:table:1.0","xmlns:style":"urn:oasis:names:tc:opendocument:xmlns:style:1.0","xmlns:text":"urn:oasis:names:tc:opendocument:xmlns:text:1.0","xmlns:draw":"urn:oasis:names:tc:opendocument:xmlns:drawing:1.0","xmlns:fo":"urn:oasis:names:tc:opendocument:xmlns:xsl-fo-compatible:1.0","xmlns:xlink":"http://www.w3.org/1999/xlink","xmlns:dc":"http://purl.org/dc/elements/1.1/","xmlns:meta":"urn:oasis:names:tc:opendocument:xmlns:meta:1.0","xmlns:number":"urn:oasis:names:tc:opendocument:xmlns:datastyle:1.0","xmlns:presentation":"urn:oasis:names:tc:opendocument:xmlns:presentation:1.0","xmlns:svg":"urn:oasis:names:tc:opendocument:xmlns:svg-compatible:1.0","xmlns:chart":"urn:oasis:names:tc:opendocument:xmlns:chart:1.0","xmlns:dr3d":"urn:oasis:names:tc:opendocument:xmlns:dr3d:1.0","xmlns:math":"http://www.w3.org/1998/Math/MathML","xmlns:form":"urn:oasis:names:tc:opendocument:xmlns:form:1.0","xmlns:script":"urn:oasis:names:tc:opendocument:xmlns:script:1.0","xmlns:ooo":"http://openoffice.org/2004/office","xmlns:ooow":"http://openoffice.org/2004/writer","xmlns:oooc":"http://openoffice.org/2004/calc","xmlns:dom":"http://www.w3.org/2001/xml-events","xmlns:xforms":"http://www.w3.org/2002/xforms","xmlns:xsd":"http://www.w3.org/2001/XMLSchema","xmlns:xsi":"http://www.w3.org/2001/XMLSchema-instance","xmlns:sheet":"urn:oasis:names:tc:opendocument:sh33tjs:1.0","xmlns:rpt":"http://openoffice.org/2005/report","xmlns:of":"urn:oasis:names:tc:opendocument:xmlns:of:1.2","xmlns:xhtml":"http://www.w3.org/1999/xhtml","xmlns:grddl":"http://www.w3.org/2003/g/data-view#","xmlns:tableooo":"http://openoffice.org/2009/table","xmlns:drawooo":"http://openoffice.org/2010/draw","xmlns:calcext":"urn:org:documentfoundation:names:experimental:calc:xmlns:calcext:1.0","xmlns:loext":"urn:org:documentfoundation:names:experimental:office:xmlns:loext:1.0","xmlns:field":"urn:openoffice:names:experimental:ooo-ms-interop:xmlns:field:1.0","xmlns:formx":"urn:openoffice:names:experimental:ooxml-odf-interop:xmlns:form:1.0","xmlns:css3t":"http://www.w3.org/TR/css3-text/","office:version":"1.2"}),i=Ps({"xmlns:config":"urn:oasis:names:tc:opendocument:xmlns:config:1.0","office:mimetype":"application/vnd.oasis.opendocument.spreadsheet"});"fods"==n.bookType?(r.push("<office:document"+o+i+">\n"),r.push(ml().replace(/office:document-meta/g,"office:meta"))):r.push("<office:document-content"+o+">\n"),function(e,t){e.push(" <office:automatic-styles>\n"),e.push('  <number:date-style style:name="N37" number:automatic-order="true">\n'),e.push('   <number:month number:style="long"/>\n'),e.push("   <number:text>/</number:text>\n"),e.push('   <number:day number:style="long"/>\n'),e.push("   <number:text>/</number:text>\n"),e.push("   <number:year/>\n"),e.push("  </number:date-style>\n");var n=0;t.SheetNames.map((function(e){return t.Sheets[e]})).forEach((function(t){if(t&&t["!cols"])for(var r=0;r<t["!cols"].length;++r)if(t["!cols"][r]){var o=t["!cols"][r];if(null==o.width&&null==o.wpx&&null==o.wch)continue;pu(o),o.ods=n;var i=t["!cols"][r].wpx+"px";e.push('  <style:style style:name="co'+n+'" style:family="table-column">\n'),e.push('   <style:table-column-properties fo:break-before="auto" style:column-width="'+i+'"/>\n'),e.push("  </style:style>\n"),++n}}));var r=0;t.SheetNames.map((function(e){return t.Sheets[e]})).forEach((function(t){if(t&&t["!rows"])for(var n=0;n<t["!rows"].length;++n)if(t["!rows"][n]){t["!rows"][n].ods=r;var o=t["!rows"][n].hpx+"px";e.push('  <style:style style:name="ro'+r+'" style:family="table-row">\n'),e.push('   <style:table-row-properties fo:break-before="auto" style:row-height="'+o+'"/>\n'),e.push("  </style:style>\n"),++r}})),e.push('  <style:style style:name="ta1" style:family="table" style:master-page-name="mp1">\n'),e.push('   <style:table-properties table:display="true" style:writing-mode="lr-tb"/>\n'),e.push("  </style:style>\n"),e.push('  <style:style style:name="ce1" style:family="table-cell" style:parent-style-name="Default" style:data-style-name="N37"/>\n'),e.push(" </office:automatic-styles>\n")}(r,e),r.push("  <office:body>\n"),r.push("    <office:spreadsheet>\n");for(var s=0;s!=e.SheetNames.length;++s)r.push(t(e.Sheets[e.SheetNames[s]],e,s));return r.push("    </office:spreadsheet>\n"),r.push("  </office:body>\n"),"fods"==n.bookType?r.push("</office:document>"):r.push("</office:document-content>"),r.join("")}}();function fp(e,t){if("fods"==t.bookType)return hp(e,t);var n=ss(),r="",o=[],i=[];return is(n,r="mimetype","application/vnd.oasis.opendocument.spreadsheet"),is(n,r="content.xml",hp(e,t)),o.push([r,"text/xml"]),i.push([r,"ContentFile"]),is(n,r="styles.xml",dp(e,t)),o.push([r,"text/xml"]),i.push([r,"StylesFile"]),is(n,r="meta.xml",as+ml()),o.push([r,"text/xml"]),i.push([r,"MetadataFile"]),is(n,r="manifest.rdf",function(e){var t=[as];t.push('<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#">\n');for(var n=0;n!=e.length;++n)t.push(fl(e[n][0],e[n][1])),t.push(("",['  <rdf:Description rdf:about="">\n','    <ns0:hasPart xmlns:ns0="http://docs.oasis-open.org/ns/office/1.2/meta/pkg#" rdf:resource="'+e[n][0]+'"/>\n',"  </rdf:Description>\n"].join("")));return t.push(fl("","Document","pkg")),t.push("</rdf:RDF>"),t.join("")}(i)),o.push([r,"application/rdf+xml"]),is(n,r="META-INF/manifest.xml",function(e){var t=[as];t.push('<manifest:manifest xmlns:manifest="urn:oasis:names:tc:opendocument:xmlns:manifest:1.0" manifest:version="1.2">\n'),t.push('  <manifest:file-entry manifest:full-path="/" manifest:version="1.2" manifest:media-type="application/vnd.oasis.opendocument.spreadsheet"/>\n');for(var n=0;n<e.length;++n)t.push('  <manifest:file-entry manifest:full-path="'+e[n][0]+'" manifest:media-type="'+e[n][1]+'"/>\n');return t.push("</manifest:manifest>"),t.join("")}(o)),n}function mp(e){return new DataView(e.buffer,e.byteOffset,e.byteLength)}function gp(e){return"undefined"!=typeof TextEncoder?(new TextEncoder).encode(e):jo(bs(e))}function yp(e){var t=e.reduce((function(e,t){return e+t.length}),0),n=new Uint8Array(t),r=0;return e.forEach((function(e){n.set(e,r),r+=e.length})),n}function vp(e,t){var n=t?t[0]:0,r=127&e[n];e:if(e[n++]>=128){if(r|=(127&e[n])<<7,e[n++]<128)break e;if(r|=(127&e[n])<<14,e[n++]<128)break e;if(r|=(127&e[n])<<21,e[n++]<128)break e;if(r+=(127&e[n])*Math.pow(2,28),++n,e[n++]<128)break e;if(r+=(127&e[n])*Math.pow(2,35),++n,e[n++]<128)break e;if(r+=(127&e[n])*Math.pow(2,42),++n,e[n++]<128)break e}return t&&(t[0]=n),r}function bp(e){var t=new Uint8Array(7);t[0]=127&e;var n=1;e:if(e>127){if(t[n-1]|=128,t[n]=e>>7&127,++n,e<=16383)break e;if(t[n-1]|=128,t[n]=e>>14&127,++n,e<=2097151)break e;if(t[n-1]|=128,t[n]=e>>21&127,++n,e<=268435455)break e;if(t[n-1]|=128,t[n]=e/256>>>21&127,++n,e<=34359738367)break e;if(t[n-1]|=128,t[n]=e/65536>>>21&127,++n,e<=4398046511103)break e;t[n-1]|=128,t[n]=e/16777216>>>21&127,++n}return t.slice(0,n)}function Cp(e){var t=0,n=127&e[t];e:if(e[t++]>=128){if(n|=(127&e[t])<<7,e[t++]<128)break e;if(n|=(127&e[t])<<14,e[t++]<128)break e;if(n|=(127&e[t])<<21,e[t++]<128)break e;n|=(127&e[t])<<28}return n}function wp(e){for(var t=[],n=[0];n[0]<e.length;){var r,o=n[0],i=vp(e,n),s=7&i,a=0;if(0==(i=Math.floor(i/8)))break;switch(s){case 0:for(var l=n[0];e[n[0]++]>=128;);r=e.slice(l,n[0]);break;case 5:a=4,r=e.slice(n[0],n[0]+a),n[0]+=a;break;case 1:a=8,r=e.slice(n[0],n[0]+a),n[0]+=a;break;case 2:a=vp(e,n),r=e.slice(n[0],n[0]+a),n[0]+=a;break;default:throw new Error("PB Type ".concat(s," for Field ").concat(i," at offset ").concat(o))}var u={data:r,type:s};null==t[i]?t[i]=[u]:t[i].push(u)}return t}function xp(e){var t=[];return e.forEach((function(e,n){e.forEach((function(e){e.data&&(t.push(bp(8*n+e.type)),2==e.type&&t.push(bp(e.data.length)),t.push(e.data))}))})),yp(t)}function Pp(e){for(var t,n=[],r=[0];r[0]<e.length;){var o=vp(e,r),i=wp(e.slice(r[0],r[0]+o));r[0]+=o;var s={id:Cp(i[1][0].data),messages:[]};i[2].forEach((function(t){var n=wp(t.data),o=Cp(n[3][0].data);s.messages.push({meta:n,data:e.slice(r[0],r[0]+o)}),r[0]+=o})),(null==(t=i[3])?void 0:t[0])&&(s.merge=Cp(i[3][0].data)>>>0>0),n.push(s)}return n}function Sp(e){var t=[];return e.forEach((function(e){var n=[];n[1]=[{data:bp(e.id),type:0}],n[2]=[],null!=e.merge&&(n[3]=[{data:bp(+!!e.merge),type:0}]);var r=[];e.messages.forEach((function(e){r.push(e.data),e.meta[3]=[{type:0,data:bp(e.data.length)}],n[2].push({data:xp(e.meta),type:2})}));var o=xp(n);t.push(bp(o.length)),t.push(o),r.forEach((function(e){return t.push(e)}))})),yp(t)}function Ep(e,t){if(0!=e)throw new Error("Unexpected Snappy chunk type ".concat(e));for(var n=[0],r=vp(t,n),o=[];n[0]<t.length;){var i=3&t[n[0]];if(0!=i){var s=0,a=0;if(1==i?(a=4+(t[n[0]]>>2&7),s=(224&t[n[0]++])<<3,s|=t[n[0]++]):(a=1+(t[n[0]++]>>2),2==i?(s=t[n[0]]|t[n[0]+1]<<8,n[0]+=2):(s=(t[n[0]]|t[n[0]+1]<<8|t[n[0]+2]<<16|t[n[0]+3]<<24)>>>0,n[0]+=4)),o=[yp(o)],0==s)throw new Error("Invalid offset 0");if(s>o[0].length)throw new Error("Invalid offset beyond length");if(a>=s)for(o.push(o[0].slice(-s)),a-=s;a>=o[o.length-1].length;)o.push(o[o.length-1]),a-=o[o.length-1].length;o.push(o[0].slice(-s,-s+a))}else{var l=t[n[0]++]>>2;if(l<60)++l;else{var u=l-59;l=t[n[0]],u>1&&(l|=t[n[0]+1]<<8),u>2&&(l|=t[n[0]+2]<<16),u>3&&(l|=t[n[0]+3]<<24),l>>>=0,l++,n[0]+=u}o.push(t.slice(n[0],n[0]+l)),n[0]+=l}}var c=yp(o);if(c.length!=r)throw new Error("Unexpected length: ".concat(c.length," != ").concat(r));return c}function Tp(e){for(var t=[],n=0;n<e.length;){var r=e[n++],o=e[n]|e[n+1]<<8|e[n+2]<<16;n+=3,t.push(Ep(r,e.slice(n,n+o))),n+=o}if(n!==e.length)throw new Error("data is not a valid framed stream!");return yp(t)}function Op(e){for(var t=[],n=0;n<e.length;){var r=Math.min(e.length-n,268435455),o=new Uint8Array(4);t.push(o);var i=bp(r),s=i.length;t.push(i),r<=60?(s++,t.push(new Uint8Array([r-1<<2]))):r<=256?(s+=2,t.push(new Uint8Array([240,r-1&255]))):r<=65536?(s+=3,t.push(new Uint8Array([244,r-1&255,r-1>>8&255]))):r<=16777216?(s+=4,t.push(new Uint8Array([248,r-1&255,r-1>>8&255,r-1>>16&255]))):r<=4294967296&&(s+=5,t.push(new Uint8Array([252,r-1&255,r-1>>8&255,r-1>>16&255,r-1>>>24&255]))),t.push(e.slice(n,n+r)),s+=r,o[0]=0,o[1]=255&s,o[2]=s>>8&255,o[3]=s>>16&255,n+=r}return yp(t)}function Vp(e,t){var n=new Uint8Array(32),r=mp(n),o=12,i=0;switch(n[0]=5,e.t){case"n":n[1]=2,function(e,t,n){var r=Math.floor(0==n?0:Math.LOG10E*Math.log(Math.abs(n)))+6176-20,o=n/Math.pow(10,r-6176);e[t+15]|=r>>7,e[t+14]|=(127&r)<<1;for(var i=0;o>=1;++i,o/=256)e[t+i]=255&o;e[t+15]|=n>=0?0:128}(n,o,e.v),i|=1,o+=16;break;case"b":n[1]=6,r.setFloat64(o,e.v?1:0,!0),i|=2,o+=8;break;case"s":if(-1==t.indexOf(e.v))throw new Error("Value ".concat(e.v," missing from SST!"));n[1]=3,r.setUint32(o,t.indexOf(e.v),!0),i|=8,o+=4;break;default:throw"unsupported cell type "+e.t}return r.setUint32(8,i,!0),n.slice(0,o)}function _p(e,t){var n=new Uint8Array(32),r=mp(n),o=12,i=0;switch(n[0]=3,e.t){case"n":n[2]=2,r.setFloat64(o,e.v,!0),i|=32,o+=8;break;case"b":n[2]=6,r.setFloat64(o,e.v?1:0,!0),i|=32,o+=8;break;case"s":if(-1==t.indexOf(e.v))throw new Error("Value ".concat(e.v," missing from SST!"));n[2]=3,r.setUint32(o,t.indexOf(e.v),!0),i|=16,o+=4;break;default:throw"unsupported cell type "+e.t}return r.setUint32(4,i,!0),n.slice(0,o)}function Rp(e){return vp(wp(e)[1][0].data)}function Ip(e,t,n){var r,o,i,s;if(!(null==(r=e[6])?void 0:r[0])||!(null==(o=e[7])?void 0:o[0]))throw"Mutation only works on post-BNC storages!";if((null==(s=null==(i=e[8])?void 0:i[0])?void 0:s.data)&&Cp(e[8][0].data)>0)throw"Math only works with normal offsets";for(var a=0,l=mp(e[7][0].data),u=0,c=[],p=mp(e[4][0].data),d=0,h=[],f=0;f<t.length;++f)if(null!=t[f]){var m,g;switch(l.setUint16(2*f,u,!0),p.setUint16(2*f,d,!0),typeof t[f]){case"string":m=Vp({t:"s",v:t[f]},n),g=_p({t:"s",v:t[f]},n);break;case"number":m=Vp({t:"n",v:t[f]},n),g=_p({t:"n",v:t[f]},n);break;case"boolean":m=Vp({t:"b",v:t[f]},n),g=_p({t:"b",v:t[f]},n);break;default:throw new Error("Unsupported value "+t[f])}c.push(m),u+=m.length,h.push(g),d+=g.length,++a}else l.setUint16(2*f,65535,!0),p.setUint16(2*f,65535);for(e[2][0].data=bp(a);f<e[7][0].data.length/2;++f)l.setUint16(2*f,65535,!0),p.setUint16(2*f,65535,!0);return e[6][0].data=yp(c),e[3][0].data=yp(h),a}function Dp(e){var t;(t=[["cellDates",!1],["bookSST",!1],["bookType","xlsx"],["compression",!1],["WTF",!1]],function(e){for(var n=0;n!=t.length;++n){var r=t[n];void 0===e[r[0]]&&(e[r[0]]=r[1]),"n"===r[2]&&(e[r[0]]=Number(e[r[0]]))}})(e)}function Ap(e,t){return"ods"==t.bookType?fp(e,t):"numbers"==t.bookType?function(e,t){if(!t||!t.numbers)throw new Error("Must pass a `numbers` option -- check the README");var n=e.Sheets[e.SheetNames[0]];e.SheetNames.length>1&&console.error("The Numbers writer currently writes only the first table");var r=Pa(n["!ref"]);r.s.r=r.s.c=0;var o=!1;r.e.c>9&&(o=!0,r.e.c=9),r.e.r>49&&(o=!0,r.e.r=49),o&&console.error("The Numbers writer is currently limited to ".concat(Sa(r)));var i=qp(n,{range:r,header:1}),s=["~Sh33tJ5~"];i.forEach((function(e){return e.forEach((function(e){"string"==typeof e&&s.push(e)}))}));var a={},l=[],u=Mi.read(t.numbers,{type:"base64"});u.FileIndex.map((function(e,t){return[e,u.FullPaths[t]]})).forEach((function(e){var t=e[0],n=e[1];2==t.type&&t.name.match(/\.iwa/)&&Pp(Tp(t.content)).forEach((function(e){l.push(e.id),a[e.id]={deps:[],location:n,type:Cp(e.messages[0].meta[1][0].data)}}))})),l.sort((function(e,t){return e-t}));var c=l.filter((function(e){return e>1})).map((function(e){return[e,bp(e)]}));u.FileIndex.map((function(e,t){return[e,u.FullPaths[t]]})).forEach((function(e){var t=e[0];e[1],t.name.match(/\.iwa/)&&Pp(Tp(t.content)).forEach((function(e){e.messages.forEach((function(t){c.forEach((function(t){e.messages.some((function(e){return 11006!=Cp(e.meta[1][0].data)&&function(e,t){e:for(var n=0;n<=e.length-t.length;++n){for(var r=0;r<t.length;++r)if(e[n+r]!=t[r])continue e;return!0}return!1}(e.data,t[1])}))&&a[t[0]].deps.push(e.id)}))}))}))}));for(var p,d=Mi.find(u,a[1].location),h=Pp(Tp(d.content)),f=0;f<h.length;++f){var m=h[f];1==m.id&&(p=m)}var g=Rp(wp(p.messages[0].data)[1][0].data);for(h=Pp(Tp((d=Mi.find(u,a[g].location)).content)),f=0;f<h.length;++f)(m=h[f]).id==g&&(p=m);for(g=Rp(wp(p.messages[0].data)[2][0].data),h=Pp(Tp((d=Mi.find(u,a[g].location)).content)),f=0;f<h.length;++f)(m=h[f]).id==g&&(p=m);for(g=Rp(wp(p.messages[0].data)[2][0].data),h=Pp(Tp((d=Mi.find(u,a[g].location)).content)),f=0;f<h.length;++f)(m=h[f]).id==g&&(p=m);var y=wp(p.messages[0].data);y[6][0].data=bp(r.e.r+1),y[7][0].data=bp(r.e.c+1);for(var v=Rp(y[46][0].data),b=Mi.find(u,a[v].location),C=Pp(Tp(b.content)),w=0;w<C.length&&C[w].id!=v;++w);if(C[w].id!=v)throw"Bad ColumnRowUIDMapArchive";var x=wp(C[w].messages[0].data);x[1]=[],x[2]=[],x[3]=[];for(var P=0;P<=r.e.c;++P){var S=[];S[1]=S[2]=[{type:0,data:bp(P+420690)}],x[1].push({type:2,data:xp(S)}),x[2].push({type:0,data:bp(P)}),x[3].push({type:0,data:bp(P)})}x[4]=[],x[5]=[],x[6]=[];for(var E=0;E<=r.e.r;++E)(S=[])[1]=S[2]=[{type:0,data:bp(E+726270)}],x[4].push({type:2,data:xp(S)}),x[5].push({type:0,data:bp(E)}),x[6].push({type:0,data:bp(E)});C[w].messages[0].data=xp(x),b.content=Op(Sp(C)),b.size=b.content.length,delete y[46];var T=wp(y[4][0].data);T[7][0].data=bp(r.e.r+1);var O=Rp(wp(T[1][0].data)[2][0].data);if((C=Pp(Tp((b=Mi.find(u,a[O].location)).content)))[0].id!=O)throw"Bad HeaderStorageBucket";var V=wp(C[0].messages[0].data);for(E=0;E<i.length;++E){var _=wp(V[2][0].data);_[1][0].data=bp(E),_[4][0].data=bp(i[E].length),V[2][E]={type:V[2][0].type,data:xp(_)}}C[0].messages[0].data=xp(V),b.content=Op(Sp(C)),b.size=b.content.length;var R=Rp(T[2][0].data);if((C=Pp(Tp((b=Mi.find(u,a[R].location)).content)))[0].id!=R)throw"Bad HeaderStorageBucket";for(V=wp(C[0].messages[0].data),P=0;P<=r.e.c;++P)(_=wp(V[2][0].data))[1][0].data=bp(P),_[4][0].data=bp(r.e.r+1),V[2][P]={type:V[2][0].type,data:xp(_)};C[0].messages[0].data=xp(V),b.content=Op(Sp(C)),b.size=b.content.length;var I=Rp(T[4][0].data);!function(){for(var e,t=Mi.find(u,a[I].location),n=Pp(Tp(t.content)),r=0;r<n.length;++r){var o=n[r];o.id==I&&(e=o)}var i=wp(e.messages[0].data);i[3]=[];var l=[];s.forEach((function(e,t){l[1]=[{type:0,data:bp(t)}],l[2]=[{type:0,data:bp(1)}],l[3]=[{type:2,data:gp(e)}],i[3].push({type:2,data:xp(l)})})),e.messages[0].data=xp(i);var c=Op(Sp(n));t.content=c,t.size=t.content.length}();var D=wp(T[3][0].data),A=D[1][0];delete D[2];var k=wp(A.data),M=Rp(k[2][0].data);!function(){for(var e,t=Mi.find(u,a[M].location),n=Pp(Tp(t.content)),o=0;o<n.length;++o){var l=n[o];l.id==M&&(e=l)}var c=wp(e.messages[0].data);delete c[6],delete D[7];var p=new Uint8Array(c[5][0].data);c[5]=[];for(var d=0,h=0;h<=r.e.r;++h){var f=wp(p);d+=Ip(f,i[h],s),f[1][0].data=bp(h),c[5].push({data:xp(f),type:2})}c[1]=[{type:0,data:bp(r.e.c+1)}],c[2]=[{type:0,data:bp(r.e.r+1)}],c[3]=[{type:0,data:bp(d)}],c[4]=[{type:0,data:bp(r.e.r+1)}],e.messages[0].data=xp(c);var m=Op(Sp(n));t.content=m,t.size=t.content.length}(),A.data=xp(k),T[3][0].data=xp(D),y[4][0].data=xp(T),p.messages[0].data=xp(y);var N=Op(Sp(h));return d.content=N,d.size=d.content.length,u}(e,t):"xlsb"==t.bookType?function(e,t){Vu=1024,e&&!e.SSF&&(e.SSF=es(Zo)),e&&e.SSF&&(Di(),Ii(e.SSF),t.revssf=Qi(e.SSF),t.revssf[e.SSF[65535]]=0,t.ssf=e.SSF),t.rels={},t.wbrels={},t.Strings=[],t.Strings.Count=0,t.Strings.Unique=0,bc?t.revStrings=new Map:(t.revStrings={},t.revStrings.foo=[],delete t.revStrings.foo);var n="xlsb"==t.bookType?"bin":"xml",r=ku.indexOf(t.bookType)>-1,o={workbooks:[],sheets:[],charts:[],dialogs:[],macros:[],rels:[],strs:[],comments:[],threadedcomments:[],links:[],coreprops:[],extprops:[],custprops:[],themes:[],styles:[],calcchains:[],vba:[],drawings:[],metadata:[],people:[],TODO:[],xmlns:""};Dp(t=t||{});var i=ss(),s="",a=0;if(t.cellXfs=[],Pc(t.cellXfs,{},{revssf:{General:0}}),e.Props||(e.Props={}),is(i,s="docProps/core.xml",vl(e.Props,t)),o.coreprops.push(s),hl(t.rels,2,s,cl.CORE_PROPS),s="docProps/app.xml",e.Props&&e.Props.SheetNames);else if(e.Workbook&&e.Workbook.Sheets){for(var l=[],u=0;u<e.SheetNames.length;++u)2!=(e.Workbook.Sheets[u]||{}).Hidden&&l.push(e.SheetNames[u]);e.Props.SheetNames=l}else e.Props.SheetNames=e.SheetNames;for(e.Props.Worksheets=e.Props.SheetNames.length,is(i,s,wl(e.Props)),o.extprops.push(s),hl(t.rels,3,s,cl.EXT_PROPS),e.Custprops!==e.Props&&qi(e.Custprops||{}).length>0&&(is(i,s="docProps/custom.xml",xl(e.Custprops)),o.custprops.push(s),hl(t.rels,4,s,cl.CUST_PROPS)),a=1;a<=e.SheetNames.length;++a){var c={"!id":{}},p=e.Sheets[e.SheetNames[a-1]];if((p||{})["!type"],is(i,s="xl/worksheets/sheet"+a+"."+n,Hc(a-1,s,t,e,c)),o.sheets.push(s),hl(t.wbrels,-1,"worksheets/sheet"+a+"."+n,cl.WS[0]),p){var d=p["!comments"],h=!1,f="";d&&d.length>0&&(is(i,f="xl/comments"+a+"."+n,zc(d,f,t)),o.comments.push(f),hl(c,-1,"../comments"+a+"."+n,cl.CMNT),h=!0),p["!legacy"]&&h&&is(i,"xl/drawings/vmlDrawing"+a+".vml",_u(a,p["!comments"])),delete p["!comments"],delete p["!legacy"]}c["!id"].rId1&&is(i,pl(s),dl(c))}return null!=t.Strings&&t.Strings.length>0&&(is(i,s="xl/sharedStrings."+n,function(e,t,n){return(".bin"===t.slice(-4)?ru:tu)(e,n)}(t.Strings,s,t)),o.strs.push(s),hl(t.wbrels,-1,"sharedStrings."+n,cl.SST)),is(i,s="xl/workbook."+n,function(e,t,n){return(".bin"===t.slice(-4)?Qc:Fc)(e,n)}(e,s,t)),o.workbooks.push(s),hl(t.rels,1,s,cl.WB),is(i,s="xl/theme/theme1.xml",Eu(e.Themes,t)),o.themes.push(s),hl(t.wbrels,-1,"theme/theme1.xml",cl.THEME),is(i,s="xl/styles."+n,function(e,t,n){return(".bin"===t.slice(-4)?Su:mu)(e,n)}(e,s,t)),o.styles.push(s),hl(t.wbrels,-1,"styles."+n,cl.STY),e.vbaraw&&r&&(is(i,s="xl/vbaProject.bin",e.vbaraw),o.vba.push(s),hl(t.wbrels,-1,"vbaProject.bin",cl.VBA)),is(i,s="xl/metadata."+n,(".bin"===s.slice(-4)?Tu:Ou)()),o.metadata.push(s),hl(t.wbrels,-1,"metadata."+n,cl.XLMETA),is(i,"[Content_Types].xml",ul(o,t)),is(i,"_rels/.rels",dl(t.rels)),is(i,"xl/_rels/workbook."+n+".rels",dl(t.wbrels)),delete t.revssf,delete t.ssf,i}(e,t):function(e,t){Vu=1024,e&&!e.SSF&&(e.SSF=es(Zo)),e&&e.SSF&&(Di(),Ii(e.SSF),t.revssf=Qi(e.SSF),t.revssf[e.SSF[65535]]=0,t.ssf=e.SSF),t.rels={},t.wbrels={},t.Strings=[],t.Strings.Count=0,t.Strings.Unique=0,bc?t.revStrings=new Map:(t.revStrings={},t.revStrings.foo=[],delete t.revStrings.foo);var n="xml",r=ku.indexOf(t.bookType)>-1,o={workbooks:[],sheets:[],charts:[],dialogs:[],macros:[],rels:[],strs:[],comments:[],threadedcomments:[],links:[],coreprops:[],extprops:[],custprops:[],themes:[],styles:[],calcchains:[],vba:[],drawings:[],metadata:[],people:[],TODO:[],xmlns:""};Dp(t=t||{});var i=ss(),s="",a=0;if(t.cellXfs=[],Pc(t.cellXfs,{},{revssf:{General:0}}),e.Props||(e.Props={}),is(i,s="docProps/core.xml",vl(e.Props,t)),o.coreprops.push(s),hl(t.rels,2,s,cl.CORE_PROPS),s="docProps/app.xml",e.Props&&e.Props.SheetNames);else if(e.Workbook&&e.Workbook.Sheets){for(var l=[],u=0;u<e.SheetNames.length;++u)2!=(e.Workbook.Sheets[u]||{}).Hidden&&l.push(e.SheetNames[u]);e.Props.SheetNames=l}else e.Props.SheetNames=e.SheetNames;e.Props.Worksheets=e.Props.SheetNames.length,is(i,s,wl(e.Props)),o.extprops.push(s),hl(t.rels,3,s,cl.EXT_PROPS),e.Custprops!==e.Props&&qi(e.Custprops||{}).length>0&&(is(i,s="docProps/custom.xml",xl(e.Custprops)),o.custprops.push(s),hl(t.rels,4,s,cl.CUST_PROPS));var c=["SheetJ5"];for(t.tcid=0,a=1;a<=e.SheetNames.length;++a){var p={"!id":{}},d=e.Sheets[e.SheetNames[a-1]];if((d||{})["!type"],is(i,s="xl/worksheets/sheet"+a+"."+n,Vc(a-1,t,e,p)),o.sheets.push(s),hl(t.wbrels,-1,"worksheets/sheet"+a+"."+n,cl.WS[0]),d){var h=d["!comments"],f=!1,m="";if(h&&h.length>0){var g=!1;h.forEach((function(e){e[1].forEach((function(e){1==e.T&&(g=!0)}))})),g&&(is(i,m="xl/threadedComments/threadedComment"+a+"."+n,Iu(h,c,t)),o.threadedcomments.push(m),hl(p,-1,"../threadedComments/threadedComment"+a+"."+n,cl.TCMNT)),is(i,m="xl/comments"+a+"."+n,Ru(h)),o.comments.push(m),hl(p,-1,"../comments"+a+"."+n,cl.CMNT),f=!0}d["!legacy"]&&f&&is(i,"xl/drawings/vmlDrawing"+a+".vml",_u(a,d["!comments"])),delete d["!comments"],delete d["!legacy"]}p["!id"].rId1&&is(i,pl(s),dl(p))}return null!=t.Strings&&t.Strings.length>0&&(is(i,s="xl/sharedStrings."+n,tu(t.Strings,t)),o.strs.push(s),hl(t.wbrels,-1,"sharedStrings."+n,cl.SST)),is(i,s="xl/workbook."+n,Fc(e)),o.workbooks.push(s),hl(t.rels,1,s,cl.WB),is(i,s="xl/theme/theme1.xml",Eu(e.Themes,t)),o.themes.push(s),hl(t.wbrels,-1,"theme/theme1.xml",cl.THEME),is(i,s="xl/styles."+n,mu(e,t)),o.styles.push(s),hl(t.wbrels,-1,"styles."+n,cl.STY),e.vbaraw&&r&&(is(i,s="xl/vbaProject.bin",e.vbaraw),o.vba.push(s),hl(t.wbrels,-1,"vbaProject.bin",cl.VBA)),is(i,s="xl/metadata."+n,Ou()),o.metadata.push(s),hl(t.wbrels,-1,"metadata."+n,cl.XLMETA),c.length>1&&(is(i,s="xl/persons/person.xml",function(e){var t=[as,Ss("personList",null,{xmlns:Ts.TCMNT,"xmlns:x":Os[0]}).replace(/[\/]>/,">")];return e.forEach((function(e,n){t.push(Ss("person",null,{displayName:e,id:"{54EE7950-7262-4200-6969-"+("000000000000"+n).slice(-12)+"}",userId:e,providerId:"None"}))})),t.push("</personList>"),t.join("")}(c)),o.people.push(s),hl(t.wbrels,-1,"persons/person.xml",cl.PEOPLE)),is(i,"[Content_Types].xml",ul(o,t)),is(i,"_rels/.rels",dl(t.rels)),is(i,"xl/_rels/workbook.xml.rels",dl(t.wbrels)),delete t.revssf,delete t.ssf,i}(e,t)}function kp(e,t){switch(t.type){case"base64":case"binary":break;case"buffer":case"array":t.type="";break;case"file":return ji(t.file,Mi.write(e,{type:ko?"buffer":""}));case"string":throw new Error("'string' output type invalid for '"+t.bookType+"' files");default:throw new Error("Unrecognized type "+t.type)}return Mi.write(e,t)}function Mp(e,t,n){n||(n="");var r=n+e;switch(t.type){case"base64":return Do(bs(r));case"binary":return bs(r);case"string":return e;case"file":return ji(t.file,r,"utf8");case"buffer":return ko?Mo(r,"utf8"):"undefined"!=typeof TextEncoder?(new TextEncoder).encode(r):Mp(r,{type:"binary"}).split("").map((function(e){return e.charCodeAt(0)}))}throw new Error("Unrecognized type "+t.type)}function Np(e,t){switch(t.type){case"string":case"base64":case"binary":for(var n="",r=0;r<e.length;++r)n+=String.fromCharCode(e[r]);return"base64"==t.type?Do(n):"string"==t.type?vs(n):n;case"file":return ji(t.file,e);case"buffer":return e;default:throw new Error("Unrecognized type "+t.type)}}function Lp(e,t){To(1200),Eo(1252),function(e){if(!e||!e.SheetNames||!e.Sheets)throw new Error("Invalid Workbook");if(!e.SheetNames.length)throw new Error("Workbook is empty");var t=e.Workbook&&e.Workbook.Sheets||[];!function(e,t,n){e.forEach((function(r,o){qc(r);for(var i=0;i<o;++i)if(r==e[i])throw new Error("Duplicate Sheet Name: "+r);if(n){var s=t&&t[o]&&t[o].CodeName||r;if(95==s.charCodeAt(0)&&s.length>22)throw new Error("Bad Code Name: Worksheet"+s)}}))}(e.SheetNames,t,!!e.vbaraw);for(var n=0;n<e.SheetNames.length;++n)Sc(e.Sheets[e.SheetNames[n]],e.SheetNames[n],n)}(e);var n=es(t||{});if(n.cellStyles&&(n.cellNF=!0,n.sheetStubs=!0),"array"==n.type){n.type="binary";var r=Lp(e,n);return n.type="array",qo(r)}var o=0;if(n.sheet&&(o="number"==typeof n.sheet?n.sheet:e.SheetNames.indexOf(n.sheet),!e.SheetNames[o]))throw new Error("Sheet not found: "+n.sheet+" : "+typeof n.sheet);switch(n.bookType||"xlsb"){case"xml":case"xlml":return Mp(Jc(e,n),n);case"slk":case"sylk":return Mp(Jl.from_sheet(e.Sheets[e.SheetNames[o]],n),n);case"htm":case"html":return Mp(lp(e.Sheets[e.SheetNames[o]],n),n);case"txt":return function(e,t){switch(t.type){case"base64":return Do(e);case"binary":case"string":return e;case"file":return ji(t.file,e,"binary");case"buffer":return ko?Mo(e,"binary"):e.split("").map((function(e){return e.charCodeAt(0)}))}throw new Error("Unrecognized type "+t.type)}(Hp(e.Sheets[e.SheetNames[o]],n),n);case"csv":return Mp(Qp(e.Sheets[e.SheetNames[o]],n),n,"\ufeff");case"dif":return Mp(Kl.from_sheet(e.Sheets[e.SheetNames[o]],n),n);case"dbf":return Np($l.from_sheet(e.Sheets[e.SheetNames[o]],n),n);case"prn":return Mp(Xl.from_sheet(e.Sheets[e.SheetNames[o]],n),n);case"rtf":return Mp(iu.from_sheet(e.Sheets[e.SheetNames[o]],n),n);case"eth":return Mp(Yl.from_sheet(e.Sheets[e.SheetNames[o]],n),n);case"fods":return Mp(fp(e,n),n);case"wk1":return Np(Zl.sheet_to_wk1(e.Sheets[e.SheetNames[o]],n),n);case"wk3":return Np(Zl.book_to_wk3(e,n),n);case"biff2":n.biff||(n.biff=2);case"biff3":n.biff||(n.biff=3);case"biff4":return n.biff||(n.biff=4),Np(op(e,n),n);case"biff5":n.biff||(n.biff=5);case"biff8":case"xla":case"xls":return n.biff||(n.biff=8),function(e,t){var n=t||{};return kp(function(e,t){var n=t||{},r=Mi.utils.cfb_new({root:"R"}),o="/Workbook";switch(n.bookType||"xls"){case"xls":n.bookType="biff8";case"xla":n.bookType||(n.bookType="xla");case"biff8":o="/Workbook",n.biff=8;break;case"biff5":o="/Book",n.biff=5;break;default:throw new Error("invalid type "+n.bookType+" for XLS CFB")}return Mi.utils.cfb_add(r,o,op(e,n)),8==n.biff&&(e.Props||e.Custprops)&&function(e,t){var n,r=[],o=[],i=[],s=0,a=Fi(nl,"n"),l=Fi(rl,"n");if(e.Props)for(n=qi(e.Props),s=0;s<n.length;++s)(Object.prototype.hasOwnProperty.call(a,n[s])?r:Object.prototype.hasOwnProperty.call(l,n[s])?o:i).push([n[s],e.Props[n[s]]]);if(e.Custprops)for(n=qi(e.Custprops),s=0;s<n.length;++s)Object.prototype.hasOwnProperty.call(e.Props||{},n[s])||(Object.prototype.hasOwnProperty.call(a,n[s])?r:Object.prototype.hasOwnProperty.call(l,n[s])?o:i).push([n[s],e.Custprops[n[s]]]);var u=[];for(s=0;s<i.length;++s)El.indexOf(i[s][0])>-1||Cl.indexOf(i[s][0])>-1||null!=i[s][1]&&u.push(i[s]);o.length&&Mi.utils.cfb_add(t,"/SummaryInformation",Vl(o,Kc.SI,l,rl)),(r.length||u.length)&&Mi.utils.cfb_add(t,"/DocumentSummaryInformation",Vl(r,Kc.DSI,a,nl,u.length?u:null,Kc.UDI))}(e,r),8==n.biff&&e.vbaraw&&function(e,t){t.FullPaths.forEach((function(n,r){if(0!=r){var o=n.replace(/[^\/]*[\/]/,"/_VBA_PROJECT_CUR/");"/"!==o.slice(-1)&&Mi.utils.cfb_add(e,o,t.FileIndex[r].content)}}))}(r,Mi.read(e.vbaraw,{type:"string"==typeof e.vbaraw?"binary":"buffer"})),r}(e,n),n)}(e,n);case"xlsx":case"xlsm":case"xlam":case"xlsb":case"numbers":case"ods":return function(e,t){var n=es(t||{});return function(e,t){var n={},r=ko?"nodebuffer":"undefined"!=typeof Uint8Array?"array":"string";if(t.compression&&(n.compression="DEFLATE"),t.password)n.type=r;else switch(t.type){case"base64":n.type="base64";break;case"binary":n.type="string";break;case"string":throw new Error("'string' output type invalid for '"+t.bookType+"' files");case"buffer":case"file":n.type=r;break;default:throw new Error("Unrecognized type "+t.type)}var o=e.FullPaths?Mi.write(e,{fileType:"zip",type:{nodebuffer:"buffer",string:"binary"}[n.type]||n.type,compression:!!t.compression}):e.generate(n);if("undefined"!=typeof Deno&&"string"==typeof o){if("binary"==t.type||"base64"==t.type)return o;o=new Uint8Array(qo(o))}return t.password&&"undefined"!=typeof encrypt_agile?kp(encrypt_agile(o,t.password),t):"file"===t.type?ji(t.file,o):"string"==t.type?vs(o):o}(Ap(e,n),n)}(e,n);default:throw new Error("Unrecognized bookType |"+n.bookType+"|")}}function jp(e,t,n,r,o,i,s,a){var l=va(n),u=a.defval,c=a.raw||!Object.prototype.hasOwnProperty.call(a,"raw"),p=!0,d=1===o?[]:{};if(1!==o)if(Object.defineProperty)try{Object.defineProperty(d,"__rowNum__",{value:n,enumerable:!1})}catch(e){d.__rowNum__=n}else d.__rowNum__=n;if(!s||e[n])for(var h=t.s.c;h<=t.e.c;++h){var f=s?e[n][h]:e[r[h]+l];if(void 0!==f&&void 0!==f.t){var m=f.v;switch(f.t){case"z":if(null==m)break;continue;case"e":m=0==m?null:void 0;break;case"s":case"d":case"b":case"n":break;default:throw new Error("unrecognized type "+f.t)}if(null!=i[h]){if(null==m)if("e"==f.t&&null===m)d[i[h]]=null;else if(void 0!==u)d[i[h]]=u;else{if(!c||null!==m)continue;d[i[h]]=null}else d[i[h]]=c&&("n"!==f.t||"n"===f.t&&!1!==a.rawNumbers)?m:Ta(f,m,a);null!=m&&(p=!1)}}else{if(void 0===u)continue;null!=i[h]&&(d[i[h]]=u)}}return{row:d,isempty:p}}function qp(e,t){if(null==e||null==e["!ref"])return[];var n={t:"n",v:0},r=0,o=1,i=[],s=0,a="",l={s:{r:0,c:0},e:{r:0,c:0}},u=t||{},c=null!=u.range?u.range:e["!ref"];switch(1===u.header?r=1:"A"===u.header?r=2:Array.isArray(u.header)?r=3:null==u.header&&(r=0),typeof c){case"string":l=Ea(c);break;case"number":(l=Ea(e["!ref"])).s.r=c;break;default:l=c}r>0&&(o=0);var p=va(l.s.r),d=[],h=[],f=0,m=0,g=Array.isArray(e),y=l.s.r,v=0,b={};g&&!e[y]&&(e[y]=[]);var C=u.skipHidden&&e["!cols"]||[],w=u.skipHidden&&e["!rows"]||[];for(v=l.s.c;v<=l.e.c;++v)if(!(C[v]||{}).hidden)switch(d[v]=Ca(v),n=g?e[y][v]:e[d[v]+p],r){case 1:i[v]=v-l.s.c;break;case 2:i[v]=d[v];break;case 3:i[v]=u.header[v-l.s.c];break;default:if(null==n&&(n={w:"__EMPTY",t:"s"}),a=s=Ta(n,null,u),m=b[s]||0){do{a=s+"_"+m++}while(b[a]);b[s]=m,b[a]=1}else b[s]=1;i[v]=a}for(y=l.s.r+o;y<=l.e.r;++y)if(!(w[y]||{}).hidden){var x=jp(e,l,y,d,r,i,g,u);(!1===x.isempty||(1===r?!1!==u.blankrows:u.blankrows))&&(h[f++]=x.row)}return h.length=f,h}var Fp=/"/g;function Bp(e,t,n,r,o,i,s,a){for(var l=!0,u=[],c="",p=va(n),d=t.s.c;d<=t.e.c;++d)if(r[d]){var h=a.dense?(e[n]||[])[d]:e[r[d]+p];if(null==h)c="";else if(null!=h.v){l=!1,c=""+(a.rawNumbers&&"n"==h.t?h.v:Ta(h,null,a));for(var f=0,m=0;f!==c.length;++f)if((m=c.charCodeAt(f))===o||m===i||34===m||a.forceQuotes){c='"'+c.replace(Fp,'""')+'"';break}"ID"==c&&(c='"ID"')}else null==h.f||h.F?c="":(l=!1,(c="="+h.f).indexOf(",")>=0&&(c='"'+c.replace(Fp,'""')+'"'));u.push(c)}return!1===a.blankrows&&l?null:u.join(s)}function Qp(e,t){var n=[],r=null==t?{}:t;if(null==e||null==e["!ref"])return"";var o=Ea(e["!ref"]),i=void 0!==r.FS?r.FS:",",s=i.charCodeAt(0),a=void 0!==r.RS?r.RS:"\n",l=a.charCodeAt(0),u=new RegExp(("|"==i?"\\|":i)+"+$"),c="",p=[];r.dense=Array.isArray(e);for(var d=r.skipHidden&&e["!cols"]||[],h=r.skipHidden&&e["!rows"]||[],f=o.s.c;f<=o.e.c;++f)(d[f]||{}).hidden||(p[f]=Ca(f));for(var m=0,g=o.s.r;g<=o.e.r;++g)(h[g]||{}).hidden||null!=(c=Bp(e,o,g,p,s,l,i,r))&&(r.strip&&(c=c.replace(u,"")),(c||!1!==r.blankrows)&&n.push((m++?a:"")+c));return delete r.dense,n.join("")}function Hp(e,t){t||(t={}),t.FS="\t",t.RS="\n";var n=Qp(e,t);if(void 0===Oo||"string"==t.type)return n;var r=Oo.utils.encode(1200,n,"str");return String.fromCharCode(255)+String.fromCharCode(254)+r}function zp(e,t,n){var r,o=n||{},i=+!o.skipHeader,s=e||{},a=0,l=0;if(s&&null!=o.origin)if("number"==typeof o.origin)a=o.origin;else{var u="string"==typeof o.origin?wa(o.origin):o.origin;a=u.r,l=u.c}var c={s:{c:0,r:0},e:{c:l,r:a+t.length-1+i}};if(s["!ref"]){var p=Ea(s["!ref"]);c.e.c=Math.max(c.e.c,p.e.c),c.e.r=Math.max(c.e.r,p.e.r),-1==a&&(a=p.e.r+1,c.e.r=a+t.length-1+i)}else-1==a&&(a=0,c.e.r=t.length-1+i);var d=o.header||[],h=0;t.forEach((function(e,t){qi(e).forEach((function(n){-1==(h=d.indexOf(n))&&(d[h=d.length]=n);var u=e[n],c="z",p="",f=xa({c:l+h,r:a+t+i});r=Up(s,f),!u||"object"!=typeof u||u instanceof Date?("number"==typeof u?c="n":"boolean"==typeof u?c="b":"string"==typeof u?c="s":u instanceof Date?(c="d",o.cellDates||(c="n",u=zi(u)),p=o.dateNF||Zo[14]):null===u&&o.nullError&&(c="e",u=0),r?(r.t=c,r.v=u,delete r.w,delete r.R,p&&(r.z=p)):s[f]=r={t:c,v:u},p&&(r.z=p)):s[f]=u}))})),c.e.c=Math.max(c.e.c,l+d.length-1);var f=va(a);if(i)for(h=0;h<d.length;++h)s[Ca(h+l)+f]={t:"s",v:d[h]};return s["!ref"]=Sa(c),s}function Up(e,t,n){if("string"==typeof t){if(Array.isArray(e)){var r=wa(t);return e[r.r]||(e[r.r]=[]),e[r.r][r.c]||(e[r.r][r.c]={t:"z"})}return e[t]||(e[t]={t:"z"})}return Up(e,xa("number"!=typeof t?t:{r:t,c:n||0}))}function Wp(e,t,n){return t?(e.l={Target:t},n&&(e.l.Tooltip=n)):delete e.l,e}var Gp={encode_col:Ca,encode_row:va,encode_cell:xa,encode_range:Sa,decode_col:ba,decode_row:ya,split_cell:function(e){return e.replace(/(\$?[A-Z]*)(\$?\d*)/,"$1,$2").split(",")},decode_cell:wa,decode_range:Pa,format_cell:Ta,sheet_add_aoa:Va,sheet_add_json:zp,sheet_add_dom:up,aoa_to_sheet:_a,json_to_sheet:function(e,t){return zp(null,e,t)},table_to_sheet:cp,table_to_book:function(e,t){return Oa(cp(e,t),t)},sheet_to_csv:Qp,sheet_to_txt:Hp,sheet_to_json:qp,sheet_to_html:lp,sheet_to_formulae:function(e){var t,n="",r="";if(null==e||null==e["!ref"])return[];var o,i=Ea(e["!ref"]),s="",a=[],l=[],u=Array.isArray(e);for(o=i.s.c;o<=i.e.c;++o)a[o]=Ca(o);for(var c=i.s.r;c<=i.e.r;++c)for(s=va(c),o=i.s.c;o<=i.e.c;++o)if(n=a[o]+s,r="",void 0!==(t=u?(e[c]||[])[o]:e[n])){if(null!=t.F){if(n=t.F,!t.f)continue;r=t.f,-1==n.indexOf(":")&&(n=n+":"+n)}if(null!=t.f)r=t.f;else{if("z"==t.t)continue;if("n"==t.t&&null!=t.v)r=""+t.v;else if("b"==t.t)r=t.v?"TRUE":"FALSE";else if(void 0!==t.w)r="'"+t.w;else{if(void 0===t.v)continue;r="s"==t.t?"'"+t.v:""+t.v}}l[l.length]=n+"="+r}return l},sheet_to_row_object_array:qp,sheet_get_cell:Up,book_new:function(){return{SheetNames:[],Sheets:{}}},book_append_sheet:function(e,t,n,r){var o=1;if(!n)for(;o<=65535&&-1!=e.SheetNames.indexOf(n="Sheet"+o);++o,n=void 0);if(!n||e.SheetNames.length>=65535)throw new Error("Too many worksheets");if(r&&e.SheetNames.indexOf(n)>=0){var i=n.match(/(^.*?)(\d+)$/);o=i&&+i[2]||0;var s=i&&i[1]||n;for(++o;o<=65535&&-1!=e.SheetNames.indexOf(n=s+o);++o);}if(qc(n),e.SheetNames.indexOf(n)>=0)throw new Error("Worksheet with name |"+n+"| already exists!");return e.SheetNames.push(n),e.Sheets[n]=t,n},book_set_sheet_visibility:function(e,t,n){e.Workbook||(e.Workbook={}),e.Workbook.Sheets||(e.Workbook.Sheets=[]);var r=function(e,t){if("number"==typeof t){if(t>=0&&e.SheetNames.length>t)return t;throw new Error("Cannot find sheet # "+t)}if("string"==typeof t){var n=e.SheetNames.indexOf(t);if(n>-1)return n;throw new Error("Cannot find sheet name |"+t+"|")}throw new Error("Cannot find sheet |"+t+"|")}(e,t);switch(e.Workbook.Sheets[r]||(e.Workbook.Sheets[r]={}),n){case 0:case 1:case 2:break;default:throw new Error("Bad sheet visibility setting "+n)}e.Workbook.Sheets[r].Hidden=n},cell_set_number_format:function(e,t){return e.z=t,e},cell_set_hyperlink:Wp,cell_set_internal_link:function(e,t,n){return Wp(e,"#"+t,n)},cell_add_comment:function(e,t,n){e.c||(e.c=[]),e.c.push({t,a:n||"SheetJS"})},sheet_set_array_formula:function(e,t,n,r){for(var o="string"!=typeof t?t:Ea(t),i="string"==typeof t?t:Sa(t),s=o.s.r;s<=o.e.r;++s)for(var a=o.s.c;a<=o.e.c;++a){var l=Up(e,s,a);l.t="n",l.F=i,delete l.v,s==o.s.r&&a==o.s.c&&(l.f=n,r&&(l.D=!0))}return e},consts:{SHEET_VISIBLE:0,SHEET_HIDDEN:1,SHEET_VERY_HIDDEN:2}};Co.version;const $p=function(){var e=(0,t.useContext)(Wr).user,n=ke(),r=!!e.id,o=!!r&&!!e.nrens.length,i=o?e.nrens[0]:"",s=!!r&&e.permissions.admin,a=!!r&&"observer"===e.role,l=ut((0,t.useState)(null),2),u=l[0],c=l[1];(0,t.useEffect)((function(){var e=function(){var e=st(pt().mark((function e(){var t;return pt().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Ir();case 2:t=e.sent,c(t);case 4:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}();e()}),[]);var p=function(){var e=ut((0,t.useState)(),2),n=e[0],r=e[1];return(0,t.useEffect)((function(){_r().then((function(e){r(e[0])}))}),[]),t.createElement(Tn,{striped:!0,bordered:!0,responsive:!0},t.createElement("thead",null,t.createElement("tr",null,t.createElement("th",null,"(N)REN"),t.createElement("th",null,"Link"),t.createElement("th",null,"Survey Status"))),t.createElement("tbody",null,n&&n.responses.map((function(e){return t.createElement("tr",{key:e.nren},t.createElement("td",null,e.nren),t.createElement("td",null,t.createElement(nt,{to:"/survey/response/".concat(n.year,"/").concat(e.nren)},t.createElement("span",null,"Navigate to survey"))),t.createElement("td",null,e.status))}))))};return t.createElement(Br,{className:"py-5 grey-container"},t.createElement(Hr,null,t.createElement("div",{className:"center-text"},t.createElement("h1",{className:"geant-header"},"THE GÉANT COMPENDIUM OF NRENS SURVEY"),t.createElement("div",{className:"wordwrap pt-4",style:{maxWidth:"75rem"}},t.createElement("p",{style:{textAlign:"left"}},"Hello,",t.createElement("br",null),"Welcome to the GÉANT Compendium Survey. (N)REN Compendium administrators can login via Single Sign On (SSO) ",t.createElement("a",{href:"/login"},"here"),", which will complete their registration to fill in the 2023 Compendium survey. This will send a notification to the Compendium administration team and they will assign you to your (N)REN.",t.createElement("br",null),"Once this step has been completed, you will receive an email from the administration team. We aim to get back to you the same working day, but sometimes may take a little longer.",t.createElement("br",null),"If you are not sure whether you are a Compendium Administrator for your (N)REN, please contact your GÉANT Partner Relations relationship manager.",t.createElement("br",null),"Thank you."),t.createElement("span",null,"Current registration status:"),t.createElement("br",null),t.createElement("br",null),s?t.createElement("ul",null,t.createElement("li",null,t.createElement("span",null,"You are logged in as a Compendium Administrator")),t.createElement("li",null,t.createElement("span",null,"Click ",t.createElement(nt,{to:"/survey/admin/surveys"},"here")," to access the survey management page.")),t.createElement("li",null,t.createElement("span",null,"Click ",t.createElement(nt,{to:"/survey/admin/users"},"here")," to access the user management page.")),t.createElement("li",null,t.createElement("span",null,"Click ",t.createElement("a",{href:"#",onClick:function(){fetch("/api/data-download").then((function(e){if(!e.ok)throw new Error("Network response was not ok");return e.json()})).then((function(e){var t=function(e){var t=Gp.book_new();e.forEach((function(e){var n=Gp.json_to_sheet(e.data);Gp.book_append_sheet(t,n,e.name)}));for(var n=Lp(t,{bookType:"xlsx",type:"binary"}),r=new ArrayBuffer(n.length),o=new Uint8Array(r),i=0;i<n.length;i++)o[i]=255&n.charCodeAt(i);return new Blob([r],{type:"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet;charset=UTF-8"})}(e),n=document.createElement("a");n.href=URL.createObjectURL(t),n.download="data.xlsx",document.body.appendChild(n),n.click(),document.body.removeChild(n)})).catch((function(e){console.error("Error fetching data:",e)}))}},"here")," to do the full data download."))):t.createElement("ul",null,u&&!s&&!a&&o&&function(){try{return n("/survey/response/".concat(u,"/").concat(i)),t.createElement("li",null,"Redirecting to survey...")}catch(e){return console.error("Error navigating:",e),null}}(),r?t.createElement("li",null,t.createElement("span",null,"You are logged in")):t.createElement("li",null,t.createElement("span",null,"You are not logged in")),r&&!a&&!o&&t.createElement("li",null,t.createElement("span",null,"Your access to the survey has not yet been approved")),r&&!a&&!o&&t.createElement("li",null,t.createElement("span",null,"Once you have been approved, you will immediately be directed to the relevant survey upon visiting this page")),r&&a&&t.createElement("li",null,t.createElement("span",null,"You have read-only access to the following surveys:"))),r&&a&&t.createElement(p,null)))))};var Jp,Kp=(Jp=[{path:"survey/admin/surveys",element:t.createElement(Nr,null)},{path:"survey/admin/users",element:t.createElement(eo,null)},{path:"survey/admin/inspect/:year",element:t.createElement(yo,{loadFrom:"/api/response/inspect/"})},{path:"survey/admin/try/:year",element:t.createElement(yo,{loadFrom:"/api/response/try/"})},{path:"survey/response/:year/:nren",element:t.createElement(yo,{loadFrom:"/api/response/load/"})},{path:"*",element:t.createElement($p,null)}],function(t){let n;if(s(t.routes.length>0,"You must provide a non-empty routes array to createRouter"),t.mapRouteProperties)n=t.mapRouteProperties;else if(t.detectErrorBoundary){let e=t.detectErrorBoundary;n=t=>({hasErrorBoundary:e(t)})}else n=X;let r,i={},l=f(t.routes,n,void 0,i),c=t.basename||"/",p=o({v7_normalizeFormMethod:!1,v7_prependBasename:!1},t.future),h=null,g=new Set,y=null,v=null,b=null,C=null!=t.hydrationData,w=m(l,t.history.location,c),x=null;if(null==w){let e=de(404,{pathname:t.history.location.pathname}),{matches:n,route:r}=pe(l);w=n,x={[r.id]:e}}let P,S,E=!(w.some((e=>e.route.lazy))||w.some((e=>e.route.loader))&&null==t.hydrationData),T={historyAction:t.history.action,location:t.history.location,matches:w,initialized:E,navigation:U,restoreScrollPosition:null==t.hydrationData&&null,preventScrollReset:!1,revalidation:"idle",loaderData:t.hydrationData&&t.hydrationData.loaderData||{},actionData:t.hydrationData&&t.hydrationData.actionData||null,errors:t.hydrationData&&t.hydrationData.errors||x,fetchers:new Map,blockers:new Map},O=e.Pop,V=!1,R=!1,I=!1,D=[],A=[],k=new Map,M=0,N=-1,L=new Map,j=new Set,q=new Map,F=new Map,B=new Map,Q=!1;function H(e){T=o({},T,e),g.forEach((e=>e(T)))}function $(n,i){var s,a;let u,c=null!=T.actionData&&null!=T.navigation.formMethod&&ve(T.navigation.formMethod)&&"loading"===T.navigation.state&&!0!==(null==(s=n.state)?void 0:s._isRedirect);u=i.actionData?Object.keys(i.actionData).length>0?i.actionData:null:c?T.actionData:null;let p=i.loaderData?ue(T.loaderData,i.loaderData,i.matches||[],i.errors):T.loaderData;for(let[e]of B)_e(e);let d=!0===V||null!=T.navigation.formMethod&&ve(T.navigation.formMethod)&&!0!==(null==(a=n.state)?void 0:a._isRedirect);r&&(l=r,r=void 0),H(o({},i,{actionData:u,loaderData:p,historyAction:O,location:n,initialized:!0,navigation:U,revalidation:"idle",restoreScrollPosition:Ae(n,i.matches||T.matches),preventScrollReset:d,blockers:new Map(T.blockers)})),R||O===e.Pop||(O===e.Push?t.history.push(n,n.state):O===e.Replace&&t.history.replace(n,n.state)),O=e.Pop,V=!1,R=!1,I=!1,D=[],A=[]}async function ne(s,a,u){S&&S.abort(),S=null,O=s,R=!0===(u&&u.startUninterruptedRevalidation),function(e,t){if(y&&v&&b){let n=t.map((e=>xe(e,T.loaderData))),r=v(e,n)||e.key;y[r]=b()}}(T.location,T.matches),V=!0===(u&&u.preventScrollReset);let p=r||l,h=u&&u.overrideNavigation,f=m(p,a,c);if(!f){let e=de(404,{pathname:a.pathname}),{matches:t,route:n}=pe(p);return De(),void $(a,{matches:t,loaderData:{},errors:{[n.id]:e}})}if(T.initialized&&function(e,t){return e.pathname===t.pathname&&e.search===t.search&&(""===e.hash?""!==t.hash:e.hash===t.hash||""!==t.hash)}(T.location,a)&&!(u&&u.submission&&ve(u.submission.formMethod)))return void $(a,{matches:f});S=new AbortController;let g,C,w=se(t.history,a,S.signal,u&&u.submission);if(u&&u.pendingError)C={[ce(f).route.id]:u.pendingError};else if(u&&u.submission&&ve(u.submission.formMethod)){let t=await async function(t,r,s,a,l){let u;fe(),H({navigation:o({state:"submitting",location:r},s)});let p=Pe(a,r);if(p.route.action||p.route.lazy){if(u=await ie("action",t,p,a,i,n,c),t.signal.aborted)return{shortCircuited:!0}}else u={type:d.error,error:de(405,{method:t.method,pathname:r.pathname,routeId:p.route.id})};if(ye(u)){let e;return e=l&&null!=l.replace?l.replace:u.location===T.location.pathname+T.location.search,await oe(T,u,{submission:s,replace:e}),{shortCircuited:!0}}if(ge(u)){let t=ce(a,p.route.id);return!0!==(l&&l.replace)&&(O=e.Push),{pendingActionData:{},pendingActionError:{[t.route.id]:u.error}}}if(me(u))throw de(400,{type:"defer-action"});return{pendingActionData:{[p.route.id]:u.data}}}(w,a,u.submission,f,{replace:u.replace});if(t.shortCircuited)return;g=t.pendingActionData,C=t.pendingActionError,h=o({state:"loading",location:a},u.submission),w=new Request(w.url,{signal:w.signal})}let{shortCircuited:x,loaderData:P,errors:E}=await async function(e,n,i,s,a,u,p,d,h){let f=s;f||(f=o({state:"loading",location:n,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0},a));let m=a||u?a||u:f.formMethod&&f.formAction&&f.formData&&f.formEncType?{formMethod:f.formMethod,formAction:f.formAction,formData:f.formData,formEncType:f.formEncType}:void 0,g=r||l,[y,v]=te(t.history,T,i,m,n,I,D,A,q,g,c,d,h);if(De((e=>!(i&&i.some((t=>t.route.id===e)))||y&&y.some((t=>t.route.id===e)))),0===y.length&&0===v.length){let e=Oe();return $(n,o({matches:i,loaderData:{},errors:h||null},d?{actionData:d}:{},e?{fetchers:new Map(T.fetchers)}:{})),{shortCircuited:!0}}if(!R){v.forEach((e=>{let t=T.fetchers.get(e.key),n={state:"loading",data:t&&t.data,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0," _hasFetcherDoneAnything ":!0};T.fetchers.set(e.key,n)}));let e=d||T.actionData;H(o({navigation:f},e?0===Object.keys(e).length?{actionData:null}:{actionData:e}:{},v.length>0?{fetchers:new Map(T.fetchers)}:{}))}N=++M,v.forEach((e=>{e.controller&&k.set(e.key,e.controller)}));let b=()=>v.forEach((e=>Ee(e.key)));S&&S.signal.addEventListener("abort",b);let{results:C,loaderResults:w,fetcherResults:x}=await ae(T.matches,i,y,v,e);if(e.signal.aborted)return{shortCircuited:!0};S&&S.signal.removeEventListener("abort",b),v.forEach((e=>k.delete(e.key)));let P=he(C);if(P)return await oe(T,P,{replace:p}),{shortCircuited:!0};let{loaderData:E,errors:O}=le(T,i,y,w,h,v,x,F);F.forEach(((e,t)=>{e.subscribe((n=>{(n||e.done)&&F.delete(t)}))}));let V=Oe(),_=Ve(N);return o({loaderData:E,errors:O},V||_||v.length>0?{fetchers:new Map(T.fetchers)}:{})}(w,a,f,h,u&&u.submission,u&&u.fetcherSubmission,u&&u.replace,g,C);x||(S=null,$(a,o({matches:f},g?{actionData:g}:{},{loaderData:P,errors:E})))}function re(e){return T.fetchers.get(e)||W}async function oe(n,r,i){var a;let{submission:l,replace:p,isFetchActionRedirect:d}=void 0===i?{}:i;r.revalidate&&(I=!0);let h=u(n.location,r.location,o({_isRedirect:!0},d?{_isFetchActionRedirect:!0}:{}));if(s(h,"Expected a location on the redirect navigation"),J.test(r.location)&&K&&void 0!==(null==(a=window)?void 0:a.location)){let e=t.history.createURL(r.location),n=null==_(e.pathname,c);if(window.location.origin!==e.origin||n)return void(p?window.location.replace(r.location):window.location.assign(r.location))}S=null;let f=!0===p?e.Replace:e.Push,{formMethod:m,formAction:g,formEncType:y,formData:v}=n.navigation;!l&&m&&g&&v&&y&&(l={formMethod:m,formAction:g,formEncType:y,formData:v}),z.has(r.status)&&l&&ve(l.formMethod)?await ne(f,h,{submission:o({},l,{formAction:r.location}),preventScrollReset:V}):d?await ne(f,h,{overrideNavigation:{state:"loading",location:h,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0},fetcherSubmission:l,preventScrollReset:V}):await ne(f,h,{overrideNavigation:{state:"loading",location:h,formMethod:l?l.formMethod:void 0,formAction:l?l.formAction:void 0,formEncType:l?l.formEncType:void 0,formData:l?l.formData:void 0},preventScrollReset:V})}async function ae(e,r,o,s,a){let l=await Promise.all([...o.map((e=>ie("loader",a,e,r,i,n,c))),...s.map((e=>e.matches&&e.match&&e.controller?ie("loader",se(t.history,e.path,e.controller.signal),e.match,e.matches,i,n,c):{type:d.error,error:de(404,{pathname:e.path})}))]),u=l.slice(0,o.length),p=l.slice(o.length);return await Promise.all([be(e,o,u,u.map((()=>a.signal)),!1,T.loaderData),be(e,s.map((e=>e.match)),p,s.map((e=>e.controller?e.controller.signal:null)),!0)]),{results:l,loaderResults:u,fetcherResults:p}}function fe(){I=!0,D.push(...De()),q.forEach(((e,t)=>{k.has(t)&&(A.push(t),Ee(t))}))}function we(e,t,n){let r=ce(T.matches,t);Se(e),H({errors:{[r.route.id]:n},fetchers:new Map(T.fetchers)})}function Se(e){k.has(e)&&Ee(e),q.delete(e),L.delete(e),j.delete(e),T.fetchers.delete(e)}function Ee(e){let t=k.get(e);s(t,"Expected fetch controller: "+e),t.abort(),k.delete(e)}function Te(e){for(let t of e){let e={state:"idle",data:re(t).data,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0," _hasFetcherDoneAnything ":!0};T.fetchers.set(t,e)}}function Oe(){let e=[],t=!1;for(let n of j){let r=T.fetchers.get(n);s(r,"Expected fetcher: "+n),"loading"===r.state&&(j.delete(n),e.push(n),t=!0)}return Te(e),t}function Ve(e){let t=[];for(let[n,r]of L)if(r<e){let e=T.fetchers.get(n);s(e,"Expected fetcher: "+n),"loading"===e.state&&(Ee(n),L.delete(n),t.push(n))}return Te(t),t.length>0}function _e(e){T.blockers.delete(e),B.delete(e)}function Re(e,t){let n=T.blockers.get(e)||G;s("unblocked"===n.state&&"blocked"===t.state||"blocked"===n.state&&"blocked"===t.state||"blocked"===n.state&&"proceeding"===t.state||"blocked"===n.state&&"unblocked"===t.state||"proceeding"===n.state&&"unblocked"===t.state,"Invalid blocker state transition: "+n.state+" -> "+t.state),T.blockers.set(e,t),H({blockers:new Map(T.blockers)})}function Ie(e){let{currentLocation:t,nextLocation:n,historyAction:r}=e;if(0===B.size)return;B.size>1&&a(!1,"A router only supports one blocker at a time");let o=Array.from(B.entries()),[i,s]=o[o.length-1],l=T.blockers.get(i);return l&&"proceeding"===l.state?void 0:s({currentLocation:t,nextLocation:n,historyAction:r})?i:void 0}function De(e){let t=[];return F.forEach(((n,r)=>{e&&!e(r)||(n.cancel(),t.push(r),F.delete(r))})),t}function Ae(e,t){if(y&&v&&b){let n=t.map((e=>xe(e,T.loaderData))),r=v(e,n)||e.key,o=y[r];if("number"==typeof o)return o}return null}return P={get basename(){return c},get state(){return T},get routes(){return l},initialize:function(){return h=t.history.listen((e=>{let{action:n,location:r,delta:o}=e;if(Q)return void(Q=!1);a(0===B.size||null!=o,"You are trying to use a blocker on a POP navigation to a location that was not created by @remix-run/router. This will fail silently in production. This can happen if you are navigating outside the router via `window.history.pushState`/`window.location.hash` instead of using router navigation APIs.  This can also happen if you are using createHashRouter and the user manually changes the URL.");let i=Ie({currentLocation:T.location,nextLocation:r,historyAction:n});return i&&null!=o?(Q=!0,t.history.go(-1*o),void Re(i,{state:"blocked",location:r,proceed(){Re(i,{state:"proceeding",proceed:void 0,reset:void 0,location:r}),t.history.go(o)},reset(){_e(i),H({blockers:new Map(P.state.blockers)})}})):ne(n,r)})),T.initialized||ne(e.Pop,T.location),P},subscribe:function(e){return g.add(e),()=>g.delete(e)},enableScrollRestoration:function(e,t,n){if(y=e,b=t,v=n||(e=>e.key),!C&&T.navigation===U){C=!0;let e=Ae(T.location,T.matches);null!=e&&H({restoreScrollPosition:e})}return()=>{y=null,b=null,v=null}},navigate:async function n(r,i){if("number"==typeof r)return void t.history.go(r);let s=Z(T.location,T.matches,c,p.v7_prependBasename,r,null==i?void 0:i.fromRouteId,null==i?void 0:i.relative),{path:a,submission:l,error:d}=ee(p.v7_normalizeFormMethod,!1,s,i),h=T.location,f=u(T.location,a,i&&i.state);f=o({},f,t.history.encodeLocation(f));let m=i&&null!=i.replace?i.replace:void 0,g=e.Push;!0===m?g=e.Replace:!1===m||null!=l&&ve(l.formMethod)&&l.formAction===T.location.pathname+T.location.search&&(g=e.Replace);let y=i&&"preventScrollReset"in i?!0===i.preventScrollReset:void 0,v=Ie({currentLocation:h,nextLocation:f,historyAction:g});if(!v)return await ne(g,f,{submission:l,pendingError:d,preventScrollReset:y,replace:i&&i.replace});Re(v,{state:"blocked",location:f,proceed(){Re(v,{state:"proceeding",proceed:void 0,reset:void 0,location:f}),n(r,i)},reset(){_e(v),H({blockers:new Map(T.blockers)})}})},fetch:function(e,a,u,d){if(Y)throw new Error("router.fetch() was called during the server render, but it shouldn't be. You are likely calling a useFetcher() method in the body of your component. Try moving it to a useEffect or a callback.");k.has(e)&&Ee(e);let h=r||l,f=Z(T.location,T.matches,c,p.v7_prependBasename,u,a,null==d?void 0:d.relative),g=m(h,f,c);if(!g)return void we(e,a,de(404,{pathname:f}));let{path:y,submission:v}=ee(p.v7_normalizeFormMethod,!0,f,d),b=Pe(g,y);V=!0===(d&&d.preventScrollReset),v&&ve(v.formMethod)?async function(e,a,u,p,d,h){if(fe(),q.delete(e),!p.route.action&&!p.route.lazy){let t=de(405,{method:h.formMethod,pathname:u,routeId:a});return void we(e,a,t)}let f=T.fetchers.get(e),g=o({state:"submitting"},h,{data:f&&f.data," _hasFetcherDoneAnything ":!0});T.fetchers.set(e,g),H({fetchers:new Map(T.fetchers)});let y=new AbortController,v=se(t.history,u,y.signal,h);k.set(e,y);let b=await ie("action",v,p,d,i,n,c);if(v.signal.aborted)return void(k.get(e)===y&&k.delete(e));if(ye(b)){k.delete(e),j.add(e);let t=o({state:"loading"},h,{data:void 0," _hasFetcherDoneAnything ":!0});return T.fetchers.set(e,t),H({fetchers:new Map(T.fetchers)}),oe(T,b,{submission:h,isFetchActionRedirect:!0})}if(ge(b))return void we(e,a,b.error);if(me(b))throw de(400,{type:"defer-action"});let C=T.navigation.location||T.location,w=se(t.history,C,y.signal),x=r||l,P="idle"!==T.navigation.state?m(x,T.navigation.location,c):T.matches;s(P,"Didn't find any matches after fetcher action");let E=++M;L.set(e,E);let V=o({state:"loading",data:b.data},h,{" _hasFetcherDoneAnything ":!0});T.fetchers.set(e,V);let[_,R]=te(t.history,T,P,h,C,I,D,A,q,x,c,{[p.route.id]:b.data},void 0);R.filter((t=>t.key!==e)).forEach((e=>{let t=e.key,n=T.fetchers.get(t),r={state:"loading",data:n&&n.data,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0," _hasFetcherDoneAnything ":!0};T.fetchers.set(t,r),e.controller&&k.set(t,e.controller)})),H({fetchers:new Map(T.fetchers)});let B=()=>R.forEach((e=>Ee(e.key)));y.signal.addEventListener("abort",B);let{results:Q,loaderResults:z,fetcherResults:U}=await ae(T.matches,P,_,R,w);if(y.signal.aborted)return;y.signal.removeEventListener("abort",B),L.delete(e),k.delete(e),R.forEach((e=>k.delete(e.key)));let W=he(Q);if(W)return oe(T,W);let{loaderData:G,errors:J}=le(T,T.matches,_,z,void 0,R,U,F),K={state:"idle",data:b.data,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0," _hasFetcherDoneAnything ":!0};T.fetchers.set(e,K);let Y=Ve(E);"loading"===T.navigation.state&&E>N?(s(O,"Expected pending action"),S&&S.abort(),$(T.navigation.location,{matches:P,loaderData:G,errors:J,fetchers:new Map(T.fetchers)})):(H(o({errors:J,loaderData:ue(T.loaderData,G,P,J)},Y?{fetchers:new Map(T.fetchers)}:{})),I=!1)}(e,a,y,b,g,v):(q.set(e,{routeId:a,path:y}),async function(e,r,a,l,u,p){let d=T.fetchers.get(e),h=o({state:"loading",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0},p,{data:d&&d.data," _hasFetcherDoneAnything ":!0});T.fetchers.set(e,h),H({fetchers:new Map(T.fetchers)});let f=new AbortController,m=se(t.history,a,f.signal);k.set(e,f);let g=await ie("loader",m,l,u,i,n,c);if(me(g)&&(g=await Ce(g,m.signal,!0)||g),k.get(e)===f&&k.delete(e),m.signal.aborted)return;if(ye(g))return j.add(e),void await oe(T,g);if(ge(g)){let t=ce(T.matches,r);return T.fetchers.delete(e),void H({fetchers:new Map(T.fetchers),errors:{[t.route.id]:g.error}})}s(!me(g),"Unhandled fetcher deferred data");let y={state:"idle",data:g.data,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0," _hasFetcherDoneAnything ":!0};T.fetchers.set(e,y),H({fetchers:new Map(T.fetchers)})}(e,a,y,b,g,v))},revalidate:function(){fe(),H({revalidation:"loading"}),"submitting"!==T.navigation.state&&("idle"!==T.navigation.state?ne(O||T.historyAction,T.navigation.location,{overrideNavigation:T.navigation}):ne(T.historyAction,T.location,{startUninterruptedRevalidation:!0}))},createHref:e=>t.history.createHref(e),encodeLocation:e=>t.history.encodeLocation(e),getFetcher:re,deleteFetcher:Se,dispose:function(){h&&h(),g.clear(),S&&S.abort(),T.fetchers.forEach(((e,t)=>Se(t))),T.blockers.forEach(((e,t)=>_e(t)))},getBlocker:function(e,t){let n=T.blockers.get(e)||G;return B.get(e)!==t&&B.set(e,t),n},deleteBlocker:_e,_internalFetchControllers:k,_internalActiveDeferreds:F,_internalSetRoutes:function(e){i={},r=f(e,n,void 0,i)}},P}({basename:void 0,future:Ye({},void 0,{v7_prependBasename:!0}),history:function(t){return void 0===t&&(t={}),function(t,n,r,a){void 0===a&&(a={});let{window:p=document.defaultView,v5Compat:d=!1}=a,h=p.history,f=e.Pop,m=null,g=y();function y(){return(h.state||{idx:null}).idx}function v(){f=e.Pop;let t=y(),n=null==t?null:t-g;g=t,m&&m({action:f,location:C.location,delta:n})}function b(e){let t="null"!==p.location.origin?p.location.origin:p.location.href,n="string"==typeof e?e:c(e);return s(t,"No window.location.(origin|href) available to create URL for href: "+n),new URL(n,t)}null==g&&(g=0,h.replaceState(o({},h.state,{idx:g}),""));let C={get action(){return f},get location(){return t(p,h)},listen(e){if(m)throw new Error("A history only accepts one active listener");return p.addEventListener(i,v),m=e,()=>{p.removeEventListener(i,v),m=null}},createHref:e=>n(p,e),createURL:b,encodeLocation(e){let t=b(e);return{pathname:t.pathname,search:t.search,hash:t.hash}},push:function(t,n){f=e.Push;let o=u(C.location,t,n);r&&r(o,t),g=y()+1;let i=l(o,g),s=C.createHref(o);try{h.pushState(i,"",s)}catch(e){p.location.assign(s)}d&&m&&m({action:f,location:C.location,delta:1})},replace:function(t,n){f=e.Replace;let o=u(C.location,t,n);r&&r(o,t),g=y();let i=l(o,g),s=C.createHref(o);h.replaceState(i,"",s),d&&m&&m({action:f,location:C.location,delta:0})},go:e=>h.go(e)};return C}((function(e,t){let{pathname:n,search:r,hash:o}=e.location;return u("",{pathname:n,search:r,hash:o},t.state&&t.state.usr||null,t.state&&t.state.key||"default")}),(function(e,t){return"string"==typeof t?t:c(t)}),null,t)}({window:void 0}),hydrationData:function(){var e;let t=null==(e=window)?void 0:e.__staticRouterHydrationData;return t&&t.errors&&(t=Ye({},t,{errors:Ze(t.errors)})),t}(),routes:Jp,mapRouteProperties:function(e){let n={hasErrorBoundary:null!=e.ErrorBoundary||null!=e.errorElement};return e.Component&&Object.assign(n,{element:t.createElement(e.Component),Component:void 0}),e.ErrorBoundary&&Object.assign(n,{errorElement:t.createElement(e.ErrorBoundary),ErrorBoundary:void 0}),n}}).initialize());const Yp=function(){return t.createElement("div",{className:"app"},t.createElement(Gr,null,t.createElement(bo,null),t.createElement(Ge,{router:Kp})))};var Xp=document.getElementById("root");(0,r.s)(Xp).render(t.createElement(t.StrictMode,null,t.createElement(Yp,null)))})()})();
\ No newline at end of file
diff --git a/compendium_v2/static/survey-bundle.js.LICENSE.txt b/compendium_v2/static/survey-bundle.js.LICENSE.txt
index 9055a867fecfadbcd9341e7637badd7b68c3146d..200f7ed150eb9256c49b2b03e23b91a99c2f69ad 100644
--- a/compendium_v2/static/survey-bundle.js.LICENSE.txt
+++ b/compendium_v2/static/survey-bundle.js.LICENSE.txt
@@ -1075,10 +1075,14 @@
 
 /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */
 
+/*! sheetjs (C) 2013-present SheetJS -- http://sheetjs.com */
+
 /*! signature_pad */
 
 /*! survey-core */
 
+/*! xlsx.js (C) 2013-present SheetJS -- http://sheetjs.com */
+
 /*!*********************!*\
   !*** ./src/base.ts ***!
   \*********************/
diff --git a/setup.py b/setup.py
index 8334a9d43c8244f4cda2cef6c0e16cf9f8c508c7..2f3ea4eb3af3a48b3ea4997489ad7a8b92377431 100644
--- a/setup.py
+++ b/setup.py
@@ -2,7 +2,7 @@ from setuptools import setup, find_packages
 
 setup(
     name='compendium-v2',
-    version="0.45",
+    version="0.46",
     author='GEANT',
     author_email='swd@geant.org',
     description='Flask and React project for displaying '
diff --git a/survey-frontend/package-lock.json b/survey-frontend/package-lock.json
index e4a3e2bb3fdeb8c437d1d694af2a45bf5af04d83..7f2e345cb4a3661ba13ddd8bf9e6223ab8e0d492 100644
--- a/survey-frontend/package-lock.json
+++ b/survey-frontend/package-lock.json
@@ -12,7 +12,8 @@
         "react-hot-toast": "^2.4.1",
         "react-icons": "^4.9.0",
         "react-router-dom": "^6.11.2",
-        "survey-react-ui": "^1.9.103"
+        "survey-react-ui": "^1.9.103",
+        "xlsx": "^0.18.5"
       },
       "devDependencies": {
         "@babel/core": "^7.22.1",
@@ -3114,6 +3115,14 @@
         "node": ">=0.4.0"
       }
     },
+    "node_modules/adler-32": {
+      "version": "1.3.1",
+      "resolved": "https://registry.npmjs.org/adler-32/-/adler-32-1.3.1.tgz",
+      "integrity": "sha512-ynZ4w/nUUv5rrsR8UUGoe1VC9hZj6V5hU9Qw1HlMDJGEJw5S7TfTErWTjMys6M7vr0YWcPqs3qAr4ss0nDfP+A==",
+      "engines": {
+        "node": ">=0.8"
+      }
+    },
     "node_modules/ajv": {
       "version": "6.12.6",
       "resolved": "https://registry.npmjs.org/ajv/-/ajv-6.12.6.tgz",
@@ -4249,6 +4258,18 @@
         "node": ">=4"
       }
     },
+    "node_modules/cfb": {
+      "version": "1.2.2",
+      "resolved": "https://registry.npmjs.org/cfb/-/cfb-1.2.2.tgz",
+      "integrity": "sha512-KfdUZsSOw19/ObEWasvBP/Ac4reZvAGauZhs6S/gqNhXhI7cKwvlH7ulj+dOEYnca4bm4SGo8C1bTAQvnTjgQA==",
+      "dependencies": {
+        "adler-32": "~1.3.0",
+        "crc-32": "~1.2.0"
+      },
+      "engines": {
+        "node": ">=0.8"
+      }
+    },
     "node_modules/chalk": {
       "version": "2.4.2",
       "resolved": "https://registry.npmjs.org/chalk/-/chalk-2.4.2.tgz",
@@ -4340,6 +4361,14 @@
         "mimic-response": "^1.0.0"
       }
     },
+    "node_modules/codepage": {
+      "version": "1.15.0",
+      "resolved": "https://registry.npmjs.org/codepage/-/codepage-1.15.0.tgz",
+      "integrity": "sha512-3g6NUTPd/YtuuGrhMnOMRjFc+LJw/bnMp3+0r/Wcz3IXUuCosKRJvMphm5+Q+bvTVGcJJuRvVLuYba+WojaFaA==",
+      "engines": {
+        "node": ">=0.8"
+      }
+    },
     "node_modules/color-convert": {
       "version": "1.9.3",
       "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-1.9.3.tgz",
@@ -4527,6 +4556,17 @@
         "node": ">=10"
       }
     },
+    "node_modules/crc-32": {
+      "version": "1.2.2",
+      "resolved": "https://registry.npmjs.org/crc-32/-/crc-32-1.2.2.tgz",
+      "integrity": "sha512-ROmzCKrTnOwybPcJApAA6WBWij23HVfGVNKqqrZpuyZOHqK2CwHSvpGuyt/UNNvaIjEd8X5IFGp4Mh+Ie1IHJQ==",
+      "bin": {
+        "crc32": "bin/crc32.njs"
+      },
+      "engines": {
+        "node": ">=0.8"
+      }
+    },
     "node_modules/create-require": {
       "version": "1.1.1",
       "resolved": "https://registry.npmjs.org/create-require/-/create-require-1.1.1.tgz",
@@ -6661,6 +6701,14 @@
         "node": ">= 0.6"
       }
     },
+    "node_modules/frac": {
+      "version": "1.1.2",
+      "resolved": "https://registry.npmjs.org/frac/-/frac-1.1.2.tgz",
+      "integrity": "sha512-w/XBfkibaTl3YDqASwfDUqkna4Z2p9cFSr1aHDt0WoMTECnRfBOv2WArlZILlqgWlmdIlALXGpM2AOhEk5W3IA==",
+      "engines": {
+        "node": ">=0.8"
+      }
+    },
     "node_modules/fresh": {
       "version": "0.5.2",
       "resolved": "https://registry.npmjs.org/fresh/-/fresh-0.5.2.tgz",
@@ -10889,6 +10937,17 @@
         "node": ">= 6"
       }
     },
+    "node_modules/ssf": {
+      "version": "0.11.2",
+      "resolved": "https://registry.npmjs.org/ssf/-/ssf-0.11.2.tgz",
+      "integrity": "sha512-+idbmIXoYET47hH+d7dfm2epdOMUDjqcB4648sTZ+t2JwoyBFL/insLfB/racrDmsKB3diwsDA696pZMieAC5g==",
+      "dependencies": {
+        "frac": "~1.1.2"
+      },
+      "engines": {
+        "node": ">=0.8"
+      }
+    },
     "node_modules/stable": {
       "version": "0.1.8",
       "resolved": "https://registry.npmjs.org/stable/-/stable-0.1.8.tgz",
@@ -12082,6 +12141,22 @@
       "integrity": "sha512-CC1bOL87PIWSBhDcTrdeLo6eGT7mCFtrg0uIJtqJUFyK+eJnzl8A1niH56uu7KMa5XFrtiV+AQuHO3n7DsHnLQ==",
       "dev": true
     },
+    "node_modules/wmf": {
+      "version": "1.0.2",
+      "resolved": "https://registry.npmjs.org/wmf/-/wmf-1.0.2.tgz",
+      "integrity": "sha512-/p9K7bEh0Dj6WbXg4JG0xvLQmIadrner1bi45VMJTfnbVHsc7yIajZyoSoK60/dtVBs12Fm6WkUI5/3WAVsNMw==",
+      "engines": {
+        "node": ">=0.8"
+      }
+    },
+    "node_modules/word": {
+      "version": "0.3.0",
+      "resolved": "https://registry.npmjs.org/word/-/word-0.3.0.tgz",
+      "integrity": "sha512-OELeY0Q61OXpdUfTp+oweA/vtLVg5VDOXh+3he3PNzLGG/y0oylSOC1xRVj0+l4vQ3tj/bB1HVHv1ocXkQceFA==",
+      "engines": {
+        "node": ">=0.8"
+      }
+    },
     "node_modules/word-wrap": {
       "version": "1.2.3",
       "resolved": "https://registry.npmjs.org/word-wrap/-/word-wrap-1.2.3.tgz",
@@ -12118,6 +12193,26 @@
         }
       }
     },
+    "node_modules/xlsx": {
+      "version": "0.18.5",
+      "resolved": "https://registry.npmjs.org/xlsx/-/xlsx-0.18.5.tgz",
+      "integrity": "sha512-dmg3LCjBPHZnQp5/F/+nnTa+miPJxUXB6vtk42YjBBKayDNagxGEeIdWApkYPOf3Z3pm3k62Knjzp7lMeTEtFQ==",
+      "dependencies": {
+        "adler-32": "~1.3.0",
+        "cfb": "~1.2.1",
+        "codepage": "~1.15.0",
+        "crc-32": "~1.2.1",
+        "ssf": "~0.11.2",
+        "wmf": "~1.0.1",
+        "word": "~0.3.0"
+      },
+      "bin": {
+        "xlsx": "bin/xlsx.njs"
+      },
+      "engines": {
+        "node": ">=0.8"
+      }
+    },
     "node_modules/xtend": {
       "version": "4.0.2",
       "resolved": "https://registry.npmjs.org/xtend/-/xtend-4.0.2.tgz",
diff --git a/survey-frontend/package.json b/survey-frontend/package.json
index c3f5aa6b07275afd07a1c81069d07add36d1589c..54a531889e770a5656dd15e21d470925456da156 100644
--- a/survey-frontend/package.json
+++ b/survey-frontend/package.json
@@ -47,6 +47,7 @@
     "react-icons": "^4.9.0",
     "react-router-dom": "^6.11.2",
     "survey-react-ui": "^1.9.103",
-    "react-hot-toast": "^2.4.1"
+    "react-hot-toast": "^2.4.1",
+    "xlsx": "^0.18.5"
   }
 }
diff --git a/survey-frontend/src/Landing.tsx b/survey-frontend/src/Landing.tsx
index f3da570b5949d6ef2e3b0c382469ecf37b3d94ac..279e350bcc54bf53931a28f0c1aa070cd86b55f0 100644
--- a/survey-frontend/src/Landing.tsx
+++ b/survey-frontend/src/Landing.tsx
@@ -4,6 +4,7 @@ import { Table, Container, Row } from "react-bootstrap";
 import { userContext } from "./providers/UserProvider";
 import { fetchSurveys, fetchActiveSurveyYear } from "./api/survey";
 import { Survey } from "./api/types";
+import * as XLSX from "xlsx";
 
 
 function Landing(): ReactElement {
@@ -37,6 +38,52 @@ function Landing(): ReactElement {
         }
     };
 
+    function convertToExcel(jsonData: { name: string, data: any }[]): Blob {
+        const wb = XLSX.utils.book_new();
+        jsonData.forEach(sheet=>{
+            const ws = XLSX.utils.json_to_sheet(sheet.data);
+            XLSX.utils.book_append_sheet(wb, ws, sheet.name);
+        })
+        const wbout = XLSX.write(wb, { bookType: 'xlsx', type: 'binary' });
+    
+        const buffer = new ArrayBuffer(wbout.length);
+        const view = new Uint8Array(buffer);
+        for (let i = 0; i < wbout.length; i++) {
+            // Convert each character of the binary workbook string to an 8-bit integer and store in the Uint8Array 'view' for blob creation.
+            view[i] = wbout.charCodeAt(i) & 0xFF;
+        }
+    
+        return new Blob([buffer], { type: 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet;charset=UTF-8' });
+    }
+
+    function fetchDataAndConvertToExcel() {
+        const apiEndpoint = '/api/data-download';
+    
+        fetch(apiEndpoint)
+            .then(response => {
+                if (!response.ok) {
+                    throw new Error('Network response was not ok');
+                }
+                return response.json(); 
+            })
+            .then(data => {
+                // Call convertToExcel function with the retrieved data
+                const excelBlob = convertToExcel(data);
+    
+                // Create a download link and trigger a click event to download the file
+                const downloadLink = document.createElement('a');
+                downloadLink.href = URL.createObjectURL(excelBlob);
+                downloadLink.download = 'data.xlsx';
+                document.body.appendChild(downloadLink);
+                downloadLink.click();
+                document.body.removeChild(downloadLink);
+            })
+            .catch(error => {
+                console.error('Error fetching data:', error);
+            });
+    }
+    
+
 
     
     
@@ -99,6 +146,7 @@ function Landing(): ReactElement {
                             <li><span>You are logged in as a Compendium Administrator</span></li>
                             <li><span>Click <Link to="/survey/admin/surveys">here</Link> to access the survey management page.</span></li>
                             <li><span>Click <Link to="/survey/admin/users">here</Link> to access the user management page.</span></li>
+                            <li><span>Click <a href="#" onClick={fetchDataAndConvertToExcel}>here</a> to do the full data download.</span></li>
                         </ul> : <ul>
                             {activeSurveyYear &&!isAdmin && !isObserver && hasNren && moveToSurvey()}
                             {loggedIn ? <li><span>You are logged in</span></li> : <li><span>You are not logged in</span></li>}