text: (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-5e284c5e"],{"68fb":function(e,t,n){var r,i,o;
  /*!
   * Knockout JavaScript library v3.5.0
   * (c) The Knockout.js team - http://knockoutjs.com/
   * License: MIT (http://www.opensource.org/licenses/mit-license.php)
   */
  /*!
   * 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"),u=s.document,l=s.navigator,c=s.jQuery,p=s.JSON;c||"undefined"===typeof jQuery||(c=jQuery),function(a){i=[t,n],r=a,o="function"===typeof r?r.apply(t,i):r,void 0===o||(e.exports=o)}(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 i(e,t){var n;return function(){clearTimeout(n),n=f.a.setTimeout(e,t)}}function o(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="undefined"!==typeof e?e:{};f.b=function(e,t){for(var n=e.split("."),r=f,i=0;i<n.length-1;i++)r=r[n[i]];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)i.call(e,n)&&t(n,e[n])}function t(e,t){if(t)for(var n in t)i.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 i=e[t].match(b)||[];f.a.C(n.match(b),function(e){f.a.Oa(i,e,r)}),e[t]=i.join(" ")}var i=Object.prototype.hasOwnProperty,o={__proto__:[]}instanceof Array,d="function"===typeof Symbol,h={},m={};h[l&&/Firefox\/2/i.test(l.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=u&&function(){for(var e=3,t=u.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,i=e.length;r<i;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,i=e.length;r<i;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 i=0,o=e.length;i<o;i++)r.push(t.call(n,e[i],i));return r},fb:function(e,t,n){var r=[];if(e)for(var i=0,o=e.length;i<o;i++)t.call(n,e[i],i)&&r.push(e[i]);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:o,extend:t,setPrototypeOf:n,zb:o?n:t,O:e,Ha:function(e,t,n){if(!e)return e;var r,o={};for(r in e)i.call(e,r)&&(o[r]=t.call(n,e[r],r,e));return o},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||u).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,i=[];n<r;n++){var o=e[n].cloneNode(!0);i.push(t?f.na(o):o)}return i},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],i=r.parentNode,o=0,a=t.length;o<a;o++)i.insertBefore(t[o],r);for(o=0,a=n.length;o<a;o++)f.removeNode(n[o])}},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(t){throw f.onError&&f.onError(t),t}}: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("undefined"==typeof e.attachEvent)throw Error("Browser doesn't support addEventListener or attachEvent");var i=function(t){r.call(e,t)},o="on"+t;e.attachEvent(o,i),f.a.I.za(e,function(){e.detachEvent(o,i)})}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 u.createEvent){if("function"!=typeof e.dispatchEvent)throw Error("The supplied element doesn't support dispatchEvent");n=u.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("undefined"==typeof 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 i;t&&("object"===typeof e.classList?(i=e.classList[n?"add":"remove"],f.a.C(t.match(b),function(t){i.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 r=e.name.replace(/[&<>'"]/g,function(e){return"&#"+e.charCodeAt(0)+";"});e.mergeAttributes(u.createElement("<input name='"+r+"'/>"),!1)}catch(n){}},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)},i=[],o=n.length-1;0<=o;o--)r(n[o])&&i.push(n[o]);return i},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 i=r.params||{},o=r.includeFields||this.Ic,a=t;if("object"==typeof t&&"form"===f.a.P(t)){a=t.action;for(var s=o.length-1;0<=s;s--)for(var l=f.a.Kc(t,o[s]),c=l.length-1;0<=c;c--)i[l[c].name]=l[c].value}n=f.a.c(n);var p=u.createElement("form");for(var d in p.style.display="none",p.action=a,p.method="post",n)t=u.createElement("input"),t.type="hidden",t.name=d,t.value=f.a.fc(f.a.c(n[d])),p.appendChild(t);e(i,function(e,t){var n=u.createElement("input");n.type="hidden",n.name=e,n.value=t,p.appendChild(n)}),u.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(),i={};return f.a.W?(e=function(e,t){var o=e[r];if(!o||"null"===o||!i[o]){if(!t)return a;o=e[r]="ko"+n++,i[o]={}}return i[o]},t=function(e){var t=e[r];return!!t&&(delete i[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){r=r.slice(0);for(var i=0;i<r.length;i++)r[i](t)}f.a.g.clear(t),f.a.I.cleanExternalData(t),o[t.nodeType]&&n(t.childNodes,!0)}function n(e,n){for(var r,i=[],o=0;o<e.length;o++)if((!n||8===e[o].nodeType)&&(t(i[i.length]=r=e[o]),e[o]!==r))for(;o--&&-1==f.a.A(i,e[o]););}var r=f.a.g.Z(),i={1:!0,8:!0,9:!0},o={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 i=e(t,!1);i&&(f.a.hb(i,n),0==i.length&&f.a.g.set(t,r,a))},na:function(e){return i[e.nodeType]&&(t(e),o[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>"],i={thead:t,tbody:t,tfoot:t,tr:[2,"<table><tbody>","</tbody></table>"],td:n,th:n,option:r,optgroup:r},o=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=u);a=r.parentWindow||r.defaultView||s;var l,p=f.a.Cb(t).toLowerCase(),d=r.createElement("div");for(l=(p=p.match(/^(?:\x3c!--.*?--\x3e\s*?)*?<([a-z]+)[\s>]/))&&i[p[1]]||e,p=l[0],l="ignored<div>"+l[1]+t+l[2]+"</div>","function"==typeof a.innerShiv?d.appendChild(a.innerShiv(l)):(o&&r.body.appendChild(d),d.innerHTML=l,o&&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),t=f.a.c(t),null!==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){r=0;for(var i=t.childNodes,o=i.length;r<o;r++)e(i[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 i=0,o=r.length;i<o;i++){var a=r[i].sd,s=[a];n&&f.a.gb(s,n),f.aa.ad(r[i].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(i)for(var e,t=i,n=0;a<i;)if(e=r[a++]){if(a>t){if(5e3<=++n){a=i,f.a.Fc(Error("'Too much recursion' after processing "+n+" task groups."));break}t=i}try{e()}catch(o){f.a.Fc(o)}}}function t(){e(),a=i=r.length=0}var n,r=[],i=0,o=1,a=0;return n=s.MutationObserver?function(e){var t=u.createElement("div");return new MutationObserver(e).observe(t,{attributes:!0}),function(){t.classList.toggle("foo")}}(t):u&&"onreadystatechange"in u.createElement("script")?function(e){var t=u.createElement("script");t.onreadystatechange=function(){t.onreadystatechange=null,u.documentElement.removeChild(t),t=null,e()},u.documentElement.appendChild(t)}:function(e){setTimeout(e,0)},{scheduler:n,yb:function(e){return i||f.ma.scheduler(t),r[i++]=e,o++},cancel:function(e){e-=o-i,e>=a&&e<i&&(r[e]=null)},resetForTesting:function(){var e=i-a;return a=i=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,o,a;"number"==typeof t?n=t:(n=t.timeout,o=t.method),e.Hb=!1,a="function"==typeof o?o:"notifyWhenChangesStop"==o?i: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 i=new f.gc(r,t?e.bind(t):e,function(){f.a.hb(r.S[n],i),r.cb&&r.cb(n)});return r.Qa&&r.Qa(n),r.S[n]||(r.S[n]=[]),r.S[n].push(i),i},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,i=0;r=n[i];++i)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,i,a,s=this,u=f.N(s);s.bb||(s.bb=s.notifySubscribers,s.notifySubscribers=o);var l=e(function(){s.Ka=!1,u&&i===s&&(i=s.mc?s.mc():s());var e=n||a&&s.qb(r,i);a=n=t=!1,e&&s.bb(r=i)});s.pc=function(e,n){n&&s.Ka||(a=!n),s.dd=s.S.change.slice(0),s.Ka=t=!0,i=e,l()},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=[],i=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=++i))}},K:function(n,r,i){try{return e(),n.apply(r,i||[])}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(e=e||[],"object"!=typeof 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,i=0;i<t.length;i++){var o=t[i];if(r(o)){if(0===n.length&&this.xa(),t[i]!==o)throw Error("Array modified during remove; cannot remove item");n.push(o),t.splice(i,1),i--}}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 i=t[r];n(i)&&(i._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(l){var t,n=[].concat(e.w()||[]);if(e.Wa("arrayChange"))(!u||1<l)&&(u=f.a.Ob(i,n,e.Nb)),t=u;i=n,u=null,l=0,t&&t.length&&e.notifySubscribers(t,"arrayChange")}}s?t():(s=!0,o=e.notifySubscribers,e.notifySubscribers=function(e,t){return t&&"change"!==t||++l,o.apply(this,arguments)},i=[].concat(e.w()||[]),u=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,i,o,s=!1,u=null,l=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")||(o&&(e.notifySubscribers=o,o=a),r&&r.s(),r=null,s=!1,i=a)},e.yc=function(e,t,n){function r(e,t,n){return i[i.length]={status:e,value:t,index:n}}if(s&&!l){var i=[],o=e.length,a=n.length,c=0;switch(t){case"push":c=o;case"unshift":for(t=0;t<a;t++)r("added",n[t],c+t);break;case"pop":c=o-1;case"shift":o&&r("deleted",e[c],c);break;case"splice":t=Math.min(Math.max(0,0>n[0]?o+n[0]:n[0]),o);o=1===a?o:Math.min(t+(n[1]||0),o),a=t+a-2,c=Math.max(o,a);for(var p=[],d=[],h=2;t<c;++t,++h)t<o&&d.push(r("deleted",e[t],t)),t<a&&p.push(r("added",n[h],t));f.a.Jc(d,p);break;default:return}u=i}}}};var x=f.a.Da("_state");f.o=f.$=function(e,t,n){function r(){if(0<arguments.length){if("function"!==typeof i)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 i.apply(o.lb,arguments),this}return o.qa||f.v.ac(r),(o.ka||o.G&&r.Xa())&&r.ha(),o.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 i=n.write,o={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]=o,r.Mc="function"===typeof i,f.a.Ba||f.a.extend(r,f.R.fn),f.R.fn.ob(r),f.a.zb(r,C),n.pure?(o.vb=!0,o.G=!0,f.a.extend(r,w)):n.deferEvaluation&&f.a.extend(r,P),f.options.deferUpdates&&f.Ta.deferred(r,!0),o.l&&(o.hc=!0,o.l.nodeType||(o.l=null)),o.G||n.deferEvaluation||r.ha(),o.l&&r.ja()&&f.a.I.za(o.l,o.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 i=this.xd(t,n);return t.V?n=this.qb(t.X,i):(this.s(),n=!0),n&&(t.G?this.Gb():this.notifySubscribers(t.X,"beforeChange"),t.X=i,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 i=n.F[e],o=t.Zc(i.da);o.La=r,o.Ma=i.Ma,n.F[e]=o}),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,i,o){if(o=o||new n,r=i(r),"object"!=typeof 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 o.save(r,s),t(r,function(t){var n=i(r[t]);switch(typeof n){case"boolean":case"number":case"string":case"function":s[t]=n;break;case"object":case"undefined":var u=o.get(n);s[t]=u!==a?u:e(n,i,o)}}),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"}),i=r.subscribe(function(e){e&&(i.s(),t(e))});return r.notifySubscribers(r.w()),i}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,i=-1,o=0,s=e.options.length;o<s;++o)if(r=f.u.L(e.options[o]),r==t||""===r&&t===a){i=o;break}(n||0<=i||t===a&&1<e.size)&&(e.selectedIndex=i,6===f.a.W&&f.a.setTimeout(function(){e.selectedIndex=i},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=[],u=0;if(1<a.length){for(var l,c=0;l=a[c];++c){var p=l.charCodeAt(0);if(44===p){if(0>=u){n.push(t&&s.length?{key:t,value:s.join("")}:{unknown:t||s.join("")}),t=u=0,s=[];continue}}else if(58===p){if(!u&&!t&&1===s.length){t=s.pop();continue}}else{if(47===p&&1<l.length&&(47===l.charCodeAt(1)||42===l.charCodeAt(1)))continue;47===p&&c&&1<l.length?(p=a[c-1].match(i))&&!o[p[0]]&&(e=e.substr(e.indexOf(l)+1),a=e.match(r),c=-1,l="/"):40===p||123===p||91===p?++u:41===p||125===p||93===p?--u:t||s.length||34!==p&&39!==p||(l=l.slice(1,-1))}s.push(l)}if(0<u)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"),i=/[\])"'A-Za-z0-9_$]+$/,o={in:1,return:1,typeof:1},a={};return{Ra:[],va:a,Zb:e,ub:function(r,i){function o(e,r){var i;if(!c){var p=f.getBindingHandler(e);if(p&&p.preprocess&&!(r=p.preprocess(r,e,o)))return;(p=a[e])&&(i=r,0<=f.a.A(t,i)?i=!1:(p=i.match(n),i=null!==p&&(p[1]?"Object("+p[1]+")"+p[2]:i)),p=i),p&&u.push("'"+("string"==typeof a[e]?a[e]:e)+"':function(_z){"+i+"=_z}")}l&&(r="function(){return "+r+" }"),s.push("'"+e+"':"+r)}i=i||{};var s=[],u=[],l=i.valueAccessors,c=i.bindingParams,p="string"===typeof r?e(r):r;return f.a.C(p,function(e){o(e.key||e.unknown,e.value)}),u.length&&o("_ko_property_writers","{"+u.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,i){e&&f.N(e)?!f.Ya(e)||i&&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&&o.test(i?e.text:e.nodeValue)}function t(e){return 8==e.nodeType&&a.test(i?e.text:e.nodeValue)}function n(n,r){for(var i=n,o=1,a=[];i=i.nextSibling;){if(t(i)&&(f.a.g.set(i,l,!0),o--,0===o))return a;a.push(i),e(i)&&o++}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 i=u&&"\x3c!--test--\x3e"===u.createComment("test").text,o=i?/^\x3c!--\s*ko(?:\s+([\s\S]+))?\s*--\x3e$/:/^\s*ko(?:\s+([\s\S]+))?\s*$/,a=i?/^\x3c!--\s*\/ko\s*--\x3e$/:/^\s*\/ko\s*$/,s={ul:!0,ol:!0},l="__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,i=0,o=n.length;i<o;i++)r.parentNode.insertBefore(n[i],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 i=n.nextSibling;if(t(i)&&!f.a.g.get(i,l))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=(i?e.text:e.nodeValue).match(o))?e[1]:null},Rc:function(n){if(s[f.a.P(n)]){var i=n.firstChild;if(i)do{if(1===i.nodeType){var o;o=i.firstChild;var a=null;if(o)do{if(a)a.push(o);else if(e(o)){var u=r(o,!0);u?o=u:a=[o]}else t(o)&&(a=[o])}while(o=o.nextSibling);if(o=a)for(a=i.nextSibling,u=0;u<o.length;u++)a?n.insertBefore(o[u],a):n.appendChild(o[u])}}while(i=i.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 i,o=this.md,a=e+(r&&r.valueAccessors||"");if(!(i=o[a])){var s,u="with($context){with($data||{}){return{"+f.m.ub(e,r)+"}}}";s=new Function("$context","$element",u),i=o[a]=s}return i(t,n)}catch(l){throw l.message="Unable to parse bindings.\nBindings value: "+e+"\nMessage: "+l.message,l}}}),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 i(e){return f.a.Ha(f.v.K(e),function(t,n){return function(){return e()[n]}})}function o(e,t,r){return"function"===typeof e?i(e.bind(null,t,r)):f.a.Ha(e,n)}function l(e,t){return i(this.getBindings.bind(this,e,t))}function p(e,t){var n=f.h.firstChild(t);if(n){var r,i=f.ga.instance,o=i.preprocessNode;if(o){for(;r=n;)n=f.h.nextSibling(r),o.call(i,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 i(o){if(!n[o]){var a=f.getBindingHandler(o);a&&(a.after&&(r.push(o),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(", "));i(t)}}),r.length--),t.push({key:o,Lc:a})),n[o]=!0}}),t}function m(e,t,n){var i,o=f.a.g.Tb(e,w,{}),s=o.gd;if(!t){if(s)throw Error("You cannot apply bindings multiple times to the same element.");o.gd=!0}if(s||(o.context=n),t&&"function"!==typeof t)i=t;else{var u=f.ga.instance,c=u.getBindingAccessors||l,p=f.$(function(){return(i=t?t(n,e):c.call(u,e,n))&&(n[y]&&n[y](),n[b]&&n[b]()),i},null,{l:e});i&&p.ja()||(p=null)}var d,m=n;if(i){var g=function(){return f.a.Ha(p?p():i,r)},v=p?function(e){return function(){return r(p()[e])}}:function(e){return i[e]};g.get=function(e){return i[e]&&r(v(e))},g.has=function(e){return e in i},f.j.T in i&&f.j.subscribe(e,f.j.T,function(){var t=(0,i[f.j.T])();if(t){var n=f.h.childNodes(e);n.length&&t(n,f.Dc(n[0]))}}),f.j.oa in i&&(m=f.j.Bb(e,n),f.j.subscribe(e,f.j.oa,function(){var t=(0,i[f.j.oa])();t&&f.h.firstChild(e)&&t(e)})),o=h(i),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(s){throw s.message='Unable to process binding "'+o+": "+i[o]+'"\nMessage: '+s.message,s}})}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,i){function o(){var e=p?c():c,i=f.a.c(e);return t?(f.a.extend(u,t),v in t&&(u[v]=t[v])):(u.$parents=[],u.$root=i,u.ko=f),u[y]=s,l?i=u.$data:(u.$rawData=e,u.$data=i),n&&(u[n]=i),r&&r(u,t,i),t&&t[y]&&!f.U.o().Ub(t[y])&&t[y](),d&&(u[b]=d),u.$data}var s,u=this,l=e===C,c=l?a:e,p="function"==typeof c&&!f.N(c),d=i&&i.dataDependency;i&&i.exportDependencies?o():(s=f.wb(o),s.w(),s.ja()?s.equalityComparer=null:u[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 i="function"==typeof e&&!f.N(e);return new f.fa(C,this,null,function(r){n&&n(r),r[t]=i?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,o(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=u.body,!t)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(i,t)?i[t]:e;s?s.subscribe(r):(s=i[t]=new f.R,s.subscribe(r),n(t,function(e,n){var r=!(!n||!n.synchronous);o[t]={definition:e,Fd:r},delete i[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,i,o){o||(o=f.i.loaders.slice(0));var a=o.shift();if(a){var s=a[t];if(s){var u=!1;if(s.apply(a,n.concat(function(e){u?i(null):null!==e?i(e):r(t,n,i,o)}))!==e&&(u=!0,!a.suppressLoaderExceptions))throw Error("Component loaders must supply values by invoking the callback, not by returning values synchronously.")}else r(t,n,i,o)}else i(null)}var i={},o={};f.i={get:function(n,r){var i=Object.prototype.hasOwnProperty.call(o,n)?o[n]:e;i?i.Fd?f.v.K(function(){r(i.definition)}):f.ma.yb(function(){r(i.definition)}):t(n,r)},Ac:function(e){delete o[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 i(){0===--s&&r(a)}var a={},s=2,u=n.template;n=n.viewModel,u?o(t,u,function(t){f.i.nc("loadTemplate",[e,t],function(e){a.template=e,i()})}):i(),n?o(t,n,function(t){f.i.nc("loadViewModel",[e,t],function(e){a[c]=e,i()})}):i()}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 i=t.instance;r(function(){return i})}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(i(e.content))return f.a.Ca(e.content.childNodes)}return f.a.Ca(e.childNodes)}function i(e){return s.DocumentFragment?e instanceof DocumentFragment:e&&11===e.nodeType}function o(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 l={};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");l[e]=t},f.i.sb=function(e){return Object.prototype.hasOwnProperty.call(l,e)},f.i.unregister=function(e){delete l[e],f.i.Ac(e)},f.i.Ec={getConfig:function(e,t){t(f.i.sb(e)?l[e]:null)},loadComponent:function(t,n,r){var i=a(t);o(i,n,function(n){e(t,i,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(i(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 o=u.getElementById(t);o?n(r(o)):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=l}(),function(){function e(e,n){var r=e.getAttribute("params");if(r){r=t.parseBindingsString(r,n,e,{valueAccessors:!0,bindingParams:!0}),r=f.a.Ha(r,function(t){return f.o(t,null,{l:e})});var i=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(i,"$raw")||(i.$raw=r),i}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,i){if(1===n.nodeType){var o=f.i.getComponentNameForNode(n);if(o){if(t=t||{},t.component)throw Error('Cannot use the "component" binding on a custom element matching a component');var a={name:o,params:e(n,r)};t.component=i?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),u.createDocumentFragment=function(e){return function(){var t,n=e(),r=f.i.cd;for(t in r);return n}}(u.createDocumentFragment))}(),function(){function e(e,t,n){if(t=t.template,!t)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,i,o,a,s){function u(){var e=l&&l.dispose;"function"===typeof e&&e.call(l),p&&p.s(),c=l=p=null}var l,c,p,d=f.a.la(f.h.childNodes(r));return f.h.Ea(r),f.a.I.za(r,u),f.o(function(){var o,a,h=f.a.c(i());if("string"===typeof h?o=h:(o=f.a.c(h.name),a=f.a.c(h.params)),!o)throw Error("No component name specified");var m=f.j.Bb(r,s),g=c=++n;f.i.get(o,function(n){if(c===g){if(u(),!n)throw Error("Unknown component '"+o+"'");e(o,n,r);var i=t(n,a,{element:r,templateNodes:d});n=m.createChildContext(i,{extend:function(e){e.$component=i,e.$componentTemplateNodes=d}}),i&&i.koDescendantsComplete&&(p=f.j.subscribe(r,f.j.oa,i.koDescendantsComplete,i)),l=i,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(":"),i=(r="lookupNamespaceURI"in e&&0<r&&e.lookupNamespaceURI(t.substr(0,r)),!1===n||null===n||n===a);i?r?e.removeAttributeNS(r,t):e.removeAttribute(t):n=n.toString(),8>=f.a.W&&t in T?(t=T[t],i?e.removeAttribute(t):e[t]=n):i||(r?e.setAttributeNS(r,t,n):e.setAttribute(t,n)),"name"===t&&f.a.Xc(e,i?"":n)})}},function(){f.f.checked={after:["value","attr"],init:function(e,t,n){function r(){var r=e.checked,i=o();if(!f.U.rb()&&(r||!u&&!f.U.pa())){var l=f.v.K(t);if(c){var d=p?l.w():l,m=h;h=i,m!==i?r&&(f.a.Oa(d,i,!0),f.a.Oa(d,m,!1)):f.a.Oa(d,i,r),p&&f.Ya(l)&&l(d)}else s&&(i===a?i=r:r||(i=a)),f.m.$a(l,n,"checked",i,!0)}}function i(){var n=f.a.c(t()),r=o();c?(e.checked=0<=f.a.A(n,r),h=r):e.checked=s&&r===a?!!n:o()===n}var o=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,u="radio"==e.type;if(s||u){var l=t(),c=s&&f.a.c(l)instanceof Array,p=!(c&&l.push&&l.splice),d=u||c,h=c?o():a;u&&!e.name&&f.f.uniqueName.init(e,function(){return!0}),f.o(r,null,{l:e}),f.a.H(e,"click",r),f.o(i,null,{l:e}),l=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,i){var o=t()||{};f.a.O(o,function(o){"string"==typeof o&&f.a.H(e,o,function(e){var a,s=t()[o];if(s){try{var u=f.a.la(arguments);r=i.$data,u.unshift(r),a=s.apply(r,u)}finally{!0!==a&&(e.preventDefault?e.preventDefault():e.returnValue=!1)}!1===n.get(o+"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,i){return f.f.template.update(e,f.f.foreach.Qc(t),n,r,i)}},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 i=e.ownerDocument;if("activeElement"in i){var o;try{o=i.activeElement}catch(a){o=i.body}r=o===e}i=t(),f.m.$a(i,n,"hasfocus",r,!0),e.__ko_hasfocusLastValue=r,e.__ko_hasfocusUpdating=!1}var i=r.bind(null,!0),o=r.bind(null,!1);f.a.H(e,"focus",i),f.a.H(e,"focusin",i),f.a.H(e,"blur",o),f.a.H(e,"focusout",o),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,i,o,a){var s,u,l,c,p,d={};if(t){o=i.get("as");var h=i.get("noChildContext");p=!(o&&h),d={as:o,noChildContext:h,exportDependencies:p}}return c=(l="render"==i.get("completeOn"))||i.has(f.j.oa),f.o(function(){var i,o=f.a.c(r()),h=!n!==!o,m=!u;(p||h!==s)&&(c&&(a=f.j.Bb(e,a)),h&&(t&&!p||(d.dataDependency=f.U.o()),i=t?a.createChildContext("function"==typeof o?o:r,d):f.U.pa()?a.extend(null,d):a),m&&f.U.pa()&&(u=f.a.Ca(f.h.childNodes(e),!0)),h?(m||f.h.ua(e,f.a.Ca(u)),f.Pa(i,e)):(f.h.Ea(e),l||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,i){return t=i.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 i(e,t,n){var r=typeof t;return"function"==r?t(e):"string"==r?e[t]:n}function o(t,r){if(m&&c)f.u.ya(e,f.a.c(n.get("value")),!0);else if(h.length){var i=0<=f.a.A(h,f.u.L(r[0]));f.a.Yc(r[0],i),m&&!i&&f.v.K(f.a.Fb,null,[e,"change"])}}var s=e.multiple,u=0!=e.length&&s?e.scrollTop:null,l=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]))),l&&("undefined"==typeof l.length&&(l=[l]),d=f.a.fb(l,function(e){return p||e===a||null===e||!f.a.c(e._destroy)}),n.has("optionsCaption")&&(l=f.a.c(n.get("optionsCaption")),null!==l&&l!==a&&d.unshift(k)));var m=!1;t.beforeRemove=function(t){e.removeChild(t)},l=o,n.has("optionsAfterRender")&&"function"==typeof n.get("optionsAfterRender")&&(l=function(e,t){o(0,t),f.v.K(n.get("optionsAfterRender"),null,[t[0],e!==k?e:a])}),f.a.cc(e,d,function(t,r,o){return o.length&&(h=!c&&o[0].selected?[f.u.L(o[0])]:[],m=!0),r=e.ownerDocument.createElement("option"),t===k?(f.a.Ab(r,n.get("optionsCaption")),f.u.ya(r,a)):(o=i(t,n.get("optionsValue"),t),f.u.ya(r,f.a.c(o)),t=i(t,n.get("optionsText"),o),f.a.Ab(r,t)),[r]},t,l),f.v.K(function(){var t;c?f.u.ya(e,f.a.c(n.get("value")),!0):(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),u&&20<Math.abs(u-e.scrollTop)&&(e.scrollTop=u)}},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(),i=[];f.a.C(e.getElementsByTagName("option"),function(e){e.selected&&i.push(f.u.L(e))}),f.m.$a(r,n,"selectedOptions",i)})},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,i){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,o=t();try{r=o.call(i.$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,i,o=function(e){if(e)return parseFloat(e[1])},u=s.navigator.userAgent;(e=s.opera&&s.opera.version&&parseInt(s.opera.version()))||(i=o(u.match(/Edge\/([^ ]+)$/)))||o(u.match(/Chrome\/([^ ]+)/))||(t=o(u.match(/Version\/([^ ]+) Safari/)))||(n=o(u.match(/Firefox\/([^ ]+)/)))||(r=f.a.W||o(u.match(/MSIE ([^ ]+)/)))||(r=o(u.match(/rv:([^ )]+)/)))}if(8<=r&&10>r)var l=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,l)||(f.a.g.set(n,l,!0),f.a.H(n,"selectionchange",p)),f.a.g.set(e,c,t)};f.f.textInput={init:function(o,s,u){function l(e,t){f.a.H(o,e,t)}function c(){var e=f.a.c(s());null!==e&&e!==a||(e=""),g!==a&&e===g?f.a.setTimeout(c,4):o.value!==e&&(b=!0,o.value=e,b=!1,y=o.value)}function p(){m||(g=o.value,m=f.a.setTimeout(h,4))}function h(){clearTimeout(m),g=m=a;var e=o.value;y!==e&&(y=e,f.m.$a(s(),u,"textInput",e))}var m,g,y=o.value,v=9==f.a.W?p:h,b=!1;r&&l("keypress",h),11>r&&l("propertychange",function(e){b||"value"!==e.propertyName||v(e)}),8==r&&(l("keyup",h),l("keydown",h)),d&&(d(o,v),l("dragend",p)),(!r||9<=r)&&l("input",v),5>t&&"textarea"===f.a.P(o)?(l("keydown",p),l("paste",p),l("cut",p)):11>e?l("keydown",p):4>n?(l("DOMAutoComplete",h),l("dragdrop",h),l("drop",h)):i&&"number"===o.type&&l("keydown",p),l("change",h),l("blur",h),f.o(c,null,{l:o})}},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,i){var o;return n.has("as")&&(o={as:n.get("as"),noChildContext:n.get("noChildContext")}),t=i.createChildContext(t,o),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),i="input"==r;if(!i||"checkbox"!=e.type&&"radio"!=e.type){var o=["change"],s=n.get("valueUpdate"),u=!1,l=null;s&&("string"==typeof s&&(s=[s]),f.a.gb(o,s),o=f.a.vc(o));var c,p=function(){l=null,u=!1;var r=t(),i=f.u.L(e);f.m.$a(r,n,"value",i)};!f.a.W||!i||"text"!=e.type||"off"==e.autocomplete||e.form&&"off"==e.form.autocomplete||-1!=f.a.A(o,"propertychange")||(f.a.H(e,"propertychange",function(){u=!0}),f.a.H(e,"focus",function(){u=!1}),f.a.H(e,"blur",function(){u&&p()})),f.a.C(o,function(t){var n=p;f.a.Td(t,"after")&&(n=function(){l=f.u.L(e),f.a.setTimeout(p,0)},t=t.substring(5)),f.a.H(e,t,n)}),c=i&&"file"==e.type?function(){var n=f.a.c(t());null===n||n===a||""===n?e.value="":f.v.K(p)}:function(){var i=f.a.c(t()),o=f.u.L(e);null!==l&&i===l?f.a.setTimeout(c,0):i===o&&o!==a||("select"===r?(o=n.get("valueAllowUnset"),f.u.ya(e,i,o),o||i===f.u.L(e)||f.v.K(p)):f.u.ya(e,i))},f.o(c,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,i,o){return f.f.event.init.call(this,t,function(){var t={};return t[e]=n(),t},r,i,o)}}}("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||u;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 i=f.m.Ra,o=0;o<e.length;o++){var a=e[o].key;if(Object.prototype.hasOwnProperty.call(i,a)){var s=i[a];if("function"===typeof s){if(a=s(e[o].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,i){return r.replace(t,function(t,n,r,o,a){return e(a,n,r,i)}).replace(n,function(t,n){return e(n,"\x3c!-- ko --\x3e","#comment",i)})},ld:function(e,t){return f.aa.Wb(function(n,r){var i=n.nextSibling;i&&i.nodeName.toLowerCase()===t&&f.eb(i,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],i=t[t.length-1],o=r.parentNode,a=f.ga.instance,s=a.preprocessNode;if(s){if(e(r,i,function(e,t){var n=e.previousSibling,o=s.call(a,e);o&&(e===r&&(r=o[0]||t),e===i&&(i=o[o.length-1]||n))}),t.length=0,!r)return;r===i?t.push(r):(t.push(r,i),f.a.Ua(t,o))}e(r,i,function(e){1!==e.nodeType&&8!==e.nodeType||f.uc(n,e)}),e(r,i,function(e){1!==e.nodeType&&8!==e.nodeType||f.aa.bd(e,[n])}),f.a.Ua(t,o)}}function n(e){return e.nodeType?e:0<e.length?e[0]:null}function r(e,r,i,a,s){s=s||{};var u=(e&&n(e)||i||{}).ownerDocument,l=s.templateEngine||o;if(f.ic.wd(i,l,u),i=l.renderTemplate(i,a,s,u),"number"!=typeof i.length||0<i.length&&"number"!=typeof i[0].nodeType)throw Error("Template engine must return an array of DOM nodes");switch(u=!1,r){case"replaceChildren":f.h.ua(e,i),u=!0;break;case"replaceNode":f.a.Wc(e,i),u=!0;break;case"ignoreTargetNode":break;default:throw Error("Unknown renderMode: "+r)}return u&&(t(i,a),s.afterRender&&f.v.K(s.afterRender,null,[i,a[s.as||"$data"]]),"replaceChildren"==r&&f.j.Ga(e,f.j.T)),i}function i(e,t,n){return f.N(e)?e():"function"===typeof e?e(t,n):e}var o;f.ec=function(e){if(e!=a&&!(e instanceof f.ca))throw Error("templateEngine must inherit from ko.templateEngine");o=e},f.bc=function(e,t,s,u,l){if(s=s||{},(s.templateEngine||o)==a)throw Error("Set a template engine before calling renderTemplate");if(l=l||"replaceChildren",u){var c=n(u);return f.$(function(){var o=t&&t instanceof f.fa?t:new f.fa(t,null,null,null,{exportDependencies:!0}),a=i(e,o.$data,o);o=r(u,l,a,o,s);"replaceNode"==l&&(u=o,c=n(u))},null,{Sa:function(){return!c||!f.a.Rb(c)},l:c&&"replaceNode"==l?c.parentNode:c})}return f.aa.Wb(function(n){f.bc(e,t,s,n,"replaceNode")})},f.Pd=function(e,n,o,s,u){function l(e,t){f.v.K(f.a.cc,null,[s,e,p,o,c,t]),f.j.Ga(s,f.j.T)}function c(e,n){t(n,d),o.afterRender&&o.afterRender(n,e),d=null}function p(t,n){d=u.createChildContext(t,{as:h,noChildContext:o.noChildContext,extend:function(e){e.$index=n,h&&(e[h+"Index"]=n)}});var a=i(e,t,d);return r(s,"ignoreTargetNode",a,d,o)}var d,h=o.as,m=!1===o.includeDestroyed||f.options.foreachHidesDestroyed&&!o.includeDestroyed;if(m||o.beforeRemove||!f.Oc(n))return f.$(function(){var e=f.a.c(n)||[];"undefined"==typeof e.length&&(e=[e]),m&&(e=f.a.fb(e,function(e){return e===a||null===e||!f.a.c(e._destroy)})),l(e)},null,{l:s});l(n.w());var g=n.subscribe(function(e){l(n(),e)},null,"arrayChange");return g.l(s),g};var s=f.a.g.Z(),u=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,u)||(r=f.a.Xb(n),f.a.g.set(r,u,!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,i){var o=t();t=f.a.c(o),n=!0,r=null,"string"==typeof t?t={}:(o=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(o||e,n&&t.foreach||[],t,e,i):n?(n=i,"data"in t&&(n=i.createChildContext(t.data,{as:t.as,noChildContext:t.noChildContext,exportDependencies:!0})),r=f.bc(o||e,n,t,e)):f.h.Ea(e),i=r,(t=f.a.g.get(e,s))&&"function"==typeof t.s&&t.s(),f.a.g.set(e,s,!i||i.ja&&!i.ja()?a:i)}},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){var r,i,o,a,s;if(e.length&&t.length)for(r=i=0;(!n||r<n)&&(a=e[i]);++i){for(o=0;s=t[o];++o)if(a.value===s.value){a.moved=s.index,s.moved=a.index,t.splice(o,1),r=o=0;break}r+=o}},f.a.Ob=function(){function e(e,t,n,r,i){var o,a,s,u,l,c=Math.min,p=Math.max,d=[],h=e.length,m=t.length,g=m-h||1,y=h+m+1;for(o=0;o<=h;o++)for(u=s,d.push(s=[]),l=c(m,o+g),a=p(0,o-1);a<=l;a++)s[a]=a?o?e[o-1]===t[a-1]?u[a-1]:c(u[a]||y,s[a-1]||y)+1:a+1:o+1;for(c=[],p=[],g=[],o=h,a=m;o||a;)m=d[o][a]-1,a&&m===d[o][a-1]?p.push(c[c.length]={status:n,value:t[--a],index:a}):o&&m===d[o-1][a]?g.push(c[c.length]={status:r,value:e[--o],index:o}):(--a,--o,i.sparse||c.push({status:"retained",value:t[a]}));return f.a.Jc(g,p,!i.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,i){var o=[],s=f.$(function(){var a=t(n,i,f.a.Ua(o,e))||[];0<o.length&&(f.a.Wc(o,a),r&&f.v.K(r,null,[n,a,i])),o.length=0,f.a.gb(o,a)},null,{l:e,Sa:function(){return!f.a.jd(o)}});return{Y:o,$:s.ja()?s:a}}var t=f.a.g.Z(),n=f.a.g.Z();f.a.cc=function(r,i,o,s,u,l){function c(e){h={Aa:e,nb:f.sa(w++)},x.push(h),b||R.push(h)}function p(e){h=v[e],w!==h.nb.w()&&S.push(h),h.nb(w++),f.a.Ua(h.Y,r),x.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)})}i=i||[],"undefined"==typeof i.length&&(i=[i]),s=s||{};var h,m,g,y,v=f.a.g.get(r,t),b=!v,x=[],C=0,w=0,P=[],T=[],k=[],S=[],R=[],O=0;if(b)f.a.C(i,c);else{if(!l||v&&v._countWaitingForRemove){var q=f.a.Mb(v,function(e){return e.Aa});l=f.a.Ob(q,i,{dontLimitMoves:s.dontLimitMoves,sparse:!0})}var E,_,I;for(q=0;E=l[q];q++)switch(_=E.moved,I=E.index,E.status){case"deleted":for(;C<I;)p(C++);_===a&&(h=v[C],h.$&&(h.$.s(),h.$=a),f.a.Ua(h.Y,r).length&&(s.beforeRemove&&(x.push(h),O++,h.Aa===n?h=null:k.push(h)),h&&P.push.apply(P,h.Y))),C++;break;case"added":for(;w<I;)p(C++);_!==a?(T.push(x.length),p(_)):c(E.value)}for(;w<i.length;)p(C++);x._countWaitingForRemove=O}f.a.g.set(r,t,x),d(s.beforeMove,S),f.a.C(P,s.beforeRemove?f.na:f.removeNode);try{y=r.ownerDocument.activeElement}catch(V){}if(T.length)for(;(q=T.shift())!=a;){for(h=x[q],m=a;q;)if((g=x[--q].Y)&&g.length){m=g[g.length-1];break}for(i=0;C=h.Y[i];m=C,i++)f.h.Vb(r,C,m)}for(q=0,T=f.h.firstChild(r);h=x[q];q++){for(h.Y||f.a.extend(h,e(r,o,h.Aa,u,h.nb)),i=0;C=h.Y[i];T=C.nextSibling,m=C,i++)C!==T&&f.h.Vb(r,C,m);!h.Dd&&u&&(u(h.Aa,h.Y,h.nb),h.Dd=!0,m=h.Y[h.Y.length-1])}for(y&&r.ownerDocument.activeElement!=y&&y.focus(),d(s.beforeRemove,k),q=0;q<k.length;++q)k[q].Aa=n;d(s.afterMove,S),d(s.afterAdd,R)}}(),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||!e.nodes?null:e.nodes())?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,i){if(i=i||u,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 o=t.data("precompiled");return o||(o=t.text()||"",o=c.template(null,"{{ko_with $item.koBindingContext}}"+o+"{{/ko_with}}"),t.data("precompiled",o)),t=[n.$data],n=c.extend({koBindingContext:n},r.templateOptions),n=c.tmpl(o,t,n),n.appendTo(i.createElement("div")),c.fragments={},n},this.createJavaScriptEvaluatorBlock=function(e){return"{{ko_code ((function() { return "+e+" })()) }}"},this.addTemplate=function(e,t){u.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)}()})})()})()},b038:function(e,t,n){
  /*!
   * surveyjs - Survey JavaScript library v1.1.8
   * Copyright (c) 2015-2019 Devsoft Baltic OÜ  - http://surveyjs.io/
   * License: MIT (http://www.opensource.org/licenses/mit-license.php)
   */
  (function(t,r){e.exports=r(n("68fb"))})(0,function(e){return function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=e,n.c=t,n.i=function(e){return e},n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{configurable:!1,enumerable:!0,get:r})},n.n=function(e){var t=e&&e.__esModule?function(){return e["default"]}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=150)}([function(e,t,n){"use strict";n.d(t,"a",function(){return r}),t["b"]=i,n.d(t,"c",function(){return o});var r=Object["assign"]||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n],t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e};function i(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);function r(){this.constructor=e}e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}var o=function(e,t,n,r){var i,o=arguments.length,a=o<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--)(i=e[s])&&(a=(o<3?i(a):o>3?i(t,n,a):i(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a}},function(e,t,n){"use strict";var r=n(0),i=n(4);n.d(t,"d",function(){return o}),n.d(t,"c",function(){return a}),n.d(t,"h",function(){return s}),n.d(t,"g",function(){return u}),n.d(t,"e",function(){return l}),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 o=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.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 i["a"].isValueEmpty(this.defaultValue)?!1===e&&"boolean"==this.type||""===e||i["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"],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 i=r[t],o=0;o<i.length;o++)if(i[o].name==n){r[t].splice(o,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();var n=[],r=e.properties;while(t){var i=r[t];if(i)for(var o=0;o<i.length;o++)n.push(i[o]);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 i=e.parentClasses[n];i&&e.createPropertiesCore(t,i)},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 i=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,i),i=null),e.getPropertyValue&&e.setPropertyValue){r={get:function(){return e.getPropertyValue(t.name,i)},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 i=0;i<t.length;i++){var o=this.createProperty(t[i]);o&&this.properties.push(o)}}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 u=new o(n,s);if(r&&(u.type=r),"object"===typeof t){if(t.type&&(u.type=t.type),i["a"].isValueEmpty(t.default)||(u.defaultValue=t.default),i["a"].isValueEmpty(t.isSerializable)||(u.isSerializable=t.isSerializable),i["a"].isValueEmpty(t.isLightSerializable)||(u.isLightSerializable=t.isLightSerializable),i["a"].isValueEmpty(t.isDynamicChoices)||(u.isDynamicChoices=t.isDynamicChoices),!1===t.visible&&(u.visible=!1),t.visibleIf&&(u.visibleIf=t.visibleIf),t.choices){var l="function"===typeof t.choices?t.choices:null,c="function"!==typeof t.choices?t.choices:null;u.setChoices(c,l)}if(t.baseValue&&u.setBaseValue(t.baseValue),t.onGetValue&&(u.onGetValue=t.onGetValue),t.onSetValue&&(u.onSetValue=t.onSetValue),t.isLocalizable&&(t.serializationProperty="loc"+t.name),t.serializationProperty)u.serializationProperty=t.serializationProperty,u.serializationProperty&&0==u.serializationProperty.indexOf("loc")&&(u.isLocalizable=!0);t.isLocalizable&&(u.isLocalizable=t.isLocalizable),t.className&&(u.className=t.className),t.baseClassName&&(u.baseClassName=t.baseClassName),t.classNamePart&&(u.classNamePart=t.classNamePart),t.alternativeName&&(u.alternativeName=t.alternativeName),t.layout&&(u.layout=t.layout),t.dependsOn&&this.addDependsOnProperties(u,t.dependsOn)}return u}},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},e.requiredSymbol="!",e.typeSymbol=":",e}(),u=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 i=new s(e,t,n,r);if(this.classes[e]=i,r){r=r.toLowerCase();var o=this.childrenClasses[r];o||(this.childrenClasses[r]=[]),this.childrenClasses[r].push(i)}return i},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 i=this.getDynamicProperties(e);if(i&&i.length>0)for(r=0;r<i.length;r++)t.push(i[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),i=0;i<t.length;i++){var o=r[t[i]];o&&n.push(o)}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);var r=n.parentName;while(r){if(n=this.findClass(r),!n)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),i=e,o=r.getTemplate?r.getTemplate():r.getType();return r.getType=function(){return i},r.getTemplate=function(){return o},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 i=0;i<r.length;i++)t&&!r[i].creator||n.push(r[i]),this.fillChildrenClasses(r[i].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 i=0;i<r.properties.length;i++){var o=r.properties[i];this.addPropertyCore(o,t,n),n[o.name]=o}}},e.prototype.addPropertyCore=function(e,t,n){if(n[e.name]){for(var r=-1,i=0;i<t.length;i++)if(t[i].name==e.name){r=i;break}e.mergeWith(t[r]),t[r]=e}else t.push(e)},e}(),l=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 i=m.metaData.getProperties(n);if(i){r.description="The list of available properties are: ";for(var o=0;o<i.length;o++)o>0&&(r.description+=", "),r.description+=i[o].name;r.description+="."}return r}return r["b"](t,e),t}(l),p=function(e){function t(t,n,r){var i=e.call(this,n,r)||this;i.baseClassName=t,i.type=n,i.message=r,i.description="The following types are available: ";for(var o=m.metaData.getChildrenClasses(t,!0),a=0;a<o.length;a++)a>0&&(i.description+=", "),i.description+="'"+o[a].name+"'";return i.description+=".",i}return r["b"](t,e),t}(l),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 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 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 r["b"](t,e),t}(l),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(t,n){if(t){var r=null,i=void 0,o=!0;if(n.getType&&(i=n.getType(),r=e.metaData.getProperties(i),o=!!i&&!e.metaData.isDescendantOf(i,"itemvalue")),r){for(var a in n.startLoadingFromJson&&n.startLoadingFromJson(),r=this.addDynamicProperties(n,t,r),t)if(a!==e.typePropertyName)if(a!==e.positionPropertyName){var s=this.findProperty(r,a);s?this.valueToObj(t[a],n,s):o&&this.addNewError(new c(a.toString(),i),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 i={};return null==n||n.className||(i[e.typePropertyName]=n.getObjType(t.getType())),this.propertiesToJson(t,e.metaData.getProperties(t.getType()),i,r),this.propertiesToJson(t,this.getDynamicProperties(t),i,r),i},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 i=this.getDynamicProperties(e),o=[],a=0;a<n.length;a++)o.push(n[a]);for(a=0;a<i.length;a++)o.push(i[a]);return o},e.prototype.propertiesToJson=function(e,t,n,r){void 0===r&&(r=!1);for(var i=0;i<t.length;i++)this.valueToJson(e,n,t[i],r)},e.prototype.valueToJson=function(e,t,n,r){if(void 0===r&&(r=!1),!(!1===n.isSerializable||!1===n.isLightSerializable&&this.lightSerializing)){var i=n.getValue(e);if(r||!n.isDefaultValue(i)){if(this.isValueArray(i)){for(var o=[],a=0;a<i.length;a++)o.push(this.toJsonObjectCore(i[a],n,r));i=o.length>0?o:null}else i=this.toJsonObjectCore(i,n,r);var s="function"===typeof e["getPropertyValue"]&&null!==e["getPropertyValue"](n.name,null);(r&&s||!n.isDefaultValue(i))&&(t[n.name]=i)}}},e.prototype.valueToObj=function(e,t,n){if(null!=e)if(this.removePos(n,e),null!=n&&n.hasToUseSetValue)n.setValue(t,e,this);else if(this.isValueArray(e))this.valueToArray(e,t,n.name,n);else{var r=this.createNewObj(e,n);r.newObj&&(this.toObject(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},i=t[e.typePropertyName];return!i&&null!=n&&n.className&&(i=n.className),i=n.getClassName(i),r.newObj=i?e.metaData.createClass(i,t):null,r.error=this.checkNewObjectOnErrors(r.newObj,t,n,i),r},e.prototype.checkNewObjectOnErrors=function(t,n,r,i){var o=null;if(t){var a=e.metaData.getRequiredProperties(i);if(a)for(var s=0;s<a.length;s++)if(!n[a[s]]){o=new f(a[s],i);break}}else r.baseClassName&&(o=i?new h(r.name,r.baseClassName):new d(r.name,r.baseClassName));return o&&this.addNewError(o,n),o},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 i=0;i<e.length;i++){var o=this.createNewObj(e[i],r);o.newObj?(e[i].name&&(o.newObj.name=e[i].name),t[n].push(o.newObj),this.toObject(e[i],o.newObj)):o.error||t[n].push(e[i])}},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 u,e}(),g=m.metaData},function(e,t,n){"use strict";var r=n(41);n.d(t,"a",function(){return i}),n.d(t,"b",function(){return o});var i={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}},o=r["a"];i.locales["en"]=r["a"],i.localeNames["en"]="english"},function(e,t,n){"use strict";var r=n(2),i=n(1);n.d(t,"a",function(){return o}),n.d(t,"b",function(){return a});var o=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],o.Instance.unregisterElement(e),t&&i["a"].removeClass(e)},e.prototype.getAllTypes=function(){var e=o.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?o.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 i=0;i<n.length;i++)if(e.isTwoValueEquals(t[r],n[i]))break;if(i===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 i=[],o=[],a=0;a<t.length;a++)i.push(t[a]),o.push(n[a]);i.sort(),o.sort(),t=i,n=o}for(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&&"undefined"===typeof n)return!0;if(Array.isArray(n)&&0===n.length&&"undefined"===typeof 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 i in t)if(t.hasOwnProperty(i)){if(!n.hasOwnProperty(i))return!1;if(t[i]!==n[i]){if("object"!==typeof t[i])return!1;if(!this.isTwoValueEquals(t[i],n[i]))return!1}}for(i in n)if(n.hasOwnProperty(i)&&!t.hasOwnProperty(i))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.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"undefined"!=typeof e[n]?e[n]:t})})},function(e,t,n){"use strict";var r=n(0),i=n(13),o=n(4),a=n(1),s=n(9);n.d(t,"b",function(){return u}),n.d(t,"d",function(){return l}),n.d(t,"c",function(){return c}),n.d(t,"a",function(){return p});var u=function(){function e(){this.propertyHash={},this.isLoadingFromJsonValue=!1,this.onPropertyChanged=new p,a["c"].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 o["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){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),i=r&&!r.isCustom?r.defaultValue:null;if(!this.IsPropertyEmpty(i))return i}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 i=this.onPropChangeFunctions[r];if(i.name==e&&i.key==n)return void(i.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){var t=this.getLocalizableString(e);!t&&this.getLocale&&this.createLocalizableString(e,this)},e.prototype.createLocalizableString=function(e,t,n){void 0===n&&(n=!1);var r=new i["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 i=0;i<r.length;i++){n=r[i];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,n){void 0===t&&(t=null),void 0===n&&(n=null);var r=new Array;this.setPropertyValueCore(this.propertyHash,e,r),this.arraysInfo||(this.arraysInfo={}),this.arraysInfo[e]={onPush:t,isItemValues:!1};var i=this;return r.push=function(n){var o=Object.getPrototypeOf(r).push.call(r,n);return t&&t(n,r.length-1),i.propertyValueChanged(e,r,r),i.notifyArrayChanged(r),o},r.unshift=function(n){var o=Object.getPrototypeOf(r).unshift.call(r,n);return t&&t(n,r.length-1),i.propertyValueChanged(e,r,r),i.notifyArrayChanged(r),o},r.pop=function(){var t=Object.getPrototypeOf(r).pop.call(r);return n&&n(t),i.propertyValueChanged(e,r,r),i.notifyArrayChanged(r),t},r.splice=function(o,a){for(var s=[],u=2;u<arguments.length;u++)s[u-2]=arguments[u];o||(o=0),a||(a=0);var l,c=(l=Object.getPrototypeOf(r).splice).call.apply(l,[r,o,a].concat(s));if(s||(s=[]),n&&c)for(var p=0;p<c.length;p++)n(c[p]);if(t)for(p=0;p<s.length;p++)t(s[p],o+p);return i.propertyValueChanged(e,r,r),i.notifyArrayChanged(r),c},r},e.prototype.getItemValueType=function(){},e.prototype.setArray=function(t,n,r,i){if(Object.getPrototypeOf(t).splice.call(t,0,t.length),n){for(var o=0;o<n.length;o++){var a=n[o];r&&e.createItemValue&&(a=e.createItemValue(a,this.getItemValueType())),Object.getPrototypeOf(t).push.call(t,a),i&&i(t[o])}this.notifyArrayChanged(t)}else 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)),o["a"].isTwoValueEquals(e,t)},e.prototype.getValueInLowCase=function(e){return e&&"string"==typeof e?e.toLowerCase():e},e}(),l=function(){function e(e,t){void 0===e&&(e=null),void 0===t&&(t=null),this.text=e,this.errorOwner=t}return Object.defineProperty(e.prototype,"locText",{get:function(){return this.locTextValue||(this.locTextValue=new i["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 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}),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){while(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!isNaN(parseFloat(n))&&isFinite(n)&&(r=parseInt(n)),-1==r&&n&&n.getType&&(r=t.indexOf(n)),t.addElement(this,r),!0},t.prototype.setPage=function(e,t){var n=this.getPage(e);n!==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}(u),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(t,n){t.exports=e},function(e,t,n){"use strict";var r=n(0),i=n(6),o=(n.n(i),n(5)),a=n(4),s=n(16);n.d(t,"a",function(){return u});var u=function(e){function t(t){var n=e.call(this,t)||this;n.question=t,n._koValue=i["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 o=n;return t.surveyLoadCallback=function(){o.onSurveyLoad()},n.koTemplateName=i["pureComputed"](function(){return o.getTemplateName()}),n.koElementType=i["observable"]("survey-question"),n.question["koElementType"]=n.koElementType,n.question["koTemplateName"]=n.koTemplateName,n.question["updateQuestion"]=function(){o.updateQuestion()},n.question["koCss"]=i["pureComputed"](function(){return o.question.cssClasses}),n.question["koRootClass"]=i["pureComputed"](function(){return o.question.cssMainRoot}),t.registerFunctionOnPropertyValueChanged("visibleIndex",function(){o.onVisibleIndexChanged()}),n.koDummy=i["observable"](0),n.question["koQuestionAfterRender"]=function(e,t){o.koQuestionAfterRender(e,t)},n}return 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=o["c"].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),i["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";var r=n(0),i=n(4),o=n(1),a=n(5),s=n(2),u=n(11),l=n(32),c=n(22),p=n(13),d=n(10),h=n(14),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.isRunningValidatorsValue=!1,r.isValueChangedInSurvey=!1,r.locNotificationInData=!1,r.locOwner=null,r.id=t.getQuestionId(),r.onCreating();var i=r;r.createNewArray("validators",function(e){e.errorOwner=i});var o=r.createLocalizableString("title",r,!0);o.onGetTextCallback=function(e){var t=i.calcFullTitle(e);return i.survey?i.survey.getUpdatedQuestionTitle(this,t):t},r.locProcessedTitle=new p["a"](r,!0),r.locProcessedTitle.sharedData=o,r.createLocalizableString("description",r,!0);var u=r.createLocalizableString("commentText",r,!0);return u.onGetTextCallback=function(e){return e||s["a"].getString("otherItemText")},r.createLocalizableString("requiredErrorText",r),r.registerFunctionOnPropertyValueChanged("width",function(){i.parent&&i.parent.elementWidthChanged(i)}),r.registerFunctionOnPropertiesValueChanged(["indent","rightIndent"],function(){i.onIndentChanged()}),r.registerFunctionOnPropertiesValueChanged(["hasComment","hasOther"],function(){i.initCommentFromSurvey()}),r}return 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,"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)}var r=this.requiredText;return r&&(r=" "+r),e||(e=this.name),e+r},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["c"].ScrollElementToTop(this.id);var t=e?this.getFirstErrorInputElementId():this.getFirstInputElementId();a["c"].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["b"](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["b"](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["b"](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 i["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(){var e=this.parent;while(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.getPropertyValue("displayValue","")},enumerable:!0,configurable:!0}),t.prototype.updateDisplayValue=function(){this.isLoadingFromJson||this.setPropertyValue("displayValue",this.getDisplayValue(!0))},t.prototype.getDisplayValue=function(e){if(this.customWidget){var t=this.customWidget.getDisplayValue(this);if(t)return t}return this.getDisplayValueCore(e)},t.prototype.getDisplayValueCore=function(e){return this.value},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}),t.prototype.isAnswerCorrect=function(){return!this.isValueEmpty(this.value)&&!this.isValueEmpty(this.correctAnswer)&&this.isTwoValueEquals(this.value,this.correctAnswer,!0)},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,"validators",{get:function(){return this.getPropertyValue("validators")},set:function(e){this.setPropertyValue("validators",e)},enumerable:!0,configurable:!0}),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 o["b"]).toJsonObject(this);return n["type"]=this.getType(),n},t.prototype.hasErrors=function(e){void 0===e&&(e=!0);var t=this.checkForErrors();return e&&(this.errors=t),t.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 u["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 l["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.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.locNotificationInData)},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)},t.prototype.updateValueFromSurvey=function(e){e=i["a"].getUnbindValue(e),this.setQuestionValue(this.valueFromData(e))},t.prototype.updateCommentFromSurvey=function(e){this.questionComment=e},t.prototype.setQuestionValue=function(e){this.questionValue=e,this.fireCallback(this.valueChangedCallback)},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["c"]);o["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"},"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"}]),o["a"].addAlterNativeClassName("question","questionbase")},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}},function(e,t,n){"use strict";var r=n(0),i=n(18),o=n(38);n.d(t,"b",function(){return s}),n.d(t,"a",function(){return u});var a=function(){function e(e){this.processValue=new i["a"],this.parser=new o["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(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 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),u=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return 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),i=n(2),o=n(5);n.d(t,"d",function(){return a}),n.d(t,"b",function(){return s}),n.d(t,"e",function(){return u}),n.d(t,"l",function(){return l}),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,"a",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 r["b"](t,e),t.prototype.getErrorType=function(){return"required"},t.prototype.getDefaultText=function(){return i["a"].getString("requiredError")},t}(o["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 r["b"](t,e),t.prototype.getErrorType=function(){return"requireoneanswer"},t.prototype.getDefaultText=function(){return i["a"].getString("requiredErrorInPanel")},t}(o["d"]),u=function(e){function t(t,n){void 0===t&&(t=null),void 0===n&&(n=null);var r=e.call(this,t,n)||this;return r.text=t,r}return r["b"](t,e),t.prototype.getErrorType=function(){return"requirenumeric"},t.prototype.getDefaultText=function(){return i["a"].getString("numericError")},t}(o["d"]),l=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 r["b"](t,e),t.prototype.getErrorType=function(){return"exceedsize"},t.prototype.getDefaultText=function(){return i["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)),r=this.maxSize/Math.pow(1024,n);return r.toFixed(t[n])+" "+e[n]},t}(o["d"]),c=function(e){function t(t,n,r){void 0===r&&(r=null);var i=e.call(this,null,r)||this;return i.status=t,i.response=n,i}return r["b"](t,e),t.prototype.getErrorType=function(){return"webrequest"},t.prototype.getDefaultText=function(){return i["a"].getString("urlRequestError")["format"](this.status,this.response)},t}(o["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 r["b"](t,e),t.prototype.getErrorType=function(){return"webrequestempty"},t.prototype.getDefaultText=function(){return i["a"].getString("urlGetChoicesError")},t}(o["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 r["b"](t,e),t.prototype.getErrorType=function(){return"otherempty"},t.prototype.getDefaultText=function(){return i["a"].getString("otherRequiredError")},t}(o["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 r["b"](t,e),t.prototype.getErrorType=function(){return"uploadingfile"},t.prototype.getDefaultText=function(){return i["a"].getString("uploadingFile")},t}(o["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 r["b"](t,e),t.prototype.getErrorType=function(){return"requiredinallrowserror"},t.prototype.getDefaultText=function(){return i["a"].getString("requiredInAllRowsError")},t}(o["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 r["b"](t,e),t.prototype.getErrorType=function(){return"minrowcounterror"},t.prototype.getDefaultText=function(){return i["a"].getString("minRowCountError")["format"](this.minRowCount)},t}(o["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 r["b"](t,e),t.prototype.getErrorType=function(){return"keyduplicationerror"},t.prototype.getDefaultText=function(){return i["a"].getString("keyDuplicationError")},t}(o["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 r["b"](t,e),t.prototype.getErrorType=function(){return"custom"},t}(o["d"])},function(e,t,n){"use strict";var r=n(0),i=n(13),o=n(1),a=n(4),s=n(10),u=n(5),l=n(9);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 o=e.call(this)||this;return o.typeName=r,o.visibleIfValue="",o.isVisibleValue=!0,o.locTextValue=new i["a"](null,!0),o.locTextValue.onGetTextCallback=function(e){return e||(o.isValueItemEmpty?null:o.value.toString())},n&&(o.locText.text=n),t&&"object"===typeof t?o.setData(t):o.value=t,o.onCreating(),o}return r["b"](t,e),Object.defineProperty(t,"Separator",{get:function(){return l["a"].itemValueSeparator},set:function(e){l["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,n){for(var r=[],i=2;i<arguments.length;i++)r[i-2]=arguments[i];var o,a=(o=Array.prototype.splice).call.apply(o,[this,e,n].concat(r));r||(r=[]);for(var s=0;s<r.length;s++)r[s].locOwner=t;return a}},t.setData=function(e,n){e.length=0;for(var r=0;r<n.length;r++){var i,a=n[r];i="function"===typeof a.getType?o["a"].createClass(a.getType()):new t(null),i.setData(a),e.push(i)}},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,i,o,a){return void 0===a&&(a=!0),t.runConditionsForItemsCore(e,n,r,i,o,!0,a)},t.runEnabledConditionsForItems=function(e,n,r,i){return t.runConditionsForItemsCore(e,null,n,r,i,!1)},t.runConditionsForItemsCore=function(e,t,n,r,i,o,a){void 0===a&&(a=!0),r||(r={});for(var s=r["item"],u=r["choice"],l=!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(o);d||(d=n);var h=!0;d&&(h=d.run(r,i)),t&&h&&t.push(p);var f=o?p.isVisible:p.isEnabled;h!=f&&(l=!0,o?p.setIsVisible&&p.setIsVisible(h):p.setIsEnabled&&p.setIsEnabled(h))}return s?r["item"]=s:delete r["item"],u?r["choice"]=u:delete r["choice"],l},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(l["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=o["a"].getProperties(this.getType());t&&0!=t.length||(t=o["a"].getProperties("itemvalue"));for(var n=new o["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("undefined"!==typeof e.value){var t=e;"function"===typeof e.toJSON&&(t=e.toJSON()),(new o["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["b"](this.visibleIf)),this.visibleConditionRunner.expression=this.visibleIf,this.visibleConditionRunner):null},t.prototype.getEnableConditionRunner=function(){return this.enableIf?(this.enableConditionRunner||(this.enableConditionRunner=new s["b"](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}(u["b"]);u["b"].createItemValue=function(e,t){var n=null;return n=t?o["b"].metaData.createClass(t,{}):"function"===typeof e.getType?new c(null,void 0,e.getType()):new c(null),n.setData(e),n},u["b"].itemValueLocStrChanged=function(e){c.locStrsChanged(e)},o["d"].getItemValuesDefaultValue=function(e){var t=new Array;return c.setData(t,e||[]),t},o["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";var r=n(4),i=n(2),o=n(9);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 o["a"].defaultLocaleName},set:function(e){o["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=o["a"].defaultLocaleName);var t=this.getValue(e);return t||e!=o["a"].defaultLocaleName||(t=this.getValue(i["a"].defaultLocale)),t||e===o["a"].defaultLocaleName||(t=this.getValue(o["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=o["a"].defaultLocaleName);var t=this.getValue(e);return t||""},e.prototype.setLocaleText=function(e,t){t!=this.getLocaleText(e)&&(t&&e&&e!=o["a"].defaultLocaleName&&!this.getValue(e)&&t==this.getLocaleText(o["a"].defaultLocaleName)||(e||(e=o["a"].defaultLocaleName),delete this.htmlValues[e],t?"string"===typeof t&&(e!=o["a"].defaultLocaleName&&t==this.getLocaleText(o["a"].defaultLocaleName)?this.setLocaleText(e,null):(this.setValue(e,t),e==o["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]!=o["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]==o["a"].defaultLocaleName?this.values[e[0]]:this.values},e.prototype.setJson=function(e){if(this.sharedData)this.setJson(e);else if(this.values={},this.htmlValues={},e){if("string"===typeof e)this.setLocaleText(null,e);else for(var t in e)this.setLocaleText(t,e[t]);this.strChanged()}},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=o["a"].defaultLocaleName),this.htmlValues[t]=this.owner.getMarkdownHtml(e),!!this.htmlValues[t]},e.prototype.getHtmlValue=function(){var e=this.locale;return e||(e=o["a"].defaultLocaleName),this.htmlValues[e]},e.prototype.deleteValuesEqualsToDefault=function(e){for(var t=this.getValuesKeys(),n=0;n<t.length;n++)t[n]!=o["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";n.d(t,"b",function(){return r}),n.d(t,"a",function(){return i});var r={currentType:"",getCss:function(){var e=this.currentType?this[this.currentType]:i;return e||(e=i),e}},i={root:"sv_main sv_default_css",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",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",titleLeftRoot:"sv_qstn_left",title:"sv_q_title",number:"sv_q_num",description:"sv_q_description",comment:"",required:"",titleRequired:"",hasError:"",indent:20,footer:"sv_q_footer"},panel:{title:"sv_p_title",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_q_checkbox",label:"",materialDecorator:"checkbox-material"},checkbox:{root:"sv_qcbc sv_qcbx",item:"sv_q_checkbox",label:"sv_q_checkbox_label",itemControl:"sv_q_checkbox_control_item",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",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:"",buttonPrev:"",buttonNext:"",buttonAdd:"",buttonRemove:""},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",label:"sv_q_radiogroup_label",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",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:"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"},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"},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"]=i},function(e,t,n){"use strict";var r=n(0),i=n(7);n.d(t,"a",function(){return o}),n.d(t,"b",function(){return a});var o=function(e){function t(t){var n=e.call(this,t)||this;return n.onCreated(),n}return r["b"](t,e),t.prototype.onCreated=function(){},Object.defineProperty(t.prototype,"isOtherSelected",{get:function(){return this.question.isOtherSelected},enumerable:!0,configurable:!0}),t}(i["a"]),a=function(e){function t(t){var n=e.call(this,t)||this;return n.question["koAfterRender"]=n.koAfterRender,n}return 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}(o)},function(e,t,n){"use strict";var r=n(6);n.n(r);n.d(t,"a",function(){return i});var i=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"]()),r["unwrap"](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),i=n(6),o=(n.n(i),n(23)),a=n(5),s=n(24),u=n(14),l=n(36),c=n(28),p=n(13),d=n(12),h=n(16);n.d(t,"a",function(){return f}),n.d(t,"b",function(){return m}),c["a"].Instance.onCustomWidgetAdded.add(function(e){e.widgetJson.isDefaultRender||(e.htmlTemplate||(e.htmlTemplate="<div>'htmlTemplate' attribute is missed.</div>"),(new l["a"]).replaceText(e.htmlTemplate,"widget",e.name))});var f=function(e){function t(t,n,r){void 0===t&&(t=null),void 0===n&&(n=null),void 0===r&&(r=null);var o=e.call(this,t)||this;if(o.onRendered=new a["a"],o.isFirstRender=!0,o.mouseDownPage=null,new h["a"](o),"undefined"===typeof i)throw new Error("knockoutjs library is not loaded.");return r&&(o.css=r),n&&(o.renderedElement=n),o.render(n),o}return r["b"](t,e),Object.defineProperty(t,"cssType",{get:function(){return u["b"].currentType},set:function(e){u["b"].currentType=e},enumerable:!0,configurable:!0}),t.prototype.getDataValueCore=function(e,t){return void 0===e[t]&&(e[t]=i["observable"]()),i["unwrap"](e[t])},t.prototype.setDataValueCore=function(e,t,n){i["isWriteableObservable"](e[t])?e[t](n):e[t]=i["observable"](n)},t.prototype.deleteDataValueCore=function(e,t){i["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=u["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 u["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,e&&(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["b"](e)},t.prototype.getHtmlTemplate=function(){return l["b"]},t.prototype.onBeforeCreating=function(){var e=this,t=this;this.dummyObservable=i["observable"](0),this.koCurrentPage=i["observable"](this.currentPage),this.koIsFirstPage=i["computed"](function(){return e.dummyObservable(),e.isFirstPage}),this.koIsLastPage=i["computed"](function(){return e.dummyObservable(),e.isLastPage}),this.koProgressText=i["computed"](function(){return e.dummyObservable(),e.progressText}),this.koProgress=i["computed"](function(){return e.dummyObservable(),e.getProgress()}),this.koState=i["observable"](this.state),this.koCompletedState=i["observable"](""),this.koCompletedStateText=i["observable"](""),this.koCompletedStateCss=i["observable"](""),this.koTimerInfoText=i["observable"](this.timerInfoText),this.koAfterRenderPage=function(e,n){var r=a["c"].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(),i["cleanNode"](this.renderedElement),this.isFirstRender||this.updateCurrentPageQuestions(),this.isFirstRender=!1,i["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}(o["a"]);p["a"].prototype["onCreating"]=function(){var e=this;this.koReRender=i["observable"](0),Object.defineProperty(e,"koHasHtml",{get:function(){return e.koReRender(),e.hasHtml}}),this.koRenderedHtml=i["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)},i["components"].register("survey",{viewModel:{createViewModel:function(e,t){var n=i["unwrap"](e.survey);return n.render(),e.survey}},template:l["b"]}),i["bindingHandlers"]["surveyProp"]={update:function(e,t,n){var r=i["utils"].unwrapObservable(t())||{};for(var o in r)if("string"==typeof o){var a=i["utils"].unwrapObservable(r[o]);e[o]=a}}},o["a"].platform="knockout";var m=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 i,a=r.getElementById("survey-content-"+t);a||(a=document.createElement("div"),a.id="survey-content-"+o["a"].platform,a.style.display="none",a.innerHTML=l["b"],document.body.appendChild(a));for(var s=0;s<a.children.length;s++)if(a.children[s].id===n){i=a.children[s];break}return i||(i=r.getElementById(n)),i?new e.templateSources.domElement(i):(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(4);n.d(t,"a",function(){return i});var i=function(){function e(){this.values=null,this.properties=null}return e.prototype.getFirstName=function(e,t){if(void 0===t&&(t=null),!e)return e;var n="";if(t&&(n=this.getFirstPropertyName(e,t),n))return n;for(var r=0;r<e.length;r++){var i=e[r];if("."==i||"["==i)break;n+=i}return n},e.prototype.hasValue=function(e,t){void 0===t&&(t=null),t||(t=this.values);var n=this.getValueCore(e,t);return n.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){void 0===t&&(t=null),t||(t=this.values);var n=this.getValueCore(e,t);return n.value},e.prototype.getValueCore=function(e,t){var n={hasValue:!1,value:null},i=t;if(!i&&0!==i&&!1!==i)return n;e&&e.lastIndexOf(".length")>-1&&e.lastIndexOf(".length")===e.length-".length".length&&(n.value=0,n.hasValue=!0);var o=this.getNonNestedObject(i,e);return o?(n.value=o.text?this.getObjectValue(o.value,o.text):o.value,n.hasValue=!r["a"].isValueEmpty(n.value),n):n},e.prototype.getNonNestedObject=function(e,t){var n=this.getFirstPropertyName(t,e);while(t!=n&&e){var i="["==t[0];if(i){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;var n=1,r="";while(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 i in t){var o=i[0];if(o===r||o===n){var a=i.toLowerCase();if(a==e)return i;if(e.length<=a.length)continue;var s=e[a.length];if("."!=s&&"["!=s)continue;if(a==e.substr(0,a.length))return i}}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(0),i=n(1),o=n(5),a=n(10),s=n(3),u=n(14),l=n(11),c=n(9);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});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 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}(o["b"]),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 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 u["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 i=r.getPanel();if(i){var o=i.getElementByName(e);if(o)return o}}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 i=r.getValueName();if(e[i]=r.value,this.data){var o=this.data.getComment(i);o&&(e[i+c["a"].commentPrefix]=o)}}}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],i=this.data.getComment(r.getValueName());i&&(e[r.getValueName()]=i)}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){void 0===e&&(e=!0),void 0===t&&(t=!1);var n={fireCallback:e,focuseOnFirstError:t,firstErrorQuestion:null,result:!1};return 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 l["b"](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 if("paneldynamic"===n.getType())n.panels.forEach(function(t){t.hasErrorsCore(e)});else{var i=n;if(i.isReadOnly)continue;i.hasErrors(e.fireCallback)&&(e.focuseOnFirstError&&null==e.firstErrorQuestion&&(e.firstErrorQuestion=i),e.result=!0)}this.hasErrorsInPanels(e)},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 i=r.getFirstQuestionToFocus(e);if(i)return i}else{var o=r;if(o.hasInput&&(!e||o.currentErrorCount>0))return o}}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,i){for(var o=0;o<t.length;o++){var a=t[o];n&&!a.visible||((i&&a.isPanel||!i&&!a.isPanel)&&e.push(a),a.isPanel?a.addElementsToListCore(e,a.elements,n,r,i):r&&this.addElementsToListCore(e,a.getElementsInDesign(!1),n,r,i))}},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(){var e=this;while(e.parent)e=e.parent;return e},enumerable:!0,configurable:!0}),t.prototype.childVisibilityChanged=function(){var e=this.getIsPageVisible(null),t=this.getPropertyValue("isVisible",!0);e!==t&&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 i=this;e.registerFunctionOnPropertiesValueChanged(["visible","isVisible"],function(){i.onElementVisibilityChanged(e)},this.id),e.registerFunctionOnPropertyValueChanged("startWithNewLine",function(){i.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,i=r?this.createRow():e[e.length-1];r&&e.push(i),i.addElement(n)}for(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}var n=e;for(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["a"].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["b"](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["b"](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(r=0;r<this.elements.length;r++){var i=this.elements[r].getPanel();if(i){var o=i.dragDropFindRow(t);if(o)return o}}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 i=-1;n==t&&(i=t.elements.indexOf(e.target)),e.isBottom&&r++;var o=this.findRowByElement(e.source);return(o!=t||o.elements.indexOf(e.source)!=r)&&(r!=i&&(i>-1&&(t.elements.splice(i,1),i<r&&r--),t.elements.splice(r,0,e.target),t.updateVisible(),i<0))},t.prototype.dragDropAddTargetToNewRow=function(e,t,n){var r=t.panel.createRow();r.addElement(e.target);var i=t.index;if(e.isBottom&&i++,n&&n.panel==r.panel&&n.index==i)return!1;var o=this.findRowByElement(e.source);return(!o||o.panel!=r.panel||1!=o.elements.length||o.index!=i)&&(t.panel.rows.splice(i,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){var r=e.parent.elements.indexOf(e);n>r&&n--,this.removeElement(e),this.addElement(t,n)},t.panelCounter=100,t}(o["c"]),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 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);i["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}),i["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),i=n(1),o=n(8),a=n(12),s=n(4),u=n(2),l=n(11),c=n(37),p=n(10);n.d(t,"b",function(){return d}),n.d(t,"a",function(){return h});var d=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.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 i=n.createLocalizableString("otherText",n,!0);return n.createLocalizableString("otherErrorText",n,!0),n.otherItemValue.locOwner=n,n.otherItemValue.setLocText(i),i.onGetTextCallback=function(e){return e||u["a"].getString("otherItemText")},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 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();var n=a["a"].runEnabledConditionsForItems(this.activeChoices,this.conditionChoicesEnableIfRunner,e,t);n&&this.clearDisabledValues()},t.prototype.setConditionalChoicesRunner=function(){this.choicesVisibleIf?(this.conditionChoicesVisibleIfRunner||(this.conditionChoicesVisibleIfRunner=new p["b"](this.choicesVisibleIf)),this.conditionChoicesVisibleIfRunner.expression=this.choicesVisibleIf):this.conditionChoicesVisibleIfRunner=null},t.prototype.setConditionalEnableChoicesRunner=function(){this.choicesEnableIf?(this.conditionChoicesEnableIfRunner||(this.conditionChoicesEnableIfRunner=new p["b"](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(),e!=this.choicesOrder&&(this.setPropertyValue("choicesOrder",e),this.onVisibleChoicesChanged())},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"otherText",{get:function(){return this.getLocalizableStringText("otherText",u["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",u["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 i=Array.isArray(this.value)?this.value:[this.value];r.isNode=!0,r.data=i.map(function(e,r){var i=a["a"].getItemByValue(n.visibleChoices,e),o={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 i&&(t.calculations||[]).forEach(function(e){o[e.propertyName]=i[e.propertyName]}),o})}return r},t.prototype.getDisplayValueCore=function(e){return this.isEmpty()?"":this.getChoicesDisplayValue(this.visibleChoices,this.value)},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 l["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.onLoadChoicesFromUrl=function(e){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 i=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 o=this.updateCachedValueForUrlRequests(i,n);o&&(this.locNotificationInData=!0,this.value=void 0,this.locNotificationInData=!1,this.value=o.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}var i=!t||!this.hasUnknownValue(e);return{value:e,isExists:i}},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 i=this.updateCachedValueForUrlRequests(e[r],t);if(i&&!this.isValueEmpty(i.value)){var o=i.value,s=a["a"].getItemByValue(t,i.value);s&&(o=s.value),n.push(o)}}return{value:n}}var u=e.isExists&&this.hasUnknownValue(e.value)?null:e.value;s=a["a"].getItemByValue(t,u);return s&&(u=s.value),{value:u}},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},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=[],i=n;i<this.visibleChoices.length;i+=t)r.push(this.visibleChoices[i]);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}(o["a"]),h=function(e){function t(t){var n=e.call(this,t)||this;return n.name=t,n}return 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}(d);i["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 u["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"),i["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";var r=n(0),i=n(1),o=n(42),a=n(4),s=n(5),u=n(22),l=n(18),c=n(2),p=n(3),d=n(13),h=n(30),f=n(26),m=n(9);function g(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)}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,r){g(e,t,n,r),e.locOptionsCaption.isEmpty&&(e.optionsCaption=n.optionsCaption)}},checkbox:{properties:["choices","choicesOrder","choicesByUrl","otherText","choicesVisibleIf"],onCellQuestionUpdate:function(e,t,n,r){g(e,t,n,r),e.colCount=t.colCount>-1?t.colCount:n.columnColCount}},radiogroup:{properties:["choices","choicesOrder","choicesByUrl","otherText","choicesVisibleIf"],onCellQuestionUpdate:function(e,t,n,r){g(e,t,n,r),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 i=r;return r.createLocalizableString("totalFormat",r),r.registerFunctionOnPropertiesValueChanged(["totalType","totalExpression","totalFormat","totalCurrency","totalDisplayStyle","totalMaximumFractionDigits","totalMinimumFractionDigits"],function(){i.doColumnPropertiesChanged()}),r.updateTemplateQuestion(),r.name=t,n&&(r.title=n),r}return r["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(h["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,"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():m["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 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 i=n[r];this.addProperty(t,i.name,!1),i.serializationProperty&&this.addProperty(t,i.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}(s["b"]),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["c"].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 i=e.call(this,t,n,r)||this;return i.column=t,i.row=n,i.data=r,i.updateCellQuestion(),i}return r["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 f["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,i=this.getValue(t),o=this.getQuestionByColumnName(t),s=this.data.onRowChanging(this,t,r);o&&!a["a"].isTwoValueEquals(s,i)?this.getQuestionByColumnName(t).value=s:(this.data.onRowChanged(this,t,r,null==n&&!o),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+m["a"].commentPrefix);return t||""},e.prototype.setComment=function(e,t){this.setValue(e+m["a"].commentPrefix,t)},Object.defineProperty(e.prototype,"isEmpty",{get:function(){var e=this.value;if(a["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(),a["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 i=this.createCell(r);this.cells.push(i),e&&!a["a"].isValueEmpty(e[r.name])&&(i.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 l["a"]).getFirstName(t.name);if(t.isExists=n==e.RowVariableName,t.canProcess=t.isExists,t.isExists){var r={row:this.value};t.value=(new l["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 r["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,i=0;do{r=a["a"].getUnbindValue(this.value),e.prototype.runCondition.call(this,t,n),i++}while(!a["a"].isTwoValueEquals(r,this.value)&&i<3)},t.prototype.updateCellOnColumnChanged=function(e){e.updateCellQuestion()},t}(C),P=function(){function e(){this.minWidth="",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 r["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,"hasRemoveRow",{get:function(){return this.hasRemoveRowValue},enumerable:!0,configurable:!0}),t.prototype.isRequireReset=function(){return this.hasRemoveRow!=this.matrix.canRemoveRow||!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.hasRemoveRowValue=this.matrix.canRemoveRow;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{var i=this.matrix.visibleRows;for(n=0;n<i.length;n++)this.headerRow.cells.push(this.createTextCell(i[n].locText))}this.hasRemoveRow&&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.createHeaderCell(null));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.hasRemoveRow&&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.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.hasRemoveRow&&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.hasRemoveRow&&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,i=0;i<r.length;i++)n.cells.push(this.createEditCell(r[i].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},t.prototype.createRemoveRowCell=function(e){var t=new P;return t.row=e,t.isRemoveRow=!0,t},t.prototype.createTextCell=function(e){var t=new P;return t.locTitle=e||new d["a"](this.matrix,!1),t},t}(s["b"]),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 r["b"](t,e),Object.defineProperty(t,"defaultCellType",{get:function(){return m["a"].matrixDefaultCellType},set:function(e){m["a"].matrixDefaultCellType=e},enumerable:!0,configurable:!0}),t.addDefaultColumns=function(e){for(var t=p["a"].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}),Object.defineProperty(t.prototype,"canRemoveRow",{get:function(){return!1},enumerable:!0,configurable:!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",m["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="",i=n.length-1;i>=0;i--){if("."==n[i])break;r=n[i]+r}var o=this.getColumnByName(r);if(!o)return null;var a=o.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,i=0;i<r.length;i++)r[i].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,i=0;i<r.length;i++){var o=r[i].cells[e.index];if(o&&o.question&&o.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(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",c["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;if(this.isLoadingFromJson)return null;if(!this.generatedVisibleRows){if(this.generatedVisibleRows=this.generateRows(),this.generatedVisibleRows.forEach(function(t){return e.onMatrixRowCreated(t)}),this.data){var t={survey:this.survey};this.runCellsCondition(this.data.getAllValues(),t)}this.updateValueOnRowsGeneration(this.generatedVisibleRows)}return this.generatedVisibleRows},t.prototype.updateValueOnRowsGeneration=function(e){for(var t=this.createNewValue(!0),n=this.createNewValue(),r=0;r<e.length;r++){var i=e[r],o=this.getRowValue(r),a=i.value;this.isTwoValueEquals(o,a)||(n=this.getNewValueOnRowChanged(i,"",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),this.onSetQuestionValue()},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 i=n[r].question;if(i&&(!i.supportGoNextPageAutomatic()||!i.value))return!1}}return!0},t.prototype.hasErrors=function(t){void 0===t&&(t=!0);var n=this.hasErrorInColumns(t);return e.prototype.hasErrors.call(this,t)||n},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 i=n[r].question;if(i&&i.isRunningValidators)return!0}}return!1},t.prototype.getAllErrors=function(){for(var t=e.prototype.getAllErrors.call(this),n=this.generatedVisibleRows,r=0;r<n.length;r++)for(var i=n[r],o=0;o<i.cells.length;o++){var a=i.cells[o].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 i=this.generatedVisibleRows[r].cells;if(i)for(var o=0;o<i.length;o++)if(i[o]){var a=i[o].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);this.isDoingonAnyValueChanged=!1}},t.prototype.isObject=function(e){return null!==e&&"object"===typeof e},t.prototype.getOnCellValueChangedOptions=function(e,t,n){var r=this,i=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:i}},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={row:e,columnName:t,rowValue:n,value:n[t]};return this.survey.matrixCellValidate(this,r)}},t.prototype.onRowChanging=function(e,t,n){if(!this.survey)return n?n[t]:null;var r=this.getOnCellValueChangedOptions(e,t,n),i=this.getRowValueCore(e,this.createNewValue(),!0);return r.oldValue=i?i[t]:null,this.survey.matrixCellValueChanging(this,r),r.value},t.prototype.onRowChanged=function(e,t,n,r){var i=this.createNewValue(!0),o=this.getNewValueOnRowChanged(e,t,n,r,this.createNewValue());this.isTwoValueEquals(i,o.value)||(this.isRowChanging=!0,this.setNewValue(o.value),this.isRowChanging=!1,t&&this.onCellValueChanged(e,t,o.rowValue))},t.prototype.getNewValueOnRowChanged=function(e,t,n,r,i){var o=this.getRowValueCore(e,i,!0);r&&delete o[t];for(var a=0;a<e.cells.length;a++){var s=e.cells[a].question.getValueName();delete o[s]}if(n)for(var s in n=JSON.parse(JSON.stringify(n)),n)this.isValueEmpty(n[s])||(o[s]=n[s]);return this.isObject(o)&&0===Object.keys(o).length&&(i=this.deleteRowValue(i,e)),{value:i,rowValue:o}},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()+m["a"].matrixTotalValuePostFix,this.totalValue,!0)},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}(o["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","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(h["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 i=function(){function e(){}return e}(),o=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 i=this.getItems(e),a=i.length-1;a>=0;a--){var s=i[a],u=this.getName(e.substring(s.start+1,s.end));if(u){var l=new o(u,t);if(this.onProcess(l),l.isExists){r["a"].isValueEmpty(l.value)&&(this.hasAllValuesOnLastRunValue=!1);var c=r["a"].isValueEmpty(l.value)?"":l.value;n&&(c=encodeURIComponent(c)),e=e.substr(0,s.start)+c+e.substr(s.end+1)}else l.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,o="",a=0;a<n;a++)if(o=e[a],"{"==o&&(r=a),"}"==o){if(r>-1){var s=new i;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),i=n(4),o=n(1),a=n(5),s=n(27),u=n(22),l=n(18),c=n(39),p=n(2),d=n(11),h=n(13),f=n(58),m=n(60),g=n(10),y=n(9);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.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.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.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 i=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 u["a"],r.textPreProcessor.onProcess=function(e){i.getProcessedTextValue(e)},r.pagesValue=r.createNewArray("pages",function(e){i.doOnPageAdded(e)}),r.triggersValue=r.createNewArray("triggers",function(e){e.setOwner(i)}),r.calculatedValuesValue=r.createNewArray("calculatedValues",function(e){e.setOwner(i)}),r.completedHtmlOnConditionValue=r.createNewArray("completedHtmlOnCondition",function(e){e.locOwner=i}),r.registerFunctionOnPropertyValueChanged("questionTitleTemplate",function(){i.questionTitleTemplateCache=void 0}),r.registerFunctionOnPropertyValueChanged("firstPageIsStarted",function(){i.onFirstPageIsStartedChanged()}),r.registerFunctionOnPropertyValueChanged("isSinglePage",function(){i.onIsSinglePageChanged()}),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 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}),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,"checkErrorsMode",{get:function(){return this.getPropertyValue("checkErrorsMode")},set:function(e){this.setPropertyValue("checkErrorsMode",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["a"](e).run(t,n)},t.prototype.runCondition=function(e){if(!e)return!1;var t=this.getFilteredValues(),n=this.getFilteredProperties();return new g["b"](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}")){var t=e.indexOf("{no}"),n=t,r=t+4;while(n>=0&&"}"!==e[n])n--;while(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,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,"mode",{get:function(){return this.getPropertyValue("mode")},set:function(e){e=e.toLowerCase(),e!=this.mode&&("edit"!=e&&"display"!=e||this.setPropertyValue("mode",e))},enumerable:!0,configurable:!0}),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 i=this.getDataValueCore(this.valuesHash,r);void 0!==i&&(e[r]=i)}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){e=this.getAllQuestions();var 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,"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){return!(this.ignoreValidation||!this.isEditMode)&&(!!this.isCurrentPageHasErrors||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)this.clearAsyncValidationQuesitons();else{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.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 i=e[r];if(i.errors.length>0){t.push(i);for(var o=0;o<i.errors.length;o++)n.push(i.errors[o])}}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),i=this.pages.length-n;this.pages.splice(n,i,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],i=o["a"].createClass("panel");t.addPanel(i);var a=(new o["b"]).toJsonObject(r);(new o["b"]).toObject(a,i)}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 i=this.getValue(r.getValueName());this.isValueEmpty(i)||(t.data[r.getValueName()]=i)}}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 i=t.getQuestionByName(r);i&&i["errors"]&&(n=!0,i["addError"](new d["a"](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){e=this.getAllQuestions();var n=this.getCorrectedAnswerCount();return this.getLocString("questionsProgressText")["format"](n,e.length)}var r=this.visiblePages,i=r.indexOf(this.currentPage)+1;return this.getLocString("progressText")["format"](i,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 i=0;i<r.length;i++){var o=r[i].getQuestionFromArray(t,n);if(o)return o}return null}},t.prototype.matrixRowRemoved=function(e,t,n){this.onMatrixRowRemoved.fire(this,{question:e,rowIndex:t,row:n})},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["a"](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,i=[];t.forEach(function(e){n&&n("uploading",e),r.createSurveyService().sendFile(r.surveyPostId,e,function(r,o){r?(i.push({content:o,file:e}),i.length===t.length&&n&&n("success",i)):n&&n("error",{response:o,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 i=this.getQuestionByName(e[r],t);i&&n.push(i)}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 a=r[o];a.isVisible&&a.hasInput&&!i["a"].isValueEmpty(a.correctAnswer)&&e.push(a)}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 i=n[r].name;if(t&&(i=i.toLowerCase()),i==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 i=n[r];if("onValueChanged"==this.checkErrorsMode){var o=i.errors.length;i.hasErrors(!0),(o>0||i.errors.length>0)&&this.fireValidatedErrorsOnCurrentPage()}i.onSurveyValueChanged(t),this.onValueChanged.fire(this,{name:e,question:i,value:t})}else this.onValueChanged.fire(this,{name:e,question:null,value:t});this.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],i=r.getValueName();t[i]=this.getValue(i)}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(),i=0;i<this.triggers.length;i++){var o=this.triggers[i];o.isOnNextPage==t&&o.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(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,i){n.onGetResult.fire(n,{success:e,data:t,dataList:r,response:i})})},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,i){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{var n="on"==this.showQuestionNumbers?0:-1;for(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 o["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){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.getQuizQuestions().length);var n=(new l["a"]).getFirstName(t,this.data),r=this.getVariable(t);if(void 0!==r)return e.isExists=!0,void(e.value=r);n&&(n=n.toLowerCase());var i=this.getQuestionByValueName(n,!0);if(i){e.isExists=!0,t=i.getValueName()+t.substr(n.length),t=t.toLocaleLowerCase();var o={};return o[n]=e.returnDisplayValue?i.getDisplayValue(!1):i.value,void(e.value=(new l["a"]).getValue(t,o))}var a=this.getValue(e.name);void 0!==a&&(e.isExists=!0,e.value=a)}else{e.isExists=!0;var s=this.currentPage;e.value=null!=s?this.visiblePages.indexOf(s)+1:0}},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){return e?(e=e.toLowerCase(),this.variablesHash[e]):null},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 i["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 i={};i[e]=r,this.checkTriggers(i,!1),this.runConditions(),this.notifyQuestionOnValueChanged(e,r),this.tryGoNextPageAutomatic(e)}},t.prototype.isValueEqual=function(e,t){""!==t&&void 0!==t||(t=null);var n=this.getValue(e);return""!==n&&void 0!==n||(n=null),null===t||null===n?t===n:this.isTwoValueEquals(t,n)},t.prototype.doOnPageAdded=function(e){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;var i=1;while(n[t+i])i++;return t+i},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.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){if(t||(t=""),!i["a"].isTwoValueEquals(t,this.getComment(e))){var n=e+this.commentPrefix;i["a"].isValueEmpty(t)?this.deleteDataValueCore(this.valuesHash,n):this.setDataValueCore(this.valuesHash,n,t);var r=this.getQuestionsByValueNameCore(e);if(r)for(var o=0;o<r.length;o++)r[o].updateCommentFromSurvey(t);this.tryGoNextPageAutomatic(e);var a=this.getQuestionByName(e);a&&this.onValueChanged.fire(this,{name:n,question:a,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){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 i=r.indexOf(t);i>-1&&r.splice(i,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["a"](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["a"](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(){for(var e=this.getQuizQuestions(),t=0,n={question:null,result:!1},r=0;r<e.length;r++)n.question=e[r],n.result=n.question.isAnswerCorrect(),this.onIsAnswerCorrect.fire(this,n),n.result&&t++;return t},t.prototype.getInCorrectedAnswerCount=function(){var e=this.getQuizQuestions();return e.length-this.getCorrectedAnswerCount()},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),i=this.getDisplayTime(r),o=this.getDisplayTime(this.maxTimeToFinish);if("page"==this.showTimerPanelMode)return this.getTimerInfoPageText(e,t,i);if("survey"==this.showTimerPanelMode)return this.getTimerInfoSurveyText(n,o);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,i,n,o);var a=this.getTimerInfoPageText(e,t,i),s=this.getTimerInfoSurveyText(n,o);return a+" "+s}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 l["a"],i=r.getFirstName(e);if(i==e)this.setValue(e,t);else{if(!this.getValue(i))return;var o=this.getUnbindValue(this.getFilteredValues());r.setValue(o,e,t),this.setValue(i,o[i])}}},t.prototype.copyTriggerValue=function(e,t){if(e&&t){var n=new l["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["b"]);o["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:"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},{name:"maxOthersLength:number",default:0},"goNextPageAutomatic:boolean",{name:"clearInvisibleValues",default:"onComplete",choices:["none","onComplete","onHidden"]},{name:"checkErrorsMode",default:"onNextPage",choices:["onNextPage","onValueChanged"]},{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},{name:"maxTimeToFinishPage:number",default: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),i=n(6),o=(n.n(i),n(27)),a=n(19),s=n(1),u=n(5),l=n(3),c=n(16);n.d(t,"a",function(){return p}),n.d(t,"c",function(){return h}),n.d(t,"b",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 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],i=r.nodeName;"#text"==i&&(r.data="")}},t.prototype.elementAfterRender=function(e,t){if(this.panel&&this.panel.survey){var n=u["c"].GetFirstNonTextElement(e);if(n){var r=t;r.isPanel?this.panel.survey.afterRenderPanel(t,n):this.panel.survey.afterRenderQuestion(t,n)}}},t}(a["d"]),d=function(e){function t(t){var n=e.call(this,t)||this;return n.panel=t,n}return 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=i["observable"]("survey-panel"),n.koCss=i["pureComputed"](function(){return r.cssClasses}),n.koIsCollapsed=i["observable"](n.isCollapsed),n.koIsExpanded=i["observable"](n.isExpanded),n.stateChangedCallback=function(){r.onStateChanged()},n.doExpand=function(){r.changeExpanded()},n}return 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+=" sv_p_title_expandable"),e},t.prototype.endLoadingFromJson=function(){e.prototype.endLoadingFromJson.call(this),this.onStateChanged()},t}(a["c"]),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 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}(o["a"]);s["a"].overrideClassCreator("panel",function(){return new h}),s["a"].overrideClassCreator("page",function(){return new f}),l["b"].Instance.registerElement("panel",function(e){return new h(e)})},function(e,t,n){"use strict";var r=n(0),i=n(4),o=n(26);n.d(t,"g",function(){return a}),n.d(t,"f",function(){return s}),n.d(t,"b",function(){return u}),n.d(t,"e",function(){return l}),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.hasFunction=function(){return!1},e.prototype.hasAsyncFunction=function(){return!1},e.prototype.addToAsyncList=function(e){},e}(),s=function(e){function t(t,n,r,i){void 0===n&&(n=null),void 0===r&&(r=null),void 0===i&&(i=!1);var o=e.call(this)||this;return o.operatorName=t,o.left=n,o.right=r,o.consumer=i?h.binaryFunctions["arithmeticOp"](t):h.binaryFunctions[t],null==o.consumer&&h.throwInvalidOperatorError(t),o}return r["b"](t,e),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(){return"("+h.safeToString(this.left)+" "+h.operatorToString(this.operatorName)+" "+h.safeToString(this.right)+")"},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),u=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 r["b"](t,e),t.prototype.toString=function(){return h.operatorToString(this.operatorName)+this.expression.toString()},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),l=function(e){function t(t){var n=e.call(this)||this;return n.values=t,n}return r["b"](t,e),t.prototype.toString=function(){return"["+this.values.map(function(e){return e.toString()}).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 r["b"](t,e),t.prototype.toString=function(){return this.value.toString()},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():this.isNumericValue(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.prototype.isNumericValue=function(e){if(e&&(e.indexOf("-")>-1||e.indexOf("+")>1||e.indexOf("*")>-1||e.indexOf("^")>-1||e.indexOf("/")>-1||e.indexOf("%")>-1))return!1;var t=Number(e);return!isNaN(t)&&isFinite(t)},t}(a),p=function(e){function t(t){var n=e.call(this,t)||this;return n.variableName=t,n}return r["b"](t,e),t.prototype.toString=function(){return"{"+this.variableName+"}"},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 l([])),r}return r["b"](t,e),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 o["a"].Instance.run(this.origionalValue,this.parameters.evaluate(e),e.properties)},t.prototype.toString=function(){return this.origionalValue+"("+this.parameters.toString()+")"},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 o["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){return null==e?"":e.toString()},e.toOperandString=function(t){return!t||e.isNumeric(t)||e.isBooleanValue(t)||(t="'"+t+"'"),t},e.isNumeric=function(e){if(e&&(e.indexOf("-")>-1||e.indexOf("+")>1||e.indexOf("*")>-1||e.indexOf("^")>-1||e.indexOf("/")>-1||e.indexOf("%")>-1))return!1;var t=Number(e);return!isNaN(t)&&isFinite(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 i["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){i["a"].isValueEmpty(n)&&(n=0),i["a"].isValueEmpty(r)&&(r=0);var o=e.binaryFunctions[t];return null==o?null:o.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 i["a"].isTwoValueEquals(e,t,!0)},notequal:function(e,t){return!i["a"].isTwoValueEquals(e,t,!0)},contains:function(t,n){return e.binaryFunctions.containsCore(t,n,!0)},notcontains:function(t,n){return!t&&!i["a"].isValueEmpty(n)||e.binaryFunctions.containsCore(t,n,!1)},anyof:function(t,n){if(!t&&i["a"].isValueEmpty(n))return!0;if(!t||!Array.isArray(t)||0===t.length)return!1;if(i["a"].isValueEmpty(n))return!0;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&&!i["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 o=Array.isArray(t)?t:[t],a=0;a<o.length;a++){var s=0;for(t=o[a];s<e.length;s++)if(i["a"].isTwoValueEquals(e[s],t))break;if(s==e.length)return!n}return n}},e.signs={less:"<",lessorequal:"<=",greater:">",greaterorequal:">=",equal:"==",notequal:"!=",plus:"+",minus:"-",mul:"*",div:"/",and:"&&",or:"||",power:"^",mod:"%",negate:"!"},e}()},function(e,t,n){"use strict";n.d(t,"a",function(){return r});var r=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 i={func:r};if(n)for(var o in n)i[o]=n[o];return i.func(t)},e.Instance=new e,e}();function i(e,t){if(e)if(Array.isArray(e))for(var n=0;n<e.length;n++)i(e[n],t);else t.push(e)}function o(e){var t=[];i(e,t);for(var n=0,r=0;r<t.length;r++)n+=t[r];return n}function a(e){var t=[];return i(e,t),t.length}function s(e){var t=[];i(e,t);for(var n=0,r=0;r<t.length;r++)n+=t[r];return t.length>0?n/t.length:0}function u(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=u(e);if(n){var r=void 0;if(Array.isArray(n.data))for(var i=0;i<n.data.length;i++){var o=n.data[i];o&&o[n.name]&&(r=t(r,o[n.name]))}else for(var a in n.data){o=n.data[a];o&&o[n.name]&&(r=t(r,o[n.name]))}return r}}function c(e){var t=l(e,function(e,t){return void 0==e&&(e=0),+e+ +t});return void 0!==t?t:0}function p(e){return l(e,function(e,t){return void 0==e?t:e<t?e:t})}function d(e){return l(e,function(e,t){return void 0==e?t:e>t?e:t})}function h(e){var t=l(e,function(e,t){return void 0==e&&(e=0),e+1});return void 0!==t?t:0}function f(e){var t=h(e);return 0==t?0:c(e)/t}function m(e){return e||3===e.length?e[0]?e[1]:e[2]:""}function g(e){return!e&&e.length<1?null:e[0]?new Date(e[0]):null}function y(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 v(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,i=0;i<r.length;i++)if(r[i].hasErrors(!1))return!1;return!0}function b(){return this.survey&&this.survey.isDisplayMode}function x(){return new Date}r.Instance.register("sum",o),r.Instance.register("count",a),r.Instance.register("avg",s),r.Instance.register("sumInArray",c),r.Instance.register("minInArray",p),r.Instance.register("maxInArray",d),r.Instance.register("countInArray",h),r.Instance.register("avgInArray",f),r.Instance.register("iif",m),r.Instance.register("getDate",g),r.Instance.register("age",y),r.Instance.register("isContainerReady",v),r.Instance.register("isDisplayMode",b),r.Instance.register("currentDate",x)},function(e,t,n){"use strict";var r=n(0),i=n(1),o=n(4),a=n(5),s=n(19);n.d(t,"a",function(){return u});var u=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 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=o["a"].randomizeArray(e);this.elements.splice(0,this.elements.length);for(n=0;n<r.length;n++)this.elements.push(r[n]);this.isRandomizing=!1}},Object.defineProperty(t.prototype,"areQuestionsRandomized",{get:function(){var e="default"==this.questionsOrder&&this.survey?this.survey.questionsOrder:this.questionsOrder;return"random"==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.scrollToTop=function(){a["c"].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["a"](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 i=e.parent;if(i){var o=i.elements,a=o.indexOf(e);a>-1&&(t=e,n=e,this.dragDropInfo.isBottom?t=a<o.length-1?o[a+1]:null:n=a>0?o[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 i=this.dragDropInfo.source,o=!1;i&&i.parent&&(o=n.panel==i.parent,o?(n.panel.dragDropMoveElement(i,t,r),r=-1):i.parent.removeElement(i)),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],i=r.elements[r.elements.length-1];return n+t.panel.elements.indexOf(i)+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 i=e.parent,o=i.elements.indexOf(e),a=i.elements.indexOf(t);return a<o&&!r&&a--,r&&a++,o<a?a-o>1:o-a>0},t.prototype.dragDropIsSameElement=function(e,t){return e==t||e.name==t.name},t}(s["b"]);i["a"].addClass("page",[{name:"navigationButtonsVisibility",default:"inherit",choices:["inherit","show","hide"]},{name:"questionsOrder",default:"default",choices:["default","initial","random"]},{name:"maxTimeToFinish:number",default:0}],function(){return new u},"panelbase")},function(e,t,n){"use strict";var r=n(5);n.d(t,"b",function(){return i}),n.d(t,"a",function(){return o});var i=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){return this.widgetJson.getDisplayValue?this.widgetJson.getDisplayValue(e):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}(),o=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 i(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),i=n(1),o=n(3),a=n(20),s=n(2),u=n(12);n.d(t,"a",function(){return l});var l=function(e){function t(t){var n=e.call(this,t)||this;n.name=t,n.createLocalizableString("optionsCaption",n);var r=n;return n.registerFunctionOnPropertiesValueChanged(["choicesMin","choicesMax","choicesStep"],function(){r.onVisibleChoicesChanged()}),n}return 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:u["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]);for(r=this.choicesMin;r<=this.choicesMax;r+=this.choicesStep)n.push(new u["a"](r));return n},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"]);i["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}],function(){return new l("")},"selectbase"),o["a"].Instance.registerQuestion("dropdown",function(e){var t=new l(e);return t.choices=o["a"].DefaultChoices,t})},function(e,t,n){"use strict";var r=n(0),i=n(4),o=n(8),a=n(1),s=n(3),u=n(10);n.d(t,"a",function(){return l}),t["b"]=c;var l=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["a"](r.expression))}),n}return r["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["a"](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){var t=this.isValueEmpty(this.value)?this.defaultValue:this.value;if(this.isValueEmpty(t))return"";var n=this.getValueAsStr(t);return this.format?this.format["format"](n):n},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){c().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("none"!=this.displayStyle&&!isNaN(parseFloat(e))&&isFinite(e)){var t=this.getLocale();t||(t="en");var n={style:this.displayStyle,currency:this.currency,useGrouping:this.useGrouping};return this.maximumFractionDigits>-1&&(n["maximumFractionDigits"]=this.maximumFractionDigits),this.minimumFractionDigits>-1&&(n["minimumFractionDigits"]=this.minimumFractionDigits),e.toLocaleString(t,n)}return e.toString()},t}(o["a"]);function c(){return["AED","AFN","ALL","AMD","ANG","AOA","ARS","AUD","AWG","AZN","BAM","BBD","BDT","BGN","BHD","BIF","BMD","BND","BOB","BOV","BRL","BSD","BTN","BWP","BYN","BZD","CAD","CDF","CHE","CHF","CHW","CLF","CLP","CNY","COP","COU","CRC","CUC","CUP","CVE","CZK","DJF","DKK","DOP","DZD","EGP","ERN","ETB","EUR","FJD","FKP","GBP","GEL","GHS","GIP","GMD","GNF","GTQ","GYD","HKD","HNL","HRK","HTG","HUF","IDR","ILS","INR","IQD","IRR","ISK","JMD","JOD","JPY","KES","KGS","KHR","KMF","KPW","KRW","KWD","KYD","KZT","LAK","LBP","LKR","LRD","LSL","LYD","MAD","MDL","MGA","MKD","MMK","MNT","MOP","MRO","MUR","MVR","MWK","MXN","MXV","MYR","MZN","NAD","NGN","NIO","NOK","NPR","NZD","OMR","PAB","PEN","PGK","PHP","PKR","PLN","PYG","QAR","RON","RSD","RUB","RWF","SAR","SBD","SCR","SDG","SEK","SGD","SHP","SLL","SOS","SRD","SSP","STD","SVC","SYP","SZL","THB","TJS","TMT","TND","TOP","TRY","TTD","TWD","TZS","UAH","UGX","USD","USN","UYI","UYU","UZS","VEF","VND","VUV","WST","XAF","XAG","XAU","XBA","XBB","XBC","XBD","XCD","XDR","XOF","XPD","XPF","XPT","XSU","XTS","XUA","XXX","YER","ZAR","ZAR","ZMW","ZWL"]}a["a"].addClass("expression",["expression:expression",{name:"format",serializationProperty:"locFormat"},{name:"displayStyle",default:"none",choices:["none","decimal","currency","percent"]},{name:"currency",choices:function(){return c()},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}],function(){return new l("")},"question"),s["a"].Instance.registerQuestion("expression",function(e){return new l(e)})},function(e,t,n){"use strict";var r=n(0),i=n(3),o=n(1),a=n(8),s=n(4),u=n(32);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 r["b"](t,e),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()),this.isLoadingFromJson||"email"!==e||this.validators.some(function(e){return"emailvalidator"===e.getType()})||this.validators.push(new u["b"])},enumerable:!0,configurable:!0}),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)?this.isNumber(e)?parseFloat(e):"":e},t.prototype.isNumber=function(e){return!isNaN(parseFloat(e))&&isFinite(e)},t}(a["a"]);o["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 l("")},"question"),i["a"].Instance.registerQuestion("text",function(e){return new l(e)})},function(e,t,n){"use strict";var r=n(0),i=n(5),o=n(11),a=n(2),s=n(1),u=n(10),l=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 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 o["a"](this.getErrorText(e),this.errorOwner)},t.prototype.toString=function(){var e=this.getType().replace("validator","");return this.text&&(e+=", "+this.text),e},t}(i["b"]),d=function(){function e(){}return e.prototype.run=function(e){var t=this,n=[],r=null,i=null;this.prepareAsyncValidators();for(var o=[],a=0;a<e.validators.length;a++){var s=e.validators[a];!r&&s.isValidateAllValues&&(r=e.getDataFilteredValues(),i=e.getDataFilteredProperties()),s.isAsync&&(this.asyncValidators.push(s),s.onAsyncCompleted=function(e){if(e&&e.error&&o.push(e.error),t.onAsyncCompleted){for(var n=0;n<t.asyncValidators.length;n++)if(t.asyncValidators[n].isRunning)return;t.onAsyncCompleted(o)}})}for(a=0;a<e.validators.length;a++){s=e.validators[a];var u=s.validate(e.validatedValue,e.getValidatorTitle(),r,i);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 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),l["a"].isValueEmpty(e))return null;if(!this.isNumber(e))return new c(null,new o["e"](null,this.errorOwner));var i=new c(parseFloat(e));return null!==this.minValue&&this.minValue>i.value?(i.error=this.createCustomError(t),i):null!==this.maxValue&&this.maxValue<i.value?(i.error=this.createCustomError(t),i):"number"===typeof e?null:i},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.prototype.isNumber=function(e){return!isNaN(parseFloat(e))&&isFinite(e)},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 i=e.call(this)||this;return i.minLength=t,i.maxLength=n,i.allowDigits=r,i}return 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&&l["a"].isValueEmpty(e))return null;if(!this.allowDigits){var i=/^[A-Za-z\s]*$/;if(!i.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 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 i=e.length;return this.minCount&&i<this.minCount?new c(null,this.createCustomError(a["a"].getString("minSelectError")["format"](this.minCount))):this.maxCount&&i>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 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||l["a"].isValueEmpty(e))return null;var i=new RegExp(this.regex);if(Array.isArray(e))for(var o=0;o<e.length;o++){var a=this.hasError(i,e[o],t);if(a)return a}return this.hasError(i,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 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 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 i=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){i.isRunningValue=!1,i.onAsyncCompleted&&i.onAsyncCompleted(i.generateError(t,e))},this.isRunningValue=!0;var o=this.conditionRunner.run(n,r);return this.conditionRunner.isAsync?null:(this.isRunningValue=!1,this.generateError(o,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 u["b"](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){},function(e,t,n){"use strict";var r=n(0),i=n(6),o=(n.n(i),n(5)),a=n(51),s=n(21),u=n(1),l=n(3),c=n(7),p=n(16);n.d(t,"b",function(){return d}),n.d(t,"a",function(){return h});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=i["observable"](0),n.koTable=i["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=i["pureComputed"](function(){return r.koRecalc(),r.isAddRowTop()}),n.koIsAddRowOnBottom=i["pureComputed"](function(){return r.koRecalc(),r.isAddRowBottom()}),n.koCanRemoveRow=i["pureComputed"](function(){return r.koRecalc(),r.canRemoveRow()}),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.question["koCanRemoveRow"]=n.koCanRemoveRow,n}return r["b"](t,e),t.prototype.getQuestionTemplate=function(){return"matrixdynamic"},t.prototype.cellAfterRender=function(e,t){if(this.question.survey){var n=o["c"].GetFirstNonTextElement(e);if(n){var r=t;r.question.customWidget&&(r.question.customWidget.afterRender(r.question,n),i["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.canRemoveRow=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 r["b"](t,e),t}(a["a"]);u["a"].overrideClassCreator("matrixdropdown",function(){return new h("")}),l["a"].Instance.registerQuestion("matrixdropdown",function(e){var t=new h(e);return t.choices=[1,2,3,4,5],t.rows=l["a"].DefaultRows,s["a"].addDefaultColumns(t),t})},function(e,t,n){"use strict";var r=n(0),i=n(31),o=n(1),a=n(3),s=n(7);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,new s["a"](n),n}return r["b"](t,e),t}(i["a"]);o["a"].overrideClassCreator("text",function(){return new u("")}),a["a"].Instance.registerQuestion("text",function(e){return new u(e)})},function(e,t,n){"use strict";n.d(t,"b",function(){return r}),n.d(t,"a",function(){return i});var r=n(112),i=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),i=this.text.indexOf(r);if(i<0)this.addText(e,t,n);else if(i=this.text.indexOf(">",i),!(i<0)){var o=i+1,a="<\/script>";i=this.text.indexOf(a,o),i<0||(this.text=this.text.substr(0,o)+e+this.text.substr(i))}},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";var r=n(0),i=n(5),o=n(12),a=n(1),s=n(11),u=n(9);n.d(t,"a",function(){return c});var l=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],i={};this.xml2Json(r,i),this.assignValue(t,r.nodeName,i)}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 r["b"](t,e),Object.defineProperty(t,"EncodeParameters",{get:function(){return u["a"].webserviceEncodeParameters},set:function(e){u["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 i=0;i<r.length;i++)r[i].getResultCallback&&r[i].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,u["a"].webserviceEncodeParameters),n=e.processTextEx(this.path,!1,u["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 l;t=n.parseXmlString(e)}else try{t=JSON.parse(e)}catch(r){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),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.onLoad=function(e){var n=[],r=this.getResultAfterPath(e);if(r&&r["length"])for(var i=0;i<r.length;i++){var a=r[i];if(a){var u=this.getItemValueCallback?this.getItemValueCallback(a):this.getValue(a),l=this.getTitle(a),c=new o["a"](u,l);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 i=n[r],o=this.getValueCore(t,this.getPropertyBinding(i.name));this.isValueEmpty(o)||(e[i.name]=o)}},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]],!e)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){if(!e)return null;if(this.valueName)return this.getValueCore(e,this.valueName);if(!(e instanceof Object))return e;var t=Object.keys(e).length;return t<1?null:e[Object.keys(e)[0]]},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]],!e)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}(i["b"]);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(115);n.d(t,"a",function(){return o});var i=function(){function e(e,t){this.at=e,this.code=t}return e}(),o=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 o=e.parserCache[t];return void 0===o&&(o=n.i(r["a"])(this.patchExpression(t)),e.parserCache[t]=o),o}catch(a){a instanceof r["b"]&&(this.conditionError=new i(a.location.start.offset,a.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(9);n.d(t,"a",function(){return i});var i=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 i=new XMLHttpRequest;i.open("GET",e.serviceUrl+"/getSurveyAndIsCompleted?surveyId="+t+"&clientId="+n),i.setRequestHeader("Content-Type","application/x-www-form-urlencoded"),i.onload=function(){var e=JSON.parse(i.response),t=e?e.survey:null,n=e?e.isCompleted:null;r(200==i.status,t,n,i.response)},i.send()},e.prototype.sendResult=function(t,n,r,i,o){void 0===i&&(i=null),void 0===o&&(o=!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)};i&&(s["clientId"]=i),o&&(s["isPartialCompleted"]=!0);var u=JSON.stringify(s);a.onload=a.onerror=function(){r&&r(200===a.status,a.response,a)},a.send(u)},e.prototype.sendFile=function(t,n,r){var i=new XMLHttpRequest;i.onload=i.onerror=function(){r&&r(200==i.status,JSON.parse(i.response))},i.open("POST",e.serviceUrl+"/upload/",!0);var o=new FormData;o.append("file",n),o.append("postId",t),i.send(o)},e.prototype.getResult=function(t,n,r){var i=new XMLHttpRequest,o="resultId="+t+"&name="+n;i.open("GET",e.serviceUrl+"/getResult?"+o),i.setRequestHeader("Content-Type","application/x-www-form-urlencoded");i.onload=function(){var e=null,t=null;if(200==i.status)for(var n in e=JSON.parse(i.response),t=[],e.QuestionResult){var o={name:n,value:e.QuestionResult[n]};t.push(o)}r(200==i.status,e,t,i.response)},i.send()},e.prototype.isCompleted=function(t,n,r){var i=new XMLHttpRequest,o="resultId="+t+"&clientId="+n;i.open("GET",e.serviceUrl+"/isCompleted?"+o),i.setRequestHeader("Content-Type","application/x-www-form-urlencoded");i.onload=function(){var e=null;200==i.status&&(e=JSON.parse(i.response)),r(200==i.status,e,i.response)},i.send()},e}()},function(e,t,n){"use strict";var r=n(0),i=n(1),o=n(19);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 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(){var e=[],t=/{(.*?(element:)[^$].*?)}/g,n=this.content,r=0,i=null;while(null!==(i=t.exec(n))){i.index>r&&(e.push(n.substr(r,i.index-r)),r=i.index);var o=this.getQuestionFromText(i[0]);o?e.push(this.getHtmlForQuestion(o)):e.push(n.substr(r,i.index+i[0].length-r)),r=i.index+i[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 i=this;if(i.getContent){var o=i.getContent(t);this.content=o}return!0}return!1},t.prototype.getElementContentText=function(e){return"{"+t.contentElementNamePrefix+e.name+"}"},t.contentElementNamePrefix="element:",t}(o["c"]);i["a"].addClass("flowpanel",[{name:"content:html",serializationProperty:"locContent"}],function(){return new a},"panel")},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}",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",removeFileCaption:"Remove this file"}},function(e,t,n){"use strict";var r=n(0),i=n(12),o=n(8),a=n(1),s=n(10),u=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.generatedVisibleRows=null,n.generatedTotalRow=null,n.filteredRows=null,n.filteredColumns=null,n.columns=n.createColumnValues(),n.rows=n.createItemValues("rows"),n}return 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["b"](this.rowsVisibleIf):null;this.filteredRows=[];var r=i["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["b"](this.columnsVisibleIf):null;this.filteredColumns=[];var r=i["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,o=this.filteredRows?this.filteredRows:this.rows,a=this.filteredColumns?this.filteredColumns:this.columns;for(var s in t)i["a"].getItemByValue(o,s)&&i["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=u["a"].getUnbindValue(this.value),t={},n=this.visibleRows,r=0;r<n.length;r++){var i=this.getRowName(n[r]);e[i]&&(t[i]=e[i])}u["a"].isTwoValueEquals(t,this.value)||(this.value=t)}},t.prototype.getRowName=function(e){return e.name},t}(o["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),i=n(3),o=n(1),a=n(8);n.d(t,"a",function(){return s});var s=function(e){function t(t){var n=e.call(this,t)||this;return n.name=t,n.createLocalizableString("label",n,!0),n}return 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 this.showTitle},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,"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,"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"]);o["a"].addClass("boolean",[{name:"defaultValue:dropdown",alternativeName:"booleanDefaultValue",default:"indeterminate",choices:["indeterminate","false","true"]},{name:"label:text",serializationProperty:"locLabel"},"showTitle:boolean","valueTrue","valueFalse"],function(){return new s("")},"question"),i["a"].Instance.registerQuestion("boolean",function(e){return new s(e)})},function(e,t,n){"use strict";var r=n(0),i=n(1),o=n(3),a=n(20),s=n(4),u=n(12),l=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 u["a"]("none"),n.selectAllItemValue=new u["a"]("selectall");var r=n.createLocalizableString("noneText",n,!0);r.onGetTextCallback=function(e){return e||l["a"].getString("noneItemText")},n.noneItemValue.locOwner=n,n.noneItemValue.setLocText(r);var i=n.createLocalizableString("selectAllText",n,!0);i.onGetTextCallback=function(e){return e||l["a"].getString("selectAllItemText")},n.selectAllItem.locOwner=n,n.selectAllItem.setLocText(i);var o=n;return n.registerFunctionOnPropertiesValueChanged(["hasNone","noneText","hasSelectAll","selectAllText"],function(){o.onVisibleChoicesChanged()}),n}return 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",l["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",l["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),i=this.noneIndexInArray(t);r>-1?i>-1&&t.length>1&&t.splice(i,1):i>-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(e){if(this.isEmpty())return"";for(var t=this.visibleChoices,n=this.createValueCopy(),r="",i=0;i<n.length;i++){var o=this.getChoicesDisplayValue(t,n[i]);o&&(r&&(r+=", "),r+=o)}return r},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){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)}else e||(this.hasComment?this.value=null:this.clearValue())},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 i=u["a"].getItemByValue(this.activeChoices,t[r]);i?n.push(i.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"]);i["a"].addClass("checkbox",["hasSelectAll:boolean","hasNone:boolean",{name:"noneText",serializationProperty:"locNoneText"},{name:"selectAllText",serializationProperty:"locSelectAllText"}],function(){return new c("")},"checkboxbase"),o["a"].Instance.registerQuestion("checkbox",function(e){var t=new c(e);return t.choices=o["a"].DefaultChoices,t})},function(e,t,n){"use strict";var r=n(0),i=n(8),o=n(1),a=n(3),s=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.createLocalizableString("placeHolder",n),n}return r["b"](t,e),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}(i["a"]);o["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 u("")},"question"),a["a"].Instance.registerQuestion("comment",function(e){return new u(e)})},function(e,t,n){"use strict";var r=n(0),i=n(1),o=n(8);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 r["b"](t,e),t.prototype.getType=function(){return"empty"},t}(o["a"]);i["a"].addClass("empty",[],function(){return new a("")},"question")},function(e,t,n){"use strict";var r=n(0),i=n(8),o=n(1),a=n(3),s=n(5),u=n(11),l=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 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,"cleanButtonCaption",{get:function(){return l["a"].getString("cleanCaption")},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"removeFileCaption",{get:function(){return l["a"].getString("removeFileCaption")},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"inputTitle",{get:function(){return this.isUploading?l["a"].getString("loadingFile"):this.isEmpty()?l["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 i=t.value;Array.isArray(i)?t.value=i.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 i=new FileReader;i.onload=function(o){n=n.concat([{name:r.name,type:r.type,content:i.result}]),n.length===e.length&&(t.value=(t.value||[]).concat(n))},i.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 i=Array.isArray(t)?t:t?[t]:[];this.storeDataAsText?(i.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")):i.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===i.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 u["k"](l["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 u["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);n=n&&n.toLowerCase();var r=n===t||!!e.type&&0===e.type.toLowerCase().indexOf("image/");return r},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}(i["a"]);o["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"],function(){return new c("")},"question"),a["a"].Instance.registerQuestion("file",function(e){return new c(e)})},function(e,t,n){"use strict";var r=n(0),i=n(57),o=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),i=n;return r.onGetTextCallback=function(e){return i.survey?i.survey.processHtml(e):e},n}return 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}(i["a"]);o["a"].addClass("html",[{name:"html:html",serializationProperty:"locHtml"}],function(){return new s("")},"nonvalue"),a["a"].Instance.registerQuestion("html",function(e){return new s(e)})},function(e,t,n){"use strict";var r=n(0),i=n(1),o=n(3),a=n(20),s=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.colCount=0,n}return 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"]);i["a"].addClass("imageitemvalue",[],void 0,"itemvalue"),i["a"].addProperty("imageitemvalue",{name:"imageLink"}),i["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},{name:"imageWidth:number",default:200}],function(){return new u("")},"checkboxbase"),i["a"].addProperty("imagepicker",{name:"showLabel:boolean",default:!1}),i["a"].addProperty("imagepicker",{name:"colCount:number",default:0,choices:[0,1,2,3,4,5]}),i["a"].addProperty("imagepicker",{name:"multiSelect:boolean",default:!1}),i["a"].addProperty("imagepicker",{name:"choices:imageitemvalue[]"}),o["a"].Instance.registerQuestion("imagepicker",function(e){var t=new u(e);return t})},function(e,t,n){"use strict";var r=n(0),i=n(4),o=n(12),a=n(42),s=n(1),u=n(2),l=n(11),c=n(3),p=n(13),d=n(29),h=n(9);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&&!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 i in r)n[i]=r[i].getJson();e[t]=n}return e},e.prototype.setJson=function(e){if(this.values={},e)for(var t in e)if("pos"!=t){var n=e[t];for(var r in this.values[t]={},n)if("pos"!=r){var i=this.createString();i.setJson(n[r]),this.values[t][r]=i}}},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 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(),e!=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.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 i=n[r];this.isValueEmpty(i.value)||e.push(this.createMatrixRow(i,this.id+"_"+i.value.toString().replace(/\s/g,"_"),t[i.value]))}return 0!=e.length||this.filteredRows||e.push(this.createMatrixRow(new o["a"](null),this.name.replace(/\s/g,"_"),t)),this.generatedVisibleRows=e,e},t.prototype.sortVisibleRows=function(e){var t=this.rowsOrder.toLowerCase();return"random"===t?i["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 l["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++){var n=e[t].value;if(!n)return!1}return!0},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 i=this.generatedVisibleRows[r],o=n[i.name]?n[i.name]:null;this.generatedVisibleRows[r].value=o}this.isRowChanging=!1}},t.prototype.getDisplayValueCore=function(e){var t=this.createValueCopy();if(!t)return t;var n={};for(var r in t){var i=e?o["a"].getTextOrHtmlByValue(this.rows,r):r;i||(i=r);var a=o["a"].getTextOrHtmlByValue(this.columns,t[r]);a||(a=t[r]),n[i]=a}return n},t.prototype.getPlainData=function(t){var n=this;void 0===t&&(t={includeEmpty:!0});var r=e.prototype.getPlainData.call(this,t);if(r){var i=this.createValueCopy();r.isNode=!0,r.data=Object.keys(i||{}).map(function(e){var r=n.rows.filter(function(t){return t.value===e})[0],a={name:e,title:r?r.text:"row",value:i[e],displayValue:o["a"].getTextOrHtmlByValue(n.visibleColumns,i[e]),getString:function(e){return"object"===typeof e?JSON.stringify(e):e},isNode:!1},s=o["a"].getItemByValue(n.visibleColumns,i[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 i=(new s["b"]).toJsonObject(r);return i["type"]=r.getType(),i},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 u["a"].getString("matrix_column")}},{name:"rows:itemvalue[]",baseValue:function(){return u["a"].getString("matrix_row")}},{name:"cells:cells",serializationProperty:"cells"},{name:"rowsOrder",default:"initial",choices:["initial","random"]},"isAllRowRequired:boolean"],function(){return new g("")},"matrixbase"),c["a"].Instance.registerQuestion("matrix",function(e){var t=new g(e);return t.rows=c["a"].DefaultRows,t.columns=c["a"].DefaultColums,t})},function(e,t,n){"use strict";var r=n(0),i=n(21),o=n(1),a=n(12),s=n(3);n.d(t,"b",function(){return u}),n.d(t,"a",function(){return l});var u=function(e){function t(t,n,r,i){var o=e.call(this,r,i)||this;return o.name=t,o.item=n,o.buildCells(i),o}return 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}(i["b"]),l=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 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.getDisplayValueCore=function(e){var t=this.createValueCopy();if(!t)return t;for(var n=this.visibleRows,r={},i=0;i<n.length;i++){var o=this.rows[i].value,s=t[o];if(s){if(e){var u=a["a"].getTextOrHtmlByValue(this.rows,o);u&&(o=u)}r[o]=this.getRowDisplayValue(n[i],s)}}return t},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 i=this.rows[r];if(i.value)for(var o=this.name+"."+i.value+".",a=this.processedTitle+"."+i.calculatedText+".",s=0;s<this.columns.length;s++){var u=this.columns[s];e.push({name:o+u.name,text:a+u.fullTitle,question:this})}}if(n)for(r=0;r<this.columns.length;r++){u=this.columns[r];u!=t&&e.push({name:"row."+u.name,text:"row."+u.fullTitle,question:this})}},t.prototype.clearIncorrectValues=function(){var t=this.value;if(t){var n=null,r=!1,i=this.filteredRows?this.filteredRows:this.rows;for(var o in t)a["a"].getItemByValue(i,o)?(null==n&&(n={}),n[o]=t[o]):r=!0;r&&(this.value=n),e.prototype.clearIncorrectValues.call(this)}},t.prototype.clearValueIfInvisible=function(){e.prototype.clearValueIfInvisible.call(this),this.clearInvisibleValuesInRows()},t.prototype.getRowName=function(e){return e.rowName},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 u(e.value,e,this,t)},t}(i["a"]);o["a"].addClass("matrixdropdown",[{name:"rows:itemvalue[]"},"rowsVisibleIf:condition",{name:"totalText",serializationProperty:"locTotalText"}],function(){return new l("")},"matrixdropdownbase"),s["a"].Instance.registerQuestion("matrixdropdown",function(e){var t=new l(e);return t.choices=[1,2,3,4,5],t.rows=s["a"].DefaultColums,i["a"].addDefaultColumns(t),t})},function(e,t,n){"use strict";var r=n(0),i=n(21),o=n(1),a=n(3),s=n(2),u=n(11),l=n(4),c=n(9);n.d(t,"b",function(){return p}),n.d(t,"a",function(){return d});var p=function(e){function t(t,n,r){var i=e.call(this,n,r)||this;return i.index=t,i.buildCells(r),i}return r["b"](t,e),Object.defineProperty(t.prototype,"rowName",{get:function(){return this.id},enumerable:!0,configurable:!0}),t}(i["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 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)){if(this.isEmpty()&&0!=this.rowCount){for(var t=[],n=0;n<this.rowCount;n++)t.push(this.defaultRowValue);this.value=t}}else e.prototype.setDefaultValue.call(this)},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 i=this.createMatrixRow(null);this.generatedVisibleRows.push(i),this.onMatrixRowCreated(i)}}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,"canRemoveRow",{get:function(){return!this.isReadOnly&&this.rowCount>this.minRowCount},enumerable:!0,configurable:!0}),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);if(!this.isValueEmpty(t)){var n=this.createNewValue();n.length==this.rowCount&&(n[n.length-1]=t,this.value=n)}this.data&&this.runCellsCondition(this.getDataFilteredValues(),this.getDataFilteredProperties()),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 i in this.defaultRowValue)t=t||{},t[i]=this.defaultRowValue[i];if(e&&this.defaultValueFromLastRow){var o=this.value;if(o&&Array.isArray(o)&&o.length>=this.rowCount-1){var a=o[this.rowCount-2];for(var i in a)t=t||{},t[i]=a[i]}}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!(l["a"].isValueEmpty(t)||!Array.isArray(t))&&(!(e>=t.length)&&!l["a"].isValueEmpty(t[e]))},t.prototype.removeRow=function(e){this.canRemoveRow&&(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){var t=this.createValueCopy();if(!t||!Array.isArray(t))return t;for(var n=this.visibleRows,r=0;r<n.length&&r<t.length;r++){var i=t[r];i&&(t[r]=this.getRowDisplayValue(n[r],i))}return t},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 i=this.columns[r];e.push({name:this.name+"[0]."+i.name,text:this.processedTitle+"[0]."+i.fullTitle,question:this}),n&&i!=t&&e.push({name:"row."+i.name,text:"row."+i.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 u["i"](this.minRowCount,this))},t.prototype.hasErrors=function(t){void 0===t&&(t=!0);var n=e.prototype.hasErrors.call(this,t);return this.isValueDuplicated()||n},t.prototype.hasErrorInRows=function(){if(this.minRowCount<=0||!this.generatedVisibleRows)return!1;for(var e=0,t=0;t<this.generatedVisibleRows.length;t++){var n=this.generatedVisibleRows[t];n.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 i=r.value,o=0;o<n.length;o++)if(i==n[o])return r.addError(new u["h"](this.keyDuplicationError,this)),!0;return n.push(i),!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(l["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}(i["a"]);o["a"].addClass("matrixdynamic",[{name:"rowsVisibleIf:condition",visible:!1},{name:"rowCount:number",default:2},{name:"minRowCount:number",default: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["a"].Instance.registerQuestion("matrixdynamic",function(e){var t=new d(e);return t.choices=[1,2,3,4,5],i["a"].addDefaultColumns(t),t})},function(e,t,n){"use strict";var r=n(0),i=n(5),o=n(8),a=n(31),s=n(1),u=n(3),l=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 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 l["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}),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 l["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}(i["b"]),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 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);for(var n=0;n<this.items.length;n++){var r=this.items[n];r.editor&&r.editor.updateValueFromSurvey(r.value)}},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 i=(new s["b"]).toJsonObject(r);return i["type"]="text",i},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,i=0;i<t.length;i++)0==r&&n.push([]),n[n.length-1].push(t[i]),r++,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){var n=this;void 0===t&&(t=!0);for(var r=e.prototype.hasErrors.call(this,t),i=0;i<this.items.length;i++)this.items[i].editor.onCompletedAsyncValidators=function(e){n.raiseOnCompletedAsyncValidators()},r=this.items[i].editor.hasErrors(t)||r;return r},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.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}(o["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},{name:"colCount:number",default:1,choices:[1,2,3,4,5]}],function(){return new p("")},"question"),u["a"].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),i=n(4),o=n(2),a=n(22),s=n(18),u=n(8),l=n(19),c=n(1),p=n(3),d=n(11),h=n(9);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){var t=this.getAllValues();return t[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){this.setValue(e+h["a"].commentPrefix,t)},e.prototype.getAllValues=function(){return this.data.getPanelItemData(this)},e.prototype.getFilteredValues=function(){var e={panel:this.getAllValues()},t=this.data&&this.data.getRootData()?this.data.getRootData().getFilteredValues():{};for(var n in t)e[n]=t[n];return e},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+".","");n=(new s["a"]).getFirstName(t.name);var r=this.panel.getQuestionByValueName(n);!r&&this.data&&(r=this.data.getSharedQuestionFromArray(n,this.data.getItemIndex(this)));var i={};if(r)i[n]=t.returnDisplayValue?r.displayValue:r.value;else{var o=this.getAllValues();o&&(i[n]=o[n])}t.value=(new s["a"]).getValue(t.name,i)}}},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 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){var n=c["a"].findProperty(e.getType(),t.name);if(n)for(var r=this.panels,i=0;i<r.length;i++){var o=r[i].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.currentIndexValue<0&&this.panelCount>0&&(this.currentIndexValue=0),this.currentIndexValue>=this.panelCount&&(this.currentIndexValue=this.panelCount-1),this.currentIndexValue)},set:function(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",o["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",o["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",o["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",o["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",o["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",o["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)this.loadingPanelCount=e;else 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 i=this.setPanelVisibleIndex(this.panels[r],n,"off"!=this.showQuestionNumbers);"onSurvey"==this.showQuestionNumbers&&(n+=i)}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(){if(!this.isLoadingFromJson){this.prepareValueForPanelCreating();var e,t=[];if(this.isDesignMode)new f(this,this.template),t.push(this.template);else for(var n=0;n<this.panelCount;n++)t.push(this.createNewPanel());(e=this.panels).splice.apply(e,[0,this.panels.length].concat(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)){if(this.isEmpty()&&0!=this.panelCount){for(var t=[],n=0;n<this.panelCount;n++)t.push(this.defaultPanelValue);this.value=t}}else e.prototype.setDefaultValue.call(this)},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);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(!isNaN(parseFloat(e))&&isFinite(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 i=!1;for(var o in r)t.getQuestionByName(o)||this.getSharedQuestionFromArray(o,e)||(delete r[o],i=!0);i&&(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,i=0;i<r.length;i++)r[i].addConditionNames(n);for(i=0;i<n.length;i++)e.push(t+n[i])},t.prototype.addConditionObjectsByContext=function(e,t){for(var n=!!t&&this.template.questions.indexOf(t)>-1,r=this.name+"[0].",i=this.processedTitle+"[0].",o=new Array,a=this.template.questions,s=0;s<a.length;s++)a[s].addConditionObjectsByContext(o,t);for(s=0;s<o.length;s++)e.push({name:r+o[s].name,text:i+o[s].text,question:o[s].question});if(n)for(s=0;s<o.length;s++)o[s].question!=t&&e.push({name:"panel."+o[s].name,text:"panel."+o[s].text,question:o[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,i=n.indexOf(".");i>-1&&(r=n.substr(0,i),n=n.substr(i+1));var o=this.template.getQuestionByName(r);return o?o.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 i=this.getPanelItemData(this.panels[r].data);n[f.ItemVariableName.toLowerCase()]=i,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.hasErrors=function(t){if(void 0===t&&(t=!0),this.isValueChangingInternally)return!1;if(this.changingValueQuestion)return this.changingValueQuestion.hasErrors(t);var n=this.hasErrorInPanels(t);return e.prototype.hasErrors.call(this,t)||n},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,i=0;i<r.length;i++){var o=r[i].getAllErrors();o&&o.length>0&&(t=t.concat(o))}return t},t.prototype.getDisplayValueCore=function(e){var t=this.createValueCopy();if(!t||!Array.isArray(t))return t;for(var n=0;n<this.panels.length&&n<t.length;n++){var r=t[n];r&&(t[n]=this.getPanelDisplayValue(n,r,e))}return t},t.prototype.getPanelDisplayValue=function(e,t,n){if(!t)return t;var r=this.panels[e];for(var i in t){var o=r.getQuestionByValueName(i);o||(o=this.getSharedQuestionFromArray(i,e)),o&&(t[i]=o.getDisplayValue(n))}return t},t.prototype.hasErrorInPanels=function(e){for(var t=!1,n=this.panels,r=[],i=0;i<n.length;i++)this.setOnCompleteAsyncInPanel(n[i]);for(i=0;i<n.length;i++){var o=n[i].hasErrors(e);o=this.isValueDuplicated(n[i],r)||o,this.isRenderModeList||!o||t||(this.currentIndex=i),t=o||t}return t},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){if(!this.keyName)return!1;var n=e.getQuestionByValueName(this.keyName);if(!n||n.isEmpty())return!1;for(var r=n.value,i=0;i<t.length;i++)if(r==t[i])return n.addError(new d["h"](this.keyDuplicationError,this)),!0;return t.push(r),!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 l["c"]},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),this.setPanelCountBasedOnValue();for(var n=0;n<this.panels.length;n++)this.panelUpdateValueFromSurvey(this.panels[n])},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 i=t[r];i.updateValueFromSurvey(n[i.getValueName()]),i.updateCommentFromSurvey(n[i.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 i=t[r];i.onSurveyValueChanged(n[i.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,o=r.indexOf(e);o<0&&(o=r.length);var a=i["a"].getUnbindValue(this.value);if(a&&Array.isArray(a)||(a=[]),a.length<=o)for(var s=a.length;s<=o;s++)a.push({});if(a[o]||(a[o]={}),this.isValueEmpty(n)?delete a[o][t]:a[o][t]=n,o>=0&&o<this.panels.length&&(this.changingValueQuestion=this.panels[o].getQuestionByValueName(t)),this.value=a,this.changingValueQuestion=null,this.survey){var u={question:this,panel:e.panel,name:t,itemIndex:o,itemValue:a[o],value:n};this.survey.dynamicPanelItemValueChanged(this,u)}},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},t}(u["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},{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",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["a"].Instance.registerQuestion("paneldynamic",function(e){return new g(e)})},function(e,t,n){"use strict";var r=n(0),i=n(1),o=n(3),a=n(20),s=n(2),u=n(12);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}return 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:u["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"]);i["a"].addClass("radiogroup",[{name:"showClearButton:boolean",default:!1}],function(){return new l("")},"checkboxbase"),o["a"].Instance.registerQuestion("radiogroup",function(e){var t=new l(e);return t.choices=o["a"].DefaultChoices,t})},function(e,t,n){"use strict";var r=n(0),i=n(12),o=n(8),a=n(1),s=n(3),u=n(9);n.d(t,"a",function(){return l});var l=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 i=n.createLocalizableString("minRateDescription",n,!0),o=n.createLocalizableString("maxRateDescription",n,!0);return i.onGetTextCallback=function(e){return e?e+" ":e},o.onGetTextCallback=function(e){return e?" "+e:e},n}return 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){if(this.isEmpty())return"";var t=i["a"].getTextOrHtmlByValue(this.visibleRateValues,this.value);return t||this.createValueCopy()},Object.defineProperty(t.prototype,"visibleRateValues",{get:function(){if(this.rateValues.length>0)return this.rateValues;var e=[],t=this.rateMin;while(t<=this.rateMax&&e.length<u["a"].ratingMaximumRateValueCount)e.push(new i["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}(o["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},{name:"minRateDescription",alternativeName:"mininumRateDescription",serializationProperty:"locMinRateDescription"},{name:"maxRateDescription",alternativeName:"maximumRateDescription",serializationProperty:"locMaxRateDescription"}],function(){return new l("")},"question"),s["a"].Instance.registerQuestion("rating",function(e){return new l(e)})},function(e,t,n){"use strict";var r=n(0),i=n(8),o=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 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}(i["a"]);o["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:"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(14);n.d(t,"a",function(){return i});var i=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){var i;if(void 0===t&&(t="default"),void 0===n&&(n=".sv_main"),-1!==["bootstrap","bootstrapmaterial"].indexOf(t)?(i=e[t+"ThemeCss"],r["b"].currentType=t):(i=e.ThemeCss,r["b"].currentType="standard"),e.Enabled){var o=e.findSheet(t+n);if(!o){o=e.createSheet(t+n);var a=e.ThemeColors[t]||e.ThemeColors["default"];Object.keys(i).forEach(function(e){var t=i[e];Object.keys(a).forEach(function(e){return t=t.replace(new RegExp("\\"+e,"g"),a[e])}),o.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_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;",".sv_qstn.sv_qstn_left":"margin-top: 0.75em;",".sv_qstn .title-left":"float: left; margin-right: 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":"width: 100%; display: inline-block; padding-right: 1em; box-sizing: border-box; word-break: break-word;",".sv_qstn .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":"width: 33.33333%; display: inline-block; padding-right: 1em; box-sizing: border-box; word-break: break-word;",".sv_qstn .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":"width: 20%; display: inline-block; padding-right: 1em; box-sizing: border-box; word-break: break-word;",".sv_qstn .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":"max-width: 50%; display: inline-block; padding-right: 1em; box-sizing: border-box; word-break: break-word;",".sv_qstn .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":"max-width: 25%; display: inline-block; padding-right: 1em; box-sizing: border-box; word-break: break-word;",".sv_qstn .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;"},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)"}},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"},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"},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"},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"},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"},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"},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"}},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;"},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;"},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;"},e.Enabled=!0,e}()},function(e,t,n){"use strict";var r=n(0),i=n(5),o=n(23);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 i=r;return r.survey.onComplete.add(function(e,t){i.onSurveyComplete()}),r}return 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 o["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}(i["b"])},function(e,t,n){"use strict";var r=n(5);n.d(t,"a",function(){return o});var i={setTimeout:function(e){return window.setTimeout(e,1e3)},clearTimeout:function(e){window.clearTimeout(e)}},o=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=i.setTimeout(function(){t.doTimer()})),this.listenerCounter++},e.prototype.stop=function(e){void 0===e&&(e=null),e&&this.onTimer.remove(e),this.listenerCounter--,0==this.listenerCounter&&this.timerId>-1&&(i.clearTimeout(this.timerId),this.timerId=-1)},e.prototype.doTimer=function(){var e=this;this.timerId<0||(this.onTimer.fire(this,{}),this.timerId=i.setTimeout(function(){e.doTimer()}))},e.instanceValue=null,e}()},function(e,t,n){"use strict";var r=n(14);n.d(t,"a",function(){return i});var i={root:"sv_main sv_bootstrap_css",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",page:{root:"",title:"",description:""},pageTitle:"",pageDescription:"small",row:"sv_row",question:{mainRoot:"sv_qstn",flowRoot:"sv_q_flow sv_qstn",titleLeftRoot:"sv_qstn_left",title:"",number:"sv_q_num",description:"small",comment:"form-control",required:"",titleRequired:"",hasError:"has-error",indent:20},panel:{title:"sv_p_title",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:"",label:"",materialDecorator:"checkbox-material"},checkbox:{root:"sv_qcbc sv_qcbx form-inline",item:"checkbox",itemControl:"",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",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:"",button:"button",buttonPrev:"",buttonNext:"",buttonAdd:"",buttonRemove:""},multipletext:{root:"table",itemTitle:"",itemValue:"sv_q_mt_item_value form-control"},radiogroup:{root:"sv_qcbc form-inline",item:"radio",label:"",itemControl:"",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",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"},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"},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"]=i},function(e,t,n){"use strict";var r=n(14);n.d(t,"a",function(){return i});var i={root:"sv_main sv_bootstrapmaterial_css",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",page:{root:"",title:"",description:""},pageTitle:"",pageDescription:"small",row:"sv_row",question:{mainRoot:"sv_qstn form-group",flowRoot:"sv_q_flow form-group",titleLeftRoot:"sv_qstn_left",title:"",number:"sv_q_num",description:"small",comment:"form-control",required:"",titleRequired:"",hasError:"has-error",indent:20},panel:{title:"sv_p_title",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:"",label:"",materialDecorator:"checkbox-material"},checkbox:{root:"sv_qcbx form-inline",item:"checkbox",itemControl:"",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"},matrixdropdown:{root:"table",itemValue:"form-group"},matrixdynamic:{root:"table",button:"btn btn-primary",itemValue:"form-group",buttonAdd:"",buttonRemove:"",iconAdd:"",iconRemove:""},paneldynamic:{root:"",button:"btn btn-primary",buttonPrev:"",buttonNext:"",buttonAdd:"",buttonRemove:""},multipletext:{root:"table",itemTitle:"",row:"form-group",itemValue:"sv_q_mt_item_value form-control"},radiogroup:{root:"",item:"radio",label:"",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",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"},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"},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"]=i},function(e,t,n){"use strict";n(117),n(118),n(119),n(120),n(121),n(122),n(123),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(147),n(146),n(148)},function(e,t,n){"use strict";var r=n(33),i=(n.n(r),n(9));n.d(t,"b",function(){return i["a"]});var o=n(4);n.d(t,"c",function(){return o["a"]});var a=n(32);n.d(t,"d",function(){return a["c"]}),n.d(t,"e",function(){return a["b"]}),n.d(t,"f",function(){return a["d"]}),n.d(t,"g",function(){return a["e"]}),n.d(t,"h",function(){return a["f"]}),n.d(t,"i",function(){return a["g"]}),n.d(t,"j",function(){return a["h"]}),n.d(t,"k",function(){return a["i"]}),n.d(t,"l",function(){return a["a"]});var s=n(12);n.d(t,"m",function(){return s["a"]});var u=n(5);n.d(t,"n",function(){return u["b"]}),n.d(t,"o",function(){return u["a"]}),n.d(t,"p",function(){return u["d"]}),n.d(t,"q",function(){return u["c"]});var l=n(114);n.d(t,"r",function(){return l["a"]});var c=n(11);n.d(t,"s",function(){return c["a"]}),n.d(t,"t",function(){return c["d"]}),n.d(t,"u",function(){return c["b"]}),n.d(t,"v",function(){return c["e"]}),n.d(t,"w",function(){return c["l"]});var p=n(13);n.d(t,"x",function(){return p["a"]});var d=n(116);n.d(t,"y",function(){return d["a"]});var h=n(37);n.d(t,"z",function(){return h["a"]});var f=n(26);n.d(t,"A",function(){return f["a"]});var m=n(10);n.d(t,"B",function(){return m["b"]}),n.d(t,"C",function(){return m["a"]});var g=n(25);n.d(t,"D",function(){return g["g"]});var y=n(38);n.d(t,"E",function(){return y["a"]});var v=n(18);n.d(t,"F",function(){return v["a"]});var b=n(1);n.d(t,"G",function(){return b["e"]}),n.d(t,"H",function(){return b["f"]}),n.d(t,"I",function(){return b["g"]}),n.d(t,"J",function(){return b["h"]}),n.d(t,"K",function(){return b["i"]}),n.d(t,"L",function(){return b["j"]}),n.d(t,"M",function(){return b["b"]}),n.d(t,"N",function(){return b["d"]}),n.d(t,"O",function(){return b["k"]}),n.d(t,"P",function(){return b["l"]}),n.d(t,"Q",function(){return b["a"]});var x=n(21);n.d(t,"R",function(){return x["c"]}),n.d(t,"S",function(){return x["d"]}),n.d(t,"T",function(){return x["e"]}),n.d(t,"U",function(){return x["b"]}),n.d(t,"V",function(){return x["a"]});var C=n(51);n.d(t,"W",function(){return C["b"]}),n.d(t,"X",function(){return C["a"]});var w=n(52);n.d(t,"Y",function(){return w["b"]}),n.d(t,"Z",function(){return w["a"]});var P=n(50);n.d(t,"_0",function(){return P["a"]}),n.d(t,"_1",function(){return P["c"]}),n.d(t,"_2",function(){return P["b"]});var V=n(53);n.d(t,"_3",function(){return V["a"]}),n.d(t,"_4",function(){return V["b"]});var T=n(19);n.d(t,"_5",function(){return T["c"]}),n.d(t,"_6",function(){return T["b"]}),n.d(t,"_7",function(){return T["d"]});var k=n(40);n.d(t,"_8",function(){return k["a"]});var S=n(27);n.d(t,"_9",function(){return S["a"]});var R=n(8);n.d(t,"_10",function(){return R["a"]});var O=n(57);n.d(t,"_11",function(){return O["a"]});var q=n(46);n.d(t,"_12",function(){return q["a"]});var E=n(20);n.d(t,"_13",function(){return E["a"]}),n.d(t,"_14",function(){return E["b"]});var _=n(44);n.d(t,"_15",function(){return _["a"]});var I=n(45);n.d(t,"_16",function(){return I["a"]});var L=n(29);n.d(t,"_17",function(){return L["a"]});var A=n(3);n.d(t,"_18",function(){return A["a"]}),n.d(t,"_19",function(){return A["b"]});var D=n(47);n.d(t,"_20",function(){return D["a"]});var N=n(48);n.d(t,"_21",function(){return N["a"]});var j=n(55);n.d(t,"_22",function(){return j["a"]});var F=n(56);n.d(t,"_23",function(){return F["a"]});var M=n(30);n.d(t,"_24",function(){return M["a"]});var z=n(31);n.d(t,"_25",function(){return z["a"]});var B=n(43);n.d(t,"_26",function(){return B["a"]});var H=n(49);n.d(t,"_27",function(){return H["a"]});var Q=n(54);n.d(t,"_28",function(){return Q["a"]}),n.d(t,"_29",function(){return Q["b"]});var $=n(60);n.d(t,"_30",function(){return $["a"]});var U=n(23);n.d(t,"_31",function(){return U["a"]});var J=n(149);n.d(t,"_32",function(){return J["a"]}),n.d(t,"_33",function(){return J["b"]}),n.d(t,"_34",function(){return J["c"]}),n.d(t,"_35",function(){return J["d"]}),n.d(t,"_36",function(){return J["e"]}),n.d(t,"_37",function(){return J["f"]}),n.d(t,"_38",function(){return J["g"]});var W=n(59);n.d(t,"_39",function(){return W["a"]});var G=n(22);n.d(t,"_40",function(){return G["a"]});var K=n(39);n.d(t,"_41",function(){return K["a"]});var Z=n(41);n.d(t,"_42",function(){return Z["a"]});var X=n(2);n.d(t,"_43",function(){return X["a"]}),n.d(t,"_44",function(){return X["b"]});var Y=n(28);n.d(t,"_45",function(){return Y["b"]}),n.d(t,"_46",function(){return Y["a"]});var ee,te=n(58);n.d(t,"_47",function(){return te["a"]}),n.d(t,"a",function(){return ee}),ee="1.1.8"},function(e,t,n){"use strict";var r=n(0),i=n(6),o=(n.n(i),n(59)),a=n(17);n.d(t,"a",function(){return u});var s=n(113),u=function(e){function t(t,n){void 0===t&&(t=null),void 0===n&&(n=null);var r=e.call(this,t,n)||this;r.koExpanded=i["observable"](!1),r.koExpandedCss=i["observable"](r.getButtonCss());var o=r;return r.expandedChangedCallback=function(){o.koExpanded(o.isExpanded),o.koExpandedCss(o.getButtonCss())},r.showingChangedCallback=function(){o.doShowingChanged()},r.doExpand=function(){o.changeExpanded()},r}return r["b"](t,e),t.prototype.createSurvey=function(e){return new a["a"](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,i["cleanNode"](this.windowElement),i["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}(o["a"])},function(e,t,n){"use strict";var r=n(0),i=n(6),o=(n.n(i),n(40)),a=n(1),s=n(16),u=n(5);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.koElementType=i["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 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=u["c"].GetFirstNonTextElement(e);n&&this.survey.afterRenderQuestion(t,n)}},t}(o["a"]);a["a"].overrideClassCreator("flowpanel",function(){return new l}),i["components"].register("f-panel",{viewModel:{createViewModel:function(e,t){var n=this,r=i["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||(i["cleanNode"](n.element),n.element.innerHTML=r.html,i["applyBindings"]({question:r},n.element),i["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,i=n.element.innerHTML,o=t.exec(i);if(null!==o){var a=r.getQuestionFromText(o[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 i=t.querySelectorAll('span[question="true"]'),o=0;o<i.length;o++){var a=i[o].id.replace("flowpanel_",""),s="";if(a!==e){var u=r.getQuestionByName(a);s=u?r.getElementContentText(u):""}i[o].outerHTML=s}return t.innerHTML};var o={characterData:!0,attributes:!0,childList:!0,subtree:!0},a=function(e,t){n.isOnFocus&&(n.wasChanged=!0)},s=new MutationObserver(a);return s.observe(n.element,o),{question:r}}},template:"<div></div>"})},function(e,t,n){"use strict";var r=n(0),i=n(43),o=n(1),a=n(3),s=n(7);n.d(t,"a",function(){return l});var u=function(e){function t(t){var n=e.call(this,t)||this;return n.question=t,n}return r["b"](t,e),t}(s["a"]),l=function(e){function t(t){var n=e.call(this,t)||this;return n.name=t,new u(n),n}return r["b"](t,e),t.prototype.getItemCss=function(e,t){var n=this.checkedValue,r=this["koCss"]().item+(n?" checked":"");return r},t}(i["a"]);o["a"].overrideClassCreator("boolean",function(){return new l("")}),a["a"].Instance.registerQuestion("boolean",function(e){return new l(e)})},function(e,t,n){"use strict";var r=n(0),i=n(6),o=(n.n(i),n(15)),a=n(1),s=n(3),u=n(44);n.d(t,"a",function(){return c});var l=function(e){function t(t){return e.call(this,t)||this}return r["b"](t,e),t.prototype.getKoValue=function(){return this.question.renderedValue},t}(o["b"]),c=function(e){function t(t){var n=e.call(this,t)||this;n.name=t,n.isAllSelectedUpdating=!1,new l(n),n.koAllSelected=i["observable"](n.isAllSelected);var r=n;return n.koAllSelected.subscribe(function(e){r.isAllSelectedUpdating||(e?r.selectAll():r.clearValue())}),n}return 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){this.value;var t=this.isItemSelected(e),n=this.cssClasses.item;return this.hasColumns||(n+=0===this.colCount?" sv_q_checkbox_inline":" sv-q-col-"+this.colCount),t&&(n+=" checked"),n},t}(u["a"]);a["a"].overrideClassCreator("checkbox",function(){return new c("")}),s["a"].Instance.registerQuestion("checkbox",function(e){var t=new c(e);return t.choices=s["a"].DefaultChoices,t})},function(e,t,n){"use strict";var r=n(0),i=n(1),o=n(3),a=n(45),s=n(7);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,new s["a"](n),n}return r["b"](t,e),t}(a["a"]);i["a"].overrideClassCreator("comment",function(){return new u("")}),o["a"].Instance.registerQuestion("comment",function(e){return new u(e)})},function(e,t,n){"use strict";var r=n(0),i=n(29),o=n(1),a=n(3),s=n(15);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,new s["a"](n),n}return r["b"](t,e),t}(i["a"]);o["a"].overrideClassCreator("dropdown",function(){return new u("")}),a["a"].Instance.registerQuestion("dropdown",function(e){var t=new u(e);return t.choices=a["a"].DefaultChoices,t})},function(e,t,n){"use strict";var r=n(0),i=n(46),o=n(1),a=n(7);n.d(t,"a",function(){return s});var s=function(e){function t(t){var n=e.call(this,t)||this;return n.name=t,new a["a"](n),n}return r["b"](t,e),t}(i["a"]);o["a"].overrideClassCreator("empty",function(){return new s("")})},function(e,t,n){"use strict";var r=n(0),i=n(6),o=(n.n(i),n(30)),a=n(1),s=n(3),u=n(7);n.d(t,"a",function(){return c});var l=function(e){function t(t){var n=e.call(this,t)||this;return n.question=t,n.koDisplayValue=i["observable"](n.question.displayValue),n.question["koDisplayValue"]=n.koDisplayValue,i["computed"](function(){n.koDisplayValue(n.question.displayValue)}),n}return r["b"](t,e),t}(u["a"]),c=function(e){function t(t){var n=e.call(this,t)||this;return n.name=t,new l(n),n}return r["b"](t,e),t}(o["a"]);a["a"].overrideClassCreator("expression",function(){return new c("")}),s["a"].Instance.registerQuestion("expression",function(e){return new c(e)})},function(e,t,n){"use strict";var r=n(0),i=n(6),o=(n.n(i),n(1)),a=n(3),s=n(47),u=n(7);n.d(t,"a",function(){return c});var l=function(e){function t(t){var n=e.call(this,t)||this;n.koState=i["observable"]("empty"),n.koHasValue=i["computed"](function(){return"loaded"===n.koState()}),n.koData=i["computed"](function(){return n.koHasValue()?n.question.previewValue:[]}),n.koInputTitle=i["observable"]();var r=n;n.question["koData"]=n.koData,n.question["koHasValue"]=n.koHasValue,n.question["koInputTitle"]=n.koInputTitle;var o=function(e){n.koState(e),n.koInputTitle(n.question.inputTitle)};return n.question.onStateChanged.add(function(e,t){o(t.state)}),n.question["dochange"]=function(e,t){var n=t.target||t.srcElement;r.onChange(n)},n.question["doclean"]=function(e,t){var r=t.target||t.srcElement,i=r.parentElement.querySelectorAll("input")[0];n.question.clear(),i.value=""},n.question["doremovefile"]=function(e,t){n.question.removeFile(e)},n}return r["b"](t,e),t.prototype.onChange=function(e){if(window["FileReader"]&&e&&e.files&&!(e.files.length<1)){for(var t=[],n=0;n<e.files.length;n++)t.push(e.files[n]);e.value="",this.question.loadFiles(t)}},t}(u["a"]),c=function(e){function t(t){var n=e.call(this,t)||this;return n.name=t,new l(n),n}return r["b"](t,e),t}(s["a"]);o["a"].overrideClassCreator("file",function(){return new c("")}),a["a"].Instance.registerQuestion("file",function(e){return new c(e)})},function(e,t,n){"use strict";var r=n(0),i=n(1),o=n(3),a=n(7),s=n(48);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,new a["a"](n),n}return r["b"](t,e),t}(s["a"]);i["a"].overrideClassCreator("html",function(){return new u("")}),o["a"].Instance.registerQuestion("html",function(e){return new u(e)})},function(e,t,n){"use strict";var r=n(0),i=n(49),o=n(1),a=n(3),s=n(15);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,new s["b"](n),n}return r["b"](t,e),t.prototype.getItemClass=function(e){var t=this.cssClasses.item+(0===this.colCount?" sv_q_imagepicker_inline":" sv-q-col-"+this.colCount);return this.multiSelect?this.value&&-1!==this["koValue"]().indexOf(e.value)&&(t+=" checked"):e.value&&e.value==this["koValue"]()&&(t+=" checked"),t},t}(i["a"]);o["a"].overrideClassCreator("imagepicker",function(){return new u("")}),a["a"].Instance.registerQuestion("imagepicker",function(e){var t=new u(e);return t})},function(e,t,n){"use strict";var r=n(0),i=n(6),o=(n.n(i),n(50)),a=n(7),s=n(1),u=n(3),l=n(4);n.d(t,"a",function(){return c}),n.d(t,"b",function(){return p});var c=function(e){function t(t,n,r,o){var a=e.call(this,t,n,r,o)||this;a.fullName=n,a.isValueUpdating=!1,a.koValue=i["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 r["b"](t,e),t.prototype.onValueChanged=function(){this.isValueUpdating=!0,l["a"].isTwoValueEquals(this.koValue(),this.value)||this.koValue(this.value),this.isValueUpdating=!1},t}(o["a"]),p=function(e){function t(t){var n=e.call(this,t)||this;return n.name=t,new a["a"](n),n.koVisibleRows=i["observable"](n.visibleRows),n.koVisibleColumns=i["observable"](n.visibleColumns),n}return 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.hasCellText?this.cssClasses.cellTextSelected:"checked",i=this.hasCellText?this["koCss"]().cellText:this["koCss"]().label,o=i+(n?" "+r:"");return o},t}(o["b"]);s["a"].overrideClassCreator("matrix",function(){return new p("")}),u["a"].Instance.registerQuestion("matrix",function(e){var t=new p(e);return t.rows=u["a"].DefaultRows,t.columns=u["a"].DefaultColums,t})},function(e,t,n){"use strict";var r=n(0),i=n(1),o=n(3),a=n(34),s=n(52),u=n(21);n.d(t,"a",function(){return l}),n.d(t,"b",function(){return c});var l=function(e){function t(t){return e.call(this,t)||this}return r["b"](t,e),t.prototype.isAddRowTop=function(){return this.question.isAddRowOnTop},t.prototype.isAddRowBottom=function(){return this.question.isAddRowOnBottom},t.prototype.canRemoveRow=function(){return!this.question.isReadOnly&&this.question.canRemoveRow},t.prototype.addRow=function(){this.question.addRow()},t.prototype.removeRow=function(e){this.question.removeRowUI(e)},t}(a["b"]),c=function(e){function t(t){var n=e.call(this,t)||this;return n.name=t,new l(n),n}return r["b"](t,e),t}(s["a"]);i["a"].overrideClassCreator("matrixdynamic",function(){return new c("")}),o["a"].Instance.registerQuestion("matrixdynamic",function(e){var t=new c(e);return t.choices=[1,2,3,4,5],t.rowCount=2,u["a"].addDefaultColumns(t),t})},function(e,t,n){"use strict";var r=n(0),i=n(6),o=(n.n(i),n(53)),a=n(7),s=n(35),u=n(1),l=n(3);n.d(t,"a",function(){return c}),n.d(t,"b",function(){return p}),n.d(t,"c",function(){return d});var 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 r["b"](t,e),t.prototype.createEditor=function(e){return new s["a"](e)},t}(o["a"]),p=function(e){function t(t){var n=e.call(this,t)||this;n.koRows=i["observableArray"](n.question.getRows()),n.question["koRows"]=n.koRows,n.onColCountChanged();var r=n;return n.question.colCountChangedCallback=function(){r.onColCountChanged()},n}return 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 r["b"](t,e),t.prototype.createTextItem=function(e,t){return new c(e,t)},t}(o["b"]);u["a"].overrideClassCreator("multipletextitem",function(){return new c("")}),u["a"].overrideClassCreator("multipletext",function(){return new d("")}),l["a"].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),i=n(6),o=(n.n(i),n(5)),a=n(1),s=n(3),u=n(7),l=n(54),c=n(24);n.d(t,"a",function(){return d});var p=function(e){function t(t){var n=e.call(this,t)||this;n.koRecalc=i["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=i["pureComputed"](function(){return r.koRecalc(),r.question.canAddPanel}),n.koCanRemovePanel=i["pureComputed"](function(){return r.koRecalc(),r.question.canRemovePanel}),n.koIsPrevButton=i["pureComputed"](function(){return r.koRecalc(),r.question.isPrevButtonShowing}),n.koIsNextButton=i["pureComputed"](function(){return r.koRecalc(),r.question.isNextButtonShowing}),n.koIsRange=i["pureComputed"](function(){return r.koRecalc(),r.question.isRangeShowing}),n.koPanel=i["pureComputed"](function(){return r.koRecalc(),r.question.currentPanel}),n.koIsList=i["pureComputed"](function(){return r.koRecalc(),r.question.isRenderModeList}),n.koIsProgressTop=i["pureComputed"](function(){return r.koRecalc(),r.question.isProgressTopShowing}),n.koIsProgressBottom=i["pureComputed"](function(){return r.koRecalc(),r.question.isProgressBottomShowing}),n.koRangeValue=i["observable"](r.question.currentIndex),n.koRangeValue.subscribe(function(e){r.question.currentIndex=e}),n.koRangeMax=i["pureComputed"](function(){return r.koRecalc(),r.question.panelCount-1}),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["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["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 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=o["c"].GetFirstNonTextElement(e);this.question.survey.afterRenderPanel(t,n)}},t}(u["a"]),d=function(e){function t(t){var n=e.call(this,t)||this;return n.name=t,new p(n),n}return r["b"](t,e),t.prototype.createNewPanelObject=function(){return new c["c"]},t}(l["a"]);a["a"].overrideClassCreator("paneldynamic",function(){return new d("")}),s["a"].Instance.registerQuestion("paneldynamic",function(e){return new d(e)})},function(e,t,n){"use strict";var r=n(0),i=n(55),o=n(1),a=n(3),s=n(15);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,new s["b"](n),n}return r["b"](t,e),t.prototype.getItemClass=function(e){var t=this.cssClasses.item;return this.hasColumns||(t+=0===this.colCount?" sv_q_radiogroup_inline":" sv-q-col-"+this.colCount),e.value===this.value&&(t+=" checked"),t},t}(i["a"]);o["a"].overrideClassCreator("radiogroup",function(){return new u("")}),a["a"].Instance.registerQuestion("radiogroup",function(e){var t=new u(e);return t.choices=a["a"].DefaultChoices,t})},function(e,t,n){"use strict";var r=n(0),i=n(6),o=(n.n(i),n(7)),a=n(56),s=n(1),u=n(3);n.d(t,"a",function(){return c});var l=function(e){function t(t){var n=e.call(this,t)||this;n.koVisibleRateValues=i["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,i=r.question.cssClasses.selected;return n.question.value==e.value?t+" "+i:t},n}return r["b"](t,e),t.prototype.onRateValuesChanged=function(){this.koVisibleRateValues(this.getValues())},t.prototype.getValues=function(){return this.question.visibleRateValues},t}(o["a"]),c=function(e){function t(t){var n=e.call(this,t)||this;return n.name=t,new l(n),n}return r["b"](t,e),t}(a["a"]);s["a"].overrideClassCreator("rating",function(){return new c("")}),u["a"].Instance.registerQuestion("rating",function(e){return new c(e)})},function(e,t){e.exports='<script type="text/html" id="survey-comment">\n  \x3c!-- ko ifnot: question.isReadOnly --\x3e\n  <textarea type="text" data-bind="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.isReadOnly --\x3e\n  <div data-bind="text: $data.question.comment, visible: $data.visible, css: question.koCss().other"></div>\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 class="sv_container">\n              \x3c!-- ko if: (locTitle.koRenderedHtml().length > 0) && showTitle && koState() == \'running\' --\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                  <div data-bind="visible: isShowProgressBarOnTop, template: \'survey-progress\'"></div>\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                  <div style="margin-top:1em" data-bind="visible: isShowProgressBarOnBottom, template: \'survey-progress\'"></div>\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>\n'},function(e,t){e.exports="<script type=\"text/html\" id=\"survey-matrixcell\">\n  <td data-bind=\"css: 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            <div data-bind=\"css: question.koCss().error.locationTop\">\n              \x3c!-- ko template: { name: 'survey-question-errors', data: question } --\x3e\n              \x3c!-- /ko --\x3e\n            </div>\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            <div data-bind=\"css: question.koCss().error.locationBottom\">\n              \x3c!-- ko template: { name: 'survey-question-errors', data: question } --\x3e\n              \x3c!-- /ko --\x3e\n            </div>\n          \x3c!-- /ko --\x3e\n      </div>\n  </td>\n<\/script>\n"},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="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 class="sv_panel_icon" data-bind="visible: koIsCollapsed() || koIsExpanded(), css: {sv_expanded: !koIsCollapsed()}"></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}">\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"></span>\n        </div>\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="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.koCss().materialDecorator">\n              <span class="check"></span>\n          </span>\n          <span data-bind="css: question.koCss().label">\n              \x3c!-- ko template: { name: \'survey-string\', data: locDisplayLabel } --\x3e\n              \x3c!-- /ko --\x3e\n          </span>\n      </label>\n  </div>\n<\/script>'},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.koCss().label">\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              <span class="check"></span>\n          </span>\n          <span data-bind="css: question.koCss().controlLabel">\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    <textarea type="text" data-bind="attr: {\'readonly\': 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<\/script>'},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="attr: {id: question.inputId, \'aria-label\': question.locTitle.renderedHtml}, value: question.renderedValue, valueAllowUnset: true, css: question.koCss().control">\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: question.koCss().error.root">\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.cssClasses.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 if: question.koHasValue --\x3e\n      <button type="button" data-bind="css: question.cssClasses.removeButton, click: question.doclean, text: question.cleanButtonCaption"></button>\n      \x3c!-- /ko --\x3e\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="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>\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              <div>\n              \x3c!-- ko ifnot: question.isReadOnly --\x3e\n              <span data-bind="css: question.cssClasses.removeFile, click: question.doremovefile, text: question.removeFileCaption"></span>\n              \x3c!-- /ko --\x3e\n              </div>\n              \x3c!-- /ko --\x3e\n          </span>\n      </div>\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  <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>\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">\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.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 }">\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 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<\/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 }">\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>\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>\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().showFooter --\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>\n'},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\">\x3c!-- ko template: { name: 'survey-string', data: item.locTitle } --\x3e\x3c!-- /ko --\x3e</td>\n          <td>\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            <div data-bind=\"css: question.koCss().error.locationBottom\">\n                \x3c!-- ko template: { name: 'survey-question-errors', data: item.editor } --\x3e\n                \x3c!-- /ko --\x3e\n            </div>\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    <input type="range" min="0" style="width:25%;float:left;margin:5px" data-bind="visible: koIsRange, value: question.koRangeValue, attr: {max: question.koRangeMax}" />\n    <input type="button" style="float:left;margin:5px" data-bind="visible: question.koIsPrevButton, click:question.koPrevPanelClick, css: question.koCss().button + \' \' + question.koCss().buttonPrev, value: question.panelPrevText" />\n    <input type="button" style="float:left;margin:5px" data-bind="visible: question.koIsNextButton, click:question.koNextPanelClick, css: question.koCss().button + \' \' + question.koCss().buttonNext, value: question.panelNextText" />\n    <input type="button" style="float:left;margin:5px" data-bind="visible:question.koCanAddPanel, click:question.koAddPanelClick, css: question.koCss().button + \' \' + question.koCss().buttonAdd, value: question.panelAddText" />\n<\/script>\n'},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" style="margin-top:5px" data-bind="visible: question.koCanRemovePanel() && !$data.koIsCollapsed(), click:question.koRemovePanelClick, css: question.koCss().button + \' \' + question.koCss().buttonRemove, value: question.panelRemoveText"\n      />\n      <hr/>\n      \x3c!-- /ko --\x3e\n      <input type="button" data-bind="visible:question.koCanAddPanel, click:question.koAddPanelClick, css: question.koCss().button + \' \' + question.koCss().buttonAdd, value: question.panelAddText"\n      />\n      \x3c!-- /ko --\x3e\n      \x3c!-- ko ifnot: question.koIsList()  --\x3e\n      <div data-bind="visible:question.koIsProgressTop">\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" style="margin-top:5px" 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">\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>\n'},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.koCss().label">\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"></span>\n          <span class="check"></span>\n          <span data-bind="css: question.koCss().controlLabel">\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" style="display: none;" 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>'},function(e,t){e.exports="<script type=\"text/html\" id=\"survey-question-text\">\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\"/>\n<\/script>"},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}\">\n      <div data-bind=\"css: {'title-left': question.hasTitleOnLeft}\">\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>\n\n      <div data-bind=\"css: {'content-left': question.hasTitleOnLeft}\">\n          \x3c!-- ko if: question.errorLocation == 'top' --\x3e\n              <div data-bind=\"css: question.koCss().error.locationTop\">\n                  \x3c!-- ko template: { name: 'survey-question-errors', data: question } --\x3e\n                  \x3c!-- /ko --\x3e\n              </div>\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 class=\"form-group\">\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              <div data-bind=\"css: question.koCss().error.locationBottom\">\n                  \x3c!-- ko template: { name: 'survey-question-errors', data: question } --\x3e\n                  \x3c!-- /ko --\x3e\n              </div>\n          \x3c!-- /ko --\x3e\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  </div>\n<\/script>\n"},function(e,t){e.exports='<script type="text/html" id="survey-question-title">\n  <h5 data-bind="css: koCss().title">\n      \x3c!-- ko if: no --\x3e\n      <span style="position: static;" data-bind="css: koCss().number, text: no"></span>\n      <span style="position: static;">.&nbsp</span>\n      \x3c!-- /ko --\x3e\n      \x3c!-- ko template: { name: \'survey-string\', data: locTitle } --\x3e\x3c!-- /ko --\x3e\n  </h5>\n  <div data-bind="css: koCss().description">\n      \x3c!-- ko template: { name: \'survey-string\', data: locDescription } --\x3e\x3c!-- /ko --\x3e\n  </div>\n<\/script>\n'},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(84)+" "+n(82)+"\n"+n(86)+"\n"+n(87)+n(83)+"\n"+n(88)+" "+n(109)+"\n"+n(110)+" "+n(111)+"\n"+n(85)+" "+n(107)+"\n"+n(108)+" "+n(90)+"\n"+n(91)+" "+n(92)+"\n"+n(94)+" "+n(96)+"\n"+n(97)+" "+n(99)+"\n"+n(100)+"\n"+n(103)+"\n"+n(102)+"\n"+n(101)+"\n"+n(104)+" "+n(105)+"\n"+n(106)+" "+n(89)+"\n"+n(93)+" "+n(95)+"\n"+n(98)+"\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),i=n(4),o=n(5),a=n(10),s=n(1);n.d(t,"a",function(){return u});var u=function(e){function t(t,n){void 0===t&&(t=null),void 0===n&&(n=null);var r=e.call(this)||this;return r.expressionIsRunning=!1,t&&(r.name=t),n&&(r.expression=n),r}return 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["a"](this.expression)),this.expressionRunner.onRunComplete=function(e){i["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}(o["b"]);s["a"].addClass("calculatedvalue",["!name","expression:expression","includeIntoResult:boolean"],function(){return new u},"base")},function(e,t,n){"use strict";var r=n(0),i=n(25);n.d(t,"b",function(){return o}),n.d(t,"a",function(){return s});var o=function(e){function t(n,r,i,o){var a=e.call(this)||this;return a.message=n,a.expected=r,a.found=i,a.location=o,a.name="SyntaxError","function"===typeof Error.captureStackTrace&&Error.captureStackTrace(a,t),a}return r["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 i(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 o(e){switch(e.type){case"literal":return'"'+r(e.text)+'"';case"class":var t=e.parts.map(function(e){return Array.isArray(e)?i(e[0])+"-"+i(e[1]):i(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(o);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);function a(e,t){t=void 0!==t?t:{};var n,r={},a={Expression:Tn},s=Tn,u=function(e,t){return or(e,t,!0)},l="||",c=yn("||",!1),p="or",d=yn("or",!0),h=function(){return"or"},f="&&",m=yn("&&",!1),g="and",y=yn("and",!0),v=function(){return"and"},b=function(e,t){return or(e,t)},x="<=",C=yn("<=",!1),w="lessorequal",P=yn("lessorequal",!0),V=function(){return"lessorequal"},T=">=",k=yn(">=",!1),S="greaterorequal",R=yn("greaterorequal",!0),O=function(){return"greaterorequal"},q="=",E=yn("=",!1),_="equal",I=yn("equal",!0),L=function(){return"equal"},A="!=",D=yn("!=",!1),N="notequal",j=yn("notequal",!0),F=function(){return"notequal"},M="<",z=yn("<",!1),B="less",H=yn("less",!0),Q=function(){return"less"},$=">",U=yn(">",!1),J="greater",W=yn("greater",!0),G=function(){return"greater"},K="+",Z=yn("+",!1),X=function(){return"plus"},Y="-",ee=yn("-",!1),te=function(){return"minus"},ne="*",re=yn("*",!1),ie=function(){return"mul"},oe="/",ae=yn("/",!1),se=function(){return"div"},ue="%",le=yn("%",!1),ce=function(){return"mod"},pe="^",de=yn("^",!1),he="power",fe=yn("power",!0),me=function(){return"power"},ge="*=",ye=yn("*=",!1),ve="contains",be=yn("contains",!0),xe="contain",Ce=yn("contain",!0),we=function(){return"contains"},Pe="notcontains",Ve=yn("notcontains",!0),Te="notcontain",ke=yn("notcontain",!0),Se=function(){return"notcontains"},Re="anyof",Oe=yn("anyof",!0),qe=function(){return"anyof"},Ee="allof",_e=yn("allof",!0),Ie=function(){return"allof"},Le="(",Ae=yn("(",!1),De=")",Ne=yn(")",!1),je=function(e){return e},Fe=function(e,t){return new i["a"](e,t)},Me="!",ze=yn("!",!1),Be="negate",He=yn("negate",!0),Qe=function(e){return new i["b"](e,"negate")},$e=function(e,t){return new i["b"](e,t)},Ue="empty",Je=yn("empty",!0),We=function(){return"empty"},Ge="notempty",Ke=yn("notempty",!0),Ze=function(){return"notempty"},Xe="undefined",Ye=yn("undefined",!1),et="null",tt=yn("null",!1),nt=function(){return null},rt=function(e){return new i["c"](e)},it="{",ot=yn("{",!1),at="}",st=yn("}",!1),ut=function(e){return new i["d"](e)},lt="'",ct=yn("'",!1),pt=function(e){return e},dt='"',ht=yn('"',!1),ft="[",mt=yn("[",!1),gt="]",yt=yn("]",!1),vt=function(e){return e},bt=",",xt=yn(",",!1),Ct=function(e,t){if(null==e)return[];var n=[e];if(Array.isArray(t))for(var r=ar(t),o=3;o<r.length;o+=4)n.push(r[o]);return new i["e"](n)},wt="true",Pt=yn("true",!0),Vt=function(){return!0},Tt="false",kt=yn("false",!0),St=function(){return!1},Rt="0x",Ot=yn("0x",!1),qt=function(){return parseInt(gn(),16)},Et=/^[\-]/,_t=vn(["-"],!1,!1),It=function(e,t){return null==e?t:-t},Lt=".",At=yn(".",!1),Dt=function(){return parseFloat(gn())},Nt=function(){return parseInt(gn(),10)},jt="0",Ft=yn("0",!1),Mt=function(){return 0},zt=function(e){return e.join("")},Bt="\\'",Ht=yn("\\'",!1),Qt=function(){return"'"},$t='\\"',Ut=yn('\\"',!1),Jt=function(){return'"'},Wt=/^[^"'{}]/,Gt=vn(['"',"'","{","}"],!0,!1),Kt=function(){return gn()},Zt=/^[^{}]/,Xt=vn(["{","}"],!0,!1),Yt=/^[0-9]/,en=vn([["0","9"]],!1,!1),tn=/^[1-9]/,nn=vn([["1","9"]],!1,!1),rn=/^[a-zA-Z]/,on=vn([["a","z"],["A","Z"]],!1,!1),an=xn("whitespace"),sn=/^[ \t\n\r]/,un=vn([" ","\t","\n","\r"],!1,!1),ln=0,cn=0,pn=[{line:1,column:1}],dn=0,hn=[],fn=0,mn={};if(void 0!==t.startRule){if(!(t.startRule in a))throw new Error("Can't start parsing from rule \""+t.startRule+'".');s=a[t.startRule]}function gn(){return e.substring(cn,ln)}function yn(e,t){return{type:"literal",text:e,ignoreCase:t}}function vn(e,t,n){return{type:"class",parts:e,inverted:t,ignoreCase:n}}function bn(){return{type:"end"}}function xn(e){return{type:"other",description:e}}function Cn(t){var n,r=pn[t];if(r)return r;n=t-1;while(!pn[n])n--;r=pn[n],r={line:r.line,column:r.column};while(n<t)10===e.charCodeAt(n)?(r.line++,r.column=1):r.column++,n++;return pn[t]=r,r}function wn(e,t){var n=Cn(e),r=Cn(t);return{start:{offset:e,line:n.line,column:n.column},end:{offset:t,line:r.line,column:r.column}}}function Pn(e){ln<dn||(ln>dn&&(dn=ln,hn=[]),hn.push(e))}function Vn(e,t,n){return new o(o.buildMessage(e,t),e,t,n)}function Tn(){var e,t,n,i,o,a,s,l,c,p=34*ln+0,d=mn[p];if(d)return ln=d.nextPos,d.result;if(e=ln,t=ir(),t!==r)if(n=Sn(),n!==r){i=[],o=ln,a=ir(),a!==r?(s=kn(),s!==r?(l=ir(),l!==r?(c=Sn(),c!==r?(a=[a,s,l,c],o=a):(ln=o,o=r)):(ln=o,o=r)):(ln=o,o=r)):(ln=o,o=r);while(o!==r)i.push(o),o=ln,a=ir(),a!==r?(s=kn(),s!==r?(l=ir(),l!==r?(c=Sn(),c!==r?(a=[a,s,l,c],o=a):(ln=o,o=r)):(ln=o,o=r)):(ln=o,o=r)):(ln=o,o=r);i!==r?(o=ir(),o!==r?(cn=e,t=u(n,i),e=t):(ln=e,e=r)):(ln=e,e=r)}else ln=e,e=r;else ln=e,e=r;return mn[p]={nextPos:ln,result:e},e}function kn(){var t,n,i=34*ln+1,o=mn[i];return o?(ln=o.nextPos,o.result):(t=ln,e.substr(ln,2)===l?(n=l,ln+=2):(n=r,0===fn&&Pn(c)),n===r&&(e.substr(ln,2).toLowerCase()===p?(n=e.substr(ln,2),ln+=2):(n=r,0===fn&&Pn(d))),n!==r&&(cn=t,n=h()),t=n,mn[i]={nextPos:ln,result:t},t)}function Sn(){var e,t,n,i,o,a,s,l,c=34*ln+2,p=mn[c];if(p)return ln=p.nextPos,p.result;if(e=ln,t=On(),t!==r){n=[],i=ln,o=ir(),o!==r?(a=Rn(),a!==r?(s=ir(),s!==r?(l=On(),l!==r?(o=[o,a,s,l],i=o):(ln=i,i=r)):(ln=i,i=r)):(ln=i,i=r)):(ln=i,i=r);while(i!==r)n.push(i),i=ln,o=ir(),o!==r?(a=Rn(),a!==r?(s=ir(),s!==r?(l=On(),l!==r?(o=[o,a,s,l],i=o):(ln=i,i=r)):(ln=i,i=r)):(ln=i,i=r)):(ln=i,i=r);n!==r?(cn=e,t=u(t,n),e=t):(ln=e,e=r)}else ln=e,e=r;return mn[c]={nextPos:ln,result:e},e}function Rn(){var t,n,i=34*ln+3,o=mn[i];return o?(ln=o.nextPos,o.result):(t=ln,e.substr(ln,2)===f?(n=f,ln+=2):(n=r,0===fn&&Pn(m)),n===r&&(e.substr(ln,3).toLowerCase()===g?(n=e.substr(ln,3),ln+=3):(n=r,0===fn&&Pn(y))),n!==r&&(cn=t,n=v()),t=n,mn[i]={nextPos:ln,result:t},t)}function On(){var e,t,n,i,o,a,s,u,l=34*ln+4,c=mn[l];if(c)return ln=c.nextPos,c.result;if(e=ln,t=En(),t!==r){n=[],i=ln,o=ir(),o!==r?(a=qn(),a!==r?(s=ir(),s!==r?(u=En(),u!==r?(o=[o,a,s,u],i=o):(ln=i,i=r)):(ln=i,i=r)):(ln=i,i=r)):(ln=i,i=r);while(i!==r)n.push(i),i=ln,o=ir(),o!==r?(a=qn(),a!==r?(s=ir(),s!==r?(u=En(),u!==r?(o=[o,a,s,u],i=o):(ln=i,i=r)):(ln=i,i=r)):(ln=i,i=r)):(ln=i,i=r);n!==r?(cn=e,t=b(t,n),e=t):(ln=e,e=r)}else ln=e,e=r;return mn[l]={nextPos:ln,result:e},e}function qn(){var t,n,i=34*ln+5,o=mn[i];return o?(ln=o.nextPos,o.result):(t=ln,e.substr(ln,2)===x?(n=x,ln+=2):(n=r,0===fn&&Pn(C)),n===r&&(e.substr(ln,11).toLowerCase()===w?(n=e.substr(ln,11),ln+=11):(n=r,0===fn&&Pn(P))),n!==r&&(cn=t,n=V()),t=n,t===r&&(t=ln,e.substr(ln,2)===T?(n=T,ln+=2):(n=r,0===fn&&Pn(k)),n===r&&(e.substr(ln,14).toLowerCase()===S?(n=e.substr(ln,14),ln+=14):(n=r,0===fn&&Pn(R))),n!==r&&(cn=t,n=O()),t=n,t===r&&(t=ln,61===e.charCodeAt(ln)?(n=q,ln++):(n=r,0===fn&&Pn(E)),n===r&&(e.substr(ln,5).toLowerCase()===_?(n=e.substr(ln,5),ln+=5):(n=r,0===fn&&Pn(I))),n!==r&&(cn=t,n=L()),t=n,t===r&&(t=ln,e.substr(ln,2)===A?(n=A,ln+=2):(n=r,0===fn&&Pn(D)),n===r&&(e.substr(ln,8).toLowerCase()===N?(n=e.substr(ln,8),ln+=8):(n=r,0===fn&&Pn(j))),n!==r&&(cn=t,n=F()),t=n,t===r&&(t=ln,60===e.charCodeAt(ln)?(n=M,ln++):(n=r,0===fn&&Pn(z)),n===r&&(e.substr(ln,4).toLowerCase()===B?(n=e.substr(ln,4),ln+=4):(n=r,0===fn&&Pn(H))),n!==r&&(cn=t,n=Q()),t=n,t===r&&(t=ln,62===e.charCodeAt(ln)?(n=$,ln++):(n=r,0===fn&&Pn(U)),n===r&&(e.substr(ln,7).toLowerCase()===J?(n=e.substr(ln,7),ln+=7):(n=r,0===fn&&Pn(W))),n!==r&&(cn=t,n=G()),t=n))))),mn[i]={nextPos:ln,result:t},t)}function En(){var e,t,n,i,o,a,s,l,c=34*ln+6,p=mn[c];if(p)return ln=p.nextPos,p.result;if(e=ln,t=In(),t!==r){n=[],i=ln,o=ir(),o!==r?(a=_n(),a!==r?(s=ir(),s!==r?(l=In(),l!==r?(o=[o,a,s,l],i=o):(ln=i,i=r)):(ln=i,i=r)):(ln=i,i=r)):(ln=i,i=r);while(i!==r)n.push(i),i=ln,o=ir(),o!==r?(a=_n(),a!==r?(s=ir(),s!==r?(l=In(),l!==r?(o=[o,a,s,l],i=o):(ln=i,i=r)):(ln=i,i=r)):(ln=i,i=r)):(ln=i,i=r);n!==r?(cn=e,t=u(t,n),e=t):(ln=e,e=r)}else ln=e,e=r;return mn[c]={nextPos:ln,result:e},e}function _n(){var t,n,i=34*ln+7,o=mn[i];return o?(ln=o.nextPos,o.result):(t=ln,43===e.charCodeAt(ln)?(n=K,ln++):(n=r,0===fn&&Pn(Z)),n!==r&&(cn=t,n=X()),t=n,t===r&&(t=ln,45===e.charCodeAt(ln)?(n=Y,ln++):(n=r,0===fn&&Pn(ee)),n!==r&&(cn=t,n=te()),t=n),mn[i]={nextPos:ln,result:t},t)}function In(){var e,t,n,i,o,a,s,l,c=34*ln+8,p=mn[c];if(p)return ln=p.nextPos,p.result;if(e=ln,t=An(),t!==r){n=[],i=ln,o=ir(),o!==r?(a=Ln(),a!==r?(s=ir(),s!==r?(l=An(),l!==r?(o=[o,a,s,l],i=o):(ln=i,i=r)):(ln=i,i=r)):(ln=i,i=r)):(ln=i,i=r);while(i!==r)n.push(i),i=ln,o=ir(),o!==r?(a=Ln(),a!==r?(s=ir(),s!==r?(l=An(),l!==r?(o=[o,a,s,l],i=o):(ln=i,i=r)):(ln=i,i=r)):(ln=i,i=r)):(ln=i,i=r);n!==r?(cn=e,t=u(t,n),e=t):(ln=e,e=r)}else ln=e,e=r;return mn[c]={nextPos:ln,result:e},e}function Ln(){var t,n,i=34*ln+9,o=mn[i];return o?(ln=o.nextPos,o.result):(t=ln,42===e.charCodeAt(ln)?(n=ne,ln++):(n=r,0===fn&&Pn(re)),n!==r&&(cn=t,n=ie()),t=n,t===r&&(t=ln,47===e.charCodeAt(ln)?(n=oe,ln++):(n=r,0===fn&&Pn(ae)),n!==r&&(cn=t,n=se()),t=n,t===r&&(t=ln,37===e.charCodeAt(ln)?(n=ue,ln++):(n=r,0===fn&&Pn(le)),n!==r&&(cn=t,n=ce()),t=n)),mn[i]={nextPos:ln,result:t},t)}function An(){var e,t,n,i,o,a,s,l,c=34*ln+10,p=mn[c];if(p)return ln=p.nextPos,p.result;if(e=ln,t=Nn(),t!==r){n=[],i=ln,o=ir(),o!==r?(a=Dn(),a!==r?(s=ir(),s!==r?(l=Nn(),l!==r?(o=[o,a,s,l],i=o):(ln=i,i=r)):(ln=i,i=r)):(ln=i,i=r)):(ln=i,i=r);while(i!==r)n.push(i),i=ln,o=ir(),o!==r?(a=Dn(),a!==r?(s=ir(),s!==r?(l=Nn(),l!==r?(o=[o,a,s,l],i=o):(ln=i,i=r)):(ln=i,i=r)):(ln=i,i=r)):(ln=i,i=r);n!==r?(cn=e,t=u(t,n),e=t):(ln=e,e=r)}else ln=e,e=r;return mn[c]={nextPos:ln,result:e},e}function Dn(){var t,n,i=34*ln+11,o=mn[i];return o?(ln=o.nextPos,o.result):(t=ln,94===e.charCodeAt(ln)?(n=pe,ln++):(n=r,0===fn&&Pn(de)),n===r&&(e.substr(ln,5).toLowerCase()===he?(n=e.substr(ln,5),ln+=5):(n=r,0===fn&&Pn(fe))),n!==r&&(cn=t,n=me()),t=n,mn[i]={nextPos:ln,result:t},t)}function Nn(){var e,t,n,i,o,a,s,u,l=34*ln+12,c=mn[l];if(c)return ln=c.nextPos,c.result;if(e=ln,t=Fn(),t!==r){n=[],i=ln,o=ir(),o!==r?(a=jn(),a!==r?(s=ir(),s!==r?(u=Fn(),u===r&&(u=null),u!==r?(o=[o,a,s,u],i=o):(ln=i,i=r)):(ln=i,i=r)):(ln=i,i=r)):(ln=i,i=r);while(i!==r)n.push(i),i=ln,o=ir(),o!==r?(a=jn(),a!==r?(s=ir(),s!==r?(u=Fn(),u===r&&(u=null),u!==r?(o=[o,a,s,u],i=o):(ln=i,i=r)):(ln=i,i=r)):(ln=i,i=r)):(ln=i,i=r);n!==r?(cn=e,t=b(t,n),e=t):(ln=e,e=r)}else ln=e,e=r;return mn[l]={nextPos:ln,result:e},e}function jn(){var t,n,i=34*ln+13,o=mn[i];return o?(ln=o.nextPos,o.result):(t=ln,e.substr(ln,2)===ge?(n=ge,ln+=2):(n=r,0===fn&&Pn(ye)),n===r&&(e.substr(ln,8).toLowerCase()===ve?(n=e.substr(ln,8),ln+=8):(n=r,0===fn&&Pn(be)),n===r&&(e.substr(ln,7).toLowerCase()===xe?(n=e.substr(ln,7),ln+=7):(n=r,0===fn&&Pn(Ce)))),n!==r&&(cn=t,n=we()),t=n,t===r&&(t=ln,e.substr(ln,11).toLowerCase()===Pe?(n=e.substr(ln,11),ln+=11):(n=r,0===fn&&Pn(Ve)),n===r&&(e.substr(ln,10).toLowerCase()===Te?(n=e.substr(ln,10),ln+=10):(n=r,0===fn&&Pn(ke))),n!==r&&(cn=t,n=Se()),t=n,t===r&&(t=ln,e.substr(ln,5).toLowerCase()===Re?(n=e.substr(ln,5),ln+=5):(n=r,0===fn&&Pn(Oe)),n!==r&&(cn=t,n=qe()),t=n,t===r&&(t=ln,e.substr(ln,5).toLowerCase()===Ee?(n=e.substr(ln,5),ln+=5):(n=r,0===fn&&Pn(_e)),n!==r&&(cn=t,n=Ie()),t=n))),mn[i]={nextPos:ln,result:t},t)}function Fn(){var t,n,i,o,a,s,u=34*ln+14,l=mn[u];return l?(ln=l.nextPos,l.result):(t=ln,40===e.charCodeAt(ln)?(n=Le,ln++):(n=r,0===fn&&Pn(Ae)),n!==r?(i=ir(),i!==r?(o=Tn(),o!==r?(a=ir(),a!==r?(41===e.charCodeAt(ln)?(s=De,ln++):(s=r,0===fn&&Pn(Ne)),s===r&&(s=null),s!==r?(cn=t,n=je(o),t=n):(ln=t,t=r)):(ln=t,t=r)):(ln=t,t=r)):(ln=t,t=r)):(ln=t,t=r),t===r&&(t=Mn(),t===r&&(t=zn(),t===r&&(t=Hn(),t===r&&(t=$n())))),mn[u]={nextPos:ln,result:t},t)}function Mn(){var t,n,i,o,a,s=34*ln+15,u=mn[s];return u?(ln=u.nextPos,u.result):(t=ln,n=er(),n!==r?(40===e.charCodeAt(ln)?(i=Le,ln++):(i=r,0===fn&&Pn(Ae)),i!==r?(o=Un(),o!==r?(41===e.charCodeAt(ln)?(a=De,ln++):(a=r,0===fn&&Pn(Ne)),a===r&&(a=null),a!==r?(cn=t,n=Fe(n,o),t=n):(ln=t,t=r)):(ln=t,t=r)):(ln=t,t=r)):(ln=t,t=r),mn[s]={nextPos:ln,result:t},t)}function zn(){var t,n,i,o,a=34*ln+16,s=mn[a];return s?(ln=s.nextPos,s.result):(t=ln,33===e.charCodeAt(ln)?(n=Me,ln++):(n=r,0===fn&&Pn(ze)),n===r&&(e.substr(ln,6).toLowerCase()===Be?(n=e.substr(ln,6),ln+=6):(n=r,0===fn&&Pn(He))),n!==r?(i=ir(),i!==r?(o=Tn(),o!==r?(cn=t,n=Qe(o),t=n):(ln=t,t=r)):(ln=t,t=r)):(ln=t,t=r),t===r&&(t=ln,n=Hn(),n!==r?(i=ir(),i!==r?(o=Bn(),o!==r?(cn=t,n=$e(n,o),t=n):(ln=t,t=r)):(ln=t,t=r)):(ln=t,t=r)),mn[a]={nextPos:ln,result:t},t)}function Bn(){var t,n,i=34*ln+17,o=mn[i];return o?(ln=o.nextPos,o.result):(t=ln,e.substr(ln,5).toLowerCase()===Ue?(n=e.substr(ln,5),ln+=5):(n=r,0===fn&&Pn(Je)),n!==r&&(cn=t,n=We()),t=n,t===r&&(t=ln,e.substr(ln,8).toLowerCase()===Ge?(n=e.substr(ln,8),ln+=8):(n=r,0===fn&&Pn(Ke)),n!==r&&(cn=t,n=Ze()),t=n),mn[i]={nextPos:ln,result:t},t)}function Hn(){var t,n,i,o,a,s=34*ln+18,u=mn[s];return u?(ln=u.nextPos,u.result):(t=ln,n=ir(),n!==r?(e.substr(ln,9)===Xe?(i=Xe,ln+=9):(i=r,0===fn&&Pn(Ye)),i===r&&(e.substr(ln,4)===et?(i=et,ln+=4):(i=r,0===fn&&Pn(tt))),i!==r?(cn=t,n=nt(),t=n):(ln=t,t=r)):(ln=t,t=r),t===r&&(t=ln,n=ir(),n!==r?(i=Qn(),i!==r?(cn=t,n=rt(i),t=n):(ln=t,t=r)):(ln=t,t=r),t===r&&(t=ln,n=ir(),n!==r?(123===e.charCodeAt(ln)?(i=it,ln++):(i=r,0===fn&&Pn(ot)),i!==r?(o=Kn(),o!==r?(125===e.charCodeAt(ln)?(a=at,ln++):(a=r,0===fn&&Pn(st)),a!==r?(cn=t,n=ut(o),t=n):(ln=t,t=r)):(ln=t,t=r)):(ln=t,t=r)):(ln=t,t=r))),mn[s]={nextPos:ln,result:t},t)}function Qn(){var t,n,i,o,a=34*ln+19,s=mn[a];return s?(ln=s.nextPos,s.result):(t=Jn(),t===r&&(t=Wn(),t===r&&(t=er(),t===r&&(t=ln,39===e.charCodeAt(ln)?(n=lt,ln++):(n=r,0===fn&&Pn(ct)),n!==r?(i=Zn(),i!==r?(39===e.charCodeAt(ln)?(o=lt,ln++):(o=r,0===fn&&Pn(ct)),o!==r?(cn=t,n=pt(i),t=n):(ln=t,t=r)):(ln=t,t=r)):(ln=t,t=r),t===r&&(t=ln,34===e.charCodeAt(ln)?(n=dt,ln++):(n=r,0===fn&&Pn(ht)),n!==r?(i=Zn(),i!==r?(34===e.charCodeAt(ln)?(o=dt,ln++):(o=r,0===fn&&Pn(ht)),o!==r?(cn=t,n=pt(i),t=n):(ln=t,t=r)):(ln=t,t=r)):(ln=t,t=r))))),mn[a]={nextPos:ln,result:t},t)}function $n(){var t,n,i,o,a=34*ln+20,s=mn[a];return s?(ln=s.nextPos,s.result):(t=ln,91===e.charCodeAt(ln)?(n=ft,ln++):(n=r,0===fn&&Pn(mt)),n!==r?(i=Un(),i!==r?(93===e.charCodeAt(ln)?(o=gt,ln++):(o=r,0===fn&&Pn(yt)),o!==r?(cn=t,n=vt(i),t=n):(ln=t,t=r)):(ln=t,t=r)):(ln=t,t=r),mn[a]={nextPos:ln,result:t},t)}function Un(){var t,n,i,o,a,s,u,l,c=34*ln+21,p=mn[c];if(p)return ln=p.nextPos,p.result;if(t=ln,n=Tn(),n===r&&(n=null),n!==r){i=[],o=ln,a=ir(),a!==r?(44===e.charCodeAt(ln)?(s=bt,ln++):(s=r,0===fn&&Pn(xt)),s!==r?(u=ir(),u!==r?(l=Tn(),l!==r?(a=[a,s,u,l],o=a):(ln=o,o=r)):(ln=o,o=r)):(ln=o,o=r)):(ln=o,o=r);while(o!==r)i.push(o),o=ln,a=ir(),a!==r?(44===e.charCodeAt(ln)?(s=bt,ln++):(s=r,0===fn&&Pn(xt)),s!==r?(u=ir(),u!==r?(l=Tn(),l!==r?(a=[a,s,u,l],o=a):(ln=o,o=r)):(ln=o,o=r)):(ln=o,o=r)):(ln=o,o=r);i!==r?(cn=t,n=Ct(n,i),t=n):(ln=t,t=r)}else ln=t,t=r;return mn[c]={nextPos:ln,result:t},t}function Jn(){var t,n,i=34*ln+22,o=mn[i];return o?(ln=o.nextPos,o.result):(t=ln,e.substr(ln,4).toLowerCase()===wt?(n=e.substr(ln,4),ln+=4):(n=r,0===fn&&Pn(Pt)),n!==r&&(cn=t,n=Vt()),t=n,t===r&&(t=ln,e.substr(ln,5).toLowerCase()===Tt?(n=e.substr(ln,5),ln+=5):(n=r,0===fn&&Pn(kt)),n!==r&&(cn=t,n=St()),t=n),mn[i]={nextPos:ln,result:t},t)}function Wn(){var t,n,i,o=34*ln+23,a=mn[o];return a?(ln=a.nextPos,a.result):(t=ln,e.substr(ln,2)===Rt?(n=Rt,ln+=2):(n=r,0===fn&&Pn(Ot)),n!==r?(i=tr(),i!==r?(cn=t,n=qt(),t=n):(ln=t,t=r)):(ln=t,t=r),t===r&&(t=ln,Et.test(e.charAt(ln))?(n=e.charAt(ln),ln++):(n=r,0===fn&&Pn(_t)),n===r&&(n=null),n!==r?(i=Gn(),i!==r?(cn=t,n=It(n,i),t=n):(ln=t,t=r)):(ln=t,t=r)),mn[o]={nextPos:ln,result:t},t)}function Gn(){var t,n,i,o,a=34*ln+24,s=mn[a];return s?(ln=s.nextPos,s.result):(t=ln,n=tr(),n!==r?(46===e.charCodeAt(ln)?(i=Lt,ln++):(i=r,0===fn&&Pn(At)),i!==r?(o=tr(),o!==r?(cn=t,n=Dt(),t=n):(ln=t,t=r)):(ln=t,t=r)):(ln=t,t=r),t===r&&(t=ln,n=nr(),n!==r?(i=tr(),i===r&&(i=null),i!==r?(cn=t,n=Nt(),t=n):(ln=t,t=r)):(ln=t,t=r),t===r&&(t=ln,48===e.charCodeAt(ln)?(n=jt,ln++):(n=r,0===fn&&Pn(Ft)),n!==r&&(cn=t,n=Mt()),t=n)),mn[a]={nextPos:ln,result:t},t)}function Kn(){var e,t,n,i=34*ln+25,o=mn[i];if(o)return ln=o.nextPos,o.result;if(e=ln,t=[],n=Yn(),n!==r)while(n!==r)t.push(n),n=Yn();else t=r;return t!==r&&(cn=e,t=zt(t)),e=t,mn[i]={nextPos:ln,result:e},e}function Zn(){var e,t,n,i=34*ln+26,o=mn[i];if(o)return ln=o.nextPos,o.result;if(e=ln,t=[],n=Xn(),n!==r)while(n!==r)t.push(n),n=Xn();else t=r;return t!==r&&(cn=e,t=zt(t)),e=t,mn[i]={nextPos:ln,result:e},e}function Xn(){var t,n,i=34*ln+27,o=mn[i];return o?(ln=o.nextPos,o.result):(t=ln,e.substr(ln,2)===Bt?(n=Bt,ln+=2):(n=r,0===fn&&Pn(Ht)),n!==r&&(cn=t,n=Qt()),t=n,t===r&&(t=ln,e.substr(ln,2)===$t?(n=$t,ln+=2):(n=r,0===fn&&Pn(Ut)),n!==r&&(cn=t,n=Jt()),t=n,t===r&&(t=ln,Wt.test(e.charAt(ln))?(n=e.charAt(ln),ln++):(n=r,0===fn&&Pn(Gt)),n!==r&&(cn=t,n=Kt()),t=n)),mn[i]={nextPos:ln,result:t},t)}function Yn(){var t,n,i=34*ln+28,o=mn[i];return o?(ln=o.nextPos,o.result):(t=ln,Zt.test(e.charAt(ln))?(n=e.charAt(ln),ln++):(n=r,0===fn&&Pn(Xt)),n!==r&&(cn=t,n=Kt()),t=n,mn[i]={nextPos:ln,result:t},t)}function er(){var e,t,n,i,o,a,s,u=34*ln+29,l=mn[u];if(l)return ln=l.nextPos,l.result;if(e=ln,t=rr(),t!==r){if(n=[],i=ln,o=tr(),o!==r){a=[],s=rr();while(s!==r)a.push(s),s=rr();a!==r?(o=[o,a],i=o):(ln=i,i=r)}else ln=i,i=r;while(i!==r)if(n.push(i),i=ln,o=tr(),o!==r){a=[],s=rr();while(s!==r)a.push(s),s=rr();a!==r?(o=[o,a],i=o):(ln=i,i=r)}else ln=i,i=r;n!==r?(cn=e,t=Kt(),e=t):(ln=e,e=r)}else ln=e,e=r;return mn[u]={nextPos:ln,result:e},e}function tr(){var t,n,i=34*ln+30,o=mn[i];if(o)return ln=o.nextPos,o.result;if(t=[],Yt.test(e.charAt(ln))?(n=e.charAt(ln),ln++):(n=r,0===fn&&Pn(en)),n!==r)while(n!==r)t.push(n),Yt.test(e.charAt(ln))?(n=e.charAt(ln),ln++):(n=r,0===fn&&Pn(en));else t=r;return mn[i]={nextPos:ln,result:t},t}function nr(){var t,n,i=34*ln+31,o=mn[i];if(o)return ln=o.nextPos,o.result;if(t=[],tn.test(e.charAt(ln))?(n=e.charAt(ln),ln++):(n=r,0===fn&&Pn(nn)),n!==r)while(n!==r)t.push(n),tn.test(e.charAt(ln))?(n=e.charAt(ln),ln++):(n=r,0===fn&&Pn(nn));else t=r;return mn[i]={nextPos:ln,result:t},t}function rr(){var t,n,i=34*ln+32,o=mn[i];if(o)return ln=o.nextPos,o.result;if(t=[],rn.test(e.charAt(ln))?(n=e.charAt(ln),ln++):(n=r,0===fn&&Pn(on)),n!==r)while(n!==r)t.push(n),rn.test(e.charAt(ln))?(n=e.charAt(ln),ln++):(n=r,0===fn&&Pn(on));else t=r;return mn[i]={nextPos:ln,result:t},t}function ir(){var t,n,i=34*ln+33,o=mn[i];if(o)return ln=o.nextPos,o.result;fn++,t=[],sn.test(e.charAt(ln))?(n=e.charAt(ln),ln++):(n=r,0===fn&&Pn(un));while(n!==r)t.push(n),sn.test(e.charAt(ln))?(n=e.charAt(ln),ln++):(n=r,0===fn&&Pn(un));return fn--,t===r&&(n=r,0===fn&&Pn(an)),mn[i]={nextPos:ln,result:t},t}function or(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 ar(e){return[].concat.apply([],e)}if(n=s(),n!==r&&ln===e.length)return n;throw n!==r&&ln<e.length&&Pn(bn()),Vn(hn,dn<e.length?e.charAt(dn):null,dn<e.length?wn(dn,dn+1):wn(dn,dn))}var s=a},function(e,t,n){"use strict";var r=n(0),i=n(1),o=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 r["b"](t,e),t.prototype.getType=function(){return"htmlconditionitem"},t.prototype.runCondition=function(e,t){return!!this.expression&&new a["b"](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}(o["b"]);i["a"].addClass("htmlconditionitem",["expression:condition",{name:"html:html",serializationProperty:"locHtml"}],function(){return new s},"base")},function(e,t,n){"use strict";var r=n(2),i={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"]=i,r["a"].localeNames["ar"]="العربية"},function(e,t,n){"use strict";var r=n(2),i={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"]=i,r["a"].localeNames["bg"]="Bulgarian"},function(e,t,n){"use strict";var r=n(2),i={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"]=i,r["a"].localeNames["ca"]="català"},function(e,t,n){"use strict";var r=n(2),i={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"]=i,r["a"].localeNames["cz"]="čeština"},function(e,t,n){"use strict";var r=n(2),i={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"]=i,r["a"].localeNames["da"]="dansk"},function(e,t,n){"use strict";var r=n(2),i={pagePrevText:"Vorige",pageNextText:"Volgende",completeText:"Verzenden",otherItemText:"Andere",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:"Gelieve een antwoord in te vullen",numericError:"Het antwoord moet een getal zijn",textMinLength:"Gelieve minsten {0} karakters in te vullen.",minSelectError:"Gelieve minimum {0} antwoorden te selecteren.",maxSelectError:"Gelieve niet meer dan {0} antwoorden te selecteren.",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:"Gelieve een geldig e-mailadres in te vullen.",exceedMaxSize:"De grootte van het bestand mag niet groter zijn dan {0}.",otherRequiredError:"Gelieve het veld 'Andere' in te vullen"};r["a"].locales["nl"]=i,r["a"].localeNames["nl"]="nederlands"},function(e,t,n){"use strict";var r=n(2),i={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"]=i,r["a"].localeNames["fi"]="suomalainen"},function(e,t,n){"use strict";var r=n(2),i={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"};r["a"].locales["fr"]=i,r["a"].localeNames["fr"]="français"},function(e,t,n){"use strict";var r=n(2),i={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"]=i,r["a"].localeNames["ka"]="ქართული"},function(e,t,n){"use strict";var r=n(2),i={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"]=i,r["a"].localeNames["de"]="deutsch"},function(e,t,n){"use strict";var r=n(2),i={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"]=i,r["a"].localeNames["gr"]="ελληνικά"},function(e,t,n){"use strict";var r=n(2),i={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"]=i,r["a"].localeNames["he"]="עברית"},function(e,t,n){"use strict";var r=n(2),i={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"]=i,r["a"].localeNames["hu"]="magyar"},function(e,t,n){"use strict";var r=n(2),i={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"]=i,r["a"].localeNames["is"]="íslenska"},function(e,t,n){"use strict";var r=n(2),i={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"]=i,r["a"].localeNames["id"]="Bahasa Indonesia"},function(e,t,n){"use strict";var r=n(2),i={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"]=i,r["a"].localeNames["it"]="italiano"},function(e,t,n){"use strict";var r=n(2),i={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"]=i,r["a"].localeNames["ja"]="日本語"},function(e,t,n){"use strict";var r=n(2),i={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"]=i,r["a"].localeNames["ko"]="한국어"},function(e,t,n){"use strict";var r=n(2),i={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"]=i,r["a"].localeNames["lv"]="latviešu"},function(e,t,n){"use strict";var r=n(2),i={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"]=i,r["a"].localeNames["lt"]="Lietuvių"},function(e,t,n){"use strict";var r=n(2),i={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"]=i,r["a"].localeNames["no"]="norsk"},function(e,t,n){"use strict";var r=n(2),i={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"]=i,r["a"].localeNames["fa"]="فارْسِى"},function(e,t,n){"use strict";var r=n(2),i={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"]=i,r["a"].localeNames["pl"]="polski"},function(e,t,n){"use strict";var r=n(2),i={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"]=i,r["a"].localeNames["pt"]="português"},function(e,t,n){"use strict";var r=n(2),i={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"]=i,r["a"].localeNames["ro"]="română"},function(e,t,n){"use strict";var r=n(2),i={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"]=i,r["a"].localeNames["ru"]="русский"},function(e,t,n){"use strict";var r=n(2),i={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"]=i,r["a"].localeNames["zh-cn"]="简体中文"},function(e,t,n){"use strict";var r=n(2),i={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"]=i,r["a"].localeNames["es"]="español"},function(e,t,n){"use strict";var r=n(2),i={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"]=i,r["a"].localeNames["sv"]="svenska"},function(e,t,n){"use strict";var r=n(2),i={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"]=i,r["a"].localeNames["zh-tw"]="繁體中文"},function(e,t,n){"use strict";var r=n(2),i={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"]=i,r["a"].localeNames["tr"]="türkçe"},function(e,t,n){"use strict";var r=n(2),i={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"]=i,r["a"].localeNames["ua"]="українська"},function(e,t,n){"use strict";var r=n(0),i=n(4),o=n(5),a=n(1),s=n(10),u=n(25),l=n(18);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 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){var n=t.operators[this.operator](e,this.value);n?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?i["a"].isValueEmpty(this.value)&&this.isRequireValue?"":"{"+this.name+"} "+this.operator+" "+u["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["b"](e),this.hasFunction=this.conditionRunner.hasFunction(),this.usedNames=this.conditionRunner.getVariables();for(var t=new l["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}(o["b"]),p=function(e){function t(){var t=e.call(this)||this;return t.owner=null,t}return 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 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 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 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 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 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["a"](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 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";Object.defineProperty(t,"__esModule",{value:!0});var r=n(64);n.d(t,"Version",function(){return r["a"]}),n.d(t,"settings",function(){return r["b"]}),n.d(t,"Helpers",function(){return r["c"]}),n.d(t,"AnswerCountValidator",function(){return r["d"]}),n.d(t,"EmailValidator",function(){return r["e"]}),n.d(t,"NumericValidator",function(){return r["f"]}),n.d(t,"RegexValidator",function(){return r["g"]}),n.d(t,"SurveyValidator",function(){return r["h"]}),n.d(t,"TextValidator",function(){return r["i"]}),n.d(t,"ValidatorResult",function(){return r["j"]}),n.d(t,"ExpressionValidator",function(){return r["k"]}),n.d(t,"ValidatorRunner",function(){return r["l"]}),n.d(t,"ItemValue",function(){return r["m"]}),n.d(t,"Base",function(){return r["n"]}),n.d(t,"Event",function(){return r["o"]}),n.d(t,"SurveyError",function(){return r["p"]}),n.d(t,"SurveyElement",function(){return r["q"]}),n.d(t,"CalculatedValue",function(){return r["r"]}),n.d(t,"CustomError",function(){return r["s"]}),n.d(t,"AnswerRequiredError",function(){return r["t"]}),n.d(t,"OneAnswerRequiredError",function(){return r["u"]}),n.d(t,"RequreNumericError",function(){return r["v"]}),n.d(t,"ExceedSizeError",function(){return r["w"]}),n.d(t,"LocalizableString",function(){return r["x"]}),n.d(t,"HtmlConditionItem",function(){return r["y"]}),n.d(t,"ChoicesRestfull",function(){return r["z"]}),n.d(t,"FunctionFactory",function(){return r["A"]}),n.d(t,"ConditionRunner",function(){return r["B"]}),n.d(t,"ExpressionRunner",function(){return r["C"]}),n.d(t,"Operand",function(){return r["D"]}),n.d(t,"ConditionsParser",function(){return r["E"]}),n.d(t,"ProcessValue",function(){return r["F"]}),n.d(t,"JsonError",function(){return r["G"]}),n.d(t,"JsonIncorrectTypeError",function(){return r["H"]}),n.d(t,"JsonMetadata",function(){return r["I"]}),n.d(t,"JsonMetadataClass",function(){return r["J"]}),n.d(t,"JsonMissingTypeError",function(){return r["K"]}),n.d(t,"JsonMissingTypeErrorBase",function(){return r["L"]}),n.d(t,"JsonObject",function(){return r["M"]}),n.d(t,"JsonObjectProperty",function(){return r["N"]}),n.d(t,"JsonRequiredPropertyError",function(){return r["O"]}),n.d(t,"JsonUnknownPropertyError",function(){return r["P"]}),n.d(t,"Serializer",function(){return r["Q"]}),n.d(t,"MatrixDropdownCell",function(){return r["R"]}),n.d(t,"MatrixDropdownColumn",function(){return r["S"]}),n.d(t,"matrixDropdownColumnTypes",function(){return r["T"]}),n.d(t,"MatrixDropdownRowModelBase",function(){return r["U"]}),n.d(t,"QuestionMatrixDropdownModelBase",function(){return r["V"]}),n.d(t,"MatrixDropdownRowModel",function(){return r["W"]}),n.d(t,"QuestionMatrixDropdownModel",function(){return r["X"]}),n.d(t,"MatrixDynamicRowModel",function(){return r["Y"]}),n.d(t,"QuestionMatrixDynamicModel",function(){return r["Z"]}),n.d(t,"MatrixRowModel",function(){return r["_0"]}),n.d(t,"MartrixCells",function(){return r["_1"]}),n.d(t,"QuestionMatrixModel",function(){return r["_2"]}),n.d(t,"MultipleTextItemModel",function(){return r["_3"]}),n.d(t,"QuestionMultipleTextModel",function(){return r["_4"]}),n.d(t,"PanelModel",function(){return r["_5"]}),n.d(t,"PanelModelBase",function(){return r["_6"]}),n.d(t,"QuestionRowModel",function(){return r["_7"]}),n.d(t,"FlowPanelModel",function(){return r["_8"]}),n.d(t,"PageModel",function(){return r["_9"]}),n.d(t,"Question",function(){return r["_10"]}),n.d(t,"QuestionNonValue",function(){return r["_11"]}),n.d(t,"QuestionEmptyModel",function(){return r["_12"]}),n.d(t,"QuestionCheckboxBase",function(){return r["_13"]}),n.d(t,"QuestionSelectBase",function(){return r["_14"]}),n.d(t,"QuestionCheckboxModel",function(){return r["_15"]}),n.d(t,"QuestionCommentModel",function(){return r["_16"]}),n.d(t,"QuestionDropdownModel",function(){return r["_17"]}),n.d(t,"QuestionFactory",function(){return r["_18"]}),n.d(t,"ElementFactory",function(){return r["_19"]}),n.d(t,"QuestionFileModel",function(){return r["_20"]}),n.d(t,"QuestionHtmlModel",function(){return r["_21"]}),n.d(t,"QuestionRadiogroupModel",function(){return r["_22"]}),n.d(t,"QuestionRatingModel",function(){return r["_23"]}),n.d(t,"QuestionExpressionModel",function(){return r["_24"]}),n.d(t,"QuestionTextModel",function(){return r["_25"]}),n.d(t,"QuestionBooleanModel",function(){return r["_26"]}),n.d(t,"QuestionImagePickerModel",function(){return r["_27"]}),n.d(t,"QuestionPanelDynamicModel",function(){return r["_28"]}),n.d(t,"QuestionPanelDynamicItem",function(){return r["_29"]}),n.d(t,"SurveyTimer",function(){return r["_30"]}),n.d(t,"SurveyModel",function(){return r["_31"]}),n.d(t,"SurveyTrigger",function(){return r["_32"]}),n.d(t,"SurveyTriggerComplete",function(){return r["_33"]}),n.d(t,"SurveyTriggerSetValue",function(){return r["_34"]}),n.d(t,"SurveyTriggerVisible",function(){return r["_35"]}),n.d(t,"SurveyTriggerCopyValue",function(){return r["_36"]}),n.d(t,"SurveyTriggerRunExpression",function(){return r["_37"]}),n.d(t,"Trigger",function(){return r["_38"]}),n.d(t,"SurveyWindowModel",function(){return r["_39"]}),n.d(t,"TextPreProcessor",function(){return r["_40"]}),n.d(t,"dxSurveyService",function(){return r["_41"]}),n.d(t,"englishStrings",function(){return r["_42"]}),n.d(t,"surveyLocalization",function(){return r["_43"]}),n.d(t,"surveyStrings",function(){return r["_44"]}),n.d(t,"QuestionCustomWidget",function(){return r["_45"]}),n.d(t,"CustomWidgetCollection",function(){return r["_46"]}),n.d(t,"StylesManager",function(){return r["_47"]});n(63);var i=n(0);n.d(t,"__assign",function(){return i["a"]}),n.d(t,"__extends",function(){return i["b"]}),n.d(t,"__decorate",function(){return i["c"]});var o=n(14);n.d(t,"defaultStandardCss",function(){return o["a"]});var a=n(61);n.d(t,"defaultBootstrapCss",function(){return a["a"]});var s=n(62);n.d(t,"defaultBootstrapMaterialCss",function(){return s["a"]});var u=n(33),l=(n.n(u),n(17));n.d(t,"Survey",function(){return l["a"]}),n.d(t,"Model",function(){return l["a"]});var c=n(16);n.d(t,"ImplementorBase",function(){return c["a"]});var p=n(24);n.d(t,"QuestionRow",function(){return p["a"]}),n.d(t,"Page",function(){return p["b"]}),n.d(t,"Panel",function(){return p["c"]});var d=n(66);n.d(t,"FlowPanel",function(){return d["a"]});var h=n(7);n.d(t,"QuestionImplementor",function(){return h["a"]});var f=n(15);n.d(t,"QuestionSelectBaseImplementor",function(){return f["a"]}),n.d(t,"QuestionCheckboxBaseImplementor",function(){return f["b"]});var m=n(68);n.d(t,"QuestionCheckbox",function(){return m["a"]});var g=n(69);n.d(t,"QuestionComment",function(){return g["a"]});var y=n(70);n.d(t,"QuestionDropdown",function(){return y["a"]});var v=n(73);n.d(t,"QuestionFile",function(){return v["a"]});var b=n(74);n.d(t,"QuestionHtml",function(){return b["a"]});var x=n(76);n.d(t,"MatrixRow",function(){return x["a"]}),n.d(t,"QuestionMatrix",function(){return x["b"]});var C=n(34);n.d(t,"QuestionMatrixDropdown",function(){return C["a"]});var w=n(77);n.d(t,"QuestionMatrixDynamicImplementor",function(){return w["a"]}),n.d(t,"QuestionMatrixDynamic",function(){return w["b"]});var P=n(79);n.d(t,"QuestionPanelDynamic",function(){return P["a"]});var V=n(78);n.d(t,"MultipleTextItem",function(){return V["a"]}),n.d(t,"QuestionMultipleTextImplementor",function(){return V["b"]}),n.d(t,"QuestionMultipleText",function(){return V["c"]});var T=n(80);n.d(t,"QuestionRadiogroup",function(){return T["a"]});var k=n(81);n.d(t,"QuestionRating",function(){return k["a"]});var S=n(35);n.d(t,"QuestionText",function(){return S["a"]});var R=n(67);n.d(t,"QuestionBoolean",function(){return R["a"]});var O=n(71);n.d(t,"QuestionEmpty",function(){return O["a"]});var q=n(72);n.d(t,"QuestionExpression",function(){return q["a"]});var E=n(75);n.d(t,"QuestionImagePicker",function(){return E["a"]});var _=n(65);n.d(t,"SurveyWindow",function(){return _["a"]});var I=n(36);n.d(t,"SurveyTemplateText",function(){return I["a"]});var L=n(6),A=(n.n(L),n(23));n.i(l["b"])(L,A["a"].platform)}])})}}]);
  //# sourceMappingURL=chunk-5e284c5e.a2753c75.js.map