File manager - Edit - /home/wwwroot/camplus.hk/master.camplus.hk/public_html/assets/custom/survey-jquery/survey.jquery.min.js
Back
/*! * surveyjs - Survey JavaScript library v1.1.22 * Copyright (c) 2015-2019 Devsoft Baltic OÜ - http://surveyjs.io/ * License: MIT (http://www.opensource.org/licenses/mit-license.php) */ !function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("jquery")):"function"==typeof define&&define.amd?define("Survey",["jquery"],t):"object"==typeof exports?exports.Survey=t(require("jquery")):e.Survey=t(e.jQuery)}(this,function(e){return function(e){function t(r){if(n[r])return n[r].exports;var o=n[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,t),o.l=!0,o.exports}var n={};return t.m=e,t.c=n,t.i=function(e){return e},t.d=function(e,n,r){t.o(e,n)||Object.defineProperty(e,n,{configurable:!1,enumerable:!0,get:r})},t.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(n,"a",n),n},t.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},t.p="",t(t.s=158)}([function(e,t,n){"use strict";function r(e,t){function n(){this.constructor=e}for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r]);e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}n.d(t,"a",function(){return o}),t.b=r,n.d(t,"c",function(){return i}),n.d(t,"d",function(){return a});var o=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++){t=arguments[n];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e},i=function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},a=function(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;for(var r=Array(e),o=0,t=0;t<n;t++)for(var i=arguments[t],a=0,s=i.length;a<s;a++,o++)r[o]=i[a];return r}},function(e,t,n){"use strict";var r=n(0),o=n(4);n.d(t,"c",function(){return i}),n.d(t,"d",function(){return a}),n.d(t,"h",function(){return s}),n.d(t,"g",function(){return l}),n.d(t,"e",function(){return u}),n.d(t,"l",function(){return c}),n.d(t,"j",function(){return p}),n.d(t,"i",function(){return d}),n.d(t,"f",function(){return h}),n.d(t,"k",function(){return f}),n.d(t,"b",function(){return m}),n.d(t,"a",function(){return g});var i=function(){function e(e,t){void 0===t&&(t=!1),this.name=e,this.typeValue=null,this.choicesValue=null,this.baseValue=null,this.isRequiredValue=!1,this.readOnlyValue=null,this.visibleValue=null,this.isLocalizableValue=null,this.choicesfunc=null,this.dependedProperties=null,this.isSerializable=!0,this.isLightSerializable=!0,this.isCustom=!1,this.isDynamicChoices=!1,this.className=null,this.alternativeName=null,this.classNamePart=null,this.baseClassName=null,this.defaultValueValue=null,this.serializationProperty=null,this.maxLength=-1,this.layout=null,this.onGetValue=null,this.onSetValue=null,this.visibleIf=null,this.isArray=!1,this.isRequiredValue=t}return Object.defineProperty(e.prototype,"type",{get:function(){return this.typeValue?this.typeValue:"string"},set:function(e){"itemvalues"===e&&(e="itemvalue[]"),this.typeValue=e,this.typeValue.indexOf("[]")===this.typeValue.length-2&&(this.isArray=!0,this.className=this.typeValue.substr(0,this.typeValue.length-2))},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"isRequired",{get:function(){return this.isRequiredValue},set:function(e){this.isRequiredValue=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"hasToUseGetValue",{get:function(){return this.onGetValue||this.serializationProperty},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"defaultValue",{get:function(){var t=this.defaultValueValue;return e.getItemValuesDefaultValue&&m.metaData.isDescendantOf(this.className,"itemvalue")&&(t=e.getItemValuesDefaultValue(this.defaultValueValue||[])),t},set:function(e){this.defaultValueValue=e},enumerable:!0,configurable:!0}),e.prototype.isDefaultValue=function(e){return o.a.isValueEmpty(this.defaultValue)?!1===e&&"boolean"==this.type||""===e||o.a.isValueEmpty(e):this.defaultValue==e},e.prototype.getValue=function(e){return this.onGetValue?this.onGetValue(e):this.serializationProperty&&e[this.serializationProperty]?e[this.serializationProperty].getJson():e[this.name]},e.prototype.getPropertyValue=function(e){return this.isLocalizable?e[this.serializationProperty].text:this.getValue(e)},Object.defineProperty(e.prototype,"hasToUseSetValue",{get:function(){return this.onSetValue||this.serializationProperty},enumerable:!0,configurable:!0}),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&&(t="true"===t.toLowerCase())),e[this.name]=t)},e.prototype.getObjType=function(e){return this.classNamePart?e.replace(this.classNamePart,""):e},e.prototype.getClassName=function(e){return e&&(e=e.toLowerCase()),this.classNamePart&&e.indexOf(this.classNamePart)<0?e+this.classNamePart:e},Object.defineProperty(e.prototype,"choices",{get:function(){return this.getChoices(null)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"hasChoices",{get:function(){return!!this.choicesValue||!!this.choicesfunc},enumerable:!0,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){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:!0,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:!0,configurable:!0}),Object.defineProperty(e.prototype,"isLocalizable",{get:function(){return null!=this.isLocalizableValue&&this.isLocalizableValue},set:function(e){this.isLocalizableValue=e},enumerable:!0,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.mergeValue=function(e,t){null==this[t]&&null!=e[t]&&(this[t]=e[t])},e.mergableValues=["typeValue","choicesValue","baseValue","readOnlyValue","visibleValue","isSerializable","isLightSerializable","isCustom","isDynamicChoices","isLocalizableValue","className","alternativeName","layout","classNamePart","baseClassName","defaultValue","serializationProperty","onGetValue","onSetValue","dependedProperties","visibleIf","maxLength","maxValue","minValue"],e}(),a=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.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(e,t){if(!e[t.name]&&!e.hasOwnProperty(t.name))if(t.isLocalizable&&t.serializationProperty&&!e[t.serializationProperty]&&e.createCustomLocalizableObj){e.createCustomLocalizableObj(t.name);var n={get:function(){return e.getLocalizableString(t.name)}};Object.defineProperty(e,t.serializationProperty,n);var r={get:function(){return e.getLocalizableStringText(t.name,t.defaultValue)},set:function(n){e.setLocalizableStringText(t.name,n)}};Object.defineProperty(e,t.name,r)}else{var o=t.defaultValue;if(m.metaData.isDescendantOf(t.className,"itemvalue")&&"function"==typeof e.createNewArray&&(e.createNewArray(t.name,function(t){t.locOwner=e}),e.setPropertyValue(t.name,o),o=null),e.getPropertyValue&&e.setPropertyValue){var r={get:function(){return e.getPropertyValue(t.name,o)},set:function(n){t.onSetValue?t.onSetValue(e,n,null):e.setPropertyValue(t.name,n)}};Object.defineProperty(e,t.name,r)}}},e.properties={},e.parentClasses={},e}(),s=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,this.properties=null,e=e.toLowerCase(),this.parentName&&(this.parentName=this.parentName.toLowerCase(),a.addClass(e,this.parentName)),this.properties=new Array;for(var o=0;o<t.length;o++){var i=this.createProperty(t[o]);i&&this.properties.push(i)}}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.createProperty=function(t){var n="string"==typeof t?t:t.name;if(n){var r=null,a=n.indexOf(e.typeSymbol);a>-1&&(r=n.substring(a+1),n=n.substring(0,a));var s=this.getIsPropertyNameRequired(n)||!!t.isRequired;n=this.getPropertyName(n);var l=new i(n,s);if(r&&(l.type=r),"object"==typeof t){if(t.type&&(l.type=t.type),o.a.isValueEmpty(t.default)||(l.defaultValue=t.default),o.a.isValueEmpty(t.isSerializable)||(l.isSerializable=t.isSerializable),o.a.isValueEmpty(t.isLightSerializable)||(l.isLightSerializable=t.isLightSerializable),o.a.isValueEmpty(t.maxLength)||(l.maxLength=t.maxLength),o.a.isValueEmpty(t.maxValue)||(l.maxValue=t.maxValue),o.a.isValueEmpty(t.minValue)||(l.minValue=t.minValue),o.a.isValueEmpty(t.isDynamicChoices)||(l.isDynamicChoices=t.isDynamicChoices),!1===t.visible&&(l.visible=!1),t.visibleIf&&(l.visibleIf=t.visibleIf),t.choices){var u="function"==typeof t.choices?t.choices:null,c="function"!=typeof t.choices?t.choices:null;l.setChoices(c,u)}if(t.baseValue&&l.setBaseValue(t.baseValue),t.onGetValue&&(l.onGetValue=t.onGetValue),t.onSetValue&&(l.onSetValue=t.onSetValue),t.isLocalizable&&(t.serializationProperty="loc"+t.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 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=g.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}(),l=function(){function e(){this.classes={},this.alternativeNames={},this.childrenClasses={},this.classProperties={},this.classHashProperties={}}return e.prototype.addClass=function(e,t,n,r){void 0===n&&(n=null),void 0===r&&(r=null),e=e.toLowerCase();var o=new s(e,t,n,r);if(this.classes[e]=o,r){r=r.toLowerCase();this.childrenClasses[r]||(this.childrenClasses[r]=[]),this.childrenClasses[r].push(o)}return 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);if(!t)return[];var n=this.classProperties[t.name];return n||(this.fillPropertiesForClass(t.name),this.classProperties[t.name])},e.prototype.getHashProperties=function(e){var t=this.findClass(e);if(!t)return{};var n=this.classHashProperties[t.name];return n||(this.fillPropertiesForClass(t.name),this.classHashProperties[t.name])},e.prototype.fillPropertiesForClass=function(e){var t=new Array,n={};this.fillProperties(e,t,n),this.classProperties[e]=t,this.classHashProperties[e]=n},e.prototype.getDynamicProperties=function(e){if(e.getDynamicProperties&&e.getDynamicType){var t=e.getDynamicProperties();return m.metaData.findProperties(e.getDynamicType(),t)}return[]},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.push(n[r]);var o=this.getDynamicProperties(e);if(o&&o.length>0)for(var r=0;r<o.length;r++)t.push(o[r]);return t},e.prototype.findProperty=function(e,t){var n=this.getHashProperties(e),r=n[t];return r||null},e.prototype.findProperties=function(e,t){for(var n=[],r=this.getHashProperties(e),o=0;o<t.length;o++){var i=r[t[o]];i&&n.push(i)}return n},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},a.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){this.addCustomPropertyCore(this.findClass(e),t)},e.prototype.addCustomPropertyCore=function(e,t){if(e){var n=e.createProperty(t);n&&(n.isCustom=!0,this.addPropertyToClass(e,n),this.emptyClassPropertiesHash(e),a.addProperty(e.name,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),this.emptyClassPropertiesHash(n),a.removeProperty(n.name,t))},e.prototype.addPropertyToClass=function(e,t){null==e.find(t.name)&&e.properties.push(t)},e.prototype.removePropertyFromClass=function(e,t){var n=e.properties.indexOf(t);n<0||e.properties.splice(n,1)},e.prototype.emptyClassPropertiesHash=function(e){this.classProperties[e.name]=null,this.classHashProperties[e.name]=null;for(var t=this.getChildrenClasses(e.name),n=0;n<t.length;n++)this.classProperties[t[n].name]=null,this.classHashProperties[t[n].name]=null},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.fillProperties=function(e,t,n){var r=this.findClass(e);if(r){r.parentName&&this.fillProperties(r.parentName,t,n);for(var o=0;o<r.properties.length;o++){var i=r.properties[o];this.addPropertyCore(i,t,n),n[i.name]=i}}},e.prototype.addPropertyCore=function(e,t,n){if(!n[e.name])return void t.push(e);for(var r=-1,o=0;o<t.length;o++)if(t[o].name==e.name){r=o;break}e.mergeWith(t[r]),t[r]=e},e}(),u=function(){function e(e,t){this.type=e,this.message=t,this.description="",this.at=-1}return e.prototype.getFullDescription=function(){return this.message+(this.description?"\n"+this.description:"")},e}(),c=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=m.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 n.i(r.b)(t,e),t}(u),p=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=m.metaData.getChildrenClasses(t,!0),a=0;a<i.length;a++)a>0&&(o.description+=", "),o.description+="'"+i[a].name+"'";return o.description+=".",o}return n.i(r.b)(t,e),t}(u),d=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 n.i(r.b)(t,e),t}(p),h=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 n.i(r.b)(t,e),t}(p),f=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 n.i(r.b)(t,e),t}(u),m=function(){function e(){this.errors=new Array,this.lightSerializing=!1}return Object.defineProperty(e,"metaData",{get:function(){return e.metaDataValue},enumerable:!0,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){if(this.toObjectCore(e,t),t.getType){var n=this.getRequiredError(e,t.getType());n&&this.addNewError(n,e)}},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){n.startLoadingFromJson&&n.startLoadingFromJson(),r=this.addDynamicProperties(n,t,r);for(var a in t)if(a!==e.typePropertyName)if(a!==e.positionPropertyName){var s=this.findProperty(r,a);s?this.valueToObj(t[a],n,s):i&&this.addNewError(new c(a.toString(),o),t)}else n[a]=t[a];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(t){if(t.getDynamicProperties&&t.getDynamicType){var n=t.getDynamicProperties();return e.metaData.findProperties(t.getDynamicType(),n)}return[]},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=[],a=0;a<n.length;a++)i.push(n[a]);for(var a=0;a<o.length;a++)i.push(o[a]);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=[],a=0;a<o.length;a++)i.push(this.toJsonObjectCore(o[a],n,r));o=i.length>0?i:null}else o=this.toJsonObjectCore(o,n,r);var s="function"==typeof e.getPropertyValue&&null!==e.getPropertyValue(n.name,null);(r&&s||!n.isDefaultValue(o))&&(t[n.name]=o)}}},e.prototype.valueToObj=function(e,t,n){if(null!=e){if(this.removePos(n,e),null!=n&&n.hasToUseSetValue)return void n.setValue(t,e,this);if(this.isValueArray(e))return void this.valueToArray(e,t,n.name,n);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=t[e.typePropertyName];return!o&&null!=n&&n.className&&(o=n.className),o=n.getClassName(o),r.newObj=o?e.metaData.createClass(o,t):null,r.error=this.checkNewObjectOnErrors(r.newObj,t,n,o),r},e.prototype.checkNewObjectOnErrors=function(e,t,n,r){var o=null;return e?o=this.getRequiredError(t,r):n.baseClassName&&(o=r?new h(n.name,n.baseClassName):new d(n.name,n.baseClassName)),o&&this.addNewError(o,t),o},e.prototype.getRequiredError=function(t,n){var r=e.metaData.getRequiredProperties(n);if(!r)return null;for(var o=0;o<r.length;o++)if(!t[r[o]])return new f(r[o],n);return null},e.prototype.addNewError=function(t,n){n&&n[e.positionPropertyName]&&(t.at=n[e.positionPropertyName].start),this.errors.push(t)},e.prototype.valueToArray=function(e,t,n,r){t[n]&&e.length>0&&t[n].splice(0,t[n].length),t[n]||(t[n]=[]);for(var o=0;o<e.length;o++){var i=this.createNewObj(e[o],r);i.newObj?(e[o].name&&(i.newObj.name=e[o].name),t[n].push(i.newObj),this.toObjectCore(e[o],i.newObj)):i.error||t[n].push(e[o])}},e.prototype.findProperty=function(e,t){if(!e)return null;for(var n=0;n<e.length;n++){var r=e[n];if(r.name==t||r.alternativeName==t)return r}return null},e.typePropertyName="type",e.positionPropertyName="pos",e.metaDataValue=new l,e}(),g=m.metaData},function(e,t,n){"use strict";var r=n(46);n.d(t,"a",function(){return o}),n.d(t,"b",function(){return i});var o={currentLocaleValue:"",defaultLocaleValue:"en",locales:{},localeNames:{},supportedLocales:[],get currentLocale(){return this.currentLocaleValue===this.defaultLocaleValue?"":this.currentLocaleValue},set currentLocale(e){this.currentLocaleValue=e},get defaultLocale(){return this.defaultLocaleValue},set defaultLocale(e){this.defaultLocaleValue=e},getString:function(e){var t=this.currentLocale?this.locales[this.currentLocale]:this.locales[this.defaultLocale];t&&t[e]||(t=this.locales[this.defaultLocale]);var n=t[e];return void 0===n&&(n=this.locales.en[e]),n},getLocales:function(){var e=[];if(e.push(""),this.supportedLocales&&this.supportedLocales.length>0)for(var t=0;t<this.supportedLocales.length;t++)e.push(this.supportedLocales[t]);else for(var n in this.locales)e.push(n);return e.sort(),e}},i=r.a;o.locales.en=r.a,o.localeNames.en="english"},function(e,t,n){"use strict";var r=n(2),o=n(1);n.d(t,"b",function(){return i}),n.d(t,"a",function(){return a});var i=function(){function e(){this.creatorHash={}}return Object.defineProperty(e,"DefaultChoices",{get:function(){return[r.a.getString("choices_Item")+"1",r.a.getString("choices_Item")+"2",r.a.getString("choices_Item")+"3"]},enumerable:!0,configurable:!0}),Object.defineProperty(e,"DefaultColums",{get:function(){var e=r.a.getString("matrix_column")+" ";return[e+"1",e+"2",e+"3"]},enumerable:!0,configurable:!0}),Object.defineProperty(e,"DefaultRows",{get:function(){var e=r.a.getString("matrix_row")+" ";return[e+"1",e+"2"]},enumerable:!0,configurable:!0}),e.prototype.registerQuestion=function(e,t){this.creatorHash[e]=t},e.prototype.unregisterElement=function(e){delete this.creatorHash[e]},e.prototype.clear=function(){this.creatorHash={}},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}(),a=function(){function e(){this.creatorHash={}}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],i.Instance.unregisterElement(e),t&&o.a.removeClass(e)},e.prototype.getAllTypes=function(){var e=i.Instance.getAllTypes();for(var t in this.creatorHash)e.push(t);return e.sort()},e.prototype.createElement=function(e,t){var n=this.creatorHash[e];return null==n?i.Instance.createQuestion(e,t):n(t)},e.Instance=new e,e}()},function(e,t,n){"use strict";n.d(t,"a",function(){return r});var r=function(){function e(){}return e.isValueEmpty=function(t){if(Array.isArray(t)&&0===t.length)return!0;if(t&&"object"==typeof t&&t.constructor===Object){for(var n in t)if(!e.isValueEmpty(t[n]))return!1;return!0}return t&&("string"==typeof t||t instanceof String)&&(t=t.trim()),!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){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 o=[],i=[],a=0;a<t.length;a++)o.push(t[a]),i.push(n[a]);o.sort(),i.sort(),t=o,n=i}for(var a=0;a<t.length;a++)if(!e.isTwoValueEquals(t[a],n[a]))return!1;return!0},e.isTwoValueEquals=function(t,n,r){if(void 0===r&&(r=!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((void 0===t||null===t)&&"undefined"===n)return!0;if((void 0===n||null===n)&&"undefined"===t)return!0;if(t&&!n||!t&&n)return!1;if(!(t instanceof Object||n instanceof Object))return t==n;if(!(t instanceof Object&&n instanceof Object))return!1;if(t.equals)return t.equals(n);if(t.toJSON&&n.toJSON)return this.isTwoValueEquals(t.toJSON(),n.toJSON());if(Array.isArray(t)&&Array.isArray(n))return e.isArraysEqual(t,n,r);for(var o in t)if(t.hasOwnProperty(o)){if(!n.hasOwnProperty(o))return!1;if(t[o]!==n[o]){if("object"!=typeof t[o])return!1;if(!this.isTwoValueEquals(t[o],n[o]))return!1}}for(o in n)if(n.hasOwnProperty(o)&&!t.hasOwnProperty(o))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(e){return e&&e instanceof Object?JSON.parse(JSON.stringify(e)):e},e.isNumber=function(e){return!("string"==typeof e&&e&&0==e.indexOf("0x")&&e.length>32)&&(!isNaN(parseFloat(e))&&isFinite(e))},e.getMaxLength=function(e,t){return e<0&&(e=t),e>0?e:null},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})})},function(e,t,n){"use strict";var r=n(0),o=n(14),i=n(4),a=n(1),s=n(8);n.d(t,"c",function(){return l}),n.d(t,"d",function(){return u}),n.d(t,"b",function(){return c}),n.d(t,"a",function(){return p});var l=function(){function e(){this.propertyHash={},this.isLoadingFromJsonValue=!1,this.onPropertyChanged=new p,a.d.createProperties(this)}return Object.defineProperty(e,"commentPrefix",{get:function(){return s.a.commentPrefix},set:function(e){s.a.commentPrefix=e},enumerable:!0,configurable:!0}),e.prototype.isValueEmpty=function(e){return i.a.isValueEmpty(e)},e.prototype.IsPropertyEmpty=function(e){return""!==e&&this.isValueEmpty(e)},e.prototype.getType=function(){return"base"},e.prototype.getTemplate=function(){return this.getType()},Object.defineProperty(e.prototype,"isLoadingFromJson",{get:function(){return this.isLoadingFromJsonValue},enumerable:!0,configurable:!0}),e.prototype.startLoadingFromJson=function(){this.isLoadingFromJsonValue=!0},e.prototype.endLoadingFromJson=function(){this.isLoadingFromJsonValue=!1},e.prototype.toJSON=function(){return(new a.b).toJsonObject(this)},e.prototype.locStrsChanged=function(){if(this.arraysInfo)for(var t in this.arraysInfo){var n=this.arraysInfo[t];if(n&&n.isItemValues){var r=this.getPropertyValue(t);r&&e.itemValueLocStrChanged&&e.itemValueLocStrChanged(r)}}if(this.localizableStrings)for(var t in this.localizableStrings){var n=this.getLocalizableString(t);n&&n.strChanged()}},e.prototype.getPropertyValue=function(e,t){void 0===t&&(t=null);var n=this.getPropertyValueCore(this.propertyHash,e);if(this.IsPropertyEmpty(n)){if(null!=t)return t;var r=a.a.findProperty(this.getType(),e),o=r&&!r.isCustom?r.defaultValue:null;if(!this.IsPropertyEmpty(o))return o}return n},e.prototype.getPropertyValueCore=function(e,t){return this.getPropertyValueCoreHandler?this.getPropertyValueCoreHandler(e,t):e[t]},e.prototype.geValueFromHash=function(){return this.propertyHash.value},e.prototype.setPropertyValueCore=function(e,t,n){this.setPropertyValueCoreHandler?this.setPropertyValueCoreHandler(e,t,n):e[t]=n},e.prototype.iteratePropertiesHash=function(e){var t=this,n=[];for(var r in this.propertyHash)n.push(r);n.forEach(function(n){return e(t.propertyHash,n)})},e.prototype.setPropertyValue=function(e,t){var n=this.getPropertyValue(e);if(n&&Array.isArray(n)){if(this.isTwoValueEquals(n,t))return;var r=this.arraysInfo[e];this.setArray(n,t,!!r&&r.isItemValues,r?r.onPush:null),this.propertyValueChanged(e,n,n)}else this.setPropertyValueCore(this.propertyHash,e,t),this.isTwoValueEquals(n,t)||this.propertyValueChanged(e,n,t)},e.prototype.propertyValueChanged=function(e,t,n){if(!this.isLoadingFromJson&&(this.onPropertyChanged.fire(this,{name:e,oldValue:t,newValue:n}),this.onPropChangeFunctions))for(var r=0;r<this.onPropChangeFunctions.length;r++)this.onPropChangeFunctions[r].name==e&&this.onPropChangeFunctions[r].func(n)},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);for(var r=0;r<e.length;r++)this.registerFunctionOnPropertyValueChanged(e[r],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);for(var n=0;n<e.length;n++)this.unRegisterFunctionOnPropertyValueChanged(e[n],t)},e.prototype.createCustomLocalizableObj=function(e){!this.getLocalizableString(e)&&this.getLocale&&this.createLocalizableString(e,this)},e.prototype.createLocalizableString=function(e,t,n){void 0===n&&(n=!1);var r=new o.a(t,n);return this.localizableStrings||(this.localizableStrings={}),this.localizableStrings[e]=r,r},e.prototype.getLocalizableString=function(e){return this.localizableStrings?this.localizableStrings[e]:null},e.prototype.getLocalizableStringText=function(e,t){void 0===t&&(t="");var n=this.getLocalizableString(e);if(!n)return"";var r=n.text;return r||t},e.prototype.setLocalizableStringText=function(e,t){var n=this.getLocalizableString(e);if(n){var r=n.text;r!==t&&(n.text=t,this.propertyValueChanged(e,r,t))}},e.prototype.addUsedLocales=function(e){if(this.localizableStrings)for(var t in this.localizableStrings){var n=this.getLocalizableString(t);n&&this.AddLocStringToUsedLocales(n,e)}if(this.arraysInfo)for(var t in this.arraysInfo){var r=this.getPropertyValue(t);if(r&&r.length)for(var o=0;o<r.length;o++){var n=r[o];n&&n.addUsedLocales&&n.addUsedLocales(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(e){e.locOwner=t});return this.arraysInfo[e].isItemValues=!0,n},e.prototype.notifyArrayChanged=function(e){!!e.onArrayChanged&&e.onArrayChanged()},e.prototype.createNewArray=function(e,t,o){void 0===t&&(t=null),void 0===o&&(o=null);var i=new Array;this.setPropertyValueCore(this.propertyHash,e,i),this.arraysInfo||(this.arraysInfo={}),this.arraysInfo[e]={onPush:t,isItemValues:!1};var a=this;return i.push=function(n){var r=Object.getPrototypeOf(i).push.call(i,n);return t&&t(n,i.length-1),a.propertyValueChanged(e,i,i),a.notifyArrayChanged(i),r},i.unshift=function(n){var r=Object.getPrototypeOf(i).unshift.call(i,n);return t&&t(n,i.length-1),a.propertyValueChanged(e,i,i),a.notifyArrayChanged(i),r},i.pop=function(){var t=Object.getPrototypeOf(i).pop.call(i);return o&&o(t),a.propertyValueChanged(e,i,i),a.notifyArrayChanged(i),t},i.splice=function(s,l){for(var u,c=[],p=2;p<arguments.length;p++)c[p-2]=arguments[p];s||(s=0),l||(l=0);var d=(u=Object.getPrototypeOf(i).splice).call.apply(u,n.i(r.d)([i,s,l],c));if(c||(c=[]),o&&d)for(var h=0;h<d.length;h++)o(d[h]);if(t)for(var h=0;h<c.length;h++)t(c[h],s+h);return a.propertyValueChanged(e,i,i),a.notifyArrayChanged(i),d},i},e.prototype.getItemValueType=function(){},e.prototype.setArray=function(t,n,r,o){if(Object.getPrototypeOf(t).splice.call(t,0,t.length),!n)return void this.notifyArrayChanged(t);for(var i=0;i<n.length;i++){var a=n[i];r&&e.createItemValue&&(a=e.createItemValue(a,this.getItemValueType())),Object.getPrototypeOf(t).push.call(t,a),o&&o(t[i])}this.notifyArrayChanged(t)},e.prototype.isTwoValueEquals=function(e,t,n){return void 0===n&&(n=!1),n&&(e=this.getValueInLowCase(e),t=this.getValueInLowCase(t)),i.a.isTwoValueEquals(e,t)},e.prototype.getValueInLowCase=function(e){return e&&"string"==typeof e?e.toLowerCase():e},e}(),u=function(){function e(e,t){void 0===e&&(e=null),void 0===t&&(t=null),this.text=e,this.errorOwner=t,this.visible=!0}return Object.defineProperty(e.prototype,"locText",{get:function(){return this.locTextValue||(this.locTextValue=new o.a(this.errorOwner,!0),this.locTextValue.text=this.getText()),this.locTextValue},enumerable:!0,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}(),c=function(e){function t(t){var n=e.call(this)||this;n.selectedElementInDesignValue=n,n.name=t,n.createNewArray("errors");var r=n;return n.registerFunctionOnPropertyValueChanged("isReadOnly",function(){r.onReadOnlyChanged()}),n}return n.i(r.b)(t,e),t.ScrollElementToTop=function(e){if(!e)return!1;var t=document.getElementById(e);if(!t||!t.scrollIntoView)return!1;var n=t.getBoundingClientRect().top;return n<0&&t.scrollIntoView(),n<0},t.GetFirstNonTextElement=function(e){if(e&&e.length){for(var t=0;t<e.length;t++)if("#text"!=e[t].nodeName&&"#comment"!=e[t].nodeName)return e[t];return null}},t.FocusElement=function(e){if(!e)return!1;var t=document.getElementById(e);return!!t&&(t.focus(),!0)},t.prototype.setSurveyImpl=function(e){this.surveyImplValue=e,this.surveyImplValue&&(this.surveyDataValue=this.surveyImplValue.geSurveyData(),this.surveyValue=this.surveyImplValue.getSurvey(),this.textProcessorValue=this.surveyImplValue.getTextProcessor(),this.onSetData())},Object.defineProperty(t.prototype,"surveyImpl",{get:function(){return this.surveyImplValue},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"data",{get:function(){return this.surveyDataValue},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"survey",{get:function(){return this.surveyValue?this.surveyValue:(this.surveyImplValue&&(this.surveyValue=this.surveyImplValue.getSurvey()),this.surveyValue)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"isDesignMode",{get:function(){return!!this.survey&&this.survey.isDesignMode},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"areInvisibleElementsShowing",{get:function(){return!!this.survey&&this.survey.areInvisibleElementsShowing},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"isVisible",{get:function(){return!0},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"isReadOnly",{get:function(){return!1},enumerable:!0,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:!0,configurable:!0}),t.prototype.onReadOnlyChanged=function(){this.readOnlyChangedCallback&&this.readOnlyChangedCallback()},Object.defineProperty(t.prototype,"isLoadingFromJson",{get:function(){return!!this.isLoadingFromJsonValue||!!this.survey&&this.survey.isLoadingFromJson},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"name",{get:function(){return this.getPropertyValue("name","")},set:function(e){var t=this.name;this.setPropertyValue("name",e),!this.isLoadingFromJson&&t&&this.onNameChanged(t)},enumerable:!0,configurable:!0}),t.prototype.onNameChanged=function(e){},Object.defineProperty(t.prototype,"errors",{get:function(){return this.getPropertyValue("errors")},set:function(e){this.setPropertyValue("errors",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"containsErrors",{get:function(){return this.getPropertyValue("containsErrors",!1)},enumerable:!0,configurable:!0}),t.prototype.updateContainsErrors=function(){this.setPropertyValue("containsErrors",this.getContainsErrors())},t.prototype.getContainsErrors=function(){return this.errors.length>0},t.prototype.getElementsInDesign=function(e){return void 0===e&&(e=!1),[]},Object.defineProperty(t.prototype,"selectedElementInDesign",{get:function(){return this.selectedElementInDesignValue},set:function(e){this.selectedElementInDesignValue=e},enumerable:!0,configurable:!0}),t.prototype.updateCustomWidgets=function(){},t.prototype.onSurveyLoad=function(){},t.prototype.onFirstRendering=function(){},t.prototype.endLoadingFromJson=function(){e.prototype.endLoadingFromJson.call(this),this.survey||this.onSurveyLoad()},t.prototype.setVisibleIndex=function(e){return 0},Object.defineProperty(t.prototype,"isPage",{get:function(){return!1},enumerable:!0,configurable:!0}),t.prototype.delete=function(){},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:!0,configurable:!0}),t.prototype.getProcessedHtml=function(e){return e&&this.textProcessor?this.textProcessor.processText(e,!0):e},t.prototype.onSetData=function(){},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 i.a.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){this.getPage(e)!==t&&(e&&e.removeElement(this),t&&t.addElement(this,-1))},t.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}},t.prototype.copyCssClasses=function(e,n){n&&("string"==typeof n||n instanceof String?e.root=n:t.copyObject(e,n))},t}(l),p=function(){function e(){}return Object.defineProperty(e.prototype,"isEmpty",{get:function(){return null==this.callbacks||0==this.callbacks.length},enumerable:!0,configurable:!0}),e.prototype.fire=function(e,t){if(null!=this.callbacks)for(var n=0;n<this.callbacks.length;n++){this.callbacks[n](e,t)}},e.prototype.clear=function(){this.callbacks=[]},e.prototype.add=function(e){this.hasFunc(e)||(null==this.callbacks&&(this.callbacks=new Array),this.callbacks.push(e))},e.prototype.remove=function(e){if(this.hasFunc(e)){var t=this.callbacks.indexOf(e,0);this.callbacks.splice(t,1)}},e.prototype.hasFunc=function(e){return null!=this.callbacks&&this.callbacks.indexOf(e,0)>-1},e}()},function(e,t,n){var r,o,i;/*! * Knockout JavaScript library v3.5.0 * (c) The Knockout.js team - http://knockoutjs.com/ * License: MIT (http://www.opensource.org/licenses/mit-license.php) */ !function(){!function(a){var s=this||(0,eval)("this"),l=s.document,u=s.navigator,c=s.jQuery,p=s.JSON;c||"undefined"==typeof jQuery||(c=jQuery),function(a){o=[t,n],r=a,void 0!==(i="function"==typeof r?r.apply(t,o):r)&&(e.exports=i)}(function(e,t){function n(e,t){return(null===e||typeof e in m)&&e===t}function r(e,t){var n;return function(){n||(n=f.a.setTimeout(function(){n=a,e()},t))}}function o(e,t){var n;return function(){clearTimeout(n),n=f.a.setTimeout(e,t)}}function i(e,t){t&&"change"!==t?"beforeChange"===t?this.oc(e):this.bb(e,t):this.pc(e)}function d(e,t){null!==t&&t.s&&t.s()}function h(e,t){var n=this.pd,r=n[x];r.qa||(this.Pb&&this.kb[t]?(n.tc(t,e,this.kb[t]),this.kb[t]=null,--this.Pb):r.F[t]||n.tc(t,e,r.G?{da:e}:n.Zc(e)),e.Ka&&e.fd())}var f=void 0!==e?e:{};f.b=function(e,t){for(var n=e.split("."),r=f,o=0;o<n.length-1;o++)r=r[n[o]];r[n[n.length-1]]=t},f.J=function(e,t,n){e[t]=n},f.version="3.5.0",f.b("version",f.version),f.options={deferUpdates:!1,useOnlyNativeEvents:!1,foreachHidesDestroyed:!1},f.a=function(){function e(e,t){for(var n in e)o.call(e,n)&&t(n,e[n])}function t(e,t){if(t)for(var n in t)o.call(t,n)&&(e[n]=t[n]);return e}function n(e,t){return e.__proto__=t,e}function r(e,t,n,r){var o=e[t].match(b)||[];f.a.C(n.match(b),function(e){f.a.Oa(o,e,r)}),e[t]=o.join(" ")}var o=Object.prototype.hasOwnProperty,i={__proto__:[]}instanceof Array,d="function"==typeof Symbol,h={},m={};h[u&&/Firefox\/2/i.test(u.userAgent)?"KeyboardEvent":"UIEvents"]=["keyup","keydown","keypress"],h.MouseEvents="click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave".split(" "),e(h,function(e,t){if(t.length)for(var n=0,r=t.length;n<r;n++)m[t[n]]=e});var g,y={propertychange:!0},v=l&&function(){for(var e=3,t=l.createElement("div"),n=t.getElementsByTagName("i");t.innerHTML="\x3c!--[if gt IE "+ ++e+"]><i></i><![endif]--\x3e",n[0];);return 4<e?e:a}(),b=/\S+/g;return{Ic:["authenticity_token",/^__RequestVerificationToken(_.*)?$/],C:function(e,t,n){for(var r=0,o=e.length;r<o;r++)t.call(n,e[r],r,e)},A:"function"==typeof Array.prototype.indexOf?function(e,t){return Array.prototype.indexOf.call(e,t)}:function(e,t){for(var n=0,r=e.length;n<r;n++)if(e[n]===t)return n;return-1},Lb:function(e,t,n){for(var r=0,o=e.length;r<o;r++)if(t.call(n,e[r],r,e))return e[r];return a},hb:function(e,t){var n=f.a.A(e,t);0<n?e.splice(n,1):0===n&&e.shift()},vc:function(e){var t=[];return e&&f.a.C(e,function(e){0>f.a.A(t,e)&&t.push(e)}),t},Mb:function(e,t,n){var r=[];if(e)for(var o=0,i=e.length;o<i;o++)r.push(t.call(n,e[o],o));return r},fb:function(e,t,n){var r=[];if(e)for(var o=0,i=e.length;o<i;o++)t.call(n,e[o],o)&&r.push(e[o]);return r},gb:function(e,t){if(t instanceof Array)e.push.apply(e,t);else for(var n=0,r=t.length;n<r;n++)e.push(t[n]);return e},Oa:function(e,t,n){var r=f.a.A(f.a.$b(e),t);0>r?n&&e.push(t):n||e.splice(r,1)},Ba:i,extend:t,setPrototypeOf:n,zb:i?n:t,O:e,Ha:function(e,t,n){if(!e)return e;var r,i={};for(r in e)o.call(e,r)&&(i[r]=t.call(n,e[r],r,e));return i},Sb:function(e){for(;e.firstChild;)f.removeNode(e.firstChild)},Xb:function(e){e=f.a.la(e);for(var t=(e[0]&&e[0].ownerDocument||l).createElement("div"),n=0,r=e.length;n<r;n++)t.appendChild(f.na(e[n]));return t},Ca:function(e,t){for(var n=0,r=e.length,o=[];n<r;n++){var i=e[n].cloneNode(!0);o.push(t?f.na(i):i)}return o},ua:function(e,t){if(f.a.Sb(e),t)for(var n=0,r=t.length;n<r;n++)e.appendChild(t[n])},Wc:function(e,t){var n=e.nodeType?[e]:e;if(0<n.length){for(var r=n[0],o=r.parentNode,i=0,a=t.length;i<a;i++)o.insertBefore(t[i],r);for(i=0,a=n.length;i<a;i++)f.removeNode(n[i])}},Ua:function(e,t){if(e.length){for(t=8===t.nodeType&&t.parentNode||t;e.length&&e[0].parentNode!==t;)e.splice(0,1);for(;1<e.length&&e[e.length-1].parentNode!==t;)e.length--;if(1<e.length){var n=e[0],r=e[e.length-1];for(e.length=0;n!==r;)e.push(n),n=n.nextSibling;e.push(r)}}return e},Yc:function(e,t){7>v?e.setAttribute("selected",t):e.selected=t},Cb:function(e){return null===e||e===a?"":e.trim?e.trim():e.toString().replace(/^[\s\xa0]+|[\s\xa0]+$/g,"")},Td:function(e,t){return e=e||"",!(t.length>e.length)&&e.substring(0,t.length)===t},ud:function(e,t){if(e===t)return!0;if(11===e.nodeType)return!1;if(t.contains)return t.contains(1!==e.nodeType?e.parentNode:e);if(t.compareDocumentPosition)return 16==(16&t.compareDocumentPosition(e));for(;e&&e!=t;)e=e.parentNode;return!!e},Rb:function(e){return f.a.ud(e,e.ownerDocument.documentElement)},jd:function(e){return!!f.a.Lb(e,f.a.Rb)},P:function(e){return e&&e.tagName&&e.tagName.toLowerCase()},zc:function(e){return f.onError?function(){try{return e.apply(this,arguments)}catch(e){throw f.onError&&f.onError(e),e}}:e},setTimeout:function(e,t){return setTimeout(f.a.zc(e),t)},Fc:function(e){setTimeout(function(){throw f.onError&&f.onError(e),e},0)},H:function(e,t,n){var r=f.a.zc(n);if(n=y[t],f.options.useOnlyNativeEvents||n||!c)if(n||"function"!=typeof e.addEventListener){if(void 0===e.attachEvent)throw Error("Browser doesn't support addEventListener or attachEvent");var o=function(t){r.call(e,t)},i="on"+t;e.attachEvent(i,o),f.a.I.za(e,function(){e.detachEvent(i,o)})}else e.addEventListener(t,r,!1);else g||(g="function"==typeof c(e).on?"on":"bind"),c(e)[g](t,r)},Fb:function(e,t){if(!e||!e.nodeType)throw Error("element must be a DOM node when calling triggerEvent");var n;if("input"===f.a.P(e)&&e.type&&"click"==t.toLowerCase()?(n=e.type,n="checkbox"==n||"radio"==n):n=!1,f.options.useOnlyNativeEvents||!c||n)if("function"==typeof l.createEvent){if("function"!=typeof e.dispatchEvent)throw Error("The supplied element doesn't support dispatchEvent");n=l.createEvent(m[t]||"HTMLEvents"),n.initEvent(t,!0,!0,s,0,0,0,0,0,!1,!1,!1,!1,0,e),e.dispatchEvent(n)}else if(n&&e.click)e.click();else{if(void 0===e.fireEvent)throw Error("Browser doesn't support triggering events");e.fireEvent("on"+t)}else c(e).trigger(t)},c:function(e){return f.N(e)?e():e},$b:function(e){return f.N(e)?e.w():e},Eb:function(e,t,n){var o;t&&("object"==typeof e.classList?(o=e.classList[n?"add":"remove"],f.a.C(t.match(b),function(t){o.call(e.classList,t)})):"string"==typeof e.className.baseVal?r(e.className,"baseVal",t,n):r(e,"className",t,n))},Ab:function(e,t){var n=f.a.c(t);null!==n&&n!==a||(n="");var r=f.h.firstChild(e);!r||3!=r.nodeType||f.h.nextSibling(r)?f.h.ua(e,[e.ownerDocument.createTextNode(n)]):r.data=n,f.a.zd(e)},Xc:function(e,t){if(e.name=t,7>=v)try{var n=e.name.replace(/[&<>'"]/g,function(e){return"&#"+e.charCodeAt(0)+";"});e.mergeAttributes(l.createElement("<input name='"+n+"'/>"),!1)}catch(e){}},zd:function(e){9<=v&&(e=1==e.nodeType?e:e.parentNode,e.style&&(e.style.zoom=e.style.zoom))},vd:function(e){if(v){var t=e.style.width;e.style.width=0,e.style.width=t}},Od:function(e,t){e=f.a.c(e),t=f.a.c(t);for(var n=[],r=e;r<=t;r++)n.push(r);return n},la:function(e){for(var t=[],n=0,r=e.length;n<r;n++)t.push(e[n]);return t},Da:function(e){return d?Symbol(e):e},Xd:6===v,Yd:7===v,W:v,Kc:function(e,t){for(var n=f.a.la(e.getElementsByTagName("input")).concat(f.a.la(e.getElementsByTagName("textarea"))),r="string"==typeof t?function(e){return e.name===t}:function(e){return t.test(e.name)},o=[],i=n.length-1;0<=i;i--)r(n[i])&&o.push(n[i]);return o},Md:function(e){return"string"==typeof e&&(e=f.a.Cb(e))?p&&p.parse?p.parse(e):new Function("return "+e)():null},fc:function(e,t,n){if(!p||!p.stringify)throw Error("Cannot find JSON.stringify(). Some browsers (e.g., IE < 8) don't support it natively, but you can overcome this by adding a script reference to json2.js, downloadable from http://www.json.org/json2.js");return p.stringify(f.a.c(e),t,n)},Nd:function(t,n,r){r=r||{};var o=r.params||{},i=r.includeFields||this.Ic,a=t;if("object"==typeof t&&"form"===f.a.P(t))for(var a=t.action,s=i.length-1;0<=s;s--)for(var u=f.a.Kc(t,i[s]),c=u.length-1;0<=c;c--)o[u[c].name]=u[c].value;n=f.a.c(n);var p=l.createElement("form");p.style.display="none",p.action=a,p.method="post";for(var d in n)t=l.createElement("input"),t.type="hidden",t.name=d,t.value=f.a.fc(f.a.c(n[d])),p.appendChild(t);e(o,function(e,t){var n=l.createElement("input");n.type="hidden",n.name=e,n.value=t,p.appendChild(n)}),l.body.appendChild(p),r.submitter?r.submitter(p):p.submit(),setTimeout(function(){p.parentNode.removeChild(p)},0)}}}(),f.b("utils",f.a),f.b("utils.arrayForEach",f.a.C),f.b("utils.arrayFirst",f.a.Lb),f.b("utils.arrayFilter",f.a.fb),f.b("utils.arrayGetDistinctValues",f.a.vc),f.b("utils.arrayIndexOf",f.a.A),f.b("utils.arrayMap",f.a.Mb),f.b("utils.arrayPushAll",f.a.gb),f.b("utils.arrayRemoveItem",f.a.hb),f.b("utils.cloneNodes",f.a.Ca),f.b("utils.createSymbolOrString",f.a.Da),f.b("utils.extend",f.a.extend),f.b("utils.fieldsIncludedWithJsonPost",f.a.Ic),f.b("utils.getFormFields",f.a.Kc),f.b("utils.objectMap",f.a.Ha),f.b("utils.peekObservable",f.a.$b),f.b("utils.postJson",f.a.Nd),f.b("utils.parseJson",f.a.Md),f.b("utils.registerEventHandler",f.a.H),f.b("utils.stringifyJson",f.a.fc),f.b("utils.range",f.a.Od),f.b("utils.toggleDomNodeCssClass",f.a.Eb),f.b("utils.triggerEvent",f.a.Fb),f.b("utils.unwrapObservable",f.a.c),f.b("utils.objectForEach",f.a.O),f.b("utils.addOrRemoveItem",f.a.Oa),f.b("utils.setTextContent",f.a.Ab),f.b("unwrap",f.a.c),Function.prototype.bind||(Function.prototype.bind=function(e){var t=this;if(1===arguments.length)return function(){return t.apply(e,arguments)};var n=Array.prototype.slice.call(arguments,1);return function(){var r=n.slice(0);return r.push.apply(r,arguments),t.apply(e,r)}}),f.a.g=new function(){var e,t,n=0,r="__ko__"+(new Date).getTime(),o={};return f.a.W?(e=function(e,t){var i=e[r];if(!i||"null"===i||!o[i]){if(!t)return a;i=e[r]="ko"+n++,o[i]={}}return o[i]},t=function(e){var t=e[r];return!!t&&(delete o[t],e[r]=null,!0)}):(e=function(e,t){var n=e[r];return!n&&t&&(n=e[r]={}),n},t=function(e){return!!e[r]&&(delete e[r],!0)}),{get:function(t,n){var r=e(t,!1);return r&&r[n]},set:function(t,n,r){(t=e(t,r!==a))&&(t[n]=r)},Tb:function(t,n,r){return t=e(t,!0),t[n]||(t[n]=r)},clear:t,Z:function(){return n+++r}}},f.b("utils.domData",f.a.g),f.b("utils.domData.clear",f.a.g.clear),f.a.I=new function(){function e(e,t){var n=f.a.g.get(e,r);return n===a&&t&&(n=[],f.a.g.set(e,r,n)),n}function t(t){var r=e(t,!1);if(r)for(var r=r.slice(0),o=0;o<r.length;o++)r[o](t);f.a.g.clear(t),f.a.I.cleanExternalData(t),i[t.nodeType]&&n(t.childNodes,!0)}function n(e,n){for(var r,o=[],i=0;i<e.length;i++)if((!n||8===e[i].nodeType)&&(t(o[o.length]=r=e[i]),e[i]!==r))for(;i--&&-1==f.a.A(o,e[i]););}var r=f.a.g.Z(),o={1:!0,8:!0,9:!0},i={1:!0,9:!0};return{za:function(t,n){if("function"!=typeof n)throw Error("Callback must be a function");e(t,!0).push(n)},xb:function(t,n){var o=e(t,!1);o&&(f.a.hb(o,n),0==o.length&&f.a.g.set(t,r,a))},na:function(e){return o[e.nodeType]&&(t(e),i[e.nodeType]&&n(e.getElementsByTagName("*"))),e},removeNode:function(e){f.na(e),e.parentNode&&e.parentNode.removeChild(e)},cleanExternalData:function(e){c&&"function"==typeof c.cleanData&&c.cleanData([e])}}},f.na=f.a.I.na,f.removeNode=f.a.I.removeNode,f.b("cleanNode",f.na),f.b("removeNode",f.removeNode),f.b("utils.domNodeDisposal",f.a.I),f.b("utils.domNodeDisposal.addDisposeCallback",f.a.I.za),f.b("utils.domNodeDisposal.removeDisposeCallback",f.a.I.xb),function(){var e=[0,"",""],t=[1,"<table>","</table>"],n=[3,"<table><tbody><tr>","</tr></tbody></table>"],r=[1,"<select multiple='multiple'>","</select>"],o={thead:t,tbody:t,tfoot:t,tr:[2,"<table><tbody>","</tbody></table>"],td:n,th:n,option:r,optgroup:r},i=8>=f.a.W;f.a.ta=function(t,n){var r;if(c){if(c.parseHTML)r=c.parseHTML(t,n)||[];else if((r=c.clean([t],n))&&r[0]){for(var a=r[0];a.parentNode&&11!==a.parentNode.nodeType;)a=a.parentNode;a.parentNode&&a.parentNode.removeChild(a)}}else{(r=n)||(r=l);var u,a=r.parentWindow||r.defaultView||s,p=f.a.Cb(t).toLowerCase(),d=r.createElement("div");for(u=(p=p.match(/^(?:\x3c!--.*?--\x3e\s*?)*?<([a-z]+)[\s>]/))&&o[p[1]]||e,p=u[0],u="ignored<div>"+u[1]+t+u[2]+"</div>","function"==typeof a.innerShiv?d.appendChild(a.innerShiv(u)):(i&&r.body.appendChild(d),d.innerHTML=u,i&&d.parentNode.removeChild(d));p--;)d=d.lastChild;r=f.a.la(d.lastChild.childNodes)}return r},f.a.Ld=function(e,t){var n=f.a.ta(e,t);return n.length&&n[0].parentElement||f.a.Xb(n)},f.a.dc=function(e,t){if(f.a.Sb(e),null!==(t=f.a.c(t))&&t!==a)if("string"!=typeof t&&(t=t.toString()),c)c(e).html(t);else for(var n=f.a.ta(t,e.ownerDocument),r=0;r<n.length;r++)e.appendChild(n[r])}}(),f.b("utils.parseHtmlFragment",f.a.ta),f.b("utils.setHtml",f.a.dc),f.aa=function(){function e(t,n){if(t)if(8==t.nodeType){var r=f.aa.Tc(t.nodeValue);null!=r&&n.push({sd:t,Jd:r})}else if(1==t.nodeType)for(var r=0,o=t.childNodes,i=o.length;r<i;r++)e(o[r],n)}var t={};return{Wb:function(e){if("function"!=typeof e)throw Error("You can only pass a function to ko.memoization.memoize()");var n=(4294967296*(1+Math.random())|0).toString(16).substring(1)+(4294967296*(1+Math.random())|0).toString(16).substring(1);return t[n]=e,"\x3c!--[ko_memo:"+n+"]--\x3e"},ad:function(e,n){var r=t[e];if(r===a)throw Error("Couldn't find any memo with ID "+e+". Perhaps it's already been unmemoized.");try{return r.apply(null,n||[]),!0}finally{delete t[e]}},bd:function(t,n){var r=[];e(t,r);for(var o=0,i=r.length;o<i;o++){var a=r[o].sd,s=[a];n&&f.a.gb(s,n),f.aa.ad(r[o].Jd,s),a.nodeValue="",a.parentNode&&a.parentNode.removeChild(a)}},Tc:function(e){return(e=e.match(/^\[ko_memo\:(.*?)\]$/))?e[1]:null}}}(),f.b("memoization",f.aa),f.b("memoization.memoize",f.aa.Wb),f.b("memoization.unmemoize",f.aa.ad),f.b("memoization.parseMemoText",f.aa.Tc),f.b("memoization.unmemoizeDomNodeAndDescendants",f.aa.bd),f.ma=function(){function e(){if(o)for(var e,t=o,n=0;a<o;)if(e=r[a++]){if(a>t){if(5e3<=++n){a=o,f.a.Fc(Error("'Too much recursion' after processing "+n+" task groups."));break}t=o}try{e()}catch(e){f.a.Fc(e)}}}function t(){e(),a=o=r.length=0}var n,r=[],o=0,i=1,a=0;return n=s.MutationObserver?function(e){var t=l.createElement("div");return new MutationObserver(e).observe(t,{attributes:!0}),function(){t.classList.toggle("foo")}}(t):l&&"onreadystatechange"in l.createElement("script")?function(e){var t=l.createElement("script");t.onreadystatechange=function(){t.onreadystatechange=null,l.documentElement.removeChild(t),t=null,e()},l.documentElement.appendChild(t)}:function(e){setTimeout(e,0)},{scheduler:n,yb:function(e){return o||f.ma.scheduler(t),r[o++]=e,i++},cancel:function(e){(e-=i-o)>=a&&e<o&&(r[e]=null)},resetForTesting:function(){var e=o-a;return a=o=r.length=0,e},Rd:e}}(),f.b("tasks",f.ma),f.b("tasks.schedule",f.ma.yb),f.b("tasks.runEarly",f.ma.Rd),f.Ta={throttle:function(e,t){e.throttleEvaluation=t;var n=null;return f.$({read:e,write:function(r){clearTimeout(n),n=f.a.setTimeout(function(){e(r)},t)}})},rateLimit:function(e,t){var n,i,a;"number"==typeof t?n=t:(n=t.timeout,i=t.method),e.Hb=!1,a="function"==typeof i?i:"notifyWhenChangesStop"==i?o:r,e.tb(function(e){return a(e,n,t)})},deferred:function(e,t){if(!0!==t)throw Error("The 'deferred' extender only accepts the value 'true', because it is not supported to turn deferral off once enabled.");e.Hb||(e.Hb=!0,e.tb(function(t){var n,r=!1;return function(){if(!r){f.ma.cancel(n),n=f.ma.yb(t);try{r=!0,e.notifySubscribers(a,"dirty")}finally{r=!1}}}}))},notify:function(e,t){e.equalityComparer="always"==t?null:n}};var m={undefined:1,boolean:1,number:1,string:1};f.b("extenders",f.Ta),f.gc=function(e,t,n){this.da=e,this.kc=t,this.lc=n,this.Ib=!1,this.ab=this.Jb=null,f.J(this,"dispose",this.s),f.J(this,"disposeWhenNodeIsRemoved",this.l)},f.gc.prototype.s=function(){this.Ib||(this.ab&&f.a.I.xb(this.Jb,this.ab),this.Ib=!0,this.lc(),this.da=this.kc=this.lc=this.Jb=this.ab=null)},f.gc.prototype.l=function(e){this.Jb=e,f.a.I.za(e,this.ab=this.s.bind(this))},f.R=function(){f.a.zb(this,g),g.ob(this)};var g={ob:function(e){e.S={change:[]},e.rc=1},subscribe:function(e,t,n){var r=this;n=n||"change";var o=new f.gc(r,t?e.bind(t):e,function(){f.a.hb(r.S[n],o),r.cb&&r.cb(n)});return r.Qa&&r.Qa(n),r.S[n]||(r.S[n]=[]),r.S[n].push(o),o},notifySubscribers:function(e,t){if(t=t||"change","change"===t&&this.Gb(),this.Wa(t)){var n="change"===t&&this.dd||this.S[t].slice(0);try{f.v.wc();for(var r,o=0;r=n[o];++o)r.Ib||r.kc(e)}finally{f.v.end()}}},mb:function(){return this.rc},Cd:function(e){return this.mb()!==e},Gb:function(){++this.rc},tb:function(e){var t,n,r,o,a,s=this,l=f.N(s);s.bb||(s.bb=s.notifySubscribers,s.notifySubscribers=i);var u=e(function(){s.Ka=!1,l&&o===s&&(o=s.mc?s.mc():s());var e=n||a&&s.qb(r,o);a=n=t=!1,e&&s.bb(r=o)});s.pc=function(e,n){n&&s.Ka||(a=!n),s.dd=s.S.change.slice(0),s.Ka=t=!0,o=e,u()},s.oc=function(e){t||(r=e,s.bb(e,"beforeChange"))},s.qc=function(){a=!0},s.fd=function(){s.qb(r,s.w(!0))&&(n=!0)}},Wa:function(e){return this.S[e]&&this.S[e].length},Ad:function(e){if(e)return this.S[e]&&this.S[e].length||0;var t=0;return f.a.O(this.S,function(e,n){"dirty"!==e&&(t+=n.length)}),t},qb:function(e,t){return!this.equalityComparer||!this.equalityComparer(e,t)},toString:function(){return"[object Object]"},extend:function(e){var t=this;return e&&f.a.O(e,function(e,n){var r=f.Ta[e];"function"==typeof r&&(t=r(t,n)||t)}),t}};f.J(g,"init",g.ob),f.J(g,"subscribe",g.subscribe),f.J(g,"extend",g.extend),f.J(g,"getSubscriptionsCount",g.Ad),f.a.Ba&&f.a.setPrototypeOf(g,Function.prototype),f.R.fn=g,f.Pc=function(e){return null!=e&&"function"==typeof e.subscribe&&"function"==typeof e.notifySubscribers},f.b("subscribable",f.R),f.b("isSubscribable",f.Pc),f.U=f.v=function(){function e(e){r.push(n),n=e}function t(){n=r.pop()}var n,r=[],o=0;return{wc:e,end:t,ac:function(e){if(n){if(!f.Pc(e))throw Error("Only subscribable things can act as dependencies");n.nd.call(n.od,e,e.ed||(e.ed=++o))}},K:function(n,r,o){try{return e(),n.apply(r,o||[])}finally{t()}},pa:function(){if(n)return n.o.pa()},Va:function(){if(n)return n.o.Va()},rb:function(){if(n)return n.rb},o:function(){if(n)return n.o}}}(),f.b("computedContext",f.U),f.b("computedContext.getDependenciesCount",f.U.pa),f.b("computedContext.getDependencies",f.U.Va),f.b("computedContext.isInitial",f.U.rb),f.b("computedContext.registerDependency",f.U.ac),f.b("ignoreDependencies",f.Wd=f.v.K);var y=f.a.Da("_latestValue");f.sa=function(e){function t(){return 0<arguments.length?(t.qb(t[y],arguments[0])&&(t.xa(),t[y]=arguments[0],t.wa()),this):(f.v.ac(t),t[y])}return t[y]=e,f.a.Ba||f.a.extend(t,f.R.fn),f.R.fn.ob(t),f.a.zb(t,v),f.options.deferUpdates&&f.Ta.deferred(t,!0),t};var v={equalityComparer:n,w:function(){return this[y]},wa:function(){this.notifySubscribers(this[y],"spectate"),this.notifySubscribers(this[y])},xa:function(){this.notifySubscribers(this[y],"beforeChange")}};f.a.Ba&&f.a.setPrototypeOf(v,f.R.fn);var b=f.sa.Na="__ko_proto__";v[b]=f.sa,f.N=function(e){if((e="function"==typeof e&&e[b])&&e!==v[b]&&e!==f.o.fn[b])throw Error("Invalid object that looks like an observable; possibly from another Knockout instance");return!!e},f.Ya=function(e){return"function"==typeof e&&(e[b]===v[b]||e[b]===f.o.fn[b]&&e.Mc)},f.b("observable",f.sa),f.b("isObservable",f.N),f.b("isWriteableObservable",f.Ya),f.b("isWritableObservable",f.Ya),f.b("observable.fn",v),f.J(v,"peek",v.w),f.J(v,"valueHasMutated",v.wa),f.J(v,"valueWillMutate",v.xa),f.Ia=function(e){if("object"!=typeof(e=e||[])||!("length"in e))throw Error("The argument passed when initializing an observable array must be an array, or null, or undefined.");return e=f.sa(e),f.a.zb(e,f.Ia.fn),e.extend({trackArrayChanges:!0})},f.Ia.fn={remove:function(e){for(var t=this.w(),n=[],r="function"!=typeof e||f.N(e)?function(t){return t===e}:e,o=0;o<t.length;o++){var i=t[o];if(r(i)){if(0===n.length&&this.xa(),t[o]!==i)throw Error("Array modified during remove; cannot remove item");n.push(i),t.splice(o,1),o--}}return n.length&&this.wa(),n},removeAll:function(e){if(e===a){var t=this.w(),n=t.slice(0);return this.xa(),t.splice(0,t.length),this.wa(),n}return e?this.remove(function(t){return 0<=f.a.A(e,t)}):[]},destroy:function(e){var t=this.w(),n="function"!=typeof e||f.N(e)?function(t){return t===e}:e;this.xa();for(var r=t.length-1;0<=r;r--){var o=t[r];n(o)&&(o._destroy=!0)}this.wa()},destroyAll:function(e){return e===a?this.destroy(function(){return!0}):e?this.destroy(function(t){return 0<=f.a.A(e,t)}):[]},indexOf:function(e){var t=this();return f.a.A(t,e)},replace:function(e,t){var n=this.indexOf(e);0<=n&&(this.xa(),this.w()[n]=t,this.wa())},sorted:function(e){var t=this().slice(0);return e?t.sort(e):t.sort()},reversed:function(){return this().slice(0).reverse()}},f.a.Ba&&f.a.setPrototypeOf(f.Ia.fn,f.sa.fn),f.a.C("pop push reverse shift sort splice unshift".split(" "),function(e){f.Ia.fn[e]=function(){var t=this.w();this.xa(),this.yc(t,e,arguments);var n=t[e].apply(t,arguments);return this.wa(),n===t?this:n}}),f.a.C(["slice"],function(e){f.Ia.fn[e]=function(){var t=this();return t[e].apply(t,arguments)}}),f.Oc=function(e){return f.N(e)&&"function"==typeof e.remove&&"function"==typeof e.push},f.b("observableArray",f.Ia),f.b("isObservableArray",f.Oc),f.Ta.trackArrayChanges=function(e,t){function n(){function t(){if(u){var t=[].concat(e.w()||[]);if(e.Wa("arrayChange")){var n;(!l||1<u)&&(l=f.a.Ob(o,t,e.Nb)),n=l}o=t,l=null,u=0,n&&n.length&&e.notifySubscribers(n,"arrayChange")}}s?t():(s=!0,i=e.notifySubscribers,e.notifySubscribers=function(e,t){return t&&"change"!==t||++u,i.apply(this,arguments)},o=[].concat(e.w()||[]),l=null,r=e.subscribe(t))}if(e.Nb={},t&&"object"==typeof t&&f.a.extend(e.Nb,t),e.Nb.sparse=!0,!e.yc){var r,o,i,s=!1,l=null,u=0,c=e.Qa,p=e.cb;e.Qa=function(t){c&&c.call(e,t),"arrayChange"===t&&n()},e.cb=function(t){p&&p.call(e,t),"arrayChange"!==t||e.Wa("arrayChange")||(i&&(e.notifySubscribers=i,i=a),r&&r.s(),r=null,s=!1,o=a)},e.yc=function(e,t,n){function r(e,t,n){return o[o.length]={status:e,value:t,index:n}}if(s&&!u){var o=[],i=e.length,a=n.length,c=0;switch(t){case"push":c=i;case"unshift":for(t=0;t<a;t++)r("added",n[t],c+t);break;case"pop":c=i-1;case"shift":i&&r("deleted",e[c],c);break;case"splice":t=Math.min(Math.max(0,0>n[0]?i+n[0]:n[0]),i);for(var i=1===a?i:Math.min(t+(n[1]||0),i),a=t+a-2,c=Math.max(i,a),p=[],d=[],h=2;t<c;++t,++h)t<i&&d.push(r("deleted",e[t],t)),t<a&&p.push(r("added",n[h],t));f.a.Jc(d,p);break;default:return}l=o}}}};var x=f.a.Da("_state");f.o=f.$=function(e,t,n){function r(){if(0<arguments.length){if("function"!=typeof o)throw Error("Cannot write a value to a ko.computed unless you specify a 'write' option. If you wish to read the current value, don't pass any parameters.");return o.apply(i.lb,arguments),this}return i.qa||f.v.ac(r),(i.ka||i.G&&r.Xa())&&r.ha(),i.X}if("object"==typeof e?n=e:(n=n||{},e&&(n.read=e)),"function"!=typeof n.read)throw Error("Pass a function that returns the value of the ko.computed");var o=n.write,i={X:a,ra:!0,ka:!0,pb:!1,hc:!1,qa:!1,vb:!1,G:!1,Vc:n.read,lb:t||n.owner,l:n.disposeWhenNodeIsRemoved||n.l||null,Sa:n.disposeWhen||n.Sa,Qb:null,F:{},V:0,Hc:null};return r[x]=i,r.Mc="function"==typeof o,f.a.Ba||f.a.extend(r,f.R.fn),f.R.fn.ob(r),f.a.zb(r,C),n.pure?(i.vb=!0,i.G=!0,f.a.extend(r,w)):n.deferEvaluation&&f.a.extend(r,P),f.options.deferUpdates&&f.Ta.deferred(r,!0),i.l&&(i.hc=!0,i.l.nodeType||(i.l=null)),i.G||n.deferEvaluation||r.ha(),i.l&&r.ja()&&f.a.I.za(i.l,i.Qb=function(){r.s()}),r};var C={equalityComparer:n,pa:function(){return this[x].V},Va:function(){var e=[];return f.a.O(this[x].F,function(t,n){e[n.La]=n.da}),e},Ub:function(e){if(!this[x].V)return!1;var t=this.Va();return-1!==f.a.A(t,e)||!!f.a.Lb(t,function(t){return t.Ub&&t.Ub(e)})},tc:function(e,t,n){if(this[x].vb&&t===this)throw Error("A 'pure' computed must not be called recursively");this[x].F[e]=n,n.La=this[x].V++,n.Ma=t.mb()},Xa:function(){var e,t,n=this[x].F;for(e in n)if(Object.prototype.hasOwnProperty.call(n,e)&&(t=n[e],this.Ja&&t.da.Ka||t.da.Cd(t.Ma)))return!0},Id:function(){this.Ja&&!this[x].pb&&this.Ja(!1)},ja:function(){var e=this[x];return e.ka||0<e.V},Qd:function(){this.Ka?this[x].ka&&(this[x].ra=!0):this.Gc()},Zc:function(e){if(e.Hb){var t=e.subscribe(this.Id,this,"dirty"),n=e.subscribe(this.Qd,this);return{da:e,s:function(){t.s(),n.s()}}}return e.subscribe(this.Gc,this)},Gc:function(){var e=this,t=e.throttleEvaluation;t&&0<=t?(clearTimeout(this[x].Hc),this[x].Hc=f.a.setTimeout(function(){e.ha(!0)},t)):e.Ja?e.Ja(!0):e.ha(!0)},ha:function(e){var t=this[x],n=t.Sa,r=!1;if(!t.pb&&!t.qa){if(t.l&&!f.a.Rb(t.l)||n&&n()){if(!t.hc)return void this.s()}else t.hc=!1;t.pb=!0;try{r=this.yd(e)}finally{t.pb=!1}return r}},yd:function(e){var t=this[x],n=!1,r=t.vb?a:!t.V,n={pd:this,kb:t.F,Pb:t.V};f.v.wc({od:n,nd:h,o:this,rb:r}),t.F={},t.V=0;var o=this.xd(t,n);return t.V?n=this.qb(t.X,o):(this.s(),n=!0),n&&(t.G?this.Gb():this.notifySubscribers(t.X,"beforeChange"),t.X=o,this.notifySubscribers(t.X,"spectate"),!t.G&&e&&this.notifySubscribers(t.X),this.qc&&this.qc()),r&&this.notifySubscribers(t.X,"awake"),n},xd:function(e,t){try{var n=e.Vc;return e.lb?n.call(e.lb):n()}finally{f.v.end(),t.Pb&&!e.G&&f.a.O(t.kb,d),e.ra=e.ka=!1}},w:function(e){var t=this[x];return(t.ka&&(e||!t.V)||t.G&&this.Xa())&&this.ha(),t.X},tb:function(e){f.R.fn.tb.call(this,e),this.mc=function(){return this[x].G||(this[x].ra?this.ha():this[x].ka=!1),this[x].X},this.Ja=function(e){this.oc(this[x].X),this[x].ka=!0,e&&(this[x].ra=!0),this.pc(this,!e)}},s:function(){var e=this[x];!e.G&&e.F&&f.a.O(e.F,function(e,t){t.s&&t.s()}),e.l&&e.Qb&&f.a.I.xb(e.l,e.Qb),e.F=a,e.V=0,e.qa=!0,e.ra=!1,e.ka=!1,e.G=!1,e.l=a,e.Sa=a,e.Vc=a,this.Mc||(e.lb=a)}},w={Qa:function(e){var t=this,n=t[x];if(!n.qa&&n.G&&"change"==e){if(n.G=!1,n.ra||t.Xa())n.F=null,n.V=0,t.ha()&&t.Gb();else{var r=[];f.a.O(n.F,function(e,t){r[t.La]=e}),f.a.C(r,function(e,r){var o=n.F[e],i=t.Zc(o.da);i.La=r,i.Ma=o.Ma,n.F[e]=i}),t.Xa()&&t.ha()&&t.Gb()}n.qa||t.notifySubscribers(n.X,"awake")}},cb:function(e){var t=this[x];t.qa||"change"!=e||this.Wa("change")||(f.a.O(t.F,function(e,n){n.s&&(t.F[e]={da:n.da,La:n.La,Ma:n.Ma},n.s())}),t.G=!0,this.notifySubscribers(a,"asleep"))},mb:function(){var e=this[x];return e.G&&(e.ra||this.Xa())&&this.ha(),f.R.fn.mb.call(this)}},P={Qa:function(e){"change"!=e&&"beforeChange"!=e||this.w()}};f.a.Ba&&f.a.setPrototypeOf(C,f.R.fn);var V=f.sa.Na;C[V]=f.o,f.Nc=function(e){return"function"==typeof e&&e[V]===C[V]},f.Ed=function(e){return f.Nc(e)&&e[x]&&e[x].vb},f.b("computed",f.o),f.b("dependentObservable",f.o),f.b("isComputed",f.Nc),f.b("isPureComputed",f.Ed),f.b("computed.fn",C),f.J(C,"peek",C.w),f.J(C,"dispose",C.s),f.J(C,"isActive",C.ja),f.J(C,"getDependenciesCount",C.pa),f.J(C,"getDependencies",C.Va),f.wb=function(e,t){return"function"==typeof e?f.o(e,t,{pure:!0}):(e=f.a.extend({},e),e.pure=!0,f.o(e,t))},f.b("pureComputed",f.wb),function(){function e(r,o,i){if(i=i||new n,"object"!=typeof(r=o(r))||null===r||r===a||r instanceof RegExp||r instanceof Date||r instanceof String||r instanceof Number||r instanceof Boolean)return r;var s=r instanceof Array?[]:{};return i.save(r,s),t(r,function(t){var n=o(r[t]);switch(typeof n){case"boolean":case"number":case"string":case"function":s[t]=n;break;case"object":case"undefined":var l=i.get(n);s[t]=l!==a?l:e(n,o,i)}}),s}function t(e,t){if(e instanceof Array){for(var n=0;n<e.length;n++)t(n);"function"==typeof e.toJSON&&t("toJSON")}else for(n in e)t(n)}function n(){this.keys=[],this.values=[]}f.$c=function(t){if(0==arguments.length)throw Error("When calling ko.toJS, pass the object you want to convert.");return e(t,function(e){for(var t=0;f.N(e)&&10>t;t++)e=e();return e})},f.toJSON=function(e,t,n){return e=f.$c(e),f.a.fc(e,t,n)},n.prototype={constructor:n,save:function(e,t){var n=f.a.A(this.keys,e);0<=n?this.values[n]=t:(this.keys.push(e),this.values.push(t))},get:function(e){return e=f.a.A(this.keys,e),0<=e?this.values[e]:a}}}(),f.b("toJS",f.$c),f.b("toJSON",f.toJSON),f.Vd=function(e,t,n){function r(t){var r=f.wb(e,n).extend({Ga:"always"}),o=r.subscribe(function(e){e&&(o.s(),t(e))});return r.notifySubscribers(r.w()),o}return"function"!=typeof Promise||t?r(t.bind(n)):new Promise(r)},f.b("when",f.Vd),function(){f.u={L:function(e){switch(f.a.P(e)){case"option":return!0===e.__ko__hasDomDataOptionValue__?f.a.g.get(e,f.f.options.Yb):7>=f.a.W?e.getAttributeNode("value")&&e.getAttributeNode("value").specified?e.value:e.text:e.value;case"select":return 0<=e.selectedIndex?f.u.L(e.options[e.selectedIndex]):a;default:return e.value}},ya:function(e,t,n){switch(f.a.P(e)){case"option":"string"==typeof t?(f.a.g.set(e,f.f.options.Yb,a),"__ko__hasDomDataOptionValue__"in e&&delete e.__ko__hasDomDataOptionValue__,e.value=t):(f.a.g.set(e,f.f.options.Yb,t),e.__ko__hasDomDataOptionValue__=!0,e.value="number"==typeof t?t:"");break;case"select":""!==t&&null!==t||(t=a);for(var r,o=-1,i=0,s=e.options.length;i<s;++i)if((r=f.u.L(e.options[i]))==t||""===r&&t===a){o=i;break}(n||0<=o||t===a&&1<e.size)&&(e.selectedIndex=o,6===f.a.W&&f.a.setTimeout(function(){e.selectedIndex=o},0));break;default:null!==t&&t!==a||(t=""),e.value=t}}}}(),f.b("selectExtensions",f.u),f.b("selectExtensions.readValue",f.u.L),f.b("selectExtensions.writeValue",f.u.ya),f.m=function(){function e(e){e=f.a.Cb(e),123===e.charCodeAt(0)&&(e=e.slice(1,-1)),e+="\n,";var t,n=[],a=e.match(r),s=[],l=0;if(1<a.length){for(var u,c=0;u=a[c];++c){var p=u.charCodeAt(0);if(44===p){if(0>=l){n.push(t&&s.length?{key:t,value:s.join("")}:{unknown:t||s.join("")}),t=l=0,s=[];continue}}else if(58===p){if(!l&&!t&&1===s.length){t=s.pop();continue}}else{if(47===p&&1<u.length&&(47===u.charCodeAt(1)||42===u.charCodeAt(1)))continue;47===p&&c&&1<u.length?(p=a[c-1].match(o))&&!i[p[0]]&&(e=e.substr(e.indexOf(u)+1),a=e.match(r),c=-1,u="/"):40===p||123===p||91===p?++l:41===p||125===p||93===p?--l:t||s.length||34!==p&&39!==p||(u=u.slice(1,-1))}s.push(u)}if(0<l)throw Error("Unbalanced parentheses, braces, or brackets")}return n}var t=["true","false","null","undefined"],n=/^(?:[$_a-z][$\w]*|(.+)(\.\s*[$_a-z][$\w]*|\[.+\]))$/i,r=RegExp("\"(?:\\\\.|[^\"])*\"|'(?:\\\\.|[^'])*'|`(?:\\\\.|[^`])*`|/\\*(?:[^*]|\\*+[^*/])*\\*+/|//.*\n|/(?:\\\\.|[^/])+/w*|[^\\s:,/][^,\"'`{}()/:[\\]]*[^\\s,\"'`{}()/:[\\]]|[^\\s]","g"),o=/[\])"'A-Za-z0-9_$]+$/,i={in:1,return:1,typeof:1},a={};return{Ra:[],va:a,Zb:e,ub:function(r,o){function i(e,r){var o;if(!c){var p=f.getBindingHandler(e);if(p&&p.preprocess&&!(r=p.preprocess(r,e,i)))return;(p=a[e])&&(o=r,0<=f.a.A(t,o)?o=!1:(p=o.match(n),o=null!==p&&(p[1]?"Object("+p[1]+")"+p[2]:o)),p=o),p&&l.push("'"+("string"==typeof a[e]?a[e]:e)+"':function(_z){"+o+"=_z}")}u&&(r="function(){return "+r+" }"),s.push("'"+e+"':"+r)}o=o||{};var s=[],l=[],u=o.valueAccessors,c=o.bindingParams,p="string"==typeof r?e(r):r;return f.a.C(p,function(e){i(e.key||e.unknown,e.value)}),l.length&&i("_ko_property_writers","{"+l.join(",")+" }"),s.join(",")},Hd:function(e,t){for(var n=0;n<e.length;n++)if(e[n].key==t)return!0;return!1},$a:function(e,t,n,r,o){e&&f.N(e)?!f.Ya(e)||o&&e.w()===r||e(r):(e=t.get("_ko_property_writers"))&&e[n]&&e[n](r)}}}(),f.b("expressionRewriting",f.m),f.b("expressionRewriting.bindingRewriteValidators",f.m.Ra),f.b("expressionRewriting.parseObjectLiteral",f.m.Zb),f.b("expressionRewriting.preProcessBindings",f.m.ub),f.b("expressionRewriting._twoWayBindings",f.m.va),f.b("jsonExpressionRewriting",f.m),f.b("jsonExpressionRewriting.insertPropertyAccessorsIntoJson",f.m.ub),function(){function e(e){return 8==e.nodeType&&i.test(o?e.text:e.nodeValue)}function t(e){return 8==e.nodeType&&a.test(o?e.text:e.nodeValue)}function n(n,r){for(var o=n,i=1,a=[];o=o.nextSibling;){if(t(o)&&(f.a.g.set(o,u,!0),0===--i))return a;a.push(o),e(o)&&i++}if(!r)throw Error("Cannot find closing comment tag to match: "+n.nodeValue);return null}function r(e,t){var r=n(e,t);return r?0<r.length?r[r.length-1].nextSibling:e.nextSibling:null}var o=l&&"\x3c!--test--\x3e"===l.createComment("test").text,i=o?/^\x3c!--\s*ko(?:\s+([\s\S]+))?\s*--\x3e$/:/^\s*ko(?:\s+([\s\S]+))?\s*$/,a=o?/^\x3c!--\s*\/ko\s*--\x3e$/:/^\s*\/ko\s*$/,s={ul:!0,ol:!0},u="__ko_matchedEndComment__";f.h={ea:{},childNodes:function(t){return e(t)?n(t):t.childNodes},Ea:function(t){if(e(t)){t=f.h.childNodes(t);for(var n=0,r=t.length;n<r;n++)f.removeNode(t[n])}else f.a.Sb(t)},ua:function(t,n){if(e(t)){f.h.Ea(t);for(var r=t.nextSibling,o=0,i=n.length;o<i;o++)r.parentNode.insertBefore(n[o],r)}else f.a.ua(t,n)},Uc:function(t,n){e(t)?t.parentNode.insertBefore(n,t.nextSibling):t.firstChild?t.insertBefore(n,t.firstChild):t.appendChild(n)},Vb:function(t,n,r){r?e(t)?t.parentNode.insertBefore(n,r.nextSibling):r.nextSibling?t.insertBefore(n,r.nextSibling):t.appendChild(n):f.h.Uc(t,n)},firstChild:function(n){if(e(n))return!n.nextSibling||t(n.nextSibling)?null:n.nextSibling;if(n.firstChild&&t(n.firstChild))throw Error("Found invalid end comment, as the first child of "+n);return n.firstChild},nextSibling:function(n){if(e(n)&&(n=r(n)),n.nextSibling&&t(n.nextSibling)){var o=n.nextSibling;if(t(o)&&!f.a.g.get(o,u))throw Error("Found end comment without a matching opening comment, as child of "+n);return null}return n.nextSibling},Bd:e,Ud:function(e){return(e=(o?e.text:e.nodeValue).match(i))?e[1]:null},Rc:function(n){if(s[f.a.P(n)]){var o=n.firstChild;if(o)do{if(1===o.nodeType){var i;i=o.firstChild;var a=null;if(i)do{if(a)a.push(i);else if(e(i)){var l=r(i,!0);l?i=l:a=[i]}else t(i)&&(a=[i])}while(i=i.nextSibling);if(i=a)for(a=o.nextSibling,l=0;l<i.length;l++)a?n.insertBefore(i[l],a):n.appendChild(i[l])}}while(o=o.nextSibling)}}}}(),f.b("virtualElements",f.h),f.b("virtualElements.allowedBindings",f.h.ea),f.b("virtualElements.emptyNode",f.h.Ea),f.b("virtualElements.insertAfter",f.h.Vb),f.b("virtualElements.prepend",f.h.Uc),f.b("virtualElements.setDomNodeChildren",f.h.ua),function(){f.ga=function(){this.md={}},f.a.extend(f.ga.prototype,{nodeHasBindings:function(e){switch(e.nodeType){case 1:return null!=e.getAttribute("data-bind")||f.i.getComponentNameForNode(e);case 8:return f.h.Bd(e);default:return!1}},getBindings:function(e,t){var n=this.getBindingsString(e,t),n=n?this.parseBindingsString(n,t,e):null;return f.i.sc(n,e,t,!1)},getBindingAccessors:function(e,t){var n=this.getBindingsString(e,t),n=n?this.parseBindingsString(n,t,e,{valueAccessors:!0}):null;return f.i.sc(n,e,t,!0)},getBindingsString:function(e){switch(e.nodeType){case 1:return e.getAttribute("data-bind");case 8:return f.h.Ud(e);default:return null}},parseBindingsString:function(e,t,n,r){try{var o,i=this.md,a=e+(r&&r.valueAccessors||"");if(!(o=i[a])){var s,l="with($context){with($data||{}){return{"+f.m.ub(e,r)+"}}}";s=new Function("$context","$element",l),o=i[a]=s}return o(t,n)}catch(t){throw t.message="Unable to parse bindings.\nBindings value: "+e+"\nMessage: "+t.message,t}}}),f.ga.instance=new f.ga}(),f.b("bindingProvider",f.ga),function(){function e(e){var t=(e=f.a.g.get(e,w))&&e.M;t&&(e.M=null,t.Sc())}function t(t,n,r){this.node=t,this.xc=n,this.ib=[],this.T=!1,n.M||f.a.I.za(t,e),r&&r.M&&(r.M.ib.push(t),this.Kb=r)}function n(e){return function(){return e}}function r(e){return e()}function o(e){return f.a.Ha(f.v.K(e),function(t,n){return function(){return e()[n]}})}function i(e,t,r){return"function"==typeof e?o(e.bind(null,t,r)):f.a.Ha(e,n)}function u(e,t){return o(this.getBindings.bind(this,e,t))}function p(e,t){var n=f.h.firstChild(t);if(n){var r,o=f.ga.instance,i=o.preprocessNode;if(i){for(;r=n;)n=f.h.nextSibling(r),i.call(o,r);n=f.h.firstChild(t)}for(;r=n;)n=f.h.nextSibling(r),d(e,r)}f.j.Ga(t,f.j.T)}function d(e,t){var n=e,r=1===t.nodeType;r&&f.h.Rc(t),(r||f.ga.instance.nodeHasBindings(t))&&(n=m(t,null,e).bindingContextForDescendants),n&&!x[f.a.P(t)]&&p(n,t)}function h(e){var t=[],n={},r=[];return f.a.O(e,function o(i){if(!n[i]){var a=f.getBindingHandler(i);a&&(a.after&&(r.push(i),f.a.C(a.after,function(t){if(e[t]){if(-1!==f.a.A(r,t))throw Error("Cannot combine the following bindings, because they have a cyclic dependency: "+r.join(", "));o(t)}}),r.length--),t.push({key:i,Lc:a})),n[i]=!0}}),t}function m(e,t,n){var o=f.a.g.Tb(e,w,{}),i=o.gd;if(!t){if(i)throw Error("You cannot apply bindings multiple times to the same element.");o.gd=!0}i||(o.context=n);var s;if(t&&"function"!=typeof t)s=t;else{var l=f.ga.instance,c=l.getBindingAccessors||u,p=f.$(function(){return(s=t?t(n,e):c.call(l,e,n))&&(n[y]&&n[y](),n[b]&&n[b]()),s},null,{l:e});s&&p.ja()||(p=null)}var d,m=n;if(s){var g=function(){return f.a.Ha(p?p():s,r)},v=p?function(e){return function(){return r(p()[e])}}:function(e){return s[e]};g.get=function(e){return s[e]&&r(v(e))},g.has=function(e){return e in s},f.j.T in s&&f.j.subscribe(e,f.j.T,function(){var t=(0,s[f.j.T])();if(t){var n=f.h.childNodes(e);n.length&&t(n,f.Dc(n[0]))}}),f.j.oa in s&&(m=f.j.Bb(e,n),f.j.subscribe(e,f.j.oa,function(){var t=(0,s[f.j.oa])();t&&f.h.firstChild(e)&&t(e)})),o=h(s),f.a.C(o,function(t){var n=t.Lc.init,r=t.Lc.update,o=t.key;if(8===e.nodeType&&!f.h.ea[o])throw Error("The binding '"+o+"' cannot be used with virtual elements");try{"function"==typeof n&&f.v.K(function(){var t=n(e,v(o),g,m.$data,m);if(t&&t.controlsDescendantBindings){if(d!==a)throw Error("Multiple bindings ("+d+" and "+o+") are trying to control descendant bindings of the same element. You cannot use these bindings together on the same element.");d=o}}),"function"==typeof r&&f.$(function(){r(e,v(o),g,m.$data,m)},null,{l:e})}catch(e){throw e.message='Unable to process binding "'+o+": "+s[o]+'"\nMessage: '+e.message,e}})}return o=d===a,{shouldBindDescendants:o,bindingContextForDescendants:o&&m}}function g(e,t){return e&&e instanceof f.fa?e:new f.fa(e,a,a,t)}var y=f.a.Da("_subscribable"),v=f.a.Da("_ancestorBindingInfo"),b=f.a.Da("_dataDependency");f.f={};var x={script:!0,textarea:!0,template:!0};f.getBindingHandler=function(e){return f.f[e]};var C={};f.fa=function(e,t,n,r,o){function i(){var e=p?c():c,o=f.a.c(e);return t?(f.a.extend(l,t),v in t&&(l[v]=t[v])):(l.$parents=[],l.$root=o,l.ko=f),l[y]=s,u?o=l.$data:(l.$rawData=e,l.$data=o),n&&(l[n]=o),r&&r(l,t,o),t&&t[y]&&!f.U.o().Ub(t[y])&&t[y](),d&&(l[b]=d),l.$data}var s,l=this,u=e===C,c=u?a:e,p="function"==typeof c&&!f.N(c),d=o&&o.dataDependency;o&&o.exportDependencies?i():(s=f.wb(i),s.w(),s.ja()?s.equalityComparer=null:l[y]=a)},f.fa.prototype.createChildContext=function(e,t,n,r){if(!r&&t&&"object"==typeof t&&(r=t,t=r.as,n=r.extend),t&&r&&r.noChildContext){var o="function"==typeof e&&!f.N(e);return new f.fa(C,this,null,function(r){n&&n(r),r[t]=o?e():e},r)}return new f.fa(e,this,t,function(e,t){e.$parentContext=t,e.$parent=t.$data,e.$parents=(t.$parents||[]).slice(0),e.$parents.unshift(e.$parent),n&&n(e)},r)},f.fa.prototype.extend=function(e,t){return new f.fa(C,this,null,function(t){f.a.extend(t,"function"==typeof e?e(t):e)},t)};var w=f.a.g.Z();t.prototype.Sc=function(){this.Kb&&this.Kb.M&&this.Kb.M.rd(this.node)},t.prototype.rd=function(e){f.a.hb(this.ib,e),!this.ib.length&&this.T&&this.Bc()},t.prototype.Bc=function(){this.T=!0,this.xc.M&&!this.ib.length&&(this.xc.M=null,f.a.I.xb(this.node,e),f.j.Ga(this.node,f.j.oa),this.Sc())},f.j={T:"childrenComplete",oa:"descendantsComplete",subscribe:function(e,t,n,r){return e=f.a.g.Tb(e,w,{}),e.Fa||(e.Fa=new f.R),e.Fa.subscribe(n,r,t)},Ga:function(e,t){var n=f.a.g.get(e,w);if(n&&(n.Fa&&n.Fa.notifySubscribers(e,t),t==f.j.T))if(n.M)n.M.Bc();else if(n.M===a&&n.Fa&&n.Fa.Wa(f.j.oa))throw Error("descendantsComplete event not supported for bindings on this node")},Bb:function(e,n){var r=f.a.g.Tb(e,w,{});return r.M||(r.M=new t(e,r,n[v])),n[v]==r?n:n.extend(function(e){e[v]=r})}},f.Sd=function(e){return(e=f.a.g.get(e,w))&&e.context},f.eb=function(e,t,n){return 1===e.nodeType&&f.h.Rc(e),m(e,t,g(n))},f.kd=function(e,t,n){return n=g(n),f.eb(e,i(t,n,e),n)},f.Pa=function(e,t){1!==t.nodeType&&8!==t.nodeType||p(g(e),t)},f.uc=function(e,t,n){if(!c&&s.jQuery&&(c=s.jQuery),2>arguments.length){if(!(t=l.body))throw Error("ko.applyBindings: could not find document.body; has the document been loaded?")}else if(!t||1!==t.nodeType&&8!==t.nodeType)throw Error("ko.applyBindings: first parameter should be your view model; second parameter should be a DOM node");d(g(e,n),t)},f.Cc=function(e){return!e||1!==e.nodeType&&8!==e.nodeType?a:f.Sd(e)},f.Dc=function(e){return(e=f.Cc(e))?e.$data:a},f.b("bindingHandlers",f.f),f.b("bindingEvent",f.j),f.b("bindingEvent.subscribe",f.j.subscribe),f.b("bindingEvent.startPossiblyAsyncContentBinding",f.j.Bb),f.b("applyBindings",f.uc),f.b("applyBindingsToDescendants",f.Pa),f.b("applyBindingAccessorsToNode",f.eb),f.b("applyBindingsToNode",f.kd),f.b("contextFor",f.Cc),f.b("dataFor",f.Dc)}(),function(e){function t(t,r){var a,s=Object.prototype.hasOwnProperty.call(o,t)?o[t]:e;s?s.subscribe(r):(s=o[t]=new f.R,s.subscribe(r),n(t,function(e,n){var r=!(!n||!n.synchronous);i[t]={definition:e,Fd:r},delete o[t],a||r?s.notifySubscribers(e):f.ma.yb(function(){s.notifySubscribers(e)})}),a=!0)}function n(e,t){r("getConfig",[e],function(n){n?r("loadComponent",[e,n],function(e){t(e,n)}):t(null,null)})}function r(t,n,o,i){i||(i=f.i.loaders.slice(0));var a=i.shift();if(a){var s=a[t];if(s){var l=!1;if(s.apply(a,n.concat(function(e){l?o(null):null!==e?o(e):r(t,n,o,i)}))!==e&&(l=!0,!a.suppressLoaderExceptions))throw Error("Component loaders must supply values by invoking the callback, not by returning values synchronously.")}else r(t,n,o,i)}else o(null)}var o={},i={};f.i={get:function(n,r){var o=Object.prototype.hasOwnProperty.call(i,n)?i[n]:e;o?o.Fd?f.v.K(function(){r(o.definition)}):f.ma.yb(function(){r(o.definition)}):t(n,r)},Ac:function(e){delete i[e]},nc:r},f.i.loaders=[],f.b("components",f.i),f.b("components.get",f.i.get),f.b("components.clearCachedDefinition",f.i.Ac)}(),function(){function e(e,t,n,r){function o(){0==--s&&r(a)}var a={},s=2,l=n.template;n=n.viewModel,l?i(t,l,function(t){f.i.nc("loadTemplate",[e,t],function(e){a.template=e,o()})}):o(),n?i(t,n,function(t){f.i.nc("loadViewModel",[e,t],function(e){a[c]=e,o()})}):o()}function n(e,t,r){if("function"==typeof t)r(function(e){return new t(e)});else if("function"==typeof t[c])r(t[c]);else if("instance"in t){var o=t.instance;r(function(){return o})}else"viewModel"in t?n(e,t.viewModel,r):e("Unknown viewModel value: "+t)}function r(e){switch(f.a.P(e)){case"script":return f.a.ta(e.text);case"textarea":return f.a.ta(e.value);case"template":if(o(e.content))return f.a.Ca(e.content.childNodes)}return f.a.Ca(e.childNodes)}function o(e){return s.DocumentFragment?e instanceof DocumentFragment:e&&11===e.nodeType}function i(e,n,r){"string"==typeof n.require?t||s.require?(t||s.require)([n.require],r):e("Uses require, but no AMD loader is present"):r(n)}function a(e){return function(t){throw Error("Component '"+e+"': "+t)}}var u={};f.i.register=function(e,t){if(!t)throw Error("Invalid configuration for "+e);if(f.i.sb(e))throw Error("Component "+e+" is already registered");u[e]=t},f.i.sb=function(e){return Object.prototype.hasOwnProperty.call(u,e)},f.i.unregister=function(e){delete u[e],f.i.Ac(e)},f.i.Ec={getConfig:function(e,t){t(f.i.sb(e)?u[e]:null)},loadComponent:function(t,n,r){var o=a(t);i(o,n,function(n){e(t,o,n,r)})},loadTemplate:function(e,t,n){if(e=a(e),"string"==typeof t)n(f.a.ta(t));else if(t instanceof Array)n(t);else if(o(t))n(f.a.la(t.childNodes));else if(t.element)if(t=t.element,s.HTMLElement?t instanceof HTMLElement:t&&t.tagName&&1===t.nodeType)n(r(t));else if("string"==typeof t){var i=l.getElementById(t);i?n(r(i)):e("Cannot find element with ID "+t)}else e("Unknown element type: "+t);else e("Unknown template value: "+t)},loadViewModel:function(e,t,r){n(a(e),t,r)}};var c="createViewModel";f.b("components.register",f.i.register),f.b("components.isRegistered",f.i.sb),f.b("components.unregister",f.i.unregister),f.b("components.defaultLoader",f.i.Ec),f.i.loaders.push(f.i.Ec),f.i.cd=u}(),function(){function e(e,n){var r=e.getAttribute("params");if(r){var r=t.parseBindingsString(r,n,e,{valueAccessors:!0,bindingParams:!0}),r=f.a.Ha(r,function(t){return f.o(t,null,{l:e})}),o=f.a.Ha(r,function(t){var n=t.w();return t.ja()?f.o({read:function(){return f.a.c(t())},write:f.Ya(n)&&function(e){t()(e)},l:e}):n});return Object.prototype.hasOwnProperty.call(o,"$raw")||(o.$raw=r),o}return{$raw:{}}}f.i.getComponentNameForNode=function(e){var t=f.a.P(e);if(f.i.sb(t)&&(-1!=t.indexOf("-")||"[object HTMLUnknownElement]"==""+e||8>=f.a.W&&e.tagName===t))return t},f.i.sc=function(t,n,r,o){if(1===n.nodeType){var i=f.i.getComponentNameForNode(n);if(i){if(t=t||{},t.component)throw Error('Cannot use the "component" binding on a custom element matching a component');var a={name:i,params:e(n,r)};t.component=o?function(){return a}:a}}return t};var t=new f.ga;9>f.a.W&&(f.i.register=function(e){return function(t){return e.apply(this,arguments)}}(f.i.register),l.createDocumentFragment=function(e){return function(){var t,n=e(),r=f.i.cd;for(t in r);return n}}(l.createDocumentFragment))}(),function(){function e(e,t,n){if(!(t=t.template))throw Error("Component '"+e+"' has no template");e=f.a.Ca(t),f.h.ua(n,e)}function t(e,t,n){var r=e.createViewModel;return r?r.call(e,t,n):t}var n=0;f.f.component={init:function(r,o,i,a,s){function l(){var e=u&&u.dispose;"function"==typeof e&&e.call(u),p&&p.s(),c=u=p=null}var u,c,p,d=f.a.la(f.h.childNodes(r));return f.h.Ea(r),f.a.I.za(r,l),f.o(function(){var i,a,h=f.a.c(o());if("string"==typeof h?i=h:(i=f.a.c(h.name),a=f.a.c(h.params)),!i)throw Error("No component name specified");var m=f.j.Bb(r,s),g=c=++n;f.i.get(i,function(n){if(c===g){if(l(),!n)throw Error("Unknown component '"+i+"'");e(i,n,r);var o=t(n,a,{element:r,templateNodes:d});n=m.createChildContext(o,{extend:function(e){e.$component=o,e.$componentTemplateNodes=d}}),o&&o.koDescendantsComplete&&(p=f.j.subscribe(r,f.j.oa,o.koDescendantsComplete,o)),u=o,f.Pa(n,r)}})},null,{l:r}),{controlsDescendantBindings:!0}}},f.h.ea.component=!0}();var T={class:"className",for:"htmlFor"};f.f.attr={update:function(e,t){var n=f.a.c(t())||{};f.a.O(n,function(t,n){n=f.a.c(n);var r=t.indexOf(":"),r="lookupNamespaceURI"in e&&0<r&&e.lookupNamespaceURI(t.substr(0,r)),o=!1===n||null===n||n===a;o?r?e.removeAttributeNS(r,t):e.removeAttribute(t):n=n.toString(),8>=f.a.W&&t in T?(t=T[t],o?e.removeAttribute(t):e[t]=n):o||(r?e.setAttributeNS(r,t,n):e.setAttribute(t,n)),"name"===t&&f.a.Xc(e,o?"":n)})}},function(){f.f.checked={after:["value","attr"],init:function(e,t,n){function r(){var r=e.checked,o=i();if(!f.U.rb()&&(r||!l&&!f.U.pa())){var u=f.v.K(t);if(c){var d=p?u.w():u,m=h;h=o,m!==o?r&&(f.a.Oa(d,o,!0),f.a.Oa(d,m,!1)):f.a.Oa(d,o,r),p&&f.Ya(u)&&u(d)}else s&&(o===a?o=r:r||(o=a)),f.m.$a(u,n,"checked",o,!0)}}function o(){var n=f.a.c(t()),r=i();c?(e.checked=0<=f.a.A(n,r),h=r):e.checked=s&&r===a?!!n:i()===n}var i=f.wb(function(){return n.has("checkedValue")?f.a.c(n.get("checkedValue")):d?n.has("value")?f.a.c(n.get("value")):e.value:void 0}),s="checkbox"==e.type,l="radio"==e.type;if(s||l){var u=t(),c=s&&f.a.c(u)instanceof Array,p=!(c&&u.push&&u.splice),d=l||c,h=c?i():a;l&&!e.name&&f.f.uniqueName.init(e,function(){return!0}),f.o(r,null,{l:e}),f.a.H(e,"click",r),f.o(o,null,{l:e}),u=a}}},f.m.va.checked=!0,f.f.checkedValue={update:function(e,t){e.value=f.a.c(t())}}}(),f.f.class={update:function(e,t){var n=f.a.Cb(f.a.c(t()));f.a.Eb(e,e.__ko__cssValue,!1),e.__ko__cssValue=n,f.a.Eb(e,n,!0)}},f.f.css={update:function(e,t){var n=f.a.c(t());null!==n&&"object"==typeof n?f.a.O(n,function(t,n){n=f.a.c(n),f.a.Eb(e,t,n)}):f.f.class.update(e,t)}},f.f.enable={update:function(e,t){var n=f.a.c(t());n&&e.disabled?e.removeAttribute("disabled"):n||e.disabled||(e.disabled=!0)}},f.f.disable={update:function(e,t){f.f.enable.update(e,function(){return!f.a.c(t())})}},f.f.event={init:function(e,t,n,r,o){var i=t()||{};f.a.O(i,function(i){"string"==typeof i&&f.a.H(e,i,function(e){var a,s=t()[i];if(s){try{var l=f.a.la(arguments);r=o.$data,l.unshift(r),a=s.apply(r,l)}finally{!0!==a&&(e.preventDefault?e.preventDefault():e.returnValue=!1)}!1===n.get(i+"Bubble")&&(e.cancelBubble=!0,e.stopPropagation&&e.stopPropagation())}})})}},f.f.foreach={Qc:function(e){return function(){var t=e(),n=f.a.$b(t);return n&&"number"!=typeof n.length?(f.a.c(t),{foreach:n.data,as:n.as,noChildContext:n.noChildContext,includeDestroyed:n.includeDestroyed,afterAdd:n.afterAdd,beforeRemove:n.beforeRemove,afterRender:n.afterRender,beforeMove:n.beforeMove,afterMove:n.afterMove,templateEngine:f.ba.Na}):{foreach:t,templateEngine:f.ba.Na}}},init:function(e,t){return f.f.template.init(e,f.f.foreach.Qc(t))},update:function(e,t,n,r,o){return f.f.template.update(e,f.f.foreach.Qc(t),n,r,o)}},f.m.Ra.foreach=!1,f.h.ea.foreach=!0,f.f.hasfocus={init:function(e,t,n){function r(r){e.__ko_hasfocusUpdating=!0;var o=e.ownerDocument;if("activeElement"in o){var i;try{i=o.activeElement}catch(e){i=o.body}r=i===e}o=t(),f.m.$a(o,n,"hasfocus",r,!0),e.__ko_hasfocusLastValue=r,e.__ko_hasfocusUpdating=!1}var o=r.bind(null,!0),i=r.bind(null,!1);f.a.H(e,"focus",o),f.a.H(e,"focusin",o),f.a.H(e,"blur",i),f.a.H(e,"focusout",i),e.__ko_hasfocusLastValue=!1},update:function(e,t){var n=!!f.a.c(t());e.__ko_hasfocusUpdating||e.__ko_hasfocusLastValue===n||(n?e.focus():e.blur(),!n&&e.__ko_hasfocusLastValue&&e.ownerDocument.body.focus(),f.v.K(f.a.Fb,null,[e,n?"focusin":"focusout"]))}},f.m.va.hasfocus=!0,f.f.hasFocus=f.f.hasfocus,f.m.va.hasFocus="hasfocus",f.f.html={init:function(){return{controlsDescendantBindings:!0}},update:function(e,t){f.a.dc(e,t())}},function(){function e(e,t,n){f.f[e]={init:function(e,r,o,i,a){var s,l,u,c,p,d={};if(t){i=o.get("as");var h=o.get("noChildContext");p=!(i&&h),d={as:i,noChildContext:h,exportDependencies:p}}return c=(u="render"==o.get("completeOn"))||o.has(f.j.oa),f.o(function(){var o,i=f.a.c(r()),h=!n!=!i,m=!l;(p||h!==s)&&(c&&(a=f.j.Bb(e,a)),h&&(t&&!p||(d.dataDependency=f.U.o()),o=t?a.createChildContext("function"==typeof i?i:r,d):f.U.pa()?a.extend(null,d):a),m&&f.U.pa()&&(l=f.a.Ca(f.h.childNodes(e),!0)),h?(m||f.h.ua(e,f.a.Ca(l)),f.Pa(o,e)):(f.h.Ea(e),u||f.j.Ga(e,f.j.T)),s=h)},null,{l:e}),{controlsDescendantBindings:!0}}},f.m.Ra[e]=!1,f.h.ea[e]=!0}e("if"),e("ifnot",!1,!0),e("with",!0)}(),f.f.let={init:function(e,t,n,r,o){return t=o.extend(t),f.Pa(t,e),{controlsDescendantBindings:!0}}},f.h.ea.let=!0;var k={};f.f.options={init:function(e){if("select"!==f.a.P(e))throw Error("options binding applies only to SELECT elements");for(;0<e.length;)e.remove(0);return{controlsDescendantBindings:!0}},update:function(e,t,n){function r(){return f.a.fb(e.options,function(e){return e.selected})}function o(e,t,n){var r=typeof t;return"function"==r?t(e):"string"==r?e[t]:n}function i(t,r){if(m&&c)f.u.ya(e,f.a.c(n.get("value")),!0);else if(h.length){var o=0<=f.a.A(h,f.u.L(r[0]));f.a.Yc(r[0],o),m&&!o&&f.v.K(f.a.Fb,null,[e,"change"])}}var s=e.multiple,l=0!=e.length&&s?e.scrollTop:null,u=f.a.c(t()),c=n.get("valueAllowUnset")&&n.has("value"),p=n.get("optionsIncludeDestroyed");t={};var d,h=[];c||(s?h=f.a.Mb(r(),f.u.L):0<=e.selectedIndex&&h.push(f.u.L(e.options[e.selectedIndex]))),u&&(void 0===u.length&&(u=[u]),d=f.a.fb(u,function(e){return p||e===a||null===e||!f.a.c(e._destroy)}),n.has("optionsCaption")&&null!==(u=f.a.c(n.get("optionsCaption")))&&u!==a&&d.unshift(k));var m=!1;t.beforeRemove=function(t){e.removeChild(t)},u=i,n.has("optionsAfterRender")&&"function"==typeof n.get("optionsAfterRender")&&(u=function(e,t){i(0,t),f.v.K(n.get("optionsAfterRender"),null,[t[0],e!==k?e:a])}),f.a.cc(e,d,function(t,r,i){return i.length&&(h=!c&&i[0].selected?[f.u.L(i[0])]:[],m=!0),r=e.ownerDocument.createElement("option"),t===k?(f.a.Ab(r,n.get("optionsCaption")),f.u.ya(r,a)):(i=o(t,n.get("optionsValue"),t),f.u.ya(r,f.a.c(i)),t=o(t,n.get("optionsText"),i),f.a.Ab(r,t)),[r]},t,u),f.v.K(function(){if(c)f.u.ya(e,f.a.c(n.get("value")),!0);else{var t;t=s?h.length&&r().length<h.length:h.length&&0<=e.selectedIndex?f.u.L(e.options[e.selectedIndex])!==h[0]:h.length||0<=e.selectedIndex,t&&f.a.Fb(e,"change")}}),f.a.vd(e),l&&20<Math.abs(l-e.scrollTop)&&(e.scrollTop=l)}},f.f.options.Yb=f.a.g.Z(),f.f.selectedOptions={after:["options","foreach"],init:function(e,t,n){f.a.H(e,"change",function(){var r=t(),o=[];f.a.C(e.getElementsByTagName("option"),function(e){e.selected&&o.push(f.u.L(e))}),f.m.$a(r,n,"selectedOptions",o)})},update:function(e,t){if("select"!=f.a.P(e))throw Error("values binding applies only to SELECT elements");var n=f.a.c(t()),r=e.scrollTop;n&&"number"==typeof n.length&&f.a.C(e.getElementsByTagName("option"),function(e){var t=0<=f.a.A(n,f.u.L(e));e.selected!=t&&f.a.Yc(e,t)}),e.scrollTop=r}},f.m.va.selectedOptions=!0,f.f.style={update:function(e,t){var n=f.a.c(t()||{});f.a.O(n,function(t,n){if(n=f.a.c(n),null!==n&&n!==a&&!1!==n||(n=""),c)c(e).css(t,n);else if(/^--/.test(t))e.style.setProperty(t,n);else{t=t.replace(/-(\w)/g,function(e,t){return t.toUpperCase()});var r=e.style[t];e.style[t]=n,n===r||e.style[t]!=r||isNaN(n)||(e.style[t]=n+"px")}})}},f.f.submit={init:function(e,t,n,r,o){if("function"!=typeof t())throw Error("The value for a submit binding must be a function");f.a.H(e,"submit",function(n){var r,i=t();try{r=i.call(o.$data,e)}finally{!0!==r&&(n.preventDefault?n.preventDefault():n.returnValue=!1)}})}},f.f.text={init:function(){return{controlsDescendantBindings:!0}},update:function(e,t){f.a.Ab(e,t())}},f.h.ea.text=!0,function(){if(s&&s.navigator){var e,t,n,r,o,i=function(e){if(e)return parseFloat(e[1])},l=s.navigator.userAgent;(e=s.opera&&s.opera.version&&parseInt(s.opera.version()))||(o=i(l.match(/Edge\/([^ ]+)$/)))||i(l.match(/Chrome\/([^ ]+)/))||(t=i(l.match(/Version\/([^ ]+) Safari/)))||(n=i(l.match(/Firefox\/([^ ]+)/)))||(r=f.a.W||i(l.match(/MSIE ([^ ]+)/)))||(r=i(l.match(/rv:([^ )]+)/)))}if(8<=r&&10>r)var u=f.a.g.Z(),c=f.a.g.Z(),p=function(e){var t=this.activeElement;(t=t&&f.a.g.get(t,c))&&t(e)},d=function(e,t){var n=e.ownerDocument;f.a.g.get(n,u)||(f.a.g.set(n,u,!0),f.a.H(n,"selectionchange",p)),f.a.g.set(e,c,t)};f.f.textInput={init:function(i,s,l){function u(e,t){f.a.H(i,e,t)}function c(){var e=f.a.c(s());null!==e&&e!==a||(e=""),g!==a&&e===g?f.a.setTimeout(c,4):i.value!==e&&(b=!0,i.value=e,b=!1,y=i.value)}function p(){m||(g=i.value,m=f.a.setTimeout(h,4))}function h(){clearTimeout(m),g=m=a;var e=i.value;y!==e&&(y=e,f.m.$a(s(),l,"textInput",e))}var m,g,y=i.value,v=9==f.a.W?p:h,b=!1;r&&u("keypress",h),11>r&&u("propertychange",function(e){b||"value"!==e.propertyName||v(e)}),8==r&&(u("keyup",h),u("keydown",h)),d&&(d(i,v),u("dragend",p)),(!r||9<=r)&&u("input",v),5>t&&"textarea"===f.a.P(i)?(u("keydown",p),u("paste",p),u("cut",p)):11>e?u("keydown",p):4>n?(u("DOMAutoComplete",h),u("dragdrop",h),u("drop",h)):o&&"number"===i.type&&u("keydown",p),u("change",h),u("blur",h),f.o(c,null,{l:i})}},f.m.va.textInput=!0,f.f.textinput={preprocess:function(e,t,n){n("textInput",e)}}}(),f.f.uniqueName={init:function(e,t){if(t()){var n="ko_unique_"+ ++f.f.uniqueName.qd;f.a.Xc(e,n)}}},f.f.uniqueName.qd=0,f.f.using={init:function(e,t,n,r,o){var i;return n.has("as")&&(i={as:n.get("as"),noChildContext:n.get("noChildContext")}),t=o.createChildContext(t,i),f.Pa(t,e),{controlsDescendantBindings:!0}}},f.h.ea.using=!0,f.f.value={after:["options","foreach"],init:function(e,t,n){var r=f.a.P(e),o="input"==r;if(!o||"checkbox"!=e.type&&"radio"!=e.type){var i=["change"],s=n.get("valueUpdate"),l=!1,u=null;s&&("string"==typeof s&&(s=[s]),f.a.gb(i,s),i=f.a.vc(i));var c=function(){u=null,l=!1;var r=t(),o=f.u.L(e);f.m.$a(r,n,"value",o)};!f.a.W||!o||"text"!=e.type||"off"==e.autocomplete||e.form&&"off"==e.form.autocomplete||-1!=f.a.A(i,"propertychange")||(f.a.H(e,"propertychange",function(){l=!0}),f.a.H(e,"focus",function(){l=!1}),f.a.H(e,"blur",function(){l&&c()})),f.a.C(i,function(t){var n=c;f.a.Td(t,"after")&&(n=function(){u=f.u.L(e),f.a.setTimeout(c,0)},t=t.substring(5)),f.a.H(e,t,n)});var p;p=o&&"file"==e.type?function(){var n=f.a.c(t());null===n||n===a||""===n?e.value="":f.v.K(c)}:function(){var o=f.a.c(t()),i=f.u.L(e);null!==u&&o===u?f.a.setTimeout(p,0):o===i&&i!==a||("select"===r?(i=n.get("valueAllowUnset"),f.u.ya(e,o,i),i||o===f.u.L(e)||f.v.K(c)):f.u.ya(e,o))},f.o(p,null,{l:e})}else f.eb(e,{checkedValue:t})},update:function(){}},f.m.va.value=!0,f.f.visible={update:function(e,t){var n=f.a.c(t()),r="none"!=e.style.display;n&&!r?e.style.display="":!n&&r&&(e.style.display="none")}},f.f.hidden={update:function(e,t){f.f.visible.update(e,function(){return!f.a.c(t())})}},function(e){f.f[e]={init:function(t,n,r,o,i){return f.f.event.init.call(this,t,function(){var t={};return t[e]=n(),t},r,o,i)}}}("click"),f.ca=function(){},f.ca.prototype.renderTemplateSource=function(){throw Error("Override renderTemplateSource")},f.ca.prototype.createJavaScriptEvaluatorBlock=function(){throw Error("Override createJavaScriptEvaluatorBlock")},f.ca.prototype.makeTemplateSource=function(e,t){if("string"==typeof e){t=t||l;var n=t.getElementById(e);if(!n)throw Error("Cannot find template with ID "+e);return new f.B.D(n)}if(1==e.nodeType||8==e.nodeType)return new f.B.ia(e);throw Error("Unknown template type: "+e)},f.ca.prototype.renderTemplate=function(e,t,n,r){return e=this.makeTemplateSource(e,r),this.renderTemplateSource(e,t,n,r)},f.ca.prototype.isTemplateRewritten=function(e,t){return!1===this.allowTemplateRewriting||this.makeTemplateSource(e,t).data("isRewritten")},f.ca.prototype.rewriteTemplate=function(e,t,n){e=this.makeTemplateSource(e,n),t=t(e.text()),e.text(t),e.data("isRewritten",!0)},f.b("templateEngine",f.ca),f.ic=function(){function e(e,t,n,r){e=f.m.Zb(e);for(var o=f.m.Ra,i=0;i<e.length;i++){var a=e[i].key;if(Object.prototype.hasOwnProperty.call(o,a)){var s=o[a];if("function"==typeof s){if(a=s(e[i].value))throw Error(a)}else if(!s)throw Error("This template engine does not support the '"+a+"' binding within its templates")}}return n="ko.__tr_ambtns(function($context,$element){return(function(){return{ "+f.m.ub(e,{valueAccessors:!0})+" } })()},'"+n.toLowerCase()+"')",r.createJavaScriptEvaluatorBlock(n)+t}var t=/(<([a-z]+\d*)(?:\s+(?!data-bind\s*=\s*)[a-z0-9\-]+(?:=(?:\"[^\"]*\"|\'[^\']*\'|[^>]*))?)*\s+)data-bind\s*=\s*(["'])([\s\S]*?)\3/gi,n=/\x3c!--\s*ko\b\s*([\s\S]*?)\s*--\x3e/g;return{wd:function(e,t,n){t.isTemplateRewritten(e,n)||t.rewriteTemplate(e,function(e){return f.ic.Kd(e,t)},n)},Kd:function(r,o){return r.replace(t,function(t,n,r,i,a){return e(a,n,r,o)}).replace(n,function(t,n){return e(n,"\x3c!-- ko --\x3e","#comment",o)})},ld:function(e,t){return f.aa.Wb(function(n,r){var o=n.nextSibling;o&&o.nodeName.toLowerCase()===t&&f.eb(o,e,r)})}}}(),f.b("__tr_ambtns",f.ic.ld),function(){f.B={},f.B.D=function(e){if(this.D=e){var t=f.a.P(e);this.Db="script"===t?1:"textarea"===t?2:"template"==t&&e.content&&11===e.content.nodeType?3:4}},f.B.D.prototype.text=function(){var e=1===this.Db?"text":2===this.Db?"value":"innerHTML";if(0==arguments.length)return this.D[e];var t=arguments[0];"innerHTML"===e?f.a.dc(this.D,t):this.D[e]=t};var e=f.a.g.Z()+"_";f.B.D.prototype.data=function(t){if(1===arguments.length)return f.a.g.get(this.D,e+t);f.a.g.set(this.D,e+t,arguments[1])};var t=f.a.g.Z();f.B.D.prototype.nodes=function(){var e=this.D;if(0==arguments.length){var n=f.a.g.get(e,t)||{},r=n.jb||(3===this.Db?e.content:4===this.Db?e:a);return r&&!n.hd||(n=this.text())&&(r=f.a.Ld(n,e.ownerDocument),this.text(""),f.a.g.set(e,t,{jb:r,hd:!0})),r}f.a.g.set(e,t,{jb:arguments[0]})},f.B.ia=function(e){this.D=e},f.B.ia.prototype=new f.B.D,f.B.ia.prototype.constructor=f.B.ia,f.B.ia.prototype.text=function(){if(0==arguments.length){var e=f.a.g.get(this.D,t)||{};return e.jc===a&&e.jb&&(e.jc=e.jb.innerHTML),e.jc}f.a.g.set(this.D,t,{jc:arguments[0]})},f.b("templateSources",f.B),f.b("templateSources.domElement",f.B.D),f.b("templateSources.anonymousTemplate",f.B.ia)}(),function(){function e(e,t,n){var r;for(t=f.h.nextSibling(t);e&&(r=e)!==t;)e=f.h.nextSibling(r),n(r,e)}function t(t,n){if(t.length){var r=t[0],o=t[t.length-1],i=r.parentNode,a=f.ga.instance,s=a.preprocessNode;if(s){if(e(r,o,function(e,t){var n=e.previousSibling,i=s.call(a,e);i&&(e===r&&(r=i[0]||t),e===o&&(o=i[i.length-1]||n))}),t.length=0,!r)return;r===o?t.push(r):(t.push(r,o),f.a.Ua(t,i))}e(r,o,function(e){1!==e.nodeType&&8!==e.nodeType||f.uc(n,e)}),e(r,o,function(e){1!==e.nodeType&&8!==e.nodeType||f.aa.bd(e,[n])}),f.a.Ua(t,i)}}function n(e){return e.nodeType?e:0<e.length?e[0]:null}function r(e,r,o,a,s){s=s||{};var l=(e&&n(e)||o||{}).ownerDocument,u=s.templateEngine||i;if(f.ic.wd(o,u,l),o=u.renderTemplate(o,a,s,l),"number"!=typeof o.length||0<o.length&&"number"!=typeof o[0].nodeType)throw Error("Template engine must return an array of DOM nodes");switch(l=!1,r){case"replaceChildren":f.h.ua(e,o),l=!0;break;case"replaceNode":f.a.Wc(e,o),l=!0;break;case"ignoreTargetNode":break;default:throw Error("Unknown renderMode: "+r)}return l&&(t(o,a),s.afterRender&&f.v.K(s.afterRender,null,[o,a[s.as||"$data"]]),"replaceChildren"==r&&f.j.Ga(e,f.j.T)),o}function o(e,t,n){return f.N(e)?e():"function"==typeof e?e(t,n):e}var i;f.ec=function(e){if(e!=a&&!(e instanceof f.ca))throw Error("templateEngine must inherit from ko.templateEngine");i=e},f.bc=function(e,t,s,l,u){if(s=s||{},(s.templateEngine||i)==a)throw Error("Set a template engine before calling renderTemplate");if(u=u||"replaceChildren",l){var c=n(l);return f.$(function(){var i=t&&t instanceof f.fa?t:new f.fa(t,null,null,null,{exportDependencies:!0}),a=o(e,i.$data,i),i=r(l,u,a,i,s);"replaceNode"==u&&(l=i,c=n(l))},null,{Sa:function(){return!c||!f.a.Rb(c)},l:c&&"replaceNode"==u?c.parentNode:c})}return f.aa.Wb(function(n){f.bc(e,t,s,n,"replaceNode")})},f.Pd=function(e,n,i,s,l){function u(e,t){f.v.K(f.a.cc,null,[s,e,p,i,c,t]),f.j.Ga(s,f.j.T)}function c(e,n){t(n,d),i.afterRender&&i.afterRender(n,e),d=null}function p(t,n){d=l.createChildContext(t,{as:h,noChildContext:i.noChildContext,extend:function(e){e.$index=n,h&&(e[h+"Index"]=n)}});var a=o(e,t,d);return r(s,"ignoreTargetNode",a,d,i)}var d,h=i.as,m=!1===i.includeDestroyed||f.options.foreachHidesDestroyed&&!i.includeDestroyed;if(m||i.beforeRemove||!f.Oc(n))return f.$(function(){var e=f.a.c(n)||[];void 0===e.length&&(e=[e]),m&&(e=f.a.fb(e,function(e){return e===a||null===e||!f.a.c(e._destroy)})),u(e)},null,{l:s});u(n.w());var g=n.subscribe(function(e){u(n(),e)},null,"arrayChange");return g.l(s),g};var s=f.a.g.Z(),l=f.a.g.Z();f.f.template={init:function(e,t){var n=f.a.c(t());if("string"==typeof n||n.name)f.h.Ea(e);else if("nodes"in n){if(n=n.nodes||[],f.N(n))throw Error('The "nodes" option must be a plain, non-observable array.');var r=n[0]&&n[0].parentNode;r&&f.a.g.get(r,l)||(r=f.a.Xb(n),f.a.g.set(r,l,!0)),new f.B.ia(e).nodes(r)}else{if(n=f.h.childNodes(e),!(0<n.length))throw Error("Anonymous template defined, but no template content was provided");r=f.a.Xb(n),new f.B.ia(e).nodes(r)}return{controlsDescendantBindings:!0}},update:function(e,t,n,r,o){var i=t();t=f.a.c(i),n=!0,r=null,"string"==typeof t?t={}:(i=t.name,"if"in t&&(n=f.a.c(t.if)),n&&"ifnot"in t&&(n=!f.a.c(t.ifnot))),"foreach"in t?r=f.Pd(i||e,n&&t.foreach||[],t,e,o):n?(n=o,"data"in t&&(n=o.createChildContext(t.data,{as:t.as,noChildContext:t.noChildContext,exportDependencies:!0})),r=f.bc(i||e,n,t,e)):f.h.Ea(e),o=r,(t=f.a.g.get(e,s))&&"function"==typeof t.s&&t.s(),f.a.g.set(e,s,!o||o.ja&&!o.ja()?a:o)}},f.m.Ra.template=function(e){return e=f.m.Zb(e),1==e.length&&e[0].unknown||f.m.Hd(e,"name")?null:"This template engine does not support anonymous templates nested within its templates"},f.h.ea.template=!0}(),f.b("setTemplateEngine",f.ec),f.b("renderTemplate",f.bc),f.a.Jc=function(e,t,n){if(e.length&&t.length){var r,o,i,a,s;for(r=o=0;(!n||r<n)&&(a=e[o]);++o){for(i=0;s=t[i];++i)if(a.value===s.value){a.moved=s.index,s.moved=a.index,t.splice(i,1),r=i=0;break}r+=i}}},f.a.Ob=function(){function e(e,t,n,r,o){var i,a,s,l,u,c=Math.min,p=Math.max,d=[],h=e.length,m=t.length,g=m-h||1,y=h+m+1;for(i=0;i<=h;i++)for(l=s,d.push(s=[]),u=c(m,i+g),a=p(0,i-1);a<=u;a++)s[a]=a?i?e[i-1]===t[a-1]?l[a-1]:c(l[a]||y,s[a-1]||y)+1:a+1:i+1;for(c=[],p=[],g=[],i=h,a=m;i||a;)m=d[i][a]-1,a&&m===d[i][a-1]?p.push(c[c.length]={status:n,value:t[--a],index:a}):i&&m===d[i-1][a]?g.push(c[c.length]={status:r,value:e[--i],index:i}):(--a,--i,o.sparse||c.push({status:"retained",value:t[a]}));return f.a.Jc(g,p,!o.dontLimitMoves&&10*h),c.reverse()}return function(t,n,r){return r="boolean"==typeof r?{dontLimitMoves:r}:r||{},t=t||[],n=n||[],t.length<n.length?e(t,n,"added","deleted",r):e(n,t,"deleted","added",r)}}(),f.b("utils.compareArrays",f.a.Ob),function(){function e(e,t,n,r,o){var i=[],s=f.$(function(){var a=t(n,o,f.a.Ua(i,e))||[];0<i.length&&(f.a.Wc(i,a),r&&f.v.K(r,null,[n,a,o])),i.length=0,f.a.gb(i,a)},null,{l:e,Sa:function(){return!f.a.jd(i)}});return{Y:i,$:s.ja()?s:a}}var t=f.a.g.Z(),n=f.a.g.Z();f.a.cc=function(r,o,i,s,l,u){function c(e){h={Aa:e,nb:f.sa(b++)},y.push(h),g||V.push(h)}function p(e){h=m[e],b!==h.nb.w()&&P.push(h),h.nb(b++),f.a.Ua(h.Y,r),y.push(h)}function d(e,t){if(e)for(var n=0,r=t.length;n<r;n++)f.a.C(t[n].Y,function(r){e(r,n,t[n].Aa)})}o=o||[],void 0===o.length&&(o=[o]),s=s||{};var h,m=f.a.g.get(r,t),g=!m,y=[],v=0,b=0,x=[],C=[],w=[],P=[],V=[],T=0;if(g)f.a.C(o,c);else{if(!u||m&&m._countWaitingForRemove){var k=f.a.Mb(m,function(e){return e.Aa});u=f.a.Ob(k,o,{dontLimitMoves:s.dontLimitMoves,sparse:!0})}for(var _,S,q,k=0;_=u[k];k++)switch(S=_.moved,q=_.index,_.status){case"deleted":for(;v<q;)p(v++);S===a&&(h=m[v],h.$&&(h.$.s(),h.$=a),f.a.Ua(h.Y,r).length&&(s.beforeRemove&&(y.push(h),T++,h.Aa===n?h=null:w.push(h)),h&&x.push.apply(x,h.Y))),v++;break;case"added":for(;b<q;)p(v++);S!==a?(C.push(y.length),p(S)):c(_.value)}for(;b<o.length;)p(v++);y._countWaitingForRemove=T}f.a.g.set(r,t,y),d(s.beforeMove,P),f.a.C(x,s.beforeRemove?f.na:f.removeNode);var R,O,E;try{E=r.ownerDocument.activeElement}catch(e){}if(C.length)for(;(k=C.shift())!=a;){for(h=y[k],R=a;k;)if((O=y[--k].Y)&&O.length){R=O[O.length-1];break}for(o=0;v=h.Y[o];R=v,o++)f.h.Vb(r,v,R)}for(k=0,C=f.h.firstChild(r);h=y[k];k++){for(h.Y||f.a.extend(h,e(r,i,h.Aa,l,h.nb)),o=0;v=h.Y[o];C=v.nextSibling,R=v,o++)v!==C&&f.h.Vb(r,v,R);!h.Dd&&l&&(l(h.Aa,h.Y,h.nb),h.Dd=!0,R=h.Y[h.Y.length-1])}for(E&&r.ownerDocument.activeElement!=E&&E.focus(),d(s.beforeRemove,w),k=0;k<w.length;++k)w[k].Aa=n;d(s.afterMove,P),d(s.afterAdd,V)}}(),f.b("utils.setDomNodeChildrenFromArrayMapping",f.a.cc),f.ba=function(){this.allowTemplateRewriting=!1},f.ba.prototype=new f.ca,f.ba.prototype.constructor=f.ba,f.ba.prototype.renderTemplateSource=function(e,t,n,r){return(t=(9>f.a.W?0:e.nodes)?e.nodes():null)?f.a.la(t.cloneNode(!0).childNodes):(e=e.text(),f.a.ta(e,r))},f.ba.Na=new f.ba,f.ec(f.ba.Na),f.b("nativeTemplateEngine",f.ba),function(){f.Za=function(){var e=this.Gd=function(){if(!c||!c.tmpl)return 0;try{if(0<=c.tmpl.tag.tmpl.open.toString().indexOf("__"))return 2}catch(e){}return 1}();this.renderTemplateSource=function(t,n,r,o){if(o=o||l,r=r||{},2>e)throw Error("Your version of jQuery.tmpl is too old. Please upgrade to jQuery.tmpl 1.0.0pre or later.");var i=t.data("precompiled");return i||(i=t.text()||"",i=c.template(null,"{{ko_with $item.koBindingContext}}"+i+"{{/ko_with}}"),t.data("precompiled",i)),t=[n.$data],n=c.extend({koBindingContext:n},r.templateOptions),n=c.tmpl(i,t,n),n.appendTo(o.createElement("div")),c.fragments={},n},this.createJavaScriptEvaluatorBlock=function(e){return"{{ko_code ((function() { return "+e+" })()) }}"},this.addTemplate=function(e,t){l.write("<script type='text/html' id='"+e+"'>"+t+"<\/script>")},0<e&&(c.tmpl.tag.ko_code={open:"__.push($1 || '');"},c.tmpl.tag.ko_with={open:"with($1) {",close:"} "})},f.Za.prototype=new f.ca,f.Za.prototype.constructor=f.Za;var e=new f.Za;0<e.Gd&&f.ec(e),f.b("jqueryTmplTemplateEngine",f.Za)}()})}()}()},function(e,t,n){"use strict";var r=n(0),o=n(6),i=(n.n(o),n(5)),a=n(4),s=n(16);n.d(t,"a",function(){return l});var l=function(e){function t(t){var n=e.call(this,t)||this;n.question=t,n._koValue=o.observableArray();var r=!1;n._koValue.subscribe(function(e){r||(n.question.value=e)}),Object.defineProperty(n.question,"koValue",{get:function(){if(!a.a.isTwoValueEquals(n._koValue(),n.getKoValue()))try{r=!0,n._koValue(n.getKoValue())}finally{r=!1}return n._koValue},enumerable:!0,configurable:!0});var i=n;return t.surveyLoadCallback=function(){i.onSurveyLoad()},n.koTemplateName=o.pureComputed(function(){return i.getTemplateName()}),n.koElementType=o.observable("survey-question"),n.question.koElementType=n.koElementType,n.question.koTemplateName=n.koTemplateName,n.question.updateQuestion=function(){i.updateQuestion()},n.question.koCss=o.pureComputed(function(){return i.question.cssClasses}),n.question.koRootClass=o.pureComputed(function(){var e=i.question,t=e.cssMainRoot;return e.koCss().small&&!e.width&&(t+=" "+e.koCss().small),t}),n.question.koHeaderClass=o.pureComputed(function(){var e=i.question,t=i.question.cssClasses,n=t.header;return e.hasTitleOnTop&&(n+=" "+t.headerTop),e.hasTitleOnLeft&&(n+=" "+t.headerLeft),e.hasTitleOnBottom&&(n+=" "+t.headerBottom),n}),n.question.koContentClass=o.pureComputed(function(){var e=i.question;return e.koCss().content+(e.hasTitleOnLeft?" "+e.koCss().contentLeft:"")}),n.question.koTitleClass=o.pureComputed(function(){var e=i.question,t=e.cssClasses,n=t.title;return e.containsErrors?n+=" "+t.titleOnError:e.isAnswered&&(n+=" "+t.titleOnAnswer),n}),n.question.koErrorClass=o.pureComputed(function(){var e=i.question,t=e.cssClasses.error.root;return"top"==e.errorLocation?t+=" "+e.cssClasses.error.locationTop:"bottom"===e.errorLocation&&(t+=" "+e.cssClasses.error.locationBottom),t}),t.registerFunctionOnPropertyValueChanged("visibleIndex",function(){i.onVisibleIndexChanged()}),n.koDummy=o.observable(0),n.question.koQuestionAfterRender=function(e,t){i.koQuestionAfterRender(e,t)},n}return n.i(r.b)(t,e),t.prototype.getKoValue=function(){return this.question.value},t.prototype.updateQuestion=function(){this.updateKoDummy()},t.prototype.onVisibleIndexChanged=function(){this.updateKoDummy()},t.prototype.onSurveyLoad=function(){},t.prototype.getQuestionTemplate=function(){return this.question.getTemplate()},t.prototype.getTemplateName=function(){return this.question.customWidget&&!this.question.customWidget.widgetJson.isDefaultRender?"survey-widget-"+this.question.customWidget.name:"survey-question-"+this.getQuestionTemplate()},t.prototype.getNo=function(){return this.question.visibleIndex>-1?this.question.visibleIndex+1+". ":""},t.prototype.updateKoDummy=function(){this.koDummy(this.koDummy()+1),this.question.locTitle.onChanged()},t.prototype.koQuestionAfterRender=function(e,t){var n=this,r=i.b.GetFirstNonTextElement(e),a=e[0];"#text"===a.nodeName&&(a.data=""),a=e[e.length-1],"#text"===a.nodeName&&(a.data=""),r&&this.question.customWidget&&(this.question.customWidget.afterRender(this.question,r),o.utils.domNodeDisposal.addDisposeCallback(r,function(){try{n.question.customWidget.willUnmount(n.question,r)}catch(e){console.warn("Custom widget will unmount failed")}}))},t}(s.a)},function(e,t,n){"use strict";n.d(t,"a",function(){return r});var r={commentPrefix:"-Comment",webserviceEncodeParameters:!0,surveyServiceUrl:"https://dxsurveyapi.azurewebsites.net/api/Survey",itemValueSeparator:"|",defaultLocaleName:"default",matrixDefaultRowName:"default",matrixDefaultCellType:"dropdown",matrixTotalValuePostFix:"-total",matrixMaximumRowCount:1e3,panelMaximumPanelCount:100,ratingMaximumRateValueCount:20,disableOnGettingChoicesFromWeb:!1}},function(e,t,n){"use strict";var r=n(0),o=n(4),i=n(1),a=n(5),s=n(2),l=n(11),u=n(33),c=n(23),p=n(14),d=n(10),h=n(13),f=n(28);n.d(t,"a",function(){return m});var m=function(e){function t(n){var r=e.call(this,n)||this;r.name=n,r.conditionRunner=null,r.isCustomWidgetRequested=!1,r.customWidgetData={isNeedRender:!0},r.isReadyValue=!0,r.onReadyChanged=new a.a,r._displayValue="",r.isRunningValidatorsValue=!1,r.isValueChangedInSurvey=!1,r.locNotificationInData=!1,r.locOwner=null,r.id=t.getQuestionId(),r.onCreating();var o=r;r.createNewArray("validators",function(e){e.errorOwner=o});var i=r.createLocalizableString("title",r,!0);return i.onGetTextCallback=function(e){var t=o.calcFullTitle(e);return o.survey?o.survey.getUpdatedQuestionTitle(this,t):t},r.locProcessedTitle=new p.a(r,!0),r.locProcessedTitle.sharedData=i,r.createLocalizableString("description",r,!0),r.createLocalizableString("commentText",r,!0).onGetTextCallback=function(e){return e||s.a.getString("otherItemText")},r.createLocalizableString("requiredErrorText",r),r.registerFunctionOnPropertyValueChanged("width",function(){o.parent&&o.parent.elementWidthChanged(o)}),r.registerFunctionOnPropertiesValueChanged(["indent","rightIndent"],function(){o.onIndentChanged()}),r.registerFunctionOnPropertiesValueChanged(["hasComment","hasOther"],function(){o.initCommentFromSurvey()}),r}return n.i(r.b)(t,e),t.getQuestionId=function(){return"sq_"+t.questionCounter++},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:!0,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.survey&&this.survey.questionRenamed(this,e,this.valueName?this.valueName:e)},Object.defineProperty(t.prototype,"isReady",{get:function(){return this.isReadyValue},enumerable:!0,configurable:!0}),t.prototype.choicesLoaded=function(){},Object.defineProperty(t.prototype,"page",{get:function(){return this.getPage(this.parent)},set:function(e){this.setPage(this.parent,e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"isPanel",{get:function(){return!1},enumerable:!0,configurable:!0}),t.prototype.getPanel=function(){return null},t.prototype.delete=function(){this.parent&&this.removeSelfFromList(this.parent.elements)},Object.defineProperty(t.prototype,"isFlowLayout",{get:function(){return"flow"===this.getLayoutType()},enumerable:!0,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.survey&&this.survey.questionVisibilityChanged(this,this.visible))},enumerable:!0,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,"useDisplayValuesInTitle",{get:function(){return this.getPropertyValue("useDisplayValuesInTitle",!0)},set:function(e){this.setPropertyValue("useDisplayValuesInTitle",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"visibleIf",{get:function(){return this.getPropertyValue("visibleIf","")},set:function(e){this.setPropertyValue("visibleIf",e),this.runConditions()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"isVisible",{get:function(){return this.visible||this.areInvisibleElementsShowing},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"visibleIndex",{get:function(){return this.getPropertyValue("visibleIndex",-1)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"isAllowTitleLeft",{get:function(){return!0},enumerable:!0,configurable:!0}),t.prototype.getType=function(){return"question"},t.prototype.moveTo=function(e,t){return void 0===t&&(t=null),this.moveToBase(this.parent,e,t)},t.prototype.runConditions=function(){!this.data||this.isLoadingFromJson||this.isDesignMode||(this.runCondition(this.getDataFilteredValues(),this.getDataFilteredProperties()),this.locStrsChanged())},t.prototype.setSurveyImpl=function(t){e.prototype.setSurveyImpl.call(this,t),this.survey&&this.survey.isDesignMode&&!this.isDesignMode&&this.onVisibleChanged(),this.runConditions()},t.prototype.getDataFilteredValues=function(){return this.data?this.data.getFilteredValues():null},t.prototype.getDataFilteredProperties=function(){return this.data?this.data.getFilteredProperties():null},Object.defineProperty(t.prototype,"parent",{get:function(){return this.getPropertyValue("parent",null)},set:function(e){this.setPropertyValue("parent",e),this.onParentChanged()},enumerable:!0,configurable:!0}),t.prototype.onParentChanged=function(){},Object.defineProperty(t.prototype,"hasTitle",{get:function(){return"hidden"!==this.getTitleLocation()},enumerable:!0,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()),t&&this.survey&&this.survey.questionVisibilityChanged(this,this.visible)},enumerable:!0,configurable:!0}),t.prototype.getTitleLocation=function(){if(this.isFlowLayout)return"hidden";var e=this.getTitleLocationCore();return"left"!==e||this.isAllowTitleLeft||(e="top"),e},t.prototype.getTitleLocationCore=function(){return"default"!==this.titleLocation?this.titleLocation:this.parent?this.parent.getQuestionTitleLocation():this.survey?this.survey.questionTitleLocation:"top"},Object.defineProperty(t.prototype,"hasTitleOnLeft",{get:function(){return this.hasTitle&&"left"===this.getTitleLocation()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"hasTitleOnTop",{get:function(){return this.hasTitle&&"top"===this.getTitleLocation()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"hasTitleOnBottom",{get:function(){return this.hasTitle&&"bottom"===this.getTitleLocation()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"hasTitleOnLeftTop",{get:function(){if(!this.hasTitle)return!1;var e=this.getTitleLocation();return"left"===e||"top"===e},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"errorLocation",{get:function(){return this.survey?this.survey.questionErrorLocation:"top"},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"hasInput",{get:function(){return!0},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"inputId",{get:function(){return this.id+"i"},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"title",{get:function(){return this.getLocalizableStringText("title",this.name)},set:function(e){this.setLocalizableStringText("title",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"locTitle",{get:function(){return this.getLocalizableString("title")},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"description",{get:function(){return this.getLocalizableStringText("description")},set:function(e){this.setLocalizableStringText("description",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"locDescription",{get:function(){return this.getLocalizableString("description")},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"descriptionLocation",{get:function(){return this.getPropertyValue("descriptionLocation")},set:function(e){this.setPropertyValue("descriptionLocation",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"hasDescriptionUnderTitle",{get:function(){return"underTitle"==this.getDescriptionLocation()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"hasDescriptionUnderInput",{get:function(){return"underInput"==this.getDescriptionLocation()},enumerable:!0,configurable:!0}),t.prototype.getDescriptionLocation=function(){return"default"!==this.descriptionLocation?this.descriptionLocation:this.survey?this.survey.questionDescriptionLocation:"underTitle"},Object.defineProperty(t.prototype,"requiredErrorText",{get:function(){return this.getLocalizableStringText("requiredErrorText")},set:function(e){this.setLocalizableStringText("requiredErrorText",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"locRequiredErrorText",{get:function(){return this.getLocalizableString("requiredErrorText")},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"commentText",{get:function(){return this.getLocalizableStringText("commentText",s.a.getString("otherItemText"))},set:function(e){this.setLocalizableStringText("commentText",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"locCommentText",{get:function(){return this.getLocalizableString("commentText")},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"locTitleHtml",{get:function(){var e=this.locTitle.textOrHtml;return e||this.name},enumerable:!0,configurable:!0}),t.prototype.getAllErrors=function(){return this.errors.slice()},Object.defineProperty(t.prototype,"customWidget",{get:function(){return this.isCustomWidgetRequested||this.customWidgetValue||(this.isCustomWidgetRequested=!0,this.updateCustomWidget()),this.customWidgetValue},enumerable:!0,configurable:!0}),t.prototype.updateCustomWidget=function(){this.customWidgetValue=f.a.Instance.getCustomWidget(this)},Object.defineProperty(t.prototype,"processedTitle",{get:function(){var e=this.locProcessedTitle.textOrHtml;return e||this.name},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"fullTitle",{get:function(){return this.locTitle.renderedHtml},enumerable:!0,configurable:!0}),t.prototype.getQuestionTitleTemplate=function(){return this.questionTitleTemplateCallback?this.questionTitleTemplateCallback():this.survey?this.survey.getQuestionTitleTemplate():null},t.prototype.calcFullTitle=function(e){var t=this.getQuestionTitleTemplate();if(t){if(!this.textPreProcessor){var n=this;this.textPreProcessor=new c.a,this.textPreProcessor.onProcess=function(e){n.getProcessedTextValue(e)}}return this.textPreProcessor.process(t,this.useDisplayValuesInTitle)}return e||(e=this.name),e},Object.defineProperty(t.prototype,"startWithNewLine",{get:function(){return this.getPropertyValue("startWithNewLine",!0)},set:function(e){this.startWithNewLine!=e&&this.setPropertyValue("startWithNewLine",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"cssClasses",{get:function(){var e=this.css,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),t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"cssMainRoot",{get:function(){var e=this.cssClasses,t=this.isFlowLayout&&!this.isDesignMode?e.flowRoot:e.mainRoot;return this.isFlowLayout||"left"!=this.getTitleLocation()||(t+=" "+e.titleLeftRoot),this.errors.length>0&&(t+=" "+e.hasError),t},enumerable:!0,configurable:!0}),t.prototype.getRootCss=function(e){return e.question.root},t.prototype.updateCssClasses=function(e,t){this.isRequired&&(t.question.required&&(e.root=(e.root?e.root+" ":"")+n),t.question.titleRequired&&(e.title+=" "+t.question.titleRequired));var n=t[this.getType()];if(void 0!==n&&null!==n)if("string"==typeof n||n instanceof String)e.root=(e.root?e.root+" ":"")+n;else for(var r in n)e[r]=n[r]},Object.defineProperty(t.prototype,"css",{get:function(){return h.b.getCss()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"width",{get:function(){return this.getPropertyValue("width","")},set:function(e){this.setPropertyValue("width",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"renderWidth",{get:function(){return this.getPropertyValue("renderWidth","")},set:function(e){this.setPropertyValue("renderWidth",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"indent",{get:function(){return this.getPropertyValue("indent",0)},set:function(e){this.setPropertyValue("indent",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"rightIndent",{get:function(){return this.getPropertyValue("rightIndent",0)},set:function(e){this.setPropertyValue("rightIndent",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"paddingLeft",{get:function(){return this.getPropertyValue("paddintLeft","")},set:function(e){this.setPropertyValue("paddintLeft",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"paddingRight",{get:function(){return this.getPropertyValue("paddingRight","")},set:function(e){this.setPropertyValue("paddingRight",e)},enumerable:!0,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?"":e*this.cssClasses.indent+"px"},t.prototype.focus=function(e){void 0===e&&(e=!1),a.b.ScrollElementToTop(this.id);var t=e?this.getFirstErrorInputElementId():this.getFirstInputElementId();a.b.FocusElement(t)&&this.fireCallback(this.focusCallback)},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.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(){return!1},t.prototype.supportOther=function(){return!1},Object.defineProperty(t.prototype,"isRequired",{get:function(){return this.getPropertyValue("isRequired",!1)},set:function(e){this.isRequired!=e&&(this.setPropertyValue("isRequired",e),this.isLoadingFromJson||this.locTitle.onChanged())},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"requiredIf",{get:function(){return this.getPropertyValue("requiredIf","")},set:function(e){this.setPropertyValue("requiredIf",e),this.runConditions()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"hasComment",{get:function(){return this.getPropertyValue("hasComment",!1)},set:function(e){this.supportComment()&&(this.setPropertyValue("hasComment",e),this.hasComment&&(this.hasOther=!1))},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"id",{get:function(){return this.getPropertyValue("id")},set:function(e){this.setPropertyValue("id",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"hasOther",{get:function(){return this.getPropertyValue("hasOther",!1)},set:function(e){this.supportOther()&&this.hasOther!=e&&(this.setPropertyValue("hasOther",e),this.hasOther&&(this.hasComment=!1),this.hasOtherChanged())},enumerable:!0,configurable:!0}),t.prototype.hasOtherChanged=function(){},Object.defineProperty(t.prototype,"requireUpdateCommentValue",{get:function(){return this.hasComment||this.hasOther},enumerable:!0,configurable:!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:!0,configurable:!0}),Object.defineProperty(t.prototype,"enableIf",{get:function(){return this.getPropertyValue("enableIf","")},set:function(e){this.setPropertyValue("enableIf",e),this.runConditions()},enumerable:!0,configurable:!0}),t.prototype.runCondition=function(e,t){this.isDesignMode||(this.areInvisibleElementsShowing||this.runVisibleIfCondition(e,t),this.runEnableIfCondition(e,t),this.runRequiredIfCondition(e,t))},t.prototype.runVisibleIfCondition=function(e,t){var n=this;this.visibleIf&&(this.conditionRunner||(this.conditionRunner=new d.a(this.visibleIf)),this.conditionRunner.expression=this.visibleIf,this.conditionRunner.onRunComplete=function(e){n.visible=e},this.conditionRunner.run(e,t))},t.prototype.runEnableIfCondition=function(e,t){var n=this;this.enableIf&&(this.conditionEnabelRunner||(this.conditionEnabelRunner=new d.a(this.enableIf)),this.conditionEnabelRunner.expression=this.enableIf,this.conditionEnabelRunner.onRunComplete=function(e){n.readOnly=!e},this.conditionEnabelRunner.run(e,t))},t.prototype.runRequiredIfCondition=function(e,t){var n=this;this.requiredIf&&(this.conditionRequiredRunner||(this.conditionRequiredRunner=new d.a(this.requiredIf)),this.conditionRequiredRunner.expression=this.requiredIf,this.conditionRequiredRunner.onRunComplete=function(e){n.isRequired=e},this.conditionRequiredRunner.run(e,t))},Object.defineProperty(t.prototype,"no",{get:function(){if(this.visibleIndex<0)return"";var e=1,t=!0,n="";return this.survey&&this.survey.questionStartIndex&&(n=this.survey.questionStartIndex,parseInt(n)?e=parseInt(n):1==n.length&&(t=!1)),t?(this.visibleIndex+e).toString():String.fromCharCode(n.charCodeAt(0)+this.visibleIndex)},enumerable:!0,configurable:!0}),t.prototype.onSurveyLoad=function(){this.fireCallback(this.surveyLoadCallback),this.updateValueWithDefaults(),this.updateDisplayValue()},t.prototype.onSetData=function(){e.prototype.onSetData.call(this),this.initDataFromSurvey(),this.onSurveyValueChanged(this.value),this.updateValueWithDefaults()},t.prototype.initDataFromSurvey=function(){this.data&&(this.updateValueFromSurvey(this.data.getValue(this.getValueName())),this.initCommentFromSurvey())},t.prototype.initCommentFromSurvey=function(){this.data&&this.requireUpdateCommentValue?this.updateCommentFromSurvey(this.data.getComment(this.getValueName())):this.updateCommentFromSurvey("")},Object.defineProperty(t.prototype,"questionValue",{get:function(){return this.getPropertyValue("value")},set:function(e){this.setPropertyValue("value",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"questionComment",{get:function(){return this.getPropertyValue("comment")},set:function(e){this.setPropertyValue("comment",e),this.fireCallback(this.commentChangedCallback)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"value",{get:function(){return this.getValueCore()},set:function(e){this.setNewValue(e)},enumerable:!0,configurable:!0}),t.prototype.clearValue=function(){this.value=null,this.comment=null},t.prototype.createValueCopy=function(){return o.a.getUnbindValue(this.value)},t.prototype.canClearValueAsInvisible=function(){return(!this.isVisible||!this.isParentVisible)&&((!this.page||!this.page.isStarted)&&(!this.survey||!this.valueName||!this.survey.hasVisibleQuestionByValueName(this.valueName)))},Object.defineProperty(t.prototype,"isParentVisible",{get:function(){for(var e=this.parent;e;){if(!e.isVisible)return!1;e=e.parent}return!0},enumerable:!0,configurable:!0}),t.prototype.clearValueIfInvisible=function(){this.canClearValueAsInvisible()&&this.clearValue()},Object.defineProperty(t.prototype,"displayValue",{get:function(){return this.updateDisplayValue(),this._displayValue},enumerable:!0,configurable:!0}),t.prototype.updateDisplayValue=function(){this.isLoadingFromJson||(this._displayValue=this.getDisplayValue(!0))},t.prototype.getDisplayValue=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=void 0==t?this.createValueCopy():t,o.a.isValueEmpty(t)?"":this.getDisplayValueCore(e,t)},t.prototype.getDisplayValueCore=function(e,t){return t},Object.defineProperty(t.prototype,"defaultValue",{get:function(){return this.getPropertyValue("defaultValue")},set:function(e){this.setPropertyValue("defaultValue",e),this.updateValueWithDefaults()},enumerable:!0,configurable:!0}),t.prototype.getPlainData=function(e){var t=this;if(void 0===e&&(e={includeEmpty:!0}),e.includeEmpty||!this.isEmpty()){var n={name:this.name,title:this.title,value:this.value,displayValue:this.displayValue,isNode:!1,getString:function(e){return"object"==typeof e?JSON.stringify(e):e}};return(e.calculations||[]).forEach(function(e){n[e.propertyName]=t[e.propertyName]}),n}},Object.defineProperty(t.prototype,"correctAnswer",{get:function(){return this.getPropertyValue("correctAnswer")},set:function(e){this.setPropertyValue("correctAnswer",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"quizQuestionCount",{get:function(){return this.isVisible&&this.hasInput&&!o.a.isValueEmpty(this.correctAnswer)?this.getQuizQuestionCount():0},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"correctAnswerCount",{get:function(){return this.isEmpty()||this.isValueEmpty(this.correctAnswer)?0:this.getCorrectAnswerCount()},enumerable:!0,configurable:!0}),t.prototype.getQuizQuestionCount=function(){return 1},t.prototype.getCorrectAnswerCount=function(){return this.isTwoValueEquals(this.value,this.correctAnswer,!0)?1:0},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.setDefaultValue())},t.prototype.getQuestionFromArray=function(e,t){return null},t.prototype.getDefaultValue=function(){return this.defaultValue},t.prototype.isDefaultValueEmpty=function(){return this.isValueEmpty(this.defaultValue)},t.prototype.setDefaultValue=function(){this.value=this.defaultValue},Object.defineProperty(t.prototype,"comment",{get:function(){return this.getComment()},set:function(e){e&&(e=e.toString().trim()),this.comment!=e&&this.setComment(e)},enumerable:!0,configurable:!0}),t.prototype.getComment=function(){return this.questionComment},t.prototype.setComment=function(e){this.setNewComment(e)},t.prototype.isEmpty=function(){return this.isValueEmpty(this.value)},Object.defineProperty(t.prototype,"isAnswered",{get:function(){return this.getPropertyValue("isAnswered")},set:function(e){this.setPropertyValue("isAnswered",e)},enumerable:!0,configurable:!0}),t.prototype.updateIsAnswered=function(){this.setPropertyValue("isAnswered",this.getIsAnswered())},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:!0,configurable:!0}),t.prototype.getValidators=function(){return this.validators},t.prototype.addConditionNames=function(e){e.push(this.name)},t.prototype.addConditionObjectsByContext=function(e,t){e.push({name:this.name,text:this.processedTitle,question:this})},t.prototype.getConditionJson=function(e,t){void 0===e&&(e=null),void 0===t&&(t=null);var n=(new i.b).toJsonObject(this);return n.type=this.getType(),n},t.prototype.hasErrors=function(e,t){void 0===e&&(e=!0),void 0===t&&(t=null);var n=this.checkForErrors();return e&&(this.survey&&this.survey.beforeSettingQuestionErrors(this,n),this.errors=n),this.updateContainsErrors(),n.length>0},Object.defineProperty(t.prototype,"currentErrorCount",{get:function(){return this.errors.length},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"requiredText",{get:function(){return null!=this.survey&&this.isRequired?this.survey.requiredText:""},enumerable:!0,configurable:!0}),t.prototype.addError=function(e){this.errors.push(e)},t.prototype.removeError=function(e){var t=this.errors,n=t.indexOf(e);-1!==n&&t.splice(n,1)},t.prototype.checkForErrors=function(){var e=new Array;return this.isVisible&&!this.isReadOnly&&this.collectErrors(e),e},t.prototype.collectErrors=function(e){if(this.onCheckForErrors(e),0==e.length){var t=this.runValidators();if(t.length>0){e.length=0;for(var n=0;n<t.length;n++)e.push(t[n])}}if(this.survey&&0==e.length){var r=this.fireSurveyValidation();r&&e.push(r)}},t.prototype.fireSurveyValidation=function(){return this.validateValueCallback?this.validateValueCallback():this.survey?this.survey.validateQuestion(this):null},t.prototype.onCheckForErrors=function(e){this.hasRequiredError()&&e.push(new l.d(this.requiredErrorText,this))},t.prototype.hasRequiredError=function(){return this.isRequired&&this.isEmpty()},Object.defineProperty(t.prototype,"isRunningValidators",{get:function(){return this.getIsRunningValidators()},enumerable:!0,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 u.a,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.setNewValueInData(e),this.onValueChanged()},t.prototype.isTextValue=function(){return!1},Object.defineProperty(t.prototype,"isSurveyInputTextUpdate",{get:function(){return!!this.survey&&this.survey.isUpdateValueTextOnTyping},enumerable:!0,configurable:!0}),t.prototype.getDataLocNotification=function(){return this.locNotificationInData?this.locNotificationInData:!!this.isInputTextUpdate&&"text"},Object.defineProperty(t.prototype,"isInputTextUpdate",{get:function(){return this.isSurveyInputTextUpdate&&this.isTextValue()},enumerable:!0,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.data.setValue(this.getValueName(),e,this.getDataLocNotification())},t.prototype.valueFromData=function(e){return e},t.prototype.valueToData=function(e){return e},t.prototype.onValueChanged=function(){},t.prototype.setNewComment=function(e){this.questionComment=e,null!=this.data&&this.data.setComment(this.getValueName(),e,!!this.isSurveyInputTextUpdate&&"text")},t.prototype.updateValueFromSurvey=function(e){e=o.a.getUnbindValue(e),this.setQuestionValue(this.valueFromData(e))},t.prototype.updateCommentFromSurvey=function(e){this.questionComment=e},t.prototype.setQuestionValue=function(e,t){void 0===t&&(t=!0),this.questionValue=e,this.fireCallback(this.valueChangedCallback),t&&this.updateIsAnswered()},t.prototype.onSurveyValueChanged=function(e){this.isLoadingFromJson||this.updateDisplayValue()},t.prototype.setVisibleIndex=function(e){return this.isVisible&&this.hasTitle||(e=-1),this.setPropertyValue("visibleIndex",e),e<0?0:1},t.prototype.removeElement=function(e){return!1},t.prototype.supportGoNextPageAutomatic=function(){return!1},t.prototype.clearIncorrectValues=function(){},t.prototype.clearErrors=function(){this.errors=[]},t.prototype.clearUnusedValues=function(){},t.prototype.onAnyValueChanged=function(e){},t.prototype.getLocale=function(){return this.survey?this.survey.getLocale():this.locOwner?this.locOwner.getLocale():""},t.prototype.getMarkdownHtml=function(e){return this.survey?this.survey.getSurveyMarkdownHtml(this,e):this.locOwner?this.locOwner.getMarkdownHtml(e):null},t.prototype.getProcessedText=function(e){return this.textProcessor?this.textProcessor.processText(e,this.useDisplayValuesInTitle):this.locOwner?this.locOwner.getProcessedText(e):e},t.prototype.getErrorCustomText=function(e,t){return this.survey?this.survey.getErrorCustomText(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:!0,configurable:!0}),t.prototype.getAllValues=function(){return this.data?this.data.getAllValues():null},t.TextPreprocessorValuesMap={title:"processedTitle",require:"requiredText"},t.questionCounter=100,t}(a.b);i.a.addClass("question",["!name",{name:"visible:boolean",default:!0},{name:"useDisplayValuesInTitle:boolean",default:!0,layout:"row"},"visibleIf:condition",{name:"width"},{name:"startWithNewLine:boolean",default:!0,layout:"row"},{name:"indent:number",default:0,choices:[0,1,2,3],layout:"row"},{name:"page",isSerializable:!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"},{name:"description:text",serializationProperty:"locDescription",layout:"row"},{name:"descriptionLocation",default:"default",choices:["default","underInput","underTitle"]},"valueName","enableIf:condition","defaultValue:value","correctAnswer:value","isRequired:boolean","requiredIf:condition",{name:"requiredErrorText:text",serializationProperty:"locRequiredErrorText"},"readOnly:boolean",{name:"validators:validators",baseClassName:"surveyvalidator",classNamePart:"validator"},{name:"titleLocation",default:"default",choices:["default","top","bottom","left","hidden"],layout:"row"}]),i.a.addAlterNativeClassName("question","questionbase")},function(e,t,n){"use strict";var r=n(0),o=n(15),i=n(40);n.d(t,"a",function(){return s}),n.d(t,"b",function(){return l});var a=function(){function e(e){this.processValue=new o.a,this.parser=new i.a,this.isAsyncValue=!1,this.hasFunctionValue=!1,this.expression=e}return Object.defineProperty(e.prototype,"expression",{get:function(){return this.expressionValue},set: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())},enumerable:!0,configurable:!0}),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:!0,configurable:!0}),e.prototype.canRun=function(){return!!this.operand},e.prototype.runCore=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(var 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.doOnComplete(e),e},e.prototype.doOnComplete=function(e){},e}(),s=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return n.i(r.b)(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}(a),l=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return n.i(r.b)(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}(a)},function(e,t,n){"use strict";var r=n(0),o=n(2),i=n(5);n.d(t,"d",function(){return a}),n.d(t,"a",function(){return s}),n.d(t,"e",function(){return l}),n.d(t,"l",function(){return u}),n.d(t,"g",function(){return c}),n.d(t,"f",function(){return p}),n.d(t,"c",function(){return d}),n.d(t,"k",function(){return h}),n.d(t,"j",function(){return f}),n.d(t,"i",function(){return m}),n.d(t,"h",function(){return g}),n.d(t,"b",function(){return y});var 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 n.i(r.b)(t,e),t.prototype.getErrorType=function(){return"required"},t.prototype.getDefaultText=function(){return o.a.getString("requiredError")},t}(i.d),s=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 n.i(r.b)(t,e),t.prototype.getErrorType=function(){return"requireoneanswer"},t.prototype.getDefaultText=function(){return o.a.getString("requiredErrorInPanel")},t}(i.d),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 n.i(r.b)(t,e),t.prototype.getErrorType=function(){return"requirenumeric"},t.prototype.getDefaultText=function(){return o.a.getString("numericError")},t}(i.d),u=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 n.i(r.b)(t,e),t.prototype.getErrorType=function(){return"exceedsize"},t.prototype.getDefaultText=function(){return o.a.getString("exceedMaxSize").format(this.getTextSize())},t.prototype.getTextSize=function(){var e=["Bytes","KB","MB","GB","TB"],t=[0,0,2,3,3];if(0===this.maxSize)return"0 Byte";var n=Math.floor(Math.log(this.maxSize)/Math.log(1024));return(this.maxSize/Math.pow(1024,n)).toFixed(t[n])+" "+e[n]},t}(i.d),c=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 n.i(r.b)(t,e),t.prototype.getErrorType=function(){return"webrequest"},t.prototype.getDefaultText=function(){return o.a.getString("urlRequestError").format(this.status,this.response)},t}(i.d),p=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 n.i(r.b)(t,e),t.prototype.getErrorType=function(){return"webrequestempty"},t.prototype.getDefaultText=function(){return o.a.getString("urlGetChoicesError")},t}(i.d),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 n.i(r.b)(t,e),t.prototype.getErrorType=function(){return"otherempty"},t.prototype.getDefaultText=function(){return o.a.getString("otherRequiredError")},t}(i.d),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 n.i(r.b)(t,e),t.prototype.getErrorType=function(){return"uploadingfile"},t.prototype.getDefaultText=function(){return o.a.getString("uploadingFile")},t}(i.d),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 n.i(r.b)(t,e),t.prototype.getErrorType=function(){return"requiredinallrowserror"},t.prototype.getDefaultText=function(){return o.a.getString("requiredInAllRowsError")},t}(i.d),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 n.i(r.b)(t,e),t.prototype.getErrorType=function(){return"minrowcounterror"},t.prototype.getDefaultText=function(){return o.a.getString("minRowCountError").format(this.minRowCount)},t}(i.d),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 n.i(r.b)(t,e),t.prototype.getErrorType=function(){return"keyduplicationerror"},t.prototype.getDefaultText=function(){return o.a.getString("keyDuplicationError")},t}(i.d),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 n.i(r.b)(t,e),t.prototype.getErrorType=function(){return"custom"},t}(i.d)},function(e,t,n){"use strict";var r=n(0),o=n(14),i=n(1),a=n(4),s=n(10),l=n(5),u=n(8);n.d(t,"a",function(){return c});var c=function(e){function t(t,n,r){void 0===n&&(n=null),void 0===r&&(r="itemvalue");var i=e.call(this)||this;return i.typeName=r,i.visibleIfValue="",i.isVisibleValue=!0,i.locTextValue=new o.a(null,!0),i.locTextValue.onGetTextCallback=function(e){return e||(i.isValueItemEmpty?null:i.value.toString())},n&&(i.locText.text=n),t&&"object"==typeof t?i.setData(t):i.value=t,i.onCreating(),i}return n.i(r.b)(t,e),Object.defineProperty(t,"Separator",{get:function(){return u.a.itemValueSeparator},set:function(e){u.a.itemValueSeparator=e},enumerable:!0,configurable:!0}),t.createArray=function(e){var n=[];return t.setupArray(n,e),n},t.setupArray=function(e,t){e.push=function(e){var n=Array.prototype.push.call(this,e);return e.locOwner=t,n},e.unshift=function(e){var n=Array.prototype.unshift.call(this,e);return e.locOwner=t,n},e.splice=function(e,o){for(var i,a=[],s=2;s<arguments.length;s++)a[s-2]=arguments[s];var l=(i=Array.prototype.splice).call.apply(i,n.i(r.d)([this,e,o],a));a||(a=[]);for(var u=0;u<a.length;u++)a[u].locOwner=t;return l}},t.setData=function(e,n){e.length=0;for(var r=0;r<n.length;r++){var o,a=n[r];o="function"==typeof a.getType?i.a.createClass(a.getType()):new t(null),o.setData(a),e.push(o)}},t.getData=function(e){for(var t=new Array,n=0;n<e.length;n++)t.push(e[n].getData());return t},t.getItemByValue=function(e,t){for(var n=0;n<e.length;n++)if(a.a.isTwoValueEquals(e[n].value,t))return e[n];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].locText.strChanged()},t.runConditionsForItems=function(e,n,r,o,i,a){return void 0===a&&(a=!0),t.runConditionsForItemsCore(e,n,r,o,i,!0,a)},t.runEnabledConditionsForItems=function(e,n,r,o){return t.runConditionsForItemsCore(e,null,n,r,o,!1)},t.runConditionsForItemsCore=function(e,t,n,r,o,i,a){void 0===a&&(a=!0),r||(r={});for(var s=r.item,l=r.choice,u=!1,c=0;c<e.length;c++){var p=e[c];r.item=p.value,r.choice=p.value;var d=!(!a||!p.getConditionRunner)&&p.getConditionRunner(i);d||(d=n);var h=!0;d&&(h=d.run(r,o)),t&&h&&t.push(p);h!=(i?p.isVisible:p.isEnabled)&&(u=!0,i?p.setIsVisible&&p.setIsVisible(h):p.setIsEnabled&&p.setIsEnabled(h))}return s?r.item=s:delete r.item,l?r.choice=l:delete r.choice,u},t.prototype.onCreating=function(){},t.prototype.getType=function(){return this.typeName?this.typeName:"itemvalue"},Object.defineProperty(t.prototype,"locText",{get:function(){return this.locTextValue},enumerable:!0,configurable:!0}),t.prototype.setLocText=function(e){this.locTextValue=e},Object.defineProperty(t.prototype,"locOwner",{get:function(){return this.locText.owner},set:function(e){this.locText.owner=e},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"value",{get:function(){return this.itemValue},set:function(e){if(this.itemValue=e,this.itemValue){var t=this.itemValue.toString(),n=t.indexOf(u.a.itemValueSeparator);n>-1?(this.itemValue=t.slice(0,n),this.text=t.slice(n+1)):this.hasText||this.locText.onChanged()}},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"hasText",{get:function(){return!!this.locText.pureText},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"text",{get:function(){return this.locText.calculatedText},set:function(e){this.locText.text=e},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"calculatedText",{get:function(){return this.locText.calculatedText},enumerable:!0,configurable:!0}),t.prototype.getData=function(){var e=this.toJSON();return e.value&&e.value.pos&&delete e.value.pos,1!=Object.keys(e).length||a.a.isValueEmpty(e.value)?e:this.value},t.prototype.toJSON=function(){var e={},t=i.a.getProperties(this.getType());t&&0!=t.length||(t=i.a.getProperties("itemvalue"));for(var n=new i.b,r=0;r<t.length;r++)n.valueToJson(this,e,t[r]);return e},t.prototype.setData=function(e){if(!a.a.isValueEmpty(e))if(void 0!==e.value){var t=e;"function"==typeof e.toJSON&&(t=e.toJSON()),(new i.b).toObject(t,this)}else this.value=e},Object.defineProperty(t.prototype,"visibleIf",{get:function(){return this.visibleIfValue},set:function(e){this.visibleIfValue=e},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"isVisible",{get:function(){return this.isVisibleValue},enumerable:!0,configurable:!0}),t.prototype.setIsVisible=function(e){this.isVisibleValue=e},Object.defineProperty(t.prototype,"isEnabled",{get:function(){return this.getPropertyValue("isEnabled",!0)},enumerable:!0,configurable:!0}),t.prototype.setIsEnabled=function(e){this.setPropertyValue("isEnabled",e)},t.prototype.addUsedLocales=function(e){this.AddLocStringToUsedLocales(this.locTextValue,e)},t.prototype.getConditionRunner=function(e){return e?this.getVisibleConditionRunner():this.getEnableConditionRunner()},t.prototype.getVisibleConditionRunner=function(){return this.visibleIf?(this.visibleConditionRunner||(this.visibleConditionRunner=new s.a(this.visibleIf)),this.visibleConditionRunner.expression=this.visibleIf,this.visibleConditionRunner):null},t.prototype.getEnableConditionRunner=function(){return this.enableIf?(this.enableConditionRunner||(this.enableConditionRunner=new s.a(this.enableIf)),this.enableConditionRunner.expression=this.enableIf,this.enableConditionRunner):null},Object.defineProperty(t.prototype,"isValueItemEmpty",{get:function(){return!this.itemValue&&0!==this.itemValue&&!1!==this.itemValue},enumerable:!0,configurable:!0}),t}(l.c);l.c.createItemValue=function(e,t){var n=null;return n=t?i.b.metaData.createClass(t,{}):"function"==typeof e.getType?new c(null,void 0,e.getType()):new c(null),n.setData(e),n},l.c.itemValueLocStrChanged=function(e){c.locStrsChanged(e)},i.c.getItemValuesDefaultValue=function(e){var t=new Array;return c.setData(t,e||[]),t},i.a.addClass("itemvalue",["value",{name:"text",serializationProperty:"locText"},{name:"visibleIf:condition",visible:!1},{name:"enableIf:condition",visible:!1}],function(e){return new c(e)})},function(e,t,n){"use strict";n.d(t,"b",function(){return r}),n.d(t,"a",function(){return o});var r={currentType:"",getCss:function(){var e=this.currentType?this[this.currentType]:o;return e||(e=o),e}},o={root:"sv_main sv_default_css",container:"sv_container",header:"sv_header",body:"sv_body",bodyEmpty:"sv_body sv_body_empty",footer:"sv_nav",navigationButton:"",completedPage:"sv_completed_page",navigation:{complete:"sv_complete_btn",prev:"sv_prev_btn",next:"sv_next_btn",start:"sv_start_btn"},progress:"sv_progress",progressBar:"sv_progress_bar",progressTextInBar:"sv-hidden",page:{root:"sv_p_root",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",number:"sv_q_num",description:"sv_q_description",comment:"",required:"",titleRequired:"",hasError:"",indent:20,footer:"sv_q_footer",formGroup:"form-group"},panel:{title:"sv_p_title",titleExpandable:"sv_p_title_expandable",icon:"sv_panel_icon",iconExpanded:"sv_expanded",description:"sv_p_description",container:"sv_p_container"},error:{root:"sv_q_erbox",icon:"",item:"",locationTop:"sv_qstn_error_top",locationBottom:"sv_qstn_error_bottom"},boolean:{root:"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"},checkbox:{root:"sv_qcbc sv_qcbx",item:"sv_q_checkbox",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",materialDecorator:"checkbox-material",other:"sv_q_other sv_q_checkbox_other",column:"sv_q_select_column"},comment:"",dropdown:{root:"",control:"sv_q_dropdown_control",selectWrapper:"sv_select_wrapper",other:"sv_q_dd_other"},html:{root:""},matrix:{root:"sv_q_matrix",label:"sv_q_m_label",itemChecked:"checked",itemDecorator:"sv-hidden",cellText:"sv_q_m_cell_text",cellTextSelected:"sv_q_m_cell_selected",cellLabel:"sv_q_m_cell_label"},matrixdropdown:{root:"sv_q_matrix_dropdown"},matrixdynamic:{root:"sv_q_matrix_dynamic",button:"sv_matrix_dynamic_button",buttonAdd:"",buttonRemove:"",iconAdd:"",iconRemove:""},paneldynamic:{root:"sv_panel_dynamic",title:"sv_p_title",button:"",buttonAdd:"sv-paneldynamic__add-btn",buttonRemove:"",buttonPrev:"sv-paneldynamic__prev-btn",buttonNext:"sv-paneldynamic__next-btn",progressContainer:"sv-paneldynamic__progress-container",progress:"sv-progress",progressBar:"sv-progress__bar",progressText:"sv-paneldynamic__progress-text"},multipletext:{root:"sv_q_mt",itemTitle:"sv_q_mt_title",row:"sv_q_mt_row",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:"",materialDecorator:"circle",other:"sv_q_other sv_q_radiogroup_other",clearButton:"sv_q_radiogroup_clear",column:"sv_q_select_column"},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"},rating:{root:"sv_q_rating",item:"sv_q_rating_item",selected:"active",minText:"sv_q_rating_min_text",itemText:"sv_q_rating_item_text",maxText:"sv_q_rating_max_text",disabled:""},text:"sv_q_text_root",expression:"",file:{root:"sv_q_file",placeholderInput:"sv_q_file_placeholder",preview:"sv_q_file_preview",removeButton:"sv_q_file_remove_button",fileInput:"sv_q_file_input",removeFile:"sv_q_file_remove",removeFileSvg:"sv-hidden",fileDecorator:"sv-hidden",fileSignBottom:"sv-hidden",removeButtonBottom:"sv-hidden"},saveData:{root:"",saving:"",error:"",success:"",saveAgainButton:""},window:{root:"sv_window",body:"sv_window_content",header:{root:"sv_window_title",title:"",button:"",buttonExpanded:"",buttonCollapsed:""}}};r.standard=o},function(e,t,n){"use strict";var r=n(4),o=n(2),i=n(8);n.d(t,"a",function(){return a});var a=function(){function e(e,t){void 0===t&&(t=!1),this.owner=e,this.useMarkdown=t,this.values={},this.htmlValues={},this.renderedText=null,this.calculatedTextValue=null,this.onGetTextCallback=null,this.onCreating()}return Object.defineProperty(e,"defaultLocale",{get:function(){return i.a.defaultLocaleName},set:function(e){i.a.defaultLocaleName=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"locale",{get:function(){return this.owner?this.owner.getLocale():""},enumerable:!0,configurable:!0}),e.prototype.strChanged=function(){null!==this.renderedText&&(this.calculatedTextValue=this.calText(),this.renderedText!==this.calculatedTextValue&&(this.renderedText=null,this.calculatedTextValue=null,this.onChanged()))},Object.defineProperty(e.prototype,"text",{get:function(){return this.pureText},set:function(e){this.setLocaleText(this.locale,e)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"calculatedText",{get:function(){return this.renderedText=null!==this.calculatedTextValue?this.calculatedTextValue:this.calText(),this.calculatedTextValue=null,this.renderedText},enumerable:!0,configurable:!0}),e.prototype.calText=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=i.a.defaultLocaleName);var t=this.getValue(e);return t||e!=i.a.defaultLocaleName||(t=this.getValue(o.a.defaultLocale)),t||e===i.a.defaultLocaleName||(t=this.getValue(i.a.defaultLocaleName)),t||(t=""),t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"hasHtml",{get:function(){return this.hasHtmlValue()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"html",{get:function(){return this.hasHtml?this.getHtmlValue():""},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"isEmpty",{get:function(){return 0==this.getValuesKeys().length},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"textOrHtml",{get:function(){return this.hasHtml?this.getHtmlValue():this.calculatedText},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"renderedHtml",{get:function(){return this.textOrHtml},enumerable:!0,configurable:!0}),e.prototype.getLocaleText=function(e){e||(e=i.a.defaultLocaleName);var t=this.getValue(e);return t||""},e.prototype.setLocaleText=function(e,t){t!=this.getLocaleText(e)&&(t&&e&&e!=i.a.defaultLocaleName&&!this.getValue(e)&&t==this.getLocaleText(i.a.defaultLocaleName)||(e||(e=i.a.defaultLocaleName),delete this.htmlValues[e],t?"string"==typeof t&&(e!=i.a.defaultLocaleName&&t==this.getLocaleText(i.a.defaultLocaleName)?this.setLocaleText(e,null):(this.setValue(e,t),e==i.a.defaultLocaleName&&this.deleteValuesEqualsToDefault(t))):this.getValue(e)&&this.deleteValue(e),this.strChanged()))},e.prototype.hasNonDefaultText=function(){var e=this.getValuesKeys();return 0!=e.length&&(e.length>1||e[0]!=i.a.defaultLocaleName)},e.prototype.getLocales=function(){var e=this.getValuesKeys();return 0==e.length?[]:e},e.prototype.getJson=function(){if(this.sharedData)return this.getJson();var e=this.getValuesKeys();return 0==e.length?null:1==e.length&&e[0]==i.a.defaultLocaleName?this.values[e[0]]:this.values},e.prototype.setJson=function(e){if(this.sharedData)return void this.setJson(e);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()}},e.prototype.equals=function(e){return this.sharedData?this.equals(e):!(!e||!e.values)&&r.a.isTwoValueEquals(this.values,e.values)},e.prototype.onChanged=function(){this.onStrChanged&&this.onStrChanged()},e.prototype.onCreating=function(){},e.prototype.hasHtmlValue=function(){if(!this.owner||!this.useMarkdown)return!1;var e=this.calculatedText;if(!e)return!1;var t=this.locale;return t||(t=i.a.defaultLocaleName),this.htmlValues[t]=this.owner.getMarkdownHtml(e),!!this.htmlValues[t]},e.prototype.getHtmlValue=function(){var e=this.locale;return e||(e=i.a.defaultLocaleName),this.htmlValues[e]},e.prototype.deleteValuesEqualsToDefault=function(e){for(var t=this.getValuesKeys(),n=0;n<t.length;n++)t[n]!=i.a.defaultLocaleName&&this.getValue(t[n])==e&&this.deleteValue(t[n])},e.prototype.getValue=function(e){return this.sharedData?this.sharedData.getValue(e):this.values[e]},e.prototype.setValue=function(e,t){this.sharedData?this.sharedData.setValue(e,t):this.values[e]=t},e.prototype.deleteValue=function(e){this.sharedData?this.sharedData.deleteValue(e):delete this.values[e]},e.prototype.getValuesKeys=function(){return this.sharedData?this.sharedData.getValuesKeys():Object.keys(this.values)},e}()},function(e,t,n){"use strict";var r=n(4);n.d(t,"a",function(){return o});var o=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.setValue=function(e,t,n){if(t){var r=this.getNonNestedObject(e,t);r&&(e=r.value,t=r.text,e&&t&&(e[t]=n))}},e.prototype.getValue=function(e,t){return void 0===t&&(t=null),t||(t=this.values),this.getValueCore(e,t).value},e.prototype.getValueCore=function(e,t){var n={hasValue:!1,value:null},o=t;if(!o&&0!==o&&!1!==o)return n;e&&e.lastIndexOf(".length")>-1&&e.lastIndexOf(".length")===e.length-".length".length&&(n.value=0,n.hasValue=!0);var i=this.getNonNestedObject(o,e);return i?(n.value=i.text?this.getObjectValue(i.value,i.text):i.value,n.hasValue=!r.a.isValueEmpty(n.value),n):n},e.prototype.getNonNestedObject=function(e,t){for(var n=this.getFirstPropertyName(t,e);t!=n&&e;){if("["==t[0]){var o=this.getObjInArray(e,t);if(!o)return null;e=o.value,t=o.text}else{if(!n&&t==this.getFirstName(t))return{value:e,text:t};if(e=this.getObjectValue(e,n),r.a.isValueEmpty(e))return null;t=t.substr(n.length)}t&&"."==t[0]&&(t=t.substr(1)),n=this.getFirstPropertyName(t,e)}return{value:e,text:t}},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.substr(n+1):"",n=this.getIntValue(r),n<0||n>=e.length?null:{value:e[n],text:t}},e.prototype.getFirstPropertyName=function(e,t){if(!e)return e;if(t.hasOwnProperty(e))return e;e=e.toLowerCase();var n=e[0],r=n.toUpperCase();for(var o in t){var i=o[0];if(i===r||i===n){var a=o.toLowerCase();if(a==e)return o;if(e.length<=a.length)continue;var s=e[a.length];if("."!=s&&"["!=s)continue;if(a==e.substr(0,a.length))return o}}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}()},function(e,t,n){"use strict";var r=n(6);n.n(r);n.d(t,"a",function(){return o});var o=function(){function e(t){this.element=t,t.iteratePropertiesHash(function(t,n){e.doIterateProperties(t,n)}),t.getPropertyValueCoreHandler=function(e,t){return void 0===e[t]&&(e[t]=r.observable()),"function"==typeof e[t]?e[t]():e[t]},t.setPropertyValueCoreHandler=function(e,t,n){return void 0!==e[t]?e[t](n):e[t]=r.observable(n)}}return e.doIterateProperties=function(e,t){var n=e[t];Array.isArray(n)?(e[t]=r.observableArray(n),n.onArrayChanged=function(){return e[t].notifySubscribers()}):e[t]=r.observable(n)},e}()},function(e,t,n){"use strict";var r=n(0),o=n(7);n.d(t,"b",function(){return i}),n.d(t,"a",function(){return a});var i=function(e){function t(t){var n=e.call(this,t)||this;return n.onCreated(),n}return n.i(r.b)(t,e),t.prototype.onCreated=function(){},Object.defineProperty(t.prototype,"isOtherSelected",{get:function(){return this.question.isOtherSelected},enumerable:!0,configurable:!0}),t}(o.a),a=function(e){function t(t){var n=e.call(this,t)||this;return n.question.koAfterRender=n.koAfterRender,n}return n.i(r.b)(t,e),t.prototype.koAfterRender=function(e,t){var n=e[0];"#text"==n.nodeName&&(n.data=""),n=e[e.length-1],"#text"==n.nodeName&&(n.data="")},t}(i)},function(e,t,n){"use strict";var r=n(0),o=n(6),i=(n.n(o),n(19)),a=n(5),s=n(26),l=n(13),u=n(45),c=n(28),p=n(14),d=n(12),h=n(16),f=n(32);n.d(t,"b",function(){return m}),n.d(t,"a",function(){return g}),c.a.Instance.onCustomWidgetAdded.add(function(e){e.widgetJson.isDefaultRender||(e.htmlTemplate||(e.htmlTemplate="<div>'htmlTemplate' attribute is missed.</div>"),(new u.a).replaceText(e.htmlTemplate,"widget",e.name))});var m=function(e){function t(t,n,r){void 0===t&&(t=null),void 0===n&&(n=null),void 0===r&&(r=null);var i=e.call(this,t)||this;if(i.onRendered=new a.a,i.isFirstRender=!0,i.mouseDownPage=null,new h.a(i),void 0===o)throw new Error("knockoutjs library is not loaded.");return r&&(i.css=r),n&&(i.renderedElement=n),i.render(n),i}return n.i(r.b)(t,e),Object.defineProperty(t,"cssType",{get:function(){return l.b.currentType},set:function(e){f.a.applyTheme(e)},enumerable:!0,configurable:!0}),t.prototype.getDataValueCore=function(e,t){return void 0===e[t]&&(e[t]=o.observable()),o.unwrap(e[t])},t.prototype.setDataValueCore=function(e,t,n){o.isWriteableObservable(e[t])?e[t](n):e[t]=o.observable(n)},t.prototype.deleteDataValueCore=function(e,t){o.isWriteableObservable(e[t])?e[t](void 0):delete e[t]},t.prototype.nextPageUIClick=function(){this.mouseDownPage&&this.mouseDownPage!==this.currentPage||(this.mouseDownPage=null,this.nextPage())},t.prototype.nextPageMouseDown=function(){this.mouseDownPage=this.currentPage;var e=document.activeElement;e&&e.blur&&e.blur()},Object.defineProperty(t.prototype,"cssNavigationComplete",{get:function(){return this.getNavigationCss(this.css.navigationButton,this.css.navigation.complete)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"cssNavigationPrev",{get:function(){return this.getNavigationCss(this.css.navigationButton,this.css.navigation.prev)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"cssNavigationStart",{get:function(){return this.getNavigationCss(this.css.navigationButton,this.css.navigation.start)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"cssNavigationNext",{get:function(){return this.getNavigationCss(this.css.navigationButton,this.css.navigation.next)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"completedCss",{get:function(){var e=l.b.getCss();return e.body+" "+e.completedPage},enumerable:!0,configurable:!0}),t.prototype.getNavigationCss=function(e,t){var n="";return e&&(n=e),t&&(n+=" "+t),n},Object.defineProperty(t.prototype,"css",{get:function(){return l.b.getCss()},set:function(e){this.mergeValues(e,this.css)},enumerable:!0,configurable:!0}),t.prototype.render=function(e){void 0===e&&(e=null),this.updateKoCurrentPage(),this.updateCustomWidgets(this.currentPage);var t=this;e&&"string"==typeof e&&(e=document.getElementById(e)),e&&(this.renderedElement=e),(e=this.renderedElement)&&(t.startTimerFromUI(),t.applyBinding())},t.prototype.clear=function(t,n){void 0===t&&(t=!0),void 0===n&&(n=!0),e.prototype.clear.call(this,t,n),this.render()},t.prototype.onLocaleChanged=function(){this.render()},t.prototype.koEventAfterRender=function(e,t){t.onRendered.fire(this,{}),t.afterRenderSurvey(e)},t.prototype.loadSurveyFromService=function(t,n,r){void 0===t&&(t=null),void 0===n&&(n=null),void 0===r&&(r=null),r&&(this.renderedElement=r),e.prototype.loadSurveyFromService.call(this,t,n)},t.prototype.setCompleted=function(){e.prototype.setCompleted.call(this),this.updateKoCurrentPage()},t.prototype.start=function(){e.prototype.start.call(this),this.updateKoCurrentPage()},t.prototype.createNewPage=function(e){return new s.a(e)},t.prototype.getHtmlTemplate=function(){return u.b},t.prototype.onBeforeCreating=function(){var e=this,t=this;this.dummyObservable=o.observable(0),this.koCurrentPage=o.observable(this.currentPage),this.koIsFirstPage=o.computed(function(){return e.dummyObservable(),e.isFirstPage}),this.koIsLastPage=o.computed(function(){return e.dummyObservable(),e.isLastPage}),this.koProgressText=o.computed(function(){return e.dummyObservable(),e.progressText}),this.koProgress=o.computed(function(){return e.dummyObservable(),e.getProgress()}),this.koState=o.observable(this.state),this.koCompletedState=o.observable(""),this.koCompletedStateText=o.observable(""),this.koCompletedStateCss=o.observable(""),this.koTimerInfoText=o.observable(this.timerInfoText),this.koAfterRenderPage=function(e,n){var r=a.b.GetFirstNonTextElement(e);r&&t.afterRenderPage(r)}},t.prototype.currentPageChanged=function(t,n){this.updateKoCurrentPage(),e.prototype.currentPageChanged.call(this,t,n),this.isDesignMode||this.scrollToTopOnPageChange()},t.prototype.pageVisibilityChanged=function(t,n){e.prototype.pageVisibilityChanged.call(this,t,n),this.updateKoCurrentPage()},t.prototype.onLoadSurveyFromService=function(){this.render()},t.prototype.onLoadingSurveyFromService=function(){this.render()},t.prototype.setCompletedState=function(t,n){e.prototype.setCompletedState.call(this,t,n),this.koCompletedState(this.completedState),this.koCompletedStateText(this.completedStateText),this.koCompletedStateCss(""!==this.completedState?this.css.saveData[this.completedState]:"")},t.prototype.doTimer=function(){e.prototype.doTimer.call(this),this.koTimerInfoText(this.timerInfoText)},t.prototype.applyBinding=function(){this.renderedElement&&(this.updateKoCurrentPage(),o.cleanNode(this.renderedElement),this.isFirstRender||this.updateCurrentPageQuestions(),this.isFirstRender=!1,o.renderTemplate("survey-content",this,{afterRender:this.koEventAfterRender},this.renderedElement))},t.prototype.updateKoCurrentPage=function(){this.isLoadingFromJson||(this.dummyObservable(this.dummyObservable()+1),this.currentPage!==this.koCurrentPage()&&this.koCurrentPage(this.currentPage),this.koState(this.state))},t.prototype.updateCurrentPageQuestions=function(){for(var e=this.currentPage?this.currentPage.questions:[],t=0;t<e.length;t++){var n=e[t];n.visible&&n.updateQuestion()}},t}(i.a);p.a.prototype.onCreating=function(){var e=this;this.koReRender=o.observable(0),Object.defineProperty(e,"koHasHtml",{get:function(){return e.koReRender(),e.hasHtml}}),this.koRenderedHtml=o.pureComputed(function(){return e.koReRender(),e.renderedHtml})},d.a.prototype.onCreating=function(){new h.a(this)},p.a.prototype.onChanged=function(){this.koReRender(this.koReRender()+1)},o.components.register("survey",{viewModel:{createViewModel:function(e,t){return o.unwrap(e.survey).render(),e.survey}},template:u.b}),o.bindingHandlers.surveyProp={update:function(e,t,n){var r=o.utils.unwrapObservable(t())||{};for(var i in r)if("string"==typeof i){var a=o.utils.unwrapObservable(r[i]);e[i]=a}}},i.a.platform="knockout";var g=function(e,t){e.surveyTemplateEngine=function(){},e.surveyTemplateEngine.prototype=new e.nativeTemplateEngine,e.surveyTemplateEngine.prototype.makeTemplateSource=function(n,r){if("string"==typeof n){r=r||document;var o=r.getElementById("survey-content-"+t);o||(o=document.createElement("div"),o.id="survey-content-"+i.a.platform,o.style.display="none",o.innerHTML=u.b,document.body.appendChild(o));for(var a,s=0;s<o.children.length;s++)if(o.children[s].id===n){a=o.children[s];break}return a||(a=r.getElementById(n)),a?new e.templateSources.domElement(a):(new e.nativeTemplateEngine).makeTemplateSource(n,r)}if(1===n.nodeType||8===n.nodeType)return new e.templateSources.anonymousTemplate(n);throw new Error("Unknown template type: "+n)};var n=new e.surveyTemplateEngine;e.setTemplateEngine(n)}},function(e,t,n){"use strict";var r=n(0),o=n(4),i=n(1),a=n(5),s=n(27),l=n(23),u=n(15),c=n(41),p=n(2),d=n(11),h=n(14),f=n(32),m=n(64),g=n(10),y=n(8);n.d(t,"a",function(){return v});var v=function(e){function t(n){void 0===n&&(n=null);var r=e.call(this)||this;r.valuesHash={},r.variablesHash={},r.localeValue="",r.completedStateValue="",r.completedStateTextValue="",r.isTimerStarted=!1,r.onCompleting=new a.a,r.onComplete=new a.a,r.onStarted=new a.a,r.onPartialSend=new a.a,r.onCurrentPageChanging=new a.a,r.onCurrentPageChanged=new a.a,r.onValueChanging=new a.a,r.onValueChanged=new a.a,r.onVisibleChanged=new a.a,r.onPageVisibleChanged=new a.a,r.onPanelVisibleChanged=new a.a,r.onQuestionAdded=new a.a,r.onQuestionRemoved=new a.a,r.onPanelAdded=new a.a,r.onPanelRemoved=new a.a,r.onPageAdded=new a.a,r.onValidateQuestion=new a.a,r.onSettingQuestionErrors=new a.a,r.onServerValidateQuestions=new a.a,r.onValidatePanel=new a.a,r.onErrorCustomText=new a.a,r.onValidatedErrorsOnCurrentPage=new a.a,r.onProcessHtml=new a.a,r.onGetQuestionTitle=new a.a,r.onTextMarkdown=new a.a,r.onSendResult=new a.a,r.onGetResult=new a.a,r.onUploadFiles=new a.a,r.onDownloadFile=new a.a,r.onClearFiles=new a.a,r.onLoadChoicesFromServer=new a.a,r.onProcessTextValue=new a.a,r.onUpdateQuestionCssClasses=new a.a,r.onUpdatePanelCssClasses=new a.a,r.onAfterRenderSurvey=new a.a,r.onAfterRenderPage=new a.a,r.onAfterRenderQuestion=new a.a,r.onAfterRenderPanel=new a.a,r.onMatrixRowAdded=new a.a,r.onMatrixBeforeRowAdded=new a.a,r.onMatrixRowRemoved=new a.a,r.onMatrixAllowRemoveRow=new a.a,r.onMatrixCellCreated=new a.a,r.onMatrixAfterCellRender=new a.a,r.onMatrixCellValueChanged=new a.a,r.onMatrixCellValueChanging=new a.a,r.onMatrixCellValidate=new a.a,r.onDynamicPanelAdded=new a.a,r.onDynamicPanelRemoved=new a.a,r.onTimer=new a.a,r.onTimerPanelInfoText=new a.a,r.onDynamicPanelItemValueChanged=new a.a,r.onIsAnswerCorrect=new a.a,r.onDragDropAllow=new a.a,r.jsonErrors=null,r.hideRequiredErrors=!1,r.questionTitleTemplateCache=void 0,r.conditionVersion=0,r.ignoreValidation=!1,r.origionalPages=null,r.isEndLoadingFromJson=null,r.questionHashes={names:{},namesInsensitive:{},valueNames:{},valueNamesInsensitive:{}},r.timerFunc=null,r.timeSpent=0;var o=r;return"undefined"!=typeof document&&(t.stylesManager=new f.a),r.createLocalizableString("title",r,!0),r.createLocalizableString("description",r,!0),r.createLocalizableString("completedHtml",r),r.createLocalizableString("completedBeforeHtml",r),r.createLocalizableString("loadingHtml",r),r.createLocalizableString("startSurvey",r),r.createLocalizableString("pagePrev",r),r.createLocalizableString("pageNext",r),r.createLocalizableString("complete",r),r.createLocalizableString("questionTitleTemplate",r,!0),r.textPreProcessor=new l.a,r.textPreProcessor.onProcess=function(e){o.getProcessedTextValue(e)},r.pagesValue=r.createNewArray("pages",function(e){o.doOnPageAdded(e)}),r.triggersValue=r.createNewArray("triggers",function(e){e.setOwner(o)}),r.calculatedValuesValue=r.createNewArray("calculatedValues",function(e){e.setOwner(o)}),r.completedHtmlOnConditionValue=r.createNewArray("completedHtmlOnCondition",function(e){e.locOwner=o}),r.registerFunctionOnPropertyValueChanged("questionTitleTemplate",function(){o.questionTitleTemplateCache=void 0}),r.registerFunctionOnPropertyValueChanged("firstPageIsStarted",function(){o.onFirstPageIsStartedChanged()}),r.registerFunctionOnPropertyValueChanged("isSinglePage",function(){o.onIsSinglePageChanged()}),r.registerFunctionOnPropertyValueChanged("mode",function(){o.onModeChanged()}),r.onBeforeCreating(),n&&(("string"==typeof n||n instanceof String)&&(n=JSON.parse(n)),n&&n.clientId&&(r.clientId=n.clientId),r.setJsonObject(n),r.surveyId&&r.loadSurveyFromService(r.surveyId,r.clientId)),r.onCreating(),r}return n.i(r.b)(t,e),Object.defineProperty(t.prototype,"platformName",{get:function(){return t.platform},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"commentPrefix",{get:function(){return y.a.commentPrefix},set:function(e){y.a.commentPrefix=e},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"currentPageValue",{get:function(){return this.getPropertyValue("currentPageValue",null)},set:function(e){this.setPropertyValue("currentPageValue",e)},enumerable:!0,configurable:!0}),t.prototype.getType=function(){return"survey"},Object.defineProperty(t.prototype,"pages",{get:function(){return this.pagesValue},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"triggers",{get:function(){return this.triggersValue},set:function(e){this.setPropertyValue("triggers",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"calculatedValues",{get:function(){return this.calculatedValuesValue},set:function(e){this.setPropertyValue("calculatedValues",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"surveyId",{get:function(){return this.getPropertyValue("surveyId","")},set:function(e){this.setPropertyValue("surveyId",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"surveyPostId",{get:function(){return this.getPropertyValue("surveyPostId","")},set:function(e){this.setPropertyValue("surveyPostId",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"clientId",{get:function(){return this.getPropertyValue("clientId","")},set:function(e){this.setPropertyValue("clientId",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"cookieName",{get:function(){return this.getPropertyValue("cookieName","")},set:function(e){this.setPropertyValue("cookieName",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"sendResultOnPageNext",{get:function(){return this.getPropertyValue("sendResultOnPageNext",!1)},set:function(e){this.setPropertyValue("sendResultOnPageNext",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"surveyShowDataSaving",{get:function(){return this.getPropertyValue("surveyShowDataSaving",!1)},set:function(e){this.setPropertyValue("surveyShowDataSaving",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"focusFirstQuestionAutomatic",{get:function(){return this.getPropertyValue("focusFirstQuestionAutomatic",!0)},set:function(e){this.setPropertyValue("focusFirstQuestionAutomatic",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"focusOnFirstError",{get:function(){return this.getPropertyValue("focusOnFirstError",!0)},set:function(e){this.setPropertyValue("focusOnFirstError",e)},enumerable:!0,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:!0,configurable:!0}),Object.defineProperty(t.prototype,"showPrevButton",{get:function(){return this.getPropertyValue("showPrevButton",!0)},set:function(e){this.setPropertyValue("showPrevButton",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"showTitle",{get:function(){return this.getPropertyValue("showTitle",!0)},set:function(e){this.setPropertyValue("showTitle",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"showPageTitles",{get:function(){return this.getPropertyValue("showPageTitles",!0)},set:function(e){this.setPropertyValue("showPageTitles",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"showCompletedPage",{get:function(){return this.getPropertyValue("showCompletedPage",!0)},set:function(e){this.setPropertyValue("showCompletedPage",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"requiredText",{get:function(){return this.getPropertyValue("requiredText","*")},set:function(e){this.setPropertyValue("requiredText",e)},enumerable:!0,configurable:!0}),t.prototype.beforeSettingQuestionErrors=function(e,t){if(this.hideRequiredErrors)for(var n=0;n<t.length;n++)"required"==t[n].getErrorType()&&(t[n].visible=!1);this.onSettingQuestionErrors.fire(this,{question:e,errors:t})},Object.defineProperty(t.prototype,"questionStartIndex",{get:function(){return this.getPropertyValue("questionStartIndex","")},set:function(e){this.setPropertyValue("questionStartIndex",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"storeOthersAsComment",{get:function(){return this.getPropertyValue("storeOthersAsComment",!0)},set:function(e){this.setPropertyValue("storeOthersAsComment",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"maxTextLength",{get:function(){return this.getPropertyValue("maxTextLength",0)},set:function(e){this.setPropertyValue("maxTextLength",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"maxOthersLength",{get:function(){return this.getPropertyValue("maxOthersLength",0)},set:function(e){this.setPropertyValue("maxOthersLength",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"goNextPageAutomatic",{get:function(){return this.getPropertyValue("goNextPageAutomatic",!1)},set:function(e){this.setPropertyValue("goNextPageAutomatic",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"allowCompleteSurveyAutomatic",{get:function(){return this.getPropertyValue("allowCompleteSurveyAutomatic",!0)},set:function(e){this.setPropertyValue("allowCompleteSurveyAutomatic",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"checkErrorsMode",{get:function(){return this.getPropertyValue("checkErrorsMode")},set:function(e){this.setPropertyValue("checkErrorsMode",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"textUpdateMode",{get:function(){return this.getPropertyValue("textUpdateMode")},set:function(e){this.setPropertyValue("textUpdateMode",e)},enumerable:!0,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:!0,configurable:!0}),t.prototype.clearIncorrectValues=function(){for(var e=0;e<this.pages.length;e++)this.pages[e].clearIncorrectValues()},Object.defineProperty(t.prototype,"locale",{get:function(){return this.localeValue},set:function(e){this.questionTitleTemplateCache=void 0,p.a.currentLocale=e,this.localeValue=p.a.currentLocale,this.setPropertyValue("locale",this.localeValue),this.locStrsChanged(),this.onLocaleChanged()},enumerable:!0,configurable:!0}),t.prototype.getUsedLocales=function(){var e=new Array;this.addUsedLocales(e);var t=e.indexOf("default");if(t>-1){var n=p.a.defaultLocale,r=e.indexOf(n);r>-1&&e.splice(r,1),t=e.indexOf("default"),e[t]=n}return e},t.prototype.onLocaleChanged=function(){},t.prototype.getLocale=function(){return this.locale},t.prototype.locStrsChanged=function(){e.prototype.locStrsChanged.call(this),this.currentPage&&this.currentPage.locStrsChanged()},t.prototype.getMarkdownHtml=function(e){return this.getSurveyMarkdownHtml(this,e)},t.prototype.getProcessedText=function(e){return this.processText(e,!0)},t.prototype.getLocString=function(e){return p.a.getString(e)},t.prototype.getErrorCustomText=function(e,t){var n={text:e,name:t.getErrorType(),error:t};return this.onErrorCustomText.fire(this,n),n.text},Object.defineProperty(t.prototype,"emptySurveyText",{get:function(){return this.getLocString("emptySurvey")},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"title",{get:function(){return this.getLocalizableStringText("title")},set:function(e){this.setLocalizableStringText("title",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"locTitle",{get:function(){return this.getLocalizableString("title")},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"description",{get:function(){return this.getLocalizableStringText("description")},set:function(e){this.setLocalizableStringText("description",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"locDescription",{get:function(){return this.getLocalizableString("description")},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"completedHtml",{get:function(){return this.getLocalizableStringText("completedHtml")},set:function(e){this.setLocalizableStringText("completedHtml",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"locCompletedHtml",{get:function(){return this.getLocalizableString("completedHtml")},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"completedHtmlOnCondition",{get:function(){return this.completedHtmlOnConditionValue},set:function(e){this.setPropertyValue("completedHtmlOnCondition",e)},enumerable:!0,configurable:!0}),t.prototype.runExpression=function(e){if(!e)return null;var t=this.getFilteredValues(),n=this.getFilteredProperties();return new g.b(e).run(t,n)},t.prototype.runCondition=function(e){if(!e)return!1;var t=this.getFilteredValues(),n=this.getFilteredProperties();return new g.a(e).run(t,n)},Object.defineProperty(t.prototype,"renderedCompletedHtml",{get:function(){if(0==this.completedHtmlOnCondition.length)return this.completedHtml;for(var e=this.getFilteredValues(),t=this.getFilteredProperties(),n=0;n<this.completedHtmlOnCondition.length;n++){var r=this.completedHtmlOnCondition[n];if(r.runCondition(e,t))return r.html}return this.completedHtml},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"completedBeforeHtml",{get:function(){return this.getLocalizableStringText("completedBeforeHtml")},set:function(e){this.setLocalizableStringText("completedBeforeHtml",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"locCompletedBeforeHtml",{get:function(){return this.getLocalizableString("completedBeforeHtml")},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"loadingHtml",{get:function(){return this.getLocalizableStringText("loadingHtml")},set:function(e){this.setLocalizableStringText("loadingHtml",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"locLoadingHtml",{get:function(){return this.getLocalizableString("loadingHtml")},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"startSurveyText",{get:function(){return this.getLocalizableStringText("startSurvey",this.getLocString("startSurveyText"))},set:function(e){this.setLocalizableStringText("startSurvey",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"locStartSurveyText",{get:function(){return this.getLocalizableString("startSurvey")},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"pagePrevText",{get:function(){return this.getLocalizableStringText("pagePrev",this.getLocString("pagePrevText"))},set:function(e){this.setLocalizableStringText("pagePrev",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"locPagePrevText",{get:function(){return this.getLocalizableString("pagePrev")},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"pageNextText",{get:function(){return this.getLocalizableStringText("pageNext",this.getLocString("pageNextText"))},set:function(e){this.setLocalizableStringText("pageNext",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"locPageNextText",{get:function(){return this.getLocalizableString("pageNext")},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"completeText",{get:function(){return this.getLocalizableStringText("complete",this.getLocString("completeText"))},set:function(e){this.setLocalizableStringText("complete",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"locCompleteText",{get:function(){return this.getLocalizableString("complete")},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"questionTitleTemplate",{get:function(){return this.getLocalizableStringText("questionTitleTemplate")},set:function(e){if(e&&-1!==e.indexOf("{no}")){for(var t=e.indexOf("{no}"),n=t,r=t+4;n>=0&&"}"!==e[n];)n--;for(;r<e.length&&"{"!==e[r];)r++;e=e.substring(0,n+1)+e.substring(r)}this.setLocalizableStringText("questionTitleTemplate",e)},enumerable:!0,configurable:!0}),t.prototype.getQuestionTitleTemplate=function(){return void 0===this.questionTitleTemplateCache&&(this.questionTitleTemplateCache=this.locQuestionTitleTemplate.textOrHtml),this.questionTitleTemplateCache},Object.defineProperty(t.prototype,"locQuestionTitleTemplate",{get:function(){return this.getLocalizableString("questionTitleTemplate")},enumerable:!0,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},Object.defineProperty(t.prototype,"showPageNumbers",{get:function(){return this.getPropertyValue("showPageNumbers",!1)},set:function(e){e!==this.showPageNumbers&&(this.setPropertyValue("showPageNumbers",e),this.updateVisibleIndexes())},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"showQuestionNumbers",{get:function(){return this.getPropertyValue("showQuestionNumbers")},set:function(e){e=e.toLowerCase(),(e="onpage"===e?"onPage":e)!==this.showQuestionNumbers&&(this.setPropertyValue("showQuestionNumbers",e),this.updateVisibleIndexes())},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"showProgressBar",{get:function(){return this.getPropertyValue("showProgressBar")},set:function(e){this.setPropertyValue("showProgressBar",e.toLowerCase())},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"progressBarType",{get:function(){return this.getPropertyValue("progressBarType")},set:function(e){this.setPropertyValue("progressBarType",e.toLowerCase())},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"isShowProgressBarOnTop",{get:function(){return"top"===this.showProgressBar||"both"===this.showProgressBar},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"isShowProgressBarOnBottom",{get:function(){return"bottom"===this.showProgressBar||"both"===this.showProgressBar},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"processedTitle",{get:function(){return this.locTitle.renderedHtml},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"questionTitleLocation",{get:function(){return this.getPropertyValue("questionTitleLocation")},set:function(e){this.setPropertyValue("questionTitleLocation",e.toLowerCase())},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"questionErrorLocation",{get:function(){return this.getPropertyValue("questionErrorLocation")},set:function(e){this.setPropertyValue("questionErrorLocation",e.toLowerCase())},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"questionDescriptionLocation",{get:function(){return this.getPropertyValue("questionDescriptionLocation")},set:function(e){this.setPropertyValue("questionDescriptionLocation",e)},enumerable:!0,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:!0,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)}},Object.defineProperty(t.prototype,"data",{get:function(){for(var e={},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))}for(var r in this.valuesHash){var o=this.getDataValueCore(this.valuesHash,r);void 0!==o&&(e[r]=o)}return e},set:function(e){if(this.valuesHash={},e)for(var t in e)this.setDataValueCore(this.valuesHash,t,e[t]);this.updateAllQuestionsValue(),this.checkTriggers(this.valuesHash,!1),this.notifyAllQuestionsOnValueChanged(),this.notifyElementsOnAnyValueOrVariableChanged(""),this.runConditions()},enumerable:!0,configurable:!0}),t.prototype.getAllValues=function(){return this.data},t.prototype.getPlainData=function(e){void 0===e&&(e={includeEmpty:!0});var t=[];return this.getAllQuestions().forEach(function(n){var r=n.getPlainData(e);r&&t.push(r)}),t},t.prototype.getFilteredValues=function(){var e={};for(var t in this.variablesHash)e[t]=this.variablesHash[t];for(var t in this.valuesHash)e[t]=this.getDataValueCore(this.valuesHash,t);return e.conditionVersion=++this.conditionVersion,e},t.prototype.getFilteredProperties=function(){return{survey:this}},t.prototype.getDataValueCore=function(e,t){return e[t]},t.prototype.setDataValueCore=function(e,t,n){e[t]=n},t.prototype.deleteDataValueCore=function(e,t){delete e[t]},Object.defineProperty(t.prototype,"comments",{get:function(){var e={};for(var t in this.valuesHash)t.indexOf(this.commentPrefix)>0&&(e[t]=this.getDataValueCore(this.valuesHash,t));return e},enumerable:!0,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.pages[t].isVisible&&e.push(this.pages[t]);return e},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"isEmpty",{get:function(){return 0==this.pages.length},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"PageCount",{get:function(){return this.pageCount},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"pageCount",{get:function(){return this.pages.length},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"visiblePageCount",{get:function(){return this.visiblePages.length},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"startedPage",{get:function(){var e=this.firstPageIsStarted&&this.pages.length>0?this.pages[0]:null;return e&&e.onFirstRendering(),e},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"currentPage",{get:function(){var e=this.visiblePages;return null!=this.currentPageValue&&e.indexOf(this.currentPageValue)<0&&(this.currentPage=null),null==this.currentPageValue&&e.length>0&&(this.currentPage=e[0]),this.currentPageValue},set:function(e){var t=this.getPageByObject(e);if(!e||t){var n=this.visiblePages;if(!(null!=t&&n.indexOf(t)<0)&&t!=this.currentPageValue){var r=this.currentPageValue;this.currentPageChanging(t,r)&&(t&&t.onFirstRendering(),this.currentPageValue=t,t&&(t.updateCustomWidgets(),t.setWasShown(!0)),this.locStrsChanged(),this.currentPageChanged(t,r))}}},enumerable:!0,configurable:!0}),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:!0,configurable:!0}),Object.defineProperty(t.prototype,"questionsOrder",{get:function(){return this.getPropertyValue("questionsOrder")},set:function(e){this.setPropertyValue("questionsOrder",e)},enumerable:!0,configurable:!0}),t.prototype.focusFirstQuestion=function(){var e=this.currentPage;e&&(e.scrollToTop(),e.focusFirstQuestion())},t.prototype.scrollToTopOnPageChange=function(){var e=this.currentPage;e&&(e.scrollToTop(),this.focusFirstQuestionAutomatic&&e.focusFirstQuestion())},Object.defineProperty(t.prototype,"state",{get:function(){return this.isLoading?"loading":this.isCompleted?"completed":this.isCompletedBefore?"completedbefore":!this.isDesignMode&&this.isEditMode&&this.isStartedState&&this.startedPage?"starting":this.currentPage?"running":"empty"},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"isCompleted",{get:function(){return this.getPropertyValue("isCompleted",!1)},set:function(e){this.setPropertyValue("isCompleted",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"isStartedState",{get:function(){return this.getPropertyValue("isStartedState",!1)},set:function(e){this.setPropertyValue("isStartedState",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"isCompletedBefore",{get:function(){return this.getPropertyValue("isCompletedBefore",!1)},set:function(e){this.setPropertyValue("isCompletedBefore",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"isLoading",{get:function(){return this.getPropertyValue("isLoading",!1)},set:function(e){this.setPropertyValue("isLoading",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"completedState",{get:function(){return this.completedStateValue},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"completedStateText",{get:function(){return this.completedStateTextValue},enumerable:!0,configurable:!0}),t.prototype.setCompletedState=function(e,t){this.completedStateValue=e,t||("saving"==e&&(t=this.getLocString("savingData")),"error"==e&&(t=this.getLocString("savingDataError")),"success"==e&&(t=this.getLocString("savingDataSuccess"))),this.completedStateTextValue=t},t.prototype.clear=function(e,t){void 0===e&&(e=!0),void 0===t&&(t=!0),e&&(this.data=null,this.variablesHash={}),this.timeSpent=0;for(var n=0;n<this.pages.length;n++)this.pages[n].timeSpent=0,this.pages[n].setWasShown(!1);this.isCompleted=!1,this.isCompletedBefore=!1,this.isLoading=!1,this.isStartedState=this.firstPageIsStarted,t&&this.visiblePageCount>0&&(this.currentPage=this.visiblePages[0]),e&&this.updateValuesWithDefaults()},t.prototype.mergeValues=function(e,t){if(t&&e)for(var n in e){var r=e[n];r&&"object"==typeof r?(t[n]||(t[n]={}),this.mergeValues(r,t[n])):t[n]=r}},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={oldCurrentPage:t,newCurrentPage:e,allowChanging:!0};return this.onCurrentPageChanging.fire(this,n),n.allowChanging},t.prototype.currentPageChanged=function(e,t){this.onCurrentPageChanged.fire(this,{oldCurrentPage:t,newCurrentPage:e})},t.prototype.getProgress=function(){if(null==this.currentPage)return 0;if("questions"===this.progressBarType){var e=this.getAllQuestions(),t=e.reduce(function(e,t){return e+(t.isEmpty()?0:1)},0);return Math.ceil(100*t/e.length)}if("correctQuestions"===this.progressBarType){var e=this.getAllQuestions(),n=this.getCorrectedAnswerCount();return Math.ceil(100*n/e.length)}var r=this.visiblePages.indexOf(this.currentPage)+1;return Math.ceil(100*r/this.visiblePageCount)},Object.defineProperty(t.prototype,"isNavigationButtonsShowing",{get:function(){if(this.isDesignMode)return"none";var e=this.currentPage;return e?"show"===e.navigationButtonsVisibility?"bottom":"hide"===e.navigationButtonsVisibility?"none":this.showNavigationButtons:"none"},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"isEditMode",{get:function(){return"edit"==this.mode},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"isDisplayMode",{get:function(){return"display"==this.mode},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"isUpdateValueTextOnTyping",{get:function(){return"onTyping"==this.textUpdateMode},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"isDesignMode",{get:function(){return this.getPropertyValue("isDesignMode",!1)},enumerable:!0,configurable:!0}),t.prototype.setDesignMode=function(e){this.setPropertyValue("isDesignMode",e),this.onIsSinglePageChanged()},Object.defineProperty(t.prototype,"showInvisibleElements",{get:function(){return this.getPropertyValue("showInvisibleElements",!1)},set:function(e){var t=this.visiblePages;this.setPropertyValue("showInvisibleElements",e),this.updateAllElementsVisibility(t)},enumerable:!0,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:!0,configurable:!0}),Object.defineProperty(t.prototype,"hasCookie",{get:function(){if(!this.cookieName)return!1;var e=document.cookie;return e&&e.indexOf(this.cookieName+"=true")>-1},enumerable:!0,configurable:!0}),t.prototype.setCookie=function(){this.cookieName&&(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){if(this.ignoreValidation||!this.isEditMode)return!1;if("onComplete"==this.checkErrorsMode){if(!this.isLastPage)return!1;if(this.hasErrors(!0,!0))return!0}else if(this.isCurrentPageHasErrors)return!0;return this.checkForAsyncQuestionValidation(e)},t.prototype.checkForAsyncQuestionValidation=function(e){var t=this;this.clearAsyncValidationQuesitons();for(var n=this.currentPage.questions,r=0;r<n.length;r++)n[r].isRunningValidators&&(n[r].onCompletedAsyncValidators=function(n){t.onCompletedAsyncQuestionValidators(e,n)},this.asyncValidationQuesitons.push(n[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){if(t)return void this.clearAsyncValidationQuesitons();for(var n=this.asyncValidationQuesitons,r=0;r<n.length;r++)if(n[r].isRunningValidators)return;this.doCurrentPageCompleteCore(e)},Object.defineProperty(t.prototype,"isCurrentPageHasErrors",{get:function(){return this.checkIsCurrentPageHasErrors()},enumerable:!0,configurable:!0}),t.prototype.hasErrors=function(e,t){void 0===e&&(e=!0),void 0===t&&(t=!1);for(var n=this.visiblePages,r=null,o=!1,i=0;i<n.length;i++)n[i].hasErrors(e,t)&&(r||(r=n[i]),o=!0);return t&&r&&(this.currentPage=r),o},t.prototype.checkIsCurrentPageHasErrors=function(e){if(void 0===e&&(e=void 0),void 0===e&&(e=this.focusOnFirstError),null==this.currentPage)return!0;var t=this.currentPage.hasErrors(!0,e);return this.fireValidatedErrorsOnCurrentPage(),t},t.prototype.fireValidatedErrorsOnCurrentPage=function(){if(!this.onValidatedErrorsOnCurrentPage.isEmpty){for(var e=this.currentPage.questions,t=new Array,n=new Array,r=0;r<e.length;r++){var o=e[r];if(o.errors.length>0){t.push(o);for(var i=0;i<o.errors.length;i++)n.push(o.errors[i])}}this.onValidatedErrorsOnCurrentPage.fire(this,{questions:t,errors:n})}},t.prototype.prevPage=function(){if(this.isFirstPage)return!1;var e=this.visiblePages,t=e.indexOf(this.currentPage);this.currentPage=e[t-1]},t.prototype.completeLastPage=function(){return this.doCurrentPageComplete(!0)},t.prototype.doCurrentPageComplete=function(e){return!this.hasErrorsOnNavigate(e)&&this.doCurrentPageCompleteCore(e)},t.prototype.doCurrentPageCompleteCore=function(e){return!this.doServerValidation()&&(e?this.doComplete():this.doNextPage(),!0)},Object.defineProperty(t.prototype,"isSinglePage",{get:function(){return this.getPropertyValue("isSinglePage",!1)},set:function(e){this.setPropertyValue("isSinglePage",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"firstPageIsStarted",{get:function(){return this.getPropertyValue("firstPageIsStarted",!1)},set:function(e){this.setPropertyValue("firstPageIsStarted",e)},enumerable:!0,configurable:!0}),t.prototype.isPageStarted=function(e){return this.firstPageIsStarted&&this.pages.length>0&&this.pages[0]===e},t.prototype.onFirstPageIsStartedChanged=function(){0!=this.pages.length&&(this.isStartedState=this.firstPageIsStarted,this.pageVisibilityChanged(this.pages[0],!this.firstPageIsStarted))},t.prototype.onIsSinglePageChanged=function(){if(!this.isSinglePage||this.isDesignMode){if(this.origionalPages){this.questionHashesClear(),this.pages.splice(0,this.pages.length);for(var t=0;t<this.origionalPages.length;t++)this.pages.push(this.origionalPages[t])}this.origionalPages=null}else{this.questionHashesClear(),this.origionalPages=this.pages.slice(0,this.pages.length);var n=this.firstPageIsStarted?1:0;e.prototype.startLoadingFromJson.call(this);var r=this.createSinglePage(n),o=this.pages.length-n;this.pages.splice(n,o,r),e.prototype.endLoadingFromJson.call(this),r.endLoadingFromJson(),r.setSurveyImpl(this),this.doElementsOnLoad()}this.updateVisibleIndexes()},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.a.createClass("panel");t.addPanel(o);var a=(new i.b).toJsonObject(r);(new i.b).toObject(a,o),this.showPageTitles||(o.title="")}return t},Object.defineProperty(t.prototype,"isFirstPage",{get:function(){return null==this.currentPage||0==this.visiblePages.indexOf(this.currentPage)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"isShowPrevButton",{get:function(){if(this.isFirstPage||!this.showPrevButton)return!1;var e=this.visiblePages[this.currentPageNo-1];return this.getPageMaxTimeToFinish(e)<=0},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"isLastPage",{get:function(){if(null==this.currentPage)return!0;var e=this.visiblePages;return e.indexOf(this.currentPage)==e.length-1},enumerable:!0,configurable:!0}),t.prototype.doComplete=function(){var e={allowComplete:!0};if(this.onCompleting.fire(this,e),e.allowComplete){var t=this.hasCookie;this.stopTimer(),this.setCompleted(),this.clearUnusedValues(),this.setCookie();var n=this,r={showDataSaving:function(e){n.setCompletedState("saving",e)},showDataSavingError:function(e){n.setCompletedState("error",e)},showDataSavingSuccess:function(e){n.setCompletedState("success",e)},showDataSavingClear:function(e){n.setCompletedState("","")}};this.onComplete.fire(this,r),!t&&this.surveyPostId&&this.sendResult()}},t.prototype.start=function(){this.firstPageIsStarted&&(this.isStartedState=!1,this.startTimerFromUI(),this.onStarted.fire(this,{}))},Object.defineProperty(t.prototype,"isValidatingOnServer",{get:function(){return this.getPropertyValue("isValidatingOnServer",!1)},enumerable:!0,configurable:!0}),t.prototype.setIsValidatingOnServer=function(e){e!=this.isValidatingOnServer&&(this.setPropertyValue("isValidatingOnServer",e),this.onIsValidatingOnServerChanged())},t.prototype.onIsValidatingOnServerChanged=function(){},t.prototype.doServerValidation=function(){if(!this.onServerValidateQuestions||this.onServerValidateQuestions.isEmpty)return!1;for(var e=this,t={data:{},errors:{},survey:this,complete:function(){e.completeServerValidation(t)}},n=0;n<this.currentPage.questions.length;n++){var r=this.currentPage.questions[n];if(r.visible){var o=this.getValue(r.getValueName());this.isValueEmpty(o)||(t.data[r.getValueName()]=o)}}return this.setIsValidatingOnServer(!0),"function"==typeof this.onServerValidateQuestions?this.onServerValidateQuestions(this,t):this.onServerValidateQuestions.fire(this,t),!0},t.prototype.completeServerValidation=function(e){if(this.setIsValidatingOnServer(!1),e||e.survey){var t=e.survey,n=!1;if(e.errors)for(var r in e.errors){var o=t.getQuestionByName(r);o&&o.errors&&(n=!0,o.addError(new d.b(e.errors[r],this)))}n||(t.isLastPage?t.doComplete():t.doNextPage())}},t.prototype.doNextPage=function(){if(this.checkOnPageTriggers(),this.isCompleted)this.doComplete();else{this.sendResultOnPageNext&&this.sendResult(this.surveyPostId,this.clientId,!0);var e=this.visiblePages,t=e.indexOf(this.currentPage);this.currentPage=e[t+1]}},t.prototype.setCompleted=function(){this.isCompleted=!0},Object.defineProperty(t.prototype,"processedCompletedHtml",{get:function(){var e=this.renderedCompletedHtml;return e?this.processHtml(e):"<h3>"+this.getLocString("completingSurvey")+"</h3>"},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"processedCompletedBeforeHtml",{get:function(){return this.completedBeforeHtml?this.processHtml(this.completedBeforeHtml):"<h3>"+this.getLocString("completingSurveyBefore")+"</h3>"},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"processedLoadingHtml",{get:function(){return this.loadingHtml?this.processHtml(this.loadingHtml):"<h3>"+this.getLocString("loadingSurvey")+"</h3>"},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"progressText",{get:function(){if(null==this.currentPage)return"";if("questions"===this.progressBarType){var e=this.getAllQuestions(),t=e.reduce(function(e,t){return e+(t.isEmpty()?0:1)},0);return this.getLocString("questionsProgressText").format(t,e.length)}if("correctQuestions"===this.progressBarType){var e=this.getAllQuestions(),n=this.getCorrectedAnswerCount();return this.getLocString("questionsProgressText").format(n,e.length)}var r=this.visiblePages,o=r.indexOf(this.currentPage)+1;return this.getLocString("progressText").format(o,r.length)},enumerable:!0,configurable:!0}),t.prototype.afterRenderSurvey=function(e){this.onAfterRenderSurvey.fire(this,{survey:this,htmlElement:e})},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.afterRenderPage=function(e){this.onAfterRenderPage.isEmpty||this.onAfterRenderPage.fire(this,{page:this.currentPage,htmlElement:e})},t.prototype.afterRenderQuestion=function(e,t){this.onAfterRenderQuestion.fire(this,{question:e,htmlElement:t})},t.prototype.afterRenderPanel=function(e,t){this.onAfterRenderPanel.fire(this,{panel:e,htmlElement:t})},t.prototype.matrixBeforeRowAdded=function(e){this.onMatrixBeforeRowAdded.fire(this,e)},t.prototype.matrixRowAdded=function(e){this.onMatrixRowAdded.fire(this,{question:e})},t.prototype.getQuestionByValueNameFromArray=function(e,t,n){var r=this.getQuestionsByValueNameCore(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.matrixAllowRemoveRow=function(e,t,n){var r={question:e,rowIndex:t,row:n,allow:!0};return this.onMatrixAllowRemoveRow.fire(this,r),r.allow},t.prototype.matrixCellCreated=function(e,t){t.question=e,this.onMatrixCellCreated.fire(this,t)},t.prototype.matrixAfterCellRender=function(e,t){t.question=e,this.onMatrixAfterCellRender.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)},t.prototype.matrixCellValidate=function(e,t){return t.question=e,this.onMatrixCellValidate.fire(this,t),t.error?new d.b(t.error,this):null},t.prototype.dynamicPanelAdded=function(e){this.onDynamicPanelAdded.fire(this,{question:e})},t.prototype.dynamicPanelRemoved=function(e,t){this.onDynamicPanelRemoved.fire(this,{question:e,panelIndex:t})},t.prototype.dynamicPanelItemValueChanged=function(e,t){t.question=e,this.onDynamicPanelItemValueChanged.fire(this,t)},t.prototype.dragAndDropAllow=function(e){return e.allow=!0,this.onDragDropAllow.fire(this,e),e.allow},t.prototype.uploadFiles=function(e,t,n){this.onUploadFiles.isEmpty?n("error",t):this.onUploadFiles.fire(this,{name:e,files:t||[],callback:n}),this.surveyPostId&&this.uploadFilesCore(e,t,n)},t.prototype.downloadFile=function(e,t,n){this.onDownloadFile.isEmpty&&!!n&&n("success",t.content||t),this.onDownloadFile.fire(this,{name:e,content:t.content||t,fileValue:t,callback:n})},t.prototype.clearFiles=function(e,t,n,r){this.onClearFiles.isEmpty&&!!r&&r("success",t),this.onClearFiles.fire(this,{name:e,value:t,fileName:n,callback:r})},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.createSurveyService=function(){return new c.a},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){null!=e&&(this.pages.push(e),this.updateVisibleIndexes())},t.prototype.addNewPage=function(e){void 0===e&&(e=null);var t=this.createNewPage(e);return this.addPage(t),t},t.prototype.removePage=function(e){var t=this.pages.indexOf(e);t<0||(this.pages.splice(t,1),this.currentPageValue==e&&(this.currentPage=this.pages.length>0?this.pages[0]:null),this.updateVisibleIndexes())},t.prototype.getQuestionByName=function(e,t){void 0===t&&(t=!1);var n=t?this.questionHashes.namesInsensitive:this.questionHashes.names,r=n[e];return r?r[0]:null},t.prototype.getQuestionByValueName=function(e,t){void 0===t&&(t=!1);var n=this.getQuestionsByValueNameCore(e,t);return n?n[0]:null},t.prototype.getQuestionsByValueNameCore=function(e,t){void 0===t&&(t=!1);var n=t?this.questionHashes.valueNamesInsensitive:this.questionHashes.valueNames,r=n[e];return r||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){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].addQuestionsToList(n,e,t);return n},t.prototype.getQuizQuestions=function(){for(var e=new Array,t=this.firstPageIsStarted?1:0,n=t;n<this.pages.length;n++)if(this.pages[n].isVisible)for(var r=this.pages[n].questions,o=0;o<r.length;o++){var i=r[o];i.quizQuestionCount>0&&e.push(i)}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){return new s.a(e)},t.prototype.questionOnValueChanging=function(e,t){if(this.onValueChanging.isEmpty)return t;var n={name:e,question:this.getQuestionByValueName(e),value:t,oldValue:this.getValue(e)};return this.onValueChanging.fire(this,n),n.value},t.prototype.updateQuestionValue=function(e,t){if(!this.isLoadingFromJson){var n=this.getQuestionsByValueNameCore(e);if(n)for(var r=0;r<n.length;r++)this.isTwoValueEquals(n[r].value,t)||n[r].updateValueFromSurvey(t)}},t.prototype.notifyQuestionOnValueChanged=function(e,t){if(!this.isLoadingFromJson){var n=this.getQuestionsByValueNameCore(e);if(n)for(var r=0;r<n.length;r++){var o=n[r];if("onValueChanged"==this.checkErrorsMode){var i=o.errors.length;o.hasErrors(!0),(i>0||o.errors.length>0)&&this.fireValidatedErrorsOnCurrentPage()}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.notifyElementsOnAnyValueOrVariableChanged(e)}},t.prototype.notifyElementsOnAnyValueOrVariableChanged=function(e){if("processing"!==this.isEndLoadingFromJson){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(){for(var e=this.getCurrentPageQuestions(),t={},n=0;n<e.length;n++){var r=e[n],o=r.getValueName();t[o]=this.getValue(o)}this.checkTriggers(t,!0)},t.prototype.getCurrentPageQuestions=function(){var e=[],t=this.currentPage;if(!t)return e;for(var n=0;n<t.questions.length;n++){var r=t.questions[n];r.visible&&r.name&&e.push(r)}return e},t.prototype.checkTriggers=function(e,t){if(!this.isCompleted&&0!=this.triggers.length)for(var n=this.getFilteredValues(),r=this.getFilteredProperties(),o=0;o<this.triggers.length;o++){var i=this.triggers[o];i.isOnNextPage==t&&i.checkExpression(e,n,r)}},t.prototype.doElementsOnLoad=function(){for(var e=0;e<this.pages.length;e++)this.pages[e].onSurveyLoad()},t.prototype.runConditions=function(){if(!this.isCompleted&&"processing"!==this.isEndLoadingFromJson){for(var e=this.pages,t=this.getFilteredValues(),n=this.getFilteredProperties(),r=0;r<this.calculatedValues.length;r++)this.calculatedValues[r].runExpression(t,n);for(var r=0;r<e.length;r++)e[r].runCondition(t,n)}},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","")),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.setJsonObject(e),this.notifyAllQuestionsOnValueChanged(),this.onLoadSurveyFromService())},t.prototype.onLoadingSurveyFromService=function(){},t.prototype.onLoadSurveyFromService=function(){},t.prototype.updateVisibleIndexes=function(){if(!this.isLoadingFromJson&&!this.isEndLoadingFromJson)if(this.updatePageVisibleIndexes(this.showPageNumbers),"onPage"==this.showQuestionNumbers)for(var e=this.visiblePages,t=0;t<e.length;t++)e[t].setVisibleIndex(0);else for(var n="on"==this.showQuestionNumbers?0:-1,t=0;t<this.pages.length;t++)n+=this.pages[t].setVisibleIndex(n)},t.prototype.updatePageVisibleIndexes=function(e){for(var t=0,n=0;n<this.pages.length;n++)this.pages[n].visibleIndex=this.pages[n].visible?t++:-1,this.pages[n].num=e&&this.pages[n].visible?this.pages[n].visibleIndex+1:-1},t.prototype.setJsonObject=function(e){if(e){this.questionHashesClear(),this.jsonErrors=null;var t=new i.b;t.toObject(e,this),t.errors.length>0&&(this.jsonErrors=t.errors)}},t.prototype.endLoadingFromJson=function(){this.isEndLoadingFromJson="processing",this.isStartedState=this.firstPageIsStarted,this.onIsSinglePageChanged(),e.prototype.endLoadingFromJson.call(this),this.hasCookie&&this.doComplete(),this.doElementsOnLoad(),this.isEndLoadingFromJson="conditions",this.runConditions(),this.notifyElementsOnAnyValueOrVariableChanged(""),this.isEndLoadingFromJson=null,this.updateVisibleIndexes()},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.getProcessedTextValueCore=function(e){var t=e.name.toLocaleLowerCase();if(-1===["no","require","title"].indexOf(t)){if("pageno"===t){e.isExists=!0;var n=this.currentPage;return void(e.value=null!=n?this.visiblePages.indexOf(n)+1:0)}if("pagecount"===t)return e.isExists=!0,void(e.value=this.visiblePageCount);if("locale"===t)return e.isExists=!0,void(e.value=this.locale?this.locale:p.a.defaultLocale);if("correctedanswers"===t||"correctedanswercount"===t)return e.isExists=!0,void(e.value=this.getCorrectedAnswerCount());if("incorrectedanswers"===t||"incorrectedanswercount"===t)return e.isExists=!0,void(e.value=this.getInCorrectedAnswerCount());if("questioncount"===t)return e.isExists=!0,void(e.value=this.getQuizQuestionCount());var r=(new u.a).getFirstName(t,this.data),o=this.getVariable(t);if(void 0!==o)return e.isExists=!0,void(e.value=o);r&&(r=r.toLowerCase());var i=this.getQuestionByValueName(r,!0);if(i){e.isExists=!0,t=i.getValueName()+t.substr(r.length),t=t.toLocaleLowerCase();var a={};return a[r]=e.returnDisplayValue?i.getDisplayValue(!1,void 0):i.value,void(e.value=(new u.a).getValue(t,a))}var s=this.getValue(e.name);void 0!==s&&(e.isExists=!0,e.value=s)}},t.prototype.clearUnusedValues=function(){for(var e=this.getAllQuestions(),t=0;t<e.length;t++)e[t].clearUnusedValues();"none"!=this.clearInvisibleValues&&this.clearInvisibleQuestionValues()},t.prototype.hasVisibleQuestionByValueName=function(e){var t=this.getQuestionsByValueNameCore(e);if(!t)return!1;for(var n=0;n<t.length;n++)if(t[n].isVisible)return!0;return!1},t.prototype.questionCountByValueName=function(e){var t=this.getQuestionsByValueNameCore(e);return t?t.length:0},t.prototype.clearInvisibleQuestionValues=function(){for(var e=this.getAllQuestions(),t=0;t<e.length;t++)e[t].clearValueIfInvisible()},t.prototype.getVariable=function(e){if(!e)return null;e=e.toLowerCase();var t=this.variablesHash[e];return o.a.isValueEmpty(t)&&(e.indexOf(".")>-1||e.indexOf("[")>-1)&&(new u.a).hasValue(e,this.variablesHash)?(new u.a).getValue(e,this.variablesHash):t},t.prototype.setVariable=function(e,t){e&&(e=e.toLowerCase(),this.variablesHash[e]=t,this.notifyElementsOnAnyValueOrVariableChanged(e),this.runConditions())},t.prototype.getUnbindValue=function(e){return o.a.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){void 0===n&&(n=!1);var r=this.questionOnValueChanging(e,t);if(!(this.isValueEqual(e,r)&&this.isTwoValueEquals(r,t)||(this.isValueEmpty(r)?this.deleteDataValueCore(this.valuesHash,e):(r=this.getUnbindValue(r),this.setDataValueCore(this.valuesHash,e,r)),this.updateQuestionValue(e,r),!0===n))){var o={};o[e]=r,this.checkTriggers(o,!1),this.runConditions(),this.notifyQuestionOnValueChanged(e,r),"text"!==n&&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){e.setSurveyImpl(this),e.name||(e.name=this.generateNewName(this.pages,"page")),this.questionHashesPanelAdded(e);var t={page:e};this.onPageAdded.fire(this,t)},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())){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.completeLastPage():this.nextPage())}}}},t.prototype.getComment=function(e){var t=this.data[e+this.commentPrefix];return null==t&&(t=""),t},t.prototype.setComment=function(e,t,n){if(void 0===n&&(n=!1),t||(t=""),!o.a.isTwoValueEquals(t,this.getComment(e))){var r=e+this.commentPrefix;o.a.isValueEmpty(t)?this.deleteDataValueCore(this.valuesHash,r):this.setDataValueCore(this.valuesHash,r,t);var i=this.getQuestionsByValueNameCore(e);if(i)for(var a=0;a<i.length;a++)i[a].updateCommentFromSurvey(t);"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:!0,configurable:!0}),t.prototype.questionVisibilityChanged=function(e,t){this.updateVisibleIndexes(),this.onVisibleChanged.fire(this,{question:e,name:e.name,visible:t}),e&&!e.visible&&"onHidden"==this.clearInvisibleValues&&e.clearValue()},t.prototype.pageVisibilityChanged=function(e,t){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.questionAdded=function(e,t,n,r){e.name||(e.name=this.generateNewName(this.getAllQuestions(!1,!0),"question")),e.page&&this.questionHashesAdded(e),this.isLoadingFromJson||this.updateVisibleIndexes(),this.onQuestionAdded.fire(this,{question:e,name:e.name,index:t,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})},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=e[n];if(r){var r=e[n];r.indexOf(t)<0&&r.push(t)}else 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,parentPanel:n,rootPanel:r})},t.prototype.panelRemoved=function(e){this.updateVisibleIndexes(),this.onPanelRemoved.fire(this,{panel:e,name:e.name})},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 d.b(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 d.b(t.error,this):null},t.prototype.processHtml=function(e){var t={html:e};return this.onProcessHtml.fire(this,t),this.processText(t.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){var n={element:e,text:t,html:null};return this.onTextMarkdown.fire(this,n),n.html},t.prototype.getCorrectedAnswerCount=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.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],a=i.quizQuestionCount;if(r.question=i,r.correctAnswers=i.correctAnswerCount,r.incorrectAnswers=a-r.correctAnswers,r.result=r.question.isAnswerCorrect(),this.onIsAnswerCorrect.fire(this,r),e){if(r.result||r.correctAnswers<a){var s=r.correctAnswers;0==s&&r.result&&(s=1),n+=s}}else(!r.result||r.incorrectAnswers<a)&&(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","none")},set:function(e){this.setPropertyValue("showTimerPanel",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"isTimerPanelShowingOnTop",{get:function(){return this.isTimerStarted&&"top"==this.showTimerPanel},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"isTimerPanelShowingOnBottom",{get:function(){return this.isTimerStarted&&"bottom"==this.showTimerPanel},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"showTimerPanelMode",{get:function(){return this.getPropertyValue("showTimerPanelMode","all")},set:function(e){this.setPropertyValue("showTimerPanelMode",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"timerInfoText",{get:function(){var e={text:this.getTimerInfoText()};this.onTimerPanelInfoText.fire(this,e);var t=new h.a(this,!0);return t.text=e.text,t.textOrHtml},enumerable:!0,configurable:!0}),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);if("page"==this.showTimerPanelMode)return this.getTimerInfoPageText(e,t,o);if("survey"==this.showTimerPanelMode)return this.getTimerInfoSurveyText(n,i);if("all"==this.showTimerPanelMode){if(r<=0&&this.maxTimeToFinish<=0)return this.getLocString("timerSpentAll").format(t,n);if(r>0&&this.maxTimeToFinish>0)return this.getLocString("timerLimitAll").format(t,o,n,i);return this.getTimerInfoPageText(e,t,o)+" "+this.getTimerInfoSurveyText(n,i)}return""},t.prototype.getTimerInfoPageText=function(e,t,n){return this.getPageMaxTimeToFinish(e)>0?this.getLocString("timerLimitPage").format(t,n):this.getLocString("timerSpentPage").format(t,n)},t.prototype.getTimerInfoSurveyText=function(e,t){return this.maxTimeToFinish>0?this.getLocString("timerLimitSurvey").format(e,t):this.getLocString("timerSpentSurvey").format(e,t)},t.prototype.getDisplayTime=function(e){var t=Math.floor(e/60),n=e%60,r="";return t>0&&(r+=t+" "+this.getLocString("timerMin")),r&&0==n?r:(r&&(r+=" "),r+n+" "+this.getLocString("timerSec"))},t.prototype.startTimer=function(){if(!this.isTimerStarted&&!this.isDesignMode){var e=this;this.timerFunc=function(){e.doTimer()},this.isTimerStarted=!0,m.a.instance.start(this.timerFunc)}},t.prototype.startTimerFromUI=function(){"none"!=this.showTimerPanel&&"running"===this.state&&this.startTimer()},t.prototype.stopTimer=function(){this.isTimerStarted&&(this.isTimerStarted=!1,m.a.instance.stop(this.timerFunc))},Object.defineProperty(t.prototype,"maxTimeToFinish",{get:function(){return this.getPropertyValue("maxTimeToFinish",0)},set:function(e){this.setPropertyValue("maxTimeToFinish",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"maxTimeToFinishPage",{get:function(){return this.getPropertyValue("maxTimeToFinishPage",0)},set:function(e){this.setPropertyValue("maxTimeToFinishPage",e)},enumerable:!0,configurable:!0}),t.prototype.getPageMaxTimeToFinish=function(e){return!e||e.maxTimeToFinish<0?0:e.maxTimeToFinish>0?e.maxTimeToFinish:this.maxTimeToFinishPage},t.prototype.doTimer=function(){var e=this.currentPage;if(e&&(e.timeSpent=e.timeSpent+1),this.timeSpent=this.timeSpent+1,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())}},t.prototype.geSurveyData=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=new u.a,o=r.getFirstName(e);if(o==e)this.setValue(e,t);else{if(!this.getValue(o))return;var i=this.getUnbindValue(this.getFilteredValues());r.setValue(i,e,t),this.setValue(o,i[o])}}},t.prototype.copyTriggerValue=function(e,t){if(e&&t){var n=new u.a,r=n.getValue(t,this.getFilteredValues());this.setTriggerValue(e,r,!1)}},t.prototype.focusQuestion=function(e){var t=this.getQuestionByName(e,!0);return!!(t&&t.isVisible&&t.page)&&(this.currentPage=t.page,t.focus(),!0)},t.stylesManager=null,t.platform="unknown",t}(a.c);i.a.addClass("survey",[{name:"locale",choices:function(){return p.a.getLocales()},onGetValue:function(e){return e.locale==p.a.defaultLocale?null:e.locale}},{name:"title",serializationProperty:"locTitle"},{name:"description:text",serializationProperty:"locDescription"},{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",className:"page",visible:!1},{name:"questions",alternativeName:"elements",baseClassName:"question",visible:!1,isLightSerializable:!1,onGetValue:function(e){return null},onSetValue:function(e,t,n){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},{name:"questionsOrder",default:"initial",choices:["initial","random"]},"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","correctQuestions"]},{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},"goNextPageAutomatic:boolean",{name:"clearInvisibleValues",default:"onComplete",choices:["none","onComplete","onHidden"]},{name:"checkErrorsMode",default:"onNextPage",choices:["onNextPage","onValueChanged","onComplete"]},{name:"textUpdateMode",default:"onBlue",choices:["onBlue","onTyping"]},{name:"startSurveyText",serializationProperty:"locStartSurveyText"},{name:"pagePrevText",serializationProperty:"locPagePrevText"},{name:"pageNextText",serializationProperty:"locPageNextText"},{name:"completeText",serializationProperty:"locCompleteText"},{name:"requiredText",default:"*"},"questionStartIndex",{name:"questionTitleTemplate",serializationProperty:"locQuestionTitleTemplate"},{name:"firstPageIsStarted:boolean",default:!1},{name:"isSinglePage:boolean",default:!1},{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"]}])},function(e,t,n){"use strict";var r=n(0),o=n(1),i=n(5),a=n(10),s=n(3),l=n(13),u=n(11),c=n(8);n.d(t,"c",function(){return p}),n.d(t,"a",function(){return d}),n.d(t,"d",function(){return h}),n.d(t,"b",function(){return f});var p=function(){function e(e,t,n){void 0===n&&(n=-1),this.source=e,this.target=t,this.nestedPanelDepth=n}return e}(),d=function(e){function t(t){var n=e.call(this)||this;return n.panel=t,n.visible=t.areInvisibleElementsShowing,n.createNewArray("elements"),n}return n.i(r.b)(t,e),Object.defineProperty(t.prototype,"elements",{get:function(){return this.getPropertyValue("elements")},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"visible",{get:function(){return this.getPropertyValue("visible",!0)},set:function(e){this.setPropertyValue("visible",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"visibleElements",{get:function(){return this.elements.filter(function(e){return e.isVisible})},enumerable:!0,configurable:!0}),t.prototype.updateVisible=function(){this.visible=this.calcVisible(),this.setWidth()},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:!0,configurable:!0}),t.prototype.setWidth=function(){var e=this.visibleElements.length;if(0!=e)for(var t=0,n=0;n<this.elements.length;n++)if(this.elements[n].isVisible){var r=this.elements[n];r.renderWidth=r.width&&"string"==typeof r.width?r.width:(100/e).toFixed(6)+"%",r.rightIndent=t<e-1?1:0,t++}else this.elements[n].renderWidth=""},t.prototype.calcVisible=function(){return this.visibleElements.length>0},t}(i.c),h=function(e){function t(n){void 0===n&&(n="");var r=e.call(this,n)||this;return r.name=n,r.isQuestionsReady=!1,r.questionsValue=new Array,r.conditionVersion=-1,r.createNewArray("rows"),r.elementsValue=r.createNewArray("elements",r.onAddElement.bind(r),r.onRemoveElement.bind(r)),r.registerFunctionOnPropertyValueChanged("questionTitleLocation",r.onVisibleChanged.bind(r)),r.id=t.getPanelId(),r.createLocalizableString("title",r,!0),r.createLocalizableString("description",r,!0),r.createLocalizableString("requiredErrorText",r),r}return n.i(r.b)(t,e),t.getPanelId=function(){return"sp_"+t.panelCounter++},t.prototype.getType=function(){return"panelbase"},t.prototype.setSurveyImpl=function(t){e.prototype.setSurveyImpl.call(this,t),this.isDesignMode&&this.onVisibleChanged();for(var n=0;n<this.elements.length;n++)this.elements[n].setSurveyImpl(t)},t.prototype.endLoadingFromJson=function(){e.prototype.endLoadingFromJson.call(this),this.markQuestionListDirty(),this.onRowsChanged()},Object.defineProperty(t.prototype,"title",{get:function(){return this.getLocalizableStringText("title")},set:function(e){this.setLocalizableStringText("title",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"locTitle",{get:function(){return this.getLocalizableString("title")},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"description",{get:function(){return this.getLocalizableStringText("description")},set:function(e){this.setLocalizableStringText("description",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"locDescription",{get:function(){return this.getLocalizableString("description")},enumerable:!0,configurable:!0}),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,"requiredErrorText",{get:function(){return this.getLocalizableStringText("requiredErrorText")},set:function(e){this.setLocalizableStringText("requiredErrorText",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"locRequiredErrorText",{get:function(){return this.getLocalizableString("requiredErrorText")},enumerable:!0,configurable:!0}),t.prototype.getLocale=function(){return this.survey?this.survey.getLocale():""},t.prototype.getMarkdownHtml=function(e){return this.survey?this.survey.getSurveyMarkdownHtml(this,e):null},t.prototype.getProcessedText=function(e){return this.textProcessor?this.textProcessor.processText(e,!0):e},Object.defineProperty(t.prototype,"parent",{get:function(){return this.getPropertyValue("parent",null)},set:function(e){this.setPropertyValue("parent",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"depth",{get:function(){return null==this.parent?0:this.parent.depth+1},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"visibleIf",{get:function(){return this.getPropertyValue("visibleIf","")},set:function(e){this.setPropertyValue("visibleIf",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"cssClasses",{get:function(){var e={error:{}};return this.copyCssClasses(e,this.css),this.copyCssClasses(e.error,this.css.error),this.survey&&this.survey.updatePanelCssClasses(this,e),e},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"css",{get:function(){return l.b.getCss()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"id",{get:function(){return this.getPropertyValue("id")},set:function(e){this.setPropertyValue("id",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"isPanel",{get:function(){return!1},enumerable:!0,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:!0,configurable:!0}),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(){for(var e={},t=this.questions,n=0;n<t.length;n++){var r=t[n];if(!r.isEmpty()){var o=r.getValueName();if(e[o]=r.value,this.data){var i=this.data.getComment(o);i&&(e[o+c.a.commentPrefix]=i)}}}return e},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:!0,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",!1)},set:function(e){this.setPropertyValue("isRequired",e)},enumerable:!0,configurable:!0}),t.prototype.hasErrors=function(e,t,n){return void 0===e&&(e=!0),void 0===t&&(t=!1),void 0===n&&(n=null),n=n||{fireCallback:e,focuseOnFirstError:t,firstErrorQuestion:null,result:!1},this.hasErrorsCore(n),n.firstErrorQuestion&&n.firstErrorQuestion.focus(!0),n.result},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.errors=t)},t.prototype.getErrorCustomText=function(e,t){return this.survey?this.survey.getErrorCustomText(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 u.a(this.requiredErrorText,this)),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],n.isVisible)if(n.isPanel)n.hasErrorsCore(e);else{var o=n;if(o.isReadOnly)continue;o.hasErrors(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){void 0===e&&(e=!1);for(var t=this.elements,n=0;n<t.length;n++){var r=t[n];if(r.isVisible)if(r.isPanel){var o=r.getFirstQuestionToFocus(e);if(o)return o}else{var i=r;if(i.hasInput&&(!e||i.currentErrorCount>0))return i}}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 a=t[i];n&&!a.visible||((o&&a.isPanel||!o&&!a.isPanel)&&e.push(a),a.isPanel?a.addElementsToListCore(e,a.elements,n,r,o):r&&this.addElementsToListCore(e,a.getElementsInDesign(!1),n,r,o))}},Object.defineProperty(t.prototype,"isActive",{get:function(){return!this.survey||this.survey.currentPage==this.root},enumerable:!0,configurable:!0}),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:!0,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.getChildrenLayoutType=function(){return"row"},Object.defineProperty(t.prototype,"root",{get:function(){for(var e=this;e.parent;)e=e.parent;return e},enumerable:!0,configurable:!0}),t.prototype.childVisibilityChanged=function(){this.getIsPageVisible(null)!==this.getPropertyValue("isVisible",!0)&&this.onVisibleChanged()},t.prototype.createRow=function(){return new d(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(){for(var e=0;e<this.elements.length;e++)this.elements[e].onFirstRendering();this.onRowsChanged()},Object.defineProperty(t.prototype,"rows",{get:function(){return this.getPropertyValue("rows")},enumerable:!0,configurable:!0}),t.prototype.onRowsChanged=function(){this.isLoadingFromJson||this.setPropertyValue("rows",this.buildRows())},t.prototype.onAddElement=function(e,t){if(e.setSurveyImpl(this.surveyImpl),e.parent=this,this.markQuestionListDirty(),this.updateRowsOnElementAdded(e,t),e.isPanel){var n=e;this.survey&&this.survey.panelAdded(n,t,this,this.root)}else if(this.survey){var r=e;this.survey.questionAdded(r,t,this,this.root)}this.addElementCallback&&this.addElementCallback(e);var o=this;e.registerFunctionOnPropertiesValueChanged(["visible","isVisible"],function(){o.onElementVisibilityChanged(e)},this.id),e.registerFunctionOnPropertyValueChanged("startWithNewLine",function(){o.onElementStartWithNewLineChanged(e)},this.id),this.onElementVisibilityChanged(this)},t.prototype.onRemoveElement=function(e){e.parent=null,this.markQuestionListDirty(),e.unRegisterFunctionOnPropertiesValueChanged(["visible","isVisible","startWithNewLine"],this.id),this.updateRowsOnElementRemoved(e),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.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();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.createRow():e[e.length-1];r&&e.push(o),o.addElement(n)}for(var t=0;t<e.length;t++)e[t].updateVisible();return e},t.prototype.updateRowsOnElementAdded=function(e,t){if(this.canBuildRows()){var n=new p(null,e);n.target=e,n.isEdge=this.elements.length>1,this.elements.length<2?n.destination=this:(n.isBottom=t>0,n.destination=0==t?this.elements[1]:this.elements[t-1]),this.dragDropAddTargetToRow(n,null)}},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.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:!0,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:!0,configurable:!0}),t.prototype.onVisibleChanged=function(){this.setPropertyValue("isVisible",this.isVisible)},Object.defineProperty(t.prototype,"isVisible",{get:function(){return this.areInvisibleElementsShowing||this.getIsPageVisible(null)},enumerable:!0,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){for(var t=0;t<this.elements.length;t++)this.elements[t].setVisibleIndex(-1);return 0}for(var n=e,t=0;t<this.elements.length;t++)e+=this.elements[t].setVisibleIndex(e);return e-n},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:!0,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)},Object.defineProperty(t.prototype,"enableIf",{get:function(){return this.getPropertyValue("enableIf","")},set:function(e){this.setPropertyValue("enableIf",e)},enumerable:!0,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.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=s.b.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){return new f(e)},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||e.conditionVersion<this.conditionVersion)){this.conditionVersion=e.conditionVersion;for(var n=this.elements.slice(),r=0;r<n.length;r++){if(e.conditionVersion<this.conditionVersion)return;n[r].runCondition(e,t)}e.conditionVersion<this.conditionVersion||(this.areInvisibleElementsShowing||this.runVisibleCondition(e,t),this.runEnableCondition(e,t))}},t.prototype.runVisibleCondition=function(e,t){var n=this;if(this.visibleIf){var r=new a.a(this.visibleIf);r.onRunComplete=function(e){n.visible=e},r.run(e,t)}},t.prototype.runEnableCondition=function(e,t){var n=this;if(this.enableIf){var r=new a.a(this.enableIf);r.onRunComplete=function(e){n.readOnly=!e},r.run(e,t)}},t.prototype.onAnyValueChanged=function(e){for(var t=0;t<this.elements.length;t++)this.elements[t].onAnyValueChanged(e)},t.prototype.dragDropAddTarget=function(e){var t=this.dragDropFindRow(e.target);this.dragDropAddTargetToRow(e,t)&&this.updateRowsRemoveElementFromRow(e.target,t)},t.prototype.dragDropFindRow=function(e){if(!e||e.isPage)return null;for(var t=e,n=this.rows,r=0;r<n.length;r++)if(n[r].elements.indexOf(t)>-1)return n[r];for(var r=0;r<this.elements.length;r++){var o=this.elements[r].getPanel();if(o){var i=o.dragDropFindRow(t);if(i)return i}}return null},t.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))},t.prototype.dragDropAddTargetToEmptyPanel=function(e){if(e.destination.isPage)return this.dragDropAddTargetToEmptyPanelCore(this.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},t.prototype.dragDropAddTargetToExistingRow=function(e,t,n){var r=t.elements.indexOf(e.destination);if(0==r&&!e.isBottom&&t.elements[0].startWithNewLine)return t.index>0?(e.isBottom=!0,t=t.panel.rows[t.index-1],e.destination=t.elements[t.elements.length-1],this.dragDropAddTargetToExistingRow(e,t,n)):this.dragDropAddTargetToNewRow(e,t,n);var o=-1;n==t&&(o=t.elements.indexOf(e.target)),e.isBottom&&r++;var i=this.findRowByElement(e.source);return(i!=t||i.elements.indexOf(e.source)!=r)&&(r!=o&&(o>-1&&(t.elements.splice(o,1),o<r&&r--),t.elements.splice(r,0,e.target),t.updateVisible(),o<0))},t.prototype.dragDropAddTargetToNewRow=function(e,t,n){var r=t.panel.createRow();r.addElement(e.target);var o=t.index;if(e.isBottom&&o++,n&&n.panel==r.panel&&n.index==o)return!1;var i=this.findRowByElement(e.source);return(!i||i.panel!=r.panel||1!=i.elements.length||i.index!=o)&&(t.panel.rows.splice(o,0,r),!0)},t.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)},t.prototype.dragDropMoveElement=function(e,t,n){n>e.parent.elements.indexOf(e)&&n--,this.removeElement(e),this.addElement(t,n)},t.panelCounter=100,t}(i.b),f=function(e){function t(t){void 0===t&&(t="");var n=e.call(this,t)||this;n.name=t;var r=n;return n.registerFunctionOnPropertyValueChanged("state",function(){r.stateChangedCallback&&r.stateChangedCallback()}),n.registerFunctionOnPropertyValueChanged("width",function(){r.parent&&r.parent.elementWidthChanged(r)}),n.registerFunctionOnPropertiesValueChanged(["indent","innerIndent","rightIndent"],function(){r.onIndentChanged()}),n}return n.i(r.b)(t,e),t.prototype.getType=function(){return"panel"},t.prototype.onSurveyLoad=function(){e.prototype.onSurveyLoad.call(this),this.onIndentChanged()},Object.defineProperty(t.prototype,"isPanel",{get:function(){return!0},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"page",{get:function(){return this.getPage(this.parent)},set:function(e){this.setPage(this.parent,e)},enumerable:!0,configurable:!0}),t.prototype.delete=function(){this.parent&&this.removeSelfFromList(this.parent.elements)},Object.defineProperty(t.prototype,"state",{get:function(){return this.getPropertyValue("state")},set:function(e){this.setPropertyValue("state",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"isCollapsed",{get:function(){return"collapsed"==this.state},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"isExpanded",{get:function(){if(!this.isDesignMode)return"expanded"==this.state},enumerable:!0,configurable:!0}),t.prototype.collapse=function(){this.isDesignMode||(this.state="collapsed")},t.prototype.expand=function(){this.state="expanded"},t.prototype.moveTo=function(e,t){return void 0===t&&(t=null),this.moveToBase(this.parent,e,t)},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,"width",{get:function(){return this.getPropertyValue("width")},set:function(e){this.setPropertyValue("width",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"indent",{get:function(){return this.getPropertyValue("indent",0)},set:function(e){this.setPropertyValue("indent",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"innerIndent",{get:function(){return this.getPropertyValue("innerIndent",0)},set:function(e){this.setPropertyValue("innerIndent",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"renderWidth",{get:function(){return this.getPropertyValue("renderWidth")},set:function(e){this.setPropertyValue("renderWidth",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"startWithNewLine",{get:function(){return this.getPropertyValue("startWithNewLine",!0)},set:function(e){this.setPropertyValue("startWithNewLine",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"rightIndent",{get:function(){return this.getPropertyValue("rightIndent",0)},set:function(e){this.setPropertyValue("rightIndent",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"paddingLeft",{get:function(){return this.getPropertyValue("paddingLeft","")},set:function(e){this.setPropertyValue("paddingLeft",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"innerPaddingLeft",{get:function(){return this.getPropertyValue("innerPaddingLeft","")},set:function(e){this.setPropertyValue("innerPaddingLeft",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"paddingRight",{get:function(){return this.getPropertyValue("paddingRight","")},set:function(e){this.setPropertyValue("paddingRight",e)},enumerable:!0,configurable:!0}),t.prototype.onIndentChanged=function(){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"";if(!this.data)return"";var t=this.survey.css;return t?e*t.question.indent+"px":""},t.prototype.onVisibleChanged=function(){e.prototype.onVisibleChanged.call(this),this.setPropertyValue("isVisible",this.isVisible),null!=this.survey&&this.survey.panelVisibilityChanged(this,this.visible)},t}(h);o.a.addClass("panelbase",["name",{name:"elements",alternativeName:"questions",baseClassName:"question",visible:!1,isLightSerializable:!1},{name:"visible:boolean",default:!0},"visibleIf:condition","enableIf:condition","readOnly:boolean",{name:"questionTitleLocation",default:"default",choices:["default","top","bottom","left","hidden"]},{name:"title",serializationProperty:"locTitle"},{name:"description:text",serializationProperty:"locDescription"}],function(){return new h}),o.a.addClass("panel",[{name:"state",default:"default",choices:["default","collapsed","expanded"]},"isRequired:boolean",{name:"requiredErrorText:text",serializationProperty:"locRequiredErrorText"},{name:"startWithNewLine:boolean",default:!0},{name:"innerIndent:number",default:0,choices:[0,1,2,3]},{name:"indent:number",default:0,choices:[0,1,2,3]},{name:"page",isSerializable:!1,choices:function(e){var t=e?e.survey:null;return t?t.pages.map(function(e){return{value:e.name,text:e.title}}):[]}}],function(){return new f},"panelbase")},function(e,t,n){"use strict";var r=n(0),o=n(1),i=n(9),a=n(12),s=n(4),l=n(2),u=n(11),c=n(39),p=n(10),d=n(8);n.d(t,"b",function(){return h}),n.d(t,"a",function(){return f});var h=function(e){function t(t){var n=e.call(this,t)||this;n.filteredChoicesValue=null,n.otherItemValue=new a.a("other"),n.choicesFromUrl=null,n.cachedValueForUrlRequests=null,n.isChoicesLoaded=!1,n.enableOnLoadingChoices=!1,n.isSettingDefaultValue=!1,n.isSettingComment=!1,n.isFirstLoadChoicesFromUrl=!0;var r=n;n.choices=n.createItemValues("choices"),n.registerFunctionOnPropertyValueChanged("choices",function(){r.filterItems()||r.onVisibleChoicesChanged()}),n.registerFunctionOnPropertyValueChanged("hideIfChoicesEmpty",function(){r.updateVisibilityBasedOnChoices()}),n.createNewArray("visibleChoices"),n.choicesByUrl=n.createRestfull(),n.choicesByUrl.owner=n;var o=n.createLocalizableString("otherText",n,!0);return n.createLocalizableString("otherErrorText",n,!0),n.otherItemValue.locOwner=n,n.otherItemValue.setLocText(o),o.onGetTextCallback=function(e){return e||l.a.getString("otherItemText")},n.choicesByUrl.beforeSendRequestCallback=function(){r.onBeforeSendRequest()},n.choicesByUrl.getResultCallback=function(e){r.onLoadChoicesFromUrl(e)},n.choicesByUrl.updateResultCallback=function(e,t){return r.survey?r.survey.updateChoicesFromServer(r,e,t):e},n.createLocalizableString("otherPlaceHolder",n),n}return n.i(r.b)(t,e),t.prototype.getType=function(){return"selectbase"},t.prototype.isLayoutTypeSupported=function(e){return!0},Object.defineProperty(t.prototype,"otherItem",{get:function(){return this.otherItemValue},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"isOtherSelected",{get:function(){return this.hasOther&&this.getHasOther(this.renderedValue)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"choicesVisibleIf",{get:function(){return this.getPropertyValue("choicesVisibleIf","")},set:function(e){this.setPropertyValue("choicesVisibleIf",e),this.filterItems()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"choicesEnableIf",{get:function(){return this.getPropertyValue("choicesEnableIf","")},set:function(e){this.setPropertyValue("choicesEnableIf",e),this.filterItems()},enumerable:!0,configurable:!0}),t.prototype.runCondition=function(t,n){e.prototype.runCondition.call(this,t,n),this.runItemsEnableCondition(t,n),this.runItemsCondition(t,n)},t.prototype.setDefaultValue=function(){this.isSettingDefaultValue=!this.isValueEmpty(this.defaultValue)&&this.hasUnknownValue(this.defaultValue),e.prototype.setDefaultValue.call(this),this.isSettingDefaultValue=!1},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=null),n&&(this.filteredChoicesValue&&this.clearIncorrectValues(),this.onVisibleChoicesChanged()),n},t.prototype.runItemsEnableCondition=function(e,t){this.setConditionalEnableChoicesRunner(),a.a.runEnabledConditionsForItems(this.activeChoices,this.conditionChoicesEnableIfRunner,e,t)&&this.clearDisabledValues()},t.prototype.setConditionalChoicesRunner=function(){this.choicesVisibleIf?(this.conditionChoicesVisibleIfRunner||(this.conditionChoicesVisibleIfRunner=new p.a(this.choicesVisibleIf)),this.conditionChoicesVisibleIfRunner.expression=this.choicesVisibleIf):this.conditionChoicesVisibleIfRunner=null},t.prototype.setConditionalEnableChoicesRunner=function(){this.choicesEnableIf?(this.conditionChoicesEnableIfRunner||(this.conditionChoicesEnableIfRunner=new p.a(this.choicesEnableIf)),this.conditionChoicesEnableIfRunner.expression=this.choicesEnableIf):this.conditionChoicesEnableIfRunner=null},t.prototype.runConditionsForItems=function(e,t){return this.filteredChoicesValue=[],a.a.runConditionsForItems(this.activeChoices,this.filteredChoices,this.conditionChoicesVisibleIfRunner,e,t)},t.prototype.getHasOther=function(e){return e===this.otherItem.value},Object.defineProperty(t.prototype,"validatedValue",{get:function(){return this.rendredValueToDataCore(this.value)},enumerable:!0,configurable:!0}),t.prototype.createRestfull=function(){return new c.a},t.prototype.getComment=function(){return this.commentValue?this.commentValue:this.getStoreOthersAsComment()?e.prototype.getComment.call(this):this.commentValue},t.prototype.setComment=function(t){this.hasComment||this.getStoreOthersAsComment()?e.prototype.setComment.call(this,t):this.isSettingComment||t==this.commentValue||(this.isSettingComment=!0,this.commentValue=t,this.isOtherSelected&&!this.isRenderedValueSetting&&(this.value=this.rendredValueToData(this.renderedValue)),this.isSettingComment=!1)},Object.defineProperty(t.prototype,"renderedValue",{get:function(){return this.getPropertyValue("renderedValue",null)},set:function(e){this.setPropertyValue("renderedValue",e),this.value=this.rendredValueToData(e)},enumerable:!0,configurable:!0}),t.prototype.setQuestionValue=function(t){if(!s.a.isTwoValueEquals(this.value,t)&&(e.prototype.setQuestionValue.call(this,t),this.setPropertyValue("renderedValue",this.rendredValueFromData(t)),!this.hasComment)){var n=this.isOtherSelected;if(n&&this.prevCommentValue){var r=this.prevCommentValue;this.prevCommentValue="",this.comment=r}!n&&this.comment&&(this.getStoreOthersAsComment()&&(this.prevCommentValue=this.comment),this.comment="")}},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.a.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)?(this.comment=e,this.otherItem.value):this.valueFromData(e)},t.prototype.rendredValueToDataCore=function(e){return e==this.otherItem.value&&this.getComment()&&(e=this.getComment()),e},t.prototype.hasUnknownValue=function(e,t){return void 0===t&&(t=!1),!s.a.isValueEmpty(e)&&((!t||e!=this.otherItem.value)&&null==a.a.getItemByValue(this.filteredChoices,e))},t.prototype.isValueDisabled=function(e){var t=a.a.getItemByValue(this.filteredChoices,e);return!!t&&!t.isEnabled},Object.defineProperty(t.prototype,"choices",{get:function(){return this.getPropertyValue("choices")},set:function(e){this.setPropertyValue("choices",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"hideIfChoicesEmpty",{get:function(){return this.getPropertyValue("hideIfChoicesEmpty",!1)},set:function(e){this.setPropertyValue("hideIfChoicesEmpty",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"keepIncorrectValues",{get:function(){return this.getPropertyValue("keepIncorrectValues",!1)},set:function(e){this.setPropertyValue("keepIncorrectValues",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"storeOthersAsComment",{get:function(){return this.getPropertyValue("storeOthersAsComment","default")},set:function(e){this.setPropertyValue("storeOthersAsComment",e)},enumerable:!0,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:!0,configurable:!0}),Object.defineProperty(t.prototype,"otherText",{get:function(){return this.getLocalizableStringText("otherText",l.a.getString("otherItemText"))},set:function(e){this.setLocalizableStringText("otherText",e),this.onVisibleChoicesChanged()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"locOtherText",{get:function(){return this.getLocalizableString("otherText")},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"otherPlaceHolder",{get:function(){return this.getLocalizableStringText("otherPlaceHolder")},set:function(e){this.setLocalizableStringText("otherPlaceHolder",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"locOtherPlaceHolder",{get:function(){return this.getLocalizableString("otherPlaceHolder")},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"otherErrorText",{get:function(){return this.getLocalizableStringText("otherErrorText",l.a.getString("otherRequiredError"))},set:function(e){this.setLocalizableStringText("otherErrorText",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"locOtherErrorText",{get:function(){return this.getLocalizableString("otherErrorText")},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"visibleChoices",{get:function(){return this.getPropertyValue("visibleChoices",[])},enumerable:!0,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:!0,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.filteredChoices;var e=this.sortVisibleChoices(this.filteredChoices.slice());return this.addToVisibleChoices(e),e},t.prototype.canUseFilteredChoices=function(){return!this.hasOther&&"none"==this.choicesOrder},t.prototype.addToVisibleChoices=function(e){this.hasOther&&e.push(this.otherItem)},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=Array.isArray(this.value)?this.value:[this.value];r.isNode=!0,r.data=o.map(function(e,r){var o=a.a.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]}),i})}return r},t.prototype.getDisplayValueCore=function(e,t){return this.getChoicesDisplayValue(this.visibleChoices,t)},t.prototype.getChoicesDisplayValue=function(e,t){if(t==this.otherItemValue.value)return this.comment?this.comment:this.locOtherText.textOrHtml;var n=a.a.getTextOrHtmlByValue(e,t);return""==n&&t?t:n},Object.defineProperty(t.prototype,"filteredChoices",{get:function(){return this.filteredChoicesValue?this.filteredChoicesValue:this.activeChoices},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"activeChoices",{get:function(){return this.choicesFromUrl?this.choicesFromUrl:this.getChoices()},enumerable:!0,configurable:!0}),t.prototype.getChoices=function(){return this.choices},t.prototype.supportComment=function(){return!0},t.prototype.supportOther=function(){return!0},t.prototype.onCheckForErrors=function(t){e.prototype.onCheckForErrors.call(this,t),this.hasOther&&this.isOtherSelected&&!this.comment&&t.push(new u.c(this.otherErrorText,this))},t.prototype.setSurveyImpl=function(t){e.prototype.setSurveyImpl.call(this,t),this.runChoicesByUrl()},t.prototype.getStoreOthersAsComment=function(){return!this.isSettingDefaultValue&&(!0===this.storeOthersAsComment||"default"==this.storeOthersAsComment&&(null==this.survey||this.survey.storeOthersAsComment)||!this.choicesByUrl.isEmpty&&!this.choicesFromUrl)},t.prototype.onSurveyLoad=function(){e.prototype.onSurveyLoad.call(this),this.runChoicesByUrl(),this.onVisibleChoicesChanged()},t.prototype.onAnyValueChanged=function(t){e.prototype.onAnyValueChanged.call(this,t),t!=this.getValueName()&&this.runChoicesByUrl()},t.prototype.runChoicesByUrl=function(){if(this.choicesByUrl&&!this.isLoadingFromJson){var e=this.surveyImpl?this.surveyImpl.getTextProcessor():this.textProcessor;e||(e=this.survey),e&&(this.isReadyValue=this.isChoicesLoaded||this.choicesByUrl.isEmpty,this.choicesByUrl.run(e))}},t.prototype.onBeforeSendRequest=function(){!0!==d.a.disableOnGettingChoicesFromWeb||this.isReadOnly||(this.enableOnLoadingChoices=!0,this.readOnly=!0)},t.prototype.onLoadChoicesFromUrl=function(e){if(this.enableOnLoadingChoices&&(this.readOnly=!1),!this.isReadOnly){var t=[];this.choicesByUrl&&this.choicesByUrl.error&&t.push(this.choicesByUrl.error),this.errors=t}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&&(n=new Array,a.a.setData(n,e)),this.choicesFromUrl=n,this.filterItems(),this.onVisibleChoicesChanged(),n){var i=this.updateCachedValueForUrlRequests(o,n);i&&!this.isReadOnly&&(this.locNotificationInData=!0,this.value=void 0,this.locNotificationInData=!1,this.value=i.value)}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.a.getItemByValue(t,o.value);s&&(i=s.value),n.push(i)}}return{value:n}}var l=e.isExists&&this.hasUnknownValue(e.value)?null:e.value,s=a.a.getItemByValue(t,l);return s&&(l=s.value),{value:l}},t.prototype.onVisibleChoicesChanged=function(){this.isLoadingFromJson||(this.updateVisibleChoices(),this.updateVisibilityBasedOnChoices())},t.prototype.updateVisibilityBasedOnChoices=function(){this.hideIfChoicesEmpty&&(this.visible=!this.filteredChoices||this.filteredChoices.length>0)},t.prototype.sortVisibleChoices=function(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 e.calculatedText<n.calculatedText?-1*t:e.calculatedText>n.calculatedText?1*t:0})},t.prototype.randomizeArray=function(e){return s.a.randomizeArray(e)},t.prototype.clearIncorrectValues=function(){this.keepIncorrectValues||this.survey&&this.survey.questionCountByValueName(this.getValueName())>1||(this.clearIncorrectValuesCallback?this.clearIncorrectValuesCallback():this.clearIncorrectValuesCore())},t.prototype.clearValueIfInvisible=function(){e.prototype.clearValueIfInvisible.call(this),this.clearIncorrectValues()},t.prototype.clearDisabledValues=function(){this.survey&&this.survey.clearValueOnDisableItems&&this.clearDisabledValuesCore()},t.prototype.clearIncorrectValuesCore=function(){var e=this.value;this.canClearValueAnUnknow(e)&&this.clearValue()},t.prototype.canClearValueAnUnknow=function(e){return!(!this.getStoreOthersAsComment()&&this.isOtherSelected)&&this.hasUnknownValue(e,!0)},t.prototype.clearDisabledValuesCore=function(){this.isValueDisabled(this.value)&&this.clearValue()},t.prototype.clearUnusedValues=function(){e.prototype.clearUnusedValues.call(this),this.isOtherSelected||this.hasComment||(this.comment="")},t.prototype.getColumnClass=function(){var e=this.cssClasses.column;return this.hasColumns&&(e+=" sv-q-column-"+this.colCount),e},t.prototype.getLabelClass=function(e){var t=this.cssClasses.label;return e&&(t+=" "+this.cssClasses.labelChecked),t},t.prototype.getControlLabelClass=function(e){var t=this.cssClasses.controlLabel;return e&&(t+=" "+this.cssClasses.controlLabelChecked),t},Object.defineProperty(t.prototype,"columns",{get:function(){var e=[],t=this.colCount;if(this.hasColumns&&this.visibleChoices.length>0)for(var n=0;n<t;n++){for(var r=[],o=n;o<this.visibleChoices.length;o+=t)r.push(this.visibleChoices[o]);e.push(r)}return e},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"hasColumns",{get:function(){return this.colCount>1},enumerable:!0,configurable:!0}),t.prototype.choicesLoaded=function(){this.isChoicesLoaded=!0;var e=this.isReadyValue;this.isReadyValue=!0,this.onReadyChanged&&this.onReadyChanged.fire(this,{question:this,isReady:!0,olsIsReady:e})},t}(i.a),f=function(e){function t(t){var n=e.call(this,t)||this;return n.name=t,n}return n.i(r.b)(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:!0,configurable:!0}),t.prototype.onParentChanged=function(){e.prototype.onParentChanged.call(this),this.isFlowLayout&&this.setPropertyValue("colCount",null)},t}(h);o.a.addClass("selectbase",[{name:"hasComment:boolean",layout:"row"},{name:"commentText",serializationProperty:"locCommentText",layout:"row"},"hasOther:boolean",{name:"otherPlaceHolder",serializationProperty:"locOtherPlaceHolder"},{name:"choices:itemvalue[]",baseValue:function(){return l.a.getString("choices_Item")}},{name:"choicesOrder",default:"none",choices:["none","asc","desc","random"]},{name:"choicesByUrl:restfull",className:"ChoicesRestfull",onGetValue:function(e){return e.choicesByUrl.getData()},onSetValue:function(e,t){e.choicesByUrl.setData(t)}},"hideIfChoicesEmpty:boolean","choicesVisibleIf:condition","choicesEnableIf:condition",{name:"otherText",serializationProperty:"locOtherText"},{name:"otherErrorText",serializationProperty:"locOtherErrorText"},{name:"storeOthersAsComment",default:"default",choices:["default",!0,!1],visible:!1}],null,"question"),o.a.addClass("checkboxbase",[{name:"colCount:number",default:1,choices:[0,1,2,3,4,5],layout:"row"}],null,"selectbase")},function(e,t,n){"use strict";function r(e,t,n,r){e.hasOther&&(e.storeOthersAsComment=!1),e.choices&&0!=e.choices.length||!e.choicesByUrl.isEmpty||(e.choices=n.choices),e.choicesByUrl.isEmpty||e.choicesByUrl.run(r)}var o=n(0),i=n(1),a=n(47),s=n(4),l=n(5),u=n(23),c=n(15),p=n(2),d=n(3),h=n(14),f=n(30),m=n(25),g=n(8);n.d(t,"e",function(){return y}),n.d(t,"d",function(){return v}),n.d(t,"c",function(){return b}),n.d(t,"b",function(){return C}),n.d(t,"a",function(){return k});var y={dropdown:{properties:["choices","choicesOrder","choicesByUrl","optionsCaption","otherText","choicesVisibleIf"],onCellQuestionUpdate:function(e,t,n,o){r(e,t,n,o),e.locOptionsCaption.isEmpty&&(e.optionsCaption=n.optionsCaption)}},checkbox:{properties:["choices","choicesOrder","choicesByUrl","otherText","choicesVisibleIf"],onCellQuestionUpdate:function(e,t,n,o){r(e,t,n,o),e.colCount=t.colCount>-1?t.colCount:n.columnColCount}},radiogroup:{properties:["choices","choicesOrder","choicesByUrl","otherText","choicesVisibleIf"],onCellQuestionUpdate:function(e,t,n,o){r(e,t,n,o),e.colCount=t.colCount>-1?t.colCount:n.columnColCount}},text:{properties:["placeHolder","inputType","maxLength"],onCellQuestionUpdate:function(e,t,n,r){}},comment:{properties:["placeHolder","rows","maxLength"],onCellQuestionUpdate:function(e,t,n,r){}},boolean:{properties:["defaultValue"],onCellQuestionUpdate:function(e,t,n,r){e.showTitle=!0}},expression:{properties:["expression","displayStyle","currency"],onCellQuestionUpdate:function(e,t,n,r){}}},v=function(e){function t(t,n){void 0===n&&(n=null);var r=e.call(this)||this;r.colOwnerValue=null,r.indexValue=-1,r._isVisible=!0,r._hasVisibleCell=!0;var o=r;return r.createLocalizableString("totalFormat",r),r.registerFunctionOnPropertiesValueChanged(["totalType","totalExpression","totalFormat","totalCurrency","totalDisplayStyle","totalMaximumFractionDigits","totalMinimumFractionDigits"],function(){o.doColumnPropertiesChanged()}),r.updateTemplateQuestion(),r.name=t,n&&(r.title=n),r}return n.i(o.b)(t,e),t.getColumnTypes=function(){var e=[];for(var t in y)e.push(t);return e},t.prototype.getDynamicPropertyName=function(){return"cellType"},t.prototype.getDynamicType=function(){return this.calcCellQuestionType()},t.prototype.getDynamicProperties=function(){var e=this.calcCellQuestionType(),t=y[e];return t?t.properties:[]},Object.defineProperty(t.prototype,"colOwner",{get:function(){return this.colOwnerValue},set:function(e){this.colOwnerValue=e,this.updateTemplateQuestion()},enumerable:!0,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:!0,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.setPropertyValue("cellType",e),this.updateTemplateQuestion()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"templateQuestion",{get:function(){return this.templateQuestionValue},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"value",{get:function(){return this.templateQuestion.name},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"isVisible",{get:function(){return this._isVisible},enumerable:!0,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:!0,configurable:!0}),Object.defineProperty(t.prototype,"name",{get:function(){return this.templateQuestion.name},set:function(e){this.templateQuestion.name=e},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"title",{get:function(){return this.templateQuestion.title},set:function(e){this.templateQuestion.title=e},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"locTitle",{get:function(){return this.templateQuestion.locTitle},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"fullTitle",{get:function(){return this.locTitle.textOrHtml},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"isRequired",{get:function(){return this.templateQuestion.isRequired},set:function(e){this.templateQuestion.isRequired=e},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"requiredErrorText",{get:function(){return this.templateQuestion.requiredErrorText},set:function(e){this.templateQuestion.requiredErrorText=e},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"locRequiredErrorText",{get:function(){return this.templateQuestion.locRequiredErrorText},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"readOnly",{get:function(){return this.templateQuestion.readOnly},set:function(e){this.templateQuestion.readOnly=e},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"hasOther",{get:function(){return this.templateQuestion.hasOther},set:function(e){this.templateQuestion.hasOther=e},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"visibleIf",{get:function(){return this.templateQuestion.visibleIf},set:function(e){this.templateQuestion.visibleIf=e},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"enableIf",{get:function(){return this.templateQuestion.enableIf},set:function(e){this.templateQuestion.enableIf=e},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"requiredIf",{get:function(){return this.templateQuestion.requiredIf},set:function(e){this.templateQuestion.requiredIf=e},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"hasCondition",{get:function(){return!!this.visibleIf||!this.enableIf||!this.requiredIf},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"validators",{get:function(){return this.templateQuestion.validators},set:function(e){this.templateQuestion.validators=e},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"totalType",{get:function(){return this.getPropertyValue("totalType","none")},set:function(e){this.setPropertyValue("totalType",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"totalExpression",{get:function(){return this.getPropertyValue("totalExpression")},set:function(e){this.setPropertyValue("totalExpression",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"hasTotal",{get:function(){return"none"!=this.totalType||!!this.totalExpression},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"totalFormat",{get:function(){return this.getLocalizableStringText("totalFormat","")},set:function(e){this.setLocalizableStringText("totalFormat",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"locTotalFormat",{get:function(){return this.getLocalizableString("totalFormat")},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"totalMaximumFractionDigits",{get:function(){return this.getPropertyValue("totalMaximumFractionDigits",-1)},set:function(e){e<-1||e>20||this.setPropertyValue("totalMaximumFractionDigits",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"totalMinimumFractionDigits",{get:function(){return this.getPropertyValue("totalMinimumFractionDigits",-1)},set:function(e){e<-1||e>20||this.setPropertyValue("totalMinimumFractionDigits",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"totalDisplayStyle",{get:function(){return this.getPropertyValue("totalDisplayStyle")},set:function(e){this.setPropertyValue("totalDisplayStyle",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"totalCurrency",{get:function(){return this.getPropertyValue("totalCurrency")},set:function(e){n.i(f.b)().indexOf(e)<0||this.setPropertyValue("totalCurrency",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"minWidth",{get:function(){return this.getPropertyValue("minWidth","")},set:function(e){this.setPropertyValue("minWidth",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"width",{get:function(){return this.getPropertyValue("width","")},set:function(e){this.setPropertyValue("width",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"colCount",{get:function(){return this.getPropertyValue("colCount",-1)},set:function(e){e<-1||e>4||this.setPropertyValue("colCount",e)},enumerable:!0,configurable:!0}),t.prototype.getLocale=function(){return this.colOwner?this.colOwner.getLocale():""},t.prototype.getMarkdownHtml=function(e){return this.colOwner?this.colOwner.getMarkdownHtml(e):null},t.prototype.getProcessedText=function(e){return this.colOwner?this.colOwner.getProcessedText(e):e},t.prototype.createCellQuestion=function(e){var t=this.calcCellQuestionType(),n=this.createNewQuestion(t);return this.updateCellQuestion(n,e),n},t.prototype.updateCellQuestion=function(e,t){this.setQuestionProperties(e);var n=e.getType(),r=y[n];r&&r.onCellQuestionUpdate&&r.onCellQuestionUpdate(e,this,this.colOwner,t)},t.prototype.defaultCellTypeChanged=function(){this.updateTemplateQuestion()},t.prototype.calcCellQuestionType=function(){return"default"!==this.cellType?this.cellType:this.colOwner?this.colOwner.getCellType():g.a.matrixDefaultCellType},t.prototype.updateTemplateQuestion=function(){var e=this.templateQuestion?this.templateQuestion.getType():"",t=this.calcCellQuestionType();if(t!==e){this.templateQuestion&&this.removeProperties(e),this.templateQuestionValue=this.createNewQuestion(t),this.templateQuestion.locOwner=this,this.addProperties(t);var n=this;this.templateQuestion.onPropertyChanged.add(function(){n.doColumnPropertiesChanged()})}},t.prototype.createNewQuestion=function(e){var t=i.a.createClass(e);return t||(t=i.a.createClass("text")),this.setQuestionProperties(t),t},t.prototype.setQuestionProperties=function(e){if(this.templateQuestion){var t=(new i.b).toJsonObject(this.templateQuestion,!0);t.type=e.getType(),e.startLoadingFromJson(),(new i.b).toObject(t,e),e.endLoadingFromJson(),e.onSurveyLoad()}},t.prototype.propertyValueChanged=function(t,n,r){e.prototype.propertyValueChanged.call(this,t,n,r),this.doColumnPropertiesChanged()},t.prototype.doColumnPropertiesChanged=function(){null==this.colOwner||this.isLoadingFromJson||this.colOwner.onColumnPropertiesChanged(this)},t.prototype.getProperties=function(e){var t=y[e];return t&&t.properties?i.a.findProperties(e,t.properties):[]},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)}},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}(l.c),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.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)},i.d.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:!0,configurable:!0}),Object.defineProperty(e.prototype,"value",{get:function(){return this.question.value},set:function(e){this.question.value=e},enumerable:!0,configurable:!0}),e.prototype.runCondition=function(e,t){this.question.runCondition(e,t)},e}(),x=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 n.i(o.b)(t,e),t.prototype.createQuestion=function(e,t,n){var r=i.a.createClass("expression");return r.setSurveyImpl(t),r},t.prototype.updateCellQuestion=function(){this.question.locCalculation(),this.column.updateCellQuestion(this.question,null),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()},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 m.a.Instance.hasFunction(e)?e+"({self}, '"+this.column.name+"')":""},t}(b),C=function(){function e(t,n){this.isSettingValue=!1,this.cells=[],this.data=t,this.textPreProcessor=new u.a;var r=this;this.textPreProcessor.onProcess=function(e){r.getProcessedTextValue(e)},this.idValue=e.getId()}return e.getId=function(){return"srow_"+e.idCounter++},Object.defineProperty(e.prototype,"id",{get:function(){return this.idValue},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"rowName",{get:function(){return null},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"value",{get:function(){for(var e={},t=0;t<this.cells.length;t++){var n=this.cells[t].question;n.isEmpty()||(e[n.getValueName()]=n.value)}return e},set:function(e){this.isSettingValue=!0;for(var t=0;t<this.cells.length;t++){var n=this.cells[t].question,r=e?e[n.getValueName()]:null;n.updateValueFromSurvey(r),n.onSurveyValueChanged(r)}this.isSettingValue=!1},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"locText",{get:function(){return null},enumerable:!0,configurable:!0}),e.prototype.getAllValues=function(){return this.value},e.prototype.getFilteredValues=function(){var e=this.getAllValues(),t={row:e};for(var n in 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,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)},e.prototype.onAnyValueChanged=function(e){for(var t=0;t<this.cells.length;t++)this.cells[t].question.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.getQuestionByColumnName(e);return t?t.value:null},e.prototype.setValue=function(t,n){if(!this.isSettingValue){var r=this.value,o=this.getValue(t),i=this.getQuestionByColumnName(t),a=this.data.onRowChanging(this,t,r);i&&!s.a.isTwoValueEquals(a,o)?this.getQuestionByColumnName(t).value=a:(this.data.onRowChanged(this,t,r,null==n&&!i),this.onAnyValueChanged(e.RowVariableName))}},e.prototype.getVariable=function(e){},e.prototype.setVariable=function(e,t){},e.prototype.getComment=function(e){var t=this.getValue(e+g.a.commentPrefix);return t||""},e.prototype.setComment=function(e,t,n){this.setValue(e+g.a.commentPrefix,t)},Object.defineProperty(e.prototype,"isEmpty",{get:function(){var e=this.value;if(s.a.isValueEmpty(e))return!0;for(var t in e)if(void 0!==e[t]&&null!==e[t])return!1;return!0},enumerable:!0,configurable:!0}),e.prototype.getQuestionByColumn=function(e){for(var t=0;t<this.cells.length;t++)if(this.cells[t].column==e)return this.cells[t].question;return null},e.prototype.getQuestionByColumnName=function(e){for(var t=0;t<this.cells.length;t++)if(this.cells[t].column.name==e)return this.cells[t].question;return null},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.getQuestionByColumnName(t);if(n){var r=n.value;n.clearIncorrectValues(),s.a.isTwoValueEquals(r,n.value)||this.setValue(t,n.value)}else this.getSharedQuestionByName(t)||this.setValue(t,null)}},e.prototype.getLocale=function(){return this.data?this.data.getLocale():""},e.prototype.getMarkdownHtml=function(e){return this.data?this.data.getMarkdownHtml(e):null},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].question.locStrsChanged()},e.prototype.updateCellQuestionOnColumnChanged=function(e){for(var t=0;t<this.cells.length;t++)if(this.cells[t].column===e)return void this.updateCellOnColumnChanged(this.cells[t])},e.prototype.onQuestionReadOnlyChanged=function(e){for(var t=0;t<this.cells.length;t++)this.cells[t].question&&(this.cells[t].question.readOnly=e)},e.prototype.updateCellOnColumnChanged=function(e){e.column.updateCellQuestion(e.question,this)},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),e&&!s.a.isValueEmpty(e[r.name])&&(o.question.value=e[r.name])}}this.isSettingValue=!1},e.prototype.createCell=function(e){return new b(e,this,this.data)},e.prototype.geSurveyData=function(){return this},e.prototype.getSurvey=function(){return this.data?this.data.getSurvey():null},Object.defineProperty(e.prototype,"rowIndex",{get:function(){return this.data?this.data.getRowIndex(this)+1:-1},enumerable:!0,configurable:!0}),e.prototype.getProcessedTextValue=function(t){var n=(new c.a).getFirstName(t.name);if(t.isExists=n==e.RowVariableName,t.canProcess=t.isExists,t.isExists){var r={row:this.value};t.value=(new c.a).getValue(t.name,r)}},e.prototype.getTextProcessor=function(){return this},e.prototype.processText=function(e,t){return e=this.textPreProcessor.process(e,t),this.getSurvey()?this.getSurvey().processText(e,t):e},e.prototype.processTextEx=function(e,t){if(e=this.processText(e,t),!this.getSurvey())return e;var n=this.textPreProcessor.hasAllValuesOnLastRun,r=this.getSurvey().processTextEx(e,t,!1);return r.hasAllValuesOnLastRun=r.hasAllValuesOnLastRun&&n,r},e.RowVariableName="row",e.OwnerVariableName="self",e.IndexVariableName="rowIndex",e.idCounter=1,e}(),w=function(e){function t(t){var n=e.call(this,t,null)||this;return n.buildCells(null),n}return n.i(o.b)(t,e),t.prototype.createCell=function(e){return new x(e,this,this.data)},t.prototype.setValue=function(e,t){this.data&&this.data.onTotalValueChanged()},t.prototype.runCondition=function(t,n){var r,o=0;do{r=s.a.getUnbindValue(this.value),e.prototype.runCondition.call(this,t,n),o++}while(!s.a.isTwoValueEquals(r,this.value)&&o<3)},t.prototype.updateCellOnColumnChanged=function(e){e.updateCellQuestion()},t}(C),P=function(){function e(){this.minWidth="",this.width="",this.idValue=e.counter++}return Object.defineProperty(e.prototype,"hasQuestion",{get:function(){return!!this.question},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"hasTitle",{get:function(){return!!this.locTitle},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"id",{get:function(){return this.idValue},enumerable:!0,configurable:!0}),e.counter=1,e}(),V=function(){function e(){this.cells=[],this.idValue=e.counter++}return Object.defineProperty(e.prototype,"id",{get:function(){return this.idValue},enumerable:!0,configurable:!0}),e.counter=1,e}(),T=function(e){function t(t){var n=e.call(this)||this;return n.matrix=t,n.createNewArray("rows"),n.build(),n}return n.i(o.b)(t,e),Object.defineProperty(t.prototype,"showHeader",{get:function(){return this.getPropertyValue("showHeader")},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"showFooter",{get:function(){return this.matrix.hasFooter&&this.matrix.isColumnLayoutHorizontal},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"hasFooter",{get:function(){return!!this.footerRow},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"hasRemoveRows",{get:function(){return this.hasRemoveRowsValue},enumerable:!0,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:!0,configurable:!0}),Object.defineProperty(t.prototype,"footerRow",{get:function(){return this.footerRowValue},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"rows",{get:function(){return this.getPropertyValue("rows")},enumerable:!0,configurable:!0}),t.prototype.build=function(){this.hasRemoveRowsValue=this.matrix.canRemoveRows;this.matrix.visibleRows;this.buildHeader(),this.buildRows(),this.buildFooter()},t.prototype.onAddedRow=function(){this.rows.length>=this.matrix.visibleRows.length||this.rows.push(this.createHorizontalRow(this.matrix.visibleRows[this.matrix.visibleRows.length-1]))},t.prototype.onRemovedRow=function(e){this.rows.length<=e||this.rows.splice(e,1)},t.prototype.buildHeader=function(){var e=this.matrix.isColumnLayoutHorizontal&&this.matrix.showHeader,t=e||this.matrix.hasRowText&&!this.matrix.isColumnLayoutHorizontal;if(this.setPropertyValue("showHeader",t),t){if(this.headerRowValue=new V,this.matrix.hasRowText&&this.matrix.showHeader&&this.headerRow.cells.push(this.createHeaderCell(null)),this.matrix.isColumnLayoutHorizontal)for(var n=0;n<this.matrix.visibleColumns.length;n++){var r=this.matrix.visibleColumns[n];r.hasVisibleCell&&this.headerRow.cells.push(this.createHeaderCell(r))}else{for(var o=this.matrix.visibleRows,n=0;n<o.length;n++)this.headerRow.cells.push(this.createTextCell(o[n].locText));this.matrix.hasFooter&&this.headerRow.cells.push(this.createTextCell(this.matrix.getFooterText()))}this.hasRemoveRows&&this.headerRow.cells.push(this.createHeaderCell(null))}},t.prototype.buildFooter=function(){if(this.showFooter){this.footerRowValue=new V,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++)e[t].column.hasVisibleCell&&this.footerRow.cells.push(this.createEditCell(e[t]));this.hasRemoveRows&&this.footerRow.cells.push(this.createHeaderCell(null))}},t.prototype.buildRows=function(){var e=this.matrix.isColumnLayoutHorizontal?this.buildHorizontalRows():this.buildVerticalRows();this.setPropertyValue("rows",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++)t.push(this.createHorizontalRow(e[n]));return t},t.prototype.createHorizontalRow=function(e){var t=new V;this.matrix.hasRowText&&t.cells.push(this.createTextCell(e.locText));for(var n=0;n<e.cells.length;n++){var r=e.cells[n];r.column.hasVisibleCell&&t.cells.push(this.createEditCell(r))}return this.hasRemoveRows&&t.cells.push(this.createRemoveRowCell(e)),t},t.prototype.buildVerticalRows=function(){for(var e=this.matrix.columns,t=[],n=0;n<e.length;n++)e[n].isVisible&&e[n].hasVisibleCell&&t.push(this.createVerticalRow(e[n],n));return this.hasRemoveRows&&t.push(this.createVerticalRemoveRow()),t},t.prototype.createVerticalRow=function(e,t){var n=new V;this.matrix.showHeader&&n.cells.push(this.createTextCell(e.locTitle));for(var r=this.matrix.visibleRows,o=0;o<r.length;o++)n.cells.push(this.createEditCell(r[o].cells[t]));return this.matrix.hasTotal&&n.cells.push(this.createEditCell(this.matrix.visibleTotalRow.cells[t])),n},t.prototype.createVerticalRemoveRow=function(){var e=new V;this.matrix.showHeader&&e.cells.push(this.createTextCell(null));for(var t=this.matrix.visibleRows,n=0;n<t.length;n++)e.cells.push(this.createRemoveRowCell(t[n]));return this.matrix.hasTotal&&e.cells.push(this.createTextCell(null)),e},t.prototype.createEditCell=function(e){var t=new P;return t.cell=e,t.row=e.row,t.question=e.question,t.matrix=this.matrix,t},t.prototype.createHeaderCell=function(e){var t=this.createTextCell(e?e.locTitle:null);return t.minWidth=null!=e?this.matrix.getColumnWidth(e):"",t.width=null!=e?e.width:"",t},t.prototype.createRemoveRowCell=function(e){var t=new P;return t.row=e,t.isRemoveRow=this.canRemoveRow(e),t},t.prototype.createTextCell=function(e){var t=new P;return t.locTitle=e||new h.a(this.matrix,!1),t},t}(l.c),k=function(e){function t(t){var n=e.call(this,t)||this;n.name=t,n.isRowChanging=!1,n.lockResetRenderedTable=!1,n.isDoingonAnyValueChanged=!1;var r=n;return n.choicesValue=n.createItemValues("choices"),n.createLocalizableString("optionsCaption",n),n.registerFunctionOnPropertyValueChanged("columns",function(e){r.updateColumnsIndexes(e),r.generatedVisibleRows=null,r.generatedTotalRow=null,r.resetRenderedTable(),r.fireCallback(r.columnsChangedCallback)}),n.registerFunctionOnPropertiesValueChanged(["columnLayout","addRowLocation"],function(){r.fireCallback(r.columnLayoutChangedCallback)}),n.registerFunctionOnPropertiesValueChanged(["cellType","optionsCaption","columnColCount"],function(){r.generatedVisibleRows=null,r.resetRenderedTable(),r.fireCallback(r.columnsChangedCallback)}),n.registerFunctionOnPropertiesValueChanged(["columnLayout","showHeader","minRowCount","isReadOnly","rowCount","hasFooter"],function(){r.resetRenderedTable()}),n}return n.i(o.b)(t,e),Object.defineProperty(t,"defaultCellType",{get:function(){return g.a.matrixDefaultCellType},set:function(e){g.a.matrixDefaultCellType=e},enumerable:!0,configurable:!0}),t.addDefaultColumns=function(e){for(var t=d.b.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})},t.prototype.getType=function(){return"matrixdropdownbase"},Object.defineProperty(t.prototype,"isRowsDynamic",{get:function(){return!1},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"columnLayout",{get:function(){return this.getPropertyValue("columnLayout")},set:function(e){this.setPropertyValue("columnLayout",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"columnsLocation",{get:function(){return this.columnLayout},set:function(e){this.columnLayout=e},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"isColumnLayoutHorizontal",{get:function(){return"vertical"!=this.columnLayout},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"hasRowText",{get:function(){return!0},enumerable:!0,configurable:!0}),t.prototype.getFooterText=function(){return null},Object.defineProperty(t.prototype,"canRemoveRows",{get:function(){return!1},enumerable:!0,configurable:!0}),t.prototype.canRemoveRow=function(e){return!0},t.prototype.onRowsChanged=function(){this.resetRenderedTable(),e.prototype.onRowsChanged.call(this)},t.prototype.onStartRowAddingRemoving=function(){this.lockResetRenderedTable=!0},t.prototype.onEndRowAdding=function(){this.lockResetRenderedTable=!1,this.renderedTable&&(this.renderedTable.isRequireReset()?this.resetRenderedTable():this.renderedTable.onAddedRow())},t.prototype.onEndRowRemoving=function(e){this.lockResetRenderedTable=!1,this.renderedTable.isRequireReset()?this.resetRenderedTable():this.renderedTable.onRemovedRow(e)},t.prototype.resetRenderedTable=function(){this.lockResetRenderedTable||this.isLoadingFromJson||(this.renderedTableValue=null,this.fireCallback(this.onRenderedTableResetCallback))},Object.defineProperty(t.prototype,"renderedTable",{get:function(){return this.renderedTableValue||(this.renderedTableValue=this.createRenderedTable(),this.onRenderedTableCreatedCallback&&this.onRenderedTableCreatedCallback(this.renderedTableValue)),this.renderedTableValue},enumerable:!0,configurable:!0}),t.prototype.createRenderedTable=function(){return new T(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.survey.matrixCellCreated(this,t)}},Object.defineProperty(t.prototype,"cellType",{get:function(){return this.getPropertyValue("cellType",g.a.matrixDefaultCellType)},set:function(e){e=e.toLowerCase(),this.cellType!=e&&(this.setPropertyValue("cellType",e),this.updateColumnsCellType(),this.fireCallback(this.updateCellsCallback))},enumerable:!0,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",0)},set:function(e){e<0||e>4||(this.setPropertyValue("columnColCount",e),this.fireCallback(this.updateCellsCallback))},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"columnMinWidth",{get:function(){return this.getPropertyValue("columnMinWidth","")},set:function(e){this.setPropertyValue("columnMinWidth",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"horizontalScroll",{get:function(){return this.getPropertyValue("horizontalScroll",!1)},set:function(e){this.setPropertyValue("horizontalScroll",e)},enumerable:!0,configurable:!0}),t.prototype.getRequiredText=function(){return this.survey?this.survey.requiredText:""},t.prototype.onColumnPropertiesChanged=function(e){if(this.updateHasFooter(),this.generatedVisibleRows){for(var t=0;t<this.generatedVisibleRows.length;t++)this.generatedVisibleRows[t].updateCellQuestionOnColumnChanged(e);this.generatedTotalRow&&this.generatedTotalRow.updateCellQuestionOnColumnChanged(e)}},Object.defineProperty(t.prototype,"hasFooter",{get:function(){return this.getPropertyValue("hasFooter",!1)},enumerable:!0,configurable:!0}),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:!0,configurable:!0}),t.prototype.getCellType=function(){return this.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 a=i.createCellQuestion(null);return a?a.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(){if(e.prototype.clearErrors.call(this),this.generatedVisibleRows)for(var t=0;t<this.generatedVisibleRows.length;t++)for(var n=this.generatedVisibleRows[t],r=0;r<n.cells.length;r++)n.cells[r].question.clearErrors()},t.prototype.runCondition=function(t,n){e.prototype.runCondition.call(this,t,n),this.runCellsCondition(t,n),this.runTotalsCondition(t,n)},t.prototype.shouldRunColumnExpression=function(){return!1},t.prototype.runCellsCondition=function(e,t){if(this.generatedVisibleRows&&this.hasCellsCondition){for(var n=this.getRowConditionValues(e),r=this.generatedVisibleRows,o=0;o<r.length;o++)r[o].runCondition(n,t);this.checkColumnsVisibility()}},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.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={};return e&&e instanceof Object&&(t=JSON.parse(JSON.stringify(e))),t.row={},t},Object.defineProperty(t.prototype,"hasCellsCondition",{get:function(){for(var e=0;e<this.columns.length;e++)if(this.columns[e].hasCondition)return!0;return!1},enumerable:!0,configurable:!0}),t.prototype.locStrsChanged=function(){e.prototype.locStrsChanged.call(this);var t=this.generatedVisibleRows;if(t){for(var n=this.columns,r=0;r<n.length;r++)n[r].locStrsChanged();for(var r=0;r<t.length;r++)t[r].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){return e.minWidth?e.minWidth:this.columnMinWidth},Object.defineProperty(t.prototype,"choices",{get:function(){return this.choicesValue},set:function(e){this.setPropertyValue("choices",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"optionsCaption",{get:function(){return this.getLocalizableStringText("optionsCaption",p.a.getString("optionsCaption"))},set:function(e){this.setLocalizableStringText("optionsCaption",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"locOptionsCaption",{get:function(){return this.getLocalizableString("optionsCaption")},enumerable:!0,configurable:!0}),t.prototype.addColumn=function(e,t){void 0===t&&(t=null);var n=new v(e,t);return this.columns.push(n),n},t.prototype.getVisibleRows=function(){var e=this;return this.isLoadingFromJson?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.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],i=this.getRowValue(r),a=o.value;this.isTwoValueEquals(i,a)||(n=this.getNewValueOnRowChanged(o,"",a,!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.value:{}},enumerable:!0,configurable:!0}),t.prototype.getVisibleTotalRow=function(){if(this.isLoadingFromJson)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:!0,configurable:!0}),t.prototype.onSurveyLoad=function(){e.prototype.onSurveyLoad.call(this),this.updateColumnsIndexes(this.columns),this.generatedVisibleRows=null,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.setRowValue=function(e,t){if(e<0)return null;var n=this.visibleRows;if(e>=n.length)return null;this.onRowChanged(n[e],"",t,!1),this.onValueChanged()},t.prototype.generateRows=function(){return null},t.prototype.generateTotalRow=function(){return new w(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.getRowDisplayValue=function(e,t){if(!t)return t;for(var n in t){var r=e.getQuestionByColumnName(n);r||(r=this.getSharedQuestionByName(n,e)),r&&(t[n]=r.displayValue)}return t},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.rowName,value:e.value,displayValue:n.getRowDisplayValue(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.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 a=o[i].question;if(a&&a.isVisible)if(e(a)){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.hasErrorInColumns(t);return e.prototype.hasErrors.call(this,t)||r},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 a=o.cells[i].question.getAllErrors();a&&a.length>0&&(t=t.concat(a))}return t},t.prototype.hasErrorInColumns=function(e){var t=this;if(!this.generatedVisibleRows)return!1;for(var n=!1,r=0;r<this.generatedVisibleRows.length;r++){var o=this.generatedVisibleRows[r].cells;if(o)for(var i=0;i<o.length;i++)if(o[i]){var a=o[i].question;a&&a.visible&&(a.onCompletedAsyncValidators=function(e){t.raiseOnCompletedAsyncValidators()},n=a.hasErrors(e)||n)}}return n},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 this.isReadOnly&&(n.readOnly=!0),n.setSurveyImpl(e),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.isLoadingFromJson&&!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){var r=this,o=function(t){for(var n=0;r.columns.length;n++)if(r.columns[n].name===t)return e.cells[n].question;return null};return{row:e,columnName:t,rowValue:n,value:n?n[t]:null,getCellQuestion:o}},t.prototype.onCellValueChanged=function(e,t,n){if(this.survey){var r=this.getOnCellValueChangedOptions(e,t,n);this.survey.matrixCellValueChanged(this,r)}},t.prototype.validateCell=function(e,t,n){if(this.survey){var r=this,o=function(t){for(var n=0;r.columns.length;n++)if(r.columns[n].name===t)return e.cells[n].question;return null},i={row:e,columnName:t,rowValue:n,value:n[t],getCellQuestion:o};return this.survey.matrixCellValidate(this,i)}},t.prototype.onRowChanging=function(e,t,n){if(!this.survey)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.survey.matrixCellValueChanging(this,r),r.value},t.prototype.onRowChanged=function(e,t,n,r){var o=this.createNewValue(!0),i=this.getNewValueOnRowChanged(e,t,n,r,this.createNewValue());this.isTwoValueEquals(o,i.value)||(this.isRowChanging=!0,this.setNewValue(i.value),this.isRowChanging=!1,t&&this.onCellValueChanged(e,t,i.rowValue))},t.prototype.getNewValueOnRowChanged=function(e,t,n,r,o){var i=this.getRowValueCore(e,o,!0);r&&delete i[t];for(var a=0;a<e.cells.length;a++){var s=e.cells[a].question.getValueName();delete i[s]}if(n){n=JSON.parse(JSON.stringify(n));for(var s in n)this.isValueEmpty(n[s])||(i[s]=n[s])}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.visibleRows.indexOf(e)},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.data.setValue(this.getValueName()+g.a.matrixTotalValuePostFix,this.totalValue,!1)},t.prototype.getQuestionFromArray=function(e,t){return t>=this.visibleRows.length?null:this.visibleRows[t].getQuestionByColumnName(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}},t.prototype.getSurvey=function(){return this.survey},t}(a.a);i.a.addClass("matrixdropdowncolumn",["!name",{name:"title",serializationProperty:"locTitle"},{name:"cellType",default:"default",choices:function(){var e=v.getColumnTypes();return e.splice(0,0,"default"),e}},{name:"colCount",default:-1,choices:[-1,0,1,2,3,4]},"isRequired:boolean",{name:"requiredErrorText:text",serializationProperty:"locRequiredErrorText"},"hasOther:boolean","readOnly:boolean","minWidth","width","visibleIf:condition","enableIf:condition","requiredIf:condition",{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 n.i(f.b)()},default:"USD"},{name:"totalMaximumFractionDigits:number",default:-1},{name:"totalMinimumFractionDigits:number",default:-1}],function(){return new v("")}),i.a.addClass("matrixdropdownbase",[{name:"columns:matrixdropdowncolumns",className:"matrixdropdowncolumn"},{name:"columnLayout",alternativeName:"columnsLocation",default:"horizontal",choices:["horizontal","vertical"]},"horizontalScroll:boolean",{name:"choices:itemvalue[]"},{name:"optionsCaption",serializationProperty:"locOptionsCaption"},{name:"cellType",default:"dropdown",choices:function(){return v.getColumnTypes()}},{name:"columnColCount",default:0,choices:[0,1,2,3,4]},"columnMinWidth"],function(){return new k("")},"matrixbase")},function(e,t,n){"use strict";var r=n(4);n.d(t,"a",function(){return a});var o=function(){function e(){}return e}(),i=function(){function e(e,t){this.name=e,this.returnDisplayValue=t,this.isExists=!1,this.canProcess=!0}return e}(),a=function(){function e(){}return 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),a=o.length-1;a>=0;a--){var s=o[a],l=this.getName(e.substring(s.start+1,s.end));if(l){var u=new i(l,t);if(this.onProcess(u),u.isExists){r.a.isValueEmpty(u.value)&&(this.hasAllValuesOnLastRunValue=!1);var c=r.a.isValueEmpty(u.value)?"":u.value;n&&(c=encodeURIComponent(c)),e=e.substr(0,s.start)+c+e.substr(s.end+1)}else u.canProcess&&(this.hasAllValuesOnLastRunValue=!1)}}return e},Object.defineProperty(e.prototype,"hasAllValuesOnLastRun",{get:function(){return!!this.hasAllValuesOnLastRunValue},enumerable:!0,configurable:!0}),e.prototype.getItems=function(e){for(var t=[],n=e.length,r=-1,i="",a=0;a<n;a++)if(i=e[a],"{"==i&&(r=a),"}"==i){if(r>-1){var s=new o;s.start=r,s.end=a,t.push(s)}r=-1}return t},e.prototype.getName=function(e){if(e)return e.trim()},e}()},function(e,t,n){"use strict";var r=n(0),o=n(4),i=n(25);n.d(t,"g",function(){return a}),n.d(t,"f",function(){return s}),n.d(t,"b",function(){return l}),n.d(t,"e",function(){return u}),n.d(t,"c",function(){return c}),n.d(t,"d",function(){return p}),n.d(t,"a",function(){return d}),n.d(t,"h",function(){return h});var a=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}(),s=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?h.binaryFunctions.arithmeticOp(t):h.binaryFunctions[t],null==i.consumer&&h.throwInvalidOperatorError(t),i}return n.i(r.b)(t,e),t.prototype.getType=function(){return"binary"},Object.defineProperty(t.prototype,"isArithmetic",{get:function(){return this.isArithmeticValue},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"isConjunction",{get:function(){return"or"==this.operatorName||"and"==this.operatorName},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"leftOperand",{get:function(){return this.left},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"rightOperand",{get:function(){return this.right},enumerable:!0,configurable:!0}),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))},t.prototype.toString=function(e){if(void 0===e&&(e=void 0),e){var t=e(this);if(t)return t}return"("+h.safeToString(this.left,e)+" "+h.operatorToString(this.operatorName)+" "+h.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}(a),l=function(e){function t(t,n){var r=e.call(this)||this;return r.expression=t,r.operatorName=n,r.consumer=h.unaryFunctions[n],null==r.consumer&&h.throwInvalidOperatorError(n),r}return n.i(r.b)(t,e),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 h.operatorToString(this.operatorName)+" "+this.expression.toString(e)},t.prototype.evaluate=function(e){var t=this.expression.evaluate(e);return this.consumer.call(this,t)},t.prototype.setVariables=function(e){this.expression.setVariables(e)},t}(a),u=function(e){function t(t){var n=e.call(this)||this;return n.values=t,n}return n.i(r.b)(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}(a),c=function(e){function t(t){var n=e.call(this)||this;return n.value=t,n}return n.i(r.b)(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:!0,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():h.isNumeric(e)?0==e.indexOf("0x")?parseInt(e):parseFloat(e):e:e},t.prototype.isBooleanValue=function(e){return e&&("true"===e.toLowerCase()||"false"===e.toLowerCase())},t}(a),p=function(e){function t(t){var n=e.call(this,t)||this;return n.variableName=t,n}return n.i(r.b)(t,e),t.prototype.getType=function(){return"variable"},t.prototype.toString=function(e){if(void 0===e&&(e=void 0),e){var t=e(this);if(t)return t}return"{"+this.variableName+"}"},Object.defineProperty(t.prototype,"variable",{get:function(){return this.variableName},enumerable:!0,configurable:!0}),t.prototype.evaluate=function(e){return e.hasValue(this.variableName)?this.getCorrectValue(e.getValue(this.variableName)):null},t.prototype.setVariables=function(e){e.push(this.variableName)},t}(c),d=function(e){function t(t,n){var r=e.call(this)||this;return r.origionalValue=t,r.parameters=n,r.isReadyValue=!1,Array.isArray(n)&&0===n.length&&(r.parameters=new u([])),r}return n.i(r.b)(t,e),t.prototype.getType=function(){return"function"},t.prototype.evaluateAsync=function(e){var t=this;this.isReadyValue=!1,e.properties||(e.properties={}),e.properties.returnResult=function(e){t.asynResult=e,t.isReadyValue=!0,t.onAsyncReady()},this.evaluateCore(e)},t.prototype.evaluate=function(e){return this.isReady?this.asynResult:this.evaluateCore(e)},t.prototype.evaluateCore=function(e){return i.a.Instance.run(this.origionalValue,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.origionalValue+"("+this.parameters.toString(e)+")"},t.prototype.setVariables=function(e){this.parameters.setVariables(e)},Object.defineProperty(t.prototype,"isReady",{get:function(){return this.isReadyValue},enumerable:!0,configurable:!0}),t.prototype.hasFunction=function(){return!0},t.prototype.hasAsyncFunction=function(){return i.a.Instance.isAsyncFunction(this.origionalValue)},t.prototype.addToAsyncList=function(e){this.hasAsyncFunction()&&e.push(this)},t}(a),h=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.a.isNumber(t))},e.isBooleanValue=function(e){return!!e&&("true"===e.toLowerCase()||"false"===e.toLowerCase())},e.operatorToString=function(t){var n=e.signs[t];return null==n?t:n},e.unaryFunctions={empty:function(e){return o.a.isValueEmpty(e)},notempty:function(t){return!e.unaryFunctions.empty(t)},negate:function(e){return!e}},e.binaryFunctions={arithmeticOp:function(t){return function(n,r){o.a.isValueEmpty(n)&&!e.isSpaceString(n)&&(n=0),o.a.isValueEmpty(r)&&!e.isSpaceString(r)&&(r=0);var i=e.binaryFunctions[t];return null==i?null:i.call(this,n,r)}},and:function(e,t){return e&&t},or:function(e,t){return e||t},plus:function(e,t){return e+t},minus:function(e,t){return e-t},mul:function(e,t){return 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(e,t){return null!=e&&null!=t&&e>t},less:function(e,t){return null!=e&&null!=t&&e<t},greaterorequal:function(e,t){return null!=e&&null!=t&&e>=t},lessorequal:function(e,t){return null!=e&&null!=t&&e<=t},equal:function(e,t){return o.a.isTwoValueEquals(e,t,!0)},notequal:function(e,t){return!o.a.isTwoValueEquals(e,t,!0)},contains:function(t,n){return e.binaryFunctions.containsCore(t,n,!0)},notcontains:function(t,n){return!t&&!o.a.isValueEmpty(n)||e.binaryFunctions.containsCore(t,n,!1)},anyof:function(t,n){if(!t&&o.a.isValueEmpty(n))return!0;if(!t||!Array.isArray(t)&&0===t.length)return!1;if(o.a.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.a.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(e,t,n){if(!e)return!1;if(e.length||(e=e.toString()),"string"==typeof e||e instanceof String){if(!t)return!1;t=t.toString();var r=e.indexOf(t)>-1;return n?r:!r}for(var i=Array.isArray(t)?t:[t],a=0;a<i.length;a++){var s=0;for(t=i[a];s<e.length&&!o.a.isTwoValueEquals(e[s],t);s++);if(s==e.length)return!n}return n}},e.signs={less:"<",lessorequal:"<=",greater:">",greaterorequal:">=",equal:"==",notequal:"!=",plus:"+",minus:"-",mul:"*",div:"/",and:"and",or:"or",power:"^",mod:"%",negate:"!"},e}()},function(e,t,n){"use strict";function r(e,t){if(e)if(Array.isArray(e))for(var n=0;n<e.length;n++)r(e[n],t);else t.push(e)}function o(e){var t=[];r(e,t);for(var n=0,o=0;o<t.length;o++)n+=t[o];return n}function i(e){var t=[];return r(e,t),t.length}function a(e){var t=[];r(e,t);for(var n=0,o=0;o<t.length;o++)n+=t[o];return t.length>0?n/t.length:0}function s(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}function l(e,t){var n=s(e);if(n){var r=void 0;if(Array.isArray(n.data))for(var o=0;o<n.data.length;o++){var i=n.data[o];i&&i[n.name]&&(r=t(r,i[n.name]))}else for(var a in n.data){var i=n.data[a];i&&i[n.name]&&(r=t(r,i[n.name]))}return r}}function u(e){var t=l(e,function(e,t){return void 0==e&&(e=0),+e+ +t});return void 0!==t?t:0}function c(e){return l(e,function(e,t){return void 0==e?t:e<t?e:t})}function p(e){return l(e,function(e,t){return void 0==e?t:e>t?e:t})}function d(e){var t=l(e,function(e,t){return void 0==e&&(e=0),e+1});return void 0!==t?t:0}function h(e){var t=d(e);return 0==t?0:u(e)/t}function f(e){return e||3===e.length?e[0]?e[1]:e[2]:""}function m(e){return!e&&e.length<1?null:e[0]?new Date(e[0]):null}function g(e){if(!e&&e.length<1)return null;if(!e[0])return null;var t=new Date(e[0]),n=Date.now()-t.getTime(),r=new Date(n);return Math.abs(r.getUTCFullYear()-1970)}function y(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)return!1;for(var r=n.questions,o=0;o<r.length;o++)if(r[o].hasErrors(!1))return!1;return!0}function v(){return this.survey&&this.survey.isDisplayMode}function b(){return new Date}n.d(t,"a",function(){return x});var x=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}();x.Instance.register("sum",o),x.Instance.register("count",i),x.Instance.register("avg",a),x.Instance.register("sumInArray",u),x.Instance.register("minInArray",c),x.Instance.register("maxInArray",p),x.Instance.register("countInArray",d),x.Instance.register("avgInArray",h),x.Instance.register("iif",f),x.Instance.register("getDate",m),x.Instance.register("age",g),x.Instance.register("isContainerReady",y),x.Instance.register("isDisplayMode",v),x.Instance.register("currentDate",b)},function(e,t,n){"use strict";var r=n(0),o=n(6),i=(n.n(o),n(27)),a=n(20),s=n(1),l=n(5),u=n(3),c=n(16);n.d(t,"b",function(){return h}),n.d(t,"a",function(){return f});var p=function(e){function t(t){var n=e.call(this,t)||this;n.panel=t,new c.a(n);var r=n;return n.koGetType=function(e){return r.getElementType(e)},n.koElementAfterRender=function(e,t){return r.elementAfterRender(e,t)},n}return n.i(r.b)(t,e),t.prototype.getElementType=function(e){return e.isPanel?"survey-panel":"survey-question"},t.prototype.koAfterRender=function(e,t){for(var n=0;n<e.length;n++){var r=e[n];"#text"==r.nodeName&&(r.data="")}},t.prototype.elementAfterRender=function(e,t){if(this.panel&&this.panel.survey){var n=l.b.GetFirstNonTextElement(e);if(n){t.isPanel?this.panel.survey.afterRenderPanel(t,n):this.panel.survey.afterRenderQuestion(t,n)}}},t}(a.a),d=function(e){function t(t){var n=e.call(this,t)||this;return n.panel=t,n}return n.i(r.b)(t,e),t}(c.a),h=function(e){function t(t){void 0===t&&(t="");var n=e.call(this,t)||this;new d(n),n.onCreating();var r=n;return n.koElementType=o.observable("survey-panel"),n.koCss=o.pureComputed(function(){return r.cssClasses}),n.koIsCollapsed=o.observable(n.isCollapsed),n.koIsExpanded=o.observable(n.isExpanded),n.stateChangedCallback=function(){r.onStateChanged()},n.doExpand=function(){r.changeExpanded()},n.koErrorClass=o.pureComputed(function(){var e=r.cssClasses.error.root;return e||"panel-error-root"}),n}return n.i(r.b)(t,e),t.prototype.createRow=function(){return new p(this)},t.prototype.onCreating=function(){},t.prototype.onNumChanged=function(e){this.locTitle.onChanged()},t.prototype.onStateChanged=function(){this.koIsCollapsed(this.isCollapsed),this.koIsExpanded(this.isExpanded)},t.prototype.changeExpanded=function(){(this.isCollapsed||this.isExpanded)&&(this.isCollapsed?this.expand():this.collapse())},t.prototype.getTitleStyle=function(){var e=this.cssClasses.panel.title;return(this.koIsCollapsed()||this.koIsExpanded())&&(e+=" "+this.cssClasses.panel.titleExpandable),e},t.prototype.endLoadingFromJson=function(){e.prototype.endLoadingFromJson.call(this),this.onStateChanged()},t}(a.b),f=function(e){function t(t){void 0===t&&(t="");var n=e.call(this,t)||this;return new c.a(n),n.onCreating(),n}return n.i(r.b)(t,e),t.prototype.createRow=function(){return new p(this)},t.prototype.createNewPanel=function(e){return new h(e)},t.prototype.onCreating=function(){},t.prototype.onNumChanged=function(e){this.locTitle.onChanged()},t}(i.a);s.a.overrideClassCreator("panel",function(){return new h}),s.a.overrideClassCreator("page",function(){return new f}),u.a.Instance.registerElement("panel",function(e){return new h(e)})},function(e,t,n){"use strict";var r=n(0),o=n(1),i=n(4),a=n(5),s=n(20);n.d(t,"a",function(){return l});var l=function(e){function t(t){void 0===t&&(t="");var n=e.call(this,t)||this;n.name=t,n.hasShownValue=!1,n.isRandomizing=!1,n.timeSpent=0;var r=n;return n.locTitle.onGetTextCallback=function(e){return r.num>0?r.num+". "+e:e},n}return n.i(r.b)(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:!0,configurable:!0}),t.prototype.delete=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:!0,configurable:!0}),Object.defineProperty(t.prototype,"isStarted",{get:function(){return this.survey&&this.survey.isPageStarted(this)},enumerable:!0,configurable:!0}),t.prototype.getIsPageVisible=function(t){return!this.isStarted&&e.prototype.getIsPageVisible.call(this,t)},Object.defineProperty(t.prototype,"num",{get:function(){return this.getPropertyValue("num",-1)},set:function(e){this.num!=e&&(this.setPropertyValue("num",e),this.onNumChanged(e))},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"navigationButtonsVisibility",{get:function(){return this.getPropertyValue("navigationButtonsVisibility")},set:function(e){this.setPropertyValue("navigationButtonsVisibility",e.toLowerCase())},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"wasShown",{get:function(){return this.hasShownValue},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"hasShown",{get:function(){return this.wasShown},enumerable:!0,configurable:!0}),t.prototype.setWasShown=function(e){e!=this.hasShownValue&&(this.hasShownValue=e,this.isDesignMode||1==e&&this.areQuestionsRandomized&&this.randomizeElements())},t.prototype.randomizeElements=function(){if(!this.isRandomizing){this.isRandomizing=!0;for(var e=[],t=this.elements,n=0;n<t.length;n++)e.push(t[n]);var r=i.a.randomizeArray(e);this.elements.splice(0,this.elements.length);for(var n=0;n<r.length;n++)this.elements.push(r[n]);this.isRandomizing=!1}},Object.defineProperty(t.prototype,"areQuestionsRandomized",{get:function(){return"random"==("default"==this.questionsOrder&&this.survey?this.survey.questionsOrder:this.questionsOrder)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"questionsOrder",{get:function(){return this.getPropertyValue("questionsOrder")},set:function(e){this.setPropertyValue("questionsOrder",e)},enumerable:!0,configurable:!0}),t.prototype.scrollToTop=function(){a.b.ScrollElementToTop(this.id)},t.prototype.getPanels=function(e,t){void 0===e&&(e=!1),void 0===t&&(t=!1);var n=new Array;return this.addPanelsIntoList(n,e,t),n},Object.defineProperty(t.prototype,"maxTimeToFinish",{get:function(){return this.getPropertyValue("maxTimeToFinish",0)},set:function(e){this.setPropertyValue("maxTimeToFinish",e)},enumerable:!0,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.dragDropStart=function(e,t,n){void 0===n&&(n=-1),this.dragDropInfo=new s.c(e,t,n)},t.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.dragDropFindRow(this.dragDropInfo.target);this.updateRowsRemoveElementFromRow(this.dragDropInfo.target,r)}return!1}return this.dragDropAddTarget(this.dragDropInfo),!0},t.prototype.correctDragDropInfo=function(e){if(e.destination){var t=e.destination.isPanel?e.destination:null;t&&(e.target.isLayoutTypeSupported(t.getChildrenLayoutType())||(e.isEdge=!0))}},t.prototype.dragDropAllowFromSurvey=function(){var e=this.dragDropInfo.destination;if(!e||!this.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,a=i.indexOf(e);a>-1&&(t=e,n=e,this.dragDropInfo.isBottom?t=a<i.length-1?i[a+1]:null:n=a>0?i[a-1]:null)}}var s={target:this.dragDropInfo.target,source:this.dragDropInfo.source,parent:r,insertAfter:n,insertBefore:t};return this.survey.dragAndDropAllow(s)},t.prototype.dragDropFinish=function(e){if(void 0===e&&(e=!1),this.dragDropInfo){var t=this.dragDropInfo.target,n=this.dragDropFindRow(t),r=this.dragDropGetElementIndex(t,n);if(this.updateRowsRemoveElementFromRow(t,n),!e&&n){var o=this.dragDropInfo.source,i=!1;o&&o.parent&&(i=n.panel==o.parent,i?(n.panel.dragDropMoveElement(o,t,r),r=-1):o.parent.removeElement(o)),r>-1&&n.panel.addElement(t,r)}return this.dragDropInfo=null,e?null:t}},t.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},t.prototype.dragDropCanDropTagert=function(){var e=this.dragDropInfo.destination;return!(e&&!e.isPage)||this.dragDropCanDropCore(this.dragDropInfo.target,e)},t.prototype.dragDropCanDropSource=function(){var e=this.dragDropInfo.source;if(!e)return!0;var t=this.dragDropInfo.destination;return!!this.dragDropCanDropCore(e,t)&&this.dragDropCanDropNotNext(e,t,this.dragDropInfo.isEdge,this.dragDropInfo.isBottom)},t.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},t.prototype.dragDropCanDropNotNext=function(e,t,n,r){if(!t||t.isPanel&&!n)return!0;if(e.parent!==t.parent)return!0;var o=e.parent,i=o.elements.indexOf(e),a=o.elements.indexOf(t);return a<i&&!r&&a--,r&&a++,i<a?a-i>1:i-a>0},t.prototype.dragDropIsSameElement=function(e,t){return e==t||e.name==t.name},t}(s.d);o.a.addClass("page",[{name:"navigationButtonsVisibility",default:"inherit",choices:["inherit","show","hide"]},{name:"questionsOrder",default:"default",choices:["default","initial","random"]},{name:"maxTimeToFinish:number",default:0,minValue:0}],function(){return new l},"panelbase")},function(e,t,n){"use strict";var r=n(5);n.d(t,"b",function(){return o}),n.d(t,"a",function(){return i});var 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){this.widgetJson.afterRender&&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)},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:!0,configurable:!0}),Object.defineProperty(e.prototype,"pdfQuestionType",{get:function(){return this.widgetJson.pdfQuestionType},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"pdfRender",{get:function(){return this.widgetJson.pdfRender},enumerable:!0,configurable:!0}),e}(),i=function(){function e(){this.widgetsValues=[],this.widgetsActivatedBy={},this.onCustomWidgetAdded=new r.a}return Object.defineProperty(e.prototype,"widgets",{get:function(){return this.widgetsValues},enumerable:!0,configurable:!0}),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);this.widgetsValues.push(r),this.widgetsActivatedBy[n]=t,r.activatedByChanged(t),this.onCustomWidgetAdded.fire(r,null)},e.prototype.getActivatedBy=function(e){var t=this.widgetsActivatedBy[e];return t||"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}()},function(e,t,n){"use strict";var r=n(0),o=n(1),i=n(3),a=n(21),s=n(2),l=n(12);n.d(t,"a",function(){return u});var u=function(e){function t(t){var n=e.call(this,t)||this;n.name=t,n.minMaxChoices=[],n.createLocalizableString("optionsCaption",n);var r=n;return n.registerFunctionOnPropertiesValueChanged(["choicesMin","choicesMax","choicesStep"],function(){r.onVisibleChoicesChanged()}),n}return n.i(r.b)(t,e),Object.defineProperty(t.prototype,"showOptionsCaption",{get:function(){return this.getPropertyValue("showOptionsCaption")},set:function(e){this.setPropertyValue("showOptionsCaption",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"optionsCaption",{get:function(){return this.getLocalizableStringText("optionsCaption",s.a.getString("optionsCaption"))},set:function(e){this.setLocalizableStringText("optionsCaption",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"locOptionsCaption",{get:function(){return this.getLocalizableString("optionsCaption")},enumerable:!0,configurable:!0}),t.prototype.getType=function(){return"dropdown"},Object.defineProperty(t.prototype,"selectedItem",{get:function(){return this.isEmpty()?null:l.a.getItemByValue(this.visibleChoices,this.value)},enumerable:!0,configurable:!0}),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){this.minMaxChoices=[];for(var r=this.choicesMin;r<=this.choicesMax;r+=this.choicesStep)this.minMaxChoices.push(new l.a(r))}return n=n.concat(this.minMaxChoices)},Object.defineProperty(t.prototype,"choicesMin",{get:function(){return this.getPropertyValue("choicesMin",0)},set:function(e){this.setPropertyValue("choicesMin",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"choicesMax",{get:function(){return this.getPropertyValue("choicesMax",0)},set:function(e){this.setPropertyValue("choicesMax",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"choicesStep",{get:function(){return this.getPropertyValue("choicesStep",1)},set:function(e){e<1&&(e=1),this.setPropertyValue("choicesStep",e)},enumerable:!0,configurable:!0}),t}(a.b);o.a.addClass("dropdown",[{name:"optionsCaption",serializationProperty:"locOptionsCaption"},{name:"showOptionsCaption:boolean",default:!0},{name:"choicesMin:number",default:0},{name:"choicesMax:number",default:0},{name:"choicesStep:number",default:1,minValue:1}],function(){return new u("")},"selectbase"),i.b.Instance.registerQuestion("dropdown",function(e){var t=new u(e);return t.choices=i.b.DefaultChoices,t})},function(e,t,n){"use strict";function r(){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"]}var o=n(0),i=n(4),a=n(9),s=n(1),l=n(3),u=n(10);n.d(t,"a",function(){return c}),t.b=r;var c=function(e){function t(t){var n=e.call(this,t)||this;n.name=t,n.createLocalizableString("format",n);var r=n;return n.registerFunctionOnPropertyValueChanged("expression",function(){r.expressionRunner&&(r.expressionRunner=new u.b(r.expression))}),n}return n.i(o.b)(t,e),t.prototype.getType=function(){return"expression"},Object.defineProperty(t.prototype,"format",{get:function(){return this.getLocalizableStringText("format","")},set:function(e){this.setLocalizableStringText("format",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"locFormat",{get:function(){return this.getLocalizableString("format")},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"expression",{get:function(){return this.getPropertyValue("expression","")},set:function(e){this.setPropertyValue("expression",e)},enumerable:!0,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.locCalculation(),this.expressionRunner||(this.expressionRunner=new u.b(this.expression)),this.expressionRunner.onRunComplete=function(e){i.a.isTwoValueEquals(e,r.value)||(r.value=e),r.unlocCalculation()},this.expressionRunner.run(t,n))},Object.defineProperty(t.prototype,"maximumFractionDigits",{get:function(){return this.getPropertyValue("maximumFractionDigits",-1)},set:function(e){e<-1||e>20||this.setPropertyValue("maximumFractionDigits",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"minimumFractionDigits",{get:function(){return this.getPropertyValue("minimumFractionDigits",-1)},set:function(e){e<-1||e>20||this.setPropertyValue("minimumFractionDigits",e)},enumerable:!0,configurable:!0}),t.prototype.getDisplayValueCore=function(e,t){var n=this.isValueEmpty(t)?this.defaultValue:t;if(this.isValueEmpty(n))return"";var r=this.getValueAsStr(n);return this.format?this.format.format(r):r},Object.defineProperty(t.prototype,"displayStyle",{get:function(){return this.getPropertyValue("displayStyle")},set:function(e){this.setPropertyValue("displayStyle",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"currency",{get:function(){return this.getPropertyValue("currency")},set:function(e){r().indexOf(e)<0||this.setPropertyValue("currency",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"useGrouping",{get:function(){return this.getPropertyValue("useGrouping",!0)},set:function(e){this.setPropertyValue("useGrouping",e)},enumerable:!0,configurable:!0}),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&&i.a.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}(a.a);s.a.addClass("expression",["expression:expression",{name:"format",serializationProperty:"locFormat"},{name:"displayStyle",default:"none",choices:["none","decimal","currency","percent","date"]},{name:"currency",choices:function(){return r()},default:"USD"},{name:"maximumFractionDigits:number",default:-1},{name:"minimumFractionDigits:number",default:-1},{name:"useGrouping:boolean",default:!0},{name:"commentText",visible:!1},{name:"enableIf",visible:!1},{name:"isRequired",visible:!1},{name:"readOnly",visible:!1},{name:"requiredErrorText",visible:!1},{name:"validators",visible:!1},{name:"defaultValue",visible:!1},{name:"correctAnswer",visible:!1},{name:"requiredIf",visible:!1}],function(){return new c("")},"question"),l.b.Instance.registerQuestion("expression",function(e){return new c(e)})},function(e,t,n){"use strict";var r=n(0),o=n(3),i=n(1),a=n(9),s=n(4),l=n(33);n.d(t,"a",function(){return u});var u=function(e){function t(t){var n=e.call(this,t)||this;return n.name=t,n.createLocalizableString("placeHolder",n),n}return n.i(r.b)(t,e),t.prototype.isTextValue=function(){return"text"==this.inputType},t.prototype.getType=function(){return"text"},Object.defineProperty(t.prototype,"inputType",{get:function(){return this.getPropertyValue("inputType")},set:function(e){e=e.toLowerCase(),"datetime_local"==e&&(e="datetime-local"),this.setPropertyValue("inputType",e.toLowerCase())},enumerable:!0,configurable:!0}),t.prototype.getValidators=function(){var t=e.prototype.getValidators.call(this);return"email"!==this.inputType||this.validators.some(function(e){return"emailvalidator"===e.getType()})||t.push(new l.b),t},t.prototype.isLayoutTypeSupported=function(e){return!0},Object.defineProperty(t.prototype,"maxLength",{get:function(){return this.getPropertyValue("maxLength")},set:function(e){this.setPropertyValue("maxLength",e)},enumerable:!0,configurable:!0}),t.prototype.getMaxLength=function(){return s.a.getMaxLength(this.maxLength,this.survey?this.survey.maxTextLength:-1)},Object.defineProperty(t.prototype,"size",{get:function(){return this.getPropertyValue("size")},set:function(e){this.setPropertyValue("size",e)},enumerable:!0,configurable:!0}),t.prototype.isEmpty=function(){return e.prototype.isEmpty.call(this)||""===this.value},t.prototype.supportGoNextPageAutomatic=function(){return!0},Object.defineProperty(t.prototype,"placeHolder",{get:function(){return this.getLocalizableStringText("placeHolder")},set:function(e){this.setLocalizableStringText("placeHolder",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"locPlaceHolder",{get:function(){return this.getLocalizableString("placeHolder")},enumerable:!0,configurable:!0}),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)?s.a.isNumber(e)?parseFloat(e):"":e},t}(a.a);i.a.addClass("text",[{name:"inputType",default:"text",choices:["color","date","datetime","datetime-local","email","month","number","password","range","tel","text","time","url","week"]},{name:"size:number",default:25},{name:"maxLength:number",default:-1},{name:"placeHolder",serializationProperty:"locPlaceHolder"}],function(){return new u("")},"question"),o.b.Instance.registerQuestion("text",function(e){return new u(e)})},function(e,t,n){"use strict";var r=n(13);n.d(t,"a",function(){return o});var o=function(){function e(){this.sheet=null,e.Enabled&&(this.sheet=e.findSheet(e.SurveyJSStylesSheetId),this.sheet||(this.sheet=e.createSheet(e.SurveyJSStylesSheetId),this.initializeStyles(this.sheet)))}return e.findSheet=function(e){for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode&&document.styleSheets[t].ownerNode.id===e)return document.styleSheets[t];return null},e.createSheet=function(e){var t=document.createElement("style");return t.id=e,t.appendChild(document.createTextNode("")),document.head.appendChild(t),t.sheet},e.applyTheme=function(t,n){void 0===t&&(t="default"),void 0===n&&(n=".sv_main");var o;if("modern"===t&&(n=".sv-root-modern "),-1!==["bootstrap","bootstrapmaterial","modern"].indexOf(t)?(o=e[t+"ThemeCss"],r.b.currentType=t):(o=e.ThemeCss,r.b.currentType="standard"),e.Enabled){var i=e.findSheet(t+n);if(!i){i=e.createSheet(t+n);var a=e.ThemeColors[t]||e.ThemeColors.default;Object.keys(o).forEach(function(e){var t=o[e];Object.keys(a).forEach(function(e){return t=t.replace(new RegExp("\\"+e,"g"),a[e])}),i.insertRule(n+e+" { "+t+" }",0)})}}},e.prototype.initializeStyles=function(t){e.Enabled&&(Object.keys(e.Styles).forEach(function(n){return t.insertRule(n+" { "+e.Styles[n]+" }",0)}),Object.keys(e.Media).forEach(function(n){t.insertRule(e.Media[n].media+" { "+n+" { "+e.Media[n].style+" } }",0)}))},e.SurveyJSStylesSheetId="surveyjs",e.Styles={".sv_main span":"word-break: break-word;",".sv_main legend":"border: none; margin: 0;",".sv_bootstrap_css .sv_qstn":"padding: 0.5em 1em 1.5em 1em;",".sv_bootstrap_css .sv_qcbc input[type=checkbox], .sv_bootstrap_css .sv_qcbc input[type=radio]":"vertical-align: middle; margin-top: -1px",".sv_bootstrap_css .sv_qstn fieldset":"display: block;",".sv_bootstrap_css .sv_qstn .sv_q_checkbox_inline, .sv_bootstrap_css .sv_qstn .sv_q_radiogroup_inline":"display: inline-block;",".sv_bootstrap_css .sv-paneldynamic__progress-container ":"position: relative; margin-right: 250px; margin-left: 40px; margin-top: 10px;",".sv_main.sv_bootstrapmaterial_css .sv_q_radiogroup_control_label":"display: inline; position: static;",".sv_main.sv_bootstrapmaterial_css .checkbox":"margin-top:10px;margin-bottom:10px;",".sv_row":"clear: both;",".sv_row .sv_qstn":"float: left",".sv_row .sv_qstn:last-child":"float: none",".sv_qstn":"display: inline-block; vertical-align: top; overflow: auto;",".progress":"width: 60%;",".progress-bar":"width: auto; margin-left: 2px; margin-right: 2px;",".sv_p_container":"display: inline-block; vertical-align: top;",".sv_qbln .checkbox-material":"margin-right: 3px;",".sv_qcbx .checkbox-material":"margin-right: 5px;",".sv_qcbx .checkbox label":"justify-content: left; display: inline-block;",".sv_qstn .radio label":"justify-content: left; display: inline-block;",".sv_qstn .sv_q_imgsel > label img":"pointer-events: none;",".sv_qstn .sv_q_imgsel.sv_q_imagepicker_inline":"display: inline-block;",".sv_qstn label.sv_q_m_label":"position: absolute; margin: 0; display: block; width: 100%;",".sv_qstn td":"position: relative;",".sv_q_mt_item_value":"float: left;",'[dir="rtl"] .sv_q_mt_item_value':"float: right;",".sv_qstn.sv_qstn_left":"margin-top: 0.75em;",".sv_qstn .title-left":"float: left; margin-right: 1em;",'[dir="rtl"] .sv_qstn .title-left':"float: right; margin-left: 1em;",".sv_qstn .content-left":"overflow: hidden",".sv_q_radiogroup_inline .sv_q_radiogroup_other":"display: inline-block;",".sv_q_checkbox_inline .sv_q_checkbox_other":"display: inline-block;",".sv_q_checkbox_inline, .sv_q_radiogroup_inline, .sv_q_imagepicker_inline":"line-height: 2.5em;",".form-inline .sv_q_checkbox_inline:not(:last-child)":"margin-right: 1em;",".form-inline .sv_q_radiogroup_inline:not(:last-child)":"margin-right: 1em;",".sv_imgsel .sv_q_imagepicker_inline:not(:last-child)":"margin-right: 1em;",".sv_qstn fieldset":"border: none; margin: 0; padding: 0;",".sv_qstn .sv_q_file_placeholder":"display:none",".sv_p_title":"padding-left: 1em; padding-bottom: 0.3em;",".sv_p_title_expandable":"cursor: pointer;",".sv_p_title .sv_panel_icon":"float: right; margin-right: 1em;",".sv_p_title .sv_panel_icon::before":"content: ''; background-repeat: no-repeat; background-position: center; padding: 0.5em; display: inline-block; background-image: url(data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiPz4NCjwhLS0gR2VuZXJhdG9yOiBBZG9iZSBJbGx1c3RyYXRvciAyMi4wLjEsIFNWRyBFeHBvcnQgUGx1Zy1JbiAuIFNWRyBWZXJzaW9uOiA2LjAwIEJ1aWxkIDApICAtLT4NCjxzdmcgdmVyc2lvbj0iMS4xIiBpZD0iTGF5ZXJfMSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayIgeD0iMHB4IiB5PSIwcHgiDQoJIHZpZXdCb3g9IjAgMCAxMCAxMCIgc3R5bGU9ImVuYWJsZS1iYWNrZ3JvdW5kOm5ldyAwIDAgMTAgMTA7IiB4bWw6c3BhY2U9InByZXNlcnZlIj4NCjxzdHlsZSB0eXBlPSJ0ZXh0L2NzcyI+DQoJLnN0MHtmaWxsOiM2RDcwNzI7fQ0KPC9zdHlsZT4NCjxwb2x5Z29uIGNsYXNzPSJzdDAiIHBvaW50cz0iMiwyIDAsNCA1LDkgMTAsNCA4LDIgNSw1ICIvPg0KPC9zdmc+DQo=);",".sv_p_title .sv_panel_icon.sv_expanded::before":"transform: rotate(180deg);",".sv_q_file > input[type=file], .sv_q_file > button":"display: inline-block;",".sv_q_file_preview":"display: inline-block; vertical-align: top; border: 1px solid lightgray; padding: 5px; margin-top: 10px;",".sv_q_file_preview > a":"display: block; overflow: hidden; vertical-align: top; white-space: nowrap; text-overflow: ellipsis;",".sv_q_file_remove_button":"line-height: normal;",".sv_q_file_remove":"display: block; cursor: pointer;",".sv_q_m_cell_text":"cursor: pointer;",".sv_q_dd_other":"margin-top: 1em;",".sv_q_dd_other input":"width: 100%;",".sv_qstn .sv-q-col-1, .sv-question .sv-q-col-1":"width: 100%; display: inline-block; padding-right: 1em; box-sizing: border-box; word-break: break-word;",".sv_qstn .sv-q-col-2, .sv-question .sv-q-col-2":"width: 50%; display: inline-block; padding-right: 1em; box-sizing: border-box; word-break: break-word;",".sv_qstn .sv-q-col-3, .sv-question .sv-q-col-3":"width: 33.33333%; display: inline-block; padding-right: 1em; box-sizing: border-box; word-break: break-word;",".sv_qstn .sv-q-col-4, .sv-question .sv-q-col-4":"width: 25%; display: inline-block; padding-right: 1em; box-sizing: border-box; word-break: break-word;",".sv_qstn .sv-q-col-5, .sv-question .sv-q-col-5":"width: 20%; display: inline-block; padding-right: 1em; box-sizing: border-box; word-break: break-word;",".sv_qstn .sv-q-column-1, .sv-question .sv-q-column-1":"width: 100%; max-width: 100%; display: inline-block; padding-right: 1em; box-sizing: border-box; word-break: break-word;",".sv_qstn .sv-q-column-2, .sv-question .sv-q-column-2":"max-width: 50%; display: inline-block; padding-right: 1em; box-sizing: border-box; word-break: break-word;",".sv_qstn .sv-q-column-3, .sv-question .sv-q-column-3":"max-width: 33.33333%; display: inline-block; padding-right: 1em; box-sizing: border-box; word-break: break-word;",".sv_qstn .sv-q-column-4, .sv-question .sv-q-column-4":"max-width: 25%; display: inline-block; padding-right: 1em; box-sizing: border-box; word-break: break-word;",".sv_qstn .sv-q-column-5, .sv-question .sv-q-column-5":"max-width: 20%; display: inline-block; padding-right: 1em; box-sizing: border-box; word-break: break-word;",".sv_qstn .sv_q_file_input":"color: transparent;",".sv_qstn .sv_q_imgsel label > div":"overflow: hidden; white-space: nowrap; text-overflow: ellipsis; padding: 4px; border: 1px solid lightgray; border-radius: 4px;",".sv_qstn .sv_q_imgsel label > div > img, .sv_qstn .sv_q_imgsel label > div > embed":"display: block;",".sv_qstn table tr td .sv_q_m_cell_label":"position: absolute; left: 0; right: 0; top: 0; bottom: 0;","f-panel":"padding: 0.5em 1em; display: inline-block; line-height: 2em;",".sv_progress_bar > span":"white-space: nowrap;",".sv_qstn .sv_q_select_column":"display: inline-block; vertical-align: top; min-width: 10%;",".sv_qstn .sv_q_select_column > *:not(.sv_technical)":"display: block;",".sv_main .sv_container .sv_body .sv_p_root .sv_qstn .sv_q_select_column textarea":"margin-left: 0; padding-left: 0; line-height: initial;",".sv_main .sv-hidden":"display: none !important;",".sv_main .sv-visuallyhidden":"position: absolute; height: 1px; width: 1px; overflow: hidden; clip: rect(1px 1px 1px 1px); clip: rect(1px, 1px, 1px, 1px);",".sv_main .sv-progress":"height: 0.19em; background-color: $header-background-color;",".sv_main .sv-progress__bar":"background-color: $main-color; height: 100%; position: relative;",".sv_main .sv-paneldynamic__progress-container":"position: relative; margin-right: 250px; margin-top: 20px;",".sv_main .sv-paneldynamic__add-btn":"float: right; margin-top: -18px;",".sv_main .sv-paneldynamic__add-btn--list-mode":" float: none; margin-top: 1em;",".sv_main .sv-paneldynamic__remove-btn ":"margin-top: 1.25em;",".sv_main .sv-paneldynamic__prev-btn, .sv_main .sv-paneldynamic__next-btn":"box-sizing: border-box; display: inline-block; cursor: pointer; width: 0.7em; top: -0.28em; position: absolute;",".sv_main .sv-paneldynamic__prev-btn":"left: -1.3em; transform: rotate(90deg);",".sv_main .sv-paneldynamic__next-btn ":"right: -1.3em; transform: rotate(270deg);",".sv_main .sv-paneldynamic__prev-btn.sv-paneldynamic__prev-btn--disabled, .sv_main .sv-paneldynamic__next-btn.sv-paneldynamic__next-btn--disabled":"cursor: auto;",".sv_main .sv-paneldynamic__progress-text":"font-weight: bold; font-size: 0.87em; margin-top: 0.69em; margin-left: 4em",".sv_main .sv-boolean__switch":"display: inline-block; box-sizing: border-box; width: 63px; height: 24px; margin-right: 17px; margin-left: 21px; padding: 2px 3px; vertical-align: middle; border-radius: 12px; cursor: pointer;",".sv_main .sv-boolean__slider":"display: inline-block; width: 20px; height: 20px; transition-duration: .4s; transition-property: margin-left; border: none; border-radius: 100%;",".sv_main sv-boolean__label":"vertical-align: middle",".sv_main .sv-boolean--indeterminate .sv-boolean__slider":"margin-left: calc(50% - 10px);",".sv_main .sv-boolean--checked .sv-boolean__slider":"margin-left: calc(100% - 20px);"},e.Media={".sv_qstn fieldset .sv-q-col-1":{style:"width: 100%;",media:"@media only screen and (max-width: 480px)"},".sv_qstn fieldset .sv-q-col-2":{style:"width: 100%;",media:"@media only screen and (max-width: 480px)"},".sv_qstn fieldset .sv-q-col-3":{style:"width: 100%;",media:"@media only screen and (max-width: 480px)"},".sv_qstn fieldset .sv-q-col-4":{style:"width: 100%;",media:"@media only screen and (max-width: 480px)"},".sv_qstn fieldset .sv-q-col-5":{style:"width: 100%;",media:"@media only screen and (max-width: 480px)"},".sv_main .sv_container .panel-body.card-block .sv_row .sv_qstn":{style:"display: block; width: 100% !important;",media:"@media (max-width: 600px)"},".sv_main .sv_container .panel-body.card-block .sv_row .sv_qstn .title-left":{style:"float: none;",media:"@media (max-width: 600px)"},".sv_main .sv_container .panel-body.card-block .sv_row .sv_qstn .sv_q_radiogroup_inline, .sv_main .sv_container .panel-body.card-block .sv_row .sv_qstn .sv_q_checkbox_inline, .sv_main .sv_container .panel-body.card-block .sv_row .sv_qstn .sv_q_imagepicker_inline":{style:"display: block;",media:"@media (max-width: 600px)"},".sv_main .sv_container .panel-body.card-block .sv_row .sv_qstn table.table":{style:"display: block;",media:"@media (max-width: 600px)"},".sv_main .sv_container .panel-body.card-block .sv_row .sv_qstn table.table thead":{style:"display: none;",media:"@media (max-width: 600px)"},".sv_main .sv_container .panel-body.card-block .sv_row .sv_qstn table.table tbody, .sv_main .sv_container .panel-body.card-block .sv_row .sv_qstn table.table tr, .sv_main .sv_container .panel-body.card-block .sv_row .sv_qstn table.table td":{style:"display: block;",media:"@media (max-width: 600px)"},".sv_main .sv_container .panel-body.card-block .sv_row .sv_qstn table.table:not(.sv_q_matrix) td:before":{style:"content: attr(headers);",media:"@media (max-width: 600px)"},".sv_main .sv_container .panel-body.card-block .sv_row .sv_qstn table.sv_q_matrix td:after":{style:"content: attr(headers); padding-left: 1em",media:"@media (max-width: 600px)"},".sv_main .sv_container .panel-body.card-block .sv_row .sv_qstn .radio label, .sv_main .sv_container .panel-body.card-block .sv_row .sv_qstn .checkbox label":{style:"line-height: 12px; vertical-align: top;",media:"@media (max-width: 600px)"},".sv_qstn label.sv_q_m_label":{style:"display: inline;",media:"@media (max-width: 600px)"},".sv_main .sv_custom_header":{style:"display: none;",media:"@media (max-width: 1300px)"},".sv_main .sv_container .sv_header h3":{style:"font-size: 1.5em;",media:"@media (max-width: 1300px)"},".sv_main .sv_container .sv_header h3 span":{style:"font-size: 0.75em;",media:"@media (max-width: 700px)"},".sv_main.sv_bootstrap_css .sv-progress__text":{style:"margin-left: 8em;",media:"@media (min-width: 768px)"}},e.ThemeColors={default:{"$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","$header-color":"#6d7072","$border-color":"#e7e7e7","$error-color":"#ed5565","$error-background-color":"#fd6575","$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"},orange:{"$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","$header-color":"#f78119","$border-color":"#e7e7e7","$error-color":"#ed5565","$error-background-color":"#fd6575","$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"},darkblue:{"$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","$header-color":"#6d7072","$border-color":"#e7e7e7","$error-color":"#ed5565","$error-background-color":"#fd6575","$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"},darkrose:{"$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","$header-color":"#6d7072","$border-color":"#e7e7e7","$error-color":"#ed5565","$error-background-color":"#fd6575","$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"},stone:{"$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","$header-color":"#0f0f33","$border-color":"#e7e7e7","$error-color":"#ed5565","$error-background-color":"#fd6575","$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"},winter:{"$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","$header-color":"#000","$border-color":"#e7e7e7","$error-color":"#ed5565","$error-background-color":"#fd6575","$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"},winterstone:{"$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","$header-color":"#fff","$border-color":"#e7e7e7","$error-color":"#ed5565","$error-background-color":"#fd6575","$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"},modern:{"$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-switch-color":"#9f9f9f","$disabled-slider-color":"#cfcfcf"},bootstrap:{"$main-color":"#18a689","$text-color":"#404040;","$progress-text-color":"#9d9d9d","$disable-color":"#dbdbdb","$header-background-color":"#e7e7e7","$disabled-label-color":"rgba(64, 64, 64, 0.5)","$slider-color":"white","$disabled-switch-color":"#9f9f9f","$disabled-slider-color":"#cfcfcf"},bootstrapmaterial:{"$main-color":"#18a689","$text-color":"#404040;","$progress-text-color":"#9d9d9d","$disable-color":"#dbdbdb","$header-background-color":"#e7e7e7","$disabled-label-color":"rgba(64, 64, 64, 0.5)","$slider-color":"white","$disabled-switch-color":"#9f9f9f","$disabled-slider-color":"#cfcfcf"}},e.ThemeCss={".sv_default_css":"background-color: $body-container-background-color;",".sv_default_css hr":"border-color: $border-color;",".sv_default_css input[type='button'], .sv_default_css button":"color: $body-background-color; background-color: $main-color;",".sv_default_css input[type='button']:hover, .sv_default_css button:hover":"background-color: $main-hover-color;",".sv_default_css .sv_header":"color: $header-color;",".sv_default_css .sv_custom_header":"background-color: $header-background-color;",".sv_default_css .sv_container":"color: $text-color;",".sv_default_css .sv_body":"background-color: $body-background-color; border-color: $main-color;",".sv_default_css .sv_progress":"background-color: $border-color;",".sv_default_css .sv_progress_bar":"background-color: $main-color;",".sv_default_css .sv_p_root > .sv_row":"border-color: $border-color;",".sv_default_css .sv_p_root > .sv_row:nth-child(odd)":"background-color: $body-background-color;",".sv_default_css .sv_p_root > .sv_row:nth-child(even)":"background-color: $body-container-background-color;",".sv_default_css .sv_q_other input":"color: $text-color; border-color: $border-color; background-color: $inputs-background-color;",".sv_default_css .sv_q_text_root":"color: $text-color; border-color: $border-color; background-color: $inputs-background-color;",".sv_default_css .sv_q_dropdown_control":"color: $text-color; border-color: $border-color; background-color: $inputs-background-color;",".sv_default_css input[type='text']":"color: $text-color; border-color: $border-color; background-color: $inputs-background-color;",".sv_default_css select":"color: $text-color; border-color: $border-color; background-color: $inputs-background-color;",".sv_default_css textarea":"color: $text-color; border-color: $border-color; background-color: $inputs-background-color;",".sv_default_css input:not([type='button']):not([type='reset']):not([type='submit']):not([type='image']):not([type='checkbox']):not([type='radio'])":"border: 1px solid $border-color; background-color: $inputs-background-color;color: $text-color;",".sv_default_css input:not([type='button']):not([type='reset']):not([type='submit']):not([type='image']):not([type='checkbox']):not([type='radio']):focus":"border: 1px solid $main-color;",".sv_default_css .sv_container .sv_body .sv_p_root .sv_q .sv_select_wrapper .sv_q_dropdown_control ":"background-color: $inputs-background-color;",".sv_default_css .sv_q_other input:focus":"border-color: $main-color;",".sv_default_css .sv_q_text_root:focus":"border-color: $main-color;",".sv_default_css .sv_q_dropdown_control:focus":"border-color: $main-color;",".sv_default_css input[type='text']:focus":"border-color: $main-color;",'.sv_default_css .sv_container .sv_body .sv_p_root .sv_q input[type="radio"]:focus, .sv_default_css .sv_container .sv_body .sv_p_root .sv_q input[type="checkbox"]:focus':"outline: 1px dotted $main-color;",".sv_default_css select:focus":"border-color: $main-color;",".sv_default_css textarea:focus":"border-color: $main-color;",".sv_default_css .sv_select_wrapper":"background-color: $body-background-color;",".sv_default_css .sv_select_wrapper::before":"background-color: $main-color;",".sv_default_css .sv_q_rating_item.active .sv_q_rating_item_text":"background-color: $main-hover-color; border-color: $main-hover-color; color: $body-background-color;",".sv_default_css .sv_q_rating_item .sv_q_rating_item_text":"border-color: $border-color;",".sv_default_css .sv_q_rating_item .sv_q_rating_item_text:hover":"border-color: $main-hover-color;",".sv_default_css table.sv_q_matrix tr":"border-color: $border-color;",".sv_default_css table.sv_q_matrix_dropdown tr":"border-color: $border-color;",".sv_default_css table.sv_q_matrix_dynamic tr":"border-color: $border-color;",".sv_default_css .sv_q_m_cell_selected":"color: $body-background-color; background-color: $main-hover-color;",".sv_main .sv_q_file_remove:hover":"color: $main-color;",".sv_main .sv_q_imgsel.checked label>div":"background-color: $main-color",".sv_default_css .sv_p_description":"padding-left: 1.29em;",".sv_main .sv-progress":"background-color: $header-background-color;",".sv_main .sv-progress__bar":"background-color: $main-color;",".sv_main .sv-paneldynamic__prev-btn.sv-paneldynamic__prev-btn--disabled, .sv_main .sv-paneldynamic__next-btn.sv-paneldynamic__next-btn--disabled":"fill: $disable-color;",".sv_main .sv-paneldynamic__progress-text":"color: $progress-text-color;",".sv_main .sv-paneldynamic__prev-btn, .sv_main .sv-paneldynamic__next-btn":"fill: $text-color",".sv_main .sv-boolean__switch":"background-color: $main-color;",".sv_main .sv-boolean__slider":"background-color: $slider-color;",".sv_main .sv-boolean__label--disabled":"color: $disabled-label-color;",".sv_main .sv-boolean--disabled .sv-boolean__switch":"background-color: $disabled-switch-color;",".sv_main .sv-boolean--disabled .sv-boolean__slider":"background-color: $disabled-slider-color;"},e.modernThemeCss={".sv-paneldynamic__add-btn":"background-color: $add-button-color;",".sv-paneldynamic__remove-btn":"background-color: $remove-button-color;",".sv-boolean__switch":"background-color: $main-color;",".sv-boolean__slider":"background-color: $slider-color;",".sv-boolean__label--disabled":"color: $disabled-label-color;",".sv-boolean--disabled .sv-boolean__switch":"background-color: $disabled-switch-color;",".sv-boolean--disabled .sv-boolean__slider":"background-color: $disabled-slider-color;"},e.bootstrapThemeCss={".sv_main .sv_q_imgsel.checked label>div":"background-color: $main-color",".sv_main .sv_p_description":"padding-left: 1.66em;",".sv_main .sv_qstn_error_bottom":"margin-top: 20px; margin-bottom: 0;",".sv_main .progress":"width: 60%;",".sv_main .progress-bar":"width: auto; margin-left: 2px; margin-right: 2px;",".sv_main .table>tbody>tr>td":"min-width: 90px;",".sv_main f-panel .sv_qstn":"padding: 0; vertical-align: middle;",".sv_main .sv-progress":"background-color: $header-background-color;",".sv_main .sv-progress__bar":"background-color: $main-color;",".sv_main .sv-paneldynamic__prev-btn.sv-paneldynamic__prev-btn--disabled, .sv_main .sv-paneldynamic__next-btn.sv-paneldynamic__next-btn--disabled":"fill: $disable-color;",".sv_main .sv-paneldynamic__progress-text":"color: $progress-text-color;",".sv_main .sv-paneldynamic__prev-btn, .sv_main .sv-paneldynamic__next-btn":"fill: $text-color",".sv_main .sv-boolean__switch":"background-color: $main-color;",".sv_main .sv-boolean__slider":"background-color: $slider-color;",".sv_main .sv-boolean__label--disabled":"color: $disabled-label-color;",".sv_main .sv-boolean--disabled .sv-boolean__switch":"background-color: $disabled-switch-color;",".sv_main .sv-boolean--disabled .sv-boolean__slider":"background-color: $disabled-slider-color;"},e.bootstrapmaterialThemeCss={".sv_main.sv_bootstrapmaterial_css .form-group.is-focused .form-control":"background-image: linear-gradient($main-color, $main-color), linear-gradient(#D2D2D2, #D2D2D2);",".sv_main.sv_bootstrapmaterial_css .form-group.is-focused label":"color:$main-color;",".sv_main.sv_bootstrapmaterial_css .sv_qstn label.sv_q_m_label":"height: 100%;",".sv_main.sv_bootstrapmaterial_css .checkbox input[type=checkbox]:checked + .checkbox-material .check":"border-color: $main-color;",".sv_main.sv_bootstrapmaterial_css label.checkbox-inline input[type=checkbox]:checked + .checkbox-material .check":"border-color: $main-color;",".sv_main.sv_bootstrapmaterial_css .checkbox input[type=checkbox]:checked + .checkbox-material .check:before":"color: $main-color;",".sv_main.sv_bootstrapmaterial_css label.checkbox-inline input[type=checkbox]:checked + .checkbox-material .check:before":"color: $main-color;",".sv_main.sv_bootstrapmaterial_css .radio input[type=radio]:checked ~ .circle":"border-color: $main-color;",".sv_main.sv_bootstrapmaterial_css label.radio-inline input[type=radio]:checked ~ .circle":"border-color: $main-color;",".sv_main.sv_bootstrapmaterial_css .radio input[type=radio]:checked ~ .check":"background-color: $main-color;",".sv_main.sv_bootstrapmaterial_css label.radio-inline input[type=radio]:checked ~ .check":"background-color: $main-color;",".sv_main.sv_bootstrapmaterial_css .btn-default.active":"background-color: $main-color; color: $body-background-color;",".sv_main.sv_bootstrapmaterial_css .btn-default:active":"background-color: $main-color; color: $body-background-color;",".sv_main.sv_bootstrapmaterial_css .btn-secondary.active":"background-color: $main-color; color: $body-background-color;",".sv_main.sv_bootstrapmaterial_css .btn-secondary:active":"background-color: $main-color; color: $body-background-color;",".sv_main.sv_bootstrapmaterial_css .open>.dropdown-toggle.btn-default":"background-color: $main-color; color: $body-background-color;",".sv_main.sv_bootstrapmaterial_css input[type='button'].btn-primary, .sv_main.sv_bootstrapmaterial_css button.btn-primary":"color: $body-background-color; background-color: $main-color;",".sv_main.sv_bootstrapmaterial_css input[type='button'].btn-primary:hover, .sv_main.sv_bootstrapmaterial_css button.btn-primary:hover":"background-color: $main-hover-color;",".sv_main .sv_q_imgsel.checked label>div":"background-color: $main-color;",".sv_main.sv_bootstrapmaterial_css .sv_q_file_remove:hover":"color: $main-color;",".sv_main.sv_bootstrapmaterial_css .form-group input[type=file]":"position: relative; opacity: 1;",".sv_main.sv_bootstrapmaterial_css .progress":"width: 60%;",".sv_main.sv_bootstrapmaterial_css .progress-bar":"width: auto; margin-left: 2px; margin-right: 2px;",".sv_main .sv-progress":"background-color: $header-background-color;",".sv_main .sv-progress__bar":"background-color: $main-color;",".sv_main .sv-paneldynamic__prev-btn.sv-paneldynamic__prev-btn--disabled, .sv_main .sv-paneldynamic__next-btn.sv-paneldynamic__next-btn--disabled":"fill: $disable-color;",".sv_main .sv-paneldynamic__progress-text":"color: $progress-text-color;",".sv_main .sv-paneldynamic__prev-btn, .sv_main .sv-paneldynamic__next-btn":"fill: $text-color",".sv_main .sv-boolean__switch":"background-color: $main-color;",".sv_main .sv-boolean__slider":"background-color: $slider-color;",".sv_main .sv-boolean__label--disabled":"color: $disabled-label-color;",".sv_main .sv-boolean--disabled .sv-boolean__switch":"background-color: $disabled-switch-color;",".sv_main .sv-boolean--disabled .sv-boolean__slider":"background-color: $disabled-slider-color;"},e.Enabled=!0,e}()},function(e,t,n){"use strict";var r=n(0),o=n(5),i=n(11),a=n(2),s=n(1),l=n(10),u=n(4);n.d(t,"h",function(){return c}),n.d(t,"f",function(){return p}),n.d(t,"a",function(){return d}),n.d(t,"d",function(){return h}),n.d(t,"g",function(){return f}),n.d(t,"c",function(){return m}),n.d(t,"e",function(){return g}),n.d(t,"b",function(){return y}),n.d(t,"i",function(){return v});var c=function(){function e(e,t){void 0===t&&(t=null),this.value=e,this.error=t}return e}(),p=function(e){function t(){var t=e.call(this)||this;return t.createLocalizableString("text",t,!0),t}return n.i(r.b)(t,e),Object.defineProperty(t.prototype,"text",{get:function(){return this.getLocalizableStringText("text")},set:function(e){this.setLocalizableStringText("text",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"isValidateAllValues",{get:function(){return!1},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"locText",{get:function(){return this.getLocalizableString("text")},enumerable:!0,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:!0,configurable:!0}),Object.defineProperty(t.prototype,"isAsync",{get:function(){return!1},enumerable:!0,configurable:!0}),t.prototype.getLocale=function(){return this.errorOwner?this.errorOwner.getLocale():""},t.prototype.getMarkdownHtml=function(e){return this.errorOwner?this.errorOwner.getMarkdownHtml(e):null},t.prototype.getProcessedText=function(e){return this.errorOwner?this.errorOwner.getProcessedText(e):e},t.prototype.createCustomError=function(e){return new i.b(this.getErrorText(e),this.errorOwner)},t.prototype.toString=function(){var e=this.getType().replace("validator","");return this.text&&(e+=", "+this.text),e},t}(o.c),d=function(){function e(){}return e.prototype.run=function(e){var t=this,n=[],r=null,o=null;this.prepareAsyncValidators();for(var i=[],a=e.getValidators(),s=0;s<a.length;s++){var l=a[s];!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)}})}a=e.getValidators();for(var s=0;s<a.length;s++){var l=a[s],u=l.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 n.i(r.b)(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),u.a.isValueEmpty(e))return null;if(!u.a.isNumber(e))return new c(null,new i.e(null,this.errorOwner));var o=new c(parseFloat(e));return null!==this.minValue&&this.minValue>o.value?(o.error=this.createCustomError(t),o):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||a.a.getString("value");return null!==this.minValue&&null!==this.maxValue?a.a.getString("numericMinMax").format(t,this.minValue,this.maxValue):null!==this.minValue?a.a.getString("numericMin").format(t,this.minValue):a.a.getString("numericMax").format(t,this.maxValue)},t}(p),f=function(e){function t(t,n,r){void 0===t&&(t=0),void 0===n&&(n=0),void 0===r&&(r=!0);var o=e.call(this)||this;return o.minLength=t,o.maxLength=n,o.allowDigits=r,o}return n.i(r.b)(t,e),t.prototype.getType=function(){return"textvalidator"},t.prototype.validate=function(e,t,n,r){if(void 0===t&&(t=null),void 0===n&&(n=null),void 0===r&&(r=null),""!==e&&u.a.isValueEmpty(e))return null;if(!this.allowDigits){if(!/^[A-Za-z\s]*$/.test(e))return new c(null,this.createCustomError(t))}return this.minLength>0&&e.length<this.minLength?new c(null,this.createCustomError(t)):this.maxLength>0&&e.length>this.maxLength?new c(null,this.createCustomError(t)):null},t.prototype.getDefaultErrorText=function(e){return this.minLength>0&&this.maxLength>0?a.a.getString("textMinMaxLength").format(this.minLength,this.maxLength):this.minLength>0?a.a.getString("textMinLength").format(this.minLength):a.a.getString("textMaxLength").format(this.maxLength)},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 n.i(r.b)(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 this.minCount&&o<this.minCount?new c(null,this.createCustomError(a.a.getString("minSelectError").format(this.minCount))):this.maxCount&&o>this.maxCount?new c(null,this.createCustomError(a.a.getString("maxSelectError").format(this.maxCount))):null},t.prototype.getDefaultErrorText=function(e){return e},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 n.i(r.b)(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||u.a.isValueEmpty(e))return null;var o=new RegExp(this.regex);if(Array.isArray(e))for(var i=0;i<e.length;i++){var a=this.hasError(o,e[i],t);if(a)return a}return this.hasError(o,e,t)},t.prototype.hasError=function(e,t,n){return e.test(t)?null:new c(t,this.createCustomError(n))},t}(p),y=function(e){function t(){var t=e.call(this)||this;return t.re=/^(([^<>()\[\]\.,;:\s@\"]+(\.[^<>()\[\]\.,;:\s@\"]+)*)|(\".+\"))@(([^<>()=[\]\.,;:\s@\"]+\.)+[^<>()=[\]\.,;:\s@\"]{2,})$/i,t}return n.i(r.b)(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 a.a.getString("invalidEmail")},t}(p),v=function(e){function t(t){void 0===t&&(t=null);var n=e.call(this)||this;return n.expression=t,n.conditionRunner=null,n.isRunningValue=!1,n}return n.i(r.b)(t,e),t.prototype.getType=function(){return"expressionvalidator"},Object.defineProperty(t.prototype,"isValidateAllValues",{get:function(){return!0},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"isAsync",{get:function(){return!!this.ensureConditionRunner()&&this.conditionRunner.isAsync},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"isRunning",{get:function(){return this.isRunningValue},enumerable:!0,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(t){o.isRunningValue=!1,o.onAsyncCompleted&&o.onAsyncCompleted(o.generateError(t,e))},this.isRunningValue=!0;var i=this.conditionRunner.run(n,r);return this.conditionRunner.isAsync?null:(this.isRunningValue=!1,this.generateError(i,e))},t.prototype.generateError=function(e,t){return e?null:new c(t,this.createCustomError(name))},t.prototype.getDefaultErrorText=function(e){return a.a.getString("invalidExpression").format(this.expression)},t.prototype.ensureConditionRunner=function(){return this.conditionRunner?(this.conditionRunner.expression=this.expression,!0):!!this.expression&&(this.conditionRunner=new l.a(this.expression),!0)},t}(p);s.a.addClass("surveyvalidator",[{name:"text",serializationProperty:"locText"}]),s.a.addClass("numericvalidator",["minValue:number","maxValue:number"],function(){return new h},"surveyvalidator"),s.a.addClass("textvalidator",["minLength:number","maxLength:number","allowDigits:boolean"],function(){return new f},"surveyvalidator"),s.a.addClass("answercountvalidator",["minCount:number","maxCount:number"],function(){return new m},"surveyvalidator"),s.a.addClass("regexvalidator",["regex"],function(){return new g},"surveyvalidator"),s.a.addClass("emailvalidator",[],function(){return new y},"surveyvalidator"),s.a.addClass("expressionvalidator",["expression:condition"],function(){return new v},"surveyvalidator")},function(e,t,n){"use strict";var r=n(13);n.d(t,"a",function(){return o});var o={root:"sv_main sv_bootstrap_css",container:"sv_container",header:"panel-heading card-header",body:"panel-body card-block mt-4",bodyEmpty:"panel-body card-block mt-4 sv_body_empty",footer:"panel-footer card-footer",navigationButton:"",completedPage:"",navigation:{complete:"btn sv_complete_btn",prev:"btn sv_prev_btn",next:"btn sv_next_btn",start:"btn sv_start_btn"},progress:"progress center-block mx-auto mb-4",progressBar:"progress-bar",progressTextUnderBar:"sv-hidden",page:{root:"",title:"",description:""},pageTitle:"",pageDescription:"small",row:"sv_row",question:{mainRoot:"sv_qstn",flowRoot:"sv_q_flow sv_qstn",header:"",headerLeft:"title-left",content:"",contentLeft:"content-left",titleLeftRoot:"sv_qstn_left",title:"",number:"sv_q_num",description:"small",descriptionUnderInput:"small",requiredText:"sv_q_required_text",comment:"form-control",required:"",titleRequired:"",hasError:"has-error",indent:20,formGroup:"form-group"},panel:{title:"sv_p_title",titleExpandable:"sv_p_title_expandable",icon:"sv_panel_icon",iconExpanded:"sv_expanded",description:"small sv_p_description",container:"sv_p_container"},error:{root:"alert alert-danger",icon:"glyphicon glyphicon-exclamation-sign",item:"",locationTop:"sv_qstn_error_top",locationBottom:"sv_qstn_error_bottom"},boolean:{root:"sv_qbln form-inline checkbox",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"},checkbox:{root:"sv_qcbc sv_qcbx form-inline",item:"checkbox",itemChecked:"checked",itemInline:"sv_q_checkbox_inline",itemControl:"",itemDecorator:"sv-hidden",label:"",labelChecked:"",controlLabel:"",materialDecorator:"checkbox-material",other:"sv_q_checkbox_other form-control",column:"sv_q_select_column"},comment:"form-control",dropdown:{root:"",control:"form-control",other:"sv_q_dd_other form-control"},html:{root:""},matrix:{root:"table sv_q_matrix",label:"sv_q_m_label",itemChecked:"checked",itemDecorator:"sv-hidden",cellText:"sv_q_m_cell_text",cellTextSelected:"sv_q_m_cell_selected bg-primary",cellLabel:"sv_q_m_cell_label"},matrixdropdown:{root:"table"},matrixdynamic:{root:"table",button:"button",buttonAdd:"",buttonRemove:"",iconAdd:"",iconRemove:""},paneldynamic:{root:"",navigation:"sv-paneldynamic__navigation",progressTop:"sv-paneldynamic__progress sv-paneldynamic__progress--top",progressBottom:"sv-paneldynamic__progress sv-paneldynamic__progress--bottom",title:"sv-title sv-question__title",button:"button",buttonAdd:"button sv-paneldynamic__add-btn",buttonRemove:"button sv-paneldynamic__remove-btn",buttonPrev:"sv-paneldynamic__prev-btn",buttonNext:"sv-paneldynamic__next-btn",progressContainer:"sv-paneldynamic__progress-container",progress:"sv-progress",progressBar:"sv-progress__bar",progressText:"sv-paneldynamic__progress-text"},multipletext:{root:"table",itemTitle:"",itemValue:"sv_q_mt_item_value form-control"},radiogroup:{root:"sv_qcbc form-inline",item:"radio",itemChecked:"checked",itemInline:"sv_q_radiogroup_inline",label:"",labelChecked:"",itemControl:"",itemDecorator:"sv-hidden",controlLabel:"",materialDecorator:"circle",other:"sv_q_radiogroup_other form-control",clearButton:"sv_q_radiogroup_clear button",column:"sv_q_select_column"},imagepicker:{root:"sv_imgsel",item:"sv_q_imgsel",itemChecked:"checked",itemInline:"sv_q_imagepicker_inline",label:"sv_q_imgsel_label",itemControl:"sv_q_imgsel_control_item",image:"sv_q_imgsel_image",itemText:"sv_q_imgsel_text",clearButton:"sv_q_radiogroup_clear"},rating:{root:"btn-group",item:"btn btn-default btn-secondary",selected:"active",minText:"sv_q_rating_min_text",itemText:"sv_q_rating_item_text",maxText:"sv_q_rating_max_text",disabled:""},text:"form-control",expression:"form-control",file:{root:"sv_q_file",placeholderInput:"sv_q_file_placeholder",preview:"sv_q_file_preview",removeButton:"sv_q_file_remove_button",fileInput:"sv_q_file_input",removeFile:"sv_q_file_remove",removeFileSvg:"sv-hidden",fileDecorator:"sv-hidden",fileSignBottom:"sv-hidden",removeButtonBottom:"sv-hidden"},saveData:{root:"",saving:"alert alert-info",error:"alert alert-danger",success:"alert alert-success",saveAgainButton:""},window:{root:"modal-content",body:"modal-body",header:{root:"modal-header panel-title",title:"pull-left",button:"glyphicon pull-right",buttonExpanded:"glyphicon pull-right glyphicon-chevron-up",buttonCollapsed:"glyphicon pull-right glyphicon-chevron-down"}}};r.b.bootstrap=o},function(e,t,n){"use strict";var r=n(13);n.d(t,"a",function(){return o});var o={root:"sv_main sv_bootstrapmaterial_css",container:"sv_container",header:"panel-heading",body:"panel-body",bodyEmpty:"panel-body sv_body_empty",footer:"panel-footer",navigationButton:"",completedPage:"",navigation:{complete:"btn sv_complete_btn btn-primary",prev:"btn sv_prev_btn btn-primary",next:"btn sv_next_btn btn-primary",start:"btn sv_start_btn btn-primary"},progress:"progress center-block mx-auto mb-4",progressBar:"progress-bar",progressTextUnderBar:"sv-hidden",page:{root:"",title:"",description:""},pageTitle:"",pageDescription:"small",row:"sv_row",question:{mainRoot:"sv_qstn form-group",flowRoot:"sv_q_flow form-group",header:"",headerLeft:"title-left",content:"",contentLeft:"content-left",titleLeftRoot:"sv_qstn_left",requiredText:"sv_q_required_text",title:"",number:"sv_q_num",description:"small",descriptionUnderInput:"small",comment:"form-control",required:"",titleRequired:"",hasError:"has-error",indent:20,formGroup:"form-group"},panel:{title:"sv_p_title",titleExpandable:"sv_p_title_expandable",icon:"sv_panel_icon",iconExpanded:"sv_expanded",description:"small sv_p_description",container:"sv_p_container"},error:{root:"alert alert-danger",icon:"glyphicon glyphicon-exclamation-sign",item:"",locationTop:"sv_qstn_error_top",locationBottom:"sv_qstn_error_bottom"},boolean:{root:"sv_qbln form-inline checkbox",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"},checkbox:{root:"sv_qcbx form-inline",item:"checkbox",itemChecked:"checked",itemInline:"sv_q_checkbox_inline",itemDecorator:"sv-hidden",itemControl:"",label:"",labelChecked:"",controlLabel:"",materialDecorator:"checkbox-material",other:"sv_q_checkbox_other form-control",column:"sv_q_select_column"},comment:"form-control",dropdown:{root:"",control:"form-control",other:"sv_q_dd_other form-control"},html:{root:""},matrix:{root:"table sv_q_matrix",row:"form-group",label:"sv_q_m_label radio-inline",cellText:"sv_q_m_cell_text",cellTextSelected:"sv_q_m_cell_selected bg-primary",cellLabel:"sv_q_m_cell_label",itemValue:"form-control",itemChecked:"checked",itemDecorator:"sv-hidden"},matrixdropdown:{root:"table",itemValue:"form-group"},matrixdynamic:{root:"table",button:"btn btn-primary",itemValue:"form-group",buttonAdd:"",buttonRemove:"",iconAdd:"",iconRemove:""},paneldynamic:{root:"",navigation:"sv-paneldynamic__navigation",progressTop:"sv-paneldynamic__progress sv-paneldynamic__progress--top",progressBottom:"sv-paneldynamic__progress sv-paneldynamic__progress--bottom",title:"sv-title sv-question__title",button:"button",buttonAdd:"button sv-paneldynamic__add-btn",buttonRemove:"button sv-paneldynamic__remove-btn",buttonPrev:"sv-paneldynamic__prev-btn",buttonNext:"sv-paneldynamic__next-btn",progressContainer:"sv-paneldynamic__progress-container",progress:"sv-progress",progressBar:"sv-progress__bar",progressText:"sv-paneldynamic__progress-text"},multipletext:{root:"table",itemTitle:"",row:"form-group",itemValue:"sv_q_mt_item_value form-control"},radiogroup:{root:"",item:"radio",itemChecked:"checked",itemInline:"sv_q_radiogroup_inline",itemDecorator:"sv-hidden",label:"",labelChecked:"",itemControl:"",controlLabel:"sv_q_radiogroup_control_label",materialDecorator:"circle",other:"sv_q_radiogroup_other form-control",clearButton:"sv_q_radiogroup_clear button btn btn-primary",column:"sv_q_select_column"},imagepicker:{root:"sv_imgsel",item:"sv_q_imgsel",itemChecked:"checked",itemInline:"sv_q_imagepicker_inline",label:"sv_q_imgsel_label",itemControl:"sv_q_imgsel_control_item",image:"sv_q_imgsel_image",itemText:"sv_q_imgsel_text",clearButton:"sv_q_radiogroup_clear"},rating:{root:"btn-group",item:"btn btn-default btn-secondary",selected:"active",minText:"sv_q_rating_min_text",itemText:"sv_q_rating_item_text",maxText:"sv_q_rating_max_text",disabled:""},text:"form-control",expression:"form-control",file:{root:"form-group is-fileinput sv_q_file",placeholderInput:"",preview:"sv_q_file_preview",removeButton:"sv_q_file_remove_button",fileInput:"sv_q_file_input",removeFile:"sv_q_file_remove",removeFileSvg:"sv-hidden",fileDecorator:"sv-hidden",fileSignBottom:"sv-hidden",removeButtonBottom:"sv-hidden"},saveData:{root:"",saving:"alert alert-info",error:"alert alert-danger",success:"alert alert-success",saveAgainButton:""},window:{root:"modal-content",body:"modal-body",header:{root:"modal-header panel-title",title:"pull-left",button:"glyphicon pull-right",buttonExpanded:"glyphicon pull-right glyphicon-chevron-up",buttonCollapsed:"glyphicon pull-right glyphicon-chevron-down"}}};r.b.bootstrapmaterial=o},function(e,t,n){"use strict";var r=n(13);n.d(t,"a",function(){return o});var o={root:"sv-root-modern",container:"sv-container-modern",header:"sv-title sv-container-modern__title",body:"sv-body",bodyEmpty:"sv-body sv-body--empty",footer:"sv-footer sv-body__footer sv-clearfix",navigationButton:"",completedPage:"sv-completedpage",navigation:{complete:"sv-btn sv-footer__complete-btn",prev:"sv-btn sv-footer__prev-btn",next:"sv-btn sv-footer__next-btn",start:"sv-btn sv-footer__start-btn"},panel:{title:"sv-title sv-panel__title",titleExpandable:"sv-panel__title--expandable",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"},paneldynamic:{root:"sv-paneldynamic",navigation:"sv-paneldynamic__navigation",title:"sv-title sv-question__title",button:"sv-btn",buttonRemove:"sv-paneldynamic__remove-btn",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",progressContainer:"sv-paneldynamic__progress-container",progress:"sv-progress",progressBar:"sv-progress__bar",progressText:"sv-paneldynamic__progress-text",separator:"sv-paneldynamic__separator"},progress:"sv-progress sv-body__progress",progressBar:"sv-progress__bar",progressText:"sv-progress__text",progressTextInBar:"sv-hidden",page:{root:"sv-page sv-body__page",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:"",titleOnAnswer:"sv-question__title--answer",titleOnError:"sv-question__title--error",title:"sv-title sv-question__title",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:""},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",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",controlLabel:"sv-item__control-label",materialDecorator:"sv-item__decorator sv-checkbox__decorator",other:"sv-comment sv-question__other",column:"sv-selectbase__column"},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",controlLabel:"sv-item__control-label",materialDecorator:"sv-item__decorator sv-radio__decorator",other:"sv-comment sv-question__other",clearButton:"sv-btn sv-selectbase__clear-btn",column:"sv-selectbase__column"},boolean:{root:"",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"},text:{root:"sv-text",small:"sv-row__question--small",onError:"sv-text--error"},multipletext:{root:"sv-multipletext",item:"sv-multipletext__item",itemTitle:"sv-multipletext__item-title",row:"sv-multipletext__row",cell:"sv-multipletext__cell"},dropdown:{root:"",small:"sv-row__question--small",control:"sv-dropdown",selectWrapper:"",other:"sv-comment sv-question__other",onError:"sv-dropdown--error"},imagepicker:{root:"sv-imagepicker",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",image:"sv-imagepicker__image",itemText:"sv-imagepicker__text",clearButton:"sv-btn",other:"sv-comment sv-question__other"},matrix:{tableWrapper:"sv-matrix",root:"sv-table",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--сhecked",cellTextDisabled:"sv-matrix__text--disabled"},matrixdropdown:{root:"sv-table",cell:"sv-table__cell",headerCell:"sv-table__cell sv-table__cell--header"},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:""},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",disabled:"sv-rating--disabled"},comment:{root:"sv-comment",small:"sv-row__question--small"},expression:"",file:{root:"sv-file",placeholderInput:"sv-visuallyhidden",preview:"sv-file__preview",fileSign:"sv-hidden",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",disabled:"sv-file__choose-btn--disabled",removeButton:"sv-hidden",removeButtonBottom:"sv-btn sv-file__clean-btn",removeFile:"sv-hidden",removeFileSvg:"sv-file__remove-svg",wrapper:"sv-file__wrapper"},saveData:{root:"",saving:"",error:"",success:"",saveAgainButton:""},window:{root:"",body:"",header:{root:"",title:"",button:"",buttonExpanded:"",buttonCollapsed:""}}};r.b.modern=o},function(e,t,n){"use strict";n(124),n(125),n(126),n(127),n(128),n(129),n(130),n(131),n(132),n(133),n(134),n(135),n(136),n(137),n(138),n(139),n(140),n(141),n(142),n(143),n(144),n(145),n(146),n(147),n(148),n(149),n(150),n(151),n(152),n(154),n(153),n(155)},function(e,t,n){"use strict";var r=n(68),o=(n.n(r),n(69)),i=(n.n(o),n(8));n.d(t,"b",function(){return i.a});var a=n(4);n.d(t,"c",function(){return a.a});var s=n(33);n.d(t,"d",function(){return s.c}),n.d(t,"e",function(){return s.b}),n.d(t,"f",function(){return s.d}),n.d(t,"g",function(){return s.e}),n.d(t,"h",function(){return s.f}),n.d(t,"i",function(){return s.g}),n.d(t,"j",function(){return s.h}),n.d(t,"k",function(){return s.i}),n.d(t,"l",function(){return s.a});var l=n(12);n.d(t,"m",function(){return l.a});var u=n(5);n.d(t,"n",function(){return u.c}),n.d(t,"o",function(){return u.a}),n.d(t,"p",function(){return u.d}),n.d(t,"q",function(){return u.b});var c=n(102);n.d(t,"r",function(){return c.a});var p=n(11);n.d(t,"s",function(){return p.b}),n.d(t,"t",function(){return p.d}),n.d(t,"u",function(){return p.a}),n.d(t,"v",function(){return p.e}),n.d(t,"w",function(){return p.l});var d=n(14);n.d(t,"x",function(){return d.a});var h=n(106);n.d(t,"y",function(){return h.a});var f=n(39);n.d(t,"z",function(){return f.a});var m=n(25);n.d(t,"A",function(){return m.a});var g=n(10);n.d(t,"B",function(){return g.a}),n.d(t,"C",function(){return g.b});var y=n(24);n.d(t,"D",function(){return y.g}),n.d(t,"E",function(){return y.c}),n.d(t,"F",function(){return y.f}),n.d(t,"G",function(){return y.d}),n.d(t,"H",function(){return y.a}),n.d(t,"I",function(){return y.e});var v=n(40);n.d(t,"J",function(){return v.a});var b=n(15);n.d(t,"K",function(){return b.a});var x=n(1);n.d(t,"L",function(){return x.e}),n.d(t,"M",function(){return x.f}),n.d(t,"N",function(){return x.g}),n.d(t,"O",function(){return x.h}),n.d(t,"P",function(){return x.i}),n.d(t,"Q",function(){return x.j}),n.d(t,"R",function(){return x.b}),n.d(t,"S",function(){return x.c}),n.d(t,"T",function(){return x.k}),n.d(t,"U",function(){return x.l}),n.d(t,"V",function(){return x.a});var C=n(22);n.d(t,"W",function(){return C.c}),n.d(t,"X",function(){return C.d}),n.d(t,"Y",function(){return C.e}),n.d(t,"Z",function(){return C.b}),n.d(t,"_0",function(){return C.a});var w=n(56);n.d(t,"_1",function(){return w.b}),n.d(t,"_2",function(){return w.a});var P=n(57);n.d(t,"_3",function(){return P.b}),n.d(t,"_4",function(){return P.a});var V=n(55);n.d(t,"_5",function(){return V.a}),n.d(t,"_6",function(){return V.c}),n.d(t,"_7",function(){return V.b});var T=n(58);n.d(t,"_8",function(){return T.a}),n.d(t,"_9",function(){return T.b});var k=n(20);n.d(t,"_10",function(){return k.b}),n.d(t,"_11",function(){return k.d}),n.d(t,"_12",function(){return k.a});var _=n(42);n.d(t,"_13",function(){return _.a});var S=n(27);n.d(t,"_14",function(){return S.a});var q=n(9);n.d(t,"_15",function(){return q.a});var R=n(62);n.d(t,"_16",function(){return R.a});var O=n(51);n.d(t,"_17",function(){return O.a});var E=n(21);n.d(t,"_18",function(){return E.a}),n.d(t,"_19",function(){return E.b});var I=n(49);n.d(t,"_20",function(){return I.a});var L=n(50);n.d(t,"_21",function(){return L.a});var A=n(29);n.d(t,"_22",function(){return A.a});var D=n(3);n.d(t,"_23",function(){return D.b}),n.d(t,"_24",function(){return D.a});var j=n(52);n.d(t,"_25",function(){return j.a});var N=n(53);n.d(t,"_26",function(){return N.a});var F=n(60);n.d(t,"_27",function(){return F.a});var M=n(61);n.d(t,"_28",function(){return M.a});var z=n(30);n.d(t,"_29",function(){return z.a});var B=n(31);n.d(t,"_30",function(){return B.a});var H=n(48);n.d(t,"_31",function(){return H.a});var Q=n(54);n.d(t,"_32",function(){return Q.a});var $=n(59);n.d(t,"_33",function(){return $.a}),n.d(t,"_34",function(){return $.b});var U=n(64);n.d(t,"_35",function(){return U.a});var J=n(19);n.d(t,"_36",function(){return J.a});var W=n(156);n.d(t,"_37",function(){return W.a}),n.d(t,"_38",function(){return W.b}),n.d(t,"_39",function(){return W.c}),n.d(t,"_40",function(){return W.d}),n.d(t,"_41",function(){return W.e}),n.d(t,"_42",function(){return W.f}),n.d(t,"_43",function(){return W.g});var G=n(63);n.d(t,"_44",function(){return G.a});var K=n(23);n.d(t,"_45",function(){return K.a});var Z=n(41);n.d(t,"_46",function(){return Z.a});var X=n(46);n.d(t,"_47",function(){return X.a});var Y=n(2);n.d(t,"_48",function(){return Y.a}),n.d(t,"_49",function(){return Y.b});var ee=n(104);n.d(t,"_50",function(){return ee.a});var te=n(28);n.d(t,"_51",function(){return te.b}),n.d(t,"_52",function(){return te.a});var ne=n(32);n.d(t,"_53",function(){return ne.a}),n.d(t,"a",function(){return re});var re;re="1.1.22"},function(e,t,n){"use strict";var r=n(0),o=n(5),i=n(12),a=n(1),s=n(11),l=n(8);n.d(t,"a",function(){return c});var u=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}(),c=function(e){function t(){var t=e.call(this)||this;return t.lastObjHash="",t.isRunningValue=!1,t.processedUrl="",t.processedPath="",t.error=null,t}return n.i(r.b)(t,e),Object.defineProperty(t,"EncodeParameters",{get:function(){return l.a.webserviceEncodeParameters},set:function(e){l.a.webserviceEncodeParameters=e},enumerable:!0,configurable:!0}),t.clearCache=function(){t.itemsResult={}},t.addSameRequest=function(e){var n=e.objHash,r=t.sendingSameRequests[n];return r?(r.push(e),!0):(t.sendingSameRequests[e.objHash]=[],!1)},t.unregisterSameRequests=function(e,n){var r=t.sendingSameRequests[e.objHash];delete t.sendingSameRequests[e.objHash];for(var o=0;o<r.length;o++)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.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,"isRunning",{get:function(){return this.isRunningValue},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"isWaitingForParameters",{get:function(){return this.url&&!this.processedUrl},enumerable:!0,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){if(e){var t=e.processTextEx(this.url,!1,l.a.webserviceEncodeParameters),n=e.processTextEx(this.path,!1,l.a.webserviceEncodeParameters);t.hasAllValuesOnLastRun&&n.hasAllValuesOnLastRun?(this.processedUrl=t.text,this.processedPath=n.text):(this.processedUrl="",this.processedPath="")}else this.processedUrl=this.url,this.processedPath=this.path},t.prototype.parseResponse=function(e){var t;if(e&&"function"==typeof e.indexOf&&0===e.indexOf("<")){var n=new u;t=n.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(){this.isRunningValue=!0;var e=new XMLHttpRequest;e.open("GET",this.processedUrl),e.setRequestHeader("Content-Type","application/x-www-form-urlencoded");var n=this;e.onload=function(){n.isRunningValue=!1,200===e.status?n.onLoad(n.parseResponse(e.response)):n.onError(e.statusText,e.responseText)};var r={request:e};t.onBeforeSendRequest&&t.onBeforeSendRequest(this,r),this.beforeSendRequest(),r.request.send()},t.prototype.getType=function(){return"choicesByUrl"},Object.defineProperty(t.prototype,"isEmpty",{get:function(){return!(this.url||this.path||this.valueName||this.titleName)},enumerable:!0,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=a.a.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);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);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)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"path",{get:function(){return this.getPropertyValue("path","")},set:function(e){this.setPropertyValue("path",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"valueName",{get:function(){return this.getPropertyValue("valueName","")},set:function(e){this.setPropertyValue("valueName",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"titleName",{get:function(){return this.getPropertyValue("titleName","")},set:function(e){this.setPropertyValue("titleName",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"allowEmptyResponse",{get:function(){return this.getPropertyValue("allowEmptyResponse",!1)},set:function(e){this.setPropertyValue("allowEmptyResponse",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"itemValueType",{get:function(){if(!this.owner)return"itemvalue";var e=a.a.findProperty(this.owner.getType(),"choices");return e?"itemvalue[]"==e.type?"itemvalue":e.type:"itemvalue"},enumerable:!0,configurable:!0}),t.prototype.clear=function(){this.url="",this.path="",this.valueName="",this.titleName="";for(var e=this.getCustomPropertiesNames(),t=0;t<e.length;t++)this[e[t]]&&(this[e[t]]="")},t.prototype.beforeSendRequest=function(){this.beforeSendRequestCallback&&this.beforeSendRequestCallback()},t.prototype.onLoad=function(e){var n=[],r=this.getResultAfterPath(e);if(r&&r.length)for(var o=0;o<r.length;o++){var a=r[o];if(a){var l=this.getItemValueCallback?this.getItemValueCallback(a):this.getValue(a),u=this.getTitle(a),c=new i.a(l,u);this.setCustomProperties(c,a),n.push(c)}}else this.allowEmptyResponse||(this.error=new s.f(null,this.owner));this.updateResultCallback&&(n=this.updateResultCallback(n,e)),t.itemsResult[this.objHash]=n,this.getResultCallback(n),t.unregisterSameRequests(this,n)},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 s.g(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 e=this.processedPath.indexOf(";")>-1?this.path.split(";"):this.processedPath.split(","),0==e.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.getTitle=function(e){var t=this.titleName?this.titleName:"title";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},enumerable:!0,configurable:!0}),t.itemsResult={},t.sendingSameRequests={},t}(o.c);a.a.addClass("choicesByUrl",["url","path","valueName","titleName",{name:"allowEmptyResponse:boolean",default:!1}],function(){return new c})},function(e,t,n){"use strict";var r=n(105);n.d(t,"a",function(){return i});var o=function(){function e(e,t){this.at=e,this.code=t}return e}(),i=function(){function e(){}return e.prototype.patchExpression=function(e){return e.replace(/=>/g,">=").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 i=e.parserCache[t];return void 0===i&&(i=n.i(r.a)(this.patchExpression(t)),e.parserCache[t]=i),i}catch(e){e instanceof r.b&&(this.conditionError=new o(e.location.start.offset,e.message))}},Object.defineProperty(e.prototype,"error",{get:function(){return this.conditionError},enumerable:!0,configurable:!0}),e.parserCache={},e}()},function(e,t,n){"use strict";var r=n(8);n.d(t,"a",function(){return o});var o=function(){function e(){}return Object.defineProperty(e,"serviceUrl",{get:function(){return r.a.surveyServiceUrl},set:function(e){r.a.surveyServiceUrl=e},enumerable:!0,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 a=new XMLHttpRequest;a.open("POST",e.serviceUrl+"/post/"),a.setRequestHeader("Content-Type","application/json; charset=utf-8");var s={postId:t,surveyResult:JSON.stringify(n)};o&&(s.clientId=o),i&&(s.isPartialCompleted=!0);var l=JSON.stringify(s);a.onload=a.onerror=function(){r&&r(200===a.status,a.response,a)},a.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){e=JSON.parse(o.response),t=[];for(var n in e.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}()},function(e,t,n){"use strict";var r=n(0),o=n(1),i=n(20);n.d(t,"a",function(){return a});var a=function(e){function t(t){void 0===t&&(t="");var n=e.call(this,t)||this;n.createLocalizableString("content",n,!0);var r=n;return n.registerFunctionOnPropertyValueChanged("content",function(){r.onContentChanged()}),n}return n.i(r.b)(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:!0,configurable:!0}),Object.defineProperty(t.prototype,"locContent",{get:function(){return this.getLocalizableString("content")},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"html",{get:function(){return this.getPropertyValue("html","")},set:function(e){this.setPropertyValue("html",e)},enumerable:!0,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.substr(r,o.index-r)),r=o.index);var i=this.getQuestionFromText(o[0]);i?e.push(this.getHtmlForQuestion(i)):e.push(n.substr(r,o.index+o[0].length-r)),r=o.index+o[0].length}return r<n.length&&e.push(n.substr(r,n.length-r)),e.join("").replace(new RegExp("<br>","g"),"<br/>")},t.prototype.getQuestionFromText=function(e){return e=e.substr(1,e.length-2),e=e.replace(t.contentElementNamePrefix,"").trim(),this.getQuestionByName(e)},t.prototype.getHtmlForQuestion=function(e){return this.onGetHtmlForQuestion?this.onGetHtmlForQuestion(e):""},t.prototype.getQuestionHtmlId=function(e){return this.name+"_"+e.id},t.prototype.onAddElement=function(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||!window&&!window.getSelection)return!1;var n=window.getSelection();if(n.getRangeAt&&n.rangeCount){var r=n.getRangeAt(0);r.deleteContents(),r.insertNode(document.createTextNode(e));var o=this;if(o.getContent){var i=o.getContent(t);this.content=i}return!0}return!1},t.prototype.getElementContentText=function(e){return"{"+t.contentElementNamePrefix+e.name+"}"},t.contentElementNamePrefix="element:",t}(i.b);o.a.addClass("flowpanel",[{name:"content:html",serializationProperty:"locContent"}],function(){return new a},"panel")},function(e,t,n){"use strict";var r=n(0),o=n(6),i=(n.n(o),n(5)),a=n(56),s=n(22),l=n(1),u=n(3),c=n(7),p=n(16);n.d(t,"a",function(){return d});var d=function(e){function t(t){var n=e.call(this,t)||this,r=n;return n.koCellAfterRender=function(e,t){return r.cellAfterRender(e,t)},n.koRecalc=o.observable(0),n.koTable=o.pureComputed(function(){return r.koRecalc(),r.question.renderedTable}),n.question.onRenderedTableCreatedCallback=function(e){new p.a(e)},n.question.onRenderedTableResetCallback=function(){r.koRecalc(r.koRecalc()+1)},n.koAddRowClick=function(){r.addRow()},n.koRemoveRowClick=function(e){r.removeRow(e.row)},n.koIsAddRowOnTop=o.pureComputed(function(){return r.koRecalc(),r.isAddRowTop()}),n.koIsAddRowOnBottom=o.pureComputed(function(){return r.koRecalc(),r.isAddRowBottom()}),n.question.koTable=n.koTable,n.question.koCellAfterRender=n.koCellAfterRender,n.question.koAddRowClick=n.koAddRowClick,n.question.koRemoveRowClick=n.koRemoveRowClick,n.question.koIsAddRowOnTop=n.koIsAddRowOnTop,n.question.koIsAddRowOnBottom=n.koIsAddRowOnBottom,n}return n.i(r.b)(t,e),t.prototype.getQuestionTemplate=function(){return"matrixdynamic"},t.prototype.cellAfterRender=function(e,t){if(this.question.survey){var n=i.b.GetFirstNonTextElement(e);if(n){var r=t;r.question.customWidget&&(r.question.customWidget.afterRender(r.question,n),o.utils.domNodeDisposal.addDisposeCallback(n,function(){r.question.customWidget.willUnmount(r.question,n)}));var a={cell:r.cell,cellQuestion:r.question,htmlElement:n,row:r.row,column:r.cell?r.cell.column:null};this.question.survey.matrixAfterCellRender(this.question,a)}}},t.prototype.isAddRowTop=function(){return!1},t.prototype.isAddRowBottom=function(){return!1},t.prototype.canRemoveRows=function(){return!1},t.prototype.addRow=function(){},t.prototype.removeRow=function(e){},t}(c.a),h=function(e){function t(t){var n=e.call(this,t)||this;return n.name=t,new d(n),n}return n.i(r.b)(t,e),t}(a.a);l.a.overrideClassCreator("matrixdropdown",function(){return new h("")}),u.b.Instance.registerQuestion("matrixdropdown",function(e){var t=new h(e);return t.choices=[1,2,3,4,5],t.rows=u.b.DefaultRows,s.a.addDefaultColumns(t),t})},function(e,t,n){"use strict";var r=n(0),o=n(6),i=(n.n(o),n(31)),a=n(1),s=n(3),l=n(7);n.d(t,"a",function(){return c});var u=function(e){function t(t){var n=e.call(this,t)||this;return n.question=t,n.koTextRootClass=o.pureComputed(function(){return n.question.koCss().control+(n.question.errors.length>0?" "+n.question.koCss().onError:"")}),t.koTextRootClass=n.koTextRootClass,n}return n.i(r.b)(t,e),t}(l.a),c=function(e){function t(t){var n=e.call(this,t)||this;return n.name=t,new u(n),n}return n.i(r.b)(t,e),t}(i.a);a.a.overrideClassCreator("text",function(){return new c("")}),s.b.Instance.registerQuestion("text",function(e){return new c(e)})},function(e,t,n){"use strict";n.d(t,"b",function(){return r}),n.d(t,"a",function(){return o});var r=n(100),o=function(){function e(){}return e.prototype.addText=function(e,t,n){t=this.getId(t,n),this.text=this.text+'<script type="text/html" '+t+">"+e+"<\/script>"},e.prototype.replaceText=function(e,t,n){void 0===n&&(n=null);var r=this.getId(t,n),o=this.text.indexOf(r);if(o<0)return void this.addText(e,t,n);if(!((o=this.text.indexOf(">",o))<0)){var i=o+1;o=this.text.indexOf("<\/script>",i),o<0||(this.text=this.text.substr(0,i)+e+this.text.substr(o))}},e.prototype.getId=function(e,t){var n='id="survey-'+e;return t&&(n+="-"+t),n+'"'},Object.defineProperty(e.prototype,"text",{get:function(){return r},set:function(e){r=e},enumerable:!0,configurable:!0}),e}()},function(e,t,n){"use strict";n.d(t,"a",function(){return r});var r={pagePrevText:"Previous",pageNextText:"Next",completeText:"Complete",startSurveyText:"Start",otherItemText:"Other (describe)",noneItemText:"None",selectAllItemText:"Select All",progressText:"Page {0} of {1}",panelDynamicProgressText:"Record {0} of {1}",questionsProgressText:"Answered {0}/{1} questions",emptySurvey:"There is no visible page or question in the survey.",completingSurvey:"Thank you for completing the survey!",completingSurveyBefore:"Our records show that you have already completed this survey.",loadingSurvey:"Loading Survey...",optionsCaption:"Choose...",value:"value",requiredError:"Please answer the question.",requiredErrorInPanel:"Please answer at least one question.",requiredInAllRowsError:"Please answer questions in all rows.",numericError:"The value should be numeric.",textMinLength:"Please enter at least {0} characters.",textMaxLength:"Please enter less than {0} characters.",textMinMaxLength:"Please enter more than {0} and less than {1} characters.",minRowCountError:"Please fill in at least {0} rows.",minSelectError:"Please select at least {0} variants.",maxSelectError:"Please select no more than {0} variants.",numericMinMax:"The '{0}' should be equal or more than {1} and equal or less than {2}",numericMin:"The '{0}' should be equal or more than {1}",numericMax:"The '{0}' should be equal or less than {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:"Please enter the other value.",uploadingFile:"Your file is uploading. Please wait several seconds and try again.",loadingFile:"Loading...",chooseFile:"Choose file(s)...",noFileChosen:"No file chosen",confirmDelete:"Do you want to delete the record?",keyDuplicationError:"This value should be unique.",addColumn:"Add column",addRow:"Add row",removeRow:"Remove",addPanel:"Add new",removePanel:"Remove",choices_Item:"item",matrix_column:"Column",matrix_row:"Row",savingData:"The results are saving 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.",cleanCaption:"Clean",clearCaption:"Clear",chooseFileCaption:"Choose 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?"}},function(e,t,n){"use strict";var r=n(0),o=n(12),i=n(9),a=n(1),s=n(10),l=n(4);n.d(t,"a",function(){return u});var u=function(e){function t(t){var n=e.call(this,t)||this;return n.name=t,n.generatedVisibleRows=null,n.generatedTotalRow=null,n.filteredRows=null,n.filteredColumns=null,n.columns=n.createColumnValues(),n.rows=n.createItemValues("rows"),n}return n.i(r.b)(t,e),t.prototype.createColumnValues=function(){return this.createItemValues("columns")},t.prototype.getType=function(){return"matrixbase"},Object.defineProperty(t.prototype,"isAllowTitleLeft",{get:function(){return!1},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"showHeader",{get:function(){return this.getPropertyValue("showHeader")},set:function(e){this.setPropertyValue("showHeader",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"columns",{get:function(){return this.getPropertyValue("columns")},set:function(e){this.setPropertyValue("columns",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"visibleColumns",{get:function(){return this.filteredColumns?this.filteredColumns:this.columns},enumerable:!0,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:!0,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:!0,configurable:!0}),Object.defineProperty(t.prototype,"rowsVisibleIf",{get:function(){return this.getPropertyValue("rowsVisibleIf","")},set:function(e){this.setPropertyValue("rowsVisibleIf",e),this.filterItems()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"columnsVisibleIf",{get:function(){return this.getPropertyValue("columnsVisibleIf","")},set:function(e){this.setPropertyValue("columnsVisibleIf",e),this.filterItems()},enumerable:!0,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.fireCallback(this.visibleRowsChangedCallback)},t.prototype.shouldRunColumnExpression=function(){return!0},t.prototype.hasRowsAsItems=function(){return!0},t.prototype.runItemsCondition=function(e,t){var n=this.hasRowsAsItems()&&this.runConditionsForRows(e,t);return n=this.runConditionsForColumns(e,t)||n,n&&((this.filteredColumns||this.filteredRows)&&this.clearIncorrectValues(),this.generatedVisibleRows=null,this.onRowsChanged()),n},t.prototype.runConditionsForRows=function(e,t){var n=this.rowsVisibleIf?new s.a(this.rowsVisibleIf):null;this.filteredRows=[];var r=o.a.runConditionsForItems(this.rows,this.filteredRows,n,e,t);return this.filteredRows.length===this.rows.length&&(this.filteredRows=null),r},t.prototype.runConditionsForColumns=function(e,t){var n=this.columnsVisibleIf?new s.a(this.columnsVisibleIf):null;this.filteredColumns=[];var r=o.a.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,a=this.filteredColumns?this.filteredColumns:this.columns;for(var s in t)o.a.getItemByValue(i,s)&&o.a.getItemByValue(a,t[s])?(null==n&&(n={}),n[s]=t[s]):r=!0;r&&(this.value=n),e.prototype.clearIncorrectValues.call(this)}},t.prototype.clearInvisibleValuesInRows=function(){if(!this.isEmpty()){for(var e=l.a.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]}l.a.isTwoValueEquals(e,this.value)||(this.value=e)}},t}(i.a);a.a.addClass("matrixbase",["columnsVisibleIf:condition","rowsVisibleIf:condition",{name:"showHeader:boolean",default:!0}],void 0,"question")},function(e,t,n){"use strict";var r=n(0),o=n(3),i=n(1),a=n(9),s=n(2);n.d(t,"a",function(){return l});var l=function(e){function t(t){var n=e.call(this,t)||this;return n.name=t,n.createLocalizableString("label",n,!0),n.createLocalizableString("labelFalse",n,!0),n.createLocalizableString("labelTrue",n,!0),n.labelTrue=s.a.getString("booleanCheckedLabel"),n.labelFalse=s.a.getString("booleanUncheckedLabel"),n}return n.i(r.b)(t,e),t.prototype.getType=function(){return"boolean"},t.prototype.isLayoutTypeSupported=function(e){return!0},Object.defineProperty(t.prototype,"isIndeterminate",{get:function(){return this.isEmpty()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"hasTitle",{get:function(){return!0},enumerable:!0,configurable:!0}),t.prototype.supportGoNextPageAutomatic=function(){return!0},Object.defineProperty(t.prototype,"checkedValue",{get:function(){return this.isEmpty()?null:this.value==this.getValueTrue()},set:function(e){this.isValueEmpty(e)?this.value=null:this.value=1==e?this.getValueTrue():this.getValueFalse()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"defaultValue",{get:function(){return this.getPropertyValue("defaultValue")},set:function(e){!0===e&&(e="true"),!1===e&&(e="false"),this.setPropertyValue("defaultValue",e),this.updateValueWithDefaults()},enumerable:!0,configurable:!0}),t.prototype.getDefaultValue=function(){return"indeterminate"==this.defaultValue?null:"true"==this.defaultValue?this.getValueTrue():this.getValueFalse()},Object.defineProperty(t.prototype,"locTitle",{get:function(){return this.showTitle||this.isValueEmpty(this.locLabel.text)?this.getLocalizableString("title"):this.locLabel},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"label",{get:function(){return this.getLocalizableStringText("label")},set:function(e){this.setLocalizableStringText("label",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"locLabel",{get:function(){return this.getLocalizableString("label")},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"locDisplayLabel",{get:function(){return this.locLabel.text?this.locLabel:this.showTitle?this.locLabel:this.locTitle},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"labelTrue",{get:function(){return this.getLocalizableStringText("labelTrue")},set:function(e){this.setLocalizableStringText("labelTrue",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"locLabelTrue",{get:function(){return this.getLocalizableString("labelTrue")},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"labelFalse",{get:function(){return this.getLocalizableStringText("labelFalse")},set:function(e){this.setLocalizableStringText("labelFalse",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"locLabelFalse",{get:function(){return this.getLocalizableString("labelFalse")},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"showTitle",{get:function(){return this.getPropertyValue("showTitle")},set:function(e){this.setPropertyValue("showTitle",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"valueTrue",{get:function(){return this.getPropertyValue("valueTrue")},set:function(e){this.setPropertyValue("valueTrue",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"valueFalse",{get:function(){return this.getPropertyValue("valueFalse")},set:function(e){this.setPropertyValue("valueFalse",e)},enumerable:!0,configurable:!0}),t.prototype.getValueTrue=function(){return!this.valueTrue||this.valueTrue},t.prototype.getValueFalse=function(){return!!this.valueFalse&&this.valueFalse},t.prototype.setDefaultValue=function(){"true"==this.defaultValue&&(this.checkedValue=!0),"false"==this.defaultValue&&(this.checkedValue=!1),"indeterminate"==this.defaultValue&&(this.value=null)},t}(a.a);i.a.addClass("boolean",[{name:"defaultValue:dropdown",alternativeName:"booleanDefaultValue",default:"indeterminate",choices:["indeterminate","false","true"]},{name:"label:text",serializationProperty:"locLabel"},{name:"labelTrue:text",serializationProperty:"locLabelTrue"},{name:"labelFalse:text",serializationProperty:"locLabelFalse"},"showTitle:boolean","valueTrue","valueFalse"],function(){return new l("")},"question"),o.b.Instance.registerQuestion("boolean",function(e){return new l(e)})},function(e,t,n){"use strict";var r=n(0),o=n(1),i=n(3),a=n(21),s=n(4),l=n(12),u=n(2);n.d(t,"a",function(){return c});var c=function(e){function t(t){var n=e.call(this,t)||this;n.name=t,n.noneItemValue=new l.a("none"),n.selectAllItemValue=new l.a("selectall");var r=n.createLocalizableString("noneText",n,!0);r.onGetTextCallback=function(e){return e||u.a.getString("noneItemText")},n.noneItemValue.locOwner=n,n.noneItemValue.setLocText(r);var o=n.createLocalizableString("selectAllText",n,!0);o.onGetTextCallback=function(e){return e||u.a.getString("selectAllItemText")},n.selectAllItem.locOwner=n,n.selectAllItem.setLocText(o);var i=n;return n.registerFunctionOnPropertiesValueChanged(["hasNone","noneText","hasSelectAll","selectAllText"],function(){i.onVisibleChoicesChanged()}),n}return n.i(r.b)(t,e),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,"selectAllItem",{get:function(){return this.selectAllItemValue},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"noneItem",{get:function(){return this.noneItemValue},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"noneText",{get:function(){return this.getLocalizableStringText("noneText",u.a.getString("noneItemText"))},set:function(e){this.setLocalizableStringText("noneText",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"locNoneText",{get:function(){return this.getLocalizableString("noneText")},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"selectAllText",{get:function(){return this.getLocalizableStringText("selectAllText",u.a.getString("selectAllItemText"))},set:function(e){this.setLocalizableStringText("selectAllText",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"locSelectAllText",{get:function(){return this.getLocalizableString("selectAllText")},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"hasSelectAll",{get:function(){return this.getPropertyValue("hasSelectAll",!1)},set:function(e){this.setPropertyValue("hasSelectAll",e)},enumerable:!0,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.isItemSelected(this.otherItem)&&n--,n===t},set:function(e){e?this.selectAll():this.clearValue()},enumerable:!0,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.value=e},Object.defineProperty(t.prototype,"hasNone",{get:function(){return this.getPropertyValue("hasNone",!1)},set:function(e){this.setPropertyValue("hasNone",e)},enumerable:!0,configurable:!0}),t.prototype.isItemSelected=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(s.a.isTwoValueEquals(t[n],e.value))return!0;return!1},t.prototype.setNewValue=function(t){t=this.valueFromData(t);var n=this.value;if(t||(t=[]),n||(n=[]),!s.a.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.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.hasNone&&!this.hasSelectAll&&e.prototype.canUseFilteredChoices.call(this)},t.prototype.addToVisibleChoices=function(t){this.hasSelectAll&&t.unshift(this.selectAllItem),e.prototype.addToVisibleChoices.call(this,t),this.hasNone&&t.push(this.noneItem)},t.prototype.getDisplayValueCore=function(t,n){if(!Array.isArray(n))return e.prototype.getDisplayValueCore.call(this,t,n);for(var r=this.visibleChoices,o="",i=0;i<n.length;i++){var a=this.getChoicesDisplayValue(r,n[i]);a&&(o&&(o+=", "),o+=a)}return o},t.prototype.clearIncorrectValuesCore=function(){this.clearIncorrectAndDisabledValues(!1)},t.prototype.clearDisabledValuesCore=function(){this.clearIncorrectAndDisabledValues(!0)},t.prototype.clearIncorrectAndDisabledValues=function(e){var t=this.value;if(t){if(!Array.isArray(t)||0==t.length)return void(e||(this.hasComment?this.value=null:this.clearValue()));for(var n=[],r=0;r<t.length;r++)(!e&&!this.canClearValueAnUnknow(t[r])||e&&!this.isValueDisabled(t[r]))&&n.push(t[r]);n.length!=t.length&&(0==n.length?this.clearValue():this.value=n)}},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},t.prototype.isAnswerCorrect=function(){return s.a.isArrayContainsEqual(this.value,this.correctAnswer)},t.prototype.setDefaultValueWithOthers=function(){this.value=this.renderedValueFromDataCore(this.defaultValue)},t.prototype.getHasOther=function(e){return!(!e||!Array.isArray(e))&&e.indexOf(this.otherItem.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.a.getItemByValue(this.activeChoices,t[r]);o?n.push(o.value):n.push(t[r])}return n},t.prototype.renderedValueFromDataCore=function(e){e&&Array.isArray(e)||(e=[]);for(var t=0;t<e.length;t++){if(e[t]==this.otherItem.value)return e;if(this.hasUnknownValue(e[t])){this.comment=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.getComment()){var n=e.slice();return n[t]=this.getComment(),n}return e},t.prototype.hasUnknownValue=function(t,n){return void 0===n&&(n=!1),(!this.hasNone||t!=this.noneItemValue.value)&&e.prototype.hasUnknownValue.call(this,t,n)},t.prototype.getType=function(){return"checkbox"},t}(a.a);o.a.addClass("checkbox",["hasSelectAll:boolean","hasNone:boolean",{name:"noneText",serializationProperty:"locNoneText"},{name:"selectAllText",serializationProperty:"locSelectAllText"}],function(){return new c("")},"checkboxbase"),i.b.Instance.registerQuestion("checkbox",function(e){var t=new c(e);return t.choices=i.b.DefaultChoices,t})},function(e,t,n){"use strict";var r=n(0),o=n(9),i=n(1),a=n(3),s=n(4);n.d(t,"a",function(){return l});var l=function(e){function t(t){var n=e.call(this,t)||this;return n.name=t,n.createLocalizableString("placeHolder",n),n}return n.i(r.b)(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)},enumerable:!0,configurable:!0}),t.prototype.getMaxLength=function(){return s.a.getMaxLength(this.maxLength,this.survey?this.survey.maxTextLength:-1)},Object.defineProperty(t.prototype,"placeHolder",{get:function(){return this.getLocalizableStringText("placeHolder")},set:function(e){this.setLocalizableStringText("placeHolder",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"locPlaceHolder",{get:function(){return this.getLocalizableString("placeHolder")},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"rows",{get:function(){return this.getPropertyValue("rows")},set:function(e){this.setPropertyValue("rows",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"cols",{get:function(){return this.getPropertyValue("cols")},set:function(e){this.setPropertyValue("cols",e)},enumerable:!0,configurable:!0}),t.prototype.getType=function(){return"comment"},t.prototype.isEmpty=function(){return e.prototype.isEmpty.call(this)||""===this.value},t}(o.a);i.a.addClass("comment",[{name:"maxLength:number",default:-1},{name:"cols:number",default:50},{name:"rows:number",default:4},{name:"placeHolder",serializationProperty:"locPlaceHolder"}],function(){return new l("")},"question"),a.b.Instance.registerQuestion("comment",function(e){return new l(e)})},function(e,t,n){"use strict";var r=n(0),o=n(1),i=n(9);n.d(t,"a",function(){return a});var a=function(e){function t(t){var n=e.call(this,t)||this;return n.name=t,n}return n.i(r.b)(t,e),t.prototype.getType=function(){return"empty"},t}(i.a);o.a.addClass("empty",[],function(){return new a("")},"question")},function(e,t,n){"use strict";var r=n(0),o=n(9),i=n(1),a=n(3),s=n(5),l=n(11),u=n(2);n.d(t,"a",function(){return c});var c=function(e){function t(t){var n=e.call(this,t)||this;return n.name=t,n.isUploading=!1,n.onStateChanged=new s.a,n.previewValue=[],n.currentState="empty",n}return n.i(r.b)(t,e),t.prototype.getType=function(){return"file"},Object.defineProperty(t.prototype,"showPreview",{get:function(){return this.getPropertyValue("showPreview")},set:function(e){this.setPropertyValue("showPreview",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"allowMultiple",{get:function(){return this.getPropertyValue("allowMultiple",!1)},set:function(e){this.setPropertyValue("allowMultiple",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"imageHeight",{get:function(){return this.getPropertyValue("imageHeight")},set:function(e){this.setPropertyValue("imageHeight",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"imageWidth",{get:function(){return this.getPropertyValue("imageWidth")},set:function(e){this.setPropertyValue("imageWidth",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"acceptedTypes",{get:function(){return this.getPropertyValue("acceptedTypes")},set:function(e){this.setPropertyValue("acceptedTypes",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"storeDataAsText",{get:function(){return this.getPropertyValue("storeDataAsText")},set:function(e){this.setPropertyValue("storeDataAsText",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"waitForUpload",{get:function(){return this.getPropertyValue("waitForUpload",!1)},set:function(e){this.setPropertyValue("waitForUpload",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"allowImagesPreview",{get:function(){return this.getPropertyValue("allowImagesPreview")},set:function(e){this.setPropertyValue("allowImagesPreview",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"maxSize",{get:function(){return this.getPropertyValue("maxSize",0)},set:function(e){this.setPropertyValue("maxSize",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"needConfirmRemoveFile",{get:function(){return this.getPropertyValue("needConfirmRemoveFile")},set:function(e){this.setPropertyValue("needConfirmRemoveFile",e)},enumerable:!0,configurable:!0}),t.prototype.getConfirmRemoveMessage=function(e){return u.a.getString("confirmRemoveFile").format(e)},Object.defineProperty(t.prototype,"confirmRemoveAllMessage",{get:function(){return u.a.getString("confirmRemoveAllFiles")},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"noFileChosenCaption",{get:function(){return u.a.getString("noFileChosen")},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"chooseButtonCaption",{get:function(){return u.a.getString("chooseFileCaption")},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"cleanButtonCaption",{get:function(){return u.a.getString("cleanCaption")},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"removeFileCaption",{get:function(){return u.a.getString("removeFileCaption")},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"inputTitle",{get:function(){return this.isUploading?u.a.getString("loadingFile"):this.isEmpty()?u.a.getString("chooseFile"):" "},enumerable:!0,configurable:!0}),t.prototype.clear=function(e){var t=this;this.survey.clearFiles(this.name,this.value,null,function(n,r){"success"===n&&(t.value=void 0,t.errors=[],!!e&&e())})},t.prototype.removeFile=function(e){var t=this;this.survey.clearFiles(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 t.name!==e.name}):t.value=void 0}})},t.prototype.loadFiles=function(e){var t=this;if(this.survey&&(this.errors=[],this.allFilesOk(e))){this.stateChanged("loading");var n=function(){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}]),n.length===e.length&&(t.value=(t.value||[]).concat(n))},o.readAsDataURL(r)}):t.survey.uploadFiles(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.setQuestionValue=function(t){var n=this;e.prototype.setQuestionValue.call(this,t),this.previewValue=[];var r=!Array.isArray(t)&&t||Array.isArray(t)&&t.length>0?this.showPreview?"loading":"loaded":"empty";if(this.stateChanged(r),this.showPreview&&t){var o=Array.isArray(t)?t:t?[t]:[];this.storeDataAsText?(o.forEach(function(e){var t=e.content||e;n.previewValue=n.previewValue.concat([{name:e.name,type:e.type,content:t}])}),"loading"===r&&this.stateChanged("loaded")):o.forEach(function(e){e.content;n.survey.downloadFile(n.name,e,function(t,r){"success"===t?(n.previewValue=n.previewValue.concat([{content:r,name:e.name,type:e.type}]),n.previewValue.length===o.length&&n.stateChanged("loaded")):n.stateChanged("error")})})}},t.prototype.onCheckForErrors=function(t){e.prototype.onCheckForErrors.call(this,t),this.isUploading&&this.waitForUpload&&t.push(new l.k(u.a.getString("uploadingFile"),this))},t.prototype.stateChanged=function(e){"loading"===e&&(this.isUploading=!0),"loaded"===e&&(this.isUploading=!1),this.currentState=e,this.onStateChanged.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 l.l(t.maxSize,t))}),n===this.errors.length},t.prototype.isFileImage=function(e){if(!e)return!1;var t="data:image",n=e.content&&e.content.substr(0,t.length);return(n=n&&n.toLowerCase())===t||!!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}(o.a);i.a.addClass("file",[{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},"maxSize:number",{name:"defaultValue",visible:!1},{name:"correctAnswer",visible:!1},{name:"validators",visible:!1},{name:"needConfirmRemoveFile:boolean",visible:!0,default:!1}],function(){return new c("")},"question"),a.b.Instance.registerQuestion("file",function(e){return new c(e)})},function(e,t,n){"use strict";var r=n(0),o=n(62),i=n(1),a=n(3);n.d(t,"a",function(){return s});var s=function(e){function t(t){var n=e.call(this,t)||this;n.name=t;var r=n.createLocalizableString("html",n),o=n;return r.onGetTextCallback=function(e){return o.survey?o.survey.processHtml(e):e},n}return n.i(r.b)(t,e),t.prototype.getType=function(){return"html"},Object.defineProperty(t.prototype,"html",{get:function(){return this.getLocalizableStringText("html","")},set:function(e){this.setLocalizableStringText("html",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"locHtml",{get:function(){return this.getLocalizableString("html")},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"processedHtml",{get:function(){return this.survey?this.survey.processHtml(this.html):this.html},enumerable:!0,configurable:!0}),t}(o.a);i.a.addClass("html",[{name:"html:html",serializationProperty:"locHtml"}],function(){return new s("")},"nonvalue"),a.b.Instance.registerQuestion("html",function(e){return new s(e)})},function(e,t,n){"use strict";var r=n(0),o=n(1),i=n(3),a=n(21),s=n(4);n.d(t,"a",function(){return l});var l=function(e){function t(t){var n=e.call(this,t)||this;return n.name=t,n.colCount=0,n}return n.i(r.b)(t,e),t.prototype.getType=function(){return"imagepicker"},t.prototype.supportGoNextPageAutomatic=function(){return!0},t.prototype.getItemValueType=function(){return"imageitemvalue"},Object.defineProperty(t.prototype,"multiSelect",{get:function(){return this.getPropertyValue("multiSelect",!1)},set:function(e){this.setPropertyValue("multiSelect",e)},enumerable:!0,configurable:!0}),t.prototype.isItemSelected=function(e){var t=this.renderedValue;if(s.a.isValueEmpty(t))return!1;if(!this.multiSelect)return s.a.isTwoValueEquals(t,e.value);if(!Array.isArray(t))return!1;for(var n=0;n<t.length;n++)if(s.a.isTwoValueEquals(t[n],e.value))return!0;return!1},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)},Object.defineProperty(t.prototype,"showLabel",{get:function(){return this.getPropertyValue("showLabel",!1)},set:function(e){this.setPropertyValue("showLabel",e)},enumerable:!0,configurable:!0}),t.prototype.getValueCore=function(){return e.prototype.getValueCore.call(this)||this.multiSelect&&[]||void 0},Object.defineProperty(t.prototype,"imageHeight",{get:function(){return this.getPropertyValue("imageHeight")},set:function(e){this.setPropertyValue("imageHeight",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"imageWidth",{get:function(){return this.getPropertyValue("imageWidth")},set:function(e){this.setPropertyValue("imageWidth",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"imageFit",{get:function(){return this.getPropertyValue("imageFit")},set:function(e){this.setPropertyValue("imageFit",e)},enumerable:!0,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:!0,configurable:!0}),t}(a.a);o.a.addClass("imageitemvalue",[],void 0,"itemvalue"),o.a.addProperty("imageitemvalue",{name:"imageLink"}),o.a.addClass("imagepicker",[{name:"hasOther",visible:!1},{name:"otherText",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",default:150,minValue:0},{name:"imageWidth:number",default:200,minValue:0}],function(){return new l("")},"checkboxbase"),o.a.addProperty("imagepicker",{name:"showLabel:boolean",default:!1}),o.a.addProperty("imagepicker",{name:"colCount:number",default:0,choices:[0,1,2,3,4,5]}),o.a.addProperty("imagepicker",{name:"multiSelect:boolean",default:!1}),o.a.addProperty("imagepicker",{name:"choices:imageitemvalue[]"}),i.b.Instance.registerQuestion("imagepicker",function(e){return new l(e)})},function(e,t,n){"use strict";var r=n(0),o=n(4),i=n(12),a=n(47),s=n(1),l=n(2),u=n(11),c=n(3),p=n(14),d=n(29),h=n(8);n.d(t,"a",function(){return f}),n.d(t,"c",function(){return m}),n.d(t,"b",function(){return g});var f=function(){function e(e,t,n,r){this.fullName=t,this.item=e,this.data=n,this.rowValue=r}return Object.defineProperty(e.prototype,"name",{get:function(){return this.item.value},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"text",{get:function(){return this.item.text},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"locText",{get:function(){return this.item.locText},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"value",{get:function(){return this.rowValue},set:function(e){this.rowValue=e,this.data&&this.data.onMatrixRowChanged(this),this.onValueChanged()},enumerable:!0,configurable:!0}),e.prototype.onValueChanged=function(){},e}(),m=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:!0,configurable:!0}),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])}},e.prototype.setDefaultCellText=function(e,t){this.setCellText(h.a.matrixDefaultRowName,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(h.a.matrixDefaultRowName,e)},e.prototype.getCellDisplayLocText=function(e,t){var n=this.getCellLocText(e,t);return n&&!n.isEmpty?n:(n=this.getCellLocText(h.a.matrixDefaultRowName,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(h.a.matrixDefaultRowName,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:!0,configurable:!0}),Object.defineProperty(e.prototype,"columns",{get:function(){return this.cellsOwner?this.cellsOwner.getColumns():[]},enumerable:!0,configurable:!0}),e.prototype.getCellRowColumnValue=function(e,t){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];this.values[t]={};for(var r in n)if("pos"!=r){var o=this.createString();o.setJson(n[r]),this.values[t][r]=o}}},e.prototype.createString=function(){return new p.a(this.cellsOwner,!0)},e}(),g=function(e){function t(t){var n=e.call(this,t)||this;n.name=t,n.isRowChanging=!1,n.emptyLocalizableString=new p.a(n),n.cellsValue=new m(n);var r=n;return n.registerFunctionOnPropertyValueChanged("columns",function(){r.onColumnsChanged()}),n.registerFunctionOnPropertyValueChanged("rows",function(){r.filterItems()||r.onRowsChanged()}),n}return n.i(r.b)(t,e),t.prototype.getType=function(){return"matrix"},Object.defineProperty(t.prototype,"isAllRowRequired",{get:function(){return this.getPropertyValue("isAllRowRequired",!1)},set:function(e){this.setPropertyValue("isAllRowRequired",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"hasRows",{get:function(){return this.rows.length>0},enumerable:!0,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:!0,configurable:!0}),t.prototype.getRows=function(){return this.rows},t.prototype.getColumns=function(){return this.visibleColumns},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;!o.a.isValueEmpty(t[r])&&o.a.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 0!=e.length||this.filteredRows||e.push(this.createMatrixRow(new i.a(null),this.name.replace(/\s/g,"_"),t)),this.generatedVisibleRows=e,e},t.prototype.sortVisibleRows=function(e){return"random"===this.rowsOrder.toLowerCase()?o.a.randomizeArray(e):e},t.prototype.endLoadingFromJson=function(){e.prototype.endLoadingFromJson.call(this),this.rows=this.sortVisibleRows(this.rows)},t.prototype.processRowsOnSet=function(e){return this.sortVisibleRows(e)},Object.defineProperty(t.prototype,"visibleRows",{get:function(){return this.getVisibleRows()},enumerable:!0,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:!0,configurable:!0}),Object.defineProperty(t.prototype,"hasCellText",{get:function(){return!this.cells.isEmpty},enumerable:!0,configurable:!0}),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){var n=this.cells.getCellDisplayLocText(e,t);return n||this.emptyLocalizableString},t.prototype.supportGoNextPageAutomatic=function(){return this.hasValuesInAllRows()},t.prototype.onCheckForErrors=function(t){e.prototype.onCheckForErrors.call(this,t),this.hasErrorInRows()&&t.push(new u.j(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(!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){return new f(e,t,this,n)},t.prototype.setQuestionValue=function(t){if(e.prototype.setQuestionValue.call(this,t),!this.isRowChanging&&this.generatedVisibleRows&&0!=this.generatedVisibleRows.length){this.isRowChanging=!0;var n=this.value;if(n||(n={}),0==this.rows.length)this.generatedVisibleRows[0].value=n;else for(var r=0;r<this.generatedVisibleRows.length;r++){var o=this.generatedVisibleRows[r],i=n[o.name]?n[o.name]:null;this.generatedVisibleRows[r].value=i}this.isRowChanging=!1}},t.prototype.getDisplayValueCore=function(e,t){var n={};for(var r in t){var o=e?i.a.getTextOrHtmlByValue(this.rows,r):r;o||(o=r);var a=i.a.getTextOrHtmlByValue(this.columns,t[r]);a||(a=t[r]),n[o]=a}return n},t.prototype.getPlainData=function(t){var n=this;void 0===t&&(t={includeEmpty:!0});var r=e.prototype.getPlainData.call(this,t);if(r){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],a={name:e,title:r?r.text:"row",value:o[e],displayValue:i.a.getTextOrHtmlByValue(n.visibleColumns,o[e]),getString:function(e){return"object"==typeof e?JSON.stringify(e):e},isNode:!1},s=i.a.getItemByValue(n.visibleColumns,o[e]);return s&&(t.calculations||[]).forEach(function(e){a[e.propertyName]=s[e.propertyName]}),a})}return r},t.prototype.addConditionNames=function(e){for(var t=0;t<this.rows.length;t++)this.rows[t].value&&e.push(this.name+"."+this.rows[t].value)},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.name+"."+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 d.a(n);r.choices=this.columns;var o=(new s.b).toJsonObject(r);return o.type=r.getType(),o},t.prototype.clearValueIfInvisible=function(){e.prototype.clearValueIfInvisible.call(this),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}(a.a);s.a.addClass("matrix",[{name:"columns:itemvalue[]",baseValue:function(){return l.a.getString("matrix_column")}},{name:"rows:itemvalue[]",baseValue:function(){return l.a.getString("matrix_row")}},{name:"cells:cells",serializationProperty:"cells"},{name:"rowsOrder",default:"initial",choices:["initial","random"]},"isAllRowRequired:boolean"],function(){return new g("")},"matrixbase"),c.b.Instance.registerQuestion("matrix",function(e){var t=new g(e);return t.rows=c.b.DefaultRows,t.columns=c.b.DefaultColums,t})},function(e,t,n){"use strict";var r=n(0),o=n(22),i=n(1),a=n(12),s=n(3);n.d(t,"b",function(){return l}),n.d(t,"a",function(){return u});var l=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 n.i(r.b)(t,e),Object.defineProperty(t.prototype,"rowName",{get:function(){return this.name},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"text",{get:function(){return this.item.text},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"locText",{get:function(){return this.item.locText},enumerable:!0,configurable:!0}),t}(o.b),u=function(e){function t(t){var n=e.call(this,t)||this;n.name=t,n.createLocalizableString("totalText",n,!0);var r=n;return n.registerFunctionOnPropertyValueChanged("rows",function(){r.generatedVisibleRows=null,r.filterItems()}),n}return n.i(r.b)(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:!0,configurable:!0}),Object.defineProperty(t.prototype,"locTotalText",{get:function(){return this.getLocalizableString("totalText")},enumerable:!0,configurable:!0}),t.prototype.getFooterText=function(){return this.locTotalText},t.prototype.getDisplayValueCore=function(e,t){var n=this.createValueCopy();if(!n)return n;for(var r=this.visibleRows,o={},i=0;i<r.length;i++){var s=this.rows[i].value,l=n[s];if(l){if(e){var u=a.a.getTextOrHtmlByValue(this.rows,s);u&&(s=u)}o[s]=this.getRowDisplayValue(r[i],l)}}return n},t.prototype.addConditionNames=function(e){for(var t=0;t<this.rows.length;t++)if(this.rows[t].value)for(var n=this.name+"."+this.rows[t].value+".",r=0;r<this.columns.length;r++)e.push(n+this.columns[r].name)},t.prototype.addConditionObjectsByContext=function(e,t){for(var n=!!t&&this.columns.indexOf(t)>-1,r=0;r<this.rows.length;r++){var o=this.rows[r];if(o.value)for(var i=this.name+"."+o.value+".",a=this.processedTitle+"."+o.calculatedText+".",s=0;s<this.columns.length;s++){var l=this.columns[s];e.push({name:i+l.name,text:a+l.fullTitle,question:this})}}if(n)for(var r=0;r<this.columns.length;r++){var l=this.columns[r];l!=t&&e.push({name:"row."+l.name,text:"row."+l.fullTitle,question:this})}},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)a.a.getItemByValue(o,i)?(null==n&&(n={}),n[i]=t[i]):r=!0;r&&(this.value=n),e.prototype.clearIncorrectValues.call(this)}},t.prototype.clearValueIfInvisible=function(){e.prototype.clearValueIfInvisible.call(this),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++)t[r].value&&e.push(this.createMatrixRow(t[r],n[t[r].value]));return e},t.prototype.createMatrixRow=function(e,t){return new l(e.value,e,this,t)},t}(o.a);i.a.addClass("matrixdropdown",[{name:"rows:itemvalue[]"},"rowsVisibleIf:condition",{name:"totalText",serializationProperty:"locTotalText"}],function(){return new u("")},"matrixdropdownbase"),s.b.Instance.registerQuestion("matrixdropdown",function(e){var t=new u(e);return t.choices=[1,2,3,4,5],t.rows=s.b.DefaultColums,o.a.addDefaultColumns(t),t})},function(e,t,n){"use strict";var r=n(0),o=n(22),i=n(1),a=n(3),s=n(2),l=n(11),u=n(4),c=n(8);n.d(t,"b",function(){return p}),n.d(t,"a",function(){return d});var p=function(e){function t(t,n,r){var o=e.call(this,n,r)||this;return o.index=t,o.buildCells(r),o}return n.i(r.b)(t,e),Object.defineProperty(t.prototype,"rowName",{get:function(){return this.id},enumerable:!0,configurable:!0}),t}(o.b),d=function(e){function t(t){var n=e.call(this,t)||this;return n.name=t,n.rowCounter=0,n.rowCountValue=2,n.createLocalizableString("confirmDeleteText",n),n.createLocalizableString("keyDuplicationError",n),n.createLocalizableString("addRowText",n),n.createLocalizableString("removeRowText",n),n}return n.i(r.b)(t,e),t.prototype.getType=function(){return"matrixdynamic"},Object.defineProperty(t.prototype,"isRowsDynamic",{get:function(){return!0},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"confirmDelete",{get:function(){return this.getPropertyValue("confirmDelete",!1)},set:function(e){this.setPropertyValue("confirmDelete",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"keyName",{get:function(){return this.getPropertyValue("keyName","")},set:function(e){this.setPropertyValue("keyName",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"defaultRowValue",{get:function(){return this.getPropertyValue("defaultRowValue")},set:function(e){this.setPropertyValue("defaultRowValue",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"defaultValueFromLastRow",{get:function(){return this.getPropertyValue("defaultValueFromLastRow",!1)},set:function(e){this.setPropertyValue("defaultValueFromLastRow",e)},enumerable:!0,configurable:!0}),t.prototype.isDefaultValueEmpty=function(){return e.prototype.isDefaultValueEmpty.call(this)&&this.isValueEmpty(this.defaultRowValue)},t.prototype.setDefaultValue=function(){if(this.isValueEmpty(this.defaultRowValue)||!this.isValueEmpty(this.defaultValue))return void e.prototype.setDefaultValue.call(this);if(this.isEmpty()&&0!=this.rowCount){for(var t=[],n=0;n<this.rowCount;n++)t.push(this.defaultRowValue);this.value=t}},Object.defineProperty(t.prototype,"rowCount",{get:function(){return this.rowCountValue},set:function(e){if(!(e<0||e>c.a.matrixMaximumRowCount)){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.isLoadingFromJson){if(this.generatedVisibleRows){this.generatedVisibleRows.splice(e);for(var r=t;r<e;r++){var o=this.createMatrixRow(null);this.generatedVisibleRows.push(o),this.onMatrixRowCreated(o)}}this.onRowsChanged()}}},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"minRowCount",{get:function(){return this.getPropertyValue("minRowCount",0)},set:function(e){e<0&&(e=0),this.setPropertyValue("minRowCount",e),e>this.maxRowCount&&(this.maxRowCount=e),this.rowCount<e&&(this.rowCount=e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"maxRowCount",{get:function(){return this.getPropertyValue("maxRowCount",c.a.matrixMaximumRowCount)},set:function(e){e<=0||(e>c.a.matrixMaximumRowCount&&(e=c.a.matrixMaximumRowCount),e!=this.maxRowCount&&(this.setPropertyValue("maxRowCount",e),e<this.minRowCount&&(this.minRowCount=e),this.rowCount>e&&(this.rowCount=e)))},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"canAddRow",{get:function(){return!this.isReadOnly&&this.rowCount<this.maxRowCount},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"canRemoveRows",{get:function(){return!this.isReadOnly&&this.rowCount>this.minRowCount},enumerable:!0,configurable:!0}),t.prototype.canRemoveRow=function(e){return!this.survey||this.survey.matrixAllowRemoveRow(this,e.index,e)},t.prototype.addRow=function(){var e={question:this,canAddRow:this.canAddRow};this.survey&&this.survey.matrixBeforeRowAdded(e),e.canAddRow&&(this.onStartRowAddingRemoving(),this.addRowCore(),this.onEndRowAdding())},t.prototype.hasRowsAsItems=function(){return!1},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(),n.length==this.rowCount&&(n[n.length-1]=t,this.value=n)),this.data){this.runCellsCondition(this.getDataFilteredValues(),this.getDataFilteredProperties());var r=this.visibleRows[this.rowCount-1];u.a.isValueEmpty(r.value)||(n||(n=this.createNewValue()),u.a.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.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||{},t[this.columns[n].name]=r.getDefaultValue())}if(!this.isValueEmpty(this.defaultRowValue))for(var o in this.defaultRowValue)t=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 a=i[this.rowCount-2];for(var o in a)t=t||{},t[o]=a[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.isRequireConfirmOnRowDelete(e)&&!confirm(this.confirmDeleteText)||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!(u.a.isValueEmpty(t)||!Array.isArray(t))&&(!(e>=t.length)&&!u.a.isValueEmpty(t[e]))},t.prototype.removeRow=function(e){this.canRemoveRows&&(e<0||e>=this.rowCount||(this.onStartRowAddingRemoving(),this.removeRowCore(e),this.onEndRowRemoving(e)))},t.prototype.removeRowCore=function(e){if(this.survey){var t=this.generatedVisibleRows?this.generatedVisibleRows[e]:null;this.survey.matrixRowRemoved(this,e,t)}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(),n.splice(e,1),n=this.deleteRowValue(n,null),this.isRowChanging=!0,this.value=n,this.isRowChanging=!1}this.onRowsChanged()},Object.defineProperty(t.prototype,"confirmDeleteText",{get:function(){return this.getLocalizableStringText("confirmDeleteText",s.a.getString("confirmDelete"))},set:function(e){this.setLocalizableStringText("confirmDeleteText",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"locConfirmDeleteText",{get:function(){return this.getLocalizableString("confirmDeleteText")},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"keyDuplicationError",{get:function(){return this.getLocalizableStringText("keyDuplicationError",s.a.getString("keyDuplicationError"))},set:function(e){this.setLocalizableStringText("keyDuplicationError",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"locKeyDuplicationError",{get:function(){return this.getLocalizableString("keyDuplicationError")},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"addRowText",{get:function(){var e=this.isColumnLayoutHorizontal?"addRow":"addColumn";return this.getLocalizableStringText("addRowText",s.a.getString(e))},set:function(e){this.setLocalizableStringText("addRowText",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"locAddRowText",{get:function(){return this.getLocalizableString("addRowText")},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"addRowLocation",{get:function(){return this.getPropertyValue("addRowLocation")},set:function(e){this.setPropertyValue("addRowLocation",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"isAddRowOnTop",{get:function(){return!!this.canAddRow&&("default"===this.addRowLocation?"vertical"===this.columnLayout:"bottom"!==this.addRowLocation)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"isAddRowOnBottom",{get:function(){return!!this.canAddRow&&("default"===this.addRowLocation?"horizontal"===this.columnLayout:"top"!==this.addRowLocation)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"removeRowText",{get:function(){return this.getLocalizableStringText("removeRowText",s.a.getString("removeRow"))},set:function(e){this.setLocalizableStringText("removeRowText",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"locRemoveRowText",{get:function(){return this.getLocalizableString("removeRowText")},enumerable:!0,configurable:!0}),t.prototype.getDisplayValueCore=function(e,t){var n=this.createValueCopy();if(!n||!Array.isArray(n))return n;for(var r=this.visibleRows,o=0;o<r.length&&o<n.length;o++){var i=n[o];i&&(n[o]=this.getRowDisplayValue(r[o],i))}return n},t.prototype.addConditionNames=function(e){for(var t=0;t<this.columns.length;t++)e.push(this.name+"[0]."+this.columns[t].name)},t.prototype.addConditionObjectsByContext=function(e,t){for(var n=!!t&&this.columns.indexOf(t)>-1,r=0;r<this.columns.length;r++){var o=this.columns[r];e.push({name:this.name+"[0]."+o.name,text:this.processedTitle+"[0]."+o.fullTitle,question:this}),n&&o!=t&&e.push({name:"row."+o.name,text:"row."+o.fullTitle,question:this})}},t.prototype.supportGoNextPageAutomatic=function(){return!1},Object.defineProperty(t.prototype,"hasRowText",{get:function(){return!1},enumerable:!0,configurable:!0}),t.prototype.onCheckForErrors=function(t){e.prototype.onCheckForErrors.call(this,t),this.hasErrorInRows()&&t.push(new l.i(this.minRowCount,this))},t.prototype.hasErrors=function(t,n){void 0===t&&(t=!0),void 0===n&&(n=null);var r=e.prototype.hasErrors.call(this,t);return this.isValueDuplicated()||r},t.prototype.hasErrorInRows=function(){if(this.minRowCount<=0||!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.isValueDuplicated=function(){if(!this.keyName||!this.generatedVisibleRows)return!1;var e=this.getColumnByName(this.keyName);if(!e)return!1;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.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(o==n[i])return r.addError(new l.h(this.keyDuplicationError,this)),!0;return n.push(o),!1},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 p(this.rowCounter++,this,e)},t.prototype.onBeforeValueChanged=function(e){var t=e&&Array.isArray(e)?e.length:0;t<=this.rowCount||(this.rowCountValue=t,this.generatedVisibleRows&&(this.generatedVisibleRows=null,this.generatedVisibleRows=this.visibleRows,this.onRowsChanged()))},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(u.a.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 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}(o.a);i.a.addClass("matrixdynamic",[{name:"rowsVisibleIf:condition",visible:!1},{name:"rowCount:number",default:2,minValue:0},{name:"minRowCount:number",default:0,minValue:0},{name:"maxRowCount:number",default:c.a.matrixMaximumRowCount},{name:"keyName"},{name:"keyDuplicationError",serializationProperty:"locKeyDuplicationError"},"defaultRowValue:rowvalue","defaultValueFromLastRow:boolean",{name:"confirmDelete:boolean"},{name:"confirmDeleteText",serializationProperty:"locConfirmDeleteText"},{name:"addRowLocation",default:"default",choices:["default","top","bottom","topBottom"]},{name:"addRowText",serializationProperty:"locAddRowText"},{name:"removeRowText",serializationProperty:"locRemoveRowText"}],function(){return new d("")},"matrixdropdownbase"),a.b.Instance.registerQuestion("matrixdynamic",function(e){var t=new d(e);return t.choices=[1,2,3,4,5],o.a.addDefaultColumns(t),t})},function(e,t,n){"use strict";var r=n(0),o=n(5),i=n(9),a=n(31),s=n(1),l=n(3),u=n(4);n.d(t,"a",function(){return c}),n.d(t,"b",function(){return p});var c=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 n.i(r.b)(t,e),t.prototype.getType=function(){return"multipletextitem"},Object.defineProperty(t.prototype,"id",{get:function(){return this.editor.id},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"name",{get:function(){return this.editor.name},set:function(e){this.editor.name=e},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"editor",{get:function(){return this.editorValue},enumerable:!0,configurable:!0}),t.prototype.createEditor=function(e){return new a.a(e)},t.prototype.addUsedLocales=function(t){e.prototype.addUsedLocales.call(this,t),this.editor.addUsedLocales(t)},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:!0,configurable:!0}),Object.defineProperty(t.prototype,"inputType",{get:function(){return this.editor.inputType},set:function(e){this.editor.inputType=e},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"title",{get:function(){return this.editor.title},set:function(e){this.editor.title=e},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"locTitle",{get:function(){return this.editor.locTitle},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"fullTitle",{get:function(){return this.editor.fullTitle},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"maxLength",{get:function(){return this.editor.maxLength},set:function(e){this.editor.maxLength=e},enumerable:!0,configurable:!0}),t.prototype.getMaxLength=function(){var e=this.getSurvey();return u.a.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:!0,configurable:!0}),Object.defineProperty(t.prototype,"locPlaceHolder",{get:function(){return this.editor.locPlaceHolder},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"requiredErrorText",{get:function(){return this.editor.requiredErrorText},set:function(e){this.editor.requiredErrorText=e},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"locRequiredErrorText",{get:function(){return this.editor.locRequiredErrorText},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"validators",{get:function(){return this.editor.validators},set:function(e){this.editor.validators=e},enumerable:!0,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:!0,configurable:!0}),t.prototype.isEmpty=function(){return u.a.isValueEmpty(this.value)},t.prototype.onValueChanged=function(e){this.valueChangedCallback&&this.valueChangedCallback(e)},t.prototype.geSurveyData=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.getValidatorTitle=function(){return this.title},Object.defineProperty(t.prototype,"validatedValue",{get:function(){return this.value},set:function(e){this.value=e},enumerable:!0,configurable:!0}),t.prototype.getDataFilteredValues=function(){return this.getFilteredValues()},t.prototype.getDataFilteredProperties=function(){return this.getFilteredProperties()},t}(o.c),p=function(e){function t(t){var n=e.call(this,t)||this;n.name=t,n.isMultipleItemValueChanging=!1;var r=n;return n.items=n.createNewArray("items",function(e){e.setData(r)}),n.registerFunctionOnPropertyValueChanged("items",function(){r.fireCallback(r.colCountChangedCallback)}),n.registerFunctionOnPropertyValueChanged("colCount",function(){r.fireCallback(r.colCountChangedCallback)}),n}return n.i(r.b)(t,e),t.prototype.getType=function(){return"multipletext"},t.prototype.setSurveyImpl=function(t){e.prototype.setSurveyImpl.call(this,t);for(var n=0;n<this.items.length;n++)this.items[n].setData(this)},Object.defineProperty(t.prototype,"isAllowTitleLeft",{get:function(){return!1},enumerable:!0,configurable:!0}),t.prototype.onSurveyLoad=function(){this.editorsOnSurveyLoad(),e.prototype.onSurveyLoad.call(this),this.fireCallback(this.colCountChangedCallback)},t.prototype.setQuestionValue=function(t){e.prototype.setQuestionValue.call(this,t,!1);for(var n=0;n<this.items.length;n++){var r=this.items[n];r.editor&&r.editor.updateValueFromSurvey(r.value)}this.updateIsAnswered()},t.prototype.onSurveyValueChanged=function(t){e.prototype.onSurveyValueChanged.call(this,t);for(var n=0;n<this.items.length;n++){var r=this.items[n];r.editor&&r.editor.onSurveyValueChanged(r.value)}},t.prototype.editorsOnSurveyLoad=function(){for(var e=0;e<this.items.length;e++){var t=this.items[e];t.editor&&t.editor.onSurveyLoad()}},Object.defineProperty(t.prototype,"items",{get:function(){return this.getPropertyValue("items")},set:function(e){this.setPropertyValue("items",e)},enumerable:!0,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.addConditionNames=function(e){for(var t=0;t<this.items.length;t++)e.push(this.name+"."+this.items[t].name)},t.prototype.addConditionObjectsByContext=function(e,t){for(var n=0;n<this.items.length;n++){var r=this.items[n];e.push({name:this.name+"."+r.name,text:this.processedTitle+"."+r.fullTitle,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=this.getItemByName(n);if(!r)return null;var o=(new s.b).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.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:!0,configurable:!0}),Object.defineProperty(t.prototype,"itemSize",{get:function(){return this.getPropertyValue("itemSize")},set:function(e){this.setPropertyValue("itemSize",e)},enumerable:!0,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 c(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()},o=this.items[i].editor.hasErrors(t)||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.getMultipleTextValue=function(e){return this.value?this.value[e]:null},t.prototype.setMultipleTextValue=function(e,t){this.isMultipleItemValueChanging=!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.getSurvey=function(){return this.survey},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.getChildrenLayoutType=function(){return"row"},t.prototype.elementWidthChanged=function(e){},Object.defineProperty(t.prototype,"elements",{get:function(){return[]},enumerable:!0,configurable:!0}),t.prototype.indexOf=function(e){return-1},t}(i.a);s.a.addClass("multipletextitem",["name","isRequired:boolean",{name:"placeHolder",serializationProperty:"locPlaceHolder"},{name:"inputType",default:"text",choices:["color","date","datetime","datetime-local","email","month","number","password","range","tel","text","time","url","week"]},{name:"title",serializationProperty:"locTitle"},{name:"maxLength:number",default:-1},{name:"requiredErrorText:text",serializationProperty:"locRequiredErrorText"},{name:"validators:validators",baseClassName:"surveyvalidator",classNamePart:"validator"}],function(){return new c("")}),s.a.addClass("multipletext",[{name:"!items:textitems",className:"multipletextitem"},{name:"itemSize:number",default:25,minValue:0},{name:"colCount:number",default:1,choices:[1,2,3,4,5]}],function(){return new p("")},"question"),l.b.Instance.registerQuestion("multipletext",function(e){var t=new p(e);return t.addItem("text1"),t.addItem("text2"),t})},function(e,t,n){"use strict";var r=n(0),o=n(4),i=n(2),a=n(23),s=n(15),l=n(9),u=n(20),c=n(1),p=n(3),d=n(11),h=n(8);n.d(t,"b",function(){return f}),n.d(t,"a",function(){return g});var f=function(){function e(e,t){this.data=e,this.panelValue=t;var n=this;this.textPreProcessor=new a.a,this.textPreProcessor.onProcess=function(e){n.getProcessedTextValue(e)},this.setSurveyImpl()}return Object.defineProperty(e.prototype,"panel",{get:function(){return this.panelValue},enumerable:!0,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){this.data.setPanelItemData(this,e,t)},e.prototype.getVariable=function(e){},e.prototype.setVariable=function(e,t){},e.prototype.getComment=function(e){var t=this.getValue(e+h.a.commentPrefix);return t||""},e.prototype.setComment=function(e,t,n){this.setValue(e+h.a.commentPrefix,t)},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];return t[e.ItemVariableName]=this.getAllValues(),t},e.prototype.getFilteredProperties=function(){return this.data&&this.data.getRootData()?this.data.getRootData().getFilteredProperties():{survey:this.getSurvey()}},e.prototype.geSurveyData=function(){return this},e.prototype.getSurvey=function(){return this.data?this.data.getSurvey():null},e.prototype.getTextProcessor=function(){return this},e.prototype.getProcessedTextValue=function(t){if(t){if(t.name==e.IndexVariableName)return t.isExists=!0,void(t.value=this.data.getItemIndex(this)+1);var n=(new s.a).getFirstName(t.name);if(t.isExists=n==e.ItemVariableName,t.canProcess=t.isExists,t.canProcess){t.name=t.name.replace(e.ItemVariableName+".","");var n=(new s.a).getFirstName(t.name),r=this.panel.getQuestionByValueName(n);!r&&this.data&&(r=this.data.getSharedQuestionFromArray(n,this.data.getItemIndex(this)));var o={};if(r)o[n]=t.returnDisplayValue?r.displayValue:r.value;else{var i=this.getAllValues();i&&(o[n]=i[n])}t.value=(new s.a).getValue(t.name,o)}}},e.prototype.processText=function(e,t){e=this.textPreProcessor.process(e,t);var n=this.getSurvey();return n?n.processText(e,t):e},e.prototype.processTextEx=function(e,t){e=this.processText(e,t);var n=this.textPreProcessor.hasAllValuesOnLastRun,r={hasAllValuesOnLastRun:!0,text:e};return this.getSurvey()&&(r=this.getSurvey().processTextEx(e,t,!1)),r.hasAllValuesOnLastRun=r.hasAllValuesOnLastRun&&n,r},e.ItemVariableName="panel",e.IndexVariableName="panelIndex",e}(),m=function(){function e(e){this.data=e}return e.prototype.geSurveyData=function(){return null},e.prototype.getSurvey=function(){return this.data.getSurvey()},e.prototype.getTextProcessor=function(){return null},e}(),g=function(e){function t(t){var n=e.call(this,t)||this;n.name=t,n.loadingPanelCount=0,n.currentIndexValue=-1,n.isAddingNewPanels=!1,n.createNewArray("panels"),n.templateValue=n.createAndSetupNewPanelObject(),n.template.renderWidth="100%",n.template.selectedElementInDesign=n;var r=n;return n.template.addElementCallback=function(e){r.addOnPropertyChangedCallback(e),r.rebuildPanels()},n.template.removeElementCallback=function(e){r.rebuildPanels()},n.createLocalizableString("confirmDeleteText",n),n.createLocalizableString("keyDuplicationError",n),n.createLocalizableString("panelAddText",n),n.createLocalizableString("panelRemoveText",n),n.createLocalizableString("panelPrevText",n),n.createLocalizableString("panelNextText",n),n.registerFunctionOnPropertyValueChanged("panelsState",function(){r.setPanelsState()}),n}return n.i(r.b)(t,e),t.prototype.setSurveyImpl=function(t){e.prototype.setSurveyImpl.call(this,t),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.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.isDesignMode&&0!=this.panels.length){if(c.a.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)}}},t.prototype.getType=function(){return"paneldynamic"},Object.defineProperty(t.prototype,"isAllowTitleLeft",{get:function(){return!1},enumerable:!0,configurable:!0}),t.prototype.removeElement=function(e){return this.template.removeElement(e)},Object.defineProperty(t.prototype,"template",{get:function(){return this.templateValue},enumerable:!0,configurable:!0}),t.prototype.getPanel=function(){return this.template},Object.defineProperty(t.prototype,"templateElements",{get:function(){return this.template.elements},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"templateTitle",{get:function(){return this.template.title},set:function(e){this.template.title=e},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"locTemplateTitle",{get:function(){return this.template.locTitle},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"templateDescription",{get:function(){return this.template.description},set:function(e){this.template.description=e},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"locTemplateDescription",{get:function(){return this.template.locDescription},enumerable:!0,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:!0,configurable:!0}),Object.defineProperty(t.prototype,"panels",{get:function(){return this.getPropertyValue("panels")},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"currentIndex",{get:function(){return this.isRenderModeList?-1:this.isDesignMode?0:(this.currentIndexValue<0&&this.panelCount>0&&(this.currentIndexValue=0),this.currentIndexValue>=this.panelCount&&(this.currentIndexValue=this.panelCount-1),this.currentIndexValue)},set:function(e){this.currentIndexValue!==e&&(e>=this.panelCount&&(e=this.panelCount-1),this.currentIndexValue=e,this.fireCallback(this.currentIndexChangedCallback))},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"currentPanel",{get:function(){var e=this.currentIndex;return e<0||e>=this.panels.length?null:this.panels[e]},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"confirmDelete",{get:function(){return this.getPropertyValue("confirmDelete",!1)},set:function(e){this.setPropertyValue("confirmDelete",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"keyName",{get:function(){return this.getPropertyValue("keyName","")},set:function(e){this.setPropertyValue("keyName",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"confirmDeleteText",{get:function(){return this.getLocalizableStringText("confirmDeleteText",i.a.getString("confirmDelete"))},set:function(e){this.setLocalizableStringText("confirmDeleteText",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"locConfirmDeleteText",{get:function(){return this.getLocalizableString("confirmDeleteText")},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"keyDuplicationError",{get:function(){return this.getLocalizableStringText("keyDuplicationError",i.a.getString("keyDuplicationError"))},set:function(e){this.setLocalizableStringText("keyDuplicationError",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"locKeyDuplicationError",{get:function(){return this.getLocalizableString("keyDuplicationError")},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"panelPrevText",{get:function(){return this.getLocalizableStringText("panelPrevText",i.a.getString("pagePrevText"))},set:function(e){this.setLocalizableStringText("panelPrevText",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"locPanelPrevText",{get:function(){return this.getLocalizableString("panelPrevText")},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"panelNextText",{get:function(){return this.getLocalizableStringText("panelNextText",i.a.getString("pageNextText"))},set:function(e){this.setLocalizableStringText("panelNextText",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"locPanelNextText",{get:function(){return this.getLocalizableString("panelNextText")},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"panelAddText",{get:function(){return this.getLocalizableStringText("panelAddText",i.a.getString("addPanel"))},set:function(e){this.setLocalizableStringText("panelAddText",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"locPanelAddText",{get:function(){return this.getLocalizableString("panelAddText")},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"panelRemoveText",{get:function(){return this.getLocalizableStringText("panelRemoveText",i.a.getString("removePanel"))},set:function(e){this.setLocalizableStringText("panelRemoveText",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"locPanelRemoveText",{get:function(){return this.getLocalizableString("panelRemoveText")},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"isProgressTopShowing",{get:function(){return"progressTop"==this.renderMode||"progressTopBottom"==this.renderMode},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"isProgressBottomShowing",{get:function(){return"progressBottom"==this.renderMode||"progressTopBottom"==this.renderMode},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"isPrevButtonShowing",{get:function(){return this.currentIndex>0},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"isNextButtonShowing",{get:function(){return this.currentIndex>=0&&this.currentIndex<this.panelCount-1},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"isRangeShowing",{get:function(){return this.showRangeInProgress&&this.currentIndex>=0&&this.panelCount>1},enumerable:!0,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)},Object.defineProperty(t.prototype,"panelCount",{get:function(){return this.isLoadingFromJson||this.isDesignMode?this.loadingPanelCount:this.panels.length},set:function(e){if(!(e<0)){if(this.isLoadingFromJson||this.isDesignMode)return void(this.loadingPanelCount=e);if(e!=this.panels.length&&!this.isDesignMode){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.collapse())}e<this.panelCount&&this.panels.splice(e,this.panelCount-e),this.setValueAfterPanelsCreating(),this.setValueBasedOnPanelCount(),this.reRunCondition(),this.fireCallback(this.panelCountChangedCallback)}}},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"panelsState",{get:function(){return this.getPropertyValue("panelsState")},set:function(e){this.setPropertyValue("panelsState",e)},enumerable:!0,configurable:!0}),t.prototype.setTemplatePanelSurveyImpl=function(){this.template.setSurveyImpl(this.isDesignMode?this.surveyImpl:new m(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.isDesignMode&&"list"==this.renderMode)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",0)},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:!0,configurable:!0}),Object.defineProperty(t.prototype,"maxPanelCount",{get:function(){return this.getPropertyValue("maxPanelCount",h.a.panelMaximumPanelCount)},set:function(e){e<=0||(e>h.a.panelMaximumPanelCount&&(e=h.a.panelMaximumPanelCount),e!=this.maxPanelCount&&(this.setPropertyValue("maxPanelCount",e),e<this.minPanelCount&&(this.minPanelCount=e),this.panelCount>e&&(this.panelCount=e)))},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"allowAddPanel",{get:function(){return this.getPropertyValue("allowAddPanel")},set:function(e){this.setPropertyValue("allowAddPanel",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"allowRemovePanel",{get:function(){return this.getPropertyValue("allowRemovePanel")},set:function(e){this.setPropertyValue("allowRemovePanel",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"templateTitleLocation",{get:function(){return this.getPropertyValue("templateTitleLocation")},set:function(e){this.setPropertyValue("templateTitleLocation",e.toLowerCase())},enumerable:!0,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:!0,configurable:!0}),Object.defineProperty(t.prototype,"showRangeInProgress",{get:function(){return this.getPropertyValue("showRangeInProgress",!0)},set:function(e){this.setPropertyValue("showRangeInProgress",e),this.fireCallback(this.currentIndexChangedCallback)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"renderMode",{get:function(){return this.getPropertyValue("renderMode")},set:function(e){this.setPropertyValue("renderMode",e),this.fireCallback(this.renderModeChangedCallback)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"isRenderModeList",{get:function(){return"list"==this.renderMode},enumerable:!0,configurable:!0}),t.prototype.setVisibleIndex=function(t){if(!this.isVisible)return 0;for(var n="onSurvey"==this.showQuestionNumbers?t:0,r=0;r<this.panels.length;r++){var o=this.setPanelVisibleIndex(this.panels[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.survey||!this.survey.isDesignMode)&&(this.allowAddPanel&&!this.isReadOnly&&this.panelCount<this.maxPanelCount)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"canRemovePanel",{get:function(){return(!this.survey||!this.survey.isDesignMode)&&(this.allowRemovePanel&&!this.isReadOnly&&this.panelCount>this.minPanelCount)},enumerable:!0,configurable:!0}),t.prototype.rebuildPanels=function(){var e;if(!this.isLoadingFromJson){this.prepareValueForPanelCreating();var t=[];if(this.isDesignMode)new f(this,this.template),t.push(this.template);else for(var o=0;o<this.panelCount;o++)t.push(this.createNewPanel());(e=this.panels).splice.apply(e,n.i(r.d)([0,this.panels.length],t)),this.setValueAfterPanelsCreating(),this.setPanelsState(),this.reRunCondition(),this.fireCallback(this.panelCountChangedCallback)}},Object.defineProperty(t.prototype,"defaultPanelValue",{get:function(){return this.getPropertyValue("defaultPanelValue")},set:function(e){this.setPropertyValue("defaultPanelValue",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"defaultValueFromLastPanel",{get:function(){return this.getPropertyValue("defaultValueFromLastPanel",!1)},set:function(e){this.setPropertyValue("defaultValueFromLastPanel",e)},enumerable:!0,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))return void e.prototype.setDefaultValue.call(this);if(this.isEmpty()&&0!=this.panelCount){for(var t=[],n=0;n<this.panelCount;n++)t.push(this.defaultPanelValue);this.value=t}},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.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;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.copyValue=function(e,t){for(var n in t)e[n]=t[n]},t.prototype.removePanelUI=function(e){this.canRemovePanel&&(this.confirmDelete&&!confirm(this.confirmDeleteText)||this.removePanel(e))},t.prototype.goToNextPanel=function(){"list"!==this.renderMode&&this.currentPanel.hasErrors()||this.currentIndex++},t.prototype.goToPrevPanel=function(){this.currentIndex--},t.prototype.removePanel=function(e){var t=this.getPanelIndex(e);if(!(t<0||t>=this.panelCount)){this.panels.splice(t,1);var e=this.value;!e||!Array.isArray(e)||t>=e.length||(e.splice(t,1),this.value=e,this.fireCallback(this.panelCountChangedCallback),this.survey&&this.survey.dynamicPanelRemoved(this,t))}},t.prototype.getPanelIndex=function(e){if(o.a.isNumber(e))return e;for(var t=this.items,n=0;n<this.panels.length;n++)if(this.panels[n]===e||t[n]===e)return n;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()},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)t.getQuestionByName(i)||this.getSharedQuestionFromArray(i,e)||(delete r[i],o=!0);o&&(n[e]=r,this.value=n)}},t.prototype.getSharedQuestionFromArray=function(e,t){return this.survey&&this.valueName?this.survey.getQuestionByValueNameFromArray(this.valueName,e,t):null},t.prototype.addConditionNames=function(e){for(var t=this.name+"[0].",n=[],r=this.template.questions,o=0;o<r.length;o++)r[o].addConditionNames(n);for(var o=0;o<n.length;o++)e.push(t+n[o])},t.prototype.addConditionObjectsByContext=function(e,t){for(var n=!!t&&this.template.questions.indexOf(t)>-1,r=this.name+"[0].",o=this.processedTitle+"[0].",i=new Array,a=this.template.questions,s=0;s<a.length;s++)a[s].addConditionObjectsByContext(i,t);for(var s=0;s<i.length;s++)e.push({name:r+i[s].name,text:o+i[s].text,question:i[s].question});if(n)for(var s=0;s<i.length;s++)i[s].question!=t&&e.push({name:"panel."+i[s].name,text:"panel."+i[s].text,question:i[s].question})},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.substr(0,o),n=n.substr(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;e.prototype.onReadOnlyChanged.call(this)},t.prototype.onSurveyLoad=function(){this.template.readOnly=this.isReadOnly,this.template.onSurveyLoad(),this.loadingPanelCount>0&&(this.panelCount=this.loadingPanelCount),this.isDesignMode&&this.rebuildPanels(),this.setPanelsSurveyImpl(),this.setPanelsState(),this.assignOnPropertyChangedToTemplate(),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.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)));for(var r=0;r<this.panels.length;r++){var o=this.getPanelItemData(this.panels[r].data);n[f.ItemVariableName.toLowerCase()]=o,n[f.IndexVariableName.toLowerCase()]=r,this.panels[r].runCondition(n,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(f.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,t=e.parent;t;)t.updateContainsErrors(),t=t.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;if(this.changingValueQuestion){var r=this.changingValueQuestion.hasErrors(t,n);return r=this.hasKeysDuplicated(t,n)||r,this.updatePanelsContainsErrors(),r}var o=this.hasErrorInPanels(t,n);return e.prototype.hasErrors.call(this,t)||o},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.panels,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.clearValueIfInvisible=function(){for(var t=0;t<this.panels.length;t++)for(var n=this.panels[t].questions,r=0;r<n.length;r++)n[r].clearValueIfInvisible();e.prototype.clearValueIfInvisible.call(this)},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=0;n<this.panels.length;n++)for(var r=this.panels[n].questions,o=0;o<r.length;o++){var i=r[o].getAllErrors();i&&i.length>0&&(t=t.concat(i))}return t},t.prototype.getDisplayValueCore=function(e,t){var n=this.createValueCopy();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;var r=this.panels[e];for(var o in t){var i=r.getQuestionByValueName(o);i||(i=this.getSharedQuestionFromArray(o,e)),i&&(t[o]=i.getDisplayValue(n))}return t},t.prototype.hasErrorInPanels=function(e,t){for(var n=!1,r=this.panels,o=[],i=0;i<r.length;i++)this.setOnCompleteAsyncInPanel(r[i]);for(var i=0;i<r.length;i++){var a=r[i].hasErrors(e,!!t&&t.focuseOnFirstError,t);a=this.isValueDuplicated(r[i],o,t)||a,this.isRenderModeList||!a||n||(this.currentIndex=i),n=a||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 a=0;a<t.length;a++)if(i==t[a])return o.addError(new d.h(this.keyDuplicationError,this)),n&&!n.firstErrorQuestion&&(n.firstErrorQuestion=o),!0;return t.push(i),!1},t.prototype.createNewPanel=function(){var e=this.createAndSetupNewPanelObject(),t=this.template.toJSON();return(new c.b).toObject(t,e),e.renderWidth="100%",e.updateCustomWidgets(),new f(this,e),e},t.prototype.createAndSetupNewPanelObject=function(){var e=this.createNewPanelObject(),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 new u.b},t.prototype.setPanelCountBasedOnValue=function(){if(!this.isValueChangingInternally){var e=this.value,t=e&&Array.isArray(e)?e.length:0;0==t&&this.loadingPanelCount>0&&(t=this.loadingPanelCount),this.panelCount=t}},t.prototype.setQuestionValue=function(t){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){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()},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()+h.a.commentPrefix])}},t.prototype.panelSurveyValueChanged=function(e){for(var t=e.questions,n=this.getPanelItemData(e.data),r=0;r<t.length;r++){var o=t[r];o.onSurveyValueChanged(n[o.getValueName()])}},t.prototype.onSetData=function(){e.prototype.onSetData.call(this),this.isDesignMode&&(this.setTemplatePanelSurveyImpl(),this.rebuildPanels())},t.prototype.getItemIndex=function(e){return this.items.indexOf(e)},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){var r=this.items,i=r.indexOf(e);i<0&&(i=r.length);var a=o.a.getUnbindValue(this.value);if(a&&Array.isArray(a)||(a=[]),a.length<=i)for(var s=a.length;s<=i;s++)a.push({});if(a[i]||(a[i]={}),this.isValueEmpty(n)?delete a[i][t]:a[i][t]=n,i>=0&&i<this.panels.length&&(this.changingValueQuestion=this.panels[i].getQuestionByValueName(t)),this.value=a,this.changingValueQuestion=null,this.survey){var l={question:this,panel:e.panel,name:t,itemIndex:i,itemValue:a[i],value:n};this.survey.dynamicPanelItemValueChanged(this,l)}},t.prototype.getSurvey=function(){return this.survey},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},Object.defineProperty(t.prototype,"progressText",{get:function(){var e=this.panelCount;return i.a.getString("panelDynamicProgressText").format(this.currentIndex+1,e)},enumerable:!0,configurable:!0}),t}(l.a);c.a.addClass("paneldynamic",[{name:"templateElements",alternativeName:"questions",visible:!1,isLightSerializable:!1},{name:"templateTitle:text",serializationProperty:"locTemplateTitle"},{name:"templateDescription:text",serializationProperty:"locTemplateDescription"},{name:"allowAddPanel:boolean",default:!0},{name:"allowRemovePanel:boolean",default:!0},{name:"panelCount:number",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:h.a.panelMaximumPanelCount},"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"]},{name:"templateTitleLocation",default:"default",choices:["default","top","bottom","left"]}],function(){return new g("")},"question"),p.b.Instance.registerQuestion("paneldynamic",function(e){return new g(e)})},function(e,t,n){"use strict";var r=n(0),o=n(1),i=n(3),a=n(21),s=n(2),l=n(12);n.d(t,"a",function(){return u});var u=function(e){function t(t){var n=e.call(this,t)||this;return n.name=t,n}return n.i(r.b)(t,e),t.prototype.getType=function(){return"radiogroup"},t.prototype.getFirstInputElementId=function(){return this.inputId+"_0"},Object.defineProperty(t.prototype,"selectedItem",{get:function(){return this.isEmpty()?null:l.a.getItemByValue(this.visibleChoices,this.value)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"showClearButton",{get:function(){return this.getPropertyValue("showClearButton",!1)},set:function(e){this.setPropertyValue("showClearButton",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"canShowClearButton",{get:function(){return this.showClearButton&&!this.isReadOnly},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"clearButtonCaption",{get:function(){return s.a.getString("clearCaption")},enumerable:!0,configurable:!0}),t.prototype.supportGoNextPageAutomatic=function(){return!0},t}(a.a);o.a.addClass("radiogroup",[{name:"showClearButton:boolean",default:!1}],function(){return new u("")},"checkboxbase"),i.b.Instance.registerQuestion("radiogroup",function(e){var t=new u(e);return t.choices=i.b.DefaultChoices,t})},function(e,t,n){"use strict";var r=n(0),o=n(12),i=n(9),a=n(1),s=n(3),l=n(8);n.d(t,"a",function(){return u});var u=function(e){function t(t){var n=e.call(this,t)||this;n.name=t,n.rates=n.createItemValues("rates");var r=n;n.registerFunctionOnPropertyValueChanged("rates",function(){r.fireCallback(r.rateValuesChangedCallback)}),n.onPropertyChanged.add(function(e,t){"rateMin"!=t.name&&"rateMax"!=t.name&&"rateStep"!=t.name||r.fireCallback(r.rateValuesChangedCallback)});var o=n.createLocalizableString("minRateDescription",n,!0),i=n.createLocalizableString("maxRateDescription",n,!0);return o.onGetTextCallback=function(e){return e?e+" ":e},i.onGetTextCallback=function(e){return e?" "+e:e},n}return n.i(r.b)(t,e),t.prototype.onSurveyLoad=function(){e.prototype.onSurveyLoad.call(this),this.fireCallback(this.rateValuesChangedCallback)},Object.defineProperty(t.prototype,"rateValues",{get:function(){return this.rates},set:function(e){this.setPropertyValue("rates",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"rateMin",{get:function(){return this.getPropertyValue("rateMin")},set:function(e){!this.isLoadingFromJson&&e>this.rateMax-this.rateStep&&(e=this.rateMax-this.rateStep),this.setPropertyValue("rateMin",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"rateMax",{get:function(){return this.getPropertyValue("rateMax")},set:function(e){!this.isLoadingFromJson&&e<this.rateMin+this.rateStep&&(e=this.rateMin+this.rateStep),this.setPropertyValue("rateMax",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"rateStep",{get:function(){return this.getPropertyValue("rateStep")},set:function(e){e<=0&&(e=1),!this.isLoadingFromJson&&e>this.rateMax-this.rateMin&&(e=this.rateMax-this.rateMin),this.setPropertyValue("rateStep",e)},enumerable:!0,configurable:!0}),t.prototype.getDisplayValueCore=function(e,t){var n=o.a.getTextOrHtmlByValue(this.visibleRateValues,t);return n||t},Object.defineProperty(t.prototype,"visibleRateValues",{get:function(){if(this.rateValues.length>0)return this.rateValues;for(var e=[],t=this.rateMin;t<=this.rateMax&&e.length<l.a.ratingMaximumRateValueCount;)e.push(new o.a(t)),t+=this.rateStep;return e},enumerable:!0,configurable:!0}),t.prototype.getType=function(){return"rating"},t.prototype.supportGoNextPageAutomatic=function(){return!0},t.prototype.supportComment=function(){return!0},t.prototype.supportOther=function(){return!0},Object.defineProperty(t.prototype,"minRateDescription",{get:function(){return this.getLocalizableStringText("minRateDescription")},set:function(e){this.setLocalizableStringText("minRateDescription",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"locMinRateDescription",{get:function(){return this.getLocalizableString("minRateDescription")},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"maxRateDescription",{get:function(){return this.getLocalizableStringText("maxRateDescription")},set:function(e){this.setLocalizableStringText("maxRateDescription",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"locMaxRateDescription",{get:function(){return this.getLocalizableString("maxRateDescription")},enumerable:!0,configurable:!0}),t}(i.a);a.a.addClass("rating",[{name:"hasComment:boolean",layout:"row"},{name:"commentText",serializationProperty:"locCommentText",layout:"row"},{name:"rateValues:itemvalue[]"},{name:"rateMin:number",default:1},{name:"rateMax:number",default:5},{name:"rateStep:number",default:1,minValue:1},{name:"minRateDescription",alternativeName:"mininumRateDescription",serializationProperty:"locMinRateDescription"},{name:"maxRateDescription",alternativeName:"maximumRateDescription",serializationProperty:"locMaxRateDescription"}],function(){return new u("")},"question"),s.b.Instance.registerQuestion("rating",function(e){return new u(e)})},function(e,t,n){"use strict";var r=n(0),o=n(9),i=n(1);n.d(t,"a",function(){return a});var a=function(e){function t(t){var n=e.call(this,t)||this;return n.name=t,n}return n.i(r.b)(t,e),t.prototype.getType=function(){return"nonvalue"},Object.defineProperty(t.prototype,"hasInput",{get:function(){return!1},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"hasTitle",{get:function(){return!1},enumerable:!0,configurable:!0}),t.prototype.getTitleLocation=function(){return""},Object.defineProperty(t.prototype,"hasComment",{get:function(){return!1},enumerable:!0,configurable:!0}),t.prototype.getAllErrors=function(){return[]},t.prototype.supportGoNextPageAutomatic=function(){return!1},t.prototype.addConditionNames=function(e){},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.a);i.a.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:"isRequired",visible:!1},{name:"requiredErrorText",visible:!1},{name:"readOnly",visible:!1},{name:"requiredIf",visible:!1},{name:"validators",visible:!1},{name:"titleLocation",visible:!1},{name:"useDisplayValuesInTitle",visible:!1}],function(){return new a("")},"question")},function(e,t,n){"use strict";var r=n(0),o=n(5),i=n(19);n.d(t,"a",function(){return a});var a=function(e){function t(t,n){void 0===n&&(n=null);var r=e.call(this)||this;r.closeOnCompleteTimeout=0,r.surveyValue=n||r.createSurvey(t),r.surveyValue.showTitle=!1,"undefined"!=typeof document&&(r.windowElement=document.createElement("div"));var o=r;return r.survey.onComplete.add(function(e,t){o.onSurveyComplete()}),r}return n.i(r.b)(t,e),t.prototype.getType=function(){return"window"},Object.defineProperty(t.prototype,"survey",{get:function(){return this.surveyValue},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"isShowing",{get:function(){return this.getPropertyValue("isShowing",!1)},set:function(e){this.isShowing!=e&&(this.setPropertyValue("isShowing",e),this.showingChangedCallback&&this.showingChangedCallback())},enumerable:!0,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),!this.isLoadingFromJson&&this.expandedChangedCallback&&this.expandedChangedCallback()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"title",{get:function(){return this.survey.title},set:function(e){this.survey.title=e},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"locTitle",{get:function(){return this.survey.locTitle},enumerable:!0,configurable:!0}),t.prototype.expand=function(){this.expandcollapse(!0)},t.prototype.collapse=function(){this.expandcollapse(!1)},t.prototype.createSurvey=function(e){return new i.a(e)},t.prototype.expandcollapse=function(e){this.isExpanded=e},t.prototype.onSurveyComplete=function(){if(!(this.closeOnCompleteTimeout<0))if(0==this.closeOnCompleteTimeout)this.closeWindowOnComplete();else{var e=this,t=null,n=function(){e.closeWindowOnComplete(),window.clearInterval(t)};t=window.setInterval(n,1e3*this.closeOnCompleteTimeout)}},t.prototype.closeWindowOnComplete=function(){this.closeWindowOnCompleteCallback&&this.closeWindowOnCompleteCallback()},t.surveyElementName="windowSurveyJS",t}(o.c)},function(e,t,n){"use strict";var r=n(5);n.d(t,"a",function(){return i});var o={setTimeout:function(e){return window.setTimeout(e,1e3)},clearTimeout:function(e){window.clearTimeout(e)}},i=function(){function e(){this.listenerCounter=0,this.timerId=-1,this.onTimer=new r.a}return Object.defineProperty(e,"instance",{get:function(){return e.instanceValue||(e.instanceValue=new e),e.instanceValue},enumerable:!0,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),0==--this.listenerCounter&&this.timerId>-1&&(o.clearTimeout(this.timerId),this.timerId=-1)},e.prototype.doTimer=function(){var e=this;this.timerId<0||(this.onTimer.fire(this,{}),this.timerId=o.setTimeout(function(){e.doTimer()}))},e.instanceValue=null,e}()},function(e,t,n){"use strict";var r=(n(38),n(37),n(0),n(13),n(34),n(35),n(36),n(18));n.d(t,"a",function(){return r.b});var o=(n(16),n(26),n(108),n(7),n(17),n(110),n(111),n(112),n(115),n(116),n(118),n(43),n(119),n(121),n(120),n(122),n(123),n(44),n(109),n(113),n(114),n(117),n(107));n.d(t,"b",function(){return o.a});var i=(n(45),n(6)),a=(n.n(i),n(19));n.i(r.a)(i,a.a.platform)},function(e,t,n){"use strict";var r=n(13);n.d(t,"a",function(){return o});var o=function(e,t){var n=function(){if("model"==o||"children"==o)return"continue";if("css"==o)return e.mergeValues(t.css,r.b.getCss()),"continue";if(0==o.indexOf("on")&&e[o]&&e[o].add){var n=t[o],i=function(e,t){n(e,t)};e[o].add(i)}else e[o]=t[o]};for(var o in t)n();t&&t.data&&e.onValueChanged.add(function(e,n){t.data[n.name]=n.value})}},function(t,n){t.exports=e},function(e,t){},function(e,t){},function(e,t){e.exports='<script type="text/html" id="survey-comment">\n \x3c!--ko if: !question.isSurveyInputTextUpdate --\x3e\n <textarea type="text" data-bind="disable: question.isReadOnly, value: $data.question.comment, visible: $data.visible, css: question.koCss().other, attr: {maxLength: question.getOthersMaxLength(), \'aria-label\': !!question.locTitle && question.locTitle.renderedHtml, placeholder: question.otherPlaceHolder}"></textarea>\n \x3c!--/ko--\x3e\n \x3c!--ko if: question.isSurveyInputTextUpdate --\x3e\n <textarea type="text" data-bind="disable: question.isReadOnly, textInput: $data.question.comment, visible: $data.visible, css: question.koCss().other, attr: {maxLength: question.getOthersMaxLength(), \'aria-label\': !!question.locTitle && question.locTitle.renderedHtml, placeholder: question.otherPlaceHolder}"></textarea>\n \x3c!--/ko--\x3e\n<\/script>\n'},function(e,t){e.exports='<script type="text/html" id="survey-flowpanel">\n <div data-bind="style:{ width: renderWidth }, attr: {id: id}, css: cssClasses.panel.container">\n <h4 data-bind="visible: (processedTitle.length > 0), css: cssClasses.panel.title">\n \x3c!-- ko template: { name: \'survey-string\', data: locTitle } --\x3e\n \x3c!-- /ko --\x3e\n </h4>\n <div data-bind="css: cssClasses.panel.description">\n \x3c!-- ko template: { name: \'survey-string\', data: locDescription } --\x3e\n \x3c!-- /ko --\x3e\n </div>\n <div data-bind="style: { paddingLeft: innerPaddingLeft}"></div>\n <f-panel params="question: question" data-bind="attr: {contenteditable : question.isDesignMode, placeHolder: question.placeHolder}"></f-panel>\n </div>\n<\/script>\n<script type="text/html" id="survey-flowpanel-question">\n \x3c!-- ko with: $parent.question.getQuestionByName($data) --\x3e\n \x3c!-- ko template: { name: koElementType(), data: $data, as: \'question\', afterRender: parent.koElementAfterRender } --\x3e\x3c!-- /ko --\x3e\n \x3c!-- /ko --\x3e\n<\/script>\n'},function(e,t){e.exports='<script type="text/html" id="survey-content">\n\n <div data-bind="css: css.root, afterRender: koEventAfterRender">\n <form onsubmit="return false;">\n <div class="sv_custom_header"></div>\n <div data-bind="css: css.container">\n \x3c!-- ko if: (locTitle.koRenderedHtml().length > 0) && showTitle --\x3e\n <div data-bind="css: css.header">\n <h3>\x3c!-- ko template: { name: \'survey-string\', data: locTitle } --\x3e\x3c!-- /ko --\x3e</h3>\n <h5>\x3c!-- ko template: { name: \'survey-string\', data: locDescription } --\x3e\x3c!-- /ko --\x3e</h5>\n </div>\n \x3c!-- /ko --\x3e\n \x3c!-- ko if: koState() == "starting" --\x3e\n <div data-bind="css: css.body">\n \x3c!-- ko if: isNavigationButtonsShowing === \'top\' || isNavigationButtonsShowing === \'both\' --\x3e\n \x3c!-- ko template: { name: \'survey-navigation-start\'} --\x3e\n \x3c!-- /ko --\x3e\n \x3c!-- /ko --\x3e\n <div data-bind="attr: { id: startedPage.id }, template: { name: \'survey-page\', data: startedPage, afterRender: koAfterRenderPage }"></div>\n \x3c!-- ko if: isNavigationButtonsShowing === \'bottom\' || isNavigationButtonsShowing === \'both\' --\x3e\n \x3c!-- ko template: { name: \'survey-navigation-start\'} --\x3e\n \x3c!-- /ko --\x3e\n \x3c!-- /ko --\x3e\n </div>\n \x3c!-- /ko --\x3e\n \x3c!-- ko if: koState() == "running" --\x3e\n <div data-bind="css: css.body">\n \x3c!-- ko if: isTimerPanelShowingOnTop --\x3e\n \x3c!-- ko template: { name: \'survey-timerpanel\'} --\x3e\n \x3c!-- /ko --\x3e\n \x3c!-- /ko --\x3e\n \n \x3c!-- ko if: isShowProgressBarOnTop --\x3e\n \x3c!-- ko template: { name: \'survey-progress\'} --\x3e\n \x3c!-- /ko --\x3e\n \x3c!-- /ko --\x3e\n \x3c!-- ko if: isNavigationButtonsShowing === \'top\' || isNavigationButtonsShowing === \'both\' --\x3e\n \x3c!-- ko template: { name: \'survey-navigation\'} --\x3e\n \x3c!-- /ko --\x3e\n \x3c!-- /ko --\x3e\n \x3c!-- ko if: koCurrentPage --\x3e\n <div data-bind="attr: { id: koCurrentPage().id }, template: { name: \'survey-page\', data: koCurrentPage, afterRender: koAfterRenderPage }"></div>\n \x3c!-- /ko --\x3e\n\n \x3c!-- ko if: isShowProgressBarOnBottom --\x3e\n \x3c!-- ko template: { name: \'survey-progress\'} --\x3e\n \x3c!-- /ko --\x3e\n \x3c!-- /ko --\x3e\n \n \x3c!-- ko if: isTimerPanelShowingOnBottom --\x3e\n \x3c!-- ko template: { name: \'survey-timerpanel\'} --\x3e\n \x3c!-- /ko --\x3e\n \x3c!-- /ko --\x3e\n \x3c!-- ko if: isNavigationButtonsShowing === \'bottom\' || isNavigationButtonsShowing === \'both\' --\x3e\n \x3c!-- ko template: { name: \'survey-navigation\'} --\x3e\n \x3c!-- /ko --\x3e\n \x3c!-- /ko --\x3e\n </div>\n \x3c!-- /ko --\x3e\n \x3c!-- ko if: koState() == "completed" && showCompletedPage --\x3e\n <div data-bind="html: processedCompletedHtml, css: completedCss"></div>\n <div data-bind="visible: koCompletedState() != \'\', css: css.saveData.root">\n <div data-bind="css: koCompletedStateCss">\n <span data-bind="text:koCompletedStateText"></span>\n <input type="button" data-bind="visible: koCompletedState() == \'error\', value: getLocString(\'saveAgainButton\'), click: doComplete, css: css.saveData.saveAgainButton"\n />\n </div>\n </div>\n \x3c!-- /ko --\x3e\n \x3c!-- ko if: koState() == "completedbefore" --\x3e\n <div data-bind="html: processedCompletedBeforeHtml, css: css.body"></div>\n \x3c!-- /ko --\x3e\n \x3c!-- ko if: koState() == "loading" --\x3e\n <div data-bind="html: processedLoadingHtml, css: css.body"></div>\n \x3c!-- /ko --\x3e\n \x3c!-- ko if: koState() == "empty" --\x3e\n <div data-bind="text:emptySurveyText, css: css.bodyEmpty"></div>\n \x3c!-- /ko --\x3e\n </div>\n </form>\n </div>\n<\/script>\n<script type="text/html" id="survey-navigation">\n <div data-bind="css: css.footer">\n <input type="button" data-bind="value: pagePrevText, click: prevPage, visible: !koIsFirstPage() && isShowPrevButton, css: cssNavigationPrev"\n />\n <input type="button" data-bind="value: pageNextText, click: nextPageUIClick, event: { mousedown: nextPageMouseDown }, visible: !koIsLastPage(), css: cssNavigationNext" />\n <input type="button" data-bind="value: completeText, click: completeLastPage, visible: koIsLastPage() && isEditMode, css: cssNavigationComplete"\n />\n </div>\n<\/script>\n<script type="text/html" id="survey-navigation-start">\n <div data-bind="css: css.footer">\n <input type="button" data-bind="value: startSurveyText, click: start, css: cssNavigationStart" />\n </div>\n<\/script>'},function(e,t){e.exports="<script type=\"text/html\" id=\"survey-matrixcell\">\n <td data-bind=\"css: question.koCss().asCell + ' ' + question.koCss().itemValue + (question.errors.length > 0 ? ' ' + question.koCss().hasError : ''), attr: { headers: question.isVisible ? question.locTitle.renderedHtml : '' }\">\n <div data-bind=\"visible: question.isVisible\">\n \x3c!-- ko if: question.survey.questionErrorLocation == 'top' --\x3e\n \x3c!-- ko template: { name: 'survey-question-errors', data: question } --\x3e\n \x3c!-- /ko --\x3e\n \x3c!-- /ko --\x3e\n\n \x3c!-- ko template: { name: question.koTemplateName(), data: question, as: 'question' } --\x3e\n \x3c!-- /ko --\x3e\n\n \x3c!-- ko if: question.survey.questionErrorLocation == 'bottom' --\x3e\n \x3c!-- ko template: { name: 'survey-question-errors', data: question } --\x3e\n \x3c!-- /ko --\x3e\n \x3c!-- /ko --\x3e\n </div>\n </td>\n<\/script>"},function(e,t){e.exports='<script type="text/html" id="survey-page">\n <div data-bind="css: data.css.page.root">\n <h4 data-bind="visible: data.showPageTitles, css: data.css.pageTitle">\n \x3c!-- ko template: { name: \'survey-string\', data: locTitle } --\x3e\n \x3c!-- /ko --\x3e\n </h4>\n <div data-bind="visible: data.showPageTitles, css: data.css.pageDescription">\n \x3c!-- ko template: { name: \'survey-string\', data: locDescription } --\x3e\n \x3c!-- /ko --\x3e\n </div>\n \x3c!-- ko template: { name: \'survey-rows\', data: $data} --\x3e\n \x3c!-- /ko --\x3e\n </div>\n<\/script>\n'},function(e,t){e.exports='<script type="text/html" id="survey-panel">\n <div data-bind="style:{ width: renderWidth }, attr: {id: id}, css: cssClasses.panel.container">\n <h4 data-bind="visible: (processedTitle.length > 0), css: $data.getTitleStyle(), click: doExpand">\n \x3c!-- ko template: { name: \'survey-string\', data: locTitle } --\x3e\n \x3c!-- /ko --\x3e\n <span data-bind="visible: koIsCollapsed() || koIsExpanded(), css: cssClasses.panel.icon + (!koIsCollapsed() ? \' \' + cssClasses.panel.iconExpanded: \'\')"></span>\n </h4>\n <div data-bind="css: cssClasses.panel.description">\n \x3c!-- ko template: { name: \'survey-string\', data: locDescription } --\x3e\n \x3c!-- /ko --\x3e\n </div>\n \x3c!-- ko template: { name: \'survey-question-errors\', data: $data } --\x3e\n \x3c!-- /ko --\x3e\n <div data-bind="visible: !koIsCollapsed(), style: { paddingLeft: innerPaddingLeft}, css: cssClasses.panel.content">\n \x3c!-- ko template: { name: \'survey-rows\', data: $data} --\x3e\n \x3c!-- /ko --\x3e\n </div>\n </div>\n<\/script>'},function(e,t){e.exports='<script type="text/html" id="survey-progress">\n <div data-bind="css: css.progress">\n <div data-bind="css: css.progressBar, style:{width: koProgress() + \'%\'}"\n role="progressbar" aria-valuemin="0" aria-valuemax="100">\n <span data-bind="text:koProgressText, css: css.progressText + \' \' + css.progressTextInBar"></span>\n </div>\n <span data-bind="text:koProgressText, css: css.progressText + \' \' + css.progressTextUnderBar"></span>\n </div>\n<\/script>'},function(e,t){e.exports='<script type="text/html" id="survey-question-boolean">\n <div data-bind="css: question.koCss().root">\n <label data-bind="css: question.getItemCss()">\n <input type="checkbox" data-bind="css: question.koCss().control, attr: {name: question.name, id: question.inputId, \'aria-required\': question.isRequired,\'aria-label\': question.locTitle.renderedHtml}, checked: question.checkedValue, surveyProp: {indeterminate: question.isIndeterminate}, enable: !question.isReadOnly"\n /> \n <span data-bind="css: question.getUncheckedLabelCss(), text: question.locLabelFalse.renderedHtml"></span>\n <div data-bind="css: question.koCss().switch">\n <span data-bind="css: question.koCss().slider"></span>\n </div>\n <span data-bind="css: question.getCheckedLabelCss(), text: question.locLabelTrue.renderedHtml"></span>\n </label>\n </div>\n<\/script>\n'},function(e,t){e.exports='<script type="text/html" id="survey-question-checkbox">\n <fieldset data-bind="css: question.koCss().root">\n <legend data-bind="attr: { \'aria-label\': question.locTitle.renderedHtml }"></legend>\n \x3c!-- ko ifnot: question.hasColumns --\x3e\n \x3c!-- ko foreach: { data: question.visibleChoices, as: \'item\', afterRender: question.koAfterRender } --\x3e\n \x3c!-- ko template: \'survey-checkbox-item\' --\x3e\n \x3c!-- /ko --\x3e\n \x3c!-- /ko --\x3e\n \x3c!-- /ko --\x3e\n \x3c!-- ko if: question.hasColumns --\x3e\n \x3c!-- ko foreach: question.columns --\x3e\n <div data-bind="css: question.getColumnClass()">\n \x3c!-- ko foreach: { data: $data, as: \'item\', afterRender: question.koAfterRender } --\x3e\n \x3c!-- ko template: \'survey-checkbox-item\' --\x3e\n \x3c!-- /ko --\x3e\n \x3c!-- /ko --\x3e\n </div>\n \x3c!-- /ko --\x3e\n \x3c!-- /ko --\x3e\n </fieldset>\n<\/script>\n<script type="text/html" id="survey-checkbox-item">\n <div data-bind="css: question.getItemClass(item) ">\n <label data-bind="css: question.getLabelClass(item)">\n \x3c!-- ko if: item == question.selectAllItem --\x3e\n <input type="checkbox" data-bind="attr: {name: question.name, id: question.inputId + \'_\' + $index(), \'aria-required\': question.isRequired, \'aria-label\': item.locText.renderedHtml }, checked: question.koAllSelected, enable: !question.isReadOnly, css: question.koCss().itemControl"/>\n \x3c!-- /ko --\x3e\n \x3c!-- ko if: item != question.selectAllItem --\x3e\n <input type="checkbox" data-bind="attr: {name: question.name, id: question.inputId + \'_\' + $index(), \'aria-required\': question.isRequired, \'aria-label\': item.locText.renderedHtml }, checkedValue: item.value, checked: question.koValue, enable: !question.isReadOnly && item.isEnabled, css: question.koCss().itemControl"/>\n \x3c!-- /ko --\x3e\n <span data-bind="css: question.koCss().materialDecorator">\n <svg viewBox="0 0 24 24" data-bind="css: question.koCss().itemDecorator">\n <path d="M5,13l2-2l3,3l7-7l2,2l-9,9L5,13z"/>\n </svg>\n <span class="check"></span>\n </span>\n <span data-bind="css: question.koCss().controlLabel, attr: { title: item.locText.koRenderedHtml }">\n \x3c!-- ko template: { name: \'survey-string\', data: item.locText } --\x3e\n \x3c!-- /ko --\x3e\n </span>\n </label>\n \x3c!-- ko if: question.hasOther && (item.value == question.otherItem.value) --\x3e\n <div class="form-group" data-bind="template: { name: \'survey-comment\', data: {\'question\': question, \'visible\': question.isOtherSelected } }"></div>\n \x3c!-- /ko --\x3e\n </div>\n<\/script>'},function(e,t){e.exports="<script type=\"text/html\" id=\"survey-question-comment\">\n \x3c!--ko if: !question.isInputTextUpdate --\x3e\n <textarea type=\"text\" data-bind=\"attr: {'readonly': question.isReadOnly, 'disabled': question.isReadOnly, maxLength: question.getMaxLength(), cols: question.cols, rows: question.rows, id: question.inputId, placeholder: question.placeHolder, 'aria-label': question.locTitle.renderedHtml}, value:question.value, css: question.koCss().root\"></textarea>\n \x3c!--/ko--\x3e\n \x3c!--ko if: question.isInputTextUpdate --\x3e\n <textarea type=\"text\" data-bind=\"attr: {'readonly': question.isReadOnly, 'disabled': question.isReadOnly, maxLength: question.getMaxLength(), cols: question.cols, rows: question.rows, id: question.inputId, placeholder: question.placeHolder, 'aria-label': question.locTitle.renderedHtml}, textInput:question.value, css: question.koCss().root\"></textarea>\n \x3c!--/ko--\x3e\n<\/script>\n"},function(e,t){e.exports='<script type="text/html" id="survey-question-dropdown">\n \x3c!-- ko ifnot: question.isReadOnly --\x3e\n <div data-bind="css: question.koCss().selectWrapper">\n <select data-bind="if: true, attr: {id: question.inputId, \'aria-label\': question.locTitle.renderedHtml}, value: question.renderedValue, valueAllowUnset: true, css: question.koControlClass">\n \x3c!-- ko if: question.showOptionsCaption --\x3e\n <option data-bind="text:question.optionsCaption, value: null"></option>\n \x3c!-- /ko --\x3e\n \x3c!-- ko foreach: question.visibleChoices --\x3e\n <option data-bind="value: $data.value, text: $data.text, attr: { disabled: !$data.isEnabled }"></option>\n \x3c!-- /ko --\x3e\n </select>\n </div>\n \x3c!-- /ko --\x3e\n \x3c!-- ko if: question.isReadOnly --\x3e\n <div disabled data-bind="text: question.hasOther && question.isOtherSelected ? question.otherText : question.displayValue, css: question.koCss().control"></div>\n \x3c!-- /ko --\x3e\n \x3c!-- ko if: question.hasOther --\x3e\n <div class="form-group" data-bind="template: { name: \'survey-comment\', data: {\'question\': question, \'visible\': question.isOtherSelected } }, style: {display: question.isFlowLayout ? \'inline\': \'\'}"></div>\n \x3c!-- /ko --\x3e\n<\/script>\n'},function(e,t){e.exports='<script type="text/html" id="survey-question-empty">\n<div></div>\n<\/script>\n'},function(e,t){e.exports='<script type="text/html" id="survey-question-errors">\n <div role="alert" data-bind="visible: errors.length > 0, foreach: { data: errors, as: \'error\'}, css: koErrorClass()">\n <div> \n <span aria-hidden="true" data-bind="css: question.koCss().error.icon"></span>\n <span data-bind="css: question.koCss().error.item">\n \x3c!-- ko template: { name: \'survey-string\', data: error.locText } --\x3e\x3c!-- /ko --\x3e\n </span>\n </div>\n </div>\n<\/script>'},function(e,t){e.exports='<script type="text/html" id="survey-question-expression">\n <div data-bind="text:question.koDisplayValue, css: question.koCss().root"></div>\n<\/script>'},function(e,t){e.exports='<script type="text/html" id="survey-question-file">\n <div data-bind="css: question.koCss().root">\n \x3c!-- ko ifnot: question.isReadOnly --\x3e\n <input type="file" data-bind="css: question.cssClasses.fileInput, attr: {id: question.inputId, \'aria-required\': question.isRequired, \'aria-label\': question.locTitle.renderedHtml, multiple: question.allowMultiple ? \'multiple\' : undefined, title: koInputTitle, accept: question.acceptedTypes }, event: {change: question.dochange}">\n \x3c!-- /ko --\x3e \n \x3c!-- ko if: question.isReadOnly --\x3e\n <input type="file" disabled data-bind="css: \'form-control \' + question.cssClasses.placeholderInput, attr: { placeholder: question.title }" style="color: transparent;"/>\n \x3c!-- /ko --\x3e\n <div data-bind="css:question.koCss().fileDecorator, event:{ dragover: question.ondragover, drop: question.ondrop}">\n <div data-bind="css: question.koCss().wrapper">\n <label data-bind="css: question.koChooseFileClass, attr: {for: question.inputId}, text: question.chooseButtonCaption"></label>\n <span data-bind="css: question.koCss().noFileChosen, visible: !question.koHasValue(), text: question.noFileChosenCaption"></span> \n </div>\n </div>\n \x3c!-- ko if: question.koHasValue() && !question.isReadOnly --\x3e\n <button type="button" data-bind="css: question.cssClasses.removeButton, click: question.doclean, text: question.cleanButtonCaption"></button>\n \x3c!-- /ko --\x3e\n <div data-bind="foreach: question.koData, visible: question.koHasValue">\n <span data-bind="visible: question.showPreview, css: question.cssClasses.preview">\n \x3c!-- ko if: $data.name --\x3e\n <div data-bind="css: question.koCss().fileSign">\n <a data-bind="style: { width: question.imageWidth + \'px\' }, text: $data.name, attr: { href: $data.content, title: $data.name, download: $data.name }"></a>\n </div>\n \x3c!-- /ko --\x3e\n \x3c!-- ko if: question.canPreviewImage($data) --\x3e\n <img data-bind="attr: { src: $data.content, height: question.imageHeight, width: question.imageWidth }" alt="File preview">\n \x3c!-- /ko --\x3e\n \x3c!-- ko if: $data.name --\x3e\n \x3c!-- ko ifnot: question.isReadOnly --\x3e\n <div>\n <span data-bind="css: question.cssClasses.removeFile, click: question.doremovefile, text: question.removeFileCaption"></span>\n <svg data-bind="css: question.cssClasses.removeFileSvg, click: question.doremovefile" viewBox="0 0 16 16">\n <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"/>\n </svg>\n </div>\n \x3c!-- /ko --\x3e\n \x3c!-- ko if: $data.name --\x3e\n <div data-bind="css: question.koCss().fileSignBottom">\n <a data-bind="style: { width: question.imageWidth + \'px\' }, text: $data.name, attr: { href: $data.content, title: $data.name, download: $data.name }"></a>\n </div>\n \x3c!-- /ko --\x3e\n \x3c!-- /ko --\x3e\n </span>\n </div>\n \x3c!-- ko if: question.koHasValue() && !question.isReadOnly --\x3e\n <button type="button" data-bind="css: question.cssClasses.removeButtonBottom, click: question.doclean, text: question.cleanButtonCaption"></button>\n \x3c!-- /ko --\x3e\n </div>\n<\/script>'},function(e,t){e.exports='<script type="text/html" id="survey-question-html">\n <div data-bind="html: question.locHtml.koRenderedHtml, css: question.koCss().root"></div>\n<\/script>\n'},function(e,t){e.exports='<script type="text/html" id="survey-question-imagepicker">\n <fieldset data-bind="css: question.koCss().root">\n <legend data-bind="attr: { \'aria-label\': question.locTitle.renderedHtml }"></legend>\n \x3c!-- ko foreach: { data: question.visibleChoices, as: \'item\', afterRender: question.koAfterRender} --\x3e\n <div data-bind="css: question.getItemClass(item)">\n <label data-bind="css: question.koCss().label">\n <input style="display: none;" data-bind="attr: {type: question.multiSelect ? \'checkbox\' : \'radio\', name: question.name + \'_\' + question.id, value: item.value, id: ($index() == 0) ? question.inputId : \'\', \'aria-required\': question.isRequired, \'aria-label\': question.locTitle.renderedHtml}, checked: question.koValue, enable: !question.isReadOnly && item.isEnabled, css: question.koCss().itemControl"\n />\n <div>\n \x3c!-- ko if: question.contentMode === "image" --\x3e\n <img data-bind="css: question.koCss().image, attr: { src: $data.imageLink, width: question.imageWidth ? question.imageWidth + \'px\' : undefined, height: question.imageHeight ? question.imageHeight + \'px\' : undefined }, style: { objectFit: question.imageFit }"/>\n \x3c!-- /ko --\x3e\n \x3c!-- ko if: question.contentMode === "video" --\x3e\n <embed data-bind="css: question.koCss().image, attr: { src: $data.imageLink, width: question.imageWidth ? question.imageWidth + \'px\' : undefined, height: question.imageHeight ? question.imageHeight + \'px\' : undefined }, style: { objectFit: question.imageFit }"/>\n \x3c!-- /ko --\x3e\n \x3c!-- ko if: question.showLabel --\x3e\n <span data-bind="text: text || value, attr: { title: text || value }, css: question.koCss().itemText"></span>\n \x3c!-- /ko --\x3e\n </div>\n </label>\n </div>\n \x3c!-- /ko --\x3e\n </fieldset>\n<\/script>\n'},function(e,t){e.exports='<script type="text/html" id="survey-question-matrix">\n <div data-bind="css: question.koCss().tableWrapper"> \n <fieldset>\n <legend data-bind="attr: { \'aria-label\': question.locTitle.renderedHtml }"></legend>\n <table data-bind="css: question.koCss().root">\n \x3c!-- ko if: question.showHeader --\x3e\n <thead>\n <tr>\n <td data-bind="visible: question.hasRows"></td>\n \x3c!-- ko foreach: question.koVisibleColumns --\x3e\n <th data-bind="css: question.koCss().headerCell">\n \x3c!-- ko template: { name: \'survey-string\', data: locText } --\x3e\n \x3c!-- /ko --\x3e\n </th>\n \x3c!-- /ko --\x3e\n </tr>\n </thead>\n \x3c!-- /ko --\x3e\n <tbody>\n \x3c!-- ko foreach: { data: question.koVisibleRows, as: \'row\' } --\x3e\n <tr data-bind="css: question.koCss().row">\n <td data-bind="visible: question.hasRows, css: question.koCss().cell">\n \x3c!-- ko template: { name: \'survey-string\', data: row.locText } --\x3e\n \x3c!-- /ko --\x3e\n </td>\n \x3c!-- ko foreach: question.koVisibleColumns --\x3e\n \x3c!-- ko if: question.hasCellText --\x3e\n <td data-bind="css: question.koCss().cell + \' \'+ question.getItemCss(row, $data), click: function() { if(!question.isReadOnly) {row.koCellClick($data); } }">\n \x3c!-- ko template: { name: \'survey-string\', data: question.getCellDisplayLocText(row.name, $data) } --\x3e\n \x3c!-- /ko --\x3e\n </td>\n \x3c!-- /ko --\x3e\n \x3c!-- ko if: !question.hasCellText --\x3e\n <td data-bind="attr: { headers: $data.locText.renderedHtml }, css: question.koCss().cell">\n <label data-bind="css: question.getItemCss(row, $data)">\n <input type="radio" data-bind="css: question.koCss().itemValue, attr: {name: row.fullName, \'aria-required\': question.isRequired, \'aria-label\': question.locTitle.renderedHtml, value: \'\' + $data.value, id: question.inputId + \'_\' + row.name + \'_\' + $index()}, checked: row.koValue, enable: !question.isReadOnly"\n />\n <span data-bind="css: question.koCss().materialDecorator">\n <svg data-bind="css:question.koCss().itemDecorator" viewBox="-12 -12 24 24">\n <circle r="6" cx="0" cy="0">\n </svg> \n </span>\n <span class="circle"></span>\n <span class="check"></span>\n <span style="display: none" data-bind="text: $data.locText.text"></span>\n </label>\n </td>\n \x3c!-- /ko --\x3e\n \x3c!-- /ko --\x3e\n </tr>\n \x3c!-- /ko --\x3e\n </tbody>\n </table>\n </fieldset>\n</div>\n<\/script>\n<script type="text/html" id="survey-text">\n <span data-bind="text:$data.renderedHtml"></span>\n<\/script>'},function(e,t){e.exports='<script type="text/html" id="survey-question-matrixdynamic">\n <div data-bind="visible: question.koIsAddRowOnTop(), css: question.koCss().footer">\n <button type="button" data-bind="click:question.koAddRowClick, css: question.koCss().button + \' \' + question.koCss().buttonAdd">\n <span data-bind="text: question.addRowText"></span>\n <span data-bind="css: question.koCss().iconAdd"></span>\n </button>\n </div>\n <div data-bind="style: {overflowX: question.horizontalScroll? \'scroll\': \'\'}">\n <table data-bind="css: question.koCss().root">\n \x3c!-- ko if: question.koTable().showHeader --\x3e\n <thead>\n <tr>\n \x3c!-- ko foreach: question.koTable().headerRow.cells --\x3e\n <th data-bind="style: { minWidth: $data.minWidth, width: $data.width }, css: question.koCss().headerCell">\n \x3c!-- ko template: { name: \'survey-string\', data: $data.locTitle } --\x3e\n \x3c!-- /ko --\x3e\n </th>\n \x3c!-- /ko --\x3e\n </tr>\n </thead>\n \x3c!-- /ko --\x3e\n <tbody>\n \x3c!-- ko foreach: question.koTable().rows --\x3e\n <tr>\n \x3c!-- ko foreach: $data.cells --\x3e\n \x3c!-- ko if: $data.hasQuestion --\x3e\n \x3c!-- ko template: { name: \'survey-matrixcell\', data: $data.question, as: "question", afterRender: function(els) { $data.matrix.koCellAfterRender(els, $data); } } --\x3e\x3c!-- /ko --\x3e\n \x3c!-- /ko --\x3e\n \x3c!-- ko if: $data.hasTitle --\x3e<td data-bind="css: question.koCss().cell">\x3c!-- ko template: { name: \'survey-string\', data: $data.locTitle } --\x3e\x3c!-- /ko --\x3e</td>\x3c!-- /ko --\x3e\n \x3c!-- ko if: $data.isRemoveRow --\x3e\n <td data-bind="css: question.koCss().cell">\n <button type="button" data-bind="click:question.koRemoveRowClick, css: question.koCss().button + \' \' + question.koCss().buttonRemove">\n <span data-bind="text: question.removeRowText"></span>\n <span data-bind="css: question.koCss().iconRemove"></span>\n </button>\n </td>\n \x3c!-- /ko --\x3e\n \x3c!-- /ko --\x3e\n </tr>\n \x3c!-- /ko --\x3e\n </tbody>\n \x3c!-- ko if:question.koTable().hasFooter --\x3e\n <tfoot>\n <tr>\n \x3c!-- ko foreach: question.koTable().footerRow.cells --\x3e\n <td>\n \x3c!-- ko if: $data.hasQuestion --\x3e\n \x3c!-- ko template: { name: \'survey-matrixcell\', data: $data.question, as: "question", afterRender: function(els) { $data.matrix.koCellAfterRender(els, $data); } } --\x3e\x3c!-- /ko --\x3e\n \x3c!-- /ko --\x3e\n \x3c!-- ko if: $data.hasTitle --\x3e\x3c!-- ko template: { name: \'survey-string\', data: $data.locTitle } --\x3e\x3c!-- /ko --\x3e\x3c!-- /ko --\x3e\n </td>\n \x3c!-- /ko --\x3e\n </tr>\n </tfoot>\n \x3c!-- /ko --\x3e\n </table>\n </div>\n <div data-bind="visible: question.koIsAddRowOnBottom(), css: question.koCss().footer">\n <button type="button" data-bind="click:question.koAddRowClick, css: question.koCss().button + \' \' + question.koCss().buttonAdd">\n <span data-bind="text: question.addRowText"></span>\n <span data-bind="css: question.koCss().iconAdd"></span>\n </button>\n </div>\n<\/script>'},function(e,t){e.exports="<script type=\"text/html\" id=\"survey-question-multipletext\">\n <table data-bind=\"css: question.koCss().root, foreach: { data: question.koRows, as: 'row' }\">\n <tr data-bind=\"foreach: { data: row, as: 'item' }, css: question.koCss().row\">\n <td data-bind=\"css: question.koCss().itemTitle + ' ' + question.koCss().cell\">\x3c!-- ko template: { name: 'survey-string', data: item.locTitle } --\x3e\x3c!-- /ko --\x3e</td>\n <td data-bind=\"css: question.koCss().item + ' ' + question.koCss().cell\">\n \x3c!-- ko if: item.editor.errorLocation == 'top' --\x3e\n <div data-bind=\"css: question.koCss().error.locationTop\">\n \x3c!-- ko template: { name: 'survey-question-errors', data: item.editor } --\x3e\n \x3c!-- /ko --\x3e\n </div>\n \x3c!-- /ko --\x3e\n \x3c!-- ko template: { name: item.editor.koTemplateName(), data: item.editor, as: 'question' } --\x3e\n \x3c!-- /ko --\x3e\n \x3c!-- ko if: item.editor.errorLocation == 'bottom' --\x3e\n \x3c!-- ko template: { name: 'survey-question-errors', data: item.editor } --\x3e\n \x3c!-- /ko --\x3e\n \x3c!-- /ko --\x3e\n </td>\n </tr>\n </table>\n<\/script>\n"},function(e,t){e.exports='<script type="text/html" id="survey-question-paneldynamic-navigator">\n <div style="clear:both;">\n <div data-bind="css: question.koCss().progressContainer">\n <div data-bind="title: question.panelPrevText, click: question.koPrevPanelClick">\n <svg viewBox="0 0 10 10" data-bind="css: question.koButtonPrevCss">\n <polygon points="2,2 0,4 5,9 10,4 8,2 5,5 " />\n </svg>\n </div>\n\n \x3c!-- ko if: question.koIsRange --\x3e\n <div data-bind="css: question.koCss().progress">\n <div\n data-bind="css: question.koCss().progressBar, style: {width: question.koProgress}"\n role="progressbar"\n ></div>\n </div>\n \x3c!-- /ko --\x3e\n\n <div data-bind="title:question.panelNextText, click: question.koNextPanelClick">\n <svg viewBox="0 0 10 10" data-bind="css: question.koButtonNextCss">\n <polygon points="2,2 0,4 5,9 10,4 8,2 5,5 " />\n </svg>\n </div>\n </div>\n\n \x3c!-- ko if: question.canAddPanel --\x3e\n <input\n type="button"\n data-bind="value: question.panelAddText, css:question.koCss().button + \' \' + question.koCss().buttonAdd, click:question.koAddPanelClick"\n />\n \x3c!-- /ko --\x3e\n\n <div data-bind="text:question.koProgressText, css:question.koCss().progressText"></div>\n </div>\n<\/script>'},function(e,t){e.exports='<script type="text/html" id="survey-question-paneldynamic">\n <div data-bind="css: question.koCss().root">\n \x3c!-- ko if: question.koIsList() --\x3e\n \x3c!-- ko foreach: { data: question.panels } --\x3e\n \x3c!-- ko template: { name: \'survey-panel\', data: $data, as: \'question\', afterRender: question.koPanelAfterRender } --\x3e\n \x3c!-- /ko --\x3e\n <input type="button" data-bind="visible: question.koCanRemovePanel() && !$data.koIsCollapsed(), click:question.koRemovePanelClick, css: question.koCss().button + \' \' + question.koCss().buttonRemove, value: question.panelRemoveText"\n />\n <hr data-bind="css: question.koCss().separator"/>\n \x3c!-- /ko --\x3e\n <input type="button" data-bind="visible:question.koCanAddPanel, click:question.koAddPanelClick, css: question.koButtonAddCss, value: question.panelAddText"\n />\n \x3c!-- /ko --\x3e\n \x3c!-- ko ifnot: question.koIsList() --\x3e\n <div data-bind="visible:question.koIsProgressTop, css: question.koCss().progressTop">\n \x3c!-- ko template: { name: \'survey-question-paneldynamic-navigator\', data: question, as: \'question\'} --\x3e\n \x3c!-- /ko --\x3e\n </div>\n \x3c!-- ko if: question.koPanel() --\x3e\n \x3c!-- ko template: { name: \'survey-panel\', data: question.koPanel(), as: \'question\', afterRender: question.koPanelAfterRender } --\x3e\n \x3c!-- /ko --\x3e\n \x3c!-- /ko --\x3e\n <input type="button" data-bind="visible: question.koCanRemovePanel, click:question.koRemovePanelClick, css: question.koCss().button + \' \' + question.koCss().buttonRemove, value: question.panelRemoveText"\n />\n <div data-bind="visible:question.koIsProgressBottom, css: question.koCss().progressBottom">\n \x3c!-- ko template: { name: \'survey-question-paneldynamic-navigator\', data: question, as: \'question\'} --\x3e\n \x3c!-- /ko --\x3e\n </div>\n \x3c!-- /ko --\x3e\n </div>\n<\/script>'},function(e,t){e.exports='<script type="text/html" id="survey-question-radiogroup">\n <fieldset data-bind="css: question.koCss().root">\n <legend data-bind="attr: { \'aria-label\': question.locTitle.renderedHtml }"></legend>\n \x3c!-- ko ifnot: question.hasColumns --\x3e\n \x3c!-- ko foreach: { data: question.visibleChoices, as: \'item\', afterRender: question.koAfterRender } --\x3e\n \x3c!-- ko template: \'survey-radiogroup-item\' --\x3e\n \x3c!-- /ko --\x3e\n \x3c!-- /ko --\x3e\n \x3c!-- /ko --\x3e\n \x3c!-- ko if: question.hasColumns --\x3e\n \x3c!-- ko foreach: question.columns --\x3e\n <div data-bind="css: question.getColumnClass()">\n \x3c!-- ko foreach: { data: $data, as: \'item\', afterRender: question.koAfterRender } --\x3e\n \x3c!-- ko template: \'survey-radiogroup-item\' --\x3e\n \x3c!-- /ko --\x3e\n \x3c!-- /ko --\x3e\n </div>\n \x3c!-- /ko --\x3e\n \x3c!-- /ko --\x3e\n \x3c!-- ko if: question.canShowClearButton --\x3e\n <div>\n <input type="button" data-bind="click:question.clearValue, css: question.koCss().clearButton, value: question.clearButtonCaption"/>\n </div>\n \x3c!-- /ko --\x3e\n </fieldset>\n<\/script>\n<script type="text/html" id="survey-radiogroup-item">\n <div data-bind="css: question.getItemClass(item)">\n <label data-bind="css: question.getLabelClass(item)">\n <input type="radio" data-bind="attr: {name: question.name + \'_\' + question.id, id: question.inputId + \'_\' + $index(), \'aria-required\': question.isRequired, \'aria-label\': item.locText.renderedHtml}, checkedValue: item.value, checked: question.renderedValue, enable: !question.isReadOnly && item.isEnabled, css: question.koCss().itemControl"\n />\n <span data-bind="css: question.koCss().materialDecorator">\n <svg data-bind="css:question.koCss().itemDecorator" viewBox="-12 -12 24 24">\n <circle r="6" cx="0" cy="0">\n </svg> \n </span>\n <span class="check"></span>\n <span data-bind="css: question.getControlLabelClass(item), attr: { title: item.locText.koRenderedHtml }">\n \x3c!-- ko template: { name: \'survey-string\', data: item.locText } --\x3e\n \x3c!-- /ko --\x3e\n </span>\n </label>\n \x3c!-- ko if: question.hasOther && (item.value == question.otherItem.value) --\x3e\n <div class="form-group" data-bind="template: { name: \'survey-comment\', data: {\'question\': question, \'visible\': question.isOtherSelected}}"></div>\n \x3c!-- /ko --\x3e\n </div>\n<\/script>'},function(e,t){e.exports='<script type="text/html" id="survey-question-rating">\n <div data-bind="css: question.koCss().root">\n \x3c!-- ko foreach: question.koVisibleRateValues --\x3e\n <label data-bind="css: question.koGetCss($data)">\n <input type="radio" class="sv-visuallyhidden" data-bind="attr: {name: question.name, id: question.name + $index(), value: $data.value, \'aria-required\': question.isRequired, \'aria-label\': $data.locText.text}, event: { change: question.koChange}, enable: !question.isReadOnly"\n />\n \x3c!-- ko if: $index() == 0 --\x3e\n <span data-bind="css: question.koCss().minText">\n \x3c!-- ko template: { name: \'survey-string\', data: question.locMinRateDescription } --\x3e\n \x3c!-- /ko --\x3e\n </span>\n \x3c!-- /ko --\x3e\n\n <span data-bind="css: question.koCss().itemText">\n \x3c!-- ko template: { name: \'survey-string\', data: $data.locText } --\x3e\n \x3c!-- /ko --\x3e\n </span>\n\n \x3c!-- ko if: $index() == (question.koVisibleRateValues().length-1) --\x3e\n <span data-bind="css: question.koCss().maxText">\n \x3c!-- ko template: { name: \'survey-string\', data: question.locMaxRateDescription } --\x3e\n \x3c!-- /ko --\x3e\n </span>\n \x3c!-- /ko --\x3e\n </label>\n \x3c!-- /ko --\x3e\n </div>\n <div data-bind="visible: question.hasOther">\n <div data-bind="template: { name: \'survey-comment\', data: {\'question\': question } }"></div>\n </div>\n<\/script>\n'},function(e,t){e.exports="<script type=\"text/html\" id=\"survey-question-text\">\n \x3c!--ko if: !question.isInputTextUpdate --\x3e\n <input data-bind=\"disable: question.isReadOnly, attr: {type: question.inputType, size: question.size, id: question.inputId, placeholder: question.inputType === 'range' ? undefined : question.placeHolder, maxLength: question.getMaxLength(), 'aria-required': question.isRequired, 'aria-label': question.locTitle.renderedHtml}, value: question.value, css: question.koCss().root + (question.errors.length > 0 ? ' ' + question.koCss().onError: '')\"/>\n \x3c!--/ko--\x3e\n \x3c!--ko if: question.isInputTextUpdate --\x3e\n <input data-bind=\"disable: question.isReadOnly, attr: {type: question.inputType, size: question.size, id: question.inputId, maxLength: question.getMaxLength(), 'aria-required': question.isRequired, 'aria-label': question.locTitle.renderedHtml}, textInput: question.value, css: question.koCss().root + (question.errors.length > 0 ? ' ' + question.koCss().onError: '')\"/>\n \x3c!--/ko--\x3e\n<\/script>\n"},function(e,t){e.exports="<script type=\"text/html\" id=\"survey-question\">\n <div data-bind=\"css: question.koRootClass(), style: { paddingLeft: question.paddingLeft, paddingRight: question.paddingRight, width: question.renderWidth }, attr: {id: question.id, name: question.name}\">\n \x3c!-- ko if: question.hasTitleOnLeftTop --\x3e\n \x3c!--ko template: { name: 'survey-question-title', data: question } --\x3e\n \x3c!-- /ko --\x3e\n \x3c!-- /ko --\x3e\n <div data-bind=\"css: question.koContentClass\">\n \x3c!-- ko if: question.errorLocation == 'top' --\x3e\n \x3c!-- ko template: { name: 'survey-question-errors', data: question } --\x3e\n \x3c!-- /ko --\x3e\n \x3c!-- /ko --\x3e\n \x3c!-- ko template: { name: question.koTemplateName(), data: question, afterRender: question.koQuestionAfterRender } --\x3e\n \x3c!-- /ko --\x3e\n \x3c!-- ko if: question.hasComment --\x3e\n <div data-bind=\"css: question.koCss().formGroup\">\n \x3c!-- ko template: { name: 'survey-string', data: question.locCommentText } --\x3e\n \x3c!-- /ko --\x3e\n <div data-bind=\"template: { name: 'survey-comment', data: {'question': question, 'visible': true } }\"></div>\n </div>\n \x3c!-- /ko --\x3e\n \x3c!-- ko if: question.errorLocation == 'bottom' --\x3e\n \x3c!-- ko template: { name: 'survey-question-errors', data: question } --\x3e\n \x3c!-- /ko --\x3e\n \x3c!-- /ko --\x3e\n <div data-bind=\"visible: question.hasDescriptionUnderInput, css: koCss().descriptionUnderInput\">\n \x3c!-- ko template: { name: 'survey-string', data: locDescription } --\x3e\x3c!-- /ko --\x3e\n </div>\n </div>\n \x3c!-- ko if: question.hasTitleOnBottom --\x3e\n \x3c!--ko template: { name: 'survey-question-title', data: question } --\x3e\n \x3c!-- /ko --\x3e\n \x3c!-- /ko --\x3e\n </div>\n <\/script>"},function(e,t){e.exports='<script type="text/html" id="survey-question-title">\n <div data-bind="css: question.koHeaderClass">\n <h5 data-bind="css: koTitleClass, attr: {title: locTitle.renderedHtml}">\n \x3c!-- ko if: no --\x3e\n <span style="position: static;" data-bind="css: koCss().number, text: no"></span>\n <span style="position: static;">. </span>\n \x3c!-- /ko --\x3e\n \x3c!-- ko template: { name: \'survey-string\', data: locTitle } --\x3e\x3c!-- /ko --\x3e\n\n \x3c!-- ko ifnot: question.getQuestionTitleTemplate() --\x3e \n <span data-bind="css: koCss().requiredText, text: question.requiredText"></span>\n \x3c!-- /ko --\x3e\n\n </h5>\n <div data-bind="visible: question.hasDescriptionUnderTitle, css: koCss().description">\n \x3c!-- ko template: { name: \'survey-string\', data: locDescription } --\x3e\x3c!-- /ko --\x3e\n </div>\n </div>\n<\/script>'},function(e,t){e.exports='<script type="text/html" id="survey-rows">\n \x3c!-- ko foreach: { data: rows, as: \'row\'} --\x3e\n \x3c!-- ko if: row.visible --\x3e\n <div data-bind="css: panel.cssClasses.row">\n \x3c!-- ko foreach: { data: row.elements, as: \'question\' , afterRender: row.koAfterRender } --\x3e\n \x3c!-- ko if: question.isVisible --\x3e\n \x3c!-- ko template: { name: question.koElementType, data: question, afterRender: $parent.koElementAfterRender } --\x3e\n \x3c!-- /ko --\x3e\n \x3c!-- /ko --\x3e\n \x3c!-- /ko --\x3e\n </div>\n \x3c!-- /ko --\x3e\n \x3c!-- /ko --\x3e\n<\/script>'},function(e,t){e.exports='<script type="text/html" id="survey-string">\n \x3c!-- ko ifnot: koHasHtml --\x3e\n <span style="position: static;" data-bind="text: koRenderedHtml"></span>\n \x3c!-- /ko --\x3e\n \x3c!-- ko if: koHasHtml --\x3e\n <span style="position: static;" data-bind="html: koRenderedHtml"></span>\n \x3c!-- /ko --\x3e\n<\/script>\n'},function(e,t){e.exports='<script type="text/html" id="survey-timerpanel">\n <div data-bind="text:koTimerInfoText"></div>\n<\/script>\n'},function(e,t,n){e.exports=n(72)+" "+n(70)+"\n"+n(74)+"\n"+n(75)+n(71)+"\n"+n(76)+" "+n(97)+"\n"+n(98)+" "+n(99)+"\n"+n(73)+" "+n(95)+"\n"+n(96)+" "+n(78)+"\n"+n(79)+" "+n(80)+"\n"+n(82)+" "+n(84)+"\n"+n(85)+" "+n(87)+"\n"+n(88)+"\n"+n(91)+"\n"+n(90)+"\n"+n(89)+"\n"+n(92)+" "+n(93)+"\n"+n(94)+" "+n(77)+"\n"+n(81)+" "+n(83)+"\n"+n(86)+"\n"},function(e,t){e.exports='<div style="position: fixed; bottom: 3px; right: 10px; max-width: 60%;" data-bind="css: css.window.root">\n <div data-bind="css: css.window.header.root">\n <span data-bind="click:doExpand" style="width: 100%; cursor: pointer;">\n <span style="padding-right:10px" data-bind="css: css.window.header.title, text: locTitle.koRenderedHtml"></span>\n <span aria-hidden="true" data-bind="css: koExpandedCss"></span>\n </span>\n <span data-bind="visible:koExpanded, click:doExpand" style="float: right; cursor: pointer;">\n <span style="padding-right:10px" data-bind="css: css.window.header.title">X</span>\n </span>\n </div>\n <div data-bind="visible:koExpanded, css: css.window.body">\n <div id="windowSurveyJS"></div>\n </div>\n</div>'},function(e,t,n){"use strict";var r=n(0),o=n(4),i=n(5),a=n(10),s=n(1);n.d(t,"a",function(){return l});var l=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,t&&(r.name=t),n&&(r.expression=n),r}return n.i(r.b)(t,e),t.prototype.setOwner=function(e){this.data=e,this.rerunExpression()},t.prototype.getType=function(){return"calculatedvalue"},Object.defineProperty(t.prototype,"name",{get:function(){return this.getPropertyValue("name","")},set:function(e){this.setPropertyValue("name",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"includeIntoResult",{get:function(){return this.getPropertyValue("includeIntoResult",!1)},set:function(e){this.setPropertyValue("includeIntoResult",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"expression",{get:function(){return this.getPropertyValue("expression","")},set:function(e){this.setPropertyValue("expression",e),this.rerunExpression()},enumerable:!0,configurable:!0}),t.prototype.locCalculation=function(){this.expressionIsRunning=!0},t.prototype.unlocCalculation=function(){this.expressionIsRunning=!1},t.prototype.runExpression=function(e,t){var n=this;this.canRunExpression&&(this.locCalculation(),this.expressionRunner||(this.expressionRunner=new a.b(this.expression)),this.expressionRunner.onRunComplete=function(e){o.a.isTwoValueEquals(e,n.value)||n.setValue(e),n.unlocCalculation()},this.expressionRunner.run(e,t))},Object.defineProperty(t.prototype,"value",{get:function(){if(this.data)return this.data.getVariable(this.name)},enumerable:!0,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:!0,configurable:!0}),t.prototype.rerunExpression=function(){this.canRunExpression&&this.runExpression(this.data.getFilteredValues(),this.data.getFilteredProperties())},t}(i.c);s.a.addClass("calculatedvalue",["!name","expression:expression","includeIntoResult:boolean"],function(){return new l},"base")},function(e,t,n){"use strict";n.d(t,"a",function(){return r});var r={shortDateFormats:[],dateSeparators:["/"],currencySymbol:"$"}},function(e,t,n){"use strict";var r=n(103);n.d(t,"a",function(){return o});var o={currentCultureValue:"",defaultCultureValue:"en",cultures:{},cultureNames:{},supportedCultures:[],get currentCulture(){return this.currentCultureValue===this.defaultCultureValue?"":this.currentCultureValue},set currentCulture(e){this.currentCultureValue=e},get defaultCulture(){return this.defaultCultureValue},set defaultCulture(e){this.defaultLocaleValue=e},getCulture:function(e){void 0===e&&(e="");var t=e||this.currentCultureValue||this.defaultCultureValue;return this.cultures[t]},getCultures:function(){var e=[];if(e.push(""),this.supportedCultures&&this.supportedCultures.length>0)for(var t=0;t<this.supportedCultures.length;t++)e.push(this.supportedCultures[t]);else for(var n in this.cultures)e.push(n);return e.sort(),e}};r.a;o.cultures.en=r.a,o.cultureNames.en="english"},function(e,t,n){"use strict";function r(e,t){function n(){return e.substring(tr,er)}function r(e,t){return{type:"literal",text:e,ignoreCase:t}}function o(e,t,n){return{type:"class",parts:e,inverted:t,ignoreCase:n}}function s(){return{type:"end"}}function l(e){return{type:"other",description:e}}function u(t){var n,r=nr[t];if(r)return r;for(n=t-1;!nr[n];)n--;for(r=nr[n],r={line:r.line,column:r.column};n<t;)10===e.charCodeAt(n)?(r.line++,r.column=1):r.column++,n++;return nr[t]=r,r}function c(e,t){var n=u(e),r=u(t);return{start:{offset:e,line:n.line,column:n.column},end:{offset:t,line:r.line,column:r.column}}}function p(e){er<rr||(er>rr&&(rr=er,or=[]),or.push(e))}function d(e,t,n){return new a(a.buildMessage(e,t),e,t,n)}function h(){var e,t,n,r,o,i,a,s,l,u=34*er+0,c=ar[u];if(c)return er=c.nextPos,c.result;if(e=er,(t=U())!==K)if((n=m())!==K){for(r=[],o=er,i=U(),i!==K?(a=f(),a!==K?(s=U(),s!==K?(l=m(),l!==K?(i=[i,a,s,l],o=i):(er=o,o=K)):(er=o,o=K)):(er=o,o=K)):(er=o,o=K);o!==K;)r.push(o),o=er,i=U(),i!==K?(a=f(),a!==K?(s=U(),s!==K?(l=m(),l!==K?(i=[i,a,s,l],o=i):(er=o,o=K)):(er=o,o=K)):(er=o,o=K)):(er=o,o=K);r!==K?(o=U(),o!==K?(tr=e,t=Y(n,r),e=t):(er=e,e=K)):(er=e,e=K)}else er=e,e=K;else er=e,e=K;return ar[u]={nextPos:er,result:e},e}function f(){var t,n,r=34*er+1,o=ar[r];return o?(er=o.nextPos,o.result):(t=er,e.substr(er,2)===ee?(n=ee,er+=2):(n=K,0===ir&&p(te)),n===K&&(e.substr(er,2).toLowerCase()===ne?(n=e.substr(er,2),er+=2):(n=K,0===ir&&p(re))),n!==K&&(tr=t,n=oe()),t=n,ar[r]={nextPos:er,result:t},t)}function m(){var e,t,n,r,o,i,a,s,l=34*er+2,u=ar[l];if(u)return er=u.nextPos,u.result;if(e=er,(t=y())!==K){for(n=[],r=er,o=U(),o!==K?(i=g(),i!==K?(a=U(),a!==K?(s=y(),s!==K?(o=[o,i,a,s],r=o):(er=r,r=K)):(er=r,r=K)):(er=r,r=K)):(er=r,r=K);r!==K;)n.push(r),r=er,o=U(),o!==K?(i=g(),i!==K?(a=U(),a!==K?(s=y(),s!==K?(o=[o,i,a,s],r=o):(er=r,r=K)):(er=r,r=K)):(er=r,r=K)):(er=r,r=K);n!==K?(tr=e,t=Y(t,n),e=t):(er=e,e=K)}else er=e,e=K;return ar[l]={nextPos:er,result:e},e}function g(){var t,n,r=34*er+3,o=ar[r];return o?(er=o.nextPos,o.result):(t=er,e.substr(er,2)===ie?(n=ie,er+=2):(n=K,0===ir&&p(ae)),n===K&&(e.substr(er,3).toLowerCase()===se?(n=e.substr(er,3),er+=3):(n=K,0===ir&&p(le))),n!==K&&(tr=t,n=ue()),t=n,ar[r]={nextPos:er,result:t},t)}function y(){var e,t,n,r,o,i,a,s,l=34*er+4,u=ar[l];if(u)return er=u.nextPos,u.result;if(e=er,(t=b())!==K){for(n=[],r=er,o=U(),o!==K?(i=v(),i!==K?(a=U(),a!==K?(s=b(),s!==K?(o=[o,i,a,s],r=o):(er=r,r=K)):(er=r,r=K)):(er=r,r=K)):(er=r,r=K);r!==K;)n.push(r),r=er,o=U(),o!==K?(i=v(),i!==K?(a=U(),a!==K?(s=b(),s!==K?(o=[o,i,a,s],r=o):(er=r,r=K)):(er=r,r=K)):(er=r,r=K)):(er=r,r=K);n!==K?(tr=e,t=ce(t,n),e=t):(er=e,e=K)}else er=e,e=K;return ar[l]={nextPos:er,result:e},e}function v(){var t,n,r=34*er+5,o=ar[r];return o?(er=o.nextPos,o.result):(t=er,e.substr(er,2)===pe?(n=pe,er+=2):(n=K,0===ir&&p(de)),n===K&&(e.substr(er,11).toLowerCase()===he?(n=e.substr(er,11),er+=11):(n=K,0===ir&&p(fe))),n!==K&&(tr=t,n=me()),t=n,t===K&&(t=er,e.substr(er,2)===ge?(n=ge,er+=2):(n=K,0===ir&&p(ye)),n===K&&(e.substr(er,14).toLowerCase()===ve?(n=e.substr(er,14),er+=14):(n=K,0===ir&&p(be))),n!==K&&(tr=t,n=xe()),(t=n)===K&&(t=er,61===e.charCodeAt(er)?(n=Ce,er++):(n=K,0===ir&&p(we)),n===K&&(e.substr(er,5).toLowerCase()===Pe?(n=e.substr(er,5),er+=5):(n=K,0===ir&&p(Ve))),n!==K&&(tr=t,n=Te()),(t=n)===K&&(t=er,e.substr(er,2)===ke?(n=ke,er+=2):(n=K,0===ir&&p(_e)),n===K&&(e.substr(er,8).toLowerCase()===Se?(n=e.substr(er,8),er+=8):(n=K,0===ir&&p(qe))),n!==K&&(tr=t,n=Re()),(t=n)===K&&(t=er,60===e.charCodeAt(er)?(n=Oe,er++):(n=K,0===ir&&p(Ee)),n===K&&(e.substr(er,4).toLowerCase()===Ie?(n=e.substr(er,4),er+=4):(n=K,0===ir&&p(Le))),n!==K&&(tr=t,n=Ae()),(t=n)===K&&(t=er,62===e.charCodeAt(er)?(n=De,er++):(n=K,0===ir&&p(je)),n===K&&(e.substr(er,7).toLowerCase()===Ne?(n=e.substr(er,7),er+=7):(n=K,0===ir&&p(Fe))),n!==K&&(tr=t,n=Me()),t=n))))),ar[r]={nextPos:er,result:t},t)}function b(){var e,t,n,r,o,i,a,s,l=34*er+6,u=ar[l];if(u)return er=u.nextPos,u.result;if(e=er,(t=C())!==K){for(n=[],r=er,o=U(),o!==K?(i=x(),i!==K?(a=U(),a!==K?(s=C(),s!==K?(o=[o,i,a,s],r=o):(er=r,r=K)):(er=r,r=K)):(er=r,r=K)):(er=r,r=K);r!==K;)n.push(r),r=er,o=U(),o!==K?(i=x(),i!==K?(a=U(),a!==K?(s=C(),s!==K?(o=[o,i,a,s],r=o):(er=r,r=K)):(er=r,r=K)):(er=r,r=K)):(er=r,r=K);n!==K?(tr=e,t=Y(t,n),e=t):(er=e,e=K)}else er=e,e=K;return ar[l]={nextPos:er,result:e},e}function x(){var t,n,r=34*er+7,o=ar[r];return o?(er=o.nextPos,o.result):(t=er,43===e.charCodeAt(er)?(n=ze,er++):(n=K,0===ir&&p(Be)),n!==K&&(tr=t,n=He()),t=n,t===K&&(t=er,45===e.charCodeAt(er)?(n=Qe,er++):(n=K,0===ir&&p($e)),n!==K&&(tr=t,n=Ue()),t=n),ar[r]={nextPos:er,result:t},t)}function C(){var e,t,n,r,o,i,a,s,l=34*er+8,u=ar[l];if(u)return er=u.nextPos,u.result;if(e=er,(t=P())!==K){for(n=[],r=er,o=U(),o!==K?(i=w(),i!==K?(a=U(),a!==K?(s=P(),s!==K?(o=[o,i,a,s],r=o):(er=r,r=K)):(er=r,r=K)):(er=r,r=K)):(er=r,r=K);r!==K;)n.push(r),r=er,o=U(),o!==K?(i=w(),i!==K?(a=U(),a!==K?(s=P(),s!==K?(o=[o,i,a,s],r=o):(er=r,r=K)):(er=r,r=K)):(er=r,r=K)):(er=r,r=K);n!==K?(tr=e,t=Y(t,n),e=t):(er=e,e=K)}else er=e,e=K;return ar[l]={nextPos:er,result:e},e}function w(){var t,n,r=34*er+9,o=ar[r];return o?(er=o.nextPos,o.result):(t=er,42===e.charCodeAt(er)?(n=Je,er++):(n=K,0===ir&&p(We)),n!==K&&(tr=t,n=Ge()),t=n,t===K&&(t=er,47===e.charCodeAt(er)?(n=Ke,er++):(n=K,0===ir&&p(Ze)),n!==K&&(tr=t,n=Xe()),(t=n)===K&&(t=er,37===e.charCodeAt(er)?(n=Ye,er++):(n=K,0===ir&&p(et)),n!==K&&(tr=t,n=tt()),t=n)),ar[r]={nextPos:er,result:t},t)}function P(){var e,t,n,r,o,i,a,s,l=34*er+10,u=ar[l];if(u)return er=u.nextPos,u.result;if(e=er,(t=T())!==K){for(n=[],r=er,o=U(),o!==K?(i=V(),i!==K?(a=U(),a!==K?(s=T(),s!==K?(o=[o,i,a,s],r=o):(er=r,r=K)):(er=r,r=K)):(er=r,r=K)):(er=r,r=K);r!==K;)n.push(r),r=er,o=U(),o!==K?(i=V(),i!==K?(a=U(),a!==K?(s=T(),s!==K?(o=[o,i,a,s],r=o):(er=r,r=K)):(er=r,r=K)):(er=r,r=K)):(er=r,r=K);n!==K?(tr=e,t=Y(t,n),e=t):(er=e,e=K)}else er=e,e=K;return ar[l]={nextPos:er,result:e},e}function V(){var t,n,r=34*er+11,o=ar[r];return o?(er=o.nextPos,o.result):(t=er,94===e.charCodeAt(er)?(n=nt,er++):(n=K,0===ir&&p(rt)),n===K&&(e.substr(er,5).toLowerCase()===ot?(n=e.substr(er,5),er+=5):(n=K,0===ir&&p(it))),n!==K&&(tr=t,n=at()),t=n,ar[r]={nextPos:er,result:t},t)}function T(){var e,t,n,r,o,i,a,s,l=34*er+12,u=ar[l];if(u)return er=u.nextPos,u.result;if(e=er,(t=_())!==K){for(n=[],r=er,o=U(),o!==K?(i=k(),i!==K?(a=U(),a!==K?(s=_(),s===K&&(s=null),s!==K?(o=[o,i,a,s],r=o):(er=r,r=K)):(er=r,r=K)):(er=r,r=K)):(er=r,r=K);r!==K;)n.push(r),r=er,o=U(),o!==K?(i=k(),i!==K?(a=U(),a!==K?(s=_(),s===K&&(s=null),s!==K?(o=[o,i,a,s],r=o):(er=r,r=K)):(er=r,r=K)):(er=r,r=K)):(er=r,r=K);n!==K?(tr=e,t=ce(t,n),e=t):(er=e,e=K)}else er=e,e=K;return ar[l]={nextPos:er,result:e},e}function k(){var t,n,r=34*er+13,o=ar[r];return o?(er=o.nextPos,o.result):(t=er,e.substr(er,2)===st?(n=st,er+=2):(n=K,0===ir&&p(lt)),n===K&&(e.substr(er,8).toLowerCase()===ut?(n=e.substr(er,8),er+=8):(n=K,0===ir&&p(ct)),n===K&&(e.substr(er,7).toLowerCase()===pt?(n=e.substr(er,7),er+=7):(n=K,0===ir&&p(dt)))),n!==K&&(tr=t,n=ht()),t=n,t===K&&(t=er,e.substr(er,11).toLowerCase()===ft?(n=e.substr(er,11),er+=11):(n=K,0===ir&&p(mt)),n===K&&(e.substr(er,10).toLowerCase()===gt?(n=e.substr(er,10),er+=10):(n=K,0===ir&&p(yt))),n!==K&&(tr=t,n=vt()),(t=n)===K&&(t=er,e.substr(er,5).toLowerCase()===bt?(n=e.substr(er,5),er+=5):(n=K,0===ir&&p(xt)),n!==K&&(tr=t,n=Ct()),(t=n)===K&&(t=er,e.substr(er,5).toLowerCase()===wt?(n=e.substr(er,5),er+=5):(n=K,0===ir&&p(Pt)),n!==K&&(tr=t,n=Vt()),t=n))),ar[r]={nextPos:er,result:t},t)}function _(){var t,n,r,o,i,a,s=34*er+14,l=ar[s];return l?(er=l.nextPos,l.result):(t=er,40===e.charCodeAt(er)?(n=Tt,er++):(n=K,0===ir&&p(kt)),n!==K?(r=U(),r!==K?(o=h(),o!==K?(i=U(),i!==K?(41===e.charCodeAt(er)?(a=_t,er++):(a=K,0===ir&&p(St)),a===K&&(a=null),a!==K?(tr=t,n=qt(o),t=n):(er=t,t=K)):(er=t,t=K)):(er=t,t=K)):(er=t,t=K)):(er=t,t=K),t===K&&(t=S())===K&&(t=q())===K&&(t=O())===K&&(t=I()),ar[s]={nextPos:er,result:t},t)}function S(){var t,n,r,o,i,a=34*er+15,s=ar[a];return s?(er=s.nextPos,s.result):(t=er,n=B(),n!==K?(40===e.charCodeAt(er)?(r=Tt,er++):(r=K,0===ir&&p(kt)),r!==K?(o=L(),o!==K?(41===e.charCodeAt(er)?(i=_t,er++):(i=K,0===ir&&p(St)),i===K&&(i=null),i!==K?(tr=t,n=Rt(n,o),t=n):(er=t,t=K)):(er=t,t=K)):(er=t,t=K)):(er=t,t=K),ar[a]={nextPos:er,result:t},t)}function q(){var t,n,r,o,i=34*er+16,a=ar[i];return a?(er=a.nextPos,a.result):(t=er,33===e.charCodeAt(er)?(n=Ot,er++):(n=K,0===ir&&p(Et)),n===K&&(e.substr(er,6).toLowerCase()===It?(n=e.substr(er,6),er+=6):(n=K,0===ir&&p(Lt))),n!==K?(r=U(),r!==K?(o=h(),o!==K?(tr=t,n=At(o),t=n):(er=t,t=K)):(er=t,t=K)):(er=t,t=K),t===K&&(t=er,n=O(),n!==K?(r=U(),r!==K?(o=R(),o!==K?(tr=t,n=Dt(n,o),t=n):(er=t,t=K)):(er=t,t=K)):(er=t,t=K)),ar[i]={nextPos:er,result:t},t)}function R(){var t,n,r=34*er+17,o=ar[r];return o?(er=o.nextPos,o.result):(t=er,e.substr(er,5).toLowerCase()===jt?(n=e.substr(er,5),er+=5):(n=K,0===ir&&p(Nt)),n!==K&&(tr=t,n=Ft()),t=n,t===K&&(t=er,e.substr(er,8).toLowerCase()===Mt?(n=e.substr(er,8),er+=8):(n=K,0===ir&&p(zt)),n!==K&&(tr=t,n=Bt()),t=n),ar[r]={nextPos:er,result:t},t)}function O(){var t,n,r,o,i,a=34*er+18,s=ar[a];return s?(er=s.nextPos,s.result):(t=er,n=U(),n!==K?(e.substr(er,9)===Ht?(r=Ht,er+=9):(r=K,0===ir&&p(Qt)),r===K&&(e.substr(er,4)===$t?(r=$t,er+=4):(r=K,0===ir&&p(Ut))),r!==K?(tr=t,n=Jt(),t=n):(er=t,t=K)):(er=t,t=K),t===K&&(t=er,n=U(),n!==K?(r=E(),r!==K?(tr=t,n=Wt(r),t=n):(er=t,t=K)):(er=t,t=K),t===K&&(t=er,n=U(),n!==K?(123===e.charCodeAt(er)?(r=Gt,er++):(r=K,0===ir&&p(Kt)),r!==K?(o=N(),o!==K?(125===e.charCodeAt(er)?(i=Zt,er++):(i=K,0===ir&&p(Xt)),i!==K?(tr=t,n=Yt(o),t=n):(er=t,t=K)):(er=t,t=K)):(er=t,t=K)):(er=t,t=K))),ar[a]={nextPos:er,result:t},t)}function E(){var t,n,r,o,i=34*er+19,a=ar[i];return a?(er=a.nextPos,a.result):(t=A(),t===K&&(t=D())===K&&(t=B())===K&&(t=er,39===e.charCodeAt(er)?(n=en,er++):(n=K,0===ir&&p(tn)),n!==K?(r=F(),r!==K?(39===e.charCodeAt(er)?(o=en,er++):(o=K,0===ir&&p(tn)),o!==K?(tr=t,n=nn(r),t=n):(er=t,t=K)):(er=t,t=K)):(er=t,t=K),t===K&&(t=er,34===e.charCodeAt(er)?(n=rn,er++):(n=K,0===ir&&p(on)),n!==K?(r=F(),r!==K?(34===e.charCodeAt(er)?(o=rn,er++):(o=K,0===ir&&p(on)),o!==K?(tr=t,n=nn(r),t=n):(er=t,t=K)):(er=t,t=K)):(er=t,t=K))),ar[i]={nextPos:er,result:t},t)}function I(){var t,n,r,o,i=34*er+20,a=ar[i];return a?(er=a.nextPos,a.result):(t=er,91===e.charCodeAt(er)?(n=an,er++):(n=K,0===ir&&p(sn)),n!==K?(r=L(),r!==K?(93===e.charCodeAt(er)?(o=ln,er++):(o=K,0===ir&&p(un)),o!==K?(tr=t,n=cn(r),t=n):(er=t,t=K)):(er=t,t=K)):(er=t,t=K),ar[i]={nextPos:er,result:t},t)}function L(){var t,n,r,o,i,a,s,l,u=34*er+21,c=ar[u];if(c)return er=c.nextPos,c.result;if(t=er,n=h(),n===K&&(n=null),n!==K){for(r=[],o=er,i=U(),i!==K?(44===e.charCodeAt(er)?(a=pn,er++):(a=K,0===ir&&p(dn)),a!==K?(s=U(),s!==K?(l=h(),l!==K?(i=[i,a,s,l],o=i):(er=o,o=K)):(er=o,o=K)):(er=o,o=K)):(er=o,o=K);o!==K;)r.push(o),o=er,i=U(),i!==K?(44===e.charCodeAt(er)?(a=pn,er++):(a=K,0===ir&&p(dn)),a!==K?(s=U(),s!==K?(l=h(),l!==K?(i=[i,a,s,l],o=i):(er=o,o=K)):(er=o,o=K)):(er=o,o=K)):(er=o,o=K);r!==K?(tr=t,n=hn(n,r),t=n):(er=t,t=K)}else er=t,t=K;return ar[u]={nextPos:er,result:t},t}function A(){var t,n,r=34*er+22,o=ar[r];return o?(er=o.nextPos,o.result):(t=er,e.substr(er,4).toLowerCase()===fn?(n=e.substr(er,4),er+=4):(n=K,0===ir&&p(mn)),n!==K&&(tr=t,n=gn()),t=n,t===K&&(t=er,e.substr(er,5).toLowerCase()===yn?(n=e.substr(er,5),er+=5):(n=K,0===ir&&p(vn)),n!==K&&(tr=t,n=bn()),t=n),ar[r]={nextPos:er,result:t},t)}function D(){var t,n,r,o=34*er+23,i=ar[o];return i?(er=i.nextPos,i.result):(t=er,e.substr(er,2)===xn?(n=xn,er+=2):(n=K,0===ir&&p(Cn)),n!==K?(r=H(),r!==K?(tr=t,n=wn(),t=n):(er=t,t=K)):(er=t,t=K),t===K&&(t=er,Pn.test(e.charAt(er))?(n=e.charAt(er),er++):(n=K,0===ir&&p(Vn)),n===K&&(n=null),n!==K?(r=j(),r!==K?(tr=t,n=Tn(n,r),t=n):(er=t,t=K)):(er=t,t=K)),ar[o]={nextPos:er,result:t},t)}function j(){var t,n,r,o,i=34*er+24,a=ar[i];return a?(er=a.nextPos,a.result):(t=er,n=H(),n!==K?(46===e.charCodeAt(er)?(r=kn,er++):(r=K,0===ir&&p(_n)),r!==K?(o=H(),o!==K?(tr=t,n=Sn(),t=n):(er=t,t=K)):(er=t,t=K)):(er=t,t=K),t===K&&(t=er,n=Q(),n!==K?(r=H(),r===K&&(r=null),r!==K?(tr=t,n=qn(),t=n):(er=t,t=K)):(er=t,t=K),t===K&&(t=er,48===e.charCodeAt(er)?(n=Rn,er++):(n=K,0===ir&&p(On)),n!==K&&(tr=t,n=En()),t=n)),ar[i]={nextPos:er,result:t},t)}function N(){var e,t,n,r=34*er+25,o=ar[r];if(o)return er=o.nextPos,o.result;if(e=er,t=[],(n=z())!==K)for(;n!==K;)t.push(n),n=z();else t=K;return t!==K&&(tr=e,t=In(t)),e=t,ar[r]={nextPos:er,result:e},e}function F(){var e,t,n,r=34*er+26,o=ar[r];if(o)return er=o.nextPos,o.result;if(e=er,t=[],(n=M())!==K)for(;n!==K;)t.push(n),n=M();else t=K;return t!==K&&(tr=e,t=In(t)),e=t,ar[r]={nextPos:er,result:e},e}function M(){var t,n,r=34*er+27,o=ar[r];return o?(er=o.nextPos,o.result):(t=er,e.substr(er,2)===Ln?(n=Ln,er+=2):(n=K,0===ir&&p(An)),n!==K&&(tr=t,n=Dn()),t=n,t===K&&(t=er,e.substr(er,2)===jn?(n=jn,er+=2):(n=K,0===ir&&p(Nn)),n!==K&&(tr=t,n=Fn()),(t=n)===K&&(t=er,Mn.test(e.charAt(er))?(n=e.charAt(er),er++):(n=K,0===ir&&p(zn)),n!==K&&(tr=t,n=Bn()),t=n)),ar[r]={nextPos:er,result:t},t)}function z(){var t,n,r=34*er+28,o=ar[r];return o?(er=o.nextPos,o.result):(t=er,Hn.test(e.charAt(er))?(n=e.charAt(er),er++):(n=K,0===ir&&p(Qn)),n!==K&&(tr=t,n=Bn()),t=n,ar[r]={nextPos:er,result:t},t)}function B(){var e,t,n,r,o,i,a,s=34*er+29,l=ar[s];if(l)return er=l.nextPos,l.result;if(e=er,(t=$())!==K){if(n=[],r=er,(o=H())!==K){for(i=[],a=$();a!==K;)i.push(a),a=$();i!==K?(o=[o,i],r=o):(er=r,r=K)}else er=r,r=K;for(;r!==K;)if(n.push(r),r=er,(o=H())!==K){for(i=[],a=$();a!==K;)i.push(a),a=$();i!==K?(o=[o,i],r=o):(er=r,r=K)}else er=r,r=K;n!==K?(tr=e,t=Bn(),e=t):(er=e,e=K)}else er=e,e=K;return ar[s]={nextPos:er,result:e},e}function H(){var t,n,r=34*er+30,o=ar[r];if(o)return er=o.nextPos,o.result;if(t=[],$n.test(e.charAt(er))?(n=e.charAt(er),er++):(n=K,0===ir&&p(Un)),n!==K)for(;n!==K;)t.push(n),$n.test(e.charAt(er))?(n=e.charAt(er),er++):(n=K,0===ir&&p(Un));else t=K;return ar[r]={nextPos:er,result:t},t}function Q(){var t,n,r=34*er+31,o=ar[r];if(o)return er=o.nextPos,o.result;if(t=[],Jn.test(e.charAt(er))?(n=e.charAt(er),er++):(n=K,0===ir&&p(Wn)),n!==K)for(;n!==K;)t.push(n),Jn.test(e.charAt(er))?(n=e.charAt(er),er++):(n=K,0===ir&&p(Wn));else t=K;return ar[r]={nextPos:er,result:t},t}function $(){var t,n,r=34*er+32,o=ar[r];if(o)return er=o.nextPos,o.result;if(t=[],Gn.test(e.charAt(er))?(n=e.charAt(er),er++):(n=K,0===ir&&p(Kn)),n!==K)for(;n!==K;)t.push(n),Gn.test(e.charAt(er))?(n=e.charAt(er),er++):(n=K,0===ir&&p(Kn));else t=K;return ar[r]={nextPos:er,result:t},t}function U(){var t,n,r=34*er+33,o=ar[r];if(o)return er=o.nextPos,o.result;for(ir++,t=[],Xn.test(e.charAt(er))?(n=e.charAt(er),er++):(n=K,0===ir&&p(Yn));n!==K;)t.push(n),Xn.test(e.charAt(er))?(n=e.charAt(er),er++):(n=K,0===ir&&p(Yn));return ir--,t===K&&(n=K,0===ir&&p(Zn)),ar[r]={nextPos:er,result:t},t}function J(e,t,n){return void 0===n&&(n=!1),t.reduce(function(e,t){return new i.f(t[1],e,t[3],n)},e)}function W(e){return[].concat.apply([],e)}t=void 0!==t?t:{};var G,K={},Z={Expression:h},X=h,Y=function(e,t){return J(e,t,!0)},ee="||",te=r("||",!1),ne="or",re=r("or",!0),oe=function(){return"or"},ie="&&",ae=r("&&",!1),se="and",le=r("and",!0),ue=function(){return"and"},ce=function(e,t){return J(e,t)},pe="<=",de=r("<=",!1),he="lessorequal",fe=r("lessorequal",!0),me=function(){return"lessorequal"},ge=">=",ye=r(">=",!1),ve="greaterorequal",be=r("greaterorequal",!0),xe=function(){return"greaterorequal"},Ce="=",we=r("=",!1),Pe="equal",Ve=r("equal",!0),Te=function(){return"equal"},ke="!=",_e=r("!=",!1),Se="notequal",qe=r("notequal",!0),Re=function(){return"notequal"},Oe="<",Ee=r("<",!1),Ie="less",Le=r("less",!0),Ae=function(){return"less"},De=">",je=r(">",!1),Ne="greater",Fe=r("greater",!0),Me=function(){return"greater"},ze="+",Be=r("+",!1),He=function(){return"plus"},Qe="-",$e=r("-",!1),Ue=function(){return"minus"},Je="*",We=r("*",!1),Ge=function(){return"mul"},Ke="/",Ze=r("/",!1),Xe=function(){return"div"},Ye="%",et=r("%",!1),tt=function(){return"mod"},nt="^",rt=r("^",!1),ot="power",it=r("power",!0),at=function(){return"power"},st="*=",lt=r("*=",!1),ut="contains",ct=r("contains",!0),pt="contain",dt=r("contain",!0),ht=function(){return"contains"},ft="notcontains",mt=r("notcontains",!0),gt="notcontain",yt=r("notcontain",!0),vt=function(){return"notcontains"},bt="anyof",xt=r("anyof",!0),Ct=function(){return"anyof"},wt="allof",Pt=r("allof",!0),Vt=function(){return"allof"},Tt="(",kt=r("(",!1),_t=")",St=r(")",!1),qt=function(e){return e},Rt=function(e,t){return new i.a(e,t)},Ot="!",Et=r("!",!1),It="negate",Lt=r("negate",!0),At=function(e){return new i.b(e,"negate")},Dt=function(e,t){return new i.b(e,t)},jt="empty",Nt=r("empty",!0),Ft=function(){return"empty"},Mt="notempty",zt=r("notempty",!0),Bt=function(){return"notempty"},Ht="undefined",Qt=r("undefined",!1),$t="null",Ut=r("null",!1),Jt=function(){return null},Wt=function(e){return new i.c(e)},Gt="{",Kt=r("{",!1),Zt="}",Xt=r("}",!1),Yt=function(e){return new i.d(e)},en="'",tn=r("'",!1),nn=function(e){return e},rn='"',on=r('"',!1),an="[",sn=r("[",!1),ln="]",un=r("]",!1),cn=function(e){return e},pn=",",dn=r(",",!1),hn=function(e,t){if(null==e)return[];var n=[e];if(Array.isArray(t))for(var r=W(t),o=3;o<r.length;o+=4)n.push(r[o]);return new i.e(n)},fn="true",mn=r("true",!0),gn=function(){return!0},yn="false",vn=r("false",!0),bn=function(){return!1},xn="0x",Cn=r("0x",!1),wn=function(){return parseInt(n(),16)},Pn=/^[\-]/,Vn=o(["-"],!1,!1),Tn=function(e,t){return null==e?t:-t},kn=".",_n=r(".",!1),Sn=function(){return parseFloat(n())},qn=function(){return parseInt(n(),10)},Rn="0",On=r("0",!1),En=function(){return 0},In=function(e){return e.join("")},Ln="\\'",An=r("\\'",!1),Dn=function(){return"'"},jn='\\"',Nn=r('\\"',!1),Fn=function(){return'"'},Mn=/^[^"'{}]/,zn=o(['"',"'","{","}"],!0,!1),Bn=function(){return n()},Hn=/^[^{}]/,Qn=o(["{","}"],!0,!1),$n=/^[0-9]/,Un=o([["0","9"]],!1,!1),Jn=/^[1-9]/,Wn=o([["1","9"]],!1,!1),Gn=/^[a-zA-Z]/,Kn=o([["a","z"],["A","Z"]],!1,!1),Zn=l("whitespace"),Xn=/^[ \t\n\r]/,Yn=o([" ","\t","\n","\r"],!1,!1),er=0,tr=0,nr=[{line:1,column:1}],rr=0,or=[],ir=0,ar={};if(void 0!==t.startRule){if(!(t.startRule in Z))throw new Error("Can't start parsing from rule \""+t.startRule+'".');X=Z[t.startRule]}if((G=X())!==K&&er===e.length)return G;throw G!==K&&er<e.length&&p(s()),d(or,rr<e.length?e.charAt(rr):null,rr<e.length?c(rr,rr+1):c(rr,rr))}var o=n(0),i=n(24);n.d(t,"b",function(){return a}),n.d(t,"a",function(){return s});var a=function(e){function t(n,r,o,i){var a=e.call(this)||this;return a.message=n,a.expected=r,a.found=o,a.location=i,a.name="SyntaxError","function"==typeof Error.captureStackTrace&&Error.captureStackTrace(a,t),a}return n.i(o.b)(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}}function a(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]}}function s(e){return e?'"'+r(e)+'"':"end of input"}return"Expected "+a(e)+" but "+s(t)+" found."},t}(Error),s=r},function(e,t,n){"use strict";var r=n(0),o=n(1),i=n(5),a=n(10);n.d(t,"a",function(){return s});var s=function(e){function t(t,n){void 0===t&&(t=null),void 0===n&&(n=null);var r=e.call(this)||this;return r.createLocalizableString("html",r),r.expression=t,r.html=n,r}return n.i(r.b)(t,e),t.prototype.getType=function(){return"htmlconditionitem"},t.prototype.runCondition=function(e,t){return!!this.expression&&new a.a(this.expression).run(e,t)},Object.defineProperty(t.prototype,"expression",{get:function(){return this.getPropertyValue("expression","")},set:function(e){this.setPropertyValue("expression",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"html",{get:function(){return this.getLocalizableStringText("html")},set:function(e){this.setLocalizableStringText("html",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"locHtml",{get:function(){return this.getLocalizableString("html")},enumerable:!0,configurable:!0}),t.prototype.getLocale=function(){return this.locOwner?this.locOwner.getLocale():""},t.prototype.getMarkdownHtml=function(e){return this.locOwner?this.locOwner.getMarkdownHtml(e):null},t.prototype.getProcessedText=function(e){return this.locOwner?this.locOwner.getProcessedText(e):e},t}(i.c);o.a.addClass("htmlconditionitem",["expression:condition",{name:"html:html",serializationProperty:"locHtml"}],function(){return new s},"base")},function(e,t,n){"use strict";var r=n(0),o=n(6),i=(n.n(o),n(63)),a=n(18);n.d(t,"a",function(){return l});var s=n(101),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;r.koExpanded=o.observable(!1),r.koExpandedCss=o.observable(r.getButtonCss());var i=r;return r.expandedChangedCallback=function(){i.koExpanded(i.isExpanded),i.koExpandedCss(i.getButtonCss())},r.showingChangedCallback=function(){i.doShowingChanged()},r.doExpand=function(){i.changeExpanded()},r}return n.i(r.b)(t,e),t.prototype.createSurvey=function(e){return new a.b(e)},t.prototype.closeWindowOnComplete=function(){this.hide()},Object.defineProperty(t.prototype,"template",{get:function(){return this.templateValue?this.templateValue:this.getDefaultTemplate()},set:function(e){this.templateValue=e},enumerable:!0,configurable:!0}),t.prototype.doShowingChanged=function(){this.isShowing?(this.windowElement.innerHTML=this.template,o.cleanNode(this.windowElement),o.applyBindings(this,this.windowElement),document.body.appendChild(this.windowElement),this.survey.render(t.surveyElementName)):(document.body.removeChild(this.windowElement),this.windowElement.innerHTML="")},t.prototype.getDefaultTemplate=function(){return s},Object.defineProperty(t.prototype,"css",{get:function(){return this.survey.css},enumerable:!0,configurable:!0}),t.prototype.changeExpanded=function(){this.expandcollapse(!this.isExpanded)},t.prototype.getButtonCss=function(){return this.koExpanded()?this.css.window.header.buttonCollapsed:this.css.window.header.buttonExpanded},t}(i.a)},function(e,t,n){"use strict";var r=n(0),o=n(6),i=(n.n(o),n(42)),a=n(1),s=n(16),l=n(5),u=function(e){function t(t){void 0===t&&(t="");var n=e.call(this,t)||this;n.koElementType=o.observable("survey-flowpanel"),new s.a(n),n.onCreating();var r=n;return n.koElementAfterRender=function(e,t){return r.elementAfterRender(e,t)},n}return n.i(r.b)(t,e),t.prototype.onCreating=function(){},t.prototype.getHtmlForQuestion=function(e){return'<span question="true" contenteditable="false" id="flowpanel_'+e.name+'">\x3c!-- ko template: { name: "survey-flowpanel-question", data: "'+e.name+'"} --\x3e\x3c!-- /ko --\x3e</span>'},t.prototype.elementAfterRender=function(e,t){if(this.survey){var n=l.b.GetFirstNonTextElement(e);n&&this.survey.afterRenderQuestion(t,n)}},t}(i.a);a.a.overrideClassCreator("flowpanel",function(){return new u}),o.components.register("f-panel",{viewModel:{createViewModel:function(e,t){var n=this,r=o.unwrap(e.question);n.element=t.element,n.element.innerHTML=r.html,n.isOnFocus=!1,n.wasChanged=!1,n.isContentUpdating=!1,r.contentChangedCallback=function(){n.isContentUpdating||(o.cleanNode(n.element),n.element.innerHTML=r.html,o.applyBindings({question:r},n.element),o.tasks.runEarly())},n.element.onfocus=function(){n.isOnFocus=!0},n.element.onblur=function(){n.wasChanged&&n.updateContent(),n.isOnFocus=!1,n.wasChanged=!1},n.element.ondragend=function(e){var t=/{(.*?(element:)[^$].*?)}/g,o=n.element.innerHTML,i=t.exec(o);if(null!==i){var a=r.getQuestionFromText(i[0]);a&&(r.content=n.getContent(a.name))}},n.updateContent=function(){n.isContentUpdating=!0,r.content=n.getContent(),n.isContentUpdating=!1},r.getContent=n.getContent=function(e){var t=document.createElement("DIV");t.innerHTML=n.element.innerHTML;for(var o=t.querySelectorAll('span[question="true"]'),i=0;i<o.length;i++){var a=o[i].id.replace("flowpanel_",""),s="";if(a!==e){var l=r.getQuestionByName(a);s=l?r.getElementContentText(l):""}o[i].outerHTML=s}return t.innerHTML};var i={characterData:!0,attributes:!0,childList:!0,subtree:!0},a=function(e,t){n.isOnFocus&&(n.wasChanged=!0)};return new MutationObserver(a).observe(n.element,i),{question:r}}},template:"<div></div>"})},function(e,t,n){"use strict";var r=n(0),o=n(48),i=n(1),a=n(3),s=n(7),l=function(e){function t(t){var n=e.call(this,t)||this;return n.question=t,n}return n.i(r.b)(t,e),t}(s.a),u=function(e){function t(t){var n=e.call(this,t)||this;return n.name=t,new l(n),n}return n.i(r.b)(t,e),t.prototype.getItemCss=function(e,t){var n=this.checkedValue,r=this.isReadOnly,o=this.cssClasses.item;return r&&(o+=" "+this.cssClasses.itemDisabled),n?o+=" "+this.cssClasses.itemChecked:null===n&&(o+=" "+this.cssClasses.itemIndeterminate),o},t.prototype.getCheckedLabelCss=function(){return this.getLabelClass(!0)},t.prototype.getUncheckedLabelCss=function(){return this.getLabelClass(!1)},t.prototype.getLabelClass=function(e){return this.cssClasses.label+(this.checkedValue===!e||this.isReadOnly?" "+this.cssClasses.disabledLabel:"")},t}(o.a);i.a.overrideClassCreator("boolean",function(){return new u("")}),a.b.Instance.registerQuestion("boolean",function(e){return new u(e)})},function(e,t,n){"use strict";var r=n(0),o=n(6),i=(n.n(o),n(17)),a=n(1),s=n(3),l=n(49),u=function(e){function t(t){return e.call(this,t)||this}return n.i(r.b)(t,e),t.prototype.getKoValue=function(){return this.question.renderedValue},t}(i.a),c=function(e){function t(t){var n=e.call(this,t)||this;n.name=t,n.isAllSelectedUpdating=!1,new u(n),n.koAllSelected=o.observable(n.isAllSelected);var r=n;return n.koAllSelected.subscribe(function(e){r.isAllSelectedUpdating||(e?r.selectAll():r.clearValue())}),n}return n.i(r.b)(t,e),t.prototype.onValueChanged=function(){e.prototype.onValueChanged.call(this),this.updateAllSelected()},t.prototype.onVisibleChoicesChanged=function(){e.prototype.onVisibleChoicesChanged.call(this),this.updateAllSelected()},t.prototype.updateAllSelected=function(){this.isAllSelectedUpdating=!0,this.koAllSelected(this.isAllSelected),this.isAllSelectedUpdating=!1},t.prototype.getItemClass=function(e){var t=(this.value,this.isItemSelected(e)),n=this.isReadOnly||!e.isEnabled,r=!t&&!n,o=this.cssClasses.item;return this.hasColumns||(o+=0===this.colCount?" "+this.cssClasses.itemInline:" sv-q-col-"+this.colCount),n&&(o+=" "+this.cssClasses.itemDisabled),t&&(o+=" "+this.cssClasses.itemChecked),r&&(o+=" "+this.cssClasses.itemHover),o},t.prototype.getLabelClass=function(t){return e.prototype.getLabelClass.call(this,this.isItemSelected(t))},t}(l.a);a.a.overrideClassCreator("checkbox",function(){return new c("")}),s.b.Instance.registerQuestion("checkbox",function(e){var t=new c(e);return t.choices=s.b.DefaultChoices,t})},function(e,t,n){"use strict";var r=n(0),o=n(1),i=n(3),a=n(50),s=n(7),l=function(e){function t(t){var n=e.call(this,t)||this;return n.name=t,new s.a(n),n}return n.i(r.b)(t,e),t}(a.a);o.a.overrideClassCreator("comment",function(){return new l("")}),i.b.Instance.registerQuestion("comment",function(e){return new l(e)})},function(e,t,n){"use strict";var r=n(0),o=n(6),i=(n.n(o),n(29)),a=n(1),s=n(3),l=n(17),u=function(e){function t(t){var n=e.call(this,t)||this;return n.koControlClass=o.pureComputed(function(){return n.question.koCss().control+(n.question.errors.length>0?" "+n.question.koCss().onError:"")}),n.question.koControlClass=n.koControlClass,n}return n.i(r.b)(t,e),t}(l.b),c=function(e){function t(t){var n=e.call(this,t)||this;return n.name=t,new u(n),n}return n.i(r.b)(t,e),t}(i.a);a.a.overrideClassCreator("dropdown",function(){return new c("")}),s.b.Instance.registerQuestion("dropdown",function(e){var t=new c(e);return t.choices=s.b.DefaultChoices,t})},function(e,t,n){"use strict";var r=n(0),o=n(51),i=n(1),a=n(7),s=function(e){function t(t){var n=e.call(this,t)||this;return n.name=t,new a.a(n),n}return n.i(r.b)(t,e),t}(o.a);i.a.overrideClassCreator("empty",function(){return new s("")})},function(e,t,n){"use strict";var r=n(0),o=n(6),i=(n.n(o),n(30)),a=n(1),s=n(3),l=n(7),u=function(e){function t(t){var n=e.call(this,t)||this;return n.question=t,n.koDisplayValue=o.observable(n.question.displayValue),n.question.koDisplayValue=n.koDisplayValue,o.computed(function(){n.koDisplayValue(n.question.displayValue)}),n}return n.i(r.b)(t,e),t}(l.a),c=function(e){function t(t){var n=e.call(this,t)||this;return n.name=t,new u(n),n}return n.i(r.b)(t,e),t}(i.a);a.a.overrideClassCreator("expression",function(){return new c("")}),s.b.Instance.registerQuestion("expression",function(e){return new c(e)})},function(e,t,n){"use strict";var r=n(0),o=n(6),i=(n.n(o),n(1)),a=n(3),s=n(52),l=n(7),u=n(157),c=function(e){function t(t){var r=e.call(this,t)||this;r.koState=o.observable("empty"),r.koHasValue=o.computed(function(){return"loaded"===r.koState()}),r.koData=o.computed(function(){return r.koHasValue()?r.question.previewValue:[]}),r.koInputTitle=o.observable(),r.koChooseFileClass=o.pureComputed(function(){return r.question.koCss().chooseFile+(r.question.isReadOnly?" "+r.question.koCss().disabled:"")});var i=r;r.question.koData=r.koData,r.question.koHasValue=r.koHasValue,r.question.koInputTitle=r.koInputTitle,r.question.koChooseFileClass=r.koChooseFileClass;var a=function(e){r.koState(e),r.koInputTitle(r.question.inputTitle)};return r.question.onStateChanged.add(function(e,t){a(t.state)}),r.question.ondrop=function(e,t){t.preventDefault();var n=t.originalEvent?t.originalEvent.dataTransfer:t.dataTransfer;r.onChange(n)},r.question.ondragover=function(e,t){t.preventDefault()},r.question.dochange=function(e,t){var n=t.target||t.srcElement;i.onChange(n)},r.question.doclean=function(e,o){var i=o.target||o.srcElement;if(t.needConfirmRemoveFile){if(!n.i(u.a)(t.confirmRemoveAllMessage))return}var a=i.parentElement.querySelectorAll("input")[0];r.question.clear(),a.value=""},r.question.doremovefile=function(e,o){if(t.needConfirmRemoveFile){if(!n.i(u.a)(t.getConfirmRemoveMessage(e.name)))return}r.question.removeFile(e)},r}return n.i(r.b)(t,e),t.prototype.onChange=function(e){if(window.FileReader&&e&&e.files&&!(e.files.length<1)){for(var t=[],n=this.question.allowMultiple?e.files.length:1,r=0;r<n;r++)t.push(e.files[r]);e.value="",this.question.loadFiles(t)}},t}(l.a),p=function(e){function t(t){var n=e.call(this,t)||this;return n.name=t,new c(n),n}return n.i(r.b)(t,e),t}(s.a);i.a.overrideClassCreator("file",function(){return new p("")}),a.b.Instance.registerQuestion("file",function(e){return new p(e)})},function(e,t,n){"use strict";var r=n(0),o=n(1),i=n(3),a=n(7),s=n(53),l=function(e){function t(t){var n=e.call(this,t)||this;return n.name=t,new a.a(n),n}return n.i(r.b)(t,e),t}(s.a);o.a.overrideClassCreator("html",function(){return new l("")}),i.b.Instance.registerQuestion("html",function(e){return new l(e)})},function(e,t,n){"use strict";var r=n(0),o=n(54),i=n(1),a=n(3),s=n(17),l=function(e){function t(t){var n=e.call(this,t)||this;return n.name=t,new s.a(n),n}return n.i(r.b)(t,e),t.prototype.getItemClass=function(e){var t=this.cssClasses.item+(0===this.colCount?" "+this.cssClasses.itemInline:" sv-q-col-"+this.colCount),n=this.multiSelect?!!this.value&&-1!==this.koValue().indexOf(e.value):!!e.value&&e.value==this.koValue(),r=this.isReadOnly||!e.isEnabled,o=!n&&!r;return n&&(t+=" "+this.cssClasses.itemChecked),r&&(t+=" "+this.cssClasses.itemDisabled),o&&(t+=" "+this.cssClasses.itemHover),t},t}(o.a);i.a.overrideClassCreator("imagepicker",function(){return new l("")}),a.b.Instance.registerQuestion("imagepicker",function(e){return new l(e)})},function(e,t,n){"use strict";var r=n(0),o=n(6),i=(n.n(o),n(55)),a=n(7),s=n(1),l=n(3),u=n(4),c=function(e){function t(t,n,r,i){var a=e.call(this,t,n,r,i)||this;a.fullName=n,a.isValueUpdating=!1,a.koValue=o.observable(a.value);var s=a;return a.koValue.subscribe(function(e){s.isValueUpdating,s.value=e}),a.koCellClick=function(e){s.koValue(e.value)},a}return n.i(r.b)(t,e),t.prototype.onValueChanged=function(){this.isValueUpdating=!0,u.a.isTwoValueEquals(this.koValue(),this.value)||this.koValue(this.value),this.isValueUpdating=!1},t}(i.a),p=function(e){function t(t){var n=e.call(this,t)||this;return n.name=t,new a.a(n),n.koVisibleRows=o.observable(n.visibleRows),n.koVisibleColumns=o.observable(n.visibleColumns),n}return n.i(r.b)(t,e),t.prototype.onColumnsChanged=function(){e.prototype.onColumnsChanged.call(this),this.koVisibleRows(this.visibleRows),this.koVisibleColumns(this.visibleColumns)},t.prototype.onRowsChanged=function(){e.prototype.onRowsChanged.call(this),this.koVisibleRows(this.visibleRows),this.koVisibleColumns(this.visibleColumns)},t.prototype.onSurveyLoad=function(){e.prototype.onSurveyLoad.call(this),this.onRowsChanged()},t.prototype.createMatrixRow=function(e,t,n){return new c(e,t,this,n)},t.prototype.getItemCss=function(e,t){var n=e.koValue()==t.value,r=this.isReadOnly,o=!n&&!r,i=this.hasCellText?this.cssClasses.cellTextDisabled:this.cssClasses.itemDisabled,a=this.hasCellText?this.cssClasses.cellTextSelected:this.cssClasses.itemChecked,s=this.hasCellText?"":this.cssClasses.itemHover;return(this.hasCellText?this.koCss().cellText:this.koCss().label)+(n?" "+a:"")+(r?" "+i:"")+(o?" "+s:"")},t}(i.b);s.a.overrideClassCreator("matrix",function(){return new p("")}),l.b.Instance.registerQuestion("matrix",function(e){var t=new p(e);return t.rows=l.b.DefaultRows,t.columns=l.b.DefaultColums,t})},function(e,t,n){"use strict";var r=n(0),o=n(1),i=n(3),a=n(43),s=n(57),l=n(22),u=function(e){function t(t){return e.call(this,t)||this}return n.i(r.b)(t,e),t.prototype.isAddRowTop=function(){return this.question.isAddRowOnTop},t.prototype.isAddRowBottom=function(){return this.question.isAddRowOnBottom},t.prototype.canRemoveRows=function(){return!this.question.isReadOnly&&this.question.canRemoveRows},t.prototype.addRow=function(){this.question.addRow()},t.prototype.removeRow=function(e){this.question.removeRowUI(e)},t}(a.a),c=function(e){function t(t){var n=e.call(this,t)||this;return n.name=t,new u(n),n}return n.i(r.b)(t,e),t}(s.a);o.a.overrideClassCreator("matrixdynamic",function(){return new c("")}),i.b.Instance.registerQuestion("matrixdynamic",function(e){var t=new c(e);return t.choices=[1,2,3,4,5],t.rowCount=2,l.a.addDefaultColumns(t),t})},function(e,t,n){"use strict";var r=n(0),o=n(6),i=(n.n(o),n(58)),a=n(7),s=n(44),l=n(1),u=n(3),c=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.name=t,r}return n.i(r.b)(t,e),t.prototype.createEditor=function(e){return new s.a(e)},t}(i.a),p=function(e){function t(t){var n=e.call(this,t)||this;n.koRows=o.observableArray(n.question.getRows()),n.question.koRows=n.koRows,n.onColCountChanged();var r=n;return n.question.colCountChangedCallback=function(){r.onColCountChanged()},n}return n.i(r.b)(t,e),t.prototype.onColCountChanged=function(){this.koRows(this.question.getRows())},t}(a.a),d=function(e){function t(t){var n=e.call(this,t)||this;return n.name=t,new p(n),n}return n.i(r.b)(t,e),t.prototype.createTextItem=function(e,t){return new c(e,t)},t}(i.b);l.a.overrideClassCreator("multipletextitem",function(){return new c("")}),l.a.overrideClassCreator("multipletext",function(){return new d("")}),u.b.Instance.registerQuestion("multipletext",function(e){var t=new d(e);return t.addItem("text1"),t.addItem("text2"),t})},function(e,t,n){"use strict";var r=n(0),o=n(6),i=(n.n(o),n(5)),a=n(1),s=n(3),l=n(7),u=n(59),c=n(26),p=function(e){function t(t){var n=e.call(this,t)||this;n.koRecalc=o.observable(0);var r=n;return n.koAddPanelClick=function(){r.addPanel()},n.koRemovePanelClick=function(e){r.removePanel(e)},n.koPrevPanelClick=function(){r.question.goToPrevPanel()},n.koNextPanelClick=function(){r.question.goToNextPanel()},n.koCanAddPanel=o.pureComputed(function(){return r.koRecalc(),r.question.canAddPanel}),n.koCanRemovePanel=o.pureComputed(function(){return r.koRecalc(),r.question.canRemovePanel}),n.koIsPrevButton=o.pureComputed(function(){return r.koRecalc(),r.question.isPrevButtonShowing}),n.koIsNextButton=o.pureComputed(function(){return r.koRecalc(),r.question.isNextButtonShowing}),n.koIsRange=o.pureComputed(function(){return r.koRecalc(),r.question.isRangeShowing}),n.koPanel=o.pureComputed(function(){return r.koRecalc(),r.question.currentPanel}),n.koIsList=o.pureComputed(function(){return r.koRecalc(),r.question.isRenderModeList}),n.koIsProgressTop=o.pureComputed(function(){return r.koRecalc(),r.question.isProgressTopShowing}),n.koIsProgressBottom=o.pureComputed(function(){return r.koRecalc(),r.question.isProgressBottomShowing}),n.koRangeValue=o.observable(r.question.currentIndex),n.koRangeValue.subscribe(function(e){r.question.currentIndex=e}),n.koRangeMax=o.pureComputed(function(){return r.koRecalc(),r.question.panelCount-1}),n.koButtonAddCss=o.pureComputed(function(){return r.koRecalc(),r.buttonAddCss}),n.koButtonNextCss=o.pureComputed(function(){return r.koRecalc(),r.buttonNextCss}),n.koButtonPrevCss=o.pureComputed(function(){return r.koRecalc(),r.buttonPrevCss}),n.koProgressText=o.pureComputed(function(){return r.koRecalc(),r.question.progressText}),n.koProgress=o.pureComputed(function(){return r.koRecalc(),r.progress}),n.question.koAddPanelClick=n.koAddPanelClick,n.question.koRemovePanelClick=n.koRemovePanelClick,n.question.koPrevPanelClick=n.koPrevPanelClick,n.question.koNextPanelClick=n.koNextPanelClick,n.question.koCanAddPanel=n.koCanAddPanel,n.question.koCanRemovePanel=n.koCanRemovePanel,n.question.koProgressText=n.koProgressText,n.question.koProgress=n.koProgress,n.question.koPanel=n.koPanel,n.question.koIsList=n.koIsList,n.question.koIsProgressTop=n.koIsProgressTop,n.question.koIsProgressBottom=n.koIsProgressBottom,n.question.koIsPrevButton=n.koIsPrevButton,n.question.koIsNextButton=n.koIsNextButton,n.question.koIsRange=n.koIsRange,n.question.koRangeValue=n.koRangeValue,n.question.koRangeMax=n.koRangeMax,n.question.koButtonAddCss=n.koButtonAddCss,n.question.koButtonNextCss=n.koButtonNextCss,n.question.koButtonPrevCss=n.koButtonPrevCss,n.question.koPanelAfterRender=function(e,t){r.panelAfterRender(e,t)},n.question.panelCountChangedCallback=function(){r.onPanelCountChanged()},n.question.renderModeChangedCallback=function(){r.onRenderModeChanged()},n.question.currentIndexChangedCallback=function(){r.onCurrentIndexChanged()},n}return n.i(r.b)(t,e),t.prototype.onPanelCountChanged=function(){this.onCurrentIndexChanged()},t.prototype.onRenderModeChanged=function(){this.onCurrentIndexChanged()},t.prototype.onCurrentIndexChanged=function(){this.koRecalc(this.koRecalc()+1),this.koRangeValue(this.question.currentIndex)},t.prototype.addPanel=function(){this.question.addPanelUI()},t.prototype.removePanel=function(e){var t=this.question;t.isRenderModeList||(e=t.currentPanel),t.removePanelUI(e)},t.prototype.panelAfterRender=function(e,t){if(this.question&&this.question.survey){var n=i.b.GetFirstNonTextElement(e);this.question.survey.afterRenderPanel(t,n)}},Object.defineProperty(t.prototype,"buttonAddCss",{get:function(){var e=this.question,t=e.cssClasses.button+" "+e.cssClasses.buttonAdd;return"list"===this.question.renderMode&&(t+=" "+e.cssClasses.buttonAdd+"--list-mode"),t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"buttonPrevCss",{get:function(){var e=this.question,t=e.cssClasses.buttonPrev;return e.isPrevButtonShowing||(t+=" "+e.cssClasses.buttonPrev+"--disabled"),t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"buttonNextCss",{get:function(){var e=this.question,t=e.cssClasses.buttonNext;return e.isNextButtonShowing||(t+=" "+e.cssClasses.buttonNext+"--disabled"),t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"progress",{get:function(){var e=this.question.panelCount-1;return this.question.currentIndex/e*100+"%"},enumerable:!0,configurable:!0}),t}(l.a),d=function(e){function t(t){var n=e.call(this,t)||this;return n.name=t,new p(n),n}return n.i(r.b)(t,e),t.prototype.createNewPanelObject=function(){return new c.b},t}(u.a);a.a.overrideClassCreator("paneldynamic",function(){return new d("")}),s.b.Instance.registerQuestion("paneldynamic",function(e){return new d(e)})},function(e,t,n){"use strict";var r=n(0),o=n(60),i=n(1),a=n(3),s=n(17),l=function(e){function t(t){var n=e.call(this,t)||this;return n.name=t,new s.a(n),n}return n.i(r.b)(t,e),t.prototype.getItemClass=function(e){var t=this.cssClasses.item,n=this.isReadOnly||!e.isEnabled,r=e.value===this.value,o=!n&&!r;return this.hasColumns||(t+=0===this.colCount?" "+this.cssClasses.itemInline:" sv-q-col-"+this.colCount),n&&(t+=" "+this.cssClasses.itemDisabled),r&&(t+=" "+this.cssClasses.itemChecked),o&&(t+=" "+this.cssClasses.itemHover),t},t.prototype.getLabelClass=function(t){return e.prototype.getLabelClass.call(this,t.value===this.value)},t.prototype.getControlLabelClass=function(t){return e.prototype.getControlLabelClass.call(this,t.value===this.value)},t}(o.a);i.a.overrideClassCreator("radiogroup",function(){return new l("")}),a.b.Instance.registerQuestion("radiogroup",function(e){var t=new l(e);return t.choices=a.b.DefaultChoices,t})},function(e,t,n){"use strict";var r=n(0),o=n(6),i=(n.n(o),n(7)),a=n(61),s=n(1),l=n(3),u=function(e){function t(t){var n=e.call(this,t)||this;n.koVisibleRateValues=o.observableArray(n.getValues()),n.question.koVisibleRateValues=n.koVisibleRateValues;var r=n;return n.koChange=function(e){r.question.value=e.itemValue},n.question.koChange=n.koChange,n.question.rateValuesChangedCallback=function(){r.onRateValuesChanged()},n.question.koGetCss=function(e){var t=r.question.cssClasses.item,o=r.question.cssClasses.selected,i=r.question.cssClasses.disabled,a=t;return n.question.value==e.value&&(a=a+" "+o),n.question.isReadOnly&&(a=a+" "+i),a},n}return n.i(r.b)(t,e),t.prototype.onRateValuesChanged=function(){this.koVisibleRateValues(this.getValues())},t.prototype.getValues=function(){return this.question.visibleRateValues},t}(i.a),c=function(e){function t(t){var n=e.call(this,t)||this;return n.name=t,new u(n),n}return n.i(r.b)(t,e),t}(a.a);s.a.overrideClassCreator("rating",function(){return new c("")}),l.b.Instance.registerQuestion("rating",function(e){return new c(e)})},function(e,t,n){"use strict";var r=n(2),o={pagePrevText:"السابق",pageNextText:"التالي",completeText:"انهاء- تم",progressText:"{1} صفحة {0} من",otherItemText:"نص آخر",emptySurvey:"لا توجد صفحة مرئية أو سؤال في المسح",completingSurvey:"شكرا لك لاستكمال الاستبيان!",loadingSurvey:"...يتم تحميل الاستبيان",optionsCaption:"...اختر",requiredError:".يرجى الإجابة على السؤال",requiredInAllRowsError:"يرجى الإجابة على الأسئلة في جميع الصفوف",numericError:"يجب أن تكون القيمة الرقمية.",textMinLength:"الرجاء إدخال ما لا يقل عن {0} حرف",textMaxLength:"الرجاء إدخال أقل من {0} حرف",textMinMaxLength:"يرجى إدخال أكثر من {0} وأقل من {1} حرف",minRowCountError:"يرجى ملء ما لا يقل عن {0} الصفوف",minSelectError:"يرجى تحديد ما لا يقل عن {0} المتغيرات",maxSelectError:"يرجى تحديد ما لا يزيد عن {0} المتغيرات",numericMinMax:"و'{0}' يجب أن تكون مساوية أو أكثر من {1} ويساوي أو أقل من {2}ا",numericMin:"و'{0}' يجب أن تكون مساوية أو أكثر من {1}ا",numericMax:"و'{0}' يجب أن تكون مساوية أو أقل من {1}ا",invalidEmail:"رجاء قم بإدخال بريد الكتروني صحيح",urlRequestError:"طلب إرجاع خطأ '{0}'. {1}ا",urlGetChoicesError:"عاد طلب بيانات فارغة أو 'المسار' ممتلكات غير صحيحة ",exceedMaxSize:"وينبغي ألا يتجاوز حجم الملف {0}ا",otherRequiredError:"الرجاء إدخال قيمة أخرى",uploadingFile:"الملف الخاص بك تحميل. يرجى الانتظار عدة ثوان وحاول مرة أخرى",addRow:"اضافة صف",removeRow:"إزالة صف"};r.a.locales.ar=o,r.a.localeNames.ar="العربية"},function(e,t,n){"use strict";var r=n(2),o={pagePrevText:"Назад",pageNextText:"Напред",completeText:"Край",startSurveyText:"Начало",otherItemText:"Друго (опишете)",noneItemText:"Нито един",selectAllItemText:"Всички",progressText:"стр. {0}, общо стр. {1}",emptySurvey:"Анкетата не съдържа видими страници или въпроси.",completingSurvey:"Благодарим ви за участието в анкетата!",completingSurveyBefore:"Изглежда, че вие вече сте попълнили анкетата.",loadingSurvey:"Зареждане на анкетата...",optionsCaption:"Изберете...",value:"value",requiredError:"Моля, отговорете на следния въпрос.",requiredErrorInPanel:"Моля, отговорете поне на един от въпросите.",requiredInAllRowsError:"Моля, отговорете на въпросите на всички редове.",numericError:"Стойността следва да бъде число.",textMinLength:"Моля, използвайте поне {0} символа.",textMaxLength:"Моля, използвайте не повече от {0} символа.",textMinMaxLength:"Моля, използвайте повече от {0} и по-малко от {1} символа.",minRowCountError:"Моля, попълнете поне {0} реда.",minSelectError:"Моля, изберете поне {0} варианта.",maxSelectError:"Моля, изберете не повече от {0} варианта.",numericMinMax:"Стойността '{0}' следва да бъде равна или по-голяма от {1} и равна или по-малка от {2}",numericMin:"Стойността '{0}' следва да бъде равна или по-голяма от {1}",numericMax:"Стойността '{0}' следва да бъде равна или по-малка от {1}",invalidEmail:"Моля, въведете валиден адрес на електронна поща.",invalidExpression:"Изразът: {0} трябва да дава резултат 'true' (истина).",urlRequestError:"Заявката води до грешка '{0}'. {1}",urlGetChoicesError:"Заявката не връща данни или частта 'path' (път до търсения ресурс на сървъра) е неправилно зададена",exceedMaxSize:"Размерът на файла следва да не превишава {0}.",otherRequiredError:"Моля, въведете другата стойност.",uploadingFile:"Вашит файл се зарежда на сървъра. Моля, изчакайте няколко секунди и тогава опитвайте отново.",loadingFile:"Зареждане...",chooseFile:"Изберете файл(ове)...",confirmDelete:"Желаете ли да изтриете записа?",keyDuplicationError:"Стойността следва да бъде уникална.",addColumn:"Добавяне на колона",addRow:"Добавяне на ред",removeRow:"Премахване на ред",addPanel:"Добавяне на панел",removePanel:"Премахване на панел",choices_Item:"елемент",matrix_column:"Колона",matrix_row:"Ред",savingData:"Резултатите се запазват на сървъра...",savingDataError:"Поради възникнала грешка резултатите не можаха да бъдат запазени.",savingDataSuccess:"Резултатите бяха запазени успешно!",saveAgainButton:"Нов опит",timerMin:"мин",timerSec:"сек",timerSpentAll:"Вие използвахте {0} на тази страница и общо {1}.",timerSpentPage:"Вие използвахте {0} на тази страница.",timerSpentSurvey:"Вие използвахте общо {0}.",timerLimitAll:"Вие изпозвахте {0} от {1} на тази страница и общо {2} от {3}.",timerLimitPage:"Вие използвахте {0} от {1} на тази страница.",timerLimitSurvey:"Вие използвахте общо {0} от {1}.",cleanCaption:"Изчистване",clearCaption:"Начално състояние",removeFileCaption:"Премахване на файла"};r.a.locales.bg=o,r.a.localeNames.bg="Bulgarian"},function(e,t,n){"use strict";var r=n(2),o={pagePrevText:"Anterior",pageNextText:"Següent",completeText:"Complet",otherItemText:"Un altre (descrigui)",progressText:"Pàgina {0} de {1}",emptySurvey:"No hi ha cap pàgina visible o pregunta a l'enquesta.",completingSurvey:"Gràcies per completar l'enquesta!",loadingSurvey:"L'enquesta s'està carregant ...",optionsCaption:"Selecciona ...",requiredError:"Si us plau contesti la pregunta.",requiredInAllRowsError:"Si us plau contesti les preguntes de cada filera.",numericError:"L'estimació ha de ser numèrica.",textMinLength:"Si us plau entre almenys {0} símbols.",textMaxLength:"Si us plau entre menys de {0} símbols.",textMinMaxLength:"Si us plau entre més de {0} i menys de {1} símbols.",minRowCountError:"Si us plau ompli almenys {0} fileres.",minSelectError:"Si us plau seleccioni almenys {0} variants.",maxSelectError:"Si us plau seleccioni no més de {0} variants.",numericMinMax:"El '{0}' deu ser igual o més de {1} i igual o menys de {2}",numericMin:"El '{0}' ha de ser igual o més de {1}",numericMax:"El '{0}' ha de ser igual o menys de {1}",invalidEmail:"Si us plau afegiu un correu electrònic vàlid.",urlRequestError:"La sol·licitud va tornar error '{0}'. {1}",urlGetChoicesError:"La sol·licitud va tornar buida de dates o la propietat 'trajectòria' no és correcta",exceedMaxSize:"La mida de l'arxiu no pot excedir {0}.",otherRequiredError:"Si us plau afegiu l'altra estimació.",uploadingFile:"El seu arxiu s'està pujant. Si us plau esperi uns segons i intenteu-ho de nou.",addRow:"Afegiu una filera",removeRow:"Eliminar una filera",choices_firstItem:"primer article",choices_secondItem:"segon article",choices_thirdItem:"tercer article",matrix_column:"Columna",matrix_row:"Filera"};r.a.locales.ca=o,r.a.localeNames.ca="català"},function(e,t,n){"use strict";var r=n(2),o={pagePrevText:"Předchozí",pageNextText:"Další",completeText:"Hotovo",otherItemText:"Jiná odpověď (napište)",progressText:"Strana {0} z {1}",emptySurvey:"Průzkumu neobsahuje žádné otázky.",completingSurvey:"Děkujeme za vyplnění průzkumu!",loadingSurvey:"Probíhá načítání průzkumu...",optionsCaption:"Vyber...",requiredError:"Odpovězte prosím na otázku.",requiredInAllRowsError:"Odpovězte prosím na všechny otázky.",numericError:"V tomto poli lze zadat pouze čísla.",textMinLength:"Zadejte prosím alespoň {0} znaků.",textMaxLength:"Zadejte prosím méně než {0} znaků.",textMinMaxLength:"Zadejte prosím více než {0} a méně než {1} znaků.",minRowCountError:"Vyplňte prosím alespoň {0} řádků.",minSelectError:"Vyberte prosím alespoň {0} varianty.",maxSelectError:"Nevybírejte prosím více než {0} variant.",numericMinMax:"Odpověď '{0}' by mělo být větší nebo rovno {1} a menší nebo rovno {2}",numericMin:"Odpověď '{0}' by mělo být větší nebo rovno {1}",numericMax:"Odpověď '{0}' by mělo být menší nebo rovno {1}",invalidEmail:"Zadejte prosím platnou e-mailovou adresu.",urlRequestError:"Požadavek vrátil chybu '{0}'. {1}",urlGetChoicesError:"Požadavek nevrátil data nebo cesta je neplatná",exceedMaxSize:"Velikost souboru by neměla být větší než {0}.",otherRequiredError:"Zadejte prosím jinou hodnotu.",uploadingFile:"Váš soubor se nahrává. Zkuste to prosím za několik sekund.",addRow:"Přidat řádek",removeRow:"Odstranit"};r.a.locales.cz=o,r.a.localeNames.cz="čeština"},function(e,t,n){"use strict";var r=n(2),o={pagePrevText:"Tilbage",pageNextText:"Videre",completeText:"Færdig",startSurveyText:"Start",otherItemText:"Valgfrit svar...",noneItemText:"Ingen",selectAllItemText:"Vælg alle",progressText:"Side {0} af {1}",emptySurvey:"Der er ingen synlige spørgsmål.",completingSurvey:"Mange tak for din besvarelse!",completingSurveyBefore:"Vores data viser at du allerede har gennemført dette spørgeskema.",loadingSurvey:"Spørgeskemaet hentes fra serveren...",optionsCaption:"Vælg...",value:"værdi",requiredError:"Besvar venligst spørgsmålet.",requiredErrorInPanel:"Besvar venligst mindst ét spørgsmål.",requiredInAllRowsError:"Besvar venligst spørgsmål i alle rækker.",numericError:"Angiv et tal.",textMinLength:"Angiv mindst {0} tegn.",textMaxLength:"Please enter less than {0} characters.",textMinMaxLength:"Angiv mere end {0} og mindre end {1} tegn.",minRowCountError:"Udfyld mindst {0} rækker.",minSelectError:"Vælg venligst mindst {0} svarmulighed(er).",maxSelectError:"Vælg venligst færre {0} svarmuligheder(er).",numericMinMax:"'{0}' skal være lig med eller større end {1} og lig med eller mindre end {2}",numericMin:"'{0}' skal være lig med eller større end {1}",numericMax:"'{0}' skal være lig med eller mindre end {1}",invalidEmail:"Angiv venligst en gyldig e-mail adresse.",invalidExpression:"Udtrykket: {0} skal returnere 'true'.",urlRequestError:"Forespørgslen returnerede fejlen '{0}'. {1}",urlGetChoicesError:"Forespørgslen returnerede ingen data eller 'path' parameteren er forkert",exceedMaxSize:"Filstørrelsen må ikke overstige {0}.",otherRequiredError:"Angiv en værdi for dit valgfrie svar.",uploadingFile:"Din fil bliver uploadet. Vent nogle sekunder og prøv eventuelt igen.",loadingFile:"Indlæser...",chooseFile:"Vælg fil(er)...",confirmDelete:"Vil du fjerne den?",keyDuplicationError:"Denne værdi skal være unik.",addColumn:"Tilføj kolonne",addRow:"Tilføj række",removeRow:"Fjern",addPanel:"Tilføj ny",removePanel:"Fjern",choices_Item:"valg",matrix_column:"Kolonne",matrix_row:"Række",savingData:"Resultaterne bliver gemt på serveren...",savingDataError:"Der opstod en fejl og vi kunne ikke gemme resultatet.",savingDataSuccess:"Resultatet blev gemt!",saveAgainButton:"Prøv igen",timerMin:"min",timerSec:"sek",timerSpentAll:"Du har brugt {0} på denne side og {1} i alt.",timerSpentPage:"Du har brugt {0} på denne side.",timerSpentSurvey:"Du har brugt {0} i alt.",timerLimitAll:"Du har brugt {0} af {1} på denne side og {2} af {3} i alt.",timerLimitPage:"Du har brugt {0} af {1} på denne side.",timerLimitSurvey:"Du har brugt {0} af {1} i alt.",cleanCaption:"Rens",clearCaption:"Fjern",removeFileCaption:"Fjern denne fil"};r.a.locales.da=o,r.a.localeNames.da="dansk"},function(e,t,n){"use strict";var r=n(2),o={pagePrevText:"Vorige",pageNextText:"Volgende",completeText:"Verzenden",otherItemText:"Anders, nl.",progressText:"Pagina {0} van {1}",emptySurvey:"Er is geen zichtbare pagina of vraag in deze vragenlijst",completingSurvey:"Bedankt voor het invullen van de vragenlijst",loadingSurvey:"De vragenlijst is aan het laden...",optionsCaption:"Kies...",requiredError:"Dit is een vereiste vraag",numericError:"Het antwoord moet een getal zijn",textMinLength:"Vul minstens {0} karakters in",minSelectError:"Selecteer minimum {0} antwoorden",maxSelectError:"Selecteer niet meer dan {0} antwoorden",numericMinMax:"Uw antwoord '{0}' moet groter of gelijk zijn aan {1} en kleiner of gelijk aan {2}",numericMin:"Uw antwoord '{0}' moet groter of gelijk zijn aan {1}",numericMax:"Uw antwoord '{0}' moet groter of gelijk zijn aan {1}",invalidEmail:"Vul een geldig e-mailadres in",exceedMaxSize:"De grootte van het bestand mag niet groter zijn dan {0}",otherRequiredError:"Vul het veld 'Anders, nl.' in",requiredInAllRowsError:"Deze vraag vereist één antwoord per rij"};r.a.locales.nl=o,r.a.localeNames.nl="nederlands"},function(e,t,n){"use strict";var r=n(2),o={pagePrevText:"Edellinen",pageNextText:"Seuraava",completeText:"Valmis",otherItemText:"Muu (kuvaile)",progressText:"Sivu {0}/{1}",emptySurvey:"Tässä kyselyssä ei ole yhtäkään näkyvillä olevaa sivua tai kysymystä.",completingSurvey:"Kiitos kyselyyn vastaamisesta!",loadingSurvey:"Kyselyä ladataan palvelimelta...",optionsCaption:"Valitse...",requiredError:"Vastaa kysymykseen, kiitos.",numericError:"Arvon tulee olla numeerinen.",textMinLength:"Ole hyvä ja syötä vähintään {0} merkkiä.",minSelectError:"Ole hyvä ja valitse vähintään {0} vaihtoehtoa.",maxSelectError:"Ole hyvä ja valitse enintään {0} vaihtoehtoa.",numericMinMax:"'{0}' täytyy olla enemmän tai yhtä suuri kuin {1} ja vähemmän tai yhtä suuri kuin {2}",numericMin:"'{0}' täytyy olla enemmän tai yhtä suuri kuin {1}",numericMax:"'{0}' täytyy olla vähemmän tai yhtä suuri kuin {1}",invalidEmail:"Syötä validi sähköpostiosoite.",otherRequiredError:'Ole hyvä ja syötä "Muu (kuvaile)"'};r.a.locales.fi=o,r.a.localeNames.fi="suomalainen"},function(e,t,n){"use strict";var r=n(2),o={pagePrevText:"Précédent",pageNextText:"Suivant",completeText:"Terminer",startSurveyText:"Commencer",otherItemText:"Autre (préciser)",noneItemText:"Aucun",selectAllItemText:"Tout sélectionner",progressText:"Page {0} sur {1}",emptySurvey:"Il n'y a ni page visible ni question visible dans ce questionnaire",completingSurvey:"Merci d'avoir répondu au questionnaire !",completingSurveyBefore:"Nos données indiquent que vous avez déjà rempli ce questionnaire.",loadingSurvey:"Le questionnaire est en cours de chargement...",optionsCaption:"Choisissez...",value:"valeur",requiredError:"La réponse à cette question est obligatoire.",requiredErrorInPanel:"Merci de répondre au moins à une question.",requiredInAllRowsError:"Toutes les lignes sont obligatoires",numericError:"La réponse doit être un nombre.",textMinLength:"Merci de saisir au moins {0} caractères.",textMaxLength:"Merci de saisir moins de {0} caractères.",textMinMaxLength:"Merci de saisir entre {0} et {1} caractères.",minRowCountError:"Merci de compléter au moins {0} lignes.",minSelectError:"Merci de sélectionner au minimum {0} réponses.",maxSelectError:"Merci de sélectionner au maximum {0} réponses.",numericMinMax:"Votre réponse '{0}' doit être supérieure ou égale à {1} et inférieure ou égale à {2}",numericMin:"Votre réponse '{0}' doit être supérieure ou égale à {1}",numericMax:"Votre réponse '{0}' doit être inférieure ou égale à {1}",invalidEmail:"Merci d'entrer une adresse mail valide.",invalidExpression:"L'expression: {0} doit retourner 'true'.",urlRequestError:"La requête a renvoyé une erreur '{0}'. {1}",urlGetChoicesError:"La requête a renvoyé des données vides ou la propriété 'path' est incorrecte",exceedMaxSize:"La taille du fichier ne doit pas excéder {0}.",otherRequiredError:"Merci de préciser le champ 'Autre'.",uploadingFile:"Votre fichier est en cours de chargement. Merci d'attendre quelques secondes et de réessayer.",loadingFile:"Chargement...",chooseFile:"Ajouter des fichiers...",confirmDelete:"Voulez-vous supprimer cet enregistrement ?",keyDuplicationError:"Cette valeur doit être unique.",addColumn:"Ajouter une colonne",addRow:"Ajouter une ligne",removeRow:"Supprimer",addPanel:"Ajouter",removePanel:"Supprimer",choices_Item:"item",matrix_column:"Colonne",matrix_row:"Ligne",savingData:"Les résultats sont en cours de sauvegarde sur le serveur...",savingDataError:"Une erreur est survenue et a empêché la sauvegarde des résultats.",savingDataSuccess:"Les résultats ont bien été enregistrés !",saveAgainButton:"Réessayer",timerMin:"min",timerSec:"sec",timerSpentAll:"Vous avez passé {0} sur cette page et {1} au total.",timerSpentPage:"Vous avez passé {0} sur cette page.",timerSpentSurvey:"Vous avez passé {0} au total.",timerLimitAll:"Vous avez passé {0} sur {1} sur cette page et {2} sur {3} au total.",timerLimitPage:"Vous avez passé {0} sur {1} sur cette page.",timerLimitSurvey:"Vous avez passé {0} sur {1} au total.",cleanCaption:"Nettoyer",clearCaption:"Vider",removeFileCaption:"Enlever ce fichier",booleanCheckedLabel:"Oui",booleanUncheckedLabel:"Non"};r.a.locales.fr=o,r.a.localeNames.fr="français"},function(e,t,n){"use strict";var r=n(2),o={pagePrevText:"უკან",pageNextText:"შემდეგ",completeText:"დასრულება",progressText:"გვერდი {0} / {1}",emptySurvey:"არცერთი კითხვა არ არის.",completingSurvey:"გმადლობთ კითხვარის შევსებისთვის!",loadingSurvey:"ჩატვირთვა სერვერიდან...",otherItemText:"სხვა (გთხოვთ მიუთითეთ)",optionsCaption:"არჩევა...",requiredError:"გთხოვთ უპასუხეთ კითხვას.",numericError:"პასუხი უნდა იყოს რიცხვი.",textMinLength:"გთხოვთ შეიყვანეთ არანაკლებ {0} სიმბოლო.",minSelectError:"გთხოვთ აირჩიეთ არანაკლებ {0} ვარიანტი.",maxSelectError:"გთხოვთ აირჩიეთ არაუმეტეს {0} ვარიანტი.",numericMinMax:"'{0}' უნდა იყოს მეტი ან ტოლი, ვიდრე {1}, და ნაკლები ან ტოლი ვიდრე {2}",numericMin:"'{0}' უნდა იყოს მეტი ან ტოლი ვიდრე {1}",numericMax:"'{0}' უნდა იყოს ნაკლები ან ტოლი ვიდრე {1}",invalidEmail:"გთხოვთ შეიყვანოთ ელ. ფოსტის რეალური მისამართი.",otherRequiredEror:"გთხოვთ შეავსეთ ველი 'სხვა'"};r.a.locales.ka=o,r.a.localeNames.ka="ქართული"},function(e,t,n){"use strict";var r=n(2),o={pagePrevText:"Zurück",pageNextText:"Weiter",completeText:"Abschließen",startSurveyText:"Start",otherItemText:"Sonstiges (Beschreibung)",noneItemText:"Nichts",selectAllItemText:"Alle auswählen",progressText:"Seite {0} von {1}",emptySurvey:"Es ist keine Frage vorhanden.",completingSurvey:"Danke, dass Sie die Umfrage abgeschlossen haben!",completingSurveyBefore:"Wir haben festgestellt, dass Sie diese Umfrage bereits abgeschlossen haben.",loadingSurvey:"Fragebogen wird geladen...",optionsCaption:"Bitte auswählen...",value:"Wert",requiredError:"Bitte beantworten Sie diese Frage.",requiredErrorInPanel:"Bitte beantworten Sie mindestens eine Frage.",requiredInAllRowsError:"Bitte beantworten Sie alle Fragen.",numericError:"Der Wert muss eine Zahl sein.",textMinLength:"Bitte geben sie mindestens {0} Zeichen ein.",textMaxLength:"Bitte geben Sie nicht mehr als {0} Zeichen ein.",textMinMaxLength:"Bitte geben sie mindestens {0} und maximal {1} Zeichen ein.",minRowCountError:"Bitte machen Sie in mindestens {0} Zeilen eine Eingabe.",minSelectError:"Bitte wählen Sie mindestens {0} Variante(n) aus.",maxSelectError:"Bitte wählen Sie nicht mehr als {0} Variante(n) aus.",numericMinMax:"'{0}' muss größer oder gleich {1} und kleiner oder gleich {2} sein",numericMin:"'{0}' muss größer oder gleich {1} sein",numericMax:"'{0}' muss kleiner oder gleich {1} sein",invalidEmail:"Bitte geben Sie eine gültige E-Mail-Adresse ein.",invalidExpression:"Der Ausdruck: {0} muss den Wert 'wahr'(true) zurückliefern.",urlRequestError:"Die Anfrage lieferte den folgenden Fehler zurück '{0}'. {1}",urlGetChoicesError:"Die Anfrage lieferte leere Daten zurück oder der Wert der Variable 'path' ist falsch",exceedMaxSize:"Die Dateigröße darf {0} nicht überschreiten.",otherRequiredError:"Bitte geben Sie den anderen Wert ein.",uploadingFile:"Ihre Datei wird hochgeladen. Bitte warten Sie ein paar Sekunden und versuchen Sie es dann erneut.",loadingFile:"Wird geladen...",chooseFile:"Datei(en) auswählen...",confirmDelete:"Wollen Sie den Eintrag löschen?",keyDuplicationError:"Dieser Wert muss eindeutig sein.",addColumn:"Spalte hinzufügen",addRow:"Zeile hinzufügen",removeRow:"Entfernen",addPanel:"Neu hinzufügen",removePanel:"Entfernen",choices_Item:"Element",matrix_column:"Spalte",matrix_row:"Zeile",savingData:"Die Ergebnisse werden auf dem Server gespeichert...",savingDataError:"Es ist ein Fehler aufgetreten. Die Ergebnisse konnten nicht gespeichert werden.",savingDataSuccess:"Die Ergebnisse wurden gespeichert!",saveAgainButton:"Bitte versuchen Sie es erneut",timerMin:"Min.",timerSec:"Sek.",timerSpentAll:"Sie waren {0} auf dieser Seite und insgesamt {1}.",timerSpentPage:"Sie waren {0} auf dieser Seite.",timerSpentSurvey:"Sie haben insgesamt {0} benötigt.",timerLimitAll:"Sie waren {0} von {1} auf dieser Seite und insgesamt {2} von {3}.",timerLimitPage:"Sie waren {0} von {1} auf dieser Seite.",timerLimitSurvey:"Sie haben insgesamt {0} von {1} benötigt.",cleanCaption:"Sauber",clearCaption:"Leeren",removeFileCaption:"Datei löschen"};r.a.locales.de=o,r.a.localeNames.de="deutsch"},function(e,t,n){"use strict";var r=n(2),o={pagePrevText:"Προηγούμενο",pageNextText:"Επόμενο",completeText:"Ολοκλήρωση",otherItemText:"Άλλο (παρακαλώ διευκρινίστε)",progressText:"Σελίδα {0} από {1}",emptySurvey:"Δεν υπάρχει καμία ορατή σελίδα ή ορατή ερώτηση σε αυτό το ερωτηματολόγιο.",completingSurvey:"Ευχαριστούμε για την συμπλήρωση αυτού του ερωτηματολογίου!",loadingSurvey:"Το ερωτηματολόγιο φορτώνεται απο το διακομιστή...",optionsCaption:"Επιλέξτε...",requiredError:"Παρακαλώ απαντήστε στην ερώτηση.",requiredInAllRowsError:"Παρακαλώ απαντήστε στις ερωτήσεις σε όλες τις γραμμές.",numericError:"Η τιμή πρέπει να είναι αριθμητική.",textMinLength:"Παρακαλώ συμπληρώστε τουλάχιστον {0} σύμβολα.",minRowCountError:"Παρακαλώ συμπληρώστε τουλάχιστον {0} γραμμές.",minSelectError:"Παρακαλώ επιλέξτε τουλάχιστον {0} παραλλαγές.",maxSelectError:"Παρακαλώ επιλέξτε όχι παραπάνω απο {0} παραλλαγές.",numericMinMax:"Το '{0}' θα πρέπει να είναι ίσο ή μεγαλύτερο απο το {1} και ίσο ή μικρότερο απο το {2}",numericMin:"Το '{0}' πρέπει να είναι μεγαλύτερο ή ισο με το {1}",numericMax:"Το '{0}' πρέπει να είναι μικρότερο ή ίσο απο το {1}",invalidEmail:"Παρακαλώ δώστε μια αποδεκτή διεύθυνση e-mail.",urlRequestError:"Η αίτηση επέστρεψε σφάλμα '{0}'. {1}",urlGetChoicesError:"Η αίτηση επέστρεψε κενά δεδομένα ή η ιδιότητα 'μονοπάτι/path' είναι εσφαλμένη",exceedMaxSize:"Το μέγεθος δεν μπορεί να υπερβαίνει τα {0}.",otherRequiredError:"Παρακαλώ συμπληρώστε την τιμή για το πεδίο 'άλλο'.",uploadingFile:"Το αρχείο σας ανεβαίνει. Παρακαλώ περιμένετε καποια δευτερόλεπτα και δοκιμάστε ξανά.",addRow:"Προσθήκη γραμμής",removeRow:"Αφαίρεση"};r.a.locales.gr=o,r.a.localeNames.gr="ελληνικά"},function(e,t,n){"use strict";var r=n(2),o={pagePrevText:"אחורה",pageNextText:"קדימה",completeText:"סיום",progressText:"דף {1} מתוך {0}",emptySurvey:"אין שאלות",completingSurvey:"תודה על מילוי השאלון!",loadingSurvey:"טעינה מהשרת...",otherItemText:"אחר (נא לתאר)",optionsCaption:"בחר...",requiredError:"אנא השב על השאלה",numericError:"התשובה צריכה להיות מספר.",textMinLength:"הזן לפחות {0} תווים.",minSelectError:"בחר לפחות {0} אפשרויות.",maxSelectError:"בחר עד {0} אפשרויות.",numericMinMax:"'{0}' חייב להיות שווה או גדול מ {1}, ושווה ל- {2} או פחות מ- {}}",numericMin:"'{0}' חייב להיות שווה או גדול מ {1}",numericMax:"'{0}' חייב להיות שווה או קטן מ {1}",invalidEmail:'הזן כתובת דוא"ל חוקית.',otherRequiredError:'נא להזין נתונים בשדה "אחר"'};r.a.locales.he=o,r.a.localeNames.he="עברית"},function(e,t,n){"use strict";var r=n(2),o={pagePrevText:"Vissza",pageNextText:"Tovább",completeText:"Kész",otherItemText:"Egyéb (adja meg)",progressText:"{0}./{1} oldal",emptySurvey:"There is no visible page or question in the survey.",completingSurvey:"Köszönjük, hogy kitöltötte felmérésünket!",completingSurveyBefore:"Már kitöltötte a felmérést.",loadingSurvey:"Felmérés betöltése...",optionsCaption:"Válasszon...",value:"érték",requiredError:"Kérjük, válaszolja meg ezt a kérdést!",requiredInAllRowsError:"Kérjük adjon választ minden sorban!",numericError:"Az érték szám kell, hogy legyen!",textMinLength:"Adjon meg legalább {0} karaktert!",textMaxLength:"Legfeljebb {0} karaktert adjon meg!",textMinMaxLength:"Adjon meg legalább {0}, de legfeljebb {1} karaktert!",minRowCountError:"Töltsön ki minimum {0} sort!",minSelectError:"Válasszon ki legalább {0} lehetőséget!",maxSelectError:"Ne válasszon többet, mint {0} lehetőség!",numericMinMax:"'{0}' legyen nagyobb, vagy egyenlő, mint {1} és kisebb, vagy egyenlő, mint {2}!",numericMin:"'{0}' legyen legalább {1}!",numericMax:"The '{0}' ne legyen nagyobb, mint {1}!",invalidEmail:"Adjon meg egy valós email címet!",urlRequestError:"A lekérdezés hibával tért vissza: '{0}'. {1}",urlGetChoicesError:"A lekérdezés üres adattal tért vissza, vagy a 'path' paraméter helytelen.",exceedMaxSize:"A méret nem lehet nagyobb, mint {0}.",otherRequiredError:"Adja meg az egyéb értéket!",uploadingFile:"Feltöltés folyamatban. Várjon pár másodpercet, majd próbálja újra.",confirmDelete:"Törli ezt a rekordot?",keyDuplicationError:"Az értéknek egyedinek kell lennie.",addRow:"Sor hozzáadása",removeRow:"Eltávolítás",addPanel:"Új hozzáadása",removePanel:"Eltávolítás",choices_Item:"elem",matrix_column:"Oszlop",matrix_row:"Sor",savingData:"Eredmény mentése a szerverre...",savingDataError:"Egy hiba folytán nem tudtuk elmenteni az eredményt.",savingDataSuccess:"Eredmény sikeresen mentve!",saveAgainButton:"Próbálja újra"};r.a.locales.hu=o,r.a.localeNames.hu="magyar"},function(e,t,n){"use strict";var r=n(2),o={pagePrevText:"Tilbaka",pageNextText:"Áfram",completeText:"Lokið",otherItemText:"Hinn (skýring)",progressText:"Síða {0} of {1}",emptySurvey:"Það er enginn síða eða spurningar í þessari könnun.",completingSurvey:"Takk fyrir að fyllja út þessa könnun!",loadingSurvey:"Könnunin er að hlaða...",optionsCaption:"Veldu...",requiredError:"Vinsamlegast svarið spurningunni.",requiredInAllRowsError:"Vinsamlegast svarið spurningum í öllum röðum.",numericError:"Þetta gildi verður að vera tala.",textMinLength:"Það ætti að vera minnst {0} tákn.",textMaxLength:"Það ætti að vera mest {0} tákn.",textMinMaxLength:"Það ætti að vera fleiri en {0} og færri en {1} tákn.",minRowCountError:"Vinsamlegast fyllið úr að minnsta kosti {0} raðir.",minSelectError:"Vinsamlegast veljið að minnsta kosti {0} möguleika.",maxSelectError:"Vinsamlegast veljið ekki fleiri en {0} möguleika.",numericMinMax:"'{0}' ætti að vera meira en eða jafnt og {1} minna en eða jafnt og {2}",numericMin:"{0}' ætti að vera meira en eða jafnt og {1}",numericMax:"'{0}' ætti að vera minna en eða jafnt og {1}",invalidEmail:"Vinsamlegast sláið inn gilt netfang.",urlRequestError:"Beiðninn skilaði eftirfaranadi villu '{0}'. {1}",urlGetChoicesError:"Beiðninng skilaði engum gögnum eða slóðinn var röng",exceedMaxSize:"Skráinn skal ekki vera stærri en {0}.",otherRequiredError:"Vinamlegast fyllið út hitt gildið.",uploadingFile:"Skráinn þín var send. Vinsamlegast bíðið í nokkrar sekúndur og reynið aftur.",addRow:"Bæta við röð",removeRow:"Fjarlægja",choices_firstItem:"fyrsti hlutur",choices_secondItem:"annar hlutur",choices_thirdItem:"þriðji hlutur",matrix_column:"Dálkur",matrix_row:"Röð"};r.a.locales.is=o,r.a.localeNames.is="íslenska"},function(e,t,n){"use strict";var r=n(2),o={pagePrevText:"Sebelumnya",pageNextText:"Selanjutnya",completeText:"Selesai",startSurveyText:"Mulai",otherItemText:"Lainnya (jelaskan)",noneItemText:"Tidak Ada",selectAllItemText:"Pilih Semua",progressText:"Halaman {0} dari {1}",emptySurvey:"Tidak ada halaman atau pertanyaan dalam survei.",completingSurvey:"Terima kasih telah menyelesaikan survei!",completingSurveyBefore:"Catatan kami menunjukkan bahwa Anda telah menyelesaikan survei ini.",loadingSurvey:"Memuat survei...",optionsCaption:"Pilih...",value:"nilai",requiredError:"Silahkan jawab pertanyaan berikut.",requiredErrorInPanel:"Silahkan jawab setidaknya satu petanyaan.",requiredInAllRowsError:"Silahkan jawab pertanyaan pada semua baris.",numericError:"Nilai harus berupa angka.",textMinLength:"Silahkan masukkan setidaknya {0} karakter.",textMaxLength:"Silahkan masukkan kurang {0} karakter.",textMinMaxLength:"PSilahkan masukkan lebih dari {0} dan kurang dari {1} karakter.",minRowCountError:"Silahkan isi setidaknya {0} baris.",minSelectError:"Silahkan pilih setidaknya {0} varian.",maxSelectError:"Silahkan pilih tidak lebih dari {0} varian.",numericMinMax:"'{0}' harus sama dengan atau lebih dari {1} dan harus sama dengan atau kurang dari {2}",numericMin:"'{0}' harus sama dengan atau lebih dari {1}",numericMax:"'{0}' harus sama dengan atau kurang dari {1}",invalidEmail:"Silahkan masukkan e-mail yang benar.",invalidExpression:"Ekspresi: {0} harus mengembalikan 'benar'.",urlRequestError:"Permintaan mengembalikan kesalahan '{0}'. {1}",urlGetChoicesError:"Permintaan mengembalikan data kosong atau properti 'path' salah.",exceedMaxSize:"Ukuran berkas tidak boleh melebihi {0}.",otherRequiredError:"Silahkan masukkan nilai lainnnya.",uploadingFile:"Berkas Anda sedang diunggah. Silahkan tunggu beberapa saat atau coba lagi.",loadingFile:"Memuat...",chooseFile:"Pilih berkas...",confirmDelete:"Apakah Anda ingin menghapus catatan?",keyDuplicationError:"Nilai harus unik.",addColumn:"Tambah kolom",addRow:"Tambah baris",removeRow:"Hapus",addPanel:"Tambah baru",removePanel:"Hapus",choices_Item:"item",matrix_column:"Kolom",matrix_row:"Baris",savingData:"Hasil sedang disimpan pada server...",savingDataError:"Kesalahan terjadi dan kami tidak dapat menyimpan hasil.",savingDataSuccess:"Hasil telah sukses disimpan!",saveAgainButton:"Coba lagi",timerMin:"menit",timerSec:"detik",timerSpentAll:"Anda telah menghabiskan {0} pada halaman ini dan {1} secara keseluruhan.",timerSpentPage:"YAnda telah menghabiskan {0} pada halaman ini.",timerSpentSurvey:"Anda telah menghabiskan {0} secara keseluruhan.",timerLimitAll:"Anda telah menghabiskan {0} dari {1} pada halaman ini dan {2} dari {3} secara keseluruhan.",timerLimitPage:"Anda telah menghabiskan {0} dari {1} pada halaman ini.",timerLimitSurvey:"Anda telah menghabiskan {0} dari {1} secara keseluruhan.",cleanCaption:"Bersihkan",clearCaption:"Bersihkan",removeFileCaption:"Hapus berkas ini"};r.a.locales.id=o,r.a.localeNames.id="Bahasa Indonesia"},function(e,t,n){"use strict";var r=n(2),o={pagePrevText:"Precedente",pageNextText:"Successivo",completeText:"Salva",startSurveyText:"Inizio",otherItemText:"Altro (descrivi)",progressText:"Pagina {0} di {1}",emptySurvey:"Non ci sono pagine o domande visibili nel questionario.",completingSurvey:"Grazie per aver completato il questionario!",completingSurveyBefore:"I nostri records mostrano che hai già completato questo questionario.",loadingSurvey:"Caricamento del questionario in corso...",optionsCaption:"Scegli...",value:"valore",requiredError:"Campo obbligatorio",requiredErrorInPanel:"Per Favore, rispondi ad almeno una domanda.",requiredInAllRowsError:"Completare tutte le righe",numericError:"Il valore deve essere numerico",textMinLength:"Inserire almeno {0} caratteri",textMaxLength:"Lunghezza massima consentita {0} caratteri",textMinMaxLength:"Inserire una stringa con minimo {0} e massimo {1} caratteri",minRowCountError:"Completare almeno {0} righe.",minSelectError:"Selezionare almeno {0} varianti.",maxSelectError:"Selezionare massimo {0} varianti.",numericMinMax:"'{0}' deve essere uguale o superiore a {1} e uguale o inferiore a {2}",numericMin:"'{0}' deve essere uguale o superiore a {1}",numericMax:"'{0}' deve essere uguale o inferiore a {1}",invalidEmail:"Inserire indirizzo mail valido",urlRequestError:"La richiesta ha risposto con un errore '{0}'. {1}",urlGetChoicesError:"La richiesta ha risposto null oppure il percorso non è corretto",exceedMaxSize:"Il file non può eccedere {0}",otherRequiredError:"Inserire il valore 'altro'",uploadingFile:"File in caricamento. Attendi alcuni secondi e riprova",confirmDelete:"Sei sicuro di voler elminare il record?",keyDuplicationError:"Questo valore deve essere univoco.",addRow:"Aggiungi riga",removeRow:"Rimuovi riga",addPanel:"Aggiungi riga",removePanel:"Elimina",choices_Item:"Elemento",matrix_column:"Colonna",matrix_row:"Riga",savingData:"Salvataggio dati sul server...",savingDataError:"Si è verificato un errore e non è stato possibile salvare i risultati.",savingDataSuccess:"I risultati sono stati salvati con successo!",saveAgainButton:"Riprova",timerMin:"min",timerSec:"sec",timerSpentAll:"Hai impiegato {0} su questa pagina e {1} in totale.",timerSpentPage:"Hai impiegato {0} su questa pagina.",timerSpentSurvey:"Hai impiegato {0} in totale.",timerLimitAll:"Hai impiegato {0} di {1} su questa pagina e {2} di {3} in totale.",timerLimitPage:"Hai impiegato {0} di {1} su questa pagina.",timerLimitSurvey:"Hai impiegato {0} di {1} in totale.",cleanCaption:"Pulisci"};r.a.locales.it=o,r.a.localeNames.it="italiano"},function(e,t,n){"use strict";var r=n(2),o={pagePrevText:"前の",pageNextText:"次へ",completeText:"完了",startSurveyText:"スタート",otherItemText:"その他(説明)",noneItemText:"なし",selectAllItemText:"すべて選択",progressText:"{0}/{1}頁",emptySurvey:"この調査に表示できるページや質問はありません",completingSurvey:"調査を完了してくれてありがとうございました",loadingSurvey:"調査をダウンロード中",optionsCaption:"選択",requiredError:"質問にお答え下さい",numericError:"数字でご記入下さい",textMinLength:"{0} 文字以上で入力して下さい",minRowCountError:"{0}行以上で入力して下さい",minSelectError:"{0}種類以上を選択して下さい",numericMin:"'{0}' は同等か{1}より大きくなければなりません",numericMax:"'{0}' は同等か{1}より小さくなければなりません",invalidEmail:"有効なメールアドレスをご記入下さい",exceedMaxSize:"ファイルのサイズは{0}を超えてはいけません",uploadingFile:"ファイルをアップロード中です。しばらくしてから再度お試し下さい",loadingFile:"読み込み中",chooseFile:"ファイルを選択",cleanCaption:"削除",clearCaption:"空白",removeFileCaption:"このファイルを削除"};r.a.locales.ja=o,r.a.localeNames.ja="日本語"},function(e,t,n){"use strict";var r=n(2),o={pagePrevText:"이전",pageNextText:"다음",completeText:"완료",startSurveyText:"시작",otherItemText:"기타(설명)",progressText:"페이지 {1} 중 {0}",emptySurvey:"설문지에 보여지는 페이지나 질문이 없습니다",completingSurvey:"설문 조사를 완료해 주셔서 감사합니다!",completingSurveyBefore:"기록에 따르면 이미 설문 조사를 마치셨습니다.",loadingSurvey:"설문조사가 로드중입니다...",optionsCaption:"선택하십시오...",value:"값",requiredError:"질문에 답하시오.",requiredErrorInPanel:"하나 이상의 질문에 답하십시오.",requiredInAllRowsError:"모든 행에 있는 질문에 답하십시오.",numericError:"값은 숫자여야 합니다.",textMinLength:"답변의 길이는 최소 {0}자여야 입니다.",textMaxLength:"답변의 길이는 {0}자를 초과 할 수 없습니다.",textMinMaxLength:"답변의 길이는 {0} - {1}자 사이여야 합니다.",minRowCountError:"최소 {0}개의 행을 채우십시오",minSelectError:"최소 {0}개의 변수를 선택하십시오.",maxSelectError:"최대 {0}개의 변수를 선택하십시오.",numericMinMax:"'{0}'은 {1}보다 크거나 같고 {2}보다 작거나 같아야합니다.",numericMin:"'{0}'은 {1}보다 크거나 같아야합니다.",numericMax:"'{0}'은 {1}보다 작거나 같아야합니다.",invalidEmail:"올바른 이메일 주소를 입력하십시오.",invalidExpression:"표현식: {0}은 '참'이어야 합니다.",urlRequestError:"'{0}'으로 잘못된 요청입니다. {1}",urlGetChoicesError:"비어있는 데이터를 요청했거나 잘못된 속성의 경로입니다.",exceedMaxSize:"파일 크기가 {0}을 초과 할 수 없습니다.",otherRequiredError:"다른 질문을 작성하십시오.",uploadingFile:"파일 업로드 중입니다. 잠시 후 다시 시도하십시오.",loadingFile:"로드 중...",chooseFile:"파일 선택...",confirmDelete:"기록을 삭제하시겠습니까?",keyDuplicationError:" 이 값은 고유해야합니다.",addColumn:"열 추가",addRow:"행 추가",removeRow:"제거",addPanel:"새롭게 추가",removePanel:"제거",choices_Item:"항목",matrix_column:"열",matrix_row:"행",savingData:"결과가 서버에 저장 중입니다...",savingDataError:"오류가 발생하여 결과를 저장할 수 없습니다.",savingDataSuccess:"결과가 성공적으로 저장되었습니다!",saveAgainButton:"다시 시도하십시오",timerMin:"분",timerSec:"초",timerSpentAll:"현재 페이지에서 {0}을 소요해 총 {1}이 걸렸습니다.",timerSpentPage:"현재 페이지에서 {0]이 걸렸습니다",timerSpentSurvey:"총 {0}이 걸렸습니다.",timerLimitAll:"현재 페이지에서 {0}/{1}을 소요해 총 {2}/{3}이 걸렸습니다.",timerLimitPage:"현재 페이지에서 {0}/{1}이 걸렸습니다.",timerLimitSurvey:"총 {0}/{1}이 걸렸습니다.",cleanCaption:"닦기",clearCaption:"지우기"};r.a.locales.ko=o,r.a.localeNames.ko="한국어"},function(e,t,n){"use strict";var r=n(2),o={pagePrevText:"Atpakaļ",pageNextText:"Tālāk",completeText:"Pabeigt",progressText:"Lappuse {0} no {1}",emptySurvey:"Nav neviena jautājuma.",completingSurvey:"Pateicamies Jums par anketas aizpildīšanu!",loadingSurvey:"Ielāde no servera...",otherItemText:"Cits (lūdzu, aprakstiet!)",optionsCaption:"Izvēlēties...",requiredError:"Lūdzu, atbildiet uz jautājumu!",numericError:"Atbildei ir jābūt skaitlim.",textMinLength:"Lūdzu, ievadiet vismaz {0} simbolus.",minSelectError:"Lūdzu, izvēlieties vismaz {0} variantu.",maxSelectError:"Lūdzu, izvēlieties ne vairak par {0} variantiem.",numericMinMax:"'{0}' jābūt vienādam vai lielākam nekā {1}, un vienādam vai mazākam, nekā {2}",numericMin:"'{0}' jābūt vienādam vai lielākam {1}",numericMax:"'{0}' jābūt vienādam vai lielākam {1}",invalidEmail:"Lūdzu, ievadiet patiesu e-pasta adresi!",otherRequiredError:'Lūdzu, ievadiet datus laukā "Cits"'};r.a.locales.lv=o,r.a.localeNames.lv="latviešu"},function(e,t,n){"use strict";var r=n(2),o={pagePrevText:"Atgal",pageNextText:"Toliau",completeText:"Baigti",startSurveyText:"Pradėti",otherItemText:"Kita (įvesti)",noneItemText:"Nėra",selectAllItemText:"Pasirinkti visus",progressText:"Puslapis {0} iš {1}",emptySurvey:"Apklausoje nėra matomo puslapio ar klausimo.",completingSurvey:"Dėkojame už dalyvavimą apklausoje!",completingSurveyBefore:"Mūsų įrašai rodo, kad jau atlikote šią apklausą.",loadingSurvey:"Prašome palaukti...",optionsCaption:"Pasirinkti...",value:"reikšmė",requiredError:"Būtina atsakyti į šį klausimą.",requiredErrorInPanel:"Būtina atsakyti bent į vieną klausimą.",requiredInAllRowsError:"Prašome atsakyti į klausimus visose eilutėse.",numericError:"Turi būti skaičiai.",textMinLength:"Prašome suvesti bent {0} simbolius.",textMaxLength:"Prašome suvesti mažiau nei {0} simbolių.",textMinMaxLength:"Prašome suvesti daugiau nei {0} ir mažiau nei {1} simbolių.",minRowCountError:"Prašome suvesti ne mažiau nei {0} eilučių.",minSelectError:"Prašome pasirinkti bent {0} variantų.",maxSelectError:"Pasirinkite ne daugiau kaip {0} variantus.",numericMinMax:"'{0}' turi būti lygus arba didesnis nei {1} ir lygus arba mažesnis nei {2}",numericMin:"'{0}' turėtų būti lygus arba didesnis nei {1}",numericMax:"'{0}' turėtų būti lygus ar mažesnis už {1}",invalidEmail:"Prašome įvesti galiojantį elektroninio pašto adresą.",invalidExpression:"Reikšmė: {0} turi grąžinti 'true'.",urlRequestError:"Užklausa grąžino klaidą'{0}'. {1}",urlGetChoicesError:"Užklausa grąžino tuščius duomenis arba 'path' savybė yra neteisinga",exceedMaxSize:"Failo dydis neturi viršyti {0}.",otherRequiredError:"Įveskite kitą reikšmę.",uploadingFile:"Jūsų failas yra keliamas. Palaukite keletą sekundžių ir bandykite dar kartą.",loadingFile:"Prašome palaukti...",chooseFile:"Pasirinkti failą(us)...",confirmDelete:"Ar norite ištrinti įrašą?",keyDuplicationError:"Ši reikšmė turėtų būti unikali.",addColumn:"Pridėti stulpelį",addRow:"Pridėti eilutę",removeRow:"Ištrinti",addPanel:"Pridėti naują",removePanel:"Ištrinti",choices_Item:"elementas",matrix_column:"Stulpelis",matrix_row:"Eilutė",savingData:"Rezultatai saugomi serveryje...",savingDataError:"Įvyko klaida ir mes negalėjome išsaugoti rezultatų.",savingDataSuccess:"Rezultatai buvo išsaugoti sėkmingai!",saveAgainButton:"Bandyti dar kartą",timerMin:"min",timerSec:"sek",timerSpentAll:"Praleidote {0} šiame puslapyje ir {1} iš viso.",timerSpentPage:"Praleidote {0} šiame puslapyje.",timerSpentSurvey:"Praleidote {0} iš viso.",timerLimitAll:"Praleidote {0} iš {1} šiame puslapyje ir {2} iš {3} iš viso.",timerLimitPage:"Praleidote {0} iš {1} šiame puslapyje.",timerLimitSurvey:"Praleidote {0} iš {1} iš viso.",cleanCaption:"Išvalyti",clearCaption:"Valyti",removeFileCaption:"Ištrinti šį failą"};r.a.locales.lt=o,r.a.localeNames.lt="Lietuvių"},function(e,t,n){"use strict";var r=n(2),o={pagePrevText:"Forrige",pageNextText:"Neste",completeText:"Fullfør",startSurveyText:"Start",otherItemText:"Annet (beskriv)",progressText:"Side {0} av {1}",emptySurvey:"Det er ingen synlig side eller spørsmål i undersøkelsen.",completingSurvey:"Takk for at du fullførte undersøkelsen!",completingSurveyBefore:"Våre data viser at du allerede har gjennomført denne undersøkelsen.",loadingSurvey:"Undersøkelsen laster...",optionsCaption:"Velg...",value:"verdi",requiredError:"Vennligst svar på spørsmålet.",requiredErrorInPanel:"Vennligst svar på minst ett spørsmål.",requiredInAllRowsError:"Vennligst svar på spørsmål i alle rader.",numericError:"Verdien skal være numerisk.",textMinLength:"Vennligst skriv inn minst {0} tegn.",textMaxLength:"Vennligst skriv inn mindre enn {0} tegn.",textMinMaxLength:"Vennligst skriv inn mer enn {0} og mindre enn {1} tegn.",minRowCountError:"Vennligst fyll inn minst {0} rader.",minSelectError:"Vennligst velg minst {0} varianter.",maxSelectError:"Vennligst ikke velg mer enn {0} varianter.",numericMinMax:"'{0}' bør være lik eller mer enn {1} og lik eller mindre enn {2}",numericMin:"'{0}' bør være lik eller mer enn {1}",numericMax:"'{0}' bør være lik eller mindre enn {1}",invalidEmail:"Vennligst skriv inn en gyldig e-post adresse.",urlRequestError:"Forespørselen returnerte feilen '{0}'. {1}",urlGetChoicesError:"Forespørselen returnerte tomme data, eller 'sti' -egenskapen er feil",exceedMaxSize:"Filstørrelsen bør ikke overstige {0}.",otherRequiredError:"Vennligst skriv inn den andre verdien.",uploadingFile:"Filen din lastes opp. Vennligst vent noen sekunder og prøv igjen.",confirmDelete:"Ønsker du å slette posten?",keyDuplicationError:"Denne verdien skal være unik.",addRow:"Legg til rad",removeRow:"Fjern",addPanel:"Legg til ny",removePanel:"Fjerne",choices_Item:"element",matrix_column:"Kolonne",matrix_row:"Rad",savingData:"Resultatene lagres på serveren ...",savingDataError:"Det oppsto en feil, og vi kunne ikke lagre resultatene.",savingDataSuccess:"Resultatene ble lagret!",saveAgainButton:"Prøv igjen",timerMin:"min",timerSec:"sek",timerSpentAll:"Du har tilbrakt {0} på denne siden og {1} totalt.",timerSpentPage:"Du har tilbrakt {0} på denne siden.",timerSpentSurvey:"Du har tilbrakt {0} totalt.",timerLimitAll:"Du har tilbrakt {0} av {1} på denne siden og totalt {2} av {3}.",timerLimitPage:"Du har tilbrakt {0} av {1} på denne siden.",timerLimitSurvey:"Du har tilbrakt {0} av {1} totalt.",cleanCaption:"Rens"};r.a.locales.no=o,r.a.localeNames.no="norsk"},function(e,t,n){"use strict";var r=n(2),o={pagePrevText:"قبلی",pageNextText:"بعدی",completeText:"تکمیل",otherItemText:"دیگر(توضیح)",progressText:"صفحه {0} از {1}",emptySurvey:"صفحه ای یا گزینه ای برای این پرسشنامه موجود نیست.",completingSurvey:"از شما بابت تکمیل این پرسشنامه متشکریم",completingSurveyBefore:"به نظر می رسد هم هم اکنون پرسشنامه را تکمیل کرده اید.",loadingSurvey:"درحال ایجاد پرسشنامه",optionsCaption:"انتخاب کنید...",value:"مقدار",requiredError:"لطفا به سوال پاسخ دهید",requiredInAllRowsError:"لطفا به تمام سطر های سوالات پاسخ دهید",numericError:"مقدار باید عددی باشد",textMinLength:"لطفا حداقل {0} حرف وارد کنید",textMaxLength:"لطفا کمتر از {0} حرف وارد کنید.",textMinMaxLength:"لطفا بیشتر از {0} حرف و کمتر از {1} حرف وارد کنید.",minRowCountError:"لطفا حداقل {0} سطر وارد کنید.",minSelectError:"حداقل {0} انتخاب کنید.",maxSelectError:"لطفا بیشتر از {0} انتخاب کنید.",numericMinMax:"'{0}' باید بین {1} و {2} باشد",numericMin:"'{0}' بزرگتر مساوی {1} باشد",numericMax:"'{0}' باید کوچکتر یا مساوی {1} باشد",invalidEmail:"لطفا ایمیل صحیح درج کنید",urlRequestError:"درخواست با خطا روبرو شد: '{0}'. {1}",urlGetChoicesError:"درخواست مسیری خالی بازگشت داده یا مسیر درست تنظیم نشده",exceedMaxSize:"بیشترین حجم مجاز فایل: {0}",otherRequiredError:"مقدار 'دیگر' را وارد کنید",uploadingFile:"فایل در حال آیلود می باشد. لطفا صبر کنید.",confirmDelete:"آیا مایل به حذف این ردیف هستید؟",keyDuplicationError:"این مقدار باید غیر تکراری باشد",addRow:"سطر جدید",removeRow:"حذف",addPanel:"جدید",removePanel:"حذف",choices_Item:"آیتم",matrix_column:"ستون",matrix_row:"سطر",savingData:"نتایج در حال ذخیره سازی در سرور می باشد",savingDataError:"خطایی در ذخیره سازی نتایج رخ داده است",savingDataSuccess:"نتایج با موفقیت ذخیره شد",saveAgainButton:"مجدد تلاش کنید"};r.a.locales.fa=o,r.a.localeNames.fa="فارْسِى"},function(e,t,n){"use strict";var r=n(2),o={pagePrevText:"Wstecz",pageNextText:"Dalej",completeText:"Gotowe",otherItemText:"Inna odpowiedź (wpisz)",progressText:"Strona {0} z {1}",emptySurvey:"Nie ma widocznych pytań.",completingSurvey:"Dziękujemy za wypełnienie ankiety!",loadingSurvey:"Trwa wczytywanie ankiety...",optionsCaption:"Wybierz...",requiredError:"Proszę odpowiedzieć na to pytanie.",requiredInAllRowsError:"Proszę odpowiedzieć na wszystkie pytania.",numericError:"W tym polu można wpisać tylko liczby.",textMinLength:"Proszę wpisać co najmniej {0} znaków.",textMaxLength:"Proszę wpisać mniej niż {0} znaków.",textMinMaxLength:"Proszę wpisać więcej niż {0} i mniej niż {1} znaków.",minRowCountError:"Proszę uzupełnić przynajmniej {0} wierszy.",minSelectError:"Proszę wybrać co najmniej {0} pozycji.",maxSelectError:"Proszę wybrać nie więcej niż {0} pozycji.",numericMinMax:"Odpowiedź '{0}' powinna być większa lub równa {1} oraz mniejsza lub równa {2}",numericMin:"Odpowiedź '{0}' powinna być większa lub równa {1}",numericMax:"Odpowiedź '{0}' powinna być mniejsza lub równa {1}",invalidEmail:"Proszę podać prawidłowy adres email.",urlRequestError:"Żądanie zwróciło błąd '{0}'. {1}",urlGetChoicesError:"Żądanie nie zwróciło danych albo ścieżka jest nieprawidłowa",exceedMaxSize:"Rozmiar przesłanego pliku nie może przekraczać {0}.",otherRequiredError:"Proszę podać inną odpowiedź.",uploadingFile:"Trwa przenoszenie Twojego pliku, proszę spróbować ponownie za kilka sekund.",addRow:"Dodaj wiersz",removeRow:"Usuń",addPanel:"Dodaj panel",removePanel:"Usuń",choices_Item:"element",matrix_column:"Kolumna",matrix_row:"Wiersz",savingData:"Zapisuję wyniki ankiety na serwerze...",savingDataError:"Wystąpił błąd i wyniki nie mogły zostać zapisane.",savingDataSuccess:"Wyniki zostały poprawnie zapisane!",saveAgainButton:"Spróbuj ponownie",timerMin:"min",timerSec:"sek",timerSpentAll:"Spędziłeś {0} na tej stronie a w sumie {1}.",timerSpentPage:"Spędziłeś {0} na tej stronie.",timerSpentSurvey:"Spędziłeś w smumie {0}.",timerLimitAll:"Spędziłeś {0} z {1} na tej stronie a w sumie {2} z {3}.",timerLimitPage:"Spędziłeś {0} z {1} na tej stronie",timerLimitSurvey:"Spędziłeś {0} z {1}.",cleanCaption:"Wyczyść"};r.a.locales.pl=o,r.a.localeNames.pl="polski"},function(e,t,n){"use strict";var r=n(2),o={pagePrevText:"Anterior",pageNextText:"Próximo",completeText:"Finalizar",startSurveyText:"Começar",otherItemText:"Outros (descrever)",noneItemText:"Nenhum",selectAllItemText:"Selecionar Todos",progressText:"Página {0} de {1}",emptySurvey:"Não há página visível ou pergunta na pesquisa.",completingSurvey:"Obrigado por finalizar a pesquisa!",completingSurveyBefore:"Nossos registros mostram que você já finalizou a pesquisa.",loadingSurvey:"A pesquisa está carregando...",optionsCaption:"Selecione...",value:"valor",requiredError:"Por favor, responda a pergunta.",requiredErrorInPanel:"Por favor, responda pelo menos uma pergunta.",requiredInAllRowsError:"Por favor, responda as perguntas em todas as linhas.",numericError:"O valor deve ser numérico.",textMinLength:"Por favor, insira pelo menos {0} caracteres.",textMaxLength:"Por favor, insira menos de {0} caracteres.",textMinMaxLength:"Por favor, insira mais de {0} e menos de {1} caracteres.",minRowCountError:"Preencha pelo menos {0} linhas.",minSelectError:"Selecione pelo menos {0} opções.",maxSelectError:"Por favor, selecione não mais do que {0} opções.",numericMinMax:"O '{0}' deve ser igual ou superior a {1} e igual ou menor que {2}",numericMin:"O '{0}' deve ser igual ou superior a {1}",numericMax:"O '{0}' deve ser igual ou inferior a {1}",invalidEmail:"Por favor, informe um e-mail válido.",invalidExpression:"A expressão: {0} deve retornar 'verdadeiro'.",urlRequestError:"A requisição retornou o erro '{0}'. {1}",urlGetChoicesError:"A requisição não retornou dados ou o 'caminho' da requisição não está correto",exceedMaxSize:"O tamanho do arquivo não deve exceder {0}.",otherRequiredError:"Por favor, informe o outro valor.",uploadingFile:"Seu arquivo está sendo carregado. Por favor, aguarde alguns segundos e tente novamente.",loadingFile:"Carregando...",chooseFile:"Selecione o(s) arquivo(s)...",confirmDelete:"Tem certeza que deseja deletar?",keyDuplicationError:"Esse valor deve ser único.",addColumn:"Adicionar coluna",addRow:"Adicionar linha",removeRow:"Remover linha",addPanel:"Adicionar novo",removePanel:"Remover",choices_Item:"item",matrix_column:"Coluna",matrix_row:"Linha",savingData:"Os resultados esto sendo salvos no servidor...",savingDataError:"Ocorreu um erro e não foi possível salvar os resultados.",savingDataSuccess:"Os resultados foram salvos com sucesso!",saveAgainButton:"Tente novamente",timerMin:"min",timerSec:"seg",timerSpentAll:"Você gastou {0} nesta página e {1} no total.",timerSpentPage:"Você gastou {0} nesta página.",timerSpentSurvey:"Você gastou {0} no total.",timerLimitAll:"Você gastou {0} de {1} nesta página e {2} de {3} no total.",timerLimitPage:"Você gastou {0} de {1} nesta página.",timerLimitSurvey:"Você gastou {0} de {1} no total.",cleanCaption:"Limpar",clearCaption:"Limpar",removeFileCaption:"Remover este arquivo"};r.a.locales.pt=o,r.a.localeNames.pt="português"},function(e,t,n){"use strict";var r=n(2),o={pagePrevText:"Precedent",pageNextText:"Următor",completeText:"Finalizare",otherItemText:"Altul(precizaţi)",progressText:"Pagina {0} din {1}",emptySurvey:"Nu sunt întrebări pentru acest chestionar",completingSurvey:"Vă mulţumim pentru timpul acordat!",loadingSurvey:"Chestionarul se încarcă...",optionsCaption:"Alegeţi...",requiredError:"Răspunsul la această întrebare este obligatoriu.",requiredInAllRowsError:"Toate răspunsurile sunt obligatorii",numericError:"Răspunsul trebuie să fie numeric.",textMinLength:"Trebuie să introduceți minim {0} caractere.",minSelectError:"Trebuie să selectați minim {0} opţiuni.",maxSelectError:"Trebuie să selectați maxim {0} opţiuni.",numericMinMax:"Răspunsul '{0}' trebuie să fie mai mare sau egal ca {1} şî mai mic sau egal cu {2}",numericMin:"Răspunsul '{0}' trebuie să fie mai mare sau egal ca {1}",numericMax:"Răspunsul '{0}' trebuie să fie mai mic sau egal ca {1}",invalidEmail:"Trebuie să introduceţi o adresa de email validă.",exceedMaxSize:"Dimensiunea fişierului nu trebuie să depăşească {0}.",otherRequiredError:"Trebuie să completați câmpul 'Altul'.",completingSurveyBefore:"Din înregistrările noastre reiese că ați completat deja acest chestionar.",value:"valoare",requiredErrorInPanel:"Vă rugăm să răspundeți la cel puțin o întrebare.",textMaxLength:"Trebuie să introduceți maxim {0} caractere.",textMinMaxLength:"Trebuie să introduceți mai mult de {0} și mai puțin de {1} caractere.",minRowCountError:"Trebuie să completați minim {0} rânduri.",urlRequestError:"Request-ul a returnat eroarea '{0}'. {1}",urlGetChoicesError:"Request-ul nu a returnat date sau proprietatea 'path' este incorectă",uploadingFile:"Fișierul dumneavoastră este în curs de încărcare. Vă rugăm așteptați câteva secunde și reveniți apoi.",confirmDelete:"Sunteți sigur că doriți să ștergeți înregistrarea?",keyDuplicationError:"Valoarea trebuie să fie unică.",addRow:"Adăugare rând",removeRow:"Ștergere",addPanel:"Adăugare",removePanel:"Ștergere",choices_Item:"opțiune",matrix_column:"Coloană",matrix_row:"Rând",savingData:"Rezultatele sunt în curs de salvare...",savingDataError:"A intervenit o eroare, rezultatele nu au putut fi salvate.",savingDataSuccess:"Rezultatele au fost salvate cu succes!",saveAgainButton:"Încercați din nou",timerMin:"min",timerSec:"sec",timerSpentAll:"Ați petrecut {0} pe această pagină și {1} în total.",timerSpentPage:"Ați petrecut {0} pe această pagină.",timerSpentSurvey:"Ați petrecut {0} în total.",timerLimitAll:"Ați petrecut {0} din {1} pe această pagină și {2} din {3} în total.",timerLimitPage:"Ați petrecut {0} din {1} pe această pagină.",timerLimitSurvey:"Ați petrecut {0} din {1} în total."};r.a.locales.ro=o,r.a.localeNames.ro="română"},function(e,t,n){"use strict";var r=n(2),o={pagePrevText:"Назад",pageNextText:"Далее",completeText:"Готово",startSurveyText:"Начать",otherItemText:"Другое (пожалуйста, опишите)",noneItemText:"Нет",selectAllItemText:"Выбрать всё",progressText:"Страница {0} из {1}",emptySurvey:"Нет ни одного вопроса.",completingSurvey:"Благодарим Вас за заполнение анкеты!",completingSurveyBefore:"Вы уже проходили этот опрос.",loadingSurvey:"Загрузка с сервера...",optionsCaption:"Выбрать...",value:"значение",requiredError:"Пожалуйста, ответьте на вопрос.",requiredErrorInPanel:"Пожалуйста, ответьте по крайней мере на один вопрос.",requiredInAllRowsError:"Пожалуйста, ответьте на вопросы в каждой строке.",numericError:"Ответ должен быть числом.",textMinLength:"Пожалуйста введите больше {0} символов.",textMaxLength:"Пожалуйста введите меньше {0} символов.",textMinMaxLength:"Пожалуйста введите больше {0} и меньше {1} символов.",minRowCountError:"Пожалуйста, заполните не меньше {0} строк.",minSelectError:"Пожалуйста, выберите хотя бы {0} вариантов.",maxSelectError:"Пожалуйста, выберите не более {0} вариантов.",numericMinMax:"'{0}' должно быть не меньше чем {1}, и не больше чем {2}",numericMin:"'{0}' должно быть не меньше чем {1}",numericMax:"'{0}' должно быть не больше чем {1}",invalidEmail:"Пожалуйста, введите действительный адрес электронной почты.",invalidExpression:"Выражение {0} должно возвращать 'true'.",urlRequestError:"Запрос вернул ошибку '{0}'. {1}",urlGetChoicesError:"Ответ на запрос пришел пустой или свойство 'path' указано неверно",exceedMaxSize:"Размер файла не должен превышать {0}.",otherRequiredError:"Пожалуйста, введите данные в поле 'Другое'",uploadingFile:"Ваш файл загружается. Подождите несколько секунд и попробуйте снова.",loadingFile:"Загрузка...",chooseFile:"Выберите файл(ы)...",confirmDelete:"Вы точно хотите удалить запись?",keyDuplicationError:"Это значение должно быть уникальным.",addColumn:"Добавить колонку",addRow:"Добавить строку",removeRow:"Удалить",addPanel:"Добавить новую",removePanel:"Удалить",choices_Item:"Вариант",matrix_column:"Колонка",matrix_row:"Строка",savingData:"Результаты сохраняются на сервер...",savingDataError:"Произошла ошибка, результат не был сохранён.",savingDataSuccess:"Результат успешно сохранён!",saveAgainButton:"Попробовать снова",timerMin:"мин",timerSec:"сек",timerSpentAll:"Вы потратили {0} на этой странице и {1} всего.",timerSpentPage:"Вы потратили {0} на этой странице.",timerSpentSurvey:"Вы потратили {0} в течение теста.",timerLimitAll:"Вы потратили {0} из {1} на этой странице и {2} из {3} для всего теста.",timerLimitPage:"Вы потратили {0} из {1} на этой странице.",timerLimitSurvey:"Вы потратили {0} из {1} для всего теста.",cleanCaption:"Очистить",clearCaption:"Очистить",removeFileCaption:"Удалить файл"};r.a.locales.ru=o,r.a.localeNames.ru="русский"},function(e,t,n){"use strict";var r=n(2),o={pagePrevText:"上一页",pageNextText:"下一页",completeText:"提交问卷",startSurveyText:"开始问卷",otherItemText:"填写其他答案",noneItemText:"无",selectAllItemText:"选择全部",progressText:"第 {0} 页, 共 {1} 页",questionsProgressText:"第 {0}/{1} 题",emptySurvey:"问卷中没有问题或页面",completingSurveyBefore:"你已完成问卷.",completingSurvey:"感谢您的参与!",loadingSurvey:"问卷正在加载中...",optionsCaption:"请选择...",value:"值",requiredError:"请填写此问题",requiredErrorInPanel:"至少回答一题.",requiredInAllRowsError:"请填写所有行中问题",numericError:"答案必须是个数字",textMinLength:"答案长度至少 {0} 个字符",textMaxLength:"答案长度不能超过 {0} 个字符",textMinMaxLength:"答案长度必须在 {0} - {1} 个字符之间",minRowCountError:"最少需要填写 {0} 行答案",minSelectError:"最少需要选择 {0} 项答案",maxSelectError:"最多只能选择 {0} 项答案",numericMinMax:"答案 '{0}' 必须大于等于 {1} 且小于等于 {2}",numericMin:"答案 '{0}' 必须大于等于 {1}",numericMax:"答案 '{0}' 必须小于等于 {1}",invalidEmail:"请输入有效的 Email 地址",invalidExpression:"公式: {0} 无效.",urlRequestError:"载入选项时发生错误 '{0}': {1}",urlGetChoicesError:"未能载入有效的选项或请求参数路径有误",exceedMaxSize:"文件大小不能超过 {0}",otherRequiredError:"请完成其他问题",uploadingFile:"文件上传中... 请耐心等待几秒后重试",loadingFile:"加载...",chooseFile:"选择文件...",noFileChosen:"未选择文件",confirmDelete:"删除记录?",keyDuplicationError:"主键不能重复",addColumn:"添加列",addRow:"添加行",removeRow:"删除答案",addPanel:"新添",removePanel:"删除",choices_Item:"选项",matrix_column:"列",matrix_row:"行",savingData:"正在将结果保存到服务器...",savingDataError:"在保存结果过程中发生了错误,结果未能保存",savingDataSuccess:"结果保存成功!",saveAgainButton:"请重试",timerMin:"分",timerSec:"秒",timerSpentAll:"本页用时 {0} 总计用时{1} .",timerSpentPage:"本页用时{0} .",timerSpentSurvey:"总计用时 {0} .",timerLimitAll:"本页用时 {0} 共 {1}, 总计用时 {2} 共 {3} .",timerLimitPage:"本页用时 {0} 共 {1} .",timerLimitSurvey:"总计用时 {0} 共 {1}.",cleanCaption:"清理",clearCaption:"清除",removeFileCaption:"移除文件"};r.a.locales["zh-cn"]=o,r.a.localeNames["zh-cn"]="简体中文"},function(e,t,n){"use strict";var r=n(2),o={pagePrevText:"Anterior",pageNextText:"Siguiente",completeText:"Completo",otherItemText:"Otro (describa)",progressText:"Página {0} de {1}",emptySurvey:"No hay página visible o pregunta en la encuesta.",completingSurvey:"Gracias por completar la encuesta!",loadingSurvey:"La encuesta está cargando...",optionsCaption:"Seleccione...",requiredError:"Por favor conteste la pregunta.",requiredInAllRowsError:"Por favor conteste las preguntas en cada hilera.",numericError:"La estimación debe ser numérica.",textMinLength:"Por favor entre por lo menos {0} símbolos.",textMaxLength:"Por favor entre menos de {0} símbolos.",textMinMaxLength:"Por favor entre más de {0} y menos de {1} símbolos.",minRowCountError:"Por favor llene por lo menos {0} hileras.",minSelectError:"Por favor seleccione por lo menos {0} variantes.",maxSelectError:"Por favor seleccione no más de {0} variantes.",numericMinMax:"El '{0}' debe de ser igual o más de {1} y igual o menos de {2}",numericMin:"El '{0}' debe ser igual o más de {1}",numericMax:"El '{0}' debe ser igual o menos de {1}",invalidEmail:"Por favor agregue un correo electrónico válido.",urlRequestError:"La solicitud regresó error '{0}'. {1}",urlGetChoicesError:"La solicitud regresó vacío de data o la propiedad 'trayectoria' no es correcta",exceedMaxSize:"El tamaño del archivo no debe de exceder {0}.",otherRequiredError:"Por favor agregue la otra estimación.",uploadingFile:"Su archivo se está subiendo. Por favor espere unos segundos e intente de nuevo.",addRow:"Agregue una hilera",removeRow:"Eliminar una hilera",choices_firstItem:"primer artículo",choices_secondItem:"segundo artículo",choices_thirdItem:"tercera artículo",matrix_column:"Columna",matrix_row:"Hilera"};r.a.locales.es=o,r.a.localeNames.es="español"},function(e,t,n){"use strict";var r=n(2),o={pagePrevText:"Föregående",pageNextText:"Nästa",completeText:"Färdig",otherItemText:"Annat (beskriv)",progressText:"Sida {0} av {1}",emptySurvey:"Det finns ingen synlig sida eller fråga i enkäten.",completingSurvey:"Tack för att du genomfört enkäten!!",loadingSurvey:"Enkäten laddas...",optionsCaption:"Välj...",requiredError:"Var vänlig besvara frågan.",requiredInAllRowsError:"Var vänlig besvara frågorna på alla rader.",numericError:"Värdet ska vara numeriskt.",textMinLength:"Var vänlig ange minst {0} tecken.",minRowCountError:"Var vänlig fyll i minst {0} rader.",minSelectError:"Var vänlig välj åtminstone {0} varianter.",maxSelectError:"Var vänlig välj inte fler än {0} varianter.",numericMinMax:"'{0}' ska vara lika med eller mer än {1} samt lika med eller mindre än {2}",numericMin:"'{0}' ska vara lika med eller mer än {1}",numericMax:"'{0}' ska vara lika med eller mindre än {1}",invalidEmail:"Var vänlig ange en korrekt e-postadress.",urlRequestError:"Förfrågan returnerade felet '{0}'. {1}",urlGetChoicesError:"Antingen returnerade förfrågan ingen data eller så är egenskapen 'path' inte korrekt",exceedMaxSize:"Filstorleken får ej överstiga {0}.",otherRequiredError:"Var vänlig ange det andra värdet.",uploadingFile:"Din fil laddas upp. Var vänlig vänta några sekunder och försök sedan igen.",addRow:"Lägg till rad",removeRow:"Ta bort"};r.a.locales.sv=o,r.a.localeNames.sv="svenska"},function(e,t,n){"use strict";var r=n(2),o={pagePrevText:"上一頁",pageNextText:"下一頁",completeText:"提交問卷",otherItemText:"填寫其他答案",progressText:"第 {0} 頁, 共 {1} 頁",emptySurvey:"問卷中沒有問題或頁面",completingSurvey:"感謝您的參與!",loadingSurvey:"問卷載入中...",optionsCaption:"請選擇...",requiredError:"請填寫此問題",requiredInAllRowsError:"請填寫所有行中問題",numericError:"答案必須是個數字",textMinLength:"答案長度至少 {0} 個字元",textMaxLength:"答案長度不能超過 {0} 個字元",textMinMaxLength:"答案長度必須在 {0} - {1} 個字元之間",minRowCountError:"最少需要填寫 {0} 行答案",minSelectError:"最少需要選擇 {0} 項答案",maxSelectError:"最多只能選擇 {0} 項答案",numericMinMax:"答案 '{0}' 必須大於等於 {1} 且小於等於 {2}",numericMin:"答案 '{0}' 必須大於等於 {1}",numericMax:"答案 '{0}' 必須小於等於 {1}",invalidEmail:"請輸入有效的 Email 地址",urlRequestError:"載入選項時發生錯誤 '{0}': {1}",urlGetChoicesError:"未能載入有效的選項或請求參數路徑有誤",exceedMaxSize:"文件大小不能超過 {0}",otherRequiredError:"請完成其他問題",uploadingFile:"文件上傳中... 請耐心等待幾秒後重試",addRow:"添加答案",removeRow:"刪除答案",choices_Item:"選項",matrix_column:"列",matrix_row:"行",savingData:"正在將結果保存到服務器...",savingDataError:"在保存結果過程中發生了錯誤,結果未能保存",savingDataSuccess:"結果保存成功!",saveAgainButton:"請重試"};r.a.locales["zh-tw"]=o,r.a.localeNames["zh-tw"]="繁體中文"},function(e,t,n){"use strict";var r=n(2),o={pagePrevText:"Geri",pageNextText:"İleri",completeText:"Anketi Tamamla",otherItemText:"Diğer (açıklayınız)",progressText:"Sayfa {0} / {1}",emptySurvey:"Ankette görüntülenecek sayfa ya da soru mevcut değil.",completingSurvey:"Anketimizi tamamladığınız için teşekkür ederiz.",loadingSurvey:"Anket sunucudan yükleniyor ...",optionsCaption:"Seçiniz ...",requiredError:"Lütfen soruya cevap veriniz",numericError:"Girilen değer numerik olmalıdır",textMinLength:"En az {0} sembol giriniz.",minRowCountError:"Lütfen en az {0} satırı doldurun.",minSelectError:"Lütfen en az {0} seçeneği seçiniz.",maxSelectError:"Lütfen {0} adetten fazla seçmeyiniz.",numericMinMax:"The '{0}' should be equal or more than {1} and equal or less than {2}",numericMin:"'{0}' değeri {1} değerine eşit veya büyük olmalıdır",numericMax:"'{0}' değeri {1} değerine eşit ya da küçük olmalıdır.",invalidEmail:"Lütfen geçerli bir eposta adresi giriniz.",urlRequestError:"Talebi şu hatayı döndü '{0}'. {1}",urlGetChoicesError:"Talep herhangi bir veri dönmedi ya da 'path' özelliği hatalı.",exceedMaxSize:"Dosya boyutu {0} değerini geçemez.",otherRequiredError:"Lütfen diğer değerleri giriniz.",uploadingFile:"Dosyanız yükleniyor. LÜtfen birkaç saniye bekleyin ve tekrar deneyin.",addRow:"Satır Ekle",removeRow:"Kaldır"};r.a.locales.tr=o,r.a.localeNames.tr="türkçe"},function(e,t,n){"use strict";var r=n(2),o={pagePrevText:"Назад",pageNextText:"Далі",completeText:"Завершити",startSurveyText:"Почати",otherItemText:"Інше (будь ласка, опишіть)",noneItemText:"Жоден",selectAllItemText:"Вибрати все",progressText:"Сторінка {0} з {1}",questionsProgressText:"Відповіли на {0}/{1} питань",emptySurvey:"Немає жодного питання.",completingSurvey:"Дякуємо Вам за заповнення анкети!",completingSurveyBefore:"Ви вже проходили це опитування.",loadingSurvey:"Завантаження опитування...",optionsCaption:"Вибрати...",value:"значення",requiredError:"Будь ласка, дайте відповідь.",requiredErrorInPanel:"Будь ласка, дайте відповідь хоча б на одне питання.",requiredInAllRowsError:"Будь ласка, дайте відповідь на питання в кожному рядку.",numericError:"Відповідь повинна бути числом.",textMinLength:"Будь ласка введіть більше {0} символів.",textMaxLength:"Будь ласка введіть менше {0} символів.",textMinMaxLength:"Будь ласка введіть більше {0} и менше {1} символів.",minRowCountError:"Будь ласка, заповніть не менше {0} рядків.",minSelectError:"Будь ласка, виберіть хоча б {0} варіантів.",maxSelectError:"Будь ласка, виберіть не більше {0} варіантів.",numericMinMax:"'{0}' повинно бути не менше ніж {1}, і не більше ніж {2}",numericMin:"'{0}' повинно бути не менше ніж {1}",numericMax:"'{0}' повинно бути не більше ніж {1}",invalidEmail:"Будь ласка, введіть дійсну адресу електронної пошти.",invalidExpression:"Вираз {0} повинен повертати 'true'.",urlRequestError:"Запит повернув помилку '{0}'. {1}",urlGetChoicesError:"Відповідь на запит повернулась порожньою або властивіть 'path' вказано невірно",exceedMaxSize:"Розмір файлу не повинен перевищувати {0}.",otherRequiredError:"Будь ласка, введіть дані в поле 'Інше'",uploadingFile:"Ваш файл завантажується. Зачекайте декілька секунд і спробуйте знову.",loadingFile:"Завантаження...",chooseFile:"Виберіть файл(и)...",noFileChosen:"Файл не вибрано",confirmDelete:"Ви хочете видалити запис?",keyDuplicationError:"Це значення повинно бути унікальним.",addColumn:"Додати колонку",addRow:"Додати рядок",removeRow:"Видалити",addPanel:"Додати нову",removePanel:"Видалити",choices_Item:"Варіант",matrix_column:"Колонка",matrix_row:"Рядок",savingData:"Результати зберігаються на сервер...",savingDataError:"Відбулася помилка, результат не був збережений.",savingDataSuccess:"Резвультат успішно збережений!",saveAgainButton:"Спробувати знову",timerMin:"хв",timerSec:"сек",timerSpentAll:"Ви витратили {0} на цій сторінці і {1} загалом.",timerSpentPage:"Ви витратили {0} на цій сторінці.",timerSpentSurvey:"Ви витратили {0} протягом тесту.",timerLimitAll:"Ви витратили {0} з {1} на цій сторінці і {2} з {3} для всього тесту.",timerLimitPage:"Ви витратили {0} з {1} на цій сторінці.",timerLimitSurvey:"Ви витратили {0} з {1} для всього тесту.",cleanCaption:"Очистити",clearCaption:"Очистити",removeFileCaption:"Видалити файл"};r.a.locales.ua=o,r.a.localeNames.ua="українська"},function(e,t,n){"use strict";var r=n(0),o=n(4),i=n(5),a=n(1),s=n(10),l=n(24),u=n(15);n.d(t,"g",function(){return c}),n.d(t,"a",function(){return p}),n.d(t,"d",function(){return d}),n.d(t,"b",function(){return h}),n.d(t,"c",function(){return f}),n.d(t,"f",function(){return g}),n.d(t,"e",function(){return y});var c=function(e){function t(){var t=e.call(this)||this;t.usedNames=[];var n=t;return t.registerFunctionOnPropertiesValueChanged(["operator","value","name"],function(){n.oldPropertiesChanged()}),t.registerFunctionOnPropertyValueChanged("expression",function(){n.onExpressionChanged()}),t}return n.i(r.b)(t,e),Object.defineProperty(t,"operators",{get:function(){return null!=t.operatorsValue?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:!0,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:!0,configurable:!0}),Object.defineProperty(t.prototype,"value",{get:function(){return this.getPropertyValue("value",null)},set:function(e){this.setPropertyValue("value",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"name",{get:function(){return this.getPropertyValue("name","")},set:function(e){this.setPropertyValue("name",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"expression",{get:function(){return this.getPropertyValue("expression","")},set:function(e){this.setPropertyValue("expression",e)},enumerable:!0,configurable:!0}),t.prototype.checkExpression=function(e,t,n){void 0===n&&(n=null),this.isCheckRequired(e)&&this.conditionRunner&&this.perform(t,n)},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.onFailure()},t.prototype.onSuccess=function(e,t){},t.prototype.onFailure=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?o.a.isValueEmpty(this.value)&&this.isRequireValue?"":"{"+this.name+"} "+this.operator+" "+l.h.toOperandString(this.value):""},t.prototype.isCheckRequired=function(e){if(!e)return!1;if(this.buildUsedNames(),!0===this.hasFunction)return!0;for(var t=0;t<this.usedNames.length;t++)if(e.hasOwnProperty(this.usedNames[t]))return!0;return!1},t.prototype.buildUsedNames=function(){if(!this.conditionRunner){var e=this.expression;if(e||(e=this.buildExpression()),e){this.conditionRunner=new s.a(e),this.hasFunction=this.conditionRunner.hasFunction(),this.usedNames=this.conditionRunner.getVariables();for(var t=new u.a,n=0;n<this.usedNames.length;n++)this.usedNames[n]=t.getFirstName(this.usedNames[n])}}},Object.defineProperty(t.prototype,"isRequireValue",{get:function(){return"empty"!==this.operator&&"notempty"!=this.operator},enumerable:!0,configurable:!0}),t.operatorsValue=null,t}(i.c),p=function(e){function t(){var t=e.call(this)||this;return t.owner=null,t}return n.i(r.b)(t,e),t.prototype.setOwner=function(e){this.owner=e},Object.defineProperty(t.prototype,"isOnNextPage",{get:function(){return!1},enumerable:!0,configurable:!0}),t}(c),d=function(e){function t(){var t=e.call(this)||this;return t.pages=[],t.questions=[],t}return n.i(r.b)(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}(p),h=function(e){function t(){return e.call(this)||this}return n.i(r.b)(t,e),t.prototype.getType=function(){return"completetrigger"},Object.defineProperty(t.prototype,"isOnNextPage",{get:function(){return!0},enumerable:!0,configurable:!0}),t.prototype.onSuccess=function(e,t){this.owner&&this.owner.setCompleted()},t}(p),f=function(e){function t(){return e.call(this)||this}return n.i(r.b)(t,e),t.prototype.getType=function(){return"setvaluetrigger"},t.prototype.onSuccess=function(e,t){this.setToName&&this.owner&&this.owner.setTriggerValue(this.setToName,this.setValue,this.isVariable)},t}(p),m=function(e){function t(){return e.call(this)||this}return n.i(r.b)(t,e),t.prototype.getType=function(){return"skiptrigger"},t.prototype.onSuccess=function(e,t){this.gotoName&&this.owner&&this.owner.focusQuestion(this.gotoName)},t}(p),g=function(e){function t(){return e.call(this)||this}return n.i(r.b)(t,e),t.prototype.getType=function(){return"runexpressiontrigger"},t.prototype.onSuccess=function(e,t){var n=this;if(this.owner&&this.runExpression){var r=new s.b(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,e,!1)},t}(p),y=function(e){function t(){return e.call(this)||this}return n.i(r.b)(t,e),t.prototype.getType=function(){return"copyvaluetrigger"},t.prototype.onSuccess=function(e,t){this.setToName&&this.owner&&this.owner.copyTriggerValue(this.setToName,this.fromName)},t}(p);a.a.addClass("trigger",[{name:"operator",default:"equal"},"value","expression:condition"]),a.a.addClass("surveytrigger",["name"],null,"trigger"),a.a.addClass("visibletrigger",["pages","questions"],function(){return new d},"surveytrigger"),a.a.addClass("completetrigger",[],function(){return new h},"surveytrigger"),a.a.addClass("setvaluetrigger",["!setToName","setValue","isVariable:boolean"],function(){return new f},"surveytrigger"),a.a.addClass("copyvaluetrigger",["!setToName","!fromName"],function(){return new y},"surveytrigger"),a.a.addClass("skiptrigger",["!gotoName"],function(){return new m},"surveytrigger"),a.a.addClass("runexpressiontrigger",["setToName","runExpression:expression"],function(){return new g},"surveytrigger")},function(e,t,n){"use strict";function r(e){return confirm(e)}n.d(t,"a",function(){return r})},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(6),o=(n.n(r),n(67)),i=n.n(o),a=n(38);n.d(t,"Version",function(){return a.a}),n.d(t,"settings",function(){return a.b}),n.d(t,"Helpers",function(){return a.c}),n.d(t,"AnswerCountValidator",function(){return a.d}),n.d(t,"EmailValidator",function(){return a.e}),n.d(t,"NumericValidator",function(){return a.f}),n.d(t,"RegexValidator",function(){return a.g}),n.d(t,"SurveyValidator",function(){return a.h}),n.d(t,"TextValidator",function(){return a.i}),n.d(t,"ValidatorResult",function(){return a.j}),n.d(t,"ExpressionValidator",function(){return a.k}),n.d(t,"ValidatorRunner",function(){return a.l}),n.d(t,"ItemValue",function(){return a.m}),n.d(t,"Base",function(){return a.n}),n.d(t,"Event",function(){return a.o}),n.d(t,"SurveyError",function(){return a.p}),n.d(t,"SurveyElement",function(){return a.q}),n.d(t,"CalculatedValue",function(){return a.r}),n.d(t,"CustomError",function(){return a.s}),n.d(t,"AnswerRequiredError",function(){return a.t}),n.d(t,"OneAnswerRequiredError",function(){return a.u}),n.d(t,"RequreNumericError",function(){return a.v}),n.d(t,"ExceedSizeError",function(){return a.w}),n.d(t,"LocalizableString",function(){return a.x}),n.d(t,"HtmlConditionItem",function(){return a.y}),n.d(t,"ChoicesRestfull",function(){return a.z}),n.d(t,"FunctionFactory",function(){return a.A}),n.d(t,"ConditionRunner",function(){return a.B}),n.d(t,"ExpressionRunner",function(){return a.C}),n.d(t,"Operand",function(){return a.D}),n.d(t,"Const",function(){return a.E}),n.d(t,"BinaryOperand",function(){return a.F}),n.d(t,"Variable",function(){return a.G}),n.d(t,"FunctionOperand",function(){return a.H}),n.d(t,"ArrayOperand",function(){return a.I}),n.d(t,"ConditionsParser",function(){return a.J}),n.d(t,"ProcessValue",function(){return a.K}),n.d(t,"JsonError",function(){return a.L}),n.d(t,"JsonIncorrectTypeError",function(){return a.M}),n.d(t,"JsonMetadata",function(){return a.N}),n.d(t,"JsonMetadataClass",function(){return a.O}),n.d(t,"JsonMissingTypeError",function(){return a.P}),n.d(t,"JsonMissingTypeErrorBase",function(){return a.Q}),n.d(t,"JsonObject",function(){return a.R}),n.d(t,"JsonObjectProperty",function(){return a.S}),n.d(t,"JsonRequiredPropertyError",function(){return a.T}),n.d(t,"JsonUnknownPropertyError",function(){return a.U}),n.d(t,"Serializer",function(){return a.V}),n.d(t,"MatrixDropdownCell",function(){return a.W}),n.d(t,"MatrixDropdownColumn",function(){return a.X}),n.d(t,"matrixDropdownColumnTypes",function(){return a.Y}),n.d(t,"MatrixDropdownRowModelBase",function(){return a.Z}),n.d(t,"QuestionMatrixDropdownModelBase",function(){return a._0}),n.d(t,"MatrixDropdownRowModel",function(){return a._1}),n.d(t,"QuestionMatrixDropdownModel",function(){return a._2}),n.d(t,"MatrixDynamicRowModel",function(){return a._3}),n.d(t,"QuestionMatrixDynamicModel",function(){return a._4}),n.d(t,"MatrixRowModel",function(){return a._5}),n.d(t,"MartrixCells",function(){return a._6}),n.d(t,"QuestionMatrixModel",function(){return a._7}),n.d(t,"MultipleTextItemModel",function(){return a._8}),n.d(t,"QuestionMultipleTextModel",function(){return a._9}),n.d(t,"PanelModel",function(){return a._10}),n.d(t,"PanelModelBase",function(){return a._11}),n.d(t,"QuestionRowModel",function(){return a._12}),n.d(t,"FlowPanelModel",function(){return a._13}),n.d(t,"PageModel",function(){return a._14}),n.d(t,"Question",function(){return a._15}),n.d(t,"QuestionNonValue",function(){return a._16}),n.d(t,"QuestionEmptyModel",function(){return a._17}),n.d(t,"QuestionCheckboxBase",function(){return a._18}),n.d(t,"QuestionSelectBase",function(){return a._19}),n.d(t,"QuestionCheckboxModel",function(){return a._20}),n.d(t,"QuestionCommentModel",function(){return a._21}),n.d(t,"QuestionDropdownModel",function(){return a._22}),n.d(t,"QuestionFactory",function(){return a._23}),n.d(t,"ElementFactory",function(){return a._24}),n.d(t,"QuestionFileModel",function(){return a._25}),n.d(t,"QuestionHtmlModel",function(){return a._26}),n.d(t,"QuestionRadiogroupModel",function(){return a._27}),n.d(t,"QuestionRatingModel",function(){return a._28}),n.d(t,"QuestionExpressionModel",function(){return a._29}),n.d(t,"QuestionTextModel",function(){return a._30}),n.d(t,"QuestionBooleanModel",function(){return a._31}),n.d(t,"QuestionImagePickerModel",function(){return a._32}),n.d(t,"QuestionPanelDynamicModel",function(){return a._33}),n.d(t,"QuestionPanelDynamicItem",function(){return a._34}),n.d(t,"SurveyTimer",function(){return a._35}),n.d(t,"SurveyModel",function(){return a._36}),n.d(t,"SurveyTrigger",function(){return a._37}),n.d(t,"SurveyTriggerComplete",function(){return a._38}),n.d(t,"SurveyTriggerSetValue",function(){return a._39}),n.d(t,"SurveyTriggerVisible",function(){return a._40}),n.d(t,"SurveyTriggerCopyValue",function(){return a._41}),n.d(t,"SurveyTriggerRunExpression",function(){return a._42}),n.d(t,"Trigger",function(){return a._43}),n.d(t,"SurveyWindowModel",function(){return a._44}),n.d(t,"TextPreProcessor",function(){return a._45}),n.d(t,"dxSurveyService",function(){return a._46}),n.d(t,"englishStrings",function(){return a._47}),n.d(t,"surveyLocalization",function(){return a._48}),n.d(t,"surveyStrings",function(){return a._49}),n.d(t,"cultureInfo",function(){return a._50}),n.d(t,"QuestionCustomWidget",function(){return a._51}),n.d(t,"CustomWidgetCollection",function(){return a._52}),n.d(t,"StylesManager",function(){return a._53});var s=(n(37),n(0));n.d(t,"__assign",function(){return s.a}),n.d(t,"__extends",function(){return s.b}),n.d(t,"__decorate",function(){return s.c}),n.d(t,"__spreadArrays",function(){return s.d});var l=n(13);n.d(t,"defaultStandardCss",function(){return l.a});var u=n(34);n.d(t,"defaultBootstrapCss",function(){return u.a});var c=n(35);n.d(t,"defaultBootstrapMaterialCss",function(){return c.a});var p=n(36);n.d(t,"modernCss",function(){return p.a});var d=n(65);n.d(t,"Model",function(){return d.a});var h=n(19),f=n(18),m=n(66);i.a.fn.extend({Survey:function(e){return this.each(function(){var t=e.model;n.i(m.a)(t,e),t.render(this)})},SurveyWindow:function(e){return this.each(function(){var t=e.model;n.i(m.a)(t,e);var r=new d.b(null,t);void 0!==e.expanded&&(r.isExpanded=e.expanded),void 0!==e.isExpanded&&(r.isExpanded=e.isExpanded),void 0!==e.closeOnCompleteTimeout&&(r.closeOnCompleteTimeout=e.closeOnCompleteTimeout),r.show()})}}),h.a.platform="jquery",n.i(f.a)(r,h.a.platform)}])});
| ver. 1.4 |
Github
|
.
| PHP 7.2.34 | Generation time: 0.66 |
proxy
|
phpinfo
|
Settings